@skip-go/widget 3.6.4 → 3.6.6
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,11 +1,11 @@
|
|
|
1
|
-
import { jsx as m, Fragment as
|
|
2
|
-
import ln, { useState as se, useMemo as W, useEffect as ae, useContext as gs, useRef as
|
|
1
|
+
import { jsx as m, Fragment as be, 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 Gm, useCallback as ye, Fragment as Km } from "react";
|
|
3
3
|
import { Scope as Xm } from "react-shadow-scope";
|
|
4
4
|
import { atom as Q, useAtomValue as L, useAtom as me, useSetAtom as Y, createStore as Ym, Provider as Zm } from "jotai";
|
|
5
|
-
import oe, { useModal as
|
|
5
|
+
import oe, { useModal as bs } from "@ebay/nice-modal-react";
|
|
6
6
|
import { ChainType as R, SkipClient as Jm } from "@skip-go/client";
|
|
7
7
|
import { atomWithQuery as ri, atomWithMutation as Qm } from "jotai-tanstack-query";
|
|
8
|
-
import { getWallet as Ji, WalletType as le, useActiveWalletType as _m, useDisconnect as $m, isWalletConnect as
|
|
8
|
+
import { getWallet as Ji, WalletType as le, useActiveWalletType as _m, useDisconnect as $m, isWalletConnect as fs, checkWallet as ka, connect as wa, useAccount as As, getChainInfo as ep, GrazProvider as np } from "graz";
|
|
9
9
|
import { createClient as ip, custom as op, walletActions as tp, getAddress as vt, UserRejectedRequestError as Et, SwitchChainError as cp, numberToHex as ya, defineChain as ap, http as ue, createPublicClient as rp, isAddress as sp } from "viem";
|
|
10
10
|
import { createConfig as lp, createStorage as mp, useAccount as lo, useConnect as pp, useConnectors as Cs, WagmiProvider as hp } from "wagmi";
|
|
11
11
|
import { BackpackWalletAdapter as up } from "@solana/wallet-adapter-backpack";
|
|
@@ -13,8 +13,8 @@ import { CoinbaseWalletAdapter as dp } from "@solana/wallet-adapter-coinbase";
|
|
|
13
13
|
import { LedgerWalletAdapter as Dp } from "@solana/wallet-adapter-ledger";
|
|
14
14
|
import { PhantomWalletAdapter as xp } from "@solana/wallet-adapter-phantom";
|
|
15
15
|
import { SolflareWalletAdapter as gp } from "@solana/wallet-adapter-solflare";
|
|
16
|
-
import { TrustWalletAdapter as
|
|
17
|
-
import { WalletConnectWalletAdapter as
|
|
16
|
+
import { TrustWalletAdapter as bp } from "@solana/wallet-adapter-trust";
|
|
17
|
+
import { WalletConnectWalletAdapter as fp } from "@walletconnect/solana-adapter";
|
|
18
18
|
import Qi from "pluralize";
|
|
19
19
|
import { track as V, setUserId as Ap, init as Cp } from "@amplitude/analytics-browser";
|
|
20
20
|
import { setTag as Zo, captureException as ks, setUser as ws, init as kp, breadcrumbsIntegration as wp, dedupeIntegration as yp, functionToStringIntegration as vp, httpContextIntegration as Ep, inboundFiltersIntegration as Fp, linkedErrorsIntegration as Bp, browserSessionIntegration as Mp, replayIntegration as Pp } from "@sentry/react";
|
|
@@ -368,10 +368,10 @@ function lh(e) {
|
|
|
368
368
|
return th(So("", null, null, null, [""], e = oh(e), 0, [0], e));
|
|
369
369
|
}
|
|
370
370
|
function So(e, n, i, o, t, c, a, r, l) {
|
|
371
|
-
for (var s = 0, u = 0, d = a, h = 0, g = 0,
|
|
372
|
-
switch (
|
|
371
|
+
for (var s = 0, u = 0, d = a, h = 0, g = 0, b = 0, x = 1, C = 1, v = 1, A = 0, E = "", q = t, F = c, I = o, T = E; C; )
|
|
372
|
+
switch (b = A, A = sn()) {
|
|
373
373
|
case 40:
|
|
374
|
-
if (
|
|
374
|
+
if (b != 108 && He(T, d - 1) == 58) {
|
|
375
375
|
Po(T += ne(Bt(A), "&", "&\f"), "&\f", zs(s ? r[s - 1] : 0)) != -1 && (v = -1);
|
|
376
376
|
break;
|
|
377
377
|
}
|
|
@@ -384,7 +384,7 @@ function So(e, n, i, o, t, c, a, r, l) {
|
|
|
384
384
|
case 10:
|
|
385
385
|
case 13:
|
|
386
386
|
case 32:
|
|
387
|
-
T += ch(
|
|
387
|
+
T += ch(b);
|
|
388
388
|
break;
|
|
389
389
|
case 92:
|
|
390
390
|
T += ah(zo() - 1, 7);
|
|
@@ -432,7 +432,7 @@ function So(e, n, i, o, t, c, a, r, l) {
|
|
|
432
432
|
s = u = g = 0, x = v = 1, E = T = "", d = a;
|
|
433
433
|
break;
|
|
434
434
|
case 58:
|
|
435
|
-
d = 1 + dn(T), g =
|
|
435
|
+
d = 1 + dn(T), g = b;
|
|
436
436
|
default:
|
|
437
437
|
if (x < 1) {
|
|
438
438
|
if (A == 123)
|
|
@@ -451,14 +451,14 @@ function So(e, n, i, o, t, c, a, r, l) {
|
|
|
451
451
|
Qn() === 45 && (T += Bt(sn())), h = Qn(), u = d = dn(E = T += sh(zo())), A++;
|
|
452
452
|
break;
|
|
453
453
|
case 45:
|
|
454
|
-
|
|
454
|
+
b === 45 && dn(T) == 2 && (x = 0);
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
return c;
|
|
458
458
|
}
|
|
459
459
|
function Fa(e, n, i, o, t, c, a, r, l, s, u, d) {
|
|
460
|
-
for (var h = t - 1, g = t === 0 ? c : [""],
|
|
461
|
-
for (var A = 0, E = Ai(e, h + 1, h = zs(C = a[x])), q = e; A <
|
|
460
|
+
for (var h = t - 1, g = t === 0 ? c : [""], b = qs(g), x = 0, C = 0, v = 0; x < o; ++x)
|
|
461
|
+
for (var A = 0, E = Ai(e, h + 1, h = zs(C = a[x])), q = e; A < b; ++A)
|
|
462
462
|
(q = Ss(C > 0 ? g[A] + " " + E : ne(E, /&\f/g, g[A]))) && (l[v++] = q);
|
|
463
463
|
return et(e, n, i, t === 0 ? _o : r, l, s, u, d);
|
|
464
464
|
}
|
|
@@ -719,7 +719,7 @@ var Dh = {
|
|
|
719
719
|
strokeOpacity: 1,
|
|
720
720
|
strokeWidth: 1
|
|
721
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, xh = !!(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,
|
|
722
|
+
`, Vo = typeof window < "u" && "HTMLElement" in window, xh = !!(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(), gh = function(e, n) {
|
|
723
723
|
if (ce.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.
|
|
@@ -728,21 +728,21 @@ To resolve this only create new StyledComponents outside of any render method an
|
|
|
728
728
|
var c = !0;
|
|
729
729
|
console.error = function(a) {
|
|
730
730
|
for (var r = [], l = 1; l < arguments.length; l++) r[l - 1] = arguments[l];
|
|
731
|
-
Ma.test(a) ? (c = !1,
|
|
732
|
-
},
|
|
731
|
+
Ma.test(a) ? (c = !1, fo.delete(o)) : t.apply(void 0, ei([a], r, !1));
|
|
732
|
+
}, fi(), c && !fo.has(o) && (console.warn(o), fo.add(o));
|
|
733
733
|
} catch (a) {
|
|
734
|
-
Ma.test(a.message) &&
|
|
734
|
+
Ma.test(a.message) && fo.delete(o);
|
|
735
735
|
} finally {
|
|
736
736
|
console.error = t;
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
}, ot = Object.freeze([]), ki = Object.freeze({});
|
|
740
|
-
function
|
|
740
|
+
function bh(e, n, i) {
|
|
741
741
|
return i === void 0 && (i = ki), e.theme !== i.theme && e.theme || n || i.theme;
|
|
742
742
|
}
|
|
743
|
-
var _t = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]),
|
|
743
|
+
var _t = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), fh = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Ah = /(^-|-$)/g;
|
|
744
744
|
function Pa(e) {
|
|
745
|
-
return e.replace(
|
|
745
|
+
return e.replace(fh, "-").replace(Ah, "");
|
|
746
746
|
}
|
|
747
747
|
var Ch = /(a)(d)/gi, Ao = 52, za = function(e) {
|
|
748
748
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
@@ -997,12 +997,12 @@ var Ks = function(e) {
|
|
|
997
997
|
return Lo.get(v);
|
|
998
998
|
}(d);
|
|
999
999
|
if (h === void 0) return "continue";
|
|
1000
|
-
var g = c.names.get(h),
|
|
1001
|
-
if (g === void 0 || !g.size ||
|
|
1000
|
+
var g = c.names.get(h), b = a.getGroup(d);
|
|
1001
|
+
if (g === void 0 || !g.size || b.length === 0) return "continue";
|
|
1002
1002
|
var x = "".concat(ni, ".g").concat(d, '[id="').concat(h, '"]'), C = "";
|
|
1003
1003
|
g !== void 0 && g.forEach(function(v) {
|
|
1004
1004
|
v.length > 0 && (C += "".concat(v, ","));
|
|
1005
|
-
}), l += "".concat(
|
|
1005
|
+
}), l += "".concat(b).concat(x, '{content:"').concat(C, '"}').concat(jc);
|
|
1006
1006
|
}, u = 0; u < r; u++) s(u);
|
|
1007
1007
|
return l;
|
|
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, l = r === void 0 ? ot : r, s = function(h, g,
|
|
1052
|
-
return
|
|
1051
|
+
var n, i, o, t = e === void 0 ? ki : e, c = t.options, a = c === void 0 ? ki : c, r = t.plugins, l = r === void 0 ? ot : r, s = function(h, g, b) {
|
|
1052
|
+
return b.startsWith(i) && b.endsWith(i) && b.replaceAll(i, "").length > 0 ? ".".concat(n) : h;
|
|
1053
1053
|
}, u = l.slice();
|
|
1054
1054
|
u.push(function(h) {
|
|
1055
1055
|
h.type === _o && h.value.includes("&") && (h.props[0] = h.props[0].replace(Uh, i).replace(o, s));
|
|
1056
1056
|
}), a.prefix && u.push(dh), u.push(ph);
|
|
1057
|
-
var d = function(h, g,
|
|
1058
|
-
g === void 0 && (g = ""),
|
|
1059
|
-
var C = h.replace(Gh, ""), v = lh(
|
|
1057
|
+
var d = function(h, g, b, x) {
|
|
1058
|
+
g === void 0 && (g = ""), b === void 0 && (b = ""), x === void 0 && (x = "&"), n = x, i = g, o = new RegExp("\\".concat(i, "\\b"), "g");
|
|
1059
|
+
var C = h.replace(Gh, ""), v = lh(b || g ? "".concat(b, " ").concat(g, " { ").concat(C, " }") : C);
|
|
1060
1060
|
a.namespace && (v = Ys(v, a.namespace));
|
|
1061
1061
|
var A = [];
|
|
1062
1062
|
return No(v, hh(u.concat(uh(function(E) {
|
|
@@ -1205,22 +1205,22 @@ function _h(e, n, i) {
|
|
|
1205
1205
|
return F ? "".concat(F, "-").concat(T) : T;
|
|
1206
1206
|
}(n.displayName, n.parentComponentId) : l, u = n.displayName, d = u === void 0 ? function(q) {
|
|
1207
1207
|
return Pt(q) ? "styled.".concat(q) : "Styled(".concat(Rs(q), ")");
|
|
1208
|
-
}(e) : u, h = n.displayName && n.componentId ? "".concat(Pa(n.displayName), "-").concat(n.componentId) : n.componentId || s, g = o && t.attrs ? t.attrs.concat(r).filter(Boolean) : r,
|
|
1208
|
+
}(e) : u, h = n.displayName && n.componentId ? "".concat(Pa(n.displayName), "-").concat(n.componentId) : n.componentId || s, g = o && t.attrs ? t.attrs.concat(r).filter(Boolean) : r, b = n.shouldForwardProp;
|
|
1209
1209
|
if (o && t.shouldForwardProp) {
|
|
1210
1210
|
var x = t.shouldForwardProp;
|
|
1211
1211
|
if (n.shouldForwardProp) {
|
|
1212
1212
|
var C = n.shouldForwardProp;
|
|
1213
|
-
|
|
1213
|
+
b = function(q, F) {
|
|
1214
1214
|
return x(q, F) && C(q, F);
|
|
1215
1215
|
};
|
|
1216
|
-
} else
|
|
1216
|
+
} else b = x;
|
|
1217
1217
|
}
|
|
1218
1218
|
var v = new Qh(i, h, o ? t.componentStyle : void 0);
|
|
1219
1219
|
function A(q, F) {
|
|
1220
1220
|
return function(I, T, p) {
|
|
1221
|
-
var D = I.attrs,
|
|
1221
|
+
var D = I.attrs, f = I.componentStyle, B = I.defaultProps, w = I.foldedComponentIds, M = I.styledComponentId, z = I.target, k = ln.useContext(no), P = oc(), y = I.shouldForwardProp || P.shouldForwardProp;
|
|
1222
1222
|
ce.env.NODE_ENV !== "production" && Ca(M);
|
|
1223
|
-
var S =
|
|
1223
|
+
var S = bh(T, k, B) || ki, H = function(G, _, Ce) {
|
|
1224
1224
|
for (var cn, an = Ne(Ne({}, _), { className: void 0, theme: Ce }), Gn = 0; Gn < G.length; Gn += 1) {
|
|
1225
1225
|
var Le = ii(cn = G[Gn]) ? cn(an) : cn;
|
|
1226
1226
|
for (var Ue in Le) an[Ue] = Ue === "className" ? Jn(an[Ue], Le[Ue]) : Ue === "style" ? Ne(Ne({}, an[Ue]), Le[Ue]) : Le[Ue];
|
|
@@ -1231,7 +1231,7 @@ function _h(e, n, i) {
|
|
|
1231
1231
|
var te = function(G, _) {
|
|
1232
1232
|
var Ce = oc(), cn = G.generateAndInjectStyles(_, Ce.styleSheet, Ce.stylis);
|
|
1233
1233
|
return ce.env.NODE_ENV !== "production" && Ca(cn), cn;
|
|
1234
|
-
}(
|
|
1234
|
+
}(f, H);
|
|
1235
1235
|
ce.env.NODE_ENV !== "production" && I.warnTooManyClasses && I.warnTooManyClasses(te);
|
|
1236
1236
|
var re = Jn(w, M);
|
|
1237
1237
|
return te && (re += " " + te), H.className && (re += " " + H.className), K[Pt(U) && !_t.has(U) ? "class" : "className"] = re, K.ref = p, Gm(U, K);
|
|
@@ -1239,7 +1239,7 @@ function _h(e, n, i) {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
A.displayName = d;
|
|
1241
1241
|
var E = ln.forwardRef(A);
|
|
1242
|
-
return E.attrs = g, E.componentStyle = v, E.displayName = d, E.shouldForwardProp =
|
|
1242
|
+
return E.attrs = g, E.componentStyle = v, E.displayName = d, E.shouldForwardProp = b, E.foldedComponentIds = o ? Jn(t.foldedComponentIds, t.styledComponentId) : "", E.styledComponentId = h, E.target = o ? t.target : e, Object.defineProperty(E, "defaultProps", { get: function() {
|
|
1243
1243
|
return this._foldedDefaultProps;
|
|
1244
1244
|
}, set: function(q) {
|
|
1245
1245
|
this._foldedDefaultProps = o ? function(F) {
|
|
@@ -1435,7 +1435,7 @@ const Vc = Q(!1), $s = ({
|
|
|
1435
1435
|
const [n, i] = se(!1);
|
|
1436
1436
|
return ae(() => {
|
|
1437
1437
|
i(!0);
|
|
1438
|
-
}, []), /* @__PURE__ */ m(
|
|
1438
|
+
}, []), /* @__PURE__ */ m(be, { children: n ? e : null });
|
|
1439
1439
|
}, su = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 };
|
|
1440
1440
|
let lu = 0;
|
|
1441
1441
|
function ac(e, n) {
|
|
@@ -1482,14 +1482,14 @@ function du(e = () => {
|
|
|
1482
1482
|
const c = {
|
|
1483
1483
|
getItem: (l, s) => {
|
|
1484
1484
|
var u, d;
|
|
1485
|
-
const h = (
|
|
1486
|
-
if (
|
|
1485
|
+
const h = (b) => {
|
|
1486
|
+
if (b = b || "", o !== b) {
|
|
1487
1487
|
try {
|
|
1488
|
-
t = JSON.parse(
|
|
1488
|
+
t = JSON.parse(b, n == null ? void 0 : n.reviver);
|
|
1489
1489
|
} catch {
|
|
1490
1490
|
return s;
|
|
1491
1491
|
}
|
|
1492
|
-
o =
|
|
1492
|
+
o = b;
|
|
1493
1493
|
}
|
|
1494
1494
|
return t;
|
|
1495
1495
|
}, g = (d = (u = e()) == null ? void 0 : u.getItem(l)) != null ? d : null;
|
|
@@ -1616,7 +1616,7 @@ const tl = ({
|
|
|
1616
1616
|
fill: "none",
|
|
1617
1617
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1618
1618
|
transform: i === "down" ? "rotate(90)" : i === "left" ? "rotate(180)" : i === "up" ? "rotate(-90)" : "",
|
|
1619
|
-
children: t ? /* @__PURE__ */ j(
|
|
1619
|
+
children: t ? /* @__PURE__ */ j(be, { children: [
|
|
1620
1620
|
/* @__PURE__ */ m("defs", { children: /* @__PURE__ */ j("mask", { id: "arrowMask", children: [
|
|
1621
1621
|
/* @__PURE__ */ m("rect", { width: "40", height: "40", fill: "white" }),
|
|
1622
1622
|
/* @__PURE__ */ m(
|
|
@@ -1628,7 +1628,7 @@ const tl = ({
|
|
|
1628
1628
|
)
|
|
1629
1629
|
] }) }),
|
|
1630
1630
|
/* @__PURE__ */ m("rect", { width: "40", height: "40", rx: "10", fill: e, mask: "url(#arrowMask)" })
|
|
1631
|
-
] }) : /* @__PURE__ */ j(
|
|
1631
|
+
] }) : /* @__PURE__ */ j(be, { children: [
|
|
1632
1632
|
/* @__PURE__ */ m("rect", { width: "40", height: "40", rx: "10", fill: n }),
|
|
1633
1633
|
/* @__PURE__ */ m(
|
|
1634
1634
|
"path",
|
|
@@ -1705,7 +1705,7 @@ const tl = ({
|
|
|
1705
1705
|
}
|
|
1706
1706
|
)
|
|
1707
1707
|
}
|
|
1708
|
-
),
|
|
1708
|
+
), bu = ({ color: e = "currentColor" }) => /* @__PURE__ */ j("svg", { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1709
1709
|
/* @__PURE__ */ m("defs", { children: /* @__PURE__ */ j("mask", { id: "swapMask", children: [
|
|
1710
1710
|
/* @__PURE__ */ m("rect", { width: "40", height: "40", fill: "white" }),
|
|
1711
1711
|
/* @__PURE__ */ m(
|
|
@@ -1724,7 +1724,7 @@ const tl = ({
|
|
|
1724
1724
|
)
|
|
1725
1725
|
] }) }),
|
|
1726
1726
|
/* @__PURE__ */ m("rect", { width: "40", height: "40", rx: "10", fill: e, mask: "url(#swapMask)" })
|
|
1727
|
-
] }),
|
|
1727
|
+
] }), fu = ({
|
|
1728
1728
|
color: e = "currentColor",
|
|
1729
1729
|
backgroundColor: n = "transparent"
|
|
1730
1730
|
}) => /* @__PURE__ */ j("svg", { width: "40", height: "41", viewBox: "0 0 40 41", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
@@ -1828,8 +1828,8 @@ const io = {
|
|
|
1828
1828
|
2: xu,
|
|
1829
1829
|
3: Wc,
|
|
1830
1830
|
4: Uc,
|
|
1831
|
-
5:
|
|
1832
|
-
6:
|
|
1831
|
+
5: bu,
|
|
1832
|
+
6: fu,
|
|
1833
1833
|
7: Au,
|
|
1834
1834
|
8: cl,
|
|
1835
1835
|
9: Gc,
|
|
@@ -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 h = t ? d.primary.text.ultraLowContrast : d.brandTextColor, g = io[n],
|
|
1990
|
+
const h = t ? d.primary.text.ultraLowContrast : d.brandTextColor, g = io[n], b = io[i];
|
|
1991
1991
|
return c ? /* @__PURE__ */ m(
|
|
1992
1992
|
Bu,
|
|
1993
1993
|
{
|
|
@@ -2008,7 +2008,7 @@ const io = {
|
|
|
2008
2008
|
onClick: r,
|
|
2009
2009
|
children: [
|
|
2010
2010
|
i ? /* @__PURE__ */ j(O, { align: "center", gap: 10, children: [
|
|
2011
|
-
/* @__PURE__ */ m(
|
|
2011
|
+
/* @__PURE__ */ m(b, { backgroundColor: h, color: o }),
|
|
2012
2012
|
/* @__PURE__ */ m(rc, { color: h, fontSize: u, children: e })
|
|
2013
2013
|
] }) : /* @__PURE__ */ m(rc, { capitalize: !0, color: h, fontSize: u, children: e }),
|
|
2014
2014
|
/* @__PURE__ */ m(qu, { children: /* @__PURE__ */ m(g, { color: h }) })
|
|
@@ -2340,8 +2340,8 @@ function vi(e, { dir: n = "left" } = {}) {
|
|
|
2340
2340
|
return i = n === "left" ? i.slice(o) : i.slice(0, i.length - o), typeof e == "string" ? (i.length === 1 && n === "right" && (i = `${i}0`), `0x${i.length % 2 === 1 ? `0${i}` : i}`) : i;
|
|
2341
2341
|
}
|
|
2342
2342
|
const Ou = /* @__PURE__ */ new TextEncoder();
|
|
2343
|
-
function
|
|
2344
|
-
return typeof e == "number" || typeof e == "bigint" ? Uu(e, n) : typeof e == "boolean" ? Wu(e, n) : po(e) ? oi(e, n) :
|
|
2343
|
+
function bl(e, n = {}) {
|
|
2344
|
+
return typeof e == "number" || typeof e == "bigint" ? Uu(e, n) : typeof e == "boolean" ? Wu(e, n) : po(e) ? oi(e, n) : fl(e, n);
|
|
2345
2345
|
}
|
|
2346
2346
|
function Wu(e, n = {}) {
|
|
2347
2347
|
const i = new Uint8Array(1);
|
|
@@ -2381,7 +2381,7 @@ function Uu(e, n) {
|
|
|
2381
2381
|
const i = Ke(e, n);
|
|
2382
2382
|
return oi(i);
|
|
2383
2383
|
}
|
|
2384
|
-
function
|
|
2384
|
+
function fl(e, n = {}) {
|
|
2385
2385
|
const i = Ou.encode(e);
|
|
2386
2386
|
return typeof n.size == "number" ? (qi(i, { size: n.size }), Si(i, { dir: "right", size: n.size })) : i;
|
|
2387
2387
|
}
|
|
@@ -2639,13 +2639,13 @@ class Zc extends kl {
|
|
|
2639
2639
|
}
|
|
2640
2640
|
const ud = (e, n, i) => wl(() => new Zc(n, e, i)), dd = /* @__PURE__ */ ud(1, 136, 256 / 8);
|
|
2641
2641
|
function Dd(e, n) {
|
|
2642
|
-
return dd(po(e, { strict: !1 }) ?
|
|
2642
|
+
return dd(po(e, { strict: !1 }) ? bl(e) : e);
|
|
2643
2643
|
}
|
|
2644
2644
|
const qt = /* @__PURE__ */ new Al(8192);
|
|
2645
2645
|
function Fl(e, n) {
|
|
2646
2646
|
if (qt.has(`${e}.${n}`))
|
|
2647
2647
|
return qt.get(`${e}.${n}`);
|
|
2648
|
-
const i = e.substring(2).toLowerCase(), o = Dd(
|
|
2648
|
+
const i = e.substring(2).toLowerCase(), o = Dd(fl(i)), t = i.split("");
|
|
2649
2649
|
for (let a = 0; a < 40; a += 2)
|
|
2650
2650
|
o[a >> 1] >> 4 >= 8 && t[a] && (t[a] = t[a].toUpperCase()), (o[a >> 1] & 15) >= 8 && t[a + 1] && (t[a + 1] = t[a + 1].toUpperCase());
|
|
2651
2651
|
const c = `0x${t.join("")}`;
|
|
@@ -2664,10 +2664,10 @@ function en(e, n) {
|
|
|
2664
2664
|
const t = gd.test(e) ? e.toLowerCase() === e ? !0 : i ? Fl(e) === e : !0 : !1;
|
|
2665
2665
|
return jt.set(o, t), t;
|
|
2666
2666
|
}
|
|
2667
|
-
function
|
|
2667
|
+
function bd(e, n, i, { strict: o } = {}) {
|
|
2668
2668
|
return po(e, { strict: !1 }) ? Ad(e, n, i, {
|
|
2669
2669
|
strict: o
|
|
2670
|
-
}) :
|
|
2670
|
+
}) : fd(e, n, i, {
|
|
2671
2671
|
strict: o
|
|
2672
2672
|
});
|
|
2673
2673
|
}
|
|
@@ -2679,7 +2679,7 @@ function Bl(e, n, i) {
|
|
|
2679
2679
|
size: yi(e)
|
|
2680
2680
|
});
|
|
2681
2681
|
}
|
|
2682
|
-
function
|
|
2682
|
+
function fd(e, n, i, { strict: o } = {}) {
|
|
2683
2683
|
const t = e.slice(n, i);
|
|
2684
2684
|
return o && Bl(t, n, i), t;
|
|
2685
2685
|
}
|
|
@@ -3037,7 +3037,7 @@ Object.defineProperty(gc, "nodeMessage", {
|
|
|
3037
3037
|
writable: !0,
|
|
3038
3038
|
value: /intrinsic gas too high|gas limit reached/
|
|
3039
3039
|
});
|
|
3040
|
-
class
|
|
3040
|
+
class bc extends ie {
|
|
3041
3041
|
constructor({ cause: n, gas: i } = {}) {
|
|
3042
3042
|
super(`The amount of gas ${i ? `(${i}) ` : ""}provided for the transaction is too low.`, {
|
|
3043
3043
|
cause: n,
|
|
@@ -3045,13 +3045,13 @@ class fc extends ie {
|
|
|
3045
3045
|
});
|
|
3046
3046
|
}
|
|
3047
3047
|
}
|
|
3048
|
-
Object.defineProperty(
|
|
3048
|
+
Object.defineProperty(bc, "nodeMessage", {
|
|
3049
3049
|
enumerable: !0,
|
|
3050
3050
|
configurable: !0,
|
|
3051
3051
|
writable: !0,
|
|
3052
3052
|
value: /intrinsic gas too low/
|
|
3053
3053
|
});
|
|
3054
|
-
class
|
|
3054
|
+
class fc extends ie {
|
|
3055
3055
|
constructor({ cause: n }) {
|
|
3056
3056
|
super("The transaction type is not supported for this chain.", {
|
|
3057
3057
|
cause: n,
|
|
@@ -3059,7 +3059,7 @@ class bc extends ie {
|
|
|
3059
3059
|
});
|
|
3060
3060
|
}
|
|
3061
3061
|
}
|
|
3062
|
-
Object.defineProperty(
|
|
3062
|
+
Object.defineProperty(fc, "nodeMessage", {
|
|
3063
3063
|
enumerable: !0,
|
|
3064
3064
|
configurable: !0,
|
|
3065
3065
|
writable: !0,
|
|
@@ -3154,7 +3154,7 @@ function jd(e, n) {
|
|
|
3154
3154
|
}) : hc.nodeMessage.test(i) ? new hc({
|
|
3155
3155
|
cause: e,
|
|
3156
3156
|
maxFeePerGas: n == null ? void 0 : n.maxFeePerGas
|
|
3157
|
-
}) : uc.nodeMessage.test(i) ? new uc({ cause: e, nonce: n == null ? void 0 : n.nonce }) : dc.nodeMessage.test(i) ? new dc({ cause: e, nonce: n == null ? void 0 : n.nonce }) : Dc.nodeMessage.test(i) ? new Dc({ cause: e, nonce: n == null ? void 0 : n.nonce }) : xc.nodeMessage.test(i) ? new xc({ cause: e }) : gc.nodeMessage.test(i) ? new gc({ cause: e, gas: n == null ? void 0 : n.gas }) :
|
|
3157
|
+
}) : uc.nodeMessage.test(i) ? new uc({ cause: e, nonce: n == null ? void 0 : n.nonce }) : dc.nodeMessage.test(i) ? new dc({ cause: e, nonce: n == null ? void 0 : n.nonce }) : Dc.nodeMessage.test(i) ? new Dc({ cause: e, nonce: n == null ? void 0 : n.nonce }) : xc.nodeMessage.test(i) ? new xc({ cause: e }) : gc.nodeMessage.test(i) ? new gc({ cause: e, gas: n == null ? void 0 : n.gas }) : bc.nodeMessage.test(i) ? new bc({ cause: e, gas: n == null ? void 0 : n.gas }) : fc.nodeMessage.test(i) ? new fc({ cause: e }) : Ei.nodeMessage.test(i) ? new Ei({
|
|
3158
3158
|
cause: e,
|
|
3159
3159
|
maxFeePerGas: n == null ? void 0 : n.maxFeePerGas,
|
|
3160
3160
|
maxPriorityFeePerGas: n == null ? void 0 : n.maxPriorityFeePerGas
|
|
@@ -3477,8 +3477,8 @@ class Yd extends Kd {
|
|
|
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 h = zn[d - 15], g = zn[d - 2],
|
|
3481
|
-
zn[d] = x + zn[d - 7] +
|
|
3480
|
+
const h = zn[d - 15], g = zn[d - 2], b = pn(h, 7) ^ pn(h, 18) ^ h >>> 3, x = pn(g, 17) ^ pn(g, 19) ^ g >>> 10;
|
|
3481
|
+
zn[d] = x + zn[d - 7] + b + zn[d - 16] | 0;
|
|
3482
3482
|
}
|
|
3483
3483
|
let { A: o, B: t, C: c, D: a, E: r, F: l, G: s, H: u } = this;
|
|
3484
3484
|
for (let d = 0; d < 64; d++) {
|
|
@@ -3496,7 +3496,7 @@ class Yd extends Kd {
|
|
|
3496
3496
|
}
|
|
3497
3497
|
const Zd = /* @__PURE__ */ wl(() => new Yd());
|
|
3498
3498
|
function Jd(e, n) {
|
|
3499
|
-
return Zd(po(e, { strict: !1 }) ?
|
|
3499
|
+
return Zd(po(e, { strict: !1 }) ? bl(e) : e);
|
|
3500
3500
|
}
|
|
3501
3501
|
function Qd(e) {
|
|
3502
3502
|
const { commitment: n, version: i = 1 } = e, o = e.to ?? (typeof n == "string" ? "hex" : "bytes"), t = Jd(n);
|
|
@@ -3599,9 +3599,9 @@ function t0(e) {
|
|
|
3599
3599
|
class c0 extends ie {
|
|
3600
3600
|
constructor(n, { account: i, docsPath: o, chain: t, data: c, gas: a, gasPrice: r, maxFeePerGas: l, maxPriorityFeePerGas: s, nonce: u, to: d, value: h, stateOverride: g }) {
|
|
3601
3601
|
var C;
|
|
3602
|
-
const
|
|
3602
|
+
const b = i ? lt(i) : void 0;
|
|
3603
3603
|
let x = jl({
|
|
3604
|
-
from:
|
|
3604
|
+
from: b == null ? void 0 : b.address,
|
|
3605
3605
|
to: d,
|
|
3606
3606
|
value: typeof h < "u" && `${Md(h)} ${((C = t == null ? void 0 : t.nativeCurrency) == null ? void 0 : C.symbol) || "ETH"}`,
|
|
3607
3607
|
data: c,
|
|
@@ -3671,7 +3671,7 @@ function l0(e) {
|
|
|
3671
3671
|
return e.blobGasPrice && (n.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (n.blobGasUsed = BigInt(e.blobGasUsed)), n;
|
|
3672
3672
|
}
|
|
3673
3673
|
const m0 = /* @__PURE__ */ mt("transactionReceipt", l0);
|
|
3674
|
-
function
|
|
3674
|
+
function fe(e) {
|
|
3675
3675
|
return {
|
|
3676
3676
|
formatters: void 0,
|
|
3677
3677
|
fees: void 0,
|
|
@@ -3697,7 +3697,7 @@ function h0(e) {
|
|
|
3697
3697
|
if (n.length === 0)
|
|
3698
3698
|
throw new Ul();
|
|
3699
3699
|
for (const i of n) {
|
|
3700
|
-
const o = yi(i), t = Oo(
|
|
3700
|
+
const o = yi(i), t = Oo(bd(i, 0, 1));
|
|
3701
3701
|
if (o !== 32)
|
|
3702
3702
|
throw new e0({ hash: i, size: o });
|
|
3703
3703
|
if (t !== Wl)
|
|
@@ -3774,7 +3774,7 @@ function Do(e) {
|
|
|
3774
3774
|
}
|
|
3775
3775
|
function x0(e, n) {
|
|
3776
3776
|
const i = t0(e);
|
|
3777
|
-
return i === "eip1559" ?
|
|
3777
|
+
return i === "eip1559" ? f0(e, n) : i === "eip2930" ? A0(e, n) : i === "eip4844" ? b0(e, n) : i === "eip7702" ? g0(e, n) : C0(e, n);
|
|
3778
3778
|
}
|
|
3779
3779
|
function g0(e, n) {
|
|
3780
3780
|
const { authorizationList: i, chainId: o, gas: t, nonce: c, to: a, value: r, maxFeePerGas: l, maxPriorityFeePerGas: s, accessList: u, data: d } = e;
|
|
@@ -3797,7 +3797,7 @@ function g0(e, n) {
|
|
|
3797
3797
|
])
|
|
3798
3798
|
]);
|
|
3799
3799
|
}
|
|
3800
|
-
function
|
|
3800
|
+
function b0(e, n) {
|
|
3801
3801
|
const { chainId: i, gas: o, nonce: t, to: c, value: a, maxFeePerBlobGas: r, maxFeePerGas: l, maxPriorityFeePerGas: s, accessList: u, data: d } = e;
|
|
3802
3802
|
h0(e);
|
|
3803
3803
|
let h = e.blobVersionedHashes, g = e.sidecars;
|
|
@@ -3813,7 +3813,7 @@ function f0(e, n) {
|
|
|
3813
3813
|
g = o0({ blobs: E, commitments: F, proofs: I });
|
|
3814
3814
|
}
|
|
3815
3815
|
}
|
|
3816
|
-
const
|
|
3816
|
+
const b = Do(u), x = [
|
|
3817
3817
|
$(i),
|
|
3818
3818
|
t ? $(t) : "0x",
|
|
3819
3819
|
s ? $(s) : "0x",
|
|
@@ -3822,7 +3822,7 @@ function f0(e, n) {
|
|
|
3822
3822
|
c ?? "0x",
|
|
3823
3823
|
a ? $(a) : "0x",
|
|
3824
3824
|
d ?? "0x",
|
|
3825
|
-
|
|
3825
|
+
b,
|
|
3826
3826
|
r ? $(r) : "0x",
|
|
3827
3827
|
h ?? [],
|
|
3828
3828
|
...Ii(e, n)
|
|
@@ -3838,7 +3838,7 @@ function f0(e, n) {
|
|
|
3838
3838
|
Hn(g ? [x, C, v, A] : x)
|
|
3839
3839
|
]);
|
|
3840
3840
|
}
|
|
3841
|
-
function
|
|
3841
|
+
function f0(e, n) {
|
|
3842
3842
|
const { chainId: i, gas: o, nonce: t, to: c, value: a, maxFeePerGas: r, maxPriorityFeePerGas: l, accessList: s, data: u } = e;
|
|
3843
3843
|
Qc(e);
|
|
3844
3844
|
const d = Do(s), h = [
|
|
@@ -4224,7 +4224,7 @@ const Nn = {
|
|
|
4224
4224
|
contracts: Xl,
|
|
4225
4225
|
formatters: S0,
|
|
4226
4226
|
serializers: q0
|
|
4227
|
-
}, or = /* @__PURE__ */
|
|
4227
|
+
}, or = /* @__PURE__ */ fe({
|
|
4228
4228
|
id: 42161,
|
|
4229
4229
|
name: "Arbitrum One",
|
|
4230
4230
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -4246,7 +4246,7 @@ const Nn = {
|
|
|
4246
4246
|
blockCreated: 7654707
|
|
4247
4247
|
}
|
|
4248
4248
|
}
|
|
4249
|
-
}), tr = /* @__PURE__ */
|
|
4249
|
+
}), tr = /* @__PURE__ */ fe({
|
|
4250
4250
|
id: 421614,
|
|
4251
4251
|
name: "Arbitrum Sepolia",
|
|
4252
4252
|
nativeCurrency: {
|
|
@@ -4273,7 +4273,7 @@ const Nn = {
|
|
|
4273
4273
|
}
|
|
4274
4274
|
},
|
|
4275
4275
|
testnet: !0
|
|
4276
|
-
}), cr = /* @__PURE__ */
|
|
4276
|
+
}), cr = /* @__PURE__ */ fe({
|
|
4277
4277
|
id: 43114,
|
|
4278
4278
|
name: "Avalanche",
|
|
4279
4279
|
nativeCurrency: {
|
|
@@ -4297,7 +4297,7 @@ const Nn = {
|
|
|
4297
4297
|
blockCreated: 11907934
|
|
4298
4298
|
}
|
|
4299
4299
|
}
|
|
4300
|
-
}), ar = /* @__PURE__ */
|
|
4300
|
+
}), ar = /* @__PURE__ */ fe({
|
|
4301
4301
|
id: 43113,
|
|
4302
4302
|
name: "Avalanche Fuji",
|
|
4303
4303
|
nativeCurrency: {
|
|
@@ -4322,7 +4322,7 @@ const Nn = {
|
|
|
4322
4322
|
}
|
|
4323
4323
|
},
|
|
4324
4324
|
testnet: !0
|
|
4325
|
-
}), Ri = 1, rr = /* @__PURE__ */
|
|
4325
|
+
}), Ri = 1, rr = /* @__PURE__ */ fe({
|
|
4326
4326
|
...Nn,
|
|
4327
4327
|
id: 8453,
|
|
4328
4328
|
name: "Base",
|
|
@@ -4369,7 +4369,7 @@ const Nn = {
|
|
|
4369
4369
|
}
|
|
4370
4370
|
},
|
|
4371
4371
|
sourceId: Ri
|
|
4372
|
-
}), Oi = 11155111, sr = /* @__PURE__ */
|
|
4372
|
+
}), Oi = 11155111, sr = /* @__PURE__ */ fe({
|
|
4373
4373
|
...Nn,
|
|
4374
4374
|
id: 84532,
|
|
4375
4375
|
network: "base-sepolia",
|
|
@@ -4418,7 +4418,7 @@ const Nn = {
|
|
|
4418
4418
|
},
|
|
4419
4419
|
testnet: !0,
|
|
4420
4420
|
sourceId: Oi
|
|
4421
|
-
}), T0 = 1, lr = /* @__PURE__ */
|
|
4421
|
+
}), T0 = 1, lr = /* @__PURE__ */ fe({
|
|
4422
4422
|
id: 81457,
|
|
4423
4423
|
name: "Blast",
|
|
4424
4424
|
nativeCurrency: {
|
|
@@ -4443,7 +4443,7 @@ const Nn = {
|
|
|
4443
4443
|
}
|
|
4444
4444
|
},
|
|
4445
4445
|
sourceId: T0
|
|
4446
|
-
}), N0 = 11155111, mr = /* @__PURE__ */
|
|
4446
|
+
}), N0 = 11155111, mr = /* @__PURE__ */ fe({
|
|
4447
4447
|
id: 168587773,
|
|
4448
4448
|
name: "Blast Sepolia",
|
|
4449
4449
|
nativeCurrency: {
|
|
@@ -4471,7 +4471,7 @@ const Nn = {
|
|
|
4471
4471
|
},
|
|
4472
4472
|
testnet: !0,
|
|
4473
4473
|
sourceId: N0
|
|
4474
|
-
}), pr = /* @__PURE__ */
|
|
4474
|
+
}), pr = /* @__PURE__ */ fe({
|
|
4475
4475
|
id: 56,
|
|
4476
4476
|
name: "BNB Smart Chain",
|
|
4477
4477
|
nativeCurrency: {
|
|
@@ -4495,7 +4495,7 @@ const Nn = {
|
|
|
4495
4495
|
blockCreated: 15921452
|
|
4496
4496
|
}
|
|
4497
4497
|
}
|
|
4498
|
-
}), hr = /* @__PURE__ */
|
|
4498
|
+
}), hr = /* @__PURE__ */ fe({
|
|
4499
4499
|
id: 97,
|
|
4500
4500
|
name: "Binance Smart Chain Testnet",
|
|
4501
4501
|
nativeCurrency: {
|
|
@@ -4656,7 +4656,7 @@ const Z0 = {
|
|
|
4656
4656
|
formatters: W0,
|
|
4657
4657
|
serializers: G0,
|
|
4658
4658
|
fees: V0
|
|
4659
|
-
}, ur = /* @__PURE__ */
|
|
4659
|
+
}, ur = /* @__PURE__ */ fe({
|
|
4660
4660
|
...Z0,
|
|
4661
4661
|
id: 42220,
|
|
4662
4662
|
name: "Celo",
|
|
@@ -4682,7 +4682,7 @@ const Z0 = {
|
|
|
4682
4682
|
}
|
|
4683
4683
|
},
|
|
4684
4684
|
testnet: !1
|
|
4685
|
-
}), dr = /* @__PURE__ */
|
|
4685
|
+
}), dr = /* @__PURE__ */ fe({
|
|
4686
4686
|
id: 250,
|
|
4687
4687
|
name: "Fantom",
|
|
4688
4688
|
nativeCurrency: {
|
|
@@ -4706,7 +4706,7 @@ const Z0 = {
|
|
|
4706
4706
|
blockCreated: 33001987
|
|
4707
4707
|
}
|
|
4708
4708
|
}
|
|
4709
|
-
}), Dr = /* @__PURE__ */
|
|
4709
|
+
}), Dr = /* @__PURE__ */ fe({
|
|
4710
4710
|
id: 4002,
|
|
4711
4711
|
name: "Fantom Testnet",
|
|
4712
4712
|
nativeCurrency: {
|
|
@@ -4731,7 +4731,7 @@ const Z0 = {
|
|
|
4731
4731
|
}
|
|
4732
4732
|
},
|
|
4733
4733
|
testnet: !0
|
|
4734
|
-
}), xr = /* @__PURE__ */
|
|
4734
|
+
}), xr = /* @__PURE__ */ fe({
|
|
4735
4735
|
id: 314,
|
|
4736
4736
|
name: "Filecoin Mainnet",
|
|
4737
4737
|
nativeCurrency: {
|
|
@@ -4754,7 +4754,7 @@ const Z0 = {
|
|
|
4754
4754
|
blockCreated: 3328594
|
|
4755
4755
|
}
|
|
4756
4756
|
}
|
|
4757
|
-
}), gr = /* @__PURE__ */
|
|
4757
|
+
}), gr = /* @__PURE__ */ fe({
|
|
4758
4758
|
id: 984122,
|
|
4759
4759
|
name: "Forma",
|
|
4760
4760
|
network: "forma",
|
|
@@ -4781,7 +4781,7 @@ const Z0 = {
|
|
|
4781
4781
|
blockCreated: 252705
|
|
4782
4782
|
}
|
|
4783
4783
|
}
|
|
4784
|
-
}),
|
|
4784
|
+
}), br = /* @__PURE__ */ fe({
|
|
4785
4785
|
id: 2222,
|
|
4786
4786
|
name: "Kava EVM",
|
|
4787
4787
|
network: "kava-mainnet",
|
|
@@ -4807,7 +4807,7 @@ const Z0 = {
|
|
|
4807
4807
|
}
|
|
4808
4808
|
},
|
|
4809
4809
|
testnet: !1
|
|
4810
|
-
}),
|
|
4810
|
+
}), fr = /* @__PURE__ */ fe({
|
|
4811
4811
|
id: 2221,
|
|
4812
4812
|
name: "Kava EVM Testnet",
|
|
4813
4813
|
network: "kava-testnet",
|
|
@@ -4841,7 +4841,7 @@ async function J0(e, n) {
|
|
|
4841
4841
|
throw new Cd();
|
|
4842
4842
|
const o = lt(i);
|
|
4843
4843
|
try {
|
|
4844
|
-
const { accessList: r, blockNumber: l, blockTag: s, data: u, gas: d, gasPrice: h, maxFeePerGas: g, maxPriorityFeePerGas:
|
|
4844
|
+
const { accessList: r, blockNumber: l, blockTag: s, data: u, gas: d, gasPrice: h, maxFeePerGas: g, maxPriorityFeePerGas: b, nonce: x, to: C, value: v, ...A } = n, q = (l ? Ke(l) : void 0) || s;
|
|
4845
4845
|
Vd(n);
|
|
4846
4846
|
const F = (a = (c = (t = e.chain) == null ? void 0 : t.formatters) == null ? void 0 : c.transactionRequest) == null ? void 0 : a.format, T = (F || Il)({
|
|
4847
4847
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
@@ -4852,18 +4852,18 @@ async function J0(e, n) {
|
|
|
4852
4852
|
gas: d,
|
|
4853
4853
|
gasPrice: h,
|
|
4854
4854
|
maxFeePerGas: g,
|
|
4855
|
-
maxPriorityFeePerGas:
|
|
4855
|
+
maxPriorityFeePerGas: b,
|
|
4856
4856
|
nonce: x,
|
|
4857
4857
|
to: C,
|
|
4858
4858
|
value: v
|
|
4859
|
-
}), { baseFeePerGas: p, gasLimit: D, priorityFeePerGas:
|
|
4859
|
+
}), { baseFeePerGas: p, gasLimit: D, priorityFeePerGas: f } = await e.request({
|
|
4860
4860
|
method: "linea_estimateGas",
|
|
4861
4861
|
params: q ? [T, q] : [T]
|
|
4862
4862
|
});
|
|
4863
4863
|
return {
|
|
4864
4864
|
baseFeePerGas: BigInt(p),
|
|
4865
4865
|
gasLimit: BigInt(D),
|
|
4866
|
-
priorityFeePerGas: BigInt(
|
|
4866
|
+
priorityFeePerGas: BigInt(f)
|
|
4867
4867
|
};
|
|
4868
4868
|
} catch (r) {
|
|
4869
4869
|
throw a0(r, {
|
|
@@ -4902,7 +4902,7 @@ async function Ar({ client: e, multiply: n, request: i, type: o }) {
|
|
|
4902
4902
|
return null;
|
|
4903
4903
|
}
|
|
4904
4904
|
}
|
|
4905
|
-
const Cr = /* @__PURE__ */
|
|
4905
|
+
const Cr = /* @__PURE__ */ fe({
|
|
4906
4906
|
...Ql,
|
|
4907
4907
|
id: 59144,
|
|
4908
4908
|
name: "Linea Mainnet",
|
|
@@ -4927,7 +4927,7 @@ const Cr = /* @__PURE__ */ be({
|
|
|
4927
4927
|
}
|
|
4928
4928
|
},
|
|
4929
4929
|
testnet: !1
|
|
4930
|
-
}), kr = /* @__PURE__ */
|
|
4930
|
+
}), kr = /* @__PURE__ */ fe({
|
|
4931
4931
|
...Ql,
|
|
4932
4932
|
id: 59141,
|
|
4933
4933
|
name: "Linea Sepolia Testnet",
|
|
@@ -4952,7 +4952,7 @@ const Cr = /* @__PURE__ */ be({
|
|
|
4952
4952
|
}
|
|
4953
4953
|
},
|
|
4954
4954
|
testnet: !0
|
|
4955
|
-
}), wr = /* @__PURE__ */
|
|
4955
|
+
}), wr = /* @__PURE__ */ fe({
|
|
4956
4956
|
id: 1,
|
|
4957
4957
|
name: "Ethereum",
|
|
4958
4958
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -4981,7 +4981,7 @@ const Cr = /* @__PURE__ */ be({
|
|
|
4981
4981
|
blockCreated: 14353601
|
|
4982
4982
|
}
|
|
4983
4983
|
}
|
|
4984
|
-
}), yr = /* @__PURE__ */
|
|
4984
|
+
}), yr = /* @__PURE__ */ fe({
|
|
4985
4985
|
id: 169,
|
|
4986
4986
|
name: "Manta Pacific Mainnet",
|
|
4987
4987
|
network: "manta",
|
|
@@ -5006,7 +5006,7 @@ const Cr = /* @__PURE__ */ be({
|
|
|
5006
5006
|
blockCreated: 332890
|
|
5007
5007
|
}
|
|
5008
5008
|
}
|
|
5009
|
-
}), vr = /* @__PURE__ */
|
|
5009
|
+
}), vr = /* @__PURE__ */ fe({
|
|
5010
5010
|
id: 3441006,
|
|
5011
5011
|
name: "Manta Pacific Sepolia Testnet",
|
|
5012
5012
|
network: "manta-sepolia",
|
|
@@ -5034,7 +5034,7 @@ const Cr = /* @__PURE__ */ be({
|
|
|
5034
5034
|
}
|
|
5035
5035
|
},
|
|
5036
5036
|
testnet: !0
|
|
5037
|
-
}), Er = /* @__PURE__ */
|
|
5037
|
+
}), Er = /* @__PURE__ */ fe({
|
|
5038
5038
|
id: 1284,
|
|
5039
5039
|
name: "Moonbeam",
|
|
5040
5040
|
nativeCurrency: {
|
|
@@ -5062,7 +5062,7 @@ const Cr = /* @__PURE__ */ be({
|
|
|
5062
5062
|
}
|
|
5063
5063
|
},
|
|
5064
5064
|
testnet: !1
|
|
5065
|
-
}), Wi = 1, Fr = /* @__PURE__ */
|
|
5065
|
+
}), Wi = 1, Fr = /* @__PURE__ */ fe({
|
|
5066
5066
|
...Nn,
|
|
5067
5067
|
id: 10,
|
|
5068
5068
|
name: "OP Mainnet",
|
|
@@ -5107,7 +5107,7 @@ const Cr = /* @__PURE__ */ be({
|
|
|
5107
5107
|
}
|
|
5108
5108
|
},
|
|
5109
5109
|
sourceId: Wi
|
|
5110
|
-
}), Ui = 11155111, Br = /* @__PURE__ */
|
|
5110
|
+
}), Ui = 11155111, Br = /* @__PURE__ */ fe({
|
|
5111
5111
|
...Nn,
|
|
5112
5112
|
id: 11155420,
|
|
5113
5113
|
name: "OP Sepolia",
|
|
@@ -5153,7 +5153,7 @@ const Cr = /* @__PURE__ */ be({
|
|
|
5153
5153
|
},
|
|
5154
5154
|
testnet: !0,
|
|
5155
5155
|
sourceId: Ui
|
|
5156
|
-
}), Mr = /* @__PURE__ */
|
|
5156
|
+
}), Mr = /* @__PURE__ */ fe({
|
|
5157
5157
|
id: 137,
|
|
5158
5158
|
name: "Polygon",
|
|
5159
5159
|
nativeCurrency: { name: "POL", symbol: "POL", decimals: 18 },
|
|
@@ -5175,7 +5175,7 @@ const Cr = /* @__PURE__ */ be({
|
|
|
5175
5175
|
blockCreated: 25770160
|
|
5176
5176
|
}
|
|
5177
5177
|
}
|
|
5178
|
-
}), Pr = /* @__PURE__ */
|
|
5178
|
+
}), Pr = /* @__PURE__ */ fe({
|
|
5179
5179
|
id: 80001,
|
|
5180
5180
|
name: "Polygon Mumbai",
|
|
5181
5181
|
nativeCurrency: { name: "MATIC", symbol: "MATIC", decimals: 18 },
|
|
@@ -5198,7 +5198,7 @@ const Cr = /* @__PURE__ */ be({
|
|
|
5198
5198
|
}
|
|
5199
5199
|
},
|
|
5200
5200
|
testnet: !0
|
|
5201
|
-
}), Go = /* @__PURE__ */
|
|
5201
|
+
}), Go = /* @__PURE__ */ fe({
|
|
5202
5202
|
id: 1329,
|
|
5203
5203
|
name: "Sei Network",
|
|
5204
5204
|
nativeCurrency: { name: "Sei", symbol: "SEI", decimals: 18 },
|
|
@@ -5220,7 +5220,7 @@ const Cr = /* @__PURE__ */ be({
|
|
|
5220
5220
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11"
|
|
5221
5221
|
}
|
|
5222
5222
|
}
|
|
5223
|
-
}), zr = /* @__PURE__ */
|
|
5223
|
+
}), zr = /* @__PURE__ */ fe({
|
|
5224
5224
|
id: 11155111,
|
|
5225
5225
|
name: "Sepolia",
|
|
5226
5226
|
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -5264,7 +5264,7 @@ function _c(e) {
|
|
|
5264
5264
|
h && (r || (r = this.onConnect.bind(this), h.on("connect", r)), s || (s = this.onSessionDelete.bind(this), h.on("session_delete", s)));
|
|
5265
5265
|
},
|
|
5266
5266
|
async connect({ chainId: h, ...g } = {}) {
|
|
5267
|
-
var
|
|
5267
|
+
var b, x;
|
|
5268
5268
|
try {
|
|
5269
5269
|
const C = await this.getProvider();
|
|
5270
5270
|
if (!C)
|
|
@@ -5272,7 +5272,7 @@ function _c(e) {
|
|
|
5272
5272
|
l || (l = this.onDisplayUri, C.on("display_uri", l));
|
|
5273
5273
|
let v = h;
|
|
5274
5274
|
if (!v) {
|
|
5275
|
-
const F = await ((
|
|
5275
|
+
const F = await ((b = d.storage) == null ? void 0 : b.getItem("state")) ?? {};
|
|
5276
5276
|
d.chains.some((T) => T.id === F.chainId) ? v = F.chainId : v = (x = d.chains[0]) == null ? void 0 : x.id;
|
|
5277
5277
|
}
|
|
5278
5278
|
if (!v)
|
|
@@ -5306,12 +5306,12 @@ function _c(e) {
|
|
|
5306
5306
|
return (await this.getProvider()).accounts.map((g) => vt(g));
|
|
5307
5307
|
},
|
|
5308
5308
|
async getProvider({ chainId: h } = {}) {
|
|
5309
|
-
var
|
|
5309
|
+
var b;
|
|
5310
5310
|
async function g() {
|
|
5311
5311
|
const x = d.chains.map((v) => v.id);
|
|
5312
5312
|
if (!x.length)
|
|
5313
5313
|
return;
|
|
5314
|
-
const { EthereumProvider: C } = await import("./index.es-
|
|
5314
|
+
const { EthereumProvider: C } = await import("./index.es-CRD15u0k.js");
|
|
5315
5315
|
return await C.init({
|
|
5316
5316
|
...e,
|
|
5317
5317
|
disableProviderPing: !0,
|
|
@@ -5327,7 +5327,7 @@ function _c(e) {
|
|
|
5327
5327
|
showQrModal: e.showQrModal ?? !0
|
|
5328
5328
|
});
|
|
5329
5329
|
}
|
|
5330
|
-
return i || (o || (o = g()), i = await o, i == null || i.events.setMaxListeners(Number.POSITIVE_INFINITY)), h && await ((
|
|
5330
|
+
return i || (o || (o = g()), i = await o, i == null || i.events.setMaxListeners(Number.POSITIVE_INFINITY)), h && await ((b = this.switchChain) == null ? void 0 : b.call(this, { chainId: h })), i;
|
|
5331
5331
|
},
|
|
5332
5332
|
async getChainId() {
|
|
5333
5333
|
return (await this.getProvider()).chainId;
|
|
@@ -5346,8 +5346,8 @@ function _c(e) {
|
|
|
5346
5346
|
},
|
|
5347
5347
|
async switchChain({ addEthereumChainParameter: h, chainId: g }) {
|
|
5348
5348
|
var C, v, A;
|
|
5349
|
-
const
|
|
5350
|
-
if (!
|
|
5349
|
+
const b = await this.getProvider();
|
|
5350
|
+
if (!b)
|
|
5351
5351
|
throw new ir();
|
|
5352
5352
|
const x = d.chains.find((E) => E.id === g);
|
|
5353
5353
|
if (!x)
|
|
@@ -5360,7 +5360,7 @@ function _c(e) {
|
|
|
5360
5360
|
};
|
|
5361
5361
|
d.emitter.on("change", F);
|
|
5362
5362
|
}),
|
|
5363
|
-
|
|
5363
|
+
b.request({
|
|
5364
5364
|
method: "wallet_switchEthereumChain",
|
|
5365
5365
|
params: [{ chainId: ya(g) }]
|
|
5366
5366
|
})
|
|
@@ -5384,7 +5384,7 @@ function _c(e) {
|
|
|
5384
5384
|
nativeCurrency: (h == null ? void 0 : h.nativeCurrency) ?? x.nativeCurrency,
|
|
5385
5385
|
rpcUrls: I
|
|
5386
5386
|
};
|
|
5387
|
-
await
|
|
5387
|
+
await b.request({
|
|
5388
5388
|
method: "wallet_addEthereumChain",
|
|
5389
5389
|
params: [T]
|
|
5390
5390
|
});
|
|
@@ -5405,8 +5405,8 @@ function _c(e) {
|
|
|
5405
5405
|
d.emitter.emit("change", { chainId: g });
|
|
5406
5406
|
},
|
|
5407
5407
|
async onConnect(h) {
|
|
5408
|
-
const g = Number(h.chainId),
|
|
5409
|
-
d.emitter.emit("connect", { accounts:
|
|
5408
|
+
const g = Number(h.chainId), b = await this.getAccounts();
|
|
5409
|
+
d.emitter.emit("connect", { accounts: b, chainId: g });
|
|
5410
5410
|
},
|
|
5411
5411
|
async onDisconnect(h) {
|
|
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 g,
|
|
5424
|
-
return i ? ((x = (
|
|
5423
|
+
var g, b, x;
|
|
5424
|
+
return i ? ((x = (b = (g = i.session) == null ? void 0 : g.namespaces[t]) == null ? void 0 : b.accounts) == null ? void 0 : x.map((C) => Number.parseInt(C.split(":")[1] || ""))) ?? [] : [];
|
|
5425
5425
|
},
|
|
5426
5426
|
async getRequestedChainsIds() {
|
|
5427
5427
|
var h;
|
|
@@ -5444,8 +5444,8 @@ function _c(e) {
|
|
|
5444
5444
|
const h = d.chains.map((x) => x.id), g = this.getNamespaceChainsIds();
|
|
5445
5445
|
if (g.length && !g.some((x) => h.includes(x)))
|
|
5446
5446
|
return !1;
|
|
5447
|
-
const
|
|
5448
|
-
return !h.every((x) =>
|
|
5447
|
+
const b = await this.getRequestedChainsIds();
|
|
5448
|
+
return !h.every((x) => b.includes(x));
|
|
5449
5449
|
},
|
|
5450
5450
|
async setRequestedChainsIds(h) {
|
|
5451
5451
|
var g;
|
|
@@ -5489,7 +5489,7 @@ const Sr = ap({
|
|
|
5489
5489
|
ur,
|
|
5490
5490
|
dr,
|
|
5491
5491
|
xr,
|
|
5492
|
-
|
|
5492
|
+
br,
|
|
5493
5493
|
Cr,
|
|
5494
5494
|
wr,
|
|
5495
5495
|
yr,
|
|
@@ -5509,7 +5509,7 @@ const Sr = ap({
|
|
|
5509
5509
|
Go,
|
|
5510
5510
|
hr,
|
|
5511
5511
|
Dr,
|
|
5512
|
-
|
|
5512
|
+
fr,
|
|
5513
5513
|
kr,
|
|
5514
5514
|
vr
|
|
5515
5515
|
],
|
|
@@ -5521,7 +5521,7 @@ const Sr = ap({
|
|
|
5521
5521
|
[ur.id]: ue(),
|
|
5522
5522
|
[dr.id]: ue(),
|
|
5523
5523
|
[xr.id]: ue(),
|
|
5524
|
-
[
|
|
5524
|
+
[br.id]: ue(),
|
|
5525
5525
|
[Cr.id]: ue(),
|
|
5526
5526
|
[wr.id]: ue(),
|
|
5527
5527
|
[yr.id]: ue(),
|
|
@@ -5541,7 +5541,7 @@ const Sr = ap({
|
|
|
5541
5541
|
[Go.id]: ue(),
|
|
5542
5542
|
[hr.id]: ue(),
|
|
5543
5543
|
[Dr.id]: ue(),
|
|
5544
|
-
[
|
|
5544
|
+
[fr.id]: ue(),
|
|
5545
5545
|
[kr.id]: ue(),
|
|
5546
5546
|
[vr.id]: ue()
|
|
5547
5547
|
},
|
|
@@ -5567,9 +5567,9 @@ const ht = [
|
|
|
5567
5567
|
new up(),
|
|
5568
5568
|
new gp(),
|
|
5569
5569
|
new dp(),
|
|
5570
|
-
new
|
|
5570
|
+
new bp(),
|
|
5571
5571
|
new Dp(),
|
|
5572
|
-
new
|
|
5572
|
+
new fp({
|
|
5573
5573
|
network: Ac.Mainnet,
|
|
5574
5574
|
options: {
|
|
5575
5575
|
projectId: "ff1b9e9bd6329cfb07642bd7f4d11a8c"
|
|
@@ -5581,7 +5581,7 @@ const ht = [
|
|
|
5581
5581
|
}, pi = Q({
|
|
5582
5582
|
apiURL: void 0,
|
|
5583
5583
|
endpointOptions: void 0
|
|
5584
|
-
}), $c = Q(void 0), $l = Q(Ro), Q0 = Q(new Jm()),
|
|
5584
|
+
}), $c = Q(void 0), $l = Q(Ro), Q0 = Q(new Jm()), bn = Q((e) => {
|
|
5585
5585
|
const n = e(pi), i = e(rt), o = e(dl), t = e(Q0);
|
|
5586
5586
|
return t.updateOptions({
|
|
5587
5587
|
...n,
|
|
@@ -5621,8 +5621,8 @@ const ht = [
|
|
|
5621
5621
|
});
|
|
5622
5622
|
});
|
|
5623
5623
|
return i;
|
|
5624
|
-
}, Hi = Q(void 0),
|
|
5625
|
-
const n = e(
|
|
5624
|
+
}, Hi = Q(void 0), fn = ri((e) => {
|
|
5625
|
+
const n = e(bn), { apiURL: i, apiKey: o, cacheDurationMs: t } = e(pi), c = e(Fe), a = e(Hi);
|
|
5626
5626
|
return {
|
|
5627
5627
|
queryKey: ["skipAssets", a, { onlyTestnets: a, apiURL: i, apiKey: o, cacheDurationMs: t }],
|
|
5628
5628
|
queryFn: async () => n.assets({
|
|
@@ -5634,7 +5634,7 @@ const ht = [
|
|
|
5634
5634
|
enabled: a !== void 0 && i !== void 0
|
|
5635
5635
|
};
|
|
5636
5636
|
}), Fe = ri((e) => {
|
|
5637
|
-
const n = e(
|
|
5637
|
+
const n = e(bn), { apiURL: i, apiKey: o, cacheDurationMs: t } = e(pi), c = e(Hi);
|
|
5638
5638
|
return {
|
|
5639
5639
|
queryKey: ["skipChains", { onlyTestnets: c, apiURL: i, apiKey: o, cacheDurationMs: t }],
|
|
5640
5640
|
queryFn: async () => n.chains({
|
|
@@ -5645,13 +5645,13 @@ const ht = [
|
|
|
5645
5645
|
enabled: c !== void 0 && i !== void 0
|
|
5646
5646
|
};
|
|
5647
5647
|
}), $0 = ri((e) => {
|
|
5648
|
-
const n = e(
|
|
5648
|
+
const n = e(bn), { apiURL: i, apiKey: o, cacheDurationMs: t } = e(pi);
|
|
5649
5649
|
return {
|
|
5650
5650
|
queryKey: ["skipBridges", { apiURL: i, apiKey: o, cacheDurationMs: t }],
|
|
5651
5651
|
queryFn: async () => n.bridges()
|
|
5652
5652
|
};
|
|
5653
5653
|
}), ea = ri((e) => {
|
|
5654
|
-
const n = e(
|
|
5654
|
+
const n = e(bn), { apiURL: i, apiKey: o, cacheDurationMs: t } = e(pi), c = e(Hi);
|
|
5655
5655
|
return {
|
|
5656
5656
|
queryKey: ["skipSwapVenue", { onlyTestnets: c, apiURL: i, apiKey: o, cacheDurationMs: t }],
|
|
5657
5657
|
queryFn: async () => n.venues(c),
|
|
@@ -5665,7 +5665,7 @@ const jr = [0.1, 0.5, 1, 3], eD = [
|
|
|
5665
5665
|
], to = 6;
|
|
5666
5666
|
var nD = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, It = Math.ceil, Qe = 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 = A.prototype = { constructor: A, toString: null, valueOf: null }, c = new A(1), a = 20, r = 4, l = -7, s = 21, u = -1e7, d = 1e7, h = !1, g = 1,
|
|
5668
|
+
var n, i, o, t = A.prototype = { constructor: A, toString: null, valueOf: null }, c = new A(1), a = 20, r = 4, l = -7, s = 21, u = -1e7, d = 1e7, h = !1, g = 1, b = 0, x = {
|
|
5669
5669
|
prefix: "",
|
|
5670
5670
|
groupSize: 3,
|
|
5671
5671
|
secondaryGroupSize: 0,
|
|
@@ -5677,7 +5677,7 @@ function em(e) {
|
|
|
5677
5677
|
suffix: ""
|
|
5678
5678
|
}, C = "0123456789abcdefghijklmnopqrstuvwxyz", v = !0;
|
|
5679
5679
|
function A(p, D) {
|
|
5680
|
-
var
|
|
5680
|
+
var f, B, w, M, z, k, P, y, S = this;
|
|
5681
5681
|
if (!(S instanceof A)) return new A(p, D);
|
|
5682
5682
|
if (D == null) {
|
|
5683
5683
|
if (p && p._isBigNumber === !0) {
|
|
@@ -5705,8 +5705,8 @@ function em(e) {
|
|
|
5705
5705
|
throw Error(Ir + p);
|
|
5706
5706
|
} else
|
|
5707
5707
|
S.s = y.charCodeAt(0) === 45 ? (y = y.slice(1), -1) : 1;
|
|
5708
|
-
for (
|
|
5709
|
-
if (
|
|
5708
|
+
for (f = C.slice(0, D), M = z = 0, P = y.length; z < P; z++)
|
|
5709
|
+
if (f.indexOf(B = y.charAt(z)) < 0) {
|
|
5710
5710
|
if (B == ".") {
|
|
5711
5711
|
if (z > M) {
|
|
5712
5712
|
M = P;
|
|
@@ -5743,35 +5743,35 @@ function em(e) {
|
|
|
5743
5743
|
S.c = [S.e = 0];
|
|
5744
5744
|
}
|
|
5745
5745
|
A.clone = em, A.ROUND_UP = 0, A.ROUND_DOWN = 1, A.ROUND_CEIL = 2, A.ROUND_FLOOR = 3, A.ROUND_HALF_UP = 4, A.ROUND_HALF_DOWN = 5, A.ROUND_HALF_EVEN = 6, A.ROUND_HALF_CEIL = 7, A.ROUND_HALF_FLOOR = 8, A.EUCLID = 9, A.config = A.set = function(p) {
|
|
5746
|
-
var D,
|
|
5746
|
+
var D, f;
|
|
5747
5747
|
if (p != null)
|
|
5748
5748
|
if (typeof p == "object") {
|
|
5749
|
-
if (p.hasOwnProperty(D = "DECIMAL_PLACES") && (
|
|
5750
|
-
if (
|
|
5751
|
-
Be(
|
|
5752
|
-
else if (Be(
|
|
5753
|
-
u = -(d =
|
|
5749
|
+
if (p.hasOwnProperty(D = "DECIMAL_PLACES") && (f = p[D], Be(f, 0, Ie, D), a = f), p.hasOwnProperty(D = "ROUNDING_MODE") && (f = p[D], Be(f, 0, 8, D), r = f), p.hasOwnProperty(D = "EXPONENTIAL_AT") && (f = p[D], f && f.pop ? (Be(f[0], -Ie, 0, D), Be(f[1], 0, Ie, D), l = f[0], s = f[1]) : (Be(f, -Ie, Ie, D), l = -(s = f < 0 ? -f : f))), p.hasOwnProperty(D = "RANGE"))
|
|
5750
|
+
if (f = p[D], f && f.pop)
|
|
5751
|
+
Be(f[0], -Ie, -1, D), Be(f[1], 1, Ie, D), u = f[0], d = f[1];
|
|
5752
|
+
else if (Be(f, -Ie, Ie, D), f)
|
|
5753
|
+
u = -(d = f < 0 ? -f : f);
|
|
5754
5754
|
else
|
|
5755
|
-
throw Error(Ge + D + " cannot be zero: " +
|
|
5755
|
+
throw Error(Ge + D + " cannot be zero: " + f);
|
|
5756
5756
|
if (p.hasOwnProperty(D = "CRYPTO"))
|
|
5757
|
-
if (
|
|
5758
|
-
if (
|
|
5757
|
+
if (f = p[D], f === !!f)
|
|
5758
|
+
if (f)
|
|
5759
5759
|
if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
|
|
5760
|
-
h =
|
|
5760
|
+
h = f;
|
|
5761
5761
|
else
|
|
5762
|
-
throw h = !
|
|
5762
|
+
throw h = !f, Error(Ge + "crypto unavailable");
|
|
5763
5763
|
else
|
|
5764
|
-
h =
|
|
5764
|
+
h = f;
|
|
5765
5765
|
else
|
|
5766
|
-
throw Error(Ge + D + " not true or false: " +
|
|
5767
|
-
if (p.hasOwnProperty(D = "MODULO_MODE") && (
|
|
5768
|
-
if (
|
|
5769
|
-
else throw Error(Ge + D + " not an object: " +
|
|
5766
|
+
throw Error(Ge + D + " not true or false: " + f);
|
|
5767
|
+
if (p.hasOwnProperty(D = "MODULO_MODE") && (f = p[D], Be(f, 0, 9, D), g = f), p.hasOwnProperty(D = "POW_PRECISION") && (f = p[D], Be(f, 0, Ie, D), b = f), p.hasOwnProperty(D = "FORMAT"))
|
|
5768
|
+
if (f = p[D], typeof f == "object") x = f;
|
|
5769
|
+
else throw Error(Ge + D + " not an object: " + f);
|
|
5770
5770
|
if (p.hasOwnProperty(D = "ALPHABET"))
|
|
5771
|
-
if (
|
|
5772
|
-
v =
|
|
5771
|
+
if (f = p[D], typeof f == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(f))
|
|
5772
|
+
v = f.slice(0, 10) == "0123456789", C = f;
|
|
5773
5773
|
else
|
|
5774
|
-
throw Error(Ge + D + " invalid: " +
|
|
5774
|
+
throw Error(Ge + D + " invalid: " + f);
|
|
5775
5775
|
} else
|
|
5776
5776
|
throw Error(Ge + "Object expected: " + p);
|
|
5777
5777
|
return {
|
|
@@ -5781,14 +5781,14 @@ function em(e) {
|
|
|
5781
5781
|
RANGE: [u, d],
|
|
5782
5782
|
CRYPTO: h,
|
|
5783
5783
|
MODULO_MODE: g,
|
|
5784
|
-
POW_PRECISION:
|
|
5784
|
+
POW_PRECISION: b,
|
|
5785
5785
|
FORMAT: x,
|
|
5786
5786
|
ALPHABET: C
|
|
5787
5787
|
};
|
|
5788
5788
|
}, A.isBigNumber = function(p) {
|
|
5789
5789
|
if (!p || p._isBigNumber !== !0) return !1;
|
|
5790
5790
|
if (!A.DEBUG) return !0;
|
|
5791
|
-
var D,
|
|
5791
|
+
var D, f, B = p.c, w = p.e, M = p.s;
|
|
5792
5792
|
e: if ({}.toString.call(B) == "[object Array]") {
|
|
5793
5793
|
if ((M === 1 || M === -1) && w >= -Ie && w <= Ie && w === Qe(w)) {
|
|
5794
5794
|
if (B[0] === 0) {
|
|
@@ -5797,8 +5797,8 @@ function em(e) {
|
|
|
5797
5797
|
}
|
|
5798
5798
|
if (D = (w + 1) % ee, D < 1 && (D += ee), String(B[0]).length == D) {
|
|
5799
5799
|
for (D = 0; D < B.length; D++)
|
|
5800
|
-
if (
|
|
5801
|
-
if (
|
|
5800
|
+
if (f = B[D], f < 0 || f >= rn || f !== Qe(f)) break e;
|
|
5801
|
+
if (f !== 0) return !0;
|
|
5802
5802
|
}
|
|
5803
5803
|
}
|
|
5804
5804
|
} else if (B === null && w === null && (M === null || M === 1 || M === -1))
|
|
@@ -5814,9 +5814,9 @@ function em(e) {
|
|
|
5814
5814
|
} : function() {
|
|
5815
5815
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
5816
5816
|
};
|
|
5817
|
-
return function(
|
|
5817
|
+
return function(f) {
|
|
5818
5818
|
var B, w, M, z, k, P = 0, y = [], S = new A(c);
|
|
5819
|
-
if (
|
|
5819
|
+
if (f == null ? f = a : Be(f, 0, Ie), z = It(f / ee), h)
|
|
5820
5820
|
if (crypto.getRandomValues) {
|
|
5821
5821
|
for (B = crypto.getRandomValues(new Uint32Array(z *= 2)); P < z; )
|
|
5822
5822
|
k = B[P] * 131072 + (B[P + 1] >>> 11), k >= 9e15 ? (w = crypto.getRandomValues(new Uint32Array(2)), B[P] = w[0], B[P + 1] = w[1]) : (y.push(k % 1e14), P += 2);
|
|
@@ -5830,7 +5830,7 @@ function em(e) {
|
|
|
5830
5830
|
if (!h)
|
|
5831
5831
|
for (; P < z; )
|
|
5832
5832
|
k = D(), k < 9e15 && (y[P++] = k % 1e14);
|
|
5833
|
-
for (z = y[--P],
|
|
5833
|
+
for (z = y[--P], f %= ee, z && f && (k = Tt[ee - f], y[P] = Qe(z / k) * k); y[P] === 0; y.pop(), P--) ;
|
|
5834
5834
|
if (P < 0)
|
|
5835
5835
|
y = [M = 0];
|
|
5836
5836
|
else {
|
|
@@ -5841,38 +5841,38 @@ function em(e) {
|
|
|
5841
5841
|
return S.e = M, S.c = y, S;
|
|
5842
5842
|
};
|
|
5843
5843
|
}(), A.sum = function() {
|
|
5844
|
-
for (var p = 1, D = arguments,
|
|
5845
|
-
return
|
|
5844
|
+
for (var p = 1, D = arguments, f = new A(D[0]); p < D.length; ) f = f.plus(D[p++]);
|
|
5845
|
+
return f;
|
|
5846
5846
|
}, i = /* @__PURE__ */ function() {
|
|
5847
5847
|
var p = "0123456789";
|
|
5848
|
-
function D(
|
|
5849
|
-
for (var z, k = [0], P, y = 0, S =
|
|
5848
|
+
function D(f, B, w, M) {
|
|
5849
|
+
for (var z, k = [0], P, y = 0, S = f.length; y < S; ) {
|
|
5850
5850
|
for (P = k.length; P--; k[P] *= B) ;
|
|
5851
|
-
for (k[0] += M.indexOf(
|
|
5851
|
+
for (k[0] += M.indexOf(f.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);
|
|
5853
5853
|
}
|
|
5854
5854
|
return k.reverse();
|
|
5855
5855
|
}
|
|
5856
|
-
return function(
|
|
5857
|
-
var k, P, y, S, H, U, K, Z, te =
|
|
5858
|
-
for (te >= 0 && (S =
|
|
5856
|
+
return function(f, B, w, M, z) {
|
|
5857
|
+
var k, P, y, S, H, U, K, Z, te = f.indexOf("."), re = a, G = r;
|
|
5858
|
+
for (te >= 0 && (S = b, b = 0, f = f.replace(".", ""), Z = new A(B), U = Z.pow(f.length - te), b = S, Z.c = D(
|
|
5859
5859
|
Cn(Je(U.c), U.e, "0"),
|
|
5860
5860
|
10,
|
|
5861
5861
|
w,
|
|
5862
5862
|
p
|
|
5863
|
-
), Z.e = Z.c.length), K = D(
|
|
5863
|
+
), Z.e = Z.c.length), K = D(f, B, w, z ? (k = C, p) : (k = p, C)), y = S = K.length; K[--S] == 0; K.pop()) ;
|
|
5864
5864
|
if (!K[0]) return k.charAt(0);
|
|
5865
5865
|
if (te < 0 ? --y : (U.c = K, U.e = y, U.s = M, U = n(U, Z, re, G, w), K = U.c, H = U.r, y = U.e), P = y + re + 1, te = K[P], S = w / 2, H = H || P < 0 || K[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 && K[P - 1] & 1 || G == (U.s < 0 ? 8 : 7)), P < 1 || !K[0])
|
|
5866
|
-
|
|
5866
|
+
f = H ? Cn(k.charAt(1), -re, k.charAt(0)) : k.charAt(0);
|
|
5867
5867
|
else {
|
|
5868
5868
|
if (K.length = P, H)
|
|
5869
5869
|
for (--w; ++K[--P] > w; )
|
|
5870
5870
|
K[P] = 0, P || (++y, K = [1].concat(K));
|
|
5871
5871
|
for (S = K.length; !K[--S]; ) ;
|
|
5872
|
-
for (te = 0,
|
|
5873
|
-
|
|
5872
|
+
for (te = 0, f = ""; te <= S; f += k.charAt(K[te++])) ;
|
|
5873
|
+
f = Cn(f, y, k.charAt(0));
|
|
5874
5874
|
}
|
|
5875
|
-
return
|
|
5875
|
+
return f;
|
|
5876
5876
|
};
|
|
5877
5877
|
}(), n = /* @__PURE__ */ function() {
|
|
5878
5878
|
function p(B, w, M) {
|
|
@@ -5893,7 +5893,7 @@ function em(e) {
|
|
|
5893
5893
|
}
|
|
5894
5894
|
return P;
|
|
5895
5895
|
}
|
|
5896
|
-
function
|
|
5896
|
+
function f(B, w, M, z) {
|
|
5897
5897
|
for (var k = 0; M--; )
|
|
5898
5898
|
B[M] -= k, k = B[M] < w[M] ? 1 : 0, B[M] = k * z + B[M] - w[M];
|
|
5899
5899
|
for (; !B[0] && B.length > 1; B.splice(0, 1)) ;
|
|
@@ -5918,12 +5918,12 @@ function em(e) {
|
|
|
5918
5918
|
if (U = 0, P = D(Pe, G, Le, _), P < 0) {
|
|
5919
5919
|
if (Ce = G[0], Le != _ && (Ce = Ce * k + (G[1] || 0)), U = Qe(Ce / Gn), U > 1)
|
|
5920
5920
|
for (U >= k && (U = k - 1), K = p(Pe, U, k), Z = K.length, _ = G.length; D(K, G, Z, _) == 1; )
|
|
5921
|
-
U--,
|
|
5921
|
+
U--, f(K, Le < Z ? Ue : Pe, Z, k), Z = K.length, P = 1;
|
|
5922
5922
|
else
|
|
5923
5923
|
U == 0 && (P = U = 1), K = Pe.slice(), Z = K.length;
|
|
5924
|
-
if (Z < _ && (K = [0].concat(K)),
|
|
5924
|
+
if (Z < _ && (K = [0].concat(K)), f(G, K, _, k), _ = G.length, P == -1)
|
|
5925
5925
|
for (; D(Pe, G, Le, _) < 1; )
|
|
5926
|
-
U++,
|
|
5926
|
+
U++, f(G, Le < _ ? Ue : Pe, _, k), _ = G.length;
|
|
5927
5927
|
} else P === 0 && (U++, G = [0]);
|
|
5928
5928
|
re[S++] = U, G[0] ? G[_++] = Re[cn] || 0 : (G = [Re[cn]], _ = 1);
|
|
5929
5929
|
} while ((cn++ < an || G[0] != null) && Ze--);
|
|
@@ -5937,12 +5937,12 @@ function em(e) {
|
|
|
5937
5937
|
return te;
|
|
5938
5938
|
};
|
|
5939
5939
|
}();
|
|
5940
|
-
function E(p, D,
|
|
5940
|
+
function E(p, D, f, B) {
|
|
5941
5941
|
var w, M, z, k, P;
|
|
5942
|
-
if (
|
|
5942
|
+
if (f == null ? f = r : Be(f, 0, 8), !p.c) return p.toString();
|
|
5943
5943
|
if (w = p.c[0], z = p.e, D == null)
|
|
5944
5944
|
P = Je(p.c), P = B == 1 || B == 2 && (z <= l || z >= s) ? vo(P, z) : Cn(P, z, "0");
|
|
5945
|
-
else if (p = I(new A(p), D,
|
|
5945
|
+
else if (p = I(new A(p), D, f), M = p.e, P = Je(p.c), k = P.length, B == 1 || B == 2 && (D <= M || M <= l)) {
|
|
5946
5946
|
for (; k < D; P += "0", k++) ;
|
|
5947
5947
|
P = vo(P, M);
|
|
5948
5948
|
} else if (D -= z, P = Cn(P, M, "0"), M + 1 > k) {
|
|
@@ -5952,17 +5952,17 @@ function em(e) {
|
|
|
5952
5952
|
return p.s < 0 && w ? "-" + P : P;
|
|
5953
5953
|
}
|
|
5954
5954
|
function q(p, D) {
|
|
5955
|
-
for (var
|
|
5956
|
-
B = new A(p[w]), (!B.s || (
|
|
5955
|
+
for (var f, B, w = 1, M = new A(p[0]); w < p.length; w++)
|
|
5956
|
+
B = new A(p[w]), (!B.s || (f = Kn(M, B)) === D || f === 0 && M.s === D) && (M = B);
|
|
5957
5957
|
return M;
|
|
5958
5958
|
}
|
|
5959
|
-
function F(p, D,
|
|
5959
|
+
function F(p, D, f) {
|
|
5960
5960
|
for (var B = 1, w = D.length; !D[--w]; D.pop()) ;
|
|
5961
5961
|
for (w = D[0]; w >= 10; w /= 10, B++) ;
|
|
5962
|
-
return (
|
|
5962
|
+
return (f = B + f * ee - 1) > d ? p.c = p.e = null : f < u ? p.c = [p.e = 0] : (p.e = f, p.c = D), p;
|
|
5963
5963
|
}
|
|
5964
5964
|
o = /* @__PURE__ */ function() {
|
|
5965
|
-
var p = /^(-?)0([xbo])(?=\w[\w.]*$)/i, D = /^([^.]+)\.$/,
|
|
5965
|
+
var p = /^(-?)0([xbo])(?=\w[\w.]*$)/i, D = /^([^.]+)\.$/, f = /^\.([^.]+)$/, B = /^-?(Infinity|NaN)$/, w = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
5966
5966
|
return function(M, z, k, P) {
|
|
5967
5967
|
var y, S = k ? z : z.replace(w, "");
|
|
5968
5968
|
if (B.test(S))
|
|
@@ -5970,7 +5970,7 @@ function em(e) {
|
|
|
5970
5970
|
else {
|
|
5971
5971
|
if (!k && (S = S.replace(p, function(H, U, K) {
|
|
5972
5972
|
return y = (K = K.toLowerCase()) == "x" ? 16 : K == "b" ? 2 : 8, !P || P == y ? U : H;
|
|
5973
|
-
}), P && (y = P, S = S.replace(D, "$1").replace(
|
|
5973
|
+
}), P && (y = P, S = S.replace(D, "$1").replace(f, "0.$1")), z != S))
|
|
5974
5974
|
return new A(S, y);
|
|
5975
5975
|
if (A.DEBUG)
|
|
5976
5976
|
throw Error(Ge + "Not a" + (P ? " base " + P : "") + " number: " + z);
|
|
@@ -5979,7 +5979,7 @@ function em(e) {
|
|
|
5979
5979
|
M.c = M.e = null;
|
|
5980
5980
|
};
|
|
5981
5981
|
}();
|
|
5982
|
-
function I(p, D,
|
|
5982
|
+
function I(p, D, f, B) {
|
|
5983
5983
|
var w, M, z, k, P, y, S, H = p.c, U = Tt;
|
|
5984
5984
|
if (H) {
|
|
5985
5985
|
e: {
|
|
@@ -5999,8 +5999,8 @@ function em(e) {
|
|
|
5999
5999
|
if (B = B || 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]), B =
|
|
6003
|
-
(M > 0 ? z > 0 ? P / U[w - z] : 0 : H[y - 1]) % 10 & 1 ||
|
|
6002
|
+
H[y + 1] != null || (z < 0 ? P : P % U[w - z - 1]), B = f < 4 ? (S || B) && (f == 0 || f == (p.s < 0 ? 3 : 2)) : S > 5 || S == 5 && (f == 4 || B || f == 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 || f == (p.s < 0 ? 8 : 7)), D < 1 || !H[0])
|
|
6004
6004
|
return H.length = 0, B ? (D -= p.e + 1, H[0] = U[(ee - D % ee) % ee], p.e = -D || 0) : H[0] = p.e = 0, p;
|
|
6005
6005
|
if (M == 0 ? (H.length = y, k = 1, y--) : (H.length = y + 1, k = U[ee - M], H[y] = z > 0 ? Qe(P / U[w - z] % U[z]) * k : 0), B)
|
|
6006
6006
|
for (; ; )
|
|
@@ -6020,8 +6020,8 @@ function em(e) {
|
|
|
6020
6020
|
return p;
|
|
6021
6021
|
}
|
|
6022
6022
|
function T(p) {
|
|
6023
|
-
var D,
|
|
6024
|
-
return
|
|
6023
|
+
var D, f = p.e;
|
|
6024
|
+
return f === null ? p.toString() : (D = Je(p.c), D = f <= l || f >= s ? vo(D, f) : Cn(D, f, "0"), p.s < 0 ? "-" + D : D);
|
|
6025
6025
|
}
|
|
6026
6026
|
return t.absoluteValue = t.abs = function() {
|
|
6027
6027
|
var p = new A(this);
|
|
@@ -6029,18 +6029,18 @@ function em(e) {
|
|
|
6029
6029
|
}, t.comparedTo = function(p, D) {
|
|
6030
6030
|
return Kn(this, new A(p, D));
|
|
6031
6031
|
}, t.decimalPlaces = t.dp = function(p, D) {
|
|
6032
|
-
var
|
|
6032
|
+
var f, B, w, M = this;
|
|
6033
6033
|
if (p != null)
|
|
6034
6034
|
return Be(p, 0, Ie), D == null ? D = r : Be(D, 0, 8), I(new A(M), p + M.e + 1, D);
|
|
6035
|
-
if (!(
|
|
6036
|
-
if (B = ((w =
|
|
6035
|
+
if (!(f = M.c)) return null;
|
|
6036
|
+
if (B = ((w = f.length - 1) - _e(this.e / ee)) * ee, w = f[w]) for (; w % 10 == 0; w /= 10, B--) ;
|
|
6037
6037
|
return B < 0 && (B = 0), B;
|
|
6038
6038
|
}, t.dividedBy = t.div = function(p, D) {
|
|
6039
6039
|
return n(this, new A(p, D), a, r);
|
|
6040
6040
|
}, t.dividedToIntegerBy = t.idiv = function(p, D) {
|
|
6041
6041
|
return n(this, new A(p, D), 0, 1);
|
|
6042
6042
|
}, t.exponentiatedBy = t.pow = function(p, D) {
|
|
6043
|
-
var
|
|
6043
|
+
var f, B, w, M, z, k, P, y, S, H = this;
|
|
6044
6044
|
if (p = new A(p), p.c && !p.isInteger())
|
|
6045
6045
|
throw Error(Ge + "Exponent not an integer: " + T(p));
|
|
6046
6046
|
if (D != null && (D = new A(D)), k = p.e > 14, !H.c || !H.c[0] || H.c[0] == 1 && !H.e && H.c.length == 1 || !p.c || !p.c[0])
|
|
@@ -6051,9 +6051,9 @@ function em(e) {
|
|
|
6051
6051
|
} else {
|
|
6052
6052
|
if (p.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(p) ? -0 : 0, H.e > -1 && (M = 1 / M), new A(P ? 1 / M : M);
|
|
6054
|
-
|
|
6054
|
+
b && (M = It(b / ee + 2));
|
|
6055
6055
|
}
|
|
6056
|
-
for (k ? (
|
|
6056
|
+
for (k ? (f = new A(0.5), P && (p.s = 1), y = yo(p)) : (w = Math.abs(+T(p)), y = w % 2), S = new A(c); ; ) {
|
|
6057
6057
|
if (y) {
|
|
6058
6058
|
if (S = S.times(H), !S.c) break;
|
|
6059
6059
|
M ? S.c.length > M && (S.c.length = M) : B && (S = S.mod(D));
|
|
@@ -6061,7 +6061,7 @@ function em(e) {
|
|
|
6061
6061
|
if (w) {
|
|
6062
6062
|
if (w = Qe(w / 2), w === 0) break;
|
|
6063
6063
|
y = w % 2;
|
|
6064
|
-
} else if (p = p.times(
|
|
6064
|
+
} else if (p = p.times(f), I(p, p.e + 1, 1), p.e > 14)
|
|
6065
6065
|
y = yo(p);
|
|
6066
6066
|
else {
|
|
6067
6067
|
if (w = +T(p), 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) : B && (H = H.mod(D));
|
|
6071
6071
|
}
|
|
6072
|
-
return B ? S : (P && (S = c.div(S)), D ? S.mod(D) : M ? I(S,
|
|
6072
|
+
return B ? S : (P && (S = c.div(S)), D ? S.mod(D) : M ? I(S, b, r, z) : S);
|
|
6073
6073
|
}, t.integerValue = function(p) {
|
|
6074
6074
|
var D = new A(this);
|
|
6075
6075
|
return p == null ? p = r : Be(p, 0, 8), I(D, D.e + 1, p);
|
|
@@ -6096,7 +6096,7 @@ function em(e) {
|
|
|
6096
6096
|
}, t.isZero = function() {
|
|
6097
6097
|
return !!this.c && this.c[0] == 0;
|
|
6098
6098
|
}, t.minus = function(p, D) {
|
|
6099
|
-
var
|
|
6099
|
+
var f, B, w, M, z = this, k = z.s;
|
|
6100
6100
|
if (p = new A(p, D), D = p.s, !k || !D) return new A(NaN);
|
|
6101
6101
|
if (k != D)
|
|
6102
6102
|
return p.s = -D, z.plus(p);
|
|
@@ -6118,35 +6118,35 @@ function em(e) {
|
|
|
6118
6118
|
M = S[D] < H[D];
|
|
6119
6119
|
break;
|
|
6120
6120
|
}
|
|
6121
|
-
if (M && (w = S, S = H, H = w, p.s = -p.s), D = (B = H.length) - (
|
|
6121
|
+
if (M && (w = S, S = H, H = w, p.s = -p.s), D = (B = H.length) - (f = S.length), D > 0) for (; D--; S[f++] = 0) ;
|
|
6122
6122
|
for (D = rn - 1; B > k; ) {
|
|
6123
6123
|
if (S[--B] < H[B]) {
|
|
6124
|
-
for (
|
|
6125
|
-
--S[
|
|
6124
|
+
for (f = B; f && !S[--f]; S[f] = D) ;
|
|
6125
|
+
--S[f], S[B] += rn;
|
|
6126
6126
|
}
|
|
6127
6127
|
S[B] -= H[B];
|
|
6128
6128
|
}
|
|
6129
6129
|
for (; S[0] == 0; S.splice(0, 1), --y) ;
|
|
6130
6130
|
return S[0] ? F(p, S, y) : (p.s = r == 3 ? -1 : 1, p.c = [p.e = 0], p);
|
|
6131
6131
|
}, t.modulo = t.mod = function(p, D) {
|
|
6132
|
-
var
|
|
6133
|
-
return p = new A(p, D), !w.c || !p.s || p.c && !p.c[0] ? new A(NaN) : !p.c || w.c && !w.c[0] ? new A(w) : (g == 9 ? (B = p.s, p.s = 1,
|
|
6132
|
+
var f, B, w = this;
|
|
6133
|
+
return p = new A(p, D), !w.c || !p.s || p.c && !p.c[0] ? new A(NaN) : !p.c || w.c && !w.c[0] ? new A(w) : (g == 9 ? (B = p.s, p.s = 1, f = n(w, p, 0, 3), p.s = B, f.s *= B) : f = n(w, p, 0, g), p = w.minus(f.times(p)), !p.c[0] && g == 1 && (p.s = w.s), p);
|
|
6134
6134
|
}, t.multipliedBy = t.times = function(p, D) {
|
|
6135
|
-
var
|
|
6135
|
+
var f, B, w, M, z, k, P, y, S, H, U, K, Z, te, re, G = this, _ = G.c, Ce = (p = new A(p, D)).c;
|
|
6136
6136
|
if (!_ || !Ce || !_[0] || !Ce[0])
|
|
6137
6137
|
return !G.s || !p.s || _ && !_[0] && !Ce || Ce && !Ce[0] && !_ ? p.c = p.e = p.s = null : (p.s *= G.s, !_ || !Ce ? p.c = p.e = null : (p.c = [0], p.e = 0)), p;
|
|
6138
6138
|
for (B = _e(G.e / ee) + _e(p.e / ee), p.s *= G.s, P = _.length, H = Ce.length, P < H && (Z = _, _ = Ce, Ce = Z, w = P, P = H, H = w), w = P + H, Z = []; w--; Z.push(0)) ;
|
|
6139
6139
|
for (te = rn, re = Sn, w = H; --w >= 0; ) {
|
|
6140
|
-
for (
|
|
6141
|
-
y = _[--z] % re, S = _[z] / re | 0, k = K * y + S * U, y = U * y + k % re * re + Z[M] +
|
|
6142
|
-
Z[M] =
|
|
6140
|
+
for (f = 0, U = Ce[w] % re, K = Ce[w] / re | 0, z = P, M = w + z; M > w; )
|
|
6141
|
+
y = _[--z] % re, S = _[z] / re | 0, k = K * y + S * U, y = U * y + k % re * re + Z[M] + f, f = (y / te | 0) + (k / re | 0) + K * S, Z[M--] = y % te;
|
|
6142
|
+
Z[M] = f;
|
|
6143
6143
|
}
|
|
6144
|
-
return
|
|
6144
|
+
return f ? ++B : Z.splice(0, 1), F(p, Z, B);
|
|
6145
6145
|
}, t.negated = function() {
|
|
6146
6146
|
var p = new A(this);
|
|
6147
6147
|
return p.s = -p.s || null, p;
|
|
6148
6148
|
}, t.plus = function(p, D) {
|
|
6149
|
-
var
|
|
6149
|
+
var f, B = this, w = B.s;
|
|
6150
6150
|
if (p = new A(p, D), D = p.s, !w || !D) return new A(NaN);
|
|
6151
6151
|
if (w != D)
|
|
6152
6152
|
return p.s = -D, B.minus(p);
|
|
@@ -6156,82 +6156,82 @@ function em(e) {
|
|
|
6156
6156
|
if (!k[0] || !P[0]) return P[0] ? p : new A(k[0] ? B : w * 0);
|
|
6157
6157
|
}
|
|
6158
6158
|
if (M = _e(M), z = _e(z), k = k.slice(), w = M - z) {
|
|
6159
|
-
for (w > 0 ? (z = M,
|
|
6160
|
-
|
|
6159
|
+
for (w > 0 ? (z = M, f = P) : (w = -w, f = k), f.reverse(); w--; f.push(0)) ;
|
|
6160
|
+
f.reverse();
|
|
6161
6161
|
}
|
|
6162
|
-
for (w = k.length, D = P.length, w - D < 0 && (
|
|
6162
|
+
for (w = k.length, D = P.length, w - D < 0 && (f = P, P = k, k = f, D = w), w = 0; D; )
|
|
6163
6163
|
w = (k[--D] = k[D] + P[D] + w) / rn | 0, k[D] = rn === k[D] ? 0 : k[D] % rn;
|
|
6164
6164
|
return w && (k = [w].concat(k), ++z), F(p, k, z);
|
|
6165
6165
|
}, t.precision = t.sd = function(p, D) {
|
|
6166
|
-
var
|
|
6166
|
+
var f, B, w, M = this;
|
|
6167
6167
|
if (p != null && p !== !!p)
|
|
6168
6168
|
return Be(p, 1, Ie), D == null ? D = r : Be(D, 0, 8), I(new A(M), p, D);
|
|
6169
|
-
if (!(
|
|
6170
|
-
if (w =
|
|
6169
|
+
if (!(f = M.c)) return null;
|
|
6170
|
+
if (w = f.length - 1, B = w * ee + 1, w = f[w]) {
|
|
6171
6171
|
for (; w % 10 == 0; w /= 10, B--) ;
|
|
6172
|
-
for (w =
|
|
6172
|
+
for (w = f[0]; w >= 10; w /= 10, B++) ;
|
|
6173
6173
|
}
|
|
6174
6174
|
return p && M.e + 1 > B && (B = M.e + 1), B;
|
|
6175
6175
|
}, t.shiftedBy = function(p) {
|
|
6176
6176
|
return Be(p, -Ht, Ht), this.times("1e" + p);
|
|
6177
6177
|
}, t.squareRoot = t.sqrt = function() {
|
|
6178
|
-
var p, D,
|
|
6178
|
+
var p, D, f, B, w, M = this, z = M.c, k = M.s, P = M.e, y = a + 4, S = new A("0.5");
|
|
6179
6179
|
if (k !== 1 || !z || !z[0])
|
|
6180
6180
|
return new A(!k || k < 0 && (!z || z[0]) ? NaN : z ? M : 1 / 0);
|
|
6181
|
-
if (k = Math.sqrt(+T(M)), k == 0 || k == 1 / 0 ? (D = Je(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),
|
|
6182
|
-
for (P =
|
|
6183
|
-
if (w =
|
|
6184
|
-
if (
|
|
6181
|
+
if (k = Math.sqrt(+T(M)), k == 0 || k == 1 / 0 ? (D = Je(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), f = new A(D)) : f = new A(k + ""), f.c[0]) {
|
|
6182
|
+
for (P = f.e, k = P + y, k < 3 && (k = 0); ; )
|
|
6183
|
+
if (w = f, f = S.times(w.plus(n(M, w, y, 1))), Je(w.c).slice(0, k) === (D = Je(f.c)).slice(0, k))
|
|
6184
|
+
if (f.e < P && --k, D = D.slice(k - 3, k + 1), D == "9999" || !B && D == "4999") {
|
|
6185
6185
|
if (!B && (I(w, w.e + a + 2, 0), w.times(w).eq(M))) {
|
|
6186
|
-
|
|
6186
|
+
f = w;
|
|
6187
6187
|
break;
|
|
6188
6188
|
}
|
|
6189
6189
|
y += 4, k += 4, B = 1;
|
|
6190
6190
|
} else {
|
|
6191
|
-
(!+D || !+D.slice(1) && D.charAt(0) == "5") && (I(
|
|
6191
|
+
(!+D || !+D.slice(1) && D.charAt(0) == "5") && (I(f, f.e + a + 2, 1), p = !f.times(f).eq(M));
|
|
6192
6192
|
break;
|
|
6193
6193
|
}
|
|
6194
6194
|
}
|
|
6195
|
-
return I(
|
|
6195
|
+
return I(f, f.e + a + 1, r, p);
|
|
6196
6196
|
}, t.toExponential = function(p, D) {
|
|
6197
6197
|
return p != null && (Be(p, 0, Ie), p++), E(this, p, D, 1);
|
|
6198
6198
|
}, t.toFixed = function(p, D) {
|
|
6199
6199
|
return p != null && (Be(p, 0, Ie), p = p + this.e + 1), E(this, p, D);
|
|
6200
|
-
}, t.toFormat = function(p, D,
|
|
6200
|
+
}, t.toFormat = function(p, D, f) {
|
|
6201
6201
|
var B, w = this;
|
|
6202
|
-
if (
|
|
6203
|
-
p != null && D && typeof D == "object" ? (
|
|
6204
|
-
else if (typeof
|
|
6205
|
-
throw Error(Ge + "Argument not an object: " +
|
|
6202
|
+
if (f == null)
|
|
6203
|
+
p != null && D && typeof D == "object" ? (f = D, D = null) : p && typeof p == "object" ? (f = p, p = D = null) : f = x;
|
|
6204
|
+
else if (typeof f != "object")
|
|
6205
|
+
throw Error(Ge + "Argument not an object: " + f);
|
|
6206
6206
|
if (B = w.toFixed(p, D), w.c) {
|
|
6207
|
-
var M, z = B.split("."), k = +
|
|
6207
|
+
var M, z = B.split("."), k = +f.groupSize, P = +f.secondaryGroupSize, y = f.groupSeparator || "", S = z[0], H = z[1], U = w.s < 0, K = U ? S.slice(1) : S, Z = K.length;
|
|
6208
6208
|
if (P && (M = k, k = P, P = M, Z -= M), k > 0 && Z > 0) {
|
|
6209
6209
|
for (M = Z % k || k, S = K.substr(0, M); M < Z; M += k) S += y + K.substr(M, k);
|
|
6210
6210
|
P > 0 && (S += y + K.slice(M)), U && (S = "-" + S);
|
|
6211
6211
|
}
|
|
6212
|
-
B = H ? S + (
|
|
6212
|
+
B = H ? S + (f.decimalSeparator || "") + ((P = +f.fractionGroupSize) ? H.replace(
|
|
6213
6213
|
new RegExp("\\d{" + P + "}\\B", "g"),
|
|
6214
|
-
"$&" + (
|
|
6214
|
+
"$&" + (f.fractionGroupSeparator || "")
|
|
6215
6215
|
) : H) : S;
|
|
6216
6216
|
}
|
|
6217
|
-
return (
|
|
6217
|
+
return (f.prefix || "") + B + (f.suffix || "");
|
|
6218
6218
|
}, t.toFraction = function(p) {
|
|
6219
|
-
var D,
|
|
6219
|
+
var D, f, B, w, M, z, k, P, y, S, H, U, K = this, Z = K.c;
|
|
6220
6220
|
if (p != null && (k = new A(p), !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
6222
|
if (!Z) return new A(K);
|
|
6223
|
-
for (D = new A(c), y =
|
|
6224
|
-
|
|
6225
|
-
return w = n(p.minus(
|
|
6226
|
-
n(P,
|
|
6227
|
-
) < 1 ? [y, B] : [P,
|
|
6223
|
+
for (D = new A(c), y = f = new A(c), B = P = new A(c), U = Je(Z), M = D.e = U.length - K.e - 1, D.c[0] = Tt[(z = M % ee) < 0 ? ee + z : z], p = !p || k.comparedTo(D) > 0 ? M > 0 ? D : y : k, z = d, d = 1 / 0, k = new A(U), P.c[0] = 0; S = n(k, D, 0, 1), w = f.plus(S.times(B)), w.comparedTo(p) != 1; )
|
|
6224
|
+
f = B, B = w, y = P.plus(S.times(w = y)), P = w, D = k.minus(S.times(w = D)), k = w;
|
|
6225
|
+
return w = n(p.minus(f), B, 0, 1), P = P.plus(w.times(y)), f = f.plus(w.times(B)), P.s = y.s = K.s, M = M * 2, H = n(y, B, M, r).minus(K).abs().comparedTo(
|
|
6226
|
+
n(P, f, M, r).minus(K).abs()
|
|
6227
|
+
) < 1 ? [y, B] : [P, f], d = z, H;
|
|
6228
6228
|
}, t.toNumber = function() {
|
|
6229
6229
|
return +T(this);
|
|
6230
6230
|
}, t.toPrecision = function(p, D) {
|
|
6231
6231
|
return p != null && Be(p, 1, Ie), E(this, p, D, 2);
|
|
6232
6232
|
}, t.toString = function(p) {
|
|
6233
|
-
var D,
|
|
6234
|
-
return w === null ? B ? (D = "Infinity", B < 0 && (D = "-" + D)) : D = "NaN" : (p == null ? D = w <= l || w >= s ? vo(Je(
|
|
6233
|
+
var D, f = this, B = f.s, w = f.e;
|
|
6234
|
+
return w === null ? B ? (D = "Infinity", B < 0 && (D = "-" + D)) : D = "NaN" : (p == null ? D = w <= l || w >= s ? vo(Je(f.c), w) : Cn(Je(f.c), w, "0") : p === 10 && v ? (f = I(new A(f), a + w + 1, r), D = Cn(Je(f.c), f.e, "0")) : (Be(p, 2, C.length, "Base"), D = i(Cn(Je(f.c), w, "0"), 10, p, B, !0)), B < 0 && f.c[0] && (D = "-" + D)), D;
|
|
6235
6235
|
}, t.valueOf = t.toJSON = function() {
|
|
6236
6236
|
return T(this);
|
|
6237
6237
|
}, t._isBigNumber = !0, t[Symbol.toStringTag] = "BigNumber", t[Symbol.for("nodejs.util.inspect.custom")] = t.valueOf, e != null && A.set(e), A;
|
|
@@ -6290,14 +6290,14 @@ const In = (e, n = to) => new Ee(e).shiftedBy(n).toFixed(0), nn = (e, n = to) =>
|
|
|
6290
6290
|
tokenAmount: i,
|
|
6291
6291
|
chainId: o
|
|
6292
6292
|
}) => {
|
|
6293
|
-
const [{ data: t }] = me(
|
|
6293
|
+
const [{ data: t }] = me(fn), [{ data: c }] = me(Fe), a = W(() => {
|
|
6294
6294
|
if (!(!e || !o) && t)
|
|
6295
6295
|
return t.find(
|
|
6296
|
-
(
|
|
6296
|
+
(b) => b.denom.toLowerCase() === e.toLowerCase() && b.chainID.toLowerCase() === o.toLowerCase()
|
|
6297
6297
|
);
|
|
6298
6298
|
}, [t, e, o]);
|
|
6299
6299
|
!n && i ? n = nn(i, a == null ? void 0 : a.decimals) : !i && n && (i = In(n, a == null ? void 0 : a.decimals));
|
|
6300
|
-
const r = a == null ? void 0 : a.logoURI, l = (a == null ? void 0 : a.recommendedSymbol) ?? (a == null ? void 0 : a.symbol), s = c == null ? void 0 : c.find((
|
|
6300
|
+
const r = a == null ? void 0 : a.logoURI, l = (a == null ? void 0 : a.recommendedSymbol) ?? (a == null ? void 0 : a.symbol), s = c == null ? void 0 : c.find((b) => o ? b.chainID === o : b.chainID === (a == null ? void 0 : a.chainID)), u = s != null && s.prettyName && (s == null ? void 0 : s.prettyName.length) !== 0 ? s.prettyName : void 0, d = s != null && s.chainName && (s == null ? void 0 : s.chainName.length) !== 0 ? s.chainName : void 0, h = s == null ? void 0 : s.logoURI, g = a == null ? void 0 : a.decimals;
|
|
6301
6301
|
return o ? {
|
|
6302
6302
|
asset: a,
|
|
6303
6303
|
chain: s,
|
|
@@ -6452,12 +6452,12 @@ const ci = N(X).attrs({
|
|
|
6452
6452
|
assetDenom: l,
|
|
6453
6453
|
chainId: s,
|
|
6454
6454
|
tokenAmount: t
|
|
6455
|
-
}),
|
|
6455
|
+
}), b = Oe({
|
|
6456
6456
|
assetDenom: u,
|
|
6457
6457
|
chainId: d,
|
|
6458
6458
|
tokenAmount: c
|
|
6459
6459
|
});
|
|
6460
|
-
return /* @__PURE__ */ j(
|
|
6460
|
+
return /* @__PURE__ */ j(be, { children: [
|
|
6461
6461
|
/* @__PURE__ */ m(
|
|
6462
6462
|
Xe,
|
|
6463
6463
|
{
|
|
@@ -6474,7 +6474,7 @@ const ci = N(X).attrs({
|
|
|
6474
6474
|
gn,
|
|
6475
6475
|
{
|
|
6476
6476
|
title: `Warning: Bad trade (-${h})`,
|
|
6477
|
-
description: /* @__PURE__ */ j(
|
|
6477
|
+
description: /* @__PURE__ */ j(be, { children: [
|
|
6478
6478
|
/* @__PURE__ */ j(X, { color: o.error.text, textAlign: "center", textWrap: "balance", children: [
|
|
6479
6479
|
"You will lose ",
|
|
6480
6480
|
h,
|
|
@@ -6489,9 +6489,9 @@ const ci = N(X).attrs({
|
|
|
6489
6489
|
")",
|
|
6490
6490
|
/* @__PURE__ */ m("br", {}),
|
|
6491
6491
|
"Estimated output: ",
|
|
6492
|
-
|
|
6492
|
+
b == null ? void 0 : b.amount,
|
|
6493
6493
|
" ",
|
|
6494
|
-
|
|
6494
|
+
b == null ? void 0 : b.symbol,
|
|
6495
6495
|
" (",
|
|
6496
6496
|
r,
|
|
6497
6497
|
")"
|
|
@@ -6528,7 +6528,7 @@ const ci = N(X).attrs({
|
|
|
6528
6528
|
const n = Y(je), i = de(), o = () => {
|
|
6529
6529
|
V("error page: user rejected request - back button clicked"), n(void 0), e == null || e();
|
|
6530
6530
|
};
|
|
6531
|
-
return /* @__PURE__ */ j(
|
|
6531
|
+
return /* @__PURE__ */ j(be, { children: [
|
|
6532
6532
|
/* @__PURE__ */ m(
|
|
6533
6533
|
Xe,
|
|
6534
6534
|
{
|
|
@@ -6685,7 +6685,7 @@ const xD = DD();
|
|
|
6685
6685
|
const n = 3600 * 1e3, i = e.now(), o = Date.now(), t = e.timeOrigin ? Math.abs(e.timeOrigin + i - o) : n, c = t < n, a = e.timing && e.timing.navigationStart, l = typeof a == "number" ? Math.abs(a + i - o) : n, s = l < n;
|
|
6686
6686
|
return c || s ? t <= l ? e.timeOrigin : a : o;
|
|
6687
6687
|
})();
|
|
6688
|
-
function
|
|
6688
|
+
function bi() {
|
|
6689
6689
|
const e = En, n = e.crypto || e.msCrypto;
|
|
6690
6690
|
let i = () => Math.random() * 16;
|
|
6691
6691
|
try {
|
|
@@ -6706,7 +6706,7 @@ function fi() {
|
|
|
6706
6706
|
);
|
|
6707
6707
|
}
|
|
6708
6708
|
function gD(e, n = {}) {
|
|
6709
|
-
if (n.user && (!e.ipAddress && n.user.ip_address && (e.ipAddress = n.user.ip_address), !e.did && !n.did && (e.did = n.user.id || n.user.email || n.user.username)), e.timestamp = n.timestamp || xD(), n.abnormal_mechanism && (e.abnormal_mechanism = n.abnormal_mechanism), n.ignoreDuration && (e.ignoreDuration = n.ignoreDuration), n.sid && (e.sid = n.sid.length === 32 ? n.sid :
|
|
6709
|
+
if (n.user && (!e.ipAddress && n.user.ip_address && (e.ipAddress = n.user.ip_address), !e.did && !n.did && (e.did = n.user.id || n.user.email || n.user.username)), e.timestamp = n.timestamp || xD(), n.abnormal_mechanism && (e.abnormal_mechanism = n.abnormal_mechanism), n.ignoreDuration && (e.ignoreDuration = n.ignoreDuration), n.sid && (e.sid = n.sid.length === 32 ? n.sid : bi()), n.init !== void 0 && (e.init = n.init), !e.did && n.did && (e.did = `${n.did}`), typeof n.started == "number" && (e.started = n.started), e.ignoreDuration)
|
|
6710
6710
|
e.duration = void 0;
|
|
6711
6711
|
else if (typeof n.duration == "number")
|
|
6712
6712
|
e.duration = n.duration;
|
|
@@ -6717,10 +6717,10 @@ function gD(e, n = {}) {
|
|
|
6717
6717
|
n.release && (e.release = n.release), n.environment && (e.environment = n.environment), !e.ipAddress && n.ipAddress && (e.ipAddress = n.ipAddress), !e.userAgent && n.userAgent && (e.userAgent = n.userAgent), typeof n.errors == "number" && (e.errors = n.errors), n.status && (e.status = n.status);
|
|
6718
6718
|
}
|
|
6719
6719
|
function Vr() {
|
|
6720
|
-
return
|
|
6720
|
+
return bi();
|
|
6721
6721
|
}
|
|
6722
6722
|
function Lr() {
|
|
6723
|
-
return
|
|
6723
|
+
return bi().substring(16);
|
|
6724
6724
|
}
|
|
6725
6725
|
function rm(e, n, i = 2) {
|
|
6726
6726
|
if (!n || typeof n != "object" || i <= 0)
|
|
@@ -6739,7 +6739,7 @@ function Rr(e, n) {
|
|
|
6739
6739
|
function Or(e) {
|
|
6740
6740
|
return e[kc];
|
|
6741
6741
|
}
|
|
6742
|
-
const
|
|
6742
|
+
const bD = 100;
|
|
6743
6743
|
class ta {
|
|
6744
6744
|
/** Flag if notifying is happening. */
|
|
6745
6745
|
/** Callback for client to receive scope changes. */
|
|
@@ -6939,7 +6939,7 @@ class ta {
|
|
|
6939
6939
|
* @inheritDoc
|
|
6940
6940
|
*/
|
|
6941
6941
|
addBreadcrumb(n, i) {
|
|
6942
|
-
const o = typeof i == "number" ? i :
|
|
6942
|
+
const o = typeof i == "number" ? i : bD;
|
|
6943
6943
|
if (o <= 0)
|
|
6944
6944
|
return this;
|
|
6945
6945
|
const t = {
|
|
@@ -7016,7 +7016,7 @@ class ta {
|
|
|
7016
7016
|
* @inheritDoc
|
|
7017
7017
|
*/
|
|
7018
7018
|
captureException(n, i) {
|
|
7019
|
-
const o = i && i.event_id ? i.event_id :
|
|
7019
|
+
const o = i && i.event_id ? i.event_id : bi();
|
|
7020
7020
|
if (!this._client)
|
|
7021
7021
|
return Io.warn("No client configured on scope - will not capture exception!"), o;
|
|
7022
7022
|
const t = new Error("Sentry syntheticException");
|
|
@@ -7035,7 +7035,7 @@ class ta {
|
|
|
7035
7035
|
* @inheritDoc
|
|
7036
7036
|
*/
|
|
7037
7037
|
captureMessage(n, i, o) {
|
|
7038
|
-
const t = o && o.event_id ? o.event_id :
|
|
7038
|
+
const t = o && o.event_id ? o.event_id : bi();
|
|
7039
7039
|
if (!this._client)
|
|
7040
7040
|
return Io.warn("No client configured on scope - will not capture message!"), t;
|
|
7041
7041
|
const c = new Error(n);
|
|
@@ -7055,7 +7055,7 @@ class ta {
|
|
|
7055
7055
|
* @inheritDoc
|
|
7056
7056
|
*/
|
|
7057
7057
|
captureEvent(n, i) {
|
|
7058
|
-
const o = i && i.event_id ? i.event_id :
|
|
7058
|
+
const o = i && i.event_id ? i.event_id : bi();
|
|
7059
7059
|
return this._client ? (this._client.captureEvent(n, { ...i, event_id: o }, this), o) : (Io.warn("No client configured on scope - will not capture event!"), o);
|
|
7060
7060
|
}
|
|
7061
7061
|
/**
|
|
@@ -7068,7 +7068,7 @@ class ta {
|
|
|
7068
7068
|
}
|
|
7069
7069
|
}
|
|
7070
7070
|
const ao = ta;
|
|
7071
|
-
function
|
|
7071
|
+
function fD() {
|
|
7072
7072
|
return ia("defaultCurrentScope", () => new ao());
|
|
7073
7073
|
}
|
|
7074
7074
|
function AD() {
|
|
@@ -7142,7 +7142,7 @@ class CD {
|
|
|
7142
7142
|
}
|
|
7143
7143
|
function Mi() {
|
|
7144
7144
|
const e = tm(), n = oa(e);
|
|
7145
|
-
return n.stack = n.stack || new CD(
|
|
7145
|
+
return n.stack = n.stack || new CD(fD(), AD());
|
|
7146
7146
|
}
|
|
7147
7147
|
function kD(e) {
|
|
7148
7148
|
return Mi().withScope(e);
|
|
@@ -7185,7 +7185,7 @@ const FD = ({
|
|
|
7185
7185
|
Ho("TransactionFailed");
|
|
7186
7186
|
}, []);
|
|
7187
7187
|
const t = de(), c = Y(je), a = Y(tn);
|
|
7188
|
-
return /* @__PURE__ */ j(
|
|
7188
|
+
return /* @__PURE__ */ j(be, { children: [
|
|
7189
7189
|
/* @__PURE__ */ m(
|
|
7190
7190
|
Xe,
|
|
7191
7191
|
{
|
|
@@ -7202,7 +7202,7 @@ const FD = ({
|
|
|
7202
7202
|
gn,
|
|
7203
7203
|
{
|
|
7204
7204
|
title: "Transaction failed",
|
|
7205
|
-
description: /* @__PURE__ */ j(
|
|
7205
|
+
description: /* @__PURE__ */ j(be, { children: [
|
|
7206
7206
|
/* @__PURE__ */ m(X, { color: t.error.text, textAlign: "center", textWrap: "balance", children: "Please contact our support team below." }),
|
|
7207
7207
|
/* @__PURE__ */ j(
|
|
7208
7208
|
O,
|
|
@@ -7246,7 +7246,7 @@ const FD = ({
|
|
|
7246
7246
|
const c = () => {
|
|
7247
7247
|
o(void 0), t(ze.SwapPage);
|
|
7248
7248
|
};
|
|
7249
|
-
return /* @__PURE__ */ j(
|
|
7249
|
+
return /* @__PURE__ */ j(be, { children: [
|
|
7250
7250
|
/* @__PURE__ */ m(
|
|
7251
7251
|
Xe,
|
|
7252
7252
|
{
|
|
@@ -7439,7 +7439,7 @@ const ca = ({
|
|
|
7439
7439
|
txsRequired: n,
|
|
7440
7440
|
enabled: i
|
|
7441
7441
|
}) => {
|
|
7442
|
-
const o = L(
|
|
7442
|
+
const o = L(bn), [t, c] = se(!1), [a, r] = se(void 0), l = W(() => ["txs-status", n, e], [e, n]);
|
|
7443
7443
|
return Jo({
|
|
7444
7444
|
queryKey: l,
|
|
7445
7445
|
queryFn: async ({ queryKey: [, s, u] }) => {
|
|
@@ -7450,14 +7450,14 @@ const ca = ({
|
|
|
7450
7450
|
chainID: q.chainID,
|
|
7451
7451
|
txHash: q.txHash
|
|
7452
7452
|
}))
|
|
7453
|
-
), h = SD(d), g = d.every((q) => q.state === "STATE_COMPLETED_SUCCESS" || q.state === "STATE_COMPLETED_ERROR" || q.state === "STATE_ABANDONED"),
|
|
7454
|
-
|
|
7453
|
+
), h = SD(d), g = d.every((q) => q.state === "STATE_COMPLETED_SUCCESS" || q.state === "STATE_COMPLETED_ERROR" || q.state === "STATE_ABANDONED"), b = s === d.length && g;
|
|
7454
|
+
b && c(!0);
|
|
7455
7455
|
const x = d.some((q) => q.state === "STATE_COMPLETED_ERROR" || q.state === "STATE_ABANDONED"), C = d.length > 0 ? qD(d[d.length - 1].state) : void 0;
|
|
7456
|
-
C === "failed" &&
|
|
7456
|
+
C === "failed" && b && ks("TransactionFailed");
|
|
7457
7457
|
const v = (E = d.reverse().find((q) => q.transferAssetRelease)) == null ? void 0 : E.transferAssetRelease, A = {
|
|
7458
|
-
isSuccess:
|
|
7458
|
+
isSuccess: b && !x && C === "success",
|
|
7459
7459
|
lastTxStatus: C,
|
|
7460
|
-
isSettled:
|
|
7460
|
+
isSettled: b,
|
|
7461
7461
|
transferEvents: h,
|
|
7462
7462
|
transferAssetRelease: v || void 0
|
|
7463
7463
|
};
|
|
@@ -7475,12 +7475,12 @@ function sm(e = 250) {
|
|
|
7475
7475
|
// Set initial value here too
|
|
7476
7476
|
(r, l, s, u, d) => {
|
|
7477
7477
|
clearTimeout(r(n));
|
|
7478
|
-
const h = r(i), g = typeof s == "function" ? s(h) : s,
|
|
7478
|
+
const h = r(i), g = typeof s == "function" ? s(h) : s, b = () => {
|
|
7479
7479
|
l(i, g), l(o, !0), l(t, !0);
|
|
7480
7480
|
}, x = () => {
|
|
7481
7481
|
l(c, g), l(o, !1), u == null || u();
|
|
7482
7482
|
};
|
|
7483
|
-
d ? x() :
|
|
7483
|
+
d ? x() : b();
|
|
7484
7484
|
const C = setTimeout(() => {
|
|
7485
7485
|
x();
|
|
7486
7486
|
}, e);
|
|
@@ -7517,7 +7517,7 @@ const Ni = Q(), {
|
|
|
7517
7517
|
requiredChainAddresses: o == null ? void 0 : o.requiredChainAddresses
|
|
7518
7518
|
}));
|
|
7519
7519
|
}), LD = Qo((e) => {
|
|
7520
|
-
const n = e(xe), i = e(
|
|
7520
|
+
const n = e(xe), i = e(bn), o = e(rt);
|
|
7521
7521
|
n != null && n.chainID && o.cosmos && i.getSigningStargateClient({
|
|
7522
7522
|
chainId: n == null ? void 0 : n.chainID
|
|
7523
7523
|
});
|
|
@@ -7633,7 +7633,7 @@ const Ni = Q(), {
|
|
|
7633
7633
|
}
|
|
7634
7634
|
};
|
|
7635
7635
|
}, GD = ri((e) => {
|
|
7636
|
-
const n = e(
|
|
7636
|
+
const n = e(bn), i = e(WD), o = e(tn), t = e(ro), c = e(je), a = e(xt), r = e(Dt), l = i !== void 0 && (Number(i.amountIn) > 0 || Number(i.amountOut) > 0) && !t && o === ze.SwapPage && c === void 0;
|
|
7637
7637
|
return {
|
|
7638
7638
|
queryKey: ["skipRoute", i, a, r],
|
|
7639
7639
|
queryFn: async () => {
|
|
@@ -7672,12 +7672,12 @@ const Ni = Q(), {
|
|
|
7672
7672
|
isLoading: t && c
|
|
7673
7673
|
};
|
|
7674
7674
|
}), gt = Q(), pm = Q(null, (e, n, i) => {
|
|
7675
|
-
const o = e(gt), { data: t } = e(
|
|
7675
|
+
const o = e(gt), { data: t } = e(fn);
|
|
7676
7676
|
i ?? (i = t);
|
|
7677
|
-
const c = (
|
|
7678
|
-
if (!(!
|
|
7677
|
+
const c = (b, x) => {
|
|
7678
|
+
if (!(!b || !x) && i)
|
|
7679
7679
|
return i.find(
|
|
7680
|
-
(C) => C.denom.toLowerCase() ===
|
|
7680
|
+
(C) => C.denom.toLowerCase() === b.toLowerCase() && C.chainID === x
|
|
7681
7681
|
);
|
|
7682
7682
|
};
|
|
7683
7683
|
if (!o || !i) return;
|
|
@@ -7708,7 +7708,7 @@ const Ni = Q(), {
|
|
|
7708
7708
|
n(Fn, t);
|
|
7709
7709
|
});
|
|
7710
7710
|
ri((e) => {
|
|
7711
|
-
const n = e(
|
|
7711
|
+
const n = e(bn), i = e(Fn), o = i.find(
|
|
7712
7712
|
(t) => t.status !== "completed" && t.status !== "failed"
|
|
7713
7713
|
);
|
|
7714
7714
|
return {
|
|
@@ -8172,6 +8172,47 @@ const YD = [
|
|
|
8172
8172
|
coinType: 118
|
|
8173
8173
|
}
|
|
8174
8174
|
},
|
|
8175
|
+
{
|
|
8176
|
+
chainId: "arkeo-main-v1",
|
|
8177
|
+
currencies: [
|
|
8178
|
+
{
|
|
8179
|
+
coinDenom: "arkeo",
|
|
8180
|
+
coinMinimalDenom: "uarkeo",
|
|
8181
|
+
coinDecimals: 8
|
|
8182
|
+
}
|
|
8183
|
+
],
|
|
8184
|
+
rest: "https://rest-seed.arkeo.network",
|
|
8185
|
+
rpc: "https://rpc-seed.arkeo.network",
|
|
8186
|
+
bech32Config: {
|
|
8187
|
+
bech32PrefixAccAddr: "arkeo",
|
|
8188
|
+
bech32PrefixAccPub: "arkeopub",
|
|
8189
|
+
bech32PrefixValAddr: "arkeovaloper",
|
|
8190
|
+
bech32PrefixValPub: "arkeovaloperpub",
|
|
8191
|
+
bech32PrefixConsAddr: "arkeovalcons",
|
|
8192
|
+
bech32PrefixConsPub: "arkeovalconspub"
|
|
8193
|
+
},
|
|
8194
|
+
chainName: "arkeo",
|
|
8195
|
+
feeCurrencies: [
|
|
8196
|
+
{
|
|
8197
|
+
coinDenom: "arkeo",
|
|
8198
|
+
coinMinimalDenom: "uarkeo",
|
|
8199
|
+
coinDecimals: 8,
|
|
8200
|
+
gasPriceStep: {
|
|
8201
|
+
low: 0.01,
|
|
8202
|
+
average: 0.025,
|
|
8203
|
+
high: 0.04
|
|
8204
|
+
}
|
|
8205
|
+
}
|
|
8206
|
+
],
|
|
8207
|
+
stakeCurrency: {
|
|
8208
|
+
coinDenom: "arkeo",
|
|
8209
|
+
coinMinimalDenom: "uarkeo",
|
|
8210
|
+
coinDecimals: 8
|
|
8211
|
+
},
|
|
8212
|
+
bip44: {
|
|
8213
|
+
coinType: 118
|
|
8214
|
+
}
|
|
8215
|
+
},
|
|
8175
8216
|
{
|
|
8176
8217
|
chainId: "arkh",
|
|
8177
8218
|
currencies: [
|
|
@@ -8607,6 +8648,47 @@ const YD = [
|
|
|
8607
8648
|
coinType: 118
|
|
8608
8649
|
}
|
|
8609
8650
|
},
|
|
8651
|
+
{
|
|
8652
|
+
chainId: "bbn-1",
|
|
8653
|
+
currencies: [
|
|
8654
|
+
{
|
|
8655
|
+
coinDenom: "BABY",
|
|
8656
|
+
coinMinimalDenom: "ubbn",
|
|
8657
|
+
coinDecimals: 6
|
|
8658
|
+
}
|
|
8659
|
+
],
|
|
8660
|
+
rest: "https://babylon.nodes.guru/api",
|
|
8661
|
+
rpc: "https://babylon.nodes.guru/rpc",
|
|
8662
|
+
bech32Config: {
|
|
8663
|
+
bech32PrefixAccAddr: "bbn",
|
|
8664
|
+
bech32PrefixAccPub: "bbnpub",
|
|
8665
|
+
bech32PrefixValAddr: "bbnvaloper",
|
|
8666
|
+
bech32PrefixValPub: "bbnvaloperpub",
|
|
8667
|
+
bech32PrefixConsAddr: "bbnvalcons",
|
|
8668
|
+
bech32PrefixConsPub: "bbnvalconspub"
|
|
8669
|
+
},
|
|
8670
|
+
chainName: "babylon",
|
|
8671
|
+
feeCurrencies: [
|
|
8672
|
+
{
|
|
8673
|
+
coinDenom: "BABY",
|
|
8674
|
+
coinMinimalDenom: "ubbn",
|
|
8675
|
+
coinDecimals: 6,
|
|
8676
|
+
gasPriceStep: {
|
|
8677
|
+
low: 7e-3,
|
|
8678
|
+
average: 7e-3,
|
|
8679
|
+
high: 0.01
|
|
8680
|
+
}
|
|
8681
|
+
}
|
|
8682
|
+
],
|
|
8683
|
+
stakeCurrency: {
|
|
8684
|
+
coinDenom: "BABY",
|
|
8685
|
+
coinMinimalDenom: "ubbn",
|
|
8686
|
+
coinDecimals: 6
|
|
8687
|
+
},
|
|
8688
|
+
bip44: {
|
|
8689
|
+
coinType: 118
|
|
8690
|
+
}
|
|
8691
|
+
},
|
|
8610
8692
|
{
|
|
8611
8693
|
chainId: "laozi-mainnet",
|
|
8612
8694
|
currencies: [
|
|
@@ -18998,11 +19080,6 @@ const YD = [
|
|
|
18998
19080
|
coinDenom: "allMOVE",
|
|
18999
19081
|
coinMinimalDenom: "factory/osmo1v90ezcqkv5utjc52vg4w2gztmcpt7l4vqxzuryj6zl3qr8wy539quxeafk/alloyed/allMOVE",
|
|
19000
19082
|
coinDecimals: 8
|
|
19001
|
-
},
|
|
19002
|
-
{
|
|
19003
|
-
coinDenom: "allDGN",
|
|
19004
|
-
coinMinimalDenom: "factory/osmo10ca28knpu7yuf6mkcvvdf8w7g3ydamrcmfraxyejc6exv2ff748s4hzk4n/alloyed/allDGN",
|
|
19005
|
-
coinDecimals: 6
|
|
19006
19083
|
}
|
|
19007
19084
|
],
|
|
19008
19085
|
rest: "https://lcd.osmosis.zone/",
|
|
@@ -20116,6 +20193,47 @@ const YD = [
|
|
|
20116
20193
|
coinType: 60
|
|
20117
20194
|
}
|
|
20118
20195
|
},
|
|
20196
|
+
{
|
|
20197
|
+
chainId: "pocket",
|
|
20198
|
+
currencies: [
|
|
20199
|
+
{
|
|
20200
|
+
coinDenom: "pokt",
|
|
20201
|
+
coinMinimalDenom: "upokt",
|
|
20202
|
+
coinDecimals: 6
|
|
20203
|
+
}
|
|
20204
|
+
],
|
|
20205
|
+
rest: "https://shannon-grove-rest.mainnet.poktroll.com",
|
|
20206
|
+
rpc: "https://shannon-grove-rpc.mainnet.poktroll.com",
|
|
20207
|
+
bech32Config: {
|
|
20208
|
+
bech32PrefixAccAddr: "pokt",
|
|
20209
|
+
bech32PrefixAccPub: "poktpub",
|
|
20210
|
+
bech32PrefixValAddr: "poktvaloper",
|
|
20211
|
+
bech32PrefixValPub: "poktvaloperpub",
|
|
20212
|
+
bech32PrefixConsAddr: "poktvalcons",
|
|
20213
|
+
bech32PrefixConsPub: "poktvalconspub"
|
|
20214
|
+
},
|
|
20215
|
+
chainName: "pocket",
|
|
20216
|
+
feeCurrencies: [
|
|
20217
|
+
{
|
|
20218
|
+
coinDenom: "pokt",
|
|
20219
|
+
coinMinimalDenom: "upokt",
|
|
20220
|
+
coinDecimals: 6,
|
|
20221
|
+
gasPriceStep: {
|
|
20222
|
+
low: 1e-3,
|
|
20223
|
+
average: 2e-3,
|
|
20224
|
+
high: 25e-4
|
|
20225
|
+
}
|
|
20226
|
+
}
|
|
20227
|
+
],
|
|
20228
|
+
stakeCurrency: {
|
|
20229
|
+
coinDenom: "pokt",
|
|
20230
|
+
coinMinimalDenom: "upokt",
|
|
20231
|
+
coinDecimals: 6
|
|
20232
|
+
},
|
|
20233
|
+
bip44: {
|
|
20234
|
+
coinType: 118
|
|
20235
|
+
}
|
|
20236
|
+
},
|
|
20119
20237
|
{
|
|
20120
20238
|
chainId: "point_10687-1",
|
|
20121
20239
|
currencies: [
|
|
@@ -25414,6 +25532,57 @@ const YD = [
|
|
|
25414
25532
|
coinType: 60
|
|
25415
25533
|
}
|
|
25416
25534
|
},
|
|
25535
|
+
{
|
|
25536
|
+
chainId: "echelon-1",
|
|
25537
|
+
currencies: [
|
|
25538
|
+
{
|
|
25539
|
+
coinDenom: "INIT",
|
|
25540
|
+
coinMinimalDenom: "l2/23c8396041db74441f4268d0c7e0533177dc3e028a47a8e584318f2d0c46fbe9",
|
|
25541
|
+
coinDecimals: 6
|
|
25542
|
+
},
|
|
25543
|
+
{
|
|
25544
|
+
coinDenom: "USDC",
|
|
25545
|
+
coinMinimalDenom: "l2/de17c24216dbf72c28330b352762a7b13e86b0cbc65c005ead58f15ba85d7258",
|
|
25546
|
+
coinDecimals: 6
|
|
25547
|
+
},
|
|
25548
|
+
{
|
|
25549
|
+
coinDenom: "milkTIA",
|
|
25550
|
+
coinMinimalDenom: "l2/f74e7d10d0b1142ff883a60aa629b74bceb434e2ccccc0051bdbaa05e2e255ef",
|
|
25551
|
+
coinDecimals: 6
|
|
25552
|
+
},
|
|
25553
|
+
{
|
|
25554
|
+
coinDenom: "TIA",
|
|
25555
|
+
coinMinimalDenom: "l2/4407c4c43437bacb779fa1aa9cb38b76dd8dce8bf28fb68dbf2242cc92b71ba6",
|
|
25556
|
+
coinDecimals: 6
|
|
25557
|
+
}
|
|
25558
|
+
],
|
|
25559
|
+
rest: "https://rest-echelon-1.anvil.asia-southeast.initia.xyz",
|
|
25560
|
+
rpc: "https://rpc-echelon-1.anvil.asia-southeast.initia.xyz",
|
|
25561
|
+
bech32Config: {
|
|
25562
|
+
bech32PrefixAccAddr: "init",
|
|
25563
|
+
bech32PrefixAccPub: "initpub",
|
|
25564
|
+
bech32PrefixValAddr: "initvaloper",
|
|
25565
|
+
bech32PrefixValPub: "initvaloperpub",
|
|
25566
|
+
bech32PrefixConsAddr: "initvalcons",
|
|
25567
|
+
bech32PrefixConsPub: "initvalconspub"
|
|
25568
|
+
},
|
|
25569
|
+
chainName: "echelon",
|
|
25570
|
+
feeCurrencies: [
|
|
25571
|
+
{
|
|
25572
|
+
coinDenom: "INIT",
|
|
25573
|
+
coinMinimalDenom: "l2/23c8396041db74441f4268d0c7e0533177dc3e028a47a8e584318f2d0c46fbe9",
|
|
25574
|
+
coinDecimals: 6
|
|
25575
|
+
}
|
|
25576
|
+
],
|
|
25577
|
+
stakeCurrency: {
|
|
25578
|
+
coinDenom: "INIT",
|
|
25579
|
+
coinMinimalDenom: "l2/23c8396041db74441f4268d0c7e0533177dc3e028a47a8e584318f2d0c46fbe9",
|
|
25580
|
+
coinDecimals: 6
|
|
25581
|
+
},
|
|
25582
|
+
bip44: {
|
|
25583
|
+
coinType: 60
|
|
25584
|
+
}
|
|
25585
|
+
},
|
|
25417
25586
|
{
|
|
25418
25587
|
chainId: "interwoven-1",
|
|
25419
25588
|
currencies: [
|
|
@@ -27670,6 +27839,42 @@ const YD = [
|
|
|
27670
27839
|
coinType: 118
|
|
27671
27840
|
}
|
|
27672
27841
|
},
|
|
27842
|
+
{
|
|
27843
|
+
chainId: "intento-ics-test-1",
|
|
27844
|
+
currencies: [
|
|
27845
|
+
{
|
|
27846
|
+
coinDenom: "into",
|
|
27847
|
+
coinMinimalDenom: "uinto",
|
|
27848
|
+
coinDecimals: 6
|
|
27849
|
+
}
|
|
27850
|
+
],
|
|
27851
|
+
rest: "https://lcd.intento.zone",
|
|
27852
|
+
rpc: "https://rpc.intento.zone",
|
|
27853
|
+
bech32Config: {
|
|
27854
|
+
bech32PrefixAccAddr: "into",
|
|
27855
|
+
bech32PrefixAccPub: "intopub",
|
|
27856
|
+
bech32PrefixValAddr: "intovaloper",
|
|
27857
|
+
bech32PrefixValPub: "intovaloperpub",
|
|
27858
|
+
bech32PrefixConsAddr: "intovalcons",
|
|
27859
|
+
bech32PrefixConsPub: "intovalconspub"
|
|
27860
|
+
},
|
|
27861
|
+
chainName: "intentotestnet",
|
|
27862
|
+
feeCurrencies: [
|
|
27863
|
+
{
|
|
27864
|
+
coinDenom: "into",
|
|
27865
|
+
coinMinimalDenom: "uinto",
|
|
27866
|
+
coinDecimals: 6
|
|
27867
|
+
}
|
|
27868
|
+
],
|
|
27869
|
+
stakeCurrency: {
|
|
27870
|
+
coinDenom: "into",
|
|
27871
|
+
coinMinimalDenom: "uinto",
|
|
27872
|
+
coinDecimals: 6
|
|
27873
|
+
},
|
|
27874
|
+
bip44: {
|
|
27875
|
+
coinType: 118
|
|
27876
|
+
}
|
|
27877
|
+
},
|
|
27673
27878
|
{
|
|
27674
27879
|
chainId: "iopn_984-1",
|
|
27675
27880
|
currencies: [
|
|
@@ -29600,12 +29805,12 @@ const YD = [
|
|
|
29600
29805
|
rest: "https://shannon-testnet-grove-api.beta.poktroll.com",
|
|
29601
29806
|
rpc: "https://shannon-testnet-grove-rpc.beta.poktroll.com",
|
|
29602
29807
|
bech32Config: {
|
|
29603
|
-
bech32PrefixAccAddr: "pokt
|
|
29604
|
-
bech32PrefixAccPub: "
|
|
29605
|
-
bech32PrefixValAddr: "
|
|
29606
|
-
bech32PrefixValPub: "
|
|
29607
|
-
bech32PrefixConsAddr: "
|
|
29608
|
-
bech32PrefixConsPub: "
|
|
29808
|
+
bech32PrefixAccAddr: "pokt",
|
|
29809
|
+
bech32PrefixAccPub: "poktpub",
|
|
29810
|
+
bech32PrefixValAddr: "poktvaloper",
|
|
29811
|
+
bech32PrefixValPub: "poktvaloperpub",
|
|
29812
|
+
bech32PrefixConsAddr: "poktvalcons",
|
|
29813
|
+
bech32PrefixConsPub: "poktvalconspub"
|
|
29609
29814
|
},
|
|
29610
29815
|
chainName: "pockettestnet",
|
|
29611
29816
|
feeCurrencies: [
|
|
@@ -31319,8 +31524,13 @@ const YD = [
|
|
|
31319
31524
|
currencies: [
|
|
31320
31525
|
{
|
|
31321
31526
|
coinDenom: "INIT",
|
|
31322
|
-
coinMinimalDenom: "l2/
|
|
31527
|
+
coinMinimalDenom: "l2/025e02154bf24211cdceb46a81e37cdc9d3c0d5dca472f69354621d3b3169b0f",
|
|
31323
31528
|
coinDecimals: 6
|
|
31529
|
+
},
|
|
31530
|
+
{
|
|
31531
|
+
coinDenom: "EMBRINIT",
|
|
31532
|
+
coinMinimalDenom: "evm/6ed1637781269560b204c27cd42d95e057c4be44",
|
|
31533
|
+
coinDecimals: 18
|
|
31324
31534
|
}
|
|
31325
31535
|
],
|
|
31326
31536
|
rest: "https://rest-0-embr-1.anvil.asia-southeast.initia.xyz",
|
|
@@ -31337,13 +31547,13 @@ const YD = [
|
|
|
31337
31547
|
feeCurrencies: [
|
|
31338
31548
|
{
|
|
31339
31549
|
coinDenom: "INIT",
|
|
31340
|
-
coinMinimalDenom: "l2/
|
|
31550
|
+
coinMinimalDenom: "l2/025e02154bf24211cdceb46a81e37cdc9d3c0d5dca472f69354621d3b3169b0f",
|
|
31341
31551
|
coinDecimals: 6
|
|
31342
31552
|
}
|
|
31343
31553
|
],
|
|
31344
31554
|
stakeCurrency: {
|
|
31345
31555
|
coinDenom: "INIT",
|
|
31346
|
-
coinMinimalDenom: "l2/
|
|
31556
|
+
coinMinimalDenom: "l2/025e02154bf24211cdceb46a81e37cdc9d3c0d5dca472f69354621d3b3169b0f",
|
|
31347
31557
|
coinDecimals: 6
|
|
31348
31558
|
},
|
|
31349
31559
|
bip44: {
|
|
@@ -32088,6 +32298,17 @@ const YD = [
|
|
|
32088
32298
|
}
|
|
32089
32299
|
]
|
|
32090
32300
|
},
|
|
32301
|
+
{
|
|
32302
|
+
chainId: "arkeo-main-v1",
|
|
32303
|
+
explorers: [
|
|
32304
|
+
{
|
|
32305
|
+
kind: "stakevillage",
|
|
32306
|
+
url: "https://exp.stakevillage.net/arkeo-mainnet",
|
|
32307
|
+
tx_page: "https://exp.stakevillage.net/arkeo-mainnet/tx/${txHash}",
|
|
32308
|
+
account_page: "https://exp.stakevillage.net/arkeo-mainnet/account/${accountAddress}"
|
|
32309
|
+
}
|
|
32310
|
+
]
|
|
32311
|
+
},
|
|
32091
32312
|
{
|
|
32092
32313
|
chainId: "arkh",
|
|
32093
32314
|
explorers: [
|
|
@@ -32304,6 +32525,10 @@ const YD = [
|
|
|
32304
32525
|
}
|
|
32305
32526
|
]
|
|
32306
32527
|
},
|
|
32528
|
+
{
|
|
32529
|
+
chainId: "bbn-1",
|
|
32530
|
+
explorers: []
|
|
32531
|
+
},
|
|
32307
32532
|
{
|
|
32308
32533
|
chainId: "laozi-mainnet",
|
|
32309
32534
|
explorers: [
|
|
@@ -36313,6 +36538,23 @@ const YD = [
|
|
|
36313
36538
|
}
|
|
36314
36539
|
]
|
|
36315
36540
|
},
|
|
36541
|
+
{
|
|
36542
|
+
chainId: "pocket",
|
|
36543
|
+
explorers: [
|
|
36544
|
+
{
|
|
36545
|
+
kind: "🔍 Pocket Explorer by Soothe 🔎",
|
|
36546
|
+
url: "https://shannon.trustsoothe.io",
|
|
36547
|
+
tx_page: "https://shannon.trustsoothe.io/tx/${txHash}",
|
|
36548
|
+
account_page: "https://shannon.trustsoothe.io/accounts/${accountAddress}"
|
|
36549
|
+
},
|
|
36550
|
+
{
|
|
36551
|
+
kind: "🗺 Pocket Explorer by Stakenodes.org 🗺",
|
|
36552
|
+
url: "https://shannon.pokt.network",
|
|
36553
|
+
tx_page: "https://shannon.pokt.network/tx/${txHash}",
|
|
36554
|
+
account_page: "https://shannon.pokt.network/poktroll/account/${accountAddress}"
|
|
36555
|
+
}
|
|
36556
|
+
]
|
|
36557
|
+
},
|
|
36316
36558
|
{
|
|
36317
36559
|
chainId: "point_10687-1",
|
|
36318
36560
|
explorers: [
|
|
@@ -36927,6 +37169,12 @@ const YD = [
|
|
|
36927
37169
|
url: "https://explorer.whenmoonwhenlambo.money/seda",
|
|
36928
37170
|
tx_page: "https://explorer.whenmoonwhenlambo.money/seda/tx/${txHash}",
|
|
36929
37171
|
account_page: "https://explorer.whenmoonwhenlambo.money/seda/account/${accountAddress}"
|
|
37172
|
+
},
|
|
37173
|
+
{
|
|
37174
|
+
kind: "Node39.TOP",
|
|
37175
|
+
url: "https://explorer.node39.top/Seda",
|
|
37176
|
+
tx_page: "https://explorer.node39.top/Seda/tx/${txHash}",
|
|
37177
|
+
account_page: "https://explorer.node39.top/Seda/account/${accountAddress}"
|
|
36930
37178
|
}
|
|
36931
37179
|
]
|
|
36932
37180
|
},
|
|
@@ -39046,6 +39294,16 @@ const YD = [
|
|
|
39046
39294
|
}
|
|
39047
39295
|
]
|
|
39048
39296
|
},
|
|
39297
|
+
{
|
|
39298
|
+
chainId: "intento-ics-test-1",
|
|
39299
|
+
explorers: [
|
|
39300
|
+
{
|
|
39301
|
+
kind: "PingPub",
|
|
39302
|
+
url: "https://explorer.intento.zone",
|
|
39303
|
+
tx_page: "https://explorer.intento.zone/intento-test/tx/${txHash}"
|
|
39304
|
+
}
|
|
39305
|
+
]
|
|
39306
|
+
},
|
|
39049
39307
|
{
|
|
39050
39308
|
chainId: "iopn_984-1",
|
|
39051
39309
|
explorers: [
|
|
@@ -39514,15 +39772,15 @@ const YD = [
|
|
|
39514
39772
|
chainId: "pocket-beta",
|
|
39515
39773
|
explorers: [
|
|
39516
39774
|
{
|
|
39517
|
-
kind: "🔍
|
|
39518
|
-
url: "https://shannon-beta.
|
|
39519
|
-
tx_page: "https://shannon-beta.
|
|
39520
|
-
account_page: "https://shannon-beta.
|
|
39775
|
+
kind: "🔍 Pocket Explorer by Soothe 🔎",
|
|
39776
|
+
url: "https://shannon-beta.trustsoothe.io",
|
|
39777
|
+
tx_page: "https://shannon-beta.trustsoothe.io/tx/${txHash}",
|
|
39778
|
+
account_page: "https://shannon-beta.trustsoothe.io/accounts/${accountAddress}"
|
|
39521
39779
|
},
|
|
39522
39780
|
{
|
|
39523
|
-
kind: "🗺
|
|
39524
|
-
url: "https://shannon.beta.testnet.pokt.network
|
|
39525
|
-
tx_page: "https://shannon.beta.testnet.pokt.network/
|
|
39781
|
+
kind: "🗺 Pocket Explorer by Stakenodes.org 🗺",
|
|
39782
|
+
url: "https://shannon.beta.testnet.pokt.network",
|
|
39783
|
+
tx_page: "https://shannon.beta.testnet.pokt.network/tx/${txHash}",
|
|
39526
39784
|
account_page: "https://shannon.beta.testnet.pokt.network/poktroll/account/${accountAddress}"
|
|
39527
39785
|
}
|
|
39528
39786
|
]
|
|
@@ -40002,6 +40260,9 @@ const YD = [
|
|
|
40002
40260
|
{
|
|
40003
40261
|
chainId: "zig-test-1"
|
|
40004
40262
|
},
|
|
40263
|
+
{
|
|
40264
|
+
chainId: "echelon-1"
|
|
40265
|
+
},
|
|
40005
40266
|
{
|
|
40006
40267
|
chainId: "interwoven-1",
|
|
40007
40268
|
explorers: [
|
|
@@ -40235,13 +40496,13 @@ const YD = [
|
|
|
40235
40496
|
sourceAssetChainID: s,
|
|
40236
40497
|
destAssetDenom: u,
|
|
40237
40498
|
destAssetChainID: d
|
|
40238
|
-
} = i, h = r[0], g = r[r.length - 1],
|
|
40499
|
+
} = i, h = r[0], g = r[r.length - 1], b = {};
|
|
40239
40500
|
(x = i == null ? void 0 : i.requiredChainAddresses) == null || x.forEach((C, v) => {
|
|
40240
|
-
|
|
40501
|
+
b[v] = {
|
|
40241
40502
|
chainID: C,
|
|
40242
40503
|
address: ""
|
|
40243
40504
|
};
|
|
40244
|
-
}), n(Un,
|
|
40505
|
+
}), n(Un, b), n(Ve, {
|
|
40245
40506
|
userAddresses: [],
|
|
40246
40507
|
transactionDetailsArray: [],
|
|
40247
40508
|
route: i,
|
|
@@ -40388,8 +40649,8 @@ const YD = [
|
|
|
40388
40649
|
return o === "carbon-1" ? eo.CARBON : a;
|
|
40389
40650
|
};
|
|
40390
40651
|
}), Dm = Q(), xm = Qm((e) => {
|
|
40391
|
-
var
|
|
40392
|
-
const n = e(
|
|
40652
|
+
var b;
|
|
40653
|
+
const n = e(bn), { route: i, userAddresses: o, transactionDetailsArray: t } = e(Ve), c = e(dm), a = e(c2), r = e(Dm), l = e(ai), { timeoutSeconds: s } = e(xt), { data: u } = e(Fe), d = e(xe), h = e(hl), g = (b = u == null ? void 0 : u.find((x) => x.chainID === (d == null ? void 0 : d.chainID))) == null ? void 0 : b.chainType;
|
|
40393
40654
|
if (g) {
|
|
40394
40655
|
const { deeplink: x, recentWalletData: C } = h[g];
|
|
40395
40656
|
g === R.Cosmos ? (window.localStorage.removeItem(lc), window.localStorage.removeItem(mc)) : (window.localStorage.setItem(lc, x), window.localStorage.setItem(mc, C));
|
|
@@ -40421,20 +40682,20 @@ const YD = [
|
|
|
40421
40682
|
console.error(x), (C = c == null ? void 0 : c.onError) == null || C.call(c, x, t);
|
|
40422
40683
|
}
|
|
40423
40684
|
};
|
|
40424
|
-
}),
|
|
40685
|
+
}), bt = (e) => W(() => {
|
|
40425
40686
|
const n = Ti(e == null ? void 0 : e.operations);
|
|
40426
40687
|
return (n == null ? void 0 : n.some((i) => i.type === Me.goFastTransfer)) ?? !1;
|
|
40427
40688
|
}, [e == null ? void 0 : e.operations]), a2 = (e) => W(() => {
|
|
40428
40689
|
const n = [Me.swap, Me.evmSwap], i = Ti(e == null ? void 0 : e.operations);
|
|
40429
40690
|
return (i == null ? void 0 : i.some((o) => n.includes(o.type))) ?? !1;
|
|
40430
40691
|
}, [e == null ? void 0 : e.operations]), r2 = ({ txHash: e, explorerLink: n, onClickBack: i }) => {
|
|
40431
|
-
const o = de(), [t, c] = me(je), a = Y(tn), { route: r, transactionDetailsArray: l } = L(Ve), s =
|
|
40692
|
+
const o = de(), [t, c] = me(je), a = Y(tn), { route: r, transactionDetailsArray: l } = L(Ve), s = bt(r), { data: u } = ca({
|
|
40432
40693
|
txsRequired: r == null ? void 0 : r.txsRequired,
|
|
40433
40694
|
txs: l
|
|
40434
40695
|
});
|
|
40435
40696
|
return ae(() => {
|
|
40436
40697
|
t && (u != null && u.isSettled) && (V("error page: transaction timeover - transaction settled"), c(void 0));
|
|
40437
|
-
}, [u == null ? void 0 : u.isSettled, t, c]), /* @__PURE__ */ j(
|
|
40698
|
+
}, [u == null ? void 0 : u.isSettled, t, c]), /* @__PURE__ */ j(be, { children: [
|
|
40438
40699
|
/* @__PURE__ */ m(
|
|
40439
40700
|
Xe,
|
|
40440
40701
|
{
|
|
@@ -40451,7 +40712,7 @@ const YD = [
|
|
|
40451
40712
|
gn,
|
|
40452
40713
|
{
|
|
40453
40714
|
title: "Sorry, your transaction is taking longer than usual.",
|
|
40454
|
-
description: /* @__PURE__ */ j(
|
|
40715
|
+
description: /* @__PURE__ */ j(be, { children: [
|
|
40455
40716
|
/* @__PURE__ */ j(X, { color: o.warning.text, textAlign: "center", textWrap: "balance", children: [
|
|
40456
40717
|
"Your funds are secure.",
|
|
40457
40718
|
/* @__PURE__ */ m("br", {}),
|
|
@@ -40493,7 +40754,7 @@ const YD = [
|
|
|
40493
40754
|
}, a = () => {
|
|
40494
40755
|
t(void 0), e();
|
|
40495
40756
|
};
|
|
40496
|
-
return /* @__PURE__ */ j(
|
|
40757
|
+
return /* @__PURE__ */ j(be, { children: [
|
|
40497
40758
|
/* @__PURE__ */ m(
|
|
40498
40759
|
Xe,
|
|
40499
40760
|
{
|
|
@@ -40549,7 +40810,7 @@ const YD = [
|
|
|
40549
40810
|
tokenAmount: n == null ? void 0 : n.amount,
|
|
40550
40811
|
chainId: n == null ? void 0 : n.chainID
|
|
40551
40812
|
});
|
|
40552
|
-
return /* @__PURE__ */ j(
|
|
40813
|
+
return /* @__PURE__ */ j(be, { children: [
|
|
40553
40814
|
/* @__PURE__ */ m(
|
|
40554
40815
|
Xe,
|
|
40555
40816
|
{
|
|
@@ -40566,7 +40827,7 @@ const YD = [
|
|
|
40566
40827
|
gn,
|
|
40567
40828
|
{
|
|
40568
40829
|
title: "Action Required",
|
|
40569
|
-
description: /* @__PURE__ */ j(
|
|
40830
|
+
description: /* @__PURE__ */ j(be, { children: [
|
|
40570
40831
|
/* @__PURE__ */ j(X, { color: a.warning.text, textAlign: "center", textWrap: "balance", children: [
|
|
40571
40832
|
"This transaction reverted while trying to execute.",
|
|
40572
40833
|
/* @__PURE__ */ m("br", {}),
|
|
@@ -40617,7 +40878,7 @@ const YD = [
|
|
|
40617
40878
|
] });
|
|
40618
40879
|
}, m2 = ({ onClickBack: e }) => {
|
|
40619
40880
|
const n = de();
|
|
40620
|
-
return /* @__PURE__ */ j(
|
|
40881
|
+
return /* @__PURE__ */ j(be, { children: [
|
|
40621
40882
|
/* @__PURE__ */ m(
|
|
40622
40883
|
Xe,
|
|
40623
40884
|
{
|
|
@@ -40634,7 +40895,7 @@ const YD = [
|
|
|
40634
40895
|
gn,
|
|
40635
40896
|
{
|
|
40636
40897
|
title: "Warning: Ledger not supported",
|
|
40637
|
-
description: /* @__PURE__ */ m(
|
|
40898
|
+
description: /* @__PURE__ */ m(be, { children: /* @__PURE__ */ m(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)." }) }),
|
|
40638
40899
|
icon: J.triangleWarning,
|
|
40639
40900
|
backgroundColor: n.error.background,
|
|
40640
40901
|
textColor: n.error.text
|
|
@@ -40670,14 +40931,14 @@ const YD = [
|
|
|
40670
40931
|
)
|
|
40671
40932
|
}
|
|
40672
40933
|
), p2 = ({ children: e, drawer: n, container: i, onOpenChange: o, theme: t }) => {
|
|
40673
|
-
const [c, a] = se(""), r =
|
|
40934
|
+
const [c, a] = se(""), r = fi(null), l = bs(), [s, u] = se(), d = L(Vc), h = L($c), g = async (x) => new Promise((C) => setTimeout(C, x)), b = ye(() => {
|
|
40674
40935
|
o == null || o(!1), g(75).then(() => {
|
|
40675
40936
|
l.remove();
|
|
40676
40937
|
});
|
|
40677
40938
|
}, [l, o]);
|
|
40678
40939
|
return ae(() => {
|
|
40679
|
-
s && !l.visible &&
|
|
40680
|
-
}, [
|
|
40940
|
+
s && !l.visible && b(), u(l.visible);
|
|
40941
|
+
}, [b, l.visible, s]), ae(() => {
|
|
40681
40942
|
const x = (E) => {
|
|
40682
40943
|
E.key === "Escape" && l.hide();
|
|
40683
40944
|
}, C = (E) => {
|
|
@@ -40691,7 +40952,7 @@ const YD = [
|
|
|
40691
40952
|
return (!n || !v()) && (a(A), document.documentElement.style.overflow = "hidden"), window.addEventListener("keydown", x), window.addEventListener("click", C), () => {
|
|
40692
40953
|
window.removeEventListener("keydown", x), window.removeEventListener("click", C), o == null || o(!1), document.documentElement.style.overflow = A;
|
|
40693
40954
|
};
|
|
40694
|
-
}, [
|
|
40955
|
+
}, [b, n, l, o, c]), d && s === void 0 ? null : jp(
|
|
40695
40956
|
/* @__PURE__ */ m($s, { theme: t, children: /* @__PURE__ */ m(x2, { drawer: n, open: l.visible, "data-root-id": h, children: /* @__PURE__ */ m(
|
|
40696
40957
|
g2,
|
|
40697
40958
|
{
|
|
@@ -40704,7 +40965,7 @@ const YD = [
|
|
|
40704
40965
|
) }) }),
|
|
40705
40966
|
i ?? document.body
|
|
40706
40967
|
);
|
|
40707
|
-
},
|
|
40968
|
+
}, bo = (e) => {
|
|
40708
40969
|
const n = e, i = (o) => {
|
|
40709
40970
|
const t = Y(je), c = L($l);
|
|
40710
40971
|
return /* @__PURE__ */ m(p2, { ...o, theme: c, children: /* @__PURE__ */ m(
|
|
@@ -40818,7 +41079,7 @@ const YD = [
|
|
|
40818
41079
|
style: o,
|
|
40819
41080
|
eureka: t
|
|
40820
41081
|
}) => /* @__PURE__ */ j(
|
|
40821
|
-
|
|
41082
|
+
b2,
|
|
40822
41083
|
{
|
|
40823
41084
|
as: "button",
|
|
40824
41085
|
align: "center",
|
|
@@ -40832,7 +41093,7 @@ const YD = [
|
|
|
40832
41093
|
typeof n == "string" ? /* @__PURE__ */ m(Te, { fontSize: 20, children: n }) : n
|
|
40833
41094
|
]
|
|
40834
41095
|
}
|
|
40835
|
-
),
|
|
41096
|
+
), b2 = N(O)`
|
|
40836
41097
|
${mo};
|
|
40837
41098
|
position: relative;
|
|
40838
41099
|
width: 100%;
|
|
@@ -40898,10 +41159,10 @@ const YD = [
|
|
|
40898
41159
|
window == null || window.removeEventListener("resize", i);
|
|
40899
41160
|
};
|
|
40900
41161
|
}, []), e;
|
|
40901
|
-
}, Yr = 600,
|
|
41162
|
+
}, Yr = 600, f2 = 100, gm = (e) => {
|
|
40902
41163
|
const n = Ye(), [i, o] = se(Yr - e);
|
|
40903
41164
|
return ae(() => {
|
|
40904
|
-
o(n ? window.innerHeight - e -
|
|
41165
|
+
o(n ? window.innerHeight - e - f2 * 2 : Yr - e);
|
|
40905
41166
|
}, [n, e]), i;
|
|
40906
41167
|
}, pa = ({
|
|
40907
41168
|
listItems: e,
|
|
@@ -40912,12 +41173,12 @@ const YD = [
|
|
|
40912
41173
|
className: c,
|
|
40913
41174
|
empty: a
|
|
40914
41175
|
}) => {
|
|
40915
|
-
const r = de(), [l, s] = se(), u = gm(i), d =
|
|
41176
|
+
const r = de(), [l, s] = se(), u = gm(i), d = fi(null);
|
|
40916
41177
|
return ae(() => {
|
|
40917
41178
|
var x, C, v;
|
|
40918
41179
|
const h = (v = (C = (x = d.current) == null ? void 0 : x.nativeElement) == null ? void 0 : C.getElementsByClassName(
|
|
40919
41180
|
"rc-virtual-list-holder-inner"
|
|
40920
|
-
)) == null ? void 0 : v[0], g = h == null ? void 0 : h.firstChild,
|
|
41181
|
+
)) == null ? void 0 : v[0], g = h == null ? void 0 : h.firstChild, b = (A) => {
|
|
40921
41182
|
if (A.key === "ArrowDown") {
|
|
40922
41183
|
g && (g.focus(), s(g)), A.preventDefault();
|
|
40923
41184
|
const E = l == null ? void 0 : l.nextElementSibling;
|
|
@@ -40928,8 +41189,8 @@ const YD = [
|
|
|
40928
41189
|
E && (s(E), E.focus());
|
|
40929
41190
|
}
|
|
40930
41191
|
};
|
|
40931
|
-
return document.addEventListener("keydown",
|
|
40932
|
-
document.removeEventListener("keydown",
|
|
41192
|
+
return document.addEventListener("keydown", b), () => {
|
|
41193
|
+
document.removeEventListener("keydown", b);
|
|
40933
41194
|
};
|
|
40934
41195
|
}, [l, e.length]), ae(() => {
|
|
40935
41196
|
setTimeout(() => {
|
|
@@ -40971,7 +41232,7 @@ const YD = [
|
|
|
40971
41232
|
`, C2 = N(X)`
|
|
40972
41233
|
white-space: pre-line;
|
|
40973
41234
|
text-align: center;
|
|
40974
|
-
`,
|
|
41235
|
+
`, bm = ({
|
|
40975
41236
|
color: e = "currentColor",
|
|
40976
41237
|
...n
|
|
40977
41238
|
}) => /* @__PURE__ */ m(
|
|
@@ -41019,8 +41280,8 @@ const YD = [
|
|
|
41019
41280
|
statusData: s,
|
|
41020
41281
|
...u
|
|
41021
41282
|
}) => {
|
|
41022
|
-
var p, D,
|
|
41023
|
-
const d = de(), h = Ye(), { copyAddress: g, isShowingCopyAddressFeedback:
|
|
41283
|
+
var p, D, f;
|
|
41284
|
+
const d = de(), h = Ye(), { copyAddress: g, isShowingCopyAddressFeedback: b } = ha(), x = Oe({
|
|
41024
41285
|
assetDenom: e,
|
|
41025
41286
|
chainId: i,
|
|
41026
41287
|
tokenAmount: n
|
|
@@ -41038,7 +41299,7 @@ const YD = [
|
|
|
41038
41299
|
if (!E.address) return;
|
|
41039
41300
|
const w = () => {
|
|
41040
41301
|
const M = h ? "Copied!" : "Address copied!";
|
|
41041
|
-
return
|
|
41302
|
+
return b ? /* @__PURE__ */ m(X, { children: M }) : h ? /* @__PURE__ */ m(bm, { color: d.primary.text.lowContrast }) : /* @__PURE__ */ m(v2, { title: E.address, monospace: !0, textWrap: "nowrap", children: xo(E.address, h) });
|
|
41042
41303
|
};
|
|
41043
41304
|
return /* @__PURE__ */ j(B, { children: [
|
|
41044
41305
|
/* @__PURE__ */ j(k2, { onClick: () => g(E == null ? void 0 : E.address), children: [
|
|
@@ -41066,7 +41327,7 @@ const YD = [
|
|
|
41066
41327
|
}, [
|
|
41067
41328
|
g,
|
|
41068
41329
|
h,
|
|
41069
|
-
|
|
41330
|
+
b,
|
|
41070
41331
|
t,
|
|
41071
41332
|
v,
|
|
41072
41333
|
E.address,
|
|
@@ -41078,7 +41339,7 @@ const YD = [
|
|
|
41078
41339
|
}, [c, h]), I = s == null ? void 0 : s.transferEvents.length, T = (D = (p = s == null ? void 0 : s.transferEvents) == null ? void 0 : p[(s == null ? void 0 : s.transferEvents.length) - 1]) == null ? void 0 : D.status;
|
|
41079
41340
|
return /* @__PURE__ */ j(O, { gap: 15, align: "center", ...u, children: [
|
|
41080
41341
|
x != null && x.assetImage ? /* @__PURE__ */ m(
|
|
41081
|
-
|
|
41342
|
+
ft,
|
|
41082
41343
|
{
|
|
41083
41344
|
width: 30,
|
|
41084
41345
|
height: 30,
|
|
@@ -41090,7 +41351,7 @@ const YD = [
|
|
|
41090
41351
|
height: 30,
|
|
41091
41352
|
width: 30,
|
|
41092
41353
|
src: x.assetImage,
|
|
41093
|
-
title: (
|
|
41354
|
+
title: (f = x == null ? void 0 : x.asset) == null ? void 0 : f.name
|
|
41094
41355
|
}
|
|
41095
41356
|
)
|
|
41096
41357
|
},
|
|
@@ -41157,7 +41418,7 @@ const YD = [
|
|
|
41157
41418
|
`, E2 = N.img`
|
|
41158
41419
|
border-radius: 50%;
|
|
41159
41420
|
box-sizing: content-box;
|
|
41160
|
-
`,
|
|
41421
|
+
`, ft = ({
|
|
41161
41422
|
backgroundColor: e,
|
|
41162
41423
|
children: n,
|
|
41163
41424
|
width: i,
|
|
@@ -41293,7 +41554,7 @@ const YD = [
|
|
|
41293
41554
|
border-radius: 20px;
|
|
41294
41555
|
background: ${({ theme: e }) => e.primary.background.normal};
|
|
41295
41556
|
height: 100%;
|
|
41296
|
-
`,
|
|
41557
|
+
`, fm = N(pe)`
|
|
41297
41558
|
width: 100%;
|
|
41298
41559
|
align-items: center;
|
|
41299
41560
|
justify-content: center;
|
|
@@ -41326,7 +41587,7 @@ const YD = [
|
|
|
41326
41587
|
(I) => Jr(I) || (I == null ? void 0 : I.isAvailable) !== !1
|
|
41327
41588
|
);
|
|
41328
41589
|
return F.length === 1 ? n : F;
|
|
41329
|
-
}, [n]), g = Y(aa),
|
|
41590
|
+
}, [n]), g = Y(aa), b = zp({
|
|
41330
41591
|
mutationKey: ["connectWallet"],
|
|
41331
41592
|
mutationFn: async (F) => t ? await F.connect(t) : await F.connect(),
|
|
41332
41593
|
onSuccess: () => {
|
|
@@ -41335,7 +41596,7 @@ const YD = [
|
|
|
41335
41596
|
}), x = ye(
|
|
41336
41597
|
(F) => {
|
|
41337
41598
|
var z;
|
|
41338
|
-
const I = Eo(F) ? F.walletPrettyName ?? F.walletName : F.walletName, T = Eo(F) ? (z = F == null ? void 0 : F.walletInfo) == null ? void 0 : z.logo : void 0, p = Jr(F) ? F == null ? void 0 : F.rightContent : void 0, D = Eo(F) ? F == null ? void 0 : F.isAvailable : void 0,
|
|
41599
|
+
const I = Eo(F) ? F.walletPrettyName ?? F.walletName : F.walletName, T = Eo(F) ? (z = F == null ? void 0 : F.walletInfo) == null ? void 0 : z.logo : void 0, p = Jr(F) ? F == null ? void 0 : F.rightContent : void 0, D = Eo(F) ? F == null ? void 0 : F.isAvailable : void 0, f = (p == null ? void 0 : p()) ?? /* @__PURE__ */ m(be, {}), B = T ? /* @__PURE__ */ m(
|
|
41339
41600
|
"img",
|
|
41340
41601
|
{
|
|
41341
41602
|
height: 35,
|
|
@@ -41349,7 +41610,7 @@ const YD = [
|
|
|
41349
41610
|
so,
|
|
41350
41611
|
{
|
|
41351
41612
|
onClick: () => {
|
|
41352
|
-
Eo(F) ? o ? (o(F), oe.remove(he.SetAddressModal), oe.remove(he.WalletSelectorModal)) : (d(F),
|
|
41613
|
+
Eo(F) ? o ? (o(F), oe.remove(he.SetAddressModal), oe.remove(he.WalletSelectorModal)) : (d(F), b.mutate(F)) : F.onSelect();
|
|
41353
41614
|
},
|
|
41354
41615
|
style: { marginTop: Vt },
|
|
41355
41616
|
leftContent: /* @__PURE__ */ j(O, { style: { width: "100%" }, align: "center", justify: "space-between", children: [
|
|
@@ -41359,31 +41620,31 @@ const YD = [
|
|
|
41359
41620
|
] }),
|
|
41360
41621
|
D !== void 0 && /* @__PURE__ */ m(X, { children: D ? "Installed" : "Not Installed" })
|
|
41361
41622
|
] }),
|
|
41362
|
-
rightContent:
|
|
41623
|
+
rightContent: f
|
|
41363
41624
|
},
|
|
41364
41625
|
I
|
|
41365
41626
|
);
|
|
41366
41627
|
},
|
|
41367
|
-
[
|
|
41628
|
+
[b, o]
|
|
41368
41629
|
), C = W(() => Math.min(530, h.length * (Qr + Vt)), [h.length]), v = W(() => {
|
|
41369
41630
|
var F, I, T, p;
|
|
41370
|
-
if (
|
|
41371
|
-
const D =
|
|
41372
|
-
return /* @__PURE__ */ m(
|
|
41631
|
+
if (b.isError || b.isPending) {
|
|
41632
|
+
const D = b.isError ? "Failed to connect" : "Connecting to";
|
|
41633
|
+
return /* @__PURE__ */ m(fm, { children: /* @__PURE__ */ j(I2, { children: [
|
|
41373
41634
|
/* @__PURE__ */ m(
|
|
41374
|
-
|
|
41635
|
+
ft,
|
|
41375
41636
|
{
|
|
41376
41637
|
width: 80,
|
|
41377
41638
|
height: 80,
|
|
41378
41639
|
backgroundColor: s.primary.text.normal,
|
|
41379
|
-
status:
|
|
41640
|
+
status: b.isError ? "failed" : "pending",
|
|
41380
41641
|
borderSize: 8,
|
|
41381
|
-
children: ((I = (F =
|
|
41642
|
+
children: ((I = (F = b.variables) == null ? void 0 : F.walletInfo) == null ? void 0 : I.logo) && /* @__PURE__ */ m(
|
|
41382
41643
|
"img",
|
|
41383
41644
|
{
|
|
41384
41645
|
style: { objectFit: "cover" },
|
|
41385
|
-
src:
|
|
41386
|
-
alt: `${(T =
|
|
41646
|
+
src: b.variables.walletInfo.logo,
|
|
41647
|
+
alt: `${(T = b.variables) == null ? void 0 : T.walletPrettyName} logo`
|
|
41387
41648
|
}
|
|
41388
41649
|
)
|
|
41389
41650
|
}
|
|
@@ -41391,9 +41652,9 @@ const YD = [
|
|
|
41391
41652
|
/* @__PURE__ */ j(Te, { color: s.primary.text.lowContrast, textAlign: "center", children: [
|
|
41392
41653
|
D,
|
|
41393
41654
|
" ",
|
|
41394
|
-
(p =
|
|
41655
|
+
(p = b.variables) == null ? void 0 : p.walletPrettyName
|
|
41395
41656
|
] }),
|
|
41396
|
-
|
|
41657
|
+
b.error && /* @__PURE__ */ m(Te, { textAlign: "center", fontSize: 14, color: s.primary.text.lowContrast, children: b.error.message })
|
|
41397
41658
|
] }) });
|
|
41398
41659
|
}
|
|
41399
41660
|
return /* @__PURE__ */ m(
|
|
@@ -41410,11 +41671,11 @@ const YD = [
|
|
|
41410
41671
|
}
|
|
41411
41672
|
);
|
|
41412
41673
|
}, [
|
|
41413
|
-
|
|
41414
|
-
|
|
41415
|
-
|
|
41416
|
-
(E = (A =
|
|
41417
|
-
(q =
|
|
41674
|
+
b.error,
|
|
41675
|
+
b.isError,
|
|
41676
|
+
b.isPending,
|
|
41677
|
+
(E = (A = b.variables) == null ? void 0 : A.walletInfo) == null ? void 0 : E.logo,
|
|
41678
|
+
(q = b.variables) == null ? void 0 : q.walletPrettyName,
|
|
41418
41679
|
C,
|
|
41419
41680
|
x,
|
|
41420
41681
|
s.primary.text.lowContrast,
|
|
@@ -41426,7 +41687,7 @@ const YD = [
|
|
|
41426
41687
|
ua,
|
|
41427
41688
|
{
|
|
41428
41689
|
title: e,
|
|
41429
|
-
onClickBackButton:
|
|
41690
|
+
onClickBackButton: b.isPending || b.isError ? b.reset : i,
|
|
41430
41691
|
rightContent: l
|
|
41431
41692
|
}
|
|
41432
41693
|
),
|
|
@@ -41656,7 +41917,7 @@ const YD = [
|
|
|
41656
41917
|
imgSrc: "https://raw.githubusercontent.com/graz-sh/graz/dev/example/starter/public/assets/wallet-icon-compass.png"
|
|
41657
41918
|
}
|
|
41658
41919
|
}, Xo = (e) => Y2[e], Ct = () => {
|
|
41659
|
-
const { data: e } = L(Fe), { data: n } = L(
|
|
41920
|
+
const { data: e } = L(Fe), { data: n } = L(fn), i = Y(xe);
|
|
41660
41921
|
return (o) => {
|
|
41661
41922
|
switch (o) {
|
|
41662
41923
|
case R.Cosmos: {
|
|
@@ -41697,20 +41958,20 @@ const YD = [
|
|
|
41697
41958
|
if ((s == null ? void 0 : s.includes("penumbra")) && !u)
|
|
41698
41959
|
return _2(t == null ? void 0 : t.onWalletDisconnected);
|
|
41699
41960
|
const g = [];
|
|
41700
|
-
for (const
|
|
41701
|
-
const x =
|
|
41702
|
-
var T, p, D,
|
|
41961
|
+
for (const b of d) {
|
|
41962
|
+
const x = fs(b), C = Fi(), v = Xo(b), A = J2(Z2(b), e), E = async ({ chainIdToConnect: F }) => {
|
|
41963
|
+
var T, p, D, f;
|
|
41703
41964
|
const I = !F || F && A.includes(F);
|
|
41704
41965
|
try {
|
|
41705
41966
|
if (F) {
|
|
41706
41967
|
const z = n2(F);
|
|
41707
41968
|
if (!z)
|
|
41708
41969
|
throw new Error(`connect: Chain info not found for chainID: ${s}`);
|
|
41709
|
-
!C && !x && await Ji(
|
|
41970
|
+
!C && !x && await Ji(b).experimentalSuggestChain(z);
|
|
41710
41971
|
}
|
|
41711
41972
|
const B = await wa({
|
|
41712
41973
|
chainId: I ? A : F,
|
|
41713
|
-
walletType:
|
|
41974
|
+
walletType: b,
|
|
41714
41975
|
autoReconnect: !1
|
|
41715
41976
|
});
|
|
41716
41977
|
if (!(B != null && B.accounts))
|
|
@@ -41721,26 +41982,26 @@ const YD = [
|
|
|
41721
41982
|
), M = F && (B == null ? void 0 : B.accounts[F].bech32Address);
|
|
41722
41983
|
if (n === void 0) {
|
|
41723
41984
|
(T = t == null ? void 0 : t.onWalletConnected) == null || T.call(t, {
|
|
41724
|
-
walletName:
|
|
41985
|
+
walletName: b,
|
|
41725
41986
|
chainIdToAddressMap: w,
|
|
41726
41987
|
address: M
|
|
41727
41988
|
});
|
|
41728
41989
|
const z = (p = B == null ? void 0 : B.accounts[Object.keys(B == null ? void 0 : B.accounts)[0]]) == null ? void 0 : p.bech32Address;
|
|
41729
41990
|
i({
|
|
41730
41991
|
id: z,
|
|
41731
|
-
walletName:
|
|
41992
|
+
walletName: b,
|
|
41732
41993
|
chainType: R.SVM
|
|
41733
41994
|
});
|
|
41734
41995
|
}
|
|
41735
41996
|
return V("wallet connected", {
|
|
41736
|
-
walletName:
|
|
41997
|
+
walletName: b,
|
|
41737
41998
|
chainId: F,
|
|
41738
41999
|
chainType: R.Cosmos
|
|
41739
42000
|
}), { address: M };
|
|
41740
42001
|
} catch (B) {
|
|
41741
42002
|
const w = B;
|
|
41742
42003
|
if (V("connect wallet error", {
|
|
41743
|
-
walletName:
|
|
42004
|
+
walletName: b,
|
|
41744
42005
|
chainId: F,
|
|
41745
42006
|
ChainType: R.Cosmos,
|
|
41746
42007
|
errorMessage: w == null ? void 0 : w.message
|
|
@@ -41748,10 +42009,10 @@ const YD = [
|
|
|
41748
42009
|
throw new Error(
|
|
41749
42010
|
`There is no chain info for ${s}. Please add the ${s} chain to your wallet`
|
|
41750
42011
|
);
|
|
41751
|
-
if ((
|
|
42012
|
+
if ((f = w == null ? void 0 : w.message) != null && f.toLowerCase().includes("no ethereum public key")) {
|
|
41752
42013
|
const M = await wa({
|
|
41753
42014
|
chainId: X2,
|
|
41754
|
-
walletType:
|
|
42015
|
+
walletType: b,
|
|
41755
42016
|
autoReconnect: !1
|
|
41756
42017
|
});
|
|
41757
42018
|
return {
|
|
@@ -41761,7 +42022,7 @@ const YD = [
|
|
|
41761
42022
|
throw B;
|
|
41762
42023
|
}
|
|
41763
42024
|
}, q = {
|
|
41764
|
-
walletName:
|
|
42025
|
+
walletName: b,
|
|
41765
42026
|
walletPrettyName: v == null ? void 0 : v.name,
|
|
41766
42027
|
walletChainType: R.Cosmos,
|
|
41767
42028
|
walletInfo: {
|
|
@@ -41773,32 +42034,32 @@ const YD = [
|
|
|
41773
42034
|
disconnect: async () => {
|
|
41774
42035
|
var F;
|
|
41775
42036
|
await r(), V("wallet disconnected", {
|
|
41776
|
-
walletName:
|
|
42037
|
+
walletName: b,
|
|
41777
42038
|
ChainType: R.Cosmos
|
|
41778
42039
|
}), i(void 0), (F = t == null ? void 0 : t.onWalletDisconnected) == null || F.call(t, {
|
|
41779
|
-
walletName:
|
|
42040
|
+
walletName: b,
|
|
41780
42041
|
chainType: R.Cosmos
|
|
41781
42042
|
});
|
|
41782
42043
|
},
|
|
41783
42044
|
getAddress: async ({ signRequired: F }) => {
|
|
41784
42045
|
V("get address", {
|
|
41785
|
-
walletName:
|
|
42046
|
+
walletName: b,
|
|
41786
42047
|
ChainType: R.Cosmos,
|
|
41787
42048
|
chainId: s
|
|
41788
42049
|
});
|
|
41789
42050
|
try {
|
|
41790
42051
|
if (n && !F && s)
|
|
41791
|
-
return { address: (await Ji(
|
|
42052
|
+
return { address: (await Ji(b).getKey(s)).bech32Address };
|
|
41792
42053
|
throw new Error("connect wallet");
|
|
41793
42054
|
} catch {
|
|
41794
42055
|
return E({ chainIdToConnect: s });
|
|
41795
42056
|
}
|
|
41796
42057
|
},
|
|
41797
|
-
isWalletConnected: c ===
|
|
42058
|
+
isWalletConnected: c === b,
|
|
41798
42059
|
isAvailable: (() => {
|
|
41799
42060
|
if (!C)
|
|
41800
42061
|
try {
|
|
41801
|
-
return !!Ji(
|
|
42062
|
+
return !!Ji(b);
|
|
41802
42063
|
} catch {
|
|
41803
42064
|
return !1;
|
|
41804
42065
|
}
|
|
@@ -41820,7 +42081,7 @@ const YD = [
|
|
|
41820
42081
|
]
|
|
41821
42082
|
) };
|
|
41822
42083
|
}, Z2 = (e) => {
|
|
41823
|
-
const n =
|
|
42084
|
+
const n = fs(e), i = Fi();
|
|
41824
42085
|
if (n) return Lt.filter((o) => o !== "wormchain");
|
|
41825
42086
|
switch (e) {
|
|
41826
42087
|
case le.OKX:
|
|
@@ -41938,12 +42199,12 @@ const YD = [
|
|
|
41938
42199
|
(h) => {
|
|
41939
42200
|
const g = h === "pacific-1";
|
|
41940
42201
|
g && (h = Go.id.toString());
|
|
41941
|
-
const
|
|
42202
|
+
const b = [];
|
|
41942
42203
|
for (const x of u) {
|
|
41943
|
-
if (x.id === "com.okex.wallet" ||
|
|
42204
|
+
if (x.id === "com.okex.wallet" || b.findIndex((q) => q.walletName === x.id) !== -1)
|
|
41944
42205
|
continue;
|
|
41945
42206
|
const v = x.id === "walletConnect", A = async ({ chainIdToConnect: q = "1" }) => {
|
|
41946
|
-
var I, T, p, D,
|
|
42207
|
+
var I, T, p, D, f;
|
|
41947
42208
|
const F = r && l !== Number(q) && x.id === (a == null ? void 0 : a.id);
|
|
41948
42209
|
try {
|
|
41949
42210
|
r && x.id !== (a == null ? void 0 : a.id) && await nr(oo), F && await ((I = x == null ? void 0 : x.switchChain) == null ? void 0 : I.call(x, {
|
|
@@ -41963,7 +42224,7 @@ const YD = [
|
|
|
41963
42224
|
walletName: x.name,
|
|
41964
42225
|
chainId: q,
|
|
41965
42226
|
chainType: R.EVM
|
|
41966
|
-
}), { address: B[0], logo: (
|
|
42227
|
+
}), { address: B[0], logo: (f = M == null ? void 0 : M.icons) == null ? void 0 : f[0] };
|
|
41967
42228
|
} catch (B) {
|
|
41968
42229
|
const w = B;
|
|
41969
42230
|
throw V("connect wallet error", {
|
|
@@ -42050,9 +42311,9 @@ const YD = [
|
|
|
42050
42311
|
}
|
|
42051
42312
|
};
|
|
42052
42313
|
}
|
|
42053
|
-
|
|
42314
|
+
b.push(E);
|
|
42054
42315
|
}
|
|
42055
|
-
return
|
|
42316
|
+
return b;
|
|
42056
42317
|
},
|
|
42057
42318
|
[
|
|
42058
42319
|
u,
|
|
@@ -42074,12 +42335,12 @@ const YD = [
|
|
|
42074
42335
|
const l = [];
|
|
42075
42336
|
for (const s of ht) {
|
|
42076
42337
|
const u = s.name === "WalletConnect", d = async () => {
|
|
42077
|
-
var g,
|
|
42338
|
+
var g, b, x, C, v, A, E;
|
|
42078
42339
|
try {
|
|
42079
42340
|
await s.connect();
|
|
42080
42341
|
const q = e == null ? void 0 : e.find((T) => T.chainID === "solana");
|
|
42081
42342
|
n === void 0 && a(R.SVM);
|
|
42082
|
-
const F = (g = s.publicKey) == null ? void 0 : g.toBase58(), I = (v = (C = (x = (
|
|
42343
|
+
const F = (g = s.publicKey) == null ? void 0 : g.toBase58(), I = (v = (C = (x = (b = s == null ? void 0 : s._wallet) == null ? void 0 : b._UniversalProvider) == null ? void 0 : x.session) == null ? void 0 : C.peer) == null ? void 0 : v.metadata;
|
|
42083
42344
|
return c(R.SVM), i === void 0 && ((A = t == null ? void 0 : t.onWalletConnected) == null || A.call(t, {
|
|
42084
42345
|
walletName: s.name,
|
|
42085
42346
|
chainId: q == null ? void 0 : q.chainID,
|
|
@@ -42112,12 +42373,12 @@ const YD = [
|
|
|
42112
42373
|
try {
|
|
42113
42374
|
if (g)
|
|
42114
42375
|
throw new Error("always prompt wallet connection");
|
|
42115
|
-
const
|
|
42116
|
-
if (!
|
|
42376
|
+
const b = s.publicKey;
|
|
42377
|
+
if (!b)
|
|
42117
42378
|
throw new Error("Address not found");
|
|
42118
|
-
return { address:
|
|
42119
|
-
} catch (
|
|
42120
|
-
return console.error(
|
|
42379
|
+
return { address: b.toBase58() };
|
|
42380
|
+
} catch (b) {
|
|
42381
|
+
return console.error(b), d();
|
|
42121
42382
|
}
|
|
42122
42383
|
},
|
|
42123
42384
|
disconnect: async () => {
|
|
@@ -42194,7 +42455,7 @@ const YD = [
|
|
|
42194
42455
|
prettyName: "injected"
|
|
42195
42456
|
}
|
|
42196
42457
|
};
|
|
42197
|
-
const
|
|
42458
|
+
const b = (() => {
|
|
42198
42459
|
if (!(!c || !u))
|
|
42199
42460
|
return c[u];
|
|
42200
42461
|
})();
|
|
@@ -42203,13 +42464,13 @@ const YD = [
|
|
|
42203
42464
|
if (!e.cosmos) return;
|
|
42204
42465
|
const v = Xo(e.cosmos.walletName);
|
|
42205
42466
|
return {
|
|
42206
|
-
address: (
|
|
42467
|
+
address: (b == null ? void 0 : b.bech32Address) ?? ((C = e.cosmos) == null ? void 0 : C.id),
|
|
42207
42468
|
chainType: h,
|
|
42208
42469
|
wallet: {
|
|
42209
42470
|
name: e.cosmos.walletName,
|
|
42210
42471
|
prettyName: v.name,
|
|
42211
42472
|
logo: v.imgSrc,
|
|
42212
|
-
isLedger:
|
|
42473
|
+
isLedger: b == null ? void 0 : b.isNanoLedger
|
|
42213
42474
|
}
|
|
42214
42475
|
};
|
|
42215
42476
|
}
|
|
@@ -42299,7 +42560,7 @@ const YD = [
|
|
|
42299
42560
|
direction: i = "right"
|
|
42300
42561
|
}) => {
|
|
42301
42562
|
var u;
|
|
42302
|
-
const [o, t] = se(!1), c =
|
|
42563
|
+
const [o, t] = se(!1), c = fi(null), a = fi(null), [r, l] = se(0);
|
|
42303
42564
|
ae(() => {
|
|
42304
42565
|
var d;
|
|
42305
42566
|
if (o && a.current) {
|
|
@@ -42442,7 +42703,7 @@ const YD = [
|
|
|
42442
42703
|
onClick: (q) => {
|
|
42443
42704
|
q.stopPropagation(), t(h == null ? void 0 : h.address);
|
|
42444
42705
|
},
|
|
42445
|
-
children: /* @__PURE__ */ m(
|
|
42706
|
+
children: /* @__PURE__ */ m(bm, { width: "10", height: "10", color: a.primary.text.lowContrast })
|
|
42446
42707
|
}
|
|
42447
42708
|
)
|
|
42448
42709
|
}
|
|
@@ -42473,7 +42734,7 @@ const YD = [
|
|
|
42473
42734
|
connectedWalletModal: i
|
|
42474
42735
|
}) => {
|
|
42475
42736
|
const o = ym(), t = W(() => m1.filter((c) => c !== e), [e]);
|
|
42476
|
-
return /* @__PURE__ */ m(
|
|
42737
|
+
return /* @__PURE__ */ m(be, { children: t.map((c) => /* @__PURE__ */ m(
|
|
42477
42738
|
r1,
|
|
42478
42739
|
{
|
|
42479
42740
|
chainType: c,
|
|
@@ -42483,10 +42744,10 @@ const YD = [
|
|
|
42483
42744
|
},
|
|
42484
42745
|
c
|
|
42485
42746
|
)) });
|
|
42486
|
-
}, p1 =
|
|
42747
|
+
}, p1 = bo((e) => {
|
|
42487
42748
|
const { chainId: n, chainType: i, fromConnectedWalletModal: o } = e, { data: t } = L(Fe), c = Ct(), a = da({ chainID: n, chainType: i }), r = L(xe), s = ui()(r == null ? void 0 : r.chainID), u = t == null ? void 0 : t.find((q) => q.chainID === (r == null ? void 0 : r.chainID)), [d, h] = se(
|
|
42488
42749
|
i ?? (u == null ? void 0 : u.chainType)
|
|
42489
|
-
), g = ym(),
|
|
42750
|
+
), g = ym(), b = t == null ? void 0 : t.find((q) => {
|
|
42490
42751
|
if (d)
|
|
42491
42752
|
return q.chainID === g[d];
|
|
42492
42753
|
}), x = !s && d === (u == null ? void 0 : u.chainType), C = W(() => {
|
|
@@ -42499,7 +42760,7 @@ const YD = [
|
|
|
42499
42760
|
}, A = (q) => {
|
|
42500
42761
|
q != null && q.walletChainType && (q == null ? void 0 : q.walletChainType) !== (u == null ? void 0 : u.chainType) && c(q.walletChainType);
|
|
42501
42762
|
}, E = W(() => {
|
|
42502
|
-
switch ((
|
|
42763
|
+
switch ((b == null ? void 0 : b.chainType) ?? (u == null ? void 0 : u.chainType)) {
|
|
42503
42764
|
case R.Cosmos:
|
|
42504
42765
|
return "Connect cosmos wallet";
|
|
42505
42766
|
case R.EVM:
|
|
@@ -42509,7 +42770,7 @@ const YD = [
|
|
|
42509
42770
|
default:
|
|
42510
42771
|
return "Connect wallet";
|
|
42511
42772
|
}
|
|
42512
|
-
}, [
|
|
42773
|
+
}, [b == null ? void 0 : b.chainType, u == null ? void 0 : u.chainType]);
|
|
42513
42774
|
return /* @__PURE__ */ m(
|
|
42514
42775
|
Am,
|
|
42515
42776
|
{
|
|
@@ -42524,7 +42785,7 @@ const YD = [
|
|
|
42524
42785
|
{
|
|
42525
42786
|
width: "25px",
|
|
42526
42787
|
height: "25px",
|
|
42527
|
-
src: (
|
|
42788
|
+
src: (b == null ? void 0 : b.logoURI) ?? (u == null ? void 0 : u.logoURI)
|
|
42528
42789
|
}
|
|
42529
42790
|
) }),
|
|
42530
42791
|
bottomContent: x && /* @__PURE__ */ j(pe, { children: [
|
|
@@ -42542,7 +42803,7 @@ const YD = [
|
|
|
42542
42803
|
height: 40px;
|
|
42543
42804
|
border-radius: 10px;
|
|
42544
42805
|
background: ${({ theme: e }) => e.secondary.background.normal};
|
|
42545
|
-
`, d1 = 60, D1 = 5, x1 =
|
|
42806
|
+
`, d1 = 60, D1 = 5, x1 = bo(() => {
|
|
42546
42807
|
const e = L(xe), { chainImage: n, chainName: i } = Oe({
|
|
42547
42808
|
assetDenom: e == null ? void 0 : e.denom,
|
|
42548
42809
|
chainId: e == null ? void 0 : e.chainID
|
|
@@ -42558,7 +42819,7 @@ const YD = [
|
|
|
42558
42819
|
rightContent: e != null && e.chainID ? /* @__PURE__ */ m("img", { src: n, height: 36, width: 36, title: i }) : null
|
|
42559
42820
|
}
|
|
42560
42821
|
),
|
|
42561
|
-
/* @__PURE__ */ m(
|
|
42822
|
+
/* @__PURE__ */ m(fm, { height: (d1 + D1) * 3, children: /* @__PURE__ */ m(Em, { connectedWalletModal: !0 }) })
|
|
42562
42823
|
] });
|
|
42563
42824
|
}), g1 = ({ color: e = "currentColor" }) => /* @__PURE__ */ m("svg", { width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ m(
|
|
42564
42825
|
"path",
|
|
@@ -42624,7 +42885,7 @@ const YD = [
|
|
|
42624
42885
|
fill: e
|
|
42625
42886
|
}
|
|
42626
42887
|
)
|
|
42627
|
-
] }),
|
|
42888
|
+
] }), b1 = () => {
|
|
42628
42889
|
const e = L(ai);
|
|
42629
42890
|
return W(
|
|
42630
42891
|
() => e.slippage !== yc.slippage || e.routePreference !== yc.routePreference,
|
|
@@ -42633,13 +42894,13 @@ const YD = [
|
|
|
42633
42894
|
}, Fc = /* @__PURE__ */ j(O, { "data-logo": "skip-go", align: "center", gap: 5, children: [
|
|
42634
42895
|
"Powered by ",
|
|
42635
42896
|
/* @__PURE__ */ m(Fm, {})
|
|
42636
|
-
] }),
|
|
42897
|
+
] }), f1 = ({
|
|
42637
42898
|
content: e = null,
|
|
42638
42899
|
showRouteInfo: n,
|
|
42639
42900
|
showEstimatedTime: i,
|
|
42640
42901
|
highlightSettings: o
|
|
42641
42902
|
}) => {
|
|
42642
|
-
const { data: t, isLoading: c } = L(Wn), a =
|
|
42903
|
+
const { data: t, isLoading: c } = L(Wn), a = b1(), r = L(Dt), l = Ye(), s = bt(t), u = Cc(t == null ? void 0 : t.estimatedRouteDurationSeconds), d = (t == null ? void 0 : t.txsRequired) && t.txsRequired > 1, h = W(() => t != null && t.txsRequired ? /* @__PURE__ */ m(O, { gap: 4, align: "center", children: /* @__PURE__ */ j(A1, { gap: 5, align: "flex-end", children: [
|
|
42643
42904
|
t.txsRequired,
|
|
42644
42905
|
" ",
|
|
42645
42906
|
Qi("Signature", t.txsRequired),
|
|
@@ -42652,13 +42913,13 @@ const YD = [
|
|
|
42652
42913
|
case ti.CHEAPEST:
|
|
42653
42914
|
return "Cheapest route";
|
|
42654
42915
|
}
|
|
42655
|
-
}, [r]),
|
|
42916
|
+
}, [r]), b = W(() => {
|
|
42656
42917
|
const C = () => s ? g : Fc;
|
|
42657
|
-
return /* @__PURE__ */ j(
|
|
42918
|
+
return /* @__PURE__ */ j(be, { children: [
|
|
42658
42919
|
(() => {
|
|
42659
42920
|
if (e) return e;
|
|
42660
42921
|
if (!c && n && t)
|
|
42661
|
-
return /* @__PURE__ */ m(O, { align: "flex-end", gap: 8, children: i && u && /* @__PURE__ */ j(
|
|
42922
|
+
return /* @__PURE__ */ m(O, { align: "flex-end", gap: 8, children: i && u && /* @__PURE__ */ j(be, { children: [
|
|
42662
42923
|
/* @__PURE__ */ j(
|
|
42663
42924
|
es,
|
|
42664
42925
|
{
|
|
@@ -42690,12 +42951,12 @@ const YD = [
|
|
|
42690
42951
|
a,
|
|
42691
42952
|
i,
|
|
42692
42953
|
n
|
|
42693
|
-
]), x = W(() => /* @__PURE__ */ j(
|
|
42954
|
+
]), x = W(() => /* @__PURE__ */ j(be, { children: [
|
|
42694
42955
|
(() => {
|
|
42695
42956
|
if (e) return e;
|
|
42696
42957
|
if (!c && n && t)
|
|
42697
42958
|
return /* @__PURE__ */ j(O, { align: "flex-end", gap: 10, height: 13, children: [
|
|
42698
|
-
i && u && /* @__PURE__ */ j(
|
|
42959
|
+
i && u && /* @__PURE__ */ j(be, { children: [
|
|
42699
42960
|
/* @__PURE__ */ j(
|
|
42700
42961
|
es,
|
|
42701
42962
|
{
|
|
@@ -42731,7 +42992,7 @@ const YD = [
|
|
|
42731
42992
|
i,
|
|
42732
42993
|
n
|
|
42733
42994
|
]);
|
|
42734
|
-
return l ?
|
|
42995
|
+
return l ? b : x;
|
|
42735
42996
|
}, Da = ({
|
|
42736
42997
|
onClick: e,
|
|
42737
42998
|
content: n,
|
|
@@ -42749,7 +43010,7 @@ const YD = [
|
|
|
42749
43010
|
height: 35,
|
|
42750
43011
|
...c,
|
|
42751
43012
|
children: /* @__PURE__ */ m(
|
|
42752
|
-
|
|
43013
|
+
f1,
|
|
42753
43014
|
{
|
|
42754
43015
|
content: n,
|
|
42755
43016
|
showRouteInfo: i,
|
|
@@ -42861,7 +43122,7 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
42861
43122
|
},
|
|
42862
43123
|
r
|
|
42863
43124
|
)),
|
|
42864
|
-
/* @__PURE__ */ m(F1, { children: a || e ? /* @__PURE__ */ j(
|
|
43125
|
+
/* @__PURE__ */ m(F1, { children: a || e ? /* @__PURE__ */ j(be, { children: [
|
|
42865
43126
|
/* @__PURE__ */ m(
|
|
42866
43127
|
M1,
|
|
42867
43128
|
{
|
|
@@ -43006,7 +43267,7 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43006
43267
|
letter-spacing: 0.26px;
|
|
43007
43268
|
`, j1 = N(O)`
|
|
43008
43269
|
width: 100%;
|
|
43009
|
-
`, I1 =
|
|
43270
|
+
`, I1 = bo(() => {
|
|
43010
43271
|
const e = de(), { data: n } = L(Wn), { data: i } = L(Fe), o = W(() => n == null ? void 0 : n.chainIDs.map((l) => i == null ? void 0 : i.find((s) => s.chainID === l)), [n, i]), t = Ti(n == null ? void 0 : n.operations), c = W(() => t ? t.filter(
|
|
43011
43272
|
(l) => [
|
|
43012
43273
|
Me.axelarTransfer,
|
|
@@ -43023,13 +43284,13 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43023
43284
|
sourceChainFeeAmount: d,
|
|
43024
43285
|
destinationChainFeeAmount: h,
|
|
43025
43286
|
bpsFeeAmount: g,
|
|
43026
|
-
sourceChainFeeUSD:
|
|
43287
|
+
sourceChainFeeUSD: b,
|
|
43027
43288
|
destinationChainFeeUSD: x,
|
|
43028
43289
|
bpsFeeUSD: C
|
|
43029
43290
|
} = s, v = [d, h, g].reduce(
|
|
43030
43291
|
(q, F) => q + Number(F),
|
|
43031
43292
|
0
|
|
43032
|
-
), A = [
|
|
43293
|
+
), A = [b, x, C].reduce(
|
|
43033
43294
|
(q, F) => q + Number(F),
|
|
43034
43295
|
0
|
|
43035
43296
|
), E = nn(
|
|
@@ -43169,7 +43430,7 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43169
43430
|
`, T1 = N(Mc)`
|
|
43170
43431
|
border-radius: 50%;
|
|
43171
43432
|
`, Mm = Q(void 0), xa = ri((e) => {
|
|
43172
|
-
const n = e(
|
|
43433
|
+
const n = e(bn), i = e(Mm), o = e(ro);
|
|
43173
43434
|
return {
|
|
43174
43435
|
queryKey: ["skipBalances", i],
|
|
43175
43436
|
queryFn: async () => i ? Object.keys(i.chains).length === 0 ? { chains: {} } : n.balances(i) : { chains: {} },
|
|
@@ -43222,24 +43483,24 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43222
43483
|
return h ? { ...h, asset: d } : null;
|
|
43223
43484
|
}).filter((d) => {
|
|
43224
43485
|
if (!d) return !1;
|
|
43225
|
-
const h = t == null ? void 0 : t[i], g = c == null ? void 0 : c[i],
|
|
43226
|
-
return
|
|
43486
|
+
const h = t == null ? void 0 : t[i], g = c == null ? void 0 : c[i], b = !h || d.chainID in h, x = !!(g != null && g[d.chainID] && (g == null ? void 0 : g[d.chainID]) === void 0), C = i !== "source" || !d.chainID.startsWith("penumbra");
|
|
43487
|
+
return b && C && !x;
|
|
43227
43488
|
}).filter((d) => {
|
|
43228
|
-
const { chainName: h, prettyName: g } = d,
|
|
43229
|
-
return
|
|
43489
|
+
const { chainName: h, prettyName: g } = d, b = h.toLowerCase().includes(n.toLowerCase()), x = g.toLowerCase().includes(n.toLowerCase());
|
|
43490
|
+
return b || x;
|
|
43230
43491
|
}).sort((d, h) => {
|
|
43231
|
-
var D,
|
|
43492
|
+
var D, f, B, w, M, z, k, P;
|
|
43232
43493
|
const g = Number(
|
|
43233
43494
|
((D = a(d.chainID, d.asset.denom)) == null ? void 0 : D.valueUSD) ?? 0
|
|
43234
|
-
),
|
|
43235
|
-
((
|
|
43495
|
+
), b = Number(
|
|
43496
|
+
((f = a(h.chainID, h.asset.denom)) == null ? void 0 : f.valueUSD) ?? 0
|
|
43236
43497
|
), x = Number(
|
|
43237
43498
|
((B = a(d.chainID, d.asset.denom)) == null ? void 0 : B.amount) ?? 0
|
|
43238
43499
|
), C = Number(
|
|
43239
43500
|
((w = a(h.chainID, h.asset.denom)) == null ? void 0 : w.amount) ?? 0
|
|
43240
43501
|
);
|
|
43241
|
-
if (g !==
|
|
43242
|
-
return
|
|
43502
|
+
if (g !== b)
|
|
43503
|
+
return b - g;
|
|
43243
43504
|
if (x !== C)
|
|
43244
43505
|
return C - x;
|
|
43245
43506
|
const v = r.indexOf(d.asset.denom), A = r.indexOf(h.asset.denom), E = v !== -1, q = A !== -1;
|
|
@@ -43262,7 +43523,7 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43262
43523
|
a,
|
|
43263
43524
|
r
|
|
43264
43525
|
]);
|
|
43265
|
-
}, L1 = 6,
|
|
43526
|
+
}, L1 = 6, ba = ({ groupedAsset: e, height: n, width: i }) => {
|
|
43266
43527
|
var l;
|
|
43267
43528
|
const [o, t] = se(0);
|
|
43268
43529
|
if (!(e != null && e.assets) || e.assets.length === 0)
|
|
@@ -43341,14 +43602,15 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43341
43602
|
context: n,
|
|
43342
43603
|
eureka: i
|
|
43343
43604
|
}) => {
|
|
43605
|
+
var c;
|
|
43344
43606
|
const o = Sm({ selectedGroup: e, context: n }) ?? [], t = o.length > 1 ? /* @__PURE__ */ m(X, { children: `${o.length} networks` }) : /* @__PURE__ */ j(X, { children: [
|
|
43345
43607
|
"on ",
|
|
43346
|
-
o[0].chainName
|
|
43608
|
+
(c = o[0]) == null ? void 0 : c.chainName
|
|
43347
43609
|
] });
|
|
43348
43610
|
return /* @__PURE__ */ m(
|
|
43349
43611
|
qm,
|
|
43350
43612
|
{
|
|
43351
|
-
image: /* @__PURE__ */ m(
|
|
43613
|
+
image: /* @__PURE__ */ m(ba, { height: 35, width: 35, groupedAsset: e }),
|
|
43352
43614
|
mainText: e.assets[0].recommendedSymbol,
|
|
43353
43615
|
subText: t,
|
|
43354
43616
|
eureka: i
|
|
@@ -43459,7 +43721,7 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43459
43721
|
), jm = ({
|
|
43460
43722
|
context: e
|
|
43461
43723
|
}) => {
|
|
43462
|
-
const { data: n } = L(
|
|
43724
|
+
const { data: n } = L(fn), i = kt(), o = L(ra), t = L(sa), c = W(() => {
|
|
43463
43725
|
const r = o == null ? void 0 : o[e], l = t == null ? void 0 : t[e];
|
|
43464
43726
|
return n == null ? void 0 : n.filter((s) => {
|
|
43465
43727
|
const u = !r || Object.entries(r).some(([h, g]) => g ? h === s.chainID && g.includes(s.denom) : h === s.chainID), d = !!l && Object.entries(l).some(([h, g]) => g ? h === s.chainID && g.includes(s.denom) : h === s.chainID);
|
|
@@ -43515,7 +43777,7 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43515
43777
|
context: s,
|
|
43516
43778
|
disabled: u
|
|
43517
43779
|
}) => {
|
|
43518
|
-
const d = de(), [h, g] = se(!1),
|
|
43780
|
+
const d = de(), [h, g] = se(!1), b = Ye(), x = h || l, C = Oe({
|
|
43519
43781
|
assetDenom: o == null ? void 0 : o.denom,
|
|
43520
43782
|
amount: e,
|
|
43521
43783
|
chainId: o == null ? void 0 : o.chainID
|
|
@@ -43528,8 +43790,8 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43528
43790
|
if (!i) return;
|
|
43529
43791
|
let D = p.target.value;
|
|
43530
43792
|
D.startsWith(".") && (D = "0" + D), D = D.replace(/[^\d.]/g, "");
|
|
43531
|
-
const
|
|
43532
|
-
|
|
43793
|
+
const f = D.indexOf(".");
|
|
43794
|
+
f !== -1 && (D = D.substring(0, f + 1) + D.substring(f + 1).replace(/\./g, "")), D = D.replace(/^0+(?!\.)/, "0");
|
|
43533
43795
|
const B = Nt(D);
|
|
43534
43796
|
i == null || i(co(B, C == null ? void 0 : C.decimals));
|
|
43535
43797
|
}, q = (p) => {
|
|
@@ -43568,9 +43830,9 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43568
43830
|
),
|
|
43569
43831
|
/* @__PURE__ */ j(Q1, { onClick: t, disabled: u, gap: 5, children: [
|
|
43570
43832
|
C != null && C.assetImage && C.symbol ? /* @__PURE__ */ j(wt, { align: "center", justify: "center", gap: 7, children: [
|
|
43571
|
-
/* @__PURE__ */ m(
|
|
43833
|
+
/* @__PURE__ */ m(ba, { height: 23, width: 23, groupedAsset: A }),
|
|
43572
43834
|
/* @__PURE__ */ m(Te, { children: C.symbol }),
|
|
43573
|
-
|
|
43835
|
+
b && /* @__PURE__ */ m(
|
|
43574
43836
|
Ot,
|
|
43575
43837
|
{
|
|
43576
43838
|
width: "13px",
|
|
@@ -43581,7 +43843,7 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43581
43843
|
)
|
|
43582
43844
|
] }) : /* @__PURE__ */ j(Im, { align: "center", justify: "center", gap: 7, children: [
|
|
43583
43845
|
/* @__PURE__ */ m(Te, { mainButtonColor: d.brandColor, children: "Select asset" }),
|
|
43584
|
-
|
|
43846
|
+
b && /* @__PURE__ */ m(
|
|
43585
43847
|
Ot,
|
|
43586
43848
|
{
|
|
43587
43849
|
width: "13px",
|
|
@@ -43591,7 +43853,7 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43591
43853
|
}
|
|
43592
43854
|
)
|
|
43593
43855
|
] }),
|
|
43594
|
-
!
|
|
43856
|
+
!b && /* @__PURE__ */ m(
|
|
43595
43857
|
Ot,
|
|
43596
43858
|
{
|
|
43597
43859
|
className: "chevron-icon",
|
|
@@ -43753,7 +44015,7 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43753
44015
|
setSearchTerm: t,
|
|
43754
44016
|
onKeyDown: c
|
|
43755
44017
|
}) => {
|
|
43756
|
-
const a = de(), r = e == null ? void 0 : e.assets[0], l = Ye(), s = Fi(), u =
|
|
44018
|
+
const a = de(), r = e == null ? void 0 : e.assets[0], l = Ye(), s = Fi(), u = fi(null), d = ye(
|
|
43757
44019
|
(h) => {
|
|
43758
44020
|
const g = h.target.value;
|
|
43759
44021
|
t(g), n(g);
|
|
@@ -43766,10 +44028,10 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43766
44028
|
(h = u.current) == null || h.focus();
|
|
43767
44029
|
}, 0);
|
|
43768
44030
|
}, [r, l, s]), /* @__PURE__ */ j(ix, { align: "center", gap: 5, children: [
|
|
43769
|
-
r ? /* @__PURE__ */ j(
|
|
44031
|
+
r ? /* @__PURE__ */ j(be, { children: [
|
|
43770
44032
|
/* @__PURE__ */ m(on, { onClick: i, children: /* @__PURE__ */ m($1, { color: a.primary.text.normal, maskedVersion: !1 }) }),
|
|
43771
44033
|
/* @__PURE__ */ j(ex, { gap: 5, align: "center", justify: "center", children: [
|
|
43772
|
-
/* @__PURE__ */ m(
|
|
44034
|
+
/* @__PURE__ */ m(ba, { groupedAsset: e, width: 20, height: 20 }),
|
|
43773
44035
|
/* @__PURE__ */ m(Te, { children: r == null ? void 0 : r.recommendedSymbol })
|
|
43774
44036
|
] })
|
|
43775
44037
|
] }) : /* @__PURE__ */ m(nx, { color: a.primary.text.normal }),
|
|
@@ -43785,7 +44047,7 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43785
44047
|
onKeyDown: c
|
|
43786
44048
|
}
|
|
43787
44049
|
),
|
|
43788
|
-
/* @__PURE__ */ m(O, { align: "center", gap: 5, "data-logo": "skip-go", children: !l && /* @__PURE__ */ j(
|
|
44050
|
+
/* @__PURE__ */ m(O, { align: "center", gap: 5, "data-logo": "skip-go", children: !l && /* @__PURE__ */ j(be, { children: [
|
|
43789
44051
|
/* @__PURE__ */ m(X, { textWrap: "nowrap", children: " Powered by " }),
|
|
43790
44052
|
/* @__PURE__ */ m(Fm, { color: a.primary.text.lowContrast })
|
|
43791
44053
|
] }) })
|
|
@@ -43824,9 +44086,9 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43824
44086
|
outline: none;
|
|
43825
44087
|
color: ${({ theme: e }) => e.primary.text.normal};
|
|
43826
44088
|
background: ${({ theme: e }) => e.primary.background.normal};
|
|
43827
|
-
`, as = 65, tx =
|
|
44089
|
+
`, as = 65, tx = bo(
|
|
43828
44090
|
(e) => {
|
|
43829
|
-
const n =
|
|
44091
|
+
const n = bs(), { onSelect: i, selectedAsset: o, selectChain: t, context: c } = e, { data: a, isFetching: r, isPending: l } = L(fn), s = L(ga), { isLoading: u } = L(Fe), d = r && l || u, [h, g] = se(!0), [b, x] = se(""), [C, v] = se(null), A = gm(as), E = () => {
|
|
43830
44092
|
x("");
|
|
43831
44093
|
}, q = ye(
|
|
43832
44094
|
(k) => {
|
|
@@ -43845,13 +44107,13 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43845
44107
|
return F == null ? void 0 : F.find(
|
|
43846
44108
|
(P) => P.id === k.recommendedSymbol
|
|
43847
44109
|
);
|
|
43848
|
-
}, [C == null ? void 0 : C.assets, o, F]), T = V1({ groupedAssetsByRecommendedSymbol: F, searchQuery:
|
|
44110
|
+
}, [C == null ? void 0 : C.assets, o, F]), T = V1({ groupedAssetsByRecommendedSymbol: F, searchQuery: b }), p = Sm({ selectedGroup: I, searchQuery: b, context: c });
|
|
43849
44111
|
ae(() => {
|
|
43850
44112
|
!d && a && g(!1);
|
|
43851
44113
|
}, [d, a]), ae(() => {
|
|
43852
44114
|
x("");
|
|
43853
44115
|
}, [n.visible]);
|
|
43854
|
-
const D = `${c} ${t ? "chain" : "asset"} modal`,
|
|
44116
|
+
const D = `${c} ${t ? "chain" : "asset"} modal`, f = (k) => {
|
|
43855
44117
|
V(`${D}: search input - changed`, { term: k }), x(k);
|
|
43856
44118
|
}, B = ye(
|
|
43857
44119
|
(k, P) => {
|
|
@@ -43877,17 +44139,17 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43877
44139
|
/* @__PURE__ */ m(
|
|
43878
44140
|
_1,
|
|
43879
44141
|
{
|
|
43880
|
-
onSearch:
|
|
44142
|
+
onSearch: f,
|
|
43881
44143
|
onClickBack: () => {
|
|
43882
44144
|
V(`${D}: header back button - clicked`), C === null ? oe.remove(he.AssetAndChainSelectorModal) : v(null);
|
|
43883
44145
|
},
|
|
43884
44146
|
groupedAsset: C ?? I,
|
|
43885
|
-
searchTerm:
|
|
44147
|
+
searchTerm: b,
|
|
43886
44148
|
setSearchTerm: x,
|
|
43887
44149
|
onKeyDown: (k) => {
|
|
43888
44150
|
V(`${D}: keyboard - pressed`, { key: k.key });
|
|
43889
44151
|
const P = (w == null ? void 0 : w[0]) ?? null, y = P == null ? void 0 : P.asset, S = P;
|
|
43890
|
-
k.key === "Backspace" && C !== null &&
|
|
44152
|
+
k.key === "Backspace" && C !== null && b === "" && v(null), k.key === "Enter" && (w == null ? void 0 : w.length) === 1 && q(y ?? S);
|
|
43891
44153
|
}
|
|
43892
44154
|
}
|
|
43893
44155
|
),
|
|
@@ -43958,12 +44220,12 @@ const C1 = new Intl.NumberFormat("en-US", {
|
|
|
43958
44220
|
}
|
|
43959
44221
|
};
|
|
43960
44222
|
var To = /* @__PURE__ */ ((e) => (e.Input = "input", e.Wallet = "wallet", e.Injected = "injected", e))(To || {});
|
|
43961
|
-
const sx =
|
|
44223
|
+
const sx = bo((e) => {
|
|
43962
44224
|
var z, k, P;
|
|
43963
44225
|
const n = Ye(), { chainId: i, chainAddressIndex: o } = e, { route: t } = L(Ve), c = t == null ? void 0 : t.requiredChainAddresses;
|
|
43964
44226
|
if (e.chainAddressIndex === void 0)
|
|
43965
44227
|
throw new Error("chain address index cannot be undefined");
|
|
43966
|
-
const a = de(), { data: r } = L(Fe), l = r == null ? void 0 : r.find((y) => y.chainID === i), s = l == null ? void 0 : l.prettyName, u = l == null ? void 0 : l.logoURI, [d, h] = se(!1), [g,
|
|
44228
|
+
const a = de(), { data: r } = L(Fe), l = r == null ? void 0 : r.find((y) => y.chainID === i), s = l == null ? void 0 : l.prettyName, u = l == null ? void 0 : l.logoURI, [d, h] = se(!1), [g, b] = se(""), x = da({ chainID: i, destinationWalletList: !0 }), [C, v] = me(Un), A = new Set(Object.values(C).map(({ chainID: y }) => y)).size > 1, E = Fi(), q = {
|
|
43967
44229
|
onSelect: () => h(!0),
|
|
43968
44230
|
walletName: "Enter address manually",
|
|
43969
44231
|
rightContent: () => {
|
|
@@ -43971,7 +44233,7 @@ const sx = fo((e) => {
|
|
|
43971
44233
|
return /* @__PURE__ */ m(Wc, { color: (y = a == null ? void 0 : a.primary) == null ? void 0 : y.text.normal });
|
|
43972
44234
|
}
|
|
43973
44235
|
}, F = (l == null ? void 0 : l.chainType) === ((z = C[0]) == null ? void 0 : z.chainType) && (l == null ? void 0 : l.chainType) !== R.Cosmos, I = e.signRequired, T = [...x, ...I ? [] : [q]], p = ye((y) => {
|
|
43974
|
-
|
|
44236
|
+
b(y.target.value);
|
|
43975
44237
|
}, []), D = W(() => {
|
|
43976
44238
|
if (!l || g.length === 0) return;
|
|
43977
44239
|
const { chainType: y, bech32Prefix: S, chainID: H } = l;
|
|
@@ -43981,7 +44243,7 @@ const sx = fo((e) => {
|
|
|
43981
44243
|
chainType: y,
|
|
43982
44244
|
chainId: H
|
|
43983
44245
|
});
|
|
43984
|
-
}, [l, g]),
|
|
44246
|
+
}, [l, g]), f = W(() => {
|
|
43985
44247
|
if (!l) return "Enter address...";
|
|
43986
44248
|
const { chainType: y, bech32Prefix: S } = l;
|
|
43987
44249
|
switch (y) {
|
|
@@ -44044,7 +44306,7 @@ const sx = fo((e) => {
|
|
|
44044
44306
|
};
|
|
44045
44307
|
});
|
|
44046
44308
|
};
|
|
44047
|
-
return /* @__PURE__ */ m(
|
|
44309
|
+
return /* @__PURE__ */ m(be, { children: d ? /* @__PURE__ */ j(At, { children: [
|
|
44048
44310
|
/* @__PURE__ */ m(
|
|
44049
44311
|
ua,
|
|
44050
44312
|
{
|
|
@@ -44058,7 +44320,7 @@ const sx = fo((e) => {
|
|
|
44058
44320
|
/* @__PURE__ */ m(
|
|
44059
44321
|
hx,
|
|
44060
44322
|
{
|
|
44061
|
-
placeholder:
|
|
44323
|
+
placeholder: f,
|
|
44062
44324
|
value: g,
|
|
44063
44325
|
onChange: p,
|
|
44064
44326
|
validAddress: D
|
|
@@ -44255,7 +44517,7 @@ const Hm = Q(void 0), Tm = () => {
|
|
|
44255
44517
|
chainId: s,
|
|
44256
44518
|
tokenAmount: c
|
|
44257
44519
|
});
|
|
44258
|
-
return /* @__PURE__ */ j(
|
|
44520
|
+
return /* @__PURE__ */ j(be, { children: [
|
|
44259
44521
|
/* @__PURE__ */ m(
|
|
44260
44522
|
Xe,
|
|
44261
44523
|
{
|
|
@@ -44272,7 +44534,7 @@ const Hm = Q(void 0), Tm = () => {
|
|
|
44272
44534
|
gn,
|
|
44273
44535
|
{
|
|
44274
44536
|
title: "Warning: Incomplete Price Data",
|
|
44275
|
-
description: /* @__PURE__ */ j(
|
|
44537
|
+
description: /* @__PURE__ */ j(be, { children: [
|
|
44276
44538
|
/* @__PURE__ */ j(X, { color: o.warning.text, textAlign: "center", textWrap: "balance", children: [
|
|
44277
44539
|
"USD price data is missing for one of the assets, please double check the input and output amounts are acceptable before continuing.",
|
|
44278
44540
|
/* @__PURE__ */ m("br", {}),
|
|
@@ -44312,7 +44574,7 @@ const Hm = Q(void 0), Tm = () => {
|
|
|
44312
44574
|
}
|
|
44313
44575
|
)
|
|
44314
44576
|
] });
|
|
44315
|
-
},
|
|
44577
|
+
}, bx = () => {
|
|
44316
44578
|
const [e] = me(je), n = W(() => {
|
|
44317
44579
|
switch (e == null ? void 0 : e.errorType) {
|
|
44318
44580
|
case ke.AuthFailed:
|
|
@@ -44355,7 +44617,7 @@ const Hm = Q(void 0), Tm = () => {
|
|
|
44355
44617
|
assetDenom: e,
|
|
44356
44618
|
chainId: o,
|
|
44357
44619
|
tokenAmount: n
|
|
44358
|
-
}), g = L(Un),
|
|
44620
|
+
}), g = L(Un), b = W(() => {
|
|
44359
44621
|
var E, q;
|
|
44360
44622
|
const A = Object.values(g);
|
|
44361
44623
|
switch (r) {
|
|
@@ -44380,7 +44642,7 @@ const Hm = Q(void 0), Tm = () => {
|
|
|
44380
44642
|
}, [a, s]);
|
|
44381
44643
|
return /* @__PURE__ */ j(O, { gap: 25, align: "center", children: [
|
|
44382
44644
|
/* @__PURE__ */ m(
|
|
44383
|
-
|
|
44645
|
+
ft,
|
|
44384
44646
|
{
|
|
44385
44647
|
width: 50,
|
|
44386
44648
|
height: 50,
|
|
@@ -44399,7 +44661,7 @@ const Hm = Q(void 0), Tm = () => {
|
|
|
44399
44661
|
}
|
|
44400
44662
|
),
|
|
44401
44663
|
/* @__PURE__ */ j(pe, { gap: 5, children: [
|
|
44402
|
-
/* @__PURE__ */ j(
|
|
44664
|
+
/* @__PURE__ */ j(fx, { children: [
|
|
44403
44665
|
x,
|
|
44404
44666
|
" ",
|
|
44405
44667
|
h == null ? void 0 : h.symbol
|
|
@@ -44410,9 +44672,9 @@ const Hm = Q(void 0), Tm = () => {
|
|
|
44410
44672
|
"on ",
|
|
44411
44673
|
h.chainName
|
|
44412
44674
|
] }),
|
|
44413
|
-
/* @__PURE__ */ j(on, { align: "center", gap: 3, onClick: () => u(
|
|
44414
|
-
|
|
44415
|
-
|
|
44675
|
+
/* @__PURE__ */ j(on, { align: "center", gap: 3, onClick: () => u(b.address), children: [
|
|
44676
|
+
b.image && /* @__PURE__ */ m("img", { height: 10, width: 10, src: b.image }),
|
|
44677
|
+
b.address && /* @__PURE__ */ m(X, { monospace: !0, title: b.address, textWrap: "nowrap", children: d ? "Address copied!" : xo(b.address, s) })
|
|
44416
44678
|
] }),
|
|
44417
44679
|
a ? C : c ? /* @__PURE__ */ m(
|
|
44418
44680
|
on,
|
|
@@ -44426,7 +44688,7 @@ const Hm = Q(void 0), Tm = () => {
|
|
|
44426
44688
|
] })
|
|
44427
44689
|
] })
|
|
44428
44690
|
] });
|
|
44429
|
-
},
|
|
44691
|
+
}, fx = N(Te)`
|
|
44430
44692
|
font-size: 24px;
|
|
44431
44693
|
max-width: 325px;
|
|
44432
44694
|
height: 27px;
|
|
@@ -44499,7 +44761,7 @@ const Hm = Q(void 0), Tm = () => {
|
|
|
44499
44761
|
tokenAmount: l.amountOut,
|
|
44500
44762
|
chainId: l.toChainID ?? l.chainID,
|
|
44501
44763
|
usdValue: a == null ? void 0 : a.usdAmountOut
|
|
44502
|
-
}, g = (x = s == null ? void 0 : s[r.transferIndex]) == null ? void 0 : x.fromExplorerLink,
|
|
44764
|
+
}, g = (x = s == null ? void 0 : s[r.transferIndex]) == null ? void 0 : x.fromExplorerLink, b = (C = s == null ? void 0 : s[l.transferIndex]) == null ? void 0 : C.toExplorerLink;
|
|
44503
44765
|
return /* @__PURE__ */ j(yx, { justify: "space-between", children: [
|
|
44504
44766
|
/* @__PURE__ */ m(
|
|
44505
44767
|
ss,
|
|
@@ -44518,7 +44780,7 @@ const Hm = Q(void 0), Tm = () => {
|
|
|
44518
44780
|
icon: J.pen,
|
|
44519
44781
|
status: u,
|
|
44520
44782
|
onClickEditDestinationWallet: i,
|
|
44521
|
-
explorerLink:
|
|
44783
|
+
explorerLink: b,
|
|
44522
44784
|
context: "destination"
|
|
44523
44785
|
}
|
|
44524
44786
|
)
|
|
@@ -44637,7 +44899,7 @@ const Hm = Q(void 0), Tm = () => {
|
|
|
44637
44899
|
firstOperationStatus: t,
|
|
44638
44900
|
secondOperationStatus: c
|
|
44639
44901
|
}) => {
|
|
44640
|
-
var
|
|
44902
|
+
var b;
|
|
44641
44903
|
const { data: a } = L(ea), { data: r } = L($0), l = e[0], s = n == null ? void 0 : n.transferEvents, u = ye(
|
|
44642
44904
|
(x) => {
|
|
44643
44905
|
var T, p;
|
|
@@ -44724,7 +44986,7 @@ const Hm = Q(void 0), Tm = () => {
|
|
|
44724
44986
|
tokenAmount: l.amountIn,
|
|
44725
44987
|
denom: l.denomIn,
|
|
44726
44988
|
chainId: l.fromChainID,
|
|
44727
|
-
explorerLink: (
|
|
44989
|
+
explorerLink: (b = s == null ? void 0 : s[0]) == null ? void 0 : b.fromExplorerLink,
|
|
44728
44990
|
status: t,
|
|
44729
44991
|
context: "source",
|
|
44730
44992
|
index: 0
|
|
@@ -44763,20 +45025,20 @@ const Hm = Q(void 0), Tm = () => {
|
|
|
44763
45025
|
height: 25px;
|
|
44764
45026
|
`, jx = () => {
|
|
44765
45027
|
var E, q, F;
|
|
44766
|
-
const [e, n] = me(Un), { route: i, overallStatus: o } = L(Ve), t = i == null ? void 0 : i.requiredChainAddresses, { data: c } = L(Fe), a = L(rt), [r, l] = se(!0), [s, u] = se(!1), [d, h] = se(), { createCosmosWallets: g } = Cm(), { createEvmWallets:
|
|
45028
|
+
const [e, n] = me(Un), { route: i, overallStatus: o } = L(Ve), t = i == null ? void 0 : i.requiredChainAddresses, { data: c } = L(Fe), a = L(rt), [r, l] = se(!0), [s, u] = se(!1), [d, h] = se(), { createCosmosWallets: g } = Cm(), { createEvmWallets: b } = km(), { createSolanaWallets: x } = wm();
|
|
44767
45029
|
me(t2);
|
|
44768
45030
|
const C = L(st), v = W(() => i != null && i.operations ? Ti(i.operations).filter((p) => p.signRequired).map((p) => p.fromChainID) : void 0, [i == null ? void 0 : i.operations]), A = ye(
|
|
44769
45031
|
async (I) => {
|
|
44770
45032
|
l(!0);
|
|
44771
45033
|
const T = {
|
|
44772
45034
|
[R.Cosmos]: g,
|
|
44773
|
-
[R.EVM]:
|
|
45035
|
+
[R.EVM]: b,
|
|
44774
45036
|
[R.SVM]: x
|
|
44775
45037
|
};
|
|
44776
45038
|
t && t.forEach(async (p, D) => {
|
|
44777
45039
|
var w, M;
|
|
44778
|
-
const
|
|
44779
|
-
if (!
|
|
45040
|
+
const f = c == null ? void 0 : c.find((z) => z.chainID === p);
|
|
45041
|
+
if (!f)
|
|
44780
45042
|
return;
|
|
44781
45043
|
const B = () => {
|
|
44782
45044
|
const z = v == null ? void 0 : v.includes(p);
|
|
@@ -44788,7 +45050,7 @@ const Hm = Q(void 0), Tm = () => {
|
|
|
44788
45050
|
};
|
|
44789
45051
|
if (e[D].source !== To.Input)
|
|
44790
45052
|
try {
|
|
44791
|
-
const z =
|
|
45053
|
+
const z = f.chainType, k = T[z](p), P = (w = a[z]) == null ? void 0 : w.walletName, y = k.find((Z) => Z.walletName === P), S = v == null ? void 0 : v.includes(p), H = await ((M = y == null ? void 0 : y.getAddress) == null ? void 0 : M.call(y, { signRequired: S })), U = C == null ? void 0 : C[p], K = (C == null ? void 0 : C[p]) ?? (H == null ? void 0 : H.address);
|
|
44792
45054
|
if (!K)
|
|
44793
45055
|
throw new Error(
|
|
44794
45056
|
`Address not found in connected wallets.
|
|
@@ -44831,7 +45093,7 @@ const Hm = Q(void 0), Tm = () => {
|
|
|
44831
45093
|
},
|
|
44832
45094
|
[
|
|
44833
45095
|
g,
|
|
44834
|
-
|
|
45096
|
+
b,
|
|
44835
45097
|
x,
|
|
44836
45098
|
t,
|
|
44837
45099
|
c,
|
|
@@ -44843,12 +45105,12 @@ const Hm = Q(void 0), Tm = () => {
|
|
|
44843
45105
|
]
|
|
44844
45106
|
);
|
|
44845
45107
|
return ae(() => {
|
|
44846
|
-
var T, p, D,
|
|
45108
|
+
var T, p, D, f, B, w;
|
|
44847
45109
|
if (o !== "unconfirmed") {
|
|
44848
45110
|
l(!1);
|
|
44849
45111
|
return;
|
|
44850
45112
|
}
|
|
44851
|
-
(((T = a.cosmos) == null ? void 0 : T.id) !== ((p = d == null ? void 0 : d.cosmos) == null ? void 0 : p.id) || ((D = a.evm) == null ? void 0 : D.id) !== ((
|
|
45113
|
+
(((T = a.cosmos) == null ? void 0 : T.id) !== ((p = d == null ? void 0 : d.cosmos) == null ? void 0 : p.id) || ((D = a.evm) == null ? void 0 : D.id) !== ((f = d == null ? void 0 : d.evm) == null ? void 0 : f.id) || ((B = a.svm) == null ? void 0 : B.id) !== ((w = d == null ? void 0 : d.svm) == null ? void 0 : w.id)) && (h(a), u(!0));
|
|
44852
45114
|
}, [
|
|
44853
45115
|
A,
|
|
44854
45116
|
(E = d == null ? void 0 : d.cosmos) == null ? void 0 : E.id,
|
|
@@ -45050,7 +45312,7 @@ const Rx = ({
|
|
|
45050
45312
|
const a = Rx({
|
|
45051
45313
|
estimatedRouteDurationSeconds: n == null ? void 0 : n.estimatedRouteDurationSeconds,
|
|
45052
45314
|
swapExecutionState: e
|
|
45053
|
-
}), r = de(), l = Y(je), s = Y(tn), u = Y(aa), d =
|
|
45315
|
+
}), r = de(), l = Y(je), s = Y(tn), u = Y(aa), d = bt(n), h = ye(() => o.signRequired && (n == null ? void 0 : n.txsRequired) === 2 ? "Set second signing address" : "Set destination address", [o.signRequired, n == null ? void 0 : n.txsRequired]);
|
|
45054
45316
|
switch (e) {
|
|
45055
45317
|
case Ae.recoveryAddressUnset:
|
|
45056
45318
|
return /* @__PURE__ */ m(
|
|
@@ -45143,11 +45405,11 @@ const Rx = ({
|
|
|
45143
45405
|
}
|
|
45144
45406
|
}, Wx = (e) => {
|
|
45145
45407
|
var u, d;
|
|
45146
|
-
const n = Y(je), i = Y(tn), o = Y(xe), t = Y(On), [{ data: c }] = me(
|
|
45408
|
+
const n = Y(je), i = Y(tn), o = Y(xe), t = Y(On), [{ data: c }] = me(fn), { transactionDetailsArray: a } = L(Ve), r = a[a.length - 1], s = ye(
|
|
45147
45409
|
(h, g) => {
|
|
45148
45410
|
if (!(!h || !g) && c)
|
|
45149
45411
|
return c.find(
|
|
45150
|
-
(
|
|
45412
|
+
(b) => b.denom.toLowerCase() === h.toLowerCase() && b.chainID === g
|
|
45151
45413
|
);
|
|
45152
45414
|
},
|
|
45153
45415
|
[c]
|
|
@@ -45205,12 +45467,12 @@ const Ux = () => {
|
|
|
45205
45467
|
transactionDetailsArray: o,
|
|
45206
45468
|
isValidatingGasBalance: t,
|
|
45207
45469
|
transactionsSigned: c
|
|
45208
|
-
} = L(Ve), a = L(Un), { connectRequiredChains: r, isLoading: l } = jx(), [s, u] = se(!0), { mutate: d } = L(xm), g = (n == null ? void 0 : n.txsRequired) && n.txsRequired > 1 ? n.txsRequired - c : 0, { data:
|
|
45470
|
+
} = L(Ve), a = L(Un), { connectRequiredChains: r, isLoading: l } = jx(), [s, u] = se(!0), { mutate: d } = L(xm), g = (n == null ? void 0 : n.txsRequired) && n.txsRequired > 1 ? n.txsRequired - c : 0, { data: b } = ca({
|
|
45209
45471
|
txsRequired: n == null ? void 0 : n.txsRequired,
|
|
45210
45472
|
txs: o
|
|
45211
45473
|
});
|
|
45212
45474
|
Hx({
|
|
45213
|
-
statusData:
|
|
45475
|
+
statusData: b
|
|
45214
45476
|
});
|
|
45215
45477
|
const x = W(() => n != null && n.operations ? Ti(n.operations) : [], [n == null ? void 0 : n.operations]), C = x[x.length - 1], v = Tx({
|
|
45216
45478
|
chainAddresses: a,
|
|
@@ -45220,20 +45482,20 @@ const Ux = () => {
|
|
|
45220
45482
|
signaturesRemaining: g,
|
|
45221
45483
|
isLoading: l
|
|
45222
45484
|
});
|
|
45223
|
-
Wx(
|
|
45485
|
+
Wx(b), Ix(v);
|
|
45224
45486
|
const A = W(() => {
|
|
45225
45487
|
if (v === 6 || v === 3 || v === 5)
|
|
45226
45488
|
return "completed";
|
|
45227
45489
|
}, [v]), E = W(() => {
|
|
45228
45490
|
var T;
|
|
45229
|
-
const I =
|
|
45491
|
+
const I = b == null ? void 0 : b.transferEvents;
|
|
45230
45492
|
if (v === 6)
|
|
45231
45493
|
return "completed";
|
|
45232
45494
|
if ((T = I == null ? void 0 : I[0]) != null && T.status)
|
|
45233
45495
|
return I[0].status;
|
|
45234
45496
|
if (v === 3 || v === 5)
|
|
45235
45497
|
return "pending";
|
|
45236
|
-
}, [
|
|
45498
|
+
}, [b, v]), q = W(() => {
|
|
45237
45499
|
if (V("swap execution page: edit destination address button - clicked"), ![
|
|
45238
45500
|
3,
|
|
45239
45501
|
4,
|
|
@@ -45276,7 +45538,7 @@ const Ux = () => {
|
|
|
45276
45538
|
{
|
|
45277
45539
|
onClickEditDestinationWallet: q,
|
|
45278
45540
|
operations: x,
|
|
45279
|
-
statusData:
|
|
45541
|
+
statusData: b,
|
|
45280
45542
|
swapExecutionState: v,
|
|
45281
45543
|
firstOperationStatus: A,
|
|
45282
45544
|
secondOperationStatus: E
|
|
@@ -45435,11 +45697,11 @@ const Lm = () => {
|
|
|
45435
45697
|
if (!e || !i || !o) return;
|
|
45436
45698
|
const { chainID: h, denom: g } = e;
|
|
45437
45699
|
if (!g || !h) return;
|
|
45438
|
-
const
|
|
45700
|
+
const b = !!((v = (C = o == null ? void 0 : o.chains) == null ? void 0 : C[h]) != null && v.denoms), x = (q = (E = (A = o == null ? void 0 : o.chains) == null ? void 0 : A[h]) == null ? void 0 : E.denoms) == null ? void 0 : q[g];
|
|
45439
45701
|
return e.isCW20 ? {
|
|
45440
45702
|
...l.data,
|
|
45441
45703
|
error: l.error || void 0
|
|
45442
|
-
} :
|
|
45704
|
+
} : b && x === void 0 ? {
|
|
45443
45705
|
amount: 0,
|
|
45444
45706
|
formattedAmount: "0",
|
|
45445
45707
|
error: void 0,
|
|
@@ -45458,8 +45720,8 @@ const Lm = () => {
|
|
|
45458
45720
|
if (!e) return;
|
|
45459
45721
|
const c = (a = i == null ? void 0 : i.find((r) => r.chainID === e)) == null ? void 0 : a.feeAssets;
|
|
45460
45722
|
return c == null ? void 0 : c.map((r) => {
|
|
45461
|
-
var
|
|
45462
|
-
const l = (
|
|
45723
|
+
var b;
|
|
45724
|
+
const l = (b = n(e, r.denom)) == null ? void 0 : b.amount;
|
|
45463
45725
|
if (!l) return;
|
|
45464
45726
|
const s = (() => {
|
|
45465
45727
|
var C, v, A;
|
|
@@ -45478,7 +45740,7 @@ const Lm = () => {
|
|
|
45478
45740
|
}).filter((r) => r);
|
|
45479
45741
|
}, [e, i, n, o]);
|
|
45480
45742
|
}, Qx = () => {
|
|
45481
|
-
const e = L(xe), { data: n } = L(
|
|
45743
|
+
const e = L(xe), { data: n } = L(fn), i = Rm(e == null ? void 0 : e.chainID), o = yt(), t = i == null ? void 0 : i.find((l) => l == null ? void 0 : l.isSufficient);
|
|
45482
45744
|
if ((t == null ? void 0 : t.denom) !== (e == null ? void 0 : e.denom))
|
|
45483
45745
|
return !(!(e != null && e.amount) || Ee(o).isGreaterThanOrEqualTo(Ee(e == null ? void 0 : e.amount)));
|
|
45484
45746
|
const c = n == null ? void 0 : n.find((l) => l.denom === (t == null ? void 0 : t.denom));
|
|
@@ -45636,7 +45898,7 @@ const Lm = () => {
|
|
|
45636
45898
|
}
|
|
45637
45899
|
) : null;
|
|
45638
45900
|
}, og = () => {
|
|
45639
|
-
const e = ui(), { data: n } = L(
|
|
45901
|
+
const e = ui(), { data: n } = L(fn), i = Y(Mm), { data: o } = L(Fe), t = L(st), c = W(() => {
|
|
45640
45902
|
if (!t) return;
|
|
45641
45903
|
const s = Object.keys(t).find((u) => {
|
|
45642
45904
|
const d = o == null ? void 0 : o.find((h) => h.chainID === u);
|
|
@@ -45645,10 +45907,10 @@ const Lm = () => {
|
|
|
45645
45907
|
return s && (t == null ? void 0 : t[s]);
|
|
45646
45908
|
}, [t, o]), { chainId: a } = lo(), r = W(() => !n || !o ? {} : n.reduce(
|
|
45647
45909
|
(l, s) => {
|
|
45648
|
-
var g,
|
|
45910
|
+
var g, b;
|
|
45649
45911
|
const u = o.find((x) => x.chainID === s.chainID);
|
|
45650
45912
|
if (!u) return l;
|
|
45651
|
-
const d = c ?? ((g = e(String(a))) == null ? void 0 : g.address), h = u.chainType === R.EVM ? d : (
|
|
45913
|
+
const d = c ?? ((g = e(String(a))) == null ? void 0 : g.address), h = u.chainType === R.EVM ? d : (b = e(s.chainID)) == null ? void 0 : b.address;
|
|
45652
45914
|
return h && !l[s.chainID] && (l[s.chainID] = { address: h }), l;
|
|
45653
45915
|
},
|
|
45654
45916
|
{}
|
|
@@ -45703,7 +45965,7 @@ const Lm = () => {
|
|
|
45703
45965
|
var re;
|
|
45704
45966
|
const { SettingsFooter: e, drawerOpen: n } = Tm();
|
|
45705
45967
|
me(VD), me(LD);
|
|
45706
|
-
const [i, o] = me(xe), t = Y(go), c = Y(dt), [a] = me(lm), [r, l] = me(We), [s] = me(Ln), [{ data: u }] = me(
|
|
45968
|
+
const [i, o] = me(xe), t = Y(go), c = Y(dt), [a] = me(lm), [r, l] = me(We), [s] = me(Ln), [{ data: u }] = me(fn), d = Y(tn), h = L(ro), g = eg(), b = Y(i2), x = Y(je), { isFetching: C, isPending: v } = L(xa), A = C && v, { data: E, isError: q, error: F } = L(Wn), I = ag(), T = L(la), p = bt(E), D = L(Dt), f = L(mm), B = Y(Un);
|
|
45707
45969
|
og(), tg(), cg();
|
|
45708
45970
|
const w = Vm(), z = ui()(i == null ? void 0 : i.chainID), k = L(Fn), P = a2(E), y = ye(
|
|
45709
45971
|
(G, _) => {
|
|
@@ -45796,7 +46058,7 @@ const Lm = () => {
|
|
|
45796
46058
|
route: E,
|
|
45797
46059
|
type: P ? "swap" : "send",
|
|
45798
46060
|
routePreference: D,
|
|
45799
|
-
slippage:
|
|
46061
|
+
slippage: f
|
|
45800
46062
|
}), Ap(z == null ? void 0 : z.address), I) {
|
|
45801
46063
|
V("error page: cosmos ledger warning", { route: E }), x({
|
|
45802
46064
|
errorType: ke.CosmosLedgerWarning,
|
|
@@ -45810,7 +46072,7 @@ const Lm = () => {
|
|
|
45810
46072
|
V("error page: bad price warning", { route: E }), x({
|
|
45811
46073
|
errorType: ke.BadPriceWarning,
|
|
45812
46074
|
onClickContinue: () => {
|
|
45813
|
-
x(void 0), B({}), d(ze.SwapExecutionPage),
|
|
46075
|
+
x(void 0), B({}), d(ze.SwapExecutionPage), b();
|
|
45814
46076
|
},
|
|
45815
46077
|
onClickBack: () => {
|
|
45816
46078
|
x(void 0);
|
|
@@ -45823,7 +46085,7 @@ const Lm = () => {
|
|
|
45823
46085
|
V("error page: low info warning", { route: E }), x({
|
|
45824
46086
|
errorType: ke.LowInfoWarning,
|
|
45825
46087
|
onClickContinue: () => {
|
|
45826
|
-
x(void 0), B({}), d(ze.SwapExecutionPage),
|
|
46088
|
+
x(void 0), B({}), d(ze.SwapExecutionPage), b();
|
|
45827
46089
|
},
|
|
45828
46090
|
onClickBack: () => {
|
|
45829
46091
|
x(void 0);
|
|
@@ -45836,7 +46098,7 @@ const Lm = () => {
|
|
|
45836
46098
|
V("error page: go fast warning", { route: E }), x({
|
|
45837
46099
|
errorType: ke.GoFastWarning,
|
|
45838
46100
|
onClickContinue: () => {
|
|
45839
|
-
x(void 0), B({}), d(ze.SwapExecutionPage),
|
|
46101
|
+
x(void 0), B({}), d(ze.SwapExecutionPage), b();
|
|
45840
46102
|
},
|
|
45841
46103
|
onClickBack: () => {
|
|
45842
46104
|
d(ze.SwapPage), x(void 0);
|
|
@@ -45844,7 +46106,7 @@ const Lm = () => {
|
|
|
45844
46106
|
});
|
|
45845
46107
|
return;
|
|
45846
46108
|
}
|
|
45847
|
-
B({}), d(ze.SwapExecutionPage), ws({ username: z == null ? void 0 : z.address }),
|
|
46109
|
+
B({}), d(ze.SwapExecutionPage), ws({ username: z == null ? void 0 : z.address }), b();
|
|
45848
46110
|
};
|
|
45849
46111
|
return /* @__PURE__ */ m(
|
|
45850
46112
|
ge,
|
|
@@ -45870,14 +46132,14 @@ const Lm = () => {
|
|
|
45870
46132
|
E,
|
|
45871
46133
|
F == null ? void 0 : F.message,
|
|
45872
46134
|
D,
|
|
45873
|
-
|
|
46135
|
+
f,
|
|
45874
46136
|
I,
|
|
45875
46137
|
Z,
|
|
45876
46138
|
T,
|
|
45877
46139
|
p,
|
|
45878
46140
|
B,
|
|
45879
46141
|
d,
|
|
45880
|
-
|
|
46142
|
+
b,
|
|
45881
46143
|
x
|
|
45882
46144
|
]);
|
|
45883
46145
|
return /* @__PURE__ */ j(
|
|
@@ -45993,21 +46255,21 @@ const Lm = () => {
|
|
|
45993
46255
|
return a ? r.warning.text : r.error.text;
|
|
45994
46256
|
if (e === "completed")
|
|
45995
46257
|
return r.success.text;
|
|
45996
|
-
}, [e, r.error.text, r.success.text, r.warning.text, a]), s = (
|
|
45997
|
-
x || ol(
|
|
45998
|
-
}, u = (
|
|
45999
|
-
const x =
|
|
46258
|
+
}, [e, r.error.text, r.success.text, r.warning.text, a]), s = (b, x) => {
|
|
46259
|
+
x || ol(b);
|
|
46260
|
+
}, u = (b) => {
|
|
46261
|
+
const x = b == null ? void 0 : b.split("/");
|
|
46000
46262
|
if (x)
|
|
46001
46263
|
return x[x.length - 1];
|
|
46002
|
-
}, d = W(() => c == null ? void 0 : c.map((
|
|
46003
|
-
const C = u(
|
|
46264
|
+
}, d = W(() => c == null ? void 0 : c.map((b, x) => {
|
|
46265
|
+
const C = u(b);
|
|
46004
46266
|
return /* @__PURE__ */ j(Gt, { align: "center", children: [
|
|
46005
46267
|
/* @__PURE__ */ m(Ut, { children: x === 0 ? "Initial transaction " : x === c.length - 1 ? "Final transaction " : "Transaction " }),
|
|
46006
46268
|
/* @__PURE__ */ j(
|
|
46007
46269
|
na,
|
|
46008
46270
|
{
|
|
46009
|
-
onClick: () => s(C,
|
|
46010
|
-
href:
|
|
46271
|
+
onClick: () => s(C, b),
|
|
46272
|
+
href: b,
|
|
46011
46273
|
title: C,
|
|
46012
46274
|
target: "_blank",
|
|
46013
46275
|
gap: 5,
|
|
@@ -46079,12 +46341,12 @@ function zc(e) {
|
|
|
46079
46341
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
46080
46342
|
}, zc(e);
|
|
46081
46343
|
}
|
|
46082
|
-
function
|
|
46344
|
+
function fa(e, n) {
|
|
46083
46345
|
if (n.length < e)
|
|
46084
46346
|
throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + n.length + " present");
|
|
46085
46347
|
}
|
|
46086
46348
|
function xi(e) {
|
|
46087
|
-
|
|
46349
|
+
fa(1, arguments);
|
|
46088
46350
|
var n = Object.prototype.toString.call(e);
|
|
46089
46351
|
return e instanceof Date || zc(e) === "object" && n === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || n === "[object Number]" ? new Date(e) : ((typeof e == "string" || n === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
|
|
46090
46352
|
}
|
|
@@ -46097,7 +46359,7 @@ function ms(e) {
|
|
|
46097
46359
|
return n.setUTCFullYear(e.getFullYear()), e.getTime() - n.getTime();
|
|
46098
46360
|
}
|
|
46099
46361
|
function dg(e, n) {
|
|
46100
|
-
|
|
46362
|
+
fa(2, arguments);
|
|
46101
46363
|
var i = xi(e), o = xi(n), t = i.getTime() - o.getTime();
|
|
46102
46364
|
return t < 0 ? -1 : t > 0 ? 1 : t;
|
|
46103
46365
|
}
|
|
@@ -46178,12 +46440,12 @@ var gg = {
|
|
|
46178
46440
|
long: "MMMM do, y",
|
|
46179
46441
|
medium: "MMM d, y",
|
|
46180
46442
|
short: "MM/dd/yyyy"
|
|
46181
|
-
},
|
|
46443
|
+
}, bg = {
|
|
46182
46444
|
full: "h:mm:ss a zzzz",
|
|
46183
46445
|
long: "h:mm:ss a z",
|
|
46184
46446
|
medium: "h:mm:ss a",
|
|
46185
46447
|
short: "h:mm a"
|
|
46186
|
-
},
|
|
46448
|
+
}, fg = {
|
|
46187
46449
|
full: "{{date}} 'at' {{time}}",
|
|
46188
46450
|
long: "{{date}} 'at' {{time}}",
|
|
46189
46451
|
medium: "{{date}}, {{time}}",
|
|
@@ -46194,11 +46456,11 @@ var gg = {
|
|
|
46194
46456
|
defaultWidth: "full"
|
|
46195
46457
|
}),
|
|
46196
46458
|
time: Kt({
|
|
46197
|
-
formats:
|
|
46459
|
+
formats: bg,
|
|
46198
46460
|
defaultWidth: "full"
|
|
46199
46461
|
}),
|
|
46200
46462
|
dateTime: Kt({
|
|
46201
|
-
formats:
|
|
46463
|
+
formats: fg,
|
|
46202
46464
|
defaultWidth: "full"
|
|
46203
46465
|
})
|
|
46204
46466
|
}, Cg = {
|
|
@@ -46494,7 +46756,7 @@ function Yg(e) {
|
|
|
46494
46756
|
var ps = 1e3 * 60, Yo = 60 * 24, hs = Yo * 30, us = Yo * 365;
|
|
46495
46757
|
function Zg(e, n, i) {
|
|
46496
46758
|
var o, t, c;
|
|
46497
|
-
|
|
46759
|
+
fa(2, arguments);
|
|
46498
46760
|
var a = ug(), r = (o = (t = i == null ? void 0 : i.locale) !== null && t !== void 0 ? t : a.locale) !== null && o !== void 0 ? o : Xg;
|
|
46499
46761
|
if (!r.formatDistance)
|
|
46500
46762
|
throw new RangeError("locale must contain localize.formatDistance property");
|
|
@@ -46515,9 +46777,9 @@ function Zg(e, n, i) {
|
|
|
46515
46777
|
g = Math.round;
|
|
46516
46778
|
else
|
|
46517
46779
|
throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");
|
|
46518
|
-
var
|
|
46780
|
+
var b = d.getTime() - u.getTime(), x = b / ps, C = ms(d) - ms(u), v = (b - C) / ps, A = i == null ? void 0 : i.unit, E;
|
|
46519
46781
|
if (A ? E = String(A) : x < 1 ? E = "second" : x < 60 ? E = "minute" : x < Yo ? E = "hour" : v < hs ? E = "day" : v < us ? E = "month" : E = "year", E === "second") {
|
|
46520
|
-
var q = g(
|
|
46782
|
+
var q = g(b / 1e3);
|
|
46521
46783
|
return r.formatDistance("xSeconds", q, s);
|
|
46522
46784
|
} else if (E === "minute") {
|
|
46523
46785
|
var F = g(x);
|
|
@@ -46597,7 +46859,7 @@ const Jg = (e) => {
|
|
|
46597
46859
|
amountIn: d,
|
|
46598
46860
|
amountOut: h,
|
|
46599
46861
|
sourceAssetDenom: g,
|
|
46600
|
-
sourceAssetChainID:
|
|
46862
|
+
sourceAssetChainID: b,
|
|
46601
46863
|
destAssetDenom: x,
|
|
46602
46864
|
destAssetChainID: C
|
|
46603
46865
|
},
|
|
@@ -46609,13 +46871,13 @@ const Jg = (e) => {
|
|
|
46609
46871
|
chainType: F
|
|
46610
46872
|
}), T = W(() => l.length === 0 && I ? [I] : l, [I, l]), p = Oe({
|
|
46611
46873
|
assetDenom: g,
|
|
46612
|
-
chainId:
|
|
46874
|
+
chainId: b,
|
|
46613
46875
|
tokenAmount: d
|
|
46614
46876
|
}), D = Oe({
|
|
46615
46877
|
assetDenom: x,
|
|
46616
46878
|
chainId: C,
|
|
46617
46879
|
tokenAmount: h
|
|
46618
|
-
}),
|
|
46880
|
+
}), f = {
|
|
46619
46881
|
amount: p.amount,
|
|
46620
46882
|
asset: p.asset,
|
|
46621
46883
|
assetImage: p.assetImage ?? ""
|
|
@@ -46628,7 +46890,7 @@ const Jg = (e) => {
|
|
|
46628
46890
|
case "unconfirmed":
|
|
46629
46891
|
case "pending":
|
|
46630
46892
|
return /* @__PURE__ */ m(
|
|
46631
|
-
|
|
46893
|
+
ft,
|
|
46632
46894
|
{
|
|
46633
46895
|
width: 10,
|
|
46634
46896
|
height: 10,
|
|
@@ -46654,7 +46916,7 @@ const Jg = (e) => {
|
|
|
46654
46916
|
return /* @__PURE__ */ j(e3, { showDetails: i, children: [
|
|
46655
46917
|
/* @__PURE__ */ j(n3, { align: "center", justify: "space-between", onClick: o, children: [
|
|
46656
46918
|
/* @__PURE__ */ j(o3, { gap: 5, align: "center", children: [
|
|
46657
|
-
/* @__PURE__ */ m(ds, { ...
|
|
46919
|
+
/* @__PURE__ */ m(ds, { ...f }),
|
|
46658
46920
|
/* @__PURE__ */ m(Om, { color: t.primary.text.lowContrast, style: { flexShrink: 0 } }),
|
|
46659
46921
|
/* @__PURE__ */ m(ds, { ...B }),
|
|
46660
46922
|
/* @__PURE__ */ j(
|
|
@@ -46695,7 +46957,7 @@ const Jg = (e) => {
|
|
|
46695
46957
|
assetImage: i
|
|
46696
46958
|
}) => {
|
|
46697
46959
|
const o = Ye();
|
|
46698
|
-
return /* @__PURE__ */ j(
|
|
46960
|
+
return /* @__PURE__ */ j(be, { children: [
|
|
46699
46961
|
/* @__PURE__ */ m("img", { height: 20, width: 20, src: i }),
|
|
46700
46962
|
/* @__PURE__ */ m(X, { normalTextColor: !0, title: e, children: Bi(e) }),
|
|
46701
46963
|
!o && /* @__PURE__ */ m(X, { normalTextColor: !0, children: (n == null ? void 0 : n.recommendedSymbol) ?? (n == null ? void 0 : n.symbol) })
|
|
@@ -46777,10 +47039,10 @@ const Jg = (e) => {
|
|
|
46777
47039
|
border-radius: 25px;
|
|
46778
47040
|
background: ${({ theme: e }) => e.primary.background.normal};
|
|
46779
47041
|
`, a3 = () => {
|
|
46780
|
-
var
|
|
47042
|
+
var b;
|
|
46781
47043
|
const [e, n] = me(ct), [i, o] = me(Kc), [t, c] = me(at), { data: a, walletType: r } = As({
|
|
46782
47044
|
multiChain: !0
|
|
46783
|
-
}), l = a ? (
|
|
47045
|
+
}), l = a ? (b = a[Object.keys(a)[0]]) == null ? void 0 : b.bech32Address : "", s = ht.find((x) => x.connected === !0), u = lo(), d = ye(async () => {
|
|
46784
47046
|
a && r && o({
|
|
46785
47047
|
id: l,
|
|
46786
47048
|
walletName: r,
|
|
@@ -46830,7 +47092,7 @@ const Jg = (e) => {
|
|
|
46830
47092
|
a3();
|
|
46831
47093
|
const [e] = me(tn), [n, i] = me(je);
|
|
46832
47094
|
if (n)
|
|
46833
|
-
return /* @__PURE__ */ m(
|
|
47095
|
+
return /* @__PURE__ */ m(bx, {});
|
|
46834
47096
|
switch (e) {
|
|
46835
47097
|
case ze.SwapPage:
|
|
46836
47098
|
return /* @__PURE__ */ m(
|
|
@@ -46903,7 +47165,7 @@ const Jg = (e) => {
|
|
|
46903
47165
|
},
|
|
46904
47166
|
"skip-widget-wagmi-provider"
|
|
46905
47167
|
), m3 = ({ children: e }) => /* @__PURE__ */ m(s3, { children: /* @__PURE__ */ m(l3, { children: e }) }), p3 = (e) => {
|
|
46906
|
-
const n = Y(gt), i = Y(pm), [{ data: o }] = me(
|
|
47168
|
+
const n = Y(gt), i = Y(pm), [{ data: o }] = me(fn);
|
|
46907
47169
|
ae(() => {
|
|
46908
47170
|
e && (n(e), i(o));
|
|
46909
47171
|
}, [o, e, n, i]);
|
|
@@ -46936,7 +47198,7 @@ const h3 = () => {
|
|
|
46936
47198
|
replaysSessionSampleRate: 1,
|
|
46937
47199
|
replaysOnErrorSampleRate: 0
|
|
46938
47200
|
}), Ds = !0);
|
|
46939
|
-
}, u3 = "@skip-go/widget", d3 = "Swap widget", Aa = "3.6.
|
|
47201
|
+
}, u3 = "@skip-go/widget", d3 = "Swap widget", Aa = "3.6.6", D3 = {
|
|
46940
47202
|
url: "https://github.com/skip-mev/skip-go",
|
|
46941
47203
|
directory: "packages/widget"
|
|
46942
47204
|
}, x3 = "module", g3 = {
|
|
@@ -46955,18 +47217,18 @@ const h3 = () => {
|
|
|
46955
47217
|
"generate-chains": "node scripts/generate-chains.cjs",
|
|
46956
47218
|
"update-registries": "yarn up @initia/initia-registry chain-registry",
|
|
46957
47219
|
test: "yarn playwright test"
|
|
46958
|
-
},
|
|
47220
|
+
}, b3 = {
|
|
46959
47221
|
".": {
|
|
46960
47222
|
types: "./build/index.d.ts",
|
|
46961
47223
|
import: "./build/index.js"
|
|
46962
47224
|
}
|
|
46963
|
-
},
|
|
47225
|
+
}, f3 = "./build/index.d.ts", A3 = [
|
|
46964
47226
|
"build",
|
|
46965
47227
|
"README.md"
|
|
46966
47228
|
], C3 = {
|
|
46967
47229
|
"@chromatic-com/storybook": "^1.6.1",
|
|
46968
47230
|
"@eslint/js": "^9.9.0",
|
|
46969
|
-
"@initia/initia-registry": "^0.2.
|
|
47231
|
+
"@initia/initia-registry": "^0.2.5",
|
|
46970
47232
|
"@keplr-wallet/types": "^0.12.125",
|
|
46971
47233
|
"@playwright/test": "^1.51.1",
|
|
46972
47234
|
"@storybook/addon-essentials": "^8.2.6",
|
|
@@ -46987,7 +47249,7 @@ const h3 = () => {
|
|
|
46987
47249
|
"@typescript-eslint/parser": "^7.15.0",
|
|
46988
47250
|
"@vitejs/plugin-react": "^4.3.1",
|
|
46989
47251
|
buffer: "^6.0.3",
|
|
46990
|
-
"chain-registry": "^1.69.
|
|
47252
|
+
"chain-registry": "^1.69.177",
|
|
46991
47253
|
download: "^8.0.0",
|
|
46992
47254
|
eslint: "^9.9.0",
|
|
46993
47255
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -47073,8 +47335,8 @@ const h3 = () => {
|
|
|
47073
47335
|
repository: D3,
|
|
47074
47336
|
type: x3,
|
|
47075
47337
|
scripts: g3,
|
|
47076
|
-
exports:
|
|
47077
|
-
types:
|
|
47338
|
+
exports: b3,
|
|
47339
|
+
types: f3,
|
|
47078
47340
|
files: A3,
|
|
47079
47341
|
devDependencies: C3,
|
|
47080
47342
|
peerDependencies: k3,
|
|
@@ -47095,7 +47357,7 @@ const F3 = () => {
|
|
|
47095
47357
|
}, B3 = (e) => {
|
|
47096
47358
|
var C;
|
|
47097
47359
|
e.enableSentrySessionReplays && h3(), e.enableAmplitudeAnalytics && F3(), Zo("widget_version", Aa), p3(e.defaultRoute), M3(e), E3();
|
|
47098
|
-
const n = Y(pi), i = Y($l), o = Y(ai), t = Y(xt), c = Y(ra), a = Y(sa), r = Y(Hi), l = Y(pl), s = Y(Ni), u = Y(Dm), d = Y(Vc), h = Y(ga), g = Y(Pm),
|
|
47360
|
+
const n = Y(pi), i = Y($l), o = Y(ai), t = Y(xt), c = Y(ra), a = Y(sa), r = Y(Hi), l = Y(pl), s = Y(Ni), u = Y(Dm), d = Y(Vc), h = Y(ga), g = Y(Pm), b = W(() => {
|
|
47099
47361
|
const { apiUrl: v, chainIdsToAffiliates: A, endpointOptions: E } = e, q = {
|
|
47100
47362
|
apiUrl: v,
|
|
47101
47363
|
chainIdsToAffiliates: A,
|
|
@@ -47113,11 +47375,11 @@ const F3 = () => {
|
|
|
47113
47375
|
}, [e.brandColor, e.theme]);
|
|
47114
47376
|
return ae(() => {
|
|
47115
47377
|
n({
|
|
47116
|
-
apiURL:
|
|
47117
|
-
endpointOptions:
|
|
47118
|
-
chainIDsToAffiliates:
|
|
47378
|
+
apiURL: b.apiURL,
|
|
47379
|
+
endpointOptions: b.endpointOptions,
|
|
47380
|
+
chainIDsToAffiliates: b.chainIDsToAffiliates
|
|
47119
47381
|
}), i(x);
|
|
47120
|
-
}, [n,
|
|
47382
|
+
}, [n, b, i, x]), ae(() => {
|
|
47121
47383
|
e.settings && o((A) => ({
|
|
47122
47384
|
...A,
|
|
47123
47385
|
...e.settings
|