@skip-go/widget 3.6.7 → 3.6.8

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.
@@ -1,8 +1,8 @@
1
1
  import { jsx as l, Fragment as fe, jsxs as j } from "react/jsx-runtime";
2
- import ln, { useState as se, useMemo as W, useEffect as ae, useContext as gs, useRef as fi, useDebugValue as Ca, createElement as Km, useCallback as ye, Fragment as Xm } from "react";
2
+ import ln, { useState as se, useMemo as U, useEffect as re, useContext as gs, useRef as fi, useDebugValue as Ca, createElement as Km, useCallback as ye, Fragment as Xm } from "react";
3
3
  import { Scope as Ym } from "react-shadow-scope";
4
4
  import { atom as Q, useAtomValue as L, useAtom as me, useSetAtom as Y, createStore as Zm, Provider as Jm } from "jotai";
5
- import oe, { useModal as bs } from "@ebay/nice-modal-react";
5
+ import te, { useModal as bs } from "@ebay/nice-modal-react";
6
6
  import { ChainType as R, SkipClient as Qm, GAS_STATION_CHAIN_IDS as _m } from "@skip-go/client";
7
7
  import { atomWithQuery as ri, atomWithMutation as $m } from "jotai-tanstack-query";
8
8
  import { getWallet as Ji, WalletType as le, useActiveWalletType as ep, useDisconnect as np, isWalletConnect as fs, checkWallet as ka, connect as wa, useAccount as As, getChainInfo as ip, GrazProvider as op } from "graz";
@@ -144,7 +144,7 @@ Se.umask = function() {
144
144
  return 0;
145
145
  };
146
146
  var Xp = ys.exports;
