@dhedge/trading-widget 3.11.1 → 3.11.2

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/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as ye from "react";
2
2
  import Re, { useRef as Ct, useCallback as Ge, useEffect as pt, useState as Lt, useMemo as $e, useLayoutEffect as lC, useContext as Qt, createContext as dn, forwardRef as h3, Fragment as fo, isValidElement as ok, cloneElement as v3, createElement as y3, useId as Fi, useReducer as Rm, useSyncExternalStore as g3, createRef as w3, Children as b3 } from "react";
3
3
  import { erc20Abi as kd, stringToHex as sC, encodeAbiParameters as xO, formatUnits as vc, encodeFunctionData as T3, formatEther as uC, getAddress as Rb, SwitchChainError as SO, numberToHex as EO, UserRejectedRequestError as Ed, withRetry as x3, withTimeout as S3, ResourceUnavailableRpcError as i1, encodePacked as E3, keccak256 as C3 } from "viem";
4
- import { decodeErrorResult as MZ, encodeFunctionData as IZ, erc20Abi as FZ, formatEther as $Z, formatUnits as BZ, hexToString as UZ, trim as jZ } from "viem";
4
+ import { decodeErrorResult as PZ, encodeFunctionData as MZ, erc20Abi as IZ, formatEther as FZ, formatUnits as $Z, hexToString as BZ, trim as UZ } from "viem";
5
5
  import { useAccount as lk, useConfig as A3, useSwitchChain as D3, useReadContract as Om, useBalance as R3, useWalletClient as O3, usePublicClient as cC, useWriteContract as _3, useEstimateFeesPerGas as k3, useBlockNumber as N3, useReadContracts as Xl, useConnect as sk, useWaitForTransactionReceipt as uk, useSimulateContract as L3 } from "wagmi";
6
- import { useBlockNumber as HZ, useConnect as WZ, useDisconnect as VZ, usePublicClient as GZ, useReadContract as YZ, useReadContracts as qZ, useSendTransaction as QZ, useWaitForTransactionReceipt as KZ, useWalletClient as XZ, useWriteContract as ZZ } from "wagmi";
6
+ import { useBlockNumber as zZ, useConnect as HZ, useDisconnect as WZ, usePublicClient as VZ, useReadContract as GZ, useReadContracts as YZ, useSendTransaction as qZ, useWaitForTransactionReceipt as QZ, useWalletClient as KZ, useWriteContract as XZ } from "wagmi";
7
7
  import { useQuery as dC, useQueryClient as fC } from "@tanstack/react-query";
8
8
  var Ob = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
9
  function Hg(e) {
@@ -11918,7 +11918,7 @@ Check the render method of \`` + n + "`." : "";
11918
11918
  };
11919
11919
  }
11920
11920
  }
