@dogeos/dogeos-sdk 3.0.7-beta.2 → 3.0.7-beta.3

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.
package/dist/index.js CHANGED
@@ -1,14 +1,15 @@
1
- import { jsxs as v, jsx as i, Fragment as ct } from "react/jsx-runtime";
2
- import { createContext as br, useState as N, useRef as ce, useEffect as Z, useMemo as B, useContext as V, useCallback as T } from "react";
3
- import { Button as X, BackIcon as at, CloseIcon as lt, OkIcon as At, CopyIcon as zr, Image as ne, PowerIcon as wr, DownIcon as Ir, Spinner as te, Skeleton as Pr, Modal as dt, Link as Ee, TomoLogoIcon as Br, Card as yr, CardBody as hr, Tabs as Mr, Tab as Wr, Chip as Sn, SearchIcon as Vr, Input as zn, SearchOutlinedIcon as Xr, addToast as Nr, RightArrowIcon as wn, ModalHeader as jr, ModalBody as Tr, ModalContent as Er, TomoUIProvider as Lr, ToastProvider as Sr } from "@tomo-inc/tomo-ui";
4
- import { isMobile as cn, metaMaskWallet as Or, phantomWallet as Yr, coinbaseWallet as Zr, binanceWallet as kr, walletConnectWallet as Jr, loadConnectors as Fr, ProviderProtocol as On, connect as Dr, switchChain as Yn, addChain as Hr, signMessage as Qr, signInWithWallet as qr, setWalletConnectConfig as Kr } from "@tomo-inc/wallet-adaptor-base";
5
- import { useMutation as In, useQuery as Gr, QueryClientProvider as Ur, QueryClient as Rr } from "@tanstack/react-query";
6
- import _r from "copy-to-clipboard";
7
- import $r from "qr-code-styling";
8
- import { EmbeddedWallet as es } from "@tomo-inc/embedded-wallet-providers";
9
- import { useConfig as Zn, useConnect as ns, useDisconnect as ts, useAccount as rs, createConnector as ss } from "wagmi";
10
- import { getAddress as Me, SwitchChainError as kn, numberToHex as Jn, UserRejectedRequestError as F, withRetry as is, withTimeout as os, ResourceUnavailableRpcError as Re } from "viem";
11
- const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
1
+ import './dogeos-sdk.css';
2
+ import { jsxs as C, jsx as i, Fragment as ot } from "react/jsx-runtime";
3
+ import { createContext as zr, useState as N, useRef as ce, useEffect as Y, useMemo as B, useContext as V, useCallback as T } from "react";
4
+ import { Button as X, BackIcon as ct, CloseIcon as at, OkIcon as lt, CopyIcon as wr, Image as ne, PowerIcon as Ir, DownIcon as Pr, Spinner as te, Skeleton as Br, Modal as At, Link as Ee, TomoLogoIcon as yr, Card as hr, CardBody as Mr, Tabs as Wr, Tab as Vr, Chip as Ln, SearchIcon as Xr, Input as bn, SearchOutlinedIcon as Nr, addToast as jr, RightArrowIcon as zn, ModalHeader as Tr, ModalBody as Er, ModalContent as Lr, TomoUIProvider as Sr, ToastProvider as Or } from "@tomo-inc/tomo-ui";
5
+ import { isMobile as on, metaMaskWallet as Yr, phantomWallet as Zr, coinbaseWallet as kr, binanceWallet as Jr, walletConnectWallet as Fr, loadConnectors as Dr, ProviderProtocol as Sn, connect as Hr, switchChain as On, addChain as Qr, signMessage as qr, signInWithWallet as Kr, setWalletConnectConfig as Gr } from "@tomo-inc/wallet-adaptor-base";
6
+ import { useMutation as wn, useQuery as Ur, QueryClientProvider as Rr, QueryClient as _r } from "@tanstack/react-query";
7
+ import $r from "copy-to-clipboard";
8
+ import es from "qr-code-styling";
9
+ import { EmbeddedWallet as ns } from "@tomo-inc/embedded-wallet-providers";
10
+ import { useConfig as Yn, useConnect as ts, useDisconnect as rs, useAccount as ss, createConnector as is } from "wagmi";
11
+ import { getAddress as Me, SwitchChainError as Zn, numberToHex as kn, UserRejectedRequestError as F, withRetry as os, withTimeout as cs, ResourceUnavailableRpcError as Ue } from "viem";
12
+ const W = zr(null), dt = ({ testnet: e, ...n }) => /* @__PURE__ */ C(
12
13
  "svg",
13
14
  {
14
15
  "aria-hidden": "true",
@@ -41,8 +42,8 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
41
42
  fillOpacity: "0.3"
42
43
  }
43
44
  ),
44
- /* @__PURE__ */ v("defs", { children: [
45
- /* @__PURE__ */ v(
45
+ /* @__PURE__ */ C("defs", { children: [
46
+ /* @__PURE__ */ C(
46
47
  "linearGradient",
47
48
  {
48
49
  id: "paint0_linear_3546_7073",
@@ -57,7 +58,7 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
57
58
  ]
58
59
  }
59
60
  ),
60
- /* @__PURE__ */ v(
61
+ /* @__PURE__ */ C(
61
62
  "linearGradient",
62
63
  {
63
64
  id: "paint1_linear_3546_7073",
@@ -75,9 +76,9 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
75
76
  ] })
76
77
  ]
77
78
  }
78
- ), ut = ({ ...e }) => /* @__PURE__ */ i(ft, { testnet: !0, ...e }), Le = ({ testnet: e, ...n }) => {
79
+ ), ft = ({ ...e }) => /* @__PURE__ */ i(dt, { testnet: !0, ...e }), Le = ({ testnet: e, ...n }) => {
79
80
  let t = "var(--ck-chain-ethereum-01, #627EEA)", r = "var(--ck-chain-ethereum-02, #ffffff)";
80
- return e && (t = "linear-gradient(180deg, #8995A9 0%, #627EEA 99.48%)", r = "#fff"), /* @__PURE__ */ v(
81
+ return e && (t = "linear-gradient(180deg, #8995A9 0%, #627EEA 99.48%)", r = "#fff"), /* @__PURE__ */ C(
81
82
  "svg",
82
83
  {
83
84
  "aria-hidden": "true",
@@ -107,7 +108,7 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
107
108
  ]
108
109
  }
109
110
  );
110
- }, gt = ({ testnet: e, ...n }) => /* @__PURE__ */ i(
111
+ }, ut = ({ testnet: e, ...n }) => /* @__PURE__ */ i(
111
112
  "svg",
112
113
  {
113
114
  "aria-hidden": "true",
@@ -128,7 +129,7 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
128
129
  }
129
130
  )
130
131
  }
131
- ), vt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
132
+ ), gt = ({ testnet: e, ...n }) => /* @__PURE__ */ C(
132
133
  "svg",
133
134
  {
134
135
  "aria-hidden": "true",
@@ -173,9 +174,9 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
173
174
  )
174
175
  ]
175
176
  }
176
- ), Ct = ({ testnet: e, ...n }) => {
177
+ ), vt = ({ testnet: e, ...n }) => {
177
178
  const t = e ? "#ffffff" : "#28A0F0";
178
- return /* @__PURE__ */ v(
179
+ return /* @__PURE__ */ C(
179
180
  "svg",
180
181
  {
181
182
  "aria-hidden": "true",
@@ -228,7 +229,7 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
228
229
  ]
229
230
  }
230
231
  );
231
- }, mt = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
232
+ }, Ct = ({ testnet: e, ...n }) => /* @__PURE__ */ C(
232
233
  "svg",
233
234
  {
234
235
  "aria-hidden": "true",
@@ -279,7 +280,7 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
279
280
  )
280
281
  ]
281
282
  }
282
- ), xt = ({ testnet: e, ...n }) => /* @__PURE__ */ i(
283
+ ), mt = ({ testnet: e, ...n }) => /* @__PURE__ */ i(
283
284
  "svg",
284
285
  {
285
286
  width: "44",
@@ -299,9 +300,9 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
299
300
  }
300
301
  )
301
302
  }
302
- ), pt = ({ ...e }) => /* @__PURE__ */ v("svg", { width: "200", height: "208", viewBox: "0 0 200 208", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
303
+ ), xt = ({ ...e }) => /* @__PURE__ */ C("svg", { width: "200", height: "208", viewBox: "0 0 200 208", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
303
304
  /* @__PURE__ */ i("rect", { width: "199.4", height: "207.623", fill: "#121212" }),
304
- /* @__PURE__ */ v("g", { clipPath: "url(#clip0_2318_291)", children: [
305
+ /* @__PURE__ */ C("g", { clipPath: "url(#clip0_2318_291)", children: [
305
306
  /* @__PURE__ */ i("path", { d: "M132.369 155.99H49.7001V68.8854H68.6148V139.109H132.369V155.981V155.99Z", fill: "#fff" }),
306
307
  /* @__PURE__ */ i(
307
308
  "path",
@@ -312,7 +313,7 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
312
313
  )
313
314
  ] }),
314
315
  /* @__PURE__ */ i("defs", { children: /* @__PURE__ */ i("clipPath", { id: "clip0_2318_291", children: /* @__PURE__ */ i("rect", { width: "99.5407", height: "103.977", fill: "white", transform: "translate(49.7001 52.0134)" }) }) })
315
- ] }), Je = ({ ...e }) => /* @__PURE__ */ v("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
316
+ ] }), Je = ({ ...e }) => /* @__PURE__ */ C("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
316
317
  /* @__PURE__ */ i(
317
318
  "path",
318
319
  {
@@ -327,8 +328,8 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
327
328
  fill: "white"
328
329
  }
329
330
  )
330
- ] }), Fe = ({ ...e }) => /* @__PURE__ */ v("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
331
- /* @__PURE__ */ v("g", { clipPath: "url(#clip0_101_1146)", children: [
331
+ ] }), Fe = ({ ...e }) => /* @__PURE__ */ C("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
332
+ /* @__PURE__ */ C("g", { clipPath: "url(#clip0_101_1146)", children: [
332
333
  /* @__PURE__ */ i(
333
334
  "path",
334
335
  {
@@ -336,7 +337,7 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
336
337
  fill: "black"
337
338
  }
338
339
  ),
339
- /* @__PURE__ */ v("g", { clipPath: "url(#clip1_101_1146)", children: [
340
+ /* @__PURE__ */ C("g", { clipPath: "url(#clip1_101_1146)", children: [
340
341
  /* @__PURE__ */ i(
341
342
  "path",
342
343
  {
@@ -360,8 +361,8 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
360
361
  )
361
362
  ] })
362
363
  ] }),
363
- /* @__PURE__ */ v("defs", { children: [
364
- /* @__PURE__ */ v(
364
+ /* @__PURE__ */ C("defs", { children: [
365
+ /* @__PURE__ */ C(
365
366
  "linearGradient",
366
367
  {
367
368
  id: "paint0_linear_101_1146",
@@ -376,7 +377,7 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
376
377
  ]
377
378
  }
378
379
  ),
379
- /* @__PURE__ */ v(
380
+ /* @__PURE__ */ C(
380
381
  "linearGradient",
381
382
  {
382
383
  id: "paint1_linear_101_1146",
@@ -391,7 +392,7 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
391
392
  ]
392
393
  }
393
394
  ),
394
- /* @__PURE__ */ v(
395
+ /* @__PURE__ */ C(
395
396
  "linearGradient",
396
397
  {
397
398
  id: "paint2_linear_101_1146",
@@ -409,7 +410,7 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
409
410
  /* @__PURE__ */ i("clipPath", { id: "clip0_101_1146", children: /* @__PURE__ */ i("rect", { width: "20", height: "20", fill: "white" }) }),
410
411
  /* @__PURE__ */ i("clipPath", { id: "clip1_101_1146", children: /* @__PURE__ */ i("rect", { width: "13.125", height: "10", fill: "white", transform: "translate(3.75 5)" }) })
411
412
  ] })
412
- ] }), cs = ({ ...e }) => /* @__PURE__ */ v("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
413
+ ] }), as = ({ ...e }) => /* @__PURE__ */ C("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
413
414
  /* @__PURE__ */ i("circle", { cx: "16", cy: "16", r: "16", fill: "black" }),
414
415
  /* @__PURE__ */ i(
415
416
  "mask",
@@ -431,7 +432,7 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
431
432
  fill: "#FFDA34"
432
433
  }
433
434
  ) })
434
- ] }), bt = ({ ...e }) => /* @__PURE__ */ v(
435
+ ] }), pt = ({ ...e }) => /* @__PURE__ */ C(
435
436
  "svg",
436
437
  {
437
438
  width: "36",
@@ -464,7 +465,7 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
464
465
  fillOpacity: "0.8"
465
466
  }
466
467
  ),
