@dhedge/trading-widget 4.0.8 → 4.0.9
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/core-kit/const/gmx.d.ts +3 -2
- package/index.cjs +8 -8
- package/index.js +370 -366
- package/limit-orders/component/common/price-input.d.ts +1 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -66,33 +66,33 @@ function Fd(t) {
|
|
|
66
66
|
var e;
|
|
67
67
|
return typeof window < "u" && window.navigator != null ? t.test(((e = window.navigator.userAgentData) === null || e === void 0 ? void 0 : e.platform) || window.navigator.platform) : !1;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Sr(t) {
|
|
70
70
|
if (process.env.NODE_ENV === "test") return t;
|
|
71
71
|
let e = null;
|
|
72
72
|
return () => (e == null && (e = t()), e);
|
|
73
73
|
}
|
|
74
|
-
const Wd =
|
|
74
|
+
const Wd = Sr(function() {
|
|
75
75
|
return Fd(/^Mac/i);
|
|
76
|
-
}), lT =
|
|
76
|
+
}), lT = Sr(function() {
|
|
77
77
|
return Fd(/^iPhone/i);
|
|
78
|
-
}), cT =
|
|
78
|
+
}), cT = Sr(function() {
|
|
79
79
|
return Fd(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
80
80
|
Wd() && navigator.maxTouchPoints > 1;
|
|
81
|
-
}), uT =
|
|
81
|
+
}), uT = Sr(function() {
|
|
82
82
|
return lT() || cT();
|
|
83
83
|
});
|
|
84
|
-
|
|
84
|
+
Sr(function() {
|
|
85
85
|
return Wd() || uT();
|
|
86
86
|
});
|
|
87
|
-
|
|
87
|
+
Sr(function() {
|
|
88
88
|
return qc(/AppleWebKit/i) && !dT();
|
|
89
89
|
});
|
|
90
|
-
const dT =
|
|
90
|
+
const dT = Sr(function() {
|
|
91
91
|
return qc(/Chrome/i);
|
|
92
|
-
}), pT =
|
|
92
|
+
}), pT = Sr(function() {
|
|
93
93
|
return qc(/Android/i);
|
|
94
94
|
});
|
|
95
|
-
|
|
95
|
+
Sr(function() {
|
|
96
96
|
return qc(/Firefox/i);
|
|
97
97
|
});
|
|
98
98
|
function iw() {
|
|
@@ -203,7 +203,7 @@ function wT(t) {
|
|
|
203
203
|
function Pc(t) {
|
|
204
204
|
Bo = !0, wT(t) && (Ol = "keyboard", Ud("keyboard", t));
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Xt(t) {
|
|
207
207
|
Ol = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (Bo = !0, Ud("pointer", t));
|
|
208
208
|
}
|
|
209
209
|
function uw(t) {
|
|
@@ -221,7 +221,7 @@ function pd(t) {
|
|
|
221
221
|
let r = e.HTMLElement.prototype.focus;
|
|
222
222
|
e.HTMLElement.prototype.focus = function() {
|
|
223
223
|
Bo = !0, r.apply(this, arguments);
|
|
224
|
-
}, n.addEventListener("keydown", Pc, !0), n.addEventListener("keyup", Pc, !0), n.addEventListener("click", uw, !0), e.addEventListener("focus", dw, !0), e.addEventListener("blur", pw, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown",
|
|
224
|
+
}, n.addEventListener("keydown", Pc, !0), n.addEventListener("keyup", Pc, !0), n.addEventListener("click", uw, !0), e.addEventListener("focus", dw, !0), e.addEventListener("blur", pw, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", Xt, !0), n.addEventListener("pointermove", Xt, !0), n.addEventListener("pointerup", Xt, !0)) : process.env.NODE_ENV === "test" && (n.addEventListener("mousedown", Xt, !0), n.addEventListener("mousemove", Xt, !0), n.addEventListener("mouseup", Xt, !0)), e.addEventListener("beforeunload", () => {
|
|
225
225
|
mw(t);
|
|
226
226
|
}, {
|
|
227
227
|
once: !0
|
|
@@ -231,7 +231,7 @@ function pd(t) {
|
|
|
231
231
|
}
|
|
232
232
|
const mw = (t, e) => {
|
|
233
233
|
const n = No(t), r = oa(t);
|
|
234
|
-
e && r.removeEventListener("DOMContentLoaded", e), il.has(n) && (n.HTMLElement.prototype.focus = il.get(n).focus, r.removeEventListener("keydown", Pc, !0), r.removeEventListener("keyup", Pc, !0), r.removeEventListener("click", uw, !0), n.removeEventListener("focus", dw, !0), n.removeEventListener("blur", pw, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown",
|
|
234
|
+
e && r.removeEventListener("DOMContentLoaded", e), il.has(n) && (n.HTMLElement.prototype.focus = il.get(n).focus, r.removeEventListener("keydown", Pc, !0), r.removeEventListener("keyup", Pc, !0), r.removeEventListener("click", uw, !0), n.removeEventListener("focus", dw, !0), n.removeEventListener("blur", pw, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", Xt, !0), r.removeEventListener("pointermove", Xt, !0), r.removeEventListener("pointerup", Xt, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", Xt, !0), r.removeEventListener("mousemove", Xt, !0), r.removeEventListener("mouseup", Xt, !0)), il.delete(n));
|
|
235
235
|
};
|
|
236
236
|
function vT(t) {
|
|
237
237
|
const e = oa(t);
|
|
@@ -487,7 +487,7 @@ function Il(t) {
|
|
|
487
487
|
throw e;
|
|
488
488
|
}));
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function Ar() {
|
|
491
491
|
let t = [], e = { addEventListener(n, r, a, o) {
|
|
492
492
|
return n.addEventListener(r, a, o), e.add(() => n.removeEventListener(r, a, o));
|
|
493
493
|
}, requestAnimationFrame(...n) {
|
|
@@ -511,7 +511,7 @@ function Sr() {
|
|
|
511
511
|
Object.assign(n.style, { [r]: o });
|
|
512
512
|
});
|
|
513
513
|
}, group(n) {
|
|
514
|
-
let r =
|
|
514
|
+
let r = Ar();
|
|
515
515
|
return n(r), this.add(() => r.dispose());
|
|
516
516
|
}, add(n) {
|
|
517
517
|
return t.includes(n) || t.push(n), () => {
|
|
@@ -524,7 +524,7 @@ function Sr() {
|
|
|
524
524
|
return e;
|
|
525
525
|
}
|
|
526
526
|
function ia() {
|
|
527
|
-
let [t] = de(
|
|
527
|
+
let [t] = de(Ar);
|
|
528
528
|
return oe(() => () => t.dispose(), [t]), t;
|
|
529
529
|
}
|
|
530
530
|
let ke = (t, e) => {
|
|
@@ -584,7 +584,7 @@ function qe(t, e, ...n) {
|
|
|
584
584
|
let r = new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map((a) => `"${a}"`).join(", ")}.`);
|
|
585
585
|
throw Error.captureStackTrace && Error.captureStackTrace(r, qe), r;
|
|
586
586
|
}
|
|
587
|
-
var
|
|
587
|
+
var Zt = ((t) => (t[t.None = 0] = "None", t[t.RenderStrategy = 1] = "RenderStrategy", t[t.Static = 2] = "Static", t))(Zt || {}), Jr = ((t) => (t[t.Unmount = 0] = "Unmount", t[t.Hidden = 1] = "Hidden", t))(Jr || {});
|
|
588
588
|
function Ce() {
|
|
589
589
|
let t = LT();
|
|
590
590
|
return q((e) => _T({ mergeRefs: t, ...e }), [t]);
|
|
@@ -663,7 +663,7 @@ function yw(...t) {
|
|
|
663
663
|
} });
|
|
664
664
|
return e;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function xr(...t) {
|
|
667
667
|
if (t.length === 0) return {};
|
|
668
668
|
if (t.length === 1) return t[0];
|
|
669
669
|
let e = {}, n = {};
|
|
@@ -767,17 +767,17 @@ function WT({ id: t, children: e }) {
|
|
|
767
767
|
function Cw(t) {
|
|
768
768
|
return typeof t != "object" || t === null ? !1 : "nodeType" in t;
|
|
769
769
|
}
|
|
770
|
-
function
|
|
770
|
+
function br(t) {
|
|
771
771
|
return Cw(t) && "tagName" in t;
|
|
772
772
|
}
|
|
773
773
|
function Dt(t) {
|
|
774
|
-
return
|
|
774
|
+
return br(t) && "accessKey" in t;
|
|
775
775
|
}
|
|
776
776
|
function pn(t) {
|
|
777
|
-
return
|
|
777
|
+
return br(t) && "tabIndex" in t;
|
|
778
778
|
}
|
|
779
779
|
function UT(t) {
|
|
780
|
-
return
|
|
780
|
+
return br(t) && "style" in t;
|
|
781
781
|
}
|
|
782
782
|
function HT(t) {
|
|
783
783
|
return Dt(t) && t.nodeName === "IFRAME";
|
|
@@ -795,7 +795,7 @@ function Ow(t) {
|
|
|
795
795
|
return Dt(t) && t.nodeName === "LEGEND";
|
|
796
796
|
}
|
|
797
797
|
function VT(t) {
|
|
798
|
-
return
|
|
798
|
+
return br(t) ? t.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]') : !1;
|
|
799
799
|
}
|
|
800
800
|
function Nl(t) {
|
|
801
801
|
let e = t.parentElement, n = null;
|
|
@@ -915,7 +915,7 @@ function JT(t, e) {
|
|
|
915
915
|
V.preventDefault(), v();
|
|
916
916
|
}), D = Z((V) => {
|
|
917
917
|
V.key === Ie.Space ? (V.preventDefault(), v()) : V.key === Ie.Enter && xw(V.currentTarget);
|
|
918
|
-
}), A = Z((V) => V.preventDefault()), { isFocusVisible: I, focusProps: S } = ps({ autoFocus: i }), { isHovered: E, hoverProps: C } = Dl({ isDisabled: s }), { pressed: R, pressProps: L } = _l({ disabled: s }), $ =
|
|
918
|
+
}), A = Z((V) => V.preventDefault()), { isFocusVisible: I, focusProps: S } = ps({ autoFocus: i }), { isHovered: E, hoverProps: C } = Dl({ isDisabled: s }), { pressed: R, pressProps: L } = _l({ disabled: s }), $ = xr({ ref: e, id: o, role: "checkbox", "aria-checked": y ? "mixed" : T ? "true" : "false", "aria-labelledby": N, "aria-describedby": k, "aria-disabled": s ? !0 : void 0, indeterminate: y ? "true" : void 0, tabIndex: s ? void 0 : b, onKeyUp: s ? void 0 : D, onKeyPress: s ? void 0 : A, onClick: s ? void 0 : g }, S, C, L), H = K(() => ({ checked: T, disabled: s, hover: E, focus: I, active: R, indeterminate: y, changing: W, autofocus: i }), [T, y, s, E, I, R, W, i]), j = q(() => {
|
|
919
919
|
if (_ !== void 0) return O == null ? void 0 : O(_);
|
|
920
920
|
}, [O, _]), Q = Ce();
|
|
921
921
|
return G.createElement(G.Fragment, null, d != null && G.createElement(Sw, { disabled: s, data: { [d]: f || "on" }, overrides: { type: "checkbox", checked: T }, form: p, onReset: j }), Q({ ourProps: $, theirProps: x, slot: H, defaultTag: ZT, name: "Checkbox" }));
|
|
@@ -957,7 +957,7 @@ var ax = Object.defineProperty, ox = (t, e, n) => e in t ? ax(t, e, { enumerable
|
|
|
957
957
|
}, Sh = (t, e, n, r) => ($w(t, e, "write to private field"), e.set(t, n), n), kn, ol, sl;
|
|
958
958
|
let Mw = class {
|
|
959
959
|
constructor(e) {
|
|
960
|
-
Ru(this, kn, {}), Ru(this, ol, new kw(() => /* @__PURE__ */ new Set())), Ru(this, sl, /* @__PURE__ */ new Set()), sx(this, "disposables",
|
|
960
|
+
Ru(this, kn, {}), Ru(this, ol, new kw(() => /* @__PURE__ */ new Set())), Ru(this, sl, /* @__PURE__ */ new Set()), sx(this, "disposables", Ar()), Sh(this, kn, e);
|
|
961
961
|
}
|
|
962
962
|
dispose() {
|
|
963
963
|
this.disposables.dispose();
|
|
@@ -1188,7 +1188,7 @@ function yx(t, { allowed: e, disallowed: n } = {}) {
|
|
|
1188
1188
|
ke(() => {
|
|
1189
1189
|
var a, o;
|
|
1190
1190
|
if (!r) return;
|
|
1191
|
-
let s =
|
|
1191
|
+
let s = Ar();
|
|
1192
1192
|
for (let l of (a = n == null ? void 0 : n()) != null ? a : []) l && s.add(Dh(l));
|
|
1193
1193
|
let i = (o = e == null ? void 0 : e()) != null ? o : [];
|
|
1194
1194
|
for (let l of i) {
|
|
@@ -1213,7 +1213,7 @@ function Ww(t, e, n) {
|
|
|
1213
1213
|
if (!t) return;
|
|
1214
1214
|
let a = e === null ? null : Dt(e) ? e : e.current;
|
|
1215
1215
|
if (!a) return;
|
|
1216
|
-
let o =
|
|
1216
|
+
let o = Ar();
|
|
1217
1217
|
if (typeof ResizeObserver < "u") {
|
|
1218
1218
|
let s = new ResizeObserver(() => r.current(a));
|
|
1219
1219
|
s.observe(a), o.add(() => s.disconnect());
|
|
@@ -1253,7 +1253,7 @@ typeof window < "u" && typeof document < "u" && (document.addEventListener("keyd
|
|
|
1253
1253
|
}, !0), document.addEventListener("click", (t) => {
|
|
1254
1254
|
t.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : t.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
1255
1255
|
}, !0));
|
|
1256
|
-
function
|
|
1256
|
+
function gr(t) {
|
|
1257
1257
|
t == null || t.focus({ preventScroll: !0 });
|
|
1258
1258
|
}
|
|
1259
1259
|
let Tx = ["textarea", "input"].join(",");
|
|
@@ -1406,7 +1406,7 @@ function Px() {
|
|
|
1406
1406
|
e.microTask(() => {
|
|
1407
1407
|
var a;
|
|
1408
1408
|
if (window.getComputedStyle(t.documentElement).scrollBehavior !== "auto") {
|
|
1409
|
-
let i =
|
|
1409
|
+
let i = Ar();
|
|
1410
1410
|
i.style(t.documentElement, "scrollBehavior", "auto"), e.add(() => e.microTask(() => i.dispose()));
|
|
1411
1411
|
}
|
|
1412
1412
|
let o = (a = window.scrollY) != null ? a : window.pageYOffset, s = null;
|
|
@@ -1453,7 +1453,7 @@ function Dx(t) {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
let Ro = Ax(() => /* @__PURE__ */ new Map(), { PUSH(t, e) {
|
|
1455
1455
|
var n;
|
|
1456
|
-
let r = (n = this.get(t)) != null ? n : { doc: t, count: 0, d:
|
|
1456
|
+
let r = (n = this.get(t)) != null ? n : { doc: t, count: 0, d: Ar(), meta: /* @__PURE__ */ new Set() };
|
|
1457
1457
|
return r.count++, r.meta.add(e), this.set(t, r), this;
|
|
1458
1458
|
}, POP(t, e) {
|
|
1459
1459
|
let n = this.get(t);
|
|
@@ -1523,7 +1523,7 @@ function tu(t, e, n, r) {
|
|
|
1523
1523
|
}, [t, n, e, d]), t ? [a, { closed: s(1), enter: s(2), leave: s(4), transition: s(2) || s(4) }] : [n, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
|
|
1524
1524
|
}
|
|
1525
1525
|
function Nx(t, { prepare: e, run: n, done: r, inFlight: a }) {
|
|
1526
|
-
let o =
|
|
1526
|
+
let o = Ar();
|
|
1527
1527
|
return kx(t, { prepare: e, inFlight: a }), o.nextFrame(() => {
|
|
1528
1528
|
n(), o.requestAnimationFrame(() => {
|
|
1529
1529
|
o.add(Rx(t, r));
|
|
@@ -1532,7 +1532,7 @@ function Nx(t, { prepare: e, run: n, done: r, inFlight: a }) {
|
|
|
1532
1532
|
}
|
|
1533
1533
|
function Rx(t, e) {
|
|
1534
1534
|
var n, r;
|
|
1535
|
-
let a =
|
|
1535
|
+
let a = Ar();
|
|
1536
1536
|
if (!t) return a.dispose;
|
|
1537
1537
|
let o = !1;
|
|
1538
1538
|
a.add(() => {
|
|
@@ -1710,11 +1710,11 @@ function qw(t) {
|
|
|
1710
1710
|
function Kw(t) {
|
|
1711
1711
|
return t === "y" ? "height" : "width";
|
|
1712
1712
|
}
|
|
1713
|
-
function
|
|
1713
|
+
function vr(t) {
|
|
1714
1714
|
return ["top", "bottom"].includes(ra(t)) ? "y" : "x";
|
|
1715
1715
|
}
|
|
1716
1716
|
function Xw(t) {
|
|
1717
|
-
return qw(
|
|
1717
|
+
return qw(vr(t));
|
|
1718
1718
|
}
|
|
1719
1719
|
function Ux(t, e, n) {
|
|
1720
1720
|
n === void 0 && (n = !1);
|
|
@@ -1790,7 +1790,7 @@ function Mh(t, e, n) {
|
|
|
1790
1790
|
reference: r,
|
|
1791
1791
|
floating: a
|
|
1792
1792
|
} = t;
|
|
1793
|
-
const o =
|
|
1793
|
+
const o = vr(e), s = Xw(e), i = Kw(s), l = ra(e), c = o === "y", u = r.x + r.width / 2 - a.width / 2, d = r.y + r.height / 2 - a.height / 2, f = r[i] / 2 - a[i] / 2;
|
|
1794
1794
|
let p;
|
|
1795
1795
|
switch (l) {
|
|
1796
1796
|
case "top":
|
|
@@ -1963,7 +1963,7 @@ const qx = function(t) {
|
|
|
1963
1963
|
} = fs(t, e);
|
|
1964
1964
|
if ((n = o.arrow) != null && n.alignmentOffset)
|
|
1965
1965
|
return {};
|
|
1966
|
-
const _ = ra(a), T =
|
|
1966
|
+
const _ = ra(a), T = vr(i), O = ra(i) === i, N = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), k = f || (O || !b ? [Ic(i)] : Hx(i)), M = y !== "none";
|
|
1967
1967
|
!f && M && k.push(...Vx(i, b, y, N));
|
|
1968
1968
|
const W = [i, ...k], h = await ou(e, x), v = [];
|
|
1969
1969
|
let g = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -1977,9 +1977,9 @@ const qx = function(t) {
|
|
|
1977
1977
|
}], !v.every((S) => S <= 0)) {
|
|
1978
1978
|
var D, A;
|
|
1979
1979
|
const S = (((D = o.flip) == null ? void 0 : D.index) || 0) + 1, E = W[S];
|
|
1980
|
-
if (E && (!(d === "alignment" ? T !==
|
|
1980
|
+
if (E && (!(d === "alignment" ? T !== vr(E) : !1) || // We leave the current main axis only if every placement on that axis
|
|
1981
1981
|
// overflows the main axis.
|
|
1982
|
-
g.every((L) => L.overflows[0] > 0 &&
|
|
1982
|
+
g.every((L) => L.overflows[0] > 0 && vr(L.placement) === T)))
|
|
1983
1983
|
return {
|
|
1984
1984
|
data: {
|
|
1985
1985
|
index: S,
|
|
@@ -1996,7 +1996,7 @@ const qx = function(t) {
|
|
|
1996
1996
|
var I;
|
|
1997
1997
|
const R = (I = g.filter((L) => {
|
|
1998
1998
|
if (M) {
|
|
1999
|
-
const $ =
|
|
1999
|
+
const $ = vr(L.placement);
|
|
2000
2000
|
return $ === T || // Create a bias to the `y` side axis due to horizontal
|
|
2001
2001
|
// reading directions favoring greater width.
|
|
2002
2002
|
$ === "y";
|
|
@@ -2026,7 +2026,7 @@ async function Kx(t, e) {
|
|
|
2026
2026
|
placement: n,
|
|
2027
2027
|
platform: r,
|
|
2028
2028
|
elements: a
|
|
2029
|
-
} = t, o = await (r.isRTL == null ? void 0 : r.isRTL(a.floating)), s = ra(n), i = Ml(n), l =
|
|
2029
|
+
} = t, o = await (r.isRTL == null ? void 0 : r.isRTL(a.floating)), s = ra(n), i = Ml(n), l = vr(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, u = o && l ? -1 : 1, d = fs(e, t);
|
|
2030
2030
|
let {
|
|
2031
2031
|
mainAxis: f,
|
|
2032
2032
|
crossAxis: p,
|
|
@@ -2098,7 +2098,7 @@ const Xx = function(t) {
|
|
|
2098
2098
|
} = fs(t, e), c = {
|
|
2099
2099
|
x: n,
|
|
2100
2100
|
y: r
|
|
2101
|
-
}, u = await ou(e, l), d =
|
|
2101
|
+
}, u = await ou(e, l), d = vr(ra(a)), f = qw(d);
|
|
2102
2102
|
let p = c[f], y = c[d];
|
|
2103
2103
|
if (o) {
|
|
2104
2104
|
const x = f === "y" ? "top" : "left", _ = f === "y" ? "bottom" : "right", T = p + u[x], O = p - u[_];
|
|
@@ -2141,7 +2141,7 @@ const Xx = function(t) {
|
|
|
2141
2141
|
apply: l = () => {
|
|
2142
2142
|
},
|
|
2143
2143
|
...c
|
|
2144
|
-
} = fs(t, e), u = await ou(e, c), d = ra(a), f = Ml(a), p =
|
|
2144
|
+
} = fs(t, e), u = await ou(e, c), d = ra(a), f = Ml(a), p = vr(a) === "y", {
|
|
2145
2145
|
width: y,
|
|
2146
2146
|
height: b
|
|
2147
2147
|
} = o.floating;
|
|
@@ -3307,9 +3307,9 @@ function fv({ defaultContainers: t = [], portals: e, mainTreeNode: n } = {}) {
|
|
|
3307
3307
|
let r = ta(n), a = Z(() => {
|
|
3308
3308
|
var o, s;
|
|
3309
3309
|
let i = [];
|
|
3310
|
-
for (let l of t) l !== null && (
|
|
3310
|
+
for (let l of t) l !== null && (br(l) ? i.push(l) : "current" in l && br(l.current) && i.push(l.current));
|
|
3311
3311
|
if (e != null && e.current) for (let l of e.current) i.push(l);
|
|
3312
|
-
for (let l of (o = r == null ? void 0 : r.querySelectorAll("html > *, body > *")) != null ? o : []) l !== document.body && l !== document.head &&
|
|
3312
|
+
for (let l of (o = r == null ? void 0 : r.querySelectorAll("html > *, body > *")) != null ? o : []) l !== document.body && l !== document.head && br(l) && l.id !== "headlessui-portal-root" && (n && (l.contains(n) || l.contains((s = n == null ? void 0 : n.getRootNode()) == null ? void 0 : s.host)) || i.some((c) => l.contains(c)) || i.push(l));
|
|
3313
3313
|
return i;
|
|
3314
3314
|
});
|
|
3315
3315
|
return { resolveContainers: a, contains: Z((o) => a().some((s) => s.contains(o))) };
|
|
@@ -3320,7 +3320,7 @@ function Nc({ children: t, node: e }) {
|
|
|
3320
3320
|
return G.createElement(hv.Provider, { value: a }, t, a === null && G.createElement(fn, { features: mn.Hidden, ref: (o) => {
|
|
3321
3321
|
var s, i;
|
|
3322
3322
|
if (o) {
|
|
3323
|
-
for (let l of (i = (s = sa(o)) == null ? void 0 : s.querySelectorAll("html > *, body > *")) != null ? i : []) if (l !== document.body && l !== document.head &&
|
|
3323
|
+
for (let l of (i = (s = sa(o)) == null ? void 0 : s.querySelectorAll("html > *, body > *")) != null ? i : []) if (l !== document.body && l !== document.head && br(l) && l != null && l.contains(o)) {
|
|
3324
3324
|
r(l);
|
|
3325
3325
|
break;
|
|
3326
3326
|
}
|
|
@@ -3348,7 +3348,7 @@ function yv(t) {
|
|
|
3348
3348
|
if (!t) return /* @__PURE__ */ new Set();
|
|
3349
3349
|
if (typeof t == "function") return new Set(t());
|
|
3350
3350
|
let e = /* @__PURE__ */ new Set();
|
|
3351
|
-
for (let n of t.current)
|
|
3351
|
+
for (let n of t.current) br(n.current) && e.add(n.current);
|
|
3352
3352
|
return e;
|
|
3353
3353
|
}
|
|
3354
3354
|
let cE = "div";
|
|
@@ -3379,7 +3379,7 @@ function uE(t, e) {
|
|
|
3379
3379
|
let O = yv(s);
|
|
3380
3380
|
Dt(n.current) && O.add(n.current);
|
|
3381
3381
|
let N = T.relatedTarget;
|
|
3382
|
-
pn(N) && N.dataset.headlessuiFocusGuard !== "true" && (wv(O, N) || (b.current ? st(n.current, qe(d.current, { [$t.Forwards]: () => Re.Next, [$t.Backwards]: () => Re.Previous }) | Re.WrapAround, { relativeTo: T.target }) : pn(T.target) &&
|
|
3382
|
+
pn(N) && N.dataset.headlessuiFocusGuard !== "true" && (wv(O, N) || (b.current ? st(n.current, qe(d.current, { [$t.Forwards]: () => Re.Next, [$t.Backwards]: () => Re.Previous }) | Re.WrapAround, { relativeTo: T.target }) : pn(T.target) && gr(T.target)));
|
|
3383
3383
|
} }, _ = Ce();
|
|
3384
3384
|
return G.createElement(G.Fragment, null, p && G.createElement(fn, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: f, features: mn.Focusable }), _({ ourProps: x, theirProps: l, defaultTag: cE, name: "FocusTrap" }), p && G.createElement(fn, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: f, features: mn.Focusable }));
|
|
3385
3385
|
}
|
|
@@ -3398,9 +3398,9 @@ function mE(t = !0) {
|
|
|
3398
3398
|
function fE(t, { ownerDocument: e }) {
|
|
3399
3399
|
let n = !!(t & 8), r = mE(n);
|
|
3400
3400
|
Xd(() => {
|
|
3401
|
-
n || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) &&
|
|
3401
|
+
n || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && gr(r());
|
|
3402
3402
|
}, [n]), ap(() => {
|
|
3403
|
-
n &&
|
|
3403
|
+
n && gr(r());
|
|
3404
3404
|
});
|
|
3405
3405
|
}
|
|
3406
3406
|
function hE(t, { ownerDocument: e, container: n, initialFocus: r, initialFocusFallback: a }) {
|
|
@@ -3408,7 +3408,7 @@ function hE(t, { ownerDocument: e, container: n, initialFocus: r, initialFocusFa
|
|
|
3408
3408
|
return Xd(() => {
|
|
3409
3409
|
if (t === 0) return;
|
|
3410
3410
|
if (!s) {
|
|
3411
|
-
a != null && a.current &&
|
|
3411
|
+
a != null && a.current && gr(a.current);
|
|
3412
3412
|
return;
|
|
3413
3413
|
}
|
|
3414
3414
|
let l = n.current;
|
|
@@ -3424,12 +3424,12 @@ function hE(t, { ownerDocument: e, container: n, initialFocus: r, initialFocusFa
|
|
|
3424
3424
|
o.current = c;
|
|
3425
3425
|
return;
|
|
3426
3426
|
}
|
|
3427
|
-
if (r != null && r.current)
|
|
3427
|
+
if (r != null && r.current) gr(r.current);
|
|
3428
3428
|
else {
|
|
3429
3429
|
if (t & 16) {
|
|
3430
3430
|
if (st(l, Re.First | Re.AutoFocus) !== $n.Error) return;
|
|
3431
3431
|
} else if (st(l, Re.First) !== $n.Error) return;
|
|
3432
|
-
if (a != null && a.current && (
|
|
3432
|
+
if (a != null && a.current && (gr(a.current), (e == null ? void 0 : e.activeElement) === a.current)) return;
|
|
3433
3433
|
console.warn("There are no focusable elements inside the <FocusTrap />");
|
|
3434
3434
|
}
|
|
3435
3435
|
o.current = e == null ? void 0 : e.activeElement;
|
|
@@ -3445,7 +3445,7 @@ function yE(t, { ownerDocument: e, container: n, containers: r, previousActiveEl
|
|
|
3445
3445
|
let c = a.current;
|
|
3446
3446
|
if (!c) return;
|
|
3447
3447
|
let u = i.target;
|
|
3448
|
-
Dt(u) ? wv(l, u) ? (a.current = u,
|
|
3448
|
+
Dt(u) ? wv(l, u) ? (a.current = u, gr(u)) : (i.preventDefault(), i.stopPropagation(), gr(c)) : gr(a.current);
|
|
3449
3449
|
}, !0);
|
|
3450
3450
|
}
|
|
3451
3451
|
function wv(t, e) {
|
|
@@ -3502,7 +3502,7 @@ function bv(t, e) {
|
|
|
3502
3502
|
});
|
|
3503
3503
|
return K(() => ({ children: r, register: i, unregister: s, onStart: d, onStop: f, wait: c, chains: u }), [i, s, r, d, f, u, c]);
|
|
3504
3504
|
}
|
|
3505
|
-
let gv = ht, Tv =
|
|
3505
|
+
let gv = ht, Tv = Zt.RenderStrategy;
|
|
3506
3506
|
function gE(t, e) {
|
|
3507
3507
|
var n, r;
|
|
3508
3508
|
let { transition: a = !0, beforeEnter: o, afterEnter: s, beforeLeave: i, afterLeave: l, enter: c, enterFrom: u, enterTo: d, entered: f, leave: p, leaveFrom: y, leaveTo: b, ...x } = t, [_, T] = de(null), O = ue(null), N = vv(t), k = Me(...N ? [O, e, T] : e === null ? [] : [e]), M = (n = x.unmount) == null || n ? Jr.Unmount : Jr.Hidden, { show: W, appear: h, initial: v } = vE(), [g, D] = de(W ? "visible" : "hidden"), A = bE(), { register: I, unregister: S } = A;
|
|
@@ -3618,7 +3618,7 @@ let Kh = Ee(function(t, e) {
|
|
|
3618
3618
|
M && !c && (j |= _o.RestoreFocus, j |= _o.TabLock, l && (j |= _o.AutoFocus), H && (j |= _o.InitialFocus));
|
|
3619
3619
|
let Q = Ce();
|
|
3620
3620
|
return G.createElement(rp, null, G.createElement(qh, { force: !0 }, G.createElement(mv, null, G.createElement(cp.Provider, { value: R }, G.createElement(pv, { target: y }, G.createElement(qh, { force: !1 }, G.createElement(C, { slot: L }, G.createElement(h, null, G.createElement(pE, { initialFocus: s, initialFocusFallback: y, containers: D, features: j }, G.createElement(Qc, { value: N }, Q({ ourProps: $, theirProps: d, slot: L, defaultTag: PE, features: OE, visible: _ === 0, name: "Dialog" })))))))))));
|
|
3621
|
-
}), PE = "div", OE =
|
|
3621
|
+
}), PE = "div", OE = Zt.RenderStrategy | Zt.Static;
|
|
3622
3622
|
function DE(t, e) {
|
|
3623
3623
|
let { transition: n = !1, open: r, ...a } = t, o = qo(), s = t.hasOwnProperty("open") || o !== null, i = t.hasOwnProperty("onClose");
|
|
3624
3624
|
if (!s && !i) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
@@ -3737,10 +3737,10 @@ function KE(t, e) {
|
|
|
3737
3737
|
}), b = Z((v) => {
|
|
3738
3738
|
var g;
|
|
3739
3739
|
Nl(v.currentTarget) || a || (u ? (l({ type: 0 }), (g = i.buttonElement) == null || g.focus()) : l({ type: 0 }));
|
|
3740
|
-
}), { isFocusVisible: x, focusProps: _ } = ps({ autoFocus: o }), { isHovered: T, hoverProps: O } = Dl({ isDisabled: a }), { pressed: N, pressProps: k } = _l({ disabled: a }), M = K(() => ({ open: i.disclosureState === 0, hover: T, active: N, disabled: a, focus: x, autofocus: o }), [i, T, N, x, a, o]), W = Jc(t, i.buttonElement), h =
|
|
3740
|
+
}), { isFocusVisible: x, focusProps: _ } = ps({ autoFocus: o }), { isHovered: T, hoverProps: O } = Dl({ isDisabled: a }), { pressed: N, pressProps: k } = _l({ disabled: a }), M = K(() => ({ open: i.disclosureState === 0, hover: T, active: N, disabled: a, focus: x, autofocus: o }), [i, T, N, x, a, o]), W = Jc(t, i.buttonElement), h = xr(u ? { ref: f, type: W, disabled: a || void 0, autoFocus: o, onKeyDown: p, onClick: b } : { ref: f, id: r, type: W, "aria-expanded": i.disclosureState === 0, "aria-controls": i.panelElement ? i.panelId : void 0, disabled: a || void 0, autoFocus: o, onKeyDown: p, onKeyUp: y, onClick: b }, _, O, k);
|
|
3741
3741
|
return Ce()({ ourProps: h, theirProps: s, slot: M, defaultTag: qE, name: "Disclosure.Button" });
|
|
3742
3742
|
}
|
|
3743
|
-
let XE = "div", QE =
|
|
3743
|
+
let XE = "div", QE = Zt.RenderStrategy | Zt.Static;
|
|
3744
3744
|
function ZE(t, e) {
|
|
3745
3745
|
let n = it(), { id: r = `headlessui-disclosure-panel-${n}`, transition: a = !1, ...o } = t, [s, i] = dp("Disclosure.Panel"), { close: l } = Sv("Disclosure.Panel"), [c, u] = de(null), d = Me(e, Z((T) => {
|
|
3746
3746
|
WE(() => i({ type: 5, element: T }));
|
|
@@ -3885,7 +3885,7 @@ function dS(t, e) {
|
|
|
3885
3885
|
Nl(z.currentTarget) || a || (O ? (i.actions.close(), (ee = i.state.button) == null || ee.focus()) : (z.preventDefault(), z.stopPropagation(), i.state.popoverState === et.Closed ? (T == null || T(i.state.buttonId), i.actions.open()) : i.actions.close(), (ae = i.state.button) == null || ae.focus()));
|
|
3886
3886
|
}), D = Z((z) => {
|
|
3887
3887
|
z.preventDefault(), z.stopPropagation();
|
|
3888
|
-
}), { isFocusVisible: A, focusProps: I } = ps({ autoFocus: o }), { isHovered: S, hoverProps: E } = Dl({ isDisabled: a }), { pressed: C, pressProps: R } = _l({ disabled: a }), L = l === et.Open, $ = K(() => ({ open: L, active: C || L, disabled: a, hover: S, focus: A, autofocus: o }), [L, S, A, C, a, o]), H = Jc(t, u), j =
|
|
3888
|
+
}), { isFocusVisible: A, focusProps: I } = ps({ autoFocus: o }), { isHovered: S, hoverProps: E } = Dl({ isDisabled: a }), { pressed: C, pressProps: R } = _l({ disabled: a }), L = l === et.Open, $ = K(() => ({ open: L, active: C || L, disabled: a, hover: S, focus: A, autofocus: o }), [L, S, A, C, a, o]), H = Jc(t, u), j = xr(O ? { ref: M, type: H, onKeyDown: h, onClick: g, disabled: a || void 0, autoFocus: o } : { ref: k, id: d, type: H, "aria-expanded": l === et.Open, "aria-controls": f ? p : void 0, disabled: a || void 0, autoFocus: o, onKeyDown: h, onKeyUp: v, onClick: g, onMouseDown: D }, I, E, R), Q = sp(), V = Z(() => {
|
|
3889
3889
|
if (!Dt(i.state.panel)) return;
|
|
3890
3890
|
let z = i.state.panel;
|
|
3891
3891
|
function ee() {
|
|
@@ -3895,7 +3895,7 @@ function dS(t, e) {
|
|
|
3895
3895
|
}), ie = Ce();
|
|
3896
3896
|
return G.createElement(G.Fragment, null, ie({ ourProps: j, theirProps: s, slot: $, defaultTag: uS, name: "Popover.Button" }), L && !O && c && G.createElement(fn, { id: x, ref: y, features: mn.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: V }));
|
|
3897
3897
|
}
|
|
3898
|
-
let pS = "div", mS =
|
|
3898
|
+
let pS = "div", mS = Zt.RenderStrategy | Zt.Static;
|
|
3899
3899
|
function Dv(t, e) {
|
|
3900
3900
|
let n = it(), { id: r = `headlessui-popover-backdrop-${n}`, transition: a = !1, ...o } = t, s = pu("Popover.Backdrop"), i = ea(s, q((_) => _.popoverState, [])), [l, c] = de(null), u = Me(e, c), d = qo(), [f, p] = tu(a, l, d !== null ? (d & Qe.Open) === Qe.Open : i === et.Open), y = Z((_) => {
|
|
3901
3901
|
if (Nl(_.currentTarget)) return _.preventDefault();
|
|
@@ -3903,7 +3903,7 @@ function Dv(t, e) {
|
|
|
3903
3903
|
}), b = K(() => ({ open: i === et.Open }), [i]), x = { ref: u, id: r, "aria-hidden": !0, onClick: y, ...eu(p) };
|
|
3904
3904
|
return Ce()({ ourProps: x, theirProps: o, slot: b, defaultTag: pS, features: mS, visible: f, name: "Popover.Backdrop" });
|
|
3905
3905
|
}
|
|
3906
|
-
let fS = "div", hS =
|
|
3906
|
+
let fS = "div", hS = Zt.RenderStrategy | Zt.Static;
|
|
3907
3907
|
function yS(t, e) {
|
|
3908
3908
|
let n = it(), { id: r = `headlessui-popover-panel-${n}`, focus: a = !1, anchor: o, portal: s = !1, modal: i = !1, transition: l = !1, ...c } = t, u = pu("Popover.Panel"), d = ea(u, u.selectors.isPortalled), [f, p, y, b, x] = ea(u, q((V) => [V.popoverState, V.button, V.__demoMode, V.beforePanelSentinel, V.afterPanelSentinel], [])), _ = `headlessui-focus-sentinel-before-${n}`, T = `headlessui-focus-sentinel-after-${n}`, O = ue(null), N = G1(o), [k, M] = q1(N), W = Y1();
|
|
3909
3909
|
N && (s = !0);
|
|
@@ -3928,7 +3928,7 @@ function yS(t, e) {
|
|
|
3928
3928
|
let V = A == null ? void 0 : A.activeElement;
|
|
3929
3929
|
O.current.contains(V) || st(O.current, Re.First);
|
|
3930
3930
|
}, [y, a, O.current, f]);
|
|
3931
|
-
let R = K(() => ({ open: f === et.Open, close: u.actions.refocusableClose }), [f, u]), L =
|
|
3931
|
+
let R = K(() => ({ open: f === et.Open, close: u.actions.refocusableClose }), [f, u]), L = xr(N ? W() : {}, { ref: g, id: r, onKeyDown: C, onBlur: a && f === et.Open ? (V) => {
|
|
3932
3932
|
var ie, z, ee, ae, re;
|
|
3933
3933
|
let xe = V.relatedTarget;
|
|
3934
3934
|
xe && O.current && ((ie = O.current) != null && ie.contains(xe) || (u.actions.close(), ((ee = (z = b.current) == null ? void 0 : z.contains) != null && ee.call(z, xe) || (re = (ae = x.current) == null ? void 0 : ae.contains) != null && re.call(ae, xe)) && xe.focus({ preventScroll: !0 })));
|
|
@@ -4013,7 +4013,7 @@ function CS(t, e) {
|
|
|
4013
4013
|
ae.preventDefault(), D();
|
|
4014
4014
|
}), I = Z((ae) => {
|
|
4015
4015
|
ae.key === Ie.Space ? (ae.preventDefault(), D()) : ae.key === Ie.Enter && xw(ae.currentTarget);
|
|
4016
|
-
}), S = Z((ae) => ae.preventDefault()), E = Gd(), C = _w(), { isFocusVisible: R, focusProps: L } = ps({ autoFocus: y }), { isHovered: $, hoverProps: H } = Dl({ isDisabled: i }), { pressed: j, pressProps: Q } = _l({ disabled: i }), V = K(() => ({ checked: M, disabled: i, hover: $, focus: R, active: j, autofocus: y, changing: v }), [M, $, R, j, i, v, y]), ie =
|
|
4016
|
+
}), S = Z((ae) => ae.preventDefault()), E = Gd(), C = _w(), { isFocusVisible: R, focusProps: L } = ps({ autoFocus: y }), { isHovered: $, hoverProps: H } = Dl({ isDisabled: i }), { pressed: j, pressProps: Q } = _l({ disabled: i }), V = K(() => ({ checked: M, disabled: i, hover: $, focus: R, active: j, autofocus: y, changing: v }), [M, $, R, j, i, v, y]), ie = xr({ id: s, ref: N, role: "switch", type: Jc(t, _), tabIndex: t.tabIndex === -1 ? 0 : (n = t.tabIndex) != null ? n : 0, "aria-checked": M, "aria-labelledby": E, "aria-describedby": C, disabled: i || void 0, autoFocus: y, onClick: A, onKeyUp: I, onKeyPress: S }, L, H, Q), z = q(() => {
|
|
4017
4017
|
if (k !== void 0) return W == null ? void 0 : W(k);
|
|
4018
4018
|
}, [W, k]), ee = Ce();
|
|
4019
4019
|
return G.createElement(G.Fragment, null, d != null && G.createElement(Sw, { disabled: i, data: { [d]: f || "on" }, overrides: { type: "checkbox", checked: M }, form: p, onReset: z }), ee({ ourProps: ie, theirProps: b, slot: V, defaultTag: AS, name: "Switch" }));
|
|
@@ -4183,7 +4183,7 @@ function GS(t, e) {
|
|
|
4183
4183
|
}));
|
|
4184
4184
|
}), D = Z((H) => {
|
|
4185
4185
|
H.preventDefault();
|
|
4186
|
-
}), { isFocusVisible: A, focusProps: I } = ps({ autoFocus: i }), { isHovered: S, hoverProps: E } = Dl({ isDisabled: s }), { pressed: C, pressProps: R } = _l({ disabled: s }), L = K(() => ({ selected: M, hover: S, active: C, focus: A, autofocus: i, disabled: s }), [M, S, A, C, i, s]), $ =
|
|
4186
|
+
}), { isFocusVisible: A, focusProps: I } = ps({ autoFocus: i }), { isHovered: S, hoverProps: E } = Dl({ isDisabled: s }), { pressed: C, pressProps: R } = _l({ disabled: s }), L = K(() => ({ selected: M, hover: S, active: C, focus: A, autofocus: i, disabled: s }), [M, S, A, C, i, s]), $ = xr({ ref: O, onKeyDown: h, onMouseDown: D, onClick: g, id: o, role: "tab", type: Jc(t, x), "aria-controls": (r = (n = p[k]) == null ? void 0 : n.current) == null ? void 0 : r.id, "aria-selected": M, tabIndex: M ? 0 : -1, disabled: s || void 0, autoFocus: i }, I, E, R);
|
|
4187
4187
|
return Ce()({ ourProps: $, theirProps: l, slot: L, defaultTag: VS, name: "Tabs.Tab" });
|
|
4188
4188
|
}
|
|
4189
4189
|
let jS = "div";
|
|
@@ -4191,14 +4191,14 @@ function YS(t, e) {
|
|
|
4191
4191
|
let { selectedIndex: n } = as("Tab.Panels"), r = Me(e), a = K(() => ({ selectedIndex: n }), [n]), o = t, s = { ref: r };
|
|
4192
4192
|
return Ce()({ ourProps: s, theirProps: o, slot: a, defaultTag: jS, name: "Tabs.Panels" });
|
|
4193
4193
|
}
|
|
4194
|
-
let qS = "div", KS =
|
|
4194
|
+
let qS = "div", KS = Zt.RenderStrategy | Zt.Static;
|
|
4195
4195
|
function XS(t, e) {
|
|
4196
4196
|
var n, r, a, o;
|
|
4197
4197
|
let s = it(), { id: i = `headlessui-tabs-panel-${s}`, tabIndex: l = 0, ...c } = t, { selectedIndex: u, tabs: d, panels: f } = as("Tab.Panel"), p = Tp("Tab.Panel"), y = ue(null), b = Me(y, e);
|
|
4198
4198
|
ke(() => p.registerPanel(y), [p, y]);
|
|
4199
4199
|
let x = Rv("panels"), _ = f.indexOf(y);
|
|
4200
4200
|
_ === -1 && (_ = x);
|
|
4201
|
-
let T = _ === u, { isFocusVisible: O, focusProps: N } = ps(), k = K(() => ({ selected: T, focus: O }), [T, O]), M =
|
|
4201
|
+
let T = _ === u, { isFocusVisible: O, focusProps: N } = ps(), k = K(() => ({ selected: T, focus: O }), [T, O]), M = xr({ ref: b, id: i, role: "tabpanel", "aria-labelledby": (r = (n = d[_]) == null ? void 0 : n.current) == null ? void 0 : r.id, tabIndex: T ? l : -1 }, N), W = Ce();
|
|
4202
4202
|
return !T && ((a = c.unmount) == null || a) && !((o = c.static) != null && o) ? G.createElement(fn, { "aria-hidden": "true", ...M }) : W({ ourProps: M, theirProps: c, slot: k, defaultTag: qS, features: KS, visible: T, name: "Tabs.Panel" });
|
|
4203
4203
|
}
|
|
4204
4204
|
let QS = Ee(GS), xp = Ee(US), Ep = Ee(zS), Sp = Ee(YS), Ap = Ee(XS), kv = Object.assign(QS, { Group: xp, List: Ep, Panels: Sp, Panel: Ap });
|
|
@@ -4957,7 +4957,7 @@ class FA extends qv {
|
|
|
4957
4957
|
return this._cloneInto();
|
|
4958
4958
|
}
|
|
4959
4959
|
}
|
|
4960
|
-
const
|
|
4960
|
+
const Gr = /* @__PURE__ */ Uint32Array.from([
|
|
4961
4961
|
1779033703,
|
|
4962
4962
|
3144134277,
|
|
4963
4963
|
1013904242,
|
|
@@ -5044,10 +5044,10 @@ const HA = (t, e, n) => t << n | e >>> 32 - n, zA = (t, e, n) => e << n | t >>>
|
|
|
5044
5044
|
2756734187,
|
|
5045
5045
|
3204031479,
|
|
5046
5046
|
3329325298
|
|
5047
|
-
]),
|
|
5047
|
+
]), jr = /* @__PURE__ */ new Uint32Array(64);
|
|
5048
5048
|
class YA extends FA {
|
|
5049
5049
|
constructor(e = 32) {
|
|
5050
|
-
super(64, e, 8, !1), this.A =
|
|
5050
|
+
super(64, e, 8, !1), this.A = Gr[0] | 0, this.B = Gr[1] | 0, this.C = Gr[2] | 0, this.D = Gr[3] | 0, this.E = Gr[4] | 0, this.F = Gr[5] | 0, this.G = Gr[6] | 0, this.H = Gr[7] | 0;
|
|
5051
5051
|
}
|
|
5052
5052
|
get() {
|
|
5053
5053
|
const { A: e, B: n, C: r, D: a, E: o, F: s, G: i, H: l } = this;
|
|
@@ -5059,20 +5059,20 @@ class YA extends FA {
|
|
|
5059
5059
|
}
|
|
5060
5060
|
process(e, n) {
|
|
5061
5061
|
for (let d = 0; d < 16; d++, n += 4)
|
|
5062
|
-
|
|
5062
|
+
jr[d] = e.getUint32(n, !1);
|
|
5063
5063
|
for (let d = 16; d < 64; d++) {
|
|
5064
|
-
const f =
|
|
5065
|
-
|
|
5064
|
+
const f = jr[d - 15], p = jr[d - 2], y = Rn(f, 7) ^ Rn(f, 18) ^ f >>> 3, b = Rn(p, 17) ^ Rn(p, 19) ^ p >>> 10;
|
|
5065
|
+
jr[d] = b + jr[d - 7] + y + jr[d - 16] | 0;
|
|
5066
5066
|
}
|
|
5067
5067
|
let { A: r, B: a, C: o, D: s, E: i, F: l, G: c, H: u } = this;
|
|
5068
5068
|
for (let d = 0; d < 64; d++) {
|
|
5069
|
-
const f = Rn(i, 6) ^ Rn(i, 11) ^ Rn(i, 25), p = u + f + MA(i, l, c) + jA[d] +
|
|
5069
|
+
const f = Rn(i, 6) ^ Rn(i, 11) ^ Rn(i, 25), p = u + f + MA(i, l, c) + jA[d] + jr[d] | 0, b = (Rn(r, 2) ^ Rn(r, 13) ^ Rn(r, 22)) + BA(r, a, o) | 0;
|
|
5070
5070
|
u = c, c = l, l = i, i = s + p | 0, s = o, o = a, a = r, r = p + b | 0;
|
|
5071
5071
|
}
|
|
5072
5072
|
r = r + this.A | 0, a = a + this.B | 0, o = o + this.C | 0, s = s + this.D | 0, i = i + this.E | 0, l = l + this.F | 0, c = c + this.G | 0, u = u + this.H | 0, this.set(r, a, o, s, i, l, c, u);
|
|
5073
5073
|
}
|
|
5074
5074
|
roundClean() {
|
|
5075
|
-
Tl(
|
|
5075
|
+
Tl(jr);
|
|
5076
5076
|
}
|
|
5077
5077
|
destroy() {
|
|
5078
5078
|
this.set(0, 0, 0, 0, 0, 0, 0, 0), Tl(this.buffer);
|
|
@@ -5801,7 +5801,7 @@ const Mc = {
|
|
|
5801
5801
|
blockCreated: 14353601
|
|
5802
5802
|
}
|
|
5803
5803
|
}
|
|
5804
|
-
}), Ji = 1,
|
|
5804
|
+
}), Ji = 1, Jt = /* @__PURE__ */ Wl({
|
|
5805
5805
|
...Mc,
|
|
5806
5806
|
id: 10,
|
|
5807
5807
|
name: "OP Mainnet",
|
|
@@ -5869,22 +5869,22 @@ const Mc = {
|
|
|
5869
5869
|
}
|
|
5870
5870
|
}
|
|
5871
5871
|
}), i0 = 6048e5, B2 = 864e5, F2 = 6e4, W2 = 36e5, iy = Symbol.for("constructDateFrom");
|
|
5872
|
-
function
|
|
5872
|
+
function en(t, e) {
|
|
5873
5873
|
return typeof t == "function" ? t(e) : t && typeof t == "object" && iy in t ? t[iy](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
|
|
5874
5874
|
}
|
|
5875
5875
|
function Ze(t, e) {
|
|
5876
|
-
return
|
|
5876
|
+
return en(e || t, t);
|
|
5877
5877
|
}
|
|
5878
5878
|
function U2(t, e, n) {
|
|
5879
5879
|
const r = Ze(t, n == null ? void 0 : n.in);
|
|
5880
|
-
return isNaN(e) ?
|
|
5880
|
+
return isNaN(e) ? en(t, NaN) : (e && r.setDate(r.getDate() + e), r);
|
|
5881
5881
|
}
|
|
5882
5882
|
function H2(t, e, n) {
|
|
5883
5883
|
const r = Ze(t, n == null ? void 0 : n.in);
|
|
5884
|
-
if (isNaN(e)) return
|
|
5884
|
+
if (isNaN(e)) return en(t, NaN);
|
|
5885
5885
|
if (!e)
|
|
5886
5886
|
return r;
|
|
5887
|
-
const a = r.getDate(), o =
|
|
5887
|
+
const a = r.getDate(), o = en(t, r.getTime());
|
|
5888
5888
|
o.setMonth(r.getMonth() + e + 1, 0);
|
|
5889
5889
|
const s = o.getDate();
|
|
5890
5890
|
return a >= s ? o : (r.setFullYear(
|
|
@@ -5903,7 +5903,7 @@ function el(t, e, n) {
|
|
|
5903
5903
|
minutes: l = 0,
|
|
5904
5904
|
seconds: c = 0
|
|
5905
5905
|
} = e, u = Ze(t, n == null ? void 0 : n.in), d = a || r ? H2(u, a + r * 12) : u, f = s || o ? U2(d, s + o * 7) : d, p = l + i * 60, b = (c + p * 60) * 1e3;
|
|
5906
|
-
return
|
|
5906
|
+
return en(t, +f + b);
|
|
5907
5907
|
}
|
|
5908
5908
|
let z2 = {};
|
|
5909
5909
|
function Vl() {
|
|
@@ -5918,9 +5918,9 @@ function Bc(t, e) {
|
|
|
5918
5918
|
return xl(t, { ...e, weekStartsOn: 1 });
|
|
5919
5919
|
}
|
|
5920
5920
|
function l0(t, e) {
|
|
5921
|
-
const n = Ze(t, e == null ? void 0 : e.in), r = n.getFullYear(), a =
|
|
5921
|
+
const n = Ze(t, e == null ? void 0 : e.in), r = n.getFullYear(), a = en(n, 0);
|
|
5922
5922
|
a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
|
|
5923
|
-
const o = Bc(a), s =
|
|
5923
|
+
const o = Bc(a), s = en(n, 0);
|
|
5924
5924
|
s.setFullYear(r, 0, 4), s.setHours(0, 0, 0, 0);
|
|
5925
5925
|
const i = Bc(s);
|
|
5926
5926
|
return n.getTime() >= o.getTime() ? r + 1 : n.getTime() >= i.getTime() ? r : r - 1;
|
|
@@ -5940,7 +5940,7 @@ function ly(t) {
|
|
|
5940
5940
|
return n.setUTCFullYear(e.getFullYear()), +t - +n;
|
|
5941
5941
|
}
|
|
5942
5942
|
function ca(t, ...e) {
|
|
5943
|
-
const n =
|
|
5943
|
+
const n = en.bind(
|
|
5944
5944
|
null,
|
|
5945
5945
|
e.find((r) => typeof r == "object")
|
|
5946
5946
|
);
|
|
@@ -5959,7 +5959,7 @@ function c0(t, e, n) {
|
|
|
5959
5959
|
return Math.round((i - l) / B2);
|
|
5960
5960
|
}
|
|
5961
5961
|
function V2(t, e) {
|
|
5962
|
-
const n = l0(t, e), r =
|
|
5962
|
+
const n = l0(t, e), r = en(t, 0);
|
|
5963
5963
|
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Bc(r);
|
|
5964
5964
|
}
|
|
5965
5965
|
function ul(t, e) {
|
|
@@ -6516,16 +6516,16 @@ function FC(t, e) {
|
|
|
6516
6516
|
}
|
|
6517
6517
|
function p0(t, e) {
|
|
6518
6518
|
var u, d, f, p;
|
|
6519
|
-
const n = Ze(t, e == null ? void 0 : e.in), r = n.getFullYear(), a = Vl(), o = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((d = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((p = (f = a.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, s =
|
|
6519
|
+
const n = Ze(t, e == null ? void 0 : e.in), r = n.getFullYear(), a = Vl(), o = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((d = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((p = (f = a.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, s = en((e == null ? void 0 : e.in) || t, 0);
|
|
6520
6520
|
s.setFullYear(r + 1, 0, o), s.setHours(0, 0, 0, 0);
|
|
6521
|
-
const i = xl(s, e), l =
|
|
6521
|
+
const i = xl(s, e), l = en((e == null ? void 0 : e.in) || t, 0);
|
|
6522
6522
|
l.setFullYear(r, 0, o), l.setHours(0, 0, 0, 0);
|
|
6523
6523
|
const c = xl(l, e);
|
|
6524
6524
|
return +n >= +i ? r + 1 : +n >= +c ? r : r - 1;
|
|
6525
6525
|
}
|
|
6526
6526
|
function WC(t, e) {
|
|
6527
6527
|
var i, l, c, u;
|
|
6528
|
-
const n = Vl(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((l = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((u = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, a = p0(t, e), o =
|
|
6528
|
+
const n = Vl(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((l = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((u = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, a = p0(t, e), o = en((e == null ? void 0 : e.in) || t, 0);
|
|
6529
6529
|
return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0), xl(o, e);
|
|
6530
6530
|
}
|
|
6531
6531
|
function UC(t, e) {
|
|
@@ -6536,7 +6536,7 @@ function Oe(t, e) {
|
|
|
6536
6536
|
const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
|
|
6537
6537
|
return n + r;
|
|
6538
6538
|
}
|
|
6539
|
-
const
|
|
6539
|
+
const Yr = {
|
|
6540
6540
|
// Year
|
|
6541
6541
|
y(t, e) {
|
|
6542
6542
|
const n = t.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
@@ -6619,7 +6619,7 @@ const jr = {
|
|
|
6619
6619
|
const r = t.getFullYear(), a = r > 0 ? r : 1 - r;
|
|
6620
6620
|
return n.ordinalNumber(a, { unit: "year" });
|
|
6621
6621
|
}
|
|
6622
|
-
return
|
|
6622
|
+
return Yr.y(t, e);
|
|
6623
6623
|
},
|
|
6624
6624
|
// Local week-numbering year
|
|
6625
6625
|
Y: function(t, e, n, r) {
|
|
@@ -6710,7 +6710,7 @@ const jr = {
|
|
|
6710
6710
|
switch (e) {
|
|
6711
6711
|
case "M":
|
|
6712
6712
|
case "MM":
|
|
6713
|
-
return
|
|
6713
|
+
return Yr.M(t, e);
|
|
6714
6714
|
case "Mo":
|
|
6715
6715
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
6716
6716
|
case "MMM":
|
|
@@ -6765,7 +6765,7 @@ const jr = {
|
|
|
6765
6765
|
},
|
|
6766
6766
|
// Day of the month
|
|
6767
6767
|
d: function(t, e, n) {
|
|
6768
|
-
return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) :
|
|
6768
|
+
return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) : Yr.d(t, e);
|
|
6769
6769
|
},
|
|
6770
6770
|
// Day of year
|
|
6771
6771
|
D: function(t, e, n) {
|
|
@@ -6988,11 +6988,11 @@ const jr = {
|
|
|
6988
6988
|
let r = t.getHours() % 12;
|
|
6989
6989
|
return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
|
|
6990
6990
|
}
|
|
6991
|
-
return
|
|
6991
|
+
return Yr.h(t, e);
|
|
6992
6992
|
},
|
|
6993
6993
|
// Hour [0-23]
|
|
6994
6994
|
H: function(t, e, n) {
|
|
6995
|
-
return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) :
|
|
6995
|
+
return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) : Yr.H(t, e);
|
|
6996
6996
|
},
|
|
6997
6997
|
// Hour [0-11]
|
|
6998
6998
|
K: function(t, e, n) {
|
|
@@ -7006,15 +7006,15 @@ const jr = {
|
|
|
7006
7006
|
},
|
|
7007
7007
|
// Minute
|
|
7008
7008
|
m: function(t, e, n) {
|
|
7009
|
-
return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) :
|
|
7009
|
+
return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) : Yr.m(t, e);
|
|
7010
7010
|
},
|
|
7011
7011
|
// Second
|
|
7012
7012
|
s: function(t, e, n) {
|
|
7013
|
-
return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) :
|
|
7013
|
+
return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) : Yr.s(t, e);
|
|
7014
7014
|
},
|
|
7015
7015
|
// Fraction of second
|
|
7016
7016
|
S: function(t, e) {
|
|
7017
|
-
return
|
|
7017
|
+
return Yr.S(t, e);
|
|
7018
7018
|
},
|
|
7019
7019
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
7020
7020
|
X: function(t, e, n) {
|
|
@@ -7238,14 +7238,14 @@ const pe = "0x0000000000000000000000000000000000000000", wu = BigInt(
|
|
|
7238
7238
|
), ne = 18, sP = 59e3, Gl = 3e4, jl = 15e3, f0 = 5e3, h0 = 400, y0 = h0 * 1.2, iP = Rp({ hours: 24 }), lP = {
|
|
7239
7239
|
address: pe,
|
|
7240
7240
|
symbol: "",
|
|
7241
|
-
chainId:
|
|
7241
|
+
chainId: Jt.id,
|
|
7242
7242
|
depositParams: { customTokens: [] },
|
|
7243
7243
|
withdrawParams: { customTokens: [] },
|
|
7244
7244
|
deprecated: !1
|
|
7245
7245
|
}, zk = "deposit", cP = 1, kp = 0, uP = 0.5, dP = 0.3, Vk = [kp], pP = "withdrawSafe", w0 = "initWithdrawal", mP = "unrollAndClaim", fP = "completeWithdrawal", hP = 3e7, yP = 1.25, Lo = 1e4, wP = 13e3, v0 = 3, $p = 2e4, vP = 15e3, bP = {
|
|
7246
7246
|
[zn.id]: zn,
|
|
7247
7247
|
[Vn.id]: Vn,
|
|
7248
|
-
[
|
|
7248
|
+
[Jt.id]: Jt,
|
|
7249
7249
|
[Hn.id]: Hn,
|
|
7250
7250
|
[yn.id]: yn
|
|
7251
7251
|
}, dl = {
|
|
@@ -7261,7 +7261,7 @@ const pe = "0x0000000000000000000000000000000000000000", wu = BigInt(
|
|
|
7261
7261
|
address: "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
|
|
7262
7262
|
decimals: ne
|
|
7263
7263
|
},
|
|
7264
|
-
[
|
|
7264
|
+
[Jt.id]: {
|
|
7265
7265
|
nativeTokenSymbol: "ETH",
|
|
7266
7266
|
wrappedNativeTokenName: "WETH",
|
|
7267
7267
|
address: "0x4200000000000000000000000000000000000006",
|
|
@@ -7282,12 +7282,12 @@ const pe = "0x0000000000000000000000000000000000000000", wu = BigInt(
|
|
|
7282
7282
|
}, Yu = {
|
|
7283
7283
|
[zn.id]: 299e5,
|
|
7284
7284
|
[Vn.id]: 299e5,
|
|
7285
|
-
[
|
|
7285
|
+
[Jt.id]: 299e5,
|
|
7286
7286
|
[Hn.id]: 299e5,
|
|
7287
7287
|
[yn.id]: 299e5
|
|
7288
7288
|
}, Gk = {
|
|
7289
7289
|
[zn.id]: "https://eth-mainnet.g.alchemy.com/v2",
|
|
7290
|
-
[
|
|
7290
|
+
[Jt.id]: "https://opt-mainnet.g.alchemy.com/v2",
|
|
7291
7291
|
[Vn.id]: "https://polygon-mainnet.g.alchemy.com/v2",
|
|
7292
7292
|
[Hn.id]: "https://arb-mainnet.g.alchemy.com/v2",
|
|
7293
7293
|
[yn.id]: "https://base-mainnet.g.alchemy.com/v2"
|
|
@@ -7332,7 +7332,7 @@ const pe = "0x0000000000000000000000000000000000000000", wu = BigInt(
|
|
|
7332
7332
|
claim: [ot.CLAIM],
|
|
7333
7333
|
swap: [ot.SWAP],
|
|
7334
7334
|
create_limit_sell_order: [ot.CREATE_LIMIT_SELL_ORDER]
|
|
7335
|
-
},
|
|
7335
|
+
}, Tr = {
|
|
7336
7336
|
IS_INFINITE: { NAME: "is_infinite", TYPE: "number" },
|
|
7337
7337
|
SYMBOL: { NAME: "symbol", TYPE: "string" },
|
|
7338
7338
|
CHAIN_ID: { NAME: "chain_id", TYPE: "number" },
|
|
@@ -11205,7 +11205,7 @@ const pe = "0x0000000000000000000000000000000000000000", wu = BigInt(
|
|
|
11205
11205
|
easySwapperV2: HP,
|
|
11206
11206
|
limitOrder: zP
|
|
11207
11207
|
},
|
|
11208
|
-
[
|
|
11208
|
+
[Jt.id]: {
|
|
11209
11209
|
factory: kP,
|
|
11210
11210
|
rewardDistribution: RP,
|
|
11211
11211
|
aaveLendingPoolV3: $P,
|
|
@@ -11393,7 +11393,7 @@ const pe = "0x0000000000000000000000000000000000000000", wu = BigInt(
|
|
|
11393
11393
|
symbol: "USDCe",
|
|
11394
11394
|
decimals: 6,
|
|
11395
11395
|
value: ""
|
|
11396
|
-
},
|
|
11396
|
+
}, yr = {
|
|
11397
11397
|
address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
|
11398
11398
|
symbol: "USDC",
|
|
11399
11399
|
decimals: 6,
|
|
@@ -11604,18 +11604,18 @@ const pe = "0x0000000000000000000000000000000000000000", wu = BigInt(
|
|
|
11604
11604
|
[L0.address.toLowerCase()]: "USDCe"
|
|
11605
11605
|
}, fO = {
|
|
11606
11606
|
[zn.id]: P0,
|
|
11607
|
-
[
|
|
11607
|
+
[Jt.id]: I0,
|
|
11608
11608
|
[yn.id]: C0,
|
|
11609
11609
|
[Vn.id]: _0,
|
|
11610
11610
|
[Hn.id]: Fc
|
|
11611
11611
|
}, hO = {
|
|
11612
|
-
[
|
|
11612
|
+
[Jt.id]: pl,
|
|
11613
11613
|
[yn.id]: aO,
|
|
11614
11614
|
[Vn.id]: N0,
|
|
11615
11615
|
[Hn.id]: ns,
|
|
11616
11616
|
[zn.id]: O0
|
|
11617
11617
|
}, yO = {
|
|
11618
|
-
[
|
|
11618
|
+
[Jt.id]: {
|
|
11619
11619
|
WETH: I0,
|
|
11620
11620
|
USDC: iO,
|
|
11621
11621
|
WBTC: pl,
|
|
@@ -11634,7 +11634,7 @@ const pe = "0x0000000000000000000000000000000000000000", wu = BigInt(
|
|
|
11634
11634
|
},
|
|
11635
11635
|
[Hn.id]: {
|
|
11636
11636
|
WETH: Fc,
|
|
11637
|
-
USDC:
|
|
11637
|
+
USDC: yr,
|
|
11638
11638
|
WBTC: ns,
|
|
11639
11639
|
USDCe: A0
|
|
11640
11640
|
},
|
|
@@ -11674,7 +11674,7 @@ const pe = "0x0000000000000000000000000000000000000000", wu = BigInt(
|
|
|
11674
11674
|
k0,
|
|
11675
11675
|
"0x357cb23571ef7a3d6189b7facfc361ea71f7cab5"
|
|
11676
11676
|
// WBTC_OPTIMISM
|
|
11677
|
-
],
|
|
11677
|
+
], qr = {
|
|
11678
11678
|
DEPOSIT: "deposit",
|
|
11679
11679
|
DEPOSIT_CUSTOM: "depositWithCustomCooldown",
|
|
11680
11680
|
NATIVE: "nativeDeposit",
|
|
@@ -11683,7 +11683,7 @@ const pe = "0x0000000000000000000000000000000000000000", wu = BigInt(
|
|
|
11683
11683
|
ZAP_NATIVE_DEPOSIT_CUSTOM: "zapNativeDepositWithCustomCooldown",
|
|
11684
11684
|
ZAP_DEPOSIT: "zapDeposit",
|
|
11685
11685
|
ZAP_DEPOSIT_CUSTOM: "zapDepositWithCustomCooldown"
|
|
11686
|
-
},
|
|
11686
|
+
}, Yt = {
|
|
11687
11687
|
SOL_ARBITRUM: "0x09400d9db990d5ed3f35d7be61dfaeb900af03c9",
|
|
11688
11688
|
BTC_ARBITRUM: "0x47c031236e19d024b42f8ae6780e44a573170703",
|
|
11689
11689
|
WETH_WETH_ARBITRUM: "0x70d95587d40a2caf56bd97485ab3eec10bee6336",
|
|
@@ -11693,18 +11693,22 @@ const pe = "0x0000000000000000000000000000000000000000", wu = BigInt(
|
|
|
11693
11693
|
XRP_ARBITRUM: "0x0ccb4faa6f1f1b30911619f1184082ab4e25813c",
|
|
11694
11694
|
CRV_ARBITRUM: "0x0e46941f9bff8d0784bffa3d0d7883cdb82d7ae7",
|
|
11695
11695
|
HYPE_ARBITRUM: "0xbcb8fe13d02b023e8f94f6881cc0192fd918a5c0",
|
|
11696
|
-
BNB_ARBITRUM: "0x2d340912aa47e33c90efb078e69e70efe2b34b9b"
|
|
11697
|
-
|
|
11698
|
-
|
|
11699
|
-
|
|
11700
|
-
|
|
11701
|
-
[
|
|
11702
|
-
[
|
|
11703
|
-
[
|
|
11704
|
-
[
|
|
11705
|
-
[
|
|
11706
|
-
[
|
|
11707
|
-
[
|
|
11696
|
+
BNB_ARBITRUM: "0x2d340912aa47e33c90efb078e69e70efe2b34b9b",
|
|
11697
|
+
LINK_ARBITRUM: "0x7f1fa204bb700853d36994da19f830b6ad18455c"
|
|
11698
|
+
}, TO = Object.values(
|
|
11699
|
+
Yt
|
|
11700
|
+
), xO = {
|
|
11701
|
+
[Yt.SOL_ARBITRUM]: yr,
|
|
11702
|
+
[Yt.BTC_ARBITRUM]: ns,
|
|
11703
|
+
[Yt.WETH_WETH_ARBITRUM]: Fc,
|
|
11704
|
+
[Yt.WETH_USDC_ARBITRUM]: Fc,
|
|
11705
|
+
[Yt.SUI_ARBITRUM]: yr,
|
|
11706
|
+
[Yt.DOGE_ARBITRUM]: yr,
|
|
11707
|
+
[Yt.XRP_ARBITRUM]: yr,
|
|
11708
|
+
[Yt.CRV_ARBITRUM]: yr,
|
|
11709
|
+
[Yt.HYPE_ARBITRUM]: yr,
|
|
11710
|
+
[Yt.BNB_ARBITRUM]: yr,
|
|
11711
|
+
[Yt.LINK_ARBITRUM]: yr
|
|
11708
11712
|
}, ml = {
|
|
11709
11713
|
IS_BATCH_TRANSACTIONS_ENABLED: "isBatchTransactionsEnabled",
|
|
11710
11714
|
REFERRER: "referrer",
|
|
@@ -11740,7 +11744,7 @@ function vu(t, e, n) {
|
|
|
11740
11744
|
return `${r}/address/${t}`;
|
|
11741
11745
|
}
|
|
11742
11746
|
}
|
|
11743
|
-
var PO = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Ku = Math.ceil,
|
|
11747
|
+
var PO = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Ku = Math.ceil, qt = Math.floor, Ct = "[BigNumber Error] ", vy = Ct + "Number primitive has more than 15 significant digits: ", dn = 1e14, fe = 14, Xu = 9007199254740991, Qu = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Kr = 1e7, at = 1e9;
|
|
11744
11748
|
function B0(t) {
|
|
11745
11749
|
var e, n, r, a = T.prototype = { constructor: T, toString: null, valueOf: null }, o = new T(1), s = 20, i = 4, l = -7, c = 21, u = -1e7, d = 1e7, f = !1, p = 1, y = 0, b = {
|
|
11746
11750
|
prefix: "",
|
|
@@ -11800,7 +11804,7 @@ function B0(t) {
|
|
|
11800
11804
|
for (S = 0; R.charCodeAt(S) === 48; S++) ;
|
|
11801
11805
|
for (C = R.length; R.charCodeAt(--C) === 48; ) ;
|
|
11802
11806
|
if (R = R.slice(S, ++C)) {
|
|
11803
|
-
if (C -= S, E && T.DEBUG && C > 15 && (h > Xu || h !==
|
|
11807
|
+
if (C -= S, E && T.DEBUG && C > 15 && (h > Xu || h !== qt(h)))
|
|
11804
11808
|
throw Error(vy + L.s * h);
|
|
11805
11809
|
if ((I = I - S - 1) > d)
|
|
11806
11810
|
L.c = L.e = null;
|
|
@@ -11867,14 +11871,14 @@ function B0(t) {
|
|
|
11867
11871
|
if (!T.DEBUG) return !0;
|
|
11868
11872
|
var v, g, D = h.c, A = h.e, I = h.s;
|
|
11869
11873
|
e: if ({}.toString.call(D) == "[object Array]") {
|
|
11870
|
-
if ((I === 1 || I === -1) && A >= -at && A <= at && A ===
|
|
11874
|
+
if ((I === 1 || I === -1) && A >= -at && A <= at && A === qt(A)) {
|
|
11871
11875
|
if (D[0] === 0) {
|
|
11872
11876
|
if (A === 0 && D.length === 1) return !0;
|
|
11873
11877
|
break e;
|
|
11874
11878
|
}
|
|
11875
11879
|
if (v = (A + 1) % fe, v < 1 && (v += fe), String(D[0]).length == v) {
|
|
11876
11880
|
for (v = 0; v < D.length; v++)
|
|
11877
|
-
if (g = D[v], g < 0 || g >=
|
|
11881
|
+
if (g = D[v], g < 0 || g >= dn || g !== qt(g)) break e;
|
|
11878
11882
|
if (g !== 0) return !0;
|
|
11879
11883
|
}
|
|
11880
11884
|
}
|
|
@@ -11887,7 +11891,7 @@ function B0(t) {
|
|
|
11887
11891
|
return N(arguments, 1);
|
|
11888
11892
|
}, T.random = function() {
|
|
11889
11893
|
var h = 9007199254740992, v = Math.random() * h & 2097151 ? function() {
|
|
11890
|
-
return
|
|
11894
|
+
return qt(Math.random() * h);
|
|
11891
11895
|
} : function() {
|
|
11892
11896
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
11893
11897
|
};
|
|
@@ -11907,7 +11911,7 @@ function B0(t) {
|
|
|
11907
11911
|
if (!f)
|
|
11908
11912
|
for (; C < S; )
|
|
11909
11913
|
E = v(), E < 9e15 && (R[C++] = E % 1e14);
|
|
11910
|
-
for (S = R[--C], g %= fe, S && g && (E = Qu[fe - g], R[C] =
|
|
11914
|
+
for (S = R[--C], g %= fe, S && g && (E = Qu[fe - g], R[C] = qt(S / E) * E); R[C] === 0; R.pop(), C--) ;
|
|
11911
11915
|
if (C < 0)
|
|
11912
11916
|
R = [I = 0];
|
|
11913
11917
|
else {
|
|
@@ -11953,9 +11957,9 @@ function B0(t) {
|
|
|
11953
11957
|
};
|
|
11954
11958
|
}(), e = /* @__PURE__ */ function() {
|
|
11955
11959
|
function h(D, A, I) {
|
|
11956
|
-
var S, E, C, R, L = 0, $ = D.length, H = A %
|
|
11960
|
+
var S, E, C, R, L = 0, $ = D.length, H = A % Kr, j = A / Kr | 0;
|
|
11957
11961
|
for (D = D.slice(); $--; )
|
|
11958
|
-
C = D[$] %
|
|
11962
|
+
C = D[$] % Kr, R = D[$] / Kr | 0, S = j * C + R * H, E = H * C + S % Kr * Kr + L, L = (E / I | 0) + (S / Kr | 0) + j * R, D[$] = E % I;
|
|
11959
11963
|
return L && (D = [L].concat(D)), D;
|
|
11960
11964
|
}
|
|
11961
11965
|
function v(D, A, I, S) {
|
|
@@ -11985,15 +11989,15 @@ function B0(t) {
|
|
|
11985
11989
|
Fe && Fe[0] == 0 || !Te ? He * 0 : He / 0
|
|
11986
11990
|
)
|
|
11987
11991
|
);
|
|
11988
|
-
for (V = new T(He), ie = V.c = [], R = D.e - A.e, He = I + R + 1, E || (E =
|
|
11992
|
+
for (V = new T(He), ie = V.c = [], R = D.e - A.e, He = I + R + 1, E || (E = dn, R = Kt(D.e / fe) - Kt(A.e / fe), He = He / fe | 0), L = 0; Te[L] == (Fe[L] || 0); L++) ;
|
|
11989
11993
|
if (Te[L] > (Fe[L] || 0) && R--, He < 0)
|
|
11990
11994
|
ie.push(1), $ = !0;
|
|
11991
11995
|
else {
|
|
11992
|
-
for (xe = Fe.length, Pe = Te.length, L = 0, He += 2, H =
|
|
11996
|
+
for (xe = Fe.length, Pe = Te.length, L = 0, He += 2, H = qt(E / (Te[0] + 1)), H > 1 && (Te = h(Te, H, E), Fe = h(Fe, H, E), Pe = Te.length, xe = Fe.length), re = Pe, z = Fe.slice(0, Pe), ee = z.length; ee < Pe; z[ee++] = 0) ;
|
|
11993
11997
|
dt = Te.slice(), dt = [0].concat(dt), ut = Te[0], Te[1] >= E / 2 && ut++;
|
|
11994
11998
|
do {
|
|
11995
11999
|
if (H = 0, C = v(Te, z, Pe, ee), C < 0) {
|
|
11996
|
-
if (ae = z[0], Pe != ee && (ae = ae * E + (z[1] || 0)), H =
|
|
12000
|
+
if (ae = z[0], Pe != ee && (ae = ae * E + (z[1] || 0)), H = qt(ae / ut), H > 1)
|
|
11997
12001
|
for (H >= E && (H = E - 1), j = h(Te, H, E), Q = j.length, ee = z.length; v(j, z, Q, ee) == 1; )
|
|
11998
12002
|
H--, g(j, Pe < Q ? dt : Te, Q, E), Q = j.length, C = 1;
|
|
11999
12003
|
else
|
|
@@ -12006,7 +12010,7 @@ function B0(t) {
|
|
|
12006
12010
|
} while ((re++ < xe || z[0] != null) && He--);
|
|
12007
12011
|
$ = z[0] != null, ie[0] || ie.splice(0, 1);
|
|
12008
12012
|
}
|
|
12009
|
-
if (E ==
|
|
12013
|
+
if (E == dn) {
|
|
12010
12014
|
for (L = 1, He = ie[0]; He >= 10; He /= 10, L++) ;
|
|
12011
12015
|
M(V, I + (V.e = L + R * fe - 1) + 1, S, $);
|
|
12012
12016
|
} else
|
|
@@ -12062,7 +12066,7 @@ function B0(t) {
|
|
|
12062
12066
|
e: {
|
|
12063
12067
|
for (A = 1, E = $[0]; E >= 10; E /= 10, A++) ;
|
|
12064
12068
|
if (I = v - A, I < 0)
|
|
12065
|
-
I += fe, S = v, C = $[R = 0], L =
|
|
12069
|
+
I += fe, S = v, C = $[R = 0], L = qt(C / H[A - S - 1] % 10);
|
|
12066
12070
|
else if (R = Ku((I + 1) / fe), R >= $.length)
|
|
12067
12071
|
if (D) {
|
|
12068
12072
|
for (; $.length <= R; $.push(0)) ;
|
|
@@ -12071,7 +12075,7 @@ function B0(t) {
|
|
|
12071
12075
|
break e;
|
|
12072
12076
|
else {
|
|
12073
12077
|
for (C = E = $[R], A = 1; E >= 10; E /= 10, A++) ;
|
|
12074
|
-
I %= fe, S = I - fe + A, L = S < 0 ? 0 :
|
|
12078
|
+
I %= fe, S = I - fe + A, L = S < 0 ? 0 : qt(C / H[A - S - 1] % 10);
|
|
12075
12079
|
}
|
|
12076
12080
|
if (D = D || v < 0 || // Are there any non-zero digits after the rounding digit?
|
|
12077
12081
|
// The expression n % pows10[d - j - 1] returns all digits of n to the right
|
|
@@ -12079,15 +12083,15 @@ function B0(t) {
|
|
|
12079
12083
|
$[R + 1] != null || (S < 0 ? C : C % H[A - S - 1]), D = g < 4 ? (L || D) && (g == 0 || g == (h.s < 0 ? 3 : 2)) : L > 5 || L == 5 && (g == 4 || D || g == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
12080
12084
|
(I > 0 ? S > 0 ? C / H[A - S] : 0 : $[R - 1]) % 10 & 1 || g == (h.s < 0 ? 8 : 7)), v < 1 || !$[0])
|
|
12081
12085
|
return $.length = 0, D ? (v -= h.e + 1, $[0] = H[(fe - v % fe) % fe], h.e = -v || 0) : $[0] = h.e = 0, h;
|
|
12082
|
-
if (I == 0 ? ($.length = R, E = 1, R--) : ($.length = R + 1, E = H[fe - I], $[R] = S > 0 ?
|
|
12086
|
+
if (I == 0 ? ($.length = R, E = 1, R--) : ($.length = R + 1, E = H[fe - I], $[R] = S > 0 ? qt(C / H[A - S] % H[S]) * E : 0), D)
|
|
12083
12087
|
for (; ; )
|
|
12084
12088
|
if (R == 0) {
|
|
12085
12089
|
for (I = 1, S = $[0]; S >= 10; S /= 10, I++) ;
|
|
12086
12090
|
for (S = $[0] += E, E = 1; S >= 10; S /= 10, E++) ;
|
|
12087
|
-
I != E && (h.e++, $[0] ==
|
|
12091
|
+
I != E && (h.e++, $[0] == dn && ($[0] = 1));
|
|
12088
12092
|
break;
|
|
12089
12093
|
} else {
|
|
12090
|
-
if ($[R] += E, $[R] !=
|
|
12094
|
+
if ($[R] += E, $[R] != dn) break;
|
|
12091
12095
|
$[R--] = 0, E = 1;
|
|
12092
12096
|
}
|
|
12093
12097
|
for (I = $.length; $[--I] === 0; $.pop()) ;
|
|
@@ -12110,7 +12114,7 @@ function B0(t) {
|
|
|
12110
12114
|
if (h != null)
|
|
12111
12115
|
return Ye(h, 0, at), v == null ? v = i : Ye(v, 0, 8), M(new T(I), h + I.e + 1, v);
|
|
12112
12116
|
if (!(g = I.c)) return null;
|
|
12113
|
-
if (D = ((A = g.length - 1) -
|
|
12117
|
+
if (D = ((A = g.length - 1) - Kt(this.e / fe)) * fe, A = g[A]) for (; A % 10 == 0; A /= 10, D--) ;
|
|
12114
12118
|
return D < 0 && (D = 0), D;
|
|
12115
12119
|
}, a.dividedBy = a.div = function(h, v) {
|
|
12116
12120
|
return e(this, new T(h, v), s, i);
|
|
@@ -12136,7 +12140,7 @@ function B0(t) {
|
|
|
12136
12140
|
I ? L.c.length > I && (L.c.length = I) : D && (L = L.mod(v));
|
|
12137
12141
|
}
|
|
12138
12142
|
if (A) {
|
|
12139
|
-
if (A =
|
|
12143
|
+
if (A = qt(A / 2), A === 0) break;
|
|
12140
12144
|
R = A % 2;
|
|
12141
12145
|
} else if (h = h.times(g), M(h, h.e + 1, 1), h.e > 14)
|
|
12142
12146
|
R = fc(h);
|
|
@@ -12159,7 +12163,7 @@ function B0(t) {
|
|
|
12159
12163
|
}, a.isGreaterThanOrEqualTo = a.gte = function(h, v) {
|
|
12160
12164
|
return (v = Do(this, new T(h, v))) === 1 || v === 0;
|
|
12161
12165
|
}, a.isInteger = function() {
|
|
12162
|
-
return !!this.c &&
|
|
12166
|
+
return !!this.c && Kt(this.e / fe) > this.c.length - 2;
|
|
12163
12167
|
}, a.isLessThan = a.lt = function(h, v) {
|
|
12164
12168
|
return Do(this, new T(h, v)) < 0;
|
|
12165
12169
|
}, a.isLessThanOrEqualTo = a.lte = function(h, v) {
|
|
@@ -12186,7 +12190,7 @@ function B0(t) {
|
|
|
12186
12190
|
i == 3 ? -0 : 0
|
|
12187
12191
|
));
|
|
12188
12192
|
}
|
|
12189
|
-
if (C =
|
|
12193
|
+
if (C = Kt(C), R = Kt(R), L = L.slice(), E = C - R) {
|
|
12190
12194
|
for ((I = E < 0) ? (E = -E, A = L) : (R = C, A = $), A.reverse(), v = E; v--; A.push(0)) ;
|
|
12191
12195
|
A.reverse();
|
|
12192
12196
|
} else
|
|
@@ -12196,10 +12200,10 @@ function B0(t) {
|
|
|
12196
12200
|
break;
|
|
12197
12201
|
}
|
|
12198
12202
|
if (I && (A = L, L = $, $ = A, h.s = -h.s), v = (D = $.length) - (g = L.length), v > 0) for (; v--; L[g++] = 0) ;
|
|
12199
|
-
for (v =
|
|
12203
|
+
for (v = dn - 1; D > E; ) {
|
|
12200
12204
|
if (L[--D] < $[D]) {
|
|
12201
12205
|
for (g = D; g && !L[--g]; L[g] = v) ;
|
|
12202
|
-
--L[g], L[D] +=
|
|
12206
|
+
--L[g], L[D] += dn;
|
|
12203
12207
|
}
|
|
12204
12208
|
L[D] -= $[D];
|
|
12205
12209
|
}
|
|
@@ -12212,8 +12216,8 @@ function B0(t) {
|
|
|
12212
12216
|
var g, D, A, I, S, E, C, R, L, $, H, j, Q, V, ie, z = this, ee = z.c, ae = (h = new T(h, v)).c;
|
|
12213
12217
|
if (!ee || !ae || !ee[0] || !ae[0])
|
|
12214
12218
|
return !z.s || !h.s || ee && !ee[0] && !ae || ae && !ae[0] && !ee ? h.c = h.e = h.s = null : (h.s *= z.s, !ee || !ae ? h.c = h.e = null : (h.c = [0], h.e = 0)), h;
|
|
12215
|
-
for (D =
|
|
12216
|
-
for (V =
|
|
12219
|
+
for (D = Kt(z.e / fe) + Kt(h.e / fe), h.s *= z.s, C = ee.length, $ = ae.length, C < $ && (Q = ee, ee = ae, ae = Q, A = C, C = $, $ = A), A = C + $, Q = []; A--; Q.push(0)) ;
|
|
12220
|
+
for (V = dn, ie = Kr, A = $; --A >= 0; ) {
|
|
12217
12221
|
for (g = 0, H = ae[A] % ie, j = ae[A] / ie | 0, S = C, I = A + S; I > A; )
|
|
12218
12222
|
R = ee[--S] % ie, L = ee[S] / ie | 0, E = j * R + L * H, R = H * R + E % ie * ie + Q[I] + g, g = (R / V | 0) + (E / ie | 0) + j * L, Q[I--] = R % V;
|
|
12219
12223
|
Q[I] = g;
|
|
@@ -12232,12 +12236,12 @@ function B0(t) {
|
|
|
12232
12236
|
if (!E || !C) return new T(A / 0);
|
|
12233
12237
|
if (!E[0] || !C[0]) return C[0] ? h : new T(E[0] ? D : A * 0);
|
|
12234
12238
|
}
|
|
12235
|
-
if (I =
|
|
12239
|
+
if (I = Kt(I), S = Kt(S), E = E.slice(), A = I - S) {
|
|
12236
12240
|
for (A > 0 ? (S = I, g = C) : (A = -A, g = E), g.reverse(); A--; g.push(0)) ;
|
|
12237
12241
|
g.reverse();
|
|
12238
12242
|
}
|
|
12239
12243
|
for (A = E.length, v = C.length, A - v < 0 && (g = C, C = E, E = g, v = A), A = 0; v; )
|
|
12240
|
-
A = (E[--v] = E[v] + C[v] + A) /
|
|
12244
|
+
A = (E[--v] = E[v] + C[v] + A) / dn | 0, E[v] = dn === E[v] ? 0 : E[v] % dn;
|
|
12241
12245
|
return A && (E = [A].concat(E), ++S), k(h, E, S);
|
|
12242
12246
|
}, a.precision = a.sd = function(h, v) {
|
|
12243
12247
|
var g, D, A, I = this;
|
|
@@ -12255,7 +12259,7 @@ function B0(t) {
|
|
|
12255
12259
|
var h, v, g, D, A, I = this, S = I.c, E = I.s, C = I.e, R = s + 4, L = new T("0.5");
|
|
12256
12260
|
if (E !== 1 || !S || !S[0])
|
|
12257
12261
|
return new T(!E || E < 0 && (!S || S[0]) ? NaN : S ? I : 1 / 0);
|
|
12258
|
-
if (E = Math.sqrt(+W(I)), E == 0 || E == 1 / 0 ? (v = jt(S), (v.length + C) % 2 == 0 && (v += "0"), E = Math.sqrt(+v), C =
|
|
12262
|
+
if (E = Math.sqrt(+W(I)), E == 0 || E == 1 / 0 ? (v = jt(S), (v.length + C) % 2 == 0 && (v += "0"), E = Math.sqrt(+v), C = Kt((C + 1) / 2) - (C < 0 || C % 2), E == 1 / 0 ? v = "5e" + C : (v = E.toExponential(), v = v.slice(0, v.indexOf("e") + 1) + C), g = new T(v)) : g = new T(E + ""), g.c[0]) {
|
|
12259
12263
|
for (C = g.e, E = C + R, E < 3 && (E = 0); ; )
|
|
12260
12264
|
if (A = g, g = L.times(A.plus(e(I, A, R, 1))), jt(A.c).slice(0, E) === (v = jt(g.c)).slice(0, E))
|
|
12261
12265
|
if (g.e < C && --E, v = v.slice(E - 3, E + 1), v == "9999" || !D && v == "4999") {
|
|
@@ -12313,7 +12317,7 @@ function B0(t) {
|
|
|
12313
12317
|
return W(this);
|
|
12314
12318
|
}, a._isBigNumber = !0, a[Symbol.toStringTag] = "BigNumber", a[Symbol.for("nodejs.util.inspect.custom")] = a.valueOf, t != null && T.set(t), T;
|
|
12315
12319
|
}
|
|
12316
|
-
function
|
|
12320
|
+
function Kt(t) {
|
|
12317
12321
|
var e = t | 0;
|
|
12318
12322
|
return t > 0 || t === e ? e : e - 1;
|
|
12319
12323
|
}
|
|
@@ -12336,12 +12340,12 @@ function Do(t, e) {
|
|
|
12336
12340
|
return l == c ? 0 : l > c ^ n ? 1 : -1;
|
|
12337
12341
|
}
|
|
12338
12342
|
function Ye(t, e, n, r) {
|
|
12339
|
-
if (t < e || t > n || t !==
|
|
12343
|
+
if (t < e || t > n || t !== qt(t))
|
|
12340
12344
|
throw Error(Ct + (r || "Argument") + (typeof t == "number" ? t < e || t > n ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(t));
|
|
12341
12345
|
}
|
|
12342
12346
|
function fc(t) {
|
|
12343
12347
|
var e = t.c.length - 1;
|
|
12344
|
-
return
|
|
12348
|
+
return Kt(t.e / fe) == e && t.c[e] % 2 != 0;
|
|
12345
12349
|
}
|
|
12346
12350
|
function hc(t, e) {
|
|
12347
12351
|
return (t.length > 1 ? t.charAt(0) + "." + t.slice(1) : t) + (e < 0 ? "e" : "e+") + e;
|
|
@@ -12556,9 +12560,9 @@ const z0 = (t, e) => MO(t) ? {
|
|
|
12556
12560
|
chainId: a
|
|
12557
12561
|
}) => {
|
|
12558
12562
|
const o = {
|
|
12559
|
-
[
|
|
12560
|
-
[
|
|
12561
|
-
[
|
|
12563
|
+
[Tr.SYMBOL.NAME]: n,
|
|
12564
|
+
[Tr.CHAIN_ID.NAME]: a,
|
|
12565
|
+
[Tr.ADDRESS.NAME]: Y0(r)
|
|
12562
12566
|
};
|
|
12563
12567
|
xP[t].forEach((s) => {
|
|
12564
12568
|
e == null || e(s, o);
|
|
@@ -12958,7 +12962,7 @@ const xy = {
|
|
|
12958
12962
|
], tt = () => [
|
|
12959
12963
|
It().settings,
|
|
12960
12964
|
je().updateTradingSettings
|
|
12961
|
-
], Et = () => [It().modal, je().updateTradingModal],
|
|
12965
|
+
], Et = () => [It().modal, je().updateTradingModal], Cr = () => [It().type, je().setTradingType], gs = () => It().type === "deposit", qn = () => [
|
|
12962
12966
|
It().transactions,
|
|
12963
12967
|
je().updateTransactions
|
|
12964
12968
|
], ZO = () => It().defaultChainId, Ju = (t, e) => e.some(({ id: n }) => n === t), da = () => {
|
|
@@ -13525,21 +13529,21 @@ function yD(t, e) {
|
|
|
13525
13529
|
}
|
|
13526
13530
|
return n;
|
|
13527
13531
|
}
|
|
13528
|
-
function
|
|
13529
|
-
return
|
|
13532
|
+
function wr() {
|
|
13533
|
+
return wr = Object.assign ? Object.assign.bind() : function(t) {
|
|
13530
13534
|
for (var e = 1; e < arguments.length; e++) {
|
|
13531
13535
|
var n = arguments[e];
|
|
13532
13536
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (t[r] = n[r]);
|
|
13533
13537
|
}
|
|
13534
13538
|
return t;
|
|
13535
|
-
},
|
|
13539
|
+
}, wr.apply(null, arguments);
|
|
13536
13540
|
}
|
|
13537
13541
|
var Sy = function(e) {
|
|
13538
13542
|
return e.reduce(function(n, r) {
|
|
13539
13543
|
var a = r[0], o = r[1];
|
|
13540
13544
|
return n[a] = o, n;
|
|
13541
13545
|
}, {});
|
|
13542
|
-
}, Ay = typeof window < "u" && window.document && window.document.createElement ? B.useLayoutEffect : B.useEffect, Pt = "top",
|
|
13546
|
+
}, Ay = typeof window < "u" && window.document && window.document.createElement ? B.useLayoutEffect : B.useEffect, Pt = "top", tn = "bottom", nn = "right", Ot = "left", jp = "auto", Yl = [Pt, tn, nn, Ot], is = "start", El = "end", wD = "clippingParents", sb = "viewport", al = "popper", vD = "reference", Cy = /* @__PURE__ */ Yl.reduce(function(t, e) {
|
|
13543
13547
|
return t.concat([e + "-" + is, e + "-" + El]);
|
|
13544
13548
|
}, []), ib = /* @__PURE__ */ [].concat(Yl, [jp]).reduce(function(t, e) {
|
|
13545
13549
|
return t.concat([e, e + "-" + is, e + "-" + El]);
|
|
@@ -13560,7 +13564,7 @@ function Go(t) {
|
|
|
13560
13564
|
var e = Bt(t).Element;
|
|
13561
13565
|
return t instanceof e || t instanceof Element;
|
|
13562
13566
|
}
|
|
13563
|
-
function
|
|
13567
|
+
function Qt(t) {
|
|
13564
13568
|
var e = Bt(t).HTMLElement;
|
|
13565
13569
|
return t instanceof e || t instanceof HTMLElement;
|
|
13566
13570
|
}
|
|
@@ -13574,7 +13578,7 @@ function DD(t) {
|
|
|
13574
13578
|
var e = t.state;
|
|
13575
13579
|
Object.keys(e.elements).forEach(function(n) {
|
|
13576
13580
|
var r = e.styles[n] || {}, a = e.attributes[n] || {}, o = e.elements[n];
|
|
13577
|
-
!
|
|
13581
|
+
!Qt(o) || !jn(o) || (Object.assign(o.style, r), Object.keys(a).forEach(function(s) {
|
|
13578
13582
|
var i = a[s];
|
|
13579
13583
|
i === !1 ? o.removeAttribute(s) : o.setAttribute(s, i === !0 ? "" : i);
|
|
13580
13584
|
}));
|
|
@@ -13598,7 +13602,7 @@ function ID(t) {
|
|
|
13598
13602
|
var a = e.elements[r], o = e.attributes[r] || {}, s = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : n[r]), i = s.reduce(function(l, c) {
|
|
13599
13603
|
return l[c] = "", l;
|
|
13600
13604
|
}, {});
|
|
13601
|
-
!
|
|
13605
|
+
!Qt(a) || !jn(a) || (Object.assign(a.style, i), Object.keys(o).forEach(function(l) {
|
|
13602
13606
|
a.removeAttribute(l);
|
|
13603
13607
|
}));
|
|
13604
13608
|
});
|
|
@@ -13628,7 +13632,7 @@ function lb() {
|
|
|
13628
13632
|
function cs(t, e, n) {
|
|
13629
13633
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
13630
13634
|
var r = t.getBoundingClientRect(), a = 1, o = 1;
|
|
13631
|
-
e &&
|
|
13635
|
+
e && Qt(t) && (a = t.offsetWidth > 0 && ls(r.width) / t.offsetWidth || 1, o = t.offsetHeight > 0 && ls(r.height) / t.offsetHeight || 1);
|
|
13632
13636
|
var s = Go(t) ? Bt(t) : window, i = s.visualViewport, l = !lb() && n, c = (r.left + (l && i ? i.offsetLeft : 0)) / a, u = (r.top + (l && i ? i.offsetTop : 0)) / o, d = r.width / a, f = r.height / o;
|
|
13633
13637
|
return {
|
|
13634
13638
|
width: d,
|
|
@@ -13664,7 +13668,7 @@ function cb(t, e) {
|
|
|
13664
13668
|
}
|
|
13665
13669
|
return !1;
|
|
13666
13670
|
}
|
|
13667
|
-
function
|
|
13671
|
+
function Er(t) {
|
|
13668
13672
|
return Bt(t).getComputedStyle(t);
|
|
13669
13673
|
}
|
|
13670
13674
|
function LD(t) {
|
|
@@ -13689,19 +13693,19 @@ function Eu(t) {
|
|
|
13689
13693
|
);
|
|
13690
13694
|
}
|
|
13691
13695
|
function Py(t) {
|
|
13692
|
-
return !
|
|
13693
|
-
|
|
13696
|
+
return !Qt(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
13697
|
+
Er(t).position === "fixed" ? null : t.offsetParent;
|
|
13694
13698
|
}
|
|
13695
13699
|
function ND(t) {
|
|
13696
13700
|
var e = /firefox/i.test(Dd()), n = /Trident/i.test(Dd());
|
|
13697
|
-
if (n &&
|
|
13698
|
-
var r =
|
|
13701
|
+
if (n && Qt(t)) {
|
|
13702
|
+
var r = Er(t);
|
|
13699
13703
|
if (r.position === "fixed")
|
|
13700
13704
|
return null;
|
|
13701
13705
|
}
|
|
13702
13706
|
var a = Eu(t);
|
|
13703
|
-
for (Yp(a) && (a = a.host);
|
|
13704
|
-
var o =
|
|
13707
|
+
for (Yp(a) && (a = a.host); Qt(a) && ["html", "body"].indexOf(jn(a)) < 0; ) {
|
|
13708
|
+
var o = Er(a);
|
|
13705
13709
|
if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
|
|
13706
13710
|
return a;
|
|
13707
13711
|
a = a.parentNode;
|
|
@@ -13709,9 +13713,9 @@ function ND(t) {
|
|
|
13709
13713
|
return null;
|
|
13710
13714
|
}
|
|
13711
13715
|
function ql(t) {
|
|
13712
|
-
for (var e = Bt(t), n = Py(t); n && LD(n) &&
|
|
13716
|
+
for (var e = Bt(t), n = Py(t); n && LD(n) && Er(n).position === "static"; )
|
|
13713
13717
|
n = Py(n);
|
|
13714
|
-
return n && (jn(n) === "html" || jn(n) === "body" &&
|
|
13718
|
+
return n && (jn(n) === "html" || jn(n) === "body" && Er(n).position === "static") ? e : n || ND(t) || e;
|
|
13715
13719
|
}
|
|
13716
13720
|
function Kp(t) {
|
|
13717
13721
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
@@ -13745,9 +13749,9 @@ var kD = function(e, n) {
|
|
|
13745
13749
|
})) : e, db(typeof e != "number" ? e : pb(e, Yl));
|
|
13746
13750
|
};
|
|
13747
13751
|
function $D(t) {
|
|
13748
|
-
var e, n = t.state, r = t.name, a = t.options, o = n.elements.arrow, s = n.modifiersData.popperOffsets, i = Bn(n.placement), l = Kp(i), c = [Ot,
|
|
13752
|
+
var e, n = t.state, r = t.name, a = t.options, o = n.elements.arrow, s = n.modifiersData.popperOffsets, i = Bn(n.placement), l = Kp(i), c = [Ot, nn].indexOf(i) >= 0, u = c ? "height" : "width";
|
|
13749
13753
|
if (!(!o || !s)) {
|
|
13750
|
-
var d = kD(a.padding, n), f = qp(o), p = l === "y" ? Pt : Ot, y = l === "y" ?
|
|
13754
|
+
var d = kD(a.padding, n), f = qp(o), p = l === "y" ? Pt : Ot, y = l === "y" ? tn : nn, b = n.rects.reference[u] + n.rects.reference[l] - s[l] - n.rects.popper[u], x = s[l] - n.rects.reference[l], _ = ql(o), T = _ ? l === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, O = b / 2 - x / 2, N = d[p], k = T - f[u] - d[y], M = T / 2 - f[u] / 2 + O, W = fl(N, M, k), h = l;
|
|
13751
13755
|
n.modifiersData[r] = (e = {}, e[h] = W, e.centerOffset = W - M, e);
|
|
13752
13756
|
}
|
|
13753
13757
|
}
|
|
@@ -13792,16 +13796,16 @@ function Oy(t) {
|
|
|
13792
13796
|
var _ = s.hasOwnProperty("x"), T = s.hasOwnProperty("y"), O = Ot, N = Pt, k = window;
|
|
13793
13797
|
if (c) {
|
|
13794
13798
|
var M = ql(n), W = "clientHeight", h = "clientWidth";
|
|
13795
|
-
if (M === Bt(n) && (M = pa(n),
|
|
13796
|
-
N =
|
|
13799
|
+
if (M === Bt(n) && (M = pa(n), Er(M).position !== "static" && i === "absolute" && (W = "scrollHeight", h = "scrollWidth")), M = M, a === Pt || (a === Ot || a === nn) && o === El) {
|
|
13800
|
+
N = tn;
|
|
13797
13801
|
var v = d && M === k && k.visualViewport ? k.visualViewport.height : (
|
|
13798
13802
|
// $FlowFixMe[prop-missing]
|
|
13799
13803
|
M[W]
|
|
13800
13804
|
);
|
|
13801
13805
|
b -= v - r.height, b *= l ? 1 : -1;
|
|
13802
13806
|
}
|
|
13803
|
-
if (a === Ot || (a === Pt || a ===
|
|
13804
|
-
O =
|
|
13807
|
+
if (a === Ot || (a === Pt || a === tn) && o === El) {
|
|
13808
|
+
O = nn;
|
|
13805
13809
|
var g = d && M === k && k.visualViewport ? k.visualViewport.width : (
|
|
13806
13810
|
// $FlowFixMe[prop-missing]
|
|
13807
13811
|
M[h]
|
|
@@ -13922,7 +13926,7 @@ function YD(t, e) {
|
|
|
13922
13926
|
}
|
|
13923
13927
|
function qD(t) {
|
|
13924
13928
|
var e, n = pa(t), r = Xp(t), a = (e = t.ownerDocument) == null ? void 0 : e.body, o = $o(n.scrollWidth, n.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), s = $o(n.scrollHeight, n.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), i = -r.scrollLeft + Qp(t), l = -r.scrollTop;
|
|
13925
|
-
return
|
|
13929
|
+
return Er(a || n).direction === "rtl" && (i += $o(n.clientWidth, a ? a.clientWidth : 0) - o), {
|
|
13926
13930
|
width: o,
|
|
13927
13931
|
height: s,
|
|
13928
13932
|
x: i,
|
|
@@ -13930,11 +13934,11 @@ function qD(t) {
|
|
|
13930
13934
|
};
|
|
13931
13935
|
}
|
|
13932
13936
|
function Zp(t) {
|
|
13933
|
-
var e =
|
|
13937
|
+
var e = Er(t), n = e.overflow, r = e.overflowX, a = e.overflowY;
|
|
13934
13938
|
return /auto|scroll|overlay|hidden/.test(n + a + r);
|
|
13935
13939
|
}
|
|
13936
13940
|
function mb(t) {
|
|
13937
|
-
return ["html", "body", "#document"].indexOf(jn(t)) >= 0 ? t.ownerDocument.body :
|
|
13941
|
+
return ["html", "body", "#document"].indexOf(jn(t)) >= 0 ? t.ownerDocument.body : Qt(t) && Zp(t) ? t : mb(Eu(t));
|
|
13938
13942
|
}
|
|
13939
13943
|
function hl(t, e) {
|
|
13940
13944
|
var n;
|
|
@@ -13961,7 +13965,7 @@ function Iy(t, e, n) {
|
|
|
13961
13965
|
return e === sb ? Id(YD(t, n)) : Go(e) ? KD(e, n) : Id(qD(pa(t)));
|
|
13962
13966
|
}
|
|
13963
13967
|
function XD(t) {
|
|
13964
|
-
var e = hl(Eu(t)), n = ["absolute", "fixed"].indexOf(
|
|
13968
|
+
var e = hl(Eu(t)), n = ["absolute", "fixed"].indexOf(Er(t).position) >= 0, r = n && Qt(t) ? ql(t) : t;
|
|
13965
13969
|
return Go(r) ? e.filter(function(a) {
|
|
13966
13970
|
return Go(a) && cb(a, r) && jn(a) !== "body";
|
|
13967
13971
|
}) : [];
|
|
@@ -13982,13 +13986,13 @@ function fb(t) {
|
|
|
13982
13986
|
y: e.y - n.height
|
|
13983
13987
|
};
|
|
13984
13988
|
break;
|
|
13985
|
-
case
|
|
13989
|
+
case tn:
|
|
13986
13990
|
l = {
|
|
13987
13991
|
x: s,
|
|
13988
13992
|
y: e.y + e.height
|
|
13989
13993
|
};
|
|
13990
13994
|
break;
|
|
13991
|
-
case
|
|
13995
|
+
case nn:
|
|
13992
13996
|
l = {
|
|
13993
13997
|
x: e.x + e.width,
|
|
13994
13998
|
y: i
|
|
@@ -14035,7 +14039,7 @@ function Sl(t, e) {
|
|
|
14035
14039
|
if (f === al && D) {
|
|
14036
14040
|
var A = D[a];
|
|
14037
14041
|
Object.keys(g).forEach(function(I) {
|
|
14038
|
-
var S = [
|
|
14042
|
+
var S = [nn, tn].indexOf(I) >= 0 ? 1 : -1, E = [Pt, tn].indexOf(I) >= 0 ? "y" : "x";
|
|
14039
14043
|
g[I] += A[E] * S;
|
|
14040
14044
|
});
|
|
14041
14045
|
}
|
|
@@ -14080,13 +14084,13 @@ function eI(t) {
|
|
|
14080
14084
|
allowedAutoPlacements: b
|
|
14081
14085
|
}) : z);
|
|
14082
14086
|
}, []), k = e.rects.reference, M = e.rects.popper, W = /* @__PURE__ */ new Map(), h = !0, v = N[0], g = 0; g < N.length; g++) {
|
|
14083
|
-
var D = N[g], A = Bn(D), I = us(D) === is, S = [Pt,
|
|
14087
|
+
var D = N[g], A = Bn(D), I = us(D) === is, S = [Pt, tn].indexOf(A) >= 0, E = S ? "width" : "height", C = Sl(e, {
|
|
14084
14088
|
placement: D,
|
|
14085
14089
|
boundary: u,
|
|
14086
14090
|
rootBoundary: d,
|
|
14087
14091
|
altBoundary: f,
|
|
14088
14092
|
padding: c
|
|
14089
|
-
}), R = S ? I ?
|
|
14093
|
+
}), R = S ? I ? nn : Ot : I ? tn : Pt;
|
|
14090
14094
|
k[E] > M[E] && (R = Ec(R));
|
|
14091
14095
|
var L = Ec(R), $ = [];
|
|
14092
14096
|
if (o && $.push(C[A] <= 0), i && $.push(C[R] <= 0, C[L] <= 0), $.every(function(ie) {
|
|
@@ -14137,7 +14141,7 @@ function _y(t, e, n) {
|
|
|
14137
14141
|
};
|
|
14138
14142
|
}
|
|
14139
14143
|
function Ly(t) {
|
|
14140
|
-
return [Pt,
|
|
14144
|
+
return [Pt, nn, tn, Ot].some(function(e) {
|
|
14141
14145
|
return t[e] >= 0;
|
|
14142
14146
|
});
|
|
14143
14147
|
}
|
|
@@ -14168,7 +14172,7 @@ function aI(t, e, n) {
|
|
|
14168
14172
|
var r = Bn(t), a = [Ot, Pt].indexOf(r) >= 0 ? -1 : 1, o = typeof n == "function" ? n(Object.assign({}, e, {
|
|
14169
14173
|
placement: t
|
|
14170
14174
|
})) : n, s = o[0], i = o[1];
|
|
14171
|
-
return s = s || 0, i = (i || 0) * a, [Ot,
|
|
14175
|
+
return s = s || 0, i = (i || 0) * a, [Ot, nn].indexOf(r) >= 0 ? {
|
|
14172
14176
|
x: i,
|
|
14173
14177
|
y: s
|
|
14174
14178
|
} : {
|
|
@@ -14227,14 +14231,14 @@ function uI(t) {
|
|
|
14227
14231
|
};
|
|
14228
14232
|
if (M) {
|
|
14229
14233
|
if (o) {
|
|
14230
|
-
var I, S = N === "y" ? Pt : Ot, E = N === "y" ?
|
|
14234
|
+
var I, S = N === "y" ? Pt : Ot, E = N === "y" ? tn : nn, C = N === "y" ? "height" : "width", R = M[N], L = R + x[S], $ = R - x[E], H = p ? -h[C] / 2 : 0, j = T === is ? W[C] : h[C], Q = T === is ? -h[C] : -W[C], V = e.elements.arrow, ie = p && V ? qp(V) : {
|
|
14231
14235
|
width: 0,
|
|
14232
14236
|
height: 0
|
|
14233
|
-
}, z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ub(), ee = z[S], ae = z[E], re = fl(0, W[C], ie[C]), xe = O ? W[C] / 2 - H - re - ee - g.mainAxis : j - re - ee - g.mainAxis, ut = O ? -W[C] / 2 + H + re + ae + g.mainAxis : Q + re + ae + g.mainAxis, Pe = e.elements.arrow && ql(e.elements.arrow), dt = Pe ? N === "y" ? Pe.clientTop || 0 : Pe.clientLeft || 0 : 0, He = (I = D == null ? void 0 : D[N]) != null ? I : 0, Fe = R + xe - He - dt, Te = R + ut - He,
|
|
14234
|
-
M[N] =
|
|
14237
|
+
}, z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ub(), ee = z[S], ae = z[E], re = fl(0, W[C], ie[C]), xe = O ? W[C] / 2 - H - re - ee - g.mainAxis : j - re - ee - g.mainAxis, ut = O ? -W[C] / 2 + H + re + ae + g.mainAxis : Q + re + ae + g.mainAxis, Pe = e.elements.arrow && ql(e.elements.arrow), dt = Pe ? N === "y" ? Pe.clientTop || 0 : Pe.clientLeft || 0 : 0, He = (I = D == null ? void 0 : D[N]) != null ? I : 0, Fe = R + xe - He - dt, Te = R + ut - He, an = fl(p ? Uc(L, Fe) : L, R, p ? $o($, Te) : $);
|
|
14238
|
+
M[N] = an, A[N] = an - R;
|
|
14235
14239
|
}
|
|
14236
14240
|
if (i) {
|
|
14237
|
-
var
|
|
14241
|
+
var on, er = N === "x" ? Pt : Ot, tr = N === "x" ? tn : nn, yt = M[k], Wt = k === "y" ? "height" : "width", bn = yt + x[er], gn = yt - x[tr], sn = [Pt, Ot].indexOf(_) !== -1, Tn = (on = D == null ? void 0 : D[k]) != null ? on : 0, xn = sn ? bn : yt - W[Wt] - h[Wt] - Tn + g.altAxis, En = sn ? yt + W[Wt] + h[Wt] - Tn - g.altAxis : gn, Ut = p && sn ? RD(xn, yt, En) : fl(p ? xn : bn, yt, p ? En : gn);
|
|
14238
14242
|
M[k] = Ut, A[k] = Ut - yt;
|
|
14239
14243
|
}
|
|
14240
14244
|
e.modifiersData[r] = A;
|
|
@@ -14254,7 +14258,7 @@ function pI(t) {
|
|
|
14254
14258
|
};
|
|
14255
14259
|
}
|
|
14256
14260
|
function mI(t) {
|
|
14257
|
-
return t === Bt(t) || !
|
|
14261
|
+
return t === Bt(t) || !Qt(t) ? Xp(t) : pI(t);
|
|
14258
14262
|
}
|
|
14259
14263
|
function fI(t) {
|
|
14260
14264
|
var e = t.getBoundingClientRect(), n = ls(e.width) / t.offsetWidth || 1, r = ls(e.height) / t.offsetHeight || 1;
|
|
@@ -14262,7 +14266,7 @@ function fI(t) {
|
|
|
14262
14266
|
}
|
|
14263
14267
|
function hI(t, e, n) {
|
|
14264
14268
|
n === void 0 && (n = !1);
|
|
14265
|
-
var r =
|
|
14269
|
+
var r = Qt(e), a = Qt(e) && fI(e), o = pa(e), s = cs(t, a, n), i = {
|
|
14266
14270
|
scrollLeft: 0,
|
|
14267
14271
|
scrollTop: 0
|
|
14268
14272
|
}, l = {
|
|
@@ -14270,7 +14274,7 @@ function hI(t, e, n) {
|
|
|
14270
14274
|
y: 0
|
|
14271
14275
|
};
|
|
14272
14276
|
return (r || !r && !n) && ((jn(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
14273
|
-
Zp(o)) && (i = mI(e)),
|
|
14277
|
+
Zp(o)) && (i = mI(e)), Qt(e) ? (l = cs(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : o && (l.x = Qp(o))), {
|
|
14274
14278
|
x: s.left + i.scrollLeft - l.x,
|
|
14275
14279
|
y: s.top + i.scrollTop - l.y,
|
|
14276
14280
|
width: s.width,
|
|
@@ -14622,7 +14626,7 @@ function RI(t, e) {
|
|
|
14622
14626
|
t === void 0 && (t = {}), e === void 0 && (e = {});
|
|
14623
14627
|
var o = Object.keys($y).reduce(function(E, C) {
|
|
14624
14628
|
var R;
|
|
14625
|
-
return
|
|
14629
|
+
return wr({}, E, (R = {}, R[C] = E[C] !== void 0 ? E[C] : $y[C], R));
|
|
14626
14630
|
}, t), s = B.useMemo(
|
|
14627
14631
|
function() {
|
|
14628
14632
|
return [{
|
|
@@ -14634,7 +14638,7 @@ function RI(t, e) {
|
|
|
14634
14638
|
},
|
|
14635
14639
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
14636
14640
|
Array.isArray(o.offset) ? o.offset : []
|
|
14637
|
-
), i =
|
|
14641
|
+
), i = wr({}, e, {
|
|
14638
14642
|
placement: e.placement || o.placement,
|
|
14639
14643
|
modifiers: e.modifiers || s
|
|
14640
14644
|
}), l = B.useState(null), c = l[0], u = l[1], d = B.useState(null), f = d[0], p = d[1], y = LI({
|
|
@@ -14735,18 +14739,18 @@ function RI(t, e) {
|
|
|
14735
14739
|
}
|
|
14736
14740
|
}, [o.mutationObserverOptions, f, M]);
|
|
14737
14741
|
var I = function(C) {
|
|
14738
|
-
return C === void 0 && (C = {}),
|
|
14739
|
-
style:
|
|
14742
|
+
return C === void 0 && (C = {}), wr({}, C, {
|
|
14743
|
+
style: wr({}, C.style, O.popper)
|
|
14740
14744
|
}, N.popper, {
|
|
14741
14745
|
"data-popper-interactive": o.interactive
|
|
14742
14746
|
});
|
|
14743
14747
|
}, S = function(C) {
|
|
14744
|
-
return C === void 0 && (C = {}),
|
|
14745
|
-
style:
|
|
14748
|
+
return C === void 0 && (C = {}), wr({}, C, N.arrow, {
|
|
14749
|
+
style: wr({}, C.style, O.arrow),
|
|
14746
14750
|
"data-popper-arrow": !0
|
|
14747
14751
|
});
|
|
14748
14752
|
};
|
|
14749
|
-
return
|
|
14753
|
+
return wr({
|
|
14750
14754
|
getArrowProps: S,
|
|
14751
14755
|
getTooltipProps: I,
|
|
14752
14756
|
setTooltipRef: p,
|
|
@@ -15134,7 +15138,7 @@ const Tb = /* @__PURE__ */ Rl(w_), xb = ({
|
|
|
15134
15138
|
}
|
|
15135
15139
|
], v_ = (t) => t.flatMap(xb), b_ = xb({
|
|
15136
15140
|
account: pe,
|
|
15137
|
-
chainId:
|
|
15141
|
+
chainId: Jt.id,
|
|
15138
15142
|
address: pe
|
|
15139
15143
|
}).length, g_ = ({
|
|
15140
15144
|
account: t
|
|
@@ -15194,7 +15198,7 @@ const Tb = /* @__PURE__ */ Rl(w_), xb = ({
|
|
|
15194
15198
|
exitFee: (c = n == null ? void 0 : n.exitFeeNumerator) == null ? void 0 : c.toString(),
|
|
15195
15199
|
managerAddress: (u = n == null ? void 0 : n.manager) == null ? void 0 : u.toString()
|
|
15196
15200
|
};
|
|
15197
|
-
},
|
|
15201
|
+
}, Pr = ({
|
|
15198
15202
|
address: t,
|
|
15199
15203
|
chainId: e,
|
|
15200
15204
|
refetchInterval: n,
|
|
@@ -15210,7 +15214,7 @@ const Tb = /* @__PURE__ */ Rl(w_), xb = ({
|
|
|
15210
15214
|
address: t,
|
|
15211
15215
|
chainId: e
|
|
15212
15216
|
}) => {
|
|
15213
|
-
const { account: n } = Be(), { data: { managerAddress: r } = { managerAddress: pe } } =
|
|
15217
|
+
const { account: n } = Be(), { data: { managerAddress: r } = { managerAddress: pe } } = Pr({ address: t, chainId: e }), { data: { isMemberAllowed: a = !1 } = {} } = vb({
|
|
15214
15218
|
address: t,
|
|
15215
15219
|
chainId: e
|
|
15216
15220
|
});
|
|
@@ -15344,18 +15348,18 @@ const Tb = /* @__PURE__ */ Rl(w_), xb = ({
|
|
|
15344
15348
|
vaultTokensAmount: e,
|
|
15345
15349
|
chainId: n
|
|
15346
15350
|
}) => {
|
|
15347
|
-
const r = Kl({ address: t, chainId: n }), { data: { totalSupply: a } = {} } =
|
|
15351
|
+
const r = Kl({ address: t, chainId: n }), { data: { totalSupply: a } = {} } = Pr({ address: t, chainId: n });
|
|
15348
15352
|
return K(() => a ? C_({
|
|
15349
15353
|
composition: r,
|
|
15350
15354
|
vaultTokensAmount: Cd(e || 0),
|
|
15351
15355
|
totalSupply: a
|
|
15352
15356
|
}) : [], [e, r, a]);
|
|
15353
|
-
},
|
|
15357
|
+
}, rn = ({
|
|
15354
15358
|
address: t,
|
|
15355
15359
|
chainId: e,
|
|
15356
15360
|
formatter: n = nw
|
|
15357
15361
|
}) => {
|
|
15358
|
-
const [r] = bs(), { data: a } =
|
|
15362
|
+
const [r] = bs(), { data: a } = Pr({
|
|
15359
15363
|
address: t,
|
|
15360
15364
|
chainId: e,
|
|
15361
15365
|
refetchInterval: Gl
|
|
@@ -15371,7 +15375,7 @@ const Tb = /* @__PURE__ */ Rl(w_), xb = ({
|
|
|
15371
15375
|
entryFee: s,
|
|
15372
15376
|
exitFee: i
|
|
15373
15377
|
} = {}
|
|
15374
|
-
} =
|
|
15378
|
+
} = Pr({ address: t, chainId: e }), l = s ?? (r == null ? void 0 : r.entryFeeNumerator) ?? "0", c = i ?? (r == null ? void 0 : r.exitFeeNumerator) ?? "0";
|
|
15375
15379
|
return K(
|
|
15376
15380
|
() => ({
|
|
15377
15381
|
performanceFee: yc(
|
|
@@ -15532,7 +15536,7 @@ const Tb = /* @__PURE__ */ Rl(w_), xb = ({
|
|
|
15532
15536
|
chainId: e,
|
|
15533
15537
|
address: n
|
|
15534
15538
|
}) => {
|
|
15535
|
-
const { data: r, isFetched: a } =
|
|
15539
|
+
const { data: r, isFetched: a } = Pr({ address: n, chainId: e });
|
|
15536
15540
|
return jo({
|
|
15537
15541
|
address: t ? n : void 0,
|
|
15538
15542
|
abi: aa,
|
|
@@ -15549,7 +15553,7 @@ const Tb = /* @__PURE__ */ Rl(w_), xb = ({
|
|
|
15549
15553
|
address: t,
|
|
15550
15554
|
symbol: e,
|
|
15551
15555
|
chainId: n
|
|
15552
|
-
} = se(), { account: r = pe } = Be(), a = Kn({ symbol: e, address: t }), { data: { totalSupply: o } = {} } =
|
|
15556
|
+
} = se(), { account: r = pe } = Be(), a = Kn({ symbol: e, address: t }), { data: { totalSupply: o } = {} } = Pr({
|
|
15553
15557
|
address: t,
|
|
15554
15558
|
chainId: n
|
|
15555
15559
|
}), i = V0(t) && !Je(r, pe), {
|
|
@@ -16001,7 +16005,7 @@ const Pb = (t) => t ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
|
|
|
16001
16005
|
name: "Arbitrum",
|
|
16002
16006
|
iconPath: ""
|
|
16003
16007
|
},
|
|
16004
|
-
[
|
|
16008
|
+
[Jt.id]: {
|
|
16005
16009
|
name: "Optimism",
|
|
16006
16010
|
iconPath: ""
|
|
16007
16011
|
},
|
|
@@ -16320,7 +16324,7 @@ const J_ = /* @__PURE__ */ Rl(Z_), Lb = ({
|
|
|
16320
16324
|
});
|
|
16321
16325
|
}, [r, e.TRADING.isOpen, n]), /* @__PURE__ */ m(Mb.Provider, { value: n, children: /* @__PURE__ */ m($b.Provider, { value: e, children: t }) });
|
|
16322
16326
|
}, iL = () => {
|
|
16323
|
-
const t = vs(), { pricingAsset: e, symbol: n, chainId: r, address: a } = se(), { minLimitOrderValue: o } = $e(), s = wn(), i = Kn({ symbol: n, address: a }), l =
|
|
16327
|
+
const t = vs(), { pricingAsset: e, symbol: n, chainId: r, address: a } = se(), { minLimitOrderValue: o } = $e(), s = wn(), i = Kn({ symbol: n, address: a }), l = rn({ address: a, chainId: r }), d = Number(i) * Number(l) >= o && !!e, f = q(() => {
|
|
16324
16328
|
d && (s({
|
|
16325
16329
|
type: "MERGE_OVERLAY",
|
|
16326
16330
|
payload: {
|
|
@@ -16328,7 +16332,7 @@ const J_ = /* @__PURE__ */ Rl(Z_), Lb = ({
|
|
|
16328
16332
|
isOpen: !0
|
|
16329
16333
|
}
|
|
16330
16334
|
}), t == null || t(ot.OPEN_LIMIT_SELL_VIEW, {
|
|
16331
|
-
[
|
|
16335
|
+
[Tr.SOURCE.NAME]: "overlay"
|
|
16332
16336
|
}));
|
|
16333
16337
|
}, [s, d, t]);
|
|
16334
16338
|
return { displayLimitSellOverlay: d, openLimitSellOverlay: f };
|
|
@@ -16517,7 +16521,7 @@ const Fb = /* @__PURE__ */ B.forwardRef(pL), mL = {
|
|
|
16517
16521
|
t
|
|
16518
16522
|
] }) })
|
|
16519
16523
|
] }) }) });
|
|
16520
|
-
},
|
|
16524
|
+
}, Or = ({ className: t }) => /* @__PURE__ */ m(
|
|
16521
16525
|
"svg",
|
|
16522
16526
|
{
|
|
16523
16527
|
className: le(
|
|
@@ -16778,7 +16782,7 @@ const Wb = /* @__PURE__ */ B.forwardRef(bL), Gc = ({
|
|
|
16778
16782
|
disabled: r || s,
|
|
16779
16783
|
type: o,
|
|
16780
16784
|
children: [
|
|
16781
|
-
s && /* @__PURE__ */ m(
|
|
16785
|
+
s && /* @__PURE__ */ m(Or, { className: "dtw-h-4 dtw-w-4" }),
|
|
16782
16786
|
t
|
|
16783
16787
|
]
|
|
16784
16788
|
}
|
|
@@ -17014,7 +17018,7 @@ const Wb = /* @__PURE__ */ B.forwardRef(bL), Gc = ({
|
|
|
17014
17018
|
}
|
|
17015
17019
|
);
|
|
17016
17020
|
}, _L = ({ title: t, text: e }) => {
|
|
17017
|
-
const { LogoSpinner: n =
|
|
17021
|
+
const { LogoSpinner: n = Or } = Ue();
|
|
17018
17022
|
return /* @__PURE__ */ m(Ke.Overlay, { transparent: !0, children: /* @__PURE__ */ F("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-rounded-xl dtw-px-5 dtw-py-5", children: [
|
|
17019
17023
|
t && /* @__PURE__ */ m("span", { className: "dtw-mb-8 dtw-font-medium dtw-text-[color:var(--panel-secondary-content-color)]", children: t }),
|
|
17020
17024
|
/* @__PURE__ */ m(n, { className: "dtw-h-[80px] dtw-w-[60px]" }),
|
|
@@ -17085,7 +17089,7 @@ const bc = ({ className: t }) => /* @__PURE__ */ m(
|
|
|
17085
17089
|
)
|
|
17086
17090
|
}
|
|
17087
17091
|
), NL = () => {
|
|
17088
|
-
const [t] =
|
|
17092
|
+
const [t] = Cr(), [e, n] = tt(), [r, a] = de(!1), o = e.slippage !== "auto";
|
|
17089
17093
|
return {
|
|
17090
17094
|
settings: e,
|
|
17091
17095
|
tradingType: t,
|
|
@@ -17769,7 +17773,7 @@ const tg = (t, e) => {
|
|
|
17769
17773
|
};
|
|
17770
17774
|
}, [t, e]), n;
|
|
17771
17775
|
}, ZL = (t) => ua(nw(t), 2), JL = () => {
|
|
17772
|
-
const t = se(), [e] = be(), n = ma(), r = tc(), a = GL(t), o =
|
|
17776
|
+
const t = se(), [e] = be(), n = ma(), r = tc(), a = GL(t), o = rn({
|
|
17773
17777
|
address: t.address,
|
|
17774
17778
|
formatter: ZL,
|
|
17775
17779
|
chainId: t.chainId
|
|
@@ -17859,7 +17863,7 @@ const tg = (t, e) => {
|
|
|
17859
17863
|
action: o
|
|
17860
17864
|
};
|
|
17861
17865
|
}, ng = (t) => {
|
|
17862
|
-
const e = me(), n = wn(), { account: r } = Be(), a = se(), [o] = be(), [s] = Le(), [i] =
|
|
17866
|
+
const e = me(), n = wn(), { account: r } = Be(), a = se(), [o] = be(), [s] = Le(), [i] = Cr(), l = Et()[1], c = qn()[1], u = Z0(), d = ma(), f = dm(), p = Kn({
|
|
17863
17867
|
symbol: o.symbol,
|
|
17864
17868
|
address: o.address
|
|
17865
17869
|
}), y = i === "deposit", b = qb(), x = em(), _ = y ? "deposit" : d ? "multi_withdraw" : f ? "single_withdraw_and_claim" : "single_withdraw", T = async () => {
|
|
@@ -17949,7 +17953,7 @@ const tg = (t, e) => {
|
|
|
17949
17953
|
);
|
|
17950
17954
|
}, lN = () => {
|
|
17951
17955
|
var s, i, l;
|
|
17952
|
-
const t =
|
|
17956
|
+
const t = Cr()[0] === "deposit", { chainId: e } = se(), [n] = bs(), [r] = be(), a = Qn({
|
|
17953
17957
|
address: r.address,
|
|
17954
17958
|
chainId: e,
|
|
17955
17959
|
disabled: !t || !n.apy
|
|
@@ -18060,7 +18064,7 @@ const tg = (t, e) => {
|
|
|
18060
18064
|
const [{ isInfiniteAllowance: t }, e] = tt(), n = vs(), r = q(
|
|
18061
18065
|
(a) => {
|
|
18062
18066
|
e({ isInfiniteAllowance: a }), n == null || n(ot.INFINITE_ALLOWANCE_CHANGE, {
|
|
18063
|
-
[
|
|
18067
|
+
[Tr.IS_INFINITE.NAME]: a ? 1 : 0
|
|
18064
18068
|
});
|
|
18065
18069
|
},
|
|
18066
18070
|
[e, n]
|
|
@@ -18083,7 +18087,7 @@ const tg = (t, e) => {
|
|
|
18083
18087
|
const [{ isBatchTransactionsEnabled: t }, e] = tt(), n = vs(), r = q(
|
|
18084
18088
|
(a) => {
|
|
18085
18089
|
e({ isBatchTransactionsEnabled: a }), n == null || n(ot.BATCH_TRANSACTIONS_CHANGE, {
|
|
18086
|
-
[
|
|
18090
|
+
[Tr.IS_BATCH_TRANSACTIONS_ENABLED.NAME]: a ? 1 : 0
|
|
18087
18091
|
});
|
|
18088
18092
|
},
|
|
18089
18093
|
[e, n]
|
|
@@ -18227,10 +18231,10 @@ const tg = (t, e) => {
|
|
|
18227
18231
|
}
|
|
18228
18232
|
);
|
|
18229
18233
|
return l ? {
|
|
18230
|
-
depositMethod: a ?
|
|
18234
|
+
depositMethod: a ? qr.NATIVE_CUSTOM : qr.NATIVE,
|
|
18231
18235
|
vaultDepositTokenAddress: l.tokenAddress
|
|
18232
18236
|
} : {
|
|
18233
|
-
depositMethod: a ?
|
|
18237
|
+
depositMethod: a ? qr.ZAP_NATIVE_DEPOSIT_CUSTOM : qr.ZAP_NATIVE_DEPOSIT,
|
|
18234
18238
|
vaultDepositTokenAddress: Hy(o, e) ?? t.address
|
|
18235
18239
|
};
|
|
18236
18240
|
}
|
|
@@ -18238,10 +18242,10 @@ const tg = (t, e) => {
|
|
|
18238
18242
|
({ tokenAddress: l }) => Je(l, t.address)
|
|
18239
18243
|
);
|
|
18240
18244
|
return i ? {
|
|
18241
|
-
depositMethod: a ?
|
|
18245
|
+
depositMethod: a ? qr.DEPOSIT_CUSTOM : qr.DEPOSIT,
|
|
18242
18246
|
vaultDepositTokenAddress: i.tokenAddress
|
|
18243
18247
|
} : {
|
|
18244
|
-
depositMethod: a ?
|
|
18248
|
+
depositMethod: a ? qr.ZAP_DEPOSIT_CUSTOM : qr.ZAP_DEPOSIT,
|
|
18245
18249
|
vaultDepositTokenAddress: Hy(o, e) ?? t.address
|
|
18246
18250
|
};
|
|
18247
18251
|
}, [
|
|
@@ -18258,13 +18262,13 @@ const tg = (t, e) => {
|
|
|
18258
18262
|
const { defaultSwapTransactionSlippage: t } = $e(), [{ slippage: e }] = tt(), n = rc();
|
|
18259
18263
|
return e === "auto" ? n ? t : kp : e;
|
|
18260
18264
|
}, lg = () => {
|
|
18261
|
-
const { defaultNoSwapMinDepositAmountGap: t } = $e(), { address: e, chainId: n } = se(), [r] = be(), [a] = Le(), { data: { entryFee: o } = {} } =
|
|
18265
|
+
const { defaultNoSwapMinDepositAmountGap: t } = $e(), { address: e, chainId: n } = se(), [r] = be(), [a] = Le(), { data: { entryFee: o } = {} } = Pr({ address: e, chainId: n }), s = bu(
|
|
18262
18266
|
Number(o ?? "0"),
|
|
18263
18267
|
Lo
|
|
18264
18268
|
), [{ slippage: i }] = tt(), l = i === "auto", c = Du(), u = rc(), d = +Qn({
|
|
18265
18269
|
address: r.address,
|
|
18266
18270
|
chainId: n
|
|
18267
|
-
}), f = +
|
|
18271
|
+
}), f = +rn({ address: e, chainId: n });
|
|
18268
18272
|
if (u) {
|
|
18269
18273
|
const b = Number(r.value || 0) * d * (1 - s / 100) / f;
|
|
18270
18274
|
return new X(
|
|
@@ -18494,13 +18498,13 @@ const tg = (t, e) => {
|
|
|
18494
18498
|
n && (!r.value || r.value === "0") && (o({ value: "0" }), s({ minSlippage: 0 }));
|
|
18495
18499
|
}, [o, s, r.value, n]);
|
|
18496
18500
|
}, dg = (t = {}) => {
|
|
18497
|
-
const { address: e, chainId: n } = se(), { data: r } =
|
|
18501
|
+
const { address: e, chainId: n } = se(), { data: r } = Pr({
|
|
18498
18502
|
address: e,
|
|
18499
18503
|
chainId: n
|
|
18500
18504
|
}), [a] = be(), [o] = Le(), s = Qn({
|
|
18501
18505
|
address: a.address,
|
|
18502
18506
|
chainId: n
|
|
18503
|
-
}), i =
|
|
18507
|
+
}), i = rn({ address: e, chainId: n }), l = t.includesEntryFee ? bu(Number((r == null ? void 0 : r.entryFee) ?? "0"), Lo) : 0;
|
|
18504
18508
|
return K(() => {
|
|
18505
18509
|
const c = Number(a.value || "0"), u = new X(c).times(s ?? "0").times(1 - l / 100), d = Number(o.value || "0"), f = new X(d).times(
|
|
18506
18510
|
i ?? "0"
|
|
@@ -18540,12 +18544,12 @@ jc.exports;
|
|
|
18540
18544
|
(function(t, e) {
|
|
18541
18545
|
var n = 200, r = "Expected a function", a = "__lodash_hash_undefined__", o = 1, s = 2, i = 1 / 0, l = 9007199254740991, c = "[object Arguments]", u = "[object Array]", d = "[object Boolean]", f = "[object Date]", p = "[object Error]", y = "[object Function]", b = "[object GeneratorFunction]", x = "[object Map]", _ = "[object Number]", T = "[object Object]", O = "[object Promise]", N = "[object RegExp]", k = "[object Set]", M = "[object String]", W = "[object Symbol]", h = "[object WeakMap]", v = "[object ArrayBuffer]", g = "[object DataView]", D = "[object Float32Array]", A = "[object Float64Array]", I = "[object Int8Array]", S = "[object Int16Array]", E = "[object Int32Array]", C = "[object Uint8Array]", R = "[object Uint8ClampedArray]", L = "[object Uint16Array]", $ = "[object Uint32Array]", H = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, j = /^\w*$/, Q = /^\./, V = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ie = /[\\^$.*+?()[\]{}|]/g, z = /\\(\\)?/g, ee = /^\[object .+?Constructor\]$/, ae = /^(?:0|[1-9]\d*)$/, re = {};
|
|
18542
18546
|
re[D] = re[A] = re[I] = re[S] = re[E] = re[C] = re[R] = re[L] = re[$] = !0, re[c] = re[u] = re[v] = re[d] = re[g] = re[f] = re[p] = re[y] = re[x] = re[_] = re[T] = re[N] = re[k] = re[M] = re[h] = !1;
|
|
18543
|
-
var xe = typeof uc == "object" && uc && uc.Object === Object && uc, ut = typeof self == "object" && self && self.Object === Object && self, Pe = xe || ut || Function("return this")(), dt = e && !e.nodeType && e, He = dt && !0 && t && !t.nodeType && t, Fe = He && He.exports === dt, Te = Fe && xe.process,
|
|
18547
|
+
var xe = typeof uc == "object" && uc && uc.Object === Object && uc, ut = typeof self == "object" && self && self.Object === Object && self, Pe = xe || ut || Function("return this")(), dt = e && !e.nodeType && e, He = dt && !0 && t && !t.nodeType && t, Fe = He && He.exports === dt, Te = Fe && xe.process, an = function() {
|
|
18544
18548
|
try {
|
|
18545
18549
|
return Te && Te.binding("util");
|
|
18546
18550
|
} catch {
|
|
18547
18551
|
}
|
|
18548
|
-
}(),
|
|
18552
|
+
}(), on = an && an.isTypedArray;
|
|
18549
18553
|
function er(w, P) {
|
|
18550
18554
|
var U = w ? w.length : 0;
|
|
18551
18555
|
return !!U && Wt(w, P, 0) > -1;
|
|
@@ -18578,7 +18582,7 @@ jc.exports;
|
|
|
18578
18582
|
return P == null ? void 0 : P[w];
|
|
18579
18583
|
};
|
|
18580
18584
|
}
|
|
18581
|
-
function
|
|
18585
|
+
function sn(w, P) {
|
|
18582
18586
|
for (var U = -1, Y = Array(w); ++U < w; )
|
|
18583
18587
|
Y[U] = P(U);
|
|
18584
18588
|
return Y;
|
|
@@ -18620,12 +18624,12 @@ jc.exports;
|
|
|
18620
18624
|
U[++P] = Y;
|
|
18621
18625
|
}), U;
|
|
18622
18626
|
}
|
|
18623
|
-
var ya = Array.prototype, wa = Function.prototype, Sn = Object.prototype, rr = Pe["__core-js_shared__"],
|
|
18627
|
+
var ya = Array.prototype, wa = Function.prototype, Sn = Object.prototype, rr = Pe["__core-js_shared__"], Dr = function() {
|
|
18624
18628
|
var w = /[^.]+$/.exec(rr && rr.keys && rr.keys.IE_PROTO || "");
|
|
18625
18629
|
return w ? "Symbol(src)_1." + w : "";
|
|
18626
|
-
}(),
|
|
18627
|
-
"^" +
|
|
18628
|
-
),
|
|
18630
|
+
}(), Ir = wa.toString, wt = Sn.hasOwnProperty, Ht = Sn.toString, va = RegExp(
|
|
18631
|
+
"^" + Ir.call(wt).replace(ie, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
18632
|
+
), _r = Pe.Symbol, Lr = Pe.Uint8Array, ba = Sn.propertyIsEnumerable, ga = ya.splice, Ta = ha(Object.keys, Object), ar = Vt(Pe, "DataView"), ln = Vt(Pe, "Map"), or = Vt(Pe, "Promise"), zt = Vt(Pe, "Set"), sr = Vt(Pe, "WeakMap"), cn = Vt(Object, "create"), xa = Lt(ar), Ea = Lt(ln), Sa = Lt(or), Aa = Lt(zt), Ca = Lt(sr), An = _r ? _r.prototype : void 0, ir = An ? An.valueOf : void 0, Nr = An ? An.toString : void 0;
|
|
18629
18633
|
function _t(w) {
|
|
18630
18634
|
var P = -1, U = w ? w.length : 0;
|
|
18631
18635
|
for (this.clear(); ++P < U; ) {
|
|
@@ -18634,14 +18638,14 @@ jc.exports;
|
|
|
18634
18638
|
}
|
|
18635
18639
|
}
|
|
18636
18640
|
function Pa() {
|
|
18637
|
-
this.__data__ =
|
|
18641
|
+
this.__data__ = cn ? cn(null) : {};
|
|
18638
18642
|
}
|
|
18639
18643
|
function Oa(w) {
|
|
18640
18644
|
return this.has(w) && delete this.__data__[w];
|
|
18641
18645
|
}
|
|
18642
18646
|
function Da(w) {
|
|
18643
18647
|
var P = this.__data__;
|
|
18644
|
-
if (
|
|
18648
|
+
if (cn) {
|
|
18645
18649
|
var U = P[w];
|
|
18646
18650
|
return U === a ? void 0 : U;
|
|
18647
18651
|
}
|
|
@@ -18649,11 +18653,11 @@ jc.exports;
|
|
|
18649
18653
|
}
|
|
18650
18654
|
function Ia(w) {
|
|
18651
18655
|
var P = this.__data__;
|
|
18652
|
-
return
|
|
18656
|
+
return cn ? P[w] !== void 0 : wt.call(P, w);
|
|
18653
18657
|
}
|
|
18654
18658
|
function _a(w, P) {
|
|
18655
18659
|
var U = this.__data__;
|
|
18656
|
-
return U[w] =
|
|
18660
|
+
return U[w] = cn && P === void 0 ? a : P, this;
|
|
18657
18661
|
}
|
|
18658
18662
|
_t.prototype.clear = Pa, _t.prototype.delete = Oa, _t.prototype.get = Da, _t.prototype.has = Ia, _t.prototype.set = _a;
|
|
18659
18663
|
function vt(w) {
|
|
@@ -18695,7 +18699,7 @@ jc.exports;
|
|
|
18695
18699
|
function Ma() {
|
|
18696
18700
|
this.__data__ = {
|
|
18697
18701
|
hash: new _t(),
|
|
18698
|
-
map: new (
|
|
18702
|
+
map: new (ln || vt)(),
|
|
18699
18703
|
string: new _t()
|
|
18700
18704
|
};
|
|
18701
18705
|
}
|
|
@@ -18712,7 +18716,7 @@ jc.exports;
|
|
|
18712
18716
|
return Pn(this, w).set(w, P), this;
|
|
18713
18717
|
}
|
|
18714
18718
|
bt.prototype.clear = Ma, bt.prototype.delete = Ba, bt.prototype.get = Fa, bt.prototype.has = Wa, bt.prototype.set = Ua;
|
|
18715
|
-
function
|
|
18719
|
+
function un(w) {
|
|
18716
18720
|
var P = -1, U = w ? w.length : 0;
|
|
18717
18721
|
for (this.__data__ = new bt(); ++P < U; )
|
|
18718
18722
|
this.add(w[P]);
|
|
@@ -18723,7 +18727,7 @@ jc.exports;
|
|
|
18723
18727
|
function za(w) {
|
|
18724
18728
|
return this.__data__.has(w);
|
|
18725
18729
|
}
|
|
18726
|
-
|
|
18730
|
+
un.prototype.add = un.prototype.push = Ha, un.prototype.has = za;
|
|
18727
18731
|
function gt(w) {
|
|
18728
18732
|
this.__data__ = new vt(w);
|
|
18729
18733
|
}
|
|
@@ -18743,7 +18747,7 @@ jc.exports;
|
|
|
18743
18747
|
var U = this.__data__;
|
|
18744
18748
|
if (U instanceof vt) {
|
|
18745
18749
|
var Y = U.__data__;
|
|
18746
|
-
if (!
|
|
18750
|
+
if (!ln || Y.length < n - 1)
|
|
18747
18751
|
return Y.push([w, P]), this;
|
|
18748
18752
|
U = this.__data__ = new bt(Y);
|
|
18749
18753
|
}
|
|
@@ -18751,19 +18755,19 @@ jc.exports;
|
|
|
18751
18755
|
}
|
|
18752
18756
|
gt.prototype.clear = Va, gt.prototype.delete = Ga, gt.prototype.get = ja, gt.prototype.has = Ya, gt.prototype.set = qa;
|
|
18753
18757
|
function Ka(w, P) {
|
|
18754
|
-
var U = Nt(w) ||
|
|
18758
|
+
var U = Nt(w) || Ur(w) ? sn(w.length, String) : [], Y = U.length, ce = !!Y;
|
|
18755
18759
|
for (var J in w)
|
|
18756
|
-
wt.call(w, J) && !(ce && (J == "length" ||
|
|
18760
|
+
wt.call(w, J) && !(ce && (J == "length" || Mr(J, Y))) && U.push(J);
|
|
18757
18761
|
return U;
|
|
18758
18762
|
}
|
|
18759
18763
|
function Cn(w, P) {
|
|
18760
18764
|
for (var U = w.length; U--; )
|
|
18761
|
-
if (
|
|
18765
|
+
if (Wr(w[U][0], P))
|
|
18762
18766
|
return U;
|
|
18763
18767
|
return -1;
|
|
18764
18768
|
}
|
|
18765
|
-
function
|
|
18766
|
-
P = On(P, w) ? [P] :
|
|
18769
|
+
function Rr(w, P) {
|
|
18770
|
+
P = On(P, w) ? [P] : kr(P);
|
|
18767
18771
|
for (var U = 0, Y = P.length; w != null && U < Y; )
|
|
18768
18772
|
w = w[Dn(P[U++])];
|
|
18769
18773
|
return U && U == Y ? w : void 0;
|
|
@@ -18782,7 +18786,7 @@ jc.exports;
|
|
|
18782
18786
|
he || (ge = St(w), ge = ge == c ? T : ge), Se || (We = St(P), We = We == c ? T : We);
|
|
18783
18787
|
var De = ge == T && !Ut(w), Ne = We == T && !Ut(P), ze = ge == We;
|
|
18784
18788
|
if (ze && !De)
|
|
18785
|
-
return J || (J = new gt()), he || To(w) ?
|
|
18789
|
+
return J || (J = new gt()), he || To(w) ? $r(w, P, U, Y, ce, J) : uo(w, P, ge, U, Y, ce, J);
|
|
18786
18790
|
if (!(ce & s)) {
|
|
18787
18791
|
var nt = De && wt.call(w, "__wrapped__"), rt = Ne && wt.call(P, "__wrapped__");
|
|
18788
18792
|
if (nt || rt) {
|
|
@@ -18818,7 +18822,7 @@ jc.exports;
|
|
|
18818
18822
|
function eo(w) {
|
|
18819
18823
|
if (!In(w) || yo(w))
|
|
18820
18824
|
return !1;
|
|
18821
|
-
var P =
|
|
18825
|
+
var P = zr(w) || Ut(w) ? va : ee;
|
|
18822
18826
|
return P.test(Lt(w));
|
|
18823
18827
|
}
|
|
18824
18828
|
function to(w) {
|
|
@@ -18837,26 +18841,26 @@ jc.exports;
|
|
|
18837
18841
|
}
|
|
18838
18842
|
function ao(w) {
|
|
18839
18843
|
var P = mo(w);
|
|
18840
|
-
return P.length == 1 && P[0][2] ?
|
|
18844
|
+
return P.length == 1 && P[0][2] ? Fr(P[0][0], P[0][1]) : function(U) {
|
|
18841
18845
|
return U === w || Ja(U, w, P);
|
|
18842
18846
|
};
|
|
18843
18847
|
}
|
|
18844
18848
|
function oo(w, P) {
|
|
18845
|
-
return On(w) &&
|
|
18849
|
+
return On(w) && Br(P) ? Fr(Dn(w), P) : function(U) {
|
|
18846
18850
|
var Y = Eo(U, w);
|
|
18847
18851
|
return Y === void 0 && Y === P ? So(U, w) : lr(P, Y, void 0, o | s);
|
|
18848
18852
|
};
|
|
18849
18853
|
}
|
|
18850
18854
|
function so(w) {
|
|
18851
18855
|
return function(P) {
|
|
18852
|
-
return
|
|
18856
|
+
return Rr(P, w);
|
|
18853
18857
|
};
|
|
18854
18858
|
}
|
|
18855
18859
|
function io(w) {
|
|
18856
18860
|
if (typeof w == "string")
|
|
18857
18861
|
return w;
|
|
18858
18862
|
if (dr(w))
|
|
18859
|
-
return
|
|
18863
|
+
return Nr ? Nr.call(w) : "";
|
|
18860
18864
|
var P = w + "";
|
|
18861
18865
|
return P == "0" && 1 / w == -i ? "-0" : P;
|
|
18862
18866
|
}
|
|
@@ -18866,7 +18870,7 @@ jc.exports;
|
|
|
18866
18870
|
var We = P ? null : co(w);
|
|
18867
18871
|
if (We)
|
|
18868
18872
|
return nr(We);
|
|
18869
|
-
he = !1, ce = xn, ge = new
|
|
18873
|
+
he = !1, ce = xn, ge = new un();
|
|
18870
18874
|
} else
|
|
18871
18875
|
ge = P ? [] : Se;
|
|
18872
18876
|
e:
|
|
@@ -18881,20 +18885,20 @@ jc.exports;
|
|
|
18881
18885
|
}
|
|
18882
18886
|
return Se;
|
|
18883
18887
|
}
|
|
18884
|
-
function
|
|
18888
|
+
function kr(w) {
|
|
18885
18889
|
return Nt(w) ? w : vo(w);
|
|
18886
18890
|
}
|
|
18887
18891
|
var co = zt && 1 / nr(new zt([, -0]))[1] == i ? function(w) {
|
|
18888
18892
|
return new zt(w);
|
|
18889
18893
|
} : Co;
|
|
18890
|
-
function
|
|
18894
|
+
function $r(w, P, U, Y, ce, J) {
|
|
18891
18895
|
var he = ce & s, Se = w.length, ge = P.length;
|
|
18892
18896
|
if (Se != ge && !(he && ge > Se))
|
|
18893
18897
|
return !1;
|
|
18894
18898
|
var We = J.get(w);
|
|
18895
18899
|
if (We && J.get(P))
|
|
18896
18900
|
return We == P;
|
|
18897
|
-
var De = -1, Ne = !0, ze = ce & o ? new
|
|
18901
|
+
var De = -1, Ne = !0, ze = ce & o ? new un() : void 0;
|
|
18898
18902
|
for (J.set(w, P), J.set(P, w); ++De < Se; ) {
|
|
18899
18903
|
var nt = w[De], rt = P[De];
|
|
18900
18904
|
if (Y)
|
|
@@ -18927,11 +18931,11 @@ jc.exports;
|
|
|
18927
18931
|
return !1;
|
|
18928
18932
|
w = w.buffer, P = P.buffer;
|
|
18929
18933
|
case v:
|
|
18930
|
-
return !(w.byteLength != P.byteLength || !Y(new
|
|
18934
|
+
return !(w.byteLength != P.byteLength || !Y(new Lr(w), new Lr(P)));
|
|
18931
18935
|
case d:
|
|
18932
18936
|
case f:
|
|
18933
18937
|
case _:
|
|
18934
|
-
return
|
|
18938
|
+
return Wr(+w, +P);
|
|
18935
18939
|
case p:
|
|
18936
18940
|
return w.name == P.name && w.message == P.message;
|
|
18937
18941
|
case N:
|
|
@@ -18947,7 +18951,7 @@ jc.exports;
|
|
|
18947
18951
|
if (We)
|
|
18948
18952
|
return We == P;
|
|
18949
18953
|
J |= o, he.set(w, P);
|
|
18950
|
-
var De =
|
|
18954
|
+
var De = $r(Se(w), Se(P), Y, ce, J, he);
|
|
18951
18955
|
return he.delete(w), De;
|
|
18952
18956
|
case W:
|
|
18953
18957
|
if (ir)
|
|
@@ -18973,8 +18977,8 @@ jc.exports;
|
|
|
18973
18977
|
ze = Se[Ne];
|
|
18974
18978
|
var Tt = w[ze], Rt = P[ze];
|
|
18975
18979
|
if (Y)
|
|
18976
|
-
var
|
|
18977
|
-
if (!(
|
|
18980
|
+
var Vr = he ? Y(Rt, Tt, ze, P, w, J) : Y(Tt, Rt, ze, w, P, J);
|
|
18981
|
+
if (!(Vr === void 0 ? Tt === Rt || U(Tt, Rt, Y, ce, J) : Vr)) {
|
|
18978
18982
|
rt = !1;
|
|
18979
18983
|
break;
|
|
18980
18984
|
}
|
|
@@ -18993,7 +18997,7 @@ jc.exports;
|
|
|
18993
18997
|
function mo(w) {
|
|
18994
18998
|
for (var P = pr(w), U = P.length; U--; ) {
|
|
18995
18999
|
var Y = P[U], ce = w[Y];
|
|
18996
|
-
P[U] = [Y, ce,
|
|
19000
|
+
P[U] = [Y, ce, Br(ce)];
|
|
18997
19001
|
}
|
|
18998
19002
|
return P;
|
|
18999
19003
|
}
|
|
@@ -19002,7 +19006,7 @@ jc.exports;
|
|
|
19002
19006
|
return eo(U) ? U : void 0;
|
|
19003
19007
|
}
|
|
19004
19008
|
var St = Xa;
|
|
19005
|
-
(ar && St(new ar(new ArrayBuffer(1))) != g ||
|
|
19009
|
+
(ar && St(new ar(new ArrayBuffer(1))) != g || ln && St(new ln()) != x || or && St(or.resolve()) != O || zt && St(new zt()) != k || sr && St(new sr()) != h) && (St = function(w) {
|
|
19006
19010
|
var P = Ht.call(w), U = P == T ? w.constructor : void 0, Y = U ? Lt(U) : void 0;
|
|
19007
19011
|
if (Y)
|
|
19008
19012
|
switch (Y) {
|
|
@@ -19020,7 +19024,7 @@ jc.exports;
|
|
|
19020
19024
|
return P;
|
|
19021
19025
|
});
|
|
19022
19026
|
function fo(w, P, U) {
|
|
19023
|
-
P = On(P, w) ? [P] :
|
|
19027
|
+
P = On(P, w) ? [P] : kr(P);
|
|
19024
19028
|
for (var Y, ce = -1, he = P.length; ++ce < he; ) {
|
|
19025
19029
|
var J = Dn(P[ce]);
|
|
19026
19030
|
if (!(Y = w != null && U(w, J)))
|
|
@@ -19030,9 +19034,9 @@ jc.exports;
|
|
|
19030
19034
|
if (Y)
|
|
19031
19035
|
return Y;
|
|
19032
19036
|
var he = w ? w.length : 0;
|
|
19033
|
-
return !!he && ur(he) &&
|
|
19037
|
+
return !!he && ur(he) && Mr(J, he) && (Nt(w) || Ur(w));
|
|
19034
19038
|
}
|
|
19035
|
-
function
|
|
19039
|
+
function Mr(w, P) {
|
|
19036
19040
|
return P = P ?? l, !!P && (typeof w == "number" || ae.test(w)) && w > -1 && w % 1 == 0 && w < P;
|
|
19037
19041
|
}
|
|
19038
19042
|
function On(w, P) {
|
|
@@ -19046,16 +19050,16 @@ jc.exports;
|
|
|
19046
19050
|
return P == "string" || P == "number" || P == "symbol" || P == "boolean" ? w !== "__proto__" : w === null;
|
|
19047
19051
|
}
|
|
19048
19052
|
function yo(w) {
|
|
19049
|
-
return !!
|
|
19053
|
+
return !!Dr && Dr in w;
|
|
19050
19054
|
}
|
|
19051
19055
|
function wo(w) {
|
|
19052
19056
|
var P = w && w.constructor, U = typeof P == "function" && P.prototype || Sn;
|
|
19053
19057
|
return w === U;
|
|
19054
19058
|
}
|
|
19055
|
-
function
|
|
19059
|
+
function Br(w) {
|
|
19056
19060
|
return w === w && !In(w);
|
|
19057
19061
|
}
|
|
19058
|
-
function
|
|
19062
|
+
function Fr(w, P) {
|
|
19059
19063
|
return function(U) {
|
|
19060
19064
|
return U == null ? !1 : U[w] === P && (P !== void 0 || w in Object(U));
|
|
19061
19065
|
};
|
|
@@ -19076,7 +19080,7 @@ jc.exports;
|
|
|
19076
19080
|
function Lt(w) {
|
|
19077
19081
|
if (w != null) {
|
|
19078
19082
|
try {
|
|
19079
|
-
return
|
|
19083
|
+
return Ir.call(w);
|
|
19080
19084
|
} catch {
|
|
19081
19085
|
}
|
|
19082
19086
|
try {
|
|
@@ -19102,20 +19106,20 @@ jc.exports;
|
|
|
19102
19106
|
return U.cache = new (cr.Cache || bt)(), U;
|
|
19103
19107
|
}
|
|
19104
19108
|
cr.Cache = bt;
|
|
19105
|
-
function
|
|
19109
|
+
function Wr(w, P) {
|
|
19106
19110
|
return w === P || w !== w && P !== P;
|
|
19107
19111
|
}
|
|
19108
|
-
function
|
|
19112
|
+
function Ur(w) {
|
|
19109
19113
|
return go(w) && wt.call(w, "callee") && (!ba.call(w, "callee") || Ht.call(w) == c);
|
|
19110
19114
|
}
|
|
19111
19115
|
var Nt = Array.isArray;
|
|
19112
|
-
function
|
|
19113
|
-
return w != null && ur(w.length) && !
|
|
19116
|
+
function Hr(w) {
|
|
19117
|
+
return w != null && ur(w.length) && !zr(w);
|
|
19114
19118
|
}
|
|
19115
19119
|
function go(w) {
|
|
19116
|
-
return _n(w) &&
|
|
19120
|
+
return _n(w) && Hr(w);
|
|
19117
19121
|
}
|
|
19118
|
-
function
|
|
19122
|
+
function zr(w) {
|
|
19119
19123
|
var P = In(w) ? Ht.call(w) : "";
|
|
19120
19124
|
return P == y || P == b;
|
|
19121
19125
|
}
|
|
@@ -19132,19 +19136,19 @@ jc.exports;
|
|
|
19132
19136
|
function dr(w) {
|
|
19133
19137
|
return typeof w == "symbol" || _n(w) && Ht.call(w) == W;
|
|
19134
19138
|
}
|
|
19135
|
-
var To =
|
|
19139
|
+
var To = on ? Tn(on) : to;
|
|
19136
19140
|
function xo(w) {
|
|
19137
19141
|
return w == null ? "" : io(w);
|
|
19138
19142
|
}
|
|
19139
19143
|
function Eo(w, P, U) {
|
|
19140
|
-
var Y = w == null ? void 0 :
|
|
19144
|
+
var Y = w == null ? void 0 : Rr(w, P);
|
|
19141
19145
|
return Y === void 0 ? U : Y;
|
|
19142
19146
|
}
|
|
19143
19147
|
function So(w, P) {
|
|
19144
19148
|
return w != null && fo(w, P, Qa);
|
|
19145
19149
|
}
|
|
19146
19150
|
function pr(w) {
|
|
19147
|
-
return
|
|
19151
|
+
return Hr(w) ? Ka(w) : ro(w);
|
|
19148
19152
|
}
|
|
19149
19153
|
function Ao(w) {
|
|
19150
19154
|
return w;
|
|
@@ -19236,7 +19240,7 @@ const LN = /* @__PURE__ */ Rl(_N), pm = () => {
|
|
|
19236
19240
|
n.defaultDepositTokenSymbol
|
|
19237
19241
|
]);
|
|
19238
19242
|
}, NN = () => {
|
|
19239
|
-
const t = se(), [e] = pm(), n = be()[1], [r] =
|
|
19243
|
+
const t = se(), [e] = pm(), n = be()[1], [r] = Cr();
|
|
19240
19244
|
oe(() => {
|
|
19241
19245
|
r === "deposit" && (e != null && e.symbol) && n({
|
|
19242
19246
|
address: e == null ? void 0 : e.address,
|
|
@@ -19254,7 +19258,7 @@ const LN = /* @__PURE__ */ Rl(_N), pm = () => {
|
|
|
19254
19258
|
e == null ? void 0 : e.decimals
|
|
19255
19259
|
]);
|
|
19256
19260
|
}, RN = () => {
|
|
19257
|
-
const { chainId: t, address: e, deprecated: n } = se(), { data: { isPrivateVault: r } = { isPrivateVault: !1 } } =
|
|
19261
|
+
const { chainId: t, address: e, deprecated: n } = se(), { data: { isPrivateVault: r } = { isPrivateVault: !1 } } = Pr({
|
|
19258
19262
|
address: e,
|
|
19259
19263
|
chainId: t
|
|
19260
19264
|
}), a = r || n, o = E_({
|
|
@@ -19277,7 +19281,7 @@ const LN = /* @__PURE__ */ Rl(_N), pm = () => {
|
|
|
19277
19281
|
return t;
|
|
19278
19282
|
}
|
|
19279
19283
|
}, $N = "1", MN = () => {
|
|
19280
|
-
const { account: t = pe } = Be(), { address: e, chainId: n } = se(), [r] = Le(), a =
|
|
19284
|
+
const { account: t = pe } = Be(), { address: e, chainId: n } = se(), [r] = Le(), a = rn({ address: e, chainId: n }), { minDepositUSD: o } = Eb(e, n), { data: s } = $_({
|
|
19281
19285
|
address: e,
|
|
19282
19286
|
chainId: n,
|
|
19283
19287
|
account: t
|
|
@@ -19495,7 +19499,7 @@ const LN = /* @__PURE__ */ Rl(_N), pm = () => {
|
|
|
19495
19499
|
updater: e
|
|
19496
19500
|
};
|
|
19497
19501
|
}, ZN = () => {
|
|
19498
|
-
const { address: t, chainId: e } = se(), [n] = Le(), r =
|
|
19502
|
+
const { address: t, chainId: e } = se(), [n] = Le(), r = rn({ address: t, chainId: e });
|
|
19499
19503
|
return {
|
|
19500
19504
|
...n,
|
|
19501
19505
|
price: r
|
|
@@ -19866,7 +19870,7 @@ const u5 = (t) => {
|
|
|
19866
19870
|
}
|
|
19867
19871
|
),
|
|
19868
19872
|
/* @__PURE__ */ F("div", { className: "dtw-flex dtw-items-center dtw-gap-[var(--panel-input-price-gap,var(--panel-gap))] dtw-flex-1", children: [
|
|
19869
|
-
p && /* @__PURE__ */ m(Ae, { children: b ? /* @__PURE__ */ m("div", { className: "dtw-ml-auto dtw-h-[18px]", children: /* @__PURE__ */ m(
|
|
19873
|
+
p && /* @__PURE__ */ m(Ae, { children: b ? /* @__PURE__ */ m("div", { className: "dtw-ml-auto dtw-h-[18px]", children: /* @__PURE__ */ m(Or, { className: "dtw-stroke-[color:var(--panel-accent-from-color)] dtw-h-[var(--panel-icon-secondary-size)] sm:dtw-h-[var(--panel-icon-secondary-size-sm)] dtw-w-[var(--panel-icon-secondary-size)] sm:dtw-w-[var(--panel-icon-secondary-size-sm)]" }) }) : /* @__PURE__ */ m(
|
|
19870
19874
|
"input",
|
|
19871
19875
|
{
|
|
19872
19876
|
className: le(
|
|
@@ -19985,7 +19989,7 @@ const u5 = (t) => {
|
|
|
19985
19989
|
t
|
|
19986
19990
|
),
|
|
19987
19991
|
children: [
|
|
19988
|
-
n && /* @__PURE__ */ m(
|
|
19992
|
+
n && /* @__PURE__ */ m(Or, { className: "dtw-stroke-[color:var(--panel-accent-from-color)] dtw-h-[var(--panel-icon-secondary-size)] sm:dtw-h-[var(--panel-icon-secondary-size-sm)] dtw-w-[var(--panel-icon-secondary-size)] sm:dtw-w-[var(--panel-icon-secondary-size-sm)]" }),
|
|
19989
19993
|
/* @__PURE__ */ m(
|
|
19990
19994
|
"p",
|
|
19991
19995
|
{
|
|
@@ -20033,7 +20037,7 @@ const u5 = (t) => {
|
|
|
20033
20037
|
tooltipText: a,
|
|
20034
20038
|
label: t.maxSlippage,
|
|
20035
20039
|
value: /* @__PURE__ */ F("div", { className: "dtw-flex dtw-gap-1", children: [
|
|
20036
|
-
s && /* @__PURE__ */ m(
|
|
20040
|
+
s && /* @__PURE__ */ m(Or, { className: "dtw-stroke-[color:var(--panel-accent-from-color)] dtw-h-[var(--panel-icon-secondary-size)] sm:dtw-h-[var(--panel-icon-secondary-size-sm)] dtw-w-[var(--panel-icon-secondary-size)] sm:dtw-w-[var(--panel-icon-secondary-size-sm)]" }),
|
|
20037
20041
|
/* @__PURE__ */ F(
|
|
20038
20042
|
"span",
|
|
20039
20043
|
{
|
|
@@ -20345,7 +20349,7 @@ const u5 = (t) => {
|
|
|
20345
20349
|
}
|
|
20346
20350
|
);
|
|
20347
20351
|
}, O5 = [], D5 = () => {
|
|
20348
|
-
const t = se(), [e] =
|
|
20352
|
+
const t = se(), [e] = Cr(), [n, r] = be(), [a, o] = Le(), { data: s } = Sb(t), i = pm(), l = s ? O5 : t.withdrawParams.customTokens;
|
|
20349
20353
|
return K(
|
|
20350
20354
|
() => ({
|
|
20351
20355
|
tokens: e === "deposit" ? i : l,
|
|
@@ -20366,7 +20370,7 @@ const u5 = (t) => {
|
|
|
20366
20370
|
searchQuery: t,
|
|
20367
20371
|
type: e
|
|
20368
20372
|
}) => {
|
|
20369
|
-
const [{ isMultiAssetWithdrawalEnabled: n }] = tt(), { isCompleteWithdrawStep: r } = Jl(), a = tm(), [o] =
|
|
20373
|
+
const [{ isMultiAssetWithdrawalEnabled: n }] = tt(), { isCompleteWithdrawStep: r } = Jl(), a = tm(), [o] = Cr(), { handleReject: s } = Xn({ type: e }), { tokens: i, updater: l, activeTokens: c } = D5(), u = K(
|
|
20370
20374
|
() => t ? i.filter(
|
|
20371
20375
|
({ symbol: f }) => f.toLowerCase().includes(t)
|
|
20372
20376
|
) : i,
|
|
@@ -20468,7 +20472,7 @@ const u5 = (t) => {
|
|
|
20468
20472
|
searchQuery: t,
|
|
20469
20473
|
type: e
|
|
20470
20474
|
}) => {
|
|
20471
|
-
const n = k_(), r = Tu(), a = se(), { handleReject: o } = Xn({ type: e }), [s] =
|
|
20475
|
+
const n = k_(), r = Tu(), a = se(), { handleReject: o } = Xn({ type: e }), [s] = Cr(), i = be()[1], l = Le()[1], c = QO()[1], u = q(
|
|
20472
20476
|
({ address: f, value: p, decimals: y, symbol: b }) => {
|
|
20473
20477
|
(s === "deposit" ? l : i)({ address: f, value: p, decimals: y, symbol: b }), c(f), o();
|
|
20474
20478
|
},
|
|
@@ -20557,7 +20561,7 @@ const u5 = (t) => {
|
|
|
20557
20561
|
const n = e[0];
|
|
20558
20562
|
return `${n.slice(0, 4)}...${n.slice(-3)}`;
|
|
20559
20563
|
}, M5 = ({ type: t }) => {
|
|
20560
|
-
const { address: e, symbol: n, chainId: r } = se(), [{ link: a, sendTokens: o }, s] = Et(), { handleReject: i } = Xn({ type: t }), l = o == null ? void 0 : o[0], c = $5(a), u =
|
|
20564
|
+
const { address: e, symbol: n, chainId: r } = se(), [{ link: a, sendTokens: o }, s] = Et(), { handleReject: i } = Xn({ type: t }), l = o == null ? void 0 : o[0], c = $5(a), u = rn({
|
|
20561
20565
|
address: e,
|
|
20562
20566
|
chainId: r
|
|
20563
20567
|
});
|
|
@@ -20614,7 +20618,7 @@ const u5 = (t) => {
|
|
|
20614
20618
|
] })
|
|
20615
20619
|
] });
|
|
20616
20620
|
}, F5 = () => {
|
|
20617
|
-
const t = me(), { LogoSpinner: e =
|
|
20621
|
+
const t = me(), { LogoSpinner: e = Or } = Ue(), [{ link: n }] = Et();
|
|
20618
20622
|
return /* @__PURE__ */ F("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-justify-center dtw-gap-2 dtw-pt-1 dtw-px-4 dtw-w-full dtw-h-full md:dtw-w-1/2 md:dtw-h-1/2", children: [
|
|
20619
20623
|
/* @__PURE__ */ m(e, { className: "dtw-h-16 dtw-w-16 lg:dtw-h-24 lg:dtw-w-24 dtw-shrink-0" }),
|
|
20620
20624
|
t.miningTx,
|
|
@@ -20740,7 +20744,7 @@ const u5 = (t) => {
|
|
|
20740
20744
|
showNextStepTip: o,
|
|
20741
20745
|
displaySuccessDepositOverlay: s,
|
|
20742
20746
|
displayLimitOrderTransactionOverlay: i
|
|
20743
|
-
} = z5({ type: t }), { LogoSpinner: l =
|
|
20747
|
+
} = z5({ type: t }), { LogoSpinner: l = Or } = Ue(), c = me();
|
|
20744
20748
|
return i ? /* @__PURE__ */ m(H5, { type: t }) : s ? /* @__PURE__ */ m(B5, { type: t }) : /* @__PURE__ */ F(Ke.Notification, { onClose: r, children: [
|
|
20745
20749
|
/* @__PURE__ */ F("div", { className: "dtw-flex dtw-items-center dtw-gap-1.5", children: [
|
|
20746
20750
|
/* @__PURE__ */ m("span", { className: "dtw-font-semibold dtw-drop-shadow-md", children: n }),
|
|
@@ -20823,7 +20827,7 @@ const u5 = (t) => {
|
|
|
20823
20827
|
disabled: r || s,
|
|
20824
20828
|
type: o,
|
|
20825
20829
|
children: [
|
|
20826
|
-
s && /* @__PURE__ */ m(
|
|
20830
|
+
s && /* @__PURE__ */ m(Or, { className: "dtw-h-4 dtw-w-4 dtw-stroke-[var(--limit-order-accent-content-color)]" }),
|
|
20827
20831
|
t
|
|
20828
20832
|
]
|
|
20829
20833
|
}
|
|
@@ -20926,7 +20930,7 @@ const u5 = (t) => {
|
|
|
20926
20930
|
if (!t)
|
|
20927
20931
|
return "";
|
|
20928
20932
|
const [e = "", n] = t.replace(/,/g, "").split("."), r = n && n.length > Ld ? n.slice(0, Ld) : n, a = e.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
20929
|
-
return r !== void 0 ? `${a}.${
|
|
20933
|
+
return r !== void 0 ? `${a}.${r}` : a;
|
|
20930
20934
|
}, sR = ({
|
|
20931
20935
|
inputValue: t = "",
|
|
20932
20936
|
onInputChange: e,
|
|
@@ -21040,7 +21044,7 @@ const u5 = (t) => {
|
|
|
21040
21044
|
return t;
|
|
21041
21045
|
}
|
|
21042
21046
|
};
|
|
21043
|
-
function
|
|
21047
|
+
function Xr() {
|
|
21044
21048
|
}
|
|
21045
21049
|
const Cg = (t) => ({
|
|
21046
21050
|
vaultAddress: t.vaultAddress,
|
|
@@ -21068,14 +21072,14 @@ const Cg = (t) => ({
|
|
|
21068
21072
|
}
|
|
21069
21073
|
})
|
|
21070
21074
|
), Og = ve({
|
|
21071
|
-
setIsModalOpen:
|
|
21072
|
-
setUpperLimitPrice:
|
|
21073
|
-
setLowerLimitPrice:
|
|
21074
|
-
setTermsAccepted:
|
|
21075
|
-
setSellPercentage:
|
|
21076
|
-
reset:
|
|
21077
|
-
setPendingTransaction:
|
|
21078
|
-
onLog:
|
|
21075
|
+
setIsModalOpen: Xr,
|
|
21076
|
+
setUpperLimitPrice: Xr,
|
|
21077
|
+
setLowerLimitPrice: Xr,
|
|
21078
|
+
setTermsAccepted: Xr,
|
|
21079
|
+
setSellPercentage: Xr,
|
|
21080
|
+
reset: Xr,
|
|
21081
|
+
setPendingTransaction: Xr,
|
|
21082
|
+
onLog: Xr
|
|
21079
21083
|
}), Dg = ({ children: t, initialState: e, actions: n }) => {
|
|
21080
21084
|
const [r, a] = Yo(
|
|
21081
21085
|
iR,
|
|
@@ -21479,7 +21483,7 @@ const Cg = (t) => ({
|
|
|
21479
21483
|
userAddress: e,
|
|
21480
21484
|
vaultAddress: n,
|
|
21481
21485
|
chainId: r
|
|
21482
|
-
}), f =
|
|
21486
|
+
}), f = rn({
|
|
21483
21487
|
address: n,
|
|
21484
21488
|
chainId: r
|
|
21485
21489
|
}), [p, y] = de(null), b = Ig(ER), x = !!d, { send: _ } = Ko({
|
|
@@ -21629,8 +21633,8 @@ const Cg = (t) => ({
|
|
|
21629
21633
|
});
|
|
21630
21634
|
oe(() => {
|
|
21631
21635
|
l && ((t == null ? void 0 : t.action) === "create" && (s == null || s(ot.CREATE_LIMIT_SELL_ORDER, {
|
|
21632
|
-
[
|
|
21633
|
-
[
|
|
21636
|
+
[Tr.ADDRESS.NAME]: n,
|
|
21637
|
+
[Tr.CHAIN_ID.NAME]: e
|
|
21634
21638
|
})), i(), r(null), a == null || a(l.transactionHash));
|
|
21635
21639
|
}, [
|
|
21636
21640
|
l,
|
|
@@ -21679,7 +21683,7 @@ const Cg = (t) => ({
|
|
|
21679
21683
|
children: t,
|
|
21680
21684
|
config: e
|
|
21681
21685
|
}) => {
|
|
21682
|
-
var n, r, a, o, s, i, l, c, u, d, f, p, y, b, x, _, T, O, N, k, M, W, h, v, g, D, A, I, S, E, C, R, L, $, H, j, Q, V, ie, z, ee, ae, re, xe, ut, Pe, dt, He, Fe, Te,
|
|
21686
|
+
var n, r, a, o, s, i, l, c, u, d, f, p, y, b, x, _, T, O, N, k, M, W, h, v, g, D, A, I, S, E, C, R, L, $, H, j, Q, V, ie, z, ee, ae, re, xe, ut, Pe, dt, He, Fe, Te, an, on, er, tr, yt, Wt, bn, gn, sn, Tn, xn, En, Ut, fa, ha, nr, ya, wa, Sn, rr, Dr, Ir, wt, Ht, va, _r, Lr, ba, ga, Ta, ar, ln, or, zt, sr, cn, xa, Ea, Sa, Aa, Ca, An, ir, Nr, _t, Pa, Oa, Da, Ia, _a, vt, La, Na, Ra, ka, $a, bt, Ma, Ba, Fa, Wa, Ua, un, Ha, za, gt, Va, Ga, ja, Ya, qa, Ka, Cn, Rr, Xa, Qa, lr, Za, Ja, eo, to, no, ro, ao, oo, so, io, lo, kr, co, $r, uo, po, Pn, mo, Vt, St, fo, Mr, On, ho, yo, wo, Br, Fr, vo, Dn, Lt, bo, cr, Wr, Ur, Nt, Hr, go, zr, ur, In, _n, dr, To, xo, Eo, So, pr, Ao, Co, Po, w, P, U, Y, ce, J, he, Se, ge, We, De, Ne, ze, nt, rt, At, Tt, Rt, Vr, Ln, Nn, Ts, xs, Es, Ss, As, Cs, Ps, Os, Ds, Is, _s, Ls, Ns, Rs, ks, $s, Ms, Bs, Fs, Ws, Us, Hs, zs, Vs, Gs, js, Ys, qs, Ks, Xs, Qs, Zs, Js, ei, ti, ni, ri, ai, oi, si, ii, li, ci, ui, di, pi, mi, fi, hi, yi, wi, vi, bi, gi, Ti, xi, Ei, Si, Ai, Ci, Pi, Oi, Di, Ii, _i, Li, Ni, Ri, ki, $i, Mi, Bi, Fi, Wi, Ui, Hi, zi, Vi, Gi, ji, Yi, qi, Ki;
|
|
21683
21687
|
return /* @__PURE__ */ m(
|
|
21684
21688
|
"div",
|
|
21685
21689
|
{
|
|
@@ -21718,11 +21722,11 @@ const Cg = (t) => ({
|
|
|
21718
21722
|
"--limit-order-font-size": `${((Pe = (ut = e == null ? void 0 : e.global) == null ? void 0 : ut.size) == null ? void 0 : Pe.fontSizeBase) ?? "16px"}`,
|
|
21719
21723
|
"--limit-order-line-height": `${((He = (dt = e == null ? void 0 : e.global) == null ? void 0 : dt.size) == null ? void 0 : He.lineHeightBase) ?? "24px"}`,
|
|
21720
21724
|
"--limit-order-font-size-lg": `${((Te = (Fe = e == null ? void 0 : e.global) == null ? void 0 : Fe.size) == null ? void 0 : Te.fontSizeLg) ?? "18px"}`,
|
|
21721
|
-
"--limit-order-line-height-lg": `${((
|
|
21725
|
+
"--limit-order-line-height-lg": `${((on = (an = e == null ? void 0 : e.global) == null ? void 0 : an.size) == null ? void 0 : on.lineHeightLg) ?? "28px"}`,
|
|
21722
21726
|
"--limit-order-font-size-sm": `${((tr = (er = e == null ? void 0 : e.global) == null ? void 0 : er.size) == null ? void 0 : tr.fontSizeSm) ?? "14px"}`,
|
|
21723
21727
|
"--limit-order-line-height-sm": `${((Wt = (yt = e == null ? void 0 : e.global) == null ? void 0 : yt.size) == null ? void 0 : Wt.lineHeightSm) ?? "20px"}`,
|
|
21724
21728
|
"--limit-order-font-size-xs": `${((gn = (bn = e == null ? void 0 : e.global) == null ? void 0 : bn.size) == null ? void 0 : gn.fontSizeXs) ?? "12px"}`,
|
|
21725
|
-
"--limit-order-line-height-xs": `${((Tn = (
|
|
21729
|
+
"--limit-order-line-height-xs": `${((Tn = (sn = e == null ? void 0 : e.global) == null ? void 0 : sn.size) == null ? void 0 : Tn.lineHeightXs) ?? "16px"}`,
|
|
21726
21730
|
//global-style
|
|
21727
21731
|
"--limit-order-font-weight-light": `${((En = (xn = e == null ? void 0 : e.global) == null ? void 0 : xn.style) == null ? void 0 : En.fontWeightLight) ?? 300}`,
|
|
21728
21732
|
"--limit-order-font-weight-medium": `${((fa = (Ut = e == null ? void 0 : e.global) == null ? void 0 : Ut.style) == null ? void 0 : fa.fontWeightMedium) ?? 500}`,
|
|
@@ -21731,18 +21735,18 @@ const Cg = (t) => ({
|
|
|
21731
21735
|
"--limit-order-action-hover-opacity": `${((rr = (Sn = e == null ? void 0 : e.global) == null ? void 0 : Sn.style) == null ? void 0 : rr.actionOpacityHover) ?? 0.8}`,
|
|
21732
21736
|
//label
|
|
21733
21737
|
//label-typography
|
|
21734
|
-
"--limit-order-label-font-size": `${((
|
|
21738
|
+
"--limit-order-label-font-size": `${((Ir = (Dr = e == null ? void 0 : e.global) == null ? void 0 : Dr.size) == null ? void 0 : Ir.labelFontSize) ?? "var(--limit-order-font-size-xs)"}`,
|
|
21735
21739
|
"--limit-order-label-line-height": `${((Ht = (wt = e == null ? void 0 : e.global) == null ? void 0 : wt.size) == null ? void 0 : Ht.labelLineHeight) ?? "var(--limit-order-line-height-xs)"}`,
|
|
21736
21740
|
//action-button
|
|
21737
21741
|
//action-button-spacing
|
|
21738
|
-
"--limit-order-action-accent-button-border-width": `${((
|
|
21742
|
+
"--limit-order-action-accent-button-border-width": `${((Lr = (_r = (va = e == null ? void 0 : e.component) == null ? void 0 : va.actionButton) == null ? void 0 : _r.size) == null ? void 0 : Lr.borderWidth) ?? "1px"}`,
|
|
21739
21743
|
//action-button-color
|
|
21740
21744
|
"--limit-order-action-accent-button-bg-from": `${((Ta = (ga = (ba = e == null ? void 0 : e.component) == null ? void 0 : ba.actionButton) == null ? void 0 : ga.color) == null ? void 0 : Ta.colorBgFrom) ?? "var(--limit-order-accent-from-color)"}`,
|
|
21741
|
-
"--limit-order-action-accent-button-bg-to": `${((or = (
|
|
21742
|
-
"--limit-order-action-accent-button-hover-bg-from": `${((
|
|
21745
|
+
"--limit-order-action-accent-button-bg-to": `${((or = (ln = (ar = e == null ? void 0 : e.component) == null ? void 0 : ar.actionButton) == null ? void 0 : ln.color) == null ? void 0 : or.colorBgTo) ?? "var(--limit-order-accent-to-color)"}`,
|
|
21746
|
+
"--limit-order-action-accent-button-hover-bg-from": `${((cn = (sr = (zt = e == null ? void 0 : e.component) == null ? void 0 : zt.actionButton) == null ? void 0 : sr.color) == null ? void 0 : cn.colorBgFromHover) ?? "var(--limit-order-accent-hover-from-color)"}`,
|
|
21743
21747
|
"--limit-order-action-accent-button-hover-bg-to": `${((Sa = (Ea = (xa = e == null ? void 0 : e.component) == null ? void 0 : xa.actionButton) == null ? void 0 : Ea.color) == null ? void 0 : Sa.colorBgToHover) ?? "var(--limit-order-accent-hover-to-color)"}`,
|
|
21744
21748
|
"--limit-order-action-accent-button-border-color": `${((An = (Ca = (Aa = e == null ? void 0 : e.component) == null ? void 0 : Aa.actionButton) == null ? void 0 : Ca.color) == null ? void 0 : An.colorBorder) ?? "var(--limit-order-accent-from-color)"}`,
|
|
21745
|
-
"--limit-order-action-accent-button-color": `${((_t = (
|
|
21749
|
+
"--limit-order-action-accent-button-color": `${((_t = (Nr = (ir = e == null ? void 0 : e.component) == null ? void 0 : ir.actionButton) == null ? void 0 : Nr.color) == null ? void 0 : _t.colorText) ?? "var(--limit-order-accent-content-color)"}`,
|
|
21746
21750
|
"--limit-order-action-outline-button-border-color": `${((Da = (Oa = (Pa = e == null ? void 0 : e.component) == null ? void 0 : Pa.actionButton) == null ? void 0 : Oa.color) == null ? void 0 : Da.outlineColorBorder) ?? `${te.WHITE.DEFAULT}33`}`,
|
|
21747
21751
|
"--limit-order-action-outline-button-border-hover-color": `${((vt = (_a = (Ia = e == null ? void 0 : e.component) == null ? void 0 : Ia.actionButton) == null ? void 0 : _a.color) == null ? void 0 : vt.outlineColorBorderHover) ?? `${te.WHITE.DEFAULT}CC`}`,
|
|
21748
21752
|
"--limit-order-action-outline-button-color": `${((Ra = (Na = (La = e == null ? void 0 : e.component) == null ? void 0 : La.actionButton) == null ? void 0 : Na.color) == null ? void 0 : Ra.outlineColorText) ?? "var(--limit-order-content-color)"}`,
|
|
@@ -21753,7 +21757,7 @@ const Cg = (t) => ({
|
|
|
21753
21757
|
"--limit-order-icon-secondary-size": `${((Fa = (Ba = e == null ? void 0 : e.global) == null ? void 0 : Ba.size) == null ? void 0 : Fa.iconSecondarySize) ?? "16px"}`,
|
|
21754
21758
|
"--limit-order-icon-secondary-size-sm": `${((Ua = (Wa = e == null ? void 0 : e.global) == null ? void 0 : Wa.size) == null ? void 0 : Ua.iconSecondarySizeSm) ?? "16px"}`,
|
|
21755
21759
|
//icon-colors
|
|
21756
|
-
"--limit-order-icon-color": `${((Ha = (
|
|
21760
|
+
"--limit-order-icon-color": `${((Ha = (un = e == null ? void 0 : e.global) == null ? void 0 : un.color) == null ? void 0 : Ha.colorIcon) ?? "var(--limit-order-content-color)"}`,
|
|
21757
21761
|
//inputs
|
|
21758
21762
|
"--limit-order-inputs-group-gap": `${((Va = (gt = (za = e == null ? void 0 : e.component) == null ? void 0 : za.inputGroup) == null ? void 0 : gt.size) == null ? void 0 : Va.gap) ?? "var(--limit-order-gap)"}`,
|
|
21759
21763
|
"--limit-order-inputs-group-px": `${((Ya = (ja = (Ga = e == null ? void 0 : e.component) == null ? void 0 : Ga.inputGroup) == null ? void 0 : ja.size) == null ? void 0 : Ya.px) ?? "calc(var(--limit-order-spacer) * 3)"}`,
|
|
@@ -21761,23 +21765,23 @@ const Cg = (t) => ({
|
|
|
21761
21765
|
//input-sizing
|
|
21762
21766
|
"--limit-order-input-radius": `${((Cn = (Ka = (qa = e == null ? void 0 : e.component) == null ? void 0 : qa.input) == null ? void 0 : Ka.style) == null ? void 0 : Cn.radius) ?? "var(--limit-order-radius)"}`,
|
|
21763
21767
|
//input-spacing
|
|
21764
|
-
"--limit-order-input-group-gap": `${((Qa = (Xa = (
|
|
21768
|
+
"--limit-order-input-group-gap": `${((Qa = (Xa = (Rr = e == null ? void 0 : e.component) == null ? void 0 : Rr.input) == null ? void 0 : Xa.size) == null ? void 0 : Qa.gap) ?? "calc(var(--limit-order-gap) * 2)"}`,
|
|
21765
21769
|
"--limit-order-input-px": `${((Ja = (Za = (lr = e == null ? void 0 : e.component) == null ? void 0 : lr.input) == null ? void 0 : Za.size) == null ? void 0 : Ja.px) ?? "calc(var(--limit-order-spacer) * 3)"}`,
|
|
21766
21770
|
"--limit-order-input-py": `${((no = (to = (eo = e == null ? void 0 : e.component) == null ? void 0 : eo.input) == null ? void 0 : to.size) == null ? void 0 : no.py) ?? "calc(var(--limit-order-spacer) * 2)"}`,
|
|
21767
21771
|
"--limit-order-input-price-gap": `${((oo = (ao = (ro = e == null ? void 0 : e.component) == null ? void 0 : ro.input) == null ? void 0 : ao.size) == null ? void 0 : oo.priceGap) ?? "calc(var(--limit-order-gap) * 2)"}`,
|
|
21768
21772
|
"--limit-order-input-token-icon-size": `${((lo = (io = (so = e == null ? void 0 : e.component) == null ? void 0 : so.input) == null ? void 0 : io.size) == null ? void 0 : lo.iconSize) ?? "var(--limit-order-icon-size)"}`,
|
|
21769
|
-
"--limit-order-input-token-icon-size-sm": `${((
|
|
21773
|
+
"--limit-order-input-token-icon-size-sm": `${(($r = (co = (kr = e == null ? void 0 : e.component) == null ? void 0 : kr.input) == null ? void 0 : co.size) == null ? void 0 : $r.iconSizeSm) ?? "var(--limit-order-icon-size-sm)"}`,
|
|
21770
21774
|
//input-color
|
|
21771
21775
|
"--limit-order-input-content-color": `${((Pn = (po = (uo = e == null ? void 0 : e.component) == null ? void 0 : uo.input) == null ? void 0 : po.color) == null ? void 0 : Pn.textColor) ?? "var(--limit-order-secondary-content-color)"}`,
|
|
21772
21776
|
"--limit-order-input-loading-content-color": `${((St = (Vt = (mo = e == null ? void 0 : e.component) == null ? void 0 : mo.input) == null ? void 0 : Vt.color) == null ? void 0 : St.loadingTextColor) ?? "var(--limit-order-loading-content-color)"}`,
|
|
21773
|
-
"--limit-order-input-bg": `${((On = (
|
|
21777
|
+
"--limit-order-input-bg": `${((On = (Mr = (fo = e == null ? void 0 : e.component) == null ? void 0 : fo.input) == null ? void 0 : Mr.color) == null ? void 0 : On.bgColor) ?? "var(--limit-order-neutral-color)"}`,
|
|
21774
21778
|
"--limit-order-input-focus-bg": `${((wo = (yo = (ho = e == null ? void 0 : e.component) == null ? void 0 : ho.input) == null ? void 0 : yo.color) == null ? void 0 : wo.bgColorFocus) ?? "transparent"}`,
|
|
21775
|
-
"--limit-order-input-border-color": `${((vo = (
|
|
21779
|
+
"--limit-order-input-border-color": `${((vo = (Fr = (Br = e == null ? void 0 : e.component) == null ? void 0 : Br.input) == null ? void 0 : Fr.color) == null ? void 0 : vo.borderColor) ?? te.GRAY[700]}`,
|
|
21776
21780
|
"--limit-order-input-focus-border-color": `${((bo = (Lt = (Dn = e == null ? void 0 : e.component) == null ? void 0 : Dn.input) == null ? void 0 : Lt.color) == null ? void 0 : bo.borderColorFocus) ?? "var(--limit-order-content-color)"}`,
|
|
21777
|
-
"--limit-order-input-placeholder-color": `${((
|
|
21781
|
+
"--limit-order-input-placeholder-color": `${((Ur = (Wr = (cr = e == null ? void 0 : e.component) == null ? void 0 : cr.input) == null ? void 0 : Wr.color) == null ? void 0 : Ur.placeholderColor) ?? "var(--limit-order-secondary-content-color)"}`,
|
|
21778
21782
|
//input-typography
|
|
21779
|
-
"--limit-order-input-label-font-size": `${((go = (
|
|
21780
|
-
"--limit-order-input-label-line-height": `${((In = (ur = (
|
|
21783
|
+
"--limit-order-input-label-font-size": `${((go = (Hr = (Nt = e == null ? void 0 : e.component) == null ? void 0 : Nt.input) == null ? void 0 : Hr.size) == null ? void 0 : go.labelFontSize) ?? "var(--limit-order-font-size)"}`,
|
|
21784
|
+
"--limit-order-input-label-line-height": `${((In = (ur = (zr = e == null ? void 0 : e.component) == null ? void 0 : zr.input) == null ? void 0 : ur.size) == null ? void 0 : In.labelLineHeight) ?? "var(--limit-order-line-height)"}`,
|
|
21781
21785
|
"--limit-order-input-label-font-weight": `${((To = (dr = (_n = e == null ? void 0 : e.component) == null ? void 0 : _n.input) == null ? void 0 : dr.style) == null ? void 0 : To.labelFontWeight) ?? "var(--limit-order-font-weight-light)"}`,
|
|
21782
21786
|
"--limit-order-input-font-size": `${((So = (Eo = (xo = e == null ? void 0 : e.component) == null ? void 0 : xo.input) == null ? void 0 : Eo.size) == null ? void 0 : So.fontSize) ?? "var(--limit-order-font-size-sm)"}`,
|
|
21783
21787
|
"--limit-order-input-line-height": `${((Co = (Ao = (pr = e == null ? void 0 : e.component) == null ? void 0 : pr.input) == null ? void 0 : Ao.size) == null ? void 0 : Co.lineHeight) ?? "var(--limit-order-line-height-sm)"}`,
|
|
@@ -21787,7 +21791,7 @@ const Cg = (t) => ({
|
|
|
21787
21791
|
"--limit-order-input-font-weight": `${((De = (We = (ge = e == null ? void 0 : e.component) == null ? void 0 : ge.input) == null ? void 0 : We.style) == null ? void 0 : De.fontWeight) ?? "var(--limit-order-font-weight-light)"}`,
|
|
21788
21792
|
"--limit-order-input-token-font-size": `${((nt = (ze = (Ne = e == null ? void 0 : e.component) == null ? void 0 : Ne.input) == null ? void 0 : ze.size) == null ? void 0 : nt.tokenFontSize) ?? "var(--limit-order-font-size-xs)"}`,
|
|
21789
21793
|
"--limit-order-input-token-line-height": `${((Tt = (At = (rt = e == null ? void 0 : e.component) == null ? void 0 : rt.input) == null ? void 0 : At.size) == null ? void 0 : Tt.tokenLineHeight) ?? "var(--limit-order-line-height-xs)"}`,
|
|
21790
|
-
"--limit-order-input-token-font-size-sm": `${((Ln = (
|
|
21794
|
+
"--limit-order-input-token-font-size-sm": `${((Ln = (Vr = (Rt = e == null ? void 0 : e.component) == null ? void 0 : Rt.input) == null ? void 0 : Vr.size) == null ? void 0 : Ln.tokenFontSizeSm) ?? "var(--limit-order-font-size)"}`,
|
|
21791
21795
|
"--limit-order-input-token-line-height-sm": `${((xs = (Ts = (Nn = e == null ? void 0 : e.component) == null ? void 0 : Nn.input) == null ? void 0 : Ts.size) == null ? void 0 : xs.tokenLineHeightSm) ?? "var(--limit-order-line-height)"}`,
|
|
21792
21796
|
"--limit-order-input-token-font-weight": `${((As = (Ss = (Es = e == null ? void 0 : e.component) == null ? void 0 : Es.input) == null ? void 0 : Ss.style) == null ? void 0 : As.tokenFontWeight) ?? "var(--limit-order-font-weight-medium)"}`,
|
|
21793
21797
|
//input-button
|
|
@@ -22309,7 +22313,7 @@ const Cg = (t) => ({
|
|
|
22309
22313
|
const { chainId: t, address: e } = se(), { exitFeeNumber: n } = nm({
|
|
22310
22314
|
address: e,
|
|
22311
22315
|
chainId: t
|
|
22312
|
-
}), [r] = be(), [a, o] = Le(), s =
|
|
22316
|
+
}), [r] = be(), [a, o] = Le(), s = rn({ address: e, chainId: t }), i = Qn({
|
|
22313
22317
|
address: a.address,
|
|
22314
22318
|
chainId: t
|
|
22315
22319
|
});
|
|
@@ -22331,7 +22335,7 @@ const Cg = (t) => ({
|
|
|
22331
22335
|
o
|
|
22332
22336
|
]);
|
|
22333
22337
|
}, tk = () => {
|
|
22334
|
-
const { chainId: t } = se(), { stablePrecision: e, defaultPrecision: n } = $e(), [{ symbol: r, address: a }] = be(), o = Kn({ symbol: r, address: a }), s =
|
|
22338
|
+
const { chainId: t } = se(), { stablePrecision: e, defaultPrecision: n } = $e(), [{ symbol: r, address: a }] = be(), o = Kn({ symbol: r, address: a }), s = rn({ address: a, chainId: t }) ?? "";
|
|
22335
22339
|
return {
|
|
22336
22340
|
formattedBalance: `${H0(o, r === "USDC" ? e : n)} ${r}`,
|
|
22337
22341
|
formattedPrice: +o > 0 && s ? `≈${lt({
|
|
@@ -22378,7 +22382,7 @@ const Cg = (t) => ({
|
|
|
22378
22382
|
requiresLeveragedCollateralLiquidity: !1,
|
|
22379
22383
|
leveragedCollateralValueFormatted: "$0"
|
|
22380
22384
|
}, ld = (t) => X(t.amount).shiftedBy(-t.precision).times(t.rate).shiftedBy(-ne).toNumber(), ok = () => {
|
|
22381
|
-
const t = se(), e = Kl(t), [n] = be(), r =
|
|
22385
|
+
const t = se(), e = Kl(t), [n] = be(), r = rn(t), a = e.find(
|
|
22382
22386
|
({ tokenAddress: d, amount: f }) => sd.some(
|
|
22383
22387
|
(p) => p.isLeveragedAsset(d) && f !== "0"
|
|
22384
22388
|
)
|
|
@@ -22505,7 +22509,7 @@ const Cg = (t) => ({
|
|
|
22505
22509
|
const { address: t, chainId: e } = se(), [n, r] = be(), a = Kn({
|
|
22506
22510
|
symbol: n.symbol,
|
|
22507
22511
|
address: n.address
|
|
22508
|
-
}), o =
|
|
22512
|
+
}), o = rn({ address: t, chainId: e });
|
|
22509
22513
|
return {
|
|
22510
22514
|
...n,
|
|
22511
22515
|
updater: r,
|
|
@@ -22585,7 +22589,7 @@ const Cg = (t) => ({
|
|
|
22585
22589
|
tooltipText: e,
|
|
22586
22590
|
label: t.maxSlippage,
|
|
22587
22591
|
value: /* @__PURE__ */ F("div", { className: "dtw-flex dtw-gap-1", children: [
|
|
22588
|
-
r && /* @__PURE__ */ m(
|
|
22592
|
+
r && /* @__PURE__ */ m(Or, { className: "dtw-stroke-[color:var(--panel-accent-from-color)] dtw-h-[var(--panel-icon-secondary-size)] sm:dtw-h-[var(--panel-icon-secondary-size-sm)] dtw-w-[var(--panel-icon-secondary-size)] sm:dtw-w-[var(--panel-icon-secondary-size-sm)]" }),
|
|
22589
22593
|
/* @__PURE__ */ m(
|
|
22590
22594
|
"span",
|
|
22591
22595
|
{
|
|
@@ -22658,7 +22662,7 @@ const Cg = (t) => ({
|
|
|
22658
22662
|
/* @__PURE__ */ m("div", { className: "dtw-bg-[var(--panel-tab-list-bg)] dtw-rounded-[var(--panel-tab-list-radius)] dtw-px-[var(--panel-tab-list-px)] dtw-py-[var(--panel-tab-list-py)]", children: Pl.map((e) => /* @__PURE__ */ m(lL, { tradingType: e }, e)) }),
|
|
22659
22663
|
t
|
|
22660
22664
|
] }), Tk = () => {
|
|
22661
|
-
const t = se(), [e] = pm(), { isAllAssetsWithdrawOptionDefault: n } = $e(), { data: r = [] } = Zn(), a = r.length > 0, { data: o } = Sb(t), s =
|
|
22665
|
+
const t = se(), [e] = pm(), { isAllAssetsWithdrawOptionDefault: n } = $e(), { data: r = [] } = Zn(), a = r.length > 0, { data: o } = Sb(t), s = Cr()[1], i = be()[1], l = Le()[1], c = () => {
|
|
22662
22666
|
i({
|
|
22663
22667
|
...e,
|
|
22664
22668
|
value: "",
|
|
@@ -22698,7 +22702,7 @@ const Cg = (t) => ({
|
|
|
22698
22702
|
(t, e, n) => (t[n] = e, t),
|
|
22699
22703
|
{}
|
|
22700
22704
|
), Sk = () => {
|
|
22701
|
-
const [t] =
|
|
22705
|
+
const [t] = Cr(), e = se(), { standalone: n } = $e();
|
|
22702
22706
|
xk();
|
|
22703
22707
|
const r = Tk(), a = (o) => {
|
|
22704
22708
|
const s = Ek[o];
|
|
@@ -22740,7 +22744,7 @@ const Cg = (t) => ({
|
|
|
22740
22744
|
children: t,
|
|
22741
22745
|
config: e
|
|
22742
22746
|
}) => {
|
|
22743
|
-
var n, r, a, o, s, i, l, c, u, d, f, p, y, b, x, _, T, O, N, k, M, W, h, v, g, D, A, I, S, E, C, R, L, $, H, j, Q, V, ie, z, ee, ae, re, xe, ut, Pe, dt, He, Fe, Te,
|
|
22747
|
+
var n, r, a, o, s, i, l, c, u, d, f, p, y, b, x, _, T, O, N, k, M, W, h, v, g, D, A, I, S, E, C, R, L, $, H, j, Q, V, ie, z, ee, ae, re, xe, ut, Pe, dt, He, Fe, Te, an, on, er, tr, yt, Wt, bn, gn, sn, Tn, xn, En, Ut, fa, ha, nr, ya, wa, Sn, rr, Dr, Ir, wt, Ht, va, _r, Lr, ba, ga, Ta, ar, ln, or, zt, sr, cn, xa, Ea, Sa, Aa, Ca, An, ir, Nr, _t, Pa, Oa, Da, Ia, _a, vt, La, Na, Ra, ka, $a, bt, Ma, Ba, Fa, Wa, Ua, un, Ha, za, gt, Va, Ga, ja, Ya, qa, Ka, Cn, Rr, Xa, Qa, lr, Za, Ja, eo, to, no, ro, ao, oo, so, io, lo, kr, co, $r, uo, po, Pn, mo, Vt, St, fo, Mr, On, ho, yo, wo, Br, Fr, vo, Dn, Lt, bo, cr, Wr, Ur, Nt, Hr, go, zr, ur, In, _n, dr, To, xo, Eo, So, pr, Ao, Co, Po, w, P, U, Y, ce, J, he, Se, ge, We, De, Ne, ze, nt, rt, At, Tt, Rt, Vr, Ln, Nn, Ts, xs, Es, Ss, As, Cs, Ps, Os, Ds, Is, _s, Ls, Ns, Rs, ks, $s, Ms, Bs, Fs, Ws, Us, Hs, zs, Vs, Gs, js, Ys, qs, Ks, Xs, Qs, Zs, Js, ei, ti, ni, ri, ai, oi, si, ii, li, ci, ui, di, pi, mi, fi, hi, yi, wi, vi, bi, gi, Ti, xi, Ei, Si, Ai, Ci, Pi, Oi, Di, Ii, _i, Li, Ni, Ri, ki, $i, Mi, Bi, Fi, Wi, Ui, Hi, zi, Vi, Gi, ji, Yi, qi, Ki, vm, bm, gm, Tm, xm, Em, Sm, Am, Cm, Pm, Om, Dm, Im, _m, Lm, Nm, Rm, km, $m, Mm, Bm, Fm, Wm, Um, Hm, zm, Vm, Gm, jm, Ym, qm, Km, Xm, Qm, Zm, Jm, ef, tf, nf, rf, af, of, sf, lf, cf, uf, df, pf, mf, ff, hf, yf, wf, vf, bf, gf, Tf, xf, Ef, Sf, Af, Cf, Pf, Of, Df, If, _f, Lf, Nf, Rf, kf, $f, Mf, Bf, Ff, Wf, Uf, Hf, zf, Vf, Gf, jf, Yf, qf, Kf, Xf, Qf, Zf, Jf, eh, th, nh, rh, ah, oh, sh, ih, lh, ch, uh, dh, ph, mh, fh, hh, yh, wh, vh, bh;
|
|
22744
22748
|
return /* @__PURE__ */ m(
|
|
22745
22749
|
"div",
|
|
22746
22750
|
{
|
|
@@ -22779,37 +22783,37 @@ const Cg = (t) => ({
|
|
|
22779
22783
|
//scrollbar
|
|
22780
22784
|
"--panel-scrollbar-color": `${((Fe = (He = e == null ? void 0 : e.global) == null ? void 0 : He.color) == null ? void 0 : Fe.colorScrollbar) ?? `${te.GREEN.DEFAULT}80`}`,
|
|
22781
22785
|
//global-size
|
|
22782
|
-
"--panel-font-size": `${((
|
|
22783
|
-
"--panel-line-height": `${((er = (
|
|
22786
|
+
"--panel-font-size": `${((an = (Te = e == null ? void 0 : e.global) == null ? void 0 : Te.size) == null ? void 0 : an.fontSizeBase) ?? "16px"}`,
|
|
22787
|
+
"--panel-line-height": `${((er = (on = e == null ? void 0 : e.global) == null ? void 0 : on.size) == null ? void 0 : er.lineHeightBase) ?? "24px"}`,
|
|
22784
22788
|
"--panel-font-size-lg": `${((yt = (tr = e == null ? void 0 : e.global) == null ? void 0 : tr.size) == null ? void 0 : yt.fontSizeLg) ?? "18px"}`,
|
|
22785
22789
|
"--panel-line-height-lg": `${((bn = (Wt = e == null ? void 0 : e.global) == null ? void 0 : Wt.size) == null ? void 0 : bn.lineHeightLg) ?? "28px"}`,
|
|
22786
|
-
"--panel-font-size-sm": `${((
|
|
22790
|
+
"--panel-font-size-sm": `${((sn = (gn = e == null ? void 0 : e.global) == null ? void 0 : gn.size) == null ? void 0 : sn.fontSizeSm) ?? "14px"}`,
|
|
22787
22791
|
"--panel-line-height-sm": `${((xn = (Tn = e == null ? void 0 : e.global) == null ? void 0 : Tn.size) == null ? void 0 : xn.lineHeightSm) ?? "20px"}`,
|
|
22788
22792
|
"--panel-font-size-xs": `${((Ut = (En = e == null ? void 0 : e.global) == null ? void 0 : En.size) == null ? void 0 : Ut.fontSizeXs) ?? "12px"}`,
|
|
22789
22793
|
"--panel-line-height-xs": `${((ha = (fa = e == null ? void 0 : e.global) == null ? void 0 : fa.size) == null ? void 0 : ha.lineHeightXs) ?? "16px"}`,
|
|
22790
22794
|
//global-style
|
|
22791
22795
|
"--panel-font-weight-light": `${((ya = (nr = e == null ? void 0 : e.global) == null ? void 0 : nr.style) == null ? void 0 : ya.fontWeightLight) ?? 300}`,
|
|
22792
22796
|
"--panel-font-weight-medium": `${((Sn = (wa = e == null ? void 0 : e.global) == null ? void 0 : wa.style) == null ? void 0 : Sn.fontWeightMedium) ?? 500}`,
|
|
22793
|
-
"--panel-font-weight-bold": `${((
|
|
22794
|
-
"--panel-action-opacity": `${((wt = (
|
|
22797
|
+
"--panel-font-weight-bold": `${((Dr = (rr = e == null ? void 0 : e.global) == null ? void 0 : rr.style) == null ? void 0 : Dr.fontWeightBold) ?? 700}`,
|
|
22798
|
+
"--panel-action-opacity": `${((wt = (Ir = e == null ? void 0 : e.global) == null ? void 0 : Ir.style) == null ? void 0 : wt.actionOpacity) ?? 1}`,
|
|
22795
22799
|
"--panel-action-hover-opacity": `${((va = (Ht = e == null ? void 0 : e.global) == null ? void 0 : Ht.style) == null ? void 0 : va.actionOpacityHover) ?? 0.8}`,
|
|
22796
22800
|
//label
|
|
22797
22801
|
//label-typography
|
|
22798
|
-
"--panel-label-font-size": `${((
|
|
22802
|
+
"--panel-label-font-size": `${((Lr = (_r = e == null ? void 0 : e.global) == null ? void 0 : _r.size) == null ? void 0 : Lr.labelFontSize) ?? "var(--panel-font-size-xs)"}`,
|
|
22799
22803
|
"--panel-label-line-height": `${((ga = (ba = e == null ? void 0 : e.global) == null ? void 0 : ba.size) == null ? void 0 : ga.labelLineHeight) ?? "var(--panel-line-height-xs)"}`,
|
|
22800
22804
|
//icon
|
|
22801
22805
|
//icon-sizing
|
|
22802
22806
|
"--panel-icon-size": `${((ar = (Ta = e == null ? void 0 : e.global) == null ? void 0 : Ta.size) == null ? void 0 : ar.iconSize) ?? "20px"}`,
|
|
22803
|
-
"--panel-icon-size-sm": `${((or = (
|
|
22807
|
+
"--panel-icon-size-sm": `${((or = (ln = e == null ? void 0 : e.global) == null ? void 0 : ln.size) == null ? void 0 : or.iconSizeSm) ?? "24px"}`,
|
|
22804
22808
|
"--panel-icon-secondary-size": `${((sr = (zt = e == null ? void 0 : e.global) == null ? void 0 : zt.size) == null ? void 0 : sr.iconSecondarySize) ?? "16px"}`,
|
|
22805
|
-
"--panel-icon-secondary-size-sm": `${((xa = (
|
|
22809
|
+
"--panel-icon-secondary-size-sm": `${((xa = (cn = e == null ? void 0 : e.global) == null ? void 0 : cn.size) == null ? void 0 : xa.iconSecondarySizeSm) ?? "16px"}`,
|
|
22806
22810
|
//icon-colors
|
|
22807
22811
|
"--panel-icon-color": `${((Sa = (Ea = e == null ? void 0 : e.global) == null ? void 0 : Ea.color) == null ? void 0 : Sa.colorIcon) ?? "var(--panel-content-color)"}`,
|
|
22808
22812
|
//notification
|
|
22809
22813
|
"--panel-notification-bg": `${((An = (Ca = (Aa = e == null ? void 0 : e.component) == null ? void 0 : Aa.notification) == null ? void 0 : Ca.color) == null ? void 0 : An.colorBg) ?? "var(--panel-secondary-color)"}`,
|
|
22810
22814
|
//popup
|
|
22811
22815
|
//popup-color
|
|
22812
|
-
"--panel-popup-content-color": `${((_t = (
|
|
22816
|
+
"--panel-popup-content-color": `${((_t = (Nr = (ir = e == null ? void 0 : e.component) == null ? void 0 : ir.popup) == null ? void 0 : Nr.color) == null ? void 0 : _t.colorText) ?? "var(--panel-secondary-content-color)"}`,
|
|
22813
22817
|
"--panel-popup-bg": `${((Da = (Oa = (Pa = e == null ? void 0 : e.component) == null ? void 0 : Pa.popup) == null ? void 0 : Oa.color) == null ? void 0 : Da.colorBg) ?? "var(--panel-secondary-color)"}`,
|
|
22814
22818
|
"--panel-popup-border-color": `${((vt = (_a = (Ia = e == null ? void 0 : e.component) == null ? void 0 : Ia.popup) == null ? void 0 : _a.color) == null ? void 0 : vt.colorBorder) ?? "var(--panel-secondary-content-color)"}`,
|
|
22815
22819
|
//popup-typography
|
|
@@ -22818,7 +22822,7 @@ const Cg = (t) => ({
|
|
|
22818
22822
|
//popup-list-color
|
|
22819
22823
|
"--panel-popup-list-header-bg": `${((Ba = (Ma = (bt = e == null ? void 0 : e.component) == null ? void 0 : bt.popupList) == null ? void 0 : Ma.color) == null ? void 0 : Ba.headerBg) ?? te.DARK[800]}`,
|
|
22820
22824
|
"--panel-popup-list-item-bg-even": `${((Ua = (Wa = (Fa = e == null ? void 0 : e.component) == null ? void 0 : Fa.popupList) == null ? void 0 : Wa.color) == null ? void 0 : Ua.itemBgEven) ?? "transparent"}`,
|
|
22821
|
-
"--panel-popup-list-item-bg-odd": `${((za = (Ha = (
|
|
22825
|
+
"--panel-popup-list-item-bg-odd": `${((za = (Ha = (un = e == null ? void 0 : e.component) == null ? void 0 : un.popupList) == null ? void 0 : Ha.color) == null ? void 0 : za.itemBgOdd) ?? te.DARK[400]}`,
|
|
22822
22826
|
// tab-group
|
|
22823
22827
|
//tab-group-spacing
|
|
22824
22828
|
"--panel-tab-group-px": `${((Ga = (Va = (gt = e == null ? void 0 : e.component) == null ? void 0 : gt.tabGroup) == null ? void 0 : Va.size) == null ? void 0 : Ga.px) ?? "calc(var(--panel-spacer) * 6)"}`,
|
|
@@ -22826,7 +22830,7 @@ const Cg = (t) => ({
|
|
|
22826
22830
|
//tab-list-color
|
|
22827
22831
|
"--panel-tab-list-bg": `${((qa = (Ya = (ja = e == null ? void 0 : e.component) == null ? void 0 : ja.tabList) == null ? void 0 : Ya.color) == null ? void 0 : qa.colorBg) ?? te.DARK.DEFAULT}`,
|
|
22828
22832
|
//tab-list-spacing
|
|
22829
|
-
"--panel-tab-list-px": `${((
|
|
22833
|
+
"--panel-tab-list-px": `${((Rr = (Cn = (Ka = e == null ? void 0 : e.component) == null ? void 0 : Ka.tabList) == null ? void 0 : Cn.size) == null ? void 0 : Rr.px) ?? "calc(var(--panel-spacer) * 3)"}`,
|
|
22830
22834
|
"--panel-tab-list-py": `${((lr = (Qa = (Xa = e == null ? void 0 : e.component) == null ? void 0 : Xa.tabList) == null ? void 0 : Qa.size) == null ? void 0 : lr.py) ?? "calc(var(--panel-spacer) * 2)"}`,
|
|
22831
22835
|
//tab-list-sizing
|
|
22832
22836
|
"--panel-tab-list-radius": `${((eo = (Ja = (Za = e == null ? void 0 : e.component) == null ? void 0 : Za.tabList) == null ? void 0 : Ja.style) == null ? void 0 : eo.radius) ?? "var(--panel-radius-secondary)"}`,
|
|
@@ -22835,20 +22839,20 @@ const Cg = (t) => ({
|
|
|
22835
22839
|
"--panel-content-pt": `${((ro = (no = (to = e == null ? void 0 : e.component) == null ? void 0 : to.tabContent) == null ? void 0 : no.size) == null ? void 0 : ro.pt) ?? "calc(var(--panel-spacer) * 3)"}`,
|
|
22836
22840
|
"--panel-content-pb": "calc(var(--panel-spacer) * 9)",
|
|
22837
22841
|
"--panel-content-px": `${((so = (oo = (ao = e == null ? void 0 : e.component) == null ? void 0 : ao.tabContent) == null ? void 0 : oo.size) == null ? void 0 : so.px) ?? "0px"}`,
|
|
22838
|
-
"--panel-content-gap": `${((
|
|
22842
|
+
"--panel-content-gap": `${((kr = (lo = (io = e == null ? void 0 : e.component) == null ? void 0 : io.tabContent) == null ? void 0 : lo.size) == null ? void 0 : kr.gap) ?? "calc(var(--panel-gap) * 2)"}`,
|
|
22839
22843
|
// tab
|
|
22840
22844
|
// tab-spacing
|
|
22841
|
-
"--panel-tab-px": `${((uo = (
|
|
22845
|
+
"--panel-tab-px": `${((uo = ($r = (co = e == null ? void 0 : e.component) == null ? void 0 : co.tab) == null ? void 0 : $r.size) == null ? void 0 : uo.px) ?? "calc(var(--panel-spacer) * 9)"}`,
|
|
22842
22846
|
"--panel-tab-py": `${((mo = (Pn = (po = e == null ? void 0 : e.component) == null ? void 0 : po.tab) == null ? void 0 : Pn.size) == null ? void 0 : mo.py) ?? "calc(var(--panel-spacer) * 2)"}`,
|
|
22843
22847
|
// tab-color
|
|
22844
22848
|
"--panel-tab-bg": `${((fo = (St = (Vt = e == null ? void 0 : e.component) == null ? void 0 : Vt.tab) == null ? void 0 : St.color) == null ? void 0 : fo.colorBg) ?? "var(--panel-neutral-color)"}`,
|
|
22845
|
-
"--panel-tab-content-color": `${((ho = (On = (
|
|
22846
|
-
"--panel-tab-select-content-color": `${((
|
|
22847
|
-
"--panel-tab-hover-content-color": `${((Dn = (vo = (
|
|
22849
|
+
"--panel-tab-content-color": `${((ho = (On = (Mr = e == null ? void 0 : e.component) == null ? void 0 : Mr.tab) == null ? void 0 : On.color) == null ? void 0 : ho.colorText) ?? "var(--panel-neutral-content-color)"}`,
|
|
22850
|
+
"--panel-tab-select-content-color": `${((Br = (wo = (yo = e == null ? void 0 : e.component) == null ? void 0 : yo.tab) == null ? void 0 : wo.color) == null ? void 0 : Br.selectColorText) ?? "var(--panel-content-color)"}`,
|
|
22851
|
+
"--panel-tab-hover-content-color": `${((Dn = (vo = (Fr = e == null ? void 0 : e.component) == null ? void 0 : Fr.tab) == null ? void 0 : vo.color) == null ? void 0 : Dn.colorTextHover) ?? "var(--panel-content-hover-color)"}`,
|
|
22848
22852
|
// tab-typography
|
|
22849
22853
|
"--panel-tab-font-size": `${((cr = (bo = (Lt = e == null ? void 0 : e.component) == null ? void 0 : Lt.tab) == null ? void 0 : bo.size) == null ? void 0 : cr.fontSize) ?? "var(--panel-font-size-sm)"}`,
|
|
22850
|
-
"--panel-tab-font-weight": `${((Nt = (
|
|
22851
|
-
"--panel-tab-line-height": `${((
|
|
22854
|
+
"--panel-tab-font-weight": `${((Nt = (Ur = (Wr = e == null ? void 0 : e.component) == null ? void 0 : Wr.tab) == null ? void 0 : Ur.style) == null ? void 0 : Nt.fontWeight) ?? "var(--panel-font-weight-medium)"}`,
|
|
22855
|
+
"--panel-tab-line-height": `${((zr = (go = (Hr = e == null ? void 0 : e.component) == null ? void 0 : Hr.tab) == null ? void 0 : go.style) == null ? void 0 : zr.lineHeight) ?? "var(--panel-line-height-sm)"}`,
|
|
22852
22856
|
// balance
|
|
22853
22857
|
// balance-spacing
|
|
22854
22858
|
"--panel-balance-group-px": `${((_n = (In = (ur = e == null ? void 0 : e.component) == null ? void 0 : ur.balance) == null ? void 0 : In.size) == null ? void 0 : _n.px) ?? "calc(var(--panel-spacer) * 6)"}`,
|
|
@@ -22866,7 +22870,7 @@ const Cg = (t) => ({
|
|
|
22866
22870
|
"--panel-inputs-group-px": `${((Rt = (Tt = (At = e == null ? void 0 : e.component) == null ? void 0 : At.inputGroup) == null ? void 0 : Tt.size) == null ? void 0 : Rt.px) ?? "calc(var(--panel-spacer) * 6)"}`,
|
|
22867
22871
|
//input
|
|
22868
22872
|
//input-sizing
|
|
22869
|
-
"--panel-input-radius": `${((Nn = (Ln = (
|
|
22873
|
+
"--panel-input-radius": `${((Nn = (Ln = (Vr = e == null ? void 0 : e.component) == null ? void 0 : Vr.input) == null ? void 0 : Ln.style) == null ? void 0 : Nn.radius) ?? "var(--panel-radius)"}`,
|
|
22870
22874
|
//input-spacing
|
|
22871
22875
|
"--panel-input-group-gap": `${((Es = (xs = (Ts = e == null ? void 0 : e.component) == null ? void 0 : Ts.input) == null ? void 0 : xs.size) == null ? void 0 : Es.gap) ?? "calc(var(--panel-gap) * 2)"}`,
|
|
22872
22876
|
"--panel-input-px": `${((Cs = (As = (Ss = e == null ? void 0 : e.component) == null ? void 0 : Ss.input) == null ? void 0 : As.size) == null ? void 0 : Cs.px) ?? "calc(var(--panel-spacer) * 3)"}`,
|
|
@@ -23065,7 +23069,7 @@ const Cg = (t) => ({
|
|
|
23065
23069
|
}, _k = () => {
|
|
23066
23070
|
const t = vs(), { isModalOpen: e, pendingTransaction: n } = Jn(), { setIsModalOpen: r } = ic(), a = q(() => {
|
|
23067
23071
|
r(!0), t == null || t(ot.OPEN_LIMIT_SELL_VIEW, {
|
|
23068
|
-
[
|
|
23072
|
+
[Tr.SOURCE.NAME]: "modal"
|
|
23069
23073
|
});
|
|
23070
23074
|
}, [t, r]), o = q(() => r(!1), [r]);
|
|
23071
23075
|
return {
|
|
@@ -23184,7 +23188,7 @@ export {
|
|
|
23184
23188
|
yy as GAS_ESTIMATION_ERROR,
|
|
23185
23189
|
yP as GAS_LIMIT_BUFFER_COEFF,
|
|
23186
23190
|
TO as GMX_MARKET_ASSETS,
|
|
23187
|
-
|
|
23191
|
+
Yt as GMX_MARKET_ASSETS_MAP,
|
|
23188
23192
|
r$ as LINK_OPTIMISM,
|
|
23189
23193
|
A$ as LimitOrderModal,
|
|
23190
23194
|
Lo as MANAGER_FEE_DENOMINATOR,
|
|
@@ -23208,12 +23212,12 @@ export {
|
|
|
23208
23212
|
Jk as TBTC_BASE,
|
|
23209
23213
|
a$ as TBTC_OPTIMISM,
|
|
23210
23214
|
i$ as TBTC_POLYGON,
|
|
23211
|
-
|
|
23215
|
+
Tr as TRADING_LOG_EVENT_PARAM,
|
|
23212
23216
|
ot as TRADING_PANEL_LOG_EVENT,
|
|
23213
23217
|
d$ as TradingPanelProvider,
|
|
23214
23218
|
E$ as TradingWidget,
|
|
23215
23219
|
Qk as USDCBC_BASE,
|
|
23216
|
-
|
|
23220
|
+
yr as USDC_ARBITRUM,
|
|
23217
23221
|
rO as USDC_BASE,
|
|
23218
23222
|
oO as USDC_MAINNET,
|
|
23219
23223
|
iO as USDC_OPTIMISM,
|
|
@@ -23274,7 +23278,7 @@ export {
|
|
|
23274
23278
|
F0 as isNumeric,
|
|
23275
23279
|
xt as isZeroAddress,
|
|
23276
23280
|
Bp as normalizeNumber,
|
|
23277
|
-
|
|
23281
|
+
Jt as optimism,
|
|
23278
23282
|
Vn as polygon,
|
|
23279
23283
|
$O as removeInsignificantTrailingZeros,
|
|
23280
23284
|
Cd as shiftBy,
|
|
@@ -23325,13 +23329,13 @@ export {
|
|
|
23325
23329
|
qO as useOnTransactionSuccess,
|
|
23326
23330
|
Kl as usePoolComposition,
|
|
23327
23331
|
P_ as usePoolCompositionWithFraction,
|
|
23328
|
-
|
|
23332
|
+
Pr as usePoolDynamic,
|
|
23329
23333
|
nm as usePoolFees,
|
|
23330
23334
|
Au as usePoolManagerDynamic,
|
|
23331
23335
|
Eb as usePoolManagerLogicData,
|
|
23332
23336
|
vb as usePoolManagerStatic,
|
|
23333
23337
|
Su as usePoolStatic,
|
|
23334
|
-
|
|
23338
|
+
rn as usePoolTokenPrice,
|
|
23335
23339
|
iN as useProjectedEarningsCore,
|
|
23336
23340
|
_$ as usePublicClient,
|
|
23337
23341
|
Yb as useRawAssetPrice,
|
|
@@ -23355,7 +23359,7 @@ export {
|
|
|
23355
23359
|
tt as useTradingPanelSettings,
|
|
23356
23360
|
It as useTradingPanelState,
|
|
23357
23361
|
qn as useTradingPanelTransactions,
|
|
23358
|
-
|
|
23362
|
+
Cr as useTradingPanelType,
|
|
23359
23363
|
ML as useTradingResultHandling,
|
|
23360
23364
|
Pu as useTradingSettleHandler,
|
|
23361
23365
|
v$ as useUpdatePoolConfig,
|