147
- const ce = /* @__PURE__ */ Up(Xp);
147
+ const ae = /* @__PURE__ */ Up(Xp);
148
148
  var Ve = function() {
149
149
  return Ve = Object.assign || function(n) {
150
150
  for (var i, o = 1, t = arguments.length; o < t; o++) {
@@ -368,10 +368,10 @@ function ph(e) {
368
368
  return ah(So("", null, null, null, [""], e = ch(e), 0, [0], e));
369
369
  }
370
370
  function So(e, n, i, o, t, c, a, r, s) {
371
- for (var m = 0, p = 0, d = a, u = 0, x = 0, b = 0, g = 1, f = 1, v = 1, C = 0, E = "", q = t, B = c, I = o, T = E; f; )
372
- switch (b = C, C = sn()) {
371
+ for (var m = 0, p = 0, d = a, u = 0, x = 0, g = 0, b = 1, f = 1, v = 1, C = 0, E = "", S = t, B = c, I = o, T = E; f; )
372
+ switch (g = C, C = sn()) {
373
373
  case 40:
374
- if (b != 108 && He(T, d - 1) == 58) {
374
+ if (g != 108 && He(T, d - 1) == 58) {
375
375
  Po(T += ne(Bt(C), "&", "&\f"), "&\f", zs(m ? r[m - 1] : 0)) != -1 && (v = -1);
376
376
  break;
377
377
  }
@@ -384,7 +384,7 @@ function So(e, n, i, o, t, c, a, r, s) {
384
384
  case 10:
385
385
  case 13:
386
386
  case 32:
387
- T += rh(b);
387
+ T += rh(g);
388
388
  break;
389
389
  case 92:
390
390
  T += sh(zo() - 1, 7);
@@ -399,9 +399,9 @@ function So(e, n, i, o, t, c, a, r, s) {
399
399
  T += "/";
400
400
  }
401
401
  break;
402
- case 123 * g:
402
+ case 123 * b:
403
403
  r[m++] = dn(T) * v;
404
- case 125 * g:
404
+ case 125 * b:
405
405
  case 59:
406
406
  case 0:
407
407
  switch (C) {
@@ -414,33 +414,33 @@ function So(e, n, i, o, t, c, a, r, s) {
414
414
  case 59:
415
415
  T += ";";
416
416
  default:
417
- if (Yi(I = Fa(T, n, i, m, p, t, r, E, q = [], B = [], d, c), c), C === 123)
417
+ if (Yi(I = Fa(T, n, i, m, p, t, r, E, S = [], B = [], d, c), c), C === 123)
418
418
  if (p === 0)
419
- So(T, n, I, I, q, c, d, r, B);
419
+ So(T, n, I, I, S, c, d, r, B);
420
420
  else
421
421
  switch (u === 99 && He(T, 3) === 110 ? 100 : u) {
422
422
  case 100:
423
423
  case 108:
424
424
  case 109:
425
425
  case 115:
426
- So(e, I, I, o && Yi(Fa(e, I, I, 0, 0, t, r, E, t, q = [], d, B), B), t, B, d, r, o ? q : B);
426
+ So(e, I, I, o && Yi(Fa(e, I, I, 0, 0, t, r, E, t, S = [], d, B), B), t, B, d, r, o ? S : B);
427
427
  break;
428
428
  default:
429
429
  So(T, I, I, I, [""], B, 0, r, B);
430
430
  }
431
431
  }
432
- m = p = x = 0, g = v = 1, E = T = "", d = a;
432
+ m = p = x = 0, b = v = 1, E = T = "", d = a;
433
433
  break;
434
434
  case 58:
435
- d = 1 + dn(T), x = b;
435
+ d = 1 + dn(T), x = g;
436
436
  default:
437
- if (g < 1) {
437
+ if (b < 1) {
438
438
  if (C == 123)
439
- --g;
440
- else if (C == 125 && g++ == 0 && th() == 125)
439
+ --b;
440
+ else if (C == 125 && b++ == 0 && th() == 125)
441
441
  continue;
442
442
  }
443
- switch (T += qc(C), C * g) {
443
+ switch (T += qc(C), C * b) {
444
444
  case 38:
445
445
  v = p > 0 ? 1 : (T += "\f", -1);
446
446
  break;
@@ -451,15 +451,15 @@ function So(e, n, i, o, t, c, a, r, s) {
451
451
  Qn() === 45 && (T += Bt(sn())), u = Qn(), p = d = dn(E = T += mh(zo())), C++;
452
452
  break;
453
453
  case 45:
454
- b === 45 && dn(T) == 2 && (g = 0);
454
+ g === 45 && dn(T) == 2 && (b = 0);
455
455
  }
456
456
  }
457
457
  return c;
458
458
  }
459
459
  function Fa(e, n, i, o, t, c, a, r, s, m, p, d) {
460
- for (var u = t - 1, x = t === 0 ? c : [""], b = qs(x), g = 0, f = 0, v = 0; g < o; ++g)
461
- for (var C = 0, E = Ai(e, u + 1, u = zs(f = a[g])), q = e; C < b; ++C)
462
- (q = Ss(f > 0 ? x[C] + " " + E : ne(E, /&\f/g, x[C]))) && (s[v++] = q);
460
+ for (var u = t - 1, x = t === 0 ? c : [""], g = qs(x), b = 0, f = 0, v = 0; b < o; ++b)
461
+ for (var C = 0, E = Ai(e, u + 1, u = zs(f = a[b])), S = e; C < g; ++C)
462
+ (S = Ss(f > 0 ? x[C] + " " + E : ne(E, /&\f/g, x[C]))) && (s[v++] = S);
463
463
  return et(e, n, i, t === 0 ? _o : r, s, m, p, d);
464
464
  }
465
465
  function hh(e, n, i, o) {
@@ -718,9 +718,9 @@ var gh = {
718
718
  strokeMiterlimit: 1,
719
719
  strokeOpacity: 1,
720
720
  strokeWidth: 1
721
- }, ni = typeof ce < "u" && ce.env !== void 0 && (ce.env.REACT_APP_SC_ATTR || ce.env.SC_ATTR) || "data-styled", Hs = "active", Ts = "data-styled-version", it = "6.1.13", jc = `/*!sc*/
722
- `, Vo = typeof window < "u" && "HTMLElement" in window, bh = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof ce < "u" && ce.env !== void 0 && ce.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && ce.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? ce.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && ce.env.REACT_APP_SC_DISABLE_SPEEDY : typeof ce < "u" && ce.env !== void 0 && ce.env.SC_DISABLE_SPEEDY !== void 0 && ce.env.SC_DISABLE_SPEEDY !== "" ? ce.env.SC_DISABLE_SPEEDY !== "false" && ce.env.SC_DISABLE_SPEEDY : ce.env.NODE_ENV !== "production"), Ma = /invalid hook call/i, fo = /* @__PURE__ */ new Set(), fh = function(e, n) {
723
- if (ce.env.NODE_ENV !== "production") {
721
+ }, ni = typeof ae < "u" && ae.env !== void 0 && (ae.env.REACT_APP_SC_ATTR || ae.env.SC_ATTR) || "data-styled", Hs = "active", Ts = "data-styled-version", it = "6.1.13", jc = `/*!sc*/
722
+ `, Vo = typeof window < "u" && "HTMLElement" in window, bh = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof ae < "u" && ae.env !== void 0 && ae.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && ae.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? ae.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && ae.env.REACT_APP_SC_DISABLE_SPEEDY : typeof ae < "u" && ae.env !== void 0 && ae.env.SC_DISABLE_SPEEDY !== void 0 && ae.env.SC_DISABLE_SPEEDY !== "" ? ae.env.SC_DISABLE_SPEEDY !== "false" && ae.env.SC_DISABLE_SPEEDY : ae.env.NODE_ENV !== "production"), Ma = /invalid hook call/i, fo = /* @__PURE__ */ new Set(), fh = function(e, n) {
723
+ if (ae.env.NODE_ENV !== "production") {
724
724
  var i = n ? ' with the id of "'.concat(n, '"') : "", o = "The component ".concat(e).concat(i, ` has been created dynamically.
725
725
  `) + `You may see this warning because you've called styled inside another component.
726
726
  To resolve this only create new StyledComponents outside of any render method and function component.`, t = console.error;
@@ -762,10 +762,10 @@ function Ls(e) {
762
762
  return $t(Vs(e) >>> 0);
763
763
  }
764
764
  function Rs(e) {
765
- return ce.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
765
+ return ae.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
766
766
  }
767
767
  function Pt(e) {
768
- return typeof e == "string" && (ce.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
768
+ return typeof e == "string" && (ae.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
769
769
  }
770
770
  var Os = typeof Symbol == "function" && Symbol.for, Ws = Os ? Symbol.for("react.memo") : 60115, yh = Os ? Symbol.for("react.forward_ref") : 60112, vh = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Eh = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Us = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Fh = ((Mt = {})[yh] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Mt[Ws] = Us, Mt);
771
771
  function Sa(e) {
@@ -820,7 +820,7 @@ function nc(e, n, i) {
820
820
  function Hc(e, n) {
821
821
  Object.defineProperty(e, "toString", { value: n });
822
822
  }
823
- var Sh = ce.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
823
+ var Sh = ae.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
824
824
 
825
825
  `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
826
826
 
@@ -871,7 +871,7 @@ function qh() {
871
871
  }
872
872
  function xn(e) {
873
873
  for (var n = [], i = 1; i < arguments.length; i++) n[i - 1] = arguments[i];
874
- return ce.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(qh.apply(void 0, ei([Sh[e]], n, !1)).trim());
874
+ return ae.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(qh.apply(void 0, ei([Sh[e]], n, !1)).trim());
875
875
  }
876
876
  var jh = function() {
877
877
  function e(n) {
@@ -903,7 +903,7 @@ var jh = function() {
903
903
  if (qo.has(e)) return qo.get(e);
904
904
  for (; Lo.has(jo); ) jo++;
905
905
  var n = jo++;
906
- if (ce.env.NODE_ENV !== "production" && ((0 | n) < 0 || n > Ih)) throw xn(16, "".concat(n));
906
+ if (ae.env.NODE_ENV !== "production" && ((0 | n) < 0 || n > Ih)) throw xn(16, "".concat(n));
907
907
  return qo.set(e, n), Lo.set(n, e), n;
908
908
  }, Hh = function(e, n) {
909
909
  jo = n + 1, qo.set(e, n), Lo.set(n, e);
@@ -997,12 +997,12 @@ var Ks = function(e) {
997
997
  return Lo.get(v);
998
998
  }(d);
999
999
  if (u === void 0) return "continue";
1000
- var x = c.names.get(u), b = a.getGroup(d);
1001
- if (x === void 0 || !x.size || b.length === 0) return "continue";
1002
- var g = "".concat(ni, ".g").concat(d, '[id="').concat(u, '"]'), f = "";
1000
+ var x = c.names.get(u), g = a.getGroup(d);
1001
+ if (x === void 0 || !x.size || g.length === 0) return "continue";
1002
+ var b = "".concat(ni, ".g").concat(d, '[id="').concat(u, '"]'), f = "";
1003
1003
  x !== void 0 && x.forEach(function(v) {
1004
1004
  v.length > 0 && (f += "".concat(v, ","));
1005
- }), s += "".concat(b).concat(g, '{content:"').concat(f, '"}').concat(jc);
1005
+ }), s += "".concat(g).concat(b, '{content:"').concat(f, '"}').concat(jc);
1006
1006
  }, p = 0; p < r; p++) m(p);
1007
1007
  return s;
1008
1008
  }(t);
@@ -1048,15 +1048,15 @@ function Ys(e, n) {
1048
1048
  });
1049
1049
  }
1050
1050
  function Zs(e) {
1051
- var n, i, o, t = e === void 0 ? ki : e, c = t.options, a = c === void 0 ? ki : c, r = t.plugins, s = r === void 0 ? ot : r, m = function(u, x, b) {
1052
- return b.startsWith(i) && b.endsWith(i) && b.replaceAll(i, "").length > 0 ? ".".concat(n) : u;
1051
+ var n, i, o, t = e === void 0 ? ki : e, c = t.options, a = c === void 0 ? ki : c, r = t.plugins, s = r === void 0 ? ot : r, m = function(u, x, g) {
1052
+ return g.startsWith(i) && g.endsWith(i) && g.replaceAll(i, "").length > 0 ? ".".concat(n) : u;
1053
1053
  }, p = s.slice();
1054
1054
  p.push(function(u) {
1055
1055
  u.type === _o && u.value.includes("&") && (u.props[0] = u.props[0].replace(Kh, i).replace(o, m));
1056
1056
  }), a.prefix && p.push(xh), p.push(uh);
1057
- var d = function(u, x, b, g) {
1058
- x === void 0 && (x = ""), b === void 0 && (b = ""), g === void 0 && (g = "&"), n = g, i = x, o = new RegExp("\\".concat(i, "\\b"), "g");
1059
- var f = u.replace(Xh, ""), v = ph(b || x ? "".concat(b, " ").concat(x, " { ").concat(f, " }") : f);
1057
+ var d = function(u, x, g, b) {
1058
+ x === void 0 && (x = ""), g === void 0 && (g = ""), b === void 0 && (b = "&"), n = b, i = x, o = new RegExp("\\".concat(i, "\\b"), "g");
1059
+ var f = u.replace(Xh, ""), v = ph(g || x ? "".concat(g, " ").concat(x, " { ").concat(f, " }") : f);
1060
1060
  a.namespace && (v = Ys(v, a.namespace));
1061
1061
  var C = [];
1062
1062
  return No(v, dh(p.concat(Dh(function(E) {
@@ -1074,16 +1074,16 @@ function oc() {
1074
1074
  return gs(Tc);
1075
1075
  }
1076
1076
  function Ta(e) {
1077
- var n = se(e.stylisPlugins), i = n[0], o = n[1], t = oc().styleSheet, c = W(function() {
1077
+ var n = se(e.stylisPlugins), i = n[0], o = n[1], t = oc().styleSheet, c = U(function() {
1078
1078
  var s = t;
1079
1079
  return e.sheet ? s = e.sheet : e.target && (s = s.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (s = s.reconstructWithOptions({ useCSSOMInjection: !1 })), s;
1080
- }, [e.disableCSSOMInjection, e.sheet, e.target, t]), a = W(function() {
1080
+ }, [e.disableCSSOMInjection, e.sheet, e.target, t]), a = U(function() {
1081
1081
  return Zs({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: i });
1082
1082
  }, [e.enableVendorPrefixes, e.namespace, i]);
1083
- ae(function() {
1083
+ re(function() {
1084
1084
  _p(i, e.stylisPlugins) || o(e.stylisPlugins);
1085
1085
  }, [e.stylisPlugins]);
1086
- var r = W(function() {
1086
+ var r = U(function() {
1087
1087
  return { shouldForwardProp: e.shouldForwardProp, styleSheet: c, stylis: a };
1088
1088
  }, [e.shouldForwardProp, c, a]);
1089
1089
  return ln.createElement(Tc.Provider, { value: r }, ln.createElement(Zh.Provider, { value: a }, e.children));
@@ -1129,7 +1129,7 @@ function _n(e, n, i, o) {
1129
1129
  if (ii(e)) {
1130
1130
  if (!ii(c = e) || c.prototype && c.prototype.isReactComponent || !n) return [e];
1131
1131
  var t = e(n);
1132
- return ce.env.NODE_ENV === "production" || typeof t != "object" || Array.isArray(t) || t instanceof tc || wi(t) || t === null || console.error("".concat(Rs(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), _n(t, n, i, o);
1132
+ return ae.env.NODE_ENV === "production" || typeof t != "object" || Array.isArray(t) || t instanceof tc || wi(t) || t === null || console.error("".concat(Rs(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), _n(t, n, i, o);
1133
1133
  }
1134
1134
  var c;
1135
1135
  return e instanceof tc ? i ? (e.inject(i, o), [e.getName(o)]) : [e] : wi(e) ? Qs(e) : Array.isArray(e) ? Array.prototype.concat.apply(ot, e.map(function(a) {
@@ -1145,7 +1145,7 @@ function Qh(e) {
1145
1145
  }
1146
1146
  var _h = Vs(it), $h = function() {
1147
1147
  function e(n, i, o) {
1148
- this.rules = n, this.staticRulesId = "", this.isStatic = ce.env.NODE_ENV === "production" && (o === void 0 || o.isStatic) && Qh(n), this.componentId = i, this.baseHash = Yn(_h, i), this.baseStyle = o, Xs.registerId(i);
1148
+ this.rules = n, this.staticRulesId = "", this.isStatic = ae.env.NODE_ENV === "production" && (o === void 0 || o.isStatic) && Qh(n), this.componentId = i, this.baseHash = Yn(_h, i), this.baseStyle = o, Xs.registerId(i);
1149
1149
  }
1150
1150
  return e.prototype.generateAndInjectStyles = function(n, i, o) {
1151
1151
  var t = this.baseStyle ? this.baseStyle.generateAndInjectStyles(n, i, o) : "";
@@ -1161,7 +1161,7 @@ var _h = Vs(it), $h = function() {
1161
1161
  else {
1162
1162
  for (var s = Yn(this.baseHash, o.hash), m = "", p = 0; p < this.rules.length; p++) {
1163
1163
  var d = this.rules[p];
1164
- if (typeof d == "string") m += d, ce.env.NODE_ENV !== "production" && (s = Yn(s, d));
1164
+ if (typeof d == "string") m += d, ae.env.NODE_ENV !== "production" && (s = Yn(s, d));
1165
1165
  else if (d) {
1166
1166
  var u = ec(_n(d, n, i, o));
1167
1167
  s = Yn(s, u + p), m += u;
@@ -1182,12 +1182,12 @@ function de() {
1182
1182
  return e;
1183
1183
  }
1184
1184
  function Va(e) {
1185
- var n = ln.useContext(no), i = W(function() {
1185
+ var n = ln.useContext(no), i = U(function() {
1186
1186
  return function(o, t) {
1187
1187
  if (!o) throw xn(14);
1188
1188
  if (ii(o)) {
1189
1189
  var c = o(t);
1190
- if (ce.env.NODE_ENV !== "production" && (c === null || Array.isArray(c) || typeof c != "object")) throw xn(7);
1190
+ if (ae.env.NODE_ENV !== "production" && (c === null || Array.isArray(c) || typeof c != "object")) throw xn(7);
1191
1191
  return c;
1192
1192
  }
1193
1193
  if (Array.isArray(o) || typeof o != "object") throw xn(8);
@@ -1198,61 +1198,61 @@ function Va(e) {
1198
1198
  }
1199
1199
  var zt = {}, La = /* @__PURE__ */ new Set();
1200
1200
  function eu(e, n, i) {
1201
- var o = Ic(e), t = e, c = !Pt(e), a = n.attrs, r = a === void 0 ? ot : a, s = n.componentId, m = s === void 0 ? function(q, B) {
1202
- var I = typeof q != "string" ? "sc" : Pa(q);
1201
+ var o = Ic(e), t = e, c = !Pt(e), a = n.attrs, r = a === void 0 ? ot : a, s = n.componentId, m = s === void 0 ? function(S, B) {
1202
+ var I = typeof S != "string" ? "sc" : Pa(S);
1203
1203
  zt[I] = (zt[I] || 0) + 1;
1204
1204
  var T = "".concat(I, "-").concat(Ls(it + I + zt[I]));
1205
1205
  return B ? "".concat(B, "-").concat(T) : T;
1206
- }(n.displayName, n.parentComponentId) : s, p = n.displayName, d = p === void 0 ? function(q) {
1207
- return Pt(q) ? "styled.".concat(q) : "Styled(".concat(Rs(q), ")");
1208
- }(e) : p, u = n.displayName && n.componentId ? "".concat(Pa(n.displayName), "-").concat(n.componentId) : n.componentId || m, x = o && t.attrs ? t.attrs.concat(r).filter(Boolean) : r, b = n.shouldForwardProp;
1206
+ }(n.displayName, n.parentComponentId) : s, p = n.displayName, d = p === void 0 ? function(S) {
1207
+ return Pt(S) ? "styled.".concat(S) : "Styled(".concat(Rs(S), ")");
1208
+ }(e) : p, u = n.displayName && n.componentId ? "".concat(Pa(n.displayName), "-").concat(n.componentId) : n.componentId || m, x = o && t.attrs ? t.attrs.concat(r).filter(Boolean) : r, g = n.shouldForwardProp;
1209
1209
  if (o && t.shouldForwardProp) {
1210
- var g = t.shouldForwardProp;
1210
+ var b = t.shouldForwardProp;
1211
1211
  if (n.shouldForwardProp) {
1212
1212
  var f = n.shouldForwardProp;
1213
- b = function(q, B) {
1214
- return g(q, B) && f(q, B);
1213
+ g = function(S, B) {
1214
+ return b(S, B) && f(S, B);
1215
1215
  };
1216
- } else b = g;
1216
+ } else g = b;
1217
1217
  }
1218
1218
  var v = new $h(i, u, o ? t.componentStyle : void 0);
1219
- function C(q, B) {
1219
+ function C(S, B) {
1220
1220
  return function(I, T, h) {
1221
1221
  var D = I.attrs, A = I.componentStyle, F = I.defaultProps, w = I.foldedComponentIds, M = I.styledComponentId, z = I.target, k = ln.useContext(no), P = oc(), y = I.shouldForwardProp || P.shouldForwardProp;
1222
- ce.env.NODE_ENV !== "production" && Ca(M);
1223
- var S = Ah(T, k, F) || ki, H = function(G, _, De) {
1222
+ ae.env.NODE_ENV !== "production" && Ca(M);
1223
+ var q = Ah(T, k, F) || ki, H = function(G, _, De) {
1224
1224
  for (var Xe, an = Ve(Ve({}, _), { className: void 0, theme: De }), Kn = 0; Kn < G.length; Kn += 1) {
1225
1225
  var Le = ii(Xe = G[Kn]) ? Xe(an) : Xe;
1226
1226
  for (var Ue in Le) an[Ue] = Ue === "className" ? Jn(an[Ue], Le[Ue]) : Ue === "style" ? Ve(Ve({}, an[Ue]), Le[Ue]) : Le[Ue];
1227
1227
  }
1228
1228
  return _.className && (an.className = Jn(an.className, _.className)), an;
1229
- }(D, T, S), U = H.as || z, X = {};
1230
- for (var Z in H) H[Z] === void 0 || Z[0] === "$" || Z === "as" || Z === "theme" && H.theme === S || (Z === "forwardedAs" ? X.as = H.forwardedAs : y && !y(Z, U) || (X[Z] = H[Z], y || ce.env.NODE_ENV !== "development" || Bs(Z) || La.has(Z) || !_t.has(U) || (La.add(Z), console.warn('styled-components: it looks like an unknown prop "'.concat(Z, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1231
- var te = function(G, _) {
1229
+ }(D, T, q), O = H.as || z, K = {};
1230
+ for (var Z in H) H[Z] === void 0 || Z[0] === "$" || Z === "as" || Z === "theme" && H.theme === q || (Z === "forwardedAs" ? K.as = H.forwardedAs : y && !y(Z, O) || (K[Z] = H[Z], y || ae.env.NODE_ENV !== "development" || Bs(Z) || La.has(Z) || !_t.has(O) || (La.add(Z), console.warn('styled-components: it looks like an unknown prop "'.concat(Z, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1231
+ var ce = function(G, _) {
1232
1232
  var De = oc(), Xe = G.generateAndInjectStyles(_, De.styleSheet, De.stylis);
1233
- return ce.env.NODE_ENV !== "production" && Ca(Xe), Xe;
1233
+ return ae.env.NODE_ENV !== "production" && Ca(Xe), Xe;
1234
1234
  }(A, H);
1235
- ce.env.NODE_ENV !== "production" && I.warnTooManyClasses && I.warnTooManyClasses(te);
1236
- var re = Jn(w, M);
1237
- return te && (re += " " + te), H.className && (re += " " + H.className), X[Pt(U) && !_t.has(U) ? "class" : "className"] = re, X.ref = h, Km(U, X);
1238
- }(E, q, B);
1235
+ ae.env.NODE_ENV !== "production" && I.warnTooManyClasses && I.warnTooManyClasses(ce);
1236
+ var oe = Jn(w, M);
1237
+ return ce && (oe += " " + ce), H.className && (oe += " " + H.className), K[Pt(O) && !_t.has(O) ? "class" : "className"] = oe, K.ref = h, Km(O, K);
1238
+ }(E, S, B);
1239
1239
  }
1240
1240
  C.displayName = d;
1241
1241
  var E = ln.forwardRef(C);
1242
- return E.attrs = x, E.componentStyle = v, E.displayName = d, E.shouldForwardProp = b, E.foldedComponentIds = o ? Jn(t.foldedComponentIds, t.styledComponentId) : "", E.styledComponentId = u, E.target = o ? t.target : e, Object.defineProperty(E, "defaultProps", { get: function() {
1242
+ return E.attrs = x, E.componentStyle = v, E.displayName = d, E.shouldForwardProp = g, E.foldedComponentIds = o ? Jn(t.foldedComponentIds, t.styledComponentId) : "", E.styledComponentId = u, E.target = o ? t.target : e, Object.defineProperty(E, "defaultProps", { get: function() {
1243
1243
  return this._foldedDefaultProps;
1244
- }, set: function(q) {
1244
+ }, set: function(S) {
1245
1245
  this._foldedDefaultProps = o ? function(B) {
1246
1246
  for (var I = [], T = 1; T < arguments.length; T++) I[T - 1] = arguments[T];
1247
1247
  for (var h = 0, D = I; h < D.length; h++) nc(B, D[h], !0);
1248
1248
  return B;
1249
- }({}, t.defaultProps, q) : q;
1250
- } }), ce.env.NODE_ENV !== "production" && (fh(d, u), E.warnTooManyClasses = /* @__PURE__ */ function(q, B) {
1249
+ }({}, t.defaultProps, S) : S;
1250
+ } }), ae.env.NODE_ENV !== "production" && (fh(d, u), E.warnTooManyClasses = /* @__PURE__ */ function(S, B) {
1251
1251
  var I = {}, T = !1;
1252
1252
  return function(h) {
1253
1253
  if (!T && (I[h] = !0, Object.keys(I).length >= 200)) {
1254
1254
  var D = B ? ' with the id of "'.concat(B, '"') : "";
1255
- console.warn("Over ".concat(200, " classes were generated for component ").concat(q).concat(D, `.
1255
+ console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(D, `.
1256
1256
  `) + `Consider using the attrs method, together with a style object for frequently changed styles.
1257
1257
  Example:
1258
1258
  const Component = styled.div.attrs(props => ({
@@ -1301,15 +1301,15 @@ _t.forEach(function(e) {
1301
1301
  });
1302
1302
  function si(e) {
1303
1303
  for (var n = [], i = 1; i < arguments.length; i++) n[i - 1] = arguments[i];
1304
- ce.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
1304
+ ae.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
1305
1305
  var o = ec(we.apply(void 0, ei([e], n, !1))), t = Ls(o);
1306
1306
  return new tc(t, o);
1307
1307
  }
1308
- ce.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
1308
+ ae.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
1309
1309
  Perhaps you're looking to import 'styled-components/native'?
1310
1310
  Read more about this at https://www.styled-components.com/docs/basics#react-native`);
1311
1311
  var ko = "__sc-".concat(ni, "__");
1312
- ce.env.NODE_ENV !== "production" && ce.env.NODE_ENV !== "test" && typeof window < "u" && (window[ko] || (window[ko] = 0), window[ko] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
1312
+ ae.env.NODE_ENV !== "production" && ae.env.NODE_ENV !== "test" && typeof window < "u" && (window[ko] || (window[ko] = 0), window[ko] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
1313
1313
 
1314
1314
  See https://s-c.sh/2BAXzed for more info.`), window[ko] += 1);
1315
1315
  const Dn = (e) => {
@@ -1408,7 +1408,7 @@ const Dn = (e) => {
1408
1408
  src: url(${au}) format(woff2);
1409
1409
  }
1410
1410
  `, su = () => {
1411
- ae(() => {
1411
+ re(() => {
1412
1412
  const e = document.createElement("style");
1413
1413
  return e.textContent = ru, document.head.contains(e) || document.head.appendChild(e), () => {
1414
1414
  document.head.removeChild(e);
@@ -1426,14 +1426,14 @@ const Vc = Q(!1), $s = ({
1426
1426
  su();
1427
1427
  const [o, t] = se(), c = (r) => {
1428
1428
  r != null && r.shadowRoot && (o || t(r == null ? void 0 : r.shadowRoot));
1429
- }, a = W(() => ({
1429
+ }, a = U(() => ({
1430
1430
  ...Ro,
1431
1431
  ...n
1432
1432
  }), [n]);
1433
1433
  return i ? /* @__PURE__ */ l(Ta, { shouldForwardProp: Wa, children: /* @__PURE__ */ l(Va, { theme: a, children: e }) }) : /* @__PURE__ */ l(lu, { children: /* @__PURE__ */ l(Ym, { ref: c, children: o && /* @__PURE__ */ l(Ta, { shouldForwardProp: Wa, target: o, children: /* @__PURE__ */ l(Va, { theme: a, children: e }) }) }) });
1434
1434
  }, lu = ({ children: e }) => {
1435
1435
  const [n, i] = se(!1);
1436
- return ae(() => {
1436
+ return re(() => {
1437
1437
  i(!0);
1438
1438
  }, []), /* @__PURE__ */ l(fe, { children: n ? e : null });
1439
1439
  }, mu = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 };
@@ -1482,14 +1482,14 @@ function xu(e = () => {
1482
1482
  const c = {
1483
1483
  getItem: (s, m) => {
1484
1484
  var p, d;
1485
- const u = (b) => {
1486
- if (b = b || "", o !== b) {
1485
+ const u = (g) => {
1486
+ if (g = g || "", o !== g) {
1487
1487
  try {
1488
- t = JSON.parse(b, n == null ? void 0 : n.reviver);
1488
+ t = JSON.parse(g, n == null ? void 0 : n.reviver);
1489
1489
  } catch {
1490
1490
  return m;
1491
1491
  }
1492
- o = b;
1492
+ o = g;
1493
1493
  }
1494
1494
  return t;
1495
1495
  }, x = (d = (p = e()) == null ? void 0 : p.getItem(s)) != null ? d : null;
@@ -1559,12 +1559,12 @@ const Rc = we`
1559
1559
  ${({ padding: e }) => e && `padding: ${e}px`};
1560
1560
  ${({ borderRadius: e }) => e && `border-radius: ${e}px`};
1561
1561
  ${({ flexDirection: e }) => e && `flex-direction: ${e}`};
1562
- `, O = N.div`
1562
+ `, W = N.div`
1563
1563
  ${({ width: e }) => e && `width: ${e}px`};
1564
1564
  ${({ height: e }) => e && `height: ${e}px`};
1565
1565
  flex-direction: row;
1566
1566
  ${Rc};
1567
- `, pe = N(O)`
1567
+ `, pe = N(W)`
1568
1568
  flex-direction: column;
1569
1569
  `, Oc = N.div`
1570
1570
  ${({ width: e }) => e && `width: ${e}px`};
@@ -1880,19 +1880,19 @@ const io = {
1880
1880
  overflow: hidden;
1881
1881
  `};
1882
1882
  ${({ letterSpacing: e }) => e && `letter-spacing: ${e}`};
1883
- `, K = N.p`
1883
+ `, X = N.p`
1884
1884
  color: ${({ theme: e, color: n }) => n ?? e.primary.text.lowContrast};
1885
1885
  margin: 0;
1886
1886
  font-size: 13px;
1887
1887
  font-weight: 400;
1888
1888
  letter-spacing: 0.01em;
1889
1889
  ${rl}
1890
- `, mi = N(K).attrs({ as: "button" })`
1890
+ `, mi = N(X).attrs({ as: "button" })`
1891
1891
  line-height: 15px;
1892
1892
  ${mo}
1893
1893
  cursor: pointer;
1894
1894
  letter-spacing: 0.01em;
1895
- `, Te = N(K)`
1895
+ `, Te = N(X)`
1896
1896
  color: ${({ color: e, theme: n }) => e ?? n.primary.text.normal};
1897
1897
  font-size: 20px;
1898
1898
  font-weight: 400;
@@ -1923,7 +1923,7 @@ const io = {
1923
1923
  /* @__PURE__ */ l(a, { backgroundColor: i, color: o, height: 40, width: 40 }),
1924
1924
  typeof e == "string" ? /* @__PURE__ */ l(Te, { fontSize: 20, color: i, textAlign: "center", children: e }) : e,
1925
1925
  typeof n == "string" ? /* @__PURE__ */ l(Mu, { children: /* @__PURE__ */ l(
1926
- K,
1926
+ X,
1927
1927
  {
1928
1928
  color: i,
1929
1929
  textAlign: "center",
@@ -1987,7 +1987,7 @@ const io = {
1987
1987
  }) => {
1988
1988
  const d = de();
1989
1989
  o ?? (o = t ? d.secondary.background.normal : d.brandColor);
1990
- const u = t ? d.primary.text.ultraLowContrast : d.brandTextColor, x = io[n], b = io[i];
1990
+ const u = t ? d.primary.text.ultraLowContrast : d.brandTextColor, x = io[n], g = io[i];
1991
1991
  return c ? /* @__PURE__ */ l(
1992
1992
  Pu,
1993
1993
  {
@@ -2007,8 +2007,8 @@ const io = {
2007
2007
  disabled: t,
2008
2008
  onClick: r,
2009
2009
  children: [
2010
- i ? /* @__PURE__ */ j(O, { align: "center", gap: 10, children: [
2011
- /* @__PURE__ */ l(b, { backgroundColor: u, color: o }),
2010
+ i ? /* @__PURE__ */ j(W, { align: "center", gap: 10, children: [
2011
+ /* @__PURE__ */ l(g, { backgroundColor: u, color: o }),
2012
2012
  /* @__PURE__ */ l(rc, { color: u, fontSize: p, children: e })
2013
2013
  ] }) : /* @__PURE__ */ l(rc, { capitalize: !0, color: u, fontSize: p, children: e }),
2014
2014
  /* @__PURE__ */ l(Iu, { children: /* @__PURE__ */ l(x, { color: u }) })
@@ -2043,7 +2043,7 @@ const io = {
2043
2043
  /* @__PURE__ */ l(rc, { color: a.primary.text.ultraLowContrast, fontSize: c, children: e }),
2044
2044
  i && /* @__PURE__ */ j(qu, { align: "center", justify: "center", children: [
2045
2045
  t,
2046
- /* @__PURE__ */ j(K, { children: [
2046
+ /* @__PURE__ */ j(X, { children: [
2047
2047
  i,
2048
2048
  "."
2049
2049
  ] })
@@ -2081,7 +2081,7 @@ const io = {
2081
2081
  &:hover::after {
2082
2082
  background-color: rgba(255, 255, 255, 0.15);
2083
2083
  }
2084
- `, ml = N(O).attrs({
2084
+ `, ml = N(W).attrs({
2085
2085
  as: "button"
2086
2086
  })`
2087
2087
  position: relative;
@@ -2147,13 +2147,13 @@ const io = {
2147
2147
  height: 65px;
2148
2148
  padding: 15px;
2149
2149
  }
2150
- `, qu = N(O)`
2150
+ `, qu = N(W)`
2151
2151
  background: ${(e) => e.theme.secondary.background.normal};
2152
2152
  padding: 16px;
2153
2153
  border-radius: 10px;
2154
2154
  height: 40px;
2155
2155
  gap: 5px;
2156
- `, ju = N(O)`
2156
+ `, ju = N(W)`
2157
2157
  position: absolute;
2158
2158
  height: 66px;
2159
2159
  left: 2px;
@@ -3477,13 +3477,13 @@ class Jd extends Yd {
3477
3477
  for (let d = 0; d < 16; d++, i += 4)
3478
3478
  zn[d] = n.getUint32(i, !1);
3479
3479
  for (let d = 16; d < 64; d++) {
3480
- const u = zn[d - 15], x = zn[d - 2], b = pn(u, 7) ^ pn(u, 18) ^ u >>> 3, g = pn(x, 17) ^ pn(x, 19) ^ x >>> 10;
3481
- zn[d] = g + zn[d - 7] + b + zn[d - 16] | 0;
3480
+ const u = zn[d - 15], x = zn[d - 2], g = pn(u, 7) ^ pn(u, 18) ^ u >>> 3, b = pn(x, 17) ^ pn(x, 19) ^ x >>> 10;
3481
+ zn[d] = b + zn[d - 7] + g + zn[d - 16] | 0;
3482
3482
  }
3483
3483
  let { A: o, B: t, C: c, D: a, E: r, F: s, G: m, H: p } = this;
3484
3484
  for (let d = 0; d < 64; d++) {
3485
- const u = pn(r, 6) ^ pn(r, 11) ^ pn(r, 25), x = p + u + Kd(r, s, m) + Zd[d] + zn[d] | 0, g = (pn(o, 2) ^ pn(o, 13) ^ pn(o, 22)) + Xd(o, t, c) | 0;
3486
- p = m, m = s, s = r, r = a + x | 0, a = c, c = t, t = o, o = x + g | 0;
3485
+ const u = pn(r, 6) ^ pn(r, 11) ^ pn(r, 25), x = p + u + Kd(r, s, m) + Zd[d] + zn[d] | 0, b = (pn(o, 2) ^ pn(o, 13) ^ pn(o, 22)) + Xd(o, t, c) | 0;
3486
+ p = m, m = s, s = r, r = a + x | 0, a = c, c = t, t = o, o = x + b | 0;
3487
3487
  }
3488
3488
  o = o + this.A | 0, t = t + this.B | 0, c = c + this.C | 0, a = a + this.D | 0, r = r + this.E | 0, s = s + this.F | 0, m = m + this.G | 0, p = p + this.H | 0, this.set(o, t, c, a, r, s, m, p);
3489
3489
  }
@@ -3599,9 +3599,9 @@ function a0(e) {
3599
3599
  class r0 extends ie {
3600
3600
  constructor(n, { account: i, docsPath: o, chain: t, data: c, gas: a, gasPrice: r, maxFeePerGas: s, maxPriorityFeePerGas: m, nonce: p, to: d, value: u, stateOverride: x }) {
3601
3601
  var f;
3602
- const b = i ? lt(i) : void 0;
3603
- let g = jl({
3604
- from: b == null ? void 0 : b.address,
3602
+ const g = i ? lt(i) : void 0;
3603
+ let b = jl({
3604
+ from: g == null ? void 0 : g.address,
3605
3605
  to: d,
3606
3606
  value: typeof u < "u" && `${zd(u)} ${((f = t == null ? void 0 : t.nativeCurrency) == null ? void 0 : f.symbol) || "ETH"}`,
3607
3607
  data: c,
@@ -3611,14 +3611,14 @@ class r0 extends ie {
3611
3611
  maxPriorityFeePerGas: typeof m < "u" && `${$n(m)} gwei`,
3612
3612
  nonce: p
3613
3613
  });
3614
- x && (g += `
3614
+ x && (b += `
3615
3615
  ${Ud(x)}`), super(n.shortMessage, {
3616
3616
  cause: n,
3617
3617
  docsPath: o,
3618
3618
  metaMessages: [
3619
3619
  ...n.metaMessages ? [...n.metaMessages, " "] : [],
3620
3620
  "Raw Call Arguments:",
3621
- g
3621
+ b
3622
3622
  ].filter(Boolean),
3623
3623
  name: "CallExecutionError"
3624
3624
  }), Object.defineProperty(this, "cause", {
@@ -3802,18 +3802,18 @@ function A0(e, n) {
3802
3802
  d0(e);
3803
3803
  let u = e.blobVersionedHashes, x = e.sidecars;
3804
3804
  if (e.blobs && (typeof u > "u" || typeof x > "u")) {
3805
- const E = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((I) => Mn(I)), q = e.kzg, B = Vl({
3805
+ const E = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((I) => Mn(I)), S = e.kzg, B = Vl({
3806
3806
  blobs: E,
3807
- kzg: q
3807
+ kzg: S
3808
3808
  });
3809
3809
  if (typeof u > "u" && (u = e0({
3810
3810
  commitments: B
3811
3811
  })), typeof x > "u") {
3812
- const I = Ll({ blobs: E, commitments: B, kzg: q });
3812
+ const I = Ll({ blobs: E, commitments: B, kzg: S });
3813
3813
  x = c0({ blobs: E, commitments: B, proofs: I });
3814
3814
  }
3815
3815
  }
3816
- const b = Do(p), g = [
3816
+ const g = Do(p), b = [
3817
3817
  $(i),
3818
3818
  t ? $(t) : "0x",
3819
3819
  m ? $(m) : "0x",
@@ -3822,20 +3822,20 @@ function A0(e, n) {
3822
3822
  c ?? "0x",
3823
3823
  a ? $(a) : "0x",
3824
3824
  d ?? "0x",
3825
- b,
3825
+ g,
3826
3826
  r ? $(r) : "0x",
3827
3827
  u ?? [],
3828
3828
  ...Ii(e, n)
3829
3829
  ], f = [], v = [], C = [];
3830
3830
  if (x)
3831
3831
  for (let E = 0; E < x.length; E++) {
3832
- const { blob: q, commitment: B, proof: I } = x[E];
3833
- f.push(q), v.push(B), C.push(I);
3832
+ const { blob: S, commitment: B, proof: I } = x[E];
3833
+ f.push(S), v.push(B), C.push(I);
3834
3834
  }
3835
3835
  return ji([
3836
3836
  "0x03",
3837
3837
  // If sidecars are enabled, envelope turns into a "wrapper":
3838
- Tn(x ? [g, f, v, C] : g)
3838
+ Tn(x ? [b, f, v, C] : b)
3839
3839
  ]);
3840
3840
  }
3841
3841
  function C0(e, n) {
@@ -4841,7 +4841,7 @@ async function _0(e, n) {
4841
4841
  throw new wd();
4842
4842
  const o = lt(i);
4843
4843
  try {
4844
- const { accessList: r, blockNumber: s, blockTag: m, data: p, gas: d, gasPrice: u, maxFeePerGas: x, maxPriorityFeePerGas: b, nonce: g, to: f, value: v, ...C } = n, q = (s ? Ke(s) : void 0) || m;
4844
+ const { accessList: r, blockNumber: s, blockTag: m, data: p, gas: d, gasPrice: u, maxFeePerGas: x, maxPriorityFeePerGas: g, nonce: b, to: f, value: v, ...C } = n, S = (s ? Ke(s) : void 0) || m;
4845
4845
  Rd(n);
4846
4846
  const B = (a = (c = (t = e.chain) == null ? void 0 : t.formatters) == null ? void 0 : c.transactionRequest) == null ? void 0 : a.format, T = (B || Il)({
4847
4847
  // Pick out extra data that might exist on the chain's transaction request type.
@@ -4852,13 +4852,13 @@ async function _0(e, n) {
4852
4852
  gas: d,
4853
4853
  gasPrice: u,
4854
4854
  maxFeePerGas: x,
4855
- maxPriorityFeePerGas: b,
4856
- nonce: g,
4855
+ maxPriorityFeePerGas: g,
4856
+ nonce: b,
4857
4857
  to: f,
4858
4858
  value: v
4859
4859
  }), { baseFeePerGas: h, gasLimit: D, priorityFeePerGas: A } = await e.request({
4860
4860
  method: "linea_estimateGas",
4861
- params: q ? [T, q] : [T]
4861
+ params: S ? [T, S] : [T]
4862
4862
  });
4863
4863
  return {
4864
4864
  baseFeePerGas: BigInt(h),
@@ -5264,7 +5264,7 @@ function _c(e) {
5264
5264
  u && (r || (r = this.onConnect.bind(this), u.on("connect", r)), m || (m = this.onSessionDelete.bind(this), u.on("session_delete", m)));
5265
5265
  },
5266
5266
  async connect({ chainId: u, ...x } = {}) {
5267
- var b, g;
5267
+ var g, b;
5268
5268
  try {
5269
5269
  const f = await this.getProvider();
5270
5270
  if (!f)
@@ -5272,8 +5272,8 @@ function _c(e) {
5272
5272
  s || (s = this.onDisplayUri, f.on("display_uri", s));
5273
5273
  let v = u;
5274
5274
  if (!v) {
5275
- const B = await ((b = d.storage) == null ? void 0 : b.getItem("state")) ?? {};
5276
- d.chains.some((T) => T.id === B.chainId) ? v = B.chainId : v = (g = d.chains[0]) == null ? void 0 : g.id;
5275
+ const B = await ((g = d.storage) == null ? void 0 : g.getItem("state")) ?? {};
5276
+ d.chains.some((T) => T.id === B.chainId) ? v = B.chainId : v = (b = d.chains[0]) == null ? void 0 : b.id;
5277
5277
  }
5278
5278
  if (!v)
5279
5279
  throw new Error("No chains found on connector.");
@@ -5285,8 +5285,8 @@ function _c(e) {
5285
5285
  ..."pairingTopic" in x ? { pairingTopic: x.pairingTopic } : {}
5286
5286
  }), this.setRequestedChainsIds(d.chains.map((I) => I.id));
5287
5287
  }
5288
- const E = (await f.enable()).map((B) => vt(B)), q = await this.getChainId();
5289
- return s && (f.removeListener("display_uri", s), s = void 0), r && (f.removeListener("connect", r), r = void 0), c || (c = this.onAccountsChanged.bind(this), f.on("accountsChanged", c)), a || (a = this.onChainChanged.bind(this), f.on("chainChanged", a)), p || (p = this.onDisconnect.bind(this), f.on("disconnect", p)), m || (m = this.onSessionDelete.bind(this), f.on("session_delete", m)), { accounts: E, chainId: q };
5288
+ const E = (await f.enable()).map((B) => vt(B)), S = await this.getChainId();
5289
+ return s && (f.removeListener("display_uri", s), s = void 0), r && (f.removeListener("connect", r), r = void 0), c || (c = this.onAccountsChanged.bind(this), f.on("accountsChanged", c)), a || (a = this.onChainChanged.bind(this), f.on("chainChanged", a)), p || (p = this.onDisconnect.bind(this), f.on("disconnect", p)), m || (m = this.onSessionDelete.bind(this), f.on("session_delete", m)), { accounts: E, chainId: S };
5290
5290
  } catch (f) {
5291
5291
  throw /(user rejected|connection request reset)/i.test(f == null ? void 0 : f.message) ? new Et(f) : f;
5292
5292
  }
@@ -5306,16 +5306,16 @@ function _c(e) {
5306
5306
  return (await this.getProvider()).accounts.map((x) => vt(x));
5307
5307
  },
5308
5308
  async getProvider({ chainId: u } = {}) {
5309
- var b;
5309
+ var g;
5310
5310
  async function x() {
5311
- const g = d.chains.map((v) => v.id);
5312
- if (!g.length)
5311
+ const b = d.chains.map((v) => v.id);
5312
+ if (!b.length)
5313
5313
  return;
5314
- const { EthereumProvider: f } = await import("./index.es-Cqs_24AS.js");
5314
+ const { EthereumProvider: f } = await import("./index.es-D7uaRPl9.js");
5315
5315
  return await f.init({
5316
5316
  ...e,
5317
5317
  disableProviderPing: !0,
5318
- optionalChains: g,
5318
+ optionalChains: b,
5319
5319
  projectId: e.projectId,
5320
5320
  rpcMap: Object.fromEntries(d.chains.map((v) => {
5321
5321
  const [C] = q0({
@@ -5327,7 +5327,7 @@ function _c(e) {
5327
5327
  showQrModal: e.showQrModal ?? !0
5328
5328
  });
5329
5329
  }
5330
- return i || (o || (o = x()), i = await o, i == null || i.events.setMaxListeners(Number.POSITIVE_INFINITY)), u && await ((b = this.switchChain) == null ? void 0 : b.call(this, { chainId: u })), i;
5330
+ return i || (o || (o = x()), i = await o, i == null || i.events.setMaxListeners(Number.POSITIVE_INFINITY)), u && await ((g = this.switchChain) == null ? void 0 : g.call(this, { chainId: u })), i;
5331
5331
  },
5332
5332
  async getChainId() {
5333
5333
  return (await this.getProvider()).chainId;
@@ -5346,50 +5346,50 @@ function _c(e) {
5346
5346
  },
5347
5347
  async switchChain({ addEthereumChainParameter: u, chainId: x }) {
5348
5348
  var f, v, C;
5349
- const b = await this.getProvider();
5350
- if (!b)
5351
- throw new ir();
5352
- const g = d.chains.find((E) => E.id === x);
5349
+ const g = await this.getProvider();
5353
5350
  if (!g)
5351
+ throw new ir();
5352
+ const b = d.chains.find((E) => E.id === x);
5353
+ if (!b)
5354
5354
  throw new rp(new E0());
5355
5355
  try {
5356
5356
  await Promise.all([
5357
- new Promise((q) => {
5357
+ new Promise((S) => {
5358
5358
  const B = ({ chainId: I }) => {
5359
- I === x && (d.emitter.off("change", B), q());
5359
+ I === x && (d.emitter.off("change", B), S());
5360
5360
  };
5361
5361
  d.emitter.on("change", B);
5362
5362
  }),
5363
- b.request({
5363
+ g.request({
5364
5364
  method: "wallet_switchEthereumChain",
5365
5365
  params: [{ chainId: ya(x) }]
5366
5366
  })
5367
5367
  ]);
5368
5368
  const E = await this.getRequestedChainsIds();
5369
- return this.setRequestedChainsIds([...E, x]), g;
5369
+ return this.setRequestedChainsIds([...E, x]), b;
5370
5370
  } catch (E) {
5371
- const q = E;
5372
- if (/(user rejected)/i.test(q.message))
5373
- throw new Et(q);
5371
+ const S = E;
5372
+ if (/(user rejected)/i.test(S.message))
5373
+ throw new Et(S);
5374
5374
  try {
5375
5375
  let B;
5376
- u != null && u.blockExplorerUrls ? B = u.blockExplorerUrls : B = (f = g.blockExplorers) != null && f.default.url ? [(v = g.blockExplorers) == null ? void 0 : v.default.url] : [];
5376
+ u != null && u.blockExplorerUrls ? B = u.blockExplorerUrls : B = (f = b.blockExplorers) != null && f.default.url ? [(v = b.blockExplorers) == null ? void 0 : v.default.url] : [];
5377
5377
  let I;
5378
- (C = u == null ? void 0 : u.rpcUrls) != null && C.length ? I = u.rpcUrls : I = [...g.rpcUrls.default.http];
5378
+ (C = u == null ? void 0 : u.rpcUrls) != null && C.length ? I = u.rpcUrls : I = [...b.rpcUrls.default.http];
5379
5379
  const T = {
5380
5380
  blockExplorerUrls: B,
5381
5381
  chainId: ya(x),
5382
- chainName: (u == null ? void 0 : u.chainName) ?? g.name,
5382
+ chainName: (u == null ? void 0 : u.chainName) ?? b.name,
5383
5383
  iconUrls: u == null ? void 0 : u.iconUrls,
5384
- nativeCurrency: (u == null ? void 0 : u.nativeCurrency) ?? g.nativeCurrency,
5384
+ nativeCurrency: (u == null ? void 0 : u.nativeCurrency) ?? b.nativeCurrency,
5385
5385
  rpcUrls: I
5386
5386
  };
5387
- await b.request({
5387
+ await g.request({
5388
5388
  method: "wallet_addEthereumChain",
5389
5389
  params: [T]
5390
5390
  });
5391
5391
  const h = await this.getRequestedChainsIds();
5392
- return this.setRequestedChainsIds([...h, x]), g;
5392
+ return this.setRequestedChainsIds([...h, x]), b;
5393
5393
  } catch (B) {
5394
5394
  throw new Et(B);
5395
5395
  }
@@ -5405,8 +5405,8 @@ function _c(e) {
5405
5405
  d.emitter.emit("change", { chainId: x });
5406
5406
  },
5407
5407
  async onConnect(u) {
5408
- const x = Number(u.chainId), b = await this.getAccounts();
5409
- d.emitter.emit("connect", { accounts: b, chainId: x });
5408
+ const x = Number(u.chainId), g = await this.getAccounts();
5409
+ d.emitter.emit("connect", { accounts: g, chainId: x });
5410
5410
  },
5411
5411
  async onDisconnect(u) {
5412
5412
  this.setRequestedChainsIds([]), d.emitter.emit("disconnect");
@@ -5420,8 +5420,8 @@ function _c(e) {
5420
5420
  this.onDisconnect();
5421
5421
  },
5422
5422
  getNamespaceChainsIds() {
5423
- var x, b, g;
5424
- return i ? ((g = (b = (x = i.session) == null ? void 0 : x.namespaces[t]) == null ? void 0 : b.accounts) == null ? void 0 : g.map((f) => Number.parseInt(f.split(":")[1] || ""))) ?? [] : [];
5423
+ var x, g, b;
5424
+ return i ? ((b = (g = (x = i.session) == null ? void 0 : x.namespaces[t]) == null ? void 0 : g.accounts) == null ? void 0 : b.map((f) => Number.parseInt(f.split(":")[1] || ""))) ?? [] : [];
5425
5425
  },
5426
5426
  async getRequestedChainsIds() {
5427
5427
  var u;
@@ -5441,11 +5441,11 @@ function _c(e) {
5441
5441
  async isChainsStale() {
5442
5442
  if (!n)
5443
5443
  return !1;
5444
- const u = d.chains.map((g) => g.id), x = this.getNamespaceChainsIds();
5445
- if (x.length && !x.some((g) => u.includes(g)))
5444
+ const u = d.chains.map((b) => b.id), x = this.getNamespaceChainsIds();
5445
+ if (x.length && !x.some((b) => u.includes(b)))
5446
5446
  return !1;
5447
- const b = await this.getRequestedChainsIds();
5448
- return !u.every((g) => b.includes(g));
5447
+ const g = await this.getRequestedChainsIds();
5448
+ return !u.every((b) => g.includes(b));
5449
5449
  },
5450
5450
  async setRequestedChainsIds(u) {
5451
5451
  var x;
@@ -5665,7 +5665,7 @@ const jr = [0.1, 0.5, 1, 3], iD = [
5665
5665
  ], to = 8;
5666
5666
  var oD = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, It = Math.ceil, _e = Math.floor, Ge = "[BigNumber Error] ", Ir = Ge + "Number primitive has more than 15 significant digits: ", rn = 1e14, ee = 14, Ht = 9007199254740991, Tt = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Sn = 1e7, Ie = 1e9;
5667
5667
  function em(e) {
5668
- var n, i, o, t = C.prototype = { constructor: C, toString: null, valueOf: null }, c = new C(1), a = 20, r = 4, s = -7, m = 21, p = -1e7, d = 1e7, u = !1, x = 1, b = 0, g = {
5668
+ var n, i, o, t = C.prototype = { constructor: C, toString: null, valueOf: null }, c = new C(1), a = 20, r = 4, s = -7, m = 21, p = -1e7, d = 1e7, u = !1, x = 1, g = 0, b = {
5669
5669
  prefix: "",
5670
5670
  groupSize: 3,
5671
5671
  secondaryGroupSize: 0,
@@ -5677,34 +5677,34 @@ function em(e) {
5677
5677
  suffix: ""
5678
5678
  }, f = "0123456789abcdefghijklmnopqrstuvwxyz", v = !0;
5679
5679
  function C(h, D) {
5680
- var A, F, w, M, z, k, P, y, S = this;
5681
- if (!(S instanceof C)) return new C(h, D);
5680
+ var A, F, w, M, z, k, P, y, q = this;
5681
+ if (!(q instanceof C)) return new C(h, D);
5682
5682
  if (D == null) {
5683
5683
  if (h && h._isBigNumber === !0) {
5684
- S.s = h.s, !h.c || h.e > d ? S.c = S.e = null : h.e < p ? S.c = [S.e = 0] : (S.e = h.e, S.c = h.c.slice());
5684
+ q.s = h.s, !h.c || h.e > d ? q.c = q.e = null : h.e < p ? q.c = [q.e = 0] : (q.e = h.e, q.c = h.c.slice());
5685
5685
  return;
5686
5686
  }
5687
5687
  if ((k = typeof h == "number") && h * 0 == 0) {
5688
- if (S.s = 1 / h < 0 ? (h = -h, -1) : 1, h === ~~h) {
5688
+ if (q.s = 1 / h < 0 ? (h = -h, -1) : 1, h === ~~h) {
5689
5689
  for (M = 0, z = h; z >= 10; z /= 10, M++) ;
5690
- M > d ? S.c = S.e = null : (S.e = M, S.c = [h]);
5690
+ M > d ? q.c = q.e = null : (q.e = M, q.c = [h]);
5691
5691
  return;
5692
5692
  }
5693
5693
  y = String(h);
5694
5694
  } else {
5695
- if (!oD.test(y = String(h))) return o(S, y, k);
5696
- S.s = y.charCodeAt(0) == 45 ? (y = y.slice(1), -1) : 1;
5695
+ if (!oD.test(y = String(h))) return o(q, y, k);
5696
+ q.s = y.charCodeAt(0) == 45 ? (y = y.slice(1), -1) : 1;
5697
5697
  }
5698
5698
  (M = y.indexOf(".")) > -1 && (y = y.replace(".", "")), (z = y.search(/e/i)) > 0 ? (M < 0 && (M = z), M += +y.slice(z + 1), y = y.substring(0, z)) : M < 0 && (M = y.length);
5699
5699
  } else {
5700
5700
  if (Me(D, 2, f.length, "Base"), D == 10 && v)
5701
- return S = new C(h), I(S, a + S.e + 1, r);
5701
+ return q = new C(h), I(q, a + q.e + 1, r);
5702
5702
  if (y = String(h), k = typeof h == "number") {
5703
- if (h * 0 != 0) return o(S, y, k, D);
5704
- if (S.s = 1 / h < 0 ? (y = y.slice(1), -1) : 1, C.DEBUG && y.replace(/^0\.0*|\./, "").length > 15)
5703
+ if (h * 0 != 0) return o(q, y, k, D);
5704
+ if (q.s = 1 / h < 0 ? (y = y.slice(1), -1) : 1, C.DEBUG && y.replace(/^0\.0*|\./, "").length > 15)
5705
5705
  throw Error(Ir + h);
5706
5706
  } else
5707
- S.s = y.charCodeAt(0) === 45 ? (y = y.slice(1), -1) : 1;
5707
+ q.s = y.charCodeAt(0) === 45 ? (y = y.slice(1), -1) : 1;
5708
5708
  for (A = f.slice(0, D), M = z = 0, P = y.length; z < P; z++)
5709
5709
  if (A.indexOf(F = y.charAt(z)) < 0) {
5710
5710
  if (F == ".") {
@@ -5716,31 +5716,31 @@ function em(e) {
5716
5716
  w = !0, z = -1, M = 0;
5717
5717
  continue;
5718
5718
  }
5719
- return o(S, String(h), k, D);
5719
+ return o(q, String(h), k, D);
5720
5720
  }
5721
- k = !1, y = i(y, D, 10, S.s), (M = y.indexOf(".")) > -1 ? y = y.replace(".", "") : M = y.length;
5721
+ k = !1, y = i(y, D, 10, q.s), (M = y.indexOf(".")) > -1 ? y = y.replace(".", "") : M = y.length;
5722
5722
  }
5723
5723
  for (z = 0; y.charCodeAt(z) === 48; z++) ;
5724
5724
  for (P = y.length; y.charCodeAt(--P) === 48; ) ;
5725
5725
  if (y = y.slice(z, ++P)) {
5726
5726
  if (P -= z, k && C.DEBUG && P > 15 && (h > Ht || h !== _e(h)))
5727
- throw Error(Ir + S.s * h);
5727
+ throw Error(Ir + q.s * h);
5728
5728
  if ((M = M - z - 1) > d)
5729
- S.c = S.e = null;
5729
+ q.c = q.e = null;
5730
5730
  else if (M < p)
5731
- S.c = [S.e = 0];
5731
+ q.c = [q.e = 0];
5732
5732
  else {
5733
- if (S.e = M, S.c = [], z = (M + 1) % ee, M < 0 && (z += ee), z < P) {
5734
- for (z && S.c.push(+y.slice(0, z)), P -= ee; z < P; )
5735
- S.c.push(+y.slice(z, z += ee));
5733
+ if (q.e = M, q.c = [], z = (M + 1) % ee, M < 0 && (z += ee), z < P) {
5734
+ for (z && q.c.push(+y.slice(0, z)), P -= ee; z < P; )
5735
+ q.c.push(+y.slice(z, z += ee));
5736
5736
  z = ee - (y = y.slice(z)).length;
5737
5737
  } else
5738
5738
  z -= P;
5739
5739
  for (; z--; y += "0") ;
5740
- S.c.push(+y);
5740
+ q.c.push(+y);
5741
5741
  }
5742
5742
  } else
5743
- S.c = [S.e = 0];
5743
+ q.c = [q.e = 0];
5744
5744
  }
5745
5745
  C.clone = em, C.ROUND_UP = 0, C.ROUND_DOWN = 1, C.ROUND_CEIL = 2, C.ROUND_FLOOR = 3, C.ROUND_HALF_UP = 4, C.ROUND_HALF_DOWN = 5, C.ROUND_HALF_EVEN = 6, C.ROUND_HALF_CEIL = 7, C.ROUND_HALF_FLOOR = 8, C.EUCLID = 9, C.config = C.set = function(h) {
5746
5746
  var D, A;
@@ -5764,8 +5764,8 @@ function em(e) {
5764
5764
  u = A;
5765
5765
  else
5766
5766
  throw Error(Ge + D + " not true or false: " + A);
5767
- if (h.hasOwnProperty(D = "MODULO_MODE") && (A = h[D], Me(A, 0, 9, D), x = A), h.hasOwnProperty(D = "POW_PRECISION") && (A = h[D], Me(A, 0, Ie, D), b = A), h.hasOwnProperty(D = "FORMAT"))
5768
- if (A = h[D], typeof A == "object") g = A;
5767
+ if (h.hasOwnProperty(D = "MODULO_MODE") && (A = h[D], Me(A, 0, 9, D), x = A), h.hasOwnProperty(D = "POW_PRECISION") && (A = h[D], Me(A, 0, Ie, D), g = A), h.hasOwnProperty(D = "FORMAT"))
5768
+ if (A = h[D], typeof A == "object") b = A;
5769
5769
  else throw Error(Ge + D + " not an object: " + A);
5770
5770
  if (h.hasOwnProperty(D = "ALPHABET"))
5771
5771
  if (A = h[D], typeof A == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(A))
@@ -5781,8 +5781,8 @@ function em(e) {
5781
5781
  RANGE: [p, d],
5782
5782
  CRYPTO: u,
5783
5783
  MODULO_MODE: x,
5784
- POW_PRECISION: b,
5785
- FORMAT: g,
5784
+ POW_PRECISION: g,
5785
+ FORMAT: b,
5786
5786
  ALPHABET: f
5787
5787
  };
5788
5788
  }, C.isBigNumber = function(h) {
@@ -5805,9 +5805,9 @@ function em(e) {
5805
5805
  return !0;
5806
5806
  throw Error(Ge + "Invalid BigNumber: " + h);
5807
5807
  }, C.maximum = C.max = function() {
5808
- return q(arguments, -1);
5808
+ return S(arguments, -1);
5809
5809
  }, C.minimum = C.min = function() {
5810
- return q(arguments, 1);
5810
+ return S(arguments, 1);
5811
5811
  }, C.random = function() {
5812
5812
  var h = 9007199254740992, D = Math.random() * h & 2097151 ? function() {
5813
5813
  return _e(Math.random() * h);
@@ -5815,7 +5815,7 @@ function em(e) {
5815
5815
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
5816
5816
  };
5817
5817
  return function(A) {
5818
- var F, w, M, z, k, P = 0, y = [], S = new C(c);
5818
+ var F, w, M, z, k, P = 0, y = [], q = new C(c);
5819
5819
  if (A == null ? A = a : Me(A, 0, Ie), z = It(A / ee), u)
5820
5820
  if (crypto.getRandomValues) {
5821
5821
  for (F = crypto.getRandomValues(new Uint32Array(z *= 2)); P < z; )
@@ -5838,7 +5838,7 @@ function em(e) {
5838
5838
  for (P = 1, k = y[0]; k >= 10; k /= 10, P++) ;
5839
5839
  P < ee && (M -= ee - P);
5840
5840
  }
5841
- return S.e = M, S.c = y, S;
5841
+ return q.e = M, q.c = y, q;
5842
5842
  };
5843
5843
  }(), C.sum = function() {
5844
5844
  for (var h = 1, D = arguments, A = new C(D[0]); h < D.length; ) A = A.plus(D[h++]);
@@ -5846,7 +5846,7 @@ function em(e) {
5846
5846
  }, i = /* @__PURE__ */ function() {
5847
5847
  var h = "0123456789";
5848
5848
  function D(A, F, w, M) {
5849
- for (var z, k = [0], P, y = 0, S = A.length; y < S; ) {
5849
+ for (var z, k = [0], P, y = 0, q = A.length; y < q; ) {
5850
5850
  for (P = k.length; P--; k[P] *= F) ;
5851
5851
  for (k[0] += M.indexOf(A.charAt(y++)), z = 0; z < k.length; z++)
5852
5852
  k[z] > w - 1 && (k[z + 1] == null && (k[z + 1] = 0), k[z + 1] += k[z] / w | 0, k[z] %= w);
@@ -5854,32 +5854,32 @@ function em(e) {
5854
5854
  return k.reverse();
5855
5855
  }
5856
5856
  return function(A, F, w, M, z) {
5857
- var k, P, y, S, H, U, X, Z, te = A.indexOf("."), re = a, G = r;
5858
- for (te >= 0 && (S = b, b = 0, A = A.replace(".", ""), Z = new C(F), U = Z.pow(A.length - te), b = S, Z.c = D(
5859
- Cn(Qe(U.c), U.e, "0"),
5857
+ var k, P, y, q, H, O, K, Z, ce = A.indexOf("."), oe = a, G = r;
5858
+ for (ce >= 0 && (q = g, g = 0, A = A.replace(".", ""), Z = new C(F), O = Z.pow(A.length - ce), g = q, Z.c = D(
5859
+ Cn(Qe(O.c), O.e, "0"),
5860
5860
  10,
5861
5861
  w,
5862
5862
  h
5863
- ), Z.e = Z.c.length), X = D(A, F, w, z ? (k = f, h) : (k = h, f)), y = S = X.length; X[--S] == 0; X.pop()) ;
5864
- if (!X[0]) return k.charAt(0);
5865
- if (te < 0 ? --y : (U.c = X, U.e = y, U.s = M, U = n(U, Z, re, G, w), X = U.c, H = U.r, y = U.e), P = y + re + 1, te = X[P], S = w / 2, H = H || P < 0 || X[P + 1] != null, H = G < 4 ? (te != null || H) && (G == 0 || G == (U.s < 0 ? 3 : 2)) : te > S || te == S && (G == 4 || H || G == 6 && X[P - 1] & 1 || G == (U.s < 0 ? 8 : 7)), P < 1 || !X[0])
5866
- A = H ? Cn(k.charAt(1), -re, k.charAt(0)) : k.charAt(0);
5863
+ ), Z.e = Z.c.length), K = D(A, F, w, z ? (k = f, h) : (k = h, f)), y = q = K.length; K[--q] == 0; K.pop()) ;
5864
+ if (!K[0]) return k.charAt(0);
5865
+ if (ce < 0 ? --y : (O.c = K, O.e = y, O.s = M, O = n(O, Z, oe, G, w), K = O.c, H = O.r, y = O.e), P = y + oe + 1, ce = K[P], q = w / 2, H = H || P < 0 || K[P + 1] != null, H = G < 4 ? (ce != null || H) && (G == 0 || G == (O.s < 0 ? 3 : 2)) : ce > q || ce == q && (G == 4 || H || G == 6 && K[P - 1] & 1 || G == (O.s < 0 ? 8 : 7)), P < 1 || !K[0])
5866
+ A = H ? Cn(k.charAt(1), -oe, k.charAt(0)) : k.charAt(0);
5867
5867
  else {
5868
- if (X.length = P, H)
5869
- for (--w; ++X[--P] > w; )
5870
- X[P] = 0, P || (++y, X = [1].concat(X));
5871
- for (S = X.length; !X[--S]; ) ;
5872
- for (te = 0, A = ""; te <= S; A += k.charAt(X[te++])) ;
5868
+ if (K.length = P, H)
5869
+ for (--w; ++K[--P] > w; )
5870
+ K[P] = 0, P || (++y, K = [1].concat(K));
5871
+ for (q = K.length; !K[--q]; ) ;
5872
+ for (ce = 0, A = ""; ce <= q; A += k.charAt(K[ce++])) ;
5873
5873
  A = Cn(A, y, k.charAt(0));
5874
5874
  }
5875
5875
  return A;
5876
5876
  };
5877
5877
  }(), n = /* @__PURE__ */ function() {
5878
5878
  function h(F, w, M) {
5879
- var z, k, P, y, S = 0, H = F.length, U = w % Sn, X = w / Sn | 0;
5879
+ var z, k, P, y, q = 0, H = F.length, O = w % Sn, K = w / Sn | 0;
5880
5880
  for (F = F.slice(); H--; )
5881
- P = F[H] % Sn, y = F[H] / Sn | 0, z = X * P + y * U, k = U * P + z % Sn * Sn + S, S = (k / M | 0) + (z / Sn | 0) + X * y, F[H] = k % M;
5882
- return S && (F = [S].concat(F)), F;
5881
+ P = F[H] % Sn, y = F[H] / Sn | 0, z = K * P + y * O, k = O * P + z % Sn * Sn + q, q = (k / M | 0) + (z / Sn | 0) + K * y, F[H] = k % M;
5882
+ return q && (F = [q].concat(F)), F;
5883
5883
  }
5884
5884
  function D(F, w, M, z) {
5885
5885
  var k, P;
@@ -5899,7 +5899,7 @@ function em(e) {
5899
5899
  for (; !F[0] && F.length > 1; F.splice(0, 1)) ;
5900
5900
  }
5901
5901
  return function(F, w, M, z, k) {
5902
- var P, y, S, H, U, X, Z, te, re, G, _, De, Xe, an, Kn, Le, Ue, Je = F.s == w.s ? 1 : -1, Re = F.c, Pe = w.c;
5902
+ var P, y, q, H, O, K, Z, ce, oe, G, _, De, Xe, an, Kn, Le, Ue, Je = F.s == w.s ? 1 : -1, Re = F.c, Pe = w.c;
5903
5903
  if (!Re || !Re[0] || !Pe || !Pe[0])
5904
5904
  return new C(
5905
5905
  // Return NaN if either NaN, or both Infinity or 0.
@@ -5908,33 +5908,33 @@ function em(e) {
5908
5908
  Re && Re[0] == 0 || !Pe ? Je * 0 : Je / 0
5909
5909
  )
5910
5910
  );
5911
- for (te = new C(Je), re = te.c = [], y = F.e - w.e, Je = M + y + 1, k || (k = rn, y = $e(F.e / ee) - $e(w.e / ee), Je = Je / ee | 0), S = 0; Pe[S] == (Re[S] || 0); S++) ;
5912
- if (Pe[S] > (Re[S] || 0) && y--, Je < 0)
5913
- re.push(1), H = !0;
5911
+ for (ce = new C(Je), oe = ce.c = [], y = F.e - w.e, Je = M + y + 1, k || (k = rn, y = $e(F.e / ee) - $e(w.e / ee), Je = Je / ee | 0), q = 0; Pe[q] == (Re[q] || 0); q++) ;
5912
+ if (Pe[q] > (Re[q] || 0) && y--, Je < 0)
5913
+ oe.push(1), H = !0;
5914
5914
  else {
5915
- for (an = Re.length, Le = Pe.length, S = 0, Je += 2, U = _e(k / (Pe[0] + 1)), U > 1 && (Pe = h(Pe, U, k), Re = h(Re, U, k), Le = Pe.length, an = Re.length), Xe = Le, G = Re.slice(0, Le), _ = G.length; _ < Le; G[_++] = 0) ;
5915
+ for (an = Re.length, Le = Pe.length, q = 0, Je += 2, O = _e(k / (Pe[0] + 1)), O > 1 && (Pe = h(Pe, O, k), Re = h(Re, O, k), Le = Pe.length, an = Re.length), Xe = Le, G = Re.slice(0, Le), _ = G.length; _ < Le; G[_++] = 0) ;
5916
5916
  Ue = Pe.slice(), Ue = [0].concat(Ue), Kn = Pe[0], Pe[1] >= k / 2 && Kn++;
5917
5917
  do {
5918
- if (U = 0, P = D(Pe, G, Le, _), P < 0) {
5919
- if (De = G[0], Le != _ && (De = De * k + (G[1] || 0)), U = _e(De / Kn), U > 1)
5920
- for (U >= k && (U = k - 1), X = h(Pe, U, k), Z = X.length, _ = G.length; D(X, G, Z, _) == 1; )
5921
- U--, A(X, Le < Z ? Ue : Pe, Z, k), Z = X.length, P = 1;
5918
+ if (O = 0, P = D(Pe, G, Le, _), P < 0) {
5919
+ if (De = G[0], Le != _ && (De = De * k + (G[1] || 0)), O = _e(De / Kn), O > 1)
5920
+ for (O >= k && (O = k - 1), K = h(Pe, O, k), Z = K.length, _ = G.length; D(K, G, Z, _) == 1; )
5921
+ O--, A(K, Le < Z ? Ue : Pe, Z, k), Z = K.length, P = 1;
5922
5922
  else
5923
- U == 0 && (P = U = 1), X = Pe.slice(), Z = X.length;
5924
- if (Z < _ && (X = [0].concat(X)), A(G, X, _, k), _ = G.length, P == -1)
5923
+ O == 0 && (P = O = 1), K = Pe.slice(), Z = K.length;
5924
+ if (Z < _ && (K = [0].concat(K)), A(G, K, _, k), _ = G.length, P == -1)
5925
5925
  for (; D(Pe, G, Le, _) < 1; )
5926
- U++, A(G, Le < _ ? Ue : Pe, _, k), _ = G.length;
5927
- } else P === 0 && (U++, G = [0]);
5928
- re[S++] = U, G[0] ? G[_++] = Re[Xe] || 0 : (G = [Re[Xe]], _ = 1);
5926
+ O++, A(G, Le < _ ? Ue : Pe, _, k), _ = G.length;
5927
+ } else P === 0 && (O++, G = [0]);
5928
+ oe[q++] = O, G[0] ? G[_++] = Re[Xe] || 0 : (G = [Re[Xe]], _ = 1);
5929
5929
  } while ((Xe++ < an || G[0] != null) && Je--);
5930
- H = G[0] != null, re[0] || re.splice(0, 1);
5930
+ H = G[0] != null, oe[0] || oe.splice(0, 1);
5931
5931
  }
5932
5932
  if (k == rn) {
5933
- for (S = 1, Je = re[0]; Je >= 10; Je /= 10, S++) ;
5934
- I(te, M + (te.e = S + y * ee - 1) + 1, z, H);
5933
+ for (q = 1, Je = oe[0]; Je >= 10; Je /= 10, q++) ;
5934
+ I(ce, M + (ce.e = q + y * ee - 1) + 1, z, H);
5935
5935
  } else
5936
- te.e = y, te.r = +H;
5937
- return te;
5936
+ ce.e = y, ce.r = +H;
5937
+ return ce;
5938
5938
  };
5939
5939
  }();
5940
5940
  function E(h, D, A, F) {
@@ -5951,7 +5951,7 @@ function em(e) {
5951
5951
  for (M + 1 == k && (P += "."); D--; P += "0") ;
5952
5952
  return h.s < 0 && w ? "-" + P : P;
5953
5953
  }
5954
- function q(h, D) {
5954
+ function S(h, D) {
5955
5955
  for (var A, F, w = 1, M = new C(h[0]); w < h.length; w++)
5956
5956
  F = new C(h[w]), (!F.s || (A = Xn(M, F)) === D || A === 0 && M.s === D) && (M = F);
5957
5957
  return M;
@@ -5964,14 +5964,14 @@ function em(e) {
5964
5964
  o = /* @__PURE__ */ function() {
5965
5965
  var h = /^(-?)0([xbo])(?=\w[\w.]*$)/i, D = /^([^.]+)\.$/, A = /^\.([^.]+)$/, F = /^-?(Infinity|NaN)$/, w = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
5966
5966
  return function(M, z, k, P) {
5967
- var y, S = k ? z : z.replace(w, "");
5968
- if (F.test(S))
5969
- M.s = isNaN(S) ? null : S < 0 ? -1 : 1;
5967
+ var y, q = k ? z : z.replace(w, "");
5968
+ if (F.test(q))
5969
+ M.s = isNaN(q) ? null : q < 0 ? -1 : 1;
5970
5970
  else {
5971
- if (!k && (S = S.replace(h, function(H, U, X) {
5972
- return y = (X = X.toLowerCase()) == "x" ? 16 : X == "b" ? 2 : 8, !P || P == y ? U : H;
5973
- }), P && (y = P, S = S.replace(D, "$1").replace(A, "0.$1")), z != S))
5974
- return new C(S, y);
5971
+ if (!k && (q = q.replace(h, function(H, O, K) {
5972
+ return y = (K = K.toLowerCase()) == "x" ? 16 : K == "b" ? 2 : 8, !P || P == y ? O : H;
5973
+ }), P && (y = P, q = q.replace(D, "$1").replace(A, "0.$1")), z != q))
5974
+ return new C(q, y);
5975
5975
  if (C.DEBUG)
5976
5976
  throw Error(Ge + "Not a" + (P ? " base " + P : "") + " number: " + z);
5977
5977
  M.s = null;
@@ -5980,29 +5980,29 @@ function em(e) {
5980
5980
  };
5981
5981
  }();
5982
5982
  function I(h, D, A, F) {
5983
- var w, M, z, k, P, y, S, H = h.c, U = Tt;
5983
+ var w, M, z, k, P, y, q, H = h.c, O = Tt;
5984
5984
  if (H) {
5985
5985
  e: {
5986
5986
  for (w = 1, k = H[0]; k >= 10; k /= 10, w++) ;
5987
5987
  if (M = D - w, M < 0)
5988
- M += ee, z = D, P = H[y = 0], S = _e(P / U[w - z - 1] % 10);
5988
+ M += ee, z = D, P = H[y = 0], q = _e(P / O[w - z - 1] % 10);
5989
5989
  else if (y = It((M + 1) / ee), y >= H.length)
5990
5990
  if (F) {
5991
5991
  for (; H.length <= y; H.push(0)) ;
5992
- P = S = 0, w = 1, M %= ee, z = M - ee + 1;
5992
+ P = q = 0, w = 1, M %= ee, z = M - ee + 1;
5993
5993
  } else
5994
5994
  break e;
5995
5995
  else {
5996
5996
  for (P = k = H[y], w = 1; k >= 10; k /= 10, w++) ;
5997
- M %= ee, z = M - ee + w, S = z < 0 ? 0 : _e(P / U[w - z - 1] % 10);
5997
+ M %= ee, z = M - ee + w, q = z < 0 ? 0 : _e(P / O[w - z - 1] % 10);
5998
5998
  }
5999
5999
  if (F = F || D < 0 || // Are there any non-zero digits after the rounding digit?
6000
6000
  // The expression n % pows10[d - j - 1] returns all digits of n to the right
6001
6001
  // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
6002
- H[y + 1] != null || (z < 0 ? P : P % U[w - z - 1]), F = A < 4 ? (S || F) && (A == 0 || A == (h.s < 0 ? 3 : 2)) : S > 5 || S == 5 && (A == 4 || F || A == 6 && // Check whether the digit to the left of the rounding digit is odd.
6003
- (M > 0 ? z > 0 ? P / U[w - z] : 0 : H[y - 1]) % 10 & 1 || A == (h.s < 0 ? 8 : 7)), D < 1 || !H[0])
6004
- return H.length = 0, F ? (D -= h.e + 1, H[0] = U[(ee - D % ee) % ee], h.e = -D || 0) : H[0] = h.e = 0, h;
6005
- if (M == 0 ? (H.length = y, k = 1, y--) : (H.length = y + 1, k = U[ee - M], H[y] = z > 0 ? _e(P / U[w - z] % U[z]) * k : 0), F)
6002
+ H[y + 1] != null || (z < 0 ? P : P % O[w - z - 1]), F = A < 4 ? (q || F) && (A == 0 || A == (h.s < 0 ? 3 : 2)) : q > 5 || q == 5 && (A == 4 || F || A == 6 && // Check whether the digit to the left of the rounding digit is odd.
6003
+ (M > 0 ? z > 0 ? P / O[w - z] : 0 : H[y - 1]) % 10 & 1 || A == (h.s < 0 ? 8 : 7)), D < 1 || !H[0])
6004
+ return H.length = 0, F ? (D -= h.e + 1, H[0] = O[(ee - D % ee) % ee], h.e = -D || 0) : H[0] = h.e = 0, h;
6005
+ if (M == 0 ? (H.length = y, k = 1, y--) : (H.length = y + 1, k = O[ee - M], H[y] = z > 0 ? _e(P / O[w - z] % O[z]) * k : 0), F)
6006
6006
  for (; ; )
6007
6007
  if (y == 0) {
6008
6008
  for (M = 1, z = H[0]; z >= 10; z /= 10, M++) ;
@@ -6040,23 +6040,23 @@ function em(e) {
6040
6040
  }, t.dividedToIntegerBy = t.idiv = function(h, D) {
6041
6041
  return n(this, new C(h, D), 0, 1);
6042
6042
  }, t.exponentiatedBy = t.pow = function(h, D) {
6043
- var A, F, w, M, z, k, P, y, S, H = this;
6043
+ var A, F, w, M, z, k, P, y, q, H = this;
6044
6044
  if (h = new C(h), h.c && !h.isInteger())
6045
6045
  throw Error(Ge + "Exponent not an integer: " + T(h));
6046
6046
  if (D != null && (D = new C(D)), k = h.e > 14, !H.c || !H.c[0] || H.c[0] == 1 && !H.e && H.c.length == 1 || !h.c || !h.c[0])
6047
- return S = new C(Math.pow(+T(H), k ? h.s * (2 - yo(h)) : +T(h))), D ? S.mod(D) : S;
6047
+ return q = new C(Math.pow(+T(H), k ? h.s * (2 - yo(h)) : +T(h))), D ? q.mod(D) : q;
6048
6048
  if (P = h.s < 0, D) {
6049
6049
  if (D.c ? !D.c[0] : !D.s) return new C(NaN);
6050
6050
  F = !P && H.isInteger() && D.isInteger(), F && (H = H.mod(D));
6051
6051
  } else {
6052
6052
  if (h.e > 9 && (H.e > 0 || H.e < -1 || (H.e == 0 ? H.c[0] > 1 || k && H.c[1] >= 24e7 : H.c[0] < 8e13 || k && H.c[0] <= 9999975e7)))
6053
6053
  return M = H.s < 0 && yo(h) ? -0 : 0, H.e > -1 && (M = 1 / M), new C(P ? 1 / M : M);
6054
- b && (M = It(b / ee + 2));
6054
+ g && (M = It(g / ee + 2));
6055
6055
  }
6056
- for (k ? (A = new C(0.5), P && (h.s = 1), y = yo(h)) : (w = Math.abs(+T(h)), y = w % 2), S = new C(c); ; ) {
6056
+ for (k ? (A = new C(0.5), P && (h.s = 1), y = yo(h)) : (w = Math.abs(+T(h)), y = w % 2), q = new C(c); ; ) {
6057
6057
  if (y) {
6058
- if (S = S.times(H), !S.c) break;
6059
- M ? S.c.length > M && (S.c.length = M) : F && (S = S.mod(D));
6058
+ if (q = q.times(H), !q.c) break;
6059
+ M ? q.c.length > M && (q.c.length = M) : F && (q = q.mod(D));
6060
6060
  }
6061
6061
  if (w) {
6062
6062
  if (w = _e(w / 2), w === 0) break;
@@ -6069,7 +6069,7 @@ function em(e) {
6069
6069
  }
6070
6070
  H = H.times(H), M ? H.c && H.c.length > M && (H.c.length = M) : F && (H = H.mod(D));
6071
6071
  }
6072
- return F ? S : (P && (S = c.div(S)), D ? S.mod(D) : M ? I(S, b, r, z) : S);
6072
+ return F ? q : (P && (q = c.div(q)), D ? q.mod(D) : M ? I(q, g, r, z) : q);
6073
6073
  }, t.integerValue = function(h) {
6074
6074
  var D = new C(this);
6075
6075
  return h == null ? h = r : Me(h, 0, 8), I(D, D.e + 1, h);
@@ -6100,45 +6100,45 @@ function em(e) {
6100
6100
  if (h = new C(h, D), D = h.s, !k || !D) return new C(NaN);
6101
6101
  if (k != D)
6102
6102
  return h.s = -D, z.plus(h);
6103
- var P = z.e / ee, y = h.e / ee, S = z.c, H = h.c;
6103
+ var P = z.e / ee, y = h.e / ee, q = z.c, H = h.c;
6104
6104
  if (!P || !y) {
6105
- if (!S || !H) return S ? (h.s = -D, h) : new C(H ? z : NaN);
6106
- if (!S[0] || !H[0])
6107
- return H[0] ? (h.s = -D, h) : new C(S[0] ? z : (
6105
+ if (!q || !H) return q ? (h.s = -D, h) : new C(H ? z : NaN);
6106
+ if (!q[0] || !H[0])
6107
+ return H[0] ? (h.s = -D, h) : new C(q[0] ? z : (
6108
6108
  // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
6109
6109
  r == 3 ? -0 : 0
6110
6110
  ));
6111
6111
  }
6112
- if (P = $e(P), y = $e(y), S = S.slice(), k = P - y) {
6113
- for ((M = k < 0) ? (k = -k, w = S) : (y = P, w = H), w.reverse(), D = k; D--; w.push(0)) ;
6112
+ if (P = $e(P), y = $e(y), q = q.slice(), k = P - y) {
6113
+ for ((M = k < 0) ? (k = -k, w = q) : (y = P, w = H), w.reverse(), D = k; D--; w.push(0)) ;
6114
6114
  w.reverse();
6115
6115
  } else
6116
- for (F = (M = (k = S.length) < (D = H.length)) ? k : D, k = D = 0; D < F; D++)
6117
- if (S[D] != H[D]) {
6118
- M = S[D] < H[D];
6116
+ for (F = (M = (k = q.length) < (D = H.length)) ? k : D, k = D = 0; D < F; D++)
6117
+ if (q[D] != H[D]) {
6118
+ M = q[D] < H[D];
6119
6119
  break;
6120
6120
  }
6121
- if (M && (w = S, S = H, H = w, h.s = -h.s), D = (F = H.length) - (A = S.length), D > 0) for (; D--; S[A++] = 0) ;
6121
+ if (M && (w = q, q = H, H = w, h.s = -h.s), D = (F = H.length) - (A = q.length), D > 0) for (; D--; q[A++] = 0) ;
6122
6122
  for (D = rn - 1; F > k; ) {
6123
- if (S[--F] < H[F]) {
6124
- for (A = F; A && !S[--A]; S[A] = D) ;
6125
- --S[A], S[F] += rn;
6123
+ if (q[--F] < H[F]) {
6124
+ for (A = F; A && !q[--A]; q[A] = D) ;
6125
+ --q[A], q[F] += rn;
6126
6126
  }
6127
- S[F] -= H[F];
6127
+ q[F] -= H[F];
6128
6128
  }
6129
- for (; S[0] == 0; S.splice(0, 1), --y) ;
6130
- return S[0] ? B(h, S, y) : (h.s = r == 3 ? -1 : 1, h.c = [h.e = 0], h);
6129
+ for (; q[0] == 0; q.splice(0, 1), --y) ;
6130
+ return q[0] ? B(h, q, y) : (h.s = r == 3 ? -1 : 1, h.c = [h.e = 0], h);
6131
6131
  }, t.modulo = t.mod = function(h, D) {
6132
6132
  var A, F, w = this;
6133
6133
  return h = new C(h, D), !w.c || !h.s || h.c && !h.c[0] ? new C(NaN) : !h.c || w.c && !w.c[0] ? new C(w) : (x == 9 ? (F = h.s, h.s = 1, A = n(w, h, 0, 3), h.s = F, A.s *= F) : A = n(w, h, 0, x), h = w.minus(A.times(h)), !h.c[0] && x == 1 && (h.s = w.s), h);
6134
6134
  }, t.multipliedBy = t.times = function(h, D) {
6135
- var A, F, w, M, z, k, P, y, S, H, U, X, Z, te, re, G = this, _ = G.c, De = (h = new C(h, D)).c;
6135
+ var A, F, w, M, z, k, P, y, q, H, O, K, Z, ce, oe, G = this, _ = G.c, De = (h = new C(h, D)).c;
6136
6136
  if (!_ || !De || !_[0] || !De[0])
6137
6137
  return !G.s || !h.s || _ && !_[0] && !De || De && !De[0] && !_ ? h.c = h.e = h.s = null : (h.s *= G.s, !_ || !De ? h.c = h.e = null : (h.c = [0], h.e = 0)), h;
6138
6138
  for (F = $e(G.e / ee) + $e(h.e / ee), h.s *= G.s, P = _.length, H = De.length, P < H && (Z = _, _ = De, De = Z, w = P, P = H, H = w), w = P + H, Z = []; w--; Z.push(0)) ;
6139
- for (te = rn, re = Sn, w = H; --w >= 0; ) {
6140
- for (A = 0, U = De[w] % re, X = De[w] / re | 0, z = P, M = w + z; M > w; )
6141
- y = _[--z] % re, S = _[z] / re | 0, k = X * y + S * U, y = U * y + k % re * re + Z[M] + A, A = (y / te | 0) + (k / re | 0) + X * S, Z[M--] = y % te;
6139
+ for (ce = rn, oe = Sn, w = H; --w >= 0; ) {
6140
+ for (A = 0, O = De[w] % oe, K = De[w] / oe | 0, z = P, M = w + z; M > w; )
6141
+ y = _[--z] % oe, q = _[z] / oe | 0, k = K * y + q * O, y = O * y + k % oe * oe + Z[M] + A, A = (y / ce | 0) + (k / oe | 0) + K * q, Z[M--] = y % ce;
6142
6142
  Z[M] = A;
6143
6143
  }
6144
6144
  return A ? ++F : Z.splice(0, 1), B(h, Z, F);
@@ -6175,12 +6175,12 @@ function em(e) {
6175
6175
  }, t.shiftedBy = function(h) {
6176
6176
  return Me(h, -Ht, Ht), this.times("1e" + h);
6177
6177
  }, t.squareRoot = t.sqrt = function() {
6178
- var h, D, A, F, w, M = this, z = M.c, k = M.s, P = M.e, y = a + 4, S = new C("0.5");
6178
+ var h, D, A, F, w, M = this, z = M.c, k = M.s, P = M.e, y = a + 4, q = new C("0.5");
6179
6179
  if (k !== 1 || !z || !z[0])
6180
6180
  return new C(!k || k < 0 && (!z || z[0]) ? NaN : z ? M : 1 / 0);
6181
6181
  if (k = Math.sqrt(+T(M)), k == 0 || k == 1 / 0 ? (D = Qe(z), (D.length + P) % 2 == 0 && (D += "0"), k = Math.sqrt(+D), P = $e((P + 1) / 2) - (P < 0 || P % 2), k == 1 / 0 ? D = "5e" + P : (D = k.toExponential(), D = D.slice(0, D.indexOf("e") + 1) + P), A = new C(D)) : A = new C(k + ""), A.c[0]) {
6182
6182
  for (P = A.e, k = P + y, k < 3 && (k = 0); ; )
6183
- if (w = A, A = S.times(w.plus(n(M, w, y, 1))), Qe(w.c).slice(0, k) === (D = Qe(A.c)).slice(0, k))
6183
+ if (w = A, A = q.times(w.plus(n(M, w, y, 1))), Qe(w.c).slice(0, k) === (D = Qe(A.c)).slice(0, k))
6184
6184
  if (A.e < P && --k, D = D.slice(k - 3, k + 1), D == "9999" || !F && D == "4999") {
6185
6185
  if (!F && (I(w, w.e + a + 2, 0), w.times(w).eq(M))) {
6186
6186
  A = w;
@@ -6200,30 +6200,30 @@ function em(e) {
6200
6200
  }, t.toFormat = function(h, D, A) {
6201
6201
  var F, w = this;
6202
6202
  if (A == null)
6203
- h != null && D && typeof D == "object" ? (A = D, D = null) : h && typeof h == "object" ? (A = h, h = D = null) : A = g;
6203
+ h != null && D && typeof D == "object" ? (A = D, D = null) : h && typeof h == "object" ? (A = h, h = D = null) : A = b;
6204
6204
  else if (typeof A != "object")
6205
6205
  throw Error(Ge + "Argument not an object: " + A);
6206
6206
  if (F = w.toFixed(h, D), w.c) {
6207
- var M, z = F.split("."), k = +A.groupSize, P = +A.secondaryGroupSize, y = A.groupSeparator || "", S = z[0], H = z[1], U = w.s < 0, X = U ? S.slice(1) : S, Z = X.length;
6207
+ var M, z = F.split("."), k = +A.groupSize, P = +A.secondaryGroupSize, y = A.groupSeparator || "", q = z[0], H = z[1], O = w.s < 0, K = O ? q.slice(1) : q, Z = K.length;
6208
6208
  if (P && (M = k, k = P, P = M, Z -= M), k > 0 && Z > 0) {
6209
- for (M = Z % k || k, S = X.substr(0, M); M < Z; M += k) S += y + X.substr(M, k);
6210
- P > 0 && (S += y + X.slice(M)), U && (S = "-" + S);
6209
+ for (M = Z % k || k, q = K.substr(0, M); M < Z; M += k) q += y + K.substr(M, k);
6210
+ P > 0 && (q += y + K.slice(M)), O && (q = "-" + q);
6211
6211
  }
6212
- F = H ? S + (A.decimalSeparator || "") + ((P = +A.fractionGroupSize) ? H.replace(
6212
+ F = H ? q + (A.decimalSeparator || "") + ((P = +A.fractionGroupSize) ? H.replace(
6213
6213
  new RegExp("\\d{" + P + "}\\B", "g"),
6214
6214
  "$&" + (A.fractionGroupSeparator || "")
6215
- ) : H) : S;
6215
+ ) : H) : q;
6216
6216
  }
6217
6217
  return (A.prefix || "") + F + (A.suffix || "");
6218
6218
  }, t.toFraction = function(h) {
6219
- var D, A, F, w, M, z, k, P, y, S, H, U, X = this, Z = X.c;
6219
+ var D, A, F, w, M, z, k, P, y, q, H, O, K = this, Z = K.c;
6220
6220
  if (h != null && (k = new C(h), !k.isInteger() && (k.c || k.s !== 1) || k.lt(c)))
6221
6221
  throw Error(Ge + "Argument " + (k.isInteger() ? "out of range: " : "not an integer: ") + T(k));
6222
- if (!Z) return new C(X);
6223
- for (D = new C(c), y = A = new C(c), F = P = new C(c), U = Qe(Z), M = D.e = U.length - X.e - 1, D.c[0] = Tt[(z = M % ee) < 0 ? ee + z : z], h = !h || k.comparedTo(D) > 0 ? M > 0 ? D : y : k, z = d, d = 1 / 0, k = new C(U), P.c[0] = 0; S = n(k, D, 0, 1), w = A.plus(S.times(F)), w.comparedTo(h) != 1; )
6224
- A = F, F = w, y = P.plus(S.times(w = y)), P = w, D = k.minus(S.times(w = D)), k = w;
6225
- return w = n(h.minus(A), F, 0, 1), P = P.plus(w.times(y)), A = A.plus(w.times(F)), P.s = y.s = X.s, M = M * 2, H = n(y, F, M, r).minus(X).abs().comparedTo(
6226
- n(P, A, M, r).minus(X).abs()
6222
+ if (!Z) return new C(K);
6223
+ for (D = new C(c), y = A = new C(c), F = P = new C(c), O = Qe(Z), M = D.e = O.length - K.e - 1, D.c[0] = Tt[(z = M % ee) < 0 ? ee + z : z], h = !h || k.comparedTo(D) > 0 ? M > 0 ? D : y : k, z = d, d = 1 / 0, k = new C(O), P.c[0] = 0; q = n(k, D, 0, 1), w = A.plus(q.times(F)), w.comparedTo(h) != 1; )
6224
+ A = F, F = w, y = P.plus(q.times(w = y)), P = w, D = k.minus(q.times(w = D)), k = w;
6225
+ return w = n(h.minus(A), F, 0, 1), P = P.plus(w.times(y)), A = A.plus(w.times(F)), P.s = y.s = K.s, M = M * 2, H = n(y, F, M, r).minus(K).abs().comparedTo(
6226
+ n(P, A, M, r).minus(K).abs()
6227
6227
  ) < 1 ? [y, F] : [P, A], d = z, H;
6228
6228
  }, t.toNumber = function() {
6229
6229
  return +T(this);
@@ -6290,14 +6290,14 @@ const Hn = (e, n = to) => new Be(e).shiftedBy(n).toFixed(0), on = (e, n = to) =>
6290
6290
  tokenAmount: i,
6291
6291
  chainId: o
6292
6292
  }) => {
6293
- const [{ data: t }] = me(fn), [{ data: c }] = me(Ee), a = W(() => {
6293
+ const [{ data: t }] = me(fn), [{ data: c }] = me(Ee), a = U(() => {
6294
6294
  if (!(!e || !o) && t)
6295
6295
  return t.find(
6296
- (b) => b.denom.toLowerCase() === e.toLowerCase() && b.chainID.toLowerCase() === o.toLowerCase()
6296
+ (g) => g.denom.toLowerCase() === e.toLowerCase() && g.chainID.toLowerCase() === o.toLowerCase()
6297
6297
  );
6298
6298
  }, [t, e, o]);
6299
6299
  !n && i ? n = on(i, a == null ? void 0 : a.decimals) : !i && n && (i = Hn(n, a == null ? void 0 : a.decimals));
6300
- const r = a == null ? void 0 : a.logoURI, s = (a == null ? void 0 : a.recommendedSymbol) ?? (a == null ? void 0 : a.symbol), m = c == null ? void 0 : c.find((b) => o ? b.chainID === o : b.chainID === (a == null ? void 0 : a.chainID)), p = m != null && m.prettyName && (m == null ? void 0 : m.prettyName.length) !== 0 ? m.prettyName : void 0, d = m != null && m.chainName && (m == null ? void 0 : m.chainName.length) !== 0 ? m.chainName : void 0, u = m == null ? void 0 : m.logoURI, x = a == null ? void 0 : a.decimals;
6300
+ const r = a == null ? void 0 : a.logoURI, s = (a == null ? void 0 : a.recommendedSymbol) ?? (a == null ? void 0 : a.symbol), m = c == null ? void 0 : c.find((g) => o ? g.chainID === o : g.chainID === (a == null ? void 0 : a.chainID)), p = m != null && m.prettyName && (m == null ? void 0 : m.prettyName.length) !== 0 ? m.prettyName : void 0, d = m != null && m.chainName && (m == null ? void 0 : m.chainName.length) !== 0 ? m.chainName : void 0, u = m == null ? void 0 : m.logoURI, x = a == null ? void 0 : a.decimals;
6301
6301
  return o ? {
6302
6302
  asset: a,
6303
6303
  chain: m,
@@ -6348,7 +6348,7 @@ const Cc = (e) => {
6348
6348
  function cD(e) {
6349
6349
  return e ? e.toString().replace(/,/g, "").length >= 14 : !1;
6350
6350
  }
6351
- const ci = N(K).attrs({
6351
+ const ci = N(X).attrs({
6352
6352
  as: "button"
6353
6353
  })`
6354
6354
  ${mo};
@@ -6416,11 +6416,11 @@ const ci = N(K).attrs({
6416
6416
  `, Ye = ({ leftButton: e, rightButton: n, rightContent: i }) => {
6417
6417
  const o = io[(e == null ? void 0 : e.icon) || J.none], t = io[(n == null ? void 0 : n.icon) || J.none];
6418
6418
  return /* @__PURE__ */ j(aD, { justify: "space-between", children: [
6419
- /* @__PURE__ */ l(O, { align: "center", gap: 10, children: e && /* @__PURE__ */ j(ci, { gap: 5, align: "center", onClick: e.onClick, children: [
6419
+ /* @__PURE__ */ l(W, { align: "center", gap: 10, children: e && /* @__PURE__ */ j(ci, { gap: 5, align: "center", onClick: e.onClick, children: [
6420
6420
  /* @__PURE__ */ l(o, {}),
6421
6421
  e.label
6422
6422
  ] }) }),
6423
- /* @__PURE__ */ j(O, { align: "center", gap: 10, children: [
6423
+ /* @__PURE__ */ j(W, { align: "center", gap: 10, children: [
6424
6424
  i,
6425
6425
  n && /* @__PURE__ */ j(ci, { gap: 5, align: "center", onClick: n.onClick, children: [
6426
6426
  n.label,
@@ -6428,7 +6428,7 @@ const ci = N(K).attrs({
6428
6428
  ] })
6429
6429
  ] })
6430
6430
  ] });
6431
- }, aD = N(O)`
6431
+ }, aD = N(W)`
6432
6432
  height: 30px;
6433
6433
  `, rD = ({
6434
6434
  onClickContinue: e,
@@ -6452,7 +6452,7 @@ const ci = N(K).attrs({
6452
6452
  assetDenom: s,
6453
6453
  chainId: m,
6454
6454
  tokenAmount: t
6455
- }), b = Oe({
6455
+ }), g = Oe({
6456
6456
  assetDenom: p,
6457
6457
  chainId: d,
6458
6458
  tokenAmount: c
@@ -6475,7 +6475,7 @@ const ci = N(K).attrs({
6475
6475
  {
6476
6476
  title: `Warning: Bad trade (-${u})`,
6477
6477
  description: /* @__PURE__ */ j(fe, { children: [
6478
- /* @__PURE__ */ j(K, { color: o.error.text, textAlign: "center", textWrap: "balance", children: [
6478
+ /* @__PURE__ */ j(X, { color: o.error.text, textAlign: "center", textWrap: "balance", children: [
6479
6479
  "You will lose ",
6480
6480
  u,
6481
6481
  " of your input value with this trade",
@@ -6489,9 +6489,9 @@ const ci = N(K).attrs({
6489
6489
  ")",
6490
6490
  /* @__PURE__ */ l("br", {}),
6491
6491
  "Estimated output: ",
6492
- b == null ? void 0 : b.amount,
6492
+ g == null ? void 0 : g.amount,
6493
6493
  " ",
6494
- b == null ? void 0 : b.symbol,
6494
+ g == null ? void 0 : g.symbol,
6495
6495
  " (",
6496
6496
  r,
6497
6497
  ")"
@@ -7181,7 +7181,7 @@ const MD = ({
7181
7181
  onClickContactSupport: i,
7182
7182
  onClickBack: o
7183
7183
  }) => {
7184
- ae(() => {
7184
+ re(() => {
7185
7185
  Ho("TransactionFailed");
7186
7186
  }, []);
7187
7187
  const t = de(), c = Y(je), a = Y(cn);
@@ -7203,9 +7203,9 @@ const MD = ({
7203
7203
  {
7204
7204
  title: "Transaction failed",
7205
7205
  description: /* @__PURE__ */ j(fe, { children: [
7206
- /* @__PURE__ */ l(K, { color: t.error.text, textAlign: "center", textWrap: "balance", children: "Please contact our support team below." }),
7206
+ /* @__PURE__ */ l(X, { color: t.error.text, textAlign: "center", textWrap: "balance", children: "Please contact our support team below." }),
7207
7207
  /* @__PURE__ */ j(
7208
- O,
7208
+ W,
7209
7209
  {
7210
7210
  as: mi,
7211
7211
  gap: 5,
@@ -7240,7 +7240,7 @@ const MD = ({
7240
7240
  ] });
7241
7241
  }, PD = ({ error: e, onClickBack: n }) => {
7242
7242
  const i = de(), o = Y(je), t = Y(cn);
7243
- ae(() => {
7243
+ re(() => {
7244
7244
  Zo("errorMessage", e == null ? void 0 : e.message);
7245
7245
  }, [e == null ? void 0 : e.message]);
7246
7246
  const c = () => {
@@ -7359,19 +7359,19 @@ function qD(e) {
7359
7359
  const n = e, i = n == null ? void 0 : n.axelarTransfer, o = n == null ? void 0 : n.ibcTransfer, t = n == null ? void 0 : n.cctpTransfer, c = n == null ? void 0 : n.hyperlaneTransfer, a = n == null ? void 0 : n.opInitTransfer, r = n == null ? void 0 : n.goFastTransfer, s = n == null ? void 0 : n.stargateTransfer, m = n == null ? void 0 : n.eurekaTransfer;
7360
7360
  let p = "";
7361
7361
  i ? p = "axelarTransfer" : o ? p = "ibcTransfer" : t ? p = "cctpTransfer" : c ? p = "hyperlaneTransfer" : a ? p = "opInitTransfer" : r ? p = "goFastTransfer" : s ? p = "stargateTransfer" : m && (p = "eurekaTransfer");
7362
- const d = (g) => {
7363
- var f, v, C, E, q, B, I, T, h, D;
7362
+ const d = (b) => {
7363
+ var f, v, C, E, S, B, I, T, h, D;
7364
7364
  switch (p) {
7365
7365
  case "ibcTransfer":
7366
- return g === "send" ? (f = o.packetTxs.sendTx) == null ? void 0 : f.explorerLink : (v = o.packetTxs.receiveTx) == null ? void 0 : v.explorerLink;
7366
+ return b === "send" ? (f = o.packetTxs.sendTx) == null ? void 0 : f.explorerLink : (v = o.packetTxs.receiveTx) == null ? void 0 : v.explorerLink;
7367
7367
  case "eurekaTransfer":
7368
- return g === "send" ? (C = m.packetTxs.sendTx) == null ? void 0 : C.explorerLink : (E = m.packetTxs.receiveTx) == null ? void 0 : E.explorerLink;
7368
+ return b === "send" ? (C = m.packetTxs.sendTx) == null ? void 0 : C.explorerLink : (E = m.packetTxs.receiveTx) == null ? void 0 : E.explorerLink;
7369
7369
  case "goFastTransfer":
7370
- return g === "send" ? (q = r.txs.orderSubmittedTx) == null ? void 0 : q.explorerLink : (B = r.txs.orderFilledTx) == null ? void 0 : B.explorerLink;
7370
+ return b === "send" ? (S = r.txs.orderSubmittedTx) == null ? void 0 : S.explorerLink : (B = r.txs.orderFilledTx) == null ? void 0 : B.explorerLink;
7371
7371
  case "axelarTransfer":
7372
7372
  return i.axelarScanLink;
7373
7373
  default:
7374
- return g === "send" ? (T = (I = n[p]) == null ? void 0 : I.txs.sendTx) == null ? void 0 : T.explorerLink : (D = (h = n[p]) == null ? void 0 : h.txs.receiveTx) == null ? void 0 : D.explorerLink;
7374
+ return b === "send" ? (T = (I = n[p]) == null ? void 0 : I.txs.sendTx) == null ? void 0 : T.explorerLink : (D = (h = n[p]) == null ? void 0 : h.txs.receiveTx) == null ? void 0 : D.explorerLink;
7375
7375
  }
7376
7376
  }, u = {
7377
7377
  ...o,
@@ -7439,25 +7439,25 @@ const ca = ({
7439
7439
  txsRequired: n,
7440
7440
  enabled: i
7441
7441
  }) => {
7442
- const o = L(bn), [t, c] = se(!1), [a, r] = se(void 0), s = W(() => ["txs-status", n, e], [e, n]);
7442
+ const o = L(bn), [t, c] = se(!1), [a, r] = se(void 0), s = U(() => ["txs-status", n, e], [e, n]);
7443
7443
  return Jo({
7444
7444
  queryKey: s,
7445
7445
  queryFn: async ({ queryKey: [, m, p] }) => {
7446
7446
  var E;
7447
7447
  if (!p) return;
7448
7448
  const d = await Promise.all(
7449
- p.map(async (q) => await o.transactionStatus({
7450
- chainID: q.chainID,
7451
- txHash: q.txHash
7449
+ p.map(async (S) => await o.transactionStatus({
7450
+ chainID: S.chainID,
7451
+ txHash: S.txHash
7452
7452
  }))
7453
- ), u = jD(d), x = d.every((q) => q.state === "STATE_COMPLETED_SUCCESS" || q.state === "STATE_COMPLETED_ERROR" || q.state === "STATE_ABANDONED"), b = m === d.length && x;
7454
- b && c(!0);
7455
- const g = d.some((q) => q.state === "STATE_COMPLETED_ERROR" || q.state === "STATE_ABANDONED"), f = d.length > 0 ? ID(d[d.length - 1].state) : void 0;
7456
- f === "failed" && b && ks("TransactionFailed");
7457
- const v = (E = d.reverse().find((q) => q.transferAssetRelease)) == null ? void 0 : E.transferAssetRelease, C = {
7458
- isSuccess: b && !g && f === "success",
7453
+ ), u = jD(d), x = d.every((S) => S.state === "STATE_COMPLETED_SUCCESS" || S.state === "STATE_COMPLETED_ERROR" || S.state === "STATE_ABANDONED"), g = m === d.length && x;
7454
+ g && c(!0);
7455
+ const b = d.some((S) => S.state === "STATE_COMPLETED_ERROR" || S.state === "STATE_ABANDONED"), f = d.length > 0 ? ID(d[d.length - 1].state) : void 0;
7456
+ f === "failed" && g && ks("TransactionFailed");
7457
+ const v = (E = d.reverse().find((S) => S.transferAssetRelease)) == null ? void 0 : E.transferAssetRelease, C = {
7458
+ isSuccess: g && !b && f === "success",
7459
7459
  lastTxStatus: f,
7460
- isSettled: b,
7460
+ isSettled: g,
7461
7461
  transferEvents: u,
7462
7462
  transferAssetRelease: v || void 0
7463
7463
  };
@@ -7475,14 +7475,14 @@ function sm(e = 250) {
7475
7475
  // Set initial value here too
7476
7476
  (r, s, m, p, d) => {
7477
7477
  clearTimeout(r(n));
7478
- const u = r(i), x = typeof m == "function" ? m(u) : m, b = () => {
7478
+ const u = r(i), x = typeof m == "function" ? m(u) : m, g = () => {
7479
7479
  s(i, x), s(o, !0), s(t, !0);
7480
- }, g = () => {
7480
+ }, b = () => {
7481
7481
  s(c, x), s(o, !1), p == null || p();
7482
7482
  };
7483
- d ? g() : b();
7483
+ d ? b() : g();
7484
7484
  const f = setTimeout(() => {
7485
- g();
7485
+ b();
7486
7486
  }, e);
7487
7487
  f && s(n, f);
7488
7488
  }
@@ -7674,10 +7674,10 @@ const Ni = Q(), {
7674
7674
  }), gt = Q(), pm = Q(null, (e, n, i) => {
7675
7675
  const o = e(gt), { data: t } = e(fn);
7676
7676
  i ?? (i = t);
7677
- const c = (b, g) => {
7678
- if (!(!b || !g) && i)
7677
+ const c = (g, b) => {
7678
+ if (!(!g || !b) && i)
7679
7679
  return i.find(
7680
- (f) => f.denom.toLowerCase() === b.toLowerCase() && f.chainID === g
7680
+ (f) => f.denom.toLowerCase() === g.toLowerCase() && f.chainID === b
7681
7681
  );
7682
7682
  };
7683
7683
  if (!o || !i) return;
@@ -40487,7 +40487,7 @@ const JD = [
40487
40487
  ), In = Q(null, (e, n, i) => {
40488
40488
  n(Ne, (o) => ({ ...o, overallStatus: i }));
40489
40489
  }), t2 = Q(null, (e, n) => {
40490
- var g;
40490
+ var b;
40491
40491
  const { data: i } = e(Un), { data: o } = e(Ee), t = e(Fn), c = e(Ni), a = t.length;
40492
40492
  if (!i) return;
40493
40493
  const {
@@ -40496,13 +40496,13 @@ const JD = [
40496
40496
  sourceAssetChainID: m,
40497
40497
  destAssetDenom: p,
40498
40498
  destAssetChainID: d
40499
- } = i, u = r[0], x = r[r.length - 1], b = {};
40500
- (g = i == null ? void 0 : i.requiredChainAddresses) == null || g.forEach((f, v) => {
40501
- b[v] = {
40499
+ } = i, u = r[0], x = r[r.length - 1], g = {};
40500
+ (b = i == null ? void 0 : i.requiredChainAddresses) == null || b.forEach((f, v) => {
40501
+ g[v] = {
40502
40502
  chainID: f,
40503
40503
  address: ""
40504
40504
  };
40505
- }), n(Gn, b), n(Ne, {
40505
+ }), n(Gn, g), n(Ne, {
40506
40506
  userAddresses: [],
40507
40507
  transactionDetailsArray: [],
40508
40508
  route: i,
@@ -40521,7 +40521,7 @@ const JD = [
40521
40521
  onTransactionBroadcast: async (f) => {
40522
40522
  var E;
40523
40523
  V("execute route: transaction broadcasted", { txInfo: f }), ws({ id: f == null ? void 0 : f.txHash });
40524
- const v = o == null ? void 0 : o.find((q) => q.chainID === f.chainID), C = vc({
40524
+ const v = o == null ? void 0 : o.find((S) => S.chainID === f.chainID), C = vc({
40525
40525
  chainID: f.chainID,
40526
40526
  chainType: v == null ? void 0 : v.chainType,
40527
40527
  txHash: f.txHash
@@ -40545,7 +40545,7 @@ const JD = [
40545
40545
  onTransactionCompleted: async (f, v, C) => {
40546
40546
  var B;
40547
40547
  V("execute route: transaction completed", { chainId: f, txHash: v, status: C }), Zo("txCompleted", !0);
40548
- const E = o == null ? void 0 : o.find((I) => I.chainID === f), q = vc({
40548
+ const E = o == null ? void 0 : o.find((I) => I.chainID === f), S = vc({
40549
40549
  chainID: f,
40550
40550
  chainType: E == null ? void 0 : E.chainType,
40551
40551
  txHash: v
@@ -40553,7 +40553,7 @@ const JD = [
40553
40553
  (B = c == null ? void 0 : c.onTransactionComplete) == null || B.call(c, {
40554
40554
  chainId: f,
40555
40555
  txHash: v,
40556
- explorerLink: q ?? "",
40556
+ explorerLink: S ?? "",
40557
40557
  sourceAddress: u,
40558
40558
  destinationAddress: x,
40559
40559
  sourceAssetDenom: s,
@@ -40569,7 +40569,7 @@ const JD = [
40569
40569
  })), n(In, "pending");
40570
40570
  },
40571
40571
  onError: (f, v) => {
40572
- var E, q;
40572
+ var E, S;
40573
40573
  V("execute route: error", { error: f }), (E = c == null ? void 0 : c.onTransactionFailed) == null || E.call(c, {
40574
40574
  error: f == null ? void 0 : f.message
40575
40575
  });
@@ -40582,7 +40582,7 @@ const JD = [
40582
40582
  }
40583
40583
  });
40584
40584
  else if (C != null && C.explorerLink) {
40585
- if ((q = f == null ? void 0 : f.message) != null && q.toLowerCase().includes("insufficient balance for gas")) {
40585
+ if ((S = f == null ? void 0 : f.message) != null && S.toLowerCase().includes("insufficient balance for gas")) {
40586
40586
  V("error page: unexpected error"), n(je, {
40587
40587
  errorType: ke.Unexpected,
40588
40588
  error: f,
@@ -40664,16 +40664,16 @@ const JD = [
40664
40664
  return o === "carbon-1" ? eo.CARBON : a;
40665
40665
  };
40666
40666
  }), Dm = Q(), xm = $m((e) => {
40667
- var b;
40668
- const n = e(bn), { route: i, userAddresses: o, transactionDetailsArray: t } = e(Ne), c = e(dm), a = e(r2), r = e(Dm), s = e(ai), { timeoutSeconds: m } = e(xt), { data: p } = e(Ee), d = e(ge), u = e(hl), x = (b = p == null ? void 0 : p.find((g) => g.chainID === (d == null ? void 0 : d.chainID))) == null ? void 0 : b.chainType;
40667
+ var g;
40668
+ const n = e(bn), { route: i, userAddresses: o, transactionDetailsArray: t } = e(Ne), c = e(dm), a = e(r2), r = e(Dm), s = e(ai), { timeoutSeconds: m } = e(xt), { data: p } = e(Ee), d = e(ge), u = e(hl), x = (g = p == null ? void 0 : p.find((b) => b.chainID === (d == null ? void 0 : d.chainID))) == null ? void 0 : g.chainType;
40669
40669
  if (x) {
40670
- const { deeplink: g, recentWalletData: f } = u[x];
40671
- x === R.Cosmos ? (window.localStorage.removeItem(lc), window.localStorage.removeItem(mc)) : (window.localStorage.setItem(lc, g), window.localStorage.setItem(mc, f));
40670
+ const { deeplink: b, recentWalletData: f } = u[x];
40671
+ x === R.Cosmos ? (window.localStorage.removeItem(lc), window.localStorage.removeItem(mc)) : (window.localStorage.setItem(lc, b), window.localStorage.setItem(mc, f));
40672
40672
  }
40673
40673
  return {
40674
40674
  gcTime: 1 / 0,
40675
40675
  mutationFn: async () => {
40676
- var g;
40676
+ var b;
40677
40677
  if (i && o.length) {
40678
40678
  try {
40679
40679
  await n.executeRoute({
@@ -40687,20 +40687,20 @@ const JD = [
40687
40687
  ...c
40688
40688
  });
40689
40689
  } catch (f) {
40690
- console.error(f), (g = c == null ? void 0 : c.onError) == null || g.call(c, f, t);
40690
+ console.error(f), (b = c == null ? void 0 : c.onError) == null || b.call(c, f, t);
40691
40691
  }
40692
40692
  return null;
40693
40693
  }
40694
40694
  },
40695
- onError: (g) => {
40695
+ onError: (b) => {
40696
40696
  var f;
40697
- console.error(g), (f = c == null ? void 0 : c.onError) == null || f.call(c, g, t);
40697
+ console.error(b), (f = c == null ? void 0 : c.onError) == null || f.call(c, b, t);
40698
40698
  }
40699
40699
  };
40700
- }), bt = (e) => W(() => {
40700
+ }), bt = (e) => U(() => {
40701
40701
  const n = Ti(e == null ? void 0 : e.operations);
40702
40702
  return (n == null ? void 0 : n.some((i) => i.type === Fe.goFastTransfer)) ?? !1;
40703
- }, [e == null ? void 0 : e.operations]), s2 = (e) => W(() => {
40703
+ }, [e == null ? void 0 : e.operations]), s2 = (e) => U(() => {
40704
40704
  const n = [Fe.swap, Fe.evmSwap], i = Ti(e == null ? void 0 : e.operations);
40705
40705
  return (i == null ? void 0 : i.some((o) => n.includes(o.type))) ?? !1;
40706
40706
  }, [e == null ? void 0 : e.operations]), l2 = ({ txHash: e, explorerLink: n, onClickBack: i }) => {
@@ -40708,7 +40708,7 @@ const JD = [
40708
40708
  txsRequired: r == null ? void 0 : r.txsRequired,
40709
40709
  txs: s
40710
40710
  });
40711
- return ae(() => {
40711
+ return re(() => {
40712
40712
  t && (p != null && p.isSettled) && (V("error page: transaction timeover - transaction settled"), c(void 0));
40713
40713
  }, [p == null ? void 0 : p.isSettled, t, c]), /* @__PURE__ */ j(fe, { children: [
40714
40714
  /* @__PURE__ */ l(
@@ -40728,7 +40728,7 @@ const JD = [
40728
40728
  {
40729
40729
  title: "Sorry, your transaction is taking longer than usual.",
40730
40730
  description: /* @__PURE__ */ j(fe, { children: [
40731
- /* @__PURE__ */ j(K, { color: o.warning.text, textAlign: "center", textWrap: "balance", children: [
40731
+ /* @__PURE__ */ j(X, { color: o.warning.text, textAlign: "center", textWrap: "balance", children: [
40732
40732
  "Your funds are secure.",
40733
40733
  /* @__PURE__ */ l("br", {}),
40734
40734
  "You can close this window safely while you wait.",
@@ -40736,7 +40736,7 @@ const JD = [
40736
40736
  "Check the history page for status updates."
40737
40737
  ] }),
40738
40738
  /* @__PURE__ */ j(
40739
- O,
40739
+ W,
40740
40740
  {
40741
40741
  gap: 5,
40742
40742
  align: "center",
@@ -40786,7 +40786,7 @@ const JD = [
40786
40786
  gn,
40787
40787
  {
40788
40788
  title: "This transaction requires additional signing steps",
40789
- description: /* @__PURE__ */ j(K, { textWrap: "balance", textAlign: "center", color: o.warning.text, children: [
40789
+ description: /* @__PURE__ */ j(X, { textWrap: "balance", textAlign: "center", color: o.warning.text, children: [
40790
40790
  "This transaction requires ",
40791
40791
  /* @__PURE__ */ j("u", { children: [
40792
40792
  n,
@@ -40817,7 +40817,7 @@ const JD = [
40817
40817
  onClickContinueTransaction: i,
40818
40818
  onClickBack: o
40819
40819
  }) => {
40820
- ae(() => {
40820
+ re(() => {
40821
40821
  ks("TransactionReverted");
40822
40822
  }, []);
40823
40823
  const t = Y(je), c = Y(cn), a = de(), r = Oe({
@@ -40843,12 +40843,12 @@ const JD = [
40843
40843
  {
40844
40844
  title: "Action Required",
40845
40845
  description: /* @__PURE__ */ j(fe, { children: [
40846
- /* @__PURE__ */ j(K, { color: a.warning.text, textAlign: "center", textWrap: "balance", children: [
40846
+ /* @__PURE__ */ j(X, { color: a.warning.text, textAlign: "center", textWrap: "balance", children: [
40847
40847
  "This transaction reverted while trying to execute.",
40848
40848
  /* @__PURE__ */ l("br", {}),
40849
40849
  "You can continue executing this transaction now."
40850
40850
  ] }),
40851
- /* @__PURE__ */ j(K, { color: a.primary.text.lowContrast, textAlign: "center", textWrap: "balance", children: [
40851
+ /* @__PURE__ */ j(X, { color: a.primary.text.lowContrast, textAlign: "center", textWrap: "balance", children: [
40852
40852
  "Current asset location: ",
40853
40853
  r == null ? void 0 : r.amount,
40854
40854
  " ",
@@ -40857,8 +40857,8 @@ const JD = [
40857
40857
  " ",
40858
40858
  r == null ? void 0 : r.chainName
40859
40859
  ] }),
40860
- /* @__PURE__ */ l(O, { gap: 25, justify: "center", children: /* @__PURE__ */ j(
40861
- O,
40860
+ /* @__PURE__ */ l(W, { gap: 25, justify: "center", children: /* @__PURE__ */ j(
40861
+ W,
40862
40862
  {
40863
40863
  gap: 5,
40864
40864
  align: "center",
@@ -40910,7 +40910,7 @@ const JD = [
40910
40910
  gn,
40911
40911
  {
40912
40912
  title: "Warning: Ledger not supported",
40913
- description: /* @__PURE__ */ l(fe, { children: /* @__PURE__ */ l(K, { color: n.error.text, textAlign: "center", textWrap: "balance", children: "Ledger isn't currently supported on Ethermint chains (such as Injective, Dymension, EVMOS, and similar networks)." }) }),
40913
+ description: /* @__PURE__ */ l(fe, { children: /* @__PURE__ */ l(X, { color: n.error.text, textAlign: "center", textWrap: "balance", children: "Ledger isn't currently supported on Ethermint chains (such as Injective, Dymension, EVMOS, and similar networks)." }) }),
40914
40914
  icon: J.triangleWarning,
40915
40915
  backgroundColor: n.error.background,
40916
40916
  textColor: n.error.text
@@ -40974,12 +40974,12 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
40974
40974
  }
40975
40975
  }).startCountdown();
40976
40976
  }, [s, o]);
40977
- return ae(() => {
40977
+ return re(() => {
40978
40978
  m && !s.visible && x(), p(s.visible);
40979
- }, [x, s.visible, m]), ae(() => {
40980
- const b = (C) => {
40979
+ }, [x, s.visible, m]), re(() => {
40980
+ const g = (C) => {
40981
40981
  C.key === "Escape" && s.hide();
40982
- }, g = (C) => {
40982
+ }, b = (C) => {
40983
40983
  r.current !== C.target && s.visible && s.hide();
40984
40984
  };
40985
40985
  o == null || o(!0);
@@ -40987,8 +40987,8 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
40987
40987
  const C = document.documentElement;
40988
40988
  return C.scrollHeight > C.clientHeight;
40989
40989
  }, v = window.getComputedStyle(document.documentElement).overflow;
40990
- return (!n || !f()) && (a(v), document.documentElement.style.overflow = "hidden"), window.addEventListener("keydown", b), window.addEventListener("click", g), () => {
40991
- window.removeEventListener("keydown", b), window.removeEventListener("click", g), o == null || o(!1), document.documentElement.style.overflow = v;
40990
+ return (!n || !f()) && (a(v), document.documentElement.style.overflow = "hidden"), window.addEventListener("keydown", g), window.addEventListener("click", b), () => {
40991
+ window.removeEventListener("keydown", g), window.removeEventListener("click", b), o == null || o(!1), document.documentElement.style.overflow = v;
40992
40992
  };
40993
40993
  }, [x, n, s, o, c]), d && m === void 0 ? null : Hp(
40994
40994
  /* @__PURE__ */ l($s, { theme: t, children: /* @__PURE__ */ l(b2, { drawer: n, open: s.visible, "data-root-id": u, children: /* @__PURE__ */ l(
@@ -40997,7 +40997,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
40997
40997
  ref: r,
40998
40998
  drawer: n,
40999
40999
  open: s.visible,
41000
- onClick: (b) => b.stopPropagation(),
41000
+ onClick: (g) => g.stopPropagation(),
41001
41001
  children: e
41002
41002
  }
41003
41003
  ) }) }),
@@ -41015,7 +41015,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41015
41015
  }
41016
41016
  ) });
41017
41017
  };
41018
- return oe.create(i);
41018
+ return te.create(i);
41019
41019
  }, Gr = si`
41020
41020
  from {
41021
41021
  opacity: 0;
@@ -41131,7 +41131,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41131
41131
  typeof n == "string" ? /* @__PURE__ */ l(Te, { fontSize: 20, children: n }) : n
41132
41132
  ]
41133
41133
  }
41134
- ), A2 = N(O)`
41134
+ ), A2 = N(W)`
41135
41135
  ${mo};
41136
41136
  position: relative;
41137
41137
  width: 100%;
@@ -41187,7 +41187,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41187
41187
  const [e, n] = se(
41188
41188
  typeof window < "u" && window.innerWidth <= Xr
41189
41189
  );
41190
- return ae(() => {
41190
+ return re(() => {
41191
41191
  if (window === void 0) return;
41192
41192
  const i = () => {
41193
41193
  const o = (window == null ? void 0 : window.innerWidth) <= Xr;
@@ -41199,7 +41199,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41199
41199
  }, []), e;
41200
41200
  }, Yr = 600, C2 = 100, bm = (e) => {
41201
41201
  const n = Ze(), [i, o] = se(Yr - e);
41202
- return ae(() => {
41202
+ return re(() => {
41203
41203
  o(n ? window.innerHeight - e - C2 * 2 : Yr - e);
41204
41204
  }, [n, e]), i;
41205
41205
  }, pa = ({
@@ -41212,11 +41212,11 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41212
41212
  empty: a
41213
41213
  }) => {
41214
41214
  const r = de(), [s, m] = se(), p = bm(i), d = fi(null);
41215
- return ae(() => {
41216
- var g, f, v;
41217
- const u = (v = (f = (g = d.current) == null ? void 0 : g.nativeElement) == null ? void 0 : f.getElementsByClassName(
41215
+ return re(() => {
41216
+ var b, f, v;
41217
+ const u = (v = (f = (b = d.current) == null ? void 0 : b.nativeElement) == null ? void 0 : f.getElementsByClassName(
41218
41218
  "rc-virtual-list-holder-inner"
41219
- )) == null ? void 0 : v[0], x = u == null ? void 0 : u.firstChild, b = (C) => {
41219
+ )) == null ? void 0 : v[0], x = u == null ? void 0 : u.firstChild, g = (C) => {
41220
41220
  if (C.key === "ArrowDown") {
41221
41221
  x && (x.focus(), m(x)), C.preventDefault();
41222
41222
  const E = s == null ? void 0 : s.nextElementSibling;
@@ -41227,17 +41227,17 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41227
41227
  E && (m(E), E.focus());
41228
41228
  }
41229
41229
  };
41230
- return document.addEventListener("keydown", b), () => {
41231
- document.removeEventListener("keydown", b);
41230
+ return document.addEventListener("keydown", g), () => {
41231
+ document.removeEventListener("keydown", g);
41232
41232
  };
41233
- }, [s, e.length]), ae(() => {
41233
+ }, [s, e.length]), re(() => {
41234
41234
  setTimeout(() => {
41235
41235
  var u;
41236
41236
  (u = d.current) == null || u.scrollTo(0);
41237
41237
  }, 0);
41238
41238
  }, [e.length]), e.length === 0 ? /* @__PURE__ */ j(k2, { gap: 10, height: n ?? p, children: [
41239
41239
  a == null ? void 0 : a.icon,
41240
- /* @__PURE__ */ l(K, { textAlign: "center", fontSize: 22, children: a == null ? void 0 : a.header }),
41240
+ /* @__PURE__ */ l(X, { textAlign: "center", fontSize: 22, children: a == null ? void 0 : a.header }),
41241
41241
  /* @__PURE__ */ l(w2, { children: a == null ? void 0 : a.details })
41242
41242
  ] }) : /* @__PURE__ */ l(
41243
41243
  Tp,
@@ -41267,7 +41267,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41267
41267
  text-align: center;
41268
41268
  align-items: center;
41269
41269
  justify-content: center;
41270
- `, w2 = N(K)`
41270
+ `, w2 = N(X)`
41271
41271
  white-space: pre-line;
41272
41272
  text-align: center;
41273
41273
  `, fm = ({
@@ -41292,7 +41292,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41292
41292
  }
41293
41293
  ), ha = () => {
41294
41294
  const [e, n] = se(!1), [i, o] = se();
41295
- return ae(() => () => {
41295
+ return re(() => () => {
41296
41296
  clearTimeout(i);
41297
41297
  }, [i]), {
41298
41298
  copyAddress: (c) => {
@@ -41319,11 +41319,11 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41319
41319
  ...p
41320
41320
  }) => {
41321
41321
  var h, D, A;
41322
- const d = de(), u = Ze(), { copyAddress: x, isShowingCopyAddressFeedback: b } = ha(), g = Oe({
41322
+ const d = de(), u = Ze(), { copyAddress: x, isShowingCopyAddressFeedback: g } = ha(), b = Oe({
41323
41323
  assetDenom: e,
41324
41324
  chainId: i,
41325
41325
  tokenAmount: n
41326
- }), f = L(Gn), v = s === "destination" && t !== void 0, C = v || c !== void 0, E = W(() => {
41326
+ }), f = L(Gn), v = s === "destination" && t !== void 0, C = v || c !== void 0, E = U(() => {
41327
41327
  var k;
41328
41328
  const F = Object.values(f), w = F.find(
41329
41329
  (P) => P.chainID === i
@@ -41332,12 +41332,12 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41332
41332
  address: z == null ? void 0 : z.address,
41333
41333
  image: (z == null ? void 0 : z.source) === "wallet" && ((k = z == null ? void 0 : z.wallet) == null ? void 0 : k.walletInfo.logo) || void 0
41334
41334
  };
41335
- }, [f, i, s]), q = W(() => {
41336
- const F = v ? ({ children: M }) => /* @__PURE__ */ l(O, { gap: 5, children: M }) : ln.Fragment;
41335
+ }, [f, i, s]), S = U(() => {
41336
+ const F = v ? ({ children: M }) => /* @__PURE__ */ l(W, { gap: 5, children: M }) : ln.Fragment;
41337
41337
  if (!E.address) return;
41338
41338
  const w = () => {
41339
41339
  const M = u ? "Copied!" : "Address copied!";
41340
- return b ? /* @__PURE__ */ l(K, { children: M }) : u ? /* @__PURE__ */ l(fm, { color: d.primary.text.lowContrast }) : /* @__PURE__ */ l(F2, { title: E.address, monospace: !0, textWrap: "nowrap", children: xo(E.address, u) });
41340
+ return g ? /* @__PURE__ */ l(X, { children: M }) : u ? /* @__PURE__ */ l(fm, { color: d.primary.text.lowContrast }) : /* @__PURE__ */ l(F2, { title: E.address, monospace: !0, textWrap: "nowrap", children: xo(E.address, u) });
41341
41341
  };
41342
41342
  return /* @__PURE__ */ j(F, { children: [
41343
41343
  /* @__PURE__ */ j(y2, { onClick: () => x(E == null ? void 0 : E.address), children: [
@@ -41365,18 +41365,18 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41365
41365
  }, [
41366
41366
  x,
41367
41367
  u,
41368
- b,
41368
+ g,
41369
41369
  t,
41370
41370
  v,
41371
41371
  E.address,
41372
41372
  E.image,
41373
41373
  d.primary.text.lowContrast
41374
- ]), B = W(() => {
41374
+ ]), B = U(() => {
41375
41375
  if (c)
41376
41376
  return u ? /* @__PURE__ */ l(im, { href: c, target: "_blank", children: /* @__PURE__ */ l(Ln, {}) }) : /* @__PURE__ */ l(na, { href: c, target: "_blank", children: /* @__PURE__ */ l(Ln, {}) });
41377
41377
  }, [c, u]), I = m == null ? void 0 : m.transferEvents.length, T = (D = (h = m == null ? void 0 : m.transferEvents) == null ? void 0 : h[(m == null ? void 0 : m.transferEvents.length) - 1]) == null ? void 0 : D.status;
41378
- return /* @__PURE__ */ j(O, { gap: 15, align: "center", ...p, children: [
41379
- g != null && g.assetImage ? /* @__PURE__ */ l(
41378
+ return /* @__PURE__ */ j(W, { gap: 15, align: "center", ...p, children: [
41379
+ b != null && b.assetImage ? /* @__PURE__ */ l(
41380
41380
  ft,
41381
41381
  {
41382
41382
  width: 30,
@@ -41388,8 +41388,8 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41388
41388
  {
41389
41389
  height: 30,
41390
41390
  width: 30,
41391
- src: g.assetImage,
41392
- title: (A = g == null ? void 0 : g.asset) == null ? void 0 : A.name
41391
+ src: b.assetImage,
41392
+ title: (A = b == null ? void 0 : b.asset) == null ? void 0 : A.name
41393
41393
  }
41394
41394
  )
41395
41395
  },
@@ -41402,30 +41402,30 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41402
41402
  flex: 1
41403
41403
  },
41404
41404
  justify: "space-between",
41405
- children: /* @__PURE__ */ j(O, { align: "center", children: [
41405
+ children: /* @__PURE__ */ j(W, { align: "center", children: [
41406
41406
  /* @__PURE__ */ j(v2, { children: [
41407
- /* @__PURE__ */ j(O, { gap: 5, align: "center", children: [
41408
- /* @__PURE__ */ l(z2, { normalTextColor: !0, title: g == null ? void 0 : g.amount, children: Bi(g == null ? void 0 : g.amount) }),
41409
- /* @__PURE__ */ l(S2, { normalTextColor: !0, children: g == null ? void 0 : g.symbol }),
41407
+ /* @__PURE__ */ j(W, { gap: 5, align: "center", children: [
41408
+ /* @__PURE__ */ l(z2, { normalTextColor: !0, title: b == null ? void 0 : b.amount, children: Bi(b == null ? void 0 : b.amount) }),
41409
+ /* @__PURE__ */ l(S2, { normalTextColor: !0, children: b == null ? void 0 : b.symbol }),
41410
41410
  /* @__PURE__ */ j(
41411
41411
  q2,
41412
41412
  {
41413
41413
  renderingEditDestinationWalletOrExplorerLink: C,
41414
- title: g == null ? void 0 : g.chainName,
41414
+ title: b == null ? void 0 : b.chainName,
41415
41415
  textWrap: "nowrap",
41416
41416
  children: [
41417
41417
  " ",
41418
41418
  "on ",
41419
- g == null ? void 0 : g.chainName
41419
+ b == null ? void 0 : b.chainName
41420
41420
  ]
41421
41421
  }
41422
41422
  ),
41423
41423
  B
41424
41424
  ] }),
41425
41425
  " ",
41426
- a && /* @__PURE__ */ l(K, { color: d.warning.text, children: "Signature required" })
41426
+ a && /* @__PURE__ */ l(X, { color: d.warning.text, children: "Signature required" })
41427
41427
  ] }),
41428
- q
41428
+ S
41429
41429
  ] })
41430
41430
  }
41431
41431
  )
@@ -41451,7 +41451,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41451
41451
  font-size: 16px;
41452
41452
  color: ${(e) => e.theme.primary.text.normal};
41453
41453
  border: 1px solid ${(e) => e.theme.primary.text.normal};
41454
- `, F2 = N(K)`
41454
+ `, F2 = N(X)`
41455
41455
  text-transform: lowercase;
41456
41456
  `, B2 = N.img`
41457
41457
  border-radius: 50%;
@@ -41485,7 +41485,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41485
41485
  }
41486
41486
  )
41487
41487
  }
41488
- ), M2 = N(O)`
41488
+ ), M2 = N(W)`
41489
41489
  flex-shrink: 0;
41490
41490
  position: relative;
41491
41491
  overflow: hidden;
@@ -41526,13 +41526,13 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41526
41526
  transform: rotate(360deg);
41527
41527
  }
41528
41528
  }
41529
- `, P2 = N(O)`
41529
+ `, P2 = N(W)`
41530
41530
  width: ${({ width: e }) => e}px;
41531
41531
  height: ${({ height: e }) => e}px;
41532
41532
  position: absolute;
41533
41533
  border-radius: 50%;
41534
41534
  background: ${({ theme: e }) => e.primary.background.normal};
41535
- `, z2 = N(K)`
41535
+ `, z2 = N(X)`
41536
41536
  max-width: 80px;
41537
41537
  text-overflow: ellipsis;
41538
41538
  overflow: hidden;
@@ -41540,7 +41540,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41540
41540
  @media (max-width: 400px) {
41541
41541
  max-width: 55px;
41542
41542
  }
41543
- `, S2 = N(K)`
41543
+ `, S2 = N(X)`
41544
41544
  max-width: 55px;
41545
41545
  overflow: hidden;
41546
41546
  text-overflow: ellipsis;
@@ -41548,7 +41548,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41548
41548
  @media (max-width: 400px) {
41549
41549
  max-width: 40px;
41550
41550
  }
41551
- `, q2 = N(K)`
41551
+ `, q2 = N(X)`
41552
41552
  max-width: 95px;
41553
41553
  text-overflow: ellipsis;
41554
41554
  overflow: hidden;
@@ -41596,7 +41596,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41596
41596
  width: 100%;
41597
41597
  align-items: center;
41598
41598
  justify-content: center;
41599
- `, j2 = N(O)`
41599
+ `, j2 = N(W)`
41600
41600
  height: 40px;
41601
41601
  margin-top: 10px;
41602
41602
  padding: 0 12px;
@@ -41619,19 +41619,19 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41619
41619
  bottomContent: r,
41620
41620
  headerRightContent: s
41621
41621
  }) => {
41622
- var C, E, q;
41623
- const m = de(), [p, d] = se(), u = W(() => {
41622
+ var C, E, S;
41623
+ const m = de(), [p, d] = se(), u = U(() => {
41624
41624
  const B = n.filter(
41625
41625
  (I) => Jr(I) || (I == null ? void 0 : I.isAvailable) !== !1
41626
41626
  );
41627
41627
  return B.length === 1 ? n : B;
41628
- }, [n]), x = Y(aa), b = qp({
41628
+ }, [n]), x = Y(aa), g = qp({
41629
41629
  mutationKey: ["connectWallet"],
41630
41630
  mutationFn: async (B) => t ? await B.connect(t) : await B.connect(),
41631
41631
  onSuccess: () => {
41632
- c && x(), oe.remove(he.SetAddressModal), oe.remove(he.WalletSelectorModal), p && (a == null || a(p));
41632
+ c && x(), te.remove(he.SetAddressModal), te.remove(he.WalletSelectorModal), p && (a == null || a(p));
41633
41633
  }
41634
- }), g = ye(
41634
+ }), b = ye(
41635
41635
  (B) => {
41636
41636
  var z;
41637
41637
  const I = Eo(B) ? B.walletPrettyName ?? B.walletName : B.walletName, T = Eo(B) ? (z = B == null ? void 0 : B.walletInfo) == null ? void 0 : z.logo : void 0, h = Jr(B) ? B == null ? void 0 : B.rightContent : void 0, D = Eo(B) ? B == null ? void 0 : B.isAvailable : void 0, A = (h == null ? void 0 : h()) ?? /* @__PURE__ */ l(fe, {}), F = T ? /* @__PURE__ */ l(
@@ -41648,26 +41648,26 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41648
41648
  so,
41649
41649
  {
41650
41650
  onClick: () => {
41651
- Eo(B) ? o ? (o(B), oe.remove(he.SetAddressModal), oe.remove(he.WalletSelectorModal)) : (d(B), b.mutate(B)) : B.onSelect();
41651
+ Eo(B) ? o ? (o(B), te.remove(he.SetAddressModal), te.remove(he.WalletSelectorModal)) : (d(B), g.mutate(B)) : B.onSelect();
41652
41652
  },
41653
41653
  style: { marginTop: Vt },
41654
- leftContent: /* @__PURE__ */ j(O, { style: { width: "100%" }, align: "center", justify: "space-between", children: [
41655
- /* @__PURE__ */ j(O, { align: "center", gap: 10, children: [
41654
+ leftContent: /* @__PURE__ */ j(W, { style: { width: "100%" }, align: "center", justify: "space-between", children: [
41655
+ /* @__PURE__ */ j(W, { align: "center", gap: 10, children: [
41656
41656
  F,
41657
41657
  /* @__PURE__ */ l(Te, { children: I })
41658
41658
  ] }),
41659
- D !== void 0 && /* @__PURE__ */ l(K, { children: D ? "Installed" : "Not Installed" })
41659
+ D !== void 0 && /* @__PURE__ */ l(X, { children: D ? "Installed" : "Not Installed" })
41660
41660
  ] }),
41661
41661
  rightContent: A
41662
41662
  },
41663
41663
  I
41664
41664
  );
41665
41665
  },
41666
- [b, o]
41667
- ), f = W(() => Math.min(530, u.length * (Qr + Vt)), [u.length]), v = W(() => {
41666
+ [g, o]
41667
+ ), f = U(() => Math.min(530, u.length * (Qr + Vt)), [u.length]), v = U(() => {
41668
41668
  var B, I, T, h;
41669
- if (b.isError || b.isPending) {
41670
- const D = b.isError ? "Failed to connect" : "Connecting to";
41669
+ if (g.isError || g.isPending) {
41670
+ const D = g.isError ? "Failed to connect" : "Connecting to";
41671
41671
  return /* @__PURE__ */ l(Am, { children: /* @__PURE__ */ j(T2, { children: [
41672
41672
  /* @__PURE__ */ l(
41673
41673
  ft,
@@ -41675,14 +41675,14 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41675
41675
  width: 80,
41676
41676
  height: 80,
41677
41677
  backgroundColor: m.primary.text.normal,
41678
- status: b.isError ? "failed" : "pending",
41678
+ status: g.isError ? "failed" : "pending",
41679
41679
  borderSize: 8,
41680
- children: ((I = (B = b.variables) == null ? void 0 : B.walletInfo) == null ? void 0 : I.logo) && /* @__PURE__ */ l(
41680
+ children: ((I = (B = g.variables) == null ? void 0 : B.walletInfo) == null ? void 0 : I.logo) && /* @__PURE__ */ l(
41681
41681
  "img",
41682
41682
  {
41683
41683
  style: { objectFit: "cover" },
41684
- src: b.variables.walletInfo.logo,
41685
- alt: `${(T = b.variables) == null ? void 0 : T.walletPrettyName} logo`
41684
+ src: g.variables.walletInfo.logo,
41685
+ alt: `${(T = g.variables) == null ? void 0 : T.walletPrettyName} logo`
41686
41686
  }
41687
41687
  )
41688
41688
  }
@@ -41690,9 +41690,9 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41690
41690
  /* @__PURE__ */ j(Te, { color: m.primary.text.lowContrast, textAlign: "center", children: [
41691
41691
  D,
41692
41692
  " ",
41693
- (h = b.variables) == null ? void 0 : h.walletPrettyName
41693
+ (h = g.variables) == null ? void 0 : h.walletPrettyName
41694
41694
  ] }),
41695
- b.error && /* @__PURE__ */ l(Te, { textAlign: "center", fontSize: 14, color: m.primary.text.lowContrast, children: b.error.message })
41695
+ g.error && /* @__PURE__ */ l(Te, { textAlign: "center", fontSize: 14, color: m.primary.text.lowContrast, children: g.error.message })
41696
41696
  ] }) });
41697
41697
  }
41698
41698
  return /* @__PURE__ */ l(
@@ -41701,7 +41701,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41701
41701
  height: f,
41702
41702
  listItems: u,
41703
41703
  itemHeight: Qr + Vt,
41704
- renderItem: g,
41704
+ renderItem: b,
41705
41705
  itemKey: (D) => D.walletName,
41706
41706
  empty: {
41707
41707
  header: "No wallets available"
@@ -41709,13 +41709,13 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41709
41709
  }
41710
41710
  );
41711
41711
  }, [
41712
- b.error,
41713
- b.isError,
41714
- b.isPending,
41715
- (E = (C = b.variables) == null ? void 0 : C.walletInfo) == null ? void 0 : E.logo,
41716
- (q = b.variables) == null ? void 0 : q.walletPrettyName,
41712
+ g.error,
41713
+ g.isError,
41714
+ g.isPending,
41715
+ (E = (C = g.variables) == null ? void 0 : C.walletInfo) == null ? void 0 : E.logo,
41716
+ (S = g.variables) == null ? void 0 : S.walletPrettyName,
41717
41717
  f,
41718
- g,
41718
+ b,
41719
41719
  m.primary.text.lowContrast,
41720
41720
  m.primary.text.normal,
41721
41721
  u
@@ -41725,7 +41725,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41725
41725
  ua,
41726
41726
  {
41727
41727
  title: e,
41728
- onClickBackButton: b.isPending || b.isError ? b.reset : i,
41728
+ onClickBackButton: g.isPending || g.isError ? g.reset : i,
41729
41729
  rightContent: s
41730
41730
  }
41731
41731
  ),
@@ -41996,8 +41996,8 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
41996
41996
  if ((m == null ? void 0 : m.includes("penumbra")) && !p)
41997
41997
  return e1(t == null ? void 0 : t.onWalletDisconnected);
41998
41998
  const x = [];
41999
- for (const b of d) {
42000
- const g = fs(b), f = Fi(), v = Xo(b), C = _2(Q2(b), e), E = async ({ chainIdToConnect: B }) => {
41999
+ for (const g of d) {
42000
+ const b = fs(g), f = Fi(), v = Xo(g), C = _2(Q2(g), e), E = async ({ chainIdToConnect: B }) => {
42001
42001
  var T, h, D, A;
42002
42002
  const I = !B || B && C.includes(B);
42003
42003
  try {
@@ -42005,11 +42005,11 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42005
42005
  const z = o2(B);
42006
42006
  if (!z)
42007
42007
  throw new Error(`connect: Chain info not found for chainID: ${m}`);
42008
- !f && !g && await Ji(b).experimentalSuggestChain(z);
42008
+ !f && !b && await Ji(g).experimentalSuggestChain(z);
42009
42009
  }
42010
42010
  const F = await wa({
42011
42011
  chainId: I ? C : B,
42012
- walletType: b,
42012
+ walletType: g,
42013
42013
  autoReconnect: !1
42014
42014
  });
42015
42015
  if (!(F != null && F.accounts))
@@ -42020,26 +42020,26 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42020
42020
  ), M = B && (F == null ? void 0 : F.accounts[B].bech32Address);
42021
42021
  if (n === void 0) {
42022
42022
  (T = t == null ? void 0 : t.onWalletConnected) == null || T.call(t, {
42023
- walletName: b,
42023
+ walletName: g,
42024
42024
  chainIdToAddressMap: w,
42025
42025
  address: M
42026
42026
  });
42027
42027
  const z = (h = F == null ? void 0 : F.accounts[Object.keys(F == null ? void 0 : F.accounts)[0]]) == null ? void 0 : h.bech32Address;
42028
42028
  i({
42029
42029
  id: z,
42030
- walletName: b,
42030
+ walletName: g,
42031
42031
  chainType: R.SVM
42032
42032
  });
42033
42033
  }
42034
42034
  return V("wallet connected", {
42035
- walletName: b,
42035
+ walletName: g,
42036
42036
  chainId: B,
42037
42037
  chainType: R.Cosmos
42038
42038
  }), { address: M };
42039
42039
  } catch (F) {
42040
42040
  const w = F;
42041
42041
  if (V("connect wallet error", {
42042
- walletName: b,
42042
+ walletName: g,
42043
42043
  chainId: B,
42044
42044
  ChainType: R.Cosmos,
42045
42045
  errorMessage: w == null ? void 0 : w.message
@@ -42050,7 +42050,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42050
42050
  if ((A = w == null ? void 0 : w.message) != null && A.toLowerCase().includes("no ethereum public key")) {
42051
42051
  const M = await wa({
42052
42052
  chainId: Z2,
42053
- walletType: b,
42053
+ walletType: g,
42054
42054
  autoReconnect: !1
42055
42055
  });
42056
42056
  return {
@@ -42059,8 +42059,8 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42059
42059
  }
42060
42060
  throw F;
42061
42061
  }
42062
- }, q = {
42063
- walletName: b,
42062
+ }, S = {
42063
+ walletName: g,
42064
42064
  walletPrettyName: v == null ? void 0 : v.name,
42065
42065
  walletChainType: R.Cosmos,
42066
42066
  walletInfo: {
@@ -42072,38 +42072,38 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42072
42072
  disconnect: async () => {
42073
42073
  var B;
42074
42074
  await r(), V("wallet disconnected", {
42075
- walletName: b,
42075
+ walletName: g,
42076
42076
  ChainType: R.Cosmos
42077
42077
  }), i(void 0), (B = t == null ? void 0 : t.onWalletDisconnected) == null || B.call(t, {
42078
- walletName: b,
42078
+ walletName: g,
42079
42079
  chainType: R.Cosmos
42080
42080
  });
42081
42081
  },
42082
42082
  getAddress: async ({ signRequired: B }) => {
42083
42083
  V("get address", {
42084
- walletName: b,
42084
+ walletName: g,
42085
42085
  ChainType: R.Cosmos,
42086
42086
  chainId: m
42087
42087
  });
42088
42088
  try {
42089
42089
  if (n && !B && m)
42090
- return { address: (await Ji(b).getKey(m)).bech32Address };
42090
+ return { address: (await Ji(g).getKey(m)).bech32Address };
42091
42091
  throw new Error("connect wallet");
42092
42092
  } catch {
42093
42093
  return E({ chainIdToConnect: m });
42094
42094
  }
42095
42095
  },
42096
- isWalletConnected: c === b,
42096
+ isWalletConnected: c === g,
42097
42097
  isAvailable: (() => {
42098
42098
  if (!f)
42099
42099
  try {
42100
- return !!Ji(b);
42100
+ return !!Ji(g);
42101
42101
  } catch {
42102
42102
  return !1;
42103
42103
  }
42104
42104
  })()
42105
42105
  };
42106
- x.push(q);
42106
+ x.push(S);
42107
42107
  }
42108
42108
  return x;
42109
42109
  },
@@ -42237,74 +42237,74 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42237
42237
  (u) => {
42238
42238
  const x = u === "pacific-1";
42239
42239
  x && (u = Go.id.toString());
42240
- const b = [];
42241
- for (const g of p) {
42242
- if (g.id === "com.okex.wallet" || b.findIndex((q) => q.walletName === g.id) !== -1)
42240
+ const g = [];
42241
+ for (const b of p) {
42242
+ if (b.id === "com.okex.wallet" || g.findIndex((S) => S.walletName === b.id) !== -1)
42243
42243
  continue;
42244
- const v = g.id === "walletConnect", C = async ({ chainIdToConnect: q = "1" }) => {
42244
+ const v = b.id === "walletConnect", C = async ({ chainIdToConnect: S = "1" }) => {
42245
42245
  var I, T, h, D, A;
42246
- const B = r && s !== Number(q) && g.id === (a == null ? void 0 : a.id);
42246
+ const B = r && s !== Number(S) && b.id === (a == null ? void 0 : a.id);
42247
42247
  try {
42248
- r && g.id !== (a == null ? void 0 : a.id) && await nr(oo), B && await ((I = g == null ? void 0 : g.switchChain) == null ? void 0 : I.call(g, {
42249
- chainId: Number(q)
42250
- })), await m({ connector: g, chainId: Number(q) }), e === void 0 && c(R.EVM);
42251
- const F = await g.getAccounts(), w = await g.getProvider(), M = (h = (T = w == null ? void 0 : w.session) == null ? void 0 : T.peer) == null ? void 0 : h.metadata;
42248
+ r && b.id !== (a == null ? void 0 : a.id) && await nr(oo), B && await ((I = b == null ? void 0 : b.switchChain) == null ? void 0 : I.call(b, {
42249
+ chainId: Number(S)
42250
+ })), await m({ connector: b, chainId: Number(S) }), e === void 0 && c(R.EVM);
42251
+ const F = await b.getAccounts(), w = await b.getProvider(), M = (h = (T = w == null ? void 0 : w.session) == null ? void 0 : T.peer) == null ? void 0 : h.metadata;
42252
42252
  return t(R.EVM), n === void 0 && ((D = o == null ? void 0 : o.onWalletConnected) == null || D.call(o, {
42253
- walletName: g.name,
42253
+ walletName: b.name,
42254
42254
  chainId: u,
42255
42255
  address: F[0]
42256
42256
  }), i({
42257
42257
  id: F[0],
42258
- walletName: g.id,
42258
+ walletName: b.id,
42259
42259
  chainType: R.EVM,
42260
- logo: (M == null ? void 0 : M.icons[0]) ?? (g == null ? void 0 : g.icon)
42260
+ logo: (M == null ? void 0 : M.icons[0]) ?? (b == null ? void 0 : b.icon)
42261
42261
  })), V("wallet connected", {
42262
- walletName: g.name,
42263
- chainId: q,
42262
+ walletName: b.name,
42263
+ chainId: S,
42264
42264
  chainType: R.EVM
42265
42265
  }), { address: F[0], logo: (A = M == null ? void 0 : M.icons) == null ? void 0 : A[0] };
42266
42266
  } catch (F) {
42267
42267
  const w = F;
42268
42268
  throw V("connect wallet error", {
42269
- walletName: g.name,
42270
- chainId: q,
42269
+ walletName: b.name,
42270
+ chainId: S,
42271
42271
  ChainType: R.EVM,
42272
42272
  errorMessage: w == null ? void 0 : w.message
42273
42273
  }), console.error(w), F;
42274
42274
  }
42275
42275
  }, E = {
42276
- walletName: g.id,
42277
- walletPrettyName: g.name,
42276
+ walletName: b.id,
42277
+ walletPrettyName: b.name,
42278
42278
  walletChainType: R.EVM,
42279
42279
  walletInfo: {
42280
- logo: v ? Ko : g.icon
42280
+ logo: v ? Ko : b.icon
42281
42281
  },
42282
- connect: async (q) => {
42283
- await C({ chainIdToConnect: q });
42282
+ connect: async (S) => {
42283
+ await C({ chainIdToConnect: S });
42284
42284
  },
42285
42285
  disconnect: async () => {
42286
- var q;
42286
+ var S;
42287
42287
  await nr(oo), V("wallet disconnected", {
42288
- walletName: g.name,
42288
+ walletName: b.name,
42289
42289
  chainId: u,
42290
42290
  ChainType: R.EVM
42291
- }), i(void 0), (q = o == null ? void 0 : o.onWalletDisconnected) == null || q.call(o, {
42292
- walletName: g.name,
42291
+ }), i(void 0), (S = o == null ? void 0 : o.onWalletDisconnected) == null || S.call(o, {
42292
+ walletName: b.name,
42293
42293
  chainType: R.EVM
42294
42294
  });
42295
42295
  },
42296
- getAddress: async ({ signRequired: q }) => {
42297
- if (q && !r)
42296
+ getAddress: async ({ signRequired: S }) => {
42297
+ if (S && !r)
42298
42298
  return C({
42299
42299
  chainIdToConnect: u
42300
42300
  });
42301
42301
  V("get address", {
42302
- walletName: g.name,
42302
+ walletName: b.name,
42303
42303
  chainId: u,
42304
42304
  ChainType: R.EVM
42305
42305
  });
42306
42306
  try {
42307
- const B = await g.getAccounts();
42307
+ const B = await b.getAccounts();
42308
42308
  if (B.length === 0)
42309
42309
  throw new Error("No accounts found");
42310
42310
  return { address: B[0] };
@@ -42314,13 +42314,13 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42314
42314
  });
42315
42315
  }
42316
42316
  },
42317
- isWalletConnected: g.id === (a == null ? void 0 : a.id)
42317
+ isWalletConnected: b.id === (a == null ? void 0 : a.id)
42318
42318
  };
42319
42319
  if (x) {
42320
- const q = g.name.toLowerCase().includes("keplr") || g.name.toLowerCase().includes("leap") || g.name.toLowerCase().includes("cosmostation");
42321
- E.walletPrettyName = `${g.name} ${q ? "(EVM)" : ""}`, E.getAddress = async () => {
42320
+ const S = b.name.toLowerCase().includes("keplr") || b.name.toLowerCase().includes("leap") || b.name.toLowerCase().includes("cosmostation");
42321
+ E.walletPrettyName = `${b.name} ${S ? "(EVM)" : ""}`, E.getAddress = async () => {
42322
42322
  V("get address", {
42323
- walletName: g.name,
42323
+ walletName: b.name,
42324
42324
  chainId: u,
42325
42325
  ChainType: R.Cosmos
42326
42326
  });
@@ -42340,7 +42340,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42340
42340
  } catch (T) {
42341
42341
  const h = T;
42342
42342
  throw V("get address error", {
42343
- walletName: g.name,
42343
+ walletName: b.name,
42344
42344
  chainId: u,
42345
42345
  ChainType: R.Cosmos,
42346
42346
  errorMessage: h == null ? void 0 : h.message
@@ -42349,9 +42349,9 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42349
42349
  }
42350
42350
  };
42351
42351
  }
42352
- b.push(E);
42352
+ g.push(E);
42353
42353
  }
42354
- return b;
42354
+ return g;
42355
42355
  },
42356
42356
  [
42357
42357
  p,
@@ -42373,15 +42373,15 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42373
42373
  const s = [];
42374
42374
  for (const m of ht) {
42375
42375
  const p = m.name === "WalletConnect", d = async () => {
42376
- var x, b, g, f, v, C, E;
42376
+ var x, g, b, f, v, C, E;
42377
42377
  try {
42378
42378
  await m.connect();
42379
- const q = e == null ? void 0 : e.find((T) => T.chainID === "solana");
42379
+ const S = e == null ? void 0 : e.find((T) => T.chainID === "solana");
42380
42380
  n === void 0 && a(R.SVM);
42381
- const B = (x = m.publicKey) == null ? void 0 : x.toBase58(), I = (v = (f = (g = (b = m == null ? void 0 : m._wallet) == null ? void 0 : b._UniversalProvider) == null ? void 0 : g.session) == null ? void 0 : f.peer) == null ? void 0 : v.metadata;
42381
+ const B = (x = m.publicKey) == null ? void 0 : x.toBase58(), I = (v = (f = (b = (g = m == null ? void 0 : m._wallet) == null ? void 0 : g._UniversalProvider) == null ? void 0 : b.session) == null ? void 0 : f.peer) == null ? void 0 : v.metadata;
42382
42382
  return c(R.SVM), i === void 0 && ((C = t == null ? void 0 : t.onWalletConnected) == null || C.call(t, {
42383
42383
  walletName: m.name,
42384
- chainId: q == null ? void 0 : q.chainID,
42384
+ chainId: S == null ? void 0 : S.chainID,
42385
42385
  address: B
42386
42386
  }), o({
42387
42387
  id: B,
@@ -42391,11 +42391,11 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42391
42391
  })), V("wallet connected", {
42392
42392
  walletName: m.name,
42393
42393
  chainType: R.SVM,
42394
- chainId: q == null ? void 0 : q.chainID,
42394
+ chainId: S == null ? void 0 : S.chainID,
42395
42395
  address: B
42396
42396
  }), { address: B, logo: (E = I == null ? void 0 : I.icons) == null ? void 0 : E[0] };
42397
- } catch (q) {
42398
- throw console.error(q), q;
42397
+ } catch (S) {
42398
+ throw console.error(S), S;
42399
42399
  }
42400
42400
  }, u = {
42401
42401
  walletName: m.name,
@@ -42411,12 +42411,12 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42411
42411
  try {
42412
42412
  if (x)
42413
42413
  throw new Error("always prompt wallet connection");
42414
- const b = m.publicKey;
42415
- if (!b)
42414
+ const g = m.publicKey;
42415
+ if (!g)
42416
42416
  throw new Error("Address not found");
42417
- return { address: b.toBase58() };
42418
- } catch (b) {
42419
- return console.error(b), d();
42417
+ return { address: g.toBase58() };
42418
+ } catch (g) {
42419
+ return console.error(g), d();
42420
42420
  }
42421
42421
  },
42422
42422
  disconnect: async () => {
@@ -42451,7 +42451,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42451
42451
  }) => {
42452
42452
  var p;
42453
42453
  const { createCosmosWallets: o } = km(), { createEvmWallets: t } = wm(), { createSolanaWallets: c } = ym(), { data: a } = L(Ee), r = e ? (p = a == null ? void 0 : a.find((d) => d.chainID === e)) == null ? void 0 : p.chainType : i, s = n && e === "pacific-1" ? "sei" : r;
42454
- return W(() => {
42454
+ return U(() => {
42455
42455
  switch (s) {
42456
42456
  case "sei": {
42457
42457
  const d = o(e), u = t(e);
@@ -42482,9 +42482,9 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42482
42482
  return ye(
42483
42483
  // if checkChainType is true, it only check wallet connected no chainId is dependent
42484
42484
  (p, d, u) => {
42485
- var g, f;
42485
+ var b, f;
42486
42486
  if (!p) return;
42487
- if (u ?? (u = (g = t == null ? void 0 : t.find((v) => v.chainID === p)) == null ? void 0 : g.chainType), o && o[p])
42487
+ if (u ?? (u = (b = t == null ? void 0 : t.find((v) => v.chainID === p)) == null ? void 0 : b.chainType), o && o[p])
42488
42488
  return {
42489
42489
  address: o[p],
42490
42490
  chainType: u,
@@ -42493,7 +42493,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42493
42493
  prettyName: "injected"
42494
42494
  }
42495
42495
  };
42496
- const b = (() => {
42496
+ const g = (() => {
42497
42497
  if (!(!c || !p))
42498
42498
  return c[p];
42499
42499
  })();
@@ -42502,24 +42502,24 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42502
42502
  if (!e.cosmos) return;
42503
42503
  const v = Xo(e.cosmos.walletName);
42504
42504
  return {
42505
- address: (b == null ? void 0 : b.bech32Address) ?? ((f = e.cosmos) == null ? void 0 : f.id),
42505
+ address: (g == null ? void 0 : g.bech32Address) ?? ((f = e.cosmos) == null ? void 0 : f.id),
42506
42506
  chainType: u,
42507
42507
  wallet: {
42508
42508
  name: e.cosmos.walletName,
42509
42509
  prettyName: v.name,
42510
42510
  logo: v.imgSrc,
42511
- isLedger: b == null ? void 0 : b.isNanoLedger
42511
+ isLedger: g == null ? void 0 : g.isNanoLedger
42512
42512
  }
42513
42513
  };
42514
42514
  }
42515
42515
  case R.EVM: {
42516
42516
  if (r.chainId !== Number(p) && !d || !r.address || !r.connector) return;
42517
42517
  const v = () => {
42518
- var C, E, q;
42519
- return ((C = r == null ? void 0 : r.connector) == null ? void 0 : C.id) === "walletConnect" ? (n == null ? void 0 : n.logo) ?? Ko : (E = r == null ? void 0 : r.connector) != null && E.id.includes("keplr") ? Xo(le.KEPLR).imgSrc : (q = s.find((B) => {
42518
+ var C, E, S;
42519
+ return ((C = r == null ? void 0 : r.connector) == null ? void 0 : C.id) === "walletConnect" ? (n == null ? void 0 : n.logo) ?? Ko : (E = r == null ? void 0 : r.connector) != null && E.id.includes("keplr") ? Xo(le.KEPLR).imgSrc : (S = s.find((B) => {
42520
42520
  var I;
42521
42521
  return B.id === ((I = r.connector) == null ? void 0 : I.id);
42522
- })) == null ? void 0 : q.icon;
42522
+ })) == null ? void 0 : S.icon;
42523
42523
  };
42524
42524
  return {
42525
42525
  address: r.address,
@@ -42599,14 +42599,14 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42599
42599
  }) => {
42600
42600
  var p;
42601
42601
  const [o, t] = se(!1), c = fi(null), a = fi(null), [r, s] = se(0);
42602
- ae(() => {
42602
+ re(() => {
42603
42603
  var d;
42604
42604
  if (o && a.current) {
42605
42605
  const u = a.current.offsetHeight, x = ((d = c.current) == null ? void 0 : d.offsetHeight) ?? 0;
42606
42606
  s(u / 2 - x / 2);
42607
42607
  }
42608
42608
  }, [o]);
42609
- const m = W(() => typeof n == "string" ? /* @__PURE__ */ l(K, { normalTextColor: !0, textWrap: "nowrap", children: n }) : n, [n]);
42609
+ const m = U(() => typeof n == "string" ? /* @__PURE__ */ l(X, { normalTextColor: !0, textWrap: "nowrap", children: n }) : n, [n]);
42610
42610
  return /* @__PURE__ */ j(
42611
42611
  c1,
42612
42612
  {
@@ -42660,14 +42660,14 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42660
42660
  assetDenom: m == null ? void 0 : m.denom,
42661
42661
  chainId: m == null ? void 0 : m.chainID
42662
42662
  });
42663
- const { data: p } = L(Ee), d = W(() => {
42663
+ const { data: p } = L(Ee), d = U(() => {
42664
42664
  if (!(m != null && m.chainID) || !p) return;
42665
- const q = p.find((B) => B.chainID === m.chainID);
42666
- if ((q == null ? void 0 : q.chainType) === e)
42665
+ const S = p.find((B) => B.chainID === m.chainID);
42666
+ if ((S == null ? void 0 : S.chainType) === e)
42667
42667
  return m.chainID;
42668
- }, [m == null ? void 0 : m.chainID, p, e]), u = W(() => r(n, !0), [n, r]), x = xo(u == null ? void 0 : u.address, s), g = da({ chainType: e }).find((q) => q.walletName === (u == null ? void 0 : u.wallet.name)), f = W(() => {
42669
- var q, B;
42670
- return !u || !g ? null : s ? /* @__PURE__ */ l(
42668
+ }, [m == null ? void 0 : m.chainID, p, e]), u = U(() => r(n, !0), [n, r]), x = xo(u == null ? void 0 : u.address, s), b = da({ chainType: e }).find((S) => S.walletName === (u == null ? void 0 : u.wallet.name)), f = U(() => {
42669
+ var S, B;
42670
+ return !u || !b ? null : s ? /* @__PURE__ */ l(
42671
42671
  tn,
42672
42672
  {
42673
42673
  align: "center",
@@ -42677,9 +42677,9 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42677
42677
  I.stopPropagation(), V("connect eco row: disconnect button - clicked", {
42678
42678
  chainType: e,
42679
42679
  wallet: u == null ? void 0 : u.wallet.name
42680
- }), g == null || g.disconnect(), oe.remove(he.ConnectedWalletModal);
42680
+ }), b == null || b.disconnect(), te.remove(he.ConnectedWalletModal);
42681
42681
  },
42682
- children: /* @__PURE__ */ l(Em, { height: "22", width: "22", color: (B = (q = a == null ? void 0 : a.primary) == null ? void 0 : q.text) == null ? void 0 : B.ultraLowContrast })
42682
+ children: /* @__PURE__ */ l(Em, { height: "22", width: "22", color: (B = (S = a == null ? void 0 : a.primary) == null ? void 0 : S.text) == null ? void 0 : B.ultraLowContrast })
42683
42683
  }
42684
42684
  ) : /* @__PURE__ */ l(
42685
42685
  ci,
@@ -42690,7 +42690,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42690
42690
  I.stopPropagation(), V("connect eco row: disconnect button - clicked", {
42691
42691
  chainType: e,
42692
42692
  wallet: u == null ? void 0 : u.wallet.name
42693
- }), g == null || g.disconnect(), oe.remove(he.ConnectedWalletModal);
42693
+ }), b == null || b.disconnect(), te.remove(he.ConnectedWalletModal);
42694
42694
  },
42695
42695
  children: "Disconnect"
42696
42696
  }
@@ -42698,13 +42698,13 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42698
42698
  }, [
42699
42699
  u,
42700
42700
  e,
42701
- g,
42701
+ b,
42702
42702
  s,
42703
42703
  (E = (C = a == null ? void 0 : a.primary) == null ? void 0 : C.text) == null ? void 0 : E.ultraLowContrast
42704
42704
  ]), v = () => {
42705
42705
  V("connect eco row: connect button - clicked", {
42706
42706
  chainType: e
42707
- }), oe.remove(he.ConnectedWalletModal), oe.show(he.WalletSelectorModal, {
42707
+ }), te.remove(he.ConnectedWalletModal), te.show(he.WalletSelectorModal, {
42708
42708
  chainType: e,
42709
42709
  fromConnectedWalletModal: o,
42710
42710
  chainId: d
@@ -42715,7 +42715,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42715
42715
  {
42716
42716
  style: { marginTop: s1, minHeight: `${r1}px` },
42717
42717
  onClick: v,
42718
- leftContent: u ? /* @__PURE__ */ j(O, { align: "center", gap: 10, children: [
42718
+ leftContent: u ? /* @__PURE__ */ j(W, { align: "center", gap: 10, children: [
42719
42719
  (u == null ? void 0 : u.wallet.logo) && /* @__PURE__ */ l(
42720
42720
  "img",
42721
42721
  {
@@ -42727,7 +42727,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42727
42727
  title: u == null ? void 0 : u.wallet.prettyName
42728
42728
  }
42729
42729
  ),
42730
- /* @__PURE__ */ j(O, { align: "baseline", gap: 8, children: [
42730
+ /* @__PURE__ */ j(W, { align: "baseline", gap: 8, children: [
42731
42731
  /* @__PURE__ */ l(Pi, { content: u == null ? void 0 : u.address, children: /* @__PURE__ */ l(Te, { children: x }) }),
42732
42732
  /* @__PURE__ */ l(
42733
42733
  Pi,
@@ -42738,8 +42738,8 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42738
42738
  {
42739
42739
  align: "center",
42740
42740
  justify: "center",
42741
- onClick: (q) => {
42742
- q.stopPropagation(), t(u == null ? void 0 : u.address);
42741
+ onClick: (S) => {
42742
+ S.stopPropagation(), t(u == null ? void 0 : u.address);
42743
42743
  },
42744
42744
  children: /* @__PURE__ */ l(fm, { width: "10", height: "10", color: a.primary.text.lowContrast })
42745
42745
  }
@@ -42759,7 +42759,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42759
42759
  }, m1 = ({ chainId: e }) => {
42760
42760
  const n = de(), { data: i } = L(Ee), o = i == null ? void 0 : i.find((t) => t.chainID === e);
42761
42761
  return o ? /* @__PURE__ */ l(Te, { fontSize: 12, color: n.primary.text.lowContrast, children: o == null ? void 0 : o.prettyName }) : null;
42762
- }, p1 = N(O)`
42762
+ }, p1 = N(W)`
42763
42763
  width: 22px;
42764
42764
  height: 22px;
42765
42765
  border-radius: 50%;
@@ -42771,7 +42771,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42771
42771
  onClick: n,
42772
42772
  connectedWalletModal: i
42773
42773
  }) => {
42774
- const o = vm(), t = W(() => h1.filter((c) => c !== e), [e]);
42774
+ const o = vm(), t = U(() => h1.filter((c) => c !== e), [e]);
42775
42775
  return /* @__PURE__ */ l(fe, { children: t.map((c) => /* @__PURE__ */ l(
42776
42776
  l1,
42777
42777
  {
@@ -42783,22 +42783,22 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42783
42783
  c
42784
42784
  )) });
42785
42785
  }, u1 = bo((e) => {
42786
- const { chainId: n, chainType: i, fromConnectedWalletModal: o } = e, { data: t } = L(Ee), c = Ct(), a = da({ chainID: n, chainType: i }), r = L(ge), m = ui()(r == null ? void 0 : r.chainID), p = t == null ? void 0 : t.find((q) => q.chainID === (r == null ? void 0 : r.chainID)), [d, u] = se(
42786
+ const { chainId: n, chainType: i, fromConnectedWalletModal: o } = e, { data: t } = L(Ee), c = Ct(), a = da({ chainID: n, chainType: i }), r = L(ge), m = ui()(r == null ? void 0 : r.chainID), p = t == null ? void 0 : t.find((S) => S.chainID === (r == null ? void 0 : r.chainID)), [d, u] = se(
42787
42787
  i ?? (p == null ? void 0 : p.chainType)
42788
- ), x = vm(), b = t == null ? void 0 : t.find((q) => {
42788
+ ), x = vm(), g = t == null ? void 0 : t.find((S) => {
42789
42789
  if (d)
42790
- return q.chainID === x[d];
42791
- }), g = !m && d === (p == null ? void 0 : p.chainType), f = W(() => {
42792
- var q;
42793
- return (q = t == null ? void 0 : t.find((B) => B.chainID === (r == null ? void 0 : r.chainID))) == null ? void 0 : q.chainType;
42790
+ return S.chainID === x[d];
42791
+ }), b = !m && d === (p == null ? void 0 : p.chainType), f = U(() => {
42792
+ var S;
42793
+ return (S = t == null ? void 0 : t.find((B) => B.chainID === (r == null ? void 0 : r.chainID))) == null ? void 0 : S.chainType;
42794
42794
  }, [t, r == null ? void 0 : r.chainID]), v = () => {
42795
- oe.remove(he.WalletSelectorModal), o ? oe.show(he.ConnectedWalletModal) : g || (u(p == null ? void 0 : p.chainType), oe.show(he.WalletSelectorModal, {
42795
+ te.remove(he.WalletSelectorModal), o ? te.show(he.ConnectedWalletModal) : b || (u(p == null ? void 0 : p.chainType), te.show(he.WalletSelectorModal, {
42796
42796
  chainId: p == null ? void 0 : p.chainID
42797
42797
  }));
42798
- }, C = (q) => {
42799
- q != null && q.walletChainType && (q == null ? void 0 : q.walletChainType) !== (p == null ? void 0 : p.chainType) && c(q.walletChainType);
42800
- }, E = W(() => {
42801
- switch ((b == null ? void 0 : b.chainType) ?? (p == null ? void 0 : p.chainType)) {
42798
+ }, C = (S) => {
42799
+ S != null && S.walletChainType && (S == null ? void 0 : S.walletChainType) !== (p == null ? void 0 : p.chainType) && c(S.walletChainType);
42800
+ }, E = U(() => {
42801
+ switch ((g == null ? void 0 : g.chainType) ?? (p == null ? void 0 : p.chainType)) {
42802
42802
  case R.Cosmos:
42803
42803
  return "Connect cosmos wallet";
42804
42804
  case R.EVM:
@@ -42808,7 +42808,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42808
42808
  default:
42809
42809
  return "Connect wallet";
42810
42810
  }
42811
- }, [b == null ? void 0 : b.chainType, p == null ? void 0 : p.chainType]);
42811
+ }, [g == null ? void 0 : g.chainType, p == null ? void 0 : p.chainType]);
42812
42812
  return /* @__PURE__ */ l(
42813
42813
  Cm,
42814
42814
  {
@@ -42823,10 +42823,10 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42823
42823
  {
42824
42824
  width: "25px",
42825
42825
  height: "25px",
42826
- src: (b == null ? void 0 : b.logoURI) ?? (p == null ? void 0 : p.logoURI)
42826
+ src: (g == null ? void 0 : g.logoURI) ?? (p == null ? void 0 : p.logoURI)
42827
42827
  }
42828
42828
  ) }),
42829
- bottomContent: g && /* @__PURE__ */ j(pe, { children: [
42829
+ bottomContent: b && /* @__PURE__ */ j(pe, { children: [
42830
42830
  /* @__PURE__ */ l(d1, {}),
42831
42831
  /* @__PURE__ */ l(Fm, { excludeChainType: f, onClick: u })
42832
42832
  ] })
@@ -42836,7 +42836,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42836
42836
  height: 1px;
42837
42837
  background-color: ${({ theme: e }) => e.primary.text.ultraLowContrast};
42838
42838
  margin: 10px;
42839
- `, D1 = N(O)`
42839
+ `, D1 = N(W)`
42840
42840
  width: 40px;
42841
42841
  height: 40px;
42842
42842
  border-radius: 10px;
@@ -42852,7 +42852,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42852
42852
  {
42853
42853
  title: "Wallets",
42854
42854
  onClickBackButton: () => {
42855
- V("connect eco modal: header back button - clicked"), oe.remove(he.ConnectedWalletModal);
42855
+ V("connect eco modal: header back button - clicked"), te.remove(he.ConnectedWalletModal);
42856
42856
  },
42857
42857
  rightContent: e != null && e.chainID ? /* @__PURE__ */ l("img", { src: n, height: 36, width: 36, title: i }) : null
42858
42858
  }
@@ -42925,11 +42925,11 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42925
42925
  )
42926
42926
  ] }), A1 = () => {
42927
42927
  const e = L(ai);
42928
- return W(
42928
+ return U(
42929
42929
  () => e.slippage !== yc.slippage || e.routePreference !== yc.routePreference,
42930
42930
  [e]
42931
42931
  );
42932
- }, Fc = /* @__PURE__ */ j(O, { "data-logo": "skip-go", align: "center", gap: 5, children: [
42932
+ }, Fc = /* @__PURE__ */ j(W, { "data-logo": "skip-go", align: "center", gap: 5, children: [
42933
42933
  "Powered by ",
42934
42934
  /* @__PURE__ */ l(Bm, {})
42935
42935
  ] }), C1 = ({
@@ -42938,26 +42938,26 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42938
42938
  showEstimatedTime: i,
42939
42939
  highlightSettings: o
42940
42940
  }) => {
42941
- const { data: t, isLoading: c } = L(Un), a = A1(), r = L(Dt), s = Ze(), m = bt(t), p = Cc(t == null ? void 0 : t.estimatedRouteDurationSeconds), d = (t == null ? void 0 : t.txsRequired) && t.txsRequired > 1, u = W(() => t != null && t.txsRequired ? /* @__PURE__ */ l(O, { gap: 4, align: "center", children: /* @__PURE__ */ j(k1, { gap: 5, align: "flex-end", children: [
42941
+ const { data: t, isLoading: c } = L(Un), a = A1(), r = L(Dt), s = Ze(), m = bt(t), p = Cc(t == null ? void 0 : t.estimatedRouteDurationSeconds), d = (t == null ? void 0 : t.txsRequired) && t.txsRequired > 1, u = U(() => t != null && t.txsRequired ? /* @__PURE__ */ l(W, { gap: 4, align: "center", children: /* @__PURE__ */ j(k1, { gap: 5, align: "flex-end", children: [
42942
42942
  t.txsRequired,
42943
42943
  " ",
42944
42944
  Qi("Signature", t.txsRequired),
42945
42945
  " required",
42946
42946
  /* @__PURE__ */ l(cl, {})
42947
- ] }) }) : null, [t == null ? void 0 : t.txsRequired]), x = W(() => {
42947
+ ] }) }) : null, [t == null ? void 0 : t.txsRequired]), x = U(() => {
42948
42948
  switch (r) {
42949
42949
  case ti.FASTEST:
42950
42950
  return "Fastest route";
42951
42951
  case ti.CHEAPEST:
42952
42952
  return "Cheapest route";
42953
42953
  }
42954
- }, [r]), b = W(() => {
42954
+ }, [r]), g = U(() => {
42955
42955
  const f = () => m ? x : Fc;
42956
42956
  return /* @__PURE__ */ j(fe, { children: [
42957
42957
  (() => {
42958
42958
  if (e) return e;
42959
42959
  if (!c && n && t)
42960
- return /* @__PURE__ */ l(O, { align: "flex-end", gap: 8, children: i && p && /* @__PURE__ */ j(fe, { children: [
42960
+ return /* @__PURE__ */ l(W, { align: "flex-end", gap: 8, children: i && p && /* @__PURE__ */ j(fe, { children: [
42961
42961
  /* @__PURE__ */ j(
42962
42962
  es,
42963
42963
  {
@@ -42973,7 +42973,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42973
42973
  ]
42974
42974
  }
42975
42975
  ),
42976
- /* @__PURE__ */ l(O, { gap: 8, align: "flex-end", children: p })
42976
+ /* @__PURE__ */ l(W, { gap: 8, align: "flex-end", children: p })
42977
42977
  ] }) });
42978
42978
  })() ?? /* @__PURE__ */ l("div", {}),
42979
42979
  f()
@@ -42989,11 +42989,11 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
42989
42989
  a,
42990
42990
  i,
42991
42991
  n
42992
- ]), g = W(() => /* @__PURE__ */ j(fe, { children: [
42992
+ ]), b = U(() => /* @__PURE__ */ j(fe, { children: [
42993
42993
  (() => {
42994
42994
  if (e) return e;
42995
42995
  if (!c && n && t)
42996
- return /* @__PURE__ */ j(O, { align: "flex-end", gap: 10, height: 13, children: [
42996
+ return /* @__PURE__ */ j(W, { align: "flex-end", gap: 10, height: 13, children: [
42997
42997
  i && p && /* @__PURE__ */ j(fe, { children: [
42998
42998
  /* @__PURE__ */ j(
42999
42999
  es,
@@ -43010,7 +43010,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
43010
43010
  ]
43011
43011
  }
43012
43012
  ),
43013
- /* @__PURE__ */ l(O, { gap: 8, align: "flex-end", children: p })
43013
+ /* @__PURE__ */ l(W, { gap: 8, align: "flex-end", children: p })
43014
43014
  ] }),
43015
43015
  d ? u : m ? x : null
43016
43016
  ] });
@@ -43030,7 +43030,7 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
43030
43030
  i,
43031
43031
  n
43032
43032
  ]);
43033
- return s ? b : g;
43033
+ return s ? g : b;
43034
43034
  }, Da = ({
43035
43035
  onClick: e,
43036
43036
  content: n,
@@ -43057,14 +43057,14 @@ const u2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t })
43057
43057
  }
43058
43058
  )
43059
43059
  }
43060
- ), k1 = N(O)`
43060
+ ), k1 = N(W)`
43061
43061
  ${({ theme: e }) => `color: ${e.warning.text}`};
43062
- `, es = N(O)`
43062
+ `, es = N(W)`
43063
43063
  ${({ highlightSettings: e, theme: n }) => {
43064
43064
  if (e)
43065
43065
  return `color: ${n.primary.text.normal}`;
43066
43066
  }}
43067
- `, ns = N(O)`
43067
+ `, ns = N(W)`
43068
43068
  position: relative;
43069
43069
 
43070
43070
  svg {
@@ -43131,7 +43131,7 @@ const w1 = new Intl.NumberFormat("en-US", {
43131
43131
  }
43132
43132
  ), E1 = () => {
43133
43133
  const [e, n] = se(!1), [i, o] = se(""), [t, c] = me(mm), a = !!(t && !jr.includes(t));
43134
- return ae(() => {
43134
+ return re(() => {
43135
43135
  a && o(t == null ? void 0 : t.toString());
43136
43136
  }, [t, a]), /* @__PURE__ */ j(F1, { children: [
43137
43137
  /* @__PURE__ */ j(P1, { align: "center", children: [
@@ -43140,7 +43140,7 @@ const w1 = new Intl.NumberFormat("en-US", {
43140
43140
  /* @__PURE__ */ l(
43141
43141
  Pi,
43142
43142
  {
43143
- content: /* @__PURE__ */ l(K, { normalTextColor: !0, style: { width: 250 }, children: "If price changes unfavorably during the transaction by more than this amount, the transaction will revert." }),
43143
+ content: /* @__PURE__ */ l(X, { normalTextColor: !0, style: { width: 250 }, children: "If price changes unfavorably during the transaction by more than this amount, the transaction will revert." }),
43144
43144
  children: /* @__PURE__ */ l(Mm, {})
43145
43145
  }
43146
43146
  )
@@ -43193,19 +43193,19 @@ const w1 = new Intl.NumberFormat("en-US", {
43193
43193
  justify-content: space-between;
43194
43194
  align-items: flex-start;
43195
43195
  gap: 15px;
43196
- `, B1 = N(O)`
43196
+ `, B1 = N(W)`
43197
43197
  width: 100%;
43198
43198
  `, M1 = N.div`
43199
43199
  position: relative;
43200
43200
  width: 60px;
43201
43201
  width: 100%;
43202
- `, P1 = N(O).attrs({
43203
- as: K,
43202
+ `, P1 = N(W).attrs({
43203
+ as: X,
43204
43204
  normalTextColor: !0
43205
43205
  })`
43206
43206
  position: relative;
43207
43207
  letter-spacing: 0.26px;
43208
- `, Bc = N(K)`
43208
+ `, Bc = N(X)`
43209
43209
  white-space: nowrap;
43210
43210
 
43211
43211
  background: ${({ theme: e }) => e.secondary.background.transparent};
@@ -43229,7 +43229,7 @@ const w1 = new Intl.NumberFormat("en-US", {
43229
43229
  opacity: 1;
43230
43230
  }
43231
43231
  `}
43232
- `, z1 = N(K).attrs({
43232
+ `, z1 = N(X).attrs({
43233
43233
  as: "input"
43234
43234
  })`
43235
43235
  outline: none;
@@ -43259,7 +43259,7 @@ const w1 = new Intl.NumberFormat("en-US", {
43259
43259
  background: ${n.brandColor};
43260
43260
  border: none;
43261
43261
  `}
43262
- `, S1 = N(K)`
43262
+ `, S1 = N(X)`
43263
43263
  position: absolute;
43264
43264
  top: 50%;
43265
43265
  right: 8px;
@@ -43276,7 +43276,7 @@ const w1 = new Intl.NumberFormat("en-US", {
43276
43276
  /* @__PURE__ */ l(
43277
43277
  Pi,
43278
43278
  {
43279
- content: /* @__PURE__ */ l(K, { normalTextColor: !0, style: { width: 250 }, children: "Choose if faster or cheaper routes should be prioritized. Fast routes require a $50 minimum from Ethereum and may not be available if there is insufficient liquidity for an asset." }),
43279
+ content: /* @__PURE__ */ l(X, { normalTextColor: !0, style: { width: 250 }, children: "Choose if faster or cheaper routes should be prioritized. Fast routes require a $50 minimum from Ethereum and may not be available if there is insufficient liquidity for an asset." }),
43280
43280
  children: /* @__PURE__ */ l(Mm, {})
43281
43281
  }
43282
43282
  )
@@ -43297,16 +43297,16 @@ const w1 = new Intl.NumberFormat("en-US", {
43297
43297
  justify-content: space-between;
43298
43298
  align-items: flex-start;
43299
43299
  gap: 15px;
43300
- `, I1 = N(O).attrs({
43301
- as: K,
43300
+ `, I1 = N(W).attrs({
43301
+ as: X,
43302
43302
  normalTextColor: !0
43303
43303
  })`
43304
43304
  position: relative;
43305
43305
  letter-spacing: 0.26px;
43306
- `, H1 = N(O)`
43306
+ `, H1 = N(W)`
43307
43307
  width: 100%;
43308
43308
  `, T1 = bo(() => {
43309
- const e = de(), { data: n } = L(Un), { data: i } = L(Ee), o = W(() => n == null ? void 0 : n.chainIDs.map((s) => i == null ? void 0 : i.find((m) => m.chainID === s)), [n, i]), t = Ti(n == null ? void 0 : n.operations), c = W(() => t ? t.filter(
43309
+ const e = de(), { data: n } = L(Un), { data: i } = L(Ee), o = U(() => n == null ? void 0 : n.chainIDs.map((s) => i == null ? void 0 : i.find((m) => m.chainID === s)), [n, i]), t = Ti(n == null ? void 0 : n.operations), c = U(() => t ? t.filter(
43310
43310
  (s) => [
43311
43311
  Fe.axelarTransfer,
43312
43312
  Fe.hyperlaneTransfer,
@@ -43322,14 +43322,14 @@ const w1 = new Intl.NumberFormat("en-US", {
43322
43322
  sourceChainFeeAmount: d,
43323
43323
  destinationChainFeeAmount: u,
43324
43324
  bpsFeeAmount: x,
43325
- sourceChainFeeUSD: b,
43326
- destinationChainFeeUSD: g,
43325
+ sourceChainFeeUSD: g,
43326
+ destinationChainFeeUSD: b,
43327
43327
  bpsFeeUSD: f
43328
43328
  } = m, v = [d, u, x].reduce(
43329
- (q, B) => q + Number(B),
43329
+ (S, B) => S + Number(B),
43330
43330
  0
43331
- ), C = [b, g, f].reduce(
43332
- (q, B) => q + Number(B),
43331
+ ), C = [g, b, f].reduce(
43332
+ (S, B) => S + Number(B),
43333
43333
  0
43334
43334
  ), E = on(
43335
43335
  v.toString(),
@@ -43350,7 +43350,7 @@ const w1 = new Intl.NumberFormat("en-US", {
43350
43350
  formattedUsdAmount: d ? On(d) : void 0
43351
43351
  };
43352
43352
  }
43353
- }, r = W(() => {
43353
+ }, r = U(() => {
43354
43354
  const s = [];
43355
43355
  c.forEach((d) => {
43356
43356
  const u = a(d);
@@ -43375,9 +43375,9 @@ const w1 = new Intl.NumberFormat("en-US", {
43375
43375
  }, [c, n]);
43376
43376
  return /* @__PURE__ */ j(N1, { gap: 15, children: [
43377
43377
  /* @__PURE__ */ j(pe, { gap: 10, children: [
43378
- /* @__PURE__ */ j(O, { justify: "space-between", align: "center", children: [
43378
+ /* @__PURE__ */ j(W, { justify: "space-between", align: "center", children: [
43379
43379
  /* @__PURE__ */ l(Gi, { children: "Route" }),
43380
- /* @__PURE__ */ l(O, { align: "center", gap: 5, children: o == null ? void 0 : o.map((s, m) => {
43380
+ /* @__PURE__ */ l(W, { align: "center", gap: 5, children: o == null ? void 0 : o.map((s, m) => {
43381
43381
  var p;
43382
43382
  return /* @__PURE__ */ j(Xm, { children: [
43383
43383
  /* @__PURE__ */ l(
@@ -43394,15 +43394,15 @@ const w1 = new Intl.NumberFormat("en-US", {
43394
43394
  ] }, m);
43395
43395
  }) })
43396
43396
  ] }),
43397
- !!(n != null && n.swapPriceImpactPercent) && /* @__PURE__ */ j(O, { justify: "space-between", align: "center", children: [
43397
+ !!(n != null && n.swapPriceImpactPercent) && /* @__PURE__ */ j(W, { justify: "space-between", align: "center", children: [
43398
43398
  /* @__PURE__ */ l(Gi, { children: "Price Impact" }),
43399
- /* @__PURE__ */ l(O, { align: "center", gap: 5, height: 25, children: /* @__PURE__ */ j(Gi, { monospace: !0, children: [
43399
+ /* @__PURE__ */ l(W, { align: "center", gap: 5, height: 25, children: /* @__PURE__ */ j(Gi, { monospace: !0, children: [
43400
43400
  n == null ? void 0 : n.swapPriceImpactPercent,
43401
43401
  "%"
43402
43402
  ] }) })
43403
43403
  ] })
43404
43404
  ] }),
43405
- r.length > 0 && /* @__PURE__ */ l(pe, { gap: 10, children: r.map(({ label: s, fee: m }, p) => /* @__PURE__ */ j(O, { justify: "space-between", align: "center", height: 25, children: [
43405
+ r.length > 0 && /* @__PURE__ */ l(pe, { gap: 10, children: r.map(({ label: s, fee: m }, p) => /* @__PURE__ */ j(W, { justify: "space-between", align: "center", height: 25, children: [
43406
43406
  /* @__PURE__ */ l(Gi, { children: s }),
43407
43407
  /* @__PURE__ */ j(Gi, { textAlign: "right", monospace: !0, children: [
43408
43408
  m.formattedAssetAmount,
@@ -43413,9 +43413,9 @@ const w1 = new Intl.NumberFormat("en-US", {
43413
43413
  ] }, p)) }),
43414
43414
  /* @__PURE__ */ l(q1, {}),
43415
43415
  /* @__PURE__ */ l(E1, {}),
43416
- /* @__PURE__ */ j(O, { gap: 10, children: [
43416
+ /* @__PURE__ */ j(W, { gap: 10, children: [
43417
43417
  /* @__PURE__ */ l(
43418
- K,
43418
+ X,
43419
43419
  {
43420
43420
  as: "a",
43421
43421
  href: "https://docs.skip.build/go/legal-and-privacy/terms-of-service",
@@ -43424,7 +43424,7 @@ const w1 = new Intl.NumberFormat("en-US", {
43424
43424
  }
43425
43425
  ),
43426
43426
  /* @__PURE__ */ l(
43427
- K,
43427
+ X,
43428
43428
  {
43429
43429
  as: "a",
43430
43430
  href: "https://docs.skip.build/go/legal-and-privacy/privacy-policy",
@@ -43433,17 +43433,17 @@ const w1 = new Intl.NumberFormat("en-US", {
43433
43433
  }
43434
43434
  )
43435
43435
  ] }),
43436
- /* @__PURE__ */ j(O, { justify: "space-between", children: [
43436
+ /* @__PURE__ */ j(W, { justify: "space-between", children: [
43437
43437
  /* @__PURE__ */ l(
43438
43438
  mi,
43439
43439
  {
43440
43440
  onClick: () => {
43441
- V("settings drawer: close button - clicked"), oe.hide(he.SwapSettingsDrawer);
43441
+ V("settings drawer: close button - clicked"), te.hide(he.SwapSettingsDrawer);
43442
43442
  },
43443
43443
  children: "Close"
43444
43444
  }
43445
43445
  ),
43446
- /* @__PURE__ */ l(K, { children: Fc })
43446
+ /* @__PURE__ */ l(X, { children: Fc })
43447
43447
  ] })
43448
43448
  ] });
43449
43449
  }), N1 = N(pe)`
@@ -43451,8 +43451,8 @@ const w1 = new Intl.NumberFormat("en-US", {
43451
43451
  padding: 20px;
43452
43452
  border-radius: 20px;
43453
43453
  background: ${(e) => e.theme.primary.background.normal};
43454
- `, Gi = N(O).attrs({
43455
- as: K,
43454
+ `, Gi = N(W).attrs({
43455
+ as: X,
43456
43456
  normalTextColor: !0
43457
43457
  })`
43458
43458
  position: relative;
@@ -43492,7 +43492,7 @@ const w1 = new Intl.NumberFormat("en-US", {
43492
43492
  searchQuery: n
43493
43493
  }) => {
43494
43494
  const i = L(zm);
43495
- return W(() => e ? e.map((c) => {
43495
+ return U(() => e ? e.map((c) => {
43496
43496
  const a = c.assets.filter((r) => !Sm.some(
43497
43497
  (m) => m.id === c.id && m.chainIDs.includes(r.chainID)
43498
43498
  ));
@@ -43514,38 +43514,38 @@ const w1 = new Intl.NumberFormat("en-US", {
43514
43514
  context: i
43515
43515
  }) => {
43516
43516
  const { data: o } = L(Ee), t = L(ra), c = L(sa), a = kt(), r = L(ga);
43517
- return W(() => !e || !o ? void 0 : e.assets.filter((d) => !Sm.some(
43517
+ return U(() => !e || !o ? void 0 : e.assets.filter((d) => !Sm.some(
43518
43518
  (x) => x.id === e.id && x.chainIDs.includes(d.chainID)
43519
43519
  )).map((d) => {
43520
43520
  const u = o.find((x) => x.chainID === d.chainID);
43521
43521
  return u ? { ...u, asset: d } : null;
43522
43522
  }).filter((d) => {
43523
43523
  if (!d) return !1;
43524
- const u = t == null ? void 0 : t[i], x = c == null ? void 0 : c[i], b = !u || d.chainID in u, g = !!(x != null && x[d.chainID] && (x == null ? void 0 : x[d.chainID]) === void 0), f = i !== "source" || !d.chainID.startsWith("penumbra");
43525
- return b && f && !g;
43524
+ const u = t == null ? void 0 : t[i], x = c == null ? void 0 : c[i], g = !u || d.chainID in u, b = !!(x != null && x[d.chainID] && (x == null ? void 0 : x[d.chainID]) === void 0), f = i !== "source" || !d.chainID.startsWith("penumbra");
43525
+ return g && f && !b;
43526
43526
  }).filter((d) => {
43527
- const { chainName: u, prettyName: x } = d, b = u.toLowerCase().includes(n.toLowerCase()), g = x.toLowerCase().includes(n.toLowerCase());
43528
- return b || g;
43527
+ const { chainName: u, prettyName: x } = d, g = u.toLowerCase().includes(n.toLowerCase()), b = x.toLowerCase().includes(n.toLowerCase());
43528
+ return g || b;
43529
43529
  }).sort((d, u) => {
43530
43530
  var D, A, F, w, M, z, k, P;
43531
43531
  const x = Number(
43532
43532
  ((D = a(d.chainID, d.asset.denom)) == null ? void 0 : D.valueUSD) ?? 0
43533
- ), b = Number(
43534
- ((A = a(u.chainID, u.asset.denom)) == null ? void 0 : A.valueUSD) ?? 0
43535
43533
  ), g = Number(
43534
+ ((A = a(u.chainID, u.asset.denom)) == null ? void 0 : A.valueUSD) ?? 0
43535
+ ), b = Number(
43536
43536
  ((F = a(d.chainID, d.asset.denom)) == null ? void 0 : F.amount) ?? 0
43537
43537
  ), f = Number(
43538
43538
  ((w = a(u.chainID, u.asset.denom)) == null ? void 0 : w.amount) ?? 0
43539
43539
  );
43540
- if (x !== b)
43541
- return b - x;
43542
- if (g !== f)
43543
- return f - g;
43544
- const v = r.indexOf(d.asset.denom), C = r.indexOf(u.asset.denom), E = v !== -1, q = C !== -1;
43545
- if (E && q)
43540
+ if (x !== g)
43541
+ return g - x;
43542
+ if (b !== f)
43543
+ return f - b;
43544
+ const v = r.indexOf(d.asset.denom), C = r.indexOf(u.asset.denom), E = v !== -1, S = C !== -1;
43545
+ if (E && S)
43546
43546
  return v - C;
43547
43547
  if (E) return -1;
43548
- if (q) return 1;
43548
+ if (S) return 1;
43549
43549
  const B = (z = d.chainName) == null ? void 0 : z.toLowerCase().includes(((M = d.asset.recommendedSymbol) == null ? void 0 : M.toLowerCase()) ?? ""), I = (P = u.chainName) == null ? void 0 : P.toLowerCase().includes(((k = u.asset.recommendedSymbol) == null ? void 0 : k.toLowerCase()) ?? "");
43550
43550
  if (B && !I) return -1;
43551
43551
  if (I && !B) return 1;
@@ -43615,8 +43615,8 @@ const w1 = new Intl.NumberFormat("en-US", {
43615
43615
  leftContent: /* @__PURE__ */ l(U1, { item: e, context: t, eureka: c }),
43616
43616
  eureka: c,
43617
43617
  rightContent: Number(e.totalAmount) > 0 && /* @__PURE__ */ j(pe, { align: "flex-end", children: [
43618
- /* @__PURE__ */ l(K, { normalTextColor: !0, children: parseFloat(e.totalAmount.toFixed(8)) }),
43619
- Number(e.totalUsd) > 0 && /* @__PURE__ */ l(K, { children: On(e.totalUsd) })
43618
+ /* @__PURE__ */ l(X, { normalTextColor: !0, children: parseFloat(e.totalAmount.toFixed(8)) }),
43619
+ Number(e.totalUsd) > 0 && /* @__PURE__ */ l(X, { children: On(e.totalUsd) })
43620
43620
  ] })
43621
43621
  },
43622
43622
  `${n}${e.id}`
@@ -43629,8 +43629,8 @@ const w1 = new Intl.NumberFormat("en-US", {
43629
43629
  onClick: () => o(e.asset),
43630
43630
  leftContent: /* @__PURE__ */ l(G1, { item: e, eureka: c }),
43631
43631
  rightContent: p && Number(p.amount) > 0 && /* @__PURE__ */ j(pe, { align: "flex-end", children: [
43632
- /* @__PURE__ */ l(K, { normalTextColor: !0, children: on(p.amount, p.decimals) }),
43633
- p.valueUSD && Number(p.valueUSD) > 0 && /* @__PURE__ */ l(K, { children: On(p.valueUSD) })
43632
+ /* @__PURE__ */ l(X, { normalTextColor: !0, children: on(p.amount, p.decimals) }),
43633
+ p.valueUSD && Number(p.valueUSD) > 0 && /* @__PURE__ */ l(X, { children: On(p.valueUSD) })
43634
43634
  ] })
43635
43635
  },
43636
43636
  e.chainID
@@ -43641,7 +43641,7 @@ const w1 = new Intl.NumberFormat("en-US", {
43641
43641
  eureka: i
43642
43642
  }) => {
43643
43643
  var c;
43644
- const o = qm({ selectedGroup: e, context: n }) ?? [], t = o.length > 1 ? /* @__PURE__ */ l(K, { children: `${o.length} networks` }) : /* @__PURE__ */ j(K, { children: [
43644
+ const o = qm({ selectedGroup: e, context: n }) ?? [], t = o.length > 1 ? /* @__PURE__ */ l(X, { children: `${o.length} networks` }) : /* @__PURE__ */ j(X, { children: [
43645
43645
  "on ",
43646
43646
  (c = o[0]) == null ? void 0 : c.chainName
43647
43647
  ] });
@@ -43659,24 +43659,24 @@ const w1 = new Intl.NumberFormat("en-US", {
43659
43659
  {
43660
43660
  image: /* @__PURE__ */ l(K1, { height: 35, width: 35, src: e == null ? void 0 : e.logoURI, alt: `${e.chainID} logo` }),
43661
43661
  mainText: e.prettyName,
43662
- subText: /* @__PURE__ */ l(K, { children: e.chainID }),
43662
+ subText: /* @__PURE__ */ l(X, { children: e.chainID }),
43663
43663
  eureka: n
43664
43664
  }
43665
43665
  ), jm = ({ image: e, mainText: n, subText: i, eureka: o }) => {
43666
43666
  const t = Ze();
43667
- return /* @__PURE__ */ j(O, { align: "center", gap: 8, children: [
43667
+ return /* @__PURE__ */ j(W, { align: "center", gap: 8, children: [
43668
43668
  e,
43669
43669
  /* @__PURE__ */ j(
43670
- O,
43670
+ W,
43671
43671
  {
43672
43672
  align: "baseline",
43673
43673
  flexDirection: t ? "column" : "row",
43674
43674
  gap: t ? void 0 : 8,
43675
43675
  children: [
43676
43676
  /* @__PURE__ */ l(Te, { children: n }),
43677
- /* @__PURE__ */ j(O, { align: "center", gap: 6, children: [
43677
+ /* @__PURE__ */ j(W, { align: "center", gap: 6, children: [
43678
43678
  i,
43679
- o && /* @__PURE__ */ l(K, { normalTextColor: !0, children: " IBC Eureka " })
43679
+ o && /* @__PURE__ */ l(X, { normalTextColor: !0, children: " IBC Eureka " })
43680
43680
  ] })
43681
43681
  ]
43682
43682
  }
@@ -43696,7 +43696,7 @@ const w1 = new Intl.NumberFormat("en-US", {
43696
43696
  /* @__PURE__ */ l(Mc, { width: 60, height: 16 })
43697
43697
  ] })
43698
43698
  }
43699
- ), X1 = N(O)`
43699
+ ), X1 = N(W)`
43700
43700
  filter: blur(4px);
43701
43701
  `, Y1 = ({ color: e = "currentColor", className: n }) => /* @__PURE__ */ l(
43702
43702
  "svg",
@@ -43759,14 +43759,14 @@ const w1 = new Intl.NumberFormat("en-US", {
43759
43759
  ), Im = ({
43760
43760
  context: e
43761
43761
  }) => {
43762
- const { data: n } = L(fn), i = kt(), o = L(ra), t = L(sa), c = W(() => {
43762
+ const { data: n } = L(fn), i = kt(), o = L(ra), t = L(sa), c = U(() => {
43763
43763
  const r = o == null ? void 0 : o[e], s = t == null ? void 0 : t[e];
43764
43764
  return n == null ? void 0 : n.filter((m) => {
43765
- const p = !r || Object.entries(r).some(([u, x]) => x ? u === m.chainID && x.includes(m.denom) : u === m.chainID), d = !!s && Object.entries(s).some(([u, x]) => x ? u === m.chainID && x.includes(m.denom) : u === m.chainID);
43765
+ const p = !r || Object.entries(r).some(([u, x]) => x ? u === m.chainID && x.map((g) => g.toLowerCase()).includes(m.denom.toLowerCase()) : u === m.chainID), d = !!s && Object.entries(s).some(([u, x]) => x ? u === m.chainID && x.map((g) => g.toLowerCase()).includes(m.denom.toLowerCase()) : u === m.chainID);
43766
43766
  return p && !d;
43767
43767
  });
43768
43768
  }, [n, o, t, e]);
43769
- return W(() => {
43769
+ return U(() => {
43770
43770
  if (!c) return;
43771
43771
  const r = [], s = (m) => m.reduce(
43772
43772
  (p, d) => {
@@ -43815,7 +43815,7 @@ const w1 = new Intl.NumberFormat("en-US", {
43815
43815
  context: m,
43816
43816
  disabled: p
43817
43817
  }) => {
43818
- const d = de(), [u, x] = se(!1), b = Ze(), g = u || s, f = Oe({
43818
+ const d = de(), [u, x] = se(!1), g = Ze(), b = u || s, f = Oe({
43819
43819
  assetDenom: o == null ? void 0 : o.denom,
43820
43820
  amount: e,
43821
43821
  chainId: o == null ? void 0 : o.chainID
@@ -43832,7 +43832,7 @@ const w1 = new Intl.NumberFormat("en-US", {
43832
43832
  A !== -1 && (D = D.substring(0, A + 1) + D.substring(A + 1).replace(/\./g, "")), D = D.replace(/^0+(?!\.)/, "0");
43833
43833
  const F = Nt(D);
43834
43834
  i == null || i(co(F, f == null ? void 0 : f.decimals));
43835
- }, q = (h) => {
43835
+ }, S = (h) => {
43836
43836
  if (!i) return;
43837
43837
  let D;
43838
43838
  switch (h.key) {
@@ -43848,9 +43848,9 @@ const w1 = new Intl.NumberFormat("en-US", {
43848
43848
  default:
43849
43849
  return;
43850
43850
  }
43851
- }, B = W(() => a ? a > 0 ? d.success.text : d.error.text : d.primary.text.normal, [a, d.error.text, d.primary.text.normal, d.success.text]), I = tD(e || ""), T = cD(e);
43851
+ }, B = U(() => a ? a > 0 ? d.success.text : d.error.text : d.primary.text.normal, [a, d.error.text, d.primary.text.normal, d.success.text]), I = tD(e || ""), T = cD(e);
43852
43852
  return /* @__PURE__ */ j(Q1, { justify: "space-between", borderRadius: 25, children: [
43853
- /* @__PURE__ */ j(O, { justify: "space-between", children: [
43853
+ /* @__PURE__ */ j(W, { justify: "space-between", children: [
43854
43854
  /* @__PURE__ */ l(
43855
43855
  _1,
43856
43856
  {
@@ -43860,7 +43860,7 @@ const w1 = new Intl.NumberFormat("en-US", {
43860
43860
  value: I,
43861
43861
  placeholder: "0",
43862
43862
  onChange: E,
43863
- onKeyDown: q,
43863
+ onKeyDown: S,
43864
43864
  disabled: p,
43865
43865
  isWaitingToUpdateInputValue: r,
43866
43866
  isLargeNumber: T
@@ -43870,7 +43870,7 @@ const w1 = new Intl.NumberFormat("en-US", {
43870
43870
  f != null && f.assetImage && f.symbol ? /* @__PURE__ */ j(wt, { align: "center", justify: "center", gap: 7, children: [
43871
43871
  /* @__PURE__ */ l(ba, { height: 23, width: 23, groupedAsset: C }),
43872
43872
  /* @__PURE__ */ l(Te, { children: f.symbol }),
43873
- b && /* @__PURE__ */ l(
43873
+ g && /* @__PURE__ */ l(
43874
43874
  Ot,
43875
43875
  {
43876
43876
  width: "13px",
@@ -43881,7 +43881,7 @@ const w1 = new Intl.NumberFormat("en-US", {
43881
43881
  )
43882
43882
  ] }) : /* @__PURE__ */ j(Hm, { align: "center", justify: "center", gap: 7, children: [
43883
43883
  /* @__PURE__ */ l(Te, { mainButtonColor: d.brandColor, children: "Select asset" }),
43884
- b && /* @__PURE__ */ l(
43884
+ g && /* @__PURE__ */ l(
43885
43885
  Ot,
43886
43886
  {
43887
43887
  width: "13px",
@@ -43891,7 +43891,7 @@ const w1 = new Intl.NumberFormat("en-US", {
43891
43891
  }
43892
43892
  )
43893
43893
  ] }),
43894
- !b && /* @__PURE__ */ l(
43894
+ !g && /* @__PURE__ */ l(
43895
43895
  Ot,
43896
43896
  {
43897
43897
  className: "chevron-icon",
@@ -43901,8 +43901,8 @@ const w1 = new Intl.NumberFormat("en-US", {
43901
43901
  )
43902
43902
  ] })
43903
43903
  ] }),
43904
- /* @__PURE__ */ j(O, { justify: "space-between", align: "center", children: [
43905
- a ? /* @__PURE__ */ j(O, { align: "center", gap: 6, children: [
43904
+ /* @__PURE__ */ j(W, { justify: "space-between", align: "center", children: [
43905
+ a ? /* @__PURE__ */ j(W, { align: "center", gap: 6, children: [
43906
43906
  /* @__PURE__ */ l(
43907
43907
  mi,
43908
43908
  {
@@ -43917,14 +43917,14 @@ const w1 = new Intl.NumberFormat("en-US", {
43917
43917
  {
43918
43918
  color: B,
43919
43919
  direction: (a ?? 0) > 0 ? "up" : "down",
43920
- style: { scale: g ? "1" : "0.7" }
43920
+ style: { scale: b ? "1" : "0.7" }
43921
43921
  }
43922
43922
  ),
43923
- g && /* @__PURE__ */ j(K, { color: B, children: [
43923
+ b && /* @__PURE__ */ j(X, { color: B, children: [
43924
43924
  a,
43925
43925
  "%"
43926
43926
  ] })
43927
- ] }) : /* @__PURE__ */ l(K, { children: n && On(n) }),
43927
+ ] }) : /* @__PURE__ */ l(X, { children: n && On(n) }),
43928
43928
  f != null && f.chainName ? /* @__PURE__ */ l(
43929
43929
  J1,
43930
43930
  {
@@ -43933,7 +43933,7 @@ const w1 = new Intl.NumberFormat("en-US", {
43933
43933
  align: "center",
43934
43934
  secondary: !0,
43935
43935
  gap: 4,
43936
- children: /* @__PURE__ */ j(K, { children: [
43936
+ children: /* @__PURE__ */ j(X, { children: [
43937
43937
  "on ",
43938
43938
  f == null ? void 0 : f.chainName
43939
43939
  ] })
@@ -44000,7 +44000,7 @@ const w1 = new Intl.NumberFormat("en-US", {
44000
44000
  @media (max-width: 767px) {
44001
44001
  height: 45px;
44002
44002
  }
44003
- `, wt = N(O).attrs({
44003
+ `, wt = N(W).attrs({
44004
44004
  padding: 8
44005
44005
  })`
44006
44006
  height: 40px;
@@ -44060,7 +44060,7 @@ const w1 = new Intl.NumberFormat("en-US", {
44060
44060
  },
44061
44061
  [n, t]
44062
44062
  );
44063
- return ae(() => {
44063
+ return re(() => {
44064
44064
  setTimeout(() => {
44065
44065
  var u;
44066
44066
  (u = p.current) == null || u.focus();
@@ -44085,8 +44085,8 @@ const w1 = new Intl.NumberFormat("en-US", {
44085
44085
  onKeyDown: c
44086
44086
  }
44087
44087
  ),
44088
- /* @__PURE__ */ l(O, { align: "center", gap: 5, "data-logo": "skip-go", children: !s && /* @__PURE__ */ j(fe, { children: [
44089
- /* @__PURE__ */ l(K, { textWrap: "nowrap", children: " Powered by " }),
44088
+ /* @__PURE__ */ l(W, { align: "center", gap: 5, "data-logo": "skip-go", children: !s && /* @__PURE__ */ j(fe, { children: [
44089
+ /* @__PURE__ */ l(X, { textWrap: "nowrap", children: " Powered by " }),
44090
44090
  /* @__PURE__ */ l(Bm, { color: a.primary.text.lowContrast })
44091
44091
  ] }) })
44092
44092
  ] });
@@ -44109,7 +44109,7 @@ const w1 = new Intl.NumberFormat("en-US", {
44109
44109
  position: absolute;
44110
44110
  width: 20px;
44111
44111
  height: 20px;
44112
- `, tx = N(O)`
44112
+ `, tx = N(W)`
44113
44113
  padding: 6px 10px;
44114
44114
  height: 50px;
44115
44115
  position: relative;
@@ -44126,9 +44126,9 @@ const w1 = new Intl.NumberFormat("en-US", {
44126
44126
  background: ${({ theme: e }) => e.primary.background.normal};
44127
44127
  `, as = 65, ax = bo(
44128
44128
  (e) => {
44129
- const n = bs(), { onSelect: i, selectedAsset: o, selectChain: t, context: c } = e, { data: a, isFetching: r, isPending: s } = L(fn), m = L(ga), { isLoading: p } = L(Ee), d = r && s || p, [u, x] = se(!0), [b, g] = se(""), [f, v] = se(null), C = bm(as), E = () => {
44130
- g("");
44131
- }, q = ye(
44129
+ const n = bs(), { onSelect: i, selectedAsset: o, selectChain: t, context: c } = e, { data: a, isFetching: r, isPending: s } = L(fn), m = L(ga), { isLoading: p } = L(Ee), d = r && s || p, [u, x] = se(!0), [g, b] = se(""), [f, v] = se(null), C = bm(as), E = () => {
44130
+ b("");
44131
+ }, S = ye(
44132
44132
  (k) => {
44133
44133
  if (k) {
44134
44134
  if (Pc(k)) {
@@ -44139,55 +44139,60 @@ const w1 = new Intl.NumberFormat("en-US", {
44139
44139
  }
44140
44140
  },
44141
44141
  [i]
44142
- ), B = Im({ context: c }), I = W(() => {
44142
+ ), B = Im({ context: c }), I = U(() => {
44143
44143
  const k = (f == null ? void 0 : f.assets[0]) || o;
44144
44144
  if (k)
44145
44145
  return B == null ? void 0 : B.find(
44146
44146
  (P) => P.id === k.recommendedSymbol
44147
44147
  );
44148
- }, [f == null ? void 0 : f.assets, o, B]), T = R1({ groupedAssetsByRecommendedSymbol: B, searchQuery: b }), h = qm({ selectedGroup: I, searchQuery: b, context: c });
44149
- ae(() => {
44148
+ }, [f == null ? void 0 : f.assets, o, B]), T = R1({ groupedAssetsByRecommendedSymbol: B, searchQuery: g }), h = qm({ selectedGroup: I, searchQuery: g, context: c });
44149
+ re(() => {
44150
44150
  !d && a && x(!1);
44151
- }, [d, a]), ae(() => {
44152
- g("");
44151
+ }, [d, a]), re(() => {
44152
+ b("");
44153
44153
  }, [n.visible]);
44154
44154
  const D = `${c} ${t ? "chain" : "asset"} modal`, A = (k) => {
44155
- V(`${D}: search input - changed`, { term: k }), g(k);
44155
+ V(`${D}: search input - changed`, { term: k }), b(k);
44156
44156
  }, F = ye(
44157
44157
  (k, P) => {
44158
- var Z, te;
44159
- const y = k, S = k, H = (Z = y == null ? void 0 : y.assets) == null ? void 0 : Z.some(
44160
- (re) => m.includes(re.denom) && re.chainID === "1"
44161
- ), U = m.includes((te = S == null ? void 0 : S.asset) == null ? void 0 : te.denom) && (S == null ? void 0 : S.asset.chainID) === "1";
44158
+ var ce;
44159
+ const y = k, q = k, H = (ce = y == null ? void 0 : y.assets) == null ? void 0 : ce.some(
44160
+ (oe) => m.includes(oe.denom) && oe.chainID === "1"
44161
+ ), O = a == null ? void 0 : a.find(
44162
+ (oe) => {
44163
+ var G;
44164
+ return oe.recommendedSymbol === ((G = q == null ? void 0 : q.asset) == null ? void 0 : G.recommendedSymbol) && oe.chainID === "1";
44165
+ }
44166
+ ), K = !!(O != null && O.denom && m.includes(O == null ? void 0 : O.denom));
44162
44167
  return /* @__PURE__ */ l(
44163
44168
  W1,
44164
44169
  {
44165
44170
  item: k,
44166
44171
  index: P,
44167
- onSelect: q,
44172
+ onSelect: S,
44168
44173
  skeleton: /* @__PURE__ */ l(ts, {}),
44169
44174
  context: c,
44170
- eureka: H || U
44175
+ eureka: H || K
44171
44176
  }
44172
44177
  );
44173
44178
  },
44174
- [c, m, q]
44175
- ), w = W(() => t || f ? h : T, [T, h, f, t]);
44179
+ [a, c, m, S]
44180
+ ), w = U(() => t || f ? h : T, [T, h, f, t]);
44176
44181
  return /* @__PURE__ */ j(At, { children: [
44177
44182
  /* @__PURE__ */ l(
44178
44183
  ex,
44179
44184
  {
44180
44185
  onSearch: A,
44181
44186
  onClickBack: () => {
44182
- V(`${D}: header back button - clicked`), f === null ? oe.remove(he.AssetAndChainSelectorModal) : v(null);
44187
+ V(`${D}: header back button - clicked`), f === null ? te.remove(he.AssetAndChainSelectorModal) : v(null);
44183
44188
  },
44184
44189
  groupedAsset: f ?? I,
44185
- searchTerm: b,
44186
- setSearchTerm: g,
44190
+ searchTerm: g,
44191
+ setSearchTerm: b,
44187
44192
  onKeyDown: (k) => {
44188
44193
  V(`${D}: keyboard - pressed`, { key: k.key });
44189
- const P = (w == null ? void 0 : w[0]) ?? null, y = P == null ? void 0 : P.asset, S = P;
44190
- k.key === "Backspace" && f !== null && b === "" && v(null), k.key === "Enter" && (w == null ? void 0 : w.length) === 1 && q(y ?? S);
44194
+ const P = (w == null ? void 0 : w[0]) ?? null, y = P == null ? void 0 : P.asset, q = P;
44195
+ k.key === "Backspace" && f !== null && g === "" && v(null), k.key === "Enter" && (w == null ? void 0 : w.length) === 1 && S(y ?? q);
44191
44196
  }
44192
44197
  }
44193
44198
  ),
@@ -44263,30 +44268,30 @@ const mx = bo((e) => {
44263
44268
  const n = Ze(), { chainId: i, chainAddressIndex: o } = e, { route: t } = L(Ne), c = t == null ? void 0 : t.requiredChainAddresses;
44264
44269
  if (e.chainAddressIndex === void 0)
44265
44270
  throw new Error("chain address index cannot be undefined");
44266
- const a = de(), { data: r } = L(Ee), s = r == null ? void 0 : r.find((y) => y.chainID === i), m = s == null ? void 0 : s.prettyName, p = s == null ? void 0 : s.logoURI, [d, u] = se(!1), [x, b] = se(""), g = da({ chainID: i, destinationWalletList: !0 }), [f, v] = me(Gn), C = new Set(Object.values(f).map(({ chainID: y }) => y)).size > 1, E = Fi(), q = {
44271
+ const a = de(), { data: r } = L(Ee), s = r == null ? void 0 : r.find((y) => y.chainID === i), m = s == null ? void 0 : s.prettyName, p = s == null ? void 0 : s.logoURI, [d, u] = se(!1), [x, g] = se(""), b = da({ chainID: i, destinationWalletList: !0 }), [f, v] = me(Gn), C = new Set(Object.values(f).map(({ chainID: y }) => y)).size > 1, E = Fi(), S = {
44267
44272
  onSelect: () => u(!0),
44268
44273
  walletName: "Enter address manually",
44269
44274
  rightContent: () => {
44270
44275
  var y;
44271
44276
  return /* @__PURE__ */ l(Wc, { color: (y = a == null ? void 0 : a.primary) == null ? void 0 : y.text.normal });
44272
44277
  }
44273
- }, B = (s == null ? void 0 : s.chainType) === ((z = f[0]) == null ? void 0 : z.chainType) && (s == null ? void 0 : s.chainType) !== R.Cosmos, I = e.signRequired, T = [...g, ...I ? [] : [q]], h = ye((y) => {
44274
- b(y.target.value);
44275
- }, []), D = W(() => {
44278
+ }, B = (s == null ? void 0 : s.chainType) === ((z = f[0]) == null ? void 0 : z.chainType) && (s == null ? void 0 : s.chainType) !== R.Cosmos, I = e.signRequired, T = [...b, ...I ? [] : [S]], h = ye((y) => {
44279
+ g(y.target.value);
44280
+ }, []), D = U(() => {
44276
44281
  if (!s || x.length === 0) return;
44277
- const { chainType: y, bech32Prefix: S, chainID: H } = s;
44282
+ const { chainType: y, bech32Prefix: q, chainID: H } = s;
44278
44283
  return lx({
44279
44284
  address: x,
44280
- bech32Prefix: S,
44285
+ bech32Prefix: q,
44281
44286
  chainType: y,
44282
44287
  chainId: H
44283
44288
  });
44284
- }, [s, x]), A = W(() => {
44289
+ }, [s, x]), A = U(() => {
44285
44290
  if (!s) return "Enter address...";
44286
- const { chainType: y, bech32Prefix: S } = s;
44291
+ const { chainType: y, bech32Prefix: q } = s;
44287
44292
  switch (y) {
44288
44293
  case R.Cosmos:
44289
- return `${S}1...`;
44294
+ return `${q}1...`;
44290
44295
  case R.EVM:
44291
44296
  return "0x...";
44292
44297
  case R.SVM:
@@ -44299,8 +44304,8 @@ const mx = bo((e) => {
44299
44304
  chainId: i
44300
44305
  });
44301
44306
  const y = s == null ? void 0 : s.chainType;
44302
- !i || !y || (v((S) => ({
44303
- ...S,
44307
+ !i || !y || (v((q) => ({
44308
+ ...q,
44304
44309
  [o]: {
44305
44310
  chainID: i,
44306
44311
  chainType: y,
@@ -44308,25 +44313,25 @@ const mx = bo((e) => {
44308
44313
  source: "input"
44309
44314
  /* Input */
44310
44315
  }
44311
- })), oe.remove(he.SetAddressModal));
44312
- }, w = W(() => {
44313
- const S = o === Object.values(f).length - 1 ? "Destination" : "Intermediary";
44314
- return E ? S : `${S} wallet`;
44316
+ })), te.remove(he.SetAddressModal));
44317
+ }, w = U(() => {
44318
+ const q = o === Object.values(f).length - 1 ? "Destination" : "Intermediary";
44319
+ return E ? q : `${q} wallet`;
44315
44320
  }, [o, f, E]), M = async (y) => {
44316
- var X, Z;
44321
+ var K, Z;
44317
44322
  V("set address modal: wallet selected", {
44318
44323
  chainId: i,
44319
44324
  walletName: y.walletName
44320
44325
  });
44321
- const S = await ((Z = y.getAddress) == null ? void 0 : Z.call(y, {
44326
+ const q = await ((Z = y.getAddress) == null ? void 0 : Z.call(y, {
44322
44327
  praxWallet: {
44323
- sourceChainID: o ? (X = f[o - 1]) == null ? void 0 : X.chainID : void 0
44328
+ sourceChainID: o ? (K = f[o - 1]) == null ? void 0 : K.chainID : void 0
44324
44329
  }
44325
- })), H = S == null ? void 0 : S.address, U = S == null ? void 0 : S.logo;
44326
- v((te) => {
44327
- var re;
44328
- return JSON.stringify(c) !== JSON.stringify(Object.values(te).map((G) => G.chainID)) ? te : {
44329
- ...te,
44330
+ })), H = q == null ? void 0 : q.address, O = q == null ? void 0 : q.logo;
44331
+ v((ce) => {
44332
+ var oe;
44333
+ return JSON.stringify(c) !== JSON.stringify(Object.values(ce).map((G) => G.chainID)) ? ce : {
44334
+ ...ce,
44330
44335
  [o]: {
44331
44336
  chainID: i,
44332
44337
  chainType: s == null ? void 0 : s.chainType,
@@ -44337,7 +44342,7 @@ const mx = bo((e) => {
44337
44342
  walletPrettyName: y.walletPrettyName,
44338
44343
  walletChainType: y.walletChainType,
44339
44344
  walletInfo: {
44340
- logo: U ?? ((re = y.walletInfo) == null ? void 0 : re.logo)
44345
+ logo: O ?? ((oe = y.walletInfo) == null ? void 0 : oe.logo)
44341
44346
  }
44342
44347
  }
44343
44348
  }
@@ -44353,7 +44358,7 @@ const mx = bo((e) => {
44353
44358
  rightContent: /* @__PURE__ */ l(hx, { align: "center", justify: "center", children: /* @__PURE__ */ l("img", { width: "25px", height: "25px", src: p }) })
44354
44359
  }
44355
44360
  ),
44356
- C && /* @__PURE__ */ l(K, { color: (k = a == null ? void 0 : a.error) == null ? void 0 : k.text, textAlign: "center", children: "Avoid transfers to centralized exchanges. Your assets may be lost." }),
44361
+ C && /* @__PURE__ */ l(X, { color: (k = a == null ? void 0 : a.error) == null ? void 0 : k.text, textAlign: "center", children: "Avoid transfers to centralized exchanges. Your assets may be lost." }),
44357
44362
  /* @__PURE__ */ j(px, { children: [
44358
44363
  /* @__PURE__ */ l(
44359
44364
  dx,
@@ -44366,7 +44371,7 @@ const mx = bo((e) => {
44366
44371
  ),
44367
44372
  /* @__PURE__ */ l(ux, { validAddress: D })
44368
44373
  ] }),
44369
- D === !1 && /* @__PURE__ */ j(K, { color: (P = a == null ? void 0 : a.error) == null ? void 0 : P.text, textAlign: "center", children: [
44374
+ D === !1 && /* @__PURE__ */ j(X, { color: (P = a == null ? void 0 : a.error) == null ? void 0 : P.text, textAlign: "center", children: [
44370
44375
  "Please enter a valid wallet address for ",
44371
44376
  m
44372
44377
  ] }),
@@ -44392,9 +44397,9 @@ const mx = bo((e) => {
44392
44397
  Cm,
44393
44398
  {
44394
44399
  title: w,
44395
- walletList: B ? [q] : T,
44400
+ walletList: B ? [S] : T,
44396
44401
  onClickBackButton: () => {
44397
- V("set address modal: back button - clicked"), oe.remove(he.SetAddressModal);
44402
+ V("set address modal: back button - clicked"), te.remove(he.SetAddressModal);
44398
44403
  },
44399
44404
  chainId: i,
44400
44405
  onSelectWallet: (y) => {
@@ -44407,7 +44412,7 @@ const mx = bo((e) => {
44407
44412
  ) });
44408
44413
  }), px = N.div`
44409
44414
  position: relative;
44410
- `, hx = N(O)`
44415
+ `, hx = N(W)`
44411
44416
  width: 40px;
44412
44417
  height: 40px;
44413
44418
  border-radius: 10px;
@@ -44446,7 +44451,7 @@ const mx = bo((e) => {
44446
44451
  border-radius: 12px;
44447
44452
  ${({ disabled: e, theme: n }) => e && `background: ${n.secondary.background.normal}`};
44448
44453
  `, xx = () => {
44449
- oe.register("AssetAndChainSelectorModal", ax), oe.register("ConnectedWalletModal", b1), oe.register("SetAddressModal", mx), oe.register("SwapSettingsDrawer", T1), oe.register("WalletSelectorModal", u1);
44454
+ te.register("AssetAndChainSelectorModal", ax), te.register("ConnectedWalletModal", b1), te.register("SetAddressModal", mx), te.register("SwapSettingsDrawer", T1), te.register("WalletSelectorModal", u1);
44450
44455
  };
44451
44456
  var he = /* @__PURE__ */ ((e) => (e.AssetAndChainSelectorModal = "AssetAndChainSelectorModal", e.ConnectedWalletModal = "ConnectedWalletModal", e.SetAddressModal = "SetAddressModal", e.SwapSettingsDrawer = "SwapSettingsDrawer", e.WalletSelectorModal = "WalletSelectorModal", e))(he || {});
44452
44457
  const Tm = Q(void 0), Nm = () => {
@@ -44458,7 +44463,7 @@ const Tm = Q(void 0), Nm = () => {
44458
44463
  showRouteInfo: !0,
44459
44464
  showEstimatedTime: !0,
44460
44465
  onClick: () => {
44461
- V("settings drawer - clicked"), a(!1), oe.show(he.SwapSettingsDrawer, {
44466
+ V("settings drawer - clicked"), a(!1), te.show(he.SwapSettingsDrawer, {
44462
44467
  drawer: !0,
44463
44468
  container: i,
44464
44469
  onOpenChange: (d) => {
@@ -44474,7 +44479,7 @@ const Tm = Q(void 0), Nm = () => {
44474
44479
  onClickContinue: n
44475
44480
  }) => {
44476
44481
  const i = Y(je), o = Y(la), { SettingsFooter: t, drawerOpen: c } = Nm(), a = de();
44477
- ae(() => {
44482
+ re(() => {
44478
44483
  o(!1), Zo("goFastWarning", !0);
44479
44484
  }, [o]);
44480
44485
  const r = () => {
@@ -44504,15 +44509,15 @@ const Tm = Q(void 0), Nm = () => {
44504
44509
  gn,
44505
44510
  {
44506
44511
  title: "You're on the fastest route",
44507
- description: /* @__PURE__ */ j(K, { textAlign: "center", textWrap: "balance", lineHeight: "17px", children: [
44512
+ description: /* @__PURE__ */ j(X, { textAlign: "center", textWrap: "balance", lineHeight: "17px", children: [
44508
44513
  "Faster routes may have higher transaction fees. ",
44509
44514
  /* @__PURE__ */ l("br", {}),
44510
44515
  "You can choose between Fastest and Cheapest routes in the ",
44511
44516
  /* @__PURE__ */ l("br", {}),
44512
44517
  /* @__PURE__ */ j(bx, { gap: 3, children: [
44513
44518
  /* @__PURE__ */ l(Ec, { color: a.primary.text.normal }),
44514
- /* @__PURE__ */ l(K, { normalTextColor: !0, children: "Settings" }),
44515
- /* @__PURE__ */ l(K, { children: "drawer." })
44519
+ /* @__PURE__ */ l(X, { normalTextColor: !0, children: "Settings" }),
44520
+ /* @__PURE__ */ l(X, { children: "drawer." })
44516
44521
  ] })
44517
44522
  ] }),
44518
44523
  icon: J.goFast
@@ -44532,7 +44537,7 @@ const Tm = Q(void 0), Nm = () => {
44532
44537
  ]
44533
44538
  }
44534
44539
  );
44535
- }, bx = N(O)`
44540
+ }, bx = N(W)`
44536
44541
  display: inline-flex;
44537
44542
  `, fx = ({
44538
44543
  onClickContinue: e,
@@ -44573,7 +44578,7 @@ const Tm = Q(void 0), Nm = () => {
44573
44578
  {
44574
44579
  title: "Warning: Incomplete Price Data",
44575
44580
  description: /* @__PURE__ */ j(fe, { children: [
44576
- /* @__PURE__ */ j(K, { color: o.warning.text, textAlign: "center", textWrap: "balance", children: [
44581
+ /* @__PURE__ */ j(X, { color: o.warning.text, textAlign: "center", textWrap: "balance", children: [
44577
44582
  "USD price data is missing for one of the assets, please double check the input and output amounts are acceptable before continuing.",
44578
44583
  /* @__PURE__ */ l("br", {}),
44579
44584
  p.amount,
@@ -44613,7 +44618,7 @@ const Tm = Q(void 0), Nm = () => {
44613
44618
  )
44614
44619
  ] });
44615
44620
  }, Ax = () => {
44616
- const [e] = me(je), n = W(() => {
44621
+ const [e] = me(je), n = U(() => {
44617
44622
  switch (e == null ? void 0 : e.errorType) {
44618
44623
  case ke.AuthFailed:
44619
44624
  return /* @__PURE__ */ l(sD, { ...e });
@@ -44655,8 +44660,8 @@ const Tm = Q(void 0), Nm = () => {
44655
44660
  assetDenom: e,
44656
44661
  chainId: o,
44657
44662
  tokenAmount: n
44658
- }), x = L(Gn), b = W(() => {
44659
- var E, q;
44663
+ }), x = L(Gn), g = U(() => {
44664
+ var E, S;
44660
44665
  const C = Object.values(x);
44661
44666
  switch (r) {
44662
44667
  case "source": {
@@ -44670,15 +44675,15 @@ const Tm = Q(void 0), Nm = () => {
44670
44675
  const B = C[C.length - 1];
44671
44676
  return {
44672
44677
  address: B == null ? void 0 : B.address,
44673
- image: (B == null ? void 0 : B.source) === "wallet" && ((q = B == null ? void 0 : B.wallet) == null ? void 0 : q.walletInfo.logo) || void 0
44678
+ image: (B == null ? void 0 : B.source) === "wallet" && ((S = B == null ? void 0 : B.wallet) == null ? void 0 : S.walletInfo.logo) || void 0
44674
44679
  };
44675
44680
  }
44676
44681
  }
44677
- }, [x, r]), g = W(() => Bi(co(u.amount)), [u.amount]), f = W(() => {
44682
+ }, [x, r]), b = U(() => Bi(co(u.amount)), [u.amount]), f = U(() => {
44678
44683
  if (a)
44679
44684
  return m ? /* @__PURE__ */ l(im, { href: a, target: "_blank", children: /* @__PURE__ */ l(Ln, {}) }) : /* @__PURE__ */ l(na, { href: a, target: "_blank", children: /* @__PURE__ */ l(Ln, {}) });
44680
44685
  }, [a, m]);
44681
- return /* @__PURE__ */ j(O, { gap: 25, align: "center", children: [
44686
+ return /* @__PURE__ */ j(W, { gap: 25, align: "center", children: [
44682
44687
  /* @__PURE__ */ l(
44683
44688
  ft,
44684
44689
  {
@@ -44700,19 +44705,19 @@ const Tm = Q(void 0), Nm = () => {
44700
44705
  ),
44701
44706
  /* @__PURE__ */ j(pe, { gap: 5, children: [
44702
44707
  /* @__PURE__ */ j(Cx, { children: [
44703
- g,
44708
+ b,
44704
44709
  " ",
44705
44710
  u == null ? void 0 : u.symbol
44706
44711
  ] }),
44707
- i && /* @__PURE__ */ l(K, { children: On(i) }),
44708
- /* @__PURE__ */ j(O, { align: "center", height: 18, gap: 5, children: [
44712
+ i && /* @__PURE__ */ l(X, { children: On(i) }),
44713
+ /* @__PURE__ */ j(W, { align: "center", height: 18, gap: 5, children: [
44709
44714
  /* @__PURE__ */ j(wx, { normalTextColor: !0, textWrap: "nowrap", children: [
44710
44715
  "on ",
44711
44716
  u.chainName
44712
44717
  ] }),
44713
- /* @__PURE__ */ j(tn, { align: "center", gap: 3, onClick: () => p(b.address), children: [
44714
- b.image && /* @__PURE__ */ l("img", { height: 10, width: 10, src: b.image }),
44715
- b.address && /* @__PURE__ */ l(K, { monospace: !0, title: b.address, textWrap: "nowrap", children: d ? "Address copied!" : xo(b.address, m) })
44718
+ /* @__PURE__ */ j(tn, { align: "center", gap: 3, onClick: () => p(g.address), children: [
44719
+ g.image && /* @__PURE__ */ l("img", { height: 10, width: 10, src: g.image }),
44720
+ g.address && /* @__PURE__ */ l(X, { monospace: !0, title: g.address, textWrap: "nowrap", children: d ? "Address copied!" : xo(g.address, m) })
44716
44721
  ] }),
44717
44722
  a ? f : c ? /* @__PURE__ */ l(
44718
44723
  tn,
@@ -44746,7 +44751,7 @@ const Tm = Q(void 0), Nm = () => {
44746
44751
  font-size: 24px;
44747
44752
  color: ${(e) => e.theme.primary.text.normal};
44748
44753
  border: 1px solid ${(e) => e.theme.primary.text.normal};
44749
- `, wx = N(K)`
44754
+ `, wx = N(X)`
44750
44755
  max-width: 200px;
44751
44756
  text-overflow: ellipsis;
44752
44757
  overflow: hidden;
@@ -44780,8 +44785,8 @@ const Tm = Q(void 0), Nm = () => {
44780
44785
  swapExecutionState: o,
44781
44786
  firstOperationStatus: t
44782
44787
  }) => {
44783
- var g, f;
44784
- const c = de(), { route: a } = L(Ne), r = e[0], s = e[e.length - 1], m = n == null ? void 0 : n.transferEvents, p = W(() => {
44788
+ var b, f;
44789
+ const c = de(), { route: a } = L(Ne), r = e[0], s = e[e.length - 1], m = n == null ? void 0 : n.transferEvents, p = U(() => {
44785
44790
  var C;
44786
44791
  const v = (C = m == null ? void 0 : m[s.transferIndex]) == null ? void 0 : C.status;
44787
44792
  if (o === Ce.confirmed)
@@ -44799,7 +44804,7 @@ const Tm = Q(void 0), Nm = () => {
44799
44804
  tokenAmount: s.amountOut,
44800
44805
  chainId: s.toChainID ?? s.chainID,
44801
44806
  usdValue: a == null ? void 0 : a.usdAmountOut
44802
- }, x = (g = m == null ? void 0 : m[r.transferIndex]) == null ? void 0 : g.fromExplorerLink, b = (f = m == null ? void 0 : m[s.transferIndex]) == null ? void 0 : f.toExplorerLink;
44807
+ }, x = (b = m == null ? void 0 : m[r.transferIndex]) == null ? void 0 : b.fromExplorerLink, g = (f = m == null ? void 0 : m[s.transferIndex]) == null ? void 0 : f.toExplorerLink;
44803
44808
  return /* @__PURE__ */ j(Ex, { justify: "space-between", children: [
44804
44809
  /* @__PURE__ */ l(
44805
44810
  ss,
@@ -44818,7 +44823,7 @@ const Tm = Q(void 0), Nm = () => {
44818
44823
  icon: J.pen,
44819
44824
  status: p,
44820
44825
  onClickEditDestinationWallet: i,
44821
- explorerLink: b,
44826
+ explorerLink: g,
44822
44827
  context: "destination"
44823
44828
  }
44824
44829
  )
@@ -44904,7 +44909,7 @@ const Tm = Q(void 0), Nm = () => {
44904
44909
  }
44905
44910
  ), Bx = () => {
44906
44911
  const { route: e } = L(Ne), { data: n } = L(Ee);
44907
- return W(() => {
44912
+ return U(() => {
44908
44913
  if (!n || !e) return !1;
44909
44914
  const o = n.find((a) => a.chainID === e.sourceAssetChainID), t = n.find((a) => a.chainID === e.destAssetChainID);
44910
44915
  if (!o || !t) return !1;
@@ -44946,13 +44951,13 @@ const Tm = Q(void 0), Nm = () => {
44946
44951
  firstOperationStatus: t,
44947
44952
  secondOperationStatus: c
44948
44953
  }) => {
44949
- var g;
44954
+ var b;
44950
44955
  const { data: a } = L(ea), { data: r } = L(nD), s = Bx(), m = e[0], p = n == null ? void 0 : n.transferEvents, d = ye(
44951
44956
  (f) => {
44952
44957
  var h, D;
44953
- const v = (D = (h = f.swapVenues) == null ? void 0 : h[0]) == null ? void 0 : D.chainID, C = f.bridgeID, E = r == null ? void 0 : r.find((A) => A.id === C), q = a == null ? void 0 : a.find((A) => A.chainID === v), B = (E == null ? void 0 : E.logoURI) ?? (q == null ? void 0 : q.logoUri), I = B == null ? void 0 : B.endsWith(".svg");
44958
+ const v = (D = (h = f.swapVenues) == null ? void 0 : h[0]) == null ? void 0 : D.chainID, C = f.bridgeID, E = r == null ? void 0 : r.find((A) => A.id === C), S = a == null ? void 0 : a.find((A) => A.chainID === v), B = (E == null ? void 0 : E.logoURI) ?? (S == null ? void 0 : S.logoUri), I = B == null ? void 0 : B.endsWith(".svg");
44954
44959
  return {
44955
- name: (E == null ? void 0 : E.name) ?? (q == null ? void 0 : q.name),
44960
+ name: (E == null ? void 0 : E.name) ?? (S == null ? void 0 : S.name),
44956
44961
  image: B,
44957
44962
  isSvg: I
44958
44963
  };
@@ -44960,8 +44965,8 @@ const Tm = Q(void 0), Nm = () => {
44960
44965
  [r, a]
44961
44966
  ), u = ye(
44962
44967
  (f) => {
44963
- var E, q;
44964
- const v = (E = p == null ? void 0 : p[f.transferIndex]) == null ? void 0 : E.status, C = (q = p == null ? void 0 : p[f.transferIndex - 1]) == null ? void 0 : q.status;
44968
+ var E, S;
44969
+ const v = (E = p == null ? void 0 : p[f.transferIndex]) == null ? void 0 : E.status, C = (S = p == null ? void 0 : p[f.transferIndex - 1]) == null ? void 0 : S.status;
44965
44970
  if (o === Ce.confirmed)
44966
44971
  return "completed";
44967
44972
  if (f.transferIndex === 0)
@@ -44977,7 +44982,7 @@ const Tm = Q(void 0), Nm = () => {
44977
44982
  return /* @__PURE__ */ l(Hx, { align: "center", children: /* @__PURE__ */ l(
44978
44983
  Pi,
44979
44984
  {
44980
- content: /* @__PURE__ */ j(K, { normalTextColor: !0, textWrap: "nowrap", children: [
44985
+ content: /* @__PURE__ */ j(X, { normalTextColor: !0, textWrap: "nowrap", children: [
44981
44986
  v,
44982
44987
  " with ",
44983
44988
  C.name,
@@ -44995,13 +45000,13 @@ const Tm = Q(void 0), Nm = () => {
44995
45000
  ) });
44996
45001
  },
44997
45002
  [d]
44998
- ), b = W(() => e.map((f, v) => {
45003
+ ), g = U(() => e.map((f, v) => {
44999
45004
  var I, T;
45000
45005
  const C = e[v + 1], E = {
45001
45006
  tokenAmount: f.amountOut,
45002
45007
  denom: f.denomOut,
45003
45008
  chainId: f.toChainID ?? f.chainID
45004
- }, q = f.isSwap ? (I = p == null ? void 0 : p[f.transferIndex]) == null ? void 0 : I.fromExplorerLink : (T = p == null ? void 0 : p[f.transferIndex]) == null ? void 0 : T.toExplorerLink, B = u(f);
45009
+ }, S = f.isSwap ? (I = p == null ? void 0 : p[f.transferIndex]) == null ? void 0 : I.fromExplorerLink : (T = p == null ? void 0 : p[f.transferIndex]) == null ? void 0 : T.toExplorerLink, B = u(f);
45005
45010
  return /* @__PURE__ */ j(ln.Fragment, { children: [
45006
45011
  x(f),
45007
45012
  /* @__PURE__ */ l(
@@ -45013,7 +45018,7 @@ const Tm = Q(void 0), Nm = () => {
45013
45018
  context: v === e.length - 1 ? "destination" : "intermediary",
45014
45019
  isSignRequired: C == null ? void 0 : C.signRequired,
45015
45020
  status: B,
45016
- explorerLink: q,
45021
+ explorerLink: S,
45017
45022
  statusData: n
45018
45023
  }
45019
45024
  )
@@ -45033,13 +45038,13 @@ const Tm = Q(void 0), Nm = () => {
45033
45038
  tokenAmount: m.amountIn,
45034
45039
  denom: m.denomIn,
45035
45040
  chainId: m.fromChainID,
45036
- explorerLink: (g = p == null ? void 0 : p[0]) == null ? void 0 : g.fromExplorerLink,
45041
+ explorerLink: (b = p == null ? void 0 : p[0]) == null ? void 0 : b.fromExplorerLink,
45037
45042
  status: t,
45038
45043
  context: "source",
45039
45044
  index: 0
45040
45045
  }
45041
45046
  ),
45042
- b,
45047
+ g,
45043
45048
  s && /* @__PURE__ */ l(Tx, { children: "Transactions from EVM to Babylon have gas provided automatically if no gas tokens are found." })
45044
45049
  ] }) });
45045
45050
  }, Sx = N(pe).attrs({
@@ -45068,26 +45073,26 @@ const Tm = Q(void 0), Nm = () => {
45068
45073
 
45069
45074
  background-color: ${({ theme: e }) => e.primary.text.normal};
45070
45075
  ${({ svg: e }) => e && `mask: url(${e}) no-repeat center / contain;`};
45071
- `, Hx = N(O)`
45076
+ `, Hx = N(W)`
45072
45077
  position: relative;
45073
45078
  height: 25px;
45074
- `, Tx = N(K)`
45079
+ `, Tx = N(X)`
45075
45080
  margin-top: 10px;
45076
45081
  color: ${({ theme: e }) => e.success.text};
45077
45082
  background: ${({ theme: e }) => e.secondary.background.transparent};
45078
45083
  padding: 12px;
45079
45084
  border-radius: 6px;
45080
45085
  `, Nx = () => {
45081
- var E, q, B;
45082
- const [e, n] = me(Gn), { route: i, overallStatus: o } = L(Ne), t = i == null ? void 0 : i.requiredChainAddresses, { data: c } = L(Ee), a = L(rt), [r, s] = se(!0), [m, p] = se(!1), [d, u] = se(), { createCosmosWallets: x } = km(), { createEvmWallets: b } = wm(), { createSolanaWallets: g } = ym();
45086
+ var E, S, B;
45087
+ const [e, n] = me(Gn), { route: i, overallStatus: o } = L(Ne), t = i == null ? void 0 : i.requiredChainAddresses, { data: c } = L(Ee), a = L(rt), [r, s] = se(!0), [m, p] = se(!1), [d, u] = se(), { createCosmosWallets: x } = km(), { createEvmWallets: g } = wm(), { createSolanaWallets: b } = ym();
45083
45088
  me(a2);
45084
- const f = L(st), v = W(() => i != null && i.operations ? Ti(i.operations).filter((h) => h.signRequired).map((h) => h.fromChainID) : void 0, [i == null ? void 0 : i.operations]), C = ye(
45089
+ const f = L(st), v = U(() => i != null && i.operations ? Ti(i.operations).filter((h) => h.signRequired).map((h) => h.fromChainID) : void 0, [i == null ? void 0 : i.operations]), C = ye(
45085
45090
  async (I) => {
45086
45091
  s(!0);
45087
45092
  const T = {
45088
45093
  [R.Cosmos]: x,
45089
- [R.EVM]: b,
45090
- [R.SVM]: g
45094
+ [R.EVM]: g,
45095
+ [R.SVM]: b
45091
45096
  };
45092
45097
  t && t.forEach(async (h, D) => {
45093
45098
  var w, M;
@@ -45096,7 +45101,7 @@ const Tm = Q(void 0), Nm = () => {
45096
45101
  return;
45097
45102
  const F = () => {
45098
45103
  const z = v == null ? void 0 : v.includes(h);
45099
- oe.show(he.SetAddressModal, {
45104
+ te.show(he.SetAddressModal, {
45100
45105
  signRequired: z,
45101
45106
  chainId: h,
45102
45107
  chainAddressIndex: D
@@ -45104,8 +45109,8 @@ const Tm = Q(void 0), Nm = () => {
45104
45109
  };
45105
45110
  if (e[D].source !== To.Input)
45106
45111
  try {
45107
- const z = A.chainType, k = T[z](h), P = (w = a[z]) == null ? void 0 : w.walletName, y = k.find((Z) => Z.walletName === P), S = v == null ? void 0 : v.includes(h), H = await ((M = y == null ? void 0 : y.getAddress) == null ? void 0 : M.call(y, { signRequired: S })), U = f == null ? void 0 : f[h], X = (f == null ? void 0 : f[h]) ?? (H == null ? void 0 : H.address);
45108
- if (!X)
45112
+ const z = A.chainType, k = T[z](h), P = (w = a[z]) == null ? void 0 : w.walletName, y = k.find((Z) => Z.walletName === P), q = v == null ? void 0 : v.includes(h), H = await ((M = y == null ? void 0 : y.getAddress) == null ? void 0 : M.call(y, { signRequired: q })), O = f == null ? void 0 : f[h], K = (f == null ? void 0 : f[h]) ?? (H == null ? void 0 : H.address);
45113
+ if (!K)
45109
45114
  throw new Error(
45110
45115
  `Address not found in connected wallets.
45111
45116
  Opening modal for user to enter address`
@@ -45115,23 +45120,23 @@ const Tm = Q(void 0), Nm = () => {
45115
45120
  return;
45116
45121
  }
45117
45122
  n((Z) => {
45118
- const te = () => {
45119
- var re;
45120
- return (y == null ? void 0 : y.walletChainType) === "evm" && (y == null ? void 0 : y.walletName) === "app.keplr" ? Xo(le.KEPLR).imgSrc : (H == null ? void 0 : H.logo) ?? ((re = y == null ? void 0 : y.walletInfo) == null ? void 0 : re.logo);
45123
+ const ce = () => {
45124
+ var oe;
45125
+ return (y == null ? void 0 : y.walletChainType) === "evm" && (y == null ? void 0 : y.walletName) === "app.keplr" ? Xo(le.KEPLR).imgSrc : (H == null ? void 0 : H.logo) ?? ((oe = y == null ? void 0 : y.walletInfo) == null ? void 0 : oe.logo);
45121
45126
  };
45122
45127
  return {
45123
45128
  ...Z,
45124
45129
  [D]: {
45125
45130
  chainID: h,
45126
- address: X,
45131
+ address: K,
45127
45132
  chainType: z,
45128
- source: U ? To.Injected : To.Wallet,
45133
+ source: O ? To.Injected : To.Wallet,
45129
45134
  wallet: y ? {
45130
45135
  walletName: y == null ? void 0 : y.walletName,
45131
45136
  walletPrettyName: y == null ? void 0 : y.walletPrettyName,
45132
45137
  walletChainType: z,
45133
45138
  walletInfo: {
45134
- logo: te()
45139
+ logo: ce()
45135
45140
  }
45136
45141
  } : void 0
45137
45142
  }
@@ -45147,8 +45152,8 @@ const Tm = Q(void 0), Nm = () => {
45147
45152
  },
45148
45153
  [
45149
45154
  x,
45150
- b,
45151
45155
  g,
45156
+ b,
45152
45157
  t,
45153
45158
  c,
45154
45159
  e,
@@ -45158,7 +45163,7 @@ const Tm = Q(void 0), Nm = () => {
45158
45163
  n
45159
45164
  ]
45160
45165
  );
45161
- return ae(() => {
45166
+ return re(() => {
45162
45167
  var T, h, D, A, F, w;
45163
45168
  if (o !== "unconfirmed") {
45164
45169
  s(!1);
@@ -45168,18 +45173,18 @@ const Tm = Q(void 0), Nm = () => {
45168
45173
  }, [
45169
45174
  C,
45170
45175
  (E = d == null ? void 0 : d.cosmos) == null ? void 0 : E.id,
45171
- (q = d == null ? void 0 : d.evm) == null ? void 0 : q.id,
45176
+ (S = d == null ? void 0 : d.evm) == null ? void 0 : S.id,
45172
45177
  (B = d == null ? void 0 : d.svm) == null ? void 0 : B.id,
45173
45178
  r,
45174
45179
  o,
45175
45180
  t,
45176
45181
  a
45177
- ]), ae(() => {
45182
+ ]), re(() => {
45178
45183
  m && (C(), p(!1));
45179
45184
  }, [C, m]), { connectRequiredChains: C, isLoading: r };
45180
45185
  }, Vx = (e) => {
45181
45186
  const { route: n, transactionDetailsArray: i } = L(Ne), o = Y(je), t = Y(In), [c, a] = se();
45182
- ae(() => {
45187
+ re(() => {
45183
45188
  if (!(!(n != null && n.estimatedRouteDurationSeconds) || !(n != null && n.txsRequired))) {
45184
45189
  if (e === Ce.pending && c === void 0 && n.txsRequired === i.length) {
45185
45190
  const r = i[i.length - 1], s = setTimeout(
@@ -45213,7 +45218,7 @@ const Tm = Q(void 0), Nm = () => {
45213
45218
  statusData: e,
45214
45219
  historyIndex: n
45215
45220
  }) => {
45216
- const i = e == null ? void 0 : e.transferEvents, o = Y(In), { route: t, transactionDetailsArray: c, overallStatus: a, transactionHistoryIndex: r } = L(Ne), s = Y(hm), m = L(Fn), { isPending: p } = L(xm), d = W(() => t != null && t.operations ? Ti(t.operations) : [], [t == null ? void 0 : t.operations]), u = W(() => {
45221
+ const i = e == null ? void 0 : e.transferEvents, o = Y(In), { route: t, transactionDetailsArray: c, overallStatus: a, transactionHistoryIndex: r } = L(Ne), s = Y(hm), m = L(Fn), { isPending: p } = L(xm), d = U(() => t != null && t.operations ? Ti(t.operations) : [], [t == null ? void 0 : t.operations]), u = U(() => {
45217
45222
  if (!(!(t != null && t.operations) || !(t != null && t.txsRequired))) {
45218
45223
  if ((e == null ? void 0 : e.lastTxStatus) === "pending")
45219
45224
  return p && o("pending"), "pending";
@@ -45243,7 +45248,7 @@ const Tm = Q(void 0), Nm = () => {
45243
45248
  i,
45244
45249
  a
45245
45250
  ]);
45246
- ae(() => {
45251
+ re(() => {
45247
45252
  u && (s(n ?? r, {
45248
45253
  ...m[n ?? r],
45249
45254
  status: u
@@ -45268,7 +45273,7 @@ function Rx({
45268
45273
  signaturesRemaining: t,
45269
45274
  isLoading: c
45270
45275
  }) {
45271
- return W(() => {
45276
+ return U(() => {
45272
45277
  var m;
45273
45278
  if (c) return Ce.pendingGettingAddresses;
45274
45279
  if (!e) return Ce.destinationAddressUnset;
@@ -45312,13 +45317,13 @@ const Ox = ({
45312
45317
  }
45313
45318
  ), Wx = () => {
45314
45319
  const e = de();
45315
- return /* @__PURE__ */ l(O, { children: /* @__PURE__ */ l(Pi, { content: "Powered by Skip:Go Fast", children: /* @__PURE__ */ l(Ox, { color: e.brandColor }) }) });
45320
+ return /* @__PURE__ */ l(W, { children: /* @__PURE__ */ l(Pi, { content: "Powered by Skip:Go Fast", children: /* @__PURE__ */ l(Ox, { color: e.brandColor }) }) });
45316
45321
  }, Ux = ({
45317
45322
  estimatedRouteDurationSeconds: e,
45318
45323
  swapExecutionState: n
45319
45324
  }) => {
45320
45325
  const [i, o] = se(e), [t, c] = se();
45321
- return ae(() => {
45326
+ return re(() => {
45322
45327
  const a = e;
45323
45328
  if (!t && a && n && [Ce.pending, Ce.signaturesRemaining].includes(
45324
45329
  n
@@ -45368,7 +45373,7 @@ const Ox = ({
45368
45373
  onClick: () => {
45369
45374
  V("swap execution page: set destination address button - clicked");
45370
45375
  const x = n == null ? void 0 : n.destAssetChainID;
45371
- x && oe.show(he.SetAddressModal, {
45376
+ x && te.show(he.SetAddressModal, {
45372
45377
  signRequired: o.signRequired,
45373
45378
  chainId: x,
45374
45379
  chainAddressIndex: n.requiredChainAddresses.length - 1
@@ -45443,7 +45448,7 @@ const Ox = ({
45443
45448
  (u, x) => {
45444
45449
  if (!(!u || !x) && c)
45445
45450
  return c.find(
45446
- (b) => b.denom.toLowerCase() === u.toLowerCase() && b.chainID === x
45451
+ (g) => g.denom.toLowerCase() === u.toLowerCase() && g.chainID === x
45447
45452
  );
45448
45453
  },
45449
45454
  [c]
@@ -45451,7 +45456,7 @@ const Ox = ({
45451
45456
  (p = e == null ? void 0 : e.transferAssetRelease) == null ? void 0 : p.denom,
45452
45457
  (d = e == null ? void 0 : e.transferAssetRelease) == null ? void 0 : d.chainID
45453
45458
  );
45454
- ae(() => {
45459
+ re(() => {
45455
45460
  if (e != null && e.isSettled && !(e != null && e.isSuccess)) {
45456
45461
  if (m) {
45457
45462
  V("error page: transaction reverted", {
@@ -45501,14 +45506,14 @@ const Xx = () => {
45501
45506
  transactionDetailsArray: o,
45502
45507
  isValidatingGasBalance: t,
45503
45508
  transactionsSigned: c
45504
- } = L(Ne), a = L(Gn), { connectRequiredChains: r, isLoading: s } = Nx(), [m, p] = se(!0), { mutate: d } = L(xm), x = (n == null ? void 0 : n.txsRequired) && n.txsRequired > 1 ? n.txsRequired - c : 0, { data: b } = ca({
45509
+ } = L(Ne), a = L(Gn), { connectRequiredChains: r, isLoading: s } = Nx(), [m, p] = se(!0), { mutate: d } = L(xm), x = (n == null ? void 0 : n.txsRequired) && n.txsRequired > 1 ? n.txsRequired - c : 0, { data: g } = ca({
45505
45510
  txsRequired: n == null ? void 0 : n.txsRequired,
45506
45511
  txs: o
45507
45512
  });
45508
45513
  Lx({
45509
- statusData: b
45514
+ statusData: g
45510
45515
  });
45511
- const g = W(() => n != null && n.operations ? Ti(n.operations) : [], [n == null ? void 0 : n.operations]), f = g[g.length - 1], v = Rx({
45516
+ const b = U(() => n != null && n.operations ? Ti(n.operations) : [], [n == null ? void 0 : n.operations]), f = b[b.length - 1], v = Rx({
45512
45517
  chainAddresses: a,
45513
45518
  route: n,
45514
45519
  overallStatus: i,
@@ -45516,20 +45521,20 @@ const Xx = () => {
45516
45521
  signaturesRemaining: x,
45517
45522
  isLoading: s
45518
45523
  });
45519
- Kx(b), Vx(v);
45520
- const C = W(() => {
45524
+ Kx(g), Vx(v);
45525
+ const C = U(() => {
45521
45526
  if (v === 6 || v === 3 || v === 5)
45522
45527
  return "completed";
45523
- }, [v]), E = W(() => {
45528
+ }, [v]), E = U(() => {
45524
45529
  var T;
45525
- const I = b == null ? void 0 : b.transferEvents;
45530
+ const I = g == null ? void 0 : g.transferEvents;
45526
45531
  if (v === 6)
45527
45532
  return "completed";
45528
45533
  if ((T = I == null ? void 0 : I[0]) != null && T.status)
45529
45534
  return I[0].status;
45530
45535
  if (v === 3 || v === 5)
45531
45536
  return "pending";
45532
- }, [b, v]), q = W(() => {
45537
+ }, [g, v]), S = U(() => {
45533
45538
  if (V("swap execution page: edit destination address button - clicked"), ![
45534
45539
  3,
45535
45540
  4,
@@ -45539,7 +45544,7 @@ const Xx = () => {
45539
45544
  /* signaturesRemaining */
45540
45545
  ].includes(v))
45541
45546
  return () => {
45542
- oe.show(he.SetAddressModal, {
45547
+ te.show(he.SetAddressModal, {
45543
45548
  chainId: n == null ? void 0 : n.destAssetChainID,
45544
45549
  chainAddressIndex: n ? (n == null ? void 0 : n.requiredChainAddresses.length) - 1 : void 0
45545
45550
  });
@@ -45570,9 +45575,9 @@ const Xx = () => {
45570
45575
  /* @__PURE__ */ l(
45571
45576
  B,
45572
45577
  {
45573
- onClickEditDestinationWallet: q,
45574
- operations: g,
45575
- statusData: b,
45578
+ onClickEditDestinationWallet: S,
45579
+ operations: b,
45580
+ statusData: g,
45576
45581
  swapExecutionState: v,
45577
45582
  firstOperationStatus: C,
45578
45583
  secondOperationStatus: E
@@ -45726,16 +45731,16 @@ const Rm = () => {
45726
45731
  address: i == null ? void 0 : i.address
45727
45732
  }), m = s.isPending && s.isFetching, p = c && a;
45728
45733
  return {
45729
- data: W(() => {
45730
- var f, v, C, E, q, B, I, T;
45734
+ data: U(() => {
45735
+ var f, v, C, E, S, B, I, T;
45731
45736
  if (!e || !i || !o) return;
45732
45737
  const { chainID: u, denom: x } = e;
45733
45738
  if (!x || !u) return;
45734
- const b = !!((v = (f = o == null ? void 0 : o.chains) == null ? void 0 : f[u]) != null && v.denoms), g = (q = (E = (C = o == null ? void 0 : o.chains) == null ? void 0 : C[u]) == null ? void 0 : E.denoms) == null ? void 0 : q[x];
45739
+ const g = !!((v = (f = o == null ? void 0 : o.chains) == null ? void 0 : f[u]) != null && v.denoms), b = (S = (E = (C = o == null ? void 0 : o.chains) == null ? void 0 : C[u]) == null ? void 0 : E.denoms) == null ? void 0 : S[x];
45735
45740
  return e.isCW20 ? {
45736
45741
  ...s.data,
45737
45742
  error: s.error || void 0
45738
- } : b && g === void 0 ? {
45743
+ } : g && b === void 0 ? {
45739
45744
  amount: 0,
45740
45745
  formattedAmount: "0",
45741
45746
  error: void 0,
@@ -45749,22 +45754,22 @@ const Rm = () => {
45749
45754
  };
45750
45755
  }, Om = (e) => {
45751
45756
  const n = kt(), { data: i } = L(Ee), { data: o } = L(ea);
45752
- return W(() => {
45757
+ return U(() => {
45753
45758
  var a;
45754
45759
  if (!e) return;
45755
45760
  const c = (a = i == null ? void 0 : i.find((r) => r.chainID === e)) == null ? void 0 : a.feeAssets;
45756
45761
  return c == null ? void 0 : c.map((r) => {
45757
- var b;
45758
- const s = (b = n(e, r.denom)) == null ? void 0 : b.amount;
45762
+ var g;
45763
+ const s = (g = n(e, r.denom)) == null ? void 0 : g.amount;
45759
45764
  if (!s) return;
45760
45765
  const m = (() => {
45761
45766
  var f, v, C;
45762
- const g = ((f = r.gasPrice) == null ? void 0 : f.average) || ((v = r.gasPrice) == null ? void 0 : v.high) || ((C = r.gasPrice) == null ? void 0 : C.low);
45763
- if (g)
45764
- return new Op(Rp.fromUserInput(Be(g).toFixed(), 18), r.denom);
45767
+ const b = ((f = r.gasPrice) == null ? void 0 : f.average) || ((v = r.gasPrice) == null ? void 0 : v.high) || ((C = r.gasPrice) == null ? void 0 : C.low);
45768
+ if (b)
45769
+ return new Op(Rp.fromUserInput(Be(b).toFixed(), 18), r.denom);
45765
45770
  })();
45766
45771
  if (!m) return;
45767
- const p = o == null ? void 0 : o.map((g) => g.chainID).includes(e), d = Math.ceil(p ? eo.SWAP : eo.DEFAULT), x = Wp(d, m).amount[0].amount;
45772
+ const p = o == null ? void 0 : o.map((b) => b.chainID).includes(e), d = Math.ceil(p ? eo.SWAP : eo.DEFAULT), x = Wp(d, m).amount[0].amount;
45768
45773
  return {
45769
45774
  feeAmount: x,
45770
45775
  denom: r.denom,
@@ -45860,7 +45865,7 @@ const Rm = () => {
45860
45865
  assetDenom: e == null ? void 0 : e.denom,
45861
45866
  amount: e == null ? void 0 : e.amount,
45862
45867
  chainId: e == null ? void 0 : e.chainID
45863
- }), { data: t, isLoading: c } = Rm(), a = ig(), r = yt(), s = W(() => {
45868
+ }), { data: t, isLoading: c } = Rm(), a = ig(), r = yt(), s = U(() => {
45864
45869
  var d;
45865
45870
  const m = o != null && o.symbol ? ` ${o == null ? void 0 : o.symbol}` : "";
45866
45871
  return (d = t == null ? void 0 : t.error) != null && d.message ? "--" : t === void 0 ? void 0 : co(
@@ -45868,7 +45873,7 @@ const Rm = () => {
45868
45873
  ) + m;
45869
45874
  }, [t, o == null ? void 0 : o.symbol]);
45870
45875
  return i ? /* @__PURE__ */ j(
45871
- O,
45876
+ W,
45872
45877
  {
45873
45878
  style: {
45874
45879
  paddingRight: 8,
@@ -45879,7 +45884,7 @@ const Rm = () => {
45879
45884
  ci,
45880
45885
  {
45881
45886
  onClick: () => {
45882
- V("swap page: connected wallet balance - clicked"), oe.show(he.ConnectedWalletModal);
45887
+ V("swap page: connected wallet balance - clicked"), te.show(he.ConnectedWalletModal);
45883
45888
  },
45884
45889
  align: "center",
45885
45890
  gap: 8,
@@ -45932,19 +45937,19 @@ const Rm = () => {
45932
45937
  }
45933
45938
  ) : null;
45934
45939
  }, ag = () => {
45935
- const e = ui(), { data: n } = L(fn), i = Y(Pm), { data: o } = L(Ee), t = L(st), c = W(() => {
45940
+ const e = ui(), { data: n } = L(fn), i = Y(Pm), { data: o } = L(Ee), t = L(st), c = U(() => {
45936
45941
  if (!t) return;
45937
45942
  const m = Object.keys(t).find((p) => {
45938
45943
  const d = o == null ? void 0 : o.find((u) => u.chainID === p);
45939
45944
  return (d == null ? void 0 : d.chainType) === R.EVM;
45940
45945
  });
45941
45946
  return m && (t == null ? void 0 : t[m]);
45942
- }, [t, o]), { chainId: a } = lo(), r = W(() => !n || !o ? {} : n.reduce(
45947
+ }, [t, o]), { chainId: a } = lo(), r = U(() => !n || !o ? {} : n.reduce(
45943
45948
  (s, m) => {
45944
- var x, b;
45945
- const p = o.find((g) => g.chainID === m.chainID);
45949
+ var x, g;
45950
+ const p = o.find((b) => b.chainID === m.chainID);
45946
45951
  if (!p) return s;
45947
- const d = c ?? ((x = e(String(a))) == null ? void 0 : x.address), u = p.chainType === R.EVM ? d : (b = e(m.chainID)) == null ? void 0 : b.address;
45952
+ const d = c ?? ((x = e(String(a))) == null ? void 0 : x.address), u = p.chainType === R.EVM ? d : (g = e(m.chainID)) == null ? void 0 : g.address;
45948
45953
  return u && !s[m.chainID] && (s[m.chainID] = { address: u }), s;
45949
45954
  },
45950
45955
  {}
@@ -45957,12 +45962,12 @@ const Rm = () => {
45957
45962
  const e = Y(ND), n = Y(
45958
45963
  LD
45959
45964
  );
45960
- ae(() => () => {
45965
+ re(() => () => {
45961
45966
  e(void 0), n(void 0);
45962
45967
  }, [n, e]);
45963
45968
  }, sg = () => {
45964
45969
  const [e] = me(Un), [n] = me(Rn), [i, o] = me(ge), [t, c] = me(We);
45965
- ae(() => {
45970
+ re(() => {
45966
45971
  if (!e.data || !i || !t || (i == null ? void 0 : i.amount) === "" && n === "swap-in" || (t == null ? void 0 : t.amount) === "" && n === "swap-out") return;
45967
45972
  const a = on(
45968
45973
  e.data.amountOut,
@@ -45990,16 +45995,16 @@ const Rm = () => {
45990
45995
  }, lg = () => {
45991
45996
  var t;
45992
45997
  const { data: e } = L(Ee), n = L(ge), i = (t = e == null ? void 0 : e.find((c) => c.chainID === (n == null ? void 0 : n.chainID))) == null ? void 0 : t.chainType, o = ui();
45993
- return W(() => {
45998
+ return U(() => {
45994
45999
  if (i !== R.Cosmos) return !1;
45995
46000
  const c = o(n == null ? void 0 : n.chainID);
45996
46001
  return !(c != null && c.address) || !(n != null && n.chainID) || !Nu.includes(n == null ? void 0 : n.chainID) ? !1 : !!(c != null && c.wallet.isLedger);
45997
46002
  }, [n == null ? void 0 : n.chainID, i, o]);
45998
46003
  }, mg = () => {
45999
- var re;
46004
+ var oe;
46000
46005
  const { SettingsFooter: e, drawerOpen: n } = Nm();
46001
46006
  me(RD), me(OD);
46002
- const [i, o] = me(ge), t = Y(go), c = Y(dt), [a] = me(lm), [r, s] = me(We), [m] = me(Rn), [{ data: p }] = me(fn), d = Y(cn), u = L(ro), x = og(), b = Y(t2), g = Y(je), { isFetching: f, isPending: v } = L(xa), C = f && v, { data: E, isError: q, error: B } = L(Un), I = lg(), T = L(la), h = bt(E), D = L(Dt), A = L(mm), F = Y(Gn);
46007
+ const [i, o] = me(ge), t = Y(go), c = Y(dt), [a] = me(lm), [r, s] = me(We), [m] = me(Rn), [{ data: p }] = me(fn), d = Y(cn), u = L(ro), x = og(), g = Y(t2), b = Y(je), { isFetching: f, isPending: v } = L(xa), C = f && v, { data: E, isError: S, error: B } = L(Un), I = lg(), T = L(la), h = bt(E), D = L(Dt), A = L(mm), F = Y(Gn);
46003
46008
  ag(), rg(), sg();
46004
46009
  const w = Lm(), z = ui()(i == null ? void 0 : i.chainID), k = L(Fn), P = s2(E), y = ye(
46005
46010
  (G, _) => {
@@ -46009,54 +46014,54 @@ const Rm = () => {
46009
46014
  );
46010
46015
  },
46011
46016
  [p]
46012
- ), S = ye(() => {
46013
- V("swap page: source asset button - clicked"), oe.show(he.AssetAndChainSelectorModal, {
46017
+ ), q = ye(() => {
46018
+ V("swap page: source asset button - clicked"), te.show(he.AssetAndChainSelectorModal, {
46014
46019
  context: "source",
46015
46020
  onSelect: (G) => {
46016
46021
  V("swap page: source asset selected", { asset: G }), o((_) => ({
46017
46022
  ..._,
46018
46023
  ...G
46019
- })), w(G == null ? void 0 : G.chainID), t(""), c(""), oe.hide(he.AssetAndChainSelectorModal);
46024
+ })), w(G == null ? void 0 : G.chainID), t(""), c(""), te.hide(he.AssetAndChainSelectorModal);
46020
46025
  }
46021
46026
  });
46022
46027
  }, [c, o, t, w]), H = ye(() => {
46023
- V("swap page: source chain button - clicked"), oe.show(he.AssetAndChainSelectorModal, {
46028
+ V("swap page: source chain button - clicked"), te.show(he.AssetAndChainSelectorModal, {
46024
46029
  context: "source",
46025
46030
  onSelect: (G) => {
46026
46031
  V("swap page: source chain selected", { asset: G }), o((_) => ({
46027
46032
  ..._,
46028
46033
  ...G
46029
- })), w(G == null ? void 0 : G.chainID), oe.hide(he.AssetAndChainSelectorModal);
46034
+ })), w(G == null ? void 0 : G.chainID), te.hide(he.AssetAndChainSelectorModal);
46030
46035
  },
46031
46036
  selectedAsset: y(i == null ? void 0 : i.denom, i == null ? void 0 : i.chainID),
46032
46037
  selectChain: !0
46033
46038
  });
46034
- }, [y, o, i == null ? void 0 : i.chainID, i == null ? void 0 : i.denom, w]), U = ye(() => {
46035
- V("swap page: destination asset button - clicked"), oe.show(he.AssetAndChainSelectorModal, {
46039
+ }, [y, o, i == null ? void 0 : i.chainID, i == null ? void 0 : i.denom, w]), O = ye(() => {
46040
+ V("swap page: destination asset button - clicked"), te.show(he.AssetAndChainSelectorModal, {
46036
46041
  context: "destination",
46037
46042
  onSelect: (G) => {
46038
46043
  V("swap page: destination asset selected", { asset: G }), s((_) => ({
46039
46044
  ..._,
46040
46045
  ...G
46041
- })), oe.hide(he.AssetAndChainSelectorModal);
46046
+ })), te.hide(he.AssetAndChainSelectorModal);
46042
46047
  }
46043
46048
  });
46044
- }, [s]), X = ye(() => {
46045
- V("swap page: destination chain button - clicked"), oe.show(he.AssetAndChainSelectorModal, {
46049
+ }, [s]), K = ye(() => {
46050
+ V("swap page: destination chain button - clicked"), te.show(he.AssetAndChainSelectorModal, {
46046
46051
  context: "destination",
46047
46052
  onSelect: (G) => {
46048
46053
  V("swap page: destination chain selected", { asset: G }), s((_) => ({
46049
46054
  ..._,
46050
46055
  ...G
46051
- })), oe.hide(he.AssetAndChainSelectorModal);
46056
+ })), te.hide(he.AssetAndChainSelectorModal);
46052
46057
  },
46053
46058
  selectedAsset: y(r == null ? void 0 : r.denom, r == null ? void 0 : r.chainID),
46054
46059
  selectChain: !0
46055
46060
  });
46056
- }, [r == null ? void 0 : r.chainID, r == null ? void 0 : r.denom, y, s]), Z = W(() => {
46061
+ }, [r == null ? void 0 : r.chainID, r == null ? void 0 : r.denom, y, s]), Z = U(() => {
46057
46062
  if (!(!(E != null && E.usdAmountIn) || !(E != null && E.usdAmountOut) || a))
46058
46063
  return nm(E.usdAmountIn, E.usdAmountOut);
46059
- }, [a, E == null ? void 0 : E.usdAmountIn, E == null ? void 0 : E.usdAmountOut]), te = W(() => {
46064
+ }, [a, E == null ? void 0 : E.usdAmountIn, E == null ? void 0 : E.usdAmountOut]), ce = U(() => {
46060
46065
  if (!(i != null && i.chainID))
46061
46066
  return /* @__PURE__ */ l(be, { label: "Please select a source asset", icon: J.swap, disabled: !0 });
46062
46067
  if (!(z != null && z.address) && !u)
@@ -46066,9 +46071,9 @@ const Rm = () => {
46066
46071
  label: "Connect Wallet",
46067
46072
  icon: J.plus,
46068
46073
  onClick: () => {
46069
- V("swap page: connect wallet button - clicked"), i != null && i.chainID ? oe.show(he.WalletSelectorModal, {
46074
+ V("swap page: connect wallet button - clicked"), i != null && i.chainID ? te.show(he.WalletSelectorModal, {
46070
46075
  chainId: i == null ? void 0 : i.chainID
46071
- }) : oe.show(he.ConnectedWalletModal);
46076
+ }) : te.show(he.ConnectedWalletModal);
46072
46077
  }
46073
46078
  }
46074
46079
  );
@@ -46078,7 +46083,7 @@ const Rm = () => {
46078
46083
  return /* @__PURE__ */ l(be, { label: "Please enter a valid amount", icon: J.swap, disabled: !0 });
46079
46084
  if (a)
46080
46085
  return /* @__PURE__ */ l(be, { label: "Finding best route", loading: !0 });
46081
- if (q) {
46086
+ if (S) {
46082
46087
  const _ = (B == null ? void 0 : B.message) ?? "", De = _.startsWith("no single-tx routes found") ? "Multiple signature routes are currently only supported on the Skip:Go desktop app" : _, Xe = De.length > 36 ? 18 : 24;
46083
46088
  return /* @__PURE__ */ l(
46084
46089
  be,
@@ -46101,53 +46106,53 @@ const Rm = () => {
46101
46106
  routePreference: D,
46102
46107
  slippage: A
46103
46108
  }), kp(z == null ? void 0 : z.address), I) {
46104
- V("error page: cosmos ledger warning", { route: E }), g({
46109
+ V("error page: cosmos ledger warning", { route: E }), b({
46105
46110
  errorType: ke.CosmosLedgerWarning,
46106
46111
  onClickBack: () => {
46107
- g(void 0);
46112
+ b(void 0);
46108
46113
  }
46109
46114
  });
46110
46115
  return;
46111
46116
  }
46112
46117
  if (((_ = E == null ? void 0 : E.warning) == null ? void 0 : _.type) === "BAD_PRICE_WARNING" && Number(Z ?? 0) < 0) {
46113
- V("error page: bad price warning", { route: E }), g({
46118
+ V("error page: bad price warning", { route: E }), b({
46114
46119
  errorType: ke.BadPriceWarning,
46115
46120
  onClickContinue: () => {
46116
- g(void 0), F({}), d(ze.SwapExecutionPage), b();
46121
+ b(void 0), F({}), d(ze.SwapExecutionPage), g();
46117
46122
  },
46118
46123
  onClickBack: () => {
46119
- g(void 0);
46124
+ b(void 0);
46120
46125
  },
46121
46126
  route: { ...E }
46122
46127
  });
46123
46128
  return;
46124
46129
  }
46125
46130
  if (((De = E == null ? void 0 : E.warning) == null ? void 0 : De.type) === "LOW_INFO_WARNING") {
46126
- V("error page: low info warning", { route: E }), g({
46131
+ V("error page: low info warning", { route: E }), b({
46127
46132
  errorType: ke.LowInfoWarning,
46128
46133
  onClickContinue: () => {
46129
- g(void 0), F({}), d(ze.SwapExecutionPage), b();
46134
+ b(void 0), F({}), d(ze.SwapExecutionPage), g();
46130
46135
  },
46131
46136
  onClickBack: () => {
46132
- g(void 0);
46137
+ b(void 0);
46133
46138
  },
46134
46139
  route: { ...E }
46135
46140
  });
46136
46141
  return;
46137
46142
  }
46138
46143
  if (T && h) {
46139
- V("error page: go fast warning", { route: E }), g({
46144
+ V("error page: go fast warning", { route: E }), b({
46140
46145
  errorType: ke.GoFastWarning,
46141
46146
  onClickContinue: () => {
46142
- g(void 0), F({}), d(ze.SwapExecutionPage), b();
46147
+ b(void 0), F({}), d(ze.SwapExecutionPage), g();
46143
46148
  },
46144
46149
  onClickBack: () => {
46145
- d(ze.SwapPage), g(void 0);
46150
+ d(ze.SwapPage), b(void 0);
46146
46151
  }
46147
46152
  });
46148
46153
  return;
46149
46154
  }
46150
- F({}), d(ze.SwapExecutionPage), ws({ username: z == null ? void 0 : z.address }), b();
46155
+ F({}), d(ze.SwapExecutionPage), ws({ username: z == null ? void 0 : z.address }), g();
46151
46156
  };
46152
46157
  return /* @__PURE__ */ l(
46153
46158
  be,
@@ -46166,7 +46171,7 @@ const Rm = () => {
46166
46171
  r == null ? void 0 : r.chainID,
46167
46172
  r == null ? void 0 : r.amount,
46168
46173
  a,
46169
- q,
46174
+ S,
46170
46175
  C,
46171
46176
  x,
46172
46177
  P,
@@ -46180,8 +46185,8 @@ const Rm = () => {
46180
46185
  h,
46181
46186
  F,
46182
46187
  d,
46183
- b,
46184
- g
46188
+ g,
46189
+ b
46185
46190
  ]);
46186
46191
  return /* @__PURE__ */ j(
46187
46192
  pe,
@@ -46209,7 +46214,7 @@ const Rm = () => {
46209
46214
  cs,
46210
46215
  {
46211
46216
  selectedAsset: i,
46212
- handleChangeAsset: S,
46217
+ handleChangeAsset: q,
46213
46218
  handleChangeChain: H,
46214
46219
  isWaitingToUpdateInputValue: m === "swap-out" && a,
46215
46220
  value: i == null ? void 0 : i.amount,
@@ -46226,13 +46231,13 @@ const Rm = () => {
46226
46231
  cs,
46227
46232
  {
46228
46233
  selectedAsset: r,
46229
- handleChangeAsset: U,
46230
- handleChangeChain: X,
46234
+ handleChangeAsset: O,
46235
+ handleChangeChain: K,
46231
46236
  isWaitingToUpdateInputValue: m === "swap-in" && a,
46232
46237
  usdValue: E == null ? void 0 : E.usdAmountOut,
46233
46238
  value: r == null ? void 0 : r.amount,
46234
46239
  priceChangePercentage: Number(Z),
46235
- badPriceWarning: ((re = E == null ? void 0 : E.warning) == null ? void 0 : re.type) === "BAD_PRICE_WARNING",
46240
+ badPriceWarning: ((oe = E == null ? void 0 : E.warning) == null ? void 0 : oe.type) === "BAD_PRICE_WARNING",
46236
46241
  onChangeValue: (G) => {
46237
46242
  V("swap page: destination asset amount input - changed", { amount: G }), c(G);
46238
46243
  },
@@ -46241,7 +46246,7 @@ const Rm = () => {
46241
46246
  }
46242
46247
  )
46243
46248
  ] }),
46244
- te,
46249
+ ce,
46245
46250
  /* @__PURE__ */ l(e, {})
46246
46251
  ]
46247
46252
  }
@@ -46291,42 +46296,42 @@ const Rm = () => {
46291
46296
  explorerLinks: c,
46292
46297
  transferAssetRelease: a
46293
46298
  }) => {
46294
- const r = de(), s = W(() => {
46299
+ const r = de(), s = U(() => {
46295
46300
  if (e === "failed" || e === "incomplete")
46296
46301
  return a ? r.warning.text : r.error.text;
46297
46302
  if (e === "completed")
46298
46303
  return r.success.text;
46299
- }, [e, r.error.text, r.success.text, r.warning.text, a]), m = (b, g) => {
46300
- g || ol(b);
46301
- }, p = (b) => {
46302
- const g = b == null ? void 0 : b.split("/");
46303
- if (g)
46304
- return g[g.length - 1];
46305
- }, d = W(() => c == null ? void 0 : c.map((b, g) => {
46306
- const f = p(b);
46304
+ }, [e, r.error.text, r.success.text, r.warning.text, a]), m = (g, b) => {
46305
+ b || ol(g);
46306
+ }, p = (g) => {
46307
+ const b = g == null ? void 0 : g.split("/");
46308
+ if (b)
46309
+ return b[b.length - 1];
46310
+ }, d = U(() => c == null ? void 0 : c.map((g, b) => {
46311
+ const f = p(g);
46307
46312
  return /* @__PURE__ */ j(Gt, { align: "center", children: [
46308
- /* @__PURE__ */ l(Ut, { children: g === 0 ? "Initial transaction " : g === c.length - 1 ? "Final transaction " : "Transaction " }),
46313
+ /* @__PURE__ */ l(Ut, { children: b === 0 ? "Initial transaction " : b === c.length - 1 ? "Final transaction " : "Transaction " }),
46309
46314
  /* @__PURE__ */ j(
46310
46315
  na,
46311
46316
  {
46312
- onClick: () => m(f, b),
46313
- href: b,
46317
+ onClick: () => m(f, g),
46318
+ href: g,
46314
46319
  title: f,
46315
46320
  target: "_blank",
46316
46321
  gap: 5,
46317
46322
  children: [
46318
- /* @__PURE__ */ l(K, { normalTextColor: !0, children: xo(f) }),
46319
- /* @__PURE__ */ l(K, { children: /* @__PURE__ */ l(Ln, {}) })
46323
+ /* @__PURE__ */ l(X, { normalTextColor: !0, children: xo(f) }),
46324
+ /* @__PURE__ */ l(X, { children: /* @__PURE__ */ l(Ln, {}) })
46320
46325
  ]
46321
46326
  }
46322
46327
  )
46323
- ] }, `${g}-${f}`);
46328
+ ] }, `${b}-${f}`);
46324
46329
  }), [c]), u = !!(a && a.released && (e === "failed" || e === "incomplete")), x = Oe({
46325
46330
  assetDenom: a == null ? void 0 : a.denom,
46326
46331
  chainId: a == null ? void 0 : a.chainID
46327
46332
  });
46328
46333
  return /* @__PURE__ */ j(pe, { padding: 10, gap: 10, style: { paddingTop: u ? 0 : 10 }, children: [
46329
- u && /* @__PURE__ */ l(dg, { children: /* @__PURE__ */ j(K, { color: r.warning.text, children: [
46334
+ u && /* @__PURE__ */ l(dg, { children: /* @__PURE__ */ j(X, { color: r.warning.text, children: [
46330
46335
  "This transaction did not complete. Your assets have been released as:",
46331
46336
  " ",
46332
46337
  x == null ? void 0 : x.symbol,
@@ -46335,9 +46340,9 @@ const Rm = () => {
46335
46340
  ] }) }),
46336
46341
  /* @__PURE__ */ j(Gt, { align: "center", children: [
46337
46342
  /* @__PURE__ */ l(Ut, { children: "Status" }),
46338
- /* @__PURE__ */ j(O, { gap: 5, align: "center", children: [
46339
- /* @__PURE__ */ l(K, { normalTextColor: !0, color: s, children: e ? u ? "Not completed" : hg[e] : "Loading..." }),
46340
- /* @__PURE__ */ j(K, { children: [
46343
+ /* @__PURE__ */ j(W, { gap: 5, align: "center", children: [
46344
+ /* @__PURE__ */ l(X, { normalTextColor: !0, color: s, children: e ? u ? "Not completed" : hg[e] : "Loading..." }),
46345
+ /* @__PURE__ */ j(X, { children: [
46341
46346
  "at ",
46342
46347
  o
46343
46348
  ] })
@@ -46345,27 +46350,27 @@ const Rm = () => {
46345
46350
  ] }),
46346
46351
  /* @__PURE__ */ j(Gt, { align: "center", children: [
46347
46352
  /* @__PURE__ */ l(Ut, { children: "Chain route" }),
46348
- /* @__PURE__ */ j(O, { gap: 5, align: "center", children: [
46349
- /* @__PURE__ */ l(K, { normalTextColor: !0, children: n }),
46353
+ /* @__PURE__ */ j(W, { gap: 5, align: "center", children: [
46354
+ /* @__PURE__ */ l(X, { normalTextColor: !0, children: n }),
46350
46355
  /* @__PURE__ */ l(Wm, { color: r.primary.text.normal }),
46351
- /* @__PURE__ */ l(K, { normalTextColor: !0, children: i })
46356
+ /* @__PURE__ */ l(X, { normalTextColor: !0, children: i })
46352
46357
  ] })
46353
46358
  ] }),
46354
46359
  d,
46355
- /* @__PURE__ */ l(O, { align: "center", style: { marginTop: 10, padding: "0px 10px" }, children: /* @__PURE__ */ j(tn, { onClick: t, gap: 5, align: "center", children: [
46356
- /* @__PURE__ */ l(K, { color: r.error.text, children: "Delete" }),
46360
+ /* @__PURE__ */ l(W, { align: "center", style: { marginTop: 10, padding: "0px 10px" }, children: /* @__PURE__ */ j(tn, { onClick: t, gap: 5, align: "center", children: [
46361
+ /* @__PURE__ */ l(X, { color: r.error.text, children: "Delete" }),
46357
46362
  /* @__PURE__ */ l(pg, { color: r.error.text })
46358
46363
  ] }) })
46359
46364
  ] });
46360
- }, Ut = N(K)`
46365
+ }, Ut = N(X)`
46361
46366
  width: 100px;
46362
- `, Gt = N(O)`
46367
+ `, Gt = N(W)`
46363
46368
  padding: 0px 10px;
46364
46369
  @media (max-width: 767px) {
46365
46370
  flex-direction: column;
46366
46371
  align-items: flex-start;
46367
46372
  }
46368
- `, dg = N(O)`
46373
+ `, dg = N(W)`
46369
46374
  background-color: ${({ theme: e }) => e.warning.background};
46370
46375
  padding: 10px;
46371
46376
  border-radius: 5px;
@@ -46818,15 +46823,15 @@ function _g(e, n, i) {
46818
46823
  x = Math.round;
46819
46824
  else
46820
46825
  throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");
46821
- var b = d.getTime() - p.getTime(), g = b / ps, f = ms(d) - ms(p), v = (b - f) / ps, C = i == null ? void 0 : i.unit, E;
46822
- if (C ? E = String(C) : g < 1 ? E = "second" : g < 60 ? E = "minute" : g < Yo ? E = "hour" : v < hs ? E = "day" : v < us ? E = "month" : E = "year", E === "second") {
46823
- var q = x(b / 1e3);
46824
- return r.formatDistance("xSeconds", q, m);
46826
+ var g = d.getTime() - p.getTime(), b = g / ps, f = ms(d) - ms(p), v = (g - f) / ps, C = i == null ? void 0 : i.unit, E;
46827
+ if (C ? E = String(C) : b < 1 ? E = "second" : b < 60 ? E = "minute" : b < Yo ? E = "hour" : v < hs ? E = "day" : v < us ? E = "month" : E = "year", E === "second") {
46828
+ var S = x(g / 1e3);
46829
+ return r.formatDistance("xSeconds", S, m);
46825
46830
  } else if (E === "minute") {
46826
- var B = x(g);
46831
+ var B = x(b);
46827
46832
  return r.formatDistance("xMinutes", B, m);
46828
46833
  } else if (E === "hour") {
46829
- var I = x(g / 60);
46834
+ var I = x(b / 60);
46830
46835
  return r.formatDistance("xHours", I, m);
46831
46836
  } else if (E === "day") {
46832
46837
  var T = x(v / Yo);
@@ -46890,9 +46895,9 @@ const $g = (e) => {
46890
46895
  explorerLinks: s,
46891
46896
  transferAssetRelease: m
46892
46897
  } = e3({
46893
- txs: n.transactionDetails.map((S) => ({
46894
- chainID: S.chainID,
46895
- txHash: S.txHash
46898
+ txs: n.transactionDetails.map((q) => ({
46899
+ chainID: q.chainID,
46900
+ txHash: q.txHash
46896
46901
  })),
46897
46902
  txsRequired: n.route.txsRequired
46898
46903
  }), p = Y(YD), {
@@ -46900,22 +46905,22 @@ const $g = (e) => {
46900
46905
  amountIn: d,
46901
46906
  amountOut: u,
46902
46907
  sourceAssetDenom: x,
46903
- sourceAssetChainID: b,
46904
- destAssetDenom: g,
46908
+ sourceAssetChainID: g,
46909
+ destAssetDenom: b,
46905
46910
  destAssetChainID: f
46906
46911
  },
46907
46912
  timestamp: v,
46908
46913
  transactionDetails: C
46909
- } = n, E = (k = C == null ? void 0 : C[0]) == null ? void 0 : k.txHash, q = (P = C == null ? void 0 : C[0]) == null ? void 0 : P.chainID, B = (y = a == null ? void 0 : a.find((S) => S.chainID === q)) == null ? void 0 : y.chainType, I = vc({
46914
+ } = n, E = (k = C == null ? void 0 : C[0]) == null ? void 0 : k.txHash, S = (P = C == null ? void 0 : C[0]) == null ? void 0 : P.chainID, B = (y = a == null ? void 0 : a.find((q) => q.chainID === S)) == null ? void 0 : y.chainType, I = vc({
46910
46915
  txHash: E,
46911
- chainID: q,
46916
+ chainID: S,
46912
46917
  chainType: B
46913
- }), T = W(() => s.length === 0 && I ? [I] : s, [I, s]), h = Oe({
46918
+ }), T = U(() => s.length === 0 && I ? [I] : s, [I, s]), h = Oe({
46914
46919
  assetDenom: x,
46915
- chainId: b,
46920
+ chainId: g,
46916
46921
  tokenAmount: d
46917
46922
  }), D = Oe({
46918
- assetDenom: g,
46923
+ assetDenom: b,
46919
46924
  chainId: f,
46920
46925
  tokenAmount: u
46921
46926
  }), A = {
@@ -46926,7 +46931,7 @@ const $g = (e) => {
46926
46931
  amount: D.amount,
46927
46932
  asset: D.asset,
46928
46933
  assetImage: D.assetImage ?? ""
46929
- }, w = W(() => {
46934
+ }, w = U(() => {
46930
46935
  switch (r) {
46931
46936
  case "unconfirmed":
46932
46937
  case "pending":
@@ -46951,7 +46956,7 @@ const $g = (e) => {
46951
46956
  t.primary.text.normal,
46952
46957
  t.warning.text,
46953
46958
  m
46954
- ]), M = W(() => c ? $g(new Date(v)) : new Date(v).toLocaleString(), [c, v]), z = W(() => r === "pending" ? "In Progress" : _g(new Date(v), /* @__PURE__ */ new Date(), {
46959
+ ]), M = U(() => c ? $g(new Date(v)) : new Date(v).toLocaleString(), [c, v]), z = U(() => r === "pending" ? "In Progress" : _g(new Date(v), /* @__PURE__ */ new Date(), {
46955
46960
  addSuffix: !0
46956
46961
  }).replace("minutes", "mins").replace("minute", "min").replace("hours", "hrs").replace("hour", "hr").replace("seconds", "secs").replace("second", "sec").replace("months", "mos").replace("month", "mo").replace("years", "yrs").replace("year", "yr"), [r, v]);
46957
46962
  return /* @__PURE__ */ j(o3, { showDetails: i, children: [
@@ -46961,7 +46966,7 @@ const $g = (e) => {
46961
46966
  /* @__PURE__ */ l(Wm, { color: t.primary.text.lowContrast, style: { flexShrink: 0 } }),
46962
46967
  /* @__PURE__ */ l(ds, { ...F }),
46963
46968
  /* @__PURE__ */ j(
46964
- K,
46969
+ X,
46965
46970
  {
46966
46971
  normalTextColor: !0,
46967
46972
  title: D.chainName,
@@ -46974,9 +46979,9 @@ const $g = (e) => {
46974
46979
  }
46975
46980
  )
46976
46981
  ] }),
46977
- /* @__PURE__ */ j(O, { align: "center", gap: 10, children: [
46978
- /* @__PURE__ */ l(K, { children: z }),
46979
- /* @__PURE__ */ l(O, { width: 20, align: "center", justify: "center", children: w })
46982
+ /* @__PURE__ */ j(W, { align: "center", gap: 10, children: [
46983
+ /* @__PURE__ */ l(X, { children: z }),
46984
+ /* @__PURE__ */ l(W, { width: 20, align: "center", justify: "center", children: w })
46980
46985
  ] })
46981
46986
  ] }),
46982
46987
  i && /* @__PURE__ */ l(
@@ -47000,8 +47005,8 @@ const $g = (e) => {
47000
47005
  const o = Ze();
47001
47006
  return /* @__PURE__ */ j(fe, { children: [
47002
47007
  /* @__PURE__ */ l("img", { height: 20, width: 20, src: i }),
47003
- /* @__PURE__ */ l(K, { normalTextColor: !0, title: e, children: Bi(e) }),
47004
- !o && /* @__PURE__ */ l(K, { normalTextColor: !0, children: (n == null ? void 0 : n.recommendedSymbol) ?? (n == null ? void 0 : n.symbol) })
47008
+ /* @__PURE__ */ l(X, { normalTextColor: !0, title: e, children: Bi(e) }),
47009
+ !o && /* @__PURE__ */ l(X, { normalTextColor: !0, children: (n == null ? void 0 : n.recommendedSymbol) ?? (n == null ? void 0 : n.symbol) })
47005
47010
  ] });
47006
47011
  }, o3 = N(pe)`
47007
47012
  background: ${({ theme: e, showDetails: n }) => n && e.secondary.background.normal};
@@ -47009,7 +47014,7 @@ const $g = (e) => {
47009
47014
  background: ${({ theme: e }) => e.secondary.background.normal};
47010
47015
  }
47011
47016
  border-radius: 6px;
47012
- `, t3 = N(O)`
47017
+ `, t3 = N(W)`
47013
47018
  gap: 5px;
47014
47019
  padding: 0 10px;
47015
47020
  height: 40px;
@@ -47021,12 +47026,12 @@ const $g = (e) => {
47021
47026
  height: 10px;
47022
47027
  background: ${({ theme: e }) => e.success.text};
47023
47028
  border-radius: 50%;
47024
- `, a3 = N(O)`
47029
+ `, a3 = N(W)`
47025
47030
  max-width: calc(100% - 100px);
47026
47031
  overflow: hidden;
47027
47032
  `, r3 = () => {
47028
47033
  var a;
47029
- const e = de(), n = Y(cn), [i, o] = se(void 0), t = L(Fn), c = W(
47034
+ const e = de(), n = Y(cn), [i, o] = se(void 0), t = L(Fn), c = U(
47030
47035
  () => t.sort((r, s) => s.timestamp - r.timestamp),
47031
47036
  [t]
47032
47037
  );
@@ -47080,18 +47085,18 @@ const $g = (e) => {
47080
47085
  border-radius: 25px;
47081
47086
  background: ${({ theme: e }) => e.primary.background.normal};
47082
47087
  `, l3 = () => {
47083
- var b;
47088
+ var g;
47084
47089
  const [e, n] = me(ct), [i, o] = me(Kc), [t, c] = me(at), { data: a, walletType: r } = As({
47085
47090
  multiChain: !0
47086
- }), s = a ? (b = a[Object.keys(a)[0]]) == null ? void 0 : b.bech32Address : "", m = ht.find((g) => g.connected === !0), p = lo(), d = ye(async () => {
47091
+ }), s = a ? (g = a[Object.keys(a)[0]]) == null ? void 0 : g.bech32Address : "", m = ht.find((b) => b.connected === !0), p = lo(), d = ye(async () => {
47087
47092
  a && r && o({
47088
47093
  id: s,
47089
47094
  walletName: r,
47090
47095
  chainType: R.Cosmos
47091
47096
  });
47092
47097
  }, [a, s, o, r]), u = ye(async () => {
47093
- var v, C, E, q, B;
47094
- const g = await ((C = (v = p.connector) == null ? void 0 : v.getProvider) == null ? void 0 : C.call(v)), f = (q = (E = g == null ? void 0 : g.session) == null ? void 0 : E.peer) == null ? void 0 : q.metadata;
47098
+ var v, C, E, S, B;
47099
+ const b = await ((C = (v = p.connector) == null ? void 0 : v.getProvider) == null ? void 0 : C.call(v)), f = (S = (E = b == null ? void 0 : b.session) == null ? void 0 : E.peer) == null ? void 0 : S.metadata;
47095
47100
  p.connector && n({
47096
47101
  id: p.address,
47097
47102
  walletName: p.connector.id,
@@ -47099,19 +47104,19 @@ const $g = (e) => {
47099
47104
  logo: (f == null ? void 0 : f.icons[0]) ?? ((B = p.connector) == null ? void 0 : B.icon)
47100
47105
  });
47101
47106
  }, [p.address, p.connector, n]), x = ye(async () => {
47102
- var f, v, C, E, q;
47103
- const g = (E = (C = (v = (f = m == null ? void 0 : m._wallet) == null ? void 0 : f._UniversalProvider) == null ? void 0 : v.session) == null ? void 0 : C.peer) == null ? void 0 : E.metadata;
47107
+ var f, v, C, E, S;
47108
+ const b = (E = (C = (v = (f = m == null ? void 0 : m._wallet) == null ? void 0 : f._UniversalProvider) == null ? void 0 : v.session) == null ? void 0 : C.peer) == null ? void 0 : E.metadata;
47104
47109
  m && c({
47105
- id: (q = m.publicKey) == null ? void 0 : q.toBase58(),
47110
+ id: (S = m.publicKey) == null ? void 0 : S.toBase58(),
47106
47111
  walletName: m.name,
47107
47112
  chainType: R.SVM,
47108
- logo: (g == null ? void 0 : g.icons[0]) ?? m.icon
47113
+ logo: (b == null ? void 0 : b.icons[0]) ?? m.icon
47109
47114
  });
47110
47115
  }, [c, m]);
47111
- ae(() => {
47116
+ re(() => {
47112
47117
  var v;
47113
- const g = p.address, f = (v = m == null ? void 0 : m.publicKey) == null ? void 0 : v.toBase58();
47114
- r && (i == null ? void 0 : i.id) !== s && d(), m != null && m.connected && (t == null ? void 0 : t.id) !== f && x(), p.connector && (e == null ? void 0 : e.id) !== g && u();
47118
+ const b = p.address, f = (v = m == null ? void 0 : m.publicKey) == null ? void 0 : v.toBase58();
47119
+ r && (i == null ? void 0 : i.id) !== s && d(), m != null && m.connected && (t == null ? void 0 : t.id) !== f && x(), p.connector && (e == null ? void 0 : e.id) !== b && u();
47115
47120
  }, [
47116
47121
  r,
47117
47122
  i,
@@ -47207,7 +47212,7 @@ const $g = (e) => {
47207
47212
  "skip-widget-wagmi-provider"
47208
47213
  ), u3 = ({ children: e }) => /* @__PURE__ */ l(p3, { children: /* @__PURE__ */ l(h3, { children: e }) }), d3 = (e) => {
47209
47214
  const n = Y(gt), i = Y(pm), [{ data: o }] = me(fn);
47210
- ae(() => {
47215
+ re(() => {
47211
47216
  e && (n(e), i(o));
47212
47217
  }, [o, e, n, i]);
47213
47218
  };
@@ -47239,7 +47244,7 @@ const D3 = () => {
47239
47244
  replaysSessionSampleRate: 1,
47240
47245
  replaysOnErrorSampleRate: 0
47241
47246
  }), Ds = !0);
47242
- }, x3 = "@skip-go/widget", g3 = "Swap widget", Aa = "3.6.7", b3 = {
47247
+ }, x3 = "@skip-go/widget", g3 = "Swap widget", Aa = "3.6.8", b3 = {
47243
47248
  url: "https://github.com/skip-mev/skip-go",
47244
47249
  directory: "packages/widget"
47245
47250
  }, f3 = "module", A3 = {
@@ -47385,7 +47390,7 @@ const D3 = () => {
47385
47390
  publishConfig: F3
47386
47391
  }, M3 = () => {
47387
47392
  const e = Ze(), n = Y(xt);
47388
- ae(() => {
47393
+ re(() => {
47389
47394
  n((i) => ({
47390
47395
  ...i,
47391
47396
  allowMultiTx: !e
@@ -47398,29 +47403,29 @@ const P3 = () => {
47398
47403
  }, z3 = (e) => {
47399
47404
  var f;
47400
47405
  e.enableSentrySessionReplays && D3(), e.enableAmplitudeAnalytics && P3(), Zo("widget_version", Aa), d3(e.defaultRoute), S3(e), M3();
47401
- const n = Y(pi), i = Y($l), o = Y(ai), t = Y(xt), c = Y(ra), a = Y(sa), r = Y(Hi), s = Y(pl), m = Y(Ni), p = Y(Dm), d = Y(Vc), u = Y(ga), x = Y(zm), b = W(() => {
47402
- const { apiUrl: v, chainIdsToAffiliates: C, endpointOptions: E } = e, q = {
47406
+ const n = Y(pi), i = Y($l), o = Y(ai), t = Y(xt), c = Y(ra), a = Y(sa), r = Y(Hi), s = Y(pl), m = Y(Ni), p = Y(Dm), d = Y(Vc), u = Y(ga), x = Y(zm), g = U(() => {
47407
+ const { apiUrl: v, chainIdsToAffiliates: C, endpointOptions: E } = e, S = {
47403
47408
  apiUrl: v,
47404
47409
  chainIdsToAffiliates: C,
47405
47410
  endpointOptions: E
47406
47411
  };
47407
47412
  return {
47408
- apiURL: q.apiUrl ?? qr.apiUrl,
47409
- endpointOptions: q.endpointOptions ?? qr.endpointOptions,
47410
- chainIDsToAffiliates: q.chainIdsToAffiliates ?? {}
47413
+ apiURL: S.apiUrl ?? qr.apiUrl,
47414
+ endpointOptions: S.endpointOptions ?? qr.endpointOptions,
47415
+ chainIDsToAffiliates: S.chainIdsToAffiliates ?? {}
47411
47416
  };
47412
- }, [e]), g = W(() => {
47417
+ }, [e]), b = U(() => {
47413
47418
  var C;
47414
47419
  let v;
47415
47420
  return typeof e.theme == "string" ? v = e.theme === "light" ? iu : Ro : v = { ...Ro, ...e.theme }, e.brandColor && (v.brandColor = e.brandColor), ((C = e.theme) == null ? void 0 : C.brandTextColor) === void 0 && typeof document < "u" && (v.brandTextColor = nu(v.brandColor)), v;
47416
47421
  }, [e.brandColor, e.theme]);
47417
- return ae(() => {
47422
+ return re(() => {
47418
47423
  n({
47419
- apiURL: b.apiURL,
47420
- endpointOptions: b.endpointOptions,
47421
- chainIDsToAffiliates: b.chainIDsToAffiliates
47422
- }), i(g);
47423
- }, [n, b, i, g]), ae(() => {
47424
+ apiURL: g.apiURL,
47425
+ endpointOptions: g.endpointOptions,
47426
+ chainIDsToAffiliates: g.chainIDsToAffiliates
47427
+ }), i(b);
47428
+ }, [n, g, i, b]), re(() => {
47424
47429
  e.settings && o((C) => ({
47425
47430
  ...C,
47426
47431
  ...e.settings
@@ -47466,12 +47471,12 @@ const P3 = () => {
47466
47471
  e.filterOut,
47467
47472
  c,
47468
47473
  a
47469
- ]), { theme: g };
47474
+ ]), { theme: b };
47470
47475
  }, S3 = (e) => {
47471
47476
  const n = Y(dl), i = Y(st);
47472
- ae(() => {
47477
+ re(() => {
47473
47478
  i(e.connectedAddresses);
47474
- }, [e.connectedAddresses, i]), ae(() => {
47479
+ }, [e.connectedAddresses, i]), re(() => {
47475
47480
  n((o) => ({
47476
47481
  ...o,
47477
47482
  ...e.getCosmosSigner && { getCosmosSigner: e.getCosmosSigner },
@@ -47481,10 +47486,10 @@ const P3 = () => {
47481
47486
  }, [e.getCosmosSigner, e.getEVMSigner, e.getSVMSigner, n]);
47482
47487
  }, q3 = new jp(), Gm = Zm(), bb = (e) => /* @__PURE__ */ l(Jm, { store: Gm, children: /* @__PURE__ */ l(j3, { props: e }) }), j3 = ({ props: e }) => {
47483
47488
  const { theme: n } = z3(e);
47484
- return Y($c)(e.rootId), /* @__PURE__ */ l($s, { theme: n, children: /* @__PURE__ */ l(u3, { children: /* @__PURE__ */ l(Ip, { client: q3, children: /* @__PURE__ */ l(oe.Provider, { children: /* @__PURE__ */ l(I3, { children: /* @__PURE__ */ l(m3, {}) }) }) }, "skip-widget") }) });
47489
+ return Y($c)(e.rootId), /* @__PURE__ */ l($s, { theme: n, children: /* @__PURE__ */ l(u3, { children: /* @__PURE__ */ l(Ip, { client: q3, children: /* @__PURE__ */ l(te.Provider, { children: /* @__PURE__ */ l(I3, { children: /* @__PURE__ */ l(m3, {}) }) }) }, "skip-widget") }) });
47485
47490
  }, I3 = ({ children: e }) => {
47486
47491
  const n = Y(Tm), i = L($c);
47487
- return ae(() => {
47492
+ return re(() => {
47488
47493
  xx(), console.info(`Loaded skip-go widget version ${B3.version}`);
47489
47494
  }, []), /* @__PURE__ */ j(H3, { "data-root-id": i, children: [
47490
47495
  e,
@@ -47515,6 +47520,6 @@ export {
47515
47520
  Ro as d,
47516
47521
  xb as g,
47517
47522
  iu as l,
47518
- ce as p,
47523
+ ae as p,
47519
47524
  gb as r
47520
47525
  };