@imtbl/checkout-widgets 2.11.1-alpha.0 → 2.11.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/browser/{AddTokensWidget-gSrZfodG.js → AddTokensWidget-BZyjFBGu.js} +3 -3
  2. package/dist/browser/{BridgeWidget-r0paST80.js → BridgeWidget-BIRFR94g.js} +6 -6
  3. package/dist/browser/{CommerceWidget-BVeT67AH.js → CommerceWidget-BLkWVOmt.js} +13 -13
  4. package/dist/browser/{FeesBreakdown-B6O5YeOv.js → FeesBreakdown-BvC5hLYF.js} +1 -1
  5. package/dist/browser/{OnRampWidget-DV3hIW2s.js → OnRampWidget-DQkLf241.js} +3 -3
  6. package/dist/browser/{SaleWidget-BZLL8XJQ.js → SaleWidget-D1n2M6JS.js} +10 -10
  7. package/dist/browser/{SpendingCapHero-DFGP2TMp.js → SpendingCapHero-CuoInnkn.js} +1 -1
  8. package/dist/browser/{SwapWidget-Cpa0jpUE.js → SwapWidget-CUhPZBmW.js} +6 -6
  9. package/dist/browser/{TokenImage-BTMwZah0.js → TokenImage-C6i3eIQ5.js} +1 -1
  10. package/dist/browser/{TopUpView-BK7GbT2A.js → TopUpView-SmqB_f4n.js} +1 -1
  11. package/dist/browser/{WalletApproveHero-DdyInWlA.js → WalletApproveHero-DvFG8pfk.js} +2 -2
  12. package/dist/browser/{WalletWidget-DG3ByO2c.js → WalletWidget-kEOeDtpv.js} +3 -3
  13. package/dist/browser/{auto-track-qSbc-Us2.js → auto-track-DlvNeUL-.js} +1 -1
  14. package/dist/browser/{index-BnNYLtGN.js → index-BFZhntNM.js} +2 -2
  15. package/dist/browser/{index-DXDrI-qV.js → index-CM_zsKt9.js} +1 -1
  16. package/dist/browser/{index-CxkUooDa.js → index-CSqnfOB-.js} +1 -1
  17. package/dist/browser/{index-DjajM2c5.js → index-CzQ9ByiO.js} +1 -1
  18. package/dist/browser/{index-CIKxNawl.js → index-DWkU02T_.js} +1 -1
  19. package/dist/browser/{index-DdOdmAjy.js → index-Damvojz7.js} +525 -525
  20. package/dist/browser/{index-Ms0Pazz9.js → index-DjDJbucC.js} +1 -1
  21. package/dist/browser/{index-Bbasl0Oa.js → index-yTaTvbT6.js} +1 -1
  22. package/dist/browser/index.js +1 -1
  23. package/dist/browser/{index.umd-DhQvwHkx.js → index.umd-ZoMyDEtF.js} +1 -1
  24. package/dist/browser/{useInterval-B0lqbTtc.js → useInterval-B50K-Ven.js} +1 -1
  25. package/package.json +7 -7
@@ -1,18 +1,386 @@
1
1
  function _mergeNamespaces(n, m) {
2
- m.forEach(function (e) {
3
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
4
- if (k !== 'default' && !(k in n)) {
5
- var d = Object.getOwnPropertyDescriptor(e, k);
6
- Object.defineProperty(n, k, d.get ? d : {
7
- enumerable: true,
8
- get: function () { return e[k]; }
9
- });
10
- }
2
+ m.forEach(function (e) {
3
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
4
+ if (k !== 'default' && !(k in n)) {
5
+ var d = Object.getOwnPropertyDescriptor(e, k);
6
+ Object.defineProperty(n, k, d.get ? d : {
7
+ enumerable: true,
8
+ get: function () { return e[k]; }
9
+ });
10
+ }
11
+ });
12
+ });
13
+ return Object.freeze(n);
14
+ }
15
+
16
+ /**
17
+ * tiny-lru
18
+ *
19
+ * @copyright 2023 Jason Mulligan <jason.mulligan@avoidwork.com>
20
+ * @license BSD-3-Clause
21
+ * @version 11.2.5
22
+ */
23
+ class LRU {
24
+ constructor (max = 0, ttl = 0, resetTtl = false) {
25
+ this.first = null;
26
+ this.items = Object.create(null);
27
+ this.last = null;
28
+ this.max = max;
29
+ this.resetTtl = resetTtl;
30
+ this.size = 0;
31
+ this.ttl = ttl;
32
+ }
33
+
34
+ clear () {
35
+ this.first = null;
36
+ this.items = Object.create(null);
37
+ this.last = null;
38
+ this.size = 0;
39
+
40
+ return this;
41
+ }
42
+
43
+ delete (key) {
44
+ if (this.has(key)) {
45
+ const item = this.items[key];
46
+
47
+ delete this.items[key];
48
+ this.size--;
49
+
50
+ if (item.prev !== null) {
51
+ item.prev.next = item.next;
52
+ }
53
+
54
+ if (item.next !== null) {
55
+ item.next.prev = item.prev;
56
+ }
57
+
58
+ if (this.first === item) {
59
+ this.first = item.next;
60
+ }
61
+
62
+ if (this.last === item) {
63
+ this.last = item.prev;
64
+ }
65
+ }
66
+
67
+ return this;
68
+ }
69
+
70
+ entries (keys = this.keys()) {
71
+ return keys.map(key => [key, this.get(key)]);
72
+ }
73
+
74
+ evict (bypass = false) {
75
+ if (bypass || this.size > 0) {
76
+ const item = this.first;
77
+
78
+ delete this.items[item.key];
79
+
80
+ if (--this.size === 0) {
81
+ this.first = null;
82
+ this.last = null;
83
+ } else {
84
+ this.first = item.next;
85
+ this.first.prev = null;
86
+ }
87
+ }
88
+
89
+ return this;
90
+ }
91
+
92
+ expiresAt (key) {
93
+ let result;
94
+
95
+ if (this.has(key)) {
96
+ result = this.items[key].expiry;
97
+ }
98
+
99
+ return result;
100
+ }
101
+
102
+ get (key) {
103
+ let result;
104
+
105
+ if (this.has(key)) {
106
+ const item = this.items[key];
107
+
108
+ if (this.ttl > 0 && item.expiry <= Date.now()) {
109
+ this.delete(key);
110
+ } else {
111
+ result = item.value;
112
+ this.set(key, result, true);
113
+ }
114
+ }
115
+
116
+ return result;
117
+ }
118
+
119
+ has (key) {
120
+ return key in this.items;
121
+ }
122
+
123
+ keys () {
124
+ const result = [];
125
+ let x = this.first;
126
+
127
+ while (x !== null) {
128
+ result.push(x.key);
129
+ x = x.next;
130
+ }
131
+
132
+ return result;
133
+ }
134
+
135
+ set (key, value, bypass = false, resetTtl = this.resetTtl) {
136
+ let item;
137
+
138
+ if (bypass || this.has(key)) {
139
+ item = this.items[key];
140
+ item.value = value;
141
+
142
+ if (bypass === false && resetTtl) {
143
+ item.expiry = this.ttl > 0 ? Date.now() + this.ttl : this.ttl;
144
+ }
145
+
146
+ if (this.last !== item) {
147
+ const last = this.last,
148
+ next = item.next,
149
+ prev = item.prev;
150
+
151
+ if (this.first === item) {
152
+ this.first = item.next;
153
+ }
154
+
155
+ item.next = null;
156
+ item.prev = this.last;
157
+ last.next = item;
158
+
159
+ if (prev !== null) {
160
+ prev.next = next;
161
+ }
162
+
163
+ if (next !== null) {
164
+ next.prev = prev;
165
+ }
166
+ }
167
+ } else {
168
+ if (this.max > 0 && this.size === this.max) {
169
+ this.evict(true);
170
+ }
171
+
172
+ item = this.items[key] = {
173
+ expiry: this.ttl > 0 ? Date.now() + this.ttl : this.ttl,
174
+ key: key,
175
+ prev: this.last,
176
+ next: null,
177
+ value
178
+ };
179
+
180
+ if (++this.size === 1) {
181
+ this.first = item;
182
+ } else {
183
+ this.last.next = item;
184
+ }
185
+ }
186
+
187
+ this.last = item;
188
+
189
+ return this;
190
+ }
191
+
192
+ values (keys = this.keys()) {
193
+ return keys.map(key => this.get(key));
194
+ }
195
+ }
196
+
197
+ function lru (max = 1000, ttl = 0, resetTtl = false) {
198
+ if (isNaN(max) || max < 0) {
199
+ throw new TypeError("Invalid max value");
200
+ }
201
+
202
+ if (isNaN(ttl) || ttl < 0) {
203
+ throw new TypeError("Invalid ttl value");
204
+ }
205
+
206
+ if (typeof resetTtl !== "boolean") {
207
+ throw new TypeError("Invalid resetTtl value");
208
+ }
209
+
210
+ return new LRU(max, ttl, resetTtl);
211
+ }
212
+
213
+ const defaultLRUOptions = {
214
+ max: 1000,
215
+ };
216
+ /**
217
+ * Returns a memorised version of the target function.
218
+ * The cache key depends on the arguments passed to the function.
219
+ *
220
+ * Pass in options to customise the caching behaviour
221
+ * @param cachedFn Function to cache
222
+ * @param options Memorization and LRUCache Options
223
+ */
224
+ const memorise = (cachedFn, options = {}) => {
225
+ // Extract defaults
226
+ const { cache, cacheKeyResolver = defaultGenCacheKey, onHit, lruOptions = {}, } = options;
227
+ const cacheOptions = { ...defaultLRUOptions, ...lruOptions };
228
+ const _cache = (cache ||
229
+ lru(cacheOptions.max, cacheOptions.ttl));
230
+ // Cached fn
231
+ function returnFn(...args) {
232
+ const cacheKey = cacheKeyResolver(...args);
233
+ const cachedValue = _cache.get(cacheKey);
234
+ const keyCached = _cache.has(cacheKey);
235
+ if (keyCached) {
236
+ if (onHit) {
237
+ onHit(cacheKey, cachedValue, _cache);
238
+ }
239
+ return cachedValue;
240
+ }
241
+ // No cache hit, run function and cache result
242
+ const result = cachedFn.apply(this, args);
243
+ _cache.set(cacheKey, result);
244
+ return result;
245
+ }
246
+ // Expose the cache
247
+ returnFn._cache = _cache;
248
+ return returnFn;
249
+ };
250
+ /**
251
+ * Generic args handler function.
252
+ * @param args Argument array
253
+ */
254
+ const defaultGenCacheKey = (...args) => {
255
+ if (args.length === 0) {
256
+ return "no-args";
257
+ }
258
+ return args
259
+ .map((val) => {
260
+ if (val === undefined) {
261
+ return "undefined";
262
+ }
263
+ if (val === null) {
264
+ return "null";
265
+ }
266
+ if (Array.isArray(val)) {
267
+ return `[${defaultGenCacheKey(...val)}]`;
268
+ }
269
+ if (typeof val === "object") {
270
+ return `{${defaultGenCacheKey(...sortedObjectEntries(val))}}`;
271
+ }
272
+ return JSON.stringify(val);
273
+ })
274
+ .join(",");
275
+ };
276
+ const sortedObjectEntries = (obj) => {
277
+ return Object.entries(obj).sort((a, b) => {
278
+ if (a[0] < b[0]) {
279
+ return -1;
280
+ }
281
+ return 1;
11
282
  });
12
- });
13
- return Object.freeze(n);
283
+ };
284
+
285
+ var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
286
+
287
+ function getDefaultExportFromCjs$2 (x) {
288
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
289
+ }
290
+
291
+ function getAugmentedNamespace(n) {
292
+ if (n.__esModule) return n;
293
+ var f = n.default;
294
+ if (typeof f == "function") {
295
+ var a = function a () {
296
+ if (this instanceof a) {
297
+ return Reflect.construct(f, arguments, this.constructor);
298
+ }
299
+ return f.apply(this, arguments);
300
+ };
301
+ a.prototype = f.prototype;
302
+ } else a = {};
303
+ Object.defineProperty(a, '__esModule', {value: true});
304
+ Object.keys(n).forEach(function (k) {
305
+ var d = Object.getOwnPropertyDescriptor(n, k);
306
+ Object.defineProperty(a, k, d.get ? d : {
307
+ enumerable: true,
308
+ get: function () {
309
+ return n[k];
310
+ }
311
+ });
312
+ });
313
+ return a;
14
314
  }
15
315
 
