@edgex-web/components 0.1.0-beta.61 → 0.1.0-beta.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ccip-BvEhcmL8.mjs → ccip-CN7LbRDz.mjs} +2 -2
- package/dist/{ccip-BvEhcmL8.mjs.map → ccip-CN7LbRDz.mjs.map} +1 -1
- package/dist/{index-CSUvequ1.mjs → index-1SRJZP-Y.mjs} +487 -529
- package/dist/{index-CSUvequ1.mjs.map → index-1SRJZP-Y.mjs.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Em = Object.defineProperty;
|
|
2
2
|
var Sm = (e, t, n) => t in e ? Em(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var Mr = (e, t, n) => Sm(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as U from "react";
|
|
5
5
|
import Z, { createContext as Fe, useContext as Pe, useMemo as J, useCallback as ee, forwardRef as cc, createElement as fs, useRef as ce, useEffect as Ae, useState as le, useLayoutEffect as Os, Fragment as ht, isValidElement as Pm, cloneElement as Am, useId as Yn, useReducer as $m, useSyncExternalStore as Tm, useImperativeHandle as Cf } from "react";
|
|
6
6
|
import * as Xr from "react-dom";
|
|
@@ -42,61 +42,61 @@ var Fr = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
45
|
+
var kl;
|
|
46
46
|
function Nm() {
|
|
47
|
-
return
|
|
47
|
+
return kl || (kl = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
48
|
var e = Z, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), c = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), h = Symbol.iterator, m = "@@iterator";
|
|
49
|
-
function w(
|
|
50
|
-
if (
|
|
49
|
+
function w(k) {
|
|
50
|
+
if (k === null || typeof k != "object")
|
|
51
51
|
return null;
|
|
52
|
-
var G = h &&
|
|
52
|
+
var G = h && k[h] || k[m];
|
|
53
53
|
return typeof G == "function" ? G : null;
|
|
54
54
|
}
|
|
55
55
|
var $ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
56
|
-
function y(
|
|
56
|
+
function y(k) {
|
|
57
57
|
{
|
|
58
58
|
for (var G = arguments.length, X = new Array(G > 1 ? G - 1 : 0), ie = 1; ie < G; ie++)
|
|
59
59
|
X[ie - 1] = arguments[ie];
|
|
60
|
-
A("error",
|
|
60
|
+
A("error", k, X);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function A(
|
|
63
|
+
function A(k, G, X) {
|
|
64
64
|
{
|
|
65
65
|
var ie = $.ReactDebugCurrentFrame, be = ie.getStackAddendum();
|
|
66
66
|
be !== "" && (G += "%s", X = X.concat([be]));
|
|
67
67
|
var we = X.map(function(he) {
|
|
68
68
|
return String(he);
|
|
69
69
|
});
|
|
70
|
-
we.unshift("Warning: " + G), Function.prototype.apply.call(console[
|
|
70
|
+
we.unshift("Warning: " + G), Function.prototype.apply.call(console[k], console, we);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
var B = !1, L = !1, D = !1, F = !1, g = !1, v;
|
|
74
74
|
v = Symbol.for("react.module.reference");
|
|
75
|
-
function P(
|
|
76
|
-
return !!(typeof
|
|
75
|
+
function P(k) {
|
|
76
|
+
return !!(typeof k == "string" || typeof k == "function" || k === r || k === s || g || k === o || k === l || k === u || F || k === p || B || L || D || typeof k == "object" && k !== null && (k.$$typeof === f || k.$$typeof === d || k.$$typeof === i || k.$$typeof === c || k.$$typeof === a || // This needs to include all possible module reference object
|
|
77
77
|
// types supported by any Flight configuration anywhere since
|
|
78
78
|
// we don't know which Flight build this will end up being used
|
|
79
79
|
// with.
|
|
80
|
-
|
|
80
|
+
k.$$typeof === v || k.getModuleId !== void 0));
|
|
81
81
|
}
|
|
82
|
-
function N(
|
|
83
|
-
var ie =
|
|
82
|
+
function N(k, G, X) {
|
|
83
|
+
var ie = k.displayName;
|
|
84
84
|
if (ie)
|
|
85
85
|
return ie;
|
|
86
86
|
var be = G.displayName || G.name || "";
|
|
87
87
|
return be !== "" ? X + "(" + be + ")" : X;
|
|
88
88
|
}
|
|
89
|
-
function O(
|
|
90
|
-
return
|
|
89
|
+
function O(k) {
|
|
90
|
+
return k.displayName || "Context";
|
|
91
91
|
}
|
|
92
|
-
function S(
|
|
93
|
-
if (
|
|
92
|
+
function S(k) {
|
|
93
|
+
if (k == null)
|
|
94
94
|
return null;
|
|
95
|
-
if (typeof
|
|
96
|
-
return
|
|
97
|
-
if (typeof
|
|
98
|
-
return
|
|
99
|
-
switch (
|
|
95
|
+
if (typeof k.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof k == "function")
|
|
96
|
+
return k.displayName || k.name || null;
|
|
97
|
+
if (typeof k == "string")
|
|
98
|
+
return k;
|
|
99
|
+
switch (k) {
|
|
100
100
|
case r:
|
|
101
101
|
return "Fragment";
|
|
102
102
|
case n:
|
|
@@ -110,21 +110,21 @@ function Nm() {
|
|
|
110
110
|
case u:
|
|
111
111
|
return "SuspenseList";
|
|
112
112
|
}
|
|
113
|
-
if (typeof
|
|
114
|
-
switch (
|
|
113
|
+
if (typeof k == "object")
|
|
114
|
+
switch (k.$$typeof) {
|
|
115
115
|
case c:
|
|
116
|
-
var G =
|
|
116
|
+
var G = k;
|
|
117
117
|
return O(G) + ".Consumer";
|
|
118
118
|
case i:
|
|
119
|
-
var X =
|
|
119
|
+
var X = k;
|
|
120
120
|
return O(X._context) + ".Provider";
|
|
121
121
|
case a:
|
|
122
|
-
return N(
|
|
122
|
+
return N(k, k.render, "ForwardRef");
|
|
123
123
|
case d:
|
|
124
|
-
var ie =
|
|
125
|
-
return ie !== null ? ie : S(
|
|
124
|
+
var ie = k.displayName || null;
|
|
125
|
+
return ie !== null ? ie : S(k.type) || "Memo";
|
|
126
126
|
case f: {
|
|
127
|
-
var be =
|
|
127
|
+
var be = k, we = be._payload, he = be._init;
|
|
128
128
|
try {
|
|
129
129
|
return S(he(we));
|
|
130
130
|
} catch {
|
|
@@ -134,28 +134,28 @@ function Nm() {
|
|
|
134
134
|
}
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
|
-
var E = Object.assign, x = 0, T, R, b, I,
|
|
137
|
+
var E = Object.assign, x = 0, T, R, b, I, M, _, j;
|
|
138
138
|
function z() {
|
|
139
139
|
}
|
|
140
140
|
z.__reactDisabledLog = !0;
|
|
141
141
|
function K() {
|
|
142
142
|
{
|
|
143
143
|
if (x === 0) {
|
|
144
|
-
T = console.log, R = console.info, b = console.warn, I = console.error,
|
|
145
|
-
var
|
|
144
|
+
T = console.log, R = console.info, b = console.warn, I = console.error, M = console.group, _ = console.groupCollapsed, j = console.groupEnd;
|
|
145
|
+
var k = {
|
|
146
146
|
configurable: !0,
|
|
147
147
|
enumerable: !0,
|
|
148
148
|
value: z,
|
|
149
149
|
writable: !0
|
|
150
150
|
};
|
|
151
151
|
Object.defineProperties(console, {
|
|
152
|
-
info:
|
|
153
|
-
log:
|
|
154
|
-
warn:
|
|
155
|
-
error:
|
|
156
|
-
group:
|
|
157
|
-
groupCollapsed:
|
|
158
|
-
groupEnd:
|
|
152
|
+
info: k,
|
|
153
|
+
log: k,
|
|
154
|
+
warn: k,
|
|
155
|
+
error: k,
|
|
156
|
+
group: k,
|
|
157
|
+
groupCollapsed: k,
|
|
158
|
+
groupEnd: k
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
x++;
|
|
@@ -164,31 +164,31 @@ function Nm() {
|
|
|
164
164
|
function H() {
|
|
165
165
|
{
|
|
166
166
|
if (x--, x === 0) {
|
|
167
|
-
var
|
|
167
|
+
var k = {
|
|
168
168
|
configurable: !0,
|
|
169
169
|
enumerable: !0,
|
|
170
170
|
writable: !0
|
|
171
171
|
};
|
|
172
172
|
Object.defineProperties(console, {
|
|
173
|
-
log: E({},
|
|
173
|
+
log: E({}, k, {
|
|
174
174
|
value: T
|
|
175
175
|
}),
|
|
176
|
-
info: E({},
|
|
176
|
+
info: E({}, k, {
|
|
177
177
|
value: R
|
|
178
178
|
}),
|
|
179
|
-
warn: E({},
|
|
179
|
+
warn: E({}, k, {
|
|
180
180
|
value: b
|
|
181
181
|
}),
|
|
182
|
-
error: E({},
|
|
182
|
+
error: E({}, k, {
|
|
183
183
|
value: I
|
|
184
184
|
}),
|
|
185
|
-
group: E({},
|
|
186
|
-
value:
|
|
185
|
+
group: E({}, k, {
|
|
186
|
+
value: M
|
|
187
187
|
}),
|
|
188
|
-
groupCollapsed: E({},
|
|
188
|
+
groupCollapsed: E({}, k, {
|
|
189
189
|
value: _
|
|
190
190
|
}),
|
|
191
|
-
groupEnd: E({},
|
|
191
|
+
groupEnd: E({}, k, {
|
|
192
192
|
value: j
|
|
193
193
|
})
|
|
194
194
|
});
|
|
@@ -197,7 +197,7 @@ function Nm() {
|
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
var q = $.ReactCurrentDispatcher, V;
|
|
200
|
-
function te(
|
|
200
|
+
function te(k, G, X) {
|
|
201
201
|
{
|
|
202
202
|
if (V === void 0)
|
|
203
203
|
try {
|
|
@@ -207,7 +207,7 @@ function Nm() {
|
|
|
207
207
|
V = ie && ie[1] || "";
|
|
208
208
|
}
|
|
209
209
|
return `
|
|
210
|
-
` + V +
|
|
210
|
+
` + V + k;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
var oe = !1, de;
|
|
@@ -215,11 +215,11 @@ function Nm() {
|
|
|
215
215
|
var Re = typeof WeakMap == "function" ? WeakMap : Map;
|
|
216
216
|
de = new Re();
|
|
217
217
|
}
|
|
218
|
-
function je(
|
|
219
|
-
if (!
|
|
218
|
+
function je(k, G) {
|
|
219
|
+
if (!k || oe)
|
|
220
220
|
return "";
|
|
221
221
|
{
|
|
222
|
-
var X = de.get(
|
|
222
|
+
var X = de.get(k);
|
|
223
223
|
if (X !== void 0)
|
|
224
224
|
return X;
|
|
225
225
|
}
|
|
@@ -244,14 +244,14 @@ function Nm() {
|
|
|
244
244
|
} catch (Ve) {
|
|
245
245
|
ie = Ve;
|
|
246
246
|
}
|
|
247
|
-
Reflect.construct(
|
|
247
|
+
Reflect.construct(k, [], he);
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
250
|
he.call();
|
|
251
251
|
} catch (Ve) {
|
|
252
252
|
ie = Ve;
|
|
253
253
|
}
|
|
254
|
-
|
|
254
|
+
k.call(he.prototype);
|
|
255
255
|
}
|
|
256
256
|
} else {
|
|
257
257
|
try {
|
|
@@ -259,7 +259,7 @@ function Nm() {
|
|
|
259
259
|
} catch (Ve) {
|
|
260
260
|
ie = Ve;
|
|
261
261
|
}
|
|
262
|
-
|
|
262
|
+
k();
|
|
263
263
|
}
|
|
264
264
|
} catch (Ve) {
|
|
265
265
|
if (Ve && ie && typeof Ve.stack == "string") {
|
|
@@ -274,7 +274,7 @@ function Nm() {
|
|
|
274
274
|
if (Oe--, Ne--, Ne < 0 || fe[Oe] !== Ue[Ne]) {
|
|
275
275
|
var st = `
|
|
276
276
|
` + fe[Oe].replace(" at new ", " at ");
|
|
277
|
-
return
|
|
277
|
+
return k.displayName && st.includes("<anonymous>") && (st = st.replace("<anonymous>", k.displayName)), typeof k == "function" && de.set(k, st), st;
|
|
278
278
|
}
|
|
279
279
|
while (Oe >= 1 && Ne >= 0);
|
|
280
280
|
break;
|
|
@@ -283,37 +283,37 @@ function Nm() {
|
|
|
283
283
|
} finally {
|
|
284
284
|
oe = !1, q.current = we, H(), Error.prepareStackTrace = be;
|
|
285
285
|
}
|
|
286
|
-
var nr =
|
|
287
|
-
return typeof
|
|
286
|
+
var nr = k ? k.displayName || k.name : "", Nn = nr ? te(nr) : "";
|
|
287
|
+
return typeof k == "function" && de.set(k, Nn), Nn;
|
|
288
288
|
}
|
|
289
|
-
function Y(
|
|
290
|
-
return je(
|
|
289
|
+
function Y(k, G, X) {
|
|
290
|
+
return je(k, !1);
|
|
291
291
|
}
|
|
292
|
-
function ne(
|
|
293
|
-
var G =
|
|
292
|
+
function ne(k) {
|
|
293
|
+
var G = k.prototype;
|
|
294
294
|
return !!(G && G.isReactComponent);
|
|
295
295
|
}
|
|
296
|
-
function Q(
|
|
297
|
-
if (
|
|
296
|
+
function Q(k, G, X) {
|
|
297
|
+
if (k == null)
|
|
298
298
|
return "";
|
|
299
|
-
if (typeof
|
|
300
|
-
return je(
|
|
301
|
-
if (typeof
|
|
302
|
-
return te(
|
|
303
|
-
switch (
|
|
299
|
+
if (typeof k == "function")
|
|
300
|
+
return je(k, ne(k));
|
|
301
|
+
if (typeof k == "string")
|
|
302
|
+
return te(k);
|
|
303
|
+
switch (k) {
|
|
304
304
|
case l:
|
|
305
305
|
return te("Suspense");
|
|
306
306
|
case u:
|
|
307
307
|
return te("SuspenseList");
|
|
308
308
|
}
|
|
309
|
-
if (typeof
|
|
310
|
-
switch (
|
|
309
|
+
if (typeof k == "object")
|
|
310
|
+
switch (k.$$typeof) {
|
|
311
311
|
case a:
|
|
312
|
-
return Y(
|
|
312
|
+
return Y(k.render);
|
|
313
313
|
case d:
|
|
314
|
-
return Q(
|
|
314
|
+
return Q(k.type, G, X);
|
|
315
315
|
case f: {
|
|
316
|
-
var ie =
|
|
316
|
+
var ie = k, be = ie._payload, we = ie._init;
|
|
317
317
|
try {
|
|
318
318
|
return Q(we(be), G, X);
|
|
319
319
|
} catch {
|
|
@@ -323,25 +323,25 @@ function Nm() {
|
|
|
323
323
|
return "";
|
|
324
324
|
}
|
|
325
325
|
var ye = Object.prototype.hasOwnProperty, me = {}, Rn = $.ReactDebugCurrentFrame;
|
|
326
|
-
function tt(
|
|
327
|
-
if (
|
|
328
|
-
var G =
|
|
326
|
+
function tt(k) {
|
|
327
|
+
if (k) {
|
|
328
|
+
var G = k._owner, X = Q(k.type, k._source, G ? G.type : null);
|
|
329
329
|
Rn.setExtraStackFrame(X);
|
|
330
330
|
} else
|
|
331
331
|
Rn.setExtraStackFrame(null);
|
|
332
332
|
}
|
|
333
|
-
function On(
|
|
333
|
+
function On(k, G, X, ie, be) {
|
|
334
334
|
{
|
|
335
335
|
var we = Function.call.bind(ye);
|
|
336
|
-
for (var he in
|
|
337
|
-
if (we(
|
|
336
|
+
for (var he in k)
|
|
337
|
+
if (we(k, he)) {
|
|
338
338
|
var fe = void 0;
|
|
339
339
|
try {
|
|
340
|
-
if (typeof
|
|
341
|
-
var Ue = Error((ie || "React class") + ": " + X + " type `" + he + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
|
340
|
+
if (typeof k[he] != "function") {
|
|
341
|
+
var Ue = Error((ie || "React class") + ": " + X + " type `" + he + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof k[he] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
342
342
|
throw Ue.name = "Invariant Violation", Ue;
|
|
343
343
|
}
|
|
344
|
-
fe =
|
|
344
|
+
fe = k[he](G, he, ie, X, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
345
345
|
} catch (Oe) {
|
|
346
346
|
fe = Oe;
|
|
347
347
|
}
|
|
@@ -350,28 +350,28 @@ function Nm() {
|
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
var Uo = Array.isArray;
|
|
353
|
-
function ai(
|
|
354
|
-
return Uo(
|
|
353
|
+
function ai(k) {
|
|
354
|
+
return Uo(k);
|
|
355
355
|
}
|
|
356
|
-
function nm(
|
|
356
|
+
function nm(k) {
|
|
357
357
|
{
|
|
358
|
-
var G = typeof Symbol == "function" && Symbol.toStringTag, X = G &&
|
|
358
|
+
var G = typeof Symbol == "function" && Symbol.toStringTag, X = G && k[Symbol.toStringTag] || k.constructor.name || "Object";
|
|
359
359
|
return X;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
function rm(
|
|
362
|
+
function rm(k) {
|
|
363
363
|
try {
|
|
364
|
-
return El(
|
|
364
|
+
return El(k), !1;
|
|
365
365
|
} catch {
|
|
366
366
|
return !0;
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
function El(
|
|
370
|
-
return "" +
|
|
369
|
+
function El(k) {
|
|
370
|
+
return "" + k;
|
|
371
371
|
}
|
|
372
|
-
function Sl(
|
|
373
|
-
if (rm(
|
|
374
|
-
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nm(
|
|
372
|
+
function Sl(k) {
|
|
373
|
+
if (rm(k))
|
|
374
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nm(k)), El(k);
|
|
375
375
|
}
|
|
376
376
|
var Pl = $.ReactCurrentOwner, om = {
|
|
377
377
|
key: !0,
|
|
@@ -379,53 +379,53 @@ function Nm() {
|
|
|
379
379
|
__self: !0,
|
|
380
380
|
__source: !0
|
|
381
381
|
}, Al, $l;
|
|
382
|
-
function sm(
|
|
383
|
-
if (ye.call(
|
|
384
|
-
var G = Object.getOwnPropertyDescriptor(
|
|
382
|
+
function sm(k) {
|
|
383
|
+
if (ye.call(k, "ref")) {
|
|
384
|
+
var G = Object.getOwnPropertyDescriptor(k, "ref").get;
|
|
385
385
|
if (G && G.isReactWarning)
|
|
386
386
|
return !1;
|
|
387
387
|
}
|
|
388
|
-
return
|
|
388
|
+
return k.ref !== void 0;
|
|
389
389
|
}
|
|
390
|
-
function im(
|
|
391
|
-
if (ye.call(
|
|
392
|
-
var G = Object.getOwnPropertyDescriptor(
|
|
390
|
+
function im(k) {
|
|
391
|
+
if (ye.call(k, "key")) {
|
|
392
|
+
var G = Object.getOwnPropertyDescriptor(k, "key").get;
|
|
393
393
|
if (G && G.isReactWarning)
|
|
394
394
|
return !1;
|
|
395
395
|
}
|
|
396
|
-
return
|
|
396
|
+
return k.key !== void 0;
|
|
397
397
|
}
|
|
398
|
-
function am(
|
|
399
|
-
typeof
|
|
398
|
+
function am(k, G) {
|
|
399
|
+
typeof k.ref == "string" && Pl.current;
|
|
400
400
|
}
|
|
401
|
-
function cm(
|
|
401
|
+
function cm(k, G) {
|
|
402
402
|
{
|
|
403
403
|
var X = function() {
|
|
404
404
|
Al || (Al = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", G));
|
|
405
405
|
};
|
|
406
|
-
X.isReactWarning = !0, Object.defineProperty(
|
|
406
|
+
X.isReactWarning = !0, Object.defineProperty(k, "key", {
|
|
407
407
|
get: X,
|
|
408
408
|
configurable: !0
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
function lm(
|
|
412
|
+
function lm(k, G) {
|
|
413
413
|
{
|
|
414
414
|
var X = function() {
|
|
415
415
|
$l || ($l = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", G));
|
|
416
416
|
};
|
|
417
|
-
X.isReactWarning = !0, Object.defineProperty(
|
|
417
|
+
X.isReactWarning = !0, Object.defineProperty(k, "ref", {
|
|
418
418
|
get: X,
|
|
419
419
|
configurable: !0
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
var um = function(
|
|
423
|
+
var um = function(k, G, X, ie, be, we, he) {
|
|
424
424
|
var fe = {
|
|
425
425
|
// This tag allows us to uniquely identify this as a React Element
|
|
426
426
|
$$typeof: t,
|
|
427
427
|
// Built-in properties that belong on the element
|
|
428
|
-
type:
|
|
428
|
+
type: k,
|
|
429
429
|
key: G,
|
|
430
430
|
ref: X,
|
|
431
431
|
props: he,
|
|
@@ -449,58 +449,58 @@ function Nm() {
|
|
|
449
449
|
value: be
|
|
450
450
|
}), Object.freeze && (Object.freeze(fe.props), Object.freeze(fe)), fe;
|
|
451
451
|
};
|
|
452
|
-
function fm(
|
|
452
|
+
function fm(k, G, X, ie, be) {
|
|
453
453
|
{
|
|
454
454
|
var we, he = {}, fe = null, Ue = null;
|
|
455
455
|
X !== void 0 && (Sl(X), fe = "" + X), im(G) && (Sl(G.key), fe = "" + G.key), sm(G) && (Ue = G.ref, am(G, be));
|
|
456
456
|
for (we in G)
|
|
457
457
|
ye.call(G, we) && !om.hasOwnProperty(we) && (he[we] = G[we]);
|
|
458
|
-
if (
|
|
459
|
-
var Oe =
|
|
458
|
+
if (k && k.defaultProps) {
|
|
459
|
+
var Oe = k.defaultProps;
|
|
460
460
|
for (we in Oe)
|
|
461
461
|
he[we] === void 0 && (he[we] = Oe[we]);
|
|
462
462
|
}
|
|
463
463
|
if (fe || Ue) {
|
|
464
|
-
var Ne = typeof
|
|
464
|
+
var Ne = typeof k == "function" ? k.displayName || k.name || "Unknown" : k;
|
|
465
465
|
fe && cm(he, Ne), Ue && lm(he, Ne);
|
|
466
466
|
}
|
|
467
|
-
return um(
|
|
467
|
+
return um(k, fe, Ue, be, ie, Pl.current, he);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
var ci = $.ReactCurrentOwner, Tl = $.ReactDebugCurrentFrame;
|
|
471
|
-
function tr(
|
|
472
|
-
if (
|
|
473
|
-
var G =
|
|
471
|
+
function tr(k) {
|
|
472
|
+
if (k) {
|
|
473
|
+
var G = k._owner, X = Q(k.type, k._source, G ? G.type : null);
|
|
474
474
|
Tl.setExtraStackFrame(X);
|
|
475
475
|
} else
|
|
476
476
|
Tl.setExtraStackFrame(null);
|
|
477
477
|
}
|
|
478
478
|
var li;
|
|
479
479
|
li = !1;
|
|
480
|
-
function ui(
|
|
481
|
-
return typeof
|
|
480
|
+
function ui(k) {
|
|
481
|
+
return typeof k == "object" && k !== null && k.$$typeof === t;
|
|
482
482
|
}
|
|
483
483
|
function Rl() {
|
|
484
484
|
{
|
|
485
485
|
if (ci.current) {
|
|
486
|
-
var
|
|
487
|
-
if (
|
|
486
|
+
var k = S(ci.current.type);
|
|
487
|
+
if (k)
|
|
488
488
|
return `
|
|
489
489
|
|
|
490
|
-
Check the render method of \`` +
|
|
490
|
+
Check the render method of \`` + k + "`.";
|
|
491
491
|
}
|
|
492
492
|
return "";
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
function dm(
|
|
495
|
+
function dm(k) {
|
|
496
496
|
return "";
|
|
497
497
|
}
|
|
498
498
|
var Ol = {};
|
|
499
|
-
function pm(
|
|
499
|
+
function pm(k) {
|
|
500
500
|
{
|
|
501
501
|
var G = Rl();
|
|
502
502
|
if (!G) {
|
|
503
|
-
var X = typeof
|
|
503
|
+
var X = typeof k == "string" ? k : k.displayName || k.name;
|
|
504
504
|
X && (G = `
|
|
505
505
|
|
|
506
506
|
Check the top-level render call using <` + X + ">.");
|
|
@@ -508,41 +508,41 @@ Check the top-level render call using <` + X + ">.");
|
|
|
508
508
|
return G;
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
|
-
function Nl(
|
|
511
|
+
function Nl(k, G) {
|
|
512
512
|
{
|
|
513
|
-
if (!
|
|
513
|
+
if (!k._store || k._store.validated || k.key != null)
|
|
514
514
|
return;
|
|
515
|
-
|
|
515
|
+
k._store.validated = !0;
|
|
516
516
|
var X = pm(G);
|
|
517
517
|
if (Ol[X])
|
|
518
518
|
return;
|
|
519
519
|
Ol[X] = !0;
|
|
520
520
|
var ie = "";
|
|
521
|
-
|
|
521
|
+
k && k._owner && k._owner !== ci.current && (ie = " It was passed a child from " + S(k._owner.type) + "."), tr(k), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', X, ie), tr(null);
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
function Il(
|
|
524
|
+
function Il(k, G) {
|
|
525
525
|
{
|
|
526
|
-
if (typeof
|
|
526
|
+
if (typeof k != "object")
|
|
527
527
|
return;
|
|
528
|
-
if (ai(
|
|
529
|
-
for (var X = 0; X <
|
|
530
|
-
var ie =
|
|
528
|
+
if (ai(k))
|
|
529
|
+
for (var X = 0; X < k.length; X++) {
|
|
530
|
+
var ie = k[X];
|
|
531
531
|
ui(ie) && Nl(ie, G);
|
|
532
532
|
}
|
|
533
|
-
else if (ui(
|
|
534
|
-
|
|
535
|
-
else if (
|
|
536
|
-
var be = w(
|
|
537
|
-
if (typeof be == "function" && be !==
|
|
538
|
-
for (var we = be.call(
|
|
533
|
+
else if (ui(k))
|
|
534
|
+
k._store && (k._store.validated = !0);
|
|
535
|
+
else if (k) {
|
|
536
|
+
var be = w(k);
|
|
537
|
+
if (typeof be == "function" && be !== k.entries)
|
|
538
|
+
for (var we = be.call(k), he; !(he = we.next()).done; )
|
|
539
539
|
ui(he.value) && Nl(he.value, G);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
function hm(
|
|
543
|
+
function hm(k) {
|
|
544
544
|
{
|
|
545
|
-
var G =
|
|
545
|
+
var G = k.type;
|
|
546
546
|
if (G == null || typeof G == "string")
|
|
547
547
|
return;
|
|
548
548
|
var X;
|
|
@@ -556,7 +556,7 @@ Check the top-level render call using <` + X + ">.");
|
|
|
556
556
|
return;
|
|
557
557
|
if (X) {
|
|
558
558
|
var ie = S(G);
|
|
559
|
-
On(X,
|
|
559
|
+
On(X, k.props, "prop", ie, k);
|
|
560
560
|
} else if (G.PropTypes !== void 0 && !li) {
|
|
561
561
|
li = !0;
|
|
562
562
|
var be = S(G);
|
|
@@ -565,31 +565,31 @@ Check the top-level render call using <` + X + ">.");
|
|
|
565
565
|
typeof G.getDefaultProps == "function" && !G.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
function mm(
|
|
568
|
+
function mm(k) {
|
|
569
569
|
{
|
|
570
|
-
for (var G = Object.keys(
|
|
570
|
+
for (var G = Object.keys(k.props), X = 0; X < G.length; X++) {
|
|
571
571
|
var ie = G[X];
|
|
572
572
|
if (ie !== "children" && ie !== "key") {
|
|
573
|
-
tr(
|
|
573
|
+
tr(k), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ie), tr(null);
|
|
574
574
|
break;
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
|
|
577
|
+
k.ref !== null && (tr(k), y("Invalid attribute `ref` supplied to `React.Fragment`."), tr(null));
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
var Cl = {};
|
|
581
|
-
function Bl(
|
|
581
|
+
function Bl(k, G, X, ie, be, we) {
|
|
582
582
|
{
|
|
583
|
-
var he = P(
|
|
583
|
+
var he = P(k);
|
|
584
584
|
if (!he) {
|
|
585
585
|
var fe = "";
|
|
586
|
-
(
|
|
586
|
+
(k === void 0 || typeof k == "object" && k !== null && Object.keys(k).length === 0) && (fe += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
587
587
|
var Ue = dm();
|
|
588
588
|
Ue ? fe += Ue : fe += Rl();
|
|
589
589
|
var Oe;
|
|
590
|
-
|
|
590
|
+
k === null ? Oe = "null" : ai(k) ? Oe = "array" : k !== void 0 && k.$$typeof === t ? (Oe = "<" + (S(k.type) || "Unknown") + " />", fe = " Did you accidentally export a JSX literal instead of a component?") : Oe = typeof k, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Oe, fe);
|
|
591
591
|
}
|
|
592
|
-
var Ne = fm(
|
|
592
|
+
var Ne = fm(k, G, X, be, we);
|
|
593
593
|
if (Ne == null)
|
|
594
594
|
return Ne;
|
|
595
595
|
if (he) {
|
|
@@ -598,15 +598,15 @@ Check the top-level render call using <` + X + ">.");
|
|
|
598
598
|
if (ie)
|
|
599
599
|
if (ai(st)) {
|
|
600
600
|
for (var nr = 0; nr < st.length; nr++)
|
|
601
|
-
Il(st[nr],
|
|
601
|
+
Il(st[nr], k);
|
|
602
602
|
Object.freeze && Object.freeze(st);
|
|
603
603
|
} else
|
|
604
604
|
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
605
605
|
else
|
|
606
|
-
Il(st,
|
|
606
|
+
Il(st, k);
|
|
607
607
|
}
|
|
608
608
|
if (ye.call(G, "key")) {
|
|
609
|
-
var Nn = S(
|
|
609
|
+
var Nn = S(k), Ve = Object.keys(G).filter(function(xm) {
|
|
610
610
|
return xm !== "key";
|
|
611
611
|
}), fi = Ve.length > 0 ? "{key: someKey, " + Ve.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
612
612
|
if (!Cl[Nn + fi]) {
|
|
@@ -619,14 +619,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
619
619
|
<%s key={someKey} {...props} />`, fi, Nn, vm, Nn), Cl[Nn + fi] = !0;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
return
|
|
622
|
+
return k === r ? mm(Ne) : hm(Ne), Ne;
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
-
function gm(
|
|
626
|
-
return Bl(
|
|
625
|
+
function gm(k, G, X) {
|
|
626
|
+
return Bl(k, G, X, !0);
|
|
627
627
|
}
|
|
628
|
-
function bm(
|
|
629
|
-
return Bl(
|
|
628
|
+
function bm(k, G, X) {
|
|
629
|
+
return Bl(k, G, X, !1);
|
|
630
630
|
}
|
|
631
631
|
var ym = bm, wm = gm;
|
|
632
632
|
Fr.Fragment = r, Fr.jsx = ym, Fr.jsxs = wm;
|
|
@@ -854,7 +854,7 @@ const Im = {
|
|
|
854
854
|
poolBalance: "Баланс пула",
|
|
855
855
|
poolBalanceInsufficientTip: "Сумма вывода превышает баланс пула средств, и операция не может быть выполнена. Пожалуйста, выберите опцию с достаточным балансом пула средств."
|
|
856
856
|
}
|
|
857
|
-
},
|
|
857
|
+
}, km = {
|
|
858
858
|
// 充值相關
|
|
859
859
|
deposit: {
|
|
860
860
|
title: "充值",
|
|
@@ -909,39 +909,39 @@ const Im = {
|
|
|
909
909
|
poolBalance: "資金池餘額",
|
|
910
910
|
poolBalanceInsufficientTip: "提現金額大於資金池餘額,無法進行提現。請選擇資金池餘額充足的選項。"
|
|
911
911
|
}
|
|
912
|
-
},
|
|
912
|
+
}, kf = [
|
|
913
913
|
"en-US",
|
|
914
914
|
"ja-JP",
|
|
915
915
|
"ru-RU",
|
|
916
916
|
"zh-CN",
|
|
917
917
|
"zh-TW"
|
|
918
|
-
],
|
|
918
|
+
], Ml = {
|
|
919
919
|
"en-US": Cm,
|
|
920
920
|
"ja-JP": Bm,
|
|
921
921
|
"ru-RU": Lm,
|
|
922
922
|
"zh-CN": Im,
|
|
923
|
-
"zh-TW":
|
|
923
|
+
"zh-TW": km
|
|
924
924
|
}, Qi = "en-US", cA = {
|
|
925
925
|
"en-US": "English",
|
|
926
926
|
"zh-CN": "简体中文",
|
|
927
927
|
"zh-TW": "繁體中文",
|
|
928
928
|
"ja-JP": "日本語",
|
|
929
929
|
"ru-RU": "Русский"
|
|
930
|
-
},
|
|
930
|
+
}, Mm = (e) => kf.includes(e) ? Ml[e] : Ml[Qi], Dm = (e) => kf.includes(e), Mf = Fe(null), lA = ({
|
|
931
931
|
config: e,
|
|
932
932
|
children: t
|
|
933
933
|
}) => {
|
|
934
934
|
const n = J(() => {
|
|
935
|
-
const r = e.locale || Qi, o = Dm(r) ? r : Qi, s =
|
|
935
|
+
const r = e.locale || Qi, o = Dm(r) ? r : Qi, s = Mm(o);
|
|
936
936
|
return {
|
|
937
937
|
...e,
|
|
938
938
|
currentLocale: o,
|
|
939
939
|
translations: s
|
|
940
940
|
};
|
|
941
941
|
}, [e]);
|
|
942
|
-
return /* @__PURE__ */ C.jsx(
|
|
942
|
+
return /* @__PURE__ */ C.jsx(Mf.Provider, { value: n, children: t });
|
|
943
943
|
}, Fm = () => {
|
|
944
|
-
const e = Pe(
|
|
944
|
+
const e = Pe(Mf);
|
|
945
945
|
if (!e)
|
|
946
946
|
throw new Error("useComponentConfig must be used within ComponentProvider");
|
|
947
947
|
return e;
|
|
@@ -1137,15 +1137,15 @@ function Df(e) {
|
|
|
1137
1137
|
return x.reverse();
|
|
1138
1138
|
}
|
|
1139
1139
|
return function(P, N, O, S, E) {
|
|
1140
|
-
var x, T, R, b, I,
|
|
1141
|
-
for (z >= 0 && (b = h, h = 0, P = P.replace(".", ""), j = new y(N),
|
|
1142
|
-
Zt(it(
|
|
1140
|
+
var x, T, R, b, I, M, _, j, z = P.indexOf("."), K = i, H = c;
|
|
1141
|
+
for (z >= 0 && (b = h, h = 0, P = P.replace(".", ""), j = new y(N), M = j.pow(P.length - z), h = b, j.c = v(
|
|
1142
|
+
Zt(it(M.c), M.e, "0"),
|
|
1143
1143
|
10,
|
|
1144
1144
|
O,
|
|
1145
1145
|
g
|
|
1146
1146
|
), j.e = j.c.length), _ = v(P, N, O, E ? (x = w, g) : (x = g, w)), R = b = _.length; _[--b] == 0; _.pop()) ;
|
|
1147
1147
|
if (!_[0]) return x.charAt(0);
|
|
1148
|
-
if (z < 0 ? --R : (
|
|
1148
|
+
if (z < 0 ? --R : (M.c = _, M.e = R, M.s = S, M = t(M, j, K, H, O), _ = M.c, I = M.r, R = M.e), T = R + K + 1, z = _[T], b = O / 2, I = I || T < 0 || _[T + 1] != null, I = H < 4 ? (z != null || I) && (H == 0 || H == (M.s < 0 ? 3 : 2)) : z > b || z == b && (H == 4 || I || H == 6 && _[T - 1] & 1 || H == (M.s < 0 ? 8 : 7)), T < 1 || !_[0])
|
|
1149
1149
|
P = I ? Zt(x.charAt(1), -K, x.charAt(0)) : x.charAt(0);
|
|
1150
1150
|
else {
|
|
1151
1151
|
if (_.length = T, I)
|
|
@@ -1159,9 +1159,9 @@ function Df(e) {
|
|
|
1159
1159
|
};
|
|
1160
1160
|
}(), t = /* @__PURE__ */ function() {
|
|
1161
1161
|
function g(N, O, S) {
|
|
1162
|
-
var E, x, T, R, b = 0, I = N.length,
|
|
1162
|
+
var E, x, T, R, b = 0, I = N.length, M = O % hn, _ = O / hn | 0;
|
|
1163
1163
|
for (N = N.slice(); I--; )
|
|
1164
|
-
T = N[I] % hn, R = N[I] / hn | 0, E = _ * T + R *
|
|
1164
|
+
T = N[I] % hn, R = N[I] / hn | 0, E = _ * T + R * M, x = M * T + E % hn * hn + b, b = (x / S | 0) + (E / hn | 0) + _ * R, N[I] = x % S;
|
|
1165
1165
|
return b && (N = [b].concat(N)), N;
|
|
1166
1166
|
}
|
|
1167
1167
|
function v(N, O, S, E) {
|
|
@@ -1182,7 +1182,7 @@ function Df(e) {
|
|
|
1182
1182
|
for (; !N[0] && N.length > 1; N.splice(0, 1)) ;
|
|
1183
1183
|
}
|
|
1184
1184
|
return function(N, O, S, E, x) {
|
|
1185
|
-
var T, R, b, I,
|
|
1185
|
+
var T, R, b, I, M, _, j, z, K, H, q, V, te, oe, de, Re, je, Y = N.s == O.s ? 1 : -1, ne = N.c, Q = O.c;
|
|
1186
1186
|
if (!ne || !ne[0] || !Q || !Q[0])
|
|
1187
1187
|
return new y(
|
|
1188
1188
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
@@ -1195,20 +1195,20 @@ function Df(e) {
|
|
|
1195
1195
|
if (Q[b] > (ne[b] || 0) && R--, Y < 0)
|
|
1196
1196
|
K.push(1), I = !0;
|
|
1197
1197
|
else {
|
|
1198
|
-
for (oe = ne.length, Re = Q.length, b = 0, Y += 2,
|
|
1198
|
+
for (oe = ne.length, Re = Q.length, b = 0, Y += 2, M = lt(x / (Q[0] + 1)), M > 1 && (Q = g(Q, M, x), ne = g(ne, M, x), Re = Q.length, oe = ne.length), te = Re, H = ne.slice(0, Re), q = H.length; q < Re; H[q++] = 0) ;
|
|
1199
1199
|
je = Q.slice(), je = [0].concat(je), de = Q[0], Q[1] >= x / 2 && de++;
|
|
1200
1200
|
do {
|
|
1201
|
-
if (
|
|
1202
|
-
if (V = H[0], Re != q && (V = V * x + (H[1] || 0)),
|
|
1203
|
-
for (
|
|
1204
|
-
|
|
1201
|
+
if (M = 0, T = v(Q, H, Re, q), T < 0) {
|
|
1202
|
+
if (V = H[0], Re != q && (V = V * x + (H[1] || 0)), M = lt(V / de), M > 1)
|
|
1203
|
+
for (M >= x && (M = x - 1), _ = g(Q, M, x), j = _.length, q = H.length; v(_, H, j, q) == 1; )
|
|
1204
|
+
M--, P(_, Re < j ? je : Q, j, x), j = _.length, T = 1;
|
|
1205
1205
|
else
|
|
1206
|
-
|
|
1206
|
+
M == 0 && (T = M = 1), _ = Q.slice(), j = _.length;
|
|
1207
1207
|
if (j < q && (_ = [0].concat(_)), P(H, _, q, x), q = H.length, T == -1)
|
|
1208
1208
|
for (; v(Q, H, Re, q) < 1; )
|
|
1209
|
-
|
|
1210
|
-
} else T === 0 && (
|
|
1211
|
-
K[b++] =
|
|
1209
|
+
M++, P(H, Re < q ? je : Q, q, x), q = H.length;
|
|
1210
|
+
} else T === 0 && (M++, H = [0]);
|
|
1211
|
+
K[b++] = M, H[0] ? H[q++] = ne[te] || 0 : (H = [ne[te]], q = 1);
|
|
1212
1212
|
} while ((te++ < oe || H[0] != null) && Y--);
|
|
1213
1213
|
I = H[0] != null, K[0] || K.splice(0, 1);
|
|
1214
1214
|
}
|
|
@@ -1251,8 +1251,8 @@ function Df(e) {
|
|
|
1251
1251
|
if (N.test(b))
|
|
1252
1252
|
S.s = isNaN(b) ? null : b < 0 ? -1 : 1;
|
|
1253
1253
|
else {
|
|
1254
|
-
if (!x && (b = b.replace(g, function(I,
|
|
1255
|
-
return R = (_ = _.toLowerCase()) == "x" ? 16 : _ == "b" ? 2 : 8, !T || T == R ?
|
|
1254
|
+
if (!x && (b = b.replace(g, function(I, M, _) {
|
|
1255
|
+
return R = (_ = _.toLowerCase()) == "x" ? 16 : _ == "b" ? 2 : 8, !T || T == R ? M : I;
|
|
1256
1256
|
}), T && (R = T, b = b.replace(v, "$1").replace(P, "0.$1")), E != b))
|
|
1257
1257
|
return new y(b, R);
|
|
1258
1258
|
if (y.DEBUG)
|
|
@@ -1263,12 +1263,12 @@ function Df(e) {
|
|
|
1263
1263
|
};
|
|
1264
1264
|
}();
|
|
1265
1265
|
function D(g, v, P, N) {
|
|
1266
|
-
var O, S, E, x, T, R, b, I = g.c,
|
|
1266
|
+
var O, S, E, x, T, R, b, I = g.c, M = hi;
|
|
1267
1267
|
if (I) {
|
|
1268
1268
|
e: {
|
|
1269
1269
|
for (O = 1, x = I[0]; x >= 10; x /= 10, O++) ;
|
|
1270
1270
|
if (S = v - O, S < 0)
|
|
1271
|
-
S += ae, E = v, T = I[R = 0], b = lt(T /
|
|
1271
|
+
S += ae, E = v, T = I[R = 0], b = lt(T / M[O - E - 1] % 10);
|
|
1272
1272
|
else if (R = di((S + 1) / ae), R >= I.length)
|
|
1273
1273
|
if (N) {
|
|
1274
1274
|
for (; I.length <= R; I.push(0)) ;
|
|
@@ -1277,15 +1277,15 @@ function Df(e) {
|
|
|
1277
1277
|
break e;
|
|
1278
1278
|
else {
|
|
1279
1279
|
for (T = x = I[R], O = 1; x >= 10; x /= 10, O++) ;
|
|
1280
|
-
S %= ae, E = S - ae + O, b = E < 0 ? 0 : lt(T /
|
|
1280
|
+
S %= ae, E = S - ae + O, b = E < 0 ? 0 : lt(T / M[O - E - 1] % 10);
|
|
1281
1281
|
}
|
|
1282
1282
|
if (N = N || v < 0 || // Are there any non-zero digits after the rounding digit?
|
|
1283
1283
|
// The expression n % pows10[d - j - 1] returns all digits of n to the right
|
|
1284
1284
|
// of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
|
|
1285
|
-
I[R + 1] != null || (E < 0 ? T : T %
|
|
1286
|
-
(S > 0 ? E > 0 ? T /
|
|
1287
|
-
return I.length = 0, N ? (v -= g.e + 1, I[0] =
|
|
1288
|
-
if (S == 0 ? (I.length = R, x = 1, R--) : (I.length = R + 1, x =
|
|
1285
|
+
I[R + 1] != null || (E < 0 ? T : T % M[O - E - 1]), N = P < 4 ? (b || N) && (P == 0 || P == (g.s < 0 ? 3 : 2)) : b > 5 || b == 5 && (P == 4 || N || P == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
1286
|
+
(S > 0 ? E > 0 ? T / M[O - E] : 0 : I[R - 1]) % 10 & 1 || P == (g.s < 0 ? 8 : 7)), v < 1 || !I[0])
|
|
1287
|
+
return I.length = 0, N ? (v -= g.e + 1, I[0] = M[(ae - v % ae) % ae], g.e = -v || 0) : I[0] = g.e = 0, g;
|
|
1288
|
+
if (S == 0 ? (I.length = R, x = 1, R--) : (I.length = R + 1, x = M[ae - S], I[R] = E > 0 ? lt(T / M[O - E] % M[E]) * x : 0), N)
|
|
1289
1289
|
for (; ; )
|
|
1290
1290
|
if (R == 0) {
|
|
1291
1291
|
for (S = 1, E = I[0]; E >= 10; E /= 10, S++) ;
|
|
@@ -1415,13 +1415,13 @@ function Df(e) {
|
|
|
1415
1415
|
var P, N, O = this;
|
|
1416
1416
|
return g = new y(g, v), !O.c || !g.s || g.c && !g.c[0] ? new y(NaN) : !g.c || O.c && !O.c[0] ? new y(O) : (p == 9 ? (N = g.s, g.s = 1, P = t(O, g, 0, 3), g.s = N, P.s *= N) : P = t(O, g, 0, p), g = O.minus(P.times(g)), !g.c[0] && p == 1 && (g.s = O.s), g);
|
|
1417
1417
|
}, o.multipliedBy = o.times = function(g, v) {
|
|
1418
|
-
var P, N, O, S, E, x, T, R, b, I,
|
|
1418
|
+
var P, N, O, S, E, x, T, R, b, I, M, _, j, z, K, H = this, q = H.c, V = (g = new y(g, v)).c;
|
|
1419
1419
|
if (!q || !V || !q[0] || !V[0])
|
|
1420
1420
|
return !H.s || !g.s || q && !q[0] && !V || V && !V[0] && !q ? g.c = g.e = g.s = null : (g.s *= H.s, !q || !V ? g.c = g.e = null : (g.c = [0], g.e = 0)), g;
|
|
1421
1421
|
for (N = ut(H.e / ae) + ut(g.e / ae), g.s *= H.s, T = q.length, I = V.length, T < I && (j = q, q = V, V = j, O = T, T = I, I = O), O = T + I, j = []; O--; j.push(0)) ;
|
|
1422
1422
|
for (z = vt, K = hn, O = I; --O >= 0; ) {
|
|
1423
|
-
for (P = 0,
|
|
1424
|
-
R = q[--E] % K, b = q[E] / K | 0, x = _ * R + b *
|
|
1423
|
+
for (P = 0, M = V[O] % K, _ = V[O] / K | 0, E = T, S = O + E; S > O; )
|
|
1424
|
+
R = q[--E] % K, b = q[E] / K | 0, x = _ * R + b * M, R = M * R + x % K * K + j[S] + P, P = (R / z | 0) + (x / K | 0) + _ * b, j[S--] = R % z;
|
|
1425
1425
|
j[S] = P;
|
|
1426
1426
|
}
|
|
1427
1427
|
return P ? ++N : j.splice(0, 1), L(g, j, N);
|
|
@@ -1487,10 +1487,10 @@ function Df(e) {
|
|
|
1487
1487
|
else if (typeof P != "object")
|
|
1488
1488
|
throw Error(Ge + "Argument not an object: " + P);
|
|
1489
1489
|
if (N = O.toFixed(g, v), O.c) {
|
|
1490
|
-
var S, E = N.split("."), x = +P.groupSize, T = +P.secondaryGroupSize, R = P.groupSeparator || "", b = E[0], I = E[1],
|
|
1490
|
+
var S, E = N.split("."), x = +P.groupSize, T = +P.secondaryGroupSize, R = P.groupSeparator || "", b = E[0], I = E[1], M = O.s < 0, _ = M ? b.slice(1) : b, j = _.length;
|
|
1491
1491
|
if (T && (S = x, x = T, T = S, j -= S), x > 0 && j > 0) {
|
|
1492
1492
|
for (S = j % x || x, b = _.substr(0, S); S < j; S += x) b += R + _.substr(S, x);
|
|
1493
|
-
T > 0 && (b += R + _.slice(S)),
|
|
1493
|
+
T > 0 && (b += R + _.slice(S)), M && (b = "-" + b);
|
|
1494
1494
|
}
|
|
1495
1495
|
N = I ? b + (P.decimalSeparator || "") + ((T = +P.fractionGroupSize) ? I.replace(
|
|
1496
1496
|
new RegExp("\\d{" + T + "}\\B", "g"),
|
|
@@ -1499,11 +1499,11 @@ function Df(e) {
|
|
|
1499
1499
|
}
|
|
1500
1500
|
return (P.prefix || "") + N + (P.suffix || "");
|
|
1501
1501
|
}, o.toFraction = function(g) {
|
|
1502
|
-
var v, P, N, O, S, E, x, T, R, b, I,
|
|
1502
|
+
var v, P, N, O, S, E, x, T, R, b, I, M, _ = this, j = _.c;
|
|
1503
1503
|
if (g != null && (x = new y(g), !x.isInteger() && (x.c || x.s !== 1) || x.lt(s)))
|
|
1504
1504
|
throw Error(Ge + "Argument " + (x.isInteger() ? "out of range: " : "not an integer: ") + F(x));
|
|
1505
1505
|
if (!j) return new y(_);
|
|
1506
|
-
for (v = new y(s), R = P = new y(s), N = T = new y(s),
|
|
1506
|
+
for (v = new y(s), R = P = new y(s), N = T = new y(s), M = it(j), S = v.e = M.length - _.e - 1, v.c[0] = hi[(E = S % ae) < 0 ? ae + E : E], g = !g || x.comparedTo(v) > 0 ? S > 0 ? v : R : x, E = d, d = 1 / 0, x = new y(M), T.c[0] = 0; b = t(x, v, 0, 1), O = P.plus(b.times(N)), O.comparedTo(g) != 1; )
|
|
1507
1507
|
P = N, N = O, R = T.plus(b.times(O = R)), T = O, v = x.minus(b.times(O = v)), x = O;
|
|
1508
1508
|
return O = t(g.minus(P), N, 0, 1), T = T.plus(O.times(R)), P = P.plus(O.times(N)), T.s = R.s = _.s, S = S * 2, I = t(R, N, S, c).minus(_).abs().comparedTo(
|
|
1509
1509
|
t(T, P, S, c).minus(_).abs()
|
|
@@ -2547,7 +2547,7 @@ class Lg extends W {
|
|
|
2547
2547
|
});
|
|
2548
2548
|
}
|
|
2549
2549
|
}
|
|
2550
|
-
let
|
|
2550
|
+
let kg = class extends W {
|
|
2551
2551
|
constructor({ expectedSize: t, givenSize: n }) {
|
|
2552
2552
|
super(`Expected bytes${t}, got bytes${n}.`, {
|
|
2553
2553
|
name: "BytesSizeMismatchError"
|
|
@@ -2601,7 +2601,7 @@ class Is extends W {
|
|
|
2601
2601
|
}), this.abiItem = t;
|
|
2602
2602
|
}
|
|
2603
2603
|
}
|
|
2604
|
-
class
|
|
2604
|
+
class Mg extends W {
|
|
2605
2605
|
constructor(t, { docsPath: n }) {
|
|
2606
2606
|
super([
|
|
2607
2607
|
`Type "${t}" is not a valid encoding type.`,
|
|
@@ -3065,11 +3065,11 @@ class fc extends uc {
|
|
|
3065
3065
|
}
|
|
3066
3066
|
}
|
|
3067
3067
|
const gb = (e, t, n) => fd(() => new fc(t, e, n)), bd = gb(1, 136, 256 / 8);
|
|
3068
|
-
function
|
|
3068
|
+
function Me(e, t) {
|
|
3069
3069
|
const n = t || "hex", r = bd(zt(e, { strict: !1 }) ? Or(e) : e);
|
|
3070
3070
|
return n === "bytes" ? r : on(r);
|
|
3071
3071
|
}
|
|
3072
|
-
const bb = (e) =>
|
|
3072
|
+
const bb = (e) => Me(Or(e));
|
|
3073
3073
|
function yb(e) {
|
|
3074
3074
|
return bb(e);
|
|
3075
3075
|
}
|
|
@@ -3138,10 +3138,10 @@ let En = class extends W {
|
|
|
3138
3138
|
}
|
|
3139
3139
|
};
|
|
3140
3140
|
const bi = /* @__PURE__ */ new dc(8192);
|
|
3141
|
-
function
|
|
3141
|
+
function ks(e, t) {
|
|
3142
3142
|
if (bi.has(`${e}.${t}`))
|
|
3143
3143
|
return bi.get(`${e}.${t}`);
|
|
3144
|
-
const n = e.substring(2).toLowerCase(), r =
|
|
3144
|
+
const n = e.substring(2).toLowerCase(), r = Me(jn(n), "bytes"), o = n.split("");
|
|
3145
3145
|
for (let i = 0; i < 40; i += 2)
|
|
3146
3146
|
r[i >> 1] >> 4 >= 8 && o[i] && (o[i] = o[i].toUpperCase()), (r[i >> 1] & 15) >= 8 && o[i + 1] && (o[i + 1] = o[i + 1].toUpperCase());
|
|
3147
3147
|
const s = `0x${o.join("")}`;
|
|
@@ -3150,14 +3150,14 @@ function Ms(e, t) {
|
|
|
3150
3150
|
function _n(e, t) {
|
|
3151
3151
|
if (!mt(e, { strict: !1 }))
|
|
3152
3152
|
throw new En({ address: e });
|
|
3153
|
-
return
|
|
3153
|
+
return ks(e, t);
|
|
3154
3154
|
}
|
|
3155
3155
|
const xb = /^0x[a-fA-F0-9]{40}$/, yi = /* @__PURE__ */ new dc(8192);
|
|
3156
3156
|
function mt(e, t) {
|
|
3157
3157
|
const { strict: n = !0 } = t ?? {}, r = `${e}.${n}`;
|
|
3158
3158
|
if (yi.has(r))
|
|
3159
3159
|
return yi.get(r);
|
|
3160
|
-
const o = xb.test(e) ? e.toLowerCase() === e ? !0 : n ?
|
|
3160
|
+
const o = xb.test(e) ? e.toLowerCase() === e ? !0 : n ? ks(e) === e : !0 : !1;
|
|
3161
3161
|
return yi.set(r, o), o;
|
|
3162
3162
|
}
|
|
3163
3163
|
function Wt(e) {
|
|
@@ -3253,7 +3253,7 @@ function pc({ param: e, value: t }) {
|
|
|
3253
3253
|
return Tb(t, { param: e });
|
|
3254
3254
|
if (e.type === "string")
|
|
3255
3255
|
return Nb(t);
|
|
3256
|
-
throw new
|
|
3256
|
+
throw new Mg(e.type, {
|
|
3257
3257
|
docsPath: "/docs/contract/encodeAbiParameters"
|
|
3258
3258
|
});
|
|
3259
3259
|
}
|
|
@@ -3479,12 +3479,12 @@ function Oo(e) {
|
|
|
3479
3479
|
}
|
|
3480
3480
|
function Xl({ param: e, value: t }) {
|
|
3481
3481
|
if (e.type === "string" || e.type === "bytes")
|
|
3482
|
-
return
|
|
3482
|
+
return Me(Or(t));
|
|
3483
3483
|
if (e.type === "tuple" || e.type.match(/^(.*)\[(\d+)?\]$/))
|
|
3484
3484
|
throw new jg(e.type);
|
|
3485
3485
|
return $n([e], [t]);
|
|
3486
3486
|
}
|
|
3487
|
-
function
|
|
3487
|
+
function Ms(e, { method: t }) {
|
|
3488
3488
|
var r, o;
|
|
3489
3489
|
const n = {};
|
|
3490
3490
|
return e.transport.type === "fallback" && ((o = (r = e.transport).onResponse) == null || o.call(r, ({ method: s, response: i, status: c, transport: a }) => {
|
|
@@ -3492,7 +3492,7 @@ function ks(e, { method: t }) {
|
|
|
3492
3492
|
})), (s) => n[s] || e.request;
|
|
3493
3493
|
}
|
|
3494
3494
|
async function Ad(e, t) {
|
|
3495
|
-
const { address: n, abi: r, args: o, eventName: s, fromBlock: i, strict: c, toBlock: a } = t, l =
|
|
3495
|
+
const { address: n, abi: r, args: o, eventName: s, fromBlock: i, strict: c, toBlock: a } = t, l = Ms(e, {
|
|
3496
3496
|
method: "eth_newFilter"
|
|
3497
3497
|
}), u = s ? Oo({
|
|
3498
3498
|
abi: r,
|
|
@@ -3596,7 +3596,7 @@ class Lb extends W {
|
|
|
3596
3596
|
super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`, { name: "RecursiveReadLimitExceededError" });
|
|
3597
3597
|
}
|
|
3598
3598
|
}
|
|
3599
|
-
const
|
|
3599
|
+
const kb = {
|
|
3600
3600
|
bytes: new Uint8Array(),
|
|
3601
3601
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
3602
3602
|
position: 0,
|
|
@@ -3719,10 +3719,10 @@ const Mb = {
|
|
|
3719
3719
|
}
|
|
3720
3720
|
};
|
|
3721
3721
|
function gc(e, { recursiveReadLimit: t = 8192 } = {}) {
|
|
3722
|
-
const n = Object.create(
|
|
3722
|
+
const n = Object.create(kb);
|
|
3723
3723
|
return n.bytes = e, n.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength), n.positionReadCount = /* @__PURE__ */ new Map(), n.recursiveReadLimit = t, n;
|
|
3724
3724
|
}
|
|
3725
|
-
function
|
|
3725
|
+
function Mb(e, t = {}) {
|
|
3726
3726
|
typeof t.size < "u" && Ot(e, { size: t.size });
|
|
3727
3727
|
const n = Ce(e, t);
|
|
3728
3728
|
return Ht(n, t);
|
|
@@ -3789,7 +3789,7 @@ function pr(e, t, { staticPosition: n }) {
|
|
|
3789
3789
|
const eu = 32, sa = 32;
|
|
3790
3790
|
function jb(e) {
|
|
3791
3791
|
const t = e.readBytes(32);
|
|
3792
|
-
return [
|
|
3792
|
+
return [ks(Ce(xd(t, -20))), 32];
|
|
3793
3793
|
}
|
|
3794
3794
|
function _b(e, t, { length: n, staticPosition: r }) {
|
|
3795
3795
|
if (!n) {
|
|
@@ -3847,7 +3847,7 @@ function zb(e, t, { staticPosition: n }) {
|
|
|
3847
3847
|
function Hb(e, t) {
|
|
3848
3848
|
const n = t.type.startsWith("int"), r = Number.parseInt(t.type.split("int")[1] || "256"), o = e.readBytes(32);
|
|
3849
3849
|
return [
|
|
3850
|
-
r > 48 ?
|
|
3850
|
+
r > 48 ? Mb(o, { signed: n }) : tn(o, { signed: n }),
|
|
3851
3851
|
32
|
|
3852
3852
|
];
|
|
3853
3853
|
}
|
|
@@ -4723,8 +4723,8 @@ function Pr(e, { abi: t, address: n, args: r, docsPath: o, functionName: s, send
|
|
|
4723
4723
|
});
|
|
4724
4724
|
}
|
|
4725
4725
|
function cy(e) {
|
|
4726
|
-
const t =
|
|
4727
|
-
return
|
|
4726
|
+
const t = Me(`0x${e.substring(4)}`).substring(26);
|
|
4727
|
+
return ks(`0x${t}`);
|
|
4728
4728
|
}
|
|
4729
4729
|
async function ly({ hash: e, signature: t }) {
|
|
4730
4730
|
const n = zt(e) ? e : on(e), { secp256k1: r } = await Promise.resolve().then(() => Zv);
|
|
@@ -4753,14 +4753,14 @@ async function Ld({ hash: e, signature: t }) {
|
|
|
4753
4753
|
return cy(await ly({ hash: e, signature: t }));
|
|
4754
4754
|
}
|
|
4755
4755
|
function uy(e, t = "hex") {
|
|
4756
|
-
const n =
|
|
4756
|
+
const n = kd(e), r = gc(new Uint8Array(n.length));
|
|
4757
4757
|
return n.encode(r), t === "hex" ? Ce(r.bytes) : r.bytes;
|
|
4758
4758
|
}
|
|
4759
|
-
function
|
|
4760
|
-
return Array.isArray(e) ? fy(e.map((t) =>
|
|
4759
|
+
function kd(e) {
|
|
4760
|
+
return Array.isArray(e) ? fy(e.map((t) => kd(t))) : dy(e);
|
|
4761
4761
|
}
|
|
4762
4762
|
function fy(e) {
|
|
4763
|
-
const t = e.reduce((o, s) => o + s.length, 0), n =
|
|
4763
|
+
const t = e.reduce((o, s) => o + s.length, 0), n = Md(t);
|
|
4764
4764
|
return {
|
|
4765
4765
|
length: t <= 55 ? 1 + t : 1 + n + t,
|
|
4766
4766
|
encode(o) {
|
|
@@ -4771,7 +4771,7 @@ function fy(e) {
|
|
|
4771
4771
|
};
|
|
4772
4772
|
}
|
|
4773
4773
|
function dy(e) {
|
|
4774
|
-
const t = typeof e == "string" ? Rt(e) : e, n =
|
|
4774
|
+
const t = typeof e == "string" ? Rt(e) : e, n = Md(t.length);
|
|
4775
4775
|
return {
|
|
4776
4776
|
length: t.length === 1 && t[0] < 128 ? 1 : t.length <= 55 ? 1 + t.length : 1 + n + t.length,
|
|
4777
4777
|
encode(o) {
|
|
@@ -4779,7 +4779,7 @@ function dy(e) {
|
|
|
4779
4779
|
}
|
|
4780
4780
|
};
|
|
4781
4781
|
}
|
|
4782
|
-
function
|
|
4782
|
+
function Md(e) {
|
|
4783
4783
|
if (e < 2 ** 8)
|
|
4784
4784
|
return 1;
|
|
4785
4785
|
if (e < 2 ** 16)
|
|
@@ -4791,7 +4791,7 @@ function kd(e) {
|
|
|
4791
4791
|
throw new W("Length is too large.");
|
|
4792
4792
|
}
|
|
4793
4793
|
function py(e) {
|
|
4794
|
-
const { chainId: t, nonce: n, to: r } = e, o = e.contractAddress ?? e.address, s =
|
|
4794
|
+
const { chainId: t, nonce: n, to: r } = e, o = e.contractAddress ?? e.address, s = Me(Nr([
|
|
4795
4795
|
"0x05",
|
|
4796
4796
|
uy([
|
|
4797
4797
|
t ? re(t) : "0x",
|
|
@@ -5234,7 +5234,7 @@ function Ud(e) {
|
|
|
5234
5234
|
totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
|
|
5235
5235
|
};
|
|
5236
5236
|
}
|
|
5237
|
-
async function
|
|
5237
|
+
async function Mt(e, { blockHash: t, blockNumber: n, blockTag: r = e.experimental_blockTag ?? "latest", includeTransactions: o } = {}) {
|
|
5238
5238
|
var l, u, d;
|
|
5239
5239
|
const s = o ?? !1, i = n !== void 0 ? re(n) : void 0;
|
|
5240
5240
|
let c = null;
|
|
@@ -5263,7 +5263,7 @@ async function zd(e, t) {
|
|
|
5263
5263
|
try {
|
|
5264
5264
|
const c = ((s = r == null ? void 0 : r.fees) == null ? void 0 : s.maxPriorityFeePerGas) ?? ((i = r == null ? void 0 : r.fees) == null ? void 0 : i.defaultPriorityFee);
|
|
5265
5265
|
if (typeof c == "function") {
|
|
5266
|
-
const l = n || await se(e,
|
|
5266
|
+
const l = n || await se(e, Mt, "getBlock")({}), u = await c({
|
|
5267
5267
|
block: l,
|
|
5268
5268
|
client: e,
|
|
5269
5269
|
request: o
|
|
@@ -5280,7 +5280,7 @@ async function zd(e, t) {
|
|
|
5280
5280
|
return Ht(a);
|
|
5281
5281
|
} catch {
|
|
5282
5282
|
const [c, a] = await Promise.all([
|
|
5283
|
-
n ? Promise.resolve(n) : se(e,
|
|
5283
|
+
n ? Promise.resolve(n) : se(e, Mt, "getBlock")({}),
|
|
5284
5284
|
se(e, Pc, "getGasPrice")({})
|
|
5285
5285
|
]);
|
|
5286
5286
|
if (typeof c.baseFeePerGas != "bigint")
|
|
@@ -5304,7 +5304,7 @@ async function ma(e, t) {
|
|
|
5304
5304
|
})();
|
|
5305
5305
|
if (i < 1)
|
|
5306
5306
|
throw new vy();
|
|
5307
|
-
const a = 10 ** (((f = i.toString().split(".")[1]) == null ? void 0 : f.length) ?? 0), l = (h) => h * BigInt(Math.ceil(i * a)) / BigInt(a), u = n || await se(e,
|
|
5307
|
+
const a = 10 ** (((f = i.toString().split(".")[1]) == null ? void 0 : f.length) ?? 0), l = (h) => h * BigInt(Math.ceil(i * a)) / BigInt(a), u = n || await se(e, Mt, "getBlock")({});
|
|
5308
5308
|
if (typeof ((p = r == null ? void 0 : r.fees) == null ? void 0 : p.estimateFeesPerGas) == "function") {
|
|
5309
5309
|
const h = await r.fees.estimateFeesPerGas({
|
|
5310
5310
|
block: n,
|
|
@@ -5551,7 +5551,7 @@ function Ly(e) {
|
|
|
5551
5551
|
const su = 6, qd = 32, Ac = 4096, Zd = qd * Ac, iu = Zd * su - // terminator byte (0x80).
|
|
5552
5552
|
1 - // zero byte (0x00) appended to each field element.
|
|
5553
5553
|
1 * Ac * su;
|
|
5554
|
-
class
|
|
5554
|
+
class ky extends W {
|
|
5555
5555
|
constructor({ maxSize: t, size: n }) {
|
|
5556
5556
|
super("Blob size is too large.", {
|
|
5557
5557
|
metaMessages: [`Max: ${t} bytes`, `Given: ${n} bytes`],
|
|
@@ -5559,7 +5559,7 @@ class My extends W {
|
|
|
5559
5559
|
});
|
|
5560
5560
|
}
|
|
5561
5561
|
}
|
|
5562
|
-
class
|
|
5562
|
+
class My extends W {
|
|
5563
5563
|
constructor() {
|
|
5564
5564
|
super("Blob data must not be empty.", { name: "EmptyBlobError" });
|
|
5565
5565
|
}
|
|
@@ -5567,9 +5567,9 @@ class ky extends W {
|
|
|
5567
5567
|
function Dy(e) {
|
|
5568
5568
|
const t = typeof e.data == "string" ? Rt(e.data) : e.data, n = Te(t);
|
|
5569
5569
|
if (!n)
|
|
5570
|
-
throw new
|
|
5570
|
+
throw new My();
|
|
5571
5571
|
if (n > iu)
|
|
5572
|
-
throw new
|
|
5572
|
+
throw new ky({
|
|
5573
5573
|
maxSize: iu,
|
|
5574
5574
|
size: n
|
|
5575
5575
|
});
|
|
@@ -5631,7 +5631,7 @@ async function Yd(e, t) {
|
|
|
5631
5631
|
const { account: n = e.account, blobs: r, chain: o, gas: s, kzg: i, nonce: c, nonceManager: a, parameters: l = _y, type: u } = t, d = n && Nt(n), f = { ...t, ...d ? { from: d == null ? void 0 : d.address } : {} };
|
|
5632
5632
|
let p;
|
|
5633
5633
|
async function h() {
|
|
5634
|
-
return p || (p = await se(e,
|
|
5634
|
+
return p || (p = await se(e, Mt, "getBlock")({ blockTag: "latest" }), p);
|
|
5635
5635
|
}
|
|
5636
5636
|
let m;
|
|
5637
5637
|
async function w() {
|
|
@@ -5773,7 +5773,7 @@ async function $c(e, t) {
|
|
|
5773
5773
|
let x = BigInt(await E({ block: g, request: S, rpcStateOverride: v }));
|
|
5774
5774
|
if (a) {
|
|
5775
5775
|
const T = await Xd(e, { address: S.from }), R = await Promise.all(a.map(async (b) => {
|
|
5776
|
-
const { address: I } = b,
|
|
5776
|
+
const { address: I } = b, M = await E({
|
|
5777
5777
|
block: g,
|
|
5778
5778
|
request: {
|
|
5779
5779
|
authorizationList: void 0,
|
|
@@ -5784,7 +5784,7 @@ async function $c(e, t) {
|
|
|
5784
5784
|
},
|
|
5785
5785
|
rpcStateOverride: v
|
|
5786
5786
|
}).catch(() => 100000n);
|
|
5787
|
-
return 2n * BigInt(
|
|
5787
|
+
return 2n * BigInt(M);
|
|
5788
5788
|
}));
|
|
5789
5789
|
x += R.reduce((b, I) => b + I, 0n);
|
|
5790
5790
|
}
|
|
@@ -5928,7 +5928,7 @@ function Hy(e) {
|
|
|
5928
5928
|
return !1;
|
|
5929
5929
|
function o(s, i, c) {
|
|
5930
5930
|
try {
|
|
5931
|
-
return s.type === "address" ? Tc(i, c) : s.type === "string" || s.type === "bytes" ?
|
|
5931
|
+
return s.type === "address" ? Tc(i, c) : s.type === "string" || s.type === "bytes" ? Me(Or(i)) === c : i === c;
|
|
5932
5932
|
} catch {
|
|
5933
5933
|
return !1;
|
|
5934
5934
|
}
|
|
@@ -6387,7 +6387,7 @@ function ze(e, t = {}) {
|
|
|
6387
6387
|
const a = `0x${(n && o < 0 ? (1n << BigInt(r * 8)) + BigInt(o) : o).toString(16)}`;
|
|
6388
6388
|
return r ? Vn(a, r) : a;
|
|
6389
6389
|
}
|
|
6390
|
-
function
|
|
6390
|
+
function kc(e, t = {}) {
|
|
6391
6391
|
return ip(l1.encode(e), t);
|
|
6392
6392
|
}
|
|
6393
6393
|
function Vn(e, t) {
|
|
@@ -6396,7 +6396,7 @@ function Vn(e, t) {
|
|
|
6396
6396
|
function Gn(e, t) {
|
|
6397
6397
|
return op(e, { dir: "right", size: t });
|
|
6398
6398
|
}
|
|
6399
|
-
function
|
|
6399
|
+
function Mc(e, t, n, r = {}) {
|
|
6400
6400
|
const { strict: o } = r;
|
|
6401
6401
|
Jy(e, t);
|
|
6402
6402
|
const s = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (n ?? e.length) * 2)}`;
|
|
@@ -7090,7 +7090,7 @@ async function zs(e, t) {
|
|
|
7090
7090
|
}) : d;
|
|
7091
7091
|
try {
|
|
7092
7092
|
Io(t);
|
|
7093
|
-
const b = (typeof s == "bigint" ? re(s) : void 0) || i, I = l ? lp(l) : void 0,
|
|
7093
|
+
const b = (typeof s == "bigint" ? re(s) : void 0) || i, I = l ? lp(l) : void 0, M = Ec(D), _ = (T = (x = (E = e.chain) == null ? void 0 : E.formatters) == null ? void 0 : x.transactionRequest) == null ? void 0 : T.format, z = (_ || _s)({
|
|
7094
7094
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
7095
7095
|
...xc(F, { format: _ }),
|
|
7096
7096
|
from: g == null ? void 0 : g.address,
|
|
@@ -7107,7 +7107,7 @@ async function zs(e, t) {
|
|
|
7107
7107
|
to: N ? void 0 : B,
|
|
7108
7108
|
value: L
|
|
7109
7109
|
});
|
|
7110
|
-
if (o && v1({ request: z }) && !
|
|
7110
|
+
if (o && v1({ request: z }) && !M && !I)
|
|
7111
7111
|
try {
|
|
7112
7112
|
return await x1(e, {
|
|
7113
7113
|
...z,
|
|
@@ -7123,15 +7123,15 @@ async function zs(e, t) {
|
|
|
7123
7123
|
z,
|
|
7124
7124
|
b
|
|
7125
7125
|
];
|
|
7126
|
-
return
|
|
7126
|
+
return M && I ? [...q, M, I] : M ? [...q, M] : I ? [...q, {}, I] : q;
|
|
7127
7127
|
})(), H = await e.request({
|
|
7128
7128
|
method: "eth_call",
|
|
7129
7129
|
params: K
|
|
7130
7130
|
});
|
|
7131
7131
|
return H === "0x" ? { data: void 0 } : { data: H };
|
|
7132
7132
|
} catch (R) {
|
|
7133
|
-
const b = P1(R), { offchainLookup: I, offchainLookupSignature:
|
|
7134
|
-
if (e.ccipRead !== !1 && (b == null ? void 0 : b.slice(0, 10)) ===
|
|
7133
|
+
const b = P1(R), { offchainLookup: I, offchainLookupSignature: M } = await import("./ccip-CN7LbRDz.mjs");
|
|
7134
|
+
if (e.ccipRead !== !1 && (b == null ? void 0 : b.slice(0, 10)) === M && B)
|
|
7135
7135
|
return { data: await I(e, { data: b, to: B }) };
|
|
7136
7136
|
throw N && (b == null ? void 0 : b.slice(0, 10)) === "0x101bb98d" ? new oy({ factory: f }) : hp(R, {
|
|
7137
7137
|
...t,
|
|
@@ -7556,7 +7556,7 @@ const L1 = {
|
|
|
7556
7556
|
"0x0": "reverted",
|
|
7557
7557
|
"0x1": "success"
|
|
7558
7558
|
};
|
|
7559
|
-
function
|
|
7559
|
+
function k1(e) {
|
|
7560
7560
|
const t = {
|
|
7561
7561
|
...e,
|
|
7562
7562
|
blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
|
|
@@ -7582,7 +7582,7 @@ function bp(e = 11) {
|
|
|
7582
7582
|
}
|
|
7583
7583
|
return qo.substring(Go, Go++ + e);
|
|
7584
7584
|
}
|
|
7585
|
-
function
|
|
7585
|
+
function M1(e) {
|
|
7586
7586
|
const { batch: t, chain: n, ccipRead: r, key: o = "base", name: s = "Base Client", type: i = "base" } = e, c = e.experimental_blockTag ?? (typeof (n == null ? void 0 : n.experimental_preconfirmationTime) == "number" ? "pending" : void 0), a = (n == null ? void 0 : n.blockTime) ?? 12e3, l = Math.min(Math.max(Math.floor(a / 2), 500), 4e3), u = e.pollingInterval ?? l, d = e.cacheTime ?? u, f = e.account ? Nt(e.account) : void 0, { config: p, request: h, value: m } = e.transport({
|
|
7587
7587
|
chain: n,
|
|
7588
7588
|
pollingInterval: u
|
|
@@ -7994,8 +7994,8 @@ function ss(e) {
|
|
|
7994
7994
|
return Ce(t);
|
|
7995
7995
|
const n = e.split(".");
|
|
7996
7996
|
for (let r = n.length - 1; r >= 0; r -= 1) {
|
|
7997
|
-
const o = yp(n[r]), s = o ? Or(o) :
|
|
7998
|
-
t =
|
|
7997
|
+
const o = yp(n[r]), s = o ? Or(o) : Me(jn(n[r]), "bytes");
|
|
7998
|
+
t = Me(Wt([t, s]), "bytes");
|
|
7999
7999
|
}
|
|
8000
8000
|
return Ce(t);
|
|
8001
8001
|
}
|
|
@@ -8004,7 +8004,7 @@ function K1(e) {
|
|
|
8004
8004
|
}
|
|
8005
8005
|
function Y1(e) {
|
|
8006
8006
|
const t = new Uint8Array(32).fill(0);
|
|
8007
|
-
return e ? yp(e) ||
|
|
8007
|
+
return e ? yp(e) || Me(jn(e)) : Ce(t);
|
|
8008
8008
|
}
|
|
8009
8009
|
function Vs(e) {
|
|
8010
8010
|
const t = e.replace(/^\.|\.$/gm, "");
|
|
@@ -8416,7 +8416,7 @@ async function Ep(e, t) {
|
|
|
8416
8416
|
}
|
|
8417
8417
|
}
|
|
8418
8418
|
async function pw(e) {
|
|
8419
|
-
const t =
|
|
8419
|
+
const t = Ms(e, {
|
|
8420
8420
|
method: "eth_newBlockFilter"
|
|
8421
8421
|
}), n = await e.request({
|
|
8422
8422
|
method: "eth_newBlockFilter"
|
|
@@ -8424,7 +8424,7 @@ async function pw(e) {
|
|
|
8424
8424
|
return { id: n, request: t(n), type: "block" };
|
|
8425
8425
|
}
|
|
8426
8426
|
async function Sp(e, { address: t, args: n, event: r, events: o, fromBlock: s, strict: i, toBlock: c } = {}) {
|
|
8427
|
-
const a = o ?? (r ? [r] : void 0), l =
|
|
8427
|
+
const a = o ?? (r ? [r] : void 0), l = Ms(e, {
|
|
8428
8428
|
method: "eth_newFilter"
|
|
8429
8429
|
});
|
|
8430
8430
|
let u = [];
|
|
@@ -8457,7 +8457,7 @@ async function Sp(e, { address: t, args: n, event: r, events: o, fromBlock: s, s
|
|
|
8457
8457
|
};
|
|
8458
8458
|
}
|
|
8459
8459
|
async function Pp(e) {
|
|
8460
|
-
const t =
|
|
8460
|
+
const t = Ms(e, {
|
|
8461
8461
|
method: "eth_newPendingTransactionFilter"
|
|
8462
8462
|
}), n = await e.request({
|
|
8463
8463
|
method: "eth_newPendingTransactionFilter"
|
|
@@ -8626,7 +8626,7 @@ function Aw(e) {
|
|
|
8626
8626
|
data: n,
|
|
8627
8627
|
primaryType: r,
|
|
8628
8628
|
types: o
|
|
8629
|
-
})),
|
|
8629
|
+
})), Me(Wt(s));
|
|
8630
8630
|
}
|
|
8631
8631
|
function $w({ domain: e, types: t }) {
|
|
8632
8632
|
return $p({
|
|
@@ -8641,7 +8641,7 @@ function $p({ data: e, primaryType: t, types: n }) {
|
|
|
8641
8641
|
primaryType: t,
|
|
8642
8642
|
types: n
|
|
8643
8643
|
});
|
|
8644
|
-
return
|
|
8644
|
+
return Me(r);
|
|
8645
8645
|
}
|
|
8646
8646
|
function Tp({ data: e, primaryType: t, types: n }) {
|
|
8647
8647
|
const r = [{ type: "bytes32" }], o = [Tw({ primaryType: t, types: n })];
|
|
@@ -8658,7 +8658,7 @@ function Tp({ data: e, primaryType: t, types: n }) {
|
|
|
8658
8658
|
}
|
|
8659
8659
|
function Tw({ primaryType: e, types: t }) {
|
|
8660
8660
|
const n = on(Rw({ primaryType: e, types: t }));
|
|
8661
|
-
return
|
|
8661
|
+
return Me(n);
|
|
8662
8662
|
}
|
|
8663
8663
|
function Rw({ primaryType: e, types: t }) {
|
|
8664
8664
|
let n = "";
|
|
@@ -8682,12 +8682,12 @@ function Op({ types: e, name: t, type: n, value: r }) {
|
|
|
8682
8682
|
if (e[n] !== void 0)
|
|
8683
8683
|
return [
|
|
8684
8684
|
{ type: "bytes32" },
|
|
8685
|
-
|
|
8685
|
+
Me(Tp({ data: r, primaryType: n, types: e }))
|
|
8686
8686
|
];
|
|
8687
8687
|
if (n === "bytes")
|
|
8688
|
-
return r = `0x${(r.length % 2 ? "0" : "") + r.slice(2)}`, [{ type: "bytes32" },
|
|
8688
|
+
return r = `0x${(r.length % 2 ? "0" : "") + r.slice(2)}`, [{ type: "bytes32" }, Me(r)];
|
|
8689
8689
|
if (n === "string")
|
|
8690
|
-
return [{ type: "bytes32" },
|
|
8690
|
+
return [{ type: "bytes32" }, Me(on(r))];
|
|
8691
8691
|
if (n.lastIndexOf("]") === n.length - 1) {
|
|
8692
8692
|
const o = n.slice(0, n.lastIndexOf("[")), s = r.map((i) => Op({
|
|
8693
8693
|
name: t,
|
|
@@ -8697,7 +8697,7 @@ function Op({ types: e, name: t, type: n, value: r }) {
|
|
|
8697
8697
|
}));
|
|
8698
8698
|
return [
|
|
8699
8699
|
{ type: "bytes32" },
|
|
8700
|
-
|
|
8700
|
+
Me($n(s.map(([i]) => i), s.map(([, i]) => i)))
|
|
8701
8701
|
];
|
|
8702
8702
|
}
|
|
8703
8703
|
return [{ type: n }, r];
|
|
@@ -8719,7 +8719,7 @@ function Ow(e) {
|
|
|
8719
8719
|
if (p) {
|
|
8720
8720
|
const [m, w] = p;
|
|
8721
8721
|
if (w && Te(d) !== Number.parseInt(w))
|
|
8722
|
-
throw new
|
|
8722
|
+
throw new kg({
|
|
8723
8723
|
expectedSize: Number.parseInt(w),
|
|
8724
8724
|
givenSize: Te(d)
|
|
8725
8725
|
});
|
|
@@ -8765,20 +8765,20 @@ function Bw(e) {
|
|
|
8765
8765
|
return Wt([n, t]);
|
|
8766
8766
|
}
|
|
8767
8767
|
function Np(e, t) {
|
|
8768
|
-
return
|
|
8768
|
+
return Me(Bw(e), t);
|
|
8769
8769
|
}
|
|
8770
8770
|
const Ip = "0x6492649264926492649264926492649264926492649264926492649264926492";
|
|
8771
8771
|
function Lw(e) {
|
|
8772
8772
|
return Ed(e, -32) === Ip;
|
|
8773
8773
|
}
|
|
8774
|
-
function
|
|
8774
|
+
function kw(e) {
|
|
8775
8775
|
const { address: t, data: n, signature: r, to: o = "hex" } = e, s = Nr([
|
|
8776
8776
|
$n([{ type: "address" }, { type: "bytes" }, { type: "bytes" }], [t, n, r]),
|
|
8777
8777
|
Ip
|
|
8778
8778
|
]);
|
|
8779
8779
|
return o === "hex" ? s : Rt(s);
|
|
8780
8780
|
}
|
|
8781
|
-
class
|
|
8781
|
+
class Mw extends W {
|
|
8782
8782
|
constructor({ value: t }) {
|
|
8783
8783
|
super(`Number \`${t}\` is not a valid decimal number.`, {
|
|
8784
8784
|
name: "InvalidDecimalNumberError"
|
|
@@ -8787,7 +8787,7 @@ class kw extends W {
|
|
|
8787
8787
|
}
|
|
8788
8788
|
function Dw(e, t) {
|
|
8789
8789
|
if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))
|
|
8790
|
-
throw new
|
|
8790
|
+
throw new Mw({ value: e });
|
|
8791
8791
|
let [n, r = "0"] = e.split(".");
|
|
8792
8792
|
const o = n.startsWith("-");
|
|
8793
8793
|
if (o && (n = n.slice(1)), r = r.replace(/(0+)$/, ""), t === 0)
|
|
@@ -8869,7 +8869,7 @@ async function is(e, { hash: t }) {
|
|
|
8869
8869
|
}, { dedupe: !0 });
|
|
8870
8870
|
if (!n)
|
|
8871
8871
|
throw new Cd({ hash: t });
|
|
8872
|
-
return (((i = (s = (o = e.chain) == null ? void 0 : o.formatters) == null ? void 0 : s.transactionReceipt) == null ? void 0 : i.format) ||
|
|
8872
|
+
return (((i = (s = (o = e.chain) == null ? void 0 : o.formatters) == null ? void 0 : s.transactionReceipt) == null ? void 0 : i.format) || k1)(n);
|
|
8873
8873
|
}
|
|
8874
8874
|
async function Hw(e, t) {
|
|
8875
8875
|
var $;
|
|
@@ -9204,7 +9204,7 @@ function Lp(e, t = {}) {
|
|
|
9204
9204
|
};
|
|
9205
9205
|
}
|
|
9206
9206
|
function Yw(e, t, n) {
|
|
9207
|
-
const { args: r = [], prepare: o = !0 } = n ?? {}, s = d1(t, { strict: !1 }), i = e.filter((l) => s ? l.type === "function" || l.type === "error" ?
|
|
9207
|
+
const { args: r = [], prepare: o = !0 } = n ?? {}, s = d1(t, { strict: !1 }), i = e.filter((l) => s ? l.type === "function" || l.type === "error" ? kp(l) === Mc(t, 0, 4) : l.type === "event" ? ar(l) === t : !1 : "name" in l && l.name === t);
|
|
9208
9208
|
if (i.length === 0)
|
|
9209
9209
|
throw new Ra({ name: t });
|
|
9210
9210
|
if (i.length === 1)
|
|
@@ -9257,15 +9257,15 @@ function Yw(e, t, n) {
|
|
|
9257
9257
|
...o ? { hash: ar(a) } : {}
|
|
9258
9258
|
};
|
|
9259
9259
|
}
|
|
9260
|
-
function
|
|
9261
|
-
return
|
|
9260
|
+
function kp(e) {
|
|
9261
|
+
return Mc(ar(e), 0, 4);
|
|
9262
9262
|
}
|
|
9263
9263
|
function Xw(e) {
|
|
9264
9264
|
const t = typeof e == "string" ? e : ds(e);
|
|
9265
9265
|
return $a(t);
|
|
9266
9266
|
}
|
|
9267
9267
|
function ar(e) {
|
|
9268
|
-
return typeof e != "string" && "hash" in e && e.hash ? e.hash : Cp(
|
|
9268
|
+
return typeof e != "string" && "hash" in e && e.hash ? e.hash : Cp(kc(Xw(e)));
|
|
9269
9269
|
}
|
|
9270
9270
|
class Qw extends xe {
|
|
9271
9271
|
constructor(t, n) {
|
|
@@ -9297,7 +9297,7 @@ class Ra extends xe {
|
|
|
9297
9297
|
});
|
|
9298
9298
|
}
|
|
9299
9299
|
}
|
|
9300
|
-
const Jw = /^(.*)\[([0-9]*)\]$/, ev = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,
|
|
9300
|
+
const Jw = /^(.*)\[([0-9]*)\]$/, ev = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, Mp = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
|
|
9301
9301
|
function tv({ checksumAddress: e, parameters: t, values: n }) {
|
|
9302
9302
|
const r = [];
|
|
9303
9303
|
for (let o = 0; o < t.length; o++)
|
|
@@ -9333,7 +9333,7 @@ function Hc({ checksumAddress: e = !1, parameter: t, value: n }) {
|
|
|
9333
9333
|
if (r.type === "bool")
|
|
9334
9334
|
return sv(n);
|
|
9335
9335
|
if (r.type.startsWith("uint") || r.type.startsWith("int")) {
|
|
9336
|
-
const s = r.type.startsWith("int"), [, , i = "256"] =
|
|
9336
|
+
const s = r.type.startsWith("int"), [, , i = "256"] = Mp.exec(r.type) ?? [];
|
|
9337
9337
|
return iv(n, {
|
|
9338
9338
|
signed: s,
|
|
9339
9339
|
size: Number(i)
|
|
@@ -9445,9 +9445,9 @@ function iv(e, { signed: t, size: n }) {
|
|
|
9445
9445
|
};
|
|
9446
9446
|
}
|
|
9447
9447
|
function av(e) {
|
|
9448
|
-
const t =
|
|
9448
|
+
const t = kc(e), n = Math.ceil(gt(t) / 32), r = [];
|
|
9449
9449
|
for (let o = 0; o < n; o++)
|
|
9450
|
-
r.push(Gn(
|
|
9450
|
+
r.push(Gn(Mc(t, o * 32, (o + 1) * 32)));
|
|
9451
9451
|
return {
|
|
9452
9452
|
dynamic: !0,
|
|
9453
9453
|
encoded: Vt(Gn(ze(gt(t), { size: 32 })), ...r)
|
|
@@ -9511,12 +9511,12 @@ function Oa(e, t) {
|
|
|
9511
9511
|
return Gs(a), Vn(a.toLowerCase(), o ? 32 : 0);
|
|
9512
9512
|
}
|
|
9513
9513
|
if (n === "string")
|
|
9514
|
-
return
|
|
9514
|
+
return kc(r);
|
|
9515
9515
|
if (n === "bytes")
|
|
9516
9516
|
return r;
|
|
9517
9517
|
if (n === "bool")
|
|
9518
9518
|
return Vn(sp(r), o ? 32 : 1);
|
|
9519
|
-
const s = n.match(
|
|
9519
|
+
const s = n.match(Mp);
|
|
9520
9520
|
if (s) {
|
|
9521
9521
|
const [a, l, u = "256"] = s, d = Number.parseInt(u) / 8;
|
|
9522
9522
|
return ze(r, {
|
|
@@ -9624,7 +9624,7 @@ function mv(e, t, n) {
|
|
|
9624
9624
|
return r;
|
|
9625
9625
|
}
|
|
9626
9626
|
function gv(e) {
|
|
9627
|
-
return
|
|
9627
|
+
return kp(e);
|
|
9628
9628
|
}
|
|
9629
9629
|
const bv = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", Bt = "0x0000000000000000000000000000000000000000", yv = "0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";
|
|
9630
9630
|
async function wv(e, t) {
|
|
@@ -9645,7 +9645,7 @@ async function wv(e, t) {
|
|
|
9645
9645
|
...b,
|
|
9646
9646
|
data: b.abi ? Gt(b) : b.data
|
|
9647
9647
|
});
|
|
9648
|
-
return I.map(({ address:
|
|
9648
|
+
return I.map(({ address: M, storageKeys: _ }) => _.length > 0 ? M : null);
|
|
9649
9649
|
})).then((b) => b.flat().filter(Boolean)) : [], f = await Pa(e, {
|
|
9650
9650
|
blockNumber: n,
|
|
9651
9651
|
blockTag: r,
|
|
@@ -9766,8 +9766,8 @@ async function wv(e, t) {
|
|
|
9766
9766
|
validation: a
|
|
9767
9767
|
}), p = i ? f[2] : f[0], [h, m, , w, $, y, A, B] = i ? f : [], { calls: L, ...D } = p, F = L.slice(0, -1) ?? [], g = (h == null ? void 0 : h.calls) ?? [], v = (m == null ? void 0 : m.calls) ?? [], P = [...g, ...v].map((b) => b.status === "success" ? Ht(b.data) : null), N = (w == null ? void 0 : w.calls) ?? [], O = ($ == null ? void 0 : $.calls) ?? [], S = [...N, ...O].map((b) => b.status === "success" ? Ht(b.data) : null), E = ((y == null ? void 0 : y.calls) ?? []).map((b) => b.status === "success" ? b.result : null), x = ((B == null ? void 0 : B.calls) ?? []).map((b) => b.status === "success" ? b.result : null), T = ((A == null ? void 0 : A.calls) ?? []).map((b) => b.status === "success" ? b.result : null), R = [];
|
|
9768
9768
|
for (const [b, I] of S.entries()) {
|
|
9769
|
-
const
|
|
9770
|
-
if (typeof I != "bigint" || typeof
|
|
9769
|
+
const M = P[b];
|
|
9770
|
+
if (typeof I != "bigint" || typeof M != "bigint")
|
|
9771
9771
|
continue;
|
|
9772
9772
|
const _ = E[b - 1], j = x[b - 1], z = T[b - 1], K = b === 0 ? {
|
|
9773
9773
|
address: bv,
|
|
@@ -9781,9 +9781,9 @@ async function wv(e, t) {
|
|
|
9781
9781
|
R.some((H) => H.token.address === K.address) || R.push({
|
|
9782
9782
|
token: K,
|
|
9783
9783
|
value: {
|
|
9784
|
-
pre:
|
|
9784
|
+
pre: M,
|
|
9785
9785
|
post: I,
|
|
9786
|
-
diff: I -
|
|
9786
|
+
diff: I - M
|
|
9787
9787
|
}
|
|
9788
9788
|
});
|
|
9789
9789
|
}
|
|
@@ -9872,7 +9872,7 @@ function Ev(e, t) {
|
|
|
9872
9872
|
return Vc(e, c, t), c;
|
|
9873
9873
|
}
|
|
9874
9874
|
function Sv(e) {
|
|
9875
|
-
const t =
|
|
9875
|
+
const t = ko(e), n = Kp(e), r = n(t, t.neg(t.ONE)), o = n(t, r), s = n(t, t.neg(r)), i = (e + vv) / qp;
|
|
9876
9876
|
return (c, a) => {
|
|
9877
9877
|
let l = c.pow(a, i), u = c.mul(l, r);
|
|
9878
9878
|
const d = c.mul(l, o), f = c.mul(l, s), p = c.eql(c.sqr(u), a), h = c.eql(c.sqr(d), a);
|
|
@@ -9888,7 +9888,7 @@ function Kp(e) {
|
|
|
9888
9888
|
for (; t % Ln === Ke; )
|
|
9889
9889
|
t /= Ln, n++;
|
|
9890
9890
|
let r = Ln;
|
|
9891
|
-
const o =
|
|
9891
|
+
const o = ko(e);
|
|
9892
9892
|
for (; Pu(o, r) === 1; )
|
|
9893
9893
|
if (r++ > 1e3)
|
|
9894
9894
|
throw new Error("Cannot find square root: probably non-prime P");
|
|
@@ -9973,7 +9973,7 @@ function Xp(e, t) {
|
|
|
9973
9973
|
const n = t !== void 0 ? t : e.toString(2).length, r = Math.ceil(n / 8);
|
|
9974
9974
|
return { nBitLength: n, nByteLength: r };
|
|
9975
9975
|
}
|
|
9976
|
-
function
|
|
9976
|
+
function ko(e, t, n = !1, r = {}) {
|
|
9977
9977
|
if (e <= Ke)
|
|
9978
9978
|
throw new Error("invalid field: expected ORDER > 0, got " + e);
|
|
9979
9979
|
let o, s, i = !1, c;
|
|
@@ -10063,7 +10063,7 @@ function Rv(e, t, n = !1) {
|
|
|
10063
10063
|
return n ? tp(c, o) : Cc(c, o);
|
|
10064
10064
|
}
|
|
10065
10065
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
10066
|
-
const Ar = BigInt(0),
|
|
10066
|
+
const Ar = BigInt(0), kn = BigInt(1);
|
|
10067
10067
|
function bs(e, t) {
|
|
10068
10068
|
const n = t.negate();
|
|
10069
10069
|
return e ? n : t;
|
|
@@ -10084,7 +10084,7 @@ function Ri(e, t) {
|
|
|
10084
10084
|
function Au(e, t, n) {
|
|
10085
10085
|
const { windowSize: r, mask: o, maxNumber: s, shiftBy: i } = n;
|
|
10086
10086
|
let c = Number(e & o), a = e >> i;
|
|
10087
|
-
c > r && (c -= s, a +=
|
|
10087
|
+
c > r && (c -= s, a += kn);
|
|
10088
10088
|
const l = t * r, u = l + Math.abs(c) - 1, d = c === 0, f = c < 0, p = t % 2 !== 0;
|
|
10089
10089
|
return { nextN: a, offset: u, isZero: d, isNeg: f, isNegF: p, offsetF: l };
|
|
10090
10090
|
}
|
|
@@ -10121,7 +10121,7 @@ class Iv {
|
|
|
10121
10121
|
_unsafeLadder(t, n, r = this.ZERO) {
|
|
10122
10122
|
let o = t;
|
|
10123
10123
|
for (; n > Ar; )
|
|
10124
|
-
n &
|
|
10124
|
+
n & kn && (r = r.add(o)), o = o.double(), n >>= kn;
|
|
10125
10125
|
return r;
|
|
10126
10126
|
}
|
|
10127
10127
|
/**
|
|
@@ -10205,7 +10205,7 @@ class Iv {
|
|
|
10205
10205
|
function Cv(e, t, n, r) {
|
|
10206
10206
|
let o = t, s = e.ZERO, i = e.ZERO;
|
|
10207
10207
|
for (; n > Ar || r > Ar; )
|
|
10208
|
-
n &
|
|
10208
|
+
n & kn && (s = s.add(o)), r & kn && (i = i.add(o)), o = o.double(), n >>= kn, r >>= kn;
|
|
10209
10209
|
return { p1: s, p2: i };
|
|
10210
10210
|
}
|
|
10211
10211
|
function Bv(e, t, n, r) {
|
|
@@ -10239,7 +10239,7 @@ function Tu(e, t, n) {
|
|
|
10239
10239
|
throw new Error("Field.ORDER must match order: Fp == p, Fn == n");
|
|
10240
10240
|
return $v(t), t;
|
|
10241
10241
|
} else
|
|
10242
|
-
return
|
|
10242
|
+
return ko(e, { isLE: n });
|
|
10243
10243
|
}
|
|
10244
10244
|
function Lv(e, t, n = {}, r) {
|
|
10245
10245
|
if (r === void 0 && (r = e === "edwards"), !t || typeof t != "object")
|
|
@@ -10257,7 +10257,7 @@ function Lv(e, t, n = {}, r) {
|
|
|
10257
10257
|
}
|
|
10258
10258
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
10259
10259
|
const Ru = (e, t) => (e + (e >= 0 ? t : -t) / nh) / t;
|
|
10260
|
-
function
|
|
10260
|
+
function kv(e, t, n) {
|
|
10261
10261
|
const [[r, o], [s, i]] = t, c = Ru(i * e, n), a = Ru(-o * e, n);
|
|
10262
10262
|
let l = e - c * r - a * s, u = -c * o - a * i;
|
|
10263
10263
|
const d = l < Jt, f = u < Jt;
|
|
@@ -10278,14 +10278,14 @@ function Ii(e, t) {
|
|
|
10278
10278
|
n[r] = e[r] === void 0 ? t[r] : e[r];
|
|
10279
10279
|
return gs(n.lowS, "lowS"), gs(n.prehash, "prehash"), n.format !== void 0 && Na(n.format), n;
|
|
10280
10280
|
}
|
|
10281
|
-
class
|
|
10281
|
+
class Mv extends Error {
|
|
10282
10282
|
constructor(t = "") {
|
|
10283
10283
|
super(t);
|
|
10284
10284
|
}
|
|
10285
10285
|
}
|
|
10286
10286
|
const Qt = {
|
|
10287
10287
|
// asn.1 DER encoding utils
|
|
10288
|
-
Err:
|
|
10288
|
+
Err: Mv,
|
|
10289
10289
|
// Basic building block is TLV (Tag-Length-Value)
|
|
10290
10290
|
_tlv: {
|
|
10291
10291
|
encode: (e, t) => {
|
|
@@ -10426,21 +10426,21 @@ function Fv(e, t = {}) {
|
|
|
10426
10426
|
if (!r.isValid(b))
|
|
10427
10427
|
throw new Error("bad point: is not on curve, wrong x");
|
|
10428
10428
|
const I = m(b);
|
|
10429
|
-
let
|
|
10429
|
+
let M;
|
|
10430
10430
|
try {
|
|
10431
|
-
|
|
10431
|
+
M = r.sqrt(I);
|
|
10432
10432
|
} catch (z) {
|
|
10433
10433
|
const K = z instanceof Error ? ": " + z.message : "";
|
|
10434
10434
|
throw new Error("bad point: is not on curve, sqrt error" + K);
|
|
10435
10435
|
}
|
|
10436
10436
|
u();
|
|
10437
|
-
const _ = r.isOdd(
|
|
10438
|
-
return (T & 1) === 1 !== _ && (
|
|
10437
|
+
const _ = r.isOdd(M);
|
|
10438
|
+
return (T & 1) === 1 !== _ && (M = r.neg(M)), { x: b, y: M };
|
|
10439
10439
|
} else if (x === E && T === 4) {
|
|
10440
|
-
const b = r.BYTES, I = r.fromBytes(R.subarray(0, b)),
|
|
10441
|
-
if (!w(I,
|
|
10440
|
+
const b = r.BYTES, I = r.fromBytes(R.subarray(0, b)), M = r.fromBytes(R.subarray(b, b * 2));
|
|
10441
|
+
if (!w(I, M))
|
|
10442
10442
|
throw new Error("bad point: is not on curve");
|
|
10443
|
-
return { x: I, y:
|
|
10443
|
+
return { x: I, y: M };
|
|
10444
10444
|
} else
|
|
10445
10445
|
throw new Error(`bad point: got length ${x}, expected compressed=${S} or uncompressed=${E}`);
|
|
10446
10446
|
}
|
|
@@ -10470,7 +10470,7 @@ function Fv(e, t = {}) {
|
|
|
10470
10470
|
function L(O) {
|
|
10471
10471
|
if (!a || !a.basises)
|
|
10472
10472
|
throw new Error("no endo");
|
|
10473
|
-
return
|
|
10473
|
+
return kv(O, a.basises, o.ORDER);
|
|
10474
10474
|
}
|
|
10475
10475
|
const D = lu((O, S) => {
|
|
10476
10476
|
const { X: E, Y: x, Z: T } = O;
|
|
@@ -10478,10 +10478,10 @@ function Fv(e, t = {}) {
|
|
|
10478
10478
|
return { x: E, y: x };
|
|
10479
10479
|
const R = O.is0();
|
|
10480
10480
|
S == null && (S = R ? r.ONE : r.inv(T));
|
|
10481
|
-
const b = r.mul(E, S), I = r.mul(x, S),
|
|
10481
|
+
const b = r.mul(E, S), I = r.mul(x, S), M = r.mul(T, S);
|
|
10482
10482
|
if (R)
|
|
10483
10483
|
return { x: r.ZERO, y: r.ZERO };
|
|
10484
|
-
if (!r.eql(
|
|
10484
|
+
if (!r.eql(M, r.ONE))
|
|
10485
10485
|
throw new Error("invZ was invalid");
|
|
10486
10486
|
return { x: b, y: I };
|
|
10487
10487
|
}), F = lu((O) => {
|
|
@@ -10555,8 +10555,8 @@ function Fv(e, t = {}) {
|
|
|
10555
10555
|
/** Compare one point to another. */
|
|
10556
10556
|
equals(S) {
|
|
10557
10557
|
B(S);
|
|
10558
|
-
const { X: E, Y: x, Z: T } = this, { X: R, Y: b, Z: I } = S,
|
|
10559
|
-
return
|
|
10558
|
+
const { X: E, Y: x, Z: T } = this, { X: R, Y: b, Z: I } = S, M = r.eql(r.mul(E, I), r.mul(R, T)), _ = r.eql(r.mul(x, I), r.mul(b, T));
|
|
10559
|
+
return M && _;
|
|
10560
10560
|
}
|
|
10561
10561
|
/** Flips point to one corresponding to (x, -y) in Affine coordinates. */
|
|
10562
10562
|
negate() {
|
|
@@ -10568,8 +10568,8 @@ function Fv(e, t = {}) {
|
|
|
10568
10568
|
// Cost: 8M + 3S + 3*a + 2*b3 + 15add.
|
|
10569
10569
|
double() {
|
|
10570
10570
|
const { a: S, b: E } = s, x = r.mul(E, Ko), { X: T, Y: R, Z: b } = this;
|
|
10571
|
-
let I = r.ZERO,
|
|
10572
|
-
return H = r.add(H, H), _ = r.mul(T, b), _ = r.add(_, _), I = r.mul(S, _),
|
|
10571
|
+
let I = r.ZERO, M = r.ZERO, _ = r.ZERO, j = r.mul(T, T), z = r.mul(R, R), K = r.mul(b, b), H = r.mul(T, R);
|
|
10572
|
+
return H = r.add(H, H), _ = r.mul(T, b), _ = r.add(_, _), I = r.mul(S, _), M = r.mul(x, K), M = r.add(I, M), I = r.sub(z, M), M = r.add(z, M), M = r.mul(I, M), I = r.mul(H, I), _ = r.mul(x, _), K = r.mul(S, K), H = r.sub(j, K), H = r.mul(S, H), H = r.add(H, _), _ = r.add(j, j), j = r.add(_, j), j = r.add(j, K), j = r.mul(j, H), M = r.add(M, j), K = r.mul(R, b), K = r.add(K, K), j = r.mul(K, H), I = r.sub(I, j), _ = r.mul(K, z), _ = r.add(_, _), _ = r.add(_, _), new v(I, M, _);
|
|
10573
10573
|
}
|
|
10574
10574
|
// Renes-Costello-Batina exception-free addition formula.
|
|
10575
10575
|
// There is 30% faster Jacobian formula, but it is not complete.
|
|
@@ -10578,12 +10578,12 @@ function Fv(e, t = {}) {
|
|
|
10578
10578
|
add(S) {
|
|
10579
10579
|
B(S);
|
|
10580
10580
|
const { X: E, Y: x, Z: T } = this, { X: R, Y: b, Z: I } = S;
|
|
10581
|
-
let
|
|
10581
|
+
let M = r.ZERO, _ = r.ZERO, j = r.ZERO;
|
|
10582
10582
|
const z = s.a, K = r.mul(s.b, Ko);
|
|
10583
10583
|
let H = r.mul(E, R), q = r.mul(x, b), V = r.mul(T, I), te = r.add(E, x), oe = r.add(R, b);
|
|
10584
10584
|
te = r.mul(te, oe), oe = r.add(H, q), te = r.sub(te, oe), oe = r.add(E, T);
|
|
10585
10585
|
let de = r.add(R, I);
|
|
10586
|
-
return oe = r.mul(oe, de), de = r.add(H, V), oe = r.sub(oe, de), de = r.add(x, T),
|
|
10586
|
+
return oe = r.mul(oe, de), de = r.add(H, V), oe = r.sub(oe, de), de = r.add(x, T), M = r.add(b, I), de = r.mul(de, M), M = r.add(q, V), de = r.sub(de, M), j = r.mul(z, oe), M = r.mul(K, V), j = r.add(M, j), M = r.sub(q, j), j = r.add(q, j), _ = r.mul(M, j), q = r.add(H, H), q = r.add(q, H), V = r.mul(z, V), oe = r.mul(K, oe), q = r.add(q, V), V = r.sub(H, V), V = r.mul(z, V), oe = r.add(oe, V), H = r.mul(q, oe), _ = r.add(_, H), H = r.mul(de, oe), M = r.mul(te, M), M = r.sub(M, H), H = r.mul(te, q), j = r.mul(de, j), j = r.add(j, H), new v(M, _, j);
|
|
10587
10587
|
}
|
|
10588
10588
|
subtract(S) {
|
|
10589
10589
|
return this.add(S.negate());
|
|
@@ -10607,8 +10607,8 @@ function Fv(e, t = {}) {
|
|
|
10607
10607
|
let x, T;
|
|
10608
10608
|
const R = (b) => N.cached(this, b, (I) => Ti(v, I));
|
|
10609
10609
|
if (E) {
|
|
10610
|
-
const { k1neg: b, k1: I, k2neg:
|
|
10611
|
-
T = z.add(H), x = g(E.beta, j, K, b,
|
|
10610
|
+
const { k1neg: b, k1: I, k2neg: M, k2: _ } = L(S), { p: j, f: z } = R(I), { p: K, f: H } = R(_);
|
|
10611
|
+
T = z.add(H), x = g(E.beta, j, K, b, M);
|
|
10612
10612
|
} else {
|
|
10613
10613
|
const { p: b, f: I } = R(S);
|
|
10614
10614
|
x = b, T = I;
|
|
@@ -10631,8 +10631,8 @@ function Fv(e, t = {}) {
|
|
|
10631
10631
|
if (N.hasCache(this))
|
|
10632
10632
|
return this.multiply(S);
|
|
10633
10633
|
if (E) {
|
|
10634
|
-
const { k1neg: T, k1: R, k2neg: b, k2: I } = L(S), { p1:
|
|
10635
|
-
return g(E.beta,
|
|
10634
|
+
const { k1neg: T, k1: R, k2neg: b, k2: I } = L(S), { p1: M, p2: _ } = Cv(v, x, R, I);
|
|
10635
|
+
return g(E.beta, M, _, T, b);
|
|
10636
10636
|
} else
|
|
10637
10637
|
return N.unsafe(x, S);
|
|
10638
10638
|
}
|
|
@@ -10814,8 +10814,8 @@ function _v(e, t, n = {}) {
|
|
|
10814
10814
|
return new A(_, j);
|
|
10815
10815
|
}
|
|
10816
10816
|
T === "recovered" && (R = x[0], T = "compact", x = x.subarray(1));
|
|
10817
|
-
const b = i.BYTES, I = x.subarray(0, b),
|
|
10818
|
-
return new A(i.fromBytes(I), i.fromBytes(
|
|
10817
|
+
const b = i.BYTES, I = x.subarray(0, b), M = x.subarray(b, b * 2);
|
|
10818
|
+
return new A(i.fromBytes(I), i.fromBytes(M), R);
|
|
10819
10819
|
}
|
|
10820
10820
|
static fromHex(x, T) {
|
|
10821
10821
|
return this.fromBytes(ps(x), T);
|
|
@@ -10899,12 +10899,12 @@ function _v(e, t, n = {}) {
|
|
|
10899
10899
|
throw new Error("sign() legacy options not supported");
|
|
10900
10900
|
const { lowS: R, prehash: b, extraEntropy: I } = Ii(T, h);
|
|
10901
10901
|
E = g(E, b);
|
|
10902
|
-
const
|
|
10902
|
+
const M = L(E), _ = cr(i, x), j = [F(_), F(M)];
|
|
10903
10903
|
if (I != null && I !== !1) {
|
|
10904
10904
|
const q = I === !0 ? r(p.secretKey) : I;
|
|
10905
10905
|
j.push(qe("extraEntropy", q));
|
|
10906
10906
|
}
|
|
10907
|
-
const z = yn(...j), K =
|
|
10907
|
+
const z = yn(...j), K = M;
|
|
10908
10908
|
function H(q) {
|
|
10909
10909
|
const V = B(q);
|
|
10910
10910
|
if (!i.isValidNot0(V))
|
|
@@ -10949,10 +10949,10 @@ function _v(e, t, n = {}) {
|
|
|
10949
10949
|
return x || !1;
|
|
10950
10950
|
}
|
|
10951
10951
|
function O(E, x, T, R = {}) {
|
|
10952
|
-
const { lowS: b, prehash: I, format:
|
|
10952
|
+
const { lowS: b, prehash: I, format: M } = Ii(R, h);
|
|
10953
10953
|
if (T = qe("publicKey", T), x = g(qe("message", x), I), "strict" in R)
|
|
10954
10954
|
throw new Error("options.strict was renamed to lowS");
|
|
10955
|
-
const _ =
|
|
10955
|
+
const _ = M === void 0 ? N(E) : A.fromBytes(qe("sig", E), M);
|
|
10956
10956
|
if (_ === !1)
|
|
10957
10957
|
return !1;
|
|
10958
10958
|
try {
|
|
@@ -10994,7 +10994,7 @@ function Uv(e) {
|
|
|
10994
10994
|
Gy: e.Gy
|
|
10995
10995
|
}, n = e.Fp;
|
|
10996
10996
|
let r = e.allowedPrivateKeyLengths ? Array.from(new Set(e.allowedPrivateKeyLengths.map((i) => Math.ceil(i / 2)))) : void 0;
|
|
10997
|
-
const o =
|
|
10997
|
+
const o = ko(t.n, {
|
|
10998
10998
|
BITS: e.nBitLength,
|
|
10999
10999
|
allowedLengths: r,
|
|
11000
11000
|
modFromBytes: e.wrapPrivateKey
|
|
@@ -11058,7 +11058,7 @@ function qv(e) {
|
|
|
11058
11058
|
throw new Error("Cannot find square root");
|
|
11059
11059
|
return D;
|
|
11060
11060
|
}
|
|
11061
|
-
const Ia =
|
|
11061
|
+
const Ia = ko(Gc.p, { sqrt: qv }), sh = Vv({ ...Gc, Fp: Ia, lowS: !0, endo: Gv }, Gd), Zv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11062
11062
|
__proto__: null,
|
|
11063
11063
|
secp256k1: sh
|
|
11064
11064
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -11074,7 +11074,7 @@ function Kv({ r: e, s: t, to: n = "hex", v: r, yParity: o }) {
|
|
|
11074
11074
|
}
|
|
11075
11075
|
async function qc(e, t) {
|
|
11076
11076
|
var d, f, p;
|
|
11077
|
-
const { address: n, factory: r, factoryData: o, hash: s, signature: i, universalSignatureVerifierAddress: c = (p = (f = (d = e.chain) == null ? void 0 : d.contracts) == null ? void 0 : f.universalSignatureVerifier) == null ? void 0 : p.address, ...a } = t, l = zt(i) ? i : typeof i == "object" && "r" in i && "s" in i ? Kv(i) : Ce(i), u = await (async () => !r && !o || Lw(l) ? l :
|
|
11077
|
+
const { address: n, factory: r, factoryData: o, hash: s, signature: i, universalSignatureVerifierAddress: c = (p = (f = (d = e.chain) == null ? void 0 : d.contracts) == null ? void 0 : f.universalSignatureVerifier) == null ? void 0 : p.address, ...a } = t, l = zt(i) ? i : typeof i == "object" && "r" in i && "s" in i ? Kv(i) : Ce(i), u = await (async () => !r && !o || Lw(l) ? l : kw({
|
|
11078
11078
|
address: r,
|
|
11079
11079
|
data: o,
|
|
11080
11080
|
signature: l
|
|
@@ -11257,7 +11257,7 @@ async function Qv(e, t) {
|
|
|
11257
11257
|
}
|
|
11258
11258
|
try {
|
|
11259
11259
|
f = d, h = !0;
|
|
11260
|
-
const P = await xa(() => se(e,
|
|
11260
|
+
const P = await xa(() => se(e, Mt, "getBlock")({
|
|
11261
11261
|
blockNumber: g,
|
|
11262
11262
|
includeTransactions: !0
|
|
11263
11263
|
}), {
|
|
@@ -11307,7 +11307,7 @@ function Jv(e, { blockTag: t = e.experimental_blockTag ?? "latest", emitMissed:
|
|
|
11307
11307
|
return Sn(h, { onBlock: o, onError: s }, (m) => Bo(async () => {
|
|
11308
11308
|
var w;
|
|
11309
11309
|
try {
|
|
11310
|
-
const $ = await se(e,
|
|
11310
|
+
const $ = await se(e, Mt, "getBlock")({
|
|
11311
11311
|
blockTag: t,
|
|
11312
11312
|
includeTransactions: u
|
|
11313
11313
|
});
|
|
@@ -11316,7 +11316,7 @@ function Jv(e, { blockTag: t = e.experimental_blockTag ?? "latest", emitMissed:
|
|
|
11316
11316
|
return;
|
|
11317
11317
|
if ($.number - d.number > 1 && n)
|
|
11318
11318
|
for (let y = (d == null ? void 0 : d.number) + 1n; y < $.number; y++) {
|
|
11319
|
-
const A = await se(e,
|
|
11319
|
+
const A = await se(e, Mt, "getBlock")({
|
|
11320
11320
|
blockNumber: y,
|
|
11321
11321
|
includeTransactions: u
|
|
11322
11322
|
});
|
|
@@ -11339,7 +11339,7 @@ function Jv(e, { blockTag: t = e.experimental_blockTag ?? "latest", emitMissed:
|
|
|
11339
11339
|
let h = !0, m = !0, w = () => h = !1;
|
|
11340
11340
|
return (async () => {
|
|
11341
11341
|
try {
|
|
11342
|
-
r && se(e,
|
|
11342
|
+
r && se(e, Mt, "getBlock")({
|
|
11343
11343
|
blockTag: t,
|
|
11344
11344
|
includeTransactions: u
|
|
11345
11345
|
}).then((A) => {
|
|
@@ -11357,7 +11357,7 @@ function Jv(e, { blockTag: t = e.experimental_blockTag ?? "latest", emitMissed:
|
|
|
11357
11357
|
var L;
|
|
11358
11358
|
if (!h)
|
|
11359
11359
|
return;
|
|
11360
|
-
const B = await se(e,
|
|
11360
|
+
const B = await se(e, Mt, "getBlock")({
|
|
11361
11361
|
blockNumber: (L = A.result) == null ? void 0 : L.number,
|
|
11362
11362
|
includeTransactions: u
|
|
11363
11363
|
}).catch(() => {
|
|
@@ -11622,7 +11622,7 @@ function ax(e) {
|
|
|
11622
11622
|
estimateGas: (t) => $c(e, t),
|
|
11623
11623
|
getBalance: (t) => Xd(e, t),
|
|
11624
11624
|
getBlobBaseFee: () => hw(e),
|
|
11625
|
-
getBlock: (t) =>
|
|
11625
|
+
getBlock: (t) => Mt(e, t),
|
|
11626
11626
|
getBlockNumber: (t) => Lo(e, t),
|
|
11627
11627
|
getBlockTransactionCount: (t) => mw(e, t),
|
|
11628
11628
|
getBytecode: (t) => xu(e, t),
|
|
@@ -11670,7 +11670,7 @@ function ax(e) {
|
|
|
11670
11670
|
}
|
|
11671
11671
|
function Ca(e) {
|
|
11672
11672
|
const { key: t = "public", name: n = "Public Client" } = e;
|
|
11673
|
-
return
|
|
11673
|
+
return M1({
|
|
11674
11674
|
...e,
|
|
11675
11675
|
key: t,
|
|
11676
11676
|
name: n,
|
|
@@ -12002,7 +12002,7 @@ function Px(e) {
|
|
|
12002
12002
|
const Tn = (e) => {
|
|
12003
12003
|
var t;
|
|
12004
12004
|
return (t = e == null ? void 0 : e.ownerDocument) !== null && t !== void 0 ? t : document;
|
|
12005
|
-
},
|
|
12005
|
+
}, Mn = (e) => e && "window" in e && e.window === e ? e : Tn(e).defaultView || window;
|
|
12006
12006
|
function Ax(e) {
|
|
12007
12007
|
return e !== null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number";
|
|
12008
12008
|
}
|
|
@@ -12166,35 +12166,35 @@ function hh(e) {
|
|
|
12166
12166
|
n
|
|
12167
12167
|
]);
|
|
12168
12168
|
}
|
|
12169
|
-
let
|
|
12170
|
-
const
|
|
12169
|
+
let kx = !1, Mo = null, ka = /* @__PURE__ */ new Set(), Zr = /* @__PURE__ */ new Map(), qn = !1, Ma = !1;
|
|
12170
|
+
const Mx = {
|
|
12171
12171
|
Tab: !0,
|
|
12172
12172
|
Escape: !0
|
|
12173
12173
|
};
|
|
12174
12174
|
function Qc(e, t) {
|
|
12175
|
-
for (let n of
|
|
12175
|
+
for (let n of ka) n(e, t);
|
|
12176
12176
|
}
|
|
12177
12177
|
function Dx(e) {
|
|
12178
12178
|
return !(e.metaKey || !Xc() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
12179
12179
|
}
|
|
12180
12180
|
function ys(e) {
|
|
12181
|
-
qn = !0, Dx(e) && (
|
|
12181
|
+
qn = !0, Dx(e) && (Mo = "keyboard", Qc("keyboard", e));
|
|
12182
12182
|
}
|
|
12183
12183
|
function dt(e) {
|
|
12184
|
-
|
|
12184
|
+
Mo = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (qn = !0, Qc("pointer", e));
|
|
12185
12185
|
}
|
|
12186
12186
|
function mh(e) {
|
|
12187
|
-
Bx(e) && (qn = !0,
|
|
12187
|
+
Bx(e) && (qn = !0, Mo = "virtual");
|
|
12188
12188
|
}
|
|
12189
12189
|
function gh(e) {
|
|
12190
|
-
e.target === window || e.target === document ||
|
|
12190
|
+
e.target === window || e.target === document || kx || !e.isTrusted || (!qn && !Ma && (Mo = "virtual", Qc("virtual", e)), qn = !1, Ma = !1);
|
|
12191
12191
|
}
|
|
12192
12192
|
function bh() {
|
|
12193
|
-
qn = !1,
|
|
12193
|
+
qn = !1, Ma = !0;
|
|
12194
12194
|
}
|
|
12195
12195
|
function Da(e) {
|
|
12196
|
-
if (typeof window > "u" || typeof document > "u" || Zr.get(
|
|
12197
|
-
const t =
|
|
12196
|
+
if (typeof window > "u" || typeof document > "u" || Zr.get(Mn(e))) return;
|
|
12197
|
+
const t = Mn(e), n = Tn(e);
|
|
12198
12198
|
let r = t.HTMLElement.prototype.focus;
|
|
12199
12199
|
t.HTMLElement.prototype.focus = function() {
|
|
12200
12200
|
qn = !0, r.apply(this, arguments);
|
|
@@ -12207,7 +12207,7 @@ function Da(e) {
|
|
|
12207
12207
|
});
|
|
12208
12208
|
}
|
|
12209
12209
|
const yh = (e, t) => {
|
|
12210
|
-
const n =
|
|
12210
|
+
const n = Mn(e), r = Tn(e);
|
|
12211
12211
|
t && r.removeEventListener("DOMContentLoaded", t), Zr.has(n) && (n.HTMLElement.prototype.focus = Zr.get(n).focus, r.removeEventListener("keydown", ys, !0), r.removeEventListener("keyup", ys, !0), r.removeEventListener("click", mh, !0), n.removeEventListener("focus", gh, !0), n.removeEventListener("blur", bh, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", dt, !0), r.removeEventListener("pointermove", dt, !0), r.removeEventListener("pointerup", dt, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", dt, !0), r.removeEventListener("mousemove", dt, !0), r.removeEventListener("mouseup", dt, !0)), Zr.delete(n));
|
|
12212
12212
|
};
|
|
12213
12213
|
function Fx(e) {
|
|
@@ -12219,7 +12219,7 @@ function Fx(e) {
|
|
|
12219
12219
|
}
|
|
12220
12220
|
typeof document < "u" && Fx();
|
|
12221
12221
|
function wh() {
|
|
12222
|
-
return
|
|
12222
|
+
return Mo !== "pointer";
|
|
12223
12223
|
}
|
|
12224
12224
|
const jx = /* @__PURE__ */ new Set([
|
|
12225
12225
|
"checkbox",
|
|
@@ -12234,16 +12234,16 @@ const jx = /* @__PURE__ */ new Set([
|
|
|
12234
12234
|
]);
|
|
12235
12235
|
function _x(e, t, n) {
|
|
12236
12236
|
let r = Tn(n == null ? void 0 : n.target);
|
|
12237
|
-
const o = typeof window < "u" ?
|
|
12238
|
-
return e = e || r.activeElement instanceof o && !jx.has(r.activeElement.type) || r.activeElement instanceof s || r.activeElement instanceof i && r.activeElement.isContentEditable, !(e && t === "keyboard" && n instanceof c && !
|
|
12237
|
+
const o = typeof window < "u" ? Mn(n == null ? void 0 : n.target).HTMLInputElement : HTMLInputElement, s = typeof window < "u" ? Mn(n == null ? void 0 : n.target).HTMLTextAreaElement : HTMLTextAreaElement, i = typeof window < "u" ? Mn(n == null ? void 0 : n.target).HTMLElement : HTMLElement, c = typeof window < "u" ? Mn(n == null ? void 0 : n.target).KeyboardEvent : KeyboardEvent;
|
|
12238
|
+
return e = e || r.activeElement instanceof o && !jx.has(r.activeElement.type) || r.activeElement instanceof s || r.activeElement instanceof i && r.activeElement.isContentEditable, !(e && t === "keyboard" && n instanceof c && !Mx[n.key]);
|
|
12239
12239
|
}
|
|
12240
12240
|
function Ux(e, t, n) {
|
|
12241
12241
|
Da(), Ae(() => {
|
|
12242
12242
|
let r = (o, s) => {
|
|
12243
12243
|
_x(!!(n != null && n.isTextInput), o, s) && e(wh());
|
|
12244
12244
|
};
|
|
12245
|
-
return
|
|
12246
|
-
|
|
12245
|
+
return ka.add(r), () => {
|
|
12246
|
+
ka.delete(r);
|
|
12247
12247
|
};
|
|
12248
12248
|
}, t);
|
|
12249
12249
|
}
|
|
@@ -12899,15 +12899,15 @@ let Lh = class extends Map {
|
|
|
12899
12899
|
return n === void 0 && (n = this.factory(t), this.set(t, n)), n;
|
|
12900
12900
|
}
|
|
12901
12901
|
};
|
|
12902
|
-
var LE = Object.defineProperty,
|
|
12902
|
+
var LE = Object.defineProperty, kE = (e, t, n) => t in e ? LE(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ME = (e, t, n) => (kE(e, t + "", n), n), kh = (e, t, n) => {
|
|
12903
12903
|
if (!t.has(e)) throw TypeError("Cannot " + n);
|
|
12904
|
-
}, ct = (e, t, n) => (
|
|
12904
|
+
}, ct = (e, t, n) => (kh(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ki = (e, t, n) => {
|
|
12905
12905
|
if (t.has(e)) throw TypeError("Cannot add the same private member more than once");
|
|
12906
12906
|
t instanceof WeakSet ? t.add(e) : t.set(e, n);
|
|
12907
|
-
},
|
|
12908
|
-
let
|
|
12907
|
+
}, ku = (e, t, n, r) => (kh(e, t, "write to private field"), t.set(e, n), n), Lt, Hr, Wr;
|
|
12908
|
+
let Mh = class {
|
|
12909
12909
|
constructor(t) {
|
|
12910
|
-
|
|
12910
|
+
ki(this, Lt, {}), ki(this, Hr, new Lh(() => /* @__PURE__ */ new Set())), ki(this, Wr, /* @__PURE__ */ new Set()), ME(this, "disposables", It()), ku(this, Lt, t), jt.isServer && this.disposables.microTask(() => {
|
|
12911
12911
|
this.dispose();
|
|
12912
12912
|
});
|
|
12913
12913
|
}
|
|
@@ -12934,7 +12934,7 @@ let kh = class {
|
|
|
12934
12934
|
send(t) {
|
|
12935
12935
|
let n = this.reduce(ct(this, Lt), t);
|
|
12936
12936
|
if (n !== ct(this, Lt)) {
|
|
12937
|
-
|
|
12937
|
+
ku(this, Lt, n);
|
|
12938
12938
|
for (let r of ct(this, Wr)) {
|
|
12939
12939
|
let o = r.selector(ct(this, Lt));
|
|
12940
12940
|
Dh(r.current, o) || (r.current = o, r.callback(o));
|
|
@@ -12945,16 +12945,16 @@ let kh = class {
|
|
|
12945
12945
|
};
|
|
12946
12946
|
Lt = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap();
|
|
12947
12947
|
function Dh(e, t) {
|
|
12948
|
-
return Object.is(e, t) ? !0 : typeof e != "object" || e === null || typeof t != "object" || t === null ? !1 : Array.isArray(e) && Array.isArray(t) ? e.length !== t.length ? !1 :
|
|
12948
|
+
return Object.is(e, t) ? !0 : typeof e != "object" || e === null || typeof t != "object" || t === null ? !1 : Array.isArray(e) && Array.isArray(t) ? e.length !== t.length ? !1 : Mi(e[Symbol.iterator](), t[Symbol.iterator]()) : e instanceof Map && t instanceof Map || e instanceof Set && t instanceof Set ? e.size !== t.size ? !1 : Mi(e.entries(), t.entries()) : Mu(e) && Mu(t) ? Mi(Object.entries(e)[Symbol.iterator](), Object.entries(t)[Symbol.iterator]()) : !1;
|
|
12949
12949
|
}
|
|
12950
|
-
function
|
|
12950
|
+
function Mi(e, t) {
|
|
12951
12951
|
do {
|
|
12952
12952
|
let n = e.next(), r = t.next();
|
|
12953
12953
|
if (n.done && r.done) return !0;
|
|
12954
12954
|
if (n.done || r.done || !Object.is(n.value, r.value)) return !1;
|
|
12955
12955
|
} while (!0);
|
|
12956
12956
|
}
|
|
12957
|
-
function
|
|
12957
|
+
function Mu(e) {
|
|
12958
12958
|
if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
|
|
12959
12959
|
let t = Object.getPrototypeOf(e);
|
|
12960
12960
|
return t === null || Object.getPrototypeOf(t) === null;
|
|
@@ -12978,7 +12978,7 @@ let jE = { 0(e, t) {
|
|
|
12978
12978
|
if (r === -1) return e;
|
|
12979
12979
|
let o = e.stack.slice();
|
|
12980
12980
|
return o.splice(r, 1), { ...e, stack: o };
|
|
12981
|
-
} }, _E = class jh extends
|
|
12981
|
+
} }, _E = class jh extends Mh {
|
|
12982
12982
|
constructor() {
|
|
12983
12983
|
super(...arguments), Du(this, "actions", { push: (t) => this.send({ type: 0, id: t }), pop: (t) => this.send({ type: 1, id: t }) }), Du(this, "selectors", { isTop: (t, n) => t.stack[t.stack.length - 1] === n, inStack: (t, n) => t.stack.includes(n) });
|
|
12984
12984
|
}
|
|
@@ -13689,14 +13689,14 @@ function Zh(e) {
|
|
|
13689
13689
|
function al(e) {
|
|
13690
13690
|
return e === "y" ? "height" : "width";
|
|
13691
13691
|
}
|
|
13692
|
-
const
|
|
13692
|
+
const k2 = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
13693
13693
|
function en(e) {
|
|
13694
|
-
return
|
|
13694
|
+
return k2.has(Pn(e)) ? "y" : "x";
|
|
13695
13695
|
}
|
|
13696
13696
|
function cl(e) {
|
|
13697
13697
|
return Zh(en(e));
|
|
13698
13698
|
}
|
|
13699
|
-
function
|
|
13699
|
+
function M2(e, t, n) {
|
|
13700
13700
|
n === void 0 && (n = !1);
|
|
13701
13701
|
const r = Lr(e), o = cl(e), s = al(o);
|
|
13702
13702
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
@@ -14164,7 +14164,7 @@ const c6 = (e) => ({
|
|
|
14164
14164
|
const F = [c, ...L], g = await ei(t, w), v = [];
|
|
14165
14165
|
let P = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
14166
14166
|
if (u && v.push(g[$]), d) {
|
|
14167
|
-
const E =
|
|
14167
|
+
const E = M2(o, i, B);
|
|
14168
14168
|
v.push(g[E[0]], g[E[1]]);
|
|
14169
14169
|
}
|
|
14170
14170
|
if (P = [...P, {
|
|
@@ -14198,7 +14198,7 @@ const c6 = (e) => ({
|
|
|
14198
14198
|
I === "y";
|
|
14199
14199
|
}
|
|
14200
14200
|
return !0;
|
|
14201
|
-
}).map((b) => [b.placement, b.overflows.filter((I) => I > 0).reduce((I,
|
|
14201
|
+
}).map((b) => [b.placement, b.overflows.filter((I) => I > 0).reduce((I, M) => I + M, 0)]).sort((b, I) => b[1] - I[1])[0]) == null ? void 0 : S[0];
|
|
14202
14202
|
R && (T = R);
|
|
14203
14203
|
break;
|
|
14204
14204
|
}
|
|
@@ -14736,7 +14736,7 @@ function a0(e, t, n, r) {
|
|
|
14736
14736
|
}), d == null || d(), ($ = p) == null || $.disconnect(), p = null, a && cancelAnimationFrame(h);
|
|
14737
14737
|
};
|
|
14738
14738
|
}
|
|
14739
|
-
const Ui = ei, I6 = d6, C6 = p6, B6 = l6, L6 = h6, nf = c6,
|
|
14739
|
+
const Ui = ei, I6 = d6, C6 = p6, B6 = l6, L6 = h6, nf = c6, k6 = (e, t, n) => {
|
|
14740
14740
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
14741
14741
|
platform: O6,
|
|
14742
14742
|
...n
|
|
@@ -14749,8 +14749,8 @@ const Ui = ei, I6 = d6, C6 = p6, B6 = l6, L6 = h6, nf = c6, M6 = (e, t, n) => {
|
|
|
14749
14749
|
platform: s
|
|
14750
14750
|
});
|
|
14751
14751
|
};
|
|
14752
|
-
var
|
|
14753
|
-
}, cs =
|
|
14752
|
+
var M6 = typeof document < "u", D6 = function() {
|
|
14753
|
+
}, cs = M6 ? Os : D6;
|
|
14754
14754
|
function As(e, t) {
|
|
14755
14755
|
if (e === t)
|
|
14756
14756
|
return !0;
|
|
@@ -14829,8 +14829,8 @@ function l0(e) {
|
|
|
14829
14829
|
strategy: n,
|
|
14830
14830
|
middleware: f
|
|
14831
14831
|
};
|
|
14832
|
-
N.current && (b.platform = N.current),
|
|
14833
|
-
const
|
|
14832
|
+
N.current && (b.platform = N.current), k6(D.current, F.current, b).then((I) => {
|
|
14833
|
+
const M = {
|
|
14834
14834
|
...I,
|
|
14835
14835
|
// The floating element's position may be recomputed while it's closed
|
|
14836
14836
|
// but still mounted (such as when transitioning out). To ensure
|
|
@@ -14838,8 +14838,8 @@ function l0(e) {
|
|
|
14838
14838
|
// setting it to `true` when `open === false` (must be specified).
|
|
14839
14839
|
isPositioned: O.current !== !1
|
|
14840
14840
|
};
|
|
14841
|
-
E.current && !As(g.current,
|
|
14842
|
-
d(
|
|
14841
|
+
E.current && !As(g.current, M) && (g.current = M, Xr.flushSync(() => {
|
|
14842
|
+
d(M);
|
|
14843
14843
|
}));
|
|
14844
14844
|
});
|
|
14845
14845
|
}, [f, t, n, N, O]);
|
|
@@ -14875,17 +14875,17 @@ function l0(e) {
|
|
|
14875
14875
|
};
|
|
14876
14876
|
if (!T.floating)
|
|
14877
14877
|
return b;
|
|
14878
|
-
const I = rf(T.floating, u.x),
|
|
14878
|
+
const I = rf(T.floating, u.x), M = rf(T.floating, u.y);
|
|
14879
14879
|
return c ? {
|
|
14880
14880
|
...b,
|
|
14881
|
-
transform: "translate(" + I + "px, " +
|
|
14881
|
+
transform: "translate(" + I + "px, " + M + "px)",
|
|
14882
14882
|
...c0(T.floating) >= 1.5 && {
|
|
14883
14883
|
willChange: "transform"
|
|
14884
14884
|
}
|
|
14885
14885
|
} : {
|
|
14886
14886
|
position: n,
|
|
14887
14887
|
left: I,
|
|
14888
|
-
top:
|
|
14888
|
+
top: M
|
|
14889
14889
|
};
|
|
14890
14890
|
}, [n, c, T.floating, u.x, u.y]);
|
|
14891
14891
|
return U.useMemo(() => ({
|
|
@@ -15267,23 +15267,23 @@ function s5(e, t) {
|
|
|
15267
15267
|
floating: f
|
|
15268
15268
|
} : {}, [o, f]);
|
|
15269
15269
|
}
|
|
15270
|
-
let
|
|
15270
|
+
let kr = Fe({ styles: void 0, setReference: () => {
|
|
15271
15271
|
}, setFloating: () => {
|
|
15272
15272
|
}, getReferenceProps: () => ({}), getFloatingProps: () => ({}), slot: {} });
|
|
15273
|
-
|
|
15273
|
+
kr.displayName = "FloatingContext";
|
|
15274
15274
|
let fl = Fe(null);
|
|
15275
15275
|
fl.displayName = "PlacementContext";
|
|
15276
15276
|
function i5(e) {
|
|
15277
15277
|
return J(() => e ? typeof e == "string" ? { to: e } : e : null, [e]);
|
|
15278
15278
|
}
|
|
15279
15279
|
function a5() {
|
|
15280
|
-
return Pe(
|
|
15280
|
+
return Pe(kr).setReference;
|
|
15281
15281
|
}
|
|
15282
15282
|
function c5() {
|
|
15283
|
-
return Pe(
|
|
15283
|
+
return Pe(kr).getReferenceProps;
|
|
15284
15284
|
}
|
|
15285
15285
|
function l5() {
|
|
15286
|
-
let { getFloatingProps: e, slot: t } = Pe(
|
|
15286
|
+
let { getFloatingProps: e, slot: t } = Pe(kr);
|
|
15287
15287
|
return ee((...n) => Object.assign({}, e(...n), { "data-anchor": t.anchor }), [e, t]);
|
|
15288
15288
|
}
|
|
15289
15289
|
function u5(e = null) {
|
|
@@ -15295,7 +15295,7 @@ function u5(e = null) {
|
|
|
15295
15295
|
ve(() => {
|
|
15296
15296
|
t == null || t(n ?? null);
|
|
15297
15297
|
}, [t, n]);
|
|
15298
|
-
let r = Pe(
|
|
15298
|
+
let r = Pe(kr);
|
|
15299
15299
|
return J(() => [r.setFloating, e ? r.styles : {}], [r.setFloating, e, r.styles]);
|
|
15300
15300
|
}
|
|
15301
15301
|
let uf = 4;
|
|
@@ -15313,16 +15313,16 @@ function f5({ children: e, enabled: t = !0 }) {
|
|
|
15313
15313
|
if (!E) return;
|
|
15314
15314
|
let x = parseFloat(getComputedStyle(E).scrollPaddingBottom) || 0, T = Math.min(uf, E.childElementCount), R = 0, b = 0;
|
|
15315
15315
|
for (let I of (S = (O = A.elements.floating) == null ? void 0 : O.childNodes) != null ? S : []) if (pn(I)) {
|
|
15316
|
-
let
|
|
15317
|
-
if (
|
|
15316
|
+
let M = I.offsetTop, _ = M + I.clientHeight + x, j = E.scrollTop, z = j + E.clientHeight;
|
|
15317
|
+
if (M >= j && _ <= z) T--;
|
|
15318
15318
|
else {
|
|
15319
|
-
b = Math.max(0, Math.min(_, z) - Math.max(
|
|
15319
|
+
b = Math.max(0, Math.min(_, z) - Math.max(M, j)), R = I.clientHeight;
|
|
15320
15320
|
break;
|
|
15321
15321
|
}
|
|
15322
15322
|
}
|
|
15323
15323
|
T >= 1 && s((I) => {
|
|
15324
|
-
let
|
|
15325
|
-
return I >=
|
|
15324
|
+
let M = R * T - b + x;
|
|
15325
|
+
return I >= M ? I : M;
|
|
15326
15326
|
});
|
|
15327
15327
|
} }) : null, j6({ padding: p, apply({ availableWidth: N, availableHeight: O, elements: S }) {
|
|
15328
15328
|
Object.assign(S.floating.style, { overflow: "auto", maxWidth: `${N}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${O}px)` });
|
|
@@ -15331,7 +15331,7 @@ function f5({ children: e, enabled: t = !0 }) {
|
|
|
15331
15331
|
let D = J(() => ({ anchor: [B, L].filter(Boolean).join(" ") }), [B, L]), F = s5(A, { overflowRef: i, onChange: s }), { getReferenceProps: g, getFloatingProps: v } = r5([F]), P = pe((N) => {
|
|
15332
15332
|
a(N), $.setFloating(N);
|
|
15333
15333
|
});
|
|
15334
|
-
return U.createElement(fl.Provider, { value: r }, U.createElement(
|
|
15334
|
+
return U.createElement(fl.Provider, { value: r }, U.createElement(kr.Provider, { value: { setFloating: P, setReference: $.setReference, styles: y, getReferenceProps: g, getFloatingProps: v, slot: D } }, e));
|
|
15335
15335
|
}
|
|
15336
15336
|
function d5(e) {
|
|
15337
15337
|
ve(() => {
|
|
@@ -15597,7 +15597,7 @@ function C5(e, t) {
|
|
|
15597
15597
|
}, [A, P, x, B]);
|
|
15598
15598
|
let T = v && !g, R = g && F && v, b = ce(!1), I = x0(() => {
|
|
15599
15599
|
b.current || (N("hidden"), E(A));
|
|
15600
|
-
}, O),
|
|
15600
|
+
}, O), M = pe((V) => {
|
|
15601
15601
|
b.current = !0;
|
|
15602
15602
|
let te = V ? "enter" : "leave";
|
|
15603
15603
|
I.onStart(A, te, (oe) => {
|
|
@@ -15610,9 +15610,9 @@ function C5(e, t) {
|
|
|
15610
15610
|
}), te === "leave" && !oi(I) && (N("hidden"), E(A));
|
|
15611
15611
|
});
|
|
15612
15612
|
Ae(() => {
|
|
15613
|
-
B && o || (
|
|
15613
|
+
B && o || (M(F), _(F));
|
|
15614
15614
|
}, [F, B, o]);
|
|
15615
|
-
let j = !(!o || !B || !x || T), [, z] = Gh(j, $, F, { start:
|
|
15615
|
+
let j = !(!o || !B || !x || T), [, z] = Gh(j, $, F, { start: M, end: _ }), K = bn({ ref: L, className: ((r = ja(w.className, R && l, R && u, z.enter && l, z.enter && z.closed && u, z.enter && !z.closed && d, z.leave && p, z.leave && !z.closed && h, z.leave && z.closed && m, !z.transition && F && f)) == null ? void 0 : r.trim()) || void 0, ...Vh(z) }), H = 0;
|
|
15616
15616
|
P === "visible" && (H |= Pt.Open), P === "hidden" && (H |= Pt.Closed), F && P === "hidden" && (H |= Pt.Opening), !F && P === "visible" && (H |= Pt.Closing);
|
|
15617
15617
|
let q = ot();
|
|
15618
15618
|
return Z.createElement(ri.Provider, { value: I }, Z.createElement(m0, { value: H }, q({ ourProps: K, theirProps: w, defaultTag: E0, features: S0, visible: P === "visible", name: "Transition.Child" })));
|
|
@@ -15645,7 +15645,7 @@ function L5(e, t) {
|
|
|
15645
15645
|
let n = Pe(ni) !== null, r = pl() !== null;
|
|
15646
15646
|
return Z.createElement(Z.Fragment, null, !n && r ? Z.createElement(Xa, { ref: t, ...e }) : Z.createElement(P0, { ref: t, ...e }));
|
|
15647
15647
|
}
|
|
15648
|
-
let Xa = et(B5), P0 = et(C5),
|
|
15648
|
+
let Xa = et(B5), P0 = et(C5), k5 = et(L5), M5 = Object.assign(Xa, { Child: k5, Root: Xa });
|
|
15649
15649
|
function D5(e, t) {
|
|
15650
15650
|
let n = ce({ left: 0, top: 0 });
|
|
15651
15651
|
if (ve(() => {
|
|
@@ -15694,7 +15694,7 @@ function j5(e) {
|
|
|
15694
15694
|
return t.current = o, n.current = s, s;
|
|
15695
15695
|
});
|
|
15696
15696
|
}
|
|
15697
|
-
var _5 = Object.defineProperty, U5 = (e, t, n) => t in e ? _5(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, hf = (e, t, n) => (U5(e, typeof t != "symbol" ? t + "" : t, n), n),
|
|
15697
|
+
var _5 = Object.defineProperty, U5 = (e, t, n) => t in e ? _5(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, hf = (e, t, n) => (U5(e, typeof t != "symbol" ? t + "" : t, n), n), ke = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(ke || {}), Dt = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(Dt || {}), ls = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(ls || {}), A0 = ((e) => (e[e.OpenListbox = 0] = "OpenListbox", e[e.CloseListbox = 1] = "CloseListbox", e[e.GoToOption = 2] = "GoToOption", e[e.Search = 3] = "Search", e[e.ClearSearch = 4] = "ClearSearch", e[e.RegisterOptions = 5] = "RegisterOptions", e[e.UnregisterOptions = 6] = "UnregisterOptions", e[e.SetButtonElement = 7] = "SetButtonElement", e[e.SetOptionsElement = 8] = "SetOptionsElement", e[e.SortOptions = 9] = "SortOptions", e))(A0 || {});
|
|
15698
15698
|
function mf(e, t = (n) => n) {
|
|
15699
15699
|
let n = e.activeOptionIndex !== null ? e.options[e.activeOptionIndex] : null, r = Hh(t(e.options.slice()), (s) => s.dataRef.current.domRef.current), o = n ? r.indexOf(n) : null;
|
|
15700
15700
|
return o === -1 && (o = null), { options: r, activeOptionIndex: o };
|
|
@@ -15760,7 +15760,7 @@ let z5 = { 1(e) {
|
|
|
15760
15760
|
}
|
|
15761
15761
|
return { ...e, options: n, activationTrigger: 1 };
|
|
15762
15762
|
}, 7: (e, t) => e.buttonElement === t.element ? e : { ...e, buttonElement: t.element }, 8: (e, t) => e.optionsElement === t.element ? e : { ...e, optionsElement: t.element }, 9: (e) => e.pendingShouldSort ? { ...e, ...mf(e), pendingShouldSort: !1 } : e };
|
|
15763
|
-
class ml extends
|
|
15763
|
+
class ml extends Mh {
|
|
15764
15764
|
constructor(t) {
|
|
15765
15765
|
super(t), hf(this, "actions", { onChange: (n) => {
|
|
15766
15766
|
let { onChange: r, compare: o, mode: s, value: i } = this.state.dataRef.current;
|
|
@@ -15867,14 +15867,14 @@ function W5(e, t) {
|
|
|
15867
15867
|
o2(S, [E, x], (j, z) => {
|
|
15868
15868
|
L.send({ type: A0.CloseListbox }), zh(z, ol.Loose) || (j.preventDefault(), E == null || E.focus());
|
|
15869
15869
|
});
|
|
15870
|
-
let T = J(() => ({ open: N ===
|
|
15870
|
+
let T = J(() => ({ open: N === ke.Open, disabled: d, invalid: u, value: A }), [N, d, u, A]), [R, b] = AE({ inherit: !0 }), I = { ref: $ }, M = ee(() => {
|
|
15871
15871
|
if (y !== void 0) return B == null ? void 0 : B(y);
|
|
15872
15872
|
}, [B, y]), _ = ot();
|
|
15873
|
-
return Z.createElement(b, { value: R, props: { htmlFor: E == null ? void 0 : E.id }, slot: { open: N ===
|
|
15873
|
+
return Z.createElement(b, { value: R, props: { htmlFor: E == null ? void 0 : E.id }, slot: { open: N === ke.Open, disabled: d } }, Z.createElement(f5, null, Z.createElement($0.Provider, { value: L }, Z.createElement(si.Provider, { value: P }, Z.createElement(m0, { value: bt(N, { [ke.Open]: Pt.Open, [ke.Closed]: Pt.Closed }) }, c != null && A != null && Z.createElement(fE, { disabled: d, data: { [c]: A }, form: i, onReset: M }), _({ ourProps: I, theirProps: m, slot: T, defaultTag: H5, name: "Listbox" }))))));
|
|
15874
15874
|
}
|
|
15875
15875
|
let V5 = "button";
|
|
15876
15876
|
function G5(e, t) {
|
|
15877
|
-
let n = Yn(), r = Th(), o = jo("Listbox.Button"), s = gl("Listbox.Button"), { id: i = r || `headlessui-listbox-button-${n}`, disabled: c = o.disabled || !1, autoFocus: a = !1, ...l } = e, u = wt(t, a5(), s.actions.setButtonElement), d = c5(), [f, p, h] = pt(s, (b) => [b.listboxState, b.buttonElement, b.optionsElement]), m = f ===
|
|
15877
|
+
let n = Yn(), r = Th(), o = jo("Listbox.Button"), s = gl("Listbox.Button"), { id: i = r || `headlessui-listbox-button-${n}`, disabled: c = o.disabled || !1, autoFocus: a = !1, ...l } = e, u = wt(t, a5(), s.actions.setButtonElement), d = c5(), [f, p, h] = pt(s, (b) => [b.listboxState, b.buttonElement, b.optionsElement]), m = f === ke.Open;
|
|
15878
15878
|
a2(m, { trigger: p, action: ee((b) => {
|
|
15879
15879
|
if (p != null && p.contains(b.target)) return Qo.Ignore;
|
|
15880
15880
|
let I = b.target.closest('[role="option"]:not([data-disabled])');
|
|
@@ -15903,26 +15903,26 @@ function G5(e, t) {
|
|
|
15903
15903
|
var I;
|
|
15904
15904
|
if (b.button === g0.Left) {
|
|
15905
15905
|
if (yE(b.currentTarget)) return b.preventDefault();
|
|
15906
|
-
s.state.listboxState ===
|
|
15906
|
+
s.state.listboxState === ke.Open ? (Gr(() => s.actions.closeListbox()), (I = s.state.buttonElement) == null || I.focus({ preventScroll: !0 })) : (b.preventDefault(), s.actions.openListbox({ focus: Se.Nothing }));
|
|
15907
15907
|
}
|
|
15908
15908
|
}), A = ce(null), B = pe((b) => {
|
|
15909
15909
|
A.current = b.pointerType, b.pointerType === "mouse" && y(b);
|
|
15910
15910
|
}), L = pe((b) => {
|
|
15911
15911
|
A.current !== "mouse" && y(b);
|
|
15912
|
-
}), D = pe((b) => b.preventDefault()), F = Bh([i]), g = xE(), { isFocusVisible: v, focusProps: P } = Gx({ autoFocus: a }), { isHovered: N, hoverProps: O } = Vx({ isDisabled: c }), { pressed: S, pressProps: E } = Qx({ disabled: c }), x = J(() => ({ open: f ===
|
|
15912
|
+
}), D = pe((b) => b.preventDefault()), F = Bh([i]), g = xE(), { isFocusVisible: v, focusProps: P } = Gx({ autoFocus: a }), { isHovered: N, hoverProps: O } = Vx({ isDisabled: c }), { pressed: S, pressProps: E } = Qx({ disabled: c }), x = J(() => ({ open: f === ke.Open, active: S || f === ke.Open, disabled: c, invalid: o.invalid, value: o.value, hover: N, focus: v, autofocus: a }), [f, o.value, c, N, v, S, o.invalid, a]), T = pt(s, (b) => b.listboxState === ke.Open), R = Eh(d(), { ref: u, id: i, type: c2(e, p), "aria-haspopup": "listbox", "aria-controls": h == null ? void 0 : h.id, "aria-expanded": T, "aria-labelledby": F, "aria-describedby": g, disabled: c || void 0, autoFocus: a, onKeyDown: w, onKeyUp: $, onKeyPress: D, onPointerDown: B, onClick: L }, P, O, E);
|
|
15913
15913
|
return ot()({ ourProps: R, theirProps: l, slot: x, defaultTag: V5, name: "Listbox.Button" });
|
|
15914
15914
|
}
|
|
15915
15915
|
let R0 = Fe(!1), q5 = "div", Z5 = vs.RenderStrategy | vs.Static;
|
|
15916
15916
|
function K5(e, t) {
|
|
15917
15917
|
let n = Yn(), { id: r = `headlessui-listbox-options-${n}`, anchor: o, portal: s = !1, modal: i = !0, transition: c = !1, ...a } = e, l = i5(o), [u, d] = le(null);
|
|
15918
15918
|
l && (s = !0);
|
|
15919
|
-
let f = jo("Listbox.Options"), p = gl("Listbox.Options"), [h, m, w, $] = pt(p, (V) => [V.listboxState, V.buttonElement, V.optionsElement, V.__demoMode]), y = Wa(m), A = Wa(w), B = pl(), [L, D] = Gh(c, u, B !== null ? (B & Pt.Open) === Pt.Open : h ===
|
|
15919
|
+
let f = jo("Listbox.Options"), p = gl("Listbox.Options"), [h, m, w, $] = pt(p, (V) => [V.listboxState, V.buttonElement, V.optionsElement, V.__demoMode]), y = Wa(m), A = Wa(w), B = pl(), [L, D] = Gh(c, u, B !== null ? (B & Pt.Open) === Pt.Open : h === ke.Open);
|
|
15920
15920
|
GE(L, m, p.actions.closeListbox);
|
|
15921
|
-
let F = $ ? !1 : i && h ===
|
|
15921
|
+
let F = $ ? !1 : i && h === ke.Open;
|
|
15922
15922
|
g2(F, A);
|
|
15923
|
-
let g = $ ? !1 : i && h ===
|
|
15923
|
+
let g = $ ? !1 : i && h === ke.Open;
|
|
15924
15924
|
VE(g, { allowed: ee(() => [m, w], [m, w]) });
|
|
15925
|
-
let v = h !==
|
|
15925
|
+
let v = h !== ke.Open, P = D5(v, m) ? !1 : L, N = L && h === ke.Closed, O = h5(N, f.value), S = pe((V) => f.compare(O, V)), E = pt(p, (V) => {
|
|
15926
15926
|
var te;
|
|
15927
15927
|
if (l == null || !((te = l == null ? void 0 : l.to) != null && te.includes("selection"))) return null;
|
|
15928
15928
|
let oe = V.options.findIndex((de) => S(de.dataRef.current.value));
|
|
@@ -15932,15 +15932,15 @@ function K5(e, t) {
|
|
|
15932
15932
|
if (E === null) return { ...l, inner: void 0 };
|
|
15933
15933
|
let V = Array.from(f.listRef.current.values());
|
|
15934
15934
|
return { ...l, inner: { listRef: { current: V }, index: E } };
|
|
15935
|
-
})(), [T, R] = u5(x), b = l5(), I = wt(t, l ? T : null, p.actions.setOptionsElement, d),
|
|
15935
|
+
})(), [T, R] = u5(x), b = l5(), I = wt(t, l ? T : null, p.actions.setOptionsElement, d), M = Cr();
|
|
15936
15936
|
Ae(() => {
|
|
15937
15937
|
var V;
|
|
15938
15938
|
let te = w;
|
|
15939
|
-
te && h ===
|
|
15939
|
+
te && h === ke.Open && te !== ((V = Do(te)) == null ? void 0 : V.activeElement) && (te == null || te.focus({ preventScroll: !0 }));
|
|
15940
15940
|
}, [h, w]);
|
|
15941
15941
|
let _ = pe((V) => {
|
|
15942
15942
|
var te, oe;
|
|
15943
|
-
switch (
|
|
15943
|
+
switch (M.dispose(), V.key) {
|
|
15944
15944
|
case Le.Space:
|
|
15945
15945
|
if (p.state.searchQuery !== "") return V.preventDefault(), V.stopPropagation(), p.actions.search(V.key);
|
|
15946
15946
|
case Le.Enter:
|
|
@@ -15967,13 +15967,13 @@ function K5(e, t) {
|
|
|
15967
15967
|
V.preventDefault(), V.stopPropagation(), Gr(() => p.actions.closeListbox()), e2(p.state.buttonElement, V.shiftKey ? Ha.Previous : Ha.Next);
|
|
15968
15968
|
break;
|
|
15969
15969
|
default:
|
|
15970
|
-
V.key.length === 1 && (p.actions.search(V.key),
|
|
15970
|
+
V.key.length === 1 && (p.actions.search(V.key), M.setTimeout(() => p.actions.clearSearch(), 350));
|
|
15971
15971
|
break;
|
|
15972
15972
|
}
|
|
15973
15973
|
}), j = pt(p, (V) => {
|
|
15974
15974
|
var te;
|
|
15975
15975
|
return (te = V.buttonElement) == null ? void 0 : te.id;
|
|
15976
|
-
}), z = J(() => ({ open: h ===
|
|
15976
|
+
}), z = J(() => ({ open: h === ke.Open }), [h]), K = Eh(l ? b() : {}, { id: r, ref: I, "aria-activedescendant": pt(p, p.selectors.activeDescendantId), "aria-multiselectable": f.mode === Dt.Multi ? !0 : void 0, "aria-labelledby": j, "aria-orientation": f.orientation, onKeyDown: _, role: "listbox", tabIndex: h === ke.Open ? 0 : void 0, style: { ...a.style, ...R, "--button-width": BE(m, !0).width }, ...Vh(D) }), H = ot(), q = J(() => f.mode === Dt.Multi ? f : { ...f, isSelected: S }, [f, S]);
|
|
15977
15977
|
return Z.createElement(T5, { enabled: s ? e.static || L : !1, ownerDocument: y }, Z.createElement(si.Provider, { value: q }, H({ ourProps: K, theirProps: a, slot: z, defaultTag: q5, features: Z5, visible: P, name: "Listbox.Options" })));
|
|
15978
15978
|
}
|
|
15979
15979
|
let Y5 = "div";
|
|
@@ -16075,7 +16075,7 @@ const iS = () => /* @__PURE__ */ C.jsxs(
|
|
|
16075
16075
|
};
|
|
16076
16076
|
class St {
|
|
16077
16077
|
}
|
|
16078
|
-
|
|
16078
|
+
Mr(St, "FAST", 3), Mr(St, "Medium", 2), Mr(St, "SLOW", 1), Mr(St, "NONE", 0);
|
|
16079
16079
|
const cS = {
|
|
16080
16080
|
MAINNET: 1,
|
|
16081
16081
|
// ETH 主网
|
|
@@ -16166,7 +16166,7 @@ const cS = {
|
|
|
16166
16166
|
}
|
|
16167
16167
|
),
|
|
16168
16168
|
/* @__PURE__ */ C.jsx(
|
|
16169
|
-
|
|
16169
|
+
M5,
|
|
16170
16170
|
{
|
|
16171
16171
|
as: ht,
|
|
16172
16172
|
enter: "transition ease-out duration-100",
|
|
@@ -16562,12 +16562,12 @@ var OS = ii, ec = OS.CopyToClipboard;
|
|
|
16562
16562
|
ec.CopyToClipboard = ec;
|
|
16563
16563
|
var NS = ec;
|
|
16564
16564
|
const IS = /* @__PURE__ */ Rm(NS);
|
|
16565
|
-
var CS = Object.defineProperty, Ts = Object.getOwnPropertySymbols, L0 = Object.prototype.hasOwnProperty,
|
|
16565
|
+
var CS = Object.defineProperty, Ts = Object.getOwnPropertySymbols, L0 = Object.prototype.hasOwnProperty, k0 = Object.prototype.propertyIsEnumerable, wf = (e, t, n) => t in e ? CS(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, tc = (e, t) => {
|
|
16566
16566
|
for (var n in t || (t = {}))
|
|
16567
16567
|
L0.call(t, n) && wf(e, n, t[n]);
|
|
16568
16568
|
if (Ts)
|
|
16569
16569
|
for (var n of Ts(t))
|
|
16570
|
-
|
|
16570
|
+
k0.call(t, n) && wf(e, n, t[n]);
|
|
16571
16571
|
return e;
|
|
16572
16572
|
}, nc = (e, t) => {
|
|
16573
16573
|
var n = {};
|
|
@@ -16575,7 +16575,7 @@ var CS = Object.defineProperty, Ts = Object.getOwnPropertySymbols, L0 = Object.p
|
|
|
16575
16575
|
L0.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
16576
16576
|
if (e != null && Ts)
|
|
16577
16577
|
for (var r of Ts(e))
|
|
16578
|
-
t.indexOf(r) < 0 &&
|
|
16578
|
+
t.indexOf(r) < 0 && k0.call(e, r) && (n[r] = e[r]);
|
|
16579
16579
|
return n;
|
|
16580
16580
|
};
|
|
16581
16581
|
/**
|
|
@@ -17129,7 +17129,7 @@ var BS = {
|
|
|
17129
17129
|
M: fr.QrCode.Ecc.MEDIUM,
|
|
17130
17130
|
Q: fr.QrCode.Ecc.QUARTILE,
|
|
17131
17131
|
H: fr.QrCode.Ecc.HIGH
|
|
17132
|
-
},
|
|
17132
|
+
}, M0 = 128, D0 = "L", F0 = "#FFFFFF", j0 = "#000000", _0 = !1, U0 = 1, LS = 4, kS = 0, MS = 0.1;
|
|
17133
17133
|
function z0(e, t = 0) {
|
|
17134
17134
|
const n = [];
|
|
17135
17135
|
return e.forEach(function(r, o) {
|
|
@@ -17159,7 +17159,7 @@ function H0(e, t) {
|
|
|
17159
17159
|
function DS(e, t, n, r) {
|
|
17160
17160
|
if (r == null)
|
|
17161
17161
|
return null;
|
|
17162
|
-
const o = e.length + n * 2, s = Math.floor(t *
|
|
17162
|
+
const o = e.length + n * 2, s = Math.floor(t * MS), i = o / t, c = (r.width || s) * i, a = (r.height || s) * i, l = r.x == null ? e.length / 2 - c / 2 : r.x * i, u = r.y == null ? e.length / 2 - a / 2 : r.y * i, d = r.opacity == null ? 1 : r.opacity;
|
|
17163
17163
|
let f = null;
|
|
17164
17164
|
if (r.excavate) {
|
|
17165
17165
|
let h = Math.floor(l), m = Math.floor(u), w = Math.ceil(c + l - h), $ = Math.ceil(a + u - m);
|
|
@@ -17169,7 +17169,7 @@ function DS(e, t, n, r) {
|
|
|
17169
17169
|
return { x: l, y: u, h: a, w: c, excavation: f, opacity: d, crossOrigin: p };
|
|
17170
17170
|
}
|
|
17171
17171
|
function FS(e, t) {
|
|
17172
|
-
return t != null ? Math.max(Math.floor(t), 0) : e ? LS :
|
|
17172
|
+
return t != null ? Math.max(Math.floor(t), 0) : e ? LS : kS;
|
|
17173
17173
|
}
|
|
17174
17174
|
function W0({
|
|
17175
17175
|
value: e,
|
|
@@ -17226,7 +17226,7 @@ var jS = function() {
|
|
|
17226
17226
|
function(t, n) {
|
|
17227
17227
|
const r = t, {
|
|
17228
17228
|
value: o,
|
|
17229
|
-
size: s =
|
|
17229
|
+
size: s = M0,
|
|
17230
17230
|
level: i = D0,
|
|
17231
17231
|
bgColor: c = F0,
|
|
17232
17232
|
fgColor: a = j0,
|
|
@@ -17274,8 +17274,8 @@ var jS = function() {
|
|
|
17274
17274
|
));
|
|
17275
17275
|
const I = window.devicePixelRatio || 1;
|
|
17276
17276
|
E.height = E.width = s * I;
|
|
17277
|
-
const
|
|
17278
|
-
x.scale(
|
|
17277
|
+
const M = s / P * I;
|
|
17278
|
+
x.scale(M, M), x.fillStyle = c, x.fillRect(0, 0, P, P), x.fillStyle = a, jS ? x.fill(new Path2D(z0(T, g))) : v.forEach(function(_, j) {
|
|
17279
17279
|
_.forEach(function(z, K) {
|
|
17280
17280
|
z && x.fillRect(K + g, j + g, 1, 1);
|
|
17281
17281
|
});
|
|
@@ -17321,7 +17321,7 @@ var V0 = Z.forwardRef(
|
|
|
17321
17321
|
function(t, n) {
|
|
17322
17322
|
const r = t, {
|
|
17323
17323
|
value: o,
|
|
17324
|
-
size: s =
|
|
17324
|
+
size: s = M0,
|
|
17325
17325
|
level: i = D0,
|
|
17326
17326
|
bgColor: c = F0,
|
|
17327
17327
|
fgColor: a = j0,
|
|
@@ -17499,7 +17499,7 @@ function rs(e) {
|
|
|
17499
17499
|
}), t;
|
|
17500
17500
|
}
|
|
17501
17501
|
const JS = QS.useInsertionEffect, eP = JS || ((e) => e());
|
|
17502
|
-
function
|
|
17502
|
+
function kt(e) {
|
|
17503
17503
|
const t = U.useRef(() => {
|
|
17504
17504
|
if (process.env.NODE_ENV !== "production")
|
|
17505
17505
|
throw new Error("Cannot call an event handler while rendering.");
|
|
@@ -17634,7 +17634,7 @@ function pP(e, t) {
|
|
|
17634
17634
|
restMs: d = 0,
|
|
17635
17635
|
move: f = !0
|
|
17636
17636
|
} = t, p = vl(), h = wl(), m = rs(l), w = rs(a), $ = rs(n), y = rs(d), A = U.useRef(), B = U.useRef(-1), L = U.useRef(), D = U.useRef(-1), F = U.useRef(!0), g = U.useRef(!1), v = U.useRef(() => {
|
|
17637
|
-
}), P = U.useRef(!1), N =
|
|
17637
|
+
}), P = U.useRef(!1), N = kt(() => {
|
|
17638
17638
|
var R;
|
|
17639
17639
|
const b = (R = o.current.openEvent) == null ? void 0 : R.type;
|
|
17640
17640
|
return (b == null ? void 0 : b.includes("mouse")) && b !== "mousedown";
|
|
@@ -17662,16 +17662,16 @@ function pP(e, t) {
|
|
|
17662
17662
|
}, [i.floating, n, r, c, m, N]);
|
|
17663
17663
|
const O = U.useCallback(function(R, b, I) {
|
|
17664
17664
|
b === void 0 && (b = !0), I === void 0 && (I = "hover");
|
|
17665
|
-
const
|
|
17666
|
-
|
|
17667
|
-
}, [w, r]), S =
|
|
17665
|
+
const M = qi(w.current, "close", A.current);
|
|
17666
|
+
M && !L.current ? (ft(B), B.current = window.setTimeout(() => r(!1, R, I), M)) : b && (ft(B), r(!1, R, I));
|
|
17667
|
+
}, [w, r]), S = kt(() => {
|
|
17668
17668
|
v.current(), L.current = void 0;
|
|
17669
|
-
}), E =
|
|
17669
|
+
}), E = kt(() => {
|
|
17670
17670
|
if (g.current) {
|
|
17671
17671
|
const R = Ft(i.floating).body;
|
|
17672
17672
|
R.style.pointerEvents = "", R.removeAttribute($f), g.current = !1;
|
|
17673
17673
|
}
|
|
17674
|
-
}), x =
|
|
17674
|
+
}), x = kt(() => o.current.openEvent ? ["click", "mousedown"].includes(o.current.openEvent.type) : !1);
|
|
17675
17675
|
U.useEffect(() => {
|
|
17676
17676
|
if (!c) return;
|
|
17677
17677
|
function R(j) {
|
|
@@ -17718,7 +17718,7 @@ function pP(e, t) {
|
|
|
17718
17718
|
}
|
|
17719
17719
|
})(j));
|
|
17720
17720
|
}
|
|
17721
|
-
function
|
|
17721
|
+
function M() {
|
|
17722
17722
|
ft(B);
|
|
17723
17723
|
}
|
|
17724
17724
|
function _(j) {
|
|
@@ -17728,8 +17728,8 @@ function pP(e, t) {
|
|
|
17728
17728
|
const j = i.domReference, z = i.floating;
|
|
17729
17729
|
return n && j.addEventListener("mouseleave", I), f && j.addEventListener("mousemove", R, {
|
|
17730
17730
|
once: !0
|
|
17731
|
-
}), j.addEventListener("mouseenter", R), j.addEventListener("mouseleave", b), z && (z.addEventListener("mouseleave", I), z.addEventListener("mouseenter",
|
|
17732
|
-
n && j.removeEventListener("mouseleave", I), f && j.removeEventListener("mousemove", R), j.removeEventListener("mouseenter", R), j.removeEventListener("mouseleave", b), z && (z.removeEventListener("mouseleave", I), z.removeEventListener("mouseenter",
|
|
17731
|
+
}), j.addEventListener("mouseenter", R), j.addEventListener("mouseleave", b), z && (z.addEventListener("mouseleave", I), z.addEventListener("mouseenter", M), z.addEventListener("mouseleave", _)), () => {
|
|
17732
|
+
n && j.removeEventListener("mouseleave", I), f && j.removeEventListener("mousemove", R), j.removeEventListener("mouseenter", R), j.removeEventListener("mouseleave", b), z && (z.removeEventListener("mouseleave", I), z.removeEventListener("mouseenter", M), z.removeEventListener("mouseleave", _));
|
|
17733
17733
|
};
|
|
17734
17734
|
}
|
|
17735
17735
|
}, [i, c, e, u, f, O, S, E, r, n, $, p, w, m, o, x, y]), Ut(() => {
|
|
@@ -17739,11 +17739,11 @@ function pP(e, t) {
|
|
|
17739
17739
|
const I = i.floating;
|
|
17740
17740
|
if (ge(i.domReference) && I) {
|
|
17741
17741
|
var b;
|
|
17742
|
-
const
|
|
17743
|
-
|
|
17742
|
+
const M = Ft(i.floating).body;
|
|
17743
|
+
M.setAttribute($f, "");
|
|
17744
17744
|
const _ = i.domReference, j = p == null || (b = p.nodesRef.current.find((z) => z.id === h)) == null || (b = b.context) == null ? void 0 : b.elements.floating;
|
|
17745
|
-
return j && (j.style.pointerEvents = ""),
|
|
17746
|
-
|
|
17745
|
+
return j && (j.style.pointerEvents = ""), M.style.pointerEvents = "none", _.style.pointerEvents = "auto", I.style.pointerEvents = "auto", () => {
|
|
17746
|
+
M.style.pointerEvents = "", _.style.pointerEvents = "", I.style.pointerEvents = "";
|
|
17747
17747
|
};
|
|
17748
17748
|
}
|
|
17749
17749
|
}
|
|
@@ -17763,10 +17763,10 @@ function pP(e, t) {
|
|
|
17763
17763
|
const {
|
|
17764
17764
|
nativeEvent: I
|
|
17765
17765
|
} = b;
|
|
17766
|
-
function
|
|
17766
|
+
function M() {
|
|
17767
17767
|
!F.current && !$.current && r(!0, I, "hover");
|
|
17768
17768
|
}
|
|
17769
|
-
u && !$o(A.current) || n || Zi(y.current) === 0 || P.current && b.movementX ** 2 + b.movementY ** 2 < 2 || (ft(D), A.current === "touch" ?
|
|
17769
|
+
u && !$o(A.current) || n || Zi(y.current) === 0 || P.current && b.movementX ** 2 + b.movementY ** 2 < 2 || (ft(D), A.current === "touch" ? M() : (P.current = !0, D.current = window.setTimeout(M, Zi(y.current))));
|
|
17770
17770
|
}
|
|
17771
17771
|
};
|
|
17772
17772
|
}, [u, r, n, $, y]);
|
|
@@ -17983,13 +17983,13 @@ function xP(e, t) {
|
|
|
17983
17983
|
ancestorScroll: f = !1,
|
|
17984
17984
|
bubbles: p,
|
|
17985
17985
|
capture: h
|
|
17986
|
-
} = t, m = vl(), w =
|
|
17986
|
+
} = t, m = vl(), w = kt(typeof a == "function" ? a : () => !1), $ = typeof a == "function" ? w : a, y = U.useRef(!1), {
|
|
17987
17987
|
escapeKey: A,
|
|
17988
17988
|
outsidePress: B
|
|
17989
17989
|
} = If(p), {
|
|
17990
17990
|
escapeKey: L,
|
|
17991
17991
|
outsidePress: D
|
|
17992
|
-
} = If(h), F = U.useRef(!1), g =
|
|
17992
|
+
} = If(h), F = U.useRef(!1), g = kt((E) => {
|
|
17993
17993
|
var x;
|
|
17994
17994
|
if (!n || !i || !c || E.key !== "Escape" || F.current)
|
|
17995
17995
|
return;
|
|
@@ -17997,8 +17997,8 @@ function xP(e, t) {
|
|
|
17997
17997
|
if (!A && (E.stopPropagation(), R.length > 0)) {
|
|
17998
17998
|
let b = !0;
|
|
17999
17999
|
if (R.forEach((I) => {
|
|
18000
|
-
var
|
|
18001
|
-
if ((
|
|
18000
|
+
var M;
|
|
18001
|
+
if ((M = I.context) != null && M.open && !I.context.dataRef.current.__escapeKeyBubbles) {
|
|
18002
18002
|
b = !1;
|
|
18003
18003
|
return;
|
|
18004
18004
|
}
|
|
@@ -18006,21 +18006,21 @@ function xP(e, t) {
|
|
|
18006
18006
|
return;
|
|
18007
18007
|
}
|
|
18008
18008
|
r(!1, KS(E) ? E.nativeEvent : E, "escape-key");
|
|
18009
|
-
}), v =
|
|
18009
|
+
}), v = kt((E) => {
|
|
18010
18010
|
var x;
|
|
18011
18011
|
const T = () => {
|
|
18012
18012
|
var R;
|
|
18013
18013
|
g(E), (R = sr(E)) == null || R.removeEventListener("keydown", T);
|
|
18014
18014
|
};
|
|
18015
18015
|
(x = sr(E)) == null || x.addEventListener("keydown", T);
|
|
18016
|
-
}), P =
|
|
18016
|
+
}), P = kt((E) => {
|
|
18017
18017
|
var x;
|
|
18018
18018
|
const T = s.current.insideReactTree;
|
|
18019
18019
|
s.current.insideReactTree = !1;
|
|
18020
18020
|
const R = y.current;
|
|
18021
18021
|
if (y.current = !1, l === "click" && R || T || typeof $ == "function" && !$(E))
|
|
18022
18022
|
return;
|
|
18023
|
-
const b = sr(E), I = "[" + _o("inert") + "]",
|
|
18023
|
+
const b = sr(E), I = "[" + _o("inert") + "]", M = Ft(o.floating).querySelectorAll(I);
|
|
18024
18024
|
let _ = ge(b) ? b : null;
|
|
18025
18025
|
for (; _ && !nn(_); ) {
|
|
18026
18026
|
const H = ln(_);
|
|
@@ -18028,10 +18028,10 @@ function xP(e, t) {
|
|
|
18028
18028
|
break;
|
|
18029
18029
|
_ = H;
|
|
18030
18030
|
}
|
|
18031
|
-
if (
|
|
18031
|
+
if (M.length && ge(b) && !GS(b) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
18032
18032
|
!$r(b, o.floating) && // If the target root element contains none of the markers, then the
|
|
18033
18033
|
// element was injected after the floating element rendered.
|
|
18034
|
-
Array.from(
|
|
18034
|
+
Array.from(M).every((H) => !$r(_, H)))
|
|
18035
18035
|
return;
|
|
18036
18036
|
if (We(b) && S) {
|
|
18037
18037
|
const H = nn(b), q = yt(b), V = /auto|scroll/, te = H || V.test(q.overflowX), oe = H || V.test(q.overflowY), de = te && b.clientWidth > 0 && b.scrollWidth > b.clientWidth, Re = oe && b.clientHeight > 0 && b.scrollHeight > b.clientHeight, je = q.direction === "rtl", Y = Re && (je ? E.offsetX <= b.offsetWidth - b.clientWidth : E.offsetX > b.clientWidth), ne = de && E.offsetY > b.clientHeight;
|
|
@@ -18057,7 +18057,7 @@ function xP(e, t) {
|
|
|
18057
18057
|
return;
|
|
18058
18058
|
}
|
|
18059
18059
|
r(!1, E, "outside-press");
|
|
18060
|
-
}), N =
|
|
18060
|
+
}), N = kt((E) => {
|
|
18061
18061
|
var x;
|
|
18062
18062
|
const T = () => {
|
|
18063
18063
|
var R;
|
|
@@ -18070,8 +18070,8 @@ function xP(e, t) {
|
|
|
18070
18070
|
return;
|
|
18071
18071
|
s.current.__escapeKeyBubbles = A, s.current.__outsidePressBubbles = B;
|
|
18072
18072
|
let E = -1;
|
|
18073
|
-
function x(
|
|
18074
|
-
r(!1,
|
|
18073
|
+
function x(M) {
|
|
18074
|
+
r(!1, M, "ancestor-scroll");
|
|
18075
18075
|
}
|
|
18076
18076
|
function T() {
|
|
18077
18077
|
window.clearTimeout(E), F.current = !0;
|
|
@@ -18089,16 +18089,16 @@ function xP(e, t) {
|
|
|
18089
18089
|
const b = Ft(o.floating);
|
|
18090
18090
|
c && (b.addEventListener("keydown", L ? v : g, L), b.addEventListener("compositionstart", T), b.addEventListener("compositionend", R)), $ && b.addEventListener(l, D ? N : P, D);
|
|
18091
18091
|
let I = [];
|
|
18092
|
-
return f && (ge(o.domReference) && (I = xn(o.domReference)), ge(o.floating) && (I = I.concat(xn(o.floating))), !ge(o.reference) && o.reference && o.reference.contextElement && (I = I.concat(xn(o.reference.contextElement)))), I = I.filter((
|
|
18092
|
+
return f && (ge(o.domReference) && (I = xn(o.domReference)), ge(o.floating) && (I = I.concat(xn(o.floating))), !ge(o.reference) && o.reference && o.reference.contextElement && (I = I.concat(xn(o.reference.contextElement)))), I = I.filter((M) => {
|
|
18093
18093
|
var _;
|
|
18094
|
-
return
|
|
18095
|
-
}), I.forEach((
|
|
18096
|
-
|
|
18094
|
+
return M !== ((_ = b.defaultView) == null ? void 0 : _.visualViewport);
|
|
18095
|
+
}), I.forEach((M) => {
|
|
18096
|
+
M.addEventListener("scroll", x, {
|
|
18097
18097
|
passive: !0
|
|
18098
18098
|
});
|
|
18099
18099
|
}), () => {
|
|
18100
|
-
c && (b.removeEventListener("keydown", L ? v : g, L), b.removeEventListener("compositionstart", T), b.removeEventListener("compositionend", R)), $ && b.removeEventListener(l, D ? N : P, D), I.forEach((
|
|
18101
|
-
|
|
18100
|
+
c && (b.removeEventListener("keydown", L ? v : g, L), b.removeEventListener("compositionstart", T), b.removeEventListener("compositionend", R)), $ && b.removeEventListener(l, D ? N : P, D), I.forEach((M) => {
|
|
18101
|
+
M.removeEventListener("scroll", x);
|
|
18102
18102
|
}), window.clearTimeout(E);
|
|
18103
18103
|
};
|
|
18104
18104
|
}, [s, o, c, $, l, n, r, f, i, A, B, g, L, v, P, D, N]), U.useEffect(() => {
|
|
@@ -18143,7 +18143,7 @@ function EP(e) {
|
|
|
18143
18143
|
const p = r.reference;
|
|
18144
18144
|
p && !ge(p) && lP("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
18145
18145
|
}
|
|
18146
|
-
const [a, l] = U.useState(r.reference), u =
|
|
18146
|
+
const [a, l] = U.useState(r.reference), u = kt((p, h, m) => {
|
|
18147
18147
|
s.current.openEvent = p ? h : void 0, i.emit("openchange", {
|
|
18148
18148
|
open: p,
|
|
18149
18149
|
event: h,
|
|
@@ -18800,7 +18800,7 @@ const yr = ({
|
|
|
18800
18800
|
} catch {
|
|
18801
18801
|
return !1;
|
|
18802
18802
|
}
|
|
18803
|
-
},
|
|
18803
|
+
}, kP = (e, t, n) => {
|
|
18804
18804
|
let r = t || "0";
|
|
18805
18805
|
if (O0(e, n))
|
|
18806
18806
|
try {
|
|
@@ -18822,7 +18822,7 @@ const yr = ({
|
|
|
18822
18822
|
platformBalance: "0"
|
|
18823
18823
|
};
|
|
18824
18824
|
let Xe = null;
|
|
18825
|
-
const
|
|
18825
|
+
const MP = Z.forwardRef((e, t) => {
|
|
18826
18826
|
const [n, r] = le(!1), [o, s] = le(!1), [i, c] = le(J0), a = ee((h) => {
|
|
18827
18827
|
c(h), r(!0);
|
|
18828
18828
|
}, []), l = ee(
|
|
@@ -18893,33 +18893,15 @@ const kP = Z.forwardRef((e, t) => {
|
|
|
18893
18893
|
}
|
|
18894
18894
|
) : null;
|
|
18895
18895
|
});
|
|
18896
|
-
|
|
18896
|
+
MP.displayName = "DepositManager";
|
|
18897
18897
|
const DP = (e) => {
|
|
18898
|
-
|
|
18899
|
-
console.error(
|
|
18900
|
-
"DepositManager not initialized. Make sure to render <DepositManager /> in your app."
|
|
18901
|
-
);
|
|
18902
|
-
return;
|
|
18903
|
-
}
|
|
18904
|
-
Xe.openDeposit(e || J0);
|
|
18898
|
+
Xe && Xe.openDeposit(e || J0);
|
|
18905
18899
|
}, FP = () => {
|
|
18906
|
-
|
|
18907
|
-
console.error(
|
|
18908
|
-
"DepositManager not initialized. Make sure to render <DepositManager /> in your app."
|
|
18909
|
-
);
|
|
18910
|
-
return;
|
|
18911
|
-
}
|
|
18912
|
-
Xe.closeDeposit();
|
|
18900
|
+
Xe && Xe.closeDeposit();
|
|
18913
18901
|
}, jP = (e) => {
|
|
18914
18902
|
Xe && Xe.updateDepositOptions(e);
|
|
18915
18903
|
}, ic = (e) => {
|
|
18916
|
-
|
|
18917
|
-
console.error(
|
|
18918
|
-
"DepositManager not initialized. Make sure to render <DepositManager /> in your app."
|
|
18919
|
-
);
|
|
18920
|
-
return;
|
|
18921
|
-
}
|
|
18922
|
-
Xe.setDepositLoading(e);
|
|
18904
|
+
Xe && Xe.setDepositLoading(e);
|
|
18923
18905
|
}, _P = () => Xe ? Xe.isOpen() : !1, UP = () => Xe ? Xe.isLoading() : !1, RA = () => ({
|
|
18924
18906
|
openDeposit: DP,
|
|
18925
18907
|
closeDeposit: FP,
|
|
@@ -19164,7 +19146,7 @@ const WP = ({
|
|
|
19164
19146
|
onDeposit: c
|
|
19165
19147
|
}) => {
|
|
19166
19148
|
const { t: a } = An(), l = s.useAccount(), u = t.tokenList.find(
|
|
19167
|
-
(
|
|
19149
|
+
(M) => M.token === n
|
|
19168
19150
|
), d = t.chainId, [f, p] = le("");
|
|
19169
19151
|
Ae(() => {
|
|
19170
19152
|
p("");
|
|
@@ -19180,15 +19162,15 @@ const WP = ({
|
|
|
19180
19162
|
if (!u) return "0";
|
|
19181
19163
|
if (!u.tokenAddress || u.tokenAddress.toLowerCase() === "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee")
|
|
19182
19164
|
return h.baseTokenBalance.formatted;
|
|
19183
|
-
const
|
|
19184
|
-
return ((_ =
|
|
19165
|
+
const M = h.combinedData[u.tokenAddress];
|
|
19166
|
+
return ((_ = M == null ? void 0 : M.balance) == null ? void 0 : _.formatted) || "0";
|
|
19185
19167
|
}, [u, h]), $ = "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9", y = "0xceeed84620e5eb9ab1d6dfc316867d2cda332e41", A = J(
|
|
19186
19168
|
() => {
|
|
19187
|
-
var
|
|
19169
|
+
var M, _;
|
|
19188
19170
|
return Ca({
|
|
19189
19171
|
chain: Ba,
|
|
19190
19172
|
transport: Sa(
|
|
19191
|
-
t.rpcUrl || ((
|
|
19173
|
+
t.rpcUrl || ((M = window == null ? void 0 : window.ENV) == null ? void 0 : M.CHAIN_RPC_URL_42161) || ((_ = window == null ? void 0 : window.ENV) == null ? void 0 : _.CHAIN_RPC_URL_421614)
|
|
19192
19174
|
)
|
|
19193
19175
|
});
|
|
19194
19176
|
},
|
|
@@ -19211,8 +19193,8 @@ const WP = ({
|
|
|
19211
19193
|
if (!D)
|
|
19212
19194
|
try {
|
|
19213
19195
|
F(!0), await v();
|
|
19214
|
-
} catch (
|
|
19215
|
-
console.error("Approve failed:",
|
|
19196
|
+
} catch (M) {
|
|
19197
|
+
console.error("Approve failed:", M);
|
|
19216
19198
|
} finally {
|
|
19217
19199
|
F(!1);
|
|
19218
19200
|
}
|
|
@@ -19223,9 +19205,9 @@ const WP = ({
|
|
|
19223
19205
|
N && O();
|
|
19224
19206
|
}, [N, O]);
|
|
19225
19207
|
const { showLayerZeroTip: S, layerZeroTipKey: E } = J(() => {
|
|
19226
|
-
const
|
|
19208
|
+
const M = +t.chainId == 42161 || +t.chainId == 421614, _ = (n == null ? void 0 : n.toUpperCase()) === "USDT", j = new Ie(f || "0"), z = new Ie("200000");
|
|
19227
19209
|
let K = !1, H;
|
|
19228
|
-
if (
|
|
19210
|
+
if (M && _ && f)
|
|
19229
19211
|
if (j.gte(z))
|
|
19230
19212
|
K = !0, H = "deposit.layerZeroDepositTipGte200k";
|
|
19231
19213
|
else {
|
|
@@ -19241,7 +19223,7 @@ const WP = ({
|
|
|
19241
19223
|
n,
|
|
19242
19224
|
f,
|
|
19243
19225
|
L
|
|
19244
|
-
]), x = ee(() =>
|
|
19226
|
+
]), x = ee(() => kP(
|
|
19245
19227
|
+t.chainId,
|
|
19246
19228
|
w || "0",
|
|
19247
19229
|
n
|
|
@@ -19257,8 +19239,8 @@ const WP = ({
|
|
|
19257
19239
|
selectedToken: n,
|
|
19258
19240
|
showLayerZeroTip: S,
|
|
19259
19241
|
minDeposit: 10
|
|
19260
|
-
}), b = (
|
|
19261
|
-
const _ =
|
|
19242
|
+
}), b = (M) => {
|
|
19243
|
+
const _ = M.target.value, j = x(), z = xl(_, j);
|
|
19262
19244
|
if (z.isValid)
|
|
19263
19245
|
p(z.formattedValue), z.errorType;
|
|
19264
19246
|
else
|
|
@@ -19272,8 +19254,8 @@ const WP = ({
|
|
|
19272
19254
|
tokenAddress: (u == null ? void 0 : u.tokenAddress) || "",
|
|
19273
19255
|
tokenSymbol: n
|
|
19274
19256
|
});
|
|
19275
|
-
} catch (
|
|
19276
|
-
console.error("Deposit error:",
|
|
19257
|
+
} catch (M) {
|
|
19258
|
+
console.error("Deposit error:", M), ic(!1);
|
|
19277
19259
|
}
|
|
19278
19260
|
}, [
|
|
19279
19261
|
c,
|
|
@@ -19300,8 +19282,8 @@ const WP = ({
|
|
|
19300
19282
|
"button",
|
|
19301
19283
|
{
|
|
19302
19284
|
onClick: () => {
|
|
19303
|
-
const
|
|
19304
|
-
p(
|
|
19285
|
+
const M = x();
|
|
19286
|
+
p(M);
|
|
19305
19287
|
},
|
|
19306
19288
|
className: "text-theme-normal text-xs font-medium cursor-pointer hover:opacity-80 transition-opacity h-full flex items-center",
|
|
19307
19289
|
children: a("deposit.max")
|
|
@@ -19785,13 +19767,7 @@ const XP = Z.forwardRef((e, t) => {
|
|
|
19785
19767
|
});
|
|
19786
19768
|
XP.displayName = "WithdrawManager";
|
|
19787
19769
|
const QP = (e) => {
|
|
19788
|
-
|
|
19789
|
-
console.error(
|
|
19790
|
-
"WithdrawManager not initialized. Make sure to render <WithdrawManager /> in your app."
|
|
19791
|
-
);
|
|
19792
|
-
return;
|
|
19793
|
-
}
|
|
19794
|
-
Qe.openWithdraw(
|
|
19770
|
+
Qe && Qe.openWithdraw(
|
|
19795
19771
|
e || {
|
|
19796
19772
|
chains: [],
|
|
19797
19773
|
currentActiveAccount: {
|
|
@@ -19803,29 +19779,11 @@ const QP = (e) => {
|
|
|
19803
19779
|
}
|
|
19804
19780
|
);
|
|
19805
19781
|
}, JP = () => {
|
|
19806
|
-
|
|
19807
|
-
console.error(
|
|
19808
|
-
"WithdrawManager not initialized. Make sure to render <WithdrawManager /> in your app."
|
|
19809
|
-
);
|
|
19810
|
-
return;
|
|
19811
|
-
}
|
|
19812
|
-
Qe.closeWithdraw();
|
|
19782
|
+
Qe && Qe.closeWithdraw();
|
|
19813
19783
|
}, eA = (e) => {
|
|
19814
|
-
|
|
19815
|
-
console.error(
|
|
19816
|
-
"WithdrawManager not initialized. Make sure to render <WithdrawManager /> in your app."
|
|
19817
|
-
);
|
|
19818
|
-
return;
|
|
19819
|
-
}
|
|
19820
|
-
Qe.updateWithdrawOptions(e);
|
|
19784
|
+
Qe && Qe.updateWithdrawOptions(e);
|
|
19821
19785
|
}, ac = (e) => {
|
|
19822
|
-
|
|
19823
|
-
console.error(
|
|
19824
|
-
"WithdrawManager not initialized. Make sure to render <WithdrawManager /> in your app."
|
|
19825
|
-
);
|
|
19826
|
-
return;
|
|
19827
|
-
}
|
|
19828
|
-
Qe.setWithdrawLoading(e);
|
|
19786
|
+
Qe && Qe.setWithdrawLoading(e);
|
|
19829
19787
|
}, tA = () => Qe ? Qe.isOpen() : !1, nA = () => Qe ? Qe.isLoading() : !1, OA = () => ({
|
|
19830
19788
|
openWithdraw: QP,
|
|
19831
19789
|
closeWithdraw: JP,
|
|
@@ -19889,13 +19847,13 @@ const QP = (e) => {
|
|
|
19889
19847
|
N(Y), m == null || m(Y);
|
|
19890
19848
|
},
|
|
19891
19849
|
[m]
|
|
19892
|
-
), b = Z.useRef(!0), I = Z.useRef(P),
|
|
19850
|
+
), b = Z.useRef(!0), I = Z.useRef(P), M = Z.useRef(g);
|
|
19893
19851
|
Z.useEffect(() => {
|
|
19894
19852
|
if (b.current) {
|
|
19895
|
-
b.current = !1, I.current = P,
|
|
19853
|
+
b.current = !1, I.current = P, M.current = g;
|
|
19896
19854
|
return;
|
|
19897
19855
|
}
|
|
19898
|
-
(I.current !== P ||
|
|
19856
|
+
(I.current !== P || M.current !== g) && (S(""), I.current = P, M.current = g);
|
|
19899
19857
|
}, [P, g]);
|
|
19900
19858
|
const _ = n && n.length > 0 ? n.find((Y) => Y.chainId === g) || n[0] : null, j = (je = _ == null ? void 0 : _.tokenList) == null ? void 0 : je.find(
|
|
19901
19859
|
(Y) => Y.token === P
|
|
@@ -20203,7 +20161,7 @@ export {
|
|
|
20203
20161
|
qr as H,
|
|
20204
20162
|
OA as I,
|
|
20205
20163
|
cA as L,
|
|
20206
|
-
|
|
20164
|
+
kf as S,
|
|
20207
20165
|
yr as T,
|
|
20208
20166
|
oA as W,
|
|
20209
20167
|
q1 as a,
|
|
@@ -20221,7 +20179,7 @@ export {
|
|
|
20221
20179
|
An as m,
|
|
20222
20180
|
qP as n,
|
|
20223
20181
|
sc as o,
|
|
20224
|
-
|
|
20182
|
+
MP as p,
|
|
20225
20183
|
DP as q,
|
|
20226
20184
|
FP as r,
|
|
20227
20185
|
De as s,
|
|
@@ -20233,4 +20191,4 @@ export {
|
|
|
20233
20191
|
XP as y,
|
|
20234
20192
|
QP as z
|
|
20235
20193
|
};
|
|
20236
|
-
//# sourceMappingURL=index-
|
|
20194
|
+
//# sourceMappingURL=index-1SRJZP-Y.mjs.map
|