@powerhousedao/powerhouse-vetra-packages 6.0.0-dev.165 → 6.0.0-dev.166

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 (78) hide show
  1. package/dist/browser/{actions-DaMgcd34--TlGpNPl.d.ts → actions-DaMgcd34-DufzmhIh.d.ts} +1 -1
  2. package/dist/browser/{actions-DaMgcd34--TlGpNPl.d.ts.map → actions-DaMgcd34-DufzmhIh.d.ts.map} +1 -1
  3. package/dist/browser/{chunk-VBDAOXYI-B6lKBJg5.js → chunk-VBDAOXYI-B4r8Aw5i.js} +3 -3
  4. package/dist/browser/{chunk-VBDAOXYI-B6lKBJg5.js.map → chunk-VBDAOXYI-B4r8Aw5i.js.map} +1 -1
  5. package/dist/browser/{connect-RA0VnuK7-DHbEzVj1.js → connect-MjNGHHUz-BF7j8y2-.js} +68 -3313
  6. package/dist/browser/connect-MjNGHHUz-BF7j8y2-.js.map +1 -0
  7. package/dist/browser/document-models/index.d.ts +1 -1
  8. package/dist/browser/{editor-BasuMJop.js → editor-C1Gw1l3r.js} +6 -6
  9. package/dist/browser/{editor-BasuMJop.js.map → editor-C1Gw1l3r.js.map} +1 -1
  10. package/dist/browser/{editor-C3OpLYBY.js → editor-CdzXLtNM.js} +4 -4
  11. package/dist/browser/{editor-C3OpLYBY.js.map → editor-CdzXLtNM.js.map} +1 -1
  12. package/dist/browser/editors/document-model-editor/module.d.ts +1 -1
  13. package/dist/browser/editors/document-model-editor/module.js +1 -1
  14. package/dist/browser/editors/generic-drive-explorer/index.js +3 -3
  15. package/dist/browser/editors/generic-drive-explorer/module.d.ts +1 -1
  16. package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
  17. package/dist/browser/{folder-view-BI22-5h7.js → folder-view-D9GHnNl4.js} +2 -2
  18. package/dist/browser/{folder-view-BI22-5h7.js.map → folder-view-D9GHnNl4.js.map} +1 -1
  19. package/dist/browser/{graphql-editor-CsRXqPWz.js → graphql-editor-CpHMdwcs.js} +2 -2
  20. package/dist/browser/{graphql-editor-CsRXqPWz.js.map → graphql-editor-CpHMdwcs.js.map} +1 -1
  21. package/dist/browser/{hooks-BgoYkynX.js → hooks-DcjZbCsk.js} +1 -1
  22. package/dist/browser/{hooks-BgoYkynX.js.map → hooks-DcjZbCsk.js.map} +1 -1
  23. package/dist/browser/index.d.ts +1 -1
  24. package/dist/browser/{json-editor-CVAkfqMH.js → json-editor-C_IZ6CW1.js} +2 -2
  25. package/dist/browser/{json-editor-CVAkfqMH.js.map → json-editor-C_IZ6CW1.js.map} +1 -1
  26. package/dist/browser/{nodefs-Aj7KRDaD.js → nodefs-CVI3Z1Xb.js} +2 -2
  27. package/dist/browser/{nodefs-Aj7KRDaD.js.map → nodefs-CVI3Z1Xb.js.map} +1 -1
  28. package/dist/browser/{opfs-ahp-oTuZVHs4.js → opfs-ahp-Cnv_7n9l.js} +2 -2
  29. package/dist/browser/{opfs-ahp-oTuZVHs4.js.map → opfs-ahp-Cnv_7n9l.js.map} +1 -1
  30. package/dist/browser/{state-schemas-CN4RFrC-.js → state-schemas-CitlQ5rT.js} +4 -4
  31. package/dist/browser/{state-schemas-CN4RFrC-.js.map → state-schemas-CitlQ5rT.js.map} +1 -1
  32. package/dist/browser/{style-D8dWuAxH.js → style-D0HSuDqn.js} +1 -1
  33. package/dist/browser/{style-D8dWuAxH.js.map → style-D0HSuDqn.js.map} +1 -1
  34. package/dist/node/{actions-DaMgcd34-KJ4Qe4Ht.d.mts → actions-DaMgcd34-Bkhx_OMb.d.mts} +1 -1
  35. package/dist/node/{actions-DaMgcd34-KJ4Qe4Ht.d.mts.map → actions-DaMgcd34-Bkhx_OMb.d.mts.map} +1 -1
  36. package/dist/node/{connect-RA0VnuK7-XkIzOzde.mjs → connect-MjNGHHUz-Bk1Rjd4n.mjs} +331 -3969
  37. package/dist/node/connect-MjNGHHUz-Bk1Rjd4n.mjs.map +1 -0
  38. package/dist/node/document-models/index.d.mts +1 -1
  39. package/dist/node/{documents-C87zv-Ya.mjs → documents-DzgbZ5_x.mjs} +1 -1
  40. package/dist/node/{documents-C87zv-Ya.mjs.map → documents-DzgbZ5_x.mjs.map} +1 -1
  41. package/dist/node/{editor-1I8VJy9z.mjs → editor-C0Gm4RBa.mjs} +6 -6
  42. package/dist/node/{editor-1I8VJy9z.mjs.map → editor-C0Gm4RBa.mjs.map} +1 -1
  43. package/dist/node/{editor-CXXzgw3L.mjs → editor-DCVyggbU.mjs} +3 -3
  44. package/dist/node/{editor-CXXzgw3L.mjs.map → editor-DCVyggbU.mjs.map} +1 -1
  45. package/dist/node/editors/document-model-editor/module.d.mts +1 -1
  46. package/dist/node/editors/document-model-editor/module.mjs +1 -1
  47. package/dist/node/editors/generic-drive-explorer/index.mjs +2 -2
  48. package/dist/node/editors/generic-drive-explorer/module.d.mts +1 -1
  49. package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
  50. package/dist/node/{folder-view-6tGlhLZy.mjs → folder-view-B6mN1Plk.mjs} +2 -2
  51. package/dist/node/{folder-view-6tGlhLZy.mjs.map → folder-view-B6mN1Plk.mjs.map} +1 -1
  52. package/dist/node/{graphql-editor-D8yLGZQU.mjs → graphql-editor-BQKSvxu4.mjs} +3 -3
  53. package/dist/node/{graphql-editor-D8yLGZQU.mjs.map → graphql-editor-BQKSvxu4.mjs.map} +1 -1
  54. package/dist/node/{hooks-BmNebm42.mjs → hooks-D5M9Gabh.mjs} +2 -2
  55. package/dist/node/{hooks-BmNebm42.mjs.map → hooks-D5M9Gabh.mjs.map} +1 -1
  56. package/dist/node/index.d.mts +1 -1
  57. package/dist/node/{json-editor-C__VLNCx.mjs → json-editor-BNh5hJeX.mjs} +2 -2
  58. package/dist/node/{json-editor-C__VLNCx.mjs.map → json-editor-BNh5hJeX.mjs.map} +1 -1
  59. package/dist/node/{nodefs-CKfsBrmG.mjs → nodefs-Bxd2PX6q.mjs} +1 -1
  60. package/dist/node/{nodefs-CKfsBrmG.mjs.map → nodefs-Bxd2PX6q.mjs.map} +1 -1
  61. package/dist/node/{opfs-ahp-iNpRknja.mjs → opfs-ahp-CtwIiqYK.mjs} +1 -1
  62. package/dist/node/{opfs-ahp-iNpRknja.mjs.map → opfs-ahp-CtwIiqYK.mjs.map} +1 -1
  63. package/dist/node/{schema-context-CqDkoexG.mjs → schema-context-BssITYoe.mjs} +2 -2
  64. package/dist/node/{schema-context-CqDkoexG.mjs.map → schema-context-BssITYoe.mjs.map} +1 -1
  65. package/dist/node/{state-schemas-Dn69ytvP.mjs → state-schemas-2jwwSHRI.mjs} +6 -6
  66. package/dist/node/{state-schemas-Dn69ytvP.mjs.map → state-schemas-2jwwSHRI.mjs.map} +1 -1
  67. package/package.json +5 -5
  68. package/dist/browser/call-CFQhA1jG.js +0 -5322
  69. package/dist/browser/call-CFQhA1jG.js.map +0 -1
  70. package/dist/browser/ccip-DRIGhZ80.js +0 -161
  71. package/dist/browser/ccip-DRIGhZ80.js.map +0 -1
  72. package/dist/browser/connect-RA0VnuK7-DHbEzVj1.js.map +0 -1
  73. package/dist/node/call-CTeP5Xy7.mjs +0 -5322
  74. package/dist/node/call-CTeP5Xy7.mjs.map +0 -1
  75. package/dist/node/ccip-CS29z_jK.mjs +0 -161
  76. package/dist/node/ccip-CS29z_jK.mjs.map +0 -1
  77. package/dist/node/connect-RA0VnuK7-XkIzOzde.mjs.map +0 -1
  78. /package/dist/browser/{dist-D6VvDFPS.js → dist-CTGANq2I.js} +0 -0
@@ -2,11 +2,10 @@ import { Wa as __commonJSMin, qa as __toESM } from "./schemas-Bj5Xrw0U.js";
2
2
  import { B as undo, C as documentModelDocumentType, E as replayDocument, H as validateModules, T as redo, U as validateStateSchemaName, V as validateInitialState, _ as buildSignedAction, a as handleTargetNameCollisions, c as updateNode, d as logger, g as baseSaveToFileHandle, h as baseLoadFromInput, i as generateNodesCopy, l as childLogger, n as copyNode, o as isFileNode, s as isFolderNode, t as addFolder$1, u as documentModelDocumentModelModule, v as createPresignedHeader, w as generateId, y as createZip } from "./document-drive-BF7UoToX.js";
3
3
  import { t as capitalCase } from "./dist-BXygvBtd.js";
4
4
  import { A as twMerge, _ as mergeClassNameProps, a as Content2, b as __assign, c as Root3, d as DropdownMenuContent, f as DropdownMenuItem, g as cn$1, k as twJoin, l as Trigger, m as Icon, o as Portal, p as DropdownMenuTrigger, s as Provider, u as DropdownMenu, y as clsx } from "./dist-B7W7q8B9.js";
5
- import { a as or, c as F$2, d as R$2, f as T$3, g as x$3, h as u$1, l as L$2, m as h$2, n as Vr, p as U$1, r as ce$2, s as ur, t as C$3, u as P$2 } from "./chunk-VBDAOXYI-B6lKBJg5.js";
5
+ import { a as or, c as F$2, d as R$2, f as T$3, g as x$3, h as u$1, l as L$2, m as h$2, n as Vr, p as U$1, r as ce$2, s as ur, t as C$3, u as P$2 } from "./chunk-VBDAOXYI-B4r8Aw5i.js";
6
6
  import { t as parse } from "./parser-DbYKMg6c.js";
7
- import { $ as toBytes, A as HttpRequestError, B as stringify, C as UnknownBundleIdError, D as UnsupportedProviderMethodError, E as UnsupportedNonOptionalCapabilityError, F as ContractFunctionExecutionError, G as decodeFunctionResult, H as parseAccount, I as ContractFunctionRevertedError, J as getAddress, L as ContractFunctionZeroDataError, M as TimeoutError, O as UserRejectedRequestError, P as localBatchGatewayUrl, Q as stringToBytes, R as RawContractError, S as UnauthorizedProviderError, T as UnsupportedChainIdError, U as getChainContractAddress, W as encodeFunctionData, X as LruMap, Z as keccak256, _ as ProviderDisconnectedError, a as BundleTooLargeError, at as AbiDecodingZeroDataError, b as SwitchChainError, c as InternalRpcError, ct as textResolverAbi, d as InvalidRequestRpcError, et as bytesToHex, f as JsonRpcVersionUnsupportedError, g as ParseRpcError, h as MethodNotSupportedRpcError, i as AtomicityNotSupportedError, j as RpcRequestError, k as WalletConnectSessionSettlementError, l as InvalidInputRpcError, lt as universalResolverResolveAbi, m as MethodNotFoundRpcError, n as createBatchScheduler, nt as stringToHex, o as ChainDisconnectedError, ot as BaseError$2, p as LimitExceededRpcError, q as concat, r as AtomicReadyWalletRejectedUpgradeError, rt as toHex, s as DuplicateIdError, st as isHex, t as call, tt as numberToHex, u as InvalidParamsRpcError, ut as universalResolverReverseAbi, v as ResourceNotFoundRpcError, w as UnknownRpcError, x as TransactionRejectedRpcError, y as ResourceUnavailableRpcError } from "./call-CFQhA1jG.js";
8
7
  import * as React$1 from "react";