467
- /* @__PURE__ */ v("defs", { children: [
468
+ /* @__PURE__ */ C("defs", { children: [
468
469
  /* @__PURE__ */ i("pattern", { id: "pattern0_5204_7902", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ i("use", { xlinkHref: "#image0_5204_7902", transform: "translate(-0.4375 -0.125) scale(0.0015625)" }) }),
469
470
  /* @__PURE__ */ i(
470
471
  "image",
@@ -479,7 +480,7 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
479
480
  ] })
480
481
  ]
481
482
  }
482
- ), zt = ({ ...e }) => /* @__PURE__ */ v("svg", { width: "56", height: "56", viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
483
+ ), bt = ({ ...e }) => /* @__PURE__ */ C("svg", { width: "56", height: "56", viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
483
484
  /* @__PURE__ */ i("foreignObject", { x: "-2.16759", y: "-2.16759", width: "60.3349", height: "60.3352", children: /* @__PURE__ */ i(
484
485
  "div",
485
486
  {
@@ -491,7 +492,7 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
491
492
  }
492
493
  }
493
494
  ) }),
494
- /* @__PURE__ */ v("g", { "data-figma-bg-blur-radius": "2.16759", children: [
495
+ /* @__PURE__ */ C("g", { "data-figma-bg-blur-radius": "2.16759", children: [
495
496
  /* @__PURE__ */ i("circle", { cx: "27.9999", cy: "27.9999", r: "27.6817", fill: "#313036", fillOpacity: "0.3" }),
496
497
  /* @__PURE__ */ i("circle", { cx: "27.9999", cy: "27.9999", r: "27.6817", fill: "url(#paint0_linear_750_175)" }),
497
498
  /* @__PURE__ */ i("circle", { cx: "27.9999", cy: "27.9999", r: "27.6817", stroke: "url(#paint1_linear_750_175)", strokeWidth: "0.636361" })
@@ -507,9 +508,9 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
507
508
  ) }),
508
509
  /* @__PURE__ */ i("path", { d: "M27.9999 32.1357V32.613", stroke: "#44444F", strokeWidth: "1.90908", strokeLinecap: "round" }),
509
510
  /* @__PURE__ */ i("path", { d: "M27.9999 24.5L28.0038 29.2725", stroke: "#44444F", strokeWidth: "1.90908", strokeLinecap: "round" }),
510
- /* @__PURE__ */ v("defs", { children: [
511
+ /* @__PURE__ */ C("defs", { children: [
511
512
  /* @__PURE__ */ i("clipPath", { id: "bgblur_0_750_175_clip_path", transform: "translate(2.16759 2.16759)", children: /* @__PURE__ */ i("circle", { cx: "27.9999", cy: "27.9999", r: "27.6817" }) }),
512
- /* @__PURE__ */ v(
513
+ /* @__PURE__ */ C(
513
514
  "filter",
514
515
  {
515
516
  id: "filter1_ii_750_175",
@@ -551,7 +552,7 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
551
552
  ]
552
553
  }
553
554
  ),
554
- /* @__PURE__ */ v(
555
+ /* @__PURE__ */ C(
555
556
  "linearGradient",
556
557
  {
557
558
  id: "paint0_linear_750_175",
@@ -566,7 +567,7 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
566
567
  ]
567
568
  }
568
569
  ),
569
- /* @__PURE__ */ v(
570
+ /* @__PURE__ */ C(
570
571
  "linearGradient",
571
572
  {
572
573
  id: "paint1_linear_750_175",
@@ -581,7 +582,7 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
581
582
  ]
582
583
  }
583
584
  ),
584
- /* @__PURE__ */ v(
585
+ /* @__PURE__ */ C(
585
586
  "linearGradient",
586
587
  {
587
588
  id: "paint2_linear_750_175",
@@ -597,47 +598,47 @@ const W = br(null), ft = ({ testnet: e, ...n }) => /* @__PURE__ */ v(
597
598
  }
598
599
  )
599
600
  ] })
600
- ] }), as = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
601
+ ] }), ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
601
602
  __proto__: null,
602
603
  Apots: Je,
603
- Arbitrum: Ct,
604
- Base: xt,
605
- BinanceSmartChain: mt,
606
- Doge: bt,
604
+ Arbitrum: vt,
605
+ Base: mt,
606
+ BinanceSmartChain: Ct,
607
+ Doge: pt,
607
608
  Ethereum: Le,
608
- KnownChain: ft,
609
- Linea: pt,
610
- Movement: cs,
611
- Optimism: vt,
612
- Polygon: gt,
609
+ KnownChain: dt,
610
+ Linea: xt,
611
+ Movement: as,
612
+ Optimism: gt,
613
+ Polygon: ut,
613
614
  Solana: Fe,
614
- UnknownChain: ut,
615
- UnsupportChain: zt
615
+ UnknownChain: ft,
616
+ UnsupportChain: bt
616
617
  }, Symbol.toStringTag, { value: "Module" })), le = ({ icon: e, iconName: n, className: t, iconProps: r }) => {
617
- const s = e || as?.[n] || ut;
618
- return /* @__PURE__ */ v("div", { className: t, children: [
618
+ const s = e || ls?.[n] || ft;
619
+ return /* @__PURE__ */ C("div", { className: t, children: [
619
620
  /* @__PURE__ */ i(s, { "data-icon": "chain-icon", width: "100%", height: "100%", ...r }),
620
621
  ";"
621
622
  ] });
622
- }, Pn = () => {
623
+ }, In = () => {
623
624
  const [e, n] = N(!1), t = ce(null), r = (s) => {
624
625
  try {
625
- return _r(s), n(!0), t.current = setTimeout(() => n(!1), 1200), !0;
626
+ return $r(s), n(!0), t.current = setTimeout(() => n(!1), 1200), !0;
626
627
  } catch (o) {
627
628
  return console.warn("Copy failed, but continuing execution:", o), !1;
628
629
  }
629
630
  };
630
- return Z(
631
+ return Y(
631
632
  () => () => {
632
633
  t.current && (clearTimeout(t.current), t.current = null);
633
634
  },
634
635
  []
635
636
  ), { copied: e, copy: r };
636
637
  };
637
- function an(e) {
638
+ function cn(e) {
638
639
  return new Promise((n) => setTimeout(n, e));
639
640
  }
640
- function wt(e) {
641
+ function zt(e) {
641
642
  if (!e || typeof e != "string")
642
643
  return !1;
643
644
  const n = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, t = /^[a-zA-Z0-9._+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
@@ -646,49 +647,49 @@ function wt(e) {
646
647
  const r = e.split("@")[0];
647
648
  return !(r.startsWith(".") || r.endsWith(".") || r.includes(".."));
648
649
  }
649
- function ls(e) {
650
- return !e || e.trim().length === 0 ? "Please enter your email address" : wt(e) ? null : "Please enter a valid email address";
650
+ function As(e) {
651
+ return !e || e.trim().length === 0 ? "Please enter your email address" : zt(e) ? null : "Please enter a valid email address";
651
652
  }
652
- const Bn = {
653
+ const Pn = {
653
654
  WALLET_STATE: "tomo_wallet_state"
654
- }, As = (e) => {
655
+ }, ds = (e) => {
655
656
  try {
656
657
  const n = {
657
658
  ...e,
658
659
  timestamp: Date.now()
659
660
  };
660
- localStorage.setItem(Bn.WALLET_STATE, JSON.stringify(n));
661
+ localStorage.setItem(Pn.WALLET_STATE, JSON.stringify(n));
661
662
  } catch (n) {
662
663
  console.error("Failed to save wallet state:", n);
663
664
  }
664
- }, ds = () => {
665
+ }, fs = () => {
665
666
  try {
666
- const e = localStorage.getItem(Bn.WALLET_STATE);
667
+ const e = localStorage.getItem(Pn.WALLET_STATE);
667
668
  if (!e) return null;
668
669
  const n = JSON.parse(e);
669
- return Date.now() - n.timestamp > 24 * 7 * 60 * 60 * 1e3 ? (It(), null) : n;
670
+ return Date.now() - n.timestamp > 24 * 7 * 60 * 60 * 1e3 ? (wt(), null) : n;
670
671
  } catch (e) {
671
672
  return console.error("Failed to get wallet state:", e), null;
672
673
  }
673
- }, It = () => {
674
+ }, wt = () => {
674
675
  try {
675
- localStorage.removeItem(Bn.WALLET_STATE);
676
+ localStorage.removeItem(Pn.WALLET_STATE);
676
677
  } catch (e) {
677
678
  console.error("Failed to clear wallet state:", e);
678
679
  }
679
680
  };
680
- function Fn(e, n) {
681
+ function Jn(e, n) {
681
682
  const t = e.info?.uuid, r = t ? n.has(t) : !1, s = e.isInstalled === !0;
682
683
  return r && s ? 0 : !r && s ? 1 : r && !s ? 2 : 3;
683
684
  }
684
- function fs(e, n) {
685
- const t = new Set(e.map((a) => a.info?.uuid).filter(Boolean)), r = (a, l) => Fn(a, t) - Fn(l, t), s = /* @__PURE__ */ new Set();
685
+ function us(e, n) {
686
+ const t = new Set(e.map((a) => a.info?.uuid).filter(Boolean)), r = (a, l) => Jn(a, t) - Jn(l, t), s = /* @__PURE__ */ new Set();
686
687
  return [[...e, ...n].filter((a) => {
687
688
  const l = a.info?.uuid;
688
689
  return !l || s.has(l) ? !1 : (s.add(l), !0);
689
690
  }).sort(r), n];
690
691
  }
691
- function us(e, n = 6, t = 4) {
692
+ function gs(e, n = 6, t = 4) {
692
693
  if (!e) return "";
693
694
  if (e.length <= n + t)
694
695
  return e;
@@ -714,22 +715,22 @@ const O = {
714
715
  },
715
716
  dogecoin: {
716
717
  name: "Dogecoin",
717
- icon: bt
718
+ icon: pt
718
719
  }
719
- }, Pt = {
720
+ }, It = {
720
721
  aptos: Je,
721
722
  solana: Fe,
722
723
  evm: Le,
723
724
  // Evm chains
724
725
  evm_1: Le,
725
- evm_10: vt,
726
- evm_56: mt,
727
- evm_137: gt,
728
- evm_42161: Ct,
729
- evm_59144: pt,
730
- evm_8453: xt,
731
- unsupported: zt
732
- }, _e = {
726
+ evm_10: gt,
727
+ evm_56: Ct,
728
+ evm_137: ut,
729
+ evm_42161: vt,
730
+ evm_59144: xt,
731
+ evm_8453: mt,
732
+ unsupported: bt
733
+ }, Re = {
733
734
  evm_1: {
734
735
  id: 1,
735
736
  chainId: "0x1",
@@ -747,19 +748,19 @@ function U(e) {
747
748
  ...e
748
749
  };
749
750
  }
750
- const Bt = "2.38.2";
751
- let $e = {
751
+ const Pt = "2.38.2";
752
+ let _e = {
752
753
  getDocsUrl: ({ docsBaseUrl: e, docsPath: n = "", docsSlug: t }) => n ? `${e ?? "https://viem.sh"}${n}${t ? `#${t}` : ""}` : void 0,
753
- version: `viem@${Bt}`
754
- }, y = class ln extends Error {
754
+ version: `viem@${Pt}`
755
+ }, h = class an extends Error {
755
756
  constructor(n, t = {}) {
756
- const r = t.cause instanceof ln ? t.cause.details : t.cause?.message ? t.cause.message : t.details, s = t.cause instanceof ln && t.cause.docsPath || t.docsPath, o = $e.getDocsUrl?.({ ...t, docsPath: s }), c = [
757
+ const r = t.cause instanceof an ? t.cause.details : t.cause?.message ? t.cause.message : t.details, s = t.cause instanceof an && t.cause.docsPath || t.docsPath, o = _e.getDocsUrl?.({ ...t, docsPath: s }), c = [
757
758
  n || "An error occurred.",
758
759
  "",
759
760
  ...t.metaMessages ? [...t.metaMessages, ""] : [],
760
761
  ...o ? [`Docs: ${o}`] : [],
761
762
  ...r ? [`Details: ${r}`] : [],
762
- ...$e.version ? [`Version: ${$e.version}`] : []
763
+ ..._e.version ? [`Version: ${_e.version}`] : []
763
764
  ].join(`
764
765
  `);
765
766
  super(c, t.cause ? { cause: t.cause } : void 0), Object.defineProperty(this, "details", {
@@ -792,21 +793,21 @@ let $e = {
792
793
  configurable: !0,
793
794
  writable: !0,
794
795
  value: "BaseError"
795
- }), this.details = r, this.docsPath = s, this.metaMessages = t.metaMessages, this.name = t.name ?? this.name, this.shortMessage = n, this.version = Bt;
796
+ }), this.details = r, this.docsPath = s, this.metaMessages = t.metaMessages, this.name = t.name ?? this.name, this.shortMessage = n, this.version = Pt;
796
797
  }
797
798
  walk(n) {
798
- return yt(this, n);
799
+ return Bt(this, n);
799
800
  }
800
801
  };
801
- function yt(e, n) {
802
- return n?.(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ? yt(e.cause, n) : n ? null : e;
802
+ function Bt(e, n) {
803
+ return n?.(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ? Bt(e.cause, n) : n ? null : e;
803
804
  }
804
- class gs extends y {
805
+ class vs extends h {
805
806
  constructor({ max: n, min: t, signed: r, size: s, value: o }) {
806
807
  super(`Number "${o}" is not in safe ${s ? `${s * 8}-bit ${r ? "signed" : "unsigned"} ` : ""}integer range ${n ? `(${t} to ${n})` : `(above ${t})`}`, { name: "IntegerOutOfRangeError" });
807
808
  }
808
809
  }
809
- class vs extends y {
810
+ class Cs extends h {
810
811
  constructor({ givenSize: n, maxSize: t }) {
811
812
  super(`Size cannot exceed ${t} bytes. Given size: ${n} bytes.`, { name: "SizeOverflowError" });
812
813
  }
@@ -823,36 +824,36 @@ function Se(e, { dir: n = "left" } = {}) {
823
824
  r++;
824
825
  return t = n === "left" ? t.slice(r) : t.slice(0, t.length - r), typeof e == "string" ? (t.length === 1 && n === "right" && (t = `${t}0`), `0x${t.length % 2 === 1 ? `0${t}` : t}`) : t;
825
826
  }
826
- class Cs extends y {
827
+ class ms extends h {
827
828
  constructor({ offset: n, position: t, size: r }) {
828
829
  super(`Slice ${t === "start" ? "starting" : "ending"} at offset "${n}" is out-of-bounds (size: ${r}).`, { name: "SliceOffsetOutOfBoundsError" });
829
830
  }
830
831
  }
831
- class ht extends y {
832
+ class yt extends h {
832
833
  constructor({ size: n, targetSize: t, type: r }) {
833
834
  super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${n}) exceeds padding size (${t}).`, { name: "SizeExceedsPaddingSizeError" });
834
835
  }
835
836
  }
836
837
  function Ae(e, { dir: n, size: t = 32 } = {}) {
837
- return typeof e == "string" ? ms(e, { dir: n, size: t }) : xs(e, { dir: n, size: t });
838
+ return typeof e == "string" ? xs(e, { dir: n, size: t }) : ps(e, { dir: n, size: t });
838
839
  }
839
- function ms(e, { dir: n, size: t = 32 } = {}) {
840
+ function xs(e, { dir: n, size: t = 32 } = {}) {
840
841
  if (t === null)
841
842
  return e;
842
843
  const r = e.replace("0x", "");
843
844
  if (r.length > t * 2)
844
- throw new ht({
845
+ throw new yt({
845
846
  size: Math.ceil(r.length / 2),
846
847
  targetSize: t,
847
848
  type: "hex"
848
849
  });
849
850
  return `0x${r[n === "right" ? "padEnd" : "padStart"](t * 2, "0")}`;
850
851
  }
851
- function xs(e, { dir: n, size: t = 32 } = {}) {
852
+ function ps(e, { dir: n, size: t = 32 } = {}) {
852
853
  if (t === null)
853
854
  return e;
854
855
  if (e.length > t)
855
- throw new ht({
856
+ throw new yt({
856
857
  size: e.length,
857
858
  targetSize: t,
858
859
  type: "bytes"
@@ -864,18 +865,18 @@ function xs(e, { dir: n, size: t = 32 } = {}) {
864
865
  }
865
866
  return r;
866
867
  }
867
- const ps = /* @__PURE__ */ Array.from({ length: 256 }, (e, n) => n.toString(16).padStart(2, "0"));
868
+ const bs = /* @__PURE__ */ Array.from({ length: 256 }, (e, n) => n.toString(16).padStart(2, "0"));
868
869
  function me(e, n = {}) {
869
- return typeof e == "number" || typeof e == "bigint" ? z(e, n) : typeof e == "string" ? ws(e, n) : typeof e == "boolean" ? bs(e, n) : q(e, n);
870
+ return typeof e == "number" || typeof e == "bigint" ? z(e, n) : typeof e == "string" ? Is(e, n) : typeof e == "boolean" ? zs(e, n) : q(e, n);
870
871
  }
871
- function bs(e, n = {}) {
872
+ function zs(e, n = {}) {
872
873
  const t = `0x${Number(e)}`;
873
874
  return typeof n.size == "number" ? (de(t, { size: n.size }), Ae(t, { size: n.size })) : t;
874
875
  }
875
876
  function q(e, n = {}) {
876
877
  let t = "";
877
878
  for (let s = 0; s < e.length; s++)
878
- t += ps[e[s]];
879
+ t += bs[e[s]];
879
880
  const r = `0x${t}`;
880
881
  return typeof n.size == "number" ? (de(r, { size: n.size }), Ae(r, { dir: "right", size: n.size })) : r;
881
882
  }
@@ -886,7 +887,7 @@ function z(e, n = {}) {
886
887
  const c = typeof o == "bigint" && t ? -o - 1n : 0;
887
888
  if (o && s > o || s < c) {
888
889
  const l = typeof e == "bigint" ? "n" : "";
889
- throw new gs({
890
+ throw new vs({
890
891
  max: o ? `${o}${l}` : void 0,
891
892
  min: `${c}${l}`,
892
893
  signed: t,
@@ -897,16 +898,16 @@ function z(e, n = {}) {
897
898
  const a = `0x${(t && s < 0 ? (1n << BigInt(r * 8)) + BigInt(s) : s).toString(16)}`;
898
899
  return r ? Ae(a, { size: r }) : a;
899
900
  }
900
- const zs = /* @__PURE__ */ new TextEncoder();
901
- function ws(e, n = {}) {
902
- const t = zs.encode(e);
901
+ const ws = /* @__PURE__ */ new TextEncoder();
902
+ function Is(e, n = {}) {
903
+ const t = ws.encode(e);
903
904
  return q(t, n);
904
905
  }
905
- const Is = /* @__PURE__ */ new TextEncoder();
906
- function Mt(e, n = {}) {
907
- return typeof e == "number" || typeof e == "bigint" ? Bs(e, n) : typeof e == "boolean" ? Ps(e, n) : Ie(e) ? _(e, n) : Wt(e, n);
906
+ const Ps = /* @__PURE__ */ new TextEncoder();
907
+ function ht(e, n = {}) {
908
+ return typeof e == "number" || typeof e == "bigint" ? ys(e, n) : typeof e == "boolean" ? Bs(e, n) : Ie(e) ? _(e, n) : Mt(e, n);
908
909
  }
909
- function Ps(e, n = {}) {
910
+ function Bs(e, n = {}) {
910
911
  const t = new Uint8Array(1);
911
912
  return t[0] = Number(e), typeof n.size == "number" ? (de(t, { size: n.size }), Ae(t, { size: n.size })) : t;
912
913
  }
@@ -918,7 +919,7 @@ const D = {
918
919
  a: 97,
919
920
  f: 102
920
921
  };
921
- function Dn(e) {
922
+ function Fn(e) {
922
923
  if (e >= D.zero && e <= D.nine)
923
924
  return e - D.zero;
924
925
  if (e >= D.A && e <= D.F)
@@ -933,24 +934,24 @@ function _(e, n = {}) {
933
934
  r.length % 2 && (r = `0${r}`);
934
935
  const s = r.length / 2, o = new Uint8Array(s);
935
936
  for (let c = 0, a = 0; c < s; c++) {
936
- const l = Dn(r.charCodeAt(a++)), A = Dn(r.charCodeAt(a++));
937
+ const l = Fn(r.charCodeAt(a++)), A = Fn(r.charCodeAt(a++));
937
938
  if (l === void 0 || A === void 0)
938
- throw new y(`Invalid byte sequence ("${r[a - 2]}${r[a - 1]}" in "${r}").`);
939
+ throw new h(`Invalid byte sequence ("${r[a - 2]}${r[a - 1]}" in "${r}").`);
939
940
  o[c] = l * 16 + A;
940
941
  }
941
942
  return o;
942
943
  }
943
- function Bs(e, n) {
944
+ function ys(e, n) {
944
945
  const t = z(e, n);
945
946
  return _(t);
946
947
  }
947
- function Wt(e, n = {}) {
948
- const t = Is.encode(e);
948
+ function Mt(e, n = {}) {
949
+ const t = Ps.encode(e);
949
950
  return typeof n.size == "number" ? (de(t, { size: n.size }), Ae(t, { dir: "right", size: n.size })) : t;
950
951
  }
951
952
  function de(e, { size: n }) {
952
953
  if (ae(e) > n)
953
- throw new vs({
954
+ throw new Cs({
954
955
  givenSize: ae(e),
955
956
  maxSize: n
956
957
  });
@@ -967,7 +968,7 @@ function se(e, n = {}) {
967
968
  function Oe(e, n = {}) {
968
969
  return Number(se(e, n));
969
970
  }
970
- function yn(e, n) {
971
+ function Bn(e, n) {
971
972
  return ({ exclude: t, format: r }) => ({
972
973
  exclude: t,
973
974
  format: (s, o) => {
@@ -983,14 +984,14 @@ function yn(e, n) {
983
984
  type: e
984
985
  });
985
986
  }
986
- const Vt = {
987
+ const Wt = {
987
988
  "0x0": "legacy",
988
989
  "0x1": "eip2930",
989
990
  "0x2": "eip1559",
990
991
  "0x3": "eip4844",
991
992
  "0x4": "eip7702"
992
993
  };
993
- function hn(e, n) {
994
+ function yn(e, n) {
994
995
  const t = {
995
996
  ...e,
996
997
  blockHash: e.blockHash ? e.blockHash : null,
@@ -1004,12 +1005,12 @@ function hn(e, n) {
1004
1005
  nonce: e.nonce ? Oe(e.nonce) : void 0,
1005
1006
  to: e.to ? e.to : null,
1006
1007
  transactionIndex: e.transactionIndex ? Number(e.transactionIndex) : null,
1007
- type: e.type ? Vt[e.type] : void 0,
1008
+ type: e.type ? Wt[e.type] : void 0,
1008
1009
  typeHex: e.type ? e.type : void 0,
1009
1010
  value: e.value ? BigInt(e.value) : void 0,
1010
1011
  v: e.v ? BigInt(e.v) : void 0
1011
1012
  };
1012
- return e.authorizationList && (t.authorizationList = hs(e.authorizationList)), t.yParity = (() => {
1013
+ return e.authorizationList && (t.authorizationList = Ms(e.authorizationList)), t.yParity = (() => {
1013
1014
  if (e.yParity)
1014
1015
  return Number(e.yParity);
1015
1016
  if (typeof t.v == "bigint") {
@@ -1022,8 +1023,8 @@ function hn(e, n) {
1022
1023
  }
1023
1024
  })(), t.type === "legacy" && (delete t.accessList, delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas, delete t.yParity), t.type === "eip2930" && (delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas), t.type === "eip1559" && delete t.maxFeePerBlobGas, t;
1024
1025
  }
1025
- const ys = /* @__PURE__ */ yn("transaction", hn);
1026
- function hs(e) {
1026
+ const hs = /* @__PURE__ */ Bn("transaction", yn);
1027
+ function Ms(e) {
1027
1028
  return e.map((n) => ({
1028
1029
  address: n.address,
1029
1030
  chainId: Number(n.chainId),
@@ -1033,8 +1034,8 @@ function hs(e) {
1033
1034
  yParity: Number(n.yParity)
1034
1035
  }));
1035
1036
  }
1036
- function Ms(e, n) {
1037
- const t = (e.transactions ?? []).map((r) => typeof r == "string" ? r : hn(r));
1037
+ function Ws(e, n) {
1038
+ const t = (e.transactions ?? []).map((r) => typeof r == "string" ? r : yn(r));
1038
1039
  return {
1039
1040
  ...e,
1040
1041
  baseFeePerGas: e.baseFeePerGas ? BigInt(e.baseFeePerGas) : null,
@@ -1053,8 +1054,8 @@ function Ms(e, n) {
1053
1054
  totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
1054
1055
  };
1055
1056
  }
1056
- const Ws = /* @__PURE__ */ yn("block", Ms);
1057
- function Vs(e, { args: n, eventName: t } = {}) {
1057
+ const Vs = /* @__PURE__ */ Bn("block", Ws);
1058
+ function Xs(e, { args: n, eventName: t } = {}) {
1058
1059
  return {
1059
1060
  ...e,
1060
1061
  blockHash: e.blockHash ? e.blockHash : null,
@@ -1065,11 +1066,11 @@ function Vs(e, { args: n, eventName: t } = {}) {
1065
1066
  ...t ? { args: n, eventName: t } : {}
1066
1067
  };
1067
1068
  }
1068
- const Xs = {
1069
+ const Ns = {
1069
1070
  "0x0": "reverted",
1070
1071
  "0x1": "success"
1071
1072
  };
1072
- function Ns(e, n) {
1073
+ function js(e, n) {
1073
1074
  const t = {
1074
1075
  ...e,
1075
1076
  blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
@@ -1077,26 +1078,26 @@ function Ns(e, n) {
1077
1078
  cumulativeGasUsed: e.cumulativeGasUsed ? BigInt(e.cumulativeGasUsed) : null,
1078
1079
  effectiveGasPrice: e.effectiveGasPrice ? BigInt(e.effectiveGasPrice) : null,
1079
1080
  gasUsed: e.gasUsed ? BigInt(e.gasUsed) : null,
1080
- logs: e.logs ? e.logs.map((r) => Vs(r)) : null,
1081
+ logs: e.logs ? e.logs.map((r) => Xs(r)) : null,
1081
1082
  to: e.to ? e.to : null,
1082
1083
  transactionIndex: e.transactionIndex ? Oe(e.transactionIndex) : null,
1083
- status: e.status ? Xs[e.status] : null,
1084
- type: e.type ? Vt[e.type] || e.type : null
1084
+ status: e.status ? Ns[e.status] : null,
1085
+ type: e.type ? Wt[e.type] || e.type : null
1085
1086
  };
1086
1087
  return e.blobGasPrice && (t.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (t.blobGasUsed = BigInt(e.blobGasUsed)), t;
1087
1088
  }
1088
- const js = /* @__PURE__ */ yn("transactionReceipt", Ns), Ts = {
1089
+ const Ts = /* @__PURE__ */ Bn("transactionReceipt", js), Es = {
1089
1090
  legacy: "0x0",
1090
1091
  eip2930: "0x1",
1091
1092
  eip1559: "0x2",
1092
1093
  eip4844: "0x3",
1093
1094
  eip7702: "0x4"
1094
1095
  };
1095
- function Es(e, n) {
1096
+ function Ls(e, n) {
1096
1097
  const t = {};
1097
- return typeof e.authorizationList < "u" && (t.authorizationList = Ls(e.authorizationList)), typeof e.accessList < "u" && (t.accessList = e.accessList), typeof e.blobVersionedHashes < "u" && (t.blobVersionedHashes = e.blobVersionedHashes), typeof e.blobs < "u" && (typeof e.blobs[0] != "string" ? t.blobs = e.blobs.map((r) => q(r)) : t.blobs = e.blobs), typeof e.data < "u" && (t.data = e.data), typeof e.from < "u" && (t.from = e.from), typeof e.gas < "u" && (t.gas = z(e.gas)), typeof e.gasPrice < "u" && (t.gasPrice = z(e.gasPrice)), typeof e.maxFeePerBlobGas < "u" && (t.maxFeePerBlobGas = z(e.maxFeePerBlobGas)), typeof e.maxFeePerGas < "u" && (t.maxFeePerGas = z(e.maxFeePerGas)), typeof e.maxPriorityFeePerGas < "u" && (t.maxPriorityFeePerGas = z(e.maxPriorityFeePerGas)), typeof e.nonce < "u" && (t.nonce = z(e.nonce)), typeof e.to < "u" && (t.to = e.to), typeof e.type < "u" && (t.type = Ts[e.type]), typeof e.value < "u" && (t.value = z(e.value)), t;
1098
+ return typeof e.authorizationList < "u" && (t.authorizationList = Ss(e.authorizationList)), typeof e.accessList < "u" && (t.accessList = e.accessList), typeof e.blobVersionedHashes < "u" && (t.blobVersionedHashes = e.blobVersionedHashes), typeof e.blobs < "u" && (typeof e.blobs[0] != "string" ? t.blobs = e.blobs.map((r) => q(r)) : t.blobs = e.blobs), typeof e.data < "u" && (t.data = e.data), typeof e.from < "u" && (t.from = e.from), typeof e.gas < "u" && (t.gas = z(e.gas)), typeof e.gasPrice < "u" && (t.gasPrice = z(e.gasPrice)), typeof e.maxFeePerBlobGas < "u" && (t.maxFeePerBlobGas = z(e.maxFeePerBlobGas)), typeof e.maxFeePerGas < "u" && (t.maxFeePerGas = z(e.maxFeePerGas)), typeof e.maxPriorityFeePerGas < "u" && (t.maxPriorityFeePerGas = z(e.maxPriorityFeePerGas)), typeof e.nonce < "u" && (t.nonce = z(e.nonce)), typeof e.to < "u" && (t.to = e.to), typeof e.type < "u" && (t.type = Es[e.type]), typeof e.value < "u" && (t.value = z(e.value)), t;
1098
1099
  }
1099
- function Ls(e) {
1100
+ function Ss(e) {
1100
1101
  return e.map((n) => ({
1101
1102
  address: n.address,
1102
1103
  r: n.r ? z(BigInt(n.r)) : n.r,
@@ -1111,24 +1112,24 @@ const De = 2n ** 256n - 1n;
1111
1112
  function Pe(e) {
1112
1113
  return `0x${e.reduce((n, t) => n + t.replace("0x", ""), "")}`;
1113
1114
  }
1114
- class Hn extends y {
1115
+ class Dn extends h {
1115
1116
  constructor({ offset: n }) {
1116
1117
  super(`Offset \`${n}\` cannot be negative.`, {
1117
1118
  name: "NegativeOffsetError"
1118
1119
  });
1119
1120
  }
1120
1121
  }
1121
- class Ss extends y {
1122
+ class Os extends h {
1122
1123
  constructor({ length: n, position: t }) {
1123
1124
  super(`Position \`${t}\` is out of bounds (\`0 < position < ${n}\`).`, { name: "PositionOutOfBoundsError" });
1124
1125
  }
1125
1126
  }
1126
- class Os extends y {
1127
+ class Ys extends h {
1127
1128
  constructor({ count: n, limit: t }) {
1128
1129
  super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${n}\`).`, { name: "RecursiveReadLimitExceededError" });
1129
1130
  }
1130
1131
  }
1131
- const Ys = {
1132
+ const Zs = {
1132
1133
  bytes: new Uint8Array(),
1133
1134
  dataView: new DataView(new ArrayBuffer(0)),
1134
1135
  position: 0,
@@ -1137,21 +1138,21 @@ const Ys = {
1137
1138
  recursiveReadLimit: Number.POSITIVE_INFINITY,
1138
1139
  assertReadLimit() {
1139
1140
  if (this.recursiveReadCount >= this.recursiveReadLimit)
1140
- throw new Os({
1141
+ throw new Ys({
1141
1142
  count: this.recursiveReadCount + 1,
1142
1143
  limit: this.recursiveReadLimit
1143
1144
  });
1144
1145
  },
1145
1146
  assertPosition(e) {
1146
1147
  if (e < 0 || e > this.bytes.length - 1)
1147
- throw new Ss({
1148
+ throw new Os({
1148
1149
  length: this.bytes.length,
1149
1150
  position: e
1150
1151
  });
1151
1152
  },
1152
1153
  decrementPosition(e) {
1153
1154
  if (e < 0)
1154
- throw new Hn({ offset: e });
1155
+ throw new Dn({ offset: e });
1155
1156
  const n = this.position - e;
1156
1157
  this.assertPosition(n), this.position = n;
1157
1158
  },
@@ -1160,7 +1161,7 @@ const Ys = {
1160
1161
  },
1161
1162
  incrementPosition(e) {
1162
1163
  if (e < 0)
1163
- throw new Hn({ offset: e });
1164
+ throw new Dn({ offset: e });
1164
1165
  const n = this.position + e;
1165
1166
  this.assertPosition(n), this.position = n;
1166
1167
  },
@@ -1250,19 +1251,19 @@ const Ys = {
1250
1251
  this.positionReadCount.set(this.position, e + 1), e > 0 && this.recursiveReadCount++;
1251
1252
  }
1252
1253
  };
1253
- function Xt(e, { recursiveReadLimit: n = 8192 } = {}) {
1254
- const t = Object.create(Ys);
1254
+ function Vt(e, { recursiveReadLimit: n = 8192 } = {}) {
1255
+ const t = Object.create(Zs);
1255
1256
  return t.bytes = e, t.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength), t.positionReadCount = /* @__PURE__ */ new Map(), t.recursiveReadLimit = n, t;
1256
1257
  }
1257
1258
  function $(e, n = "hex") {
1258
- const t = Nt(e), r = Xt(new Uint8Array(t.length));
1259
+ const t = Xt(e), r = Vt(new Uint8Array(t.length));
1259
1260
  return t.encode(r), n === "hex" ? q(r.bytes) : r.bytes;
1260
1261
  }
1261
- function Nt(e) {
1262
- return Array.isArray(e) ? Zs(e.map((n) => Nt(n))) : ks(e);
1262
+ function Xt(e) {
1263
+ return Array.isArray(e) ? ks(e.map((n) => Xt(n))) : Js(e);
1263
1264
  }
1264
- function Zs(e) {
1265
- const n = e.reduce((s, o) => s + o.length, 0), t = jt(n);
1265
+ function ks(e) {
1266
+ const n = e.reduce((s, o) => s + o.length, 0), t = Nt(n);
1266
1267
  return {
1267
1268
  length: n <= 55 ? 1 + n : 1 + t + n,
1268
1269
  encode(s) {
@@ -1272,8 +1273,8 @@ function Zs(e) {
1272
1273
  }
1273
1274
  };
1274
1275
  }
1275
- function ks(e) {
1276
- const n = typeof e == "string" ? _(e) : e, t = jt(n.length);
1276
+ function Js(e) {
1277
+ const n = typeof e == "string" ? _(e) : e, t = Nt(n.length);
1277
1278
  return {
1278
1279
  length: n.length === 1 && n[0] < 128 ? 1 : n.length <= 55 ? 1 + n.length : 1 + t + n.length,
1279
1280
  encode(s) {
@@ -1281,7 +1282,7 @@ function ks(e) {
1281
1282
  }
1282
1283
  };
1283
1284
  }
1284
- function jt(e) {
1285
+ function Nt(e) {
1285
1286
  if (e < 2 ** 8)
1286
1287
  return 1;
1287
1288
  if (e < 2 ** 16)
@@ -1290,16 +1291,16 @@ function jt(e) {
1290
1291
  return 3;
1291
1292
  if (e < 2 ** 32)
1292
1293
  return 4;
1293
- throw new y("Length is too large.");
1294
+ throw new h("Length is too large.");
1294
1295
  }
1295
- const Js = {
1296
+ const Fs = {
1296
1297
  gwei: 9,
1297
1298
  wei: 18
1298
- }, Fs = {
1299
+ }, Ds = {
1299
1300
  ether: -9,
1300
1301
  wei: 9
1301
1302
  };
1302
- function Tt(e, n) {
1303
+ function jt(e, n) {
1303
1304
  let t = e.toString();
1304
1305
  const r = t.startsWith("-");
1305
1306
  r && (t = t.slice(1)), t = t.padStart(n, "0");
@@ -1309,18 +1310,18 @@ function Tt(e, n) {
1309
1310
  ];
1310
1311
  return o = o.replace(/(0+)$/, ""), `${r ? "-" : ""}${s || "0"}${o ? `.${o}` : ""}`;
1311
1312
  }
1312
- function Ds(e, n = "wei") {
1313
- return Tt(e, Js[n]);
1313
+ function Hs(e, n = "wei") {
1314
+ return jt(e, Fs[n]);
1314
1315
  }
1315
1316
  function R(e, n = "wei") {
1316
- return Tt(e, Fs[n]);
1317
+ return jt(e, Ds[n]);
1317
1318
  }
1318
- function Et(e) {
1319
+ function Tt(e) {
1319
1320
  const n = Object.entries(e).map(([r, s]) => s === void 0 || s === !1 ? null : [r, s]).filter(Boolean), t = n.reduce((r, [s]) => Math.max(r, s.length), 0);
1320
1321
  return n.map(([r, s]) => ` ${`${r}:`.padEnd(t + 1)} ${s}`).join(`
1321
1322
  `);
1322
1323
  }
1323
- class Hs extends y {
1324
+ class Qs extends h {
1324
1325
  constructor() {
1325
1326
  super([
1326
1327
  "Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
@@ -1329,20 +1330,20 @@ class Hs extends y {
1329
1330
  `), { name: "FeeConflictError" });
1330
1331
  }
1331
1332
  }
1332
- class Qs extends y {
1333
+ class qs extends h {
1333
1334
  constructor({ v: n }) {
1334
1335
  super(`Invalid \`v\` value "${n}". Expected 27 or 28.`, {
1335
1336
  name: "InvalidLegacyVError"
1336
1337
  });
1337
1338
  }
1338
1339
  }
1339
- class qs extends y {
1340
+ class Ks extends h {
1340
1341
  constructor({ transaction: n }) {
1341
1342
  super("Cannot infer a transaction type from provided transaction.", {
1342
1343
  metaMessages: [
1343
1344
  "Provided Transaction:",
1344
1345
  "{",
1345
- Et(n),
1346
+ Tt(n),
1346
1347
  "}",
1347
1348
  "",
1348
1349
  "To infer the type, either provide:",
@@ -1357,12 +1358,12 @@ class qs extends y {
1357
1358
  });
1358
1359
  }
1359
1360
  }
1360
- class Ks extends y {
1361
+ class Gs extends h {
1361
1362
  constructor({ storageKey: n }) {
1362
1363
  super(`Size for storage key "${n}" is invalid. Expected 32 bytes. Got ${Math.floor((n.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
1363
1364
  }
1364
1365
  }
1365
- function Gs(e) {
1366
+ function Us(e) {
1366
1367
  if (!e || e.length === 0)
1367
1368
  return [];
1368
1369
  const n = [];
@@ -1377,13 +1378,13 @@ function Gs(e) {
1377
1378
  }
1378
1379
  return n;
1379
1380
  }
1380
- function Lt(e) {
1381
+ function Et(e) {
1381
1382
  const { kzg: n } = e, t = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), r = typeof e.blobs[0] == "string" ? e.blobs.map((o) => _(o)) : e.blobs, s = [];
1382
1383
  for (const o of r)
1383
1384
  s.push(Uint8Array.from(n.blobToKzgCommitment(o)));
1384
1385
  return t === "bytes" ? s : s.map((o) => q(o));
1385
1386
  }
1386
- function St(e) {
1387
+ function Lt(e) {
1387
1388
  const { kzg: n } = e, t = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), r = typeof e.blobs[0] == "string" ? e.blobs.map((c) => _(c)) : e.blobs, s = typeof e.commitments[0] == "string" ? e.commitments.map((c) => _(c)) : e.commitments, o = [];
1388
1389
  for (let c = 0; c < r.length; c++) {
1389
1390
  const a = r[c], l = s[c];
@@ -1391,15 +1392,15 @@ function St(e) {
1391
1392
  }
1392
1393
  return t === "bytes" ? o : o.map((c) => q(c));
1393
1394
  }
1394
- function Us(e) {
1395
+ function Rs(e) {
1395
1396
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
1396
1397
  }
1397
- function Qn(e) {
1398
+ function Hn(e) {
1398
1399
  if (!Number.isSafeInteger(e) || e < 0)
1399
1400
  throw new Error("positive integer expected, got " + e);
1400
1401
  }
1401
1402
  function xe(e, ...n) {
1402
- if (!Us(e))
1403
+ if (!Rs(e))
1403
1404
  throw new Error("Uint8Array expected");
1404
1405
  if (n.length > 0 && !n.includes(e.length))
1405
1406
  throw new Error("Uint8Array expected of length " + n + ", got length=" + e.length);
@@ -1410,72 +1411,72 @@ function Ye(e, n = !0) {
1410
1411
  if (n && e.finished)
1411
1412
  throw new Error("Hash#digest() has already been called");
1412
1413
  }
1413
- function Ot(e, n) {
1414
+ function St(e, n) {
1414
1415
  xe(e);
1415
1416
  const t = n.outputLen;
1416
1417
  if (e.length < t)
1417
1418
  throw new Error("digestInto() expects output buffer of length at least " + t);
1418
1419
  }
1419
- function Rs(e) {
1420
+ function _s(e) {
1420
1421
  return new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
1421
1422
  }
1422
1423
  function pe(...e) {
1423
1424
  for (let n = 0; n < e.length; n++)
1424
1425
  e[n].fill(0);
1425
1426
  }
1426
- function en(e) {
1427
+ function $e(e) {
1427
1428
  return new DataView(e.buffer, e.byteOffset, e.byteLength);
1428
1429
  }
1429
1430
  function J(e, n) {
1430
1431
  return e << 32 - n | e >>> n;
1431
1432
  }
1432
- const _s = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
1433
- function $s(e) {
1433
+ const $s = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
1434
+ function ei(e) {
1434
1435
  return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
1435
1436
  }
1436
- function ei(e) {
1437
+ function ni(e) {
1437
1438
  for (let n = 0; n < e.length; n++)
1438
- e[n] = $s(e[n]);
1439
+ e[n] = ei(e[n]);
1439
1440
  return e;
1440
1441
  }
1441
- const qn = _s ? (e) => e : ei;
1442
- function ni(e) {
1442
+ const Qn = $s ? (e) => e : ni;
1443
+ function ti(e) {
1443
1444
  if (typeof e != "string")
1444
1445
  throw new Error("string expected");
1445
1446
  return new Uint8Array(new TextEncoder().encode(e));
1446
1447
  }
1447
- function Mn(e) {
1448
- return typeof e == "string" && (e = ni(e)), xe(e), e;
1448
+ function hn(e) {
1449
+ return typeof e == "string" && (e = ti(e)), xe(e), e;
1449
1450
  }
1450
- class Yt {
1451
+ class Ot {
1451
1452
  }
1452
- function Zt(e) {
1453
- const n = (r) => e().update(Mn(r)).digest(), t = e();
1453
+ function Yt(e) {
1454
+ const n = (r) => e().update(hn(r)).digest(), t = e();
1454
1455
  return n.outputLen = t.outputLen, n.blockLen = t.blockLen, n.create = () => e(), n;
1455
1456
  }
1456
- function ti(e, n, t, r) {
1457
+ function ri(e, n, t, r) {
1457
1458
  if (typeof e.setBigUint64 == "function")
1458
1459
  return e.setBigUint64(n, t, r);
1459
1460
  const s = BigInt(32), o = BigInt(4294967295), c = Number(t >> s & o), a = Number(t & o), l = r ? 4 : 0, A = r ? 0 : 4;
1460
1461
  e.setUint32(n + l, c, r), e.setUint32(n + A, a, r);
1461
1462
  }
1462
- function ri(e, n, t) {
1463
+ function si(e, n, t) {
1463
1464
  return e & n ^ ~e & t;
1464
1465
  }
1465
- function si(e, n, t) {
1466
+ function ii(e, n, t) {
1466
1467
  return e & n ^ e & t ^ n & t;
1467
1468
  }
1468
- class ii extends Yt {
1469
+ class oi extends Ot {
1469
1470
  constructor(n, t, r, s) {
1470
- super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = n, this.outputLen = t, this.padOffset = r, this.isLE = s, this.buffer = new Uint8Array(n), this.view = en(this.buffer);
1471
+ super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = n, this.outputLen = t, this.padOffset = r, this.isLE = s, this.buffer = new Uint8Array(n), this.view = $e(this.buffer);
1471
1472
  }
1472
1473
  update(n) {
1473
- Ye(this), n = Mn(n), xe(n);
1474
+ Ye(this), n = hn(n), xe(n);
1474
1475
  const { view: t, buffer: r, blockLen: s } = this, o = n.length;
1475
1476
  for (let c = 0; c < o; ) {
1476
1477
  const a = Math.min(s - this.pos, o - c);
1477
1478
  if (a === s) {
1478
- const l = en(n);
1479
+ const l = $e(n);
1479
1480
  for (; s <= o - c; c += s)
1480
1481
  this.process(l, c);
1481
1482
  continue;
@@ -1485,14 +1486,14 @@ class ii extends Yt {
1485
1486
  return this.length += n.length, this.roundClean(), this;
1486
1487
  }
1487
1488
  digestInto(n) {
1488
- Ye(this), Ot(n, this), this.finished = !0;
1489
+ Ye(this), St(n, this), this.finished = !0;
1489
1490
  const { buffer: t, view: r, blockLen: s, isLE: o } = this;
1490
1491
  let { pos: c } = this;
1491
1492
  t[c++] = 128, pe(this.buffer.subarray(c)), this.padOffset > s - c && (this.process(r, 0), c = 0);
1492
1493
  for (let f = c; f < s; f++)
1493
1494
  t[f] = 0;
1494
- ti(r, s - 8, BigInt(this.length * 8), o), this.process(r, 0);
1495
- const a = en(n), l = this.outputLen;
1495
+ ri(r, s - 8, BigInt(this.length * 8), o), this.process(r, 0);
1496
+ const a = $e(n), l = this.outputLen;
1496
1497
  if (l % 4)
1497
1498
  throw new Error("_sha2: outputLen should be aligned to 32bit");
1498
1499
  const A = l / 4, d = this.get();
@@ -1525,20 +1526,20 @@ const K = /* @__PURE__ */ Uint32Array.from([
1525
1526
  2600822924,
1526
1527
  528734635,
1527
1528
  1541459225
1528
- ]), We = /* @__PURE__ */ BigInt(2 ** 32 - 1), Kn = /* @__PURE__ */ BigInt(32);
1529
- function oi(e, n = !1) {
1530
- return n ? { h: Number(e & We), l: Number(e >> Kn & We) } : { h: Number(e >> Kn & We) | 0, l: Number(e & We) | 0 };
1531
- }
1529
+ ]), We = /* @__PURE__ */ BigInt(2 ** 32 - 1), qn = /* @__PURE__ */ BigInt(32);
1532
1530
  function ci(e, n = !1) {
1531
+ return n ? { h: Number(e & We), l: Number(e >> qn & We) } : { h: Number(e >> qn & We) | 0, l: Number(e & We) | 0 };
1532
+ }
1533
+ function ai(e, n = !1) {
1533
1534
  const t = e.length;
1534
1535
  let r = new Uint32Array(t), s = new Uint32Array(t);
1535
1536
  for (let o = 0; o < t; o++) {
1536
- const { h: c, l: a } = oi(e[o], n);
1537
+ const { h: c, l: a } = ci(e[o], n);
1537
1538
  [r[o], s[o]] = [c, a];
1538
1539
  }
1539
1540
  return [r, s];
1540
1541
  }
1541
- const ai = (e, n, t) => e << t | n >>> 32 - t, li = (e, n, t) => n << t | e >>> 32 - t, Ai = (e, n, t) => n << t - 32 | e >>> 64 - t, di = (e, n, t) => e << t - 32 | n >>> 64 - t, fi = /* @__PURE__ */ Uint32Array.from([
1542
+ const li = (e, n, t) => e << t | n >>> 32 - t, Ai = (e, n, t) => n << t | e >>> 32 - t, di = (e, n, t) => n << t - 32 | e >>> 64 - t, fi = (e, n, t) => e << t - 32 | n >>> 64 - t, ui = /* @__PURE__ */ Uint32Array.from([
1542
1543
  1116352408,
1543
1544
  1899447441,
1544
1545
  3049323471,
@@ -1604,7 +1605,7 @@ const ai = (e, n, t) => e << t | n >>> 32 - t, li = (e, n, t) => n << t | e >>>
1604
1605
  3204031479,
1605
1606
  3329325298
1606
1607
  ]), G = /* @__PURE__ */ new Uint32Array(64);
1607
- class ui extends ii {
1608
+ class gi extends oi {
1608
1609
  constructor(n = 32) {
1609
1610
  super(64, n, 8, !1), this.A = K[0] | 0, this.B = K[1] | 0, this.C = K[2] | 0, this.D = K[3] | 0, this.E = K[4] | 0, this.F = K[5] | 0, this.G = K[6] | 0, this.H = K[7] | 0;
1610
1611
  }
@@ -1620,13 +1621,13 @@ class ui extends ii {
1620
1621
  for (let f = 0; f < 16; f++, t += 4)
1621
1622
  G[f] = n.getUint32(t, !1);
1622
1623
  for (let f = 16; f < 64; f++) {
1623
- const g = G[f - 15], u = G[f - 2], x = J(g, 7) ^ J(g, 18) ^ g >>> 3, C = J(u, 17) ^ J(u, 19) ^ u >>> 10;
1624
- G[f] = C + G[f - 7] + x + G[f - 16] | 0;
1624
+ const u = G[f - 15], g = G[f - 2], x = J(u, 7) ^ J(u, 18) ^ u >>> 3, v = J(g, 17) ^ J(g, 19) ^ g >>> 10;
1625
+ G[f] = v + G[f - 7] + x + G[f - 16] | 0;
1625
1626
  }
1626
1627
  let { A: r, B: s, C: o, D: c, E: a, F: l, G: A, H: d } = this;
1627
1628
  for (let f = 0; f < 64; f++) {
1628
- const g = J(a, 6) ^ J(a, 11) ^ J(a, 25), u = d + g + ri(a, l, A) + fi[f] + G[f] | 0, C = (J(r, 2) ^ J(r, 13) ^ J(r, 22)) + si(r, s, o) | 0;
1629
- d = A, A = l, l = a, a = c + u | 0, c = o, o = s, s = r, r = u + C | 0;
1629
+ const u = J(a, 6) ^ J(a, 11) ^ J(a, 25), g = d + u + si(a, l, A) + ui[f] + G[f] | 0, v = (J(r, 2) ^ J(r, 13) ^ J(r, 22)) + ii(r, s, o) | 0;
1630
+ d = A, A = l, l = a, a = c + g | 0, c = o, o = s, s = r, r = g + v | 0;
1630
1631
  }
1631
1632
  r = r + this.A | 0, s = s + this.B | 0, o = o + this.C | 0, c = c + this.D | 0, a = a + this.E | 0, l = l + this.F | 0, A = A + this.G | 0, d = d + this.H | 0, this.set(r, s, o, c, a, l, A, d);
1632
1633
  }
@@ -1637,28 +1638,28 @@ class ui extends ii {
1637
1638
  this.set(0, 0, 0, 0, 0, 0, 0, 0), pe(this.buffer);
1638
1639
  }
1639
1640
  }
1640
- const gi = /* @__PURE__ */ Zt(() => new ui()), vi = gi;
1641
- function Ci(e, n) {
1642
- return vi(Ie(e, { strict: !1 }) ? Mt(e) : e);
1641
+ const vi = /* @__PURE__ */ Yt(() => new gi()), Ci = vi;
1642
+ function mi(e, n) {
1643
+ return Ci(Ie(e, { strict: !1 }) ? ht(e) : e);
1643
1644
  }
1644
- function mi(e) {
1645
- const { commitment: n, version: t = 1 } = e, r = e.to ?? (typeof n == "string" ? "hex" : "bytes"), s = Ci(n);
1645
+ function xi(e) {
1646
+ const { commitment: n, version: t = 1 } = e, r = e.to ?? (typeof n == "string" ? "hex" : "bytes"), s = mi(n);
1646
1647
  return s.set([t], 0), r === "bytes" ? s : q(s);
1647
1648
  }
1648
- function xi(e) {
1649
+ function pi(e) {
1649
1650
  const { commitments: n, version: t } = e, r = e.to ?? (typeof n[0] == "string" ? "hex" : "bytes"), s = [];
1650
1651
  for (const o of n)
1651
- s.push(mi({
1652
+ s.push(xi({
1652
1653
  commitment: o,
1653
1654
  to: r,
1654
1655
  version: t
1655
1656
  }));
1656
1657
  return s;
1657
1658
  }
1658
- const Gn = 6, kt = 32, Wn = 4096, Jt = kt * Wn, Un = Jt * Gn - // terminator byte (0x80).
1659
+ const Kn = 6, Zt = 32, Mn = 4096, kt = Zt * Mn, Gn = kt * Kn - // terminator byte (0x80).
1659
1660
  1 - // zero byte (0x00) appended to each field element.
1660
- 1 * Wn * Gn, Ft = 1;
1661
- class pi extends y {
1661
+ 1 * Mn * Kn, Jt = 1;
1662
+ class bi extends h {
1662
1663
  constructor({ maxSize: n, size: t }) {
1663
1664
  super("Blob size is too large.", {
1664
1665
  metaMessages: [`Max: ${n} bytes`, `Given: ${t} bytes`],
@@ -1666,12 +1667,12 @@ class pi extends y {
1666
1667
  });
1667
1668
  }
1668
1669
  }
1669
- class Dt extends y {
1670
+ class Ft extends h {
1670
1671
  constructor() {
1671
1672
  super("Blob data must not be empty.", { name: "EmptyBlobError" });
1672
1673
  }
1673
1674
  }
1674
- class bi extends y {
1675
+ class zi extends h {
1675
1676
  constructor({ hash: n, size: t }) {
1676
1677
  super(`Versioned hash "${n}" size is invalid.`, {
1677
1678
  metaMessages: ["Expected: 32", `Received: ${t}`],
@@ -1679,33 +1680,33 @@ class bi extends y {
1679
1680
  });
1680
1681
  }
1681
1682
  }
1682
- class zi extends y {
1683
+ class wi extends h {
1683
1684
  constructor({ hash: n, version: t }) {
1684
1685
  super(`Versioned hash "${n}" version is invalid.`, {
1685
1686
  metaMessages: [
1686
- `Expected: ${Ft}`,
1687
+ `Expected: ${Jt}`,
1687
1688
  `Received: ${t}`
1688
1689
  ],
1689
1690
  name: "InvalidVersionedHashVersionError"
1690
1691
  });
1691
1692
  }
1692
1693
  }
1693
- function wi(e) {
1694
+ function Ii(e) {
1694
1695
  const n = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), t = typeof e.data == "string" ? _(e.data) : e.data, r = ae(t);
1695
1696
  if (!r)
1696
- throw new Dt();
1697
- if (r > Un)
1698
- throw new pi({
1699
- maxSize: Un,
1697
+ throw new Ft();
1698
+ if (r > Gn)
1699
+ throw new bi({
1700
+ maxSize: Gn,
1700
1701
  size: r
1701
1702
  });
1702
1703
  const s = [];
1703
1704
  let o = !0, c = 0;
1704
1705
  for (; o; ) {
1705
- const a = Xt(new Uint8Array(Jt));
1706
+ const a = Vt(new Uint8Array(kt));
1706
1707
  let l = 0;
1707
- for (; l < Wn; ) {
1708
- const A = t.slice(c, c + (kt - 1));
1708
+ for (; l < Mn; ) {
1709
+ const A = t.slice(c, c + (Zt - 1));
1709
1710
  if (a.pushByte(0), a.pushBytes(A), A.length < 31) {
1710
1711
  a.pushByte(128), o = !1;
1711
1712
  break;
@@ -1716,8 +1717,8 @@ function wi(e) {
1716
1717
  }
1717
1718
  return n === "bytes" ? s.map((a) => a.bytes) : s.map((a) => q(a.bytes));
1718
1719
  }
1719
- function Ii(e) {
1720
- const { data: n, kzg: t, to: r } = e, s = e.blobs ?? wi({ data: n, to: r }), o = e.commitments ?? Lt({ blobs: s, kzg: t, to: r }), c = e.proofs ?? St({ blobs: s, commitments: o, kzg: t, to: r }), a = [];
1720
+ function Pi(e) {
1721
+ const { data: n, kzg: t, to: r } = e, s = e.blobs ?? Ii({ data: n, to: r }), o = e.commitments ?? Et({ blobs: s, kzg: t, to: r }), c = e.proofs ?? Lt({ blobs: s, commitments: o, kzg: t, to: r }), a = [];
1721
1722
  for (let l = 0; l < s.length; l++)
1722
1723
  a.push({
1723
1724
  blob: s[l],
@@ -1726,7 +1727,7 @@ function Ii(e) {
1726
1727
  });
1727
1728
  return a;
1728
1729
  }
1729
- class H extends y {
1730
+ class H extends h {
1730
1731
  constructor({ address: n }) {
1731
1732
  super(`Address "${n}" is invalid.`, {
1732
1733
  metaMessages: [
@@ -1737,12 +1738,12 @@ class H extends y {
1737
1738
  });
1738
1739
  }
1739
1740
  }
1740
- class He extends y {
1741
+ class He extends h {
1741
1742
  constructor({ chainId: n }) {
1742
1743
  super(typeof n == "number" ? `Chain ID "${n}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
1743
1744
  }
1744
1745
  }
1745
- class ie extends y {
1746
+ class ie extends h {
1746
1747
  constructor({ cause: n, message: t } = {}) {
1747
1748
  const r = t?.replace("execution reverted: ", "")?.replace("execution reverted", "");
1748
1749
  super(`Execution reverted ${r ? `with reason: ${r}` : "for an unknown reason"}.`, {
@@ -1763,7 +1764,7 @@ Object.defineProperty(ie, "nodeMessage", {
1763
1764
  writable: !0,
1764
1765
  value: /execution reverted/
1765
1766
  });
1766
- class ee extends y {
1767
+ class ee extends h {
1767
1768
  constructor({ cause: n, maxFeePerGas: t } = {}) {
1768
1769
  super(`The fee cap (\`maxFeePerGas\`${t ? ` = ${R(t)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
1769
1770
  cause: n,
@@ -1777,7 +1778,7 @@ Object.defineProperty(ee, "nodeMessage", {
1777
1778
  writable: !0,
1778
1779
  value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
1779
1780
  });
1780
- class An extends y {
1781
+ class ln extends h {
1781
1782
  constructor({ cause: n, maxFeePerGas: t } = {}) {
1782
1783
  super(`The fee cap (\`maxFeePerGas\`${t ? ` = ${R(t)}` : ""} gwei) cannot be lower than the block base fee.`, {
1783
1784
  cause: n,
@@ -1785,24 +1786,24 @@ class An extends y {
1785
1786
  });
1786
1787
  }
1787
1788
  }
1788
- Object.defineProperty(An, "nodeMessage", {
1789
+ Object.defineProperty(ln, "nodeMessage", {
1789
1790
  enumerable: !0,
1790
1791
  configurable: !0,
1791
1792
  writable: !0,
1792
1793
  value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
1793
1794
  });
1794
- class dn extends y {
1795
+ class An extends h {
1795
1796
  constructor({ cause: n, nonce: t } = {}) {
1796
1797
  super(`Nonce provided for the transaction ${t ? `(${t}) ` : ""}is higher than the next one expected.`, { cause: n, name: "NonceTooHighError" });
1797
1798
  }
1798
1799
  }
1799
- Object.defineProperty(dn, "nodeMessage", {
1800
+ Object.defineProperty(An, "nodeMessage", {
1800
1801
  enumerable: !0,
1801
1802
  configurable: !0,
1802
1803
  writable: !0,
1803
1804
  value: /nonce too high/
1804
1805
  });
1805
- class fn extends y {
1806
+ class dn extends h {
1806
1807
  constructor({ cause: n, nonce: t } = {}) {
1807
1808
  super([
1808
1809
  `Nonce provided for the transaction ${t ? `(${t}) ` : ""}is lower than the current nonce of the account.`,
@@ -1811,24 +1812,24 @@ class fn extends y {
1811
1812
  `), { cause: n, name: "NonceTooLowError" });
1812
1813
  }
1813
1814
  }
1814
- Object.defineProperty(fn, "nodeMessage", {
1815
+ Object.defineProperty(dn, "nodeMessage", {
1815
1816
  enumerable: !0,
1816
1817
  configurable: !0,
1817
1818
  writable: !0,
1818
1819
  value: /nonce too low|transaction already imported|already known/
1819
1820
  });
1820
- class un extends y {
1821
+ class fn extends h {
1821
1822
  constructor({ cause: n, nonce: t } = {}) {
1822
1823
  super(`Nonce provided for the transaction ${t ? `(${t}) ` : ""}exceeds the maximum allowed nonce.`, { cause: n, name: "NonceMaxValueError" });
1823
1824
  }
1824
1825
  }
1825
- Object.defineProperty(un, "nodeMessage", {
1826
+ Object.defineProperty(fn, "nodeMessage", {
1826
1827
  enumerable: !0,
1827
1828
  configurable: !0,
1828
1829
  writable: !0,
1829
1830
  value: /nonce has max value/
1830
1831
  });
1831
- class gn extends y {
1832
+ class un extends h {
1832
1833
  constructor({ cause: n } = {}) {
1833
1834
  super([
1834
1835
  "The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
@@ -1849,13 +1850,13 @@ class gn extends y {
1849
1850
  });
1850
1851
  }
1851
1852
  }
1852
- Object.defineProperty(gn, "nodeMessage", {
1853
+ Object.defineProperty(un, "nodeMessage", {
1853
1854
  enumerable: !0,
1854
1855
  configurable: !0,
1855
1856
  writable: !0,
1856
1857
  value: /insufficient funds|exceeds transaction sender account balance/
1857
1858
  });
1858
- class vn extends y {
1859
+ class gn extends h {
1859
1860
  constructor({ cause: n, gas: t } = {}) {
1860
1861
  super(`The amount of gas ${t ? `(${t}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
1861
1862
  cause: n,
@@ -1863,13 +1864,13 @@ class vn extends y {
1863
1864
  });
1864
1865
  }
1865
1866
  }
1866
- Object.defineProperty(vn, "nodeMessage", {
1867
+ Object.defineProperty(gn, "nodeMessage", {
1867
1868
  enumerable: !0,
1868
1869
  configurable: !0,
1869
1870
  writable: !0,
1870
1871
  value: /intrinsic gas too high|gas limit reached/
1871
1872
  });
1872
- class Cn extends y {
1873
+ class vn extends h {
1873
1874
  constructor({ cause: n, gas: t } = {}) {
1874
1875
  super(`The amount of gas ${t ? `(${t}) ` : ""}provided for the transaction is too low.`, {
1875
1876
  cause: n,
@@ -1877,13 +1878,13 @@ class Cn extends y {
1877
1878
  });
1878
1879
  }
1879
1880
  }
1880
- Object.defineProperty(Cn, "nodeMessage", {
1881
+ Object.defineProperty(vn, "nodeMessage", {
1881
1882
  enumerable: !0,
1882
1883
  configurable: !0,
1883
1884
  writable: !0,
1884
1885
  value: /intrinsic gas too low/
1885
1886
  });
1886
- class mn extends y {
1887
+ class Cn extends h {
1887
1888
  constructor({ cause: n }) {
1888
1889
  super("The transaction type is not supported for this chain.", {
1889
1890
  cause: n,
@@ -1891,13 +1892,13 @@ class mn extends y {
1891
1892
  });
1892
1893
  }
1893
1894
  }
1894
- Object.defineProperty(mn, "nodeMessage", {
1895
+ Object.defineProperty(Cn, "nodeMessage", {
1895
1896
  enumerable: !0,
1896
1897
  configurable: !0,
1897
1898
  writable: !0,
1898
1899
  value: /transaction type not valid/
1899
1900
  });
1900
- class be extends y {
1901
+ class be extends h {
1901
1902
  constructor({ cause: n, maxPriorityFeePerGas: t, maxFeePerGas: r } = {}) {
1902
1903
  super([
1903
1904
  `The provided tip (\`maxPriorityFeePerGas\`${t ? ` = ${R(t)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r ? ` = ${R(r)} gwei` : ""}).`
@@ -1914,7 +1915,7 @@ Object.defineProperty(be, "nodeMessage", {
1914
1915
  writable: !0,
1915
1916
  value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
1916
1917
  });
1917
- class Ht extends y {
1918
+ class Dt extends h {
1918
1919
  constructor({ cause: n }) {
1919
1920
  super(`An error occurred while executing: ${n?.shortMessage}`, {
1920
1921
  cause: n,
@@ -1922,7 +1923,7 @@ class Ht extends y {
1922
1923
  });
1923
1924
  }
1924
1925
  }
1925
- class Qt extends Map {
1926
+ class Ht extends Map {
1926
1927
  constructor(n) {
1927
1928
  super(), Object.defineProperty(this, "maxSize", {
1928
1929
  enumerable: !0,
@@ -1943,28 +1944,28 @@ class Qt extends Map {
1943
1944
  return this;
1944
1945
  }
1945
1946
  }
1946
- const Pi = BigInt(0), ue = BigInt(1), Bi = BigInt(2), yi = BigInt(7), hi = BigInt(256), Mi = BigInt(113), qt = [], Kt = [], Gt = [];
1947
+ const Bi = BigInt(0), ue = BigInt(1), yi = BigInt(2), hi = BigInt(7), Mi = BigInt(256), Wi = BigInt(113), Qt = [], qt = [], Kt = [];
1947
1948
  for (let e = 0, n = ue, t = 1, r = 0; e < 24; e++) {
1948
- [t, r] = [r, (2 * t + 3 * r) % 5], qt.push(2 * (5 * r + t)), Kt.push((e + 1) * (e + 2) / 2 % 64);
1949
- let s = Pi;
1949
+ [t, r] = [r, (2 * t + 3 * r) % 5], Qt.push(2 * (5 * r + t)), qt.push((e + 1) * (e + 2) / 2 % 64);
1950
+ let s = Bi;
1950
1951
  for (let o = 0; o < 7; o++)
1951
- n = (n << ue ^ (n >> yi) * Mi) % hi, n & Bi && (s ^= ue << (ue << /* @__PURE__ */ BigInt(o)) - ue);
1952
- Gt.push(s);
1952
+ n = (n << ue ^ (n >> hi) * Wi) % Mi, n & yi && (s ^= ue << (ue << /* @__PURE__ */ BigInt(o)) - ue);
1953
+ Kt.push(s);
1953
1954
  }
1954
- const Ut = ci(Gt, !0), Wi = Ut[0], Vi = Ut[1], Rn = (e, n, t) => t > 32 ? Ai(e, n, t) : ai(e, n, t), _n = (e, n, t) => t > 32 ? di(e, n, t) : li(e, n, t);
1955
- function Xi(e, n = 24) {
1955
+ const Gt = ai(Kt, !0), Vi = Gt[0], Xi = Gt[1], Un = (e, n, t) => t > 32 ? di(e, n, t) : li(e, n, t), Rn = (e, n, t) => t > 32 ? fi(e, n, t) : Ai(e, n, t);
1956
+ function Ni(e, n = 24) {
1956
1957
  const t = new Uint32Array(10);
1957
1958
  for (let r = 24 - n; r < 24; r++) {
1958
1959
  for (let c = 0; c < 10; c++)
1959
1960
  t[c] = e[c] ^ e[c + 10] ^ e[c + 20] ^ e[c + 30] ^ e[c + 40];
1960
1961
  for (let c = 0; c < 10; c += 2) {
1961
- const a = (c + 8) % 10, l = (c + 2) % 10, A = t[l], d = t[l + 1], f = Rn(A, d, 1) ^ t[a], g = _n(A, d, 1) ^ t[a + 1];
1962
- for (let u = 0; u < 50; u += 10)
1963
- e[c + u] ^= f, e[c + u + 1] ^= g;
1962
+ const a = (c + 8) % 10, l = (c + 2) % 10, A = t[l], d = t[l + 1], f = Un(A, d, 1) ^ t[a], u = Rn(A, d, 1) ^ t[a + 1];
1963
+ for (let g = 0; g < 50; g += 10)
1964
+ e[c + g] ^= f, e[c + g + 1] ^= u;
1964
1965
  }
1965
1966
  let s = e[2], o = e[3];
1966
1967
  for (let c = 0; c < 24; c++) {
1967
- const a = Kt[c], l = Rn(s, o, a), A = _n(s, o, a), d = qt[c];
1968
+ const a = qt[c], l = Un(s, o, a), A = Rn(s, o, a), d = Qt[c];
1968
1969
  s = e[d], o = e[d + 1], e[d] = l, e[d + 1] = A;
1969
1970
  }
1970
1971
  for (let c = 0; c < 50; c += 10) {
@@ -1973,25 +1974,25 @@ function Xi(e, n = 24) {
1973
1974
  for (let a = 0; a < 10; a++)
1974
1975
  e[c + a] ^= ~t[(a + 2) % 10] & t[(a + 4) % 10];
1975
1976
  }
1976
- e[0] ^= Wi[r], e[1] ^= Vi[r];
1977
+ e[0] ^= Vi[r], e[1] ^= Xi[r];
1977
1978
  }
1978
1979
  pe(t);
1979
1980
  }
1980
- class Vn extends Yt {
1981
+ class Wn extends Ot {
1981
1982
  // NOTE: we accept arguments in bytes instead of bits here.
1982
1983
  constructor(n, t, r, s = !1, o = 24) {
1983
- if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = n, this.suffix = t, this.outputLen = r, this.enableXOF = s, this.rounds = o, Qn(r), !(0 < n && n < 200))
1984
+ if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = n, this.suffix = t, this.outputLen = r, this.enableXOF = s, this.rounds = o, Hn(r), !(0 < n && n < 200))
1984
1985
  throw new Error("only keccak-f1600 function is supported");
1985
- this.state = new Uint8Array(200), this.state32 = Rs(this.state);
1986
+ this.state = new Uint8Array(200), this.state32 = _s(this.state);
1986
1987
  }
1987
1988
  clone() {
1988
1989
  return this._cloneInto();
1989
1990
  }
1990
1991
  keccak() {
1991
- qn(this.state32), Xi(this.state32, this.rounds), qn(this.state32), this.posOut = 0, this.pos = 0;
1992
+ Qn(this.state32), Ni(this.state32, this.rounds), Qn(this.state32), this.posOut = 0, this.pos = 0;
1992
1993
  }
1993
1994
  update(n) {
1994
- Ye(this), n = Mn(n), xe(n);
1995
+ Ye(this), n = hn(n), xe(n);
1995
1996
  const { blockLen: t, state: r } = this, s = n.length;
1996
1997
  for (let o = 0; o < s; ) {
1997
1998
  const c = Math.min(t - this.pos, s - o);
@@ -2024,10 +2025,10 @@ class Vn extends Yt {
2024
2025
  return this.writeInto(n);
2025
2026
  }
2026
2027
  xof(n) {
2027
- return Qn(n), this.xofInto(new Uint8Array(n));
2028
+ return Hn(n), this.xofInto(new Uint8Array(n));
2028
2029
  }
2029
2030
  digestInto(n) {
2030
- if (Ot(n, this), this.finished)
2031
+ if (St(n, this), this.finished)
2031
2032
  throw new Error("digest() was already called");
2032
2033
  return this.writeInto(n), this.destroy(), n;
2033
2034
  }
@@ -2039,55 +2040,55 @@ class Vn extends Yt {
2039
2040
  }
2040
2041
  _cloneInto(n) {
2041
2042
  const { blockLen: t, suffix: r, outputLen: s, rounds: o, enableXOF: c } = this;
2042
- return n || (n = new Vn(t, r, s, c, o)), n.state32.set(this.state32), n.pos = this.pos, n.posOut = this.posOut, n.finished = this.finished, n.rounds = o, n.suffix = r, n.outputLen = s, n.enableXOF = c, n.destroyed = this.destroyed, n;
2043
+ return n || (n = new Wn(t, r, s, c, o)), n.state32.set(this.state32), n.pos = this.pos, n.posOut = this.posOut, n.finished = this.finished, n.rounds = o, n.suffix = r, n.outputLen = s, n.enableXOF = c, n.destroyed = this.destroyed, n;
2043
2044
  }
2044
2045
  }
2045
- const Ni = (e, n, t) => Zt(() => new Vn(n, e, t)), ji = Ni(1, 136, 256 / 8);
2046
- function Ti(e, n) {
2047
- return ji(Ie(e, { strict: !1 }) ? Mt(e) : e);
2048
- }
2049
- const nn = /* @__PURE__ */ new Qt(8192);
2046
+ const ji = (e, n, t) => Yt(() => new Wn(n, e, t)), Ti = ji(1, 136, 256 / 8);
2050
2047
  function Ei(e, n) {
2051
- if (nn.has(`${e}.${n}`))
2052
- return nn.get(`${e}.${n}`);
2053
- const t = e.substring(2).toLowerCase(), r = Ti(Wt(t)), s = t.split("");
2048
+ return Ti(Ie(e, { strict: !1 }) ? ht(e) : e);
2049
+ }
2050
+ const en = /* @__PURE__ */ new Ht(8192);
2051
+ function Li(e, n) {
2052
+ if (en.has(`${e}.${n}`))
2053
+ return en.get(`${e}.${n}`);
2054
+ const t = e.substring(2).toLowerCase(), r = Ei(Mt(t)), s = t.split("");
2054
2055
  for (let c = 0; c < 40; c += 2)
2055
2056
  r[c >> 1] >> 4 >= 8 && s[c] && (s[c] = s[c].toUpperCase()), (r[c >> 1] & 15) >= 8 && s[c + 1] && (s[c + 1] = s[c + 1].toUpperCase());
2056
2057
  const o = `0x${s.join("")}`;
2057
- return nn.set(`${e}.${n}`, o), o;
2058
+ return en.set(`${e}.${n}`, o), o;
2058
2059
  }
2059
- const Li = /^0x[a-fA-F0-9]{40}$/, tn = /* @__PURE__ */ new Qt(8192);
2060
+ const Si = /^0x[a-fA-F0-9]{40}$/, nn = /* @__PURE__ */ new Ht(8192);
2060
2061
  function Q(e, n) {
2061
2062
  const { strict: t = !0 } = n ?? {}, r = `${e}.${t}`;
2062
- if (tn.has(r))
2063
- return tn.get(r);
2064
- const s = Li.test(e) ? e.toLowerCase() === e ? !0 : t ? Ei(e) === e : !0 : !1;
2065
- return tn.set(r, s), s;
2063
+ if (nn.has(r))
2064
+ return nn.get(r);
2065
+ const s = Si.test(e) ? e.toLowerCase() === e ? !0 : t ? Li(e) === e : !0 : !1;
2066
+ return nn.set(r, s), s;
2066
2067
  }
2067
- function Si(e, n, t, { strict: r } = {}) {
2068
- return Ie(e, { strict: !1 }) ? Yi(e, n, t, {
2068
+ function Oi(e, n, t, { strict: r } = {}) {
2069
+ return Ie(e, { strict: !1 }) ? Zi(e, n, t, {
2069
2070
  strict: r
2070
- }) : Oi(e, n, t, {
2071
+ }) : Yi(e, n, t, {
2071
2072
  strict: r
2072
2073
  });
2073
2074
  }
2074
- function Rt(e, n, t) {
2075
+ function Ut(e, n, t) {
2075
2076
  if (ae(e) !== t - n)
2076
- throw new Cs({
2077
+ throw new ms({
2077
2078
  offset: t,
2078
2079
  position: "end",
2079
2080
  size: ae(e)
2080
2081
  });
2081
2082
  }
2082
- function Oi(e, n, t, { strict: r } = {}) {
2083
+ function Yi(e, n, t, { strict: r } = {}) {
2083
2084
  const s = e.slice(n, t);
2084
- return r && Rt(s, n, t), s;
2085
+ return r && Ut(s, n, t), s;
2085
2086
  }
2086
- function Yi(e, n, t, { strict: r } = {}) {
2087
+ function Zi(e, n, t, { strict: r } = {}) {
2087
2088
  const s = `0x${e.replace("0x", "").slice(n * 2, t * 2)}`;
2088
- return r && Rt(s, n, t), s;
2089
+ return r && Ut(s, n, t), s;
2089
2090
  }
2090
- function Zi(e) {
2091
+ function ki(e) {
2091
2092
  const { authorizationList: n } = e;
2092
2093
  if (n)
2093
2094
  for (const t of n) {
@@ -2097,27 +2098,27 @@ function Zi(e) {
2097
2098
  if (r < 0)
2098
2099
  throw new He({ chainId: r });
2099
2100
  }
2100
- Xn(e);
2101
+ Vn(e);
2101
2102
  }
2102
- function ki(e) {
2103
+ function Ji(e) {
2103
2104
  const { blobVersionedHashes: n } = e;
2104
2105
  if (n) {
2105
2106
  if (n.length === 0)
2106
- throw new Dt();
2107
+ throw new Ft();
2107
2108
  for (const t of n) {
2108
- const r = ae(t), s = Oe(Si(t, 0, 1));
2109
+ const r = ae(t), s = Oe(Oi(t, 0, 1));
2109
2110
  if (r !== 32)
2110
- throw new bi({ hash: t, size: r });
2111
- if (s !== Ft)
2112
- throw new zi({
2111
+ throw new zi({ hash: t, size: r });
2112
+ if (s !== Jt)
2113
+ throw new wi({
2113
2114
  hash: t,
2114
2115
  version: s
2115
2116
  });
2116
2117
  }
2117
2118
  }
2118
- Xn(e);
2119
+ Vn(e);
2119
2120
  }
2120
- function Xn(e) {
2121
+ function Vn(e) {
2121
2122
  const { chainId: n, maxPriorityFeePerGas: t, maxFeePerGas: r, to: s } = e;
2122
2123
  if (n <= 0)
2123
2124
  throw new He({ chainId: n });
@@ -2128,29 +2129,29 @@ function Xn(e) {
2128
2129
  if (t && r && t > r)
2129
2130
  throw new be({ maxFeePerGas: r, maxPriorityFeePerGas: t });
2130
2131
  }
2131
- function Ji(e) {
2132
+ function Fi(e) {
2132
2133
  const { chainId: n, maxPriorityFeePerGas: t, gasPrice: r, maxFeePerGas: s, to: o } = e;
2133
2134
  if (n <= 0)
2134
2135
  throw new He({ chainId: n });
2135
2136
  if (o && !Q(o))
2136
2137
  throw new H({ address: o });
2137
2138
  if (t || s)
2138
- throw new y("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
2139
+ throw new h("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
2139
2140
  if (r && r > De)
2140
2141
  throw new ee({ maxFeePerGas: r });
2141
2142
  }
2142
- function Fi(e) {
2143
+ function Di(e) {
2143
2144
  const { chainId: n, maxPriorityFeePerGas: t, gasPrice: r, maxFeePerGas: s, to: o } = e;
2144
2145
  if (o && !Q(o))
2145
2146
  throw new H({ address: o });
2146
2147
  if (typeof n < "u" && n <= 0)
2147
2148
  throw new He({ chainId: n });
2148
2149
  if (t || s)
2149
- throw new y("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
2150
+ throw new h("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
2150
2151
  if (r && r > De)
2151
2152
  throw new ee({ maxFeePerGas: r });
2152
2153
  }
2153
- function Di(e) {
2154
+ function Hi(e) {
2154
2155
  if (e.type)
2155
2156
  return e.type;
2156
2157
  if (typeof e.authorizationList < "u")
@@ -2161,7 +2162,7 @@ function Di(e) {
2161
2162
  return "eip1559";
2162
2163
  if (typeof e.gasPrice < "u")
2163
2164
  return typeof e.accessList < "u" ? "eip2930" : "legacy";
2164
- throw new qs({ transaction: e });
2165
+ throw new Ks({ transaction: e });
2165
2166
  }
2166
2167
  function Qe(e) {
2167
2168
  if (!e || e.length === 0)
@@ -2171,21 +2172,21 @@ function Qe(e) {
2171
2172
  const { address: r, storageKeys: s } = e[t];
2172
2173
  for (let o = 0; o < s.length; o++)
2173
2174
  if (s[o].length - 2 !== 64)
2174
- throw new Ks({ storageKey: s[o] });
2175
+ throw new Gs({ storageKey: s[o] });
2175
2176
  if (!Q(r, { strict: !1 }))
2176
2177
  throw new H({ address: r });
2177
2178
  n.push([r, s]);
2178
2179
  }
2179
2180
  return n;
2180
2181
  }
2181
- function Hi(e, n) {
2182
- const t = Di(e);
2183
- return t === "eip1559" ? Ki(e, n) : t === "eip2930" ? Gi(e, n) : t === "eip4844" ? qi(e, n) : t === "eip7702" ? Qi(e, n) : Ui(e, n);
2184
- }
2185
2182
  function Qi(e, n) {
2183
+ const t = Hi(e);
2184
+ return t === "eip1559" ? Gi(e, n) : t === "eip2930" ? Ui(e, n) : t === "eip4844" ? Ki(e, n) : t === "eip7702" ? qi(e, n) : Ri(e, n);
2185
+ }
2186
+ function qi(e, n) {
2186
2187
  const { authorizationList: t, chainId: r, gas: s, nonce: o, to: c, value: a, maxFeePerGas: l, maxPriorityFeePerGas: A, accessList: d, data: f } = e;
2187
- Zi(e);
2188
- const g = Qe(d), u = Gs(t);
2188
+ ki(e);
2189
+ const u = Qe(d), g = Us(t);
2189
2190
  return Pe([
2190
2191
  "0x04",
2191
2192
  $([
@@ -2197,29 +2198,29 @@ function Qi(e, n) {
2197
2198
  c ?? "0x",
2198
2199
  a ? z(a) : "0x",
2199
2200
  f ?? "0x",
2200
- g,
2201
2201
  u,
2202
+ g,
2202
2203
  ...Be(e, n)
2203
2204
  ])
2204
2205
  ]);
2205
2206
  }
2206
- function qi(e, n) {
2207
+ function Ki(e, n) {
2207
2208
  const { chainId: t, gas: r, nonce: s, to: o, value: c, maxFeePerBlobGas: a, maxFeePerGas: l, maxPriorityFeePerGas: A, accessList: d, data: f } = e;
2208
- ki(e);
2209
- let g = e.blobVersionedHashes, u = e.sidecars;
2210
- if (e.blobs && (typeof g > "u" || typeof u > "u")) {
2211
- const b = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((j) => q(j)), w = e.kzg, I = Lt({
2209
+ Ji(e);
2210
+ let u = e.blobVersionedHashes, g = e.sidecars;
2211
+ if (e.blobs && (typeof u > "u" || typeof g > "u")) {
2212
+ const b = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((j) => q(j)), w = e.kzg, I = Et({
2212
2213
  blobs: b,
2213
2214
  kzg: w
2214
2215
  });
2215
- if (typeof g > "u" && (g = xi({
2216
+ if (typeof u > "u" && (u = pi({
2216
2217
  commitments: I
2217
- })), typeof u > "u") {
2218
- const j = St({ blobs: b, commitments: I, kzg: w });
2219
- u = Ii({ blobs: b, commitments: I, proofs: j });
2218
+ })), typeof g > "u") {
2219
+ const j = Lt({ blobs: b, commitments: I, kzg: w });
2220
+ g = Pi({ blobs: b, commitments: I, proofs: j });
2220
2221
  }
2221
2222
  }
2222
- const x = Qe(d), C = [
2223
+ const x = Qe(d), v = [
2223
2224
  z(t),
2224
2225
  s ? z(s) : "0x",
2225
2226
  A ? z(A) : "0x",
@@ -2230,24 +2231,24 @@ function qi(e, n) {
2230
2231
  f ?? "0x",
2231
2232
  x,
2232
2233
  a ? z(a) : "0x",
2233
- g ?? [],
2234
+ u ?? [],
2234
2235
  ...Be(e, n)
2235
- ], m = [], p = [], h = [];
2236
- if (u)
2237
- for (let b = 0; b < u.length; b++) {
2238
- const { blob: w, commitment: I, proof: j } = u[b];
2239
- m.push(w), p.push(I), h.push(j);
2236
+ ], m = [], p = [], y = [];
2237
+ if (g)
2238
+ for (let b = 0; b < g.length; b++) {
2239
+ const { blob: w, commitment: I, proof: j } = g[b];
2240
+ m.push(w), p.push(I), y.push(j);
2240
2241
  }
2241
2242
  return Pe([
2242
2243
  "0x03",
2243
2244
  // If sidecars are enabled, envelope turns into a "wrapper":
2244
- $(u ? [C, m, p, h] : C)
2245
+ $(g ? [v, m, p, y] : v)
2245
2246
  ]);
2246
2247
  }
2247
- function Ki(e, n) {
2248
+ function Gi(e, n) {
2248
2249
  const { chainId: t, gas: r, nonce: s, to: o, value: c, maxFeePerGas: a, maxPriorityFeePerGas: l, accessList: A, data: d } = e;
2249
- Xn(e);
2250
- const f = Qe(A), g = [
2250
+ Vn(e);
2251
+ const f = Qe(A), u = [
2251
2252
  z(t),
2252
2253
  s ? z(s) : "0x",
2253
2254
  l ? z(l) : "0x",
@@ -2261,12 +2262,12 @@ function Ki(e, n) {
2261
2262
  ];
2262
2263
  return Pe([
2263
2264
  "0x02",
2264
- $(g)
2265
+ $(u)
2265
2266
  ]);
2266
2267
  }
2267
- function Gi(e, n) {
2268
+ function Ui(e, n) {
2268
2269
  const { chainId: t, gas: r, data: s, nonce: o, to: c, value: a, accessList: l, gasPrice: A } = e;
2269
- Ji(e);
2270
+ Fi(e);
2270
2271
  const d = Qe(l), f = [
2271
2272
  z(t),
2272
2273
  o ? z(o) : "0x",
@@ -2283,9 +2284,9 @@ function Gi(e, n) {
2283
2284
  $(f)
2284
2285
  ]);
2285
2286
  }
2286
- function Ui(e, n) {
2287
+ function Ri(e, n) {
2287
2288
  const { chainId: t = 0, gas: r, data: s, nonce: o, to: c, value: a, gasPrice: l } = e;
2288
- Fi(e);
2289
+ Di(e);
2289
2290
  let A = [
2290
2291
  o ? z(o) : "0x",
2291
2292
  l ? z(l) : "0x",
@@ -2300,16 +2301,16 @@ function Ui(e, n) {
2300
2301
  return (n.v - 35n) / 2n > 0 ? n.v : 27n + (n.v === 35n ? 0n : 1n);
2301
2302
  if (t > 0)
2302
2303
  return BigInt(t * 2) + BigInt(35n + n.v - 27n);
2303
- const u = 27n + (n.v === 27n ? 0n : 1n);
2304
- if (n.v !== u)
2305
- throw new Qs({ v: n.v });
2306
- return u;
2307
- })(), f = Se(n.r), g = Se(n.s);
2304
+ const g = 27n + (n.v === 27n ? 0n : 1n);
2305
+ if (n.v !== g)
2306
+ throw new qs({ v: n.v });
2307
+ return g;
2308
+ })(), f = Se(n.r), u = Se(n.s);
2308
2309
  A = [
2309
2310
  ...A,
2310
2311
  z(d),
2311
2312
  f === "0x00" ? "0x" : f,
2312
- g === "0x00" ? "0x" : g
2313
+ u === "0x00" ? "0x" : u
2313
2314
  ];
2314
2315
  } else t > 0 && (A = [
2315
2316
  ...A,
@@ -2330,7 +2331,7 @@ function Be(e, n) {
2330
2331
  const o = Se(t.r), c = Se(t.s);
2331
2332
  return [typeof s == "number" ? s ? z(1) : "0x" : r === 0n ? "0x" : r === 1n ? z(1) : r === 27n ? "0x" : z(1), o === "0x00" ? "0x" : o, c === "0x00" ? "0x" : c];
2332
2333
  }
2333
- const Ri = {
2334
+ const _i = {
2334
2335
  gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
2335
2336
  l1Block: { address: "0x4200000000000000000000000000000000000015" },
2336
2337
  l2CrossDomainMessenger: {
@@ -2341,27 +2342,27 @@ const Ri = {
2341
2342
  l2ToL1MessagePasser: {
2342
2343
  address: "0x4200000000000000000000000000000000000016"
2343
2344
  }
2344
- }, _i = {
2345
- block: /* @__PURE__ */ Ws({
2345
+ }, $i = {
2346
+ block: /* @__PURE__ */ Vs({
2346
2347
  format(e) {
2347
2348
  return {
2348
2349
  transactions: e.transactions?.map((t) => {
2349
2350
  if (typeof t == "string")
2350
2351
  return t;
2351
- const r = hn(t);
2352
+ const r = yn(t);
2352
2353
  return r.typeHex === "0x7e" && (r.isSystemTx = t.isSystemTx, r.mint = t.mint ? se(t.mint) : void 0, r.sourceHash = t.sourceHash, r.type = "deposit"), r;
2353
2354
  }),
2354
2355
  stateRoot: e.stateRoot
2355
2356
  };
2356
2357
  }
2357
2358
  }),
2358
- transaction: /* @__PURE__ */ ys({
2359
+ transaction: /* @__PURE__ */ hs({
2359
2360
  format(e) {
2360
2361
  const n = {};
2361
2362
  return e.type === "0x7e" && (n.isSystemTx = e.isSystemTx, n.mint = e.mint ? se(e.mint) : void 0, n.sourceHash = e.sourceHash, n.type = "deposit"), n;
2362
2363
  }
2363
2364
  }),
2364
- transactionReceipt: /* @__PURE__ */ js({
2365
+ transactionReceipt: /* @__PURE__ */ Ts({
2365
2366
  format(e) {
2366
2367
  return {
2367
2368
  l1GasPrice: e.l1GasPrice ? se(e.l1GasPrice) : null,
@@ -2372,14 +2373,14 @@ const Ri = {
2372
2373
  }
2373
2374
  })
2374
2375
  };
2375
- function $i(e, n) {
2376
- return to(e) ? no(e) : Hi(e, n);
2376
+ function eo(e, n) {
2377
+ return ro(e) ? to(e) : Qi(e, n);
2377
2378
  }
2378
- const eo = {
2379
- transaction: $i
2379
+ const no = {
2380
+ transaction: eo
2380
2381
  };
2381
- function no(e) {
2382
- ro(e);
2382
+ function to(e) {
2383
+ so(e);
2383
2384
  const { sourceHash: n, data: t, from: r, gas: s, isSystemTx: o, mint: c, to: a, value: l } = e, A = [
2384
2385
  n,
2385
2386
  r,
@@ -2395,10 +2396,10 @@ function no(e) {
2395
2396
  $(A)
2396
2397
  ]);
2397
2398
  }
2398
- function to(e) {
2399
+ function ro(e) {
2399
2400
  return e.type === "deposit" || typeof e.sourceHash < "u";
2400
2401
  }
2401
- function ro(e) {
2402
+ function so(e) {
2402
2403
  const { from: n, to: t } = e;
2403
2404
  if (n && !Q(n))
2404
2405
  throw new H({ address: n });
@@ -2407,10 +2408,10 @@ function ro(e) {
2407
2408
  }
2408
2409
  const Ze = {
2409
2410
  blockTime: 2e3,
2410
- contracts: Ri,
2411
- formatters: _i,
2412
- serializers: eo
2413
- }, so = /* @__PURE__ */ U({
2411
+ contracts: _i,
2412
+ formatters: $i,
2413
+ serializers: no
2414
+ }, io = /* @__PURE__ */ U({
2414
2415
  id: 42161,
2415
2416
  name: "Arbitrum One",
2416
2417
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
@@ -2433,7 +2434,7 @@ const Ze = {
2433
2434
  blockCreated: 7654707
2434
2435
  }
2435
2436
  }
2436
- }), ge = 1, _t = /* @__PURE__ */ U({
2437
+ }), ge = 1, Rt = /* @__PURE__ */ U({
2437
2438
  ...Ze,
2438
2439
  id: 8453,
2439
2440
  name: "Base",
@@ -2482,9 +2483,9 @@ const Ze = {
2482
2483
  sourceId: ge
2483
2484
  });
2484
2485
  ({
2485
- ..._t
2486
+ ...Rt
2486
2487
  });
2487
- const io = /* @__PURE__ */ U({
2488
+ const oo = /* @__PURE__ */ U({
2488
2489
  id: 56,
2489
2490
  name: "BNB Smart Chain",
2490
2491
  blockTime: 750,
@@ -2510,10 +2511,10 @@ const io = /* @__PURE__ */ U({
2510
2511
  }
2511
2512
  }
2512
2513
  });
2513
- function Nn(e) {
2514
+ function Xn(e) {
2514
2515
  return typeof e == "string" ? { address: e, type: "json-rpc" } : e;
2515
2516
  }
2516
- class oo extends y {
2517
+ class co extends h {
2517
2518
  constructor({ docsPath: n } = {}) {
2518
2519
  super([
2519
2520
  "Could not find an Account to execute with this Action.",
@@ -2526,11 +2527,11 @@ class oo extends y {
2526
2527
  });
2527
2528
  }
2528
2529
  }
2529
- function $n(e) {
2530
+ function _n(e) {
2530
2531
  return e.reduce((n, { slot: t, value: r }) => `${n} ${t}: ${r}
2531
2532
  `, "");
2532
2533
  }
2533
- function co(e) {
2534
+ function ao(e) {
2534
2535
  return e.reduce((n, { address: t, ...r }) => {
2535
2536
  let s = `${n} ${t}:
2536
2537
  `;
@@ -2538,18 +2539,18 @@ function co(e) {
2538
2539
  `), r.balance && (s += ` balance: ${r.balance}
2539
2540
  `), r.code && (s += ` code: ${r.code}
2540
2541
  `), r.state && (s += ` state:
2541
- `, s += $n(r.state)), r.stateDiff && (s += ` stateDiff:
2542
- `, s += $n(r.stateDiff)), s;
2542
+ `, s += _n(r.state)), r.stateDiff && (s += ` stateDiff:
2543
+ `, s += _n(r.stateDiff)), s;
2543
2544
  }, ` State Override:
2544
2545
  `).slice(0, -1);
2545
2546
  }
2546
- class ao extends y {
2547
- constructor(n, { account: t, docsPath: r, chain: s, data: o, gas: c, gasPrice: a, maxFeePerGas: l, maxPriorityFeePerGas: A, nonce: d, to: f, value: g, stateOverride: u }) {
2548
- const x = t ? Nn(t) : void 0;
2549
- let C = Et({
2547
+ class lo extends h {
2548
+ constructor(n, { account: t, docsPath: r, chain: s, data: o, gas: c, gasPrice: a, maxFeePerGas: l, maxPriorityFeePerGas: A, nonce: d, to: f, value: u, stateOverride: g }) {
2549
+ const x = t ? Xn(t) : void 0;
2550
+ let v = Tt({
2550
2551
  from: x?.address,
2551
2552
  to: f,
2552
- value: typeof g < "u" && `${Ds(g)} ${s?.nativeCurrency?.symbol || "ETH"}`,
2553
+ value: typeof u < "u" && `${Hs(u)} ${s?.nativeCurrency?.symbol || "ETH"}`,
2553
2554
  data: o,
2554
2555
  gas: c,
2555
2556
  gasPrice: typeof a < "u" && `${R(a)} gwei`,
@@ -2557,14 +2558,14 @@ class ao extends y {
2557
2558
  maxPriorityFeePerGas: typeof A < "u" && `${R(A)} gwei`,
2558
2559
  nonce: d
2559
2560
  });
2560
- u && (C += `
2561
- ${co(u)}`), super(n.shortMessage, {
2561
+ g && (v += `
2562
+ ${ao(g)}`), super(n.shortMessage, {
2562
2563
  cause: n,
2563
2564
  docsPath: r,
2564
2565
  metaMessages: [
2565
2566
  ...n.metaMessages ? [...n.metaMessages, " "] : [],
2566
2567
  "Raw Call Arguments:",
2567
- C
2568
+ v
2568
2569
  ].filter(Boolean),
2569
2570
  name: "CallExecutionError"
2570
2571
  }), Object.defineProperty(this, "cause", {
@@ -2575,9 +2576,9 @@ ${co(u)}`), super(n.shortMessage, {
2575
2576
  }), this.cause = n;
2576
2577
  }
2577
2578
  }
2578
- function lo(e, n) {
2579
- const t = (e.details || "").toLowerCase(), r = e instanceof y ? e.walk((s) => s?.code === ie.code) : e;
2580
- return r instanceof y ? new ie({
2579
+ function Ao(e, n) {
2580
+ const t = (e.details || "").toLowerCase(), r = e instanceof h ? e.walk((s) => s?.code === ie.code) : e;
2581
+ return r instanceof h ? new ie({
2581
2582
  cause: e,
2582
2583
  message: r.details
2583
2584
  }) : ie.nodeMessage.test(t) ? new ie({
@@ -2586,28 +2587,28 @@ function lo(e, n) {
2586
2587
  }) : ee.nodeMessage.test(t) ? new ee({
2587
2588
  cause: e,
2588
2589
  maxFeePerGas: n?.maxFeePerGas
2589
- }) : An.nodeMessage.test(t) ? new An({
2590
+ }) : ln.nodeMessage.test(t) ? new ln({
2590
2591
  cause: e,
2591
2592
  maxFeePerGas: n?.maxFeePerGas
2592
- }) : dn.nodeMessage.test(t) ? new dn({ cause: e, nonce: n?.nonce }) : fn.nodeMessage.test(t) ? new fn({ cause: e, nonce: n?.nonce }) : un.nodeMessage.test(t) ? new un({ cause: e, nonce: n?.nonce }) : gn.nodeMessage.test(t) ? new gn({ cause: e }) : vn.nodeMessage.test(t) ? new vn({ cause: e, gas: n?.gas }) : Cn.nodeMessage.test(t) ? new Cn({ cause: e, gas: n?.gas }) : mn.nodeMessage.test(t) ? new mn({ cause: e }) : be.nodeMessage.test(t) ? new be({
2593
+ }) : An.nodeMessage.test(t) ? new An({ cause: e, nonce: n?.nonce }) : dn.nodeMessage.test(t) ? new dn({ cause: e, nonce: n?.nonce }) : fn.nodeMessage.test(t) ? new fn({ cause: e, nonce: n?.nonce }) : un.nodeMessage.test(t) ? new un({ cause: e }) : gn.nodeMessage.test(t) ? new gn({ cause: e, gas: n?.gas }) : vn.nodeMessage.test(t) ? new vn({ cause: e, gas: n?.gas }) : Cn.nodeMessage.test(t) ? new Cn({ cause: e }) : be.nodeMessage.test(t) ? new be({
2593
2594
  cause: e,
2594
2595
  maxFeePerGas: n?.maxFeePerGas,
2595
2596
  maxPriorityFeePerGas: n?.maxPriorityFeePerGas
2596
- }) : new Ht({
2597
+ }) : new Dt({
2597
2598
  cause: e
2598
2599
  });
2599
2600
  }
2600
- function Ao(e, { docsPath: n, ...t }) {
2601
+ function fo(e, { docsPath: n, ...t }) {
2601
2602
  const r = (() => {
2602
- const s = lo(e, t);
2603
- return s instanceof Ht ? e : s;
2603
+ const s = Ao(e, t);
2604
+ return s instanceof Dt ? e : s;
2604
2605
  })();
2605
- return new ao(r, {
2606
+ return new lo(r, {
2606
2607
  docsPath: n,
2607
2608
  ...t
2608
2609
  });
2609
2610
  }
2610
- function fo(e, { format: n }) {
2611
+ function uo(e, { format: n }) {
2611
2612
  if (!n)
2612
2613
  return {};
2613
2614
  const t = {};
@@ -2619,30 +2620,30 @@ function fo(e, { format: n }) {
2619
2620
  const s = n(e || {});
2620
2621
  return r(s), t;
2621
2622
  }
2622
- function uo(e) {
2623
- const { account: n, gasPrice: t, maxFeePerGas: r, maxPriorityFeePerGas: s, to: o } = e, c = n ? Nn(n) : void 0;
2623
+ function go(e) {
2624
+ const { account: n, gasPrice: t, maxFeePerGas: r, maxPriorityFeePerGas: s, to: o } = e, c = n ? Xn(n) : void 0;
2624
2625
  if (c && !Q(c.address))
2625
2626
  throw new H({ address: c.address });
2626
2627
  if (o && !Q(o))
2627
2628
  throw new H({ address: o });
2628
2629
  if (typeof t < "u" && (typeof r < "u" || typeof s < "u"))
2629
- throw new Hs();
2630
+ throw new Qs();
2630
2631
  if (r && r > De)
2631
2632
  throw new ee({ maxFeePerGas: r });
2632
2633
  if (s && r && s > r)
2633
2634
  throw new be({ maxFeePerGas: r, maxPriorityFeePerGas: s });
2634
2635
  }
2635
- async function go(e, n) {
2636
+ async function vo(e, n) {
2636
2637
  const { account: t = e.account } = n;
2637
2638
  if (!t)
2638
- throw new oo();
2639
- const r = Nn(t);
2639
+ throw new co();
2640
+ const r = Xn(t);
2640
2641
  try {
2641
- const { accessList: s, blockNumber: o, blockTag: c, data: a, gas: l, gasPrice: A, maxFeePerGas: d, maxPriorityFeePerGas: f, nonce: g, to: u, value: x, ...C } = n, p = (typeof o == "bigint" ? z(o) : void 0) || c;
2642
- uo(n);
2643
- const h = e.chain?.formatters?.transactionRequest?.format, w = (h || Es)({
2642
+ const { accessList: s, blockNumber: o, blockTag: c, data: a, gas: l, gasPrice: A, maxFeePerGas: d, maxPriorityFeePerGas: f, nonce: u, to: g, value: x, ...v } = n, p = (typeof o == "bigint" ? z(o) : void 0) || c;
2643
+ go(n);
2644
+ const y = e.chain?.formatters?.transactionRequest?.format, w = (y || Ls)({
2644
2645
  // Pick out extra data that might exist on the chain's transaction request type.
2645
- ...fo(C, { format: h }),
2646
+ ...uo(v, { format: y }),
2646
2647
  from: r?.address,
2647
2648
  accessList: s,
2648
2649
  data: a,
@@ -2650,8 +2651,8 @@ async function go(e, n) {
2650
2651
  gasPrice: A,
2651
2652
  maxFeePerGas: d,
2652
2653
  maxPriorityFeePerGas: f,
2653
- nonce: g,
2654
- to: u,
2654
+ nonce: u,
2655
+ to: g,
2655
2656
  value: x
2656
2657
  }, "estimateGas"), { baseFeePerGas: I, gasLimit: j, priorityFeePerGas: M } = await e.request({
2657
2658
  method: "linea_estimateGas",
@@ -2663,18 +2664,18 @@ async function go(e, n) {
2663
2664
  priorityFeePerGas: BigInt(M)
2664
2665
  };
2665
2666
  } catch (s) {
2666
- throw Ao(s, {
2667
+ throw fo(s, {
2667
2668
  ...n,
2668
2669
  account: r,
2669
2670
  chain: e.chain
2670
2671
  });
2671
2672
  }
2672
2673
  }
2673
- const vo = {
2674
+ const Co = {
2674
2675
  fees: {
2675
- estimateFeesPerGas: et,
2676
+ estimateFeesPerGas: $n,
2676
2677
  async maxPriorityFeePerGas({ block: e, client: n, request: t }) {
2677
- const r = await et({
2678
+ const r = await $n({
2678
2679
  block: e,
2679
2680
  client: n,
2680
2681
  multiply: (s) => s,
@@ -2685,9 +2686,9 @@ const vo = {
2685
2686
  }
2686
2687
  }
2687
2688
  };
2688
- async function et({ client: e, multiply: n, request: t, type: r }) {
2689
+ async function $n({ client: e, multiply: n, request: t, type: r }) {
2689
2690
  try {
2690
- const s = await go(e, {
2691
+ const s = await vo(e, {
2691
2692
  ...t,
2692
2693
  account: t?.account
2693
2694
  }), { priorityFeePerGas: o } = s, a = n(BigInt(s.baseFeePerGas)) + o;
@@ -2699,8 +2700,8 @@ async function et({ client: e, multiply: n, request: t, type: r }) {
2699
2700
  return null;
2700
2701
  }
2701
2702
  }
2702
- const Co = /* @__PURE__ */ U({
2703
- ...vo,
2703
+ const mo = /* @__PURE__ */ U({
2704
+ ...Co,
2704
2705
  id: 59144,
2705
2706
  name: "Linea Mainnet",
2706
2707
  nativeCurrency: { name: "Linea Ether", symbol: "ETH", decimals: 18 },
@@ -2733,7 +2734,7 @@ const Co = /* @__PURE__ */ U({
2733
2734
  },
2734
2735
  ensTlds: [".linea.eth"],
2735
2736
  testnet: !1
2736
- }), mo = /* @__PURE__ */ U({
2737
+ }), xo = /* @__PURE__ */ U({
2737
2738
  id: 1,
2738
2739
  name: "Ethereum",
2739
2740
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
@@ -2760,7 +2761,7 @@ const Co = /* @__PURE__ */ U({
2760
2761
  blockCreated: 14353601
2761
2762
  }
2762
2763
  }
2763
- }), ve = 1, xo = /* @__PURE__ */ U({
2764
+ }), ve = 1, po = /* @__PURE__ */ U({
2764
2765
  ...Ze,
2765
2766
  id: 10,
2766
2767
  name: "OP Mainnet",
@@ -2805,7 +2806,7 @@ const Co = /* @__PURE__ */ U({
2805
2806
  }
2806
2807
  },
2807
2808
  sourceId: ve
2808
- }), po = /* @__PURE__ */ U({
2809
+ }), bo = /* @__PURE__ */ U({
2809
2810
  id: 137,
2810
2811
  name: "Polygon",
2811
2812
  nativeCurrency: { name: "POL", symbol: "POL", decimals: 18 },
@@ -2828,7 +2829,7 @@ const Co = /* @__PURE__ */ U({
2828
2829
  }
2829
2830
  }
2830
2831
  }), Ne = {
2831
- evm: [mo, io, xo, so, Co, _t, po],
2832
+ evm: [xo, oo, po, io, mo, Rt, bo],
2832
2833
  solana: [
2833
2834
  {
2834
2835
  name: "Solana",
@@ -2841,7 +2842,7 @@ const Co = /* @__PURE__ */ U({
2841
2842
  icon: Je
2842
2843
  }
2843
2844
  ]
2844
- }, $t = (e, n) => {
2845
+ }, _t = (e, n) => {
2845
2846
  const t = (e?.aptos || [O?.aptos || []]).map((a) => ({
2846
2847
  ...a,
2847
2848
  chainInfo: {
@@ -2853,7 +2854,7 @@ const Co = /* @__PURE__ */ U({
2853
2854
  })), r = (e?.evm || Ne?.evm || [O?.evm || []]).map((a) => ({
2854
2855
  ...a,
2855
2856
  chainInfo: {
2856
- icon: Pt[`evm_${a.id}`],
2857
+ icon: It[`evm_${a.id}`],
2857
2858
  name: a.name || O?.evm?.name || ""
2858
2859
  },
2859
2860
  chainType: "evm",
@@ -2878,14 +2879,14 @@ const Co = /* @__PURE__ */ U({
2878
2879
  return [...t, ...r, ...s, ...o];
2879
2880
  };
2880
2881
  var je = /* @__PURE__ */ ((e) => (e.Tomo = "tomo", e.MyDoge = "mydoge", e))(je || {}), P = /* @__PURE__ */ ((e) => (e.Loading = "LOADING", e.Logged = "LOGGED", e.WalletList = "WALLET_LIST", e.WalletSearch = "WALLET_SEARCH", e.WalletSelectProviders = "WALLET_SELECT_PROVIDERS", e.WalletInstallGuide = "WALLET_INSTALL_GUIDE", e.Connecting = "CONNECTING", e.Error = "ERROR", e.Account = "ACCOUNT", e.SelectChains = "SELECT_CHAINS", e.ChangeNetwork = "CHANGE_NETWORK", e.SignInWallet = "SIGN_IN_WALLET", e.WalletConnect = "WALLET_CONNECT", e.UnsupportChain = "UNSUPPORT_CHAIN", e.SocialLogin = "SOCIAL_LOGIN", e.MyDogeSocialLogin = "MYDOGE_SOCIAL_LOGIN", e))(P || {}), k = /* @__PURE__ */ ((e) => (e.All = "all", e.EVM = "evm", e.Solana = "solana", e.Aptos = "aptos", e))(k || {});
2881
- const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton: s }) => {
2882
- const o = B(() => n ? /* @__PURE__ */ i(X, { isIconOnly: !0, color: "default", size: "sm", variant: "light", onPress: n, radius: "full", className: "p-0", children: /* @__PURE__ */ i(at, {}) }) : null, [n]);
2883
- return /* @__PURE__ */ v("div", { className: "flex items-center justify-between px-0 py-3", children: [
2882
+ const zo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton: s }) => {
2883
+ const o = B(() => n ? /* @__PURE__ */ i(X, { isIconOnly: !0, color: "default", size: "sm", variant: "light", onPress: n, radius: "full", className: "p-0", children: /* @__PURE__ */ i(ct, {}) }) : null, [n]);
2884
+ return /* @__PURE__ */ C("div", { className: "flex items-center justify-between px-0 py-3", children: [
2884
2885
  o,
2885
2886
  /* @__PURE__ */ i("div", { className: "font-medium text-lg", children: e }),
2886
- /* @__PURE__ */ v("div", { className: "flex items-center gap-3", children: [
2887
+ /* @__PURE__ */ C("div", { className: "flex items-center gap-3", children: [
2887
2888
  r,
2888
- s ? null : /* @__PURE__ */ i(X, { isIconOnly: !0, color: "default", size: "sm", variant: "light", onPress: t, radius: "full", className: "p-0", children: /* @__PURE__ */ i(lt, { className: "text-xl" }) })
2889
+ s ? null : /* @__PURE__ */ i(X, { isIconOnly: !0, color: "default", size: "sm", variant: "light", onPress: t, radius: "full", className: "p-0", children: /* @__PURE__ */ i(at, { className: "text-xl" }) })
2889
2890
  ] })
2890
2891
  ] });
2891
2892
  }, S = ({
@@ -2899,9 +2900,9 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
2899
2900
  const c = V(W);
2900
2901
  if (!c)
2901
2902
  throw new Error("WalletConnectContext not found");
2902
- return /* @__PURE__ */ v("div", { className: "flex flex-col gap-3 min-h-0 flex-1", children: [
2903
+ return /* @__PURE__ */ C("div", { className: "flex flex-col gap-3 min-h-0 flex-1", children: [
2903
2904
  /* @__PURE__ */ i(
2904
- bo,
2905
+ zo,
2905
2906
  {
2906
2907
  title: n,
2907
2908
  onBack: t,
@@ -2914,28 +2915,28 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
2914
2915
  ),
2915
2916
  /* @__PURE__ */ i("div", { className: "flex-1 flex flex-col min-h-0", children: e })
2916
2917
  ] });
2917
- }, zo = () => {
2918
+ }, wo = () => {
2918
2919
  const e = V(W);
2919
2920
  if (!e)
2920
2921
  throw new Error("WalletConnectContext not found");
2921
- const { copied: n, copy: t } = Pn(), { account: r, disconnect: s } = e, o = r.currentWallet?.info?.name || "Wallet", c = r.currentWallet?.info?.icon, a = r.address, l = r.chainType, A = r.chainId, d = A ? Number(BigInt(A || "0").toString()) : void 0, f = r.currentWallet, g = T(async () => {
2922
+ const { copied: n, copy: t } = In(), { account: r, disconnect: s } = e, o = r.currentWallet?.info?.name || "Wallet", c = r.currentWallet?.info?.icon, a = r.address, l = r.chainType, A = r.chainId, d = A ? Number(BigInt(A || "0").toString()) : void 0, f = r.currentWallet, u = T(async () => {
2922
2923
  try {
2923
2924
  if (!a) return;
2924
2925
  t(a);
2925
2926
  } catch (m) {
2926
2927
  console.error("Failed to copy address:", m);
2927
2928
  }
2928
- }, [a, t]), u = B(() => /* @__PURE__ */ i(X, { isIconOnly: !0, variant: "light", color: "default", className: "size-10", onPress: g, children: n ? /* @__PURE__ */ i(At, { className: "text-success size-6" }) : /* @__PURE__ */ i(zr, { className: "text-foreground size-4" }) }), [g, n]);
2929
+ }, [a, t]), g = B(() => /* @__PURE__ */ i(X, { isIconOnly: !0, variant: "light", color: "default", className: "size-10", onPress: u, children: n ? /* @__PURE__ */ i(lt, { className: "text-success size-6" }) : /* @__PURE__ */ i(wr, { className: "text-foreground size-4" }) }), [u, n]);
2929
2930
  if (!f)
2930
2931
  return null;
2931
- const x = $t(e.config?.chains, f?.providers), C = x.find((m) => m.chainType === l && m.id === d);
2932
+ const x = _t(e.config?.chains, f?.providers), v = x.find((m) => m.chainType === l && m.id === d);
2932
2933
  return console.log("--- AccountView ---", {
2933
2934
  config: e.config,
2934
2935
  chains: x,
2935
2936
  currentChainType: l,
2936
2937
  chainNumber: d,
2937
2938
  currentWallet: f,
2938
- currentChain: C
2939
+ currentChain: v
2939
2940
  }), /* @__PURE__ */ i(
2940
2941
  S,
2941
2942
  {
@@ -2945,23 +2946,23 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
2945
2946
  variant: "light",
2946
2947
  color: "default",
2947
2948
  onPress: () => e.modal.setView(P.SelectChains),
2948
- endContent: /* @__PURE__ */ i(Ir, { className: "size-4" }),
2949
- children: /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
2950
- /* @__PURE__ */ i(le, { icon: C?.chainInfo?.icon, className: "size-7 overflow-hidden rounded-full" }),
2951
- /* @__PURE__ */ i("span", { className: "text-sm", children: C?.chainInfo?.name })
2949
+ endContent: /* @__PURE__ */ i(Pr, { className: "size-4" }),
2950
+ children: /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
2951
+ /* @__PURE__ */ i(le, { icon: v?.chainInfo?.icon, className: "size-7 overflow-hidden rounded-full" }),
2952
+ /* @__PURE__ */ i("span", { className: "text-sm", children: v?.chainInfo?.name })
2952
2953
  ] })
2953
2954
  }
2954
2955
  ),
2955
- children: /* @__PURE__ */ v("div", { className: "w-full flex flex-col gap-6 pb-4", children: [
2956
- /* @__PURE__ */ v("div", { className: "flex items-center justify-between gap-3 px-4 py-5 rounded-lg border border-primary", children: [
2957
- /* @__PURE__ */ v("div", { className: "flex items-center gap-3", children: [
2956
+ children: /* @__PURE__ */ C("div", { className: "w-full flex flex-col gap-6 pb-4", children: [
2957
+ /* @__PURE__ */ C("div", { className: "flex items-center justify-between gap-3 px-4 py-5 rounded-lg border border-primary", children: [
2958
+ /* @__PURE__ */ C("div", { className: "flex items-center gap-3", children: [
2958
2959
  /* @__PURE__ */ i("div", { className: "w-10 h-10 rounded-full overflow-hidden bg-content2 flex items-center justify-center", children: c ? /* @__PURE__ */ i(ne, { src: c, alt: o, width: 40, height: 40 }) : /* @__PURE__ */ i("div", { className: "w-6 h-6 rounded bg-content3" }) }),
2959
- /* @__PURE__ */ v("div", { className: "flex flex-col", children: [
2960
- /* @__PURE__ */ i("span", { className: "break-all", children: us(a, 8, 6) || "-" }),
2960
+ /* @__PURE__ */ C("div", { className: "flex flex-col", children: [
2961
+ /* @__PURE__ */ i("span", { className: "break-all", children: gs(a, 8, 6) || "-" }),
2961
2962
  /* @__PURE__ */ i("span", { className: "text-xs text-foreground/70", children: o })
2962
2963
  ] })
2963
2964
  ] }),
2964
- u
2965
+ g
2965
2966
  ] }),
2966
2967
  /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(
2967
2968
  X,
@@ -2969,7 +2970,7 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
2969
2970
  color: "default",
2970
2971
  variant: "light",
2971
2972
  className: "w-full",
2972
- startContent: /* @__PURE__ */ i(wr, { className: "size-4" }),
2973
+ startContent: /* @__PURE__ */ i(Ir, { className: "size-4" }),
2973
2974
  onPress: s,
2974
2975
  children: "Disconnect wallet"
2975
2976
  }
@@ -2977,29 +2978,29 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
2977
2978
  ] })
2978
2979
  }
2979
2980
  );
2980
- }, nt = {
2981
+ }, et = {
2981
2982
  isConnecting: !1,
2982
2983
  isConnected: !1,
2983
2984
  address: "",
2984
2985
  currentWallet: null,
2985
2986
  currentProvider: null,
2986
2987
  actionsLoading: !1
2987
- }, jn = () => {
2988
- const [e, n] = N(nt), [t, r] = N("");
2988
+ }, Nn = () => {
2989
+ const [e, n] = N(et), [t, r] = N("");
2989
2990
  return {
2990
2991
  walletState: e,
2991
2992
  setWalletState: n,
2992
2993
  error: t,
2993
2994
  setError: r,
2994
2995
  resetWalletState: () => {
2995
- n(nt), It();
2996
+ n(et), wt();
2996
2997
  }
2997
2998
  };
2998
- }, wo = () => {
2999
+ }, Io = () => {
2999
3000
  const e = V(W), n = e?.modal.state;
3000
3001
  if (!e)
3001
3002
  throw new Error("WalletConnectContext not found");
3002
- const t = n?.chainType || "evm", r = n?.chainId || "", s = n?.name || "-", o = n?.chainInfo?.icon || "", { resetWalletState: c } = jn(), { mutate: a, isPending: l } = In({
3003
+ const t = n?.chainType || "evm", r = n?.chainId || "", s = n?.name || "-", o = n?.chainInfo?.icon || "", { resetWalletState: c } = Nn(), { mutate: a, isPending: l } = wn({
3003
3004
  mutationKey: ["switchWallet", n?.chainInfo],
3004
3005
  mutationFn: async () => {
3005
3006
  c(), e.modal.setView(P.WalletSearch, {
@@ -3008,20 +3009,20 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
3008
3009
  });
3009
3010
  }
3010
3011
  });
3011
- return /* @__PURE__ */ i(S, { title: "Switch network", onBack: () => e?.modal.backView(), children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center", children: [
3012
+ return /* @__PURE__ */ i(S, { title: "Switch network", onBack: () => e?.modal.backView(), children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center", children: [
3012
3013
  /* @__PURE__ */ i("div", { className: "flex justify-center", children: /* @__PURE__ */ i(le, { icon: o, className: "size-14 overflow-hidden rounded-full" }) }),
3013
- /* @__PURE__ */ v("div", { className: "mt-6 flex flex-col justify-center items-center", children: [
3014
- /* @__PURE__ */ v("div", { className: "text-t1 text-sm", children: [
3014
+ /* @__PURE__ */ C("div", { className: "mt-6 flex flex-col justify-center items-center", children: [
3015
+ /* @__PURE__ */ C("div", { className: "text-t1 text-sm", children: [
3015
3016
  "Switch to ",
3016
3017
  s
3017
3018
  ] }),
3018
- /* @__PURE__ */ v("div", { className: "text-[#A9A29D] mt-2 text-sm text-center", children: [
3019
+ /* @__PURE__ */ C("div", { className: "text-[#A9A29D] mt-2 text-sm text-center", children: [
3019
3020
  "Your current wallet cannot connect to the ",
3020
3021
  s,
3021
3022
  " network. You need to connect with a new wallet."
3022
3023
  ] })
3023
3024
  ] }),
3024
- /* @__PURE__ */ v(X, { className: "w-full my-4", disabled: l, onPress: () => a(), children: [
3025
+ /* @__PURE__ */ C(X, { className: "w-full my-4", disabled: l, onPress: () => a(), children: [
3025
3026
  "Connect ",
3026
3027
  s,
3027
3028
  " wallet"
@@ -3059,12 +3060,12 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
3059
3060
  [e?.modal.setView, e?.connect]
3060
3061
  )
3061
3062
  };
3062
- }, Io = ({
3063
+ }, Po = ({
3063
3064
  iconSrc: e,
3064
3065
  iconAlt: n,
3065
3066
  variant: t
3066
- }) => /* @__PURE__ */ v("div", { "data-tag": "ringed-icon", className: "relative w-20 h-20 flex items-center justify-center", children: [
3067
- t === "error" ? /* @__PURE__ */ i("div", { className: "absolute inset-0 border-4 border-danger rounded-full" }) : t === "connecting" ? /* @__PURE__ */ v(ct, { children: [
3067
+ }) => /* @__PURE__ */ C("div", { "data-tag": "ringed-icon", className: "relative w-20 h-20 flex items-center justify-center", children: [
3068
+ t === "error" ? /* @__PURE__ */ i("div", { className: "absolute inset-0 border-4 border-danger rounded-full" }) : t === "connecting" ? /* @__PURE__ */ C(ot, { children: [
3068
3069
  /* @__PURE__ */ i("div", { className: "absolute inset-0 border-4 border-primary/20 rounded-full" }),
3069
3070
  /* @__PURE__ */ i(
3070
3071
  "div",
@@ -3076,7 +3077,7 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
3076
3077
  ] }) : /* @__PURE__ */ i("div", { className: "absolute inset-0 border-4 border-success rounded-full" }),
3077
3078
  e ? /* @__PURE__ */ i(ne, { src: e, alt: n || "Wallet", width: 64, height: 64, className: "rounded-full relative z-10" }) : null,
3078
3079
  t === "success" ? /* @__PURE__ */ i("div", { className: "absolute -bottom-1 -right-1 w-6 h-6 rounded-full bg-success flex items-center justify-center border-2 border-white", children: /* @__PURE__ */ i("svg", { className: "w-4 h-4 text-white", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M5 13l4 4L19 7" }) }) }) : null
3079
- ] }), Po = () => {
3080
+ ] }), Bo = () => {
3080
3081
  const e = V(W);
3081
3082
  if (!e)
3082
3083
  throw new Error("WalletConnectContext not found");
@@ -3086,34 +3087,34 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
3086
3087
  const x = e?.modal?.state || {
3087
3088
  chainType: e.account.chainType || "evm",
3088
3089
  chainId: ""
3089
- }, C = x.chainType, m = x.chainId || "";
3090
- if (!n || !C) {
3090
+ }, v = x.chainType, m = x.chainId || "";
3091
+ if (!n || !v) {
3091
3092
  e.modal.setView(e.modal.mainView);
3092
3093
  return;
3093
3094
  }
3094
3095
  try {
3095
- a(!0), await o(n, C, m), a(!1);
3096
+ a(!0), await o(n, v, m), a(!1);
3096
3097
  } catch (p) {
3097
- console.error("handleRetry::", p), await an(1e3), a(!1);
3098
+ console.error("handleRetry::", p), await cn(1e3), a(!1);
3098
3099
  }
3099
3100
  }, A = () => {
3100
3101
  e.connection.setError(""), e.modal.backView();
3101
- }, d = t && !r, f = !!s && !r, g = d && !f ? "success" : f ? "error" : "connecting", u = () => d && !f ? /* @__PURE__ */ v("div", { className: "flex flex-col items-center gap-2", children: [
3102
+ }, d = t && !r, f = !!s && !r, u = d && !f ? "success" : f ? "error" : "connecting", g = () => d && !f ? /* @__PURE__ */ C("div", { className: "flex flex-col items-center gap-2", children: [
3102
3103
  /* @__PURE__ */ i("p", { className: "text-lg font-semibold text-foreground", children: "Successfully Connected!" }),
3103
- /* @__PURE__ */ v("p", { className: "text-sm text-foreground/60", children: [
3104
+ /* @__PURE__ */ C("p", { className: "text-sm text-foreground/60", children: [
3104
3105
  "Connected to ",
3105
3106
  n?.info?.name || "Wallet"
3106
3107
  ] })
3107
- ] }) : /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i("div", { className: "flex flex-col items-center gap-2 text-sm text-foreground/60 text-center px-4", children: f ? /* @__PURE__ */ i(tt, { error: s, title: "Connection Failed" }) : /* @__PURE__ */ i(
3108
- tt,
3108
+ ] }) : /* @__PURE__ */ i(ot, { children: /* @__PURE__ */ i("div", { className: "flex flex-col items-center gap-2 text-sm text-foreground/60 text-center px-4", children: f ? /* @__PURE__ */ i(nt, { error: s, title: "Connection Failed" }) : /* @__PURE__ */ i(
3109
+ nt,
3109
3110
  {
3110
3111
  error: `Open the ${n?.info?.name || "Wallet"} browser extension to connect your wallet.`,
3111
3112
  title: "Requesting Connection"
3112
3113
  }
3113
3114
  ) }) });
3114
- return /* @__PURE__ */ i(S, { title: n?.info?.name || "Wallet", onBack: A, children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center py-12 gap-6 flex-1", children: [
3115
- /* @__PURE__ */ i(Io, { iconSrc: n?.info?.icon, iconAlt: n?.info?.name, variant: g }),
3116
- u(),
3115
+ return /* @__PURE__ */ i(S, { title: n?.info?.name || "Wallet", onBack: A, children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center py-12 gap-6 flex-1", children: [
3116
+ /* @__PURE__ */ i(Po, { iconSrc: n?.info?.icon, iconAlt: n?.info?.name, variant: u }),
3117
+ g(),
3117
3118
  f ? /* @__PURE__ */ i("div", { className: "w-full px-4", children: /* @__PURE__ */ i(
3118
3119
  X,
3119
3120
  {
@@ -3136,15 +3137,15 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
3136
3137
  }
3137
3138
  ) }) : null
3138
3139
  ] }) });
3139
- }, tt = ({ error: e, title: n }) => /* @__PURE__ */ v("div", { className: "flex flex-col items-center gap-2 text-sm text-foreground/60 text-center px-4", children: [
3140
+ }, nt = ({ error: e, title: n }) => /* @__PURE__ */ C("div", { className: "flex flex-col items-center gap-2 text-sm text-foreground/60 text-center px-4", children: [
3140
3141
  /* @__PURE__ */ i("p", { className: "text-lg font-semibold text-foreground", children: n }),
3141
3142
  /* @__PURE__ */ i("p", { children: e })
3142
- ] }), Bo = () => {
3143
+ ] }), yo = () => {
3143
3144
  const e = V(W);
3144
3145
  if (!e)
3145
3146
  throw new Error("WalletConnectContext not found");
3146
3147
  const { error: n } = e.connection;
3147
- return /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center py-12", children: [
3148
+ return /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center py-12", children: [
3148
3149
  /* @__PURE__ */ i("div", { className: "text-danger text-5xl mb-4", children: "⚠️" }),
3149
3150
  /* @__PURE__ */ i("p", { className: "text-lg font-semibold mb-2 text-danger", children: "Connection Failed" }),
3150
3151
  /* @__PURE__ */ i("p", { className: "text-sm text-gray-600 dark:text-gray-400 mb-6 text-center", children: n }),
@@ -3152,9 +3153,9 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
3152
3153
  e.connection.setError(""), e.modal.setView(P.Connecting);
3153
3154
  }, children: "Try Again" })
3154
3155
  ] });
3155
- }, er = ({ content: e, size: n = 280, logo: t, logoBackground: r }) => {
3156
+ }, $t = ({ content: e, size: n = 280, logo: t, logoBackground: r }) => {
3156
3157
  const s = ce(null), o = ce(null);
3157
- return Z(() => {
3158
+ return Y(() => {
3158
3159
  if (!e || !s.current)
3159
3160
  return;
3160
3161
  const c = s.current, a = {
@@ -3190,40 +3191,40 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
3190
3191
  if (o.current)
3191
3192
  o.current.update(a);
3192
3193
  else {
3193
- const A = new $r(a);
3194
+ const A = new es(a);
3194
3195
  o.current = A, c.innerHTML = "", A.append(c);
3195
3196
  }
3196
3197
  const l = c;
3197
3198
  return () => {
3198
3199
  l && o.current && (l.innerHTML = "", o.current = null);
3199
3200
  };
3200
- }, [e, n, t, r]), console.log("-- qr code content", e), /* @__PURE__ */ i(Pr, { isLoaded: !!e, style: { width: n, height: n }, className: "rounded-lg", children: /* @__PURE__ */ i("div", { className: "flex items-center justify-center p-2 bg-[#1C1917] rounded-lg", children: /* @__PURE__ */ i("div", { ref: s }) }) });
3201
- }, yo = ({ isOpen: e, onClose: n, onBack: t, url: r, logo: s, logoBackground: o, title: c }) => {
3202
- const { copy: a, copied: l } = Pn();
3203
- return /* @__PURE__ */ i(dt, { isOpen: e, onClose: n, onBack: t, title: c, children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center px-5 pb-6 gap-4", children: [
3201
+ }, [e, n, t, r]), console.log("-- qr code content", e), /* @__PURE__ */ i(Br, { isLoaded: !!e, style: { width: n, height: n }, className: "rounded-lg", children: /* @__PURE__ */ i("div", { className: "flex items-center justify-center p-2 bg-[#1C1917] rounded-lg", children: /* @__PURE__ */ i("div", { ref: s }) }) });
3202
+ }, ho = ({ isOpen: e, onClose: n, onBack: t, url: r, logo: s, logoBackground: o, title: c }) => {
3203
+ const { copy: a, copied: l } = In();
3204
+ return /* @__PURE__ */ i(At, { isOpen: e, onClose: n, onBack: t, title: c, children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center px-5 pb-6 gap-4", children: [
3204
3205
  /* @__PURE__ */ i("p", { className: "text-sm text-foreground/80 text-center", children: "Scan the QR code with your camera phone to get the app on iOS or Android." }),
3205
- /* @__PURE__ */ i(er, { content: r, logo: s, logoBackground: o }),
3206
+ /* @__PURE__ */ i($t, { content: r, logo: s, logoBackground: o }),
3206
3207
  /* @__PURE__ */ i(X, { variant: "bordered", size: "lg", fullWidth: !0, onPress: () => {
3207
3208
  a(r);
3208
3209
  }, children: l ? "Copied!" : "Copy Link" })
3209
3210
  ] }) });
3210
- }, ho = () => {
3211
+ }, Mo = () => {
3211
3212
  if (typeof window > "u") return "other";
3212
3213
  const e = window.navigator.userAgent.toLowerCase();
3213
3214
  return e.includes("chrome") && !e.includes("edge") && !e.includes("opera") ? "chrome" : e.includes("edge") ? "edge" : e.includes("firefox") ? "firefox" : e.includes("opera") || e.includes("opr") ? "opera" : e.includes("safari") && !e.includes("chrome") ? "safari" : "other";
3214
- }, Mo = () => {
3215
+ }, Wo = () => {
3215
3216
  if (typeof window > "u") return "desktop";
3216
3217
  const e = window.navigator.userAgent.toLowerCase();
3217
3218
  return /iphone|ipad|ipod/.test(e) ? "ios" : /android/.test(e) ? "android" : "desktop";
3218
- }, Wo = (e) => {
3219
+ }, Vo = (e) => {
3219
3220
  if (!e) return null;
3220
- const n = Mo(), t = ho();
3221
+ const n = Wo(), t = Mo();
3221
3222
  return n === "ios" ? e.ios_install || e.mobile || e.homepage || null : n === "android" ? e.android_install || e.mobile || e.homepage || null : t === "chrome" ? e.chrome_install || e.homepage || null : t === "edge" ? e.edge || e.homepage || null : t === "firefox" ? e.firefox || e.homepage || null : t === "opera" ? e.opera || e.homepage || null : t === "safari" ? e.safari || e.homepage || null : e.homepage || e.mobile || null;
3222
- }, Vo = (e) => {
3223
+ }, Xo = (e) => {
3223
3224
  if (!e) return [];
3224
3225
  const n = [];
3225
3226
  return e.chrome_install && n.push({ label: "Chrome", url: e.chrome_install }), e.edge && n.push({ label: "Edge", url: e.edge }), e.firefox && n.push({ label: "Firefox", url: e.firefox }), e.opera && n.push({ label: "Opera", url: e.opera }), e.safari && n.push({ label: "Safari", url: e.safari }), e.ios_install && n.push({ label: "iOS", url: e.ios_install }), e.android_install && n.push({ label: "Android", url: e.android_install }), e.mobile && !n.find((t) => t.url === e.mobile) && n.push({ label: "Mobile App", url: e.mobile }), e.homepage && !n.find((t) => t.url === e.homepage) && n.push({ label: "Homepage", url: e.homepage }), n;
3226
- }, Xo = () => {
3227
+ }, No = () => {
3227
3228
  const e = V(W);
3228
3229
  if (!e)
3229
3230
  throw new Error("WalletConnectContext not found");
@@ -3231,16 +3232,16 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
3231
3232
  if (!n)
3232
3233
  throw new Error("Current wallet not found");
3233
3234
  console.log("-- InstallGuideView -- currentWallet", n);
3234
- const t = B(() => `Install ${n?.info?.name} Wallet`, [n?.info?.name]), r = B(() => n?.info, [n?.info]), s = B(() => Wo(r?.links), [r?.links]), o = B(() => Vo(r?.links), [r?.links]), [c, a] = N({
3235
+ const t = B(() => `Install ${n?.info?.name} Wallet`, [n?.info?.name]), r = B(() => n?.info, [n?.info]), s = B(() => Vo(r?.links), [r?.links]), o = B(() => Xo(r?.links), [r?.links]), [c, a] = N({
3235
3236
  isOpen: !1,
3236
3237
  url: ""
3237
3238
  }), l = () => {
3238
3239
  s && window.open(s, "_blank", "noopener,noreferrer");
3239
- }, A = (g) => {
3240
- g.label === "iOS" || g.label === "Android" ? a({
3240
+ }, A = (u) => {
3241
+ u.label === "iOS" || u.label === "Android" ? a({
3241
3242
  isOpen: !0,
3242
- url: g.url
3243
- }) : window.open(g.url, "_blank", "noopener,noreferrer");
3243
+ url: u.url
3244
+ }) : window.open(u.url, "_blank", "noopener,noreferrer");
3244
3245
  }, d = () => {
3245
3246
  a({
3246
3247
  isOpen: !1,
@@ -3252,27 +3253,27 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
3252
3253
  url: ""
3253
3254
  });
3254
3255
  };
3255
- return /* @__PURE__ */ v(S, { title: t, onBack: () => e.modal.backView(), children: [
3256
- /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center py-6", children: [
3256
+ return /* @__PURE__ */ C(S, { title: t, onBack: () => e.modal.backView(), children: [
3257
+ /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center py-6", children: [
3257
3258
  /* @__PURE__ */ i("div", { className: "flex items-center justify-center mb-6", children: /* @__PURE__ */ i(ne, { src: r.icon, alt: r.name, width: 64, height: 64 }) }),
3258
3259
  /* @__PURE__ */ i("h3", { className: "text-lg font-semibold mb-2 text-foreground", children: r.name }),
3259
- /* @__PURE__ */ v("p", { className: "text-sm text-foreground/60 mb-6 text-center px-4", children: [
3260
+ /* @__PURE__ */ C("p", { className: "text-sm text-foreground/60 mb-6 text-center px-4", children: [
3260
3261
  "To connect with ",
3261
3262
  r.name,
3262
3263
  ", please install the wallet extension or app."
3263
3264
  ] }),
3264
- s && /* @__PURE__ */ v(X, { variant: "solid", color: "primary", size: "lg", fullWidth: !0, onPress: l, className: "mb-4", children: [
3265
+ s && /* @__PURE__ */ C(X, { variant: "solid", color: "primary", size: "lg", fullWidth: !0, onPress: l, className: "mb-4", children: [
3265
3266
  "Install ",
3266
3267
  r.name
3267
3268
  ] }),
3268
- o.length > 1 && /* @__PURE__ */ v("div", { className: "w-full", children: [
3269
+ o.length > 1 && /* @__PURE__ */ C("div", { className: "w-full", children: [
3269
3270
  /* @__PURE__ */ i("p", { className: "text-xs text-foreground/60 mb-2 text-center", children: "Or download from:" }),
3270
- /* @__PURE__ */ i("div", { className: "flex flex-wrap gap-2 justify-center", children: o.map((g, u) => /* @__PURE__ */ i(X, { variant: "bordered", size: "sm", onPress: () => A(g), children: g.label }, u)) })
3271
+ /* @__PURE__ */ i("div", { className: "flex flex-wrap gap-2 justify-center", children: o.map((u, g) => /* @__PURE__ */ i(X, { variant: "bordered", size: "sm", onPress: () => A(u), children: u.label }, g)) })
3271
3272
  ] }),
3272
3273
  /* @__PURE__ */ i("p", { className: "text-xs text-foreground/40 mt-6 text-center px-4", children: "After installing, refresh the page and try connecting again." })
3273
3274
  ] }),
3274
3275
  /* @__PURE__ */ i(
3275
- yo,
3276
+ ho,
3276
3277
  {
3277
3278
  title: t,
3278
3279
  isOpen: c.isOpen,
@@ -3284,10 +3285,10 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
3284
3285
  }
3285
3286
  )
3286
3287
  ] });
3287
- }, No = () => {
3288
+ }, jo = () => {
3288
3289
  if (!V(W))
3289
3290
  throw new Error("WalletConnectContext not found");
3290
- return /* @__PURE__ */ i(S, { title: "Loading", children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center py-12 gap-6 flex-1", children: [
3291
+ return /* @__PURE__ */ i(S, { title: "Loading", children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center py-12 gap-6 flex-1", children: [
3291
3292
  /* @__PURE__ */ i(
3292
3293
  te,
3293
3294
  {
@@ -3298,12 +3299,12 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
3298
3299
  }
3299
3300
  }
3300
3301
  ),
3301
- /* @__PURE__ */ v("div", { className: "flex flex-col items-center gap-2 text-sm text-foreground/60 text-center px-4", children: [
3302
+ /* @__PURE__ */ C("div", { className: "flex flex-col items-center gap-2 text-sm text-foreground/60 text-center px-4", children: [
3302
3303
  /* @__PURE__ */ i("p", { className: "text-lg font-semibold text-foreground", children: "Initializing Wallet" }),
3303
3304
  /* @__PURE__ */ i("p", { children: "Please wait while we set up your wallet connection..." })
3304
3305
  ] })
3305
3306
  ] }) });
3306
- }, Tn = () => {
3307
+ }, jn = () => {
3307
3308
  const e = V(W);
3308
3309
  if (!e)
3309
3310
  throw new Error("useAccount must be used within WalletConnectProvider");
@@ -3324,9 +3325,9 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
3324
3325
  // signAndSendTransaction: context.signAndSendTransaction,
3325
3326
  // sendTransaction: context.sendTransaction,
3326
3327
  };
3327
- }, jo = () => {
3328
+ }, To = () => {
3328
3329
  const [e, n] = N(0), [t, r] = N(!1);
3329
- return Z(() => {
3330
+ return Y(() => {
3330
3331
  if (typeof window < "u" && window.visualViewport) {
3331
3332
  const s = window.visualViewport, o = () => {
3332
3333
  const c = window.innerHeight - s.height;
@@ -3347,7 +3348,7 @@ const bo = ({ title: e, onBack: n, onClose: t, rightContent: r, hideCloseButton:
3347
3348
  }
3348
3349
  }, []), { keyboardHeight: e, isKeyboardVisible: t };
3349
3350
  };
3350
- function To(e = !1) {
3351
+ function Eo(e = !1) {
3351
3352
  const [n, t] = N(e), r = T(() => t(!0), []), s = T(() => t(!1), []), o = T(() => t((a) => !a), []), c = T((a) => t(a), []);
3352
3353
  return {
3353
3354
  isOpen: n,
@@ -3357,31 +3358,35 @@ function To(e = !1) {
3357
3358
  onOpenChange: c
3358
3359
  };
3359
3360
  }
3360
- const Eo = (e) => {
3361
- const { isOpen: n, onOpen: t, onClose: r } = To(), [s, o] = N(e), [c, a] = N(null), [l, A] = N([]), d = T(
3362
- (p, h, b) => {
3363
- s === p && !b || (b || A((w) => [...w, { view: s, state: c }]), o(p), a(h || null));
3361
+ const Lo = (e) => {
3362
+ const { isOpen: n, onOpen: t, onClose: r } = Eo(), [s, o] = N(e), [c, a] = N(null), [l, A] = N([]);
3363
+ Y(() => {
3364
+ s !== e && o(e);
3365
+ }, [e]);
3366
+ const d = T(
3367
+ (p, y, b) => {
3368
+ s === p && !b || (b || A((w) => [...w, { view: s, state: c }]), o(p), a(y || null));
3364
3369
  },
3365
3370
  [s, c]
3366
3371
  ), f = T(() => {
3367
3372
  o(e), setTimeout(() => {
3368
3373
  a(null), A([]);
3369
3374
  }, 400);
3370
- }, [e]), g = T(() => {
3375
+ }, [e]), u = T(() => {
3371
3376
  r?.(), f();
3372
- }, [r, f]), u = T(
3373
- (p, h) => {
3374
- A((b) => [...b, { view: s, state: c }]), o(p), a(h || null), t();
3377
+ }, [r, f]), g = T(
3378
+ (p, y) => {
3379
+ A((b) => [...b, { view: s, state: c }]), o(p), a(y || null), t();
3375
3380
  },
3376
3381
  [s, c, t]
3377
3382
  ), x = T(() => {
3378
3383
  A((p) => {
3379
3384
  if (p.length === 0)
3380
3385
  return o(e), a(null), p;
3381
- const h = p[p.length - 1], b = p.slice(0, -1);
3382
- return o(h.view), a(h.state), b;
3386
+ const y = p[p.length - 1], b = p.slice(0, -1);
3387
+ return o(y.view), a(y.state), b;
3383
3388
  });
3384
- }, [e]), C = T((p) => {
3389
+ }, [e]), v = T((p) => {
3385
3390
  a(p || null);
3386
3391
  }, []), m = l.length > 0 ? l[l.length - 1].view : null;
3387
3392
  return {
@@ -3389,19 +3394,19 @@ const Eo = (e) => {
3389
3394
  view: s,
3390
3395
  prevView: m,
3391
3396
  openModal: t,
3392
- openModalWithState: u,
3393
- closeModal: g,
3397
+ openModalWithState: g,
3398
+ closeModal: u,
3394
3399
  setView: d,
3395
3400
  backView: x,
3396
3401
  state: c,
3397
- setCurrentViewState: C
3402
+ setCurrentViewState: v
3398
3403
  };
3399
- }, Lo = (e) => {
3404
+ }, So = (e) => {
3400
3405
  const n = ce(null);
3401
- return Z(() => {
3406
+ return Y(() => {
3402
3407
  n.current && (n.current.scrollTop = 0);
3403
3408
  }, e), n;
3404
- }, nr = () => {
3409
+ }, er = () => {
3405
3410
  const e = V(W);
3406
3411
  if (!e)
3407
3412
  throw new Error("useEmbeddedWallet must be used within WalletConnectProvider");
@@ -3421,11 +3426,11 @@ const Eo = (e) => {
3421
3426
  console.error("WalletConnectContext not found");
3422
3427
  return;
3423
3428
  }
3424
- if (!r.isInstalled && !cn()) {
3429
+ if (!r.isInstalled && !on()) {
3425
3430
  e._setCurrentWallet(r), e.modal.setView(P.WalletInstallGuide);
3426
3431
  return;
3427
3432
  }
3428
- if (!r.isInstalled && cn()) {
3433
+ if (!r.isInstalled && on()) {
3429
3434
  n(r, k.EVM);
3430
3435
  return;
3431
3436
  }
@@ -3452,20 +3457,52 @@ const Eo = (e) => {
3452
3457
  [e, n]
3453
3458
  )
3454
3459
  };
3455
- }, Ce = "https://dogeos.embedded-wallet.tomo.inc", So = [
3456
- Or(Ce),
3460
+ }, Oo = {
3461
+ themes: {
3462
+ light: {
3463
+ colors: {
3464
+ foreground: "#12122A",
3465
+ background: "#FFF",
3466
+ content1: "#FCFCFD",
3467
+ primary: {
3468
+ 50: "#FFFBEA",
3469
+ 100: "#FFF3C4",
3470
+ 200: "#FCE588",
3471
+ 300: "#FADB5F",
3472
+ 400: "#F7C948",
3473
+ 500: "#FCD436",
3474
+ 600: "#F0B429",
3475
+ 700: "#DE911D",
3476
+ 800: "#CB6E17",
3477
+ 900: "#B44D12",
3478
+ foreground: "#12122A",
3479
+ DEFAULT: "#FCD436"
3480
+ },
3481
+ danger: "#FF5A5A",
3482
+ warning: "#FFAD32",
3483
+ success: "#079455",
3484
+ t1: "#12122A",
3485
+ t2: "#616184",
3486
+ t3: "#8989AB",
3487
+ t4: "#C1C0D8",
3488
+ t5: "#EEC41F"
3489
+ }
3490
+ }
3491
+ }
3492
+ }, Ce = "https://dogeos.embedded-wallet.tomo.inc", Yo = [
3457
3493
  Yr(Ce),
3458
3494
  Zr(Ce),
3459
3495
  kr(Ce),
3460
- Jr(Ce)
3496
+ Jr(Ce),
3497
+ Fr(Ce)
3461
3498
  ], ye = {
3462
- recommonedWallets: So,
3499
+ recommonedWallets: Yo,
3463
3500
  links: {
3464
3501
  privacyPolicy: "https://www.mydoge.com/privacy",
3465
3502
  termsOfService: "https://www.mydoge.com/terms",
3466
3503
  homepage: "https://www.mydoge.com"
3467
3504
  }
3468
- }, Oo = {
3505
+ }, Zo = {
3469
3506
  projectId: "44cb8a6aedbe379ba8f2fa4fbc1a461f",
3470
3507
  metadata: {
3471
3508
  name: "Doge Wallet Connect",
@@ -3473,19 +3510,19 @@ const Eo = (e) => {
3473
3510
  url: typeof window < "u" ? window.location.origin : "",
3474
3511
  icons: ["https://getdoge.com/cdn/shop/files/Symbol_1.png?v=1681939190&width=200"]
3475
3512
  }
3476
- }, Yo = "cTQxTUlSZXhwOXF6T2hnTHJVRzI6MTpjaQ", Zo = "362812706401-eppkpnqocdaejaf45ics815t22oe0j7l.apps.googleusercontent.com", tr = "mSzQLiebxpwV64barnRZpCGZTwB38kSiuszi42Cqq41fkRH8KM99dqG4pFNnvaVA4DV7zHsic0or0pd8tlMIt9vc", rr = {
3513
+ }, ko = "cTQxTUlSZXhwOXF6T2hnTHJVRzI6MTpjaQ", Jo = "362812706401-eppkpnqocdaejaf45ics815t22oe0j7l.apps.googleusercontent.com", nr = "mSzQLiebxpwV64barnRZpCGZTwB38kSiuszi42Cqq41fkRH8KM99dqG4pFNnvaVA4DV7zHsic0or0pd8tlMIt9vc", tr = {
3477
3514
  tomoStage: "prod",
3478
3515
  //dev/pre/prod
3479
3516
  name: "Doge Embedded Wallet",
3480
3517
  logo: "https://getdoge.com/cdn/shop/files/Symbol_1.png?v=1681939190&width=200",
3481
- clientId: tr,
3482
- xClientId: Yo,
3483
- googleClientId: Zo,
3518
+ clientId: nr,
3519
+ xClientId: ko,
3520
+ googleClientId: Jo,
3484
3521
  walletBaseUrl: "https://dogeos.embedded-wallet.tomo.inc/embed"
3485
3522
  //provider.apis
3486
- }, ko = ["wallets", "all"], Jo = (e) => () => {
3487
- const n = e.length > 0 ? e : ye.recommonedWallets || [], t = rr.walletBaseUrl.replace(/\/embed$/, "");
3488
- return Fr({
3523
+ }, Fo = Oo, Do = ["wallets", "all"], Ho = (e) => () => {
3524
+ const n = e.length > 0 ? e : ye.recommonedWallets || [], t = tr.walletBaseUrl.replace(/\/embed$/, "");
3525
+ return Dr({
3489
3526
  chainType: "all",
3490
3527
  recommonedConnectors: n,
3491
3528
  connectorTypes: n.map(() => "tomo"),
@@ -3493,16 +3530,16 @@ const Eo = (e) => {
3493
3530
  baseUrl: t
3494
3531
  }
3495
3532
  });
3496
- }, rt = (e, n) => n === "all" ? e : e.filter((t) => !!t.providers[n]), sr = (e) => {
3533
+ }, tt = (e, n) => n === "all" ? e : e.filter((t) => !!t.providers[n]), rr = (e) => {
3497
3534
  if (!e || !e.info)
3498
3535
  return null;
3499
3536
  const n = {};
3500
3537
  return e.evmProvider && (n.evm = {
3501
3538
  provider: e.evmProvider,
3502
- protocol: On.INJECT
3539
+ protocol: Sn.INJECT
3503
3540
  }), e.dogecoinProvider && (n.dogecoin = {
3504
3541
  provider: e.dogecoinProvider,
3505
- protocol: On.INJECT
3542
+ protocol: Sn.INJECT
3506
3543
  }), Object.keys(n).length === 0 ? null : {
3507
3544
  info: e.info,
3508
3545
  providers: n,
@@ -3514,21 +3551,21 @@ const Eo = (e) => {
3514
3551
  const r = V(W)?.embeddedWallet, { wallet: s } = r || {
3515
3552
  wallet: null
3516
3553
  }, o = B(() => n.length > 0 ? n : ye.recommonedWallets || [], [n]), c = B(
3517
- () => Jo(o),
3554
+ () => Ho(o),
3518
3555
  [o]
3519
3556
  // Only recreate when connectors ID changes
3520
- ), a = Gr({
3521
- queryKey: ko,
3557
+ ), a = Ur({
3558
+ queryKey: Do,
3522
3559
  queryFn: c,
3523
3560
  // Refetch on window focus to update wallet installation status
3524
3561
  refetchOnWindowFocus: !0
3525
- }), l = B(() => s ? sr(s) : null, [s]), A = B(() => {
3562
+ }), l = B(() => s ? rr(s) : null, [s]), A = B(() => {
3526
3563
  if (!a.data)
3527
3564
  return;
3528
3565
  const d = [...a.data.all], f = [...a.data.recommoned];
3529
- return l && (d.some((u) => u.info.uuid === l.info.uuid) || (d.push(l), f.push(l))), {
3530
- all: rt(d, e),
3531
- recommoned: rt(f, e)
3566
+ return l && (d.some((g) => g.info.uuid === l.info.uuid) || (d.push(l), f.push(l))), {
3567
+ all: tt(d, e),
3568
+ recommoned: tt(f, e)
3532
3569
  };
3533
3570
  }, [a.data, l, e]);
3534
3571
  return {
@@ -3538,39 +3575,39 @@ const Eo = (e) => {
3538
3575
  embeddedWallet: r,
3539
3576
  embeddedWalletConnector: l
3540
3577
  };
3541
- }, ir = (e = {}) => {
3542
- const { closeModalBeforeIframe: n = !0 } = e, [t, r] = N(!1), s = V(W), o = nr(), { embeddedWalletConnector: c } = he("all"), { handleSelectWallet: a } = Ke();
3578
+ }, sr = (e = {}) => {
3579
+ const { closeModalBeforeIframe: n = !0 } = e, [t, r] = N(!1), s = V(W), o = er(), { embeddedWalletConnector: c } = he("all"), { handleSelectWallet: a } = Ke();
3543
3580
  if (!s)
3544
3581
  throw new Error("WalletConnectContext not found");
3545
- const l = (u) => {
3582
+ const l = (g) => {
3546
3583
  s.modal.setView(
3547
3584
  s.modal.mainView,
3548
3585
  {
3549
3586
  isLoading: !1,
3550
3587
  email: s.modal.state?.email || "",
3551
- error: u
3588
+ error: g
3552
3589
  },
3553
3590
  !0
3554
3591
  ), r(!1);
3555
3592
  }, A = async () => {
3556
- a(c), o.wallet?.onLoginStatusChanged(({ type: u }) => {
3557
- u === "logout" && s.disconnect?.();
3593
+ a(c), o.wallet?.onLoginStatusChanged(({ type: g }) => {
3594
+ g === "logout" && s.disconnect?.();
3558
3595
  });
3559
3596
  };
3560
3597
  return {
3561
3598
  isLoading: t,
3562
- handleEmailLogin: async (u) => {
3599
+ handleEmailLogin: async (g) => {
3563
3600
  try {
3564
- const x = ls(u);
3601
+ const x = As(g);
3565
3602
  if (x && l(x), r(!0), o.isLoading || !o.wallet)
3566
3603
  return l("Embedded wallet initialization failed");
3567
- const C = o.wallet;
3604
+ const v = o.wallet;
3568
3605
  n && s.modal.closeModal();
3569
- const m = await C?.loginByEmail?.({ email: u });
3606
+ const m = await v?.loginByEmail?.({ email: g });
3570
3607
  if (!m)
3571
3608
  return l("Failed to login with email");
3572
3609
  const p = m;
3573
- if (!p || !(await C.login(p)).isAvailable)
3610
+ if (!p || !(await v.login(p)).isAvailable)
3574
3611
  return l("Failed to login with email");
3575
3612
  A();
3576
3613
  } catch (x) {
@@ -3581,15 +3618,15 @@ const Eo = (e) => {
3581
3618
  try {
3582
3619
  if (r(!0), o.isLoading || !o.wallet)
3583
3620
  return l("Embedded wallet initialization failed");
3584
- const u = o.wallet, x = await u?.loginByGoogle?.();
3621
+ const g = o.wallet, x = await g?.loginByGoogle?.();
3585
3622
  if (!x)
3586
3623
  return l("Failed to login with Google");
3587
- const C = x;
3588
- if (!C || !(await u.login(C)).isAvailable)
3624
+ const v = x;
3625
+ if (!v || !(await g.login(v)).isAvailable)
3589
3626
  return l("Failed to login with Google");
3590
3627
  A();
3591
- } catch (u) {
3592
- console.error("Google login error:", u), l("Failed to login with Google");
3628
+ } catch (g) {
3629
+ console.error("Google login error:", g), l("Failed to login with Google");
3593
3630
  } finally {
3594
3631
  r(!1);
3595
3632
  }
@@ -3598,45 +3635,45 @@ const Eo = (e) => {
3598
3635
  try {
3599
3636
  if (r(!0), o.isLoading || !o.wallet)
3600
3637
  return l("Embedded wallet initialization failed");
3601
- const u = o.wallet, x = await u?.loginByX?.();
3638
+ const g = o.wallet, x = await g?.loginByX?.();
3602
3639
  if (!x)
3603
3640
  return l("Failed to login with X");
3604
- const C = x;
3605
- if (!C || !(await u.login(C)).isAvailable)
3641
+ const v = x;
3642
+ if (!v || !(await g.login(v)).isAvailable)
3606
3643
  return l("Failed to login with X");
3607
3644
  A();
3608
- } catch (u) {
3609
- console.error("X login error:", u), l(u instanceof Error ? u.message : u);
3645
+ } catch (g) {
3646
+ console.error("X login error:", g), l(g instanceof Error ? g.message : g);
3610
3647
  } finally {
3611
3648
  r(!1);
3612
3649
  }
3613
3650
  }
3614
3651
  };
3615
3652
  };
3616
- let oe = null, or = null;
3617
- function st(e) {
3653
+ let oe = null, ir = null;
3654
+ function rt(e) {
3618
3655
  oe = e, console.log("setWagmiConfig>>>>", e);
3619
3656
  }
3620
- function Fo() {
3657
+ function Qo() {
3621
3658
  return oe;
3622
3659
  }
3623
- function rn(e) {
3624
- console.log("setWagmiConnectors>>>>", e), or = e;
3660
+ function tn(e) {
3661
+ console.log("setWagmiConnectors>>>>", e), ir = e;
3625
3662
  }
3626
- function cr() {
3627
- return or;
3663
+ function or() {
3664
+ return ir;
3628
3665
  }
3629
- function ar() {
3666
+ function cr() {
3630
3667
  if (typeof window > "u")
3631
3668
  return oe;
3632
3669
  if (oe)
3633
3670
  try {
3634
- return Zn();
3671
+ return Yn();
3635
3672
  } catch {
3636
3673
  return oe;
3637
3674
  }
3638
3675
  try {
3639
- const e = Zn();
3676
+ const e = Yn();
3640
3677
  return console.log("useWagmiConfig>>>>", e), e;
3641
3678
  } catch (e) {
3642
3679
  return console.log("useWagmiConfig error>>>>", e.message), null;
@@ -3645,44 +3682,44 @@ function ar() {
3645
3682
  function ze() {
3646
3683
  return oe !== null;
3647
3684
  }
3648
- function En() {
3649
- const e = ar();
3685
+ function Tn() {
3686
+ const e = cr();
3650
3687
  return ze() ? e !== null : !1;
3651
3688
  }
3652
- function lr() {
3689
+ function ar() {
3653
3690
  if (console.log("isWagmiAvailable>>>>", ze()), !ze())
3654
3691
  return null;
3655
- const e = En();
3692
+ const e = Tn();
3656
3693
  console.log("inProvider>>>>", e);
3657
- const n = ns();
3694
+ const n = ts();
3658
3695
  return e ? n : null;
3659
3696
  }
3660
- function Do() {
3697
+ function qo() {
3661
3698
  if (!ze())
3662
3699
  return null;
3663
- const e = En(), n = ts();
3700
+ const e = Tn(), n = rs();
3664
3701
  return e ? n : null;
3665
3702
  }
3666
- function Ho() {
3703
+ function Ko() {
3667
3704
  if (!ze())
3668
3705
  return null;
3669
- const e = En(), n = rs();
3706
+ const e = Tn(), n = ss();
3670
3707
  return e ? n : null;
3671
3708
  }
3672
- function xn(e, n, t) {
3673
- const r = Fo();
3709
+ function mn(e, n, t) {
3710
+ const r = Qo();
3674
3711
  if (!r)
3675
3712
  return null;
3676
- const s = cr(), o = t || s || r.connectors;
3713
+ const s = or(), o = t || s || r.connectors;
3677
3714
  return !o || o.length === 0 ? null : o.find((c) => {
3678
3715
  const a = (c.id || "").toLowerCase(), l = (c.name || "").toLowerCase(), A = e.toLowerCase(), d = n?.toLowerCase();
3679
3716
  return a === A || a === d || l === A || l === d || a.includes(A) || l.includes(A);
3680
3717
  }) || null;
3681
3718
  }
3682
- const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
3719
+ const rn = (e, n, t = "Wallet is performing an action, please wait...") => {
3683
3720
  if (e)
3684
3721
  throw n(t), new Error(t);
3685
- }, Qo = ({
3722
+ }, Go = ({
3686
3723
  walletState: e,
3687
3724
  modalState: n,
3688
3725
  setWalletState: t,
@@ -3690,12 +3727,12 @@ const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
3690
3727
  resetWalletState: s,
3691
3728
  setMainView: o
3692
3729
  }) => {
3693
- const { currentProvider: c, currentWallet: a, isConnected: l, actionsLoading: A } = e, d = lr(), f = Do(), g = cr(), u = T(
3730
+ const { currentProvider: c, currentWallet: a, isConnected: l, actionsLoading: A } = e, d = ar(), f = qo(), u = or(), g = T(
3694
3731
  async (b) => {
3695
3732
  const { wallet: w, chainType: I } = b, j = w.providers[I]?.provider;
3696
3733
  if (l && a?.info?.uuid === w.info.uuid && I === e.chainType)
3697
3734
  throw r("Wallet is already connected"), new Error("Wallet is already connected");
3698
- if (!j && !cn())
3735
+ if (!j && !on())
3699
3736
  throw r("Provider not available for this chain type"), new Error("Provider not available for this chain type");
3700
3737
  r(""), t((M) => ({
3701
3738
  ...M,
@@ -3705,7 +3742,7 @@ const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
3705
3742
  actionsLoading: !0
3706
3743
  }));
3707
3744
  try {
3708
- const M = await Dr(
3745
+ const M = await Hr(
3709
3746
  {
3710
3747
  dappLink: typeof window < "u" ? window.location.href : ""
3711
3748
  },
@@ -3719,14 +3756,14 @@ const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
3719
3756
  chainId: M.chainId || "",
3720
3757
  chainType: I
3721
3758
  };
3722
- if (await an(800), console.log("wagmiConnect", d), console.log("wagmiConnectors", g), d && I === k.EVM && g)
3759
+ if (await cn(800), console.log("wagmiConnect", d), console.log("wagmiConnectors", u), d && I === k.EVM && u)
3723
3760
  try {
3724
- const L = xn(w.info.uuid, w.info.rdns, g);
3761
+ const L = mn(w.info.uuid, w.info.rdns, u);
3725
3762
  if (L) {
3726
- const Y = M.chainId ? parseInt(M.chainId, 16) : void 0;
3763
+ const Z = M.chainId ? parseInt(M.chainId, 16) : void 0;
3727
3764
  await d.connectAsync({
3728
3765
  connector: L,
3729
- chainId: Y
3766
+ chainId: Z
3730
3767
  });
3731
3768
  }
3732
3769
  } catch (L) {
@@ -3742,7 +3779,7 @@ const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
3742
3779
  balance: "0.0",
3743
3780
  actionsLoading: !1,
3744
3781
  currentProvider: M.provider || j
3745
- })), As({
3782
+ })), ds({
3746
3783
  address: M.address,
3747
3784
  chainId: M.chainId,
3748
3785
  chainType: I,
@@ -3758,11 +3795,11 @@ const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
3758
3795
  requestAnimationFrame(() => {
3759
3796
  setTimeout(L, 0);
3760
3797
  });
3761
- }), await an(1e3), n.closeModal(), E.chainType === k.EVM && E.chainId !== _e.evm_1.chainId && (await Yn(_e.evm_1.chainId, {
3798
+ }), await cn(1e3), n.closeModal(), E.chainType === k.EVM && E.chainId !== Re.evm_1.chainId && (await On(Re.evm_1.chainId, {
3762
3799
  chainType: k.EVM,
3763
3800
  account: { address: E.address, chainId: E.chainId },
3764
3801
  provider: j
3765
- }), t((L) => ({ ...L, chainId: _e.evm_1.chainId, chainType: I }))), E;
3802
+ }), t((L) => ({ ...L, chainId: Re.evm_1.chainId, chainType: I }))), E;
3766
3803
  } catch (M) {
3767
3804
  throw console.error("Connection failed:", M), r(M?.message || "Connection failed"), M;
3768
3805
  } finally {
@@ -3777,7 +3814,7 @@ const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
3777
3814
  t,
3778
3815
  n,
3779
3816
  d,
3780
- g
3817
+ u
3781
3818
  ]
3782
3819
  ), x = T(async () => {
3783
3820
  t((b) => ({ ...b, actionsLoading: !0 }));
@@ -3800,9 +3837,9 @@ const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
3800
3837
  s,
3801
3838
  o,
3802
3839
  f
3803
- ]), C = T(
3840
+ ]), v = T(
3804
3841
  async ({ chainInfo: b, chainType: w }) => {
3805
- sn(A, r);
3842
+ rn(A, r);
3806
3843
  const I = b.id.toString(), j = {
3807
3844
  chainType: w,
3808
3845
  account: e,
@@ -3816,11 +3853,11 @@ const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
3816
3853
  blockExplorerUrls: [b.blockExplorers?.default.url || ""]
3817
3854
  };
3818
3855
  try {
3819
- return t((E) => ({ ...E, actionsLoading: !0 })), await Yn(I, j), t((E) => ({ ...E, chainId: I, chainType: w })), !0;
3856
+ return t((E) => ({ ...E, actionsLoading: !0 })), await On(I, j), t((E) => ({ ...E, chainId: I, chainType: w })), !0;
3820
3857
  } catch (E) {
3821
3858
  if (E?.code === 4902)
3822
3859
  try {
3823
- return await Hr(M, j), !0;
3860
+ return await Qr(M, j), !0;
3824
3861
  } catch (L) {
3825
3862
  throw console.error("Add chain failed:", L), L;
3826
3863
  }
@@ -3832,7 +3869,7 @@ const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
3832
3869
  [t, e, A, r]
3833
3870
  ), m = T(
3834
3871
  async (b) => {
3835
- if (sn(A, r), !e.isConnected || !e.currentProvider || !e.chainType)
3872
+ if (rn(A, r), !e.isConnected || !e.currentProvider || !e.chainType)
3836
3873
  throw new Error("Wallet not connected");
3837
3874
  return t((w) => ({ ...w, actionsLoading: !0 })), new Promise((w, I) => {
3838
3875
  const j = async () => {
@@ -3845,7 +3882,7 @@ const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
3845
3882
  issuedAt: (/* @__PURE__ */ new Date()).toISOString()
3846
3883
  }, ...b || {} };
3847
3884
  try {
3848
- const Y = await qr(L, {
3885
+ const Z = await Kr(L, {
3849
3886
  chainType: e.chainType,
3850
3887
  account: {
3851
3888
  address: e.address,
@@ -3855,16 +3892,16 @@ const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
3855
3892
  walletInfo: e.currentWallet?.info,
3856
3893
  isInstalled: e.currentWallet?.isInstalled
3857
3894
  });
3858
- if (Y)
3859
- w(Y);
3895
+ if (Z)
3896
+ w(Z);
3860
3897
  else {
3861
3898
  const fe = new Error("Failed to sign in");
3862
3899
  throw I(fe), fe;
3863
3900
  }
3864
- } catch (Y) {
3865
- throw I(Y), Y;
3901
+ } catch (Z) {
3902
+ throw I(Z), Z;
3866
3903
  } finally {
3867
- t((Y) => ({ ...Y, actionsLoading: !1 }));
3904
+ t((Z) => ({ ...Z, actionsLoading: !1 }));
3868
3905
  }
3869
3906
  }, M = async () => {
3870
3907
  I(new Error("User rejected the request.")), t((E) => ({ ...E, actionsLoading: !1 }));
@@ -3891,12 +3928,12 @@ const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
3891
3928
  ]
3892
3929
  ), p = T(
3893
3930
  async (b) => {
3894
- if (sn(A, r), !e.isConnected || !e.currentProvider || !e.chainType)
3931
+ if (rn(A, r), !e.isConnected || !e.currentProvider || !e.chainType)
3895
3932
  throw new Error("Wallet not connected");
3896
3933
  const { message: w, nonce: I } = b;
3897
3934
  if (!w || w.length === 0)
3898
3935
  throw new Error("Message is required");
3899
- return t((M) => ({ ...M, actionsLoading: !0 })), await Qr(
3936
+ return t((M) => ({ ...M, actionsLoading: !0 })), await qr(
3900
3937
  { message: w, nonce: I || Math.random().toString(36).substring(7) },
3901
3938
  {
3902
3939
  chainType: e.chainType,
@@ -3926,22 +3963,22 @@ const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
3926
3963
  t,
3927
3964
  r
3928
3965
  ]
3929
- ), h = T(
3966
+ ), y = T(
3930
3967
  (b) => t((w) => ({ ...w, currentWallet: b })),
3931
3968
  [t]
3932
3969
  );
3933
3970
  return {
3934
- connect: u,
3971
+ connect: g,
3935
3972
  disconnect: x,
3936
- switchChain: C,
3973
+ switchChain: v,
3937
3974
  signInWithWallet: m,
3938
3975
  signMessage: p,
3939
3976
  // signTransaction,
3940
3977
  // signAndSendTransaction,
3941
3978
  // sendTransaction,
3942
- _setCurrentWallet: h
3979
+ _setCurrentWallet: y
3943
3980
  };
3944
- }, ea = () => {
3981
+ }, ta = () => {
3945
3982
  const e = V(W);
3946
3983
  if (!e)
3947
3984
  throw new Error("useWalletConnect must be used within WalletConnectProvider");
@@ -3959,17 +3996,17 @@ const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
3959
3996
  // Disconnect
3960
3997
  disconnect: e.disconnect
3961
3998
  };
3962
- }, qo = () => {
3999
+ }, Uo = () => {
3963
4000
  const e = V(W), { handleSelectWallet: n } = Ke();
3964
4001
  if (!e)
3965
4002
  throw new Error("WalletConnectContext not found");
3966
- const t = nr(), r = sr(t?.wallet);
3967
- return /* @__PURE__ */ i(S, { title: "Logged In", hideCloseButton: !0, children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center py-12 gap-6 flex-1", children: [
3968
- /* @__PURE__ */ v("div", { className: "flex flex-col items-center gap-2 text-sm text-foreground/60 text-center px-4", children: [
4003
+ const t = er(), r = rr(t?.wallet);
4004
+ return /* @__PURE__ */ i(S, { title: "Logged In", hideCloseButton: !0, children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center py-12 gap-6 flex-1", children: [
4005
+ /* @__PURE__ */ C("div", { className: "flex flex-col items-center gap-2 text-sm text-foreground/60 text-center px-4", children: [
3969
4006
  /* @__PURE__ */ i("p", { className: "text-lg font-semibold text-foreground", children: "You are logged in" }),
3970
4007
  /* @__PURE__ */ i("p", { children: "Connect a wallet to get started" })
3971
4008
  ] }),
3972
- /* @__PURE__ */ v("div", { className: "flex flex-col gap-2 w-full px-4", children: [
4009
+ /* @__PURE__ */ C("div", { className: "flex flex-col gap-2 w-full px-4", children: [
3973
4010
  /* @__PURE__ */ i(X, { fullWidth: !0, size: "lg", variant: "solid", color: "primary", className: "rounded-full", onPress: () => {
3974
4011
  r && n(r);
3975
4012
  }, children: "Connect Wallet" }),
@@ -3980,9 +4017,9 @@ const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
3980
4017
  ] }) });
3981
4018
  }, Ge = ({ extendContent: e }) => {
3982
4019
  const { links: n } = ye;
3983
- return /* @__PURE__ */ v("div", { className: "flex flex-col gap-2", children: [
3984
- e || /* @__PURE__ */ i(Ko, {}),
3985
- /* @__PURE__ */ v(
4020
+ return /* @__PURE__ */ C("div", { className: "flex flex-col gap-2", children: [
4021
+ e || /* @__PURE__ */ i(Ro, {}),
4022
+ /* @__PURE__ */ C(
3986
4023
  Ee,
3987
4024
  {
3988
4025
  color: "primary",
@@ -3991,16 +4028,16 @@ const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
3991
4028
  className: "text-xs text-[#57534E] flex justify-center items-center gap-1",
3992
4029
  children: [
3993
4030
  /* @__PURE__ */ i("span", { children: "Powered by" }),
3994
- /* @__PURE__ */ i(Br, {})
4031
+ /* @__PURE__ */ i(yr, {})
3995
4032
  ]
3996
4033
  }
3997
4034
  )
3998
4035
  ] });
3999
- }, Ko = () => {
4036
+ }, Ro = () => {
4000
4037
  const { links: e } = ye;
4001
- return /* @__PURE__ */ v("div", { className: "text-xs text-[#A9A29D] text-center", children: [
4038
+ return /* @__PURE__ */ C("div", { className: "text-xs text-[#A9A29D] text-center", children: [
4002
4039
  /* @__PURE__ */ i("p", { children: "By connecting your wallet, you agree to" }),
4003
- /* @__PURE__ */ v("p", { children: [
4040
+ /* @__PURE__ */ C("p", { children: [
4004
4041
  "our",
4005
4042
  " ",
4006
4043
  /* @__PURE__ */ i(Ee, { color: "primary", className: "text-xs", underline: "hover", href: e.termsOfService, target: "_blank", children: "Terms of Service" }),
@@ -4011,21 +4048,21 @@ const sn = (e, n, t = "Wallet is performing an action, please wait...") => {
4011
4048
  "."
4012
4049
  ] })
4013
4050
  ] });
4014
- }, Go = ({ wallet: e, onSelectWallet: n }) => {
4051
+ }, _o = ({ wallet: e, onSelectWallet: n }) => {
4015
4052
  const { info: t, isInstalled: r } = e, s = B(() => {
4016
4053
  if (!r) return null;
4017
4054
  const o = t?.uuid === "walletConnect";
4018
4055
  return /* @__PURE__ */ i("span", { className: "text-xs line-height-[140px] font-normal text-[#A9A29D]", children: o ? "QR Code" : "Installed" });
4019
4056
  }, [t?.uuid, r]);
4020
- return /* @__PURE__ */ i(yr, { isPressable: !0, isHoverable: !0, shadow: "none", radius: "sm", onPress: () => n?.(e), children: /* @__PURE__ */ v(hr, { className: "flex flex-col items-center gap-1 px-0 py-2", children: [
4057
+ return /* @__PURE__ */ i(hr, { isPressable: !0, isHoverable: !0, shadow: "none", radius: "sm", onPress: () => n?.(e), children: /* @__PURE__ */ C(Mr, { className: "flex flex-col items-center gap-1 px-0 py-2", children: [
4021
4058
  /* @__PURE__ */ i("div", { className: "p-1 h-[56px]", children: /* @__PURE__ */ i(ne, { src: t.icon, alt: t.name, width: 48, height: 48, removeWrapper: !0, radius: "md" }) }),
4022
- /* @__PURE__ */ v("div", { className: "flex flex-col justify-center items-center scale-80 text-center", children: [
4059
+ /* @__PURE__ */ C("div", { className: "flex flex-col justify-center items-center scale-80 text-center", children: [
4023
4060
  /* @__PURE__ */ i("span", { className: "text-sm font-medium", children: t.name }),
4024
4061
  s
4025
4062
  ] })
4026
4063
  ] }) }, t.uuid);
4027
4064
  };
4028
- function Uo({ wallets: e, loading: n, onSelectWallet: t }) {
4065
+ function $o({ wallets: e, loading: n, onSelectWallet: t }) {
4029
4066
  return n ? /* @__PURE__ */ i(
4030
4067
  te,
4031
4068
  {
@@ -4036,14 +4073,14 @@ function Uo({ wallets: e, loading: n, onSelectWallet: t }) {
4036
4073
  },
4037
4074
  className: "m-auto"
4038
4075
  }
4039
- ) : e.length === 0 ? /* @__PURE__ */ i("div", { className: "flex flex-col items-center justify-center py-12", children: /* @__PURE__ */ i("p", { className: "text-gray-600", children: "No wallets found" }) }) : /* @__PURE__ */ i("div", { className: "grid grid-cols-4", children: e.map((r) => /* @__PURE__ */ i(Go, { wallet: r, onSelectWallet: t }, r.info?.uuid)) });
4076
+ ) : e.length === 0 ? /* @__PURE__ */ i("div", { className: "flex flex-col items-center justify-center py-12", children: /* @__PURE__ */ i("p", { className: "text-gray-600", children: "No wallets found" }) }) : /* @__PURE__ */ i("div", { className: "grid grid-cols-4", children: e.map((r) => /* @__PURE__ */ i(_o, { wallet: r, onSelectWallet: t }, r.info?.uuid)) });
4040
4077
  }
4041
- const Ro = {
4078
+ const ec = {
4042
4079
  evm: { tabKey: "evm", chainKey: "evm" },
4043
4080
  solana: { tabKey: "solana", chainKey: "solana" },
4044
4081
  aptos: { tabKey: "aptos", chainKey: "aptos" },
4045
4082
  dogecoin: { tabKey: "doge", chainKey: "dogecoin" }
4046
- }, _o = ({ selectedKey: e, onSelectionChange: n }) => {
4083
+ }, nc = ({ selectedKey: e, onSelectionChange: n }) => {
4047
4084
  const t = V(W), r = B(() => {
4048
4085
  const o = t?.config?.chains || {}, c = [
4049
4086
  {
@@ -4053,7 +4090,7 @@ const Ro = {
4053
4090
  }
4054
4091
  ];
4055
4092
  return Object.keys(o).forEach((a) => {
4056
- const l = Ro[a];
4093
+ const l = ec[a];
4057
4094
  if (l) {
4058
4095
  const A = O[l.chainKey];
4059
4096
  c.push({
@@ -4065,30 +4102,30 @@ const Ro = {
4065
4102
  }), c;
4066
4103
  }, [t?.config?.chains]), s = (o) => o.icon ? /* @__PURE__ */ i(le, { icon: o.icon, className: "size-6 overflow-hidden rounded-full" }) : o.title;
4067
4104
  return /* @__PURE__ */ i(
4068
- Mr,
4105
+ Wr,
4069
4106
  {
4070
4107
  variant: "bordered",
4071
4108
  fullWidth: !0,
4072
4109
  selectedKey: e,
4073
4110
  onSelectionChange: (o) => n(o),
4074
- children: r.map((o) => /* @__PURE__ */ i(Wr, { title: s(o) }, o.key))
4111
+ children: r.map((o) => /* @__PURE__ */ i(Vr, { title: s(o) }, o.key))
4075
4112
  }
4076
4113
  );
4077
- }, $o = ({ wallet: e, onSelectWallet: n }) => {
4078
- const { info: t, isInstalled: r } = e, s = B(() => r ? t?.uuid === "walletConnect" ? /* @__PURE__ */ i(Sn, { className: "text-xs text-[#D7D3D0] border h-5", variant: "dot", children: "QR Code" }) : /* @__PURE__ */ i(Sn, { className: "text-xs text-[#D7D3D0] border h-5", variant: "dot", children: "Installed" }) : null, [t?.uuid, r]);
4114
+ }, tc = ({ wallet: e, onSelectWallet: n }) => {
4115
+ const { info: t, isInstalled: r } = e, s = B(() => r ? t?.uuid === "walletConnect" ? /* @__PURE__ */ i(Ln, { className: "text-xs text-[#D7D3D0] border h-5", variant: "dot", children: "QR Code" }) : /* @__PURE__ */ i(Ln, { className: "text-xs text-[#D7D3D0] border h-5", variant: "dot", children: "Installed" }) : null, [t?.uuid, r]);
4079
4116
  return /* @__PURE__ */ i(
4080
- dr,
4117
+ Ar,
4081
4118
  {
4082
4119
  onPress: () => n?.(e),
4083
- startContent: /* @__PURE__ */ i(Ar, { icon: t?.icon, title: t?.name }),
4120
+ startContent: /* @__PURE__ */ i(lr, { icon: t?.icon, title: t?.name }),
4084
4121
  endContent: s
4085
4122
  },
4086
4123
  e.info.uuid
4087
4124
  );
4088
- }, Ar = ({ icon: e, title: n }) => /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
4125
+ }, lr = ({ icon: e, title: n }) => /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
4089
4126
  typeof e == "string" ? /* @__PURE__ */ i(ne, { src: e, alt: n, width: 32, height: 32, radius: "md" }) : e,
4090
4127
  /* @__PURE__ */ i("span", { className: "text-sm font-medium text-foreground", children: n })
4091
- ] }), dr = (e) => /* @__PURE__ */ i(
4128
+ ] }), Ar = (e) => /* @__PURE__ */ i(
4092
4129
  X,
4093
4130
  {
4094
4131
  fullWidth: !0,
@@ -4101,7 +4138,7 @@ const Ro = {
4101
4138
  children: /* @__PURE__ */ i("span", {})
4102
4139
  }
4103
4140
  );
4104
- function ec({ wallets: e, loading: n, onSelectWallet: t }) {
4141
+ function rc({ wallets: e, loading: n, onSelectWallet: t }) {
4105
4142
  return n ? /* @__PURE__ */ i(
4106
4143
  te,
4107
4144
  {
@@ -4112,47 +4149,47 @@ function ec({ wallets: e, loading: n, onSelectWallet: t }) {
4112
4149
  circle2: "border-b-primary"
4113
4150
  }
4114
4151
  }
4115
- ) : e.length === 0 ? /* @__PURE__ */ i("div", { className: "flex flex-col items-center justify-center py-12", children: /* @__PURE__ */ i("p", { className: "text-gray-600", children: "No wallets found" }) }) : /* @__PURE__ */ i("div", { className: "flex flex-col gap-2", children: e.map((r) => /* @__PURE__ */ i($o, { wallet: r, onSelectWallet: t }, r.info?.uuid)) });
4152
+ ) : e.length === 0 ? /* @__PURE__ */ i("div", { className: "flex flex-col items-center justify-center py-12", children: /* @__PURE__ */ i("p", { className: "text-gray-600", children: "No wallets found" }) }) : /* @__PURE__ */ i("div", { className: "flex flex-col gap-2", children: e.map((r) => /* @__PURE__ */ i(tc, { wallet: r, onSelectWallet: t }, r.info?.uuid)) });
4116
4153
  }
4117
- const nc = () => {
4154
+ const sc = () => {
4118
4155
  const e = V(W), { handleSelectWallet: n } = Ke(), { data: t, isLoading: r } = he(k.All, e?.config?.connectors), [s, o] = B(() => {
4119
4156
  const a = t?.recommoned || [], l = t?.all || [];
4120
- return fs(a, l);
4157
+ return us(a, l);
4121
4158
  }, [t]);
4122
- return /* @__PURE__ */ i(S, { title: "Connect your wallet", children: /* @__PURE__ */ v("div", { className: "flex flex-col gap-4", children: [
4123
- /* @__PURE__ */ i("div", { className: "space-y-2 h-[312px] max-h-[312px] overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]", children: /* @__PURE__ */ i("div", { className: `flex flex-col gap-2 h-full ${r ? "justify-center" : ""}`, children: /* @__PURE__ */ i(ec, { loading: r, wallets: s, onSelectWallet: n }) }) }),
4159
+ return /* @__PURE__ */ i(S, { title: "Connect your wallet", children: /* @__PURE__ */ C("div", { className: "flex flex-col gap-4", children: [
4160
+ /* @__PURE__ */ i("div", { className: "space-y-2 h-[312px] max-h-[312px] overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]", children: /* @__PURE__ */ i("div", { className: `flex flex-col gap-2 h-full ${r ? "justify-center" : ""}`, children: /* @__PURE__ */ i(rc, { loading: r, wallets: s, onSelectWallet: n }) }) }),
4124
4161
  r ? null : /* @__PURE__ */ i(
4125
- dr,
4162
+ Ar,
4126
4163
  {
4127
4164
  onPress: () => e?.modal.setView(P.WalletSearch),
4128
- startContent: /* @__PURE__ */ i(Ar, { icon: /* @__PURE__ */ i(Vr, {}), title: "Search more wallets" }),
4165
+ startContent: /* @__PURE__ */ i(lr, { icon: /* @__PURE__ */ i(Xr, {}), title: "Search more wallets" }),
4129
4166
  endContent: /* @__PURE__ */ i("span", { className: "text-[#A9A29D] text-sm", children: o.length })
4130
4167
  }
4131
4168
  ),
4132
4169
  /* @__PURE__ */ i(Ge, {})
4133
4170
  ] }) });
4134
- }, tc = zn, rc = () => {
4135
- const e = V(W), { handleSelectWallet: n } = Ke(), t = e?.modal.state, r = B(() => t?.chainType || "all", [t?.chainType]), { data: s, isLoading: o } = he(r, e?.config?.connectors), c = B(() => s?.all || [], [s]), [a, l] = N(""), { isKeyboardVisible: A, keyboardHeight: d } = jo(), f = B(() => c.filter((C) => C.info?.name?.toLowerCase().includes(a.toLowerCase())).filter((C) => !C.isEmbeddedWallet), [c, a]), g = Lo([r]), u = B(() => A && d > 0 ? `${Math.max(180, 340 - d * 0.6)}px` : "340px", [A, d]), x = T(
4136
- (C) => {
4137
- e?.modal.setCurrentViewState({ chainType: C });
4171
+ }, ic = bn, oc = () => {
4172
+ const e = V(W), { handleSelectWallet: n } = Ke(), t = e?.modal.state, r = B(() => t?.chainType || "all", [t?.chainType]), { data: s, isLoading: o } = he(r, e?.config?.connectors), c = B(() => s?.all || [], [s]), [a, l] = N(""), { isKeyboardVisible: A, keyboardHeight: d } = To(), f = B(() => c.filter((v) => v.info?.name?.toLowerCase().includes(a.toLowerCase())).filter((v) => !v.isEmbeddedWallet), [c, a]), u = So([r]), g = B(() => A && d > 0 ? `${Math.max(180, 340 - d * 0.6)}px` : "340px", [A, d]), x = T(
4173
+ (v) => {
4174
+ e?.modal.setCurrentViewState({ chainType: v });
4138
4175
  },
4139
4176
  [e]
4140
4177
  );
4141
- return /* @__PURE__ */ i(S, { title: "All wallets", onBack: () => e?.modal.backView(), children: /* @__PURE__ */ v("div", { className: "flex flex-col gap-4 min-h-0", children: [
4178
+ return /* @__PURE__ */ i(S, { title: "All wallets", onBack: () => e?.modal.backView(), children: /* @__PURE__ */ C("div", { className: "flex flex-col gap-4 min-h-0", children: [
4142
4179
  /* @__PURE__ */ i(
4143
- _o,
4180
+ nc,
4144
4181
  {
4145
4182
  selectedKey: t?.chainType || "all",
4146
- onSelectionChange: (C) => x(C)
4183
+ onSelectionChange: (v) => x(v)
4147
4184
  }
4148
4185
  ),
4149
4186
  /* @__PURE__ */ i(
4150
- tc,
4187
+ ic,
4151
4188
  {
4152
4189
  placeholder: "Search wallet",
4153
4190
  value: a,
4154
- onChange: (C) => l(C.target.value),
4155
- startContent: /* @__PURE__ */ i(Xr, {}),
4191
+ onChange: (v) => l(v.target.value),
4192
+ startContent: /* @__PURE__ */ i(Nr, {}),
4156
4193
  classNames: {
4157
4194
  inputWrapper: "rounded-full h-11"
4158
4195
  }
@@ -4161,40 +4198,40 @@ const nc = () => {
4161
4198
  /* @__PURE__ */ i(
4162
4199
  "div",
4163
4200
  {
4164
- ref: g,
4201
+ ref: u,
4165
4202
  className: "space-y-2 shrink-0 overflow-y-auto transition-all duration-200 [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",
4166
4203
  style: {
4167
- height: u,
4168
- maxHeight: u
4204
+ height: g,
4205
+ maxHeight: g
4169
4206
  },
4170
4207
  children: /* @__PURE__ */ i("div", { className: `flex flex-col gap-2 h-full ${o ? "justify-center" : ""}`, children: /* @__PURE__ */ i(
4171
- Uo,
4208
+ $o,
4172
4209
  {
4173
4210
  loading: o,
4174
4211
  wallets: f,
4175
- onSelectWallet: (C) => n(C, r)
4212
+ onSelectWallet: (v) => n(v, r)
4176
4213
  }
4177
4214
  ) })
4178
4215
  }
4179
4216
  ),
4180
4217
  /* @__PURE__ */ i(Ge, {})
4181
4218
  ] }) });
4182
- }, sc = () => "doge", ic = () => {
4219
+ }, dr = () => Fo, cc = () => {
4183
4220
  const e = V(W);
4184
4221
  if (!e)
4185
4222
  return { themeMode: "dark", themeType: "doge_dark" };
4186
- const { themeMode: n } = e.config || { themeMode: "dark" }, t = sc(e.config?.clientId || "");
4223
+ const { themeMode: n } = e.config || { themeMode: "dark" }, t = dr(e.config?.clientId || "");
4187
4224
  return { themeMode: n, themeType: t, isDark: n === "dark" };
4188
- }, pn = ({
4225
+ }, xn = ({
4189
4226
  text: e = "or",
4190
4227
  className: n = "",
4191
4228
  lineClassName: t = "bg-[#292524]",
4192
4229
  textClassName: r = "text-sm text-[#78716C]"
4193
- }) => /* @__PURE__ */ v("div", { className: `flex items-center gap-4 ${n}`, children: [
4230
+ }) => /* @__PURE__ */ C("div", { className: `flex items-center gap-4 ${n}`, children: [
4194
4231
  /* @__PURE__ */ i("div", { className: `flex-1 h-px ${t}` }),
4195
4232
  /* @__PURE__ */ i("span", { className: r, children: e }),
4196
4233
  /* @__PURE__ */ i("div", { className: `flex-1 h-px ${t}` })
4197
- ] }), fr = ({ isLoading: e = !1, text: n = "Loading..." }) => e ? /* @__PURE__ */ i("div", { className: "absolute inset-0 backdrop-blur-sm z-50 flex items-center justify-center", children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center gap-3", children: [
4234
+ ] }), fr = ({ isLoading: e = !1, text: n = "Loading..." }) => e ? /* @__PURE__ */ i("div", { className: "absolute inset-0 backdrop-blur-sm z-50 flex items-center justify-center", children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center gap-3", children: [
4198
4235
  /* @__PURE__ */ i(
4199
4236
  te,
4200
4237
  {
@@ -4206,7 +4243,7 @@ const nc = () => {
4206
4243
  }
4207
4244
  ),
4208
4245
  /* @__PURE__ */ i("span", { className: "text-foreground text-sm font-medium", children: n })
4209
- ] }) }) : null, ur = ({ className: e, width: n = 24, height: t = 24 }) => /* @__PURE__ */ v(
4246
+ ] }) }) : null, ur = ({ className: e, width: n = 24, height: t = 24 }) => /* @__PURE__ */ C(
4210
4247
  "svg",
4211
4248
  {
4212
4249
  width: n,
@@ -4257,15 +4294,15 @@ const nc = () => {
4257
4294
  className: e,
4258
4295
  children: /* @__PURE__ */ i("path", { d: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" })
4259
4296
  }
4260
- ), oc = zn, cc = () => {
4261
- const e = V(W), { isLoading: n, handleEmailLogin: t, handleGoogleLogin: r, handleXLogin: s } = ir({
4297
+ ), ac = bn, lc = () => {
4298
+ const e = V(W), { isLoading: n, handleEmailLogin: t, handleGoogleLogin: r, handleXLogin: s } = sr({
4262
4299
  closeModalBeforeIframe: !0
4263
4300
  });
4264
4301
  if (!e)
4265
4302
  throw new Error("WalletConnectContext not found");
4266
4303
  const [o, c] = N(e.modal.state?.email || "");
4267
- Z(() => {
4268
- e.modal.state?.error && (Nr({
4304
+ Y(() => {
4305
+ e.modal.state?.error && (jr({
4269
4306
  title: e.modal.state.error,
4270
4307
  color: "danger",
4271
4308
  timeout: 3e3,
@@ -4276,27 +4313,27 @@ const nc = () => {
4276
4313
  await t(o);
4277
4314
  }, l = () => {
4278
4315
  e.modal.setView(P.WalletSearch);
4279
- }, { isDark: A } = ic();
4280
- return console.log("context.modal.state: ", n, e.modal.state?.isLoading), /* @__PURE__ */ v(
4316
+ }, { isDark: A } = cc();
4317
+ return console.log("context.modal.state: ", n, e.modal.state?.isLoading), /* @__PURE__ */ C(
4281
4318
  S,
4282
4319
  {
4283
4320
  title: "Log in or sign up",
4284
- headerRightContent: /* @__PURE__ */ v(
4321
+ headerRightContent: /* @__PURE__ */ C(
4285
4322
  Ee,
4286
4323
  {
4287
4324
  className: "text-sm text-[#78716C] hover:text-primary cursor-pointer flex items-center gap-1",
4288
4325
  onPress: l,
4289
4326
  children: [
4290
4327
  /* @__PURE__ */ i("span", { children: "Or connect a wallet" }),
4291
- /* @__PURE__ */ i(wn, {})
4328
+ /* @__PURE__ */ i(zn, {})
4292
4329
  ]
4293
4330
  }
4294
4331
  ),
4295
4332
  children: [
4296
4333
  /* @__PURE__ */ i(fr, { isLoading: n || e.modal.state?.isLoading }),
4297
- /* @__PURE__ */ v("div", { className: "flex flex-col justify-between min-h-0 flex-1 pt-8", children: [
4298
- /* @__PURE__ */ v("div", { className: "flex flex-col gap-6", children: [
4299
- /* @__PURE__ */ v("div", { className: "flex gap-3 pb-6", children: [
4334
+ /* @__PURE__ */ C("div", { className: "flex flex-col justify-between min-h-0 flex-1 pt-8", children: [
4335
+ /* @__PURE__ */ C("div", { className: "flex flex-col gap-6", children: [
4336
+ /* @__PURE__ */ C("div", { className: "flex gap-3 pb-6", children: [
4300
4337
  /* @__PURE__ */ i(
4301
4338
  X,
4302
4339
  {
@@ -4323,16 +4360,16 @@ const nc = () => {
4323
4360
  )
4324
4361
  ] }),
4325
4362
  /* @__PURE__ */ i(
4326
- pn,
4363
+ xn,
4327
4364
  {
4328
4365
  lineClassName: "h-[0.5px] bg-[#ebebf4]",
4329
4366
  textClassName: "text-[#8989ab] text-xs",
4330
4367
  text: "or continue with"
4331
4368
  }
4332
4369
  ),
4333
- /* @__PURE__ */ v("div", { className: "flex flex-col gap-5 items-center pb-8", children: [
4370
+ /* @__PURE__ */ C("div", { className: "flex flex-col gap-5 items-center pb-8", children: [
4334
4371
  /* @__PURE__ */ i(
4335
- oc,
4372
+ ac,
4336
4373
  {
4337
4374
  type: "email",
4338
4375
  placeholder: "Enter your email",
@@ -4345,7 +4382,7 @@ const nc = () => {
4345
4382
  autoComplete: "new-password",
4346
4383
  onKeyDown: (d) => {
4347
4384
  if (d.key === "Enter") {
4348
- if (!wt(o))
4385
+ if (!zt(o))
4349
4386
  return;
4350
4387
  a();
4351
4388
  }
@@ -4371,23 +4408,23 @@ const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rJqbRBksmUZFoboH6773omD1Dhqynyimz5nd0dPjo8lpi/pc9xkzUIRNLiKX+HsxS3MNw/X824MDhIaSWNiMktVnhqW5GRMYeAbfbFCtMNU5NDGs+jDUbr+u3JahjvPJgVqY7ZezUGfNJAD6c5GBWwuUfW8KU2cs3CUW4Uw1PY4ktYfeJq4khQXhzvkC6xNucvzxzO4YXKvio41xSIc04oGXmhpTodbcFKEaySNZt7ny8f94vkOsO4qyD6YenbAkO2nCJkH52njdJMjL2LGjS+dP7rPUEOXxWlIObJcT84wnHSvYx48REpIJevQmpk1/o+iYbhbdriy9gDSUHr6fen09LR8Qm2v6tcs35EHc/21bxSUvhTVorZUGD3dqvCCMfpFgpC1Ind7aO7ALhP8d1ZFP5wsIq83BuBXnqtOZPc9hE6lllHs6toHKTdTCX0xZcYg/ncnhpHcylKIf3ezfRo6qMD+fGEx/WbXO28f7xHOrG+Vcv4o5n8/F0gq7avK7ex9ObXi322LJRSoyYQ+9Npc1fb8/j6cJnHE9HbaQNWwuu7X08fVedr/SdvR1zPv3ujKltoWxve9jtYUjKc7T7C5xtvglDA3U/n2yvnTbZm/h4eps8Xj6Hxk04f3k8XUMtcvs8nj6HSuL+GRxP/z/hFFWXpmDkiwAAAABJRU5ErkJggg==", lc = () => {
4375
- const { walletState: e } = jn(), { chainType: n, chainId: t } = e, { switchChain: r } = Tn();
4376
- return In({
4411
+ }, Ac = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAgCAYAAADtwH1UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA4eSURBVHgBvVoJcBRVGv5eT8+Vc0KQSwKDIJccEWFFFIMu4oUQd9li0VUDuqulW0ZLYMtdkUR0Wa8iVlmUFosGXK+SLRFUVlcrBtcVF3DjxQqKDiEcUTEzuTNH9/7/6+7JZDJkjoB/5eV1v+7X781/fP///vcEUqS7KnRPs7Ot1AZRousoBnQvIDzGU91P1z4hUA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dqvCCMfpFgpC1Ind7aO7ALhP8d1ZFP5wsIq83BuBXnqtOZPc9hE6lllHs6toHKTdTCX0xZcYg/ncnhpHcylKIf3ezfRo6qMD+fGEx/WbXO28f7xHOrG+Vcv4o5n8/F0gq7avK7ex9ObXi322LJRSoyYQ+9Npc1fb8/j6cJnHE9HbaQNWwuu7X08fVedr/SdvR1zPv3ujKltoWxve9jtYUjKc7T7C5xtvglDA3U/n2yvnTbZm/h4eps8Xj6Hxk04f3k8XUMtcvs8nj6HSuL+GRxP/z/hFFWXpmDkiwAAAABJRU5ErkJggg==", dc = () => {
4412
+ const { walletState: e } = Nn(), { chainType: n, chainId: t } = e, { switchChain: r } = jn();
4413
+ return wn({
4377
4414
  mutationKey: ["switch-chain", n, t],
4378
4415
  mutationFn: async (s) => r(s)
4379
4416
  });
4380
- }, it = ({ chainType: e, chain: n }) => {
4381
- const { mutateAsync: t, isPending: r } = lc(), s = V(W), { connectWallet: o } = qe();
4417
+ }, st = ({ chainType: e, chain: n }) => {
4418
+ const { mutateAsync: t, isPending: r } = dc(), s = V(W), { connectWallet: o } = qe();
4382
4419
  if (!n || !s)
4383
4420
  throw new Error(`Chain ${e} not found`);
4384
4421
  const { currentWallet: c } = s.account;
4385
4422
  if (!c)
4386
4423
  throw new Error("Current wallet not found");
4387
- const { chainType: a, chainId: l } = Tn(), A = Number(BigInt(l || "0").toString()), d = B(() => {
4424
+ const { chainType: a, chainId: l } = jn(), A = Number(BigInt(l || "0").toString()), d = B(() => {
4388
4425
  const x = a?.toLowerCase() === e?.toLowerCase();
4389
4426
  return a === "evm" ? x && A === n?.id : x;
4390
- }, [n?.id, A, e, a]), f = B(() => c?.providers?.[e]?.provider, [c, e]), g = B(() => d ? /* @__PURE__ */ i("div", { className: "size-5 bg-[#079555] rounded-full flex items-center justify-center", children: /* @__PURE__ */ i(At, { className: "size-3", color: "white" }) }) : r ? /* @__PURE__ */ i(
4427
+ }, [n?.id, A, e, a]), f = B(() => c?.providers?.[e]?.provider, [c, e]), u = B(() => d ? /* @__PURE__ */ i("div", { className: "size-5 bg-[#079555] rounded-full flex items-center justify-center", children: /* @__PURE__ */ i(lt, { className: "size-3", color: "white" }) }) : r ? /* @__PURE__ */ i(
4391
4428
  te,
4392
4429
  {
4393
4430
  size: "sm",
@@ -4396,7 +4433,7 @@ const nc = () => {
4396
4433
  circle2: "border-b-primary"
4397
4434
  }
4398
4435
  }
4399
- ) : /* @__PURE__ */ i(wn, { className: "size-4" }), [r, d]), u = () => {
4436
+ ) : /* @__PURE__ */ i(zn, { className: "size-4" }), [r, d]), g = () => {
4400
4437
  if (!(r || d)) {
4401
4438
  if (a !== e) {
4402
4439
  f ? o(c, e) : s.modal.setView(P.ChangeNetwork, n);
@@ -4423,13 +4460,13 @@ const nc = () => {
4423
4460
  className: `border justify-between border-primary gap-3 hover:bg-primary/50 ${d ? "bg-primary" : ""}`,
4424
4461
  "aria-label": `${n?.name}`,
4425
4462
  startContent: /* @__PURE__ */ i(le, { icon: n?.chainInfo?.icon, className: "size-8 overflow-hidden rounded-full" }),
4426
- endContent: g,
4427
- onPress: u,
4463
+ endContent: u,
4464
+ onPress: g,
4428
4465
  children: /* @__PURE__ */ i("span", { className: "flex-1 text-left text-sm font-medium", children: n?.chainInfo?.name })
4429
4466
  }
4430
4467
  );
4431
- }, Ac = ({ chains: e }) => {
4432
- const { chainType: n } = Tn(), { currentChains: t, otherChains: r } = B(() => {
4468
+ }, fc = ({ chains: e }) => {
4469
+ const { chainType: n } = jn(), { currentChains: t, otherChains: r } = B(() => {
4433
4470
  const s = [], o = [];
4434
4471
  return e.map((c) => {
4435
4472
  n?.toLowerCase() === c.chainType?.toLowerCase() ? s.push(c) : o.push(c);
@@ -4442,25 +4479,25 @@ const nc = () => {
4442
4479
  key: "chains",
4443
4480
  currentChains: t,
4444
4481
  otherChains: r
4445
- }), /* @__PURE__ */ v("div", { className: "flex flex-col w-full", children: [
4446
- t[0]?.chainType === "evm" && /* @__PURE__ */ v("div", { className: "text-sm flex gap-2 mt-2 mb-4 items-center", children: [
4482
+ }), /* @__PURE__ */ C("div", { className: "flex flex-col w-full", children: [
4483
+ t[0]?.chainType === "evm" && /* @__PURE__ */ C("div", { className: "text-sm flex gap-2 mt-2 mb-4 items-center", children: [
4447
4484
  /* @__PURE__ */ i("span", { children: "EVM network" }),
4448
- /* @__PURE__ */ i("img", { src: ac, alt: "Evm chains", className: "h-4 w-auto" })
4485
+ /* @__PURE__ */ i("img", { src: Ac, alt: "Evm chains", className: "h-4 w-auto" })
4449
4486
  ] }),
4450
- /* @__PURE__ */ i("div", { className: "flex flex-col gap-1 w-full mb-4", children: t?.map((s, o) => /* @__PURE__ */ i(it, { chainType: s.chainType, chain: s }, `${s.name}-${o}`)) }),
4487
+ /* @__PURE__ */ i("div", { className: "flex flex-col gap-1 w-full mb-4", children: t?.map((s, o) => /* @__PURE__ */ i(st, { chainType: s.chainType, chain: s }, `${s.name}-${o}`)) }),
4451
4488
  /* @__PURE__ */ i("div", { className: "text-sm flex gap-2 mt-2 mb-4", children: /* @__PURE__ */ i("span", { children: "Other network" }) }),
4452
- /* @__PURE__ */ i("div", { className: "flex flex-col gap-1 w-full mb-4", children: r?.map((s, o) => /* @__PURE__ */ i(it, { chainType: s.chainType, chain: s }, `${s.name}-${o}`)) })
4489
+ /* @__PURE__ */ i("div", { className: "flex flex-col gap-1 w-full mb-4", children: r?.map((s, o) => /* @__PURE__ */ i(st, { chainType: s.chainType, chain: s }, `${s.name}-${o}`)) })
4453
4490
  ] });
4454
- }, dc = () => {
4491
+ }, uc = () => {
4455
4492
  const e = V(W);
4456
4493
  if (!e)
4457
4494
  throw new Error("WalletConnectContext not found");
4458
4495
  const { currentWallet: n } = e.account;
4459
4496
  if (!n)
4460
4497
  throw new Error("Current wallet not found");
4461
- const t = $t(e.config?.chains, n?.providers);
4462
- return /* @__PURE__ */ i(S, { title: "Select network", onBack: () => e?.modal.backView(), children: /* @__PURE__ */ i("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ i(Ac, { chains: t }) }) });
4463
- }, fc = ({ chainType: e, onSelect: n }) => {
4498
+ const t = _t(e.config?.chains, n?.providers);
4499
+ return /* @__PURE__ */ i(S, { title: "Select network", onBack: () => e?.modal.backView(), children: /* @__PURE__ */ i("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ i(fc, { chains: t }) }) });
4500
+ }, gc = ({ chainType: e, onSelect: n }) => {
4464
4501
  const t = O[e];
4465
4502
  if (!t)
4466
4503
  throw new Error(`Chain ${e} not found`);
@@ -4474,20 +4511,20 @@ const nc = () => {
4474
4511
  radius: "sm",
4475
4512
  className: "justify-between",
4476
4513
  startContent: /* @__PURE__ */ i(le, { icon: t.icon, className: "size-6 overflow-hidden rounded-full" }),
4477
- endContent: /* @__PURE__ */ i(wn, { className: "size-4" }),
4514
+ endContent: /* @__PURE__ */ i(zn, { className: "size-4" }),
4478
4515
  onPress: n,
4479
4516
  children: /* @__PURE__ */ i("span", { className: "flex-1 text-left text-sm font-medium", children: O[e].name })
4480
4517
  }
4481
4518
  );
4482
- }, uc = ({ providers: e, onSelect: n }) => /* @__PURE__ */ i("div", { className: "flex flex-col gap-2 w-full pb-6", children: e.map((t, r) => /* @__PURE__ */ i(
4483
- fc,
4519
+ }, vc = ({ providers: e, onSelect: n }) => /* @__PURE__ */ i("div", { className: "flex flex-col gap-2 w-full pb-6", children: e.map((t, r) => /* @__PURE__ */ i(
4520
+ gc,
4484
4521
  {
4485
4522
  chainType: t.chainType,
4486
4523
  provider: t.provider,
4487
4524
  onSelect: () => n(t.chainType)
4488
4525
  },
4489
4526
  `${t.chainType}-${t.protocol}-${r}`
4490
- )) }), gc = () => {
4527
+ )) }), Cc = () => {
4491
4528
  const e = V(W);
4492
4529
  if (!e)
4493
4530
  throw new Error("WalletConnectContext not found");
@@ -4510,23 +4547,23 @@ const nc = () => {
4510
4547
  },
4511
4548
  [n, t]
4512
4549
  );
4513
- return /* @__PURE__ */ i(S, { title: "Select network", onBack: () => e?.modal.backView(), children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center", children: [
4550
+ return /* @__PURE__ */ i(S, { title: "Select network", onBack: () => e?.modal.backView(), children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center", children: [
4514
4551
  /* @__PURE__ */ i("div", { className: "flex items-center justify-center mb-6", children: /* @__PURE__ */ i(ne, { src: r.icon, alt: r.name, width: 48, height: 48 }) }),
4515
- /* @__PURE__ */ v("p", { className: "text-sm text-foreground/60 mb-6 text-center", children: [
4552
+ /* @__PURE__ */ C("p", { className: "text-sm text-foreground/60 mb-6 text-center", children: [
4516
4553
  /* @__PURE__ */ i("span", { className: "text-foreground", children: r.name }),
4517
4554
  " supports multiple networks.",
4518
4555
  /* @__PURE__ */ i("br", {}),
4519
4556
  "Please select the network you'd like to connect to."
4520
4557
  ] }),
4521
- /* @__PURE__ */ i(uc, { providers: s, onSelect: o })
4558
+ /* @__PURE__ */ i(vc, { providers: s, onSelect: o })
4522
4559
  ] }) });
4523
- }, vc = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUwIiBoZWlnaHQ9IjE1MCIgdmlld0JveD0iMCAwIDE1MCAxNTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGZvcmVpZ25PYmplY3QgeD0iMjEuMDg4MiIgeT0iMjEuNTg0MyIgd2lkdGg9IjEwNi45MjgiIGhlaWdodD0iMTA2LjkzNSI+PGRpdiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCIgc3R5bGU9ImJhY2tkcm9wLWZpbHRlcjpibHVyKDAuNjlweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyXzBfMTQxXzExMDJfY2xpcF9wYXRoKTtoZWlnaHQ6MTAwJTt3aWR0aDoxMDAlIj48L2Rpdj48L2ZvcmVpZ25PYmplY3Q+PGcgZGF0YS1maWdtYS1iZy1ibHVyLXJhZGl1cz0iMS4z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IHN0b3AtY29sb3I9IiNCQkZGQTEiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQUNGRThCIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==", pc = () => {
4524
4561
  const [e, n] = N(!1), [t, r] = N(null), s = V(W);
4525
4562
  if (!s)
4526
4563
  throw new Error("WalletConnectContext not found");
4527
4564
  const o = () => {
4528
4565
  s.modal.state?.onCancel?.(), s.modal.closeModal();
4529
- }, c = ce(null), { mutate: a, isPending: l } = In({
4566
+ }, c = ce(null), { mutate: a, isPending: l } = wn({
4530
4567
  mutationKey: ["sign-in-wallet"],
4531
4568
  mutationFn: async () => s.modal.state?.onConfirm?.(),
4532
4569
  onSuccess: () => {
@@ -4536,13 +4573,13 @@ const nc = () => {
4536
4573
  n(!1), r("Failed to sign in. Please try again.");
4537
4574
  }
4538
4575
  });
4539
- return Z(() => (e && (c.current = setTimeout(() => {
4576
+ return Y(() => (e && (c.current = setTimeout(() => {
4540
4577
  s.modal.closeModal();
4541
4578
  }, 1e3)), () => {
4542
4579
  c.current && (clearTimeout(c.current), c.current = null);
4543
- }), [e, s.modal]), /* @__PURE__ */ i(S, { onClose: o, title: "Verify wallet ownership", onBack: o, children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center py-6 gap-6 flex-1", children: [
4544
- /* @__PURE__ */ i(ne, { src: e ? Cc : vc, alt: "Sign In Icon", className: "rounded-full" }),
4545
- /* @__PURE__ */ v("div", { className: "text-sm text-center", children: [
4580
+ }), [e, s.modal]), /* @__PURE__ */ i(S, { onClose: o, title: "Verify wallet ownership", onBack: o, children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center py-6 gap-6 flex-1", children: [
4581
+ /* @__PURE__ */ i(ne, { src: e ? xc : mc, alt: "Sign In Icon", className: "rounded-full" }),
4582
+ /* @__PURE__ */ C("div", { className: "text-sm text-center", children: [
4546
4583
  /* @__PURE__ */ i("p", { className: "text-foreground", children: e ? "Ownership verified" : "Verify yourself as the owner of this wallet" }),
4547
4584
  t ? /* @__PURE__ */ i("p", { className: "text-foreground/60", children: t }) : e ? null : /* @__PURE__ */ i("p", { className: "text-foreground/60", children: "Please sign the message request in your wallet to continue." })
4548
4585
  ] }),
@@ -4569,19 +4606,19 @@ const nc = () => {
4569
4606
  }
4570
4607
  ) })
4571
4608
  ] }) });
4572
- }, xc = zn, pc = () => {
4573
- const [e, n] = N(""), t = V(W), { isLoading: r, handleEmailLogin: s, handleGoogleLogin: o, handleXLogin: c } = ir({
4609
+ }, bc = bn, zc = () => {
4610
+ const [e, n] = N(""), t = V(W), { isLoading: r, handleEmailLogin: s, handleGoogleLogin: o, handleXLogin: c } = sr({
4574
4611
  closeModalBeforeIframe: !0
4575
4612
  });
4576
4613
  if (!t)
4577
4614
  throw new Error("WalletConnectContext not found");
4578
- return /* @__PURE__ */ v(S, { title: "Log in or sign up", children: [
4615
+ return /* @__PURE__ */ C(S, { title: "Log in or sign up", children: [
4579
4616
  /* @__PURE__ */ i(fr, { isLoading: r }),
4580
- /* @__PURE__ */ v("div", { className: "flex flex-col justify-between min-h-0 flex-1 pb-4", children: [
4581
- /* @__PURE__ */ v("div", { className: "flex flex-col gap-6 px-4", children: [
4582
- /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
4617
+ /* @__PURE__ */ C("div", { className: "flex flex-col justify-between min-h-0 flex-1 pb-4", children: [
4618
+ /* @__PURE__ */ C("div", { className: "flex flex-col gap-6 px-4", children: [
4619
+ /* @__PURE__ */ C("div", { className: "flex items-center gap-2", children: [
4583
4620
  /* @__PURE__ */ i(
4584
- xc,
4621
+ bc,
4585
4622
  {
4586
4623
  type: "email",
4587
4624
  placeholder: "Enter your email",
@@ -4618,8 +4655,8 @@ const nc = () => {
4618
4655
  }
4619
4656
  )
4620
4657
  ] }),
4621
- /* @__PURE__ */ i(pn, {}),
4622
- /* @__PURE__ */ v("div", { className: "flex flex-col gap-3", children: [
4658
+ /* @__PURE__ */ i(xn, {}),
4659
+ /* @__PURE__ */ C("div", { className: "flex flex-col gap-3", children: [
4623
4660
  /* @__PURE__ */ i(
4624
4661
  X,
4625
4662
  {
@@ -4645,7 +4682,7 @@ const nc = () => {
4645
4682
  }
4646
4683
  )
4647
4684
  ] }),
4648
- /* @__PURE__ */ i(pn, {}),
4685
+ /* @__PURE__ */ i(xn, {}),
4649
4686
  /* @__PURE__ */ i(
4650
4687
  X,
4651
4688
  {
@@ -4663,38 +4700,38 @@ const nc = () => {
4663
4700
  /* @__PURE__ */ i("div", { className: "mt-6 px-4", children: /* @__PURE__ */ i(Ge, {}) })
4664
4701
  ] })
4665
4702
  ] });
4666
- }, bc = "Please reselect the network you want to switch to", zc = Pt.unsupported, wc = () => {
4703
+ }, wc = "Please reselect the network you want to switch to", Ic = It.unsupported, Pc = () => {
4667
4704
  const e = V(W);
4668
4705
  if (!e)
4669
4706
  throw new Error("WalletConnectContext not found");
4670
4707
  const n = e.modal.state?.name || "-", t = () => {
4671
4708
  e?.modal.backView();
4672
4709
  };
4673
- return /* @__PURE__ */ i(S, { title: "Select network", onBack: t, children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center", children: [
4674
- /* @__PURE__ */ i("div", { className: "flex justify-center", children: /* @__PURE__ */ i(le, { icon: zc, className: "size-14 overflow-hidden rounded-full" }) }),
4675
- /* @__PURE__ */ v("div", { className: "mt-6 flex flex-col justify-center items-center", children: [
4676
- /* @__PURE__ */ v("div", { className: "text-t1 text-sm text-center", children: [
4710
+ return /* @__PURE__ */ i(S, { title: "Select network", onBack: t, children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center", children: [
4711
+ /* @__PURE__ */ i("div", { className: "flex justify-center", children: /* @__PURE__ */ i(le, { icon: Ic, className: "size-14 overflow-hidden rounded-full" }) }),
4712
+ /* @__PURE__ */ C("div", { className: "mt-6 flex flex-col justify-center items-center", children: [
4713
+ /* @__PURE__ */ C("div", { className: "text-t1 text-sm text-center", children: [
4677
4714
  "Current Wallet Does Not Support ",
4678
4715
  /* @__PURE__ */ i("br", {}),
4679
4716
  " ",
4680
4717
  n,
4681
4718
  " Chain"
4682
4719
  ] }),
4683
- /* @__PURE__ */ i("div", { className: "text-[#A9A29D] mt-2 text-sm text-center", children: bc })
4720
+ /* @__PURE__ */ i("div", { className: "text-[#A9A29D] mt-2 text-sm text-center", children: wc })
4684
4721
  ] }),
4685
4722
  /* @__PURE__ */ i(X, { className: "w-full my-4", onPress: t, children: "Got it" })
4686
4723
  ] }) });
4687
- }, Ic = () => {
4724
+ }, Bc = () => {
4688
4725
  const e = V(W);
4689
4726
  if (!e)
4690
4727
  throw new Error("WalletConnectContext not found");
4691
4728
  const { currentWallet: n } = e.account;
4692
4729
  if (!n)
4693
4730
  throw new Error("Current wallet not found");
4694
- const [t, r] = N(""), { copy: s, copied: o } = Pn(), c = () => {
4731
+ const [t, r] = N(""), { copy: s, copied: o } = In(), c = () => {
4695
4732
  s(t);
4696
4733
  }, a = e.modal.state?.chainType || "evm", l = B(() => n.providers?.[a]?.provider, [n, a]);
4697
- return Z(() => {
4734
+ return Y(() => {
4698
4735
  if (l && l && typeof l.on == "function" && typeof l.off == "function") {
4699
4736
  const d = (f) => {
4700
4737
  r(f.uri);
@@ -4714,10 +4751,10 @@ const nc = () => {
4714
4751
  }
4715
4752
  }, [l, r]), /* @__PURE__ */ i(S, { onBack: () => {
4716
4753
  e.modal.backView();
4717
- }, title: "Wallet Connect", children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center px-5 pb-6 gap-4", children: [
4754
+ }, title: "Wallet Connect", children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center px-5 pb-6 gap-4", children: [
4718
4755
  /* @__PURE__ */ i("p", { className: "text-sm text-foreground/80 text-center", children: "Scan the QR code with your wallet camera" }),
4719
4756
  /* @__PURE__ */ i(
4720
- er,
4757
+ $t,
4721
4758
  {
4722
4759
  content: t,
4723
4760
  logo: n.info.icon,
@@ -4727,33 +4764,33 @@ const nc = () => {
4727
4764
  /* @__PURE__ */ i(X, { variant: "light", size: "lg", fullWidth: !0, onPress: c, children: o ? "Copied!" : "Copy Link" })
4728
4765
  ] }) });
4729
4766
  }, vr = {
4730
- [P.Loading]: () => /* @__PURE__ */ i(No, {}),
4731
- [P.Logged]: () => /* @__PURE__ */ i(qo, {}),
4732
- [P.Error]: () => /* @__PURE__ */ i(Bo, {}),
4733
- [P.Connecting]: () => /* @__PURE__ */ i(Po, {}),
4734
- [P.WalletList]: () => /* @__PURE__ */ i(nc, {}),
4735
- [P.WalletSearch]: () => /* @__PURE__ */ i(rc, {}),
4736
- [P.WalletSelectProviders]: () => /* @__PURE__ */ i(gc, {}),
4737
- [P.WalletInstallGuide]: () => /* @__PURE__ */ i(Xo, {}),
4738
- [P.Account]: () => /* @__PURE__ */ i(zo, {}),
4739
- [P.SelectChains]: () => /* @__PURE__ */ i(dc, {}),
4740
- [P.ChangeNetwork]: () => /* @__PURE__ */ i(wo, {}),
4741
- [P.SignInWallet]: () => /* @__PURE__ */ i(mc, {}),
4742
- [P.WalletConnect]: () => /* @__PURE__ */ i(Ic, {}),
4743
- [P.UnsupportChain]: () => /* @__PURE__ */ i(wc, {}),
4744
- [P.SocialLogin]: () => /* @__PURE__ */ i(pc, {}),
4745
- [P.MyDogeSocialLogin]: () => /* @__PURE__ */ i(cc, {})
4746
- }, Pc = (e) => {
4747
- const { hideHeader: n, hideBody: t, onBack: r, ...s } = e, o = B(() => r ? /* @__PURE__ */ i(X, { isIconOnly: !0, size: "sm", variant: "light", onPress: r, radius: "full", children: /* @__PURE__ */ i(at, {}) }) : null, [r]), c = B(() => n ? null : /* @__PURE__ */ v(jr, { className: "flex items-center justify-between", children: [
4767
+ [P.Loading]: () => /* @__PURE__ */ i(jo, {}),
4768
+ [P.Logged]: () => /* @__PURE__ */ i(Uo, {}),
4769
+ [P.Error]: () => /* @__PURE__ */ i(yo, {}),
4770
+ [P.Connecting]: () => /* @__PURE__ */ i(Bo, {}),
4771
+ [P.WalletList]: () => /* @__PURE__ */ i(sc, {}),
4772
+ [P.WalletSearch]: () => /* @__PURE__ */ i(oc, {}),
4773
+ [P.WalletSelectProviders]: () => /* @__PURE__ */ i(Cc, {}),
4774
+ [P.WalletInstallGuide]: () => /* @__PURE__ */ i(No, {}),
4775
+ [P.Account]: () => /* @__PURE__ */ i(wo, {}),
4776
+ [P.SelectChains]: () => /* @__PURE__ */ i(uc, {}),
4777
+ [P.ChangeNetwork]: () => /* @__PURE__ */ i(Io, {}),
4778
+ [P.SignInWallet]: () => /* @__PURE__ */ i(pc, {}),
4779
+ [P.WalletConnect]: () => /* @__PURE__ */ i(Bc, {}),
4780
+ [P.UnsupportChain]: () => /* @__PURE__ */ i(Pc, {}),
4781
+ [P.SocialLogin]: () => /* @__PURE__ */ i(zc, {}),
4782
+ [P.MyDogeSocialLogin]: () => /* @__PURE__ */ i(lc, {})
4783
+ }, yc = (e) => {
4784
+ const { hideHeader: n, hideBody: t, onBack: r, ...s } = e, o = B(() => r ? /* @__PURE__ */ i(X, { isIconOnly: !0, size: "sm", variant: "light", onPress: r, radius: "full", children: /* @__PURE__ */ i(ct, {}) }) : null, [r]), c = B(() => n ? null : /* @__PURE__ */ C(Tr, { className: "flex items-center justify-between", children: [
4748
4785
  o,
4749
4786
  /* @__PURE__ */ i("span", { children: e.title }),
4750
- /* @__PURE__ */ i(X, { isIconOnly: !0, size: "sm", variant: "light", onPress: e.onClose, radius: "full", children: /* @__PURE__ */ i(lt, {}) })
4751
- ] }), [n, e.title, e.onClose, o]), a = B(() => t ? null : /* @__PURE__ */ i(Tr, { className: "px-5", children: e.children }), [t, e.children]);
4752
- return /* @__PURE__ */ i(dt, { ...s, hideCloseButton: !0, children: /* @__PURE__ */ v(Er, { className: "w-[448px]", children: [
4787
+ /* @__PURE__ */ i(X, { isIconOnly: !0, size: "sm", variant: "light", onPress: e.onClose, radius: "full", children: /* @__PURE__ */ i(at, {}) })
4788
+ ] }), [n, e.title, e.onClose, o]), a = B(() => t ? null : /* @__PURE__ */ i(Er, { className: "px-5", children: e.children }), [t, e.children]);
4789
+ return /* @__PURE__ */ i(At, { ...s, hideCloseButton: !0, children: /* @__PURE__ */ C(Lr, { className: "w-[448px]", children: [
4753
4790
  c,
4754
4791
  a
4755
4792
  ] }) });
4756
- }, Bc = () => {
4793
+ }, hc = () => {
4757
4794
  const e = V(W);
4758
4795
  if (!e)
4759
4796
  return null;
@@ -4762,7 +4799,7 @@ const nc = () => {
4762
4799
  return s ? s(e) : null;
4763
4800
  };
4764
4801
  return /* @__PURE__ */ i(
4765
- Pc,
4802
+ yc,
4766
4803
  {
4767
4804
  hideHeader: !0,
4768
4805
  isOpen: n.isOpen,
@@ -4772,55 +4809,60 @@ const nc = () => {
4772
4809
  children: r()
4773
4810
  }
4774
4811
  );
4775
- }, yc = ({ config: e }) => {
4776
- const [n, t] = N(null), [r, s] = N(!1), [o, c] = N(null), [a, l] = N(null), [A, d] = N(!0);
4777
- return Z(() => {
4778
- const f = es.getInstance();
4812
+ }, Mc = ({
4813
+ config: e,
4814
+ setMainView: n,
4815
+ defaultMainView: t
4816
+ }) => {
4817
+ const [r, s] = N(null), [o, c] = N(!1), [a, l] = N(null), [A, d] = N(null), [f, u] = N(!0);
4818
+ return Y(() => {
4819
+ const g = ns.getInstance();
4779
4820
  (async () => {
4780
- d(!0);
4781
- const u = await f.init({ ...e, tomoClientId: e.clientId });
4782
- if (!u) {
4783
- d(!1);
4821
+ const v = await g.init({ ...e, tomoClientId: e.clientId }).finally(() => {
4822
+ u(!1);
4823
+ });
4824
+ if (!v) {
4825
+ u(!1);
4784
4826
  return;
4785
4827
  }
4786
- const { isAvailable: x, message: C, connectedInfo: m } = u || {};
4787
- console.log("initEmbeddedWallet result: ", u), t(f), s(x || !1), c(C ?? null), l(m), d(!1);
4828
+ const { isAvailable: m, message: p, connectedInfo: y } = v || {};
4829
+ console.log("initEmbeddedWallet result: ", v), s(g), c(m || !1), l(p ?? null), d(y), u(!1), n(m ? P.Logged : t);
4788
4830
  })();
4789
- }, [e]), { wallet: n, isAvailable: r, message: o, connectedInfo: a, isLoading: A };
4790
- }, hc = ({
4831
+ }, []), { wallet: r, isAvailable: o, message: a, connectedInfo: A, isLoading: f };
4832
+ }, Wc = ({
4791
4833
  setWalletState: e,
4792
4834
  currentWallet: n,
4793
4835
  isConnected: t,
4794
4836
  embeddedWallet: r,
4795
4837
  wagmiConfig: s
4796
4838
  }) => {
4797
- const o = ce(!1), { data: c } = he("all"), a = B(() => c?.all || [], [c?.all]), l = lr(), A = Ho();
4798
- Z(() => {
4839
+ const o = ce(!1), { data: c } = he("all"), a = B(() => c?.all || [], [c?.all]), l = ar(), A = Ko();
4840
+ Y(() => {
4799
4841
  if (o.current || t || n)
4800
4842
  return;
4801
4843
  const d = async () => {
4802
4844
  const f = r?.wallet;
4803
4845
  try {
4804
- const g = ds();
4805
- if (!g) {
4846
+ const u = fs();
4847
+ if (!u) {
4806
4848
  o.current = !0;
4807
4849
  return;
4808
4850
  }
4809
- console.log("Attempting to restore wallet connection...", g);
4810
- const u = a.find((m) => m.info.uuid === g.walletInfo?.uuid);
4811
- if (u && f.isAvailable && e((m) => ({
4851
+ console.log("Attempting to restore wallet connection...", u);
4852
+ const g = a.find((m) => m.info.uuid === u.walletInfo?.uuid);
4853
+ if (g && f.isAvailable && e((m) => ({
4812
4854
  ...m,
4813
- currentWallet: u
4814
- })), !u) {
4855
+ currentWallet: g
4856
+ })), !g) {
4815
4857
  console.log("Stored wallet not found in available wallets"), f && (o.current = !0);
4816
4858
  return;
4817
4859
  }
4818
- const x = g.chainType, C = u?.providers[x]?.provider;
4819
- if (!C) {
4860
+ const x = u.chainType, v = g?.providers[x]?.provider;
4861
+ if (!v) {
4820
4862
  console.log("Provider not available for stored chain type"), o.current = !0;
4821
4863
  return;
4822
4864
  }
4823
- if (u.isEmbeddedWallet) {
4865
+ if (g.isEmbeddedWallet) {
4824
4866
  const m = r?.connectedInfo;
4825
4867
  if (!m) {
4826
4868
  console.log("No connectedInfo available for embedded wallet"), o.current = !0;
@@ -4831,12 +4873,12 @@ const nc = () => {
4831
4873
  console.log("No connected provider found in connectedInfo"), o.current = !0;
4832
4874
  return;
4833
4875
  }
4834
- const h = u?.providers[p]?.provider;
4835
- if (!h) {
4876
+ const y = g?.providers[p]?.provider;
4877
+ if (!y) {
4836
4878
  console.log("Provider not available for connected chain type:", p), o.current = !0;
4837
4879
  return;
4838
4880
  }
4839
- const b = m[`${p}Provider`]?.address?.[0] || g.address;
4881
+ const b = m[`${p}Provider`]?.address?.[0] || u.address;
4840
4882
  if (console.log("Restoring embedded wallet connection", {
4841
4883
  connectedChainType: p,
4842
4884
  connectedAddress: b,
@@ -4845,20 +4887,20 @@ const nc = () => {
4845
4887
  ...w,
4846
4888
  isConnected: !0,
4847
4889
  address: b,
4848
- chainId: g.chainId,
4890
+ chainId: u.chainId,
4849
4891
  chainType: p,
4850
- balance: g.balance || "0.0",
4851
- currentWallet: u,
4852
- currentProvider: h
4892
+ balance: u.balance || "0.0",
4893
+ currentWallet: g,
4894
+ currentProvider: y
4853
4895
  })), l && p === k.EVM && s && A && !A.isConnected)
4854
4896
  try {
4855
- const w = xn(
4856
- u.info.uuid,
4857
- u.info.rdns,
4897
+ const w = mn(
4898
+ g.info.uuid,
4899
+ g.info.rdns,
4858
4900
  s.connectors
4859
4901
  );
4860
4902
  if (w && w.ready) {
4861
- const I = g.chainId ? parseInt(g.chainId, 16) : void 0;
4903
+ const I = u.chainId ? parseInt(u.chainId, 16) : void 0;
4862
4904
  await l.connectAsync({
4863
4905
  connector: w,
4864
4906
  chainId: I
@@ -4870,28 +4912,28 @@ const nc = () => {
4870
4912
  o.current = !0;
4871
4913
  } else
4872
4914
  try {
4873
- const m = await C.request?.({ method: "eth_accounts" });
4874
- if (m && m.length > 0 && m[0].toLowerCase() === g.address.toLowerCase() && (console.log("Restoring plugin wallet connection for:", u.info.name), e((p) => ({
4915
+ const m = await v.request?.({ method: "eth_accounts" });
4916
+ if (m && m.length > 0 && m[0].toLowerCase() === u.address.toLowerCase() && (console.log("Restoring plugin wallet connection for:", g.info.name), e((p) => ({
4875
4917
  ...p,
4876
4918
  isConnected: !0,
4877
- address: g.address,
4878
- chainId: g.chainId,
4879
- chainType: g.chainType,
4880
- balance: g.balance || "0.0",
4881
- currentWallet: u,
4882
- currentProvider: C
4883
- })), l && g.chainType === k.EVM && s && A && !A.isConnected))
4919
+ address: u.address,
4920
+ chainId: u.chainId,
4921
+ chainType: u.chainType,
4922
+ balance: u.balance || "0.0",
4923
+ currentWallet: g,
4924
+ currentProvider: v
4925
+ })), l && u.chainType === k.EVM && s && A && !A.isConnected))
4884
4926
  try {
4885
- const p = xn(
4886
- u.info.uuid,
4887
- u.info.rdns,
4927
+ const p = mn(
4928
+ g.info.uuid,
4929
+ g.info.rdns,
4888
4930
  s.connectors
4889
4931
  );
4890
4932
  if (p && p.ready) {
4891
- const h = g.chainId ? parseInt(g.chainId, 16) : void 0;
4933
+ const y = u.chainId ? parseInt(u.chainId, 16) : void 0;
4892
4934
  await l.connectAsync({
4893
4935
  connector: p,
4894
- chainId: h
4936
+ chainId: y
4895
4937
  });
4896
4938
  }
4897
4939
  } catch (p) {
@@ -4901,8 +4943,8 @@ const nc = () => {
4901
4943
  } catch (m) {
4902
4944
  o.current = !0, console.log("Failed to verify wallet connection:", m);
4903
4945
  }
4904
- } catch (g) {
4905
- o.current = !0, console.error("Failed to restore wallet connection:", g);
4946
+ } catch (u) {
4947
+ o.current = !0, console.error("Failed to restore wallet connection:", u);
4906
4948
  }
4907
4949
  };
4908
4950
  a.length > 0 && r?.wallet && d();
@@ -4918,12 +4960,12 @@ const nc = () => {
4918
4960
  A
4919
4961
  ]);
4920
4962
  };
4921
- function Mc(e) {
4963
+ function Vc(e) {
4922
4964
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4923
4965
  }
4924
- var on = { exports: {} }, ot;
4925
- function Wc() {
4926
- return ot || (ot = 1, function(e) {
4966
+ var sn = { exports: {} }, it;
4967
+ function Xc() {
4968
+ return it || (it = 1, function(e) {
4927
4969
  var n = Object.prototype.hasOwnProperty, t = "~";
4928
4970
  function r() {
4929
4971
  }
@@ -4931,11 +4973,11 @@ function Wc() {
4931
4973
  function s(l, A, d) {
4932
4974
  this.fn = l, this.context = A, this.once = d || !1;
4933
4975
  }
4934
- function o(l, A, d, f, g) {
4976
+ function o(l, A, d, f, u) {
4935
4977
  if (typeof d != "function")
4936
4978
  throw new TypeError("The listener must be a function");
4937
- var u = new s(d, f || l, g), x = t ? t + A : A;
4938
- return l._events[x] ? l._events[x].fn ? l._events[x] = [l._events[x], u] : l._events[x].push(u) : (l._events[x] = u, l._eventsCount++), l;
4979
+ var g = new s(d, f || l, u), x = t ? t + A : A;
4980
+ return l._events[x] ? l._events[x].fn ? l._events[x] = [l._events[x], g] : l._events[x].push(g) : (l._events[x] = g, l._eventsCount++), l;
4939
4981
  }
4940
4982
  function c(l, A) {
4941
4983
  --l._eventsCount === 0 ? l._events = new r() : delete l._events[A];
@@ -4953,16 +4995,16 @@ function Wc() {
4953
4995
  var d = t ? t + A : A, f = this._events[d];
4954
4996
  if (!f) return [];
4955
4997
  if (f.fn) return [f.fn];
4956
- for (var g = 0, u = f.length, x = new Array(u); g < u; g++)
4957
- x[g] = f[g].fn;
4998
+ for (var u = 0, g = f.length, x = new Array(g); u < g; u++)
4999
+ x[u] = f[u].fn;
4958
5000
  return x;
4959
5001
  }, a.prototype.listenerCount = function(A) {
4960
5002
  var d = t ? t + A : A, f = this._events[d];
4961
5003
  return f ? f.fn ? 1 : f.length : 0;
4962
- }, a.prototype.emit = function(A, d, f, g, u, x) {
4963
- var C = t ? t + A : A;
4964
- if (!this._events[C]) return !1;
4965
- var m = this._events[C], p = arguments.length, h, b;
5004
+ }, a.prototype.emit = function(A, d, f, u, g, x) {
5005
+ var v = t ? t + A : A;
5006
+ if (!this._events[v]) return !1;
5007
+ var m = this._events[v], p = arguments.length, y, b;
4966
5008
  if (m.fn) {
4967
5009
  switch (m.once && this.removeListener(A, m.fn, void 0, !0), p) {
4968
5010
  case 1:
@@ -4972,15 +5014,15 @@ function Wc() {
4972
5014
  case 3:
4973
5015
  return m.fn.call(m.context, d, f), !0;
4974
5016
  case 4:
4975
- return m.fn.call(m.context, d, f, g), !0;
5017
+ return m.fn.call(m.context, d, f, u), !0;
4976
5018
  case 5:
4977
- return m.fn.call(m.context, d, f, g, u), !0;
5019
+ return m.fn.call(m.context, d, f, u, g), !0;
4978
5020
  case 6:
4979
- return m.fn.call(m.context, d, f, g, u, x), !0;
5021
+ return m.fn.call(m.context, d, f, u, g, x), !0;
4980
5022
  }
4981
- for (b = 1, h = new Array(p - 1); b < p; b++)
4982
- h[b - 1] = arguments[b];
4983
- m.fn.apply(m.context, h);
5023
+ for (b = 1, y = new Array(p - 1); b < p; b++)
5024
+ y[b - 1] = arguments[b];
5025
+ m.fn.apply(m.context, y);
4984
5026
  } else {
4985
5027
  var w = m.length, I;
4986
5028
  for (b = 0; b < w; b++)
@@ -4995,12 +5037,12 @@ function Wc() {
4995
5037
  m[b].fn.call(m[b].context, d, f);
4996
5038
  break;
4997
5039
  case 4:
4998
- m[b].fn.call(m[b].context, d, f, g);
5040
+ m[b].fn.call(m[b].context, d, f, u);
4999
5041
  break;
5000
5042
  default:
5001
- if (!h) for (I = 1, h = new Array(p - 1); I < p; I++)
5002
- h[I - 1] = arguments[I];
5003
- m[b].fn.apply(m[b].context, h);
5043
+ if (!y) for (I = 1, y = new Array(p - 1); I < p; I++)
5044
+ y[I - 1] = arguments[I];
5045
+ m[b].fn.apply(m[b].context, y);
5004
5046
  }
5005
5047
  }
5006
5048
  return !0;
@@ -5008,29 +5050,29 @@ function Wc() {
5008
5050
  return o(this, A, d, f, !1);
5009
5051
  }, a.prototype.once = function(A, d, f) {
5010
5052
  return o(this, A, d, f, !0);
5011
- }, a.prototype.removeListener = function(A, d, f, g) {
5012
- var u = t ? t + A : A;
5013
- if (!this._events[u]) return this;
5053
+ }, a.prototype.removeListener = function(A, d, f, u) {
5054
+ var g = t ? t + A : A;
5055
+ if (!this._events[g]) return this;
5014
5056
  if (!d)
5015
- return c(this, u), this;
5016
- var x = this._events[u];
5057
+ return c(this, g), this;
5058
+ var x = this._events[g];
5017
5059
  if (x.fn)
5018
- x.fn === d && (!g || x.once) && (!f || x.context === f) && c(this, u);
5060
+ x.fn === d && (!u || x.once) && (!f || x.context === f) && c(this, g);
5019
5061
  else {
5020
- for (var C = 0, m = [], p = x.length; C < p; C++)
5021
- (x[C].fn !== d || g && !x[C].once || f && x[C].context !== f) && m.push(x[C]);
5022
- m.length ? this._events[u] = m.length === 1 ? m[0] : m : c(this, u);
5062
+ for (var v = 0, m = [], p = x.length; v < p; v++)
5063
+ (x[v].fn !== d || u && !x[v].once || f && x[v].context !== f) && m.push(x[v]);
5064
+ m.length ? this._events[g] = m.length === 1 ? m[0] : m : c(this, g);
5023
5065
  }
5024
5066
  return this;
5025
5067
  }, a.prototype.removeAllListeners = function(A) {
5026
5068
  var d;
5027
5069
  return A ? (d = t ? t + A : A, this._events[d] && c(this, d)) : (this._events = new r(), this._eventsCount = 0), this;
5028
5070
  }, a.prototype.off = a.prototype.removeListener, a.prototype.addListener = a.prototype.on, a.prefixed = t, a.EventEmitter = a, e.exports = a;
5029
- }(on)), on.exports;
5071
+ }(sn)), sn.exports;
5030
5072
  }
5031
- var Vc = Wc();
5032
- const Xc = /* @__PURE__ */ Mc(Vc);
5033
- class Nc {
5073
+ var Nc = Xc();
5074
+ const jc = /* @__PURE__ */ Vc(Nc);
5075
+ class Tc {
5034
5076
  constructor(n) {
5035
5077
  Object.defineProperty(this, "uid", {
5036
5078
  enumerable: !0,
@@ -5041,7 +5083,7 @@ class Nc {
5041
5083
  enumerable: !0,
5042
5084
  configurable: !0,
5043
5085
  writable: !0,
5044
- value: new Xc()
5086
+ value: new jc()
5045
5087
  });
5046
5088
  }
5047
5089
  on(n, t) {
@@ -5061,20 +5103,20 @@ class Nc {
5061
5103
  return this._emitter.listenerCount(n);
5062
5104
  }
5063
5105
  }
5064
- function jc(e) {
5065
- return new Nc(e);
5106
+ function Ec(e) {
5107
+ return new Tc(e);
5066
5108
  }
5067
- const bn = 256;
5068
- let Ve = bn, Xe;
5069
- function Tc(e = 11) {
5070
- if (!Xe || Ve + e > bn * 2) {
5109
+ const pn = 256;
5110
+ let Ve = pn, Xe;
5111
+ function Lc(e = 11) {
5112
+ if (!Xe || Ve + e > pn * 2) {
5071
5113
  Xe = "", Ve = 0;
5072
- for (let n = 0; n < bn; n++)
5114
+ for (let n = 0; n < pn; n++)
5073
5115
  Xe += (256 + Math.random() * 256 | 0).toString(16).substring(1);
5074
5116
  }
5075
5117
  return Xe.substring(Ve, Ve++ + e);
5076
5118
  }
5077
- const Ec = "2.22.1", Lc = () => `@wagmi/core@${Ec}`;
5119
+ const Sc = "2.22.1", Oc = () => `@wagmi/core@${Sc}`;
5078
5120
  var Cr = function(e, n, t, r) {
5079
5121
  if (t === "a" && !r) throw new TypeError("Private accessor was defined without a getter");
5080
5122
  if (typeof n == "function" ? e !== n || !r : !n.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
@@ -5085,7 +5127,7 @@ class we extends Error {
5085
5127
  return "https://wagmi.sh/core";
5086
5128
  }
5087
5129
  get version() {
5088
- return Lc();
5130
+ return Oc();
5089
5131
  }
5090
5132
  constructor(n, t = {}) {
5091
5133
  super(), ke.add(this), Object.defineProperty(this, "details", {
@@ -5134,7 +5176,7 @@ class we extends Error {
5134
5176
  ke = /* @__PURE__ */ new WeakSet(), mr = function e(n, t) {
5135
5177
  return t?.(n) ? n : n.cause ? Cr(this, ke, "m", e).call(this, n.cause, t) : n;
5136
5178
  };
5137
- class Sc extends we {
5179
+ class Yc extends we {
5138
5180
  constructor() {
5139
5181
  super("Chain not configured."), Object.defineProperty(this, "name", {
5140
5182
  enumerable: !0,
@@ -5154,8 +5196,8 @@ class re extends we {
5154
5196
  });
5155
5197
  }
5156
5198
  }
5157
- Ln.type = "injected";
5158
- function Ln(e = {}) {
5199
+ En.type = "injected";
5200
+ function En(e = {}) {
5159
5201
  const { shimDisconnect: n = !0, unstable_shimAsyncInject: t } = e;
5160
5202
  function r() {
5161
5203
  const l = e.target;
@@ -5165,7 +5207,7 @@ function Ln(e = {}) {
5165
5207
  return A;
5166
5208
  }
5167
5209
  return typeof l == "object" ? l : typeof l == "string" ? {
5168
- ...Oc[l] ?? {
5210
+ ...Zc[l] ?? {
5169
5211
  id: l,
5170
5212
  name: `${l[0].toUpperCase()}${l.slice(1)}`,
5171
5213
  provider: `is${l[0].toUpperCase()}${l.slice(1)}`
@@ -5193,47 +5235,47 @@ function Ln(e = {}) {
5193
5235
  get supportsSimulation() {
5194
5236
  return !0;
5195
5237
  },
5196
- type: Ln.type,
5238
+ type: En.type,
5197
5239
  async setup() {
5198
5240
  const A = await this.getProvider();
5199
5241
  A?.on && e.target && (c || (c = this.onConnect.bind(this), A.on("connect", c)), s || (s = this.onAccountsChanged.bind(this), A.on("accountsChanged", s)));
5200
5242
  },
5201
5243
  async connect({ chainId: A, isReconnecting: d, withCapabilities: f } = {}) {
5202
- const g = await this.getProvider();
5203
- if (!g)
5244
+ const u = await this.getProvider();
5245
+ if (!u)
5204
5246
  throw new re();
5205
- let u = [];
5247
+ let g = [];
5206
5248
  if (d)
5207
- u = await this.getAccounts().catch(() => []);
5249
+ g = await this.getAccounts().catch(() => []);
5208
5250
  else if (n)
5209
5251
  try {
5210
- u = (await g.request({
5252
+ g = (await u.request({
5211
5253
  method: "wallet_requestPermissions",
5212
5254
  params: [{ eth_accounts: {} }]
5213
- }))[0]?.caveats?.[0]?.value?.map((C) => Me(C)), u.length > 0 && (u = await this.getAccounts());
5255
+ }))[0]?.caveats?.[0]?.value?.map((v) => Me(v)), g.length > 0 && (g = await this.getAccounts());
5214
5256
  } catch (x) {
5215
- const C = x;
5216
- if (C.code === F.code)
5217
- throw new F(C);
5218
- if (C.code === Re.code)
5219
- throw C;
5257
+ const v = x;
5258
+ if (v.code === F.code)
5259
+ throw new F(v);
5260
+ if (v.code === Ue.code)
5261
+ throw v;
5220
5262
  }
5221
5263
  try {
5222
- !u?.length && !d && (u = (await g.request({
5264
+ !g?.length && !d && (g = (await u.request({
5223
5265
  method: "eth_requestAccounts"
5224
- })).map((m) => Me(m))), c && (g.removeListener("connect", c), c = void 0), s || (s = this.onAccountsChanged.bind(this), g.on("accountsChanged", s)), o || (o = this.onChainChanged.bind(this), g.on("chainChanged", o)), a || (a = this.onDisconnect.bind(this), g.on("disconnect", a));
5266
+ })).map((m) => Me(m))), c && (u.removeListener("connect", c), c = void 0), s || (s = this.onAccountsChanged.bind(this), u.on("accountsChanged", s)), o || (o = this.onChainChanged.bind(this), u.on("chainChanged", o)), a || (a = this.onDisconnect.bind(this), u.on("disconnect", a));
5225
5267
  let x = await this.getChainId();
5226
5268
  return A && x !== A && (x = (await this.switchChain({ chainId: A }).catch((m) => {
5227
5269
  if (m.code === F.code)
5228
5270
  throw m;
5229
5271
  return { id: x };
5230
5272
  }))?.id ?? x), n && await l.storage?.removeItem(`${this.id}.disconnected`), e.target || await l.storage?.setItem("injected.connected", !0), {
5231
- accounts: f ? u.map((C) => ({ address: C, capabilities: {} })) : u,
5273
+ accounts: f ? g.map((v) => ({ address: v, capabilities: {} })) : g,
5232
5274
  chainId: x
5233
5275
  };
5234
5276
  } catch (x) {
5235
- const C = x;
5236
- throw C.code === F.code ? new F(C) : C.code === Re.code ? new Re(C) : C;
5277
+ const v = x;
5278
+ throw v.code === F.code ? new F(v) : v.code === Ue.code ? new Ue(v) : v;
5237
5279
  }
5238
5280
  },
5239
5281
  async disconnect() {
@@ -5242,7 +5284,7 @@ function Ln(e = {}) {
5242
5284
  throw new re();
5243
5285
  o && (A.removeListener("chainChanged", o), o = void 0), a && (A.removeListener("disconnect", a), a = void 0), c || (c = this.onConnect.bind(this), A.on("connect", c));
5244
5286
  try {
5245
- await os(() => (
5287
+ await cs(() => (
5246
5288
  // TODO: Remove explicit type for viem@3
5247
5289
  A.request({
5248
5290
  // `'wallet_revokePermissions'` added in `viem@2.10.3`
@@ -5282,18 +5324,18 @@ function Ln(e = {}) {
5282
5324
  return !1;
5283
5325
  if (!await this.getProvider()) {
5284
5326
  if (t !== void 0 && t !== !1) {
5285
- const g = async () => (typeof window < "u" && window.removeEventListener("ethereum#initialized", g), !!await this.getProvider()), u = typeof t == "number" ? t : 1e3;
5327
+ const u = async () => (typeof window < "u" && window.removeEventListener("ethereum#initialized", u), !!await this.getProvider()), g = typeof t == "number" ? t : 1e3;
5286
5328
  if (await Promise.race([
5287
5329
  ...typeof window < "u" ? [
5288
- new Promise((C) => window.addEventListener("ethereum#initialized", () => C(g()), { once: !0 }))
5330
+ new Promise((v) => window.addEventListener("ethereum#initialized", () => v(u()), { once: !0 }))
5289
5331
  ] : [],
5290
- new Promise((C) => setTimeout(() => C(g()), u))
5332
+ new Promise((v) => setTimeout(() => v(u()), g))
5291
5333
  ]))
5292
5334
  return !0;
5293
5335
  }
5294
5336
  throw new re();
5295
5337
  }
5296
- return !!(await is(() => this.getAccounts())).length;
5338
+ return !!(await os(() => this.getAccounts())).length;
5297
5339
  } catch {
5298
5340
  return !1;
5299
5341
  }
@@ -5302,45 +5344,45 @@ function Ln(e = {}) {
5302
5344
  const f = await this.getProvider();
5303
5345
  if (!f)
5304
5346
  throw new re();
5305
- const g = l.chains.find((x) => x.id === d);
5306
- if (!g)
5307
- throw new kn(new Sc());
5308
- const u = new Promise((x) => {
5309
- const C = (m) => {
5310
- "chainId" in m && m.chainId === d && (l.emitter.off("change", C), x());
5347
+ const u = l.chains.find((x) => x.id === d);
5348
+ if (!u)
5349
+ throw new Zn(new Yc());
5350
+ const g = new Promise((x) => {
5351
+ const v = (m) => {
5352
+ "chainId" in m && m.chainId === d && (l.emitter.off("change", v), x());
5311
5353
  };
5312
- l.emitter.on("change", C);
5354
+ l.emitter.on("change", v);
5313
5355
  });
5314
5356
  try {
5315
5357
  return await Promise.all([
5316
5358
  f.request({
5317
5359
  method: "wallet_switchEthereumChain",
5318
- params: [{ chainId: Jn(d) }]
5360
+ params: [{ chainId: kn(d) }]
5319
5361
  }).then(async () => {
5320
5362
  await this.getChainId() === d && l.emitter.emit("change", { chainId: d });
5321
5363
  }),
5322
- u
5323
- ]), g;
5364
+ g
5365
+ ]), u;
5324
5366
  } catch (x) {
5325
- const C = x;
5326
- if (C.code === 4902 || // Unwrapping for MetaMask Mobile
5367
+ const v = x;
5368
+ if (v.code === 4902 || // Unwrapping for MetaMask Mobile
5327
5369
  // https://github.com/MetaMask/metamask-mobile/issues/2944#issuecomment-976988719
5328
- C?.data?.originalError?.code === 4902)
5370
+ v?.data?.originalError?.code === 4902)
5329
5371
  try {
5330
- const { default: m, ...p } = g.blockExplorers ?? {};
5331
- let h;
5332
- A?.blockExplorerUrls ? h = A.blockExplorerUrls : m && (h = [
5372
+ const { default: m, ...p } = u.blockExplorers ?? {};
5373
+ let y;
5374
+ A?.blockExplorerUrls ? y = A.blockExplorerUrls : m && (y = [
5333
5375
  m.url,
5334
5376
  ...Object.values(p).map((I) => I.url)
5335
5377
  ]);
5336
5378
  let b;
5337
- A?.rpcUrls?.length ? b = A.rpcUrls : b = [g.rpcUrls.default?.http[0] ?? ""];
5379
+ A?.rpcUrls?.length ? b = A.rpcUrls : b = [u.rpcUrls.default?.http[0] ?? ""];
5338
5380
  const w = {
5339
- blockExplorerUrls: h,
5340
- chainId: Jn(d),
5341
- chainName: A?.chainName ?? g.name,
5381
+ blockExplorerUrls: y,
5382
+ chainId: kn(d),
5383
+ chainName: A?.chainName ?? u.name,
5342
5384
  iconUrls: A?.iconUrls,
5343
- nativeCurrency: A?.nativeCurrency ?? g.nativeCurrency,
5385
+ nativeCurrency: A?.nativeCurrency ?? u.nativeCurrency,
5344
5386
  rpcUrls: b
5345
5387
  };
5346
5388
  return await Promise.all([
@@ -5353,12 +5395,12 @@ function Ln(e = {}) {
5353
5395
  else
5354
5396
  throw new F(new Error("User rejected switch after adding network."));
5355
5397
  }),
5356
- u
5357
- ]), g;
5398
+ g
5399
+ ]), u;
5358
5400
  } catch (m) {
5359
5401
  throw new F(m);
5360
5402
  }
5361
- throw C.code === F.code ? new F(C) : new kn(C);
5403
+ throw v.code === F.code ? new F(v) : new Zn(v);
5362
5404
  }
5363
5405
  },
5364
5406
  async onAccountsChanged(A) {
@@ -5382,8 +5424,8 @@ function Ln(e = {}) {
5382
5424
  return;
5383
5425
  const f = Number(A.chainId);
5384
5426
  l.emitter.emit("connect", { accounts: d, chainId: f });
5385
- const g = await this.getProvider();
5386
- g && (c && (g.removeListener("connect", c), c = void 0), s || (s = this.onAccountsChanged.bind(this), g.on("accountsChanged", s)), o || (o = this.onChainChanged.bind(this), g.on("chainChanged", o)), a || (a = this.onDisconnect.bind(this), g.on("disconnect", a)));
5427
+ const u = await this.getProvider();
5428
+ u && (c && (u.removeListener("connect", c), c = void 0), s || (s = this.onAccountsChanged.bind(this), u.on("accountsChanged", s)), o || (o = this.onChainChanged.bind(this), u.on("chainChanged", o)), a || (a = this.onDisconnect.bind(this), u.on("disconnect", a)));
5387
5429
  },
5388
5430
  async onDisconnect(A) {
5389
5431
  const d = await this.getProvider();
@@ -5391,7 +5433,7 @@ function Ln(e = {}) {
5391
5433
  }
5392
5434
  });
5393
5435
  }
5394
- const Oc = {
5436
+ const Zc = {
5395
5437
  coinbaseWallet: {
5396
5438
  id: "coinbaseWallet",
5397
5439
  name: "Coinbase Wallet",
@@ -5451,15 +5493,15 @@ function Te(e, n) {
5451
5493
  if (r && t(r))
5452
5494
  return r;
5453
5495
  }
5454
- function Yc(e, n = k.EVM) {
5496
+ function kc(e, n = k.EVM) {
5455
5497
  if (!e.providers[n])
5456
5498
  return null;
5457
5499
  const t = e.providers[n]?.provider;
5458
5500
  if (!t)
5459
5501
  return null;
5460
5502
  const r = e.info, s = r.rdns || r.uuid || `wallet-${r.name.toLowerCase().replace(/\s+/g, "-")}`;
5461
- return ss((o) => ({
5462
- ...Ln({
5503
+ return is((o) => ({
5504
+ ...En({
5463
5505
  target: () => ({
5464
5506
  id: s,
5465
5507
  name: r.name,
@@ -5474,14 +5516,14 @@ function Yc(e, n = k.EVM) {
5474
5516
  emitter: o.emitter
5475
5517
  }));
5476
5518
  }
5477
- function Zc(e, n = k.EVM, t) {
5519
+ function Jc(e, n = k.EVM, t) {
5478
5520
  const r = [];
5479
5521
  if (t.length === 0)
5480
5522
  return r;
5481
5523
  for (const s of e) {
5482
- const o = Yc(s, n);
5524
+ const o = kc(s, n);
5483
5525
  if (o) {
5484
- const c = jc(Tc());
5526
+ const c = Ec(Lc());
5485
5527
  r.push(
5486
5528
  o({
5487
5529
  chains: t,
@@ -5492,49 +5534,47 @@ function Zc(e, n = k.EVM, t) {
5492
5534
  }
5493
5535
  return r;
5494
5536
  }
5495
- function kc(e, n = []) {
5537
+ function Fc(e, n = []) {
5496
5538
  const t = [...n], r = (o) => o.id ?? o.options?.id ?? o.options?.name, s = new Set(n.map((o) => r(o)));
5497
5539
  for (const o of e)
5498
5540
  s.has(r(o)) || t.push(o);
5499
5541
  return t;
5500
5542
  }
5501
- const Jc = new Rr(), na = ({ children: e, config: n }) => {
5502
- const [t, r] = N(P.Loading), { walletState: s, setWalletState: o, error: c, setError: a, resetWalletState: l } = jn(), A = ar(), d = B(() => {
5543
+ const Dc = new _r(), ra = ({ children: e, config: n }) => {
5544
+ const [t, r] = N(P.Loading), { walletState: s, setWalletState: o, error: c, setError: a, resetWalletState: l } = Nn(), A = cr(), d = B(() => {
5503
5545
  const fe = {
5504
5546
  evm: Ne.evm,
5505
5547
  solana: Ne.solana,
5506
5548
  // dogecoin: recommonedChains.dogecoin,
5507
5549
  aptos: Ne.aptos
5508
- }, Ue = n?.chains || {}, xr = {
5550
+ }, xr = n?.chains || {}, pr = {
5509
5551
  ...fe,
5510
- ...Ue
5511
- }, pr = {
5552
+ ...xr
5553
+ }, br = {
5512
5554
  ...n,
5513
5555
  connectors: n?.connectors || ye.recommonedWallets,
5514
- chains: xr,
5515
- embeddedWalletConfig: { ...rr, clientId: n?.clientId || tr },
5556
+ chains: pr,
5557
+ embeddedWalletConfig: { ...tr, clientId: n?.clientId || nr },
5516
5558
  themeMode: "light",
5517
5559
  prodType: je.MyDoge,
5518
5560
  wagmi: A ? {
5519
5561
  config: A
5520
5562
  } : void 0
5521
5563
  };
5522
- return st(A || null), pr;
5564
+ return rt(A || null), br;
5523
5565
  }, [n, A]), f = B(() => d?.prodType === je.Tomo ? P.SocialLogin : d?.prodType === je.MyDoge ? P.MyDogeSocialLogin : P.SocialLogin, [d?.prodType]), {
5524
- wallet: g,
5525
- isAvailable: u,
5566
+ wallet: u,
5567
+ isAvailable: g,
5526
5568
  isLoading: x,
5527
- connectedInfo: C,
5569
+ connectedInfo: v,
5528
5570
  message: m
5529
- } = yc({
5530
- config: d.embeddedWalletConfig
5531
- });
5532
- Z(() => {
5533
- !x && g && r(u ? P.Logged : f);
5534
- }, [u, x, g, f]);
5535
- const p = Eo(t), h = T(() => {
5571
+ } = Mc({
5572
+ config: d.embeddedWalletConfig,
5573
+ setMainView: r,
5574
+ defaultMainView: f
5575
+ }), p = Lo(t), y = T(() => {
5536
5576
  p.setView(s.isConnected ? P.Account : t), p.openModal();
5537
- }, [p.setView, p.openModal, s.isConnected, t]), b = Qo({
5577
+ }, [p.setView, p.openModal, s.isConnected, t]), b = Go({
5538
5578
  walletState: s,
5539
5579
  modalState: p,
5540
5580
  setWalletState: o,
@@ -5546,7 +5586,7 @@ const Jc = new Rr(), na = ({ children: e, config: n }) => {
5546
5586
  isOpen: p.isOpen,
5547
5587
  view: p.view,
5548
5588
  prevView: p.prevView,
5549
- openModal: h,
5589
+ openModal: y,
5550
5590
  closeModal: p.closeModal,
5551
5591
  setView: p.setView,
5552
5592
  openModalWithState: p.openModalWithState,
@@ -5565,7 +5605,7 @@ const Jc = new Rr(), na = ({ children: e, config: n }) => {
5565
5605
  p.backView,
5566
5606
  p.state,
5567
5607
  p.setCurrentViewState,
5568
- h,
5608
+ y,
5569
5609
  p.openModalWithState,
5570
5610
  t,
5571
5611
  r
@@ -5617,13 +5657,13 @@ const Jc = new Rr(), na = ({ children: e, config: n }) => {
5617
5657
  ]
5618
5658
  ), E = B(
5619
5659
  () => ({
5620
- wallet: g,
5621
- isAvailable: u,
5660
+ wallet: u,
5661
+ isAvailable: g,
5622
5662
  isLoading: x,
5623
- connectedInfo: C,
5663
+ connectedInfo: v,
5624
5664
  message: m
5625
5665
  }),
5626
- [g, u, x, C, m]
5666
+ [u, g, x, v, m]
5627
5667
  ), L = B(
5628
5668
  () => ({
5629
5669
  config: d,
@@ -5634,15 +5674,12 @@ const Jc = new Rr(), na = ({ children: e, config: n }) => {
5634
5674
  ...M
5635
5675
  }),
5636
5676
  [d, w, I, j, E, M]
5637
- ), Y = B(() => {
5638
- const Ue = "doge" + "_" + d.themeMode;
5639
- return d.themeMode === "dark" ? "dark" : Ue;
5640
- }, [d.themeMode]);
5641
- return console.log("--- WalletConnectProvider --- defaultTheme::", Y), /* @__PURE__ */ i(Ur, { client: Jc, children: /* @__PURE__ */ v(W.Provider, { value: L, children: [
5642
- /* @__PURE__ */ i(Fc, { setWalletState: o }),
5643
- /* @__PURE__ */ v(Lr, { defaultTheme: Y, forcedTheme: Y, children: [
5677
+ ), Z = B(() => dr(), []);
5678
+ return console.log("--- WalletConnectProvider --- defaultTheme::", Z), typeof window > "u" ? null : /* @__PURE__ */ i(Rr, { client: Dc, children: /* @__PURE__ */ C(W.Provider, { value: L, children: [
5679
+ /* @__PURE__ */ i(Hc, { setWalletState: o }),
5680
+ /* @__PURE__ */ C(Sr, { themeConfig: Z, children: [
5644
5681
  /* @__PURE__ */ i(
5645
- Sr,
5682
+ Or,
5646
5683
  {
5647
5684
  maxVisibleToasts: 3,
5648
5685
  placement: "top-center",
@@ -5654,24 +5691,24 @@ const Jc = new Rr(), na = ({ children: e, config: n }) => {
5654
5691
  }
5655
5692
  ),
5656
5693
  e,
5657
- /* @__PURE__ */ i(Bc, {})
5694
+ /* @__PURE__ */ i(hc, {})
5658
5695
  ] })
5659
5696
  ] }) });
5660
- }, Fc = ({ setWalletState: e }) => {
5697
+ }, Hc = ({ setWalletState: e }) => {
5661
5698
  const n = V(W);
5662
5699
  if (!n)
5663
5700
  throw new Error("SetupHooks must be used within WalletConnectProvider");
5664
5701
  const t = he("all", n.config?.connectors || []), r = n.config?.wagmi, s = r?.config;
5665
- return Z(() => {
5702
+ return Y(() => {
5666
5703
  if (!s || !t.data) {
5667
- rn(null);
5704
+ tn(null);
5668
5705
  return;
5669
5706
  }
5670
- const o = s.connectors || [], c = s.chains || [], a = t?.data?.all?.filter((d) => d.providers.evm), l = Zc(a || [], k.EVM, c), A = kc(l, o);
5671
- A.length > 0 ? rn(A) : rn(null);
5672
- }, [t.data, s]), Z(() => {
5673
- Kr(n.config?.walletConnectConfig || Oo);
5674
- }, [n.config?.walletConnectConfig]), hc({
5707
+ const o = s.connectors || [], c = s.chains || [], a = t?.data?.all?.filter((d) => d.providers.evm), l = Jc(a || [], k.EVM, c), A = Fc(l, o);
5708
+ A.length > 0 ? tn(A) : tn(null);
5709
+ }, [t.data, s]), Y(() => {
5710
+ Gr(n.config?.walletConnectConfig || Zo);
5711
+ }, [n.config?.walletConnectConfig]), Wc({
5675
5712
  setWalletState: e,
5676
5713
  currentWallet: n.account.currentWallet,
5677
5714
  isConnected: n.connection.isConnected,
@@ -5684,9 +5721,9 @@ const Jc = new Rr(), na = ({ children: e, config: n }) => {
5684
5721
  },
5685
5722
  wagmiConfig: r
5686
5723
  }), null;
5687
- }, ta = ({ className: e, style: n }) => {
5724
+ }, sa = ({ className: e, style: n }) => {
5688
5725
  const t = V(W), r = t?.modal.mainView || P.MyDogeSocialLogin;
5689
- if (Z(() => {
5726
+ if (Y(() => {
5690
5727
  t && t.modal.view !== r && t.modal.setView(r);
5691
5728
  }, [r]), !t)
5692
5729
  return console.error("WalletConnectEmbed must be used within WalletConnectProvider"), null;
@@ -5704,9 +5741,9 @@ const Jc = new Rr(), na = ({ children: e, config: n }) => {
5704
5741
  );
5705
5742
  };
5706
5743
  export {
5707
- ta as WalletConnectEmbed,
5708
- na as WalletConnectProvider,
5709
- Tn as useAccount,
5710
- nr as useEmbeddedWallet,
5711
- ea as useWalletConnect
5744
+ sa as WalletConnectEmbed,
5745
+ ra as WalletConnectProvider,
5746
+ jn as useAccount,
5747
+ er as useEmbeddedWallet,
5748
+ ta as useWalletConnect
5712
5749
  };