@upcoming/multichain-widget 0.8.1 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-Czdlk44k.mjs → add-kZYzXtSt.mjs} +1 -1
- package/dist/{all-wallets-gIZHeXgf.mjs → all-wallets-Cjc-8Yil.mjs} +1 -1
- package/dist/{app-store-DpKy535T.mjs → app-store-Bz0ucjqU.mjs} +1 -1
- package/dist/{apple-CO6go2hO.mjs → apple-CQMyToA9.mjs} +1 -1
- package/dist/{arrow-bottom-CnhF_ieH.mjs → arrow-bottom-B-ANc0N6.mjs} +1 -1
- package/dist/{arrow-bottom-circle-DQeidYMb.mjs → arrow-bottom-circle-DPLFKFIb.mjs} +1 -1
- package/dist/{arrow-left-DNdvt2aq.mjs → arrow-left-Dm_JJduF.mjs} +1 -1
- package/dist/{arrow-right-BZhxRW_G.mjs → arrow-right-DFRguNHt.mjs} +1 -1
- package/dist/{arrow-top-BfH0khqr.mjs → arrow-top-BL7J0fRh.mjs} +1 -1
- package/dist/{bank-B2zdtTVt.mjs → bank-Kwv7HCO5.mjs} +1 -1
- package/dist/{basic-Dut9MGsU.mjs → basic-DkCL_fUg.mjs} +3 -3
- package/dist/{browser-Dp1Etzah.mjs → browser-Dni3BTVK.mjs} +1 -1
- package/dist/{card-C13GkdKV.mjs → card-CJjfkOMC.mjs} +1 -1
- package/dist/{ccip-QTFnwPjO.mjs → ccip-BQkOxRli.mjs} +1 -1
- package/dist/{checkmark-Br76VN26.mjs → checkmark-DyrRRt7X.mjs} +1 -1
- package/dist/{checkmark-bold-DjzmyBPm.mjs → checkmark-bold-C9d_Xmgu.mjs} +1 -1
- package/dist/{chevron-bottom-B3YFvMO2.mjs → chevron-bottom-B-bAiCwG.mjs} +1 -1
- package/dist/{chevron-left-DEfbgCg2.mjs → chevron-left-DvzaJ4Q8.mjs} +1 -1
- package/dist/{chevron-right-CyXJ-_29.mjs → chevron-right-Cz-yfq5X.mjs} +1 -1
- package/dist/{chevron-top-nml_0qZe.mjs → chevron-top-CBiILuar.mjs} +1 -1
- package/dist/{chrome-store-BmikSrum.mjs → chrome-store-Dym1ikkO.mjs} +1 -1
- package/dist/{clock-BuuFNywz.mjs → clock-zaA9_tTl.mjs} +1 -1
- package/dist/{close-BJ207IX3.mjs → close-BONQ_jgr.mjs} +1 -1
- package/dist/{coinPlaceholder-DQS9VL1y.mjs → coinPlaceholder-D58oBuBC.mjs} +1 -1
- package/dist/{compass-CbWR3SP0.mjs → compass-K6BY06zn.mjs} +1 -1
- package/dist/{copy-YBeZwzqd.mjs → copy-CuDEDpY3.mjs} +1 -1
- package/dist/{core-CXb1pi-P.mjs → core-DdDdc5Dc.mjs} +3 -3
- package/dist/{cursor-CeWarRzf.mjs → cursor-CjvaCwo6.mjs} +1 -1
- package/dist/{cursor-transparent-CgHD3DXu.mjs → cursor-transparent-C83m81BF.mjs} +1 -1
- package/dist/{desktop-DE71Ydyt.mjs → desktop-DOCVI7bw.mjs} +1 -1
- package/dist/{disconnect-D7pon3LO.mjs → disconnect-DdG2pwsw.mjs} +1 -1
- package/dist/{discord-CgthUg_T.mjs → discord-BbCKjvR0.mjs} +1 -1
- package/dist/en_US-Y4ZOVFV4-D50Uc9Q8.mjs +4 -0
- package/dist/{etherscan-ft4TzDzo.mjs → etherscan-g-jJuWjt.mjs} +1 -1
- package/dist/{exclamation-triangle-hX47WlX-.mjs → exclamation-triangle-BkWOmF22.mjs} +1 -1
- package/dist/{extension-N1wu-RpJ.mjs → extension-DQvhklpA.mjs} +1 -1
- package/dist/{external-link-C3xQFHEo.mjs → external-link-DvskKtUq.mjs} +1 -1
- package/dist/{facebook-CxfJjOQZ.mjs → facebook-CXCPQkc2.mjs} +1 -1
- package/dist/{farcaster-BJfmvztf.mjs → farcaster-Cw8ska4M.mjs} +1 -1
- package/dist/{filters-DYcvm-Ac.mjs → filters-BGjCM3Sw.mjs} +1 -1
- package/dist/{github-DoGNBnbq.mjs → github-DtOQkxu-.mjs} +1 -1
- package/dist/{google-CXfufSJ3.mjs → google-DZUok6ma.mjs} +1 -1
- package/dist/{help-circle-rLoeJh5S.mjs → help-circle-B_ujvRJf.mjs} +1 -1
- package/dist/{id-xFn-6NNu.mjs → id-B8a5vgqJ.mjs} +1 -1
- package/dist/{image-Rf1Qsa03.mjs → image-CPqrSCL0.mjs} +1 -1
- package/dist/{index-BVqrbyHu.mjs → index-25S5eYIS.mjs} +180 -180
- package/dist/{index-oj1xMnbR.mjs → index-Bk_G722d.mjs} +1 -1
- package/dist/{index-D860hDQx.mjs → index-DJKfY9CX.mjs} +1 -1
- package/dist/{index-BZjDkIru.mjs → index-DnTu-5HZ.mjs} +1 -1
- package/dist/{index-BpNT1QaC.mjs → index-I7CdJO_0.mjs} +78 -78
- package/dist/{index.es-shl1UN42.mjs → index.es-DrZjaZNE.mjs} +3 -3
- package/dist/{info-D-g-qfaz.mjs → info-C6uj7OSV.mjs} +1 -1
- package/dist/{info-circle-W5BZUx9q.mjs → info-circle-C0swwkHM.mjs} +1 -1
- package/dist/{lightbulb-B3Xauvwl.mjs → lightbulb-GsA92zN_.mjs} +1 -1
- package/dist/{mail-CfwmlH0P.mjs → mail-SiumbgRO.mjs} +1 -1
- package/dist/{metamask-sdk-DcRqp-RI.mjs → metamask-sdk-D_W46s6j.mjs} +1 -1
- package/dist/{mobile-CvjDnbNY.mjs → mobile-C9Zi1xxz.mjs} +1 -1
- package/dist/{more-C7mCdq77.mjs → more-BZtt4JYx.mjs} +1 -1
- package/dist/multichain-widget.es.js +1 -1
- package/dist/multichain-widget.umd.js +1 -1
- package/dist/{network-placeholder-B-oL9LuU.mjs → network-placeholder-BJzCRbI-.mjs} +1 -1
- package/dist/{nftPlaceholder-lS_FxgvD.mjs → nftPlaceholder-DWo8oFGL.mjs} +1 -1
- package/dist/{off-B824GMzC.mjs → off-nsoQpBgE.mjs} +1 -1
- package/dist/{play-store-8acAweIs.mjs → play-store-BL12Ptb-.mjs} +1 -1
- package/dist/{plus-DSyV1Yct.mjs → plus-9WpUq8Ff.mjs} +1 -1
- package/dist/{qr-code-_W7JkqEk.mjs → qr-code-DAJFwCDw.mjs} +1 -1
- package/dist/{recycle-horizontal-CQjRTB6h.mjs → recycle-horizontal-Bmy8kGks.mjs} +1 -1
- package/dist/{refresh-B2SYQcKg.mjs → refresh-B2N7Tmp5.mjs} +1 -1
- package/dist/{reown-logo-4cwPZ0ie.mjs → reown-logo-D5JzIPaF.mjs} +1 -1
- package/dist/{search-4Yv9PeaY.mjs → search-Bktr0fIA.mjs} +1 -1
- package/dist/{secp256k1-Cw_6i4fl.mjs → secp256k1-CyYqkOe3.mjs} +1 -1
- package/dist/{send-CjpEd0xg.mjs → send-BEuPO2pA.mjs} +1 -1
- package/dist/{swapHorizontal-C45L8Jq-.mjs → swapHorizontal-5C6LCpDj.mjs} +1 -1
- package/dist/{swapHorizontalBold-Bc2IF-jF.mjs → swapHorizontalBold-C3wWxHWe.mjs} +1 -1
- package/dist/{swapHorizontalMedium-DhBNpvA1.mjs → swapHorizontalMedium-DF5yutlt.mjs} +1 -1
- package/dist/{swapHorizontalRoundedBold-Csc2RlSd.mjs → swapHorizontalRoundedBold-DJWPLQnV.mjs} +1 -1
- package/dist/{swapVertical-PDqmfhxQ.mjs → swapVertical-CrU-lkhg.mjs} +1 -1
- package/dist/{telegram-D1Rgc4tU.mjs → telegram-Dhr-lwkj.mjs} +1 -1
- package/dist/{three-dots-C26G8hr1.mjs → three-dots-C-Hwnx_B.mjs} +1 -1
- package/dist/{twitch-Dt6lKNv2.mjs → twitch-kcCl6_ji.mjs} +1 -1
- package/dist/{twitterIcon-DotJn-47.mjs → twitterIcon-xcQW-sbm.mjs} +1 -1
- package/dist/{verify-BKNiC4XT.mjs → verify-BuwZOoTJ.mjs} +1 -1
- package/dist/{verify-filled-V_e_9mEU.mjs → verify-filled-8G958AUz.mjs} +1 -1
- package/dist/{w3m-modal-FG0qus_N.mjs → w3m-modal-D9qciXge.mjs} +2 -2
- package/dist/{wallet-B61sO2mB.mjs → wallet-CisYbiuK.mjs} +1 -1
- package/dist/{wallet-placeholder-DGM76ff2.mjs → wallet-placeholder-DgT22Rk0.mjs} +1 -1
- package/dist/{walletconnect-3oyd-wtt.mjs → walletconnect-DA6v18t0.mjs} +1 -1
- package/dist/{warning-circle-C4v1YCqY.mjs → warning-circle-HDIk8EWW.mjs} +1 -1
- package/dist/{x-CtfOnl9J.mjs → x-CAqHZoKL.mjs} +1 -1
- package/package.json +1 -1
- package/dist/en_US-Y4ZOVFV4-A9dZCOS4.mjs +0 -4
|
@@ -7048,7 +7048,7 @@ async function mA(e, t) {
|
|
|
7048
7048
|
});
|
|
7049
7049
|
return U === "0x" ? { data: void 0 } : { data: U };
|
|
7050
7050
|
} catch (S) {
|
|
7051
|
-
const z = X2e(S), { offchainLookup: L, offchainLookupSignature: F } = await import("./ccip-
|
|
7051
|
+
const z = X2e(S), { offchainLookup: L, offchainLookupSignature: F } = await import("./ccip-BQkOxRli.mjs");
|
|
7052
7052
|
if (e.ccipRead !== !1 && z?.slice(0, 10) === F && y)
|
|
7053
7053
|
return { data: await L(e, { data: z, to: y }) };
|
|
7054
7054
|
throw I && z?.slice(0, 10) === "0x101bb98d" ? new J6e({ factory: f }) : XR(S, {
|
|
@@ -11838,14 +11838,14 @@ function FCe(e) {
|
|
|
11838
11838
|
const ee = k(re);
|
|
11839
11839
|
if (!h(ee))
|
|
11840
11840
|
return;
|
|
11841
|
-
const se = u(ee),
|
|
11841
|
+
const se = u(ee), ve = l.BASE.multiply(ee).toAffine(), le = c(ve.x);
|
|
11842
11842
|
if (le === lo)
|
|
11843
11843
|
return;
|
|
11844
11844
|
const pe = c(se * c(Y + le * K));
|
|
11845
11845
|
if (pe === lo)
|
|
11846
11846
|
return;
|
|
11847
|
-
let ye = (
|
|
11848
|
-
return D && b(pe) && (
|
|
11847
|
+
let ye = (ve.x === le ? 0 : 2) | Number(ve.y & rr), we = pe;
|
|
11848
|
+
return D && b(pe) && (we = m(pe), ye ^= 1), new C(le, we, ye);
|
|
11849
11849
|
}
|
|
11850
11850
|
return { seed: J, k2sig: ae };
|
|
11851
11851
|
}
|
|
@@ -11884,7 +11884,7 @@ function FCe(e) {
|
|
|
11884
11884
|
if (!Z || D && Z.hasHighS())
|
|
11885
11885
|
return !1;
|
|
11886
11886
|
U && (F = t.hash(F));
|
|
11887
|
-
const { r: Y, s: ae } = Z, re = x(F), ee = u(ae), se = c(re * ee),
|
|
11887
|
+
const { r: Y, s: ae } = Z, re = x(F), ee = u(ae), se = c(re * ee), ve = c(Y * ee), le = l.BASE.multiplyAndAddUnsafe(J, se, ve)?.toAffine();
|
|
11888
11888
|
return le ? c(le.x) === Y : !1;
|
|
11889
11889
|
}
|
|
11890
11890
|
return {
|
|
@@ -37751,7 +37751,7 @@ var _C = { exports: {} }, ZMe = _C.exports, $F;
|
|
|
37751
37751
|
function QMe() {
|
|
37752
37752
|
return $F || ($F = 1, (function(e, t) {
|
|
37753
37753
|
(function(r, n) {
|
|
37754
|
-
var a = "1.0.41", o = "", i = "?", s = "function", c = "undefined", u = "object", l = "string", d = "major", f = "model", h = "name", b = "type", m = "vendor", g = "version", C = "architecture", _ = "console", w = "mobile", y = "tablet", E = "smarttv", k = "wearable", x = "embedded", P = 500, j = "Amazon", A = "Apple", I = "ASUS", O = "BlackBerry", S = "Browser", z = "Chrome", L = "Edge", F = "Firefox", q = "Google", H = "Honor", N = "Huawei", D = "Lenovo", U = "LG", G = "Microsoft", Q = "Motorola", K = "Nvidia", Z = "OnePlus", J = "Opera", Y = "OPPO", ae = "Samsung", re = "Sharp", ee = "Sony", se = "Xiaomi",
|
|
37754
|
+
var a = "1.0.41", o = "", i = "?", s = "function", c = "undefined", u = "object", l = "string", d = "major", f = "model", h = "name", b = "type", m = "vendor", g = "version", C = "architecture", _ = "console", w = "mobile", y = "tablet", E = "smarttv", k = "wearable", x = "embedded", P = 500, j = "Amazon", A = "Apple", I = "ASUS", O = "BlackBerry", S = "Browser", z = "Chrome", L = "Edge", F = "Firefox", q = "Google", H = "Honor", N = "Huawei", D = "Lenovo", U = "LG", G = "Microsoft", Q = "Motorola", K = "Nvidia", Z = "OnePlus", J = "Opera", Y = "OPPO", ae = "Samsung", re = "Sharp", ee = "Sony", se = "Xiaomi", ve = "Zebra", le = "Facebook", pe = "Chromium OS", ye = "Mac OS", we = " Browser", _e = function(ze, Ne) {
|
|
37755
37755
|
var Be = {};
|
|
37756
37756
|
for (var Ze in ze)
|
|
37757
37757
|
Ne[Ze] && Ne[Ze].length % 2 === 0 ? Be[Ze] = Ne[Ze].concat(ze[Ze]) : Be[Ze] = ze[Ze];
|
|
@@ -37952,7 +37952,7 @@ function QMe() {
|
|
|
37952
37952
|
/miuibrowser\/([\w\.]+)/i
|
|
37953
37953
|
// MIUI Browser
|
|
37954
37954
|
],
|
|
37955
|
-
[g, [h, "MIUI" +
|
|
37955
|
+
[g, [h, "MIUI" + we]],
|
|
37956
37956
|
[
|
|
37957
37957
|
/fxios\/([\w\.-]+)/i
|
|
37958
37958
|
// Firefox for iOS
|
|
@@ -37971,7 +37971,7 @@ function QMe() {
|
|
|
37971
37971
|
[
|
|
37972
37972
|
/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i
|
|
37973
37973
|
],
|
|
37974
|
-
[[h, /(.+)/, "$1" +
|
|
37974
|
+
[[h, /(.+)/, "$1" + we], g],
|
|
37975
37975
|
[
|
|
37976
37976
|
// Oculus/Sailfish/HuaweiBrowser/VivoBrowser/PicoBrowser
|
|
37977
37977
|
/samsungbrowser\/([\w\.]+)/i
|
|
@@ -38625,11 +38625,11 @@ function QMe() {
|
|
|
38625
38625
|
/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i
|
|
38626
38626
|
// Zebra
|
|
38627
38627
|
],
|
|
38628
|
-
[f, [m,
|
|
38628
|
+
[f, [m, ve], [b, y]],
|
|
38629
38629
|
[
|
|
38630
38630
|
/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i
|
|
38631
38631
|
],
|
|
38632
|
-
[f, [m,
|
|
38632
|
+
[f, [m, ve], [b, w]],
|
|
38633
38633
|
[
|
|
38634
38634
|
///////////////////
|
|
38635
38635
|
// SMARTTVS
|
|
@@ -38777,7 +38777,7 @@ function QMe() {
|
|
|
38777
38777
|
[
|
|
38778
38778
|
/droid.+; (wt63?0{2,3})\)/i
|
|
38779
38779
|
],
|
|
38780
|
-
[f, [m,
|
|
38780
|
+
[f, [m, ve], [b, k]],
|
|
38781
38781
|
[
|
|
38782
38782
|
///////////////////
|
|
38783
38783
|
// XR
|
|
@@ -40092,7 +40092,7 @@ function _Ue(e = {}) {
|
|
|
40092
40092
|
const i = typeof e.preference == "string" ? { options: e.preference } : {
|
|
40093
40093
|
...e.preference,
|
|
40094
40094
|
options: e.preference?.options ?? "all"
|
|
40095
|
-
}, { createBaseAccountSDK: s } = await import("./index-
|
|
40095
|
+
}, { createBaseAccountSDK: s } = await import("./index-Bk_G722d.mjs");
|
|
40096
40096
|
t = s({
|
|
40097
40097
|
...e,
|
|
40098
40098
|
appChainIds: o.chains.map((u) => u.id),
|
|
@@ -40223,7 +40223,7 @@ function nU(e = {}) {
|
|
|
40223
40223
|
async getProvider() {
|
|
40224
40224
|
async function l() {
|
|
40225
40225
|
const d = await (async () => {
|
|
40226
|
-
const { default: m } = await import("./metamask-sdk-
|
|
40226
|
+
const { default: m } = await import("./metamask-sdk-D_W46s6j.mjs");
|
|
40227
40227
|
return typeof m != "function" && typeof m.default == "function" ? m.default : m;
|
|
40228
40228
|
})(), f = {};
|
|
40229
40229
|
for (const m of u.chains)
|
|
@@ -40403,13 +40403,13 @@ function aU(e = {}) {
|
|
|
40403
40403
|
async getProvider() {
|
|
40404
40404
|
if (typeof window < "u" && window?.parent !== window) {
|
|
40405
40405
|
if (!r) {
|
|
40406
|
-
const { default: i } = await import("./index-
|
|
40406
|
+
const { default: i } = await import("./index-DJKfY9CX.mjs"), s = new i(e), c = await EA(() => s.safe.getInfo(), {
|
|
40407
40407
|
timeout: e.unstable_getInfoTimeout ?? 10
|
|
40408
40408
|
});
|
|
40409
40409
|
if (!c)
|
|
40410
40410
|
throw new Error("Could not load Safe information");
|
|
40411
40411
|
const u = await (async () => {
|
|
40412
|
-
const l = await import("./index-
|
|
40412
|
+
const l = await import("./index-DnTu-5HZ.mjs").then((d) => d.i);
|
|
40413
40413
|
return typeof l.SafeAppProvider != "function" && typeof l.default.SafeAppProvider == "function" ? l.default.SafeAppProvider : l.SafeAppProvider;
|
|
40414
40414
|
})();
|
|
40415
40415
|
r = new u(c, s);
|
|
@@ -40508,7 +40508,7 @@ function oU(e) {
|
|
|
40508
40508
|
const b = d.chains.map((g) => g.id);
|
|
40509
40509
|
if (!b.length)
|
|
40510
40510
|
return;
|
|
40511
|
-
const { EthereumProvider: m } = await import("./index.es-
|
|
40511
|
+
const { EthereumProvider: m } = await import("./index.es-DrZjaZNE.mjs").then((g) => g.Y);
|
|
40512
40512
|
return await m.init({
|
|
40513
40513
|
...e,
|
|
40514
40514
|
disableProviderPing: !0,
|
|
@@ -41118,7 +41118,7 @@ var LUe = async (e) => {
|
|
|
41118
41118
|
return (await import("./de_DE-PYAO5YD6-DRiWndek.mjs")).default;
|
|
41119
41119
|
case "en":
|
|
41120
41120
|
case "en-US":
|
|
41121
|
-
return (await import("./en_US-Y4ZOVFV4-
|
|
41121
|
+
return (await import("./en_US-Y4ZOVFV4-D50Uc9Q8.mjs")).default;
|
|
41122
41122
|
case "es":
|
|
41123
41123
|
case "es-419":
|
|
41124
41124
|
return (await import("./es_419-HRGOJ6VT-Bb7kiWEN.mjs")).default;
|
|
@@ -41168,7 +41168,7 @@ var LUe = async (e) => {
|
|
|
41168
41168
|
case "zh-TW":
|
|
41169
41169
|
return (await import("./zh_TW-VNNRNXY7-CyIPkoVZ.mjs")).default;
|
|
41170
41170
|
default:
|
|
41171
|
-
return (await import("./en_US-Y4ZOVFV4-
|
|
41171
|
+
return (await import("./en_US-Y4ZOVFV4-D50Uc9Q8.mjs")).default;
|
|
41172
41172
|
}
|
|
41173
41173
|
};
|
|
41174
41174
|
async function dN(e) {
|
|
@@ -50077,7 +50077,7 @@ function dr() {
|
|
|
50077
50077
|
if (!v) throw new Error("Invalid hex color: " + p);
|
|
50078
50078
|
return [parseInt(v[1], 16), parseInt(v[2], 16), parseInt(v[3], 16)];
|
|
50079
50079
|
}
|
|
50080
|
-
function
|
|
50080
|
+
function ve(p) {
|
|
50081
50081
|
return "#" + p.map((v) => v.toString(16).padStart(2, "0")).join("");
|
|
50082
50082
|
}
|
|
50083
50083
|
function le(p, v, T, B) {
|
|
@@ -50090,7 +50090,7 @@ function dr() {
|
|
|
50090
50090
|
function ye(p) {
|
|
50091
50091
|
return p > 1e3 ? (p / 1e3).toFixed(0) + " km" : p >= 500 ? pe(p, 100) + " m" : p >= 100 ? pe(p, 50) + " m" : pe(p, 10) + " m";
|
|
50092
50092
|
}
|
|
50093
|
-
function
|
|
50093
|
+
function we(p) {
|
|
50094
50094
|
return p * (p + 1) / 2;
|
|
50095
50095
|
}
|
|
50096
50096
|
function _e(p) {
|
|
@@ -52347,7 +52347,7 @@ function dr() {
|
|
|
52347
52347
|
return this.status = "completed", await this.onStatusChange(this.status), await this.onFinish(), this.context;
|
|
52348
52348
|
}
|
|
52349
52349
|
}
|
|
52350
|
-
e.Solver = iB, e.Binary = { hexToUint8Array: rS, uint8ArrayToHex: nS, binaryToUint8Array: oS, uint8ArrayToBinary: aS, base64ToUint8Array: YP, uint8ArrayToBase64: $P, base32ToUint8Array: eS, uint8ArrayToBase32: tS, log2Reduce: X5, partition: Ll, concatBytes: Ho, numberToUint8: m4, uint8ToNumber: h4, numberToUint16: b4, uint16ToNumber: y4, numberToUint32: g4, uint32ToNumber: v4, numberToUint64: Dl, uint64ToNumber: w4, numberToUint256: Go, uint256ToNumber: Vo, sliceBytes: E4, keccak256: la, sha3_256: _4, proximity: k4, commonPrefix: x4, setBit: T4, getBit: j4, indexOf: A4, equals: I4, padStart: ok, padStartToMultiple: P4, padEnd: ik, padEndToMultiple: S4, xorCypher: B4, isUtf8: O4 }, e.Elliptic = { privateKeyToPublicKey: M4, compressPublicKey: U4, publicKeyFromCompressed: q4, publicKeyToAddress: z4, signMessage: N4, signHash: ck, verifySignature: L4, recoverPublicKey: D4, checksumEncode: F4 }, e.Random = { intBetween: _, floatBetween: w, chance: P, signed: y, makeSeededRng: C, point: k, procs: x }, e.Arrays = { countUnique: Z9, makeUnique: K9, splitBySize: V9, splitByCount: W5, index: V5, indexCollection: G9, onlyOrThrow: s, onlyOrNull: c, firstOrThrow: l, firstOrNull: u, shuffle: i, initialize: d, initialize2D: h, rotate2D: f, containsShape: b, glue: ul, pluck: g, pick: j, pickMany: A, pickManyUnique: I, pickWeighted: F, pickRandomIndices: m, pickGuaranteed: O, last: S, pipe: z, makePipe: L, sortWeighted: q, pushAll: Uo, unshiftAll: sl, filterAndRemove: BS, merge: j9, empty: A9, pushToBucket: ol, unshiftAndLimit: il, atRolling: yc, group: Nl, createOscillator: m9, organiseWithLimits: b9, tickPlaybook: H4, getArgument: jc, getBooleanArgument: V4, getNumberArgument: G4, requireStringArgument: dk, requireNumberArgument: W4, bringToFront: K4, bringToFrontInPlace: fk, findInstance: s4, filterInstances: c4, interleave: u4, toggle: l4, createHierarchy: f4, multicall: o4, maxBy: i4 }, e.System = { sleepMillis: o, forever: Z, scheduleMany: ml, waitFor: SS, expandError: nl, runAndSetInterval: J, whereAmI: Y, withRetries: ae }, e.Numbers = { make: zl, sum: bl, average: yl, median: gl, getDistanceFromMidpoint: vl, clamp: Fl, range: qo, interpolate: hl, createSequence: p9, increment: _9, decrement: k9, format: C9, fromDecimals: E9, makeStorage: t9, asMegabytes: re, convertBytes: ee, hexToRgb: se, rgbToHex:
|
|
52350
|
+
e.Solver = iB, e.Binary = { hexToUint8Array: rS, uint8ArrayToHex: nS, binaryToUint8Array: oS, uint8ArrayToBinary: aS, base64ToUint8Array: YP, uint8ArrayToBase64: $P, base32ToUint8Array: eS, uint8ArrayToBase32: tS, log2Reduce: X5, partition: Ll, concatBytes: Ho, numberToUint8: m4, uint8ToNumber: h4, numberToUint16: b4, uint16ToNumber: y4, numberToUint32: g4, uint32ToNumber: v4, numberToUint64: Dl, uint64ToNumber: w4, numberToUint256: Go, uint256ToNumber: Vo, sliceBytes: E4, keccak256: la, sha3_256: _4, proximity: k4, commonPrefix: x4, setBit: T4, getBit: j4, indexOf: A4, equals: I4, padStart: ok, padStartToMultiple: P4, padEnd: ik, padEndToMultiple: S4, xorCypher: B4, isUtf8: O4 }, e.Elliptic = { privateKeyToPublicKey: M4, compressPublicKey: U4, publicKeyFromCompressed: q4, publicKeyToAddress: z4, signMessage: N4, signHash: ck, verifySignature: L4, recoverPublicKey: D4, checksumEncode: F4 }, e.Random = { intBetween: _, floatBetween: w, chance: P, signed: y, makeSeededRng: C, point: k, procs: x }, e.Arrays = { countUnique: Z9, makeUnique: K9, splitBySize: V9, splitByCount: W5, index: V5, indexCollection: G9, onlyOrThrow: s, onlyOrNull: c, firstOrThrow: l, firstOrNull: u, shuffle: i, initialize: d, initialize2D: h, rotate2D: f, containsShape: b, glue: ul, pluck: g, pick: j, pickMany: A, pickManyUnique: I, pickWeighted: F, pickRandomIndices: m, pickGuaranteed: O, last: S, pipe: z, makePipe: L, sortWeighted: q, pushAll: Uo, unshiftAll: sl, filterAndRemove: BS, merge: j9, empty: A9, pushToBucket: ol, unshiftAndLimit: il, atRolling: yc, group: Nl, createOscillator: m9, organiseWithLimits: b9, tickPlaybook: H4, getArgument: jc, getBooleanArgument: V4, getNumberArgument: G4, requireStringArgument: dk, requireNumberArgument: W4, bringToFront: K4, bringToFrontInPlace: fk, findInstance: s4, filterInstances: c4, interleave: u4, toggle: l4, createHierarchy: f4, multicall: o4, maxBy: i4 }, e.System = { sleepMillis: o, forever: Z, scheduleMany: ml, waitFor: SS, expandError: nl, runAndSetInterval: J, whereAmI: Y, withRetries: ae }, e.Numbers = { make: zl, sum: bl, average: yl, median: gl, getDistanceFromMidpoint: vl, clamp: Fl, range: qo, interpolate: hl, createSequence: p9, increment: _9, decrement: k9, format: C9, fromDecimals: E9, makeStorage: t9, asMegabytes: re, convertBytes: ee, hexToRgb: se, rgbToHex: ve, haversineDistanceToMeters: le, roundToNearest: pe, formatDistance: ye, triangularNumber: we, searchFloat: _e, binomialSample: ke, toSignificantDigits: qe }, e.Promises = { raceFulfilled: n, invert: r, runInParallelBatches: a }, e.Dates = { getTimestamp: NS, getTimeDelta: M5, secondsToHumanTime: DS, countCycles: LS, isoDate: RS, throttle: HS, timeSince: VS, dateTimeSlug: MS, unixTimestamp: IS, fromUtcString: US, fromMillis: qS, getProgress: WS, humanizeTime: Cc, humanizeProgress: PS, createTimeDigits: vn, mapDayNumber: U5, getDayInfoFromDate: ql, getDayInfoFromDateTimeString: ZS, seconds: QS, minutes: XS, hours: JS, days: q5, make: $S, normalizeTime: zS, absoluteDays: qa }, e.Objects = { safeParse: f9, deleteDeep: G, getDeep: H, setDeep: N, incrementDeep: D, ensureDeep: U, replaceDeep: Q, getFirstDeep: K, deepMergeInPlace: zn, deepMerge2: Ni, deepMerge3: al, mapAllAsync: cl, cloneWithJson: OS, sortObject: F5, sortArray: N5, sortAny: za, deepEquals: D5, deepEqualsEvery: d9, runOn: x9, ifPresent: T9, zip: hc, zipSum: bc, removeEmptyArrays: P9, removeEmptyValues: S9, flatten: L9, unflatten: G5, match: H9, sort: Z5, map: I9, mapIterable: R9, filterKeys: B9, filterValues: O9, rethrow: M9, setSomeOnObject: U9, setSomeDeep: q9, flip: z9, getAllPermutations: F9, countTruthyValues: N9, transformToArray: Q9, setMulti: J9, incrementMulti: X9, createBidirectionalMap: Y9, createTemporalBidirectionalMap: $9, pushToBidirectionalMap: Q5, unshiftToBidirectionalMap: e4, addToTemporalBidirectionalMap: t4, getFromTemporalBidirectionalMap: r4, createStatefulToggle: h9, diffKeys: y9, pickRandomKey: L5, mapRandomKey: g9, fromObjectString: v9, toQueryString: I5, parseQueryString: wS, hasKey: ES, selectMax: CS, reposition: _S, unwrapSingleKey: kS, parseKeyValues: xS, errorMatches: TS }, e.Types = { isFunction: gt, isObject: he, isStrictlyObject: ue, isEmptyArray: Je, isEmptyObject: nt, isUndefined: jt, isString: ot, isNumber: dt, isBoolean: Ye, isDate: Tt, isBlank: Rt, isId: ze, isIntegerString: Ne, isHexString: Be, isUrl: Ma, isBigint: dc, isNullable: fc, asString: Io, asHexString: Rn, asSafeString: Mn, asIntegerString: In, asNumber: Un, asFunction: Oi, asInteger: qn, asBoolean: Ii, asDate: Ro, asNullableString: Ri, asEmptiableString: Ra, asId: Mo, asTime: ia, asArray: Mi, asObject: sa, asNullableObject: Ui, asStringMap: qi, asNumericDictionary: zi, asUrl: lc, asBigint: Fi, asEmptiable: tl, asNullable: el, asOptional: pc, enforceObjectShape: mc, enforceArrayShape: rl, isPng: J5, isJpg: Y5, isWebp: $5, isImage: p4 }, e.Strings = { tokenizeByCount: W9, tokenizeByLength: K5, searchHex: Ia, searchSubstring: Bi, randomHex: On, randomLetter: Ai, randomAlphanumeric: Pi, randomRichAscii: Oa, randomUnicode: Si, includesAny: wl, slugify: Di, normalForm: Cl, enumify: jl, escapeHtml: SP, decodeHtmlEntities: OP, after: wc, afterLast: p5, before: Pl, beforeLast: Sl, betweenWide: IP, betweenNarrow: RP, getPreLine: r9, containsWord: Ml, containsWords: hS, joinUrl: z5, getFuzzyMatchScore: Fo, sortByFuzzyScore: Al, splitOnce: Bl, splitAll: m5, randomize: zP, expand: h5, shrinkTrim: Li, capitalize: Ec, decapitalize: b5, csvEscape: GP, parseCsv: AS, surroundInOut: Tl, getExtension: Ol, getBasename: Il, normalizeEmail: MP, normalizeFilename: UP, parseFilename: qP, camelToTitle: _l, slugToTitle: zo, slugToCamel: kl, joinHumanly: xl, findWeightedPair: _5, extractBlock: k5, extractAllBlocks: KP, replaceBlocks: ZP, indexOfEarliest: No, lastIndexOfBefore: C5, parseHtmlAttributes: bS, readNextWord: Do, readWordsAfterAll: yS, resolveVariables: gS, resolveVariableWithDefaultSyntax: B5, resolveRemainingVariablesWithDefaults: O5, isLetter: y5, isDigit: g5, isLetterOrDigit: Hi, isValidObjectPathCharacter: DP, insert: LP, indexOfRegex: v5, allIndexOf: E5, lineMatches: w5, linesMatchInOrder: HP, represent: Ua, resolveMarkdownLinks: vS, buildUrl: jS, isChinese: El, replaceBetweenStrings: s9, describeMarkdown: c9, isBalanced: u9, textToFormat: l9, splitFormatting: QP, splitHashtags: XP, splitUrls: JP, route: iS, explodeReplace: Rl, generateVariants: sS, replaceWord: cS, replacePascalCaseWords: uS, stripHtml: lS, breakLine: P5, measureTextWidth: dS, toLines: fS, levenshteinDistance: pS, findCommonPrefix: S5, findCommonDirectory: mS }, e.Assertions = { asEqual: ll, asTrue: gc, asTruthy: dl, asFalse: fl, asFalsy: vc, asEither: pl }, e.Cache = { get: n9, delete: a9, deleteExpired: o9, size: i9 }, e.Vector = { addPoint: pk, subtractPoint: Z4, multiplyPoint: Vl, normalizePoint: Q4, pushPoint: mk, filterCoordinates: Vi, findCorners: $4, findLines: eB, raycast: Wl, raycastCircle: nB, getLineIntersectionPoint: wk };
|
|
52351
52351
|
})(_O)), _O;
|
|
52352
52352
|
}
|
|
52353
52353
|
var ff = {}, iD;
|
|
@@ -56832,9 +56832,9 @@ function V_() {
|
|
|
56832
56832
|
}
|
|
56833
56833
|
let { Ah: E, Al: k, Bh: x, Bl: P, Ch: j, Cl: A, Dh: I, Dl: O, Eh: S, El: z, Fh: L, Fl: F, Gh: q, Gl: H, Hh: N, Hl: D } = this;
|
|
56834
56834
|
for (let U = 0; U < 80; U++) {
|
|
56835
|
-
const G = t.rotrSH(S, z, 14) ^ t.rotrSH(S, z, 18) ^ t.rotrBH(S, z, 41), Q = t.rotrSL(S, z, 14) ^ t.rotrSL(S, z, 18) ^ t.rotrBL(S, z, 41), K = S & L ^ ~S & q, Z = z & F ^ ~z & H, J = t.add5L(D, Q, Z, u[U], d[U]), Y = t.add5H(J, N, G, K, c[U], l[U]), ae = J | 0, re = t.rotrSH(E, k, 28) ^ t.rotrBH(E, k, 34) ^ t.rotrBH(E, k, 39), ee = t.rotrSL(E, k, 28) ^ t.rotrBL(E, k, 34) ^ t.rotrBL(E, k, 39), se = E & x ^ E & j ^ x & j,
|
|
56835
|
+
const G = t.rotrSH(S, z, 14) ^ t.rotrSH(S, z, 18) ^ t.rotrBH(S, z, 41), Q = t.rotrSL(S, z, 14) ^ t.rotrSL(S, z, 18) ^ t.rotrBL(S, z, 41), K = S & L ^ ~S & q, Z = z & F ^ ~z & H, J = t.add5L(D, Q, Z, u[U], d[U]), Y = t.add5H(J, N, G, K, c[U], l[U]), ae = J | 0, re = t.rotrSH(E, k, 28) ^ t.rotrBH(E, k, 34) ^ t.rotrBH(E, k, 39), ee = t.rotrSL(E, k, 28) ^ t.rotrBL(E, k, 34) ^ t.rotrBL(E, k, 39), se = E & x ^ E & j ^ x & j, ve = k & P ^ k & A ^ P & A;
|
|
56836
56836
|
N = q | 0, D = H | 0, q = L | 0, H = F | 0, L = S | 0, F = z | 0, { h: S, l: z } = t.add(I | 0, O | 0, Y | 0, ae | 0), I = j | 0, O = A | 0, j = x | 0, A = P | 0, x = E | 0, P = k | 0;
|
|
56837
|
-
const le = t.add3L(ae, ee,
|
|
56837
|
+
const le = t.add3L(ae, ee, ve);
|
|
56838
56838
|
E = t.add3H(le, Y, re, se), k = le | 0;
|
|
56839
56839
|
}
|
|
56840
56840
|
({ h: E, l: k } = t.add(this.Ah | 0, this.Al | 0, E | 0, k | 0)), { h: x, l: P } = t.add(this.Bh | 0, this.Bl | 0, x | 0, P | 0), { h: j, l: A } = t.add(this.Ch | 0, this.Cl | 0, j | 0, A | 0), { h: I, l: O } = t.add(this.Dh | 0, this.Dl | 0, I | 0, O | 0), { h: S, l: z } = t.add(this.Eh | 0, this.El | 0, S | 0, z | 0), { h: L, l: F } = t.add(this.Fh | 0, this.Fl | 0, L | 0, F | 0), { h: q, l: H } = t.add(this.Gh | 0, this.Gl | 0, q | 0, H | 0), { h: N, l: D } = t.add(this.Hh | 0, this.Hl | 0, N | 0, D | 0), this.set(E, k, x, P, j, A, I, O, S, z, L, F, q, H, N, D);
|
|
@@ -57112,18 +57112,18 @@ function nc() {
|
|
|
57112
57112
|
if (Z++ >= 1e3)
|
|
57113
57113
|
throw new Error("drbg: tried 1000 values");
|
|
57114
57114
|
let se = 0;
|
|
57115
|
-
const
|
|
57115
|
+
const ve = [];
|
|
57116
57116
|
for (; se < U; ) {
|
|
57117
57117
|
Q = Y();
|
|
57118
57118
|
const le = Q.slice();
|
|
57119
|
-
|
|
57119
|
+
ve.push(le), se += Q.length;
|
|
57120
57120
|
}
|
|
57121
|
-
return w(...
|
|
57121
|
+
return w(...ve);
|
|
57122
57122
|
};
|
|
57123
|
-
return (se,
|
|
57123
|
+
return (se, ve) => {
|
|
57124
57124
|
J(), ae(se);
|
|
57125
57125
|
let le;
|
|
57126
|
-
for (; !(le =
|
|
57126
|
+
for (; !(le = ve(re())); )
|
|
57127
57127
|
ae();
|
|
57128
57128
|
return J(), le;
|
|
57129
57129
|
};
|
|
@@ -57238,9 +57238,9 @@ function Vu() {
|
|
|
57238
57238
|
for (; !Z.eql(re, Z.ONE); ) {
|
|
57239
57239
|
if (Z.is0(re))
|
|
57240
57240
|
return Z.ZERO;
|
|
57241
|
-
let se = 1,
|
|
57242
|
-
for (; !Z.eql(
|
|
57243
|
-
if (se++,
|
|
57241
|
+
let se = 1, ve = Z.sqr(re);
|
|
57242
|
+
for (; !Z.eql(ve, Z.ONE); )
|
|
57243
|
+
if (se++, ve = Z.sqr(ve), se === Y)
|
|
57244
57244
|
throw new Error("Cannot find square root");
|
|
57245
57245
|
const le = n << BigInt(Y - se - 1), pe = Z.pow(ae, le);
|
|
57246
57246
|
Y = se, ae = Z.sqr(pe), re = Z.mul(re, ae), ee = Z.mul(ee, pe);
|
|
@@ -57893,8 +57893,8 @@ function zU() {
|
|
|
57893
57893
|
// Cost: 8M + 3S + 3*a + 2*b3 + 15add.
|
|
57894
57894
|
double() {
|
|
57895
57895
|
const { a: G, b: Q } = w, K = y.mul(Q, d), { px: Z, py: J, pz: Y } = this;
|
|
57896
|
-
let ae = y.ZERO, re = y.ZERO, ee = y.ZERO, se = y.mul(Z, Z),
|
|
57897
|
-
return pe = y.add(pe, pe), ee = y.mul(Z, Y), ee = y.add(ee, ee), ae = y.mul(G, ee), re = y.mul(K, le), re = y.add(ae, re), ae = y.sub(
|
|
57896
|
+
let ae = y.ZERO, re = y.ZERO, ee = y.ZERO, se = y.mul(Z, Z), ve = y.mul(J, J), le = y.mul(Y, Y), pe = y.mul(Z, J);
|
|
57897
|
+
return pe = y.add(pe, pe), ee = y.mul(Z, Y), ee = y.add(ee, ee), ae = y.mul(G, ee), re = y.mul(K, le), re = y.add(ae, re), ae = y.sub(ve, re), re = y.add(ve, re), re = y.mul(ae, re), ae = y.mul(pe, ae), ee = y.mul(K, ee), le = y.mul(G, le), pe = y.sub(se, le), pe = y.mul(G, pe), pe = y.add(pe, ee), ee = y.add(se, se), se = y.add(ee, se), se = y.add(se, le), se = y.mul(se, pe), re = y.add(re, se), le = y.mul(J, Y), le = y.add(le, le), se = y.mul(le, pe), ae = y.sub(ae, se), ee = y.mul(le, ve), ee = y.add(ee, ee), ee = y.add(ee, ee), new q(ae, re, ee);
|
|
57898
57898
|
}
|
|
57899
57899
|
// Renes-Costello-Batina exception-free addition formula.
|
|
57900
57900
|
// There is 30% faster Jacobian formula, but it is not complete.
|
|
@@ -57904,11 +57904,11 @@ function zU() {
|
|
|
57904
57904
|
z(G);
|
|
57905
57905
|
const { px: Q, py: K, pz: Z } = this, { px: J, py: Y, pz: ae } = G;
|
|
57906
57906
|
let re = y.ZERO, ee = y.ZERO, se = y.ZERO;
|
|
57907
|
-
const
|
|
57908
|
-
let pe = y.mul(Q, J), ye = y.mul(K, Y),
|
|
57907
|
+
const ve = w.a, le = y.mul(w.b, d);
|
|
57908
|
+
let pe = y.mul(Q, J), ye = y.mul(K, Y), we = y.mul(Z, ae), _e = y.add(Q, K), ke = y.add(J, Y);
|
|
57909
57909
|
_e = y.mul(_e, ke), ke = y.add(pe, ye), _e = y.sub(_e, ke), ke = y.add(Q, Z);
|
|
57910
57910
|
let qe = y.add(J, ae);
|
|
57911
|
-
return ke = y.mul(ke, qe), qe = y.add(pe,
|
|
57911
|
+
return ke = y.mul(ke, qe), qe = y.add(pe, we), ke = y.sub(ke, qe), qe = y.add(K, Z), re = y.add(Y, ae), qe = y.mul(qe, re), re = y.add(ye, we), qe = y.sub(qe, re), se = y.mul(ve, ke), re = y.mul(le, we), se = y.add(re, se), re = y.sub(ye, se), se = y.add(ye, se), ee = y.mul(re, se), ye = y.add(pe, pe), ye = y.add(ye, pe), we = y.mul(ve, we), ke = y.mul(le, ke), ye = y.add(ye, we), we = y.sub(pe, we), we = y.mul(ve, we), ke = y.add(ke, we), pe = y.mul(ye, ke), ee = y.add(ee, pe), pe = y.mul(qe, ke), re = y.mul(_e, re), re = y.sub(re, pe), pe = y.mul(_e, ye), se = y.mul(qe, se), se = y.add(se, pe), new q(re, ee, se);
|
|
57912
57912
|
}
|
|
57913
57913
|
subtract(G) {
|
|
57914
57914
|
return this.add(G.negate());
|
|
@@ -57934,9 +57934,9 @@ function zU() {
|
|
|
57934
57934
|
return this;
|
|
57935
57935
|
if (!Q || D.hasPrecomputes(this))
|
|
57936
57936
|
return D.wNAFCachedUnsafe(this, G, q.normalizeZ);
|
|
57937
|
-
let { k1neg: J, k1: Y, k2neg: ae, k2: re } = Q.splitScalar(G), ee = Z, se = Z,
|
|
57937
|
+
let { k1neg: J, k1: Y, k2neg: ae, k2: re } = Q.splitScalar(G), ee = Z, se = Z, ve = this;
|
|
57938
57938
|
for (; Y > c || re > c; )
|
|
57939
|
-
Y & u && (ee = ee.add(
|
|
57939
|
+
Y & u && (ee = ee.add(ve)), re & u && (se = se.add(ve)), ve = ve.double(), Y >>= u, re >>= u;
|
|
57940
57940
|
return J && (ee = ee.negate()), ae && (se = se.negate()), se = new q(y.mul(se.px, Q.beta), se.py, se.pz), ee.add(se);
|
|
57941
57941
|
}
|
|
57942
57942
|
/**
|
|
@@ -57954,8 +57954,8 @@ function zU() {
|
|
|
57954
57954
|
let Z, J;
|
|
57955
57955
|
if (Q) {
|
|
57956
57956
|
const { k1neg: Y, k1: ae, k2neg: re, k2: ee } = Q.splitScalar(G);
|
|
57957
|
-
let { p: se, f:
|
|
57958
|
-
se = D.constTimeNegate(Y, se), le = D.constTimeNegate(re, le), le = new q(y.mul(le.px, Q.beta), le.py, le.pz), Z = se.add(le), J =
|
|
57957
|
+
let { p: se, f: ve } = this.wNAF(ae), { p: le, f: pe } = this.wNAF(ee);
|
|
57958
|
+
se = D.constTimeNegate(Y, se), le = D.constTimeNegate(re, le), le = new q(y.mul(le.px, Q.beta), le.py, le.pz), Z = se.add(le), J = ve.add(pe);
|
|
57959
57959
|
} else {
|
|
57960
57960
|
const { p: Y, f: ae } = this.wNAF(G);
|
|
57961
57961
|
Z = Y, J = ae;
|
|
@@ -58030,13 +58030,13 @@ function zU() {
|
|
|
58030
58030
|
const { ProjectivePoint: O, normPrivateKeyToScalar: S, weierstrassEquation: z, isWithinCurveOrder: L } = h({
|
|
58031
58031
|
...w,
|
|
58032
58032
|
toBytes(le, pe, ye) {
|
|
58033
|
-
const
|
|
58034
|
-
return (0, n.abool)("isCompressed", ye), ye ? ke(Uint8Array.from([pe.hasEvenY() ? 2 : 3]), _e) : ke(Uint8Array.from([4]), _e, y.toBytes(
|
|
58033
|
+
const we = pe.toAffine(), _e = y.toBytes(we.x), ke = n.concatBytes;
|
|
58034
|
+
return (0, n.abool)("isCompressed", ye), ye ? ke(Uint8Array.from([pe.hasEvenY() ? 2 : 3]), _e) : ke(Uint8Array.from([4]), _e, y.toBytes(we.y));
|
|
58035
58035
|
},
|
|
58036
58036
|
fromBytes(le) {
|
|
58037
|
-
const pe = le.length, ye = le[0],
|
|
58037
|
+
const pe = le.length, ye = le[0], we = le.subarray(1);
|
|
58038
58038
|
if (pe === P && (ye === 2 || ye === 3)) {
|
|
58039
|
-
const _e = (0, n.bytesToNumberBE)(
|
|
58039
|
+
const _e = (0, n.bytesToNumberBE)(we);
|
|
58040
58040
|
if (!(0, n.inRange)(_e, u, y.ORDER))
|
|
58041
58041
|
throw new Error("Point is not on curve");
|
|
58042
58042
|
const ke = z(_e);
|
|
@@ -58050,7 +58050,7 @@ function zU() {
|
|
|
58050
58050
|
const he = (qe & u) === u;
|
|
58051
58051
|
return (ye & 1) === 1 !== he && (qe = y.neg(qe)), { x: _e, y: qe };
|
|
58052
58052
|
} else if (pe === j && ye === 4) {
|
|
58053
|
-
const _e = y.fromBytes(
|
|
58053
|
+
const _e = y.fromBytes(we.subarray(0, y.BYTES)), ke = y.fromBytes(we.subarray(y.BYTES, 2 * y.BYTES));
|
|
58054
58054
|
return { x: _e, y: ke };
|
|
58055
58055
|
} else {
|
|
58056
58056
|
const _e = P, ke = j;
|
|
@@ -58067,8 +58067,8 @@ function zU() {
|
|
|
58067
58067
|
}
|
|
58068
58068
|
const H = (le, pe, ye) => (0, n.bytesToNumberBE)(le.slice(pe, ye));
|
|
58069
58069
|
class N {
|
|
58070
|
-
constructor(pe, ye,
|
|
58071
|
-
(0, n.aInRange)("r", pe, u, E), (0, n.aInRange)("s", ye, u, E), this.r = pe, this.s = ye,
|
|
58070
|
+
constructor(pe, ye, we) {
|
|
58071
|
+
(0, n.aInRange)("r", pe, u, E), (0, n.aInRange)("s", ye, u, E), this.r = pe, this.s = ye, we != null && (this.recovery = we), Object.freeze(this);
|
|
58072
58072
|
}
|
|
58073
58073
|
// pair (bytes of r, bytes of s)
|
|
58074
58074
|
static fromCompact(pe) {
|
|
@@ -58078,8 +58078,8 @@ function zU() {
|
|
|
58078
58078
|
// DER encoded ECDSA signature
|
|
58079
58079
|
// https://bitcoin.stackexchange.com/questions/57644/what-are-the-parts-of-a-bitcoin-transaction-input-script
|
|
58080
58080
|
static fromDER(pe) {
|
|
58081
|
-
const { r: ye, s:
|
|
58082
|
-
return new N(ye,
|
|
58081
|
+
const { r: ye, s: we } = e.DER.toSig((0, n.ensureBytes)("DER", pe));
|
|
58082
|
+
return new N(ye, we);
|
|
58083
58083
|
}
|
|
58084
58084
|
/**
|
|
58085
58085
|
* @todo remove
|
|
@@ -58091,13 +58091,13 @@ function zU() {
|
|
|
58091
58091
|
return new N(this.r, this.s, pe);
|
|
58092
58092
|
}
|
|
58093
58093
|
recoverPublicKey(pe) {
|
|
58094
|
-
const { r: ye, s:
|
|
58094
|
+
const { r: ye, s: we, recovery: _e } = this, ke = Z((0, n.ensureBytes)("msgHash", pe));
|
|
58095
58095
|
if (_e == null || ![0, 1, 2, 3].includes(_e))
|
|
58096
58096
|
throw new Error("recovery id invalid");
|
|
58097
58097
|
const qe = _e === 2 || _e === 3 ? ye + w.n : ye;
|
|
58098
58098
|
if (qe >= y.ORDER)
|
|
58099
58099
|
throw new Error("recovery id 2 or 3 invalid");
|
|
58100
|
-
const he = (_e & 1) === 0 ? "02" : "03", ue = O.fromHex(he + s(qe, y.BYTES)), Je = I(qe), nt = A(-ke * Je), jt = A(
|
|
58100
|
+
const he = (_e & 1) === 0 ? "02" : "03", ue = O.fromHex(he + s(qe, y.BYTES)), Je = I(qe), nt = A(-ke * Je), jt = A(we * Je), gt = O.BASE.multiplyAndAddUnsafe(ue, nt, jt);
|
|
58101
58101
|
if (!gt)
|
|
58102
58102
|
throw new Error("point at infinify");
|
|
58103
58103
|
return gt.assertValidity(), gt;
|
|
@@ -58162,7 +58162,7 @@ function zU() {
|
|
|
58162
58162
|
return !1;
|
|
58163
58163
|
if (le instanceof O)
|
|
58164
58164
|
return !0;
|
|
58165
|
-
const ye = (0, n.ensureBytes)("key", le).length,
|
|
58165
|
+
const ye = (0, n.ensureBytes)("key", le).length, we = y.BYTES, _e = we + 1, ke = 2 * we + 1;
|
|
58166
58166
|
if (!(w.allowedPrivateKeyLengths || k === _e))
|
|
58167
58167
|
return ye === _e || ye === ke;
|
|
58168
58168
|
}
|
|
@@ -58187,9 +58187,9 @@ function zU() {
|
|
|
58187
58187
|
function ae(le, pe, ye = re) {
|
|
58188
58188
|
if (["recovered", "canonical"].some((dt) => dt in ye))
|
|
58189
58189
|
throw new Error("sign() legacy options not supported");
|
|
58190
|
-
const { hash:
|
|
58190
|
+
const { hash: we, randomBytes: _e } = w;
|
|
58191
58191
|
let { lowS: ke, prehash: qe, extraEntropy: he } = ye;
|
|
58192
|
-
ke == null && (ke = !0), le = (0, n.ensureBytes)("msgHash", le), a(ye), qe && (le = (0, n.ensureBytes)("prehashed msgHash",
|
|
58192
|
+
ke == null && (ke = !0), le = (0, n.ensureBytes)("msgHash", le), a(ye), qe && (le = (0, n.ensureBytes)("prehashed msgHash", we(le)));
|
|
58193
58193
|
const ue = Z(le), Je = S(pe), nt = [Y(Je), Y(ue)];
|
|
58194
58194
|
if (he != null && he !== !1) {
|
|
58195
58195
|
const dt = he === !0 ? _e(y.BYTES) : he;
|
|
@@ -58213,15 +58213,15 @@ function zU() {
|
|
|
58213
58213
|
}
|
|
58214
58214
|
const re = { lowS: w.lowS, prehash: !1 }, ee = { lowS: w.lowS, prehash: !1 };
|
|
58215
58215
|
function se(le, pe, ye = re) {
|
|
58216
|
-
const { seed:
|
|
58217
|
-
return (0, n.createHmacDrbg)(ke.hash.outputLen, ke.nByteLength, ke.hmac)(
|
|
58216
|
+
const { seed: we, k2sig: _e } = ae(le, pe, ye), ke = w;
|
|
58217
|
+
return (0, n.createHmacDrbg)(ke.hash.outputLen, ke.nByteLength, ke.hmac)(we, _e);
|
|
58218
58218
|
}
|
|
58219
58219
|
O.BASE._setWindowSize(8);
|
|
58220
|
-
function
|
|
58220
|
+
function ve(le, pe, ye, we = ee) {
|
|
58221
58221
|
const _e = le;
|
|
58222
58222
|
pe = (0, n.ensureBytes)("msgHash", pe), ye = (0, n.ensureBytes)("publicKey", ye);
|
|
58223
|
-
const { lowS: ke, prehash: qe, format: he } =
|
|
58224
|
-
if (a(
|
|
58223
|
+
const { lowS: ke, prehash: qe, format: he } = we;
|
|
58224
|
+
if (a(we), "strict" in we)
|
|
58225
58225
|
throw new Error("options.strict was renamed to lowS");
|
|
58226
58226
|
if (he !== void 0 && he !== "compact" && he !== "der")
|
|
58227
58227
|
throw new Error("format must be compact or der");
|
|
@@ -58254,7 +58254,7 @@ function zU() {
|
|
|
58254
58254
|
getPublicKey: U,
|
|
58255
58255
|
getSharedSecret: Q,
|
|
58256
58256
|
sign: se,
|
|
58257
|
-
verify:
|
|
58257
|
+
verify: ve,
|
|
58258
58258
|
ProjectivePoint: O,
|
|
58259
58259
|
Signature: N,
|
|
58260
58260
|
utils: D
|
|
@@ -58462,7 +58462,7 @@ function Sn() {
|
|
|
58462
58462
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.encodeToCurve = e.hashToCurve = e.secp256k1_hasher = e.schnorr = e.secp256k1 = void 0;
|
|
58463
58463
|
const t = /* @__PURE__ */ V_(), r = /* @__PURE__ */ Yn(), n = /* @__PURE__ */ khe(), a = /* @__PURE__ */ xhe(), o = /* @__PURE__ */ Vu(), i = /* @__PURE__ */ nc(), s = /* @__PURE__ */ zU(), c = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), u = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), l = BigInt(0), d = BigInt(1), f = BigInt(2), h = (q, H) => (q + H / f) / H;
|
|
58464
58464
|
function b(q) {
|
|
58465
|
-
const H = c, N = BigInt(3), D = BigInt(6), U = BigInt(11), G = BigInt(22), Q = BigInt(23), K = BigInt(44), Z = BigInt(88), J = q * q * q % H, Y = J * J * q % H, ae = (0, o.pow2)(Y, N, H) * Y % H, re = (0, o.pow2)(ae, N, H) * Y % H, ee = (0, o.pow2)(re, f, H) * J % H, se = (0, o.pow2)(ee, U, H) * ee % H,
|
|
58465
|
+
const H = c, N = BigInt(3), D = BigInt(6), U = BigInt(11), G = BigInt(22), Q = BigInt(23), K = BigInt(44), Z = BigInt(88), J = q * q * q % H, Y = J * J * q % H, ae = (0, o.pow2)(Y, N, H) * Y % H, re = (0, o.pow2)(ae, N, H) * Y % H, ee = (0, o.pow2)(re, f, H) * J % H, se = (0, o.pow2)(ee, U, H) * ee % H, ve = (0, o.pow2)(se, G, H) * se % H, le = (0, o.pow2)(ve, K, H) * ve % H, pe = (0, o.pow2)(le, Z, H) * le % H, ye = (0, o.pow2)(pe, K, H) * ve % H, we = (0, o.pow2)(ye, N, H) * Y % H, _e = (0, o.pow2)(we, Q, H) * se % H, ke = (0, o.pow2)(_e, D, H) * J % H, qe = (0, o.pow2)(ke, f, H);
|
|
58466
58466
|
if (!m.eql(m.sqr(qe), q))
|
|
58467
58467
|
throw new Error("Cannot find square root");
|
|
58468
58468
|
return qe;
|
|
@@ -59750,7 +59750,7 @@ function $_() {
|
|
|
59750
59750
|
phase: "beforeFillTransaction"
|
|
59751
59751
|
}), S ??= y.nonce);
|
|
59752
59752
|
const L = ((P.includes("blobVersionedHashes") || P.includes("sidecars")) && y.kzg && y.blobs || e.supportsFillTransaction.get(_.uid) === !1 || !["fees", "gas"].some((Q) => P.includes(Q)) ? !1 : !!(P.includes("chainId") && typeof y.chainId != "number" || P.includes("nonce") && typeof S != "number" || P.includes("fees") && typeof y.gasPrice != "bigint" && (typeof y.maxFeePerGas != "bigint" || typeof y.maxPriorityFeePerGas != "bigint") || P.includes("gas") && typeof y.gas != "bigint")) ? await (0, d.getAction)(_, m.fillTransaction, "fillTransaction")({ ...y, nonce: S }).then((G) => {
|
|
59753
|
-
const { chainId: Q, from: K, gas: Z, gasPrice: J, nonce: Y, maxFeePerBlobGas: ae, maxFeePerGas: re, maxPriorityFeePerGas: ee, type: se, ...
|
|
59753
|
+
const { chainId: Q, from: K, gas: Z, gasPrice: J, nonce: Y, maxFeePerBlobGas: ae, maxFeePerGas: re, maxPriorityFeePerGas: ee, type: se, ...ve } = G.transaction;
|
|
59754
59754
|
return e.supportsFillTransaction.set(_.uid, !0), {
|
|
59755
59755
|
...y,
|
|
59756
59756
|
...K ? { from: K } : {},
|
|
@@ -59762,7 +59762,7 @@ function $_() {
|
|
|
59762
59762
|
...typeof ae < "u" ? { maxFeePerBlobGas: ae } : {},
|
|
59763
59763
|
...typeof re < "u" ? { maxFeePerGas: re } : {},
|
|
59764
59764
|
...typeof ee < "u" ? { maxPriorityFeePerGas: ee } : {},
|
|
59765
|
-
..."nonceKey" in
|
|
59765
|
+
..."nonceKey" in ve && typeof ve.nonceKey < "u" ? { nonceKey: ve.nonceKey } : {}
|
|
59766
59766
|
};
|
|
59767
59767
|
}).catch((G) => {
|
|
59768
59768
|
const Q = G;
|
|
@@ -60408,7 +60408,7 @@ var ri = {}, VH;
|
|
|
60408
60408
|
function Uhe() {
|
|
60409
60409
|
if (VH) return ri;
|
|
60410
60410
|
VH = 1, Object.defineProperty(ri, "__esModule", { value: !0 }), ri.assertSize = t, ri.assertStartOffset = r, ri.assertEndOffset = n, ri.pad = a, ri.trim = o;
|
|
60411
|
-
const e =
|
|
60411
|
+
const e = Qe();
|
|
60412
60412
|
function t(i, s) {
|
|
60413
60413
|
if (e.size(i) > s)
|
|
60414
60414
|
throw new e.SizeOverflowError({
|
|
@@ -60474,7 +60474,7 @@ var KH;
|
|
|
60474
60474
|
function hn() {
|
|
60475
60475
|
if (KH) return et;
|
|
60476
60476
|
KH = 1, Object.defineProperty(et, "__esModule", { value: !0 }), et.SizeExceedsPaddingSizeError = et.SliceOffsetOutOfBoundsError = et.SizeOverflowError = et.InvalidBytesTypeError = et.InvalidBytesBooleanError = void 0, et.assert = c, et.concat = u, et.from = l, et.fromArray = d, et.fromBoolean = f, et.fromHex = h, et.fromNumber = b, et.fromString = m, et.isEqual = g, et.padLeft = C, et.padRight = _, et.random = w, et.size = y, et.slice = E, et.toBigInt = k, et.toBoolean = x, et.toHex = P, et.toNumber = j, et.toString = A, et.trimLeft = I, et.trimRight = O, et.validate = S;
|
|
60477
|
-
const e = /* @__PURE__ */ nc(), t = Qt(), r =
|
|
60477
|
+
const e = /* @__PURE__ */ nc(), t = Qt(), r = Qe(), n = Mhe(), a = Uhe(), o = r5(), i = new TextDecoder(), s = new TextEncoder();
|
|
60478
60478
|
function c(N) {
|
|
60479
60479
|
if (!(N instanceof Uint8Array)) {
|
|
60480
60480
|
if (!N)
|
|
@@ -60878,7 +60878,7 @@ var Df = {}, QH;
|
|
|
60878
60878
|
function wLe() {
|
|
60879
60879
|
if (QH) return Df;
|
|
60880
60880
|
QH = 1, Object.defineProperty(Df, "__esModule", { value: !0 }), Df.fromRpc = t, Df.toRpc = r;
|
|
60881
|
-
const e =
|
|
60881
|
+
const e = Qe();
|
|
60882
60882
|
function t(n) {
|
|
60883
60883
|
return {
|
|
60884
60884
|
...n,
|
|
@@ -60901,7 +60901,7 @@ var XH;
|
|
|
60901
60901
|
function qhe() {
|
|
60902
60902
|
if (XH) return qf;
|
|
60903
60903
|
XH = 1, Object.defineProperty(qf, "__esModule", { value: !0 }), qf.fromRpc = r, qf.toRpc = n;
|
|
60904
|
-
const e =
|
|
60904
|
+
const e = Qe(), t = wLe();
|
|
60905
60905
|
function r(a) {
|
|
60906
60906
|
return {
|
|
60907
60907
|
...a.baseFeePerGas && {
|
|
@@ -63346,15 +63346,15 @@ function o5() {
|
|
|
63346
63346
|
fG = 1, Object.defineProperty(Uf, "__esModule", { value: !0 }), Uf.call = y, Uf.getRevertErrorData = j;
|
|
63347
63347
|
const e = /* @__PURE__ */ gi(), t = /* @__PURE__ */ qhe(), r = Et(), n = Ti(), a = ELe(), o = n5(), i = Fe(), s = ic(), c = wi(), u = Ao(), l = a5(), d = Zr(), f = Po(), h = Ce(), b = uP(), m = jo(), g = Er(), C = JU(), _ = DU(), w = Bn();
|
|
63348
63348
|
async function y(A, I) {
|
|
63349
|
-
const { account: O = A.account, authorizationList: S, batch: z = !!A.batch?.multicall, blockNumber: L, blockTag: F = A.experimental_blockTag ?? "latest", accessList: q, blobs: H, blockOverrides: N, code: D, data: U, factory: G, factoryData: Q, gas: K, gasPrice: Z, maxFeePerBlobGas: J, maxFeePerGas: Y, maxPriorityFeePerGas: ae, nonce: re, to: ee, value: se, stateOverride:
|
|
63349
|
+
const { account: O = A.account, authorizationList: S, batch: z = !!A.batch?.multicall, blockNumber: L, blockTag: F = A.experimental_blockTag ?? "latest", accessList: q, blobs: H, blockOverrides: N, code: D, data: U, factory: G, factoryData: Q, gas: K, gasPrice: Z, maxFeePerBlobGas: J, maxFeePerGas: Y, maxPriorityFeePerGas: ae, nonce: re, to: ee, value: se, stateOverride: ve, ...le } = I, pe = O ? (0, r.parseAccount)(O) : void 0;
|
|
63350
63350
|
if (D && (G || Q))
|
|
63351
63351
|
throw new i.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
|
|
63352
63352
|
if (D && ee)
|
|
63353
63353
|
throw new i.BaseError("Cannot provide both `code` & `to` as parameters.");
|
|
63354
|
-
const ye = D && U,
|
|
63354
|
+
const ye = D && U, we = G && Q && ee && U, _e = ye || we, ke = ye ? x({
|
|
63355
63355
|
code: D,
|
|
63356
63356
|
data: U
|
|
63357
|
-
}) :
|
|
63357
|
+
}) : we ? P({
|
|
63358
63358
|
data: U,
|
|
63359
63359
|
factory: G,
|
|
63360
63360
|
factoryData: Q,
|
|
@@ -63362,7 +63362,7 @@ function o5() {
|
|
|
63362
63362
|
}) : U;
|
|
63363
63363
|
try {
|
|
63364
63364
|
(0, w.assertRequest)(I);
|
|
63365
|
-
const he = (typeof L == "bigint" ? (0, h.numberToHex)(L) : void 0) || F, ue = N ? t.toRpc(N) : void 0, Je = (0, _.serializeStateOverride)(
|
|
63365
|
+
const he = (typeof L == "bigint" ? (0, h.numberToHex)(L) : void 0) || F, ue = N ? t.toRpc(N) : void 0, Je = (0, _.serializeStateOverride)(ve), nt = A.chain?.formatters?.transactionRequest?.format, gt = (nt || g.formatTransactionRequest)({
|
|
63366
63366
|
...(0, m.extract)(le, { format: nt }),
|
|
63367
63367
|
accessList: q,
|
|
63368
63368
|
account: pe,
|
|
@@ -66822,7 +66822,7 @@ var fs = {}, ZV;
|
|
|
66822
66822
|
function na() {
|
|
66823
66823
|
if (ZV) return fs;
|
|
66824
66824
|
ZV = 1, Object.defineProperty(fs, "__esModule", { value: !0 }), fs.keccak256 = o, fs.ripemd160 = i, fs.sha256 = s, fs.validate = c;
|
|
66825
|
-
const e = /* @__PURE__ */ r0e(), t = /* @__PURE__ */ vhe(), r = /* @__PURE__ */ She(), n = hn(), a =
|
|
66825
|
+
const e = /* @__PURE__ */ r0e(), t = /* @__PURE__ */ vhe(), r = /* @__PURE__ */ She(), n = hn(), a = Qe();
|
|
66826
66826
|
function o(u, l = {}) {
|
|
66827
66827
|
const { as: d = typeof u == "string" ? "Hex" : "Bytes" } = l, f = (0, t.keccak_256)(n.from(u));
|
|
66828
66828
|
return d === "Bytes" ? f : a.fromBytes(f);
|
|
@@ -66844,7 +66844,7 @@ var Nt = {}, QV;
|
|
|
66844
66844
|
function vP() {
|
|
66845
66845
|
if (QV) return Nt;
|
|
66846
66846
|
QV = 1, Object.defineProperty(Nt, "__esModule", { value: !0 }), Nt.InvalidSerializedSizeError = Nt.InvalidUncompressedPrefixError = Nt.InvalidCompressedPrefixError = Nt.InvalidPrefixError = Nt.InvalidError = void 0, Nt.assert = a, Nt.compress = o, Nt.from = i, Nt.fromBytes = s, Nt.fromHex = c, Nt.toBytes = u, Nt.toHex = l, Nt.validate = d;
|
|
66847
|
-
const e = hn(), t = Qt(), r =
|
|
66847
|
+
const e = hn(), t = Qt(), r = Qe(), n = r5();
|
|
66848
66848
|
function a(C, _ = {}) {
|
|
66849
66849
|
const { compressed: w } = _, { prefix: y, x: E, y: k } = C;
|
|
66850
66850
|
if (w === !1 || typeof E == "bigint" && typeof k == "bigint") {
|
|
@@ -67090,7 +67090,7 @@ var YV;
|
|
|
67090
67090
|
function KLe() {
|
|
67091
67091
|
if (YV) return Pt;
|
|
67092
67092
|
YV = 1, Object.defineProperty(Pt, "__esModule", { value: !0 }), Pt.decodeParameter = i, Pt.decodeAddress = u, Pt.decodeArray = l, Pt.decodeBool = d, Pt.decodeBytes = f, Pt.decodeNumber = h, Pt.decodeTuple = b, Pt.decodeString = m, Pt.prepareParameters = g, Pt.prepareParameter = C, Pt.encode = _, Pt.encodeAddress = w, Pt.encodeArray = y, Pt.encodeBytes = E, Pt.encodeBoolean = k, Pt.encodeNumber = x, Pt.encodeString = P, Pt.encodeTuple = j, Pt.getArrayComponents = A, Pt.hasDynamicChild = I;
|
|
67093
|
-
const e = Xu(), t = ji(), r = hn(), n = Qt(), a =
|
|
67093
|
+
const e = Xu(), t = ji(), r = hn(), n = Qt(), a = Qe(), o = Cq();
|
|
67094
67094
|
function i(O, S, z) {
|
|
67095
67095
|
const { checksumAddress: L, staticPosition: F } = z, q = A(S.type);
|
|
67096
67096
|
if (q) {
|
|
@@ -67575,7 +67575,7 @@ var eW;
|
|
|
67575
67575
|
function Xu() {
|
|
67576
67576
|
if (eW) return At;
|
|
67577
67577
|
eW = 1, Object.defineProperty(At, "__esModule", { value: !0 }), At.InvalidTypeError = At.InvalidArrayError = At.LengthMismatchError = At.BytesSizeMismatchError = At.ArrayLengthMismatchError = At.ZeroDataError = At.DataSizeTooSmallError = void 0, At.decode = c, At.encode = u, At.encodePacked = l, At.format = d, At.from = f;
|
|
67578
|
-
const e = /* @__PURE__ */ gi(), t = ji(), r = hn(), n = Qt(), a =
|
|
67578
|
+
const e = /* @__PURE__ */ gi(), t = ji(), r = hn(), n = Qt(), a = Qe(), o = KLe(), i = m0e(), s = Cq();
|
|
67579
67579
|
function c(y, E, k = {}) {
|
|
67580
67580
|
const { as: x = "Array", checksumAddress: P = !1 } = k, j = typeof E == "string" ? r.fromHex(E) : E, A = i.create(j);
|
|
67581
67581
|
if (r.size(j) === 0 && y.length > 0)
|
|
@@ -67765,7 +67765,7 @@ var Ir = {}, En = {}, tW;
|
|
|
67765
67765
|
function wP() {
|
|
67766
67766
|
if (tW) return En;
|
|
67767
67767
|
tW = 1, Object.defineProperty(En, "__esModule", { value: !0 }), En.toBytes = a, En.toHex = o, En.to = i, En.decodeRlpCursor = s, En.readLength = c, En.readList = u, En.from = l, En.fromBytes = d, En.fromHex = f;
|
|
67768
|
-
const e = hn(), t = Qt(), r =
|
|
67768
|
+
const e = hn(), t = Qt(), r = Qe(), n = m0e();
|
|
67769
67769
|
function a(C) {
|
|
67770
67770
|
return i(C, "Bytes");
|
|
67771
67771
|
}
|
|
@@ -67869,7 +67869,7 @@ var tt = {}, rW;
|
|
|
67869
67869
|
function cc() {
|
|
67870
67870
|
if (rW) return tt;
|
|
67871
67871
|
rW = 1, Object.defineProperty(tt, "__esModule", { value: !0 }), tt.InvalidVError = tt.InvalidYParityError = tt.InvalidSError = tt.InvalidRError = tt.MissingPropertiesError = tt.InvalidSerializedSizeError = void 0, tt.assert = i, tt.fromBytes = s, tt.fromHex = c, tt.extract = u, tt.from = l, tt.fromDerBytes = d, tt.fromDerHex = f, tt.fromLegacy = h, tt.fromRpc = b, tt.fromTuple = m, tt.toBytes = g, tt.toHex = C, tt.toDerBytes = _, tt.toDerHex = w, tt.toLegacy = y, tt.toRpc = E, tt.toTuple = k, tt.validate = x, tt.vToYParity = P, tt.yParityToV = j;
|
|
67872
|
-
const e = /* @__PURE__ */ Sn(), t = hn(), r = Qt(), n =
|
|
67872
|
+
const e = /* @__PURE__ */ Sn(), t = hn(), r = Qt(), n = Qe(), a = r5(), o = Cq();
|
|
67873
67873
|
function i(F, q = {}) {
|
|
67874
67874
|
const { recovered: H } = q;
|
|
67875
67875
|
if (typeof F.r > "u")
|
|
@@ -68093,7 +68093,7 @@ var nW;
|
|
|
68093
68093
|
function _q() {
|
|
68094
68094
|
if (nW) return Ir;
|
|
68095
68095
|
nW = 1, Object.defineProperty(Ir, "__esModule", { value: !0 }), Ir.from = a, Ir.fromRpc = o, Ir.fromRpcList = i, Ir.fromTuple = s, Ir.fromTupleList = c, Ir.getSignPayload = u, Ir.hash = l, Ir.toRpc = d, Ir.toRpcList = f, Ir.toTuple = h, Ir.toTupleList = b;
|
|
68096
|
-
const e = na(), t =
|
|
68096
|
+
const e = na(), t = Qe(), r = wP(), n = cc();
|
|
68097
68097
|
function a(m, g = {}) {
|
|
68098
68098
|
return typeof m.chainId == "string" ? o(m) : { ...m, ...g.signature };
|
|
68099
68099
|
}
|
|
@@ -68179,7 +68179,7 @@ var oW;
|
|
|
68179
68179
|
function kq() {
|
|
68180
68180
|
if (oW) return en;
|
|
68181
68181
|
oW = 1, Object.defineProperty(en, "__esModule", { value: !0 }), en.noble = void 0, en.createKeyPair = i, en.getPublicKey = s, en.getSharedSecret = c, en.randomPrivateKey = u, en.recoverAddress = l, en.recoverPublicKey = d, en.sign = f, en.verify = h;
|
|
68182
|
-
const e = /* @__PURE__ */ Sn(), t = ji(), r = hn(), n =
|
|
68182
|
+
const e = /* @__PURE__ */ Sn(), t = ji(), r = hn(), n = Qe(), a = h0e(), o = vP();
|
|
68183
68183
|
en.noble = e.secp256k1;
|
|
68184
68184
|
function i(b = {}) {
|
|
68185
68185
|
const { as: m = "Hex" } = b, g = u({ as: m }), C = s({ privateKey: g });
|
|
@@ -68229,7 +68229,7 @@ var iW;
|
|
|
68229
68229
|
function ZLe() {
|
|
68230
68230
|
return iW || (iW = 1, (function(e) {
|
|
68231
68231
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.InvalidWrappedSignatureError = e.suffixParameters = e.magicBytes = void 0, e.assert = s, e.from = c, e.unwrap = u, e.wrap = l, e.validate = d;
|
|
68232
|
-
const t = Xu(), r = _q(), n = Qt(), a =
|
|
68232
|
+
const t = Xu(), r = _q(), n = Qt(), a = Qe(), o = kq(), i = cc();
|
|
68233
68233
|
e.magicBytes = "0x8010801080108010801080108010801080108010801080108010801080108010", e.suffixParameters = t.from("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");
|
|
68234
68234
|
function s(h) {
|
|
68235
68235
|
if (typeof h == "string") {
|
|
@@ -68992,9 +68992,9 @@ function Pq() {
|
|
|
68992
68992
|
Object.defineProperty(e, "getCallError", { enumerable: !0, get: function() {
|
|
68993
68993
|
return se.getCallError;
|
|
68994
68994
|
} });
|
|
68995
|
-
var
|
|
68995
|
+
var ve = Ci();
|
|
68996
68996
|
Object.defineProperty(e, "getContractError", { enumerable: !0, get: function() {
|
|
68997
|
-
return
|
|
68997
|
+
return ve.getContractError;
|
|
68998
68998
|
} });
|
|
68999
68999
|
var le = jhe();
|
|
69000
69000
|
Object.defineProperty(e, "getEstimateGasError", { enumerable: !0, get: function() {
|
|
@@ -69010,11 +69010,11 @@ function Pq() {
|
|
|
69010
69010
|
Object.defineProperty(e, "getTransactionError", { enumerable: !0, get: function() {
|
|
69011
69011
|
return ye.getTransactionError;
|
|
69012
69012
|
} });
|
|
69013
|
-
var
|
|
69013
|
+
var we = ac();
|
|
69014
69014
|
Object.defineProperty(e, "defineBlock", { enumerable: !0, get: function() {
|
|
69015
|
-
return
|
|
69015
|
+
return we.defineBlock;
|
|
69016
69016
|
} }), Object.defineProperty(e, "formatBlock", { enumerable: !0, get: function() {
|
|
69017
|
-
return
|
|
69017
|
+
return we.formatBlock;
|
|
69018
69018
|
} });
|
|
69019
69019
|
var _e = jo();
|
|
69020
69020
|
Object.defineProperty(e, "extract", { enumerable: !0, get: function() {
|
|
@@ -69625,7 +69625,7 @@ var RW;
|
|
|
69625
69625
|
function A0e() {
|
|
69626
69626
|
if (RW) return xr;
|
|
69627
69627
|
RW = 1, Object.defineProperty(xr, "__esModule", { value: !0 }), xr.InvalidSelectorSizeError = xr.NotFoundError = xr.AmbiguityError = void 0, xr.format = o, xr.from = i, xr.fromAbi = s, xr.getSelector = c, xr.getSignature = u, xr.getSignatureHash = l;
|
|
69628
|
-
const e = /* @__PURE__ */ gi(), t = Qt(), r = na(), n =
|
|
69628
|
+
const e = /* @__PURE__ */ gi(), t = Qt(), r = na(), n = Qe(), a = eHe();
|
|
69629
69629
|
function o(b) {
|
|
69630
69630
|
return e.formatAbiItem(b);
|
|
69631
69631
|
}
|
|
@@ -69767,7 +69767,7 @@ var MW;
|
|
|
69767
69767
|
function tHe() {
|
|
69768
69768
|
if (MW) return ai;
|
|
69769
69769
|
MW = 1, Object.defineProperty(ai, "__esModule", { value: !0 }), ai.decode = a, ai.encode = o, ai.format = i, ai.from = s, ai.fromAbi = c;
|
|
69770
|
-
const e = /* @__PURE__ */ gi(), t = A0e(), r = Xu(), n =
|
|
69770
|
+
const e = /* @__PURE__ */ gi(), t = A0e(), r = Xu(), n = Qe();
|
|
69771
69771
|
function a(...u) {
|
|
69772
69772
|
const [l, d] = (() => {
|
|
69773
69773
|
if (Array.isArray(u[0])) {
|
|
@@ -69809,7 +69809,7 @@ var Hn = {}, UW;
|
|
|
69809
69809
|
function rHe() {
|
|
69810
69810
|
if (UW) return Hn;
|
|
69811
69811
|
UW = 1, Object.defineProperty(Hn, "__esModule", { value: !0 }), Hn.decodeData = a, Hn.decodeResult = o, Hn.encodeData = i, Hn.encodeResult = s, Hn.format = c, Hn.from = u, Hn.fromAbi = l, Hn.getSelector = d;
|
|
69812
|
-
const e = /* @__PURE__ */ gi(), t = A0e(), r = Xu(), n =
|
|
69812
|
+
const e = /* @__PURE__ */ gi(), t = A0e(), r = Xu(), n = Qe();
|
|
69813
69813
|
function a(...f) {
|
|
69814
69814
|
const [h, b] = (() => {
|
|
69815
69815
|
if (Array.isArray(f[0])) {
|
|
@@ -69904,7 +69904,7 @@ function nHe() {
|
|
|
69904
69904
|
...ee,
|
|
69905
69905
|
data: ee.abi ? (0, i.encodeFunctionData)(ee) : ee.data
|
|
69906
69906
|
});
|
|
69907
|
-
return se.map(({ address:
|
|
69907
|
+
return se.map(({ address: ve, storageKeys: le }) => le.length > 0 ? ve : null);
|
|
69908
69908
|
})).then((ee) => ee.flat().filter(Boolean)) : [], P = await (0, u.simulateBlocks)(f, {
|
|
69909
69909
|
blockNumber: b,
|
|
69910
69910
|
blockTag: m,
|
|
@@ -70018,10 +70018,10 @@ function nHe() {
|
|
|
70018
70018
|
validation: y
|
|
70019
70019
|
}), j = _ ? P[2] : P[0], [A, I, , O, S, z, L, F] = _ ? P : [], { calls: q, ...H } = j, N = q.slice(0, -1) ?? [], D = A?.calls ?? [], U = I?.calls ?? [], G = [...D, ...U].map((ee) => ee.status === "success" ? (0, s.hexToBigInt)(ee.data) : null), Q = O?.calls ?? [], K = S?.calls ?? [], Z = [...Q, ...K].map((ee) => ee.status === "success" ? (0, s.hexToBigInt)(ee.data) : null), J = (z?.calls ?? []).map((ee) => ee.status === "success" ? ee.result : null), Y = (F?.calls ?? []).map((ee) => ee.status === "success" ? ee.result : null), ae = (L?.calls ?? []).map((ee) => ee.status === "success" ? ee.result : null), re = [];
|
|
70020
70020
|
for (const [ee, se] of Z.entries()) {
|
|
70021
|
-
const
|
|
70022
|
-
if (typeof se != "bigint" || typeof
|
|
70021
|
+
const ve = G[ee];
|
|
70022
|
+
if (typeof se != "bigint" || typeof ve != "bigint")
|
|
70023
70023
|
continue;
|
|
70024
|
-
const le = J[ee - 1], pe = Y[ee - 1], ye = ae[ee - 1],
|
|
70024
|
+
const le = J[ee - 1], pe = Y[ee - 1], ye = ae[ee - 1], we = ee === 0 ? {
|
|
70025
70025
|
address: n.ethAddress,
|
|
70026
70026
|
decimals: 18,
|
|
70027
70027
|
symbol: "ETH"
|
|
@@ -70030,12 +70030,12 @@ function nHe() {
|
|
|
70030
70030
|
decimals: ye || le ? Number(le ?? 1) : void 0,
|
|
70031
70031
|
symbol: pe ?? void 0
|
|
70032
70032
|
};
|
|
70033
|
-
re.some((_e) => _e.token.address ===
|
|
70034
|
-
token:
|
|
70033
|
+
re.some((_e) => _e.token.address === we.address) || re.push({
|
|
70034
|
+
token: we,
|
|
70035
70035
|
value: {
|
|
70036
|
-
pre:
|
|
70036
|
+
pre: ve,
|
|
70037
70037
|
post: se,
|
|
70038
|
-
diff: se -
|
|
70038
|
+
diff: se - ve
|
|
70039
70039
|
}
|
|
70040
70040
|
});
|
|
70041
70041
|
}
|
|
@@ -70051,7 +70051,7 @@ var eu = {}, np = {}, XO = {}, FW;
|
|
|
70051
70051
|
function aHe() {
|
|
70052
70052
|
return FW || (FW = 1, (function(e) {
|
|
70053
70053
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.InvalidWrappedSignatureError = e.universalSignatureValidatorAbi = e.universalSignatureValidatorBytecode = e.magicBytes = void 0, e.assert = a, e.from = o, e.unwrap = i, e.wrap = s, e.validate = c;
|
|
70054
|
-
const t = Xu(), r = Qt(), n =
|
|
70054
|
+
const t = Xu(), r = Qt(), n = Qe();
|
|
70055
70055
|
e.magicBytes = "0x6492649264926492649264926492649264926492649264926492649264926492", e.universalSignatureValidatorBytecode = "0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572", e.universalSignatureValidatorAbi = [
|
|
70056
70056
|
{
|
|
70057
70057
|
inputs: [
|
|
@@ -70861,7 +70861,7 @@ var eK;
|
|
|
70861
70861
|
function O0e() {
|
|
70862
70862
|
if (eK) return J8;
|
|
70863
70863
|
eK = 1, Object.defineProperty(J8, "__esModule", { value: !0 }), J8.publicActions = qe;
|
|
70864
|
-
const e = xLe(), t = ALe(), r = PLe(), n = SLe(), a = Whe(), o = o5(), i = Khe(), s = BLe(), c = OU(), u = Zhe(), l = Qhe(), d = Rhe(), f = Phe(), h = KU(), b = Ahe(), m = WU(), g = OLe(), C = ILe(), _ = oc(), w = i5(), y = RLe(), E = xi(), k = dq(), x = QU(), P = ULe(), j = zLe(), A = dP(), I = FLe(), O = HU(), S = ZU(), z = XLe(), L = JLe(), F = Sq(), q = YLe(), H = aP(), N = T0e(), D = $Le(), U = Ba(), G = j0e(), Q = nHe(), K = zhe(), Z = fP(), J = s5(), Y = iHe(), ae = sHe(), re = B0e(), ee = S0e(), se = cHe(),
|
|
70864
|
+
const e = xLe(), t = ALe(), r = PLe(), n = SLe(), a = Whe(), o = o5(), i = Khe(), s = BLe(), c = OU(), u = Zhe(), l = Qhe(), d = Rhe(), f = Phe(), h = KU(), b = Ahe(), m = WU(), g = OLe(), C = ILe(), _ = oc(), w = i5(), y = RLe(), E = xi(), k = dq(), x = QU(), P = ULe(), j = zLe(), A = dP(), I = FLe(), O = HU(), S = ZU(), z = XLe(), L = JLe(), F = Sq(), q = YLe(), H = aP(), N = T0e(), D = $Le(), U = Ba(), G = j0e(), Q = nHe(), K = zhe(), Z = fP(), J = s5(), Y = iHe(), ae = sHe(), re = B0e(), ee = S0e(), se = cHe(), ve = Nhe(), le = uHe(), pe = lHe(), ye = pHe(), we = $_(), _e = nq(), ke = Bq();
|
|
70865
70865
|
function qe(he) {
|
|
70866
70866
|
return {
|
|
70867
70867
|
call: (ue) => (0, o.call)(he, ue),
|
|
@@ -70902,7 +70902,7 @@ function O0e() {
|
|
|
70902
70902
|
getTransactionCount: (ue) => (0, H.getTransactionCount)(he, ue),
|
|
70903
70903
|
getTransactionReceipt: (ue) => (0, N.getTransactionReceipt)(he, ue),
|
|
70904
70904
|
multicall: (ue) => (0, D.multicall)(he, ue),
|
|
70905
|
-
prepareTransactionRequest: (ue) => (0,
|
|
70905
|
+
prepareTransactionRequest: (ue) => (0, we.prepareTransactionRequest)(he, ue),
|
|
70906
70906
|
readContract: (ue) => (0, U.readContract)(he, ue),
|
|
70907
70907
|
sendRawTransaction: (ue) => (0, _e.sendRawTransaction)(he, ue),
|
|
70908
70908
|
sendRawTransactionSync: (ue) => (0, ke.sendRawTransactionSync)(he, ue),
|
|
@@ -70918,7 +70918,7 @@ function O0e() {
|
|
|
70918
70918
|
waitForTransactionReceipt: (ue) => (0, re.waitForTransactionReceipt)(he, ue),
|
|
70919
70919
|
watchBlocks: (ue) => (0, se.watchBlocks)(he, ue),
|
|
70920
70920
|
watchBlockNumber: (ue) => (0, ee.watchBlockNumber)(he, ue),
|
|
70921
|
-
watchContractEvent: (ue) => (0,
|
|
70921
|
+
watchContractEvent: (ue) => (0, ve.watchContractEvent)(he, ue),
|
|
70922
70922
|
watchEvent: (ue) => (0, le.watchEvent)(he, ue),
|
|
70923
70923
|
watchPendingTransactions: (ue) => (0, pe.watchPendingTransactions)(he, ue)
|
|
70924
70924
|
};
|
|
@@ -71589,25 +71589,25 @@ function M0e() {
|
|
|
71589
71589
|
to: J,
|
|
71590
71590
|
type: U,
|
|
71591
71591
|
value: G
|
|
71592
|
-
}, "sendTransaction"), se = C.get(w.uid),
|
|
71592
|
+
}, "sendTransaction"), se = C.get(w.uid), ve = se ? "wallet_sendTransaction" : "eth_sendTransaction", le = await (async () => {
|
|
71593
71593
|
try {
|
|
71594
71594
|
return await w.request({
|
|
71595
|
-
method:
|
|
71595
|
+
method: ve,
|
|
71596
71596
|
params: [ee]
|
|
71597
71597
|
}, { retryCount: 0 });
|
|
71598
71598
|
} catch (ye) {
|
|
71599
71599
|
if (se === !1)
|
|
71600
71600
|
throw ye;
|
|
71601
|
-
const
|
|
71602
|
-
if (
|
|
71601
|
+
const we = ye;
|
|
71602
|
+
if (we.name === "InvalidInputRpcError" || we.name === "InvalidParamsRpcError" || we.name === "MethodNotFoundRpcError" || we.name === "MethodNotSupportedRpcError")
|
|
71603
71603
|
return await w.request({
|
|
71604
71604
|
method: "wallet_sendTransaction",
|
|
71605
71605
|
params: [ee]
|
|
71606
71606
|
}, { retryCount: 0 }).then((_e) => (C.set(w.uid, !0), _e)).catch((_e) => {
|
|
71607
71607
|
const ke = _e;
|
|
71608
|
-
throw ke.name === "MethodNotFoundRpcError" || ke.name === "MethodNotSupportedRpcError" ? (C.set(w.uid, !1),
|
|
71608
|
+
throw ke.name === "MethodNotFoundRpcError" || ke.name === "MethodNotSupportedRpcError" ? (C.set(w.uid, !1), we) : ke;
|
|
71609
71609
|
});
|
|
71610
|
-
throw
|
|
71610
|
+
throw we;
|
|
71611
71611
|
}
|
|
71612
71612
|
})(), pe = await (0, l.getAction)(w, b.waitForTransactionReceipt, "waitForTransactionReceipt")({
|
|
71613
71613
|
checkReplacement: !1,
|
|
@@ -73066,9 +73066,9 @@ function u5() {
|
|
|
73066
73066
|
Object.defineProperty(e, "decodeErrorResult", { enumerable: !0, get: function() {
|
|
73067
73067
|
return se.decodeErrorResult;
|
|
73068
73068
|
} });
|
|
73069
|
-
var
|
|
73069
|
+
var ve = e5();
|
|
73070
73070
|
Object.defineProperty(e, "decodeEventLog", { enumerable: !0, get: function() {
|
|
73071
|
-
return
|
|
73071
|
+
return ve.decodeEventLog;
|
|
73072
73072
|
} });
|
|
73073
73073
|
var le = YU();
|
|
73074
73074
|
Object.defineProperty(e, "decodeFunctionData", { enumerable: !0, get: function() {
|
|
@@ -73082,9 +73082,9 @@ function u5() {
|
|
|
73082
73082
|
Object.defineProperty(e, "encodeAbiParameters", { enumerable: !0, get: function() {
|
|
73083
73083
|
return ye.encodeAbiParameters;
|
|
73084
73084
|
} });
|
|
73085
|
-
var
|
|
73085
|
+
var we = a5();
|
|
73086
73086
|
Object.defineProperty(e, "encodeDeployData", { enumerable: !0, get: function() {
|
|
73087
|
-
return
|
|
73087
|
+
return we.encodeDeployData;
|
|
73088
73088
|
} });
|
|
73089
73089
|
var _e = $U();
|
|
73090
73090
|
Object.defineProperty(e, "encodeErrorResult", { enumerable: !0, get: function() {
|
|
@@ -73712,21 +73712,21 @@ function z0e() {
|
|
|
73712
73712
|
return se;
|
|
73713
73713
|
}), ee = re.length;
|
|
73714
73714
|
for (; ; ) {
|
|
73715
|
-
let se = 0,
|
|
73715
|
+
let se = 0, ve = !0;
|
|
73716
73716
|
for (let le = Y; le < ee; le++) {
|
|
73717
|
-
const pe = re[le], ye = Z * se,
|
|
73718
|
-
if (!Number.isSafeInteger(
|
|
73717
|
+
const pe = re[le], ye = Z * se, we = ye + pe;
|
|
73718
|
+
if (!Number.isSafeInteger(we) || ye / Z !== se || we - pe !== ye)
|
|
73719
73719
|
throw new Error("convertRadix: carry overflow");
|
|
73720
|
-
const _e =
|
|
73721
|
-
se =
|
|
73720
|
+
const _e = we / J;
|
|
73721
|
+
se = we % J;
|
|
73722
73722
|
const ke = Math.floor(_e);
|
|
73723
|
-
if (re[le] = ke, !Number.isSafeInteger(ke) || ke * J + se !==
|
|
73723
|
+
if (re[le] = ke, !Number.isSafeInteger(ke) || ke * J + se !== we)
|
|
73724
73724
|
throw new Error("convertRadix: carry overflow");
|
|
73725
|
-
if (
|
|
73726
|
-
ke ?
|
|
73725
|
+
if (ve)
|
|
73726
|
+
ke ? ve = !1 : Y = le;
|
|
73727
73727
|
else continue;
|
|
73728
73728
|
}
|
|
73729
|
-
if (ae.push(se),
|
|
73729
|
+
if (ae.push(se), ve)
|
|
73730
73730
|
break;
|
|
73731
73731
|
}
|
|
73732
73732
|
for (let se = 0; se < K.length - 1 && K[se] === 0; se++)
|
|
@@ -73747,14 +73747,14 @@ function z0e() {
|
|
|
73747
73747
|
if (/* @__PURE__ */ C(Z, J) > 32)
|
|
73748
73748
|
throw new Error(`convertRadix2: carry overflow from=${Z} to=${J} carryBits=${/* @__PURE__ */ C(Z, J)}`);
|
|
73749
73749
|
let ae = 0, re = 0;
|
|
73750
|
-
const ee = _[Z], se = _[J] - 1,
|
|
73750
|
+
const ee = _[Z], se = _[J] - 1, ve = [];
|
|
73751
73751
|
for (const le of K) {
|
|
73752
73752
|
if (i(le), le >= ee)
|
|
73753
73753
|
throw new Error(`convertRadix2: invalid data word=${le} from=${Z}`);
|
|
73754
73754
|
if (ae = ae << Z | le, re + Z > 32)
|
|
73755
73755
|
throw new Error(`convertRadix2: carry overflow pos=${re} from=${Z}`);
|
|
73756
73756
|
for (re += Z; re >= J; re -= J)
|
|
73757
|
-
|
|
73757
|
+
ve.push((ae >> re - J & se) >>> 0);
|
|
73758
73758
|
const pe = _[re];
|
|
73759
73759
|
if (pe === void 0)
|
|
73760
73760
|
throw new Error("invalid carry");
|
|
@@ -73764,7 +73764,7 @@ function z0e() {
|
|
|
73764
73764
|
throw new Error("Excess padding");
|
|
73765
73765
|
if (!Y && ae > 0)
|
|
73766
73766
|
throw new Error(`Non-zero padding: ${ae}`);
|
|
73767
|
-
return Y && re > 0 &&
|
|
73767
|
+
return Y && re > 0 && ve.push(ae >>> 0), ve;
|
|
73768
73768
|
}
|
|
73769
73769
|
// @__NO_SIDE_EFFECTS__
|
|
73770
73770
|
function y(K) {
|
|
@@ -73909,22 +73909,22 @@ function z0e() {
|
|
|
73909
73909
|
// @__NO_SIDE_EFFECTS__
|
|
73910
73910
|
function q(K) {
|
|
73911
73911
|
const Z = K === "bech32" ? 1 : 734539939, J = /* @__PURE__ */ E(5), Y = J.decode, ae = J.encode, re = k(Y);
|
|
73912
|
-
function ee(ye,
|
|
73913
|
-
o("bech32.encode prefix", ye), t(
|
|
73912
|
+
function ee(ye, we, _e = 90) {
|
|
73913
|
+
o("bech32.encode prefix", ye), t(we) && (we = Array.from(we)), u("bech32.encode", we);
|
|
73914
73914
|
const ke = ye.length;
|
|
73915
73915
|
if (ke === 0)
|
|
73916
73916
|
throw new TypeError(`Invalid prefix length ${ke}`);
|
|
73917
|
-
const qe = ke + 7 +
|
|
73917
|
+
const qe = ke + 7 + we.length;
|
|
73918
73918
|
if (_e !== !1 && qe > _e)
|
|
73919
73919
|
throw new TypeError(`Length ${qe} exceeds limit ${_e}`);
|
|
73920
|
-
const he = ye.toLowerCase(), ue = F(he,
|
|
73921
|
-
return `${he}1${S.encode(
|
|
73920
|
+
const he = ye.toLowerCase(), ue = F(he, we, Z);
|
|
73921
|
+
return `${he}1${S.encode(we)}${ue}`;
|
|
73922
73922
|
}
|
|
73923
|
-
function se(ye,
|
|
73923
|
+
function se(ye, we = 90) {
|
|
73924
73924
|
o("bech32.decode input", ye);
|
|
73925
73925
|
const _e = ye.length;
|
|
73926
|
-
if (_e < 8 ||
|
|
73927
|
-
throw new TypeError(`invalid string length: ${_e} (${ye}). Expected (8..${
|
|
73926
|
+
if (_e < 8 || we !== !1 && _e > we)
|
|
73927
|
+
throw new TypeError(`invalid string length: ${_e} (${ye}). Expected (8..${we})`);
|
|
73928
73928
|
const ke = ye.toLowerCase();
|
|
73929
73929
|
if (ye !== ke && ye !== ye.toUpperCase())
|
|
73930
73930
|
throw new Error("String must be lowercase or uppercase");
|
|
@@ -73939,20 +73939,20 @@ function z0e() {
|
|
|
73939
73939
|
throw new Error(`Invalid checksum in ${ye}: expected "${nt}"`);
|
|
73940
73940
|
return { prefix: he, words: Je };
|
|
73941
73941
|
}
|
|
73942
|
-
const
|
|
73942
|
+
const ve = k(se);
|
|
73943
73943
|
function le(ye) {
|
|
73944
|
-
const { prefix:
|
|
73945
|
-
return { prefix:
|
|
73944
|
+
const { prefix: we, words: _e } = se(ye, !1);
|
|
73945
|
+
return { prefix: we, words: _e, bytes: Y(_e) };
|
|
73946
73946
|
}
|
|
73947
|
-
function pe(ye,
|
|
73948
|
-
return ee(ye, ae(
|
|
73947
|
+
function pe(ye, we) {
|
|
73948
|
+
return ee(ye, ae(we));
|
|
73949
73949
|
}
|
|
73950
73950
|
return {
|
|
73951
73951
|
encode: ee,
|
|
73952
73952
|
decode: se,
|
|
73953
73953
|
encodeFromBytes: pe,
|
|
73954
73954
|
decodeToBytes: le,
|
|
73955
|
-
decodeUnsafe:
|
|
73955
|
+
decodeUnsafe: ve,
|
|
73956
73956
|
fromWords: Y,
|
|
73957
73957
|
fromWordsUnsafe: re,
|
|
73958
73958
|
toWords: ae
|
|
@@ -113707,7 +113707,7 @@ var yie;
|
|
|
113707
113707
|
function tbe() {
|
|
113708
113708
|
if (yie) return Cn;
|
|
113709
113709
|
yie = 1, Object.defineProperty(Cn, "__esModule", { value: !0 }), Cn.noble = void 0, Cn.createKeyPair = o, Cn.getPublicKey = i, Cn.getSharedSecret = s, Cn.randomPrivateKey = c, Cn.recoverPublicKey = u, Cn.sign = l, Cn.verify = d;
|
|
113710
|
-
const e = /* @__PURE__ */ ebe(), t = hn(), r =
|
|
113710
|
+
const e = /* @__PURE__ */ ebe(), t = hn(), r = Qe(), n = h0e(), a = vP();
|
|
113711
113711
|
Cn.noble = e.secp256r1;
|
|
113712
113712
|
function o(f = {}) {
|
|
113713
113713
|
const { as: h = "Hex" } = f, b = c({ as: h }), m = i({ privateKey: b });
|
|
@@ -113754,7 +113754,7 @@ var uI = {}, io = {}, gie;
|
|
|
113754
113754
|
function $tt() {
|
|
113755
113755
|
if (gie) return io;
|
|
113756
113756
|
gie = 1, Object.defineProperty(io, "__esModule", { value: !0 }), io.fromBytes = i, io.fromHex = s, io.fromString = c, io.toBytes = u, io.toHex = l, io.toString = d;
|
|
113757
|
-
const e = hn(), t =
|
|
113757
|
+
const e = hn(), t = Qe(), r = new TextEncoder(), n = new TextDecoder(), a = Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((f, h) => [h, f.charCodeAt(0)])), o = {
|
|
113758
113758
|
...Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((f, h) => [f.charCodeAt(0), h])),
|
|
113759
113759
|
61: 0,
|
|
113760
113760
|
45: 62,
|
|
@@ -113798,7 +113798,7 @@ var Tw = {}, vie;
|
|
|
113798
113798
|
function ert() {
|
|
113799
113799
|
if (vie) return Tw;
|
|
113800
113800
|
vie = 1, Object.defineProperty(Tw, "__esModule", { value: !0 }), Tw.parseAsn1Signature = a, Tw.parseCredentialPublicKey = o;
|
|
113801
|
-
const e = /* @__PURE__ */ ebe(), t =
|
|
113801
|
+
const e = /* @__PURE__ */ ebe(), t = Qe(), r = vP(), n = rbe();
|
|
113802
113802
|
function a(i) {
|
|
113803
113803
|
const s = i[4] === 0 ? 5 : 4, c = s + 32, u = i[c + 2] === 0 ? c + 3 : c + 2, l = BigInt(t.fromBytes(i.slice(s, c))), d = BigInt(t.fromBytes(i.slice(u)));
|
|
113804
113804
|
return {
|
|
@@ -113840,7 +113840,7 @@ var wie;
|
|
|
113840
113840
|
function rbe() {
|
|
113841
113841
|
return wie || (wie = 1, (function(e) {
|
|
113842
113842
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CredentialRequestFailedError = e.CredentialCreationFailedError = e.createChallenge = void 0, e.createCredential = c, e.getAuthenticatorData = u, e.getClientDataJSON = l, e.getCredentialCreationOptions = d, e.getCredentialRequestOptions = f, e.getSignPayload = h, e.sign = b, e.verify = m;
|
|
113843
|
-
const t = $tt(), r = hn(), n = Qt(), a = na(), o =
|
|
113843
|
+
const t = $tt(), r = hn(), n = Qt(), a = na(), o = Qe(), i = ert(), s = tbe();
|
|
113844
113844
|
e.createChallenge = Uint8Array.from([
|
|
113845
113845
|
105,
|
|
113846
113846
|
171,
|
|
@@ -114052,7 +114052,7 @@ var Eie;
|
|
|
114052
114052
|
function l5() {
|
|
114053
114053
|
return Eie || (Eie = 1, (function(e) {
|
|
114054
114054
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.VerificationError = e.InvalidSerializedError = e.MissingPropertiesError = e.CoercionError = e.types = e.magicBytes = void 0, e.assert = f, e.deserialize = h, e.from = b, e.fromRpc = m, e.getType = g, e.serialize = C, e.toRpc = _, e.validate = w, e.verify = y;
|
|
114055
|
-
const t = ji(), r = Qt(), n =
|
|
114055
|
+
const t = ji(), r = Qt(), n = Qe(), a = r5(), o = tbe(), i = kq(), s = cc(), c = rbe(), u = "0x01", l = "0x02", d = "0x03";
|
|
114056
114056
|
e.magicBytes = "0x7777777777777777777777777777777777777777777777777777777777777777", e.types = ["secp256k1", "p256", "webAuthn"];
|
|
114057
114057
|
function f(j) {
|
|
114058
114058
|
const A = g(j);
|
|
@@ -114406,7 +114406,7 @@ var Cie;
|
|
|
114406
114406
|
function TP() {
|
|
114407
114407
|
if (Cie) return Rr;
|
|
114408
114408
|
Cie = 1, Object.defineProperty(Rr, "__esModule", { value: !0 }), Rr.from = a, Rr.fromRpc = o, Rr.fromRpcList = i, Rr.fromTuple = s, Rr.fromTupleList = c, Rr.getSignPayload = u, Rr.hash = l, Rr.toRpc = d, Rr.toRpcList = f, Rr.toTuple = h, Rr.toTupleList = b;
|
|
114409
|
-
const e = na(), t =
|
|
114409
|
+
const e = na(), t = Qe(), r = wP(), n = l5();
|
|
114410
114410
|
function a(m, g = {}) {
|
|
114411
114411
|
return typeof m.chainId == "string" ? o(m) : g.signature ? { ...m, signature: g.signature } : m;
|
|
114412
114412
|
}
|
|
@@ -114482,7 +114482,7 @@ var ba = {}, _ie;
|
|
|
114482
114482
|
function jP() {
|
|
114483
114483
|
if (_ie) return ba;
|
|
114484
114484
|
_ie = 1, Object.defineProperty(ba, "__esModule", { value: !0 }), ba.from = a, ba.fromRpc = o, ba.fromTuple = i, ba.getSignPayload = s, ba.hash = c, ba.toRpc = u, ba.toTuple = l;
|
|
114485
|
-
const e = na(), t =
|
|
114485
|
+
const e = na(), t = Qe(), r = wP(), n = l5();
|
|
114486
114486
|
function a(d, f = {}) {
|
|
114487
114487
|
return typeof d.expiry == "string" ? o(d) : f.signature ? {
|
|
114488
114488
|
...d,
|
|
@@ -114579,7 +114579,7 @@ var Wj = {}, ys = {}, kie;
|
|
|
114579
114579
|
function AP() {
|
|
114580
114580
|
if (kie) return ys;
|
|
114581
114581
|
kie = 1, Object.defineProperty(ys, "__esModule", { value: !0 }), ys.from = o, ys.fromAddress = i, ys.toAddress = s, ys.compute = c;
|
|
114582
|
-
const e = Xu(), t = ji(), r = na(), n =
|
|
114582
|
+
const e = Xu(), t = ji(), r = na(), n = Qe(), a = "0x20c0";
|
|
114583
114583
|
function o(u) {
|
|
114584
114584
|
return typeof u == "bigint" || typeof u == "number" ? BigInt(u) : i(u);
|
|
114585
114585
|
}
|
|
@@ -114607,7 +114607,7 @@ var xie;
|
|
|
114607
114607
|
function trt() {
|
|
114608
114608
|
if (xie) return Wj;
|
|
114609
114609
|
xie = 1, Object.defineProperty(Wj, "__esModule", { value: !0 }), Wj.from = n;
|
|
114610
|
-
const e = na(), t =
|
|
114610
|
+
const e = na(), t = Qe(), r = AP();
|
|
114611
114611
|
function n(a) {
|
|
114612
114612
|
return e.keccak256(t.concat(t.padLeft(r.toAddress(a.userToken), 32), t.padLeft(r.toAddress(a.validatorToken), 32)));
|
|
114613
114613
|
}
|
|
@@ -114680,7 +114680,7 @@ var dI = {}, jie;
|
|
|
114680
114680
|
function nrt() {
|
|
114681
114681
|
return jie || (jie = 1, (function(e) {
|
|
114682
114682
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.toPreHashed = e.roles = void 0, e.serialize = n;
|
|
114683
|
-
const t = na(), r =
|
|
114683
|
+
const t = na(), r = Qe();
|
|
114684
114684
|
e.roles = [
|
|
114685
114685
|
"defaultAdmin",
|
|
114686
114686
|
"pause",
|
|
@@ -114703,7 +114703,7 @@ var fI = {}, pI = {}, Aie;
|
|
|
114703
114703
|
function nbe() {
|
|
114704
114704
|
return Aie || (Aie = 1, (function(e) {
|
|
114705
114705
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.fromRpcType = e.toRpcType = void 0, e.fromRpc = a, e.toRpc = o;
|
|
114706
|
-
const t = _q(), r =
|
|
114706
|
+
const t = _q(), r = Qe(), n = cc();
|
|
114707
114707
|
e.toRpcType = {
|
|
114708
114708
|
legacy: "0x0",
|
|
114709
114709
|
eip2930: "0x1",
|
|
@@ -114736,7 +114736,7 @@ var Pie;
|
|
|
114736
114736
|
function abe() {
|
|
114737
114737
|
return Pie || (Pie = 1, (function(e) {
|
|
114738
114738
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.fromRpcType = e.toRpcType = void 0, e.fromRpc = s, e.toRpc = c;
|
|
114739
|
-
const t =
|
|
114739
|
+
const t = Qe(), r = cc(), n = nbe(), a = TP(), o = jP(), i = l5();
|
|
114740
114740
|
e.toRpcType = {
|
|
114741
114741
|
...n.toRpcType,
|
|
114742
114742
|
tempo: "0x76"
|
|
@@ -114768,7 +114768,7 @@ var so = {}, mI = {}, jw = {}, Sie;
|
|
|
114768
114768
|
function art() {
|
|
114769
114769
|
if (Sie) return jw;
|
|
114770
114770
|
Sie = 1, Object.defineProperty(jw, "__esModule", { value: !0 }), jw.fromRpc = t, jw.toRpc = r;
|
|
114771
|
-
const e =
|
|
114771
|
+
const e = Qe();
|
|
114772
114772
|
function t(n, a = {}) {
|
|
114773
114773
|
return {
|
|
114774
114774
|
...n,
|
|
@@ -114796,7 +114796,7 @@ var Bie;
|
|
|
114796
114796
|
function ort() {
|
|
114797
114797
|
return Bie || (Bie = 1, (function(e) {
|
|
114798
114798
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.toRpcType = e.fromRpcType = e.toRpcStatus = e.fromRpcStatus = void 0, e.fromRpc = n, e.toRpc = a;
|
|
114799
|
-
const t =
|
|
114799
|
+
const t = Qe(), r = art();
|
|
114800
114800
|
e.fromRpcStatus = {
|
|
114801
114801
|
"0x0": "reverted",
|
|
114802
114802
|
"0x1": "success"
|
|
@@ -114882,7 +114882,7 @@ var Kj = {}, Aw = {}, Iie;
|
|
|
114882
114882
|
function srt() {
|
|
114883
114883
|
if (Iie) return Aw;
|
|
114884
114884
|
Iie = 1, Object.defineProperty(Aw, "__esModule", { value: !0 }), Aw.fromRpc = n, Aw.toRpc = a;
|
|
114885
|
-
const e = _q(), t =
|
|
114885
|
+
const e = _q(), t = Qe(), r = nbe();
|
|
114886
114886
|
function n(o) {
|
|
114887
114887
|
const i = o;
|
|
114888
114888
|
return typeof o.authorizationList < "u" && (i.authorizationList = e.fromRpcList(o.authorizationList)), typeof o.chainId < "u" && (i.chainId = t.toNumber(o.chainId)), typeof o.gas < "u" && (i.gas = t.toBigInt(o.gas)), typeof o.gasPrice < "u" && (i.gasPrice = t.toBigInt(o.gasPrice)), typeof o.maxFeePerBlobGas < "u" && (i.maxFeePerBlobGas = t.toBigInt(o.maxFeePerBlobGas)), typeof o.maxFeePerGas < "u" && (i.maxFeePerGas = t.toBigInt(o.maxFeePerGas)), typeof o.maxPriorityFeePerGas < "u" && (i.maxPriorityFeePerGas = t.toBigInt(o.maxPriorityFeePerGas)), typeof o.nonce < "u" && (i.nonce = t.toBigInt(o.nonce)), typeof o.type < "u" && (i.type = r.fromRpcType[o.type] || o.type), typeof o.value < "u" && (i.value = t.toBigInt(o.value)), i;
|
|
@@ -114897,7 +114897,7 @@ var Rie;
|
|
|
114897
114897
|
function crt() {
|
|
114898
114898
|
if (Rie) return Kj;
|
|
114899
114899
|
Rie = 1, Object.defineProperty(Kj, "__esModule", { value: !0 }), Kj.toRpc = i;
|
|
114900
|
-
const e =
|
|
114900
|
+
const e = Qe(), t = srt(), r = TP(), n = jP(), a = AP(), o = abe();
|
|
114901
114901
|
function i(s) {
|
|
114902
114902
|
const c = t.toRpc({
|
|
114903
114903
|
...s,
|
|
@@ -114922,7 +114922,7 @@ var hI = {}, gs = {}, Mie;
|
|
|
114922
114922
|
function urt() {
|
|
114923
114923
|
if (Mie) return gs;
|
|
114924
114924
|
Mie = 1, Object.defineProperty(gs, "__esModule", { value: !0 }), gs.InvalidStorageKeySizeError = void 0, gs.fromTupleList = a, gs.toTupleList = o;
|
|
114925
|
-
const e = ji(), t = Qt(), r = na(), n =
|
|
114925
|
+
const e = ji(), t = Qt(), r = na(), n = Qe();
|
|
114926
114926
|
function a(s) {
|
|
114927
114927
|
const c = [];
|
|
114928
114928
|
for (let u = 0; u < s.length; u++) {
|
|
@@ -115099,7 +115099,7 @@ var zie;
|
|
|
115099
115099
|
function frt() {
|
|
115100
115100
|
return zie || (zie = 1, (function(e) {
|
|
115101
115101
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.InvalidValidityWindowError = e.CallsEmptyError = e.type = e.serializedType = e.feePayerMagic = void 0, e.assert = h, e.deserialize = b, e.from = m, e.serialize = g, e.getSignPayload = C, e.hash = _, e.getFeePayerSignPayload = w, e.validate = y;
|
|
115102
|
-
const t = urt(), r = ji(), n = Qt(), a = na(), o =
|
|
115102
|
+
const t = urt(), r = ji(), n = Qt(), a = na(), o = Qe(), i = wP(), s = cc(), c = drt(), u = TP(), l = jP(), d = l5(), f = AP();
|
|
115103
115103
|
e.feePayerMagic = "0x78", e.serializedType = "0x76", e.type = "tempo";
|
|
115104
115104
|
function h(x) {
|
|
115105
115105
|
const { calls: P, chainId: j, maxFeePerGas: A, maxPriorityFeePerGas: I, validBefore: O, validAfter: S } = x;
|
|
@@ -115158,8 +115158,8 @@ function frt() {
|
|
|
115158
115158
|
if (o.validate(O) && O !== "0x" && (J.gas = BigInt(O)), o.validate(F) && (J.nonce = F === "0x" ? 0n : BigInt(F)), o.validate(I) && I !== "0x" && (J.maxFeePerGas = BigInt(I)), o.validate(A) && A !== "0x" && (J.maxPriorityFeePerGas = BigInt(A)), o.validate(L) && (J.nonceKey = L === "0x" ? 0n : BigInt(L)), o.validate(q) && q !== "0x" && (J.validBefore = Number(q)), o.validate(H) && H !== "0x" && (J.validAfter = Number(H)), o.validate(N) && N !== "0x" && (J.feeToken = N), S && S !== "0x") {
|
|
115159
115159
|
const ae = S;
|
|
115160
115160
|
J.calls = ae.map((re) => {
|
|
115161
|
-
const [ee, se,
|
|
115162
|
-
return ee && ee !== "0x" && (le.to = ee), se && se !== "0x" && (le.value = BigInt(se)),
|
|
115161
|
+
const [ee, se, ve] = re, le = {};
|
|
115162
|
+
return ee && ee !== "0x" && (le.to = ee), se && se !== "0x" && (le.value = BigInt(se)), ve && ve !== "0x" && (le.data = ve), le;
|
|
115163
115163
|
});
|
|
115164
115164
|
}
|
|
115165
115165
|
z?.length !== 0 && z !== "0x" && (J.accessList = t.fromTupleList(z)), U?.length !== 0 && U !== "0x" && (J.authorizationList = u.fromTupleList(U)), D !== "0x" && D !== void 0 && (D === "0x00" || r.validate(D) ? J.feePayerSignature = null : J.feePayerSignature = s.fromTuple(D)), K && (J.keyAuthorization = l.fromTuple(K));
|
|
@@ -115267,7 +115267,7 @@ var nu = {}, yI = {}, Nie;
|
|
|
115267
115267
|
function obe() {
|
|
115268
115268
|
return Nie || (Nie = 1, (function(e) {
|
|
115269
115269
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.z_TxEnvelopeTempo = e.z_SignatureEnvelope = e.z_KeyAuthorization = void 0, e.getType = c, e.isTempo = u, e.deserialize = l, e.serialize = d;
|
|
115270
|
-
const t =
|
|
115270
|
+
const t = Qe(), r = kq(), n = cc(), a = /* @__PURE__ */ Q7(), o = J_(), i = CP(), s = Oo();
|
|
115271
115271
|
function c(m) {
|
|
115272
115272
|
const g = m.account;
|
|
115273
115273
|
return g?.keyType && g.keyType !== "secp256k1" || typeof m.calls < "u" || typeof m.feePayer < "u" || typeof m.feeToken < "u" || typeof m.keyAuthorization < "u" || typeof m.nonceKey < "u" || typeof m.signature < "u" || typeof m.validBefore < "u" || typeof m.validAfter < "u" ? "tempo" : m.type ? m.type : (0, o.getTransactionType)(m);
|
|
@@ -115396,7 +115396,7 @@ var Die;
|
|
|
115396
115396
|
function prt() {
|
|
115397
115397
|
if (Die) return nu;
|
|
115398
115398
|
Die = 1, Object.defineProperty(nu, "__esModule", { value: !0 }), nu.formatTransaction = s, nu.formatTransactionReceipt = c, nu.formatTransactionRequest = u;
|
|
115399
|
-
const e =
|
|
115399
|
+
const e = Qe(), t = /* @__PURE__ */ Q7(), r = Et(), n = ta(), a = Bo(), o = Er(), i = obe();
|
|
115400
115400
|
function s(l) {
|
|
115401
115401
|
if (!(0, i.isTempo)(l))
|
|
115402
115402
|
return (0, n.formatTransaction)(l);
|
|
@@ -115454,7 +115454,7 @@ var ya = {}, Lie;
|
|
|
115454
115454
|
function mrt() {
|
|
115455
115455
|
if (Lie) return ya;
|
|
115456
115456
|
Lie = 1, Object.defineProperty(ya, "__esModule", { value: !0 }), ya.store = void 0, ya.create = t, ya.getCacheKey = r, ya.getEntry = n, ya.reset = a, ya.getNonceKey = o;
|
|
115457
|
-
const e =
|
|
115457
|
+
const e = Qe();
|
|
115458
115458
|
ya.store = t();
|
|
115459
115459
|
function t() {
|
|
115460
115460
|
return /* @__PURE__ */ new Map();
|
|
@@ -118550,9 +118550,9 @@ function f5() {
|
|
|
118550
118550
|
Object.defineProperty(e, "autheoTestnet", { enumerable: !0, get: function() {
|
|
118551
118551
|
return se.autheoTestnet;
|
|
118552
118552
|
} });
|
|
118553
|
-
var
|
|
118553
|
+
var ve = NVe();
|
|
118554
118554
|
Object.defineProperty(e, "avalanche", { enumerable: !0, get: function() {
|
|
118555
|
-
return
|
|
118555
|
+
return ve.avalanche;
|
|
118556
118556
|
} });
|
|
118557
118557
|
var le = DVe();
|
|
118558
118558
|
Object.defineProperty(e, "avalancheFuji", { enumerable: !0, get: function() {
|
|
@@ -118566,9 +118566,9 @@ function f5() {
|
|
|
118566
118566
|
Object.defineProperty(e, "b3Sepolia", { enumerable: !0, get: function() {
|
|
118567
118567
|
return ye.b3Sepolia;
|
|
118568
118568
|
} });
|
|
118569
|
-
var
|
|
118569
|
+
var we = GVe();
|
|
118570
118570
|
Object.defineProperty(e, "bahamut", { enumerable: !0, get: function() {
|
|
118571
|
-
return
|
|
118571
|
+
return we.bahamut;
|
|
118572
118572
|
} });
|
|
118573
118573
|
var _e = VVe();
|
|
118574
118574
|
Object.defineProperty(e, "base", { enumerable: !0, get: function() {
|
|
@@ -123039,7 +123039,7 @@ function Xat({ theme: e, mode: t, hooks: r, setTab: n, swapData: a, initialChain
|
|
|
123039
123039
|
}, ws.minutes(1)),
|
|
123040
123040
|
c7.runAndSetInterval(async () => {
|
|
123041
123041
|
try {
|
|
123042
|
-
const ee = u === i.constants.nullAddress ? void 0 : u, se = `${a.sourceAddress}-${s}-${ee}`,
|
|
123042
|
+
const ee = u === i.constants.nullAddress ? void 0 : u, se = `${a.sourceAddress}-${s}-${ee}`, ve = await jR.get(
|
|
123043
123043
|
se,
|
|
123044
123044
|
ws.minutes(1),
|
|
123045
123045
|
async () => ofe(pbe, {
|
|
@@ -123048,7 +123048,7 @@ function Xat({ theme: e, mode: t, hooks: r, setTab: n, swapData: a, initialChain
|
|
|
123048
123048
|
chainId: s
|
|
123049
123049
|
})
|
|
123050
123050
|
);
|
|
123051
|
-
b(
|
|
123051
|
+
b(ve);
|
|
123052
123052
|
} catch (ee) {
|
|
123053
123053
|
console.error("Error fetching selected token balance:", ee);
|
|
123054
123054
|
}
|
|
@@ -123069,10 +123069,10 @@ function Xat({ theme: e, mode: t, hooks: r, setTab: n, swapData: a, initialChain
|
|
|
123069
123069
|
k(null), y(!0);
|
|
123070
123070
|
try {
|
|
123071
123071
|
return await I.actions.getQuote(ee);
|
|
123072
|
-
} catch (
|
|
123073
|
-
if (X7.errorMatches(
|
|
123072
|
+
} catch (ve) {
|
|
123073
|
+
if (X7.errorMatches(ve, "no routes found"))
|
|
123074
123074
|
return null;
|
|
123075
|
-
throw
|
|
123075
|
+
throw ve;
|
|
123076
123076
|
}
|
|
123077
123077
|
});
|
|
123078
123078
|
k(se), y(!1);
|
|
@@ -123113,9 +123113,10 @@ function Xat({ theme: e, mode: t, hooks: r, setTab: n, swapData: a, initialChain
|
|
|
123113
123113
|
return;
|
|
123114
123114
|
}
|
|
123115
123115
|
let ee;
|
|
123116
|
-
|
|
123117
|
-
|
|
123118
|
-
}
|
|
123116
|
+
const se = (ve) => {
|
|
123117
|
+
ve.preventDefault(), ve.returnValue = "";
|
|
123118
|
+
};
|
|
123119
|
+
if (window.addEventListener("beforeunload", se), t === "funding")
|
|
123119
123120
|
ee = Kat({
|
|
123120
123121
|
library: i,
|
|
123121
123122
|
relayQuote: E,
|
|
@@ -123156,21 +123157,20 @@ function Xat({ theme: e, mode: t, hooks: r, setTab: n, swapData: a, initialChain
|
|
|
123156
123157
|
return;
|
|
123157
123158
|
}
|
|
123158
123159
|
ee.setHooks({
|
|
123159
|
-
onStatusChange: async (
|
|
123160
|
-
P(
|
|
123160
|
+
onStatusChange: async (ve) => {
|
|
123161
|
+
P(ve);
|
|
123161
123162
|
},
|
|
123162
|
-
onStepChange: async (
|
|
123163
|
-
A(
|
|
123163
|
+
onStepChange: async (ve) => {
|
|
123164
|
+
A(ve);
|
|
123164
123165
|
},
|
|
123165
|
-
onError: async (
|
|
123166
|
-
console.error("Swap flow error:",
|
|
123166
|
+
onError: async (ve) => {
|
|
123167
|
+
console.error("Swap flow error:", ve), await r.onFatalError(ve), postMessage({ event: "error", error: ve }, "*");
|
|
123167
123168
|
},
|
|
123168
123169
|
onFinish: async () => {
|
|
123169
123170
|
await r.onCompletion(), postMessage({ event: "finish" }, "*");
|
|
123170
123171
|
}
|
|
123171
123172
|
}), await ee.execute().finally(() => {
|
|
123172
|
-
window.removeEventListener("beforeunload",
|
|
123173
|
-
});
|
|
123173
|
+
window.removeEventListener("beforeunload", se);
|
|
123174
123174
|
});
|
|
123175
123175
|
}
|
|
123176
123176
|
return /* @__PURE__ */ ie.jsxs(
|
|
@@ -123335,7 +123335,7 @@ function Jat({ theme: e, mode: t, hooks: r, library: n, intent: a, destination:
|
|
|
123335
123335
|
bzzAmount: s,
|
|
123336
123336
|
nativeAmount: i,
|
|
123337
123337
|
sourceAddress: "",
|
|
123338
|
-
targetAddress: Ur.isHexString(o) ? Ur.asHexString(o, { uneven: !0 }) :
|
|
123338
|
+
targetAddress: Ur.isHexString(o) ? Ur.asHexString(o, { uneven: !0 }) : o,
|
|
123339
123339
|
sessionKey: c,
|
|
123340
123340
|
temporaryAddress: Ur.asHexString(
|
|
123341
123341
|
_7.uint8ArrayToHex(
|