11921
- function jX(n) {
11921
+ function UX(n) {
11922
11922
  return n;
11923
11923
  }
11924
11924
  function yI(n) {
@@ -14148,9 +14148,9 @@ Incoming: %s`, Se, "[" + r.join(", ") + "]", "[" + n.join(", ") + "]");
14148
14148
  }
14149
14149
  return [C, y];
14150
14150
  }
14151
- function zX(n, r, s) {
14151
+ function jX(n, r, s) {
14152
14152
  }
14153
- function HX(n, r, s) {
14153
+ function zX(n, r, s) {
14154
14154
  }
14155
14155
  function CS(n, r, s) {
14156
14156
  var c = Mn, m = ac(), y, x = Oi();
@@ -22855,12 +22855,12 @@ function Jj() {
22855
22855
  const xm = Math.min, uo = Math.max, Mg = Math.round, Pb = Math.floor, hc = (e) => ({
22856
22856
  x: e,
22857
22857
  y: e
22858
- }), e4 = {
22858
+ }), ez = {
22859
22859
  left: "right",
22860
22860
  right: "left",
22861
22861
  bottom: "top",
22862
22862
  top: "bottom"
22863
- }, t4 = {
22863
+ }, tz = {
22864
22864
  start: "end",
22865
22865
  end: "start"
22866
22866
  };
@@ -22888,20 +22888,20 @@ function Rd(e) {
22888
22888
  function hN(e) {
22889
22889
  return pN(Rd(e));
22890
22890
  }
22891
- function n4(e, t, a) {
22891
+ function nz(e, t, a) {
22892
22892
  a === void 0 && (a = !1);
22893
22893
  const o = Xg(e), u = hN(e), f = mN(u);
22894
22894
  let p = u === "x" ? o === (a ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
22895
22895
  return t.reference[f] > t.floating[f] && (p = Jb(p)), [p, Jb(p)];
22896
22896
  }
22897
- function r4(e) {
22897
+ function rz(e) {
22898
22898
  const t = Jb(e);
22899
22899
  return [K1(e), t, K1(t)];
22900
22900
  }
22901
22901
  function K1(e) {
22902
- return e.replace(/start|end/g, (t) => t4[t]);
22902
+ return e.replace(/start|end/g, (t) => tz[t]);
22903
22903
  }
22904
- function a4(e, t, a) {
22904
+ function az(e, t, a) {
22905
22905
  const o = ["left", "right"], u = ["right", "left"], f = ["top", "bottom"], p = ["bottom", "top"];
22906
22906
  switch (e) {
22907
22907
  case "top":
@@ -22914,15 +22914,15 @@ function a4(e, t, a) {
22914
22914
  return [];
22915
22915
  }
22916
22916
  }
22917
- function i4(e, t, a, o) {
22917
+ function iz(e, t, a, o) {
22918
22918
  const u = Xg(e);
22919
- let f = a4(Uf(e), a === "start", o);
22919
+ let f = az(Uf(e), a === "start", o);
22920
22920
  return u && (f = f.map((p) => p + "-" + u), t && (f = f.concat(f.map(K1)))), f;
22921
22921
  }
22922
22922
  function Jb(e) {
22923
- return e.replace(/left|right|bottom|top/g, (t) => e4[t]);
22923
+ return e.replace(/left|right|bottom|top/g, (t) => ez[t]);
22924
22924
  }
22925
- function o4(e) {
22925
+ function oz(e) {
22926
22926
  return {
22927
22927
  top: 0,
22928
22928
  right: 0,
@@ -22931,8 +22931,8 @@ function o4(e) {
22931
22931
  ...e
22932
22932
  };
22933
22933
  }
22934
- function l4(e) {
22935
- return typeof e != "number" ? o4(e) : {
22934
+ function lz(e) {
22935
+ return typeof e != "number" ? oz(e) : {
22936
22936
  top: e,
22937
22937
  right: e,
22938
22938
  bottom: e,
@@ -23005,7 +23005,7 @@ function i_(e, t, a) {
23005
23005
  }
23006
23006
  return D;
23007
23007
  }
23008
- const s4 = async (e, t, a) => {
23008
+ const sz = async (e, t, a) => {
23009
23009
  const {
23010
23010
  placement: o = "bottom",
23011
23011
  strategy: u = "absolute",
@@ -23082,7 +23082,7 @@ async function _T(e, t) {
23082
23082
  elementContext: E = "floating",
23083
23083
  altBoundary: R = !1,
23084
23084
  padding: D = 0
23085
- } = xv(t, e), _ = l4(D), B = h[R ? E === "floating" ? "reference" : "floating" : E], X = eT(await f.getClippingRect({
23085
+ } = xv(t, e), _ = lz(D), B = h[R ? E === "floating" ? "reference" : "floating" : E], X = eT(await f.getClippingRect({
23086
23086
  element: (a = await (f.isElement == null ? void 0 : f.isElement(B))) == null || a ? B : B.contextElement || await (f.getDocumentElement == null ? void 0 : f.getDocumentElement(h.floating)),
23087
23087
  boundary: w,
23088
23088
  rootBoundary: T,
@@ -23111,7 +23111,7 @@ async function _T(e, t) {
23111
23111
  right: (ne.right - X.right + _.right) / Z.x
23112
23112
  };
23113
23113
  }
23114
- const u4 = function(e) {
23114
+ const uz = function(e) {
23115
23115
  return e === void 0 && (e = {}), {
23116
23116
  name: "flip",
23117
23117
  options: e,
@@ -23135,12 +23135,12 @@ const u4 = function(e) {
23135
23135
  } = xv(e, t);
23136
23136
  if ((a = f.arrow) != null && a.alignmentOffset)
23137
23137
  return {};
23138
- const X = Uf(u), F = Rd(h), G = Uf(h) === h, Z = await (g.isRTL == null ? void 0 : g.isRTL(w.floating)), ne = R || (G || !P ? [Jb(h)] : r4(h)), ue = _ !== "none";
23139
- !R && ue && ne.push(...i4(h, P, _, Z));
23138
+ const X = Uf(u), F = Rd(h), G = Uf(h) === h, Z = await (g.isRTL == null ? void 0 : g.isRTL(w.floating)), ne = R || (G || !P ? [Jb(h)] : rz(h)), ue = _ !== "none";
23139
+ !R && ue && ne.push(...iz(h, P, _, Z));
23140
23140
  const se = [h, ...ne], k = await _T(t, B), M = [];
23141
23141
  let I = ((o = f.flip) == null ? void 0 : o.overflows) || [];
23142
23142
  if (T && M.push(k[X]), E) {
23143
- const V = n4(u, p, Z);
23143
+ const V = nz(u, p, Z);
23144
23144
  M.push(k[V[0]], k[V[1]]);
23145
23145
  }
23146
23146
  if (I = [...I, {
@@ -23193,7 +23193,7 @@ const u4 = function(e) {
23193
23193
  }
23194
23194
  };
23195
23195
  };
23196
- async function c4(e, t) {
23196
+ async function cz(e, t) {
23197
23197
  const {
23198
23198
  placement: a,
23199
23199
  platform: o,
@@ -23220,7 +23220,7 @@ async function c4(e, t) {
23220
23220
  y: D * T
23221
23221
  };
23222
23222
  }
23223
- const d4 = function(e) {
23223
+ const dz = function(e) {
23224
23224
  return e === void 0 && (e = 0), {
23225
23225
  name: "offset",
23226
23226
  options: e,
@@ -23231,7 +23231,7 @@ const d4 = function(e) {
23231
23231
  y: f,
23232
23232
  placement: p,
23233
23233
  middlewareData: h
23234
- } = t, g = await c4(t, e);
23234
+ } = t, g = await cz(t, e);
23235
23235
  return p === ((a = h.offset) == null ? void 0 : a.placement) && (o = h.arrow) != null && o.alignmentOffset ? {} : {
23236
23236
  x: u + g.x,
23237
23237
  y: f + g.y,
@@ -23242,7 +23242,7 @@ const d4 = function(e) {
23242
23242
  };
23243
23243
  }
23244
23244
  };
23245
- }, f4 = function(e) {
23245
+ }, fz = function(e) {
23246
23246
  return e === void 0 && (e = {}), {
23247
23247
  name: "shift",
23248
23248
  options: e,
@@ -23298,7 +23298,7 @@ const d4 = function(e) {
23298
23298
  };
23299
23299
  }
23300
23300
  };
23301
- }, p4 = function(e) {
23301
+ }, pz = function(e) {
23302
23302
  return e === void 0 && (e = {}), {
23303
23303
  name: "size",
23304
23304
  options: e,
@@ -23367,15 +23367,15 @@ function cv(e) {
23367
23367
  y: h
23368
23368
  };
23369
23369
  }
23370
- const m4 = /* @__PURE__ */ hc(0);
23370
+ const mz = /* @__PURE__ */ hc(0);
23371
23371
  function yN(e) {
23372
23372
  const t = Ql(e);
23373
- return !LC() || !t.visualViewport ? m4 : {
23373
+ return !LC() || !t.visualViewport ? mz : {
23374
23374
  x: t.visualViewport.offsetLeft,
23375
23375
  y: t.visualViewport.offsetTop
23376
23376
  };
23377
23377
  }
23378
- function h4(e, t, a) {
23378
+ function hz(e, t, a) {
23379
23379
  return t === void 0 && (t = !1), !a || t && a !== Ql(e) ? !1 : t;
23380
23380
  }
23381
23381
  function Sm(e, t, a, o) {
@@ -23383,7 +23383,7 @@ function Sm(e, t, a, o) {
23383
23383
  const u = e.getBoundingClientRect(), f = PC(e);
23384
23384
  let p = hc(1);
23385
23385
  t && (o ? co(o) && (p = cv(o)) : p = cv(e));
23386
- const h = h4(f, a, o) ? yN(f) : hc(0);
23386
+ const h = hz(f, a, o) ? yN(f) : hc(0);
23387
23387
  let g = (u.left + h.x) / p.x, w = (u.top + h.y) / p.y, T = u.width / p.x, E = u.height / p.y;
23388
23388
  if (f) {
23389
23389
  const R = Ql(f), D = o && co(o) ? Ql(o) : o;
@@ -23415,7 +23415,7 @@ function gN(e, t, a) {
23415
23415
  y: f
23416
23416
  };
23417
23417
  }
23418
- function v4(e) {
23418
+ function vz(e) {
23419
23419
  let {
23420
23420
  elements: t,
23421
23421
  rect: a,
@@ -23442,10 +23442,10 @@ function v4(e) {
23442
23442
  y: a.y * w.y - g.scrollTop * w.y + T.y + R.y
23443
23443
  };
23444
23444
  }
23445
- function y4(e) {
23445
+ function yz(e) {
23446
23446
  return Array.from(e.getClientRects());
23447
23447
  }
23448
- function g4(e) {
23448
+ function gz(e) {
23449
23449
  const t = Tc(e), a = OT(e), o = e.ownerDocument.body, u = uo(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), f = uo(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
23450
23450
  let p = -a.scrollLeft + MC(e);
23451
23451
  const h = -a.scrollTop;
@@ -23456,7 +23456,7 @@ function g4(e) {
23456
23456
  y: h
23457
23457
  };
23458
23458
  }
23459
- function w4(e, t) {
23459
+ function wz(e, t) {
23460
23460
  const a = Ql(e), o = Tc(e), u = a.visualViewport;
23461
23461
  let f = o.clientWidth, p = o.clientHeight, h = 0, g = 0;
23462
23462
  if (u) {
@@ -23471,7 +23471,7 @@ function w4(e, t) {
23471
23471
  y: g
23472
23472
  };
23473
23473
  }
23474
- function b4(e, t) {
23474
+ function bz(e, t) {
23475
23475
  const a = Sm(e, !0, t === "fixed"), o = a.top + e.clientTop, u = a.left + e.clientLeft, f = gc(e) ? cv(e) : hc(1), p = e.clientWidth * f.x, h = e.clientHeight * f.y, g = u * f.x, w = o * f.y;
23476
23476
  return {
23477
23477
  width: p,
@@ -23483,11 +23483,11 @@ function b4(e, t) {
23483
23483
  function o_(e, t, a) {
23484
23484
  let o;
23485
23485
  if (t === "viewport")
23486
- o = w4(e, a);
23486
+ o = wz(e, a);
23487
23487
  else if (t === "document")
23488
- o = g4(Tc(e));
23488
+ o = gz(Tc(e));
23489
23489
  else if (co(t))
23490
- o = b4(t, a);
23490
+ o = bz(t, a);
23491
23491
  else {
23492
23492
  const u = yN(e);
23493
23493
  o = {
@@ -23503,7 +23503,7 @@ function wN(e, t) {
23503
23503
  const a = Bf(e);
23504
23504
  return a === t || !co(a) || yv(a) ? !1 : bu(a).position === "fixed" || wN(a, t);
23505
23505
  }
23506
- function T4(e, t) {
23506
+ function Tz(e, t) {
23507
23507
  const a = t.get(e);
23508
23508
  if (a)
23509
23509
  return a;
@@ -23516,14 +23516,14 @@ function T4(e, t) {
23516
23516
  }
23517
23517
  return t.set(e, o), o;
23518
23518
  }
23519
- function x4(e) {
23519
+ function xz(e) {
23520
23520
  let {
23521
23521
  element: t,
23522
23522
  boundary: a,
23523
23523
  rootBoundary: o,
23524
23524
  strategy: u
23525
23525
  } = e;
23526
- const p = [...a === "clippingAncestors" ? RT(t) ? [] : T4(t, this._c) : [].concat(a), o], h = p[0], g = p.reduce((w, T) => {
23526
+ const p = [...a === "clippingAncestors" ? RT(t) ? [] : Tz(t, this._c) : [].concat(a), o], h = p[0], g = p.reduce((w, T) => {
23527
23527
  const E = o_(t, T, u);
23528
23528
  return w.top = uo(E.top, w.top), w.right = xm(E.right, w.right), w.bottom = xm(E.bottom, w.bottom), w.left = uo(E.left, w.left), w;
23529
23529
  }, o_(t, h, u));
@@ -23534,7 +23534,7 @@ function x4(e) {
23534
23534
  y: g.top
23535
23535
  };
23536
23536
  }
23537
- function S4(e) {
23537
+ function Sz(e) {
23538
23538
  const {
23539
23539
  width: t,
23540
23540
  height: a
@@ -23544,7 +23544,7 @@ function S4(e) {
23544
23544
  height: a
23545
23545
  };
23546
23546
  }
23547
- function E4(e, t, a) {
23547
+ function Ez(e, t, a) {
23548
23548
  const o = gc(t), u = Tc(t), f = a === "fixed", p = Sm(e, !0, f, t);
23549
23549
  let h = {
23550
23550
  scrollLeft: 0,
@@ -23597,10 +23597,10 @@ function bN(e, t) {
23597
23597
  o = l_(o, t);
23598
23598
  return o && yv(o) && h1(o) && !NC(o) ? a : o || Zj(e) || a;
23599
23599
  }
23600
- const C4 = async function(e) {
23600
+ const Cz = async function(e) {
23601
23601
  const t = this.getOffsetParent || bN, a = this.getDimensions, o = await a(e.floating);
23602
23602
  return {
23603
- reference: E4(e.reference, await t(e.floating), e.strategy),
23603
+ reference: Ez(e.reference, await t(e.floating), e.strategy),
23604
23604
  floating: {
23605
23605
  x: 0,
23606
23606
  y: 0,
@@ -23609,25 +23609,25 @@ const C4 = async function(e) {
23609
23609
  }
23610
23610
  };
23611
23611
  };
23612
- function A4(e) {
23612
+ function Az(e) {
23613
23613
  return bu(e).direction === "rtl";
23614
23614
  }
23615
- const D4 = {
23616
- convertOffsetParentRelativeRectToViewportRelativeRect: v4,
23615
+ const Dz = {
23616
+ convertOffsetParentRelativeRectToViewportRelativeRect: vz,
23617
23617
  getDocumentElement: Tc,
23618
- getClippingRect: x4,
23618
+ getClippingRect: xz,
23619
23619
  getOffsetParent: bN,
23620
- getElementRects: C4,
23621
- getClientRects: y4,
23622
- getDimensions: S4,
23620
+ getElementRects: Cz,
23621
+ getClientRects: yz,
23622
+ getDimensions: Sz,
23623
23623
  getScale: cv,
23624
23624
  isElement: co,
23625
- isRTL: A4
23625
+ isRTL: Az
23626
23626
  };
23627
23627
  function TN(e, t) {
23628
23628
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
23629
23629
  }
23630
- function R4(e, t) {
23630
+ function Rz(e, t) {
23631
23631
  let a = null, o;
23632
23632
  const u = Tc(e);
23633
23633
  function f() {
@@ -23673,7 +23673,7 @@ function R4(e, t) {
23673
23673
  }
23674
23674
  return p(!0), f;
23675
23675
  }
23676
- function O4(e, t, a, o) {
23676
+ function Oz(e, t, a, o) {
23677
23677
  o === void 0 && (o = {});
23678
23678
  const {
23679
23679
  ancestorScroll: u = !0,
@@ -23687,7 +23687,7 @@ function O4(e, t, a, o) {
23687
23687
  passive: !0
23688
23688
  }), f && X.addEventListener("resize", a);
23689
23689
  });
23690
- const E = w && h ? R4(w, a) : null;
23690
+ const E = w && h ? Rz(w, a) : null;
23691
23691
  let R = -1, D = null;
23692
23692
  p && (D = new ResizeObserver((X) => {
23693
23693
  let [F] = X;
@@ -23709,21 +23709,21 @@ function O4(e, t, a, o) {
23709
23709
  }), E == null || E(), (X = D) == null || X.disconnect(), D = null, g && cancelAnimationFrame(_);
23710
23710
  };
23711
23711
  }
23712
- const v1 = _T, _4 = d4, k4 = f4, N4 = u4, L4 = p4, P4 = (e, t, a) => {
23712
+ const v1 = _T, _z = dz, kz = fz, Nz = uz, Lz = pz, Pz = (e, t, a) => {
23713
23713
  const o = /* @__PURE__ */ new Map(), u = {
23714
- platform: D4,
23714
+ platform: Dz,
23715
23715
  ...a
23716
23716
  }, f = {
23717
23717
  ...u.platform,
23718
23718
  _c: o
23719
23719
  };
23720
- return s4(e, t, {
23720
+ return sz(e, t, {
23721
23721
  ...u,
23722
23722
  platform: f
23723
23723
  });
23724
23724
  };
23725
- var M4 = typeof document < "u", I4 = function() {
23726
- }, zb = M4 ? lC : I4;
23725
+ var Mz = typeof document < "u", Iz = function() {
23726
+ }, zb = Mz ? lC : Iz;
23727
23727
  function tT(e, t) {
23728
23728
  if (e === t)
23729
23729
  return !0;
@@ -23767,7 +23767,7 @@ function y1(e) {
23767
23767
  t.current = e;
23768
23768
  }), t;
23769
23769
  }
23770
- function F4(e) {
23770
+ function Fz(e) {
23771
23771
  e === void 0 && (e = {});
23772
23772
  const {
23773
23773
  placement: t = "bottom",
@@ -23802,7 +23802,7 @@ function F4(e) {
23802
23802
  strategy: a,
23803
23803
  middleware: R
23804
23804
  };
23805
- q.current && (U.platform = q.current), P4(ue.current, se.current, U).then((te) => {
23805
+ q.current && (U.platform = q.current), Pz(ue.current, se.current, U).then((te) => {
23806
23806
  const ae = {
23807
23807
  ...te,
23808
23808
  // The floating element's position may be recomputed while it's closed
@@ -23870,26 +23870,26 @@ function F4(e) {
23870
23870
  }), [T, z, H, Y, ee]);
23871
23871
  }
23872
23872
  const SN = (e, t) => ({
23873
- ..._4(e),
23873
+ ..._z(e),
23874
23874
  options: [e, t]
23875
- }), $4 = (e, t) => ({
23876
- ...k4(e),
23875
+ }), $z = (e, t) => ({
23876
+ ...kz(e),
23877
23877
  options: [e, t]
23878
- }), B4 = (e, t) => ({
23879
- ...N4(e),
23878
+ }), Bz = (e, t) => ({
23879
+ ...Nz(e),
23880
23880
  options: [e, t]
23881
- }), U4 = (e, t) => ({
23882
- ...L4(e),
23881
+ }), Uz = (e, t) => ({
23882
+ ...Lz(e),
23883
23883
  options: [e, t]
23884
23884
  }), EN = {
23885
23885
  ...ye
23886
- }, j4 = EN.useInsertionEffect, z4 = j4 || ((e) => e());
23886
+ }, jz = EN.useInsertionEffect, zz = jz || ((e) => e());
23887
23887
  function CN(e) {
23888
23888
  const t = ye.useRef(() => {
23889
23889
  if (process.env.NODE_ENV !== "production")
23890
23890
  throw new Error("Cannot call an event handler while rendering.");
23891
23891
  });
23892
- return z4(() => {
23892
+ return zz(() => {
23893
23893
  t.current = e;
23894
23894
  }), ye.useCallback(function() {
23895
23895
  for (var a = arguments.length, o = new Array(a), u = 0; u < a; u++)
@@ -23898,13 +23898,13 @@ function CN(e) {
23898
23898
  }, []);
23899
23899
  }
23900
23900
  var X1 = typeof document < "u" ? lC : pt;
23901
- let u_ = !1, H4 = 0;
23901
+ let u_ = !1, Hz = 0;
23902
23902
  const c_ = () => (
23903
23903
  // Ensure the id is unique with multiple independent versions of Floating UI
23904
23904
  // on <React 18
23905
- "floating-ui-" + Math.random().toString(36).slice(2, 6) + H4++
23905
+ "floating-ui-" + Math.random().toString(36).slice(2, 6) + Hz++
23906
23906
  );
23907
- function W4() {
23907
+ function Wz() {
23908
23908
  const [e, t] = ye.useState(() => u_ ? c_() : void 0);
23909
23909
  return X1(() => {
23910
23910
  e == null && t(c_());
@@ -23912,10 +23912,10 @@ function W4() {
23912
23912
  u_ = !0;
23913
23913
  }, []), e;
23914
23914
  }
23915
- const V4 = EN.useId, G4 = V4 || W4;
23915
+ const Vz = EN.useId, Gz = Vz || Wz;
23916
23916
  let Ig;
23917
23917
  process.env.NODE_ENV !== "production" && (Ig = /* @__PURE__ */ new Set());
23918
- function Y4() {
23918
+ function Yz() {
23919
23919
  for (var e, t = arguments.length, a = new Array(t), o = 0; o < t; o++)
23920
23920
  a[o] = arguments[o];
23921
23921
  const u = "Floating UI: " + a.join(" ");
@@ -23924,7 +23924,7 @@ function Y4() {
23924
23924
  (f = Ig) == null || f.add(u), console.warn(u);
23925
23925
  }
23926
23926
  }
23927
- function q4() {
23927
+ function qz() {
23928
23928
  for (var e, t = arguments.length, a = new Array(t), o = 0; o < t; o++)
23929
23929
  a[o] = arguments[o];
23930
23930
  const u = "Floating UI: " + a.join(" ");
@@ -23933,7 +23933,7 @@ function q4() {
23933
23933
  (f = Ig) == null || f.add(u), console.error(u);
23934
23934
  }
23935
23935
  }
23936
- function Q4() {
23936
+ function Qz() {
23937
23937
  const e = /* @__PURE__ */ new Map();
23938
23938
  return {
23939
23939
  emit(t, a) {
@@ -23949,19 +23949,19 @@ function Q4() {
23949
23949
  }
23950
23950
  };
23951
23951
  }
23952
- const K4 = /* @__PURE__ */ ye.createContext(null), X4 = /* @__PURE__ */ ye.createContext(null), Z4 = () => {
23952
+ const Kz = /* @__PURE__ */ ye.createContext(null), Xz = /* @__PURE__ */ ye.createContext(null), Zz = () => {
23953
23953
  var e;
23954
- return ((e = ye.useContext(K4)) == null ? void 0 : e.id) || null;
23955
- }, J4 = () => ye.useContext(X4), ez = "data-floating-ui-focusable";
23956
- function tz(e) {
23954
+ return ((e = ye.useContext(Kz)) == null ? void 0 : e.id) || null;
23955
+ }, Jz = () => ye.useContext(Xz), e4 = "data-floating-ui-focusable";
23956
+ function t4(e) {
23957
23957
  const {
23958
23958
  open: t = !1,
23959
23959
  onOpenChange: a,
23960
23960
  elements: o
23961
- } = e, u = G4(), f = ye.useRef({}), [p] = ye.useState(() => Q4()), h = Z4() != null;
23961
+ } = e, u = Gz(), f = ye.useRef({}), [p] = ye.useState(() => Qz()), h = Zz() != null;
23962
23962
  if (process.env.NODE_ENV !== "production") {
23963
23963
  const D = o.reference;
23964
- D && !co(D) && q4("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
23964
+ D && !co(D) && qz("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
23965
23965
  }
23966
23966
  const [g, w] = ye.useState(o.reference), T = CN((D, _, P) => {
23967
23967
  f.current.openEvent = D ? _ : void 0, p.emit("openchange", {
@@ -23987,22 +23987,22 @@ function tz(e) {
23987
23987
  refs: E
23988
23988
  }), [t, T, R, p, u, E]);
23989
23989
  }
23990
- function nz(e) {
23990
+ function n4(e) {
23991
23991
  e === void 0 && (e = {});
23992
23992
  const {
23993
23993
  nodeId: t
23994
- } = e, a = tz({
23994
+ } = e, a = t4({
23995
23995
  ...e,
23996
23996
  elements: {
23997
23997
  reference: null,
23998
23998
  floating: null,
23999
23999
  ...e.elements
24000
24000
  }
24001
- }), o = e.rootContext || a, u = o.elements, [f, p] = ye.useState(null), [h, g] = ye.useState(null), T = (u == null ? void 0 : u.domReference) || f, E = ye.useRef(null), R = J4();
24001
+ }), o = e.rootContext || a, u = o.elements, [f, p] = ye.useState(null), [h, g] = ye.useState(null), T = (u == null ? void 0 : u.domReference) || f, E = ye.useRef(null), R = Jz();
24002
24002
  X1(() => {
24003
24003
  T && (E.current = T);
24004
24004
  }, [T]);
24005
- const D = F4({
24005
+ const D = Fz({
24006
24006
  ...e,
24007
24007
  elements: {
24008
24008
  ...u,
@@ -24062,7 +24062,7 @@ function g1(e, t, a) {
24062
24062
  return {
24063
24063
  ...a === "floating" && {
24064
24064
  tabIndex: -1,
24065
- [ez]: ""
24065
+ [e4]: ""
24066
24066
  },
24067
24067
  ...f,
24068
24068
  ...t.map((p) => {
@@ -24085,7 +24085,7 @@ function g1(e, t, a) {
24085
24085
  }), p), {})
24086
24086
  };
24087
24087
  }
24088
- function rz(e) {
24088
+ function r4(e) {
24089
24089
  e === void 0 && (e = []);
24090
24090
  const t = e.map((h) => h == null ? void 0 : h.reference), a = e.map((h) => h == null ? void 0 : h.floating), o = e.map((h) => h == null ? void 0 : h.item), u = ye.useCallback(
24091
24091
  (h) => g1(h, e, "reference"),
@@ -24118,7 +24118,7 @@ function p_(e, t) {
24118
24118
  }
24119
24119
  };
24120
24120
  }
24121
- const az = (e) => ({
24121
+ const a4 = (e) => ({
24122
24122
  name: "inner",
24123
24123
  options: e,
24124
24124
  async fn(t) {
@@ -24138,7 +24138,7 @@ const az = (e) => ({
24138
24138
  floating: R
24139
24139
  }
24140
24140
  } = t, D = a.current[p], _ = (w == null ? void 0 : w.current) || R, P = R.clientTop || _.clientTop, B = R.clientTop !== 0, X = _.clientTop !== 0, F = R === _;
24141
- if (process.env.NODE_ENV !== "production" && (t.placement.startsWith("bottom") || Y4('`placement` side must be "bottom" when using the `inner`', "middleware.")), !D)
24141
+ if (process.env.NODE_ENV !== "production" && (t.placement.startsWith("bottom") || Yz('`placement` side must be "bottom" when using the `inner`', "middleware.")), !D)
24142
24142
  return {};
24143
24143
  const G = {
24144
24144
  ...t,
@@ -24159,7 +24159,7 @@ const az = (e) => ({
24159
24159
  };
24160
24160
  }
24161
24161
  });
24162
- function iz(e, t) {
24162
+ function i4(e, t) {
24163
24163
  const {
24164
24164
  open: a,
24165
24165
  elements: o
@@ -24222,17 +24222,17 @@ let Zg = dn({ styles: void 0, setReference: () => {
24222
24222
  Zg.displayName = "FloatingContext";
24223
24223
  let IC = dn(null);
24224
24224
  IC.displayName = "PlacementContext";
24225
- function oz(e) {
24225
+ function o4(e) {
24226
24226
  return $e(() => e ? typeof e == "string" ? { to: e } : e : null, [e]);
24227
24227
  }
24228
- function lz() {
24228
+ function l4() {
24229
24229
  return Qt(Zg).setReference;
24230
24230
  }
24231
- function sz() {
24231
+ function s4() {
24232
24232
  let { getFloatingProps: e, slot: t } = Qt(Zg);
24233
24233
  return Ge((...a) => Object.assign({}, e(...a), { "data-anchor": t.anchor }), [e, t]);
24234
24234
  }
24235
- function uz(e = null) {
24235
+ function u4(e = null) {
24236
24236
  e === !1 && (e = null), typeof e == "string" && (e = { to: e });
24237
24237
  let t = Qt(IC), a = $e(() => e, [JSON.stringify(e, (u, f) => {
24238
24238
  var p;
@@ -24245,14 +24245,14 @@ function uz(e = null) {
24245
24245
  return $e(() => [o.setFloating, e ? o.styles : {}], [o.setFloating, e, o.styles]);
24246
24246
  }
24247
24247
  let m_ = 4;
24248
- function cz({ children: e, enabled: t = !0 }) {
24248
+ function c4({ children: e, enabled: t = !0 }) {
24249
24249
  let [a, o] = Lt(null), [u, f] = Lt(0), p = Ct(null), [h, g] = Lt(null);
24250
- dz(h);
24251
- let w = t && a !== null && h !== null, { to: T = "bottom", gap: E = 0, offset: R = 0, padding: D = 0, inner: _ } = fz(a, h), [P, B = "center"] = T.split(" ");
24250
+ d4(h);
24251
+ let w = t && a !== null && h !== null, { to: T = "bottom", gap: E = 0, offset: R = 0, padding: D = 0, inner: _ } = f4(a, h), [P, B = "center"] = T.split(" ");
24252
24252
  ar(() => {
24253
24253
  w && f(0);
24254
24254
  }, [w]);
24255
- let { refs: X, floatingStyles: F, context: G } = nz({ open: w, placement: P === "selection" ? B === "center" ? "bottom" : `bottom-${B}` : B === "center" ? `${P}` : `${P}-${B}`, strategy: "absolute", transform: !1, middleware: [SN({ mainAxis: P === "selection" ? 0 : E, crossAxis: R }), $4({ padding: D }), P !== "selection" && B4({ padding: D }), P === "selection" && _ ? az({ ..._, padding: D, overflowRef: p, offset: u, minItemsVisible: m_, referenceOverflowThreshold: D, onFallbackChange(q) {
24255
+ let { refs: X, floatingStyles: F, context: G } = n4({ open: w, placement: P === "selection" ? B === "center" ? "bottom" : `bottom-${B}` : B === "center" ? `${P}` : `${P}-${B}`, strategy: "absolute", transform: !1, middleware: [SN({ mainAxis: P === "selection" ? 0 : E, crossAxis: R }), $z({ padding: D }), P !== "selection" && Bz({ padding: D }), P === "selection" && _ ? a4({ ..._, padding: D, overflowRef: p, offset: u, minItemsVisible: m_, referenceOverflowThreshold: D, onFallbackChange(q) {
24256
24256
  var W, z;
24257
24257
  if (!q) return;
24258
24258
  let V = G.elements.floating;
@@ -24270,16 +24270,16 @@ function cz({ children: e, enabled: t = !0 }) {
24270
24270
  let ae = ee * Y - U + H;
24271
24271
  return te >= ae ? te : ae;
24272
24272
  });
24273
- } }) : null, U4({ padding: D, apply({ availableWidth: q, availableHeight: W, elements: z }) {
24273
+ } }) : null, Uz({ padding: D, apply({ availableWidth: q, availableHeight: W, elements: z }) {
24274
24274
  Object.assign(z.floating.style, { overflow: "auto", maxWidth: `${q}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${W}px)` });
24275
- } })].filter(Boolean), whileElementsMounted: O4 }), [Z = P, ne = B] = G.placement.split("-");
24275
+ } })].filter(Boolean), whileElementsMounted: Oz }), [Z = P, ne = B] = G.placement.split("-");
24276
24276
  P === "selection" && (Z = "selection");
24277
- let ue = $e(() => ({ anchor: [Z, ne].filter(Boolean).join(" ") }), [Z, ne]), se = iz(G, { overflowRef: p, onChange: f }), { getReferenceProps: k, getFloatingProps: M } = rz([se]), I = at((q) => {
24277
+ let ue = $e(() => ({ anchor: [Z, ne].filter(Boolean).join(" ") }), [Z, ne]), se = i4(G, { overflowRef: p, onChange: f }), { getReferenceProps: k, getFloatingProps: M } = r4([se]), I = at((q) => {
24278
24278
  g(q), X.setFloating(q);
24279
24279
  });
24280
24280
  return ye.createElement(IC.Provider, { value: o }, ye.createElement(Zg.Provider, { value: { setFloating: I, setReference: X.setReference, styles: F, getReferenceProps: k, getFloatingProps: M, slot: ue } }, e));
24281
24281
  }
24282
- function dz(e) {
24282
+ function d4(e) {
24283
24283
  ar(() => {
24284
24284
  if (!e) return;
24285
24285
  let t = new MutationObserver(() => {
@@ -24293,7 +24293,7 @@ function dz(e) {
24293
24293
  };
24294
24294
  }, [e]);
24295
24295
  }
24296
- function fz(e, t) {
24296
+ function f4(e, t) {
24297
24297
  var a, o, u;
24298
24298
  let f = w1((a = e == null ? void 0 : e.gap) != null ? a : "var(--anchor-gap, 0)", t), p = w1((o = e == null ? void 0 : e.offset) != null ? o : "var(--anchor-offset, 0)", t), h = w1((u = e == null ? void 0 : e.padding) != null ? u : "var(--anchor-padding, 0)", t);
24299
24299
  return { ...e, gap: f, offset: p, padding: h };
@@ -24362,14 +24362,14 @@ function FC({ value: e, children: t }) {
24362
24362
  function $C({ children: e }) {
24363
24363
  return Re.createElement(kT.Provider, { value: null }, e);
24364
24364
  }
24365
- function pz(e) {
24365
+ function p4(e) {
24366
24366
  function t() {
24367
24367
  document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", t));
24368
24368
  }
24369
24369
  typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
24370
24370
  }
24371
24371
  let Pf = [];
24372
- pz(() => {
24372
+ p4(() => {
24373
24373
  function e(t) {
24374
24374
  if (!yu(t.target) || t.target === document.body || Pf[0] === t.target) return;
24375
24375
  let a = t.target;
@@ -24385,26 +24385,26 @@ function BC(e) {
24385
24385
  });
24386
24386
  }), [t]);
24387
24387
  }
24388
- function mz() {
24388
+ function m4() {
24389
24389
  let e = typeof document > "u";
24390
24390
  return "useSyncExternalStore" in ye ? ((t) => t.useSyncExternalStore)(ye)(() => () => {
24391
24391
  }, () => !1, () => !e) : !1;
24392
24392
  }
24393
24393
  function Jg() {
24394
- let e = mz(), [t, a] = ye.useState(gm.isHandoffComplete);
24394
+ let e = m4(), [t, a] = ye.useState(gm.isHandoffComplete);
24395
24395
  return t && gm.isHandoffComplete === !1 && a(!1), ye.useEffect(() => {
24396
24396
  t !== !0 && a(!0);
24397
24397
  }, [t]), ye.useEffect(() => gm.handoff(), []), e ? !1 : t;
24398
24398
  }
24399
24399
  let DN = dn(!1);
24400
- function hz() {
24400
+ function h4() {
24401
24401
  return Qt(DN);
24402
24402
  }
24403
24403
  function v_(e) {
24404
24404
  return Re.createElement(DN.Provider, { value: e.force }, e.children);
24405
24405
  }
24406
- function vz(e) {
24407
- let t = hz(), a = Qt(ON), [o, u] = Lt(() => {
24406
+ function v4(e) {
24407
+ let t = h4(), a = Qt(ON), [o, u] = Lt(() => {
24408
24408
  var f;
24409
24409
  if (!t && a !== null) return (f = a.current) != null ? f : null;
24410
24410
  if (gm.isServer) return null;
@@ -24420,10 +24420,10 @@ function vz(e) {
24420
24420
  t || a !== null && u(a.current);
24421
24421
  }, [a, u, t]), o;
24422
24422
  }
24423
- let RN = fo, yz = On(function(e, t) {
24423
+ let RN = fo, y4 = On(function(e, t) {
24424
24424
  let { ownerDocument: a = null, ...o } = e, u = Ct(null), f = cr(AC((D) => {
24425
24425
  u.current = D;
24426
- }), t), p = $f(u), h = a ?? p, g = vz(h), [w] = Lt(() => {
24426
+ }), t), p = $f(u), h = a ?? p, g = v4(h), [w] = Lt(() => {
24427
24427
  var D;
24428
24428
  return gm.isServer ? null : (D = h == null ? void 0 : h.createElement("div")) != null ? D : null;
24429
24429
  }), T = Qt(Z1), E = Jg();
@@ -24438,14 +24438,14 @@ let RN = fo, yz = On(function(e, t) {
24438
24438
  let R = Vn();
24439
24439
  return E ? !g || !w ? null : wm.createPortal(R({ ourProps: { ref: f }, theirProps: o, slot: {}, defaultTag: RN, name: "Portal" }), w) : null;
24440
24440
  });
24441
- function gz(e, t) {
24441
+ function g4(e, t) {
24442
24442
  let a = cr(t), { enabled: o = !0, ownerDocument: u, ...f } = e, p = Vn();
24443
- return o ? Re.createElement(yz, { ...f, ownerDocument: u, ref: a }) : p({ ourProps: { ref: a }, theirProps: f, slot: {}, defaultTag: RN, name: "Portal" });
24443
+ return o ? Re.createElement(y4, { ...f, ownerDocument: u, ref: a }) : p({ ourProps: { ref: a }, theirProps: f, slot: {}, defaultTag: RN, name: "Portal" });
24444
24444
  }
24445
- let wz = fo, ON = dn(null);
24446
- function bz(e, t) {
24445
+ let w4 = fo, ON = dn(null);
24446
+ function b4(e, t) {
24447
24447
  let { target: a, ...o } = e, u = { ref: cr(t) }, f = Vn();
24448
- return Re.createElement(ON.Provider, { value: a }, f({ ourProps: u, theirProps: o, defaultTag: wz, name: "Popover.Group" }));
24448
+ return Re.createElement(ON.Provider, { value: a }, f({ ourProps: u, theirProps: o, defaultTag: w4, name: "Popover.Group" }));
24449
24449
  }
24450
24450
  let Z1 = dn(null);
24451
24451
  function _N() {
@@ -24457,14 +24457,14 @@ function _N() {
24457
24457
  return Re.createElement(Z1.Provider, { value: u }, f);
24458
24458
  }, [u])];
24459
24459
  }
24460
- let Tz = On(gz), kN = On(bz), NN = Object.assign(Tz, { Group: kN });
24461
- function xz(e, t = typeof document < "u" ? document.defaultView : null, a) {
24460
+ let T4 = On(g4), kN = On(b4), NN = Object.assign(T4, { Group: kN });
24461
+ function x4(e, t = typeof document < "u" ? document.defaultView : null, a) {
24462
24462
  let o = Qg(e, "escape");
24463
24463
  _C(t, "keydown", (u) => {
24464
24464
  o && (u.defaultPrevented || u.key === ur.Escape && a(u));
24465
24465
  });
24466
24466
  }
24467
- function Sz() {
24467
+ function S4() {
24468
24468
  var e;
24469
24469
  let [t] = Lt(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [a, o] = Lt((e = t == null ? void 0 : t.matches) != null ? e : !1);
24470
24470
  return ar(() => {
@@ -24523,15 +24523,15 @@ function MN(e) {
24523
24523
  for (let a of e.current) Od(a.current) && t.add(a.current);
24524
24524
  return t;
24525
24525
  }
24526
- let Ez = "div";
24526
+ let E4 = "div";
24527
24527
  var pm = ((e) => (e[e.None = 0] = "None", e[e.InitialFocus = 1] = "InitialFocus", e[e.TabLock = 2] = "TabLock", e[e.FocusLock = 4] = "FocusLock", e[e.RestoreFocus = 8] = "RestoreFocus", e[e.AutoFocus = 16] = "AutoFocus", e))(pm || {});
24528
- function Cz(e, t) {
24528
+ function C4(e, t) {
24529
24529
  let a = Ct(null), o = cr(a, t), { initialFocus: u, initialFocusFallback: f, containers: p, features: h = 15, ...g } = e;
24530
24530
  Jg() || (h = 0);
24531
24531
  let w = $f(a);
24532
- Oz(h, { ownerDocument: w });
24533
- let T = _z(h, { ownerDocument: w, container: a, initialFocus: u, initialFocusFallback: f });
24534
- kz(h, { ownerDocument: w, container: a, containers: p, previousActiveElement: T });
24532
+ O4(h, { ownerDocument: w });
24533
+ let T = _4(h, { ownerDocument: w, container: a, initialFocus: u, initialFocusFallback: f });
24534
+ k4(h, { ownerDocument: w, container: a, containers: p, previousActiveElement: T });
24535
24535
  let E = jC(), R = at((F) => {
24536
24536
  if (!pl(a.current)) return;
24537
24537
  let G = a.current;
@@ -24553,10 +24553,10 @@ function Cz(e, t) {
24553
24553
  let Z = F.relatedTarget;
24554
24554
  yu(Z) && Z.dataset.headlessuiFocusGuard !== "true" && (IN(G, Z) || (P.current ? ci(a.current, jr(E.current, { [ql.Forwards]: () => rr.Next, [ql.Backwards]: () => rr.Previous }) | rr.WrapAround, { relativeTo: F.target }) : yu(F.target) && _d(F.target)));
24555
24555
  } }, X = Vn();
24556
- return Re.createElement(Re.Fragment, null, D && Re.createElement(wu, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: R, features: gu.Focusable }), X({ ourProps: B, theirProps: g, defaultTag: Ez, name: "FocusTrap" }), D && Re.createElement(wu, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: R, features: gu.Focusable }));
24556
+ return Re.createElement(Re.Fragment, null, D && Re.createElement(wu, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: R, features: gu.Focusable }), X({ ourProps: B, theirProps: g, defaultTag: E4, name: "FocusTrap" }), D && Re.createElement(wu, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: R, features: gu.Focusable }));
24557
24557
  }
24558
- let Az = On(Cz), Dz = Object.assign(Az, { features: pm });
24559
- function Rz(e = !0) {
24558
+ let A4 = On(C4), D4 = Object.assign(A4, { features: pm });
24559
+ function R4(e = !0) {
24560
24560
  let t = Ct(Pf.slice());
24561
24561
  return kC(([a], [o]) => {
24562
24562
  o === !0 && a === !1 && qg(() => {
@@ -24567,15 +24567,15 @@ function Rz(e = !0) {
24567
24567
  return (a = t.current.find((o) => o != null && o.isConnected)) != null ? a : null;
24568
24568
  });
24569
24569
  }
24570
- function Oz(e, { ownerDocument: t }) {
24571
- let a = !!(e & 8), o = Rz(a);
24570
+ function O4(e, { ownerDocument: t }) {
24571
+ let a = !!(e & 8), o = R4(a);
24572
24572
  kC(() => {
24573
24573
  a || (t == null ? void 0 : t.activeElement) === (t == null ? void 0 : t.body) && _d(o());
24574
24574
  }, [a]), BC(() => {
24575
24575
  a && _d(o());
24576
24576
  });
24577
24577
  }
24578
- function _z(e, { ownerDocument: t, container: a, initialFocus: o, initialFocusFallback: u }) {
24578
+ function _4(e, { ownerDocument: t, container: a, initialFocus: o, initialFocusFallback: u }) {
24579
24579
  let f = Ct(null), p = Qg(!!(e & 1), "focus-trap#initial-focus"), h = NT();
24580
24580
  return kC(() => {
24581
24581
  if (e === 0) return;
@@ -24608,7 +24608,7 @@ function _z(e, { ownerDocument: t, container: a, initialFocus: o, initialFocusFa
24608
24608
  });
24609
24609
  }, [u, p, e]), f;
24610
24610
  }
24611
- function kz(e, { ownerDocument: t, container: a, containers: o, previousActiveElement: u }) {
24611
+ function k4(e, { ownerDocument: t, container: a, containers: o, previousActiveElement: u }) {
24612
24612
  let f = NT(), p = !!(e & 4);
24613
24613
  _C(t == null ? void 0 : t.defaultView, "focus", (h) => {
24614
24614
  if (!p || !f.current) return;
@@ -24630,13 +24630,13 @@ function FN(e) {
24630
24630
  }
24631
24631
  let LT = dn(null);
24632
24632
  LT.displayName = "TransitionContext";
24633
- var Nz = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Nz || {});
24634
- function Lz() {
24633
+ var N4 = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(N4 || {});
24634
+ function L4() {
24635
24635
  let e = Qt(LT);
24636
24636
  if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
24637
24637
  return e;
24638
24638
  }
24639
- function Pz() {
24639
+ function P4() {
24640
24640
  let e = Qt(PT);
24641
24641
  if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
24642
24642
  return e;
@@ -24675,9 +24675,9 @@ function $N(e, t) {
24675
24675
  return $e(() => ({ children: o, register: h, unregister: p, onStart: E, onStop: R, wait: w, chains: T }), [h, p, o, E, R, T, w]);
24676
24676
  }
24677
24677
  let BN = fo, UN = Ls.RenderStrategy;
24678
- function Mz(e, t) {
24678
+ function M4(e, t) {
24679
24679
  var a, o;
24680
- let { transition: u = !0, beforeEnter: f, afterEnter: p, beforeLeave: h, afterLeave: g, enter: w, enterFrom: T, enterTo: E, entered: R, leave: D, leaveFrom: _, leaveTo: P, ...B } = e, [X, F] = Lt(null), G = Ct(null), Z = FN(e), ne = cr(...Z ? [G, t, F] : t === null ? [] : [t]), ue = (a = B.unmount) == null || a ? Mf.Unmount : Mf.Hidden, { show: se, appear: k, initial: M } = Lz(), [I, q] = Lt(se ? "visible" : "hidden"), W = Pz(), { register: z, unregister: V } = W;
24680
+ let { transition: u = !0, beforeEnter: f, afterEnter: p, beforeLeave: h, afterLeave: g, enter: w, enterFrom: T, enterTo: E, entered: R, leave: D, leaveFrom: _, leaveTo: P, ...B } = e, [X, F] = Lt(null), G = Ct(null), Z = FN(e), ne = cr(...Z ? [G, t, F] : t === null ? [] : [t]), ue = (a = B.unmount) == null || a ? Mf.Unmount : Mf.Hidden, { show: se, appear: k, initial: M } = L4(), [I, q] = Lt(se ? "visible" : "hidden"), W = P4(), { register: z, unregister: V } = W;
24681
24681
  ar(() => z(G), [z, G]), ar(() => {
24682
24682
  if (ue === Mf.Hidden && G.current) {
24683
24683
  if (se && I !== "visible") {
@@ -24713,7 +24713,7 @@ function Mz(e, t) {
24713
24713
  let Ie = Vn();
24714
24714
  return Re.createElement(PT.Provider, { value: te }, Re.createElement(FC, { value: xe }, Ie({ ourProps: ze, theirProps: B, defaultTag: BN, features: UN, visible: I === "visible", name: "Transition.Child" })));
24715
24715
  }
24716
- function Iz(e, t) {
24716
+ function I4(e, t) {
24717
24717
  let { show: a, appear: o = !1, unmount: u = !0, ...f } = e, p = Ct(null), h = FN(e), g = cr(...h ? [p, t] : t === null ? [] : [t]);
24718
24718
  Jg();
24719
24719
  let w = km();
@@ -24737,13 +24737,13 @@ function Iz(e, t) {
24737
24737
  }), Z = Vn();
24738
24738
  return Re.createElement(PT.Provider, { value: R }, Re.createElement(LT.Provider, { value: B }, Z({ ourProps: { ...X, as: fo, children: Re.createElement(jN, { ref: g, ...X, ...f, beforeEnter: F, beforeLeave: G }) }, theirProps: {}, defaultTag: fo, features: UN, visible: T === "visible", name: "Transition" })));
24739
24739
  }
24740
- function Fz(e, t) {
24740
+ function F4(e, t) {
24741
24741
  let a = Qt(LT) !== null, o = km() !== null;
24742
24742
  return Re.createElement(Re.Fragment, null, !a && o ? Re.createElement(J1, { ref: t, ...e }) : Re.createElement(jN, { ref: t, ...e }));
24743
24743
  }
24744
- let J1 = On(Iz), jN = On(Mz), zC = On(Fz), HC = Object.assign(J1, { Child: zC, Root: J1 });
24745
- var $z = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))($z || {}), Bz = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(Bz || {});
24746
- let Uz = { 0(e, t) {
24744
+ let J1 = On(I4), jN = On(M4), zC = On(F4), HC = Object.assign(J1, { Child: zC, Root: J1 });
24745
+ var $4 = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))($4 || {}), B4 = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(B4 || {});
24746
+ let U4 = { 0(e, t) {
24747
24747
  return e.titleId === t.id ? e : { ...e, titleId: t.id };
24748
24748
  } }, WC = dn(null);
24749
24749
  WC.displayName = "DialogContext";
@@ -24755,8 +24755,8 @@ function IT(e) {
24755
24755
  }
24756
24756
  return t;
24757
24757
  }
24758
- function jz(e, t) {
24759
- return jr(t.type, Uz, e, t);
24758
+ function j4(e, t) {
24759
+ return jr(t.type, U4, e, t);
24760
24760
  }
24761
24761
  let y_ = On(function(e, t) {
24762
24762
  let a = Fi(), { id: o = `headlessui-dialog-${a}`, open: u, onClose: f, initialFocus: p, role: h = "dialog", autoFocus: g = !0, __demoMode: w = !1, unmount: T = !1, ...E } = e, R = Ct(!1);
@@ -24765,7 +24765,7 @@ let y_ = On(function(e, t) {
24765
24765
  }();
24766
24766
  let D = km();
24767
24767
  u === void 0 && D !== null && (u = (D & la.Open) === la.Open);
24768
- let _ = Ct(null), P = cr(_, t), B = $f(_), X = u ? 0 : 1, [F, G] = Rm(jz, { titleId: null, descriptionId: null, panelRef: w3() }), Z = at(() => f(!1)), ne = at((Ee) => G({ type: 0, id: Ee })), ue = Jg() ? X === 0 : !1, [se, k] = _N(), M = { get current() {
24768
+ let _ = Ct(null), P = cr(_, t), B = $f(_), X = u ? 0 : 1, [F, G] = Rm(j4, { titleId: null, descriptionId: null, panelRef: w3() }), Z = at(() => f(!1)), ne = at((Ee) => G({ type: 0, id: Ee })), ue = Jg() ? X === 0 : !1, [se, k] = _N(), M = { get current() {
24769
24769
  var Ee;
24770
24770
  return (Ee = F.panelRef.current) != null ? Ee : _.current;
24771
24771
  } }, I = UC(), { resolveContainers: q } = LN({ mainTreeNode: I, portals: se, defaultContainers: [M] }), W = D !== null ? (D & la.Closing) === la.Closing : !1;
@@ -24783,15 +24783,15 @@ let y_ = On(function(e, t) {
24783
24783
  let V = Ff(z, Ge((Ee) => z.selectors.isTop(Ee, o), [z, o]));
24784
24784
  uN(V, q, (Ee) => {
24785
24785
  Ee.preventDefault(), Z();
24786
- }), xz(V, B == null ? void 0 : B.defaultView, (Ee) => {
24786
+ }), x4(V, B == null ? void 0 : B.defaultView, (Ee) => {
24787
24787
  Ee.preventDefault(), Ee.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), Z();
24788
24788
  }), cN(w || W ? !1 : ue, B, q), iN(ue, _, Z);
24789
- let [H, Y] = DC(), ee = $e(() => [{ dialogState: X, close: Z, setTitleId: ne, unmount: T }, F], [X, F, Z, ne, T]), U = $e(() => ({ open: X === 0 }), [X]), te = { ref: P, id: o, role: h, tabIndex: -1, "aria-modal": w ? void 0 : X === 0 ? !0 : void 0, "aria-labelledby": F.titleId, "aria-describedby": H, unmount: T }, ae = !Sz(), we = pm.None;
24789
+ let [H, Y] = DC(), ee = $e(() => [{ dialogState: X, close: Z, setTitleId: ne, unmount: T }, F], [X, F, Z, ne, T]), U = $e(() => ({ open: X === 0 }), [X]), te = { ref: P, id: o, role: h, tabIndex: -1, "aria-modal": w ? void 0 : X === 0 ? !0 : void 0, "aria-labelledby": F.titleId, "aria-describedby": H, unmount: T }, ae = !S4(), we = pm.None;
24790
24790
  ue && !w && (we |= pm.RestoreFocus, we |= pm.TabLock, g && (we |= pm.AutoFocus), ae && (we |= pm.InitialFocus));
24791
24791
  let Oe = Vn();
24792
- return Re.createElement($C, null, Re.createElement(v_, { force: !0 }, Re.createElement(NN, null, Re.createElement(WC.Provider, { value: ee }, Re.createElement(kN, { target: _ }, Re.createElement(v_, { force: !1 }, Re.createElement(Y, { slot: U }, Re.createElement(k, null, Re.createElement(Dz, { initialFocus: p, initialFocusFallback: _, containers: q, features: we }, Re.createElement(xT, { value: Z }, Oe({ ourProps: te, theirProps: E, slot: U, defaultTag: zz, features: Hz, visible: X === 0, name: "Dialog" })))))))))));
24793
- }), zz = "div", Hz = Ls.RenderStrategy | Ls.Static;
24794
- function Wz(e, t) {
24792
+ return Re.createElement($C, null, Re.createElement(v_, { force: !0 }, Re.createElement(NN, null, Re.createElement(WC.Provider, { value: ee }, Re.createElement(kN, { target: _ }, Re.createElement(v_, { force: !1 }, Re.createElement(Y, { slot: U }, Re.createElement(k, null, Re.createElement(D4, { initialFocus: p, initialFocusFallback: _, containers: q, features: we }, Re.createElement(xT, { value: Z }, Oe({ ourProps: te, theirProps: E, slot: U, defaultTag: z4, features: H4, visible: X === 0, name: "Dialog" })))))))))));
24793
+ }), z4 = "div", H4 = Ls.RenderStrategy | Ls.Static;
24794
+ function W4(e, t) {
24795
24795
  let { transition: a = !1, open: o, ...u } = e, f = km(), p = e.hasOwnProperty("open") || f !== null, h = e.hasOwnProperty("onClose");
24796
24796
  if (!p && !h) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
24797
24797
  if (!p) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
@@ -24800,26 +24800,26 @@ function Wz(e, t) {
24800
24800
  if (typeof e.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);
24801
24801
  return (o !== void 0 || a) && !u.static ? Re.createElement(nT, null, Re.createElement(HC, { show: o, transition: a, unmount: u.unmount }, Re.createElement(y_, { ref: t, ...u }))) : Re.createElement(nT, null, Re.createElement(y_, { ref: t, open: o, ...u }));
24802
24802
  }
24803
- let Vz = "div";
24804
- function Gz(e, t) {
24803
+ let V4 = "div";
24804
+ function G4(e, t) {
24805
24805
  let a = Fi(), { id: o = `headlessui-dialog-panel-${a}`, transition: u = !1, ...f } = e, [{ dialogState: p, unmount: h }, g] = IT("Dialog.Panel"), w = cr(t, g.panelRef), T = $e(() => ({ open: p === 0 }), [p]), E = at((B) => {
24806
24806
  B.stopPropagation();
24807
24807
  }), R = { ref: w, id: o, onClick: E }, D = u ? zC : fo, _ = u ? { unmount: h } : {}, P = Vn();
24808
- return Re.createElement(D, { ..._ }, P({ ourProps: R, theirProps: f, slot: T, defaultTag: Vz, name: "Dialog.Panel" }));
24808
+ return Re.createElement(D, { ..._ }, P({ ourProps: R, theirProps: f, slot: T, defaultTag: V4, name: "Dialog.Panel" }));
24809
24809
  }
24810
- let Yz = "div";
24811
- function qz(e, t) {
24810
+ let Y4 = "div";
24811
+ function q4(e, t) {
24812
24812
  let { transition: a = !1, ...o } = e, [{ dialogState: u, unmount: f }] = IT("Dialog.Backdrop"), p = $e(() => ({ open: u === 0 }), [u]), h = { ref: t, "aria-hidden": !0 }, g = a ? zC : fo, w = a ? { unmount: f } : {}, T = Vn();
24813
- return Re.createElement(g, { ...w }, T({ ourProps: h, theirProps: o, slot: p, defaultTag: Yz, name: "Dialog.Backdrop" }));
24813
+ return Re.createElement(g, { ...w }, T({ ourProps: h, theirProps: o, slot: p, defaultTag: Y4, name: "Dialog.Backdrop" }));
24814
24814
  }
24815
- let Qz = "h2";
24816
- function Kz(e, t) {
24815
+ let Q4 = "h2";
24816
+ function K4(e, t) {
24817
24817
  let a = Fi(), { id: o = `headlessui-dialog-title-${a}`, ...u } = e, [{ dialogState: f, setTitleId: p }] = IT("Dialog.Title"), h = cr(t);
24818
24818
  pt(() => (p(o), () => p(null)), [o, p]);
24819
24819
  let g = $e(() => ({ open: f === 0 }), [f]), w = { ref: h, id: o };
24820
- return Vn()({ ourProps: w, theirProps: u, slot: g, defaultTag: Qz, name: "Dialog.Title" });
24820
+ return Vn()({ ourProps: w, theirProps: u, slot: g, defaultTag: Q4, name: "Dialog.Title" });
24821
24821
  }
24822
- let Xz = On(Wz), zN = On(Gz), Zz = On(qz), Jz = On(Kz), eH = Object.assign(Xz, { Panel: zN, Title: Jz, Description: Qk });
24822
+ let X4 = On(W4), zN = On(G4), Z4 = On(q4), J4 = On(K4), eH = Object.assign(X4, { Panel: zN, Title: J4, Description: Qk });
24823
24823
  var g_;
24824
24824
  let tH = (g_ = Re.startTransition) != null ? g_ : function(e) {
24825
24825
  e();
@@ -25012,7 +25012,7 @@ function CH(e, t) {
25012
25012
  p.actions.close(), oN(H, OC.Loose) || (V.preventDefault(), T == null || T.focus());
25013
25013
  });
25014
25014
  let I = $e(() => ({ open: w === Ta.Open, close: p.actions.refocusableClose }), [w, p]), q = Ff(p, Ge((V) => jr(V.popoverState, { [Ta.Open]: la.Open, [Ta.Closed]: la.Closed }), [])), W = { ref: g }, z = Vn();
25015
- return Re.createElement(nT, { node: se }, Re.createElement(cz, null, Re.createElement($T.Provider, { value: null }, Re.createElement(VN.Provider, { value: p }, Re.createElement(xT, { value: p.actions.refocusableClose }, Re.createElement(FC, { value: q }, Re.createElement(ue, null, z({ ourProps: W, theirProps: f, slot: I, defaultTag: EH, name: "Popover" }))))))));
25015
+ return Re.createElement(nT, { node: se }, Re.createElement(c4, null, Re.createElement($T.Provider, { value: null }, Re.createElement(VN.Provider, { value: p }, Re.createElement(xT, { value: p.actions.refocusableClose }, Re.createElement(FC, { value: q }, Re.createElement(ue, null, z({ ourProps: W, theirProps: f, slot: I, defaultTag: EH, name: "Popover" }))))))));
25016
25016
  }
25017
25017
  let AH = "button";
25018
25018
  function DH(e, t) {
@@ -25020,7 +25020,7 @@ function DH(e, t) {
25020
25020
  pt(() => {
25021
25021
  if (!G) return h.actions.setButtonId(o), () => h.actions.setButtonId(null);
25022
25022
  }, [G, o, h]);
25023
- let [Z] = Lt(() => Symbol()), ne = cr(P, t, lz(), at((xe) => {
25023
+ let [Z] = Lt(() => Symbol()), ne = cr(P, t, l4(), at((xe) => {
25024
25024
  if (!G) {
25025
25025
  if (xe) h.state.buttons.current.push(Z);
25026
25026
  else {
@@ -25077,7 +25077,7 @@ function YN(e, t) {
25077
25077
  }
25078
25078
  let _H = "div", kH = Ls.RenderStrategy | Ls.Static;
25079
25079
  function NH(e, t) {
25080
- let a = Fi(), { id: o = `headlessui-popover-panel-${a}`, focus: u = !1, anchor: f, portal: p = !1, modal: h = !1, transition: g = !1, ...w } = e, T = FT("Popover.Panel"), E = Ff(T, T.selectors.isPortalled), [R, D, _, P, B] = Ff(T, Ge((Ee) => [Ee.popoverState, Ee.button, Ee.__demoMode, Ee.beforePanelSentinel, Ee.afterPanelSentinel], [])), X = `headlessui-focus-sentinel-before-${a}`, F = `headlessui-focus-sentinel-after-${a}`, G = Ct(null), Z = oz(f), [ne, ue] = uz(Z), se = sz();
25080
+ let a = Fi(), { id: o = `headlessui-popover-panel-${a}`, focus: u = !1, anchor: f, portal: p = !1, modal: h = !1, transition: g = !1, ...w } = e, T = FT("Popover.Panel"), E = Ff(T, T.selectors.isPortalled), [R, D, _, P, B] = Ff(T, Ge((Ee) => [Ee.popoverState, Ee.button, Ee.__demoMode, Ee.beforePanelSentinel, Ee.afterPanelSentinel], [])), X = `headlessui-focus-sentinel-before-${a}`, F = `headlessui-focus-sentinel-after-${a}`, G = Ct(null), Z = o4(f), [ne, ue] = u4(Z), se = s4();
25081
25081
  Z && (p = !0);
25082
25082
  let [k, M] = Lt(null), I = cr(G, t, Z ? ne : null, T.actions.setPanel, M), q = $f(D), W = $f(G);
25083
25083
  ar(() => (T.actions.setPanelId(o), () => T.actions.setPanelId(null)), [o, T]);
@@ -28375,7 +28375,7 @@ const It = "0x0000000000000000000000000000000000000000", vA = BigInt(
28375
28375
  depositParams: { customTokens: [] },
28376
28376
  withdrawParams: { customTokens: [] },
28377
28377
  deprecated: !1
28378
- }, XX = "deposit", CV = 1, yA = 0, AV = 0.5, DV = 0.3, ZX = [yA], RV = "withdrawSafe", ML = "initWithdrawal", OV = "unrollAndClaim", _V = "completeWithdrawal", kV = 3e7, NV = 1.25, mm = 1e4, LV = 13e3, IL = 3, gA = 2e4, PV = 15e3, MV = {
28378
+ }, KX = "deposit", CV = 1, yA = 0, AV = 0.5, DV = 0.3, XX = [yA], RV = "withdrawSafe", ML = "initWithdrawal", OV = "unrollAndClaim", _V = "completeWithdrawal", kV = 3e7, NV = 1.25, mm = 1e4, LV = 13e3, IL = 3, gA = 2e4, PV = 15e3, MV = {
28379
28379
  [bc.id]: bc,
28380
28380
  [Ps.id]: Ps,
28381
28381
  [wc.id]: wc,
@@ -28410,7 +28410,7 @@ const It = "0x0000000000000000000000000000000000000000", vA = BigInt(
28410
28410
  [Ps.id]: 299e5,
28411
28411
  [wc.id]: 299e5,
28412
28412
  [Tu.id]: 299e5
28413
- }, JX = {
28413
+ }, ZX = {
28414
28414
  [Ps.id]: "https://opt-mainnet.g.alchemy.com/v2",
28415
28415
  [bc.id]: "https://polygon-mainnet.g.alchemy.com/v2",
28416
28416
  [wc.id]: "https://arb-mainnet.g.alchemy.com/v2",
@@ -31908,22 +31908,22 @@ const It = "0x0000000000000000000000000000000000000000", vA = BigInt(
31908
31908
  symbol: "WBTC",
31909
31909
  decimals: 8,
31910
31910
  value: ""
31911
- }, eZ = {
31911
+ }, JX = {
31912
31912
  address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40",
31913
31913
  symbol: "tBTC",
31914
31914
  decimals: ft,
31915
31915
  value: ""
31916
- }, tZ = {
31916
+ }, eZ = {
31917
31917
  address: "0x5979D7b546E38E414F7E9822514be443A4800529",
31918
31918
  symbol: "wstETH",
31919
31919
  decimals: ft,
31920
31920
  value: ""
31921
- }, nZ = {
31921
+ }, tZ = {
31922
31922
  address: "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
31923
31923
  symbol: "USDT",
31924
31924
  decimals: 6,
31925
31925
  value: ""
31926
- }, rZ = {
31926
+ }, nZ = {
31927
31927
  address: "0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",
31928
31928
  symbol: "SOL",
31929
31929
  decimals: 9,
@@ -31933,7 +31933,7 @@ const It = "0x0000000000000000000000000000000000000000", vA = BigInt(
31933
31933
  symbol: "USDC",
31934
31934
  decimals: 6,
31935
31935
  value: ""
31936
- }, aZ = {
31936
+ }, rZ = {
31937
31937
  address: "0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca",
31938
31938
  symbol: "USDbC",
31939
31939
  decimals: 6,
@@ -31943,7 +31943,7 @@ const It = "0x0000000000000000000000000000000000000000", vA = BigInt(
31943
31943
  symbol: "WETH",
31944
31944
  decimals: ft,
31945
31945
  value: ""
31946
- }, iZ = {
31946
+ }, aZ = {
31947
31947
  address: "0x2ae3f1ec7f1f5012cfeab0185bfc7aa3cf0dec22",
31948
31948
  symbol: "cbETH",
31949
31949
  decimals: ft,
@@ -31958,12 +31958,12 @@ const It = "0x0000000000000000000000000000000000000000", vA = BigInt(
31958
31958
  symbol: "rETH",
31959
31959
  decimals: ft,
31960
31960
  value: ""
31961
- }, oZ = {
31961
+ }, iZ = {
31962
31962
  address: "0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b",
31963
31963
  symbol: "tBTC",
31964
31964
  decimals: ft,
31965
31965
  value: ""
31966
- }, lZ = {
31966
+ }, oZ = {
31967
31967
  address: "0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452",
31968
31968
  symbol: "wstETH",
31969
31969
  decimals: ft,
@@ -31988,7 +31988,7 @@ const It = "0x0000000000000000000000000000000000000000", vA = BigInt(
31988
31988
  symbol: "WETH",
31989
31989
  decimals: ft,
31990
31990
  value: ""
31991
- }, sZ = {
31991
+ }, lZ = {
31992
31992
  address: "0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9",
31993
31993
  symbol: "sUSD",
31994
31994
  decimals: ft,
@@ -32003,22 +32003,22 @@ const It = "0x0000000000000000000000000000000000000000", vA = BigInt(
32003
32003
  symbol: "WBTC",
32004
32004
  decimals: 8,
32005
32005
  value: ""
32006
- }, uZ = {
32006
+ }, sZ = {
32007
32007
  address: "0xe405de8f52ba7559f9df3c368500b6e6ae6cee49",
32008
32008
  symbol: "sETH",
32009
32009
  decimals: ft,
32010
32010
  value: ""
32011
- }, cZ = {
32011
+ }, uZ = {
32012
32012
  address: "0x350a791bfc2c21f9ed5d10980dad2e2638ffa7f6",
32013
32013
  symbol: "LINK",
32014
32014
  decimals: ft,
32015
32015
  value: ""
32016
- }, dZ = {
32016
+ }, cZ = {
32017
32017
  address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40",
32018
32018
  symbol: "tBTC",
32019
32019
  decimals: ft,
32020
32020
  value: ""
32021
- }, fZ = {
32021
+ }, dZ = {
32022
32022
  address: "0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb",
32023
32023
  symbol: "wstETH",
32024
32024
  decimals: ft,
@@ -32038,7 +32038,7 @@ const It = "0x0000000000000000000000000000000000000000", vA = BigInt(
32038
32038
  symbol: "USDC",
32039
32039
  decimals: 6,
32040
32040
  value: ""
32041
- }, pZ = {
32041
+ }, fZ = {
32042
32042
  address: "0x553d3d295e0f695b9228246232edf400ed3560b5",
32043
32043
  symbol: "PAXG",
32044
32044
  decimals: ft,
@@ -32063,7 +32063,7 @@ const It = "0x0000000000000000000000000000000000000000", vA = BigInt(
32063
32063
  symbol: "DAI",
32064
32064
  decimals: ft,
32065
32065
  value: ""
32066
- }, mZ = {
32066
+ }, pZ = {
32067
32067
  address: "0x236aa50979d5f3de3bd1eeb40e81137f22ab794b",
32068
32068
  symbol: "tBTC",
32069
32069
  decimals: ft,
@@ -32115,21 +32115,12 @@ const It = "0x0000000000000000000000000000000000000000", vA = BigInt(
32115
32115
  WETH: zL,
32116
32116
  USDC: y9
32117
32117
  }
32118
- }, O9 = /* @__PURE__ */ new Map([
32119
- ["0x7d3c9c6566375d7ad6e89169ca5c01b5edc15364", 0.5],
32120
- // SOLBULL2X_OPTIMISM
32121
- ["0xcc7d6ed524760539311ed0cdb41d0852b4eb77eb", 0.9],
32122
- // SOLBULL3X_OPTIMISM
32123
- ["0x49bdb78f48db6e0ced4d4475b6d2047539df1412", 0.4],
32124
- // DOGEBULL2X_OPTIMISM
32125
- ["0x1bae4efc60269fe66ecec7252825d6a0250a02ee", 1]
32126
- // SUIBULL2X_OPTIMISM
32127
- ]), hZ = "https://hermes.pyth.network", _9 = "https://flat.money/flatcoin", k9 = "https://v1.flat.money/flatcoin", rC = {
32118
+ }, mZ = "https://hermes.pyth.network", O9 = "https://flat.money/flatcoin", _9 = "https://v1.flat.money/flatcoin", rC = {
32128
32119
  RETH_BASE: "0xdb0cd65dcc7fe07003ce1201f91e1f966fa95768",
32129
32120
  WBTC_OPTIMISM: "0x6d857e9d24a7566bb72a3fb0847a3e0e4e1c2879"
32130
- }, N9 = Object.values(
32121
+ }, k9 = Object.values(
32131
32122
  rC
32132
- ), L9 = {
32123
+ ), N9 = {
32133
32124
  [rC.RETH_BASE]: {
32134
32125
  symbol: C1.symbol,
32135
32126
  decimals: C1.decimals,
@@ -32160,7 +32151,7 @@ const It = "0x0000000000000000000000000000000000000000", vA = BigInt(
32160
32151
  WETH_USDC_ARBITRUM: "0x450bb6774dd8a756274e0ab4107953259d2ac541",
32161
32152
  SUI_ARBITRUM: "0x6ecf2133e2c9751caadcb6958b9654bae198a797",
32162
32153
  DOGE_ARBITRUM: "0x6853ea96ff216fab11d2d930ce3c508556a4bdc4"
32163
- }, P9 = Object.values(fm), M9 = {
32154
+ }, L9 = Object.values(fm), P9 = {
32164
32155
  [fm.SOL_ARBITRUM]: Vb,
32165
32156
  [fm.BTC_ARBITRUM]: bA,
32166
32157
  [fm.WETH_WETH_ARBITRUM]: sT,
@@ -32186,11 +32177,11 @@ function TA(e, t, a) {
32186
32177
  const sa = (e, t) => {
32187
32178
  var a;
32188
32179
  return ((a = d9[t]) == null ? void 0 : a[e]) ?? It;
32189
- }, I9 = (e) => f9[e], $o = (e) => e === It, F9 = (e) => e && `${e.substring(0, 6)}...${e.substring(
32180
+ }, M9 = (e) => f9[e], $o = (e) => e === It, I9 = (e) => e && `${e.substring(0, 6)}...${e.substring(
32190
32181
  e.length - 4,
32191
32182
  e.length
32192
- )}`, $9 = (e) => e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","), xa = (e, t) => (e == null ? void 0 : e.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
32193
- var B9 = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, A1 = Math.ceil, Ds = Math.floor, cl = "[BigNumber Error] ", U_ = cl + "Number primitive has more than 15 significant digits: ", vu = 1e14, Ht = 14, D1 = 9007199254740991, R1 = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Nf = 1e7, ui = 1e9;
32183
+ )}`, F9 = (e) => e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","), xa = (e, t) => (e == null ? void 0 : e.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
32184
+ var $9 = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, A1 = Math.ceil, Ds = Math.floor, cl = "[BigNumber Error] ", U_ = cl + "Number primitive has more than 15 significant digits: ", vu = 1e14, Ht = 14, D1 = 9007199254740991, R1 = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Nf = 1e7, ui = 1e9;
32194
32185
  function ZL(e) {
32195
32186
  var t, a, o, u = F.prototype = { constructor: F, toString: null, valueOf: null }, f = new F(1), p = 20, h = 4, g = -7, w = 21, T = -1e7, E = 1e7, R = !1, D = 1, _ = 0, P = {
32196
32187
  prefix: "",
@@ -32219,7 +32210,7 @@ function ZL(e) {
32219
32210
  }
32220
32211
  ee = String(k);
32221
32212
  } else {
32222
- if (!B9.test(ee = String(k))) return o(U, ee, H);
32213
+ if (!$9.test(ee = String(k))) return o(U, ee, H);
32223
32214
  U.s = ee.charCodeAt(0) == 45 ? (ee = ee.slice(1), -1) : 1;
32224
32215
  }
32225
32216
  (z = ee.indexOf(".")) > -1 && (ee = ee.replace(".", "")), (V = ee.search(/e/i)) > 0 ? (z < 0 && (z = V), z += +ee.slice(V + 1), ee = ee.substring(0, V)) : z < 0 && (z = ee.length);
@@ -32808,10 +32799,10 @@ function Ad(e, t, a) {
32808
32799
  return e;
32809
32800
  }
32810
32801
  var Ze = ZL();
32811
- const HT = (e, t) => e / t * 100, xA = (e, t = ft) => new Ze(e).shiftedBy(-t).toNumber(), uT = (e) => e < 1 ? 4 : e < 10 ? 3 : 2, aC = (e, t = ft) => new Ze(e.toString()).shiftedBy(t).toFixed(0), j_ = (e, t, a, o) => new Ze(t).dividedBy(a).multipliedBy(e).shiftedBy(-(o || ft)).toNumber(), vZ = (e) => !!e && typeof e == "bigint", JL = (e) => !isNaN(parseFloat(e)) && !isNaN(e), WT = (e) => {
32802
+ const HT = (e, t) => e / t * 100, xA = (e, t = ft) => new Ze(e).shiftedBy(-t).toNumber(), uT = (e) => e < 1 ? 4 : e < 10 ? 3 : 2, aC = (e, t = ft) => new Ze(e.toString()).shiftedBy(t).toFixed(0), j_ = (e, t, a, o) => new Ze(t).dividedBy(a).multipliedBy(e).shiftedBy(-(o || ft)).toNumber(), hZ = (e) => !!e && typeof e == "bigint", JL = (e) => !isNaN(parseFloat(e)) && !isNaN(e), WT = (e) => {
32812
32803
  const t = new Ze(0.01), a = new Ze(e), o = !a.isZero() && a.lt(t) ? t : a;
32813
32804
  return BigInt(o.multipliedBy(100).toFixed(0));
32814
- }, U9 = ({
32805
+ }, B9 = ({
32815
32806
  vaultAddress: e,
32816
32807
  swapData: t,
32817
32808
  sendTokenAddress: a,
@@ -32824,7 +32815,7 @@ const HT = (e, t) => e / t * 100, xA = (e, t = ft) => new Ze(e).shiftedBy(-t).to
32824
32815
  }) => {
32825
32816
  const w = new Ze(h).multipliedBy(1 - g / 100).toFixed(0), T = [sC(p, { size: 32 }), t];
32826
32817
  return [e, [[a, o, T], [u, w]], f];
32827
- }, j9 = ({
32818
+ }, U9 = ({
32828
32819
  receiveAssetAddress: e,
32829
32820
  slippage: t,
32830
32821
  assets: a,
@@ -32853,7 +32844,7 @@ const HT = (e, t) => e / t * 100, xA = (e, t = ft) => new Ze(e).shiftedBy(-t).to
32853
32844
  p.times(1 - t / 100).toFixed(0, Ze.ROUND_DOWN)
32854
32845
  ]
32855
32846
  ];
32856
- }, z9 = ({
32847
+ }, j9 = ({
32857
32848
  assetAddress: e,
32858
32849
  swapData: t,
32859
32850
  swapParams: a,
@@ -32896,7 +32887,7 @@ const HT = (e, t) => e / t * 100, xA = (e, t = ft) => new Ze(e).shiftedBy(-t).to
32896
32887
  }, SA = (e, t) => {
32897
32888
  var a;
32898
32889
  return ((a = Og[t]) == null ? void 0 : a.nativeTokenSymbol) === e;
32899
- }, H9 = ({
32890
+ }, z9 = ({
32900
32891
  nativeTokenBalance: e,
32901
32892
  tokenDecimals: t,
32902
32893
  gasPrice: a
@@ -32905,15 +32896,15 @@ const HT = (e, t) => e / t * 100, xA = (e, t = ft) => new Ze(e).shiftedBy(-t).to
32905
32896
  o
32906
32897
  );
32907
32898
  return u.gt("0") ? u : new Ze("0");
32908
- }, W9 = (e) => typeof e == "object" && e !== null && "message" in e && typeof e.message == "string", V9 = (e) => {
32909
- if (W9(e))
32899
+ }, H9 = (e) => typeof e == "object" && e !== null && "message" in e && typeof e.message == "string", W9 = (e) => {
32900
+ if (H9(e))
32910
32901
  return e;
32911
32902
  try {
32912
32903
  return new Error(JSON.stringify(e));
32913
32904
  } catch {
32914
32905
  return new Error(String(e));
32915
32906
  }
32916
- }, G9 = (e) => V9(e).message, yZ = (e) => {
32907
+ }, V9 = (e) => W9(e).message, vZ = (e) => {
32917
32908
  const t = Object.values(e).reduce(
32918
32909
  (a, { type: o }) => (a[o] = a[o] + 1, a),
32919
32910
  { string: 0, number: 0 }
@@ -32923,7 +32914,7 @@ const HT = (e, t) => e / t * 100, xA = (e, t = ft) => new Ze(e).shiftedBy(-t).to
32923
32914
  if (t.number > 40)
32924
32915
  throw new Error("logger params must contain up to 40 numeric values");
32925
32916
  return !0;
32926
- }, Y9 = (e, t = 150) => e.length > t ? e.substring(0, t) : e, eP = ({
32917
+ }, G9 = (e, t = 150) => e.length > t ? e.substring(0, t) : e, eP = ({
32927
32918
  errorMessage: e,
32928
32919
  abiErrors: t
32929
32920
  }) => {
@@ -32932,7 +32923,7 @@ const HT = (e, t) => e / t * 100, xA = (e, t = ft) => new Ze(e).shiftedBy(-t).to
32932
32923
  const a = t.find((u) => e.includes(u)), [o] = e.split(a ? "." : "Contract").map((u) => u.trim());
32933
32924
  return h9[a ?? e] ?? v9[a ?? e] ?? {
32934
32925
  title: "Transaction failed",
32935
- hint: `${Y9(o ?? "")} ${a ? `: ${a}` : ""}`
32926
+ hint: `${G9(o ?? "")} ${a ? `: ${a}` : ""}`
32936
32927
  };
32937
32928
  }, VT = (e, t = 0) => `${e.toLocaleString("en-US", { maximumFractionDigits: t })}%`, Bo = ({
32938
32929
  value: e,
@@ -32949,7 +32940,7 @@ const HT = (e, t) => e / t * 100, xA = (e, t = ft) => new Ze(e).shiftedBy(-t).to
32949
32940
  }).format(u ? xA(e) : Number(e)), $b = (e, t, a = 0) => {
32950
32941
  const o = HT(+e, t);
32951
32942
  return VT(o, a);
32952
- }, q9 = (e) => JL(e) ? new Ze(e).toFixed() : "", Dv = (e, t) => q9(new Ze(e).toFixed(t)), O1 = ({
32943
+ }, Y9 = (e) => JL(e) ? new Ze(e).toFixed() : "", Dv = (e, t) => Y9(new Ze(e).toFixed(t)), O1 = ({
32953
32944
  currency: e,
32954
32945
  value: t
32955
32946
  }) => e === "USD" ? Bo({ value: t }) : `${IV[e]} ${Dv(
@@ -32957,8 +32948,8 @@ const HT = (e, t) => e / t * 100, xA = (e, t = ft) => new Ze(e).shiftedBy(-t).to
32957
32948
  FV[e]
32958
32949
  )}`, tP = (e, t) => new Ze(
32959
32950
  new Ze(e).toFixed(t, Ze.ROUND_DOWN)
32960
- ).toString(), Q9 = (e) => typeof e == "bigint" && e !== BigInt(0);
32961
- function K9(e, t, a) {
32951
+ ).toString(), q9 = (e) => typeof e == "bigint" && e !== BigInt(0);
32952
+ function Q9(e, t, a) {
32962
32953
  if (!e || !t)
32963
32954
  return {
32964
32955
  balanceInUsd: "",
@@ -32973,9 +32964,9 @@ function K9(e, t, a) {
32973
32964
  balanceInUsdNumber: o
32974
32965
  };
32975
32966
  }
32976
- const nP = (e, t) => Q9(e) ? {
32967
+ const nP = (e, t) => q9(e) ? {
32977
32968
  rawBalance: (e == null ? void 0 : e.toString()) ?? "",
32978
- ...K9(
32969
+ ...Q9(
32979
32970
  vc(e, ft),
32980
32971
  t == null ? void 0 : t.toString()
32981
32972
  )
@@ -32983,13 +32974,13 @@ const nP = (e, t) => Q9(e) ? {
32983
32974
  rawBalance: "",
32984
32975
  balanceInUsd: "",
32985
32976
  balanceInUsdNumber: 0
32986
- }, X9 = typeof window < "u", rP = (e) => xa(GV, e) || xa(YV, e), aP = (e) => N9.some(
32977
+ }, K9 = typeof window < "u", rP = (e) => xa(GV, e) || xa(YV, e), aP = (e) => k9.some(
32987
32978
  (t) => xa(t, e)
32988
- ), iP = (e) => L9[e.toLowerCase()] ?? {
32979
+ ), iP = (e) => N9[e.toLowerCase()] ?? {
32989
32980
  symbol: "",
32990
32981
  decimals: 18,
32991
32982
  address: It
32992
- }, Z9 = (e) => xa(e, QL) ? k9 : _9, oP = (e) => `eth_${e}`, J9 = ({
32983
+ }, X9 = (e) => xa(e, QL) ? _9 : O9, oP = (e) => `eth_${e}`, Z9 = ({
32993
32984
  action: e,
32994
32985
  log: t,
32995
32986
  symbol: a,
@@ -33004,7 +32995,7 @@ const nP = (e, t) => Q9(e) ? {
33004
32995
  $V[e].forEach((p) => {
33005
32996
  t == null || t(p, f);
33006
32997
  });
33007
- }, eG = (e) => P9.some((t) => xa(t, e)), tG = (e) => M9[e.toLowerCase()] ?? {
32998
+ }, J9 = (e) => L9.some((t) => xa(t, e)), eG = (e) => P9[e.toLowerCase()] ?? {
33008
32999
  symbol: "",
33009
33000
  decimals: 18,
33010
33001
  address: It
@@ -33084,7 +33075,7 @@ const z_ = {
33084
33075
  getSwapData: () => Promise.resolve(null),
33085
33076
  updatePoolConfig: so,
33086
33077
  addPoolConfig: so
33087
- }), nG = (e) => (t, a) => {
33078
+ }), tG = (e) => (t, a) => {
33088
33079
  switch (a.type) {
33089
33080
  case "SET_POOL_ADDRESS":
33090
33081
  return {
@@ -33175,7 +33166,7 @@ const z_ = {
33175
33166
  const o = t.transactions.find(
33176
33167
  (f) => f.txHash === a.payload.txHash
33177
33168
  );
33178
- return a.payload.status === "success" && o && J9({
33169
+ return a.payload.status === "success" && o && Z9({
33179
33170
  action: o.action,
33180
33171
  log: e,
33181
33172
  symbol: o.symbol,
@@ -33216,7 +33207,7 @@ const z_ = {
33216
33207
  default:
33217
33208
  return t;
33218
33209
  }
33219
- }, gZ = ({
33210
+ }, yZ = ({
33220
33211
  children: e,
33221
33212
  initialState: t,
33222
33213
  actions: {
@@ -33238,7 +33229,7 @@ const z_ = {
33238
33229
  }
33239
33230
  }) => {
33240
33231
  const [X, F] = Rm(
33241
- nG(D),
33232
+ tG(D),
33242
33233
  lP(t)
33243
33234
  ), G = Ge(
33244
33235
  (V) => {
@@ -33327,7 +33318,7 @@ const z_ = {
33327
33318
  ]
33328
33319
  );
33329
33320
  return /* @__PURE__ */ A.jsx(uP.Provider, { value: z, children: /* @__PURE__ */ A.jsx(sP.Provider, { value: X, children: e }) });
33330
- }, ml = () => Qt(sP), Er = () => Qt(uP), wZ = () => Er().setPoolAddress, bZ = () => Er().updateSendTokenInput, TZ = () => Er().updateReceiveTokenInput, xZ = () => Er().updateTradingSettings, SZ = () => Er().setTradingType, EZ = () => Er().updateTradingModal, rG = () => Er().updatePoolFallbackData, aG = () => Er().onTransactionError, iG = () => Er().onTradingSettleError, oG = () => Er().onTransactionSuccess, cP = () => Er().onTransactionEstimationError, lG = () => Er().onTokenSelector, EA = () => Er().onLog, sG = () => Er().onSimulateTransaction, CA = () => {
33321
+ }, ml = () => Qt(sP), Er = () => Qt(uP), gZ = () => Er().setPoolAddress, wZ = () => Er().updateSendTokenInput, bZ = () => Er().updateReceiveTokenInput, TZ = () => Er().updateTradingSettings, xZ = () => Er().setTradingType, SZ = () => Er().updateTradingModal, nG = () => Er().updatePoolFallbackData, rG = () => Er().onTransactionError, aG = () => Er().onTradingSettleError, iG = () => Er().onTransactionSuccess, cP = () => Er().onTransactionEstimationError, oG = () => Er().onTokenSelector, EA = () => Er().onLog, lG = () => Er().onSimulateTransaction, CA = () => {
33331
33322
  const e = Er().getSwapData, {
33332
33323
  settings: { selectedAggregators: t }
33333
33324
  } = ml();
@@ -33346,7 +33337,7 @@ const z_ = {
33346
33337
  }),
33347
33338
  [e, t]
33348
33339
  );
33349
- }, CZ = () => Er().updatePoolConfig, AZ = () => Er().addPoolConfig, uG = () => [
33340
+ }, EZ = () => Er().updatePoolConfig, CZ = () => Er().addPoolConfig, sG = () => [
33350
33341
  ml().poolAddress,
33351
33342
  Er().setPoolAddress
33352
33343
  ], vt = () => {
@@ -33355,14 +33346,14 @@ const z_ = {
33355
33346
  }, GT = () => {
33356
33347
  const { poolConfigMap: e } = ml();
33357
33348
  return $e(() => Object.values(e), [e]);
33358
- }, DZ = (e) => {
33349
+ }, AZ = (e) => {
33359
33350
  const t = GT();
33360
33351
  return $e(
33361
33352
  () => t.some((a) => a.address === e),
33362
33353
  [t, e]
33363
33354
  );
33364
33355
  }, Rv = () => {
33365
- const { poolFallbackData: e, poolAddress: t } = ml(), a = rG();
33356
+ const { poolFallbackData: e, poolAddress: t } = ml(), a = nG();
33366
33357
  return [
33367
33358
  e.address === t ? e : { address: t },
33368
33359
  a
@@ -33379,7 +33370,7 @@ const z_ = {
33379
33370
  ], Id = () => [ml().modal, Er().updateTradingModal], Fd = () => [ml().type, Er().setTradingType], Ov = () => ml().type === "deposit", Yf = () => [
33380
33371
  ml().transactions,
33381
33372
  Er().updateTransactions
33382
- ], cG = () => ml().defaultChainId, Cr = () => {
33373
+ ], uG = () => ml().defaultChainId, Cr = () => {
33383
33374
  const { address: e, status: t, connector: a, isConnected: o } = lk();
33384
33375
  return {
33385
33376
  account: o ? e : void 0,
@@ -33389,7 +33380,7 @@ const z_ = {
33389
33380
  isConnected: o
33390
33381
  };
33391
33382
  }, _1 = (e, t) => t.some(({ id: a }) => a === e), Nm = () => {
33392
- const { chain: e } = lk(), { chains: t } = A3(), { switchChain: a, switchChainAsync: o } = D3(), u = cG(), f = e == null ? void 0 : e.id, p = _1(f, t), h = u && _1(u, t) ? u : t[0].id;
33383
+ const { chain: e } = lk(), { chains: t } = A3(), { switchChain: a, switchChainAsync: o } = D3(), u = uG(), f = e == null ? void 0 : e.id, p = _1(f, t), h = u && _1(u, t) ? u : t[0].id;
33393
33384
  return {
33394
33385
  chain: e,
33395
33386
  isSupported: p,
@@ -33415,7 +33406,7 @@ const z_ = {
33415
33406
  enabled: !u,
33416
33407
  refetchInterval: a0
33417
33408
  }
33418
- }), RZ = () => {
33409
+ }), DZ = () => {
33419
33410
  const { account: e } = Cr(), [t, a] = Lt(!1);
33420
33411
  return pt(() => {
33421
33412
  a(!!e);
@@ -33424,16 +33415,16 @@ const z_ = {
33424
33415
  ...e,
33425
33416
  query: { ...e == null ? void 0 : e.query, staleTime: a0 }
33426
33417
  });
33427
- function dG(e, t) {
33418
+ function cG(e, t) {
33428
33419
  var a = Object.setPrototypeOf;
33429
33420
  a ? a(e, t) : e.__proto__ = t;
33430
33421
  }
33431
- function fG(e, t) {
33422
+ function dG(e, t) {
33432
33423
  t === void 0 && (t = e.constructor);
33433
33424
  var a = Error.captureStackTrace;
33434
33425
  a && a(e, t);
33435
33426
  }
33436
- var pG = /* @__PURE__ */ function() {
33427
+ var fG = /* @__PURE__ */ function() {
33437
33428
  var e = function(a, o) {
33438
33429
  return e = Object.setPrototypeOf || {
33439
33430
  __proto__: []
@@ -33452,19 +33443,19 @@ var pG = /* @__PURE__ */ function() {
33452
33443
  }
33453
33444
  t.prototype = a === null ? Object.create(a) : (o.prototype = a.prototype, new o());
33454
33445
  };
33455
- }(), mG = function(e) {
33456
- pG(t, e);
33446
+ }(), pG = function(e) {
33447
+ fG(t, e);
33457
33448
  function t(a, o) {
33458
33449
  var u = this.constructor, f = e.call(this, a, o) || this;
33459
33450
  return Object.defineProperty(f, "name", {
33460
33451
  value: u.name,
33461
33452
  enumerable: !1,
33462
33453
  configurable: !0
33463
- }), dG(f, u.prototype), fG(f), f;
33454
+ }), cG(f, u.prototype), dG(f), f;
33464
33455
  }
33465
33456
  return t;
33466
33457
  }(Error);
33467
- class YT extends mG {
33458
+ class YT extends pG {
33468
33459
  constructor({
33469
33460
  message: t = p9,
33470
33461
  link: a,
@@ -33477,7 +33468,7 @@ class YT extends mG {
33477
33468
  super(t), this.link = a, this.txArgs = u, this.account = f, this.slippage = o, this.functionName = h, this.onBypass = p;
33478
33469
  }
33479
33470
  }
33480
- const hG = async () => {
33471
+ const mG = async () => {
33481
33472
  }, k1 = (e) => {
33482
33473
  const t = e[e.length - 1], a = typeof t == "object" && t !== null && ("value" in t || "gas" in t), o = a ? t : {}, u = a ? e.slice(0, -1) : e;
33483
33474
  return { transactionOverrides: o, argumentsWithoutOverrides: u };
@@ -33487,7 +33478,7 @@ const hG = async () => {
33487
33478
  contractId: a,
33488
33479
  onSettled: o
33489
33480
  }) => {
33490
- const { account: u } = Cr(), { chainId: f, supportedChainId: p } = Nm(), h = O3({ chainId: f }), g = cC({ chainId: f }), w = I9(a), T = t ?? sa(a, f ?? p), E = sG(), { writeContract: R } = _3({
33481
+ const { account: u } = Cr(), { chainId: f, supportedChainId: p } = Nm(), h = O3({ chainId: f }), g = cC({ chainId: f }), w = M9(a), T = t ?? sa(a, f ?? p), E = lG(), { writeContract: R } = _3({
33491
33482
  mutation: {
33492
33483
  onSettled: o
33493
33484
  }
@@ -33553,7 +33544,7 @@ const hG = async () => {
33553
33544
  }
33554
33545
  return { data: null, error: B_ };
33555
33546
  } catch (F) {
33556
- return console.debug("Failed to simulate:", F), { data: null, error: G9(F) };
33547
+ return console.debug("Failed to simulate:", F), { data: null, error: V9(F) };
33557
33548
  }
33558
33549
  },
33559
33550
  [
@@ -33634,10 +33625,10 @@ const hG = async () => {
33634
33625
  ]
33635
33626
  );
33636
33627
  return {
33637
- send: f && g ? P : hG,
33628
+ send: f && g ? P : mG,
33638
33629
  estimate: D
33639
33630
  };
33640
- }, vG = (e) => k3({
33631
+ }, hG = (e) => k3({
33641
33632
  ...e,
33642
33633
  query: {
33643
33634
  ...e == null ? void 0 : e.query,
@@ -33670,7 +33661,7 @@ const hG = async () => {
33670
33661
  args: o
33671
33662
  }));
33672
33663
  return f == null ? void 0 : f.result;
33673
- }, OZ = ({
33664
+ }, RZ = ({
33674
33665
  disabled: e,
33675
33666
  functionName: t,
33676
33667
  address: a,
@@ -33707,7 +33698,7 @@ const hG = async () => {
33707
33698
  pt(() => {
33708
33699
  t && a.refetchQueries({ queryKey: e, stale: !0 });
33709
33700
  }, [t, o]);
33710
- }, yG = [
33701
+ }, vG = [
33711
33702
  "balanceOf",
33712
33703
  "getFundSummary",
33713
33704
  "getFundComposition",
@@ -33717,7 +33708,7 @@ const hG = async () => {
33717
33708
  "allowance",
33718
33709
  "getExitRemainingCooldown",
33719
33710
  "tokenPrice"
33720
- ], gG = ["allowance"], H_ = (e, t) => {
33711
+ ], yG = ["allowance"], H_ = (e, t) => {
33721
33712
  var a, o;
33722
33713
  if (e[0] === "readContract")
33723
33714
  return t.includes(
@@ -33733,11 +33724,11 @@ const hG = async () => {
33733
33724
  }, RA = () => {
33734
33725
  const e = fC(), t = Ge(() => {
33735
33726
  e.invalidateQueries({
33736
- predicate: ({ queryKey: o }) => H_(o, gG)
33727
+ predicate: ({ queryKey: o }) => H_(o, yG)
33737
33728
  });
33738
33729
  }, [e]), a = Ge(() => {
33739
33730
  e.invalidateQueries({
33740
- predicate: ({ queryKey: o }) => H_(o, yG)
33731
+ predicate: ({ queryKey: o }) => H_(o, vG)
33741
33732
  });
33742
33733
  }, [e]);
33743
33734
  return { invalidateAllowanceQueries: t, invalidateTradingQueries: a };
@@ -33747,7 +33738,7 @@ const hG = async () => {
33747
33738
  watch: a = !1
33748
33739
  }) => {
33749
33740
  var E, R;
33750
- const { account: o } = Cr(), u = vt(), f = SA(e, u.chainId), { data: p } = vG({
33741
+ const { account: o } = Cr(), u = vt(), f = SA(e, u.chainId), { data: p } = hG({
33751
33742
  chainId: u.chainId,
33752
33743
  query: {
33753
33744
  enabled: f
@@ -33784,7 +33775,7 @@ const hG = async () => {
33784
33775
  }), iC({
33785
33776
  watch: a && !f,
33786
33777
  queryKey: T
33787
- }), f ? H9({
33778
+ }), f ? z9({
33788
33779
  nativeTokenBalance: vc(
33789
33780
  (h == null ? void 0 : h.value) ?? BigInt(0),
33790
33781
  (h == null ? void 0 : h.decimals) ?? ft
@@ -33798,7 +33789,7 @@ const hG = async () => {
33798
33789
  }, OA = () => {
33799
33790
  const [{ value: e, symbol: t, address: a }] = gn(), o = $d({ symbol: t, address: a });
33800
33791
  return new Ze(e || 0).gt(o ?? 0);
33801
- }, wG = ({ address: e, chainId: t }) => [
33792
+ }, gG = ({ address: e, chainId: t }) => [
33802
33793
  {
33803
33794
  address: sa("factory", t),
33804
33795
  abi: Av,
@@ -33812,25 +33803,25 @@ const hG = async () => {
33812
33803
  functionName: "withdrawalContracts",
33813
33804
  args: [e]
33814
33805
  }
33815
- ], bG = (e) => ({
33806
+ ], wG = (e) => ({
33816
33807
  isUserDhedgePool: e[0].result,
33817
33808
  withdrawalContractAddress: e[1].result
33818
- }), TG = ({
33809
+ }), bG = ({
33819
33810
  address: e,
33820
33811
  chainId: t
33821
33812
  }) => Xl({
33822
- contracts: wG({ address: e, chainId: t }),
33813
+ contracts: gG({ address: e, chainId: t }),
33823
33814
  query: {
33824
33815
  enabled: !$o(e),
33825
- select: bG
33816
+ select: wG
33826
33817
  }
33827
33818
  }), hP = () => {
33828
- const { account: e = It } = Cr(), { chainId: t, supportedChainId: a } = Nm(), { data: { isUserDhedgePool: o } = {} } = TG({
33819
+ const { account: e = It } = Cr(), { chainId: t, supportedChainId: a } = Nm(), { data: { isUserDhedgePool: o } = {} } = bG({
33829
33820
  address: e,
33830
33821
  chainId: t ?? a
33831
33822
  });
33832
33823
  return !!o;
33833
- }, xG = ({ address: e, chainId: t }) => [
33824
+ }, TG = ({ address: e, chainId: t }) => [
33834
33825
  {
33835
33826
  address: e ?? It,
33836
33827
  abi: jf,
@@ -33858,17 +33849,17 @@ const hG = async () => {
33858
33849
  functionName: "getAssetGuard",
33859
33850
  args: [sa("aaveLendingPoolV3", t)]
33860
33851
  }
33861
- ], SG = (e) => ({
33852
+ ], xG = (e) => ({
33862
33853
  poolManagerLogic: e[0].result,
33863
33854
  isCustomCooldownDepositAllowed: e[1].result,
33864
33855
  customCooldown: e[2].result,
33865
33856
  aaveAssetGuardAddress: e[3].result
33866
33857
  }), qT = ({ address: e, chainId: t }) => Xl({
33867
- contracts: xG({ address: e, chainId: t }),
33858
+ contracts: TG({ address: e, chainId: t }),
33868
33859
  query: {
33869
33860
  enabled: !!e && !$o(e),
33870
33861
  staleTime: 1 / 0,
33871
- select: SG
33862
+ select: xG
33872
33863
  }
33873
33864
  }), vP = ({
33874
33865
  address: e,
@@ -33879,7 +33870,7 @@ const hG = async () => {
33879
33870
  chainId: t
33880
33871
  });
33881
33872
  return a.managerLogicAddress ?? o;
33882
- }, EG = ({
33873
+ }, SG = ({
33883
33874
  address: e,
33884
33875
  chainId: t,
33885
33876
  account: a
@@ -33903,7 +33894,7 @@ const hG = async () => {
33903
33894
  args: [a ?? It],
33904
33895
  chainId: t
33905
33896
  }
33906
- ], CG = (e) => ({
33897
+ ], EG = (e) => ({
33907
33898
  getFeeIncreaseInfo: e[0].result,
33908
33899
  minDepositUSD: e[1].result,
33909
33900
  isMemberAllowed: e[2].result
@@ -33912,7 +33903,7 @@ const hG = async () => {
33912
33903
  chainId: t
33913
33904
  }) => {
33914
33905
  const a = vP({ address: e, chainId: t }), { account: o = It } = Cr(), u = Xl({
33915
- contracts: EG({
33906
+ contracts: SG({
33916
33907
  address: a ?? It,
33917
33908
  chainId: t,
33918
33909
  account: o
@@ -33920,11 +33911,11 @@ const hG = async () => {
33920
33911
  query: {
33921
33912
  enabled: !!a && !$o(a),
33922
33913
  staleTime: 1 / 0,
33923
- select: CG
33914
+ select: EG
33924
33915
  }
33925
33916
  });
33926
33917
  return pP({ error: u.error, status: u.status }), u;
33927
- }, AG = ({
33918
+ }, CG = ({
33928
33919
  chainId: e,
33929
33920
  address: t
33930
33921
  }) => [
@@ -33940,7 +33931,7 @@ const hG = async () => {
33940
33931
  functionName: "getSupportedAssets",
33941
33932
  chainId: e
33942
33933
  }
33943
- ], DG = (e) => {
33934
+ ], AG = (e) => {
33944
33935
  var t;
33945
33936
  return {
33946
33937
  getFundComposition: e[0].result,
@@ -33952,83 +33943,83 @@ const hG = async () => {
33952
33943
  }) => {
33953
33944
  const a = vP({ address: e, chainId: t });
33954
33945
  return Xl({
33955
- contracts: AG({
33946
+ contracts: CG({
33956
33947
  address: a ?? It,
33957
33948
  chainId: t
33958
33949
  }),
33959
33950
  query: {
33960
33951
  enabled: !!a && !$o(a),
33961
- select: DG,
33952
+ select: AG,
33962
33953
  refetchInterval: a0
33963
33954
  }
33964
33955
  });
33965
33956
  };
33966
- var W_ = 1 / 0, gP = 9007199254740991, RG = 17976931348623157e292, V_ = NaN, OG = "[object Function]", _G = "[object GeneratorFunction]", kG = "[object Symbol]", NG = /^\s+|\s+$/g, LG = /^[-+]0x[0-9a-f]+$/i, PG = /^0b[01]+$/i, MG = /^0o[0-7]+$/i, IG = /^(?:0|[1-9]\d*)$/, FG = parseInt, $G = Object.prototype, wP = $G.toString, BG = Math.ceil, UG = Math.max;
33967
- function jG(e, t, a) {
33957
+ var W_ = 1 / 0, gP = 9007199254740991, DG = 17976931348623157e292, V_ = NaN, RG = "[object Function]", OG = "[object GeneratorFunction]", _G = "[object Symbol]", kG = /^\s+|\s+$/g, NG = /^[-+]0x[0-9a-f]+$/i, LG = /^0b[01]+$/i, PG = /^0o[0-7]+$/i, MG = /^(?:0|[1-9]\d*)$/, IG = parseInt, FG = Object.prototype, wP = FG.toString, $G = Math.ceil, BG = Math.max;
33958
+ function UG(e, t, a) {
33968
33959
  var o = -1, u = e.length;
33969
33960
  t < 0 && (t = -t > u ? 0 : u + t), a = a > u ? u : a, a < 0 && (a += u), u = t > a ? 0 : a - t >>> 0, t >>>= 0;
33970
33961
  for (var f = Array(u); ++o < u; )
33971
33962
  f[o] = e[o + t];
33972
33963
  return f;
33973
33964
  }
33974
- function zG(e, t) {
33975
- return t = t ?? gP, !!t && (typeof e == "number" || IG.test(e)) && e > -1 && e % 1 == 0 && e < t;
33965
+ function jG(e, t) {
33966
+ return t = t ?? gP, !!t && (typeof e == "number" || MG.test(e)) && e > -1 && e % 1 == 0 && e < t;
33976
33967
  }
33977
- function HG(e, t, a) {
33968
+ function zG(e, t, a) {
33978
33969
  if (!cT(a))
33979
33970
  return !1;
33980
33971
  var o = typeof t;
33981
- return (o == "number" ? GG(a) && zG(t, a.length) : o == "string" && t in a) ? VG(a[t], e) : !1;
33972
+ return (o == "number" ? VG(a) && jG(t, a.length) : o == "string" && t in a) ? WG(a[t], e) : !1;
33982
33973
  }
33983
- function WG(e, t, a) {
33984
- (a ? HG(e, t, a) : t === void 0) ? t = 1 : t = UG(ZG(t), 0);
33974
+ function HG(e, t, a) {
33975
+ (a ? zG(e, t, a) : t === void 0) ? t = 1 : t = BG(XG(t), 0);
33985
33976
  var o = e ? e.length : 0;
33986
33977
  if (!o || t < 1)
33987
33978
  return [];
33988
- for (var u = 0, f = 0, p = Array(BG(o / t)); u < o; )
33989
- p[f++] = jG(e, u, u += t);
33979
+ for (var u = 0, f = 0, p = Array($G(o / t)); u < o; )
33980
+ p[f++] = UG(e, u, u += t);
33990
33981
  return p;
33991
33982
  }
33992
- function VG(e, t) {
33983
+ function WG(e, t) {
33993
33984
  return e === t || e !== e && t !== t;
33994
33985
  }
33995
- function GG(e) {
33996
- return e != null && qG(e.length) && !YG(e);
33986
+ function VG(e) {
33987
+ return e != null && YG(e.length) && !GG(e);
33997
33988
  }
33998
- function YG(e) {
33989
+ function GG(e) {
33999
33990
  var t = cT(e) ? wP.call(e) : "";
34000
- return t == OG || t == _G;
33991
+ return t == RG || t == OG;
34001
33992
  }
34002
- function qG(e) {
33993
+ function YG(e) {
34003
33994
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= gP;
34004
33995
  }
34005
33996
  function cT(e) {
34006
33997
  var t = typeof e;
34007
33998
  return !!e && (t == "object" || t == "function");
34008
33999
  }
34009
- function QG(e) {
34000
+ function qG(e) {
34010
34001
  return !!e && typeof e == "object";
34011
34002
  }
34012
- function KG(e) {
34013
- return typeof e == "symbol" || QG(e) && wP.call(e) == kG;
34003
+ function QG(e) {
34004
+ return typeof e == "symbol" || qG(e) && wP.call(e) == _G;
34014
34005
  }
34015
- function XG(e) {
34006
+ function KG(e) {
34016
34007
  if (!e)
34017
34008
  return e === 0 ? e : 0;
34018
- if (e = JG(e), e === W_ || e === -W_) {
34009
+ if (e = ZG(e), e === W_ || e === -W_) {
34019
34010
  var t = e < 0 ? -1 : 1;
34020
- return t * RG;
34011
+ return t * DG;
34021
34012
  }
34022
34013
  return e === e ? e : 0;
34023
34014
  }
34024
- function ZG(e) {
34025
- var t = XG(e), a = t % 1;
34015
+ function XG(e) {
34016
+ var t = KG(e), a = t % 1;
34026
34017
  return t === t ? a ? t - a : t : 0;
34027
34018
  }
34028
- function JG(e) {
34019
+ function ZG(e) {
34029
34020
  if (typeof e == "number")
34030
34021
  return e;
34031
- if (KG(e))
34022
+ if (QG(e))
34032
34023
  return V_;
34033
34024
  if (cT(e)) {
34034
34025
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
@@ -34036,12 +34027,12 @@ function JG(e) {
34036
34027
  }
34037
34028
  if (typeof e != "string")
34038
34029
  return e === 0 ? e : +e;
34039
- e = e.replace(NG, "");
34040
- var a = PG.test(e);
34041
- return a || MG.test(e) ? FG(e.slice(2), a ? 2 : 8) : LG.test(e) ? V_ : +e;
34030
+ e = e.replace(kG, "");
34031
+ var a = LG.test(e);
34032
+ return a || PG.test(e) ? IG(e.slice(2), a ? 2 : 8) : NG.test(e) ? V_ : +e;
34042
34033
  }
34043
- var eY = WG;
34044
- const bP = /* @__PURE__ */ Hg(eY), TP = ({
34034
+ var JG = HG;
34035
+ const bP = /* @__PURE__ */ Hg(JG), TP = ({
34045
34036
  account: e,
34046
34037
  chainId: t,
34047
34038
  address: a
@@ -34060,18 +34051,18 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34060
34051
  chainId: t,
34061
34052
  args: []
34062
34053
  }
34063
- ], tY = (e) => e.flatMap(TP), nY = TP({
34054
+ ], eY = (e) => e.flatMap(TP), tY = TP({
34064
34055
  account: It,
34065
34056
  chainId: Ps.id,
34066
34057
  address: It
34067
- }).length, rY = ({
34058
+ }).length, nY = ({
34068
34059
  account: e
34069
34060
  }) => {
34070
34061
  const { chainId: t } = Nm(), a = GT();
34071
34062
  return Xl({
34072
- contracts: tY(a.map((o) => ({ ...o, account: e }))),
34063
+ contracts: eY(a.map((o) => ({ ...o, account: e }))),
34073
34064
  query: {
34074
- select: (o) => bP(o, nY).reduce(
34065
+ select: (o) => bP(o, tY).reduce(
34075
34066
  (u, [f, p], h) => {
34076
34067
  var w, T, E;
34077
34068
  const g = ((w = a == null ? void 0 : a[h]) == null ? void 0 : w.address) ?? It;
@@ -34094,7 +34085,7 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34094
34085
  enabled: !$o(e)
34095
34086
  }
34096
34087
  });
34097
- }, aY = ({ chainId: e, address: t }) => [
34088
+ }, rY = ({ chainId: e, address: t }) => [
34098
34089
  {
34099
34090
  address: t,
34100
34091
  abi: jf,
@@ -34108,7 +34099,7 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34108
34099
  functionName: "getFundSummary",
34109
34100
  chainId: e
34110
34101
  }
34111
- ], iY = ([e, t]) => {
34102
+ ], aY = ([e, t]) => {
34112
34103
  var o, u, f, p, h, g, w, T;
34113
34104
  const a = t == null ? void 0 : t.result;
34114
34105
  return {
@@ -34128,13 +34119,13 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34128
34119
  refetchInterval: a,
34129
34120
  enabled: o = !0
34130
34121
  }) => Xl({
34131
- contracts: aY({ address: e, chainId: t }),
34122
+ contracts: rY({ address: e, chainId: t }),
34132
34123
  query: {
34133
34124
  enabled: o && !!e && !$o(e),
34134
34125
  refetchInterval: a,
34135
- select: iY
34126
+ select: aY
34136
34127
  }
34137
- }), oY = ({
34128
+ }), iY = ({
34138
34129
  address: e,
34139
34130
  chainId: t
34140
34131
  }) => {
@@ -34143,7 +34134,7 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34143
34134
  chainId: t
34144
34135
  });
34145
34136
  return a ? u || xa(a, o) : !1;
34146
- }, lY = ({
34137
+ }, oY = ({
34147
34138
  address: e,
34148
34139
  chainId: t
34149
34140
  }) => {
@@ -34195,7 +34186,7 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34195
34186
  const T = bP(w, 2);
34196
34187
  return u.map(({ asset: E, isDeposit: R }, D) => {
34197
34188
  var F, G, Z, ne, ue, se;
34198
- const _ = E.toLowerCase(), [P, B] = T[D] ?? [], X = qL[_.toLowerCase()] ?? ((F = P == null ? void 0 : P.result) == null ? void 0 : F.toString()) ?? ((G = o == null ? void 0 : o[_]) == null ? void 0 : G.tokenName) ?? F9(_);
34189
+ const _ = E.toLowerCase(), [P, B] = T[D] ?? [], X = qL[_.toLowerCase()] ?? ((F = P == null ? void 0 : P.result) == null ? void 0 : F.toString()) ?? ((G = o == null ? void 0 : o[_]) == null ? void 0 : G.tokenName) ?? I9(_);
34199
34190
  return {
34200
34191
  tokenAddress: _,
34201
34192
  isDeposit: R,
@@ -34215,9 +34206,9 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34215
34206
  address: e,
34216
34207
  chainId: t
34217
34208
  }) => {
34218
- const [a] = Rv(), o = lY({ address: e, chainId: t });
34209
+ const [a] = Rv(), o = oY({ address: e, chainId: t });
34219
34210
  return o.length ? o : a.poolCompositions ?? [];
34220
- }, sY = (e) => {
34211
+ }, lY = (e) => {
34221
34212
  var p, h, g, w, T;
34222
34213
  const t = ((p = e == null ? void 0 : e[0]) == null ? void 0 : p.toString()) ?? "", a = ((h = e == null ? void 0 : e[1]) == null ? void 0 : h.toString()) ?? "", o = ((g = e == null ? void 0 : e[2]) == null ? void 0 : g.toString()) ?? "", u = ((w = e == null ? void 0 : e[3]) == null ? void 0 : w.toString()) ?? "", f = ((T = e == null ? void 0 : e[4]) == null ? void 0 : T.toString()) ?? "";
34223
34214
  return {
@@ -34230,10 +34221,10 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34230
34221
  }, xP = (e, t) => {
34231
34222
  const { data: { getFeeIncreaseInfo: a, minDepositUSD: o } = {} } = yP({ address: e, chainId: t });
34232
34223
  return {
34233
- ...sY(a),
34224
+ ...lY(a),
34234
34225
  minDepositUSD: +vc(o ?? BigInt(0), ft)
34235
34226
  };
34236
- }, uY = ({
34227
+ }, sY = ({
34237
34228
  composition: e,
34238
34229
  vaultTokensAmount: t,
34239
34230
  totalSupply: a
@@ -34267,13 +34258,13 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34267
34258
  fractionUsd: Bo({ value: f }),
34268
34259
  fractionUsdNumber: f
34269
34260
  };
34270
- }).filter(({ amount: o }) => o !== "0").sort((o, u) => u.fractionUsdNumber - o.fractionUsdNumber), cY = ({
34261
+ }).filter(({ amount: o }) => o !== "0").sort((o, u) => u.fractionUsdNumber - o.fractionUsdNumber), uY = ({
34271
34262
  address: e,
34272
34263
  vaultTokensAmount: t,
34273
34264
  chainId: a
34274
34265
  }) => {
34275
34266
  const o = i0({ address: e, chainId: a }), { data: { totalSupply: u } = {} } = Bd({ address: e, chainId: a });
34276
- return $e(() => u ? uY({
34267
+ return $e(() => u ? sY({
34277
34268
  composition: o,
34278
34269
  vaultTokensAmount: aC(t || 0),
34279
34270
  totalSupply: u
@@ -34317,7 +34308,6 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34317
34308
  2
34318
34309
  ),
34319
34310
  exitFee: $b(w, mm, 2),
34320
- withdrawalFeeNumber: O9.get(e) ?? 0,
34321
34311
  exitFeeNumber: HT(+w, mm)
34322
34312
  }),
34323
34313
  [
@@ -34326,17 +34316,16 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34326
34316
  o == null ? void 0 : o.streamingFeeNumerator,
34327
34317
  f,
34328
34318
  g,
34329
- w,
34330
- e
34319
+ w
34331
34320
  ]
34332
34321
  );
34333
- }, dY = () => {
34322
+ }, cY = () => {
34334
34323
  const { address: e, chainId: t } = vt(), { queryKey: a } = QT({
34335
34324
  address: e,
34336
34325
  chainId: t
34337
34326
  });
34338
34327
  iC({ queryKey: a });
34339
- }, Bb = Tu.id, fY = (e) => {
34328
+ }, Bb = Tu.id, dY = (e) => {
34340
34329
  const t = sa(
34341
34330
  "flatcoinPointsModule",
34342
34331
  Bb
@@ -34364,11 +34353,11 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34364
34353
  args: [e]
34365
34354
  }
34366
34355
  ];
34367
- }, pY = ({
34356
+ }, fY = ({
34368
34357
  enabled: e,
34369
34358
  address: t
34370
34359
  }) => Xl({
34371
- contracts: fY(t),
34360
+ contracts: dY(t),
34372
34361
  query: {
34373
34362
  enabled: e,
34374
34363
  select: (a) => {
@@ -34380,7 +34369,7 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34380
34369
  };
34381
34370
  }
34382
34371
  }
34383
- }), mY = [...KL], SP = ({
34372
+ }), pY = [...KL], SP = ({
34384
34373
  address: e,
34385
34374
  chainId: t
34386
34375
  }) => {
@@ -34399,25 +34388,25 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34399
34388
  query: {
34400
34389
  select: (u) => a.some(({ amount: f, tokenAddress: p }, h) => {
34401
34390
  var T;
34402
- return (!!((T = u[h]) != null && T.result) || mY.some(
34391
+ return (!!((T = u[h]) != null && T.result) || pY.some(
34403
34392
  (E) => xa(E, p)
34404
34393
  )) && f !== "0";
34405
34394
  }),
34406
34395
  staleTime: 1 / 0
34407
34396
  }
34408
34397
  });
34409
- }, hY = [
34398
+ }, mY = [
34410
34399
  [30 * 1e3, 5e3],
34411
34400
  [60 * 1e3, 1e4],
34412
34401
  [5 * 60 * 1e3, 2e4]
34413
- ], vY = (e) => {
34402
+ ], hY = (e) => {
34414
34403
  if (!e)
34415
34404
  return !1;
34416
- for (const [t, a] of hY)
34405
+ for (const [t, a] of mY)
34417
34406
  if (e <= t)
34418
34407
  return a;
34419
34408
  return xV;
34420
- }, N1 = (e) => Number((e == null ? void 0 : e.toString()) ?? "0") * 1e3, yY = ({
34409
+ }, N1 = (e) => Number((e == null ? void 0 : e.toString()) ?? "0") * 1e3, vY = ({
34421
34410
  address: e,
34422
34411
  chainId: t
34423
34412
  }) => {
@@ -34433,7 +34422,7 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34433
34422
  select: N1,
34434
34423
  refetchInterval: (o) => {
34435
34424
  var u;
34436
- return vY(N1((u = o.state) == null ? void 0 : u.data));
34425
+ return hY(N1((u = o.state) == null ? void 0 : u.data));
34437
34426
  },
34438
34427
  refetchOnWindowFocus: (o) => {
34439
34428
  var u;
@@ -34441,10 +34430,10 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34441
34430
  }
34442
34431
  }
34443
34432
  });
34444
- }, gY = ({
34433
+ }, yY = ({
34445
34434
  account: e
34446
34435
  } = {}) => {
34447
- const { account: t } = Cr(), a = e ?? t ?? It, { data: o } = rY({
34436
+ const { account: t } = Cr(), a = e ?? t ?? It, { data: o } = nY({
34448
34437
  account: a
34449
34438
  });
34450
34439
  return $e(() => $o(a) ? {} : Object.entries(o ?? {}).reduce(
@@ -34457,7 +34446,7 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34457
34446
  },
34458
34447
  {}
34459
34448
  ), [a, o]);
34460
- }, wY = ({
34449
+ }, gY = ({
34461
34450
  account: e,
34462
34451
  chainId: t,
34463
34452
  address: a
@@ -34474,7 +34463,7 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34474
34463
  select: (f) => nP(f, BigInt((o == null ? void 0 : o.tokenPrice) ?? "0"))
34475
34464
  }
34476
34465
  });
34477
- }, bY = () => {
34466
+ }, wY = () => {
34478
34467
  const {
34479
34468
  address: e,
34480
34469
  symbol: t,
@@ -34485,7 +34474,7 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34485
34474
  }), h = rP(e) && !xa(o, It), {
34486
34475
  data: { lockedVaultPointsBalance: g, unlockTaxInPercents: w, unlockTime: T } = {},
34487
34476
  isLoading: E
34488
- } = pY({
34477
+ } = fY({
34489
34478
  enabled: h,
34490
34479
  address: e
34491
34480
  });
@@ -34507,7 +34496,7 @@ const bP = /* @__PURE__ */ Hg(eY), TP = ({
34507
34496
  T,
34508
34497
  E
34509
34498
  ]);
34510
- }, TY = "2.17.3", xY = () => `@wagmi/core@${TY}`;
34499
+ }, bY = "2.17.3", TY = () => `@wagmi/core@${bY}`;
34511
34500
  var EP = function(e, t, a, o) {
34512
34501
  if (a === "a" && !o) throw new TypeError("Private accessor was defined without a getter");
34513
34502
  if (typeof t == "function" ? e !== t || !o : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
@@ -34518,7 +34507,7 @@ class Ug extends Error {
34518
34507
  return "https://wagmi.sh/core";
34519
34508
  }
34520
34509
  get version() {
34521
- return xY();
34510
+ return TY();
34522
34511
  }
34523
34512
  constructor(t, a = {}) {
34524
34513
  var f;
@@ -34568,7 +34557,7 @@ class Ug extends Error {
34568
34557
  dT = /* @__PURE__ */ new WeakSet(), CP = function e(t, a) {
34569
34558
  return a != null && a(t) ? t : t.cause ? EP(this, dT, "m", e).call(this, t.cause, a) : t;
34570
34559
  };
34571
- class SY extends Ug {
34560
+ class xY extends Ug {
34572
34561
  constructor() {
34573
34562
  super("Chain not configured."), Object.defineProperty(this, "name", {
34574
34563
  enumerable: !0,
@@ -34599,7 +34588,7 @@ function kA(e = {}) {
34599
34588
  return w;
34600
34589
  }
34601
34590
  return typeof g == "object" ? g : typeof g == "string" ? {
34602
- ...EY[g] ?? {
34591
+ ...SY[g] ?? {
34603
34592
  id: g,
34604
34593
  name: `${g[0].toUpperCase()}${g.slice(1)}`,
34605
34594
  provider: `is${g[0].toUpperCase()}${g.slice(1)}`
@@ -34743,7 +34732,7 @@ function kA(e = {}) {
34743
34732
  throw new ov();
34744
34733
  const R = g.chains.find((F) => F.id === T);
34745
34734
  if (!R)
34746
- throw new SO(new SY());
34735
+ throw new SO(new xY());
34747
34736
  const D = new Promise((F) => {
34748
34737
  const G = (Z) => {
34749
34738
  "chainId" in Z && Z.chainId === T && (g.emitter.off("change", G), F());
@@ -34831,7 +34820,7 @@ function kA(e = {}) {
34831
34820
  }
34832
34821
  });
34833
34822
  }
34834
- const EY = {
34823
+ const SY = {
34835
34824
  coinbaseWallet: {
34836
34825
  id: "coinbaseWallet",
34837
34826
  name: "Coinbase Wallet",
@@ -34892,20 +34881,20 @@ function Gb(e, t) {
34892
34881
  if (o && a(o))
34893
34882
  return o;
34894
34883
  }
34895
- const CY = {
34884
+ const EY = {
34896
34885
  "Lend/Borrow V2": "aave",
34897
34886
  "Lend/Borrow V3": "aave",
34898
34887
  "Lyra Options": "lyra",
34899
34888
  ULP: "uni"
34900
34889
  };
34901
- function AY(e) {
34902
- const t = CY[e];
34890
+ function CY(e) {
34891
+ const t = EY[e];
34903
34892
  if (t)
34904
34893
  return t;
34905
34894
  const a = e.toLowerCase();
34906
34895
  return a.includes("bear") ? "torosbear" : a.includes("bull") ? "torosbull" : a;
34907
34896
  }
34908
- const AP = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/main/icons/${AY(
34897
+ const AP = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/main/icons/${CY(
34909
34898
  e
34910
34899
  )}.png` : "", DP = {
34911
34900
  isGeoBlocked: !1,
@@ -34943,7 +34932,7 @@ const AP = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
34943
34932
  aaveOffchainWithdrawChainIds: [],
34944
34933
  aaveOffchainWithdrawMinValue: 50,
34945
34934
  getFallbackIconPath: AP
34946
- }, DY = () => {
34935
+ }, AY = () => {
34947
34936
  const { connect: e } = sk(), t = Ge(
34948
34937
  () => e({ connector: kA({ shimDisconnect: !0 }) }),
34949
34938
  [e]
@@ -34954,7 +34943,7 @@ const AP = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
34954
34943
  onConnect: t,
34955
34944
  onAcceptTermsOfUse: a
34956
34945
  };
34957
- }, RY = {
34946
+ }, DY = {
34958
34947
  params: {
34959
34948
  ...DP
34960
34949
  },
@@ -34963,11 +34952,11 @@ const AP = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
34963
34952
  },
