@orbs-network/spot-react 0.0.41 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ccip-Dx1a4716.js → ccip-BLmrJSyG.js} +1 -1
- package/dist/{index-CGvKQVdg.js → index-DnCumGZ0.js} +627 -611
- package/dist/spot-react/package.json.d.ts +1 -1
- package/dist/spot-react/src/components/submit-order-panel.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/order-hooks.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-submit-order.d.ts.map +1 -1
- package/dist/spot-react/src/spot-context.d.ts.map +1 -1
- package/dist/spot-react/src/utils.d.ts +1 -3
- package/dist/spot-react/src/utils.d.ts.map +1 -1
- package/dist/spot-react.js +81 -80
- package/dist/spot-react.umd.cjs +27 -27
- package/dist/spot-ui/src/index.d.ts +2 -1
- package/dist/spot-ui/src/index.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/analytics.d.ts +2 -1
- package/dist/spot-ui/src/lib/analytics.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/utils.d.ts +2 -0
- package/dist/spot-ui/src/lib/utils.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1351,21 +1351,21 @@ function fb(e) {
|
|
|
1351
1351
|
return function(x, A, I, B, D) {
|
|
1352
1352
|
var k, P, U, F, N, z, $, X, pe = x.indexOf("."), be = o, ie = i;
|
|
1353
1353
|
for (pe >= 0 && (F = y, y = 0, x = x.replace(".", ""), X = new w(A), z = X.pow(x.length - pe), y = F, X.c = b(
|
|
1354
|
-
|
|
1354
|
+
gn(wr(z.c), z.e, "0"),
|
|
1355
1355
|
10,
|
|
1356
1356
|
I,
|
|
1357
1357
|
h
|
|
1358
1358
|
), X.e = X.c.length), $ = b(x, A, I, D ? (k = E, h) : (k = h, E)), U = F = $.length; $[--F] == 0; $.pop()) ;
|
|
1359
1359
|
if (!$[0]) return k.charAt(0);
|
|
1360
1360
|
if (pe < 0 ? --U : (z.c = $, z.e = U, z.s = B, z = t(z, X, be, ie, I), $ = z.c, N = z.r, U = z.e), P = U + be + 1, pe = $[P], F = I / 2, N = N || P < 0 || $[P + 1] != null, N = ie < 4 ? (pe != null || N) && (ie == 0 || ie == (z.s < 0 ? 3 : 2)) : pe > F || pe == F && (ie == 4 || N || ie == 6 && $[P - 1] & 1 || ie == (z.s < 0 ? 8 : 7)), P < 1 || !$[0])
|
|
1361
|
-
x = N ?
|
|
1361
|
+
x = N ? gn(k.charAt(1), -be, k.charAt(0)) : k.charAt(0);
|
|
1362
1362
|
else {
|
|
1363
1363
|
if ($.length = P, N)
|
|
1364
1364
|
for (--I; ++$[--P] > I; )
|
|
1365
1365
|
$[P] = 0, P || (++U, $ = [1].concat($));
|
|
1366
1366
|
for (F = $.length; !$[--F]; ) ;
|
|
1367
1367
|
for (pe = 0, x = ""; pe <= F; x += k.charAt($[pe++])) ;
|
|
1368
|
-
x =
|
|
1368
|
+
x = gn(x, U, k.charAt(0));
|
|
1369
1369
|
}
|
|
1370
1370
|
return x;
|
|
1371
1371
|
};
|
|
@@ -1436,11 +1436,11 @@ function fb(e) {
|
|
|
1436
1436
|
var I, B, D, k, P;
|
|
1437
1437
|
if (x == null ? x = i : lt(x, 0, 8), !h.c) return h.toString();
|
|
1438
1438
|
if (I = h.c[0], D = h.e, b == null)
|
|
1439
|
-
P = wr(h.c), P = A == 1 || A == 2 && (D <= c || D >= l) ? Ic(P, D) :
|
|
1439
|
+
P = wr(h.c), P = A == 1 || A == 2 && (D <= c || D >= l) ? Ic(P, D) : gn(P, D, "0");
|
|
1440
1440
|
else if (h = R(new w(h), b, x), B = h.e, P = wr(h.c), k = P.length, A == 1 || A == 2 && (b <= B || B <= c)) {
|
|
1441
1441
|
for (; k < b; P += "0", k++) ;
|
|
1442
1442
|
P = Ic(P, B);
|
|
1443
|
-
} else if (b -= D + (A === 2 && B > D), P =
|
|
1443
|
+
} else if (b -= D + (A === 2 && B > D), P = gn(P, B, "0"), B + 1 > k) {
|
|
1444
1444
|
if (--b > 0) for (P += "."; b--; P += "0") ;
|
|
1445
1445
|
} else if (b += B - k, b > 0)
|
|
1446
1446
|
for (B + 1 == k && (P += "."); b--; P += "0") ;
|
|
@@ -1516,7 +1516,7 @@ function fb(e) {
|
|
|
1516
1516
|
}
|
|
1517
1517
|
function T(h) {
|
|
1518
1518
|
var b, x = h.e;
|
|
1519
|
-
return x === null ? h.toString() : (b = wr(h.c), b = x <= c || x >= l ? Ic(b, x) :
|
|
1519
|
+
return x === null ? h.toString() : (b = wr(h.c), b = x <= c || x >= l ? Ic(b, x) : gn(b, x, "0"), h.s < 0 ? "-" + b : b);
|
|
1520
1520
|
}
|
|
1521
1521
|
return s.absoluteValue = s.abs = function() {
|
|
1522
1522
|
var h = new w(this);
|
|
@@ -1726,7 +1726,7 @@ function fb(e) {
|
|
|
1726
1726
|
return h != null && lt(h, 1, It), S(this, h, b, 2);
|
|
1727
1727
|
}, s.toString = function(h) {
|
|
1728
1728
|
var b, x = this, A = x.s, I = x.e;
|
|
1729
|
-
return I === null ? A ? (b = "Infinity", A < 0 && (b = "-" + b)) : b = "NaN" : (h == null ? b = I <= c || I >= l ? Ic(wr(x.c), I) :
|
|
1729
|
+
return I === null ? A ? (b = "Infinity", A < 0 && (b = "-" + b)) : b = "NaN" : (h == null ? b = I <= c || I >= l ? Ic(wr(x.c), I) : gn(wr(x.c), I, "0") : h === 10 && v ? (x = R(new w(x), o + I + 1, i), b = gn(wr(x.c), x.e, "0")) : (lt(h, 2, E.length, "Base"), b = r(gn(wr(x.c), I, "0"), 10, h, A, !0)), A < 0 && x.c[0] && (b = "-" + b)), b;
|
|
1730
1730
|
}, s.valueOf = s.toJSON = function() {
|
|
1731
1731
|
return T(this);
|
|
1732
1732
|
}, s._isBigNumber = !0, s[Symbol.toStringTag] = "BigNumber", s[Symbol.for("nodejs.util.inspect.custom")] = s.valueOf, e != null && w.set(e), w;
|
|
@@ -1764,7 +1764,7 @@ function Pc(e) {
|
|
|
1764
1764
|
function Ic(e, t) {
|
|
1765
1765
|
return (e.length > 1 ? e.charAt(0) + "." + e.slice(1) : e) + (t < 0 ? "e" : "e+") + t;
|
|
1766
1766
|
}
|
|
1767
|
-
function
|
|
1767
|
+
function gn(e, t, r) {
|
|
1768
1768
|
var n, s;
|
|
1769
1769
|
if (t < 0) {
|
|
1770
1770
|
for (s = r + "."; ++t; s += r) ;
|
|
@@ -1793,17 +1793,37 @@ function ao(e, t) {
|
|
|
1793
1793
|
function M5(e, t, r) {
|
|
1794
1794
|
if (typeof e != "string") return Rm(e);
|
|
1795
1795
|
const n = ".", s = e.replace(new RegExp(`[^${n}\\d-]+`, "g"), "");
|
|
1796
|
-
return Rm(
|
|
1796
|
+
return Rm(
|
|
1797
|
+
s
|
|
1798
|
+
);
|
|
1797
1799
|
}
|
|
1798
|
-
const ho = (e) => !!
|
|
1800
|
+
const ho = (e) => !!W5.find((t) => ao(t, e || ""));
|
|
1799
1801
|
function R5(e) {
|
|
1800
|
-
return [
|
|
1802
|
+
return [
|
|
1803
|
+
er.Years,
|
|
1804
|
+
er.Months,
|
|
1805
|
+
er.Weeks,
|
|
1806
|
+
er.Days,
|
|
1807
|
+
er.Hours,
|
|
1808
|
+
er.Minutes
|
|
1809
|
+
].find((r) => r <= e) || er.Minutes;
|
|
1801
1810
|
}
|
|
1802
1811
|
const gs = (e) => e ? e.value * e.unit : 0, N5 = (e) => !e || e === "NaN" ? "0" : H(e).decimalPlaces(0).toFixed(), bo = (e) => Object.values(Rt).find((t) => t.id === e), z5 = (e) => {
|
|
1803
1812
|
if (!e) return;
|
|
1804
|
-
const t = e.map((a) => Gt(a)), r = Object.entries(
|
|
1813
|
+
const t = e.map((a) => Gt(a)), r = Object.entries(q5).filter(([a]) => t.includes(a)).flatMap(([, a]) => a), n = e.map((a) => a.exchangeAddress), s = new Set(
|
|
1814
|
+
[...n, ...r].map((a) => a.toLowerCase())
|
|
1815
|
+
);
|
|
1805
1816
|
return Array.from(s);
|
|
1806
|
-
}, mb = (e, t) => e.version === 1 ? (e.fillDelay || 0) * 1e3 + yb(t) : (e.fillDelay || 0) * 1e3, Xl = (e) => typeof window > "u" ? null : new URLSearchParams(window.location.search).get(e), L5 = (e) =>
|
|
1817
|
+
}, mb = (e, t) => e.version === 1 ? (e.fillDelay || 0) * 1e3 + yb(t) : (e.fillDelay || 0) * 1e3, Xl = (e) => typeof window > "u" ? null : new URLSearchParams(window.location.search).get(e), L5 = (e) => vw().filter((t) => t.name === e).map((t) => t.chainId), $5 = (e, t, r) => {
|
|
1818
|
+
if (!H(e.srcAmountFilled || 0).gt(0) || !H(e.dstAmountFilled || 0).gt(0))
|
|
1819
|
+
return "";
|
|
1820
|
+
const n = ys(t, e.srcAmountFilled), s = ys(r, e.dstAmountFilled);
|
|
1821
|
+
return H(s).div(n).toFixed();
|
|
1822
|
+
}, H5 = (e, t, r) => {
|
|
1823
|
+
if (e.type === ht.TWAP_MARKET) return "";
|
|
1824
|
+
const n = ys(t, e.srcAmountPerTrade), s = ys(r, e.dstMinAmountPerTrade);
|
|
1825
|
+
return H(s).div(n).toFixed();
|
|
1826
|
+
}, Nm = "https://order-sink-dev.orbs.network", td = "https://order-sink.orbs.network";
|
|
1807
1827
|
let Kd;
|
|
1808
1828
|
const RY = (e) => {
|
|
1809
1829
|
Kd = e;
|
|
@@ -1813,9 +1833,9 @@ const RY = (e) => {
|
|
|
1813
1833
|
/* ENV */
|
|
1814
1834
|
);
|
|
1815
1835
|
return e === "prod" ? td : e === "dev" ? Nm : Kd === "prod" ? td : Kd === "dev" ? Nm : td;
|
|
1816
|
-
}, NY = 100, zY = 1, Zd = 300 * 1e3, ni = 365 * 24 * 60 * 60 * 1e3, zm = 300 * 1e3,
|
|
1836
|
+
}, NY = 100, zY = 1, Zd = 300 * 1e3, ni = 365 * 24 * 60 * 60 * 1e3, zm = 300 * 1e3, G5 = new Date(
|
|
1817
1837
|
Zd
|
|
1818
|
-
).getMinutes(), Lm = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, vr = "https://hub.orbs.network/api/apikey/subgraphs/id",
|
|
1838
|
+
).getMinutes(), Lm = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, vr = "https://hub.orbs.network/api/apikey/subgraphs/id", j5 = {
|
|
1819
1839
|
[Rt.eth.id]: `${vr}/Bf7bvMYcJbDAvYWJmhMpHZ4cpFjqzkhK6GXXEpnPRq6`,
|
|
1820
1840
|
[Rt.bsc.id]: `${vr}/4NfXEi8rreQsnAr4aJ45RLCKgnjcWX46Lbt9SadiCcz6`,
|
|
1821
1841
|
[Rt.poly.id]: `${vr}/3PyRPWSvDnMowGbeBy7aNsvUkD5ZuxdXQw2RdJq4NdXi`,
|
|
@@ -1830,14 +1850,14 @@ const RY = (e) => {
|
|
|
1830
1850
|
[Rt.bera.id]: `${vr}/H7aY53mY1hgaSURwXj3ZVirwNSifExwjgEL5GNtTqmEj`,
|
|
1831
1851
|
[Rt.flare.id]: Lm("flare"),
|
|
1832
1852
|
[Rt.cronosZkEvm.id]: Lm("cronos-zkevm")
|
|
1833
|
-
},
|
|
1834
|
-
|
|
1853
|
+
}, V5 = "0x0000000000000000000000000000000000000000", W5 = [
|
|
1854
|
+
V5,
|
|
1835
1855
|
"0x0000000000000000000000000000000000001010",
|
|
1836
1856
|
"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
|
|
1837
1857
|
"0x000000000000000000000000000000000000dEaD",
|
|
1838
1858
|
"0x000000000000000000000000000000000000800A",
|
|
1839
1859
|
"0x000000000000000000000000000000000000800a"
|
|
1840
|
-
], LY = "115792089237316195423570985008687907853269984665640564039457584007913129639935", Gt = (e) => `${e.name}_${e.chainId}`,
|
|
1860
|
+
], LY = "115792089237316195423570985008687907853269984665640564039457584007913129639935", Gt = (e) => `${e.name}_${e.chainId}`, q5 = {
|
|
1841
1861
|
[Gt(Ht.SushiArb)]: [
|
|
1842
1862
|
"0x846F2B29ef314bF3D667981b4ffdADc5B858312a",
|
|
1843
1863
|
"0x08c41f5D1C844061f6D952E25827eeAA576c6536"
|
|
@@ -1888,8 +1908,8 @@ const RY = (e) => {
|
|
|
1888
1908
|
]
|
|
1889
1909
|
}, Xd = {
|
|
1890
1910
|
unit: er.Minutes,
|
|
1891
|
-
value:
|
|
1892
|
-
}, $Y = 0.25, HY = "100",
|
|
1911
|
+
value: G5
|
|
1912
|
+
}, $Y = 0.25, HY = "100", Y5 = "RePermitWitnessTransferFrom", K5 = {
|
|
1893
1913
|
RePermitWitnessTransferFrom: [
|
|
1894
1914
|
{
|
|
1895
1915
|
name: "permitted",
|
|
@@ -2016,8 +2036,8 @@ const RY = (e) => {
|
|
|
2016
2036
|
]
|
|
2017
2037
|
}, xf = "https://www.orbs.com/dtwap-and-dlimit-faq/", GY = "https://www.orbs.com/dtwap-and-dlimit-faq/#dSLTP", jY = "https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/orbslogo.svg", VY = "https://www.orbs.com/assets/img/common/logo.svg", WY = "https://www.orbs.com/", qY = "https://www.orbs.com/dtwap-dlimit-disclaimer";
|
|
2018
2038
|
var wf = /* @__PURE__ */ ((e) => (e.FRESHNESS = "freshness", e.MIN_CHUNK_SIZE_USD = "minChunkSizeUsd", e.ENV = "env", e))(wf || {});
|
|
2019
|
-
const
|
|
2020
|
-
function
|
|
2039
|
+
const Z5 = "-5", X5 = "10", Q5 = "-10", J5 = "5", YY = "Something went wrong";
|
|
2040
|
+
function ew(e) {
|
|
2021
2041
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
2022
2042
|
var t = e.default;
|
|
2023
2043
|
if (typeof t == "function") {
|
|
@@ -2036,10 +2056,10 @@ function Q5(e) {
|
|
|
2036
2056
|
});
|
|
2037
2057
|
}), r;
|
|
2038
2058
|
}
|
|
2039
|
-
function
|
|
2059
|
+
function tw(e) {
|
|
2040
2060
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
2041
2061
|
}
|
|
2042
|
-
const
|
|
2062
|
+
const rw = {
|
|
2043
2063
|
14: { dex: { spark: { type: "default:spark", adapter: "0xB18c633B6584A33E45a8840a759f56dF17117b1D", fee: "0xaeA8C3e1a129A77686E115b1a46D9aD8405F7D2b" } } },
|
|
2044
2064
|
56: { dex: { thena: { type: "default:odos-v2", adapter: "0xB75218ba5A99bF57Fd02556B70F05A4A0f1Dbe67", fee: "0x15eBc8b5b3877512FFF23650188694A9a8891FAc" }, pancake: { type: "p2:pancakeswap-v2", adapter: "0x654272F7e6e6E912D38650f783eFd44452fD6ee5", fee: "0x37A957f10F458e0d7fDECBE2917971b57F15c927" }, newera: { type: "default:odos-v2", adapter: "0x845f459271D800f6Ab32D78400b8Aa18414E80b0", fee: "0x4E7454909eB6D539111D56b50d68897E933D2d11" } } },
|
|
2045
2065
|
137: { dex: { quick: { type: "paraswap:paraswap-v5", adapter: "0x023fD6848234f2655818705237F77F02215FEfe5", fee: "0xd207DC6a6dA88f27c8DB78201F974161b1d84b1f" }, teafi: { type: "paraswap:paraswap-v5", adapter: "0xe95db7a60164B112C64cE67bA8587b1d4a0E0D29", fee: "0x04Ff96e2c4D62b5771795d307AD679a25b3D2D50" } } },
|
|
@@ -2054,10 +2074,10 @@ const ew = {
|
|
|
2054
2074
|
"*": { wm: "0x0005d5cE0dB57e5BE3b2b8b6FeB75f0ccd015000", repermit: "0x00002a9C4D9497df5Bd31768eC5d30eEf5405000", cosigner: "0x0007ec53404c423C935e830ec21903e184690000", reactor: "0x0006a959430e8fBB858D81B2D1140B0ae5c26001", executor: "0x000eBA869d76C618ddc4A6D685A0820A620Ce002", refinery: "0x000E474c0D7084EAA35A501035E73269f4b009A5", salt: { wm: "0xc9b46eae42dfeba3222a0315bf682f33cd5cc9d60c9625642e88406f8415f152", repermit: "0x4871dc9008e605821ea9677b65ea2a60ffb774afb31e0dcaea2e192880096be7", cosigner: "0x37576f2ac1d2a602f00777611edf6f0cbc27611b0980b29bc7856fa79b2b8073", reactor: "0x034169222370f2fd587ef8998082d762cceef58a272330215f5110ec0d76d400", executor: "0xea139bc421fa5e272bed3db74233b2e02077e0aacf8b855f87961e98f2fb467f", refinery: "0x9746de29f1dd31b2c8460d71e92a7aefa34911130e61f274f37776e598c48bec" } }
|
|
2055
2075
|
};
|
|
2056
2076
|
var rd, $m;
|
|
2057
|
-
function
|
|
2077
|
+
function nw() {
|
|
2058
2078
|
if ($m) return rd;
|
|
2059
2079
|
$m = 1;
|
|
2060
|
-
const e =
|
|
2080
|
+
const e = rw, t = (s) => tw(`./out/${s}.sol/${s}.json`).abi, r = () => ({
|
|
2061
2081
|
wm: t("WM"),
|
|
2062
2082
|
repermit: t("RePermit"),
|
|
2063
2083
|
reactor: t("OrderReactor"),
|
|
@@ -2075,75 +2095,75 @@ function tw() {
|
|
|
2075
2095
|
}
|
|
2076
2096
|
return rd = { config: n, abis: r, raw: e }, rd;
|
|
2077
2097
|
}
|
|
2078
|
-
var bb =
|
|
2079
|
-
const
|
|
2098
|
+
var bb = nw();
|
|
2099
|
+
const sw = (e, t, r) => {
|
|
2080
2100
|
if (!e || !t || !r) return;
|
|
2081
2101
|
const n = H(e).times(t), s = H(10).pow(r);
|
|
2082
2102
|
return n.div(s).toFixed(0);
|
|
2083
|
-
},
|
|
2103
|
+
}, aw = (e, t, r, n) => {
|
|
2084
2104
|
if (r || !n || !e || !t)
|
|
2085
2105
|
return H(0).toString();
|
|
2086
2106
|
const s = H(e).times(H(t)), a = H(10).pow(n), o = s.div(a);
|
|
2087
2107
|
return H.max(1, o).integerValue(H.ROUND_FLOOR).toFixed(0);
|
|
2088
|
-
},
|
|
2108
|
+
}, ow = (e, t, r, n) => {
|
|
2089
2109
|
if (e === ke.TWAP || e === ke.LIMIT)
|
|
2090
2110
|
return "0";
|
|
2091
2111
|
if (!n || !t || !r) return;
|
|
2092
2112
|
const s = H(t).times(H(r)), a = H(10).pow(n), o = s.div(a);
|
|
2093
2113
|
return H.max(1, o).integerValue(H.ROUND_FLOOR).toFixed(0) || "0";
|
|
2094
|
-
},
|
|
2114
|
+
}, iw = (e, t, r, n) => {
|
|
2095
2115
|
const s = gs(r) * 2 * t, a = R5(s);
|
|
2096
2116
|
return n || (e === ke.LIMIT ? { unit: er.Days, value: 7 } : e === ke.STOP_LOSS || e === ke.TAKE_PROFIT ? { unit: er.Days, value: 1 } : { unit: a, value: Number(H(s / a).toFixed(2)) });
|
|
2097
|
-
},
|
|
2117
|
+
}, cw = (e, t, r) => t !== ke.TWAP ? 1 : r !== void 0 ? r : e, lw = (e, t, r, n) => {
|
|
2098
2118
|
if (!t || !r || !n) return 1;
|
|
2099
2119
|
const a = H(r).times(t).div(n).integerValue(H.ROUND_FLOOR).toNumber(), o = Math.floor(
|
|
2100
2120
|
ni / 2 / gs(e)
|
|
2101
2121
|
);
|
|
2102
2122
|
return Math.max(1, Math.min(a, o));
|
|
2103
|
-
}, KY = (e) => yb(e) / 1e3 / 60,
|
|
2123
|
+
}, KY = (e) => yb(e) / 1e3 / 60, uw = (e, t) => e + gs(t) + 6e4, yb = (e) => e.bidDelaySeconds * 1e3 * 2, dw = (e, t) => !e || !t ? "0" : H(e).div(t).integerValue(H.ROUND_FLOOR).toFixed(0), ZY = (e, t) => ({
|
|
2104
2124
|
isError: !(e.unit === Xd.unit && e.value === Xd.value) && gs(e) * t > ni,
|
|
2105
2125
|
value: Math.floor(ni / t)
|
|
2106
|
-
}),
|
|
2126
|
+
}), pw = (e = "", t = "", r) => {
|
|
2107
2127
|
if (r === ke.STOP_LOSS)
|
|
2108
2128
|
return {
|
|
2109
2129
|
isError: H(t || 0).gte(H(e || 0)),
|
|
2110
2130
|
value: e
|
|
2111
2131
|
};
|
|
2112
|
-
},
|
|
2132
|
+
}, fw = (e = "", t = "", r) => {
|
|
2113
2133
|
if (r === ke.TAKE_PROFIT)
|
|
2114
2134
|
return {
|
|
2115
2135
|
isError: H(t || 0).lte(H(e || 0)),
|
|
2116
2136
|
value: e
|
|
2117
2137
|
};
|
|
2118
|
-
},
|
|
2138
|
+
}, mw = (e = "", t = "", r = !1, n) => {
|
|
2119
2139
|
if (!r && n === ke.STOP_LOSS)
|
|
2120
2140
|
return {
|
|
2121
2141
|
isError: H(t || 0).gte(H(e || 0)),
|
|
2122
2142
|
value: e
|
|
2123
2143
|
};
|
|
2124
|
-
},
|
|
2144
|
+
}, hw = (e = "", t = "", r = !1, n) => {
|
|
2125
2145
|
if (!r && n === ke.TAKE_PROFIT)
|
|
2126
2146
|
return {
|
|
2127
2147
|
isError: H(t || 0).gte(H(e || 0)),
|
|
2128
2148
|
value: e
|
|
2129
2149
|
};
|
|
2130
|
-
},
|
|
2150
|
+
}, bw = (e, t) => e === ke.STOP_LOSS || e === ke.TAKE_PROFIT ? {
|
|
2131
2151
|
isError: gs(t) > 5184e6,
|
|
2132
2152
|
value: 5184e6
|
|
2133
2153
|
} : {
|
|
2134
2154
|
isError: gs(t) > ni,
|
|
2135
2155
|
// 365 days
|
|
2136
2156
|
value: ni
|
|
2137
|
-
},
|
|
2157
|
+
}, yw = (e) => ({
|
|
2138
2158
|
isError: gs(e) < zm,
|
|
2139
2159
|
value: zm
|
|
2140
|
-
}),
|
|
2160
|
+
}), gw = (e) => ({
|
|
2141
2161
|
isError: gs(e) < Zd,
|
|
2142
2162
|
value: Zd
|
|
2143
|
-
}),
|
|
2163
|
+
}), xw = (e, t, r) => ({
|
|
2144
2164
|
isError: H(t || 0).multipliedBy(e || 0).isLessThan(r),
|
|
2145
2165
|
value: r
|
|
2146
|
-
}),
|
|
2166
|
+
}), ww = (e, t, r) => ({
|
|
2147
2167
|
isError: r === ke.TWAP && H(e).isGreaterThan(t),
|
|
2148
2168
|
value: t
|
|
2149
2169
|
}), gb = (e, t = 0) => {
|
|
@@ -2156,7 +2176,7 @@ const rw = (e, t, r) => {
|
|
|
2156
2176
|
partner: e,
|
|
2157
2177
|
twapConfig: r
|
|
2158
2178
|
};
|
|
2159
|
-
},
|
|
2179
|
+
}, vw = () => {
|
|
2160
2180
|
const e = bb.raw;
|
|
2161
2181
|
return Object.entries(e).filter(([t]) => t !== "*").flatMap(([t, r]) => {
|
|
2162
2182
|
const n = r == null ? void 0 : r.dex;
|
|
@@ -2166,7 +2186,7 @@ const rw = (e, t, r) => {
|
|
|
2166
2186
|
config: gb(s, Number(t))
|
|
2167
2187
|
}));
|
|
2168
2188
|
}).sort((t, r) => t.name.localeCompare(r.name));
|
|
2169
|
-
},
|
|
2189
|
+
}, Ew = ({
|
|
2170
2190
|
chainId: e,
|
|
2171
2191
|
srcToken: t,
|
|
2172
2192
|
dstToken: r,
|
|
@@ -2226,21 +2246,21 @@ const rw = (e, t, r) => {
|
|
|
2226
2246
|
verifyingContract: d.repermit
|
|
2227
2247
|
},
|
|
2228
2248
|
order: v,
|
|
2229
|
-
types:
|
|
2230
|
-
primaryType:
|
|
2249
|
+
types: K5,
|
|
2250
|
+
primaryType: Y5
|
|
2231
2251
|
};
|
|
2232
|
-
},
|
|
2233
|
-
version:
|
|
2234
|
-
},
|
|
2252
|
+
}, kw = "0.0.20", Cw = {
|
|
2253
|
+
version: kw
|
|
2254
|
+
}, Tw = 0.7, Aw = `https://bi.orbs.network/putes/twap-ui-${Tw}`, xb = Cw.version;
|
|
2235
2255
|
let Qd = "unknown";
|
|
2236
|
-
function
|
|
2256
|
+
function Sw(e) {
|
|
2237
2257
|
Qd = e;
|
|
2238
2258
|
}
|
|
2239
2259
|
function nd() {
|
|
2240
2260
|
const e = Math.random().toString(36).substring(2, 16), t = Math.random().toString(36).substring(2, 16), r = Date.now().toString(36);
|
|
2241
2261
|
return `id_${e + t + r}`;
|
|
2242
2262
|
}
|
|
2243
|
-
const
|
|
2263
|
+
const Pw = (e, t, r) => {
|
|
2244
2264
|
var n, s, a, o, i, c, l, u, d;
|
|
2245
2265
|
return {
|
|
2246
2266
|
spotVersion: xb,
|
|
@@ -2269,7 +2289,7 @@ const Aw = (e, t, r) => {
|
|
|
2269
2289
|
};
|
|
2270
2290
|
}, Hm = async (e) => {
|
|
2271
2291
|
try {
|
|
2272
|
-
await fetch(
|
|
2292
|
+
await fetch(Aw, {
|
|
2273
2293
|
method: "POST",
|
|
2274
2294
|
headers: {
|
|
2275
2295
|
Accept: "application/json",
|
|
@@ -2281,7 +2301,7 @@ const Aw = (e, t, r) => {
|
|
|
2281
2301
|
console.error("Failed to send BI", t);
|
|
2282
2302
|
}
|
|
2283
2303
|
};
|
|
2284
|
-
class
|
|
2304
|
+
class Iw {
|
|
2285
2305
|
constructor() {
|
|
2286
2306
|
Ac(this, "timeout");
|
|
2287
2307
|
Ac(this, "config");
|
|
@@ -2368,9 +2388,9 @@ class Sw {
|
|
|
2368
2388
|
deadline: u,
|
|
2369
2389
|
fillDelay: d,
|
|
2370
2390
|
slippage: f,
|
|
2371
|
-
isMarketOrder: m
|
|
2391
|
+
isMarketOrder: m,
|
|
2392
|
+
chunksAmount: y
|
|
2372
2393
|
}) {
|
|
2373
|
-
const y = H(o).div(i).integerValue(H.ROUND_FLOOR).toNumber();
|
|
2374
2394
|
this.updateAndSend({
|
|
2375
2395
|
toTokenAddress: a.address,
|
|
2376
2396
|
toTokenSymbol: a.symbol,
|
|
@@ -2412,7 +2432,7 @@ class Sw {
|
|
|
2412
2432
|
_id: nd(),
|
|
2413
2433
|
action: "module-import",
|
|
2414
2434
|
uiVersion: Qd,
|
|
2415
|
-
...
|
|
2435
|
+
...Pw(t, r, n),
|
|
2416
2436
|
origin: window.location.origin
|
|
2417
2437
|
}, this.updateAndSend(this.data));
|
|
2418
2438
|
}
|
|
@@ -2471,15 +2491,15 @@ class Sw {
|
|
|
2471
2491
|
});
|
|
2472
2492
|
}
|
|
2473
2493
|
}
|
|
2474
|
-
const bt = new
|
|
2494
|
+
const bt = new Iw(), Bw = (e) => {
|
|
2475
2495
|
var s;
|
|
2476
2496
|
const t = H(e.order.witness.output.limit || 0).gt(1), r = H(e.order.witness.output.stop || 0).gt(0), n = ((s = e.metadata.chunks) == null ? void 0 : s.length) || H(e.order.witness.input.maxAmount).div(H(e.order.witness.input.amount)).toNumber();
|
|
2477
2497
|
return r && t ? ht.TRIGGER_PRICE_LIMIT : r ? ht.TRIGGER_PRICE_MARKET : !t && n <= 1 ? ht.TWAP_MARKET : n >= 1 && t ? ht.TWAP_LIMIT : t ? ht.LIMIT : ht.TWAP_MARKET;
|
|
2478
|
-
},
|
|
2498
|
+
}, Fw = (e) => {
|
|
2479
2499
|
var s;
|
|
2480
2500
|
const t = ((s = e.metadata.chunks) == null ? void 0 : s.filter((a) => a.status === "success").length) || 0, r = e.metadata.expectedChunks || 0, n = H(t).dividedBy(r).toNumber();
|
|
2481
2501
|
return n >= 0.99 ? 100 : n <= 0 ? 0 : Number((n * 100).toFixed(2));
|
|
2482
|
-
},
|
|
2502
|
+
}, Uw = (e, t) => e.metadata.status === "completed" || t >= 99 ? yt.Completed : ["pending", "eligible"].includes(e.metadata.status) ? yt.Open : e.metadata.description.toLowerCase() === "cancelled by contract" ? yt.Canceled : yt.Expired, Ow = (e) => {
|
|
2483
2503
|
var r;
|
|
2484
2504
|
return (((r = e.metadata.chunks) == null ? void 0 : r.filter((n) => n.status === "success")) || []).map((n) => ({
|
|
2485
2505
|
inAmount: n.inAmount,
|
|
@@ -2487,17 +2507,17 @@ const bt = new Sw(), Pw = (e) => {
|
|
|
2487
2507
|
timestamp: new Date(n.timestamp).getTime(),
|
|
2488
2508
|
txHash: n.txHash
|
|
2489
2509
|
}));
|
|
2490
|
-
},
|
|
2510
|
+
}, Dw = (e, t) => {
|
|
2491
2511
|
var n;
|
|
2492
2512
|
const r = e.length;
|
|
2493
2513
|
return r >= t && ((n = e[r - 1]) == null ? void 0 : n.timestamp) || 0;
|
|
2494
2514
|
}, wb = (e) => {
|
|
2495
|
-
const t =
|
|
2515
|
+
const t = Fw(e), r = Number(e.order.witness.output.limit) === 1 ? "" : e.order.witness.output.limit, n = e.metadata.expectedChunks || 1, s = Ow(e);
|
|
2496
2516
|
return {
|
|
2497
2517
|
id: e.hash,
|
|
2498
2518
|
hash: e.hash,
|
|
2499
2519
|
version: 2,
|
|
2500
|
-
type:
|
|
2520
|
+
type: Bw(e),
|
|
2501
2521
|
maker: e.order.witness.swapper,
|
|
2502
2522
|
progress: t,
|
|
2503
2523
|
srcAmountFilled: s.reduce((a, o) => a.plus(o.inAmount), new H(0)).toFixed() || "",
|
|
@@ -2517,13 +2537,13 @@ const bt = new Sw(), Pw = (e) => {
|
|
|
2517
2537
|
totalTradesAmount: n,
|
|
2518
2538
|
isMarketPrice: H(r || 0).lte(1),
|
|
2519
2539
|
chainId: e.order.witness.chainid,
|
|
2520
|
-
filledOrderTimestamp:
|
|
2521
|
-
status:
|
|
2540
|
+
filledOrderTimestamp: Dw(s, n),
|
|
2541
|
+
status: Uw(e, t),
|
|
2522
2542
|
rawOrder: e
|
|
2523
2543
|
};
|
|
2524
|
-
},
|
|
2544
|
+
}, _w = async ({ chainId: e, signal: t, account: r }) => r ? (await (await fetch(`${hb()}/orders?swapper=${r}&chainId=${e}`, {
|
|
2525
2545
|
signal: t
|
|
2526
|
-
})).json()).orders.map(wb) : [],
|
|
2546
|
+
})).json()).orders.map(wb) : [], Mw = async (e, t) => {
|
|
2527
2547
|
try {
|
|
2528
2548
|
const r = {
|
|
2529
2549
|
signature: t,
|
|
@@ -2542,9 +2562,9 @@ const bt = new Sw(), Pw = (e) => {
|
|
|
2542
2562
|
} catch (r) {
|
|
2543
2563
|
throw bt.onCreateOrderError(r), console.error(r), r;
|
|
2544
2564
|
}
|
|
2545
|
-
},
|
|
2565
|
+
}, xn = (e, t) => e && e.length ? e.map(t || ((r) => `${r}`)) : void 0, Rw = (e) => {
|
|
2546
2566
|
if (e)
|
|
2547
|
-
return
|
|
2567
|
+
return j5[e];
|
|
2548
2568
|
}, vf = async ({
|
|
2549
2569
|
chainId: e,
|
|
2550
2570
|
buildQuery: t,
|
|
@@ -2554,8 +2574,8 @@ const bt = new Sw(), Pw = (e) => {
|
|
|
2554
2574
|
limit: a = 1e3,
|
|
2555
2575
|
page: o
|
|
2556
2576
|
}) => {
|
|
2557
|
-
const i =
|
|
2558
|
-
if (!i) throw new
|
|
2577
|
+
const i = Rw(e);
|
|
2578
|
+
if (!i) throw new Gw();
|
|
2559
2579
|
const c = async (d) => {
|
|
2560
2580
|
let f = 0;
|
|
2561
2581
|
for (; f <= s; )
|
|
@@ -2617,7 +2637,7 @@ const bt = new Sw(), Pw = (e) => {
|
|
|
2617
2637
|
})), Gm = (e, t) => {
|
|
2618
2638
|
const r = H(e || 0).gt(1);
|
|
2619
2639
|
return !r && t === 1 ? ht.TWAP_MARKET : t > 1 && r ? ht.TWAP_LIMIT : r ? ht.LIMIT : ht.TWAP_MARKET;
|
|
2620
|
-
},
|
|
2640
|
+
}, Nw = (e, t, r, n) => {
|
|
2621
2641
|
var f;
|
|
2622
2642
|
const s = vb(r || []), a = new H(e.ask_srcAmount || 0).div(e.ask_srcBidAmount).integerValue(H.ROUND_FLOOR).toNumber(), i = (r == null ? void 0 : r.length) === a ? (f = r == null ? void 0 : r[(r == null ? void 0 : r.length) - 1]) == null ? void 0 : f.timestamp : void 0, c = s.reduce((m, y) => m.plus(y.inAmount), new H(0)).toFixed(), l = s.reduce((m, y) => m.plus(y.outAmount), new H(0)).toFixed(), u = Eb(e.ask_srcAmount, c), d = Gm(e.ask_dstMinAmount, a);
|
|
2623
2643
|
return {
|
|
@@ -2651,31 +2671,31 @@ const bt = new Sw(), Pw = (e) => {
|
|
|
2651
2671
|
status: n,
|
|
2652
2672
|
rawOrder: e
|
|
2653
2673
|
};
|
|
2654
|
-
},
|
|
2674
|
+
}, zw = (e) => {
|
|
2655
2675
|
var d;
|
|
2656
2676
|
if (!e) return "";
|
|
2657
|
-
const t =
|
|
2677
|
+
const t = xn(
|
|
2658
2678
|
e.accounts,
|
|
2659
2679
|
(f) => `"${f.toLowerCase()}"`
|
|
2660
|
-
), r =
|
|
2680
|
+
), r = xn(
|
|
2661
2681
|
z5(e.configs),
|
|
2662
2682
|
(f) => `"${f.toLowerCase()}"`
|
|
2663
|
-
), n =
|
|
2683
|
+
), n = xn(
|
|
2664
2684
|
e.inTokenSymbols,
|
|
2665
2685
|
(f) => `"${f.toUpperCase()}"`
|
|
2666
|
-
), s =
|
|
2686
|
+
), s = xn(
|
|
2667
2687
|
e.outTokenSymbols,
|
|
2668
2688
|
(f) => `"${f.toUpperCase()}"`
|
|
2669
|
-
), a =
|
|
2689
|
+
), a = xn(
|
|
2670
2690
|
e.inTokenAddresses,
|
|
2671
2691
|
(f) => `"${f.toLowerCase()}"`
|
|
2672
|
-
), o =
|
|
2692
|
+
), o = xn(
|
|
2673
2693
|
e.outTokenAddresses,
|
|
2674
2694
|
(f) => `"${f.toLowerCase()}"`
|
|
2675
|
-
), i =
|
|
2695
|
+
), i = xn(
|
|
2676
2696
|
e.transactionHashes,
|
|
2677
2697
|
(f) => `"${f.toLowerCase()}"`
|
|
2678
|
-
), c =
|
|
2698
|
+
), c = xn(e.orderIds, (f) => `"${f}"`), l = r != null && r.length ? "" : xn(
|
|
2679
2699
|
(d = e.configs) == null ? void 0 : d.map((f) => f.twapAddress),
|
|
2680
2700
|
(f) => `"${f.toLowerCase()}"`
|
|
2681
2701
|
), u = e.minDollarValueIn;
|
|
@@ -2696,14 +2716,14 @@ const bt = new Sw(), Pw = (e) => {
|
|
|
2696
2716
|
(e == null ? void 0 : e.orderType) === "market" ? "ask_dstMinAmount_lte: 1" : ""
|
|
2697
2717
|
].filter(Boolean).join(", ");
|
|
2698
2718
|
};
|
|
2699
|
-
async function
|
|
2719
|
+
async function Lw({
|
|
2700
2720
|
chainId: e,
|
|
2701
2721
|
signal: t,
|
|
2702
2722
|
page: r,
|
|
2703
2723
|
limit: n,
|
|
2704
2724
|
filters: s
|
|
2705
2725
|
}) {
|
|
2706
|
-
const a = n || 1e3, o =
|
|
2726
|
+
const a = n || 1e3, o = zw(s);
|
|
2707
2727
|
return await vf({
|
|
2708
2728
|
chainId: e,
|
|
2709
2729
|
signal: t,
|
|
@@ -2750,7 +2770,7 @@ async function Nw({
|
|
|
2750
2770
|
}
|
|
2751
2771
|
});
|
|
2752
2772
|
}
|
|
2753
|
-
const
|
|
2773
|
+
const $w = async ({
|
|
2754
2774
|
chainId: e,
|
|
2755
2775
|
orders: t,
|
|
2756
2776
|
signal: r
|
|
@@ -2785,7 +2805,7 @@ const zw = async ({
|
|
|
2785
2805
|
function Jd(e) {
|
|
2786
2806
|
return Array.from(new Set(e));
|
|
2787
2807
|
}
|
|
2788
|
-
const
|
|
2808
|
+
const Hw = async ({
|
|
2789
2809
|
chainId: e,
|
|
2790
2810
|
orders: t,
|
|
2791
2811
|
signal: r
|
|
@@ -2827,50 +2847,50 @@ const Lw = async ({
|
|
|
2827
2847
|
}
|
|
2828
2848
|
});
|
|
2829
2849
|
};
|
|
2830
|
-
class
|
|
2850
|
+
class Gw extends Error {
|
|
2831
2851
|
constructor() {
|
|
2832
2852
|
super("No graph endpoint found"), this.name = "NoGraphEndpointError";
|
|
2833
2853
|
}
|
|
2834
2854
|
}
|
|
2835
|
-
const
|
|
2855
|
+
const jw = async ({
|
|
2836
2856
|
chainId: e,
|
|
2837
2857
|
signal: t,
|
|
2838
2858
|
page: r,
|
|
2839
2859
|
limit: n,
|
|
2840
2860
|
filters: s
|
|
2841
2861
|
}) => {
|
|
2842
|
-
const a = await
|
|
2862
|
+
const a = await Lw({
|
|
2843
2863
|
chainId: e,
|
|
2844
2864
|
signal: t,
|
|
2845
2865
|
page: r,
|
|
2846
2866
|
limit: n,
|
|
2847
2867
|
filters: s
|
|
2848
2868
|
}), [o, i] = await Promise.all([
|
|
2849
|
-
|
|
2850
|
-
|
|
2869
|
+
Hw({ chainId: e, orders: a, signal: t }),
|
|
2870
|
+
$w({ chainId: e, orders: a, signal: t })
|
|
2851
2871
|
]);
|
|
2852
2872
|
return a.map((l) => {
|
|
2853
2873
|
const u = o == null ? void 0 : o.filter(
|
|
2854
2874
|
(d) => d.TWAP_id === Number(l.Contract_id) && ao(d.exchange, l.exchange) && ao(d.twapAddress, l.twapAddress)
|
|
2855
2875
|
);
|
|
2856
|
-
return
|
|
2876
|
+
return Nw(
|
|
2857
2877
|
l,
|
|
2858
2878
|
e,
|
|
2859
2879
|
u,
|
|
2860
|
-
|
|
2880
|
+
Vw(l, u || [], i)
|
|
2861
2881
|
);
|
|
2862
2882
|
}).sort((l, u) => u.createdAt - l.createdAt);
|
|
2863
|
-
},
|
|
2883
|
+
}, Vw = (e, t, r) => {
|
|
2864
2884
|
var i;
|
|
2865
2885
|
const n = (i = r == null ? void 0 : r.find(
|
|
2866
2886
|
(c) => c.twapId === e.Contract_id.toString() && ao(c.twapAddress, e.twapAddress)
|
|
2867
2887
|
)) == null ? void 0 : i.status, a = vb(t).reduce((c, l) => c.plus(l.inAmount), new H(0)).toFixed(), o = Eb(e.ask_srcAmount, a);
|
|
2868
|
-
return
|
|
2888
|
+
return Ww(o, e.ask_deadline * 1e3, n);
|
|
2869
2889
|
}, Eb = (e, t) => {
|
|
2870
2890
|
if (!t || !e) return 0;
|
|
2871
2891
|
const r = H(t).dividedBy(e).toNumber();
|
|
2872
2892
|
return r >= 0.99 ? 100 : r <= 0 ? 0 : Number((r * 100).toFixed(2));
|
|
2873
|
-
},
|
|
2893
|
+
}, Ww = (e, t, r) => e === 100 ? yt.Completed : r === "CANCELED" ? yt.Canceled : r === "COMPLETED" ? yt.Completed : t > Date.now() ? yt.Open : yt.Expired, qw = async ({
|
|
2874
2894
|
signal: e,
|
|
2875
2895
|
page: t,
|
|
2876
2896
|
chainId: r,
|
|
@@ -2878,10 +2898,10 @@ const Hw = async ({
|
|
|
2878
2898
|
config: s,
|
|
2879
2899
|
account: a
|
|
2880
2900
|
}) => (await Promise.all([
|
|
2881
|
-
s ?
|
|
2882
|
-
|
|
2883
|
-
]).then(([c, l]) => [...c, ...l])).sort((c, l) => l.createdAt - c.createdAt),
|
|
2884
|
-
version:
|
|
2901
|
+
s ? jw({ chainId: r, signal: e, page: t, limit: n, filters: { accounts: [a], configs: [s] } }) : Promise.resolve([]),
|
|
2902
|
+
_w({ chainId: r, signal: e, account: a })
|
|
2903
|
+
]).then(([c, l]) => [...c, ...l])).sort((c, l) => l.createdAt - c.createdAt), Yw = "0.0.45", Kw = {
|
|
2904
|
+
version: Yw
|
|
2885
2905
|
};
|
|
2886
2906
|
var yo = class {
|
|
2887
2907
|
constructor() {
|
|
@@ -2899,7 +2919,7 @@ var yo = class {
|
|
|
2899
2919
|
}
|
|
2900
2920
|
onUnsubscribe() {
|
|
2901
2921
|
}
|
|
2902
|
-
},
|
|
2922
|
+
}, Zw = {
|
|
2903
2923
|
// We need the wrapper function syntax below instead of direct references to
|
|
2904
2924
|
// global setTimeout etc.
|
|
2905
2925
|
//
|
|
@@ -2914,7 +2934,7 @@ var yo = class {
|
|
|
2914
2934
|
clearTimeout: (e) => clearTimeout(e),
|
|
2915
2935
|
setInterval: (e, t) => setInterval(e, t),
|
|
2916
2936
|
clearInterval: (e) => clearInterval(e)
|
|
2917
|
-
}, Jr, Ns, rb,
|
|
2937
|
+
}, Jr, Ns, rb, Xw = (rb = class {
|
|
2918
2938
|
constructor() {
|
|
2919
2939
|
// We cannot have TimeoutManager<T> as we must instantiate it with a concrete
|
|
2920
2940
|
// type at app boot; and if we leave that type, then any new timer provider
|
|
@@ -2922,7 +2942,7 @@ var yo = class {
|
|
|
2922
2942
|
//
|
|
2923
2943
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
|
2924
2944
|
// this class is unsafe internally to allow for extension.
|
|
2925
|
-
le(this, Jr,
|
|
2945
|
+
le(this, Jr, Zw);
|
|
2926
2946
|
le(this, Ns, !1);
|
|
2927
2947
|
}
|
|
2928
2948
|
setTimeoutProvider(e) {
|
|
@@ -2943,14 +2963,14 @@ var yo = class {
|
|
|
2943
2963
|
clearInterval(e) {
|
|
2944
2964
|
M(this, Jr).clearInterval(e);
|
|
2945
2965
|
}
|
|
2946
|
-
}, Jr = new WeakMap(), Ns = new WeakMap(), rb), Us = new
|
|
2947
|
-
function
|
|
2966
|
+
}, Jr = new WeakMap(), Ns = new WeakMap(), rb), Us = new Xw();
|
|
2967
|
+
function Qw(e) {
|
|
2948
2968
|
setTimeout(e, 0);
|
|
2949
2969
|
}
|
|
2950
2970
|
var Qs = typeof window > "u" || "Deno" in globalThis;
|
|
2951
2971
|
function Wt() {
|
|
2952
2972
|
}
|
|
2953
|
-
function
|
|
2973
|
+
function Jw(e, t) {
|
|
2954
2974
|
return typeof e == "function" ? e(t) : e;
|
|
2955
2975
|
}
|
|
2956
2976
|
function ep(e) {
|
|
@@ -3013,7 +3033,7 @@ function Js(e) {
|
|
|
3013
3033
|
function si(e, t) {
|
|
3014
3034
|
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((r) => si(e[r], t[r])) : !1;
|
|
3015
3035
|
}
|
|
3016
|
-
var
|
|
3036
|
+
var e3 = Object.prototype.hasOwnProperty;
|
|
3017
3037
|
function tp(e, t) {
|
|
3018
3038
|
if (e === t)
|
|
3019
3039
|
return e;
|
|
@@ -3024,7 +3044,7 @@ function tp(e, t) {
|
|
|
3024
3044
|
for (let l = 0; l < o; l++) {
|
|
3025
3045
|
const u = r ? l : a[l], d = e[u], f = t[u];
|
|
3026
3046
|
if (d === f) {
|
|
3027
|
-
i[u] = d, (r ? l < s :
|
|
3047
|
+
i[u] = d, (r ? l < s : e3.call(e, u)) && c++;
|
|
3028
3048
|
continue;
|
|
3029
3049
|
}
|
|
3030
3050
|
if (d === null || f === null || typeof d != "object" || typeof f != "object") {
|
|
@@ -3059,7 +3079,7 @@ function rp(e) {
|
|
|
3059
3079
|
function qm(e) {
|
|
3060
3080
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
3061
3081
|
}
|
|
3062
|
-
function
|
|
3082
|
+
function t3(e) {
|
|
3063
3083
|
return new Promise((t) => {
|
|
3064
3084
|
Us.setTimeout(t, e);
|
|
3065
3085
|
});
|
|
@@ -3080,11 +3100,11 @@ function np(e, t, r) {
|
|
|
3080
3100
|
}
|
|
3081
3101
|
return t;
|
|
3082
3102
|
}
|
|
3083
|
-
function
|
|
3103
|
+
function r3(e, t, r = 0) {
|
|
3084
3104
|
const n = [...e, t];
|
|
3085
3105
|
return r && n.length > r ? n.slice(1) : n;
|
|
3086
3106
|
}
|
|
3087
|
-
function
|
|
3107
|
+
function n3(e, t, r = 0) {
|
|
3088
3108
|
const n = [t, ...e];
|
|
3089
3109
|
return r && n.length > r ? n.slice(0, -1) : n;
|
|
3090
3110
|
}
|
|
@@ -3097,7 +3117,7 @@ function Cb(e, t) {
|
|
|
3097
3117
|
function Tb(e, t) {
|
|
3098
3118
|
return typeof e == "function" ? e(...t) : !!e;
|
|
3099
3119
|
}
|
|
3100
|
-
var zs, ns, qa, nb,
|
|
3120
|
+
var zs, ns, qa, nb, s3 = (nb = class extends yo {
|
|
3101
3121
|
constructor() {
|
|
3102
3122
|
super();
|
|
3103
3123
|
le(this, zs);
|
|
@@ -3138,7 +3158,7 @@ var zs, ns, qa, nb, r3 = (nb = class extends yo {
|
|
|
3138
3158
|
var t;
|
|
3139
3159
|
return typeof M(this, zs) == "boolean" ? M(this, zs) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
|
|
3140
3160
|
}
|
|
3141
|
-
}, zs = new WeakMap(), ns = new WeakMap(), qa = new WeakMap(), nb), kf = new
|
|
3161
|
+
}, zs = new WeakMap(), ns = new WeakMap(), qa = new WeakMap(), nb), kf = new s3();
|
|
3142
3162
|
function sp() {
|
|
3143
3163
|
let e, t;
|
|
3144
3164
|
const r = new Promise((s, a) => {
|
|
@@ -3161,13 +3181,13 @@ function sp() {
|
|
|
3161
3181
|
}), t(s);
|
|
3162
3182
|
}, r;
|
|
3163
3183
|
}
|
|
3164
|
-
var
|
|
3165
|
-
function
|
|
3184
|
+
var a3 = Qw;
|
|
3185
|
+
function o3() {
|
|
3166
3186
|
let e = [], t = 0, r = (i) => {
|
|
3167
3187
|
i();
|
|
3168
3188
|
}, n = (i) => {
|
|
3169
3189
|
i();
|
|
3170
|
-
}, s =
|
|
3190
|
+
}, s = a3;
|
|
3171
3191
|
const a = (i) => {
|
|
3172
3192
|
t ? e.push(i) : s(() => {
|
|
3173
3193
|
r(i);
|
|
@@ -3221,7 +3241,7 @@ function s3() {
|
|
|
3221
3241
|
}
|
|
3222
3242
|
};
|
|
3223
3243
|
}
|
|
3224
|
-
var Tt =
|
|
3244
|
+
var Tt = o3(), Ya, ss, Ka, sb, i3 = (sb = class extends yo {
|
|
3225
3245
|
constructor() {
|
|
3226
3246
|
super();
|
|
3227
3247
|
le(this, Ya, !0);
|
|
@@ -3255,8 +3275,8 @@ var Tt = s3(), Ya, ss, Ka, sb, a3 = (sb = class extends yo {
|
|
|
3255
3275
|
isOnline() {
|
|
3256
3276
|
return M(this, Ya);
|
|
3257
3277
|
}
|
|
3258
|
-
}, Ya = new WeakMap(), ss = new WeakMap(), Ka = new WeakMap(), sb), Bl = new
|
|
3259
|
-
function
|
|
3278
|
+
}, Ya = new WeakMap(), ss = new WeakMap(), Ka = new WeakMap(), sb), Bl = new i3();
|
|
3279
|
+
function c3(e) {
|
|
3260
3280
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
3261
3281
|
}
|
|
3262
3282
|
function Ab(e) {
|
|
@@ -3305,12 +3325,12 @@ function Sb(e) {
|
|
|
3305
3325
|
var R;
|
|
3306
3326
|
if (a())
|
|
3307
3327
|
return;
|
|
3308
|
-
const w = e.retry ?? (Qs ? 0 : 3), S = e.retryDelay ??
|
|
3328
|
+
const w = e.retry ?? (Qs ? 0 : 3), S = e.retryDelay ?? c3, C = typeof S == "function" ? S(r, v) : S, O = w === !0 || typeof w == "number" && r < w || typeof w == "function" && w(r, v);
|
|
3309
3329
|
if (t || !O) {
|
|
3310
3330
|
f(v);
|
|
3311
3331
|
return;
|
|
3312
3332
|
}
|
|
3313
|
-
r++, (R = e.onFail) == null || R.call(e, r, v),
|
|
3333
|
+
r++, (R = e.onFail) == null || R.call(e, r, v), t3(C).then(() => l() ? void 0 : m()).then(() => {
|
|
3314
3334
|
t ? f(v) : y();
|
|
3315
3335
|
});
|
|
3316
3336
|
});
|
|
@@ -3347,7 +3367,7 @@ var Ls, ab, Pb = (ab = class {
|
|
|
3347
3367
|
clearGcTimeout() {
|
|
3348
3368
|
M(this, Ls) && (Us.clearTimeout(M(this, Ls)), Q(this, Ls, void 0));
|
|
3349
3369
|
}
|
|
3350
|
-
}, Ls = new WeakMap(), ab), $s, Za, Ar, Hs, Bt, ji, Gs, Mr,
|
|
3370
|
+
}, Ls = new WeakMap(), ab), $s, Za, Ar, Hs, Bt, ji, Gs, Mr, Tn, ob, l3 = (ob = class extends Pb {
|
|
3351
3371
|
constructor(t) {
|
|
3352
3372
|
super();
|
|
3353
3373
|
le(this, Mr);
|
|
@@ -3380,7 +3400,7 @@ var Ls, ab, Pb = (ab = class {
|
|
|
3380
3400
|
}
|
|
3381
3401
|
setData(t, r) {
|
|
3382
3402
|
const n = np(this.state.data, t, this.options);
|
|
3383
|
-
return Se(this, Mr,
|
|
3403
|
+
return Se(this, Mr, Tn).call(this, {
|
|
3384
3404
|
data: n,
|
|
3385
3405
|
type: "success",
|
|
3386
3406
|
dataUpdatedAt: r == null ? void 0 : r.updatedAt,
|
|
@@ -3388,7 +3408,7 @@ var Ls, ab, Pb = (ab = class {
|
|
|
3388
3408
|
}), n;
|
|
3389
3409
|
}
|
|
3390
3410
|
setState(t, r) {
|
|
3391
|
-
Se(this, Mr,
|
|
3411
|
+
Se(this, Mr, Tn).call(this, { type: "setState", state: t, setStateOptions: r });
|
|
3392
3412
|
}
|
|
3393
3413
|
cancel(t) {
|
|
3394
3414
|
var n, s;
|
|
@@ -3442,7 +3462,7 @@ var Ls, ab, Pb = (ab = class {
|
|
|
3442
3462
|
return this.observers.length;
|
|
3443
3463
|
}
|
|
3444
3464
|
invalidate() {
|
|
3445
|
-
this.state.isInvalidated || Se(this, Mr,
|
|
3465
|
+
this.state.isInvalidated || Se(this, Mr, Tn).call(this, { type: "invalidate" });
|
|
3446
3466
|
}
|
|
3447
3467
|
async fetch(t, r) {
|
|
3448
3468
|
var c, l, u, d, f, m, y, g, E, v, w, S;
|
|
@@ -3492,7 +3512,7 @@ var Ls, ab, Pb = (ab = class {
|
|
|
3492
3512
|
};
|
|
3493
3513
|
return s(C), C;
|
|
3494
3514
|
})();
|
|
3495
|
-
(l = this.options.behavior) == null || l.onFetch(i, this), Q(this, Za, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((u = i.fetchOptions) == null ? void 0 : u.meta)) && Se(this, Mr,
|
|
3515
|
+
(l = this.options.behavior) == null || l.onFetch(i, this), Q(this, Za, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((u = i.fetchOptions) == null ? void 0 : u.meta)) && Se(this, Mr, Tn).call(this, { type: "fetch", meta: (d = i.fetchOptions) == null ? void 0 : d.meta }), Q(this, Bt, Sb({
|
|
3496
3516
|
initialPromise: r == null ? void 0 : r.initialPromise,
|
|
3497
3517
|
fn: i.fetchFn,
|
|
3498
3518
|
onCancel: (C) => {
|
|
@@ -3502,13 +3522,13 @@ var Ls, ab, Pb = (ab = class {
|
|
|
3502
3522
|
}), n.abort();
|
|
3503
3523
|
},
|
|
3504
3524
|
onFail: (C, O) => {
|
|
3505
|
-
Se(this, Mr,
|
|
3525
|
+
Se(this, Mr, Tn).call(this, { type: "failed", failureCount: C, error: O });
|
|
3506
3526
|
},
|
|
3507
3527
|
onPause: () => {
|
|
3508
|
-
Se(this, Mr,
|
|
3528
|
+
Se(this, Mr, Tn).call(this, { type: "pause" });
|
|
3509
3529
|
},
|
|
3510
3530
|
onContinue: () => {
|
|
3511
|
-
Se(this, Mr,
|
|
3531
|
+
Se(this, Mr, Tn).call(this, { type: "continue" });
|
|
3512
3532
|
},
|
|
3513
3533
|
retry: i.options.retry,
|
|
3514
3534
|
retryDelay: i.options.retryDelay,
|
|
@@ -3537,7 +3557,7 @@ var Ls, ab, Pb = (ab = class {
|
|
|
3537
3557
|
return this.state.data;
|
|
3538
3558
|
}
|
|
3539
3559
|
}
|
|
3540
|
-
throw Se(this, Mr,
|
|
3560
|
+
throw Se(this, Mr, Tn).call(this, {
|
|
3541
3561
|
type: "error",
|
|
3542
3562
|
error: C
|
|
3543
3563
|
}), (v = (E = M(this, Ar).config).onError) == null || v.call(
|
|
@@ -3554,7 +3574,7 @@ var Ls, ab, Pb = (ab = class {
|
|
|
3554
3574
|
this.scheduleGc();
|
|
3555
3575
|
}
|
|
3556
3576
|
}
|
|
3557
|
-
}, $s = new WeakMap(), Za = new WeakMap(), Ar = new WeakMap(), Hs = new WeakMap(), Bt = new WeakMap(), ji = new WeakMap(), Gs = new WeakMap(), Mr = new WeakSet(),
|
|
3577
|
+
}, $s = new WeakMap(), Za = new WeakMap(), Ar = new WeakMap(), Hs = new WeakMap(), Bt = new WeakMap(), ji = new WeakMap(), Gs = new WeakMap(), Mr = new WeakSet(), Tn = function(t) {
|
|
3558
3578
|
const r = (n) => {
|
|
3559
3579
|
switch (t.type) {
|
|
3560
3580
|
case "failed":
|
|
@@ -3658,7 +3678,7 @@ function Km(e) {
|
|
|
3658
3678
|
fetchStatus: "idle"
|
|
3659
3679
|
};
|
|
3660
3680
|
}
|
|
3661
|
-
var Qt, De, Vi, jt, js, Xa,
|
|
3681
|
+
var Qt, De, Vi, jt, js, Xa, Pn, as, Wi, Qa, Ja, Vs, Ws, os, eo, qe, Ko, op, ip, cp, lp, up, dp, pp, Bb, ib, u3 = (ib = class extends yo {
|
|
3662
3682
|
constructor(t, r) {
|
|
3663
3683
|
super();
|
|
3664
3684
|
le(this, qe);
|
|
@@ -3668,7 +3688,7 @@ var Qt, De, Vi, jt, js, Xa, Sn, as, Wi, Qa, Ja, Vs, Ws, os, eo, qe, Ko, op, ip,
|
|
|
3668
3688
|
le(this, jt);
|
|
3669
3689
|
le(this, js);
|
|
3670
3690
|
le(this, Xa);
|
|
3671
|
-
le(this,
|
|
3691
|
+
le(this, Pn);
|
|
3672
3692
|
le(this, as);
|
|
3673
3693
|
le(this, Wi);
|
|
3674
3694
|
le(this, Qa);
|
|
@@ -3679,7 +3699,7 @@ var Qt, De, Vi, jt, js, Xa, Sn, as, Wi, Qa, Ja, Vs, Ws, os, eo, qe, Ko, op, ip,
|
|
|
3679
3699
|
le(this, Ws);
|
|
3680
3700
|
le(this, os);
|
|
3681
3701
|
le(this, eo, /* @__PURE__ */ new Set());
|
|
3682
|
-
this.options = r, Q(this, Qt, t), Q(this, as, null), Q(this,
|
|
3702
|
+
this.options = r, Q(this, Qt, t), Q(this, as, null), Q(this, Pn, sp()), this.bindMethods(), this.setOptions(r);
|
|
3683
3703
|
}
|
|
3684
3704
|
bindMethods() {
|
|
3685
3705
|
this.refetch = this.refetch.bind(this);
|
|
@@ -3730,14 +3750,14 @@ var Qt, De, Vi, jt, js, Xa, Sn, as, Wi, Qa, Ja, Vs, Ws, os, eo, qe, Ko, op, ip,
|
|
|
3730
3750
|
}
|
|
3731
3751
|
getOptimisticResult(t) {
|
|
3732
3752
|
const r = M(this, Qt).getQueryCache().build(M(this, Qt), t), n = this.createResult(r, t);
|
|
3733
|
-
return
|
|
3753
|
+
return p3(this, n) && (Q(this, jt, n), Q(this, Xa, this.options), Q(this, js, M(this, De).state)), n;
|
|
3734
3754
|
}
|
|
3735
3755
|
getCurrentResult() {
|
|
3736
3756
|
return M(this, jt);
|
|
3737
3757
|
}
|
|
3738
3758
|
trackResult(t, r) {
|
|
3739
3759
|
return new Proxy(t, {
|
|
3740
|
-
get: (n, s) => (this.trackProp(s), r == null || r(s), s === "promise" && (this.trackProp("data"), !this.options.experimental_prefetchInRender && M(this,
|
|
3760
|
+
get: (n, s) => (this.trackProp(s), r == null || r(s), s === "promise" && (this.trackProp("data"), !this.options.experimental_prefetchInRender && M(this, Pn).status === "pending" && M(this, Pn).reject(
|
|
3741
3761
|
new Error(
|
|
3742
3762
|
"experimental_prefetchInRender feature flag is not enabled"
|
|
3743
3763
|
)
|
|
@@ -3825,16 +3845,16 @@ var Qt, De, Vi, jt, js, Xa, Sn, as, Wi, Qa, Ja, Vs, Ws, os, eo, qe, Ko, op, ip,
|
|
|
3825
3845
|
isRefetchError: C && R,
|
|
3826
3846
|
isStale: Cf(t, r),
|
|
3827
3847
|
refetch: this.refetch,
|
|
3828
|
-
promise: M(this,
|
|
3848
|
+
promise: M(this, Pn),
|
|
3829
3849
|
isEnabled: Sr(r.enabled, t) !== !1
|
|
3830
3850
|
};
|
|
3831
3851
|
if (this.options.experimental_prefetchInRender) {
|
|
3832
3852
|
const x = (B) => {
|
|
3833
3853
|
h.status === "error" ? B.reject(h.error) : h.data !== void 0 && B.resolve(h.data);
|
|
3834
3854
|
}, A = () => {
|
|
3835
|
-
const B = Q(this,
|
|
3855
|
+
const B = Q(this, Pn, h.promise = sp());
|
|
3836
3856
|
x(B);
|
|
3837
|
-
}, I = M(this,
|
|
3857
|
+
}, I = M(this, Pn);
|
|
3838
3858
|
switch (I.status) {
|
|
3839
3859
|
case "pending":
|
|
3840
3860
|
t.queryHash === n.queryHash && x(I);
|
|
@@ -3873,7 +3893,7 @@ var Qt, De, Vi, jt, js, Xa, Sn, as, Wi, Qa, Ja, Vs, Ws, os, eo, qe, Ko, op, ip,
|
|
|
3873
3893
|
onQueryUpdate() {
|
|
3874
3894
|
this.updateResult(), this.hasListeners() && Se(this, qe, lp).call(this);
|
|
3875
3895
|
}
|
|
3876
|
-
}, Qt = new WeakMap(), De = new WeakMap(), Vi = new WeakMap(), jt = new WeakMap(), js = new WeakMap(), Xa = new WeakMap(),
|
|
3896
|
+
}, Qt = new WeakMap(), De = new WeakMap(), Vi = new WeakMap(), jt = new WeakMap(), js = new WeakMap(), Xa = new WeakMap(), Pn = new WeakMap(), as = new WeakMap(), Wi = new WeakMap(), Qa = new WeakMap(), Ja = new WeakMap(), Vs = new WeakMap(), Ws = new WeakMap(), os = new WeakMap(), eo = new WeakMap(), qe = new WeakSet(), Ko = function(t) {
|
|
3877
3897
|
Se(this, qe, pp).call(this);
|
|
3878
3898
|
let r = M(this, De).fetch(
|
|
3879
3899
|
this.options,
|
|
@@ -3920,11 +3940,11 @@ var Qt, De, Vi, jt, js, Xa, Sn, as, Wi, Qa, Ja, Vs, Ws, os, eo, qe, Ko, op, ip,
|
|
|
3920
3940
|
});
|
|
3921
3941
|
});
|
|
3922
3942
|
}, ib);
|
|
3923
|
-
function
|
|
3943
|
+
function d3(e, t) {
|
|
3924
3944
|
return Sr(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
|
3925
3945
|
}
|
|
3926
3946
|
function Zm(e, t) {
|
|
3927
|
-
return
|
|
3947
|
+
return d3(e, t) || e.state.data !== void 0 && fp(e, t, t.refetchOnMount);
|
|
3928
3948
|
}
|
|
3929
3949
|
function fp(e, t, r) {
|
|
3930
3950
|
if (Sr(t.enabled, e) !== !1 && fs(t.staleTime, e) !== "static") {
|
|
@@ -3939,7 +3959,7 @@ function Xm(e, t, r, n) {
|
|
|
3939
3959
|
function Cf(e, t) {
|
|
3940
3960
|
return Sr(t.enabled, e) !== !1 && e.isStaleByTime(fs(t.staleTime, e));
|
|
3941
3961
|
}
|
|
3942
|
-
function
|
|
3962
|
+
function p3(e, t) {
|
|
3943
3963
|
return !Pl(e.getCurrentResult(), t);
|
|
3944
3964
|
}
|
|
3945
3965
|
function Qm(e) {
|
|
@@ -3971,14 +3991,14 @@ function Qm(e) {
|
|
|
3971
3991
|
meta: t.options.meta
|
|
3972
3992
|
};
|
|
3973
3993
|
return E(A), A;
|
|
3974
|
-
})(), h = await v(T), { maxPages: b } = t.options, x = O ?
|
|
3994
|
+
})(), h = await v(T), { maxPages: b } = t.options, x = O ? n3 : r3;
|
|
3975
3995
|
return {
|
|
3976
3996
|
pages: x(S.pages, h, b),
|
|
3977
3997
|
pageParams: x(S.pageParams, C, b)
|
|
3978
3998
|
};
|
|
3979
3999
|
};
|
|
3980
4000
|
if (s && a.length) {
|
|
3981
|
-
const S = s === "backward", C = S ?
|
|
4001
|
+
const S = s === "backward", C = S ? f3 : Jm, O = {
|
|
3982
4002
|
pages: a,
|
|
3983
4003
|
pageParams: o
|
|
3984
4004
|
}, R = C(n, O);
|
|
@@ -4020,11 +4040,11 @@ function Jm(e, { pages: t, pageParams: r }) {
|
|
|
4020
4040
|
r
|
|
4021
4041
|
) : void 0;
|
|
4022
4042
|
}
|
|
4023
|
-
function
|
|
4043
|
+
function f3(e, { pages: t, pageParams: r }) {
|
|
4024
4044
|
var n;
|
|
4025
4045
|
return t.length > 0 ? (n = e.getPreviousPageParam) == null ? void 0 : n.call(e, t[0], t, r[0], r) : void 0;
|
|
4026
4046
|
}
|
|
4027
|
-
var qi, en, Vt, qs, tn, ts, cb,
|
|
4047
|
+
var qi, en, Vt, qs, tn, ts, cb, m3 = (cb = class extends Pb {
|
|
4028
4048
|
constructor(t) {
|
|
4029
4049
|
super();
|
|
4030
4050
|
le(this, tn);
|
|
@@ -4253,16 +4273,16 @@ function Fb() {
|
|
|
4253
4273
|
submittedAt: 0
|
|
4254
4274
|
};
|
|
4255
4275
|
}
|
|
4256
|
-
var
|
|
4276
|
+
var In, Rr, Yi, lb, h3 = (lb = class extends yo {
|
|
4257
4277
|
constructor(t = {}) {
|
|
4258
4278
|
super();
|
|
4259
|
-
le(this,
|
|
4279
|
+
le(this, In);
|
|
4260
4280
|
le(this, Rr);
|
|
4261
4281
|
le(this, Yi);
|
|
4262
|
-
this.config = t, Q(this,
|
|
4282
|
+
this.config = t, Q(this, In, /* @__PURE__ */ new Set()), Q(this, Rr, /* @__PURE__ */ new Map()), Q(this, Yi, 0);
|
|
4263
4283
|
}
|
|
4264
4284
|
build(t, r, n) {
|
|
4265
|
-
const s = new
|
|
4285
|
+
const s = new m3({
|
|
4266
4286
|
client: t,
|
|
4267
4287
|
mutationCache: this,
|
|
4268
4288
|
mutationId: ++Sc(this, Yi)._,
|
|
@@ -4272,7 +4292,7 @@ var Pn, Rr, Yi, lb, f3 = (lb = class extends yo {
|
|
|
4272
4292
|
return this.add(s), s;
|
|
4273
4293
|
}
|
|
4274
4294
|
add(t) {
|
|
4275
|
-
M(this,
|
|
4295
|
+
M(this, In).add(t);
|
|
4276
4296
|
const r = Bc(t);
|
|
4277
4297
|
if (typeof r == "string") {
|
|
4278
4298
|
const n = M(this, Rr).get(r);
|
|
@@ -4281,7 +4301,7 @@ var Pn, Rr, Yi, lb, f3 = (lb = class extends yo {
|
|
|
4281
4301
|
this.notify({ type: "added", mutation: t });
|
|
4282
4302
|
}
|
|
4283
4303
|
remove(t) {
|
|
4284
|
-
if (M(this,
|
|
4304
|
+
if (M(this, In).delete(t)) {
|
|
4285
4305
|
const r = Bc(t);
|
|
4286
4306
|
if (typeof r == "string") {
|
|
4287
4307
|
const n = M(this, Rr).get(r);
|
|
@@ -4315,13 +4335,13 @@ var Pn, Rr, Yi, lb, f3 = (lb = class extends yo {
|
|
|
4315
4335
|
}
|
|
4316
4336
|
clear() {
|
|
4317
4337
|
Tt.batch(() => {
|
|
4318
|
-
M(this,
|
|
4338
|
+
M(this, In).forEach((t) => {
|
|
4319
4339
|
this.notify({ type: "removed", mutation: t });
|
|
4320
|
-
}), M(this,
|
|
4340
|
+
}), M(this, In).clear(), M(this, Rr).clear();
|
|
4321
4341
|
});
|
|
4322
4342
|
}
|
|
4323
4343
|
getAll() {
|
|
4324
|
-
return Array.from(M(this,
|
|
4344
|
+
return Array.from(M(this, In));
|
|
4325
4345
|
}
|
|
4326
4346
|
find(t) {
|
|
4327
4347
|
const r = { exact: !0, ...t };
|
|
@@ -4347,20 +4367,20 @@ var Pn, Rr, Yi, lb, f3 = (lb = class extends yo {
|
|
|
4347
4367
|
)
|
|
4348
4368
|
);
|
|
4349
4369
|
}
|
|
4350
|
-
},
|
|
4370
|
+
}, In = new WeakMap(), Rr = new WeakMap(), Yi = new WeakMap(), lb);
|
|
4351
4371
|
function Bc(e) {
|
|
4352
4372
|
var t;
|
|
4353
4373
|
return (t = e.options.scope) == null ? void 0 : t.id;
|
|
4354
4374
|
}
|
|
4355
|
-
var
|
|
4375
|
+
var Bn, is, Jt, Fn, $n, wl, mp, ub, b3 = (ub = class extends yo {
|
|
4356
4376
|
constructor(t, r) {
|
|
4357
4377
|
super();
|
|
4358
|
-
le(this,
|
|
4359
|
-
le(this,
|
|
4378
|
+
le(this, $n);
|
|
4379
|
+
le(this, Bn);
|
|
4360
4380
|
le(this, is);
|
|
4361
4381
|
le(this, Jt);
|
|
4362
|
-
le(this,
|
|
4363
|
-
Q(this,
|
|
4382
|
+
le(this, Fn);
|
|
4383
|
+
Q(this, Bn, t), this.setOptions(r), this.bindMethods(), Se(this, $n, wl).call(this);
|
|
4364
4384
|
}
|
|
4365
4385
|
bindMethods() {
|
|
4366
4386
|
this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
|
|
@@ -4368,7 +4388,7 @@ var In, is, Jt, Bn, Ln, wl, mp, ub, m3 = (ub = class extends yo {
|
|
|
4368
4388
|
setOptions(t) {
|
|
4369
4389
|
var n;
|
|
4370
4390
|
const r = this.options;
|
|
4371
|
-
this.options = M(this,
|
|
4391
|
+
this.options = M(this, Bn).defaultMutationOptions(t), Pl(this.options, r) || M(this, Bn).getMutationCache().notify({
|
|
4372
4392
|
type: "observerOptionsUpdated",
|
|
4373
4393
|
mutation: M(this, Jt),
|
|
4374
4394
|
observer: this
|
|
@@ -4379,20 +4399,20 @@ var In, is, Jt, Bn, Ln, wl, mp, ub, m3 = (ub = class extends yo {
|
|
|
4379
4399
|
this.hasListeners() || (t = M(this, Jt)) == null || t.removeObserver(this);
|
|
4380
4400
|
}
|
|
4381
4401
|
onMutationUpdate(t) {
|
|
4382
|
-
Se(this,
|
|
4402
|
+
Se(this, $n, wl).call(this), Se(this, $n, mp).call(this, t);
|
|
4383
4403
|
}
|
|
4384
4404
|
getCurrentResult() {
|
|
4385
4405
|
return M(this, is);
|
|
4386
4406
|
}
|
|
4387
4407
|
reset() {
|
|
4388
4408
|
var t;
|
|
4389
|
-
(t = M(this, Jt)) == null || t.removeObserver(this), Q(this, Jt, void 0), Se(this,
|
|
4409
|
+
(t = M(this, Jt)) == null || t.removeObserver(this), Q(this, Jt, void 0), Se(this, $n, wl).call(this), Se(this, $n, mp).call(this);
|
|
4390
4410
|
}
|
|
4391
4411
|
mutate(t, r) {
|
|
4392
4412
|
var n;
|
|
4393
|
-
return Q(this,
|
|
4413
|
+
return Q(this, Fn, r), (n = M(this, Jt)) == null || n.removeObserver(this), Q(this, Jt, M(this, Bn).getMutationCache().build(M(this, Bn), this.options)), M(this, Jt).addObserver(this), M(this, Jt).execute(t);
|
|
4394
4414
|
}
|
|
4395
|
-
},
|
|
4415
|
+
}, Bn = new WeakMap(), is = new WeakMap(), Jt = new WeakMap(), Fn = new WeakMap(), $n = new WeakSet(), wl = function() {
|
|
4396
4416
|
var r;
|
|
4397
4417
|
const t = ((r = M(this, Jt)) == null ? void 0 : r.state) ?? Fb();
|
|
4398
4418
|
Q(this, is, {
|
|
@@ -4407,32 +4427,32 @@ var In, is, Jt, Bn, Ln, wl, mp, ub, m3 = (ub = class extends yo {
|
|
|
4407
4427
|
}, mp = function(t) {
|
|
4408
4428
|
Tt.batch(() => {
|
|
4409
4429
|
var r, n, s, a, o, i, c, l;
|
|
4410
|
-
if (M(this,
|
|
4430
|
+
if (M(this, Fn) && this.hasListeners()) {
|
|
4411
4431
|
const u = M(this, is).variables, d = M(this, is).context, f = {
|
|
4412
|
-
client: M(this,
|
|
4432
|
+
client: M(this, Bn),
|
|
4413
4433
|
meta: this.options.meta,
|
|
4414
4434
|
mutationKey: this.options.mutationKey
|
|
4415
4435
|
};
|
|
4416
|
-
(t == null ? void 0 : t.type) === "success" ? ((n = (r = M(this,
|
|
4436
|
+
(t == null ? void 0 : t.type) === "success" ? ((n = (r = M(this, Fn)).onSuccess) == null || n.call(
|
|
4417
4437
|
r,
|
|
4418
4438
|
t.data,
|
|
4419
4439
|
u,
|
|
4420
4440
|
d,
|
|
4421
4441
|
f
|
|
4422
|
-
), (a = (s = M(this,
|
|
4442
|
+
), (a = (s = M(this, Fn)).onSettled) == null || a.call(
|
|
4423
4443
|
s,
|
|
4424
4444
|
t.data,
|
|
4425
4445
|
null,
|
|
4426
4446
|
u,
|
|
4427
4447
|
d,
|
|
4428
4448
|
f
|
|
4429
|
-
)) : (t == null ? void 0 : t.type) === "error" && ((i = (o = M(this,
|
|
4449
|
+
)) : (t == null ? void 0 : t.type) === "error" && ((i = (o = M(this, Fn)).onError) == null || i.call(
|
|
4430
4450
|
o,
|
|
4431
4451
|
t.error,
|
|
4432
4452
|
u,
|
|
4433
4453
|
d,
|
|
4434
4454
|
f
|
|
4435
|
-
), (l = (c = M(this,
|
|
4455
|
+
), (l = (c = M(this, Fn)).onSettled) == null || l.call(
|
|
4436
4456
|
c,
|
|
4437
4457
|
void 0,
|
|
4438
4458
|
t.error,
|
|
@@ -4445,7 +4465,7 @@ var In, is, Jt, Bn, Ln, wl, mp, ub, m3 = (ub = class extends yo {
|
|
|
4445
4465
|
u(M(this, is));
|
|
4446
4466
|
});
|
|
4447
4467
|
});
|
|
4448
|
-
}, ub), rn, db,
|
|
4468
|
+
}, ub), rn, db, y3 = (db = class extends yo {
|
|
4449
4469
|
constructor(t = {}) {
|
|
4450
4470
|
super();
|
|
4451
4471
|
le(this, rn);
|
|
@@ -4454,7 +4474,7 @@ var In, is, Jt, Bn, Ln, wl, mp, ub, m3 = (ub = class extends yo {
|
|
|
4454
4474
|
build(t, r, n) {
|
|
4455
4475
|
const s = r.queryKey, a = r.queryHash ?? Ef(s, r);
|
|
4456
4476
|
let o = this.get(a);
|
|
4457
|
-
return o || (o = new
|
|
4477
|
+
return o || (o = new l3({
|
|
4458
4478
|
client: t,
|
|
4459
4479
|
queryKey: s,
|
|
4460
4480
|
queryHash: a,
|
|
@@ -4517,7 +4537,7 @@ var In, is, Jt, Bn, Ln, wl, mp, ub, m3 = (ub = class extends yo {
|
|
|
4517
4537
|
});
|
|
4518
4538
|
});
|
|
4519
4539
|
}
|
|
4520
|
-
}, rn = new WeakMap(), db), dt, cs, ls, to, ro, us, no, so, pb,
|
|
4540
|
+
}, rn = new WeakMap(), db), dt, cs, ls, to, ro, us, no, so, pb, g3 = (pb = class {
|
|
4521
4541
|
constructor(e = {}) {
|
|
4522
4542
|
le(this, dt);
|
|
4523
4543
|
le(this, cs);
|
|
@@ -4527,7 +4547,7 @@ var In, is, Jt, Bn, Ln, wl, mp, ub, m3 = (ub = class extends yo {
|
|
|
4527
4547
|
le(this, us);
|
|
4528
4548
|
le(this, no);
|
|
4529
4549
|
le(this, so);
|
|
4530
|
-
Q(this, dt, e.queryCache || new
|
|
4550
|
+
Q(this, dt, e.queryCache || new y3()), Q(this, cs, e.mutationCache || new h3()), Q(this, ls, e.defaultOptions || {}), Q(this, to, /* @__PURE__ */ new Map()), Q(this, ro, /* @__PURE__ */ new Map()), Q(this, us, 0);
|
|
4531
4551
|
}
|
|
4532
4552
|
mount() {
|
|
4533
4553
|
Sc(this, us)._++, M(this, us) === 1 && (Q(this, no, kf.subscribe(async (e) => {
|
|
@@ -4571,7 +4591,7 @@ var In, is, Jt, Bn, Ln, wl, mp, ub, m3 = (ub = class extends yo {
|
|
|
4571
4591
|
setQueryData(e, t, r) {
|
|
4572
4592
|
const n = this.defaultQueryOptions({ queryKey: e }), s = M(this, dt).get(
|
|
4573
4593
|
n.queryHash
|
|
4574
|
-
), a = s == null ? void 0 : s.state.data, o =
|
|
4594
|
+
), a = s == null ? void 0 : s.state.data, o = Jw(t, a);
|
|
4575
4595
|
if (o !== void 0)
|
|
4576
4596
|
return M(this, dt).build(this, n).setData(o, { ...r, manual: !0 });
|
|
4577
4597
|
}
|
|
@@ -4730,14 +4750,14 @@ var In, is, Jt, Bn, Ln, wl, mp, ub, m3 = (ub = class extends yo {
|
|
|
4730
4750
|
if (!t)
|
|
4731
4751
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
4732
4752
|
return t;
|
|
4733
|
-
},
|
|
4753
|
+
}, x3 = ({
|
|
4734
4754
|
client: e,
|
|
4735
4755
|
children: t
|
|
4736
4756
|
}) => (vt.useEffect(() => (e.mount(), () => {
|
|
4737
4757
|
e.unmount();
|
|
4738
|
-
}), [e]), /* @__PURE__ */ _(Ub.Provider, { value: e, children: t })), Ob = vt.createContext(!1),
|
|
4758
|
+
}), [e]), /* @__PURE__ */ _(Ub.Provider, { value: e, children: t })), Ob = vt.createContext(!1), w3 = () => vt.useContext(Ob);
|
|
4739
4759
|
Ob.Provider;
|
|
4740
|
-
function
|
|
4760
|
+
function v3() {
|
|
4741
4761
|
let e = !1;
|
|
4742
4762
|
return {
|
|
4743
4763
|
clearReset: () => {
|
|
@@ -4749,19 +4769,19 @@ function x3() {
|
|
|
4749
4769
|
isReset: () => e
|
|
4750
4770
|
};
|
|
4751
4771
|
}
|
|
4752
|
-
var
|
|
4772
|
+
var E3 = vt.createContext(v3()), k3 = () => vt.useContext(E3), C3 = (e, t) => {
|
|
4753
4773
|
(e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
|
|
4754
|
-
},
|
|
4774
|
+
}, T3 = (e) => {
|
|
4755
4775
|
vt.useEffect(() => {
|
|
4756
4776
|
e.clearReset();
|
|
4757
4777
|
}, [e]);
|
|
4758
|
-
},
|
|
4778
|
+
}, A3 = ({
|
|
4759
4779
|
result: e,
|
|
4760
4780
|
errorResetBoundary: t,
|
|
4761
4781
|
throwOnError: r,
|
|
4762
4782
|
query: n,
|
|
4763
4783
|
suspense: s
|
|
4764
|
-
}) => e.isError && !t.isReset() && !e.isFetching && n && (s && e.data === void 0 || Tb(r, [e.error, n])),
|
|
4784
|
+
}) => e.isError && !t.isReset() && !e.isFetching && n && (s && e.data === void 0 || Tb(r, [e.error, n])), S3 = (e) => {
|
|
4765
4785
|
if (e.suspense) {
|
|
4766
4786
|
const r = (s) => s === "static" ? s : Math.max(s ?? 1e3, 1e3), n = e.staleTime;
|
|
4767
4787
|
e.staleTime = typeof n == "function" ? (...s) => r(n(...s)) : r(n), typeof e.gcTime == "number" && (e.gcTime = Math.max(
|
|
@@ -4769,22 +4789,22 @@ var w3 = vt.createContext(x3()), v3 = () => vt.useContext(w3), E3 = (e, t) => {
|
|
|
4769
4789
|
1e3
|
|
4770
4790
|
));
|
|
4771
4791
|
}
|
|
4772
|
-
},
|
|
4792
|
+
}, P3 = (e, t) => e.isLoading && e.isFetching && !t, I3 = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending, eh = (e, t, r) => t.fetchOptimistic(e).catch(() => {
|
|
4773
4793
|
r.clearReset();
|
|
4774
4794
|
});
|
|
4775
|
-
function
|
|
4795
|
+
function B3(e, t, r) {
|
|
4776
4796
|
var d, f, m, y, g;
|
|
4777
4797
|
if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
|
|
4778
4798
|
throw new Error(
|
|
4779
4799
|
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
|
4780
4800
|
);
|
|
4781
|
-
const n =
|
|
4801
|
+
const n = w3(), s = k3(), a = Ql(), o = a.defaultQueryOptions(e);
|
|
4782
4802
|
(f = (d = a.getDefaultOptions().queries) == null ? void 0 : d._experimental_beforeQuery) == null || f.call(
|
|
4783
4803
|
d,
|
|
4784
4804
|
o
|
|
4785
4805
|
), process.env.NODE_ENV !== "production" && (o.queryFn || console.error(
|
|
4786
4806
|
`[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
|
|
4787
|
-
)), o._optimisticResults = n ? "isRestoring" : "optimistic",
|
|
4807
|
+
)), o._optimisticResults = n ? "isRestoring" : "optimistic", S3(o), C3(o, s), T3(s);
|
|
4788
4808
|
const i = !a.getQueryCache().get(o.queryHash), [c] = vt.useState(
|
|
4789
4809
|
() => new t(
|
|
4790
4810
|
a,
|
|
@@ -4803,9 +4823,9 @@ function P3(e, t, r) {
|
|
|
4803
4823
|
() => c.getCurrentResult()
|
|
4804
4824
|
), vt.useEffect(() => {
|
|
4805
4825
|
c.setOptions(o);
|
|
4806
|
-
}, [o, c]),
|
|
4826
|
+
}, [o, c]), I3(o, l))
|
|
4807
4827
|
throw eh(o, c, s);
|
|
4808
|
-
if (
|
|
4828
|
+
if (A3({
|
|
4809
4829
|
result: l,
|
|
4810
4830
|
errorResetBoundary: s,
|
|
4811
4831
|
throwOnError: o.throwOnError,
|
|
@@ -4817,7 +4837,7 @@ function P3(e, t, r) {
|
|
|
4817
4837
|
m,
|
|
4818
4838
|
o,
|
|
4819
4839
|
l
|
|
4820
|
-
), o.experimental_prefetchInRender && !Qs &&
|
|
4840
|
+
), o.experimental_prefetchInRender && !Qs && P3(l, n)) {
|
|
4821
4841
|
const E = i ? (
|
|
4822
4842
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
4823
4843
|
eh(o, c, s)
|
|
@@ -4831,12 +4851,12 @@ function P3(e, t, r) {
|
|
|
4831
4851
|
}
|
|
4832
4852
|
return o.notifyOnChangeProps ? l : c.trackResult(l);
|
|
4833
4853
|
}
|
|
4834
|
-
function
|
|
4835
|
-
return
|
|
4854
|
+
function F3(e, t) {
|
|
4855
|
+
return B3(e, u3);
|
|
4836
4856
|
}
|
|
4837
|
-
function
|
|
4857
|
+
function Vn(e, t) {
|
|
4838
4858
|
const r = Ql(), [n] = vt.useState(
|
|
4839
|
-
() => new
|
|
4859
|
+
() => new b3(
|
|
4840
4860
|
r,
|
|
4841
4861
|
e
|
|
4842
4862
|
)
|
|
@@ -4861,11 +4881,11 @@ function jn(e, t) {
|
|
|
4861
4881
|
throw s.error;
|
|
4862
4882
|
return { ...s, mutate: a, mutateAsync: s.mutate };
|
|
4863
4883
|
}
|
|
4864
|
-
const
|
|
4884
|
+
const U3 = Ki(null), sd = {
|
|
4865
4885
|
didCatch: !1,
|
|
4866
4886
|
error: null
|
|
4867
4887
|
};
|
|
4868
|
-
class
|
|
4888
|
+
class O3 extends qx {
|
|
4869
4889
|
constructor(t) {
|
|
4870
4890
|
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = sd;
|
|
4871
4891
|
}
|
|
@@ -4898,7 +4918,7 @@ class F3 extends qx {
|
|
|
4898
4918
|
} = this.state, {
|
|
4899
4919
|
resetKeys: s
|
|
4900
4920
|
} = this.props;
|
|
4901
|
-
if (n && r.error !== null &&
|
|
4921
|
+
if (n && r.error !== null && D3(t.resetKeys, s)) {
|
|
4902
4922
|
var a, o;
|
|
4903
4923
|
(a = (o = this.props).onReset) === null || a === void 0 || a.call(o, {
|
|
4904
4924
|
next: s,
|
|
@@ -4932,7 +4952,7 @@ class F3 extends qx {
|
|
|
4932
4952
|
else
|
|
4933
4953
|
throw o;
|
|
4934
4954
|
}
|
|
4935
|
-
return _a(
|
|
4955
|
+
return _a(U3.Provider, {
|
|
4936
4956
|
value: {
|
|
4937
4957
|
didCatch: a,
|
|
4938
4958
|
error: o,
|
|
@@ -4941,7 +4961,7 @@ class F3 extends qx {
|
|
|
4941
4961
|
}, i);
|
|
4942
4962
|
}
|
|
4943
4963
|
}
|
|
4944
|
-
function
|
|
4964
|
+
function D3() {
|
|
4945
4965
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
4946
4966
|
return e.length !== t.length || e.some((r, n) => !Object.is(r, t[n]));
|
|
4947
4967
|
}
|
|
@@ -4955,8 +4975,8 @@ const th = (e) => {
|
|
|
4955
4975
|
}
|
|
4956
4976
|
}, s = () => t, i = { setState: n, getState: s, getInitialState: () => c, subscribe: (l) => (r.add(l), () => r.delete(l)) }, c = t = e(n, s, i);
|
|
4957
4977
|
return i;
|
|
4958
|
-
},
|
|
4959
|
-
function
|
|
4978
|
+
}, _3 = ((e) => e ? th(e) : th), M3 = (e) => e;
|
|
4979
|
+
function R3(e, t = M3) {
|
|
4960
4980
|
const r = te.useSyncExternalStore(
|
|
4961
4981
|
e.subscribe,
|
|
4962
4982
|
te.useCallback(() => t(e.getState()), [e, t]),
|
|
@@ -4965,13 +4985,13 @@ function _3(e, t = D3) {
|
|
|
4965
4985
|
return te.useDebugValue(r), r;
|
|
4966
4986
|
}
|
|
4967
4987
|
const rh = (e) => {
|
|
4968
|
-
const t =
|
|
4988
|
+
const t = _3(e), r = (n) => R3(t, n);
|
|
4969
4989
|
return Object.assign(r, t), r;
|
|
4970
|
-
},
|
|
4990
|
+
}, N3 = ((e) => e ? rh(e) : rh), nh = {
|
|
4971
4991
|
disclaimerAccepted: !0,
|
|
4972
4992
|
currentTime: Date.now(),
|
|
4973
4993
|
swapExecution: {}
|
|
4974
|
-
}, Y =
|
|
4994
|
+
}, Y = N3((e, t) => ({
|
|
4975
4995
|
state: nh,
|
|
4976
4996
|
updateState: (r) => e((n) => ({ state: { ...n.state, ...r } })),
|
|
4977
4997
|
updateSwapExecution: (r) => e((n) => ({ state: { ...n.state, swapExecution: { ...n.state.swapExecution, ...r } } })),
|
|
@@ -5006,12 +5026,12 @@ function ai({ children: e, className: t = "" }) {
|
|
|
5006
5026
|
return /* @__PURE__ */ _("p", { className: `${t} ${Le("Text")}`, children: e });
|
|
5007
5027
|
}
|
|
5008
5028
|
const Db = Ki({});
|
|
5009
|
-
function
|
|
5029
|
+
function z3({ children: e, ...t }) {
|
|
5010
5030
|
return /* @__PURE__ */ _(Db.Provider, { value: t, children: e });
|
|
5011
5031
|
}
|
|
5012
|
-
const
|
|
5032
|
+
const pn = () => Zl(Db);
|
|
5013
5033
|
var gt = /* @__PURE__ */ ((e) => (e[e.LOADING = 1] = "LOADING", e[e.SUCCESS = 2] = "SUCCESS", e[e.FAILED = 3] = "FAILED", e))(gt || {});
|
|
5014
|
-
const
|
|
5034
|
+
const L3 = ({
|
|
5015
5035
|
className: e = "",
|
|
5016
5036
|
size: t = 38,
|
|
5017
5037
|
borderWidth: r = 3,
|
|
@@ -5042,21 +5062,21 @@ function Jl({
|
|
|
5042
5062
|
}) {
|
|
5043
5063
|
return /* @__PURE__ */ fe("div", { className: `${Le("TradeStepLayout")} ${e}`, children: [
|
|
5044
5064
|
/* @__PURE__ */ fe("div", { className: Le("TradeStepLayoutHeader"), children: [
|
|
5045
|
-
/* @__PURE__ */ _(
|
|
5065
|
+
/* @__PURE__ */ _(V3, {}),
|
|
5046
5066
|
s && /* @__PURE__ */ _(ai, { className: Le("TradeStepLayoutTitle"), children: s })
|
|
5047
5067
|
] }),
|
|
5048
5068
|
t && /* @__PURE__ */ _("div", { className: Le("TradeStepLayoutBody"), children: t }),
|
|
5049
|
-
/* @__PURE__ */ _(
|
|
5069
|
+
/* @__PURE__ */ _($3, { link: r, text: n }),
|
|
5050
5070
|
a
|
|
5051
5071
|
] });
|
|
5052
5072
|
}
|
|
5053
|
-
const
|
|
5054
|
-
const { swapStatus: r } =
|
|
5073
|
+
const $3 = ({ link: e, text: t }) => {
|
|
5074
|
+
const { swapStatus: r } = pn();
|
|
5055
5075
|
return !e && !t ? null : /* @__PURE__ */ fe("div", { className: Le("TradeStepLayoutFooter"), children: [
|
|
5056
|
-
/* @__PURE__ */ _(
|
|
5057
|
-
e ? /* @__PURE__ */ _(
|
|
5076
|
+
/* @__PURE__ */ _(q3, {}),
|
|
5077
|
+
e ? /* @__PURE__ */ _(H3, { link: e, text: t }) : r === gt.FAILED ? void 0 : /* @__PURE__ */ _(ai, { children: t })
|
|
5058
5078
|
] });
|
|
5059
|
-
},
|
|
5079
|
+
}, H3 = ({ link: e, text: t }) => /* @__PURE__ */ _(
|
|
5060
5080
|
"a",
|
|
5061
5081
|
{
|
|
5062
5082
|
target: "_blank",
|
|
@@ -5065,8 +5085,8 @@ const z3 = ({ link: e, text: t }) => {
|
|
|
5065
5085
|
children: t
|
|
5066
5086
|
}
|
|
5067
5087
|
);
|
|
5068
|
-
function
|
|
5069
|
-
const { components: e } =
|
|
5088
|
+
function G3() {
|
|
5089
|
+
const { components: e } = pn();
|
|
5070
5090
|
return e.SuccessIcon ? e.SuccessIcon : /* @__PURE__ */ fe(
|
|
5071
5091
|
"svg",
|
|
5072
5092
|
{
|
|
@@ -5089,8 +5109,8 @@ function $3() {
|
|
|
5089
5109
|
}
|
|
5090
5110
|
);
|
|
5091
5111
|
}
|
|
5092
|
-
function
|
|
5093
|
-
const { components: e } =
|
|
5112
|
+
function j3() {
|
|
5113
|
+
const { components: e } = pn();
|
|
5094
5114
|
return e.FailedIcon ? e.FailedIcon : /* @__PURE__ */ fe(
|
|
5095
5115
|
"svg",
|
|
5096
5116
|
{
|
|
@@ -5113,21 +5133,21 @@ function H3() {
|
|
|
5113
5133
|
}
|
|
5114
5134
|
);
|
|
5115
5135
|
}
|
|
5116
|
-
const
|
|
5117
|
-
const { swapStatus: e } =
|
|
5118
|
-
return e === gt.SUCCESS ? /* @__PURE__ */ _(
|
|
5119
|
-
},
|
|
5120
|
-
const { components: e } =
|
|
5136
|
+
const V3 = () => {
|
|
5137
|
+
const { swapStatus: e } = pn();
|
|
5138
|
+
return e === gt.SUCCESS ? /* @__PURE__ */ _(G3, {}) : e === gt.FAILED ? /* @__PURE__ */ _(j3, {}) : /* @__PURE__ */ _(W3, {});
|
|
5139
|
+
}, W3 = () => {
|
|
5140
|
+
const { components: e } = pn();
|
|
5121
5141
|
return e.Loader ? e.Loader : /* @__PURE__ */ _(
|
|
5122
|
-
|
|
5142
|
+
L3,
|
|
5123
5143
|
{
|
|
5124
5144
|
size: 60,
|
|
5125
5145
|
borderWidth: 5,
|
|
5126
5146
|
className: Le("TradeStepLayoutSpinner")
|
|
5127
5147
|
}
|
|
5128
5148
|
);
|
|
5129
|
-
},
|
|
5130
|
-
const { totalSteps: e, currentStepIndex: t = 0, swapStatus: r } =
|
|
5149
|
+
}, q3 = () => {
|
|
5150
|
+
const { totalSteps: e, currentStepIndex: t = 0, swapStatus: r } = pn();
|
|
5131
5151
|
return r !== gt.LOADING || e === 1 ? null : /* @__PURE__ */ _("div", { className: Le("StepIndicator"), children: /* @__PURE__ */ _(
|
|
5132
5152
|
"div",
|
|
5133
5153
|
{
|
|
@@ -5138,7 +5158,7 @@ const G3 = () => {
|
|
|
5138
5158
|
className: Le("StepIndicatorLine")
|
|
5139
5159
|
}
|
|
5140
5160
|
) });
|
|
5141
|
-
},
|
|
5161
|
+
}, Y3 = ({
|
|
5142
5162
|
error: e,
|
|
5143
5163
|
footerLink: t,
|
|
5144
5164
|
footerText: r
|
|
@@ -5151,7 +5171,7 @@ const G3 = () => {
|
|
|
5151
5171
|
className: Le("FailedContent")
|
|
5152
5172
|
}
|
|
5153
5173
|
);
|
|
5154
|
-
function
|
|
5174
|
+
function K3() {
|
|
5155
5175
|
return /* @__PURE__ */ _(
|
|
5156
5176
|
"svg",
|
|
5157
5177
|
{
|
|
@@ -5169,11 +5189,11 @@ function q3() {
|
|
|
5169
5189
|
);
|
|
5170
5190
|
}
|
|
5171
5191
|
const _b = ({ inTokenOnly: e }) => {
|
|
5172
|
-
const { inToken: t, outToken: r, inAmount: n, outAmount: s, components: a } =
|
|
5192
|
+
const { inToken: t, outToken: r, inAmount: n, outAmount: s, components: a } = pn();
|
|
5173
5193
|
return /* @__PURE__ */ fe("div", { className: Le("TradePreview"), children: [
|
|
5174
5194
|
/* @__PURE__ */ _(sh, { token: t, amount: n, Logo: a == null ? void 0 : a.SrcTokenLogo }),
|
|
5175
5195
|
!e && /* @__PURE__ */ fe(mo, { children: [
|
|
5176
|
-
/* @__PURE__ */ _(
|
|
5196
|
+
/* @__PURE__ */ _(K3, {}),
|
|
5177
5197
|
/* @__PURE__ */ _(sh, { token: r, amount: s, Logo: a == null ? void 0 : a.DstTokenLogo })
|
|
5178
5198
|
] })
|
|
5179
5199
|
] });
|
|
@@ -5185,7 +5205,7 @@ const _b = ({ inTokenOnly: e }) => {
|
|
|
5185
5205
|
e == null ? void 0 : e.symbol
|
|
5186
5206
|
] })
|
|
5187
5207
|
] });
|
|
5188
|
-
function
|
|
5208
|
+
function Z3({
|
|
5189
5209
|
title: e,
|
|
5190
5210
|
footerLink: t,
|
|
5191
5211
|
footerText: r,
|
|
@@ -5223,7 +5243,7 @@ function oh({
|
|
|
5223
5243
|
}) {
|
|
5224
5244
|
return /* @__PURE__ */ _("div", { style: e, className: `${Le("SkeletonLoader")} ${t}` });
|
|
5225
5245
|
}
|
|
5226
|
-
const
|
|
5246
|
+
const X3 = () => /* @__PURE__ */ fe("div", { className: `${Le("MainContentLoader")}`, children: [
|
|
5227
5247
|
/* @__PURE__ */ _(
|
|
5228
5248
|
oh,
|
|
5229
5249
|
{
|
|
@@ -5236,7 +5256,7 @@ const K3 = () => /* @__PURE__ */ fe("div", { className: `${Le("MainContentLoader
|
|
|
5236
5256
|
className: `${Le("MainContentRectengularLoader")}`
|
|
5237
5257
|
}
|
|
5238
5258
|
)
|
|
5239
|
-
] }),
|
|
5259
|
+
] }), Q3 = ({
|
|
5240
5260
|
fromTitle: e,
|
|
5241
5261
|
toTitle: t,
|
|
5242
5262
|
inUsd: r,
|
|
@@ -5250,7 +5270,7 @@ const K3 = () => /* @__PURE__ */ fe("div", { className: `${Le("MainContentLoader
|
|
|
5250
5270
|
outToken: c,
|
|
5251
5271
|
components: l,
|
|
5252
5272
|
totalSteps: u
|
|
5253
|
-
} =
|
|
5273
|
+
} = pn(), d = /* @__PURE__ */ _(
|
|
5254
5274
|
Mb,
|
|
5255
5275
|
{
|
|
5256
5276
|
fromTitle: e,
|
|
@@ -5265,9 +5285,9 @@ const K3 = () => /* @__PURE__ */ fe("div", { className: `${Le("MainContentLoader
|
|
|
5265
5285
|
DstTokenLogo: l.DstTokenLogo
|
|
5266
5286
|
}
|
|
5267
5287
|
);
|
|
5268
|
-
return s ? u ? /* @__PURE__ */ _(
|
|
5288
|
+
return s ? u ? /* @__PURE__ */ _(J3, {}) : /* @__PURE__ */ fe(ah, { children: [
|
|
5269
5289
|
d,
|
|
5270
|
-
/* @__PURE__ */ _(
|
|
5290
|
+
/* @__PURE__ */ _(X3, {})
|
|
5271
5291
|
] }) : /* @__PURE__ */ _(ah, { children: d });
|
|
5272
5292
|
}, ih = ({
|
|
5273
5293
|
amount: e,
|
|
@@ -5283,8 +5303,8 @@ const K3 = () => /* @__PURE__ */ fe("div", { className: `${Le("MainContentLoader
|
|
|
5283
5303
|
] }),
|
|
5284
5304
|
s || /* @__PURE__ */ _("div", { className: ` ${Le("MainTokenLogo")}`, children: t != null && t.logoUrl ? /* @__PURE__ */ _("img", { src: t == null ? void 0 : t.logoUrl, alt: "Token logo" }) : null })
|
|
5285
5305
|
] });
|
|
5286
|
-
function
|
|
5287
|
-
const { currentStep: e } =
|
|
5306
|
+
function J3() {
|
|
5307
|
+
const { currentStep: e } = pn();
|
|
5288
5308
|
return e ? /* @__PURE__ */ _(
|
|
5289
5309
|
Jl,
|
|
5290
5310
|
{
|
|
@@ -5328,18 +5348,18 @@ const Mb = ({
|
|
|
5328
5348
|
}
|
|
5329
5349
|
)
|
|
5330
5350
|
] }), ks = (e) => /* @__PURE__ */ _(
|
|
5331
|
-
|
|
5351
|
+
z3,
|
|
5332
5352
|
{
|
|
5333
5353
|
...e,
|
|
5334
|
-
children: /* @__PURE__ */ _(
|
|
5354
|
+
children: /* @__PURE__ */ _(e8, {})
|
|
5335
5355
|
}
|
|
5336
|
-
),
|
|
5337
|
-
const { swapStatus: e, components: t, className: r } =
|
|
5356
|
+
), e8 = () => {
|
|
5357
|
+
const { swapStatus: e, components: t, className: r } = pn();
|
|
5338
5358
|
return /* @__PURE__ */ _("div", { className: `${Le("SwapFlow")} ${r}`, children: e === gt.SUCCESS ? t == null ? void 0 : t.Success : e === gt.FAILED ? t == null ? void 0 : t.Failed : t == null ? void 0 : t.Main });
|
|
5339
5359
|
};
|
|
5340
|
-
ks.Success =
|
|
5341
|
-
ks.Failed =
|
|
5342
|
-
ks.Main =
|
|
5360
|
+
ks.Success = Z3;
|
|
5361
|
+
ks.Failed = Y3;
|
|
5362
|
+
ks.Main = Q3;
|
|
5343
5363
|
ks.StepLayout = Jl;
|
|
5344
5364
|
var qt = /* @__PURE__ */ ((e) => (e[e.EMPTY_LIMIT_PRICE = 0] = "EMPTY_LIMIT_PRICE", e[e.MAX_CHUNKS = 1] = "MAX_CHUNKS", e[e.MIN_CHUNKS = 2] = "MIN_CHUNKS", e[e.MIN_TRADE_SIZE = 3] = "MIN_TRADE_SIZE", e[e.MAX_FILL_DELAY = 4] = "MAX_FILL_DELAY", e[e.MIN_FILL_DELAY = 5] = "MIN_FILL_DELAY", e[e.MAX_ORDER_DURATION = 6] = "MAX_ORDER_DURATION", e[e.MIN_ORDER_DURATION = 7] = "MIN_ORDER_DURATION", e[e.MISSING_LIMIT_PRICE = 8] = "MISSING_LIMIT_PRICE", e[e.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE = 9] = "STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE", e[e.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE = 10] = "TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE", e[e.TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE = 11] = "TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE", e[e.EMPTY_TRIGGER_PRICE = 12] = "EMPTY_TRIGGER_PRICE", e[e.INSUFFICIENT_BALANCE = 13] = "INSUFFICIENT_BALANCE", e[e.MAX_ORDER_SIZE = 14] = "MAX_ORDER_SIZE", e))(qt || {}), Ma = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.APPROVE = "approve", e.CREATE = "create", e))(Ma || {});
|
|
5345
5365
|
const XY = (e) => e.replace(/,/g, ""), QY = async (e) => {
|
|
@@ -5350,12 +5370,14 @@ const XY = (e) => e.replace(/,/g, ""), QY = async (e) => {
|
|
|
5350
5370
|
} catch (t) {
|
|
5351
5371
|
return console.warn("Copy failed", t), !1;
|
|
5352
5372
|
}
|
|
5353
|
-
},
|
|
5373
|
+
}, t8 = (e) => {
|
|
5354
5374
|
if (!e)
|
|
5355
5375
|
return "";
|
|
5356
5376
|
const t = Math.floor(e / 1e3), r = Math.floor(t / (1440 * 60)), n = Math.floor(t % (1440 * 60) / 3600), s = Math.floor(t % 3600 / 60), a = t % 60, o = [];
|
|
5357
5377
|
return r && o.push(`${r} days `), n && o.push(`${n} hours `), s && o.push(`${s} minutes`), a && o.push(`${a} seconds`), o.join(" ");
|
|
5358
|
-
}, Rb = (e, t) => e ? `${e.substring(0, (t == null ? void 0 : t.start) || 6)}...${e.substring(
|
|
5378
|
+
}, Rb = (e, t) => e ? `${e.substring(0, (t == null ? void 0 : t.start) || 6)}...${e.substring(
|
|
5379
|
+
e.length - ((t == null ? void 0 : t.end) || 5)
|
|
5380
|
+
)}` : "", JY = (e) => {
|
|
5359
5381
|
const t = "An error occurred.";
|
|
5360
5382
|
if (!e || !e.message) return t;
|
|
5361
5383
|
try {
|
|
@@ -5388,14 +5410,6 @@ const Nb = (e) => {
|
|
|
5388
5410
|
default:
|
|
5389
5411
|
return 0.01;
|
|
5390
5412
|
}
|
|
5391
|
-
}, e8 = (e, t, r) => {
|
|
5392
|
-
if (!H(e.srcAmountFilled || 0).gt(0) || !H(e.dstAmountFilled || 0).gt(0)) return "";
|
|
5393
|
-
const n = ys(t, e.srcAmountFilled), s = ys(r, e.dstAmountFilled);
|
|
5394
|
-
return H(s).div(n).toFixed();
|
|
5395
|
-
}, t8 = (e, t, r) => {
|
|
5396
|
-
if (e.type === ht.TWAP_MARKET) return "";
|
|
5397
|
-
const n = ys(t, e.srcAmountPerTrade), s = ys(r, e.dstMinAmountPerTrade);
|
|
5398
|
-
return H(s).div(n).toFixed();
|
|
5399
5413
|
}, r8 = (e, t) => {
|
|
5400
5414
|
const r = bo(t);
|
|
5401
5415
|
return r && ho(e.address) ? r.wToken : e;
|
|
@@ -5708,14 +5722,14 @@ function oo(e, t = {}) {
|
|
|
5708
5722
|
return kt(r, t);
|
|
5709
5723
|
}
|
|
5710
5724
|
const y8 = /* @__PURE__ */ new TextEncoder();
|
|
5711
|
-
function
|
|
5725
|
+
function Mn(e, t = {}) {
|
|
5712
5726
|
return typeof e == "number" || typeof e == "bigint" ? x8(e, t) : typeof e == "boolean" ? g8(e, t) : on(e) ? ur(e, t) : Ys(e, t);
|
|
5713
5727
|
}
|
|
5714
5728
|
function g8(e, t = {}) {
|
|
5715
5729
|
const r = new Uint8Array(1);
|
|
5716
5730
|
return r[0] = Number(e), typeof t.size == "number" ? (Yr(r, { size: t.size }), ua(r, { size: t.size })) : r;
|
|
5717
5731
|
}
|
|
5718
|
-
const
|
|
5732
|
+
const wn = {
|
|
5719
5733
|
zero: 48,
|
|
5720
5734
|
nine: 57,
|
|
5721
5735
|
A: 65,
|
|
@@ -5724,12 +5738,12 @@ const xn = {
|
|
|
5724
5738
|
f: 102
|
|
5725
5739
|
};
|
|
5726
5740
|
function lh(e) {
|
|
5727
|
-
if (e >=
|
|
5728
|
-
return e -
|
|
5729
|
-
if (e >=
|
|
5730
|
-
return e - (
|
|
5731
|
-
if (e >=
|
|
5732
|
-
return e - (
|
|
5741
|
+
if (e >= wn.zero && e <= wn.nine)
|
|
5742
|
+
return e - wn.zero;
|
|
5743
|
+
if (e >= wn.A && e <= wn.F)
|
|
5744
|
+
return e - (wn.A - 10);
|
|
5745
|
+
if (e >= wn.a && e <= wn.f)
|
|
5746
|
+
return e - (wn.a - 10);
|
|
5733
5747
|
}
|
|
5734
5748
|
function ur(e, t = {}) {
|
|
5735
5749
|
let r = e;
|
|
@@ -6572,7 +6586,7 @@ function oy(e, t = !1) {
|
|
|
6572
6586
|
return [n, s];
|
|
6573
6587
|
}
|
|
6574
6588
|
const mh = (e, t, r) => e >>> r, hh = (e, t, r) => e << 32 - r | t >>> r, ka = (e, t, r) => e >>> r | t << 32 - r, Ca = (e, t, r) => e << 32 - r | t >>> r, Uc = (e, t, r) => e << 64 - r | t >>> r - 32, Oc = (e, t, r) => e >>> r - 32 | t << 64 - r, X8 = (e, t, r) => e << r | t >>> 32 - r, Q8 = (e, t, r) => t << r | e >>> 32 - r, J8 = (e, t, r) => t << r - 32 | e >>> 64 - r, ev = (e, t, r) => e << r - 32 | t >>> 64 - r;
|
|
6575
|
-
function
|
|
6589
|
+
function vn(e, t, r, n) {
|
|
6576
6590
|
const s = (t >>> 0) + (n >>> 0);
|
|
6577
6591
|
return { h: e + r + (s / 2 ** 32 | 0) | 0, l: s | 0 };
|
|
6578
6592
|
}
|
|
@@ -6780,11 +6794,11 @@ class cy extends ay {
|
|
|
6780
6794
|
let { Ah: n, Al: s, Bh: a, Bl: o, Ch: i, Cl: c, Dh: l, Dl: u, Eh: d, El: f, Fh: m, Fl: y, Gh: g, Gl: E, Hh: v, Hl: w } = this;
|
|
6781
6795
|
for (let S = 0; S < 80; S++) {
|
|
6782
6796
|
const C = ka(d, f, 14) ^ ka(d, f, 18) ^ Uc(d, f, 41), O = Ca(d, f, 14) ^ Ca(d, f, 18) ^ Oc(d, f, 41), R = d & m ^ ~d & g, T = f & y ^ ~f & E, h = av(w, O, T, uv[S], es[S]), b = ov(h, v, C, R, lv[S], Jn[S]), x = h | 0, A = ka(n, s, 28) ^ Uc(n, s, 34) ^ Uc(n, s, 39), I = Ca(n, s, 28) ^ Oc(n, s, 34) ^ Oc(n, s, 39), B = n & a ^ n & i ^ a & i, D = s & o ^ s & c ^ o & c;
|
|
6783
|
-
v = g | 0, w = E | 0, g = m | 0, E = y | 0, m = d | 0, y = f | 0, { h: d, l: f } =
|
|
6797
|
+
v = g | 0, w = E | 0, g = m | 0, E = y | 0, m = d | 0, y = f | 0, { h: d, l: f } = vn(l | 0, u | 0, b | 0, x | 0), l = i | 0, u = c | 0, i = a | 0, c = o | 0, a = n | 0, o = s | 0;
|
|
6784
6798
|
const k = tv(x, I, D);
|
|
6785
6799
|
n = rv(k, b, A, B), s = k | 0;
|
|
6786
6800
|
}
|
|
6787
|
-
({ h: n, l: s } =
|
|
6801
|
+
({ h: n, l: s } = vn(this.Ah | 0, this.Al | 0, n | 0, s | 0)), { h: a, l: o } = vn(this.Bh | 0, this.Bl | 0, a | 0, o | 0), { h: i, l: c } = vn(this.Ch | 0, this.Cl | 0, i | 0, c | 0), { h: l, l: u } = vn(this.Dh | 0, this.Dl | 0, l | 0, u | 0), { h: d, l: f } = vn(this.Eh | 0, this.El | 0, d | 0, f | 0), { h: m, l: y } = vn(this.Fh | 0, this.Fl | 0, m | 0, y | 0), { h: g, l: E } = vn(this.Gh | 0, this.Gl | 0, g | 0, E | 0), { h: v, l: w } = vn(this.Hh | 0, this.Hl | 0, v | 0, w | 0), this.set(n, s, a, o, i, c, l, u, d, f, m, y, g, E, v, w);
|
|
6788
6802
|
}
|
|
6789
6803
|
roundClean() {
|
|
6790
6804
|
xs(Jn, es);
|
|
@@ -6800,7 +6814,7 @@ class dv extends cy {
|
|
|
6800
6814
|
}
|
|
6801
6815
|
const _f = /* @__PURE__ */ au(() => new cv()), pv = /* @__PURE__ */ au(() => new cy()), fv = /* @__PURE__ */ au(() => new dv()), ly = _f;
|
|
6802
6816
|
function uy(e, t) {
|
|
6803
|
-
const r = t || "hex", n = ly(on(e, { strict: !1 }) ?
|
|
6817
|
+
const r = t || "hex", n = ly(on(e, { strict: !1 }) ? Mn(e) : e);
|
|
6804
6818
|
return r === "bytes" ? n : _e(n);
|
|
6805
6819
|
}
|
|
6806
6820
|
function mv(e) {
|
|
@@ -7251,7 +7265,7 @@ class Rf extends Df {
|
|
|
7251
7265
|
}
|
|
7252
7266
|
const Iv = (e, t, r) => au(() => new Rf(t, e, r)), Ey = Iv(1, 136, 256 / 8);
|
|
7253
7267
|
function Dt(e, t) {
|
|
7254
|
-
const r = t || "hex", n = Ey(on(e, { strict: !1 }) ?
|
|
7268
|
+
const r = t || "hex", n = Ey(on(e, { strict: !1 }) ? Mn(e) : e);
|
|
7255
7269
|
return r === "bytes" ? n : _e(n);
|
|
7256
7270
|
}
|
|
7257
7271
|
const od = /* @__PURE__ */ new xo(8192);
|
|
@@ -7634,7 +7648,7 @@ class Wv extends L {
|
|
|
7634
7648
|
}
|
|
7635
7649
|
}
|
|
7636
7650
|
function qv(e) {
|
|
7637
|
-
const t =
|
|
7651
|
+
const t = Mn(e);
|
|
7638
7652
|
if (t.length % 32 !== 0)
|
|
7639
7653
|
throw new Wv({
|
|
7640
7654
|
givenLength: t.length
|
|
@@ -7644,12 +7658,12 @@ function qv(e) {
|
|
|
7644
7658
|
givenLength: t.length,
|
|
7645
7659
|
maxBytecodeSize: uh
|
|
7646
7660
|
});
|
|
7647
|
-
const r = uy(t), n =
|
|
7661
|
+
const r = uy(t), n = Mn(r), s = t.length / 32;
|
|
7648
7662
|
if (s % 2 === 0)
|
|
7649
7663
|
throw new Vv({
|
|
7650
7664
|
givenLengthInWords: s
|
|
7651
7665
|
});
|
|
7652
|
-
const a =
|
|
7666
|
+
const a = Mn(s), o = ua(a, { size: 2 }), i = new Uint8Array([1, 0]);
|
|
7653
7667
|
return n.set(i, 0), n.set(o, 2), n;
|
|
7654
7668
|
}
|
|
7655
7669
|
const Yv = (e) => {
|
|
@@ -15203,7 +15217,7 @@ const Z7 = /* @__PURE__ */ p({
|
|
|
15203
15217
|
function Qe(e) {
|
|
15204
15218
|
return typeof e == "string" ? { address: e, type: "json-rpc" } : e;
|
|
15205
15219
|
}
|
|
15206
|
-
class
|
|
15220
|
+
class Wn extends L {
|
|
15207
15221
|
constructor({ docsPath: t } = {}) {
|
|
15208
15222
|
super([
|
|
15209
15223
|
"Could not find an Account to execute with this Action.",
|
|
@@ -15565,7 +15579,7 @@ class O4 extends L {
|
|
|
15565
15579
|
`), { name: "InvalidDefinitionTypeError" });
|
|
15566
15580
|
}
|
|
15567
15581
|
}
|
|
15568
|
-
const D4 = (e) => Dt(
|
|
15582
|
+
const D4 = (e) => Dt(Mn(e));
|
|
15569
15583
|
function _4(e) {
|
|
15570
15584
|
return D4(e);
|
|
15571
15585
|
}
|
|
@@ -15610,7 +15624,7 @@ let or = class Ap extends Error {
|
|
|
15610
15624
|
}), r.cause && (this.cause = r.cause), this.details = n, this.docsPath = s, this.metaMessages = r.metaMessages, this.shortMessage = t;
|
|
15611
15625
|
}
|
|
15612
15626
|
};
|
|
15613
|
-
function
|
|
15627
|
+
function qn(e, t) {
|
|
15614
15628
|
const r = e.exec(t);
|
|
15615
15629
|
return r == null ? void 0 : r.groups;
|
|
15616
15630
|
}
|
|
@@ -15624,7 +15638,7 @@ function Sp(e) {
|
|
|
15624
15638
|
const a = e.components[s];
|
|
15625
15639
|
t += Sp(a), s < r - 1 && (t += ", ");
|
|
15626
15640
|
}
|
|
15627
|
-
const n =
|
|
15641
|
+
const n = qn(Ch, e.type);
|
|
15628
15642
|
return t += `)${(n == null ? void 0 : n.array) || ""}`, Sp({
|
|
15629
15643
|
...e,
|
|
15630
15644
|
type: t
|
|
@@ -15650,42 +15664,42 @@ function R4(e) {
|
|
|
15650
15664
|
return Gy.test(e);
|
|
15651
15665
|
}
|
|
15652
15666
|
function N4(e) {
|
|
15653
|
-
return
|
|
15667
|
+
return qn(Gy, e);
|
|
15654
15668
|
}
|
|
15655
15669
|
const jy = /^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
|
|
15656
15670
|
function z4(e) {
|
|
15657
15671
|
return jy.test(e);
|
|
15658
15672
|
}
|
|
15659
15673
|
function L4(e) {
|
|
15660
|
-
return
|
|
15674
|
+
return qn(jy, e);
|
|
15661
15675
|
}
|
|
15662
15676
|
const Vy = /^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;
|
|
15663
15677
|
function $4(e) {
|
|
15664
15678
|
return Vy.test(e);
|
|
15665
15679
|
}
|
|
15666
15680
|
function H4(e) {
|
|
15667
|
-
return
|
|
15681
|
+
return qn(Vy, e);
|
|
15668
15682
|
}
|
|
15669
15683
|
const Wy = /^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;
|
|
15670
15684
|
function iu(e) {
|
|
15671
15685
|
return Wy.test(e);
|
|
15672
15686
|
}
|
|
15673
15687
|
function G4(e) {
|
|
15674
|
-
return
|
|
15688
|
+
return qn(Wy, e);
|
|
15675
15689
|
}
|
|
15676
15690
|
const qy = /^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;
|
|
15677
15691
|
function j4(e) {
|
|
15678
15692
|
return qy.test(e);
|
|
15679
15693
|
}
|
|
15680
15694
|
function V4(e) {
|
|
15681
|
-
return
|
|
15695
|
+
return qn(qy, e);
|
|
15682
15696
|
}
|
|
15683
15697
|
const Yy = /^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;
|
|
15684
15698
|
function W4(e) {
|
|
15685
15699
|
return Yy.test(e);
|
|
15686
15700
|
}
|
|
15687
15701
|
function q4(e) {
|
|
15688
|
-
return
|
|
15702
|
+
return qn(Yy, e);
|
|
15689
15703
|
}
|
|
15690
15704
|
const Y4 = /^receive\(\) external payable$/;
|
|
15691
15705
|
function K4(e) {
|
|
@@ -15979,7 +15993,7 @@ function dA(e, t = {}) {
|
|
|
15979
15993
|
throw new Eo({ signature: e, type: "function" });
|
|
15980
15994
|
const n = cr(r.parameters), s = [], a = n.length;
|
|
15981
15995
|
for (let i = 0; i < a; i++)
|
|
15982
|
-
s.push(
|
|
15996
|
+
s.push(Hn(n[i], {
|
|
15983
15997
|
modifiers: Pp,
|
|
15984
15998
|
structs: t,
|
|
15985
15999
|
type: "function"
|
|
@@ -15988,7 +16002,7 @@ function dA(e, t = {}) {
|
|
|
15988
16002
|
if (r.returns) {
|
|
15989
16003
|
const i = cr(r.returns), c = i.length;
|
|
15990
16004
|
for (let l = 0; l < c; l++)
|
|
15991
|
-
o.push(
|
|
16005
|
+
o.push(Hn(i[l], {
|
|
15992
16006
|
modifiers: Pp,
|
|
15993
16007
|
structs: t,
|
|
15994
16008
|
type: "function"
|
|
@@ -16008,7 +16022,7 @@ function pA(e, t = {}) {
|
|
|
16008
16022
|
throw new Eo({ signature: e, type: "event" });
|
|
16009
16023
|
const n = cr(r.parameters), s = [], a = n.length;
|
|
16010
16024
|
for (let o = 0; o < a; o++)
|
|
16011
|
-
s.push(
|
|
16025
|
+
s.push(Hn(n[o], {
|
|
16012
16026
|
modifiers: Z4,
|
|
16013
16027
|
structs: t,
|
|
16014
16028
|
type: "event"
|
|
@@ -16021,7 +16035,7 @@ function fA(e, t = {}) {
|
|
|
16021
16035
|
throw new Eo({ signature: e, type: "error" });
|
|
16022
16036
|
const n = cr(r.parameters), s = [], a = n.length;
|
|
16023
16037
|
for (let o = 0; o < a; o++)
|
|
16024
|
-
s.push(
|
|
16038
|
+
s.push(Hn(n[o], { structs: t, type: "error" }));
|
|
16025
16039
|
return { name: r.name, type: "error", inputs: s };
|
|
16026
16040
|
}
|
|
16027
16041
|
function mA(e, t = {}) {
|
|
@@ -16030,7 +16044,7 @@ function mA(e, t = {}) {
|
|
|
16030
16044
|
throw new Eo({ signature: e, type: "constructor" });
|
|
16031
16045
|
const n = cr(r.parameters), s = [], a = n.length;
|
|
16032
16046
|
for (let o = 0; o < a; o++)
|
|
16033
|
-
s.push(
|
|
16047
|
+
s.push(Hn(n[o], { structs: t, type: "constructor" }));
|
|
16034
16048
|
return {
|
|
16035
16049
|
type: "constructor",
|
|
16036
16050
|
stateMutability: r.stateMutability ?? "nonpayable",
|
|
@@ -16047,12 +16061,12 @@ function hA(e) {
|
|
|
16047
16061
|
};
|
|
16048
16062
|
}
|
|
16049
16063
|
const bA = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/, yA = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/, gA = /^u?int$/;
|
|
16050
|
-
function
|
|
16064
|
+
function Hn(e, t) {
|
|
16051
16065
|
var d, f;
|
|
16052
16066
|
const r = uA(e, t == null ? void 0 : t.type, t == null ? void 0 : t.structs);
|
|
16053
16067
|
if (dd.has(r))
|
|
16054
16068
|
return dd.get(r);
|
|
16055
|
-
const n = Hy.test(e), s =
|
|
16069
|
+
const n = Hy.test(e), s = qn(n ? yA : bA, e);
|
|
16056
16070
|
if (!s)
|
|
16057
16071
|
throw new tA({ param: e });
|
|
16058
16072
|
if (s.name && wA(s.name))
|
|
@@ -16063,7 +16077,7 @@ function $n(e, t) {
|
|
|
16063
16077
|
c = "tuple";
|
|
16064
16078
|
const m = cr(s.type), y = [], g = m.length;
|
|
16065
16079
|
for (let E = 0; E < g; E++)
|
|
16066
|
-
y.push(
|
|
16080
|
+
y.push(Hn(m[E], { structs: i }));
|
|
16067
16081
|
l = { components: y };
|
|
16068
16082
|
} else if (s.type in i)
|
|
16069
16083
|
c = "tuple", l = { components: i[s.type] };
|
|
@@ -16140,7 +16154,7 @@ function jf(e) {
|
|
|
16140
16154
|
const y = l[f].trim();
|
|
16141
16155
|
if (!y)
|
|
16142
16156
|
continue;
|
|
16143
|
-
const g =
|
|
16157
|
+
const g = Hn(y, {
|
|
16144
16158
|
type: "struct"
|
|
16145
16159
|
});
|
|
16146
16160
|
u.push(g);
|
|
@@ -16164,7 +16178,7 @@ function Zy(e = [], t = {}, r = /* @__PURE__ */ new Set()) {
|
|
|
16164
16178
|
if (Hy.test(o.type))
|
|
16165
16179
|
n.push(o);
|
|
16166
16180
|
else {
|
|
16167
|
-
const c =
|
|
16181
|
+
const c = qn(EA, o.type);
|
|
16168
16182
|
if (!(c != null && c.type))
|
|
16169
16183
|
throw new aA({ abiParameter: o });
|
|
16170
16184
|
const { array: l, type: u } = c;
|
|
@@ -16215,7 +16229,7 @@ function Sh(e) {
|
|
|
16215
16229
|
if (typeof e == "string") {
|
|
16216
16230
|
const r = cr(e), n = r.length;
|
|
16217
16231
|
for (let s = 0; s < n; s++)
|
|
16218
|
-
t.push(
|
|
16232
|
+
t.push(Hn(r[s], { modifiers: Th }));
|
|
16219
16233
|
} else {
|
|
16220
16234
|
const r = jf(e), n = e.length;
|
|
16221
16235
|
for (let s = 0; s < n; s++) {
|
|
@@ -16224,7 +16238,7 @@ function Sh(e) {
|
|
|
16224
16238
|
continue;
|
|
16225
16239
|
const o = cr(a), i = o.length;
|
|
16226
16240
|
for (let c = 0; c < i; c++)
|
|
16227
|
-
t.push(
|
|
16241
|
+
t.push(Hn(o[c], { modifiers: Th, structs: r }));
|
|
16228
16242
|
}
|
|
16229
16243
|
}
|
|
16230
16244
|
if (t.length === 0)
|
|
@@ -16275,7 +16289,7 @@ function AA(e, t = {}) {
|
|
|
16275
16289
|
throw new d8(r);
|
|
16276
16290
|
return !!r[0];
|
|
16277
16291
|
}
|
|
16278
|
-
function
|
|
16292
|
+
function Rn(e, t = {}) {
|
|
16279
16293
|
typeof t.size < "u" && Yr(e, { size: t.size });
|
|
16280
16294
|
const r = kt(e, t);
|
|
16281
16295
|
return pr(r, t);
|
|
@@ -16515,9 +16529,9 @@ function RA(e) {
|
|
|
16515
16529
|
}
|
|
16516
16530
|
function NA(e, t, { length: r, staticPosition: n }) {
|
|
16517
16531
|
if (!r) {
|
|
16518
|
-
const o =
|
|
16532
|
+
const o = Rn(e.readBytes(Bp)), i = n + o, c = i + Ph;
|
|
16519
16533
|
e.setPosition(i);
|
|
16520
|
-
const l =
|
|
16534
|
+
const l = Rn(e.readBytes(Ph)), u = ci(t);
|
|
16521
16535
|
let d = 0;
|
|
16522
16536
|
const f = [];
|
|
16523
16537
|
for (let m = 0; m < l; ++m) {
|
|
@@ -16530,7 +16544,7 @@ function NA(e, t, { length: r, staticPosition: n }) {
|
|
|
16530
16544
|
return e.setPosition(n + 32), [f, 32];
|
|
16531
16545
|
}
|
|
16532
16546
|
if (ci(t)) {
|
|
16533
|
-
const o =
|
|
16547
|
+
const o = Rn(e.readBytes(Bp)), i = n + o, c = [];
|
|
16534
16548
|
for (let l = 0; l < r; ++l) {
|
|
16535
16549
|
e.setPosition(i + l * 32);
|
|
16536
16550
|
const [u] = Ra(e, t, {
|
|
@@ -16556,9 +16570,9 @@ function zA(e) {
|
|
|
16556
16570
|
function LA(e, t, { staticPosition: r }) {
|
|
16557
16571
|
const [n, s] = t.type.split("bytes");
|
|
16558
16572
|
if (!s) {
|
|
16559
|
-
const o =
|
|
16573
|
+
const o = Rn(e.readBytes(32));
|
|
16560
16574
|
e.setPosition(r + o);
|
|
16561
|
-
const i =
|
|
16575
|
+
const i = Rn(e.readBytes(32));
|
|
16562
16576
|
if (i === 0)
|
|
16563
16577
|
return e.setPosition(r + 32), ["0x", 32];
|
|
16564
16578
|
const c = e.readBytes(i);
|
|
@@ -16569,7 +16583,7 @@ function LA(e, t, { staticPosition: r }) {
|
|
|
16569
16583
|
function $A(e, t) {
|
|
16570
16584
|
const r = t.type.startsWith("int"), n = Number.parseInt(t.type.split("int")[1] || "256", 10), s = e.readBytes(32);
|
|
16571
16585
|
return [
|
|
16572
|
-
n > 48 ? TA(s, { signed: r }) :
|
|
16586
|
+
n > 48 ? TA(s, { signed: r }) : Rn(s, { signed: r }),
|
|
16573
16587
|
32
|
|
16574
16588
|
];
|
|
16575
16589
|
}
|
|
@@ -16577,7 +16591,7 @@ function HA(e, t, { staticPosition: r }) {
|
|
|
16577
16591
|
const n = t.components.length === 0 || t.components.some(({ name: o }) => !o), s = n ? [] : {};
|
|
16578
16592
|
let a = 0;
|
|
16579
16593
|
if (ci(t)) {
|
|
16580
|
-
const o =
|
|
16594
|
+
const o = Rn(e.readBytes(Bp)), i = r + o;
|
|
16581
16595
|
for (let c = 0; c < t.components.length; ++c) {
|
|
16582
16596
|
const l = t.components[c];
|
|
16583
16597
|
e.setPosition(i + a);
|
|
@@ -16597,9 +16611,9 @@ function HA(e, t, { staticPosition: r }) {
|
|
|
16597
16611
|
return [s, a];
|
|
16598
16612
|
}
|
|
16599
16613
|
function GA(e, { staticPosition: t }) {
|
|
16600
|
-
const r =
|
|
16614
|
+
const r = Rn(e.readBytes(32)), n = t + r;
|
|
16601
16615
|
e.setPosition(n);
|
|
16602
|
-
const s =
|
|
16616
|
+
const s = Rn(e.readBytes(32));
|
|
16603
16617
|
if (s === 0)
|
|
16604
16618
|
return e.setPosition(t + 32), ["", 32];
|
|
16605
16619
|
const a = e.readBytes(s, 32), o = SA(nr(a));
|
|
@@ -17470,7 +17484,7 @@ function ma(e, { format: t }) {
|
|
|
17470
17484
|
const s = t(e || {});
|
|
17471
17485
|
return n(s), r;
|
|
17472
17486
|
}
|
|
17473
|
-
function
|
|
17487
|
+
function fn(e) {
|
|
17474
17488
|
const { account: t, maxFeePerGas: r, maxPriorityFeePerGas: n, to: s } = e, a = t ? Qe(t) : void 0;
|
|
17475
17489
|
if (a && !ct(a.address))
|
|
17476
17490
|
throw new St({ address: a.address });
|
|
@@ -17485,11 +17499,11 @@ async function JA(e, t) {
|
|
|
17485
17499
|
var s, a, o;
|
|
17486
17500
|
const { account: r = e.account } = t;
|
|
17487
17501
|
if (!r)
|
|
17488
|
-
throw new
|
|
17502
|
+
throw new Wn();
|
|
17489
17503
|
const n = Qe(r);
|
|
17490
17504
|
try {
|
|
17491
17505
|
const { accessList: i, blockNumber: c, blockTag: l, data: u, gas: d, gasPrice: f, maxFeePerGas: m, maxPriorityFeePerGas: y, nonce: g, to: E, value: v, ...w } = t, C = (typeof c == "bigint" ? V(c) : void 0) || l;
|
|
17492
|
-
|
|
17506
|
+
fn(t);
|
|
17493
17507
|
const O = (o = (a = (s = e.chain) == null ? void 0 : s.formatters) == null ? void 0 : a.transactionRequest) == null ? void 0 : o.format, T = (O || Kr)({
|
|
17494
17508
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
17495
17509
|
...ma(w, { format: O }),
|
|
@@ -23528,14 +23542,14 @@ function Pi(e) {
|
|
|
23528
23542
|
t += $F[e[r]];
|
|
23529
23543
|
return t;
|
|
23530
23544
|
}
|
|
23531
|
-
const
|
|
23545
|
+
const En = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
|
|
23532
23546
|
function Dh(e) {
|
|
23533
|
-
if (e >=
|
|
23534
|
-
return e -
|
|
23535
|
-
if (e >=
|
|
23536
|
-
return e - (
|
|
23537
|
-
if (e >=
|
|
23538
|
-
return e - (
|
|
23547
|
+
if (e >= En._0 && e <= En._9)
|
|
23548
|
+
return e - En._0;
|
|
23549
|
+
if (e >= En.A && e <= En.F)
|
|
23550
|
+
return e - (En.A - 10);
|
|
23551
|
+
if (e >= En.a && e <= En.f)
|
|
23552
|
+
return e - (En.a - 10);
|
|
23539
23553
|
}
|
|
23540
23554
|
function _l(e) {
|
|
23541
23555
|
if (typeof e != "string")
|
|
@@ -23782,7 +23796,7 @@ function ko(e, t) {
|
|
|
23782
23796
|
maxSize: t
|
|
23783
23797
|
});
|
|
23784
23798
|
}
|
|
23785
|
-
const
|
|
23799
|
+
const kn = {
|
|
23786
23800
|
zero: 48,
|
|
23787
23801
|
nine: 57,
|
|
23788
23802
|
A: 65,
|
|
@@ -23791,12 +23805,12 @@ const En = {
|
|
|
23791
23805
|
f: 102
|
|
23792
23806
|
};
|
|
23793
23807
|
function Rh(e) {
|
|
23794
|
-
if (e >=
|
|
23795
|
-
return e -
|
|
23796
|
-
if (e >=
|
|
23797
|
-
return e - (
|
|
23798
|
-
if (e >=
|
|
23799
|
-
return e - (
|
|
23808
|
+
if (e >= kn.zero && e <= kn.nine)
|
|
23809
|
+
return e - kn.zero;
|
|
23810
|
+
if (e >= kn.A && e <= kn.F)
|
|
23811
|
+
return e - (kn.A - 10);
|
|
23812
|
+
if (e >= kn.a && e <= kn.f)
|
|
23813
|
+
return e - (kn.a - 10);
|
|
23800
23814
|
}
|
|
23801
23815
|
function qF(e, t = {}) {
|
|
23802
23816
|
const { dir: r, size: n = 32 } = t;
|
|
@@ -24119,7 +24133,7 @@ function fU(e, t = {}) {
|
|
|
24119
24133
|
throw new bU(n);
|
|
24120
24134
|
return !!n[0];
|
|
24121
24135
|
}
|
|
24122
|
-
function
|
|
24136
|
+
function Nn(e, t = {}) {
|
|
24123
24137
|
const { size: r } = t;
|
|
24124
24138
|
typeof r < "u" && ko(e, r);
|
|
24125
24139
|
const n = Ut(e, t);
|
|
@@ -24882,13 +24896,13 @@ class qU extends Error {
|
|
|
24882
24896
|
super(t);
|
|
24883
24897
|
}
|
|
24884
24898
|
}
|
|
24885
|
-
const
|
|
24899
|
+
const Sn = {
|
|
24886
24900
|
// asn.1 DER encoding utils
|
|
24887
24901
|
Err: qU,
|
|
24888
24902
|
// Basic building block is TLV (Tag-Length-Value)
|
|
24889
24903
|
_tlv: {
|
|
24890
24904
|
encode: (e, t) => {
|
|
24891
|
-
const { Err: r } =
|
|
24905
|
+
const { Err: r } = Sn;
|
|
24892
24906
|
if (e < 0 || e > 256)
|
|
24893
24907
|
throw new r("tlv.encode: wrong tag");
|
|
24894
24908
|
if (t.length & 1)
|
|
@@ -24901,7 +24915,7 @@ const An = {
|
|
|
24901
24915
|
},
|
|
24902
24916
|
// v - value, l - left bytes (unparsed)
|
|
24903
24917
|
decode(e, t) {
|
|
24904
|
-
const { Err: r } =
|
|
24918
|
+
const { Err: r } = Sn;
|
|
24905
24919
|
let n = 0;
|
|
24906
24920
|
if (e < 0 || e > 256)
|
|
24907
24921
|
throw new r("tlv.encode: wrong tag");
|
|
@@ -24939,8 +24953,8 @@ const An = {
|
|
|
24939
24953
|
// - if next byte doesn't have a flag, leading zero is not allowed (minimal encoding)
|
|
24940
24954
|
_int: {
|
|
24941
24955
|
encode(e) {
|
|
24942
|
-
const { Err: t } =
|
|
24943
|
-
if (e <
|
|
24956
|
+
const { Err: t } = Sn;
|
|
24957
|
+
if (e < Un)
|
|
24944
24958
|
throw new t("integer: negative integers are not allowed");
|
|
24945
24959
|
let r = al(e);
|
|
24946
24960
|
if (Number.parseInt(r[0], 16) & 8 && (r = "00" + r), r.length & 1)
|
|
@@ -24948,7 +24962,7 @@ const An = {
|
|
|
24948
24962
|
return r;
|
|
24949
24963
|
},
|
|
24950
24964
|
decode(e) {
|
|
24951
|
-
const { Err: t } =
|
|
24965
|
+
const { Err: t } = Sn;
|
|
24952
24966
|
if (e[0] & 128)
|
|
24953
24967
|
throw new t("invalid signature integer: negative");
|
|
24954
24968
|
if (e[0] === 0 && !(e[1] & 128))
|
|
@@ -24957,7 +24971,7 @@ const An = {
|
|
|
24957
24971
|
}
|
|
24958
24972
|
},
|
|
24959
24973
|
toSig(e) {
|
|
24960
|
-
const { Err: t, _int: r, _tlv: n } =
|
|
24974
|
+
const { Err: t, _int: r, _tlv: n } = Sn, s = Tr("signature", e), { v: a, l: o } = n.decode(48, s);
|
|
24961
24975
|
if (o.length)
|
|
24962
24976
|
throw new t("invalid signature: left bytes after parsing");
|
|
24963
24977
|
const { v: i, l: c } = n.decode(2, a), { v: l, l: u } = n.decode(2, c);
|
|
@@ -24966,14 +24980,14 @@ const An = {
|
|
|
24966
24980
|
return { r: r.decode(i), s: r.decode(l) };
|
|
24967
24981
|
},
|
|
24968
24982
|
hexFromSig(e) {
|
|
24969
|
-
const { _tlv: t, _int: r } =
|
|
24983
|
+
const { _tlv: t, _int: r } = Sn, n = t.encode(2, r.encode(e.r)), s = t.encode(2, r.encode(e.s)), a = n + s;
|
|
24970
24984
|
return t.encode(48, a);
|
|
24971
24985
|
}
|
|
24972
24986
|
};
|
|
24973
24987
|
function wd(e, t) {
|
|
24974
24988
|
return Pi(sc(e, t));
|
|
24975
24989
|
}
|
|
24976
|
-
const
|
|
24990
|
+
const Un = BigInt(0), Ft = BigInt(1);
|
|
24977
24991
|
BigInt(2);
|
|
24978
24992
|
const vd = BigInt(3), YU = BigInt(4);
|
|
24979
24993
|
function KU(e) {
|
|
@@ -25166,16 +25180,16 @@ function KU(e) {
|
|
|
25166
25180
|
*/
|
|
25167
25181
|
multiplyUnsafe(C) {
|
|
25168
25182
|
const { endo: O, n: R } = t;
|
|
25169
|
-
za("scalar", C,
|
|
25183
|
+
za("scalar", C, Un, R);
|
|
25170
25184
|
const T = g.ZERO;
|
|
25171
|
-
if (C ===
|
|
25185
|
+
if (C === Un)
|
|
25172
25186
|
return T;
|
|
25173
25187
|
if (this.is0() || C === Ft)
|
|
25174
25188
|
return this;
|
|
25175
25189
|
if (!O || w.hasPrecomputes(this))
|
|
25176
25190
|
return w.wNAFCachedUnsafe(this, C, g.normalizeZ);
|
|
25177
25191
|
let { k1neg: h, k1: b, k2neg: x, k2: A } = O.splitScalar(C), I = T, B = T, D = this;
|
|
25178
|
-
for (; b >
|
|
25192
|
+
for (; b > Un || A > Un; )
|
|
25179
25193
|
b & Ft && (I = I.add(D)), A & Ft && (B = B.add(D)), D = D.double(), b >>= Ft, A >>= Ft;
|
|
25180
25194
|
return h && (I = I.negate()), x && (B = B.negate()), B = new g(r.mul(B.px, O.beta), B.py, B.pz), I.add(B);
|
|
25181
25195
|
}
|
|
@@ -25209,7 +25223,7 @@ function KU(e) {
|
|
|
25209
25223
|
* @returns non-zero affine point
|
|
25210
25224
|
*/
|
|
25211
25225
|
multiplyAndAddUnsafe(C, O, R) {
|
|
25212
|
-
const T = g.BASE, h = (x, A) => A ===
|
|
25226
|
+
const T = g.BASE, h = (x, A) => A === Un || A === Ft || !x.equals(T) ? x.multiplyUnsafe(A) : x.multiply(A), b = h(this, O).add(h(C, R));
|
|
25213
25227
|
return b.is0() ? void 0 : b;
|
|
25214
25228
|
}
|
|
25215
25229
|
// Converts Projective point to affine (x, y) coordinates.
|
|
@@ -25318,7 +25332,7 @@ function XU(e) {
|
|
|
25318
25332
|
// DER encoded ECDSA signature
|
|
25319
25333
|
// https://bitcoin.stackexchange.com/questions/57644/what-are-the-parts-of-a-bitcoin-transaction-input-script
|
|
25320
25334
|
static fromDER(P) {
|
|
25321
|
-
const { r: U, s: F } =
|
|
25335
|
+
const { r: U, s: F } = Sn.toSig(Tr("DER", P));
|
|
25322
25336
|
return new v(U, F);
|
|
25323
25337
|
}
|
|
25324
25338
|
/**
|
|
@@ -25354,7 +25368,7 @@ function XU(e) {
|
|
|
25354
25368
|
return _l(this.toDERHex());
|
|
25355
25369
|
}
|
|
25356
25370
|
toDERHex() {
|
|
25357
|
-
return
|
|
25371
|
+
return Sn.hexFromSig(this);
|
|
25358
25372
|
}
|
|
25359
25373
|
// padded bytes of r, then padded bytes of s
|
|
25360
25374
|
toCompactRawBytes() {
|
|
@@ -25422,7 +25436,7 @@ function XU(e) {
|
|
|
25422
25436
|
return c(R(k));
|
|
25423
25437
|
}, h = du(a);
|
|
25424
25438
|
function b(k) {
|
|
25425
|
-
return za("num < 2^" + a, k,
|
|
25439
|
+
return za("num < 2^" + a, k, Un, h), sc(k, s);
|
|
25426
25440
|
}
|
|
25427
25441
|
function x(k, P, U = A) {
|
|
25428
25442
|
if (["recovered", "canonical"].some((xe) => xe in U))
|
|
@@ -25441,10 +25455,10 @@ function XU(e) {
|
|
|
25441
25455
|
if (!m(Oe))
|
|
25442
25456
|
return;
|
|
25443
25457
|
const $e = l(Oe), st = u.BASE.multiply(Oe).toAffine(), Ae = c(st.x);
|
|
25444
|
-
if (Ae ===
|
|
25458
|
+
if (Ae === Un)
|
|
25445
25459
|
return;
|
|
25446
25460
|
const we = c($e * c(Be + Ae * be));
|
|
25447
|
-
if (we ===
|
|
25461
|
+
if (we === Un)
|
|
25448
25462
|
return;
|
|
25449
25463
|
let ye = (st.x === Ae ? 0 : 2) | Number(st.y & Ft), Xe = we;
|
|
25450
25464
|
return z && y(we) && (Xe = g(we), ye ^= 1), new v(Ae, Xe, ye);
|
|
@@ -25475,7 +25489,7 @@ function XU(e) {
|
|
|
25475
25489
|
try {
|
|
25476
25490
|
X !== "compact" && (ie = v.fromDER(N));
|
|
25477
25491
|
} catch (Xe) {
|
|
25478
|
-
if (!(Xe instanceof
|
|
25492
|
+
if (!(Xe instanceof Sn.Err))
|
|
25479
25493
|
throw Xe;
|
|
25480
25494
|
}
|
|
25481
25495
|
!ie && X !== "der" && (ie = v.fromCompact(N));
|
|
@@ -26184,9 +26198,9 @@ function IO(e, t = {}) {
|
|
|
26184
26198
|
function BO(e, t, r) {
|
|
26185
26199
|
const { checksumAddress: n, length: s, staticPosition: a } = r;
|
|
26186
26200
|
if (!s) {
|
|
26187
|
-
const c =
|
|
26201
|
+
const c = Nn(e.readBytes(Hp)), l = a + c, u = l + Kh;
|
|
26188
26202
|
e.setPosition(l);
|
|
26189
|
-
const d =
|
|
26203
|
+
const d = Nn(e.readBytes(Kh)), f = Fi(t);
|
|
26190
26204
|
let m = 0;
|
|
26191
26205
|
const y = [];
|
|
26192
26206
|
for (let g = 0; g < d; ++g) {
|
|
@@ -26200,7 +26214,7 @@ function BO(e, t, r) {
|
|
|
26200
26214
|
return e.setPosition(a + 32), [y, 32];
|
|
26201
26215
|
}
|
|
26202
26216
|
if (Fi(t)) {
|
|
26203
|
-
const c =
|
|
26217
|
+
const c = Nn(e.readBytes(Hp)), l = a + c, u = [];
|
|
26204
26218
|
for (let d = 0; d < s; ++d) {
|
|
26205
26219
|
e.setPosition(l + d * 32);
|
|
26206
26220
|
const [f] = La(e, t, {
|
|
@@ -26228,9 +26242,9 @@ function FO(e) {
|
|
|
26228
26242
|
function UO(e, t, { staticPosition: r }) {
|
|
26229
26243
|
const [n, s] = t.type.split("bytes");
|
|
26230
26244
|
if (!s) {
|
|
26231
|
-
const o =
|
|
26245
|
+
const o = Nn(e.readBytes(32));
|
|
26232
26246
|
e.setPosition(r + o);
|
|
26233
|
-
const i =
|
|
26247
|
+
const i = Nn(e.readBytes(32));
|
|
26234
26248
|
if (i === 0)
|
|
26235
26249
|
return e.setPosition(r + 32), ["0x", 32];
|
|
26236
26250
|
const c = e.readBytes(i);
|
|
@@ -26241,7 +26255,7 @@ function UO(e, t, { staticPosition: r }) {
|
|
|
26241
26255
|
function OO(e, t) {
|
|
26242
26256
|
const r = t.type.startsWith("int"), n = Number.parseInt(t.type.split("int")[1] || "256", 10), s = e.readBytes(32);
|
|
26243
26257
|
return [
|
|
26244
|
-
n > 48 ? pU(s, { signed: r }) :
|
|
26258
|
+
n > 48 ? pU(s, { signed: r }) : Nn(s, { signed: r }),
|
|
26245
26259
|
32
|
|
26246
26260
|
];
|
|
26247
26261
|
}
|
|
@@ -26249,7 +26263,7 @@ function DO(e, t, r) {
|
|
|
26249
26263
|
const { checksumAddress: n, staticPosition: s } = r, a = t.components.length === 0 || t.components.some(({ name: c }) => !c), o = a ? [] : {};
|
|
26250
26264
|
let i = 0;
|
|
26251
26265
|
if (Fi(t)) {
|
|
26252
|
-
const c =
|
|
26266
|
+
const c = Nn(e.readBytes(Hp)), l = s + c;
|
|
26253
26267
|
for (let u = 0; u < t.components.length; ++u) {
|
|
26254
26268
|
const d = t.components[u];
|
|
26255
26269
|
e.setPosition(l + i);
|
|
@@ -26271,9 +26285,9 @@ function DO(e, t, r) {
|
|
|
26271
26285
|
return [o, i];
|
|
26272
26286
|
}
|
|
26273
26287
|
function _O(e, { staticPosition: t }) {
|
|
26274
|
-
const r =
|
|
26288
|
+
const r = Nn(e.readBytes(32)), n = t + r;
|
|
26275
26289
|
e.setPosition(n);
|
|
26276
|
-
const s =
|
|
26290
|
+
const s = Nn(e.readBytes(32));
|
|
26277
26291
|
if (s === 0)
|
|
26278
26292
|
return e.setPosition(t + 32), ["", 32];
|
|
26279
26293
|
const a = e.readBytes(s, 32), o = mU(yg(a));
|
|
@@ -27770,7 +27784,7 @@ async function ku(e, t) {
|
|
|
27770
27784
|
to: C
|
|
27771
27785
|
}) : d;
|
|
27772
27786
|
try {
|
|
27773
|
-
|
|
27787
|
+
fn(t);
|
|
27774
27788
|
const F = (typeof a == "bigint" ? V(a) : void 0) || o, N = l ? a6(l) : void 0, z = g0(R), $ = (P = (k = (D = e.chain) == null ? void 0 : D.formatters) == null ? void 0 : k.transactionRequest) == null ? void 0 : P.format, pe = ($ || Kr)({
|
|
27775
27789
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
27776
27790
|
...ma(T, { format: $ }),
|
|
@@ -27811,7 +27825,7 @@ async function ku(e, t) {
|
|
|
27811
27825
|
});
|
|
27812
27826
|
return ie === "0x" ? { data: void 0 } : { data: ie };
|
|
27813
27827
|
} catch (U) {
|
|
27814
|
-
const F = OD(U), { offchainLookup: N, offchainLookupSignature: z } = await import("./ccip-
|
|
27828
|
+
const F = OD(U), { offchainLookup: N, offchainLookupSignature: z } = await import("./ccip-BLmrJSyG.js");
|
|
27815
27829
|
if (e.ccipRead !== !1 && (F == null ? void 0 : F.slice(0, 10)) === z && C)
|
|
27816
27830
|
return { data: await N(e, { data: F, to: C }) };
|
|
27817
27831
|
throw A && (F == null ? void 0 : F.slice(0, 10)) === "0x101bb98d" ? new ZA({ factory: f }) : Zf(U, {
|
|
@@ -31555,7 +31569,7 @@ function pc(e) {
|
|
|
31555
31569
|
}
|
|
31556
31570
|
function f1({ param: e, value: t }) {
|
|
31557
31571
|
if (e.type === "string" || e.type === "bytes")
|
|
31558
|
-
return Dt(
|
|
31572
|
+
return Dt(Mn(t));
|
|
31559
31573
|
if (e.type === "tuple" || e.type.match(/^(.*)\[(\d+)?\]$/))
|
|
31560
31574
|
throw new lR(e.type);
|
|
31561
31575
|
return pa([e], [t]);
|
|
@@ -31800,7 +31814,7 @@ async function T0(e, t) {
|
|
|
31800
31814
|
client: e
|
|
31801
31815
|
});
|
|
31802
31816
|
})();
|
|
31803
|
-
|
|
31817
|
+
fn(t);
|
|
31804
31818
|
const O = (b = (h = a == null ? void 0 : a.formatters) == null ? void 0 : h.transactionRequest) == null ? void 0 : b.format, T = (O || Kr)({
|
|
31805
31819
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
31806
31820
|
...ma(S, { format: O }),
|
|
@@ -31998,7 +32012,7 @@ async function fc(e, t) {
|
|
|
31998
32012
|
prepare: (u == null ? void 0 : u.type) === "local" ? [] : ["blobVersionedHashes"]
|
|
31999
32013
|
})), i != null && i.fn && ((R = i.runAt) != null && R.includes("afterFillParameters")) && (r = await i.fn({ ...r, chain: s }, {
|
|
32000
32014
|
phase: "afterFillParameters"
|
|
32001
|
-
})),
|
|
32015
|
+
})), fn(r), delete r.parameters, r;
|
|
32002
32016
|
}
|
|
32003
32017
|
async function S0(e, t) {
|
|
32004
32018
|
var o, i, c;
|
|
@@ -32026,7 +32040,7 @@ async function S0(e, t) {
|
|
|
32026
32040
|
if (v && t.gas !== v)
|
|
32027
32041
|
return v;
|
|
32028
32042
|
const A = (typeof y == "bigint" ? V(y) : void 0) || g, I = g0(h);
|
|
32029
|
-
|
|
32043
|
+
fn(t);
|
|
32030
32044
|
const B = (c = (i = (o = e.chain) == null ? void 0 : o.formatters) == null ? void 0 : i.transactionRequest) == null ? void 0 : c.format, k = (B || Kr)({
|
|
32031
32045
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
32032
32046
|
...ma(b, { format: B }),
|
|
@@ -32195,7 +32209,7 @@ function yR(e) {
|
|
|
32195
32209
|
return !1;
|
|
32196
32210
|
function s(a, o, i) {
|
|
32197
32211
|
try {
|
|
32198
|
-
return a.type === "address" ? uc(o, i) : a.type === "string" || a.type === "bytes" ? Dt(
|
|
32212
|
+
return a.type === "address" ? uc(o, i) : a.type === "string" || a.type === "bytes" ? Dt(Mn(o)) === i : o === i;
|
|
32199
32213
|
} catch {
|
|
32200
32214
|
return !1;
|
|
32201
32215
|
}
|
|
@@ -32296,7 +32310,7 @@ async function gR(e, t) {
|
|
|
32296
32310
|
}
|
|
32297
32311
|
const Bd = /* @__PURE__ */ new Map(), b1 = /* @__PURE__ */ new Map();
|
|
32298
32312
|
let xR = 0;
|
|
32299
|
-
function
|
|
32313
|
+
function Gn(e, t, r) {
|
|
32300
32314
|
const n = ++xR, s = () => Bd.get(e) || [], a = () => {
|
|
32301
32315
|
const u = s();
|
|
32302
32316
|
Bd.set(e, u.filter((d) => d.id !== n));
|
|
@@ -32415,7 +32429,7 @@ function TR(e, t) {
|
|
|
32415
32429
|
E,
|
|
32416
32430
|
i
|
|
32417
32431
|
]);
|
|
32418
|
-
return
|
|
32432
|
+
return Gn(v, { onLogs: l, onError: c }, (w) => {
|
|
32419
32433
|
let S;
|
|
32420
32434
|
i !== void 0 && (S = i - 1n);
|
|
32421
32435
|
let C, O = !1;
|
|
@@ -32482,7 +32496,7 @@ function TR(e, t) {
|
|
|
32482
32496
|
E
|
|
32483
32497
|
]);
|
|
32484
32498
|
let w = !0, S = () => w = !1;
|
|
32485
|
-
return
|
|
32499
|
+
return Gn(v, { onLogs: l, onError: c }, (C) => ((async () => {
|
|
32486
32500
|
try {
|
|
32487
32501
|
const O = (() => {
|
|
32488
32502
|
if (e.transport.type === "fallback") {
|
|
@@ -32549,12 +32563,12 @@ async function Pu(e, t) {
|
|
|
32549
32563
|
var w, S, C, O;
|
|
32550
32564
|
const { account: r = e.account, chain: n = e.chain, accessList: s, authorizationList: a, blobs: o, data: i, gas: c, gasPrice: l, maxFeePerBlobGas: u, maxFeePerGas: d, maxPriorityFeePerGas: f, nonce: m, type: y, value: g, ...E } = t;
|
|
32551
32565
|
if (typeof r > "u")
|
|
32552
|
-
throw new
|
|
32566
|
+
throw new Wn({
|
|
32553
32567
|
docsPath: "/docs/actions/wallet/sendTransaction"
|
|
32554
32568
|
});
|
|
32555
32569
|
const v = r ? Qe(r) : null;
|
|
32556
32570
|
try {
|
|
32557
|
-
|
|
32571
|
+
fn(t);
|
|
32558
32572
|
const R = await (async () => {
|
|
32559
32573
|
if (t.to)
|
|
32560
32574
|
return t.to;
|
|
@@ -32662,7 +32676,7 @@ async function Ui(e, t) {
|
|
|
32662
32676
|
async function t(r, n, s, a) {
|
|
32663
32677
|
const { abi: o, account: i = r.account, address: c, args: l, dataSuffix: u, functionName: d, ...f } = a;
|
|
32664
32678
|
if (typeof i > "u")
|
|
32665
|
-
throw new
|
|
32679
|
+
throw new Wn({
|
|
32666
32680
|
docsPath: "/docs/contract/writeContract"
|
|
32667
32681
|
});
|
|
32668
32682
|
const m = i ? Qe(i) : null, y = yr({
|
|
@@ -32852,7 +32866,7 @@ async function T6(e, t) {
|
|
|
32852
32866
|
throwOnFailure: c = !1
|
|
32853
32867
|
} = t, l = Pt(["waitForCallsStatus", e.uid, r]), { promise: u, resolve: d, reject: f } = y0();
|
|
32854
32868
|
let m;
|
|
32855
|
-
const y =
|
|
32869
|
+
const y = Gn(l, { resolve: d, reject: f }, (g) => {
|
|
32856
32870
|
const E = Ao(async () => {
|
|
32857
32871
|
const v = (w) => {
|
|
32858
32872
|
clearTimeout(m), E(), w(), y();
|
|
@@ -33031,7 +33045,7 @@ function Kp(e) {
|
|
|
33031
33045
|
return kt(t);
|
|
33032
33046
|
const r = e.split(".");
|
|
33033
33047
|
for (let n = r.length - 1; n >= 0; n -= 1) {
|
|
33034
|
-
const s = P6(r[n]), a = s ?
|
|
33048
|
+
const s = P6(r[n]), a = s ? Mn(s) : Dt(Ys(r[n]), "bytes");
|
|
33035
33049
|
t = Dt(Fr([t, a]), "bytes");
|
|
33036
33050
|
}
|
|
33037
33051
|
return kt(t);
|
|
@@ -33424,7 +33438,7 @@ async function U6(e, t) {
|
|
|
33424
33438
|
var E, v, w;
|
|
33425
33439
|
const { account: r = e.account, blockNumber: n, blockTag: s = "latest", blobs: a, data: o, gas: i, gasPrice: c, maxFeePerBlobGas: l, maxFeePerGas: u, maxPriorityFeePerGas: d, to: f, value: m, ...y } = t, g = r ? Qe(r) : void 0;
|
|
33426
33440
|
try {
|
|
33427
|
-
|
|
33441
|
+
fn(t);
|
|
33428
33442
|
const C = (typeof n == "bigint" ? V(n) : void 0) || s, O = (w = (v = (E = e.chain) == null ? void 0 : E.formatters) == null ? void 0 : v.transactionRequest) == null ? void 0 : w.format, T = (O || Kr)({
|
|
33429
33443
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
33430
33444
|
...ma(y, { format: O }),
|
|
@@ -34234,7 +34248,7 @@ async function Zp(e, t) {
|
|
|
34234
34248
|
data: v.dataSuffix ? Fr([S || "0x", v.dataSuffix]) : S,
|
|
34235
34249
|
from: v.from ?? (w == null ? void 0 : w.address)
|
|
34236
34250
|
};
|
|
34237
|
-
return
|
|
34251
|
+
return fn(C), Kr(C);
|
|
34238
34252
|
}), g = f.stateOverrides ? g0(f.stateOverrides) : void 0;
|
|
34239
34253
|
c.push({
|
|
34240
34254
|
blockOverrides: m,
|
|
@@ -34712,7 +34726,7 @@ function V6(e, { emitOnBegin: t = !1, emitMissed: r = !1, onBlockNumber: n, onEr
|
|
|
34712
34726
|
r,
|
|
34713
34727
|
o
|
|
34714
34728
|
]);
|
|
34715
|
-
return
|
|
34729
|
+
return Gn(d, { onBlockNumber: n, onError: s }, (f) => Ao(async () => {
|
|
34716
34730
|
var m;
|
|
34717
34731
|
try {
|
|
34718
34732
|
const y = await se(e, mc, "getBlockNumber")({ cacheTime: 0 });
|
|
@@ -34738,7 +34752,7 @@ function V6(e, { emitOnBegin: t = !1, emitMissed: r = !1, onBlockNumber: n, onEr
|
|
|
34738
34752
|
t,
|
|
34739
34753
|
r
|
|
34740
34754
|
]);
|
|
34741
|
-
return
|
|
34755
|
+
return Gn(d, { onBlockNumber: n, onError: s }, (f) => {
|
|
34742
34756
|
let m = !0, y = () => m = !1;
|
|
34743
34757
|
return (async () => {
|
|
34744
34758
|
try {
|
|
@@ -34788,7 +34802,7 @@ async function W6(e, t) {
|
|
|
34788
34802
|
const { promise: v, resolve: w, reject: S } = y0(), C = c ? setTimeout(() => {
|
|
34789
34803
|
E == null || E(), g == null || g(), S(new M8({ hash: s }));
|
|
34790
34804
|
}, c) : void 0;
|
|
34791
|
-
return g =
|
|
34805
|
+
return g = Gn(l, { onReplaced: a, resolve: w, reject: S }, async (O) => {
|
|
34792
34806
|
if (m = await se(e, El, "getTransactionReceipt")({ hash: s }).catch(() => {
|
|
34793
34807
|
}), m && n <= 1) {
|
|
34794
34808
|
clearTimeout(C), O.resolve(m), g == null || g();
|
|
@@ -34875,7 +34889,7 @@ function $N(e, { blockTag: t = e.experimental_blockTag ?? "latest", emitMissed:
|
|
|
34875
34889
|
u,
|
|
34876
34890
|
c
|
|
34877
34891
|
]);
|
|
34878
|
-
return
|
|
34892
|
+
return Gn(y, { onBlock: s, onError: a }, (g) => Ao(async () => {
|
|
34879
34893
|
var E;
|
|
34880
34894
|
try {
|
|
34881
34895
|
const v = await se(e, zr, "getBlock")({
|
|
@@ -34959,7 +34973,7 @@ function HN(e, { address: t, args: r, batch: n = !0, event: s, events: a, fromBl
|
|
|
34959
34973
|
u,
|
|
34960
34974
|
o
|
|
34961
34975
|
]);
|
|
34962
|
-
return
|
|
34976
|
+
return Gn(E, { onLogs: c, onError: i }, (v) => {
|
|
34963
34977
|
let w;
|
|
34964
34978
|
o !== void 0 && (w = o - 1n);
|
|
34965
34979
|
let S, C = !1;
|
|
@@ -35078,7 +35092,7 @@ function GN(e, { batch: t = !0, onError: r, onTransactions: n, poll: s, pollingI
|
|
|
35078
35092
|
t,
|
|
35079
35093
|
a
|
|
35080
35094
|
]);
|
|
35081
|
-
return
|
|
35095
|
+
return Gn(l, { onTransactions: n, onError: r }, (u) => {
|
|
35082
35096
|
let d;
|
|
35083
35097
|
const f = Ao(async () => {
|
|
35084
35098
|
var m;
|
|
@@ -35307,7 +35321,7 @@ async function q6(e, t) {
|
|
|
35307
35321
|
var c;
|
|
35308
35322
|
const { account: r = e.account, chainId: n, nonce: s } = t;
|
|
35309
35323
|
if (!r)
|
|
35310
|
-
throw new
|
|
35324
|
+
throw new Wn({
|
|
35311
35325
|
docsPath: "/docs/eip7702/prepareAuthorization"
|
|
35312
35326
|
});
|
|
35313
35327
|
const a = Qe(r), o = (() => {
|
|
@@ -35345,12 +35359,12 @@ async function Y6(e, t) {
|
|
|
35345
35359
|
var O, R, T, h;
|
|
35346
35360
|
const { account: r = e.account, chain: n = e.chain, accessList: s, authorizationList: a, blobs: o, data: i, gas: c, gasPrice: l, maxFeePerBlobGas: u, maxFeePerGas: d, maxPriorityFeePerGas: f, nonce: m, pollingInterval: y, throwOnReceiptRevert: g, type: E, value: v, ...w } = t, S = t.timeout ?? Math.max(((n == null ? void 0 : n.blockTime) ?? 0) * 3, 5e3);
|
|
35347
35361
|
if (typeof r > "u")
|
|
35348
|
-
throw new
|
|
35362
|
+
throw new Wn({
|
|
35349
35363
|
docsPath: "/docs/actions/wallet/sendTransactionSync"
|
|
35350
35364
|
});
|
|
35351
35365
|
const C = r ? Qe(r) : null;
|
|
35352
35366
|
try {
|
|
35353
|
-
|
|
35367
|
+
fn(t);
|
|
35354
35368
|
const b = await (async () => {
|
|
35355
35369
|
if (t.to)
|
|
35356
35370
|
return t.to;
|
|
@@ -35471,7 +35485,7 @@ async function az(e, t) {
|
|
|
35471
35485
|
async function oz(e, t) {
|
|
35472
35486
|
const { account: r = e.account } = t;
|
|
35473
35487
|
if (!r)
|
|
35474
|
-
throw new
|
|
35488
|
+
throw new Wn({
|
|
35475
35489
|
docsPath: "/docs/eip7702/signAuthorization"
|
|
35476
35490
|
});
|
|
35477
35491
|
const n = Qe(r);
|
|
@@ -35488,7 +35502,7 @@ async function oz(e, t) {
|
|
|
35488
35502
|
}
|
|
35489
35503
|
async function iz(e, { account: t = e.account, message: r }) {
|
|
35490
35504
|
if (!t)
|
|
35491
|
-
throw new
|
|
35505
|
+
throw new Wn({
|
|
35492
35506
|
docsPath: "/docs/actions/wallet/signMessage"
|
|
35493
35507
|
});
|
|
35494
35508
|
const n = Qe(t);
|
|
@@ -35504,11 +35518,11 @@ async function cz(e, t) {
|
|
|
35504
35518
|
var l, u, d, f;
|
|
35505
35519
|
const { account: r = e.account, chain: n = e.chain, ...s } = t;
|
|
35506
35520
|
if (!r)
|
|
35507
|
-
throw new
|
|
35521
|
+
throw new Wn({
|
|
35508
35522
|
docsPath: "/docs/actions/wallet/signTransaction"
|
|
35509
35523
|
});
|
|
35510
35524
|
const a = Qe(r);
|
|
35511
|
-
|
|
35525
|
+
fn({
|
|
35512
35526
|
account: a,
|
|
35513
35527
|
...t
|
|
35514
35528
|
});
|
|
@@ -35538,7 +35552,7 @@ async function cz(e, t) {
|
|
|
35538
35552
|
async function lz(e, t) {
|
|
35539
35553
|
const { account: r = e.account, domain: n, message: s, primaryType: a } = t;
|
|
35540
35554
|
if (!r)
|
|
35541
|
-
throw new
|
|
35555
|
+
throw new Wn({
|
|
35542
35556
|
docsPath: "/docs/actions/wallet/signTypedData"
|
|
35543
35557
|
});
|
|
35544
35558
|
const o = Qe(r), i = {
|
|
@@ -35755,7 +35769,7 @@ const xz = (e, t) => {
|
|
|
35755
35769
|
) });
|
|
35756
35770
|
function vz({ children: e }) {
|
|
35757
35771
|
return /* @__PURE__ */ _(
|
|
35758
|
-
|
|
35772
|
+
O3,
|
|
35759
35773
|
{
|
|
35760
35774
|
FallbackComponent: wz,
|
|
35761
35775
|
onError: (t) => bt.onCrash(t),
|
|
@@ -35763,7 +35777,7 @@ function vz({ children: e }) {
|
|
|
35763
35777
|
}
|
|
35764
35778
|
);
|
|
35765
35779
|
}
|
|
35766
|
-
const Jp = Ki({}), Ez = new
|
|
35780
|
+
const Jp = Ki({}), Ez = new g3({
|
|
35767
35781
|
defaultOptions: {
|
|
35768
35782
|
queries: {
|
|
35769
35783
|
refetchOnWindowFocus: !1
|
|
@@ -35885,7 +35899,7 @@ const Jp = Ki({}), Ez = new b3({
|
|
|
35885
35899
|
]
|
|
35886
35900
|
}
|
|
35887
35901
|
);
|
|
35888
|
-
}, CK = (e) => /* @__PURE__ */ _(
|
|
35902
|
+
}, CK = (e) => /* @__PURE__ */ _(x3, { client: Ez, children: /* @__PURE__ */ _(Az, { ...e }) }), ne = () => {
|
|
35889
35903
|
if (!Jp)
|
|
35890
35904
|
throw new Error("useSpotContext must be used within a WidgetProvider");
|
|
35891
35905
|
return Zl(Jp);
|
|
@@ -36112,7 +36126,7 @@ const Fz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
36112
36126
|
IconBase: X6,
|
|
36113
36127
|
IconContext: ef,
|
|
36114
36128
|
IconsManifest: Pz
|
|
36115
|
-
}, Symbol.toStringTag, { value: "Module" })), Fu = /* @__PURE__ */
|
|
36129
|
+
}, Symbol.toStringTag, { value: "Module" })), Fu = /* @__PURE__ */ ew(Fz);
|
|
36116
36130
|
var v1;
|
|
36117
36131
|
function Uz() {
|
|
36118
36132
|
if (v1) return _d;
|
|
@@ -36165,7 +36179,7 @@ function N0(e) {
|
|
|
36165
36179
|
function Xt(e) {
|
|
36166
36180
|
return e === void 0;
|
|
36167
36181
|
}
|
|
36168
|
-
function
|
|
36182
|
+
function jn(e) {
|
|
36169
36183
|
return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]";
|
|
36170
36184
|
}
|
|
36171
36185
|
function hc(e) {
|
|
@@ -36182,7 +36196,7 @@ function ds(e, t) {
|
|
|
36182
36196
|
Ge(t, r) && (e[r] = t[r]);
|
|
36183
36197
|
return Ge(t, "toString") && (e.toString = t.toString), Ge(t, "valueOf") && (e.valueOf = t.valueOf), e;
|
|
36184
36198
|
}
|
|
36185
|
-
function
|
|
36199
|
+
function mn(e, t, r, n) {
|
|
36186
36200
|
return E2(e, t, r, n, !0).utc();
|
|
36187
36201
|
}
|
|
36188
36202
|
function Rz() {
|
|
@@ -36227,7 +36241,7 @@ function z0(e) {
|
|
|
36227
36241
|
return e._isValid;
|
|
36228
36242
|
}
|
|
36229
36243
|
function Uu(e) {
|
|
36230
|
-
var t =
|
|
36244
|
+
var t = mn(NaN);
|
|
36231
36245
|
return e != null ? ds(Ce(t), e) : Ce(t).userInvalidated = !0, t;
|
|
36232
36246
|
}
|
|
36233
36247
|
var k1 = J.momentProperties = [], Rd = !1;
|
|
@@ -36278,13 +36292,13 @@ function t2(e, t) {
|
|
|
36278
36292
|
}
|
|
36279
36293
|
J.suppressDeprecationWarnings = !1;
|
|
36280
36294
|
J.deprecationHandler = null;
|
|
36281
|
-
function
|
|
36295
|
+
function hn(e) {
|
|
36282
36296
|
return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
|
|
36283
36297
|
}
|
|
36284
36298
|
function Nz(e) {
|
|
36285
36299
|
var t, r;
|
|
36286
36300
|
for (r in e)
|
|
36287
|
-
Ge(e, r) && (t = e[r],
|
|
36301
|
+
Ge(e, r) && (t = e[r], hn(t) ? this[r] = t : this["_" + r] = t);
|
|
36288
36302
|
this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp(
|
|
36289
36303
|
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
|
|
36290
36304
|
);
|
|
@@ -36317,7 +36331,7 @@ var zz = {
|
|
|
36317
36331
|
};
|
|
36318
36332
|
function Lz(e, t, r) {
|
|
36319
36333
|
var n = this._calendar[e] || this._calendar.sameElse;
|
|
36320
|
-
return
|
|
36334
|
+
return hn(n) ? n.call(t, r) : n;
|
|
36321
36335
|
}
|
|
36322
36336
|
function un(e, t, r) {
|
|
36323
36337
|
var n = "" + Math.abs(e), s = t - n.length, a = e >= 0;
|
|
@@ -36347,7 +36361,7 @@ function Hz(e) {
|
|
|
36347
36361
|
return function(s) {
|
|
36348
36362
|
var a = "", o;
|
|
36349
36363
|
for (o = 0; o < n; o++)
|
|
36350
|
-
a +=
|
|
36364
|
+
a += hn(t[o]) ? t[o].call(s, e) : t[o];
|
|
36351
36365
|
return a;
|
|
36352
36366
|
};
|
|
36353
36367
|
}
|
|
@@ -36408,11 +36422,11 @@ var Zz = {
|
|
|
36408
36422
|
};
|
|
36409
36423
|
function Xz(e, t, r, n) {
|
|
36410
36424
|
var s = this._relativeTime[r];
|
|
36411
|
-
return
|
|
36425
|
+
return hn(s) ? s(e, t, r, n) : s.replace(/%d/i, e);
|
|
36412
36426
|
}
|
|
36413
36427
|
function Qz(e, t) {
|
|
36414
36428
|
var r = this._relativeTime[e > 0 ? "future" : "past"];
|
|
36415
|
-
return
|
|
36429
|
+
return hn(r) ? r(t) : r.replace(/%s/i, t);
|
|
36416
36430
|
}
|
|
36417
36431
|
var T1 = {
|
|
36418
36432
|
D: "date",
|
|
@@ -36502,7 +36516,7 @@ function eL(e) {
|
|
|
36502
36516
|
var n2 = /\d/, gr = /\d\d/, s2 = /\d{3}/, j0 = /\d{4}/, Ou = /[+-]?\d{6}/, rt = /\d\d?/, a2 = /\d\d\d\d?/, o2 = /\d\d\d\d\d\d?/, Du = /\d{1,3}/, V0 = /\d{1,4}/, _u = /[+-]?\d{1,6}/, So = /\d+/, Mu = /[+-]?\d+/, tL = /Z|[+-]\d\d:?\d\d/gi, Ru = /Z|[+-]\d\d(?::?\d\d)?/gi, rL = /[+-]?\d+(\.\d{1,3})?/, yc = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, Po = /^[1-9]\d?/, W0 = /^([1-9]\d|\d)/, Gl;
|
|
36503
36517
|
Gl = {};
|
|
36504
36518
|
function ae(e, t, r) {
|
|
36505
|
-
Gl[e] =
|
|
36519
|
+
Gl[e] = hn(t) ? t : function(n, s) {
|
|
36506
36520
|
return n && r ? r : t;
|
|
36507
36521
|
};
|
|
36508
36522
|
}
|
|
@@ -36510,7 +36524,7 @@ function nL(e, t) {
|
|
|
36510
36524
|
return Ge(Gl, e) ? Gl[e](t._strict, t._locale) : new RegExp(sL(e));
|
|
36511
36525
|
}
|
|
36512
36526
|
function sL(e) {
|
|
36513
|
-
return
|
|
36527
|
+
return zn(
|
|
36514
36528
|
e.replace("\\", "").replace(
|
|
36515
36529
|
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
|
36516
36530
|
function(t, r, n, s, a) {
|
|
@@ -36519,7 +36533,7 @@ function sL(e) {
|
|
|
36519
36533
|
)
|
|
36520
36534
|
);
|
|
36521
36535
|
}
|
|
36522
|
-
function
|
|
36536
|
+
function zn(e) {
|
|
36523
36537
|
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
36524
36538
|
}
|
|
36525
36539
|
function Pr(e) {
|
|
@@ -36532,7 +36546,7 @@ function Ue(e) {
|
|
|
36532
36546
|
var sf = {};
|
|
36533
36547
|
function Ze(e, t) {
|
|
36534
36548
|
var r, n = t, s;
|
|
36535
|
-
for (typeof e == "string" && (e = [e]),
|
|
36549
|
+
for (typeof e == "string" && (e = [e]), jn(t) && (n = function(a, o) {
|
|
36536
36550
|
o[t] = Ue(a);
|
|
36537
36551
|
}), s = e.length, r = 0; r < s; r++)
|
|
36538
36552
|
sf[e[r]] = n;
|
|
@@ -36548,7 +36562,7 @@ function aL(e, t, r) {
|
|
|
36548
36562
|
function Nu(e) {
|
|
36549
36563
|
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
36550
36564
|
}
|
|
36551
|
-
var Lt = 0,
|
|
36565
|
+
var Lt = 0, On = 1, sn = 2, At = 3, Lr = 4, Dn = 5, Ms = 6, oL = 7, iL = 8;
|
|
36552
36566
|
ue("Y", 0, 0, function() {
|
|
36553
36567
|
var e = this.year();
|
|
36554
36568
|
return e <= 9999 ? un(e, 4) : "+" + e;
|
|
@@ -36642,7 +36656,7 @@ function c2(e, t, r) {
|
|
|
36642
36656
|
}
|
|
36643
36657
|
}
|
|
36644
36658
|
function lL(e) {
|
|
36645
|
-
return e = Or(e),
|
|
36659
|
+
return e = Or(e), hn(this[e]) ? this[e]() : this;
|
|
36646
36660
|
}
|
|
36647
36661
|
function uL(e, t) {
|
|
36648
36662
|
if (typeof e == "object") {
|
|
@@ -36650,7 +36664,7 @@ function uL(e, t) {
|
|
|
36650
36664
|
var r = eL(e), n, s = r.length;
|
|
36651
36665
|
for (n = 0; n < s; n++)
|
|
36652
36666
|
this[r[n].unit](e[r[n].unit]);
|
|
36653
|
-
} else if (e = Or(e),
|
|
36667
|
+
} else if (e = Or(e), hn(this[e]))
|
|
36654
36668
|
return this[e](t);
|
|
36655
36669
|
return this;
|
|
36656
36670
|
}
|
|
@@ -36689,11 +36703,11 @@ ae("MMMM", function(e, t) {
|
|
|
36689
36703
|
return t.monthsRegex(e);
|
|
36690
36704
|
});
|
|
36691
36705
|
Ze(["M", "MM"], function(e, t) {
|
|
36692
|
-
t[
|
|
36706
|
+
t[On] = Ue(e) - 1;
|
|
36693
36707
|
});
|
|
36694
36708
|
Ze(["MMM", "MMMM"], function(e, t, r, n) {
|
|
36695
36709
|
var s = r._locale.monthsParse(e, n, r._strict);
|
|
36696
|
-
s != null ? t[
|
|
36710
|
+
s != null ? t[On] = s : Ce(r).invalidMonth = e;
|
|
36697
36711
|
});
|
|
36698
36712
|
var pL = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
36699
36713
|
"_"
|
|
@@ -36708,7 +36722,7 @@ function yL(e, t, r) {
|
|
|
36708
36722
|
var n, s, a, o = e.toLocaleLowerCase();
|
|
36709
36723
|
if (!this._monthsParse)
|
|
36710
36724
|
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], n = 0; n < 12; ++n)
|
|
36711
|
-
a =
|
|
36725
|
+
a = mn([2e3, n]), this._shortMonthsParse[n] = this.monthsShort(
|
|
36712
36726
|
a,
|
|
36713
36727
|
""
|
|
36714
36728
|
).toLocaleLowerCase(), this._longMonthsParse[n] = this.months(a, "").toLocaleLowerCase();
|
|
@@ -36719,7 +36733,7 @@ function gL(e, t, r) {
|
|
|
36719
36733
|
if (this._monthsParseExact)
|
|
36720
36734
|
return yL.call(this, e, t, r);
|
|
36721
36735
|
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), n = 0; n < 12; n++) {
|
|
36722
|
-
if (s =
|
|
36736
|
+
if (s = mn([2e3, n]), r && !this._longMonthsParse[n] && (this._longMonthsParse[n] = new RegExp(
|
|
36723
36737
|
"^" + this.months(s, "").replace(".", "") + "$",
|
|
36724
36738
|
"i"
|
|
36725
36739
|
), this._shortMonthsParse[n] = new RegExp(
|
|
@@ -36739,7 +36753,7 @@ function d2(e, t) {
|
|
|
36739
36753
|
if (typeof t == "string") {
|
|
36740
36754
|
if (/^\d+$/.test(t))
|
|
36741
36755
|
t = Ue(t);
|
|
36742
|
-
else if (t = e.localeData().monthsParse(t), !
|
|
36756
|
+
else if (t = e.localeData().monthsParse(t), !jn(t))
|
|
36743
36757
|
return e;
|
|
36744
36758
|
}
|
|
36745
36759
|
var r = t, n = e.date();
|
|
@@ -36763,7 +36777,7 @@ function f2() {
|
|
|
36763
36777
|
}
|
|
36764
36778
|
var t = [], r = [], n = [], s, a, o, i;
|
|
36765
36779
|
for (s = 0; s < 12; s++)
|
|
36766
|
-
a =
|
|
36780
|
+
a = mn([2e3, s]), o = zn(this.monthsShort(a, "")), i = zn(this.months(a, "")), t.push(o), r.push(i), n.push(i), n.push(o);
|
|
36767
36781
|
t.sort(e), r.sort(e), n.sort(e), this._monthsRegex = new RegExp("^(" + n.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
|
|
36768
36782
|
"^(" + r.join("|") + ")",
|
|
36769
36783
|
"i"
|
|
@@ -36793,12 +36807,12 @@ function m2(e, t, r, n, s) {
|
|
|
36793
36807
|
}
|
|
36794
36808
|
function _i(e, t, r) {
|
|
36795
36809
|
var n = jl(e.year(), t, r), s = Math.floor((e.dayOfYear() - n - 1) / 7) + 1, a, o;
|
|
36796
|
-
return s < 1 ? (o = e.year() - 1, a = s +
|
|
36810
|
+
return s < 1 ? (o = e.year() - 1, a = s + Ln(o, t, r)) : s > Ln(e.year(), t, r) ? (a = s - Ln(e.year(), t, r), o = e.year() + 1) : (o = e.year(), a = s), {
|
|
36797
36811
|
week: a,
|
|
36798
36812
|
year: o
|
|
36799
36813
|
};
|
|
36800
36814
|
}
|
|
36801
|
-
function
|
|
36815
|
+
function Ln(e, t, r) {
|
|
36802
36816
|
var n = jl(e, t, r), s = jl(e + 1, t, r);
|
|
36803
36817
|
return (ei(e) - n + s) / 7;
|
|
36804
36818
|
}
|
|
@@ -36892,7 +36906,7 @@ function zL(e, t, r) {
|
|
|
36892
36906
|
var n, s, a, o = e.toLocaleLowerCase();
|
|
36893
36907
|
if (!this._weekdaysParse)
|
|
36894
36908
|
for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], n = 0; n < 7; ++n)
|
|
36895
|
-
a =
|
|
36909
|
+
a = mn([2e3, 1]).day(n), this._minWeekdaysParse[n] = this.weekdaysMin(
|
|
36896
36910
|
a,
|
|
36897
36911
|
""
|
|
36898
36912
|
).toLocaleLowerCase(), this._shortWeekdaysParse[n] = this.weekdaysShort(
|
|
@@ -36906,7 +36920,7 @@ function LL(e, t, r) {
|
|
|
36906
36920
|
if (this._weekdaysParseExact)
|
|
36907
36921
|
return zL.call(this, e, t, r);
|
|
36908
36922
|
for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), n = 0; n < 7; n++) {
|
|
36909
|
-
if (s =
|
|
36923
|
+
if (s = mn([2e3, 1]).day(n), r && !this._fullWeekdaysParse[n] && (this._fullWeekdaysParse[n] = new RegExp(
|
|
36910
36924
|
"^" + this.weekdays(s, "").replace(".", "\\.?") + "$",
|
|
36911
36925
|
"i"
|
|
36912
36926
|
), this._shortWeekdaysParse[n] = new RegExp(
|
|
@@ -36961,7 +36975,7 @@ function K0() {
|
|
|
36961
36975
|
}
|
|
36962
36976
|
var t = [], r = [], n = [], s = [], a, o, i, c, l;
|
|
36963
36977
|
for (a = 0; a < 7; a++)
|
|
36964
|
-
o =
|
|
36978
|
+
o = mn([2e3, 1]).day(a), i = zn(this.weekdaysMin(o, "")), c = zn(this.weekdaysShort(o, "")), l = zn(this.weekdays(o, "")), t.push(i), r.push(c), n.push(l), s.push(i), s.push(c), s.push(l);
|
|
36965
36979
|
t.sort(e), r.sort(e), n.sort(e), s.sort(e), this._weekdaysRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
|
|
36966
36980
|
"^(" + n.join("|") + ")",
|
|
36967
36981
|
"i"
|
|
@@ -37037,7 +37051,7 @@ Ze("hmm", function(e, t, r) {
|
|
|
37037
37051
|
});
|
|
37038
37052
|
Ze("hmmss", function(e, t, r) {
|
|
37039
37053
|
var n = e.length - 4, s = e.length - 2;
|
|
37040
|
-
t[At] = Ue(e.substr(0, n)), t[Lr] = Ue(e.substr(n, 2)), t[
|
|
37054
|
+
t[At] = Ue(e.substr(0, n)), t[Lr] = Ue(e.substr(n, 2)), t[Dn] = Ue(e.substr(s)), Ce(r).bigHour = !0;
|
|
37041
37055
|
});
|
|
37042
37056
|
Ze("Hmm", function(e, t, r) {
|
|
37043
37057
|
var n = e.length - 2;
|
|
@@ -37045,7 +37059,7 @@ Ze("Hmm", function(e, t, r) {
|
|
|
37045
37059
|
});
|
|
37046
37060
|
Ze("Hmmss", function(e, t, r) {
|
|
37047
37061
|
var n = e.length - 4, s = e.length - 2;
|
|
37048
|
-
t[At] = Ue(e.substr(0, n)), t[Lr] = Ue(e.substr(n, 2)), t[
|
|
37062
|
+
t[At] = Ue(e.substr(0, n)), t[Lr] = Ue(e.substr(n, 2)), t[Dn] = Ue(e.substr(s));
|
|
37049
37063
|
});
|
|
37050
37064
|
function YL(e) {
|
|
37051
37065
|
return (e + "").toLowerCase().charAt(0) === "p";
|
|
@@ -37107,7 +37121,7 @@ function zu(e) {
|
|
|
37107
37121
|
}
|
|
37108
37122
|
function bs(e, t) {
|
|
37109
37123
|
var r;
|
|
37110
|
-
return e && (Xt(t) ? r =
|
|
37124
|
+
return e && (Xt(t) ? r = Yn(e) : r = X0(e, t), r ? Mi = r : typeof console < "u" && console.warn && console.warn(
|
|
37111
37125
|
"Locale " + e + " not found. Did you forget to load it?"
|
|
37112
37126
|
)), Mi._abbr;
|
|
37113
37127
|
}
|
|
@@ -37143,7 +37157,7 @@ function t$(e, t) {
|
|
|
37143
37157
|
at[e] != null && (at[e].parentLocale != null ? (at[e] = at[e].parentLocale, e === bs() && bs(e)) : at[e] != null && delete at[e]);
|
|
37144
37158
|
return at[e];
|
|
37145
37159
|
}
|
|
37146
|
-
function
|
|
37160
|
+
function Yn(e) {
|
|
37147
37161
|
var t;
|
|
37148
37162
|
if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
|
|
37149
37163
|
return Mi;
|
|
@@ -37159,7 +37173,7 @@ function r$() {
|
|
|
37159
37173
|
}
|
|
37160
37174
|
function Q0(e) {
|
|
37161
37175
|
var t, r = e._a;
|
|
37162
|
-
return r && Ce(e).overflow === -2 && (t = r[
|
|
37176
|
+
return r && Ce(e).overflow === -2 && (t = r[On] < 0 || r[On] > 11 ? On : r[sn] < 1 || r[sn] > q0(r[Lt], r[On]) ? sn : r[At] < 0 || r[At] > 24 || r[At] === 24 && (r[Lr] !== 0 || r[Dn] !== 0 || r[Ms] !== 0) ? At : r[Lr] < 0 || r[Lr] > 59 ? Lr : r[Dn] < 0 || r[Dn] > 59 ? Dn : r[Ms] < 0 || r[Ms] > 999 ? Ms : -1, Ce(e)._overflowDayOfYear && (t < Lt || t > sn) && (t = sn), Ce(e)._overflowWeeks && t === -1 && (t = oL), Ce(e)._overflowWeekday && t === -1 && (t = iL), Ce(e).overflow = t), e;
|
|
37163
37177
|
}
|
|
37164
37178
|
var n$ = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, s$ = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, a$ = /Z|[+-]\d\d(?::?\d\d)?/, bl = [
|
|
37165
37179
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
@@ -37324,11 +37338,11 @@ function h$(e) {
|
|
|
37324
37338
|
function J0(e) {
|
|
37325
37339
|
var t, r, n = [], s, a, o;
|
|
37326
37340
|
if (!e._d) {
|
|
37327
|
-
for (s = h$(e), e._w && e._a[sn] == null && e._a[
|
|
37341
|
+
for (s = h$(e), e._w && e._a[sn] == null && e._a[On] == null && b$(e), e._dayOfYear != null && (o = Ba(e._a[Lt], s[Lt]), (e._dayOfYear > ei(o) || e._dayOfYear === 0) && (Ce(e)._overflowDayOfYear = !0), r = Di(o, 0, e._dayOfYear), e._a[On] = r.getUTCMonth(), e._a[sn] = r.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
|
|
37328
37342
|
e._a[t] = n[t] = s[t];
|
|
37329
37343
|
for (; t < 7; t++)
|
|
37330
37344
|
e._a[t] = n[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
37331
|
-
e._a[At] === 24 && e._a[Lr] === 0 && e._a[
|
|
37345
|
+
e._a[At] === 24 && e._a[Lr] === 0 && e._a[Dn] === 0 && e._a[Ms] === 0 && (e._nextDay = !0, e._a[At] = 0), e._d = (e._useUTC ? Di : EL).apply(
|
|
37332
37346
|
null,
|
|
37333
37347
|
n
|
|
37334
37348
|
), a = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[At] = 24), e._w && typeof e._w.d < "u" && e._w.d !== a && (Ce(e).weekdayMismatch = !0);
|
|
@@ -37340,7 +37354,7 @@ function b$(e) {
|
|
|
37340
37354
|
t.GG,
|
|
37341
37355
|
e._a[Lt],
|
|
37342
37356
|
_i(tt(), 1, 4).year
|
|
37343
|
-
), n = Ba(t.W, 1), s = Ba(t.E, 1), (s < 1 || s > 7) && (c = !0)) : (a = e._locale._week.dow, o = e._locale._week.doy, l = _i(tt(), a, o), r = Ba(t.gg, e._a[Lt], l.year), n = Ba(t.w, l.week), t.d != null ? (s = t.d, (s < 0 || s > 6) && (c = !0)) : t.e != null ? (s = t.e + a, (t.e < 0 || t.e > 6) && (c = !0)) : s = a), n < 1 || n >
|
|
37357
|
+
), n = Ba(t.W, 1), s = Ba(t.E, 1), (s < 1 || s > 7) && (c = !0)) : (a = e._locale._week.dow, o = e._locale._week.doy, l = _i(tt(), a, o), r = Ba(t.gg, e._a[Lt], l.year), n = Ba(t.w, l.week), t.d != null ? (s = t.d, (s < 0 || s > 6) && (c = !0)) : t.e != null ? (s = t.e + a, (t.e < 0 || t.e > 6) && (c = !0)) : s = a), n < 1 || n > Ln(r, a, o) ? Ce(e)._overflowWeeks = !0 : c != null ? Ce(e)._overflowWeekday = !0 : (i = m2(r, n, s, a, o), e._a[Lt] = i.year, e._dayOfYear = i.dayOfYear);
|
|
37344
37358
|
}
|
|
37345
37359
|
J.ISO_8601 = function() {
|
|
37346
37360
|
};
|
|
@@ -37398,13 +37412,13 @@ function w$(e) {
|
|
|
37398
37412
|
}
|
|
37399
37413
|
function v2(e) {
|
|
37400
37414
|
var t = e._i, r = e._f;
|
|
37401
|
-
return e._locale = e._locale ||
|
|
37415
|
+
return e._locale = e._locale || Yn(e._l), t === null || r === void 0 && t === "" ? Uu({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), Wr(t) ? new bc(Q0(t)) : (hc(t) ? e._d = t : Vr(r) ? g$(e) : r ? em(e) : v$(e), z0(e) || (e._d = null), e));
|
|
37402
37416
|
}
|
|
37403
37417
|
function v$(e) {
|
|
37404
37418
|
var t = e._i;
|
|
37405
37419
|
Xt(t) ? e._d = new Date(J.now()) : hc(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? m$(e) : Vr(t) ? (e._a = J6(t.slice(0), function(r) {
|
|
37406
37420
|
return parseInt(r, 10);
|
|
37407
|
-
}), J0(e)) : Xs(t) ? x$(e) :
|
|
37421
|
+
}), J0(e)) : Xs(t) ? x$(e) : jn(t) ? e._d = new Date(t) : J.createFromInputFallback(e);
|
|
37408
37422
|
}
|
|
37409
37423
|
function E2(e, t, r, n, s) {
|
|
37410
37424
|
var a = {};
|
|
@@ -37478,7 +37492,7 @@ function Lu(e) {
|
|
|
37478
37492
|
var t = G0(e), r = t.year || 0, n = t.quarter || 0, s = t.month || 0, a = t.week || t.isoWeek || 0, o = t.day || 0, i = t.hour || 0, c = t.minute || 0, l = t.second || 0, u = t.millisecond || 0;
|
|
37479
37493
|
this._isValid = S$(t), this._milliseconds = +u + l * 1e3 + // 1000
|
|
37480
37494
|
c * 6e4 + // 1000 * 60
|
|
37481
|
-
i * 1e3 * 60 * 60, this._days = +o + a * 7, this._months = +s + n * 3 + r * 12, this._data = {}, this._locale =
|
|
37495
|
+
i * 1e3 * 60 * 60, this._days = +o + a * 7, this._months = +s + n * 3 + r * 12, this._data = {}, this._locale = Yn(), this._bubble();
|
|
37482
37496
|
}
|
|
37483
37497
|
function Cl(e) {
|
|
37484
37498
|
return e instanceof Lu;
|
|
@@ -37565,7 +37579,7 @@ function z$() {
|
|
|
37565
37579
|
if (!Xt(this._isDSTShifted))
|
|
37566
37580
|
return this._isDSTShifted;
|
|
37567
37581
|
var e = {}, t;
|
|
37568
|
-
return L0(e, this), e = v2(e), e._a ? (t = e._isUTC ?
|
|
37582
|
+
return L0(e, this), e = v2(e), e._a ? (t = e._isUTC ? mn(e._a) : tt(e._a), this._isDSTShifted = this.isValid() && B$(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
37569
37583
|
}
|
|
37570
37584
|
function L$() {
|
|
37571
37585
|
return this.isValid() ? !this._isUTC : !1;
|
|
@@ -37583,12 +37597,12 @@ function Zr(e, t) {
|
|
|
37583
37597
|
ms: e._milliseconds,
|
|
37584
37598
|
d: e._days,
|
|
37585
37599
|
M: e._months
|
|
37586
|
-
} :
|
|
37600
|
+
} : jn(e) || !isNaN(+e) ? (r = {}, t ? r[t] = +e : r.milliseconds = +e) : (n = H$.exec(e)) ? (s = n[1] === "-" ? -1 : 1, r = {
|
|
37587
37601
|
y: 0,
|
|
37588
37602
|
d: Ue(n[sn]) * s,
|
|
37589
37603
|
h: Ue(n[At]) * s,
|
|
37590
37604
|
m: Ue(n[Lr]) * s,
|
|
37591
|
-
s: Ue(n[
|
|
37605
|
+
s: Ue(n[Dn]) * s,
|
|
37592
37606
|
ms: Ue(af(n[Ms] * 1e3)) * s
|
|
37593
37607
|
// the millisecond decimal point is included in the match
|
|
37594
37608
|
}) : (n = G$.exec(e)) ? (s = n[1] === "-" ? -1 : 1, r = {
|
|
@@ -37636,7 +37650,7 @@ function P2(e) {
|
|
|
37636
37650
|
return typeof e == "string" || e instanceof String;
|
|
37637
37651
|
}
|
|
37638
37652
|
function q$(e) {
|
|
37639
|
-
return Wr(e) || hc(e) || P2(e) ||
|
|
37653
|
+
return Wr(e) || hc(e) || P2(e) || jn(e) || K$(e) || Y$(e) || e === null || e === void 0;
|
|
37640
37654
|
}
|
|
37641
37655
|
function Y$(e) {
|
|
37642
37656
|
var t = Xs(e) && !N0(e), r = !1, n = [
|
|
@@ -37672,7 +37686,7 @@ function Y$(e) {
|
|
|
37672
37686
|
function K$(e) {
|
|
37673
37687
|
var t = Vr(e), r = !1;
|
|
37674
37688
|
return t && (r = e.filter(function(n) {
|
|
37675
|
-
return !
|
|
37689
|
+
return !jn(n) && P2(e);
|
|
37676
37690
|
}).length === 0), t && r;
|
|
37677
37691
|
}
|
|
37678
37692
|
function Z$(e) {
|
|
@@ -37694,7 +37708,7 @@ function X$(e, t) {
|
|
|
37694
37708
|
}
|
|
37695
37709
|
function Q$(e, t) {
|
|
37696
37710
|
arguments.length === 1 && (arguments[0] ? q$(arguments[0]) ? (e = arguments[0], t = void 0) : Z$(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
37697
|
-
var r = e || tt(), n = rm(r, this).startOf("day"), s = J.calendarFormat(this, n) || "sameElse", a = t && (
|
|
37711
|
+
var r = e || tt(), n = rm(r, this).startOf("day"), s = J.calendarFormat(this, n) || "sameElse", a = t && (hn(t[s]) ? t[s].call(this, r) : t[s]);
|
|
37698
37712
|
return this.format(
|
|
37699
37713
|
a || this.localeData().calendar(s, this, tt(r))
|
|
37700
37714
|
);
|
|
@@ -37783,7 +37797,7 @@ function cH(e) {
|
|
|
37783
37797
|
return r.year() < 0 || r.year() > 9999 ? kl(
|
|
37784
37798
|
r,
|
|
37785
37799
|
t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
37786
|
-
) :
|
|
37800
|
+
) : hn(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", kl(r, "Z")) : kl(
|
|
37787
37801
|
r,
|
|
37788
37802
|
t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
37789
37803
|
);
|
|
@@ -37813,7 +37827,7 @@ function mH(e) {
|
|
|
37813
37827
|
}
|
|
37814
37828
|
function I2(e) {
|
|
37815
37829
|
var t;
|
|
37816
|
-
return e === void 0 ? this._locale._abbr : (t =
|
|
37830
|
+
return e === void 0 ? this._locale._abbr : (t = Yn(e), t != null && (this._locale = t), this);
|
|
37817
37831
|
}
|
|
37818
37832
|
var B2 = Ur(
|
|
37819
37833
|
"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
|
|
@@ -38022,7 +38036,7 @@ Ze(["yo"], function(e, t, r, n) {
|
|
|
38022
38036
|
r._locale._eraYearOrdinalRegex && (s = e.match(r._locale._eraYearOrdinalRegex)), r._locale.eraYearOrdinalParse ? t[Lt] = r._locale.eraYearOrdinalParse(e, s) : t[Lt] = parseInt(e, 10);
|
|
38023
38037
|
});
|
|
38024
38038
|
function SH(e, t) {
|
|
38025
|
-
var r, n, s, a = this._eras ||
|
|
38039
|
+
var r, n, s, a = this._eras || Yn("en")._eras;
|
|
38026
38040
|
for (r = 0, n = a.length; r < n; ++r) {
|
|
38027
38041
|
switch (typeof a[r].since) {
|
|
38028
38042
|
case "string":
|
|
@@ -38119,7 +38133,7 @@ function zH(e, t) {
|
|
|
38119
38133
|
function sm() {
|
|
38120
38134
|
var e = [], t = [], r = [], n = [], s, a, o, i, c, l = this.eras();
|
|
38121
38135
|
for (s = 0, a = l.length; s < a; ++s)
|
|
38122
|
-
o =
|
|
38136
|
+
o = zn(l[s].name), i = zn(l[s].abbr), c = zn(l[s].narrow), t.push(o), e.push(i), r.push(c), n.push(o), n.push(i), n.push(c);
|
|
38123
38137
|
this._erasRegex = new RegExp("^(" + n.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
|
|
38124
38138
|
"^(" + r.join("|") + ")",
|
|
38125
38139
|
"i"
|
|
@@ -38176,22 +38190,22 @@ function $H(e) {
|
|
|
38176
38190
|
);
|
|
38177
38191
|
}
|
|
38178
38192
|
function HH() {
|
|
38179
|
-
return
|
|
38193
|
+
return Ln(this.year(), 1, 4);
|
|
38180
38194
|
}
|
|
38181
38195
|
function GH() {
|
|
38182
|
-
return
|
|
38196
|
+
return Ln(this.isoWeekYear(), 1, 4);
|
|
38183
38197
|
}
|
|
38184
38198
|
function jH() {
|
|
38185
38199
|
var e = this.localeData()._week;
|
|
38186
|
-
return
|
|
38200
|
+
return Ln(this.year(), e.dow, e.doy);
|
|
38187
38201
|
}
|
|
38188
38202
|
function VH() {
|
|
38189
38203
|
var e = this.localeData()._week;
|
|
38190
|
-
return
|
|
38204
|
+
return Ln(this.weekYear(), e.dow, e.doy);
|
|
38191
38205
|
}
|
|
38192
38206
|
function _2(e, t, r, n, s) {
|
|
38193
38207
|
var a;
|
|
38194
|
-
return e == null ? _i(this, n, s).year : (a =
|
|
38208
|
+
return e == null ? _i(this, n, s).year : (a = Ln(e, n, s), t > a && (t = a), WH.call(this, e, t, r, n, s));
|
|
38195
38209
|
}
|
|
38196
38210
|
function WH(e, t, r, n, s) {
|
|
38197
38211
|
var a = m2(e, t, r, n, s), o = Di(a.year, 0, a.dayOfYear);
|
|
@@ -38200,7 +38214,7 @@ function WH(e, t, r, n, s) {
|
|
|
38200
38214
|
ue("Q", 0, "Qo", "quarter");
|
|
38201
38215
|
ae("Q", n2);
|
|
38202
38216
|
Ze("Q", function(e, t) {
|
|
38203
|
-
t[
|
|
38217
|
+
t[On] = (Ue(e) - 1) * 3;
|
|
38204
38218
|
});
|
|
38205
38219
|
function qH(e) {
|
|
38206
38220
|
return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
|
|
@@ -38236,7 +38250,7 @@ var KH = Io("Minutes", !1);
|
|
|
38236
38250
|
ue("s", ["ss", 2], 0, "second");
|
|
38237
38251
|
ae("s", rt, W0);
|
|
38238
38252
|
ae("ss", rt, gr);
|
|
38239
|
-
Ze(["s", "ss"],
|
|
38253
|
+
Ze(["s", "ss"], Dn);
|
|
38240
38254
|
var ZH = Io("Seconds", !1);
|
|
38241
38255
|
ue("S", 0, 0, function() {
|
|
38242
38256
|
return ~~(this.millisecond() / 100);
|
|
@@ -38426,11 +38440,11 @@ je.weekdaysMinRegex = WL;
|
|
|
38426
38440
|
je.isPM = YL;
|
|
38427
38441
|
je.meridiem = XL;
|
|
38428
38442
|
function ql(e, t, r, n) {
|
|
38429
|
-
var s =
|
|
38443
|
+
var s = Yn(), a = mn().set(n, t);
|
|
38430
38444
|
return s[r](a, e);
|
|
38431
38445
|
}
|
|
38432
38446
|
function z2(e, t, r) {
|
|
38433
|
-
if (
|
|
38447
|
+
if (jn(e) && (t = e, e = void 0), e = e || "", t != null)
|
|
38434
38448
|
return ql(e, t, r, "month");
|
|
38435
38449
|
var n, s = [];
|
|
38436
38450
|
for (n = 0; n < 12; n++)
|
|
@@ -38438,8 +38452,8 @@ function z2(e, t, r) {
|
|
|
38438
38452
|
return s;
|
|
38439
38453
|
}
|
|
38440
38454
|
function am(e, t, r, n) {
|
|
38441
|
-
typeof e == "boolean" ? (
|
|
38442
|
-
var s =
|
|
38455
|
+
typeof e == "boolean" ? (jn(t) && (r = t, t = void 0), t = t || "") : (t = e, r = t, e = !1, jn(t) && (r = t, t = void 0), t = t || "");
|
|
38456
|
+
var s = Yn(), a = e ? s._week.dow : 0, o, i = [];
|
|
38443
38457
|
if (r != null)
|
|
38444
38458
|
return ql(t, (r + a) % 7, n, "day");
|
|
38445
38459
|
for (o = 0; o < 7; o++)
|
|
@@ -38492,12 +38506,12 @@ J.lang = Ur(
|
|
|
38492
38506
|
);
|
|
38493
38507
|
J.langData = Ur(
|
|
38494
38508
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
38495
|
-
|
|
38509
|
+
Yn
|
|
38496
38510
|
);
|
|
38497
|
-
var
|
|
38511
|
+
var Cn = Math.abs;
|
|
38498
38512
|
function iG() {
|
|
38499
38513
|
var e = this._data;
|
|
38500
|
-
return this._milliseconds =
|
|
38514
|
+
return this._milliseconds = Cn(this._milliseconds), this._days = Cn(this._days), this._months = Cn(this._months), e.milliseconds = Cn(e.milliseconds), e.seconds = Cn(e.seconds), e.minutes = Cn(e.minutes), e.hours = Cn(e.hours), e.months = Cn(e.months), e.years = Cn(e.years), this;
|
|
38501
38515
|
}
|
|
38502
38516
|
function L2(e, t, r, n) {
|
|
38503
38517
|
var s = Zr(t, r);
|
|
@@ -38554,12 +38568,12 @@ function dG(e) {
|
|
|
38554
38568
|
throw new Error("Unknown unit " + e);
|
|
38555
38569
|
}
|
|
38556
38570
|
}
|
|
38557
|
-
function
|
|
38571
|
+
function Kn(e) {
|
|
38558
38572
|
return function() {
|
|
38559
38573
|
return this.as(e);
|
|
38560
38574
|
};
|
|
38561
38575
|
}
|
|
38562
|
-
var H2 =
|
|
38576
|
+
var H2 = Kn("ms"), pG = Kn("s"), fG = Kn("m"), mG = Kn("h"), hG = Kn("d"), bG = Kn("w"), yG = Kn("M"), gG = Kn("Q"), xG = Kn("y"), wG = H2;
|
|
38563
38577
|
function vG() {
|
|
38564
38578
|
return Zr(this);
|
|
38565
38579
|
}
|
|
@@ -38575,7 +38589,7 @@ var kG = ba("milliseconds"), CG = ba("seconds"), TG = ba("minutes"), AG = ba("ho
|
|
|
38575
38589
|
function BG() {
|
|
38576
38590
|
return Pr(this.days() / 7);
|
|
38577
38591
|
}
|
|
38578
|
-
var
|
|
38592
|
+
var An = Math.round, Da = {
|
|
38579
38593
|
ss: 44,
|
|
38580
38594
|
// a few seconds to seconds
|
|
38581
38595
|
s: 45,
|
|
@@ -38595,11 +38609,11 @@ function FG(e, t, r, n, s) {
|
|
|
38595
38609
|
return s.relativeTime(t || 1, !!r, e, n);
|
|
38596
38610
|
}
|
|
38597
38611
|
function UG(e, t, r, n) {
|
|
38598
|
-
var s = Zr(e).abs(), a =
|
|
38612
|
+
var s = Zr(e).abs(), a = An(s.as("s")), o = An(s.as("m")), i = An(s.as("h")), c = An(s.as("d")), l = An(s.as("M")), u = An(s.as("w")), d = An(s.as("y")), f = a <= r.ss && ["s", a] || a < r.s && ["ss", a] || o <= 1 && ["m"] || o < r.m && ["mm", o] || i <= 1 && ["h"] || i < r.h && ["hh", i] || c <= 1 && ["d"] || c < r.d && ["dd", c];
|
|
38599
38613
|
return r.w != null && (f = f || u <= 1 && ["w"] || u < r.w && ["ww", u]), f = f || l <= 1 && ["M"] || l < r.M && ["MM", l] || d <= 1 && ["y"] || ["yy", d], f[2] = t, f[3] = +e > 0, f[4] = n, FG.apply(null, f);
|
|
38600
38614
|
}
|
|
38601
38615
|
function OG(e) {
|
|
38602
|
-
return e === void 0 ?
|
|
38616
|
+
return e === void 0 ? An : typeof e == "function" ? (An = e, !0) : !1;
|
|
38603
38617
|
}
|
|
38604
38618
|
function DG(e, t) {
|
|
38605
38619
|
return Da[e] === void 0 ? !1 : t === void 0 ? Da[e] : (Da[e] = t, e === "s" && (Da.ss = t - 1), !0);
|
|
@@ -38675,7 +38689,7 @@ J.fn = W;
|
|
|
38675
38689
|
J.min = C$;
|
|
38676
38690
|
J.max = T$;
|
|
38677
38691
|
J.now = A$;
|
|
38678
|
-
J.utc =
|
|
38692
|
+
J.utc = mn;
|
|
38679
38693
|
J.unix = eG;
|
|
38680
38694
|
J.months = rG;
|
|
38681
38695
|
J.isDate = hc;
|
|
@@ -38685,7 +38699,7 @@ J.duration = Zr;
|
|
|
38685
38699
|
J.isMoment = Wr;
|
|
38686
38700
|
J.weekdays = sG;
|
|
38687
38701
|
J.parseZone = tG;
|
|
38688
|
-
J.localeData =
|
|
38702
|
+
J.localeData = Yn;
|
|
38689
38703
|
J.isDuration = Cl;
|
|
38690
38704
|
J.monthsShort = nG;
|
|
38691
38705
|
J.weekdaysMin = oG;
|
|
@@ -39223,7 +39237,7 @@ const Re = () => {
|
|
|
39223
39237
|
const e = Re(), { account: t } = ne(), r = (s = xc()) == null ? void 0 : s.explorer, n = Rb(t);
|
|
39224
39238
|
return /* @__PURE__ */ _(fr, { title: e("recipient") || "", children: r ? /* @__PURE__ */ _("a", { href: `${r}/address/${t}`, target: "_blank", children: n }) : n });
|
|
39225
39239
|
}, jV = ({ fillDelayMillis: e, chunks: t = 0, label: r, tooltip: n }) => {
|
|
39226
|
-
const s = ee(() =>
|
|
39240
|
+
const s = ee(() => t8(e), [e]);
|
|
39227
39241
|
return t === 1 ? null : /* @__PURE__ */ _(fr, { title: r, tooltip: n, children: s });
|
|
39228
39242
|
}, fr = ({
|
|
39229
39243
|
title: e,
|
|
@@ -39274,7 +39288,7 @@ Ee.OrderVersion = WV;
|
|
|
39274
39288
|
Ee.USD = ju;
|
|
39275
39289
|
const cm = () => {
|
|
39276
39290
|
const { publicClient: e } = ne();
|
|
39277
|
-
return
|
|
39291
|
+
return Vn({
|
|
39278
39292
|
mutationFn: async (t) => {
|
|
39279
39293
|
if (!e) throw new Error("publicClient is not defined");
|
|
39280
39294
|
const r = 10;
|
|
@@ -39342,7 +39356,7 @@ const cm = () => {
|
|
|
39342
39356
|
throw bt.onCancelOrderError(f), f;
|
|
39343
39357
|
}
|
|
39344
39358
|
};
|
|
39345
|
-
return
|
|
39359
|
+
return Vn({
|
|
39346
39360
|
mutationFn: async ({ orders: u }) => {
|
|
39347
39361
|
var d, f;
|
|
39348
39362
|
if (!e || !t || !r || !n)
|
|
@@ -39401,7 +39415,7 @@ const cm = () => {
|
|
|
39401
39415
|
);
|
|
39402
39416
|
}, XV = () => {
|
|
39403
39417
|
const { account: e, config: t, chainId: r } = ne(), n = um(), s = ZV();
|
|
39404
|
-
return
|
|
39418
|
+
return F3({
|
|
39405
39419
|
refetchInterval: Sz,
|
|
39406
39420
|
refetchOnWindowFocus: !0,
|
|
39407
39421
|
retry: !1,
|
|
@@ -39409,7 +39423,7 @@ const cm = () => {
|
|
|
39409
39423
|
queryKey: n,
|
|
39410
39424
|
queryFn: async ({ signal: a }) => {
|
|
39411
39425
|
if (!e || !r || !t) return [];
|
|
39412
|
-
const o = await
|
|
39426
|
+
const o = await qw({
|
|
39413
39427
|
signal: a,
|
|
39414
39428
|
chainId: r,
|
|
39415
39429
|
config: t.twapConfig,
|
|
@@ -39450,14 +39464,14 @@ const cm = () => {
|
|
|
39450
39464
|
) || [] : t.all, [e, t]);
|
|
39451
39465
|
}, yl = (e, t) => e.filter((r) => r.status === t).sort((r, n) => n.createdAt - r.createdAt), QV = (e, t, r) => ee(() => {
|
|
39452
39466
|
if (!(!e || !t || !r || r != null && r.isMarketPrice))
|
|
39453
|
-
return
|
|
39467
|
+
return H5(
|
|
39454
39468
|
r,
|
|
39455
39469
|
e == null ? void 0 : e.decimals,
|
|
39456
39470
|
t == null ? void 0 : t.decimals
|
|
39457
39471
|
);
|
|
39458
39472
|
}, [r, e, t]), JV = (e, t, r) => ee(() => {
|
|
39459
39473
|
if (!(!e || !t || !r))
|
|
39460
|
-
return
|
|
39474
|
+
return $5(r, e.decimals, t.decimals);
|
|
39461
39475
|
}, [r, e, t]), X2 = () => {
|
|
39462
39476
|
const e = Y((r) => r.updateState), t = Y((r) => r.state.orderIdsToCancel);
|
|
39463
39477
|
return Fe(
|
|
@@ -40076,7 +40090,7 @@ function la(e) {
|
|
|
40076
40090
|
e > 0 ? e-- : t(r);
|
|
40077
40091
|
};
|
|
40078
40092
|
}
|
|
40079
|
-
function
|
|
40093
|
+
function _n(e) {
|
|
40080
40094
|
let t = null, r;
|
|
40081
40095
|
return (n) => (s) => {
|
|
40082
40096
|
t = s, !r && (r = setTimeout(() => {
|
|
@@ -40694,7 +40708,7 @@ function jW(e) {
|
|
|
40694
40708
|
const VW = {
|
|
40695
40709
|
offsetHeight: "height",
|
|
40696
40710
|
offsetWidth: "width"
|
|
40697
|
-
},
|
|
40711
|
+
}, bn = Ve(
|
|
40698
40712
|
([{ log: e }, { recalcInProgress: t }]) => {
|
|
40699
40713
|
const r = Me(), n = Me(), s = zt(n, 0), a = Me(), o = Me(), i = q(0), c = q([]), l = q(void 0), u = q(void 0), d = q(void 0), f = q(void 0), m = q((T, h) => Es(T, VW[h])), y = q(void 0), g = q(0), E = MW(), v = zt(
|
|
40700
40714
|
j(r, Pe(c, e, g), an($W, E), et()),
|
|
@@ -41019,7 +41033,7 @@ const hx = Ve(
|
|
|
41019
41033
|
o
|
|
41020
41034
|
), { groupCounts: a, topItemsIndexes: o };
|
|
41021
41035
|
},
|
|
41022
|
-
nt(
|
|
41036
|
+
nt(bn, Kt)
|
|
41023
41037
|
), Ps = Ve(
|
|
41024
41038
|
([{ log: e }]) => {
|
|
41025
41039
|
const t = q(!1), r = dr(
|
|
@@ -41100,7 +41114,7 @@ const wc = Ve(
|
|
|
41100
41114
|
topListHeight: g
|
|
41101
41115
|
};
|
|
41102
41116
|
},
|
|
41103
|
-
nt(
|
|
41117
|
+
nt(bn, Kt, Ss),
|
|
41104
41118
|
{ singleton: !0 }
|
|
41105
41119
|
);
|
|
41106
41120
|
function YW(e) {
|
|
@@ -41163,7 +41177,7 @@ const vc = Ve(
|
|
|
41163
41177
|
scrolledToInitialItem: i
|
|
41164
41178
|
};
|
|
41165
41179
|
},
|
|
41166
|
-
nt(
|
|
41180
|
+
nt(bn, Kt, wc, Ps),
|
|
41167
41181
|
{ singleton: !0 }
|
|
41168
41182
|
);
|
|
41169
41183
|
function yx(e, t) {
|
|
@@ -41196,7 +41210,7 @@ const $i = "up", ti = "down", KW = "none", ZW = {
|
|
|
41196
41210
|
et()
|
|
41197
41211
|
),
|
|
41198
41212
|
i
|
|
41199
|
-
), ce(j(i,
|
|
41213
|
+
), ce(j(i, _n(50)), l);
|
|
41200
41214
|
const y = dr(
|
|
41201
41215
|
j(
|
|
41202
41216
|
Et(n, me(a), me(t), me(e), me(u)),
|
|
@@ -41264,7 +41278,7 @@ const $i = "up", ti = "down", KW = "none", ZW = {
|
|
|
41264
41278
|
re((w) => w.atBottom)
|
|
41265
41279
|
),
|
|
41266
41280
|
o
|
|
41267
|
-
), ce(j(o,
|
|
41281
|
+
), ce(j(o, _n(50)), c);
|
|
41268
41282
|
const E = q(ti);
|
|
41269
41283
|
ce(
|
|
41270
41284
|
j(
|
|
@@ -41278,7 +41292,7 @@ const $i = "up", ti = "down", KW = "none", ZW = {
|
|
|
41278
41292
|
re((w) => w.direction)
|
|
41279
41293
|
),
|
|
41280
41294
|
E
|
|
41281
|
-
), ce(j(n,
|
|
41295
|
+
), ce(j(n, _n(50), nn(KW)), E);
|
|
41282
41296
|
const v = q(0);
|
|
41283
41297
|
return ce(
|
|
41284
41298
|
j(
|
|
@@ -41290,7 +41304,7 @@ const $i = "up", ti = "down", KW = "none", ZW = {
|
|
|
41290
41304
|
), ce(
|
|
41291
41305
|
j(
|
|
41292
41306
|
s,
|
|
41293
|
-
|
|
41307
|
+
_n(100),
|
|
41294
41308
|
Pe(f),
|
|
41295
41309
|
he(([w, S]) => !!S),
|
|
41296
41310
|
an(([w, S], [C]) => [S, C], [0, 0]),
|
|
@@ -41622,7 +41636,7 @@ const ga = Ve(
|
|
|
41622
41636
|
), O = dr(
|
|
41623
41637
|
j(
|
|
41624
41638
|
S,
|
|
41625
|
-
|
|
41639
|
+
_n(200),
|
|
41626
41640
|
he(({ items: T, topItems: h }) => T.length > 0 && T[0].originalIndex === h.length),
|
|
41627
41641
|
re(({ items: T }) => T[0].index),
|
|
41628
41642
|
et()
|
|
@@ -41658,7 +41672,7 @@ const ga = Ve(
|
|
|
41658
41672
|
};
|
|
41659
41673
|
},
|
|
41660
41674
|
nt(
|
|
41661
|
-
|
|
41675
|
+
bn,
|
|
41662
41676
|
hx,
|
|
41663
41677
|
gm,
|
|
41664
41678
|
vc,
|
|
@@ -41688,7 +41702,7 @@ const ga = Ve(
|
|
|
41688
41702
|
Et(r, e, t),
|
|
41689
41703
|
he(([s]) => s),
|
|
41690
41704
|
re(([, s, a]) => Math.max(0, s - a)),
|
|
41691
|
-
|
|
41705
|
+
_n(0),
|
|
41692
41706
|
et()
|
|
41693
41707
|
),
|
|
41694
41708
|
0
|
|
@@ -41743,7 +41757,7 @@ const ga = Ve(
|
|
|
41743
41757
|
scrollIntoView: u
|
|
41744
41758
|
};
|
|
41745
41759
|
},
|
|
41746
|
-
nt(
|
|
41760
|
+
nt(bn, Kt, wc, ga, Ss),
|
|
41747
41761
|
{ singleton: !0 }
|
|
41748
41762
|
);
|
|
41749
41763
|
function V1(e) {
|
|
@@ -41832,7 +41846,7 @@ const tq = (e, t) => typeof e == "function" ? V1(e(t)) : t && V1(e), rq = Ve(
|
|
|
41832
41846
|
Pe(me(S), i, d, f),
|
|
41833
41847
|
re(([[O, R], T, h, b, x]) => R && h && (T == null ? void 0 : T({ context: x, totalCount: O, scrollingInProgress: b }))),
|
|
41834
41848
|
he((O) => !!O),
|
|
41835
|
-
|
|
41849
|
+
_n(0)
|
|
41836
41850
|
),
|
|
41837
41851
|
(O) => {
|
|
41838
41852
|
E && (E(), E = null), it(r) ? requestAnimationFrame(() => {
|
|
@@ -41844,7 +41858,7 @@ const tq = (e, t) => typeof e == "function" ? V1(e(t)) : t && V1(e), rq = Ve(
|
|
|
41844
41858
|
), { autoscrollToBottom: g, followOutput: y, scrollIntoViewOnChange: S };
|
|
41845
41859
|
},
|
|
41846
41860
|
nt(
|
|
41847
|
-
|
|
41861
|
+
bn,
|
|
41848
41862
|
Ec,
|
|
41849
41863
|
wc,
|
|
41850
41864
|
vc,
|
|
@@ -41865,7 +41879,7 @@ const tq = (e, t) => typeof e == "function" ? V1(e(t)) : t && V1(e), rq = Ve(
|
|
|
41865
41879
|
),
|
|
41866
41880
|
o
|
|
41867
41881
|
), {}),
|
|
41868
|
-
nt(
|
|
41882
|
+
nt(bn, vc, ga, Ps),
|
|
41869
41883
|
{ singleton: !0 }
|
|
41870
41884
|
), sq = Ve(
|
|
41871
41885
|
([{ didMount: e }, { scrollTo: t }, { listState: r }]) => {
|
|
@@ -41990,7 +42004,7 @@ const tq = (e, t) => typeof e == "function" ? V1(e(t)) : t && V1(e), rq = Ve(
|
|
|
41990
42004
|
restoreStateFrom: u
|
|
41991
42005
|
};
|
|
41992
42006
|
},
|
|
41993
|
-
nt(
|
|
42007
|
+
nt(bn, Kt, vc, Ps, xm)
|
|
41994
42008
|
);
|
|
41995
42009
|
function oq(e) {
|
|
41996
42010
|
return { align: "start", index: 0, offset: e.scrollTop };
|
|
@@ -42047,7 +42061,7 @@ const cq = kx(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
42047
42061
|
Et(zt(a, !1), e, y),
|
|
42048
42062
|
he(([v, w, S]) => !v && !S && w !== 0),
|
|
42049
42063
|
re(([v, w]) => w),
|
|
42050
|
-
|
|
42064
|
+
_n(1)
|
|
42051
42065
|
),
|
|
42052
42066
|
E
|
|
42053
42067
|
), ce(
|
|
@@ -42088,7 +42102,7 @@ const cq = kx(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
42088
42102
|
}
|
|
42089
42103
|
), { deviation: e };
|
|
42090
42104
|
},
|
|
42091
|
-
nt(Kt, Ec, ga,
|
|
42105
|
+
nt(Kt, Ec, ga, bn, Ss, mm)
|
|
42092
42106
|
), uq = Ve(
|
|
42093
42107
|
([
|
|
42094
42108
|
e,
|
|
@@ -42201,7 +42215,7 @@ const cq = kx(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
42201
42215
|
};
|
|
42202
42216
|
},
|
|
42203
42217
|
nt(
|
|
42204
|
-
|
|
42218
|
+
bn,
|
|
42205
42219
|
vc,
|
|
42206
42220
|
Kt,
|
|
42207
42221
|
aq,
|
|
@@ -42922,7 +42936,7 @@ const Mq = /* @__PURE__ */ Ve(
|
|
|
42922
42936
|
startIndex: K[0].index
|
|
42923
42937
|
})),
|
|
42924
42938
|
et(dx),
|
|
42925
|
-
|
|
42939
|
+
_n(0)
|
|
42926
42940
|
)
|
|
42927
42941
|
);
|
|
42928
42942
|
ce(de, m.scrollSeekRangeChanged), ce(
|
|
@@ -43283,7 +43297,7 @@ const rY = () => {
|
|
|
43283
43297
|
}, nY = (e) => {
|
|
43284
43298
|
const t = Re(), { marketPrice: r } = ne(), n = Y((a) => a.state.typedSrcAmount);
|
|
43285
43299
|
return ee(() => {
|
|
43286
|
-
const { isError: a, value: o } =
|
|
43300
|
+
const { isError: a, value: o } = gw(e);
|
|
43287
43301
|
if (!(!a || H(n || "0").isZero() || !r))
|
|
43288
43302
|
return {
|
|
43289
43303
|
type: qt.MIN_FILL_DELAY,
|
|
@@ -43311,7 +43325,7 @@ const rY = () => {
|
|
|
43311
43325
|
label: n("tradeIntervalTitle"),
|
|
43312
43326
|
tooltip: n("tradeIntervalTootlip")
|
|
43313
43327
|
};
|
|
43314
|
-
},
|
|
43328
|
+
}, yn = () => {
|
|
43315
43329
|
const { srcToken: e } = ne(), t = Re(), r = Y((a) => a.state.typedSrcAmount), s = Y((a) => a.state.acceptedSrcAmount) || r;
|
|
43316
43330
|
return {
|
|
43317
43331
|
amountWei: Y2(e == null ? void 0 : e.decimals, s),
|
|
@@ -43328,14 +43342,14 @@ const rY = () => {
|
|
|
43328
43342
|
value: 1,
|
|
43329
43343
|
message: o("minChunksError", { minChunks: "1" })
|
|
43330
43344
|
};
|
|
43331
|
-
const { isError: c } =
|
|
43345
|
+
const { isError: c } = ww(e, t, r);
|
|
43332
43346
|
if (c)
|
|
43333
43347
|
return {
|
|
43334
43348
|
type: qt.MAX_CHUNKS,
|
|
43335
43349
|
value: t,
|
|
43336
43350
|
message: o("maxChunksError", { maxChunks: `${t}` })
|
|
43337
43351
|
};
|
|
43338
|
-
const { isError: l, value: u } =
|
|
43352
|
+
const { isError: l, value: u } = xw(i || "", n || "", a || 0);
|
|
43339
43353
|
if (l)
|
|
43340
43354
|
return {
|
|
43341
43355
|
type: qt.MIN_TRADE_SIZE,
|
|
@@ -43343,16 +43357,16 @@ const rY = () => {
|
|
|
43343
43357
|
message: o("minTradeSizeError", { minTradeSize: `${u}` })
|
|
43344
43358
|
};
|
|
43345
43359
|
}, [e, t, r, i, n, a, o, s]);
|
|
43346
|
-
},
|
|
43347
|
-
const { srcToken: e, srcUsd1Token: t, module: r, minChunkSizeUsd: n } = ne(), s = Y((g) => g.state.typedChunks), a = xa().fillDelay, o = Y((g) => g.updateState), { amountWei: i, amountUI: c } =
|
|
43348
|
-
() =>
|
|
43360
|
+
}, dn = () => {
|
|
43361
|
+
const { srcToken: e, srcUsd1Token: t, module: r, minChunkSizeUsd: n } = ne(), s = Y((g) => g.state.typedChunks), a = xa().fillDelay, o = Y((g) => g.updateState), { amountWei: i, amountUI: c } = yn(), l = ee(
|
|
43362
|
+
() => lw(a, c || "", t || "", n || 0),
|
|
43349
43363
|
[c, t, n, a]
|
|
43350
|
-
), u = ee(() =>
|
|
43364
|
+
), u = ee(() => cw(l, r, s), [l, s, r]), d = Fe(
|
|
43351
43365
|
(g) => o({
|
|
43352
43366
|
typedChunks: g
|
|
43353
43367
|
}),
|
|
43354
43368
|
[o]
|
|
43355
|
-
), f = ee(() =>
|
|
43369
|
+
), f = ee(() => dw(i || "", u), [i, u]), m = Nr(e == null ? void 0 : e.decimals, f), y = ee(() => t ? H(m || "0").times(t || 0).toString() : "0", [m, t]);
|
|
43356
43370
|
return {
|
|
43357
43371
|
totalTrades: u,
|
|
43358
43372
|
maxTrades: l,
|
|
@@ -43363,7 +43377,7 @@ const rY = () => {
|
|
|
43363
43377
|
error: sY(u, l)
|
|
43364
43378
|
};
|
|
43365
43379
|
}, IK = () => {
|
|
43366
|
-
const { srcToken: e, dstToken: t } = ne(), r = Re(), { onChange: n, totalTrades: s, amountPerTradeUsd: a, amountPerTradeUI: o, error: i, maxTrades: c, amountPerTradeWei: l } =
|
|
43380
|
+
const { srcToken: e, dstToken: t } = ne(), r = Re(), { onChange: n, totalTrades: s, amountPerTradeUsd: a, amountPerTradeUI: o, error: i, maxTrades: c, amountPerTradeWei: l } = dn(), u = He({ value: o }), d = He({ value: a });
|
|
43367
43381
|
return {
|
|
43368
43382
|
error: i,
|
|
43369
43383
|
maxTrades: c,
|
|
@@ -43380,7 +43394,7 @@ const rY = () => {
|
|
|
43380
43394
|
}, aY = (e) => {
|
|
43381
43395
|
const { module: t, marketPrice: r } = ne(), n = Re();
|
|
43382
43396
|
return ee(() => {
|
|
43383
|
-
const s =
|
|
43397
|
+
const s = bw(t, e), a = yw(e);
|
|
43384
43398
|
if (r) {
|
|
43385
43399
|
if (s.isError)
|
|
43386
43400
|
return {
|
|
@@ -43397,7 +43411,7 @@ const rY = () => {
|
|
|
43397
43411
|
}
|
|
43398
43412
|
}, [e, n, t, r]);
|
|
43399
43413
|
}, km = () => {
|
|
43400
|
-
const { module: e } = ne(), t = Y((i) => i.state.typedDuration), r = Y((i) => i.updateState), n =
|
|
43414
|
+
const { module: e } = ne(), t = Y((i) => i.state.typedDuration), r = Y((i) => i.updateState), n = dn().totalTrades, s = xa().fillDelay, a = ee(() => iw(e, n, s, t), [n, s, t, e]), o = aY(a);
|
|
43401
43415
|
return {
|
|
43402
43416
|
duration: a,
|
|
43403
43417
|
setDuration: Fe((i) => r({ typedDuration: i }), [r]),
|
|
@@ -43511,22 +43525,22 @@ const rY = () => {
|
|
|
43511
43525
|
};
|
|
43512
43526
|
}, oY = () => {
|
|
43513
43527
|
const { module: e } = ne();
|
|
43514
|
-
return ee(() => e === ke.STOP_LOSS ?
|
|
43528
|
+
return ee(() => e === ke.STOP_LOSS ? Z5 : X5, [e]);
|
|
43515
43529
|
}, Tm = () => {
|
|
43516
43530
|
const { module: e } = ne(), t = Y((r) => r.state.isMarketOrder);
|
|
43517
|
-
return ee(() => e !== ke.STOP_LOSS && e !== ke.TAKE_PROFIT || t ? void 0 : e === ke.STOP_LOSS ?
|
|
43531
|
+
return ee(() => e !== ke.STOP_LOSS && e !== ke.TAKE_PROFIT || t ? void 0 : e === ke.STOP_LOSS ? Q5 : J5, [e, t]);
|
|
43518
43532
|
}, iY = (e = "") => {
|
|
43519
43533
|
const { module: t, marketPrice: r } = ne(), n = Re(), s = Y((a) => a.state.typedSrcAmount);
|
|
43520
43534
|
return ee(() => {
|
|
43521
43535
|
if (H(s || "0").isZero() || !r || t !== ke.STOP_LOSS && t !== ke.TAKE_PROFIT) return;
|
|
43522
|
-
const a =
|
|
43536
|
+
const a = pw(r || "", e || "", t);
|
|
43523
43537
|
if (a != null && a.isError)
|
|
43524
43538
|
return {
|
|
43525
43539
|
type: qt.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE,
|
|
43526
43540
|
value: a.value,
|
|
43527
43541
|
message: n("StopLossTriggerPriceError") || ""
|
|
43528
43542
|
};
|
|
43529
|
-
const o =
|
|
43543
|
+
const o = fw(r || "", e || "", t);
|
|
43530
43544
|
if (o != null && o.isError)
|
|
43531
43545
|
return {
|
|
43532
43546
|
type: qt.TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE,
|
|
@@ -43541,7 +43555,7 @@ const rY = () => {
|
|
|
43541
43555
|
};
|
|
43542
43556
|
}, [r, e, t, n, s]);
|
|
43543
43557
|
}, cY = (e) => {
|
|
43544
|
-
const { srcToken: t, dstToken: r, module: n } = ne(), s =
|
|
43558
|
+
const { srcToken: t, dstToken: r, module: n } = ne(), s = dn().amountPerTradeWei, a = Y((i) => i.state.isMarketOrder), o = ee(() => ow(n, s, e, (t == null ? void 0 : t.decimals) || 0), [e, s, a, t == null ? void 0 : t.decimals, n]);
|
|
43545
43559
|
return {
|
|
43546
43560
|
amountWei: o,
|
|
43547
43561
|
amountUI: Nr((r == null ? void 0 : r.decimals) || 0, o)
|
|
@@ -43593,7 +43607,7 @@ const rY = () => {
|
|
|
43593
43607
|
const { module: t, marketPrice: r } = ne(), n = Re(), { amountWei: s } = wa(), a = Y((i) => i.state.isMarketOrder), o = Y((i) => i.state.typedSrcAmount);
|
|
43594
43608
|
return ee(() => {
|
|
43595
43609
|
if (H(o || "0").isZero() || !s || !r) return;
|
|
43596
|
-
const i =
|
|
43610
|
+
const i = mw(s, e, a, t), c = hw(s, e, a, t);
|
|
43597
43611
|
if (i != null && i.isError)
|
|
43598
43612
|
return {
|
|
43599
43613
|
type: qt.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE,
|
|
@@ -43673,14 +43687,14 @@ const rY = () => {
|
|
|
43673
43687
|
const { module: e, marketPrice: t } = ne(), r = kc().amountWei, n = wa().amountWei, s = Y((a) => a.state.isMarketOrder);
|
|
43674
43688
|
return e === ke.LIMIT || !s ? r || "" : e === ke.STOP_LOSS || e === ke.TAKE_PROFIT ? n || "" : t || "";
|
|
43675
43689
|
}, Cc = () => {
|
|
43676
|
-
const { srcToken: e, dstToken: t } = ne(), r = Mx(), n =
|
|
43690
|
+
const { srcToken: e, dstToken: t } = ne(), r = Mx(), n = yn().amountWei, s = ee(() => sw(n || "", r, (e == null ? void 0 : e.decimals) || 0), [n, r, e == null ? void 0 : e.decimals]);
|
|
43677
43691
|
return {
|
|
43678
43692
|
amountWei: s,
|
|
43679
43693
|
amountUI: Nr(t == null ? void 0 : t.decimals, s)
|
|
43680
43694
|
};
|
|
43681
43695
|
}, Am = () => {
|
|
43682
|
-
const { srcToken: e, dstToken: t, dstUsd1Token: r } = ne(), n = Mx(), s =
|
|
43683
|
-
() =>
|
|
43696
|
+
const { srcToken: e, dstToken: t, dstUsd1Token: r } = ne(), n = Mx(), s = dn().amountPerTradeWei, a = Y((c) => c.state.isMarketOrder), o = ee(
|
|
43697
|
+
() => aw(s, n, !!a, (e == null ? void 0 : e.decimals) || 0),
|
|
43684
43698
|
[s, n, a, e == null ? void 0 : e.decimals]
|
|
43685
43699
|
), i = Nr(t == null ? void 0 : t.decimals, o);
|
|
43686
43700
|
return {
|
|
@@ -43689,7 +43703,7 @@ const rY = () => {
|
|
|
43689
43703
|
usd: ca(i, r)
|
|
43690
43704
|
};
|
|
43691
43705
|
}, Rx = () => {
|
|
43692
|
-
const { srcBalance: e, chainId: t } = ne(), r = Re(), n =
|
|
43706
|
+
const { srcBalance: e, chainId: t } = ne(), r = Re(), n = yn().amountWei;
|
|
43693
43707
|
return ee(() => {
|
|
43694
43708
|
if (e && H(n).gt(e))
|
|
43695
43709
|
return {
|
|
@@ -43700,7 +43714,7 @@ const rY = () => {
|
|
|
43700
43714
|
}, [e, n, r, t]);
|
|
43701
43715
|
};
|
|
43702
43716
|
function dY() {
|
|
43703
|
-
const { marketPrice: e, marketPriceLoading: t } = ne(), r = Y((u) => u.state.typedSrcAmount), n = Y((u) => u.state.swapExecution.status), s = Rx(), { error: a } = wa(), { error: o } = kc(), { error: i } =
|
|
43717
|
+
const { marketPrice: e, marketPriceLoading: t } = ne(), r = Y((u) => u.state.typedSrcAmount), n = Y((u) => u.state.swapExecution.status), s = Rx(), { error: a } = wa(), { error: o } = kc(), { error: i } = dn(), { error: c } = xa(), { error: l } = km();
|
|
43704
43718
|
return ee(() => {
|
|
43705
43719
|
const u = Xl("ignore-errors");
|
|
43706
43720
|
if (n !== gt.LOADING && !(H(e || 0).isZero() || H(r || 0).isZero() || t || u))
|
|
@@ -43757,9 +43771,9 @@ const Nx = (e, t) => {
|
|
|
43757
43771
|
};
|
|
43758
43772
|
}, Sm = () => {
|
|
43759
43773
|
const e = Y((r) => r.state.currentTime), t = km().duration;
|
|
43760
|
-
return ee(() =>
|
|
43774
|
+
return ee(() => uw(e, t), [e, t]);
|
|
43761
43775
|
}, pY = () => {
|
|
43762
|
-
const { srcUsd1Token: e, dstUsd1Token: t } = ne(), r =
|
|
43776
|
+
const { srcUsd1Token: e, dstUsd1Token: t } = ne(), r = yn().amountUI, n = Cc().amountUI, s = ca(r, e), a = ca(n, t);
|
|
43763
43777
|
return { srcAmountUsd: s, dstAmountUsd: a };
|
|
43764
43778
|
}, fY = () => {
|
|
43765
43779
|
const { fees: e, dstUsd1Token: t } = ne(), { amountUI: r } = Cc(), n = ee(() => !e || !r ? "" : H(r).multipliedBy(e).dividedBy(100).toFixed(), [r, e]);
|
|
@@ -43769,7 +43783,7 @@ const Nx = (e, t) => {
|
|
|
43769
43783
|
usd: ca(n, t)
|
|
43770
43784
|
};
|
|
43771
43785
|
}, mY = () => {
|
|
43772
|
-
const { srcToken: e, dstToken: t, account: r, chainId: n, slippage: s, config: a } = ne(), { amountWei: o } =
|
|
43786
|
+
const { srcToken: e, dstToken: t, account: r, chainId: n, slippage: s, config: a } = ne(), { amountWei: o } = yn(), { amountWei: i } = kc(), { amountPerTradeWei: c, totalTrades: l } = dn(), u = Sm(), { amountWei: d } = Am(), { amountWei: f } = wa(), { milliseconds: m } = xa();
|
|
43773
43787
|
return ee(() => {
|
|
43774
43788
|
var y;
|
|
43775
43789
|
return {
|
|
@@ -43784,7 +43798,7 @@ const Nx = (e, t) => {
|
|
|
43784
43798
|
tradeInterval: m,
|
|
43785
43799
|
triggerPricePerTrade: f,
|
|
43786
43800
|
maker: r,
|
|
43787
|
-
rePermitData:
|
|
43801
|
+
rePermitData: Ew({
|
|
43788
43802
|
chainId: n,
|
|
43789
43803
|
srcToken: ho((e == null ? void 0 : e.address) || "") ? ((y = bo(n)) == null ? void 0 : y.wToken.address) || "" : (e == null ? void 0 : e.address) || "",
|
|
43790
43804
|
dstToken: (t == null ? void 0 : t.address) || "",
|
|
@@ -43820,11 +43834,11 @@ const Nx = (e, t) => {
|
|
|
43820
43834
|
amountPerTradeUI: o,
|
|
43821
43835
|
amountPerTradeUsd: i,
|
|
43822
43836
|
totalTrades: c
|
|
43823
|
-
} =
|
|
43837
|
+
} = dn(), { amountUI: l, usd: u } = wa(), d = Sm(), { amountUI: f, usd: m } = kc(), {
|
|
43824
43838
|
amount: y,
|
|
43825
43839
|
percent: g,
|
|
43826
43840
|
usd: E
|
|
43827
|
-
} = fY(), { milliseconds: v } = xa(), { amountUI: w } = Cc(), { srcAmountUsd: S, dstAmountUsd: C } = pY(), O =
|
|
43841
|
+
} = fY(), { milliseconds: v } = xa(), { amountUI: w } = Cc(), { srcAmountUsd: S, dstAmountUsd: C } = pY(), O = yn().amountUI, R = Y((x) => x.state.isMarketOrder), T = Q2({
|
|
43828
43842
|
srcToken: e,
|
|
43829
43843
|
dstToken: t,
|
|
43830
43844
|
account: r,
|
|
@@ -43869,7 +43883,7 @@ const Nx = (e, t) => {
|
|
|
43869
43883
|
`${e || "-"} ${t || ""}`,
|
|
43870
43884
|
/* @__PURE__ */ _(Ee.USD, { value: n })
|
|
43871
43885
|
] }), $x = () => {
|
|
43872
|
-
const e = Re(), t = Y((a) => a.state.isMarketOrder), r = Y((a) => a.state.swapExecution.status), { totalTrades: n } =
|
|
43886
|
+
const e = Re(), t = Y((a) => a.state.isMarketOrder), r = Y((a) => a.state.swapExecution.status), { totalTrades: n } = dn(), s = gY(t, n);
|
|
43873
43887
|
return r === gt.SUCCESS ? e("createOrderActionSuccess", { name: s }) : e("createOrderAction", { name: s });
|
|
43874
43888
|
}, wY = () => {
|
|
43875
43889
|
const e = Y((y) => y.state.swapExecution.srcToken), t = Re(), { step: r, wrapTxHash: n, approveTxHash: s } = Y(
|
|
@@ -43955,7 +43969,7 @@ const kY = () => {
|
|
|
43955
43969
|
usd: o.triggerPricePerTrade.usd
|
|
43956
43970
|
}
|
|
43957
43971
|
),
|
|
43958
|
-
/* @__PURE__ */ _(
|
|
43972
|
+
o.limitPrice.value ? /* @__PURE__ */ _(
|
|
43959
43973
|
xY,
|
|
43960
43974
|
{
|
|
43961
43975
|
price: o.limitPrice.value,
|
|
@@ -43963,7 +43977,7 @@ const kY = () => {
|
|
|
43963
43977
|
label: o.limitPrice.label,
|
|
43964
43978
|
usd: o.limitPrice.usd
|
|
43965
43979
|
}
|
|
43966
|
-
),
|
|
43980
|
+
) : null,
|
|
43967
43981
|
/* @__PURE__ */ _(
|
|
43968
43982
|
Ee.MinDestAmount,
|
|
43969
43983
|
{
|
|
@@ -44019,7 +44033,7 @@ const kY = () => {
|
|
|
44019
44033
|
}, CY = (e) => {
|
|
44020
44034
|
const { status: t, stepIndex: r, totalSteps: n, parsedError: s } = Y(
|
|
44021
44035
|
(w) => w.state.swapExecution
|
|
44022
|
-
), { components: a } = ne(), o = a.Spinner, i = a.SuccessIcon, c = a.ErrorIcon, l = a.TokenLogo, { srcToken: u, dstToken: d } = ne(), f =
|
|
44036
|
+
), { components: a } = ne(), o = a.Spinner, i = a.SuccessIcon, c = a.ErrorIcon, l = a.TokenLogo, { srcToken: u, dstToken: d } = ne(), f = yn().amountUI, m = Cc().amountUI, y = He({ value: f, decimalScale: 2 }), g = He({ value: m, decimalScale: 2 }), E = ee(() => ({
|
|
44023
44037
|
symbol: u == null ? void 0 : u.symbol,
|
|
44024
44038
|
logoUrl: u == null ? void 0 : u.logoUrl
|
|
44025
44039
|
}), [u]), v = ee(() => ({
|
|
@@ -44073,7 +44087,7 @@ const kY = () => {
|
|
|
44073
44087
|
callbacks: s,
|
|
44074
44088
|
chainId: a
|
|
44075
44089
|
} = ne(), o = (c = xc()) == null ? void 0 : c.wToken, i = cm();
|
|
44076
|
-
return
|
|
44090
|
+
return Vn({
|
|
44077
44091
|
mutationFn: async ({
|
|
44078
44092
|
onHash: l,
|
|
44079
44093
|
srcAmountWei: u
|
|
@@ -44111,7 +44125,7 @@ const kY = () => {
|
|
|
44111
44125
|
});
|
|
44112
44126
|
}, SY = () => {
|
|
44113
44127
|
const { account: e, walletClient: t, chainId: r, callbacks: n } = ne(), s = mY().rePermitData, a = KV();
|
|
44114
|
-
return
|
|
44128
|
+
return Vn({
|
|
44115
44129
|
mutationFn: async () => {
|
|
44116
44130
|
var y, g, E, v;
|
|
44117
44131
|
if (!e)
|
|
@@ -44145,13 +44159,13 @@ const kY = () => {
|
|
|
44145
44159
|
v: V(d.v || 0),
|
|
44146
44160
|
r: d.r,
|
|
44147
44161
|
s: d.s
|
|
44148
|
-
}, m = await
|
|
44162
|
+
}, m = await Mw(o, f);
|
|
44149
44163
|
return (v = n == null ? void 0 : n.onOrderCreated) == null || v.call(n, m), a(m), m;
|
|
44150
44164
|
}
|
|
44151
44165
|
});
|
|
44152
44166
|
}, Hx = () => {
|
|
44153
44167
|
const { account: e, publicClient: t, config: r } = ne();
|
|
44154
|
-
return
|
|
44168
|
+
return Vn({
|
|
44155
44169
|
mutationFn: async ({
|
|
44156
44170
|
tokenAddress: n,
|
|
44157
44171
|
srcAmountWei: s
|
|
@@ -44176,7 +44190,7 @@ const kY = () => {
|
|
|
44176
44190
|
});
|
|
44177
44191
|
}, PY = () => {
|
|
44178
44192
|
const { account: e, walletClient: t, overrides: r, config: n, chainId: s, callbacks: a } = ne(), o = cm(), { mutateAsync: i } = Hx();
|
|
44179
|
-
return
|
|
44193
|
+
return Vn({
|
|
44180
44194
|
onError: (c) => {
|
|
44181
44195
|
bt.onApproveError(c);
|
|
44182
44196
|
},
|
|
@@ -44238,8 +44252,8 @@ const kY = () => {
|
|
|
44238
44252
|
}
|
|
44239
44253
|
});
|
|
44240
44254
|
}, IY = () => {
|
|
44241
|
-
const { account: e, chainId: t, srcToken: r, dstToken: n, module: s, slippage: a } = ne(), o = wa(), i =
|
|
44242
|
-
return
|
|
44255
|
+
const { account: e, chainId: t, srcToken: r, dstToken: n, module: s, slippage: a } = ne(), o = wa(), i = yn().amountWei, c = dn().amountPerTradeWei, l = Sm(), u = dn().totalTrades, d = xa().fillDelay, f = Am().amountWei, m = Y((y) => y.state.isMarketOrder);
|
|
44256
|
+
return Vn({
|
|
44243
44257
|
mutationFn: async () => {
|
|
44244
44258
|
bt.onRequestOrder({
|
|
44245
44259
|
account: e,
|
|
@@ -44251,10 +44265,11 @@ const kY = () => {
|
|
|
44251
44265
|
srcChunkAmount: c,
|
|
44252
44266
|
triggerPricePerTrade: o.pricePerChunkWei,
|
|
44253
44267
|
deadline: l,
|
|
44254
|
-
fillDelay:
|
|
44255
|
-
minDstAmountOutPerTrade:
|
|
44268
|
+
fillDelay: d.unit * d.value,
|
|
44269
|
+
minDstAmountOutPerTrade: f,
|
|
44256
44270
|
slippage: a,
|
|
44257
|
-
isMarketOrder:
|
|
44271
|
+
isMarketOrder: m || !1,
|
|
44272
|
+
chunksAmount: u
|
|
44258
44273
|
});
|
|
44259
44274
|
}
|
|
44260
44275
|
});
|
|
@@ -44267,8 +44282,8 @@ function BY(e) {
|
|
|
44267
44282
|
};
|
|
44268
44283
|
}
|
|
44269
44284
|
const FY = () => {
|
|
44270
|
-
const { srcToken: e, dstToken: t, chainId: r, callbacks: n } = ne(), s = PY().mutateAsync, a = AY().mutateAsync, o = SY().mutateAsync, { mutateAsync: i } = Hx(), c = Y((d) => d.updateSwapExecution), { amountWei: l } =
|
|
44271
|
-
return
|
|
44285
|
+
const { srcToken: e, dstToken: t, chainId: r, callbacks: n } = ne(), s = PY().mutateAsync, a = AY().mutateAsync, o = SY().mutateAsync, { mutateAsync: i } = Hx(), c = Y((d) => d.updateSwapExecution), { amountWei: l } = yn(), u = IY().mutate;
|
|
44286
|
+
return Vn({
|
|
44272
44287
|
mutationFn: async () => {
|
|
44273
44288
|
var f, m;
|
|
44274
44289
|
const d = ho((e == null ? void 0 : e.address) || " ");
|
|
@@ -44322,7 +44337,7 @@ const FY = () => {
|
|
|
44322
44337
|
}
|
|
44323
44338
|
});
|
|
44324
44339
|
}, LK = () => {
|
|
44325
|
-
const { marketPrice: e, srcToken: t, dstToken: r } = ne(), n = FY(), s = Y((f) => f.updateState), { amountUI: a } =
|
|
44340
|
+
const { marketPrice: e, srcToken: t, dstToken: r } = ne(), n = FY(), s = Y((f) => f.updateState), { amountUI: a } = yn(), o = Y((f) => f.resetState), i = Y((f) => f.state.swapExecution), c = Fe(() => {
|
|
44326
44341
|
(i == null ? void 0 : i.status) === gt.SUCCESS && (s({ typedSrcAmount: "" }), setTimeout(() => {
|
|
44327
44342
|
o();
|
|
44328
44343
|
}, 1e3));
|
|
@@ -44332,7 +44347,7 @@ const FY = () => {
|
|
|
44332
44347
|
acceptedMarketPrice: void 0,
|
|
44333
44348
|
swapExecution: { srcToken: t, dstToken: r }
|
|
44334
44349
|
});
|
|
44335
|
-
}, [s, t, r]), u =
|
|
44350
|
+
}, [s, t, r]), u = Vn({
|
|
44336
44351
|
mutationFn: async () => (s({
|
|
44337
44352
|
acceptedSrcAmount: a,
|
|
44338
44353
|
acceptedMarketPrice: e
|
|
@@ -44367,13 +44382,13 @@ const FY = () => {
|
|
|
44367
44382
|
loading: u
|
|
44368
44383
|
}), [m, f, u]);
|
|
44369
44384
|
};
|
|
44370
|
-
|
|
44385
|
+
Sw(Kw.version);
|
|
44371
44386
|
const HK = {
|
|
44372
44387
|
SubmitOrderPanel: CY,
|
|
44373
44388
|
Orders: rY
|
|
44374
44389
|
};
|
|
44375
44390
|
export {
|
|
44376
|
-
|
|
44391
|
+
n8 as $,
|
|
44377
44392
|
zK as A,
|
|
44378
44393
|
L as B,
|
|
44379
44394
|
HK as C,
|
|
@@ -44394,95 +44409,96 @@ export {
|
|
|
44394
44409
|
XY as R,
|
|
44395
44410
|
CK as S,
|
|
44396
44411
|
QY as T,
|
|
44397
|
-
|
|
44412
|
+
t8 as U,
|
|
44398
44413
|
Rb as V,
|
|
44399
44414
|
JY as W,
|
|
44400
44415
|
Fl as X,
|
|
44401
44416
|
Nb as Y,
|
|
44402
44417
|
eK as Z,
|
|
44403
|
-
|
|
44418
|
+
r8 as _,
|
|
44404
44419
|
BR as a,
|
|
44405
|
-
|
|
44406
|
-
|
|
44407
|
-
|
|
44408
|
-
|
|
44409
|
-
|
|
44410
|
-
|
|
44411
|
-
|
|
44412
|
-
|
|
44413
|
-
|
|
44414
|
-
|
|
44415
|
-
|
|
44416
|
-
|
|
44417
|
-
|
|
44418
|
-
|
|
44419
|
-
|
|
44420
|
-
|
|
44421
|
-
|
|
44422
|
-
|
|
44423
|
-
|
|
44424
|
-
|
|
44425
|
-
|
|
44426
|
-
|
|
44427
|
-
|
|
44428
|
-
|
|
44429
|
-
|
|
44430
|
-
|
|
44431
|
-
|
|
44432
|
-
|
|
44433
|
-
|
|
44434
|
-
|
|
44435
|
-
|
|
44436
|
-
|
|
44437
|
-
|
|
44438
|
-
|
|
44439
|
-
|
|
44440
|
-
|
|
44441
|
-
|
|
44442
|
-
|
|
44443
|
-
|
|
44444
|
-
|
|
44445
|
-
|
|
44446
|
-
|
|
44447
|
-
|
|
44448
|
-
|
|
44449
|
-
|
|
44450
|
-
|
|
44420
|
+
KY as a$,
|
|
44421
|
+
zb as a0,
|
|
44422
|
+
tK as a1,
|
|
44423
|
+
Lb as a2,
|
|
44424
|
+
$b as a3,
|
|
44425
|
+
ao as a4,
|
|
44426
|
+
ho as a5,
|
|
44427
|
+
eu as a6,
|
|
44428
|
+
Ht as a7,
|
|
44429
|
+
bt as a8,
|
|
44430
|
+
Sw as a9,
|
|
44431
|
+
W5 as aA,
|
|
44432
|
+
LY as aB,
|
|
44433
|
+
Gt as aC,
|
|
44434
|
+
q5 as aD,
|
|
44435
|
+
Xd as aE,
|
|
44436
|
+
$Y as aF,
|
|
44437
|
+
HY as aG,
|
|
44438
|
+
Y5 as aH,
|
|
44439
|
+
K5 as aI,
|
|
44440
|
+
xf as aJ,
|
|
44441
|
+
GY as aK,
|
|
44442
|
+
jY as aL,
|
|
44443
|
+
VY as aM,
|
|
44444
|
+
WY as aN,
|
|
44445
|
+
qY as aO,
|
|
44446
|
+
wf as aP,
|
|
44447
|
+
Z5 as aQ,
|
|
44448
|
+
X5 as aR,
|
|
44449
|
+
Q5 as aS,
|
|
44450
|
+
J5 as aT,
|
|
44451
|
+
YY as aU,
|
|
44452
|
+
sw as aV,
|
|
44453
|
+
aw as aW,
|
|
44454
|
+
ow as aX,
|
|
44455
|
+
iw as aY,
|
|
44456
|
+
cw as aZ,
|
|
44457
|
+
lw as a_,
|
|
44458
|
+
bo as aa,
|
|
44459
|
+
gf as ab,
|
|
44460
|
+
ys as ac,
|
|
44461
|
+
mb as ad,
|
|
44462
|
+
Xl as ae,
|
|
44463
|
+
L5 as af,
|
|
44464
|
+
$5 as ag,
|
|
44465
|
+
H5 as ah,
|
|
44451
44466
|
Rt as ai,
|
|
44452
|
-
|
|
44453
|
-
|
|
44454
|
-
|
|
44455
|
-
|
|
44456
|
-
|
|
44457
|
-
|
|
44458
|
-
|
|
44459
|
-
|
|
44460
|
-
|
|
44461
|
-
|
|
44462
|
-
|
|
44463
|
-
|
|
44464
|
-
|
|
44465
|
-
|
|
44466
|
-
|
|
44467
|
-
|
|
44468
|
-
|
|
44467
|
+
qw as aj,
|
|
44468
|
+
wb as ak,
|
|
44469
|
+
B5 as al,
|
|
44470
|
+
MY as am,
|
|
44471
|
+
F5 as an,
|
|
44472
|
+
U5 as ao,
|
|
44473
|
+
er as ap,
|
|
44474
|
+
RY as aq,
|
|
44475
|
+
hb as ar,
|
|
44476
|
+
NY as as,
|
|
44477
|
+
zY as at,
|
|
44478
|
+
Zd as au,
|
|
44479
|
+
ni as av,
|
|
44480
|
+
zm as aw,
|
|
44481
|
+
G5 as ax,
|
|
44482
|
+
j5 as ay,
|
|
44483
|
+
V5 as az,
|
|
44469
44484
|
Fr as b,
|
|
44470
|
-
|
|
44471
|
-
|
|
44472
|
-
|
|
44473
|
-
|
|
44474
|
-
|
|
44475
|
-
|
|
44476
|
-
|
|
44477
|
-
|
|
44478
|
-
|
|
44479
|
-
|
|
44480
|
-
|
|
44481
|
-
|
|
44482
|
-
|
|
44483
|
-
|
|
44484
|
-
|
|
44485
|
-
|
|
44485
|
+
uw as b0,
|
|
44486
|
+
yb as b1,
|
|
44487
|
+
dw as b2,
|
|
44488
|
+
ZY as b3,
|
|
44489
|
+
pw as b4,
|
|
44490
|
+
fw as b5,
|
|
44491
|
+
mw as b6,
|
|
44492
|
+
hw as b7,
|
|
44493
|
+
bw as b8,
|
|
44494
|
+
yw as b9,
|
|
44495
|
+
gw as ba,
|
|
44496
|
+
xw as bb,
|
|
44497
|
+
ww as bc,
|
|
44498
|
+
gb as bd,
|
|
44499
|
+
vw as be,
|
|
44500
|
+
Ew as bf,
|
|
44501
|
+
Mw as bg,
|
|
44486
44502
|
ku as c,
|
|
44487
44503
|
jA as d,
|
|
44488
44504
|
pa as e,
|