@autogames/sdk 1.4.1 → 1.5.1

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.
@@ -14,7 +14,7 @@ function uoe(t, e) {
14
14
  }
15
15
  return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
16
16
  }
17
- var El = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
17
+ var Cl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
18
18
  function Kl(t) {
19
19
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
20
20
  }
@@ -1420,12 +1420,12 @@ Error generating stack: ` + v.message + `
1420
1420
  function Gt(l) {
1421
1421
  l[$r] = !0;
1422
1422
  }
1423
- var Sa = /* @__PURE__ */ new Set(), rl = {};
1423
+ var Sa = /* @__PURE__ */ new Set(), il = {};
1424
1424
  function Ti(l, u) {
1425
- il(l, u), il(l + "Capture", u);
1425
+ al(l, u), al(l + "Capture", u);
1426
1426
  }
1427
- function il(l, u) {
1428
- for (rl[l] = u, l = 0; l < u.length; l++)
1427
+ function al(l, u) {
1428
+ for (il[l] = u, l = 0; l < u.length; l++)
1429
1429
  Sa.add(u[l]);
1430
1430
  }
1431
1431
  var jm = RegExp(
@@ -2479,22 +2479,22 @@ Error generating stack: ` + v.message + `
2479
2479
  stack: we(u)
2480
2480
  };
2481
2481
  }
2482
- var up = [], dp = 0, Av = null, Zm = 0, Rs = [], Ps = 0, Cu = null, al = 1, sl = "";
2482
+ var up = [], dp = 0, Av = null, Zm = 0, Rs = [], Ps = 0, Cu = null, sl = 1, ol = "";
2483
2483
  function rc(l, u) {
2484
2484
  up[dp++] = Zm, up[dp++] = Av, Av = l, Zm = u;
2485
2485
  }
2486
2486
  function wO(l, u, h) {
2487
- Rs[Ps++] = al, Rs[Ps++] = sl, Rs[Ps++] = Cu, Cu = l;
2488
- var v = al;
2489
- l = sl;
2487
+ Rs[Ps++] = sl, Rs[Ps++] = ol, Rs[Ps++] = Cu, Cu = l;
2488
+ var v = sl;
2489
+ l = ol;
2490
2490
  var E = 32 - tt(v) - 1;
2491
2491
  v &= ~(1 << E), h += 1;
2492
2492
  var $ = 32 - tt(u) + E;
2493
2493
  if (30 < $) {
2494
2494
  var F = E - E % 5;
2495
- $ = (v & (1 << F) - 1).toString(32), v >>= F, E -= F, al = 1 << 32 - tt(u) + E | h << E | v, sl = $ + l;
2495
+ $ = (v & (1 << F) - 1).toString(32), v >>= F, E -= F, sl = 1 << 32 - tt(u) + E | h << E | v, ol = $ + l;
2496
2496
  } else
2497
- al = 1 << $ | h << E | v, sl = l;
2497
+ sl = 1 << $ | h << E | v, ol = l;
2498
2498
  }
2499
2499
  function lx(l) {
2500
2500
  l.return !== null && (rc(l, 1), wO(l, 1, 0));
@@ -2503,10 +2503,10 @@ Error generating stack: ` + v.message + `
2503
2503
  for (; l === Av; )
2504
2504
  Av = up[--dp], up[dp] = null, Zm = up[--dp], up[dp] = null;
2505
2505
  for (; l === Cu; )
2506
- Cu = Rs[--Ps], Rs[Ps] = null, sl = Rs[--Ps], Rs[Ps] = null, al = Rs[--Ps], Rs[Ps] = null;
2506
+ Cu = Rs[--Ps], Rs[Ps] = null, ol = Rs[--Ps], Rs[Ps] = null, sl = Rs[--Ps], Rs[Ps] = null;
2507
2507
  }
2508
2508
  function xO(l, u) {
2509
- Rs[Ps++] = al, Rs[Ps++] = sl, Rs[Ps++] = Cu, al = u.id, sl = u.overflow, Cu = l;
2509
+ Rs[Ps++] = sl, Rs[Ps++] = ol, Rs[Ps++] = Cu, sl = u.id, ol = u.overflow, Cu = l;
2510
2510
  }
2511
2511
  var Ii = null, rr = null, cn = !1, Su = null, js = !1, ux = Error(r(519));
2512
2512
  function ku(l) {
@@ -4346,7 +4346,7 @@ Error generating stack: ` + v.message + `
4346
4346
  useId: function() {
4347
4347
  var l = fa(), u = Hn.identifierPrefix;
4348
4348
  if (cn) {
4349
- var h = sl, v = al;
4349
+ var h = ol, v = sl;
4350
4350
  h = (v & ~(1 << 32 - tt(v) - 1)).toString(32) + h, u = "_" + u + "R_" + h, h = Lv++, 0 < h && (u += "H" + h.toString(32)), u += "_";
4351
4351
  } else
4352
4352
  h = Jae++, u = "_" + u + "r_" + h.toString(32) + "_";
@@ -4771,7 +4771,7 @@ Error generating stack: ` + v.message + `
4771
4771
  js
4772
4772
  ), l = l !== null && l.data === "&" ? l : null, l !== null && (u.memoizedState = {
4773
4773
  dehydrated: l,
4774
- treeContext: Cu !== null ? { id: al, overflow: sl } : null,
4774
+ treeContext: Cu !== null ? { id: sl, overflow: ol } : null,
4775
4775
  retryLane: 536870912,
4776
4776
  hydrationErrors: null
4777
4777
  }, h = bO(l), h.return = u, u.child = h, Ii = u, rr = null)) : l = null, l === null) throw ku(u);
@@ -4941,7 +4941,7 @@ Error generating stack: ` + v.message + `
4941
4941
  js
4942
4942
  ), l = l !== null && l.data !== "&" ? l : null, l !== null && (u.memoizedState = {
4943
4943
  dehydrated: l,
4944
- treeContext: Cu !== null ? { id: al, overflow: sl } : null,
4944
+ treeContext: Cu !== null ? { id: sl, overflow: ol } : null,
4945
4945
  retryLane: 536870912,
4946
4946
  hydrationErrors: null
4947
4947
  }, h = bO(l), h.return = u, u.child = h, Ii = u, rr = null)) : l = null, l === null) throw ku(u);
@@ -5960,7 +5960,7 @@ Error generating stack: ` + v.message + `
5960
5960
  Nn(l, u, E);
5961
5961
  }
5962
5962
  }
5963
- function ol(l, u) {
5963
+ function ll(l, u) {
5964
5964
  var h = l.ref, v = l.refCleanup;
5965
5965
  if (h !== null)
5966
5966
  if (typeof v == "function")
@@ -6260,14 +6260,14 @@ Error generating stack: ` + v.message + `
6260
6260
  }
6261
6261
  switch (h.tag) {
6262
6262
  case 26:
6263
- Hr || ol(h, u), dc(
6263
+ Hr || ll(h, u), dc(
6264
6264
  l,
6265
6265
  u,
6266
6266
  h
6267
6267
  ), h.memoizedState ? h.memoizedState.count-- : h.stateNode && (h = h.stateNode, h.parentNode.removeChild(h));
6268
6268
  break;
6269
6269
  case 27:
6270
- Hr || ol(h, u);
6270
+ Hr || ll(h, u);
6271
6271
  var v = mr, E = Ta;
6272
6272
  Fu(h.type) && (mr = h.stateNode, Ta = !1), dc(
6273
6273
  l,
@@ -6276,7 +6276,7 @@ Error generating stack: ` + v.message + `
6276
6276
  ), xg(h.stateNode), mr = v, Ta = E;
6277
6277
  break;
6278
6278
  case 5:
6279
- Hr || ol(h, u);
6279
+ Hr || ll(h, u);
6280
6280
  case 6:
6281
6281
  if (v = mr, E = Ta, mr = null, dc(
6282
6282
  l,
@@ -6328,7 +6328,7 @@ Error generating stack: ` + v.message + `
6328
6328
  );
6329
6329
  break;
6330
6330
  case 1:
6331
- Hr || (ol(h, u), v = h.stateNode, typeof v.componentWillUnmount == "function" && VN(
6331
+ Hr || (ll(h, u), v = h.stateNode, typeof v.componentWillUnmount == "function" && VN(
6332
6332
  h,
6333
6333
  u,
6334
6334
  v
@@ -6442,11 +6442,11 @@ Error generating stack: ` + v.message + `
6442
6442
  $a(u, l), Ia(l), v & 4 && (Ru(3, l, l.return), dg(3, l), Ru(5, l, l.return));
6443
6443
  break;
6444
6444
  case 1:
6445
- $a(u, l), Ia(l), v & 512 && (Hr || h === null || ol(h, h.return)), v & 64 && uc && (l = l.updateQueue, l !== null && (v = l.callbacks, v !== null && (h = l.shared.hiddenCallbacks, l.shared.hiddenCallbacks = h === null ? v : h.concat(v))));
6445
+ $a(u, l), Ia(l), v & 512 && (Hr || h === null || ll(h, h.return)), v & 64 && uc && (l = l.updateQueue, l !== null && (v = l.callbacks, v !== null && (h = l.shared.hiddenCallbacks, l.shared.hiddenCallbacks = h === null ? v : h.concat(v))));
6446
6446
  break;
6447
6447
  case 26:
6448
6448
  var E = vo;
6449
- if ($a(u, l), Ia(l), v & 512 && (Hr || h === null || ol(h, h.return)), v & 4) {
6449
+ if ($a(u, l), Ia(l), v & 512 && (Hr || h === null || ll(h, h.return)), v & 4) {
6450
6450
  var $ = h !== null ? h.memoizedState : null;
6451
6451
  if (v = l.memoizedState, h === null)
6452
6452
  if (v === null)
@@ -6524,14 +6524,14 @@ Error generating stack: ` + v.message + `
6524
6524
  }
6525
6525
  break;
6526
6526
  case 27:
6527
- $a(u, l), Ia(l), v & 512 && (Hr || h === null || ol(h, h.return)), h !== null && v & 4 && n8(
6527
+ $a(u, l), Ia(l), v & 512 && (Hr || h === null || ll(h, h.return)), h !== null && v & 4 && n8(
6528
6528
  l,
6529
6529
  l.memoizedProps,
6530
6530
  h.memoizedProps
6531
6531
  );
6532
6532
  break;
6533
6533
  case 5:
6534
- if ($a(u, l), Ia(l), v & 512 && (Hr || h === null || ol(h, h.return)), l.flags & 32) {
6534
+ if ($a(u, l), Ia(l), v & 512 && (Hr || h === null || ll(h, h.return)), l.flags & 32) {
6535
6535
  E = l.stateNode;
6536
6536
  try {
6537
6537
  wu(E, "");
@@ -6708,7 +6708,7 @@ Error generating stack: ` + v.message + `
6708
6708
  Ru(4, u, u.return), ff(u);
6709
6709
  break;
6710
6710
  case 1:
6711
- ol(u, u.return);
6711
+ ll(u, u.return);
6712
6712
  var h = u.stateNode;
6713
6713
  typeof h.componentWillUnmount == "function" && VN(
6714
6714
  u,
@@ -6720,7 +6720,7 @@ Error generating stack: ` + v.message + `
6720
6720
  xg(u.stateNode);
6721
6721
  case 26:
6722
6722
  case 5:
6723
- ol(u, u.return), ff(u);
6723
+ ll(u, u.return), ff(u);
6724
6724
  break;
6725
6725
  case 22:
6726
6726
  u.memoizedState === null && ff(u);
@@ -7230,7 +7230,7 @@ Error generating stack: ` + v.message + `
7230
7230
  en,
7231
7231
  ss,
7232
7232
  !1
7233
- )), ll(l));
7233
+ )), cl(l));
7234
7234
  }
7235
7235
  function fR(l, u, h) {
7236
7236
  if ((Sn & 6) !== 0) throw Error(r(327));
@@ -7351,7 +7351,7 @@ Error generating stack: ` + v.message + `
7351
7351
  }
7352
7352
  break;
7353
7353
  } while (!0);
7354
- ll(l);
7354
+ cl(l);
7355
7355
  }
7356
7356
  function hR(l, u, h, v, E, $, F, Y, ie, ve, Ae, Oe, xe, Ce) {
7357
7357
  if (l.timeoutHandle = -1, Oe = u.subtreeFlags, Oe & 8192 || (Oe & 16785408) === 16785408) {
@@ -7557,7 +7557,7 @@ Error generating stack: ` + v.message + `
7557
7557
  break;
7558
7558
  }
7559
7559
  u = function() {
7560
- On !== 2 && On !== 9 || Hn !== l || (On = 7), ll(l);
7560
+ On !== 2 && On !== 9 || Hn !== l || (On = 7), cl(l);
7561
7561
  }, $.then(u, u);
7562
7562
  break e;
7563
7563
  case 3:
@@ -7855,7 +7855,7 @@ Error generating stack: ` + v.message + `
7855
7855
  O.T = u, B.p = E;
7856
7856
  }
7857
7857
  }
7858
- (mc & 3) !== 0 && aw(), ll(l), E = l.pendingLanes, (h & 261930) !== 0 && (E & 42) !== 0 ? l === h8 ? yg++ : (yg = 0, h8 = l) : yg = 0, bg(0);
7858
+ (mc & 3) !== 0 && aw(), cl(l), E = l.pendingLanes, (h & 261930) !== 0 && (E & 42) !== 0 ? l === h8 ? yg++ : (yg = 0, h8 = l) : yg = 0, bg(0);
7859
7859
  }
7860
7860
  }
7861
7861
  function SR(l, u) {
@@ -7890,7 +7890,7 @@ Error generating stack: ` + v.message + `
7890
7890
  }
7891
7891
  }
7892
7892
  function AR(l, u, h) {
7893
- u = Ns(h, u), u = Hx(l.stateNode, u, 2), l = Iu(l, u, 2), l !== null && (de(l, 2), ll(l));
7893
+ u = Ns(h, u), u = Hx(l.stateNode, u, 2), l = Iu(l, u, 2), l !== null && (de(l, 2), cl(l));
7894
7894
  }
7895
7895
  function Nn(l, u, h) {
7896
7896
  if (l.tag === 3)
@@ -7912,7 +7912,7 @@ Error generating stack: ` + v.message + `
7912
7912
  v,
7913
7913
  u,
7914
7914
  l
7915
- ), de(v, 2), ll(v));
7915
+ ), de(v, 2), cl(v));
7916
7916
  break;
7917
7917
  }
7918
7918
  }
@@ -7931,10 +7931,10 @@ Error generating stack: ` + v.message + `
7931
7931
  }
7932
7932
  function wse(l, u, h) {
7933
7933
  var v = l.pingCache;
7934
- v !== null && v.delete(u), l.pingedLanes |= l.suspendedLanes & h, l.warmLanes &= ~h, Hn === l && (en & h) === h && (Sr === 4 || Sr === 3 && (en & 62914560) === en && 300 > Ve() - Jv ? (Sn & 2) === 0 && Ap(l, 0) : c8 |= h, Sp === en && (Sp = 0)), ll(l);
7934
+ v !== null && v.delete(u), l.pingedLanes |= l.suspendedLanes & h, l.warmLanes &= ~h, Hn === l && (en & h) === h && (Sr === 4 || Sr === 3 && (en & 62914560) === en && 300 > Ve() - Jv ? (Sn & 2) === 0 && Ap(l, 0) : c8 |= h, Sp === en && (Sp = 0)), cl(l);
7935
7935
  }
7936
7936
  function TR(l, u) {
7937
- u === 0 && (u = re()), l = ef(l, u), l !== null && (de(l, u), ll(l));
7937
+ u === 0 && (u = re()), l = ef(l, u), l !== null && (de(l, u), cl(l));
7938
7938
  }
7939
7939
  function xse(l) {
7940
7940
  var u = l.memoizedState, h = 0;
@@ -7963,7 +7963,7 @@ Error generating stack: ` + v.message + `
7963
7963
  return Nt(l, u);
7964
7964
  }
7965
7965
  var sw = null, $p = null, y8 = !1, ow = !1, b8 = !1, Uu = 0;
7966
- function ll(l) {
7966
+ function cl(l) {
7967
7967
  l !== $p && l.next === null && ($p === null ? sw = $p = l : $p = $p.next = l), ow = !0, y8 || (y8 = !0, Sse());
7968
7968
  }
7969
7969
  function bg(l, u) {
@@ -8134,7 +8134,7 @@ Error generating stack: ` + v.message + `
8134
8134
  "on" + Tse
8135
8135
  );
8136
8136
  }
8137
- bo(dO, "onAnimationEnd"), bo(fO, "onAnimationIteration"), bo(hO, "onAnimationStart"), bo("dblclick", "onDoubleClick"), bo("focusin", "onFocus"), bo("focusout", "onBlur"), bo(qae, "onTransitionRun"), bo(Hae, "onTransitionStart"), bo(Vae, "onTransitionCancel"), bo(pO, "onTransitionEnd"), il("onMouseEnter", ["mouseout", "mouseover"]), il("onMouseLeave", ["mouseout", "mouseover"]), il("onPointerEnter", ["pointerout", "pointerover"]), il("onPointerLeave", ["pointerout", "pointerover"]), Ti(
8137
+ bo(dO, "onAnimationEnd"), bo(fO, "onAnimationIteration"), bo(hO, "onAnimationStart"), bo("dblclick", "onDoubleClick"), bo("focusin", "onFocus"), bo("focusout", "onBlur"), bo(qae, "onTransitionRun"), bo(Hae, "onTransitionStart"), bo(Vae, "onTransitionCancel"), bo(pO, "onTransitionEnd"), al("onMouseEnter", ["mouseout", "mouseover"]), al("onMouseLeave", ["mouseout", "mouseover"]), al("onPointerEnter", ["pointerout", "pointerover"]), al("onPointerLeave", ["pointerout", "pointerover"]), Ti(
8138
8138
  "onChange",
8139
8139
  "change click focusin focusout input keydown keyup selectionchange".split(" ")
8140
8140
  ), Ti(
@@ -8852,7 +8852,7 @@ Error generating stack: ` + v.message + `
8852
8852
  case "textContent":
8853
8853
  break;
8854
8854
  default:
8855
- if (!rl.hasOwnProperty(h))
8855
+ if (!il.hasOwnProperty(h))
8856
8856
  e: {
8857
8857
  if (h[0] === "o" && h[1] === "n" && (E = h.endsWith("Capture"), u = h.slice(2, E ? h.length - 7 : void 0), $ = l[qt] || null, $ = $ != null ? $[h] : null, typeof $ == "function" && l.removeEventListener(u, $, E), typeof v == "function")) {
8858
8858
  typeof $ != "function" && $ !== null && (h in l ? l[h] = null : l.hasAttribute(h) && l.removeAttribute(h)), l.addEventListener(u, v, E);
@@ -10107,7 +10107,7 @@ Error generating stack: ` + v.message + `
10107
10107
  var ie = 1 << 31 - tt(F);
10108
10108
  Y.entanglements[1] |= ie, F &= ~ie;
10109
10109
  }
10110
- ll($), (Sn & 6) === 0 && (ew = Ve() + 500, bg(0));
10110
+ cl($), (Sn & 6) === 0 && (ew = Ve() + 500, bg(0));
10111
10111
  }
10112
10112
  }
10113
10113
  break;
@@ -10581,7 +10581,7 @@ Error generating stack: ` + v.message + `
10581
10581
  F,
10582
10582
  Y,
10583
10583
  gP
10584
- ), u.context = sP(null), h = u.current, v = os(), v = Ft(v), E = $u(v), E.callback = null, Iu(h, E, v), h = v, u.current.lanes = h, de(u, h), ll(u), l[pr] = u.current, E8(l), new _w(u);
10584
+ ), u.context = sP(null), h = u.current, v = os(), v = Ft(v), E = $u(v), E.callback = null, Iu(h, E, v), h = v, u.current.lanes = h, de(u, h), cl(u), l[pr] = u.current, E8(l), new _w(u);
10585
10585
  }, $g.version = "19.2.0", $g;
10586
10586
  }
10587
10587
  var AP;
@@ -11228,7 +11228,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
11228
11228
  isSamsungBrowser: qn(Se)
11229
11229
  };
11230
11230
  }
11231
- var En = we(o), lt = on(o), $t = Nt(o), qt = ht(o), pr = wr(a) || je(), ii = gn(a), Br = Qe(o) || je(), Mn = ge(o), mi = wt(o) || je(), $r = Ie(o), ec = Ie(o), $s = Wt(d), Mt = ln(d), Cn = vr(d) || je(), St = ut(a), Gt = bt(a), Sa = gt(a), rl = Ai(a), Ti = Ye(a), il = Ze(d), jm = Tt(d), lv = In(a), cv = V(a), B4 = Z(a), Xh = hr(o), Jh = Ve(o), go = re(c), ka = te(c), uv = hn(f), z4 = tt(a) || pe(f), Mm = dt(a), dv = Yt(o), ep = Ne(), W4 = je(), Aa = xt(), Dm = Ft(), fv = de(), Lm = pe(f), vu = tt(a) && !pe(f), hv = jt(d), pv = st(d), wu = Wn(a), q4 = qn(a), mv = function(ne) {
11231
+ var En = we(o), lt = on(o), $t = Nt(o), qt = ht(o), pr = wr(a) || je(), ii = gn(a), Br = Qe(o) || je(), Mn = ge(o), mi = wt(o) || je(), $r = Ie(o), ec = Ie(o), $s = Wt(d), Mt = ln(d), Cn = vr(d) || je(), St = ut(a), Gt = bt(a), Sa = gt(a), il = Ai(a), Ti = Ye(a), al = Ze(d), jm = Tt(d), lv = In(a), cv = V(a), B4 = Z(a), Xh = hr(o), Jh = Ve(o), go = re(c), ka = te(c), uv = hn(f), z4 = tt(a) || pe(f), Mm = dt(a), dv = Yt(o), ep = Ne(), W4 = je(), Aa = xt(), Dm = Ft(), fv = de(), Lm = pe(f), vu = tt(a) && !pe(f), hv = jt(d), pv = st(d), wu = Wn(a), q4 = qn(a), mv = function(ne) {
11232
11232
  if (!ne || typeof ne != "string") {
11233
11233
  console.error("No valid user agent string was provided");
11234
11234
  return;
@@ -11363,7 +11363,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
11363
11363
  var ne = me || window.navigator.userAgent, ae = Is(ne), Se = yn(ae);
11364
11364
  return [Se, ae];
11365
11365
  }
11366
- return it.AndroidView = gv, it.BrowserTypes = q, it.BrowserView = Um, it.ConsoleView = _u, it.CustomView = zm, it.IEView = H4, it.IOSView = V4, it.MobileOnlyView = Bm, it.MobileView = tp, it.OsTypes = j, it.SmartTVView = xu, it.TabletView = yo, it.WearableView = yv, it.WinPhoneView = Fm, it.browserName = B4, it.browserVersion = cv, it.deviceDetect = Be, it.deviceType = dv, it.engineName = go, it.engineVersion = ka, it.fullBrowserVersion = lv, it.getSelectorsByUserAgent = mv, it.getUA = uv, it.isAndroid = $s, it.isBrowser = $r, it.isChrome = St, it.isChromium = ii, it.isConsole = lt, it.isDesktop = ec, it.isEdge = z4, it.isEdgeChromium = Lm, it.isElectron = fv, it.isEmbedded = qt, it.isFirefox = Gt, it.isIE = Ti, it.isIOS = Cn, it.isIOS13 = ep, it.isIPad13 = W4, it.isIPhone13 = Aa, it.isIPod13 = Dm, it.isLegacyEdge = vu, it.isMIUI = wu, it.isMacOs = pv, it.isMobile = Br, it.isMobileOnly = Mn, it.isMobileSafari = pr, it.isOpera = rl, it.isSafari = Sa, it.isSamsungBrowser = q4, it.isSmartTV = En, it.isTablet = mi, it.isWearable = $t, it.isWinPhone = Mt, it.isWindows = hv, it.isYandex = Mm, it.mobileModel = Jh, it.mobileVendor = Xh, it.osName = jm, it.osVersion = il, it.parseUserAgent = p, it.setUserAgent = J, it.useDeviceData = Is, it.useDeviceSelectors = Wm, it.useMobileOrientation = Qd, it.withOrientationChange = bv, it;
11366
+ return it.AndroidView = gv, it.BrowserTypes = q, it.BrowserView = Um, it.ConsoleView = _u, it.CustomView = zm, it.IEView = H4, it.IOSView = V4, it.MobileOnlyView = Bm, it.MobileView = tp, it.OsTypes = j, it.SmartTVView = xu, it.TabletView = yo, it.WearableView = yv, it.WinPhoneView = Fm, it.browserName = B4, it.browserVersion = cv, it.deviceDetect = Be, it.deviceType = dv, it.engineName = go, it.engineVersion = ka, it.fullBrowserVersion = lv, it.getSelectorsByUserAgent = mv, it.getUA = uv, it.isAndroid = $s, it.isBrowser = $r, it.isChrome = St, it.isChromium = ii, it.isConsole = lt, it.isDesktop = ec, it.isEdge = z4, it.isEdgeChromium = Lm, it.isElectron = fv, it.isEmbedded = qt, it.isFirefox = Gt, it.isIE = Ti, it.isIOS = Cn, it.isIOS13 = ep, it.isIPad13 = W4, it.isIPhone13 = Aa, it.isIPod13 = Dm, it.isLegacyEdge = vu, it.isMIUI = wu, it.isMacOs = pv, it.isMobile = Br, it.isMobileOnly = Mn, it.isMobileSafari = pr, it.isOpera = il, it.isSafari = Sa, it.isSamsungBrowser = q4, it.isSmartTV = En, it.isTablet = mi, it.isWearable = $t, it.isWinPhone = Mt, it.isWindows = hv, it.isYandex = Mm, it.mobileModel = Jh, it.mobileVendor = Xh, it.osName = jm, it.osVersion = al, it.parseUserAgent = p, it.setUserAgent = J, it.useDeviceData = Is, it.useDeviceSelectors = Wm, it.useMobileOrientation = Qd, it.withOrientationChange = bv, it;
11367
11367
  }
11368
11368
  var nn = Soe();
11369
11369
  const koe = "1.1.0";
@@ -12263,7 +12263,7 @@ function $d(...t) {
12263
12263
  function Q8(t) {
12264
12264
  return new DataView(t.buffer, t.byteOffset, t.byteLength);
12265
12265
  }
12266
- function cl(t, e) {
12266
+ function ul(t, e) {
12267
12267
  return t << 32 - e | t >>> e;
12268
12268
  }
12269
12269
  const Ule = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
@@ -12293,7 +12293,7 @@ function DP(t) {
12293
12293
  if (t >= vc.a && t <= vc.f)
12294
12294
  return t - (vc.a - 10);
12295
12295
  }
12296
- function rot(t) {
12296
+ function iot(t) {
12297
12297
  if (typeof t != "string")
12298
12298
  throw new Error("hex string expected, got " + typeof t);
12299
12299
  if (Kq)
@@ -12809,7 +12809,7 @@ class pce extends ke {
12809
12809
  `), { name: "InvalidDefinitionTypeError" });
12810
12810
  }
12811
12811
  }
12812
- class oot extends ke {
12812
+ class lot extends ke {
12813
12813
  constructor(e) {
12814
12814
  super(`Type "${e}" is not supported for packed encoding.`, {
12815
12815
  name: "UnsupportedPackedAbiType"
@@ -13026,7 +13026,7 @@ function wce(t) {
13026
13026
  function fo(t) {
13027
13027
  return `0x${t.reduce((e, n) => e + n.replace("0x", ""), "")}`;
13028
13028
  }
13029
- const dot = /^(.*)\[([0-9]*)\]$/, xce = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, uH = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
13029
+ const fot = /^(.*)\[([0-9]*)\]$/, xce = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, uH = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
13030
13030
  function Ud(t, e) {
13031
13031
  if (t.length !== e.length)
13032
13032
  throw new sce({
@@ -14205,12 +14205,12 @@ class cue extends CH {
14205
14205
  for (let m = 0; m < 16; m++, n += 4)
14206
14206
  Gu[m] = e.getUint32(n, !1);
14207
14207
  for (let m = 16; m < 64; m++) {
14208
- const p = Gu[m - 15], y = Gu[m - 2], b = cl(p, 7) ^ cl(p, 18) ^ p >>> 3, w = cl(y, 17) ^ cl(y, 19) ^ y >>> 10;
14208
+ const p = Gu[m - 15], y = Gu[m - 2], b = ul(p, 7) ^ ul(p, 18) ^ p >>> 3, w = ul(y, 17) ^ ul(y, 19) ^ y >>> 10;
14209
14209
  Gu[m] = w + Gu[m - 7] + b + Gu[m - 16] | 0;
14210
14210
  }
14211
14211
  let { A: r, B: i, C: a, D: s, E: o, F: c, G: d, H: f } = this;
14212
14212
  for (let m = 0; m < 64; m++) {
14213
- const p = cl(o, 6) ^ cl(o, 11) ^ cl(o, 25), y = f + p + sue(o, c, d) + lue[m] + Gu[m] | 0, w = (cl(r, 2) ^ cl(r, 13) ^ cl(r, 22)) + oue(r, i, a) | 0;
14213
+ const p = ul(o, 6) ^ ul(o, 11) ^ ul(o, 25), y = f + p + sue(o, c, d) + lue[m] + Gu[m] | 0, w = (ul(r, 2) ^ ul(r, 13) ^ ul(r, 22)) + oue(r, i, a) | 0;
14214
14214
  f = d, d = c, c = o, o = s + y | 0, s = a, a = i, i = r, r = y + w | 0;
14215
14215
  }
14216
14216
  r = r + this.A | 0, i = i + this.B | 0, a = a + this.C | 0, s = s + this.D | 0, o = o + this.E | 0, c = c + this.F | 0, d = d + this.G | 0, f = f + this.H | 0, this.set(r, i, a, s, o, c, d, f);
@@ -14345,7 +14345,7 @@ class fue extends kH {
14345
14345
  super(48), this.Ah = Ki[0] | 0, this.Al = Ki[1] | 0, this.Bh = Ki[2] | 0, this.Bl = Ki[3] | 0, this.Ch = Ki[4] | 0, this.Cl = Ki[5] | 0, this.Dh = Ki[6] | 0, this.Dl = Ki[7] | 0, this.Eh = Ki[8] | 0, this.El = Ki[9] | 0, this.Fh = Ki[10] | 0, this.Fl = Ki[11] | 0, this.Gh = Ki[12] | 0, this.Gl = Ki[13] | 0, this.Hh = Ki[14] | 0, this.Hl = Ki[15] | 0;
14346
14346
  }
14347
14347
  }
14348
- const AH = /* @__PURE__ */ $5(() => new cue()), fot = /* @__PURE__ */ $5(() => new kH()), hot = /* @__PURE__ */ $5(() => new fue()), TH = AH;
14348
+ const AH = /* @__PURE__ */ $5(() => new cue()), hot = /* @__PURE__ */ $5(() => new kH()), pot = /* @__PURE__ */ $5(() => new fue()), TH = AH;
14349
14349
  function $H(t, e) {
14350
14350
  const n = e || "hex", r = TH(zi(t, { strict: !1 }) ? Kc(t) : t);
14351
14351
  return n === "bytes" ? r : Ot(r);
@@ -16065,7 +16065,7 @@ function ah(t, e) {
16065
16065
  function sh(t, e) {
16066
16066
  return HH(t, { dir: "right", size: e });
16067
16067
  }
16068
- function Nl(t, e, n, r = {}) {
16068
+ function Rl(t, e, n, r = {}) {
16069
16069
  const { strict: i } = r;
16070
16070
  Hue(t, e);
16071
16071
  const a = `0x${t.replace("0x", "").slice((e ?? 0) * 2, (n ?? t.length) * 2)}`;
@@ -16517,7 +16517,7 @@ const c3 = [
16517
16517
  type: "function",
16518
16518
  name: "isValidSig"
16519
16519
  }
16520
- ], Cot = [
16520
+ ], Sot = [
16521
16521
  {
16522
16522
  type: "event",
16523
16523
  name: "Approval",
@@ -17178,7 +17178,7 @@ async function W5(t, e) {
17178
17178
  });
17179
17179
  return j === "0x" ? { data: void 0 } : { data: j };
17180
17180
  } catch (H) {
17181
- const K = Nde(H), { offchainLookup: R, offchainLookupSignature: O } = await import("./ccip-B3-cQAzb.js");
17181
+ const K = Nde(H), { offchainLookup: R, offchainLookupSignature: O } = await import("./ccip-D9NenQot.js");
17182
17182
  if (t.ccipRead !== !1 && K?.slice(0, 10) === O && T)
17183
17183
  return { data: await R(t, { data: K, to: T }) };
17184
17184
  throw W && K?.slice(0, 10) === "0x101bb98d" ? new Cde({ factory: p }) : oV(H, {
@@ -17446,7 +17446,7 @@ function CA(t, e) {
17446
17446
  };
17447
17447
  }
17448
17448
  const fV = /* @__PURE__ */ z5("block", CA);
17449
- function Ul(t, { args: e, eventName: n } = {}) {
17449
+ function Fl(t, { args: e, eventName: n } = {}) {
17450
17450
  return {
17451
17451
  ...t,
17452
17452
  blockHash: t.blockHash ? t.blockHash : null,
@@ -17469,7 +17469,7 @@ function SA(t, e) {
17469
17469
  cumulativeGasUsed: t.cumulativeGasUsed ? BigInt(t.cumulativeGasUsed) : null,
17470
17470
  effectiveGasPrice: t.effectiveGasPrice ? BigInt(t.effectiveGasPrice) : null,
17471
17471
  gasUsed: t.gasUsed ? BigInt(t.gasUsed) : null,
17472
- logs: t.logs ? t.logs.map((r) => Ul(r)) : null,
17472
+ logs: t.logs ? t.logs.map((r) => Fl(r)) : null,
17473
17473
  to: t.to ? t.to : null,
17474
17474
  transactionIndex: t.transactionIndex ? Es(t.transactionIndex) : null,
17475
17475
  status: t.status ? hV[t.status] : null,
@@ -17789,7 +17789,7 @@ function xV({ types: t, name: e, type: n, value: r }) {
17789
17789
  }
17790
17790
  return [{ type: n }, r];
17791
17791
  }
17792
- const Sot = "0x6492649264926492649264926492649264926492649264926492649264926492", dj = "0x0000000000000000000000000000000000000000000000000000000000000000", Xde = "1.1.2";
17792
+ const kot = "0x6492649264926492649264926492649264926492649264926492649264926492", dj = "0x0000000000000000000000000000000000000000000000000000000000000000", Xde = "1.1.2";
17793
17793
  let Qa = class G9 extends Error {
17794
17794
  constructor(e, n = {}) {
17795
17795
  const r = n.cause instanceof G9 ? n.cause.details : n.cause?.message ? n.cause.message : n.details, i = n.cause instanceof G9 && n.cause.docsPath || n.docsPath, a = [
@@ -18809,7 +18809,7 @@ function ihe(t, { signed: e, size: n }) {
18809
18809
  function ahe(t) {
18810
18810
  const e = wA(t), n = Math.ceil(Cs(e) / 32), r = [];
18811
18811
  for (let i = 0; i < n; i++)
18812
- r.push(sh(Nl(e, i * 32, (i + 1) * 32)));
18812
+ r.push(sh(Rl(e, i * 32, (i + 1) * 32)));
18813
18813
  return {
18814
18814
  dynamic: !0,
18815
18815
  encoded: Bo(sh(ha(Cs(e), { size: 32 })), ...r)
@@ -20305,7 +20305,7 @@ function Fhe(t) {
20305
20305
  function tG(t) {
20306
20306
  if (t.length !== 130 && t.length !== 132)
20307
20307
  throw new Hhe({ signature: t });
20308
- const e = BigInt(Nl(t, 0, 32)), n = BigInt(Nl(t, 32, 64)), r = (() => {
20308
+ const e = BigInt(Rl(t, 0, 32)), n = BigInt(Rl(t, 32, 64)), r = (() => {
20309
20309
  const i = +`0x${t.slice(130)}`;
20310
20310
  if (!Number.isNaN(i))
20311
20311
  try {
@@ -20440,14 +20440,14 @@ function Zhe(t) {
20440
20440
  const Qhe = "0x8010801080108010801080108010801080108010801080108010801080108010", Xhe = DV("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");
20441
20441
  function nG(t) {
20442
20442
  if (typeof t == "string") {
20443
- if (Nl(t, -32) !== Qhe)
20443
+ if (Rl(t, -32) !== Qhe)
20444
20444
  throw new tpe(t);
20445
20445
  } else
20446
20446
  eG(t.authorization);
20447
20447
  }
20448
20448
  function Jhe(t) {
20449
20449
  nG(t);
20450
- const e = QH(Nl(t, -64, -32)), n = Nl(t, -e - 64, -64), r = Nl(t, 0, -e - 64), [i, a, s] = dhe(Xhe, n);
20450
+ const e = QH(Rl(t, -64, -32)), n = Rl(t, -e - 64, -64), r = Rl(t, 0, -e - 64), [i, a, s] = dhe(Xhe, n);
20451
20451
  return {
20452
20452
  authorization: Yhe({
20453
20453
  address: i.delegation,
@@ -20659,7 +20659,7 @@ let g0e = class {
20659
20659
  function y0e(t, e) {
20660
20660
  return { ...t, rpcUrls: { ...t.rpcUrls, privy: { http: [e] } } };
20661
20661
  }
20662
- const Xo = { id: 42161, name: "Arbitrum One", network: "arbitrum", nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { privy: { http: ["https://arbitrum-mainnet.rpc.privy.systems"] }, alchemy: { http: ["https://arb-mainnet.g.alchemy.com/v2"], webSocket: ["wss://arb-mainnet.g.alchemy.com/v2"] }, infura: { http: ["https://arbitrum-mainnet.infura.io/v3"], webSocket: ["wss://arbitrum-mainnet.infura.io/ws/v3"] }, default: { http: ["https://arb1.arbitrum.io/rpc"] }, public: { http: ["https://arb1.arbitrum.io/rpc"] } }, blockExplorers: { etherscan: { name: "Arbiscan", url: "https://arbiscan.io" }, default: { name: "Arbiscan", url: "https://arbiscan.io" } } }, DA = { id: 421614, name: "Arbitrum Sepolia", network: "arbitrum-sepolia", nativeCurrency: { name: "Arbitrum Sepolia Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { privy: { http: ["https://arbitrum-sepolia.rpc.privy.systems"] }, default: { http: ["https://sepolia-rollup.arbitrum.io/rpc"] }, public: { http: ["https://sepolia-rollup.arbitrum.io/rpc"] } }, blockExplorers: { default: { name: "Blockscout", url: "https://sepolia-explorer.arbitrum.io" } }, testnet: !0 }, Jo = { id: 43114, name: "Avalanche", network: "avalanche", nativeCurrency: { decimals: 18, name: "Avalanche", symbol: "AVAX" }, rpcUrls: { default: { http: ["https://api.avax.network/ext/bc/C/rpc"] }, public: { http: ["https://api.avax.network/ext/bc/C/rpc"] } }, blockExplorers: { etherscan: { name: "SnowTrace", url: "https://snowtrace.io" }, default: { name: "SnowTrace", url: "https://snowtrace.io" } } }, LA = { id: 43113, name: "Avalanche Fuji", network: "avalanche-fuji", nativeCurrency: { decimals: 18, name: "Avalanche Fuji", symbol: "AVAX" }, rpcUrls: { default: { http: ["https://api.avax-test.network/ext/bc/C/rpc"] }, public: { http: ["https://api.avax-test.network/ext/bc/C/rpc"] } }, blockExplorers: { etherscan: { name: "SnowTrace", url: "https://testnet.snowtrace.io" }, default: { name: "SnowTrace", url: "https://testnet.snowtrace.io" } }, testnet: !0 }, el = { id: 8453, network: "base", name: "Base", nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { privy: { http: ["https://base-mainnet.rpc.privy.systems"] }, default: { http: ["https://mainnet.base.org"] }, public: { http: ["https://mainnet.base.org"] } }, blockExplorers: { etherscan: { name: "Basescan", url: "https://basescan.org" }, default: { name: "Basescan", url: "https://basescan.org" } } }, UA = { id: 84532, network: "base-sepolia", name: "Base Sepolia", nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { privy: { http: ["https://base-sepolia.rpc.privy.systems"] }, default: { http: ["https://sepolia.base.org"] }, public: { http: ["https://sepolia.base.org"] } }, blockExplorers: { default: { name: "Blockscout", url: "https://base-sepolia.blockscout.com" } }, testnet: !0 }, b0e = { id: 80085, network: "berachain-artio", name: "Berachain Artio", nativeCurrency: { name: "BERA", symbol: "BERA", decimals: 18 }, rpcUrls: { default: { http: ["https://berachain-artio.rpc.privy.systems"] }, public: { http: ["https://berachain-artio.rpc.privy.systems"] } }, blockExplorers: { default: { name: "Beratrail", url: "https://artio.beratrail.io" } }, testnet: !0 }, v0e = { id: 56, network: "bsc", name: "Binance Smart Chain", nativeCurrency: { name: "BNB", symbol: "BNB", decimals: 18 }, rpcUrls: { privy: { http: ["https://bsc-mainnet.rpc.privy.systems"] }, default: { http: ["https://56.rpc.thirdweb.com"] }, public: { http: ["https://56.rpc.thirdweb.com"] } }, blockExplorers: { etherscan: { name: "BscScan", url: "https://bscscan.com" }, default: { name: "BscScan", url: "https://bscscan.com" } } }, K5 = { id: 42220, name: "Celo Mainnet", network: "celo", nativeCurrency: { decimals: 18, name: "CELO", symbol: "CELO" }, rpcUrls: { default: { http: ["https://forno.celo.org"] }, infura: { http: ["https://celo-mainnet.infura.io/v3"] }, public: { http: ["https://forno.celo.org"] } }, blockExplorers: { default: { name: "Celo Explorer", url: "https://explorer.celo.org/mainnet" }, etherscan: { name: "CeloScan", url: "https://celoscan.io" } }, testnet: !1 }, w0e = { id: 44787, name: "Celo Alfajores Testnet", network: "celo-alfajores", nativeCurrency: { decimals: 18, name: "CELO", symbol: "CELO" }, rpcUrls: { default: { http: ["https://alfajores-forno.celo-testnet.org"] }, infura: { http: ["https://celo-alfajores.infura.io/v3"] }, public: { http: ["https://alfajores-forno.celo-testnet.org"] } }, blockExplorers: { default: { name: "Celo Explorer", url: "https://explorer.celo.org/alfajores" }, etherscan: { name: "CeloScan", url: "https://alfajores.celoscan.io/" } }, testnet: !0 }, x0e = { id: 314, name: "Filecoin - Mainnet", network: "filecoin-mainnet", nativeCurrency: { decimals: 18, name: "filecoin", symbol: "FIL" }, rpcUrls: { default: { http: ["https://api.node.glif.io/rpc/v1"] }, public: { http: ["https://api.node.glif.io/rpc/v1"] } }, blockExplorers: { default: { name: "Filfox", url: "https://filfox.info/en" }, filscan: { name: "Filscan", url: "https://filscan.io" }, filscout: { name: "Filscout", url: "https://filscout.io/en" }, glif: { name: "Glif", url: "https://explorer.glif.io" } } }, _0e = { id: 314159, name: "Filecoin - Calibration testnet", network: "filecoin-calibration", nativeCurrency: { decimals: 18, name: "testnet filecoin", symbol: "tFIL" }, rpcUrls: { default: { http: ["https://api.calibration.node.glif.io/rpc/v1"] }, public: { http: ["https://api.calibration.node.glif.io/rpc/v1"] } }, blockExplorers: { default: { name: "Filscan", url: "https://calibration.filscan.io" } } }, E0e = { id: 17069, name: "Garnet Holesky", network: "garnet-holesky", nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18 }, rpcUrls: { default: { http: ["https://rpc.garnetchain.com"] }, public: { http: ["https://rpc.garnetchain.com"] } }, blockExplorers: { default: { name: "Blockscout", url: "https://explorer.garnetchain.com" } } }, C0e = { id: 17e3, name: "Holesky", network: "holesky", nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18 }, rpcUrls: { default: { http: ["https://ethereum-holesky.publicnode.com"] }, public: { http: ["https://ethereum-holesky.publicnode.com"] } }, blockExplorers: { etherscan: { name: "EtherScan", url: "https://holesky.etherscan.io" }, default: { name: "EtherScan", url: "https://holesky.etherscan.io" } } }, lG = { id: 59144, network: "linea-mainnet", name: "Linea Mainnet", nativeCurrency: { name: "Linea Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { default: { http: ["https://rpc.linea.build"], webSocket: ["wss://rpc.linea.build"] }, public: { http: ["https://rpc.linea.build"], webSocket: ["wss://rpc.linea.build"] } }, blockExplorers: { default: { name: "Etherscan", url: "https://lineascan.build" }, etherscan: { name: "Etherscan", url: "https://lineascan.build" } }, testnet: !1 }, S0e = { id: 59140, network: "linea-testnet", name: "Linea Goerli Testnet", nativeCurrency: { name: "Linea Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { infura: { http: ["https://linea-goerli.infura.io/v3"], webSocket: ["wss://linea-goerli.infura.io/ws/v3"] }, default: { http: ["https://rpc.goerli.linea.build"], webSocket: ["wss://rpc.goerli.linea.build"] }, public: { http: ["https://rpc.goerli.linea.build"], webSocket: ["wss://rpc.goerli.linea.build"] } }, blockExplorers: { default: { name: "Etherscan", url: "https://goerli.lineascan.build" }, etherscan: { name: "Etherscan", url: "https://goerli.lineascan.build" } }, testnet: !0 }, k0e = { id: 42, network: "lukso", name: "LUKSO", nativeCurrency: { name: "LUKSO", symbol: "LYX", decimals: 18 }, rpcUrls: { default: { http: ["https://rpc.mainnet.lukso.network"], webSocket: ["wss://ws-rpc.mainnet.lukso.network"] } }, blockExplorers: { default: { name: "LUKSO Mainnet Explorer", url: "https://explorer.execution.mainnet.lukso.network" } } }, ho = { id: 1, network: "homestead", name: "Ethereum", nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { privy: { http: ["https://mainnet.rpc.privy.systems"] }, alchemy: { http: ["https://eth-mainnet.g.alchemy.com/v2"], webSocket: ["wss://eth-mainnet.g.alchemy.com/v2"] }, infura: { http: ["https://mainnet.infura.io/v3"], webSocket: ["wss://mainnet.infura.io/ws/v3"] }, default: { http: ["https://cloudflare-eth.com"] }, public: { http: ["https://cloudflare-eth.com"] } }, blockExplorers: { etherscan: { name: "Etherscan", url: "https://etherscan.io" }, default: { name: "Etherscan", url: "https://etherscan.io" } } }, gu = { id: 10, name: "OP Mainnet", network: "optimism", nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { privy: { http: ["https://optimism-mainnet.rpc.privy.systems"] }, alchemy: { http: ["https://opt-mainnet.g.alchemy.com/v2"], webSocket: ["wss://opt-mainnet.g.alchemy.com/v2"] }, infura: { http: ["https://optimism-mainnet.infura.io/v3"], webSocket: ["wss://optimism-mainnet.infura.io/ws/v3"] }, default: { http: ["https://mainnet.optimism.io"] }, public: { http: ["https://mainnet.optimism.io"] } }, blockExplorers: { etherscan: { name: "Etherscan", url: "https://optimistic.etherscan.io" }, default: { name: "Optimism Explorer", url: "https://explorer.optimism.io" } } }, FA = { id: 11155420, name: "Optimism Sepolia", network: "optimism-sepolia", nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { privy: { http: ["https://optimism-sepolia.rpc.privy.systems"] }, default: { http: ["https://sepolia.optimism.io"] }, public: { http: ["https://sepolia.optimism.io"] }, infura: { http: ["https://optimism-sepolia.infura.io/v3"] } }, blockExplorers: { default: { name: "Blockscout", url: "https://optimism-sepolia.blockscout.com" } }, testnet: !0 }, po = { id: 137, name: "Polygon Mainnet", network: "polygon", nativeCurrency: { name: "POL", symbol: "POL", decimals: 18 }, rpcUrls: { privy: { http: ["https://polygon-mainnet.rpc.privy.systems"] }, alchemy: { http: ["https://polygon-mainnet.g.alchemy.com/v2"], webSocket: ["wss://polygon-mainnet.g.alchemy.com/v2"] }, infura: { http: ["https://polygon-mainnet.infura.io/v3"], webSocket: ["wss://polygon-mainnet.infura.io/ws/v3"] }, default: { http: ["https://polygon-rpc.com"] }, public: { http: ["https://polygon-rpc.com"] } }, blockExplorers: { etherscan: { name: "PolygonScan", url: "https://polygonscan.com" }, default: { name: "PolygonScan", url: "https://polygonscan.com" } } }, BA = { id: 80002, name: "Polygon Amoy", network: "polygon-amoy", nativeCurrency: { name: "POL", symbol: "POL", decimals: 18 }, rpcUrls: { privy: { http: ["https://polygon-amoy.rpc.privy.systems"] }, infura: { http: ["https://polygon-amoy.infura.io/v3"], webSocket: ["wss://polygon-amoy.infura.io/ws/v3"] }, default: { http: ["https://rpc-amoy.polygon.technology"] } }, blockExplorers: { default: { name: "OK LINK", url: "https://www.oklink.com/amoy" } }, testnet: !0 }, A0e = { id: 690, name: "Redstone", network: "redstone", nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18 }, rpcUrls: { default: { http: ["https://rpc.redstonechain.com"] }, public: { http: ["https://rpc.redstonechain.com"] } }, blockExplorers: { default: { name: "Blockscout", url: "https://explorer.redstone.xyz/" } } }, zA = { id: 11155111, network: "sepolia", name: "Sepolia", nativeCurrency: { name: "Sepolia Ether", symbol: "SEP", decimals: 18 }, rpcUrls: { privy: { http: ["https://sepolia.rpc.privy.systems"] }, alchemy: { http: ["https://eth-sepolia.g.alchemy.com/v2"], webSocket: ["wss://eth-sepolia.g.alchemy.com/v2"] }, infura: { http: ["https://sepolia.infura.io/v3"], webSocket: ["wss://sepolia.infura.io/ws/v3"] }, default: { http: ["https://rpc.sepolia.org"] }, public: { http: ["https://rpc.sepolia.org"] } }, blockExplorers: { etherscan: { name: "Etherscan", url: "https://sepolia.etherscan.io" }, default: { name: "Etherscan", url: "https://sepolia.etherscan.io" } }, testnet: !0 }, cG = { id: 7777777, name: "Zora", network: "zora", nativeCurrency: { decimals: 18, name: "Ether", symbol: "ETH" }, rpcUrls: { default: { http: ["https://rpc.zora.energy"], webSocket: ["wss://rpc.zora.energy"] }, public: { http: ["https://rpc.zora.energy"], webSocket: ["wss://rpc.zora.energy"] } }, blockExplorers: { default: { name: "Explorer", url: "https://explorer.zora.energy" } } }, T0e = { id: 999999999, name: "Zora Sepolia", network: "zora-sepolia", nativeCurrency: { decimals: 18, name: "Zora Sepolia", symbol: "ETH" }, rpcUrls: { default: { http: ["https://sepolia.rpc.zora.energy"], webSocket: ["wss://sepolia.rpc.zora.energy"] }, public: { http: ["https://sepolia.rpc.zora.energy"], webSocket: ["wss://sepolia.rpc.zora.energy"] } }, blockExplorers: { default: { name: "Zora Sepolia Explorer", url: "https://sepolia.explorer.zora.energy/" } }, testnet: !0 }, $0e = { id: 999, name: "Zora Goerli Testnet", network: "zora-testnet", nativeCurrency: { decimals: 18, name: "Zora Goerli", symbol: "ETH" }, rpcUrls: { default: { http: ["https://testnet.rpc.zora.energy"], webSocket: ["wss://testnet.rpc.zora.energy"] }, public: { http: ["https://testnet.rpc.zora.energy"], webSocket: ["wss://testnet.rpc.zora.energy"] } }, blockExplorers: { default: { name: "Explorer", url: "https://testnet.explorer.zora.energy" } }, testnet: !0 }, vb = [ho, zA, C0e, Xo, DA, gu, FA, po, BA, K5, w0e, x0e, _0e, el, UA, b0e, v0e, k0e, lG, S0e, Jo, LA, cG, $0e, T0e, A0e, E0e], uG = new Set(vb.map(((t) => t.id)));
20662
+ const Jo = { id: 42161, name: "Arbitrum One", network: "arbitrum", nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { privy: { http: ["https://arbitrum-mainnet.rpc.privy.systems"] }, alchemy: { http: ["https://arb-mainnet.g.alchemy.com/v2"], webSocket: ["wss://arb-mainnet.g.alchemy.com/v2"] }, infura: { http: ["https://arbitrum-mainnet.infura.io/v3"], webSocket: ["wss://arbitrum-mainnet.infura.io/ws/v3"] }, default: { http: ["https://arb1.arbitrum.io/rpc"] }, public: { http: ["https://arb1.arbitrum.io/rpc"] } }, blockExplorers: { etherscan: { name: "Arbiscan", url: "https://arbiscan.io" }, default: { name: "Arbiscan", url: "https://arbiscan.io" } } }, DA = { id: 421614, name: "Arbitrum Sepolia", network: "arbitrum-sepolia", nativeCurrency: { name: "Arbitrum Sepolia Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { privy: { http: ["https://arbitrum-sepolia.rpc.privy.systems"] }, default: { http: ["https://sepolia-rollup.arbitrum.io/rpc"] }, public: { http: ["https://sepolia-rollup.arbitrum.io/rpc"] } }, blockExplorers: { default: { name: "Blockscout", url: "https://sepolia-explorer.arbitrum.io" } }, testnet: !0 }, el = { id: 43114, name: "Avalanche", network: "avalanche", nativeCurrency: { decimals: 18, name: "Avalanche", symbol: "AVAX" }, rpcUrls: { default: { http: ["https://api.avax.network/ext/bc/C/rpc"] }, public: { http: ["https://api.avax.network/ext/bc/C/rpc"] } }, blockExplorers: { etherscan: { name: "SnowTrace", url: "https://snowtrace.io" }, default: { name: "SnowTrace", url: "https://snowtrace.io" } } }, LA = { id: 43113, name: "Avalanche Fuji", network: "avalanche-fuji", nativeCurrency: { decimals: 18, name: "Avalanche Fuji", symbol: "AVAX" }, rpcUrls: { default: { http: ["https://api.avax-test.network/ext/bc/C/rpc"] }, public: { http: ["https://api.avax-test.network/ext/bc/C/rpc"] } }, blockExplorers: { etherscan: { name: "SnowTrace", url: "https://testnet.snowtrace.io" }, default: { name: "SnowTrace", url: "https://testnet.snowtrace.io" } }, testnet: !0 }, tl = { id: 8453, network: "base", name: "Base", nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { privy: { http: ["https://base-mainnet.rpc.privy.systems"] }, default: { http: ["https://mainnet.base.org"] }, public: { http: ["https://mainnet.base.org"] } }, blockExplorers: { etherscan: { name: "Basescan", url: "https://basescan.org" }, default: { name: "Basescan", url: "https://basescan.org" } } }, UA = { id: 84532, network: "base-sepolia", name: "Base Sepolia", nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { privy: { http: ["https://base-sepolia.rpc.privy.systems"] }, default: { http: ["https://sepolia.base.org"] }, public: { http: ["https://sepolia.base.org"] } }, blockExplorers: { default: { name: "Blockscout", url: "https://base-sepolia.blockscout.com" } }, testnet: !0 }, b0e = { id: 80085, network: "berachain-artio", name: "Berachain Artio", nativeCurrency: { name: "BERA", symbol: "BERA", decimals: 18 }, rpcUrls: { default: { http: ["https://berachain-artio.rpc.privy.systems"] }, public: { http: ["https://berachain-artio.rpc.privy.systems"] } }, blockExplorers: { default: { name: "Beratrail", url: "https://artio.beratrail.io" } }, testnet: !0 }, v0e = { id: 56, network: "bsc", name: "Binance Smart Chain", nativeCurrency: { name: "BNB", symbol: "BNB", decimals: 18 }, rpcUrls: { privy: { http: ["https://bsc-mainnet.rpc.privy.systems"] }, default: { http: ["https://56.rpc.thirdweb.com"] }, public: { http: ["https://56.rpc.thirdweb.com"] } }, blockExplorers: { etherscan: { name: "BscScan", url: "https://bscscan.com" }, default: { name: "BscScan", url: "https://bscscan.com" } } }, K5 = { id: 42220, name: "Celo Mainnet", network: "celo", nativeCurrency: { decimals: 18, name: "CELO", symbol: "CELO" }, rpcUrls: { default: { http: ["https://forno.celo.org"] }, infura: { http: ["https://celo-mainnet.infura.io/v3"] }, public: { http: ["https://forno.celo.org"] } }, blockExplorers: { default: { name: "Celo Explorer", url: "https://explorer.celo.org/mainnet" }, etherscan: { name: "CeloScan", url: "https://celoscan.io" } }, testnet: !1 }, w0e = { id: 44787, name: "Celo Alfajores Testnet", network: "celo-alfajores", nativeCurrency: { decimals: 18, name: "CELO", symbol: "CELO" }, rpcUrls: { default: { http: ["https://alfajores-forno.celo-testnet.org"] }, infura: { http: ["https://celo-alfajores.infura.io/v3"] }, public: { http: ["https://alfajores-forno.celo-testnet.org"] } }, blockExplorers: { default: { name: "Celo Explorer", url: "https://explorer.celo.org/alfajores" }, etherscan: { name: "CeloScan", url: "https://alfajores.celoscan.io/" } }, testnet: !0 }, x0e = { id: 314, name: "Filecoin - Mainnet", network: "filecoin-mainnet", nativeCurrency: { decimals: 18, name: "filecoin", symbol: "FIL" }, rpcUrls: { default: { http: ["https://api.node.glif.io/rpc/v1"] }, public: { http: ["https://api.node.glif.io/rpc/v1"] } }, blockExplorers: { default: { name: "Filfox", url: "https://filfox.info/en" }, filscan: { name: "Filscan", url: "https://filscan.io" }, filscout: { name: "Filscout", url: "https://filscout.io/en" }, glif: { name: "Glif", url: "https://explorer.glif.io" } } }, _0e = { id: 314159, name: "Filecoin - Calibration testnet", network: "filecoin-calibration", nativeCurrency: { decimals: 18, name: "testnet filecoin", symbol: "tFIL" }, rpcUrls: { default: { http: ["https://api.calibration.node.glif.io/rpc/v1"] }, public: { http: ["https://api.calibration.node.glif.io/rpc/v1"] } }, blockExplorers: { default: { name: "Filscan", url: "https://calibration.filscan.io" } } }, E0e = { id: 17069, name: "Garnet Holesky", network: "garnet-holesky", nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18 }, rpcUrls: { default: { http: ["https://rpc.garnetchain.com"] }, public: { http: ["https://rpc.garnetchain.com"] } }, blockExplorers: { default: { name: "Blockscout", url: "https://explorer.garnetchain.com" } } }, C0e = { id: 17e3, name: "Holesky", network: "holesky", nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18 }, rpcUrls: { default: { http: ["https://ethereum-holesky.publicnode.com"] }, public: { http: ["https://ethereum-holesky.publicnode.com"] } }, blockExplorers: { etherscan: { name: "EtherScan", url: "https://holesky.etherscan.io" }, default: { name: "EtherScan", url: "https://holesky.etherscan.io" } } }, lG = { id: 59144, network: "linea-mainnet", name: "Linea Mainnet", nativeCurrency: { name: "Linea Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { default: { http: ["https://rpc.linea.build"], webSocket: ["wss://rpc.linea.build"] }, public: { http: ["https://rpc.linea.build"], webSocket: ["wss://rpc.linea.build"] } }, blockExplorers: { default: { name: "Etherscan", url: "https://lineascan.build" }, etherscan: { name: "Etherscan", url: "https://lineascan.build" } }, testnet: !1 }, S0e = { id: 59140, network: "linea-testnet", name: "Linea Goerli Testnet", nativeCurrency: { name: "Linea Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { infura: { http: ["https://linea-goerli.infura.io/v3"], webSocket: ["wss://linea-goerli.infura.io/ws/v3"] }, default: { http: ["https://rpc.goerli.linea.build"], webSocket: ["wss://rpc.goerli.linea.build"] }, public: { http: ["https://rpc.goerli.linea.build"], webSocket: ["wss://rpc.goerli.linea.build"] } }, blockExplorers: { default: { name: "Etherscan", url: "https://goerli.lineascan.build" }, etherscan: { name: "Etherscan", url: "https://goerli.lineascan.build" } }, testnet: !0 }, k0e = { id: 42, network: "lukso", name: "LUKSO", nativeCurrency: { name: "LUKSO", symbol: "LYX", decimals: 18 }, rpcUrls: { default: { http: ["https://rpc.mainnet.lukso.network"], webSocket: ["wss://ws-rpc.mainnet.lukso.network"] } }, blockExplorers: { default: { name: "LUKSO Mainnet Explorer", url: "https://explorer.execution.mainnet.lukso.network" } } }, ho = { id: 1, network: "homestead", name: "Ethereum", nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { privy: { http: ["https://mainnet.rpc.privy.systems"] }, alchemy: { http: ["https://eth-mainnet.g.alchemy.com/v2"], webSocket: ["wss://eth-mainnet.g.alchemy.com/v2"] }, infura: { http: ["https://mainnet.infura.io/v3"], webSocket: ["wss://mainnet.infura.io/ws/v3"] }, default: { http: ["https://cloudflare-eth.com"] }, public: { http: ["https://cloudflare-eth.com"] } }, blockExplorers: { etherscan: { name: "Etherscan", url: "https://etherscan.io" }, default: { name: "Etherscan", url: "https://etherscan.io" } } }, gu = { id: 10, name: "OP Mainnet", network: "optimism", nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { privy: { http: ["https://optimism-mainnet.rpc.privy.systems"] }, alchemy: { http: ["https://opt-mainnet.g.alchemy.com/v2"], webSocket: ["wss://opt-mainnet.g.alchemy.com/v2"] }, infura: { http: ["https://optimism-mainnet.infura.io/v3"], webSocket: ["wss://optimism-mainnet.infura.io/ws/v3"] }, default: { http: ["https://mainnet.optimism.io"] }, public: { http: ["https://mainnet.optimism.io"] } }, blockExplorers: { etherscan: { name: "Etherscan", url: "https://optimistic.etherscan.io" }, default: { name: "Optimism Explorer", url: "https://explorer.optimism.io" } } }, FA = { id: 11155420, name: "Optimism Sepolia", network: "optimism-sepolia", nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { privy: { http: ["https://optimism-sepolia.rpc.privy.systems"] }, default: { http: ["https://sepolia.optimism.io"] }, public: { http: ["https://sepolia.optimism.io"] }, infura: { http: ["https://optimism-sepolia.infura.io/v3"] } }, blockExplorers: { default: { name: "Blockscout", url: "https://optimism-sepolia.blockscout.com" } }, testnet: !0 }, po = { id: 137, name: "Polygon Mainnet", network: "polygon", nativeCurrency: { name: "POL", symbol: "POL", decimals: 18 }, rpcUrls: { privy: { http: ["https://polygon-mainnet.rpc.privy.systems"] }, alchemy: { http: ["https://polygon-mainnet.g.alchemy.com/v2"], webSocket: ["wss://polygon-mainnet.g.alchemy.com/v2"] }, infura: { http: ["https://polygon-mainnet.infura.io/v3"], webSocket: ["wss://polygon-mainnet.infura.io/ws/v3"] }, default: { http: ["https://polygon-rpc.com"] }, public: { http: ["https://polygon-rpc.com"] } }, blockExplorers: { etherscan: { name: "PolygonScan", url: "https://polygonscan.com" }, default: { name: "PolygonScan", url: "https://polygonscan.com" } } }, BA = { id: 80002, name: "Polygon Amoy", network: "polygon-amoy", nativeCurrency: { name: "POL", symbol: "POL", decimals: 18 }, rpcUrls: { privy: { http: ["https://polygon-amoy.rpc.privy.systems"] }, infura: { http: ["https://polygon-amoy.infura.io/v3"], webSocket: ["wss://polygon-amoy.infura.io/ws/v3"] }, default: { http: ["https://rpc-amoy.polygon.technology"] } }, blockExplorers: { default: { name: "OK LINK", url: "https://www.oklink.com/amoy" } }, testnet: !0 }, A0e = { id: 690, name: "Redstone", network: "redstone", nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18 }, rpcUrls: { default: { http: ["https://rpc.redstonechain.com"] }, public: { http: ["https://rpc.redstonechain.com"] } }, blockExplorers: { default: { name: "Blockscout", url: "https://explorer.redstone.xyz/" } } }, zA = { id: 11155111, network: "sepolia", name: "Sepolia", nativeCurrency: { name: "Sepolia Ether", symbol: "SEP", decimals: 18 }, rpcUrls: { privy: { http: ["https://sepolia.rpc.privy.systems"] }, alchemy: { http: ["https://eth-sepolia.g.alchemy.com/v2"], webSocket: ["wss://eth-sepolia.g.alchemy.com/v2"] }, infura: { http: ["https://sepolia.infura.io/v3"], webSocket: ["wss://sepolia.infura.io/ws/v3"] }, default: { http: ["https://rpc.sepolia.org"] }, public: { http: ["https://rpc.sepolia.org"] } }, blockExplorers: { etherscan: { name: "Etherscan", url: "https://sepolia.etherscan.io" }, default: { name: "Etherscan", url: "https://sepolia.etherscan.io" } }, testnet: !0 }, cG = { id: 7777777, name: "Zora", network: "zora", nativeCurrency: { decimals: 18, name: "Ether", symbol: "ETH" }, rpcUrls: { default: { http: ["https://rpc.zora.energy"], webSocket: ["wss://rpc.zora.energy"] }, public: { http: ["https://rpc.zora.energy"], webSocket: ["wss://rpc.zora.energy"] } }, blockExplorers: { default: { name: "Explorer", url: "https://explorer.zora.energy" } } }, T0e = { id: 999999999, name: "Zora Sepolia", network: "zora-sepolia", nativeCurrency: { decimals: 18, name: "Zora Sepolia", symbol: "ETH" }, rpcUrls: { default: { http: ["https://sepolia.rpc.zora.energy"], webSocket: ["wss://sepolia.rpc.zora.energy"] }, public: { http: ["https://sepolia.rpc.zora.energy"], webSocket: ["wss://sepolia.rpc.zora.energy"] } }, blockExplorers: { default: { name: "Zora Sepolia Explorer", url: "https://sepolia.explorer.zora.energy/" } }, testnet: !0 }, $0e = { id: 999, name: "Zora Goerli Testnet", network: "zora-testnet", nativeCurrency: { decimals: 18, name: "Zora Goerli", symbol: "ETH" }, rpcUrls: { default: { http: ["https://testnet.rpc.zora.energy"], webSocket: ["wss://testnet.rpc.zora.energy"] }, public: { http: ["https://testnet.rpc.zora.energy"], webSocket: ["wss://testnet.rpc.zora.energy"] } }, blockExplorers: { default: { name: "Explorer", url: "https://testnet.explorer.zora.energy" } }, testnet: !0 }, vb = [ho, zA, C0e, Jo, DA, gu, FA, po, BA, K5, w0e, x0e, _0e, tl, UA, b0e, v0e, k0e, lG, S0e, el, LA, cG, $0e, T0e, A0e, E0e], uG = new Set(vb.map(((t) => t.id)));
20663
20663
  function WA(t) {
20664
20664
  let e = t.filter(((n) => !uG.has(n.id)));
20665
20665
  return vb.concat(e);
@@ -20809,7 +20809,7 @@ class pG extends ke {
20809
20809
  e && (r = `Block at hash "${e}"`), n && (r = `Block at number "${n}"`), super(`${r} could not be found.`, { name: "BlockNotFoundError" });
20810
20810
  }
20811
20811
  }
20812
- async function Tl(t, { blockHash: e, blockNumber: n, blockTag: r = t.experimental_blockTag ?? "latest", includeTransactions: i } = {}) {
20812
+ async function $l(t, { blockHash: e, blockNumber: n, blockTag: r = t.experimental_blockTag ?? "latest", includeTransactions: i } = {}) {
20813
20813
  const a = i ?? !1, s = n !== void 0 ? De(n) : void 0;
20814
20814
  let o = null;
20815
20815
  if (e ? o = await t.request({
@@ -20836,7 +20836,7 @@ async function mG(t, e) {
20836
20836
  try {
20837
20837
  const a = r?.fees?.maxPriorityFeePerGas ?? r?.fees?.defaultPriorityFee;
20838
20838
  if (typeof a == "function") {
20839
- const o = n || await ct(t, Tl, "getBlock")({}), c = await a({
20839
+ const o = n || await ct(t, $l, "getBlock")({}), c = await a({
20840
20840
  block: o,
20841
20841
  client: t,
20842
20842
  request: i
@@ -20853,7 +20853,7 @@ async function mG(t, e) {
20853
20853
  return $n(s);
20854
20854
  } catch {
20855
20855
  const [a, s] = await Promise.all([
20856
- n ? Promise.resolve(n) : ct(t, Tl, "getBlock")({}),
20856
+ n ? Promise.resolve(n) : ct(t, $l, "getBlock")({}),
20857
20857
  ct(t, VA, "getGasPrice")({})
20858
20858
  ]);
20859
20859
  if (typeof a.baseFeePerGas != "bigint")
@@ -20873,7 +20873,7 @@ async function oS(t, e) {
20873
20873
  }) : r?.fees?.baseFeeMultiplier ?? 1.2)();
20874
20874
  if (s < 1)
20875
20875
  throw new j0e();
20876
- const c = 10 ** (s.toString().split(".")[1]?.length ?? 0), d = (p) => p * BigInt(Math.ceil(s * c)) / BigInt(c), f = n || await ct(t, Tl, "getBlock")({});
20876
+ const c = 10 ** (s.toString().split(".")[1]?.length ?? 0), d = (p) => p * BigInt(Math.ceil(s * c)) / BigInt(c), f = n || await ct(t, $l, "getBlock")({});
20877
20877
  if (typeof r?.fees?.estimateFeesPerGas == "function") {
20878
20878
  const p = await r.fees.estimateFeesPerGas({
20879
20879
  block: n,
@@ -20920,7 +20920,7 @@ async function xm(t, e) {
20920
20920
  const { account: n = t.account, blobs: r, chain: i, gas: a, kzg: s, nonce: o, nonceManager: c, parameters: d = GA, type: f } = e, m = n && br(n), p = { ...e, ...m ? { from: m?.address } : {} };
20921
20921
  let y;
20922
20922
  async function b() {
20923
- return y || (y = await ct(t, Tl, "getBlock")({ blockTag: "latest" }), y);
20923
+ return y || (y = await ct(t, $l, "getBlock")({ blockTag: "latest" }), y);
20924
20924
  }
20925
20925
  let w;
20926
20926
  async function x() {
@@ -21101,7 +21101,7 @@ async function YA(t, { address: e, blockHash: n, fromBlock: r, toBlock: i, event
21101
21101
  }
21102
21102
  ]
21103
21103
  });
21104
- const y = p.map((b) => Ul(b));
21104
+ const y = p.map((b) => Fl(b));
21105
21105
  return f ? cA({
21106
21106
  abi: f,
21107
21107
  args: o,
@@ -21278,7 +21278,7 @@ async function Z5(t, { filter: e }) {
21278
21278
  });
21279
21279
  if (typeof r[0] == "string")
21280
21280
  return r;
21281
- const i = r.map((a) => Ul(a));
21281
+ const i = r.map((a) => Fl(a));
21282
21282
  return !("abi" in e) || !e.abi ? i : cA({
21283
21283
  abi: e.abi,
21284
21284
  logs: i,
@@ -21395,7 +21395,7 @@ function G0e(t, e) {
21395
21395
  data: L.data,
21396
21396
  topics: L.topics,
21397
21397
  strict: p
21398
- }), z = Ul(L, {
21398
+ }), z = Fl(L, {
21399
21399
  args: W,
21400
21400
  eventName: M
21401
21401
  });
@@ -21407,7 +21407,7 @@ function G0e(t, e) {
21407
21407
  return;
21408
21408
  W = M.abiItem.name, z = M.abiItem.inputs?.some((K) => !("name" in K && K.name));
21409
21409
  }
21410
- const H = Ul(L, {
21410
+ const H = Fl(L, {
21411
21411
  args: z ? [] : {},
21412
21412
  eventName: W
21413
21413
  });
@@ -22414,7 +22414,7 @@ async function Eme(t, { filter: e }) {
22414
22414
  const n = e.strict ?? !1, i = (await e.request({
22415
22415
  method: "eth_getFilterLogs",
22416
22416
  params: [e.id]
22417
- })).map((a) => Ul(a));
22417
+ })).map((a) => Fl(a));
22418
22418
  return e.abi ? cA({
22419
22419
  abi: e.abi,
22420
22420
  logs: i,
@@ -22629,7 +22629,7 @@ async function dS(t, e) {
22629
22629
  })).map((p, y) => ({
22630
22630
  ...CA(p),
22631
22631
  calls: p.calls.map((b, w) => {
22632
- const { abi: x, args: S, functionName: k, to: C } = i[y].calls[w], T = b.error?.data ?? b.returnData, I = BigInt(b.gasUsed), A = b.logs?.map((M) => Ul(M)), N = b.status === "0x1" ? "success" : "failure", U = x && N === "success" && T !== "0x" ? Oh({
22632
+ const { abi: x, args: S, functionName: k, to: C } = i[y].calls[w], T = b.error?.data ?? b.returnData, I = BigInt(b.gasUsed), A = b.logs?.map((M) => Fl(M)), N = b.status === "0x1" ? "success" : "failure", U = x && N === "success" && T !== "0x" ? Oh({
22633
22633
  abi: x,
22634
22634
  data: T,
22635
22635
  functionName: k
@@ -22729,7 +22729,7 @@ function NG(t, e = {}) {
22729
22729
  };
22730
22730
  }
22731
22731
  function J5(t, e, n) {
22732
- const { args: r = [], prepare: i = !0 } = n ?? {}, a = fde(e, { strict: !1 }), s = t.filter((d) => a ? d.type === "function" || d.type === "error" ? RG(d) === Nl(e, 0, 4) : d.type === "event" ? d0(d) === e : !1 : "name" in d && d.name === e);
22732
+ const { args: r = [], prepare: i = !0 } = n ?? {}, a = fde(e, { strict: !1 }), s = t.filter((d) => a ? d.type === "function" || d.type === "error" ? RG(d) === Rl(e, 0, 4) : d.type === "event" ? d0(d) === e : !1 : "name" in d && d.name === e);
22733
22733
  if (s.length === 0)
22734
22734
  throw new u3({ name: e });
22735
22735
  if (s.length === 1)
@@ -22790,7 +22790,7 @@ function RG(...t) {
22790
22790
  }
22791
22791
  return t[0];
22792
22792
  })();
22793
- return Nl(d0(e), 0, 4);
22793
+ return Rl(d0(e), 0, 4);
22794
22794
  }
22795
22795
  function Ime(...t) {
22796
22796
  const e = (() => {
@@ -22886,7 +22886,7 @@ function Nj(t, e, n) {
22886
22886
  function Mme(t) {
22887
22887
  return RG(t);
22888
22888
  }
22889
- const Dme = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", ul = "0x0000000000000000000000000000000000000000", Lme = "0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";
22889
+ const Dme = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", dl = "0x0000000000000000000000000000000000000000", Lme = "0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";
22890
22890
  async function Ume(t, e) {
22891
22891
  const { blockNumber: n, blockTag: r, calls: i, stateOverrides: a, traceAssetChanges: s, traceTransfers: o, validation: c } = e, d = e.account ? br(e.account) : void 0;
22892
22892
  if (s && !d)
@@ -22925,12 +22925,12 @@ async function Ume(t, e) {
22925
22925
  functionName: "balanceOf",
22926
22926
  args: [d.address],
22927
22927
  to: D,
22928
- from: ul,
22928
+ from: dl,
22929
22929
  nonce: P
22930
22930
  })),
22931
22931
  stateOverrides: [
22932
22932
  {
22933
- address: ul,
22933
+ address: dl,
22934
22934
  nonce: 0
22935
22935
  }
22936
22936
  ]
@@ -22957,12 +22957,12 @@ async function Ume(t, e) {
22957
22957
  functionName: "balanceOf",
22958
22958
  args: [d.address],
22959
22959
  to: D,
22960
- from: ul,
22960
+ from: dl,
22961
22961
  nonce: P
22962
22962
  })),
22963
22963
  stateOverrides: [
22964
22964
  {
22965
- address: ul,
22965
+ address: dl,
22966
22966
  nonce: 0
22967
22967
  }
22968
22968
  ]
@@ -22975,12 +22975,12 @@ async function Ume(t, e) {
22975
22975
  Dp("function decimals() returns (uint256)")
22976
22976
  ],
22977
22977
  functionName: "decimals",
22978
- from: ul,
22978
+ from: dl,
22979
22979
  nonce: P
22980
22980
  })),
22981
22981
  stateOverrides: [
22982
22982
  {
22983
- address: ul,
22983
+ address: dl,
22984
22984
  nonce: 0
22985
22985
  }
22986
22986
  ]
@@ -22994,12 +22994,12 @@ async function Ume(t, e) {
22994
22994
  ],
22995
22995
  functionName: "tokenURI",
22996
22996
  args: [0n],
22997
- from: ul,
22997
+ from: dl,
22998
22998
  nonce: P
22999
22999
  })),
23000
23000
  stateOverrides: [
23001
23001
  {
23002
- address: ul,
23002
+ address: dl,
23003
23003
  nonce: 0
23004
23004
  }
23005
23005
  ]
@@ -23010,12 +23010,12 @@ async function Ume(t, e) {
23010
23010
  to: D,
23011
23011
  abi: [Dp("function symbol() returns (string)")],
23012
23012
  functionName: "symbol",
23013
- from: ul,
23013
+ from: dl,
23014
23014
  nonce: P
23015
23015
  })),
23016
23016
  stateOverrides: [
23017
23017
  {
23018
- address: ul,
23018
+ address: dl,
23019
23019
  nonce: 0
23020
23020
  }
23021
23021
  ]
@@ -23055,7 +23055,7 @@ async function Ume(t, e) {
23055
23055
  }
23056
23056
  const PG = "0x6492649264926492649264926492649264926492649264926492649264926492";
23057
23057
  function Fme(t) {
23058
- if (Nl(t, -32) !== PG)
23058
+ if (Rl(t, -32) !== PG)
23059
23059
  throw new Wme(t);
23060
23060
  }
23061
23061
  function Bme(t) {
@@ -23365,7 +23365,7 @@ async function DG(t, e) {
23365
23365
  }
23366
23366
  try {
23367
23367
  p = m, b = !0;
23368
- const M = await s3(() => ct(t, Tl, "getBlock")({
23368
+ const M = await s3(() => ct(t, $l, "getBlock")({
23369
23369
  blockNumber: U,
23370
23370
  includeTransactions: !0
23371
23371
  }), {
@@ -23413,7 +23413,7 @@ function Yme(t, { blockTag: e = t.experimental_blockTag ?? "latest", emitMissed:
23413
23413
  ]);
23414
23414
  return iu(b, { onBlock: i, onError: a }, (w) => _m(async () => {
23415
23415
  try {
23416
- const x = await ct(t, Tl, "getBlock")({
23416
+ const x = await ct(t, $l, "getBlock")({
23417
23417
  blockTag: e,
23418
23418
  includeTransactions: f
23419
23419
  });
@@ -23422,7 +23422,7 @@ function Yme(t, { blockTag: e = t.experimental_blockTag ?? "latest", emitMissed:
23422
23422
  return;
23423
23423
  if (x.number - m.number > 1 && n)
23424
23424
  for (let S = m?.number + 1n; S < x.number; S++) {
23425
- const k = await ct(t, Tl, "getBlock")({
23425
+ const k = await ct(t, $l, "getBlock")({
23426
23426
  blockNumber: S,
23427
23427
  includeTransactions: f
23428
23428
  });
@@ -23445,7 +23445,7 @@ function Yme(t, { blockTag: e = t.experimental_blockTag ?? "latest", emitMissed:
23445
23445
  let b = !0, w = !0, x = () => b = !1;
23446
23446
  return (async () => {
23447
23447
  try {
23448
- r && ct(t, Tl, "getBlock")({
23448
+ r && ct(t, $l, "getBlock")({
23449
23449
  blockTag: e,
23450
23450
  includeTransactions: f
23451
23451
  }).then((C) => {
@@ -23462,7 +23462,7 @@ function Yme(t, { blockTag: e = t.experimental_blockTag ?? "latest", emitMissed:
23462
23462
  async onData(C) {
23463
23463
  if (!b)
23464
23464
  return;
23465
- const T = await ct(t, Tl, "getBlock")({
23465
+ const T = await ct(t, $l, "getBlock")({
23466
23466
  blockNumber: C.result?.number,
23467
23467
  includeTransactions: f
23468
23468
  }).catch(() => {
@@ -23575,7 +23575,7 @@ function Zme(t, { address: e, args: n, batch: r = !0, event: i, events: a, fromB
23575
23575
  data: N.data,
23576
23576
  topics: N.topics,
23577
23577
  strict: y
23578
- }), M = Ul(N, { args: L, eventName: U });
23578
+ }), M = Fl(N, { args: L, eventName: U });
23579
23579
  c([M]);
23580
23580
  } catch (U) {
23581
23581
  let L, M;
@@ -23584,7 +23584,7 @@ function Zme(t, { address: e, args: n, batch: r = !0, event: i, events: a, fromB
23584
23584
  return;
23585
23585
  L = U.abiItem.name, M = U.abiItem.inputs?.some((z) => !("name" in z && z.name));
23586
23586
  }
23587
- const W = Ul(N, {
23587
+ const W = Fl(N, {
23588
23588
  args: M ? [] : {},
23589
23589
  eventName: L
23590
23590
  });
@@ -23732,7 +23732,7 @@ function K0(t) {
23732
23732
  estimateGas: (e) => KA(t, e),
23733
23733
  getBalance: (e) => mme(t, e),
23734
23734
  getBlobBaseFee: () => gme(t),
23735
- getBlock: (e) => Tl(t, e),
23735
+ getBlock: (e) => $l(t, e),
23736
23736
  getBlockNumber: (e) => wb(t, e),
23737
23737
  getBlockTransactionCount: (e) => yme(t, e),
23738
23738
  getBytecode: (e) => uS(t, e),
@@ -25436,7 +25436,7 @@ var pt;
25436
25436
  (function(t) {
25437
25437
  t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e?.message;
25438
25438
  })(pt || (pt = {}));
25439
- class Fl {
25439
+ class Bl {
25440
25440
  constructor(e, n, r, i) {
25441
25441
  this._cachedPath = [], this.parent = e, this.data = n, this._path = r, this._key = i;
25442
25442
  }
@@ -25624,7 +25624,7 @@ class an {
25624
25624
  return this.nullable().optional();
25625
25625
  }
25626
25626
  array() {
25627
- return Rl.create(this);
25627
+ return Pl.create(this);
25628
25628
  }
25629
25629
  promise() {
25630
25630
  return w3.create(this, this._def);
@@ -25724,7 +25724,7 @@ function dye(t, e) {
25724
25724
  function fye(t, e) {
25725
25725
  return !!((e === "v4" || !e) && nye.test(t) || (e === "v6" || !e) && iye.test(t));
25726
25726
  }
25727
- class $l extends an {
25727
+ class Il extends an {
25728
25728
  _parse(e) {
25729
25729
  if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== at.string) {
25730
25730
  const a = this._getOrReturnCtx(e);
@@ -25887,7 +25887,7 @@ class $l extends an {
25887
25887
  });
25888
25888
  }
25889
25889
  _addCheck(e) {
25890
- return new $l({
25890
+ return new Il({
25891
25891
  ...this._def,
25892
25892
  checks: [...this._def.checks, e]
25893
25893
  });
@@ -26023,19 +26023,19 @@ class $l extends an {
26023
26023
  return this.min(1, pt.errToObj(e));
26024
26024
  }
26025
26025
  trim() {
26026
- return new $l({
26026
+ return new Il({
26027
26027
  ...this._def,
26028
26028
  checks: [...this._def.checks, { kind: "trim" }]
26029
26029
  });
26030
26030
  }
26031
26031
  toLowerCase() {
26032
- return new $l({
26032
+ return new Il({
26033
26033
  ...this._def,
26034
26034
  checks: [...this._def.checks, { kind: "toLowerCase" }]
26035
26035
  });
26036
26036
  }
26037
26037
  toUpperCase() {
26038
- return new $l({
26038
+ return new Il({
26039
26039
  ...this._def,
26040
26040
  checks: [...this._def.checks, { kind: "toUpperCase" }]
26041
26041
  });
@@ -26101,7 +26101,7 @@ class $l extends an {
26101
26101
  return e;
26102
26102
  }
26103
26103
  }
26104
- $l.create = (t) => new $l({
26104
+ Il.create = (t) => new Il({
26105
26105
  checks: [],
26106
26106
  typeName: At.ZodString,
26107
26107
  coerce: t?.coerce ?? !1,
@@ -26618,7 +26618,7 @@ Yj.create = (t) => new Yj({
26618
26618
  typeName: At.ZodVoid,
26619
26619
  ...zt(t)
26620
26620
  });
26621
- class Rl extends an {
26621
+ class Pl extends an {
26622
26622
  _parse(e) {
26623
26623
  const { ctx: n, status: r } = this._processInputParams(e), i = this._def;
26624
26624
  if (n.parsedType !== at.array)
@@ -26654,27 +26654,27 @@ class Rl extends an {
26654
26654
  exact: !1,
26655
26655
  message: i.maxLength.message
26656
26656
  }), r.dirty()), n.common.async)
26657
- return Promise.all([...n.data].map((s, o) => i.type._parseAsync(new Fl(n, s, n.path, o)))).then((s) => _a.mergeArray(r, s));
26658
- const a = [...n.data].map((s, o) => i.type._parseSync(new Fl(n, s, n.path, o)));
26657
+ return Promise.all([...n.data].map((s, o) => i.type._parseAsync(new Bl(n, s, n.path, o)))).then((s) => _a.mergeArray(r, s));
26658
+ const a = [...n.data].map((s, o) => i.type._parseSync(new Bl(n, s, n.path, o)));
26659
26659
  return _a.mergeArray(r, a);
26660
26660
  }
26661
26661
  get element() {
26662
26662
  return this._def.type;
26663
26663
  }
26664
26664
  min(e, n) {
26665
- return new Rl({
26665
+ return new Pl({
26666
26666
  ...this._def,
26667
26667
  minLength: { value: e, message: pt.toString(n) }
26668
26668
  });
26669
26669
  }
26670
26670
  max(e, n) {
26671
- return new Rl({
26671
+ return new Pl({
26672
26672
  ...this._def,
26673
26673
  maxLength: { value: e, message: pt.toString(n) }
26674
26674
  });
26675
26675
  }
26676
26676
  length(e, n) {
26677
- return new Rl({
26677
+ return new Pl({
26678
26678
  ...this._def,
26679
26679
  exactLength: { value: e, message: pt.toString(n) }
26680
26680
  });
@@ -26683,7 +26683,7 @@ class Rl extends an {
26683
26683
  return this.min(1, e);
26684
26684
  }
26685
26685
  }
26686
- Rl.create = (t, e) => new Rl({
26686
+ Pl.create = (t, e) => new Pl({
26687
26687
  type: t,
26688
26688
  minLength: null,
26689
26689
  maxLength: null,
@@ -26702,7 +26702,7 @@ function i0(t) {
26702
26702
  ...t._def,
26703
26703
  shape: () => e
26704
26704
  });
26705
- } else return t instanceof Rl ? new Rl({
26705
+ } else return t instanceof Pl ? new Pl({
26706
26706
  ...t._def,
26707
26707
  type: i0(t.element)
26708
26708
  }) : t instanceof Qc ? Qc.create(i0(t.unwrap())) : t instanceof mh ? mh.create(i0(t.unwrap())) : t instanceof fh ? fh.create(t.items.map((e) => i0(e))) : t;
@@ -26735,7 +26735,7 @@ class Zr extends an {
26735
26735
  const f = a[d], m = i.data[d];
26736
26736
  c.push({
26737
26737
  key: { status: "valid", value: d },
26738
- value: f._parse(new Fl(i, m, i.path, d)),
26738
+ value: f._parse(new Bl(i, m, i.path, d)),
26739
26739
  alwaysSet: d in i.data
26740
26740
  });
26741
26741
  }
@@ -26760,7 +26760,7 @@ class Zr extends an {
26760
26760
  c.push({
26761
26761
  key: { status: "valid", value: f },
26762
26762
  value: d._parse(
26763
- new Fl(i, m, i.path, f)
26763
+ new Bl(i, m, i.path, f)
26764
26764
  //, ctx.child(key), value, getParsedType(value)
26765
26765
  ),
26766
26766
  alwaysSet: f in i.data
@@ -27220,7 +27220,7 @@ class fh extends an {
27220
27220
  }), n.dirty());
27221
27221
  const a = [...r.data].map((s, o) => {
27222
27222
  const c = this._def.items[o] || this._def.rest;
27223
- return c ? c._parse(new Fl(r, s, r.path, o)) : null;
27223
+ return c ? c._parse(new Bl(r, s, r.path, o)) : null;
27224
27224
  }).filter((s) => !!s);
27225
27225
  return r.common.async ? Promise.all(a).then((s) => _a.mergeArray(n, s)) : _a.mergeArray(n, a);
27226
27226
  }
@@ -27262,8 +27262,8 @@ class b3 extends an {
27262
27262
  const i = [], a = this._def.keyType, s = this._def.valueType;
27263
27263
  for (const o in r.data)
27264
27264
  i.push({
27265
- key: a._parse(new Fl(r, o, r.path, o)),
27266
- value: s._parse(new Fl(r, r.data[o], r.path, o)),
27265
+ key: a._parse(new Bl(r, o, r.path, o)),
27266
+ value: s._parse(new Bl(r, r.data[o], r.path, o)),
27267
27267
  alwaysSet: o in r.data
27268
27268
  });
27269
27269
  return r.common.async ? _a.mergeObjectAsync(n, i) : _a.mergeObjectSync(n, i);
@@ -27278,7 +27278,7 @@ class b3 extends an {
27278
27278
  typeName: At.ZodRecord,
27279
27279
  ...zt(r)
27280
27280
  }) : new b3({
27281
- keyType: $l.create(),
27281
+ keyType: Il.create(),
27282
27282
  valueType: e,
27283
27283
  typeName: At.ZodRecord,
27284
27284
  ...zt(n)
@@ -27301,8 +27301,8 @@ class Zj extends an {
27301
27301
  received: r.parsedType
27302
27302
  }), kt;
27303
27303
  const i = this._def.keyType, a = this._def.valueType, s = [...r.data.entries()].map(([o, c], d) => ({
27304
- key: i._parse(new Fl(r, o, r.path, [d, "key"])),
27305
- value: a._parse(new Fl(r, c, r.path, [d, "value"]))
27304
+ key: i._parse(new Bl(r, o, r.path, [d, "key"])),
27305
+ value: a._parse(new Bl(r, c, r.path, [d, "value"]))
27306
27306
  }));
27307
27307
  if (r.common.async) {
27308
27308
  const o = /* @__PURE__ */ new Map();
@@ -27368,7 +27368,7 @@ class b1 extends an {
27368
27368
  }
27369
27369
  return { status: n.value, value: d };
27370
27370
  }
27371
- const o = [...r.data.values()].map((c, d) => a._parse(new Fl(r, c, r.path, d)));
27371
+ const o = [...r.data.values()].map((c, d) => a._parse(new Bl(r, c, r.path, d)));
27372
27372
  return r.common.async ? Promise.all(o).then((c) => s(c)) : s(o);
27373
27373
  }
27374
27374
  min(e, n) {
@@ -27817,11 +27817,11 @@ var At;
27817
27817
  (function(t) {
27818
27818
  t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline", t.ZodReadonly = "ZodReadonly";
27819
27819
  })(At || (At = {}));
27820
- const er = $l.create, Js = uh.create;
27820
+ const er = Il.create, Js = uh.create;
27821
27821
  dh.create;
27822
27822
  const JG = m3.create, pye = Z0.create, Q0 = vS.create;
27823
27823
  Od.create;
27824
- const t6 = Rl.create, ki = Zr.create, eK = g3.create, mye = rT.create;
27824
+ const t6 = Pl.create, ki = Zr.create, eK = g3.create, mye = rT.create;
27825
27825
  y3.create;
27826
27826
  fh.create;
27827
27827
  const Gf = b3.create, gye = v3.create, Zl = hh.create;
@@ -27829,7 +27829,7 @@ w3.create;
27829
27829
  Qc.create;
27830
27830
  mh.create;
27831
27831
  const yye = {
27832
- string: ((t) => $l.create({ ...t, coerce: !0 })),
27832
+ string: ((t) => Il.create({ ...t, coerce: !0 })),
27833
27833
  number: ((t) => uh.create({ ...t, coerce: !0 })),
27834
27834
  boolean: ((t) => m3.create({
27835
27835
  ...t,
@@ -28491,7 +28491,7 @@ Resources:
28491
28491
  }
28492
28492
  };
28493
28493
  const zye = { prod: { url: "https://api.moonpay.com/v1", key: "pk_live_hirbpu0cVcLHrjktC9l7fbc9ctjv0SL" }, sandbox: { url: "https://api.moonpay.com/v1", key: "pk_test_fqWjXZMSFwloh7orvJsRfjiUHXJqFzI" } };
28494
- let Wye = /* @__PURE__ */ new Set([ho.id, Xo.id, el.id, po.id, Jo.id, K5.id]), qye = /* @__PURE__ */ new Set([ho.id, Xo.id, gu.id, el.id, po.id, Jo.id]);
28494
+ let Wye = /* @__PURE__ */ new Set([ho.id, Jo.id, tl.id, po.id, el.id, K5.id]), qye = /* @__PURE__ */ new Set([ho.id, Jo.id, gu.id, tl.id, po.id, el.id]);
28495
28495
  function Hye(t, e) {
28496
28496
  switch (e) {
28497
28497
  case "native-currency":
@@ -28504,11 +28504,11 @@ function Hye(t, e) {
28504
28504
  }
28505
28505
  function Vye(t, e) {
28506
28506
  switch (t) {
28507
- case Xo.id:
28508
- return e === "native-currency" ? "ETH_ARBITRUM" : "USDC_ARBITRUM";
28509
28507
  case Jo.id:
28510
- return e === "native-currency" ? "AVAX_CCHAIN" : "USDC_CCHAIN";
28508
+ return e === "native-currency" ? "ETH_ARBITRUM" : "USDC_ARBITRUM";
28511
28509
  case el.id:
28510
+ return e === "native-currency" ? "AVAX_CCHAIN" : "USDC_CCHAIN";
28511
+ case tl.id:
28512
28512
  return e === "native-currency" ? "ETH_BASE" : "USDC_BASE";
28513
28513
  case K5.id:
28514
28514
  return "CELO_CELO";
@@ -31810,9 +31810,9 @@ const Mw = (t, e) => Twe(String(t), e), M_ = (t, e) => `+${fT(e)} ${t}`, Owe = (
31810
31810
  e.input(t);
31811
31811
  let n = e.getCountry() || "US", r = e.getCallingCode() || "1";
31812
31812
  return { countryCode: n, phone: t.replace("+" + r, "") };
31813
- }, Mwe = (t, e = !0) => t.reduce(((n, r) => ({ ...n, [r]: e })), {}), Dwe = { [ho.id]: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", [zA.id]: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238", [gu.id]: "0x0b2c639c533813f4aa9d7837caf62653d097ff85", [FA.id]: "0x5fd84259d66Cd46123540766Be93DFE6D43130D7", [po.id]: "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359", [BA.id]: "0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582", [el.id]: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", [UA.id]: "0x036CbD53842c5426634e7929541eC2318f3dCF7e", [Jo.id]: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", [LA.id]: "0x5425890298aed601595a70ab815c96711a31bc65", [Xo.id]: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831", [DA.id]: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d" };
31814
- let Lwe = /* @__PURE__ */ new Set([ho.id, el.id, gu.id, po.id, Xo.id, Jo.id]), Uwe = /* @__PURE__ */ new Set([ho.id, el.id, po.id, gu.id, Xo.id, Jo.id]), Fwe = { buy: "CARD", send: "CRYPTO_ACCOUNT" }, Bwe = { USDC: "2b92315d-eab7-5bef-84fa-089a131333f5", ETH: "d85dce9b-5b73-5c3c-8978-522ce1d1c1b4", BTC: "5b71fc48-3dd3-540c-809b-f8c94d0e68b5", SOL: "4f039497-3af8-5bb3-951c-6df9afa9be1c", POL: "026bcc1e-9163-591c-a709-34dd18b2e7a1" };
31815
- ho.id + "", el.id + "", gu.id + "", po.id + "", Xo.id + "", Jo.id + "";
31813
+ }, Mwe = (t, e = !0) => t.reduce(((n, r) => ({ ...n, [r]: e })), {}), Dwe = { [ho.id]: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", [zA.id]: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238", [gu.id]: "0x0b2c639c533813f4aa9d7837caf62653d097ff85", [FA.id]: "0x5fd84259d66Cd46123540766Be93DFE6D43130D7", [po.id]: "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359", [BA.id]: "0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582", [tl.id]: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", [UA.id]: "0x036CbD53842c5426634e7929541eC2318f3dCF7e", [el.id]: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", [LA.id]: "0x5425890298aed601595a70ab815c96711a31bc65", [Jo.id]: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831", [DA.id]: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d" };
31814
+ let Lwe = /* @__PURE__ */ new Set([ho.id, tl.id, gu.id, po.id, Jo.id, el.id]), Uwe = /* @__PURE__ */ new Set([ho.id, tl.id, po.id, gu.id, Jo.id, el.id]), Fwe = { buy: "CARD", send: "CRYPTO_ACCOUNT" }, Bwe = { USDC: "2b92315d-eab7-5bef-84fa-089a131333f5", ETH: "d85dce9b-5b73-5c3c-8978-522ce1d1c1b4", BTC: "5b71fc48-3dd3-540c-809b-f8c94d0e68b5", SOL: "4f039497-3af8-5bb3-951c-6df9afa9be1c", POL: "026bcc1e-9163-591c-a709-34dd18b2e7a1" };
31815
+ ho.id + "", tl.id + "", gu.id + "", po.id + "", Jo.id + "", el.id + "";
31816
31816
  function zwe({ appId: t, input: e, amount: n, blockchain: r, asset: i, experience: a }) {
31817
31817
  let s = new URL("https://pay.coinbase.com/buy/select-asset");
31818
31818
  return s.searchParams.set("appId", e.app_id), s.searchParams.set("sessionToken", e.session_token), s.searchParams.set("endPartnerName", `privy:${t}`), s.searchParams.set("defaultExperience", a), s.searchParams.set("presetCryptoAmount", n.startsWith(".") ? `0${n}` : n), s.searchParams.set("defaultNetwork", r), s.searchParams.set("defaultPaymentMethod", Fwe[a]), s.searchParams.set("defaultAsset", Bwe[i]), s.searchParams.set("partnerUserId", e.partner_user_id), { url: s };
@@ -41262,7 +41262,7 @@ function Ei(t, e) {
41262
41262
  function em(t, e, n) {
41263
41263
  return t.slice(e, n);
41264
41264
  }
41265
- function Cl(t) {
41265
+ function Sl(t) {
41266
41266
  return t.length;
41267
41267
  }
41268
41268
  function nY(t) {
@@ -41348,7 +41348,7 @@ function FS(t) {
41348
41348
  return 0;
41349
41349
  }
41350
41350
  function o6e(t) {
41351
- return p6 = tm = 1, rY = Cl(Em = t), ao = 0, [];
41351
+ return p6 = tm = 1, rY = Sl(Em = t), ao = 0, [];
41352
41352
  }
41353
41353
  function l6e(t) {
41354
41354
  return Em = "", t;
@@ -41441,7 +41441,7 @@ function I2(t, e, n, r, i, a, s, o, c) {
41441
41441
  break;
41442
41442
  // {
41443
41443
  case 123 * w:
41444
- o[d++] = Cl(N) * S;
41444
+ o[d++] = Sl(N) * S;
41445
41445
  // } ; \0
41446
41446
  case 125 * w:
41447
41447
  case 59:
@@ -41453,7 +41453,7 @@ function I2(t, e, n, r, i, a, s, o, c) {
41453
41453
  x = 0;
41454
41454
  // ;
41455
41455
  case 59 + f:
41456
- S == -1 && (N = Vt(N, /\f/g, "")), y > 0 && Cl(N) - m && gy(y > 32 ? QM(N + ";", r, n, m - 1, c) : QM(Vt(N, " ", "") + ";", r, n, m - 2, c), c);
41456
+ S == -1 && (N = Vt(N, /\f/g, "")), y > 0 && Sl(N) - m && gy(y > 32 ? QM(N + ";", r, n, m - 1, c) : QM(Vt(N, " ", "") + ";", r, n, m - 2, c), c);
41457
41457
  break;
41458
41458
  // @ ;
41459
41459
  case 59:
@@ -41480,7 +41480,7 @@ function I2(t, e, n, r, i, a, s, o, c) {
41480
41480
  break;
41481
41481
  // :
41482
41482
  case 58:
41483
- m = 1 + Cl(N), y = b;
41483
+ m = 1 + Sl(N), y = b;
41484
41484
  default:
41485
41485
  if (w < 1) {
41486
41486
  if (k == 123)
@@ -41495,15 +41495,15 @@ function I2(t, e, n, r, i, a, s, o, c) {
41495
41495
  break;
41496
41496
  // ,
41497
41497
  case 44:
41498
- o[d++] = (Cl(N) - 1) * S, S = 1;
41498
+ o[d++] = (Sl(N) - 1) * S, S = 1;
41499
41499
  break;
41500
41500
  // @
41501
41501
  case 64:
41502
- Yf() === 45 && (N += W_(Mo())), p = Yf(), f = m = Cl(C = N += f6e($2())), k++;
41502
+ Yf() === 45 && (N += W_(Mo())), p = Yf(), f = m = Sl(C = N += f6e($2())), k++;
41503
41503
  break;
41504
41504
  // -
41505
41505
  case 45:
41506
- b === 45 && Cl(N) == 2 && (w = 0);
41506
+ b === 45 && Sl(N) == 2 && (w = 0);
41507
41507
  }
41508
41508
  }
41509
41509
  return a;
@@ -41656,7 +41656,7 @@ function iY(t, e, n) {
41656
41656
  case 5789:
41657
41657
  case 5021:
41658
41658
  case 4765:
41659
- if (Cl(t) - 1 - e > 6)
41659
+ if (Sl(t) - 1 - e > 6)
41660
41660
  switch (Ei(t, e + 1)) {
41661
41661
  // (m)ax-content, (m)in-content
41662
41662
  case 109:
@@ -41719,9 +41719,9 @@ function m6e(t, e, n, r) {
41719
41719
  case JK:
41720
41720
  return t.return = t.value + "{" + N3(t.children, r) + "}";
41721
41721
  case h6:
41722
- if (!Cl(t.value = t.props.join(","))) return "";
41722
+ if (!Sl(t.value = t.props.join(","))) return "";
41723
41723
  }
41724
- return Cl(n = N3(t.children, r)) ? t.return = t.value + "{" + n + "}" : "";
41724
+ return Sl(n = N3(t.children, r)) ? t.return = t.value + "{" + n + "}" : "";
41725
41725
  }
41726
41726
  function g6e(t) {
41727
41727
  var e = nY(t);
@@ -44524,24 +44524,24 @@ function $Y() {
44524
44524
  return !isNaN(e) && e >= 1 && e <= 40;
44525
44525
  }), sE;
44526
44526
  }
44527
- var dl = {}, TD;
44527
+ var fl = {}, TD;
44528
44528
  function IY() {
44529
- if (TD) return dl;
44529
+ if (TD) return fl;
44530
44530
  TD = 1;
44531
44531
  const t = "[0-9]+", e = "[A-Z $%*+\\-./:]+";
44532
44532
  let n = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
44533
44533
  n = n.replace(/u/g, "\\u");
44534
44534
  const r = "(?:(?![A-Z0-9 $%*+\\-./:]|" + n + `)(?:.|[\r
44535
44535
  ]))+`;
44536
- dl.KANJI = new RegExp(n, "g"), dl.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g"), dl.BYTE = new RegExp(r, "g"), dl.NUMERIC = new RegExp(t, "g"), dl.ALPHANUMERIC = new RegExp(e, "g");
44536
+ fl.KANJI = new RegExp(n, "g"), fl.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g"), fl.BYTE = new RegExp(r, "g"), fl.NUMERIC = new RegExp(t, "g"), fl.ALPHANUMERIC = new RegExp(e, "g");
44537
44537
  const i = new RegExp("^" + n + "$"), a = new RegExp("^" + t + "$"), s = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
44538
- return dl.testKanji = function(c) {
44538
+ return fl.testKanji = function(c) {
44539
44539
  return i.test(c);
44540
- }, dl.testNumeric = function(c) {
44540
+ }, fl.testNumeric = function(c) {
44541
44541
  return a.test(c);
44542
- }, dl.testAlphanumeric = function(c) {
44542
+ }, fl.testAlphanumeric = function(c) {
44543
44543
  return s.test(c);
44544
- }, dl;
44544
+ }, fl;
44545
44545
  }
44546
44546
  var $D;
44547
44547
  function Dh() {
@@ -48363,7 +48363,7 @@ function cCe(t, e, n) {
48363
48363
  for (; e > Si; ) e & Lr && (r = r * t % n), t = t * t % n, e >>= Lr;
48364
48364
  return r;
48365
48365
  }
48366
- function fl(t, e, n) {
48366
+ function hl(t, e, n) {
48367
48367
  let r = t;
48368
48368
  for (; e-- > Si; ) r *= r, r %= n;
48369
48369
  return r;
@@ -48761,8 +48761,8 @@ const kCe = BigInt(1), EL = BigInt(2);
48761
48761
  BigInt(3);
48762
48762
  const ACe = BigInt(5), TCe = BigInt(8);
48763
48763
  function $Ce(t) {
48764
- const e = BigInt(10), n = BigInt(20), r = BigInt(40), i = BigInt(80), a = WT, s = t * t % a * t % a, o = fl(s, EL, a) * s % a, c = fl(o, kCe, a) * t % a, d = fl(c, ACe, a) * c % a, f = fl(d, e, a) * d % a, m = fl(f, n, a) * f % a, p = fl(m, r, a) * m % a, y = fl(p, i, a) * p % a, b = fl(y, i, a) * p % a, w = fl(b, e, a) * d % a;
48765
- return { pow_p_5_8: fl(w, EL, a) * t % a, b2: s };
48764
+ const e = BigInt(10), n = BigInt(20), r = BigInt(40), i = BigInt(80), a = WT, s = t * t % a * t % a, o = hl(s, EL, a) * s % a, c = hl(o, kCe, a) * t % a, d = hl(c, ACe, a) * c % a, f = hl(d, e, a) * d % a, m = hl(f, n, a) * f % a, p = hl(m, r, a) * m % a, y = hl(p, i, a) * p % a, b = hl(y, i, a) * p % a, w = hl(b, e, a) * d % a;
48765
+ return { pow_p_5_8: hl(w, EL, a) * t % a, b2: s };
48766
48766
  }
48767
48767
  function ICe(t) {
48768
48768
  return t[0] &= 248, t[31] &= 127, t[31] |= 64, t;
@@ -50843,7 +50843,7 @@ function Cf(t = Ge.FIVE_MINUTES, e) {
50843
50843
  }, n), r = o, i = c;
50844
50844
  }) };
50845
50845
  }
50846
- function Il(t, e, n) {
50846
+ function Ol(t, e, n) {
50847
50847
  return new Promise(async (r, i) => {
50848
50848
  const a = setTimeout(() => i(new Error(n)), e);
50849
50849
  try {
@@ -50882,13 +50882,13 @@ function qZ(t) {
50882
50882
  function Kr(t, e) {
50883
50883
  return Ge.fromMiliseconds(Date.now() + Ge.toMiliseconds(t));
50884
50884
  }
50885
- function Sl(t) {
50885
+ function kl(t) {
50886
50886
  return Date.now() >= Ge.toMiliseconds(t);
50887
50887
  }
50888
50888
  function Tn(t, e) {
50889
50889
  return `${t}${e ? `:${e}` : ""}`;
50890
50890
  }
50891
- function Pl(t = [], e = []) {
50891
+ function jl(t = [], e = []) {
50892
50892
  return [.../* @__PURE__ */ new Set([...t, ...e])];
50893
50893
  }
50894
50894
  async function ike({ id: t, topic: e, wcDeepLink: n }) {
@@ -51035,7 +51035,7 @@ function so(...t) {
51035
51035
  function FE(t) {
51036
51036
  return new DataView(t.buffer, t.byteOffset, t.byteLength);
51037
51037
  }
51038
- function hl(t, e) {
51038
+ function pl(t, e) {
51039
51039
  return t << 32 - e | t >>> e;
51040
51040
  }
51041
51041
  const KZ = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
@@ -51272,12 +51272,12 @@ let Bke = class extends rQ {
51272
51272
  process(e, n) {
51273
51273
  for (let m = 0; m < 16; m++, n += 4) nd[m] = e.getUint32(n, !1);
51274
51274
  for (let m = 16; m < 64; m++) {
51275
- const p = nd[m - 15], y = nd[m - 2], b = hl(p, 7) ^ hl(p, 18) ^ p >>> 3, w = hl(y, 17) ^ hl(y, 19) ^ y >>> 10;
51275
+ const p = nd[m - 15], y = nd[m - 2], b = pl(p, 7) ^ pl(p, 18) ^ p >>> 3, w = pl(y, 17) ^ pl(y, 19) ^ y >>> 10;
51276
51276
  nd[m] = w + nd[m - 7] + b + nd[m - 16] | 0;
51277
51277
  }
51278
51278
  let { A: r, B: i, C: a, D: s, E: o, F: c, G: d, H: f } = this;
51279
51279
  for (let m = 0; m < 64; m++) {
51280
- const p = hl(o, 6) ^ hl(o, 11) ^ hl(o, 25), y = f + p + Lke(o, c, d) + Fke[m] + nd[m] | 0, b = (hl(r, 2) ^ hl(r, 13) ^ hl(r, 22)) + Uke(r, i, a) | 0;
51280
+ const p = pl(o, 6) ^ pl(o, 11) ^ pl(o, 25), y = f + p + Lke(o, c, d) + Fke[m] + nd[m] | 0, b = (pl(r, 2) ^ pl(r, 13) ^ pl(r, 22)) + Uke(r, i, a) | 0;
51281
51281
  f = d, d = c, c = o, o = s + y | 0, s = a, a = i, i = r, r = y + b | 0;
51282
51282
  }
51283
51283
  r = r + this.A | 0, i = i + this.B | 0, a = a + this.C | 0, s = s + this.D | 0, o = o + this.E | 0, c = c + this.F | 0, d = d + this.G | 0, f = f + this.H | 0, this.set(r, i, a, s, o, c, d, f);
@@ -53206,10 +53206,10 @@ function m0(t) {
53206
53206
  function PU(t) {
53207
53207
  var e, n, r;
53208
53208
  const i = {};
53209
- if (!jl(t)) return i;
53209
+ if (!Ml(t)) return i;
53210
53210
  for (const [a, s] of Object.entries(t)) {
53211
53211
  const o = j6(a) ? [a] : s.chains, c = s.methods || [], d = s.events || [], f = m0(a);
53212
- i[f] = p$e(h$e({}, i[f]), { chains: Pl(o, (e = i[f]) == null ? void 0 : e.chains), methods: Pl(c, (n = i[f]) == null ? void 0 : n.methods), events: Pl(d, (r = i[f]) == null ? void 0 : r.events) });
53212
+ i[f] = p$e(h$e({}, i[f]), { chains: jl(o, (e = i[f]) == null ? void 0 : e.chains), methods: jl(c, (n = i[f]) == null ? void 0 : n.methods), events: jl(d, (r = i[f]) == null ? void 0 : r.events) });
53213
53213
  }
53214
53214
  return i;
53215
53215
  }
@@ -53224,13 +53224,13 @@ function b$e(t) {
53224
53224
  function jU(t, e) {
53225
53225
  e = e.map((r) => r.replace("did:pkh:", ""));
53226
53226
  const n = b$e(e);
53227
- for (const [r, i] of Object.entries(n)) i.methods ? i.methods = Pl(i.methods, t) : i.methods = t, i.events = ["chainChanged", "accountsChanged"];
53227
+ for (const [r, i] of Object.entries(n)) i.methods ? i.methods = jl(i.methods, t) : i.methods = t, i.events = ["chainChanged", "accountsChanged"];
53228
53228
  return n;
53229
53229
  }
53230
53230
  function v$e(t, e) {
53231
53231
  var n, r, i, a, s, o;
53232
53232
  const c = PU(t), d = PU(e), f = {}, m = Object.keys(c).concat(Object.keys(d));
53233
- for (const p of m) f[p] = { chains: Pl((n = c[p]) == null ? void 0 : n.chains, (r = d[p]) == null ? void 0 : r.chains), methods: Pl((i = c[p]) == null ? void 0 : i.methods, (a = d[p]) == null ? void 0 : a.methods), events: Pl((s = c[p]) == null ? void 0 : s.events, (o = d[p]) == null ? void 0 : o.events) };
53233
+ for (const p of m) f[p] = { chains: jl((n = c[p]) == null ? void 0 : n.chains, (r = d[p]) == null ? void 0 : r.chains), methods: jl((i = c[p]) == null ? void 0 : i.methods, (a = d[p]) == null ? void 0 : a.methods), events: jl((s = c[p]) == null ? void 0 : s.events, (o = d[p]) == null ? void 0 : o.events) };
53234
53234
  return f;
53235
53235
  }
53236
53236
  const w$e = { INVALID_METHOD: { message: "Invalid method.", code: 1001 }, INVALID_EVENT: { message: "Invalid event.", code: 1002 }, INVALID_UPDATE_REQUEST: { message: "Invalid update request.", code: 1003 }, INVALID_EXTEND_REQUEST: { message: "Invalid extend request.", code: 1004 }, INVALID_SESSION_SETTLE_REQUEST: { message: "Invalid session settle request.", code: 1005 }, UNAUTHORIZED_METHOD: { message: "Unauthorized method.", code: 3001 }, UNAUTHORIZED_EVENT: { message: "Unauthorized event.", code: 3002 }, UNAUTHORIZED_UPDATE_REQUEST: { message: "Unauthorized update request.", code: 3003 }, UNAUTHORIZED_EXTEND_REQUEST: { message: "Unauthorized extend request.", code: 3004 }, USER_REJECTED: { message: "User rejected.", code: 5e3 }, USER_REJECTED_CHAINS: { message: "User rejected chains.", code: 5001 }, USER_REJECTED_METHODS: { message: "User rejected methods.", code: 5002 }, USER_REJECTED_EVENTS: { message: "User rejected events.", code: 5003 }, UNSUPPORTED_CHAINS: { message: "Unsupported chains.", code: 5100 }, UNSUPPORTED_METHODS: { message: "Unsupported methods.", code: 5101 }, UNSUPPORTED_EVENTS: { message: "Unsupported events.", code: 5102 }, UNSUPPORTED_ACCOUNTS: { message: "Unsupported accounts.", code: 5103 }, UNSUPPORTED_NAMESPACE_KEY: { message: "Unsupported namespace key.", code: 5104 }, USER_DISCONNECTED: { message: "User disconnected.", code: 6e3 }, SESSION_SETTLEMENT_FAILED: { message: "Session settlement failed.", code: 7e3 }, WC_METHOD_UNSUPPORTED: { message: "Unsupported wc_ method.", code: 10001 } }, x$e = { NOT_INITIALIZED: { message: "Not initialized.", code: 1 }, NO_MATCHING_KEY: { message: "No matching key.", code: 2 }, RESTORE_WILL_OVERRIDE: { message: "Restore will override.", code: 3 }, RESUBSCRIBED: { message: "Resubscribed.", code: 4 }, MISSING_OR_INVALID: { message: "Missing or invalid.", code: 5 }, EXPIRED: { message: "Expired.", code: 6 }, UNKNOWN_TYPE: { message: "Unknown type.", code: 7 }, MISMATCHED_TOPIC: { message: "Mismatched topic.", code: 8 }, NON_CONFORMING_NAMESPACES: { message: "Non conforming namespaces.", code: 9 } };
@@ -53245,7 +53245,7 @@ function cr(t, e) {
53245
53245
  function to(t, e) {
53246
53246
  return !!Array.isArray(t);
53247
53247
  }
53248
- function jl(t) {
53248
+ function Ml(t) {
53249
53249
  return Object.getPrototypeOf(t) === Object.prototype && Object.keys(t).length;
53250
53250
  }
53251
53251
  function di(t) {
@@ -53353,7 +53353,7 @@ function zQ(t, e) {
53353
53353
  }
53354
53354
  function R$e(t, e, n) {
53355
53355
  let r = null;
53356
- if (t && jl(t)) {
53356
+ if (t && Ml(t)) {
53357
53357
  const i = zQ(t, e);
53358
53358
  i && (r = i);
53359
53359
  const a = $$e(t, e, n);
@@ -53363,7 +53363,7 @@ function R$e(t, e, n) {
53363
53363
  }
53364
53364
  function QE(t, e) {
53365
53365
  let n = null;
53366
- if (t && jl(t)) {
53366
+ if (t && Ml(t)) {
53367
53367
  const r = zQ(t, e);
53368
53368
  r && (n = r);
53369
53369
  const i = O$e(t, e);
@@ -54261,7 +54261,7 @@ function uOe() {
54261
54261
  if (YU) return Ac;
54262
54262
  YU = 1, Object.defineProperty(Ac, "__esModule", { value: !0 }), Ac.isBrowserCryptoAvailable = Ac.getSubtleCrypto = Ac.getBrowerCrypto = void 0;
54263
54263
  function t() {
54264
- return El?.crypto || El?.msCrypto || {};
54264
+ return Cl?.crypto || Cl?.msCrypto || {};
54265
54265
  }
54266
54266
  Ac.getBrowerCrypto = t;
54267
54267
  function e() {
@@ -54300,16 +54300,16 @@ function fOe() {
54300
54300
  })(tC)), tC;
54301
54301
  }
54302
54302
  var hOe = fOe();
54303
- function xl(t = 3) {
54303
+ function _l(t = 3) {
54304
54304
  const e = Date.now() * Math.pow(10, t), n = Math.floor(Math.random() * Math.pow(10, t));
54305
54305
  return e + n;
54306
54306
  }
54307
54307
  function xd(t = 6) {
54308
- return BigInt(xl(t));
54308
+ return BigInt(_l(t));
54309
54309
  }
54310
54310
  function Io(t, e, n) {
54311
54311
  return {
54312
- id: n || xl(),
54312
+ id: n || _l(),
54313
54313
  jsonrpc: "2.0",
54314
54314
  method: t,
54315
54315
  params: e
@@ -54368,9 +54368,9 @@ function o$(t) {
54368
54368
  return ZQ(t) && "method" in t;
54369
54369
  }
54370
54370
  function D6(t) {
54371
- return ZQ(t) && (_l(t) || Ys(t));
54371
+ return ZQ(t) && (El(t) || Ys(t));
54372
54372
  }
54373
- function _l(t) {
54373
+ function El(t) {
54374
54374
  return "result" in t;
54375
54375
  }
54376
54376
  function Ys(t) {
@@ -54534,7 +54534,7 @@ let SOe = class {
54534
54534
  return this.events.emit("register_error", n), n;
54535
54535
  }
54536
54536
  };
54537
- const QQ = "wc", XQ = 2, x7 = "core", Bl = `${QQ}@2:${x7}:`, kOe = { logger: "error" }, AOe = { database: ":memory:" }, TOe = "crypto", nF = "client_ed25519_seed", $Oe = Ge.ONE_DAY, IOe = "keychain", OOe = "0.3", NOe = "messages", ROe = "0.3", POe = Ge.SIX_HOURS, jOe = "publisher", JQ = "irn", MOe = "error", eX = "wss://relay.walletconnect.org", DOe = "relayer", Mr = { message: "relayer_message", message_ack: "relayer_message_ack", connect: "relayer_connect", disconnect: "relayer_disconnect", error: "relayer_error", connection_stalled: "relayer_connection_stalled", transport_closed: "relayer_transport_closed", publish: "relayer_publish" }, LOe = "_subscription", Fs = { payload: "payload", connect: "connect", disconnect: "disconnect", error: "error" }, UOe = 0.1, _7 = "2.22.4", lr = { link_mode: "link_mode", relay: "relay" }, U2 = { inbound: "inbound", outbound: "outbound" }, FOe = "0.3", BOe = "WALLETCONNECT_CLIENT_ID", rF = "WALLETCONNECT_LINK_MODE_APPS", ps = { created: "subscription_created", deleted: "subscription_deleted", expired: "subscription_expired", disabled: "subscription_disabled", sync: "subscription_sync", resubscribed: "subscription_resubscribed" }, zOe = "subscription", WOe = "0.3", qOe = "pairing", HOe = "0.3", qg = { wc_pairingDelete: { req: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1e3 }, res: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1001 } }, wc_pairingPing: { req: { ttl: Ge.THIRTY_SECONDS, prompt: !1, tag: 1002 }, res: { ttl: Ge.THIRTY_SECONDS, prompt: !1, tag: 1003 } }, unregistered_method: { req: { ttl: Ge.ONE_DAY, prompt: !1, tag: 0 }, res: { ttl: Ge.ONE_DAY, prompt: !1, tag: 0 } } }, Tf = { create: "pairing_create", expire: "pairing_expire", delete: "pairing_delete", ping: "pairing_ping" }, _o = { created: "history_created", updated: "history_updated", deleted: "history_deleted", sync: "history_sync" }, VOe = "history", GOe = "0.3", KOe = "expirer", Vs = { created: "expirer_created", deleted: "expirer_deleted", expired: "expirer_expired", sync: "expirer_sync" }, YOe = "0.3", ZOe = "verify-api", QOe = "https://verify.walletconnect.com", tX = "https://verify.walletconnect.org", Ry = tX, XOe = `${Ry}/v3`, JOe = [QOe, tX], eNe = "echo", tNe = "https://echo.walletconnect.com", vl = { pairing_started: "pairing_started", pairing_uri_validation_success: "pairing_uri_validation_success", pairing_uri_not_expired: "pairing_uri_not_expired", store_new_pairing: "store_new_pairing", subscribing_pairing_topic: "subscribing_pairing_topic", subscribe_pairing_topic_success: "subscribe_pairing_topic_success", existing_pairing: "existing_pairing", pairing_not_expired: "pairing_not_expired", emit_inactive_pairing: "emit_inactive_pairing", emit_session_proposal: "emit_session_proposal", subscribing_to_pairing_topic: "subscribing_to_pairing_topic" }, Rc = { no_wss_connection: "no_wss_connection", no_internet_connection: "no_internet_connection", malformed_pairing_uri: "malformed_pairing_uri", active_pairing_already_exists: "active_pairing_already_exists", subscribe_pairing_topic_failure: "subscribe_pairing_topic_failure", pairing_expired: "pairing_expired", proposal_expired: "proposal_expired", proposal_listener_not_found: "proposal_listener_not_found" }, Eo = { session_approve_started: "session_approve_started", proposal_not_expired: "proposal_not_expired", session_namespaces_validation_success: "session_namespaces_validation_success", create_session_topic: "create_session_topic", subscribing_session_topic: "subscribing_session_topic", subscribe_session_topic_success: "subscribe_session_topic_success", publishing_session_approve: "publishing_session_approve", session_approve_publish_success: "session_approve_publish_success", store_session: "store_session", publishing_session_settle: "publishing_session_settle", session_settle_publish_success: "session_settle_publish_success", session_request_response_started: "session_request_response_started", session_request_response_validation_success: "session_request_response_validation_success", session_request_response_publish_started: "session_request_response_publish_started" }, vf = { no_internet_connection: "no_internet_connection", no_wss_connection: "no_wss_connection", proposal_expired: "proposal_expired", subscribe_session_topic_failure: "subscribe_session_topic_failure", session_approve_publish_failure: "session_approve_publish_failure", session_settle_publish_failure: "session_settle_publish_failure", session_approve_namespace_validation_failure: "session_approve_namespace_validation_failure", proposal_not_found: "proposal_not_found", session_request_response_validation_failure: "session_request_response_validation_failure", session_request_response_publish_failure: "session_request_response_publish_failure" }, wf = { authenticated_session_approve_started: "authenticated_session_approve_started", create_authenticated_session_topic: "create_authenticated_session_topic", cacaos_verified: "cacaos_verified", store_authenticated_session: "store_authenticated_session", subscribing_authenticated_session_topic: "subscribing_authenticated_session_topic", subscribe_authenticated_session_topic_success: "subscribe_authenticated_session_topic_success", publishing_authenticated_session_approve: "publishing_authenticated_session_approve" }, Hg = { no_internet_connection: "no_internet_connection", invalid_cacao: "invalid_cacao", subscribe_authenticated_session_topic_failure: "subscribe_authenticated_session_topic_failure", authenticated_session_approve_publish_failure: "authenticated_session_approve_publish_failure", authenticated_session_pending_request_not_found: "authenticated_session_pending_request_not_found" }, nNe = 0.1, rNe = "event-client", iNe = 86400, aNe = "https://pulse.walletconnect.org/batch";
54537
+ const QQ = "wc", XQ = 2, x7 = "core", zl = `${QQ}@2:${x7}:`, kOe = { logger: "error" }, AOe = { database: ":memory:" }, TOe = "crypto", nF = "client_ed25519_seed", $Oe = Ge.ONE_DAY, IOe = "keychain", OOe = "0.3", NOe = "messages", ROe = "0.3", POe = Ge.SIX_HOURS, jOe = "publisher", JQ = "irn", MOe = "error", eX = "wss://relay.walletconnect.org", DOe = "relayer", Mr = { message: "relayer_message", message_ack: "relayer_message_ack", connect: "relayer_connect", disconnect: "relayer_disconnect", error: "relayer_error", connection_stalled: "relayer_connection_stalled", transport_closed: "relayer_transport_closed", publish: "relayer_publish" }, LOe = "_subscription", Fs = { payload: "payload", connect: "connect", disconnect: "disconnect", error: "error" }, UOe = 0.1, _7 = "2.22.4", lr = { link_mode: "link_mode", relay: "relay" }, U2 = { inbound: "inbound", outbound: "outbound" }, FOe = "0.3", BOe = "WALLETCONNECT_CLIENT_ID", rF = "WALLETCONNECT_LINK_MODE_APPS", ps = { created: "subscription_created", deleted: "subscription_deleted", expired: "subscription_expired", disabled: "subscription_disabled", sync: "subscription_sync", resubscribed: "subscription_resubscribed" }, zOe = "subscription", WOe = "0.3", qOe = "pairing", HOe = "0.3", qg = { wc_pairingDelete: { req: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1e3 }, res: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1001 } }, wc_pairingPing: { req: { ttl: Ge.THIRTY_SECONDS, prompt: !1, tag: 1002 }, res: { ttl: Ge.THIRTY_SECONDS, prompt: !1, tag: 1003 } }, unregistered_method: { req: { ttl: Ge.ONE_DAY, prompt: !1, tag: 0 }, res: { ttl: Ge.ONE_DAY, prompt: !1, tag: 0 } } }, Tf = { create: "pairing_create", expire: "pairing_expire", delete: "pairing_delete", ping: "pairing_ping" }, _o = { created: "history_created", updated: "history_updated", deleted: "history_deleted", sync: "history_sync" }, VOe = "history", GOe = "0.3", KOe = "expirer", Vs = { created: "expirer_created", deleted: "expirer_deleted", expired: "expirer_expired", sync: "expirer_sync" }, YOe = "0.3", ZOe = "verify-api", QOe = "https://verify.walletconnect.com", tX = "https://verify.walletconnect.org", Ry = tX, XOe = `${Ry}/v3`, JOe = [QOe, tX], eNe = "echo", tNe = "https://echo.walletconnect.com", wl = { pairing_started: "pairing_started", pairing_uri_validation_success: "pairing_uri_validation_success", pairing_uri_not_expired: "pairing_uri_not_expired", store_new_pairing: "store_new_pairing", subscribing_pairing_topic: "subscribing_pairing_topic", subscribe_pairing_topic_success: "subscribe_pairing_topic_success", existing_pairing: "existing_pairing", pairing_not_expired: "pairing_not_expired", emit_inactive_pairing: "emit_inactive_pairing", emit_session_proposal: "emit_session_proposal", subscribing_to_pairing_topic: "subscribing_to_pairing_topic" }, Rc = { no_wss_connection: "no_wss_connection", no_internet_connection: "no_internet_connection", malformed_pairing_uri: "malformed_pairing_uri", active_pairing_already_exists: "active_pairing_already_exists", subscribe_pairing_topic_failure: "subscribe_pairing_topic_failure", pairing_expired: "pairing_expired", proposal_expired: "proposal_expired", proposal_listener_not_found: "proposal_listener_not_found" }, Eo = { session_approve_started: "session_approve_started", proposal_not_expired: "proposal_not_expired", session_namespaces_validation_success: "session_namespaces_validation_success", create_session_topic: "create_session_topic", subscribing_session_topic: "subscribing_session_topic", subscribe_session_topic_success: "subscribe_session_topic_success", publishing_session_approve: "publishing_session_approve", session_approve_publish_success: "session_approve_publish_success", store_session: "store_session", publishing_session_settle: "publishing_session_settle", session_settle_publish_success: "session_settle_publish_success", session_request_response_started: "session_request_response_started", session_request_response_validation_success: "session_request_response_validation_success", session_request_response_publish_started: "session_request_response_publish_started" }, vf = { no_internet_connection: "no_internet_connection", no_wss_connection: "no_wss_connection", proposal_expired: "proposal_expired", subscribe_session_topic_failure: "subscribe_session_topic_failure", session_approve_publish_failure: "session_approve_publish_failure", session_settle_publish_failure: "session_settle_publish_failure", session_approve_namespace_validation_failure: "session_approve_namespace_validation_failure", proposal_not_found: "proposal_not_found", session_request_response_validation_failure: "session_request_response_validation_failure", session_request_response_publish_failure: "session_request_response_publish_failure" }, wf = { authenticated_session_approve_started: "authenticated_session_approve_started", create_authenticated_session_topic: "create_authenticated_session_topic", cacaos_verified: "cacaos_verified", store_authenticated_session: "store_authenticated_session", subscribing_authenticated_session_topic: "subscribing_authenticated_session_topic", subscribe_authenticated_session_topic_success: "subscribe_authenticated_session_topic_success", publishing_authenticated_session_approve: "publishing_authenticated_session_approve" }, Hg = { no_internet_connection: "no_internet_connection", invalid_cacao: "invalid_cacao", subscribe_authenticated_session_topic_failure: "subscribe_authenticated_session_topic_failure", authenticated_session_approve_publish_failure: "authenticated_session_approve_publish_failure", authenticated_session_pending_request_not_found: "authenticated_session_pending_request_not_found" }, nNe = 0.1, rNe = "event-client", iNe = 86400, aNe = "https://pulse.walletconnect.org/batch";
54538
54538
  function sNe(t, e) {
54539
54539
  if (t.length >= 255) throw new TypeError("Alphabet too long");
54540
54540
  for (var n = new Uint8Array(256), r = 0; r < n.length; r++) n[r] = 255;
@@ -54768,17 +54768,17 @@ function TRe(t, e = "utf8") {
54768
54768
  if (!n) throw new Error(`Unsupported encoding "${e}"`);
54769
54769
  return (e === "utf8" || e === "utf-8") && globalThis.Buffer != null && globalThis.Buffer.from != null ? dX(globalThis.Buffer.from(t, "utf-8")) : n.decoder.decode(`${n.prefix}${t}`);
54770
54770
  }
54771
- var $Re = Object.defineProperty, IRe = (t, e, n) => e in t ? $Re(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, pl = (t, e, n) => IRe(t, typeof e != "symbol" ? e + "" : e, n);
54771
+ var $Re = Object.defineProperty, IRe = (t, e, n) => e in t ? $Re(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ml = (t, e, n) => IRe(t, typeof e != "symbol" ? e + "" : e, n);
54772
54772
  let ORe = class {
54773
54773
  constructor(e, n) {
54774
- this.core = e, this.logger = n, pl(this, "keychain", /* @__PURE__ */ new Map()), pl(this, "name", IOe), pl(this, "version", OOe), pl(this, "initialized", !1), pl(this, "storagePrefix", Bl), pl(this, "init", async () => {
54774
+ this.core = e, this.logger = n, ml(this, "keychain", /* @__PURE__ */ new Map()), ml(this, "name", IOe), ml(this, "version", OOe), ml(this, "initialized", !1), ml(this, "storagePrefix", zl), ml(this, "init", async () => {
54775
54775
  if (!this.initialized) {
54776
54776
  const r = await this.getKeyChain();
54777
54777
  typeof r < "u" && (this.keychain = r), this.initialized = !0;
54778
54778
  }
54779
- }), pl(this, "has", (r) => (this.isInitialized(), this.keychain.has(r))), pl(this, "set", async (r, i) => {
54779
+ }), ml(this, "has", (r) => (this.isInitialized(), this.keychain.has(r))), ml(this, "set", async (r, i) => {
54780
54780
  this.isInitialized(), this.keychain.set(r, i), await this.persist();
54781
- }), pl(this, "get", (r) => {
54781
+ }), ml(this, "get", (r) => {
54782
54782
  this.isInitialized();
54783
54783
  const i = this.keychain.get(r);
54784
54784
  if (typeof i > "u") {
@@ -54786,7 +54786,7 @@ let ORe = class {
54786
54786
  throw new Error(a);
54787
54787
  }
54788
54788
  return i;
54789
- }), pl(this, "del", async (r) => {
54789
+ }), ml(this, "del", async (r) => {
54790
54790
  this.isInitialized(), this.keychain.delete(r), await this.persist();
54791
54791
  }), this.core = e, this.logger = Ts(n, this.name);
54792
54792
  }
@@ -54912,7 +54912,7 @@ var jRe = Object.defineProperty, MRe = Object.defineProperties, DRe = Object.get
54912
54912
  }, BRe = (t, e) => MRe(t, DRe(e)), us = (t, e, n) => S7(t, typeof e != "symbol" ? e + "" : e, n);
54913
54913
  let zRe = class extends qIe {
54914
54914
  constructor(e, n) {
54915
- super(e, n), this.logger = e, this.core = n, us(this, "messages", /* @__PURE__ */ new Map()), us(this, "messagesWithoutClientAck", /* @__PURE__ */ new Map()), us(this, "name", NOe), us(this, "version", ROe), us(this, "initialized", !1), us(this, "storagePrefix", Bl), us(this, "init", async () => {
54915
+ super(e, n), this.logger = e, this.core = n, us(this, "messages", /* @__PURE__ */ new Map()), us(this, "messagesWithoutClientAck", /* @__PURE__ */ new Map()), us(this, "name", NOe), us(this, "version", ROe), us(this, "initialized", !1), us(this, "storagePrefix", zl), us(this, "init", async () => {
54916
54916
  if (!this.initialized) {
54917
54917
  this.logger.trace("Initialized");
54918
54918
  try {
@@ -55014,7 +55014,7 @@ let KRe = class extends HIe {
55014
55014
  ((N = x.id) == null ? void 0 : N.toString()) === A.toString() && (this.removeRequestFromQueue(A), this.relayer.events.removeListener(Mr.publish, T), C());
55015
55015
  };
55016
55016
  this.relayer.events.on(Mr.publish, T);
55017
- const I = Il(new Promise((A, N) => {
55017
+ const I = Ol(new Promise((A, N) => {
55018
55018
  this.rpcPublish(x, a).then(A).catch((U) => {
55019
55019
  this.logger.warn(U, U?.message), N(U);
55020
55020
  });
@@ -55025,7 +55025,7 @@ let KRe = class extends HIe {
55025
55025
  this.queue.set(b, { request: x, opts: a, attempt: 1 }), this.logger.warn(A, A?.message);
55026
55026
  }
55027
55027
  });
55028
- this.logger.trace({ type: "method", method: "publish", params: { id: b, topic: r, message: i, opts: a } }), await Il(k, this.publishTimeout, S);
55028
+ this.logger.trace({ type: "method", method: "publish", params: { id: b, topic: r, message: i, opts: a } }), await Ol(k, this.publishTimeout, S);
55029
55029
  } catch (k) {
55030
55030
  if (this.logger.debug("Failed to Publish Payload"), this.logger.error(k), (f = a?.internal) != null && f.throwOnFailedPublish) throw k;
55031
55031
  } finally {
@@ -55043,7 +55043,7 @@ let KRe = class extends HIe {
55043
55043
  ((W = T.id) == null ? void 0 : W.toString()) === M.toString() && (this.removeRequestFromQueue(M), this.relayer.events.removeListener(Mr.publish, U), N());
55044
55044
  };
55045
55045
  this.relayer.events.on(Mr.publish, U);
55046
- const L = Il(new Promise((M, W) => {
55046
+ const L = Ol(new Promise((M, W) => {
55047
55047
  this.rpcPublish(T, f).then(M).catch((z) => {
55048
55048
  this.logger.warn(z, z?.message), W(z);
55049
55049
  });
@@ -55054,7 +55054,7 @@ let KRe = class extends HIe {
55054
55054
  this.queue.set(S, { request: T, opts: f, attempt: 1 }), this.logger.warn(M, M?.message);
55055
55055
  }
55056
55056
  });
55057
- this.logger.trace({ type: "method", method: "publish", params: { id: S, payload: d, opts: f } }), await Il(A, this.publishTimeout, I);
55057
+ this.logger.trace({ type: "method", method: "publish", params: { id: S, payload: d, opts: f } }), await Ol(A, this.publishTimeout, I);
55058
55058
  } catch (A) {
55059
55059
  if (this.logger.debug("Failed to Publish Payload"), this.logger.error(A), (c = f?.internal) != null && c.throwOnFailedPublish) throw A;
55060
55060
  } finally {
@@ -55135,7 +55135,7 @@ var XRe = Object.defineProperty, JRe = Object.defineProperties, ePe = Object.get
55135
55135
  }, rC = (t, e) => JRe(t, ePe(e)), Gn = (t, e, n) => A7(t, typeof e != "symbol" ? e + "" : e, n);
55136
55136
  let rPe = class extends KIe {
55137
55137
  constructor(e, n) {
55138
- super(e, n), this.relayer = e, this.logger = n, Gn(this, "subscriptions", /* @__PURE__ */ new Map()), Gn(this, "topicMap", new QRe()), Gn(this, "events", new As.EventEmitter()), Gn(this, "name", zOe), Gn(this, "version", WOe), Gn(this, "pending", /* @__PURE__ */ new Map()), Gn(this, "cached", []), Gn(this, "initialized", !1), Gn(this, "storagePrefix", Bl), Gn(this, "subscribeTimeout", Ge.toMiliseconds(Ge.ONE_MINUTE)), Gn(this, "initialSubscribeTimeout", Ge.toMiliseconds(Ge.ONE_SECOND * 15)), Gn(this, "clientId"), Gn(this, "batchSubscribeTopicsLimit", 500), Gn(this, "init", async () => {
55138
+ super(e, n), this.relayer = e, this.logger = n, Gn(this, "subscriptions", /* @__PURE__ */ new Map()), Gn(this, "topicMap", new QRe()), Gn(this, "events", new As.EventEmitter()), Gn(this, "name", zOe), Gn(this, "version", WOe), Gn(this, "pending", /* @__PURE__ */ new Map()), Gn(this, "cached", []), Gn(this, "initialized", !1), Gn(this, "storagePrefix", zl), Gn(this, "subscribeTimeout", Ge.toMiliseconds(Ge.ONE_MINUTE)), Gn(this, "initialSubscribeTimeout", Ge.toMiliseconds(Ge.ONE_SECOND * 15)), Gn(this, "clientId"), Gn(this, "batchSubscribeTopicsLimit", 500), Gn(this, "init", async () => {
55139
55139
  this.initialized || (this.logger.trace("Initialized"), this.registerEventListeners(), await this.restore()), this.initialized = !0;
55140
55140
  }), Gn(this, "subscribe", async (r, i) => {
55141
55141
  var a;
@@ -55254,7 +55254,7 @@ let rPe = class extends KIe {
55254
55254
  };
55255
55255
  this.events.on(ps.created, p);
55256
55256
  try {
55257
- const y = await Il(new Promise((b, w) => {
55257
+ const y = await Ol(new Promise((b, w) => {
55258
55258
  this.relayer.request(o).catch((x) => {
55259
55259
  this.logger.warn(x, x?.message), w(x);
55260
55260
  }).then(b);
@@ -55262,7 +55262,7 @@ let rPe = class extends KIe {
55262
55262
  this.events.removeListener(ps.created, p), m(y);
55263
55263
  } catch {
55264
55264
  }
55265
- }), f = await Il(d, this.subscribeTimeout, `Subscribing to ${e} failed, please try again`);
55265
+ }), f = await Ol(d, this.subscribeTimeout, `Subscribing to ${e} failed, please try again`);
55266
55266
  if (!f && c) throw new Error(`Subscribing to ${e} failed, please try again`);
55267
55267
  return f ? s : null;
55268
55268
  } catch (d) {
@@ -55275,7 +55275,7 @@ let rPe = class extends KIe {
55275
55275
  const n = e[0].relay, r = { method: p0(n.protocol).batchSubscribe, params: { topics: e.map((i) => i.topic) } };
55276
55276
  this.logger.debug("Outgoing Relay Payload"), this.logger.trace({ type: "payload", direction: "outgoing", request: r });
55277
55277
  try {
55278
- await await Il(new Promise((i) => {
55278
+ await await Ol(new Promise((i) => {
55279
55279
  this.relayer.request(r).catch((a) => this.logger.warn(a)).then(i);
55280
55280
  }), this.subscribeTimeout, "rpcBatchSubscribe failed, please try again");
55281
55281
  } catch {
@@ -55288,7 +55288,7 @@ let rPe = class extends KIe {
55288
55288
  this.logger.debug("Outgoing Relay Payload"), this.logger.trace({ type: "payload", direction: "outgoing", request: r });
55289
55289
  let i;
55290
55290
  try {
55291
- i = await await Il(new Promise((a, s) => {
55291
+ i = await await Ol(new Promise((a, s) => {
55292
55292
  this.relayer.request(r).catch((o) => {
55293
55293
  this.logger.warn(o), s(o);
55294
55294
  }).then(a);
@@ -55494,7 +55494,7 @@ let oPe = class extends VIe {
55494
55494
  this.events.removeListener(e, n);
55495
55495
  }
55496
55496
  async transportDisconnect() {
55497
- this.provider.disconnect && (this.hasExperiencedNetworkDisruption || this.connected) ? await Il(this.provider.disconnect(), 2e3, "provider.disconnect()").catch(() => this.onProviderDisconnect()) : this.onProviderDisconnect();
55497
+ this.provider.disconnect && (this.hasExperiencedNetworkDisruption || this.connected) ? await Ol(this.provider.disconnect(), 2e3, "provider.disconnect()").catch(() => this.onProviderDisconnect()) : this.onProviderDisconnect();
55498
55498
  }
55499
55499
  async transportClose() {
55500
55500
  this.transportExplicitlyClosed = !0, await this.transportDisconnect();
@@ -55548,7 +55548,7 @@ let oPe = class extends VIe {
55548
55548
  const a = () => {
55549
55549
  i(new Error("Connection interrupted while trying to connect"));
55550
55550
  };
55551
- this.provider.once(Fs.disconnect, a), await Il(new Promise((s, o) => {
55551
+ this.provider.once(Fs.disconnect, a), await Ol(new Promise((s, o) => {
55552
55552
  this.provider.connect().then(s).catch(o);
55553
55553
  }), this.connectTimeout, `Socket stalled when trying to connect to ${this.relayUrl}`).catch((s) => {
55554
55554
  i(s);
@@ -55783,8 +55783,8 @@ var MPe = Object.defineProperty, wF = Object.getOwnPropertySymbols, DPe = Object
55783
55783
  return t;
55784
55784
  }, ja = (t, e, n) => $7(t, typeof e != "symbol" ? e + "" : e, n);
55785
55785
  let zh = class extends GIe {
55786
- constructor(e, n, r, i = Bl, a = void 0) {
55787
- super(e, n, r, i), this.core = e, this.logger = n, this.name = r, ja(this, "map", /* @__PURE__ */ new Map()), ja(this, "version", FOe), ja(this, "cached", []), ja(this, "initialized", !1), ja(this, "getKey"), ja(this, "storagePrefix", Bl), ja(this, "recentlyDeleted", []), ja(this, "recentlyDeletedLimit", 200), ja(this, "init", async () => {
55786
+ constructor(e, n, r, i = zl, a = void 0) {
55787
+ super(e, n, r, i), this.core = e, this.logger = n, this.name = r, ja(this, "map", /* @__PURE__ */ new Map()), ja(this, "version", FOe), ja(this, "cached", []), ja(this, "initialized", !1), ja(this, "getKey"), ja(this, "storagePrefix", zl), ja(this, "recentlyDeleted", []), ja(this, "recentlyDeletedLimit", 200), ja(this, "init", async () => {
55788
55788
  this.initialized || (this.logger.trace("Initialized"), await this.restore(), this.cached.forEach((s) => {
55789
55789
  this.getKey && s !== null && !di(s) ? this.map.set(this.getKey(s), s) : S$e(s) ? this.map.set(s.id, s) : k$e(s) && this.map.set(s.topic, s);
55790
55790
  }), this.cached = [], this.initialized = !0);
@@ -55860,7 +55860,7 @@ let zh = class extends GIe {
55860
55860
  var UPe = Object.defineProperty, FPe = (t, e, n) => e in t ? UPe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, un = (t, e, n) => FPe(t, typeof e != "symbol" ? e + "" : e, n);
55861
55861
  let BPe = class {
55862
55862
  constructor(e, n) {
55863
- this.core = e, this.logger = n, un(this, "name", qOe), un(this, "version", HOe), un(this, "events", new PT()), un(this, "pairings"), un(this, "initialized", !1), un(this, "storagePrefix", Bl), un(this, "ignoredPayloadTypes", [Jc]), un(this, "registeredMethods", []), un(this, "init", async () => {
55863
+ this.core = e, this.logger = n, un(this, "name", qOe), un(this, "version", HOe), un(this, "events", new PT()), un(this, "pairings"), un(this, "initialized", !1), un(this, "storagePrefix", zl), un(this, "ignoredPayloadTypes", [Jc]), un(this, "registeredMethods", []), un(this, "init", async () => {
55864
55864
  this.initialized || (await this.pairings.init(), await this.cleanup(), this.registerRelayerEvents(), this.registerExpirerEvents(), this.initialized = !0, this.logger.trace("Initialized"));
55865
55865
  }), un(this, "register", ({ methods: r }) => {
55866
55866
  this.isInitialized(), this.registeredMethods = [.../* @__PURE__ */ new Set([...this.registeredMethods, ...r])];
@@ -55870,17 +55870,17 @@ let BPe = class {
55870
55870
  return this.events.emit(Tf.create, c), this.core.expirer.set(a, s), await this.pairings.set(a, c), await this.core.relayer.subscribe(a, { transportType: r?.transportType, internal: r?.internal }), { topic: a, uri: d };
55871
55871
  }), un(this, "pair", async (r) => {
55872
55872
  this.isInitialized();
55873
- const i = this.core.eventClient.createEvent({ properties: { topic: r?.uri, trace: [vl.pairing_started] } });
55873
+ const i = this.core.eventClient.createEvent({ properties: { topic: r?.uri, trace: [wl.pairing_started] } });
55874
55874
  this.isValidPair(r, i);
55875
55875
  const { topic: a, symKey: s, relay: o, expiryTimestamp: c, methods: d } = IU(r.uri);
55876
- i.props.properties.topic = a, i.addTrace(vl.pairing_uri_validation_success), i.addTrace(vl.pairing_uri_not_expired);
55876
+ i.props.properties.topic = a, i.addTrace(wl.pairing_uri_validation_success), i.addTrace(wl.pairing_uri_not_expired);
55877
55877
  let f;
55878
55878
  if (this.pairings.keys.includes(a)) {
55879
- if (f = this.pairings.get(a), i.addTrace(vl.existing_pairing), f.active) throw i.setError(Rc.active_pairing_already_exists), new Error(`Pairing already exists: ${a}. Please try again with a new connection URI.`);
55880
- i.addTrace(vl.pairing_not_expired);
55879
+ if (f = this.pairings.get(a), i.addTrace(wl.existing_pairing), f.active) throw i.setError(Rc.active_pairing_already_exists), new Error(`Pairing already exists: ${a}. Please try again with a new connection URI.`);
55880
+ i.addTrace(wl.pairing_not_expired);
55881
55881
  }
55882
55882
  const m = c || Kr(Ge.FIVE_MINUTES), p = { topic: a, relay: o, expiry: m, active: !1, methods: d };
55883
- this.core.expirer.set(a, m), await this.pairings.set(a, p), i.addTrace(vl.store_new_pairing), r.activatePairing && await this.activate({ topic: a }), this.events.emit(Tf.create, p), i.addTrace(vl.emit_inactive_pairing), this.core.crypto.keychain.has(a) || await this.core.crypto.setSymKey(s, a), i.addTrace(vl.subscribing_pairing_topic);
55883
+ this.core.expirer.set(a, m), await this.pairings.set(a, p), i.addTrace(wl.store_new_pairing), r.activatePairing && await this.activate({ topic: a }), this.events.emit(Tf.create, p), i.addTrace(wl.emit_inactive_pairing), this.core.crypto.keychain.has(a) || await this.core.crypto.setSymKey(s, a), i.addTrace(wl.subscribing_pairing_topic);
55884
55884
  try {
55885
55885
  await this.core.relayer.confirmOnlineStateOrThrow();
55886
55886
  } catch {
@@ -55891,7 +55891,7 @@ let BPe = class {
55891
55891
  } catch (y) {
55892
55892
  throw i.setError(Rc.subscribe_pairing_topic_failure), y;
55893
55893
  }
55894
- return i.addTrace(vl.subscribe_pairing_topic_success), p;
55894
+ return i.addTrace(wl.subscribe_pairing_topic_success), p;
55895
55895
  }), un(this, "activate", async ({ topic: r }) => {
55896
55896
  this.isInitialized();
55897
55897
  const i = Kr(Ge.FIVE_MINUTES);
@@ -55929,7 +55929,7 @@ let BPe = class {
55929
55929
  }), un(this, "deletePairing", async (r, i) => {
55930
55930
  await this.core.relayer.unsubscribe(r), await Promise.all([this.pairings.delete(r, cr("USER_DISCONNECTED")), this.core.crypto.deleteSymKey(r), i ? Promise.resolve() : this.core.expirer.del(r)]);
55931
55931
  }), un(this, "cleanup", async () => {
55932
- const r = this.pairings.getAll().filter((i) => Sl(i.expiry));
55932
+ const r = this.pairings.getAll().filter((i) => kl(i.expiry));
55933
55933
  await Promise.all(r.map((i) => this.deletePairing(i.topic)));
55934
55934
  }), un(this, "onRelayEventRequest", async (r) => {
55935
55935
  const { topic: i, payload: a } = r;
@@ -55959,7 +55959,7 @@ let BPe = class {
55959
55959
  }), un(this, "onPairingPingResponse", (r, i) => {
55960
55960
  const { id: a } = i;
55961
55961
  setTimeout(() => {
55962
- _l(i) ? this.events.emit(Tn("pairing_ping", a), {}) : Ys(i) && this.events.emit(Tn("pairing_ping", a), { error: i.error });
55962
+ El(i) ? this.events.emit(Tn("pairing_ping", a), {}) : Ys(i) && this.events.emit(Tn("pairing_ping", a), { error: i.error });
55963
55963
  }, 500);
55964
55964
  }), un(this, "onPairingDeleteRequest", async (r, i) => {
55965
55965
  const { id: a } = i;
@@ -56026,7 +56026,7 @@ let BPe = class {
56026
56026
  const { message: i } = He("NO_MATCHING_KEY", `pairing topic doesn't exist: ${r}`);
56027
56027
  throw new Error(i);
56028
56028
  }
56029
- if (Sl(this.pairings.get(r).expiry)) {
56029
+ if (kl(this.pairings.get(r).expiry)) {
56030
56030
  await this.deletePairing(r);
56031
56031
  const { message: i } = He("EXPIRED", `pairing topic: ${r}`);
56032
56032
  throw new Error(i);
@@ -56063,7 +56063,7 @@ let BPe = class {
56063
56063
  var zPe = Object.defineProperty, WPe = (t, e, n) => e in t ? zPe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ji = (t, e, n) => WPe(t, typeof e != "symbol" ? e + "" : e, n);
56064
56064
  let qPe = class extends WIe {
56065
56065
  constructor(e, n) {
56066
- super(e, n), this.core = e, this.logger = n, ji(this, "records", /* @__PURE__ */ new Map()), ji(this, "events", new As.EventEmitter()), ji(this, "name", VOe), ji(this, "version", GOe), ji(this, "cached", []), ji(this, "initialized", !1), ji(this, "storagePrefix", Bl), ji(this, "init", async () => {
56066
+ super(e, n), this.core = e, this.logger = n, ji(this, "records", /* @__PURE__ */ new Map()), ji(this, "events", new As.EventEmitter()), ji(this, "name", VOe), ji(this, "version", GOe), ji(this, "cached", []), ji(this, "initialized", !1), ji(this, "storagePrefix", zl), ji(this, "init", async () => {
56067
56067
  this.initialized || (this.logger.trace("Initialized"), await this.restore(), this.cached.forEach((r) => this.records.set(r.id, r)), this.cached = [], this.registerEventListeners(), this.initialized = !0);
56068
56068
  }), ji(this, "set", (r, i, a) => {
56069
56069
  if (this.isInitialized(), this.logger.debug("Setting JSON-RPC request history record"), this.logger.trace({ type: "method", method: "set", topic: r, request: i, chainId: a }), this.records.has(i.id)) return;
@@ -56179,7 +56179,7 @@ let qPe = class extends WIe {
56179
56179
  var HPe = Object.defineProperty, VPe = (t, e, n) => e in t ? HPe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Ji = (t, e, n) => VPe(t, typeof e != "symbol" ? e + "" : e, n);
56180
56180
  let GPe = class extends YIe {
56181
56181
  constructor(e, n) {
56182
- super(e, n), this.core = e, this.logger = n, Ji(this, "expirations", /* @__PURE__ */ new Map()), Ji(this, "events", new As.EventEmitter()), Ji(this, "name", KOe), Ji(this, "version", YOe), Ji(this, "cached", []), Ji(this, "initialized", !1), Ji(this, "storagePrefix", Bl), Ji(this, "init", async () => {
56182
+ super(e, n), this.core = e, this.logger = n, Ji(this, "expirations", /* @__PURE__ */ new Map()), Ji(this, "events", new As.EventEmitter()), Ji(this, "name", KOe), Ji(this, "version", YOe), Ji(this, "cached", []), Ji(this, "initialized", !1), Ji(this, "storagePrefix", zl), Ji(this, "init", async () => {
56183
56183
  this.initialized || (this.logger.trace("Initialized"), await this.restore(), this.cached.forEach((r) => this.expirations.set(r.target, r)), this.cached = [], this.registerEventListeners(), this.initialized = !0);
56184
56184
  }), Ji(this, "has", (r) => {
56185
56185
  try {
@@ -56294,7 +56294,7 @@ let GPe = class extends YIe {
56294
56294
  var KPe = Object.defineProperty, YPe = (t, e, n) => e in t ? KPe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Vr = (t, e, n) => YPe(t, typeof e != "symbol" ? e + "" : e, n);
56295
56295
  let ZPe = class extends ZIe {
56296
56296
  constructor(e, n, r) {
56297
- super(e, n, r), this.core = e, this.logger = n, this.store = r, Vr(this, "name", ZOe), Vr(this, "abortController"), Vr(this, "isDevEnv"), Vr(this, "verifyUrlV3", XOe), Vr(this, "storagePrefix", Bl), Vr(this, "version", XQ), Vr(this, "publicKey"), Vr(this, "fetchPromise"), Vr(this, "init", async () => {
56297
+ super(e, n, r), this.core = e, this.logger = n, this.store = r, Vr(this, "name", ZOe), Vr(this, "abortController"), Vr(this, "isDevEnv"), Vr(this, "verifyUrlV3", XOe), Vr(this, "storagePrefix", zl), Vr(this, "version", XQ), Vr(this, "publicKey"), Vr(this, "fetchPromise"), Vr(this, "init", async () => {
56298
56298
  var i;
56299
56299
  this.isDevEnv || (this.publicKey = await this.store.getItem(this.storeKey), this.publicKey && Ge.toMiliseconds((i = this.publicKey) == null ? void 0 : i.expiresAt) < Date.now() && (this.logger.debug("verify v2 public key expired"), await this.removePublicKey()));
56300
56300
  }), Vr(this, "register", async (i) => {
@@ -56419,7 +56419,7 @@ var eje = Object.defineProperty, EF = Object.getOwnPropertySymbols, tje = Object
56419
56419
  }, vi = (t, e, n) => I7(t, typeof e != "symbol" ? e + "" : e, n);
56420
56420
  let rje = class extends XIe {
56421
56421
  constructor(e, n, r = !0) {
56422
- super(e, n, r), this.core = e, this.logger = n, vi(this, "context", rNe), vi(this, "storagePrefix", Bl), vi(this, "storageVersion", nNe), vi(this, "events", /* @__PURE__ */ new Map()), vi(this, "shouldPersist", !1), vi(this, "init", async () => {
56422
+ super(e, n, r), this.core = e, this.logger = n, vi(this, "context", rNe), vi(this, "storagePrefix", zl), vi(this, "storageVersion", nNe), vi(this, "events", /* @__PURE__ */ new Map()), vi(this, "shouldPersist", !1), vi(this, "init", async () => {
56423
56423
  if (!GT()) try {
56424
56424
  const i = { eventId: ZL(), timestamp: Date.now(), domain: this.getAppDomain(), props: { event: "INIT", type: "", properties: { client_id: await this.core.crypto.getClientId(), user_agent: zZ(this.core.relayer.protocol, this.core.relayer.version, _7) } } };
56425
56425
  await this.sendEvent([i]);
@@ -56562,7 +56562,7 @@ let oje = class hX extends UIe {
56562
56562
  }
56563
56563
  }
56564
56564
  };
56565
- const lje = oje, pX = "wc", mX = 2, gX = "client", c$ = `${pX}@${mX}:${gX}:`, aC = { name: gX, logger: "error" }, kF = "WALLETCONNECT_DEEPLINK_CHOICE", cje = "proposal", AF = "Proposal expired", uje = "session", Qp = Ge.SEVEN_DAYS, dje = "engine", Mi = { wc_sessionPropose: { req: { ttl: Ge.FIVE_MINUTES, prompt: !0, tag: 1100 }, res: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1101 }, reject: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1120 }, autoReject: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1121 } }, wc_sessionSettle: { req: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1102 }, res: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1103 } }, wc_sessionUpdate: { req: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1104 }, res: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1105 } }, wc_sessionExtend: { req: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1106 }, res: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1107 } }, wc_sessionRequest: { req: { ttl: Ge.FIVE_MINUTES, prompt: !0, tag: 1108 }, res: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1109 } }, wc_sessionEvent: { req: { ttl: Ge.FIVE_MINUTES, prompt: !0, tag: 1110 }, res: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1111 } }, wc_sessionDelete: { req: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1112 }, res: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1113 } }, wc_sessionPing: { req: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1114 }, res: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1115 } }, wc_sessionAuthenticate: { req: { ttl: Ge.ONE_HOUR, prompt: !0, tag: 1116 }, res: { ttl: Ge.ONE_HOUR, prompt: !1, tag: 1117 }, reject: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1118 }, autoReject: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1119 } } }, sC = { min: Ge.FIVE_MINUTES, max: Ge.SEVEN_DAYS }, ml = { idle: "IDLE", active: "ACTIVE" }, fje = { eth_sendTransaction: { key: "" }, eth_sendRawTransaction: { key: "" }, wallet_sendCalls: { key: "" }, solana_signTransaction: { key: "signature" }, solana_signAllTransactions: { key: "transactions" }, solana_signAndSendTransaction: { key: "signature" }, sui_signAndExecuteTransaction: { key: "digest" }, sui_signTransaction: { key: "" }, hedera_signAndExecuteTransaction: { key: "transactionId" }, hedera_executeTransaction: { key: "transactionId" }, near_signTransaction: { key: "" }, near_signTransactions: { key: "" }, tron_signTransaction: { key: "txID" }, xrpl_signTransaction: { key: "" }, xrpl_signTransactionFor: { key: "" }, algo_signTxn: { key: "" }, sendTransfer: { key: "txid" }, stacks_stxTransfer: { key: "txId" }, polkadot_signTransaction: { key: "" }, cosmos_signDirect: { key: "" } }, hje = "request", pje = ["wc_sessionPropose", "wc_sessionRequest", "wc_authRequest", "wc_sessionAuthenticate"], mje = "wc", gje = "auth", yje = "authKeys", bje = "pairingTopics", vje = "requests", U6 = `${mje}@${1.5}:${gje}:`, F2 = `${U6}:PUB_KEY`;
56565
+ const lje = oje, pX = "wc", mX = 2, gX = "client", c$ = `${pX}@${mX}:${gX}:`, aC = { name: gX, logger: "error" }, kF = "WALLETCONNECT_DEEPLINK_CHOICE", cje = "proposal", AF = "Proposal expired", uje = "session", Qp = Ge.SEVEN_DAYS, dje = "engine", Mi = { wc_sessionPropose: { req: { ttl: Ge.FIVE_MINUTES, prompt: !0, tag: 1100 }, res: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1101 }, reject: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1120 }, autoReject: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1121 } }, wc_sessionSettle: { req: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1102 }, res: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1103 } }, wc_sessionUpdate: { req: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1104 }, res: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1105 } }, wc_sessionExtend: { req: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1106 }, res: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1107 } }, wc_sessionRequest: { req: { ttl: Ge.FIVE_MINUTES, prompt: !0, tag: 1108 }, res: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1109 } }, wc_sessionEvent: { req: { ttl: Ge.FIVE_MINUTES, prompt: !0, tag: 1110 }, res: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1111 } }, wc_sessionDelete: { req: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1112 }, res: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1113 } }, wc_sessionPing: { req: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1114 }, res: { ttl: Ge.ONE_DAY, prompt: !1, tag: 1115 } }, wc_sessionAuthenticate: { req: { ttl: Ge.ONE_HOUR, prompt: !0, tag: 1116 }, res: { ttl: Ge.ONE_HOUR, prompt: !1, tag: 1117 }, reject: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1118 }, autoReject: { ttl: Ge.FIVE_MINUTES, prompt: !1, tag: 1119 } } }, sC = { min: Ge.FIVE_MINUTES, max: Ge.SEVEN_DAYS }, gl = { idle: "IDLE", active: "ACTIVE" }, fje = { eth_sendTransaction: { key: "" }, eth_sendRawTransaction: { key: "" }, wallet_sendCalls: { key: "" }, solana_signTransaction: { key: "signature" }, solana_signAllTransactions: { key: "transactions" }, solana_signAndSendTransaction: { key: "signature" }, sui_signAndExecuteTransaction: { key: "digest" }, sui_signTransaction: { key: "" }, hedera_signAndExecuteTransaction: { key: "transactionId" }, hedera_executeTransaction: { key: "transactionId" }, near_signTransaction: { key: "" }, near_signTransactions: { key: "" }, tron_signTransaction: { key: "txID" }, xrpl_signTransaction: { key: "" }, xrpl_signTransactionFor: { key: "" }, algo_signTxn: { key: "" }, sendTransfer: { key: "txid" }, stacks_stxTransfer: { key: "txId" }, polkadot_signTransaction: { key: "" }, cosmos_signDirect: { key: "" } }, hje = "request", pje = ["wc_sessionPropose", "wc_sessionRequest", "wc_authRequest", "wc_sessionAuthenticate"], mje = "wc", gje = "auth", yje = "authKeys", bje = "pairingTopics", vje = "requests", U6 = `${mje}@${1.5}:${gje}:`, F2 = `${U6}:PUB_KEY`;
56566
56566
  var wje = Object.defineProperty, xje = Object.defineProperties, _je = Object.getOwnPropertyDescriptors, TF = Object.getOwnPropertySymbols, Eje = Object.prototype.hasOwnProperty, Cje = Object.prototype.propertyIsEnumerable, N7 = (t, e, n) => e in t ? wje(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Rn = (t, e) => {
56567
56567
  for (var n in e || (e = {})) Eje.call(e, n) && N7(t, n, e[n]);
56568
56568
  if (TF) for (var n of TF(e)) Cje.call(e, n) && N7(t, n, e[n]);
@@ -56570,7 +56570,7 @@ var wje = Object.defineProperty, xje = Object.defineProperties, _je = Object.get
56570
56570
  }, ea = (t, e) => xje(t, _je(e)), Pe = (t, e, n) => N7(t, typeof e != "symbol" ? e + "" : e, n);
56571
56571
  let Sje = class extends nOe {
56572
56572
  constructor(e) {
56573
- super(e), Pe(this, "name", dje), Pe(this, "events", new PT()), Pe(this, "initialized", !1), Pe(this, "requestQueue", { state: ml.idle, queue: [] }), Pe(this, "sessionRequestQueue", { state: ml.idle, queue: [] }), Pe(this, "emittedSessionRequests", new fke({ limit: 500 })), Pe(this, "requestQueueDelay", Ge.ONE_SECOND), Pe(this, "expectedPairingMethodMap", /* @__PURE__ */ new Map()), Pe(this, "recentlyDeletedMap", /* @__PURE__ */ new Map()), Pe(this, "recentlyDeletedLimit", 200), Pe(this, "relayMessageCache", []), Pe(this, "pendingSessions", /* @__PURE__ */ new Map()), Pe(this, "init", async () => {
56573
+ super(e), Pe(this, "name", dje), Pe(this, "events", new PT()), Pe(this, "initialized", !1), Pe(this, "requestQueue", { state: gl.idle, queue: [] }), Pe(this, "sessionRequestQueue", { state: gl.idle, queue: [] }), Pe(this, "emittedSessionRequests", new fke({ limit: 500 })), Pe(this, "requestQueueDelay", Ge.ONE_SECOND), Pe(this, "expectedPairingMethodMap", /* @__PURE__ */ new Map()), Pe(this, "recentlyDeletedMap", /* @__PURE__ */ new Map()), Pe(this, "recentlyDeletedLimit", 200), Pe(this, "relayMessageCache", []), Pe(this, "pendingSessions", /* @__PURE__ */ new Map()), Pe(this, "init", async () => {
56574
56574
  this.initialized || (await this.cleanup(), this.registerRelayerEvents(), this.registerExpirerEvents(), this.registerPairingEvents(), await this.registerLinkModeListeners(), this.client.core.pairing.register({ methods: Object.keys(Mi) }), this.initialized = !0, setTimeout(async () => {
56575
56575
  await this.processPendingMessageEvents(), this.sessionRequestQueue.queue = this.getPendingSessionRequests(), this.processSessionRequestQueue();
56576
56576
  }, Ge.toMiliseconds(this.requestQueueDelay)));
@@ -56596,7 +56596,7 @@ let Sje = class extends nOe {
56596
56596
  const { message: A } = He("NO_MATCHING_KEY", `connect() pairing topic: ${f}`);
56597
56597
  throw new Error(A);
56598
56598
  }
56599
- const y = await this.client.core.crypto.generateKeyPair(), b = Mi.wc_sessionPropose.req.ttl || Ge.FIVE_MINUTES, w = Kr(b), x = ea(Rn(Rn({ requiredNamespaces: a, optionalNamespaces: s, relays: d ?? [{ protocol: JQ }], proposer: { publicKey: y, metadata: this.client.metadata }, expiryTimestamp: w, pairingTopic: f }, o && { sessionProperties: o }), c && { scopedProperties: c }), { id: xl() }), S = Tn("session_connect", x.id), { reject: k, resolve: C, done: T } = Cf(b, AF), I = ({ id: A }) => {
56599
+ const y = await this.client.core.crypto.generateKeyPair(), b = Mi.wc_sessionPropose.req.ttl || Ge.FIVE_MINUTES, w = Kr(b), x = ea(Rn(Rn({ requiredNamespaces: a, optionalNamespaces: s, relays: d ?? [{ protocol: JQ }], proposer: { publicKey: y, metadata: this.client.metadata }, expiryTimestamp: w, pairingTopic: f }, o && { sessionProperties: o }), c && { scopedProperties: c }), { id: _l() }), S = Tn("session_connect", x.id), { reject: k, resolve: C, done: T } = Cf(b, AF), I = ({ id: A }) => {
56600
56600
  A === x.id && (this.client.events.off("proposal_expire", I), this.pendingSessions.delete(x.id), this.events.emit(S, { error: { message: AF, code: 0 } }));
56601
56601
  };
56602
56602
  return this.client.events.on("proposal_expire", I), this.events.once(S, ({ error: A, session: N }) => {
@@ -56670,7 +56670,7 @@ let Sje = class extends nOe {
56670
56670
  } catch (m) {
56671
56671
  throw this.client.logger.error("update() -> isValidUpdate() failed"), m;
56672
56672
  }
56673
- const { topic: r, namespaces: i } = n, { done: a, resolve: s, reject: o } = Cf(), c = xl(), d = xd().toString(), f = this.client.session.get(r).namespaces;
56673
+ const { topic: r, namespaces: i } = n, { done: a, resolve: s, reject: o } = Cf(), c = _l(), d = xd().toString(), f = this.client.session.get(r).namespaces;
56674
56674
  return this.events.once(Tn("session_update", c), ({ error: m }) => {
56675
56675
  m ? o(m) : s();
56676
56676
  }), await this.client.session.update(r, { namespaces: i }), await this.sendRequest({ topic: r, method: "wc_sessionUpdate", params: { namespaces: i }, throwOnFailedPublish: !0, clientRpcId: c, relayRpcId: d }).catch((m) => {
@@ -56683,7 +56683,7 @@ let Sje = class extends nOe {
56683
56683
  } catch (c) {
56684
56684
  throw this.client.logger.error("extend() -> isValidExtend() failed"), c;
56685
56685
  }
56686
- const { topic: r } = n, i = xl(), { done: a, resolve: s, reject: o } = Cf();
56686
+ const { topic: r } = n, i = _l(), { done: a, resolve: s, reject: o } = Cf();
56687
56687
  return this.events.once(Tn("session_extend", i), ({ error: c }) => {
56688
56688
  c ? o(c) : s();
56689
56689
  }), await this.setExpiry(r, Kr(Qp)), this.sendRequest({ topic: r, method: "wc_sessionExtend", params: {}, clientRpcId: i, throwOnFailedPublish: !0 }).catch((c) => {
@@ -56698,7 +56698,7 @@ let Sje = class extends nOe {
56698
56698
  }
56699
56699
  const { chainId: r, request: i, topic: a, expiry: s = Mi.wc_sessionRequest.req.ttl } = n, o = this.client.session.get(a);
56700
56700
  o?.transportType === lr.relay && await this.confirmOnlineStateOrThrow();
56701
- const c = xl(), d = xd().toString(), { done: f, resolve: m, reject: p } = Cf(s, "Request expired. Please try again.");
56701
+ const c = _l(), d = xd().toString(), { done: f, resolve: m, reject: p } = Cf(s, "Request expired. Please try again.");
56702
56702
  this.events.once(Tn("session_request", c), ({ error: x, result: S }) => {
56703
56703
  x ? p(x) : m(S);
56704
56704
  });
@@ -56729,7 +56729,7 @@ let Sje = class extends nOe {
56729
56729
  d.transportType === lr.relay && await this.confirmOnlineStateOrThrow();
56730
56730
  const f = this.getAppLinkIfEnabled(d.peer.metadata, d.transportType);
56731
56731
  try {
56732
- a.addTrace(Eo.session_request_response_publish_started), _l(o) ? await this.sendResult({ id: c, topic: s, result: o.result, throwOnFailedPublish: !0, appLink: f }) : Ys(o) && await this.sendError({ id: c, topic: s, error: o.error, appLink: f }), this.cleanupAfterResponse(n);
56732
+ a.addTrace(Eo.session_request_response_publish_started), El(o) ? await this.sendResult({ id: c, topic: s, result: o.result, throwOnFailedPublish: !0, appLink: f }) : Ys(o) && await this.sendError({ id: c, topic: s, error: o.error, appLink: f }), this.cleanupAfterResponse(n);
56733
56733
  } catch (m) {
56734
56734
  throw a.addTrace(m?.message), a.setError(vf.session_request_response_publish_failure), m;
56735
56735
  }
@@ -56742,14 +56742,14 @@ let Sje = class extends nOe {
56742
56742
  }
56743
56743
  const { topic: r } = n;
56744
56744
  if (this.client.session.keys.includes(r)) {
56745
- const i = xl(), a = xd().toString(), { done: s, resolve: o, reject: c } = Cf();
56745
+ const i = _l(), a = xd().toString(), { done: s, resolve: o, reject: c } = Cf();
56746
56746
  this.events.once(Tn("session_ping", i), ({ error: d }) => {
56747
56747
  d ? c(d) : o();
56748
56748
  }), await Promise.all([this.sendRequest({ topic: r, method: "wc_sessionPing", params: {}, throwOnFailedPublish: !0, clientRpcId: i, relayRpcId: a }), s()]);
56749
56749
  } else this.client.core.pairing.pairings.keys.includes(r) && (this.client.logger.warn("ping() on pairing topic is deprecated and will be removed in the next major release."), await this.client.core.pairing.ping({ topic: r }));
56750
56750
  }), Pe(this, "emit", async (n) => {
56751
56751
  this.isInitialized(), await this.confirmOnlineStateOrThrow(), await this.isValidEmit(n);
56752
- const { topic: r, event: i, chainId: a } = n, s = xd().toString(), o = xl();
56752
+ const { topic: r, event: i, chainId: a } = n, s = xd().toString(), o = _l();
56753
56753
  await this.sendRequest({ topic: r, method: "wc_sessionEvent", params: { event: i, chainId: a }, throwOnFailedPublish: !0, relayRpcId: s, clientRpcId: o });
56754
56754
  }), Pe(this, "disconnect", async (n) => {
56755
56755
  this.isInitialized(), await this.confirmOnlineStateOrThrow(), await this.isValidDisconnect(n);
@@ -56773,7 +56773,7 @@ let Sje = class extends nOe {
56773
56773
  let q = EAe(P, "request", w);
56774
56774
  j2(S) && (q = SAe(q, S.pop())), S.push(q);
56775
56775
  }
56776
- const A = x && x > Mi.wc_sessionAuthenticate.req.ttl ? x : Mi.wc_sessionAuthenticate.req.ttl, N = { authPayload: { type: p ?? "caip122", chains: o, statement: c, aud: d, domain: f, version: "1", nonce: m, iat: (/* @__PURE__ */ new Date()).toISOString(), exp: y, nbf: b, resources: S }, requester: { publicKey: T, metadata: this.client.metadata }, expiryTimestamp: Kr(A) }, U = { eip155: { chains: o, methods: [.../* @__PURE__ */ new Set(["personal_sign", ...w])], events: ["chainChanged", "accountsChanged"] } }, L = { requiredNamespaces: {}, optionalNamespaces: U, relays: [{ protocol: "irn" }], pairingTopic: k, proposer: { publicKey: T, metadata: this.client.metadata }, expiryTimestamp: Kr(Mi.wc_sessionPropose.req.ttl), id: xl() }, { done: M, resolve: W, reject: z } = Cf(A, "Request expired"), H = xl(), K = Tn("session_connect", L.id), R = Tn("session_request", H), O = async ({ error: P, session: q }) => {
56776
+ const A = x && x > Mi.wc_sessionAuthenticate.req.ttl ? x : Mi.wc_sessionAuthenticate.req.ttl, N = { authPayload: { type: p ?? "caip122", chains: o, statement: c, aud: d, domain: f, version: "1", nonce: m, iat: (/* @__PURE__ */ new Date()).toISOString(), exp: y, nbf: b, resources: S }, requester: { publicKey: T, metadata: this.client.metadata }, expiryTimestamp: Kr(A) }, U = { eip155: { chains: o, methods: [.../* @__PURE__ */ new Set(["personal_sign", ...w])], events: ["chainChanged", "accountsChanged"] } }, L = { requiredNamespaces: {}, optionalNamespaces: U, relays: [{ protocol: "irn" }], pairingTopic: k, proposer: { publicKey: T, metadata: this.client.metadata }, expiryTimestamp: Kr(Mi.wc_sessionPropose.req.ttl), id: _l() }, { done: M, resolve: W, reject: z } = Cf(A, "Request expired"), H = _l(), K = Tn("session_connect", L.id), R = Tn("session_request", H), O = async ({ error: P, session: q }) => {
56777
56777
  this.events.off(R, B), P ? z(P) : q && W({ session: q });
56778
56778
  }, B = async (P) => {
56779
56779
  var q, j, G;
@@ -56890,7 +56890,7 @@ let Sje = class extends nOe {
56890
56890
  const { topic: i, expirerHasDeleted: a = !1, emitEvent: s = !0, id: o = 0 } = n, { self: c } = this.client.session.get(i);
56891
56891
  await this.client.core.relayer.unsubscribe(i), await this.client.session.delete(i, cr("USER_DISCONNECTED")), this.addToRecentlyDeleted(i, "session"), this.client.core.crypto.keychain.has(c.publicKey) && await this.client.core.crypto.deleteKeyPair(c.publicKey), this.client.core.crypto.keychain.has(i) && await this.client.core.crypto.deleteSymKey(i), a || this.client.core.expirer.del(i), this.client.core.storage.removeItem(kF).catch((d) => this.client.logger.warn(d)), this.getPendingSessionRequests().forEach((d) => {
56892
56892
  d.topic === i && this.deletePendingSessionRequest(d.id, cr("USER_DISCONNECTED"));
56893
- }), i === ((r = this.sessionRequestQueue.queue[0]) == null ? void 0 : r.topic) && (this.sessionRequestQueue.state = ml.idle), s && this.client.events.emit("session_delete", { id: o, topic: i });
56893
+ }), i === ((r = this.sessionRequestQueue.queue[0]) == null ? void 0 : r.topic) && (this.sessionRequestQueue.state = gl.idle), s && this.client.events.emit("session_delete", { id: o, topic: i });
56894
56894
  }), Pe(this, "deleteProposal", async (n, r) => {
56895
56895
  if (r) try {
56896
56896
  const i = this.client.proposal.get(n);
@@ -56899,7 +56899,7 @@ let Sje = class extends nOe {
56899
56899
  }
56900
56900
  await Promise.all([this.client.proposal.delete(n, cr("USER_DISCONNECTED")), r ? Promise.resolve() : this.client.core.expirer.del(n)]), this.addToRecentlyDeleted(n, "proposal");
56901
56901
  }), Pe(this, "deletePendingSessionRequest", async (n, r, i = !1) => {
56902
- await Promise.all([this.client.pendingRequest.delete(n, r), i ? Promise.resolve() : this.client.core.expirer.del(n)]), this.addToRecentlyDeleted(n, "request"), this.sessionRequestQueue.queue = this.sessionRequestQueue.queue.filter((a) => a.id !== n), i && (this.sessionRequestQueue.state = ml.idle, this.client.events.emit("session_request_expire", { id: n }));
56902
+ await Promise.all([this.client.pendingRequest.delete(n, r), i ? Promise.resolve() : this.client.core.expirer.del(n)]), this.addToRecentlyDeleted(n, "request"), this.sessionRequestQueue.queue = this.sessionRequestQueue.queue.filter((a) => a.id !== n), i && (this.sessionRequestQueue.state = gl.idle, this.client.events.emit("session_request_expire", { id: n }));
56903
56903
  }), Pe(this, "deletePendingAuthRequest", async (n, r, i = !1) => {
56904
56904
  await Promise.all([this.client.auth.requests.delete(n, r), i ? Promise.resolve() : this.client.core.expirer.del(n)]);
56905
56905
  }), Pe(this, "setExpiry", async (n, r) => {
@@ -56999,21 +56999,21 @@ let Sje = class extends nOe {
56999
56999
  const n = [], r = [];
57000
57000
  this.client.session.getAll().forEach((i) => {
57001
57001
  let a = !1;
57002
- Sl(i.expiry) && (a = !0), this.client.core.crypto.keychain.has(i.topic) || (a = !0), a && n.push(i.topic);
57002
+ kl(i.expiry) && (a = !0), this.client.core.crypto.keychain.has(i.topic) || (a = !0), a && n.push(i.topic);
57003
57003
  }), this.client.proposal.getAll().forEach((i) => {
57004
- Sl(i.expiryTimestamp) && r.push(i.id);
57004
+ kl(i.expiryTimestamp) && r.push(i.id);
57005
57005
  }), await Promise.all([...n.map((i) => this.deleteSession({ topic: i })), ...r.map((i) => this.deleteProposal(i))]);
57006
57006
  }), Pe(this, "onProviderMessageEvent", async (n) => {
57007
57007
  !this.initialized || this.relayMessageCache.length > 0 ? this.relayMessageCache.push(n) : await this.onRelayMessage(n);
57008
57008
  }), Pe(this, "onRelayEventRequest", async (n) => {
57009
57009
  this.requestQueue.queue.push(n), await this.processRequestsQueue();
57010
57010
  }), Pe(this, "processRequestsQueue", async () => {
57011
- if (this.requestQueue.state === ml.active) {
57011
+ if (this.requestQueue.state === gl.active) {
57012
57012
  this.client.logger.info("Request queue already active, skipping...");
57013
57013
  return;
57014
57014
  }
57015
57015
  for (this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`); this.requestQueue.queue.length > 0; ) {
57016
- this.requestQueue.state = ml.active;
57016
+ this.requestQueue.state = gl.active;
57017
57017
  const n = this.requestQueue.queue.shift();
57018
57018
  if (n) try {
57019
57019
  await this.processRequest(n);
@@ -57021,7 +57021,7 @@ let Sje = class extends nOe {
57021
57021
  this.client.logger.warn(r);
57022
57022
  }
57023
57023
  }
57024
- this.requestQueue.state = ml.idle;
57024
+ this.requestQueue.state = gl.idle;
57025
57025
  }), Pe(this, "processRequest", async (n) => {
57026
57026
  const { topic: r, payload: i, attestation: a, transportType: s, encryptedId: o } = n, c = i.method;
57027
57027
  if (!this.shouldIgnorePairingRequest({ topic: r, requestMethod: c })) switch (c) {
@@ -57080,13 +57080,13 @@ let Sje = class extends nOe {
57080
57080
  const f = o.expiryTimestamp || Kr(Mi.wc_sessionPropose.req.ttl), m = Rn({ id: c, pairingTopic: r, expiryTimestamp: f, attestation: a, encryptedId: s }, o);
57081
57081
  await this.setProposal(c, m);
57082
57082
  const p = await this.getVerifyContext({ attestationId: a, hash: Ks(JSON.stringify(i)), encryptedId: s, metadata: m.proposer.metadata });
57083
- d?.addTrace(vl.emit_session_proposal), this.client.events.emit("session_proposal", { id: c, params: m, verifyContext: p });
57083
+ d?.addTrace(wl.emit_session_proposal), this.client.events.emit("session_proposal", { id: c, params: m, verifyContext: p });
57084
57084
  } catch (d) {
57085
57085
  await this.sendError({ id: c, topic: r, error: d, rpcOpts: Mi.wc_sessionPropose.autoReject }), this.client.logger.error(d);
57086
57086
  }
57087
57087
  }), Pe(this, "onSessionProposeResponse", async (n, r, i) => {
57088
57088
  const { id: a } = r;
57089
- if (_l(r)) {
57089
+ if (El(r)) {
57090
57090
  const { result: s } = r;
57091
57091
  this.client.logger.trace({ type: "method", method: "onSessionProposeResponse", result: s });
57092
57092
  const o = this.client.proposal.get(a);
@@ -57118,7 +57118,7 @@ let Sje = class extends nOe {
57118
57118
  }
57119
57119
  }), Pe(this, "onSessionSettleResponse", async (n, r) => {
57120
57120
  const { id: i } = r;
57121
- _l(r) ? (await this.client.session.update(n, { acknowledged: !0 }), this.events.emit(Tn("session_approve", i), {})) : Ys(r) && (await this.client.session.delete(n, cr("USER_DISCONNECTED")), this.events.emit(Tn("session_approve", i), { error: r.error }));
57121
+ El(r) ? (await this.client.session.update(n, { acknowledged: !0 }), this.events.emit(Tn("session_approve", i), {})) : Ys(r) && (await this.client.session.delete(n, cr("USER_DISCONNECTED")), this.events.emit(Tn("session_approve", i), { error: r.error }));
57122
57122
  }), Pe(this, "onSessionUpdateRequest", async (n, r) => {
57123
57123
  const { params: i, id: a } = r;
57124
57124
  try {
@@ -57140,7 +57140,7 @@ let Sje = class extends nOe {
57140
57140
  }), Pe(this, "isRequestOutOfSync", (n, r) => r.toString().slice(0, -3) < n.toString().slice(0, -3)), Pe(this, "onSessionUpdateResponse", (n, r) => {
57141
57141
  const { id: i } = r, a = Tn("session_update", i);
57142
57142
  if (this.events.listenerCount(a) === 0) throw new Error(`emitting ${a} without any listeners`);
57143
- _l(r) ? this.events.emit(Tn("session_update", i), {}) : Ys(r) && this.events.emit(Tn("session_update", i), { error: r.error });
57143
+ El(r) ? this.events.emit(Tn("session_update", i), {}) : Ys(r) && this.events.emit(Tn("session_update", i), { error: r.error });
57144
57144
  }), Pe(this, "onSessionExtendRequest", async (n, r) => {
57145
57145
  const { id: i } = r;
57146
57146
  try {
@@ -57151,7 +57151,7 @@ let Sje = class extends nOe {
57151
57151
  }), Pe(this, "onSessionExtendResponse", (n, r) => {
57152
57152
  const { id: i } = r, a = Tn("session_extend", i);
57153
57153
  if (this.events.listenerCount(a) === 0) throw new Error(`emitting ${a} without any listeners`);
57154
- _l(r) ? this.events.emit(Tn("session_extend", i), {}) : Ys(r) && this.events.emit(Tn("session_extend", i), { error: r.error });
57154
+ El(r) ? this.events.emit(Tn("session_extend", i), {}) : Ys(r) && this.events.emit(Tn("session_extend", i), { error: r.error });
57155
57155
  }), Pe(this, "onSessionPingRequest", async (n, r) => {
57156
57156
  const { id: i } = r;
57157
57157
  try {
@@ -57163,7 +57163,7 @@ let Sje = class extends nOe {
57163
57163
  const { id: i } = r, a = Tn("session_ping", i);
57164
57164
  setTimeout(() => {
57165
57165
  if (this.events.listenerCount(a) === 0) throw new Error(`emitting ${a} without any listeners 2176`);
57166
- _l(r) ? this.events.emit(Tn("session_ping", i), {}) : Ys(r) && this.events.emit(Tn("session_ping", i), { error: r.error });
57166
+ El(r) ? this.events.emit(Tn("session_ping", i), {}) : Ys(r) && this.events.emit(Tn("session_ping", i), { error: r.error });
57167
57167
  }, 500);
57168
57168
  }), Pe(this, "onSessionDeleteRequest", async (n, r) => {
57169
57169
  const { id: i } = r;
@@ -57189,7 +57189,7 @@ let Sje = class extends nOe {
57189
57189
  }), Pe(this, "onSessionRequestResponse", (n, r) => {
57190
57190
  const { id: i } = r, a = Tn("session_request", i);
57191
57191
  if (this.events.listenerCount(a) === 0) throw new Error(`emitting ${a} without any listeners`);
57192
- _l(r) ? this.events.emit(Tn("session_request", i), { result: r.result }) : Ys(r) && this.events.emit(Tn("session_request", i), { error: r.error });
57192
+ El(r) ? this.events.emit(Tn("session_request", i), { result: r.result }) : Ys(r) && this.events.emit(Tn("session_request", i), { error: r.error });
57193
57193
  }), Pe(this, "onSessionEventRequest", async (n, r) => {
57194
57194
  const { id: i, params: a } = r;
57195
57195
  try {
@@ -57204,7 +57204,7 @@ let Sje = class extends nOe {
57204
57204
  }
57205
57205
  }), Pe(this, "onSessionAuthenticateResponse", (n, r) => {
57206
57206
  const { id: i } = r;
57207
- this.client.logger.trace({ type: "method", method: "onSessionAuthenticateResponse", topic: n, payload: r }), _l(r) ? this.events.emit(Tn("session_request", i), { result: r.result }) : Ys(r) && this.events.emit(Tn("session_request", i), { error: r.error });
57207
+ this.client.logger.trace({ type: "method", method: "onSessionAuthenticateResponse", topic: n, payload: r }), El(r) ? this.events.emit(Tn("session_request", i), { result: r.result }) : Ys(r) && this.events.emit(Tn("session_request", i), { error: r.error });
57208
57208
  }), Pe(this, "onSessionAuthenticateRequest", async (n) => {
57209
57209
  var r;
57210
57210
  const { topic: i, payload: a, attestation: s, encryptedId: o, transportType: c } = n;
@@ -57220,7 +57220,7 @@ let Sje = class extends nOe {
57220
57220
  this.sessionRequestQueue.queue.push(n);
57221
57221
  }), Pe(this, "cleanupAfterResponse", (n) => {
57222
57222
  this.deletePendingSessionRequest(n.response.id, { message: "fulfilled", code: 0 }), setTimeout(() => {
57223
- this.sessionRequestQueue.state = ml.idle, this.processSessionRequestQueue();
57223
+ this.sessionRequestQueue.state = gl.idle, this.processSessionRequestQueue();
57224
57224
  }, Ge.toMiliseconds(this.requestQueueDelay));
57225
57225
  }), Pe(this, "cleanupPendingSentRequestsForTopic", ({ topic: n, error: r }) => {
57226
57226
  const i = this.client.core.history.pending;
@@ -57230,7 +57230,7 @@ let Sje = class extends nOe {
57230
57230
  this.events.emit(Tn("session_request", a.request.id), { error: r });
57231
57231
  });
57232
57232
  }), Pe(this, "processSessionRequestQueue", () => {
57233
- if (this.sessionRequestQueue.state === ml.active) {
57233
+ if (this.sessionRequestQueue.state === gl.active) {
57234
57234
  this.client.logger.info("session request queue is already active.");
57235
57235
  return;
57236
57236
  }
@@ -57249,7 +57249,7 @@ let Sje = class extends nOe {
57249
57249
  this.client.logger.warn({ id: n.id }, `Skipping emitting \`session_request\` event for duplicate request. id: ${n.id}`);
57250
57250
  return;
57251
57251
  }
57252
- this.sessionRequestQueue.state = ml.active, this.emittedSessionRequests.add(n.id), this.client.events.emit("session_request", n);
57252
+ this.sessionRequestQueue.state = gl.active, this.emittedSessionRequests.add(n.id), this.client.events.emit("session_request", n);
57253
57253
  }), Pe(this, "onPairingCreated", (n) => {
57254
57254
  if (n.methods && this.expectedPairingMethodMap.set(n.topic, n.methods), n.active) return;
57255
57255
  const r = this.client.proposal.getAll().find((i) => i.pairingTopic === n.topic);
@@ -57264,11 +57264,11 @@ let Sje = class extends nOe {
57264
57264
  const { message: d } = He("MISSING_OR_INVALID", `connect() relays: ${c}`);
57265
57265
  throw new Error(d);
57266
57266
  }
57267
- if (i && !di(i) && jl(i) !== 0) {
57267
+ if (i && !di(i) && Ml(i) !== 0) {
57268
57268
  const d = "requiredNamespaces are deprecated and are automatically assigned to optionalNamespaces";
57269
57269
  ["fatal", "error", "silent"].includes(this.client.logger.level) ? console.warn(d) : this.client.logger.warn(d), this.validateNamespaces(i, "requiredNamespaces");
57270
57270
  }
57271
- if (a && !di(a) && jl(a) !== 0 && this.validateNamespaces(a, "optionalNamespaces"), s && !di(s) && this.validateSessionProps(s, "sessionProperties"), o && !di(o)) {
57271
+ if (a && !di(a) && Ml(a) !== 0 && this.validateNamespaces(a, "optionalNamespaces"), s && !di(s) && this.validateSessionProps(s, "sessionProperties"), o && !di(o)) {
57272
57272
  this.validateSessionProps(o, "scopedProperties");
57273
57273
  const d = Object.keys(i || {}).concat(Object.keys(a || {}));
57274
57274
  if (!Object.keys(o).every((f) => d.includes(f.split(":")[0]))) throw new Error(`Scoped properties must be a subset of required/optional namespaces, received: ${JSON.stringify(o)}, required/optional namespaces: ${JSON.stringify(d)}`);
@@ -57317,7 +57317,7 @@ let Sje = class extends nOe {
57317
57317
  if (o) throw new Error(o.message);
57318
57318
  const c = QE(a, "onSessionSettleRequest()");
57319
57319
  if (c) throw new Error(c.message);
57320
- if (Sl(s)) {
57320
+ if (kl(s)) {
57321
57321
  const { message: d } = He("EXPIRED", "onSessionSettleRequest()");
57322
57322
  throw new Error(d);
57323
57323
  }
@@ -57589,7 +57589,7 @@ let Sje = class extends nOe {
57589
57589
  const { message: n } = He("NO_MATCHING_KEY", `pairing topic doesn't exist: ${e}`);
57590
57590
  throw new Error(n);
57591
57591
  }
57592
- if (Sl(this.client.core.pairing.pairings.get(e).expiry)) {
57592
+ if (kl(this.client.core.pairing.pairings.get(e).expiry)) {
57593
57593
  const { message: n } = He("EXPIRED", `pairing topic: ${e}`);
57594
57594
  throw new Error(n);
57595
57595
  }
@@ -57603,7 +57603,7 @@ let Sje = class extends nOe {
57603
57603
  const { message: n } = He("NO_MATCHING_KEY", `session topic doesn't exist: ${e}`);
57604
57604
  throw new Error(n);
57605
57605
  }
57606
- if (Sl(this.client.session.get(e).expiry)) {
57606
+ if (kl(this.client.session.get(e).expiry)) {
57607
57607
  await this.deleteSession({ topic: e });
57608
57608
  const { message: n } = He("EXPIRED", `session topic: ${e}`);
57609
57609
  throw new Error(n);
@@ -57633,7 +57633,7 @@ let Sje = class extends nOe {
57633
57633
  const { message: n } = He("NO_MATCHING_KEY", `proposal id doesn't exist: ${e}`);
57634
57634
  throw new Error(n);
57635
57635
  }
57636
- if (Sl(this.client.proposal.get(e).expiryTimestamp)) {
57636
+ if (kl(this.client.proposal.get(e).expiryTimestamp)) {
57637
57637
  await this.deleteProposal(e);
57638
57638
  const { message: n } = He("EXPIRED", `proposal id: ${e}`);
57639
57639
  throw new Error(n);
@@ -57805,7 +57805,7 @@ const Lje = Dje;
57805
57805
  var r2 = { exports: {} }, $F;
57806
57806
  function Uje() {
57807
57807
  return $F || ($F = 1, (function(t, e) {
57808
- var n = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof El < "u" && El, r = (function() {
57808
+ var n = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Cl < "u" && Cl, r = (function() {
57809
57809
  function a() {
57810
57810
  this.fetch = !1, this.DOMException = n.DOMException;
57811
57811
  }
@@ -57814,7 +57814,7 @@ function Uje() {
57814
57814
  (function(a) {
57815
57815
  (function(s) {
57816
57816
  var o = typeof a < "u" && a || typeof self < "u" && self || // eslint-disable-next-line no-undef
57817
- typeof El < "u" && El || {}, c = {
57817
+ typeof Cl < "u" && Cl || {}, c = {
57818
57818
  searchParams: "URLSearchParams" in o,
57819
57819
  iterable: "Symbol" in o && "iterator" in Symbol,
57820
57820
  blob: "FileReader" in o && "Blob" in o && (function() {
@@ -58486,10 +58486,10 @@ function s2(t = {}, e = {}) {
58486
58486
  function qF(t) {
58487
58487
  var e, n, r, i, a;
58488
58488
  const s = {};
58489
- if (!jl(t)) return s;
58489
+ if (!Ml(t)) return s;
58490
58490
  for (const [o, c] of Object.entries(t)) {
58491
58491
  const d = j6(o) ? [o] : c.chains, f = c.methods || [], m = c.events || [], p = c.rpcMap || {}, y = m0(o);
58492
- s[y] = IMe(a2(a2({}, s[y]), c), { chains: Pl(d, (e = s[y]) == null ? void 0 : e.chains), methods: Pl(f, (n = s[y]) == null ? void 0 : n.methods), events: Pl(m, (r = s[y]) == null ? void 0 : r.events) }), (jl(p) || jl(((i = s[y]) == null ? void 0 : i.rpcMap) || {})) && (s[y].rpcMap = a2(a2({}, p), (a = s[y]) == null ? void 0 : a.rpcMap));
58492
+ s[y] = IMe(a2(a2({}, s[y]), c), { chains: jl(d, (e = s[y]) == null ? void 0 : e.chains), methods: jl(f, (n = s[y]) == null ? void 0 : n.methods), events: jl(m, (r = s[y]) == null ? void 0 : r.events) }), (Ml(p) || Ml(((i = s[y]) == null ? void 0 : i.rpcMap) || {})) && (s[y].rpcMap = a2(a2({}, p), (a = s[y]) == null ? void 0 : a.rpcMap));
58493
58493
  }
58494
58494
  return s;
58495
58495
  }
@@ -58525,7 +58525,7 @@ var PMe = Object.defineProperty, GF = Object.getOwnPropertySymbols, jMe = Object
58525
58525
  };
58526
58526
  const ZF = "eip155", DMe = ["atomic", "flow-control", "paymasterService", "sessionKeys", "auxiliaryFunds"], LMe = (t) => t && t.startsWith("0x") ? BigInt(t).toString(10) : t, uC = (t) => t && t.startsWith("0x") ? t : `0x${BigInt(t).toString(16)}`, QF = (t) => Object.keys(t).filter((e) => DMe.includes(e)).reduce((e, n) => (e[n] = UMe(t[n]), e), {}), UMe = (t) => typeof t == "string" && RMe(t) ? JSON.parse(t) : t, FMe = (t, e, n) => {
58527
58527
  const { sessionProperties: r = {}, scopedProperties: i = {} } = t, a = {};
58528
- if (!jl(i) && !jl(r)) return;
58528
+ if (!Ml(i) && !Ml(r)) return;
58529
58529
  const s = QF(r);
58530
58530
  for (const o of n) {
58531
58531
  const c = LMe(o);
@@ -58581,13 +58581,13 @@ async function tDe({ resultId: t, storage: e }) {
58581
58581
  const n = await e.getItem(I0);
58582
58582
  if (n) {
58583
58583
  delete n[t], await e.setItem(I0, n);
58584
- for (const r in n) Sl(n[r].expiry) && delete n[r];
58584
+ for (const r in n) kl(n[r].expiry) && delete n[r];
58585
58585
  await e.setItem(I0, n);
58586
58586
  }
58587
58587
  }
58588
58588
  async function nDe({ resultId: t, storage: e }) {
58589
58589
  const n = await e.getItem(I0), r = n?.[t];
58590
- if (r && !Sl(r.expiry)) return r;
58590
+ if (r && !kl(r.expiry)) return r;
58591
58591
  await tDe({ resultId: t, storage: e });
58592
58592
  }
58593
58593
  var rDe = Object.defineProperty, iDe = Object.defineProperties, aDe = Object.getOwnPropertyDescriptors, eB = Object.getOwnPropertySymbols, sDe = Object.prototype.hasOwnProperty, oDe = Object.prototype.propertyIsEnumerable, P7 = (t, e, n) => e in t ? rDe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, fC = (t, e) => {
@@ -59039,7 +59039,7 @@ let yDe = class NX {
59039
59039
  }
59040
59040
  };
59041
59041
  const bDe = yDe, vDe = "wc", wDe = "ethereum_provider", xDe = `${vDe}@2:${wDe}:`, _De = "https://rpc.walletconnect.org/v1/", M7 = ["eth_sendTransaction", "personal_sign"], RX = ["eth_accounts", "eth_requestAccounts", "eth_sendRawTransaction", "eth_sign", "eth_signTransaction", "eth_signTypedData", "eth_signTypedData_v3", "eth_signTypedData_v4", "eth_sendTransaction", "personal_sign", "wallet_switchEthereumChain", "wallet_addEthereumChain", "wallet_getPermissions", "wallet_requestPermissions", "wallet_registerOnboarding", "wallet_watchAsset", "wallet_scanQRCode", "wallet_sendCalls", "wallet_getCapabilities", "wallet_getCallsStatus", "wallet_showCallsStatus"], D7 = ["chainChanged", "accountsChanged"], PX = ["chainChanged", "accountsChanged", "message", "disconnect", "connect"], EDe = async () => {
59042
- const { createAppKit: t } = await import("./core-CF2-hC7T.js").then((e) => e.a2);
59042
+ const { createAppKit: t } = await import("./core-DTsAxiJb.js").then((e) => e.a2);
59043
59043
  return t;
59044
59044
  };
59045
59045
  var CDe = Object.defineProperty, SDe = Object.defineProperties, kDe = Object.getOwnPropertyDescriptors, nB = Object.getOwnPropertySymbols, ADe = Object.prototype.hasOwnProperty, TDe = Object.prototype.propertyIsEnumerable, L7 = (t, e, n) => e in t ? CDe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Sf = (t, e) => {
@@ -59754,14 +59754,14 @@ let mLe = class {
59754
59754
  get isHandoffComplete() {
59755
59755
  return this.handoffState === "complete";
59756
59756
  }
59757
- }, Ml = new mLe();
59757
+ }, Dl = new mLe();
59758
59758
  function Wh(t) {
59759
59759
  var e;
59760
- return Ml.isServer ? null : t == null ? document : (e = t?.ownerDocument) != null ? e : document;
59760
+ return Dl.isServer ? null : t == null ? document : (e = t?.ownerDocument) != null ? e : document;
59761
59761
  }
59762
59762
  function n5(t) {
59763
59763
  var e, n;
59764
- return Ml.isServer ? null : t == null ? document : (n = (e = t?.getRootNode) == null ? void 0 : e.call(t)) != null ? n : document;
59764
+ return Dl.isServer ? null : t == null ? document : (n = (e = t?.getRootNode) == null ? void 0 : e.call(t)) != null ? n : document;
59765
59765
  }
59766
59766
  function g$(t) {
59767
59767
  var e, n;
@@ -59816,7 +59816,7 @@ function qh() {
59816
59816
  return _.useEffect(() => () => t.dispose(), [t]), t;
59817
59817
  }
59818
59818
  let dr = (t, e) => {
59819
- Ml.isServer ? _.useEffect(t, e) : _.useLayoutEffect(t, e);
59819
+ Dl.isServer ? _.useEffect(t, e) : _.useLayoutEffect(t, e);
59820
59820
  };
59821
59821
  function Hh(t) {
59822
59822
  let e = _.useRef(t);
@@ -60005,7 +60005,7 @@ function eu(t) {
60005
60005
  function Ss(t) {
60006
60006
  return eu(t) && "accessKey" in t;
60007
60007
  }
60008
- function Ol(t) {
60008
+ function Nl(t) {
60009
60009
  return eu(t) && "tabIndex" in t;
60010
60010
  }
60011
60011
  function $Le(t) {
@@ -60182,10 +60182,10 @@ var GLe = Object.defineProperty, KLe = (t, e, n) => e in t ? GLe(t, e, { enumera
60182
60182
  }, Ws = (t, e, n) => (cJ(t, e, "read from private field"), n ? n.call(t) : e.get(t)), yC = (t, e, n) => {
60183
60183
  if (e.has(t)) throw TypeError("Cannot add the same private member more than once");
60184
60184
  e instanceof WeakSet ? e.add(t) : e.set(t, n);
60185
- }, cB = (t, e, n, r) => (cJ(t, e, "write to private field"), e.set(t, n), n), wl, wy, xy;
60185
+ }, cB = (t, e, n, r) => (cJ(t, e, "write to private field"), e.set(t, n), n), xl, wy, xy;
60186
60186
  let uJ = class {
60187
60187
  constructor(e) {
60188
- yC(this, wl, {}), yC(this, wy, new lJ(() => /* @__PURE__ */ new Set())), yC(this, xy, /* @__PURE__ */ new Set()), YLe(this, "disposables", Ja()), cB(this, wl, e), Ml.isServer && this.disposables.microTask(() => {
60188
+ yC(this, xl, {}), yC(this, wy, new lJ(() => /* @__PURE__ */ new Set())), yC(this, xy, /* @__PURE__ */ new Set()), YLe(this, "disposables", Ja()), cB(this, xl, e), Dl.isServer && this.disposables.microTask(() => {
60189
60189
  this.dispose();
60190
60190
  });
60191
60191
  }
@@ -60193,35 +60193,35 @@ let uJ = class {
60193
60193
  this.disposables.dispose();
60194
60194
  }
60195
60195
  get state() {
60196
- return Ws(this, wl);
60196
+ return Ws(this, xl);
60197
60197
  }
60198
60198
  subscribe(e, n) {
60199
- if (Ml.isServer) return () => {
60199
+ if (Dl.isServer) return () => {
60200
60200
  };
60201
- let r = { selector: e, callback: n, current: e(Ws(this, wl)) };
60201
+ let r = { selector: e, callback: n, current: e(Ws(this, xl)) };
60202
60202
  return Ws(this, xy).add(r), this.disposables.add(() => {
60203
60203
  Ws(this, xy).delete(r);
60204
60204
  });
60205
60205
  }
60206
60206
  on(e, n) {
60207
- return Ml.isServer ? () => {
60207
+ return Dl.isServer ? () => {
60208
60208
  } : (Ws(this, wy).get(e).add(n), this.disposables.add(() => {
60209
60209
  Ws(this, wy).get(e).delete(n);
60210
60210
  }));
60211
60211
  }
60212
60212
  send(e) {
60213
- let n = this.reduce(Ws(this, wl), e);
60214
- if (n !== Ws(this, wl)) {
60215
- cB(this, wl, n);
60213
+ let n = this.reduce(Ws(this, xl), e);
60214
+ if (n !== Ws(this, xl)) {
60215
+ cB(this, xl, n);
60216
60216
  for (let r of Ws(this, xy)) {
60217
- let i = r.selector(Ws(this, wl));
60217
+ let i = r.selector(Ws(this, xl));
60218
60218
  dJ(r.current, i) || (r.current = i, r.callback(i));
60219
60219
  }
60220
- for (let r of Ws(this, wy).get(e.type)) r(Ws(this, wl), e);
60220
+ for (let r of Ws(this, wy).get(e.type)) r(Ws(this, xl), e);
60221
60221
  }
60222
60222
  }
60223
60223
  };
60224
- wl = /* @__PURE__ */ new WeakMap(), wy = /* @__PURE__ */ new WeakMap(), xy = /* @__PURE__ */ new WeakMap();
60224
+ xl = /* @__PURE__ */ new WeakMap(), wy = /* @__PURE__ */ new WeakMap(), xy = /* @__PURE__ */ new WeakMap();
60225
60225
  function dJ(t, e) {
60226
60226
  return Object.is(t, e) ? !0 : typeof t != "object" || t === null || typeof e != "object" || e === null ? !1 : Array.isArray(t) && Array.isArray(e) ? t.length !== e.length ? !1 : bC(t[Symbol.iterator](), e[Symbol.iterator]()) : t instanceof Map && e instanceof Map || t instanceof Set && e instanceof Set ? t.size !== e.size ? !1 : bC(t.entries(), e.entries()) : uB(t) && uB(e) ? bC(Object.entries(t)[Symbol.iterator](), Object.entries(e)[Symbol.iterator]()) : !1;
60227
60227
  }
@@ -60417,7 +60417,7 @@ function w$(t, e = 0) {
60417
60417
  function yJ(t) {
60418
60418
  Ja().nextFrame(() => {
60419
60419
  let e = g$(t);
60420
- e && Ol(e) && !w$(e, 0) && Dl(t);
60420
+ e && Nl(e) && !w$(e, 0) && Ll(t);
60421
60421
  });
60422
60422
  }
60423
60423
  var oUe = ((t) => (t[t.Keyboard = 0] = "Keyboard", t[t.Mouse = 1] = "Mouse", t))(oUe || {});
@@ -60426,7 +60426,7 @@ typeof window < "u" && typeof document < "u" && (document.addEventListener("keyd
60426
60426
  }, !0), document.addEventListener("click", (t) => {
60427
60427
  t.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : t.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
60428
60428
  }, !0));
60429
- function Dl(t) {
60429
+ function Ll(t) {
60430
60430
  t?.focus({ preventScroll: !0 });
60431
60431
  }
60432
60432
  let lUe = ["textarea", "input"].join(",");
@@ -60525,7 +60525,7 @@ function xJ(t, e, n) {
60525
60525
  s.current.x = o.touches[0].clientX, s.current.y = o.touches[0].clientY;
60526
60526
  }, !0), y0(t, "touchend", (o) => {
60527
60527
  let c = { x: o.changedTouches[0].clientX, y: o.changedTouches[0].clientY };
60528
- if (!(Math.abs(c.x - s.current.x) >= bB || Math.abs(c.y - s.current.y) >= bB)) return i(o, () => Ol(o.target) ? o.target : null);
60528
+ if (!(Math.abs(c.x - s.current.x) >= bB || Math.abs(c.y - s.current.y) >= bB)) return i(o, () => Nl(o.target) ? o.target : null);
60529
60529
  }, !0), wJ(t, "blur", (o) => i(o, () => ILe(window.document.activeElement) ? window.document.activeElement : null), !0);
60530
60530
  }
60531
60531
  function B1(...t) {
@@ -60540,7 +60540,7 @@ function pUe(t, { trigger: e, action: n, close: r, select: i }) {
60540
60540
  }), y0(t && e !== null, "pointerup", (c) => {
60541
60541
  var d, f;
60542
60542
  let m = a.current;
60543
- if (m === null || (a.current = null, !Ol(c.target)) || Math.abs(c.x - ((d = s.current) != null ? d : c.x)) < vB && Math.abs(c.y - ((f = o.current) != null ? f : c.y)) < vB) return;
60543
+ if (m === null || (a.current = null, !Nl(c.target)) || Math.abs(c.x - ((d = s.current) != null ? d : c.x)) < vB && Math.abs(c.y - ((f = o.current) != null ? f : c.y)) < vB) return;
60544
60544
  let p = n(c);
60545
60545
  switch (p.kind) {
60546
60546
  case 0:
@@ -60613,23 +60613,23 @@ function vUe() {
60613
60613
  }
60614
60614
  let a = (i = window.scrollY) != null ? i : window.pageYOffset, s = null;
60615
60615
  e.addEventListener(t, "click", (o) => {
60616
- if (Ol(o.target)) try {
60616
+ if (Nl(o.target)) try {
60617
60617
  let c = o.target.closest("a");
60618
60618
  if (!c) return;
60619
60619
  let { hash: d } = new URL(c.href), f = t.querySelector(d);
60620
- Ol(f) && !r(f) && (s = f);
60620
+ Nl(f) && !r(f) && (s = f);
60621
60621
  } catch {
60622
60622
  }
60623
60623
  }, !0), e.group((o) => {
60624
60624
  e.addEventListener(t, "touchstart", (c) => {
60625
- if (o.dispose(), Ol(c.target) && $Le(c.target)) if (r(c.target)) {
60625
+ if (o.dispose(), Nl(c.target) && $Le(c.target)) if (r(c.target)) {
60626
60626
  let d = c.target;
60627
60627
  for (; d.parentElement && r(d.parentElement); ) d = d.parentElement;
60628
60628
  o.style(d, "overscrollBehavior", "contain");
60629
60629
  } else o.style(c.target, "touchAction", "none");
60630
60630
  });
60631
60631
  }), e.addEventListener(t, "touchmove", (o) => {
60632
- if (Ol(o.target)) {
60632
+ if (Nl(o.target)) {
60633
60633
  if (tJ(o.target)) return;
60634
60634
  if (r(o.target)) {
60635
60635
  let c = o.target;
@@ -60815,7 +60815,7 @@ function kJ(t) {
60815
60815
  function ma(t) {
60816
60816
  return W6() ? t instanceof Element || t instanceof _s(t).Element : !1;
60817
60817
  }
60818
- function zl(t) {
60818
+ function Wl(t) {
60819
60819
  return W6() ? t instanceof HTMLElement || t instanceof _s(t).HTMLElement : !1;
60820
60820
  }
60821
60821
  function CB(t) {
@@ -60852,7 +60852,7 @@ function _$(t) {
60852
60852
  }
60853
60853
  function DUe(t) {
60854
60854
  let e = jd(t);
60855
- for (; zl(e) && !lm(e); ) {
60855
+ for (; Wl(e) && !lm(e); ) {
60856
60856
  if (_$(e))
60857
60857
  return e;
60858
60858
  if (q6(e))
@@ -60894,7 +60894,7 @@ function jd(t) {
60894
60894
  }
60895
60895
  function AJ(t) {
60896
60896
  const e = jd(t);
60897
- return lm(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : zl(e) && Fb(e) ? e : AJ(e);
60897
+ return lm(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Wl(e) && Fb(e) ? e : AJ(e);
60898
60898
  }
60899
60899
  function z1(t, e, n) {
60900
60900
  var r;
@@ -60919,7 +60919,7 @@ function UUe() {
60919
60919
  return n + "/" + r;
60920
60920
  }).join(" ") : navigator.userAgent;
60921
60921
  }
60922
- const xh = Math.min, ia = Math.max, W1 = Math.round, f2 = Math.floor, Ll = (t) => ({
60922
+ const xh = Math.min, ia = Math.max, W1 = Math.round, f2 = Math.floor, Ul = (t) => ({
60923
60923
  x: t,
60924
60924
  y: t
60925
60925
  }), FUe = {
@@ -61410,7 +61410,7 @@ const tFe = function(t) {
61410
61410
  function OJ(t) {
61411
61411
  const e = Ko(t);
61412
61412
  let n = parseFloat(e.width) || 0, r = parseFloat(e.height) || 0;
61413
- const i = zl(t), a = i ? t.offsetWidth : n, s = i ? t.offsetHeight : r, o = W1(n) !== a || W1(r) !== s;
61413
+ const i = Wl(t), a = i ? t.offsetWidth : n, s = i ? t.offsetHeight : r, o = W1(n) !== a || W1(r) !== s;
61414
61414
  return o && (n = a, r = s), {
61415
61415
  width: n,
61416
61416
  height: r,
@@ -61422,8 +61422,8 @@ function C$(t) {
61422
61422
  }
61423
61423
  function P0(t) {
61424
61424
  const e = C$(t);
61425
- if (!zl(e))
61426
- return Ll(1);
61425
+ if (!Wl(e))
61426
+ return Ul(1);
61427
61427
  const n = e.getBoundingClientRect(), {
61428
61428
  width: r,
61429
61429
  height: i,
@@ -61435,7 +61435,7 @@ function P0(t) {
61435
61435
  y: o
61436
61436
  };
61437
61437
  }
61438
- const iFe = /* @__PURE__ */ Ll(0);
61438
+ const iFe = /* @__PURE__ */ Ul(0);
61439
61439
  function NJ(t) {
61440
61440
  const e = _s(t);
61441
61441
  return !E$() || !e.visualViewport ? iFe : {
@@ -61449,9 +61449,9 @@ function aFe(t, e, n) {
61449
61449
  function _h(t, e, n, r) {
61450
61450
  e === void 0 && (e = !1), n === void 0 && (n = !1);
61451
61451
  const i = t.getBoundingClientRect(), a = C$(t);
61452
- let s = Ll(1);
61452
+ let s = Ul(1);
61453
61453
  e && (r ? ma(r) && (s = P0(r)) : s = P0(t));
61454
- const o = aFe(a, n, r) ? NJ(a) : Ll(0);
61454
+ const o = aFe(a, n, r) ? NJ(a) : Ul(0);
61455
61455
  let c = (i.left + o.x) / s.x, d = (i.top + o.y) / s.y, f = i.width / s.x, m = i.height / s.y;
61456
61456
  if (a) {
61457
61457
  const p = _s(a), y = r && ma(r) ? _s(r) : r;
@@ -61492,13 +61492,13 @@ function sFe(t) {
61492
61492
  let c = {
61493
61493
  scrollLeft: 0,
61494
61494
  scrollTop: 0
61495
- }, d = Ll(1);
61496
- const f = Ll(0), m = zl(r);
61497
- if ((m || !m && !a) && ((Am(r) !== "body" || Fb(s)) && (c = H6(r)), zl(r))) {
61495
+ }, d = Ul(1);
61496
+ const f = Ul(0), m = Wl(r);
61497
+ if ((m || !m && !a) && ((Am(r) !== "body" || Fb(s)) && (c = H6(r)), Wl(r))) {
61498
61498
  const y = _h(r);
61499
61499
  d = P0(r), f.x = y.x + r.clientLeft, f.y = y.y + r.clientTop;
61500
61500
  }
61501
- const p = s && !m && !a ? RJ(s, c) : Ll(0);
61501
+ const p = s && !m && !a ? RJ(s, c) : Ul(0);
61502
61502
  return {
61503
61503
  width: n.width * d.x,
61504
61504
  height: n.height * d.y,
@@ -61543,7 +61543,7 @@ function cFe(t, e) {
61543
61543
  }
61544
61544
  const uFe = /* @__PURE__ */ new Set(["absolute", "fixed"]);
61545
61545
  function dFe(t, e) {
61546
- const n = _h(t, !0, e === "fixed"), r = n.top + t.clientTop, i = n.left + t.clientLeft, a = zl(t) ? P0(t) : Ll(1), s = t.clientWidth * a.x, o = t.clientHeight * a.y, c = i * a.x, d = r * a.y;
61546
+ const n = _h(t, !0, e === "fixed"), r = n.top + t.clientTop, i = n.left + t.clientLeft, a = Wl(t) ? P0(t) : Ul(1), s = t.clientWidth * a.x, o = t.clientHeight * a.y, c = i * a.x, d = r * a.y;
61547
61547
  return {
61548
61548
  width: s,
61549
61549
  height: o,
@@ -61616,12 +61616,12 @@ function pFe(t) {
61616
61616
  };
61617
61617
  }
61618
61618
  function mFe(t, e, n) {
61619
- const r = zl(e), i = Xl(e), a = n === "fixed", s = _h(t, !0, a, e);
61619
+ const r = Wl(e), i = Xl(e), a = n === "fixed", s = _h(t, !0, a, e);
61620
61620
  let o = {
61621
61621
  scrollLeft: 0,
61622
61622
  scrollTop: 0
61623
61623
  };
61624
- const c = Ll(0);
61624
+ const c = Ul(0);
61625
61625
  function d() {
61626
61626
  c.x = G6(i);
61627
61627
  }
@@ -61631,7 +61631,7 @@ function mFe(t, e, n) {
61631
61631
  c.x = y.x + e.clientLeft, c.y = y.y + e.clientTop;
61632
61632
  } else i && d();
61633
61633
  a && !r && i && d();
61634
- const f = i && !r && !a ? RJ(i, o) : Ll(0), m = s.left + o.scrollLeft - c.x - f.x, p = s.top + o.scrollTop - c.y - f.y;
61634
+ const f = i && !r && !a ? RJ(i, o) : Ul(0), m = s.left + o.scrollLeft - c.x - f.x, p = s.top + o.scrollTop - c.y - f.y;
61635
61635
  return {
61636
61636
  x: m,
61637
61637
  y: p,
@@ -61643,7 +61643,7 @@ function xC(t) {
61643
61643
  return Ko(t).position === "static";
61644
61644
  }
61645
61645
  function OB(t, e) {
61646
- if (!zl(t) || Ko(t).position === "fixed")
61646
+ if (!Wl(t) || Ko(t).position === "fixed")
61647
61647
  return null;
61648
61648
  if (e)
61649
61649
  return e(t);
@@ -61654,7 +61654,7 @@ function jJ(t, e) {
61654
61654
  const n = _s(t);
61655
61655
  if (q6(t))
61656
61656
  return n;
61657
- if (!zl(t)) {
61657
+ if (!Wl(t)) {
61658
61658
  let i = jd(t);
61659
61659
  for (; i && !lm(i); ) {
61660
61660
  if (ma(i) && !xC(i))
@@ -62418,7 +62418,7 @@ function iBe(t) {
62418
62418
  let wd = [];
62419
62419
  iBe(() => {
62420
62420
  function t(e) {
62421
- if (!Ol(e.target) || e.target === document.body || wd[0] === e.target) return;
62421
+ if (!Nl(e.target) || e.target === document.body || wd[0] === e.target) return;
62422
62422
  let n = e.target;
62423
62423
  n = n.closest(i5), wd.unshift(n ?? e.target), wd = wd.filter((r) => r != null && r.isConnected), wd.splice(10);
62424
62424
  }
@@ -62479,7 +62479,7 @@ function oBe(t) {
62479
62479
  let e = sBe(), n = _.useContext(HJ), [r, i] = _.useState(() => {
62480
62480
  var a;
62481
62481
  if (!e && n !== null) return (a = n.current) != null ? a : null;
62482
- if (Ml.isServer) return null;
62482
+ if (Dl.isServer) return null;
62483
62483
  let s = t?.getElementById("headlessui-portal-root");
62484
62484
  if (s) return s;
62485
62485
  if (t === null) return null;
@@ -62589,10 +62589,10 @@ function bBe() {
62589
62589
  }, () => !1, () => !t) : !1;
62590
62590
  }
62591
62591
  function Y6() {
62592
- let t = bBe(), [e, n] = _.useState(Ml.isHandoffComplete);
62593
- return e && Ml.isHandoffComplete === !1 && n(!1), _.useEffect(() => {
62592
+ let t = bBe(), [e, n] = _.useState(Dl.isHandoffComplete);
62593
+ return e && Dl.isHandoffComplete === !1 && n(!1), _.useEffect(() => {
62594
62594
  e !== !0 && n(!0);
62595
- }, [e]), _.useEffect(() => Ml.handoff(), []), t ? !1 : e;
62595
+ }, [e]), _.useEffect(() => Dl.handoff(), []), t ? !1 : e;
62596
62596
  }
62597
62597
  function A$() {
62598
62598
  let t = _.useRef(!1);
@@ -62642,7 +62642,7 @@ function xBe(t, e) {
62642
62642
  let C = QJ(s);
62643
62643
  Ss(n.current) && C.add(n.current);
62644
62644
  let T = k.relatedTarget;
62645
- Ol(T) && T.dataset.headlessuiFocusGuard !== "true" && (XJ(C, T) || (w.current ? R0(n.current, Go(m.current, { [_y.Forwards]: () => Ro.Next, [_y.Backwards]: () => Ro.Previous }) | Ro.WrapAround, { relativeTo: k.target }) : Ol(k.target) && Dl(k.target)));
62645
+ Nl(T) && T.dataset.headlessuiFocusGuard !== "true" && (XJ(C, T) || (w.current ? R0(n.current, Go(m.current, { [_y.Forwards]: () => Ro.Next, [_y.Backwards]: () => Ro.Previous }) | Ro.WrapAround, { relativeTo: k.target }) : Nl(k.target) && Ll(k.target)));
62646
62646
  } }, S = ri();
62647
62647
  return We.createElement(We.Fragment, null, y && We.createElement(H7, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: p, features: r5.Focusable }), S({ ourProps: x, theirProps: c, defaultTag: wBe, name: "FocusTrap" }), y && We.createElement(H7, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: p, features: r5.Focusable }));
62648
62648
  }
@@ -62661,9 +62661,9 @@ function CBe(t = !0) {
62661
62661
  function SBe(t, { ownerDocument: e }) {
62662
62662
  let n = !!(t & 8), r = CBe(n);
62663
62663
  x$(() => {
62664
- n || ZX(e?.body) && Dl(r());
62664
+ n || ZX(e?.body) && Ll(r());
62665
62665
  }, [n]), k$(() => {
62666
- n && Dl(r());
62666
+ n && Ll(r());
62667
62667
  });
62668
62668
  }
62669
62669
  function kBe(t, { ownerDocument: e, container: n, initialFocus: r, initialFocusFallback: i }) {
@@ -62671,7 +62671,7 @@ function kBe(t, { ownerDocument: e, container: n, initialFocus: r, initialFocusF
62671
62671
  return x$(() => {
62672
62672
  if (t === 0) return;
62673
62673
  if (!s) {
62674
- i != null && i.current && Dl(i.current);
62674
+ i != null && i.current && Ll(i.current);
62675
62675
  return;
62676
62676
  }
62677
62677
  let c = n.current;
@@ -62687,12 +62687,12 @@ function kBe(t, { ownerDocument: e, container: n, initialFocus: r, initialFocusF
62687
62687
  a.current = d;
62688
62688
  return;
62689
62689
  }
62690
- if (r != null && r.current) Dl(r.current);
62690
+ if (r != null && r.current) Ll(r.current);
62691
62691
  else {
62692
62692
  if (t & 16) {
62693
62693
  if (R0(c, Ro.First | Ro.AutoFocus) !== G7.Error) return;
62694
62694
  } else if (R0(c, Ro.First) !== G7.Error) return;
62695
- if (i != null && i.current && (Dl(i.current), e?.activeElement === i.current)) return;
62695
+ if (i != null && i.current && (Ll(i.current), e?.activeElement === i.current)) return;
62696
62696
  console.warn("There are no focusable elements inside the <FocusTrap />");
62697
62697
  }
62698
62698
  a.current = e?.activeElement;
@@ -62708,7 +62708,7 @@ function ABe(t, { ownerDocument: e, container: n, containers: r, previousActiveE
62708
62708
  let d = i.current;
62709
62709
  if (!d) return;
62710
62710
  let f = o.target;
62711
- Ss(f) ? XJ(c, f) ? (i.current = f, Dl(f)) : (o.preventDefault(), o.stopPropagation(), Dl(d)) : Dl(i.current);
62711
+ Ss(f) ? XJ(c, f) ? (i.current = f, Ll(f)) : (o.preventDefault(), o.stopPropagation(), Ll(d)) : Ll(i.current);
62712
62712
  }, !0);
62713
62713
  }
62714
62714
  function XJ(t, e) {
@@ -63720,7 +63720,7 @@ function Pt(t) {
63720
63720
  function Di(t, e) {
63721
63721
  return t.slice().sort(((n, r) => (n.firstVerifiedAt?.getTime() ?? 0) - (r.firstVerifiedAt?.getTime() ?? 0))).find(((n) => n.type === e));
63722
63722
  }
63723
- const kl = (t) => t ? Mee(t).find(((e) => e.walletIndex === 0)) ?? null : null, Mee = (t) => t ? Dee(t, "ethereum") : [], Dee = (t, e) => t.linkedAccounts.filter(((n) => n.type === "wallet" && n.walletClientType === "privy" && !n.imported && n.chainType === e)), Nze = (t) => t ? Dee(t, "solana") : [], n4 = (t) => t ? Nze(t).find(((e) => e.walletIndex === 0)) ?? null : null, ak = (t) => (t?.linkedAccounts ?? []).filter(((e) => e.type === "wallet" && e.walletClientType === "privy" && e.imported && e.chainType === "ethereum")), Rze = (t) => (t?.linkedAccounts ?? []).filter(((e) => e.type === "wallet" && e.imported && e.walletClientType === "privy" && e.chainType === "solana")), Lee = (t, e) => t === e || !(!t.startsWith("0x") || !e.startsWith("0x")) && Yr(t) === Yr(e), Uc = (t, e) => t?.linkedAccounts.find(((n) => n.type === "wallet" && n.walletClientType === "privy" && Lee(n.address, e))) || null, TC = (t, e) => t.find(((n) => Lee(n.address, e))) || null, Wl = (t) => kl(t) ?? n4(t);
63723
+ const Al = (t) => t ? Mee(t).find(((e) => e.walletIndex === 0)) ?? null : null, Mee = (t) => t ? Dee(t, "ethereum") : [], Dee = (t, e) => t.linkedAccounts.filter(((n) => n.type === "wallet" && n.walletClientType === "privy" && !n.imported && n.chainType === e)), Nze = (t) => t ? Dee(t, "solana") : [], n4 = (t) => t ? Nze(t).find(((e) => e.walletIndex === 0)) ?? null : null, ak = (t) => (t?.linkedAccounts ?? []).filter(((e) => e.type === "wallet" && e.walletClientType === "privy" && e.imported && e.chainType === "ethereum")), Rze = (t) => (t?.linkedAccounts ?? []).filter(((e) => e.type === "wallet" && e.imported && e.walletClientType === "privy" && e.chainType === "solana")), Lee = (t, e) => t === e || !(!t.startsWith("0x") || !e.startsWith("0x")) && Yr(t) === Yr(e), Uc = (t, e) => t?.linkedAccounts.find(((n) => n.type === "wallet" && n.walletClientType === "privy" && Lee(n.address, e))) || null, TC = (t, e) => t.find(((n) => Lee(n.address, e))) || null, ql = (t) => Al(t) ?? n4(t);
63724
63724
  function Ui(t) {
63725
63725
  if (!t) return null;
63726
63726
  let e = (function(T) {
@@ -63862,9 +63862,9 @@ const d5 = (t) => {
63862
63862
  if (t.chainType === "ethereum") return { entropyId: t.address, entropyIdVerifier: "ethereum-address-verifier" };
63863
63863
  if (t.chainType === "solana") return { entropyId: t.address, entropyIdVerifier: "solana-address-verifier" };
63864
63864
  throw Error("Failed to get account entropy details");
63865
- }, Al = (t, e) => {
63865
+ }, Tl = (t, e) => {
63866
63866
  if (e?.imported) return d5(e);
63867
- let n = Wl(t);
63867
+ let n = ql(t);
63868
63868
  if (!n) throw Error("Failed to find primary wallet");
63869
63869
  return d5(n);
63870
63870
  }, Pze = ({ style: t, ...e }) => /* @__PURE__ */ g.jsxs("svg", { viewBox: "0 0 1024 1024", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { height: "28px", width: "28px", ...t }, ...e, children: [/* @__PURE__ */ g.jsx("rect", { width: "1024", height: "1024", fill: "#0052FF", rx: 100, ry: 100 }), /* @__PURE__ */ g.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z", fill: "white" })] }), Uee = "data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgMTAyNCAxMDI0JyBmaWxsPSdub25lJyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHN0eWxlPSdoZWlnaHQ6MjhweDt3aWR0aDoyOHB4Jz48cmVjdCB3aWR0aD0nMTAyNCcgaGVpZ2h0PScxMDI0JyBmaWxsPScjMDA1MkZGJyByeD0nMTAwJyByeT0nMTAwJz48L3JlY3Q+PHBhdGggZmlsbC1ydWxlPSdldmVub2RkJyBjbGlwLXJ1bGU9J2V2ZW5vZGQnIGQ9J00xNTIgNTEyQzE1MiA3MTAuODIzIDMxMy4xNzcgODcyIDUxMiA4NzJDNzEwLjgyMyA4NzIgODcyIDcxMC44MjMgODcyIDUxMkM4NzIgMzEzLjE3NyA3MTAuODIzIDE1MiA1MTIgMTUyQzMxMy4xNzcgMTUyIDE1MiAzMTMuMTc3IDE1MiA1MTJaTTQyMCAzOTZDNDA2Ljc0NSAzOTYgMzk2IDQwNi43NDUgMzk2IDQyMFY2MDRDMzk2IDYxNy4yNTUgNDA2Ljc0NSA2MjggNDIwIDYyOEg2MDRDNjE3LjI1NSA2MjggNjI4IDYxNy4yNTUgNjI4IDYwNFY0MjBDNjI4IDQwNi43NDUgNjE3LjI1NSAzOTYgNjA0IDM5Nkg0MjBaJyBmaWxsPSd3aGl0ZSc+PC9wYXRoPjwvc3ZnPg==", Fee = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAALZJREFUaEPtmjEOhDAMBNc/O14GvOzys3CAKK6eAlmaVGl2Zc+kTOU685vkc9/bnD2prZK5/TZY24z9P+g4F5hNh7/GdoG37WlAA5CATwgCxHENYISwQAMQII5rACOEBRqAAHFcAxghLNAABIjjGsAIYYEGIEAc1wBGCAs0AAHiuAYwQligAQgQxzWAEcICDUCAOK4BjBAWaAACxHENYISwQAMQII6fBjr+VHkW3+u+tfyxMpJaDgYzYxb/ALZVAAAAAElFTkSuQmCC";
@@ -64447,7 +64447,7 @@ const BWe = ({ weiQuantities: t, tokenPrice: e, tokenSymbol: n }) => {
64447
64447
  return g.jsx(ete, { children: i ? /* @__PURE__ */ g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(zWe, { children: "USD" }), i === "<$0.01" ? /* @__PURE__ */ g.jsxs(qWe, { children: [/* @__PURE__ */ g.jsx(WWe, { children: "<" }), "$0.01"] }) : i] }) : a });
64448
64448
  };
64449
64449
  let ete = /* @__PURE__ */ X.span.withConfig({ displayName: "StyledPriceDisplay", componentId: "sc-3cd56c8a-0" })(["font-size:14px;line-height:140%;display:flex;gap:4px;align-items:center;"]), zWe = /* @__PURE__ */ X.span.withConfig({ displayName: "StyledPriceUnit", componentId: "sc-3cd56c8a-1" })(["font-size:12px;line-height:12px;color:var(--privy-color-foreground-3);"]), WWe = /* @__PURE__ */ X.span.withConfig({ displayName: "TinyLessThan", componentId: "sc-3cd56c8a-2" })(["font-size:10px;"]), qWe = /* @__PURE__ */ X.span.withConfig({ displayName: "FlexCenter", componentId: "sc-3cd56c8a-3" })(["display:flex;align-items:center;"]);
64450
- const tte = /* @__PURE__ */ X.div.withConfig({ displayName: "BottomPusherContainer", componentId: "sc-cb963810-0" })(["display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;margin-top:auto;gap:16px;flex-grow:100;"]), nte = /* @__PURE__ */ X.div.withConfig({ displayName: "CenteredItem", componentId: "sc-cb963810-1" })(["display:flex;flex-direction:column;align-items:center;justify-content:center;flex-grow:1;width:100%;"]), HWe = /* @__PURE__ */ X.div.withConfig({ displayName: "HorizontallyCenteredItem", componentId: "sc-cb963810-2" })(["display:flex;flex-direction:column;align-items:center;width:100%;"]), VWe = /* @__PURE__ */ X(nte).withConfig({ displayName: "CenteredItemWithPadding", componentId: "sc-cb963810-3" })(["padding:20px 0;"]), o4 = /* @__PURE__ */ X(nte).withConfig({ displayName: "CenteredItemWithGap", componentId: "sc-cb963810-4" })(["gap:16px;"]), l4 = /* @__PURE__ */ X.div.withConfig({ displayName: "FlexContainer", componentId: "sc-cb963810-5" })(["display:flex;flex-direction:column;width:100%;"]), z$ = /* @__PURE__ */ X.div.withConfig({ displayName: "FixedGappedContainer", componentId: "sc-cb963810-6" })(["display:flex;flex-direction:column;gap:8px;"]), GWe = /* @__PURE__ */ X.div.withConfig({ displayName: "StyledCalloutSection", componentId: "sc-cb963810-8" })(["display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;text-align:left;gap:8px;padding:16px;margin-top:16px;margin-bottom:16px;width:100%;background:var(--privy-color-background-2);border-radius:var(--privy-border-radius-md);&& h4{color:var(--privy-color-foreground-3);font-size:14px;text-decoration:underline;font-weight:medium;}&& p{color:var(--privy-color-foreground-3);font-size:14px;}"]), Jl = /* @__PURE__ */ X.div.withConfig({ displayName: "RefactorSpacerTop", componentId: "sc-cb963810-9" })(["height:16px;"]), tl = /* @__PURE__ */ X.div.withConfig({ displayName: "RefactorSpacerBottom", componentId: "sc-cb963810-10" })(["height:12px;"]), KWe = /* @__PURE__ */ X.div.withConfig({ displayName: "ConfigurableSpacer", componentId: "sc-cb963810-12" })(["height:", "px;"], ((t) => t.height ?? "12")), YWe = ({ gas: t, tokenPrice: e, tokenSymbol: n }) => /* @__PURE__ */ g.jsxs(l4, { style: { paddingBottom: "12px" }, children: [/* @__PURE__ */ g.jsxs(rte, { children: [/* @__PURE__ */ g.jsx(ate, { children: "Est. Fees" }), /* @__PURE__ */ g.jsx("div", { children: /* @__PURE__ */ g.jsx(Jee, { weiQuantities: [BigInt(t)], tokenPrice: e, tokenSymbol: n }) })] }), e && /* @__PURE__ */ g.jsx(ite, { children: `${Uo(BigInt(t), n)}` })] }), ZWe = ({ value: t, gas: e, tokenPrice: n, tokenSymbol: r }) => {
64450
+ const tte = /* @__PURE__ */ X.div.withConfig({ displayName: "BottomPusherContainer", componentId: "sc-cb963810-0" })(["display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;margin-top:auto;gap:16px;flex-grow:100;"]), nte = /* @__PURE__ */ X.div.withConfig({ displayName: "CenteredItem", componentId: "sc-cb963810-1" })(["display:flex;flex-direction:column;align-items:center;justify-content:center;flex-grow:1;width:100%;"]), HWe = /* @__PURE__ */ X.div.withConfig({ displayName: "HorizontallyCenteredItem", componentId: "sc-cb963810-2" })(["display:flex;flex-direction:column;align-items:center;width:100%;"]), VWe = /* @__PURE__ */ X(nte).withConfig({ displayName: "CenteredItemWithPadding", componentId: "sc-cb963810-3" })(["padding:20px 0;"]), o4 = /* @__PURE__ */ X(nte).withConfig({ displayName: "CenteredItemWithGap", componentId: "sc-cb963810-4" })(["gap:16px;"]), l4 = /* @__PURE__ */ X.div.withConfig({ displayName: "FlexContainer", componentId: "sc-cb963810-5" })(["display:flex;flex-direction:column;width:100%;"]), z$ = /* @__PURE__ */ X.div.withConfig({ displayName: "FixedGappedContainer", componentId: "sc-cb963810-6" })(["display:flex;flex-direction:column;gap:8px;"]), GWe = /* @__PURE__ */ X.div.withConfig({ displayName: "StyledCalloutSection", componentId: "sc-cb963810-8" })(["display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;text-align:left;gap:8px;padding:16px;margin-top:16px;margin-bottom:16px;width:100%;background:var(--privy-color-background-2);border-radius:var(--privy-border-radius-md);&& h4{color:var(--privy-color-foreground-3);font-size:14px;text-decoration:underline;font-weight:medium;}&& p{color:var(--privy-color-foreground-3);font-size:14px;}"]), Jl = /* @__PURE__ */ X.div.withConfig({ displayName: "RefactorSpacerTop", componentId: "sc-cb963810-9" })(["height:16px;"]), nl = /* @__PURE__ */ X.div.withConfig({ displayName: "RefactorSpacerBottom", componentId: "sc-cb963810-10" })(["height:12px;"]), KWe = /* @__PURE__ */ X.div.withConfig({ displayName: "ConfigurableSpacer", componentId: "sc-cb963810-12" })(["height:", "px;"], ((t) => t.height ?? "12")), YWe = ({ gas: t, tokenPrice: e, tokenSymbol: n }) => /* @__PURE__ */ g.jsxs(l4, { style: { paddingBottom: "12px" }, children: [/* @__PURE__ */ g.jsxs(rte, { children: [/* @__PURE__ */ g.jsx(ate, { children: "Est. Fees" }), /* @__PURE__ */ g.jsx("div", { children: /* @__PURE__ */ g.jsx(Jee, { weiQuantities: [BigInt(t)], tokenPrice: e, tokenSymbol: n }) })] }), e && /* @__PURE__ */ g.jsx(ite, { children: `${Uo(BigInt(t), n)}` })] }), ZWe = ({ value: t, gas: e, tokenPrice: n, tokenSymbol: r }) => {
64451
64451
  let i = BigInt(t ?? 0) + BigInt(e);
64452
64452
  return g.jsxs(l4, { children: [/* @__PURE__ */ g.jsxs(rte, { children: [/* @__PURE__ */ g.jsx(ate, { children: "Total (including fees)" }), /* @__PURE__ */ g.jsx("div", { children: /* @__PURE__ */ g.jsx(Jee, { weiQuantities: [BigInt(t || 0), BigInt(e)], tokenPrice: n, tokenSymbol: r }) })] }), n && /* @__PURE__ */ g.jsx(ite, { children: Uo(i, r) })] });
64453
64453
  };
@@ -64603,13 +64603,13 @@ const H$ = (t, { chainType: e, walletIndex: n } = {}) => t?.linkedAccounts.filte
64603
64603
  } else {
64604
64604
  if (d !== "solana") throw Error("Invalid input to create wallet");
64605
64605
  {
64606
- let w = kl(t);
64606
+ let w = Al(t);
64607
64607
  w && await s({ address: w.address }), await n.createSolana({ accessToken: e, ethereumAddress: w?.address, recoveryMethod: f, recoveryPassword: m, recoveryAccessToken: p });
64608
64608
  }
64609
64609
  }
64610
64610
  else if (a.embeddedWallets.mode === "user-controlled-server-wallets-only") await sS(i, { request: { chain_type: d } });
64611
64611
  else {
64612
- let { entropyId: w, entropyIdVerifier: x } = Al(t);
64612
+ let { entropyId: w, entropyIdVerifier: x } = Tl(t);
64613
64613
  await s(), await n.addWallet({ accessToken: e, entropyId: w, entropyIdVerifier: x, chainType: d, hdWalletIndex: c });
64614
64614
  }
64615
64615
  let y = await r(), b = H$(y, { chainType: d, walletIndex: c })[0];
@@ -64625,7 +64625,7 @@ const H$ = (t, { chainType: e, walletIndex: n } = {}) => t?.linkedAccounts.filte
64625
64625
  } };
64626
64626
  }, vqe = ({ title: t, description: e, onClose: n }) => /* @__PURE__ */ g.jsx(sn, { title: t, subtitle: e, icon: Eb, iconVariant: "success", watermark: !0, onBack: n }), G$ = { component: () => {
64627
64627
  let { user: t } = Jt(), { closePrivyModal: e, isNewUserThisSession: n, updateWallets: r } = Ke(), { data: i, onUserCloseViaDialogOrKeybindRef: a } = rt(), s = Xe(), { onSuccess: o, onFailure: c, callAuthOnSuccessOnClose: d } = i.createWallet, f = () => {
64628
- let m = kl(t) ?? n4(t);
64628
+ let m = Al(t) ?? n4(t);
64629
64629
  t && m ? (r(), o({ user: t, account: m })) : c(Error("Failed to create wallet")), e({ shouldCallAuthOnSuccess: d });
64630
64630
  };
64631
64631
  return _.useEffect((() => {
@@ -64685,12 +64685,12 @@ const gte = { component: () => {
64685
64685
  break;
64686
64686
  }
64687
64687
  case "set-recovery": {
64688
- let Q = Wl(K);
64688
+ let Q = ql(K);
64689
64689
  if (!Q) throw R("setWalletRecovery", "onError", ue.EMBEDDED_WALLET_NOT_FOUND), Error("Embedded wallet not found");
64690
64690
  M.createAnalyticsEvent({ eventName: "embedded_wallet_set_recovery_started", payload: { walletAddress: Q.address, existingRecoveryMethod: Q.recoveryMethod, targetRecoveryMethod: B } });
64691
- let { entropyId: oe, entropyIdVerifier: le } = Al(K);
64691
+ let { entropyId: oe, entropyIdVerifier: le } = Tl(K);
64692
64692
  await W.setRecovery({ accessToken: G, entropyId: oe, entropyIdVerifier: le, recoveryMethod: B, recoveryAccessToken: ee });
64693
- let ye = Wl(await z());
64693
+ let ye = ql(await z());
64694
64694
  if (!ye) throw R("createWallet", "onError", ue.UNKNOWN_EMBEDDED_WALLET_ERROR), Error("Failed to set recovery on wallet");
64695
64695
  M.createAnalyticsEvent({ eventName: "embedded_wallet_set_recovery_completed", payload: { walletAddress: Q.address, existingRecoveryMethod: Q.recoveryMethod, targetRecoveryMethod: B } }), R("setWalletRecovery", "onSuccess", { method: B, wallet: ye });
64696
64696
  break;
@@ -64732,7 +64732,7 @@ const gte = { component: () => {
64732
64732
  } };
64733
64733
  let RC = /* @__PURE__ */ X.div.withConfig({ displayName: "IconContainer", componentId: "sc-ccfae04f-0" })(["width:24px;height:24px;display:flex;justify-content:center;align-items:center;"]), xqe = { "google-drive": "Google Drive", icloud: "iCloud", "user-passcode": "password", privy: "Privy", "privy-v2": "Privy" }, _qe = ({ onClose: t }) => /* @__PURE__ */ g.jsxs(wqe, { children: [/* @__PURE__ */ g.jsx(Zo, { title: "Why do I need to secure my account?", icon: /* @__PURE__ */ g.jsx(A0, { width: 48 }), description: /* @__PURE__ */ g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx("p", { children: "Your app uses cryptography to secure your account. App secrets are split and encrypted so only you can access them." }), /* @__PURE__ */ g.jsx("p", { children: "To use this app on new devices, secure account secrets using a password, your Google or your Apple account. It’s important you don’t lose access to the method you choose." })] }) }), /* @__PURE__ */ g.jsx(Bn, { onClick: t, children: "Select backup method" })] });
64734
64734
  const dk = { component: () => {
64735
- let [t, e] = _.useState(!1), { navigate: n, lastScreen: r, navigateBack: i, setModalData: a, data: s, onUserCloseViaDialogOrKeybindRef: o } = rt(), { user: c } = Jt(), { embeddedWallets: d } = Xe(), { closePrivyModal: f } = Ke(), m = Wl(c), p = m === null, { isInAccountCreateFlow: y, isResettingPassword: b, shouldCreateEth: w, shouldCreateSol: x } = s.recoverySelection, S = m && m.recoveryMethod !== "privy", k = S ? /* @__PURE__ */ g.jsxs("span", { children: ["Your account is currently secured using", " ", /* @__PURE__ */ g.jsx("strong", { children: xqe[m?.recoveryMethod || "user-passcode"] }), "."] }) : "Select a method for logging in on new devices and recovering your account.";
64735
+ let [t, e] = _.useState(!1), { navigate: n, lastScreen: r, navigateBack: i, setModalData: a, data: s, onUserCloseViaDialogOrKeybindRef: o } = rt(), { user: c } = Jt(), { embeddedWallets: d } = Xe(), { closePrivyModal: f } = Ke(), m = ql(c), p = m === null, { isInAccountCreateFlow: y, isResettingPassword: b, shouldCreateEth: w, shouldCreateSol: x } = s.recoverySelection, S = m && m.recoveryMethod !== "privy", k = S ? /* @__PURE__ */ g.jsxs("span", { children: ["Your account is currently secured using", " ", /* @__PURE__ */ g.jsx("strong", { children: xqe[m?.recoveryMethod || "user-passcode"] }), "."] }) : "Select a method for logging in on new devices and recovering your account.";
64736
64736
  function C(I) {
64737
64737
  a({ recoveryOAuthStatus: { provider: I, action: p ? "create-wallet" : "set-recovery", isInAccountCreateFlow: y, shouldCreateEth: w, shouldCreateSol: x } }), n(gte);
64738
64738
  }
@@ -64767,14 +64767,14 @@ const K$ = /* @__PURE__ */ X.input.withConfig({ displayName: "PasswordInput", co
64767
64767
  p.key === "Enter" && r();
64768
64768
  }, onBlur: () => c(!0), placeholder: "confirm your password", type: a ? "password" : "text", style: { paddingRight: "2.3rem" } }), /* @__PURE__ */ g.jsx(p4, { style: { right: "0.75rem" }, children: a ? /* @__PURE__ */ g.jsx(m4, { onClick: () => s(!1) }) : /* @__PURE__ */ g.jsx(g4, { onClick: () => s(!0) }) })] }),
64769
64769
  /* @__PURE__ */ g.jsx(yte, { "aria-hidden": !o || m, error: !0, children: "Passwords do not match" })
64770
- ] }), /* @__PURE__ */ g.jsx(d4, { onClick: r, loading: e, disabled: !m, $hideAnimations: t, children: "Continue" }), /* @__PURE__ */ g.jsx(tl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
64770
+ ] }), /* @__PURE__ */ g.jsx(d4, { onClick: r, loading: e, disabled: !m, $hideAnimations: t, children: "Continue" }), /* @__PURE__ */ g.jsx(nl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
64771
64771
  }, vte = ({ className: t, checked: e, color: n = "var(--privy-color-accent)", ...r }) => /* @__PURE__ */ g.jsx("label", { children: /* @__PURE__ */ g.jsxs(Tqe, { className: t, children: [/* @__PURE__ */ g.jsx(xte, { checked: e, ...r }), /* @__PURE__ */ g.jsx($qe, { color: n, checked: e, children: /* @__PURE__ */ g.jsx(wte, { viewBox: "0 0 24 24", children: /* @__PURE__ */ g.jsx("polyline", { points: "20 6 9 17 4 12" }) }) })] }) });
64772
64772
  let Tqe = /* @__PURE__ */ X.div.withConfig({ displayName: "CheckboxContainer", componentId: "sc-db51b935-1" })(["display:inline-block;vertical-align:middle;"]), wte = /* @__PURE__ */ X.svg.withConfig({ displayName: "Icon", componentId: "sc-db51b935-2" })(["fill:none;stroke:white;stroke-width:3px;"]), xte = /* @__PURE__ */ X.input.attrs({ type: "checkbox" }).withConfig({ displayName: "HiddenCheckbox", componentId: "sc-db51b935-3" })(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;"]), $qe = /* @__PURE__ */ X.div.withConfig({ displayName: "StyledCheckbox", componentId: "sc-db51b935-4" })(["display:inline-block;width:18px;height:18px;transition:all 150ms;cursor:pointer;border-color:", ";border-radius:3px;background:", ";&&{border-width:1px;}", ":focus + &{box-shadow:0 0 0 1px ", ";}", "{visibility:", ";}"], ((t) => t.color), ((t) => t.checked ? t.color : "var(--privy-color-background)"), xte, ((t) => t.color), wte, ((t) => t.checked ? "visible" : "hidden"));
64773
64773
  const Iqe = ({ buttonHideAnimations: t, buttonLoading: e, onSubmit: n, onBack: r, config: i }) => {
64774
64774
  let [a, s] = _.useState(!1);
64775
64775
  return g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(Kt, { closeable: !1, backFn: r }), /* @__PURE__ */ g.jsx(Jl, {}), /* @__PURE__ */ g.jsxs(u4, { children: [/* @__PURE__ */ g.jsxs(h4, { children: [/* @__PURE__ */ g.jsx(jh, { height: 48, width: 48, stroke: "var(--privy-color-background)", fill: "var(--privy-color-error)" }), /* @__PURE__ */ g.jsx("h3", { style: { color: "var(--privy-color-foreground)" }, children: "Confirm you have saved" }), /* @__PURE__ */ g.jsx("p", { style: { color: "var(--privy-color-foreground-2)" }, children: "Losing access to your password means you will lose access to your account." })] }), /* @__PURE__ */ g.jsx(Y$, { children: /* @__PURE__ */ g.jsxs(fk, { style: { color: "var(--privy-color-error)", cursor: "pointer" }, onClick: (o) => {
64776
64776
  o.preventDefault(), s(((c) => !c));
64777
- }, children: [/* @__PURE__ */ g.jsx(vte, { color: "var(--privy-color-error)", readOnly: !0, checked: a }), /* @__PURE__ */ g.jsx(g.Fragment, { children: "I understand that if I lose my password and device, I will lose access to my account and my assets." })] }) })] }), /* @__PURE__ */ g.jsxs(Oqe, { children: [i.initiatedBy === "user" && /* @__PURE__ */ g.jsx(Yo, { onClick: i.onCancel, disabled: e, children: "Cancel" }), /* @__PURE__ */ g.jsx(d4, { onClick: n, loading: e, $hideAnimations: t, disabled: !a, children: "Set Password" })] }), /* @__PURE__ */ g.jsx(tl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
64777
+ }, children: [/* @__PURE__ */ g.jsx(vte, { color: "var(--privy-color-error)", readOnly: !0, checked: a }), /* @__PURE__ */ g.jsx(g.Fragment, { children: "I understand that if I lose my password and device, I will lose access to my account and my assets." })] }) })] }), /* @__PURE__ */ g.jsxs(Oqe, { children: [i.initiatedBy === "user" && /* @__PURE__ */ g.jsx(Yo, { onClick: i.onCancel, disabled: e, children: "Cancel" }), /* @__PURE__ */ g.jsx(d4, { onClick: n, loading: e, $hideAnimations: t, disabled: !a, children: "Set Password" })] }), /* @__PURE__ */ g.jsx(nl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
64778
64778
  };
64779
64779
  let Oqe = /* @__PURE__ */ X.div.withConfig({ displayName: "ButtonsContainer", componentId: "sc-d1659c5f-0" })(["display:flex;gap:10px;"]), Nqe = /[a-z]/, Rqe = /[A-Z]/, Pqe = /[0-9]/, _te = "!@#$%^&*()\\-_+.", Ete = `a-zA-Z0-9${_te}`, jqe = RegExp(`[${_te}]`), Mqe = RegExp(`[${Ete}]`);
64780
64780
  const Dqe = RegExp(`^[${Ete}]{6,}$`), Cte = () => Z5e(4, X5e);
@@ -64799,7 +64799,7 @@ const Fqe = ({ buttonHideAnimations: t, buttonLoading: e, password: n = "", conf
64799
64799
  })(n)), [n, b]), x = _.useMemo((() => !n?.length || !!b), [b, n]);
64800
64800
  return g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(Kt, { onClose: s, closeable: r.initiatedBy === "user", backFn: o }), /* @__PURE__ */ g.jsx(Jl, {}), /* @__PURE__ */ g.jsxs(u4, { children: [/* @__PURE__ */ g.jsxs(h4, { children: [/* @__PURE__ */ g.jsx(txe, { height: 48, width: 48, stroke: "var(--privy-color-accent)" }), /* @__PURE__ */ g.jsxs("h3", { style: { color: "var(--privy-color-foreground)" }, children: [i ? "Reset" : "Set", " your password"] }), /* @__PURE__ */ g.jsx("p", { style: { color: "var(--privy-color-foreground-2)" }, children: "Select a strong, memorable password to secure your account." })] }), /* @__PURE__ */ g.jsxs(f4, { children: [/* @__PURE__ */ g.jsx(K$, { value: n, onChange: (S) => c(S.target.value), onKeyUp: (S) => {
64801
64801
  S.key === "Enter" && a();
64802
- }, placeholder: "enter or generate a strong password", type: f ? "password" : "text", style: { paddingRight: "3.8rem" } }), /* @__PURE__ */ g.jsxs(p4, { style: { width: "3.5rem" }, children: [f ? /* @__PURE__ */ g.jsx(m4, { onClick: () => m(!1) }) : /* @__PURE__ */ g.jsx(g4, { onClick: () => m(!0) }), /* @__PURE__ */ g.jsx(Sqe, { onClick: d })] })] }), /* @__PURE__ */ g.jsx(kqe, { value: w.value === 0 ? 0.01 : w.value, label: w.label }), /* @__PURE__ */ g.jsx(yte, { error: !!b, children: b || `Password Strength: ${p ? w.label : "--"}` }), /* @__PURE__ */ g.jsxs(zqe, { children: [/* @__PURE__ */ g.jsx(Bqe, { children: /* @__PURE__ */ g.jsxs(Y$, { children: [/* @__PURE__ */ g.jsxs(fk, { children: [/* @__PURE__ */ g.jsx(H1, { width: 24, height: 24, fill: "var(--privy-color-accent)" }), "This password is used to secure your account."] }), /* @__PURE__ */ g.jsxs(fk, { children: [/* @__PURE__ */ g.jsx(H1, { width: 24, height: 24, fill: "var(--privy-color-accent)" }), "Use it to log in on a new environment, like another browser or device."] })] }) }), /* @__PURE__ */ g.jsx(d4, { onClick: a, loading: e, disabled: x, $hideAnimations: t, children: "Continue" })] })] }), /* @__PURE__ */ g.jsx(tl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
64802
+ }, placeholder: "enter or generate a strong password", type: f ? "password" : "text", style: { paddingRight: "3.8rem" } }), /* @__PURE__ */ g.jsxs(p4, { style: { width: "3.5rem" }, children: [f ? /* @__PURE__ */ g.jsx(m4, { onClick: () => m(!1) }) : /* @__PURE__ */ g.jsx(g4, { onClick: () => m(!0) }), /* @__PURE__ */ g.jsx(Sqe, { onClick: d })] })] }), /* @__PURE__ */ g.jsx(kqe, { value: w.value === 0 ? 0.01 : w.value, label: w.label }), /* @__PURE__ */ g.jsx(yte, { error: !!b, children: b || `Password Strength: ${p ? w.label : "--"}` }), /* @__PURE__ */ g.jsxs(zqe, { children: [/* @__PURE__ */ g.jsx(Bqe, { children: /* @__PURE__ */ g.jsxs(Y$, { children: [/* @__PURE__ */ g.jsxs(fk, { children: [/* @__PURE__ */ g.jsx(H1, { width: 24, height: 24, fill: "var(--privy-color-accent)" }), "This password is used to secure your account."] }), /* @__PURE__ */ g.jsxs(fk, { children: [/* @__PURE__ */ g.jsx(H1, { width: 24, height: 24, fill: "var(--privy-color-accent)" }), "Use it to log in on a new environment, like another browser or device."] })] }) }), /* @__PURE__ */ g.jsx(d4, { onClick: a, loading: e, disabled: x, $hideAnimations: t, children: "Continue" })] })] }), /* @__PURE__ */ g.jsx(nl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
64803
64803
  };
64804
64804
  let Bqe = /* @__PURE__ */ X(Y$).withConfig({ displayName: "DetailsContainer", componentId: "sc-2da5fe90-0" })(["flex:1;padding-top:1rem;"]), zqe = /* @__PURE__ */ X.div.withConfig({ displayName: "LowerContainer", componentId: "sc-2da5fe90-1" })(["display:flex;flex-direction:column;height:100%;"]);
64805
64805
  const Wqe = ({ buttonHideAnimations: t, buttonLoading: e, appName: n, password: r, onSubmit: i, onBack: a }) => {
@@ -64811,14 +64811,14 @@ const Wqe = ({ buttonHideAnimations: t, buttonLoading: e, appName: n, password:
64811
64811
  p.remove(), URL.revokeObjectURL(w);
64812
64812
  }), 5e3);
64813
64813
  }), [r]);
64814
- return g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(Kt, { backFn: a, closeable: !1 }), /* @__PURE__ */ g.jsx(Jl, {}), /* @__PURE__ */ g.jsxs(u4, { children: [/* @__PURE__ */ g.jsxs(h4, { children: [/* @__PURE__ */ g.jsx(jh, { height: 48, width: 48, stroke: "var(--privy-color-background)", fill: "var(--privy-color-accent)" }), /* @__PURE__ */ g.jsx("h3", { style: { color: "var(--privy-color-foreground)" }, children: "Save your password" }), /* @__PURE__ */ g.jsx("p", { style: { color: "var(--privy-color-foreground-2)" }, children: "For your security, this password cannot be reset, so keep it somewhere safe." })] }), /* @__PURE__ */ g.jsxs(f4, { centered: !0, children: [/* @__PURE__ */ g.jsx(Cqe, { children: c ? "•".repeat(r.length) : r }), /* @__PURE__ */ g.jsx(p4, { style: { right: "0.75rem" }, children: c ? /* @__PURE__ */ g.jsx(m4, { onClick: () => d(!1) }) : /* @__PURE__ */ g.jsx(g4, { onClick: () => d(!0) }) })] }), /* @__PURE__ */ g.jsxs("div", { style: { display: "flex", margin: "12px 0", gap: "12px" }, children: [/* @__PURE__ */ g.jsx(iz, { onClick: f, children: /* @__PURE__ */ g.jsxs(g.Fragment, s ? { children: [/* @__PURE__ */ g.jsx(CY, { style: { width: 24, height: 24 }, stroke: "var(--privy-color-accent)" }), "Copied"] } : { children: [/* @__PURE__ */ g.jsx(H4e, { style: { width: 24, height: 24 }, stroke: "var(--privy-color-accent)" }), "Copy"] }) }), /* @__PURE__ */ g.jsxs(iz, { onClick: m, children: [/* @__PURE__ */ g.jsx(x4e, { style: { width: 24, height: 24 }, stroke: "var(--privy-color-accent)" }), "Download"] })] })] }), /* @__PURE__ */ g.jsx(d4, { onClick: i, loading: e, $hideAnimations: t, children: "Continue" }), /* @__PURE__ */ g.jsx(tl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
64814
+ return g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(Kt, { backFn: a, closeable: !1 }), /* @__PURE__ */ g.jsx(Jl, {}), /* @__PURE__ */ g.jsxs(u4, { children: [/* @__PURE__ */ g.jsxs(h4, { children: [/* @__PURE__ */ g.jsx(jh, { height: 48, width: 48, stroke: "var(--privy-color-background)", fill: "var(--privy-color-accent)" }), /* @__PURE__ */ g.jsx("h3", { style: { color: "var(--privy-color-foreground)" }, children: "Save your password" }), /* @__PURE__ */ g.jsx("p", { style: { color: "var(--privy-color-foreground-2)" }, children: "For your security, this password cannot be reset, so keep it somewhere safe." })] }), /* @__PURE__ */ g.jsxs(f4, { centered: !0, children: [/* @__PURE__ */ g.jsx(Cqe, { children: c ? "•".repeat(r.length) : r }), /* @__PURE__ */ g.jsx(p4, { style: { right: "0.75rem" }, children: c ? /* @__PURE__ */ g.jsx(m4, { onClick: () => d(!1) }) : /* @__PURE__ */ g.jsx(g4, { onClick: () => d(!0) }) })] }), /* @__PURE__ */ g.jsxs("div", { style: { display: "flex", margin: "12px 0", gap: "12px" }, children: [/* @__PURE__ */ g.jsx(iz, { onClick: f, children: /* @__PURE__ */ g.jsxs(g.Fragment, s ? { children: [/* @__PURE__ */ g.jsx(CY, { style: { width: 24, height: 24 }, stroke: "var(--privy-color-accent)" }), "Copied"] } : { children: [/* @__PURE__ */ g.jsx(H4e, { style: { width: 24, height: 24 }, stroke: "var(--privy-color-accent)" }), "Copy"] }) }), /* @__PURE__ */ g.jsxs(iz, { onClick: m, children: [/* @__PURE__ */ g.jsx(x4e, { style: { width: 24, height: 24 }, stroke: "var(--privy-color-accent)" }), "Download"] })] })] }), /* @__PURE__ */ g.jsx(d4, { onClick: i, loading: e, $hideAnimations: t, children: "Continue" }), /* @__PURE__ */ g.jsx(nl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
64815
64815
  };
64816
64816
  let qqe = (t, e) => `Your wallet recovery password for ${t} is
64817
64817
 
64818
64818
  ${e}
64819
64819
 
64820
64820
  You will need this password to access your ${t} wallet on a new device. Please keep it somewhere safe.`;
64821
- const Hqe = ({ error: t, onClose: e }) => /* @__PURE__ */ g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(Kt, { closeable: !1 }), /* @__PURE__ */ g.jsx(Jl, {}), /* @__PURE__ */ g.jsxs(o4, t ? { children: [/* @__PURE__ */ g.jsx(Cze, { fill: "var(--privy-color-error)", width: "64px", height: "64px" }), /* @__PURE__ */ g.jsx(Zo, { title: "Something went wrong", description: t })] } : { children: [/* @__PURE__ */ g.jsx(H1, { fill: "var(--privy-color-success)", width: "64px", height: "64px" }), /* @__PURE__ */ g.jsx(Zo, { title: "Success" })] }), /* @__PURE__ */ g.jsx(Bn, { onClick: e, children: "Close" }), /* @__PURE__ */ g.jsx(tl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
64821
+ const Hqe = ({ error: t, onClose: e }) => /* @__PURE__ */ g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(Kt, { closeable: !1 }), /* @__PURE__ */ g.jsx(Jl, {}), /* @__PURE__ */ g.jsxs(o4, t ? { children: [/* @__PURE__ */ g.jsx(Cze, { fill: "var(--privy-color-error)", width: "64px", height: "64px" }), /* @__PURE__ */ g.jsx(Zo, { title: "Something went wrong", description: t })] } : { children: [/* @__PURE__ */ g.jsx(H1, { fill: "var(--privy-color-success)", width: "64px", height: "64px" }), /* @__PURE__ */ g.jsx(Zo, { title: "Success" })] }), /* @__PURE__ */ g.jsx(Bn, { onClick: e, children: "Close" }), /* @__PURE__ */ g.jsx(nl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
64822
64822
  let Vqe = (t, e) => {
64823
64823
  switch (t) {
64824
64824
  case "creating":
@@ -64901,7 +64901,7 @@ let Jqe = /* @__PURE__ */ X.a.withConfig({ displayName: "StyledLink", componentI
64901
64901
  }), (({ $variant: t, $disabled: e }) => t === "underlined" ? "var(--privy-color-foreground)" : "var(--privy-link-navigation-color, var(--privy-color-accent))"), (({ $disabled: t }) => t ? "none" : "underline"), (({ $variant: t, $disabled: e }) => e ? t === "underlined" ? "var(--privy-color-foreground)" : "var(--privy-link-navigation-color, var(--privy-color-accent))" : "var(--privy-color-foreground)"));
64902
64902
  const hm = ({ size: t = "md", variant: e = "navigation", disabled: n = !1, as: r, children: i, onClick: a, ...s }) => /* @__PURE__ */ g.jsx(Jqe, { as: r, $size: t, $variant: e, $disabled: n, onClick: (o) => {
64903
64903
  n ? o.preventDefault() : a?.(o);
64904
- }, ...s, children: i }), Z$ = (t, e) => !kl(t) && (e === "all-users" || e === "users-without-wallets" && !eHe(t).length);
64904
+ }, ...s, children: i }), Z$ = (t, e) => !Al(t) && (e === "all-users" || e === "users-without-wallets" && !eHe(t).length);
64905
64905
  let eHe = (t) => t.linkedAccounts.filter(((e) => e.type === "wallet" && e.chainType === "ethereum"));
64906
64906
  const Q$ = (t, e) => !n4(t) && (e === "all-users" || e === "users-without-wallets" && !tHe(t).length);
64907
64907
  let tHe = (t) => t.linkedAccounts.filter(((e) => e.type === "wallet" && e.chainType === "solana"));
@@ -65529,7 +65529,7 @@ function Vte({ rpcConfig: t, appId: e, address: n, chain: r }) {
65529
65529
  f().catch(console.error);
65530
65530
  }), []), { balance: a, isLoading: o, reloadBalance: f };
65531
65531
  }
65532
- const ql = "sdk_fiat_on_ramp_completed_with_status";
65532
+ const Hl = "sdk_fiat_on_ramp_completed_with_status";
65533
65533
  async function tI({ rpc: t, address: e }) {
65534
65534
  return (await t.getBalance(e, { commitment: "confirmed" }).send()).value ?? 0n;
65535
65535
  }
@@ -65561,7 +65561,7 @@ const g5 = { component: () => {
65561
65561
  return B ? BigInt(B.data.parsed.info.tokenAmount.amount) : 0n;
65562
65562
  })({ rpc: z.rpc, address: x.address, mintAddress: DC(x.chain) }) : tI({ rpc: z.rpc, address: x.address })).then(((H) => {
65563
65563
  let K = BigInt(H);
65564
- p && K > p && (w(!0), d({ eventName: ql, payload: { provider: "manual", status: "success", chainType: "solana", address: T?.address, value: x.isUSDC ? Wa(K - p, 6) : Wa(K - p, 9), token: x.isUSDC ? "USDC" : "SOL" } })), y(K);
65564
+ p && K > p && (w(!0), d({ eventName: Hl, payload: { provider: "manual", status: "success", chainType: "solana", address: T?.address, value: x.isUSDC ? Wa(K - p, 6) : Wa(K - p, 9), token: x.isUSDC ? "USDC" : "SOL" } })), y(K);
65565
65565
  })) : console.warn("Unable to load solana rpc, skipping balance");
65566
65566
  } : async function() {
65567
65567
  x.chainType === "ethereum" && (async () => {
@@ -65571,7 +65571,7 @@ const g5 = { component: () => {
65571
65571
  return z;
65572
65572
  }
65573
65573
  })().then(((z) => {
65574
- p && z > p && (w(!0), d({ eventName: ql, payload: { provider: "manual", status: "success", chainType: "ethereum", address: T?.address, chainId: x.chain.id, value: Wa(z - p, x.erc20ContractInfo?.decimals ?? 18), token: x.erc20ContractInfo?.symbol ?? x.erc20Address ?? "ETH" } })), y(z);
65574
+ p && z > p && (w(!0), d({ eventName: Hl, payload: { provider: "manual", status: "success", chainType: "ethereum", address: T?.address, chainId: x.chain.id, value: Wa(z - p, x.erc20ContractInfo?.decimals ?? 18), token: x.erc20ContractInfo?.symbol ?? x.erc20Address ?? "ETH" } })), y(z);
65575
65575
  })).catch((() => y(void 0)));
65576
65576
  }, W = setInterval(M, 2e3);
65577
65577
  return M(), () => clearInterval(W);
@@ -65661,7 +65661,7 @@ let FVe = /* @__PURE__ */ X.div.withConfig({ displayName: "TransactionErrorScree
65661
65661
  return;
65662
65662
  }
65663
65663
  };
65664
- const XVe = ({ txn: t, receipt: e, transactionInfo: n, onClose: r, tokenPrice: i, tokenSymbol: a, receiptHeader: s, receiptDescription: o }) => /* @__PURE__ */ g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(Kt, { onClose: r }), /* @__PURE__ */ g.jsx(gqe, { title: s ?? "Transaction complete!", description: o ?? "You're all set." }), /* @__PURE__ */ g.jsx(ote, { tokenPrice: i, from: e.from, to: e.to, gas: QVe(e), txn: t, transactionInfo: n, tokenSymbol: a }), /* @__PURE__ */ g.jsx(um, {}), /* @__PURE__ */ g.jsx(JVe, { loading: !1, onClick: r, children: "All Done" }), /* @__PURE__ */ g.jsx(tl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
65664
+ const XVe = ({ txn: t, receipt: e, transactionInfo: n, onClose: r, tokenPrice: i, tokenSymbol: a, receiptHeader: s, receiptDescription: o }) => /* @__PURE__ */ g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(Kt, { onClose: r }), /* @__PURE__ */ g.jsx(gqe, { title: s ?? "Transaction complete!", description: o ?? "You're all set." }), /* @__PURE__ */ g.jsx(ote, { tokenPrice: i, from: e.from, to: e.to, gas: QVe(e), txn: t, transactionInfo: n, tokenSymbol: a }), /* @__PURE__ */ g.jsx(um, {}), /* @__PURE__ */ g.jsx(JVe, { loading: !1, onClick: r, children: "All Done" }), /* @__PURE__ */ g.jsx(nl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
65665
65665
  let JVe = /* @__PURE__ */ X(Bn).withConfig({ displayName: "SubmitButton", componentId: "sc-f70d0f7a-0" })(["&&{margin-top:24px;}transition:color 350ms ease,background-color 350ms ease;"]);
65666
65666
  const eGe = [{ constant: !1, inputs: [{ name: "_salt", type: "bytes32" }, { name: "_initializer", type: "bytes" }], name: "deployAccount", outputs: [{ name: "", type: "bool" }], payable: !1, stateMutability: "nonpayable", type: "function" }], tGe = [{ name: "from", type: "address" }, { name: "param2", type: "address" }, { name: "param3", type: "bytes" }, { name: "param4", type: "tuple", components: [] }, { type: "tuple", components: [{ name: "param5", type: "address" }, { name: "param6", type: "uint256" }, { name: "param7", type: "uint256" }, { name: "encodedInitData", type: "bytes" }] }], nGe = [{ constant: !1, inputs: [{ name: "spender", type: "address" }, { name: "value", type: "uint256" }], name: "approve", outputs: [{ name: "", type: "bool" }], payable: !1, stateMutability: "nonpayable", type: "function" }], vk = [{ constant: !1, inputs: [{ name: "_to", type: "address" }, { name: "_value", type: "uint256" }], name: "transfer", outputs: [{ name: "", type: "bool" }], payable: !1, stateMutability: "nonpayable", type: "function" }], rGe = [{ inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "mint", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "mint", outputs: [], stateMutability: "payable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }], name: "mint", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }], name: "mint", outputs: [], stateMutability: "payable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "tokenId", type: "uint256" }, { internalType: "uint256", name: "quantity", type: "uint256" }, { internalType: "bytes", name: "data", type: "bytes" }], name: "mint", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "tokenId", type: "uint256" }, { internalType: "uint256", name: "quantity", type: "uint256" }, { internalType: "bytes", name: "data", type: "bytes" }], name: "mint", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "payable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "uint256[]", name: "tokenIds", type: "uint256[]" }, { internalType: "uint256[]", name: "quantities", type: "uint256[]" }, { internalType: "bytes", name: "data", type: "bytes" }], name: "mintBatch", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "uint256[]", name: "tokenIds", type: "uint256[]" }, { internalType: "uint256[]", name: "quantities", type: "uint256[]" }, { internalType: "bytes", name: "data", type: "bytes" }], name: "mintBatch", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "payable", type: "function" }, { inputs: [{ internalType: "uint256", name: "quantity", type: "uint256" }], name: "mint", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint256", name: "quantity", type: "uint256" }], name: "mint", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "payable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }], name: "safeMint", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }], name: "safeMint", outputs: [], stateMutability: "payable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "string", name: "uri", type: "string" }], name: "safeMint", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "string", name: "uri", type: "string" }], name: "safeMint", outputs: [], stateMutability: "payable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "tokenId", type: "uint256" }], name: "safeMint", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "tokenId", type: "uint256" }], name: "safeMint", outputs: [], stateMutability: "payable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "tokenId", type: "uint256" }, { internalType: "string", name: "uri", type: "string" }], name: "safeMint", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "tokenId", type: "uint256" }, { internalType: "string", name: "uri", type: "string" }], name: "safeMint", outputs: [], stateMutability: "payable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "batchMint", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "batchMint", outputs: [], stateMutability: "payable", type: "function" }], iGe = [{ constant: !1, inputs: [{ name: "_from", type: "address" }, { name: "_to", type: "address" }, { name: "_tokenId", type: "uint256" }], name: "safeTransferFrom", outputs: [{ name: "", type: "bool" }], payable: !1, stateMutability: "nonpayable", type: "function" }], aGe = [{ constant: !1, inputs: [{ name: "_operator", type: "address" }, { name: "_approved", type: "bool" }], name: "setApprovalForAll", outputs: [{ name: "", type: "bool" }], payable: !1, stateMutability: "nonpayable", type: "function" }], sGe = [{ constant: !1, inputs: [{ name: "_from", type: "address" }, { name: "_to", type: "address" }, { name: "_tokenId", type: "uint256" }], name: "transferFrom", outputs: [{ name: "", type: "bool" }], payable: !1, stateMutability: "nonpayable", type: "function" }], oGe = [{ constant: !1, inputs: [{ name: "_from", type: "address" }, { name: "_to", type: "address" }, { name: "_tokenIds", type: "uint256[]" }, { name: "_amounts", type: "uint256[]" }, { name: "_data", type: "bytes" }], name: "safeBatchTransferFrom", outputs: [{ name: "", type: "bool" }], payable: !1, stateMutability: "nonpayable", type: "function" }], lGe = [{ constant: !1, inputs: [{ name: "_from", type: "address" }, { name: "_to", type: "address" }, { name: "_tokenId", type: "uint256" }, { name: "_amount", type: "uint256" }, { name: "_data", type: "bytes" }], name: "safeTransferFrom", outputs: [{ name: "", type: "bool" }], payable: !1, stateMutability: "nonpayable", type: "function" }], Xte = (t, e) => {
65667
65667
  let n = $c(nGe, t);
@@ -65849,7 +65849,7 @@ const dGe = (t) => /* @__PURE__ */ g.jsx("svg", { xmlns: "http://www.w3.org/2000
65849
65849
  })).catch((() => {
65850
65850
  }));
65851
65851
  }), []), e;
65852
- }, Hl = ({ children: t, color: e, isLoading: n, isPulsing: r, ...i }) => /* @__PURE__ */ g.jsx(hGe, { $color: e, $isLoading: n, $isPulsing: r, ...i, children: t });
65852
+ }, Vl = ({ children: t, color: e, isLoading: n, isPulsing: r, ...i }) => /* @__PURE__ */ g.jsx(hGe, { $color: e, $isLoading: n, $isPulsing: r, ...i, children: t });
65853
65853
  let hGe = /* @__PURE__ */ X.span.withConfig({ displayName: "StyledSpan", componentId: "sc-80725f4-0" })(["padding:0.25rem;font-size:0.75rem;font-weight:500;line-height:1rem;border-radius:var(--privy-border-radius-xs);display:flex;align-items:center;", " ", ""], ((t) => {
65854
65854
  let e, n;
65855
65855
  t.$color === "green" && (e = "var(--privy-color-success-dark)", n = "var(--privy-color-success-light)"), t.$color === "red" && (e = "var(--privy-color-error)", n = "var(--privy-color-error-light)"), t.$color === "gray" && (e = "var(--privy-color-foreground-2)", n = "var(--privy-color-background-2)");
@@ -65944,7 +65944,7 @@ const yGe = ({ walletName: t, installLink: e, title: n, subtitle: r = "Follow th
65944
65944
  return t && (d.description = `For the best experience, we'll automatically log you into the ${c} Mobile Wallet in-app browser.`, d.footnote = "You can always return here to login via other methods."), n && (d.title = "Still here?", d.description = `You may need to install the ${i.name} mobile app.`, d.footnote = `Once you're done, you can connect with ${i.name} wallet to complete the login.`), /* @__PURE__ */ g.jsx(vGe, { title: d.title, subtitle: d.description, buttonText: n ? "Go to App Store" : "Continue", buttonHref: o, isLoading: t && !o, helpText: d.footnote || void 0, onButtonClick: () => {
65945
65945
  setTimeout((() => r(!0)), 1e3);
65946
65946
  } });
65947
- } }, gl = ({ provider: t, displayName: e, logo: n, connectOnly: r, connector: i }) => {
65947
+ } }, yl = ({ provider: t, displayName: e, logo: n, connectOnly: r, connector: i }) => {
65948
65948
  let a, { navigate: s, setModalData: o } = rt(), { connectWallet: c } = Ke(), d = Kd(), f = Hd(t), m = i.connectorType === "wallet_connect_v2" ? t : i.walletClientType, p = window.matchMedia("(display-mode: standalone)").matches, y = Vee({ connectorType: i.connectorType, walletClientType: m });
65949
65949
  a = y && y.chainTypes.includes(i.chainType) ? () => {
65950
65950
  y.isInstalled || i.chainType === "solana" && "isInstalled" in i && i.isInstalled ? (c(i, m), s(r ? xk : tu)) : nn.isMobile ? (o({ installWalletModalData: { walletConfig: y, chainType: i.chainType, connectOnly: r } }), s(wGe)) : (o({ installWalletModalData: { walletConfig: y, chainType: i.chainType, connectOnly: r } }), s(bGe));
@@ -65956,7 +65956,7 @@ const yGe = ({ walletName: t, installLink: e, title: n, subtitle: r = "Follow th
65956
65956
  let b = e || f?.metadata?.shortName || f?.name || i.walletClientType;
65957
65957
  return g.jsxs(xGe, { onClick: a, children: [/* @__PURE__ */ g.jsx(tne, { icon: n || f?.image_url?.md, name: b }), /* @__PURE__ */ g.jsx("span", { children: b }), /* @__PURE__ */ g.jsxs(_Ge, { id: "chip-container", children: [d?.walletClientType === m && d?.chainType === i.chainType ? /* @__PURE__ */ g.jsx(xz, { color: "gray", children: "Recent" }) : /* @__PURE__ */ g.jsx("span", { id: "connect-text", children: "Connect" }), i.chainType === "solana" && /* @__PURE__ */ g.jsx(xz, { color: "gray", children: "Solana" })] })] });
65958
65958
  };
65959
- let xGe = /* @__PURE__ */ X(yr).withConfig({ displayName: "ConnectWalletButton", componentId: "sc-89605346-0" })(["> span{color:var(--privy-color-foreground);}> #chip-container > #connect-text{font-weight:500;color:var(--privy-color-accent);opacity:0;transition:opacity 0.1s ease-out;}:hover > #chip-container > #connect-text{opacity:1;}@media (max-width:440px){> #chip-container > #connect-text{display:none;}}"]), xz = /* @__PURE__ */ X(Hl).withConfig({ displayName: "StyledChip", componentId: "sc-89605346-1" })(["margin-left:auto;"]), _Ge = /* @__PURE__ */ X.div.withConfig({ displayName: "ChipContainer", componentId: "sc-89605346-2" })(["display:flex;flex-wrap:wrap;gap:8px;margin-left:auto;"]);
65959
+ let xGe = /* @__PURE__ */ X(yr).withConfig({ displayName: "ConnectWalletButton", componentId: "sc-89605346-0" })(["> span{color:var(--privy-color-foreground);}> #chip-container > #connect-text{font-weight:500;color:var(--privy-color-accent);opacity:0;transition:opacity 0.1s ease-out;}:hover > #chip-container > #connect-text{opacity:1;}@media (max-width:440px){> #chip-container > #connect-text{display:none;}}"]), xz = /* @__PURE__ */ X(Vl).withConfig({ displayName: "StyledChip", componentId: "sc-89605346-1" })(["margin-left:auto;"]), _Ge = /* @__PURE__ */ X.div.withConfig({ displayName: "ChipContainer", componentId: "sc-89605346-2" })(["display:flex;flex-wrap:wrap;gap:8px;margin-left:auto;"]);
65960
65960
  const EGe = ["coinbase_wallet", "base_account"];
65961
65961
  let CGe = ["metamask", "okx_wallet", "rainbow", "uniswap", "bybit_wallet", "ronin_wallet", "haha_wallet", "uniswap_extension", "zerion", "rabby_wallet", "cryptocom", "binance"];
65962
65962
  const SGe = ["safe"], kGe = ["phantom", "backpack", "solflare", "universal_profile"], rne = ({ walletList: t, walletChainType: e, connectors: n, connectOnly: r, ignore: i, walletConnectEnabled: a, forceWallet: s }) => {
@@ -65964,36 +65964,36 @@ const SGe = ["safe"], kGe = ["phantom", "backpack", "solflare", "universal_profi
65964
65964
  for (let [p, y] of (s ? [s.wallet] : t).entries()) {
65965
65965
  if (y === "detected_ethereum_wallets") for (let [b, w] of f.filter((({ chainType: x, connectorType: S, walletClientType: k }) => x !== "solana" && (k === "uniswap_wallet_extension" || k === "uniswap_extension" ? !i.includes("uniswap") : k === "crypto.com_wallet_extension" || k === "crypto.com_onchain" ? !i.includes("cryptocom") : S === "injected" && !i.includes(k)))).entries()) {
65966
65966
  let { walletClientType: x, walletBranding: S, chainType: k } = w;
65967
- (x === "unknown" ? c : o).push(/* @__PURE__ */ g.jsx(gl, { connectOnly: r, provider: x, logo: S.icon, displayName: S.name, connector: w }, `${p}-${y}-${x}-${k}-${b}`));
65967
+ (x === "unknown" ? c : o).push(/* @__PURE__ */ g.jsx(yl, { connectOnly: r, provider: x, logo: S.icon, displayName: S.name, connector: w }, `${p}-${y}-${x}-${k}-${b}`));
65968
65968
  }
65969
65969
  if (y === "detected_solana_wallets") for (let [b, w] of f.filter((({ chainType: x, walletClientType: S }) => {
65970
65970
  if (x === "solana") return e !== "ethereum-only" && !i.includes(S);
65971
65971
  })).entries()) {
65972
65972
  let { walletClientType: x, walletBranding: S, chainType: k } = w;
65973
- (x === "unknown" ? c : o).push(/* @__PURE__ */ g.jsx(gl, { connectOnly: r, provider: x, logo: S.icon, displayName: S.name, connector: w }, `${p}-${y}-${x}-${k}-${b}`));
65973
+ (x === "unknown" ? c : o).push(/* @__PURE__ */ g.jsx(yl, { connectOnly: r, provider: x, logo: S.icon, displayName: S.name, connector: w }, `${p}-${y}-${x}-${k}-${b}`));
65974
65974
  }
65975
65975
  if (kGe.includes(y)) {
65976
65976
  let b = f.find(((w) => w.connectorType === "injected" && w.walletClientType === y || w.connectorType === y));
65977
- if (b && o.push(/* @__PURE__ */ g.jsx(gl, { connectOnly: r, provider: y, connector: b }, `${p}-${y}`)), e === "solana-only" || e === "ethereum-and-solana") {
65977
+ if (b && o.push(/* @__PURE__ */ g.jsx(yl, { connectOnly: r, provider: y, connector: b }, `${p}-${y}`)), e === "solana-only" || e === "ethereum-and-solana") {
65978
65978
  let w = f.find((({ chainType: x, walletClientType: S }) => x === "solana" && S === y));
65979
- w && o.push(/* @__PURE__ */ g.jsx(gl, { connectOnly: r, provider: y, connector: w }, `${y}-solana`));
65979
+ w && o.push(/* @__PURE__ */ g.jsx(yl, { connectOnly: r, provider: y, connector: w }, `${y}-solana`));
65980
65980
  }
65981
65981
  } else if (CGe.includes(y)) {
65982
65982
  let b = f.find(((w) => y === "uniswap" ? w.walletClientType === "uniswap_wallet_extension" || w.walletClientType === "uniswap_extension" : y === "cryptocom" ? w.walletClientType === "crypto.com_wallet_extension" || w.walletClientType === "crypto.com_onchain" : w.connectorType === "injected" && w.walletClientType === y));
65983
- if (a && !b && (b = m), b && o.push(/* @__PURE__ */ g.jsx(gl, { connectOnly: r, provider: y, connector: b, logo: b.connectorType === "injected" ? b.walletBranding.icon : void 0, displayName: b.connectorType === "injected" ? b.walletBranding.name : void 0 }, `${p}-${y}`)), e === "solana-only" || e === "ethereum-and-solana") {
65983
+ if (a && !b && (b = m), b && o.push(/* @__PURE__ */ g.jsx(yl, { connectOnly: r, provider: y, connector: b, logo: b.connectorType === "injected" ? b.walletBranding.icon : void 0, displayName: b.connectorType === "injected" ? b.walletBranding.name : void 0 }, `${p}-${y}`)), e === "solana-only" || e === "ethereum-and-solana") {
65984
65984
  let w = f.find((({ chainType: x, walletClientType: S }) => x === "solana" && S === y));
65985
- w && o.push(/* @__PURE__ */ g.jsx(gl, { connectOnly: r, provider: y, connector: w }, `${y}-solana`));
65985
+ w && o.push(/* @__PURE__ */ g.jsx(yl, { connectOnly: r, provider: y, connector: w }, `${y}-solana`));
65986
65986
  }
65987
65987
  } else if (EGe.includes(y)) {
65988
65988
  let b = f.find((({ connectorType: w }) => w === y));
65989
- b && o.push(/* @__PURE__ */ g.jsx(gl, { connectOnly: r, provider: y, connector: b, displayName: b.walletClientType === "coinbase_wallet" ? "Coinbase" : "Base", logo: b.walletClientType === "coinbase_wallet" ? Uee : Fee }, `${p}-${y}`));
65990
- } else if (SGe.includes(y)) m && d.push(/* @__PURE__ */ g.jsx(gl, { connectOnly: r, provider: y, connector: m }, `${p}-${y}`));
65991
- else if (y === "wallet_connect") m && d.push(/* @__PURE__ */ g.jsx(gl, { connectOnly: r, provider: y, connector: m, logo: m.walletBranding.icon, displayName: "WalletConnect" }, `${p}-${y}`));
65989
+ b && o.push(/* @__PURE__ */ g.jsx(yl, { connectOnly: r, provider: y, connector: b, displayName: b.walletClientType === "coinbase_wallet" ? "Coinbase" : "Base", logo: b.walletClientType === "coinbase_wallet" ? Uee : Fee }, `${p}-${y}`));
65990
+ } else if (SGe.includes(y)) m && d.push(/* @__PURE__ */ g.jsx(yl, { connectOnly: r, provider: y, connector: m }, `${p}-${y}`));
65991
+ else if (y === "wallet_connect") m && d.push(/* @__PURE__ */ g.jsx(yl, { connectOnly: r, provider: y, connector: m, logo: m.walletBranding.icon, displayName: "WalletConnect" }, `${p}-${y}`));
65992
65992
  else if (y === s?.wallet) {
65993
65993
  let b = s.chainType === "ethereum" && t.includes("detected_ethereum_wallets"), w = s.chainType === "solana" && t.includes("detected_solana_wallets");
65994
65994
  if (b || w) {
65995
65995
  let x = f.find((({ walletClientType: S }) => S === y));
65996
- x && o.push(/* @__PURE__ */ g.jsx(gl, { connectOnly: r, provider: y, displayName: x.walletBranding?.name, logo: x.walletBranding?.icon, connector: x }, `${p}-${y}`));
65996
+ x && o.push(/* @__PURE__ */ g.jsx(yl, { connectOnly: r, provider: y, displayName: x.walletBranding?.name, logo: x.walletBranding?.icon, connector: x }, `${p}-${y}`));
65997
65997
  }
65998
65998
  }
65999
65999
  }
@@ -66006,12 +66006,12 @@ const SGe = ["safe"], kGe = ["phantom", "backpack", "solflare", "universal_profi
66006
66006
  }
66007
66007
  return { balance: o, erc20Balance: c, erc20Address: d, chain: a };
66008
66008
  }))), AGe = (t) => /* @__PURE__ */ g.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", version: "1.1", id: "Layer_1", x: "0px", y: "0px", viewBox: "0 0 397.7 311.7", enableBackground: "new 0 0 397.7 311.7", xmlSpace: "preserve", ...t, children: [/* @__PURE__ */ g.jsxs("linearGradient", { id: "SVGID_1_", gradientUnits: "userSpaceOnUse", x1: "360.8791", y1: "351.4553", x2: "141.213", y2: "-69.2936", gradientTransform: "matrix(1 0 0 -1 0 314)", children: [/* @__PURE__ */ g.jsx("stop", { offset: "0", stopColor: "#00FFA3" }), /* @__PURE__ */ g.jsx("stop", { offset: "1", stopColor: "#DC1FFF" })] }), /* @__PURE__ */ g.jsx("path", { d: "M64.6,237.9c2.4-2.4,5.7-3.8,9.2-3.8h317.4c5.8,0,8.7,7,4.6,11.1l-62.7,62.7c-2.4,2.4-5.7,3.8-9.2,3.8H6.5 c-5.8,0-8.7-7-4.6-11.1L64.6,237.9z", fill: "url(#SVGID_1_)" }), /* @__PURE__ */ g.jsxs("linearGradient", { id: "SVGID_2_", gradientUnits: "userSpaceOnUse", x1: "264.8291", y1: "401.6014", x2: "45.163", y2: "-19.1475", gradientTransform: "matrix(1 0 0 -1 0 314)", children: [/* @__PURE__ */ g.jsx("stop", { offset: "0", stopColor: "#00FFA3" }), /* @__PURE__ */ g.jsx("stop", { offset: "1", stopColor: "#DC1FFF" })] }), /* @__PURE__ */ g.jsx("path", { d: "M64.6,3.8C67.1,1.4,70.4,0,73.8,0h317.4c5.8,0,8.7,7,4.6,11.1l-62.7,62.7c-2.4,2.4-5.7,3.8-9.2,3.8H6.5 c-5.8,0-8.7-7-4.6-11.1L64.6,3.8z", fill: "url(#SVGID_2_)" }), /* @__PURE__ */ g.jsxs("linearGradient", { id: "SVGID_3_", gradientUnits: "userSpaceOnUse", x1: "312.5484", y1: "376.688", x2: "92.8822", y2: "-44.061", gradientTransform: "matrix(1 0 0 -1 0 314)", children: [/* @__PURE__ */ g.jsx("stop", { offset: "0", stopColor: "#00FFA3" }), /* @__PURE__ */ g.jsx("stop", { offset: "1", stopColor: "#DC1FFF" })] }), /* @__PURE__ */ g.jsx("path", { d: "M333.1,120.1c-2.4-2.4-5.7-3.8-9.2-3.8H6.5c-5.8,0-8.7,7-4.6,11.1l62.7,62.7c2.4,2.4,5.7,3.8,9.2,3.8h317.4 c5.8,0,8.7-7,4.6-11.1L333.1,120.1z", fill: "url(#SVGID_3_)" })] });
66009
- let TGe = { [Xo.id]: (t) => /* @__PURE__ */ g.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", version: "1.1", id: "Layer_1", x: "0px", y: "0px", viewBox: "0 0 2500 2500", xmlSpace: "preserve", ...t, children: /* @__PURE__ */ g.jsx("g", { id: "Layer_x0020_1", children: /* @__PURE__ */ g.jsxs("g", { id: "_2405588477232", children: [/* @__PURE__ */ g.jsx("rect", { fill: "none", width: "2500", height: "2500" }), /* @__PURE__ */ g.jsx("g", { children: /* @__PURE__ */ g.jsxs("g", { children: [/* @__PURE__ */ g.jsx("path", { fill: "#213147", d: "M226,760v980c0,63,33,120,88,152l849,490c54,31,121,31,175,0l849-490c54-31,88-89,88-152V760 c0-63-33-120-88-152l-849-490c-54-31-121-31-175,0L314,608c-54,31-87,89-87,152H226z" }), /* @__PURE__ */ g.jsx("g", { children: /* @__PURE__ */ g.jsxs("g", { children: [/* @__PURE__ */ g.jsx("g", { children: /* @__PURE__ */ g.jsx("path", { fill: "#12AAFF", d: "M1435,1440l-121,332c-3,9-3,19,0,29l208,571l241-139l-289-793C1467,1422,1442,1422,1435,1440z" }) }), /* @__PURE__ */ g.jsx("g", { children: /* @__PURE__ */ g.jsx("path", { fill: "#12AAFF", d: "M1678,882c-7-18-32-18-39,0l-121,332c-3,9-3,19,0,29l341,935l241-139L1678,883V882z" }) })] }) }), /* @__PURE__ */ g.jsx("g", { children: /* @__PURE__ */ g.jsx("path", { fill: "#9DCCED", d: "M1250,155c6,0,12,2,17,5l918,530c11,6,17,18,17,30v1060c0,12-7,24-17,30l-918,530c-5,3-11,5-17,5 s-12-2-17-5l-918-530c-11-6-17-18-17-30V719c0-12,7-24,17-30l918-530c5-3,11-5,17-5l0,0V155z M1250,0c-33,0-65,8-95,25L237,555 c-59,34-95,96-95,164v1060c0,68,36,130,95,164l918,530c29,17,62,25,95,25s65-8,95-25l918-530c59-34,95-96,95-164V719 c0-68-36-130-95-164L1344,25c-29-17-62-25-95-25l0,0H1250z" }) }), /* @__PURE__ */ g.jsx("polygon", { fill: "#213147", points: "642,2179 727,1947 897,2088 738,2234 " }), /* @__PURE__ */ g.jsxs("g", { children: [/* @__PURE__ */ g.jsx("path", { fill: "#FFFFFF", d: "M1172,644H939c-17,0-33,11-39,27L401,2039l241,139l550-1507c5-14-5-28-19-28L1172,644z" }), /* @__PURE__ */ g.jsx("path", { fill: "#FFFFFF", d: "M1580,644h-233c-17,0-33,11-39,27L738,2233l241,139l620-1701c5-14-5-28-19-28V644z" })] })] }) })] }) }) }), [Jo.id]: (t) => /* @__PURE__ */ g.jsxs("svg", { width: "1503", height: "1504", viewBox: "0 0 1503 1504", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [/* @__PURE__ */ g.jsx("rect", { x: "287", y: "258", width: "928", height: "844", fill: "white" }), /* @__PURE__ */ g.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1502.5 752C1502.5 1166.77 1166.27 1503 751.5 1503C336.734 1503 0.5 1166.77 0.5 752C0.5 337.234 336.734 1 751.5 1C1166.27 1 1502.5 337.234 1502.5 752ZM538.688 1050.86H392.94C362.314 1050.86 347.186 1050.86 337.962 1044.96C327.999 1038.5 321.911 1027.8 321.173 1015.99C320.619 1005.11 328.184 991.822 343.312 965.255L703.182 330.935C718.495 303.999 726.243 290.531 736.021 285.55C746.537 280.2 759.083 280.2 769.599 285.55C779.377 290.531 787.126 303.999 802.438 330.935L876.42 460.079L876.797 460.738C893.336 489.635 901.723 504.289 905.385 519.669C909.443 536.458 909.443 554.169 905.385 570.958C901.695 586.455 893.393 601.215 876.604 630.549L687.573 964.702L687.084 965.558C670.436 994.693 661.999 1009.46 650.306 1020.6C637.576 1032.78 622.263 1041.63 605.474 1046.62C590.161 1050.86 573.004 1050.86 538.688 1050.86ZM906.75 1050.86H1115.59C1146.4 1050.86 1161.9 1050.86 1171.13 1044.78C1181.09 1038.32 1187.36 1027.43 1187.92 1015.63C1188.45 1005.1 1181.05 992.33 1166.55 967.307C1166.05 966.455 1165.55 965.588 1165.04 964.706L1060.43 785.75L1059.24 783.735C1044.54 758.877 1037.12 746.324 1027.59 741.472C1017.08 736.121 1004.71 736.121 994.199 741.472C984.605 746.453 976.857 759.552 961.544 785.934L857.306 964.891L856.949 965.507C841.69 991.847 834.064 1005.01 834.614 1015.81C835.352 1027.62 841.44 1038.5 851.402 1044.96C860.443 1050.86 875.94 1050.86 906.75 1050.86Z", fill: "#E84142" })] }), [el.id]: (t) => /* @__PURE__ */ g.jsxs("svg", { width: "146", height: "146", viewBox: "0 0 146 146", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [/* @__PURE__ */ g.jsx("circle", { cx: "73", cy: "73", r: "73", fill: "#0052FF" }), /* @__PURE__ */ g.jsx("path", { d: "M73.323 123.729C101.617 123.729 124.553 100.832 124.553 72.5875C124.553 44.343 101.617 21.4463 73.323 21.4463C46.4795 21.4463 24.4581 42.0558 22.271 68.2887H89.9859V76.8864H22.271C24.4581 103.119 46.4795 123.729 73.323 123.729Z", fill: "white" })] }), [K5.id]: (t) => /* @__PURE__ */ g.jsxs("svg", { fill: "none", height: "400", viewBox: "0 0 400 400", width: "400", xmlns: "http://www.w3.org/2000/svg", ...t, children: [/* @__PURE__ */ g.jsx("path", { d: "m0 0h400v400h-400z", fill: "#fcff52" }), /* @__PURE__ */ g.jsx("path", { d: "m300 100h-200v200h199.996v-69.813h-33.191c-11.442 25.468-37.194 43.206-66.665 43.206-40.63 0-73.533-33.187-73.533-73.533s32.903-73.249 73.533-73.249c30.043 0 55.795 18.313 67.24 44.349h32.62z", fill: "#000" })] }), [lG.id]: (t) => /* @__PURE__ */ g.jsxs("svg", { width: "200", height: "208", viewBox: "0 0 200 208", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [/* @__PURE__ */ g.jsx("rect", { width: "199.4", height: "207.623", fill: "#121212" }), /* @__PURE__ */ g.jsxs("g", { "clip-path": "url(#clip0_2303_643)", children: [/* @__PURE__ */ g.jsx("path", { d: "M132.369 155.99H49.7001V68.8854H68.6148V139.109H132.369V155.981V155.99Z", fill: "white" }), /* @__PURE__ */ g.jsx("path", { d: "M132.369 85.7575C141.687 85.7575 149.241 78.2036 149.241 68.8855C149.241 59.5673 141.687 52.0134 132.369 52.0134C123.05 52.0134 115.497 59.5673 115.497 68.8855C115.497 78.2036 123.05 85.7575 132.369 85.7575Z", fill: "white" })] }), /* @__PURE__ */ g.jsx("defs", { children: /* @__PURE__ */ g.jsx("clipPath", { id: "clip0_2303_643", children: /* @__PURE__ */ g.jsx("rect", { width: "99.5407", height: "103.977", fill: "white", transform: "translate(49.7001 52.0134)" }) }) })] }), [ho.id]: (t) => /* @__PURE__ */ g.jsxs("svg", { version: "1.1", id: "Layer_1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", x: "0px", y: "0px", viewBox: "0 0 327.5 533.3", enableBackground: "new 0 0 327.5 533.3;", xmlSpace: "preserve", ...t, children: [/* @__PURE__ */ g.jsx("path", { fill: "#8492B2", d: "M163.7,197.2V0L0,271.6L163.7,197.2z" }), /* @__PURE__ */ g.jsx("path", { fill: "#62688F", d: "M163.7,368.4V197.2L0,271.6L163.7,368.4z M163.7,197.2l163.7,74.4L163.7,0V197.2z" }), /* @__PURE__ */ g.jsx("path", { fill: "#454A75", d: "M163.7,197.2v171.2l163.7-96.8L163.7,197.2z" }), /* @__PURE__ */ g.jsx("path", { fill: "#8492B2", d: "M163.7,399.4L0,302.7l163.7,230.7V399.4z" }), /* @__PURE__ */ g.jsx("path", { fill: "#62688F", d: "M327.5,302.7l-163.8,96.7v134L327.5,302.7z" })] }), [gu.id]: (t) => /* @__PURE__ */ g.jsxs("svg", { width: "500", height: "500", viewBox: "0 0 500 500", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [/* @__PURE__ */ g.jsx("circle", { cx: "250", cy: "250", r: "250", fill: "#FF0420" }), /* @__PURE__ */ g.jsx("path", { d: "M177.133 316.446C162.247 316.446 150.051 312.943 140.544 305.938C131.162 298.808 126.471 288.676 126.471 275.541C126.471 272.789 126.784 269.411 127.409 265.408C129.036 256.402 131.35 245.581 134.352 232.947C142.858 198.547 164.812 181.347 200.213 181.347C209.845 181.347 218.476 182.973 226.107 186.225C233.738 189.352 239.742 194.106 244.12 200.486C248.498 206.74 250.688 214.246 250.688 223.002C250.688 225.629 250.375 228.944 249.749 232.947C247.873 244.08 245.621 254.901 242.994 265.408C238.616 282.546 231.048 295.368 220.29 303.874C209.532 312.255 195.147 316.446 177.133 316.446ZM179.76 289.426C186.766 289.426 192.707 287.362 197.586 283.234C202.59 279.106 206.155 272.789 208.281 264.283C211.158 252.524 213.348 242.266 214.849 233.51C215.349 230.883 215.599 228.194 215.599 225.441C215.599 214.058 209.657 208.366 197.774 208.366C190.768 208.366 184.764 210.43 179.76 214.558C174.882 218.687 171.379 225.004 169.253 233.51C167.001 241.891 164.749 252.149 162.498 264.283C161.997 266.784 161.747 269.411 161.747 272.163C161.747 283.672 167.752 289.426 179.76 289.426Z", fill: "white" }), /* @__PURE__ */ g.jsx("path", { d: "M259.303 314.57C257.927 314.57 256.863 314.132 256.113 313.256C255.487 312.255 255.3 311.13 255.55 309.879L281.444 187.914C281.694 186.538 282.382 185.412 283.508 184.536C284.634 183.661 285.822 183.223 287.073 183.223H336.985C350.87 183.223 362.003 186.1 370.384 191.854C378.891 197.609 383.144 205.927 383.144 216.81C383.144 219.937 382.769 223.19 382.018 226.567C378.891 240.953 372.574 251.586 363.067 258.466C353.685 265.346 340.8 268.786 324.413 268.786H299.082L290.451 309.879C290.2 311.255 289.512 312.38 288.387 313.256C287.261 314.132 286.072 314.57 284.822 314.57H259.303ZM325.727 242.892C330.98 242.892 335.546 241.453 339.424 238.576C343.427 235.699 346.054 231.571 347.305 226.192C347.68 224.065 347.868 222.189 347.868 220.563C347.868 216.935 346.805 214.183 344.678 212.307C342.551 210.305 338.924 209.305 333.795 209.305H311.278L304.148 242.892H325.727Z", fill: "white" })] }), [po.id]: (t) => /* @__PURE__ */ g.jsxs("svg", { width: "360", height: "360", viewBox: "0 0 360 360", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [/* @__PURE__ */ g.jsx("rect", { width: "360", height: "360", rx: "180", fill: "#6C00F6" }), /* @__PURE__ */ g.jsx("path", { d: "M157.743 154.241L141.052 144.58L90.9766 173.561V231.519L141.052 260.5L191.13 231.519V141.359L218.948 125.26L246.77 141.359V173.561L218.948 189.66L202.257 180.002V205.759L218.948 215.42L269.024 186.439V128.481L218.948 99.5L168.873 128.481V218.641L141.052 234.74L113.233 218.641V186.439L141.052 170.34L157.743 179.998V154.241Z", fill: "white" })] }), [cG.id]: (t) => /* @__PURE__ */ g.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", fill: "none", ...t, children: [/* @__PURE__ */ g.jsx("g", { clipPath: "url(#clip0)", children: /* @__PURE__ */ g.jsx("g", { clipPath: "url(#clip1)", children: /* @__PURE__ */ g.jsx("path", { d: "M14.9188 29.8373C6.67944 29.8373 0.00012207 23.1581 0.00012207 14.9187C0.00012207 6.67931 6.67944 0 14.9188 0C23.1581 0 29.8373 6.67931 29.8373 14.9187C29.8373 23.1581 23.1581 29.8373 14.9188 29.8373Z", fill: "url(#paint0)" }) }) }), /* @__PURE__ */ g.jsxs("defs", { children: [/* @__PURE__ */ g.jsxs("radialGradient", { id: "paint0", cx: "0", cy: "0", r: "1", gradientUnits: "userSpaceOnUse", gradientTransform: "translate(21.6921 8.02215) rotate(180) scale(25.2008)", children: [/* @__PURE__ */ g.jsx("stop", { offset: "0.00682297", stopColor: "#F2CEFE" }), /* @__PURE__ */ g.jsx("stop", { offset: "0.1913", stopColor: "#AFBAF1" }), /* @__PURE__ */ g.jsx("stop", { offset: "0.4982", stopColor: "#4281D3" }), /* @__PURE__ */ g.jsx("stop", { offset: "0.666667", stopColor: "#2E427D" }), /* @__PURE__ */ g.jsx("stop", { offset: "0.822917", stopColor: "#230101" }), /* @__PURE__ */ g.jsx("stop", { offset: "1", stopColor: "#8F6B40" })] }), /* @__PURE__ */ g.jsx("clipPath", { id: "clip0", children: /* @__PURE__ */ g.jsx("rect", { width: "30", height: "30", fill: "white" }) }), /* @__PURE__ */ g.jsx("clipPath", { id: "clip1", children: /* @__PURE__ */ g.jsx("rect", { width: "30", height: "30", fill: "white" }) })] })] }) };
66009
+ let TGe = { [Jo.id]: (t) => /* @__PURE__ */ g.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", version: "1.1", id: "Layer_1", x: "0px", y: "0px", viewBox: "0 0 2500 2500", xmlSpace: "preserve", ...t, children: /* @__PURE__ */ g.jsx("g", { id: "Layer_x0020_1", children: /* @__PURE__ */ g.jsxs("g", { id: "_2405588477232", children: [/* @__PURE__ */ g.jsx("rect", { fill: "none", width: "2500", height: "2500" }), /* @__PURE__ */ g.jsx("g", { children: /* @__PURE__ */ g.jsxs("g", { children: [/* @__PURE__ */ g.jsx("path", { fill: "#213147", d: "M226,760v980c0,63,33,120,88,152l849,490c54,31,121,31,175,0l849-490c54-31,88-89,88-152V760 c0-63-33-120-88-152l-849-490c-54-31-121-31-175,0L314,608c-54,31-87,89-87,152H226z" }), /* @__PURE__ */ g.jsx("g", { children: /* @__PURE__ */ g.jsxs("g", { children: [/* @__PURE__ */ g.jsx("g", { children: /* @__PURE__ */ g.jsx("path", { fill: "#12AAFF", d: "M1435,1440l-121,332c-3,9-3,19,0,29l208,571l241-139l-289-793C1467,1422,1442,1422,1435,1440z" }) }), /* @__PURE__ */ g.jsx("g", { children: /* @__PURE__ */ g.jsx("path", { fill: "#12AAFF", d: "M1678,882c-7-18-32-18-39,0l-121,332c-3,9-3,19,0,29l341,935l241-139L1678,883V882z" }) })] }) }), /* @__PURE__ */ g.jsx("g", { children: /* @__PURE__ */ g.jsx("path", { fill: "#9DCCED", d: "M1250,155c6,0,12,2,17,5l918,530c11,6,17,18,17,30v1060c0,12-7,24-17,30l-918,530c-5,3-11,5-17,5 s-12-2-17-5l-918-530c-11-6-17-18-17-30V719c0-12,7-24,17-30l918-530c5-3,11-5,17-5l0,0V155z M1250,0c-33,0-65,8-95,25L237,555 c-59,34-95,96-95,164v1060c0,68,36,130,95,164l918,530c29,17,62,25,95,25s65-8,95-25l918-530c59-34,95-96,95-164V719 c0-68-36-130-95-164L1344,25c-29-17-62-25-95-25l0,0H1250z" }) }), /* @__PURE__ */ g.jsx("polygon", { fill: "#213147", points: "642,2179 727,1947 897,2088 738,2234 " }), /* @__PURE__ */ g.jsxs("g", { children: [/* @__PURE__ */ g.jsx("path", { fill: "#FFFFFF", d: "M1172,644H939c-17,0-33,11-39,27L401,2039l241,139l550-1507c5-14-5-28-19-28L1172,644z" }), /* @__PURE__ */ g.jsx("path", { fill: "#FFFFFF", d: "M1580,644h-233c-17,0-33,11-39,27L738,2233l241,139l620-1701c5-14-5-28-19-28V644z" })] })] }) })] }) }) }), [el.id]: (t) => /* @__PURE__ */ g.jsxs("svg", { width: "1503", height: "1504", viewBox: "0 0 1503 1504", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [/* @__PURE__ */ g.jsx("rect", { x: "287", y: "258", width: "928", height: "844", fill: "white" }), /* @__PURE__ */ g.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1502.5 752C1502.5 1166.77 1166.27 1503 751.5 1503C336.734 1503 0.5 1166.77 0.5 752C0.5 337.234 336.734 1 751.5 1C1166.27 1 1502.5 337.234 1502.5 752ZM538.688 1050.86H392.94C362.314 1050.86 347.186 1050.86 337.962 1044.96C327.999 1038.5 321.911 1027.8 321.173 1015.99C320.619 1005.11 328.184 991.822 343.312 965.255L703.182 330.935C718.495 303.999 726.243 290.531 736.021 285.55C746.537 280.2 759.083 280.2 769.599 285.55C779.377 290.531 787.126 303.999 802.438 330.935L876.42 460.079L876.797 460.738C893.336 489.635 901.723 504.289 905.385 519.669C909.443 536.458 909.443 554.169 905.385 570.958C901.695 586.455 893.393 601.215 876.604 630.549L687.573 964.702L687.084 965.558C670.436 994.693 661.999 1009.46 650.306 1020.6C637.576 1032.78 622.263 1041.63 605.474 1046.62C590.161 1050.86 573.004 1050.86 538.688 1050.86ZM906.75 1050.86H1115.59C1146.4 1050.86 1161.9 1050.86 1171.13 1044.78C1181.09 1038.32 1187.36 1027.43 1187.92 1015.63C1188.45 1005.1 1181.05 992.33 1166.55 967.307C1166.05 966.455 1165.55 965.588 1165.04 964.706L1060.43 785.75L1059.24 783.735C1044.54 758.877 1037.12 746.324 1027.59 741.472C1017.08 736.121 1004.71 736.121 994.199 741.472C984.605 746.453 976.857 759.552 961.544 785.934L857.306 964.891L856.949 965.507C841.69 991.847 834.064 1005.01 834.614 1015.81C835.352 1027.62 841.44 1038.5 851.402 1044.96C860.443 1050.86 875.94 1050.86 906.75 1050.86Z", fill: "#E84142" })] }), [tl.id]: (t) => /* @__PURE__ */ g.jsxs("svg", { width: "146", height: "146", viewBox: "0 0 146 146", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [/* @__PURE__ */ g.jsx("circle", { cx: "73", cy: "73", r: "73", fill: "#0052FF" }), /* @__PURE__ */ g.jsx("path", { d: "M73.323 123.729C101.617 123.729 124.553 100.832 124.553 72.5875C124.553 44.343 101.617 21.4463 73.323 21.4463C46.4795 21.4463 24.4581 42.0558 22.271 68.2887H89.9859V76.8864H22.271C24.4581 103.119 46.4795 123.729 73.323 123.729Z", fill: "white" })] }), [K5.id]: (t) => /* @__PURE__ */ g.jsxs("svg", { fill: "none", height: "400", viewBox: "0 0 400 400", width: "400", xmlns: "http://www.w3.org/2000/svg", ...t, children: [/* @__PURE__ */ g.jsx("path", { d: "m0 0h400v400h-400z", fill: "#fcff52" }), /* @__PURE__ */ g.jsx("path", { d: "m300 100h-200v200h199.996v-69.813h-33.191c-11.442 25.468-37.194 43.206-66.665 43.206-40.63 0-73.533-33.187-73.533-73.533s32.903-73.249 73.533-73.249c30.043 0 55.795 18.313 67.24 44.349h32.62z", fill: "#000" })] }), [lG.id]: (t) => /* @__PURE__ */ g.jsxs("svg", { width: "200", height: "208", viewBox: "0 0 200 208", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [/* @__PURE__ */ g.jsx("rect", { width: "199.4", height: "207.623", fill: "#121212" }), /* @__PURE__ */ g.jsxs("g", { "clip-path": "url(#clip0_2303_643)", children: [/* @__PURE__ */ g.jsx("path", { d: "M132.369 155.99H49.7001V68.8854H68.6148V139.109H132.369V155.981V155.99Z", fill: "white" }), /* @__PURE__ */ g.jsx("path", { d: "M132.369 85.7575C141.687 85.7575 149.241 78.2036 149.241 68.8855C149.241 59.5673 141.687 52.0134 132.369 52.0134C123.05 52.0134 115.497 59.5673 115.497 68.8855C115.497 78.2036 123.05 85.7575 132.369 85.7575Z", fill: "white" })] }), /* @__PURE__ */ g.jsx("defs", { children: /* @__PURE__ */ g.jsx("clipPath", { id: "clip0_2303_643", children: /* @__PURE__ */ g.jsx("rect", { width: "99.5407", height: "103.977", fill: "white", transform: "translate(49.7001 52.0134)" }) }) })] }), [ho.id]: (t) => /* @__PURE__ */ g.jsxs("svg", { version: "1.1", id: "Layer_1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", x: "0px", y: "0px", viewBox: "0 0 327.5 533.3", enableBackground: "new 0 0 327.5 533.3;", xmlSpace: "preserve", ...t, children: [/* @__PURE__ */ g.jsx("path", { fill: "#8492B2", d: "M163.7,197.2V0L0,271.6L163.7,197.2z" }), /* @__PURE__ */ g.jsx("path", { fill: "#62688F", d: "M163.7,368.4V197.2L0,271.6L163.7,368.4z M163.7,197.2l163.7,74.4L163.7,0V197.2z" }), /* @__PURE__ */ g.jsx("path", { fill: "#454A75", d: "M163.7,197.2v171.2l163.7-96.8L163.7,197.2z" }), /* @__PURE__ */ g.jsx("path", { fill: "#8492B2", d: "M163.7,399.4L0,302.7l163.7,230.7V399.4z" }), /* @__PURE__ */ g.jsx("path", { fill: "#62688F", d: "M327.5,302.7l-163.8,96.7v134L327.5,302.7z" })] }), [gu.id]: (t) => /* @__PURE__ */ g.jsxs("svg", { width: "500", height: "500", viewBox: "0 0 500 500", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [/* @__PURE__ */ g.jsx("circle", { cx: "250", cy: "250", r: "250", fill: "#FF0420" }), /* @__PURE__ */ g.jsx("path", { d: "M177.133 316.446C162.247 316.446 150.051 312.943 140.544 305.938C131.162 298.808 126.471 288.676 126.471 275.541C126.471 272.789 126.784 269.411 127.409 265.408C129.036 256.402 131.35 245.581 134.352 232.947C142.858 198.547 164.812 181.347 200.213 181.347C209.845 181.347 218.476 182.973 226.107 186.225C233.738 189.352 239.742 194.106 244.12 200.486C248.498 206.74 250.688 214.246 250.688 223.002C250.688 225.629 250.375 228.944 249.749 232.947C247.873 244.08 245.621 254.901 242.994 265.408C238.616 282.546 231.048 295.368 220.29 303.874C209.532 312.255 195.147 316.446 177.133 316.446ZM179.76 289.426C186.766 289.426 192.707 287.362 197.586 283.234C202.59 279.106 206.155 272.789 208.281 264.283C211.158 252.524 213.348 242.266 214.849 233.51C215.349 230.883 215.599 228.194 215.599 225.441C215.599 214.058 209.657 208.366 197.774 208.366C190.768 208.366 184.764 210.43 179.76 214.558C174.882 218.687 171.379 225.004 169.253 233.51C167.001 241.891 164.749 252.149 162.498 264.283C161.997 266.784 161.747 269.411 161.747 272.163C161.747 283.672 167.752 289.426 179.76 289.426Z", fill: "white" }), /* @__PURE__ */ g.jsx("path", { d: "M259.303 314.57C257.927 314.57 256.863 314.132 256.113 313.256C255.487 312.255 255.3 311.13 255.55 309.879L281.444 187.914C281.694 186.538 282.382 185.412 283.508 184.536C284.634 183.661 285.822 183.223 287.073 183.223H336.985C350.87 183.223 362.003 186.1 370.384 191.854C378.891 197.609 383.144 205.927 383.144 216.81C383.144 219.937 382.769 223.19 382.018 226.567C378.891 240.953 372.574 251.586 363.067 258.466C353.685 265.346 340.8 268.786 324.413 268.786H299.082L290.451 309.879C290.2 311.255 289.512 312.38 288.387 313.256C287.261 314.132 286.072 314.57 284.822 314.57H259.303ZM325.727 242.892C330.98 242.892 335.546 241.453 339.424 238.576C343.427 235.699 346.054 231.571 347.305 226.192C347.68 224.065 347.868 222.189 347.868 220.563C347.868 216.935 346.805 214.183 344.678 212.307C342.551 210.305 338.924 209.305 333.795 209.305H311.278L304.148 242.892H325.727Z", fill: "white" })] }), [po.id]: (t) => /* @__PURE__ */ g.jsxs("svg", { width: "360", height: "360", viewBox: "0 0 360 360", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [/* @__PURE__ */ g.jsx("rect", { width: "360", height: "360", rx: "180", fill: "#6C00F6" }), /* @__PURE__ */ g.jsx("path", { d: "M157.743 154.241L141.052 144.58L90.9766 173.561V231.519L141.052 260.5L191.13 231.519V141.359L218.948 125.26L246.77 141.359V173.561L218.948 189.66L202.257 180.002V205.759L218.948 215.42L269.024 186.439V128.481L218.948 99.5L168.873 128.481V218.641L141.052 234.74L113.233 218.641V186.439L141.052 170.34L157.743 179.998V154.241Z", fill: "white" })] }), [cG.id]: (t) => /* @__PURE__ */ g.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", fill: "none", ...t, children: [/* @__PURE__ */ g.jsx("g", { clipPath: "url(#clip0)", children: /* @__PURE__ */ g.jsx("g", { clipPath: "url(#clip1)", children: /* @__PURE__ */ g.jsx("path", { d: "M14.9188 29.8373C6.67944 29.8373 0.00012207 23.1581 0.00012207 14.9187C0.00012207 6.67931 6.67944 0 14.9188 0C23.1581 0 29.8373 6.67931 29.8373 14.9187C29.8373 23.1581 23.1581 29.8373 14.9188 29.8373Z", fill: "url(#paint0)" }) }) }), /* @__PURE__ */ g.jsxs("defs", { children: [/* @__PURE__ */ g.jsxs("radialGradient", { id: "paint0", cx: "0", cy: "0", r: "1", gradientUnits: "userSpaceOnUse", gradientTransform: "translate(21.6921 8.02215) rotate(180) scale(25.2008)", children: [/* @__PURE__ */ g.jsx("stop", { offset: "0.00682297", stopColor: "#F2CEFE" }), /* @__PURE__ */ g.jsx("stop", { offset: "0.1913", stopColor: "#AFBAF1" }), /* @__PURE__ */ g.jsx("stop", { offset: "0.4982", stopColor: "#4281D3" }), /* @__PURE__ */ g.jsx("stop", { offset: "0.666667", stopColor: "#2E427D" }), /* @__PURE__ */ g.jsx("stop", { offset: "0.822917", stopColor: "#230101" }), /* @__PURE__ */ g.jsx("stop", { offset: "1", stopColor: "#8F6B40" })] }), /* @__PURE__ */ g.jsx("clipPath", { id: "clip0", children: /* @__PURE__ */ g.jsx("rect", { width: "30", height: "30", fill: "white" }) }), /* @__PURE__ */ g.jsx("clipPath", { id: "clip1", children: /* @__PURE__ */ g.jsx("rect", { width: "30", height: "30", fill: "white" }) })] })] }) };
66010
66010
  const ane = ({ chainId: t, ...e }) => {
66011
66011
  if (t === "solana") return g.jsx(AGe, { ...e });
66012
66012
  let n = TGe[t];
66013
66013
  return g.jsx(n || SY, { ...e });
66014
- }, $Ge = ({ balance: t, className: e, chain: n }) => /* @__PURE__ */ g.jsx(w4, { className: e, $state: void 0, children: /* @__PURE__ */ g.jsx(_k, { balance: t, chain: n }) }), _k = ({ balance: t, chain: e }) => /* @__PURE__ */ g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsxs(IGe, { children: [/* @__PURE__ */ g.jsx(NGe, { chainId: typeof e == "object" ? e.id : "solana" }), /* @__PURE__ */ g.jsx(jr, { children: typeof e == "object" ? e.name : _4(e) })] }), /* @__PURE__ */ g.jsxs(Hl, { isLoading: !1, isPulsing: !1, color: "gray", children: [/* @__PURE__ */ g.jsx(OGe, { children: /* @__PURE__ */ g.jsx(v6, {}) }), t] })] });
66014
+ }, $Ge = ({ balance: t, className: e, chain: n }) => /* @__PURE__ */ g.jsx(w4, { className: e, $state: void 0, children: /* @__PURE__ */ g.jsx(_k, { balance: t, chain: n }) }), _k = ({ balance: t, chain: e }) => /* @__PURE__ */ g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsxs(IGe, { children: [/* @__PURE__ */ g.jsx(NGe, { chainId: typeof e == "object" ? e.id : "solana" }), /* @__PURE__ */ g.jsx(jr, { children: typeof e == "object" ? e.name : _4(e) })] }), /* @__PURE__ */ g.jsxs(Vl, { isLoading: !1, isPulsing: !1, color: "gray", children: [/* @__PURE__ */ g.jsx(OGe, { children: /* @__PURE__ */ g.jsx(v6, {}) }), t] })] });
66015
66015
  let IGe = /* @__PURE__ */ X.div.withConfig({ displayName: "Container", componentId: "sc-63f80cee-0" })(["display:flex;align-items:center;"]), OGe = /* @__PURE__ */ X.div.withConfig({ displayName: "IconContainer", componentId: "sc-63f80cee-1" })(["height:0.75rem;width:0.75rem;margin-right:0.2rem;"]), NGe = /* @__PURE__ */ X(ane).withConfig({ displayName: "StyledNetworkIcon", componentId: "sc-63f80cee-2" })(["height:1.25rem;width:1.25rem;display:inline-block;margin-right:0.5rem;border-radius:4px;"]);
66016
66016
  const RGe = ({ options: t, onSelect: e, selected: n, className: r }) => /* @__PURE__ */ g.jsxs(xze, { as: PGe, children: [/* @__PURE__ */ g.jsxs(cee, { as: DGe, children: [/* @__PURE__ */ g.jsx(_k, { balance: n.balance, chain: n.chain }), /* @__PURE__ */ g.jsx(Ek, { height: 16 })] }), /* @__PURE__ */ g.jsx(uee, { as: jGe, className: r, children: t.map(((i, a) => /* @__PURE__ */ g.jsx(dee, { as: MGe, onClick: () => e(a), children: /* @__PURE__ */ g.jsx(_k, { balance: i.balance, chain: i.chain }) }, a))) })] });
66017
66017
  let PGe = /* @__PURE__ */ X.div.withConfig({ displayName: "Wrapper", componentId: "sc-31c00f79-0" })(["width:100%;position:relative;"]), jGe = /* @__PURE__ */ X.div.withConfig({ displayName: "Popover", componentId: "sc-31c00f79-1" })(["width:100%;margin-top:0.5rem;position:absolute;background-color:var(--privy-color-background);border-radius:var(--privy-border-radius-md);overflow-x:hidden;overflow-y:auto;box-shadow:0px 1px 2px 0px rgba(16,24,40,0.05);max-height:11.75rem;&&{border:solid 1px var(--privy-color-foreground-4);}z-index:1;"]), MGe = /* @__PURE__ */ X.button.withConfig({ displayName: "Button", componentId: "sc-31c00f79-2" })(["width:100%;display:flex;justify-content:space-between;&&{padding:1rem;}:not(:last-child){border-bottom:solid 1px var(--privy-color-foreground-4);}:hover{background:var(--privy-color-background-2);}"]), Ek = /* @__PURE__ */ X(AT).withConfig({ displayName: "StyledChevronIcon", componentId: "sc-31c00f79-3" })(["height:1rem;margin-left:0.5rem;"]), DGe = /* @__PURE__ */ X.button.withConfig({ displayName: "StyledMenuButton", componentId: "sc-31c00f79-4" })(["", " span{margin-left:auto;}", "{transition:rotate 100ms ease-in;}&[aria-expanded='true']{", "{rotate:-180deg;}}"], Hte, Ek, Ek);
@@ -66024,7 +66024,7 @@ const LGe = /* @__PURE__ */ X.div.withConfig({ displayName: "FundingMethodContai
66024
66024
  if (Number.isNaN(I)) return void w("0");
66025
66025
  w(I.toString() + T);
66026
66026
  }
66027
- } }), /* @__PURE__ */ g.jsx(cne, { children: a })] }), s && /* @__PURE__ */ g.jsx(une, { children: s })] }), /* @__PURE__ */ g.jsxs(Jn, { style: { marginTop: "1.5rem" }, children: [/* @__PURE__ */ g.jsx(Pn, { children: "From" }), /* @__PURE__ */ g.jsx(Pn, { children: RM(p) })] }), /* @__PURE__ */ g.jsx(RGe, { selected: { chain: c.chain, balance: c.isErc20Quote ? y5({ amount: c.erc20Balance ?? 0n, decimals: x?.decimals ?? 6 }) + ` ${x?.symbol || ""}` : Uo(c.balance, c.chain.nativeCurrency.symbol, 3, !0) }, options: o.map((({ chain: k, balance: C, isErc20Quote: T, erc20Balance: I }) => ({ chain: k, balance: T ? y5({ amount: I ?? 0n, decimals: x?.decimals ?? 6 }) + ` ${x?.symbol || ""}` : Uo(C, k.nativeCurrency.symbol, 3, !0) }))), onSelect: b }), /* @__PURE__ */ g.jsxs(Jn, { style: { marginTop: "1.5rem" }, children: [/* @__PURE__ */ g.jsx(Pn, { children: "To" }), /* @__PURE__ */ g.jsx(Pn, { children: RM(m) })] }), /* @__PURE__ */ g.jsx($Ge, { chain: n, balance: r }), /* @__PURE__ */ g.jsx(Ch, { style: { marginTop: "1rem" }, children: e }), /* @__PURE__ */ g.jsxs(f5, { style: { marginTop: "1rem" }, loading: f || d, disabled: d || f, onClick: y, children: ["Confirm with ", t] }), /* @__PURE__ */ g.jsx(tl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
66027
+ } }), /* @__PURE__ */ g.jsx(cne, { children: a })] }), s && /* @__PURE__ */ g.jsx(une, { children: s })] }), /* @__PURE__ */ g.jsxs(Jn, { style: { marginTop: "1.5rem" }, children: [/* @__PURE__ */ g.jsx(Pn, { children: "From" }), /* @__PURE__ */ g.jsx(Pn, { children: RM(p) })] }), /* @__PURE__ */ g.jsx(RGe, { selected: { chain: c.chain, balance: c.isErc20Quote ? y5({ amount: c.erc20Balance ?? 0n, decimals: x?.decimals ?? 6 }) + ` ${x?.symbol || ""}` : Uo(c.balance, c.chain.nativeCurrency.symbol, 3, !0) }, options: o.map((({ chain: k, balance: C, isErc20Quote: T, erc20Balance: I }) => ({ chain: k, balance: T ? y5({ amount: I ?? 0n, decimals: x?.decimals ?? 6 }) + ` ${x?.symbol || ""}` : Uo(C, k.nativeCurrency.symbol, 3, !0) }))), onSelect: b }), /* @__PURE__ */ g.jsxs(Jn, { style: { marginTop: "1.5rem" }, children: [/* @__PURE__ */ g.jsx(Pn, { children: "To" }), /* @__PURE__ */ g.jsx(Pn, { children: RM(m) })] }), /* @__PURE__ */ g.jsx($Ge, { chain: n, balance: r }), /* @__PURE__ */ g.jsx(Ch, { style: { marginTop: "1rem" }, children: e }), /* @__PURE__ */ g.jsxs(f5, { style: { marginTop: "1rem" }, loading: f || d, disabled: d || f, onClick: y, children: ["Confirm with ", t] }), /* @__PURE__ */ g.jsx(nl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
66028
66028
  }, iI = ({ walletClientType: t, displayName: e, addressToFund: n, chainId: r, chainName: i, isBridging: a, isErc20Flow: s, totalPriceInNativeCurrency: o, totalPriceInUsd: c, gasPriceInNativeCurrency: d, gasPriceInUsd: f }) => {
66029
66029
  let m = Hd(t);
66030
66030
  return g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(lo, {}), /* @__PURE__ */ g.jsx(Im, { centerIcon: /* @__PURE__ */ g.jsx(tne, { icon: m?.image_url?.md, name: t }) }), /* @__PURE__ */ g.jsx(Zo, { style: { marginTop: "8px", marginBottom: "12px" }, title: `${a ? "Bridging" : "Confirming"} with ${e}` }), !a && !s && /* @__PURE__ */ g.jsxs(rI, { children: [/* @__PURE__ */ g.jsxs(Jn, { children: [/* @__PURE__ */ g.jsx(Pn, { children: "Total" }), /* @__PURE__ */ g.jsx(jr, { children: c || o })] }), /* @__PURE__ */ g.jsxs(Jn, { children: [/* @__PURE__ */ g.jsx(Pn, { children: "To" }), /* @__PURE__ */ g.jsx(jr, { children: /* @__PURE__ */ g.jsx(Ba, { address: n, showCopyIcon: !1 }) })] }), /* @__PURE__ */ g.jsxs(Jn, { children: [/* @__PURE__ */ g.jsx(Pn, { children: "Network" }), /* @__PURE__ */ g.jsx(jr, { children: /* @__PURE__ */ g.jsxs(zGe, { children: [/* @__PURE__ */ g.jsx(ane, { chainId: r, height: 16, width: 16 }), " ", i] }) })] }), d && /* @__PURE__ */ g.jsxs(Jn, { children: [/* @__PURE__ */ g.jsx(Pn, { children: "Estimated fee" }), /* @__PURE__ */ g.jsx(jr, { children: f || d })] })] }), /* @__PURE__ */ g.jsx(KWe, { height: 24 }), /* @__PURE__ */ g.jsx(kn, {})] });
@@ -66088,12 +66088,12 @@ const fne = { component: () => {
66088
66088
  } catch (wt) {
66089
66089
  console.error(wt), wt.name === "TransactionExecutionError" && (b.length < 1 ? m(new se(wt.shortMessage, void 0, ue.TRANSACTION_FAILURE)) : y(wt.shortMessage ?? "Something went wrong"));
66090
66090
  }
66091
- if (Be) return await G.waitForTransactionReceipt({ hash: Be }), T ? (H("pending"), void W(Be)) : (N(!1), L(!0), void i({ eventName: ql, payload: { provider: "external", status: "success", txHash: Be, address: P.address, chainId: le.chain.id, chainType: "ethereum", value: le.value ? Wa(BigInt(le.value), 18) : void 0, token: "ETH", destination: K, destinationClusterName: "mainnet-beta", destinationChainType: "solana", destinationValue: Wa(Te, 9), destinationToken: "SOL" } }));
66091
+ if (Be) return await G.waitForTransactionReceipt({ hash: Be }), T ? (H("pending"), void W(Be)) : (N(!1), L(!0), void i({ eventName: Hl, payload: { provider: "external", status: "success", txHash: Be, address: P.address, chainId: le.chain.id, chainType: "ethereum", value: le.value ? Wa(BigInt(le.value), 18) : void 0, token: "ETH", destination: K, destinationClusterName: "mainnet-beta", destinationChainType: "solana", destinationValue: Wa(Te, 9), destinationToken: "SOL" } }));
66092
66092
  N(!1);
66093
66093
  } else C(!1);
66094
66094
  })().catch(console.error);
66095
66095
  }), [G, le]), X$({ transactionHash: M, isTestnet: !1, bridgingStatus: z, setBridgingStatus: H, onSuccess({ transactionHash: Le }) {
66096
- I(!1), L(!0), i({ eventName: ql, payload: { provider: "external", status: "success", txHash: Le, address: P?.address, chainId: le?.chain.id, chainType: "ethereum", value: le?.value ? Wa(BigInt(le.value), 18) : void 0, token: "ETH", destination: K, destinationClusterName: "mainnet-beta", destinationChainType: "solana", destinationValue: Wa(Te, 9), destinationToken: "SOL" } });
66096
+ I(!1), L(!0), i({ eventName: Hl, payload: { provider: "external", status: "success", txHash: Le, address: P?.address, chainId: le?.chain.id, chainType: "ethereum", value: le?.value ? Wa(BigInt(le.value), 18) : void 0, token: "ETH", destination: K, destinationClusterName: "mainnet-beta", destinationChainType: "solana", destinationValue: Wa(Te, 9), destinationToken: "SOL" } });
66097
66097
  }, onFailure({ error: Le }) {
66098
66098
  I(!1), m(Le);
66099
66099
  } }), _.useEffect((() => {
@@ -66102,7 +66102,7 @@ const fne = { component: () => {
66102
66102
  if (!U) return;
66103
66103
  let Le = setTimeout(r, gT);
66104
66104
  return () => clearTimeout(Le);
66105
- }), [U]), U) return g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(lo, {}), /* @__PURE__ */ g.jsx(Jl, {}), /* @__PURE__ */ g.jsxs(o4, { children: [/* @__PURE__ */ g.jsx(w6, { color: "var(--privy-color-success)", width: "64px", height: "64px" }), /* @__PURE__ */ g.jsx(Zo, { title: "Success!", description: `You’ve successfully added ${B} SOL to your ${c.name} wallet. It may take a minute before the funds are available to use.` })] }), /* @__PURE__ */ g.jsx(tl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
66105
+ }), [U]), U) return g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(lo, {}), /* @__PURE__ */ g.jsx(Jl, {}), /* @__PURE__ */ g.jsxs(o4, { children: [/* @__PURE__ */ g.jsx(w6, { color: "var(--privy-color-success)", width: "64px", height: "64px" }), /* @__PURE__ */ g.jsx(Zo, { title: "Success!", description: `You’ve successfully added ${B} SOL to your ${c.name} wallet. It may take a minute before the funds are available to use.` })] }), /* @__PURE__ */ g.jsx(nl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
66106
66106
  let qe = b[x];
66107
66107
  return b.length > 1 && qe ? /* @__PURE__ */ g.jsx(dne, { displayName: j, configuredFundingChain: R, formattedBalance: oe, fundingAmount: B, fundingCurrency: "SOL", fundingAmountInUsd: ze, options: b, selectedOption: qe, isPreparing: k, isSubmitting: A, addressToFund: K, fundingWalletAddress: P?.address || "", errorMessage: p, onSubmit: () => {
66108
66108
  o.funding?.amount !== B ? (async function() {
@@ -66171,7 +66171,7 @@ const fne = { component: () => {
66171
66171
  (Ze.shortMessage.includes("rejected the request") || Ze.details.includes("rejected the request")) && (Tt = "User rejected the request."), x(new se(Tt, void 0, ue.TRANSACTION_FAILURE));
66172
66172
  } else k(Ze.shortMessage ?? "Something went wrong");
66173
66173
  }
66174
- if (ln) return await ze.waitForTransactionReceipt({ hash: ln }), z(!1), L ? (O(ln), void D("pending")) : (K(!0), void r({ eventName: ql, payload: { provider: "external", status: "success", txHash: ln, address: ye.address, chainId: we.chain.id, chainType: "ethereum", value: we.value ? Wa(BigInt(we.value), P?.decimals ?? 18) : void 0, token: P?.symbol ?? ee ?? "ETH", destinationAddress: G, destinationChainId: q.id, destinationChainType: "ethereum", destinationValue: le ? Wa(le, P?.decimals ?? 18) : void 0, destinationToken: P?.symbol ?? ee ?? q.nativeCurrency.name } }));
66174
+ if (ln) return await ze.waitForTransactionReceipt({ hash: ln }), z(!1), L ? (O(ln), void D("pending")) : (K(!0), void r({ eventName: Hl, payload: { provider: "external", status: "success", txHash: ln, address: ye.address, chainId: we.chain.id, chainType: "ethereum", value: we.value ? Wa(BigInt(we.value), P?.decimals ?? 18) : void 0, token: P?.symbol ?? ee ?? "ETH", destinationAddress: G, destinationChainId: q.id, destinationChainType: "ethereum", destinationValue: le ? Wa(le, P?.decimals ?? 18) : void 0, destinationToken: P?.symbol ?? ee ?? q.nativeCurrency.name } }));
66175
66175
  z(!1);
66176
66176
  })().catch(console.error);
66177
66177
  }), [ze, we]), _.useEffect((() => {
@@ -66193,7 +66193,7 @@ const fne = { component: () => {
66193
66193
  gn ? (M(!0), Ie({ data: gn.bridgeTx.data, to: gn.bridgeTx.to, value: gn.bridgeTx.value, chain: gn.chain })) : x(new se(`Wallet ${pa(ye.address)} does not have enough funds.`, void 0, ue.INSUFFICIENT_BALANCE));
66194
66194
  })().catch(console.error);
66195
66195
  }), [y]), X$({ transactionHash: R, isTestnet: !!q.testnet, bridgingStatus: B, setBridgingStatus: D, onSuccess({ transactionHash: st }) {
66196
- M(!1), K(!0), r({ eventName: ql, payload: { provider: "external", status: "success", txHash: st, address: ye?.address, chainId: we.chain.id, chainType: "ethereum", value: we.value ? Wa(BigInt(we.value), P?.decimals ?? 18) : void 0, token: P?.symbol ?? ee ?? "ETH", destinationAddress: G, destinationChainId: q.id, destinationChainType: "ethereum", destinationValue: le ? Wa(le, P?.decimals ?? 18) : void 0, destinationToken: P?.symbol ?? ee ?? q.nativeCurrency.name } });
66196
+ M(!1), K(!0), r({ eventName: Hl, payload: { provider: "external", status: "success", txHash: st, address: ye?.address, chainId: we.chain.id, chainType: "ethereum", value: we.value ? Wa(BigInt(we.value), P?.decimals ?? 18) : void 0, token: P?.symbol ?? ee ?? "ETH", destinationAddress: G, destinationChainId: q.id, destinationChainType: "ethereum", destinationValue: le ? Wa(le, P?.decimals ?? 18) : void 0, destinationToken: P?.symbol ?? ee ?? q.nativeCurrency.name } });
66197
66197
  }, onFailure({ error: st }) {
66198
66198
  M(!1), x(st);
66199
66199
  } }), _.useEffect((() => {
@@ -66204,7 +66204,7 @@ const fne = { component: () => {
66204
66204
  if (!H) return;
66205
66205
  let st = setTimeout(n, gT);
66206
66206
  return () => clearTimeout(st);
66207
- }), [H]), H) return g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(lo, {}), /* @__PURE__ */ g.jsx(Jl, {}), /* @__PURE__ */ g.jsxs(o4, { children: [/* @__PURE__ */ g.jsx(w6, { color: "var(--privy-color-success)", width: "64px", height: "64px" }), /* @__PURE__ */ g.jsx(Zo, { title: "Success!", description: `You’ve successfully added ${J} ${oe ? P.symbol : q.nativeCurrency.symbol} to your ${o.name} wallet. It may take a minute before the funds are available to use.` })] }), /* @__PURE__ */ g.jsx(tl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
66207
+ }), [H]), H) return g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(lo, {}), /* @__PURE__ */ g.jsx(Jl, {}), /* @__PURE__ */ g.jsxs(o4, { children: [/* @__PURE__ */ g.jsx(w6, { color: "var(--privy-color-success)", width: "64px", height: "64px" }), /* @__PURE__ */ g.jsx(Zo, { title: "Success!", description: `You’ve successfully added ${J} ${oe ? P.symbol : q.nativeCurrency.symbol} to your ${o.name} wallet. It may take a minute before the funds are available to use.` })] }), /* @__PURE__ */ g.jsx(nl, {}), /* @__PURE__ */ g.jsx(kn, {})] });
66208
66208
  let Wt = oe ? `${y5({ amount: ge, decimals: P.decimals })} ${P.symbol}` : Uo(Le, q.nativeCurrency.symbol, 3, !0), jt = C[I];
66209
66209
  return C.length > 1 && jt ? /* @__PURE__ */ g.jsx(dne, { displayName: Te, configuredFundingChain: q, erc20ContractInfo: P, formattedBalance: Wt, fundingAmount: J, fundingCurrency: oe ? P.symbol : q.nativeCurrency.symbol, fundingAmountInUsd: Nt, options: C, selectedOption: jt, isPreparing: N, isSubmitting: W, addressToFund: G, fundingWalletAddress: ye?.address || "", errorMessage: S, onSubmit: () => {
66210
66210
  s.funding?.amount !== J ? (async function() {
@@ -66255,7 +66255,7 @@ const fne = { component: () => {
66255
66255
  else w(new se(`Unable to select bridge option from quotes. Wallet ${AC(z.address)} does not have enough funds.`, void 0, ue.INSUFFICIENT_BALANCE));
66256
66256
  })().catch(console.error);
66257
66257
  }), []), X$({ transactionHash: x, isTestnet: !1, bridgingStatus: k, setBridgingStatus: C, onSuccess({ transactionHash: O }) {
66258
- m(!1), y(!0), n({ eventName: ql, payload: { provider: "external", status: "success", txHash: O, address: z.address, chainType: "solana", clusterName: N, token: "SOL", destinationAddress: L, destinationChainId: A.id, destinationChainType: "ethereum", destinationValue: T, destinationToken: U ? "USDC" : "ETH" } });
66258
+ m(!1), y(!0), n({ eventName: Hl, payload: { provider: "external", status: "success", txHash: O, address: z.address, chainType: "solana", clusterName: N, token: "SOL", destinationAddress: L, destinationChainId: A.id, destinationChainType: "ethereum", destinationValue: T, destinationToken: U ? "USDC" : "ETH" } });
66259
66259
  }, onFailure({ error: O }) {
66260
66260
  m(!1), w(O);
66261
66261
  } }), _.useEffect((() => {
@@ -66264,7 +66264,7 @@ const fne = { component: () => {
66264
66264
  return () => clearTimeout(O);
66265
66265
  }), [p]), _.useEffect((() => {
66266
66266
  b && (a({ funding: s?.funding, solanaFundingData: s?.solanaFundingData, sendTransaction: s?.sendTransaction, errorModalData: { error: b, previousScreen: Yb } }), i(fr, !1));
66267
- }), [b]), p ? /* @__PURE__ */ g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(lo, {}), /* @__PURE__ */ g.jsx(Jl, {}), /* @__PURE__ */ g.jsxs(o4, { children: [/* @__PURE__ */ g.jsx(w6, { color: "var(--privy-color-success)", width: "64px", height: "64px" }), /* @__PURE__ */ g.jsx(Zo, { title: "Success!", description: `You’ve successfully added ${T} ${W} to your ${o.name} wallet. It may take a minute before the funds are available to use.` })] }), /* @__PURE__ */ g.jsx(tl, {}), /* @__PURE__ */ g.jsx(kn, {})] }) : f && z ? /* @__PURE__ */ g.jsx(iI, { walletClientType: ok(z?.standardWallet.name || "unknown"), displayName: R, addressToFund: L, isBridging: f, isErc20Flow: !1, chainId: A.id, chainName: A.name, totalPriceInUsd: void 0, totalPriceInNativeCurrency: void 0, gasPriceInUsd: void 0, gasPriceInNativeCurrency: void 0 }) : /* @__PURE__ */ g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(lo, {}), /* @__PURE__ */ g.jsx(Im, {}), /* @__PURE__ */ g.jsx("div", { style: { marginTop: "1rem" } }), /* @__PURE__ */ g.jsx(kn, {})] });
66267
+ }), [b]), p ? /* @__PURE__ */ g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(lo, {}), /* @__PURE__ */ g.jsx(Jl, {}), /* @__PURE__ */ g.jsxs(o4, { children: [/* @__PURE__ */ g.jsx(w6, { color: "var(--privy-color-success)", width: "64px", height: "64px" }), /* @__PURE__ */ g.jsx(Zo, { title: "Success!", description: `You’ve successfully added ${T} ${W} to your ${o.name} wallet. It may take a minute before the funds are available to use.` })] }), /* @__PURE__ */ g.jsx(nl, {}), /* @__PURE__ */ g.jsx(kn, {})] }) : f && z ? /* @__PURE__ */ g.jsx(iI, { walletClientType: ok(z?.standardWallet.name || "unknown"), displayName: R, addressToFund: L, isBridging: f, isErc20Flow: !1, chainId: A.id, chainName: A.name, totalPriceInUsd: void 0, totalPriceInNativeCurrency: void 0, gasPriceInUsd: void 0, gasPriceInNativeCurrency: void 0 }) : /* @__PURE__ */ g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(lo, {}), /* @__PURE__ */ g.jsx(Im, {}), /* @__PURE__ */ g.jsx("div", { style: { marginTop: "1rem" } }), /* @__PURE__ */ g.jsx(kn, {})] });
66268
66268
  } }, _z = { component: () => {
66269
66269
  let { data: t, setModalData: e } = rt(), n = t?.funding, r = n.chainType === "solana", i = _.useRef(null), { tokenPrice: a } = Hb(r ? "solana" : n.chain.id), s = r ? void 0 : n, o = !(!s?.erc20Address || s?.erc20ContractInfo), c = r ? n.isUSDC ? "USDC" : "SOL" : n.erc20Address ? n.erc20ContractInfo?.symbol : n.chain.nativeCurrency.symbol || "ETH", d = parseFloat(n.amount), f = !isNaN(d) && d > 0, m = a ? Qee(n.amount, a) : void 0;
66270
66270
  return g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(lo, {}), /* @__PURE__ */ g.jsx(Dd, { children: "Confirm or edit amount" }), /* @__PURE__ */ g.jsxs(l4, { style: { marginTop: "32px" }, children: [/* @__PURE__ */ g.jsx(sne, { children: o ? /* @__PURE__ */ g.jsx(Im, { size: "50px" }) : /* @__PURE__ */ g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsxs(one, { onClick: () => i.current?.focus(), children: [/* @__PURE__ */ g.jsx(UGe, { ref: i, value: n.amount, onChange: (p) => {
@@ -66290,7 +66290,7 @@ const fne = { component: () => {
66290
66290
  } } });
66291
66291
  }), []), /* @__PURE__ */ g.jsxs(g.Fragment, c === "overflow" ? { children: [/* @__PURE__ */ g.jsx(Kt, { backFn: () => d("default") }, "header"), /* @__PURE__ */ g.jsxs(ck, { children: [/* @__PURE__ */ g.jsx(Sh, { style: { color: "var(--privy-color-foreground-3)", textAlign: "left" }, children: "More wallets" }), x] }), /* @__PURE__ */ g.jsx(kn, {})] } : { children: [/* @__PURE__ */ g.jsx(lo, {}), /* @__PURE__ */ g.jsx(Zo, { title: "Transfer from wallet", description: "Connect a wallet to deposit funds or send funds manually to your wallet address." }), /* @__PURE__ */ g.jsxs(ck, { children: [x.length > 4 ? x.slice(0, 3) : x, x.length > 4 && C] }), /* @__PURE__ */ g.jsx(kn, {})] });
66292
66292
  } };
66293
- let Ez = ({ onClick: t, icon: e, name: n, chainType: r }) => /* @__PURE__ */ g.jsxs(yr, { onClick: t, children: [/* @__PURE__ */ g.jsx(Ey, { style: { width: 20 }, children: /* @__PURE__ */ g.jsx("img", { src: e }) }), n, /* @__PURE__ */ g.jsx(Hl, { color: "gray", style: { marginLeft: "auto" }, children: "Connected" }), r === "solana" && /* @__PURE__ */ g.jsx(Hl, { color: "gray", children: "Solana" })] });
66293
+ let Ez = ({ onClick: t, icon: e, name: n, chainType: r }) => /* @__PURE__ */ g.jsxs(yr, { onClick: t, children: [/* @__PURE__ */ g.jsx(Ey, { style: { width: 20 }, children: /* @__PURE__ */ g.jsx("img", { src: e }) }), n, /* @__PURE__ */ g.jsx(Vl, { color: "gray", style: { marginLeft: "auto" }, children: "Connected" }), r === "solana" && /* @__PURE__ */ g.jsx(Vl, { color: "gray", children: "Solana" })] });
66294
66294
  const WGe = { component: () => {
66295
66295
  let { data: t, setModalData: e, navigate: n, navigateBack: r } = rt(), { closePrivyModal: i, createAnalyticsEvent: a, client: s } = Ke(), [o, c] = _.useState("pending-in-flow"), d = _.useRef(0), f = { ...t?.funding, showAlternateFundingMethod: !0 };
66296
66296
  f.usingDefaultFundingMethod && (f.usingDefaultFundingMethod = !1);
@@ -66305,7 +66305,7 @@ const WGe = { component: () => {
66305
66305
  if (d.current >= 3) return e({ funding: f, solanaFundingData: t?.solanaFundingData }), void n(no);
66306
66306
  p?.closed && (d.current = d.current + 1, c("pending-after-flow"));
66307
66307
  } catch (b) {
66308
- console.error(b), c("error"), a({ eventName: ql, payload: { status: "failure", provider: "coinbase-onramp", error: b.message } }), e({ funding: { ...f, errorMessage: "Something went wrong adding funds. Please try again or use another method." }, solanaFundingData: t?.solanaFundingData }), n(no);
66308
+ console.error(b), c("error"), a({ eventName: Hl, payload: { status: "failure", provider: "coinbase-onramp", error: b.message } }), e({ funding: { ...f, errorMessage: "Something went wrong adding funds. Please try again or use another method." }, solanaFundingData: t?.solanaFundingData }), n(no);
66309
66309
  }
66310
66310
  }), 1500);
66311
66311
  return () => clearInterval(y);
@@ -66334,7 +66334,7 @@ let qGe = ({ status: t, onClickCta: e }) => {
66334
66334
  }
66335
66335
  let e = /* @__PURE__ */ ((r) => r ? H1 : () => /* @__PURE__ */ g.jsx(h$, { width: "3rem", height: "3rem", style: { backgroundColor: "var(--privy-color-foreground-4)", color: "var(--privy-color-background)", borderRadius: "100%", padding: "0.5rem", margin: "0.5rem" } }))(t), n = /* @__PURE__ */ ((r) => r ? "var(--privy-color-success)" : "var(--privy-color-foreground-4)")(t);
66336
66336
  return g.jsx("div", { style: { borderColor: n, display: "flex", justifyContent: "center", alignItems: "center", borderRadius: "100%", borderWidth: 2, padding: "0.5rem", marginBottom: "0.5rem" }, children: e && /* @__PURE__ */ g.jsx(e, { width: "4rem", height: "4rem", color: n }) });
66337
- }, VGe = /* @__PURE__ */ X.p.withConfig({ displayName: "StatusBody", componentId: "sc-8428a551-0" })(["font-size:1rem;color:var(--privy-color-foreground-3);margin-bottom:1rem;display:flex;flex-direction:column;gap:1rem;"]), GGe = /* @__PURE__ */ X.div.withConfig({ displayName: "ConnectContainer", componentId: "sc-8428a551-1" })(["display:flex;flex-direction:column;align-items:center;justify-content:center;margin-left:1.75rem;margin-right:1.75rem;padding:2rem 0;"]), KGe = { [ho.id]: "ethereum", [el.id]: "base", [gu.id]: "optimism", [po.id]: "polygon", [Xo.id]: "arbitrum", [Jo.id]: "avacchain" };
66337
+ }, VGe = /* @__PURE__ */ X.p.withConfig({ displayName: "StatusBody", componentId: "sc-8428a551-0" })(["font-size:1rem;color:var(--privy-color-foreground-3);margin-bottom:1rem;display:flex;flex-direction:column;gap:1rem;"]), GGe = /* @__PURE__ */ X.div.withConfig({ displayName: "ConnectContainer", componentId: "sc-8428a551-1" })(["display:flex;flex-direction:column;align-items:center;justify-content:center;margin-left:1.75rem;margin-right:1.75rem;padding:2rem 0;"]), KGe = { [ho.id]: "ethereum", [tl.id]: "base", [gu.id]: "optimism", [po.id]: "polygon", [Jo.id]: "arbitrum", [el.id]: "avacchain" };
66338
66338
  const Cz = (t, e, n, r, i, a) => new Promise((async (s, o) => {
66339
66339
  let c = l6();
66340
66340
  if (!c) return void o(Error("Unable to initialize flow"));
@@ -66360,10 +66360,10 @@ function ZGe(t, e = !1) {
66360
66360
  let [m] = await (async function(y, b) {
66361
66361
  return IK(`${b ? N5e : O5e}/transactions/ext/${y}`, { query: { apiKey: b ? P5e : R5e } });
66362
66362
  })(t, e), p = m.status === "waitingAuthorization" && m.paymentMethod === "credit_debit_card" ? "pending" : m.status;
66363
- if (["failed", "completed", "awaitingAuthorization"].includes(p) && (i({ eventName: ql, payload: { status: p, provider: Sz, paymentMethod: m.paymentMethod, cardPaymentType: m.cardPaymentType, currency: m.currency?.code, baseCurrencyAmount: m.baseCurrencyAmount, quoteCurrencyAmount: m.quoteCurrencyAmount, feeAmount: m.feeAmount, extraFeeAmount: m.extraFeeAmount, networkFeeAmount: m.networkFeeAmount, isSandbox: e } }), clearInterval(f)), p === "failed" || p === "serviceFailure") return o({ funding: { ...c, errorMessage: "Something went wrong adding funds from Moonpay. Please try again or use another method to fund your wallet." }, solanaFundingData: a?.solanaFundingData }), void s(no);
66363
+ if (["failed", "completed", "awaitingAuthorization"].includes(p) && (i({ eventName: Hl, payload: { status: p, provider: Sz, paymentMethod: m.paymentMethod, cardPaymentType: m.cardPaymentType, currency: m.currency?.code, baseCurrencyAmount: m.baseCurrencyAmount, quoteCurrencyAmount: m.quoteCurrencyAmount, feeAmount: m.feeAmount, extraFeeAmount: m.extraFeeAmount, networkFeeAmount: m.networkFeeAmount, isSandbox: e } }), clearInterval(f)), p === "failed" || p === "serviceFailure") return o({ funding: { ...c, errorMessage: "Something went wrong adding funds from Moonpay. Please try again or use another method to fund your wallet." }, solanaFundingData: a?.solanaFundingData }), void s(no);
66364
66364
  r(p);
66365
66365
  } catch (m) {
66366
- m.response?.status !== 404 && (d.current += 1), d.current >= 3 && (i({ eventName: ql, payload: { status: "serviceFailure", provider: Sz } }), clearInterval(f), o({ funding: { ...c, errorMessage: "Something went wrong adding funds from Moonpay. Please try again or use another method to fund your wallet." }, solanaFundingData: a?.solanaFundingData }), s(no));
66366
+ m.response?.status !== 404 && (d.current += 1), d.current >= 3 && (i({ eventName: Hl, payload: { status: "serviceFailure", provider: Sz } }), clearInterval(f), o({ funding: { ...c, errorMessage: "Something went wrong adding funds from Moonpay. Please try again or use another method to fund your wallet." }, solanaFundingData: a?.solanaFundingData }), s(no));
66367
66367
  }
66368
66368
  }), 3e3);
66369
66369
  return () => clearInterval(f);
@@ -66539,7 +66539,7 @@ const vne = () => {
66539
66539
  }
66540
66540
  }, disabled: !1, children: [/* @__PURE__ */ g.jsx(Qf, { width: 32, height: 32 }), " Farcaster", t && /* @__PURE__ */ g.jsx(Gd, {}), d === "farcaster" && /* @__PURE__ */ g.jsx(wKe, { color: "gray", children: "Recent" })] });
66541
66541
  };
66542
- let wKe = /* @__PURE__ */ X(Hl).withConfig({ displayName: "StyledChip", componentId: "sc-c6317ff9-0" })(["margin-left:auto;"]);
66542
+ let wKe = /* @__PURE__ */ X(Vl).withConfig({ displayName: "StyledChip", componentId: "sc-c6317ff9-0" })(["margin-left:auto;"]);
66543
66543
  const xKe = ({ status: t, passkeySignupFlow: e = !1, error: n, onRetry: r }) => /* @__PURE__ */ g.jsx(sn, { title: (() => {
66544
66544
  switch (t) {
66545
66545
  case "loading":
@@ -66640,7 +66640,7 @@ const EKe = ({ title: t = "Log in or create a new account?", subtitle: e = "Crea
66640
66640
  C(I.target.value, c);
66641
66641
  }, onKeyUp: (I) => {
66642
66642
  I.key === "Enter" && T();
66643
- }, value: s, autoComplete: "tel" }), a !== "phone" || r || t.hideRecent ? t.stacked || t.noIncludeSubmitButton ? /* @__PURE__ */ g.jsx("span", {}) : /* @__PURE__ */ g.jsx(s4, { isSubmitting: w, onClick: T, disabled: b, children: "Submit" }) : /* @__PURE__ */ g.jsx(Hl, { color: "gray", children: "Recent" })] }) }), t.stacked && !t.noIncludeSubmitButton ? /* @__PURE__ */ g.jsx(Bn, { loading: w, loadingText: null, onClick: T, disabled: b, children: "Submit" }) : null] });
66643
+ }, value: s, autoComplete: "tel" }), a !== "phone" || r || t.hideRecent ? t.stacked || t.noIncludeSubmitButton ? /* @__PURE__ */ g.jsx("span", {}) : /* @__PURE__ */ g.jsx(s4, { isSubmitting: w, onClick: T, disabled: b, children: "Submit" }) : /* @__PURE__ */ g.jsx(Vl, { color: "gray", children: "Recent" })] }) }), t.stacked && !t.noIncludeSubmitButton ? /* @__PURE__ */ g.jsx(Bn, { loading: w, loadingText: null, onClick: T, disabled: b, children: "Submit" }) : null] });
66644
66644
  }));
66645
66645
  let kKe = /* @__PURE__ */ X.div.withConfig({ displayName: "InputContainer", componentId: "sc-545daacd-0" })(["width:100%;"]), AKe = /* @__PURE__ */ X.label.withConfig({ displayName: "PhoneNumberInput", componentId: "sc-545daacd-1" })(["--country-code-dropdown-width:calc(54px + calc(12 * ", "px));--phone-input-extra-padding-left:calc(12px + calc(3 * ", "px));display:block;position:relative;width:100%;@media (min-width:441px){--country-code-dropdown-width:calc(52px + calc(10 * ", "px));}&& > select{font-size:16px;height:24px;position:absolute;margin:13px calc(var(--country-code-dropdown-width) / 4);line-height:24px;width:var(--country-code-dropdown-width);background-color:var(--privy-color-background);background-size:auto;background-position-x:right;cursor:pointer;@media (min-width:441px){font-size:14px;width:var(--country-code-dropdown-width);}:focus{outline:none;box-shadow:none;}}&& > input{font-size:16px;line-height:24px;color:var(--privy-color-foreground);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:calc(100% - var(--country-code-dropdown-width));padding:12px 88px 12px calc(var(--country-code-dropdown-width) + var(--phone-input-extra-padding-left));padding-right:", ";flex-grow:1;background:var(--privy-color-background);border:1px solid var(--privy-color-foreground-4);border-radius:var(--privy-border-radius-md);width:100%;:focus{outline:none;border-color:var(--privy-color-accent);}:autofill,:-webkit-autofill{background:var(--privy-color-background);}@media (min-width:441px){font-size:14px;padding-right:78px;}}&& > :last-child{right:16px;position:absolute;top:50%;transform:translate(0,-50%);}&& > button:last-child{right:0px;line-height:24px;padding:13px 17px;:focus{outline:none;border-color:var(--privy-color-accent);}}&& > input::placeholder{color:var(--privy-color-foreground-3);}"], ((t) => t.$callingCodeLength), ((t) => t.$callingCodeLength), ((t) => t.$callingCodeLength), ((t) => t.$stacked ? "16px" : "88px"));
66646
66646
  const xne = ({ isEditable: t, setIsEditable: e, defaultValue: n }) => {
@@ -66673,7 +66673,7 @@ const _r = ({ provider: t }) => {
66673
66673
  }), 2e3), e && !n ? (i({ captchaModalData: { callback: (b) => d(t, b, a?.login?.disableSignup), userIntentRequired: !0, onSuccessNavigateTo: null, onErrorNavigateTo: fr } }), r(Qo)) : d(t, void 0, a?.login?.disableSignup);
66674
66674
  }, disabled: s, children: [/* @__PURE__ */ g.jsx(Lo, { $fullSize: !0, children: /* @__PURE__ */ g.jsx(y, { style: { width: "32px", height: "32px" } }) }), p, m?.loginMethod === t && /* @__PURE__ */ g.jsx($Ke, { color: "gray", children: "Recent" })] });
66675
66675
  };
66676
- let $Ke = /* @__PURE__ */ X(Hl).withConfig({ displayName: "StyledChip", componentId: "sc-45a4e2df-0" })(["margin-left:auto;"]);
66676
+ let $Ke = /* @__PURE__ */ X(Vl).withConfig({ displayName: "StyledChip", componentId: "sc-45a4e2df-0" })(["margin-left:auto;"]);
66677
66677
  function _ne(t) {
66678
66678
  return g.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", ...t, children: [/* @__PURE__ */ g.jsx("rect", { width: "512", height: "512", rx: "15%", fill: "#37aee2" }), /* @__PURE__ */ g.jsx("path", { fill: "#c8daea", d: "M199 404c-11 0-10-4-13-14l-32-105 245-144" }), /* @__PURE__ */ g.jsx("path", { fill: "#a9c9dd", d: "M199 404c7 0 11-4 16-8l45-43-56-34" }), /* @__PURE__ */ g.jsx("path", { fill: "#f6fbfe", d: "M204 319l135 99c14 9 26 4 30-14l55-258c5-22-9-32-24-25L79 245c-21 8-21 21-4 26l83 26 190-121c9-5 17-3 11 4" })] });
66679
66679
  }
@@ -66745,7 +66745,7 @@ const IKe = ({ success: t, errorMessage: e, onRetry: n }) => {
66745
66745
  await d(e);
66746
66746
  }, disabled: a, children: [/* @__PURE__ */ g.jsx(_ne, { width: 32, height: 32 }), "Telegram", c === "telegram" && /* @__PURE__ */ g.jsx(OKe, { color: "gray", children: "Recent" })] });
66747
66747
  };
66748
- let OKe = /* @__PURE__ */ X(Hl).withConfig({ displayName: "StyledChip", componentId: "sc-4b233cf1-0" })(["margin-left:auto;"]);
66748
+ let OKe = /* @__PURE__ */ X(Vl).withConfig({ displayName: "StyledChip", componentId: "sc-4b233cf1-0" })(["margin-left:auto;"]);
66749
66749
  const Cne = ({ onClick: t, text: e, icon: n }) => /* @__PURE__ */ g.jsxs(yr, { onClick: t, children: [/* @__PURE__ */ g.jsx(Lo, { children: n }), /* @__PURE__ */ g.jsx(um, { children: e })] }), Sne = ({ connectOnly: t }) => {
66750
66750
  let { closePrivyModal: e } = Ke(), { data: n, setModalData: r, onUserCloseViaDialogOrKeybindRef: i, navigate: a } = rt(), s = Xe(), o = n?.login, c = s.appearance.walletList, d = o?.walletChainType ?? s.appearance.walletChainType, { accountType: f, walletClientType: m, chainType: p } = Kd(), y = _.useMemo((() => f && f !== "guest" && f !== "authorization_key" && f !== "cross_app" ? y4(f) : null), [f]), { email: b, sms: w, google: x, twitter: S, discord: k, github: C, spotify: T, instagram: I, tiktok: A, line: N, twitch: U, linkedin: L, apple: M, wallet: W, farcaster: z, telegram: H } = _.useMemo((() => o?.loginMethods ? Mwe(o.loginMethods, !0) : null), [o]) ?? s.loginMethods, { wallets: K } = Ute({ enabled: r4(W ? c : []), walletList: c, walletChainType: d }), R = s.customOAuthProviders, { passkey: O } = s.loginMethods, B = [b && "email", w && "sms", x && "google", S && "twitter", k && "discord", C && "github", T && "spotify", I && "instagram", A && "tiktok", N && "line", U && "twitch", L && "linkedin", M && "apple", z && "farcaster", H && "telegram", ...R.map(((Ve) => Ve.provider))].filter(((Ve) => !!Ve)), D = B.length > 0, P = _.useMemo((() => W && !D ? "web3-first" : W && s?.appearance.loginGroupPriority || "web2-first"), [W, D, s?.appearance.loginGroupPriority]), q = s?.appearance.hideDirectWeb2Inputs, [j, G] = _.useState("default"), [ee, J] = _.useState(b5({ mostRecentlyUsedAccountType: f, smsAvailable: w, emailAvailable: b, prefilledType: o?.prefill?.type }));
66751
66751
  _.useEffect((() => {
@@ -66904,7 +66904,7 @@ const Ane = /* @__PURE__ */ _.forwardRef(((t, e) => {
66904
66904
  };
66905
66905
  return g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsxs(HKe, { children: [i && /* @__PURE__ */ g.jsx(Ch, { style: { display: "block", marginTop: "0.25rem", textAlign: "left" }, children: i }), /* @__PURE__ */ g.jsxs(VKe, { stacked: t.stacked, $error: !!i, children: [/* @__PURE__ */ g.jsx(GKe, { children: /* @__PURE__ */ g.jsx(u6, {}) }), /* @__PURE__ */ g.jsx("input", { ref: e, id: "email-input", className: "login-method-button", type: "email", placeholder: "your@email.com", onFocus: () => S(!0), onChange: (N) => r(N.target.value), onKeyUp: (N) => {
66906
66906
  N.key === "Enter" && A();
66907
- }, value: n, autoComplete: "email" }), k !== "email" || x ? t.stacked ? /* @__PURE__ */ g.jsx("span", {}) : /* @__PURE__ */ g.jsx(s4, { isSubmitting: s, onClick: A, disabled: I, children: "Submit" }) : /* @__PURE__ */ g.jsx(Hl, { color: "gray", children: "Recent" })] })] }), t.stacked ? /* @__PURE__ */ g.jsx(Bn, { loadingText: null, loading: s, disabled: I, onClick: A, style: { width: "100%" }, children: "Submit" }) : null] });
66907
+ }, value: n, autoComplete: "email" }), k !== "email" || x ? t.stacked ? /* @__PURE__ */ g.jsx("span", {}) : /* @__PURE__ */ g.jsx(s4, { isSubmitting: s, onClick: A, disabled: I, children: "Submit" }) : /* @__PURE__ */ g.jsx(Vl, { color: "gray", children: "Recent" })] })] }), t.stacked ? /* @__PURE__ */ g.jsx(Bn, { loadingText: null, loading: s, disabled: I, onClick: A, style: { width: "100%" }, children: "Submit" }) : null] });
66908
66908
  }));
66909
66909
  let HKe = Dte, VKe = RHe, GKe = /* @__PURE__ */ X(Lo).withConfig({ displayName: "StyledLoginMethodIconWrapper", componentId: "sc-e33d938a-0" })(["display:inline-flex;"]);
66910
66910
  const Tne = ({ isEditable: t, setIsEditable: e, defaultValue: n }) => {
@@ -66949,7 +66949,7 @@ const da = { component: () => {
66949
66949
  let t = Xe();
66950
66950
  return t.loginMethodsAndOrder && t.loginMethodsAndOrder.primary.length > 0 ? /* @__PURE__ */ g.jsx($ne, { connectOnly: !1 }) : /* @__PURE__ */ g.jsx(Sne, { connectOnly: !1 });
66951
66951
  }, isCaptchaRequired: !0, isUnauthenticatedScreem: !0 }, Ine = { component: () => {
66952
- let [t, e] = _.useState(null), [n, r] = _.useState(!1), [i, a] = _.useState(null), [s, o] = _.useState(""), { authenticated: c, user: d } = Jt(), { client: f, walletProxy: m, refreshSessionAndUser: p, closePrivyModal: y, createAnalyticsEvent: b } = Ke(), { navigate: w, data: x, onUserCloseViaDialogOrKeybindRef: S } = rt(), k = Xe(), { onSuccess: C, onFailure: T } = x.setWalletPassword, I = Wl(d), A = t?.recoveryMethod === "user-passcode", N = I?.recoveryMethod === "user-passcode";
66952
+ let [t, e] = _.useState(null), [n, r] = _.useState(!1), [i, a] = _.useState(null), [s, o] = _.useState(""), { authenticated: c, user: d } = Jt(), { client: f, walletProxy: m, refreshSessionAndUser: p, closePrivyModal: y, createAnalyticsEvent: b } = Ke(), { navigate: w, data: x, onUserCloseViaDialogOrKeybindRef: S } = rt(), k = Xe(), { onSuccess: C, onFailure: T } = x.setWalletPassword, I = ql(d), A = t?.recoveryMethod === "user-passcode", N = I?.recoveryMethod === "user-passcode";
66953
66953
  _.useEffect((() => {
66954
66954
  c || (w(da), T(new B2e("User must be authenticated before setting a password on a Privy wallet")));
66955
66955
  }), [c]);
@@ -66959,9 +66959,9 @@ const da = { component: () => {
66959
66959
  let L = await f.getAccessToken();
66960
66960
  if (L && d && I?.address && s && m) try {
66961
66961
  b({ eventName: "embedded_wallet_set_recovery_started", payload: { walletAddress: I.address, existingRecoveryMethod: I.recoveryMethod, targetRecoveryMethod: "user-passcode", isResettingPassword: N } });
66962
- let { entropyId: M, entropyIdVerifier: W } = Al(d);
66962
+ let { entropyId: M, entropyIdVerifier: W } = Tl(d);
66963
66963
  if (!(await m.setRecovery({ accessToken: L, entropyId: M, entropyIdVerifier: W, recoveryPassword: s, recoveryMethod: "user-passcode" })).entropyId) return a(new Sd("Error setting password on privy wallet")), void b({ eventName: "embedded_wallet_set_recovery_failed", payload: { walletAddress: I.address, existingRecoveryMethod: I.recoveryMethod, targetRecoveryMethod: "user-passcode", isResettingPassword: N, reason: "error setting password" } });
66964
- let z = await p(), H = Wl(z);
66964
+ let z = await p(), H = ql(z);
66965
66965
  if (!H) return a(new Sd("Error setting password on privy wallet")), void b({ eventName: "embedded_wallet_set_recovery_failed", payload: { walletAddress: I.address, existingRecoveryMethod: I.recoveryMethod, targetRecoveryMethod: "user-passcode", isResettingPassword: N, reason: "wallet disconnected" } });
66966
66966
  e(H), b({ eventName: "embedded_wallet_set_recovery_completed", payload: { walletAddress: I.address, existingRecoveryMethod: I.recoveryMethod, targetRecoveryMethod: "user-passcode", isResettingPassword: N } });
66967
66967
  } catch (M) {
@@ -67131,7 +67131,7 @@ const fYe = ({ connectionFailed: t, onClose: e }) => /* @__PURE__ */ g.jsx(sn, t
67131
67131
  I("User exited before wallet could be connected"), r({ shouldCallAuthOnSuccess: !1 });
67132
67132
  }, /* @__PURE__ */ g.jsx(fYe, { connectionFailed: m, onClose: () => r({ shouldCallAuthOnSuccess: !1 }) });
67133
67133
  } };
67134
- class Vl {
67134
+ class Gl {
67135
67135
  constructor(e, n) {
67136
67136
  this.scope = e, this.module = n;
67137
67137
  }
@@ -67163,7 +67163,7 @@ class Vl {
67163
67163
  return `-${this.scope}${this.module ? `:${this.module}` : ""}:${e}`;
67164
67164
  }
67165
67165
  static clearAll() {
67166
- new Vl("CBWSDK").clear(), new Vl("walletlink").clear();
67166
+ new Gl("CBWSDK").clear(), new Gl("walletlink").clear();
67167
67167
  }
67168
67168
  }
67169
67169
  const Nr = {
@@ -67401,7 +67401,7 @@ function By(t, e = !1) {
67401
67401
  function UC(t) {
67402
67402
  return By(Tk(t), !0);
67403
67403
  }
67404
- function yl(t) {
67404
+ function bl(t) {
67405
67405
  return bYe(t.toString(10));
67406
67406
  }
67407
67407
  function Ed(t) {
@@ -67563,7 +67563,7 @@ const FC = {
67563
67563
  };
67564
67564
  let TYe = class {
67565
67565
  constructor() {
67566
- this.storage = new Vl("CBWSDK", "SCWKeyManager"), this.ownPrivateKey = null, this.ownPublicKey = null, this.peerPublicKey = null, this.sharedSecret = null;
67566
+ this.storage = new Gl("CBWSDK", "SCWKeyManager"), this.ownPrivateKey = null, this.ownPublicKey = null, this.peerPublicKey = null, this.sharedSecret = null;
67567
67567
  }
67568
67568
  async getOwnPublicKey() {
67569
67569
  return await this.loadKeysIfNeeded(), this.ownPublicKey;
@@ -67668,7 +67668,7 @@ const Nz = "accounts", Rz = "activeChain", Pz = "availableChains", jz = "walletC
67668
67668
  class RYe {
67669
67669
  constructor(e) {
67670
67670
  var n, r, i;
67671
- this.metadata = e.metadata, this.communicator = e.communicator, this.callback = e.callback, this.keyManager = new TYe(), this.storage = new Vl("CBWSDK", "SCWStateManager"), this.accounts = (n = this.storage.loadObject(Nz)) !== null && n !== void 0 ? n : [], this.chain = this.storage.loadObject(Rz) || {
67671
+ this.metadata = e.metadata, this.communicator = e.communicator, this.callback = e.callback, this.keyManager = new TYe(), this.storage = new Gl("CBWSDK", "SCWStateManager"), this.accounts = (n = this.storage.loadObject(Nz)) !== null && n !== void 0 ? n : [], this.chain = this.storage.loadObject(Rz) || {
67672
67672
  id: (i = (r = e.metadata.appChainIds) === null || r === void 0 ? void 0 : r[0]) !== null && i !== void 0 ? i : 1
67673
67673
  }, this.handshake = this.handshake.bind(this), this.request = this.request.bind(this), this.createRequestMessage = this.createRequestMessage.bind(this), this.decryptResponseMessage = this.decryptResponseMessage.bind(this);
67674
67674
  }
@@ -69689,7 +69689,7 @@ class Bc {
69689
69689
  resetAndReload() {
69690
69690
  this.connection.destroy().then(() => {
69691
69691
  const e = F0.load(this.storage);
69692
- e?.id === this._session.id && Vl.clearAll(), document.location.reload();
69692
+ e?.id === this._session.id && Gl.clearAll(), document.location.reload();
69693
69693
  }).catch((e) => {
69694
69694
  });
69695
69695
  }
@@ -69699,13 +69699,13 @@ class Bc {
69699
69699
  params: {
69700
69700
  fromAddress: e.fromAddress,
69701
69701
  toAddress: e.toAddress,
69702
- weiValue: yl(e.weiValue),
69702
+ weiValue: bl(e.weiValue),
69703
69703
  data: By(e.data, !0),
69704
69704
  nonce: e.nonce,
69705
- gasPriceInWei: e.gasPriceInWei ? yl(e.gasPriceInWei) : null,
69706
- maxFeePerGas: e.gasPriceInWei ? yl(e.gasPriceInWei) : null,
69707
- maxPriorityFeePerGas: e.gasPriceInWei ? yl(e.gasPriceInWei) : null,
69708
- gasLimit: e.gasLimit ? yl(e.gasLimit) : null,
69705
+ gasPriceInWei: e.gasPriceInWei ? bl(e.gasPriceInWei) : null,
69706
+ maxFeePerGas: e.gasPriceInWei ? bl(e.gasPriceInWei) : null,
69707
+ maxPriorityFeePerGas: e.gasPriceInWei ? bl(e.gasPriceInWei) : null,
69708
+ gasLimit: e.gasLimit ? bl(e.gasLimit) : null,
69709
69709
  chainId: e.chainId,
69710
69710
  shouldSubmit: !1
69711
69711
  }
@@ -69717,13 +69717,13 @@ class Bc {
69717
69717
  params: {
69718
69718
  fromAddress: e.fromAddress,
69719
69719
  toAddress: e.toAddress,
69720
- weiValue: yl(e.weiValue),
69720
+ weiValue: bl(e.weiValue),
69721
69721
  data: By(e.data, !0),
69722
69722
  nonce: e.nonce,
69723
- gasPriceInWei: e.gasPriceInWei ? yl(e.gasPriceInWei) : null,
69724
- maxFeePerGas: e.maxFeePerGas ? yl(e.maxFeePerGas) : null,
69725
- maxPriorityFeePerGas: e.maxPriorityFeePerGas ? yl(e.maxPriorityFeePerGas) : null,
69726
- gasLimit: e.gasLimit ? yl(e.gasLimit) : null,
69723
+ gasPriceInWei: e.gasPriceInWei ? bl(e.gasPriceInWei) : null,
69724
+ maxFeePerGas: e.maxFeePerGas ? bl(e.maxFeePerGas) : null,
69725
+ maxPriorityFeePerGas: e.maxPriorityFeePerGas ? bl(e.maxPriorityFeePerGas) : null,
69726
+ gasLimit: e.gasLimit ? bl(e.gasLimit) : null,
69727
69727
  chainId: e.chainId,
69728
69728
  shouldSubmit: !0
69729
69729
  }
@@ -69923,7 +69923,7 @@ Bc.accountRequestCallbackIds = /* @__PURE__ */ new Set();
69923
69923
  const lW = "DefaultChainId", cW = "DefaultJsonRpcUrl";
69924
69924
  class mre {
69925
69925
  constructor(e) {
69926
- this._relay = null, this._addresses = [], this.metadata = e.metadata, this._storage = new Vl("walletlink", sW), this.callback = e.callback || null;
69926
+ this._relay = null, this._addresses = [], this.metadata = e.metadata, this._storage = new Gl("walletlink", sW), this.callback = e.callback || null;
69927
69927
  const n = this._storage.getItem($k);
69928
69928
  if (n) {
69929
69929
  const r = n.split(" ");
@@ -70174,7 +70174,7 @@ class mre {
70174
70174
  })), this._relay;
70175
70175
  }
70176
70176
  }
70177
- const gre = "SignerType", yre = new Vl("CBWSDK", "SignerConfigurator");
70177
+ const gre = "SignerType", yre = new Gl("CBWSDK", "SignerConfigurator");
70178
70178
  function wZe() {
70179
70179
  return yre.getItem(gre);
70180
70180
  }
@@ -70421,7 +70421,7 @@ class FZe extends LZe {
70421
70421
  }
70422
70422
  async disconnect() {
70423
70423
  var e;
70424
- await ((e = this.signer) === null || e === void 0 ? void 0 : e.cleanup()), this.signer = null, Vl.clearAll(), this.emit("disconnect", pn.provider.disconnected("User initiated disconnection"));
70424
+ await ((e = this.signer) === null || e === void 0 ? void 0 : e.cleanup()), this.signer = null, Gl.clearAll(), this.emit("disconnect", pn.provider.disconnected("User initiated disconnection"));
70425
70425
  }
70426
70426
  requestSignerSelection(e) {
70427
70427
  return _Ze({
@@ -70462,7 +70462,7 @@ const WZe = {
70462
70462
  };
70463
70463
  function fW(t) {
70464
70464
  var e;
70465
- new Vl("CBWSDK").setItem("VERSION", Zb), AZe();
70465
+ new Gl("CBWSDK").setItem("VERSION", Zb), AZe();
70466
70466
  const r = {
70467
70467
  metadata: {
70468
70468
  appName: t.appName || "Dapp",
@@ -70620,7 +70620,7 @@ function _re(t) {
70620
70620
  if (e) return parseInt(e);
70621
70621
  throw Error("Chain ID not compatible with CAIP-2 format.");
70622
70622
  }
70623
- const Ere = (t) => t.filter(((e) => e.method === "wallets" || (e.method === "exchange" ? e.provider === "coinbase" : e.method === "card" || e.method === "payment-request" ? e.provider === "coinbase" || e.provider === "moonpay" : (e.method, !1)))), hW = { [ho.id]: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", [zA.id]: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238", [gu.id]: "0x0b2c639c533813f4aa9d7837caf62653d097ff85", [FA.id]: "0x5fd84259d66Cd46123540766Be93DFE6D43130D7", [po.id]: "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359", [BA.id]: "0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582", [el.id]: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", [UA.id]: "0x036CbD53842c5426634e7929541eC2318f3dCF7e", [Jo.id]: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", [LA.id]: "0x5425890298aed601595a70ab815c96711a31bc65", [Xo.id]: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831", [DA.id]: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d" }, pW = ({ address: t, appConfig: e, fundWalletConfig: n, methodScreen: r, chainIdOverride: i, comingFromSendTransactionScreen: a = !1 }) => {
70623
+ const Ere = (t) => t.filter(((e) => e.method === "wallets" || (e.method === "exchange" ? e.provider === "coinbase" : e.method === "card" || e.method === "payment-request" ? e.provider === "coinbase" || e.provider === "moonpay" : (e.method, !1)))), hW = { [ho.id]: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", [zA.id]: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238", [gu.id]: "0x0b2c639c533813f4aa9d7837caf62653d097ff85", [FA.id]: "0x5fd84259d66Cd46123540766Be93DFE6D43130D7", [po.id]: "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359", [BA.id]: "0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582", [tl.id]: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", [UA.id]: "0x036CbD53842c5426634e7929541eC2318f3dCF7e", [el.id]: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", [LA.id]: "0x5425890298aed601595a70ab815c96711a31bc65", [Jo.id]: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831", [DA.id]: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d" }, pW = ({ address: t, appConfig: e, fundWalletConfig: n, methodScreen: r, chainIdOverride: i, comingFromSendTransactionScreen: a = !1 }) => {
70624
70624
  let s, o;
70625
70625
  if (!e.fundingConfig) throw Error("Wallet funding is not enabled");
70626
70626
  let c = Ere(e.fundingConfig.options);
@@ -70652,7 +70652,7 @@ const Ere = (t) => t.filter(((e) => e.method === "wallets" || (e.method === "exc
70652
70652
  };
70653
70653
  let mW = async ({ accessToken: t, appConfig: e, privy: n, emitPrivyEvent: r, proxy: i, refreshSessionAndUser: a, recoverEmbeddedWallet: s, user: o, walletIndex: c, setModalData: d, openModal: f, chainType: m, setUser: p }) => {
70654
70654
  if (c < 0) throw r("createWallet", "onError", ue.EMBEDDED_WALLET_CREATE_ERROR), Error(`A negative walletIndex (${c}) is invalid.`);
70655
- let y = Wl(o);
70655
+ let y = ql(o);
70656
70656
  if (c > 0 && !y) throw r("createWallet", "onError", ue.EMBEDDED_WALLET_NOT_FOUND), Error("Must have an existing embedded wallet to create an additional wallet.");
70657
70657
  if (e.embeddedWallets.requireUserOwnedRecoveryOnCreate && e.embeddedWallets.mode === "user-controlled-server-wallets-only") throw r("createWallet", "onError", ue.EMBEDDED_WALLET_CREATE_ERROR), Error("User owned recovery not yet supported for this app.");
70658
70658
  if (!y && e.embeddedWallets.requireUserOwnedRecoveryOnCreate) return await gW({ emitPrivyEvent: r, setModalData: d, openModal: f, chainType: m });
@@ -71675,7 +71675,7 @@ const vI = 50000n, vW = bue * 32n, Sre = {
71675
71675
  l1BatchNumber: t.l1BatchNumber ? $n(t.l1BatchNumber) : null,
71676
71676
  l1BatchTxIndex: t.l1BatchTxIndex ? $n(t.l1BatchTxIndex) : null,
71677
71677
  logs: t.logs.map((e) => ({
71678
- ...Ul(e),
71678
+ ...Fl(e),
71679
71679
  l1BatchNumber: e.l1BatchNumber ? $n(e.l1BatchNumber) : null,
71680
71680
  transactionLogIndex: Es(e.transactionLogIndex),
71681
71681
  logType: e.logType
@@ -76578,7 +76578,7 @@ let e0 = class {
76578
76578
  }
76579
76579
  }
76580
76580
  constructor(e, n, r, i, a) {
76581
- super("base_account", e, n, r), this.connectorType = "base_account", this.walletClientType = "base_account", this.displayName = "Base", this.setBaseAccountSdk = a, this.proxyProvider = new Gh(void 0, this.rpcTimeoutDuration), this.subscribeListeners(), this.baseAccountConfig = { ...i, appChainIds: [n.id].concat(e.map(((s) => s.id))) }, t0 ? (this.proxyProvider.setWalletProvider(t0.getProvider()), this.setBaseAccountSdk(t0), console.log("Base Account SDK Initialized")) : this.importPromise = import("./index-B7tNGyqT.js").then((({ createBaseAccountSDK: s }) => {
76581
+ super("base_account", e, n, r), this.connectorType = "base_account", this.walletClientType = "base_account", this.displayName = "Base", this.setBaseAccountSdk = a, this.proxyProvider = new Gh(void 0, this.rpcTimeoutDuration), this.subscribeListeners(), this.baseAccountConfig = { ...i, appChainIds: [n.id].concat(e.map(((s) => s.id))) }, t0 ? (this.proxyProvider.setWalletProvider(t0.getProvider()), this.setBaseAccountSdk(t0), console.log("Base Account SDK Initialized")) : this.importPromise = import("./index-G2_zkv6d.js").then((({ createBaseAccountSDK: s }) => {
76582
76582
  t0 = s(this.baseAccountConfig), this.proxyProvider.setWalletProvider(t0.getProvider()), this.setBaseAccountSdk(t0), console.log("Base Account SDK Initialized");
76583
76583
  })).catch(console.error);
76584
76584
  }
@@ -76846,7 +76846,7 @@ let l9 = class extends Vh {
76846
76846
  e.initialized && this.emit("walletsUpdated");
76847
76847
  }
76848
76848
  addEmbeddedWalletConnectors({ walletProxy: e, user: n, embeddedWallets: r, defaultChain: i, appId: a, privyClient: s }) {
76849
- let { entropyId: o, entropyIdVerifier: c } = Al(n);
76849
+ let { entropyId: o, entropyIdVerifier: c } = Tl(n);
76850
76850
  for (let d of r) {
76851
76851
  let f = this.findEmbeddedWalletConnectors().find(((m) => m.walletIndex === d.walletIndex));
76852
76852
  if (f && Qg(f)) f.proxyProvider.walletProxy = e;
@@ -77919,7 +77919,7 @@ let Aie = () => {
77919
77919
  f && a();
77920
77920
  }), [f]), _.useEffect((() => {
77921
77921
  !e && o && s();
77922
- }), [e, o]), r && !t && r.isShownBeforeReady ? /* @__PURE__ */ g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(Kt, {}), /* @__PURE__ */ g.jsx(Jl, {}), /* @__PURE__ */ g.jsx(grt, { children: /* @__PURE__ */ g.jsx(oo, {}) }), /* @__PURE__ */ g.jsx(tl, {}), /* @__PURE__ */ g.jsx(Ur, {})] }) : r || c !== "txn" ? r ? /* @__PURE__ */ g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(dm, { $if: !!c, children: /* @__PURE__ */ g.jsx(r.component, {}) }), c === "txn" && /* @__PURE__ */ g.jsx(ZW, { onClose: d }), c === "auth" && /* @__PURE__ */ g.jsx(lrt.component, {})] }) : null : /* @__PURE__ */ g.jsx(ZW, { onClose: d });
77922
+ }), [e, o]), r && !t && r.isShownBeforeReady ? /* @__PURE__ */ g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(Kt, {}), /* @__PURE__ */ g.jsx(Jl, {}), /* @__PURE__ */ g.jsx(grt, { children: /* @__PURE__ */ g.jsx(oo, {}) }), /* @__PURE__ */ g.jsx(nl, {}), /* @__PURE__ */ g.jsx(Ur, {})] }) : r || c !== "txn" ? r ? /* @__PURE__ */ g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(dm, { $if: !!c, children: /* @__PURE__ */ g.jsx(r.component, {}) }), c === "txn" && /* @__PURE__ */ g.jsx(ZW, { onClose: d }), c === "auth" && /* @__PURE__ */ g.jsx(lrt.component, {})] }) : null : /* @__PURE__ */ g.jsx(ZW, { onClose: d });
77923
77923
  }, yrt = () => {
77924
77924
  let t = _.useRef(null);
77925
77925
  return g.jsx(vrt, { style: { height: JZe(t) }, id: "privy-modal-content", children: /* @__PURE__ */ g.jsx("div", { ref: t, children: /* @__PURE__ */ g.jsx(Aie, {}) }) });
@@ -78149,7 +78149,7 @@ const Srt = ({ address: t, user: e }) => {
78149
78149
  }, krt = ({ address: t, user: e }) => {
78150
78150
  let n = e.linkedAccounts.find(((i) => i.type === "wallet" && i.walletClientType === "privy" && i.address === t));
78151
78151
  if (!n) throw new se("Address to delegate is not associated with current user.");
78152
- let r = n.imported ? n : Wl(e);
78152
+ let r = n.imported ? n : ql(e);
78153
78153
  if (!r) throw new se("Unable to determine root address for delegated address.");
78154
78154
  if (!$4(r)) throw new se(`useDelegatedActions is not supported for ${r.chainType} wallets. Use the useSessionSigners hook to provision server side access on behalf of your users.`);
78155
78155
  return { address: r.address, chainType: r.chainType, imported: r.imported };
@@ -78421,7 +78421,7 @@ const hit = ({ showIntro: t, userMfaMethods: e, appMfaMethods: n, userHasAuthSms
78421
78421
  let m = e.reduce(((y, b) => ({ ...y, [b]: !0 })), {}), p = n.reduce(((y, b) => ({ ...y, [b]: !0 })), {});
78422
78422
  return g.jsxs(g.Fragment, { children: [/* @__PURE__ */ g.jsx(Kt, { backFn: t ? c : void 0, onClose: o }, "header"), /* @__PURE__ */ g.jsx(Xs, { style: { marginBottom: "1.5rem" }, children: /* @__PURE__ */ g.jsx(gh, {}) }), /* @__PURE__ */ g.jsx(za, { children: "Choose a verification method" }), e.length > 0 ? /* @__PURE__ */ g.jsx(Qs, { children: "To add or delete verification methods, verification is required." }) : /* @__PURE__ */ g.jsx(Qs, { children: "How would you like to verify your identity?" }), s && /* @__PURE__ */ g.jsx(_ie, { style: { marginTop: "1.25rem" }, children: s.message }), /* @__PURE__ */ g.jsxs(wie, { children: [(p.passkey || m.passkey) && /* @__PURE__ */ g.jsxs(h9, { children: [/* @__PURE__ */ g.jsx(yr, { style: { justifyContent: "center" }, onClick: () => d("passkey"), disabled: m.passkey || a, children: a ? /* @__PURE__ */ g.jsx(oo, { style: { height: 24, width: 24, borderWidth: 2 }, color: "var(--privy-color-foreground-3)" }) : /* @__PURE__ */ g.jsxs(g9, { children: [/* @__PURE__ */ g.jsxs(m9, { children: [/* @__PURE__ */ g.jsx(TT, {}), "Passkey"] }), m.passkey ? /* @__PURE__ */ g.jsx(v9, { color: "green", children: "Enabled" }) : /* @__PURE__ */ g.jsx(KW, { $isAccent: !0, children: /* @__PURE__ */ g.jsx(j4e, {}) })] }) }), m.passkey && /* @__PURE__ */ g.jsx(p9, { style: { position: "absolute", right: 0 }, onClick: () => f("passkey"), children: /* @__PURE__ */ g.jsx(G_, {}) })] }, "passkey"), (p.totp || m.totp) && /* @__PURE__ */ g.jsxs(h9, { children: [/* @__PURE__ */ g.jsx(yr, { style: { justifyContent: "center" }, disabled: m.totp || i, onClick: () => d("totp"), children: i ? /* @__PURE__ */ g.jsx(oo, { style: { height: 24, width: 24, borderWidth: 2 }, color: "var(--privy-color-foreground-3)" }) : /* @__PURE__ */ g.jsxs(g9, { children: [/* @__PURE__ */ g.jsxs(m9, { children: [/* @__PURE__ */ g.jsx(x6, {}), "Authenticator app"] }), m.totp && /* @__PURE__ */ g.jsx(v9, { color: "green", children: "Enabled" })] }) }), m.totp && /* @__PURE__ */ g.jsx(p9, { style: { position: "absolute", right: 0 }, onClick: () => f("totp"), children: /* @__PURE__ */ g.jsx(G_, {}) })] }, "totp"), (p.sms || m.sms) && /* @__PURE__ */ g.jsxs(h9, { children: [/* @__PURE__ */ g.jsx(yr, { disabled: m.sms || r, onClick: () => d("sms"), children: /* @__PURE__ */ g.jsxs(g9, { children: [/* @__PURE__ */ g.jsxs(m9, { children: [/* @__PURE__ */ g.jsx(Nd, {}), "SMS"] }), m.sms && /* @__PURE__ */ g.jsx(v9, { color: "green", children: "Enabled" }), r && /* @__PURE__ */ g.jsx(KW, { children: "Disabled" })] }) }), m.sms && /* @__PURE__ */ g.jsx(p9, { style: { position: "absolute", right: 0 }, onClick: () => f("sms"), children: /* @__PURE__ */ g.jsx(G_, {}) })] }, "sms")] }), /* @__PURE__ */ g.jsx(pit, { children: "You can always change your selection later" }), /* @__PURE__ */ g.jsx(Ur, {})] });
78423
78423
  };
78424
- let v9 = /* @__PURE__ */ X(Hl).withConfig({ displayName: "StyledChip", componentId: "sc-5f06df7f-0" })(["margin-right:1.5rem;"]), pit = /* @__PURE__ */ X(xie).withConfig({ displayName: "StyledTerms", componentId: "sc-5f06df7f-1" })(["&&{margin-top:1rem;}text-align:center;"]);
78424
+ let v9 = /* @__PURE__ */ X(Vl).withConfig({ displayName: "StyledChip", componentId: "sc-5f06df7f-0" })(["margin-right:1.5rem;"]), pit = /* @__PURE__ */ X(xie).withConfig({ displayName: "StyledTerms", componentId: "sc-5f06df7f-1" })(["&&{margin-top:1rem;}text-align:center;"]);
78425
78425
  const Nie = ({ style: t, ...e }) => /* @__PURE__ */ g.jsxs("svg", { x: 0, y: 0, width: "65", height: "64", viewBox: "0 0 65 64", style: { height: "64px", width: "65px", ...t }, xmlns: "http://www.w3.org/2000/svg", ...e, children: [/* @__PURE__ */ g.jsxs("g", { clipPath: "url(#clip0_113_33841)", children: [/* @__PURE__ */ g.jsx("path", { d: "M39.1193 0.943398C34.636 -0.174912 29.9185 -0.334713 25.328 0.656273C24.9732 0.732859 24.7477 1.08253 24.8243 1.43729C24.9009 1.79205 25.2506 2.01756 25.6053 1.94097C30.0015 0.991934 34.53 1.14842 38.8375 2.22802C49.1385 4.80983 57.7129 12.5548 60.9786 22.6718C62.2416 26.5843 62.7781 30.7505 62.8855 35.1167C62.8945 35.4795 63.1958 35.7664 63.5586 35.7575C63.9215 35.7485 64.2083 35.4472 64.1994 35.0843C64.0905 30.6582 63.5477 26.3849 62.2536 22.3432C58.8621 11.7515 49.9005 3.63265 39.1193 0.943398Z" }), /* @__PURE__ */ g.jsx("path", { d: "M21.9931 2.93163C22.343 2.83511 22.5484 2.47325 22.4518 2.12339C22.3553 1.77352 21.9935 1.56815 21.6436 1.66466C16.8429 2.98903 10.0898 7.56519 5.91628 13.6786C5.91465 13.681 5.91304 13.6834 5.91145 13.6858C2.24684 19.2083 -0.0503572 26.1484 0.591012 32.8828C0.591623 32.8892 0.592328 32.8956 0.593127 32.902C0.746837 34.1317 1.00488 35.3591 1.26323 36.5879C1.80735 39.1761 2.35282 41.7706 1.92765 44.4064C1.86986 44.7647 2.11347 45.102 2.47177 45.1598C2.83007 45.2176 3.16738 44.974 3.22518 44.6157C3.66961 41.8605 3.11776 39.173 2.56581 36.4851C2.31054 35.2419 2.05525 33.9987 1.89847 32.7486C1.29525 26.3851 3.46802 19.7466 7.00418 14.416C11.0189 8.5373 17.5201 4.16562 21.9931 2.93163Z" }), /* @__PURE__ */ g.jsx("path", { d: "M30.6166 4.39985C38.8671 3.89603 47.1159 7.26314 52.6556 13.7139C52.8921 13.9893 52.8605 14.4042 52.5852 14.6406C52.3099 14.8771 51.895 14.8455 51.6585 14.5702C46.3904 8.43576 38.541 5.23144 30.6927 5.71195C30.6899 5.71212 30.6871 5.71227 30.6843 5.71241C20.7592 6.19265 11.4643 12.9257 8.04547 22.3603C7.92183 22.7016 7.54498 22.8779 7.20375 22.7543C6.86253 22.6306 6.68616 22.2538 6.80981 21.9126C10.4114 11.9735 20.1717 4.90702 30.6166 4.39985Z" }), /* @__PURE__ */ g.jsx("path", { d: "M54.6576 16.5848C54.4553 16.2836 54.047 16.2033 53.7457 16.4057C53.4444 16.608 53.3642 17.0163 53.5665 17.3176C56.6376 21.8904 57.9074 26.8665 58.4094 32.7717C58.4401 33.1333 58.7582 33.4016 59.1199 33.3708C59.4815 33.3401 59.7497 33.022 59.719 32.6604C59.206 26.6261 57.8965 21.4076 54.6576 16.5848Z" }), /* @__PURE__ */ g.jsx("path", { d: "M59.2796 35.4504C59.6419 35.4277 59.9539 35.703 59.9765 36.0653C60.2242 40.0279 60.2265 44.5112 59.7881 47.8243C59.7405 48.1841 59.4102 48.4372 59.0504 48.3896C58.6906 48.342 58.4376 48.0117 58.4852 47.6519C58.9077 44.4586 58.91 40.0704 58.6648 36.1473C58.6421 35.785 58.9174 35.473 59.2796 35.4504Z" }), /* @__PURE__ */ g.jsx("path", { d: "M7.05311 25.5432C7.13829 25.1904 6.92135 24.8354 6.56855 24.7502C6.21576 24.665 5.86071 24.882 5.77553 25.2348C5.2932 27.2325 5.0428 29.2847 5.03288 31.3388C5.02266 33.4559 5.41742 35.5225 5.81234 37.5899C6.1354 39.2811 6.45855 40.9728 6.5602 42.6932C6.69373 44.9531 6.21839 47.2163 5.39698 49.3703C5.26766 49.7094 5.43774 50.0891 5.77685 50.2184C6.11596 50.3477 6.4957 50.1777 6.62502 49.8386C7.49325 47.5617 8.01954 45.1092 7.87221 42.6157C7.77126 40.9071 7.44813 39.2252 7.12512 37.5439C6.73099 35.4925 6.33704 33.442 6.34716 31.3451C6.35659 29.3933 6.59455 27.4425 7.05311 25.5432Z" }), /* @__PURE__ */ g.jsx("path", { d: "M24.2964 10.94C24.4317 11.2768 24.2683 11.6595 23.9315 11.7947C17.1187 14.5307 12.0027 20.7047 10.959 27.9852C10.523 31.0269 10.9941 34.0398 11.465 37.052C11.7303 38.7483 11.9954 40.4443 12.0985 42.1451C12.3221 45.833 11.902 49.8839 9.50192 53.5696C9.30387 53.8737 8.89677 53.9597 8.59264 53.7617C8.28851 53.5636 8.20251 53.1565 8.40056 52.8524C10.5873 49.4944 11.0012 45.7644 10.7867 42.2246C10.6821 40.499 10.4185 38.7833 10.1552 37.0686C9.68265 33.9923 9.21067 30.9195 9.65804 27.7987C10.7724 20.025 16.221 13.4748 23.4417 10.5751C23.7785 10.4399 24.1612 10.6032 24.2964 10.94Z" }), /* @__PURE__ */ g.jsx("path", { d: "M47.3662 14.6814C41.9915 9.64741 34.2017 7.89046 27.122 9.4433C26.7675 9.52105 26.5432 9.87147 26.6209 10.226C26.6987 10.5805 27.0491 10.8048 27.4036 10.7271C34.1075 9.25665 41.4426 10.934 46.4677 15.6406C50.7033 19.6077 53.1628 25.38 53.8066 31.6779C53.8435 32.0389 54.1661 32.3017 54.5272 32.2648C54.8883 32.2279 55.151 31.9053 55.1141 31.5442C54.4456 25.0047 51.8822 18.9111 47.3662 14.6814Z" }), /* @__PURE__ */ g.jsx("path", { d: "M54.9766 34.6738C55.3376 34.6368 55.6604 34.8994 55.6975 35.2604C56.3216 41.337 56.0526 47.9003 55.1104 54.2496C55.0571 54.6086 54.7229 54.8565 54.3639 54.8032C54.0049 54.7499 53.7571 54.4157 53.8103 54.0567C54.7394 47.7957 55.001 41.3439 54.39 35.3947C54.353 35.0336 54.6156 34.7109 54.9766 34.6738Z" }), /* @__PURE__ */ g.jsx("path", { d: "M32.0659 13.3553C21.9959 13.3553 13.814 21.3892 13.814 31.3219C13.814 32.3829 13.9081 33.4225 14.0876 34.4334C14.1511 34.7907 14.4922 35.029 14.8495 34.9655C15.2069 34.9021 15.4451 34.561 15.3817 34.2036C15.2155 33.2677 15.1283 32.305 15.1283 31.3219C15.1283 22.1352 22.7014 14.6696 32.0659 14.6696C36.2978 14.6696 40.1642 16.1949 43.1319 18.7152C43.4086 18.9501 43.8233 18.9163 44.0582 18.6396C44.2931 18.363 44.2593 17.9483 43.9827 17.7134C40.7847 14.9975 36.6188 13.3553 32.0659 13.3553Z" }), /* @__PURE__ */ g.jsx("path", { d: "M45.455 20.1635C45.717 19.9123 46.133 19.921 46.3842 20.183C49.2843 23.2072 50.2126 27.9605 50.8269 31.9494C51.5188 36.4426 51.6244 40.826 51.6244 42.8585C51.6244 43.2214 51.3302 43.5156 50.9673 43.5156C50.6044 43.5156 50.3101 43.2214 50.3101 42.8585C50.3101 40.8589 50.2055 36.5497 49.5279 32.1494C48.9577 28.4462 48.1356 23.9082 45.4356 21.0927C45.1844 20.8307 45.1931 20.4147 45.455 20.1635Z" }), /* @__PURE__ */ g.jsx("path", { d: "M51.4576 46.6219C51.4864 46.2601 51.2165 45.9435 50.8547 45.9146C50.493 45.8858 50.1763 46.1557 50.1474 46.5175C49.8247 50.5654 49.403 54.6088 48.5474 58.3439C48.4663 58.6977 48.6874 59.0502 49.0412 59.1312C49.3949 59.2123 49.7474 58.9912 49.8285 58.6374C50.7067 54.8039 51.134 50.6806 51.4576 46.6219Z" }), /* @__PURE__ */ g.jsx("path", { d: "M15.1454 36.852C15.5015 36.7819 15.847 37.0137 15.9171 37.3698C17.3066 44.4257 16.3467 50.8355 12.6672 56.4502C12.4682 56.7537 12.0609 56.8385 11.7573 56.6396C11.4538 56.4407 11.369 56.0333 11.5679 55.7298C15.0299 50.4469 15.9617 44.3985 14.6276 37.6238C14.5575 37.2677 14.7893 36.9221 15.1454 36.852Z" }), /* @__PURE__ */ g.jsx("path", { d: "M32.0659 17.631C25.5291 17.631 19.1165 22.691 18.462 29.0504C18.1754 31.8345 18.578 34.5769 18.9807 37.3204C19.3323 39.7159 19.684 42.1124 19.5772 44.5381C19.3328 50.0898 17.7039 54.6726 14.905 58.4471C14.6888 58.7386 14.7499 59.1502 15.0414 59.3663C15.333 59.5825 15.7445 59.5214 15.9607 59.2299C18.9293 55.2266 20.6354 50.386 20.8903 44.5959C20.9966 42.1811 20.6438 39.7923 20.2912 37.4051C19.888 34.6752 19.4851 31.9473 19.7694 29.1849C20.3444 23.5983 26.0946 18.9453 32.0659 18.9453C34.851 18.9453 42.057 20.4534 44.3492 27.9205C45.7856 32.5998 46.1774 38.9326 45.8295 45.0849C45.4816 51.2364 44.3994 57.12 42.9442 60.8928C42.8136 61.2314 42.9822 61.6118 43.3208 61.7424C43.6594 61.873 44.0398 61.7044 44.1704 61.3658C45.6929 57.4186 46.7895 51.386 47.1417 45.1591C47.4938 38.9329 47.1068 32.4249 45.6056 27.5348C43.0612 19.2461 35.0851 17.631 32.0659 17.631Z" }), /* @__PURE__ */ g.jsx("path", { d: "M21.9529 56.4512C22.2569 56.6494 22.3426 57.0566 22.1444 57.3606C21.7369 57.9854 21.3784 58.6391 21.0199 59.2928C20.6614 59.9465 20.3028 60.6004 19.8953 61.2253C19.697 61.5293 19.2898 61.615 18.9858 61.4167C18.6819 61.2184 18.5962 60.8113 18.7944 60.5073C19.2019 59.8825 19.5604 59.2288 19.9189 58.5751C20.2774 57.9213 20.636 57.2675 21.0435 56.6426C21.2418 56.3386 21.649 56.2529 21.9529 56.4512Z" }), /* @__PURE__ */ g.jsx("path", { d: "M27.5799 24.4525C27.8816 24.2508 27.9625 23.8426 27.7608 23.541C27.559 23.2393 27.1509 23.1583 26.8492 23.3601C24.247 25.1006 22.6505 27.494 22.6505 31.0002C22.6505 33.088 23.0203 34.7946 23.3997 36.5449C23.9674 39.1641 24.3524 41.7777 24.2832 44.468C24.1992 47.7349 23.56 50.7201 22.3313 53.564C22.1873 53.8971 22.3407 54.2839 22.6739 54.4278C23.0071 54.5718 23.3938 54.4184 23.5378 54.0852C24.8369 51.0784 25.509 47.9266 25.5971 44.5018C25.6689 41.7062 25.2732 38.9892 24.6845 36.267C24.3042 34.509 23.9648 32.9394 23.9648 31.0002C23.9648 27.9961 25.2863 25.9866 27.5799 24.4525Z" }), /* @__PURE__ */ g.jsx("path", { d: "M30.1447 22.1436C32.8717 21.5877 35.8061 22.2746 37.966 24.0228C41.8241 27.1455 42.3372 32.8403 42.753 37.4549L42.7742 37.69C43.3115 43.6385 42.6964 49.4163 41.4575 55.2186C41.3817 55.5736 41.0326 55.7999 40.6776 55.7241C40.3227 55.6483 40.0964 55.2991 40.1722 54.9442C41.3926 49.2288 41.9873 43.5885 41.4652 37.8082C41.4479 37.6169 41.4307 37.4228 41.4133 37.2264L41.4131 37.2235C41.0438 33.0534 40.5812 27.8304 37.1392 25.0444C35.2926 23.5498 32.7599 22.9518 30.4073 23.4314C30.0517 23.5039 29.7046 23.2744 29.6321 22.9188C29.5596 22.5632 29.7891 22.2161 30.1447 22.1436Z" }), /* @__PURE__ */ g.jsx("path", { d: "M40.5287 58.4885C40.6183 58.1368 40.4057 57.7791 40.054 57.6896C39.7023 57.6 39.3446 57.8126 39.2551 58.1643C38.8578 59.7247 38.2456 61.1333 37.4695 62.4301C37.2831 62.7415 37.3844 63.145 37.6958 63.3314C38.0072 63.5178 38.4108 63.4165 38.5972 63.1051C39.4336 61.7075 40.0977 60.1816 40.5287 58.4885Z" }), /* @__PURE__ */ g.jsx("path", { d: "M37.3152 48.9521C37.6756 48.9948 37.9332 49.3215 37.8906 49.682C37.2699 54.9267 35.8688 59.6042 33.6205 63.6613C33.4446 63.9787 33.0446 64.0934 32.7272 63.9175C32.4097 63.7416 32.295 63.3417 32.4709 63.0242C34.6226 59.1416 35.9811 54.6339 36.5854 49.5275C36.6281 49.1671 36.9548 48.9095 37.3152 48.9521Z" }), /* @__PURE__ */ g.jsx("path", { d: "M37.1798 30.6556C36.7242 28.2212 34.6349 26.3591 32.0985 26.3591C28.6638 26.3591 26.254 29.8212 27.1032 33.0422C28.54 38.7279 28.7759 44.2077 27.8032 49.4855L27.8025 49.4893C26.9584 54.228 25.3374 58.4908 23.1263 62.1031C22.9368 62.4127 23.0342 62.8172 23.3437 63.0067C23.6533 63.1962 24.0578 63.0988 24.2473 62.7893C26.5488 59.0292 28.2249 54.6109 29.0961 49.7218C30.106 44.2403 29.8558 38.5684 28.3765 32.7168L28.3748 32.7099C27.7378 30.3005 29.5133 27.6734 32.0985 27.6734C33.9641 27.6734 35.5393 29.0459 35.8871 30.8929C36.8436 36.4411 37.3418 41.5862 36.9871 46.016C36.9581 46.3778 37.2279 46.6945 37.5897 46.7235C37.9515 46.7525 38.2682 46.4827 38.2972 46.1209C38.6649 41.5294 38.1459 36.2576 37.1815 30.6648C37.1809 30.6617 37.1804 30.6586 37.1798 30.6556Z" }), /* @__PURE__ */ g.jsx("path", { d: "M30.1376 59.1171C30.4604 59.283 30.5876 59.6792 30.4217 60.002L28.6804 63.3906C28.5145 63.7134 28.1184 63.8406 27.7956 63.6747C27.4728 63.5088 27.3456 63.1127 27.5114 62.7899L29.2527 59.4013C29.4186 59.0785 29.8147 58.9513 30.1376 59.1171Z" }), /* @__PURE__ */ g.jsx("path", { d: "M32.5872 31.2892C32.5042 30.9359 32.1505 30.7168 31.7972 30.7998C31.4439 30.8828 31.2247 31.2365 31.3077 31.5898C33.5238 41.0232 33.2194 49.3066 30.5201 56.363C30.3905 56.702 30.5602 57.0819 30.8991 57.2115C31.2381 57.3412 31.618 57.1715 31.7477 56.8326C34.5622 49.475 34.8483 40.9141 32.5872 31.2892Z" })] }), /* @__PURE__ */ g.jsx("defs", { children: /* @__PURE__ */ g.jsx("clipPath", { id: "clip0_113_33841", children: /* @__PURE__ */ g.jsx("rect", { width: "64", height: "64", fill: "white", transform: "translate(0.483887)" }) }) })] }), mit = ({ onClose: t, onReset: e, submitEnrollmentWithPasskey: n }) => {
78426
78426
  let { user: r } = Jt(), { initLinkWithPasskey: i, linkWithPasskey: a } = Ke(), s = Xe(), [o, c] = _.useState(!1), [d, f] = _.useState(!1), [m, p] = _.useState(null), y = _.useMemo((() => r?.linkedAccounts.filter(((x) => x.type === "passkey")) ?? []), [r]), b = async (x) => {
78427
78427
  c(!0);
@@ -78764,7 +78764,7 @@ let Wit = (t) => {
78764
78764
  };
78765
78765
  _.useEffect((() => {
78766
78766
  if (!p) return void e.connectors?.removeEmbeddedWalletConnectors();
78767
- let V = kl(p), Z = Mee(p), re = ak(p);
78767
+ let V = Al(p), Z = Mee(p), re = ak(p);
78768
78768
  V && Z.length || e.connectors?.removeEmbeddedWalletConnectors(), re.length || e.connectors?.removeImportedWalletConnectors(), e.connectors ? j ? (V && e.connectors.addEmbeddedWalletConnectors({ walletProxy: j, user: p, embeddedWallets: Z, defaultChain: i.defaultChain, appId: t.appId, privyClient: n }), re.forEach(((te) => e.connectors?.addImportedWalletConnector(j, te.address, i.defaultChain, t.appId)))) : console.debug("Failed to add embedded wallet connector: Wallet proxy not initialized") : console.debug("Failed to add embedded wallet connector: Client connectors not initialized");
78769
78769
  }), [j, p]), _.useEffect((() => {
78770
78770
  j && ye.current?.(j);
@@ -78780,7 +78780,7 @@ let Wit = (t) => {
78780
78780
  let te = await j.create({ accessToken: re });
78781
78781
  return await j.createSolana({ accessToken: re, ethereumAddress: te?.address }), void qe(!1);
78782
78782
  }
78783
- if (Z) return await j.createSolana({ accessToken: re, ethereumAddress: kl(p)?.address }), await Ye.refreshSessionAndUser(), void qe(!1);
78783
+ if (Z) return await j.createSolana({ accessToken: re, ethereumAddress: Al(p)?.address }), await Ye.refreshSessionAndUser(), void qe(!1);
78784
78784
  if (V) return await j.create({ accessToken: re }), void qe(!1);
78785
78785
  }
78786
78786
  })().catch(console.error);
@@ -78907,7 +78907,7 @@ let Wit = (t) => {
78907
78907
  [...i.loginMethodsAndOrder?.primary ?? [], ...i.loginMethodsAndOrder?.overflow ?? []].filter(((V) => V.startsWith("privy:"))).forEach(((V) => e.getCrossAppProviderDetails(V.replace("privy:", ""))));
78908
78908
  }), [!!e]);
78909
78909
  let bt = ({ transaction: V, sponsor: Z, uiOptions: re, fundWalletConfig: te, address: de, signOnly: pe }) => new Promise((async (Ne, je) => {
78910
- let { requesterAppId: xt } = re || {}, Ft = pe ? "signTransaction" : "sendTransaction", hn = de ? Uc(p, de) : kl(p);
78910
+ let { requesterAppId: xt } = re || {}, Ft = pe ? "signTransaction" : "sendTransaction", hn = de ? Uc(p, de) : Al(p);
78911
78911
  if (!hn && de) {
78912
78912
  let Mt = TC(v2(), de);
78913
78913
  if (Mt) {
@@ -78922,7 +78922,7 @@ let Wit = (t) => {
78922
78922
  }
78923
78923
  if (!hn) return Re(ge, Ft, "onError", ue.EMBEDDED_WALLET_NOT_FOUND), void je(new se("No embedded or connected wallet found for address."));
78924
78924
  if (!f || !p) return Re(ge, Ft, "onError", ue.MUST_BE_AUTHENTICATED), void je(Error("User must be authenticated before signing with a Privy wallet"));
78925
- let yn = hn.address, En = hn.walletIndex ?? 0, { entropyId: lt, entropyIdVerifier: $t } = Al(p, hn), qt = Wn.wallets.find(((Mt) => Mt.walletClientType === "privy" && Yr(Mt.address) === Yr(yn)));
78925
+ let yn = hn.address, En = hn.walletIndex ?? 0, { entropyId: lt, entropyIdVerifier: $t } = Tl(p, hn), qt = Wn.wallets.find(((Mt) => Mt.walletClientType === "privy" && Yr(Mt.address) === Yr(yn)));
78926
78926
  if (!qt) return Re(ge, Ft, "onError", ue.EMBEDDED_WALLET_NOT_FOUND), void je(Error("Must have a Privy wallet before signing"));
78927
78927
  let pr = await qt.getEthereumProvider(), ii = await pr.request({ method: "eth_chainId" }), Br = V.chainId ? Number(V.chainId) : _re(ii);
78928
78928
  ((Mt) => {
@@ -78938,8 +78938,8 @@ let Wit = (t) => {
78938
78938
  let St = await (async ({ transactionRequest: Gt }) => {
78939
78939
  if (!ec) throw new se("Sponsoring is only supported for wallets on the TEE stack");
78940
78940
  if (pe) throw new se("Cannot sponsor a sign transaction request");
78941
- let Sa = (Ti) => Ti == null ? void 0 : Ot(Ti), rl = await $o(n, (async ({ message: Ti }) => await j.signWithUserSigner({ accessToken: mi, requesterAppId: xt, message: Ti })), { chain_type: "ethereum", method: "eth_sendTransaction", caip2: Ly(Ot(Gt.chainId)), sponsor: !0, params: { transaction: { from: Gt.from, to: Gt.to, chain_id: Sa(Gt.chainId), data: zi(Gt.data) ? Gt.data ? Gt.data : Ot(Uint8Array.from(Gt.data)) : void 0, value: Sa(Gt.value) } }, wallet_id: hn.id });
78942
- if (rl.data && "hash" in rl.data) return rl.data.hash;
78941
+ let Sa = (Ti) => Ti == null ? void 0 : Ot(Ti), il = await $o(n, (async ({ message: Ti }) => await j.signWithUserSigner({ accessToken: mi, requesterAppId: xt, message: Ti })), { chain_type: "ethereum", method: "eth_sendTransaction", caip2: Ly(Ot(Gt.chainId)), sponsor: !0, params: { transaction: { from: Gt.from, to: Gt.to, chain_id: Sa(Gt.chainId), data: zi(Gt.data) ? Gt.data ? Gt.data : Ot(Uint8Array.from(Gt.data)) : void 0, value: Sa(Gt.value) } }, wallet_id: hn.id });
78942
+ if (il.data && "hash" in il.data) return il.data.hash;
78943
78943
  throw new na("Unable to sign transaction");
78944
78944
  })({ transactionRequest: Mt });
78945
78945
  return Re(ge, "sendTransaction", "onSuccess", { hash: St }), St;
@@ -78948,8 +78948,8 @@ let Wit = (t) => {
78948
78948
  let St = (Sa) => Sa == null ? void 0 : Ot(Sa), Gt = await $o(n, (async ({ message: Sa }) => await j.signWithUserSigner({ accessToken: mi, requesterAppId: xt, message: Sa })), { chain_type: "ethereum", method: "eth_signTransaction", params: { transaction: { from: Mt.from, to: Mt.to, nonce: St(Mt.nonce), chain_id: St(Mt.chainId), data: zi(Mt.data) ? Mt.data ? Mt.data : Ot(Uint8Array.from(Mt.data)) : void 0, value: St(Mt.value), type: Mt.type, gas_limit: St(Mt.gasLimit ?? Mt.gas), gas_price: St(Mt.gasPrice ?? Mt.gas), max_fee_per_gas: St(Mt.maxFeePerGas), max_priority_fee_per_gas: St(Mt.maxPriorityFeePerGas) } }, wallet_id: hn.id });
78949
78949
  if (!Gt.data || !("signed_transaction" in Gt.data)) throw new na("Unable to sign transaction");
78950
78950
  Cn = Gt.data.signed_transaction;
78951
- } else Cn = await (async function({ accessToken: St, entropyId: Gt, entropyIdVerifier: Sa, transactingWalletIndex: rl, walletProxy: Ti, transactionRequest: il, requesterAppId: jm }) {
78952
- return (await Ti.rpc({ entropyId: Gt, entropyIdVerifier: Sa, hdWalletIndex: rl ?? 0, chainType: "ethereum", accessToken: St, requesterAppId: jm, request: { method: "eth_signTransaction", params: [il] } })).response.data;
78951
+ } else Cn = await (async function({ accessToken: St, entropyId: Gt, entropyIdVerifier: Sa, transactingWalletIndex: il, walletProxy: Ti, transactionRequest: al, requesterAppId: jm }) {
78952
+ return (await Ti.rpc({ entropyId: Gt, entropyIdVerifier: Sa, hdWalletIndex: il ?? 0, chainType: "ethereum", accessToken: St, requesterAppId: jm, request: { method: "eth_signTransaction", params: [al] } })).response.data;
78953
78953
  })({ accessToken: mi, entropyId: lt, entropyIdVerifier: $t, transactingWalletIndex: En, walletProxy: j, transactionRequest: Mt, requesterAppId: xt });
78954
78954
  if (pe) return Re(ge, "signTransaction", "onSuccess", { signature: Cn }), Cn;
78955
78955
  {
@@ -79001,7 +79001,7 @@ let Wit = (t) => {
79001
79001
  T(null);
79002
79002
  let re = Z ? "setWalletPassword" : "setWalletRecovery";
79003
79003
  if (!f || !p) throw Re(ge, re, "onError", ue.MUST_BE_AUTHENTICATED), Error("User must be authenticated before adding recovery method to Privy wallet");
79004
- let te = Wl(p);
79004
+ let te = ql(p);
79005
79005
  if (!te || !j) throw Re(ge, re, "onError", ue.EMBEDDED_WALLET_NOT_FOUND), Error("Must have a Privy wallet to add a recovery method");
79006
79006
  let de = ms(te);
79007
79007
  if (de) throw Re(ge, re, "onError", ue.UNSUPPORTED_WALLET_TYPE), new se("User owned wallet recovery is only supported for on-device execution and this app uses TEE execution. Learn more https://docs.privy.io/recipes/tee-wallet-migration-guide");
@@ -79011,7 +79011,7 @@ let Wit = (t) => {
79011
79011
  throw Re(ge, re, "onError", ue.MISSING_MFA_CREDENTIALS), pe;
79012
79012
  }
79013
79013
  return new Promise(((pe, Ne) => {
79014
- let je = te.recoveryMethod === "user-passcode", xt = Nne({ walletAction: "update", availableRecoveryMethods: i.embeddedWallets.userOwnedRecoveryOptions, legacySetWalletPasswordFlow: Z, isResettingPassword: je, showAutomaticRecovery: V }), { entropyId: Ft, entropyIdVerifier: hn } = Al(p), yn = { recoveryMethod: te.recoveryMethod, connectingWalletAddress: te.address, onCompleteNavigateTo: xt, shouldForceMFA: !1, entropyId: Ft, isUnifiedWallet: de, entropyIdVerifier: hn, onFailure: (En) => {
79014
+ let je = te.recoveryMethod === "user-passcode", xt = Nne({ walletAction: "update", availableRecoveryMethods: i.embeddedWallets.userOwnedRecoveryOptions, legacySetWalletPasswordFlow: Z, isResettingPassword: je, showAutomaticRecovery: V }), { entropyId: Ft, entropyIdVerifier: hn } = Tl(p), yn = { recoveryMethod: te.recoveryMethod, connectingWalletAddress: te.address, onCompleteNavigateTo: xt, shouldForceMFA: !1, entropyId: Ft, isUnifiedWallet: de, entropyIdVerifier: hn, onFailure: (En) => {
79015
79015
  Re(ge, re, "onError", ue.UNKNOWN_CONNECT_WALLET_ERROR), Ne(En);
79016
79016
  } };
79017
79017
  Q({ setWalletPassword: { onSuccess: (En) => {
@@ -79165,7 +79165,7 @@ let Wit = (t) => {
79165
79165
  let re = await e.unlinkOAuth(`privy:${Z.id}`, V);
79166
79166
  return y(re), re;
79167
79167
  }, setWalletRecovery: async (V) => gt({ legacySetWalletPasswordFlow: !1, showAutomaticRecovery: V?.showAutomaticRecovery ?? !1 }), setWalletPassword: async () => gt({ legacySetWalletPasswordFlow: !0, showAutomaticRecovery: !1 }), signMessage: (V, Z) => new Promise((async (re, te) => {
79168
- let { requesterAppId: de } = Z?.uiOptions || {}, pe = V.message, Ne = Z?.address ? Uc(p, Z.address) : kl(p);
79168
+ let { requesterAppId: de } = Z?.uiOptions || {}, pe = V.message, Ne = Z?.address ? Uc(p, Z.address) : Al(p);
79169
79169
  if (!Ne && Z?.address !== void 0) {
79170
79170
  let lt = TC(v2(), Z.address);
79171
79171
  if (lt) try {
@@ -79177,7 +79177,7 @@ let Wit = (t) => {
79177
79177
  }
79178
79178
  if (!Ne) throw new se("No embedded or connected wallet found for address.");
79179
79179
  if (!f || !p) return Re(ge, "signMessage", "onError", ue.MUST_BE_AUTHENTICATED), void te(Error("User must be authenticated before signing with a Privy wallet"));
79180
- let je = Ne.address, xt = Ne.walletIndex ?? 0, { entropyId: Ft, entropyIdVerifier: hn } = Al(p, Ne), yn = ms(Ne);
79180
+ let je = Ne.address, xt = Ne.walletIndex ?? 0, { entropyId: Ft, entropyIdVerifier: hn } = Tl(p, Ne), yn = ms(Ne);
79181
79181
  if (typeof pe != "string" || pe.length < 1) return Re(ge, "signMessage", "onError", ue.INVALID_MESSAGE), void te(Error("Message must be a non-empty string"));
79182
79182
  let En = async () => {
79183
79183
  let lt;
@@ -79208,7 +79208,7 @@ let Wit = (t) => {
79208
79208
  Re(ge, "signMessage", "onError", ue.UNKNOWN_CONNECT_WALLET_ERROR), te(lt);
79209
79209
  } } }), ht(ey);
79210
79210
  })), signTypedData: (V, Z) => new Promise((async (re, te) => {
79211
- let { requesterAppId: de } = Z?.uiOptions || {}, pe = Z?.address ? Uc(p, Z.address) : kl(p);
79211
+ let { requesterAppId: de } = Z?.uiOptions || {}, pe = Z?.address ? Uc(p, Z.address) : Al(p);
79212
79212
  if (!pe && Z?.address) {
79213
79213
  let lt = TC(v2(), Z.address);
79214
79214
  if (lt) try {
@@ -79220,7 +79220,7 @@ let Wit = (t) => {
79220
79220
  }
79221
79221
  if (!pe) throw new se("No embedded or connected wallet found for address.");
79222
79222
  if (!f || !p) return Re(ge, "signTypedData", "onError", ue.MUST_BE_AUTHENTICATED), void te(Error("User must be authenticated before signing with a Privy wallet"));
79223
- let Ne = pe.address, je = pe.walletIndex ?? 0, { entropyId: xt, entropyIdVerifier: Ft } = Al(p, pe), hn = ms(pe), yn = W2(V), En = async () => {
79223
+ let Ne = pe.address, je = pe.walletIndex ?? 0, { entropyId: xt, entropyIdVerifier: Ft } = Tl(p, pe), hn = ms(pe), yn = W2(V), En = async () => {
79224
79224
  let lt;
79225
79225
  if (!f) throw Error("User must be authenticated before signing with a Privy wallet");
79226
79226
  let $t = await Kn();
@@ -79251,9 +79251,9 @@ let Wit = (t) => {
79251
79251
  })), sendTransaction: async (V, Z) => await bt({ transaction: V, sponsor: Z?.sponsor, uiOptions: Z?.uiOptions, fundWalletConfig: Z?.fundWalletConfig, address: Z?.address, signOnly: !1 }), signTransaction: async (V, Z) => ({ signature: (await bt({ transaction: V, uiOptions: Z?.uiOptions, address: Z?.address, signOnly: !0 })).hash }), exportWallet: (V) => new Promise((async (Z, re) => {
79252
79252
  if (!f || !p) return void re(Error("User must be authenticated before exporting their Privy wallet"));
79253
79253
  V && "target" in V && V && (V = void 0);
79254
- let te = V?.address ? Uc(p, V.address) : kl(p);
79254
+ let te = V?.address ? Uc(p, V.address) : Al(p);
79255
79255
  if (!te) return void re(new se("User must have an embedded wallet."));
79256
- let de = te.address, { entropyId: pe, entropyIdVerifier: Ne } = Al(p, te), je = ms(te);
79256
+ let de = te.address, { entropyId: pe, entropyIdVerifier: Ne } = Tl(p, te), je = ms(te);
79257
79257
  if (!de) return void re(Error("User does not have an HD Ethereum wallet. To export an imported wallet, pass the `address` of the wallet to `exportWallet`."));
79258
79258
  if (!Zn(de)) return void re(Error("Must provide a valid Ethereum address."));
79259
79259
  let xt = { recoveryMethod: te.recoveryMethod, connectingWalletAddress: te.address, isUnifiedWallet: je, entropyId: pe, entropyIdVerifier: Ne, onCompleteNavigateTo: Pne, onFailure: re, shouldForceMFA: !0 };
@@ -79811,11 +79811,11 @@ let Wit = (t) => {
79811
79811
  return y(V), V;
79812
79812
  }, getUsdTokenPrice: (V) => e.getUsdTokenPrice(V), getUsdPriceForSol: () => e.getUsdPriceForSol(), getSplTokenMetadata: (V) => e.getSplTokenMetadata(V), recoverEmbeddedWallet: async (V) => new Promise((async (Z, re) => {
79813
79813
  if (!p) return void Z(!0);
79814
- let te = V?.address ? Uc(p, V.address) : Wl(p) || ak(p).at(0) || Rze(p).at(0);
79814
+ let te = V?.address ? Uc(p, V.address) : ql(p) || ak(p).at(0) || Rze(p).at(0);
79815
79815
  if (!te || ms(te)) return void Z(!0);
79816
79816
  let de = await Kn();
79817
79817
  if (!de || !j || !te) return void re(Error("Must have valid access token and Privy wallet to recover wallet"));
79818
- let { entropyId: pe, entropyIdVerifier: Ne } = Al(p, te);
79818
+ let { entropyId: pe, entropyIdVerifier: Ne } = Tl(p, te);
79819
79819
  try {
79820
79820
  await j.connect({ accessToken: de, entropyId: pe, entropyIdVerifier: Ne }), Z(!0);
79821
79821
  } catch (je) {
@@ -79866,11 +79866,11 @@ function Uie(t, e) {
79866
79866
  const { toString: qit } = Object.prototype, { getPrototypeOf: LI } = Object, { iterator: M4, toStringTag: Fie } = Symbol, D4 = /* @__PURE__ */ ((t) => (e) => {
79867
79867
  const n = qit.call(e);
79868
79868
  return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
79869
- })(/* @__PURE__ */ Object.create(null)), nl = (t) => (t = t.toLowerCase(), (e) => D4(e) === t), L4 = (t) => (e) => typeof e === t, { isArray: Rm } = Array, gm = L4("undefined");
79869
+ })(/* @__PURE__ */ Object.create(null)), rl = (t) => (t = t.toLowerCase(), (e) => D4(e) === t), L4 = (t) => (e) => typeof e === t, { isArray: Rm } = Array, gm = L4("undefined");
79870
79870
  function iv(t) {
79871
79871
  return t !== null && !gm(t) && t.constructor !== null && !gm(t.constructor) && Ka(t.constructor.isBuffer) && t.constructor.isBuffer(t);
79872
79872
  }
79873
- const Bie = nl("ArrayBuffer");
79873
+ const Bie = rl("ArrayBuffer");
79874
79874
  function Hit(t) {
79875
79875
  let e;
79876
79876
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Bie(t.buffer), e;
@@ -79888,11 +79888,11 @@ const Vit = L4("string"), Ka = L4("function"), zie = L4("number"), av = (t) => t
79888
79888
  } catch {
79889
79889
  return !1;
79890
79890
  }
79891
- }, Yit = nl("Date"), Zit = nl("File"), Qit = nl("Blob"), Xit = nl("FileList"), Jit = (t) => av(t) && Ka(t.pipe), eat = (t) => {
79891
+ }, Yit = rl("Date"), Zit = rl("File"), Qit = rl("Blob"), Xit = rl("FileList"), Jit = (t) => av(t) && Ka(t.pipe), eat = (t) => {
79892
79892
  let e;
79893
79893
  return t && (typeof FormData == "function" && t instanceof FormData || Ka(t.append) && ((e = D4(t)) === "formdata" || // detect form-data instance
79894
79894
  e === "object" && Ka(t.toString) && t.toString() === "[object FormData]"));
79895
- }, tat = nl("URLSearchParams"), [nat, rat, iat, aat] = ["ReadableStream", "Request", "Response", "Headers"].map(nl), sat = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
79895
+ }, tat = rl("URLSearchParams"), [nat, rat, iat, aat] = ["ReadableStream", "Request", "Response", "Headers"].map(rl), sat = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
79896
79896
  function sv(t, e, { allOwnKeys: n = !1 } = {}) {
79897
79897
  if (t === null || typeof t > "u")
79898
79898
  return;
@@ -79972,12 +79972,12 @@ const oat = (t, e, n, { allOwnKeys: r } = {}) => (sv(e, (i, a) => {
79972
79972
  for (; (n = t.exec(e)) !== null; )
79973
79973
  r.push(n);
79974
79974
  return r;
79975
- }, gat = nl("HTMLFormElement"), yat = (t) => t.toLowerCase().replace(
79975
+ }, gat = rl("HTMLFormElement"), yat = (t) => t.toLowerCase().replace(
79976
79976
  /[-_\s]([a-z\d])(\w*)/g,
79977
79977
  function(n, r, i) {
79978
79978
  return r.toUpperCase() + i;
79979
79979
  }
79980
- ), oq = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), bat = nl("RegExp"), Hie = (t, e) => {
79980
+ ), oq = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), bat = rl("RegExp"), Hie = (t, e) => {
79981
79981
  const n = Object.getOwnPropertyDescriptors(t), r = {};
79982
79982
  sv(n, (i, a) => {
79983
79983
  let s;
@@ -80029,7 +80029,7 @@ const Cat = (t) => {
80029
80029
  return r;
80030
80030
  };
80031
80031
  return n(t, 0);
80032
- }, Sat = nl("AsyncFunction"), kat = (t) => t && (av(t) || Ka(t)) && Ka(t.then) && Ka(t.catch), Vie = ((t, e) => t ? setImmediate : e ? ((n, r) => (Wf.addEventListener("message", ({ source: i, data: a }) => {
80032
+ }, Sat = rl("AsyncFunction"), kat = (t) => t && (av(t) || Ka(t)) && Ka(t.then) && Ka(t.catch), Vie = ((t, e) => t ? setImmediate : e ? ((n, r) => (Wf.addEventListener("message", ({ source: i, data: a }) => {
80033
80033
  i === Wf && a === n && r.length && r.shift()();
80034
80034
  }, !1), (i) => {
80035
80035
  r.push(i), Wf.postMessage(n, "*");
@@ -80070,7 +80070,7 @@ const Cat = (t) => {
80070
80070
  inherits: cat,
80071
80071
  toFlatObject: uat,
80072
80072
  kindOf: D4,
80073
- kindOfTest: nl,
80073
+ kindOfTest: rl,
80074
80074
  endsWith: dat,
80075
80075
  toArray: fat,
80076
80076
  forEachEntry: pat,
@@ -81303,7 +81303,7 @@ function mst(t, e, n) {
81303
81303
  const i3 = {
81304
81304
  assertOptions: mst,
81305
81305
  validators: F4
81306
- }, bl = i3.validators;
81306
+ }, vl = i3.validators;
81307
81307
  let eh = class {
81308
81308
  constructor(e) {
81309
81309
  this.defaults = e || {}, this.interceptors = {
@@ -81340,17 +81340,17 @@ let eh = class {
81340
81340
  typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Th(this.defaults, n);
81341
81341
  const { transitional: r, paramsSerializer: i, headers: a } = n;
81342
81342
  r !== void 0 && i3.assertOptions(r, {
81343
- silentJSONParsing: bl.transitional(bl.boolean),
81344
- forcedJSONParsing: bl.transitional(bl.boolean),
81345
- clarifyTimeoutError: bl.transitional(bl.boolean)
81343
+ silentJSONParsing: vl.transitional(vl.boolean),
81344
+ forcedJSONParsing: vl.transitional(vl.boolean),
81345
+ clarifyTimeoutError: vl.transitional(vl.boolean)
81346
81346
  }, !1), i != null && (Ee.isFunction(i) ? n.paramsSerializer = {
81347
81347
  serialize: i
81348
81348
  } : i3.assertOptions(i, {
81349
- encode: bl.function,
81350
- serialize: bl.function
81349
+ encode: vl.function,
81350
+ serialize: vl.function
81351
81351
  }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), i3.assertOptions(n, {
81352
- baseUrl: bl.spelling("baseURL"),
81353
- withXsrfToken: bl.spelling("withXSRFToken")
81352
+ baseUrl: vl.spelling("baseURL"),
81353
+ withXsrfToken: vl.spelling("withXSRFToken")
81354
81354
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
81355
81355
  let s = a && Ee.merge(
81356
81356
  a.common,
@@ -81610,22 +81610,22 @@ kr.getAdapter = aae.getAdapter;
81610
81610
  kr.HttpStatusCode = Jk;
81611
81611
  kr.default = kr;
81612
81612
  const {
81613
- Axios: xdt,
81614
- AxiosError: _dt,
81615
- CanceledError: Edt,
81616
- isCancel: Cdt,
81617
- CancelToken: Sdt,
81618
- VERSION: kdt,
81619
- all: Adt,
81620
- Cancel: Tdt,
81621
- isAxiosError: $dt,
81622
- spread: Idt,
81623
- toFormData: Odt,
81624
- AxiosHeaders: Ndt,
81625
- HttpStatusCode: Rdt,
81626
- formToJSON: Pdt,
81627
- getAdapter: jdt,
81628
- mergeConfig: Mdt
81613
+ Axios: _dt,
81614
+ AxiosError: Edt,
81615
+ CanceledError: Cdt,
81616
+ isCancel: Sdt,
81617
+ CancelToken: kdt,
81618
+ VERSION: Adt,
81619
+ all: Tdt,
81620
+ Cancel: $dt,
81621
+ isAxiosError: Idt,
81622
+ spread: Odt,
81623
+ toFormData: Ndt,
81624
+ AxiosHeaders: Rdt,
81625
+ HttpStatusCode: Pdt,
81626
+ formToJSON: jdt,
81627
+ getAdapter: Mdt,
81628
+ mergeConfig: Ddt
81629
81629
  } = kr, vst = (t) => (e, n, r) => {
81630
81630
  const i = r.subscribe;
81631
81631
  return r.subscribe = ((s, o, c) => {
@@ -81872,7 +81872,7 @@ const eA = (t) => (e) => {
81872
81872
  }, zI = typeof window > "u", Cst = {
81873
81873
  baseURL: "https://api.dev.autogames.app",
81874
81874
  withCredentials: !0
81875
- }, Gl = kr.create(Cst), E9 = async () => {
81875
+ }, Xo = kr.create(Cst), E9 = async () => {
81876
81876
  try {
81877
81877
  const t = sa.getState().refreshToken;
81878
81878
  if (!t)
@@ -81906,12 +81906,12 @@ const eA = (t) => (e) => {
81906
81906
  else
81907
81907
  console.warn("Web Locks API not supported — falling back to direct refresh."), await E9();
81908
81908
  };
81909
- Gl.interceptors.request.use(async (t) => {
81909
+ Xo.interceptors.request.use(async (t) => {
81910
81910
  if (zI) return t;
81911
81911
  const e = sa.getState().accessToken;
81912
81912
  return e && (t.headers = t.headers ?? {}, t.headers.Authorization = `Bearer ${e}`, t.headers["X-Auth-Type"] = "jwt"), t;
81913
81913
  });
81914
- Gl.interceptors.response.use(
81914
+ Xo.interceptors.response.use(
81915
81915
  (t) => t,
81916
81916
  async (t) => {
81917
81917
  const e = t.config;
@@ -81922,7 +81922,7 @@ Gl.interceptors.response.use(
81922
81922
  try {
81923
81923
  await Sst();
81924
81924
  const n = sa.getState().accessToken;
81925
- return n && (e.headers.Authorization = `Bearer ${n}`), Gl(e);
81925
+ return n && (e.headers.Authorization = `Bearer ${n}`), Xo(e);
81926
81926
  } catch (n) {
81927
81927
  return Promise.reject(n);
81928
81928
  }
@@ -81931,7 +81931,7 @@ Gl.interceptors.response.use(
81931
81931
  }
81932
81932
  );
81933
81933
  async function kst(t, e) {
81934
- return (await Gl.post("/sso/exchange-privy-token", {
81934
+ return (await Xo.post("/sso/exchange-privy-token", {
81935
81935
  privy_token: t,
81936
81936
  agent_id: e
81937
81937
  })).data;
@@ -82059,32 +82059,37 @@ function Sq() {
82059
82059
  Hy && (window.removeEventListener("message", Hy), Hy = null), Rr && (Rr.remove(), Rr = null), A5 = null;
82060
82060
  }
82061
82061
  async function Nst(t) {
82062
- return (await Gl.post(
82062
+ return (await Xo.post(
82063
82063
  "/sso/logout",
82064
82064
  t ? { refresh_token: t } : {}
82065
82065
  )).data;
82066
82066
  }
82067
82067
  async function Rst(t) {
82068
- const e = await Gl.get(`/users/${t}`);
82068
+ const e = await Xo.get(`/users/${t}`);
82069
82069
  if (!e.data.user)
82070
82070
  throw new Error("User not found");
82071
82071
  return e.data.user;
82072
82072
  }
82073
82073
  async function Pst(t, e) {
82074
- return (await Gl.get(`/users/${t}/assets`, {
82074
+ return (await Xo.get(`/users/${t}/assets`, {
82075
82075
  params: e
82076
82076
  })).data;
82077
82077
  }
82078
82078
  async function jst(t, e) {
82079
- return (await Gl.get(`/users/${t}/created-tokens`, {
82079
+ return (await Xo.get(`/users/${t}/created-tokens`, {
82080
82080
  params: e
82081
82081
  })).data;
82082
82082
  }
82083
82083
  async function Mst(t) {
82084
- return (await Gl.post(`/votings/${t}/recall`)).data;
82084
+ return (await Xo.get("/votings", {
82085
+ params: t
82086
+ })).data;
82087
+ }
82088
+ async function Dst(t) {
82089
+ return (await Xo.post(`/votings/${t}/recall`)).data;
82085
82090
  }
82086
- async function Dst(t, e) {
82087
- return (await Gl.post(`/votings/${t}/vote`, e)).data;
82091
+ async function Lst(t, e) {
82092
+ return (await Xo.post(`/votings/${t}/vote`, e)).data;
82088
82093
  }
82089
82094
  class WI {
82090
82095
  // Bundled default Privy App ID for AutoGames ecosystem
@@ -82164,7 +82169,7 @@ class WI {
82164
82169
  * @returns Vote response with message
82165
82170
  */
82166
82171
  async vote(e, n) {
82167
- return this.ensureInitialized(), Dst(e, n);
82172
+ return this.ensureInitialized(), Lst(e, n);
82168
82173
  }
82169
82174
  /**
82170
82175
  * Recall a vote on a voting
@@ -82172,6 +82177,14 @@ class WI {
82172
82177
  * @returns Recall response with message
82173
82178
  */
82174
82179
  async recall(e) {
82180
+ return this.ensureInitialized(), Dst(e);
82181
+ }
82182
+ /**
82183
+ * Fetch votings
82184
+ * @param params - Optional query parameters (game_id, token_id, status, limit, prev_voting)
82185
+ * @returns Votings response with array of votings
82186
+ */
82187
+ async fetchVotings(e) {
82175
82188
  return this.ensureInitialized(), Mst(e);
82176
82189
  }
82177
82190
  /**
@@ -82277,8 +82290,8 @@ class WI {
82277
82290
  throw new Error("SDK not initialized. Call AutoGamesSDK.init() first.");
82278
82291
  }
82279
82292
  }
82280
- const Lst = new WI();
82281
- typeof window < "u" && (window.AutoGamesSDK = Lst);
82293
+ const Ust = new WI();
82294
+ typeof window < "u" && (window.AutoGamesSDK = Ust);
82282
82295
  export {
82283
82296
  O5 as $,
82284
82297
  j5 as A,
@@ -82314,7 +82327,7 @@ export {
82314
82327
  fce as a1,
82315
82328
  aH as a2,
82316
82329
  pce as a3,
82317
- oot as a4,
82330
+ lot as a4,
82318
82331
  ti as a5,
82319
82332
  ke as a6,
82320
82333
  pG as a7,
@@ -82494,7 +82507,7 @@ export {
82494
82507
  oh as co,
82495
82508
  fV as cp,
82496
82509
  CA as cq,
82497
- Ul as cr,
82510
+ Fl as cr,
82498
82511
  dV as cs,
82499
82512
  V5 as ct,
82500
82513
  uV as cu,
@@ -82522,8 +82535,8 @@ export {
82522
82535
  iu as dE,
82523
82536
  _m as dF,
82524
82537
  TH as dG,
82525
- hot as dH,
82526
- fot as dI,
82538
+ pot as dH,
82539
+ hot as dI,
82527
82540
  xG as dJ,
82528
82541
  z9 as dK,
82529
82542
  p7e as dL,
@@ -82543,13 +82556,13 @@ export {
82543
82556
  wEe as dZ,
82544
82557
  dEe as d_,
82545
82558
  xce as da,
82546
- dot as db,
82559
+ fot as db,
82547
82560
  rb as dc,
82548
- Sot as dd,
82561
+ kot as dd,
82549
82562
  bb as de,
82550
82563
  Wle as df,
82551
82564
  Mle as dg,
82552
- rot as dh,
82565
+ iot as dh,
82553
82566
  Td as di,
82554
82567
  Hle as dj,
82555
82568
  Vy as dk,
@@ -82586,11 +82599,11 @@ export {
82586
82599
  yh as ef,
82587
82600
  xd as eg,
82588
82601
  M6 as eh,
82589
- _l as ei,
82602
+ El as ei,
82590
82603
  Ys as ej,
82591
- xl as ek,
82604
+ _l as ek,
82592
82605
  bX as el,
82593
- Lst as em,
82606
+ Ust as em,
82594
82607
  sa as en,
82595
82608
  Zoe as f,
82596
82609
  zoe as g,
@@ -82601,7 +82614,7 @@ export {
82601
82614
  zG as l,
82602
82615
  WG as m,
82603
82616
  io as n,
82604
- Cot as o,
82617
+ Sot as o,
82605
82618
  Uq as p,
82606
82619
  oj as q,
82607
82620
  c3 as r,
@@ -82612,5 +82625,5 @@ export {
82612
82625
  yge as w,
82613
82626
  vde as x,
82614
82627
  bue as y,
82615
- ul as z
82628
+ dl as z
82616
82629
  };