34964
34953
  onAcceptTermsOfUse: () => Promise.resolve(!0)
34965
34954
  }
34966
- }, RP = dn(RY), OY = ({
34955
+ }, RP = dn(DY), RY = ({
34967
34956
  children: e,
34968
34957
  config: t
34969
34958
  }) => {
34970
- const a = DY(), o = $e(
34959
+ const a = AY(), o = $e(
34971
34960
  () => ({
34972
34961
  params: {
34973
34962
  ...DP,
@@ -35009,21 +34998,21 @@ const AP = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
35009
34998
  const { depositQuoteDiffErrorThreshold: t, depositQuoteDiffWarningThreshold: a } = dr(), o = Math.abs(e);
35010
34999
  return o > t ? Kn.ERROR : o > a ? Kn.WARNING : Kn.DEFAULT;
35011
35000
  };
35012
- var _Y = "[object Number]", kY = Object.prototype, NY = kY.toString;
35013
- function LY(e) {
35001
+ var OY = "[object Number]", _Y = Object.prototype, kY = _Y.toString;
35002
+ function NY(e) {
35014
35003
  return !!e && typeof e == "object";
35015
35004
  }
35016
- function PY(e) {
35017
- return typeof e == "number" || LY(e) && NY.call(e) == _Y;
35005
+ function LY(e) {
35006
+ return typeof e == "number" || NY(e) && kY.call(e) == OY;
35018
35007
  }
35019
- var MY = PY;
35020
- const IY = /* @__PURE__ */ Hg(MY), kP = ({
35008
+ var PY = LY;
35009
+ const MY = /* @__PURE__ */ Hg(PY), kP = ({
35021
35010
  tradingType: e,
35022
35011
  slippage: t,
35023
35012
  minSlippage: a
35024
35013
  }) => {
35025
35014
  const { defaultWithdrawSlippage: o } = dr();
35026
- return t !== "auto" ? t.toString() : IY(a) ? a.toString() : e === "deposit" ? yA.toString() : o.toString();
35015
+ return t !== "auto" ? t.toString() : MY(a) ? a.toString() : e === "deposit" ? yA.toString() : o.toString();
35027
35016
  }, NP = {
35028
35017
  depositSlippageWarning: "Excludes entry fee.",
35029
35018
  withdrawSlippageWarning: "Slippage occurs in both single asset withdrawals and withdrawals from vaults with Aave debt positions. However, for vaults with Aave debt, slippage is only applied to the portion of the withdrawal that corresponds to the Aave position.",
@@ -35121,7 +35110,7 @@ const IY = /* @__PURE__ */ Hg(MY), kP = ({
35121
35110
  proceedWithNextStep: "Please proceed with the next step.",
35122
35111
  aggregatorsLabel: "Swap source",
35123
35112
  aggregatorsTooltip: "Choose which aggregators to use for your trades."
35124
- }, LP = dn(NP), FY = ({ children: e, config: t }) => {
35113
+ }, LP = dn(NP), IY = ({ children: e, config: t }) => {
35125
35114
  const a = $e(
35126
35115
  () => ({
35127
35116
  ...NP,
@@ -35138,7 +35127,7 @@ const IY = /* @__PURE__ */ Hg(MY), kP = ({
35138
35127
  }, LA = (e) => {
35139
35128
  const t = Ut(), { symbol: a } = vt(), o = `${a}${e}`;
35140
35129
  return (t == null ? void 0 : t[o]) ?? t[e];
35141
- }, $Y = async (e, t = AP) => {
35130
+ }, FY = async (e, t = AP) => {
35142
35131
  var a;
35143
35132
  try {
35144
35133
  const o = await import(`@dhedge/crypto-assets/icons/${e.toLowerCase()}.png`);
@@ -35146,18 +35135,18 @@ const IY = /* @__PURE__ */ Hg(MY), kP = ({
35146
35135
  } catch {
35147
35136
  return t(e);
35148
35137
  }
35149
- }, BY = (e = []) => {
35138
+ }, $Y = (e = []) => {
35150
35139
  const { getFallbackIconPath: t } = dr(), [a, o] = Lt([]), [u, f] = Lt([]);
35151
35140
  return pt(() => {
35152
35141
  if (e.every((h) => u.includes(h))) return;
35153
35142
  (async () => {
35154
35143
  const h = await Promise.all(
35155
- e.map((g) => $Y(g, t))
35144
+ e.map((g) => FY(g, t))
35156
35145
  );
35157
35146
  o(h), f(e);
35158
35147
  })();
35159
35148
  }, [e, u, t]), a;
35160
- }, UY = ({ tradingType: e }) => {
35149
+ }, BY = ({ tradingType: e }) => {
35161
35150
  const t = LA(e);
35162
35151
  return /* @__PURE__ */ A.jsx(
35163
35152
  JN,
@@ -35176,7 +35165,7 @@ const IY = /* @__PURE__ */ Hg(MY), kP = ({
35176
35165
  }
35177
35166
  );
35178
35167
  };
35179
- function jY({
35168
+ function UY({
35180
35169
  title: e,
35181
35170
  titleId: t,
35182
35171
  ...a
@@ -35197,8 +35186,8 @@ function jY({
35197
35186
  clipRule: "evenodd"
35198
35187
  }));
35199
35188
  }
35200
- const zY = /* @__PURE__ */ ye.forwardRef(jY);
35201
- function HY({
35189
+ const jY = /* @__PURE__ */ ye.forwardRef(UY);
35190
+ function zY({
35202
35191
  title: e,
35203
35192
  titleId: t,
35204
35193
  ...a
@@ -35219,7 +35208,7 @@ function HY({
35219
35208
  clipRule: "evenodd"
35220
35209
  }));
35221
35210
  }
35222
- const PP = /* @__PURE__ */ ye.forwardRef(HY), WY = {
35211
+ const PP = /* @__PURE__ */ ye.forwardRef(zY), HY = {
35223
35212
  [Kn.DEFAULT]: I1,
35224
35213
  [Kn.ERROR]: fv,
35225
35214
  [Kn.SUCCESS]: pC,
@@ -35252,7 +35241,7 @@ const PP = /* @__PURE__ */ ye.forwardRef(HY), WY = {
35252
35241
  {
35253
35242
  text: e,
35254
35243
  placement: "right",
35255
- Icon: WY[u],
35244
+ Icon: HY[u],
35256
35245
  iconClassName: Rt({
35257
35246
  "dtw-text-[color:var(--panel-error-content-color)]": u === Kn.ERROR,
35258
35247
  "dtw-text-[color:var(--panel-warning-content-color)]": u === Kn.WARNING
@@ -35340,14 +35329,14 @@ const PP = /* @__PURE__ */ ye.forwardRef(HY), WY = {
35340
35329
  }
35341
35330
  )
35342
35331
  }
35343
- ), VY = ({ children: e }) => {
35332
+ ), WY = ({ children: e }) => {
35344
35333
  const t = Ut();
35345
35334
  return /* @__PURE__ */ A.jsxs("div", { className: "dtw-px-[var(--panel-balance-group-px)] dtw-flex-col dtw-gap-[var(--panel-balance-group-gap,var(--panel-gap))]", children: [
35346
35335
  /* @__PURE__ */ A.jsx("div", { className: "dtw-text-[length:var(--panel-label-font-size,var(--panel-font-size-xs))] dtw-leading-[var(--panel-label-line-height,var(--panel-line-height-xs))] dtw-text-[color:var(--panel-secondary-content-color)]", children: t.yourBalance }),
35347
35336
  e
35348
35337
  ] });
35349
- }, GY = ({ children: e }) => /* @__PURE__ */ A.jsx("div", { className: "dtw-flex dtw-flex-col dtw-gap-[var(--panel-inputs-group-gap,var(--panel-gap))] dtw-px-[var(--panel-inputs-group-px)]", children: e }), YY = ({ children: e }) => /* @__PURE__ */ A.jsx("div", { className: "dtw-flex dtw-flex-col dtw-gap-[var(--panel-meta-group-gap,var(--panel-gap))] dtw-px-[var(--panel-meta-group-px)]", children: e });
35350
- function qY({
35338
+ }, VY = ({ children: e }) => /* @__PURE__ */ A.jsx("div", { className: "dtw-flex dtw-flex-col dtw-gap-[var(--panel-inputs-group-gap,var(--panel-gap))] dtw-px-[var(--panel-inputs-group-px)]", children: e }), GY = ({ children: e }) => /* @__PURE__ */ A.jsx("div", { className: "dtw-flex dtw-flex-col dtw-gap-[var(--panel-meta-group-gap,var(--panel-gap))] dtw-px-[var(--panel-meta-group-px)]", children: e });
35339
+ function YY({
35351
35340
  title: e,
35352
35341
  titleId: t,
35353
35342
  ...a
@@ -35366,7 +35355,7 @@ function qY({
35366
35355
  d: "M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94 5.28 4.22Z"
35367
35356
  }));
35368
35357
  }
35369
- const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
35358
+ const MP = /* @__PURE__ */ ye.forwardRef(YY), KT = ({
35370
35359
  Icon: e,
35371
35360
  onClick: t,
35372
35361
  className: a = "dtw-h-7 dtw-w-7",
@@ -35391,7 +35380,7 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
35391
35380
  }
35392
35381
  )
35393
35382
  }
35394
- ), QY = ({
35383
+ ), qY = ({
35395
35384
  children: e,
35396
35385
  onClose: t
35397
35386
  }) => {
@@ -35422,7 +35411,7 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
35422
35411
  }
35423
35412
  )
35424
35413
  ] }) });
35425
- }, KY = ({
35414
+ }, QY = ({
35426
35415
  children: e,
35427
35416
  className: t,
35428
35417
  transparent: a = !1,
@@ -35451,7 +35440,7 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
35451
35440
  !!u && /* @__PURE__ */ A.jsx("div", { className: "dtw-absolute dtw-top-5 dtw-right-5", children: /* @__PURE__ */ A.jsx(KT, { Icon: MP, onClick: u }) })
35452
35441
  ]
35453
35442
  }
35454
- ) })), XY = ({ children: e }) => /* @__PURE__ */ A.jsx(oA, { className: "dtw-pt-[var(--panel-content-pt)] dtw-pb-[var(--panel-content-pb)] dtw-px-[var(--panel-content-px)] dtw-flex dtw-flex-col dtw-gap-[var(--panel-content-gap,var(--panel-gap))]", children: e }), ZY = ({
35443
+ ) })), KY = ({ children: e }) => /* @__PURE__ */ A.jsx(oA, { className: "dtw-pt-[var(--panel-content-pt)] dtw-pb-[var(--panel-content-pb)] dtw-px-[var(--panel-content-px)] dtw-flex dtw-flex-col dtw-gap-[var(--panel-content-gap,var(--panel-gap))]", children: e }), XY = ({
35455
35444
  className: e,
35456
35445
  iconClassName: t,
35457
35446
  onClick: a,
@@ -35489,21 +35478,21 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
35489
35478
  ]
35490
35479
  }
35491
35480
  );
35492
- }, JY = ({ children: e }) => /* @__PURE__ */ A.jsx(oA, { children: /* @__PURE__ */ A.jsx(ZY, { children: e }) }), Sa = {
35493
- Balance: VY,
35494
- InputGroup: GY,
35495
- Meta: YY,
35496
- Settings: JY,
35497
- Panel: XY,
35498
- Overlay: KY,
35499
- Notification: QY
35500
- }, eq = [
35481
+ }, ZY = ({ children: e }) => /* @__PURE__ */ A.jsx(oA, { children: /* @__PURE__ */ A.jsx(XY, { children: e }) }), Sa = {
35482
+ Balance: WY,
35483
+ InputGroup: VY,
35484
+ Meta: GY,
35485
+ Settings: ZY,
35486
+ Panel: KY,
35487
+ Overlay: QY,
35488
+ Notification: qY
35489
+ }, JY = [
35501
35490
  "dtw-bg-transparent",
35502
35491
  "dtw-border-[var(--panel-action-outline-button-border-color,var(--panel-border-color))]",
35503
35492
  "!dtw-text-[color:var(--panel-action-outline-button-color,var(--panel-content-color))]",
35504
35493
  "active:dtw-border-opacity-100",
35505
35494
  "hover:enabled:dtw-border-[var(--panel-action-outline-button-border-hover-color)]"
35506
- ], tq = [
35495
+ ], eq = [
35507
35496
  "!dtw-text-[color:var(--panel-action-accent-button-color,var(--panel-accent-content-color))]",
35508
35497
  "dtw-bg-gradient-to-r",
35509
35498
  "dtw-from-[var(--panel-action-accent-button-bg-from,var(--panel-accent-from-color))]",
@@ -35535,8 +35524,8 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
35535
35524
  "dtw-px-5",
35536
35525
  "dtw-w-full",
35537
35526
  {
35538
- [tq.join(" ")]: a,
35539
- [eq.join(" ")]: !a,
35527
+ [eq.join(" ")]: a,
35528
+ [JY.join(" ")]: !a,
35540
35529
  "dtw-flex dtw-items-center dtw-justify-center dtw-gap-1": p
35541
35530
  },
35542
35531
  u
@@ -35638,7 +35627,7 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
35638
35627
  }, $P = ({ balance: e, price: t }) => /* @__PURE__ */ A.jsxs("div", { className: "dtw-flex dtw-items-center dtw-justify-between", children: [
35639
35628
  /* @__PURE__ */ A.jsx("span", { className: "dtw-text-[length:var(--panel-balance-font-size,var(--panel-font-size-lg))] dtw-leading-[var(--panel-balance-line-height,var(--panel-line-height-lg))] dtw-text-[color:var(--panel-balance-content-color,var(--panel-content-color))]", children: e }),
35640
35629
  t && /* @__PURE__ */ A.jsx("span", { className: "dtw-text-[color:var(--panel-balance-price-content-color,var(--panel-secondary-content-color))] dtw-text-[length:var(--panel-balance-price-font-size,var(--panel-font-size))] dtw-leading-[var(--panel-balance-price-line-height,var(--panel-line-height))]", children: t })
35641
- ] }), nq = ({ onClick: e }) => {
35630
+ ] }), tq = ({ onClick: e }) => {
35642
35631
  const t = Ut();
35643
35632
  return /* @__PURE__ */ A.jsx(
35644
35633
  "button",
@@ -35657,7 +35646,7 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
35657
35646
  ),
35658
35647
  style: e
35659
35648
  }
35660
- ), UP = (e) => /* @__PURE__ */ A.jsx("img", { ...e }), rq = (e, t) => e === 0 ? `dtw-z-${(t - 1) * 10}` : `dtw--ml-2 dtw-z-${(t - e - 1) * 10}`, aq = (e) => {
35649
+ ), UP = (e) => /* @__PURE__ */ A.jsx("img", { ...e }), nq = (e, t) => e === 0 ? `dtw-z-${(t - 1) * 10}` : `dtw--ml-2 dtw-z-${(t - e - 1) * 10}`, rq = (e) => {
35661
35650
  switch (e) {
35662
35651
  case "xs":
35663
35652
  return {
@@ -35697,7 +35686,7 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
35697
35686
  }) => {
35698
35687
  const { Image: o = UP } = ca(), u = e.join(""), [f, p] = Lt({
35699
35688
  [u]: !1
35700
- }), { height: h, width: g, diameter: w } = aq(t), T = BY(e);
35689
+ }), { height: h, width: g, diameter: w } = rq(t), T = $Y(e);
35701
35690
  if (!(T != null && T.length) || !T[0] || f[u]) return null;
35702
35691
  const E = () => p((R) => ({ ...R, [u]: !0 }));
35703
35692
  return T.length === 1 ? /* @__PURE__ */ A.jsx(
@@ -35723,7 +35712,7 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
35723
35712
  "dtw-inline-block dtw-overflow-visible dtw-rounded-full",
35724
35713
  g,
35725
35714
  h,
35726
- rq(D, e.length)
35715
+ nq(D, e.length)
35727
35716
  ),
35728
35717
  width: w,
35729
35718
  height: w,
@@ -35763,7 +35752,7 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
35763
35752
  ]
35764
35753
  }
35765
35754
  );
35766
- }, iq = ({ title: e, text: t }) => {
35755
+ }, aq = ({ title: e, text: t }) => {
35767
35756
  const { LogoSpinner: a = qf } = ca();
35768
35757
  return /* @__PURE__ */ A.jsx(Sa.Overlay, { transparent: !0, children: /* @__PURE__ */ A.jsxs("div", { className: "dtw-flex dtw-flex-col dtw-items-center dtw-rounded-xl dtw-px-5 dtw-py-5", children: [
35769
35758
  e && /* @__PURE__ */ A.jsx("span", { className: "dtw-mb-8 dtw-font-medium dtw-text-[color:var(--panel-secondary-content-color)]", children: e }),
@@ -35785,7 +35774,7 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
35785
35774
  ), jP = {
35786
35775
  GeoBlockAlert: () => /* @__PURE__ */ A.jsx(G_, { children: /* @__PURE__ */ A.jsx("span", { className: "dtw-text-sm dtw-text-error", children: "Depositing is geo-blocked." }) }),
35787
35776
  SanctionedAlert: () => /* @__PURE__ */ A.jsx(G_, { children: /* @__PURE__ */ A.jsx("span", { className: "dtw-text-sm dtw-text-error", children: "Your address has been found on a sanctions list. Deposits are disabled." }) })
35788
- }, zP = dn(jP), oq = ({ children: e, config: t }) => {
35777
+ }, zP = dn(jP), iq = ({ children: e, config: t }) => {
35789
35778
  const a = $e(
35790
35779
  () => ({
35791
35780
  ...jP,
@@ -35799,7 +35788,7 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
35799
35788
  if (!e)
35800
35789
  throw new Error("ComponentContext is used out of Provider");
35801
35790
  return e;
35802
- }, lq = (e, t) => {
35791
+ }, oq = (e, t) => {
35803
35792
  switch (t.type) {
35804
35793
  case "MERGE_OVERLAY":
35805
35794
  return {
@@ -35821,7 +35810,7 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
35821
35810
  [t]: { isOpen: !1, isPending: !1 }
35822
35811
  }),
35823
35812
  {}
35824
- ), sq = () => Rm(lq, HP), WP = dn(HP), VP = dn(() => {
35813
+ ), lq = () => Rm(oq, HP), WP = dn(HP), VP = dn(() => {
35825
35814
  }), GP = () => {
35826
35815
  const e = Qt(WP);
35827
35816
  if (!e)
@@ -35852,8 +35841,8 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
35852
35841
  isPending: f,
35853
35842
  meta: p
35854
35843
  };
35855
- }, uq = ({ children: e }) => {
35856
- const [t, a] = sq(), [{ isOpen: o }] = Id();
35844
+ }, sq = ({ children: e }) => {
35845
+ const [t, a] = lq(), [{ isOpen: o }] = Id();
35857
35846
  return pt(() => {
35858
35847
  o && !t.TRADING.isOpen && a({
35859
35848
  type: "MERGE_OVERLAY",
@@ -35894,7 +35883,7 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
35894
35883
  AMBER: {
35895
35884
  400: "#AFA58D"
35896
35885
  }
35897
- }, cq = ({
35886
+ }, uq = ({
35898
35887
  children: e,
35899
35888
  config: t
35900
35889
  }) => {
@@ -36097,19 +36086,19 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
36097
36086
  children: e
36098
36087
  }
36099
36088
  );
36100
- }, dq = ({
36089
+ }, cq = ({
36101
36090
  children: e,
36102
36091
  config: t,
36103
36092
  theme: a,
36104
36093
  components: o,
36105
36094
  translation: u
36106
- }) => /* @__PURE__ */ A.jsx(FY, { config: u, children: /* @__PURE__ */ A.jsx(cq, { config: a, children: /* @__PURE__ */ A.jsx(OY, { config: t, children: /* @__PURE__ */ A.jsx(oq, { config: o, children: /* @__PURE__ */ A.jsx(uq, { children: e }) }) }) }) }), YP = () => {
36095
+ }) => /* @__PURE__ */ A.jsx(IY, { config: u, children: /* @__PURE__ */ A.jsx(uq, { config: a, children: /* @__PURE__ */ A.jsx(RY, { config: t, children: /* @__PURE__ */ A.jsx(iq, { config: o, children: /* @__PURE__ */ A.jsx(sq, { children: e }) }) }) }) }), YP = () => {
36107
36096
  const { account: e } = Cr(), { chainId: t } = Nm(), a = vt();
36108
36097
  return {
36109
36098
  isDisconnected: !e,
36110
36099
  isWrongNetwork: t !== a.chainId
36111
36100
  };
36112
- }, fq = () => {
36101
+ }, dq = () => {
36113
36102
  const { ActionButton: e = hl } = ca(), t = Ut(), { status: a } = sk(), { onConnect: o } = _P();
36114
36103
  return /* @__PURE__ */ A.jsx(
36115
36104
  e,
@@ -36120,16 +36109,16 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
36120
36109
  children: t.connectWallet
36121
36110
  }
36122
36111
  );
36123
- }, pq = () => {
36112
+ }, fq = () => {
36124
36113
  const { ActionButton: e = hl } = ca(), { switchNetwork: t } = Nm(), { chainId: a } = vt(), o = Ut(), u = () => {
36125
36114
  t == null || t({ chainId: a });
36126
36115
  };
36127
36116
  return /* @__PURE__ */ A.jsx(e, { onClick: u, children: o.switchNetwork });
36128
36117
  }, MA = ({ children: e }) => {
36129
36118
  const { isDisconnected: t, isWrongNetwork: a } = YP();
36130
- return t ? /* @__PURE__ */ A.jsx(fq, {}) : a ? /* @__PURE__ */ A.jsx(pq, {}) : e;
36131
- }, mq = () => {
36132
- const [e, t] = Yf(), a = Id()[1], o = aG(), u = oG(), [f] = e, p = f == null ? void 0 : f.txHash, h = f == null ? void 0 : f.action, g = h === "approve", w = f == null ? void 0 : f.chainId, { invalidateTradingQueries: T, invalidateAllowanceQueries: E } = RA(), { data: R, error: D } = uk({
36119
+ return t ? /* @__PURE__ */ A.jsx(dq, {}) : a ? /* @__PURE__ */ A.jsx(fq, {}) : e;
36120
+ }, pq = () => {
36121
+ const [e, t] = Yf(), a = Id()[1], o = rG(), u = iG(), [f] = e, p = f == null ? void 0 : f.txHash, h = f == null ? void 0 : f.action, g = h === "approve", w = f == null ? void 0 : f.chainId, { invalidateTradingQueries: T, invalidateAllowanceQueries: E } = RA(), { data: R, error: D } = uk({
36133
36122
  hash: p,
36134
36123
  chainId: w,
36135
36124
  pollingInterval: Cv
@@ -36173,7 +36162,7 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
36173
36162
  o
36174
36163
  ]);
36175
36164
  }, XT = (e) => {
36176
- const [, t] = Id(), [, a] = Yf(), [, o] = gn(), u = iG();
36165
+ const [, t] = Id(), [, a] = Yf(), [, o] = gn(), u = aG();
36177
36166
  return Ge(
36178
36167
  (f, p, h) => {
36179
36168
  if (p) {
@@ -36245,7 +36234,7 @@ const MP = /* @__PURE__ */ ye.forwardRef(qY), KT = ({
36245
36234
  );
36246
36235
  return (o.gt(0) || u.gt(0)) && o.lte(a ?? 0);
36247
36236
  };
36248
- function hq(e, t, a, o) {
36237
+ function mq(e, t, a, o) {
36249
36238
  try {
36250
36239
  if (t === "all")
36251
36240
  return "";
@@ -36257,10 +36246,10 @@ function hq(e, t, a, o) {
36257
36246
  return "";
36258
36247
  }
36259
36248
  }
36260
- const vq = () => {
36249
+ const hq = () => {
36261
36250
  const [e] = gn(), [t] = Gn();
36262
36251
  return {
36263
- value: hq(
36252
+ value: mq(
36264
36253
  e.symbol,
36265
36254
  t.symbol,
36266
36255
  e.value,
@@ -36333,7 +36322,7 @@ const vq = () => {
36333
36322
  skip: f
36334
36323
  });
36335
36324
  return $e(() => f ? !0 : !p || p === BigInt(0) ? !1 : !e || e === "0" ? !0 : new Ze(p.toString()).gte(e), [e, p, f]);
36336
- }, yq = () => {
36325
+ }, vq = () => {
36337
36326
  const [{ isInfiniteAllowance: e }, t] = $i(), a = EA(), o = Ge(
36338
36327
  (u) => {
36339
36328
  t({ isInfiniteAllowance: u }), a == null || a(Gl.INFINITE_ALLOWANCE_CHANGE, {
@@ -36360,7 +36349,7 @@ const vq = () => {
36360
36349
  spenderAddress: f
36361
36350
  });
36362
36351
  return { canSpend: p, approve: h };
36363
- }, gq = ({
36352
+ }, yq = ({
36364
36353
  address: e,
36365
36354
  chainId: t
36366
36355
  }) => {
@@ -36404,7 +36393,7 @@ const vq = () => {
36404
36393
  (u, { sourceAddress: f }, p) => ({ ...u, [f]: o[p] }),
36405
36394
  {}
36406
36395
  )
36407
- ), wq = (e, t) => {
36396
+ ), gq = (e, t) => {
36408
36397
  const a = CA(), {
36409
36398
  settings: { selectedAggregators: o }
36410
36399
  } = ml();
@@ -36413,7 +36402,7 @@ const vq = () => {
36413
36402
  queryFn: async ({ signal: u, queryKey: [, f] }) => ZP({ assets: f, getSwapData: a, signal: u }),
36414
36403
  ...t
36415
36404
  });
36416
- }, bq = new AbortController(), Tq = bq.signal, xq = ({
36405
+ }, wq = new AbortController(), bq = wq.signal, Tq = ({
36417
36406
  chainId: e
36418
36407
  }) => {
36419
36408
  const { account: t = It } = Cr(), a = CA();
@@ -36433,12 +36422,12 @@ const vq = () => {
36433
36422
  return ZP({
36434
36423
  assets: f,
36435
36424
  getSwapData: a,
36436
- signal: Tq
36425
+ signal: bq
36437
36426
  });
36438
36427
  },
36439
36428
  [e, a, t]
36440
36429
  );
36441
- }, Sq = ({
36430
+ }, xq = ({
36442
36431
  address: e,
36443
36432
  chainId: t
36444
36433
  }) => {
@@ -36448,7 +36437,7 @@ const vq = () => {
36448
36437
  ), { aaveOffchainWithdrawMinValue: o } = dr(), { data: { getSupportedAssets: u } = {} } = QT({
36449
36438
  address: e,
36450
36439
  chainId: t
36451
- }), f = gq({ address: e, chainId: t }), p = xq({ chainId: t });
36440
+ }), f = yq({ address: e, chainId: t }), p = Tq({ chainId: t });
36452
36441
  return Ge(
36453
36442
  async ({
36454
36443
  withdrawAmountD18: h,
@@ -36475,7 +36464,7 @@ const vq = () => {
36475
36464
  swapParams: P,
36476
36465
  slippage: w
36477
36466
  });
36478
- return z9({
36467
+ return j9({
36479
36468
  assetAddress: R,
36480
36469
  swapData: B,
36481
36470
  swapParams: P,
@@ -36501,10 +36490,10 @@ const vq = () => {
36501
36490
  u
36502
36491
  ]
36503
36492
  );
36504
- }, Eq = () => {
36493
+ }, Sq = () => {
36505
36494
  const { chainId: e } = vt(), { aaveOffchainWithdrawChainIds: t } = dr();
36506
36495
  return t.includes(e);
36507
- }, Cq = () => {
36496
+ }, Eq = () => {
36508
36497
  const { defaultWithdrawSlippage: e, defaultSwapTransactionSlippage: t } = dr(), a = !Ov(), { isCompleteWithdrawStep: o, isFetching: u } = s0(), [f] = Gn(), [, p] = $i(), h = rM();
36509
36498
  pt(() => {
36510
36499
  if (!(!a || f.isLoading || u)) {
@@ -36527,7 +36516,7 @@ const vq = () => {
36527
36516
  t,
36528
36517
  u
36529
36518
  ]);
36530
- }, Aq = () => {
36519
+ }, Cq = () => {
36531
36520
  const { account: e = It } = Cr(), { chainId: t } = vt();
36532
36521
  return Om({
36533
36522
  address: sa("easySwapperV2", t),
@@ -36547,7 +36536,7 @@ const vq = () => {
36547
36536
  contractId: "easySwapperV2",
36548
36537
  functionName: _V,
36549
36538
  onSettled: w
36550
- }), E = $A(), R = $e(() => e || !E ? [] : [j9({
36539
+ }), E = $A(), R = $e(() => e || !E ? [] : [U9({
36551
36540
  assets: a,
36552
36541
  swapData: o,
36553
36542
  slippage: p,
@@ -36577,7 +36566,7 @@ const vq = () => {
36577
36566
  }, eM = () => {
36578
36567
  const { data: e = [] } = Ec();
36579
36568
  return e.reduce((t, { balance: a, price: o }) => t + a * o, 0);
36580
- }, Dq = ({
36569
+ }, Aq = ({
36581
36570
  account: e,
36582
36571
  chainId: t
36583
36572
  }) => Om({
@@ -36587,7 +36576,7 @@ const vq = () => {
36587
36576
  chainId: t,
36588
36577
  args: [e],
36589
36578
  query: { enabled: !$o(e) }
36590
- }), Rq = ({
36579
+ }), Dq = ({
36591
36580
  assets: e,
36592
36581
  chainId: t
36593
36582
  }) => e.flatMap(({ token: a }) => [
@@ -36612,14 +36601,14 @@ const vq = () => {
36612
36601
  chainId: t,
36613
36602
  args: [a]
36614
36603
  }
36615
- ]), Oq = 3, tM = ({
36604
+ ]), Rq = 3, tM = ({
36616
36605
  assets: e,
36617
36606
  chainId: t
36618
36607
  }) => {
36619
36608
  const a = Ge(
36620
36609
  (o) => e.map(({ token: u, balance: f }, p) => {
36621
36610
  var R, D, _, P, B;
36622
- const h = p * Oq, g = h + 1, w = g + 1, T = Number(
36611
+ const h = p * Rq, g = h + 1, w = g + 1, T = Number(
36623
36612
  ((R = o[g]) == null ? void 0 : R.result) ?? ft
36624
36613
  ), E = qL[u.toLowerCase()] ?? ((_ = (D = o[h]) == null ? void 0 : D.result) == null ? void 0 : _.toString()) ?? "";
36625
36614
  return {
@@ -36634,14 +36623,14 @@ const vq = () => {
36634
36623
  [e]
36635
36624
  );
36636
36625
  return Xl({
36637
- contracts: Rq({ assets: e, chainId: t }),
36626
+ contracts: Dq({ assets: e, chainId: t }),
36638
36627
  query: {
36639
36628
  enabled: e.length > 0,
36640
36629
  select: a
36641
36630
  }
36642
36631
  });
36643
36632
  }, Ec = () => {
36644
- const { account: e = It } = Cr(), { chainId: t } = vt(), { data: a = [] } = Dq({
36633
+ const { account: e = It } = Cr(), { chainId: t } = vt(), { data: a = [] } = Aq({
36645
36634
  account: e,
36646
36635
  chainId: t
36647
36636
  });
@@ -36668,11 +36657,11 @@ const vq = () => {
36668
36657
  a
36669
36658
  ]
36670
36659
  );
36671
- return wq(h, {
36660
+ return gq(h, {
36672
36661
  enabled: p,
36673
36662
  refetchInterval: gA
36674
36663
  });
36675
- }, _q = () => {
36664
+ }, Oq = () => {
36676
36665
  const [e, t] = Gn(), { data: a = [] } = Ec(), { data: o, isFetching: u, isError: f } = u0();
36677
36666
  pt(() => {
36678
36667
  t({ isLoading: u });
@@ -36768,7 +36757,7 @@ const vq = () => {
36768
36757
  return a === "auto" ? t ? o ?? e : e : a;
36769
36758
  };
36770
36759
  function Y_(e, t, a) {
36771
- const [o, u] = Lt(a), f = X9 ? e === "sessionStorage" ? sessionStorage : localStorage : null, p = Ge(
36760
+ const [o, u] = Lt(a), f = K9 ? e === "sessionStorage" ? sessionStorage : localStorage : null, p = Ge(
36772
36761
  (h) => {
36773
36762
  try {
36774
36763
  u(h), f == null || f.setItem(t, JSON.stringify(h));
@@ -36797,10 +36786,10 @@ const aM = (e, t) => {
36797
36786
  clearTimeout(u);
36798
36787
  };
36799
36788
  }, [e, t]), a;
36800
- }, kq = (e) => Dv(uC(e), 2), Nq = () => {
36801
- const e = vt(), [t] = gn(), a = Qf(), o = Eq(), u = _v(), f = Sq(e), p = xc({
36789
+ }, _q = (e) => Dv(uC(e), 2), kq = () => {
36790
+ const e = vt(), [t] = gn(), a = Qf(), o = Sq(), u = _v(), f = xq(e), p = xc({
36802
36791
  address: e.address,
36803
- formatter: kq,
36792
+ formatter: _q,
36804
36793
  chainId: e.chainId
36805
36794
  });
36806
36795
  return Ge(async () => {
@@ -36822,7 +36811,7 @@ const aM = (e, t) => {
36822
36811
  u,
36823
36812
  p
36824
36813
  ]);
36825
- }, Lq = ({
36814
+ }, Nq = ({
36826
36815
  debounceTime: e
36827
36816
  } = {}) => {
36828
36817
  const t = vt(), { aaveOffchainWithdrawChainIds: a } = dr(), o = Qf(), [u] = gn(), f = a.includes(
@@ -36846,14 +36835,14 @@ const aM = (e, t) => {
36846
36835
  o,
36847
36836
  t.address
36848
36837
  ]);
36849
- }, Pq = (e) => typeof e[0] == "string" && typeof e[1] == "bigint" && typeof e[2] == "bigint", Mq = () => {
36850
- const e = vt(), t = OA(), { canSpend: a } = IA(), o = Lq({
36838
+ }, Lq = (e) => typeof e[0] == "string" && typeof e[1] == "bigint" && typeof e[2] == "bigint", Pq = () => {
36839
+ const e = vt(), t = OA(), { canSpend: a } = IA(), o = Nq({
36851
36840
  debounceTime: PL
36852
36841
  }), { data: u } = L3({
36853
36842
  abi: Ld,
36854
36843
  address: sa("easySwapperV2", e.chainId),
36855
36844
  functionName: ML,
36856
- args: Pq(o) ? o : void 0,
36845
+ args: Lq(o) ? o : void 0,
36857
36846
  query: {
36858
36847
  enabled: o[1] !== BigInt(0) && !t && a
36859
36848
  }
@@ -36864,10 +36853,10 @@ const aM = (e, t) => {
36864
36853
  });
36865
36854
  }, BA = () => {
36866
36855
  var a;
36867
- const [e] = Gn(), { data: t = [] } = Mq();
36856
+ const [e] = Gn(), { data: t = [] } = Pq();
36868
36857
  return (t == null ? void 0 : t.length) === 1 && xa((a = t[0]) == null ? void 0 : a.address, e.address);
36869
- }, Iq = () => {
36870
- const e = vt(), t = Qf(), a = BA(), o = Nq(), u = Yf()[1], f = t ? "multi_withdraw" : a ? "single_withdraw_and_claim" : "single_withdraw", p = XT(f), h = t ? RV : a ? OV : ML, { send: g } = Lm({
36858
+ }, Mq = () => {
36859
+ const e = vt(), t = Qf(), a = BA(), o = kq(), u = Yf()[1], f = t ? "multi_withdraw" : a ? "single_withdraw_and_claim" : "single_withdraw", p = XT(f), h = t ? RV : a ? OV : ML, { send: g } = Lm({
36871
36860
  contractId: t ? "poolLogic" : "easySwapperV2",
36872
36861
  dynamicContractAddress: t ? e.address : void 0,
36873
36862
  functionName: h,
@@ -36942,7 +36931,7 @@ const aM = (e, t) => {
36942
36931
  label: B ? "Insufficient Balance" : _ ? t.depositAction : E ? t.withdrawAction : R ? t.unrollAndClaimAction : t.unrollAction,
36943
36932
  handleTrade: F
36944
36933
  };
36945
- }, Fq = 1, $q = "USD", Bq = ({
36934
+ }, Iq = 1, Fq = "USD", $q = ({
36946
36935
  depositValueInUsd: e,
36947
36936
  apy: t,
36948
36937
  apyCurrencyPrice: a,
@@ -36960,7 +36949,7 @@ const aM = (e, t) => {
36960
36949
  dailyEarnings: O1({ value: u / 365, currency: o }),
36961
36950
  monthlyEarnings: O1({ value: u / 12, currency: o })
36962
36951
  };
36963
- }, Uq = ({
36952
+ }, Bq = ({
36964
36953
  currency: e,
36965
36954
  depositValueInUsd: t,
36966
36955
  chainId: a,
@@ -36972,23 +36961,23 @@ const aM = (e, t) => {
36972
36961
  address: f ?? It,
36973
36962
  chainId: a,
36974
36963
  disabled: u || !o || !f
36975
- }), h = f ? Number(p) : Fq;
36964
+ }), h = f ? Number(p) : Iq;
36976
36965
  return $e(
36977
- () => Bq({
36966
+ () => $q({
36978
36967
  depositValueInUsd: t,
36979
36968
  apy: o,
36980
36969
  apyCurrencyPrice: h,
36981
- currency: f ? e : $q
36970
+ currency: f ? e : Fq
36982
36971
  }),
36983
36972
  [t, o, h, e, f]
36984
36973
  );
36985
- }, jq = () => {
36974
+ }, Uq = () => {
36986
36975
  var p, h, g;
36987
36976
  const e = Fd()[0] === "deposit", { chainId: t } = vt(), [a] = Rv(), [o] = gn(), u = Sc({
36988
36977
  address: o.address,
36989
36978
  chainId: t,
36990
36979
  disabled: !e || !a.apy
36991
- }), f = Uq({
36980
+ }), f = Bq({
36992
36981
  chainId: t,
36993
36982
  apy: (p = a.apy) == null ? void 0 : p.value,
36994
36983
  currency: (h = a.apy) == null ? void 0 : h.currency,
@@ -37004,7 +36993,7 @@ const aM = (e, t) => {
37004
36993
  monthlyEarnings: null,
37005
36994
  showEarnings: !1
37006
36995
  };
37007
- }, zq = (e, t) => {
36996
+ }, jq = (e, t) => {
37008
36997
  const {
37009
36998
  settings: { selectedAggregators: a }
37010
36999
  } = ml(), o = CA();
@@ -37029,7 +37018,7 @@ const aM = (e, t) => {
37029
37018
  }, c0 = (e) => {
37030
37019
  const [{ action: t, status: a }] = Id();
37031
37020
  return t === e && (a === "Wallet" || a === "Mining");
37032
- }, Hq = () => {
37021
+ }, zq = () => {
37033
37022
  const e = QP(), t = c0("approve");
37034
37023
  return {
37035
37024
  disabled: !e,
@@ -37039,13 +37028,13 @@ const aM = (e, t) => {
37039
37028
  onApprove: e,
37040
37029
  symbol: t
37041
37030
  }) => {
37042
- const { ActionButton: a = hl } = ca(), o = Ut(), { disabled: u, isLoading: f } = Hq();
37031
+ const { ActionButton: a = hl } = ca(), o = Ut(), { disabled: u, isLoading: f } = zq();
37043
37032
  return /* @__PURE__ */ A.jsx(a, { disabled: u, onClick: e, loading: f, children: /* @__PURE__ */ A.jsxs("span", { children: [
37044
37033
  o.approve,
37045
37034
  " ",
37046
37035
  t
37047
37036
  ] }) });
37048
- }, Wq = ({
37037
+ }, Hq = ({
37049
37038
  onClick: e,
37050
37039
  tooltipText: t,
37051
37040
  disabled: a
@@ -37061,11 +37050,11 @@ const aM = (e, t) => {
37061
37050
  return () => clearTimeout(p);
37062
37051
  }, [o]), { disabled: a || o, tooltipText: t, handleClick: f };
37063
37052
  }, lM = (e) => {
37064
- const { disabled: t, tooltipText: a, handleClick: o } = Wq(e);
37053
+ const { disabled: t, tooltipText: a, handleClick: o } = Hq(e);
37065
37054
  return /* @__PURE__ */ A.jsx(TC, { text: a, children: /* @__PURE__ */ A.jsx(
37066
37055
  KT,
37067
37056
  {
37068
- Icon: zY,
37057
+ Icon: jY,
37069
37058
  onClick: o,
37070
37059
  disabled: t,
37071
37060
  containerClassName: "!dtw-self-center",
@@ -37075,7 +37064,7 @@ const aM = (e, t) => {
37075
37064
  )
37076
37065
  }
37077
37066
  ) });
37078
- }, Vq = () => {
37067
+ }, Wq = () => {
37079
37068
  const { chainId: e, address: t } = vt(), { data: { isCustomCooldownDepositAllowed: a } = {} } = qT({
37080
37069
  address: t,
37081
37070
  chainId: e
@@ -37095,7 +37084,7 @@ const aM = (e, t) => {
37095
37084
  const [e] = gn(), { chainId: t, address: a } = vt(), o = i0({
37096
37085
  address: a,
37097
37086
  chainId: t
37098
- }), u = Vq();
37087
+ }), u = Wq();
37099
37088
  return $e(() => {
37100
37089
  const f = o.filter(
37101
37090
  ({ isDeposit: g }) => g
@@ -37156,7 +37145,7 @@ const aM = (e, t) => {
37156
37145
  return new Ze(u.value || "0").shiftedBy(u.decimals).times(1 - D / 100).toFixed(0);
37157
37146
  }, p0 = () => {
37158
37147
  const { account: e = It } = Cr(), { chainId: t } = vt(), [a] = gn(), { debouncedSendTokenValue: o } = ZT(), { vaultDepositTokenAddress: u } = d0(), f = f0(), p = JT();
37159
- return zq(
37148
+ return jq(
37160
37149
  {
37161
37150
  sourceAddress: a.address,
37162
37151
  destinationAddress: u,
@@ -37173,13 +37162,13 @@ const aM = (e, t) => {
37173
37162
  }, uM = () => {
37174
37163
  const [e] = gn(), { debouncedSendTokenValue: t } = ZT(), a = f0(), { data: o } = p0();
37175
37164
  return a ? (o == null ? void 0 : o.destinationAmount) ?? "0" : new Ze(t || "0").shiftedBy(e.decimals).toFixed(0);
37176
- }, Gq = ({
37165
+ }, Vq = ({
37177
37166
  depositMethod: e,
37178
37167
  vaultDepositTokenAddress: t
37179
37168
  }) => {
37180
37169
  const { address: a } = vt(), [o] = gn(), u = new Ze(o.value).shiftedBy(o.decimals).toFixed(0), f = uM(), { data: p } = p0(), h = sM(), g = JT();
37181
37170
  return $e(() => {
37182
- const T = e === "zapNativeDeposit" || e === "zapNativeDepositWithCustomCooldown" || e === "zapDeposit" || e === "zapDepositWithCustomCooldown" ? U9({
37171
+ const T = e === "zapNativeDeposit" || e === "zapNativeDepositWithCustomCooldown" || e === "zapDeposit" || e === "zapDepositWithCustomCooldown" ? B9({
37183
37172
  vaultAddress: a,
37184
37173
  sendTokenAddress: o.address,
37185
37174
  sendTokenAmount: u,
@@ -37225,8 +37214,8 @@ const aM = (e, t) => {
37225
37214
  g,
37226
37215
  f
37227
37216
  ]);
37228
- }, Q_ = "deposit", Yq = () => {
37229
- const { chainId: e } = vt(), [t] = Gn(), a = Yf()[1], { depositMethod: o, vaultDepositTokenAddress: u } = d0(), f = Gq({
37217
+ }, Q_ = "deposit", Gq = () => {
37218
+ const { chainId: e } = vt(), [t] = Gn(), a = Yf()[1], { depositMethod: o, vaultDepositTokenAddress: u } = d0(), f = Vq({
37230
37219
  depositMethod: o,
37231
37220
  vaultDepositTokenAddress: u
37232
37221
  }), p = XT(Q_), { send: h } = Lm({
@@ -37247,7 +37236,7 @@ const aM = (e, t) => {
37247
37236
  f,
37248
37237
  o
37249
37238
  ]);
37250
- }, qq = () => {
37239
+ }, Yq = () => {
37251
37240
  const { account: e = It } = Cr(), { chainId: t } = vt(), [a] = gn(), o = sa("easySwapperV2", t), u = new Ze(a.value || "0").shiftedBy(a.decimals).toFixed(0, Ze.ROUND_UP), f = XP({
37252
37241
  tokenAddress: a.address,
37253
37242
  ownerAddress: e,
@@ -37261,7 +37250,7 @@ const aM = (e, t) => {
37261
37250
  rawTokenAmount: u,
37262
37251
  spenderAddress: o
37263
37252
  }), canSpend: f };
37264
- }, Qq = ({
37253
+ }, qq = ({
37265
37254
  address: e,
37266
37255
  chainId: t
37267
37256
  }) => {
@@ -37277,8 +37266,8 @@ const aM = (e, t) => {
37277
37266
  }
37278
37267
  });
37279
37268
  return pP(h), h;
37280
- }, Kq = () => {
37281
- const { address: e, chainId: t } = vt(), a = Ov(), [o] = gn(), [u, f] = Gn(), [, p] = $i(), { isDebouncing: h, debouncedSendTokenValue: g } = ZT(), { isFetching: w } = p0(), { data: T, isFetching: E } = Qq({
37269
+ }, Qq = () => {
37270
+ const { address: e, chainId: t } = vt(), a = Ov(), [o] = gn(), [u, f] = Gn(), [, p] = $i(), { isDebouncing: h, debouncedSendTokenValue: g } = ZT(), { isFetching: w } = p0(), { data: T, isFetching: E } = qq({
37282
37271
  address: e,
37283
37272
  chainId: t
37284
37273
  }), R = w || E || h;
@@ -37325,7 +37314,7 @@ const aM = (e, t) => {
37325
37314
  p,
37326
37315
  h
37327
37316
  ]);
37328
- }, Xq = () => {
37317
+ }, Kq = () => {
37329
37318
  const e = Ov(), [t] = Gn(), [, a] = $i(), { isDebouncing: o } = ZT({
37330
37319
  extendedDebounceTime: !0
37331
37320
  }), u = JT(), f = cM({ includesEntryFee: !0 });
@@ -37964,10 +37953,10 @@ fT.exports;
37964
37953
  }
37965
37954
  e.exports = rs;
37966
37955
  })(fT, fT.exports);
37967
- var Zq = fT.exports;
37968
- const Jq = /* @__PURE__ */ Hg(Zq), UA = () => {
37956
+ var Xq = fT.exports;
37957
+ const Zq = /* @__PURE__ */ Hg(Xq), UA = () => {
37969
37958
  const { address: e, chainId: t, depositParams: a } = vt(), { account: o } = Cr(), u = i0({ address: e, chainId: t }), f = hP(), p = $e(
37970
- () => Jq(
37959
+ () => Zq(
37971
37960
  [
37972
37961
  ...u.filter(({ isDeposit: T }) => T).map(({ tokenAddress: T, tokenName: E, precision: R }) => ({
37973
37962
  address: T.toLowerCase(),
@@ -38038,7 +38027,7 @@ const Jq = /* @__PURE__ */ Hg(Zq), UA = () => {
38038
38027
  t,
38039
38028
  a.defaultDepositTokenSymbol
38040
38029
  ]);
38041
- }, eQ = () => {
38030
+ }, Jq = () => {
38042
38031
  const e = vt(), [t] = UA(), a = gn()[1], [o] = Fd();
38043
38032
  pt(() => {
38044
38033
  o === "deposit" && (t != null && t.symbol) && a({
@@ -38056,16 +38045,16 @@ const Jq = /* @__PURE__ */ Hg(Zq), UA = () => {
38056
38045
  t == null ? void 0 : t.address,
38057
38046
  t == null ? void 0 : t.decimals
38058
38047
  ]);
38059
- }, tQ = () => {
38048
+ }, eQ = () => {
38060
38049
  const { chainId: e, address: t, deprecated: a } = vt(), { data: { isPrivateVault: o } = { isPrivateVault: !1 } } = Bd({
38061
38050
  address: t,
38062
38051
  chainId: e
38063
- }), u = o || a, f = oY({
38052
+ }), u = o || a, f = iY({
38064
38053
  address: t,
38065
38054
  chainId: e
38066
38055
  });
38067
38056
  return { isVaultDepositLocked: u, isAccountWhitelisted: f };
38068
- }, nQ = () => {
38057
+ }, tQ = () => {
38069
38058
  const { defaultLockTime: e } = dr(), { chainId: t, address: a } = vt(), { data: { customCooldown: o } = {} } = qT({
38070
38059
  address: a,
38071
38060
  chainId: t
@@ -38079,25 +38068,25 @@ const Jq = /* @__PURE__ */ Hg(Zq), UA = () => {
38079
38068
  default:
38080
38069
  return e;
38081
38070
  }
38082
- }, rQ = "1", aQ = () => {
38083
- const { account: e = It } = Cr(), { address: t, chainId: a } = vt(), [o] = Gn(), u = xc({ address: t, chainId: a }), { minDepositUSD: f } = xP(t, a), { data: p } = wY({
38071
+ }, nQ = "1", rQ = () => {
38072
+ const { account: e = It } = Cr(), { address: t, chainId: a } = vt(), [o] = Gn(), u = xc({ address: t, chainId: a }), { minDepositUSD: f } = xP(t, a), { data: p } = gY({
38084
38073
  address: t,
38085
38074
  chainId: a,
38086
38075
  account: e
38087
- }), h = (p == null ? void 0 : p.balanceInUsdNumber) ?? 0, g = u === "0" ? rQ : u, w = Math.max(0, f - h), T = new Ze(
38076
+ }), h = (p == null ? void 0 : p.balanceInUsdNumber) ?? 0, g = u === "0" ? nQ : u, w = Math.max(0, f - h), T = new Ze(
38088
38077
  o.value || "0"
38089
38078
  ).multipliedBy(g);
38090
38079
  return {
38091
38080
  requiresMinDeposit: T.isZero() ? !1 : T.lte(w),
38092
38081
  requiredMinDepositAmount: Bo({ value: w })
38093
38082
  };
38094
- }, iQ = () => {
38083
+ }, aQ = () => {
38095
38084
  const { refetch: e, isFetched: t } = p0(), { invalidateTradingQueries: a } = RA();
38096
38085
  return { handleSwapQuoteReload: () => {
38097
38086
  a(), e();
38098
38087
  }, disabled: !t };
38099
- }, oQ = () => {
38100
- const e = Ut(), { handleSwapQuoteReload: t, disabled: a } = iQ();
38088
+ }, iQ = () => {
38089
+ const e = Ut(), { handleSwapQuoteReload: t, disabled: a } = aQ();
38101
38090
  return /* @__PURE__ */ A.jsx(
38102
38091
  lM,
38103
38092
  {
@@ -38106,13 +38095,13 @@ const Jq = /* @__PURE__ */ Hg(Zq), UA = () => {
38106
38095
  disabled: a
38107
38096
  }
38108
38097
  );
38109
- }, lQ = () => {
38098
+ }, oQ = () => {
38110
38099
  const { refetch: e, isFetched: t } = u0(), { invalidateTradingQueries: a } = RA();
38111
38100
  return { handleSwapQuoteReload: () => {
38112
38101
  a(), e();
38113
38102
  }, disabled: !t };
38114
- }, sQ = () => {
38115
- const e = Ut(), { handleSwapQuoteReload: t, disabled: a } = lQ();
38103
+ }, lQ = () => {
38104
+ const e = Ut(), { handleSwapQuoteReload: t, disabled: a } = oQ();
38116
38105
  return /* @__PURE__ */ A.jsx(
38117
38106
  lM,
38118
38107
  {
@@ -38121,16 +38110,16 @@ const Jq = /* @__PURE__ */ Hg(Zq), UA = () => {
38121
38110
  disabled: a
38122
38111
  }
38123
38112
  );
38124
- }, uQ = () => Ov() ? /* @__PURE__ */ A.jsx(oQ, {}) : /* @__PURE__ */ A.jsx(sQ, {}), jg = ["deposit", "withdraw"], cQ = (e) => Object.keys(oa).some((t) => t === e), dQ = ({ children: e }) => {
38113
+ }, sQ = () => Ov() ? /* @__PURE__ */ A.jsx(iQ, {}) : /* @__PURE__ */ A.jsx(lQ, {}), jg = ["deposit", "withdraw"], uQ = (e) => Object.keys(oa).some((t) => t === e), cQ = ({ children: e }) => {
38125
38114
  const t = GP();
38126
38115
  let a = null;
38127
38116
  return b3.forEach(e, (o) => {
38128
38117
  if (ok(o)) {
38129
38118
  const u = o.props.type;
38130
- cQ(u) && t[u] && t[u].isOpen && (a = o);
38119
+ uQ(u) && t[u] && t[u].isOpen && (a = o);
38131
38120
  }
38132
38121
  }), a;
38133
- }, fQ = ({ type: e }) => {
38122
+ }, dQ = ({ type: e }) => {
38134
38123
  const t = Ut(), { DepositTermsOfUse: a, ActionButton: o = hl } = ca(), { handleReject: u, handleConfirm: f, isPending: p } = Pm({
38135
38124
  type: e
38136
38125
  });
@@ -38165,7 +38154,7 @@ const Jq = /* @__PURE__ */ Hg(Zq), UA = () => {
38165
38154
  )
38166
38155
  ] })
38167
38156
  ] });
38168
- }, pQ = ({ type: e }) => {
38157
+ }, fQ = ({ type: e }) => {
38169
38158
  const t = Ut(), { ActionButton: a = hl } = ca(), { handleReject: o, handleConfirm: u } = Pm({ type: e });
38170
38159
  return /* @__PURE__ */ A.jsxs(Sa.Overlay, { className: "dtw-justify-between dtw-gap-y-1", children: [
38171
38160
  /* @__PURE__ */ A.jsxs("div", { className: "dtw-flex dtw-gap-1 dtw-items-center dtw-text-warning", children: [
@@ -38188,18 +38177,18 @@ const Jq = /* @__PURE__ */ Hg(Zq), UA = () => {
38188
38177
  /* @__PURE__ */ A.jsx(a, { onClick: u, children: t.confirm })
38189
38178
  ] })
38190
38179
  ] });
38191
- }, mQ = ({ type: e }) => {
38192
- const { handleReject: t, handleConfirm: a } = Pm({ type: e }), { unlockTaxAmount: o, unlockDate: u, unlockTimestamp: f, isLoading: p } = bY(), h = !!f && Date.now() < f;
38180
+ }, pQ = ({ type: e }) => {
38181
+ const { handleReject: t, handleConfirm: a } = Pm({ type: e }), { unlockTaxAmount: o, unlockDate: u, unlockTimestamp: f, isLoading: p } = wY(), h = !!f && Date.now() < f;
38193
38182
  return {
38194
38183
  isLoading: p,
38195
38184
  showUnlockTaxTip: h,
38196
38185
  showUnlockTaxAmount: !!o && o !== "0",
38197
- unlockTaxAmount: $9(Dv(o, 0)),
38186
+ unlockTaxAmount: F9(Dv(o, 0)),
38198
38187
  unlockDate: u,
38199
38188
  handleReject: t,
38200
38189
  handleConfirm: a
38201
38190
  };
38202
- }, hQ = (e) => {
38191
+ }, mQ = (e) => {
38203
38192
  const { ActionButton: t = hl } = ca(), {
38204
38193
  isLoading: a,
38205
38194
  showUnlockTaxTip: o,
@@ -38208,8 +38197,8 @@ const Jq = /* @__PURE__ */ Hg(Zq), UA = () => {
38208
38197
  unlockTaxAmount: p,
38209
38198
  handleReject: h,
38210
38199
  handleConfirm: g
38211
- } = mQ(e);
38212
- return a ? /* @__PURE__ */ A.jsx(iq, {}) : /* @__PURE__ */ A.jsxs(Sa.Overlay, { className: "dtw-justify-between dtw-gap-y-1", children: [
38200
+ } = pQ(e);
38201
+ return a ? /* @__PURE__ */ A.jsx(aq, {}) : /* @__PURE__ */ A.jsxs(Sa.Overlay, { className: "dtw-justify-between dtw-gap-y-1", children: [
38213
38202
  /* @__PURE__ */ A.jsxs("div", { className: "dtw-flex dtw-gap-1 dtw-items-center dtw-text-warning", children: [
38214
38203
  /* @__PURE__ */ A.jsx(fv, { className: "dtw-h-5 dtw-w-5" }),
38215
38204
  /* @__PURE__ */ A.jsx("p", { children: "Withdraw Alert" })
@@ -38238,7 +38227,7 @@ const Jq = /* @__PURE__ */ Hg(Zq), UA = () => {
38238
38227
  ] })
38239
38228
  ] });
38240
38229
  };
38241
- function vQ({
38230
+ function hQ({
38242
38231
  title: e,
38243
38232
  titleId: t,
38244
38233
  ...a
@@ -38259,8 +38248,8 @@ function vQ({
38259
38248
  clipRule: "evenodd"
38260
38249
  }));
38261
38250
  }
38262
- const yQ = /* @__PURE__ */ ye.forwardRef(vQ);
38263
- function gQ({
38251
+ const vQ = /* @__PURE__ */ ye.forwardRef(hQ);
38252
+ function yQ({
38264
38253
  title: e,
38265
38254
  titleId: t,
38266
38255
  ...a
@@ -38281,8 +38270,8 @@ function gQ({
38281
38270
  clipRule: "evenodd"
38282
38271
  }));
38283
38272
  }
38284
- const wQ = /* @__PURE__ */ ye.forwardRef(gQ);
38285
- function bQ({
38273
+ const gQ = /* @__PURE__ */ ye.forwardRef(yQ);
38274
+ function wQ({
38286
38275
  title: e,
38287
38276
  titleId: t,
38288
38277
  ...a
@@ -38303,7 +38292,7 @@ function bQ({
38303
38292
  clipRule: "evenodd"
38304
38293
  }));
38305
38294
  }
38306
- const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PURE__ */ A.jsx(
38295
+ const dM = /* @__PURE__ */ ye.forwardRef(wQ), pT = ({ children: e }) => /* @__PURE__ */ A.jsx(
38307
38296
  "table",
38308
38297
  {
38309
38298
  className: "dtw-min-w-full dtw-border-separate",
@@ -38329,8 +38318,8 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38329
38318
  ] }),
38330
38319
  /* @__PURE__ */ A.jsx(HC, { show: a, children: /* @__PURE__ */ A.jsx(KC, { className: "dtw-mt-1 dtw-transition dtw-transform dtw-duration-100 dtw-ease-out data-[closed]:opacity-0 data-[closed]:-dtw-translate-y-2.5 dtw-static dtw-rounded-[var(--panel-radius-secondary,var(--panel-radius))] dtw-flex dtw-flex-col dtw-gap-1", children: e }) })
38331
38320
  ] }) });
38332
- }, TQ = (e) => {
38333
- const { address: t, chainId: a } = vt(), [{ value: o }] = gn(), u = cY({
38321
+ }, bQ = (e) => {
38322
+ const { address: t, chainId: a } = vt(), [{ value: o }] = gn(), u = uY({
38334
38323
  vaultTokensAmount: o,
38335
38324
  address: t,
38336
38325
  chainId: a
@@ -38350,7 +38339,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38350
38339
  unitAddress: (p == null ? void 0 : p.tokenAddress) ?? It,
38351
38340
  address: t
38352
38341
  };
38353
- }, xQ = ({ symbol: e }) => {
38342
+ }, TQ = ({ symbol: e }) => {
38354
38343
  const t = Ut();
38355
38344
  return /* @__PURE__ */ A.jsxs("div", { className: "dtw-flex dtw-gap-1 dtw-items-center dtw-text-xs dtw-text-[color:var(--panel-secondary-content-color)]", children: [
38356
38345
  t.as,
@@ -38372,7 +38361,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38372
38361
  address: h,
38373
38362
  unitSymbol: g,
38374
38363
  unitAddress: w
38375
- } = TQ(o), T = Ge(
38364
+ } = bQ(o), T = Ge(
38376
38365
  ({
38377
38366
  fraction: E,
38378
38367
  fractionUsd: R,
@@ -38400,7 +38389,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38400
38389
  }
38401
38390
  ),
38402
38391
  B && /* @__PURE__ */ A.jsx(
38403
- xQ,
38392
+ TQ,
38404
38393
  {
38405
38394
  symbol: iP(P).symbol
38406
38395
  }
@@ -38436,7 +38425,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38436
38425
  "a",
38437
38426
  {
38438
38427
  className: "dtw-text-warning dtw-inline-flex dtw-gap-0.5",
38439
- href: Z9(w),
38428
+ href: X9(w),
38440
38429
  target: "_blank",
38441
38430
  rel: "noreferrer",
38442
38431
  children: [
@@ -38447,18 +38436,18 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38447
38436
  )
38448
38437
  ] })
38449
38438
  ] }) : /* @__PURE__ */ A.jsx(BP, {}) });
38450
- }, SQ = ({
38439
+ }, xQ = ({
38451
38440
  token: e,
38452
38441
  onSelect: t
38453
38442
  }) => ({
38454
38443
  onClick: () => {
38455
38444
  t(e);
38456
38445
  }
38457
- }), EQ = ({
38446
+ }), SQ = ({
38458
38447
  token: e,
38459
38448
  onSelect: t
38460
38449
  }) => {
38461
- const { onClick: a } = SQ({ token: e, onSelect: t });
38450
+ const { onClick: a } = xQ({ token: e, onSelect: t });
38462
38451
  return /* @__PURE__ */ A.jsxs(
38463
38452
  "div",
38464
38453
  {
@@ -38486,7 +38475,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38486
38475
  ]
38487
38476
  }
38488
38477
  );
38489
- }, CQ = ({
38478
+ }, EQ = ({
38490
38479
  token: e,
38491
38480
  onSelect: t,
38492
38481
  isActive: a,
@@ -38515,7 +38504,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38515
38504
  onClose: a,
38516
38505
  isActive: o = !1
38517
38506
  }) => {
38518
- const { onClick: u, formattedBalance: f } = CQ({
38507
+ const { onClick: u, formattedBalance: f } = EQ({
38519
38508
  token: e,
38520
38509
  onSelect: t,
38521
38510
  onClose: a,
@@ -38547,7 +38536,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38547
38536
  }
38548
38537
  ),
38549
38538
  /* @__PURE__ */ A.jsxs("div", { className: "dtw-flex dtw-flex-col dtw-self-end dtw-text-sm dtw-font-light dtw-text-[color:var(--panel-balance-content-color)]", children: [
38550
- o && /* @__PURE__ */ A.jsx(yQ, { className: "dtw-w-4 dtw-self-end dtw-text-themeGreen" }),
38539
+ o && /* @__PURE__ */ A.jsx(vQ, { className: "dtw-w-4 dtw-self-end dtw-text-themeGreen" }),
38551
38540
  /* @__PURE__ */ A.jsxs("div", { children: [
38552
38541
  /* @__PURE__ */ A.jsx("span", { className: "dtw-mr-1 dtw-text-xs", children: e.symbol }),
38553
38542
  f
@@ -38556,8 +38545,8 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38556
38545
  ]
38557
38546
  }
38558
38547
  );
38559
- }, AQ = [], DQ = () => {
38560
- const e = vt(), [t] = Fd(), [a, o] = gn(), [u, f] = Gn(), { data: p } = SP(e), h = UA(), g = p ? AQ : e.withdrawParams.customTokens;
38548
+ }, CQ = [], AQ = () => {
38549
+ const e = vt(), [t] = Fd(), [a, o] = gn(), [u, f] = Gn(), { data: p } = SP(e), h = UA(), g = p ? CQ : e.withdrawParams.customTokens;
38561
38550
  return $e(
38562
38551
  () => ({
38563
38552
  tokens: t === "deposit" ? h : g,
@@ -38574,11 +38563,11 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38574
38563
  u
38575
38564
  ]
38576
38565
  );
38577
- }, RQ = ({
38566
+ }, DQ = ({
38578
38567
  searchQuery: e,
38579
38568
  type: t
38580
38569
  }) => {
38581
- const [{ isMultiAssetWithdrawalEnabled: a }] = $i(), { isCompleteWithdrawStep: o } = s0(), u = hP(), [f] = Fd(), { handleReject: p } = Pm({ type: t }), { tokens: h, updater: g, activeTokens: w } = DQ(), T = $e(
38570
+ const [{ isMultiAssetWithdrawalEnabled: a }] = $i(), { isCompleteWithdrawStep: o } = s0(), u = hP(), [f] = Fd(), { handleReject: p } = Pm({ type: t }), { tokens: h, updater: g, activeTokens: w } = AQ(), T = $e(
38582
38571
  () => e ? h.filter(
38583
38572
  ({ symbol: R }) => R.toLowerCase().includes(e)
38584
38573
  ) : h,
@@ -38596,7 +38585,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38596
38585
  onClose: p,
38597
38586
  showMultiAssetWithdrawalOption: a && f === "withdraw" && !u && !o
38598
38587
  };
38599
- }, OQ = ({
38588
+ }, RQ = ({
38600
38589
  type: e,
38601
38590
  searchQuery: t
38602
38591
  }) => {
@@ -38606,7 +38595,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38606
38595
  onSelect: f,
38607
38596
  showMultiAssetWithdrawalOption: p,
38608
38597
  onClose: h
38609
- } = RQ({ type: e, searchQuery: t });
38598
+ } = DQ({ type: e, searchQuery: t });
38610
38599
  return /* @__PURE__ */ A.jsxs(
38611
38600
  Sa.Overlay,
38612
38601
  {
@@ -38638,7 +38627,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38638
38627
  );
38639
38628
  }),
38640
38629
  p && /* @__PURE__ */ A.jsx("li", { className: "dtw-cursor-pointer dtw-rounded-xl dtw-p-0.5 even:dtw-bg-[color:var(--panel-popup-list-item-bg-even)] odd:dtw-bg-[color:var(--panel-popup-list-item-bg-odd)] dtw-group", children: /* @__PURE__ */ A.jsx(
38641
- EQ,
38630
+ SQ,
38642
38631
  {
38643
38632
  token: nC,
38644
38633
  onSelect: f
@@ -38648,7 +38637,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38648
38637
  ]
38649
38638
  }
38650
38639
  );
38651
- }, _Q = ({
38640
+ }, OQ = ({
38652
38641
  children: e,
38653
38642
  chainId: t
38654
38643
  }) => {
@@ -38676,11 +38665,11 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38676
38665
  balanceInUsd: ((a = t[e.address]) == null ? void 0 : a.balanceInUsd) ?? Bo({ value: 0 }),
38677
38666
  balanceInUsdNumber: ((o = t[e.address]) == null ? void 0 : o.balanceInUsdNumber) ?? 0
38678
38667
  } : { balanceInUsd: Bo({ value: 0 }), balanceInUsdNumber: 0 };
38679
- }, kQ = (e) => (t, a) => oC(a, e).balanceInUsdNumber - oC(t, e).balanceInUsdNumber, NQ = ({
38668
+ }, _Q = (e) => (t, a) => oC(a, e).balanceInUsdNumber - oC(t, e).balanceInUsdNumber, kQ = ({
38680
38669
  searchQuery: e,
38681
38670
  type: t
38682
38671
  }) => {
38683
- const a = gY(), o = GT(), u = vt(), { handleReject: f } = Pm({ type: t }), [p] = Fd(), h = gn()[1], g = Gn()[1], w = uG()[1], T = Ge(
38672
+ const a = yY(), o = GT(), u = vt(), { handleReject: f } = Pm({ type: t }), [p] = Fd(), h = gn()[1], g = Gn()[1], w = sG()[1], T = Ge(
38684
38673
  ({ address: R, value: D, decimals: _, symbol: P }) => {
38685
38674
  (p === "deposit" ? g : h)({ address: R, value: D, decimals: _, symbol: P }), w(R), f();
38686
38675
  },
@@ -38706,7 +38695,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38706
38695
  isActive: u.address === D.address
38707
38696
  })).filter(
38708
38697
  ({ symbol: D }) => e ? D.toLowerCase().includes(e) : !0
38709
- ).slice().sort(kQ(a))
38698
+ ).slice().sort(_Q(a))
38710
38699
  ]
38711
38700
  })
38712
38701
  ),
@@ -38715,11 +38704,11 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38715
38704
  onClose: f,
38716
38705
  onSelect: T
38717
38706
  };
38718
- }, LQ = ({
38707
+ }, NQ = ({
38719
38708
  type: e,
38720
38709
  searchQuery: t
38721
38710
  }) => {
38722
- const a = Ut(), { poolList: o, onClose: u, onSelect: f } = NQ({
38711
+ const a = Ut(), { poolList: o, onClose: u, onSelect: f } = kQ({
38723
38712
  type: e,
38724
38713
  searchQuery: t
38725
38714
  });
@@ -38731,7 +38720,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38731
38720
  className: "dtw-gap-[var(--panel-gap)]",
38732
38721
  children: [
38733
38722
  /* @__PURE__ */ A.jsx("span", { className: "dtw-text-center dtw-text-[length:var(--panel-font-size-sm)] dtw-font-[var(--panel-font-weight-medium)]", children: a.selectToken }),
38734
- /* @__PURE__ */ A.jsx("div", { className: "theme-scrollbar dtw-grid dtw-gap-[calc(var(--panel-gap) * 0.5)] dtw-overflow-y-auto", children: o.map(({ chainId: p, configs: h }) => /* @__PURE__ */ A.jsx(_Q, { chainId: p, children: h.map(({ isActive: g, symbol: w, address: T }) => /* @__PURE__ */ A.jsx(
38723
+ /* @__PURE__ */ A.jsx("div", { className: "theme-scrollbar dtw-grid dtw-gap-[calc(var(--panel-gap) * 0.5)] dtw-overflow-y-auto", children: o.map(({ chainId: p, configs: h }) => /* @__PURE__ */ A.jsx(OQ, { chainId: p, children: h.map(({ isActive: g, symbol: w, address: T }) => /* @__PURE__ */ A.jsx(
38735
38724
  "div",
38736
38725
  {
38737
38726
  className: Rt(
@@ -38760,7 +38749,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38760
38749
  ]
38761
38750
  }
38762
38751
  );
38763
- }, PQ = ({ type: e }) => {
38752
+ }, LQ = ({ type: e }) => {
38764
38753
  const t = Ut(), [{ status: a, link: o, action: u }, f] = Id(), p = a == "Success", { handleReject: h } = Pm({ type: e }), g = u === "single_withdraw" && p, w = $e(
38765
38754
  () => ({
38766
38755
  Wallet: t.sendingOrderToWallet,
@@ -38778,14 +38767,14 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38778
38767
  onClose: T,
38779
38768
  showNextStepTip: g
38780
38769
  };
38781
- }, MQ = ({ sendTokens: e }) => {
38770
+ }, PQ = ({ sendTokens: e }) => {
38782
38771
  const t = Ut(), [a] = e ?? [];
38783
38772
  return a ? /* @__PURE__ */ A.jsxs("div", { className: "dtw-flex dtw-items-center dtw-gap-1 dtw-flex-wrap dtw-overflow-hidden", children: [
38784
38773
  /* @__PURE__ */ A.jsx("span", { children: t.approveSpending }),
38785
38774
  /* @__PURE__ */ A.jsx(bv, { size: "sm", symbols: [a.symbol] }),
38786
38775
  /* @__PURE__ */ A.jsx("span", { children: a.symbol })
38787
38776
  ] }) : null;
38788
- }, IQ = ({ receiveTokens: e }) => {
38777
+ }, MQ = ({ receiveTokens: e }) => {
38789
38778
  const t = Ut(), [a] = e ?? [];
38790
38779
  return a ? /* @__PURE__ */ A.jsxs("div", { className: "dtw-flex dtw-flex-wrap dtw-items-center dtw-gap-1", children: [
38791
38780
  t.swapAndClaimTo,
@@ -38796,7 +38785,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38796
38785
  a.symbol
38797
38786
  ] })
38798
38787
  ] }) : null;
38799
- }, FQ = ({ sendTokens: e, receiveTokens: t, action: a }) => {
38788
+ }, IQ = ({ sendTokens: e, receiveTokens: t, action: a }) => {
38800
38789
  const o = Ut(), [u] = e ?? [], [f] = t ?? [];
38801
38790
  return u ? /* @__PURE__ */ A.jsxs("div", { className: "dtw-flex dtw-flex-wrap dtw-items-center dtw-gap-x-1", children: [
38802
38791
  a === "deposit" ? o.pay : a === "multi_withdraw" ? o.sell : o.unrollAction,
@@ -38813,24 +38802,24 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38813
38802
  f.symbol
38814
38803
  ] }) : /* @__PURE__ */ A.jsx(A.Fragment, { children: a === "multi_withdraw" ? o.multiAssetFractions : o.swappableAssets }) })
38815
38804
  ] }) : null;
38816
- }, $Q = () => {
38805
+ }, FQ = () => {
38817
38806
  const e = Ut(), [{ action: t, receiveTokens: a, sendTokens: o }] = Id();
38818
- return t === "approve" ? /* @__PURE__ */ A.jsx(MQ, { sendTokens: o }) : t === "swap" ? /* @__PURE__ */ A.jsx(IQ, { receiveTokens: a }) : t === "claim" ? /* @__PURE__ */ A.jsx(A.Fragment, { children: e.claimLabel }) : /* @__PURE__ */ A.jsx(
38819
- FQ,
38807
+ return t === "approve" ? /* @__PURE__ */ A.jsx(PQ, { sendTokens: o }) : t === "swap" ? /* @__PURE__ */ A.jsx(MQ, { receiveTokens: a }) : t === "claim" ? /* @__PURE__ */ A.jsx(A.Fragment, { children: e.claimLabel }) : /* @__PURE__ */ A.jsx(
38808
+ IQ,
38820
38809
  {
38821
38810
  action: t,
38822
38811
  sendTokens: o,
38823
38812
  receiveTokens: a
38824
38813
  }
38825
38814
  );
38826
- }, BQ = ({ type: e }) => {
38827
- const { link: t, title: a, onClose: o, isSuccessTx: u, showNextStepTip: f } = PQ({ type: e }), { LogoSpinner: p = qf } = ca(), h = Ut();
38815
+ }, $Q = ({ type: e }) => {
38816
+ const { link: t, title: a, onClose: o, isSuccessTx: u, showNextStepTip: f } = LQ({ type: e }), { LogoSpinner: p = qf } = ca(), h = Ut();
38828
38817
  return /* @__PURE__ */ A.jsxs(Sa.Notification, { onClose: o, children: [
38829
38818
  /* @__PURE__ */ A.jsxs("div", { className: "dtw-flex dtw-items-center dtw-gap-1.5", children: [
38830
38819
  /* @__PURE__ */ A.jsx("span", { className: "dtw-font-semibold dtw-drop-shadow-md", children: a }),
38831
38820
  u ? /* @__PURE__ */ A.jsx(pC, { className: "dtw-h-6 dtw-w-6 dtw-text-success" }) : /* @__PURE__ */ A.jsx(p, { className: "dtw-h-5 dtw-w-5 " })
38832
38821
  ] }),
38833
- /* @__PURE__ */ A.jsx("div", { className: "dtw-font-light dtw-text-sm dtw-max-h-16 dtw-overflow-y-auto dtw-break-all", children: /* @__PURE__ */ A.jsx($Q, {}) }),
38822
+ /* @__PURE__ */ A.jsx("div", { className: "dtw-font-light dtw-text-sm dtw-max-h-16 dtw-overflow-y-auto dtw-break-all", children: /* @__PURE__ */ A.jsx(FQ, {}) }),
38834
38823
  t && /* @__PURE__ */ A.jsx(
38835
38824
  IP,
38836
38825
  {
@@ -38842,24 +38831,24 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38842
38831
  ),
38843
38832
  f && /* @__PURE__ */ A.jsx("p", { className: "dtw-text-xs", children: h.proceedWithNextStep })
38844
38833
  ] });
38845
- }, UQ = Ld.filter(
38834
+ }, BQ = Ld.filter(
38846
38835
  ({ type: e }) => e === "error"
38847
- ).map(({ name: e }) => e), jQ = ({ type: e }) => {
38836
+ ).map(({ name: e }) => e), UQ = ({ type: e }) => {
38848
38837
  const { handleReject: t, meta: a } = Pm({ type: e });
38849
38838
  return {
38850
38839
  handleReject: t,
38851
38840
  error: eP({
38852
38841
  errorMessage: a == null ? void 0 : a.error,
38853
- abiErrors: UQ
38842
+ abiErrors: BQ
38854
38843
  })
38855
38844
  };
38856
- }, zQ = (e) => {
38857
- const { handleReject: t, error: a } = jQ(e);
38845
+ }, jQ = (e) => {
38846
+ const { handleReject: t, error: a } = UQ(e);
38858
38847
  return a ? /* @__PURE__ */ A.jsxs(Sa.Notification, { onClose: t, children: [
38859
38848
  /* @__PURE__ */ A.jsx("p", { className: "dtw-text-sm", children: a.title }),
38860
38849
  a.hint && /* @__PURE__ */ A.jsx("p", { className: "dtw-text-xs", children: a.hint })
38861
38850
  ] }) : null;
38862
- }, HQ = () => {
38851
+ }, zQ = () => {
38863
38852
  const [e] = Fd(), [t, a] = $i(), [o, u] = Lt(!1), f = t.slippage !== "auto";
38864
38853
  return {
38865
38854
  settings: t,
@@ -38895,7 +38884,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38895
38884
  onClick: o,
38896
38885
  children: t
38897
38886
  }
38898
- ), WQ = 0, VQ = 100, hM = () => {
38887
+ ), HQ = 0, WQ = 100, hM = () => {
38899
38888
  const e = Ut(), {
38900
38889
  settings: t,
38901
38890
  tradingType: a,
@@ -38903,7 +38892,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38903
38892
  invalidSlippage: u,
38904
38893
  onDefaultSlippageSelect: f,
38905
38894
  onCustomSlippageSelect: p
38906
- } = HQ(), h = kP({
38895
+ } = zQ(), h = kP({
38907
38896
  tradingType: a,
38908
38897
  slippage: t.slippage,
38909
38898
  minSlippage: t.minSlippage
@@ -38929,8 +38918,8 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38929
38918
  }
38930
38919
  ),
38931
38920
  type: "number",
38932
- min: WQ,
38933
- max: VQ,
38921
+ min: HQ,
38922
+ max: WQ,
38934
38923
  onChange: p,
38935
38924
  placeholder: h,
38936
38925
  defaultValue: o ? t.slippage.toString() : ""
@@ -38940,7 +38929,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38940
38929
  ] })
38941
38930
  ] });
38942
38931
  }, vM = () => {
38943
- const e = Ut(), [t, a] = yq();
38932
+ const e = Ut(), [t, a] = vq();
38944
38933
  return /* @__PURE__ */ A.jsx(
38945
38934
  FP,
38946
38935
  {
@@ -38949,7 +38938,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38949
38938
  label: e.infinite
38950
38939
  }
38951
38940
  );
38952
- }, GQ = () => {
38941
+ }, VQ = () => {
38953
38942
  const [{ availableAggregators: e, selectedAggregators: t }, a] = $i(), o = Ge(
38954
38943
  (u) => {
38955
38944
  const f = t.includes(u) ? t.filter((p) => p !== u) : [...t, u];
@@ -38963,7 +38952,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38963
38952
  onAggregatorToggle: o
38964
38953
  };
38965
38954
  }, yM = () => {
38966
- const e = Ut(), { availableAggregators: t, selectedAggregators: a, onAggregatorToggle: o } = GQ();
38955
+ const e = Ut(), { availableAggregators: t, selectedAggregators: a, onAggregatorToggle: o } = VQ();
38967
38956
  return t.length <= 1 ? null : /* @__PURE__ */ A.jsx(
38968
38957
  Lg,
38969
38958
  {
@@ -38989,7 +38978,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
38989
38978
  )) })
38990
38979
  }
38991
38980
  );
38992
- }, YQ = () => {
38981
+ }, GQ = () => {
38993
38982
  const e = Ut();
38994
38983
  return /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
38995
38984
  /* @__PURE__ */ A.jsx(
@@ -39010,9 +38999,9 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
39010
38999
  ),
39011
39000
  /* @__PURE__ */ A.jsx(yM, {})
39012
39001
  ] });
39002
+ }, YQ = () => {
39003
+ Qq(), Kq();
39013
39004
  }, qQ = () => {
39014
- Kq(), Xq();
39015
- }, QQ = () => {
39016
39005
  const { stablePrecision: e, defaultPrecision: t } = dr(), [{ symbol: a, address: o }] = gn(), u = $d({ symbol: a, address: o, watch: !0 }), { chainId: f } = vt(), p = Sc({ address: o, chainId: f }) ?? "";
39017
39006
  return {
39018
39007
  formattedBalance: `${tP(u, a === "USDC" ? e : t)} ${a}`,
@@ -39020,11 +39009,11 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
39020
39009
  value: new Ze(u).multipliedBy(p).toNumber()
39021
39010
  })}` : null
39022
39011
  };
39023
- }, KQ = () => {
39024
- const { formattedBalance: e, formattedPrice: t } = QQ();
39012
+ }, QQ = () => {
39013
+ const { formattedBalance: e, formattedPrice: t } = qQ();
39025
39014
  return /* @__PURE__ */ A.jsx($P, { balance: e, price: t });
39026
- }, XQ = () => {
39027
- const e = Ud(), { onAcceptTermsOfUse: t } = _P(), { termsOfUseAccepted: a } = dr(), o = Yq(), { disabled: u, label: f, handleTrade: p } = iM(o), { isError: h } = p0(), g = c0("deposit");
39015
+ }, KQ = () => {
39016
+ const e = Ud(), { onAcceptTermsOfUse: t } = _P(), { termsOfUseAccepted: a } = dr(), o = Gq(), { disabled: u, label: f, handleTrade: p } = iM(o), { isError: h } = p0(), g = c0("deposit");
39028
39017
  return {
39029
39018
  handleClick: () => {
39030
39019
  if (h) {
@@ -39061,11 +39050,11 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
39061
39050
  label: f,
39062
39051
  isLoading: g
39063
39052
  };
39064
- }, ZQ = () => {
39065
- const { ActionButton: e = hl } = ca(), { handleClick: t, label: a, disabled: o, isLoading: u } = XQ();
39053
+ }, XQ = () => {
39054
+ const { ActionButton: e = hl } = ca(), { handleClick: t, label: a, disabled: o, isLoading: u } = KQ();
39066
39055
  return /* @__PURE__ */ A.jsx(e, { onClick: t, disabled: o, loading: u, children: a });
39067
- }, JQ = () => {
39068
- const { deprecated: e, symbol: t, maintenance: a, maintenanceDeposits: o } = vt(), [u] = gn(), { isVaultDepositLocked: f, isAccountWhitelisted: p } = tQ(), { approve: h, canSpend: g } = qq(), { requiresHighSlippageConfirm: w, confirmHighSlippage: T, slippageToBeUsed: E } = NA(), { requiresMinDeposit: R, requiredMinDepositAmount: D } = aQ();
39056
+ }, ZQ = () => {
39057
+ const { deprecated: e, symbol: t, maintenance: a, maintenanceDeposits: o } = vt(), [u] = gn(), { isVaultDepositLocked: f, isAccountWhitelisted: p } = eQ(), { approve: h, canSpend: g } = Yq(), { requiresHighSlippageConfirm: w, confirmHighSlippage: T, slippageToBeUsed: E } = NA(), { requiresMinDeposit: R, requiredMinDepositAmount: D } = rQ();
39069
39058
  return {
39070
39059
  requiresMinDeposit: R,
39071
39060
  requiresWhitelist: f && !p,
@@ -39080,7 +39069,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
39080
39069
  slippageToBeUsed: E,
39081
39070
  maintenance: a || o
39082
39071
  };
39083
- }, eK = ({ children: e }) => {
39072
+ }, JQ = ({ children: e }) => {
39084
39073
  const { ActionButton: t = hl } = ca(), a = Ut(), o = LA("deposit"), {
39085
39074
  requiresMinDeposit: u,
39086
39075
  requiredMinDepositAmount: f,
@@ -39094,7 +39083,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
39094
39083
  approve: D,
39095
39084
  confirmHighSlippage: _,
39096
39085
  maintenance: P
39097
- } = JQ();
39086
+ } = ZQ();
39098
39087
  return u ? /* @__PURE__ */ A.jsx(t, { disabled: !0, children: a.minimumPurchase.replace("{value}", f) }) : h || P ? /* @__PURE__ */ A.jsx(
39099
39088
  Yb,
39100
39089
  {
@@ -39105,8 +39094,8 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
39105
39094
  "{slippagePercentage}",
39106
39095
  `${Math.abs(R)}`
39107
39096
  ) }) : e;
39108
- }, tK = ({ symbol: e }) => {
39109
- const t = GT(), a = Ud(), { standalone: o } = dr(), u = t.some((T) => T.symbol === e), f = e === "all", p = lG(), h = u && t.length === 1;
39097
+ }, eK = ({ symbol: e }) => {
39098
+ const t = GT(), a = Ud(), { standalone: o } = dr(), u = t.some((T) => T.symbol === e), f = e === "all", p = oG(), h = u && t.length === 1;
39110
39099
  return {
39111
39100
  isAllSymbol: f,
39112
39101
  onClick: () => {
@@ -39121,8 +39110,8 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
39121
39110
  disabled: h,
39122
39111
  hideTokenIcon: o && u
39123
39112
  };
39124
- }, nK = ({ symbol: e }) => {
39125
- const { isAllSymbol: t, onClick: a, disabled: o, hideTokenIcon: u } = tK({
39113
+ }, tK = ({ symbol: e }) => {
39114
+ const { isAllSymbol: t, onClick: a, disabled: o, hideTokenIcon: u } = eK({
39126
39115
  symbol: e
39127
39116
  }), f = Ut();
39128
39117
  return /* @__PURE__ */ A.jsxs(
@@ -39146,7 +39135,7 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
39146
39135
  }
39147
39136
  ),
39148
39137
  !o && /* @__PURE__ */ A.jsx(
39149
- wQ,
39138
+ gQ,
39150
39139
  {
39151
39140
  className: "dtw-flex-shrink-0 dtw-text-[color:var(--panel-icon-color,var(--panel-content-color))] dtw-h-[var(--panel-input-token-icon-size,var(--panel-icon-size))] dtw-w-[var(--panel-input-token-icon-size,var(--panel-icon-size))] sm:dtw-w-[var(--panel-input-token-icon-size-sm,var(--panel-icon-size-sm))] sm:dtw-h-[var(--panel-input-token-icon-size-sm,var(--panel-icon-size-sm))]",
39152
39141
  "aria-hidden": "true"
@@ -39156,13 +39145,13 @@ const dM = /* @__PURE__ */ ye.forwardRef(bQ), pT = ({ children: e }) => /* @__PU
39156
39145
  }
39157
39146
  );
39158
39147
  };
39159
- function rK(e, t) {
39148
+ function nK(e, t) {
39160
39149
  const a = new Ze(e);
39161
39150
  return t && a.gt(0) ? a.toFixed(6) : e;
39162
39151
  }
39163
- const aK = (e) => {
39152
+ const rK = (e) => {
39164
39153
  e.currentTarget.blur();
39165
- }, iK = ({
39154
+ }, aK = ({
39166
39155
  displayCalculatedValue: e,
39167
39156
  assetInput: t = "",
39168
39157
  assetPrice: a,
@@ -39193,7 +39182,7 @@ const aK = (e) => {
39193
39182
  return {
39194
39183
  inputRef: w,
39195
39184
  usdAmount: T,
39196
- value: rK(t, g),
39185
+ value: nK(t, g),
39197
39186
  autoFocus: h,
39198
39187
  onContainerClick: E,
39199
39188
  onMaxBalanceClick: D,
@@ -39208,7 +39197,7 @@ const aK = (e) => {
39208
39197
  onContainerClick: f,
39209
39198
  onMaxBalanceClick: p,
39210
39199
  onInputChange: h
39211
- } = iK(e), {
39200
+ } = aK(e), {
39212
39201
  label: g,
39213
39202
  assetSymbol: w,
39214
39203
  onInputFocus: T,
@@ -39260,7 +39249,7 @@ const aK = (e) => {
39260
39249
  disabled: !0
39261
39250
  }
39262
39251
  ) }),
39263
- R && /* @__PURE__ */ A.jsx(nq, { onClick: p })
39252
+ R && /* @__PURE__ */ A.jsx(tq, { onClick: p })
39264
39253
  ] })
39265
39254
  ] }),
39266
39255
  /* @__PURE__ */ A.jsxs("div", { className: "dtw-flex dtw-items-center dtw-gap-x-2", children: [
@@ -39280,15 +39269,15 @@ const aK = (e) => {
39280
39269
  onFocus: T,
39281
39270
  placeholder: "0",
39282
39271
  disabled: E,
39283
- onWheelCapture: aK
39272
+ onWheelCapture: rK
39284
39273
  }
39285
39274
  ) }),
39286
- /* @__PURE__ */ A.jsx(nK, { symbol: w })
39275
+ /* @__PURE__ */ A.jsx(tK, { symbol: w })
39287
39276
  ] })
39288
39277
  ]
39289
39278
  }
39290
39279
  );
39291
- }, oK = () => {
39280
+ }, iK = () => {
39292
39281
  const [e, t] = gn(), { chainId: a } = vt(), o = Sc({ address: e.address, chainId: a }), u = $d({
39293
39282
  symbol: e.symbol,
39294
39283
  address: e.address
@@ -39299,14 +39288,14 @@ const aK = (e) => {
39299
39288
  balance: u,
39300
39289
  updater: t
39301
39290
  };
39302
- }, lK = () => {
39291
+ }, oK = () => {
39303
39292
  const { address: e, chainId: t } = vt(), [a] = Gn(), o = xc({ address: e, chainId: t });
39304
39293
  return {
39305
39294
  ...a,
39306
39295
  price: o
39307
39296
  };
39308
- }, sK = () => {
39309
- const e = oK(), t = lK(), a = EA(), o = cM(), [{ minSlippage: u }] = $i();
39297
+ }, lK = () => {
39298
+ const e = iK(), t = oK(), a = EA(), o = cM(), [{ minSlippage: u }] = $i();
39310
39299
  return {
39311
39300
  autoFocus: !1,
39312
39301
  sendToken: e,
@@ -39323,7 +39312,7 @@ const aK = (e) => {
39323
39312
  e.updater({ value: h });
39324
39313
  }
39325
39314
  };
39326
- }, uK = () => {
39315
+ }, sK = () => {
39327
39316
  const {
39328
39317
  sendToken: e,
39329
39318
  receiveToken: t,
@@ -39332,7 +39321,7 @@ const aK = (e) => {
39332
39321
  minSlippage: u,
39333
39322
  onInputFocus: f,
39334
39323
  onInputChange: p
39335
- } = sK(), h = o0(u ?? 0), g = Ut();
39324
+ } = lK(), h = o0(u ?? 0), g = Ut();
39336
39325
  return /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
39337
39326
  /* @__PURE__ */ A.jsx(
39338
39327
  zg,
@@ -39366,7 +39355,7 @@ const aK = (e) => {
39366
39355
  )
39367
39356
  ] });
39368
39357
  }, jA = ({ className: e }) => {
39369
- const { value: t, isLoading: a } = vq();
39358
+ const { value: t, isLoading: a } = hq();
39370
39359
  return /* @__PURE__ */ A.jsxs(
39371
39360
  "div",
39372
39361
  {
@@ -39391,8 +39380,8 @@ const aK = (e) => {
39391
39380
  ]
39392
39381
  }
39393
39382
  );
39394
- }, cK = () => {
39395
- const e = Ut(), [{ slippage: t, minSlippage: a, isMaxSlippageLoading: o }] = $i(), u = t === "auto", f = sM(), [p] = Gn(), { address: h, chainId: g } = vt(), { entryFee: w } = _A({ address: h, chainId: g }), { minDepositUSD: T } = xP(h, g), E = jq(), R = nQ(), D = f0(), _ = T ? Bo({ value: T, minimumFractionDigits: 0 }) : "", P = o0(
39383
+ }, uK = () => {
39384
+ const e = Ut(), [{ slippage: t, minSlippage: a, isMaxSlippageLoading: o }] = $i(), u = t === "auto", f = sM(), [p] = Gn(), { address: h, chainId: g } = vt(), { entryFee: w } = _A({ address: h, chainId: g }), { minDepositUSD: T } = xP(h, g), E = Uq(), R = tQ(), D = f0(), _ = T ? Bo({ value: T, minimumFractionDigits: 0 }) : "", P = o0(
39396
39385
  u ? a ?? 0 : t
39397
39386
  ), B = kP({
39398
39387
  tradingType: "deposit",
@@ -39415,7 +39404,7 @@ const aK = (e) => {
39415
39404
  lockTime: R,
39416
39405
  showMinimumReceivedAmount: D
39417
39406
  };
39418
- }, dK = () => {
39407
+ }, cK = () => {
39419
39408
  const e = Ut(), {
39420
39409
  projectedEarnings: { yearlyEarnings: t, dailyEarnings: a, showEarnings: o },
39421
39410
  slippageTooltipText: u,
@@ -39428,7 +39417,7 @@ const aK = (e) => {
39428
39417
  minDeposit: E,
39429
39418
  lockTime: R,
39430
39419
  showMinimumReceivedAmount: D
39431
- } = cK(), _ = o ? [
39420
+ } = uK(), _ = o ? [
39432
39421
  {
39433
39422
  tooltipText: e.projectedYearlyEarningsTooltip,
39434
39423
  label: e.yearlyEarnings,
@@ -39502,15 +39491,15 @@ const aK = (e) => {
39502
39491
  children: /* @__PURE__ */ A.jsx("p", { className: "dtw-py-1", children: e.tokensLockTime.replace("{lockTime}", R) })
39503
39492
  }
39504
39493
  );
39505
- }, fK = ({ children: e }) => {
39494
+ }, dK = ({ children: e }) => {
39506
39495
  const { DepositMetaInfo: t } = ca();
39507
39496
  return /* @__PURE__ */ A.jsxs(Sa.Meta, { children: [
39508
- /* @__PURE__ */ A.jsx(dK, {}),
39497
+ /* @__PURE__ */ A.jsx(cK, {}),
39509
39498
  t && /* @__PURE__ */ A.jsx(t, {}),
39510
39499
  e
39511
39500
  ] });
39512
- }, pK = () => {
39513
- qQ();
39501
+ }, fK = () => {
39502
+ YQ();
39514
39503
  const { isGeoBlocked: e, isSanctioned: t } = dr(), { GeoBlockAlert: a, ExtraActionButton: o, SanctionedAlert: u } = ca(), f = e || t, p = [
39515
39504
  {
39516
39505
  Component: a,
@@ -39524,16 +39513,16 @@ const aK = (e) => {
39524
39513
  }
39525
39514
  ].filter(({ value: h }) => h);
39526
39515
  return /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
39527
- /* @__PURE__ */ A.jsx(Sa.Balance, { children: /* @__PURE__ */ A.jsx(KQ, {}) }),
39528
- /* @__PURE__ */ A.jsx(Sa.InputGroup, { children: /* @__PURE__ */ A.jsx(uK, {}) }),
39529
- /* @__PURE__ */ A.jsx(fK, { children: f ? p.map(
39516
+ /* @__PURE__ */ A.jsx(Sa.Balance, { children: /* @__PURE__ */ A.jsx(QQ, {}) }),
39517
+ /* @__PURE__ */ A.jsx(Sa.InputGroup, { children: /* @__PURE__ */ A.jsx(sK, {}) }),
39518
+ /* @__PURE__ */ A.jsx(dK, { children: f ? p.map(
39530
39519
  ({ Component: h, key: g }) => h && /* @__PURE__ */ A.jsx(h, {}, g)
39531
39520
  ) : /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
39532
- /* @__PURE__ */ A.jsx(MA, { children: /* @__PURE__ */ A.jsx(eK, { children: /* @__PURE__ */ A.jsx(ZQ, {}) }) }),
39521
+ /* @__PURE__ */ A.jsx(MA, { children: /* @__PURE__ */ A.jsx(JQ, { children: /* @__PURE__ */ A.jsx(XQ, {}) }) }),
39533
39522
  o && /* @__PURE__ */ A.jsx(o, {})
39534
39523
  ] }) })
39535
39524
  ] });
39536
- }, mK = () => /* @__PURE__ */ A.jsx(Sa.Panel, { children: /* @__PURE__ */ A.jsx(pK, {}) }), hK = () => {
39525
+ }, pK = () => /* @__PURE__ */ A.jsx(Sa.Panel, { children: /* @__PURE__ */ A.jsx(fK, {}) }), mK = () => {
39537
39526
  const e = Ut();
39538
39527
  return /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
39539
39528
  /* @__PURE__ */ A.jsx(
@@ -39554,7 +39543,7 @@ const aK = (e) => {
39554
39543
  ),
39555
39544
  /* @__PURE__ */ A.jsx(yM, {})
39556
39545
  ] });
39557
- }, vK = ({ assets: e = [] }) => {
39546
+ }, hK = ({ assets: e = [] }) => {
39558
39547
  const { stablePrecision: t } = dr(), { firstPart: a, secondPart: o } = XL(
39559
39548
  e,
39560
39549
  IL
@@ -39585,8 +39574,8 @@ const aK = (e) => {
39585
39574
  /* @__PURE__ */ A.jsx(pT, { children: a.map(u) }),
39586
39575
  o.length > 0 && /* @__PURE__ */ A.jsx(fM, { children: /* @__PURE__ */ A.jsx(pT, { children: o.map(u) }) })
39587
39576
  ] });
39588
- }, yK = () => {
39589
- const { chainId: e } = vt(), { stablePrecision: t } = dr(), { data: a = [] } = Ec(), o = eM(), { data: u = It } = Aq();
39577
+ }, vK = () => {
39578
+ const { chainId: e } = vt(), { stablePrecision: t } = dr(), { data: a = [] } = Ec(), o = eM(), { data: u = It } = Cq();
39590
39579
  return {
39591
39580
  assets: a,
39592
39581
  usdAmount: Bo({
@@ -39599,8 +39588,8 @@ const aK = (e) => {
39599
39588
  e
39600
39589
  )
39601
39590
  };
39602
- }, gK = () => {
39603
- const e = Ut(), { assets: t, usdAmount: a, withdrawalVaultLink: o } = yK();
39591
+ }, yK = () => {
39592
+ const e = Ut(), { assets: t, usdAmount: a, withdrawalVaultLink: o } = vK();
39604
39593
  return /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
39605
39594
  /* @__PURE__ */ A.jsxs("div", { className: "dtw-text-sm dtw-flex dtw-items-center dtw-gap-1", children: [
39606
39595
  /* @__PURE__ */ A.jsx("span", { className: "dtw-text-[color:var(--panel-secondary-content-color)]", children: e.total }),
@@ -39613,9 +39602,9 @@ const aK = (e) => {
39613
39602
  }
39614
39603
  )
39615
39604
  ] }),
39616
- /* @__PURE__ */ A.jsx("div", { className: "dtw-flex dtw-flex-col dtw-gap-[var(--panel-input-group-gap,var(--panel-gap))] dtw-rounded-[var(--panel-input-radius,var(--panel-radius))] dtw-border dtw-bg-[var(--panel-input-bg,var(--panel-neutral-color))] dtw-py-[var(--panel-input-py)] dtw-px-[var(--panel-input-px)] dtw-shadow-md dtw-border-[var(--panel-input-border-color)]", children: /* @__PURE__ */ A.jsx(vK, { assets: t }) })
39605
+ /* @__PURE__ */ A.jsx("div", { className: "dtw-flex dtw-flex-col dtw-gap-[var(--panel-input-group-gap,var(--panel-gap))] dtw-rounded-[var(--panel-input-radius,var(--panel-radius))] dtw-border dtw-bg-[var(--panel-input-bg,var(--panel-neutral-color))] dtw-py-[var(--panel-input-py)] dtw-px-[var(--panel-input-px)] dtw-shadow-md dtw-border-[var(--panel-input-border-color)]", children: /* @__PURE__ */ A.jsx(hK, { assets: t }) })
39617
39606
  ] });
39618
- }, X_ = !0, wK = () => {
39607
+ }, X_ = !0, gK = () => {
39619
39608
  const { isWrongNetwork: e } = YP(), t = JP({ isClaim: X_ }), { disabled: a, label: o, handleTrade: u } = nM({
39620
39609
  withdraw: t,
39621
39610
  isClaim: X_
@@ -39625,7 +39614,7 @@ const aK = (e) => {
39625
39614
  highlighted: e,
39626
39615
  className: t
39627
39616
  }) => {
39628
- const { ActionButton: a = hl } = ca(), { handleTrade: o, disabled: u, label: f, isWrongNetwork: p, isLoading: h } = wK();
39617
+ const { ActionButton: a = hl } = ca(), { handleTrade: o, disabled: u, label: f, isWrongNetwork: p, isLoading: h } = gK();
39629
39618
  return p ? null : /* @__PURE__ */ A.jsx(
39630
39619
  a,
39631
39620
  {
@@ -39637,7 +39626,7 @@ const aK = (e) => {
39637
39626
  children: f
39638
39627
  }
39639
39628
  );
39640
- }, bK = () => {
39629
+ }, wK = () => {
39641
39630
  const e = Ud(), t = JP(), { isError: a } = u0(), { disabled: o, label: u, handleTrade: f } = nM({
39642
39631
  withdraw: t
39643
39632
  }), p = c0("swap");
@@ -39662,10 +39651,10 @@ const aK = (e) => {
39662
39651
  },
39663
39652
  isLoading: p
39664
39653
  };
39665
- }, TK = () => {
39666
- const { ActionButton: e = hl } = ca(), { handleClick: t, disabled: a, label: o, isLoading: u } = bK();
39654
+ }, bK = () => {
39655
+ const { ActionButton: e = hl } = ca(), { handleClick: t, disabled: a, label: o, isLoading: u } = wK();
39667
39656
  return /* @__PURE__ */ A.jsx(e, { onClick: t, disabled: a, loading: u, children: o });
39668
- }, xK = () => {
39657
+ }, TK = () => {
39669
39658
  const e = Ud(), { requiresHighSlippageConfirm: t, confirmHighSlippage: a, slippageToBeUsed: o } = NA();
39670
39659
  return {
39671
39660
  requiresHighSlippageConfirm: t,
@@ -39681,21 +39670,21 @@ const aK = (e) => {
39681
39670
  });
39682
39671
  }
39683
39672
  };
39684
- }, SK = ({ children: e }) => {
39673
+ }, xK = ({ children: e }) => {
39685
39674
  const { ActionButton: t = hl } = ca(), a = Ut(), {
39686
39675
  requiresHighSlippageConfirm: o,
39687
39676
  slippageToBeUsed: u,
39688
39677
  handleHighSlippageClick: f
39689
- } = xK();
39678
+ } = TK();
39690
39679
  return o ? /* @__PURE__ */ A.jsx(t, { onClick: f, children: a.confirmMaxSlippage.replace(
39691
39680
  "{slippagePercentage}",
39692
39681
  `${Math.abs(u)}`
39693
39682
  ) }) : e;
39694
- }, EK = () => {
39695
- _q();
39683
+ }, SK = () => {
39684
+ Oq();
39696
39685
  const e = $A(), t = Qf();
39697
39686
  return { showSwapButton: e && !t };
39698
- }, CK = () => {
39687
+ }, EK = () => {
39699
39688
  const { chainId: e } = vt(), [t] = Gn(), a = Sc({ address: t.address, chainId: e }), o = rM(), u = o0(Math.min(0, o));
39700
39689
  return {
39701
39690
  receiveToken: {
@@ -39705,8 +39694,8 @@ const aK = (e) => {
39705
39694
  swapDiff: o,
39706
39695
  themeType: u
39707
39696
  };
39708
- }, AK = () => {
39709
- const e = Ut(), { receiveToken: t, swapDiff: a, themeType: o } = CK();
39697
+ }, CK = () => {
39698
+ const e = Ut(), { receiveToken: t, swapDiff: a, themeType: o } = EK();
39710
39699
  return /* @__PURE__ */ A.jsx(
39711
39700
  zg,
39712
39701
  {
@@ -39722,7 +39711,7 @@ const aK = (e) => {
39722
39711
  type: o
39723
39712
  }
39724
39713
  );
39725
- }, DK = () => {
39714
+ }, AK = () => {
39726
39715
  const e = Ut(), { stablePrecision: t } = dr(), [a] = Gn(), o = _v(), { minExpectedReceiveAmount: u } = FA(), f = o0(o), p = f === Kn.DEFAULT ? e.withdrawSlippageWarning : e.highSlippageWarning;
39727
39716
  return {
39728
39717
  themeType: f,
@@ -39733,8 +39722,8 @@ const aK = (e) => {
39733
39722
  t
39734
39723
  )} ${a.symbol}`
39735
39724
  };
39736
- }, RK = () => {
39737
- const e = Ut(), { slippageTooltipText: t, slippagePlaceholder: a, minReceive: o } = DK(), u = $e(() => [
39725
+ }, DK = () => {
39726
+ const e = Ut(), { slippageTooltipText: t, slippagePlaceholder: a, minReceive: o } = AK(), u = $e(() => [
39738
39727
  {
39739
39728
  tooltipText: t,
39740
39729
  label: e.maxSlippage,
@@ -39763,10 +39752,10 @@ const aK = (e) => {
39763
39752
  buttonItemChildren: /* @__PURE__ */ A.jsx(jA, {})
39764
39753
  }
39765
39754
  );
39766
- }, OK = ({ children: e }) => /* @__PURE__ */ A.jsxs(Sa.Meta, { children: [
39767
- /* @__PURE__ */ A.jsx(RK, {}),
39755
+ }, RK = ({ children: e }) => /* @__PURE__ */ A.jsxs(Sa.Meta, { children: [
39756
+ /* @__PURE__ */ A.jsx(DK, {}),
39768
39757
  e
39769
- ] }), J_ = 0, ek = 1, tk = 2, _K = () => {
39758
+ ] }), J_ = 0, ek = 1, tk = 2, OK = () => {
39770
39759
  const e = Ut(), [t] = gn(), [a] = Gn(), o = t.symbol, u = a.symbol, { isCompleteWithdrawStep: f } = s0(), { canSpend: p } = IA(), h = Qf(), g = BA(), w = $e(() => {
39771
39760
  const E = [
39772
39761
  {
@@ -39816,7 +39805,7 @@ const aK = (e) => {
39816
39805
  }, gM = ({
39817
39806
  children: e
39818
39807
  }) => {
39819
- const { hideStepper: t, steps: a, activeStepIndex: o } = _K();
39808
+ const { hideStepper: t, steps: a, activeStepIndex: o } = OK();
39820
39809
  return t ? e : /* @__PURE__ */ A.jsx("div", { className: "dtw-mt-1 dtw-grid dtw-gap-1 dtw-grid-cols-[auto_1fr] dtw-auto-rows-min", children: a.map((u, f) => {
39821
39810
  const p = u.index < o, h = u.index === o, g = f === a.length - 1;
39822
39811
  return /* @__PURE__ */ A.jsxs(fo, { children: [
@@ -39880,15 +39869,15 @@ const aK = (e) => {
39880
39869
  )
39881
39870
  ] }, u.index);
39882
39871
  }) });
39883
- }, kK = () => {
39884
- const { showSwapButton: e } = EK();
39872
+ }, _K = () => {
39873
+ const { showSwapButton: e } = SK();
39885
39874
  return /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
39886
39875
  /* @__PURE__ */ A.jsxs(Sa.InputGroup, { children: [
39887
- /* @__PURE__ */ A.jsx(gK, {}),
39888
- /* @__PURE__ */ A.jsx(AK, {})
39876
+ /* @__PURE__ */ A.jsx(yK, {}),
39877
+ /* @__PURE__ */ A.jsx(CK, {})
39889
39878
  ] }),
39890
- /* @__PURE__ */ A.jsx(OK, { children: /* @__PURE__ */ A.jsx(gM, { children: /* @__PURE__ */ A.jsx(MA, { children: e ? /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
39891
- /* @__PURE__ */ A.jsx(SK, { children: /* @__PURE__ */ A.jsx(TK, {}) }),
39879
+ /* @__PURE__ */ A.jsx(RK, { children: /* @__PURE__ */ A.jsx(gM, { children: /* @__PURE__ */ A.jsx(MA, { children: e ? /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
39880
+ /* @__PURE__ */ A.jsx(xK, { children: /* @__PURE__ */ A.jsx(bK, {}) }),
39892
39881
  /* @__PURE__ */ A.jsx(
39893
39882
  Z_,
39894
39883
  {
@@ -39898,33 +39887,32 @@ const aK = (e) => {
39898
39887
  )
39899
39888
  ] }) : /* @__PURE__ */ A.jsx(Z_, {}) }) }) })
39900
39889
  ] });
39901
- }, NK = () => {
39902
- const { chainId: e, address: t } = vt(), { exitFeeNumber: a, withdrawalFeeNumber: o } = _A({
39890
+ }, kK = () => {
39891
+ const { chainId: e, address: t } = vt(), { exitFeeNumber: a } = _A({
39903
39892
  address: t,
39904
39893
  chainId: e
39905
- }), [u] = gn(), [f, p] = Gn(), h = xc({ address: t, chainId: e }), g = Sc({
39906
- address: f.address,
39894
+ }), [o] = gn(), [u, f] = Gn(), p = xc({ address: t, chainId: e }), h = Sc({
39895
+ address: u.address,
39907
39896
  chainId: e
39908
39897
  });
39909
39898
  pt(() => {
39910
- if (!u.value || u.value === "0") {
39911
- p({ value: "" });
39899
+ if (!o.value || o.value === "0") {
39900
+ f({ value: "" });
39912
39901
  return;
39913
39902
  }
39914
- const T = new Ze(u.value).times(h).times(1 - (a + o) / 100).dividedBy(g).toFixed(f.decimals);
39915
- p({
39916
- value: JL(T) ? T : ""
39903
+ const w = new Ze(o.value).times(p).times(1 - a / 100).dividedBy(h).toFixed(u.decimals);
39904
+ f({
39905
+ value: JL(w) ? w : ""
39917
39906
  });
39918
39907
  }, [
39919
39908
  a,
39920
- o,
39921
- f.decimals,
39922
- g,
39923
- u.value,
39909
+ u.decimals,
39924
39910
  h,
39925
- p
39911
+ o.value,
39912
+ p,
39913
+ f
39926
39914
  ]);
39927
- }, LK = () => {
39915
+ }, NK = () => {
39928
39916
  const { chainId: e } = vt(), { stablePrecision: t, defaultPrecision: a } = dr(), [{ symbol: o, address: u }] = gn(), f = $d({ symbol: o, address: u }), p = xc({ address: u, chainId: e }) ?? "";
39929
39917
  return {
39930
39918
  formattedBalance: `${tP(f, o === "USDC" ? t : a)} ${o}`,
@@ -39932,11 +39920,11 @@ const aK = (e) => {
39932
39920
  value: new Ze(f).multipliedBy(p).toNumber()
39933
39921
  })}` : null
39934
39922
  };
39935
- }, PK = () => {
39936
- const { formattedBalance: e, formattedPrice: t } = LK();
39923
+ }, LK = () => {
39924
+ const { formattedBalance: e, formattedPrice: t } = NK();
39937
39925
  return /* @__PURE__ */ A.jsx($P, { balance: e, price: t });
39938
- }, MK = () => {
39939
- const { withdraw: e, action: t } = Iq(), { disabled: a, label: o, handleTrade: u } = iM(e), f = Ud(), { address: p } = vt(), h = rP(p);
39926
+ }, PK = () => {
39927
+ const { withdraw: e, action: t } = Mq(), { disabled: a, label: o, handleTrade: u } = iM(e), f = Ud(), { address: p } = vt(), h = rP(p);
39940
39928
  return {
39941
39929
  isLoading: c0(t),
39942
39930
  disabled: a,
@@ -39954,8 +39942,8 @@ const aK = (e) => {
39954
39942
  }) : u();
39955
39943
  }
39956
39944
  };
39957
- }, IK = () => {
39958
- const { ActionButton: e = hl } = ca(), { handleTrade: t, disabled: a, label: o, isLoading: u } = MK();
39945
+ }, MK = () => {
39946
+ const { ActionButton: e = hl } = ca(), { handleTrade: t, disabled: a, label: o, isLoading: u } = PK();
39959
39947
  return /* @__PURE__ */ A.jsx(e, { onClick: t, disabled: a, loading: u, children: o });
39960
39948
  }, nk = [
39961
39949
  {
@@ -39963,13 +39951,13 @@ const aK = (e) => {
39963
39951
  getCollateralByLeverageAddress: iP
39964
39952
  },
39965
39953
  {
39966
- isLeveragedAsset: eG,
39967
- getCollateralByLeverageAddress: tG
39954
+ isLeveragedAsset: J9,
39955
+ getCollateralByLeverageAddress: eG
39968
39956
  }
39969
39957
  ], P1 = {
39970
39958
  requiresLeveragedCollateralLiquidity: !1,
39971
39959
  leveragedCollateralValueFormatted: "$0"
39972
- }, FK = () => {
39960
+ }, IK = () => {
39973
39961
  const e = vt(), t = i0(e), [a] = gn(), o = xc(e), u = t.find(
39974
39962
  ({ tokenAddress: T, amount: E }) => nk.some(
39975
39963
  (R) => R.isLeveragedAsset(T) && E !== "0"
@@ -39994,8 +39982,8 @@ const aK = (e) => {
39994
39982
  requiresLeveragedCollateralLiquidity: g > w,
39995
39983
  leveragedCollateralValueFormatted: Bo({ value: w })
39996
39984
  };
39997
- }, $K = () => {
39998
- const { address: e, chainId: t, maintenance: a, maintenanceWithdrawals: o, symbol: u } = vt(), [f] = gn(), p = Ud(), { data: h = 0 } = yY({
39985
+ }, FK = () => {
39986
+ const { address: e, chainId: t, maintenance: a, maintenanceWithdrawals: o, symbol: u } = vt(), [f] = gn(), p = Ud(), { data: h = 0 } = vY({
39999
39987
  address: e,
40000
39988
  chainId: t
40001
39989
  }), g = h > 0, w = hA(
@@ -40003,7 +39991,7 @@ const aK = (e) => {
40003
39991
  ), { approve: T, canSpend: E } = IA(), { requiresHighSlippageConfirm: R, confirmHighSlippage: D, slippageToBeUsed: _ } = NA(), {
40004
39992
  requiresLeveragedCollateralLiquidity: P,
40005
39993
  leveragedCollateralValueFormatted: B
40006
- } = FK(), X = () => {
39994
+ } = IK(), X = () => {
40007
39995
  p({
40008
39996
  type: "MERGE_OVERLAY",
40009
39997
  payload: {
@@ -40027,7 +40015,7 @@ const aK = (e) => {
40027
40015
  maintenance: a || o,
40028
40016
  poolSymbol: u
40029
40017
  };
40030
- }, BK = ({
40018
+ }, $K = ({
40031
40019
  children: e
40032
40020
  }) => {
40033
40021
  const { ActionButton: t = hl } = ca(), a = Ut(), o = LA("withdraw"), {
@@ -40043,7 +40031,7 @@ const aK = (e) => {
40043
40031
  handleHighSlippageClick: D,
40044
40032
  maintenance: _,
40045
40033
  poolSymbol: P
40046
- } = $K();
40034
+ } = FK();
40047
40035
  return _ ? /* @__PURE__ */ A.jsx(
40048
40036
  Yb,
40049
40037
  {
@@ -40072,7 +40060,7 @@ const aK = (e) => {
40072
40060
  "{slippagePercentage}",
40073
40061
  `${Math.abs(g)}`
40074
40062
  ) }) : e;
40075
- }, UK = () => {
40063
+ }, BK = () => {
40076
40064
  const { address: e, chainId: t } = vt(), [a, o] = gn(), u = $d({
40077
40065
  symbol: a.symbol,
40078
40066
  address: a.address
@@ -40083,15 +40071,15 @@ const aK = (e) => {
40083
40071
  balance: u,
40084
40072
  price: f
40085
40073
  };
40086
- }, jK = () => {
40074
+ }, UK = () => {
40087
40075
  const { chainId: e } = vt(), [t, a] = Gn(), o = Sc({ address: t.address, chainId: e });
40088
40076
  return {
40089
40077
  ...t,
40090
40078
  updater: a,
40091
40079
  price: o
40092
40080
  };
40093
- }, zK = () => {
40094
- const e = UK(), t = jK();
40081
+ }, jK = () => {
40082
+ const e = BK(), t = UK();
40095
40083
  return {
40096
40084
  sendToken: e,
40097
40085
  onInputChange: (o) => {
@@ -40099,8 +40087,8 @@ const aK = (e) => {
40099
40087
  },
40100
40088
  receiveToken: t
40101
40089
  };
40102
- }, HK = () => {
40103
- const e = Ut(), { sendToken: t, onInputChange: a, receiveToken: o } = zK();
40090
+ }, zK = () => {
40091
+ const e = Ut(), { sendToken: t, onInputChange: a, receiveToken: o } = jK();
40104
40092
  return /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
40105
40093
  /* @__PURE__ */ A.jsx(
40106
40094
  zg,
@@ -40129,31 +40117,29 @@ const aK = (e) => {
40129
40117
  }
40130
40118
  )
40131
40119
  ] });
40132
- }, WK = () => {
40133
- const e = Ut(), { address: t, chainId: a } = vt(), [{ isMaxSlippageLoading: o }] = $i(), { exitFeeNumber: u, withdrawalFeeNumber: f } = _A({
40120
+ }, HK = () => {
40121
+ const e = Ut(), { address: t, chainId: a } = vt(), [{ isMaxSlippageLoading: o }] = $i(), { exitFeeNumber: u } = _A({
40134
40122
  address: t,
40135
40123
  chainId: a
40136
- }), p = _v(), h = Qf();
40124
+ }), f = _v(), p = Qf();
40137
40125
  return {
40138
- slippageTooltipText: o0(p) === Kn.DEFAULT ? e.withdrawSlippageWarning : e.highSlippageWarning,
40126
+ slippageTooltipText: o0(f) === Kn.DEFAULT ? e.withdrawSlippageWarning : e.highSlippageWarning,
40139
40127
  isMaxSlippageLoading: o,
40140
- slippagePlaceholder: `${p}%`,
40141
- exitFee: VT(u + f, 2),
40128
+ slippagePlaceholder: `${f}%`,
40129
+ exitFee: VT(u, 2),
40142
40130
  minReceivedText: e.estimatedMultiAssetFractions,
40143
- showMinReceivedText: h,
40144
- withdrawalFee: f ? `*${f}% fee will go back to the vault holders` : null
40131
+ showMinReceivedText: p
40145
40132
  };
40146
- }, VK = () => {
40133
+ }, WK = () => {
40147
40134
  const e = Ut(), {
40148
40135
  slippageTooltipText: t,
40149
40136
  slippagePlaceholder: a,
40150
40137
  isMaxSlippageLoading: o,
40151
40138
  exitFee: u,
40152
40139
  minReceivedText: f,
40153
- showMinReceivedText: p,
40154
- withdrawalFee: h
40155
- } = WK(), g = $e(() => {
40156
- const w = [
40140
+ showMinReceivedText: p
40141
+ } = HK(), h = $e(() => {
40142
+ const g = [
40157
40143
  {
40158
40144
  tooltipText: t,
40159
40145
  label: e.maxSlippage,
@@ -40172,21 +40158,15 @@ const aK = (e) => {
40172
40158
  },
40173
40159
  {
40174
40160
  label: e.exitFee,
40175
- value: h ? /* @__PURE__ */ A.jsxs("div", { className: "dtw-flex dtw-flex-col dtw-items-end", children: [
40176
- /* @__PURE__ */ A.jsxs("span", { children: [
40177
- u,
40178
- "*"
40179
- ] }),
40180
- /* @__PURE__ */ A.jsx("span", { children: h })
40181
- ] }) : u,
40161
+ value: u,
40182
40162
  tooltipText: e.exitFeeExplanation
40183
40163
  }
40184
40164
  ];
40185
- return p && w.push({
40165
+ return p && g.push({
40186
40166
  tooltipText: e.minReceiveAmount,
40187
40167
  label: e.minReceived,
40188
40168
  value: f
40189
- }), w;
40169
+ }), g;
40190
40170
  }, [
40191
40171
  t,
40192
40172
  e.maxSlippage,
@@ -40197,47 +40177,46 @@ const aK = (e) => {
40197
40177
  o,
40198
40178
  a,
40199
40179
  u,
40200
- h,
40201
40180
  p,
40202
40181
  f
40203
40182
  ]);
40204
40183
  return /* @__PURE__ */ A.jsx(
40205
40184
  PA,
40206
40185
  {
40207
- collapseItems: g,
40186
+ collapseItems: h,
40208
40187
  buttonItemChildren: /* @__PURE__ */ A.jsx(jA, {})
40209
40188
  }
40210
40189
  );
40211
- }, GK = ({ children: e }) => {
40190
+ }, VK = ({ children: e }) => {
40212
40191
  const { WithdrawMetaInfo: t } = ca();
40213
40192
  return /* @__PURE__ */ A.jsxs(Sa.Meta, { children: [
40214
- /* @__PURE__ */ A.jsx(VK, {}),
40193
+ /* @__PURE__ */ A.jsx(WK, {}),
40215
40194
  t && /* @__PURE__ */ A.jsx(t, {}),
40216
40195
  e
40217
40196
  ] });
40218
- }, YK = () => (NK(), /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
40219
- /* @__PURE__ */ A.jsx(Sa.Balance, { children: /* @__PURE__ */ A.jsx(PK, {}) }),
40220
- /* @__PURE__ */ A.jsx(Sa.InputGroup, { children: /* @__PURE__ */ A.jsx(HK, {}) }),
40221
- /* @__PURE__ */ A.jsx(GK, { children: /* @__PURE__ */ A.jsx(gM, { children: /* @__PURE__ */ A.jsx(MA, { children: /* @__PURE__ */ A.jsx(BK, { children: /* @__PURE__ */ A.jsx(IK, {}) }) }) }) })
40222
- ] })), qK = () => {
40223
- Cq();
40197
+ }, GK = () => (kK(), /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
40198
+ /* @__PURE__ */ A.jsx(Sa.Balance, { children: /* @__PURE__ */ A.jsx(LK, {}) }),
40199
+ /* @__PURE__ */ A.jsx(Sa.InputGroup, { children: /* @__PURE__ */ A.jsx(zK, {}) }),
40200
+ /* @__PURE__ */ A.jsx(VK, { children: /* @__PURE__ */ A.jsx(gM, { children: /* @__PURE__ */ A.jsx(MA, { children: /* @__PURE__ */ A.jsx($K, { children: /* @__PURE__ */ A.jsx(MK, {}) }) }) }) })
40201
+ ] })), YK = () => {
40202
+ Eq();
40224
40203
  const { isCompleteWithdrawStep: e } = s0();
40225
40204
  return {
40226
40205
  isCompleteWithdrawStep: e
40227
40206
  };
40228
- }, QK = () => {
40229
- const { isCompleteWithdrawStep: e } = qK();
40230
- return e ? /* @__PURE__ */ A.jsx(kK, {}) : /* @__PURE__ */ A.jsx(YK, {});
40231
- }, KK = () => /* @__PURE__ */ A.jsx(Sa.Panel, { children: /* @__PURE__ */ A.jsx(QK, {}) }), XK = ({ tradingType: e }) => /* @__PURE__ */ A.jsxs(rA, { selectedIndex: jg.indexOf(e), children: [
40207
+ }, qK = () => {
40208
+ const { isCompleteWithdrawStep: e } = YK();
40209
+ return e ? /* @__PURE__ */ A.jsx(_K, {}) : /* @__PURE__ */ A.jsx(GK, {});
40210
+ }, QK = () => /* @__PURE__ */ A.jsx(Sa.Panel, { children: /* @__PURE__ */ A.jsx(qK, {}) }), KK = ({ tradingType: e }) => /* @__PURE__ */ A.jsxs(rA, { selectedIndex: jg.indexOf(e), children: [
40232
40211
  /* @__PURE__ */ A.jsx(aA, { className: "dtw-flex", children: jg.map((t) => /* @__PURE__ */ A.jsx(JN, { className: "dtw-hidden" }, t)) }),
40233
40212
  /* @__PURE__ */ A.jsxs(iA, { children: [
40234
- /* @__PURE__ */ A.jsx(Sa.Settings, { children: /* @__PURE__ */ A.jsx(YQ, {}) }),
40235
- /* @__PURE__ */ A.jsx(Sa.Settings, { children: /* @__PURE__ */ A.jsx(hK, {}) })
40213
+ /* @__PURE__ */ A.jsx(Sa.Settings, { children: /* @__PURE__ */ A.jsx(GQ, {}) }),
40214
+ /* @__PURE__ */ A.jsx(Sa.Settings, { children: /* @__PURE__ */ A.jsx(mK, {}) })
40236
40215
  ] })
40237
- ] }), ZK = ({ children: e }) => /* @__PURE__ */ A.jsxs(aA, { className: "dtw-flex dtw-px-[var(--panel-tab-group-px)] dtw-justify-between dtw-items-center", children: [
40238
- /* @__PURE__ */ A.jsx("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: jg.map((t) => /* @__PURE__ */ A.jsx(UY, { tradingType: t }, t)) }),
40216
+ ] }), XK = ({ children: e }) => /* @__PURE__ */ A.jsxs(aA, { className: "dtw-flex dtw-px-[var(--panel-tab-group-px)] dtw-justify-between dtw-items-center", children: [
40217
+ /* @__PURE__ */ A.jsx("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: jg.map((t) => /* @__PURE__ */ A.jsx(BY, { tradingType: t }, t)) }),
40239
40218
  e
40240
- ] }), JK = () => {
40219
+ ] }), ZK = () => {
40241
40220
  const e = vt(), [t] = UA(), { isAllAssetsWithdrawOptionDefault: a } = dr(), { data: o = [] } = Ec(), u = o.length > 0, { data: f } = SP(e), p = Fd()[1], h = gn()[1], g = Gn()[1], w = () => {
40242
40221
  h({
40243
40222
  ...t,
@@ -40270,16 +40249,16 @@ const aK = (e) => {
40270
40249
  return T();
40271
40250
  }
40272
40251
  };
40273
- }, eX = () => {
40274
- mq(), eQ(), dY(), Ec();
40275
- }, tX = jg.reduce(
40252
+ }, JK = () => {
40253
+ pq(), Jq(), cY(), Ec();
40254
+ }, eX = jg.reduce(
40276
40255
  (e, t, a) => (e[a] = t, e),
40277
40256
  {}
40278
- ), nX = () => {
40257
+ ), tX = () => {
40279
40258
  const [e] = Fd(), t = vt(), { standalone: a } = dr();
40280
- eX();
40281
- const o = JK(), u = (f) => {
40282
- const p = tX[f];
40259
+ JK();
40260
+ const o = ZK(), u = (f) => {
40261
+ const p = eX[f];
40283
40262
  p && o(p);
40284
40263
  };
40285
40264
  return pt(() => {
@@ -40290,30 +40269,30 @@ const aK = (e) => {
40290
40269
  type: e,
40291
40270
  onTabChange: u
40292
40271
  };
40293
- }, rX = () => {
40294
- const { type: e, onTabChange: t } = nX();
40272
+ }, nX = () => {
40273
+ const { type: e, onTabChange: t } = tX();
40295
40274
  return /* @__PURE__ */ A.jsxs("div", { className: "trading-widget dtw-relative dtw-pt-3 dtw-bg-[var(--panel-background-color)] dtw-text-[color:var(--panel-content-color)] dtw-rounded-[var(--panel-radius)] dtw-overflow-hidden", children: [
40296
40275
  /* @__PURE__ */ A.jsxs(rA, { selectedIndex: jg.indexOf(e), onChange: t, children: [
40297
- /* @__PURE__ */ A.jsx(ZK, { children: /* @__PURE__ */ A.jsxs("div", { className: "dtw-flex dtw-gap-2 dtw-items-center dtw-justify-end", children: [
40298
- /* @__PURE__ */ A.jsx(uQ, {}),
40299
- /* @__PURE__ */ A.jsx(XK, { tradingType: e })
40276
+ /* @__PURE__ */ A.jsx(XK, { children: /* @__PURE__ */ A.jsxs("div", { className: "dtw-flex dtw-gap-2 dtw-items-center dtw-justify-end", children: [
40277
+ /* @__PURE__ */ A.jsx(sQ, {}),
40278
+ /* @__PURE__ */ A.jsx(KK, { tradingType: e })
40300
40279
  ] }) }),
40301
40280
  /* @__PURE__ */ A.jsxs(iA, { children: [
40302
- /* @__PURE__ */ A.jsx(mK, {}),
40303
- /* @__PURE__ */ A.jsx(KK, {})
40281
+ /* @__PURE__ */ A.jsx(pK, {}),
40282
+ /* @__PURE__ */ A.jsx(QK, {})
40304
40283
  ] })
40305
40284
  ] }),
40306
- /* @__PURE__ */ A.jsxs(dQ, { children: [
40307
- /* @__PURE__ */ A.jsx(zQ, { type: oa.NOTIFICATION }),
40308
- /* @__PURE__ */ A.jsx(fQ, { type: oa.TERMS_OF_USE }),
40309
- /* @__PURE__ */ A.jsx(pQ, { type: oa.HIGH_SLIPPAGE }),
40310
- /* @__PURE__ */ A.jsx(hQ, { type: oa.FMP_WITHDRAWAL }),
40311
- /* @__PURE__ */ A.jsx(OQ, { type: oa.TOKEN_SELECT, searchQuery: "" }),
40312
- /* @__PURE__ */ A.jsx(LQ, { type: oa.POOL_SELECT, searchQuery: "" }),
40313
- /* @__PURE__ */ A.jsx(BQ, { type: oa.TRADING })
40285
+ /* @__PURE__ */ A.jsxs(cQ, { children: [
40286
+ /* @__PURE__ */ A.jsx(jQ, { type: oa.NOTIFICATION }),
40287
+ /* @__PURE__ */ A.jsx(dQ, { type: oa.TERMS_OF_USE }),
40288
+ /* @__PURE__ */ A.jsx(fQ, { type: oa.HIGH_SLIPPAGE }),
40289
+ /* @__PURE__ */ A.jsx(mQ, { type: oa.FMP_WITHDRAWAL }),
40290
+ /* @__PURE__ */ A.jsx(RQ, { type: oa.TOKEN_SELECT, searchQuery: "" }),
40291
+ /* @__PURE__ */ A.jsx(NQ, { type: oa.POOL_SELECT, searchQuery: "" }),
40292
+ /* @__PURE__ */ A.jsx($Q, { type: oa.TRADING })
40314
40293
  ] })
40315
40294
  ] });
40316
- }, _Z = (e) => /* @__PURE__ */ A.jsx(dq, { ...e, children: /* @__PURE__ */ A.jsx(rX, {}) }), rk = "referrer", aX = "ref_pool", iX = "ref", kZ = ({
40295
+ }, OZ = (e) => /* @__PURE__ */ A.jsx(cq, { ...e, children: /* @__PURE__ */ A.jsx(nX, {}) }), rk = "referrer", rX = "ref_pool", aX = "ref", _Z = ({
40317
40296
  vaultAddress: e,
40318
40297
  userAddress: t,
40319
40298
  query: a,
@@ -40324,7 +40303,7 @@ const aK = (e) => {
40324
40303
  "localStorage",
40325
40304
  rk,
40326
40305
  ""
40327
- ), [h, g] = Y_("localStorage", aX, ""), w = a[iX];
40306
+ ), [h, g] = Y_("localStorage", rX, ""), w = a[aX];
40328
40307
  pt(() => {
40329
40308
  !w || typeof w != "string" || localStorage.getItem(rk) || (o == null || o(), p(w), g(e));
40330
40309
  }, [e, w, g, p, o]), pt(() => {
@@ -40344,7 +40323,7 @@ const aK = (e) => {
40344
40323
  }
40345
40324
  })();
40346
40325
  }, [h, f, u, t, e]);
40347
- }, oX = ({
40326
+ }, iX = ({
40348
40327
  title: e,
40349
40328
  children: t,
40350
40329
  className: a,
@@ -40370,7 +40349,7 @@ const aK = (e) => {
40370
40349
  /* @__PURE__ */ A.jsx("div", { className: "dtw-w-full", children: t })
40371
40350
  ]
40372
40351
  }
40373
- ), lX = ({
40352
+ ), oX = ({
40374
40353
  isOpen: e,
40375
40354
  onClose: t,
40376
40355
  children: a,
@@ -40390,7 +40369,7 @@ const aK = (e) => {
40390
40369
  ),
40391
40370
  onClose: t,
40392
40371
  children: /* @__PURE__ */ A.jsx(u, { children: /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
40393
- /* @__PURE__ */ A.jsx(Zz, { className: "dtw-fixed dtw-inset-0 dtw-backdrop-blur-md dtw-backdrop-brightness-75 dtw-backdrop-filter" }),
40372
+ /* @__PURE__ */ A.jsx(Z4, { className: "dtw-fixed dtw-inset-0 dtw-backdrop-blur-md dtw-backdrop-brightness-75 dtw-backdrop-filter" }),
40394
40373
  /* @__PURE__ */ A.jsx(
40395
40374
  "div",
40396
40375
  {
@@ -40430,7 +40409,7 @@ const aK = (e) => {
40430
40409
  termsPoint3: "If the vault tokens are still subject to a lock-up period, the order cannot be executed.",
40431
40410
  termsPoint4: "Limit sells are intended to settle in USDC. In rare cases where market conditions or high slippage prevent a USDC swap, the order may be settled in the underlying tokens of the respective vault.",
40432
40411
  termsPoint5: "While limit sells are generally expected to execute, they are currently in beta and execution is not guaranteed."
40433
- }, bM = dn(wM), sX = ({ children: e, config: t }) => {
40412
+ }, bM = dn(wM), lX = ({ children: e, config: t }) => {
40434
40413
  const a = $e(
40435
40414
  () => ({
40436
40415
  ...wM,
@@ -40444,7 +40423,7 @@ const aK = (e) => {
40444
40423
  if (!e)
40445
40424
  throw new Error("TranslationContext is used out of Provider");
40446
40425
  return e;
40447
- }, ak = (e) => e ? e.replace(/\D/g, "").replace(/\B(?=(\d{3})+(?!\d))/g, ",") : "", uX = 7, cX = ({
40426
+ }, ak = (e) => e ? e.replace(/\D/g, "").replace(/\B(?=(\d{3})+(?!\d))/g, ",") : "", sX = 7, uX = ({
40448
40427
  inputValue: e = "",
40449
40428
  onInputChange: t,
40450
40429
  autoFocus: a = !1
@@ -40460,11 +40439,11 @@ const aK = (e) => {
40460
40439
  },
40461
40440
  onInputChange: (g) => {
40462
40441
  const w = g.target.value.replace(/,/g, "");
40463
- !isNaN(Number(w)) && t && w.length <= uX && (u(ak(w)), t(w));
40442
+ !isNaN(Number(w)) && t && w.length <= sX && (u(ak(w)), t(w));
40464
40443
  }
40465
40444
  };
40466
40445
  }, ik = (e) => {
40467
- const t = Cc(), { label: a, disabled: o, placeholder: u, price: f, percentage: p, symbol: h } = e, { inputRef: g, autoFocus: w, value: T, onContainerClick: E, onInputChange: R } = cX(e);
40446
+ const t = Cc(), { label: a, disabled: o, placeholder: u, price: f, percentage: p, symbol: h } = e, { inputRef: g, autoFocus: w, value: T, onContainerClick: E, onInputChange: R } = uX(e);
40468
40447
  return /* @__PURE__ */ A.jsxs(
40469
40448
  "div",
40470
40449
  {
@@ -40506,7 +40485,7 @@ const aK = (e) => {
40506
40485
  takeProfitPrice: "",
40507
40486
  stopLossPrice: "",
40508
40487
  termsAccepted: !1
40509
- }, dX = (e, t) => {
40488
+ }, cX = (e, t) => {
40510
40489
  switch (t.type) {
40511
40490
  case "SET_TAKE_PROFIT_PRICE":
40512
40491
  return {
@@ -40570,9 +40549,9 @@ const EM = (e) => ({
40570
40549
  setTermsAccepted: lv,
40571
40550
  reset: lv,
40572
40551
  setPendingTransaction: lv
40573
- }), fX = ({ children: e, initialState: t, actions: a }) => {
40552
+ }), dX = ({ children: e, initialState: t, actions: a }) => {
40574
40553
  const [o, u] = Rm(
40575
- dX,
40554
+ cX,
40576
40555
  EM(t)
40577
40556
  ), f = Ge((R) => {
40578
40557
  u({ type: "SET_TAKE_PROFIT_PRICE", payload: R });
@@ -40614,7 +40593,7 @@ const EM = (e) => ({
40614
40593
  ]
40615
40594
  );
40616
40595
  return /* @__PURE__ */ A.jsx(AM.Provider, { value: E, children: /* @__PURE__ */ A.jsx(CM.Provider, { value: o, children: e }) });
40617
- }, Kf = () => Qt(CM), m0 = () => Qt(AM), pX = ({
40596
+ }, Kf = () => Qt(CM), m0 = () => Qt(AM), fX = ({
40618
40597
  userAddress: e,
40619
40598
  vaultAddress: t
40620
40599
  }) => {
@@ -40623,20 +40602,20 @@ const EM = (e) => ({
40623
40602
  [e, t]
40624
40603
  );
40625
40604
  return C3(a);
40626
- }, mX = ({
40605
+ }, pX = ({
40627
40606
  price: e,
40628
40607
  markPrice: t
40629
- }) => new Ze(e).gt(t) ? `+${VT((+e / +t - 1) * 100, 2)}` : "", hX = ({
40608
+ }) => new Ze(e).gt(t) ? `+${VT((+e / +t - 1) * 100, 2)}` : "", mX = ({
40630
40609
  price: e,
40631
40610
  markPrice: t
40632
- }) => new Ze(e).lt(t) ? `-${VT((1 - +e / +t) * 100, 2)}` : "", vX = ({
40611
+ }) => new Ze(e).lt(t) ? `-${VT((1 - +e / +t) * 100, 2)}` : "", hX = ({
40633
40612
  error: e,
40634
40613
  isReversedOrder: t,
40635
40614
  translationMap: a
40636
40615
  }) => e ? e.title === UL ? {
40637
40616
  ...e,
40638
40617
  hint: t ? a.invalidLimitOrderPriceErrorReversed : a.invalidLimitOrderPriceError
40639
- } : e : null, yX = () => {
40618
+ } : e : null, vX = () => {
40640
40619
  const e = Cc(), {
40641
40620
  form: { takeProfitPrice: t, stopLossPrice: a, termsAccepted: o },
40642
40621
  pricingAsset: u,
@@ -40646,10 +40625,10 @@ const EM = (e) => ({
40646
40625
  address: u.address,
40647
40626
  chainId: f,
40648
40627
  refetchInterval: Cv
40649
- }), E = mX({
40628
+ }), E = pX({
40650
40629
  price: t,
40651
40630
  markPrice: T
40652
- }), R = hX({
40631
+ }), R = mX({
40653
40632
  price: a,
40654
40633
  markPrice: T
40655
40634
  }), D = p ? e.stopLossLabel : e.takeProfitLabel, _ = p ? e.takeProfitLabel : e.stopLossLabel;
@@ -40672,20 +40651,20 @@ const EM = (e) => ({
40672
40651
  takeProfitInputLabel: D,
40673
40652
  stopLossInputLabel: _
40674
40653
  };
40675
- }, gX = [
40654
+ }, yX = [
40676
40655
  "termsPoint1",
40677
40656
  "termsPoint2",
40678
40657
  "termsPoint3",
40679
40658
  "termsPoint4",
40680
40659
  "termsPoint5"
40681
- ], wX = () => {
40660
+ ], gX = () => {
40682
40661
  const e = Cc();
40683
- return /* @__PURE__ */ A.jsx("div", { className: "dtw-w-full dtw-text-sm dtw-mt-2 dtw-max-h-[120px] dtw-overflow-y-auto theme-scrollbar dtw-text-[color:var(--limit-order-secondary-content-color)]", children: /* @__PURE__ */ A.jsx("ol", { className: "dtw-list-decimal dtw-list-inside dtw-space-y-2", children: gX.map((t, a) => /* @__PURE__ */ A.jsxs("li", { children: [
40662
+ return /* @__PURE__ */ A.jsx("div", { className: "dtw-w-full dtw-text-sm dtw-mt-2 dtw-max-h-[120px] dtw-overflow-y-auto theme-scrollbar dtw-text-[color:var(--limit-order-secondary-content-color)]", children: /* @__PURE__ */ A.jsx("ol", { className: "dtw-list-decimal dtw-list-inside dtw-space-y-2", children: yX.map((t, a) => /* @__PURE__ */ A.jsxs("li", { children: [
40684
40663
  a + 1,
40685
40664
  ". ",
40686
40665
  e[t]
40687
40666
  ] }, t)) }) });
40688
- }, bX = () => {
40667
+ }, wX = () => {
40689
40668
  const e = Cc(), {
40690
40669
  takeProfitPrice: t,
40691
40670
  setTakeProfitPrice: a,
@@ -40700,7 +40679,7 @@ const EM = (e) => ({
40700
40679
  isReversedOrder: E,
40701
40680
  takeProfitInputLabel: R,
40702
40681
  stopLossInputLabel: D
40703
- } = yX();
40682
+ } = vX();
40704
40683
  return /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
40705
40684
  /* @__PURE__ */ A.jsxs(
40706
40685
  "div",
@@ -40759,15 +40738,15 @@ const EM = (e) => ({
40759
40738
  }
40760
40739
  )
40761
40740
  ] }),
40762
- /* @__PURE__ */ A.jsx(wX, {})
40741
+ /* @__PURE__ */ A.jsx(gX, {})
40763
40742
  ] });
40764
- }, TX = [
40743
+ }, bX = [
40765
40744
  "dtw-bg-transparent",
40766
40745
  "dtw-border-[var(--limit-order-outline-button-border-color,var(--limit-order-border-color))]",
40767
40746
  "dtw-text-[color:var(--limit-order-outline-button-color,var(--limit-order-content-color))]",
40768
40747
  "active:dtw-border-opacity-100",
40769
40748
  "hover:enabled:dtw-border-[var(--limit-order-outline-button-border-hover-color)]"
40770
- ], xX = [
40749
+ ], TX = [
40771
40750
  "dtw-text-[color:var(--limit-order-accent-button-color,var(--limit-order-accent-content-color))]",
40772
40751
  "dtw-bg-gradient-to-r",
40773
40752
  "dtw-from-[var(--limit-order-accent-button-bg-from,var(--limit-order-accent-from-color))]",
@@ -40799,8 +40778,8 @@ const EM = (e) => ({
40799
40778
  "dtw-px-5",
40800
40779
  "dtw-w-full",
40801
40780
  {
40802
- [xX.join(" ")]: a,
40803
- [TX.join(" ")]: !a,
40781
+ [TX.join(" ")]: a,
40782
+ [bX.join(" ")]: !a,
40804
40783
  "dtw-flex dtw-items-center dtw-justify-center dtw-gap-1": p
40805
40784
  },
40806
40785
  u
@@ -40813,7 +40792,7 @@ const EM = (e) => ({
40813
40792
  e
40814
40793
  ]
40815
40794
  }
40816
- ), SX = () => {
40795
+ ), xX = () => {
40817
40796
  const { account: e = It } = Cr(), { vaultAddress: t, vaultChainId: a } = Kf(), o = sa("limitOrder", a), { data: u } = fP({
40818
40797
  tokenAddress: t,
40819
40798
  ownerAddress: e,
@@ -40825,7 +40804,7 @@ const EM = (e) => ({
40825
40804
  chainId: a
40826
40805
  });
40827
40806
  return u && f ? new Ze(f.value.toString()).lte(u.toString()) : !1;
40828
- }, EX = () => {
40807
+ }, SX = () => {
40829
40808
  const { vaultAddress: e, vaultChainId: t, pendingTransaction: a } = Kf(), { setPendingTransaction: o } = m0(), [u, f] = Lt(!1), p = sa("limitOrder", t), { send: h } = Lm({
40830
40809
  contractId: "erc20",
40831
40810
  dynamicContractAddress: e,
@@ -40840,17 +40819,17 @@ const EM = (e) => ({
40840
40819
  },
40841
40820
  isApprovePending: u || !!a
40842
40821
  };
40843
- }, CX = () => {
40844
- const e = SX(), { approveLimitOrder: t, isApprovePending: a } = EX();
40822
+ }, EX = () => {
40823
+ const e = xX(), { approveLimitOrder: t, isApprovePending: a } = SX();
40845
40824
  return {
40846
40825
  isApproved: e,
40847
40826
  approveLimitOrder: t,
40848
40827
  isApprovePending: a
40849
40828
  };
40850
- }, AX = ({
40829
+ }, CX = ({
40851
40830
  children: e
40852
40831
  }) => {
40853
- const t = Cc(), { isApproved: a, approveLimitOrder: o, isApprovePending: u } = CX();
40832
+ const t = Cc(), { isApproved: a, approveLimitOrder: o, isApprovePending: u } = EX();
40854
40833
  return a ? e : /* @__PURE__ */ A.jsx(ex, { onClick: o, loading: u, children: t.approve });
40855
40834
  }, DM = () => {
40856
40835
  const { setIsModalOpen: e, reset: t, setPendingTransaction: a, onTransactionSettled: o } = m0();
@@ -40863,7 +40842,7 @@ const EM = (e) => ({
40863
40842
  },
40864
40843
  [t, e, a, o]
40865
40844
  );
40866
- }, DX = ([
40845
+ }, AX = ([
40867
40846
  e,
40868
40847
  t,
40869
40848
  a,
@@ -40888,14 +40867,14 @@ const EM = (e) => ({
40888
40867
  abi: wA,
40889
40868
  chainId: e,
40890
40869
  functionName: TM,
40891
- args: [pX({ userAddress: t, vaultAddress: a })],
40870
+ args: [fX({ userAddress: t, vaultAddress: a })],
40892
40871
  query: {
40893
40872
  enabled: !$o(t) && !$o(a),
40894
- select: DX
40873
+ select: AX
40895
40874
  }
40896
- }), RX = wA.filter(
40875
+ }), DX = wA.filter(
40897
40876
  ({ type: e }) => e === "error"
40898
- ).map(({ name: e }) => e), OX = () => {
40877
+ ).map(({ name: e }) => e), RX = () => {
40899
40878
  const e = Cc(), { account: t = It } = Cr(), {
40900
40879
  vaultAddress: a,
40901
40880
  vaultChainId: o,
@@ -40939,10 +40918,10 @@ const EM = (e) => ({
40939
40918
  }
40940
40919
  },
40941
40920
  disabled: Z,
40942
- error: vX({
40921
+ error: hX({
40943
40922
  error: eP({
40944
40923
  errorMessage: _,
40945
- abiErrors: RX
40924
+ abiErrors: DX
40946
40925
  }),
40947
40926
  isReversedOrder: w,
40948
40927
  translationMap: e
@@ -40955,7 +40934,7 @@ const EM = (e) => ({
40955
40934
  minimumFractionDigits: 0
40956
40935
  })
40957
40936
  };
40958
- }, _X = () => {
40937
+ }, OX = () => {
40959
40938
  const e = Cc(), {
40960
40939
  modifyLimitOrder: t,
40961
40940
  disabled: a,
@@ -40963,7 +40942,7 @@ const EM = (e) => ({
40963
40942
  isPending: u,
40964
40943
  minAmount: f,
40965
40944
  isAmountSufficient: p
40966
- } = OX();
40945
+ } = RX();
40967
40946
  return /* @__PURE__ */ A.jsxs("div", { children: [
40968
40947
  o && /* @__PURE__ */ A.jsxs("div", { className: "dtw-mb-2 dtw-flex dtw-flex-col dtw-gap-1 dtw-text-error", children: [
40969
40948
  /* @__PURE__ */ A.jsx("span", { className: "dtw-text-sm", children: o.title }),
@@ -40980,7 +40959,7 @@ const EM = (e) => ({
40980
40959
  }
40981
40960
  )
40982
40961
  ] });
40983
- }, kX = () => {
40962
+ }, _X = () => {
40984
40963
  const { account: e = It } = Cr(), { vaultAddress: t, vaultChainId: a, pendingTransaction: o } = Kf(), { data: u } = RM({
40985
40964
  userAddress: e,
40986
40965
  vaultAddress: t,
@@ -40991,8 +40970,8 @@ const EM = (e) => ({
40991
40970
  functionName: "deleteLimitOrder"
40992
40971
  }), h = async () => p(t), g = !!o, w = !!(u != null && u.amountD18) && !new Ze(u.amountD18.toString()).isZero();
40993
40972
  return { deleteLimitOrder: h, isPending: g, displayButton: w };
40994
- }, NX = () => {
40995
- const e = Cc(), { deleteLimitOrder: t, isPending: a, displayButton: o } = kX();
40973
+ }, kX = () => {
40974
+ const e = Cc(), { deleteLimitOrder: t, isPending: a, displayButton: o } = _X();
40996
40975
  return o ? /* @__PURE__ */ A.jsx(
40997
40976
  ex,
40998
40977
  {
@@ -41003,7 +40982,7 @@ const EM = (e) => ({
41003
40982
  children: e.delete
41004
40983
  }
41005
40984
  ) : null;
41006
- }, LX = () => {
40985
+ }, NX = () => {
41007
40986
  const { chainId: e, switchNetwork: t } = Nm(), { vaultChainId: a } = Kf();
41008
40987
  return {
41009
40988
  isWrongNetwork: e !== a,
@@ -41011,10 +40990,10 @@ const EM = (e) => ({
41011
40990
  t == null || t({ chainId: a });
41012
40991
  }
41013
40992
  };
41014
- }, PX = ({ children: e }) => {
41015
- const t = Cc(), { isWrongNetwork: a, handleNetworkSwitch: o } = LX();
40993
+ }, LX = ({ children: e }) => {
40994
+ const t = Cc(), { isWrongNetwork: a, handleNetworkSwitch: o } = NX();
41016
40995
  return a ? /* @__PURE__ */ A.jsx(ex, { onClick: o, children: t.switchNetwork }) : e;
41017
- }, MX = () => {
40996
+ }, PX = () => {
41018
40997
  const { isModalOpen: e, pendingTransaction: t } = Kf(), { setIsModalOpen: a } = m0(), o = Ge(() => a(!0), [a]), u = Ge(() => a(!1), [a]);
41019
40998
  return {
41020
40999
  isModalOpen: e,
@@ -41022,19 +41001,19 @@ const EM = (e) => ({
41022
41001
  onClose: u,
41023
41002
  isTransactionPending: !!t
41024
41003
  };
41025
- }, IX = [TM, "allowance"], FX = () => {
41004
+ }, MX = [TM, "allowance"], IX = () => {
41026
41005
  const e = fC();
41027
41006
  return Ge(() => {
41028
41007
  e.invalidateQueries({
41029
41008
  predicate: ({ queryKey: t }) => {
41030
41009
  var o;
41031
41010
  const a = (o = t[1]) == null ? void 0 : o.functionName;
41032
- return t[0] === "readContract" && IX.some((u) => u === a);
41011
+ return t[0] === "readContract" && MX.some((u) => u === a);
41033
41012
  }
41034
41013
  });
41035
41014
  }, [e]);
41036
- }, $X = () => {
41037
- const { pendingTransaction: e, vaultChainId: t } = Kf(), { setPendingTransaction: a, onTransactionSuccess: o, onTransactionError: u } = m0(), f = FX(), { data: p, error: h } = uk({
41015
+ }, FX = () => {
41016
+ const { pendingTransaction: e, vaultChainId: t } = Kf(), { setPendingTransaction: a, onTransactionSuccess: o, onTransactionError: u } = m0(), f = IX(), { data: p, error: h } = uk({
41038
41017
  hash: e ?? void 0,
41039
41018
  chainId: t,
41040
41019
  pollingInterval: Cv
@@ -41049,7 +41028,7 @@ const EM = (e) => ({
41049
41028
  ]), pt(() => {
41050
41029
  h && e && (u == null || u(e), a(null));
41051
41030
  }, [h, u, e, a]);
41052
- }, BX = ({
41031
+ }, $X = ({
41053
41032
  children: e,
41054
41033
  config: t
41055
41034
  }) => {
@@ -41183,29 +41162,29 @@ const EM = (e) => ({
41183
41162
  children: e
41184
41163
  }
41185
41164
  );
41186
- }, UX = ({
41165
+ }, BX = ({
41187
41166
  children: e
41188
41167
  }) => {
41189
- const { onOpen: t, isModalOpen: a, onClose: o, isTransactionPending: u } = MX(), f = Cc();
41190
- return $X(), /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
41168
+ const { onOpen: t, isModalOpen: a, onClose: o, isTransactionPending: u } = PX(), f = Cc();
41169
+ return FX(), /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
41191
41170
  e({ onClick: t, isTransactionPending: u }),
41192
41171
  /* @__PURE__ */ A.jsx(
41193
- lX,
41172
+ oX,
41194
41173
  {
41195
41174
  isOpen: a,
41196
41175
  onClose: o,
41197
- ThemeProvider: BX,
41176
+ ThemeProvider: $X,
41198
41177
  className: "limit-order",
41199
41178
  children: /* @__PURE__ */ A.jsx(
41200
- oX,
41179
+ iX,
41201
41180
  {
41202
41181
  title: f.limitSellsTitle,
41203
41182
  className: "dtw-text-[color:var(--limit-order-content-color)] dtw-max-w-[430px]",
41204
41183
  children: /* @__PURE__ */ A.jsxs("div", { className: "dtw-flex dtw-flex-col dtw-gap-2", children: [
41205
- /* @__PURE__ */ A.jsx(bX, {}),
41206
- /* @__PURE__ */ A.jsxs(PX, { children: [
41207
- /* @__PURE__ */ A.jsx(AX, { children: /* @__PURE__ */ A.jsx(_X, {}) }),
41208
- /* @__PURE__ */ A.jsx(NX, {})
41184
+ /* @__PURE__ */ A.jsx(wX, {}),
41185
+ /* @__PURE__ */ A.jsxs(LX, { children: [
41186
+ /* @__PURE__ */ A.jsx(CX, { children: /* @__PURE__ */ A.jsx(OX, {}) }),
41187
+ /* @__PURE__ */ A.jsx(kX, {})
41209
41188
  ] })
41210
41189
  ] })
41211
41190
  }
@@ -41213,7 +41192,7 @@ const EM = (e) => ({
41213
41192
  }
41214
41193
  )
41215
41194
  ] });
41216
- }, NZ = ({
41195
+ }, kZ = ({
41217
41196
  children: e,
41218
41197
  vaultChainId: t,
41219
41198
  vaultAddress: a,
@@ -41233,7 +41212,7 @@ const EM = (e) => ({
41233
41212
  }),
41234
41213
  [a, t, o, p, f]
41235
41214
  );
41236
- return /* @__PURE__ */ A.jsx(sX, { config: u, children: /* @__PURE__ */ A.jsx(fX, { initialState: g, actions: h, children: /* @__PURE__ */ A.jsx(UX, { children: e }) }) });
41215
+ return /* @__PURE__ */ A.jsx(lX, { config: u, children: /* @__PURE__ */ A.jsx(dX, { initialState: g, actions: h, children: /* @__PURE__ */ A.jsx(BX, { children: e }) }) });
41237
41216
  };
41238
41217
  export {
41239
41218
  n9 as AAVE_LENDING_POOL_V2_ADDRESS_POLYGON,
@@ -41241,7 +41220,7 @@ export {
41241
41220
  qV as AAVE_LENDING_POOL_V3_ADDRESS_BASE,
41242
41221
  ZV as AAVE_LENDING_POOL_V3_ADDRESS_OPTIMISM,
41243
41222
  r9 as AAVE_LENDING_POOL_V3_ADDRESS_POLYGON,
41244
- JX as ALCHEMY_RPC_URL_MAP,
41223
+ ZX as ALCHEMY_RPC_URL_MAP,
41245
41224
  F_ as AaveLendingPoolAbi,
41246
41225
  It as AddressZero,
41247
41226
  qL as BRIDGED_TOKENS_SYMBOLS,
@@ -41249,15 +41228,15 @@ export {
41249
41228
  HL as BRIDGED_USDC_OPTIMISM,
41250
41229
  GL as BRIDGED_USDC_POLYGON,
41251
41230
  g9 as CBBTC_BASE,
41252
- iZ as CBETH_BASE,
41231
+ aZ as CBETH_BASE,
41253
41232
  MV as CHAIN_MAP,
41254
41233
  Og as CHAIN_NATIVE_TOKENS,
41255
41234
  IV as CURRENCY_SYMBOL_MAP,
41256
41235
  T9 as DAI_OPTIMISM,
41257
41236
  C9 as DAI_POLYGON,
41258
- XX as DEFAULT_DEPOSIT_METHOD,
41237
+ KX as DEFAULT_DEPOSIT_METHOD,
41259
41238
  yA as DEFAULT_DEPOSIT_SLIPPAGE,
41260
- ZX as DEFAULT_DEPOSIT_SLIPPAGE_SCALE,
41239
+ XX as DEFAULT_DEPOSIT_SLIPPAGE_SCALE,
41261
41240
  p9 as DEFAULT_ERROR_MESSAGE,
41262
41241
  SV as DEFAULT_LOCK_TIME,
41263
41242
  RV as DEFAULT_MULTI_ASSET_WITHDRAW_METHOD,
@@ -41279,41 +41258,41 @@ export {
41279
41258
  t9 as FACTORY_ADDRESS_POLYGON,
41280
41259
  $_ as GAS_ESTIMATION_ERROR,
41281
41260
  NV as GAS_LIMIT_BUFFER_COEFF,
41282
- P9 as GMX_MARKET_ASSETS,
41261
+ L9 as GMX_MARKET_ASSETS,
41283
41262
  fm as GMX_MARKET_ASSETS_MAP,
41284
- cZ as LINK_OPTIMISM,
41285
- NZ as LimitOrderModal,
41263
+ uZ as LINK_OPTIMISM,
41264
+ kZ as LimitOrderModal,
41286
41265
  mm as MANAGER_FEE_DENOMINATOR,
41287
41266
  E1 as MAX_GAS_LIMIT_MAP,
41288
41267
  nC as MULTI_ASSET_TOKEN,
41289
41268
  vA as MaxUint256,
41290
41269
  kV as NATIVE_TOKEN_DEPOSIT_GAS_LIMIT,
41291
- pZ as PAXG_POLYGON,
41292
- hZ as PYTH_API_LINK,
41270
+ fZ as PAXG_POLYGON,
41271
+ mZ as PYTH_API_LINK,
41293
41272
  Av as PoolFactoryAbi,
41294
41273
  jf as PoolLogicAbi,
41295
41274
  dv as PoolManagerLogicAbi,
41296
41275
  C1 as RETH_BASE,
41297
41276
  KV as REWARD_DISTRIBUTION_ADDRESS_OPTIMISM,
41298
41277
  u9 as RewardDistributionAbi,
41299
- uZ as SETH_OPTIMISM,
41278
+ sZ as SETH_OPTIMISM,
41300
41279
  Cv as SHORTEN_POLLING_INTERVAL,
41301
41280
  m9 as SIMULATION_TIMEOUT_ERROR,
41302
- sZ as SUSD_OPTIMISM,
41303
- eZ as TBTC_ARBITRUM,
41304
- oZ as TBTC_BASE,
41305
- dZ as TBTC_OPTIMISM,
41306
- mZ as TBTC_POLYGON,
41281
+ lZ as SUSD_OPTIMISM,
41282
+ JX as TBTC_ARBITRUM,
41283
+ iZ as TBTC_BASE,
41284
+ cZ as TBTC_OPTIMISM,
41285
+ pZ as TBTC_POLYGON,
41307
41286
  Hb as TRADING_LOG_EVENT_PARAM,
41308
41287
  Gl as TRADING_PANEL_LOG_EVENT,
41309
- gZ as TradingPanelProvider,
41310
- _Z as TradingWidget,
41311
- aZ as USDCBC_BASE,
41288
+ yZ as TradingPanelProvider,
41289
+ OZ as TradingWidget,
41290
+ rZ as USDCBC_BASE,
41312
41291
  Vb as USDC_ARBITRUM,
41313
41292
  y9 as USDC_BASE,
41314
41293
  w9 as USDC_OPTIMISM,
41315
41294
  x9 as USDC_POLYGON,
41316
- nZ as USDT_ARBITRUM,
41295
+ tZ as USDT_ARBITRUM,
41317
41296
  b9 as USDT_OPTIMISM,
41318
41297
  E9 as USDT_POLYGON,
41319
41298
  bA as WBTC_ARBITRUM,
@@ -41326,39 +41305,39 @@ export {
41326
41305
  WL as WETH_OPTIMISM,
41327
41306
  VL as WETH_POLYGON,
41328
41307
  S9 as WPOL_POLYGON,
41329
- rZ as WSOL_ARBITRUM,
41330
- tZ as WSTETH_ARBITRUM,
41331
- lZ as WSTETH_BASE,
41332
- fZ as WSTETH_OPTIMISM,
41308
+ nZ as WSOL_ARBITRUM,
41309
+ eZ as WSTETH_ARBITRUM,
41310
+ oZ as WSTETH_BASE,
41311
+ dZ as WSTETH_OPTIMISM,
41333
41312
  wc as arbitrum,
41334
41313
  Tu as base,
41335
- X9 as clientSide,
41336
- $9 as commify,
41314
+ K9 as clientSide,
41315
+ F9 as commify,
41337
41316
  f9 as contractsAbisMap,
41338
41317
  d9 as contractsAddressesMap,
41339
- MZ as decodeErrorResult,
41340
- IZ as encodeFunctionData,
41341
- FZ as erc20Abi,
41318
+ PZ as decodeErrorResult,
41319
+ MZ as encodeFunctionData,
41320
+ IZ as erc20Abi,
41342
41321
  O1 as formatByCurrency,
41343
- $Z as formatEther,
41322
+ FZ as formatEther,
41344
41323
  Dv as formatNumberToLimitedDecimals,
41345
41324
  $b as formatNumeratorToPercentage,
41346
41325
  VT as formatPercentage,
41347
41326
  Bo as formatToUsd,
41348
- BZ as formatUnits,
41327
+ $Z as formatUnits,
41349
41328
  nP as formatVaultBalance,
41350
- I9 as getContractAbiById,
41329
+ M9 as getContractAbiById,
41351
41330
  sa as getContractAddressById,
41352
41331
  uT as getConventionalTokenPriceDecimals,
41353
- G9 as getErrorMessage,
41332
+ V9 as getErrorMessage,
41354
41333
  TA as getExplorerLink,
41355
- H9 as getNativeTokenInvestableBalance,
41334
+ z9 as getNativeTokenInvestableBalance,
41356
41335
  HT as getPercent,
41357
41336
  j_ as getPoolFraction,
41358
- UZ as hexToString,
41359
- vZ as isBigInt,
41337
+ BZ as hexToString,
41338
+ hZ as isBigInt,
41360
41339
  xa as isEqualAddress,
41361
- W9 as isErrorWithMessage,
41340
+ H9 as isErrorWithMessage,
41362
41341
  rP as isFmpAirdropVaultAddress,
41363
41342
  SA as isNativeToken,
41364
41343
  JL as isNumeric,
@@ -41366,54 +41345,54 @@ export {
41366
41345
  xA as normalizeNumber,
41367
41346
  Ps as optimism,
41368
41347
  bc as polygon,
41369
- q9 as removeInsignificantTrailingZeros,
41348
+ Y9 as removeInsignificantTrailingZeros,
41370
41349
  aC as shiftBy,
41371
- F9 as shortenAddress,
41372
- V9 as toErrorWithMessage,
41350
+ I9 as shortenAddress,
41351
+ W9 as toErrorWithMessage,
41373
41352
  oP as transformAddressForAnalytics,
41374
- jZ as trim,
41353
+ UZ as trim,
41375
41354
  Cr as useAccount,
41376
- AZ as useAddPoolConfig,
41355
+ CZ as useAddPoolConfig,
41377
41356
  Sc as useAssetPrice,
41378
41357
  AA as useBalance,
41379
- HZ as useBlockNumber,
41358
+ zZ as useBlockNumber,
41380
41359
  Y_ as useBrowserStorage,
41381
- oY as useCheckWhitelist,
41360
+ iY as useCheckWhitelist,
41382
41361
  u0 as useCompleteWithdrawSwapData,
41383
41362
  Ec as useCompleteWithdrawTrackedAssets,
41384
- WZ as useConnect,
41363
+ HZ as useConnect,
41385
41364
  Lm as useContractFunction,
41386
- lY as useContractPoolComposition,
41365
+ oY as useContractPoolComposition,
41387
41366
  pP as useContractReadErrorLogging,
41388
41367
  DA as useContractReadsErrorLogging,
41389
41368
  aM as useDebounce,
41390
- nQ as useDepositLockTime,
41391
- jq as useDepositProjectedEarnings,
41392
- VZ as useDisconnect,
41393
- Dq as useEasySwapperTrackedAssets,
41394
- vq as useExchangeRate,
41395
- bY as useFlatmoneyPointsUserBalances,
41396
- vG as useGasPrice,
41369
+ tQ as useDepositLockTime,
41370
+ Uq as useDepositProjectedEarnings,
41371
+ WZ as useDisconnect,
41372
+ Aq as useEasySwapperTrackedAssets,
41373
+ hq as useExchangeRate,
41374
+ wY as useFlatmoneyPointsUserBalances,
41375
+ hG as useGasPrice,
41397
41376
  SP as useHasSingleAssetWithdrawBlockers,
41398
41377
  iC as useInvalidateOnBlock,
41399
- dY as useInvalidatePoolContractData,
41378
+ cY as useInvalidatePoolContractData,
41400
41379
  RA as useInvalidateTradingQueries,
41401
41380
  s0 as useIsCompleteWithdrawStep,
41402
41381
  Ov as useIsDepositTradingPanelType,
41403
41382
  hP as useIsDhedgeVaultConnected,
41404
41383
  OA as useIsInsufficientBalance,
41405
- DZ as useIsPoolAddress,
41384
+ AZ as useIsPoolAddress,
41406
41385
  QP as useIsTradingEnabled,
41407
- RZ as useIsWalletConnected,
41386
+ DZ as useIsWalletConnected,
41408
41387
  vP as useManagerLogicAddress,
41409
41388
  Nm as useNetwork,
41410
- sG as useOnSimulateTransaction,
41411
- lG as useOnTokenSelector,
41412
- aG as useOnTransactionError,
41389
+ lG as useOnSimulateTransaction,
41390
+ oG as useOnTokenSelector,
41391
+ rG as useOnTransactionError,
41413
41392
  cP as useOnTransactionEstimationError,
41414
- oG as useOnTransactionSuccess,
41393
+ iG as useOnTransactionSuccess,
41415
41394
  i0 as usePoolComposition,
41416
- cY as usePoolCompositionWithFraction,
41395
+ uY as usePoolCompositionWithFraction,
41417
41396
  Bd as usePoolDynamic,
41418
41397
  _A as usePoolFees,
41419
41398
  QT as usePoolManagerDynamic,
@@ -41421,23 +41400,23 @@ export {
41421
41400
  yP as usePoolManagerStatic,
41422
41401
  qT as usePoolStatic,
41423
41402
  xc as usePoolTokenPrice,
41424
- Uq as useProjectedEarningsCore,
41425
- GZ as usePublicClient,
41403
+ Bq as useProjectedEarningsCore,
41404
+ VZ as usePublicClient,
41426
41405
  qP as useRawAssetPrice,
41427
- YZ as useReadContract,
41428
- qZ as useReadContracts,
41406
+ GZ as useReadContract,
41407
+ YZ as useReadContracts,
41429
41408
  Gn as useReceiveTokenInput,
41430
- kZ as useReferralProgram,
41409
+ _Z as useReferralProgram,
41431
41410
  gn as useSendTokenInput,
41432
- QZ as useSendTransaction,
41433
- wZ as useSetPoolAddress,
41434
- SZ as useSetTradingType,
41435
- OZ as useStaticCallQuery,
41411
+ qZ as useSendTransaction,
41412
+ gZ as useSetPoolAddress,
41413
+ xZ as useSetTradingType,
41414
+ RZ as useStaticCallQuery,
41436
41415
  fP as useTokenAllowance,
41437
41416
  Er as useTradingPanelActions,
41438
41417
  EA as useTradingPanelLogger,
41439
41418
  Id as useTradingPanelModal,
41440
- uG as useTradingPanelPoolAddress,
41419
+ sG as useTradingPanelPoolAddress,
41441
41420
  vt as useTradingPanelPoolConfig,
41442
41421
  GT as useTradingPanelPoolConfigs,
41443
41422
  Rv as useTradingPanelPoolFallbackData,
@@ -41445,23 +41424,23 @@ export {
41445
41424
  ml as useTradingPanelState,
41446
41425
  Yf as useTradingPanelTransactions,
41447
41426
  Fd as useTradingPanelType,
41448
- mq as useTradingResultHandling,
41427
+ pq as useTradingResultHandling,
41449
41428
  XT as useTradingSettleHandler,
41450
- CZ as useUpdatePoolConfig,
41451
- rG as useUpdatePoolFallbackData,
41452
- TZ as useUpdateReceiveTokenInput,
41453
- bZ as useUpdateSendTokenInput,
41454
- EZ as useUpdateTradingModal,
41455
- xZ as useUpdateTradingSettings,
41456
- rY as useUserBalancesDynamic,
41429
+ EZ as useUpdatePoolConfig,
41430
+ nG as useUpdatePoolFallbackData,
41431
+ bZ as useUpdateReceiveTokenInput,
41432
+ wZ as useUpdateSendTokenInput,
41433
+ SZ as useUpdateTradingModal,
41434
+ TZ as useUpdateTradingSettings,
41435
+ nY as useUserBalancesDynamic,
41457
41436
  RM as useUserLimitOrder,
41458
41437
  $d as useUserTokenBalance,
41459
- wY as useUserVaultBalance,
41460
- gY as useUserVaultsBalances,
41438
+ gY as useUserVaultBalance,
41439
+ yY as useUserVaultsBalances,
41461
41440
  UA as useVaultDepositTokens,
41462
- pY as useVaultVestedPoints,
41463
- KZ as useWaitForTransactionReceipt,
41464
- XZ as useWalletClient,
41465
- ZZ as useWriteContract,
41466
- yZ as validateLoggerEventParams
41441
+ fY as useVaultVestedPoints,
41442
+ QZ as useWaitForTransactionReceipt,
41443
+ KZ as useWalletClient,
41444
+ XZ as useWriteContract,
41445
+ vZ as validateLoggerEventParams
41467
41446
  };