-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnode_modules.js
223 lines (210 loc) · 47.3 KB
/
node_modules.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
var BUN_RUNTIME=(()=>{var Ge=Object.create;var ee=Object.defineProperty;var ze=Object.getOwnPropertyDescriptor;var He=Object.getOwnPropertyNames;var Ye=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty;var Ze=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(r,o)=>(typeof require!="undefined"?require:r)[o]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var Xe=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),be=(e,r)=>{for(var o in r)ee(e,o,{get:r[o],enumerable:!0})},pe=(e,r,o,f)=>{if(r&&typeof r=="object"||typeof r=="function")for(let v of He(r))!Qe.call(e,v)&&v!==o&&ee(e,v,{get:()=>r[v],enumerable:!(f=ze(r,v))||f.enumerable});return e};var we=(e,r,o)=>(o=e!=null?Ge(Ye(e)):{},pe(r||!e||!e.__esModule?ee(o,"default",{value:e,enumerable:!0}):o,e)),er=e=>pe(ee({},"__esModule",{value:!0}),e);var Je=Xe((Pr,ve)=>{var he=function(e){"use strict";var r=Object.prototype,o=r.hasOwnProperty,f,v=typeof Symbol=="function"?Symbol:{},V=v.iterator||"@@iterator",m=v.asyncIterator||"@@asyncIterator",U=v.toStringTag||"@@toStringTag";function _(l,i,d){return Object.defineProperty(l,i,{value:d,enumerable:!0,configurable:!0,writable:!0}),l[i]}try{_({},"")}catch{_=function(i,d,w){return i[d]=w}}function j(l,i,d,w){var p=i&&i.prototype instanceof k?i:k,L=Object.create(p.prototype),P=new W(w||[]);return L._invoke=S(l,d,P),L}e.wrap=j;function G(l,i,d){try{return{type:"normal",arg:l.call(i,d)}}catch(w){return{type:"throw",arg:w}}}var E="suspendedStart",z="suspendedYield",y="executing",H="completed",T={};function k(){}function t(){}function a(){}var n={};_(n,V,function(){return this});var c=Object.getPrototypeOf,s=c&&c(c(N([])));s&&s!==r&&o.call(s,V)&&(n=s);var u=a.prototype=k.prototype=Object.create(n);t.prototype=a,_(u,"constructor",a),_(a,"constructor",t),t.displayName=_(a,U,"GeneratorFunction");function h(l){["next","throw","return"].forEach(function(i){_(l,i,function(d){return this._invoke(i,d)})})}e.isGeneratorFunction=function(l){var i=typeof l=="function"&&l.constructor;return i?i===t||(i.displayName||i.name)==="GeneratorFunction":!1},e.mark=function(l){return Object.setPrototypeOf?Object.setPrototypeOf(l,a):(l.__proto__=a,_(l,U,"GeneratorFunction")),l.prototype=Object.create(u),l},e.awrap=function(l){return{__await:l}};function g(l,i){function d(L,P,O,C){var q=G(l[L],l,P);if(q.type==="throw")C(q.arg);else{var ae=q.arg,Z=ae.value;return Z&&typeof Z=="object"&&o.call(Z,"__await")?i.resolve(Z.__await).then(function(J){d("next",J,O,C)},function(J){d("throw",J,O,C)}):i.resolve(Z).then(function(J){ae.value=J,O(ae)},function(J){return d("throw",J,O,C)})}}var w;function p(L,P){function O(){return new i(function(C,q){d(L,P,C,q)})}return w=w?w.then(O,O):O()}this._invoke=p}h(g.prototype),_(g.prototype,m,function(){return this}),e.AsyncIterator=g,e.async=function(l,i,d,w,p){p===void 0&&(p=Promise);var L=new g(j(l,i,d,w),p);return e.isGeneratorFunction(i)?L:L.next().then(function(P){return P.done?P.value:L.next()})};function S(l,i,d){var w=E;return function(L,P){if(w===y)throw new Error("Generator is already running");if(w===H){if(L==="throw")throw P;return Y()}for(d.method=L,d.arg=P;;){var O=d.delegate;if(O){var C=M(O,d);if(C){if(C===T)continue;return C}}if(d.method==="next")d.sent=d._sent=d.arg;else if(d.method==="throw"){if(w===E)throw w=H,d.arg;d.dispatchException(d.arg)}else d.method==="return"&&d.abrupt("return",d.arg);w=y;var q=G(l,i,d);if(q.type==="normal"){if(w=d.done?H:z,q.arg===T)continue;return{value:q.arg,done:d.done}}else q.type==="throw"&&(w=H,d.method="throw",d.arg=q.arg)}}}function M(l,i){var d=l.iterator[i.method];if(d===f){if(i.delegate=null,i.method==="throw"){if(l.iterator.return&&(i.method="return",i.arg=f,M(l,i),i.method==="throw"))return T;i.method="throw",i.arg=new TypeError("The iterator does not provide a 'throw' method")}return T}var w=G(d,l.iterator,i.arg);if(w.type==="throw")return i.method="throw",i.arg=w.arg,i.delegate=null,T;var p=w.arg;if(!p)return i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,T;if(p.done)i[l.resultName]=p.value,i.next=l.nextLoc,i.method!=="return"&&(i.method="next",i.arg=f);else return p;return i.delegate=null,T}h(u),_(u,U,"Generator"),_(u,V,function(){return this}),_(u,"toString",function(){return"[object Generator]"});function x(l){var i={tryLoc:l[0]};1 in l&&(i.catchLoc=l[1]),2 in l&&(i.finallyLoc=l[2],i.afterLoc=l[3]),this.tryEntries.push(i)}function R(l){var i=l.completion||{};i.type="normal",delete i.arg,l.completion=i}function W(l){this.tryEntries=[{tryLoc:"root"}],l.forEach(x,this),this.reset(!0)}e.keys=function(l){var i=[];for(var d in l)i.push(d);return i.reverse(),function w(){for(;i.length;){var p=i.pop();if(p in l)return w.value=p,w.done=!1,w}return w.done=!0,w}};function N(l){if(l){var i=l[V];if(i)return i.call(l);if(typeof l.next=="function")return l;if(!isNaN(l.length)){var d=-1,w=function p(){for(;++d<l.length;)if(o.call(l,d))return p.value=l[d],p.done=!1,p;return p.value=f,p.done=!0,p};return w.next=w}}return{next:Y}}e.values=N;function Y(){return{value:f,done:!0}}return W.prototype={constructor:W,reset:function(l){if(this.prev=0,this.next=0,this.sent=this._sent=f,this.done=!1,this.delegate=null,this.method="next",this.arg=f,this.tryEntries.forEach(R),!l)for(var i in this)i.charAt(0)==="t"&&o.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=f)},stop:function(){this.done=!0;var l=this.tryEntries[0],i=l.completion;if(i.type==="throw")throw i.arg;return this.rval},dispatchException:function(l){if(this.done)throw l;var i=this;function d(C,q){return L.type="throw",L.arg=l,i.next=C,q&&(i.method="next",i.arg=f),!!q}for(var w=this.tryEntries.length-1;w>=0;--w){var p=this.tryEntries[w],L=p.completion;if(p.tryLoc==="root")return d("end");if(p.tryLoc<=this.prev){var P=o.call(p,"catchLoc"),O=o.call(p,"finallyLoc");if(P&&O){if(this.prev<p.catchLoc)return d(p.catchLoc,!0);if(this.prev<p.finallyLoc)return d(p.finallyLoc)}else if(P){if(this.prev<p.catchLoc)return d(p.catchLoc,!0)}else if(O){if(this.prev<p.finallyLoc)return d(p.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(l,i){for(var d=this.tryEntries.length-1;d>=0;--d){var w=this.tryEntries[d];if(w.tryLoc<=this.prev&&o.call(w,"finallyLoc")&&this.prev<w.finallyLoc){var p=w;break}}p&&(l==="break"||l==="continue")&&p.tryLoc<=i&&i<=p.finallyLoc&&(p=null);var L=p?p.completion:{};return L.type=l,L.arg=i,p?(this.method="next",this.next=p.finallyLoc,T):this.complete(L)},complete:function(l,i){if(l.type==="throw")throw l.arg;return l.type==="break"||l.type==="continue"?this.next=l.arg:l.type==="return"?(this.rval=this.arg=l.arg,this.method="return",this.next="end"):l.type==="normal"&&i&&(this.next=i),T},finish:function(l){for(var i=this.tryEntries.length-1;i>=0;--i){var d=this.tryEntries[i];if(d.finallyLoc===l)return this.complete(d.completion,d.afterLoc),R(d),T}},catch:function(l){for(var i=this.tryEntries.length-1;i>=0;--i){var d=this.tryEntries[i];if(d.tryLoc===l){var w=d.completion;if(w.type==="throw"){var p=w.arg;R(d)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(l,i,d){return this.delegate={iterator:N(l),resultName:i,nextLoc:d},this.method==="next"&&(this.arg=f),T}},e}(typeof ve=="object"?ve.exports:{});try{regeneratorRuntime=he}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=he:Function("r","regeneratorRuntime = r")(he)}});var Sr={};be(Sr,{$$lzy:()=>hr,$$m:()=>wr,BuildError:()=>Oe,ImportKind:()=>Te,ResolveError:()=>qe,__FastRefreshModule:()=>Re,__HMRClient:()=>Le,__HMRModule:()=>Ie,__cJS2eSM:()=>pr,__commonJS:()=>ce,__export:()=>gr,__exportDefault:()=>_r,__exportValue:()=>mr,__injectFastRefresh:()=>Pe,__internalIsCommonJSNamespace:()=>We,__markAsModule:()=>Ve,__merge:()=>xr,__name:()=>yr,__reExport:()=>De,__require:()=>$e,__toModule:()=>vr,regeneratorRuntime:()=>Ke.default});var rr=Object.defineProperty,tr=(e,r,o)=>r in e?rr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,_e=(e,r,o)=>(tr(e,typeof r!="symbol"?r+"":r,o),o),F=new Int32Array(1),re=new Float32Array(F.buffer),ye=new Int16Array(F.buffer),ge=new Uint16Array(F.buffer),le=new Uint32Array(F.buffer),B=new Uint8Array(F.buffer),me=new Int8Array(F.buffer),X,oe,ir=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer,te=class{data;index;length;constructor(e,r=!1){if(e&&!(e instanceof Uint8Array))throw new Error("Must initialize a ByteBuffer with a Uint8Array");this.data=e||new Uint8Array(256),this.index=0,this.length=e?e.length:0}toUint8Array(){return this.data.subarray(0,this.length)}readByte(){if(this.index+1>this.data.length)throw new Error("Index out of bounds");return this.data[this.index++]}readAlphanumeric(){X||(X=new TextDecoder("utf-8"));let e=this.index,r=256,o=this.length-1;for(;this.index<o&&r>0;)r=this.data[this.index++];return String.fromCharCode(...this.data.subarray(e,this.index-1))}writeAlphanumeric(e){if(this.length+1>this.data.length)throw new Error("Index out of bounds");let r=this.length;this._growBy(e.length);let o=this.data,f=0,v=0;for(;f<e.length;)if(v=o[r++]=e.charCodeAt(f++),v>127)throw new Error(`Non-ascii character at char ${f-1} :${e}`);this.writeByte(0)}readFloat32(){if(this.index+4>this.data.length)throw new Error("Index out of bounds");return B[0]=this.data[this.index++],B[1]=this.data[this.index++],B[2]=this.data[this.index++],B[3]=this.data[this.index++],re[0]}readByteArray(){let e=this.readVarUint(),r=this.index,o=r+e;if(o>this.data.length)throw new Error("Read array out of bounds");this.index=o;let f=new Uint8Array(new ir(e));return f.set(this.data.subarray(r,o)),f}readUint32ByteArray(){let e=this.readByteArray();return new Uint32Array(e.buffer,0,e.length/Uint32Array.BYTES_PER_ELEMENT)}readInt8ByteArray(){let e=this.readByteArray();return new Int8Array(e.buffer,0,e.length/Int8Array.BYTES_PER_ELEMENT)}readInt16ByteArray(){let e=this.readByteArray();return new Int16Array(e.buffer,0,e.length/Int16Array.BYTES_PER_ELEMENT)}readInt32ByteArray(){let e=this.readByteArray();return new Int32Array(e.buffer,0,e.length/Int32Array.BYTES_PER_ELEMENT)}readFloat32ByteArray(){let e=this.readByteArray();return new Float32Array(e.buffer,0,e.length/Float32Array.BYTES_PER_ELEMENT)}readVarFloat(){let e=this.index,r=this.data,o=r.length;if(e+1>o)throw new Error("Index out of bounds");let f=r[e];if(f===0)return this.index=e+1,0;if(e+4>o)throw new Error("Index out of bounds");let v=f|r[e+1]<<8|r[e+2]<<16|r[e+3]<<24;return this.index=e+4,v=v<<23|v>>>9,F[0]=v,re[0]}readUint32(){if(this.index+4>this.data.length)throw new Error("Index out of bounds");return B[0]=this.data[this.index++],B[1]=this.data[this.index++],B[2]=this.data[this.index++],B[3]=this.data[this.index++],le[0]}readUint16(){if(this.index+2>this.data.length)throw new Error("Index out of bounds");return B[0]=this.data[this.index++],B[1]=this.data[this.index++],ge[0]}readVarUint(){return this.readUint32()}readInt32(){if(this.index+4>this.data.length)throw new Error("Index out of bounds");return B[0]=this.data[this.index++],B[1]=this.data[this.index++],B[2]=this.data[this.index++],B[3]=this.data[this.index++],F[0]}readInt16(){if(this.index+2>this.data.length)throw new Error("Index out of bounds");return B[0]=this.data[this.index++],B[1]=this.data[this.index++],ye[0]}readInt8(){if(this.index+1>this.data.length)throw new Error("Index out of bounds");return B[0]=this.data[this.index++],me[0]}readVarInt(){return this.readInt32()}readString(){let e=this.readVarUint(),r=this.index;return this.index+=e,X||(X=new TextDecoder("utf8")),X.decode(this.data.subarray(r,this.index))}_growBy(e){if(this.length+e>this.data.length){let r=new Uint8Array(Math.imul(this.length+e,te.WIGGLE_ROOM)<<1);r.set(this.data),this.data=r}this.length+=e}writeByte(e){let r=this.length;this._growBy(1),this.data[r]=e}writeByteArray(e){this.writeVarUint(e.length);let r=this.length;this._growBy(e.length),this.data.set(e,r)}writeUint16ByteArray(e){this.writeByteArray(new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}writeUint32ByteArray(e){this.writeByteArray(new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}writeInt8ByteArray(e){this.writeByteArray(new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}writeInt16ByteArray(e){this.writeByteArray(new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}writeInt32ByteArray(e){this.writeByteArray(new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}writeFloat32Array(e){this.writeByteArray(new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}writeVarFloat(e){let r=this.length;re[0]=e;let o=F[0];if(o=o>>>23|o<<9,(o&255)===0){this.writeByte(0);return}this._growBy(4);let f=this.data;f[r]=o,f[r+1]=o>>8,f[r+2]=o>>16,f[r+3]=o>>24}writeFloat32(e){let r=this.length;this._growBy(4),re[0]=e,this.data.set(B,r)}writeVarUint(e){this.writeUint32(e)}writeUint16(e){let r=this.length;this._growBy(2),ge[0]=e,this.data[r++]=B[0],this.data[r++]=B[1]}writeUint32(e){let r=this.length;this._growBy(4),le[0]=e,this.data.set(B,r)}writeVarInt(e){this.writeInt32(e)}writeInt8(e){let r=this.length;this._growBy(1),me[0]=e,this.data[r++]=B[0]}writeInt16(e){let r=this.length;this._growBy(2),ye[0]=e,this.data[r++]=B[0],this.data[r++]=B[1]}writeInt32(e){let r=this.length;this._growBy(4),F[0]=e,this.data.set(B,r)}writeLowPrecisionFloat(e){this.writeVarInt(Math.round(te.LOW_PRECISION_VALUE*e))}readLowPrecisionFloat(){return this.readVarInt()/te.LOW_PRECISION_VALUE}writeString(e){var r=this.length;this.writeVarUint(e.length),oe||(oe=new TextEncoder);let o=this.length;this._growBy(e.length*2+5);let f=oe.encodeInto(e,this.data.subarray(o));this.length=o+f.written,f.written!==e.length&&(le[0]=f.written,this.data[r++]=B[0],this.data[r++]=B[1],this.data[r++]=B[2],this.data[r++]=B[3])}},b=te;_e(b,"WIGGLE_ROOM",1);_e(b,"LOW_PRECISION_VALUE",10**3);var A={1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,10:10,jsx:1,js:2,ts:3,tsx:4,css:5,file:6,json:7,toml:8,wasm:9,napi:10};var ie={1:1,2:2,3:3,4:4,5:5,err:1,warn:2,note:3,info:4,debug:5};function nr(e){var r={};return r.file=e.readString(),r.namespace=e.readString(),r.line=e.readInt32(),r.column=e.readInt32(),r.line_text=e.readString(),r.suggestion=e.readString(),r.offset=e.readVarUint(),r}function ke(e){for(var r={};;)switch(e.readByte()){case 0:return r;case 1:r.text=e.readString();break;case 2:r.location=nr(e);break;default:throw new Error("Attempted to parse invalid message")}}function ar(e){for(var r={};;)switch(e.readByte()){case 0:return r;case 1:r.resolve=e.readString();break;case 2:r.build=!!e.readByte();break;default:throw new Error("Attempted to parse invalid message")}}function lr(e){var r={};r.level=ie[e.readVarUint()],r.data=ke(e);for(var o=e.readVarUint(),f=r.notes=Array(o),v=0;v<o;v++)f[v]=ke(e);return r.on=ar(e),r}function or(e){var r={};r.warnings=e.readUint32(),r.errors=e.readUint32();for(var o=e.readVarUint(),f=r.msgs=Array(o),v=0;v<o;v++)f[v]=lr(e);return r}var $={1:1,2:2,3:3,disable:1,live:2,fast_refresh:3};var D={1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,welcome:1,file_change_notification:2,build_success:3,build_fail:4,manifest_success:5,manifest_fail:6,resolve_file:7,file_change_notification_with_hint:8};var se={1:1,2:2,3:3,build:1,manifest:2,build_with_file_path:3};function xe(e){var r={};return r.timestamp=e.readUint32(),r.kind=D[e.readByte()],r}function Se(e){var r={};return r.epoch=e.readUint32(),r.javascriptReloader=$[e.readByte()],r.cwd=e.readString(),r.assetPrefix=e.readString(),r}function Be(e){var r={};return r.id=e.readUint32(),r.loader=A[e.readByte()],r}function Ee(e){var r={};return r.id=e.readUint32(),r.from_timestamp=e.readUint32(),r.loader=A[e.readByte()],r.module_path=e.readString(),r.blob_length=e.readUint32(),r}function Ae(e){var r={};return r.id=e.readUint32(),r.from_timestamp=e.readUint32(),r.loader=A[e.readByte()],r.module_path=e.readString(),r.log=or(e),r}function Me(e){var r={};return r.id=e.readUint32(),r}var Ie,Re,Le,Pe;if(typeof window<"u"){let e=function(k){return Math.round(k*1e3)/1e3},H=function(k){v.hasInjectedFastRefresh||(k.injectIntoGlobalHook(globalThis),v.hasInjectedFastRefresh=!0)};ue=!1,Q=0;let r;(n=>(n[n.Pending=0]="Pending",n[n.Loading=1]="Loading",n[n.Loaded=2]="Loaded"))(r||={}),de=new Map;let o;(a=>(a[a.cssObjectModel=0]="cssObjectModel",a[a.blobURL=1]="blobURL"))(o||={});let f;(n=>(n[n.fullReload=0]="fullReload",n[n.hotReload=1]="hotReload",n[n.ignore=2]="ignore"))(f||={});let v={RefreshRuntime:null,isUpdateInProgress:!1,hasInjectedFastRefresh:!1,performFullRefresh(){_.client.performFullReload()},async hotReload(){if(!v.isUpdateInProgress)try{v.isUpdateInProgress=!0}finally{v.isUpdateInProgress=!1}}},V="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIwAAACMCAMAAACZHrEMAAAAnFBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////vjo798/Psdnb2wMD62dn3wMDrdnb3wcHjNzf4zc3mUFD////+8vL85ubugoLqaWnxm5vkRET1tLT75ubtgoLlQ0Pwj4/zp6foXV3vj4/zqKjsdXXnUFD62tqV2W1BAAAAFnRSTlMAYN8gEEDvv6B/gHAwz59Qr4+Qb7DQOIES+QAABFRJREFUeF7smNluwjAQRYEskJKwiPfxlg3o3v//t0owTlMV2+LBNw/lfMHRoHtIMvv3PHiQlFmWJbPpyYplrq5Um+2UJmnBIpZ8k0yuMmYanXKhbpKv8S4H5WSfgl0K5aFKp3PRRyGEdthAXUzb0AVZCzWwxLmUPyoNjZC9shSwTQ87eu/oN7VWTIb+kWr6gzS2xxiXRDFvRB4bTG5W7NLSTRobvxR4GEMOXtjmCSBTsUxDDs6aT5NEd5mzS09OatbdRJexs5bkRoDmffAehmkwHU74MEYSTX6a1ZAYL5JlFtBZh+a9BhympgBnHb18Gbt8UZDWUT7srJmzseXD9S5cvh38MPh5F45/61D5gL0Ln2YLnHW4fCmwd+F5Aw+DL9+WXQTR/afZA2YdxrBNAuodft5p4DDh8kF6hz/NMOuO7qVnmzlq1t3r6dQ4PKW25YP0rmuvOeklpHw732GkUZbaXz7ArNnF/ZL5bMsXv3e1GiG8umX0wwg1pos8b/sYo2/3Tqsxjb98sXvHFrm68OEtXxX7MebIGeHL+Mu3jtA7r0yEebsOE5aJWL6lLUhAhvkMfsyK+hgjHDIRPmY5eueXiTTvb2bNbidhIIjClkJBEUGDUH5k+2NLAQUj7/9uXnCx6elCppOdkXNPcjKzc2b3o7YwRDMEmCWJqSowI1aaV8g7nhmEWVKYCs3kJJglh6m+wYwQzHom8buSYgaTjz/WR7oZQ4RZUphqBmZIMEsKU+1JZnC8mZjqZ9PCzEIAZkHe0c1UZJglQ2NiMMOGWfy8w8pjT/njzS8MmiklYFaPjqmOYIYMsyQwVQJmfMMszDu6mU8GsfHJ7w50M5h8Apgqgwel39KEUSssX+HSpsMs//S5IAwTGWbx8w4vEWcGxveO5S9fFGWlf4wfwAImaVsUvyQbCLPIYy0ihFkSWF6EVXfFC4PJR8s7ndKMSFheWgiz+GONiHyx25kKdgFjvLl5h29K3B/85ENMtW7j5WzXwfzIKU3oYaxxGdDPGsIsb3mXpDWdWOPtqzBx3YzxlHxhh30MrXIPyQd5J24GYRZzrFF7fpsQZvHzDu/jzF9nztJ0I1ZhEKO13a+lc6ACwPJkHZapVdz615lroKbYc7qbCr4nZ5QGNlQEPW+jpFpm6W41g/htVZqeg2xuN9oyzXkaQ5f0NGsuqCHAHj3FzRP8JHTbJPOdzl2YSQhmtCszuoszUzRTL/jvaZo2c2aub+bDASQiWE1qsgls1Qf2IC28ldd20xDgg5Zy19buAoZWLkzgfsCdVBMvd1+Ce/Aq1NA2vwb3JupukjP84QP4V7NTRZ7CiYGBumiZKLTI3uSdj+03yxPMZyLqZL2ylN82CSfKKjOmkpGpfQDUCa/gxUmqK/SCnVLWe3iLA3dUvbzdBvbhQM9KH1iI006kZYWk8WAkfGwnw+5fO3BsAgAAwkAwgukC7r+tM1jY/ekgnvrhtK4AAMACYkDwBoJSQAkAAAAASUVORK5CYII=",m={module:null,prom:null,cancel:!1,lastError:null,previousFavicon:"",setErrorFavicon(){if(!(typeof document>"u"||m.previousFavicon))try{let k=document.querySelector("link[rel='icon']");if(m.previousFavicon=k&&k.getAttribute("href")||"/favicon.ico",!k){k=document.createElement("link"),k.setAttribute("rel","icon"),k.setAttribute("href",V),document.head.appendChild(k);return}k.setAttribute("href",V)}catch{}},clearErrorFavicon(){if(!(typeof document>"u")&&m.previousFavicon)try{let k=document.querySelector("link[rel='icon']");k&&k.setAttribute("href",m.previousFavicon),m.previousFavicon=""}catch{}},render(k,t){if(m.setErrorFavicon(),"__BunRenderBuildError"in globalThis){globalThis.__BunRenderBuildError(k,t);return}if(m.lastError=[k,t],m.cancel=!1,!m.module){if(m.prom)return;m.prom=import("/bun:error.js").then(c=>{m.module=c,!m.cancel&&m.render(m.lastError[0],m.lastError[1])});return}let{renderBuildFailure:a,renderRuntimeError:n}=m.module;typeof m.lastError[0]=="string"||m.lastError[0]instanceof Error?n(m.lastError[0],m.lastError[1]):a(m.lastError[0],m.lastError[1])},clear(){if(m.lastError=null,m.cancel=!0,m.clearErrorFavicon(),m.module){let{clearBuildFailure:k}=m.module;k()}else"__BunClearBuildFailure"in globalThis&&globalThis.__BunClearBuildFailure()}};class U{hmr;static cssLoadId={id:0,bundle_id:0,node:null,file:"",sheet:null};updateMethod;decoder;constructor(){"replaceSync"in CSSStyleSheet.prototype?this.updateMethod=0:this.updateMethod=1}findMatchingSupportsRule(t,a,n){switch(t.type){case 12:{if(!t.conditionText.startsWith("(hmr-wid:"))return null;let c=8+1,s=t.conditionText.indexOf(")",c);if(s===-1)return null;let u=parseInt(t.conditionText.substring(c,s),10);if(u!==a)return null;let h=t.conditionText.indexOf('(hmr-file:"',s);if(h===-1)return null;h+=11+1;let g=t.conditionText.indexOf('"',h);return g===-1||g-h<=0?null:(U.cssLoadId.id=u,U.cssLoadId.node=n.ownerNode,U.cssLoadId.sheet=n,U.cssLoadId.file=t.conditionText.substring(h-1,g),U.cssLoadId)}default:return null}}bundleId(){return U.cssLoadId.bundle_id}findCSSLinkTag(t){let a=0,n=null,c=document.adoptedStyleSheets;if(this.updateMethod===0&&c.length>0){a=c.length;for(let s=0;s<a&&n===null;s++){let u,h,g=0;try{h=c[s],u=h.rules,g=h.rules.length}catch{continue}if(h.disabled||h.rules.length===0)continue;let S=u[0];if(S.type!==12||!S.conditionText.startsWith("(hmr-bid:"))continue;let M=S.conditionText.indexOf(")",9+1);if(M!==-1){U.cssLoadId.bundle_id=parseInt(S.conditionText.substring(9,M),10);for(let x=1;x<g&&n===null;x++)n=this.findMatchingSupportsRule(u[x],t,h)}}}a=document.styleSheets.length;for(let s=0;s<a&&n===null;s++){let u,h,g=0;try{h=document.styleSheets.item(s),u=h.rules,g=h.rules.length}catch{continue}if(h.disabled||h.rules.length===0)continue;let S=u[0];if(S.type!==12||!S.conditionText.startsWith("(hmr-bid:"))continue;let M=S.conditionText.indexOf(")",9+1);if(M!==-1){U.cssLoadId.bundle_id=parseInt(S.conditionText.substring(9,M),10);for(let x=1;x<g&&n===null;x++)n=this.findMatchingSupportsRule(u[x],t,h)}}return n===null&&(U.cssLoadId.file="",U.cssLoadId.bundle_id=U.cssLoadId.id=0,U.cssLoadId.node=null,U.cssLoadId.sheet=null),n}handleBuildSuccess(t,a,n){let c=performance.now();var s=this.findCSSLinkTag(a.id);if(s===null){I.debug("Skipping unused CSS.");return}if(t.length===0){I.debug("Skipping empty file");return}let u=s.file;u.startsWith(this.hmr.cwd)&&(u=u.substring(this.hmr.cwd.length));let h=n,g=a.from_timestamp;function S(){let M=e(performance.now()-c),x=h-g;I.log("Reloaded in",`${M+x}ms`,"-",u),s=null,u=null}switch(this.updateMethod){case 1:{let M=new Blob([t],{type:"text/css"}),x=URL.createObjectURL(M);setTimeout(S.bind(s.node),0),s.node.setAttribute("href",x),M=null,URL.revokeObjectURL(x);break}case 0:{if(this.decoder||(this.decoder=new TextDecoder("UTF8")),!s.node||s.node.tagName==="HTML")s.sheet.replaceSync(this.decoder.decode(t));else if(s.node.tagName==="LINK"||s.node.tagName==="STYLE"){let M=new CSSStyleSheet,x=this.decoder.decode(t);M.replaceSync(x),s.node.remove(),document.adoptedStyleSheets=[...document.adoptedStyleSheets,M]}break}}t=null}filePath(t){if(t.loader!==A.css)return null;let a=this.findCSSLinkTag(t.id);return a?a.file:null}}class _{static client;socket;hasWelcomed=!1;reconnect=0;epoch=0;javascriptReloader=$.disable;loaders={css:new U};assetPrefixPath="";sessionId;get dependencies(){return y.dependencies}start(){if(ue){I.warn("Attempted to start HMR client multiple times. This may be a bug.");return}this.loaders.css.hmr=this,ue=!0,this.connect();var t=globalThis.onbeforeunload;globalThis.onbeforeunload=a=>{this.disableReconnect=!0,this.socket&&this.socket.readyState===this.socket.OPEN&&this.socket.close(4990,"unload"),t&&t.call(globalThis,[a])}}nextReconnectAttempt=0;reconnectDelay=16;debouncedReconnect=()=>{this.socket&&(this.socket.readyState==this.socket.OPEN||this.socket.readyState==this.socket.CONNECTING)||(this.nextReconnectAttempt=setTimeout(this.attemptReconnect,this.reconnectDelay))};attemptReconnect=()=>{globalThis.clearTimeout(this.nextReconnectAttempt),!(this.socket&&(this.socket.readyState==this.socket.OPEN||this.socket.readyState==this.socket.CONNECTING))&&(this.connect(),this.reconnectDelay+=Math.floor(Math.random()*128))};connect(){if(this.socket&&(this.socket.readyState==this.socket.OPEN||this.socket.readyState==this.socket.CONNECTING))return;Q=performance.now();let t=new URL(location.origin+"/bun:_api.hmr");t.protocol=location.protocol==="https:"?"wss":"ws",this.socket=new WebSocket(t.toString(),["bun-hmr"]),this.socket.binaryType="arraybuffer",this.socket.onclose=this.handleClose,this.socket.onerror=this.handleError,this.socket.onopen=this.handleOpen,this.socket.onmessage=this.handleMessage}builds=new Map;cwd;indexOfModuleId(t){return y.dependencies.graph.indexOf(t)}static cssQueue=[];static cssState=0;static cssAutoFOUC=!1;static processPendingCSSImports(){let t=_.cssQueue.slice();return _.cssQueue.length=0,Promise.all(t).then(()=>{if(_.cssQueue.length>0){let a=_.cssQueue.slice();return _.cssQueue.length=0,Promise.all(a).then(_.processPendingCSSImports)}else return!0})}static importCSS(t){switch(_.cssState){case 0:{this.cssState=1,document.documentElement.innerText===""&&!_.cssAutoFOUC&&(document.body&&(document.body.style.visibility="hidden"),_.cssAutoFOUC=!0),t.then(this.processPendingCSSImports).finally(()=>{_.cssAutoFOUC&&(document.body&&(window.getComputedStyle(document.body),document.body.style.visibility="visible"),_.cssAutoFOUC=!1),this.cssState=2});break}case 2:{t.then(()=>{},()=>{});break}case 1:{this.cssQueue.push(t);break}}}static allImportedStyles=new Set;static onCSSImport(t){if(_.allImportedStyles.add(t.detail),globalThis.Bun_disableCSSImports)return;let a=t.detail;if(typeof a!="string"||a.length===0){console.warn("[CSS Importer] Received invalid CSS import",a);return}let n=new URL(a,location.origin);for(let s=0;s<document.styleSheets.length;s++){let u=document.styleSheets[s];if(!!u.href){if(u.href===a)return;try{if(new URL(u.href,location.origin).pathname===n.pathname)return}catch{}}}let c=n.toString();_.importCSS(new Promise((s,u)=>{if(!globalThis.Bun_disableCSSImports){var h=document.createElement("link");h.rel="stylesheet",h.href=c,h.onload=()=>{s()},h.onerror=g=>{console.error(`[CSS Importer] Error loading CSS file: ${c}
`,g.toString()),u()},document.head.appendChild(h)}}).then(()=>Promise.resolve()))}static onError(t){"error"in t&&!!t.error&&m.render(t.error,_.client?_.client.cwd:"")}static activate(t=!1){this.client||!("location"in globalThis)||!("WebSocket"in globalThis)||(globalThis.addEventListener("error",_.onError),this.client=new _,this.client.verbose=t,this.client.start(),globalThis.__BUN_HMR=this.client)}handleBuildFailure(t,a){let n=Ae(t),c=n.id;this.reportBuildFailure(n)}maybeReportBuildFailure(t){m.render(t,this.cwd)}needsConsoleClear=!1;reportBuildFailure(t){m.render(t,this.cwd),console.group(`Build failed: ${t.module_path} (${t.log.errors} errors)`),this.needsConsoleClear=!0;for(let c of t.log.msgs){var a;switch(c.level){case ie.err:{a=console.error;break}case ie.warn:{a=console.warn;break}default:{a=console.info;break}}let{text:s,location:u}=c.data;var n="";u&&(u.line>-1&&u.column>-1?n+=`${u.file}:${u.line}:${u.column}`:u.line>-1?n+=`${u.file}:${u.line}`:u.file.length>0&&(n+=`${u.file}`)),u&&u.line_text&&(n=n.trimRight()+`
`+u.line_text.trim()),n=n.trimRight()+`
`+s,a(n.trim())}console.groupEnd()}verbose=!1;handleError=t=>{I.error("Websocket error",t.error),this.reconnect===0&&this.debouncedReconnect()};handleBuildSuccess(t,a){let n=Ee(t),c=this.builds.get(n.id)||-1/0;if(c>n.from_timestamp+4){this.verbose&&I.debug(`Ignoring outdated update for "${n.module_path}".
Expected: >=`,c,`
Received:`,n.from_timestamp);return}var s=t.data.byteOffset+t.index+n.blob_length<=t.data.buffer.byteLength?new Uint8Array(t.data.buffer,t.data.byteOffset+t.index,n.blob_length):Ue||=new Uint8Array(0);if(n.loader===A.css)return m.clear(),this.needsConsoleClear&&(console.clear(),this.needsConsoleClear=!1),this.loaders.css.handleBuildSuccess(s,n,a);let u=n.id,h=this.indexOfModuleId(u);if(h===-1){this.verbose&&I.debug("Skipping reload for unknown module id:",u);return}if(this.verbose){var g=y.dependencies.modules[h].file_path;g.startsWith(this.cwd)&&(g=g.substring(this.cwd.length)),I.debug("Preparing to reload",g)}var S=t.index+n.blob_length,M=0;S>t.data.length&&S>4&&(S=t.data.length-4),S>4&&t.data.length>=S+4&&(new Uint8Array(this.hashBuffer.buffer).set(t.data.subarray(S,S+4)),M=this.hashBuffer[0]);var x=new E(n.id,h,n,s,1,M||0);s=null,x.timings.notify=a-n.from_timestamp,m.clear(),x.run().then(([R,W])=>{var N=R.file_path;N.startsWith(this.cwd)&&(N=N.substring(this.cwd.length)),this.needsConsoleClear&&(console.clear(),this.needsConsoleClear=!1),I.log(`[${e(W.total)}ms] Reloaded`,N)},R=>{if(!(typeof R=="object"&&R&&R instanceof G)){I.error("Hot Module Reload failed!",R);debugger}})}performFullReload(){typeof location<"u"&&(this.socket.readyState===this.socket.OPEN&&(this.reconnect=1,this.socket.close()),location.reload())}handleFileChangeNotification(t,a,n){let c=Be(t),s="";switch(c.loader){case A.css:{s=this.loaders.css.filePath(c);break}case A.js:case A.jsx:case A.tsx:case A.ts:case A.json:{let u=y.dependencies.graph.subarray(0,y.dependencies.graph_used).indexOf(c.id);u>-1&&(s=y.dependencies.modules[u].file_path);break}default:return}return this.handleFileChangeNotificationBase(a,c,s,n)}handleFileChangeNotificationBase(t,a,n,c){if(!(n&&n.length>0)){this.verbose&&I.debug("Unknown module changed, skipping");return}if((this.builds.get(a.id)||-1/0)>t){I.debug(`Received stale update for ${n}`);return}let u=2;switch(a.loader){case A.css:{this.builds.set(a.id,t),a.id=this.loaders.css.bundleId(),this.builds.set(a.id,t),u=1;break}case A.js:case A.jsx:case A.json:case A.ts:case A.tsx:{switch(this.javascriptReloader){case $.disable:break;case $.fast_refresh:{this.builds.set(a.id,t),u=1;break}case $.live:{u=0;break}}break}}switch(u){case 1:{c&&!this.buildCommandBufWithFilePath&&(this.buildCommandBufWithFilePath=new Uint8Array(4096+256));let h=c?this.buildCommandBufWithFilePath:this.buildCommandBuf;if(h[0]=c?se.build_with_file_path:se.build,this.buildCommandUArray[0]=t,h.set(this.buildCommandUArrayEight,1),this.buildCommandUArray[0]=a.id,h.set(this.buildCommandUArrayEight,5),c){ne||(ne=new TextEncoder),this.buildCommandUArray[0]=n.length,h.set(this.buildCommandUArrayEight,9);let g=ne.encodeInto(n,h.subarray(13));this.socket.send(this.buildCommandBufWithFilePath.subarray(0,13+g.written))}else this.socket.send(this.buildCommandBuf);this.verbose&&I.debug(`Requesting update for ${n}`);break}case 0:{this.performFullReload();break}}}buildCommandBuf=new Uint8Array(9);buildCommandUArray=new Uint32Array(1);buildCommandUArrayEight=new Uint8Array(this.buildCommandUArray.buffer);hashBuffer=new Uint32Array(1);buildCommandBufWithFilePath;handleOpen=t=>{globalThis.clearTimeout(this.nextReconnectAttempt),setTimeout(()=>{this.socket&&this.socket.readyState==this.socket.OPEN&&(globalThis.clearTimeout(this.nextReconnectAttempt),this.reconnectDelay=16)},16)};handleMessage=t=>{let a=new Uint8Array(t.data),n=new b(a),c=xe(n),s=new b(a.subarray(n.index));switch(c.kind){case D.build_fail:{this.handleBuildFailure(s,c.timestamp);break}case D.build_success:{this.handleBuildSuccess(s,c.timestamp);break}case D.resolve_file:{let{id:g}=Me(s),S=this.builds.get(g)||0;if(S==0&&E.VERBOSE){I.debug(`Unknown module? ${g}`);return}let M=y.dependencies.graph.subarray(0,y.dependencies.graph_used).indexOf(g);var u="",h=A.js;if(M>-1)u=y.dependencies.modules[M].file_path;else{let x=this.loaders.css.findCSSLinkTag(g);x&&x.file.length&&(u=x.file)}if(!u||u.length===0){E.VERBOSE&&I.debug(`Unknown module? ${g}`);return}switch(u.substring(u.lastIndexOf("."))){case".css":{h=A.css;break}case".mjs":case".cjs":case".js":{h=A.js;break}case".json":{h=A.json;break}case".cts":case".mts":case".ts":{h=A.ts;break}case".tsx":{h=A.tsx;break}case".jsx":{h=A.jsx;break}default:{h=A.file;break}}this.handleFileChangeNotificationBase(S,{id:g,loader:h},u,!0);break}case D.file_change_notification:{this.handleFileChangeNotification(s,c.timestamp,!1);break}case D.file_change_notification_with_hint:{this.handleFileChangeNotification(s,c.timestamp,!0);break}case D.welcome:{let g=performance.now();this.hasWelcomed=!0;let S=Se(s);switch(this.epoch=S.epoch,this.javascriptReloader=S.javascriptReloader,this.cwd=S.cwd,this.assetPrefixPath=S.assetPrefix,this.javascriptReloader){case $.fast_refresh:{I.log("HMR connected in",e(g-Q),"ms");break}case $.live:{I.log("Live reload connected in",e(g-Q),"ms");break}default:{I.log("Bun connected in",e(g-Q),"ms");break}}Q=g,this.epoch||I.warn("Internal HMR error");break}}};disableReconnect=!1;handleClose=t=>{this.reconnect!==0||this.disableReconnect||this.debouncedReconnect()}}let j=0;class G extends Error{constructor(t){super(t)}}class E{module_id=0;module_index=0;build;hash=0;timings={notify:0,decode:0,import:0,callbacks:0,total:0,start:0};static VERBOSE=!1;bytes;reloader;constructor(t,a,n,c,s,u){this.module_id=t,this.module_index=a,this.build=n,this.bytes=c,this.reloader=s,this.hash=u}async run(){j++;let t;try{t=await this._run()}finally{j--}return t}async _run(){let t=j,a=performance.now(),n=y.dependencies,c=y.dependencies.graph_used;var s=y.dependencies.modules.length>this.module_index&&y.dependencies.modules[this.module_index];y.dependencies=n.fork(this.module_index);var u="";let h=this.build.module_path.length>0&&this.build.module_path[0]==="/"?this.build.module_path.substring(1):this.build.module_path,g=this.hash>0&&this.build.module_path.length>0?`
//# sourceMappingURL=${globalThis.location.origin}/${h}.map?b=${this.hash.toString(16)}`:"";try{let R=new Blob(g.length>0?[this.bytes,g]:[this.bytes],{type:"text/javascript"});u=URL.createObjectURL(R),y.dependencies.blobToID.set(u,this.module_id),await import(u),this.bytes=null,URL.revokeObjectURL(u),this.timings.import=performance.now()-a}catch(R){throw y.dependencies=n,URL.revokeObjectURL(u),this.bytes=null,"__BunRenderHMRError"in globalThis&&globalThis.__BunRenderHMRError(R,s.file_path,s.id),s=null,R}y.dependencies.graph_used===this.module_index&&(y.dependencies.graph_used=c),u="",this.bytes=null,E.VERBOSE&&I.debug("Re-imported",y.dependencies.modules[this.module_index].file_path,"in",e(this.timings.import),". Running callbacks");let S=performance.now(),M=s?new Set(s.additional_updaters):new Set;try{switch(this.reloader){case 1:{let R=!1,W=s&&s.previousVersion&&s.previousVersion.id===s.id&&s.hasSameExports(s.previousVersion);var x=y.dependencies.modules[this.module_index];s&&s._update!==x._update&&(W?(s.previousVersion&&(x.previousVersion=s.previousVersion),x.additional_updaters=M):(s.boundUpdate||=s.update.bind(s),x.additional_updaters?x.additional_updaters.add(s.boundUpdate):x.additional_updaters=new Set([s.boundUpdate]),x.previousVersion=s));let N=Math.min(this.module_index+1,y.dependencies.graph_used);for(let Y=0;Y<=N;Y++){let l=y.dependencies.modules[Y];if(!l)continue;let i=!1;l.exports.__hmrDisable||(typeof l.dispose=="function"&&(l.dispose(),i=!0),typeof l.accept=="function"&&(l.accept(),i=!0),l.isRefreshBoundary&&(R=!0),i||l.update())}if(j===t&&R)v.RefreshRuntime.performReactRefresh(),W&&(s.previousVersion=null);else if(j===t)v.performFullRefresh();else return Promise.reject(new G(`Expected pendingUpdateCount: ${t} but received: ${j}`));break}}}catch(R){throw y.dependencies=n,y.dependencies.modules[this.module_index].additional_updaters=M,R}return this.timings.callbacks=performance.now()-S,E.VERBOSE&&I.debug("Ran callbacks",y.dependencies.modules[this.module_index].file_path,"in",e(this.timings.callbacks),"ms"),n=null,this.timings.total=this.timings.import+this.timings.callbacks+this.timings.notify,Promise.resolve([y.dependencies.modules[this.module_index],this.timings])}}class z{modules;graph;graph_used=0;blobToID=new Map;getModuleByBlobURL(t){let a=this.blobToID.get(t);return Number.isFinite(a)&&this.getModuleByID(a)}getFilePathFromBlob(t){let a=this.getModuleByBlobURL(t);if(!a)return null;let n=a.file_path;return n.startsWith(_.client.cwd)&&(n=n.substring(_.client.cwd.length)),n}getModuleByID(t){let a=this.graph.indexOf(t);return a>-1?this.modules[a]:null}loadDefaults(){this.modules=new Array(32),this.graph=new Uint32Array(32),this.graph_used=0}static loadWithDefaults(){let t=new z;return t.loadDefaults(),t}fork(t){let a=new z;return a.modules=this.modules.slice(),a.graph_used=t,a.graph=this.graph.slice(),a}}class y{constructor(t,a){if(this.id=t,this.file_path=a,Object.defineProperty(this,"name",{get(){return this.file_path},configurable:!1,enumerable:!1}),y.dependencies||(y.dependencies=y._dependencies),this.graph_index=y.dependencies.graph_used++,y.dependencies.graph.length<=this.graph_index){let n=new Uint32Array(y.dependencies.graph.length*4);n.set(y.dependencies.graph),y.dependencies.graph=n,y.dependencies.modules.length=n.length}y.dependencies.modules[this.graph_index]=this,y.dependencies.graph[this.graph_index]=this.id}previousVersion=null;hasSameExports(t){let a=Object.keys(this.exports),n=Object.keys(t.exports);if(a.length!==n.length)return!1;for(let c=0;c<a.length;c++)if(a[c]!==n[c])return!1;return!0}#e;get _update(){return this.#e}set _update(t){this.#e=t;var a=de.get(this.file_path)}boundUpdate;update(){var t=de.get(this.id);if(t?.length)for(let a of t)a(this.exports);this._update(this.exports)}static _dependencies=z.loadWithDefaults();exportAll(t){for(let a in t)this._exports[a]=t[a],Object.defineProperty(this.exports,a,{get:this._exports[a],configurable:!0,enumerable:!0})}static dependencies;file_path;_load=function(){};id=0;graph_index=0;_exports={};exports={}}class T extends y{constructor(t,a,n){super(t,a),this.refreshRuntimeBaseID=(this.file_path.length>7?this.id.toString(36):this.file_path)+"/",v.RefreshRuntime=v.RefreshRuntime||n,v.hasInjectedFastRefresh||(n.injectIntoGlobalHook(globalThis),v.hasInjectedFastRefresh=!0)}refreshRuntimeBaseID;isRefreshBoundary=!1;$r_(t,a){v.RefreshRuntime.register(t,this.refreshRuntimeBaseID+a)}$r(t){!v.RefreshRuntime.isLikelyComponentType(t)||this.$r_(t,t.name||t.displayName)}exportAll(t){super.exportAll(t);var a=!1,n=!0;for(let c in t){if(c==="__esModule")continue;a=!0;let s=t[c]();if(s&&typeof s=="function"&&!("name"in s)&&Object.isExtensible(s)){let u={get(){return c},enumerable:!1,configurable:!0};try{Object.defineProperties(s,{name:u,displayName:u})}catch{}}if(!v.RefreshRuntime.isLikelyComponentType(s)){n=!1;continue}this.$r_(s,c)}this.isRefreshBoundary=a&&n}loaded(t){this._update=t}}I={debug(...k){console.debug(...k)},error(...k){console.error(...k)},log(...k){console.log(...k)},warn(...k){console.warn(...k)}},Ie=y,Re=T,Le=_,Pe=H,"document"in globalThis&&document.addEventListener("onimportcss",_.onCSSImport,{passive:!0}),globalThis.__BUN=_,globalThis.__BUN_ERROR=m}var ne,ue,Q,Ue,de,I;var Oe,qe,Te;{let e;(E=>(E[E.entry_point=0]="entry_point",E[E.stmt=1]="stmt",E[E.require=2]="require",E[E.dynamic=3]="dynamic",E[E.require_resolve=4]="require_resolve",E[E.at=5]="at",E[E.at_conditional=6]="at_conditional",E[E.url=7]="url"))(e||={});class r extends Error{constructor(v){super(v.message),this.name=v.name,this.data=v}data;get position(){return this.data.position}get[Symbol.toStringTag](){return`${this.name}: ${this.message}`}}class o extends r{constructor(v){super(v),this.name=v.name,this.data=v}data;get importKind(){return this.data.importKind}get specifier(){return this.data.specifier||""}}qe=o,Oe=r,Te=e}var Rr=Symbol.for,Fe=Object.create,ur=Object.getOwnPropertyDescriptors,K=Object.defineProperty,dr=Object.getPrototypeOf,je=Object.prototype.hasOwnProperty,fr=Object.getOwnPropertyNames,cr=Object.getOwnPropertyDescriptor,Ve=e=>K(e,"__esModule",{value:!0,configurable:!0}),hr=(e,r,o)=>{for(let f in o)je.call(e,f)||K(e,f,{get:()=>r()[o[f]],enumerable:!0,configurable:!0});return e},vr=e=>De(Ve(K(e!=null?Fe(dr(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0,configurable:!0}:{value:e,enumerable:!0,configurable:!0})),e),Ce=Symbol.for("CommonJSTransformed"),fe=Symbol.for("CommonJS"),ce=(e,r)=>{var o,f=!1;let v=function(){if(f)return o.exports;f=!0,e((o={exports:{}},o),o.exports);let m=typeof o.exports;return(m==="object"||m==="function")&&!o.exports[Ce]&&Object.isExtensible(o.exports)&&(Object.defineProperty(o.exports,Ce,{value:!0,enumerable:!1,configurable:!1}),"default"in o.exports||Object.defineProperty(o.exports,"default",{get(){return o.exports},set(U){if(U!==o.exports)return o.exports=U,!0},enumerable:!1,configurable:!0})),o.exports};return v[fe]=!0,v},pr=ce,We=e=>e!=null&&typeof e=="object"&&(e.default&&e.default[fe]||e[fe]),$e=e=>We(e)?e.default():e;$e.d=e=>e;var wr=ce,yr=(e,r)=>(Object.defineProperty(e,"name",{value:r,enumerable:!1,configurable:!0}),e),gr=(e,r)=>{for(var o in r)K(e,o,{get:r[o],enumerable:!0,configurable:!0,set:f=>r[o]=()=>f})},mr=(e,r)=>{for(var o in r)K(e,o,{get:()=>r[o],set:f=>r[o]=f,enumerable:!0,configurable:!0})},_r=(e,r)=>{K(e,"default",{get:()=>r,set:o=>r=o,enumerable:!0,configurable:!0})},De=(e,r,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let f of fr(r))!je.call(e,f)&&f!=="default"&&K(e,f,{get:()=>r[f],configurable:!0,enumerable:!(o=cr(r,f))||o.enumerable});return e};function Ne(e){for(let r in e)return!0;return!1}function kr(e,r){var o=Fe(r,ur(e));for(let f in r)o[f]===void 0&&(o[f]=r[f]);return o}var xr=(e,r)=>Ne(r)?Ne(e)?kr(e,r):r:e;var Ke=we(Je());globalThis.process||={env:{},cwd(){return"/bun-fake-dir/"}};return er(Sr);})();
// ---
// Public exports from runtime
// Compatible with bun's Runtime Environment and web browsers.
export var $$m =
"$primordials" in globalThis ? $primordials.require : BUN_RUNTIME.$$m;
export var __HMRModule = BUN_RUNTIME.__HMRModule;
export var __FastRefreshModule = BUN_RUNTIME.__FastRefreshModule;
export var __HMRClient = BUN_RUNTIME.__HMRClient;
export var __markAsModule = BUN_RUNTIME.__markAsModule;
export var $$lzy = BUN_RUNTIME.$$lzy;
export var __toModule = BUN_RUNTIME.__toModule;
export var __commonJS = BUN_RUNTIME.__commonJS;
export var __require = BUN_RUNTIME.__require;
export var __name = BUN_RUNTIME.__name;
export var __export = BUN_RUNTIME.__export;
export var __reExport = BUN_RUNTIME.__reExport;
export var __cJS2eSM = BUN_RUNTIME.__cJS2eSM;
export var regeneratorRuntime = BUN_RUNTIME.regeneratorRuntime;
export var __exportValue = BUN_RUNTIME.__exportValue;
export var __exportDefault = BUN_RUNTIME.__exportDefault;
export var __merge = BUN_RUNTIME.__merge;
export var $$bun_runtime_json_parse = JSON.parse;
export var __internalIsCommonJSNamespace =
BUN_RUNTIME.__internalIsCommonJSNamespace;
globalThis.__internalIsCommonJSNamespace ||= __internalIsCommonJSNamespace;
globalThis.require ||= BUN_RUNTIME.__require;
globalThis.self ||= globalThis;
// sole-token/index.js
export var $99d9803c = $$m({
"sole-token/index.js": (module, exports) => {
let formate = (uuidArray, delimiter) => {
return uuidArray.join(delimiter);
};
const uuid1 = __require.d($e00e0be9()).getUUID1;
const uuid4 = __require.d($35bc24e6()).uuid4;
const ids = __require.d($2453c1c());
const soleToken = (n_config) => {
let config = { ...{ type: "uuid4", delimiter: "-", size: 32 }, ...n_config };
let size = config.size;
let delimiter = config.delimiter;
let type = config.type;
if (size < 32 && type !== "id")
return formate(uuid4(), "").slice(0, size);
else if (size === 32 || type === "id")
switch (type) {
case "uuid1":
return formate(uuid1(), delimiter);
case "uuid4":
return formate(uuid4(), delimiter);
case "token":
return formate(uuid4(), "");
case "id":
return ids().slice(0, size);
}
else
throw "The size of the UUID or token are not supported!";
};
module.exports = {
soleToken
};
}
}["sole-token/index.js"]);
// sole-token/src/uuid1.js
export var $e00e0be9 = $$m({
"sole-token/src/uuid1.js": (module, exports) => {
const { networkInterfaces } = __require.d($bb9cfe6f());
let getUUID1 = () => {
let clock_seq = parseInt(Math.random() * 1000 % 1000);
let time_low = new Date().getTime() & 4294967295;
let time_mid = new Date().getTime() >> 32 & 65535;
let time_high_and_version = new Date().getTime() >> 48 & 4095;
time_high_and_version |= 1 << 12;
let time_seq_low = clock_seq & 255;
let time_seq_hi_and_reserved = (clock_seq & 16128) >> 8;
time_seq_hi_and_reserved |= 128;
let final_time_seq = time_seq_low * time_seq_hi_and_reserved & 65535;
let node_id = networkInterfaces();
return [time_low.toString(16), time_mid.toString(16), time_high_and_version.toString(16), final_time_seq.toString(16).length < 4 ? "0" + final_time_seq.toString(16) : final_time_seq.toString(16), node_id["eth1"][0].mac.replace(/:/g, "")];
};
module.exports = {
getUUID1
};
}
}["sole-token/src/uuid1.js"]);
// sole-token/src/uuid4.js
export var $35bc24e6 = $$m({
"sole-token/src/uuid4.js": (module, exports) => {
let uuid4 = () => {
let uuid = "";
while (true) {
let char = String.fromCharCode(Math.floor(Math.random() * (126 - 64 + 1) + 64));
if (uuid.length > 5)
break;
if (char != " " && char != "[" && char != "]" && char != "\\" && char != "/" && char != "{" && char != "}" && char != "(" && char != ")" && char != `'` && char != `"` && char != "`")
uuid += char;
}
let total = 0;
while (true) {
let num = Math.round(Math.random() * 1e6);
if (total > 1e6)
break;
total += num;
}
uuid = uuid + total;
while (true) {
let char = String.fromCharCode(Math.floor(Math.random() * (126 - 64 + 1) + 64));
if (uuid.length > 31)
break;
if (char != " " && char != "[" && char != "]" && char != "\\" && char != "/" && char != "{" && char != "}" && char != "(" && char != ")" && char != `'` && char != `"` && char != "`")
uuid += char;
}
return [uuid.substring(0, 8), uuid.substring(8, 12), uuid.substring(12, 16), uuid.substring(16, 20), uuid.substring(20, 32)];
};
module.exports = {
uuid4
};
}
}["sole-token/src/uuid4.js"]);
// os/index.js
export var $bb9cfe6f = $$m({
"os/index.js": (module, exports) => {
var p = Object.create;
var f = Object.defineProperty;
var s = Object.getOwnPropertyDescriptor;
var d = Object.getOwnPropertyNames;
var l = Object.getPrototypeOf;
var g = Object.prototype.hasOwnProperty;
var a = (n) => f(n, "__esModule", { value: true });
var h = (n, t) => () => (t || n((t = { exports: {} }).exports, t), t.exports);
var o = (n, t, e, c) => {
if (t && typeof t == "object" || typeof t == "function")
for (let u of d(t))
!g.call(n, u) && (e || u !== "default") && f(n, u, { get: () => t[u], enumerable: !(c = s(t, u)) || c.enumerable });
return n;
};
var v = (n, t) => o(a(f(n != null ? p(l(n)) : {}, "default", !t && n && n.__esModule ? { get: () => n.default, enumerable: true } : { value: n, enumerable: true })), n);
var w = ((n) => (t, e) => n && n.get(t) || (e = o(a({}), t, 1), n && n.set(t, e), e))(typeof WeakMap != "undefined" ? new WeakMap : 0);
var m = h((r) => {
r.endianness = function() {
return "LE";
};
r.hostname = function() {
return typeof location != "undefined" ? location.hostname : "";
};
r.loadavg = function() {
return [];
};
r.uptime = function() {
return 0;
};
r.freemem = function() {
return Number.MAX_VALUE;
};
r.totalmem = function() {
return Number.MAX_VALUE;
};
r.cpus = function() {
return [];
};
r.type = function() {
return "Browser";
};
r.release = function() {
return typeof navigator != "undefined" ? navigator.appVersion : "";
};
r.networkInterfaces = r.getNetworkInterfaces = function() {
return {};
};
r.arch = function() {
return "javascript";
};
r.platform = function() {
return "browser";
};
r.tmpdir = r.tmpDir = function() {
return "/tmp";
};
r.EOL = `
`;
r.homedir = function() {
return "/";
};
});
var i = {};
o(i, v(m()));
module.exports = w(i);
}
}["os/index.js"]);
// sole-token/src/num.js
export var $2453c1c = $$m({
"sole-token/src/num.js": (module, exports) => {
const id = () => {
let ids = "";
while (true) {
ids += parseInt(Math.random() * 100 % 100);
if (ids.length >= 32)
break;
}
return ids.slice(0, 32);
};
module.exports = id;
}
}["sole-token/src/num.js"]);