316
+ var lib$4 = {};
317
+
318
+ Object.defineProperty(lib$4, "__esModule", { value: true });
319
+ lib$4.clearGlobalNamespace = getGlobalisedValue_1 = lib$4.getGlobalisedValue = void 0;
320
+ const GLOBALISE_KEY_PREFIX = "globalise__singleton__";
321
+ const fallbackGlobal = {};
322
+ const getGlobalObject = () => {
323
+ if (typeof window !== "undefined") {
324
+ return window;
325
+ }
326
+ if (typeof globalThis !== "undefined") {
327
+ return globalThis;
328
+ }
329
+ return fallbackGlobal;
330
+ };
331
+ const validateInputs = (namespace, key) => {
332
+ if (typeof namespace !== "string") {
333
+ throw "Invalid namespace key";
334
+ }
335
+ if (typeof key !== "string") {
336
+ throw "Invalid item key";
337
+ }
338
+ };
339
+ const createGlobalisedKey = (namespace) => {
340
+ return `${GLOBALISE_KEY_PREFIX}${namespace}`;
341
+ };
342
+ const getGlobalScopedObject = (namespace) => {
343
+ const globalObject = getGlobalObject();
344
+ const GLOBALISE_KEY = createGlobalisedKey(namespace);
345
+ // Initialise global object
346
+ if (!globalObject[GLOBALISE_KEY]) {
347
+ globalObject[GLOBALISE_KEY] = {};
348
+ }
349
+ return globalObject[GLOBALISE_KEY];
350
+ };
351
+ const getSingleton = (namespace, key) => {
352
+ const scopedObject = getGlobalScopedObject(namespace);
353
+ return scopedObject[key] || undefined;
354
+ };
355
+ const setSingleton = (namespace, key, value) => {
356
+ const scopedObject = getGlobalScopedObject(namespace);
357
+ scopedObject[key] = value;
358
+ };
359
+ const getGlobalisedValue = (namespace, key, value) => {
360
+ validateInputs(namespace, key);
361
+ const existing = getSingleton(namespace, key);
362
+ if (existing !== undefined) {
363
+ return existing;
364
+ }
365
+ setSingleton(namespace, key, value);
366
+ return value;
367
+ };
368
+ var getGlobalisedValue_1 = lib$4.getGlobalisedValue = getGlobalisedValue;
369
+ const clearGlobalNamespace = (namespace) => {
370
+ const globalObject = getGlobalObject();
371
+ const globalisedKey = createGlobalisedKey(namespace);
372
+ if (globalObject[globalisedKey] !== undefined) {
373
+ delete globalObject[globalisedKey];
374
+ }
375
+ };
376
+ lib$4.clearGlobalNamespace = clearGlobalNamespace;
377
+
378
+ var Ut$2=Object.defineProperty;var St$1=(s,c)=>{for(var p in c)Ut$2(s,p,{get:c[p],enumerable:!0});};function Br$1(s){throw new Error("Node.js process "+s+" is not supported by JSPM core outside of Node.js")}var G$3=[],tr$1=!1,H$3,cr$2=-1;function kt$2(){!tr$1||!H$3||(tr$1=!1,H$3.length?G$3=H$3.concat(G$3):cr$2=-1,G$3.length&&Vr$1());}function Vr$1(){if(!tr$1){var s=setTimeout(kt$2,0);tr$1=!0;for(var c=G$3.length;c;){for(H$3=G$3,G$3=[];++cr$2<c;)H$3&&H$3[cr$2].run();cr$2=-1,c=G$3.length;}H$3=null,tr$1=!1,clearTimeout(s);}}function _t$1(s){var c=new Array(arguments.length-1);if(arguments.length>1)for(var p=1;p<arguments.length;p++)c[p-1]=arguments[p];G$3.push(new Gr$1(s,c)),G$3.length===1&&!tr$1&&setTimeout(Vr$1,0);}function Gr$1(s,c){this.fun=s,this.array=c;}Gr$1.prototype.run=function(){this.fun.apply(null,this.array);};var Pt$1="browser",Rt$1="x64",bt$1="browser",Nt$1={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},vt$1=["/usr/bin/node"],Mt$1=[],Ct$3="v16.8.0",Lt$2={},Dt$2=function(s,c){console.warn((c?c+": ":"")+s);},$t$2=function(s){Br$1("binding");},Ft$2=function(s){return 0},Ot$2=function(){return "/"},Vt$1=function(s){},Gt$3={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};function M$7(){}var Yt$2=M$7,Kt$2=[];function jt$3(s){Br$1("_linkedBinding");}var Ht$2={},Wt$2=!1,qt$2={};function Xt$3(s){Br$1("dlopen");}function Jt$3(){return []}function zt$2(){return []}var Qt$1=M$7,Zt$2=M$7,Tr$2=function(){return {}},re$3=Tr$2,te$3=Tr$2,ee$2=M$7,ne$5=M$7,ie$5=M$7,oe$4={};function se$3(s,c){if(!s)throw new Error(c||"assertion error")}var ue$2={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},ae$2=M$7,ce$2=M$7;function pe$3(){return !1}var le$2=M$7,fe$4=M$7,he$2=M$7,de$2=M$7,me$3=M$7,we$3=void 0,ge$4=void 0,ye$3=void 0,Ee$2=M$7,Ie$1=2,Be$3=1,Te$2="/bin/usr/node",Ae$2=9229,xe$2="node",Ue$3=[],Se$3=M$7,K$7={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};K$7.now===void 0&&(yr$2=Date.now(),K$7.timing&&K$7.timing.navigationStart&&(yr$2=K$7.timing.navigationStart),K$7.now=()=>Date.now()-yr$2);var yr$2;function ke$3(){return K$7.now()/1e3}var Er$1=1e9;function Ir$2(s){var c=Math.floor((Date.now()-K$7.now())*.001),p=K$7.now()*.001,l=Math.floor(p)+c,h=Math.floor(p%1*1e9);return s&&(l=l-s[0],h=h-s[1],h<0&&(l--,h+=Er$1)),[l,h]}Ir$2.bigint=function(s){var c=Ir$2(s);return typeof BigInt>"u"?c[0]*Er$1+c[1]:BigInt(c[0]*Er$1)+BigInt(c[1])};var _e$2=10,Pe$3={},Re$4=0;function j$7(){return T$6}var be$3=j$7,Ne$1=j$7,ve$2=j$7,Me$1=j$7,Ce$3=j$7,Le$1=M$7,De$3=j$7,$e$3=j$7;function Fe$3(s){return []}var T$6={version:Ct$3,versions:Lt$2,arch:Rt$1,platform:bt$1,release:Gt$3,_rawDebug:Yt$2,moduleLoadList:Kt$2,binding:$t$2,_linkedBinding:jt$3,_events:Pe$3,_eventsCount:Re$4,_maxListeners:_e$2,on:j$7,addListener:be$3,once:Ne$1,off:ve$2,removeListener:Me$1,removeAllListeners:Ce$3,emit:Le$1,prependListener:De$3,prependOnceListener:$e$3,listeners:Fe$3,domain:Ht$2,_exiting:Wt$2,config:qt$2,dlopen:Xt$3,uptime:ke$3,_getActiveRequests:Jt$3,_getActiveHandles:zt$2,reallyExit:Qt$1,_kill:Zt$2,cpuUsage:Tr$2,resourceUsage:re$3,memoryUsage:te$3,kill:ee$2,exit:ne$5,openStdin:ie$5,allowedNodeEnvironmentFlags:oe$4,assert:se$3,features:ue$2,_fatalExceptions:ae$2,setUncaughtExceptionCaptureCallback:ce$2,hasUncaughtExceptionCaptureCallback:pe$3,emitWarning:Dt$2,nextTick:_t$1,_tickCallback:le$2,_debugProcess:fe$4,_debugEnd:he$2,_startProfilerIdleNotifier:de$2,_stopProfilerIdleNotifier:me$3,stdout:we$3,stdin:ye$3,stderr:ge$4,abort:Ee$2,umask:Ft$2,chdir:Vt$1,cwd:Ot$2,env:Nt$1,title:Pt$1,argv:vt$1,execArgv:Mt$1,pid:Ie$1,ppid:Be$3,execPath:Te$2,debugPort:Ae$2,hrtime:Ir$2,argv0:xe$2,_preload_modules:Ue$3,setSourceMapsEnabled:Se$3};var nr$1={},Yr$1=!1;function Oe$2(){if(Yr$1)return nr$1;Yr$1=!0,nr$1.byteLength=E,nr$1.toByteArray=C,nr$1.fromByteArray=_;for(var s=[],c=[],p=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,w=l.length;h<w;++h)s[h]=l[h],c[l.charCodeAt(h)]=h;c[45]=62,c[95]=63;function o(f){var d=f.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=f.indexOf("=");g===-1&&(g=d);var A=g===d?0:4-g%4;return [g,A]}function E(f){var d=o(f),g=d[0],A=d[1];return (g+A)*3/4-A}function b(f,d,g){return (d+g)*3/4-g}function C(f){var d,g=o(f),A=g[0],v=g[1],P=new p(b(f,A,v)),D=0,F=v>0?A-4:A,L;for(L=0;L<F;L+=4)d=c[f.charCodeAt(L)]<<18|c[f.charCodeAt(L+1)]<<12|c[f.charCodeAt(L+2)]<<6|c[f.charCodeAt(L+3)],P[D++]=d>>16&255,P[D++]=d>>8&255,P[D++]=d&255;return v===2&&(d=c[f.charCodeAt(L)]<<2|c[f.charCodeAt(L+1)]>>4,P[D++]=d&255),v===1&&(d=c[f.charCodeAt(L)]<<10|c[f.charCodeAt(L+1)]<<4|c[f.charCodeAt(L+2)]>>2,P[D++]=d>>8&255,P[D++]=d&255),P}function B(f){return s[f>>18&63]+s[f>>12&63]+s[f>>6&63]+s[f&63]}function k(f,d,g){for(var A,v=[],P=d;P<g;P+=3)A=(f[P]<<16&16711680)+(f[P+1]<<8&65280)+(f[P+2]&255),v.push(B(A));return v.join("")}function _(f){for(var d,g=f.length,A=g%3,v=[],P=16383,D=0,F=g-A;D<F;D+=P)v.push(k(f,D,D+P>F?F:D+P));return A===1?(d=f[g-1],v.push(s[d>>2]+s[d<<4&63]+"==")):A===2&&(d=(f[g-2]<<8)+f[g-1],v.push(s[d>>10]+s[d>>4&63]+s[d<<2&63]+"=")),v.join("")}return nr$1}var pr$1={},Kr$2=!1;function Ve$1(){if(Kr$2)return pr$1;Kr$2=!0;return pr$1.read=function(s,c,p,l,h){var w,o,E=h*8-l-1,b=(1<<E)-1,C=b>>1,B=-7,k=p?h-1:0,_=p?-1:1,f=s[c+k];for(k+=_,w=f&(1<<-B)-1,f>>=-B,B+=E;B>0;w=w*256+s[c+k],k+=_,B-=8);for(o=w&(1<<-B)-1,w>>=-B,B+=l;B>0;o=o*256+s[c+k],k+=_,B-=8);if(w===0)w=1-C;else {if(w===b)return o?NaN:(f?-1:1)*(1/0);o=o+Math.pow(2,l),w=w-C;}return (f?-1:1)*o*Math.pow(2,w-l)},pr$1.write=function(s,c,p,l,h,w){var o,E,b,C=w*8-h-1,B=(1<<C)-1,k=B>>1,_=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=l?0:w-1,d=l?1:-1,g=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(E=isNaN(c)?1:0,o=B):(o=Math.floor(Math.log(c)/Math.LN2),c*(b=Math.pow(2,-o))<1&&(o--,b*=2),o+k>=1?c+=_/b:c+=_*Math.pow(2,1-k),c*b>=2&&(o++,b/=2),o+k>=B?(E=0,o=B):o+k>=1?(E=(c*b-1)*Math.pow(2,h),o=o+k):(E=c*Math.pow(2,k-1)*Math.pow(2,h),o=0));h>=8;s[p+f]=E&255,f+=d,E/=256,h-=8);for(o=o<<h|E,C+=h;C>0;s[p+f]=o&255,f+=d,o/=256,C-=8);s[p+f-d]|=g*128;},pr$1}var W$3={},jr$1=!1;function Ge$2(){if(jr$1)return W$3;jr$1=!0;let s=Oe$2(),c=Ve$1(),p=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;W$3.Buffer=o,W$3.SlowBuffer=v,W$3.INSPECT_MAX_BYTES=50;let l=2147483647;W$3.kMaxLength=l,o.TYPED_ARRAY_SUPPORT=h(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function h(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return !1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function w(e){if(e>l)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,o.prototype),r}function o(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(e)}return E(e,r,t)}o.poolSize=8192;function E(e,r,t){if(typeof e=="string")return k(e,r);if(ArrayBuffer.isView(e))return f(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return d(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return o.from(n,r,t);let i=g(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return o.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}o.from=function(e,r,t){return E(e,r,t)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function b(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function C(e,r,t){return b(e),e<=0?w(e):r!==void 0?typeof t=="string"?w(e).fill(r,t):w(e).fill(r):w(e)}o.alloc=function(e,r,t){return C(e,r,t)};function B(e){return b(e),w(e<0?0:A(e)|0)}o.allocUnsafe=function(e){return B(e)},o.allocUnsafeSlow=function(e){return B(e)};function k(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=P(e,r)|0,n=w(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function _(e){let r=e.length<0?0:A(e.length)|0,t=w(r);for(let n=0;n<r;n+=1)t[n]=e[n]&255;return t}function f(e){if(O(e,Uint8Array)){let r=new Uint8Array(e);return d(r.buffer,r.byteOffset,r.byteLength)}return _(e)}function d(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,o.prototype),n}function g(e){if(o.isBuffer(e)){let r=A(e.length)|0,t=w(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||gr(e.length)?w(0):_(e);if(e.type==="Buffer"&&Array.isArray(e.data))return _(e.data)}function A(e){if(e>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return e|0}function v(e){return +e!=e&&(e=0),o.alloc(+e)}o.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==o.prototype},o.compare=function(r,t){if(O(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),O(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(r)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,i=t.length;for(let u=0,a=Math.min(n,i);u<a;++u)if(r[u]!==t[u]){n=r[u],i=t[u];break}return n<i?-1:i<n?1:0},o.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return !0;default:return !1}},o.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return o.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;let i=o.allocUnsafe(t),u=0;for(n=0;n<r.length;++n){let a=r[n];if(O(a,Uint8Array))u+a.length>i.length?(o.isBuffer(a)||(a=o.from(a)),a.copy(i,u)):Uint8Array.prototype.set.call(i,a,u);else if(o.isBuffer(a))a.copy(i,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=a.length;}return i};function P(e,r){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return wr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Or(e).length;default:if(i)return n?-1:wr(e).length;r=(""+r).toLowerCase(),i=!0;}}o.byteLength=P;function D(e,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return "";for(e||(e="utf8");;)switch(e){case"hex":return wt(this,r,t);case"utf8":case"utf-8":return br(this,r,t);case"ascii":return dt(this,r,t);case"latin1":case"binary":return mt(this,r,t);case"base64":return ft(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0;}}o.prototype._isBuffer=!0;function F(e,r,t){let n=e[r];e[r]=e[t],e[t]=n;}o.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)F(this,t,t+1);return this},o.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)F(this,t,t+3),F(this,t+1,t+2);return this},o.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)F(this,t,t+7),F(this,t+1,t+6),F(this,t+2,t+5),F(this,t+3,t+4);return this},o.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?br(this,0,r):D.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(r){if(!o.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:o.compare(this,r)===0},o.prototype.inspect=function(){let r="",t=W$3.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"},p&&(o.prototype[p]=o.prototype.inspect),o.prototype.compare=function(r,t,n,i,u){if(O(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),u===void 0&&(u=this.length),t<0||n>r.length||i<0||u>this.length)throw new RangeError("out of range index");if(i>=u&&t>=n)return 0;if(i>=u)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,u>>>=0,this===r)return 0;let a=u-i,m=n-t,x=Math.min(a,m),I=this.slice(i,u),U=r.slice(t,n);for(let y=0;y<x;++y)if(I[y]!==U[y]){a=I[y],m=U[y];break}return a<m?-1:m<a?1:0};function L(e,r,t,n,i){if(e.length===0)return -1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,gr(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return -1;t=e.length-1;}else if(t<0)if(i)t=0;else return -1;if(typeof r=="string"&&(r=o.from(r,n)),o.isBuffer(r))return r.length===0?-1:Rr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Rr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function Rr(e,r,t,n,i){let u=1,a=e.length,m=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return -1;u=2,a/=2,m/=2,t/=2;}function x(U,y){return u===1?U[y]:U.readUInt16BE(y*u)}let I;if(i){let U=-1;for(I=t;I<a;I++)if(x(e,I)===x(r,U===-1?0:I-U)){if(U===-1&&(U=I),I-U+1===m)return U*u}else U!==-1&&(I-=I-U),U=-1;}else for(t+m>a&&(t=a-m),I=t;I>=0;I--){let U=!0;for(let y=0;y<m;y++)if(x(e,I+y)!==x(r,y)){U=!1;break}if(U)return I}return -1}o.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1},o.prototype.indexOf=function(r,t,n){return L(this,r,t,n,!0)},o.prototype.lastIndexOf=function(r,t,n){return L(this,r,t,n,!1)};function ut(e,r,t,n){t=Number(t)||0;let i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;let u=r.length;n>u/2&&(n=u/2);let a;for(a=0;a<n;++a){let m=parseInt(r.substr(a*2,2),16);if(gr(m))return a;e[t+a]=m;}return a}function at(e,r,t,n){return ar(wr(r,e.length-t),e,t,n)}function ct(e,r,t,n){return ar(Bt(r),e,t,n)}function pt(e,r,t,n){return ar(Or(r),e,t,n)}function lt(e,r,t,n){return ar(Tt(r,e.length-t),e,t,n)}o.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let u=this.length-t;if((n===void 0||n>u)&&(n=u),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let a=!1;for(;;)switch(i){case"hex":return ut(this,r,t,n);case"utf8":case"utf-8":return at(this,r,t,n);case"ascii":case"latin1":case"binary":return ct(this,r,t,n);case"base64":return pt(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt(this,r,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0;}},o.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ft(e,r,t){return r===0&&t===e.length?s.fromByteArray(e):s.fromByteArray(e.slice(r,t))}function br(e,r,t){t=Math.min(e.length,t);let n=[],i=r;for(;i<t;){let u=e[i],a=null,m=u>239?4:u>223?3:u>191?2:1;if(i+m<=t){let x,I,U,y;switch(m){case 1:u<128&&(a=u);break;case 2:x=e[i+1],(x&192)===128&&(y=(u&31)<<6|x&63,y>127&&(a=y));break;case 3:x=e[i+1],I=e[i+2],(x&192)===128&&(I&192)===128&&(y=(u&15)<<12|(x&63)<<6|I&63,y>2047&&(y<55296||y>57343)&&(a=y));break;case 4:x=e[i+1],I=e[i+2],U=e[i+3],(x&192)===128&&(I&192)===128&&(U&192)===128&&(y=(u&15)<<18|(x&63)<<12|(I&63)<<6|U&63,y>65535&&y<1114112&&(a=y));}}a===null?(a=65533,m=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=m;}return ht(n)}let Nr=4096;function ht(e){let r=e.length;if(r<=Nr)return String.fromCharCode.apply(String,e);let t="",n=0;for(;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=Nr));return t}function dt(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function mt(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function wt(e,r,t){let n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);let i="";for(let u=r;u<t;++u)i+=At[e[u]];return i}function gt(e,r,t){let n=e.slice(r,t),i="";for(let u=0;u<n.length-1;u+=2)i+=String.fromCharCode(n[u]+n[u+1]*256);return i}o.prototype.slice=function(r,t){let n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);let i=this.subarray(r,t);return Object.setPrototypeOf(i,o.prototype),i};function N(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r],u=1,a=0;for(;++a<t&&(u*=256);)i+=this[r+a]*u;return i},o.prototype.readUintBE=o.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r+--t],u=1;for(;t>0&&(u*=256);)i+=this[r+--t]*u;return i},o.prototype.readUint8=o.prototype.readUInt8=function(r,t){return r=r>>>0,t||N(r,1,this.length),this[r]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||N(r,2,this.length),this[r]|this[r+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||N(r,2,this.length),this[r]<<8|this[r+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||N(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},o.prototype.readBigUInt64LE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,u=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(i)+(BigInt(u)<<BigInt(32))}),o.prototype.readBigUInt64BE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],u=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return (BigInt(i)<<BigInt(32))+BigInt(u)}),o.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r],u=1,a=0;for(;++a<t&&(u*=256);)i+=this[r+a]*u;return u*=128,i>=u&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=t,u=1,a=this[r+--i];for(;i>0&&(u*=256);)a+=this[r+--i]*u;return u*=128,a>=u&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(r,t){return r=r>>>0,t||N(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},o.prototype.readInt16LE=function(r,t){r=r>>>0,t||N(r,2,this.length);let n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},o.prototype.readInt16BE=function(r,t){r=r>>>0,t||N(r,2,this.length);let n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},o.prototype.readInt32LE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},o.prototype.readInt32BE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},o.prototype.readBigInt64LE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return (BigInt(i)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)}),o.prototype.readBigInt64BE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return (BigInt(i)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n)}),o.prototype.readFloatLE=function(r,t){return r=r>>>0,t||N(r,4,this.length),c.read(this,r,!0,23,4)},o.prototype.readFloatBE=function(r,t){return r=r>>>0,t||N(r,4,this.length),c.read(this,r,!1,23,4)},o.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||N(r,8,this.length),c.read(this,r,!0,52,8)},o.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||N(r,8,this.length),c.read(this,r,!1,52,8)};function $(e,r,t,n,i,u){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<u)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let m=Math.pow(2,8*n)-1;$(this,r,t,n,m,0);}let u=1,a=0;for(this[t]=r&255;++a<n&&(u*=256);)this[t+a]=r/u&255;return t+n},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let m=Math.pow(2,8*n)-1;$(this,r,t,n,m,0);}let u=n-1,a=1;for(this[t+u]=r&255;--u>=0&&(a*=256);)this[t+u]=r/a&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,255,0),this[t]=r&255,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function vr(e,r,t,n,i){Fr(r,n,i,e,t,7);let u=Number(r&BigInt(4294967295));e[t++]=u,u=u>>8,e[t++]=u,u=u>>8,e[t++]=u,u=u>>8,e[t++]=u;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,t}function Mr(e,r,t,n,i){Fr(r,n,i,e,t,7);let u=Number(r&BigInt(4294967295));e[t+7]=u,u=u>>8,e[t+6]=u,u=u>>8,e[t+5]=u,u=u>>8,e[t+4]=u;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=a,a=a>>8,e[t+2]=a,a=a>>8,e[t+1]=a,a=a>>8,e[t]=a,t+8}o.prototype.writeBigUInt64LE=Y(function(r,t=0){return vr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Y(function(r,t=0){return Mr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let x=Math.pow(2,8*n-1);$(this,r,t,n,x-1,-x);}let u=0,a=1,m=0;for(this[t]=r&255;++u<n&&(a*=256);)r<0&&m===0&&this[t+u-1]!==0&&(m=1),this[t+u]=(r/a>>0)-m&255;return t+n},o.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let x=Math.pow(2,8*n-1);$(this,r,t,n,x-1,-x);}let u=n-1,a=1,m=0;for(this[t+u]=r&255;--u>=0&&(a*=256);)r<0&&m===0&&this[t+u+1]!==0&&(m=1),this[t+u]=(r/a>>0)-m&255;return t+n},o.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1},o.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4},o.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4},o.prototype.writeBigInt64LE=Y(function(r,t=0){return vr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Y(function(r,t=0){return Mr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Cr(e,r,t,n,i,u){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Lr(e,r,t,n,i){return r=+r,t=t>>>0,i||Cr(e,r,t,4),c.write(e,r,t,n,23,4),t+4}o.prototype.writeFloatLE=function(r,t,n){return Lr(this,r,t,!0,n)},o.prototype.writeFloatBE=function(r,t,n){return Lr(this,r,t,!1,n)};function Dr(e,r,t,n,i){return r=+r,t=t>>>0,i||Cr(e,r,t,8),c.write(e,r,t,n,52,8),t+8}o.prototype.writeDoubleLE=function(r,t,n){return Dr(this,r,t,!0,n)},o.prototype.writeDoubleBE=function(r,t,n){return Dr(this,r,t,!1,n)},o.prototype.copy=function(r,t,n,i){if(!o.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);let u=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),u},o.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){let a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a);}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else {let a=o.isBuffer(r)?r:o.from(r,i),m=a.length;if(m===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=a[u%m];}return this};let Z={};function mr(e,r,t){Z[e]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,delete this.name;}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0});}toString(){return `${this.name} [${e}]: ${this.message}`}};}mr("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),mr("ERR_INVALID_ARG_TYPE",function(e,r){return `The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError),mr("ERR_OUT_OF_RANGE",function(e,r,t){let n=`The value of "${e}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=$r(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=$r(i)),i+="n"),n+=` It must be ${r}. Received ${i}`,n},RangeError);function $r(e){let r="",t=e.length,n=e[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return `${e.slice(0,t)}${r}`}function yt(e,r,t){rr(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&er(r,e.length-(t+1));}function Fr(e,r,t,n,i,u){if(e>t||e<r){let a=typeof r=="bigint"?"n":"",m;throw r===0||r===BigInt(0)?m=`>= 0${a} and < 2${a} ** ${(u+1)*8}${a}`:m=`>= -(2${a} ** ${(u+1)*8-1}${a}) and < 2 ** ${(u+1)*8-1}${a}`,new Z.ERR_OUT_OF_RANGE("value",m,e)}yt(n,i,u);}function rr(e,r){if(typeof e!="number")throw new Z.ERR_INVALID_ARG_TYPE(r,"number",e)}function er(e,r,t){throw Math.floor(e)!==e?(rr(e,t),new Z.ERR_OUT_OF_RANGE("offset","an integer",e)):r<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE("offset",`>= ${0} and <= ${r}`,e)}let Et=/[^+/0-9A-Za-z-_]/g;function It(e){if(e=e.split("=")[0],e=e.trim().replace(Et,""),e.length<2)return "";for(;e.length%4!==0;)e=e+"=";return e}function wr(e,r){r=r||1/0;let t,n=e.length,i=null,u=[];for(let a=0;a<n;++a){if(t=e.charCodeAt(a),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&u.push(239,191,189);continue}else if(a+1===n){(r-=3)>-1&&u.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&u.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536;}else i&&(r-=3)>-1&&u.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;u.push(t);}else if(t<2048){if((r-=2)<0)break;u.push(t>>6|192,t&63|128);}else if(t<65536){if((r-=3)<0)break;u.push(t>>12|224,t>>6&63|128,t&63|128);}else if(t<1114112){if((r-=4)<0)break;u.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128);}else throw new Error("Invalid code point")}return u}function Bt(e){let r=[];for(let t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Tt(e,r){let t,n,i,u=[];for(let a=0;a<e.length&&!((r-=2)<0);++a)t=e.charCodeAt(a),n=t>>8,i=t%256,u.push(i),u.push(n);return u}function Or(e){return s.toByteArray(It(e))}function ar(e,r,t,n){let i;for(i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function O(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function gr(e){return e!==e}let At=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)r[n+i]=e[t]+e[i];}return r}();function Y(e){return typeof BigInt>"u"?xt:e}function xt(){throw new Error("BigInt not supported")}return W$3}var q$6=Ge$2();var S$8=q$6.Buffer;var Ur$2={};St$1(Ur$2,{deleteItem:()=>He$2,getItem:()=>fr$1,setItem:()=>or$2});var ir$1=()=>typeof window>"u",lr$2=()=>!ir$1();var Ye$2="__IMX-",Ar$2=()=>lr$2()&&window.localStorage,Ke$1=s=>{if(s!==null)try{return JSON.parse(s)}catch{return s}},je$2=s=>typeof s=="string"?s:JSON.stringify(s),xr$2=s=>`${Ye$2}${s}`;function fr$1(s){if(Ar$2())return Ke$1(window.localStorage.getItem(xr$2(s)))}var or$2=(s,c)=>Ar$2()?(window.localStorage.setItem(xr$2(s),je$2(c)),!0):!1,He$2=s=>Ar$2()?(window.localStorage.removeItem(xr$2(s)),!0):!1;var Sr$2=0,Hr$1=s=>{let c=parseInt(s,10)*1e3,p=new Date(c),l=new Date;return Sr$2=p.getTime()-l.getTime(),Sr$2},Wr=()=>{let s=new Date().getTime()+Sr$2;return new Date(s).toISOString()};var sr$1=(E=>(E.RUNTIME_ID="rid",E.PASSPORT_CLIENT_ID="passportClientId",E.ENVIRONMENT="env",E.PUBLISHABLE_API_KEY="pak",E.IDENTITY="uid",E.DOMAIN="domain",E.SDK_VERSION="sdkVersion",E))(sr$1||{});var We$5="https://api.immutable.com",qe$1=s=>{if(typeof S$8<"u")return S$8.from(s,"utf-8").toString("base64");if(typeof btoa=="function")return btoa(unescape(encodeURIComponent(s)));throw new Error("Base64 encoding not supported in this environment")};async function hr$2(s,c){let p=JSON.stringify(c),l={payload:qe$1(p)},h=await fetch(`${We$5}${s}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!h.ok){let w=await h.text().catch(()=>"");throw new Error(`Request failed (${h.status}): ${w||h.statusText}`)}return h.json()}var X$4,J$4,Xe$4=()=>{X$4=fr$1("metrics-events")||[],J$4=fr$1("metrics-runtime")||{};};Xe$4();var V$5=(s,c)=>{J$4={...J$4,[s]:c},or$2("metrics-runtime",J$4);},ur$1=s=>{if(J$4[s]!==void 0)return J$4[s]},qr$1=()=>J$4,Xr=()=>X$4,Jr$1=s=>{X$4.push(s),or$2("metrics-events",X$4);},zr$2=s=>{X$4=X$4.slice(s),or$2("metrics-events",X$4);},dr$1=s=>{let c=[];return Object.entries(s).forEach(([p,l])=>{(typeof p=="string"||typeof l=="string"||typeof l=="number"||typeof l=="boolean")&&c.push([p,l.toString()]);}),c};var kr$1="2.11.1-alpha.2",Je$3=()=>ir$1()?"":window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0?new URL(window.location.ancestorOrigins[0]).hostname:document.referrer?new URL(window.document.referrer).hostname:"",ze$2=()=>{if(ir$1())return "";let s;try{window.self!==window.top&&(s=Je$3());}catch{}return s||(s=window.location.hostname),s},Qe$3=()=>{if(V$5("sdkVersion",kr$1),ir$1())return {browser:"nodejs",sdkVersion:kr$1};let s=ze$2();return s&&V$5("domain",s),{sdkVersion:kr$1,browser:window.navigator.userAgent,domain:s,tz:Intl.DateTimeFormat().resolvedOptions().timeZone,screen:`${window.screen.width}x${window.screen.height}`}},_r$2=!1,Qr$1=()=>_r$2,Zr=async()=>{_r$2=!0;try{let s=dr$1(Qe$3()),c=ur$1("rid"),p=ur$1("uid"),h=await hr$2("/v1/sdk/initialise",{version:1,data:{runtimeDetails:s,runtimeId:c,uId:p}}),{runtimeId:w,sTime:o}=h;V$5("rid",w),Hr$1(o);}catch{_r$2=!1;}};function R$3(s,c){return (...p)=>{try{let l=s(...p);return l instanceof Promise?l.catch(()=>c):l}catch{return c}}}function Ze$4(){return lr$2()||typeof T$6>"u"?!1:T$6.env.JEST_WORKER_ID!==void 0}var rt$1=R$3(Ze$4,!1);var et$1="imtbl__metrics",tn$1=5e3,en$1=1e3,z$8=(s,c)=>getGlobalisedValue_1(et$1,s,c),nt$2=(s,c)=>{let p=memorise(c,{lruOptions:{ttl:tn$1,max:en$1}});return getGlobalisedValue_1(et$1,s,p)};var nn=5e3,on=(s,c,p)=>{let l={event:`${s}.${c}`,time:Wr(),...p&&{properties:dr$1(p)}};Jr$1(l);},Q$6=R$3(nt$2("track",on)),sn=async()=>{if(Qr$1()===!1){await Zr();return}let s=Xr();if(s.length===0)return;let c=s.length,p=qr$1();await hr$2("/v1/sdk/metrics",{version:1,data:{events:s,details:p}})instanceof Error||zr$2(c);},un=R$3(sn),ot$1=async()=>{await un(),setTimeout(ot$1,nn);},it$1=!1,an=()=>{it$1||(it$1=!0,ot$1());};rt$1()||R$3(z$8("startFlushing",an))();var Pr$2=(s,c,p,l)=>Q$6(s,c,{...l||{},duration:Math.round(p)});var st$2=()=>{let s=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return `${s()}${s()}-${s()}-${s()}-${s()}-${s()}${s()}${s()}`};var cn=(...s)=>{if(!s.some(l=>!!l))return {};let p={};return s.forEach(l=>{l&&(p={...p,...l});}),p},pn$1=s=>s.replace(/[^a-zA-Z0-9\s\-_]/g,""),ln=(s,c)=>`${s}_${pn$1(c)}`,fn=(s,c,p=!0,l)=>{let h=st$2(),w=Date.now(),o=0,E=0,b={},C=(..._)=>cn(b,..._,{flowId:h,flowName:c});b=C(l);let B=_=>{_&&(b=C(_));},k=(_,f)=>{let d=ln(c,_),g=0,A=performance.now();o>0&&(g=A-E);let v=C(f,{flowEventName:_,flowStep:o});Pr$2(s,d,g,v),o++,E=A;};return p&&k("Start"),{details:{moduleName:s,flowName:c,flowId:h,flowStartTime:w},addEvent:R$3(k),addFlowProperties:R$3(B)}},hn=R$3(fn);var dn$1=(s,c,p,l)=>{let{message:h}=p,w=p.stack||"",{cause:o}=p;o instanceof Error&&(w=`${w}
379
+ Cause: ${o.message}
380
+ ${o.stack}`),Q$6(s,`trackError_${c}`,{...l||{},errorMessage:h,errorStack:w,isTrackError:!0});},mn$1=R$3(dn$1);var En$1=s=>{V$5("env",s);},In$1=R$3(z$8("setEnvironment",En$1)),Bn=s=>{V$5("passportClientId",s);};R$3(z$8("setPassportClientId",Bn));var An=s=>{V$5("pak",s);};R$3(z$8("setPublishableApiKey",An));R$3(z$8("getDetail",ur$1));
381
+
382
+ var K$6=(t=>(t.PRODUCTION="production",t.SANDBOX="sandbox",t))(K$6||{}),u$3=(n=>(n.API_KEY="x-immutable-api-key",n.PUBLISHABLE_KEY="x-immutable-publishable-key",n.RATE_LIMITING_KEY="x-api-key",n))(u$3||{}),r$7=class r{environment;rateLimitingKey;apiKey;publishableKey;constructor(i){this.environment=i.environment,this.publishableKey=i.publishableKey,this.apiKey=i.apiKey,this.rateLimitingKey=i.rateLimitingKey,In$1(i.environment),Q$6("config","created_imtbl_config");}};
383
+
16
384
  function bind$4(fn, thisArg) {
17
385
  return function wrap() {
18
386
  return fn.apply(thisArg, arguments);
@@ -1333,12 +1701,12 @@ const hasStandardBrowserWebWorkerEnv$1 = (() => {
1333
1701
  const origin$1 = hasBrowserEnv$1 && window.location.href || 'http://localhost';
1334
1702
 
1335
1703
  var utils$A = /*#__PURE__*/Object.freeze({
1336
- __proto__: null,
1337
- hasBrowserEnv: hasBrowserEnv$1,
1338
- hasStandardBrowserEnv: hasStandardBrowserEnv$1,
1339
- hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv$1,
1340
- navigator: _navigator$1,
1341
- origin: origin$1
1704
+ __proto__: null,
1705
+ hasBrowserEnv: hasBrowserEnv$1,
1706
+ hasStandardBrowserEnv: hasStandardBrowserEnv$1,
1707
+ hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv$1,
1708
+ navigator: _navigator$1,
1709
+ origin: origin$1
1342
1710
  });
1343
1711
 
1344
1712
  var platform$2 = {
@@ -3747,374 +4115,6 @@ axios$1.HttpStatusCode = HttpStatusCode$2;
3747
4115
 
3748
4116
  axios$1.default = axios$1;
3749
4117
 
3750
- /**
3751
- * tiny-lru
3752
- *
3753
- * @copyright 2023 Jason Mulligan <jason.mulligan@avoidwork.com>
3754
- * @license BSD-3-Clause
3755
- * @version 11.2.5
3756
- */
3757
- class LRU {
3758
- constructor (max = 0, ttl = 0, resetTtl = false) {
3759
- this.first = null;
3760
- this.items = Object.create(null);
3761
- this.last = null;
3762
- this.max = max;
3763
- this.resetTtl = resetTtl;
3764
- this.size = 0;
3765
- this.ttl = ttl;
3766
- }
3767
-
3768
- clear () {
3769
- this.first = null;
3770
- this.items = Object.create(null);
3771
- this.last = null;
3772
- this.size = 0;
3773
-
3774
- return this;
3775
- }
3776
-
3777
- delete (key) {
3778
- if (this.has(key)) {
3779
- const item = this.items[key];
3780
-
3781
- delete this.items[key];
3782
- this.size--;
3783
-
3784
- if (item.prev !== null) {
3785
- item.prev.next = item.next;
3786
- }
3787
-
3788
- if (item.next !== null) {
3789
- item.next.prev = item.prev;
3790
- }
3791
-
3792
- if (this.first === item) {
3793
- this.first = item.next;
3794
- }
3795
-
3796
- if (this.last === item) {
3797
- this.last = item.prev;
3798
- }
3799
- }
3800
-
3801
- return this;
3802
- }
3803
-
3804
- entries (keys = this.keys()) {
3805
- return keys.map(key => [key, this.get(key)]);
3806
- }
3807
-
3808
- evict (bypass = false) {
3809
- if (bypass || this.size > 0) {
3810
- const item = this.first;
3811
-
3812
- delete this.items[item.key];
3813
-
3814
- if (--this.size === 0) {
3815
- this.first = null;
3816
- this.last = null;
3817
- } else {
3818
- this.first = item.next;
3819
- this.first.prev = null;
3820
- }
3821
- }
3822
-
3823
- return this;
3824
- }
3825
-
3826
- expiresAt (key) {
3827
- let result;
3828
-
3829
- if (this.has(key)) {
3830
- result = this.items[key].expiry;
3831
- }
3832
-
3833
- return result;
3834
- }
3835
-
3836
- get (key) {
3837
- let result;
3838
-
3839
- if (this.has(key)) {
3840
- const item = this.items[key];
3841
-
3842
- if (this.ttl > 0 && item.expiry <= Date.now()) {
3843
- this.delete(key);
3844
- } else {
3845
- result = item.value;
3846
- this.set(key, result, true);
3847
- }
3848
- }
3849
-
3850
- return result;
3851
- }
3852
-
3853
- has (key) {
3854
- return key in this.items;
3855
- }
3856
-
3857
- keys () {
3858
- const result = [];
3859
- let x = this.first;
3860
-
3861
- while (x !== null) {
3862
- result.push(x.key);
3863
- x = x.next;
3864
- }
3865
-
3866
- return result;
3867
- }
3868
-
3869
- set (key, value, bypass = false, resetTtl = this.resetTtl) {
3870
- let item;
3871
-
3872
- if (bypass || this.has(key)) {
3873
- item = this.items[key];
3874
- item.value = value;
3875
-
3876
- if (bypass === false && resetTtl) {
3877
- item.expiry = this.ttl > 0 ? Date.now() + this.ttl : this.ttl;
3878
- }
3879
-
3880
- if (this.last !== item) {
3881
- const last = this.last,
3882
- next = item.next,
3883
- prev = item.prev;
3884
-
3885
- if (this.first === item) {
3886
- this.first = item.next;
3887
- }
3888
-
3889
- item.next = null;
3890
- item.prev = this.last;
3891
- last.next = item;
3892
-
3893
- if (prev !== null) {
3894
- prev.next = next;
3895
- }
3896
-
3897
- if (next !== null) {
3898
- next.prev = prev;
3899
- }
3900
- }
3901
- } else {
3902
- if (this.max > 0 && this.size === this.max) {
3903
- this.evict(true);
3904
- }
3905
-
3906
- item = this.items[key] = {
3907
- expiry: this.ttl > 0 ? Date.now() + this.ttl : this.ttl,
3908
- key: key,
3909
- prev: this.last,
3910
- next: null,
3911
- value
3912
- };
3913
-
3914
- if (++this.size === 1) {
3915
- this.first = item;
3916
- } else {
3917
- this.last.next = item;
3918
- }
3919
- }
3920
-
3921
- this.last = item;
3922
-
3923
- return this;
3924
- }
3925
-
3926
- values (keys = this.keys()) {
3927
- return keys.map(key => this.get(key));
3928
- }
3929
- }
3930
-
3931
- function lru (max = 1000, ttl = 0, resetTtl = false) {
3932
- if (isNaN(max) || max < 0) {
3933
- throw new TypeError("Invalid max value");
3934
- }
3935
-
3936
- if (isNaN(ttl) || ttl < 0) {
3937
- throw new TypeError("Invalid ttl value");
3938
- }
3939
-
3940
- if (typeof resetTtl !== "boolean") {
3941
- throw new TypeError("Invalid resetTtl value");
3942
- }
3943
-
3944
- return new LRU(max, ttl, resetTtl);
3945
- }
3946
-
3947
- const defaultLRUOptions = {
3948
- max: 1000,
3949
- };
3950
- /**
3951
- * Returns a memorised version of the target function.
3952
- * The cache key depends on the arguments passed to the function.
3953
- *
3954
- * Pass in options to customise the caching behaviour
3955
- * @param cachedFn Function to cache
3956
- * @param options Memorization and LRUCache Options
3957
- */
3958
- const memorise = (cachedFn, options = {}) => {
3959
- // Extract defaults
3960
- const { cache, cacheKeyResolver = defaultGenCacheKey, onHit, lruOptions = {}, } = options;
3961
- const cacheOptions = { ...defaultLRUOptions, ...lruOptions };
3962
- const _cache = (cache ||
3963
- lru(cacheOptions.max, cacheOptions.ttl));
3964
- // Cached fn
3965
- function returnFn(...args) {
3966
- const cacheKey = cacheKeyResolver(...args);
3967
- const cachedValue = _cache.get(cacheKey);
3968
- const keyCached = _cache.has(cacheKey);
3969
- if (keyCached) {
3970
- if (onHit) {
3971
- onHit(cacheKey, cachedValue, _cache);
3972
- }
3973
- return cachedValue;
3974
- }
3975
- // No cache hit, run function and cache result
3976
- const result = cachedFn.apply(this, args);
3977
- _cache.set(cacheKey, result);
3978
- return result;
3979
- }
3980
- // Expose the cache
3981
- returnFn._cache = _cache;
3982
- return returnFn;
3983
- };
3984
- /**
3985
- * Generic args handler function.
3986
- * @param args Argument array
3987
- */
3988
- const defaultGenCacheKey = (...args) => {
3989
- if (args.length === 0) {
3990
- return "no-args";
3991
- }
3992
- return args
3993
- .map((val) => {
3994
- if (val === undefined) {
3995
- return "undefined";
3996
- }
3997
- if (val === null) {
3998
- return "null";
3999
- }
4000
- if (Array.isArray(val)) {
4001
- return `[${defaultGenCacheKey(...val)}]`;
4002
- }
4003
- if (typeof val === "object") {
4004
- return `{${defaultGenCacheKey(...sortedObjectEntries(val))}}`;
4005
- }
4006
- return JSON.stringify(val);
4007
- })
4008
- .join(",");
4009
- };
4010
- const sortedObjectEntries = (obj) => {
4011
- return Object.entries(obj).sort((a, b) => {
4012
- if (a[0] < b[0]) {
4013
- return -1;
4014
- }
4015
- return 1;
4016
- });
4017
- };
4018
-
4019
- var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4020
-
4021
- function getDefaultExportFromCjs$2 (x) {
4022
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
4023
- }
4024
-
4025
- function getAugmentedNamespace(n) {
4026
- if (n.__esModule) return n;
4027
- var f = n.default;
4028
- if (typeof f == "function") {
4029
- var a = function a () {
4030
- if (this instanceof a) {
4031
- return Reflect.construct(f, arguments, this.constructor);
4032
- }
4033
- return f.apply(this, arguments);
4034
- };
4035
- a.prototype = f.prototype;
4036
- } else a = {};
4037
- Object.defineProperty(a, '__esModule', {value: true});
4038
- Object.keys(n).forEach(function (k) {
4039
- var d = Object.getOwnPropertyDescriptor(n, k);
4040
- Object.defineProperty(a, k, d.get ? d : {
4041
- enumerable: true,
4042
- get: function () {
4043
- return n[k];
4044
- }
4045
- });
4046
- });
4047
- return a;
4048
- }
4049
-
4050
- var lib$4 = {};
4051
-
4052
- Object.defineProperty(lib$4, "__esModule", { value: true });
4053
- lib$4.clearGlobalNamespace = getGlobalisedValue_1 = lib$4.getGlobalisedValue = void 0;
4054
- const GLOBALISE_KEY_PREFIX = "globalise__singleton__";
4055
- const fallbackGlobal = {};
4056
- const getGlobalObject = () => {
4057
- if (typeof window !== "undefined") {
4058
- return window;
4059
- }
4060
- if (typeof globalThis !== "undefined") {
4061
- return globalThis;
4062
- }
4063
- return fallbackGlobal;
4064
- };
4065
- const validateInputs = (namespace, key) => {
4066
- if (typeof namespace !== "string") {
4067
- throw "Invalid namespace key";
4068
- }
4069
- if (typeof key !== "string") {
4070
- throw "Invalid item key";
4071
- }
4072
- };
4073
- const createGlobalisedKey = (namespace) => {
4074
- return `${GLOBALISE_KEY_PREFIX}${namespace}`;
4075
- };
4076
- const getGlobalScopedObject = (namespace) => {
4077
- const globalObject = getGlobalObject();
4078
- const GLOBALISE_KEY = createGlobalisedKey(namespace);
4079
- // Initialise global object
4080
- if (!globalObject[GLOBALISE_KEY]) {
4081
- globalObject[GLOBALISE_KEY] = {};
4082
- }
4083
- return globalObject[GLOBALISE_KEY];
4084
- };
4085
- const getSingleton = (namespace, key) => {
4086
- const scopedObject = getGlobalScopedObject(namespace);
4087
- return scopedObject[key] || undefined;
4088
- };
4089
- const setSingleton = (namespace, key, value) => {
4090
- const scopedObject = getGlobalScopedObject(namespace);
4091
- scopedObject[key] = value;
4092
- };
4093
- const getGlobalisedValue = (namespace, key, value) => {
4094
- validateInputs(namespace, key);
4095
- const existing = getSingleton(namespace, key);
4096
- if (existing !== undefined) {
4097
- return existing;
4098
- }
4099
- setSingleton(namespace, key, value);
4100
- return value;
4101
- };
4102
- var getGlobalisedValue_1 = lib$4.getGlobalisedValue = getGlobalisedValue;
4103
- const clearGlobalNamespace = (namespace) => {
4104
- const globalObject = getGlobalObject();
4105
- const globalisedKey = createGlobalisedKey(namespace);
4106
- if (globalObject[globalisedKey] !== undefined) {
4107
- delete globalObject[globalisedKey];
4108
- }
4109
- };
4110
- lib$4.clearGlobalNamespace = clearGlobalNamespace;
4111
-
4112
- var Ut$2=Object.defineProperty;var St$1=(u,c)=>{for(var p in c)Ut$2(u,p,{get:c[p],enumerable:!0});};function Br$1(u){throw new Error("Node.js process "+u+" is not supported by JSPM core outside of Node.js")}var G$3=[],tr$1=!1,W$3,cr$2=-1;function kt$2(){!tr$1||!W$3||(tr$1=!1,W$3.length?G$3=W$3.concat(G$3):cr$2=-1,G$3.length&&Vr$1());}function Vr$1(){if(!tr$1){var u=setTimeout(kt$2,0);tr$1=!0;for(var c=G$3.length;c;){for(W$3=G$3,G$3=[];++cr$2<c;)W$3&&W$3[cr$2].run();cr$2=-1,c=G$3.length;}W$3=null,tr$1=!1,clearTimeout(u);}}function _t$1(u){var c=new Array(arguments.length-1);if(arguments.length>1)for(var p=1;p<arguments.length;p++)c[p-1]=arguments[p];G$3.push(new Gr$1(u,c)),G$3.length===1&&!tr$1&&setTimeout(Vr$1,0);}function Gr$1(u,c){this.fun=u,this.array=c;}Gr$1.prototype.run=function(){this.fun.apply(null,this.array);};var Pt$1="browser",Rt$1="x64",bt$1="browser",Nt$1={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},vt$1=["/usr/bin/node"],Mt$1=[],Ct$3="v16.8.0",Lt$2={},Dt$2=function(u,c){console.warn((c?c+": ":"")+u);},$t$2=function(u){Br$1("binding");},Ft$2=function(u){return 0},Ot$2=function(){return "/"},Vt$1=function(u){},Gt$3={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};function M$7(){}var Yt$2=M$7,Kt$2=[];function Ht$2(u){Br$1("_linkedBinding");}var Wt$2={},jt$3=!1,Xt$3={};function qt$2(u){Br$1("dlopen");}function Jt$3(){return []}function zt$2(){return []}var Qt$1=M$7,Zt$2=M$7,Tr$2=function(){return {}},re$3=Tr$2,te$3=Tr$2,ee$2=M$7,ne$5=M$7,ie$5=M$7,oe$4={};function se$3(u,c){if(!u)throw new Error(c||"assertion error")}var ue$2={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},ae$2=M$7,ce$2=M$7;function pe$3(){return !1}var le$2=M$7,fe$4=M$7,he$2=M$7,de$2=M$7,me$3=M$7,we$3=void 0,ge$4=void 0,ye$3=void 0,Ee$2=M$7,Ie$1=2,Be$3=1,Te$2="/bin/usr/node",Ae$2=9229,xe$2="node",Ue$3=[],Se$3=M$7,K$7={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};K$7.now===void 0&&(yr$2=Date.now(),K$7.timing&&K$7.timing.navigationStart&&(yr$2=K$7.timing.navigationStart),K$7.now=()=>Date.now()-yr$2);var yr$2;function ke$3(){return K$7.now()/1e3}var Er$1=1e9;function Ir$2(u){var c=Math.floor((Date.now()-K$7.now())*.001),p=K$7.now()*.001,l=Math.floor(p)+c,m=Math.floor(p%1*1e9);return u&&(l=l-u[0],m=m-u[1],m<0&&(l--,m+=Er$1)),[l,m]}Ir$2.bigint=function(u){var c=Ir$2(u);return typeof BigInt>"u"?c[0]*Er$1+c[1]:BigInt(c[0]*Er$1)+BigInt(c[1])};var _e$2=10,Pe$3={},Re$4=0;function H$3(){return T$6}var be$3=H$3,Ne$1=H$3,ve$2=H$3,Me$1=H$3,Ce$3=H$3,Le$1=M$7,De$3=H$3,$e$3=H$3;function Fe$3(u){return []}var T$6={version:Ct$3,versions:Lt$2,arch:Rt$1,platform:bt$1,release:Gt$3,_rawDebug:Yt$2,moduleLoadList:Kt$2,binding:$t$2,_linkedBinding:Ht$2,_events:Pe$3,_eventsCount:Re$4,_maxListeners:_e$2,on:H$3,addListener:be$3,once:Ne$1,off:ve$2,removeListener:Me$1,removeAllListeners:Ce$3,emit:Le$1,prependListener:De$3,prependOnceListener:$e$3,listeners:Fe$3,domain:Wt$2,_exiting:jt$3,config:Xt$3,dlopen:qt$2,uptime:ke$3,_getActiveRequests:Jt$3,_getActiveHandles:zt$2,reallyExit:Qt$1,_kill:Zt$2,cpuUsage:Tr$2,resourceUsage:re$3,memoryUsage:te$3,kill:ee$2,exit:ne$5,openStdin:ie$5,allowedNodeEnvironmentFlags:oe$4,assert:se$3,features:ue$2,_fatalExceptions:ae$2,setUncaughtExceptionCaptureCallback:ce$2,hasUncaughtExceptionCaptureCallback:pe$3,emitWarning:Dt$2,nextTick:_t$1,_tickCallback:le$2,_debugProcess:fe$4,_debugEnd:he$2,_startProfilerIdleNotifier:de$2,_stopProfilerIdleNotifier:me$3,stdout:we$3,stdin:ye$3,stderr:ge$4,abort:Ee$2,umask:Ft$2,chdir:Vt$1,cwd:Ot$2,env:Nt$1,title:Pt$1,argv:vt$1,execArgv:Mt$1,pid:Ie$1,ppid:Be$3,execPath:Te$2,debugPort:Ae$2,hrtime:Ir$2,argv0:xe$2,_preload_modules:Ue$3,setSourceMapsEnabled:Se$3};var nr$1={},Yr$1=!1;function Oe$2(){if(Yr$1)return nr$1;Yr$1=!0,nr$1.byteLength=E,nr$1.toByteArray=C,nr$1.fromByteArray=_;for(var u=[],c=[],p=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,w=l.length;m<w;++m)u[m]=l[m],c[l.charCodeAt(m)]=m;c[45]=62,c[95]=63;function o(f){var h=f.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=f.indexOf("=");g===-1&&(g=h);var A=g===h?0:4-g%4;return [g,A]}function E(f){var h=o(f),g=h[0],A=h[1];return (g+A)*3/4-A}function b(f,h,g){return (h+g)*3/4-g}function C(f){var h,g=o(f),A=g[0],v=g[1],P=new p(b(f,A,v)),D=0,F=v>0?A-4:A,L;for(L=0;L<F;L+=4)h=c[f.charCodeAt(L)]<<18|c[f.charCodeAt(L+1)]<<12|c[f.charCodeAt(L+2)]<<6|c[f.charCodeAt(L+3)],P[D++]=h>>16&255,P[D++]=h>>8&255,P[D++]=h&255;return v===2&&(h=c[f.charCodeAt(L)]<<2|c[f.charCodeAt(L+1)]>>4,P[D++]=h&255),v===1&&(h=c[f.charCodeAt(L)]<<10|c[f.charCodeAt(L+1)]<<4|c[f.charCodeAt(L+2)]>>2,P[D++]=h>>8&255,P[D++]=h&255),P}function B(f){return u[f>>18&63]+u[f>>12&63]+u[f>>6&63]+u[f&63]}function k(f,h,g){for(var A,v=[],P=h;P<g;P+=3)A=(f[P]<<16&16711680)+(f[P+1]<<8&65280)+(f[P+2]&255),v.push(B(A));return v.join("")}function _(f){for(var h,g=f.length,A=g%3,v=[],P=16383,D=0,F=g-A;D<F;D+=P)v.push(k(f,D,D+P>F?F:D+P));return A===1?(h=f[g-1],v.push(u[h>>2]+u[h<<4&63]+"==")):A===2&&(h=(f[g-2]<<8)+f[g-1],v.push(u[h>>10]+u[h>>4&63]+u[h<<2&63]+"=")),v.join("")}return nr$1}var pr$1={},Kr$2=!1;function Ve$1(){if(Kr$2)return pr$1;Kr$2=!0;return pr$1.read=function(u,c,p,l,m){var w,o,E=m*8-l-1,b=(1<<E)-1,C=b>>1,B=-7,k=p?m-1:0,_=p?-1:1,f=u[c+k];for(k+=_,w=f&(1<<-B)-1,f>>=-B,B+=E;B>0;w=w*256+u[c+k],k+=_,B-=8);for(o=w&(1<<-B)-1,w>>=-B,B+=l;B>0;o=o*256+u[c+k],k+=_,B-=8);if(w===0)w=1-C;else {if(w===b)return o?NaN:(f?-1:1)*(1/0);o=o+Math.pow(2,l),w=w-C;}return (f?-1:1)*o*Math.pow(2,w-l)},pr$1.write=function(u,c,p,l,m,w){var o,E,b,C=w*8-m-1,B=(1<<C)-1,k=B>>1,_=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=l?0:w-1,h=l?1:-1,g=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(E=isNaN(c)?1:0,o=B):(o=Math.floor(Math.log(c)/Math.LN2),c*(b=Math.pow(2,-o))<1&&(o--,b*=2),o+k>=1?c+=_/b:c+=_*Math.pow(2,1-k),c*b>=2&&(o++,b/=2),o+k>=B?(E=0,o=B):o+k>=1?(E=(c*b-1)*Math.pow(2,m),o=o+k):(E=c*Math.pow(2,k-1)*Math.pow(2,m),o=0));m>=8;u[p+f]=E&255,f+=h,E/=256,m-=8);for(o=o<<m|E,C+=m;C>0;u[p+f]=o&255,f+=h,o/=256,C-=8);u[p+f-h]|=g*128;},pr$1}var j$7={},Hr$1=!1;function Ge$2(){if(Hr$1)return j$7;Hr$1=!0;let u=Oe$2(),c=Ve$1(),p=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;j$7.Buffer=o,j$7.SlowBuffer=v,j$7.INSPECT_MAX_BYTES=50;let l=2147483647;j$7.kMaxLength=l,o.TYPED_ARRAY_SUPPORT=m(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function m(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return !1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function w(e){if(e>l)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,o.prototype),r}function o(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(e)}return E(e,r,t)}o.poolSize=8192;function E(e,r,t){if(typeof e=="string")return k(e,r);if(ArrayBuffer.isView(e))return f(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return h(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return o.from(n,r,t);let i=g(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return o.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}o.from=function(e,r,t){return E(e,r,t)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function b(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function C(e,r,t){return b(e),e<=0?w(e):r!==void 0?typeof t=="string"?w(e).fill(r,t):w(e).fill(r):w(e)}o.alloc=function(e,r,t){return C(e,r,t)};function B(e){return b(e),w(e<0?0:A(e)|0)}o.allocUnsafe=function(e){return B(e)},o.allocUnsafeSlow=function(e){return B(e)};function k(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=P(e,r)|0,n=w(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function _(e){let r=e.length<0?0:A(e.length)|0,t=w(r);for(let n=0;n<r;n+=1)t[n]=e[n]&255;return t}function f(e){if(O(e,Uint8Array)){let r=new Uint8Array(e);return h(r.buffer,r.byteOffset,r.byteLength)}return _(e)}function h(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,o.prototype),n}function g(e){if(o.isBuffer(e)){let r=A(e.length)|0,t=w(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||gr(e.length)?w(0):_(e);if(e.type==="Buffer"&&Array.isArray(e.data))return _(e.data)}function A(e){if(e>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return e|0}function v(e){return +e!=e&&(e=0),o.alloc(+e)}o.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==o.prototype},o.compare=function(r,t){if(O(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),O(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(r)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,i=t.length;for(let s=0,a=Math.min(n,i);s<a;++s)if(r[s]!==t[s]){n=r[s],i=t[s];break}return n<i?-1:i<n?1:0},o.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return !0;default:return !1}},o.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return o.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;let i=o.allocUnsafe(t),s=0;for(n=0;n<r.length;++n){let a=r[n];if(O(a,Uint8Array))s+a.length>i.length?(o.isBuffer(a)||(a=o.from(a)),a.copy(i,s)):Uint8Array.prototype.set.call(i,a,s);else if(o.isBuffer(a))a.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=a.length;}return i};function P(e,r){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return wr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Or(e).length;default:if(i)return n?-1:wr(e).length;r=(""+r).toLowerCase(),i=!0;}}o.byteLength=P;function D(e,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return "";for(e||(e="utf8");;)switch(e){case"hex":return wt(this,r,t);case"utf8":case"utf-8":return br(this,r,t);case"ascii":return dt(this,r,t);case"latin1":case"binary":return mt(this,r,t);case"base64":return ft(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0;}}o.prototype._isBuffer=!0;function F(e,r,t){let n=e[r];e[r]=e[t],e[t]=n;}o.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)F(this,t,t+1);return this},o.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)F(this,t,t+3),F(this,t+1,t+2);return this},o.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)F(this,t,t+7),F(this,t+1,t+6),F(this,t+2,t+5),F(this,t+3,t+4);return this},o.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?br(this,0,r):D.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(r){if(!o.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:o.compare(this,r)===0},o.prototype.inspect=function(){let r="",t=j$7.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"},p&&(o.prototype[p]=o.prototype.inspect),o.prototype.compare=function(r,t,n,i,s){if(O(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),t<0||n>r.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&t>=n)return 0;if(i>=s)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,s>>>=0,this===r)return 0;let a=s-i,d=n-t,x=Math.min(a,d),I=this.slice(i,s),U=r.slice(t,n);for(let y=0;y<x;++y)if(I[y]!==U[y]){a=I[y],d=U[y];break}return a<d?-1:d<a?1:0};function L(e,r,t,n,i){if(e.length===0)return -1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,gr(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return -1;t=e.length-1;}else if(t<0)if(i)t=0;else return -1;if(typeof r=="string"&&(r=o.from(r,n)),o.isBuffer(r))return r.length===0?-1:Rr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Rr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function Rr(e,r,t,n,i){let s=1,a=e.length,d=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return -1;s=2,a/=2,d/=2,t/=2;}function x(U,y){return s===1?U[y]:U.readUInt16BE(y*s)}let I;if(i){let U=-1;for(I=t;I<a;I++)if(x(e,I)===x(r,U===-1?0:I-U)){if(U===-1&&(U=I),I-U+1===d)return U*s}else U!==-1&&(I-=I-U),U=-1;}else for(t+d>a&&(t=a-d),I=t;I>=0;I--){let U=!0;for(let y=0;y<d;y++)if(x(e,I+y)!==x(r,y)){U=!1;break}if(U)return I}return -1}o.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1},o.prototype.indexOf=function(r,t,n){return L(this,r,t,n,!0)},o.prototype.lastIndexOf=function(r,t,n){return L(this,r,t,n,!1)};function ut(e,r,t,n){t=Number(t)||0;let i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;let s=r.length;n>s/2&&(n=s/2);let a;for(a=0;a<n;++a){let d=parseInt(r.substr(a*2,2),16);if(gr(d))return a;e[t+a]=d;}return a}function at(e,r,t,n){return ar(wr(r,e.length-t),e,t,n)}function ct(e,r,t,n){return ar(Bt(r),e,t,n)}function pt(e,r,t,n){return ar(Or(r),e,t,n)}function lt(e,r,t,n){return ar(Tt(r,e.length-t),e,t,n)}o.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let s=this.length-t;if((n===void 0||n>s)&&(n=s),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let a=!1;for(;;)switch(i){case"hex":return ut(this,r,t,n);case"utf8":case"utf-8":return at(this,r,t,n);case"ascii":case"latin1":case"binary":return ct(this,r,t,n);case"base64":return pt(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt(this,r,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0;}},o.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ft(e,r,t){return r===0&&t===e.length?u.fromByteArray(e):u.fromByteArray(e.slice(r,t))}function br(e,r,t){t=Math.min(e.length,t);let n=[],i=r;for(;i<t;){let s=e[i],a=null,d=s>239?4:s>223?3:s>191?2:1;if(i+d<=t){let x,I,U,y;switch(d){case 1:s<128&&(a=s);break;case 2:x=e[i+1],(x&192)===128&&(y=(s&31)<<6|x&63,y>127&&(a=y));break;case 3:x=e[i+1],I=e[i+2],(x&192)===128&&(I&192)===128&&(y=(s&15)<<12|(x&63)<<6|I&63,y>2047&&(y<55296||y>57343)&&(a=y));break;case 4:x=e[i+1],I=e[i+2],U=e[i+3],(x&192)===128&&(I&192)===128&&(U&192)===128&&(y=(s&15)<<18|(x&63)<<12|(I&63)<<6|U&63,y>65535&&y<1114112&&(a=y));}}a===null?(a=65533,d=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=d;}return ht(n)}let Nr=4096;function ht(e){let r=e.length;if(r<=Nr)return String.fromCharCode.apply(String,e);let t="",n=0;for(;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=Nr));return t}function dt(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function mt(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function wt(e,r,t){let n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);let i="";for(let s=r;s<t;++s)i+=At[e[s]];return i}function gt(e,r,t){let n=e.slice(r,t),i="";for(let s=0;s<n.length-1;s+=2)i+=String.fromCharCode(n[s]+n[s+1]*256);return i}o.prototype.slice=function(r,t){let n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);let i=this.subarray(r,t);return Object.setPrototypeOf(i,o.prototype),i};function N(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r],s=1,a=0;for(;++a<t&&(s*=256);)i+=this[r+a]*s;return i},o.prototype.readUintBE=o.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r+--t],s=1;for(;t>0&&(s*=256);)i+=this[r+--t]*s;return i},o.prototype.readUint8=o.prototype.readUInt8=function(r,t){return r=r>>>0,t||N(r,1,this.length),this[r]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||N(r,2,this.length),this[r]|this[r+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||N(r,2,this.length),this[r]<<8|this[r+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||N(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},o.prototype.readBigUInt64LE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,s=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(i)+(BigInt(s)<<BigInt(32))}),o.prototype.readBigUInt64BE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],s=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return (BigInt(i)<<BigInt(32))+BigInt(s)}),o.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r],s=1,a=0;for(;++a<t&&(s*=256);)i+=this[r+a]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=t,s=1,a=this[r+--i];for(;i>0&&(s*=256);)a+=this[r+--i]*s;return s*=128,a>=s&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(r,t){return r=r>>>0,t||N(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},o.prototype.readInt16LE=function(r,t){r=r>>>0,t||N(r,2,this.length);let n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},o.prototype.readInt16BE=function(r,t){r=r>>>0,t||N(r,2,this.length);let n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},o.prototype.readInt32LE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},o.prototype.readInt32BE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},o.prototype.readBigInt64LE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return (BigInt(i)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)}),o.prototype.readBigInt64BE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return (BigInt(i)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n)}),o.prototype.readFloatLE=function(r,t){return r=r>>>0,t||N(r,4,this.length),c.read(this,r,!0,23,4)},o.prototype.readFloatBE=function(r,t){return r=r>>>0,t||N(r,4,this.length),c.read(this,r,!1,23,4)},o.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||N(r,8,this.length),c.read(this,r,!0,52,8)},o.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||N(r,8,this.length),c.read(this,r,!1,52,8)};function $(e,r,t,n,i,s){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<s)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let d=Math.pow(2,8*n)-1;$(this,r,t,n,d,0);}let s=1,a=0;for(this[t]=r&255;++a<n&&(s*=256);)this[t+a]=r/s&255;return t+n},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let d=Math.pow(2,8*n)-1;$(this,r,t,n,d,0);}let s=n-1,a=1;for(this[t+s]=r&255;--s>=0&&(a*=256);)this[t+s]=r/a&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,255,0),this[t]=r&255,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function vr(e,r,t,n,i){Fr(r,n,i,e,t,7);let s=Number(r&BigInt(4294967295));e[t++]=s,s=s>>8,e[t++]=s,s=s>>8,e[t++]=s,s=s>>8,e[t++]=s;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,t}function Mr(e,r,t,n,i){Fr(r,n,i,e,t,7);let s=Number(r&BigInt(4294967295));e[t+7]=s,s=s>>8,e[t+6]=s,s=s>>8,e[t+5]=s,s=s>>8,e[t+4]=s;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=a,a=a>>8,e[t+2]=a,a=a>>8,e[t+1]=a,a=a>>8,e[t]=a,t+8}o.prototype.writeBigUInt64LE=Y(function(r,t=0){return vr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Y(function(r,t=0){return Mr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let x=Math.pow(2,8*n-1);$(this,r,t,n,x-1,-x);}let s=0,a=1,d=0;for(this[t]=r&255;++s<n&&(a*=256);)r<0&&d===0&&this[t+s-1]!==0&&(d=1),this[t+s]=(r/a>>0)-d&255;return t+n},o.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let x=Math.pow(2,8*n-1);$(this,r,t,n,x-1,-x);}let s=n-1,a=1,d=0;for(this[t+s]=r&255;--s>=0&&(a*=256);)r<0&&d===0&&this[t+s+1]!==0&&(d=1),this[t+s]=(r/a>>0)-d&255;return t+n},o.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1},o.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4},o.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4},o.prototype.writeBigInt64LE=Y(function(r,t=0){return vr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Y(function(r,t=0){return Mr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Cr(e,r,t,n,i,s){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Lr(e,r,t,n,i){return r=+r,t=t>>>0,i||Cr(e,r,t,4),c.write(e,r,t,n,23,4),t+4}o.prototype.writeFloatLE=function(r,t,n){return Lr(this,r,t,!0,n)},o.prototype.writeFloatBE=function(r,t,n){return Lr(this,r,t,!1,n)};function Dr(e,r,t,n,i){return r=+r,t=t>>>0,i||Cr(e,r,t,8),c.write(e,r,t,n,52,8),t+8}o.prototype.writeDoubleLE=function(r,t,n){return Dr(this,r,t,!0,n)},o.prototype.writeDoubleBE=function(r,t,n){return Dr(this,r,t,!1,n)},o.prototype.copy=function(r,t,n,i){if(!o.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);let s=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),s},o.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){let a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a);}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let s;if(typeof r=="number")for(s=t;s<n;++s)this[s]=r;else {let a=o.isBuffer(r)?r:o.from(r,i),d=a.length;if(d===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(s=0;s<n-t;++s)this[s+t]=a[s%d];}return this};let Z={};function mr(e,r,t){Z[e]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,delete this.name;}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0});}toString(){return `${this.name} [${e}]: ${this.message}`}};}mr("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),mr("ERR_INVALID_ARG_TYPE",function(e,r){return `The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError),mr("ERR_OUT_OF_RANGE",function(e,r,t){let n=`The value of "${e}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=$r(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=$r(i)),i+="n"),n+=` It must be ${r}. Received ${i}`,n},RangeError);function $r(e){let r="",t=e.length,n=e[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return `${e.slice(0,t)}${r}`}function yt(e,r,t){rr(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&er(r,e.length-(t+1));}function Fr(e,r,t,n,i,s){if(e>t||e<r){let a=typeof r=="bigint"?"n":"",d;throw r===0||r===BigInt(0)?d=`>= 0${a} and < 2${a} ** ${(s+1)*8}${a}`:d=`>= -(2${a} ** ${(s+1)*8-1}${a}) and < 2 ** ${(s+1)*8-1}${a}`,new Z.ERR_OUT_OF_RANGE("value",d,e)}yt(n,i,s);}function rr(e,r){if(typeof e!="number")throw new Z.ERR_INVALID_ARG_TYPE(r,"number",e)}function er(e,r,t){throw Math.floor(e)!==e?(rr(e,t),new Z.ERR_OUT_OF_RANGE("offset","an integer",e)):r<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE("offset",`>= ${0} and <= ${r}`,e)}let Et=/[^+/0-9A-Za-z-_]/g;function It(e){if(e=e.split("=")[0],e=e.trim().replace(Et,""),e.length<2)return "";for(;e.length%4!==0;)e=e+"=";return e}function wr(e,r){r=r||1/0;let t,n=e.length,i=null,s=[];for(let a=0;a<n;++a){if(t=e.charCodeAt(a),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&s.push(239,191,189);continue}else if(a+1===n){(r-=3)>-1&&s.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&s.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536;}else i&&(r-=3)>-1&&s.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;s.push(t);}else if(t<2048){if((r-=2)<0)break;s.push(t>>6|192,t&63|128);}else if(t<65536){if((r-=3)<0)break;s.push(t>>12|224,t>>6&63|128,t&63|128);}else if(t<1114112){if((r-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128);}else throw new Error("Invalid code point")}return s}function Bt(e){let r=[];for(let t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Tt(e,r){let t,n,i,s=[];for(let a=0;a<e.length&&!((r-=2)<0);++a)t=e.charCodeAt(a),n=t>>8,i=t%256,s.push(i),s.push(n);return s}function Or(e){return u.toByteArray(It(e))}function ar(e,r,t,n){let i;for(i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function O(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function gr(e){return e!==e}let At=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)r[n+i]=e[t]+e[i];}return r}();function Y(e){return typeof BigInt>"u"?xt:e}function xt(){throw new Error("BigInt not supported")}return j$7}var X$4=Ge$2();var S$8=X$4.Buffer;var Ur$2={};St$1(Ur$2,{deleteItem:()=>We$5,getItem:()=>fr$1,setItem:()=>or$2});var ir$1=()=>typeof window>"u",lr$2=()=>!ir$1();var Ye$2="__IMX-",Ar$2=()=>lr$2()&&window.localStorage,Ke$1=u=>{if(u!==null)try{return JSON.parse(u)}catch{return u}},He$2=u=>typeof u=="string"?u:JSON.stringify(u),xr$2=u=>`${Ye$2}${u}`;function fr$1(u){if(Ar$2())return Ke$1(window.localStorage.getItem(xr$2(u)))}var or$2=(u,c)=>Ar$2()?(window.localStorage.setItem(xr$2(u),He$2(c)),!0):!1,We$5=u=>Ar$2()?(window.localStorage.removeItem(xr$2(u)),!0):!1;var Sr$2=0,Wr=u=>{let c=parseInt(u,10)*1e3,p=new Date(c),l=new Date;return Sr$2=p.getTime()-l.getTime(),Sr$2},jr$1=()=>{let u=new Date().getTime()+Sr$2;return new Date(u).toISOString()};var sr$1=(E=>(E.RUNTIME_ID="rid",E.PASSPORT_CLIENT_ID="passportClientId",E.ENVIRONMENT="env",E.PUBLISHABLE_API_KEY="pak",E.IDENTITY="uid",E.DOMAIN="domain",E.SDK_VERSION="sdkVersion",E))(sr$1||{});var Xe$4="https://api.immutable.com";async function hr$2(u,c){let p=axios$1.create({baseURL:Xe$4}),l=JSON.stringify(c),m={payload:S$8.from(l).toString("base64")};return (await p.post(u,m)).data}var q$6,J$4,qe$1=()=>{q$6=fr$1("metrics-events")||[],J$4=fr$1("metrics-runtime")||{};};qe$1();var V$5=(u,c)=>{J$4={...J$4,[u]:c},or$2("metrics-runtime",J$4);},ur$1=u=>{if(J$4[u]!==void 0)return J$4[u]},Xr=()=>J$4,qr$1=()=>q$6,Jr$1=u=>{q$6.push(u),or$2("metrics-events",q$6);},zr$2=u=>{q$6=q$6.slice(u),or$2("metrics-events",q$6);},dr$1=u=>{let c=[];return Object.entries(u).forEach(([p,l])=>{(typeof p=="string"||typeof l=="string"||typeof l=="number"||typeof l=="boolean")&&c.push([p,l.toString()]);}),c};var kr$1="2.11.1-alpha.0",Je$3=()=>ir$1()?"":window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0?new URL(window.location.ancestorOrigins[0]).hostname:document.referrer?new URL(window.document.referrer).hostname:"",ze$2=()=>{if(ir$1())return "";let u;try{window.self!==window.top&&(u=Je$3());}catch{}return u||(u=window.location.hostname),u},Qe$3=()=>{if(V$5("sdkVersion",kr$1),ir$1())return {browser:"nodejs",sdkVersion:kr$1};let u=ze$2();return u&&V$5("domain",u),{sdkVersion:kr$1,browser:window.navigator.userAgent,domain:u,tz:Intl.DateTimeFormat().resolvedOptions().timeZone,screen:`${window.screen.width}x${window.screen.height}`}},_r$2=!1,Qr$1=()=>_r$2,Zr=async()=>{_r$2=!0;try{let u=dr$1(Qe$3()),c=ur$1("rid"),p=ur$1("uid"),m=await hr$2("/v1/sdk/initialise",{version:1,data:{runtimeDetails:u,runtimeId:c,uId:p}}),{runtimeId:w,sTime:o}=m;V$5("rid",w),Wr(o);}catch{_r$2=!1;}};function R$3(u,c){return (...p)=>{try{let l=u(...p);return l instanceof Promise?l.catch(()=>c):l}catch{return c}}}function Ze$4(){return lr$2()||typeof T$6>"u"?!1:T$6.env.JEST_WORKER_ID!==void 0}var rt$1=R$3(Ze$4,!1);var et$1="imtbl__metrics",tn$1=5e3,en$1=1e3,z$8=(u,c)=>getGlobalisedValue_1(et$1,u,c),nt$2=(u,c)=>{let p=memorise(c,{lruOptions:{ttl:tn$1,max:en$1}});return getGlobalisedValue_1(et$1,u,p)};var nn=5e3,on=(u,c,p)=>{let l={event:`${u}.${c}`,time:jr$1(),...p&&{properties:dr$1(p)}};Jr$1(l);},Q$6=R$3(nt$2("track",on)),sn=async()=>{if(Qr$1()===!1){await Zr();return}let u=qr$1();if(u.length===0)return;let c=u.length,p=Xr();await hr$2("/v1/sdk/metrics",{version:1,data:{events:u,details:p}})instanceof Error||zr$2(c);},un=R$3(sn),ot$1=async()=>{await un(),setTimeout(ot$1,nn);},it$1=!1,an=()=>{it$1||(it$1=!0,ot$1());};rt$1()||R$3(z$8("startFlushing",an))();var Pr$2=(u,c,p,l)=>Q$6(u,c,{...l||{},duration:Math.round(p)});var st$2=()=>{let u=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return `${u()}${u()}-${u()}-${u()}-${u()}-${u()}${u()}${u()}`};var cn=(...u)=>{if(!u.some(l=>!!l))return {};let p={};return u.forEach(l=>{l&&(p={...p,...l});}),p},pn$1=u=>u.replace(/[^a-zA-Z0-9\s\-_]/g,""),ln=(u,c)=>`${u}_${pn$1(c)}`,fn=(u,c,p=!0,l)=>{let m=st$2(),w=Date.now(),o=0,E=0,b={},C=(..._)=>cn(b,..._,{flowId:m,flowName:c});b=C(l);let B=_=>{_&&(b=C(_));},k=(_,f)=>{let h=ln(c,_),g=0,A=performance.now();o>0&&(g=A-E);let v=C(f,{flowEventName:_,flowStep:o});Pr$2(u,h,g,v),o++,E=A;};return p&&k("Start"),{details:{moduleName:u,flowName:c,flowId:m,flowStartTime:w},addEvent:R$3(k),addFlowProperties:R$3(B)}},hn=R$3(fn);var dn$1=(u,c,p,l)=>{let{message:m}=p,w=p.stack||"",{cause:o}=p;o instanceof Error&&(w=`${w}
4113
- Cause: ${o.message}
4114
- ${o.stack}`),Q$6(u,`trackError_${c}`,{...l||{},errorMessage:m,errorStack:w,isTrackError:!0});},mn$1=R$3(dn$1);var En$1=u=>{V$5("env",u);},In$1=R$3(z$8("setEnvironment",En$1)),Bn=u=>{V$5("passportClientId",u);};R$3(z$8("setPassportClientId",Bn));var An=u=>{V$5("pak",u);};R$3(z$8("setPublishableApiKey",An));R$3(z$8("getDetail",ur$1));
4115
-
4116
- var K$6=(t=>(t.PRODUCTION="production",t.SANDBOX="sandbox",t))(K$6||{}),u$3=(n=>(n.API_KEY="x-immutable-api-key",n.PUBLISHABLE_KEY="x-immutable-publishable-key",n.RATE_LIMITING_KEY="x-api-key",n))(u$3||{}),r$7=class r{environment;rateLimitingKey;apiKey;publishableKey;constructor(i){this.environment=i.environment,this.publishableKey=i.publishableKey,this.apiKey=i.apiKey,this.rateLimitingKey=i.rateLimitingKey,In$1(i.environment),Q$6("config","created_imtbl_config");}};
4117
-
4118
4118
  /* Do NOT modify this file; see /src.ts/_admin/update-version.ts */
4119
4119
  /**
4120
4120
  * The current version of Ethers.
@@ -8285,26 +8285,26 @@ function validateObject(object, validators, optValidators = {}) {
8285
8285
  // const z4 = validateObject(o, { a: 'boolean', z: 'bug' });
8286
8286
 
8287
8287
  var ut$1 = /*#__PURE__*/Object.freeze({
8288
- __proto__: null,
8289
- bitGet: bitGet,
8290
- bitLen: bitLen,
8291
- bitMask: bitMask,
8292
- bitSet: bitSet,
8293
- bytesToHex: bytesToHex,
8294
- bytesToNumberBE: bytesToNumberBE,
8295
- bytesToNumberLE: bytesToNumberLE,
8296
- concatBytes: concatBytes,
8297
- createHmacDrbg: createHmacDrbg,
8298
- ensureBytes: ensureBytes$1,
8299
- equalBytes: equalBytes,
8300
- hexToBytes: hexToBytes,
8301
- hexToNumber: hexToNumber,
8302
- numberToBytesBE: numberToBytesBE,
8303
- numberToBytesLE: numberToBytesLE,
8304
- numberToHexUnpadded: numberToHexUnpadded,
8305
- numberToVarBytesBE: numberToVarBytesBE,
8306
- utf8ToBytes: utf8ToBytes$1,
8307
- validateObject: validateObject
8288
+ __proto__: null,
8289
+ bitGet: bitGet,
8290
+ bitLen: bitLen,
8291
+ bitMask: bitMask,
8292
+ bitSet: bitSet,
8293
+ bytesToHex: bytesToHex,
8294
+ bytesToNumberBE: bytesToNumberBE,
8295
+ bytesToNumberLE: bytesToNumberLE,
8296
+ concatBytes: concatBytes,
8297
+ createHmacDrbg: createHmacDrbg,
8298
+ ensureBytes: ensureBytes$1,
8299
+ equalBytes: equalBytes,
8300
+ hexToBytes: hexToBytes,
8301
+ hexToNumber: hexToNumber,
8302
+ numberToBytesBE: numberToBytesBE,
8303
+ numberToBytesLE: numberToBytesLE,
8304
+ numberToHexUnpadded: numberToHexUnpadded,
8305
+ numberToVarBytesBE: numberToVarBytesBE,
8306
+ utf8ToBytes: utf8ToBytes$1,
8307
+ validateObject: validateObject
8308
8308
  });
8309
8309
 
8310
8310
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
@@ -25676,12 +25676,12 @@ function isSlowBuffer (obj) {
25676
25676
  }
25677
25677
 
25678
25678
  var _polyfillNode_buffer = /*#__PURE__*/Object.freeze({
25679
- __proto__: null,
25680
- Buffer: Buffer$1,
25681
- INSPECT_MAX_BYTES: INSPECT_MAX_BYTES,
25682
- SlowBuffer: SlowBuffer,
25683
- isBuffer: isBuffer$1,
25684
- kMaxLength: _kMaxLength
25679
+ __proto__: null,
25680
+ Buffer: Buffer$1,
25681
+ INSPECT_MAX_BYTES: INSPECT_MAX_BYTES,
25682
+ SlowBuffer: SlowBuffer,
25683
+ isBuffer: isBuffer$1,
25684
+ kMaxLength: _kMaxLength
25685
25685
  });
25686
25686
 
25687
25687
  var require$$0$5 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_buffer);
@@ -29081,8 +29081,8 @@ if (typeof Object.create === 'function'){
29081
29081
  var inherits$6 = inherits$5;
29082
29082
 
29083
29083
  var _polyfillNode_inherits = /*#__PURE__*/Object.freeze({
29084
- __proto__: null,
29085
- default: inherits$6
29084
+ __proto__: null,
29085
+ default: inherits$6
29086
29086
  });
29087
29087
 
29088
29088
  var require$$2 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_inherits);
@@ -30301,8 +30301,8 @@ function commonjsRequire$1(path) {
30301
30301
  var _polyfillNode_crypto = {};
30302
30302
 
30303
30303
  var _polyfillNode_crypto$1 = /*#__PURE__*/Object.freeze({
30304
- __proto__: null,
30305
- default: _polyfillNode_crypto
30304
+ __proto__: null,
30305
+ default: _polyfillNode_crypto
30306
30306
  });
30307
30307
 
30308
30308
  var require$$0$4 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_crypto$1);
@@ -30685,39 +30685,39 @@ var tslib_es6 = {
30685
30685
  };
30686
30686
 
30687
30687
  var tslib_es6$1 = /*#__PURE__*/Object.freeze({
30688
- __proto__: null,
30689
- __addDisposableResource: __addDisposableResource,
30690
- get __assign () { return __assign; },
30691
- __asyncDelegator: __asyncDelegator,
30692
- __asyncGenerator: __asyncGenerator,
30693
- __asyncValues: __asyncValues,
30694
- __await: __await,
30695
- __awaiter: __awaiter$5,
30696
- __classPrivateFieldGet: __classPrivateFieldGet,
30697
- __classPrivateFieldIn: __classPrivateFieldIn,
30698
- __classPrivateFieldSet: __classPrivateFieldSet,
30699
- __createBinding: __createBinding$9,
30700
- __decorate: __decorate,
30701
- __disposeResources: __disposeResources,
30702
- __esDecorate: __esDecorate,
30703
- __exportStar: __exportStar,
30704
- __extends: __extends$1,
30705
- __generator: __generator,
30706
- __importDefault: __importDefault$j,
30707
- __importStar: __importStar$9,
30708
- __makeTemplateObject: __makeTemplateObject,
30709
- __metadata: __metadata,
30710
- __param: __param,
30711
- __propKey: __propKey,
30712
- __read: __read,
30713
- __rest: __rest,
30714
- __runInitializers: __runInitializers,
30715
- __setFunctionName: __setFunctionName,
30716
- __spread: __spread,
30717
- __spreadArray: __spreadArray$1,
30718
- __spreadArrays: __spreadArrays,
30719
- __values: __values,
30720
- default: tslib_es6
30688
+ __proto__: null,
30689
+ __addDisposableResource: __addDisposableResource,
30690
+ get __assign () { return __assign; },
30691
+ __asyncDelegator: __asyncDelegator,
30692
+ __asyncGenerator: __asyncGenerator,
30693
+ __asyncValues: __asyncValues,
30694
+ __await: __await,
30695
+ __awaiter: __awaiter$5,
30696
+ __classPrivateFieldGet: __classPrivateFieldGet,
30697
+ __classPrivateFieldIn: __classPrivateFieldIn,
30698
+ __classPrivateFieldSet: __classPrivateFieldSet,
30699
+ __createBinding: __createBinding$9,
30700
+ __decorate: __decorate,
30701
+ __disposeResources: __disposeResources,
30702
+ __esDecorate: __esDecorate,
30703
+ __exportStar: __exportStar,
30704
+ __extends: __extends$1,
30705
+ __generator: __generator,
30706
+ __importDefault: __importDefault$j,
30707
+ __importStar: __importStar$9,
30708
+ __makeTemplateObject: __makeTemplateObject,
30709
+ __metadata: __metadata,
30710
+ __param: __param,
30711
+ __propKey: __propKey,
30712
+ __read: __read,
30713
+ __rest: __rest,
30714
+ __runInitializers: __runInitializers,
30715
+ __setFunctionName: __setFunctionName,
30716
+ __spread: __spread,
30717
+ __spreadArray: __spreadArray$1,
30718
+ __spreadArrays: __spreadArrays,
30719
+ __values: __values,
30720
+ default: tslib_es6
30721
30721
  });
30722
30722
 
30723
30723
  var require$$0$3 = /*@__PURE__*/getAugmentedNamespace(tslib_es6$1);
@@ -63739,8 +63739,8 @@ var reactExports = react.exports;
63739
63739
  var React = /*@__PURE__*/getDefaultExportFromCjs$2(reactExports);
63740
63740
 
63741
63741
  var React$1 = /*#__PURE__*/_mergeNamespaces({
63742
- __proto__: null,
63743
- default: React
63742
+ __proto__: null,
63743
+ default: React
63744
63744
  }, [reactExports]);
63745
63745
 
63746
63746
  function _extends$2() {
@@ -69830,11 +69830,11 @@ function snapshot(proxyObject, handlePromise) {
69830
69830
 
69831
69831
  const o$2=proxy({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),T$4={state:o$2,subscribe(e){return subscribe(o$2,()=>e(o$2))},push(e,t){e!==o$2.view&&(o$2.view=e,t&&(o$2.data=t),o$2.history.push(e));},reset(e){o$2.view=e,o$2.history=[e];},replace(e){o$2.history.length>1&&(o$2.history[o$2.history.length-1]=e,o$2.view=e);},goBack(){if(o$2.history.length>1){o$2.history.pop();const[e]=o$2.history.slice(-1);o$2.view=e;}},setData(e){o$2.data=e;}},a$2={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return a$2.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return a$2.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(a$2.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},formatUniversalUrl(e,t,s){if(!a$2.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let n=e;n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},async wait(e){return new Promise(t=>{setTimeout(t,e);})},openHref(e,t){window.open(e,t,"noreferrer noopener");},setWalletConnectDeepLink(e,t){try{localStorage.setItem(a$2.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}));}catch{console.info("Unable to set WalletConnect deep link");}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(a$2.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}));}catch{console.info("Unable to set WalletConnect android deep link");}},removeWalletConnectDeepLink(){try{localStorage.removeItem(a$2.WALLETCONNECT_DEEPLINK_CHOICE);}catch{console.info("Unable to remove WalletConnect deep link");}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(a$2.WCM_VERSION,"2.6.2");}catch{console.info("Unable to set Web3Modal version in storage");}},getWalletRouterData(){var e;const t=(e=T$4.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},_$2=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),r$3=proxy({enabled:_$2,userSessionId:"",events:[],connectedWalletId:void 0}),R$1={state:r$3,subscribe(e){return subscribe(r$3.events,()=>e(snapshot(r$3.events[r$3.events.length-1])))},initialize(){r$3.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(r$3.userSessionId=crypto.randomUUID());},setConnectedWalletId(e){r$3.connectedWalletId=e;},click(e){if(r$3.enabled){const t={type:"CLICK",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}},track(e){if(r$3.enabled){const t={type:"TRACK",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}},view(e){if(r$3.enabled){const t={type:"VIEW",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}}},c$3=proxy({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),p$8={state:c$3,subscribe(e){return subscribe(c$3,()=>e(c$3))},setChains(e){c$3.chains=e;},setWalletConnectUri(e){c$3.walletConnectUri=e;},setIsCustomDesktop(e){c$3.isCustomDesktop=e;},setIsCustomMobile(e){c$3.isCustomMobile=e;},setIsDataLoaded(e){c$3.isDataLoaded=e;},setIsUiLoaded(e){c$3.isUiLoaded=e;},setIsAuth(e){c$3.isAuth=e;}},W$1=proxy({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),y$7={state:W$1,subscribe(e){return subscribe(W$1,()=>e(W$1))},setConfig(e){var t,s;R$1.initialize(),p$8.setChains(e.chains),p$8.setIsAuth(Boolean(e.enableAuthMode)),p$8.setIsCustomMobile(Boolean((t=e.mobileWallets)==null?void 0:t.length)),p$8.setIsCustomDesktop(Boolean((s=e.desktopWallets)==null?void 0:s.length)),a$2.setModalVersionInStorage(),Object.assign(W$1,e);}};var V$3=Object.defineProperty,D$4=Object.getOwnPropertySymbols,H$1=Object.prototype.hasOwnProperty,B$3=Object.prototype.propertyIsEnumerable,M$4=(e,t,s)=>t in e?V$3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K$3=(e,t)=>{for(var s in t||(t={}))H$1.call(t,s)&&M$4(e,s,t[s]);if(D$4)for(var s of D$4(t))B$3.call(t,s)&&M$4(e,s,t[s]);return e};const L$6="https://explorer-api.walletconnect.com",E$7="wcm",O$5="js-2.6.2";async function w$5(e,t){const s=K$3({sdkType:E$7,sdkVersion:O$5},t),n=new URL(e,L$6);return n.searchParams.append("projectId",y$7.state.projectId),Object.entries(s).forEach(([i,l])=>{l&&n.searchParams.append(i,String(l));}),(await fetch(n)).json()}const m$4={async getDesktopListings(e){return w$5("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return w$5("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return w$5("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return w$5("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return `${L$6}/w3m/v1/getWalletImage/${e}?projectId=${y$7.state.projectId}&sdkType=${E$7}&sdkVersion=${O$5}`},getAssetImageUrl(e){return `${L$6}/w3m/v1/getAssetImage/${e}?projectId=${y$7.state.projectId}&sdkType=${E$7}&sdkVersion=${O$5}`}};var z$6=Object.defineProperty,j$5=Object.getOwnPropertySymbols,J$1=Object.prototype.hasOwnProperty,q$3=Object.prototype.propertyIsEnumerable,k$3=(e,t,s)=>t in e?z$6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,F=(e,t)=>{for(var s in t||(t={}))J$1.call(t,s)&&k$3(e,s,t[s]);if(j$5)for(var s of j$5(t))q$3.call(t,s)&&k$3(e,s,t[s]);return e};const N$3=a$2.isMobile(),d$4=proxy({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),te$2={state:d$4,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=y$7.state;if(e==="NONE"||t==="ALL"&&!e)return d$4.recomendedWallets;if(a$2.isArray(e)){const s={recommendedIds:e.join(",")},{listings:n}=await m$4.getAllListings(s),i=Object.values(n);i.sort((l,v)=>{const b=e.indexOf(l.id),f=e.indexOf(v.id);return b-f}),d$4.recomendedWallets=i;}else {const{chains:s,isAuth:n}=p$8.state,i=s?.join(","),l=a$2.isArray(t),v={page:1,sdks:n?"auth_v1":void 0,entries:a$2.RECOMMENDED_WALLET_AMOUNT,chains:i,version:2,excludedIds:l?t.join(","):void 0},{listings:b}=N$3?await m$4.getMobileListings(v):await m$4.getDesktopListings(v);d$4.recomendedWallets=Object.values(b);}return d$4.recomendedWallets},async getWallets(e){const t=F({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:n}=y$7.state,{recomendedWallets:i}=d$4;if(n==="ALL")return d$4.wallets;i.length?t.excludedIds=i.map(x=>x.id).join(","):a$2.isArray(s)&&(t.excludedIds=s.join(",")),a$2.isArray(n)&&(t.excludedIds=[t.excludedIds,n].filter(Boolean).join(",")),p$8.state.isAuth&&(t.sdks="auth_v1");const{page:l,search:v}=e,{listings:b,total:f}=N$3?await m$4.getMobileListings(t):await m$4.getDesktopListings(t),A=Object.values(b),U=v?"search":"wallets";return d$4[U]={listings:[...d$4[U].listings,...A],total:f,page:l??1},{listings:A,total:f}},getWalletImageUrl(e){return m$4.getWalletImageUrl(e)},getAssetImageUrl(e){return m$4.getAssetImageUrl(e)},resetSearch(){d$4.search={listings:[],total:0,page:1};}},I$3=proxy({open:!1}),se$2={state:I$3,subscribe(e){return subscribe(I$3,()=>e(I$3))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:n}=p$8.state;if(a$2.removeWalletConnectDeepLink(),p$8.setWalletConnectUri(e?.uri),p$8.setChains(e?.chains),T$4.reset("ConnectWallet"),s&&n)I$3.open=!0,t();else {const i=setInterval(()=>{const l=p$8.state;l.isUiLoaded&&l.isDataLoaded&&(clearInterval(i),I$3.open=!0,t());},200);}})},close(){I$3.open=!1;}};var G$1=Object.defineProperty,$$1=Object.getOwnPropertySymbols,Q$4=Object.prototype.hasOwnProperty,X$2=Object.prototype.propertyIsEnumerable,S$5=(e,t,s)=>t in e?G$1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Y$1=(e,t)=>{for(var s in t||(t={}))Q$4.call(t,s)&&S$5(e,s,t[s]);if($$1)for(var s of $$1(t))X$2.call(t,s)&&S$5(e,s,t[s]);return e};function Z$2(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const C$5=proxy({themeMode:Z$2()?"dark":"light"}),ne$3={state:C$5,subscribe(e){return subscribe(C$5,()=>e(C$5))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(C$5.themeMode=t),s&&(C$5.themeVariables=Y$1({},s));}},g$5=proxy({open:!1,message:"",variant:"success"}),oe$3={state:g$5,subscribe(e){return subscribe(g$5,()=>e(g$5))},openToast(e,t){g$5.open=!0,g$5.message=e,g$5.variant=t;},closeToast(){g$5.open=!1;}};
69832
69832
 
69833
- let d$3 = class d{constructor(e){this.openModal=se$2.open,this.closeModal=se$2.close,this.subscribeModal=se$2.subscribe,this.setTheme=ne$3.setThemeConfig,ne$3.setThemeConfig(e),y$7.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-CxkUooDa.js');const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),p$8.setIsUiLoaded(!0);}}};
69833
+ let d$3 = class d{constructor(e){this.openModal=se$2.open,this.closeModal=se$2.close,this.subscribeModal=se$2.subscribe,this.setTheme=ne$3.setThemeConfig,ne$3.setThemeConfig(e),y$7.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-CSqnfOB-.js');const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),p$8.setIsUiLoaded(!0);}}};
69834
69834
 
69835
69835
  var index$1 = /*#__PURE__*/Object.freeze({
69836
- __proto__: null,
69837
- WalletConnectModal: d$3
69836
+ __proto__: null,
69837
+ WalletConnectModal: d$3
69838
69838
  });
69839
69839
 
69840
69840
  // This constructor is used to store event handlers. Instantiating this is
@@ -74700,8 +74700,8 @@ const identity = from$2({
74700
74700
  });
74701
74701
 
74702
74702
  var identityBase = /*#__PURE__*/Object.freeze({
74703
- __proto__: null,
74704
- identity: identity
74703
+ __proto__: null,
74704
+ identity: identity
74705
74705
  });
74706
74706
 
74707
74707
  const base2 = rfc4648({
@@ -74712,8 +74712,8 @@ const base2 = rfc4648({
74712
74712
  });
74713
74713
 
74714
74714
  var base2$1 = /*#__PURE__*/Object.freeze({
74715
- __proto__: null,
74716
- base2: base2
74715
+ __proto__: null,
74716
+ base2: base2
74717
74717
  });
74718
74718
 
74719
74719
  const base8 = rfc4648({
@@ -74724,8 +74724,8 @@ const base8 = rfc4648({
74724
74724
  });
74725
74725
 
74726
74726
  var base8$1 = /*#__PURE__*/Object.freeze({
74727
- __proto__: null,
74728
- base8: base8
74727
+ __proto__: null,
74728
+ base8: base8
74729
74729
  });
74730
74730
 
74731
74731
  const base10 = baseX({
@@ -74735,8 +74735,8 @@ const base10 = baseX({
74735
74735
  });
74736
74736
 
74737
74737
  var base10$1 = /*#__PURE__*/Object.freeze({
74738
- __proto__: null,
74739
- base10: base10
74738
+ __proto__: null,
74739
+ base10: base10
74740
74740
  });
74741
74741
 
74742
74742
  const base16 = rfc4648({
@@ -74753,9 +74753,9 @@ const base16upper = rfc4648({
74753
74753
  });
74754
74754
 
74755
74755
  var base16$1 = /*#__PURE__*/Object.freeze({
74756
- __proto__: null,
74757
- base16: base16,
74758
- base16upper: base16upper
74756
+ __proto__: null,
74757
+ base16: base16,
74758
+ base16upper: base16upper
74759
74759
  });
74760
74760
 
74761
74761
  const base32 = rfc4648({
@@ -74814,16 +74814,16 @@ const base32z = rfc4648({
74814
74814
  });
74815
74815
 
74816
74816
  var base32$1 = /*#__PURE__*/Object.freeze({
74817
- __proto__: null,
74818
- base32: base32,
74819
- base32hex: base32hex,
74820
- base32hexpad: base32hexpad,
74821
- base32hexpadupper: base32hexpadupper,
74822
- base32hexupper: base32hexupper,
74823
- base32pad: base32pad,
74824
- base32padupper: base32padupper,
74825
- base32upper: base32upper,
74826
- base32z: base32z
74817
+ __proto__: null,
74818
+ base32: base32,
74819
+ base32hex: base32hex,
74820
+ base32hexpad: base32hexpad,
74821
+ base32hexpadupper: base32hexpadupper,
74822
+ base32hexupper: base32hexupper,
74823
+ base32pad: base32pad,
74824
+ base32padupper: base32padupper,
74825
+ base32upper: base32upper,
74826
+ base32z: base32z
74827
74827
  });
74828
74828
 
74829
74829
  const base36 = baseX({
@@ -74838,9 +74838,9 @@ const base36upper = baseX({
74838
74838
  });
74839
74839
 
74840
74840
  var base36$1 = /*#__PURE__*/Object.freeze({
74841
- __proto__: null,
74842
- base36: base36,
74843
- base36upper: base36upper
74841
+ __proto__: null,
74842
+ base36: base36,
74843
+ base36upper: base36upper
74844
74844
  });
74845
74845
 
74846
74846
  const base58btc = baseX({
@@ -74855,9 +74855,9 @@ const base58flickr = baseX({
74855
74855
  });
74856
74856
 
74857
74857
  var base58$1 = /*#__PURE__*/Object.freeze({
74858
- __proto__: null,
74859
- base58btc: base58btc,
74860
- base58flickr: base58flickr
74858
+ __proto__: null,
74859
+ base58btc: base58btc,
74860
+ base58flickr: base58flickr
74861
74861
  });
74862
74862
 
74863
74863
  const base64$4 = rfc4648({
@@ -74886,11 +74886,11 @@ const base64urlpad = rfc4648({
74886
74886
  });
74887
74887
 
74888
74888
  var base64$5 = /*#__PURE__*/Object.freeze({
74889
- __proto__: null,
74890
- base64: base64$4,
74891
- base64pad: base64pad,
74892
- base64url: base64url,
74893
- base64urlpad: base64urlpad
74889
+ __proto__: null,
74890
+ base64: base64$4,
74891
+ base64pad: base64pad,
74892
+ base64url: base64url,
74893
+ base64urlpad: base64urlpad
74894
74894
  });
74895
74895
 
74896
74896
  const alphabet = Array.from('\uD83D\uDE80\uD83E\uDE90\u2604\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09\u2600\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02\u2764\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09\u263A\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E\u270C\u2728\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2D\u2763\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33\u270B\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13\u2B50\u2705\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6\u2714\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90\u2639\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20\u261D\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2B\u26BD\uD83E\uDD19\u2615\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81\u26A1\uD83C\uDF1E\uD83C\uDF88\u274C\u270A\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2C\u2708\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74\u25B6\u27A1\u2753\uD83D\uDC8E\uD83D\uDCB8\u2B07\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A\u26A0\uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37\u260E\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51\u2744\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42');
@@ -74927,8 +74927,8 @@ const base256emoji = from$2({
74927
74927
  });
74928
74928
 
74929
74929
  var base256emoji$1 = /*#__PURE__*/Object.freeze({
74930
- __proto__: null,
74931
- base256emoji: base256emoji
74930
+ __proto__: null,
74931
+ base256emoji: base256emoji
74932
74932
  });
74933
74933
 
74934
74934
  const bases = {
@@ -79793,8 +79793,8 @@ var Gi$1 = /*@__PURE__*/getDefaultExportFromCjs$2(lodash_isequalExports$1);
79793
79793
  function unfetch(e,n){return n=n||{},new Promise(function(t,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return {ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}};for(var l in s.open(n.method||"get",e,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,n,t){o.push(n=n.toLowerCase()),u.push([n,t]),i[n]=i[n]?i[n]+","+t:t;}),t(a());},s.onerror=r,s.withCredentials="include"==n.credentials,n.headers)s.setRequestHeader(l,n.headers[l]);s.send(n.body||null);})}
79794
79794
 
79795
79795
  var unfetch_module = /*#__PURE__*/Object.freeze({
79796
- __proto__: null,
79797
- default: unfetch
79796
+ __proto__: null,
79797
+ default: unfetch
79798
79798
  });
79799
79799
 
79800
79800
  var require$$0$2 = /*@__PURE__*/getAugmentedNamespace(unfetch_module);
@@ -86165,7 +86165,7 @@ var Analytics = /** @class */ (function (_super) {
86165
86165
  return __generator(this, function (_b) {
86166
86166
  switch (_b.label) {
86167
86167
  case 0: return [4 /*yield*/, import(
86168
- /* webpackChunkName: "auto-track" */ './auto-track-qSbc-Us2.js')];
86168
+ /* webpackChunkName: "auto-track" */ './auto-track-DlvNeUL-.js')];
86169
86169
  case 1:
86170
86170
  autotrack = _b.sent();
86171
86171
  return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
@@ -86184,7 +86184,7 @@ var Analytics = /** @class */ (function (_super) {
86184
86184
  return __generator(this, function (_b) {
86185
86185
  switch (_b.label) {
86186
86186
  case 0: return [4 /*yield*/, import(
86187
- /* webpackChunkName: "auto-track" */ './auto-track-qSbc-Us2.js')];
86187
+ /* webpackChunkName: "auto-track" */ './auto-track-DlvNeUL-.js')];
86188
86188
  case 1:
86189
86189
  autotrack = _b.sent();
86190
86190
  return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
@@ -86203,7 +86203,7 @@ var Analytics = /** @class */ (function (_super) {
86203
86203
  return __generator(this, function (_b) {
86204
86204
  switch (_b.label) {
86205
86205
  case 0: return [4 /*yield*/, import(
86206
- /* webpackChunkName: "auto-track" */ './auto-track-qSbc-Us2.js')];
86206
+ /* webpackChunkName: "auto-track" */ './auto-track-DlvNeUL-.js')];
86207
86207
  case 1:
86208
86208
  autotrack = _b.sent();
86209
86209
  return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
@@ -86222,7 +86222,7 @@ var Analytics = /** @class */ (function (_super) {
86222
86222
  return __generator(this, function (_b) {
86223
86223
  switch (_b.label) {
86224
86224
  case 0: return [4 /*yield*/, import(
86225
- /* webpackChunkName: "auto-track" */ './auto-track-qSbc-Us2.js')];
86225
+ /* webpackChunkName: "auto-track" */ './auto-track-DlvNeUL-.js')];
86226
86226
  case 1:
86227
86227
  autotrack = _b.sent();
86228
86228
  return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
@@ -86372,7 +86372,7 @@ var Analytics = /** @class */ (function (_super) {
86372
86372
  return [2 /*return*/, []];
86373
86373
  }
86374
86374
  return [4 /*yield*/, import(
86375
- /* webpackChunkName: "queryString" */ './index-Bbasl0Oa.js')];
86375
+ /* webpackChunkName: "queryString" */ './index-yTaTvbT6.js')];
86376
86376
  case 1:
86377
86377
  queryString = (_a.sent()).queryString;
86378
86378
  return [2 /*return*/, queryString(this, query)];
@@ -88136,9 +88136,9 @@ function sourceMiddlewarePlugin(fn, integrations) {
88136
88136
  }
88137
88137
 
88138
88138
  var index = /*#__PURE__*/Object.freeze({
88139
- __proto__: null,
88140
- applyDestinationMiddleware: applyDestinationMiddleware,
88141
- sourceMiddlewarePlugin: sourceMiddlewarePlugin
88139
+ __proto__: null,
88140
+ applyDestinationMiddleware: applyDestinationMiddleware,
88141
+ sourceMiddlewarePlugin: sourceMiddlewarePlugin
88142
88142
  });
88143
88143
 
88144
88144
  var ActionDestination = /** @class */ (function () {
@@ -89076,7 +89076,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
89076
89076
  case 0:
89077
89077
  if (!hasTsubMiddleware(legacySettings)) return [3 /*break*/, 2];
89078
89078
  return [4 /*yield*/, import(
89079
- /* webpackChunkName: "tsub-middleware" */ './index-Ms0Pazz9.js').then(function (mod) {
89079
+ /* webpackChunkName: "tsub-middleware" */ './index-DjDJbucC.js').then(function (mod) {
89080
89080
  return mod.tsubMiddleware(legacySettings.middlewareSettings.routingRules);
89081
89081
  })];
89082
89082
  case 1:
@@ -89089,7 +89089,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
89089
89089
  tsubMiddleware = _d;
89090
89090
  if (!(hasLegacyDestinations(legacySettings) || legacyIntegrationSources.length > 0)) return [3 /*break*/, 5];
89091
89091
  return [4 /*yield*/, import(
89092
- /* webpackChunkName: "ajs-destination" */ './index-DjajM2c5.js').then(function (mod) {
89092
+ /* webpackChunkName: "ajs-destination" */ './index-CzQ9ByiO.js').then(function (mod) {
89093
89093
  return mod.ajsDestinations(writeKey, legacySettings, analytics.integrations, opts, tsubMiddleware, legacyIntegrationSources);
89094
89094
  })];
89095
89095
  case 4:
@@ -89102,7 +89102,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
89102
89102
  legacyDestinations = _e;
89103
89103
  if (!legacySettings.legacyVideoPluginsEnabled) return [3 /*break*/, 8];
89104
89104
  return [4 /*yield*/, import(
89105
- /* webpackChunkName: "legacyVideos" */ './index-BnNYLtGN.js').then(function (mod) {
89105
+ /* webpackChunkName: "legacyVideos" */ './index-BFZhntNM.js').then(function (mod) {
89106
89106
  return mod.loadLegacyVideoPlugins(analytics);
89107
89107
  })];
89108
89108
  case 7:
@@ -89111,7 +89111,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
89111
89111
  case 8:
89112
89112
  if (!((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track)) return [3 /*break*/, 10];
89113
89113
  return [4 /*yield*/, import(
89114
- /* webpackChunkName: "schemaFilter" */ './index-CIKxNawl.js').then(function (mod) {
89114
+ /* webpackChunkName: "schemaFilter" */ './index-DWkU02T_.js').then(function (mod) {
89115
89115
  var _a;
89116
89116
  return mod.schemaFilter((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track, legacySettings);
89117
89117
  })];
@@ -89150,7 +89150,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
89150
89150
  return enabled;
89151
89151
  })) return [3 /*break*/, 17];
89152
89152
  return [4 /*yield*/, import(
89153
- /* webpackChunkName: "remoteMiddleware" */ './index-DXDrI-qV.js').then(function (_a) {
89153
+ /* webpackChunkName: "remoteMiddleware" */ './index-CM_zsKt9.js').then(function (_a) {
89154
89154
  var remoteMiddlewares = _a.remoteMiddlewares;
89155
89155
  return __awaiter$5(_this, void 0, void 0, function () {
89156
89156
  var middleware, promises;
@@ -172806,7 +172806,7 @@ const useProvidersContext = () => {
172806
172806
  return context;
172807
172807
  };
172808
172808
 
172809
- const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-gSrZfodG.js'));
172809
+ const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-BZyjFBGu.js'));
172810
172810
  class AddTokens extends Base$3 {
172811
172811
  eventTopic = ro$1.IMTBL_ADD_TOKENS_WIDGET_EVENT;
172812
172812
  getValidatedProperties({ config, }) {
@@ -172850,7 +172850,7 @@ class AddTokens extends Base$3 {
172850
172850
  }
172851
172851
  }
172852
172852
 
172853
- const BridgeWidget = React.lazy(() => import('./BridgeWidget-r0paST80.js').then(function (n) { return n.a; }));
172853
+ const BridgeWidget = React.lazy(() => import('./BridgeWidget-BIRFR94g.js').then(function (n) { return n.a; }));
172854
172854
  class Bridge extends Base$3 {
172855
172855
  eventTopic = ro$1.IMTBL_BRIDGE_WIDGET_EVENT;
172856
172856
  getValidatedProperties({ config }) {
@@ -172993,7 +172993,7 @@ const commerceFlows = [
172993
172993
  Ao$1.TRANSFER,
172994
172994
  ];
172995
172995
 
172996
- const CommerceWidget = React.lazy(() => import('./CommerceWidget-BVeT67AH.js'));
172996
+ const CommerceWidget = React.lazy(() => import('./CommerceWidget-BLkWVOmt.js'));
172997
172997
  class CommerceWidgetRoot extends Base$3 {
172998
172998
  eventTopic = ro$1.IMTBL_COMMERCE_WIDGET_EVENT;
172999
172999
  getValidatedProperties({ config, }) {
@@ -174945,8 +174945,8 @@ function ConnectWidget({ config, sendSuccessEventOverride, sendCloseEventOverrid
174945
174945
  }
174946
174946
 
174947
174947
  var ConnectWidget$1 = /*#__PURE__*/Object.freeze({
174948
- __proto__: null,
174949
- default: ConnectWidget
174948
+ __proto__: null,
174949
+ default: ConnectWidget
174950
174950
  });
174951
174951
 
174952
174952
  function ConnectLoader({ children, params, widgetConfig, successEvent, closeEvent, goBackEvent, showBackButton, }) {
@@ -175246,7 +175246,7 @@ const orchestrationEvents = {
175246
175246
  sendRequestAddTokensEvent,
175247
175247
  };
175248
175248
 
175249
- const OnRampWidget = React.lazy(() => import('./OnRampWidget-DV3hIW2s.js'));
175249
+ const OnRampWidget = React.lazy(() => import('./OnRampWidget-DQkLf241.js'));
175250
175250
  class OnRamp extends Base$3 {
175251
175251
  eventTopic = ro$1.IMTBL_ONRAMP_WIDGET_EVENT;
175252
175252
  getValidatedProperties({ config }) {
@@ -175385,7 +175385,7 @@ const sendSalePaymentTokenEvent = (eventTarget, details) => {
175385
175385
  eventTarget.dispatchEvent(event);
175386
175386
  };
175387
175387
 
175388
- const SaleWidget = React.lazy(() => import('./SaleWidget-BZLL8XJQ.js'));
175388
+ const SaleWidget = React.lazy(() => import('./SaleWidget-D1n2M6JS.js'));
175389
175389
  class Sale extends Base$3 {
175390
175390
  eventTopic = ro$1.IMTBL_SALE_WIDGET_EVENT;
175391
175391
  // TODO: add specific validation logic for the sale items
@@ -175536,7 +175536,7 @@ const sendSwapRejectedEvent = (eventTarget, reason) => {
175536
175536
  eventTarget.dispatchEvent(rejectedEvent);
175537
175537
  };
175538
175538
 
175539
- const SwapWidget = React.lazy(() => import('./SwapWidget-Cpa0jpUE.js').then(function (n) { return n.b; }));
175539
+ const SwapWidget = React.lazy(() => import('./SwapWidget-CUhPZBmW.js').then(function (n) { return n.b; }));
175540
175540
  class Swap extends Base$3 {
175541
175541
  eventTopic = ro$1.IMTBL_SWAP_WIDGET_EVENT;
175542
175542
  getValidatedProperties({ config }) {
@@ -175643,7 +175643,7 @@ function sendDisconnectWalletEvent(eventTarget) {
175643
175643
  eventTarget.dispatchEvent(disconnectWalletEvent);
175644
175644
  }
175645
175645
 
175646
- const WalletWidget = React.lazy(() => import('./WalletWidget-DG3ByO2c.js'));
175646
+ const WalletWidget = React.lazy(() => import('./WalletWidget-kEOeDtpv.js'));
175647
175647
  class Wallet extends Base$3 {
175648
175648
  eventTopic = ro$1.IMTBL_WALLET_WIDGET_EVENT;
175649
175649
  getValidatedProperties({ config }) {
@@ -240905,8 +240905,8 @@ var libsodiumSumo = {exports: {}};
240905
240905
  var _polyfillNode_fs = {};
240906
240906
 
240907
240907
  var _polyfillNode_fs$1 = /*#__PURE__*/Object.freeze({
240908
- __proto__: null,
240909
- default: _polyfillNode_fs
240908
+ __proto__: null,
240909
+ default: _polyfillNode_fs
240910
240910
  });
240911
240911
 
240912
240912
  var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_fs$1);
@@ -241145,18 +241145,18 @@ var substr = 'ab'.substr(-1) === 'b' ?
241145
241145
  ;
241146
241146
 
241147
241147
  var _polyfillNode_path$1 = /*#__PURE__*/Object.freeze({
241148
- __proto__: null,
241149
- basename: basename,
241150
- default: _polyfillNode_path,
241151
- delimiter: delimiter$1,
241152
- dirname: dirname,
241153
- extname: extname,
241154
- isAbsolute: isAbsolute,
241155
- join: join,
241156
- normalize: normalize,
241157
- relative: relative,
241158
- resolve: resolve,
241159
- sep: sep
241148
+ __proto__: null,
241149
+ basename: basename,
241150
+ default: _polyfillNode_path,
241151
+ delimiter: delimiter$1,
241152
+ dirname: dirname,
241153
+ extname: extname,
241154
+ isAbsolute: isAbsolute,
241155
+ join: join,
241156
+ normalize: normalize,
241157
+ relative: relative,
241158
+ resolve: resolve,
241159
+ sep: sep
241160
241160
  });
241161
241161
 
241162
241162
  var require$$1 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_path$1);