9
- import React, { Children, Fragment, cloneElement, createContext, forwardRef, isValidElement, memo, use, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
8
+ import React, { Children, Fragment, cloneElement, forwardRef, isValidElement, memo, use, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
10
9
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
11
10
  import { flushSync } from "react-dom";
12
11
  //#region ../../node_modules/.pnpm/@electric-sql+pglite@0.3.15/node_modules/@electric-sql/pglite/dist/chunk-3WWIVTCY.js
@@ -57,7 +56,7 @@ F$2(hn, {
57
56
  REGTYPE: () => $t,
58
57
  RELTIME: () => Ct,
59
58
  SMGR: () => It,
60
- TEXT: () => V$1,
59
+ TEXT: () => V,
61
60
  TID: () => At,
62
61
  TIME: () => Ft,
63
62
  TIMESTAMP: () => qe,
@@ -80,11 +79,11 @@ F$2(hn, {
80
79
  types: () => $e
81
80
  });
82
81
  u$1();
83
- var ht = globalThis.JSON.parse, bt = globalThis.JSON.stringify, be = 16, ge$1 = 17, gt = 18, we$1 = 20, ve = 21, Ge$1 = 23, wt = 24, V$1 = 25, je$1 = 26, At = 27, xt = 28, St = 29, Ae = 114, Dt = 142, Bt = 194, It = 210, Mt = 602, Rt = 604, Tt = 650, Qe = 700, We$1 = 701, Et = 702, Ct = 703, Pt = 704, Ut = 718, Nt = 774, Lt = 790, Ot = 829, kt = 869, Vt = 1033, _e$1 = 1042, ze = 1043, He$1 = 1082, Ft = 1083, qe = 1114, xe$1 = 1184, vt = 1186, Gt = 1266, jt = 1560, Qt = 1562, Wt = 1700, _t$1 = 1790, zt = 2202, Ht = 2203, qt = 2204, Yt = 2205, $t = 2206, Kt = 2950, Jt = 2970, Xt = 3220, Zt = 3361, en = 3402, tn = 3614, nn = 3615, rn = 3642, sn = 3734, an = 3769, Ye$1 = 3802, on = 4089, un = 4096, $e = {
82
+ var ht = globalThis.JSON.parse, bt = globalThis.JSON.stringify, be = 16, ge$1 = 17, gt = 18, we$1 = 20, ve = 21, Ge$1 = 23, wt = 24, V = 25, je$1 = 26, At = 27, xt = 28, St = 29, Ae = 114, Dt = 142, Bt = 194, It = 210, Mt = 602, Rt = 604, Tt = 650, Qe = 700, We$1 = 701, Et = 702, Ct = 703, Pt = 704, Ut = 718, Nt = 774, Lt = 790, Ot = 829, kt = 869, Vt = 1033, _e$1 = 1042, ze = 1043, He$1 = 1082, Ft = 1083, qe = 1114, xe$1 = 1184, vt = 1186, Gt = 1266, jt = 1560, Qt = 1562, Wt = 1700, _t$1 = 1790, zt = 2202, Ht = 2203, qt = 2204, Yt = 2205, $t = 2206, Kt = 2950, Jt = 2970, Xt = 3220, Zt = 3361, en = 3402, tn = 3614, nn = 3615, rn = 3642, sn = 3734, an = 3769, Ye$1 = 3802, on = 4089, un = 4096, $e = {
84
83
  string: {
85
- to: V$1,
84
+ to: V,
86
85
  from: [
87
- V$1,
86
+ V,
88
87
  ze,
89
88
  _e$1
90
89
  ],
@@ -215,7 +214,7 @@ function Je(e, t, n, r) {
215
214
  }
216
215
  var wn = {};
217
216
  F$2(wn, {
218
- parseDescribeStatementResults: () => De$1,
217
+ parseDescribeStatementResults: () => De,
219
218
  parseResults: () => bn
220
219
  });
221
220
  u$1();
@@ -269,7 +268,7 @@ function gn(e) {
269
268
  default: return 0;
270
269
  }
271
270
  }
272
- function De$1(e) {
271
+ function De(e) {
273
272
  let t = e.find((n) => n.name === "parameterDescription");
274
273
  return t ? t.dataTypeIDs : [];
275
274
  }
@@ -295,7 +294,7 @@ F$2(Ue$1, {
295
294
  ReadyForQueryMessage: () => X$1,
296
295
  RowDescriptionMessage: () => q$2,
297
296
  bindComplete: () => Ie,
298
- closeComplete: () => Me$1,
297
+ closeComplete: () => Me,
299
298
  copyDone: () => Pe,
300
299
  emptyQuery: () => Ce,
301
300
  noData: () => Re,
@@ -310,7 +309,7 @@ var Be$1 = {
310
309
  }, Ie = {
311
310
  name: "bindComplete",
312
311
  length: 5
313
- }, Me$1 = {
312
+ }, Me = {
314
313
  name: "closeComplete",
315
314
  length: 5
316
315
  }, Re = {
@@ -601,45 +600,45 @@ var Le$1 = {
601
600
  binary: 1
602
601
  };
603
602
  u$1();
604
- var Wn = /* @__PURE__ */ new ArrayBuffer(0), R$1, w$2, fe$1, me$1, ne$2, de$1 = class {
603
+ var Wn = /* @__PURE__ */ new ArrayBuffer(0), R$1, w$1, fe$1, me$1, ne$1, de$1 = class {
605
604
  constructor(t = 0) {
606
605
  R$2(this, R$1, new DataView(Wn));
607
- R$2(this, w$2);
606
+ R$2(this, w$1);
608
607
  R$2(this, fe$1, "utf-8");
609
608
  R$2(this, me$1, new TextDecoder(h$2(this, fe$1)));
610
- R$2(this, ne$2, !1);
611
- x$3(this, w$2, t);
609
+ R$2(this, ne$1, !1);
610
+ x$3(this, w$1, t);
612
611
  }
613
612
  setBuffer(t, n) {
614
- x$3(this, w$2, t), x$3(this, R$1, new DataView(n));
613
+ x$3(this, w$1, t), x$3(this, R$1, new DataView(n));
615
614
  }
616
615
  int16() {
617
- let t = h$2(this, R$1).getInt16(h$2(this, w$2), h$2(this, ne$2));
618
- return x$3(this, w$2, h$2(this, w$2) + 2), t;
616
+ let t = h$2(this, R$1).getInt16(h$2(this, w$1), h$2(this, ne$1));
617
+ return x$3(this, w$1, h$2(this, w$1) + 2), t;
619
618
  }
620
619
  byte() {
621
- let t = h$2(this, R$1).getUint8(h$2(this, w$2));
622
- return U$1(this, w$2)._++, t;
620
+ let t = h$2(this, R$1).getUint8(h$2(this, w$1));
621
+ return U$1(this, w$1)._++, t;
623
622
  }
624
623
  int32() {
625
- let t = h$2(this, R$1).getInt32(h$2(this, w$2), h$2(this, ne$2));
626
- return x$3(this, w$2, h$2(this, w$2) + 4), t;
624
+ let t = h$2(this, R$1).getInt32(h$2(this, w$1), h$2(this, ne$1));
625
+ return x$3(this, w$1, h$2(this, w$1) + 4), t;
627
626
  }
628
627
  string(t) {
629
628
  return h$2(this, me$1).decode(this.bytes(t));
630
629
  }
631
630
  cstring() {
632
- let t = h$2(this, w$2), n = t;
631
+ let t = h$2(this, w$1), n = t;
633
632
  for (; h$2(this, R$1).getUint8(n++) !== 0;);
634
633
  let r = this.string(n - t - 1);
635
- return x$3(this, w$2, n), r;
634
+ return x$3(this, w$1, n), r;
636
635
  }
637
636
  bytes(t) {
638
- let n = h$2(this, R$1).buffer.slice(h$2(this, w$2), h$2(this, w$2) + t);
639
- return x$3(this, w$2, h$2(this, w$2) + t), new Uint8Array(n);
637
+ let n = h$2(this, R$1).buffer.slice(h$2(this, w$1), h$2(this, w$1) + t);
638
+ return x$3(this, w$1, h$2(this, w$1) + t), new Uint8Array(n);
640
639
  }
641
640
  };
642
- R$1 = /* @__PURE__ */ new WeakMap(), w$2 = /* @__PURE__ */ new WeakMap(), fe$1 = /* @__PURE__ */ new WeakMap(), me$1 = /* @__PURE__ */ new WeakMap(), ne$2 = /* @__PURE__ */ new WeakMap();
641
+ R$1 = /* @__PURE__ */ new WeakMap(), w$1 = /* @__PURE__ */ new WeakMap(), fe$1 = /* @__PURE__ */ new WeakMap(), me$1 = /* @__PURE__ */ new WeakMap(), ne$1 = /* @__PURE__ */ new WeakMap();
643
642
  var Oe = 1, Ze = Oe + 4, et = /* @__PURE__ */ new ArrayBuffer(0);
644
643
  var A$1, S$1, D$1, o$1, l, tt, nt$1, rt, st$1, it$1, at, ot, ke$1, ut, lt$1, ct, pt$1, dt$1, ft, mt$1, yt, Ve$1, ye$1 = class {
645
644
  constructor() {
@@ -679,7 +678,7 @@ A$1 = /* @__PURE__ */ new WeakMap(), S$1 = /* @__PURE__ */ new WeakMap(), D$1 =
679
678
  switch (n) {
680
679
  case 50: return Ie;
681
680
  case 49: return Be$1;
682
- case 51: return Me$1;
681
+ case 51: return Me;
683
682
  case 110: return Re;
684
683
  case 115: return Te;
685
684
  case 99: return Pe;
@@ -781,23 +780,23 @@ async function Rr() {
781
780
  let e = new URL("./pglite.wasm", import.meta.url);
782
781
  se$1 = fetch(e);
783
782
  }
784
- var re$2;
783
+ var re$1;
785
784
  async function Tr(e, t) {
786
- if (t || re$2) return {
787
- instance: await WebAssembly.instantiate(t || re$2, e),
788
- module: t || re$2
785
+ if (t || re$1) return {
786
+ instance: await WebAssembly.instantiate(t || re$1, e),
787
+ module: t || re$1
789
788
  };
790
789
  let n = new URL("./pglite.wasm", import.meta.url);
791
790
  if (Fe$1) {
792
- let i = await (await import("./dist-D6VvDFPS.js")).readFile(n), { module: a, instance: u } = await WebAssembly.instantiate(i, e);
793
- return re$2 = a, {
791
+ let i = await (await import("./dist-CTGANq2I.js")).readFile(n), { module: a, instance: u } = await WebAssembly.instantiate(i, e);
792
+ return re$1 = a, {
794
793
  instance: u,
795
794
  module: a
796
795
  };
797
796
  } else {
798
797
  se$1 || (se$1 = fetch(n));
799
798
  let r = await se$1, { module: i, instance: a } = await WebAssembly.instantiateStreaming(r, e);
800
- return re$2 = i, {
799
+ return re$1 = i, {
801
800
  instance: a,
802
801
  module: i
803
802
  };
@@ -805,7 +804,7 @@ async function Tr(e, t) {
805
804
  }
806
805
  async function Er() {
807
806
  let e = new URL("./pglite.data", import.meta.url);
808
- return Fe$1 ? (await (await import("./dist-D6VvDFPS.js")).readFile(e)).buffer : (await fetch(e)).arrayBuffer();
807
+ return Fe$1 ? (await (await import("./dist-CTGANq2I.js")).readFile(e)).buffer : (await fetch(e)).arrayBuffer();
809
808
  }
810
809
  var Cr = () => {
811
810
  if (globalThis.crypto?.randomUUID) return globalThis.crypto.randomUUID();
@@ -827,8 +826,8 @@ async function Pr(e, t, n, r) {
827
826
  } finally {
828
827
  i.push(...(await e.execProtocol(k$2.sync(), { syncToFs: !1 })).messages);
829
828
  }
830
- let a = De$1(i), u = t.replace(/\$([0-9]+)/g, (c, M) => "%" + M + "L");
831
- return (await r.query(`SELECT format($1, ${n.map((c, M) => `$${M + 2}`).join(", ")}) as query`, [u, ...n], { paramTypes: [V$1, ...a] })).rows[0].query;
829
+ let a = De(i), u = t.replace(/\$([0-9]+)/g, (c, M) => "%" + M + "L");
830
+ return (await r.query(`SELECT format($1, ${n.map((c, M) => `$${M + 2}`).join(", ")}) as query`, [u, ...n], { paramTypes: [V, ...a] })).rows[0].query;
832
831
  }
833
832
  function Nr(e) {
834
833
  let t;
@@ -997,7 +996,7 @@ T$1 = /* @__PURE__ */ new WeakMap(), p$1 = /* @__PURE__ */ new WeakMap(), t = /*
997
996
  let c = await T$3(this, t, y).call(this, k$2.parse({
998
997
  text: s,
999
998
  types: r?.paramTypes
1000
- }), r), u = De$1(await T$3(this, t, y).call(this, k$2.describe({ type: "S" }), r)), n = e.map((b, S) => {
999
+ }), r), u = De(await T$3(this, t, y).call(this, k$2.describe({ type: "S" }), r)), n = e.map((b, S) => {
1001
1000
  let D = u[S];
1002
1001
  if (b == null) return null;
1003
1002
  let Q = r?.serializers?.[D] ?? this.serializers[D];
@@ -1197,7 +1196,7 @@ u$1();
1197
1196
  var Le = L$2(or(), 1);
1198
1197
  async function ke(e) {
1199
1198
  if (Fe$1) {
1200
- let t = await import("./dist-D6VvDFPS.js"), r = await import("./dist-D6VvDFPS.js"), { Writable: a } = await import("./dist-D6VvDFPS.js"), { pipeline: o } = await import("./dist-D6VvDFPS.js");
1199
+ let t = await import("./dist-CTGANq2I.js"), r = await import("./dist-CTGANq2I.js"), { Writable: a } = await import("./dist-CTGANq2I.js"), { pipeline: o } = await import("./dist-CTGANq2I.js");
1201
1200
  if (!t.existsSync(e)) throw new Error(`Extension bundle not found: ${e}`);
1202
1201
  let s = r.createGunzip(), n = [];
1203
1202
  return await o(t.createReadStream(e), s, new a({ write(_, l, p) {
@@ -1301,11 +1300,11 @@ function Ge(e) {
1301
1300
  async function Ue(e, t) {
1302
1301
  let r;
1303
1302
  if (e && t === "nodefs") {
1304
- let { NodeFS: a } = await import("./nodefs-Aj7KRDaD.js");
1303
+ let { NodeFS: a } = await import("./nodefs-CVI3Z1Xb.js");
1305
1304
  r = new a(e);
1306
1305
  } else if (e && t === "idbfs") r = new ce(e);
1307
1306
  else if (e && t === "opfs-ahp") {
1308
- let { OpfsAhpFS: a } = await import("./opfs-ahp-oTuZVHs4.js");
1307
+ let { OpfsAhpFS: a } = await import("./opfs-ahp-Cnv_7n9l.js");
1309
1308
  r = new a(e);
1310
1309
  } else r = new ge();
1311
1310
  return r;
@@ -1319,7 +1318,7 @@ var pt = (() => {
1319
1318
  readyPromiseResolve = e, readyPromiseReject = t;
1320
1319
  }), ENVIRONMENT_IS_WEB = typeof window == "object", ENVIRONMENT_IS_WORKER = typeof WorkerGlobalScope < "u", ENVIRONMENT_IS_NODE = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && process.type != "renderer";
1321
1320
  if (ENVIRONMENT_IS_NODE) {
1322
- let { createRequire: e } = await import("./dist-D6VvDFPS.js"), t = import.meta.url;
1321
+ let { createRequire: e } = await import("./dist-CTGANq2I.js"), t = import.meta.url;
1323
1322
  t.startsWith("data:") && (t = "/");
1324
1323
  var require = e(t);
1325
1324
  }
@@ -9327,13 +9326,13 @@ ${_}`), 0;
9327
9326
  };
9328
9327
  })(), He = pt;
9329
9328
  var je = He;
9330
- var ne$1, te, re$1, ie, _e, xe, we, Se, ye, le, pe, he, de, ae, $$1, I$1, oe, me, B$1, Q, K, ue, se, J, O$1, Z, q$1, G, C$1, Ve, Xe, fe, Ke, Ye, L = class L extends k$1 {
9329
+ var ne, te, re, ie, _e, xe, we, Se, ye, le, pe, he, de, ae, $$1, I$1, oe, me, B$1, Q, K, ue, se, J, O$1, Z, q$1, G, C$1, Ve, Xe, fe, Ke, Ye, L = class L extends k$1 {
9331
9330
  constructor(r = {}, a = {}) {
9332
9331
  super();
9333
9332
  R$2(this, C$1);
9334
- R$2(this, ne$1, !1);
9333
+ R$2(this, ne, !1);
9335
9334
  R$2(this, te, !1);
9336
- R$2(this, re$1, !1);
9335
+ R$2(this, re, !1);
9337
9336
  R$2(this, ie, !1);
9338
9337
  R$2(this, _e, !1);
9339
9338
  R$2(this, xe, new Y$1());
@@ -9382,10 +9381,10 @@ var ne$1, te, re$1, ie, _e, xe, we, Se, ye, le, pe, he, de, ae, $$1, I$1, oe, me
9382
9381
  return this.mod;
9383
9382
  }
9384
9383
  get ready() {
9385
- return h$2(this, ne$1) && !h$2(this, te) && !h$2(this, re$1);
9384
+ return h$2(this, ne) && !h$2(this, te) && !h$2(this, re);
9386
9385
  }
9387
9386
  get closed() {
9388
- return h$2(this, re$1);
9387
+ return h$2(this, re);
9389
9388
  }
9390
9389
  async close() {
9391
9390
  await this._checkReady(), x$3(this, te, !0);
@@ -9396,7 +9395,7 @@ var ne$1, te, re$1, ie, _e, xe, we, Se, ye, le, pe, he, de, ae, $$1, I$1, oe, me
9396
9395
  let a = r;
9397
9396
  if (!(a.name === "ExitStatus" && a.status === 0)) throw r;
9398
9397
  }
9399
- await this.fs.closeFs(), x$3(this, re$1, !0), x$3(this, te, !1);
9398
+ await this.fs.closeFs(), x$3(this, re, !0), x$3(this, te, !1);
9400
9399
  }
9401
9400
  async [Symbol.asyncDispose]() {
9402
9401
  await this.close();
@@ -9414,8 +9413,8 @@ var ne$1, te, re$1, ie, _e, xe, we, Se, ye, le, pe, he, de, ae, $$1, I$1, oe, me
9414
9413
  }
9415
9414
  async _checkReady() {
9416
9415
  if (h$2(this, te)) throw new Error("PGlite is closing");
9417
- if (h$2(this, re$1)) throw new Error("PGlite is closed");
9418
- h$2(this, ne$1) || await this.waitReady;
9416
+ if (h$2(this, re)) throw new Error("PGlite is closed");
9417
+ h$2(this, ne) || await this.waitReady;
9419
9418
  }
9420
9419
  execProtocolRawSync(r) {
9421
9420
  let a = this.mod;
@@ -9493,7 +9492,7 @@ var ne$1, te, re$1, ie, _e, xe, we, Se, ye, le, pe, he, de, ae, $$1, I$1, oe, me
9493
9492
  return h$2(this, Se).runExclusive(r);
9494
9493
  }
9495
9494
  };
9496
- ne$1 = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), re$1 = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), $$1 = /* @__PURE__ */ new WeakMap(), I$1 = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), B$1 = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), O$1 = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), q$1 = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), C$1 = /* @__PURE__ */ new WeakSet(), Ve = async function(r) {
9495
+ ne = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), $$1 = /* @__PURE__ */ new WeakMap(), I$1 = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), B$1 = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), O$1 = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), q$1 = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), C$1 = /* @__PURE__ */ new WeakSet(), Ve = async function(r) {
9497
9496
  if (r.fs) this.fs = r.fs;
9498
9497
  else {
9499
9498
  let { dataDir: d, fsType: g } = Ge(r.dataDir);
@@ -9613,7 +9612,7 @@ ne$1 = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), re$1 =
9613
9612
  if (!(m & 12)) throw new Error(`INITDB: Invalid db ${g}/user ${d} combination`);
9614
9613
  } else if (g !== "template1" && d !== "postgres") throw new Error(`INITDB: created a new datadir ${C$3}, but an alternative db ${g}/user ${d} was requested`);
9615
9614
  }
9616
- this.mod._pgl_backend(), await this.syncToFs(), x$3(this, ne$1, !0), await this.exec("SET search_path TO public;"), await this._initArrayTypes();
9615
+ this.mod._pgl_backend(), await this.syncToFs(), x$3(this, ne, !0), await this.exec("SET search_path TO public;"), await this._initArrayTypes();
9617
9616
  for (let d of o) await d();
9618
9617
  }, Xe = function(r) {
9619
9618
  if (!h$2(this, O$1)) {
@@ -24392,7 +24391,7 @@ function hashQueryKeyByOptions(queryKey, options) {
24392
24391
  return (options?.queryKeyHashFn || hashKey)(queryKey);
24393
24392
  }
24394
24393
  function hashKey(queryKey) {
24395
- return JSON.stringify(queryKey, (_, val) => isPlainObject$2(val) ? Object.keys(val).sort().reduce((result, key) => {
24394
+ return JSON.stringify(queryKey, (_, val) => isPlainObject$1(val) ? Object.keys(val).sort().reduce((result, key) => {
24396
24395
  result[key] = val[key];
24397
24396
  return result;
24398
24397
  }, {}) : val);
@@ -24408,7 +24407,7 @@ function replaceEqualDeep(a, b, depth = 0) {
24408
24407
  if (a === b) return a;
24409
24408
  if (depth > 500) return b;
24410
24409
  const array = isPlainArray(a) && isPlainArray(b);
24411
- if (!array && !(isPlainObject$2(a) && isPlainObject$2(b))) return b;
24410
+ if (!array && !(isPlainObject$1(a) && isPlainObject$1(b))) return b;
24412
24411
  const aSize = (array ? a : Object.keys(a)).length;
24413
24412
  const bItems = array ? b : Object.keys(b);
24414
24413
  const bSize = bItems.length;
@@ -24433,25 +24432,20 @@ function replaceEqualDeep(a, b, depth = 0) {
24433
24432
  }
24434
24433
  return aSize === bSize && equalItems === aSize ? a : copy;
24435
24434
  }
24436
- function shallowEqualObjects(a, b) {
24437
- if (!b || Object.keys(a).length !== Object.keys(b).length) return false;
24438
- for (const key in a) if (a[key] !== b[key]) return false;
24439
- return true;
24440
- }
24441
24435
  function isPlainArray(value) {
24442
24436
  return Array.isArray(value) && value.length === Object.keys(value).length;
24443
24437
  }
24444
- function isPlainObject$2(o) {
24445
- if (!hasObjectPrototype$1(o)) return false;
24438
+ function isPlainObject$1(o) {
24439
+ if (!hasObjectPrototype(o)) return false;
24446
24440
  const ctor = o.constructor;
24447
24441
  if (ctor === void 0) return true;
24448
24442
  const prot = ctor.prototype;
24449
- if (!hasObjectPrototype$1(prot)) return false;
24443
+ if (!hasObjectPrototype(prot)) return false;
24450
24444
  if (!prot.hasOwnProperty("isPrototypeOf")) return false;
24451
24445
  if (Object.getPrototypeOf(o) !== Object.prototype) return false;
24452
24446
  return true;
24453
24447
  }
24454
- function hasObjectPrototype$1(o) {
24448
+ function hasObjectPrototype(o) {
24455
24449
  return Object.prototype.toString.call(o) === "[object Object]";
24456
24450
  }
24457
24451
  function sleep(timeout) {
@@ -24478,10 +24472,6 @@ function ensureQueryFn(options, fetchOptions) {
24478
24472
  if (!options.queryFn || options.queryFn === skipToken) return () => Promise.reject(/* @__PURE__ */ new Error(`Missing queryFn: '${options.queryHash}'`));
24479
24473
  return options.queryFn;
24480
24474
  }
24481
- function shouldThrowError(throwOnError, params) {
24482
- if (typeof throwOnError === "function") return throwOnError(...params);
24483
- return !!throwOnError;
24484
- }
24485
24475
  function addConsumeAwareSignal(object, getSignal, onCancelled) {
24486
24476
  let consumed = false;
24487
24477
  let signal;
@@ -25182,349 +25172,6 @@ function getDefaultState$1(options) {
25182
25172
  };
25183
25173
  }
25184
25174
  //#endregion
25185
- //#region ../../node_modules/.pnpm/@tanstack+query-core@5.90.20/node_modules/@tanstack/query-core/build/modern/queryObserver.js
25186
- var QueryObserver = class extends Subscribable {
25187
- constructor(client, options) {
25188
- super();
25189
- this.options = options;
25190
- this.#client = client;
25191
- this.#selectError = null;
25192
- this.#currentThenable = pendingThenable();
25193
- this.bindMethods();
25194
- this.setOptions(options);
25195
- }
25196
- #client;
25197
- #currentQuery = void 0;
25198
- #currentQueryInitialState = void 0;
25199
- #currentResult = void 0;
25200
- #currentResultState;
25201
- #currentResultOptions;
25202
- #currentThenable;
25203
- #selectError;
25204
- #selectFn;
25205
- #selectResult;
25206
- #lastQueryWithDefinedData;
25207
- #staleTimeoutId;
25208
- #refetchIntervalId;
25209
- #currentRefetchInterval;
25210
- #trackedProps = /* @__PURE__ */ new Set();
25211
- bindMethods() {
25212
- this.refetch = this.refetch.bind(this);
25213
- }
25214
- onSubscribe() {
25215
- if (this.listeners.size === 1) {
25216
- this.#currentQuery.addObserver(this);
25217
- if (shouldFetchOnMount(this.#currentQuery, this.options)) this.#executeFetch();
25218
- else this.updateResult();
25219
- this.#updateTimers();
25220
- }
25221
- }
25222
- onUnsubscribe() {
25223
- if (!this.hasListeners()) this.destroy();
25224
- }
25225
- shouldFetchOnReconnect() {
25226
- return shouldFetchOn(this.#currentQuery, this.options, this.options.refetchOnReconnect);
25227
- }
25228
- shouldFetchOnWindowFocus() {
25229
- return shouldFetchOn(this.#currentQuery, this.options, this.options.refetchOnWindowFocus);
25230
- }
25231
- destroy() {
25232
- this.listeners = /* @__PURE__ */ new Set();
25233
- this.#clearStaleTimeout();
25234
- this.#clearRefetchInterval();
25235
- this.#currentQuery.removeObserver(this);
25236
- }
25237
- setOptions(options) {
25238
- const prevOptions = this.options;
25239
- const prevQuery = this.#currentQuery;
25240
- this.options = this.#client.defaultQueryOptions(options);
25241
- if (this.options.enabled !== void 0 && typeof this.options.enabled !== "boolean" && typeof this.options.enabled !== "function" && typeof resolveEnabled(this.options.enabled, this.#currentQuery) !== "boolean") throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");
25242
- this.#updateQuery();
25243
- this.#currentQuery.setOptions(this.options);
25244
- if (prevOptions._defaulted && !shallowEqualObjects(this.options, prevOptions)) this.#client.getQueryCache().notify({
25245
- type: "observerOptionsUpdated",
25246
- query: this.#currentQuery,
25247
- observer: this
25248
- });
25249
- const mounted = this.hasListeners();
25250
- if (mounted && shouldFetchOptionally(this.#currentQuery, prevQuery, this.options, prevOptions)) this.#executeFetch();
25251
- this.updateResult();
25252
- if (mounted && (this.#currentQuery !== prevQuery || resolveEnabled(this.options.enabled, this.#currentQuery) !== resolveEnabled(prevOptions.enabled, this.#currentQuery) || resolveStaleTime(this.options.staleTime, this.#currentQuery) !== resolveStaleTime(prevOptions.staleTime, this.#currentQuery))) this.#updateStaleTimeout();
25253
- const nextRefetchInterval = this.#computeRefetchInterval();
25254
- if (mounted && (this.#currentQuery !== prevQuery || resolveEnabled(this.options.enabled, this.#currentQuery) !== resolveEnabled(prevOptions.enabled, this.#currentQuery) || nextRefetchInterval !== this.#currentRefetchInterval)) this.#updateRefetchInterval(nextRefetchInterval);
25255
- }
25256
- getOptimisticResult(options) {
25257
- const query = this.#client.getQueryCache().build(this.#client, options);
25258
- const result = this.createResult(query, options);
25259
- if (shouldAssignObserverCurrentProperties(this, result)) {
25260
- this.#currentResult = result;
25261
- this.#currentResultOptions = this.options;
25262
- this.#currentResultState = this.#currentQuery.state;
25263
- }
25264
- return result;
25265
- }
25266
- getCurrentResult() {
25267
- return this.#currentResult;
25268
- }
25269
- trackResult(result, onPropTracked) {
25270
- return new Proxy(result, { get: (target, key) => {
25271
- this.trackProp(key);
25272
- onPropTracked?.(key);
25273
- if (key === "promise") {
25274
- this.trackProp("data");
25275
- if (!this.options.experimental_prefetchInRender && this.#currentThenable.status === "pending") this.#currentThenable.reject(/* @__PURE__ */ new Error("experimental_prefetchInRender feature flag is not enabled"));
25276
- }
25277
- return Reflect.get(target, key);
25278
- } });
25279
- }
25280
- trackProp(key) {
25281
- this.#trackedProps.add(key);
25282
- }
25283
- getCurrentQuery() {
25284
- return this.#currentQuery;
25285
- }
25286
- refetch({ ...options } = {}) {
25287
- return this.fetch({ ...options });
25288
- }
25289
- fetchOptimistic(options) {
25290
- const defaultedOptions = this.#client.defaultQueryOptions(options);
25291
- const query = this.#client.getQueryCache().build(this.#client, defaultedOptions);
25292
- return query.fetch().then(() => this.createResult(query, defaultedOptions));
25293
- }
25294
- fetch(fetchOptions) {
25295
- return this.#executeFetch({
25296
- ...fetchOptions,
25297
- cancelRefetch: fetchOptions.cancelRefetch ?? true
25298
- }).then(() => {
25299
- this.updateResult();
25300
- return this.#currentResult;
25301
- });
25302
- }
25303
- #executeFetch(fetchOptions) {
25304
- this.#updateQuery();
25305
- let promise = this.#currentQuery.fetch(this.options, fetchOptions);
25306
- if (!fetchOptions?.throwOnError) promise = promise.catch(noop);
25307
- return promise;
25308
- }
25309
- #updateStaleTimeout() {
25310
- this.#clearStaleTimeout();
25311
- const staleTime = resolveStaleTime(this.options.staleTime, this.#currentQuery);
25312
- if (isServer$1 || this.#currentResult.isStale || !isValidTimeout(staleTime)) return;
25313
- const timeout = timeUntilStale(this.#currentResult.dataUpdatedAt, staleTime) + 1;
25314
- this.#staleTimeoutId = timeoutManager.setTimeout(() => {
25315
- if (!this.#currentResult.isStale) this.updateResult();
25316
- }, timeout);
25317
- }
25318
- #computeRefetchInterval() {
25319
- return (typeof this.options.refetchInterval === "function" ? this.options.refetchInterval(this.#currentQuery) : this.options.refetchInterval) ?? false;
25320
- }
25321
- #updateRefetchInterval(nextInterval) {
25322
- this.#clearRefetchInterval();
25323
- this.#currentRefetchInterval = nextInterval;
25324
- if (isServer$1 || resolveEnabled(this.options.enabled, this.#currentQuery) === false || !isValidTimeout(this.#currentRefetchInterval) || this.#currentRefetchInterval === 0) return;
25325
- this.#refetchIntervalId = timeoutManager.setInterval(() => {
25326
- if (this.options.refetchIntervalInBackground || focusManager.isFocused()) this.#executeFetch();
25327
- }, this.#currentRefetchInterval);
25328
- }
25329
- #updateTimers() {
25330
- this.#updateStaleTimeout();
25331
- this.#updateRefetchInterval(this.#computeRefetchInterval());
25332
- }
25333
- #clearStaleTimeout() {
25334
- if (this.#staleTimeoutId) {
25335
- timeoutManager.clearTimeout(this.#staleTimeoutId);
25336
- this.#staleTimeoutId = void 0;
25337
- }
25338
- }
25339
- #clearRefetchInterval() {
25340
- if (this.#refetchIntervalId) {
25341
- timeoutManager.clearInterval(this.#refetchIntervalId);
25342
- this.#refetchIntervalId = void 0;
25343
- }
25344
- }
25345
- createResult(query, options) {
25346
- const prevQuery = this.#currentQuery;
25347
- const prevOptions = this.options;
25348
- const prevResult = this.#currentResult;
25349
- const prevResultState = this.#currentResultState;
25350
- const prevResultOptions = this.#currentResultOptions;
25351
- const queryInitialState = query !== prevQuery ? query.state : this.#currentQueryInitialState;
25352
- const { state } = query;
25353
- let newState = { ...state };
25354
- let isPlaceholderData = false;
25355
- let data;
25356
- if (options._optimisticResults) {
25357
- const mounted = this.hasListeners();
25358
- const fetchOnMount = !mounted && shouldFetchOnMount(query, options);
25359
- const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);
25360
- if (fetchOnMount || fetchOptionally) newState = {
25361
- ...newState,
25362
- ...fetchState(state.data, query.options)
25363
- };
25364
- if (options._optimisticResults === "isRestoring") newState.fetchStatus = "idle";
25365
- }
25366
- let { error, errorUpdatedAt, status } = newState;
25367
- data = newState.data;
25368
- let skipSelect = false;
25369
- if (options.placeholderData !== void 0 && data === void 0 && status === "pending") {
25370
- let placeholderData;
25371
- if (prevResult?.isPlaceholderData && options.placeholderData === prevResultOptions?.placeholderData) {
25372
- placeholderData = prevResult.data;
25373
- skipSelect = true;
25374
- } else placeholderData = typeof options.placeholderData === "function" ? options.placeholderData(this.#lastQueryWithDefinedData?.state.data, this.#lastQueryWithDefinedData) : options.placeholderData;
25375
- if (placeholderData !== void 0) {
25376
- status = "success";
25377
- data = replaceData(prevResult?.data, placeholderData, options);
25378
- isPlaceholderData = true;
25379
- }
25380
- }
25381
- if (options.select && data !== void 0 && !skipSelect) if (prevResult && data === prevResultState?.data && options.select === this.#selectFn) data = this.#selectResult;
25382
- else try {
25383
- this.#selectFn = options.select;
25384
- data = options.select(data);
25385
- data = replaceData(prevResult?.data, data, options);
25386
- this.#selectResult = data;
25387
- this.#selectError = null;
25388
- } catch (selectError) {
25389
- this.#selectError = selectError;
25390
- }
25391
- if (this.#selectError) {
25392
- error = this.#selectError;
25393
- data = this.#selectResult;
25394
- errorUpdatedAt = Date.now();
25395
- status = "error";
25396
- }
25397
- const isFetching = newState.fetchStatus === "fetching";
25398
- const isPending = status === "pending";
25399
- const isError = status === "error";
25400
- const isLoading = isPending && isFetching;
25401
- const hasData = data !== void 0;
25402
- const nextResult = {
25403
- status,
25404
- fetchStatus: newState.fetchStatus,
25405
- isPending,
25406
- isSuccess: status === "success",
25407
- isError,
25408
- isInitialLoading: isLoading,
25409
- isLoading,
25410
- data,
25411
- dataUpdatedAt: newState.dataUpdatedAt,
25412
- error,
25413
- errorUpdatedAt,
25414
- failureCount: newState.fetchFailureCount,
25415
- failureReason: newState.fetchFailureReason,
25416
- errorUpdateCount: newState.errorUpdateCount,
25417
- isFetched: newState.dataUpdateCount > 0 || newState.errorUpdateCount > 0,
25418
- isFetchedAfterMount: newState.dataUpdateCount > queryInitialState.dataUpdateCount || newState.errorUpdateCount > queryInitialState.errorUpdateCount,
25419
- isFetching,
25420
- isRefetching: isFetching && !isPending,
25421
- isLoadingError: isError && !hasData,
25422
- isPaused: newState.fetchStatus === "paused",
25423
- isPlaceholderData,
25424
- isRefetchError: isError && hasData,
25425
- isStale: isStale(query, options),
25426
- refetch: this.refetch,
25427
- promise: this.#currentThenable,
25428
- isEnabled: resolveEnabled(options.enabled, query) !== false
25429
- };
25430
- if (this.options.experimental_prefetchInRender) {
25431
- const hasResultData = nextResult.data !== void 0;
25432
- const isErrorWithoutData = nextResult.status === "error" && !hasResultData;
25433
- const finalizeThenableIfPossible = (thenable) => {
25434
- if (isErrorWithoutData) thenable.reject(nextResult.error);
25435
- else if (hasResultData) thenable.resolve(nextResult.data);
25436
- };
25437
- const recreateThenable = () => {
25438
- finalizeThenableIfPossible(this.#currentThenable = nextResult.promise = pendingThenable());
25439
- };
25440
- const prevThenable = this.#currentThenable;
25441
- switch (prevThenable.status) {
25442
- case "pending":
25443
- if (query.queryHash === prevQuery.queryHash) finalizeThenableIfPossible(prevThenable);
25444
- break;
25445
- case "fulfilled":
25446
- if (isErrorWithoutData || nextResult.data !== prevThenable.value) recreateThenable();
25447
- break;
25448
- case "rejected":
25449
- if (!isErrorWithoutData || nextResult.error !== prevThenable.reason) recreateThenable();
25450
- break;
25451
- }
25452
- }
25453
- return nextResult;
25454
- }
25455
- updateResult() {
25456
- const prevResult = this.#currentResult;
25457
- const nextResult = this.createResult(this.#currentQuery, this.options);
25458
- this.#currentResultState = this.#currentQuery.state;
25459
- this.#currentResultOptions = this.options;
25460
- if (this.#currentResultState.data !== void 0) this.#lastQueryWithDefinedData = this.#currentQuery;
25461
- if (shallowEqualObjects(nextResult, prevResult)) return;
25462
- this.#currentResult = nextResult;
25463
- const shouldNotifyListeners = () => {
25464
- if (!prevResult) return true;
25465
- const { notifyOnChangeProps } = this.options;
25466
- const notifyOnChangePropsValue = typeof notifyOnChangeProps === "function" ? notifyOnChangeProps() : notifyOnChangeProps;
25467
- if (notifyOnChangePropsValue === "all" || !notifyOnChangePropsValue && !this.#trackedProps.size) return true;
25468
- const includedProps = new Set(notifyOnChangePropsValue ?? this.#trackedProps);
25469
- if (this.options.throwOnError) includedProps.add("error");
25470
- return Object.keys(this.#currentResult).some((key) => {
25471
- const typedKey = key;
25472
- return this.#currentResult[typedKey] !== prevResult[typedKey] && includedProps.has(typedKey);
25473
- });
25474
- };
25475
- this.#notify({ listeners: shouldNotifyListeners() });
25476
- }
25477
- #updateQuery() {
25478
- const query = this.#client.getQueryCache().build(this.#client, this.options);
25479
- if (query === this.#currentQuery) return;
25480
- const prevQuery = this.#currentQuery;
25481
- this.#currentQuery = query;
25482
- this.#currentQueryInitialState = query.state;
25483
- if (this.hasListeners()) {
25484
- prevQuery?.removeObserver(this);
25485
- query.addObserver(this);
25486
- }
25487
- }
25488
- onQueryUpdate() {
25489
- this.updateResult();
25490
- if (this.hasListeners()) this.#updateTimers();
25491
- }
25492
- #notify(notifyOptions) {
25493
- notifyManager.batch(() => {
25494
- if (notifyOptions.listeners) this.listeners.forEach((listener) => {
25495
- listener(this.#currentResult);
25496
- });
25497
- this.#client.getQueryCache().notify({
25498
- query: this.#currentQuery,
25499
- type: "observerResultsUpdated"
25500
- });
25501
- });
25502
- }
25503
- };
25504
- function shouldLoadOnMount(query, options) {
25505
- return resolveEnabled(options.enabled, query) !== false && query.state.data === void 0 && !(query.state.status === "error" && options.retryOnMount === false);
25506
- }
25507
- function shouldFetchOnMount(query, options) {
25508
- return shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);
25509
- }
25510
- function shouldFetchOn(query, options, field) {
25511
- if (resolveEnabled(options.enabled, query) !== false && resolveStaleTime(options.staleTime, query) !== "static") {
25512
- const value = typeof field === "function" ? field(query) : field;
25513
- return value === "always" || value !== false && isStale(query, options);
25514
- }
25515
- return false;
25516
- }
25517
- function shouldFetchOptionally(query, prevQuery, options, prevOptions) {
25518
- return (query !== prevQuery || resolveEnabled(prevOptions.enabled, query) === false) && (!options.suspense || query.state.status !== "error") && isStale(query, options);
25519
- }
25520
- function isStale(query, options) {
25521
- return resolveEnabled(options.enabled, query) !== false && query.isStaleByTime(resolveStaleTime(options.staleTime, query));
25522
- }
25523
- function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
25524
- if (!shallowEqualObjects(observer.getCurrentResult(), optimisticResult)) return true;
25525
- return false;
25526
- }
25527
- //#endregion
25528
25175
  //#region ../../node_modules/.pnpm/@tanstack+query-core@5.90.20/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
25529
25176
  function infiniteQueryBehavior(pages) {
25530
25177
  return { onFetch: (context, query) => {
@@ -26257,114 +25904,6 @@ var QueryClient = class {
26257
25904
  }
26258
25905
  };
26259
25906
  //#endregion
26260
- //#region ../../node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
26261
- var QueryClientContext = React$1.createContext(void 0);
26262
- var useQueryClient = (queryClient) => {
26263
- const client = React$1.useContext(QueryClientContext);
26264
- if (queryClient) return queryClient;
26265
- if (!client) throw new Error("No QueryClient set, use QueryClientProvider to set one");
26266
- return client;
26267
- };
26268
- //#endregion
26269
- //#region ../../node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
26270
- var IsRestoringContext = React$1.createContext(false);
26271
- var useIsRestoring = () => React$1.useContext(IsRestoringContext);
26272
- var IsRestoringProvider = IsRestoringContext.Provider;
26273
- //#endregion
26274
- //#region ../../node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
26275
- function createValue() {
26276
- let isReset = false;
26277
- return {
26278
- clearReset: () => {
26279
- isReset = false;
26280
- },
26281
- reset: () => {
26282
- isReset = true;
26283
- },
26284
- isReset: () => {
26285
- return isReset;
26286
- }
26287
- };
26288
- }
26289
- var QueryErrorResetBoundaryContext = React$1.createContext(createValue());
26290
- var useQueryErrorResetBoundary = () => React$1.useContext(QueryErrorResetBoundaryContext);
26291
- //#endregion
26292
- //#region ../../node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
26293
- var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {
26294
- const throwOnError = query?.state.error && typeof options.throwOnError === "function" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;
26295
- if (options.suspense || options.experimental_prefetchInRender || throwOnError) {
26296
- if (!errorResetBoundary.isReset()) options.retryOnMount = false;
26297
- }
26298
- };
26299
- var useClearResetErrorBoundary = (errorResetBoundary) => {
26300
- React$1.useEffect(() => {
26301
- errorResetBoundary.clearReset();
26302
- }, [errorResetBoundary]);
26303
- };
26304
- var getHasError = ({ result, errorResetBoundary, throwOnError, query, suspense }) => {
26305
- return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
26306
- };
26307
- //#endregion
26308
- //#region ../../node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/suspense.js
26309
- var ensureSuspenseTimers = (defaultedOptions) => {
26310
- if (defaultedOptions.suspense) {
26311
- const MIN_SUSPENSE_TIME_MS = 1e3;
26312
- const clamp = (value) => value === "static" ? value : Math.max(value ?? MIN_SUSPENSE_TIME_MS, MIN_SUSPENSE_TIME_MS);
26313
- const originalStaleTime = defaultedOptions.staleTime;
26314
- defaultedOptions.staleTime = typeof originalStaleTime === "function" ? (...args) => clamp(originalStaleTime(...args)) : clamp(originalStaleTime);
26315
- if (typeof defaultedOptions.gcTime === "number") defaultedOptions.gcTime = Math.max(defaultedOptions.gcTime, MIN_SUSPENSE_TIME_MS);
26316
- }
26317
- };
26318
- var willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;
26319
- var shouldSuspend = (defaultedOptions, result) => defaultedOptions?.suspense && result.isPending;
26320
- var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {
26321
- errorResetBoundary.clearReset();
26322
- });
26323
- //#endregion
26324
- //#region ../../node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
26325
- function useBaseQuery(options, Observer, queryClient) {
26326
- const isRestoring = useIsRestoring();
26327
- const errorResetBoundary = useQueryErrorResetBoundary();
26328
- const client = useQueryClient(queryClient);
26329
- const defaultedOptions = client.defaultQueryOptions(options);
26330
- client.getDefaultOptions().queries?._experimental_beforeQuery?.(defaultedOptions);
26331
- const query = client.getQueryCache().get(defaultedOptions.queryHash);
26332
- defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
26333
- ensureSuspenseTimers(defaultedOptions);
26334
- ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary, query);
26335
- useClearResetErrorBoundary(errorResetBoundary);
26336
- const isNewCacheEntry = !client.getQueryCache().get(defaultedOptions.queryHash);
26337
- const [observer] = React$1.useState(() => new Observer(client, defaultedOptions));
26338
- const result = observer.getOptimisticResult(defaultedOptions);
26339
- const shouldSubscribe = !isRestoring && options.subscribed !== false;
26340
- React$1.useSyncExternalStore(React$1.useCallback((onStoreChange) => {
26341
- const unsubscribe = shouldSubscribe ? observer.subscribe(notifyManager.batchCalls(onStoreChange)) : noop;
26342
- observer.updateResult();
26343
- return unsubscribe;
26344
- }, [observer, shouldSubscribe]), () => observer.getCurrentResult(), () => observer.getCurrentResult());
26345
- React$1.useEffect(() => {
26346
- observer.setOptions(defaultedOptions);
26347
- }, [defaultedOptions, observer]);
26348
- if (shouldSuspend(defaultedOptions, result)) throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary);
26349
- if (getHasError({
26350
- result,
26351
- errorResetBoundary,
26352
- throwOnError: defaultedOptions.throwOnError,
26353
- query,
26354
- suspense: defaultedOptions.suspense
26355
- })) throw result.error;
26356
- client.getDefaultOptions().queries?._experimental_afterQuery?.(defaultedOptions, result);
26357
- if (defaultedOptions.experimental_prefetchInRender && !isServer$1 && willFetch(result, isRestoring)) (isNewCacheEntry ? fetchOptimistic(defaultedOptions, observer, errorResetBoundary) : query?.promise)?.catch(noop).finally(() => {
26358
- observer.updateResult();
26359
- });
26360
- return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
26361
- }
26362
- //#endregion
26363
- //#region ../../node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/useQuery.js
26364
- function useQuery$1(options, queryClient) {
26365
- return useBaseQuery(options, QueryObserver, queryClient);
26366
- }
26367
- //#endregion
26368
25907
  //#region ../../node_modules/.pnpm/graphql-tag@2.12.6_graphql@16.12.0/node_modules/graphql-tag/lib/index.js
26369
25908
  var docCache = /* @__PURE__ */ new Map();
26370
25909
  var fragmentSourceMap = /* @__PURE__ */ new Map();
@@ -29464,7 +29003,7 @@ childLogger([
29464
29003
  "analytics",
29465
29004
  "provider"
29466
29005
  ]);
29467
- const defaultQueryClient$1 = new QueryClient();
29006
+ const defaultQueryClient = new QueryClient();
29468
29007
  function useDispatch(document) {
29469
29008
  /**
29470
29009
  * Dispatches actions to the document.
@@ -30963,7 +30502,7 @@ var isObject = (value) => !isNullOrUndefined(value) && !Array.isArray(value) &&
30963
30502
  var getEventValue = (event) => isObject(event) && event.target ? isCheckBoxInput(event.target) ? event.target.checked : event.target.value : event;
30964
30503
  var getNodeParentName = (name) => name.substring(0, name.search(/\.\d+(\.|$)/)) || name;
30965
30504
  var isNameInFieldArray = (names, name) => names.has(getNodeParentName(name));
30966
- var isPlainObject$1 = (tempObject) => {
30505
+ var isPlainObject = (tempObject) => {
30967
30506
  const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;
30968
30507
  return isObject(prototypeCopy) && prototypeCopy.hasOwnProperty("isPrototypeOf");
30969
30508
  };
@@ -30973,7 +30512,7 @@ function cloneObject(data) {
30973
30512
  const isFileListInstance = typeof FileList !== "undefined" && data instanceof FileList;
30974
30513
  if (isWeb && (data instanceof Blob || isFileListInstance)) return data;
30975
30514
  const isArray = Array.isArray(data);
30976
- if (!isArray && !(isObject(data) && isPlainObject$1(data))) return data;
30515
+ if (!isArray && !(isObject(data) && isPlainObject(data))) return data;
30977
30516
  const copy = isArray ? [] : Object.create(Object.getPrototypeOf(data));
30978
30517
  for (const key in data) if (Object.prototype.hasOwnProperty.call(data, key)) copy[key] = cloneObject(data[key]);
30979
30518
  return copy;
@@ -36118,2746 +35657,6 @@ function useOnClickOutside(ref, handler, eventType = "mousedown", eventListenerO
36118
35657
  }, void 0, eventListenerOptions);
36119
35658
  }
36120
35659
  //#endregion
36121
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/ens/errors.js
36122
- function isNullUniversalResolverError(err) {
36123
- if (!(err instanceof BaseError$2)) return false;
36124
- const cause = err.walk((e) => e instanceof ContractFunctionRevertedError);
36125
- if (!(cause instanceof ContractFunctionRevertedError)) return false;
36126
- if (cause.data?.errorName === "HttpError") return true;
36127
- if (cause.data?.errorName === "ResolverError") return true;
36128
- if (cause.data?.errorName === "ResolverNotContract") return true;
36129
- if (cause.data?.errorName === "ResolverNotFound") return true;
36130
- if (cause.data?.errorName === "ReverseAddressMismatch") return true;
36131
- if (cause.data?.errorName === "UnsupportedResolverProfile") return true;
36132
- return false;
36133
- }
36134
- //#endregion
36135
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/ens/encodedLabelToLabelhash.js
36136
- function encodedLabelToLabelhash(label) {
36137
- if (label.length !== 66) return null;
36138
- if (label.indexOf("[") !== 0) return null;
36139
- if (label.indexOf("]") !== 65) return null;
36140
- const hash = `0x${label.slice(1, 65)}`;
36141
- if (!isHex(hash)) return null;
36142
- return hash;
36143
- }
36144
- //#endregion
36145
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/ens/namehash.js
36146
- /**
36147
- * @description Hashes ENS name
36148
- *
36149
- * - Since ENS names prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS names](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `namehash`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize) function for this.
36150
- *
36151
- * @example
36152
- * namehash('wevm.eth')
36153
- * '0x08c85f2f4059e930c45a6aeff9dcd3bd95dc3c5c1cddef6a0626b31152248560'
36154
- *
36155
- * @link https://eips.ethereum.org/EIPS/eip-137
36156
- */
36157
- function namehash(name) {
36158
- let result = new Uint8Array(32).fill(0);
36159
- if (!name) return bytesToHex(result);
36160
- const labels = name.split(".");
36161
- for (let i = labels.length - 1; i >= 0; i -= 1) {
36162
- const hashFromEncodedLabel = encodedLabelToLabelhash(labels[i]);
36163
- const hashed = hashFromEncodedLabel ? toBytes(hashFromEncodedLabel) : keccak256(stringToBytes(labels[i]), "bytes");
36164
- result = keccak256(concat([result, hashed]), "bytes");
36165
- }
36166
- return bytesToHex(result);
36167
- }
36168
- //#endregion
36169
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/ens/encodeLabelhash.js
36170
- function encodeLabelhash(hash) {
36171
- return `[${hash.slice(2)}]`;
36172
- }
36173
- //#endregion
36174
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/ens/labelhash.js
36175
- /**
36176
- * @description Hashes ENS label
36177
- *
36178
- * - Since ENS labels prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS labels](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `labelhash`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize) function for this.
36179
- *
36180
- * @example
36181
- * labelhash('eth')
36182
- * '0x4f5b812789fc606be1b3b16908db13fc7a9adf7ca72641f84d75b47069d3d7f0'
36183
- */
36184
- function labelhash(label) {
36185
- const result = new Uint8Array(32).fill(0);
36186
- if (!label) return bytesToHex(result);
36187
- return encodedLabelToLabelhash(label) || keccak256(stringToBytes(label));
36188
- }
36189
- //#endregion
36190
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/ens/packetToBytes.js
36191
- function packetToBytes(packet) {
36192
- const value = packet.replace(/^\.|\.$/gm, "");
36193
- if (value.length === 0) return new Uint8Array(1);
36194
- const bytes = new Uint8Array(stringToBytes(value).byteLength + 2);
36195
- let offset = 0;
36196
- const list = value.split(".");
36197
- for (let i = 0; i < list.length; i++) {
36198
- let encoded = stringToBytes(list[i]);
36199
- if (encoded.byteLength > 255) encoded = stringToBytes(encodeLabelhash(labelhash(list[i])));
36200
- bytes[offset] = encoded.length;
36201
- bytes.set(encoded, offset + 1);
36202
- offset += encoded.length + 1;
36203
- }
36204
- if (bytes.byteLength !== offset + 1) return bytes.slice(0, offset + 1);
36205
- return bytes;
36206
- }
36207
- //#endregion
36208
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/getAction.js
36209
- /**
36210
- * Retrieves and returns an action from the client (if exists), and falls
36211
- * back to the tree-shakable action.
36212
- *
36213
- * Useful for extracting overridden actions from a client (ie. if a consumer
36214
- * wants to override the `sendTransaction` implementation).
36215
- */
36216
- function getAction$1(client, actionFn, name) {
36217
- const action_implicit = client[actionFn.name];
36218
- if (typeof action_implicit === "function") return action_implicit;
36219
- const action_explicit = client[name];
36220
- if (typeof action_explicit === "function") return action_explicit;
36221
- return (params) => actionFn(client, params);
36222
- }
36223
- //#endregion
36224
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/errors/getContractError.js
36225
- const EXECUTION_REVERTED_ERROR_CODE = 3;
36226
- function getContractError(err, { abi, address, args, docsPath, functionName, sender }) {
36227
- const error = err instanceof RawContractError ? err : err instanceof BaseError$2 ? err.walk((err) => "data" in err) || err.walk() : {};
36228
- const { code, data, details, message, shortMessage } = error;
36229
- return new ContractFunctionExecutionError((() => {
36230
- if (err instanceof AbiDecodingZeroDataError) return new ContractFunctionZeroDataError({ functionName });
36231
- if ([EXECUTION_REVERTED_ERROR_CODE, InternalRpcError.code].includes(code) && (data || details || message || shortMessage) || code === InvalidInputRpcError.code && details === "execution reverted" && data) return new ContractFunctionRevertedError({
36232
- abi,
36233
- data: typeof data === "object" ? data.data : data,
36234
- functionName,
36235
- message: error instanceof RpcRequestError ? details : shortMessage ?? message
36236
- });
36237
- return err;
36238
- })(), {
36239
- abi,
36240
- args,
36241
- contractAddress: address,
36242
- docsPath,
36243
- functionName,
36244
- sender
36245
- });
36246
- }
36247
- //#endregion
36248
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/actions/public/readContract.js
36249
- /**
36250
- * Calls a read-only function on a contract, and returns the response.
36251
- *
36252
- * - Docs: https://viem.sh/docs/contract/readContract
36253
- * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts_reading-contracts
36254
- *
36255
- * A "read-only" function (constant function) on a Solidity contract is denoted by a `view` or `pure` keyword. They can only read the state of the contract, and cannot make any changes to it. Since read-only methods do not change the state of the contract, they do not require any gas to be executed, and can be called by any user without the need to pay for gas.
36256
- *
36257
- * Internally, uses a [Public Client](https://viem.sh/docs/clients/public) to call the [`call` action](https://viem.sh/docs/actions/public/call) with [ABI-encoded `data`](https://viem.sh/docs/contract/encodeFunctionData).
36258
- *
36259
- * @param client - Client to use
36260
- * @param parameters - {@link ReadContractParameters}
36261
- * @returns The response from the contract. Type is inferred. {@link ReadContractReturnType}
36262
- *
36263
- * @example
36264
- * import { createPublicClient, http, parseAbi } from 'viem'
36265
- * import { mainnet } from 'viem/chains'
36266
- * import { readContract } from 'viem/contract'
36267
- *
36268
- * const client = createPublicClient({
36269
- * chain: mainnet,
36270
- * transport: http(),
36271
- * })
36272
- * const result = await readContract(client, {
36273
- * address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
36274
- * abi: parseAbi(['function balanceOf(address) view returns (uint256)']),
36275
- * functionName: 'balanceOf',
36276
- * args: ['0xA0Cf798816D4b9b9866b5330EEa46a18382f251e'],
36277
- * })
36278
- * // 424122n
36279
- */
36280
- async function readContract(client, parameters) {
36281
- const { abi, address, args, functionName, ...rest } = parameters;
36282
- const calldata = encodeFunctionData({
36283
- abi,
36284
- args,
36285
- functionName
36286
- });
36287
- try {
36288
- const { data } = await getAction$1(client, call, "call")({
36289
- ...rest,
36290
- data: calldata,
36291
- to: address
36292
- });
36293
- return decodeFunctionResult({
36294
- abi,
36295
- args,
36296
- functionName,
36297
- data: data || "0x"
36298
- });
36299
- } catch (error) {
36300
- throw getContractError(error, {
36301
- abi,
36302
- address,
36303
- args,
36304
- docsPath: "/docs/contract/readContract",
36305
- functionName
36306
- });
36307
- }
36308
- }
36309
- //#endregion
36310
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/errors/ens.js
36311
- var EnsAvatarInvalidMetadataError = class extends BaseError$2 {
36312
- constructor({ data }) {
36313
- super("Unable to extract image from metadata. The metadata may be malformed or invalid.", {
36314
- metaMessages: [
36315
- "- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.",
36316
- "",
36317
- `Provided data: ${JSON.stringify(data)}`
36318
- ],
36319
- name: "EnsAvatarInvalidMetadataError"
36320
- });
36321
- }
36322
- };
36323
- var EnsAvatarInvalidNftUriError = class extends BaseError$2 {
36324
- constructor({ reason }) {
36325
- super(`ENS NFT avatar URI is invalid. ${reason}`, { name: "EnsAvatarInvalidNftUriError" });
36326
- }
36327
- };
36328
- var EnsAvatarUriResolutionError = class extends BaseError$2 {
36329
- constructor({ uri }) {
36330
- super(`Unable to resolve ENS avatar URI "${uri}". The URI may be malformed, invalid, or does not respond with a valid image.`, { name: "EnsAvatarUriResolutionError" });
36331
- }
36332
- };
36333
- var EnsAvatarUnsupportedNamespaceError = class extends BaseError$2 {
36334
- constructor({ namespace }) {
36335
- super(`ENS NFT avatar namespace "${namespace}" is not supported. Must be "erc721" or "erc1155".`, { name: "EnsAvatarUnsupportedNamespaceError" });
36336
- }
36337
- };
36338
- //#endregion
36339
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/ens/avatar/utils.js
36340
- const networkRegex = /(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/;
36341
- const ipfsHashRegex = /^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/;
36342
- const base64Regex = /^data:([a-zA-Z\-/+]*);base64,([^"].*)/;
36343
- const dataURIRegex = /^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;
36344
- /** @internal */
36345
- async function isImageUri(uri) {
36346
- try {
36347
- const res = await fetch(uri, { method: "HEAD" });
36348
- if (res.status === 200) return res.headers.get("content-type")?.startsWith("image/");
36349
- return false;
36350
- } catch (error) {
36351
- if (typeof error === "object" && typeof error.response !== "undefined") return false;
36352
- if (!Object.hasOwn(globalThis, "Image")) return false;
36353
- return new Promise((resolve) => {
36354
- const img = new Image();
36355
- img.onload = () => {
36356
- resolve(true);
36357
- };
36358
- img.onerror = () => {
36359
- resolve(false);
36360
- };
36361
- img.src = uri;
36362
- });
36363
- }
36364
- }
36365
- /** @internal */
36366
- function getGateway(custom, defaultGateway) {
36367
- if (!custom) return defaultGateway;
36368
- if (custom.endsWith("/")) return custom.slice(0, -1);
36369
- return custom;
36370
- }
36371
- function resolveAvatarUri({ uri, gatewayUrls }) {
36372
- const isEncoded = base64Regex.test(uri);
36373
- if (isEncoded) return {
36374
- uri,
36375
- isOnChain: true,
36376
- isEncoded
36377
- };
36378
- const ipfsGateway = getGateway(gatewayUrls?.ipfs, "https://ipfs.io");
36379
- const arweaveGateway = getGateway(gatewayUrls?.arweave, "https://arweave.net");
36380
- const { protocol, subpath, target, subtarget = "" } = uri.match(networkRegex)?.groups || {};
36381
- const isIPNS = protocol === "ipns:/" || subpath === "ipns/";
36382
- const isIPFS = protocol === "ipfs:/" || subpath === "ipfs/" || ipfsHashRegex.test(uri);
36383
- if (uri.startsWith("http") && !isIPNS && !isIPFS) {
36384
- let replacedUri = uri;
36385
- if (gatewayUrls?.arweave) replacedUri = uri.replace(/https:\/\/arweave.net/g, gatewayUrls?.arweave);
36386
- return {
36387
- uri: replacedUri,
36388
- isOnChain: false,
36389
- isEncoded: false
36390
- };
36391
- }
36392
- if ((isIPNS || isIPFS) && target) return {
36393
- uri: `${ipfsGateway}/${isIPNS ? "ipns" : "ipfs"}/${target}${subtarget}`,
36394
- isOnChain: false,
36395
- isEncoded: false
36396
- };
36397
- if (protocol === "ar:/" && target) return {
36398
- uri: `${arweaveGateway}/${target}${subtarget || ""}`,
36399
- isOnChain: false,
36400
- isEncoded: false
36401
- };
36402
- let parsedUri = uri.replace(dataURIRegex, "");
36403
- if (parsedUri.startsWith("<svg")) parsedUri = `data:image/svg+xml;base64,${btoa(parsedUri)}`;
36404
- if (parsedUri.startsWith("data:") || parsedUri.startsWith("{")) return {
36405
- uri: parsedUri,
36406
- isOnChain: true,
36407
- isEncoded: false
36408
- };
36409
- throw new EnsAvatarUriResolutionError({ uri });
36410
- }
36411
- function getJsonImage(data) {
36412
- if (typeof data !== "object" || !("image" in data) && !("image_url" in data) && !("image_data" in data)) throw new EnsAvatarInvalidMetadataError({ data });
36413
- return data.image || data.image_url || data.image_data;
36414
- }
36415
- async function getMetadataAvatarUri({ gatewayUrls, uri }) {
36416
- try {
36417
- return await parseAvatarUri({
36418
- gatewayUrls,
36419
- uri: getJsonImage(await fetch(uri).then((res) => res.json()))
36420
- });
36421
- } catch {
36422
- throw new EnsAvatarUriResolutionError({ uri });
36423
- }
36424
- }
36425
- async function parseAvatarUri({ gatewayUrls, uri }) {
36426
- const { uri: resolvedURI, isOnChain } = resolveAvatarUri({
36427
- uri,
36428
- gatewayUrls
36429
- });
36430
- if (isOnChain) return resolvedURI;
36431
- if (await isImageUri(resolvedURI)) return resolvedURI;
36432
- throw new EnsAvatarUriResolutionError({ uri });
36433
- }
36434
- function parseNftUri(uri_) {
36435
- let uri = uri_;
36436
- if (uri.startsWith("did:nft:")) uri = uri.replace("did:nft:", "").replace(/_/g, "/");
36437
- const [reference, asset_namespace, tokenID] = uri.split("/");
36438
- const [eip_namespace, chainID] = reference.split(":");
36439
- const [erc_namespace, contractAddress] = asset_namespace.split(":");
36440
- if (!eip_namespace || eip_namespace.toLowerCase() !== "eip155") throw new EnsAvatarInvalidNftUriError({ reason: "Only EIP-155 supported" });
36441
- if (!chainID) throw new EnsAvatarInvalidNftUriError({ reason: "Chain ID not found" });
36442
- if (!contractAddress) throw new EnsAvatarInvalidNftUriError({ reason: "Contract address not found" });
36443
- if (!tokenID) throw new EnsAvatarInvalidNftUriError({ reason: "Token ID not found" });
36444
- if (!erc_namespace) throw new EnsAvatarInvalidNftUriError({ reason: "ERC namespace not found" });
36445
- return {
36446
- chainID: Number.parseInt(chainID, 10),
36447
- namespace: erc_namespace.toLowerCase(),
36448
- contractAddress,
36449
- tokenID
36450
- };
36451
- }
36452
- async function getNftTokenUri(client, { nft }) {
36453
- if (nft.namespace === "erc721") return readContract(client, {
36454
- address: nft.contractAddress,
36455
- abi: [{
36456
- name: "tokenURI",
36457
- type: "function",
36458
- stateMutability: "view",
36459
- inputs: [{
36460
- name: "tokenId",
36461
- type: "uint256"
36462
- }],
36463
- outputs: [{
36464
- name: "",
36465
- type: "string"
36466
- }]
36467
- }],
36468
- functionName: "tokenURI",
36469
- args: [BigInt(nft.tokenID)]
36470
- });
36471
- if (nft.namespace === "erc1155") return readContract(client, {
36472
- address: nft.contractAddress,
36473
- abi: [{
36474
- name: "uri",
36475
- type: "function",
36476
- stateMutability: "view",
36477
- inputs: [{
36478
- name: "_id",
36479
- type: "uint256"
36480
- }],
36481
- outputs: [{
36482
- name: "",
36483
- type: "string"
36484
- }]
36485
- }],
36486
- functionName: "uri",
36487
- args: [BigInt(nft.tokenID)]
36488
- });
36489
- throw new EnsAvatarUnsupportedNamespaceError({ namespace: nft.namespace });
36490
- }
36491
- //#endregion
36492
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/ens/avatar/parseAvatarRecord.js
36493
- async function parseAvatarRecord(client, { gatewayUrls, record }) {
36494
- if (/eip155:/i.test(record)) return parseNftAvatarUri(client, {
36495
- gatewayUrls,
36496
- record
36497
- });
36498
- return parseAvatarUri({
36499
- uri: record,
36500
- gatewayUrls
36501
- });
36502
- }
36503
- async function parseNftAvatarUri(client, { gatewayUrls, record }) {
36504
- const nft = parseNftUri(record);
36505
- const { uri: resolvedNftUri, isOnChain, isEncoded } = resolveAvatarUri({
36506
- uri: await getNftTokenUri(client, { nft }),
36507
- gatewayUrls
36508
- });
36509
- if (isOnChain && (resolvedNftUri.includes("data:application/json;base64,") || resolvedNftUri.startsWith("{"))) {
36510
- const encodedJson = isEncoded ? atob(resolvedNftUri.replace("data:application/json;base64,", "")) : resolvedNftUri;
36511
- return parseAvatarUri({
36512
- uri: getJsonImage(JSON.parse(encodedJson)),
36513
- gatewayUrls
36514
- });
36515
- }
36516
- let uriTokenId = nft.tokenID;
36517
- if (nft.namespace === "erc1155") uriTokenId = uriTokenId.replace("0x", "").padStart(64, "0");
36518
- return getMetadataAvatarUri({
36519
- gatewayUrls,
36520
- uri: resolvedNftUri.replace(/(?:0x)?{id}/, uriTokenId)
36521
- });
36522
- }
36523
- //#endregion
36524
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/actions/ens/getEnsText.js
36525
- /**
36526
- * Gets a text record for specified ENS name.
36527
- *
36528
- * - Docs: https://viem.sh/docs/ens/actions/getEnsResolver
36529
- * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/ens
36530
- *
36531
- * Calls `resolve(bytes, bytes)` on ENS Universal Resolver Contract.
36532
- *
36533
- * Since ENS names prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS names](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `getEnsAddress`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize) function for this.
36534
- *
36535
- * @param client - Client to use
36536
- * @param parameters - {@link GetEnsTextParameters}
36537
- * @returns Address for ENS resolver. {@link GetEnsTextReturnType}
36538
- *
36539
- * @example
36540
- * import { createPublicClient, http } from 'viem'
36541
- * import { mainnet } from 'viem/chains'
36542
- * import { getEnsText, normalize } from 'viem/ens'
36543
- *
36544
- * const client = createPublicClient({
36545
- * chain: mainnet,
36546
- * transport: http(),
36547
- * })
36548
- * const twitterRecord = await getEnsText(client, {
36549
- * name: normalize('wevm.eth'),
36550
- * key: 'com.twitter',
36551
- * })
36552
- * // 'wevm_dev'
36553
- */
36554
- async function getEnsText(client, parameters) {
36555
- const { blockNumber, blockTag, key, name, gatewayUrls, strict } = parameters;
36556
- const { chain } = client;
36557
- const universalResolverAddress = (() => {
36558
- if (parameters.universalResolverAddress) return parameters.universalResolverAddress;
36559
- if (!chain) throw new Error("client chain not configured. universalResolverAddress is required.");
36560
- return getChainContractAddress({
36561
- blockNumber,
36562
- chain,
36563
- contract: "ensUniversalResolver"
36564
- });
36565
- })();
36566
- const tlds = chain?.ensTlds;
36567
- if (tlds && !tlds.some((tld) => name.endsWith(tld))) return null;
36568
- try {
36569
- const readContractParameters = {
36570
- address: universalResolverAddress,
36571
- abi: universalResolverResolveAbi,
36572
- args: [
36573
- toHex(packetToBytes(name)),
36574
- encodeFunctionData({
36575
- abi: textResolverAbi,
36576
- functionName: "text",
36577
- args: [namehash(name), key]
36578
- }),
36579
- gatewayUrls ?? ["x-batch-gateway:true"]
36580
- ],
36581
- functionName: "resolveWithGateways",
36582
- blockNumber,
36583
- blockTag
36584
- };
36585
- const res = await getAction$1(client, readContract, "readContract")(readContractParameters);
36586
- if (res[0] === "0x") return null;
36587
- const record = decodeFunctionResult({
36588
- abi: textResolverAbi,
36589
- functionName: "text",
36590
- data: res[0]
36591
- });
36592
- return record === "" ? null : record;
36593
- } catch (err) {
36594
- if (strict) throw err;
36595
- if (isNullUniversalResolverError(err)) return null;
36596
- throw err;
36597
- }
36598
- }
36599
- //#endregion
36600
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/actions/ens/getEnsAvatar.js
36601
- /**
36602
- * Gets the avatar of an ENS name.
36603
- *
36604
- * - Docs: https://viem.sh/docs/ens/actions/getEnsAvatar
36605
- * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/ens
36606
- *
36607
- * Calls [`getEnsText`](https://viem.sh/docs/ens/actions/getEnsText) with `key` set to `'avatar'`.
36608
- *
36609
- * Since ENS names prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS names](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `getEnsAddress`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize) function for this.
36610
- *
36611
- * @param client - Client to use
36612
- * @param parameters - {@link GetEnsAvatarParameters}
36613
- * @returns Avatar URI or `null` if not found. {@link GetEnsAvatarReturnType}
36614
- *
36615
- * @example
36616
- * import { createPublicClient, http } from 'viem'
36617
- * import { mainnet } from 'viem/chains'
36618
- * import { getEnsAvatar, normalize } from 'viem/ens'
36619
- *
36620
- * const client = createPublicClient({
36621
- * chain: mainnet,
36622
- * transport: http(),
36623
- * })
36624
- * const ensAvatar = await getEnsAvatar(client, {
36625
- * name: normalize('wevm.eth'),
36626
- * })
36627
- * // 'https://ipfs.io/ipfs/Qma8mnp6xV3J2cRNf3mTth5C8nV11CAnceVinc3y8jSbio'
36628
- */
36629
- async function getEnsAvatar$1(client, { blockNumber, blockTag, assetGatewayUrls, name, gatewayUrls, strict, universalResolverAddress }) {
36630
- const record = await getAction$1(client, getEnsText, "getEnsText")({
36631
- blockNumber,
36632
- blockTag,
36633
- key: "avatar",
36634
- name,
36635
- universalResolverAddress,
36636
- gatewayUrls,
36637
- strict
36638
- });
36639
- if (!record) return null;
36640
- try {
36641
- return await parseAvatarRecord(client, {
36642
- record,
36643
- gatewayUrls: assetGatewayUrls
36644
- });
36645
- } catch {
36646
- return null;
36647
- }
36648
- }
36649
- //#endregion
36650
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/actions/ens/getEnsName.js
36651
- /**
36652
- * Gets primary name for specified address.
36653
- *
36654
- * - Docs: https://viem.sh/docs/ens/actions/getEnsName
36655
- * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/ens
36656
- *
36657
- * Calls `reverse(bytes)` on ENS Universal Resolver Contract to "reverse resolve" the address to the primary ENS name.
36658
- *
36659
- * @param client - Client to use
36660
- * @param parameters - {@link GetEnsNameParameters}
36661
- * @returns Name or `null` if not found. {@link GetEnsNameReturnType}
36662
- *
36663
- * @example
36664
- * import { createPublicClient, http } from 'viem'
36665
- * import { mainnet } from 'viem/chains'
36666
- * import { getEnsName } from 'viem/ens'
36667
- *
36668
- * const client = createPublicClient({
36669
- * chain: mainnet,
36670
- * transport: http(),
36671
- * })
36672
- * const ensName = await getEnsName(client, {
36673
- * address: '0xd2135CfB216b74109775236E36d4b433F1DF507B',
36674
- * })
36675
- * // 'wevm.eth'
36676
- */
36677
- async function getEnsName$1(client, parameters) {
36678
- const { address, blockNumber, blockTag, coinType = 60n, gatewayUrls, strict } = parameters;
36679
- const { chain } = client;
36680
- const universalResolverAddress = (() => {
36681
- if (parameters.universalResolverAddress) return parameters.universalResolverAddress;
36682
- if (!chain) throw new Error("client chain not configured. universalResolverAddress is required.");
36683
- return getChainContractAddress({
36684
- blockNumber,
36685
- chain,
36686
- contract: "ensUniversalResolver"
36687
- });
36688
- })();
36689
- try {
36690
- const readContractParameters = {
36691
- address: universalResolverAddress,
36692
- abi: universalResolverReverseAbi,
36693
- args: [
36694
- address,
36695
- coinType,
36696
- gatewayUrls ?? ["x-batch-gateway:true"]
36697
- ],
36698
- functionName: "reverseWithGateways",
36699
- blockNumber,
36700
- blockTag
36701
- };
36702
- const [name] = await getAction$1(client, readContract, "readContract")(readContractParameters);
36703
- return name || null;
36704
- } catch (err) {
36705
- if (strict) throw err;
36706
- if (isNullUniversalResolverError(err)) return null;
36707
- throw err;
36708
- }
36709
- }
36710
- //#endregion
36711
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/promise/withDedupe.js
36712
- /** @internal */
36713
- const promiseCache = /* @__PURE__ */ new LruMap(8192);
36714
- /** Deduplicates in-flight promises. */
36715
- function withDedupe(fn, { enabled = true, id }) {
36716
- if (!enabled || !id) return fn();
36717
- if (promiseCache.get(id)) return promiseCache.get(id);
36718
- const promise = fn().finally(() => promiseCache.delete(id));
36719
- promiseCache.set(id, promise);
36720
- return promise;
36721
- }
36722
- //#endregion
36723
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/wait.js
36724
- async function wait(time) {
36725
- return new Promise((res) => setTimeout(res, time));
36726
- }
36727
- //#endregion
36728
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/promise/withRetry.js
36729
- function withRetry(fn, { delay: delay_ = 100, retryCount = 2, shouldRetry = () => true } = {}) {
36730
- return new Promise((resolve, reject) => {
36731
- const attemptRetry = async ({ count = 0 } = {}) => {
36732
- const retry = async ({ error }) => {
36733
- const delay = typeof delay_ === "function" ? delay_({
36734
- count,
36735
- error
36736
- }) : delay_;
36737
- if (delay) await wait(delay);
36738
- attemptRetry({ count: count + 1 });
36739
- };
36740
- try {
36741
- resolve(await fn());
36742
- } catch (err) {
36743
- if (count < retryCount && await shouldRetry({
36744
- count,
36745
- error: err
36746
- })) return retry({ error: err });
36747
- reject(err);
36748
- }
36749
- };
36750
- attemptRetry();
36751
- });
36752
- }
36753
- //#endregion
36754
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/buildRequest.js
36755
- function buildRequest(request, options = {}) {
36756
- return async (args, overrideOptions = {}) => {
36757
- const { dedupe = false, methods, retryDelay = 150, retryCount = 3, uid } = {
36758
- ...options,
36759
- ...overrideOptions
36760
- };
36761
- const { method } = args;
36762
- if (methods?.exclude?.includes(method)) throw new MethodNotSupportedRpcError(/* @__PURE__ */ new Error("method not supported"), { method });
36763
- if (methods?.include && !methods.include.includes(method)) throw new MethodNotSupportedRpcError(/* @__PURE__ */ new Error("method not supported"), { method });
36764
- return withDedupe(() => withRetry(async () => {
36765
- try {
36766
- return await request(args);
36767
- } catch (err_) {
36768
- const err = err_;
36769
- switch (err.code) {
36770
- case ParseRpcError.code: throw new ParseRpcError(err);
36771
- case InvalidRequestRpcError.code: throw new InvalidRequestRpcError(err);
36772
- case MethodNotFoundRpcError.code: throw new MethodNotFoundRpcError(err, { method: args.method });
36773
- case InvalidParamsRpcError.code: throw new InvalidParamsRpcError(err);
36774
- case InternalRpcError.code: throw new InternalRpcError(err);
36775
- case InvalidInputRpcError.code: throw new InvalidInputRpcError(err);
36776
- case ResourceNotFoundRpcError.code: throw new ResourceNotFoundRpcError(err);
36777
- case ResourceUnavailableRpcError.code: throw new ResourceUnavailableRpcError(err);
36778
- case TransactionRejectedRpcError.code: throw new TransactionRejectedRpcError(err);
36779
- case MethodNotSupportedRpcError.code: throw new MethodNotSupportedRpcError(err, { method: args.method });
36780
- case LimitExceededRpcError.code: throw new LimitExceededRpcError(err);
36781
- case JsonRpcVersionUnsupportedError.code: throw new JsonRpcVersionUnsupportedError(err);
36782
- case UserRejectedRequestError.code: throw new UserRejectedRequestError(err);
36783
- case UnauthorizedProviderError.code: throw new UnauthorizedProviderError(err);
36784
- case UnsupportedProviderMethodError.code: throw new UnsupportedProviderMethodError(err);
36785
- case ProviderDisconnectedError.code: throw new ProviderDisconnectedError(err);
36786
- case ChainDisconnectedError.code: throw new ChainDisconnectedError(err);
36787
- case SwitchChainError.code: throw new SwitchChainError(err);
36788
- case UnsupportedNonOptionalCapabilityError.code: throw new UnsupportedNonOptionalCapabilityError(err);
36789
- case UnsupportedChainIdError.code: throw new UnsupportedChainIdError(err);
36790
- case DuplicateIdError.code: throw new DuplicateIdError(err);
36791
- case UnknownBundleIdError.code: throw new UnknownBundleIdError(err);
36792
- case BundleTooLargeError.code: throw new BundleTooLargeError(err);
36793
- case AtomicReadyWalletRejectedUpgradeError.code: throw new AtomicReadyWalletRejectedUpgradeError(err);
36794
- case AtomicityNotSupportedError.code: throw new AtomicityNotSupportedError(err);
36795
- case 5e3: throw new UserRejectedRequestError(err);
36796
- case WalletConnectSessionSettlementError.code: throw new WalletConnectSessionSettlementError(err);
36797
- default:
36798
- if (err_ instanceof BaseError$2) throw err_;
36799
- throw new UnknownRpcError(err);
36800
- }
36801
- }
36802
- }, {
36803
- delay: ({ count, error }) => {
36804
- if (error && error instanceof HttpRequestError) {
36805
- const retryAfter = error?.headers?.get("Retry-After");
36806
- if (retryAfter?.match(/\d/)) return Number.parseInt(retryAfter, 10) * 1e3;
36807
- }
36808
- return ~~(1 << count) * retryDelay;
36809
- },
36810
- retryCount,
36811
- shouldRetry: ({ error }) => shouldRetry(error)
36812
- }), {
36813
- enabled: dedupe,
36814
- id: dedupe ? stringToHex(`${uid}.${stringify(args)}`) : void 0
36815
- });
36816
- };
36817
- }
36818
- /** @internal */
36819
- function shouldRetry(error) {
36820
- if ("code" in error && typeof error.code === "number") {
36821
- if (error.code === -1) return true;
36822
- if (error.code === LimitExceededRpcError.code) return true;
36823
- if (error.code === InternalRpcError.code) return true;
36824
- return false;
36825
- }
36826
- if (error instanceof HttpRequestError && error.status) {
36827
- if (error.status === 403) return true;
36828
- if (error.status === 408) return true;
36829
- if (error.status === 413) return true;
36830
- if (error.status === 429) return true;
36831
- if (error.status === 500) return true;
36832
- if (error.status === 502) return true;
36833
- if (error.status === 503) return true;
36834
- if (error.status === 504) return true;
36835
- return false;
36836
- }
36837
- return true;
36838
- }
36839
- //#endregion
36840
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/chain/defineChain.js
36841
- function defineChain(chain) {
36842
- const chainInstance = {
36843
- formatters: void 0,
36844
- fees: void 0,
36845
- serializers: void 0,
36846
- ...chain
36847
- };
36848
- function extend(base) {
36849
- return (fnOrExtended) => {
36850
- const properties = typeof fnOrExtended === "function" ? fnOrExtended(base) : fnOrExtended;
36851
- const combined = {
36852
- ...base,
36853
- ...properties
36854
- };
36855
- return Object.assign(combined, { extend: extend(combined) });
36856
- };
36857
- }
36858
- return Object.assign(chainInstance, { extend: extend(chainInstance) });
36859
- }
36860
- //#endregion
36861
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/promise/withTimeout.js
36862
- function withTimeout(fn, { errorInstance = /* @__PURE__ */ new Error("timed out"), timeout, signal }) {
36863
- return new Promise((resolve, reject) => {
36864
- (async () => {
36865
- let timeoutId;
36866
- try {
36867
- const controller = new AbortController();
36868
- if (timeout > 0) timeoutId = setTimeout(() => {
36869
- if (signal) controller.abort();
36870
- else reject(errorInstance);
36871
- }, timeout);
36872
- resolve(await fn({ signal: controller?.signal || null }));
36873
- } catch (err) {
36874
- if (err?.name === "AbortError") reject(errorInstance);
36875
- reject(err);
36876
- } finally {
36877
- clearTimeout(timeoutId);
36878
- }
36879
- })();
36880
- });
36881
- }
36882
- //#endregion
36883
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/rpc/id.js
36884
- function createIdStore() {
36885
- return {
36886
- current: 0,
36887
- take() {
36888
- return this.current++;
36889
- },
36890
- reset() {
36891
- this.current = 0;
36892
- }
36893
- };
36894
- }
36895
- const idCache = /* @__PURE__ */ createIdStore();
36896
- //#endregion
36897
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/rpc/http.js
36898
- function getHttpRpcClient(url_, options = {}) {
36899
- const { url, headers: headers_url } = parseUrl(url_);
36900
- return { async request(params) {
36901
- const { body, fetchFn = options.fetchFn ?? fetch, onRequest = options.onRequest, onResponse = options.onResponse, timeout = options.timeout ?? 1e4 } = params;
36902
- const fetchOptions = {
36903
- ...options.fetchOptions ?? {},
36904
- ...params.fetchOptions ?? {}
36905
- };
36906
- const { headers, method, signal: signal_ } = fetchOptions;
36907
- try {
36908
- const response = await withTimeout(async ({ signal }) => {
36909
- const init = {
36910
- ...fetchOptions,
36911
- body: Array.isArray(body) ? stringify(body.map((body) => ({
36912
- jsonrpc: "2.0",
36913
- id: body.id ?? idCache.take(),
36914
- ...body
36915
- }))) : stringify({
36916
- jsonrpc: "2.0",
36917
- id: body.id ?? idCache.take(),
36918
- ...body
36919
- }),
36920
- headers: {
36921
- ...headers_url,
36922
- "Content-Type": "application/json",
36923
- ...headers
36924
- },
36925
- method: method || "POST",
36926
- signal: signal_ || (timeout > 0 ? signal : null)
36927
- };
36928
- const request = new Request(url, init);
36929
- const args = await onRequest?.(request, init) ?? {
36930
- ...init,
36931
- url
36932
- };
36933
- return await fetchFn(args.url ?? url, args);
36934
- }, {
36935
- errorInstance: new TimeoutError({
36936
- body,
36937
- url
36938
- }),
36939
- timeout,
36940
- signal: true
36941
- });
36942
- if (onResponse) await onResponse(response);
36943
- let data;
36944
- if (response.headers.get("Content-Type")?.startsWith("application/json")) data = await response.json();
36945
- else {
36946
- data = await response.text();
36947
- try {
36948
- data = JSON.parse(data || "{}");
36949
- } catch (err) {
36950
- if (response.ok) throw err;
36951
- data = { error: data };
36952
- }
36953
- }
36954
- if (!response.ok) throw new HttpRequestError({
36955
- body,
36956
- details: stringify(data.error) || response.statusText,
36957
- headers: response.headers,
36958
- status: response.status,
36959
- url
36960
- });
36961
- return data;
36962
- } catch (err) {
36963
- if (err instanceof HttpRequestError) throw err;
36964
- if (err instanceof TimeoutError) throw err;
36965
- throw new HttpRequestError({
36966
- body,
36967
- cause: err,
36968
- url
36969
- });
36970
- }
36971
- } };
36972
- }
36973
- /** @internal */
36974
- function parseUrl(url_) {
36975
- try {
36976
- const url = new URL(url_);
36977
- const result = (() => {
36978
- if (url.username) {
36979
- const credentials = `${decodeURIComponent(url.username)}:${decodeURIComponent(url.password)}`;
36980
- url.username = "";
36981
- url.password = "";
36982
- return {
36983
- url: url.toString(),
36984
- headers: { Authorization: `Basic ${btoa(credentials)}` }
36985
- };
36986
- }
36987
- })();
36988
- return {
36989
- url: url.toString(),
36990
- ...result
36991
- };
36992
- } catch {
36993
- return { url: url_ };
36994
- }
36995
- }
36996
- //#endregion
36997
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/utils/getAction.js
36998
- /**
36999
- * Retrieves and returns an action from the client (if exists), and falls
37000
- * back to the tree-shakable action.
37001
- *
37002
- * Useful for extracting overridden actions from a client (ie. if a consumer
37003
- * wants to override the `sendTransaction` implementation).
37004
- */
37005
- function getAction(client, actionFn, name) {
37006
- const action_implicit = client[actionFn.name];
37007
- if (typeof action_implicit === "function") return action_implicit;
37008
- const action_explicit = client[name];
37009
- if (typeof action_explicit === "function") return action_explicit;
37010
- return (params) => actionFn(client, params);
37011
- }
37012
- //#endregion
37013
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/version.js
37014
- const version$1 = "3.4.0";
37015
- //#endregion
37016
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/utils/getVersion.js
37017
- const getVersion$1 = () => `@wagmi/core@${version$1}`;
37018
- //#endregion
37019
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/errors/base.js
37020
- var __classPrivateFieldGet = function(receiver, state, kind, f) {
37021
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
37022
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
37023
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
37024
- };
37025
- var _BaseError_instances, _BaseError_walk;
37026
- var BaseError$1 = class BaseError$1 extends Error {
37027
- get docsBaseUrl() {
37028
- return "https://wagmi.sh/core";
37029
- }
37030
- get version() {
37031
- return getVersion$1();
37032
- }
37033
- constructor(shortMessage, options = {}) {
37034
- super();
37035
- _BaseError_instances.add(this);
37036
- Object.defineProperty(this, "details", {
37037
- enumerable: true,
37038
- configurable: true,
37039
- writable: true,
37040
- value: void 0
37041
- });
37042
- Object.defineProperty(this, "docsPath", {
37043
- enumerable: true,
37044
- configurable: true,
37045
- writable: true,
37046
- value: void 0
37047
- });
37048
- Object.defineProperty(this, "metaMessages", {
37049
- enumerable: true,
37050
- configurable: true,
37051
- writable: true,
37052
- value: void 0
37053
- });
37054
- Object.defineProperty(this, "shortMessage", {
37055
- enumerable: true,
37056
- configurable: true,
37057
- writable: true,
37058
- value: void 0
37059
- });
37060
- Object.defineProperty(this, "name", {
37061
- enumerable: true,
37062
- configurable: true,
37063
- writable: true,
37064
- value: "WagmiCoreError"
37065
- });
37066
- const details = options.cause instanceof BaseError$1 ? options.cause.details : options.cause?.message ? options.cause.message : options.details;
37067
- const docsPath = options.cause instanceof BaseError$1 ? options.cause.docsPath || options.docsPath : options.docsPath;
37068
- this.message = [
37069
- shortMessage || "An error occurred.",
37070
- "",
37071
- ...options.metaMessages ? [...options.metaMessages, ""] : [],
37072
- ...docsPath ? [`Docs: ${this.docsBaseUrl}${docsPath}.html${options.docsSlug ? `#${options.docsSlug}` : ""}`] : [],
37073
- ...details ? [`Details: ${details}`] : [],
37074
- `Version: ${this.version}`
37075
- ].join("\n");
37076
- if (options.cause) this.cause = options.cause;
37077
- this.details = details;
37078
- this.docsPath = docsPath;
37079
- this.metaMessages = options.metaMessages;
37080
- this.shortMessage = shortMessage;
37081
- }
37082
- walk(fn) {
37083
- return __classPrivateFieldGet(this, _BaseError_instances, "m", _BaseError_walk).call(this, this, fn);
37084
- }
37085
- };
37086
- _BaseError_instances = /* @__PURE__ */ new WeakSet(), _BaseError_walk = function _BaseError_walk(err, fn) {
37087
- if (fn?.(err)) return err;
37088
- if (err.cause) return __classPrivateFieldGet(this, _BaseError_instances, "m", _BaseError_walk).call(this, err.cause, fn);
37089
- return err;
37090
- };
37091
- //#endregion
37092
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/errors/config.js
37093
- var ChainNotConfiguredError = class extends BaseError$1 {
37094
- constructor() {
37095
- super("Chain not configured.");
37096
- Object.defineProperty(this, "name", {
37097
- enumerable: true,
37098
- configurable: true,
37099
- writable: true,
37100
- value: "ChainNotConfiguredError"
37101
- });
37102
- }
37103
- };
37104
- //#endregion
37105
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/utils/uid.js
37106
- const size$1 = 256;
37107
- let index$1 = size$1;
37108
- let buffer$1;
37109
- function uid$1(length = 11) {
37110
- if (!buffer$1 || index$1 + length > size$1 * 2) {
37111
- buffer$1 = "";
37112
- index$1 = 0;
37113
- for (let i = 0; i < size$1; i++) buffer$1 += (256 + Math.random() * 256 | 0).toString(16).substring(1);
37114
- }
37115
- return buffer$1.substring(index$1, index$1++ + length);
37116
- }
37117
- //#endregion
37118
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/clients/createClient.js
37119
- function createClient(parameters) {
37120
- const { batch, chain, ccipRead, dataSuffix, key = "base", name = "Base Client", type = "base" } = parameters;
37121
- const experimental_blockTag = parameters.experimental_blockTag ?? (typeof chain?.experimental_preconfirmationTime === "number" ? "pending" : void 0);
37122
- const blockTime = chain?.blockTime ?? 12e3;
37123
- const defaultPollingInterval = Math.min(Math.max(Math.floor(blockTime / 2), 500), 4e3);
37124
- const pollingInterval = parameters.pollingInterval ?? defaultPollingInterval;
37125
- const cacheTime = parameters.cacheTime ?? pollingInterval;
37126
- const account = parameters.account ? parseAccount(parameters.account) : void 0;
37127
- const { config, request, value } = parameters.transport({
37128
- account,
37129
- chain,
37130
- pollingInterval
37131
- });
37132
- const client = {
37133
- account,
37134
- batch,
37135
- cacheTime,
37136
- ccipRead,
37137
- chain,
37138
- dataSuffix,
37139
- key,
37140
- name,
37141
- pollingInterval,
37142
- request,
37143
- transport: {
37144
- ...config,
37145
- ...value
37146
- },
37147
- type,
37148
- uid: uid$1(),
37149
- ...experimental_blockTag ? { experimental_blockTag } : {}
37150
- };
37151
- function extend(base) {
37152
- return (extendFn) => {
37153
- const extended = extendFn(base);
37154
- for (const key in client) delete extended[key];
37155
- const combined = {
37156
- ...base,
37157
- ...extended
37158
- };
37159
- return Object.assign(combined, { extend: extend(combined) });
37160
- };
37161
- }
37162
- return Object.assign(client, { extend: extend(client) });
37163
- }
37164
- //#endregion
37165
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/clients/transports/createTransport.js
37166
- /**
37167
- * @description Creates an transport intended to be used with a client.
37168
- */
37169
- function createTransport({ key, methods, name, request, retryCount = 3, retryDelay = 150, timeout, type }, value) {
37170
- const uid = uid$1();
37171
- return {
37172
- config: {
37173
- key,
37174
- methods,
37175
- name,
37176
- request,
37177
- retryCount,
37178
- retryDelay,
37179
- timeout,
37180
- type
37181
- },
37182
- request: buildRequest(request, {
37183
- methods,
37184
- retryCount,
37185
- retryDelay,
37186
- uid
37187
- }),
37188
- value
37189
- };
37190
- }
37191
- //#endregion
37192
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/errors/transport.js
37193
- var UrlRequiredError = class extends BaseError$2 {
37194
- constructor() {
37195
- super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.", {
37196
- docsPath: "/docs/clients/intro",
37197
- name: "UrlRequiredError"
37198
- });
37199
- }
37200
- };
37201
- //#endregion
37202
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/clients/transports/http.js
37203
- /**
37204
- * @description Creates a HTTP transport that connects to a JSON-RPC API.
37205
- */
37206
- function http(url, config = {}) {
37207
- const { batch, fetchFn, fetchOptions, key = "http", methods, name = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config;
37208
- return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
37209
- const { batchSize = 1e3, wait = 0 } = typeof batch === "object" ? batch : {};
37210
- const retryCount = config.retryCount ?? retryCount_;
37211
- const timeout = timeout_ ?? config.timeout ?? 1e4;
37212
- const url_ = url || chain?.rpcUrls.default.http[0];
37213
- if (!url_) throw new UrlRequiredError();
37214
- const rpcClient = getHttpRpcClient(url_, {
37215
- fetchFn,
37216
- fetchOptions,
37217
- onRequest: onFetchRequest,
37218
- onResponse: onFetchResponse,
37219
- timeout
37220
- });
37221
- return createTransport({
37222
- key,
37223
- methods,
37224
- name,
37225
- async request({ method, params }) {
37226
- const body = {
37227
- method,
37228
- params
37229
- };
37230
- const { schedule } = createBatchScheduler({
37231
- id: url_,
37232
- wait,
37233
- shouldSplitBatch(requests) {
37234
- return requests.length > batchSize;
37235
- },
37236
- fn: (body) => rpcClient.request({ body }),
37237
- sort: (a, b) => a.id - b.id
37238
- });
37239
- const fn = async (body) => batch ? schedule(body) : [await rpcClient.request({ body })];
37240
- const [{ error, result }] = await fn(body);
37241
- if (raw) return {
37242
- error,
37243
- result
37244
- };
37245
- if (error) throw new RpcRequestError({
37246
- body,
37247
- error,
37248
- url: url_
37249
- });
37250
- return result;
37251
- },
37252
- retryCount,
37253
- retryDelay,
37254
- timeout,
37255
- type: "http"
37256
- }, {
37257
- fetchOptions,
37258
- url: url_
37259
- });
37260
- };
37261
- }
37262
- //#endregion
37263
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/actions/getChainId.js
37264
- /** https://wagmi.sh/core/api/actions/getChainId */
37265
- function getChainId(config) {
37266
- return config.state.chainId;
37267
- }
37268
- //#endregion
37269
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/actions/getEnsAvatar.js
37270
- /** https://wagmi.sh/core/api/actions/getEnsAvatar */
37271
- function getEnsAvatar(config, parameters) {
37272
- const { chainId, ...rest } = parameters;
37273
- return getAction(config.getClient({ chainId }), getEnsAvatar$1, "getEnsAvatar")(rest);
37274
- }
37275
- //#endregion
37276
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/actions/getEnsName.js
37277
- /** https://wagmi.sh/core/api/actions/getEnsName */
37278
- function getEnsName(config, parameters) {
37279
- const { chainId, ...rest } = parameters;
37280
- return getAction(config.getClient({ chainId }), getEnsName$1, "getEnsName")(rest);
37281
- }
37282
- //#endregion
37283
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/errors/connector.js
37284
- var ProviderNotFoundError = class extends BaseError$1 {
37285
- constructor() {
37286
- super("Provider not found.");
37287
- Object.defineProperty(this, "name", {
37288
- enumerable: true,
37289
- configurable: true,
37290
- writable: true,
37291
- value: "ProviderNotFoundError"
37292
- });
37293
- }
37294
- };
37295
- //#endregion
37296
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/actions/watchChainId.js
37297
- /** https://wagmi.sh/core/api/actions/watchChainId */
37298
- function watchChainId(config, parameters) {
37299
- const { onChange } = parameters;
37300
- return config.subscribe((state) => state.chainId, onChange);
37301
- }
37302
- //#endregion
37303
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/connectors/createConnector.js
37304
- function createConnector(createConnectorFn) {
37305
- return createConnectorFn;
37306
- }
37307
- //#endregion
37308
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/connectors/injected.js
37309
- injected.type = "injected";
37310
- function injected(parameters = {}) {
37311
- const { shimDisconnect = true, unstable_shimAsyncInject } = parameters;
37312
- function getTarget() {
37313
- const target = parameters.target;
37314
- if (typeof target === "function") {
37315
- const result = target();
37316
- if (result) return result;
37317
- }
37318
- if (typeof target === "object") return target;
37319
- if (typeof target === "string") return { ...targetMap[target] ?? {
37320
- id: target,
37321
- name: `${target[0].toUpperCase()}${target.slice(1)}`,
37322
- provider: `is${target[0].toUpperCase()}${target.slice(1)}`
37323
- } };
37324
- return {
37325
- id: "injected",
37326
- name: "Injected",
37327
- provider(window) {
37328
- return window?.ethereum;
37329
- }
37330
- };
37331
- }
37332
- let accountsChanged;
37333
- let chainChanged;
37334
- let connect;
37335
- let disconnect;
37336
- return createConnector((config) => ({
37337
- get icon() {
37338
- return getTarget().icon;
37339
- },
37340
- get id() {
37341
- return getTarget().id;
37342
- },
37343
- get name() {
37344
- return getTarget().name;
37345
- },
37346
- type: injected.type,
37347
- async setup() {
37348
- const provider = await this.getProvider();
37349
- if (provider?.on && parameters.target) {
37350
- if (!connect) {
37351
- connect = this.onConnect.bind(this);
37352
- provider.on("connect", connect);
37353
- }
37354
- if (!accountsChanged) {
37355
- accountsChanged = this.onAccountsChanged.bind(this);
37356
- provider.on("accountsChanged", accountsChanged);
37357
- }
37358
- }
37359
- },
37360
- async connect({ chainId, isReconnecting, withCapabilities } = {}) {
37361
- const provider = await this.getProvider();
37362
- if (!provider) throw new ProviderNotFoundError();
37363
- let accounts = [];
37364
- if (isReconnecting) accounts = await this.getAccounts().catch(() => []);
37365
- else if (shimDisconnect) try {
37366
- accounts = (await provider.request({
37367
- method: "wallet_requestPermissions",
37368
- params: [{ eth_accounts: {} }]
37369
- }))[0]?.caveats?.[0]?.value?.map((x) => getAddress(x));
37370
- if (accounts.length > 0) accounts = await this.getAccounts();
37371
- } catch (err) {
37372
- const error = err;
37373
- if (error.code === UserRejectedRequestError.code) throw new UserRejectedRequestError(error);
37374
- if (error.code === ResourceUnavailableRpcError.code) throw error;
37375
- }
37376
- try {
37377
- if (!accounts?.length && !isReconnecting) accounts = (await provider.request({ method: "eth_requestAccounts" })).map((x) => getAddress(x));
37378
- if (connect) {
37379
- provider.removeListener("connect", connect);
37380
- connect = void 0;
37381
- }
37382
- if (!accountsChanged) {
37383
- accountsChanged = this.onAccountsChanged.bind(this);
37384
- provider.on("accountsChanged", accountsChanged);
37385
- }
37386
- if (!chainChanged) {
37387
- chainChanged = this.onChainChanged.bind(this);
37388
- provider.on("chainChanged", chainChanged);
37389
- }
37390
- if (!disconnect) {
37391
- disconnect = this.onDisconnect.bind(this);
37392
- provider.on("disconnect", disconnect);
37393
- }
37394
- let currentChainId = await this.getChainId();
37395
- if (chainId && currentChainId !== chainId) currentChainId = (await this.switchChain({ chainId }).catch((error) => {
37396
- if (error.code === UserRejectedRequestError.code) throw error;
37397
- return { id: currentChainId };
37398
- }))?.id ?? currentChainId;
37399
- if (shimDisconnect) await config.storage?.removeItem(`${this.id}.disconnected`);
37400
- if (!parameters.target) await config.storage?.setItem("injected.connected", true);
37401
- return {
37402
- accounts: withCapabilities ? accounts.map((address) => ({
37403
- address,
37404
- capabilities: {}
37405
- })) : accounts,
37406
- chainId: currentChainId
37407
- };
37408
- } catch (err) {
37409
- const error = err;
37410
- if (error.code === UserRejectedRequestError.code) throw new UserRejectedRequestError(error);
37411
- if (error.code === ResourceUnavailableRpcError.code) throw new ResourceUnavailableRpcError(error);
37412
- throw error;
37413
- }
37414
- },
37415
- async disconnect() {
37416
- const provider = await this.getProvider();
37417
- if (!provider) throw new ProviderNotFoundError();
37418
- if (chainChanged) {
37419
- provider.removeListener("chainChanged", chainChanged);
37420
- chainChanged = void 0;
37421
- }
37422
- if (disconnect) {
37423
- provider.removeListener("disconnect", disconnect);
37424
- disconnect = void 0;
37425
- }
37426
- if (!connect) {
37427
- connect = this.onConnect.bind(this);
37428
- provider.on("connect", connect);
37429
- }
37430
- try {
37431
- await withTimeout(() => provider.request({
37432
- method: "wallet_revokePermissions",
37433
- params: [{ eth_accounts: {} }]
37434
- }), { timeout: 100 });
37435
- } catch {}
37436
- if (shimDisconnect) await config.storage?.setItem(`${this.id}.disconnected`, true);
37437
- if (!parameters.target) await config.storage?.removeItem("injected.connected");
37438
- },
37439
- async getAccounts() {
37440
- const provider = await this.getProvider();
37441
- if (!provider) throw new ProviderNotFoundError();
37442
- return (await provider.request({ method: "eth_accounts" })).map((x) => getAddress(x));
37443
- },
37444
- async getChainId() {
37445
- const provider = await this.getProvider();
37446
- if (!provider) throw new ProviderNotFoundError();
37447
- const hexChainId = await provider.request({ method: "eth_chainId" });
37448
- return Number(hexChainId);
37449
- },
37450
- async getProvider() {
37451
- if (typeof window === "undefined") return void 0;
37452
- let provider;
37453
- const target = getTarget();
37454
- if (typeof target.provider === "function") provider = target.provider(window);
37455
- else if (typeof target.provider === "string") provider = findProvider(window, target.provider);
37456
- else provider = target.provider;
37457
- if (provider && !provider.removeListener) if ("off" in provider && typeof provider.off === "function") provider.removeListener = provider.off;
37458
- else provider.removeListener = () => {};
37459
- return provider;
37460
- },
37461
- async isAuthorized() {
37462
- try {
37463
- if (shimDisconnect && await config.storage?.getItem(`${this.id}.disconnected`)) return false;
37464
- if (!parameters.target) {
37465
- if (!await config.storage?.getItem("injected.connected")) return false;
37466
- }
37467
- if (!await this.getProvider()) {
37468
- if (unstable_shimAsyncInject !== void 0 && unstable_shimAsyncInject !== false) {
37469
- const handleEthereum = async () => {
37470
- if (typeof window !== "undefined") window.removeEventListener("ethereum#initialized", handleEthereum);
37471
- return !!await this.getProvider();
37472
- };
37473
- const timeout = typeof unstable_shimAsyncInject === "number" ? unstable_shimAsyncInject : 1e3;
37474
- if (await Promise.race([...typeof window !== "undefined" ? [new Promise((resolve) => window.addEventListener("ethereum#initialized", () => resolve(handleEthereum()), { once: true }))] : [], new Promise((resolve) => setTimeout(() => resolve(handleEthereum()), timeout))])) return true;
37475
- }
37476
- throw new ProviderNotFoundError();
37477
- }
37478
- return !!(await withRetry(() => this.getAccounts())).length;
37479
- } catch {
37480
- return false;
37481
- }
37482
- },
37483
- async switchChain({ addEthereumChainParameter, chainId }) {
37484
- const provider = await this.getProvider();
37485
- if (!provider) throw new ProviderNotFoundError();
37486
- const chain = config.chains.find((x) => x.id === chainId);
37487
- if (!chain) throw new SwitchChainError(new ChainNotConfiguredError());
37488
- const promise = new Promise((resolve) => {
37489
- const listener = ((data) => {
37490
- if ("chainId" in data && data.chainId === chainId) {
37491
- config.emitter.off("change", listener);
37492
- resolve();
37493
- }
37494
- });
37495
- config.emitter.on("change", listener);
37496
- });
37497
- try {
37498
- await Promise.all([provider.request({
37499
- method: "wallet_switchEthereumChain",
37500
- params: [{ chainId: numberToHex(chainId) }]
37501
- }).then(async () => {
37502
- if (await this.getChainId() === chainId) config.emitter.emit("change", { chainId });
37503
- }), promise]);
37504
- return chain;
37505
- } catch (err) {
37506
- const error = err;
37507
- if (error.code === 4902 || error?.data?.originalError?.code === 4902) try {
37508
- const { default: blockExplorer, ...blockExplorers } = chain.blockExplorers ?? {};
37509
- let blockExplorerUrls;
37510
- if (addEthereumChainParameter?.blockExplorerUrls) blockExplorerUrls = addEthereumChainParameter.blockExplorerUrls;
37511
- else if (blockExplorer) blockExplorerUrls = [blockExplorer.url, ...Object.values(blockExplorers).map((x) => x.url)];
37512
- let rpcUrls;
37513
- if (addEthereumChainParameter?.rpcUrls?.length) rpcUrls = addEthereumChainParameter.rpcUrls;
37514
- else rpcUrls = [chain.rpcUrls.default?.http[0] ?? ""];
37515
- const addEthereumChain = {
37516
- blockExplorerUrls,
37517
- chainId: numberToHex(chainId),
37518
- chainName: addEthereumChainParameter?.chainName ?? chain.name,
37519
- iconUrls: addEthereumChainParameter?.iconUrls,
37520
- nativeCurrency: addEthereumChainParameter?.nativeCurrency ?? chain.nativeCurrency,
37521
- rpcUrls
37522
- };
37523
- await Promise.all([provider.request({
37524
- method: "wallet_addEthereumChain",
37525
- params: [addEthereumChain]
37526
- }).then(async () => {
37527
- if (await this.getChainId() === chainId) config.emitter.emit("change", { chainId });
37528
- else throw new UserRejectedRequestError(/* @__PURE__ */ new Error("User rejected switch after adding network."));
37529
- }), promise]);
37530
- return chain;
37531
- } catch (error) {
37532
- throw new UserRejectedRequestError(error);
37533
- }
37534
- if (error.code === UserRejectedRequestError.code) throw new UserRejectedRequestError(error);
37535
- throw new SwitchChainError(error);
37536
- }
37537
- },
37538
- async onAccountsChanged(accounts) {
37539
- if (accounts.length === 0) this.onDisconnect();
37540
- else if (config.emitter.listenerCount("connect")) {
37541
- const chainId = (await this.getChainId()).toString();
37542
- this.onConnect({ chainId });
37543
- if (shimDisconnect) await config.storage?.removeItem(`${this.id}.disconnected`);
37544
- } else config.emitter.emit("change", { accounts: accounts.map((x) => getAddress(x)) });
37545
- },
37546
- onChainChanged(chain) {
37547
- const chainId = Number(chain);
37548
- config.emitter.emit("change", { chainId });
37549
- },
37550
- async onConnect(connectInfo) {
37551
- const accounts = await this.getAccounts();
37552
- if (accounts.length === 0) return;
37553
- const chainId = Number(connectInfo.chainId);
37554
- config.emitter.emit("connect", {
37555
- accounts,
37556
- chainId
37557
- });
37558
- const provider = await this.getProvider();
37559
- if (provider) {
37560
- if (connect) {
37561
- provider.removeListener("connect", connect);
37562
- connect = void 0;
37563
- }
37564
- if (!accountsChanged) {
37565
- accountsChanged = this.onAccountsChanged.bind(this);
37566
- provider.on("accountsChanged", accountsChanged);
37567
- }
37568
- if (!chainChanged) {
37569
- chainChanged = this.onChainChanged.bind(this);
37570
- provider.on("chainChanged", chainChanged);
37571
- }
37572
- if (!disconnect) {
37573
- disconnect = this.onDisconnect.bind(this);
37574
- provider.on("disconnect", disconnect);
37575
- }
37576
- }
37577
- },
37578
- async onDisconnect(error) {
37579
- const provider = await this.getProvider();
37580
- if (error && error.code === 1013) {
37581
- if (provider && !!(await this.getAccounts()).length) return;
37582
- }
37583
- config.emitter.emit("disconnect");
37584
- if (provider) {
37585
- if (chainChanged) {
37586
- provider.removeListener("chainChanged", chainChanged);
37587
- chainChanged = void 0;
37588
- }
37589
- if (disconnect) {
37590
- provider.removeListener("disconnect", disconnect);
37591
- disconnect = void 0;
37592
- }
37593
- if (!connect) {
37594
- connect = this.onConnect.bind(this);
37595
- provider.on("connect", connect);
37596
- }
37597
- }
37598
- }
37599
- }));
37600
- }
37601
- const targetMap = {
37602
- coinbaseWallet: {
37603
- id: "coinbaseWallet",
37604
- name: "Coinbase Wallet",
37605
- provider(window) {
37606
- if (window?.coinbaseWalletExtension) return window.coinbaseWalletExtension;
37607
- return findProvider(window, "isCoinbaseWallet");
37608
- }
37609
- },
37610
- metaMask: {
37611
- id: "metaMask",
37612
- name: "MetaMask",
37613
- provider(window) {
37614
- return findProvider(window, (provider) => {
37615
- if (!provider.isMetaMask) return false;
37616
- if (provider.isBraveWallet && !provider._events && !provider._state) return false;
37617
- for (const flag of [
37618
- "isApexWallet",
37619
- "isAvalanche",
37620
- "isBitKeep",
37621
- "isBlockWallet",
37622
- "isKuCoinWallet",
37623
- "isMathWallet",
37624
- "isOkxWallet",
37625
- "isOKExWallet",
37626
- "isOneInchIOSWallet",
37627
- "isOneInchAndroidWallet",
37628
- "isOpera",
37629
- "isPhantom",
37630
- "isPortal",
37631
- "isRabby",
37632
- "isTokenPocket",
37633
- "isTokenary",
37634
- "isUniswapWallet",
37635
- "isZerion"
37636
- ]) if (provider[flag]) return false;
37637
- return true;
37638
- });
37639
- }
37640
- },
37641
- phantom: {
37642
- id: "phantom",
37643
- name: "Phantom",
37644
- provider(window) {
37645
- if (window?.phantom?.ethereum) return window.phantom?.ethereum;
37646
- return findProvider(window, "isPhantom");
37647
- }
37648
- }
37649
- };
37650
- function findProvider(window, select) {
37651
- function isProvider(provider) {
37652
- if (typeof select === "function") return select(provider);
37653
- if (typeof select === "string") return provider[select];
37654
- return true;
37655
- }
37656
- const ethereum = window.ethereum;
37657
- if (ethereum?.providers) return ethereum.providers.find((provider) => isProvider(provider));
37658
- if (ethereum && isProvider(ethereum)) return ethereum;
37659
- }
37660
- //#endregion
37661
- //#region ../../node_modules/.pnpm/mipd@0.0.7_typescript@5.9.3/node_modules/mipd/dist/esm/utils.js
37662
- /**
37663
- * Watches for EIP-1193 Providers to be announced.
37664
- */
37665
- function requestProviders(listener) {
37666
- if (typeof window === "undefined") return;
37667
- const handler = (event) => listener(event.detail);
37668
- window.addEventListener("eip6963:announceProvider", handler);
37669
- window.dispatchEvent(new CustomEvent("eip6963:requestProvider"));
37670
- return () => window.removeEventListener("eip6963:announceProvider", handler);
37671
- }
37672
- //#endregion
37673
- //#region ../../node_modules/.pnpm/mipd@0.0.7_typescript@5.9.3/node_modules/mipd/dist/esm/store.js
37674
- function createStore$1() {
37675
- const listeners = /* @__PURE__ */ new Set();
37676
- let providerDetails = [];
37677
- const request = () => requestProviders((providerDetail) => {
37678
- if (providerDetails.some(({ info }) => info.uuid === providerDetail.info.uuid)) return;
37679
- providerDetails = [...providerDetails, providerDetail];
37680
- listeners.forEach((listener) => listener(providerDetails, { added: [providerDetail] }));
37681
- });
37682
- let unwatch = request();
37683
- return {
37684
- _listeners() {
37685
- return listeners;
37686
- },
37687
- clear() {
37688
- listeners.forEach((listener) => listener([], { removed: [...providerDetails] }));
37689
- providerDetails = [];
37690
- },
37691
- destroy() {
37692
- this.clear();
37693
- listeners.clear();
37694
- unwatch?.();
37695
- },
37696
- findProvider({ rdns }) {
37697
- return providerDetails.find((providerDetail) => providerDetail.info.rdns === rdns);
37698
- },
37699
- getProviders() {
37700
- return providerDetails;
37701
- },
37702
- reset() {
37703
- this.clear();
37704
- unwatch?.();
37705
- unwatch = request();
37706
- },
37707
- subscribe(listener, { emitImmediately } = {}) {
37708
- listeners.add(listener);
37709
- if (emitImmediately) listener(providerDetails, { added: providerDetails });
37710
- return () => listeners.delete(listener);
37711
- }
37712
- };
37713
- }
37714
- //#endregion
37715
- //#region ../../node_modules/.pnpm/zustand@5.0.0_@types+react@19.2.14_react@19.2.4_use-sync-external-store@1.4.0_react@19.2.4_/node_modules/zustand/esm/middleware.mjs
37716
- const subscribeWithSelectorImpl = (fn) => (set, get, api) => {
37717
- const origSubscribe = api.subscribe;
37718
- api.subscribe = (selector, optListener, options) => {
37719
- let listener = selector;
37720
- if (optListener) {
37721
- const equalityFn = (options == null ? void 0 : options.equalityFn) || Object.is;
37722
- let currentSlice = selector(api.getState());
37723
- listener = (state) => {
37724
- const nextSlice = selector(state);
37725
- if (!equalityFn(currentSlice, nextSlice)) {
37726
- const previousSlice = currentSlice;
37727
- optListener(currentSlice = nextSlice, previousSlice);
37728
- }
37729
- };
37730
- if (options == null ? void 0 : options.fireImmediately) optListener(currentSlice, currentSlice);
37731
- }
37732
- return origSubscribe(listener);
37733
- };
37734
- return fn(set, get, api);
37735
- };
37736
- const subscribeWithSelector = subscribeWithSelectorImpl;
37737
- function createJSONStorage(getStorage, options) {
37738
- let storage;
37739
- try {
37740
- storage = getStorage();
37741
- } catch (e) {
37742
- return;
37743
- }
37744
- return {
37745
- getItem: (name) => {
37746
- var _a;
37747
- const parse = (str2) => {
37748
- if (str2 === null) return null;
37749
- return JSON.parse(str2, options == null ? void 0 : options.reviver);
37750
- };
37751
- const str = (_a = storage.getItem(name)) != null ? _a : null;
37752
- if (str instanceof Promise) return str.then(parse);
37753
- return parse(str);
37754
- },
37755
- setItem: (name, newValue) => storage.setItem(name, JSON.stringify(newValue, options == null ? void 0 : options.replacer)),
37756
- removeItem: (name) => storage.removeItem(name)
37757
- };
37758
- }
37759
- const toThenable = (fn) => (input) => {
37760
- try {
37761
- const result = fn(input);
37762
- if (result instanceof Promise) return result;
37763
- return {
37764
- then(onFulfilled) {
37765
- return toThenable(onFulfilled)(result);
37766
- },
37767
- catch(_onRejected) {
37768
- return this;
37769
- }
37770
- };
37771
- } catch (e) {
37772
- return {
37773
- then(_onFulfilled) {
37774
- return this;
37775
- },
37776
- catch(onRejected) {
37777
- return toThenable(onRejected)(e);
37778
- }
37779
- };
37780
- }
37781
- };
37782
- const persistImpl = (config, baseOptions) => (set, get, api) => {
37783
- let options = {
37784
- storage: createJSONStorage(() => localStorage),
37785
- partialize: (state) => state,
37786
- version: 0,
37787
- merge: (persistedState, currentState) => ({
37788
- ...currentState,
37789
- ...persistedState
37790
- }),
37791
- ...baseOptions
37792
- };
37793
- let hasHydrated = false;
37794
- const hydrationListeners = /* @__PURE__ */ new Set();
37795
- const finishHydrationListeners = /* @__PURE__ */ new Set();
37796
- let storage = options.storage;
37797
- if (!storage) return config((...args) => {
37798
- console.warn(`[zustand persist middleware] Unable to update item '${options.name}', the given storage is currently unavailable.`);
37799
- set(...args);
37800
- }, get, api);
37801
- const setItem = () => {
37802
- const state = options.partialize({ ...get() });
37803
- return storage.setItem(options.name, {
37804
- state,
37805
- version: options.version
37806
- });
37807
- };
37808
- const savedSetState = api.setState;
37809
- api.setState = (state, replace) => {
37810
- savedSetState(state, replace);
37811
- setItem();
37812
- };
37813
- const configResult = config((...args) => {
37814
- set(...args);
37815
- setItem();
37816
- }, get, api);
37817
- api.getInitialState = () => configResult;
37818
- let stateFromStorage;
37819
- const hydrate = () => {
37820
- var _a, _b;
37821
- if (!storage) return;
37822
- hasHydrated = false;
37823
- hydrationListeners.forEach((cb) => {
37824
- var _a2;
37825
- return cb((_a2 = get()) != null ? _a2 : configResult);
37826
- });
37827
- const postRehydrationCallback = ((_b = options.onRehydrateStorage) == null ? void 0 : _b.call(options, (_a = get()) != null ? _a : configResult)) || void 0;
37828
- return toThenable(storage.getItem.bind(storage))(options.name).then((deserializedStorageValue) => {
37829
- if (deserializedStorageValue) if (typeof deserializedStorageValue.version === "number" && deserializedStorageValue.version !== options.version) {
37830
- if (options.migrate) return [true, options.migrate(deserializedStorageValue.state, deserializedStorageValue.version)];
37831
- console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`);
37832
- } else return [false, deserializedStorageValue.state];
37833
- return [false, void 0];
37834
- }).then((migrationResult) => {
37835
- var _a2;
37836
- const [migrated, migratedState] = migrationResult;
37837
- stateFromStorage = options.merge(migratedState, (_a2 = get()) != null ? _a2 : configResult);
37838
- set(stateFromStorage, true);
37839
- if (migrated) return setItem();
37840
- }).then(() => {
37841
- postRehydrationCallback?.(stateFromStorage, void 0);
37842
- stateFromStorage = get();
37843
- hasHydrated = true;
37844
- finishHydrationListeners.forEach((cb) => cb(stateFromStorage));
37845
- }).catch((e) => {
37846
- postRehydrationCallback?.(void 0, e);
37847
- });
37848
- };
37849
- api.persist = {
37850
- setOptions: (newOptions) => {
37851
- options = {
37852
- ...options,
37853
- ...newOptions
37854
- };
37855
- if (newOptions.storage) storage = newOptions.storage;
37856
- },
37857
- clearStorage: () => {
37858
- storage?.removeItem(options.name);
37859
- },
37860
- getOptions: () => options,
37861
- rehydrate: () => hydrate(),
37862
- hasHydrated: () => hasHydrated,
37863
- onHydrate: (cb) => {
37864
- hydrationListeners.add(cb);
37865
- return () => {
37866
- hydrationListeners.delete(cb);
37867
- };
37868
- },
37869
- onFinishHydration: (cb) => {
37870
- finishHydrationListeners.add(cb);
37871
- return () => {
37872
- finishHydrationListeners.delete(cb);
37873
- };
37874
- }
37875
- };
37876
- if (!options.skipHydration) hydrate();
37877
- return stateFromStorage || configResult;
37878
- };
37879
- const persist = persistImpl;
37880
- //#endregion
37881
- //#region ../../node_modules/.pnpm/zustand@5.0.0_@types+react@19.2.14_react@19.2.4_use-sync-external-store@1.4.0_react@19.2.4_/node_modules/zustand/esm/vanilla.mjs
37882
- const createStoreImpl = (createState) => {
37883
- let state;
37884
- const listeners = /* @__PURE__ */ new Set();
37885
- const setState = (partial, replace) => {
37886
- const nextState = typeof partial === "function" ? partial(state) : partial;
37887
- if (!Object.is(nextState, state)) {
37888
- const previousState = state;
37889
- state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
37890
- listeners.forEach((listener) => listener(state, previousState));
37891
- }
37892
- };
37893
- const getState = () => state;
37894
- const getInitialState = () => initialState;
37895
- const subscribe = (listener) => {
37896
- listeners.add(listener);
37897
- return () => listeners.delete(listener);
37898
- };
37899
- const api = {
37900
- setState,
37901
- getState,
37902
- getInitialState,
37903
- subscribe
37904
- };
37905
- const initialState = state = createState(setState, getState, api);
37906
- return api;
37907
- };
37908
- const createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
37909
- //#endregion
37910
- //#region ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js
37911
- var require_eventemitter3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37912
- var has = Object.prototype.hasOwnProperty, prefix = "~";
37913
- /**
37914
- * Constructor to create a storage for our `EE` objects.
37915
- * An `Events` instance is a plain object whose properties are event names.
37916
- *
37917
- * @constructor
37918
- * @private
37919
- */
37920
- function Events() {}
37921
- if (Object.create) {
37922
- Events.prototype = Object.create(null);
37923
- if (!new Events().__proto__) prefix = false;
37924
- }
37925
- /**
37926
- * Representation of a single event listener.
37927
- *
37928
- * @param {Function} fn The listener function.
37929
- * @param {*} context The context to invoke the listener with.
37930
- * @param {Boolean} [once=false] Specify if the listener is a one-time listener.
37931
- * @constructor
37932
- * @private
37933
- */
37934
- function EE(fn, context, once) {
37935
- this.fn = fn;
37936
- this.context = context;
37937
- this.once = once || false;
37938
- }
37939
- /**
37940
- * Add a listener for a given event.
37941
- *
37942
- * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.
37943
- * @param {(String|Symbol)} event The event name.
37944
- * @param {Function} fn The listener function.
37945
- * @param {*} context The context to invoke the listener with.
37946
- * @param {Boolean} once Specify if the listener is a one-time listener.
37947
- * @returns {EventEmitter}
37948
- * @private
37949
- */
37950
- function addListener(emitter, event, fn, context, once) {
37951
- if (typeof fn !== "function") throw new TypeError("The listener must be a function");
37952
- var listener = new EE(fn, context || emitter, once), evt = prefix ? prefix + event : event;
37953
- if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;
37954
- else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);
37955
- else emitter._events[evt] = [emitter._events[evt], listener];
37956
- return emitter;
37957
- }
37958
- /**
37959
- * Clear event by name.
37960
- *
37961
- * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.
37962
- * @param {(String|Symbol)} evt The Event name.
37963
- * @private
37964
- */
37965
- function clearEvent(emitter, evt) {
37966
- if (--emitter._eventsCount === 0) emitter._events = new Events();
37967
- else delete emitter._events[evt];
37968
- }
37969
- /**
37970
- * Minimal `EventEmitter` interface that is molded against the Node.js
37971
- * `EventEmitter` interface.
37972
- *
37973
- * @constructor
37974
- * @public
37975
- */
37976
- function EventEmitter() {
37977
- this._events = new Events();
37978
- this._eventsCount = 0;
37979
- }
37980
- /**
37981
- * Return an array listing the events for which the emitter has registered
37982
- * listeners.
37983
- *
37984
- * @returns {Array}
37985
- * @public
37986
- */
37987
- EventEmitter.prototype.eventNames = function eventNames() {
37988
- var names = [], events, name;
37989
- if (this._eventsCount === 0) return names;
37990
- for (name in events = this._events) if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);
37991
- if (Object.getOwnPropertySymbols) return names.concat(Object.getOwnPropertySymbols(events));
37992
- return names;
37993
- };
37994
- /**
37995
- * Return the listeners registered for a given event.
37996
- *
37997
- * @param {(String|Symbol)} event The event name.
37998
- * @returns {Array} The registered listeners.
37999
- * @public
38000
- */
38001
- EventEmitter.prototype.listeners = function listeners(event) {
38002
- var evt = prefix ? prefix + event : event, handlers = this._events[evt];
38003
- if (!handlers) return [];
38004
- if (handlers.fn) return [handlers.fn];
38005
- for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) ee[i] = handlers[i].fn;
38006
- return ee;
38007
- };
38008
- /**
38009
- * Return the number of listeners listening to a given event.
38010
- *
38011
- * @param {(String|Symbol)} event The event name.
38012
- * @returns {Number} The number of listeners.
38013
- * @public
38014
- */
38015
- EventEmitter.prototype.listenerCount = function listenerCount(event) {
38016
- var evt = prefix ? prefix + event : event, listeners = this._events[evt];
38017
- if (!listeners) return 0;
38018
- if (listeners.fn) return 1;
38019
- return listeners.length;
38020
- };
38021
- /**
38022
- * Calls each of the listeners registered for a given event.
38023
- *
38024
- * @param {(String|Symbol)} event The event name.
38025
- * @returns {Boolean} `true` if the event had listeners, else `false`.
38026
- * @public
38027
- */
38028
- EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
38029
- var evt = prefix ? prefix + event : event;
38030
- if (!this._events[evt]) return false;
38031
- var listeners = this._events[evt], len = arguments.length, args, i;
38032
- if (listeners.fn) {
38033
- if (listeners.once) this.removeListener(event, listeners.fn, void 0, true);
38034
- switch (len) {
38035
- case 1: return listeners.fn.call(listeners.context), true;
38036
- case 2: return listeners.fn.call(listeners.context, a1), true;
38037
- case 3: return listeners.fn.call(listeners.context, a1, a2), true;
38038
- case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;
38039
- case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
38040
- case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
38041
- }
38042
- for (i = 1, args = new Array(len - 1); i < len; i++) args[i - 1] = arguments[i];
38043
- listeners.fn.apply(listeners.context, args);
38044
- } else {
38045
- var length = listeners.length, j;
38046
- for (i = 0; i < length; i++) {
38047
- if (listeners[i].once) this.removeListener(event, listeners[i].fn, void 0, true);
38048
- switch (len) {
38049
- case 1:
38050
- listeners[i].fn.call(listeners[i].context);
38051
- break;
38052
- case 2:
38053
- listeners[i].fn.call(listeners[i].context, a1);
38054
- break;
38055
- case 3:
38056
- listeners[i].fn.call(listeners[i].context, a1, a2);
38057
- break;
38058
- case 4:
38059
- listeners[i].fn.call(listeners[i].context, a1, a2, a3);
38060
- break;
38061
- default:
38062
- if (!args) for (j = 1, args = new Array(len - 1); j < len; j++) args[j - 1] = arguments[j];
38063
- listeners[i].fn.apply(listeners[i].context, args);
38064
- }
38065
- }
38066
- }
38067
- return true;
38068
- };
38069
- /**
38070
- * Add a listener for a given event.
38071
- *
38072
- * @param {(String|Symbol)} event The event name.
38073
- * @param {Function} fn The listener function.
38074
- * @param {*} [context=this] The context to invoke the listener with.
38075
- * @returns {EventEmitter} `this`.
38076
- * @public
38077
- */
38078
- EventEmitter.prototype.on = function on(event, fn, context) {
38079
- return addListener(this, event, fn, context, false);
38080
- };
38081
- /**
38082
- * Add a one-time listener for a given event.
38083
- *
38084
- * @param {(String|Symbol)} event The event name.
38085
- * @param {Function} fn The listener function.
38086
- * @param {*} [context=this] The context to invoke the listener with.
38087
- * @returns {EventEmitter} `this`.
38088
- * @public
38089
- */
38090
- EventEmitter.prototype.once = function once(event, fn, context) {
38091
- return addListener(this, event, fn, context, true);
38092
- };
38093
- /**
38094
- * Remove the listeners of a given event.
38095
- *
38096
- * @param {(String|Symbol)} event The event name.
38097
- * @param {Function} fn Only remove the listeners that match this function.
38098
- * @param {*} context Only remove the listeners that have this context.
38099
- * @param {Boolean} once Only remove one-time listeners.
38100
- * @returns {EventEmitter} `this`.
38101
- * @public
38102
- */
38103
- EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {
38104
- var evt = prefix ? prefix + event : event;
38105
- if (!this._events[evt]) return this;
38106
- if (!fn) {
38107
- clearEvent(this, evt);
38108
- return this;
38109
- }
38110
- var listeners = this._events[evt];
38111
- if (listeners.fn) {
38112
- if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) clearEvent(this, evt);
38113
- } else {
38114
- for (var i = 0, events = [], length = listeners.length; i < length; i++) if (listeners[i].fn !== fn || once && !listeners[i].once || context && listeners[i].context !== context) events.push(listeners[i]);
38115
- if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;
38116
- else clearEvent(this, evt);
38117
- }
38118
- return this;
38119
- };
38120
- /**
38121
- * Remove all listeners, or those of the specified event.
38122
- *
38123
- * @param {(String|Symbol)} [event] The event name.
38124
- * @returns {EventEmitter} `this`.
38125
- * @public
38126
- */
38127
- EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {
38128
- var evt;
38129
- if (event) {
38130
- evt = prefix ? prefix + event : event;
38131
- if (this._events[evt]) clearEvent(this, evt);
38132
- } else {
38133
- this._events = new Events();
38134
- this._eventsCount = 0;
38135
- }
38136
- return this;
38137
- };
38138
- EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
38139
- EventEmitter.prototype.addListener = EventEmitter.prototype.on;
38140
- EventEmitter.prefixed = prefix;
38141
- EventEmitter.EventEmitter = EventEmitter;
38142
- if ("undefined" !== typeof module) module.exports = EventEmitter;
38143
- }));
38144
- //#endregion
38145
- //#region ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.mjs
38146
- var import_eventemitter3 = /* @__PURE__ */ __toESM(require_eventemitter3(), 1);
38147
- //#endregion
38148
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/createEmitter.js
38149
- var Emitter = class {
38150
- constructor(uid) {
38151
- Object.defineProperty(this, "uid", {
38152
- enumerable: true,
38153
- configurable: true,
38154
- writable: true,
38155
- value: uid
38156
- });
38157
- Object.defineProperty(this, "_emitter", {
38158
- enumerable: true,
38159
- configurable: true,
38160
- writable: true,
38161
- value: new import_eventemitter3.default()
38162
- });
38163
- }
38164
- on(eventName, fn) {
38165
- this._emitter.on(eventName, fn);
38166
- }
38167
- once(eventName, fn) {
38168
- this._emitter.once(eventName, fn);
38169
- }
38170
- off(eventName, fn) {
38171
- this._emitter.off(eventName, fn);
38172
- }
38173
- emit(eventName, ...params) {
38174
- const data = params[0];
38175
- this._emitter.emit(eventName, {
38176
- uid: this.uid,
38177
- ...data
38178
- });
38179
- }
38180
- listenerCount(eventName) {
38181
- return this._emitter.listenerCount(eventName);
38182
- }
38183
- };
38184
- function createEmitter(uid) {
38185
- return new Emitter(uid);
38186
- }
38187
- //#endregion
38188
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/utils/deserialize.js
38189
- function deserialize(value, reviver) {
38190
- return JSON.parse(value, (key, value_) => {
38191
- let value = value_;
38192
- if (value?.__type === "bigint") value = BigInt(value.value);
38193
- if (value?.__type === "Map") value = new Map(value.value);
38194
- return reviver?.(key, value) ?? value;
38195
- });
38196
- }
38197
- //#endregion
38198
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/utils/serialize.js
38199
- /**
38200
- * Get the reference key for the circular value
38201
- *
38202
- * @param keys the keys to build the reference key from
38203
- * @param cutoff the maximum number of keys to include
38204
- * @returns the reference key
38205
- */
38206
- function getReferenceKey(keys, cutoff) {
38207
- return keys.slice(0, cutoff).join(".") || ".";
38208
- }
38209
- /**
38210
- * Faster `Array.prototype.indexOf` implementation build for slicing / splicing
38211
- *
38212
- * @param array the array to match the value in
38213
- * @param value the value to match
38214
- * @returns the matching index, or -1
38215
- */
38216
- function getCutoff(array, value) {
38217
- const { length } = array;
38218
- for (let index = 0; index < length; ++index) if (array[index] === value) return index + 1;
38219
- return 0;
38220
- }
38221
- /**
38222
- * Create a replacer method that handles circular values
38223
- *
38224
- * @param [replacer] a custom replacer to use for non-circular values
38225
- * @param [circularReplacer] a custom replacer to use for circular methods
38226
- * @returns the value to stringify
38227
- */
38228
- function createReplacer(replacer, circularReplacer) {
38229
- const hasReplacer = typeof replacer === "function";
38230
- const hasCircularReplacer = typeof circularReplacer === "function";
38231
- const cache = [];
38232
- const keys = [];
38233
- return function replace(key, value) {
38234
- if (typeof value === "object") if (cache.length) {
38235
- const thisCutoff = getCutoff(cache, this);
38236
- if (thisCutoff === 0) cache[cache.length] = this;
38237
- else {
38238
- cache.splice(thisCutoff);
38239
- keys.splice(thisCutoff);
38240
- }
38241
- keys[keys.length] = key;
38242
- const valueCutoff = getCutoff(cache, value);
38243
- if (valueCutoff !== 0) return hasCircularReplacer ? circularReplacer.call(this, key, value, getReferenceKey(keys, valueCutoff)) : `[ref=${getReferenceKey(keys, valueCutoff)}]`;
38244
- } else {
38245
- cache[0] = value;
38246
- keys[0] = key;
38247
- }
38248
- return hasReplacer ? replacer.call(this, key, value) : value;
38249
- };
38250
- }
38251
- /**
38252
- * Stringifier that handles circular values
38253
- *
38254
- * Forked from https://github.com/planttheidea/fast-stringify
38255
- *
38256
- * @param value to stringify
38257
- * @param [replacer] a custom replacer function for handling standard values
38258
- * @param [indent] the number of spaces to indent the output by
38259
- * @param [circularReplacer] a custom replacer function for handling circular values
38260
- * @returns the stringified output
38261
- */
38262
- function serialize(value, replacer, indent, circularReplacer) {
38263
- return JSON.stringify(value, createReplacer((key, value_) => {
38264
- let value = value_;
38265
- if (typeof value === "bigint") value = {
38266
- __type: "bigint",
38267
- value: value_.toString()
38268
- };
38269
- if (value instanceof Map) value = {
38270
- __type: "Map",
38271
- value: Array.from(value_.entries())
38272
- };
38273
- return replacer?.(key, value) ?? value;
38274
- }, circularReplacer), indent ?? void 0);
38275
- }
38276
- //#endregion
38277
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/createStorage.js
38278
- function createStorage(parameters) {
38279
- const { deserialize: deserialize$1 = deserialize, key: prefix = "wagmi", serialize: serialize$1 = serialize, storage = noopStorage } = parameters;
38280
- function unwrap(value) {
38281
- if (value instanceof Promise) return value.then((x) => x).catch(() => null);
38282
- return value;
38283
- }
38284
- return {
38285
- ...storage,
38286
- key: prefix,
38287
- async getItem(key, defaultValue) {
38288
- const unwrapped = await unwrap(storage.getItem(`${prefix}.${key}`));
38289
- if (unwrapped) return deserialize$1(unwrapped) ?? null;
38290
- return defaultValue ?? null;
38291
- },
38292
- async setItem(key, value) {
38293
- const storageKey = `${prefix}.${key}`;
38294
- if (value === null) await unwrap(storage.removeItem(storageKey));
38295
- else await unwrap(storage.setItem(storageKey, serialize$1(value)));
38296
- },
38297
- async removeItem(key) {
38298
- await unwrap(storage.removeItem(`${prefix}.${key}`));
38299
- }
38300
- };
38301
- }
38302
- const noopStorage = {
38303
- getItem: () => null,
38304
- setItem: () => {},
38305
- removeItem: () => {}
38306
- };
38307
- function getDefaultStorage() {
38308
- const storage = (() => {
38309
- if (typeof window !== "undefined" && window.localStorage) return window.localStorage;
38310
- return noopStorage;
38311
- })();
38312
- return {
38313
- getItem(key) {
38314
- return storage.getItem(key);
38315
- },
38316
- removeItem(key) {
38317
- storage.removeItem(key);
38318
- },
38319
- setItem(key, value) {
38320
- try {
38321
- storage.setItem(key, value);
38322
- } catch {}
38323
- }
38324
- };
38325
- }
38326
- //#endregion
38327
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/utils/uid.js
38328
- const size = 256;
38329
- let index = size;
38330
- let buffer;
38331
- function uid(length = 11) {
38332
- if (!buffer || index + length > size * 2) {
38333
- buffer = "";
38334
- index = 0;
38335
- for (let i = 0; i < size; i++) buffer += (256 + Math.random() * 256 | 0).toString(16).substring(1);
38336
- }
38337
- return buffer.substring(index, index++ + length);
38338
- }
38339
- //#endregion
38340
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/createConfig.js
38341
- function createConfig(parameters) {
38342
- const { multiInjectedProviderDiscovery = true, storage = createStorage({ storage: getDefaultStorage() }), syncConnectedChain = true, ssr = false, ...rest } = parameters;
38343
- const mipd = typeof window !== "undefined" && multiInjectedProviderDiscovery ? createStore$1() : void 0;
38344
- const chains = createStore(() => rest.chains);
38345
- const connectors = createStore(() => {
38346
- const collection = [];
38347
- const rdnsSet = /* @__PURE__ */ new Set();
38348
- for (const connectorFns of rest.connectors ?? []) {
38349
- const connector = setup(connectorFns);
38350
- collection.push(connector);
38351
- if (!ssr && connector.rdns) {
38352
- const rdnsValues = typeof connector.rdns === "string" ? [connector.rdns] : connector.rdns;
38353
- for (const rdns of rdnsValues) rdnsSet.add(rdns);
38354
- }
38355
- }
38356
- if (!ssr && mipd) {
38357
- const providers = mipd.getProviders();
38358
- for (const provider of providers) {
38359
- if (rdnsSet.has(provider.info.rdns)) continue;
38360
- collection.push(setup(providerDetailToConnector(provider)));
38361
- }
38362
- }
38363
- return collection;
38364
- });
38365
- function setup(connectorFn) {
38366
- const emitter = createEmitter(uid());
38367
- const connector = {
38368
- ...connectorFn({
38369
- emitter,
38370
- chains: chains.getState(),
38371
- storage,
38372
- transports: rest.transports
38373
- }),
38374
- emitter,
38375
- uid: emitter.uid
38376
- };
38377
- emitter.on("connect", connect);
38378
- connector.setup?.();
38379
- return connector;
38380
- }
38381
- function providerDetailToConnector(providerDetail) {
38382
- const { info } = providerDetail;
38383
- const provider = providerDetail.provider;
38384
- return injected({ target: {
38385
- ...info,
38386
- id: info.rdns,
38387
- provider
38388
- } });
38389
- }
38390
- const clients = /* @__PURE__ */ new Map();
38391
- function getClient(config = {}) {
38392
- const chainId = config.chainId ?? store.getState().chainId;
38393
- const chain = chains.getState().find((x) => x.id === chainId);
38394
- if (config.chainId && !chain) throw new ChainNotConfiguredError();
38395
- {
38396
- const client = clients.get(store.getState().chainId);
38397
- if (client && !chain) return client;
38398
- if (!chain) throw new ChainNotConfiguredError();
38399
- }
38400
- {
38401
- const client = clients.get(chainId);
38402
- if (client) return client;
38403
- }
38404
- let client;
38405
- if (rest.client) client = rest.client({ chain });
38406
- else {
38407
- const chainId = chain.id;
38408
- const chainIds = chains.getState().map((x) => x.id);
38409
- const properties = {};
38410
- const entries = Object.entries(rest);
38411
- for (const [key, value] of entries) {
38412
- if (key === "chains" || key === "client" || key === "connectors" || key === "transports") continue;
38413
- if (typeof value === "object") if (chainId in value) properties[key] = value[chainId];
38414
- else {
38415
- if (chainIds.some((x) => x in value)) continue;
38416
- properties[key] = value;
38417
- }
38418
- else properties[key] = value;
38419
- }
38420
- client = createClient({
38421
- ...properties,
38422
- chain,
38423
- batch: properties.batch ?? { multicall: true },
38424
- transport: (parameters) => rest.transports[chainId]({
38425
- ...parameters,
38426
- connectors
38427
- })
38428
- });
38429
- }
38430
- clients.set(chainId, client);
38431
- return client;
38432
- }
38433
- function getInitialState() {
38434
- return {
38435
- chainId: chains.getState()[0].id,
38436
- connections: /* @__PURE__ */ new Map(),
38437
- current: null,
38438
- status: "disconnected"
38439
- };
38440
- }
38441
- let currentVersion;
38442
- const prefix = "0.0.0-canary-";
38443
- if ("3.4.0".startsWith(prefix)) currentVersion = Number.parseInt(version$1.replace(prefix, ""), 10);
38444
- else currentVersion = Number.parseInt("3.4.0".split(".")[0] ?? "0", 10);
38445
- const store = createStore(subscribeWithSelector(storage ? persist(getInitialState, {
38446
- migrate(persistedState, version) {
38447
- if (version === currentVersion) return persistedState;
38448
- const initialState = getInitialState();
38449
- const chainId = validatePersistedChainId(persistedState, initialState.chainId);
38450
- return {
38451
- ...initialState,
38452
- chainId
38453
- };
38454
- },
38455
- name: "store",
38456
- partialize(state) {
38457
- return {
38458
- connections: {
38459
- __type: "Map",
38460
- value: Array.from(state.connections.entries()).map(([key, connection]) => {
38461
- const { id, name, type, uid } = connection.connector;
38462
- const connector = {
38463
- id,
38464
- name,
38465
- type,
38466
- uid
38467
- };
38468
- return [key, {
38469
- ...connection,
38470
- connector
38471
- }];
38472
- })
38473
- },
38474
- chainId: state.chainId,
38475
- current: state.current
38476
- };
38477
- },
38478
- merge(persistedState, currentState) {
38479
- if (typeof persistedState === "object" && persistedState && "status" in persistedState) delete persistedState.status;
38480
- const chainId = validatePersistedChainId(persistedState, currentState.chainId);
38481
- return {
38482
- ...currentState,
38483
- ...persistedState,
38484
- chainId
38485
- };
38486
- },
38487
- skipHydration: ssr,
38488
- storage,
38489
- version: currentVersion
38490
- }) : getInitialState));
38491
- store.setState(getInitialState());
38492
- function validatePersistedChainId(persistedState, defaultChainId) {
38493
- return persistedState && typeof persistedState === "object" && "chainId" in persistedState && typeof persistedState.chainId === "number" && chains.getState().some((x) => x.id === persistedState.chainId) ? persistedState.chainId : defaultChainId;
38494
- }
38495
- if (syncConnectedChain) store.subscribe(({ connections, current }) => current ? connections.get(current)?.chainId : void 0, (chainId) => {
38496
- if (!chains.getState().some((x) => x.id === chainId)) return;
38497
- return store.setState((x) => ({
38498
- ...x,
38499
- chainId: chainId ?? x.chainId
38500
- }));
38501
- });
38502
- mipd?.subscribe((providerDetails) => {
38503
- const connectorIdSet = /* @__PURE__ */ new Set();
38504
- const connectorRdnsSet = /* @__PURE__ */ new Set();
38505
- for (const connector of connectors.getState()) {
38506
- connectorIdSet.add(connector.id);
38507
- if (connector.rdns) {
38508
- const rdnsValues = typeof connector.rdns === "string" ? [connector.rdns] : connector.rdns;
38509
- for (const rdns of rdnsValues) connectorRdnsSet.add(rdns);
38510
- }
38511
- }
38512
- const newConnectors = [];
38513
- for (const providerDetail of providerDetails) {
38514
- if (connectorRdnsSet.has(providerDetail.info.rdns)) continue;
38515
- const connector = setup(providerDetailToConnector(providerDetail));
38516
- if (connectorIdSet.has(connector.id)) continue;
38517
- newConnectors.push(connector);
38518
- }
38519
- if (storage && !store.persist.hasHydrated()) return;
38520
- connectors.setState((x) => [...x, ...newConnectors], true);
38521
- });
38522
- function change(data) {
38523
- store.setState((x) => {
38524
- const connection = x.connections.get(data.uid);
38525
- if (!connection) return x;
38526
- return {
38527
- ...x,
38528
- connections: new Map(x.connections).set(data.uid, {
38529
- accounts: data.accounts ?? connection.accounts,
38530
- chainId: data.chainId ?? connection.chainId,
38531
- connector: connection.connector
38532
- })
38533
- };
38534
- });
38535
- }
38536
- function connect(data) {
38537
- if (store.getState().status === "connecting" || store.getState().status === "reconnecting") return;
38538
- store.setState((x) => {
38539
- const connector = connectors.getState().find((x) => x.uid === data.uid);
38540
- if (!connector) return x;
38541
- if (connector.emitter.listenerCount("connect")) connector.emitter.off("connect", change);
38542
- if (!connector.emitter.listenerCount("change")) connector.emitter.on("change", change);
38543
- if (!connector.emitter.listenerCount("disconnect")) connector.emitter.on("disconnect", disconnect);
38544
- return {
38545
- ...x,
38546
- connections: new Map(x.connections).set(data.uid, {
38547
- accounts: data.accounts,
38548
- chainId: data.chainId,
38549
- connector
38550
- }),
38551
- current: data.uid,
38552
- status: "connected"
38553
- };
38554
- });
38555
- }
38556
- function disconnect(data) {
38557
- store.setState((x) => {
38558
- const connection = x.connections.get(data.uid);
38559
- if (connection) {
38560
- const connector = connection.connector;
38561
- if (connector.emitter.listenerCount("change")) connection.connector.emitter.off("change", change);
38562
- if (connector.emitter.listenerCount("disconnect")) connection.connector.emitter.off("disconnect", disconnect);
38563
- if (!connector.emitter.listenerCount("connect")) connection.connector.emitter.on("connect", connect);
38564
- }
38565
- x.connections.delete(data.uid);
38566
- if (x.connections.size === 0) return {
38567
- ...x,
38568
- connections: /* @__PURE__ */ new Map(),
38569
- current: null,
38570
- status: "disconnected"
38571
- };
38572
- const nextConnection = x.connections.values().next().value;
38573
- return {
38574
- ...x,
38575
- connections: new Map(x.connections),
38576
- current: nextConnection.connector.uid
38577
- };
38578
- });
38579
- }
38580
- return {
38581
- get chains() {
38582
- return chains.getState();
38583
- },
38584
- get connectors() {
38585
- return connectors.getState();
38586
- },
38587
- storage,
38588
- getClient,
38589
- get state() {
38590
- return store.getState();
38591
- },
38592
- setState(value) {
38593
- let newState;
38594
- if (typeof value === "function") newState = value(store.getState());
38595
- else newState = value;
38596
- const initialState = getInitialState();
38597
- if (typeof newState !== "object") newState = initialState;
38598
- if (Object.keys(initialState).some((x) => !(x in newState))) newState = initialState;
38599
- store.setState(newState, true);
38600
- },
38601
- subscribe(selector, listener, options) {
38602
- return store.subscribe(selector, listener, options ? {
38603
- ...options,
38604
- fireImmediately: options.emitImmediately
38605
- } : void 0);
38606
- },
38607
- _internal: {
38608
- mipd,
38609
- async revalidate() {
38610
- const state = store.getState();
38611
- const connections = state.connections;
38612
- let current = state.current;
38613
- for (const [, connection] of connections) {
38614
- const connector = connection.connector;
38615
- if (connector.isAuthorized ? await connector.isAuthorized() : false) continue;
38616
- connections.delete(connector.uid);
38617
- if (current === connector.uid) current = null;
38618
- }
38619
- store.setState((x) => ({
38620
- ...x,
38621
- connections,
38622
- current
38623
- }));
38624
- },
38625
- store,
38626
- ssr: Boolean(ssr),
38627
- syncConnectedChain,
38628
- transports: rest.transports,
38629
- chains: {
38630
- setState(value) {
38631
- const nextChains = typeof value === "function" ? value(chains.getState()) : value;
38632
- if (nextChains.length === 0) return;
38633
- return chains.setState(nextChains, true);
38634
- },
38635
- subscribe(listener) {
38636
- return chains.subscribe(listener);
38637
- }
38638
- },
38639
- connectors: {
38640
- providerDetailToConnector,
38641
- setup,
38642
- setState(value) {
38643
- return connectors.setState(typeof value === "function" ? value(connectors.getState()) : value, true);
38644
- },
38645
- subscribe(listener) {
38646
- return connectors.subscribe(listener);
38647
- }
38648
- },
38649
- events: {
38650
- change,
38651
- connect,
38652
- disconnect
38653
- }
38654
- }
38655
- };
38656
- }
38657
- //#endregion
38658
- //#region ../../node_modules/.pnpm/wagmi@3.5.0_@coinbase+wallet-sdk@4.3.6_@types+react@19.2.14_bufferutil@4.1.0_react@19.2_7b2c839819ebd070de5d8b72355d47f8/node_modules/wagmi/dist/esm/context.js
38659
- const WagmiContext = createContext(void 0);
38660
- //#endregion
38661
- //#region ../../node_modules/.pnpm/wagmi@3.5.0_@coinbase+wallet-sdk@4.3.6_@types+react@19.2.14_bufferutil@4.1.0_react@19.2_7b2c839819ebd070de5d8b72355d47f8/node_modules/wagmi/dist/esm/version.js
38662
- const version = "3.5.0";
38663
- //#endregion
38664
- //#region ../../node_modules/.pnpm/wagmi@3.5.0_@coinbase+wallet-sdk@4.3.6_@types+react@19.2.14_bufferutil@4.1.0_react@19.2_7b2c839819ebd070de5d8b72355d47f8/node_modules/wagmi/dist/esm/utils/getVersion.js
38665
- const getVersion = () => `wagmi@${version}`;
38666
- //#endregion
38667
- //#region ../../node_modules/.pnpm/wagmi@3.5.0_@coinbase+wallet-sdk@4.3.6_@types+react@19.2.14_bufferutil@4.1.0_react@19.2_7b2c839819ebd070de5d8b72355d47f8/node_modules/wagmi/dist/esm/errors/base.js
38668
- var BaseError = class extends BaseError$1 {
38669
- constructor() {
38670
- super(...arguments);
38671
- Object.defineProperty(this, "name", {
38672
- enumerable: true,
38673
- configurable: true,
38674
- writable: true,
38675
- value: "WagmiError"
38676
- });
38677
- }
38678
- get docsBaseUrl() {
38679
- return "https://wagmi.sh/react";
38680
- }
38681
- get version() {
38682
- return getVersion();
38683
- }
38684
- };
38685
- //#endregion
38686
- //#region ../../node_modules/.pnpm/wagmi@3.5.0_@coinbase+wallet-sdk@4.3.6_@types+react@19.2.14_bufferutil@4.1.0_react@19.2_7b2c839819ebd070de5d8b72355d47f8/node_modules/wagmi/dist/esm/errors/context.js
38687
- var WagmiProviderNotFoundError = class extends BaseError {
38688
- constructor() {
38689
- super("`useConfig` must be used within `WagmiProvider`.", { docsPath: "/api/WagmiProvider" });
38690
- Object.defineProperty(this, "name", {
38691
- enumerable: true,
38692
- configurable: true,
38693
- writable: true,
38694
- value: "WagmiProviderNotFoundError"
38695
- });
38696
- }
38697
- };
38698
- //#endregion
38699
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/query/utils.js
38700
- function hashFn(queryKey) {
38701
- return JSON.stringify(queryKey, (_, value) => {
38702
- if (isPlainObject(value)) return Object.keys(value).sort().reduce((result, key) => {
38703
- result[key] = value[key];
38704
- return result;
38705
- }, {});
38706
- if (typeof value === "bigint") return value.toString();
38707
- return value;
38708
- });
38709
- }
38710
- function isPlainObject(value) {
38711
- if (!hasObjectPrototype(value)) return false;
38712
- const ctor = value.constructor;
38713
- if (typeof ctor === "undefined") return true;
38714
- const prot = ctor.prototype;
38715
- if (!hasObjectPrototype(prot)) return false;
38716
- if (!prot.hasOwnProperty("isPrototypeOf")) return false;
38717
- return true;
38718
- }
38719
- function hasObjectPrototype(o) {
38720
- return Object.prototype.toString.call(o) === "[object Object]";
38721
- }
38722
- function filterQueryOptions(options) {
38723
- const { _defaulted, behavior, gcTime, initialData, initialDataUpdatedAt, maxPages, meta, networkMode, queryFn, queryHash, queryKey, queryKeyHashFn, retry, retryDelay, structuralSharing, getPreviousPageParam, getNextPageParam, initialPageParam, _optimisticResults, enabled, notifyOnChangeProps, placeholderData, refetchInterval, refetchIntervalInBackground, refetchOnMount, refetchOnReconnect, refetchOnWindowFocus, retryOnMount, select, staleTime, suspense, throwOnError, abi, config, connector, query, watch, ...rest } = options;
38724
- if (connector) return {
38725
- connectorUid: connector?.uid,
38726
- ...rest
38727
- };
38728
- return rest;
38729
- }
38730
- //#endregion
38731
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/query/getEnsAvatar.js
38732
- function getEnsAvatarQueryOptions(config, options = {}) {
38733
- return {
38734
- ...options.query,
38735
- enabled: Boolean(options.name && (options.query?.enabled ?? true)),
38736
- queryFn: async (context) => {
38737
- const [, { scopeKey: _, ...parameters }] = context.queryKey;
38738
- if (!parameters.name) throw new Error("name is required");
38739
- return getEnsAvatar(config, {
38740
- ...parameters,
38741
- name: parameters.name
38742
- });
38743
- },
38744
- queryKey: getEnsAvatarQueryKey(options)
38745
- };
38746
- }
38747
- function getEnsAvatarQueryKey(options = {}) {
38748
- return ["ensAvatar", filterQueryOptions(options)];
38749
- }
38750
- //#endregion
38751
- //#region ../../node_modules/.pnpm/@wagmi+core@3.4.0_@tanstack+query-core@5.90.20_@types+react@19.2.14_ox@0.14.7_typescrip_89f0ab058f476ed68d270a581b8691ce/node_modules/@wagmi/core/dist/esm/query/getEnsName.js
38752
- function getEnsNameQueryOptions(config, options = {}) {
38753
- return {
38754
- ...options.query,
38755
- enabled: Boolean(options.address && (options.query?.enabled ?? true)),
38756
- queryFn: async (context) => {
38757
- const [, { scopeKey: _, ...parameters }] = context.queryKey;
38758
- if (!parameters.address) throw new Error("address is required");
38759
- return getEnsName(config, {
38760
- ...parameters,
38761
- address: parameters.address
38762
- });
38763
- },
38764
- queryKey: getEnsNameQueryKey(options)
38765
- };
38766
- }
38767
- function getEnsNameQueryKey(options = {}) {
38768
- return ["ensName", filterQueryOptions(options)];
38769
- }
38770
- //#endregion
38771
- //#region ../../node_modules/.pnpm/wagmi@3.5.0_@coinbase+wallet-sdk@4.3.6_@types+react@19.2.14_bufferutil@4.1.0_react@19.2_7b2c839819ebd070de5d8b72355d47f8/node_modules/wagmi/dist/esm/utils/query.js
38772
- function useQuery(parameters) {
38773
- const result = useQuery$1({
38774
- ...parameters,
38775
- queryKeyHashFn: hashFn
38776
- });
38777
- result.queryKey = parameters.queryKey;
38778
- return result;
38779
- }
38780
- //#endregion
38781
- //#region ../../node_modules/.pnpm/wagmi@3.5.0_@coinbase+wallet-sdk@4.3.6_@types+react@19.2.14_bufferutil@4.1.0_react@19.2_7b2c839819ebd070de5d8b72355d47f8/node_modules/wagmi/dist/esm/hooks/useConfig.js
38782
- /** https://wagmi.sh/react/api/hooks/useConfig */
38783
- function useConfig(parameters = {}) {
38784
- const config = parameters.config ?? useContext(WagmiContext);
38785
- if (!config) throw new WagmiProviderNotFoundError();
38786
- return config;
38787
- }
38788
- //#endregion
38789
- //#region ../../node_modules/.pnpm/wagmi@3.5.0_@coinbase+wallet-sdk@4.3.6_@types+react@19.2.14_bufferutil@4.1.0_react@19.2_7b2c839819ebd070de5d8b72355d47f8/node_modules/wagmi/dist/esm/hooks/useChainId.js
38790
- /** https://wagmi.sh/react/api/hooks/useChainId */
38791
- function useChainId(parameters = {}) {
38792
- const config = useConfig(parameters);
38793
- return useSyncExternalStore((onChange) => watchChainId(config, { onChange }), () => getChainId(config), () => getChainId(config));
38794
- }
38795
- //#endregion
38796
- //#region ../../node_modules/.pnpm/wagmi@3.5.0_@coinbase+wallet-sdk@4.3.6_@types+react@19.2.14_bufferutil@4.1.0_react@19.2_7b2c839819ebd070de5d8b72355d47f8/node_modules/wagmi/dist/esm/hooks/useEnsAvatar.js
38797
- /** https://wagmi.sh/react/api/hooks/useEnsAvatar */
38798
- function useEnsAvatar(parameters = {}) {
38799
- const config = useConfig(parameters);
38800
- const chainId = useChainId({ config });
38801
- return useQuery(getEnsAvatarQueryOptions(config, {
38802
- ...parameters,
38803
- chainId: parameters.chainId ?? chainId
38804
- }));
38805
- }
38806
- //#endregion
38807
- //#region ../../node_modules/.pnpm/wagmi@3.5.0_@coinbase+wallet-sdk@4.3.6_@types+react@19.2.14_bufferutil@4.1.0_react@19.2_7b2c839819ebd070de5d8b72355d47f8/node_modules/wagmi/dist/esm/hooks/useEnsName.js
38808
- /** https://wagmi.sh/react/api/hooks/useEnsName */
38809
- function useEnsName(parameters = {}) {
38810
- const config = useConfig(parameters);
38811
- const chainId = useChainId({ config });
38812
- return useQuery(getEnsNameQueryOptions(config, {
38813
- ...parameters,
38814
- chainId: parameters.chainId ?? chainId
38815
- }));
38816
- }
38817
- //#endregion
38818
- //#region ../../node_modules/.pnpm/react-multi-select-component@4.3.4_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-multi-select-component/dist/esm/index.js
38819
- function V(e, { insertAt: n } = {}) {
38820
- if (!e || typeof document > "u") return;
38821
- let t = document.head || document.getElementsByTagName("head")[0], r = document.createElement("style");
38822
- r.type = "text/css", n === "top" && t.firstChild ? t.insertBefore(r, t.firstChild) : t.appendChild(r), r.styleSheet ? r.styleSheet.cssText = e : r.appendChild(document.createTextNode(e));
38823
- }
38824
- V(`.rmsc{--rmsc-main: #4285f4;--rmsc-hover: #f1f3f5;--rmsc-selected: #e2e6ea;--rmsc-border: #ccc;--rmsc-gray: #aaa;--rmsc-bg: #fff;--rmsc-p: 10px;--rmsc-radius: 4px;--rmsc-h: 38px}.rmsc *{box-sizing:border-box;transition:all .2s ease}.rmsc .gray{color:var(--rmsc-gray)}.rmsc .dropdown-content{position:absolute;z-index:1;top:100%;width:100%;padding-top:8px}.rmsc .dropdown-content .panel-content{overflow:hidden;border-radius:var(--rmsc-radius);background:var(--rmsc-bg);box-shadow:0 0 0 1px #0000001a,0 4px 11px #0000001a}.rmsc .dropdown-container{position:relative;outline:0;background-color:var(--rmsc-bg);border:1px solid var(--rmsc-border);border-radius:var(--rmsc-radius)}.rmsc .dropdown-container[aria-disabled=true]:focus-within{box-shadow:var(--rmsc-gray) 0 0 0 1px;border-color:var(--rmsc-gray)}.rmsc .dropdown-container:focus-within{box-shadow:var(--rmsc-main) 0 0 0 1px;border-color:var(--rmsc-main)}.rmsc .dropdown-heading{position:relative;padding:0 var(--rmsc-p);display:flex;align-items:center;width:100%;height:var(--rmsc-h);cursor:default;outline:0}.rmsc .dropdown-heading .dropdown-heading-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.rmsc .clear-selected-button{cursor:pointer;background:none;border:0;padding:0;display:flex}.rmsc .options{max-height:260px;overflow-y:auto;margin:0;padding-left:0}.rmsc .options li{list-style:none;margin:0}.rmsc .select-item{box-sizing:border-box;cursor:pointer;display:block;padding:var(--rmsc-p);outline-offset:-1px;outline-color:var(--rmsc-primary)}.rmsc .select-item:hover{background:var(--rmsc-hover)}.rmsc .select-item.selected{background:var(--rmsc-selected)}.rmsc .no-options{padding:var(--rmsc-p);text-align:center;color:var(--rmsc-gray)}.rmsc .search{width:100%;position:relative;border-bottom:1px solid var(--rmsc-border)}.rmsc .search input{background:none;height:var(--rmsc-h);padding:0 var(--rmsc-p);width:100%;outline:0;border:0;font-size:1em}.rmsc .search input:focus{background:var(--rmsc-hover)}.rmsc .search-clear-button{cursor:pointer;position:absolute;top:0;right:0;bottom:0;background:none;border:0;padding:0 calc(var(--rmsc-p) / 2)}.rmsc .search-clear-button [hidden]{display:none}.rmsc .item-renderer{display:flex;align-items:baseline}.rmsc .item-renderer input{margin:0 5px 0 0}.rmsc .item-renderer.disabled{opacity:.5}.rmsc .spinner{animation:rotate 2s linear infinite}.rmsc .spinner .path{stroke:var(--rmsc-border);stroke-width:4px;stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}
38825
- `);
38826
- var Me = {
38827
- allItemsAreSelected: "All items are selected.",
38828
- clearSearch: "Clear Search",
38829
- clearSelected: "Clear Selected",
38830
- noOptions: "No options",
38831
- search: "Search",
38832
- selectAll: "Select All",
38833
- selectAllFiltered: "Select All (Filtered)",
38834
- selectSomeItems: "Select...",
38835
- create: "Create"
38836
- }, De = {
38837
- value: [],
38838
- hasSelectAll: !0,
38839
- className: "multi-select",
38840
- debounceDuration: 200,
38841
- options: []
38842
- }, re = React.createContext({}), ne = ({ props: e, children: n }) => {
38843
- let [t, r] = useState(e.options), a = (c) => {
38844
- var u;
38845
- return ((u = e.overrideStrings) == null ? void 0 : u[c]) || Me[c];
38846
- };
38847
- return useEffect(() => {
38848
- r(e.options);
38849
- }, [e.options]), jsx(re.Provider, {
38850
- value: {
38851
- t: a,
38852
- ...De,
38853
- ...e,
38854
- options: t,
38855
- setOptions: r
38856
- },
38857
- children: n
38858
- });
38859
- }, w$1 = () => React.useContext(re);
38860
- //#endregion
38861
35660
  //#region ../../node_modules/.pnpm/@tanstack+virtual-core@3.13.19/node_modules/@tanstack/virtual-core/dist/esm/utils.js
38862
35661
  function memo$1(getDeps, fn, opts) {
38863
35662
  let deps = opts.initialDeps ?? [];
@@ -39943,35 +36742,7 @@ const O = "undefined" != typeof window ? useLayoutEffect : useEffect, D = (t) =>
39943
36742
  theme: "light"
39944
36743
  };
39945
36744
  //#endregion
39946
- //#region ../../node_modules/.pnpm/viem@2.46.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/chains/definitions/mainnet.js
39947
- const mainnet = /* @__PURE__ */ defineChain({
39948
- id: 1,
39949
- name: "Ethereum",
39950
- nativeCurrency: {
39951
- name: "Ether",
39952
- symbol: "ETH",
39953
- decimals: 18
39954
- },
39955
- blockTime: 12e3,
39956
- rpcUrls: { default: { http: ["https://eth.merkle.io"] } },
39957
- blockExplorers: { default: {
39958
- name: "Etherscan",
39959
- url: "https://etherscan.io",
39960
- apiUrl: "https://api.etherscan.io/api"
39961
- } },
39962
- contracts: {
39963
- ensUniversalResolver: {
39964
- address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee",
39965
- blockCreated: 23085558
39966
- },
39967
- multicall3: {
39968
- address: "0xca11bde05977b3631167028862be2a173976ca11",
39969
- blockCreated: 14353601
39970
- }
39971
- }
39972
- });
39973
- //#endregion
39974
- //#region ../design-system/dist/connect-RA0VnuK7.js
36745
+ //#region ../design-system/dist/connect-MjNGHHUz.js
39975
36746
  function NodeInput(props) {
39976
36747
  const { onSubmit, onCancel, defaultValue, className, minLength = 1, ...inputProps } = props;
39977
36748
  const [value, setValue] = useState(defaultValue ?? "");
@@ -40870,26 +37641,15 @@ function ConnectDropdownMenu(props) {
40870
37641
  }
40871
37642
  var powerhouse_rounded_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABUHSURBVHgBxZwLsBTVmcf/X8+VN+EiT+XhuGo2aojomhQxqIMpS+NuIrqP6K6bYGk2tSYG0FR2XUHErCVruQKL+EiZCDFiJXEX7pYmbtzIGETxfUW0QKIODwHFxyW85d4+Oaf7PL5zuufembkD+aihT5/uOX36N//v+06f7r6EP6EVJ5ZaC0BJyKJcPY0IRS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CqCycadOmiZjx3zpj62+4hgNW+3q0/cv3C5uSTm9YyoUQUG4bYIr0HNlOHB6XR69Q84lzH339ecWoBfWa4DKdHKZL2dVpnpuag5RFaarznTFW81xYyZD302Z+my98BUr7/8UOunKRlw2tKYANJaoUYg5slhEbnwLfJR4tV+XZwYXH9mIMKl42Zl/Mb0ZLrP83C2vr1mCJllTARobe8qkm6WLfJM0SEFcZIE6e+iNCDZltMjVxmGyeuWuMgTKWDdgQaOxrpodFoDKlFt3FVBCokhRDORmi34crKU7ottVnnFl+4cNnLHDBpDbuAlfmIpOeSlI+CbDl6/E7nok9HYvDbNtMNCojIgWbl1XfRalWXZEABorFkutXYP3lRRMeabnikSZeZ2wlKqsO9NMK0JQG7WIcmH3gPLhUlueHVGAoSmgnYMOTJQTASU5YjxOzvkVpXJaVewUwStoClL6dx/UXyOP5AevikjeJTvCwEL7I6IVG2Tw6vcCAAAAAElFTkSuQmCC";
40872
37643
  function ENSAvatar(props) {
40873
- const { address, chainId = 1, size = "14px" } = props;
40874
- const style = {
40875
- width: size,
40876
- height: size
40877
- };
40878
- const ensNameResult = useEnsName({
40879
- address,
40880
- chainId
40881
- });
40882
- const ensAvatarResult = useEnsAvatar({ name: ensNameResult.data ?? void 0 });
40883
- const avatarUrl = ensAvatarResult.data ?? powerhouse_rounded_default;
40884
- if (ensNameResult.isLoading || ensAvatarResult.isLoading) return /* @__PURE__ */ jsx("div", {
40885
- className: "fade-out flex-none animate-pulse rounded-full bg-gray-400",
40886
- style
40887
- });
37644
+ const { avatarUrl = powerhouse_rounded_default, size = "14px" } = props;
40888
37645
  return /* @__PURE__ */ jsx("img", {
40889
37646
  alt: "ENS Avatar",
40890
37647
  className: "flex-none rounded-full object-contain",
40891
37648
  src: avatarUrl,
40892
- style
37649
+ style: {
37650
+ width: size,
37651
+ height: size
37652
+ }
40893
37653
  });
40894
37654
  }
40895
37655
  var template_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAB4CAYAAAAXIR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rmB/QejKHmOByQBi4Gq0ZwQZ/tvylc5Qei51L1MUtwf1xBTJ/Rx0rSF0YfoncwTvwSzcdzGL0fyLn3zoc77RPIjEcHeKIJORWCnOt0B6xMz6uZ8rNzemJwXV6fl7N8eUs0JPeSuioFwx9KTdS01JwxBJH4JoOdEKaNKcdAAAAAASUVORK5CYII=";
@@ -41582,12 +38342,7 @@ const ConnectSearchBar = (props) => {
41582
38342
  ]
41583
38343
  });
41584
38344
  };
41585
- const wagmiConfig = createConfig({
41586
- chains: [mainnet],
41587
- transports: { [mainnet.id]: http() }
41588
- });
41589
- const defaultQueryClient = new QueryClient();
41590
38345
  //#endregion
41591
38346
  export { useSetPHAppConfig as C, useSelectedFolder as S, useUserPermissions as T, showCreateDocumentModal as _, FolderItem as a, usePHToast as b, Controller as c, get as d, set as f, isFolderNodeKind as g, isFileNodeKind as h, FileItem as i, FormProvider as l, useFormContext as m, ConnectSearchBar as n, useDrop as o, useForm as p, DocumentToolbar as r, useVirtualizer as s, Breadcrumbs as t, appendErrors as u, useDocumentModelModules as v, useSetPHDocumentEditorConfig as w, useSelectedDocumentOfType as x, useNodesInSelectedDriveOrFolder as y };
41592
38347
 
41593
- //# sourceMappingURL=connect-RA0VnuK7-DHbEzVj1.js.map
38348
+ //# sourceMappingURL=connect-MjNGHHUz-BF7j8y2-.js.map