@use-glyph/sdk-react 2.0.12 → 2.0.14
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/glyph-widget.umd.js +33 -33
- package/dist/glyph-widget.umd.js.map +1 -1
- package/dist/index.js +522 -494
- package/dist/index.js.map +1 -1
- package/dist/types/hooks/useRelayExecute.d.ts +1 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as c, jsxs as S, Fragment as ve } from "react/jsx-runtime";
|
|
2
2
|
import * as B from "react";
|
|
3
|
-
import q, { createContext as
|
|
4
|
-
import { useChainId as Vt, injected as w0, useChains as Ap, useSwitchChain as Hl, useConfig as
|
|
5
|
-
import { parseSignature as k0, encodeFunctionData as kp, custom as hs, createPublicClient as yn, http as Et, hexToBigInt as Nr, fallback as
|
|
3
|
+
import q, { createContext as To, useContext as xr, useState as re, useEffect as xe, memo as gt, forwardRef as Gt, createElement as il, useLayoutEffect as Ep, useMemo as Fe, useCallback as tt, useRef as Uo, lazy as vp } from "react";
|
|
4
|
+
import { useChainId as Vt, injected as w0, useChains as Ap, useSwitchChain as Hl, useConfig as Io, deepEqual as b0, useConnect as y0, useDisconnect as C0, useAccount as x0, createConfig as E0, WagmiProvider as v0, useReconnect as A0 } from "wagmi";
|
|
5
|
+
import { parseSignature as k0, encodeFunctionData as kp, custom as hs, createPublicClient as yn, http as Et, hexToBigInt as Nr, fallback as ll, createWalletClient as S0, zeroAddress as vt, formatUnits as $r, parseUnits as jl, isAddress as cl, checksumAddress as qa, erc20Abi as gi, parseEther as T0, publicActions as U0, extractChain as I0, ProviderRpcError as wi, getAddress as hd, SwitchChainError as N0, fromHex as B0, isHex as R0, hexToNumber as F0, webSocket as M0 } from "viem";
|
|
6
6
|
import * as Sp from "react-dom";
|
|
7
7
|
import Tp from "react-dom";
|
|
8
8
|
import { useMutation as V0, useQuery as Da, QueryClientProvider as Up, QueryClient as Ip } from "@tanstack/react-query";
|
|
@@ -28,7 +28,7 @@ const z0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
28
28
|
get getSolverCapacity() {
|
|
29
29
|
return VA;
|
|
30
30
|
}
|
|
31
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
31
|
+
}, Symbol.toStringTag, { value: "Module" })), No = To(void 0), _l = To(null);
|
|
32
32
|
function hM(e, t, r) {
|
|
33
33
|
return async (n, a) => {
|
|
34
34
|
const s = {
|
|
@@ -42,7 +42,7 @@ function hM(e, t, r) {
|
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const Bo = To(void 0);
|
|
46
46
|
function m(e) {
|
|
47
47
|
return {
|
|
48
48
|
formatters: void 0,
|
|
@@ -132,18 +132,18 @@ const D0 = /* @__PURE__ */ m({
|
|
|
132
132
|
},
|
|
133
133
|
testnet: !1
|
|
134
134
|
}), Np = "2.37.8";
|
|
135
|
-
let
|
|
135
|
+
let bi = {
|
|
136
136
|
getDocsUrl: ({ docsBaseUrl: e, docsPath: t = "", docsSlug: r }) => t ? `${e ?? "https://viem.sh"}${t}${r ? `#${r}` : ""}` : void 0,
|
|
137
137
|
version: `viem@${Np}`
|
|
138
|
-
}, ge = class
|
|
138
|
+
}, ge = class dl extends Error {
|
|
139
139
|
constructor(t, r = {}) {
|
|
140
|
-
const n = r.cause instanceof
|
|
140
|
+
const n = r.cause instanceof dl ? r.cause.details : r.cause?.message ? r.cause.message : r.details, a = r.cause instanceof dl && r.cause.docsPath || r.docsPath, s = bi.getDocsUrl?.({ ...r, docsPath: a }), o = [
|
|
141
141
|
t || "An error occurred.",
|
|
142
142
|
"",
|
|
143
143
|
...r.metaMessages ? [...r.metaMessages, ""] : [],
|
|
144
144
|
...s ? [`Docs: ${s}`] : [],
|
|
145
145
|
...n ? [`Details: ${n}`] : [],
|
|
146
|
-
...
|
|
146
|
+
...bi.version ? [`Version: ${bi.version}`] : []
|
|
147
147
|
].join(`
|
|
148
148
|
`);
|
|
149
149
|
super(o, r.cause ? { cause: r.cause } : void 0), Object.defineProperty(this, "details", {
|
|
@@ -351,7 +351,7 @@ function st(e, t = {}) {
|
|
|
351
351
|
function Ga(e, t = {}) {
|
|
352
352
|
return Number(st(e, t));
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Ro(e, t) {
|
|
355
355
|
return ({ exclude: r, format: n }) => ({
|
|
356
356
|
exclude: r,
|
|
357
357
|
format: (a) => {
|
|
@@ -374,7 +374,7 @@ const Mp = {
|
|
|
374
374
|
"0x3": "eip4844",
|
|
375
375
|
"0x4": "eip7702"
|
|
376
376
|
};
|
|
377
|
-
function
|
|
377
|
+
function Fo(e) {
|
|
378
378
|
const t = {
|
|
379
379
|
...e,
|
|
380
380
|
blockHash: e.blockHash ? e.blockHash : null,
|
|
@@ -406,7 +406,7 @@ function Ro(e) {
|
|
|
406
406
|
}
|
|
407
407
|
})(), t.type === "legacy" && (delete t.accessList, delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas, delete t.yParity), t.type === "eip2930" && (delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas), t.type === "eip1559" && delete t.maxFeePerBlobGas, t;
|
|
408
408
|
}
|
|
409
|
-
const $l = /* @__PURE__ */
|
|
409
|
+
const $l = /* @__PURE__ */ Ro("transaction", Fo);
|
|
410
410
|
function sg(e) {
|
|
411
411
|
return e.map((t) => ({
|
|
412
412
|
address: t.address,
|
|
@@ -418,7 +418,7 @@ function sg(e) {
|
|
|
418
418
|
}));
|
|
419
419
|
}
|
|
420
420
|
function og(e) {
|
|
421
|
-
const t = (e.transactions ?? []).map((r) => typeof r == "string" ? r :
|
|
421
|
+
const t = (e.transactions ?? []).map((r) => typeof r == "string" ? r : Fo(r));
|
|
422
422
|
return {
|
|
423
423
|
...e,
|
|
424
424
|
baseFeePerGas: e.baseFeePerGas ? BigInt(e.baseFeePerGas) : null,
|
|
@@ -437,7 +437,7 @@ function og(e) {
|
|
|
437
437
|
totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
const ec = /* @__PURE__ */
|
|
440
|
+
const ec = /* @__PURE__ */ Ro("block", og);
|
|
441
441
|
function Vp(e, { args: t, eventName: r } = {}) {
|
|
442
442
|
return {
|
|
443
443
|
...e,
|
|
@@ -469,7 +469,7 @@ function lg(e) {
|
|
|
469
469
|
};
|
|
470
470
|
return e.blobGasPrice && (t.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (t.blobGasUsed = BigInt(e.blobGasUsed)), t;
|
|
471
471
|
}
|
|
472
|
-
const Wp = /* @__PURE__ */
|
|
472
|
+
const Wp = /* @__PURE__ */ Ro("transactionReceipt", lg), cg = {
|
|
473
473
|
legacy: "0x0",
|
|
474
474
|
eip2930: "0x1",
|
|
475
475
|
eip1559: "0x2",
|
|
@@ -480,7 +480,7 @@ function Lp(e) {
|
|
|
480
480
|
const t = {};
|
|
481
481
|
return typeof e.authorizationList < "u" && (t.authorizationList = dg(e.authorizationList)), typeof e.accessList < "u" && (t.accessList = e.accessList), typeof e.blobVersionedHashes < "u" && (t.blobVersionedHashes = e.blobVersionedHashes), typeof e.blobs < "u" && (typeof e.blobs[0] != "string" ? t.blobs = e.blobs.map((r) => Dr(r)) : t.blobs = e.blobs), typeof e.data < "u" && (t.data = e.data), typeof e.from < "u" && (t.from = e.from), typeof e.gas < "u" && (t.gas = he(e.gas)), typeof e.gasPrice < "u" && (t.gasPrice = he(e.gasPrice)), typeof e.maxFeePerBlobGas < "u" && (t.maxFeePerBlobGas = he(e.maxFeePerBlobGas)), typeof e.maxFeePerGas < "u" && (t.maxFeePerGas = he(e.maxFeePerGas)), typeof e.maxPriorityFeePerGas < "u" && (t.maxPriorityFeePerGas = he(e.maxPriorityFeePerGas)), typeof e.nonce < "u" && (t.nonce = he(e.nonce)), typeof e.to < "u" && (t.to = e.to), typeof e.type < "u" && (t.type = cg[e.type]), typeof e.value < "u" && (t.value = he(e.value)), t;
|
|
482
482
|
}
|
|
483
|
-
const Op = /* @__PURE__ */
|
|
483
|
+
const Op = /* @__PURE__ */ Ro("transactionRequest", Lp);
|
|
484
484
|
function dg(e) {
|
|
485
485
|
return e.map((t) => ({
|
|
486
486
|
address: t.address,
|
|
@@ -860,7 +860,7 @@ function Pp(e) {
|
|
|
860
860
|
}
|
|
861
861
|
const In = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
862
862
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
863
|
-
function
|
|
863
|
+
function Mo(e) {
|
|
864
864
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
865
865
|
}
|
|
866
866
|
function Za(e) {
|
|
@@ -868,7 +868,7 @@ function Za(e) {
|
|
|
868
868
|
throw new Error("positive integer expected, got " + e);
|
|
869
869
|
}
|
|
870
870
|
function Lr(e, ...t) {
|
|
871
|
-
if (!
|
|
871
|
+
if (!Mo(e))
|
|
872
872
|
throw new Error("Uint8Array expected");
|
|
873
873
|
if (t.length > 0 && !t.includes(e.length))
|
|
874
874
|
throw new Error("Uint8Array expected of length " + t + ", got length=" + e.length);
|
|
@@ -897,7 +897,7 @@ function Xn(...e) {
|
|
|
897
897
|
for (let t = 0; t < e.length; t++)
|
|
898
898
|
e[t].fill(0);
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function yi(e) {
|
|
901
901
|
return new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
902
902
|
}
|
|
903
903
|
function dr(e, t) {
|
|
@@ -930,7 +930,7 @@ function yd(e) {
|
|
|
930
930
|
if (e >= Tr.a && e <= Tr.f)
|
|
931
931
|
return e - (Tr.a - 10);
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function po(e) {
|
|
934
934
|
if (typeof e != "string")
|
|
935
935
|
throw new Error("hex string expected, got " + typeof e);
|
|
936
936
|
if (Xp)
|
|
@@ -954,7 +954,7 @@ function Ng(e) {
|
|
|
954
954
|
throw new Error("string expected");
|
|
955
955
|
return new Uint8Array(new TextEncoder().encode(e));
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function Vo(e) {
|
|
958
958
|
return typeof e == "string" && (e = Ng(e)), Lr(e), e;
|
|
959
959
|
}
|
|
960
960
|
function _r(...e) {
|
|
@@ -973,7 +973,7 @@ function _r(...e) {
|
|
|
973
973
|
class rc {
|
|
974
974
|
}
|
|
975
975
|
function Hp(e) {
|
|
976
|
-
const t = (n) => e().update(
|
|
976
|
+
const t = (n) => e().update(Vo(n)).digest(), r = e();
|
|
977
977
|
return t.outputLen = r.outputLen, t.blockLen = r.blockLen, t.create = () => e(), t;
|
|
978
978
|
}
|
|
979
979
|
function jp(e = 32) {
|
|
@@ -997,15 +997,15 @@ function Fg(e, t, r) {
|
|
|
997
997
|
}
|
|
998
998
|
class Mg extends rc {
|
|
999
999
|
constructor(t, r, n, a) {
|
|
1000
|
-
super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = r, this.padOffset = n, this.isLE = a, this.buffer = new Uint8Array(t), this.view =
|
|
1000
|
+
super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = r, this.padOffset = n, this.isLE = a, this.buffer = new Uint8Array(t), this.view = yi(this.buffer);
|
|
1001
1001
|
}
|
|
1002
1002
|
update(t) {
|
|
1003
|
-
Yn(this), t =
|
|
1003
|
+
Yn(this), t = Vo(t), Lr(t);
|
|
1004
1004
|
const { view: r, buffer: n, blockLen: a } = this, s = t.length;
|
|
1005
1005
|
for (let o = 0; o < s; ) {
|
|
1006
1006
|
const i = Math.min(a - this.pos, s - o);
|
|
1007
1007
|
if (i === a) {
|
|
1008
|
-
const l =
|
|
1008
|
+
const l = yi(t);
|
|
1009
1009
|
for (; a <= s - o; o += a)
|
|
1010
1010
|
this.process(l, o);
|
|
1011
1011
|
continue;
|
|
@@ -1022,7 +1022,7 @@ class Mg extends rc {
|
|
|
1022
1022
|
for (let d = o; d < a; d++)
|
|
1023
1023
|
r[d] = 0;
|
|
1024
1024
|
Bg(n, a - 8, BigInt(this.length * 8), s), this.process(n, 0);
|
|
1025
|
-
const i =
|
|
1025
|
+
const i = yi(t), l = this.outputLen;
|
|
1026
1026
|
if (l % 4)
|
|
1027
1027
|
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
1028
1028
|
const u = l / 4, p = this.get();
|
|
@@ -1308,7 +1308,7 @@ Object.defineProperty(tn, "nodeMessage", {
|
|
|
1308
1308
|
writable: !0,
|
|
1309
1309
|
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
1310
1310
|
});
|
|
1311
|
-
class
|
|
1311
|
+
class ul extends ge {
|
|
1312
1312
|
constructor({ cause: t, maxFeePerGas: r } = {}) {
|
|
1313
1313
|
super(`The fee cap (\`maxFeePerGas\`${r ? ` = ${gn(r)}` : ""} gwei) cannot be lower than the block base fee.`, {
|
|
1314
1314
|
cause: t,
|
|
@@ -1316,24 +1316,24 @@ class dl extends ge {
|
|
|
1316
1316
|
});
|
|
1317
1317
|
}
|
|
1318
1318
|
}
|
|
1319
|
-
Object.defineProperty(
|
|
1319
|
+
Object.defineProperty(ul, "nodeMessage", {
|
|
1320
1320
|
enumerable: !0,
|
|
1321
1321
|
configurable: !0,
|
|
1322
1322
|
writable: !0,
|
|
1323
1323
|
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
|
1324
1324
|
});
|
|
1325
|
-
class
|
|
1325
|
+
class pl extends ge {
|
|
1326
1326
|
constructor({ cause: t, nonce: r } = {}) {
|
|
1327
1327
|
super(`Nonce provided for the transaction ${r ? `(${r}) ` : ""}is higher than the next one expected.`, { cause: t, name: "NonceTooHighError" });
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
|
-
Object.defineProperty(
|
|
1330
|
+
Object.defineProperty(pl, "nodeMessage", {
|
|
1331
1331
|
enumerable: !0,
|
|
1332
1332
|
configurable: !0,
|
|
1333
1333
|
writable: !0,
|
|
1334
1334
|
value: /nonce too high/
|
|
1335
1335
|
});
|
|
1336
|
-
class
|
|
1336
|
+
class ml extends ge {
|
|
1337
1337
|
constructor({ cause: t, nonce: r } = {}) {
|
|
1338
1338
|
super([
|
|
1339
1339
|
`Nonce provided for the transaction ${r ? `(${r}) ` : ""}is lower than the current nonce of the account.`,
|
|
@@ -1342,24 +1342,24 @@ class pl extends ge {
|
|
|
1342
1342
|
`), { cause: t, name: "NonceTooLowError" });
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
|
-
Object.defineProperty(
|
|
1345
|
+
Object.defineProperty(ml, "nodeMessage", {
|
|
1346
1346
|
enumerable: !0,
|
|
1347
1347
|
configurable: !0,
|
|
1348
1348
|
writable: !0,
|
|
1349
1349
|
value: /nonce too low|transaction already imported|already known/
|
|
1350
1350
|
});
|
|
1351
|
-
class
|
|
1351
|
+
class hl extends ge {
|
|
1352
1352
|
constructor({ cause: t, nonce: r } = {}) {
|
|
1353
1353
|
super(`Nonce provided for the transaction ${r ? `(${r}) ` : ""}exceeds the maximum allowed nonce.`, { cause: t, name: "NonceMaxValueError" });
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
|
-
Object.defineProperty(
|
|
1356
|
+
Object.defineProperty(hl, "nodeMessage", {
|
|
1357
1357
|
enumerable: !0,
|
|
1358
1358
|
configurable: !0,
|
|
1359
1359
|
writable: !0,
|
|
1360
1360
|
value: /nonce has max value/
|
|
1361
1361
|
});
|
|
1362
|
-
class
|
|
1362
|
+
class fl extends ge {
|
|
1363
1363
|
constructor({ cause: t } = {}) {
|
|
1364
1364
|
super([
|
|
1365
1365
|
"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
|
|
@@ -1380,13 +1380,13 @@ class hl extends ge {
|
|
|
1380
1380
|
});
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
|
-
Object.defineProperty(
|
|
1383
|
+
Object.defineProperty(fl, "nodeMessage", {
|
|
1384
1384
|
enumerable: !0,
|
|
1385
1385
|
configurable: !0,
|
|
1386
1386
|
writable: !0,
|
|
1387
1387
|
value: /insufficient funds|exceeds transaction sender account balance/
|
|
1388
1388
|
});
|
|
1389
|
-
class
|
|
1389
|
+
class gl extends ge {
|
|
1390
1390
|
constructor({ cause: t, gas: r } = {}) {
|
|
1391
1391
|
super(`The amount of gas ${r ? `(${r}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
|
|
1392
1392
|
cause: t,
|
|
@@ -1394,13 +1394,13 @@ class fl extends ge {
|
|
|
1394
1394
|
});
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
|
-
Object.defineProperty(
|
|
1397
|
+
Object.defineProperty(gl, "nodeMessage", {
|
|
1398
1398
|
enumerable: !0,
|
|
1399
1399
|
configurable: !0,
|
|
1400
1400
|
writable: !0,
|
|
1401
1401
|
value: /intrinsic gas too high|gas limit reached/
|
|
1402
1402
|
});
|
|
1403
|
-
class
|
|
1403
|
+
class wl extends ge {
|
|
1404
1404
|
constructor({ cause: t, gas: r } = {}) {
|
|
1405
1405
|
super(`The amount of gas ${r ? `(${r}) ` : ""}provided for the transaction is too low.`, {
|
|
1406
1406
|
cause: t,
|
|
@@ -1408,13 +1408,13 @@ class gl extends ge {
|
|
|
1408
1408
|
});
|
|
1409
1409
|
}
|
|
1410
1410
|
}
|
|
1411
|
-
Object.defineProperty(
|
|
1411
|
+
Object.defineProperty(wl, "nodeMessage", {
|
|
1412
1412
|
enumerable: !0,
|
|
1413
1413
|
configurable: !0,
|
|
1414
1414
|
writable: !0,
|
|
1415
1415
|
value: /intrinsic gas too low/
|
|
1416
1416
|
});
|
|
1417
|
-
class
|
|
1417
|
+
class bl extends ge {
|
|
1418
1418
|
constructor({ cause: t }) {
|
|
1419
1419
|
super("The transaction type is not supported for this chain.", {
|
|
1420
1420
|
cause: t,
|
|
@@ -1422,7 +1422,7 @@ class wl extends ge {
|
|
|
1422
1422
|
});
|
|
1423
1423
|
}
|
|
1424
1424
|
}
|
|
1425
|
-
Object.defineProperty(
|
|
1425
|
+
Object.defineProperty(bl, "nodeMessage", {
|
|
1426
1426
|
enumerable: !0,
|
|
1427
1427
|
configurable: !0,
|
|
1428
1428
|
writable: !0,
|
|
@@ -1522,7 +1522,7 @@ class ac extends rc {
|
|
|
1522
1522
|
bd(this.state32), a2(this.state32, this.rounds), bd(this.state32), this.posOut = 0, this.pos = 0;
|
|
1523
1523
|
}
|
|
1524
1524
|
update(t) {
|
|
1525
|
-
Yn(this), t =
|
|
1525
|
+
Yn(this), t = Vo(t), Lr(t);
|
|
1526
1526
|
const { blockLen: r, state: n } = this, a = t.length;
|
|
1527
1527
|
for (let s = 0; s < a; ) {
|
|
1528
1528
|
const o = Math.min(r - this.pos, a - s);
|
|
@@ -1577,23 +1577,23 @@ const s2 = (e, t, r) => Hp(() => new ac(t, e, r)), o2 = s2(1, 136, 256 / 8);
|
|
|
1577
1577
|
function i2(e, t) {
|
|
1578
1578
|
return o2(ts(e, { strict: !1 }) ? Ka(e) : e);
|
|
1579
1579
|
}
|
|
1580
|
-
const
|
|
1580
|
+
const Ci = /* @__PURE__ */ new s1(8192);
|
|
1581
1581
|
function l2(e, t) {
|
|
1582
|
-
if (
|
|
1583
|
-
return
|
|
1582
|
+
if (Ci.has(`${e}.${t}`))
|
|
1583
|
+
return Ci.get(`${e}.${t}`);
|
|
1584
1584
|
const r = e.substring(2).toLowerCase(), n = i2(Fp(r)), a = r.split("");
|
|
1585
1585
|
for (let o = 0; o < 40; o += 2)
|
|
1586
1586
|
n[o >> 1] >> 4 >= 8 && a[o] && (a[o] = a[o].toUpperCase()), (n[o >> 1] & 15) >= 8 && a[o + 1] && (a[o + 1] = a[o + 1].toUpperCase());
|
|
1587
1587
|
const s = `0x${a.join("")}`;
|
|
1588
|
-
return
|
|
1588
|
+
return Ci.set(`${e}.${t}`, s), s;
|
|
1589
1589
|
}
|
|
1590
|
-
const c2 = /^0x[a-fA-F0-9]{40}$/,
|
|
1590
|
+
const c2 = /^0x[a-fA-F0-9]{40}$/, xi = /* @__PURE__ */ new s1(8192);
|
|
1591
1591
|
function Rt(e, t) {
|
|
1592
1592
|
const { strict: r = !0 } = t ?? {}, n = `${e}.${r}`;
|
|
1593
|
-
if (
|
|
1594
|
-
return
|
|
1593
|
+
if (xi.has(n))
|
|
1594
|
+
return xi.get(n);
|
|
1595
1595
|
const a = c2.test(e) ? e.toLowerCase() === e ? !0 : r ? l2(e) === e : !0 : !1;
|
|
1596
|
-
return
|
|
1596
|
+
return xi.set(n, a), a;
|
|
1597
1597
|
}
|
|
1598
1598
|
function d2(e, t, r, { strict: n } = {}) {
|
|
1599
1599
|
return ts(e, { strict: !1 }) ? p2(e, t, r, {
|
|
@@ -2275,7 +2275,7 @@ const Zt = {
|
|
|
2275
2275
|
transactions: e.transactions?.map((r) => {
|
|
2276
2276
|
if (typeof r == "string")
|
|
2277
2277
|
return r;
|
|
2278
|
-
const n =
|
|
2278
|
+
const n = Fo(r);
|
|
2279
2279
|
return n.typeHex === "0x7e" && (n.isSystemTx = r.isSystemTx, n.mint = r.mint ? st(r.mint) : void 0, n.sourceHash = r.sourceHash, n.type = "deposit"), n;
|
|
2280
2280
|
}),
|
|
2281
2281
|
stateRoot: e.stateRoot
|
|
@@ -2427,7 +2427,7 @@ const $ = {
|
|
|
2427
2427
|
webSocket: ["ws://127.0.0.1:8545"]
|
|
2428
2428
|
}
|
|
2429
2429
|
}
|
|
2430
|
-
}), j2 = 42161,
|
|
2430
|
+
}), j2 = 42161, Wo = /* @__PURE__ */ m({
|
|
2431
2431
|
id: 33139,
|
|
2432
2432
|
name: "Ape Chain",
|
|
2433
2433
|
nativeCurrency: {
|
|
@@ -3741,7 +3741,7 @@ const $ = {
|
|
|
3741
3741
|
},
|
|
3742
3742
|
testnet: !0,
|
|
3743
3743
|
sourceId: Yw
|
|
3744
|
-
}),
|
|
3744
|
+
}), Ei = 1, Hw = m({
|
|
3745
3745
|
...$,
|
|
3746
3746
|
id: 60808,
|
|
3747
3747
|
name: "BOB",
|
|
@@ -3769,19 +3769,19 @@ const $ = {
|
|
|
3769
3769
|
blockCreated: 23131
|
|
3770
3770
|
},
|
|
3771
3771
|
l2OutputOracle: {
|
|
3772
|
-
[
|
|
3772
|
+
[Ei]: {
|
|
3773
3773
|
address: "0xdDa53E23f8a32640b04D7256e651C1db98dB11C1",
|
|
3774
3774
|
blockCreated: 4462615
|
|
3775
3775
|
}
|
|
3776
3776
|
},
|
|
3777
3777
|
portal: {
|
|
3778
|
-
[
|
|
3778
|
+
[Ei]: {
|
|
3779
3779
|
address: "0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E",
|
|
3780
3780
|
blockCreated: 4462615
|
|
3781
3781
|
}
|
|
3782
3782
|
}
|
|
3783
3783
|
},
|
|
3784
|
-
sourceId:
|
|
3784
|
+
sourceId: Ei
|
|
3785
3785
|
}), jw = /* @__PURE__ */ m({
|
|
3786
3786
|
id: 288,
|
|
3787
3787
|
name: "Boba Network",
|
|
@@ -3823,7 +3823,7 @@ const $ = {
|
|
|
3823
3823
|
}
|
|
3824
3824
|
},
|
|
3825
3825
|
testnet: !0
|
|
3826
|
-
}),
|
|
3826
|
+
}), vi = 11155111, $w = m({
|
|
3827
3827
|
...$,
|
|
3828
3828
|
id: 808813,
|
|
3829
3829
|
name: "BOB Sepolia",
|
|
@@ -3851,20 +3851,20 @@ const $ = {
|
|
|
3851
3851
|
blockCreated: 35677
|
|
3852
3852
|
},
|
|
3853
3853
|
l2OutputOracle: {
|
|
3854
|
-
[
|
|
3854
|
+
[vi]: {
|
|
3855
3855
|
address: "0x14D0069452b4AE2b250B395b8adAb771E4267d2f",
|
|
3856
3856
|
blockCreated: 4462615
|
|
3857
3857
|
}
|
|
3858
3858
|
},
|
|
3859
3859
|
portal: {
|
|
3860
|
-
[
|
|
3860
|
+
[vi]: {
|
|
3861
3861
|
address: "0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4",
|
|
3862
3862
|
blockCreated: 4462615
|
|
3863
3863
|
}
|
|
3864
3864
|
}
|
|
3865
3865
|
},
|
|
3866
3866
|
testnet: !0,
|
|
3867
|
-
sourceId:
|
|
3867
|
+
sourceId: vi
|
|
3868
3868
|
}), eb = /* @__PURE__ */ m({
|
|
3869
3869
|
id: 11100,
|
|
3870
3870
|
name: "Bool Beta Mainnet",
|
|
@@ -4254,7 +4254,7 @@ const Eb = {
|
|
|
4254
4254
|
format(e) {
|
|
4255
4255
|
return {
|
|
4256
4256
|
transactions: e.transactions?.map((r) => typeof r == "string" ? r : {
|
|
4257
|
-
...
|
|
4257
|
+
...Fo(r),
|
|
4258
4258
|
...r.gatewayFee ? {
|
|
4259
4259
|
gatewayFee: st(r.gatewayFee),
|
|
4260
4260
|
gatewayFeeRecipient: r.gatewayFeeRecipient
|
|
@@ -4413,7 +4413,7 @@ const Qa = {
|
|
|
4413
4413
|
}
|
|
4414
4414
|
},
|
|
4415
4415
|
testnet: !0
|
|
4416
|
-
}),
|
|
4416
|
+
}), Ai = 11155111, Nb = /* @__PURE__ */ m({
|
|
4417
4417
|
...Qa,
|
|
4418
4418
|
id: 11142220,
|
|
4419
4419
|
name: "Celo Sepolia Testnet",
|
|
@@ -4441,19 +4441,19 @@ const Qa = {
|
|
|
4441
4441
|
blockCreated: 1
|
|
4442
4442
|
},
|
|
4443
4443
|
portal: {
|
|
4444
|
-
[
|
|
4444
|
+
[Ai]: {
|
|
4445
4445
|
address: "0x44ae3d41a335a7d05eb533029917aad35662dcc2",
|
|
4446
4446
|
blockCreated: 8825790
|
|
4447
4447
|
}
|
|
4448
4448
|
},
|
|
4449
4449
|
disputeGameFactory: {
|
|
4450
|
-
[
|
|
4450
|
+
[Ai]: {
|
|
4451
4451
|
address: "0x57c45d82d1a995f1e135b8d7edc0a6bb5211cfaa",
|
|
4452
4452
|
blockCreated: 8825790
|
|
4453
4453
|
}
|
|
4454
4454
|
},
|
|
4455
4455
|
l1StandardBridge: {
|
|
4456
|
-
[
|
|
4456
|
+
[Ai]: {
|
|
4457
4457
|
address: "0xec18a3c30131a0db4246e785355fbc16e2eaf408",
|
|
4458
4458
|
blockCreated: 8825790
|
|
4459
4459
|
}
|
|
@@ -9154,10 +9154,10 @@ function W7(e, t) {
|
|
|
9154
9154
|
}) : tn.nodeMessage.test(r) ? new tn({
|
|
9155
9155
|
cause: e,
|
|
9156
9156
|
maxFeePerGas: t?.maxFeePerGas
|
|
9157
|
-
}) :
|
|
9157
|
+
}) : ul.nodeMessage.test(r) ? new ul({
|
|
9158
9158
|
cause: e,
|
|
9159
9159
|
maxFeePerGas: t?.maxFeePerGas
|
|
9160
|
-
}) :
|
|
9160
|
+
}) : pl.nodeMessage.test(r) ? new pl({ cause: e, nonce: t?.nonce }) : ml.nodeMessage.test(r) ? new ml({ cause: e, nonce: t?.nonce }) : hl.nodeMessage.test(r) ? new hl({ cause: e, nonce: t?.nonce }) : fl.nodeMessage.test(r) ? new fl({ cause: e }) : gl.nodeMessage.test(r) ? new gl({ cause: e, gas: t?.gas }) : wl.nodeMessage.test(r) ? new wl({ cause: e, gas: t?.gas }) : bl.nodeMessage.test(r) ? new bl({ cause: e }) : Hn.nodeMessage.test(r) ? new Hn({
|
|
9161
9161
|
cause: e,
|
|
9162
9162
|
maxFeePerGas: t?.maxFeePerGas,
|
|
9163
9163
|
maxPriorityFeePerGas: t?.maxPriorityFeePerGas
|
|
@@ -14409,7 +14409,7 @@ const z7 = /* @__PURE__ */ m({
|
|
|
14409
14409
|
}
|
|
14410
14410
|
},
|
|
14411
14411
|
sourceId: va
|
|
14412
|
-
}),
|
|
14412
|
+
}), ki = 11155111, z4 = /* @__PURE__ */ m({
|
|
14413
14413
|
...$,
|
|
14414
14414
|
id: 53302,
|
|
14415
14415
|
name: "Superseed Sepolia",
|
|
@@ -14436,20 +14436,20 @@ const z7 = /* @__PURE__ */ m({
|
|
|
14436
14436
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11"
|
|
14437
14437
|
},
|
|
14438
14438
|
portal: {
|
|
14439
|
-
[
|
|
14439
|
+
[ki]: {
|
|
14440
14440
|
address: "0x7A0db8C51432d2C3eb4e8f360a2EeB26FF2809fB",
|
|
14441
14441
|
blockCreated: 5523438
|
|
14442
14442
|
}
|
|
14443
14443
|
},
|
|
14444
14444
|
l1StandardBridge: {
|
|
14445
|
-
[
|
|
14445
|
+
[ki]: {
|
|
14446
14446
|
address: "0x2B227A603fAAdB3De0ED050b63ADD232B5f2c28C",
|
|
14447
14447
|
blockCreated: 5523442
|
|
14448
14448
|
}
|
|
14449
14449
|
}
|
|
14450
14450
|
},
|
|
14451
14451
|
testnet: !0,
|
|
14452
|
-
sourceId:
|
|
14452
|
+
sourceId: ki
|
|
14453
14453
|
}), D4 = /* @__PURE__ */ m({
|
|
14454
14454
|
id: 254,
|
|
14455
14455
|
name: "Swan Chain Mainnet",
|
|
@@ -16262,7 +16262,7 @@ const z7 = /* @__PURE__ */ m({
|
|
|
16262
16262
|
}
|
|
16263
16263
|
},
|
|
16264
16264
|
testnet: !0
|
|
16265
|
-
}),
|
|
16265
|
+
}), Si = 1, Cx = /* @__PURE__ */ m({
|
|
16266
16266
|
...$,
|
|
16267
16267
|
id: 48900,
|
|
16268
16268
|
name: "Zircuit Mainnet",
|
|
@@ -16292,23 +16292,23 @@ const z7 = /* @__PURE__ */ m({
|
|
|
16292
16292
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11"
|
|
16293
16293
|
},
|
|
16294
16294
|
l2OutputOracle: {
|
|
16295
|
-
[
|
|
16295
|
+
[Si]: {
|
|
16296
16296
|
address: "0x92Ef6Af472b39F1b363da45E35530c24619245A4"
|
|
16297
16297
|
}
|
|
16298
16298
|
},
|
|
16299
16299
|
portal: {
|
|
16300
|
-
[
|
|
16300
|
+
[Si]: {
|
|
16301
16301
|
address: "0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1"
|
|
16302
16302
|
}
|
|
16303
16303
|
},
|
|
16304
16304
|
l1StandardBridge: {
|
|
16305
|
-
[
|
|
16305
|
+
[Si]: {
|
|
16306
16306
|
address: "0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8"
|
|
16307
16307
|
}
|
|
16308
16308
|
}
|
|
16309
16309
|
},
|
|
16310
16310
|
testnet: !1
|
|
16311
|
-
}),
|
|
16311
|
+
}), Ti = 11155111, xx = /* @__PURE__ */ m({
|
|
16312
16312
|
...$,
|
|
16313
16313
|
id: 48898,
|
|
16314
16314
|
name: "Zircuit Garfield Testnet",
|
|
@@ -16329,23 +16329,23 @@ const z7 = /* @__PURE__ */ m({
|
|
|
16329
16329
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11"
|
|
16330
16330
|
},
|
|
16331
16331
|
l2OutputOracle: {
|
|
16332
|
-
[
|
|
16332
|
+
[Ti]: {
|
|
16333
16333
|
address: "0xd69D3AC5CA686cCF94b258291772bc520FEAf211"
|
|
16334
16334
|
}
|
|
16335
16335
|
},
|
|
16336
16336
|
portal: {
|
|
16337
|
-
[
|
|
16337
|
+
[Ti]: {
|
|
16338
16338
|
address: "0x4E21A71Ac3F7607Da5c06153A17B1DD20E702c21"
|
|
16339
16339
|
}
|
|
16340
16340
|
},
|
|
16341
16341
|
l1StandardBridge: {
|
|
16342
|
-
[
|
|
16342
|
+
[Ti]: {
|
|
16343
16343
|
address: "0x87a7E2bCA9E35BA49282E832a28A6023904460D8"
|
|
16344
16344
|
}
|
|
16345
16345
|
}
|
|
16346
16346
|
},
|
|
16347
16347
|
testnet: !0
|
|
16348
|
-
}),
|
|
16348
|
+
}), Ui = 11155111, Ex = /* @__PURE__ */ m({
|
|
16349
16349
|
...$,
|
|
16350
16350
|
id: 48899,
|
|
16351
16351
|
name: "Zircuit Testnet",
|
|
@@ -16371,17 +16371,17 @@ const z7 = /* @__PURE__ */ m({
|
|
|
16371
16371
|
blockCreated: 6040287
|
|
16372
16372
|
},
|
|
16373
16373
|
l2OutputOracle: {
|
|
16374
|
-
[
|
|
16374
|
+
[Ui]: {
|
|
16375
16375
|
address: "0x740C2dac453aEf7140809F80b72bf0e647af8148"
|
|
16376
16376
|
}
|
|
16377
16377
|
},
|
|
16378
16378
|
portal: {
|
|
16379
|
-
[
|
|
16379
|
+
[Ui]: {
|
|
16380
16380
|
address: "0x787f1C8c5924178689E0560a43D848bF8E54b23e"
|
|
16381
16381
|
}
|
|
16382
16382
|
},
|
|
16383
16383
|
l1StandardBridge: {
|
|
16384
|
-
[
|
|
16384
|
+
[Ui]: {
|
|
16385
16385
|
address: "0x0545c5fe980098C16fcD0eCB5E79753afa6d9af9"
|
|
16386
16386
|
}
|
|
16387
16387
|
}
|
|
@@ -16765,7 +16765,7 @@ const z7 = /* @__PURE__ */ m({
|
|
|
16765
16765
|
ancient8: Y2,
|
|
16766
16766
|
ancient8Sepolia: X2,
|
|
16767
16767
|
anvil: H2,
|
|
16768
|
-
apeChain:
|
|
16768
|
+
apeChain: Wo,
|
|
16769
16769
|
apexTestnet: _2,
|
|
16770
16770
|
arbitrum: g1,
|
|
16771
16771
|
arbitrumGoerli: $2,
|
|
@@ -17389,7 +17389,7 @@ const z7 = /* @__PURE__ */ m({
|
|
|
17389
17389
|
}, Symbol.toStringTag, { value: "Module" })), Fx = "https://useglyph.io", Fr = "cly38x0w10ac945q9yg9sm71i", Mr = "clxt9p8e601al6tgmsyhu7j3t", Mx = "https://useglyph.io", Vx = "https://i.ibb.co/TxcwPQyr/Group-12489-1.png", Wx = 60 * 1e3, Lx = 60 * 1e3, Ox = "0x3c7fb61850cCD1490B820D317f565358D6f1Fb87", S1 = 80, mt = 6;
|
|
17390
17390
|
var rr = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.SUCCESS = "success", e.ERROR = "error", e))(rr || {}), Ue = /* @__PURE__ */ ((e) => (e.MAIN = "main", e.FUND = "fund", e.SEND = "send", e.RECEIVE = "receive", e.PROFILE = "profile", e.SWAP = "swap", e))(Ue || {}), Le = /* @__PURE__ */ ((e) => (e.HOME = "home", e.ACTIVITY = "activity", e.TOKENS = "tokens", e.NFTS = "nfts", e.LINKED_ACCOUNTS = "linked-accounts", e))(Le || {}), Br = /* @__PURE__ */ ((e) => (e.BUY = "fund-buy", e.WAIT = "fund-wait", e.END = "fund-end", e))(Br || {}), Tt = /* @__PURE__ */ ((e) => (e.ENTER_ADDRESS = "send-enter-address", e.ENTER_AMOUNT = "send-enter-amount", e.WAIT = "send-wait", e.END = "send-end", e))(Tt || {}), Lt = /* @__PURE__ */ ((e) => (e.START = "swap-start", e.WAIT = "swap-wait", e.END = "swap-end", e))(Lt || {});
|
|
17391
17391
|
const tr = {
|
|
17392
|
-
[
|
|
17392
|
+
[Wo.id]: "ApeChain"
|
|
17393
17393
|
// Remove after https://github.com/wevm/viem/pull/4080 is merged and viem is updated to that version
|
|
17394
17394
|
}, qt = {
|
|
17395
17395
|
id: "io.useglyph.privy",
|
|
@@ -17401,7 +17401,7 @@ const tr = {
|
|
|
17401
17401
|
}, Me = () => {
|
|
17402
17402
|
const e = xr(_l);
|
|
17403
17403
|
if (!e) throw new Error("useGlyph must be used within GlyphProvider");
|
|
17404
|
-
const t = xr(
|
|
17404
|
+
const t = xr(Bo);
|
|
17405
17405
|
if (!t) throw new Error("useGlyph must be used within GlyphUserDataProvider");
|
|
17406
17406
|
const { ready: r, authenticated: n, login: a, logout: s, signMessage: o, signTypedData: i, sendTransaction: l, glyphUrl: u, hideWidget: p } = e, {
|
|
17407
17407
|
user: d,
|
|
@@ -17557,9 +17557,9 @@ const dc = "-", zx = (e) => {
|
|
|
17557
17557
|
validators: []
|
|
17558
17558
|
};
|
|
17559
17559
|
return Qx(Object.entries(e.classGroups), r).forEach(([s, o]) => {
|
|
17560
|
-
|
|
17560
|
+
yl(o, n, s, t);
|
|
17561
17561
|
}), n;
|
|
17562
|
-
},
|
|
17562
|
+
}, yl = (e, t, r, n) => {
|
|
17563
17563
|
e.forEach((a) => {
|
|
17564
17564
|
if (typeof a == "string") {
|
|
17565
17565
|
const s = a === "" ? t : Od(t, a);
|
|
@@ -17568,7 +17568,7 @@ const dc = "-", zx = (e) => {
|
|
|
17568
17568
|
}
|
|
17569
17569
|
if (typeof a == "function") {
|
|
17570
17570
|
if (Zx(a)) {
|
|
17571
|
-
|
|
17571
|
+
yl(a(n), t, r, n);
|
|
17572
17572
|
return;
|
|
17573
17573
|
}
|
|
17574
17574
|
t.validators.push({
|
|
@@ -17578,7 +17578,7 @@ const dc = "-", zx = (e) => {
|
|
|
17578
17578
|
return;
|
|
17579
17579
|
}
|
|
17580
17580
|
Object.entries(a).forEach(([s, o]) => {
|
|
17581
|
-
|
|
17581
|
+
yl(o, Od(t, s), r, n);
|
|
17582
17582
|
});
|
|
17583
17583
|
});
|
|
17584
17584
|
}, Od = (e, t) => {
|
|
@@ -17734,7 +17734,7 @@ function qd(e, ...t) {
|
|
|
17734
17734
|
const Je = (e) => {
|
|
17735
17735
|
const t = (r) => r[e] || [];
|
|
17736
17736
|
return t.isThemeGetter = !0, t;
|
|
17737
|
-
}, F1 = /^\[(?:([a-z-]+):)?(.+)\]$/i, $x = /^\d+\/\d+$/, eE = /* @__PURE__ */ new Set(["px", "full", "screen"]), tE = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rE = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, nE = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, aE = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, sE = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ur = (e) => Dn(e) || eE.has(e) || $x.test(e), Jr = (e) => oa(e, "length", mE), Dn = (e) => !!e && !Number.isNaN(Number(e)),
|
|
17737
|
+
}, F1 = /^\[(?:([a-z-]+):)?(.+)\]$/i, $x = /^\d+\/\d+$/, eE = /* @__PURE__ */ new Set(["px", "full", "screen"]), tE = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rE = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, nE = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, aE = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, sE = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ur = (e) => Dn(e) || eE.has(e) || $x.test(e), Jr = (e) => oa(e, "length", mE), Dn = (e) => !!e && !Number.isNaN(Number(e)), Ii = (e) => oa(e, "number", Dn), Sa = (e) => !!e && Number.isInteger(Number(e)), oE = (e) => e.endsWith("%") && Dn(e.slice(0, -1)), ye = (e) => F1.test(e), Yr = (e) => tE.test(e), iE = /* @__PURE__ */ new Set(["length", "size", "percentage"]), lE = (e) => oa(e, iE, M1), cE = (e) => oa(e, "position", M1), dE = /* @__PURE__ */ new Set(["image", "url"]), uE = (e) => oa(e, dE, fE), pE = (e) => oa(e, "", hE), Ta = () => !0, oa = (e, t, r) => {
|
|
17738
17738
|
const n = F1.exec(e);
|
|
17739
17739
|
return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
|
|
17740
17740
|
}, mE = (e) => (
|
|
@@ -18431,7 +18431,7 @@ const Je = (e) => {
|
|
|
18431
18431
|
* @see https://tailwindcss.com/docs/font-weight
|
|
18432
18432
|
*/
|
|
18433
18433
|
"font-weight": [{
|
|
18434
|
-
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black",
|
|
18434
|
+
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Ii]
|
|
18435
18435
|
}],
|
|
18436
18436
|
/**
|
|
18437
18437
|
* Font Family
|
|
@@ -18482,7 +18482,7 @@ const Je = (e) => {
|
|
|
18482
18482
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
18483
18483
|
*/
|
|
18484
18484
|
"line-clamp": [{
|
|
18485
|
-
"line-clamp": ["none", Dn,
|
|
18485
|
+
"line-clamp": ["none", Dn, Ii]
|
|
18486
18486
|
}],
|
|
18487
18487
|
/**
|
|
18488
18488
|
* Line Height
|
|
@@ -19696,7 +19696,7 @@ const Je = (e) => {
|
|
|
19696
19696
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
19697
19697
|
*/
|
|
19698
19698
|
"stroke-w": [{
|
|
19699
|
-
stroke: [Ur, Jr,
|
|
19699
|
+
stroke: [Ur, Jr, Ii]
|
|
19700
19700
|
}],
|
|
19701
19701
|
/**
|
|
19702
19702
|
* Stroke
|
|
@@ -19802,7 +19802,7 @@ var le;
|
|
|
19802
19802
|
(function(e) {
|
|
19803
19803
|
e[e.Verbose = 4] = "Verbose", e[e.Info = 3] = "Info", e[e.Warn = 2] = "Warn", e[e.Error = 1] = "Error", e[e.None = 0] = "None";
|
|
19804
19804
|
})(le || (le = {}));
|
|
19805
|
-
const
|
|
19805
|
+
const Cl = (e, t, r) => {
|
|
19806
19806
|
if (r >= t) {
|
|
19807
19807
|
const n = e.reduce((a, s, o) => ((o + 1) % 2 && a.push(`
|
|
19808
19808
|
`), a.push(s), a), []);
|
|
@@ -19845,10 +19845,10 @@ function V1(e, t) {
|
|
|
19845
19845
|
return e.apply(t, arguments);
|
|
19846
19846
|
};
|
|
19847
19847
|
}
|
|
19848
|
-
const { toString: EE } = Object.prototype, { getPrototypeOf: uc } = Object, { iterator:
|
|
19848
|
+
const { toString: EE } = Object.prototype, { getPrototypeOf: uc } = Object, { iterator: Lo, toStringTag: W1 } = Symbol, Oo = /* @__PURE__ */ ((e) => (t) => {
|
|
19849
19849
|
const r = EE.call(t);
|
|
19850
19850
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
19851
|
-
})(/* @__PURE__ */ Object.create(null)), or = (e) => (e = e.toLowerCase(), (t) =>
|
|
19851
|
+
})(/* @__PURE__ */ Object.create(null)), or = (e) => (e = e.toLowerCase(), (t) => Oo(t) === e), qo = (e) => (t) => typeof t === e, { isArray: ia } = Array, Pa = qo("undefined");
|
|
19852
19852
|
function vE(e) {
|
|
19853
19853
|
return e !== null && !Pa(e) && e.constructor !== null && !Pa(e.constructor) && Ft(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
19854
19854
|
}
|
|
@@ -19857,14 +19857,14 @@ function AE(e) {
|
|
|
19857
19857
|
let t;
|
|
19858
19858
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && L1(e.buffer), t;
|
|
19859
19859
|
}
|
|
19860
|
-
const kE =
|
|
19861
|
-
if (
|
|
19860
|
+
const kE = qo("string"), Ft = qo("function"), O1 = qo("number"), Ko = (e) => e !== null && typeof e == "object", SE = (e) => e === !0 || e === !1, no = (e) => {
|
|
19861
|
+
if (Oo(e) !== "object")
|
|
19862
19862
|
return !1;
|
|
19863
19863
|
const t = uc(e);
|
|
19864
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(W1 in e) && !(
|
|
19865
|
-
}, TE = or("Date"), UE = or("File"), IE = or("Blob"), NE = or("FileList"), BE = (e) =>
|
|
19864
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(W1 in e) && !(Lo in e);
|
|
19865
|
+
}, TE = or("Date"), UE = or("File"), IE = or("Blob"), NE = or("FileList"), BE = (e) => Ko(e) && Ft(e.pipe), RE = (e) => {
|
|
19866
19866
|
let t;
|
|
19867
|
-
return e && (typeof FormData == "function" && e instanceof FormData || Ft(e.append) && ((t =
|
|
19867
|
+
return e && (typeof FormData == "function" && e instanceof FormData || Ft(e.append) && ((t = Oo(e)) === "formdata" || // detect form-data instance
|
|
19868
19868
|
t === "object" && Ft(e.toString) && e.toString() === "[object FormData]"));
|
|
19869
19869
|
}, FE = or("URLSearchParams"), [ME, VE, WE, LE] = ["ReadableStream", "Request", "Response", "Headers"].map(or), OE = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
19870
19870
|
function as(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
@@ -19891,10 +19891,10 @@ function q1(e, t) {
|
|
|
19891
19891
|
return null;
|
|
19892
19892
|
}
|
|
19893
19893
|
const pn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, K1 = (e) => !Pa(e) && e !== pn;
|
|
19894
|
-
function
|
|
19894
|
+
function xl() {
|
|
19895
19895
|
const { caseless: e } = K1(this) && this || {}, t = {}, r = (n, a) => {
|
|
19896
19896
|
const s = e && q1(t, a) || a;
|
|
19897
|
-
no(t[s]) && no(n) ? t[s] =
|
|
19897
|
+
no(t[s]) && no(n) ? t[s] = xl(t[s], n) : no(n) ? t[s] = xl({}, n) : ia(n) ? t[s] = n.slice() : t[s] = n;
|
|
19898
19898
|
};
|
|
19899
19899
|
for (let n = 0, a = arguments.length; n < a; n++)
|
|
19900
19900
|
arguments[n] && as(arguments[n], r);
|
|
@@ -19930,7 +19930,7 @@ const qE = (e, t, r, { allOwnKeys: n } = {}) => (as(t, (a, s) => {
|
|
|
19930
19930
|
r[t] = e[t];
|
|
19931
19931
|
return r;
|
|
19932
19932
|
}, QE = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && uc(Uint8Array)), PE = (e, t) => {
|
|
19933
|
-
const n = (e && e[
|
|
19933
|
+
const n = (e && e[Lo]).call(e);
|
|
19934
19934
|
let a;
|
|
19935
19935
|
for (; (a = n.next()) && !a.done; ) {
|
|
19936
19936
|
const s = a.value;
|
|
@@ -19978,11 +19978,11 @@ const qE = (e, t, r, { allOwnKeys: n } = {}) => (as(t, (a, s) => {
|
|
|
19978
19978
|
}, $E = () => {
|
|
19979
19979
|
}, ev = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
19980
19980
|
function tv(e) {
|
|
19981
|
-
return !!(e && Ft(e.append) && e[W1] === "FormData" && e[
|
|
19981
|
+
return !!(e && Ft(e.append) && e[W1] === "FormData" && e[Lo]);
|
|
19982
19982
|
}
|
|
19983
19983
|
const rv = (e) => {
|
|
19984
19984
|
const t = new Array(10), r = (n, a) => {
|
|
19985
|
-
if (
|
|
19985
|
+
if (Ko(n)) {
|
|
19986
19986
|
if (t.indexOf(n) >= 0)
|
|
19987
19987
|
return;
|
|
19988
19988
|
if (!("toJSON" in n)) {
|
|
@@ -19997,14 +19997,14 @@ const rv = (e) => {
|
|
|
19997
19997
|
return n;
|
|
19998
19998
|
};
|
|
19999
19999
|
return r(e, 0);
|
|
20000
|
-
}, nv = or("AsyncFunction"), av = (e) => e && (
|
|
20000
|
+
}, nv = or("AsyncFunction"), av = (e) => e && (Ko(e) || Ft(e)) && Ft(e.then) && Ft(e.catch), D1 = ((e, t) => e ? setImmediate : t ? ((r, n) => (pn.addEventListener("message", ({ source: a, data: s }) => {
|
|
20001
20001
|
a === pn && s === r && n.length && n.shift()();
|
|
20002
20002
|
}, !1), (a) => {
|
|
20003
20003
|
n.push(a), pn.postMessage(r, "*");
|
|
20004
20004
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
20005
20005
|
typeof setImmediate == "function",
|
|
20006
20006
|
Ft(pn.postMessage)
|
|
20007
|
-
), sv = typeof queueMicrotask < "u" ? queueMicrotask.bind(pn) : typeof process < "u" && process.nextTick || D1, ov = (e) => e != null && Ft(e[
|
|
20007
|
+
), sv = typeof queueMicrotask < "u" ? queueMicrotask.bind(pn) : typeof process < "u" && process.nextTick || D1, ov = (e) => e != null && Ft(e[Lo]), D = {
|
|
20008
20008
|
isArray: ia,
|
|
20009
20009
|
isArrayBuffer: L1,
|
|
20010
20010
|
isBuffer: vE,
|
|
@@ -20013,7 +20013,7 @@ const rv = (e) => {
|
|
|
20013
20013
|
isString: kE,
|
|
20014
20014
|
isNumber: O1,
|
|
20015
20015
|
isBoolean: SE,
|
|
20016
|
-
isObject:
|
|
20016
|
+
isObject: Ko,
|
|
20017
20017
|
isPlainObject: no,
|
|
20018
20018
|
isReadableStream: ME,
|
|
20019
20019
|
isRequest: VE,
|
|
@@ -20030,13 +20030,13 @@ const rv = (e) => {
|
|
|
20030
20030
|
isTypedArray: QE,
|
|
20031
20031
|
isFileList: NE,
|
|
20032
20032
|
forEach: as,
|
|
20033
|
-
merge:
|
|
20033
|
+
merge: xl,
|
|
20034
20034
|
extend: qE,
|
|
20035
20035
|
trim: OE,
|
|
20036
20036
|
stripBOM: KE,
|
|
20037
20037
|
inherits: zE,
|
|
20038
20038
|
toFlatObject: DE,
|
|
20039
|
-
kindOf:
|
|
20039
|
+
kindOf: Oo,
|
|
20040
20040
|
kindOfTest: or,
|
|
20041
20041
|
endsWith: GE,
|
|
20042
20042
|
toArray: ZE,
|
|
@@ -20114,7 +20114,7 @@ we.from = (e, t, r, n, a, s) => {
|
|
|
20114
20114
|
}, (i) => i !== "isAxiosError"), we.call(o, e.message, t, r, n, a), o.cause = e, o.name = e.name, s && Object.assign(o, s), o;
|
|
20115
20115
|
};
|
|
20116
20116
|
const iv = null;
|
|
20117
|
-
function
|
|
20117
|
+
function El(e) {
|
|
20118
20118
|
return D.isPlainObject(e) || D.isArray(e);
|
|
20119
20119
|
}
|
|
20120
20120
|
function Q1(e) {
|
|
@@ -20126,12 +20126,12 @@ function Dd(e, t, r) {
|
|
|
20126
20126
|
}).join(r ? "." : "") : t;
|
|
20127
20127
|
}
|
|
20128
20128
|
function lv(e) {
|
|
20129
|
-
return D.isArray(e) && !e.some(
|
|
20129
|
+
return D.isArray(e) && !e.some(El);
|
|
20130
20130
|
}
|
|
20131
20131
|
const cv = D.toFlatObject(D, {}, null, function(t) {
|
|
20132
20132
|
return /^is[A-Z]/.test(t);
|
|
20133
20133
|
});
|
|
20134
|
-
function
|
|
20134
|
+
function zo(e, t, r) {
|
|
20135
20135
|
if (!D.isObject(e))
|
|
20136
20136
|
throw new TypeError("target must be an object");
|
|
20137
20137
|
t = t || new FormData(), r = D.toFlatObject(r, {
|
|
@@ -20166,12 +20166,12 @@ function Ko(e, t, r) {
|
|
|
20166
20166
|
);
|
|
20167
20167
|
}), !1;
|
|
20168
20168
|
}
|
|
20169
|
-
return
|
|
20169
|
+
return El(y) ? !0 : (t.append(Dd(b, C, s), u(y)), !1);
|
|
20170
20170
|
}
|
|
20171
20171
|
const d = [], h = Object.assign(cv, {
|
|
20172
20172
|
defaultVisitor: p,
|
|
20173
20173
|
convertValue: u,
|
|
20174
|
-
isVisitable:
|
|
20174
|
+
isVisitable: El
|
|
20175
20175
|
});
|
|
20176
20176
|
function f(y, C) {
|
|
20177
20177
|
if (!D.isUndefined(y)) {
|
|
@@ -20207,7 +20207,7 @@ function Gd(e) {
|
|
|
20207
20207
|
});
|
|
20208
20208
|
}
|
|
20209
20209
|
function pc(e, t) {
|
|
20210
|
-
this._pairs = [], e &&
|
|
20210
|
+
this._pairs = [], e && zo(e, this, t);
|
|
20211
20211
|
}
|
|
20212
20212
|
const P1 = pc.prototype;
|
|
20213
20213
|
P1.append = function(t, r) {
|
|
@@ -20305,20 +20305,20 @@ const Y1 = {
|
|
|
20305
20305
|
Blob: mv
|
|
20306
20306
|
},
|
|
20307
20307
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
20308
|
-
}, mc = typeof window < "u" && typeof document < "u",
|
|
20308
|
+
}, mc = typeof window < "u" && typeof document < "u", vl = typeof navigator == "object" && navigator || void 0, fv = mc && (!vl || ["ReactNative", "NativeScript", "NS"].indexOf(vl.product) < 0), gv = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
20309
20309
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", wv = mc && window.location.href || "http://localhost", bv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20310
20310
|
__proto__: null,
|
|
20311
20311
|
hasBrowserEnv: mc,
|
|
20312
20312
|
hasStandardBrowserEnv: fv,
|
|
20313
20313
|
hasStandardBrowserWebWorkerEnv: gv,
|
|
20314
|
-
navigator:
|
|
20314
|
+
navigator: vl,
|
|
20315
20315
|
origin: wv
|
|
20316
20316
|
}, Symbol.toStringTag, { value: "Module" })), wt = {
|
|
20317
20317
|
...bv,
|
|
20318
20318
|
...hv
|
|
20319
20319
|
};
|
|
20320
20320
|
function yv(e, t) {
|
|
20321
|
-
return
|
|
20321
|
+
return zo(e, new wt.classes.URLSearchParams(), Object.assign({
|
|
20322
20322
|
visitor: function(r, n, a, s) {
|
|
20323
20323
|
return wt.isNode && D.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
20324
20324
|
}
|
|
@@ -20380,7 +20380,7 @@ const ss = {
|
|
|
20380
20380
|
return yv(t, this.formSerializer).toString();
|
|
20381
20381
|
if ((i = D.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
20382
20382
|
const l = this.env && this.env.FormData;
|
|
20383
|
-
return
|
|
20383
|
+
return zo(
|
|
20384
20384
|
i ? { "files[]": t } : t,
|
|
20385
20385
|
l && new l(),
|
|
20386
20386
|
this.formSerializer
|
|
@@ -20470,7 +20470,7 @@ function kv(e) {
|
|
|
20470
20470
|
return t;
|
|
20471
20471
|
}
|
|
20472
20472
|
const Sv = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
20473
|
-
function
|
|
20473
|
+
function Ni(e, t, r, n, a) {
|
|
20474
20474
|
if (D.isFunction(n))
|
|
20475
20475
|
return n.call(this, t, r);
|
|
20476
20476
|
if (a && (t = r), !!D.isString(t)) {
|
|
@@ -20544,7 +20544,7 @@ let Mt = class {
|
|
|
20544
20544
|
has(t, r) {
|
|
20545
20545
|
if (t = Ua(t), t) {
|
|
20546
20546
|
const n = D.findKey(this, t);
|
|
20547
|
-
return !!(n && this[n] !== void 0 && (!r ||
|
|
20547
|
+
return !!(n && this[n] !== void 0 && (!r || Ni(this, this[n], n, r)));
|
|
20548
20548
|
}
|
|
20549
20549
|
return !1;
|
|
20550
20550
|
}
|
|
@@ -20554,7 +20554,7 @@ let Mt = class {
|
|
|
20554
20554
|
function s(o) {
|
|
20555
20555
|
if (o = Ua(o), o) {
|
|
20556
20556
|
const i = D.findKey(n, o);
|
|
20557
|
-
i && (!r ||
|
|
20557
|
+
i && (!r || Ni(n, n[i], i, r)) && (delete n[i], a = !0);
|
|
20558
20558
|
}
|
|
20559
20559
|
}
|
|
20560
20560
|
return D.isArray(t) ? t.forEach(s) : s(t), a;
|
|
@@ -20564,7 +20564,7 @@ let Mt = class {
|
|
|
20564
20564
|
let n = r.length, a = !1;
|
|
20565
20565
|
for (; n--; ) {
|
|
20566
20566
|
const s = r[n];
|
|
20567
|
-
(!t ||
|
|
20567
|
+
(!t || Ni(this, this[s], s, t, !0)) && (delete this[s], a = !0);
|
|
20568
20568
|
}
|
|
20569
20569
|
return a;
|
|
20570
20570
|
}
|
|
@@ -20631,7 +20631,7 @@ D.reduceDescriptors(Mt.prototype, ({ value: e }, t) => {
|
|
|
20631
20631
|
};
|
|
20632
20632
|
});
|
|
20633
20633
|
D.freezeMethods(Mt);
|
|
20634
|
-
function
|
|
20634
|
+
function Bi(e, t) {
|
|
20635
20635
|
const r = this || ss, n = t || r, a = Mt.from(n.headers);
|
|
20636
20636
|
let s = n.data;
|
|
20637
20637
|
return D.forEach(e, function(i) {
|
|
@@ -20689,7 +20689,7 @@ function Bv(e, t) {
|
|
|
20689
20689
|
}, n - d)));
|
|
20690
20690
|
}, () => a && o(a)];
|
|
20691
20691
|
}
|
|
20692
|
-
const
|
|
20692
|
+
const mo = (e, t, r = 3) => {
|
|
20693
20693
|
let n = 0;
|
|
20694
20694
|
const a = Nv(50, 250);
|
|
20695
20695
|
return Bv((s) => {
|
|
@@ -20888,7 +20888,7 @@ const $1 = (e) => {
|
|
|
20888
20888
|
)), b = null;
|
|
20889
20889
|
}, s === void 0 && o.setContentType(null), "setRequestHeader" in b && D.forEach(o.toJSON(), function(v, N) {
|
|
20890
20890
|
b.setRequestHeader(N, v);
|
|
20891
|
-
}), D.isUndefined(a.withCredentials) || (b.withCredentials = !!a.withCredentials), i && i !== "json" && (b.responseType = a.responseType), u && ([h, y] =
|
|
20891
|
+
}), D.isUndefined(a.withCredentials) || (b.withCredentials = !!a.withCredentials), i && i !== "json" && (b.responseType = a.responseType), u && ([h, y] = mo(u, !0), b.addEventListener("progress", h)), l && b.upload && ([d, f] = mo(l), b.upload.addEventListener("progress", d), b.upload.addEventListener("loadend", f)), (a.cancelToken || a.signal) && (p = (k) => {
|
|
20892
20892
|
b && (n(!k || k.type ? new la(null, e, b) : k), b.abort(), b = null);
|
|
20893
20893
|
}, a.cancelToken && a.cancelToken.subscribe(p), a.signal && (a.signal.aborted ? p() : a.signal.addEventListener("abort", p)));
|
|
20894
20894
|
const A = Iv(a.url);
|
|
@@ -20978,7 +20978,7 @@ const $1 = (e) => {
|
|
|
20978
20978
|
}, {
|
|
20979
20979
|
highWaterMark: 2
|
|
20980
20980
|
});
|
|
20981
|
-
},
|
|
20981
|
+
}, Do = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", em = Do && typeof ReadableStream == "function", Dv = Do && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), tm = (e, ...t) => {
|
|
20982
20982
|
try {
|
|
20983
20983
|
return !!e(...t);
|
|
20984
20984
|
} catch {
|
|
@@ -20994,12 +20994,12 @@ const $1 = (e) => {
|
|
|
20994
20994
|
}
|
|
20995
20995
|
}).headers.has("Content-Type");
|
|
20996
20996
|
return e && !t;
|
|
20997
|
-
}), Hd = 64 * 1024,
|
|
20998
|
-
stream:
|
|
20997
|
+
}), Hd = 64 * 1024, Al = em && tm(() => D.isReadableStream(new Response("").body)), ho = {
|
|
20998
|
+
stream: Al && ((e) => e.body)
|
|
20999
20999
|
};
|
|
21000
|
-
|
|
21000
|
+
Do && ((e) => {
|
|
21001
21001
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
21002
|
-
!
|
|
21002
|
+
!ho[t] && (ho[t] = D.isFunction(e[t]) ? (r) => r[t]() : (r, n) => {
|
|
21003
21003
|
throw new we(`Response type '${t}' is not supported`, we.ERR_NOT_SUPPORT, n);
|
|
21004
21004
|
});
|
|
21005
21005
|
});
|
|
@@ -21021,7 +21021,7 @@ const Zv = async (e) => {
|
|
|
21021
21021
|
}, Qv = async (e, t) => {
|
|
21022
21022
|
const r = D.toFiniteNumber(e.getContentLength());
|
|
21023
21023
|
return r ?? Zv(t);
|
|
21024
|
-
}, Pv =
|
|
21024
|
+
}, Pv = Do && (async (e) => {
|
|
21025
21025
|
let {
|
|
21026
21026
|
url: t,
|
|
21027
21027
|
method: r,
|
|
@@ -21052,7 +21052,7 @@ const Zv = async (e) => {
|
|
|
21052
21052
|
if (D.isFormData(n) && (R = N.headers.get("content-type")) && p.setContentType(R), N.body) {
|
|
21053
21053
|
const [U, L] = Pd(
|
|
21054
21054
|
b,
|
|
21055
|
-
|
|
21055
|
+
mo(Jd(l))
|
|
21056
21056
|
);
|
|
21057
21057
|
n = Xd(N.body, Hd, U, L);
|
|
21058
21058
|
}
|
|
@@ -21069,15 +21069,15 @@ const Zv = async (e) => {
|
|
|
21069
21069
|
credentials: x ? d : void 0
|
|
21070
21070
|
});
|
|
21071
21071
|
let A = await fetch(y);
|
|
21072
|
-
const k =
|
|
21073
|
-
if (
|
|
21072
|
+
const k = Al && (u === "stream" || u === "response");
|
|
21073
|
+
if (Al && (i || k && C)) {
|
|
21074
21074
|
const N = {};
|
|
21075
21075
|
["status", "statusText", "headers"].forEach((V) => {
|
|
21076
21076
|
N[V] = A[V];
|
|
21077
21077
|
});
|
|
21078
21078
|
const R = D.toFiniteNumber(A.headers.get("content-length")), [U, L] = i && Pd(
|
|
21079
21079
|
R,
|
|
21080
|
-
|
|
21080
|
+
mo(Jd(i), !0)
|
|
21081
21081
|
) || [];
|
|
21082
21082
|
A = new Response(
|
|
21083
21083
|
Xd(A.body, Hd, U, () => {
|
|
@@ -21087,7 +21087,7 @@ const Zv = async (e) => {
|
|
|
21087
21087
|
);
|
|
21088
21088
|
}
|
|
21089
21089
|
u = u || "text";
|
|
21090
|
-
let v = await
|
|
21090
|
+
let v = await ho[D.findKey(ho, u) || "text"](A, e);
|
|
21091
21091
|
return !k && C && C(), await new Promise((N, R) => {
|
|
21092
21092
|
j1(N, R, {
|
|
21093
21093
|
data: v,
|
|
@@ -21106,12 +21106,12 @@ const Zv = async (e) => {
|
|
|
21106
21106
|
}
|
|
21107
21107
|
) : we.from(x, x && x.code, e, y);
|
|
21108
21108
|
}
|
|
21109
|
-
}),
|
|
21109
|
+
}), kl = {
|
|
21110
21110
|
http: iv,
|
|
21111
21111
|
xhr: Lv,
|
|
21112
21112
|
fetch: Pv
|
|
21113
21113
|
};
|
|
21114
|
-
D.forEach(
|
|
21114
|
+
D.forEach(kl, (e, t) => {
|
|
21115
21115
|
if (e) {
|
|
21116
21116
|
try {
|
|
21117
21117
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -21129,7 +21129,7 @@ const jd = (e) => `- ${e}`, Jv = (e) => D.isFunction(e) || e === null || e === !
|
|
|
21129
21129
|
for (let s = 0; s < t; s++) {
|
|
21130
21130
|
r = e[s];
|
|
21131
21131
|
let o;
|
|
21132
|
-
if (n = r, !Jv(r) && (n =
|
|
21132
|
+
if (n = r, !Jv(r) && (n = kl[(o = String(r)).toLowerCase()], n === void 0))
|
|
21133
21133
|
throw new we(`Unknown adapter '${o}'`);
|
|
21134
21134
|
if (n)
|
|
21135
21135
|
break;
|
|
@@ -21149,38 +21149,38 @@ const jd = (e) => `- ${e}`, Jv = (e) => D.isFunction(e) || e === null || e === !
|
|
|
21149
21149
|
}
|
|
21150
21150
|
return n;
|
|
21151
21151
|
},
|
|
21152
|
-
adapters:
|
|
21152
|
+
adapters: kl
|
|
21153
21153
|
};
|
|
21154
|
-
function
|
|
21154
|
+
function Ri(e) {
|
|
21155
21155
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
21156
21156
|
throw new la(null, e);
|
|
21157
21157
|
}
|
|
21158
21158
|
function _d(e) {
|
|
21159
|
-
return
|
|
21159
|
+
return Ri(e), e.headers = Mt.from(e.headers), e.data = Bi.call(
|
|
21160
21160
|
e,
|
|
21161
21161
|
e.transformRequest
|
|
21162
21162
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), rm.getAdapter(e.adapter || ss.adapter)(e).then(function(n) {
|
|
21163
|
-
return
|
|
21163
|
+
return Ri(e), n.data = Bi.call(
|
|
21164
21164
|
e,
|
|
21165
21165
|
e.transformResponse,
|
|
21166
21166
|
n
|
|
21167
21167
|
), n.headers = Mt.from(n.headers), n;
|
|
21168
21168
|
}, function(n) {
|
|
21169
|
-
return H1(n) || (
|
|
21169
|
+
return H1(n) || (Ri(e), n && n.response && (n.response.data = Bi.call(
|
|
21170
21170
|
e,
|
|
21171
21171
|
e.transformResponse,
|
|
21172
21172
|
n.response
|
|
21173
21173
|
), n.response.headers = Mt.from(n.response.headers))), Promise.reject(n);
|
|
21174
21174
|
});
|
|
21175
21175
|
}
|
|
21176
|
-
const nm = "1.9.0",
|
|
21176
|
+
const nm = "1.9.0", Go = {};
|
|
21177
21177
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
21178
|
-
|
|
21178
|
+
Go[e] = function(n) {
|
|
21179
21179
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
21180
21180
|
};
|
|
21181
21181
|
});
|
|
21182
21182
|
const $d = {};
|
|
21183
|
-
|
|
21183
|
+
Go.transitional = function(t, r, n) {
|
|
21184
21184
|
function a(s, o) {
|
|
21185
21185
|
return "[Axios v" + nm + "] Transitional option '" + s + "'" + o + (n ? ". " + n : "");
|
|
21186
21186
|
}
|
|
@@ -21198,7 +21198,7 @@ Do.transitional = function(t, r, n) {
|
|
|
21198
21198
|
)), t ? t(s, o, i) : !0;
|
|
21199
21199
|
};
|
|
21200
21200
|
};
|
|
21201
|
-
|
|
21201
|
+
Go.spelling = function(t) {
|
|
21202
21202
|
return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
|
|
21203
21203
|
};
|
|
21204
21204
|
function Yv(e, t, r) {
|
|
@@ -21220,7 +21220,7 @@ function Yv(e, t, r) {
|
|
|
21220
21220
|
}
|
|
21221
21221
|
const so = {
|
|
21222
21222
|
assertOptions: Yv,
|
|
21223
|
-
validators:
|
|
21223
|
+
validators: Go
|
|
21224
21224
|
}, ur = so.validators;
|
|
21225
21225
|
let wn = class {
|
|
21226
21226
|
constructor(t) {
|
|
@@ -21427,7 +21427,7 @@ function Hv(e) {
|
|
|
21427
21427
|
function jv(e) {
|
|
21428
21428
|
return D.isObject(e) && e.isAxiosError === !0;
|
|
21429
21429
|
}
|
|
21430
|
-
const
|
|
21430
|
+
const Sl = {
|
|
21431
21431
|
Continue: 100,
|
|
21432
21432
|
SwitchingProtocols: 101,
|
|
21433
21433
|
Processing: 102,
|
|
@@ -21492,8 +21492,8 @@ const kl = {
|
|
|
21492
21492
|
NotExtended: 510,
|
|
21493
21493
|
NetworkAuthenticationRequired: 511
|
|
21494
21494
|
};
|
|
21495
|
-
Object.entries(
|
|
21496
|
-
|
|
21495
|
+
Object.entries(Sl).forEach(([e, t]) => {
|
|
21496
|
+
Sl[t] = e;
|
|
21497
21497
|
});
|
|
21498
21498
|
function sm(e) {
|
|
21499
21499
|
const t = new wn(e), r = V1(wn.prototype.request, t);
|
|
@@ -21507,7 +21507,7 @@ rt.CanceledError = la;
|
|
|
21507
21507
|
rt.CancelToken = Xv;
|
|
21508
21508
|
rt.isCancel = H1;
|
|
21509
21509
|
rt.VERSION = nm;
|
|
21510
|
-
rt.toFormData =
|
|
21510
|
+
rt.toFormData = zo;
|
|
21511
21511
|
rt.AxiosError = we;
|
|
21512
21512
|
rt.Cancel = rt.CanceledError;
|
|
21513
21513
|
rt.all = function(t) {
|
|
@@ -21519,7 +21519,7 @@ rt.mergeConfig = xn;
|
|
|
21519
21519
|
rt.AxiosHeaders = Mt;
|
|
21520
21520
|
rt.formToJSON = (e) => X1(D.isHTMLForm(e) ? new FormData(e) : e);
|
|
21521
21521
|
rt.getAdapter = rm.getAdapter;
|
|
21522
|
-
rt.HttpStatusCode =
|
|
21522
|
+
rt.HttpStatusCode = Sl;
|
|
21523
21523
|
rt.default = rt;
|
|
21524
21524
|
const {
|
|
21525
21525
|
Axios: wM,
|
|
@@ -22168,7 +22168,7 @@ async function iA({ stepItem: e, step: t, wallet: r, setState: n, request: a, cl
|
|
|
22168
22168
|
}));
|
|
22169
22169
|
}, h);
|
|
22170
22170
|
}
|
|
22171
|
-
const
|
|
22171
|
+
const Zo = "https://api.relay.link", en = "https://assets.relay.link", im = "wss://ws.relay.link", lA = (e) => e?.length && e.find((t) => t.requestId)?.requestId || null;
|
|
22172
22172
|
function cA({ event: e, requestId: t, onOpen: r, onUpdate: n, onError: a, onClose: s, url: o, enabled: i = !1 }) {
|
|
22173
22173
|
if (!i || typeof window > "u" || typeof window.WebSocket > "u")
|
|
22174
22174
|
return { close: () => {
|
|
@@ -22320,7 +22320,7 @@ function wr(e, t) {
|
|
|
22320
22320
|
function lm(e, t, r) {
|
|
22321
22321
|
e.websocketFailureTimeoutId && (clearTimeout(e.websocketFailureTimeoutId), e.websocketFailureTimeoutId = null, t.log([`Cleared failure timeout: ${r}`], le.Verbose));
|
|
22322
22322
|
}
|
|
22323
|
-
async function
|
|
22323
|
+
async function Qo(e, t = {}, r, n, a, s, o) {
|
|
22324
22324
|
const i = Oe();
|
|
22325
22325
|
i?.baseApiUrl && (t.baseURL = i.baseApiUrl);
|
|
22326
22326
|
const l = i.pollingInterval ?? 5e3, u = i.maxPollingAttemptsBeforeTimeout ?? 2.5 * 60 * 1e3 / l, p = i.chains.find((k) => k.id === e);
|
|
@@ -22470,7 +22470,7 @@ async function Zo(e, t = {}, r, n, a, s, o) {
|
|
|
22470
22470
|
}
|
|
22471
22471
|
}));
|
|
22472
22472
|
await Promise.all(Q);
|
|
22473
|
-
const Z = await
|
|
22473
|
+
const Z = await Qo(e, t, r, n, d, s, f);
|
|
22474
22474
|
return f.closeWebSocket?.(), Ia(f, i), Z;
|
|
22475
22475
|
} catch (k) {
|
|
22476
22476
|
i.log(["Execute Steps: An error occurred", k], le.Error), f.closeWebSocket?.(), Ia(f, i);
|
|
@@ -22531,7 +22531,7 @@ function fc(e) {
|
|
|
22531
22531
|
function gc(e) {
|
|
22532
22532
|
return e.extend !== void 0 && e.getPermissions !== void 0;
|
|
22533
22533
|
}
|
|
22534
|
-
const
|
|
22534
|
+
const Po = (e) => ({
|
|
22535
22535
|
vmType: "evm",
|
|
22536
22536
|
getChainId: async () => e.getChainId(),
|
|
22537
22537
|
transport: hs(e.transport),
|
|
@@ -22596,7 +22596,7 @@ const Qo = (e) => ({
|
|
|
22596
22596
|
const s = Oe(), o = s.chains.find((p) => p.id === r), i = o?.httpRpcUrl;
|
|
22597
22597
|
return await yn({
|
|
22598
22598
|
chain: o?.viemChain,
|
|
22599
|
-
transport: e.transport ?
|
|
22599
|
+
transport: e.transport ? ll(i ? [Et(i), hs(e.transport), Et()] : [hs(e.transport), Et()]) : ll([Et(i), Et()]),
|
|
22600
22600
|
pollingInterval: s.confirmationPollingInterval
|
|
22601
22601
|
}).waitForTransactionReceipt({
|
|
22602
22602
|
hash: t,
|
|
@@ -22713,7 +22713,7 @@ const Qo = (e) => ({
|
|
|
22713
22713
|
return { isEOA: !1, isEIP7702Delegated: !1 };
|
|
22714
22714
|
}
|
|
22715
22715
|
}
|
|
22716
|
-
}), yA = Object.values(Rx).reduce((e, t) => (e[t.id] = t, e), {}),
|
|
22716
|
+
}), yA = Object.values(Rx).reduce((e, t) => (e[t.id] = t, e), {}), Jo = (e) => {
|
|
22717
22717
|
let t;
|
|
22718
22718
|
const n = [999, 1337].includes(e.id) ? void 0 : yA[e.id];
|
|
22719
22719
|
return n ? t = n : t = {
|
|
@@ -22782,7 +22782,7 @@ const Qo = (e) => ({
|
|
|
22782
22782
|
}
|
|
22783
22783
|
const n = await yt.get(`${e}/chains${r}`);
|
|
22784
22784
|
if (n.data && n.data.chains)
|
|
22785
|
-
return n.data.chains.map((a) =>
|
|
22785
|
+
return n.data.chains.map((a) => Jo(a));
|
|
22786
22786
|
throw "No Chain Data";
|
|
22787
22787
|
}, um = (e) => {
|
|
22788
22788
|
let t = null, r, n = [];
|
|
@@ -22809,16 +22809,16 @@ const xA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
22809
22809
|
get LogLevel() {
|
|
22810
22810
|
return le;
|
|
22811
22811
|
},
|
|
22812
|
-
adaptViemWallet:
|
|
22812
|
+
adaptViemWallet: Po,
|
|
22813
22813
|
axios: yt,
|
|
22814
|
-
configureViemChain:
|
|
22814
|
+
configureViemChain: Jo,
|
|
22815
22815
|
convertViemChainToRelayChain: wc,
|
|
22816
|
-
executeSteps:
|
|
22816
|
+
executeSteps: Qo,
|
|
22817
22817
|
fetchChainConfigs: CA,
|
|
22818
22818
|
getCurrentStepData: um,
|
|
22819
22819
|
isAPIError: tA,
|
|
22820
22820
|
isSimulateContractRequest: bc,
|
|
22821
|
-
log:
|
|
22821
|
+
log: Cl,
|
|
22822
22822
|
pollUntilHasData: cm,
|
|
22823
22823
|
pollUntilOk: dm,
|
|
22824
22824
|
prepareCallTransaction: fc,
|
|
@@ -22839,7 +22839,7 @@ const vA = [
|
|
|
22839
22839
|
].map((e) => wc(e)), AA = [A1, b1].map((e) => wc(e));
|
|
22840
22840
|
class kA {
|
|
22841
22841
|
log(t, r = le.Info) {
|
|
22842
|
-
return
|
|
22842
|
+
return Cl(t, r, this.logLevel);
|
|
22843
22843
|
}
|
|
22844
22844
|
constructor(t) {
|
|
22845
22845
|
if (Object.defineProperty(this, "version", {
|
|
@@ -22912,7 +22912,7 @@ class kA {
|
|
|
22912
22912
|
configurable: !0,
|
|
22913
22913
|
writable: !0,
|
|
22914
22914
|
value: z0
|
|
22915
|
-
}), this.version = EA, this.uiVersion = t.uiVersion, this.baseApiUrl = t.baseApiUrl ??
|
|
22915
|
+
}), this.version = EA, this.uiVersion = t.uiVersion, this.baseApiUrl = t.baseApiUrl ?? Zo, this.logLevel = t.logLevel !== void 0 ? t.logLevel : le.None, this.pollingInterval = t.pollingInterval, this.maxPollingAttemptsBeforeTimeout = t.maxPollingAttemptsBeforeTimeout, this.useGasFeeEstimations = t.useGasFeeEstimations ?? !0, this.websocketEnabled = t.websocket?.enabled ?? !1, this.websocketUrl = t.websocket?.url ?? im, t.chains ? this.chains = t.chains : t.baseApiUrl?.includes("testnets") ? this.chains = AA : this.chains = vA, t.source)
|
|
22916
22916
|
this.source = t.source;
|
|
22917
22917
|
else if (typeof window < "u") {
|
|
22918
22918
|
let r = location.hostname;
|
|
@@ -22921,7 +22921,7 @@ class kA {
|
|
|
22921
22921
|
}
|
|
22922
22922
|
configure(t) {
|
|
22923
22923
|
this.baseApiUrl = t.baseApiUrl ? t.baseApiUrl : this.baseApiUrl, this.source = t.source ? t.source : this.source, this.logLevel = t.logLevel !== void 0 ? t.logLevel : le.None, this.pollingInterval = t.pollingInterval ? t.pollingInterval : this.pollingInterval, this.confirmationPollingInterval = t.confirmationPollingInterval ? t.confirmationPollingInterval : this.confirmationPollingInterval, this.maxPollingAttemptsBeforeTimeout = t.maxPollingAttemptsBeforeTimeout ? t.maxPollingAttemptsBeforeTimeout : this.maxPollingAttemptsBeforeTimeout, this.useGasFeeEstimations = t.useGasFeeEstimations !== void 0 ? t.useGasFeeEstimations : this.useGasFeeEstimations, this.websocketEnabled = t.websocket?.enabled !== void 0 ? t.websocket.enabled : this.websocketEnabled, this.websocketUrl = t.websocket?.url || this.websocketUrl, t.logger ? this.log = t.logger : this.log = (r, n = le.Info) => {
|
|
22924
|
-
|
|
22924
|
+
Cl(r, n, this.logLevel);
|
|
22925
22925
|
}, t.chains && (this.chains = t.chains);
|
|
22926
22926
|
}
|
|
22927
22927
|
}
|
|
@@ -22931,13 +22931,13 @@ function Oe() {
|
|
|
22931
22931
|
function SA(e) {
|
|
22932
22932
|
return Oa ? Oa.configure(e) : Oa = new kA({ ...e }), Oa;
|
|
22933
22933
|
}
|
|
22934
|
-
const pm = "0x000000000000000000000000000000000000dead", mm = "CbKGgVKLJFb8bBrf58DnAkdryX6ubewVytn7X957YwNr", hm = "CrfbABN2sSvmoZLu9eDDfXpaC2nHg42R7AXbHs9eg4S9", fm = "bc1q4vxn43l44h30nkluqfxd9eckf45vr2awz38lwa", TA = "THa7BwoPfacfiELa63pbmm3g5PGKYmtJyt", UA = "0x00000000000000000000000000000000000dead0", gm = "0x000000000000000000000000000000000000000000000000000000000000dead", IA = 9286185, NA = 543210,
|
|
22934
|
+
const pm = "0x000000000000000000000000000000000000dead", mm = "CbKGgVKLJFb8bBrf58DnAkdryX6ubewVytn7X957YwNr", hm = "CrfbABN2sSvmoZLu9eDDfXpaC2nHg42R7AXbHs9eg4S9", fm = "bc1q4vxn43l44h30nkluqfxd9eckf45vr2awz38lwa", TA = "THa7BwoPfacfiELa63pbmm3g5PGKYmtJyt", UA = "0x00000000000000000000000000000000000dead0", gm = "0x000000000000000000000000000000000000000000000000000000000000dead", IA = 9286185, NA = 543210, Tl = (e, t) => e === "svm" ? t === IA ? hm : mm : e === "bvm" ? fm : t === NA ? UA : e === "tvm" ? TA : e === "suivm" ? gm : pm, ru = (e) => e ? e === hm || e === mm || e === fm || e === pm || e === gm : !1;
|
|
22935
22935
|
function BA(e) {
|
|
22936
22936
|
const { quote: t, wallet: r, depositGasLimit: n, onProgress: a } = e, s = Oe();
|
|
22937
22937
|
if (!s.baseApiUrl || !s.baseApiUrl.length)
|
|
22938
22938
|
throw new ReferenceError("RelayClient missing api url configuration");
|
|
22939
22939
|
let o;
|
|
22940
|
-
r && (o = gc(r) ?
|
|
22940
|
+
r && (o = gc(r) ? Po(r) : r);
|
|
22941
22941
|
try {
|
|
22942
22942
|
if (!o)
|
|
22943
22943
|
throw new Error("AdaptedWallet is required to execute steps");
|
|
@@ -22949,7 +22949,7 @@ function BA(e) {
|
|
|
22949
22949
|
if (ru(t?.details?.sender))
|
|
22950
22950
|
throw new Error("Sender should never be burn address");
|
|
22951
22951
|
const { request: u, ...p } = t, d = yc(p), h = new Promise((f, y) => {
|
|
22952
|
-
|
|
22952
|
+
Qo(l, u, o, ({ steps: C, fees: b, breakdown: x, details: A, refunded: k, error: v }) => {
|
|
22953
22953
|
if (i.signal.aborted) {
|
|
22954
22954
|
console.log("Relay SDK: Execution aborted, skipping progress callback");
|
|
22955
22955
|
return;
|
|
@@ -22980,7 +22980,7 @@ function BA(e) {
|
|
|
22980
22980
|
}
|
|
22981
22981
|
}
|
|
22982
22982
|
const RA = async (e, t, r, n, a) => {
|
|
22983
|
-
const s = e.chains.find((p) => p.id === r), o = e.chains.find((p) => p.id === t), i = s ?
|
|
22983
|
+
const s = e.chains.find((p) => p.id === r), o = e.chains.find((p) => p.id === t), i = s ? Tl(s.vmType, s.id) : void 0, l = o ? Tl(o.vmType, o.id) : void 0;
|
|
22984
22984
|
let u;
|
|
22985
22985
|
return a && (u = await a.address()), {
|
|
22986
22986
|
user: u || i || vt,
|
|
@@ -22992,7 +22992,7 @@ async function FA(e, t, r) {
|
|
|
22992
22992
|
if (!y.baseApiUrl || !y.baseApiUrl.length)
|
|
22993
22993
|
throw new ReferenceError("RelayClient missing api url configuration");
|
|
22994
22994
|
let C;
|
|
22995
|
-
s && (C = gc(s) ?
|
|
22995
|
+
s && (C = gc(s) ? Po(s) : s);
|
|
22996
22996
|
let b;
|
|
22997
22997
|
h && h.length > 0 && (b = h.map((N) => bc(N) ? fc(N) : N));
|
|
22998
22998
|
let x;
|
|
@@ -23028,7 +23028,7 @@ async function MA(e) {
|
|
|
23028
23028
|
throw new ReferenceError("RelayClient missing api url configuration");
|
|
23029
23029
|
let h;
|
|
23030
23030
|
p && p.length > 0 && (h = p.map((A) => bc(A) ? fc(A) : A));
|
|
23031
|
-
const f = d.chains.find((A) => A.id === n), y =
|
|
23031
|
+
const f = d.chains.find((A) => A.id === n), y = Tl(f?.vmType, f?.id), C = {
|
|
23032
23032
|
user: i ?? y,
|
|
23033
23033
|
destinationCurrency: r,
|
|
23034
23034
|
destinationChainId: t,
|
|
@@ -23076,7 +23076,7 @@ async function LA(e) {
|
|
|
23076
23076
|
if (!o.baseApiUrl || !o.baseApiUrl.length)
|
|
23077
23077
|
throw new ReferenceError("RelayClient missing api url configuration");
|
|
23078
23078
|
let i;
|
|
23079
|
-
if (t && (i = gc(t) ?
|
|
23079
|
+
if (t && (i = gc(t) ? Po(t) : t), !i)
|
|
23080
23080
|
throw new Error("AdaptedWallet is required to execute claim steps");
|
|
23081
23081
|
const l = await i.address(), u = new AbortController(), p = {
|
|
23082
23082
|
url: `${o.baseApiUrl}/app-fees/${l}/claim`,
|
|
@@ -23091,15 +23091,15 @@ async function LA(e) {
|
|
|
23091
23091
|
const h = d.data.steps || [], f = yc({
|
|
23092
23092
|
steps: h
|
|
23093
23093
|
});
|
|
23094
|
-
return { data: await
|
|
23094
|
+
return { data: await Qo(r, p, i, (C) => {
|
|
23095
23095
|
u.signal.aborted || s?.(C);
|
|
23096
23096
|
}, f), abortController: u };
|
|
23097
23097
|
} catch (d) {
|
|
23098
23098
|
throw console.error(d), d;
|
|
23099
23099
|
}
|
|
23100
23100
|
}
|
|
23101
|
-
const
|
|
23102
|
-
baseApiUrl:
|
|
23101
|
+
const oo = 792703809, ut = SA({
|
|
23102
|
+
baseApiUrl: Zo,
|
|
23103
23103
|
source: "useglyph.io"
|
|
23104
23104
|
}), FM = (e) => {
|
|
23105
23105
|
ut.configure({
|
|
@@ -23135,7 +23135,7 @@ const DA = "GlyphWidget", os = (e) => {
|
|
|
23135
23135
|
}
|
|
23136
23136
|
};
|
|
23137
23137
|
};
|
|
23138
|
-
function
|
|
23138
|
+
function Fi(e, t) {
|
|
23139
23139
|
return BigInt(jl(e.toString(), t));
|
|
23140
23140
|
}
|
|
23141
23141
|
const Ya = (e, t = 2) => Number(
|
|
@@ -23310,7 +23310,7 @@ const _A = Gt(
|
|
|
23310
23310
|
children: s,
|
|
23311
23311
|
iconNode: o,
|
|
23312
23312
|
...i
|
|
23313
|
-
}, l) =>
|
|
23313
|
+
}, l) => il(
|
|
23314
23314
|
"svg",
|
|
23315
23315
|
{
|
|
23316
23316
|
ref: l,
|
|
@@ -23324,7 +23324,7 @@ const _A = Gt(
|
|
|
23324
23324
|
...i
|
|
23325
23325
|
},
|
|
23326
23326
|
[
|
|
23327
|
-
...o.map(([u, p]) =>
|
|
23327
|
+
...o.map(([u, p]) => il(u, p)),
|
|
23328
23328
|
...Array.isArray(s) ? s : [s]
|
|
23329
23329
|
]
|
|
23330
23330
|
)
|
|
@@ -23337,7 +23337,7 @@ const _A = Gt(
|
|
|
23337
23337
|
*/
|
|
23338
23338
|
const ir = (e, t) => {
|
|
23339
23339
|
const r = Gt(
|
|
23340
|
-
({ className: n, ...a }, s) =>
|
|
23340
|
+
({ className: n, ...a }, s) => il(_A, {
|
|
23341
23341
|
ref: s,
|
|
23342
23342
|
iconNode: t,
|
|
23343
23343
|
className: wm(
|
|
@@ -23577,7 +23577,7 @@ const du = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, uu = I1, x
|
|
|
23577
23577
|
] : u;
|
|
23578
23578
|
}, []);
|
|
23579
23579
|
return uu(e, o, l, r?.class, r?.className);
|
|
23580
|
-
},
|
|
23580
|
+
}, Yo = xk(
|
|
23581
23581
|
"gw-inline-flex gw-font-display gw-items-center gw-justify-center gw-ease-in-out gw-gap-2 gw-whitespace-nowrap gw-rounded-full gw-font-medium gw-ring-offset-background gw-transition focus-visible:gw-outline-none focus-visible:gw-ring-2 focus-visible:gw-ring-ring focus-visible:gw-ring-offset-2 disabled:gw-pointer-events-none disabled:gw-opacity-50 [&_svg]:gw-pointer-events-none [&_svg]:gw-size-4 [&_svg]:gw-shrink-0",
|
|
23582
23582
|
{
|
|
23583
23583
|
variants: {
|
|
@@ -23620,7 +23620,7 @@ const du = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, uu = I1, x
|
|
|
23620
23620
|
({ className: e, variant: t, size: r, shadow: n, scale: a, asChild: s = !1, ...o }, i) => /* @__PURE__ */ c(
|
|
23621
23621
|
s ? fk : "button",
|
|
23622
23622
|
{
|
|
23623
|
-
className: oe(
|
|
23623
|
+
className: oe(Yo({ variant: t, size: r, className: e, shadow: n, scale: a })),
|
|
23624
23624
|
ref: i,
|
|
23625
23625
|
...o
|
|
23626
23626
|
}
|
|
@@ -23806,7 +23806,7 @@ var Rk = "DismissableLayer", Ul = "dismissableLayer.update", Fk = "dismissableLa
|
|
|
23806
23806
|
layers: /* @__PURE__ */ new Set(),
|
|
23807
23807
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
23808
23808
|
branches: /* @__PURE__ */ new Set()
|
|
23809
|
-
}),
|
|
23809
|
+
}), Xo = B.forwardRef(
|
|
23810
23810
|
(e, t) => {
|
|
23811
23811
|
const {
|
|
23812
23812
|
disableOutsidePointerEvents: r = !1,
|
|
@@ -23854,7 +23854,7 @@ var Rk = "DismissableLayer", Ul = "dismissableLayer.update", Fk = "dismissableLa
|
|
|
23854
23854
|
);
|
|
23855
23855
|
}
|
|
23856
23856
|
);
|
|
23857
|
-
|
|
23857
|
+
Xo.displayName = Rk;
|
|
23858
23858
|
var Vk = "DismissableLayerBranch", Wk = B.forwardRef((e, t) => {
|
|
23859
23859
|
const r = B.useContext(vm), n = B.useRef(null), a = ft(t, n);
|
|
23860
23860
|
return B.useEffect(() => {
|
|
@@ -23918,7 +23918,7 @@ function Am(e, t, r, { discrete: n }) {
|
|
|
23918
23918
|
const a = r.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
|
|
23919
23919
|
t && a.addEventListener(e, t, { once: !0 }), n ? Nk(a, s) : a.dispatchEvent(s);
|
|
23920
23920
|
}
|
|
23921
|
-
var
|
|
23921
|
+
var Mi = "focusScope.autoFocusOnMount", Vi = "focusScope.autoFocusOnUnmount", hu = { bubbles: !1, cancelable: !0 }, qk = "FocusScope", xc = B.forwardRef((e, t) => {
|
|
23922
23922
|
const {
|
|
23923
23923
|
loop: r = !1,
|
|
23924
23924
|
trapped: n = !1,
|
|
@@ -23960,13 +23960,13 @@ var Fi = "focusScope.autoFocusOnMount", Mi = "focusScope.autoFocusOnUnmount", hu
|
|
|
23960
23960
|
gu.add(f);
|
|
23961
23961
|
const C = document.activeElement;
|
|
23962
23962
|
if (!i.contains(C)) {
|
|
23963
|
-
const x = new CustomEvent(
|
|
23964
|
-
i.addEventListener(
|
|
23963
|
+
const x = new CustomEvent(Mi, hu);
|
|
23964
|
+
i.addEventListener(Mi, u), i.dispatchEvent(x), x.defaultPrevented || (Kk(Qk(km(i)), { select: !0 }), document.activeElement === C && Hr(i));
|
|
23965
23965
|
}
|
|
23966
23966
|
return () => {
|
|
23967
|
-
i.removeEventListener(
|
|
23968
|
-
const x = new CustomEvent(
|
|
23969
|
-
i.addEventListener(
|
|
23967
|
+
i.removeEventListener(Mi, u), setTimeout(() => {
|
|
23968
|
+
const x = new CustomEvent(Vi, hu);
|
|
23969
|
+
i.addEventListener(Vi, p), i.dispatchEvent(x), x.defaultPrevented || Hr(C ?? document.body, { select: !0 }), i.removeEventListener(Vi, p), gu.remove(f);
|
|
23970
23970
|
}, 0);
|
|
23971
23971
|
};
|
|
23972
23972
|
}
|
|
@@ -24117,12 +24117,12 @@ function Xk(e) {
|
|
|
24117
24117
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
24118
24118
|
return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
24119
24119
|
}
|
|
24120
|
-
var
|
|
24120
|
+
var Wi = 0;
|
|
24121
24121
|
function Sm() {
|
|
24122
24122
|
B.useEffect(() => {
|
|
24123
24123
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
24124
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? bu()), document.body.insertAdjacentElement("beforeend", e[1] ?? bu()),
|
|
24125
|
-
|
|
24124
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? bu()), document.body.insertAdjacentElement("beforeend", e[1] ?? bu()), Wi++, () => {
|
|
24125
|
+
Wi === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Wi--;
|
|
24126
24126
|
};
|
|
24127
24127
|
}, []);
|
|
24128
24128
|
}
|
|
@@ -24152,8 +24152,8 @@ function Hk(e, t, r) {
|
|
|
24152
24152
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
24153
24153
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
24154
24154
|
}
|
|
24155
|
-
var
|
|
24156
|
-
function
|
|
24155
|
+
var io = "right-scroll-bar-position", lo = "width-before-scroll-bar", jk = "with-scroll-bars-hidden", _k = "--removed-body-scroll-bar-size";
|
|
24156
|
+
function Li(e, t) {
|
|
24157
24157
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
24158
24158
|
}
|
|
24159
24159
|
function $k(e, t) {
|
|
@@ -24181,7 +24181,7 @@ var eS = typeof window < "u" ? B.useLayoutEffect : B.useEffect, yu = /* @__PURE_
|
|
|
24181
24181
|
function tS(e, t) {
|
|
24182
24182
|
var r = $k(null, function(n) {
|
|
24183
24183
|
return e.forEach(function(a) {
|
|
24184
|
-
return
|
|
24184
|
+
return Li(a, n);
|
|
24185
24185
|
});
|
|
24186
24186
|
});
|
|
24187
24187
|
return eS(function() {
|
|
@@ -24189,9 +24189,9 @@ function tS(e, t) {
|
|
|
24189
24189
|
if (n) {
|
|
24190
24190
|
var a = new Set(n), s = new Set(e), o = r.current;
|
|
24191
24191
|
a.forEach(function(i) {
|
|
24192
|
-
s.has(i) ||
|
|
24192
|
+
s.has(i) || Li(i, null);
|
|
24193
24193
|
}), s.forEach(function(i) {
|
|
24194
|
-
a.has(i) ||
|
|
24194
|
+
a.has(i) || Li(i, o);
|
|
24195
24195
|
});
|
|
24196
24196
|
}
|
|
24197
24197
|
yu.set(r, e);
|
|
@@ -24273,12 +24273,12 @@ Um.isSideCarExport = !0;
|
|
|
24273
24273
|
function sS(e, t) {
|
|
24274
24274
|
return e.useMedium(t), Um;
|
|
24275
24275
|
}
|
|
24276
|
-
var Im = aS(),
|
|
24277
|
-
},
|
|
24276
|
+
var Im = aS(), Oi = function() {
|
|
24277
|
+
}, Ho = B.forwardRef(function(e, t) {
|
|
24278
24278
|
var r = B.useRef(null), n = B.useState({
|
|
24279
|
-
onScrollCapture:
|
|
24280
|
-
onWheelCapture:
|
|
24281
|
-
onTouchMoveCapture:
|
|
24279
|
+
onScrollCapture: Oi,
|
|
24280
|
+
onWheelCapture: Oi,
|
|
24281
|
+
onTouchMoveCapture: Oi
|
|
24282
24282
|
}), a = n[0], s = n[1], o = e.forwardProps, i = e.children, l = e.className, u = e.removeScrollBar, p = e.enabled, d = e.shards, h = e.sideCar, f = e.noRelative, y = e.noIsolation, C = e.inert, b = e.allowPinchZoom, x = e.as, A = x === void 0 ? "div" : x, k = e.gapMode, v = Tm(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = h, R = tS([r, t]), U = mr(mr({}, v), a);
|
|
24283
24283
|
return B.createElement(
|
|
24284
24284
|
B.Fragment,
|
|
@@ -24287,14 +24287,14 @@ var Im = aS(), Li = function() {
|
|
|
24287
24287
|
o ? B.cloneElement(B.Children.only(i), mr(mr({}, U), { ref: R })) : B.createElement(A, mr({}, U, { className: l, ref: R }), i)
|
|
24288
24288
|
);
|
|
24289
24289
|
});
|
|
24290
|
-
|
|
24290
|
+
Ho.defaultProps = {
|
|
24291
24291
|
enabled: !0,
|
|
24292
24292
|
removeScrollBar: !0,
|
|
24293
24293
|
inert: !1
|
|
24294
24294
|
};
|
|
24295
|
-
|
|
24296
|
-
fullWidth:
|
|
24297
|
-
zeroRight:
|
|
24295
|
+
Ho.classNames = {
|
|
24296
|
+
fullWidth: lo,
|
|
24297
|
+
zeroRight: io
|
|
24298
24298
|
};
|
|
24299
24299
|
var oS = function() {
|
|
24300
24300
|
if (typeof __webpack_nonce__ < "u")
|
|
@@ -24345,11 +24345,11 @@ var dS = function() {
|
|
|
24345
24345
|
top: 0,
|
|
24346
24346
|
right: 0,
|
|
24347
24347
|
gap: 0
|
|
24348
|
-
},
|
|
24348
|
+
}, qi = function(e) {
|
|
24349
24349
|
return parseInt(e || "", 10) || 0;
|
|
24350
24350
|
}, mS = function(e) {
|
|
24351
24351
|
var t = window.getComputedStyle(document.body), r = t[e === "padding" ? "paddingLeft" : "marginLeft"], n = t[e === "padding" ? "paddingTop" : "marginTop"], a = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
24352
|
-
return [
|
|
24352
|
+
return [qi(r), qi(n), qi(a)];
|
|
24353
24353
|
}, hS = function(e) {
|
|
24354
24354
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
24355
24355
|
return pS;
|
|
@@ -24384,19 +24384,19 @@ var dS = function() {
|
|
|
24384
24384
|
].filter(Boolean).join(""), `
|
|
24385
24385
|
}
|
|
24386
24386
|
|
|
24387
|
-
.`).concat(
|
|
24387
|
+
.`).concat(io, ` {
|
|
24388
24388
|
right: `).concat(i, "px ").concat(n, `;
|
|
24389
24389
|
}
|
|
24390
24390
|
|
|
24391
|
-
.`).concat(
|
|
24391
|
+
.`).concat(lo, ` {
|
|
24392
24392
|
margin-right: `).concat(i, "px ").concat(n, `;
|
|
24393
24393
|
}
|
|
24394
24394
|
|
|
24395
|
-
.`).concat(
|
|
24395
|
+
.`).concat(io, " .").concat(io, ` {
|
|
24396
24396
|
right: 0 `).concat(n, `;
|
|
24397
24397
|
}
|
|
24398
24398
|
|
|
24399
|
-
.`).concat(
|
|
24399
|
+
.`).concat(lo, " .").concat(lo, ` {
|
|
24400
24400
|
margin-right: 0 `).concat(n, `;
|
|
24401
24401
|
}
|
|
24402
24402
|
|
|
@@ -24599,15 +24599,15 @@ function NS(e) {
|
|
|
24599
24599
|
}
|
|
24600
24600
|
const BS = sS(Im, IS);
|
|
24601
24601
|
var vc = B.forwardRef(function(e, t) {
|
|
24602
|
-
return B.createElement(
|
|
24602
|
+
return B.createElement(Ho, mr({}, e, { ref: t, sideCar: BS }));
|
|
24603
24603
|
});
|
|
24604
|
-
vc.classNames =
|
|
24604
|
+
vc.classNames = Ho.classNames;
|
|
24605
24605
|
var RS = function(e) {
|
|
24606
24606
|
if (typeof document > "u")
|
|
24607
24607
|
return null;
|
|
24608
24608
|
var t = Array.isArray(e) ? e[0] : e;
|
|
24609
24609
|
return t.ownerDocument.body;
|
|
24610
|
-
}, Mn = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ new WeakMap(), Ys = {},
|
|
24610
|
+
}, Mn = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ new WeakMap(), Ys = {}, Ki = 0, Mm = function(e) {
|
|
24611
24611
|
return e && (e.host || Mm(e.parentNode));
|
|
24612
24612
|
}, FS = function(e, t) {
|
|
24613
24613
|
return t.map(function(r) {
|
|
@@ -24638,11 +24638,11 @@ var RS = function(e) {
|
|
|
24638
24638
|
}
|
|
24639
24639
|
});
|
|
24640
24640
|
};
|
|
24641
|
-
return p(t), i.clear(),
|
|
24641
|
+
return p(t), i.clear(), Ki++, function() {
|
|
24642
24642
|
o.forEach(function(d) {
|
|
24643
24643
|
var h = Mn.get(d) - 1, f = s.get(d) - 1;
|
|
24644
24644
|
Mn.set(d, h), s.set(d, f), h || (Js.has(d) || d.removeAttribute(n), Js.delete(d)), f || d.removeAttribute(r);
|
|
24645
|
-
}),
|
|
24645
|
+
}), Ki--, Ki || (Mn = /* @__PURE__ */ new WeakMap(), Mn = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ new WeakMap(), Ys = {});
|
|
24646
24646
|
};
|
|
24647
24647
|
}, Vm = function(e, t, r) {
|
|
24648
24648
|
r === void 0 && (r = "data-aria-hidden");
|
|
@@ -24650,7 +24650,7 @@ var RS = function(e) {
|
|
|
24650
24650
|
return a ? (n.push.apply(n, Array.from(a.querySelectorAll("[aria-live], script"))), MS(n, a, r, "aria-hidden")) : function() {
|
|
24651
24651
|
return null;
|
|
24652
24652
|
};
|
|
24653
|
-
},
|
|
24653
|
+
}, jo = "Dialog", [Wm] = Un(jo), [VS, lr] = Wm(jo), Lm = (e) => {
|
|
24654
24654
|
const {
|
|
24655
24655
|
__scopeDialog: t,
|
|
24656
24656
|
children: r,
|
|
@@ -24662,7 +24662,7 @@ var RS = function(e) {
|
|
|
24662
24662
|
prop: n,
|
|
24663
24663
|
defaultProp: a ?? !1,
|
|
24664
24664
|
onChange: s,
|
|
24665
|
-
caller:
|
|
24665
|
+
caller: jo
|
|
24666
24666
|
});
|
|
24667
24667
|
return /* @__PURE__ */ c(
|
|
24668
24668
|
VS,
|
|
@@ -24681,7 +24681,7 @@ var RS = function(e) {
|
|
|
24681
24681
|
}
|
|
24682
24682
|
);
|
|
24683
24683
|
};
|
|
24684
|
-
Lm.displayName =
|
|
24684
|
+
Lm.displayName = jo;
|
|
24685
24685
|
var Om = "DialogTrigger", qm = B.forwardRef(
|
|
24686
24686
|
(e, t) => {
|
|
24687
24687
|
const { __scopeDialog: r, ...n } = e, a = lr(Om, r), s = ft(t, a.triggerRef);
|
|
@@ -24708,16 +24708,16 @@ var Ac = "DialogPortal", [WS, Km] = Wm(Ac, {
|
|
|
24708
24708
|
return /* @__PURE__ */ c(WS, { scope: t, forceMount: r, children: B.Children.map(n, (o) => /* @__PURE__ */ c(on, { present: r || s.open, children: /* @__PURE__ */ c(Ec, { asChild: !0, container: a, children: o }) })) });
|
|
24709
24709
|
};
|
|
24710
24710
|
zm.displayName = Ac;
|
|
24711
|
-
var
|
|
24711
|
+
var fo = "DialogOverlay", Dm = B.forwardRef(
|
|
24712
24712
|
(e, t) => {
|
|
24713
|
-
const r = Km(
|
|
24713
|
+
const r = Km(fo, e.__scopeDialog), { forceMount: n = r.forceMount, ...a } = e, s = lr(fo, e.__scopeDialog);
|
|
24714
24714
|
return s.modal ? /* @__PURE__ */ c(on, { present: n || s.open, children: /* @__PURE__ */ c(OS, { ...a, ref: t }) }) : null;
|
|
24715
24715
|
}
|
|
24716
24716
|
);
|
|
24717
|
-
Dm.displayName =
|
|
24717
|
+
Dm.displayName = fo;
|
|
24718
24718
|
var LS = /* @__PURE__ */ jn("DialogOverlay.RemoveScroll"), OS = B.forwardRef(
|
|
24719
24719
|
(e, t) => {
|
|
24720
|
-
const { __scopeDialog: r, ...n } = e, a = lr(
|
|
24720
|
+
const { __scopeDialog: r, ...n } = e, a = lr(fo, r);
|
|
24721
24721
|
return (
|
|
24722
24722
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
24723
24723
|
// ie. when `Overlay` and `Content` are siblings
|
|
@@ -24800,7 +24800,7 @@ var qS = B.forwardRef(
|
|
|
24800
24800
|
onMountAutoFocus: a,
|
|
24801
24801
|
onUnmountAutoFocus: s,
|
|
24802
24802
|
children: /* @__PURE__ */ c(
|
|
24803
|
-
|
|
24803
|
+
Xo,
|
|
24804
24804
|
{
|
|
24805
24805
|
role: "dialog",
|
|
24806
24806
|
id: i.contentId,
|
|
@@ -24964,7 +24964,7 @@ function ku(...e) {
|
|
|
24964
24964
|
typeof r == "function" && r(...t);
|
|
24965
24965
|
};
|
|
24966
24966
|
}
|
|
24967
|
-
const
|
|
24967
|
+
const zi = typeof document < "u" && window.visualViewport;
|
|
24968
24968
|
function Su(e) {
|
|
24969
24969
|
let t = window.getComputedStyle(e);
|
|
24970
24970
|
return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
|
|
@@ -24985,13 +24985,13 @@ const _S = /* @__PURE__ */ new Set([
|
|
|
24985
24985
|
"submit",
|
|
24986
24986
|
"reset"
|
|
24987
24987
|
]);
|
|
24988
|
-
let Xs = 0,
|
|
24988
|
+
let Xs = 0, Di;
|
|
24989
24989
|
function $S(e = {}) {
|
|
24990
24990
|
let { isDisabled: t } = e;
|
|
24991
24991
|
jS(() => {
|
|
24992
24992
|
if (!t)
|
|
24993
|
-
return Xs++, Xs === 1 && rh() && (
|
|
24994
|
-
Xs--, Xs === 0 &&
|
|
24993
|
+
return Xs++, Xs === 1 && rh() && (Di = eT()), () => {
|
|
24994
|
+
Xs--, Xs === 0 && Di?.();
|
|
24995
24995
|
};
|
|
24996
24996
|
}, [
|
|
24997
24997
|
t
|
|
@@ -25015,9 +25015,9 @@ function eT() {
|
|
|
25015
25015
|
}, s = (d) => {
|
|
25016
25016
|
let h = d.target;
|
|
25017
25017
|
Nl(h) && (h.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
|
|
25018
|
-
h.style.transform = "",
|
|
25018
|
+
h.style.transform = "", zi && (zi.height < window.innerHeight ? requestAnimationFrame(() => {
|
|
25019
25019
|
Tu(h);
|
|
25020
|
-
}) :
|
|
25020
|
+
}) : zi.addEventListener("resize", () => Tu(h), {
|
|
25021
25021
|
once: !0
|
|
25022
25022
|
}));
|
|
25023
25023
|
}));
|
|
@@ -25116,7 +25116,7 @@ function Hs(e, t) {
|
|
|
25116
25116
|
function sT(e) {
|
|
25117
25117
|
return 8 * (Math.log(e + 1) - 2);
|
|
25118
25118
|
}
|
|
25119
|
-
function
|
|
25119
|
+
function Gi(e, t) {
|
|
25120
25120
|
if (!e) return () => {
|
|
25121
25121
|
};
|
|
25122
25122
|
const r = e.style.cssText;
|
|
@@ -25138,7 +25138,7 @@ const $e = {
|
|
|
25138
25138
|
0,
|
|
25139
25139
|
1
|
|
25140
25140
|
]
|
|
25141
|
-
}, oh = 0.4, iT = 0.25, lT = 100, ih = 8, un = 16, Bl = 26,
|
|
25141
|
+
}, oh = 0.4, iT = 0.25, lT = 100, ih = 8, un = 16, Bl = 26, Zi = "vaul-dragging";
|
|
25142
25142
|
function lh(e) {
|
|
25143
25143
|
const t = q.useRef(e);
|
|
25144
25144
|
return q.useEffect(() => {
|
|
@@ -25334,15 +25334,15 @@ function pT() {
|
|
|
25334
25334
|
s.current && clearTimeout(s.current);
|
|
25335
25335
|
const l = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
|
|
25336
25336
|
if (!l) return;
|
|
25337
|
-
oT(n && !a ?
|
|
25337
|
+
oT(n && !a ? Gi(document.body, {
|
|
25338
25338
|
background: "black"
|
|
25339
|
-
}) : uT,
|
|
25339
|
+
}) : uT, Gi(l, {
|
|
25340
25340
|
transformOrigin: lt(e) ? "top" : "left",
|
|
25341
25341
|
transitionProperty: "transform, border-radius",
|
|
25342
25342
|
transitionDuration: `${$e.DURATION}s`,
|
|
25343
25343
|
transitionTimingFunction: `cubic-bezier(${$e.EASE.join(",")})`
|
|
25344
25344
|
}));
|
|
25345
|
-
const u =
|
|
25345
|
+
const u = Gi(l, {
|
|
25346
25346
|
borderRadius: `${ih}px`,
|
|
25347
25347
|
overflow: "hidden",
|
|
25348
25348
|
...lt(e) ? {
|
|
@@ -25513,7 +25513,7 @@ function hT({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: a, sn
|
|
|
25513
25513
|
let Pe = pe / Qe;
|
|
25514
25514
|
const Pt = se(pe, Se);
|
|
25515
25515
|
if (Pt !== null && (Pe = Pt), He && Pe >= 1 || !ae.current && !I(ue.target, Se)) return;
|
|
25516
|
-
if (de.current.classList.add(
|
|
25516
|
+
if (de.current.classList.add(Zi), ae.current = !0, ct(de.current, {
|
|
25517
25517
|
transition: "none"
|
|
25518
25518
|
}), ct(ee.current, {
|
|
25519
25519
|
transition: "none"
|
|
@@ -25613,11 +25613,11 @@ function hT({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: a, sn
|
|
|
25613
25613
|
}, !0);
|
|
25614
25614
|
}
|
|
25615
25615
|
function be() {
|
|
25616
|
-
!J || !de.current || (de.current.classList.remove(
|
|
25616
|
+
!J || !de.current || (de.current.classList.remove(Zi), ae.current = !1, _(!1), ie.current = /* @__PURE__ */ new Date());
|
|
25617
25617
|
}
|
|
25618
25618
|
function qe(ue) {
|
|
25619
25619
|
if (!J || !de.current) return;
|
|
25620
|
-
de.current.classList.remove(
|
|
25620
|
+
de.current.classList.remove(Zi), ae.current = !1, _(!1), ie.current = /* @__PURE__ */ new Date();
|
|
25621
25621
|
const Be = Hs(de.current, v);
|
|
25622
25622
|
if (!ue || !I(ue.target, !1) || !Be || Number.isNaN(Be) || P.current === null) return;
|
|
25623
25623
|
const We = ie.current.getTime() - P.current.getTime(), Se = Ce.current - (lt(v) ? ue.pageY : ue.pageX), He = Math.abs(Se) / We;
|
|
@@ -25957,7 +25957,7 @@ const ln = {
|
|
|
25957
25957
|
className: oe("gw-text-sm gw-text-muted-foreground", e),
|
|
25958
25958
|
...t
|
|
25959
25959
|
}
|
|
25960
|
-
)), ST = ["top", "right", "bottom", "left"], nn = Math.min, Ot = Math.max,
|
|
25960
|
+
)), ST = ["top", "right", "bottom", "left"], nn = Math.min, Ot = Math.max, go = Math.round, js = Math.floor, br = (e) => ({
|
|
25961
25961
|
x: e,
|
|
25962
25962
|
y: e
|
|
25963
25963
|
}), TT = {
|
|
@@ -25998,10 +25998,10 @@ function NT(e, t, r) {
|
|
|
25998
25998
|
r === void 0 && (r = !1);
|
|
25999
25999
|
const n = ua(e), a = Mc(e), s = Fc(a);
|
|
26000
26000
|
let o = a === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
26001
|
-
return t.reference[s] > t.floating[s] && (o =
|
|
26001
|
+
return t.reference[s] > t.floating[s] && (o = wo(o)), [o, wo(o)];
|
|
26002
26002
|
}
|
|
26003
26003
|
function BT(e) {
|
|
26004
|
-
const t =
|
|
26004
|
+
const t = wo(e);
|
|
26005
26005
|
return [Fl(e), t, Fl(t)];
|
|
26006
26006
|
}
|
|
26007
26007
|
function Fl(e) {
|
|
@@ -26025,7 +26025,7 @@ function VT(e, t, r, n) {
|
|
|
26025
26025
|
let s = MT(Kr(e), r === "start", n);
|
|
26026
26026
|
return a && (s = s.map((o) => o + "-" + a), t && (s = s.concat(s.map(Fl)))), s;
|
|
26027
26027
|
}
|
|
26028
|
-
function
|
|
26028
|
+
function wo(e) {
|
|
26029
26029
|
return e.replace(/left|right|bottom|top/g, (t) => TT[t]);
|
|
26030
26030
|
}
|
|
26031
26031
|
function WT(e) {
|
|
@@ -26045,7 +26045,7 @@ function mh(e) {
|
|
|
26045
26045
|
left: e
|
|
26046
26046
|
};
|
|
26047
26047
|
}
|
|
26048
|
-
function
|
|
26048
|
+
function bo(e) {
|
|
26049
26049
|
const {
|
|
26050
26050
|
x: t,
|
|
26051
26051
|
y: r,
|
|
@@ -26188,7 +26188,7 @@ async function Xa(e, t) {
|
|
|
26188
26188
|
elementContext: d = "floating",
|
|
26189
26189
|
altBoundary: h = !1,
|
|
26190
26190
|
padding: f = 0
|
|
26191
|
-
} = qr(t, e), y = mh(f), b = i[h ? d === "floating" ? "reference" : "floating" : d], x =
|
|
26191
|
+
} = qr(t, e), y = mh(f), b = i[h ? d === "floating" ? "reference" : "floating" : d], x = bo(await s.getClippingRect({
|
|
26192
26192
|
element: (r = await (s.isElement == null ? void 0 : s.isElement(b))) == null || r ? b : b.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
|
|
26193
26193
|
boundary: u,
|
|
26194
26194
|
rootBoundary: p,
|
|
@@ -26204,7 +26204,7 @@ async function Xa(e, t) {
|
|
|
26204
26204
|
} : {
|
|
26205
26205
|
x: 1,
|
|
26206
26206
|
y: 1
|
|
26207
|
-
}, N =
|
|
26207
|
+
}, N = bo(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
26208
26208
|
elements: i,
|
|
26209
26209
|
rect: A,
|
|
26210
26210
|
offsetParent: k,
|
|
@@ -26278,7 +26278,7 @@ const OT = (e) => ({
|
|
|
26278
26278
|
} = qr(e, t);
|
|
26279
26279
|
if ((r = s.arrow) != null && r.alignmentOffset)
|
|
26280
26280
|
return {};
|
|
26281
|
-
const x = Kr(a), A = hr(i), k = Kr(i) === i, v = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), N = h || (k || !C ? [
|
|
26281
|
+
const x = Kr(a), A = hr(i), k = Kr(i) === i, v = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), N = h || (k || !C ? [wo(i)] : BT(i)), R = y !== "none";
|
|
26282
26282
|
!h && R && N.push(...VT(i, C, y, v));
|
|
26283
26283
|
const U = [i, ...N], L = await Xa(t, b), V = [];
|
|
26284
26284
|
let X = ((n = s.flip) == null ? void 0 : n.overflows) || [];
|
|
@@ -26577,7 +26577,7 @@ const DT = function(e) {
|
|
|
26577
26577
|
}
|
|
26578
26578
|
};
|
|
26579
26579
|
};
|
|
26580
|
-
function
|
|
26580
|
+
function _o() {
|
|
26581
26581
|
return typeof window < "u";
|
|
26582
26582
|
}
|
|
26583
26583
|
function pa(e) {
|
|
@@ -26592,16 +26592,16 @@ function vr(e) {
|
|
|
26592
26592
|
return (t = (fh(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
26593
26593
|
}
|
|
26594
26594
|
function fh(e) {
|
|
26595
|
-
return
|
|
26595
|
+
return _o() ? e instanceof Node || e instanceof Dt(e).Node : !1;
|
|
26596
26596
|
}
|
|
26597
26597
|
function ar(e) {
|
|
26598
|
-
return
|
|
26598
|
+
return _o() ? e instanceof Element || e instanceof Dt(e).Element : !1;
|
|
26599
26599
|
}
|
|
26600
26600
|
function Er(e) {
|
|
26601
|
-
return
|
|
26601
|
+
return _o() ? e instanceof HTMLElement || e instanceof Dt(e).HTMLElement : !1;
|
|
26602
26602
|
}
|
|
26603
26603
|
function Fu(e) {
|
|
26604
|
-
return !
|
|
26604
|
+
return !_o() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Dt(e).ShadowRoot;
|
|
26605
26605
|
}
|
|
26606
26606
|
const PT = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
26607
26607
|
function cs(e) {
|
|
@@ -26618,7 +26618,7 @@ function YT(e) {
|
|
|
26618
26618
|
return JT.has(pa(e));
|
|
26619
26619
|
}
|
|
26620
26620
|
const XT = [":popover-open", ":modal"];
|
|
26621
|
-
function
|
|
26621
|
+
function $o(e) {
|
|
26622
26622
|
return XT.some((t) => {
|
|
26623
26623
|
try {
|
|
26624
26624
|
return e.matches(t);
|
|
@@ -26637,7 +26637,7 @@ function $T(e) {
|
|
|
26637
26637
|
for (; Er(t) && !$n(t); ) {
|
|
26638
26638
|
if (Vc(t))
|
|
26639
26639
|
return t;
|
|
26640
|
-
if (
|
|
26640
|
+
if ($o(t))
|
|
26641
26641
|
return null;
|
|
26642
26642
|
t = an(t);
|
|
26643
26643
|
}
|
|
@@ -26653,7 +26653,7 @@ function $n(e) {
|
|
|
26653
26653
|
function sr(e) {
|
|
26654
26654
|
return Dt(e).getComputedStyle(e);
|
|
26655
26655
|
}
|
|
26656
|
-
function
|
|
26656
|
+
function ei(e) {
|
|
26657
26657
|
return ar(e) ? {
|
|
26658
26658
|
scrollLeft: e.scrollLeft,
|
|
26659
26659
|
scrollTop: e.scrollTop
|
|
@@ -26694,7 +26694,7 @@ function Ml(e) {
|
|
|
26694
26694
|
function wh(e) {
|
|
26695
26695
|
const t = sr(e);
|
|
26696
26696
|
let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
|
|
26697
|
-
const a = Er(e), s = a ? e.offsetWidth : r, o = a ? e.offsetHeight : n, i =
|
|
26697
|
+
const a = Er(e), s = a ? e.offsetWidth : r, o = a ? e.offsetHeight : n, i = go(r) !== s || go(n) !== o;
|
|
26698
26698
|
return i && (r = s, n = o), {
|
|
26699
26699
|
width: r,
|
|
26700
26700
|
height: n,
|
|
@@ -26713,7 +26713,7 @@ function Zn(e) {
|
|
|
26713
26713
|
height: a,
|
|
26714
26714
|
$: s
|
|
26715
26715
|
} = wh(t);
|
|
26716
|
-
let o = (s ?
|
|
26716
|
+
let o = (s ? go(r.width) : r.width) / n, i = (s ? go(r.height) : r.height) / a;
|
|
26717
26717
|
return (!o || !Number.isFinite(o)) && (o = 1), (!i || !Number.isFinite(i)) && (i = 1), {
|
|
26718
26718
|
x: o,
|
|
26719
26719
|
y: i
|
|
@@ -26745,19 +26745,19 @@ function vn(e, t, r, n) {
|
|
|
26745
26745
|
l *= b.x, u *= b.y, p *= b.x, d *= b.y, l += k, u += v, y = Dt(C), C = Ml(y);
|
|
26746
26746
|
}
|
|
26747
26747
|
}
|
|
26748
|
-
return
|
|
26748
|
+
return bo({
|
|
26749
26749
|
width: p,
|
|
26750
26750
|
height: d,
|
|
26751
26751
|
x: l,
|
|
26752
26752
|
y: u
|
|
26753
26753
|
});
|
|
26754
26754
|
}
|
|
26755
|
-
function
|
|
26756
|
-
const r =
|
|
26755
|
+
function ti(e, t) {
|
|
26756
|
+
const r = ei(e).scrollLeft;
|
|
26757
26757
|
return t ? t.left + r : vn(vr(e)).left + r;
|
|
26758
26758
|
}
|
|
26759
26759
|
function yh(e, t) {
|
|
26760
|
-
const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft -
|
|
26760
|
+
const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft - ti(e, r), a = r.top + t.scrollTop;
|
|
26761
26761
|
return {
|
|
26762
26762
|
x: n,
|
|
26763
26763
|
y: a
|
|
@@ -26770,7 +26770,7 @@ function nU(e) {
|
|
|
26770
26770
|
offsetParent: n,
|
|
26771
26771
|
strategy: a
|
|
26772
26772
|
} = e;
|
|
26773
|
-
const s = a === "fixed", o = vr(n), i = t ?
|
|
26773
|
+
const s = a === "fixed", o = vr(n), i = t ? $o(t.floating) : !1;
|
|
26774
26774
|
if (n === o || i && s)
|
|
26775
26775
|
return r;
|
|
26776
26776
|
let l = {
|
|
@@ -26778,7 +26778,7 @@ function nU(e) {
|
|
|
26778
26778
|
scrollTop: 0
|
|
26779
26779
|
}, u = br(1);
|
|
26780
26780
|
const p = br(0), d = Er(n);
|
|
26781
|
-
if ((d || !d && !s) && ((pa(n) !== "body" || cs(o)) && (l =
|
|
26781
|
+
if ((d || !d && !s) && ((pa(n) !== "body" || cs(o)) && (l = ei(n)), Er(n))) {
|
|
26782
26782
|
const f = vn(n);
|
|
26783
26783
|
u = Zn(n), p.x = f.x + n.clientLeft, p.y = f.y + n.clientTop;
|
|
26784
26784
|
}
|
|
@@ -26794,8 +26794,8 @@ function aU(e) {
|
|
|
26794
26794
|
return Array.from(e.getClientRects());
|
|
26795
26795
|
}
|
|
26796
26796
|
function sU(e) {
|
|
26797
|
-
const t = vr(e), r =
|
|
26798
|
-
let o = -r.scrollLeft +
|
|
26797
|
+
const t = vr(e), r = ei(e), n = e.ownerDocument.body, a = Ot(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), s = Ot(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
|
|
26798
|
+
let o = -r.scrollLeft + ti(e);
|
|
26799
26799
|
const i = -r.scrollTop;
|
|
26800
26800
|
return sr(n).direction === "rtl" && (o += Ot(t.clientWidth, n.clientWidth) - a), {
|
|
26801
26801
|
width: a,
|
|
@@ -26813,7 +26813,7 @@ function oU(e, t) {
|
|
|
26813
26813
|
const p = Wc();
|
|
26814
26814
|
(!p || p && t === "fixed") && (i = a.offsetLeft, l = a.offsetTop);
|
|
26815
26815
|
}
|
|
26816
|
-
const u =
|
|
26816
|
+
const u = ti(n);
|
|
26817
26817
|
if (u <= 0) {
|
|
26818
26818
|
const p = n.ownerDocument, d = p.body, h = getComputedStyle(d), f = p.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, y = Math.abs(n.clientWidth - d.clientWidth - f);
|
|
26819
26819
|
y <= Mu && (s -= y);
|
|
@@ -26852,7 +26852,7 @@ function Vu(e, t, r) {
|
|
|
26852
26852
|
height: t.height
|
|
26853
26853
|
};
|
|
26854
26854
|
}
|
|
26855
|
-
return
|
|
26855
|
+
return bo(n);
|
|
26856
26856
|
}
|
|
26857
26857
|
function Ch(e, t) {
|
|
26858
26858
|
const r = an(e);
|
|
@@ -26878,7 +26878,7 @@ function dU(e) {
|
|
|
26878
26878
|
rootBoundary: n,
|
|
26879
26879
|
strategy: a
|
|
26880
26880
|
} = e;
|
|
26881
|
-
const o = [...r === "clippingAncestors" ?
|
|
26881
|
+
const o = [...r === "clippingAncestors" ? $o(t) ? [] : cU(t, this._c) : [].concat(r), n], i = o[0], l = o.reduce((u, p) => {
|
|
26882
26882
|
const d = Vu(t, p, a);
|
|
26883
26883
|
return u.top = Ot(d.top, u.top), u.right = nn(d.right, u.right), u.bottom = nn(d.bottom, u.bottom), u.left = Ot(d.left, u.left), u;
|
|
26884
26884
|
}, Vu(t, i, a));
|
|
@@ -26907,10 +26907,10 @@ function pU(e, t, r) {
|
|
|
26907
26907
|
};
|
|
26908
26908
|
const l = br(0);
|
|
26909
26909
|
function u() {
|
|
26910
|
-
l.x =
|
|
26910
|
+
l.x = ti(a);
|
|
26911
26911
|
}
|
|
26912
26912
|
if (n || !n && !s)
|
|
26913
|
-
if ((pa(t) !== "body" || cs(a)) && (i =
|
|
26913
|
+
if ((pa(t) !== "body" || cs(a)) && (i = ei(t)), n) {
|
|
26914
26914
|
const f = vn(t, !0, s, t);
|
|
26915
26915
|
l.x = f.x + t.clientLeft, l.y = f.y + t.clientTop;
|
|
26916
26916
|
} else a && u();
|
|
@@ -26923,7 +26923,7 @@ function pU(e, t, r) {
|
|
|
26923
26923
|
height: o.height
|
|
26924
26924
|
};
|
|
26925
26925
|
}
|
|
26926
|
-
function
|
|
26926
|
+
function Qi(e) {
|
|
26927
26927
|
return sr(e).position === "static";
|
|
26928
26928
|
}
|
|
26929
26929
|
function Wu(e, t) {
|
|
@@ -26936,21 +26936,21 @@ function Wu(e, t) {
|
|
|
26936
26936
|
}
|
|
26937
26937
|
function xh(e, t) {
|
|
26938
26938
|
const r = Dt(e);
|
|
26939
|
-
if (
|
|
26939
|
+
if ($o(e))
|
|
26940
26940
|
return r;
|
|
26941
26941
|
if (!Er(e)) {
|
|
26942
26942
|
let a = an(e);
|
|
26943
26943
|
for (; a && !$n(a); ) {
|
|
26944
|
-
if (ar(a) && !
|
|
26944
|
+
if (ar(a) && !Qi(a))
|
|
26945
26945
|
return a;
|
|
26946
26946
|
a = an(a);
|
|
26947
26947
|
}
|
|
26948
26948
|
return r;
|
|
26949
26949
|
}
|
|
26950
26950
|
let n = Wu(e, t);
|
|
26951
|
-
for (; n && YT(n) &&
|
|
26951
|
+
for (; n && YT(n) && Qi(n); )
|
|
26952
26952
|
n = Wu(n, t);
|
|
26953
|
-
return n && $n(n) &&
|
|
26953
|
+
return n && $n(n) && Qi(n) && !Vc(n) ? r : n || $T(e) || r;
|
|
26954
26954
|
}
|
|
26955
26955
|
const mU = async function(e) {
|
|
26956
26956
|
const t = this.getOffsetParent || xh, r = this.getDimensions, n = await r(e.floating);
|
|
@@ -27078,8 +27078,8 @@ const bU = DT, yU = GT, CU = qT, xU = QT, EU = KT, Lu = OT, vU = ZT, AU = (e, t,
|
|
|
27078
27078
|
});
|
|
27079
27079
|
};
|
|
27080
27080
|
var kU = typeof document < "u", SU = function() {
|
|
27081
|
-
},
|
|
27082
|
-
function
|
|
27081
|
+
}, co = kU ? Ep : SU;
|
|
27082
|
+
function yo(e, t) {
|
|
27083
27083
|
if (e === t)
|
|
27084
27084
|
return !0;
|
|
27085
27085
|
if (typeof e != typeof t)
|
|
@@ -27091,7 +27091,7 @@ function bo(e, t) {
|
|
|
27091
27091
|
if (Array.isArray(e)) {
|
|
27092
27092
|
if (r = e.length, r !== t.length) return !1;
|
|
27093
27093
|
for (n = r; n-- !== 0; )
|
|
27094
|
-
if (!
|
|
27094
|
+
if (!yo(e[n], t[n]))
|
|
27095
27095
|
return !1;
|
|
27096
27096
|
return !0;
|
|
27097
27097
|
}
|
|
@@ -27102,7 +27102,7 @@ function bo(e, t) {
|
|
|
27102
27102
|
return !1;
|
|
27103
27103
|
for (n = r; n-- !== 0; ) {
|
|
27104
27104
|
const s = a[n];
|
|
27105
|
-
if (!(s === "_owner" && e.$$typeof) && !
|
|
27105
|
+
if (!(s === "_owner" && e.$$typeof) && !yo(e[s], t[s]))
|
|
27106
27106
|
return !1;
|
|
27107
27107
|
}
|
|
27108
27108
|
return !0;
|
|
@@ -27116,9 +27116,9 @@ function Ou(e, t) {
|
|
|
27116
27116
|
const r = vh(e);
|
|
27117
27117
|
return Math.round(t * r) / r;
|
|
27118
27118
|
}
|
|
27119
|
-
function
|
|
27119
|
+
function Pi(e) {
|
|
27120
27120
|
const t = B.useRef(e);
|
|
27121
|
-
return
|
|
27121
|
+
return co(() => {
|
|
27122
27122
|
t.current = e;
|
|
27123
27123
|
}), t;
|
|
27124
27124
|
}
|
|
@@ -27144,12 +27144,12 @@ function TU(e) {
|
|
|
27144
27144
|
middlewareData: {},
|
|
27145
27145
|
isPositioned: !1
|
|
27146
27146
|
}), [h, f] = B.useState(n);
|
|
27147
|
-
|
|
27147
|
+
yo(h, n) || f(n);
|
|
27148
27148
|
const [y, C] = B.useState(null), [b, x] = B.useState(null), A = B.useCallback((G) => {
|
|
27149
27149
|
G !== R.current && (R.current = G, C(G));
|
|
27150
27150
|
}, []), k = B.useCallback((G) => {
|
|
27151
27151
|
G !== U.current && (U.current = G, x(G));
|
|
27152
|
-
}, []), v = s || y, N = o || b, R = B.useRef(null), U = B.useRef(null), L = B.useRef(p), V = l != null, X =
|
|
27152
|
+
}, []), v = s || y, N = o || b, R = B.useRef(null), U = B.useRef(null), L = B.useRef(p), V = l != null, X = Pi(l), Q = Pi(a), Z = Pi(u), T = B.useCallback(() => {
|
|
27153
27153
|
if (!R.current || !U.current)
|
|
27154
27154
|
return;
|
|
27155
27155
|
const G = {
|
|
@@ -27166,21 +27166,21 @@ function TU(e) {
|
|
|
27166
27166
|
// setting it to `true` when `open === false` (must be specified).
|
|
27167
27167
|
isPositioned: Z.current !== !1
|
|
27168
27168
|
};
|
|
27169
|
-
M.current && !
|
|
27169
|
+
M.current && !yo(L.current, _) && (L.current = _, Sp.flushSync(() => {
|
|
27170
27170
|
d(_);
|
|
27171
27171
|
}));
|
|
27172
27172
|
});
|
|
27173
27173
|
}, [h, t, r, Q, Z]);
|
|
27174
|
-
|
|
27174
|
+
co(() => {
|
|
27175
27175
|
u === !1 && L.current.isPositioned && (L.current.isPositioned = !1, d((G) => ({
|
|
27176
27176
|
...G,
|
|
27177
27177
|
isPositioned: !1
|
|
27178
27178
|
})));
|
|
27179
27179
|
}, [u]);
|
|
27180
27180
|
const M = B.useRef(!1);
|
|
27181
|
-
|
|
27181
|
+
co(() => (M.current = !0, () => {
|
|
27182
27182
|
M.current = !1;
|
|
27183
|
-
}), []),
|
|
27183
|
+
}), []), co(() => {
|
|
27184
27184
|
if (v && (R.current = v), N && (U.current = N), v && N) {
|
|
27185
27185
|
if (X.current)
|
|
27186
27186
|
return X.current(v, N, T);
|
|
@@ -27306,7 +27306,7 @@ function OU(e) {
|
|
|
27306
27306
|
r(void 0);
|
|
27307
27307
|
}, [e]), t;
|
|
27308
27308
|
}
|
|
27309
|
-
var Oc = "Popper", [kh,
|
|
27309
|
+
var Oc = "Popper", [kh, ri] = Un(Oc), [qU, Sh] = kh(Oc), Th = (e) => {
|
|
27310
27310
|
const { __scopePopper: t, children: r } = e, [n, a] = B.useState(null);
|
|
27311
27311
|
return /* @__PURE__ */ c(qU, { scope: t, anchor: n, onAnchorChange: a, children: r });
|
|
27312
27312
|
};
|
|
@@ -27502,9 +27502,9 @@ function Fh(e) {
|
|
|
27502
27502
|
const [t, r = "center"] = e.split("-");
|
|
27503
27503
|
return [t, r];
|
|
27504
27504
|
}
|
|
27505
|
-
var Mh = Th, Kc = Ih, Vh = Nh, Wh = Rh,
|
|
27506
|
-
|
|
27507
|
-
]), ds =
|
|
27505
|
+
var Mh = Th, Kc = Ih, Vh = Nh, Wh = Rh, ni = "Popover", [Lh] = Un(ni, [
|
|
27506
|
+
ri
|
|
27507
|
+
]), ds = ri(), [QU, cn] = Lh(ni), Oh = (e) => {
|
|
27508
27508
|
const {
|
|
27509
27509
|
__scopePopover: t,
|
|
27510
27510
|
children: r,
|
|
@@ -27516,7 +27516,7 @@ var Mh = Th, Kc = Ih, Vh = Nh, Wh = Rh, ri = "Popover", [Lh] = Un(ri, [
|
|
|
27516
27516
|
prop: n,
|
|
27517
27517
|
defaultProp: a ?? !1,
|
|
27518
27518
|
onChange: s,
|
|
27519
|
-
caller:
|
|
27519
|
+
caller: ni
|
|
27520
27520
|
});
|
|
27521
27521
|
return /* @__PURE__ */ c(Mh, { ...i, children: /* @__PURE__ */ c(
|
|
27522
27522
|
QU,
|
|
@@ -27535,7 +27535,7 @@ var Mh = Th, Kc = Ih, Vh = Nh, Wh = Rh, ri = "Popover", [Lh] = Un(ri, [
|
|
|
27535
27535
|
}
|
|
27536
27536
|
) });
|
|
27537
27537
|
};
|
|
27538
|
-
Oh.displayName =
|
|
27538
|
+
Oh.displayName = ni;
|
|
27539
27539
|
var qh = "PopoverAnchor", PU = B.forwardRef(
|
|
27540
27540
|
(e, t) => {
|
|
27541
27541
|
const { __scopePopover: r, ...n } = e, a = cn(qh, r), s = ds(r), { onCustomAnchorAdd: o, onCustomAnchorRemove: i } = a;
|
|
@@ -27652,7 +27652,7 @@ var XU = /* @__PURE__ */ jn("PopoverContent.RemoveScroll"), HU = B.forwardRef(
|
|
|
27652
27652
|
onMountAutoFocus: a,
|
|
27653
27653
|
onUnmountAutoFocus: s,
|
|
27654
27654
|
children: /* @__PURE__ */ c(
|
|
27655
|
-
|
|
27655
|
+
Xo,
|
|
27656
27656
|
{
|
|
27657
27657
|
asChild: !0,
|
|
27658
27658
|
disableOutsidePointerEvents: o,
|
|
@@ -28533,7 +28533,7 @@ function LI(e, t, r) {
|
|
|
28533
28533
|
}
|
|
28534
28534
|
return C.cancel = y, C;
|
|
28535
28535
|
}
|
|
28536
|
-
function
|
|
28536
|
+
function ai(e, t, r) {
|
|
28537
28537
|
var n = {}, a = n.atBegin, s = a === void 0 ? !1 : a;
|
|
28538
28538
|
return LI(e, t, {
|
|
28539
28539
|
debounceMode: s !== !1
|
|
@@ -28548,7 +28548,7 @@ function Zr() {
|
|
|
28548
28548
|
if (!e) throw new Error("glyph hooks must be used within GlyphProvider");
|
|
28549
28549
|
return { glyphApiFetch: e.apiFetch };
|
|
28550
28550
|
}
|
|
28551
|
-
let
|
|
28551
|
+
let Ji = null;
|
|
28552
28552
|
function qI() {
|
|
28553
28553
|
const { glyphApiFetch: e } = Zr(), t = Vt(), r = tt(
|
|
28554
28554
|
async (o) => {
|
|
@@ -28564,9 +28564,9 @@ function qI() {
|
|
|
28564
28564
|
[e]
|
|
28565
28565
|
), n = tt(
|
|
28566
28566
|
async (o, i, l, u, p) => {
|
|
28567
|
-
if (p &&
|
|
28568
|
-
|
|
28569
|
-
const d =
|
|
28567
|
+
if (p && Ji?.abort?.(), !e) return { quote: null, ok: !1, error: "Glyph API not ready" };
|
|
28568
|
+
Ji = new AbortController();
|
|
28569
|
+
const d = Ji.signal, h = await e("/api/widget/onramp/quote", {
|
|
28570
28570
|
method: "POST",
|
|
28571
28571
|
body: JSON.stringify({ chainId: t, amount: o, currency: i, country: l, subdivision: u }),
|
|
28572
28572
|
headers: { "Content-Type": "application/json" },
|
|
@@ -28626,7 +28626,7 @@ function ZI() {
|
|
|
28626
28626
|
},
|
|
28627
28627
|
[l, h, y, p]
|
|
28628
28628
|
), z = Fe(
|
|
28629
|
-
() =>
|
|
28629
|
+
() => ai(1500, async (H) => {
|
|
28630
28630
|
try {
|
|
28631
28631
|
N(!0);
|
|
28632
28632
|
const P = await s(H, p, e.country, e?.subdivision, !0);
|
|
@@ -28704,7 +28704,7 @@ function ZI() {
|
|
|
28704
28704
|
);
|
|
28705
28705
|
return () => clearInterval(H);
|
|
28706
28706
|
}, [R, L, _]);
|
|
28707
|
-
const j = !e?.isOnrampEnabled, te = n !==
|
|
28707
|
+
const j = !e?.isOnrampEnabled, te = n !== Wo.id, ee = j ? GI : null;
|
|
28708
28708
|
return {
|
|
28709
28709
|
userCurrency: p,
|
|
28710
28710
|
fundMinAmount: h,
|
|
@@ -28734,11 +28734,11 @@ function Du(e, t, r) {
|
|
|
28734
28734
|
}
|
|
28735
28735
|
return n;
|
|
28736
28736
|
}
|
|
28737
|
-
function
|
|
28737
|
+
function Co(e, t) {
|
|
28738
28738
|
let r = e;
|
|
28739
28739
|
return r.match(/^0+[.,]/) && (r = r.replace(/^0+/, "0")), r.match(/^0[0-9]+/) && (r = r.replace(/^0+/, "")), r = Du(r, ".", t), r = Du(r, ",", t), r;
|
|
28740
28740
|
}
|
|
28741
|
-
function
|
|
28741
|
+
function si(e) {
|
|
28742
28742
|
return /* @__PURE__ */ S("svg", { width: "175", height: "175", viewBox: "0 0 175 175", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
28743
28743
|
/* @__PURE__ */ c("circle", { cx: "87.5", cy: "87.5", r: "87.5", fill: "#929792" }),
|
|
28744
28744
|
/* @__PURE__ */ c("g", { clipPath: "url(#clip0_4594_16001)", filter: "url(#filter0_d_4594_16001)", children: /* @__PURE__ */ c("g", { filter: "url(#filter1_d_4594_16001)", children: /* @__PURE__ */ c(
|
|
@@ -28836,7 +28836,7 @@ function ja({ className: e }) {
|
|
|
28836
28836
|
alt: n?.symbol,
|
|
28837
28837
|
className: oe("gw-size-6 gw-rounded-full gw-object-cover", e)
|
|
28838
28838
|
}
|
|
28839
|
-
) : /* @__PURE__ */ c(
|
|
28839
|
+
) : /* @__PURE__ */ c(si, { className: oe("gw-size-6", e) });
|
|
28840
28840
|
}
|
|
28841
28841
|
function QI(e) {
|
|
28842
28842
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -28903,8 +28903,8 @@ const HI = ({ text: e, textToCopy: t, className: r, textClassName: n, iconClassN
|
|
|
28903
28903
|
]
|
|
28904
28904
|
}
|
|
28905
28905
|
);
|
|
28906
|
-
}, An = gt(HI),
|
|
28907
|
-
const { user: r, setFetchForAllNetworks: n, fetchForAllNetworks: a } = Me(), { iconMap: s } = QA(), o = Ap(), i = Vt(), { switchChainAsync: l } = Hl(), [u, p] = re([]), [d, h] = re(!1), f =
|
|
28906
|
+
}, An = gt(HI), Yi = ({ className: e }) => /* @__PURE__ */ c(ik, { className: oe("gw-size-6 gw-text-brand-gray-700", e) }), jI = ({ fullScreenHeader: e, onProfileClick: t }) => {
|
|
28907
|
+
const { user: r, setFetchForAllNetworks: n, fetchForAllNetworks: a } = Me(), { iconMap: s } = QA(), o = Ap(), i = Vt(), { switchChainAsync: l } = Hl(), [u, p] = re([]), [d, h] = re(!1), f = Uo(null), y = Fe(() => a ? /* @__PURE__ */ c(Yi, {}) : /* @__PURE__ */ c("img", { src: s.get(i), className: "gw-size-6 gw-rounded-full gw-object-cover" }), [s, i, a]);
|
|
28908
28908
|
return xe(() => {
|
|
28909
28909
|
p(o.slice().sort((C, b) => (C.id === i ? -1 : 1) - (b.id === i ? -1 : 1)));
|
|
28910
28910
|
}, [o, i]), xe(() => {
|
|
@@ -28969,7 +28969,7 @@ const HI = ({ text: e, textToCopy: t, className: r, textClassName: n, iconClassN
|
|
|
28969
28969
|
a ? "gw-bg-green-500/15" : "hover:gw-bg-gray-50"
|
|
28970
28970
|
),
|
|
28971
28971
|
children: [
|
|
28972
|
-
/* @__PURE__ */ c("div", { className: "gw-mx-1 gw-my-1", children: /* @__PURE__ */ c(
|
|
28972
|
+
/* @__PURE__ */ c("div", { className: "gw-mx-1 gw-my-1", children: /* @__PURE__ */ c(Yi, {}) }),
|
|
28973
28973
|
/* @__PURE__ */ c("span", { className: oe("gw-text-sm", a && "!gw-font-bold"), children: "All Supported Chains" })
|
|
28974
28974
|
]
|
|
28975
28975
|
},
|
|
@@ -28983,7 +28983,7 @@ const HI = ({ text: e, textToCopy: t, className: r, textClassName: n, iconClassN
|
|
|
28983
28983
|
alt: C.name,
|
|
28984
28984
|
className: "gw-size-6 gw-rounded-full gw-object-cover"
|
|
28985
28985
|
}
|
|
28986
|
-
) : /* @__PURE__ */ c(
|
|
28986
|
+
) : /* @__PURE__ */ c(Yi, {});
|
|
28987
28987
|
return /* @__PURE__ */ S(
|
|
28988
28988
|
"button",
|
|
28989
28989
|
{
|
|
@@ -29059,9 +29059,9 @@ var $I = Object.freeze({
|
|
|
29059
29059
|
)
|
|
29060
29060
|
);
|
|
29061
29061
|
Jh.displayName = eN;
|
|
29062
|
-
var tN = Jh, [
|
|
29063
|
-
|
|
29064
|
-
]),
|
|
29062
|
+
var tN = Jh, [oi] = Un("Tooltip", [
|
|
29063
|
+
ri
|
|
29064
|
+
]), ii = ri(), Yh = "TooltipProvider", rN = 700, Wl = "tooltip.open", [nN, Dc] = oi(Yh), Xh = (e) => {
|
|
29065
29065
|
const {
|
|
29066
29066
|
__scopeTooltip: t,
|
|
29067
29067
|
delayDuration: r = rN,
|
|
@@ -29097,7 +29097,7 @@ var tN = Jh, [si] = Un("Tooltip", [
|
|
|
29097
29097
|
);
|
|
29098
29098
|
};
|
|
29099
29099
|
Xh.displayName = Yh;
|
|
29100
|
-
var _a = "Tooltip", [aN,
|
|
29100
|
+
var _a = "Tooltip", [aN, li] = oi(_a), Hh = (e) => {
|
|
29101
29101
|
const {
|
|
29102
29102
|
__scopeTooltip: t,
|
|
29103
29103
|
children: r,
|
|
@@ -29106,7 +29106,7 @@ var _a = "Tooltip", [aN, ii] = si(_a), Hh = (e) => {
|
|
|
29106
29106
|
onOpenChange: s,
|
|
29107
29107
|
disableHoverableContent: o,
|
|
29108
29108
|
delayDuration: i
|
|
29109
|
-
} = e, l = Dc(_a, e.__scopeTooltip), u =
|
|
29109
|
+
} = e, l = Dc(_a, e.__scopeTooltip), u = ii(t), [p, d] = B.useState(null), h = bn(), f = B.useRef(0), y = o ?? l.disableHoverableContent, C = i ?? l.delayDuration, b = B.useRef(!1), [x, A] = da({
|
|
29110
29110
|
prop: n,
|
|
29111
29111
|
defaultProp: a ?? !1,
|
|
29112
29112
|
onChange: (U) => {
|
|
@@ -29149,7 +29149,7 @@ var _a = "Tooltip", [aN, ii] = si(_a), Hh = (e) => {
|
|
|
29149
29149
|
Hh.displayName = _a;
|
|
29150
29150
|
var Ll = "TooltipTrigger", jh = B.forwardRef(
|
|
29151
29151
|
(e, t) => {
|
|
29152
|
-
const { __scopeTooltip: r, ...n } = e, a =
|
|
29152
|
+
const { __scopeTooltip: r, ...n } = e, a = li(Ll, r), s = Dc(Ll, r), o = ii(r), i = B.useRef(null), l = ft(t, i, a.onTriggerChange), u = B.useRef(!1), p = B.useRef(!1), d = B.useCallback(() => u.current = !1, []);
|
|
29153
29153
|
return B.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ c(Kc, { asChild: !0, ...o, children: /* @__PURE__ */ c(
|
|
29154
29154
|
it.button,
|
|
29155
29155
|
{
|
|
@@ -29176,15 +29176,15 @@ var Ll = "TooltipTrigger", jh = B.forwardRef(
|
|
|
29176
29176
|
}
|
|
29177
29177
|
);
|
|
29178
29178
|
jh.displayName = Ll;
|
|
29179
|
-
var sN = "TooltipPortal", [WM, oN] =
|
|
29179
|
+
var sN = "TooltipPortal", [WM, oN] = oi(sN, {
|
|
29180
29180
|
forceMount: void 0
|
|
29181
29181
|
}), ta = "TooltipContent", _h = B.forwardRef(
|
|
29182
29182
|
(e, t) => {
|
|
29183
|
-
const r = oN(ta, e.__scopeTooltip), { forceMount: n = r.forceMount, side: a = "top", ...s } = e, o =
|
|
29183
|
+
const r = oN(ta, e.__scopeTooltip), { forceMount: n = r.forceMount, side: a = "top", ...s } = e, o = li(ta, e.__scopeTooltip);
|
|
29184
29184
|
return /* @__PURE__ */ c(on, { present: n || o.open, children: o.disableHoverableContent ? /* @__PURE__ */ c($h, { side: a, ...s, ref: t }) : /* @__PURE__ */ c(iN, { side: a, ...s, ref: t }) });
|
|
29185
29185
|
}
|
|
29186
29186
|
), iN = B.forwardRef((e, t) => {
|
|
29187
|
-
const r =
|
|
29187
|
+
const r = li(ta, e.__scopeTooltip), n = Dc(ta, e.__scopeTooltip), a = B.useRef(null), s = ft(t, a), [o, i] = B.useState(null), { trigger: l, onClose: u } = r, p = a.current, { onPointerInTransitChange: d } = n, h = B.useCallback(() => {
|
|
29188
29188
|
i(null), d(!1);
|
|
29189
29189
|
}, [d]), f = B.useCallback(
|
|
29190
29190
|
(y, C) => {
|
|
@@ -29209,7 +29209,7 @@ var sN = "TooltipPortal", [WM, oN] = si(sN, {
|
|
|
29209
29209
|
return document.addEventListener("pointermove", y), () => document.removeEventListener("pointermove", y);
|
|
29210
29210
|
}
|
|
29211
29211
|
}, [l, p, o, u, h]), /* @__PURE__ */ c($h, { ...e, ref: s });
|
|
29212
|
-
}), [lN, cN] =
|
|
29212
|
+
}), [lN, cN] = oi(_a, { isInside: !1 }), dN = /* @__PURE__ */ wk("TooltipContent"), $h = B.forwardRef(
|
|
29213
29213
|
(e, t) => {
|
|
29214
29214
|
const {
|
|
29215
29215
|
__scopeTooltip: r,
|
|
@@ -29218,7 +29218,7 @@ var sN = "TooltipPortal", [WM, oN] = si(sN, {
|
|
|
29218
29218
|
onEscapeKeyDown: s,
|
|
29219
29219
|
onPointerDownOutside: o,
|
|
29220
29220
|
...i
|
|
29221
|
-
} = e, l =
|
|
29221
|
+
} = e, l = li(ta, r), u = ii(r), { onClose: p } = l;
|
|
29222
29222
|
return B.useEffect(() => (document.addEventListener(Wl, p), () => document.removeEventListener(Wl, p)), [p]), B.useEffect(() => {
|
|
29223
29223
|
if (l.trigger) {
|
|
29224
29224
|
const d = (h) => {
|
|
@@ -29227,7 +29227,7 @@ var sN = "TooltipPortal", [WM, oN] = si(sN, {
|
|
|
29227
29227
|
return window.addEventListener("scroll", d, { capture: !0 }), () => window.removeEventListener("scroll", d, { capture: !0 });
|
|
29228
29228
|
}
|
|
29229
29229
|
}, [l.trigger, p]), /* @__PURE__ */ c(
|
|
29230
|
-
|
|
29230
|
+
Xo,
|
|
29231
29231
|
{
|
|
29232
29232
|
asChild: !0,
|
|
29233
29233
|
disableOutsidePointerEvents: !1,
|
|
@@ -29263,7 +29263,7 @@ var sN = "TooltipPortal", [WM, oN] = si(sN, {
|
|
|
29263
29263
|
_h.displayName = ta;
|
|
29264
29264
|
var ef = "TooltipArrow", uN = B.forwardRef(
|
|
29265
29265
|
(e, t) => {
|
|
29266
|
-
const { __scopeTooltip: r, ...n } = e, a =
|
|
29266
|
+
const { __scopeTooltip: r, ...n } = e, a = ii(r);
|
|
29267
29267
|
return cN(
|
|
29268
29268
|
ef,
|
|
29269
29269
|
r
|
|
@@ -29758,7 +29758,7 @@ function FN({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
|
|
|
29758
29758
|
},
|
|
29759
29759
|
value: o,
|
|
29760
29760
|
onChange: (Q) => x((Z) => {
|
|
29761
|
-
let T =
|
|
29761
|
+
let T = Co(Q.target.value, RN);
|
|
29762
29762
|
return Q.target.max && parseFloat(T) > parseFloat(Q.target.max) && (T = Z), T;
|
|
29763
29763
|
}),
|
|
29764
29764
|
placeholder: "0",
|
|
@@ -30249,7 +30249,7 @@ function ma({ text: e, url: t }) {
|
|
|
30249
30249
|
href: t,
|
|
30250
30250
|
target: "_blank",
|
|
30251
30251
|
rel: "noopener noreferrer",
|
|
30252
|
-
className:
|
|
30252
|
+
className: Yo({
|
|
30253
30253
|
variant: "link",
|
|
30254
30254
|
size: "sm",
|
|
30255
30255
|
className: "gw-py-0 gw-h-auto",
|
|
@@ -30328,7 +30328,7 @@ function JN(e) {
|
|
|
30328
30328
|
n
|
|
30329
30329
|
];
|
|
30330
30330
|
}
|
|
30331
|
-
var
|
|
30331
|
+
var ci = "Collapsible", [YN, tf] = Un(ci), [XN, Pc] = YN(ci), rf = B.forwardRef(
|
|
30332
30332
|
(e, t) => {
|
|
30333
30333
|
const {
|
|
30334
30334
|
__scopeCollapsible: r,
|
|
@@ -30341,7 +30341,7 @@ var li = "Collapsible", [YN, tf] = Un(li), [XN, Pc] = YN(li), rf = B.forwardRef(
|
|
|
30341
30341
|
prop: n,
|
|
30342
30342
|
defaultProp: a ?? !1,
|
|
30343
30343
|
onChange: o,
|
|
30344
|
-
caller:
|
|
30344
|
+
caller: ci
|
|
30345
30345
|
});
|
|
30346
30346
|
return /* @__PURE__ */ c(
|
|
30347
30347
|
XN,
|
|
@@ -30364,7 +30364,7 @@ var li = "Collapsible", [YN, tf] = Un(li), [XN, Pc] = YN(li), rf = B.forwardRef(
|
|
|
30364
30364
|
);
|
|
30365
30365
|
}
|
|
30366
30366
|
);
|
|
30367
|
-
rf.displayName =
|
|
30367
|
+
rf.displayName = ci;
|
|
30368
30368
|
var nf = "CollapsibleTrigger", af = B.forwardRef(
|
|
30369
30369
|
(e, t) => {
|
|
30370
30370
|
const { __scopeCollapsible: r, ...n } = e, a = Pc(nf, r);
|
|
@@ -30433,7 +30433,7 @@ function tB(e) {
|
|
|
30433
30433
|
const t = B.useContext(eB);
|
|
30434
30434
|
return e || t || "ltr";
|
|
30435
30435
|
}
|
|
30436
|
-
var cr = "Accordion", rB = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Xc, nB, aB] = JN(cr), [
|
|
30436
|
+
var cr = "Accordion", rB = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Xc, nB, aB] = JN(cr), [di] = Un(cr, [
|
|
30437
30437
|
aB,
|
|
30438
30438
|
tf
|
|
30439
30439
|
]), Hc = tf(), jc = q.forwardRef(
|
|
@@ -30443,7 +30443,7 @@ var cr = "Accordion", rB = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft",
|
|
|
30443
30443
|
}
|
|
30444
30444
|
);
|
|
30445
30445
|
jc.displayName = cr;
|
|
30446
|
-
var [of, sB] =
|
|
30446
|
+
var [of, sB] = di(cr), [lf, oB] = di(
|
|
30447
30447
|
cr,
|
|
30448
30448
|
{ collapsible: !1 }
|
|
30449
30449
|
), iB = q.forwardRef(
|
|
@@ -30501,7 +30501,7 @@ var [of, sB] = ci(cr), [lf, oB] = ci(
|
|
|
30501
30501
|
children: /* @__PURE__ */ c(lf, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ c(cf, { ...s, ref: t }) })
|
|
30502
30502
|
}
|
|
30503
30503
|
);
|
|
30504
|
-
}), [cB,
|
|
30504
|
+
}), [cB, ui] = di(cr), cf = q.forwardRef(
|
|
30505
30505
|
(e, t) => {
|
|
30506
30506
|
const { __scopeAccordion: r, disabled: n, dir: a, orientation: s = "vertical", ...o } = e, i = q.useRef(null), l = ft(i, t), u = nB(r), d = tB(a) === "ltr", h = ot(e.onKeyDown, (f) => {
|
|
30507
30507
|
if (!rB.includes(f.key)) return;
|
|
@@ -30556,9 +30556,9 @@ var [of, sB] = ci(cr), [lf, oB] = ci(
|
|
|
30556
30556
|
}
|
|
30557
30557
|
);
|
|
30558
30558
|
}
|
|
30559
|
-
),
|
|
30559
|
+
), xo = "AccordionItem", [dB, _c] = di(xo), $c = q.forwardRef(
|
|
30560
30560
|
(e, t) => {
|
|
30561
|
-
const { __scopeAccordion: r, value: n, ...a } = e, s =
|
|
30561
|
+
const { __scopeAccordion: r, value: n, ...a } = e, s = ui(xo, r), o = sB(xo, r), i = Hc(r), l = bn(), u = n && o.value.includes(n) || !1, p = s.disabled || e.disabled;
|
|
30562
30562
|
return /* @__PURE__ */ c(
|
|
30563
30563
|
dB,
|
|
30564
30564
|
{
|
|
@@ -30585,10 +30585,10 @@ var [of, sB] = ci(cr), [lf, oB] = ci(
|
|
|
30585
30585
|
);
|
|
30586
30586
|
}
|
|
30587
30587
|
);
|
|
30588
|
-
$c.displayName =
|
|
30588
|
+
$c.displayName = xo;
|
|
30589
30589
|
var df = "AccordionHeader", uf = q.forwardRef(
|
|
30590
30590
|
(e, t) => {
|
|
30591
|
-
const { __scopeAccordion: r, ...n } = e, a =
|
|
30591
|
+
const { __scopeAccordion: r, ...n } = e, a = ui(cr, r), s = _c(df, r);
|
|
30592
30592
|
return /* @__PURE__ */ c(
|
|
30593
30593
|
it.h3,
|
|
30594
30594
|
{
|
|
@@ -30604,7 +30604,7 @@ var df = "AccordionHeader", uf = q.forwardRef(
|
|
|
30604
30604
|
uf.displayName = df;
|
|
30605
30605
|
var ql = "AccordionTrigger", ed = q.forwardRef(
|
|
30606
30606
|
(e, t) => {
|
|
30607
|
-
const { __scopeAccordion: r, ...n } = e, a =
|
|
30607
|
+
const { __scopeAccordion: r, ...n } = e, a = ui(cr, r), s = _c(ql, r), o = oB(ql, r), i = Hc(r);
|
|
30608
30608
|
return /* @__PURE__ */ c(Xc.ItemSlot, { scope: r, children: /* @__PURE__ */ c(
|
|
30609
30609
|
_N,
|
|
30610
30610
|
{
|
|
@@ -30621,7 +30621,7 @@ var ql = "AccordionTrigger", ed = q.forwardRef(
|
|
|
30621
30621
|
ed.displayName = ql;
|
|
30622
30622
|
var pf = "AccordionContent", td = q.forwardRef(
|
|
30623
30623
|
(e, t) => {
|
|
30624
|
-
const { __scopeAccordion: r, ...n } = e, a =
|
|
30624
|
+
const { __scopeAccordion: r, ...n } = e, a = ui(cr, r), s = _c(pf, r), o = Hc(r);
|
|
30625
30625
|
return /* @__PURE__ */ c(
|
|
30626
30626
|
$N,
|
|
30627
30627
|
{
|
|
@@ -30663,7 +30663,7 @@ const gB = uB, wB = Gt(({ className: e, ...t }, r) => /* @__PURE__ */ c(pB, { re
|
|
|
30663
30663
|
}
|
|
30664
30664
|
));
|
|
30665
30665
|
function CB({ expandFirst: e = !1 }) {
|
|
30666
|
-
const { user: t, fetchForAllNetworks: r } = Me(), n = Vt(), { transactionGroups: a, fetchTransactions: s, loadMore: o, hasMore: i, isLoading: l } = GN(), u =
|
|
30666
|
+
const { user: t, fetchForAllNetworks: r } = Me(), n = Vt(), { transactionGroups: a, fetchTransactions: s, loadMore: o, hasMore: i, isLoading: l } = GN(), u = Uo(null), [p, d] = re(""), h = a.reduce((y, C) => y + C.transactions.length, 0);
|
|
30667
30667
|
xe(() => {
|
|
30668
30668
|
s(!0);
|
|
30669
30669
|
}, [n, r]), xe(() => {
|
|
@@ -31125,7 +31125,7 @@ function TB() {
|
|
|
31125
31125
|
href: i,
|
|
31126
31126
|
target: "_blank",
|
|
31127
31127
|
rel: "noopener noreferrer",
|
|
31128
|
-
className:
|
|
31128
|
+
className: Yo({
|
|
31129
31129
|
variant: "link-inline",
|
|
31130
31130
|
size: "xs-inline",
|
|
31131
31131
|
scale: !1
|
|
@@ -31137,8 +31137,8 @@ function TB() {
|
|
|
31137
31137
|
] }) : /* @__PURE__ */ c("div", { className: "gw-flex gw-justify-center gw-items-center gw-flex-1 gw-text-brand-gray-500 gw-typography-body2 gw-pr-4", children: r ? "No NFTs found" : "Loading..." })
|
|
31138
31138
|
] });
|
|
31139
31139
|
}
|
|
31140
|
-
function
|
|
31141
|
-
const e = xr(
|
|
31140
|
+
function pi() {
|
|
31141
|
+
const e = xr(Bo);
|
|
31142
31142
|
if (!e) throw new Error("useBalances must be used within GlyphProvider");
|
|
31143
31143
|
const { balances: t, hasBalances: r, refreshBalances: n, fetchForAllNetworks: a, setFetchForAllNetworks: s, isBalancesLoading: o } = e;
|
|
31144
31144
|
return { balances: t, hasBalances: r, refreshBalances: n, fetchForAllNetworks: a, setFetchForAllNetworks: s, isBalancesLoading: o };
|
|
@@ -31156,7 +31156,7 @@ const yr = ({
|
|
|
31156
31156
|
alt: e.name,
|
|
31157
31157
|
className: oe("gw-rounded-full gw-size-10", r)
|
|
31158
31158
|
}
|
|
31159
|
-
) : /* @__PURE__ */ c(
|
|
31159
|
+
) : /* @__PURE__ */ c(si, { className: oe("gw-size-10 gw-rounded-full", r) }),
|
|
31160
31160
|
t?.logoUrl && /* @__PURE__ */ c(
|
|
31161
31161
|
"span",
|
|
31162
31162
|
{
|
|
@@ -31176,7 +31176,7 @@ const yr = ({
|
|
|
31176
31176
|
)
|
|
31177
31177
|
] });
|
|
31178
31178
|
function UB() {
|
|
31179
|
-
const e = ut.chains, { balances: t, hasBalances: r, fetchForAllNetworks: n } =
|
|
31179
|
+
const e = ut.chains, { balances: t, hasBalances: r, fetchForAllNetworks: n } = pi(), a = t?.tokens || [], s = t?.wallet_value?.tokens;
|
|
31180
31180
|
return /* @__PURE__ */ S("div", { className: "gw-pl-4 gw-pt-4 gw-flex gw-flex-col gw-h-full gw-min-h-0", children: [
|
|
31181
31181
|
/* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full gw-pr-4", children: [
|
|
31182
31182
|
/* @__PURE__ */ c("h6", { children: "Tokens" }),
|
|
@@ -31188,7 +31188,7 @@ function UB() {
|
|
|
31188
31188
|
] }),
|
|
31189
31189
|
r && a?.length ? /* @__PURE__ */ c("div", { className: "gw-grid gw-grid-cols-1 gw-mt-2 gw-max-h-100 gw-min-h-0 gw-overflow-auto gw-pr-4", children: a.map((o, i) => {
|
|
31190
31190
|
if (o?.hide) return null;
|
|
31191
|
-
const l = o.logo ? /* @__PURE__ */ c("img", { src: o.logo, alt: o.symbol, className: "gw-size-10 gw-rounded-full" }) : /* @__PURE__ */ c(
|
|
31191
|
+
const l = o.logo ? /* @__PURE__ */ c("img", { src: o.logo, alt: o.symbol, className: "gw-size-10 gw-rounded-full" }) : /* @__PURE__ */ c(si, { className: "gw-size-10" }), u = e.find((p) => p.id === o.chainId);
|
|
31192
31192
|
return /* @__PURE__ */ S("div", { className: "gw-w-full", children: [
|
|
31193
31193
|
/* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full gw-py-2", children: [
|
|
31194
31194
|
/* @__PURE__ */ S("div", { className: "gw-flex gw-items-center gw-space-x-3", children: [
|
|
@@ -31413,19 +31413,19 @@ function FB({ onBack: e }) {
|
|
|
31413
31413
|
}
|
|
31414
31414
|
);
|
|
31415
31415
|
}
|
|
31416
|
-
var MB = Object.defineProperty,
|
|
31416
|
+
var MB = Object.defineProperty, Eo = Object.getOwnPropertySymbols, ff = Object.prototype.hasOwnProperty, gf = Object.prototype.propertyIsEnumerable, Qu = (e, t, r) => t in e ? MB(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Kl = (e, t) => {
|
|
31417
31417
|
for (var r in t || (t = {}))
|
|
31418
31418
|
ff.call(t, r) && Qu(e, r, t[r]);
|
|
31419
|
-
if (
|
|
31420
|
-
for (var r of
|
|
31419
|
+
if (Eo)
|
|
31420
|
+
for (var r of Eo(t))
|
|
31421
31421
|
gf.call(t, r) && Qu(e, r, t[r]);
|
|
31422
31422
|
return e;
|
|
31423
31423
|
}, zl = (e, t) => {
|
|
31424
31424
|
var r = {};
|
|
31425
31425
|
for (var n in e)
|
|
31426
31426
|
ff.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
31427
|
-
if (e != null &&
|
|
31428
|
-
for (var n of
|
|
31427
|
+
if (e != null && Eo)
|
|
31428
|
+
for (var n of Eo(e))
|
|
31429
31429
|
t.indexOf(n) < 0 && gf.call(e, n) && (r[n] = e[n]);
|
|
31430
31430
|
return r;
|
|
31431
31431
|
};
|
|
@@ -32248,7 +32248,7 @@ var Sf = q.forwardRef(
|
|
|
32248
32248
|
Sf.displayName = "QRCodeSVG";
|
|
32249
32249
|
const GB = "data:image/png;base64,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", ZB = 5e3;
|
|
32250
32250
|
function QB({ onBack: e }) {
|
|
32251
|
-
const { ready: t, user: r } = Me(), { refreshBalances: n, balances: a } =
|
|
32251
|
+
const { ready: t, user: r } = Me(), { refreshBalances: n, balances: a } = pi();
|
|
32252
32252
|
return xe(() => {
|
|
32253
32253
|
if (!t) return;
|
|
32254
32254
|
const s = setInterval(
|
|
@@ -32309,7 +32309,7 @@ function QB({ onBack: e }) {
|
|
|
32309
32309
|
{
|
|
32310
32310
|
text: "Copy Wallet Address",
|
|
32311
32311
|
textToCopy: r?.evmWallet,
|
|
32312
|
-
className:
|
|
32312
|
+
className: Yo({
|
|
32313
32313
|
variant: "default",
|
|
32314
32314
|
size: "default",
|
|
32315
32315
|
className: "gw-w-full"
|
|
@@ -32382,7 +32382,7 @@ const JB = ({
|
|
|
32382
32382
|
onTokenSelect: e,
|
|
32383
32383
|
selectedToken: t
|
|
32384
32384
|
}) => {
|
|
32385
|
-
const r = ut.chains || [], [n, a] = re(!1), s = Vt(), { switchChainAsync: o } = Hl(), { balances: i, hasBalances: l, fetchForAllNetworks: u, setFetchForAllNetworks: p } =
|
|
32385
|
+
const r = ut.chains || [], [n, a] = re(!1), s = Vt(), { switchChainAsync: o } = Hl(), { balances: i, hasBalances: l, fetchForAllNetworks: u, setFetchForAllNetworks: p } = pi(), d = u ? "all" : s, h = Fe(() => t?.chainId ? r.find((b) => b.id === t.chainId) : null, [t?.chainId]), [f] = Fe(() => d === "all" ? [null] : [r.find((x) => x.id === d)], [d]), y = Uo(null);
|
|
32386
32386
|
xe(() => {
|
|
32387
32387
|
y.current = document.querySelector(".gw-wallet-container");
|
|
32388
32388
|
}, []);
|
|
@@ -32694,7 +32694,7 @@ const JB = ({
|
|
|
32694
32694
|
}) => {
|
|
32695
32695
|
const { user: o } = Me();
|
|
32696
32696
|
return xe(() => {
|
|
32697
|
-
s || a && (
|
|
32697
|
+
s || a && (cl(a, { strict: !1 }) || n("Please enter a valid recipient wallet address"));
|
|
32698
32698
|
}, [a, s, n]), /* @__PURE__ */ c(
|
|
32699
32699
|
Ct,
|
|
32700
32700
|
{
|
|
@@ -32736,7 +32736,7 @@ const JB = ({
|
|
|
32736
32736
|
value: a,
|
|
32737
32737
|
onChange: (i) => {
|
|
32738
32738
|
if (r(i.target.value), !i.target.value) return n("");
|
|
32739
|
-
if (!
|
|
32739
|
+
if (!cl(i.target.value, { strict: !1 }))
|
|
32740
32740
|
return n("Please enter a valid wallet address");
|
|
32741
32741
|
if (o?.evmWallet && qa(i.target.value) === qa(o?.evmWallet))
|
|
32742
32742
|
return n("You cannot send funds to your own wallet");
|
|
@@ -32970,13 +32970,13 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
|
|
|
32970
32970
|
let E;
|
|
32971
32971
|
console.debug("Send - reached checkpoint 1");
|
|
32972
32972
|
try {
|
|
32973
|
-
const K = (Q || V === Number(v.value || 0)) && v.valueInWei ? BigInt(v.valueInWei || 0) : v?.address === vt ? T0(`${V}`) :
|
|
32973
|
+
const K = (Q || V === Number(v.value || 0)) && v.valueInWei ? BigInt(v.valueInWei || 0) : v?.address === vt ? T0(`${V}`) : Fi(V, v.decimals || 18);
|
|
32974
32974
|
v?.address === vt ? E = await R.estimateGas({
|
|
32975
32975
|
account: a?.evmWallet,
|
|
32976
32976
|
to: f,
|
|
32977
32977
|
value: K
|
|
32978
32978
|
}) : E = await R.estimateContractGas({
|
|
32979
|
-
abi:
|
|
32979
|
+
abi: gi,
|
|
32980
32980
|
functionName: "transfer",
|
|
32981
32981
|
args: [f, K],
|
|
32982
32982
|
account: a?.evmWallet,
|
|
@@ -33001,7 +33001,7 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
|
|
|
33001
33001
|
H("Insufficient gas balance"), O(!1);
|
|
33002
33002
|
return;
|
|
33003
33003
|
}
|
|
33004
|
-
I = Q || V === Number(v.value || 0) ? BigInt(v.valueInWei || 0) :
|
|
33004
|
+
I = Q || V === Number(v.value || 0) ? BigInt(v.valueInWei || 0) : Fi(V, v.decimals || 18);
|
|
33005
33005
|
}
|
|
33006
33006
|
console.debug("Send - reached checkpoint 3");
|
|
33007
33007
|
const W = Ya(
|
|
@@ -33073,7 +33073,7 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
|
|
|
33073
33073
|
return () => clearInterval(ne);
|
|
33074
33074
|
}, [J, j, Qt]);
|
|
33075
33075
|
const pt = Fe(
|
|
33076
|
-
() =>
|
|
33076
|
+
() => ai(500, (ne) => {
|
|
33077
33077
|
M(null), X(Number(ne));
|
|
33078
33078
|
}),
|
|
33079
33079
|
[]
|
|
@@ -33081,7 +33081,7 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
|
|
|
33081
33081
|
xe(() => (x === Tt.END && ke === "SUCCESS" && n(rr.SUCCESS), x === Tt.END && ke === "FAILED" && n(rr.ERROR), () => {
|
|
33082
33082
|
n(void 0);
|
|
33083
33083
|
}), [n, ke, x]);
|
|
33084
|
-
const Xt = V > 0 && V <= Number(v?.value || "0"), ht = v?.logo ? /* @__PURE__ */ c("img", { src: v.logo, alt: v.symbol, className: "gw-w-6 gw-h-6 gw-mr-1 gw-rounded-full" }) : /* @__PURE__ */ c(
|
|
33084
|
+
const Xt = V > 0 && V <= Number(v?.value || "0"), ht = v?.logo ? /* @__PURE__ */ c("img", { src: v.logo, alt: v.symbol, className: "gw-w-6 gw-h-6 gw-mr-1 gw-rounded-full" }) : /* @__PURE__ */ c(si, {}), nt = v ? rn(v?.valueInWei, v?.decimals, v?.displayDecimals) : void 0, xt = v ? v?.rateInCurrency ? Ge(
|
|
33085
33085
|
parseFloat($r(BigInt(v?.valueInWei || 0), v?.decimals ?? 18)) * parseFloat(v?.rateInCurrency),
|
|
33086
33086
|
v?.currency,
|
|
33087
33087
|
BigInt(v?.valueInWei || 0) > 0n
|
|
@@ -33181,7 +33181,7 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
|
|
|
33181
33181
|
},
|
|
33182
33182
|
value: U,
|
|
33183
33183
|
onChange: (ne) => {
|
|
33184
|
-
const fe =
|
|
33184
|
+
const fe = Co(
|
|
33185
33185
|
ne.target.value,
|
|
33186
33186
|
Math.min(
|
|
33187
33187
|
v?.displayDecimals ?? mt,
|
|
@@ -33236,7 +33236,7 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
|
|
|
33236
33236
|
] }),
|
|
33237
33237
|
/* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-2 gw-space-x-1", children: [
|
|
33238
33238
|
/* @__PURE__ */ c("span", { children: "Network Fees" }),
|
|
33239
|
-
/* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500 gw-text-right", children: F || !T ? /* @__PURE__ */ c(Ze, { className: "gw-w-20 gw-h-4" }) : `${rn(
|
|
33239
|
+
/* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500 gw-text-right", children: F || !T ? /* @__PURE__ */ c(Ze, { className: "gw-w-20 gw-h-4" }) : `${rn(Fi(T?.estimated_fees_amount || 0, k?.decimals || 18), k?.decimals || 18, k?.displayDecimals)} ${k?.symbol} (${T?.estimated_fees_amount_in_currency})` })
|
|
33240
33240
|
] }),
|
|
33241
33241
|
/* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-2 gw-space-x-1", children: [
|
|
33242
33242
|
/* @__PURE__ */ c("span", { children: "Expected receivable amount" }),
|
|
@@ -33304,7 +33304,7 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
|
|
|
33304
33304
|
}), fe = ne;
|
|
33305
33305
|
else {
|
|
33306
33306
|
const je = await R.simulateContract({
|
|
33307
|
-
abi:
|
|
33307
|
+
abi: gi,
|
|
33308
33308
|
functionName: "transfer",
|
|
33309
33309
|
account: a?.evmWallet,
|
|
33310
33310
|
address: v?.address,
|
|
@@ -33314,7 +33314,7 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
|
|
|
33314
33314
|
});
|
|
33315
33315
|
try {
|
|
33316
33316
|
const se = kp({
|
|
33317
|
-
abi:
|
|
33317
|
+
abi: gi,
|
|
33318
33318
|
functionName: "transfer",
|
|
33319
33319
|
args: [f, T?.receivable_amount]
|
|
33320
33320
|
});
|
|
@@ -33386,7 +33386,7 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
|
|
|
33386
33386
|
))
|
|
33387
33387
|
] });
|
|
33388
33388
|
}
|
|
33389
|
-
const Bf =
|
|
33389
|
+
const Bf = To(void 0), us = () => {
|
|
33390
33390
|
const e = xr(Bf);
|
|
33391
33391
|
if (!e) throw new Error("useGlyphSwap must be used within GlyphSwapProvider");
|
|
33392
33392
|
return e;
|
|
@@ -33414,7 +33414,7 @@ const Bf = So(void 0), us = () => {
|
|
|
33414
33414
|
class Rf extends rc {
|
|
33415
33415
|
constructor(t, r) {
|
|
33416
33416
|
super(), this.finished = !1, this.destroyed = !1, Jp(t);
|
|
33417
|
-
const n =
|
|
33417
|
+
const n = Vo(r);
|
|
33418
33418
|
if (this.iHash = t.create(), typeof this.iHash.update != "function")
|
|
33419
33419
|
throw new Error("Expected instance of class which extends utils.Hash");
|
|
33420
33420
|
this.blockLen = this.iHash.blockLen, this.outputLen = this.iHash.outputLen;
|
|
@@ -33465,7 +33465,7 @@ function cR(e, t = {}) {
|
|
|
33465
33465
|
return lR(e, t)?.extend(U0);
|
|
33466
33466
|
}
|
|
33467
33467
|
function dR(e) {
|
|
33468
|
-
const r = (ut?.chains || []).map((n) =>
|
|
33468
|
+
const r = (ut?.chains || []).map((n) => Jo(n).viemChain);
|
|
33469
33469
|
return yn({
|
|
33470
33470
|
chain: I0({ chains: r, id: e }),
|
|
33471
33471
|
transport: Et()
|
|
@@ -33521,6 +33521,8 @@ const uR = (e) => {
|
|
|
33521
33521
|
l(f.transaction.hash);
|
|
33522
33522
|
}
|
|
33523
33523
|
});
|
|
33524
|
+
if (h.status === "reverted")
|
|
33525
|
+
throw new Error("Execution reverted");
|
|
33524
33526
|
return console.debug(!!h.transactionHash), h;
|
|
33525
33527
|
},
|
|
33526
33528
|
switchChain: async (o) => {
|
|
@@ -33528,7 +33530,7 @@ const uR = (e) => {
|
|
|
33528
33530
|
}
|
|
33529
33531
|
}, [s, a, r, n, t?.evmWallet, e]);
|
|
33530
33532
|
}, jr = "PRECHECK_FAILED", Wn = (e, t) => ({ code: e, message: t }), pR = () => {
|
|
33531
|
-
const e = Vt(), { glyphApiFetch: t } = Zr(), { reportSwapFailed: r } = us(), n =
|
|
33533
|
+
const e = Vt(), { glyphApiFetch: t } = Zr(), { reportSwapFailed: r } = us(), n = Io(), a = uR(n);
|
|
33532
33534
|
return V0({
|
|
33533
33535
|
mutationFn: async ({ qt: s, onExecutionStart: o }) => {
|
|
33534
33536
|
if (!n)
|
|
@@ -33536,41 +33538,67 @@ const uR = (e) => {
|
|
|
33536
33538
|
if (!a)
|
|
33537
33539
|
throw console.error("evmAdapter function not ready"), Wn(jr, Nt.WALLET_NOT_READY);
|
|
33538
33540
|
const i = s.details?.currencyIn?.currency?.chainId;
|
|
33539
|
-
if (i ===
|
|
33541
|
+
if (i === oo)
|
|
33540
33542
|
throw Wn(jr, Nt.SOLANA_NOT_IMPLEMENTED);
|
|
33541
33543
|
if (!t)
|
|
33542
33544
|
throw Wn(jr, Nt.NO_GLYPHAPIFETCH);
|
|
33543
33545
|
let l = null;
|
|
33544
33546
|
try {
|
|
33545
|
-
const
|
|
33547
|
+
const b = await t("/api/widget/swap/quote", {
|
|
33546
33548
|
method: "POST",
|
|
33547
33549
|
body: JSON.stringify({ ...s.request?.data })
|
|
33548
33550
|
});
|
|
33549
|
-
if (!
|
|
33550
|
-
i && i !== e && (console.log("Switching chain from", e, "to", i), await a.switchChain(i)), l = await
|
|
33551
|
-
} catch (
|
|
33552
|
-
throw console.error(
|
|
33551
|
+
if (!b.ok) throw { code: jr, message: Nt.NO_FINAL_QUOTE };
|
|
33552
|
+
i && i !== e && (console.log("Switching chain from", e, "to", i), await a.switchChain(i)), l = await b.json();
|
|
33553
|
+
} catch (b) {
|
|
33554
|
+
throw console.error(b), Wn(jr, Nt.NO_FINAL_QUOTE);
|
|
33553
33555
|
}
|
|
33554
33556
|
const { id: u, quote: p } = l;
|
|
33555
33557
|
o?.(p);
|
|
33556
|
-
|
|
33557
|
-
|
|
33558
|
-
|
|
33559
|
-
|
|
33560
|
-
|
|
33561
|
-
|
|
33558
|
+
let d;
|
|
33559
|
+
try {
|
|
33560
|
+
let x;
|
|
33561
|
+
const A = (k) => {
|
|
33562
|
+
x && clearTimeout(x), x = setTimeout(() => {
|
|
33563
|
+
k(new Error("Swap execution timed out. Check blockchain for transaction status."));
|
|
33564
|
+
}, 18e4);
|
|
33565
|
+
};
|
|
33566
|
+
d = await new Promise((k, v) => {
|
|
33567
|
+
A(v), ut.actions.execute({
|
|
33568
|
+
quote: p,
|
|
33569
|
+
wallet: a,
|
|
33570
|
+
onProgress: (N) => {
|
|
33571
|
+
console.debug("onProgress", N), A(v);
|
|
33572
|
+
}
|
|
33573
|
+
}).then(k).catch(v).finally(() => {
|
|
33574
|
+
x && clearTimeout(x);
|
|
33575
|
+
});
|
|
33576
|
+
});
|
|
33577
|
+
} catch (b) {
|
|
33578
|
+
throw console.debug("error while executing", b), await r(u), b;
|
|
33579
|
+
}
|
|
33580
|
+
const h = d?.status ?? d?.state, f = d?.error ?? d?.reason ?? d?.message, y = /* @__PURE__ */ new Set(["error", "failed", "failure", "reverted"]);
|
|
33581
|
+
if (y.has(String(h).toLowerCase()) || d?.ok === !1)
|
|
33582
|
+
throw console.debug(
|
|
33583
|
+
"failedStatuses",
|
|
33584
|
+
y,
|
|
33585
|
+
"resultStatus",
|
|
33586
|
+
h,
|
|
33587
|
+
"resultError",
|
|
33588
|
+
f
|
|
33589
|
+
), await r(u), new Error(typeof f == "string" ? f : "Relay execution failed");
|
|
33562
33590
|
return { requestId: p?.steps?.[0]?.requestId, txnId: u, result: d };
|
|
33563
33591
|
}
|
|
33564
33592
|
});
|
|
33565
33593
|
}, mR = ({ intentRequestId: e, setTxStatus: t, setView: r, onError: n }) => {
|
|
33566
|
-
const a =
|
|
33594
|
+
const a = Io(), [s, o] = re(), [i, l] = re(""), { refreshBalances: u, isBalancesLoading: p } = pi();
|
|
33567
33595
|
return xe(() => {
|
|
33568
33596
|
if (!e) return;
|
|
33569
33597
|
let d = !1;
|
|
33570
33598
|
return (async () => {
|
|
33571
33599
|
for (; !d; ) {
|
|
33572
33600
|
try {
|
|
33573
|
-
const f = await fetch(`${
|
|
33601
|
+
const f = await fetch(`${Zo}/intents/status/v2?requestId=${e}`);
|
|
33574
33602
|
if (!f.ok)
|
|
33575
33603
|
throw new Error("Failed to get execution status");
|
|
33576
33604
|
const y = await f.json(), C = y?.status;
|
|
@@ -33627,12 +33655,12 @@ const uR = (e) => {
|
|
|
33627
33655
|
} catch {
|
|
33628
33656
|
d = !1;
|
|
33629
33657
|
}
|
|
33630
|
-
const h =
|
|
33658
|
+
const h = r?.chainId === oo ? !!p : !!u && !!r && !!n && d && (e !== void 0 ? e : !0), f = su(r, n), y = f ? r?.address === vt ? "wrap" : "unwrap" : "swap";
|
|
33631
33659
|
return { ...Da({
|
|
33632
33660
|
queryKey: ["relayQuote", u, p, t],
|
|
33633
33661
|
queryFn: async () => {
|
|
33634
33662
|
Na(u), Na(p), Na(r), Na(n), Na(s);
|
|
33635
|
-
const b = r.chainId ===
|
|
33663
|
+
const b = r.chainId === oo ? p : u, x = n.chainId === oo ? p : u;
|
|
33636
33664
|
return ut.actions.getQuote({
|
|
33637
33665
|
tradeType: a,
|
|
33638
33666
|
chainId: r.chainId,
|
|
@@ -33662,7 +33690,7 @@ const uR = (e) => {
|
|
|
33662
33690
|
gcTime: 0,
|
|
33663
33691
|
retry: 1
|
|
33664
33692
|
}), appFeesWaived: f, operation: y };
|
|
33665
|
-
},
|
|
33693
|
+
}, uo = (e, t) => {
|
|
33666
33694
|
const { balances: r } = Me(), { glyphApiFetch: n } = Zr(), a = e && t ? r?.tokens?.find?.(
|
|
33667
33695
|
(l) => l.chainId === t && qa(l.address) === qa(e)
|
|
33668
33696
|
) : void 0, { data: s, isLoading: o, error: i } = Da({
|
|
@@ -33685,7 +33713,7 @@ const uR = (e) => {
|
|
|
33685
33713
|
error: i ? i.message : void 0
|
|
33686
33714
|
};
|
|
33687
33715
|
}, gR = async function(e, t) {
|
|
33688
|
-
const r = new URL(`${
|
|
33716
|
+
const r = new URL(`${Zo}/currencies/v2`), n = await fetch(r.href, {
|
|
33689
33717
|
method: "POST",
|
|
33690
33718
|
headers: {
|
|
33691
33719
|
"Content-Type": "application/json",
|
|
@@ -33716,15 +33744,15 @@ const bR = ({
|
|
|
33716
33744
|
defaultChainId: r
|
|
33717
33745
|
}) => {
|
|
33718
33746
|
const n = ut.chains || [], a = Fe(() => n.map((U) => U.id), []), [s, o] = re(!1), [i, l] = re(r), u = Fe(() => t?.chainId ? n.find((U) => U.id === t.chainId) : null, [t?.chainId]), [p, d] = re(""), [h, f] = re(""), y = Fe(
|
|
33719
|
-
() =>
|
|
33747
|
+
() => ai(500, (U) => {
|
|
33720
33748
|
f(U);
|
|
33721
33749
|
}),
|
|
33722
33750
|
[]
|
|
33723
|
-
), C =
|
|
33751
|
+
), C = cl(h), [b, x] = Fe(() => {
|
|
33724
33752
|
if (!i) return [null, []];
|
|
33725
33753
|
const U = n.find((V) => V.id === i), L = U?.featuredTokens || [];
|
|
33726
33754
|
return [U, L];
|
|
33727
|
-
}, [i]), A =
|
|
33755
|
+
}, [i]), A = Uo(null);
|
|
33728
33756
|
xe(() => {
|
|
33729
33757
|
A.current = document.querySelector(".gw-wallet-container");
|
|
33730
33758
|
}, []);
|
|
@@ -33977,7 +34005,7 @@ const bR = ({
|
|
|
33977
34005
|
topUpDetails: n,
|
|
33978
34006
|
quoteReady: a
|
|
33979
34007
|
}) => {
|
|
33980
|
-
const { balance: s } =
|
|
34008
|
+
const { balance: s } = uo(vt, e), o = Ya(
|
|
33981
34009
|
parseFloat(n?.amountFormatted || "0"),
|
|
33982
34010
|
Math.min(n?.currency?.decimals || mt, mt)
|
|
33983
34011
|
), i = Number(n?.amountUsd || "0"), l = n?.currency;
|
|
@@ -34273,7 +34301,7 @@ function SR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
|
|
|
34273
34301
|
tradeType: A === "EXACT_INPUT" ? "EXACT_OUTPUT" : "EXACT_INPUT"
|
|
34274
34302
|
}), A === "EXACT_INPUT" ? P(E) : ee(w);
|
|
34275
34303
|
}, z = Fe(
|
|
34276
|
-
() =>
|
|
34304
|
+
() => ai(500, (se, E) => {
|
|
34277
34305
|
J(""), y({
|
|
34278
34306
|
amount: se,
|
|
34279
34307
|
tradeType: E
|
|
@@ -34312,15 +34340,15 @@ function SR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
|
|
|
34312
34340
|
balance: ie,
|
|
34313
34341
|
isLoading: ce,
|
|
34314
34342
|
error: ae
|
|
34315
|
-
} =
|
|
34343
|
+
} = uo(b?.address, b?.chainId), {
|
|
34316
34344
|
balance: me,
|
|
34317
34345
|
isLoading: Ce,
|
|
34318
34346
|
error: Ne
|
|
34319
|
-
} =
|
|
34347
|
+
} = uo(x?.address, x?.chainId), Ve = U?.fees?.gas, ke = Ve?.currency?.address || vt, {
|
|
34320
34348
|
balance: de,
|
|
34321
34349
|
isLoading: Wt,
|
|
34322
34350
|
error: Qt
|
|
34323
|
-
} =
|
|
34351
|
+
} = uo(ke, b?.chainId), pt = b?.decimals && te && ie !== void 0 && Number($r(BigInt(ie), b?.decimals)) < Number(te) ? Nt.INSUFFICENT_BALANCE : null, Xt = Xu(
|
|
34324
34352
|
ke,
|
|
34325
34353
|
b,
|
|
34326
34354
|
Ve?.amount || "0",
|
|
@@ -34373,7 +34401,7 @@ function SR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
|
|
|
34373
34401
|
value: te,
|
|
34374
34402
|
onChange: (se) => {
|
|
34375
34403
|
ee(() => {
|
|
34376
|
-
const E =
|
|
34404
|
+
const E = Co(
|
|
34377
34405
|
se.target.value,
|
|
34378
34406
|
Math.min(
|
|
34379
34407
|
b?.decimals || mt,
|
|
@@ -34466,7 +34494,7 @@ function SR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
|
|
|
34466
34494
|
},
|
|
34467
34495
|
value: H,
|
|
34468
34496
|
onChange: (se) => P(() => {
|
|
34469
|
-
const E =
|
|
34497
|
+
const E = Co(
|
|
34470
34498
|
se.target.value,
|
|
34471
34499
|
Math.min(
|
|
34472
34500
|
x?.decimals || mt,
|
|
@@ -34646,7 +34674,7 @@ const ju = gt(
|
|
|
34646
34674
|
({
|
|
34647
34675
|
setGradientType: e
|
|
34648
34676
|
}) => {
|
|
34649
|
-
const t = xr(
|
|
34677
|
+
const t = xr(No);
|
|
34650
34678
|
if (!t) throw new Error("GlyphWidgetWallet must be used within a GlyphViewProvider");
|
|
34651
34679
|
const { walletMainViewTab: r, setWalletMainViewTab: n, walletView: a, setWalletView: s } = t, [o, i] = re(!1);
|
|
34652
34680
|
return xe(() => {
|
|
@@ -34721,7 +34749,7 @@ const ju = gt(
|
|
|
34721
34749
|
className: "gw-absolute gw-top-0 gw-left-0 gw-w-full gw-h-full gw-object-cover gw-object-left-bottom gw-z-0 gw-pointer-events-none gw-rounded-t-3xl md:gw-rounded-3xl"
|
|
34722
34750
|
}
|
|
34723
34751
|
) : null, qM = ({ buttonProps: e }) => {
|
|
34724
|
-
const t = "light", r = qx("(min-width: 768px)"), n = xr(
|
|
34752
|
+
const t = "light", r = qx("(min-width: 768px)"), n = xr(No);
|
|
34725
34753
|
if (!n) throw new Error("GlyphWidget must be used within a GlyphViewProvider");
|
|
34726
34754
|
const { glyphView: a, setGlyphView: s } = n, { ready: o, authenticated: i, user: l, hideWidget: u } = Me();
|
|
34727
34755
|
xe(() => {
|
|
@@ -34806,7 +34834,7 @@ function UR({ children: e }) {
|
|
|
34806
34834
|
return /* @__PURE__ */ c(Bf.Provider, { value: { ...r, update: a, reportSwapFailed: s }, children: e });
|
|
34807
34835
|
}
|
|
34808
34836
|
const jt = os("GlyphData");
|
|
34809
|
-
let
|
|
34837
|
+
let Xi = null;
|
|
34810
34838
|
const IR = ({ children: e }) => {
|
|
34811
34839
|
const t = xr(_l);
|
|
34812
34840
|
if (!t) throw new Error("GlyphUserDataProvider must be used within GlyphProvider");
|
|
@@ -34853,10 +34881,10 @@ const IR = ({ children: e }) => {
|
|
|
34853
34881
|
enabled: r && n && !!a && !!u,
|
|
34854
34882
|
refetchInterval: Lx,
|
|
34855
34883
|
queryFn: async () => {
|
|
34856
|
-
if (
|
|
34884
|
+
if (Xi?.abort?.(), !a)
|
|
34857
34885
|
return jt.warn("widget balances fetch not available"), null;
|
|
34858
|
-
|
|
34859
|
-
const A =
|
|
34886
|
+
Xi = new AbortController();
|
|
34887
|
+
const A = Xi.signal;
|
|
34860
34888
|
try {
|
|
34861
34889
|
const k = await a(`/api/widget/balances?chainId=${l}`, {
|
|
34862
34890
|
signal: A
|
|
@@ -34907,7 +34935,7 @@ const IR = ({ children: e }) => {
|
|
|
34907
34935
|
[p]
|
|
34908
34936
|
), x = !!h;
|
|
34909
34937
|
return /* @__PURE__ */ c(
|
|
34910
|
-
|
|
34938
|
+
Bo.Provider,
|
|
34911
34939
|
{
|
|
34912
34940
|
value: {
|
|
34913
34941
|
user: u ?? null,
|
|
@@ -34925,7 +34953,7 @@ const IR = ({ children: e }) => {
|
|
|
34925
34953
|
}
|
|
34926
34954
|
);
|
|
34927
34955
|
}, ep = Ue.MAIN, tp = Le.HOME, rp = os("GlyphViewProvider"), NR = ({ children: e }) => {
|
|
34928
|
-
const t = xr(
|
|
34956
|
+
const t = xr(Bo);
|
|
34929
34957
|
if (!t) throw new Error("GlyphViewProvider must be used within GlyphProvider");
|
|
34930
34958
|
const { user: r } = t, [n, a] = re(ep), [s, o] = re(tp), [i, l] = re(Ye.CLOSED);
|
|
34931
34959
|
return xe(() => {
|
|
@@ -34968,7 +34996,7 @@ const IR = ({ children: e }) => {
|
|
|
34968
34996
|
break;
|
|
34969
34997
|
}
|
|
34970
34998
|
}, [i, r?.hasProfile]), /* @__PURE__ */ c(
|
|
34971
|
-
|
|
34999
|
+
No.Provider,
|
|
34972
35000
|
{
|
|
34973
35001
|
value: {
|
|
34974
35002
|
glyphView: i,
|
|
@@ -34988,7 +35016,7 @@ const IR = ({ children: e }) => {
|
|
|
34988
35016
|
useStagingTenant: n,
|
|
34989
35017
|
...a
|
|
34990
35018
|
}) => {
|
|
34991
|
-
const s =
|
|
35019
|
+
const s = Io();
|
|
34992
35020
|
xe(() => {
|
|
34993
35021
|
if (s.chains) {
|
|
34994
35022
|
const p = new Set(ut.chains.map((f) => f.id)), d = new Set(s.chains.map((f) => f.id));
|
|
@@ -35023,7 +35051,7 @@ const IR = ({ children: e }) => {
|
|
|
35023
35051
|
const l = await i.json();
|
|
35024
35052
|
if (Array.isArray(l.supportedChains) && Array.isArray(l.chains) && l.supportedChains.length > 0 && l.chains.length > 0)
|
|
35025
35053
|
r(l.supportedChains), a(
|
|
35026
|
-
l.chains.map((u) =>
|
|
35054
|
+
l.chains.map((u) => Jo(u).viemChain)
|
|
35027
35055
|
), ut.configure({
|
|
35028
35056
|
chains: l.chains
|
|
35029
35057
|
});
|
|
@@ -35067,7 +35095,7 @@ function GM() {
|
|
|
35067
35095
|
}, [r, t]), isOwnershipCheckLoading: n };
|
|
35068
35096
|
}
|
|
35069
35097
|
const ZM = () => {
|
|
35070
|
-
const e = xr(
|
|
35098
|
+
const e = xr(No);
|
|
35071
35099
|
if (e === void 0) throw new Error("useGlyphView must be used within a GlyphViewProvider");
|
|
35072
35100
|
const { setGlyphView: t } = e;
|
|
35073
35101
|
return {
|
|
@@ -35098,7 +35126,7 @@ var Wf = function(e, t, r, n) {
|
|
|
35098
35126
|
if (r === "a" && !n) throw new TypeError("Private accessor was defined without a getter");
|
|
35099
35127
|
if (typeof t == "function" ? e !== t || !n : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
35100
35128
|
return r === "m" ? n : r === "a" ? n.call(e) : n ? n.value : t.get(e);
|
|
35101
|
-
},
|
|
35129
|
+
}, vo, Lf;
|
|
35102
35130
|
class $a extends Error {
|
|
35103
35131
|
get docsBaseUrl() {
|
|
35104
35132
|
return "https://wagmi.sh/core";
|
|
@@ -35107,7 +35135,7 @@ class $a extends Error {
|
|
|
35107
35135
|
return VR();
|
|
35108
35136
|
}
|
|
35109
35137
|
constructor(t, r = {}) {
|
|
35110
|
-
super(),
|
|
35138
|
+
super(), vo.add(this), Object.defineProperty(this, "details", {
|
|
35111
35139
|
enumerable: !0,
|
|
35112
35140
|
configurable: !0,
|
|
35113
35141
|
writable: !0,
|
|
@@ -35147,11 +35175,11 @@ class $a extends Error {
|
|
|
35147
35175
|
`), r.cause && (this.cause = r.cause), this.details = n, this.docsPath = a, this.metaMessages = r.metaMessages, this.shortMessage = t;
|
|
35148
35176
|
}
|
|
35149
35177
|
walk(t) {
|
|
35150
|
-
return Wf(this,
|
|
35178
|
+
return Wf(this, vo, "m", Lf).call(this, this, t);
|
|
35151
35179
|
}
|
|
35152
35180
|
}
|
|
35153
|
-
|
|
35154
|
-
return r?.(t) ? t : t.cause ? Wf(this,
|
|
35181
|
+
vo = /* @__PURE__ */ new WeakSet(), Lf = function e(t, r) {
|
|
35182
|
+
return r?.(t) ? t : t.cause ? Wf(this, vo, "m", e).call(this, t.cause, r) : t;
|
|
35155
35183
|
};
|
|
35156
35184
|
class WR extends $a {
|
|
35157
35185
|
constructor() {
|
|
@@ -35163,7 +35191,7 @@ class WR extends $a {
|
|
|
35163
35191
|
});
|
|
35164
35192
|
}
|
|
35165
35193
|
}
|
|
35166
|
-
class
|
|
35194
|
+
class Hi extends $a {
|
|
35167
35195
|
constructor() {
|
|
35168
35196
|
super("Provider not found."), Object.defineProperty(this, "name", {
|
|
35169
35197
|
enumerable: !0,
|
|
@@ -35179,7 +35207,7 @@ async function LR({ providerAppId: e, apiUrl: t }) {
|
|
|
35179
35207
|
}
|
|
35180
35208
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
35181
35209
|
const od = /* @__PURE__ */ BigInt(0), Dl = /* @__PURE__ */ BigInt(1);
|
|
35182
|
-
function
|
|
35210
|
+
function Ao(e, t = "") {
|
|
35183
35211
|
if (typeof e != "boolean") {
|
|
35184
35212
|
const r = t && `"${t}"`;
|
|
35185
35213
|
throw new Error(r + "expected boolean, got type=" + typeof e);
|
|
@@ -35187,7 +35215,7 @@ function vo(e, t = "") {
|
|
|
35187
35215
|
return e;
|
|
35188
35216
|
}
|
|
35189
35217
|
function mn(e, t, r = "") {
|
|
35190
|
-
const n =
|
|
35218
|
+
const n = Mo(e), a = e?.length, s = t !== void 0;
|
|
35191
35219
|
if (!n || s && a !== t) {
|
|
35192
35220
|
const o = r && `"${r}" `, i = s ? ` of length ${t}` : "", l = n ? `length=${a}` : `type=${typeof e}`;
|
|
35193
35221
|
throw new Error(o + "expected Uint8Array" + i + ", got " + l);
|
|
@@ -35203,14 +35231,14 @@ function Of(e) {
|
|
|
35203
35231
|
throw new Error("hex string expected, got " + typeof e);
|
|
35204
35232
|
return e === "" ? od : BigInt("0x" + e);
|
|
35205
35233
|
}
|
|
35206
|
-
function
|
|
35234
|
+
function mi(e) {
|
|
35207
35235
|
return Of(Kn(e));
|
|
35208
35236
|
}
|
|
35209
35237
|
function qf(e) {
|
|
35210
35238
|
return Lr(e), Of(Kn(Uint8Array.from(e).reverse()));
|
|
35211
35239
|
}
|
|
35212
35240
|
function id(e, t) {
|
|
35213
|
-
return
|
|
35241
|
+
return po(e.toString(16).padStart(t * 2, "0"));
|
|
35214
35242
|
}
|
|
35215
35243
|
function Kf(e, t) {
|
|
35216
35244
|
return id(e, t).reverse();
|
|
@@ -35219,19 +35247,19 @@ function Ut(e, t, r) {
|
|
|
35219
35247
|
let n;
|
|
35220
35248
|
if (typeof t == "string")
|
|
35221
35249
|
try {
|
|
35222
|
-
n =
|
|
35250
|
+
n = po(t);
|
|
35223
35251
|
} catch (a) {
|
|
35224
35252
|
throw new Error(e + " must be hex string or Uint8Array, cause: " + a);
|
|
35225
35253
|
}
|
|
35226
|
-
else if (
|
|
35254
|
+
else if (Mo(t))
|
|
35227
35255
|
n = Uint8Array.from(t);
|
|
35228
35256
|
else
|
|
35229
35257
|
throw new Error(e + " must be hex string or Uint8Array");
|
|
35230
35258
|
return n.length, n;
|
|
35231
35259
|
}
|
|
35232
|
-
const
|
|
35260
|
+
const ji = (e) => typeof e == "bigint" && od <= e;
|
|
35233
35261
|
function OR(e, t, r) {
|
|
35234
|
-
return
|
|
35262
|
+
return ji(e) && ji(t) && ji(r) && t <= e && e < r;
|
|
35235
35263
|
}
|
|
35236
35264
|
function qR(e, t, r, n) {
|
|
35237
35265
|
if (!OR(t, r, n))
|
|
@@ -35499,7 +35527,7 @@ function ms(e, t, r = !1, n = {}) {
|
|
|
35499
35527
|
}
|
|
35500
35528
|
if (h.length !== u)
|
|
35501
35529
|
throw new Error("Field.fromBytes: expected " + u + " bytes, got " + h.length);
|
|
35502
|
-
let y = r ? qf(h) :
|
|
35530
|
+
let y = r ? qf(h) : mi(h);
|
|
35503
35531
|
if (o && (y = $t(y, e)), !f && !d.isValid(y))
|
|
35504
35532
|
throw new Error("invalid field element: outside of range 0..ORDER");
|
|
35505
35533
|
return y;
|
|
@@ -35526,16 +35554,16 @@ function XR(e, t, r = !1) {
|
|
|
35526
35554
|
const n = e.length, a = jf(t), s = _f(t);
|
|
35527
35555
|
if (n < 16 || n < s || n > 1024)
|
|
35528
35556
|
throw new Error("expected " + s + "-1024 bytes of input, got " + n);
|
|
35529
|
-
const o = r ? qf(e) :
|
|
35557
|
+
const o = r ? qf(e) : mi(e), i = $t(o, t - kt) + kt;
|
|
35530
35558
|
return r ? Kf(i, a) : id(i, a);
|
|
35531
35559
|
}
|
|
35532
35560
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
35533
35561
|
const ra = BigInt(0), fn = BigInt(1);
|
|
35534
|
-
function
|
|
35562
|
+
function ko(e, t) {
|
|
35535
35563
|
const r = t.negate();
|
|
35536
35564
|
return e ? r : t;
|
|
35537
35565
|
}
|
|
35538
|
-
function
|
|
35566
|
+
function _i(e, t) {
|
|
35539
35567
|
const r = Xf(e.Fp, t.map((n) => n.Z));
|
|
35540
35568
|
return t.map((n, a) => e.fromAffine(n.toAffine(r[a])));
|
|
35541
35569
|
}
|
|
@@ -35543,7 +35571,7 @@ function $f(e, t) {
|
|
|
35543
35571
|
if (!Number.isSafeInteger(e) || e <= 0 || e > t)
|
|
35544
35572
|
throw new Error("invalid window size, expected [1.." + t + "], got W=" + e);
|
|
35545
35573
|
}
|
|
35546
|
-
function
|
|
35574
|
+
function $i(e, t) {
|
|
35547
35575
|
$f(e, t);
|
|
35548
35576
|
const r = Math.ceil(t / e) + 1, n = 2 ** (e - 1), a = 2 ** e, s = ps(e), o = BigInt(e);
|
|
35549
35577
|
return { windows: r, windowSize: n, mask: s, maxNumber: a, shiftBy: o };
|
|
@@ -35571,8 +35599,8 @@ function jR(e, t) {
|
|
|
35571
35599
|
throw new Error("invalid scalar at index " + n);
|
|
35572
35600
|
});
|
|
35573
35601
|
}
|
|
35574
|
-
const
|
|
35575
|
-
function
|
|
35602
|
+
const el = /* @__PURE__ */ new WeakMap(), e0 = /* @__PURE__ */ new WeakMap();
|
|
35603
|
+
function tl(e) {
|
|
35576
35604
|
return e0.get(e) || 1;
|
|
35577
35605
|
}
|
|
35578
35606
|
function ip(e) {
|
|
@@ -35604,7 +35632,7 @@ class _R {
|
|
|
35604
35632
|
* @returns precomputed point tables flattened to a single array
|
|
35605
35633
|
*/
|
|
35606
35634
|
precomputeWindow(t, r) {
|
|
35607
|
-
const { windows: n, windowSize: a } =
|
|
35635
|
+
const { windows: n, windowSize: a } = $i(r, this.bits), s = [];
|
|
35608
35636
|
let o = t, i = o;
|
|
35609
35637
|
for (let l = 0; l < n; l++) {
|
|
35610
35638
|
i = o, s.push(i);
|
|
@@ -35624,10 +35652,10 @@ class _R {
|
|
|
35624
35652
|
if (!this.Fn.isValid(n))
|
|
35625
35653
|
throw new Error("invalid scalar");
|
|
35626
35654
|
let a = this.ZERO, s = this.BASE;
|
|
35627
|
-
const o =
|
|
35655
|
+
const o = $i(t, this.bits);
|
|
35628
35656
|
for (let i = 0; i < o.windows; i++) {
|
|
35629
35657
|
const { nextN: l, offset: u, isZero: p, isNeg: d, isNegF: h, offsetF: f } = op(n, i, o);
|
|
35630
|
-
n = l, p ? s = s.add(
|
|
35658
|
+
n = l, p ? s = s.add(ko(h, r[f])) : a = a.add(ko(d, r[u]));
|
|
35631
35659
|
}
|
|
35632
35660
|
return ip(n), { p: a, f: s };
|
|
35633
35661
|
}
|
|
@@ -35637,7 +35665,7 @@ class _R {
|
|
|
35637
35665
|
* @returns point
|
|
35638
35666
|
*/
|
|
35639
35667
|
wNAFUnsafe(t, r, n, a = this.ZERO) {
|
|
35640
|
-
const s =
|
|
35668
|
+
const s = $i(t, this.bits);
|
|
35641
35669
|
for (let o = 0; o < s.windows && n !== ra; o++) {
|
|
35642
35670
|
const { nextN: i, offset: l, isZero: u, isNeg: p } = op(n, o, s);
|
|
35643
35671
|
if (n = i, !u) {
|
|
@@ -35648,25 +35676,25 @@ class _R {
|
|
|
35648
35676
|
return ip(n), a;
|
|
35649
35677
|
}
|
|
35650
35678
|
getPrecomputes(t, r, n) {
|
|
35651
|
-
let a =
|
|
35652
|
-
return a || (a = this.precomputeWindow(r, t), t !== 1 && (typeof n == "function" && (a = n(a)),
|
|
35679
|
+
let a = el.get(r);
|
|
35680
|
+
return a || (a = this.precomputeWindow(r, t), t !== 1 && (typeof n == "function" && (a = n(a)), el.set(r, a))), a;
|
|
35653
35681
|
}
|
|
35654
35682
|
cached(t, r, n) {
|
|
35655
|
-
const a =
|
|
35683
|
+
const a = tl(t);
|
|
35656
35684
|
return this.wNAF(a, this.getPrecomputes(a, t, n), r);
|
|
35657
35685
|
}
|
|
35658
35686
|
unsafe(t, r, n, a) {
|
|
35659
|
-
const s =
|
|
35687
|
+
const s = tl(t);
|
|
35660
35688
|
return s === 1 ? this._unsafeLadder(t, r, a) : this.wNAFUnsafe(s, this.getPrecomputes(s, t, n), r, a);
|
|
35661
35689
|
}
|
|
35662
35690
|
// We calculate precomputes for elliptic curve point multiplication
|
|
35663
35691
|
// using windowed method. This specifies window size and
|
|
35664
35692
|
// stores precomputed values. Usually only base point would be precomputed.
|
|
35665
35693
|
createCache(t, r) {
|
|
35666
|
-
$f(r, this.bits), e0.set(t, r),
|
|
35694
|
+
$f(r, this.bits), e0.set(t, r), el.delete(t);
|
|
35667
35695
|
}
|
|
35668
35696
|
hasCache(t) {
|
|
35669
|
-
return
|
|
35697
|
+
return tl(t) !== 1;
|
|
35670
35698
|
}
|
|
35671
35699
|
}
|
|
35672
35700
|
function $R(e, t, r, n) {
|
|
@@ -35739,11 +35767,11 @@ function Gl(e) {
|
|
|
35739
35767
|
throw new Error('Signature format must be "compact", "recovered", or "der"');
|
|
35740
35768
|
return e;
|
|
35741
35769
|
}
|
|
35742
|
-
function
|
|
35770
|
+
function rl(e, t) {
|
|
35743
35771
|
const r = {};
|
|
35744
35772
|
for (let n of Object.keys(t))
|
|
35745
35773
|
r[n] = e[n] === void 0 ? t[n] : e[n];
|
|
35746
|
-
return
|
|
35774
|
+
return Ao(r.lowS, "lowS"), Ao(r.prehash, "prehash"), r.format !== void 0 && Gl(r.format), r;
|
|
35747
35775
|
}
|
|
35748
35776
|
class nF extends Error {
|
|
35749
35777
|
constructor(t = "") {
|
|
@@ -35821,7 +35849,7 @@ const Rr = {
|
|
|
35821
35849
|
throw new t("invalid signature integer: negative");
|
|
35822
35850
|
if (e[0] === 0 && !(e[1] & 128))
|
|
35823
35851
|
throw new t("invalid signature integer: unnecessary leading zero");
|
|
35824
|
-
return
|
|
35852
|
+
return mi(e);
|
|
35825
35853
|
}
|
|
35826
35854
|
},
|
|
35827
35855
|
toSig(e) {
|
|
@@ -35878,7 +35906,7 @@ function sF(e, t = {}) {
|
|
|
35878
35906
|
}
|
|
35879
35907
|
function d(Z, T, M) {
|
|
35880
35908
|
const { x: F, y: O } = T.toAffine(), z = n.toBytes(F);
|
|
35881
|
-
if (
|
|
35909
|
+
if (Ao(M, "isCompressed"), M) {
|
|
35882
35910
|
p();
|
|
35883
35911
|
const G = !n.isOdd(O);
|
|
35884
35912
|
return _r(r0(G), z);
|
|
@@ -35967,7 +35995,7 @@ function sF(e, t = {}) {
|
|
|
35967
35995
|
return !0;
|
|
35968
35996
|
});
|
|
35969
35997
|
function L(Z, T, M, F, O) {
|
|
35970
|
-
return M = new V(n.mul(M.X, Z), M.Y, M.Z), T =
|
|
35998
|
+
return M = new V(n.mul(M.X, Z), M.Y, M.Z), T = ko(F, T), M = ko(O, M), T.add(M);
|
|
35971
35999
|
}
|
|
35972
36000
|
class V {
|
|
35973
36001
|
/** Does NOT validate if the point is valid. Use `.assertValidity()`. */
|
|
@@ -36072,7 +36100,7 @@ function sF(e, t = {}) {
|
|
|
36072
36100
|
if (!a.isValidNot0(T))
|
|
36073
36101
|
throw new Error("invalid scalar: out of range");
|
|
36074
36102
|
let F, O;
|
|
36075
|
-
const z = (G) => Q.cached(this, G, (J) =>
|
|
36103
|
+
const z = (G) => Q.cached(this, G, (J) => _i(V, J));
|
|
36076
36104
|
if (M) {
|
|
36077
36105
|
const { k1neg: G, k1: J, k2neg: _, k2: j } = N(T), { p: te, f: ee } = z(J), { p: H, f: P } = z(j);
|
|
36078
36106
|
O = ee.add(P), F = L(M.beta, te, H, G, _);
|
|
@@ -36080,7 +36108,7 @@ function sF(e, t = {}) {
|
|
|
36080
36108
|
const { p: G, f: J } = z(T);
|
|
36081
36109
|
F = G, O = J;
|
|
36082
36110
|
}
|
|
36083
|
-
return
|
|
36111
|
+
return _i(V, [F, O])[0];
|
|
36084
36112
|
}
|
|
36085
36113
|
/**
|
|
36086
36114
|
* Non-constant-time multiplication. Uses double-and-add algorithm.
|
|
@@ -36130,7 +36158,7 @@ function sF(e, t = {}) {
|
|
|
36130
36158
|
return this.multiplyUnsafe(o).is0();
|
|
36131
36159
|
}
|
|
36132
36160
|
toBytes(T = !0) {
|
|
36133
|
-
return
|
|
36161
|
+
return Ao(T, "isCompressed"), this.assertValidity(), f(V, this, T);
|
|
36134
36162
|
}
|
|
36135
36163
|
toHex(T = !0) {
|
|
36136
36164
|
return Kn(this.toBytes(T));
|
|
@@ -36155,7 +36183,7 @@ function sF(e, t = {}) {
|
|
|
36155
36183
|
this.precompute(T);
|
|
36156
36184
|
}
|
|
36157
36185
|
static normalizeZ(T) {
|
|
36158
|
-
return
|
|
36186
|
+
return _i(V, T);
|
|
36159
36187
|
}
|
|
36160
36188
|
static msm(T, M) {
|
|
36161
36189
|
return eF(V, a, T, M);
|
|
@@ -36285,7 +36313,7 @@ function iF(e, t, r = {}) {
|
|
|
36285
36313
|
return new k(o.fromBytes(J), o.fromBytes(_), z);
|
|
36286
36314
|
}
|
|
36287
36315
|
static fromHex(F, O) {
|
|
36288
|
-
return this.fromBytes(
|
|
36316
|
+
return this.fromBytes(po(F), O);
|
|
36289
36317
|
}
|
|
36290
36318
|
addRecoveryBit(F) {
|
|
36291
36319
|
return new k(this.r, this.s, F);
|
|
@@ -36310,7 +36338,7 @@ function iF(e, t, r = {}) {
|
|
|
36310
36338
|
}
|
|
36311
36339
|
toBytes(F = C) {
|
|
36312
36340
|
if (Gl(F), F === "der")
|
|
36313
|
-
return
|
|
36341
|
+
return po(Rr.hexFromSig(this));
|
|
36314
36342
|
const O = o.toBytes(this.r), z = o.toBytes(this.s);
|
|
36315
36343
|
if (F === "recovered") {
|
|
36316
36344
|
if (this.recovery == null)
|
|
@@ -36350,7 +36378,7 @@ function iF(e, t, r = {}) {
|
|
|
36350
36378
|
const v = r.bits2int || function(F) {
|
|
36351
36379
|
if (F.length > 8192)
|
|
36352
36380
|
throw new Error("input is too large");
|
|
36353
|
-
const O =
|
|
36381
|
+
const O = mi(F), z = F.length * 8 - l;
|
|
36354
36382
|
return z > 0 ? O >> BigInt(z) : O;
|
|
36355
36383
|
}, N = r.bits2int_modN || function(F) {
|
|
36356
36384
|
return o.create(v(F));
|
|
@@ -36364,7 +36392,7 @@ function iF(e, t, r = {}) {
|
|
|
36364
36392
|
function V(M, F, O) {
|
|
36365
36393
|
if (["recovered", "canonical"].some((ie) => ie in O))
|
|
36366
36394
|
throw new Error("sign() legacy options not supported");
|
|
36367
|
-
const { lowS: z, prehash: G, extraEntropy: J } =
|
|
36395
|
+
const { lowS: z, prehash: G, extraEntropy: J } = rl(O, y);
|
|
36368
36396
|
M = L(M, G);
|
|
36369
36397
|
const _ = N(M), j = qn(o, F), te = [U(j), U(_)];
|
|
36370
36398
|
if (J != null && J !== !1) {
|
|
@@ -36394,7 +36422,7 @@ function iF(e, t, r = {}) {
|
|
|
36394
36422
|
}
|
|
36395
36423
|
function Q(M) {
|
|
36396
36424
|
let F;
|
|
36397
|
-
const O = typeof M == "string" ||
|
|
36425
|
+
const O = typeof M == "string" || Mo(M), z = !O && M !== null && typeof M == "object" && typeof M.r == "bigint" && typeof M.s == "bigint";
|
|
36398
36426
|
if (!O && !z)
|
|
36399
36427
|
throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");
|
|
36400
36428
|
if (z)
|
|
@@ -36416,7 +36444,7 @@ function iF(e, t, r = {}) {
|
|
|
36416
36444
|
return F || !1;
|
|
36417
36445
|
}
|
|
36418
36446
|
function Z(M, F, O, z = {}) {
|
|
36419
|
-
const { lowS: G, prehash: J, format: _ } =
|
|
36447
|
+
const { lowS: G, prehash: J, format: _ } = rl(z, y);
|
|
36420
36448
|
if (O = Ut("publicKey", O), F = L(Ut("message", F), J), "strict" in z)
|
|
36421
36449
|
throw new Error("options.strict was renamed to lowS");
|
|
36422
36450
|
const j = _ === void 0 ? Q(M) : k.fromBytes(Ut("sig", M), _);
|
|
@@ -36433,7 +36461,7 @@ function iF(e, t, r = {}) {
|
|
|
36433
36461
|
}
|
|
36434
36462
|
}
|
|
36435
36463
|
function T(M, F, O = {}) {
|
|
36436
|
-
const { prehash: z } =
|
|
36464
|
+
const { prehash: z } = rl(O, y);
|
|
36437
36465
|
return F = L(F, z), k.fromBytes(M, "recovered").recoverPublicKey(F).toBytes();
|
|
36438
36466
|
}
|
|
36439
36467
|
return Object.freeze({
|
|
@@ -36612,7 +36640,7 @@ function yF(e, t = "=") {
|
|
|
36612
36640
|
}
|
|
36613
36641
|
};
|
|
36614
36642
|
}
|
|
36615
|
-
const a0 = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? /* @__PURE__ */ a0(t, e % t) : e,
|
|
36643
|
+
const a0 = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? /* @__PURE__ */ a0(t, e % t) : e, So = /* @__NO_SIDE_EFFECTS__ */ (e, t) => e + (t - /* @__PURE__ */ a0(e, t));
|
|
36616
36644
|
// @__NO_SIDE_EFFECTS__
|
|
36617
36645
|
function up(e, t, r, n) {
|
|
36618
36646
|
if (!Array.isArray(e))
|
|
@@ -36621,8 +36649,8 @@ function up(e, t, r, n) {
|
|
|
36621
36649
|
throw new Error(`convertRadix2: wrong from=${t}`);
|
|
36622
36650
|
if (r <= 0 || r > 32)
|
|
36623
36651
|
throw new Error(`convertRadix2: wrong to=${r}`);
|
|
36624
|
-
if (/* @__PURE__ */
|
|
36625
|
-
throw new Error(`convertRadix2: carry overflow from=${t} to=${r} carryBits=${/* @__PURE__ */
|
|
36652
|
+
if (/* @__PURE__ */ So(t, r) > 32)
|
|
36653
|
+
throw new Error(`convertRadix2: carry overflow from=${t} to=${r} carryBits=${/* @__PURE__ */ So(t, r)}`);
|
|
36626
36654
|
let a = 0, s = 0;
|
|
36627
36655
|
const o = 2 ** r - 1, i = [];
|
|
36628
36656
|
for (const l of e) {
|
|
@@ -36644,7 +36672,7 @@ function up(e, t, r, n) {
|
|
|
36644
36672
|
function CF(e, t = !1) {
|
|
36645
36673
|
if (e <= 0 || e > 32)
|
|
36646
36674
|
throw new Error("radix2: bits should be in (0..32]");
|
|
36647
|
-
if (/* @__PURE__ */
|
|
36675
|
+
if (/* @__PURE__ */ So(8, e) > 32 || /* @__PURE__ */ So(e, 8) > 32)
|
|
36648
36676
|
throw new Error("radix2: carry overflow");
|
|
36649
36677
|
return {
|
|
36650
36678
|
encode: (r) => {
|
|
@@ -36660,7 +36688,7 @@ function CF(e, t = !1) {
|
|
|
36660
36688
|
};
|
|
36661
36689
|
}
|
|
36662
36690
|
const nr = /* @__PURE__ */ gF(/* @__PURE__ */ CF(6), /* @__PURE__ */ wF("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), /* @__PURE__ */ yF(6), /* @__PURE__ */ bF(""));
|
|
36663
|
-
var
|
|
36691
|
+
var nl = {}, Fa = {}, pp;
|
|
36664
36692
|
function xF() {
|
|
36665
36693
|
if (pp) return Fa;
|
|
36666
36694
|
pp = 1, Fa.byteLength = i, Fa.toByteArray = u, Fa.fromByteArray = h;
|
|
@@ -37680,9 +37708,9 @@ function vF() {
|
|
|
37680
37708
|
function se() {
|
|
37681
37709
|
throw new Error("BigInt not supported");
|
|
37682
37710
|
}
|
|
37683
|
-
})(
|
|
37711
|
+
})(nl)), nl;
|
|
37684
37712
|
}
|
|
37685
|
-
var AF = vF(), bt = Uint8Array, Kt = Uint16Array, ud = Int32Array,
|
|
37713
|
+
var AF = vF(), bt = Uint8Array, Kt = Uint16Array, ud = Int32Array, hi = new bt([
|
|
37686
37714
|
0,
|
|
37687
37715
|
0,
|
|
37688
37716
|
0,
|
|
@@ -37717,7 +37745,7 @@ var AF = vF(), bt = Uint8Array, Kt = Uint16Array, ud = Int32Array, mi = new bt([
|
|
|
37717
37745
|
0,
|
|
37718
37746
|
/* impossible */
|
|
37719
37747
|
0
|
|
37720
|
-
]),
|
|
37748
|
+
]), fi = new bt([
|
|
37721
37749
|
0,
|
|
37722
37750
|
0,
|
|
37723
37751
|
0,
|
|
@@ -37758,9 +37786,9 @@ var AF = vF(), bt = Uint8Array, Kt = Uint16Array, ud = Int32Array, mi = new bt([
|
|
|
37758
37786
|
for (var s = r[n]; s < r[n + 1]; ++s)
|
|
37759
37787
|
a[s] = s - r[n] << 5 | n;
|
|
37760
37788
|
return { b: r, r: a };
|
|
37761
|
-
}, o0 = s0(
|
|
37789
|
+
}, o0 = s0(hi, 2), i0 = o0.b, Jl = o0.r;
|
|
37762
37790
|
i0[28] = 258, Jl[258] = 28;
|
|
37763
|
-
var l0 = s0(
|
|
37791
|
+
var l0 = s0(fi, 0), kF = l0.b, fp = l0.r, Yl = new Kt(32768);
|
|
37764
37792
|
for (var Xe = 0; Xe < 32768; ++Xe) {
|
|
37765
37793
|
var Xr = (Xe & 43690) >> 1 | (Xe & 21845) << 1;
|
|
37766
37794
|
Xr = (Xr & 52428) >> 2 | (Xr & 13107) << 2, Xr = (Xr & 61680) >> 4 | (Xr & 3855) << 4, Yl[Xe] = ((Xr & 65280) >> 8 | (Xr & 255) << 8) >> 1;
|
|
@@ -37795,14 +37823,14 @@ for (var Xe = 280; Xe < 288; ++Xe)
|
|
|
37795
37823
|
var es = new bt(32);
|
|
37796
37824
|
for (var Xe = 0; Xe < 32; ++Xe)
|
|
37797
37825
|
es[Xe] = 5;
|
|
37798
|
-
var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /* @__PURE__ */ Cr(es, 5, 0), IF = /* @__PURE__ */ Cr(es, 5, 1),
|
|
37826
|
+
var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /* @__PURE__ */ Cr(es, 5, 0), IF = /* @__PURE__ */ Cr(es, 5, 1), al = function(e) {
|
|
37799
37827
|
for (var t = e[0], r = 1; r < e.length; ++r)
|
|
37800
37828
|
e[r] > t && (t = e[r]);
|
|
37801
37829
|
return t;
|
|
37802
37830
|
}, _t = function(e, t, r) {
|
|
37803
37831
|
var n = t / 8 | 0;
|
|
37804
37832
|
return (e[n] | e[n + 1] << 8) >> (t & 7) & r;
|
|
37805
|
-
},
|
|
37833
|
+
}, sl = function(e, t) {
|
|
37806
37834
|
var r = t / 8 | 0;
|
|
37807
37835
|
return (e[r] | e[r + 1] << 8 | e[r + 2] << 16) >> (t & 7);
|
|
37808
37836
|
}, pd = function(e) {
|
|
@@ -37856,7 +37884,7 @@ var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /
|
|
|
37856
37884
|
for (var V = new bt(L), X = new bt(19), Q = 0; Q < U; ++Q)
|
|
37857
37885
|
X[Pl[Q]] = _t(e, d + Q * 3, 7);
|
|
37858
37886
|
d += U * 3;
|
|
37859
|
-
for (var Z =
|
|
37887
|
+
for (var Z = al(X), T = (1 << Z) - 1, M = Cr(X, Z, 1), Q = 0; Q < L; ) {
|
|
37860
37888
|
var F = M[_t(e, d, T)];
|
|
37861
37889
|
d += F & 15;
|
|
37862
37890
|
var k = F >> 4;
|
|
@@ -37869,7 +37897,7 @@ var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /
|
|
|
37869
37897
|
}
|
|
37870
37898
|
}
|
|
37871
37899
|
var G = V.subarray(0, R), J = V.subarray(R);
|
|
37872
|
-
C =
|
|
37900
|
+
C = al(G), b = al(J), f = Cr(G, C, 1), y = Cr(J, b, 1);
|
|
37873
37901
|
} else
|
|
37874
37902
|
er(1);
|
|
37875
37903
|
else {
|
|
@@ -37888,7 +37916,7 @@ var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /
|
|
|
37888
37916
|
}
|
|
37889
37917
|
i && u(h + 131072);
|
|
37890
37918
|
for (var _ = (1 << C) - 1, j = (1 << b) - 1, te = d; ; te = d) {
|
|
37891
|
-
var O = f[
|
|
37919
|
+
var O = f[sl(e, d) & _], ee = O >> 4;
|
|
37892
37920
|
if (d += O & 15, d > x) {
|
|
37893
37921
|
l && er(0);
|
|
37894
37922
|
break;
|
|
@@ -37901,15 +37929,15 @@ var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /
|
|
|
37901
37929
|
} else {
|
|
37902
37930
|
var H = ee - 254;
|
|
37903
37931
|
if (ee > 264) {
|
|
37904
|
-
var Q = ee - 257, P =
|
|
37932
|
+
var Q = ee - 257, P = hi[Q];
|
|
37905
37933
|
H = _t(e, d, (1 << P) - 1) + i0[Q], d += P;
|
|
37906
37934
|
}
|
|
37907
|
-
var ie = y[
|
|
37935
|
+
var ie = y[sl(e, d) & j], ce = ie >> 4;
|
|
37908
37936
|
ie || er(3), d += ie & 15;
|
|
37909
37937
|
var J = kF[ce];
|
|
37910
37938
|
if (ce > 3) {
|
|
37911
|
-
var P =
|
|
37912
|
-
J +=
|
|
37939
|
+
var P = fi[ce];
|
|
37940
|
+
J += sl(e, d) & (1 << P) - 1, d += P;
|
|
37913
37941
|
}
|
|
37914
37942
|
if (d > x) {
|
|
37915
37943
|
l && er(0);
|
|
@@ -37937,7 +37965,7 @@ var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /
|
|
|
37937
37965
|
r <<= t & 7;
|
|
37938
37966
|
var n = t / 8 | 0;
|
|
37939
37967
|
e[n] |= r, e[n + 1] |= r >> 8, e[n + 2] |= r >> 16;
|
|
37940
|
-
},
|
|
37968
|
+
}, ol = function(e, t) {
|
|
37941
37969
|
for (var r = [], n = 0; n < e.length; ++n)
|
|
37942
37970
|
e[n] && r.push({ s: n, f: e[n] });
|
|
37943
37971
|
var a = r.length, s = r.slice();
|
|
@@ -38015,11 +38043,11 @@ var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /
|
|
|
38015
38043
|
return (a + 4 + n) * 8;
|
|
38016
38044
|
}, wp = function(e, t, r, n, a, s, o, i, l, u, p) {
|
|
38017
38045
|
Ir(t, p++, r), ++a[256];
|
|
38018
|
-
for (var d =
|
|
38046
|
+
for (var d = ol(a, 15), h = d.t, f = d.l, y = ol(s, 15), C = y.t, b = y.l, x = gp(h), A = x.c, k = x.n, v = gp(C), N = v.c, R = v.n, U = new Kt(19), L = 0; L < A.length; ++L)
|
|
38019
38047
|
++U[A[L] & 31];
|
|
38020
38048
|
for (var L = 0; L < N.length; ++L)
|
|
38021
38049
|
++U[N[L] & 31];
|
|
38022
|
-
for (var V =
|
|
38050
|
+
for (var V = ol(U, 7), X = V.t, Q = V.l, Z = 19; Z > 4 && !X[Pl[Z - 1]]; --Z)
|
|
38023
38051
|
;
|
|
38024
38052
|
var T = u + 5 << 3, M = Va(a, sn) + Va(s, es) + o, F = Va(a, h) + Va(s, C) + o + 14 + 3 * Z + Va(U, X) + 2 * U[16] + 3 * U[17] + 7 * U[18];
|
|
38025
38053
|
if (l >= 0 && T <= M && T <= F)
|
|
@@ -38043,9 +38071,9 @@ var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /
|
|
|
38043
38071
|
var P = n[L];
|
|
38044
38072
|
if (P > 255) {
|
|
38045
38073
|
var H = P >> 18 & 31;
|
|
38046
|
-
Ma(t, p, O[H + 257]), p += z[H + 257], H > 7 && (Ir(t, p, P >> 23 & 31), p +=
|
|
38074
|
+
Ma(t, p, O[H + 257]), p += z[H + 257], H > 7 && (Ir(t, p, P >> 23 & 31), p += hi[H]);
|
|
38047
38075
|
var ie = P & 31;
|
|
38048
|
-
Ma(t, p, G[ie]), p += J[ie], ie > 3 && (Ma(t, p, P >> 5 & 8191), p +=
|
|
38076
|
+
Ma(t, p, G[ie]), p += J[ie], ie > 3 && (Ma(t, p, P >> 5 & 8191), p += fi[ie]);
|
|
38049
38077
|
} else
|
|
38050
38078
|
Ma(t, p, O[P]), p += z[P];
|
|
38051
38079
|
}
|
|
@@ -38087,7 +38115,7 @@ var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /
|
|
|
38087
38115
|
if (J) {
|
|
38088
38116
|
v[X++] = 268435456 | Jl[G] << 18 | fp[J];
|
|
38089
38117
|
var Ne = Jl[G] & 31, Ve = fp[J] & 31;
|
|
38090
|
-
L +=
|
|
38118
|
+
L += hi[Ne] + fi[Ve], ++N[257 + Ne], ++R[Ve], Q = V + G, ++U;
|
|
38091
38119
|
} else
|
|
38092
38120
|
v[X++] = e[V], ++N[e[V]];
|
|
38093
38121
|
}
|
|
@@ -38340,10 +38368,10 @@ const _F = (e) => {
|
|
|
38340
38368
|
try {
|
|
38341
38369
|
return await t.sendRequest(o, i);
|
|
38342
38370
|
} catch (l) {
|
|
38343
|
-
throw l instanceof za && (l.action === "clear" && a(), l.code === void 0 && l.message === "User rejected request") ? new
|
|
38371
|
+
throw l instanceof za && (l.action === "clear" && a(), l.code === void 0 && l.message === "User rejected request") ? new wi(Error("User rejected request"), { code: 4001, shortMessage: "User rejected request" }) : new wi(l, { code: l.code ?? -1, shortMessage: l.message });
|
|
38344
38372
|
}
|
|
38345
38373
|
default:
|
|
38346
|
-
throw new
|
|
38374
|
+
throw new wi(Error("Unsupported method"), { code: 4200, shortMessage: `Unsupported method: ${o}` });
|
|
38347
38375
|
}
|
|
38348
38376
|
} };
|
|
38349
38377
|
};
|
|
@@ -38368,11 +38396,11 @@ function f0(e, t) {
|
|
|
38368
38396
|
n && (l.removeListener("chainChanged", n), n = void 0), s && (l.removeListener("disconnect", s), s = void 0), a || (a = this.onConnect.bind(this), l.on("connect", a)), await l.request({ method: "wallet_revokePermissions", params: [{ eth_accounts: {} }] }), this.onDisconnect();
|
|
38369
38397
|
}, async getAccounts() {
|
|
38370
38398
|
let l = await this.getProvider();
|
|
38371
|
-
if (!l) throw new
|
|
38399
|
+
if (!l) throw new Hi();
|
|
38372
38400
|
return (await l.request({ method: "eth_accounts" })).map(((u) => hd(u)));
|
|
38373
38401
|
}, async getChainId() {
|
|
38374
38402
|
let l = await this.getProvider();
|
|
38375
|
-
if (!l) throw new
|
|
38403
|
+
if (!l) throw new Hi();
|
|
38376
38404
|
return Number(await l.request({ method: "eth_chainId" }));
|
|
38377
38405
|
}, getProvider: async () => (o || (o = _F({ chains: i.chains, transports: i.transports, providerAppId: e.id, apiUrl: e.apiUrl, smartWalletMode: e.smartWalletMode })), o), async isAuthorized() {
|
|
38378
38406
|
try {
|
|
@@ -38382,7 +38410,7 @@ function f0(e, t) {
|
|
|
38382
38410
|
}
|
|
38383
38411
|
}, async switchChain({ chainId: l }) {
|
|
38384
38412
|
let u = await this.getProvider();
|
|
38385
|
-
if (!u) throw new
|
|
38413
|
+
if (!u) throw new Hi();
|
|
38386
38414
|
let p = i.chains.find(((d) => d.id === l));
|
|
38387
38415
|
if (!p) throw new N0(new WR());
|
|
38388
38416
|
return l === Number(await u.request({ method: "eth_chainId" })) || (await u.request({ method: "wallet_switchEthereumChain", params: [{ chainId: `0x${l.toString(16)}` }] }), i.emitter.emit("change", { chainId: l })), p;
|
|
@@ -38419,7 +38447,7 @@ function tM(e = {}) {
|
|
|
38419
38447
|
...a,
|
|
38420
38448
|
...t,
|
|
38421
38449
|
getProvider: async (i) => {
|
|
38422
|
-
const l = i?.chainId ?? n.chains?.[0]?.id ??
|
|
38450
|
+
const l = i?.chainId ?? n.chains?.[0]?.id ?? Wo.id;
|
|
38423
38451
|
return await a.getProvider({
|
|
38424
38452
|
chainId: l
|
|
38425
38453
|
});
|
|
@@ -38631,7 +38659,7 @@ const rM = new Ip(), XM = ({
|
|
|
38631
38659
|
children: e,
|
|
38632
38660
|
useStagingTenant: t
|
|
38633
38661
|
}) => {
|
|
38634
|
-
const r =
|
|
38662
|
+
const r = Io(), { reconnect: n } = A0(), { ready: a, provider: s } = nM({
|
|
38635
38663
|
chains: r.chains,
|
|
38636
38664
|
useStagingTenant: t
|
|
38637
38665
|
}), [o, i] = re(!1), [l, u] = re(null), p = os("InjectWagmiConnector"), d = tt(
|
|
@@ -38679,7 +38707,7 @@ const rM = new Ip(), XM = ({
|
|
|
38679
38707
|
transports: i.reduce(
|
|
38680
38708
|
(p, d) => {
|
|
38681
38709
|
const h = d.rpcUrls?.default?.webSocket?.[0], f = d.rpcUrls?.default?.http?.[0], y = [h && M0(h), f && Et(f)].filter((C) => !!C);
|
|
38682
|
-
return p[d.id] = y.length ?
|
|
38710
|
+
return p[d.id] = y.length ? ll(y) : Et(), p;
|
|
38683
38711
|
},
|
|
38684
38712
|
{}
|
|
38685
38713
|
),
|
|
@@ -38734,7 +38762,7 @@ export {
|
|
|
38734
38762
|
zM as g,
|
|
38735
38763
|
FM as h,
|
|
38736
38764
|
MM as i,
|
|
38737
|
-
|
|
38765
|
+
pi as j,
|
|
38738
38766
|
Me as k,
|
|
38739
38767
|
ZI as l,
|
|
38740
38768
|
GN as m,
|