@dhedge/trading-widget 3.3.6 → 3.3.7

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.
@@ -1,7 +1,7 @@
1
1
  import * as ge from "react";
2
- import Ie, { useRef as jt, useCallback as St, useEffect as yt, useState as Lt, useMemo as $e, useLayoutEffect as kE, createContext as bn, useContext as en, forwardRef as l3, Fragment as Ws, isValidElement as ck, cloneElement as u3, createElement as c3, useId as os, useReducer as tv, useSyncExternalStore as d3, createRef as FS, Children as f3 } from "react";
3
- import { erc20Abi as Dc, stringToHex as _E, encodeAbiParameters as MR, encodeFunctionData as Vb, formatUnits as sf, formatEther as dk, getAddress as ab, UserRejectedRequestError as Tc, ResourceUnavailableRpcError as US, withTimeout as p3, withRetry as m3, SwitchChainError as LR, numberToHex as PR, isHex as BS, hexToString as h3, trim as v3, decodeAbiParameters as y3, decodeErrorResult as g3, getAbiItem as IR } from "viem";
4
- import { useAccount as fk, useConfig as w3, useSwitchChain as b3, useReadContract as Tu, useBalance as T3, useWalletClient as x3, usePublicClient as Gb, useWriteContract as S3, useEstimateFeesPerGas as E3, useBlockNumber as C3, useReadContracts as Oi, useConnect as pk, useWaitForTransactionReceipt as mk, useSimulateContract as A3, useSendTransaction as D3 } from "wagmi";
2
+ import Ie, { useRef as jt, useCallback as St, useEffect as yt, useState as Lt, useMemo as $e, useLayoutEffect as kE, createContext as bn, useContext as en, forwardRef as l6, Fragment as Ws, isValidElement as ck, cloneElement as u6, createElement as c6, useId as os, useReducer as tv, useSyncExternalStore as d6, createRef as FS, Children as f6 } from "react";
3
+ import { erc20Abi as Dc, stringToHex as _E, encodeAbiParameters as MR, encodeFunctionData as Vb, formatUnits as sf, formatEther as dk, getAddress as ab, UserRejectedRequestError as Tc, ResourceUnavailableRpcError as US, withTimeout as p6, withRetry as m6, SwitchChainError as LR, numberToHex as PR, isHex as BS, hexToString as h6, trim as v6, decodeAbiParameters as y6, decodeErrorResult as g6, getAbiItem as IR } from "viem";
4
+ import { useAccount as fk, useConfig as w6, useSwitchChain as b6, useReadContract as Tu, useBalance as T6, useWalletClient as x6, usePublicClient as Gb, useWriteContract as S6, useEstimateFeesPerGas as E6, useBlockNumber as C6, useReadContracts as Oi, useConnect as pk, useWaitForTransactionReceipt as mk, useSimulateContract as A6, useSendTransaction as D6 } from "wagmi";
5
5
  import { useQuery as Yb, useQueryClient as hk } from "@tanstack/react-query";
6
6
  var ib = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
7
  function Tg(t) {
@@ -39,7 +39,7 @@ var lE = { exports: {} }, Gy = {};
39
39
  * LICENSE file in the root directory of this source tree.
40
40
  */
41
41
  var FR;
42
- function R3() {
42
+ function R6() {
43
43
  if (FR)
44
44
  return Gy;
45
45
  FR = 1;
@@ -67,7 +67,7 @@ var Yy = {};
67
67
  * LICENSE file in the root directory of this source tree.
68
68
  */
69
69
  var UR;
70
- function O3() {
70
+ function O6() {
71
71
  return UR || (UR = 1, process.env.NODE_ENV !== "production" && function() {
72
72
  var t = Ie, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), v = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), M = Symbol.iterator, U = "@@iterator";
73
73
  function B(J) {
@@ -668,9 +668,9 @@ React keys must be passed directly to JSX without using spread:
668
668
  Yy.Fragment = l, Yy.jsx = Li, Yy.jsxs = Ji;
669
669
  }()), Yy;
670
670
  }
671
- process.env.NODE_ENV === "production" ? lE.exports = R3() : lE.exports = O3();
671
+ process.env.NODE_ENV === "production" ? lE.exports = R6() : lE.exports = O6();
672
672
  var R = lE.exports;
673
- function k3({
673
+ function k6({
674
674
  title: t,
675
675
  titleId: n,
676
676
  ...a
@@ -693,8 +693,8 @@ function k3({
693
693
  d: "M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"
694
694
  }));
695
695
  }
696
- const _3 = /* @__PURE__ */ ge.forwardRef(k3), vk = _3;
697
- function N3({
696
+ const _6 = /* @__PURE__ */ ge.forwardRef(k6), vk = _6;
697
+ function N6({
698
698
  title: t,
699
699
  titleId: n,
700
700
  ...a
@@ -717,8 +717,8 @@ function N3({
717
717
  d: "M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
718
718
  }));
719
719
  }
720
- const M3 = /* @__PURE__ */ ge.forwardRef(N3), NE = M3;
721
- function L3({
720
+ const M6 = /* @__PURE__ */ ge.forwardRef(N6), NE = M6;
721
+ function L6({
722
722
  title: t,
723
723
  titleId: n,
724
724
  ...a
@@ -745,8 +745,8 @@ function L3({
745
745
  d: "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
746
746
  }));
747
747
  }
748
- const P3 = /* @__PURE__ */ ge.forwardRef(L3), I3 = P3;
749
- function F3({
748
+ const P6 = /* @__PURE__ */ ge.forwardRef(L6), I6 = P6;
749
+ function F6({
750
750
  title: t,
751
751
  titleId: n,
752
752
  ...a
@@ -769,8 +769,8 @@ function F3({
769
769
  d: "M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"
770
770
  }));
771
771
  }
772
- const U3 = /* @__PURE__ */ ge.forwardRef(F3), Vh = U3;
773
- function B3({
772
+ const U6 = /* @__PURE__ */ ge.forwardRef(F6), Vh = U6;
773
+ function B6({
774
774
  title: t,
775
775
  titleId: n,
776
776
  ...a
@@ -793,8 +793,8 @@ function B3({
793
793
  d: "M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"
794
794
  }));
795
795
  }
796
- const j3 = /* @__PURE__ */ ge.forwardRef(B3), $3 = j3;
797
- function z3({
796
+ const j6 = /* @__PURE__ */ ge.forwardRef(B6), $6 = j6;
797
+ function z6({
798
798
  title: t,
799
799
  titleId: n,
800
800
  ...a
@@ -817,7 +817,7 @@ function z3({
817
817
  d: "M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"
818
818
  }));
819
819
  }
820
- const H3 = /* @__PURE__ */ ge.forwardRef(z3), uE = H3;
820
+ const H6 = /* @__PURE__ */ ge.forwardRef(z6), uE = H6;
821
821
  var yk = { exports: {} };
822
822
  /*!
823
823
  Copyright (c) 2018 Jed Watson.
@@ -854,9 +854,9 @@ var yk = { exports: {} };
854
854
  t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
855
855
  })();
856
856
  })(yk);
857
- var W3 = yk.exports;
858
- const Mt = /* @__PURE__ */ Tg(W3);
859
- function V3(t, n) {
857
+ var W6 = yk.exports;
858
+ const Mt = /* @__PURE__ */ Tg(W6);
859
+ function V6(t, n) {
860
860
  if (t == null)
861
861
  return {};
862
862
  var a = {};
@@ -894,7 +894,7 @@ var BR = function(n) {
894
894
  * LICENSE file in the root directory of this source tree.
895
895
  */
896
896
  var $R;
897
- function G3() {
897
+ function G6() {
898
898
  return $R || ($R = 1, function(t) {
899
899
  function n($, Z) {
900
900
  var K = $.length;
@@ -1122,7 +1122,7 @@ var $S = {};
1122
1122
  * LICENSE file in the root directory of this source tree.
1123
1123
  */
1124
1124
  var zR;
1125
- function Y3() {
1125
+ function Y6() {
1126
1126
  return zR || (zR = 1, function(t) {
1127
1127
  process.env.NODE_ENV !== "production" && function() {
1128
1128
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
@@ -1388,7 +1388,7 @@ function Y3() {
1388
1388
  }
1389
1389
  var HR;
1390
1390
  function gk() {
1391
- return HR || (HR = 1, process.env.NODE_ENV === "production" ? ob.exports = G3() : ob.exports = Y3()), ob.exports;
1391
+ return HR || (HR = 1, process.env.NODE_ENV === "production" ? ob.exports = G6() : ob.exports = Y6()), ob.exports;
1392
1392
  }
1393
1393
  /**
1394
1394
  * @license React
@@ -1400,7 +1400,7 @@ function gk() {
1400
1400
  * LICENSE file in the root directory of this source tree.
1401
1401
  */
1402
1402
  var WR;
1403
- function q3() {
1403
+ function q6() {
1404
1404
  if (WR)
1405
1405
  return Eo;
1406
1406
  WR = 1;
@@ -7035,7 +7035,7 @@ var Co = {};
7035
7035
  * LICENSE file in the root directory of this source tree.
7036
7036
  */
7037
7037
  var VR;
7038
- function Q3() {
7038
+ function Q6() {
7039
7039
  return VR || (VR = 1, process.env.NODE_ENV !== "production" && function() {
7040
7040
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
7041
7041
  var t = Ie, n = gk(), a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, l = !1;
@@ -13089,7 +13089,7 @@ Check the render method of \`` + e + "`." : "";
13089
13089
  }
13090
13090
  function UA(e, r) {
13091
13091
  FA(e, r);
13092
- var s = O6();
13092
+ var s = O3();
13093
13093
  s.stateNode = r, s.return = e;
13094
13094
  var c = e.deletions;
13095
13095
  c === null ? (e.deletions = [s], e.flags |= sn) : c.push(s);
@@ -13188,7 +13188,7 @@ Check the render method of \`` + e + "`." : "";
13188
13188
  retryLane: Ua
13189
13189
  };
13190
13190
  e.memoizedState = E;
13191
- var O = k6(T);
13191
+ var O = k3(T);
13192
13192
  return O.return = e, e.child = O, Za = e, Ps = null, !0;
13193
13193
  }
13194
13194
  return !1;
@@ -13808,11 +13808,11 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
13808
13808
  var gu = me(Vy, de, oi, Qi.value, ke);
13809
13809
  gu !== null && (e && gu.alternate !== null && Vy.delete(gu.key === null ? oi : gu.key), Ci = y(gu, Ci, oi), hn === null ? Kr = gu : hn.sibling = gu, hn = gu);
13810
13810
  }
13811
- if (e && Vy.forEach(function(s3) {
13812
- return r(de, s3);
13811
+ if (e && Vy.forEach(function(s6) {
13812
+ return r(de, s6);
13813
13813
  }), Ja()) {
13814
- var o3 = oi;
13815
- yp(de, o3);
13814
+ var o6 = oi;
13815
+ yp(de, o6);
13816
13816
  }
13817
13817
  return Kr;
13818
13818
  }
@@ -13913,7 +13913,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
13913
13913
  }
13914
13914
  function F5(e, r) {
13915
13915
  for (var s = e.child; s !== null; )
13916
- E6(s, r), s = s.sibling;
13916
+ E3(s, r), s = s.sibling;
13917
13917
  }
13918
13918
  var Mx = Fd(null), Lx;
13919
13919
  Lx = {};
@@ -15991,7 +15991,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
15991
15991
  };
15992
15992
  var m = r.value;
15993
15993
  return c.callback = function() {
15994
- a6(m), L1(e, r);
15994
+ a3(m), L1(e, r);
15995
15995
  }, c;
15996
15996
  }
15997
15997
  function P1(e, r, s) {
@@ -16008,7 +16008,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
16008
16008
  }
16009
16009
  var T = e.stateNode;
16010
16010
  return T !== null && typeof T.componentDidCatch == "function" && (c.callback = function() {
16011
- J2(e), L1(e, r), typeof m != "function" && n6(this);
16011
+ J2(e), L1(e, r), typeof m != "function" && n3(this);
16012
16012
  var O = r.value, F = r.stack;
16013
16013
  this.componentDidCatch(O, {
16014
16014
  componentStack: F !== null ? F : ""
@@ -16019,7 +16019,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
16019
16019
  var c = e.pingCache, m;
16020
16020
  if (c === null ? (c = e.pingCache = new fI(), m = /* @__PURE__ */ new Set(), c.set(r, m)) : (m = c.get(r), m === void 0 && (m = /* @__PURE__ */ new Set(), c.set(r, m))), !m.has(s)) {
16021
16021
  m.add(s);
16022
- var y = i6.bind(null, e, r, s);
16022
+ var y = i3.bind(null, e, r, s);
16023
16023
  Hi && $y(e, s), r.then(y, y);
16024
16024
  }
16025
16025
  }
@@ -16159,7 +16159,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
16159
16159
  function YD(e, r, s, c, m) {
16160
16160
  if (e === null) {
16161
16161
  var y = s.type;
16162
- if (x6(y) && s.compare === null && // SimpleMemoComponent codepath doesn't resolve outer props either.
16162
+ if (x3(y) && s.compare === null && // SimpleMemoComponent codepath doesn't resolve outer props either.
16163
16163
  s.defaultProps === void 0) {
16164
16164
  var T = y;
16165
16165
  return T = Ph(y), r.tag = le, r.type = T, H1(r, y), qD(e, r, T, c, m);
@@ -16327,7 +16327,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
16327
16327
  }
16328
16328
  function XD(e, r, s, c, m) {
16329
16329
  {
16330
- switch (F6(r)) {
16330
+ switch (F3(r)) {
16331
16331
  case !1: {
16332
16332
  var y = r.stateNode, T = r.type, E = new T(r.memoizedProps, y.context), O = E.state;
16333
16333
  y.updater.enqueueSetState(y, O, null);
@@ -16446,7 +16446,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
16446
16446
  Bw(e, r);
16447
16447
  var m = r.pendingProps, y = s, T = y._payload, E = y._init, O = E(T);
16448
16448
  r.type = O;
16449
- var F = r.tag = S6(O), j = Cl(O, m), se;
16449
+ var F = r.tag = S3(O), j = Cl(O, m), se;
16450
16450
  switch (F) {
16451
16451
  case g:
16452
16452
  return H1(r, O), r.type = O = Ph(O), se = $1(null, r, O, j, c), se;
@@ -16585,7 +16585,7 @@ Check the render method of \`` + c + "`.");
16585
16585
  }
16586
16586
  function e2(e, r, s) {
16587
16587
  var c = r.pendingProps;
16588
- U6(r) && (r.flags |= wt);
16588
+ U3(r) && (r.flags |= wt);
16589
16589
  var m = Sl.current, y = !1, T = (r.flags & wt) !== st;
16590
16590
  if (T || RI(m, e) ? (y = !0, r.flags &= ~wt) : (e === null || e.memoizedState !== null) && (m = Y5(m, sD)), m = xh(m), Hd(r, m), e === null) {
16591
16591
  Ax(r);
@@ -16736,7 +16736,7 @@ Check the render method of \`` + c + "`.");
16736
16736
  return Uw(e, r, T, mt);
16737
16737
  } else if (EA(m)) {
16738
16738
  r.flags |= wt, r.child = e.child;
16739
- var ot = o6.bind(null, e);
16739
+ var ot = o3.bind(null, e);
16740
16740
  return jP(m, ot), null;
16741
16741
  } else {
16742
16742
  C5(r, m, y.treeContext);
@@ -17780,7 +17780,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
17780
17780
  var me = s.memoizedProps, ve = me.onCommit, be = me.onRender, je = s.stateNode.effectDuration, mt = MD(), ot = r === null ? "mount" : "update";
17781
17781
  ND() && (ot = "nested-update"), typeof be == "function" && be(s.memoizedProps.id, ot, s.actualDuration, s.treeBaseDuration, s.actualStartTime, mt);
17782
17782
  {
17783
- typeof ve == "function" && ve(s.memoizedProps.id, ot, je, mt), e6(s);
17783
+ typeof ve == "function" && ve(s.memoizedProps.id, ot, je, mt), e3(s);
17784
17784
  var Jt = s.return;
17785
17785
  e:
17786
17786
  for (; Jt !== null; ) {
@@ -18122,7 +18122,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
18122
18122
  e.updateQueue = null;
18123
18123
  var s = e.stateNode;
18124
18124
  s === null && (s = e.stateNode = new qI()), r.forEach(function(c) {
18125
- var m = s6.bind(null, e, c);
18125
+ var m = s3.bind(null, e, c);
18126
18126
  if (!s.has(c)) {
18127
18127
  if (s.add(c), Hi)
18128
18128
  if (Oh !== null && kh !== null)
@@ -18734,7 +18734,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
18734
18734
  return (r & it) === rt ? ut : wi();
18735
18735
  }
18736
18736
  function Oa(e, r, s, c) {
18737
- u6(), L2 && p("useInsertionEffect must not schedule updates."), cS && (Gw = !0), nc(e, s, c), (Zt & ii) !== Ce && e === Yi ? f6(r) : (Hi && jm(e, r, s), p6(r), e === Yi && ((Zt & ii) === Aa && (Ly = Nt(Ly, s)), Ra === Ny && Kd(e, Da)), So(e, c), s === ut && Zt === Aa && (r.mode & it) === rt && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode.
18737
+ u3(), L2 && p("useInsertionEffect must not schedule updates."), cS && (Gw = !0), nc(e, s, c), (Zt & ii) !== Ce && e === Yi ? f3(r) : (Hi && jm(e, r, s), p3(r), e === Yi && ((Zt & ii) === Aa && (Ly = Nt(Ly, s)), Ra === Ny && Kd(e, Da)), So(e, c), s === ut && Zt === Aa && (r.mode & it) === rt && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode.
18738
18738
  !kl.isBatchingLegacy && (Iy(), LA()));
18739
18739
  }
18740
18740
  function jF(e, r, s) {
@@ -18880,7 +18880,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
18880
18880
  if (Kd(e, s), i0(s))
18881
18881
  break;
18882
18882
  if (!X2()) {
18883
- var T = e0(e, s), E = T, O = tr() - E, F = l6(O) - O;
18883
+ var T = e0(e, s), E = T, O = tr() - E, F = l3(O) - O;
18884
18884
  if (F > 10) {
18885
18885
  e.timeoutHandle = lx(Op.bind(null, e, xo, yc), F);
18886
18886
  break;
@@ -19167,7 +19167,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19167
19167
  do
19168
19168
  wc();
19169
19169
  while (qd !== null);
19170
- if (c6(), (Zt & (ii | Us)) !== Aa)
19170
+ if (c3(), (Zt & (ii | Us)) !== Aa)
19171
19171
  throw new Error("Should not already be working.");
19172
19172
  var m = e.finishedWork, y = e.finishedLanes;
19173
19173
  if (eu(y), m === null)
@@ -19209,19 +19209,19 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19209
19209
  if (qd !== null) {
19210
19210
  var e = Ta(Fy), r = MT(Os, e), s = ai.transition, c = mo();
19211
19211
  try {
19212
- return ai.transition = null, sr(r), t6();
19212
+ return ai.transition = null, sr(r), t3();
19213
19213
  } finally {
19214
19214
  sr(c), ai.transition = s;
19215
19215
  }
19216
19216
  }
19217
19217
  return !1;
19218
19218
  }
19219
- function e6(e) {
19219
+ function e3(e) {
19220
19220
  sS.push(e), Dp || (Dp = !0, gS(Rs, function() {
19221
19221
  return wc(), null;
19222
19222
  }));
19223
19223
  }
19224
- function t6() {
19224
+ function t3() {
19225
19225
  if (qd === null)
19226
19226
  return !1;
19227
19227
  var e = lS;
@@ -19250,13 +19250,13 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19250
19250
  function W2(e) {
19251
19251
  return Nh !== null && Nh.has(e);
19252
19252
  }
19253
- function n6(e) {
19253
+ function n3(e) {
19254
19254
  Nh === null ? Nh = /* @__PURE__ */ new Set([e]) : Nh.add(e);
19255
19255
  }
19256
- function r6(e) {
19256
+ function r3(e) {
19257
19257
  Vw || (Vw = !0, oS = e);
19258
19258
  }
19259
- var a6 = r6;
19259
+ var a3 = r3;
19260
19260
  function V2(e, r, s) {
19261
19261
  var c = Ep(s, r), m = zD(e, c, ut), y = $d(e, m, ut), T = qi();
19262
19262
  y !== null && (nc(y, ut, T), So(y, T));
@@ -19287,22 +19287,22 @@ Error message:
19287
19287
 
19288
19288
  %s`, s);
19289
19289
  }
19290
- function i6(e, r, s) {
19290
+ function i3(e, r, s) {
19291
19291
  var c = e.pingCache;
19292
19292
  c !== null && c.delete(r);
19293
19293
  var m = qi();
19294
- Um(e, s), m6(e), Yi === e && tc(Da, s) && (Ra === Ny || Ra === zw && r0(Da) && tr() - iS < _2 ? Rp(e, Ce) : Ww = Nt(Ww, s)), So(e, m);
19294
+ Um(e, s), m3(e), Yi === e && tc(Da, s) && (Ra === Ny || Ra === zw && r0(Da) && tr() - iS < _2 ? Rp(e, Ce) : Ww = Nt(Ww, s)), So(e, m);
19295
19295
  }
19296
19296
  function G2(e, r) {
19297
19297
  r === Nr && (r = BF(e));
19298
19298
  var s = qi(), c = bo(e, r);
19299
19299
  c !== null && (nc(c, r, s), So(c, s));
19300
19300
  }
19301
- function o6(e) {
19301
+ function o3(e) {
19302
19302
  var r = e.memoizedState, s = Nr;
19303
19303
  r !== null && (s = r.retryLane), G2(e, s);
19304
19304
  }
19305
- function s6(e, r) {
19305
+ function s3(e, r) {
19306
19306
  var s = Nr, c;
19307
19307
  switch (e.tag) {
19308
19308
  case ae:
@@ -19318,15 +19318,15 @@ Error message:
19318
19318
  }
19319
19319
  c !== null && c.delete(r), G2(e, s);
19320
19320
  }
19321
- function l6(e) {
19321
+ function l3(e) {
19322
19322
  return e < 120 ? 120 : e < 480 ? 480 : e < 1080 ? 1080 : e < 1920 ? 1920 : e < 3e3 ? 3e3 : e < 4320 ? 4320 : PF(e / 1960) * 1960;
19323
19323
  }
19324
- function u6() {
19324
+ function u3() {
19325
19325
  if (Uy > FF)
19326
19326
  throw Uy = 0, uS = null, new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");
19327
19327
  Mh > UF && (Mh = 0, Yw = null, p("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."));
19328
19328
  }
19329
- function c6() {
19329
+ function c3() {
19330
19330
  xl.flushLegacyContextWarning(), xl.flushPendingUnsafeLifecycleWarnings();
19331
19331
  }
19332
19332
  function Y2(e, r) {
@@ -19363,9 +19363,9 @@ Error message:
19363
19363
  }
19364
19364
  var hS;
19365
19365
  {
19366
- var d6 = null;
19366
+ var d3 = null;
19367
19367
  hS = function(e, r, s) {
19368
- var c = nR(d6, r);
19368
+ var c = nR(d3, r);
19369
19369
  try {
19370
19370
  return s2(e, r, s);
19371
19371
  } catch (y) {
@@ -19381,7 +19381,7 @@ Error message:
19381
19381
  }
19382
19382
  var Q2 = !1, vS;
19383
19383
  vS = /* @__PURE__ */ new Set();
19384
- function f6(e) {
19384
+ function f3(e) {
19385
19385
  if (ta && !tI())
19386
19386
  switch (e.tag) {
19387
19387
  case g:
@@ -19423,7 +19423,7 @@ Error message:
19423
19423
  function X2() {
19424
19424
  return kl.current !== null;
19425
19425
  }
19426
- function p6(e) {
19426
+ function p3(e) {
19427
19427
  {
19428
19428
  if (e.mode & it) {
19429
19429
  if (!R2())
@@ -19449,7 +19449,7 @@ This ensures that you're testing the behavior the user would see in the browser.
19449
19449
  }
19450
19450
  }
19451
19451
  }
19452
- function m6(e) {
19452
+ function m3(e) {
19453
19453
  e.tag !== Ud && R2() && kl.current === null && p(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
19454
19454
 
19455
19455
  When testing, code that resolves suspended data should be wrapped into act(...):
@@ -19464,7 +19464,7 @@ This ensures that you're testing the behavior the user would see in the browser.
19464
19464
  function zy(e) {
19465
19465
  L2 = e;
19466
19466
  }
19467
- var Bs = null, Lh = null, h6 = function(e) {
19467
+ var Bs = null, Lh = null, h3 = function(e) {
19468
19468
  Bs = e;
19469
19469
  };
19470
19470
  function Ph(e) {
@@ -19540,7 +19540,7 @@ This ensures that you're testing the behavior the user would see in the browser.
19540
19540
  Lh === null && (Lh = /* @__PURE__ */ new WeakSet()), Lh.add(e);
19541
19541
  }
19542
19542
  }
19543
- var v6 = function(e, r) {
19543
+ var v3 = function(e, r) {
19544
19544
  {
19545
19545
  if (Bs === null)
19546
19546
  return;
@@ -19549,7 +19549,7 @@ This ensures that you're testing the behavior the user would see in the browser.
19549
19549
  TS(e.current, c, s);
19550
19550
  });
19551
19551
  }
19552
- }, y6 = function(e, r) {
19552
+ }, y3 = function(e, r) {
19553
19553
  {
19554
19554
  if (e.context !== es)
19555
19555
  return;
@@ -19585,7 +19585,7 @@ This ensures that you're testing the behavior the user would see in the browser.
19585
19585
  m !== null && !j && TS(m, r, s), y !== null && TS(y, r, s);
19586
19586
  }
19587
19587
  }
19588
- var g6 = function(e, r) {
19588
+ var g3 = function(e, r) {
19589
19589
  {
19590
19590
  var s = /* @__PURE__ */ new Set(), c = new Set(r.map(function(m) {
19591
19591
  return m.current;
@@ -19607,12 +19607,12 @@ This ensures that you're testing the behavior the user would see in the browser.
19607
19607
  break;
19608
19608
  }
19609
19609
  var O = !1;
19610
- E !== null && r.has(E) && (O = !0), O ? w6(e, s) : c !== null && xS(c, r, s), m !== null && xS(m, r, s);
19610
+ E !== null && r.has(E) && (O = !0), O ? w3(e, s) : c !== null && xS(c, r, s), m !== null && xS(m, r, s);
19611
19611
  }
19612
19612
  }
19613
- function w6(e, r) {
19613
+ function w3(e, r) {
19614
19614
  {
19615
- var s = b6(e, r);
19615
+ var s = b3(e, r);
19616
19616
  if (s)
19617
19617
  return;
19618
19618
  for (var c = e; ; ) {
@@ -19633,7 +19633,7 @@ This ensures that you're testing the behavior the user would see in the browser.
19633
19633
  }
19634
19634
  }
19635
19635
  }
19636
- function b6(e, r) {
19636
+ function b3(e, r) {
19637
19637
  for (var s = e, c = !1; ; ) {
19638
19638
  if (s.tag === A)
19639
19639
  c = !0, r.add(s.stateNode);
@@ -19661,20 +19661,20 @@ This ensures that you're testing the behavior the user would see in the browser.
19661
19661
  SS = !0;
19662
19662
  }
19663
19663
  }
19664
- function T6(e, r, s, c) {
19664
+ function T3(e, r, s, c) {
19665
19665
  this.tag = e, this.key = s, this.elementType = null, this.type = null, this.stateNode = null, this.return = null, this.child = null, this.sibling = null, this.index = 0, this.ref = null, this.pendingProps = r, this.memoizedProps = null, this.updateQueue = null, this.memoizedState = null, this.dependencies = null, this.mode = c, this.flags = st, this.subtreeFlags = st, this.deletions = null, this.lanes = Ce, this.childLanes = Ce, this.alternate = null, this.actualDuration = Number.NaN, this.actualStartTime = Number.NaN, this.selfBaseDuration = Number.NaN, this.treeBaseDuration = Number.NaN, this.actualDuration = 0, this.actualStartTime = -1, this.selfBaseDuration = 0, this.treeBaseDuration = 0, this._debugSource = null, this._debugOwner = null, this._debugNeedsRemount = !1, this._debugHookTypes = null, !SS && typeof Object.preventExtensions == "function" && Object.preventExtensions(this);
19666
19666
  }
19667
19667
  var ts = function(e, r, s, c) {
19668
- return new T6(e, r, s, c);
19668
+ return new T3(e, r, s, c);
19669
19669
  };
19670
19670
  function ES(e) {
19671
19671
  var r = e.prototype;
19672
19672
  return !!(r && r.isReactComponent);
19673
19673
  }
19674
- function x6(e) {
19674
+ function x3(e) {
19675
19675
  return typeof e == "function" && !ES(e) && e.defaultProps === void 0;
19676
19676
  }
19677
- function S6(e) {
19677
+ function S3(e) {
19678
19678
  if (typeof e == "function")
19679
19679
  return ES(e) ? w : g;
19680
19680
  if (e != null) {
@@ -19708,7 +19708,7 @@ This ensures that you're testing the behavior the user would see in the browser.
19708
19708
  }
19709
19709
  return s;
19710
19710
  }
19711
- function E6(e, r) {
19711
+ function E3(e, r) {
19712
19712
  e.flags &= wa | An;
19713
19713
  var s = e.alternate;
19714
19714
  if (s === null)
@@ -19723,7 +19723,7 @@ This ensures that you're testing the behavior the user would see in the browser.
19723
19723
  }
19724
19724
  return e;
19725
19725
  }
19726
- function C6(e, r, s) {
19726
+ function C3(e, r, s) {
19727
19727
  var c;
19728
19728
  return e === K0 ? (c = it, r === !0 && (c |= Wt, c |= Wi)) : c = rt, Hi && (c |= Ct), ts(C, null, null, c);
19729
19729
  }
@@ -19742,11 +19742,11 @@ This ensures that you're testing the behavior the user would see in the browser.
19742
19742
  T = B, m |= Wt, (m & it) !== rt && (m |= Wi);
19743
19743
  break;
19744
19744
  case Ji:
19745
- return A6(s, m, y, r);
19745
+ return A3(s, m, y, r);
19746
19746
  case Ye:
19747
- return D6(s, m, y, r);
19747
+ return D3(s, m, y, r);
19748
19748
  case Pt:
19749
- return R6(s, m, y, r);
19749
+ return R3(s, m, y, r);
19750
19750
  case Vt:
19751
19751
  return tR(s, m, y, r);
19752
19752
  case xn:
@@ -19797,7 +19797,7 @@ Check the render method of \`` + F + "`.");
19797
19797
  var m = ts(U, e, c, r);
19798
19798
  return m.lanes = s, m;
19799
19799
  }
19800
- function A6(e, r, s, c) {
19800
+ function A3(e, r, s, c) {
19801
19801
  typeof e.id != "string" && p('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.', typeof e.id);
19802
19802
  var m = ts(te, e, c, r | Ct);
19803
19803
  return m.elementType = Ji, m.lanes = s, m.stateNode = {
@@ -19805,11 +19805,11 @@ Check the render method of \`` + F + "`.");
19805
19805
  passiveEffectDuration: 0
19806
19806
  }, m;
19807
19807
  }
19808
- function D6(e, r, s, c) {
19808
+ function D3(e, r, s, c) {
19809
19809
  var m = ts(ae, e, c, r);
19810
19810
  return m.elementType = Ye, m.lanes = s, m;
19811
19811
  }
19812
- function R6(e, r, s, c) {
19812
+ function R3(e, r, s, c) {
19813
19813
  var m = ts(G, e, c, r);
19814
19814
  return m.elementType = Pt, m.lanes = s, m;
19815
19815
  }
@@ -19825,11 +19825,11 @@ Check the render method of \`` + F + "`.");
19825
19825
  var c = ts(M, e, null, r);
19826
19826
  return c.lanes = s, c;
19827
19827
  }
19828
- function O6() {
19828
+ function O3() {
19829
19829
  var e = ts(A, null, null, rt);
19830
19830
  return e.elementType = "DELETED", e;
19831
19831
  }
19832
- function k6(e) {
19832
+ function k3(e) {
19833
19833
  var r = ts(P, null, null, rt);
19834
19834
  return r.stateNode = e, r;
19835
19835
  }
@@ -19845,7 +19845,7 @@ Check the render method of \`` + F + "`.");
19845
19845
  function nR(e, r) {
19846
19846
  return e === null && (e = ts(x, null, null, rt)), e.tag = r.tag, e.key = r.key, e.elementType = r.elementType, e.type = r.type, e.stateNode = r.stateNode, e.return = r.return, e.child = r.child, e.sibling = r.sibling, e.index = r.index, e.ref = r.ref, e.pendingProps = r.pendingProps, e.memoizedProps = r.memoizedProps, e.updateQueue = r.updateQueue, e.memoizedState = r.memoizedState, e.dependencies = r.dependencies, e.mode = r.mode, e.flags = r.flags, e.subtreeFlags = r.subtreeFlags, e.deletions = r.deletions, e.lanes = r.lanes, e.childLanes = r.childLanes, e.alternate = r.alternate, e.actualDuration = r.actualDuration, e.actualStartTime = r.actualStartTime, e.selfBaseDuration = r.selfBaseDuration, e.treeBaseDuration = r.treeBaseDuration, e._debugSource = r._debugSource, e._debugOwner = r._debugOwner, e._debugNeedsRemount = r._debugNeedsRemount, e._debugHookTypes = r._debugHookTypes, e;
19847
19847
  }
19848
- function _6(e, r, s, c, m) {
19848
+ function _3(e, r, s, c, m) {
19849
19849
  this.tag = r, this.containerInfo = e, this.pendingChildren = null, this.current = null, this.pingCache = null, this.finishedWork = null, this.timeoutHandle = ux, this.context = null, this.pendingContext = null, this.callbackNode = null, this.callbackPriority = Nr, this.eventTimes = tp(Ce), this.expirationTimes = tp(Un), this.pendingLanes = Ce, this.suspendedLanes = Ce, this.pingedLanes = Ce, this.expiredLanes = Ce, this.mutableReadLanes = Ce, this.finishedLanes = Ce, this.entangledLanes = Ce, this.entanglements = tp(Ce), this.identifierPrefix = c, this.onRecoverableError = m, this.mutableSourceEagerHydrationData = null, this.effectDuration = 0, this.passiveEffectDuration = 0;
19850
19850
  {
19851
19851
  this.memoizedUpdaters = /* @__PURE__ */ new Set();
@@ -19862,7 +19862,7 @@ Check the render method of \`` + F + "`.");
19862
19862
  }
19863
19863
  }
19864
19864
  function rR(e, r, s, c, m, y, T, E, O, F) {
19865
- var j = new _6(e, r, s, E, O), se = C6(r, y);
19865
+ var j = new _3(e, r, s, E, O), se = C3(r, y);
19866
19866
  j.current = se, se.stateNode = j;
19867
19867
  {
19868
19868
  var ie = {
@@ -19878,7 +19878,7 @@ Check the render method of \`` + F + "`.");
19878
19878
  return $x(se), j;
19879
19879
  }
19880
19880
  var OS = "18.3.1";
19881
- function N6(e, r, s) {
19881
+ function N3(e, r, s) {
19882
19882
  var c = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
19883
19883
  return Jr(c), {
19884
19884
  // This tag allow us to uniquely identify this as a React Portal
@@ -19902,7 +19902,7 @@ Check the render method of \`` + F + "`.");
19902
19902
  }
19903
19903
  return s;
19904
19904
  }
19905
- function M6(e, r) {
19905
+ function M3(e, r) {
19906
19906
  {
19907
19907
  var s = qa(e);
19908
19908
  if (s === void 0) {
@@ -19965,7 +19965,7 @@ Check the render method of %s.`, Tt($n) || "Unknown"));
19965
19965
  return r.child.stateNode;
19966
19966
  }
19967
19967
  }
19968
- function L6(e) {
19968
+ function L3(e) {
19969
19969
  switch (e.tag) {
19970
19970
  case C: {
19971
19971
  var r = e.stateNode;
@@ -19998,7 +19998,7 @@ Check the render method of %s.`, Tt($n) || "Unknown"));
19998
19998
  var s = e.alternate;
19999
19999
  s && sR(s, r);
20000
20000
  }
20001
- function P6(e) {
20001
+ function P3(e) {
20002
20002
  if (e.tag === ae) {
20003
20003
  var r = Xf, s = bo(e, r);
20004
20004
  if (s !== null) {
@@ -20008,7 +20008,7 @@ Check the render method of %s.`, Tt($n) || "Unknown"));
20008
20008
  NS(e, r);
20009
20009
  }
20010
20010
  }
20011
- function I6(e) {
20011
+ function I3(e) {
20012
20012
  if (e.tag === ae) {
20013
20013
  var r = Qd(e), s = bo(e, r);
20014
20014
  if (s !== null) {
@@ -20025,13 +20025,13 @@ Check the render method of %s.`, Tt($n) || "Unknown"));
20025
20025
  var uR = function(e) {
20026
20026
  return null;
20027
20027
  };
20028
- function F6(e) {
20028
+ function F3(e) {
20029
20029
  return uR(e);
20030
20030
  }
20031
20031
  var cR = function(e) {
20032
20032
  return !1;
20033
20033
  };
20034
- function U6(e) {
20034
+ function U3(e) {
20035
20035
  return cR(e);
20036
20036
  }
20037
20037
  var dR = null, fR = null, pR = null, mR = null, hR = null, vR = null, yR = null, gR = null, wR = null;
@@ -20123,17 +20123,17 @@ Check the render method of %s.`, Tt($n) || "Unknown"));
20123
20123
  cR = e;
20124
20124
  };
20125
20125
  }
20126
- function B6(e) {
20126
+ function B3(e) {
20127
20127
  var r = uo(e);
20128
20128
  return r === null ? null : r.stateNode;
20129
20129
  }
20130
- function j6(e) {
20130
+ function j3(e) {
20131
20131
  return null;
20132
20132
  }
20133
- function $6() {
20133
+ function $3() {
20134
20134
  return $n;
20135
20135
  }
20136
- function z6(e) {
20136
+ function z3(e) {
20137
20137
  var r = e.findFiberByHostInstance, s = a.ReactCurrentDispatcher;
20138
20138
  return wv({
20139
20139
  bundleType: e.bundleType,
@@ -20150,15 +20150,15 @@ Check the render method of %s.`, Tt($n) || "Unknown"));
20150
20150
  setSuspenseHandler: wR,
20151
20151
  scheduleUpdate: yR,
20152
20152
  currentDispatcherRef: s,
20153
- findHostInstanceByFiber: B6,
20154
- findFiberByHostInstance: r || j6,
20153
+ findHostInstanceByFiber: B3,
20154
+ findFiberByHostInstance: r || j3,
20155
20155
  // React Refresh
20156
- findHostInstancesForRefresh: g6,
20157
- scheduleRefresh: v6,
20158
- scheduleRoot: y6,
20159
- setRefreshHandler: h6,
20156
+ findHostInstancesForRefresh: g3,
20157
+ scheduleRefresh: v3,
20158
+ scheduleRoot: y3,
20159
+ setRefreshHandler: h3,
20160
20160
  // Enables DevTools to append owner stacks to error messages in DEV mode.
20161
- getCurrentFiber: $6,
20161
+ getCurrentFiber: $3,
20162
20162
  // Enables DevTools to detect reconciler version rather than renderer version
20163
20163
  // which may not match for third party renderers.
20164
20164
  reconcilerVersion: OS
@@ -20198,7 +20198,7 @@ Check the render method of %s.`, Tt($n) || "Unknown"));
20198
20198
  }), AA(r);
20199
20199
  }
20200
20200
  };
20201
- function H6(e, r) {
20201
+ function H3(e, r) {
20202
20202
  if (!nb(e))
20203
20203
  throw new Error("createRoot(...): Target container is not a DOM element.");
20204
20204
  DR(e);
@@ -20215,11 +20215,11 @@ Check the render method of %s.`, Tt($n) || "Unknown"));
20215
20215
  function tb(e) {
20216
20216
  this._internalRoot = e;
20217
20217
  }
20218
- function W6(e) {
20218
+ function W3(e) {
20219
20219
  e && IT(e);
20220
20220
  }
20221
- tb.prototype.unstable_scheduleHydration = W6;
20222
- function V6(e, r, s) {
20221
+ tb.prototype.unstable_scheduleHydration = W3;
20222
+ function V3(e, r, s) {
20223
20223
  if (!nb(e))
20224
20224
  throw new Error("hydrateRoot(...): Target container is not a DOM element.");
20225
20225
  DR(e), r === void 0 && p("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");
@@ -20242,7 +20242,7 @@ Check the render method of %s.`, Tt($n) || "Unknown"));
20242
20242
  function DR(e) {
20243
20243
  e.nodeType === ma && e.tagName && e.tagName.toUpperCase() === "BODY" && p("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."), oy(e) && (e._reactRootContainer ? p("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.") : p("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."));
20244
20244
  }
20245
- var G6 = a.ReactCurrentOwner, RR;
20245
+ var G3 = a.ReactCurrentOwner, RR;
20246
20246
  RR = function(e) {
20247
20247
  if (e._reactRootContainer && e.nodeType !== er) {
20248
20248
  var r = lR(e._reactRootContainer.current);
@@ -20256,7 +20256,7 @@ Check the render method of %s.`, Tt($n) || "Unknown"));
20256
20256
  }
20257
20257
  function OR() {
20258
20258
  }
20259
- function Y6(e, r, s, c, m) {
20259
+ function Y3(e, r, s, c, m) {
20260
20260
  if (m) {
20261
20261
  if (typeof c == "function") {
20262
20262
  var y = c;
@@ -20313,14 +20313,14 @@ Check the render method of %s.`, Tt($n) || "Unknown"));
20313
20313
  }), j;
20314
20314
  }
20315
20315
  }
20316
- function q6(e, r) {
20316
+ function q3(e, r) {
20317
20317
  e !== null && typeof e != "function" && p("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.", r, e);
20318
20318
  }
20319
20319
  function rb(e, r, s, c, m) {
20320
- RR(s), q6(m === void 0 ? null : m, "render");
20320
+ RR(s), q3(m === void 0 ? null : m, "render");
20321
20321
  var y = s._reactRootContainer, T;
20322
20322
  if (!y)
20323
- T = Y6(s, r, e, m, c);
20323
+ T = Y3(s, r, e, m, c);
20324
20324
  else {
20325
20325
  if (T = y, typeof m == "function") {
20326
20326
  var E = m;
@@ -20334,18 +20334,18 @@ Check the render method of %s.`, Tt($n) || "Unknown"));
20334
20334
  return eb(T);
20335
20335
  }
20336
20336
  var kR = !1;
20337
- function Q6(e) {
20337
+ function Q3(e) {
20338
20338
  {
20339
20339
  kR || (kR = !0, p("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));
20340
- var r = G6.current;
20340
+ var r = G3.current;
20341
20341
  if (r !== null && r.stateNode !== null) {
20342
20342
  var s = r.stateNode._warnedAboutRefsInRender;
20343
20343
  s || p("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", an(r.type) || "A component"), r.stateNode._warnedAboutRefsInRender = !0;
20344
20344
  }
20345
20345
  }
20346
- return e == null ? null : e.nodeType === ma ? e : M6(e, "findDOMNode");
20346
+ return e == null ? null : e.nodeType === ma ? e : M3(e, "findDOMNode");
20347
20347
  }
20348
- function K6(e, r, s) {
20348
+ function K3(e, r, s) {
20349
20349
  if (p("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"), !Wy(r))
20350
20350
  throw new Error("Target container is not a DOM element.");
20351
20351
  {
@@ -20354,7 +20354,7 @@ Check the render method of %s.`, Tt($n) || "Unknown"));
20354
20354
  }
20355
20355
  return rb(null, e, r, !0, s);
20356
20356
  }
20357
- function X6(e, r, s) {
20357
+ function X3(e, r, s) {
20358
20358
  if (p("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"), !Wy(r))
20359
20359
  throw new Error("Target container is not a DOM element.");
20360
20360
  {
@@ -20363,7 +20363,7 @@ Check the render method of %s.`, Tt($n) || "Unknown"));
20363
20363
  }
20364
20364
  return rb(null, e, r, !1, s);
20365
20365
  }
20366
- function Z6(e, r, s, c) {
20366
+ function Z3(e, r, s, c) {
20367
20367
  if (p("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"), !Wy(s))
20368
20368
  throw new Error("Target container is not a DOM element.");
20369
20369
  if (e == null || !Xl(e))
@@ -20371,7 +20371,7 @@ Check the render method of %s.`, Tt($n) || "Unknown"));
20371
20371
  return rb(e, r, s, !1, c);
20372
20372
  }
20373
20373
  var _R = !1;
20374
- function J6(e) {
20374
+ function J3(e) {
20375
20375
  if (_R || (_R = !0, p("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")), !Wy(e))
20376
20376
  throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");
20377
20377
  {
@@ -20396,17 +20396,17 @@ Check the render method of %s.`, Tt($n) || "Unknown"));
20396
20396
  return !1;
20397
20397
  }
20398
20398
  }
20399
- xd(L6), LT(P6), Hm(I6), d0(mo), f0(Ba), (typeof Map != "function" || // $FlowIssue Flow incorrectly thinks Map has no prototype
20399
+ xd(L3), LT(P3), Hm(I3), d0(mo), f0(Ba), (typeof Map != "function" || // $FlowIssue Flow incorrectly thinks Map has no prototype
20400
20400
  Map.prototype == null || typeof Map.prototype.forEach != "function" || typeof Set != "function" || // $FlowIssue Flow incorrectly thinks Set has no prototype
20401
20401
  Set.prototype == null || typeof Set.prototype.clear != "function" || typeof Set.prototype.forEach != "function") && p("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"), zf(tP), Wu(fS, VF, gc);
20402
- function e3(e, r) {
20402
+ function e6(e, r) {
20403
20403
  var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
20404
20404
  if (!nb(r))
20405
20405
  throw new Error("Target container is not a DOM element.");
20406
- return N6(e, r, null, s);
20406
+ return N3(e, r, null, s);
20407
20407
  }
20408
- function t3(e, r, s, c) {
20409
- return Z6(e, r, s, c);
20408
+ function t6(e, r, s, c) {
20409
+ return Z3(e, r, s, c);
20410
20410
  }
20411
20411
  var IS = {
20412
20412
  usingClientEntryPoint: !1,
@@ -20414,27 +20414,27 @@ Check the render method of %s.`, Tt($n) || "Unknown"));
20414
20414
  // This is an array for better minification.
20415
20415
  Events: [Id, fh, W0, Hu, ql, fS]
20416
20416
  };
20417
- function n3(e, r) {
20418
- return IS.usingClientEntryPoint || p('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'), H6(e, r);
20417
+ function n6(e, r) {
20418
+ return IS.usingClientEntryPoint || p('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'), H3(e, r);
20419
20419
  }
20420
- function r3(e, r, s) {
20421
- return IS.usingClientEntryPoint || p('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'), V6(e, r, s);
20420
+ function r6(e, r, s) {
20421
+ return IS.usingClientEntryPoint || p('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'), V3(e, r, s);
20422
20422
  }
20423
- function a3(e) {
20423
+ function a6(e) {
20424
20424
  return U2() && p("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."), gc(e);
20425
20425
  }
20426
- var i3 = z6({
20426
+ var i6 = z3({
20427
20427
  findFiberByHostInstance: hp,
20428
20428
  bundleType: 1,
20429
20429
  version: OS,
20430
20430
  rendererPackageName: "react-dom"
20431
20431
  });
20432
- if (!i3 && Bt && window.top === window.self && (navigator.userAgent.indexOf("Chrome") > -1 && navigator.userAgent.indexOf("Edge") === -1 || navigator.userAgent.indexOf("Firefox") > -1)) {
20432
+ if (!i6 && Bt && window.top === window.self && (navigator.userAgent.indexOf("Chrome") > -1 && navigator.userAgent.indexOf("Edge") === -1 || navigator.userAgent.indexOf("Firefox") > -1)) {
20433
20433
  var NR = window.location.protocol;
20434
20434
  /^(https?|file):$/.test(NR) && console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools" + (NR === "file:" ? `
20435
20435
  You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq` : ""), "font-weight:bold");
20436
20436
  }
20437
- Co.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = IS, Co.createPortal = e3, Co.createRoot = n3, Co.findDOMNode = Q6, Co.flushSync = a3, Co.hydrate = K6, Co.hydrateRoot = r3, Co.render = X6, Co.unmountComponentAtNode = J6, Co.unstable_batchedUpdates = fS, Co.unstable_renderSubtreeIntoContainer = t3, Co.version = OS, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
20437
+ Co.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = IS, Co.createPortal = e6, Co.createRoot = n6, Co.findDOMNode = Q3, Co.flushSync = a6, Co.hydrate = K3, Co.hydrateRoot = r6, Co.render = X3, Co.unmountComponentAtNode = J3, Co.unstable_batchedUpdates = fS, Co.unstable_renderSubtreeIntoContainer = t6, Co.version = OS, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
20438
20438
  }()), Co;
20439
20439
  }
20440
20440
  function wk() {
@@ -20448,12 +20448,12 @@ function wk() {
20448
20448
  }
20449
20449
  }
20450
20450
  }
20451
- process.env.NODE_ENV === "production" ? (wk(), cE.exports = q3()) : cE.exports = Q3();
20452
- var Up = cE.exports, Oo = "top", Gs = "bottom", Ys = "right", ko = "left", ME = "auto", xg = [Oo, Gs, Ys, ko], Gh = "start", ug = "end", K3 = "clippingParents", bk = "viewport", qy = "popper", X3 = "reference", GR = /* @__PURE__ */ xg.reduce(function(t, n) {
20451
+ process.env.NODE_ENV === "production" ? (wk(), cE.exports = q6()) : cE.exports = Q6();
20452
+ var Up = cE.exports, Oo = "top", Gs = "bottom", Ys = "right", ko = "left", ME = "auto", xg = [Oo, Gs, Ys, ko], Gh = "start", ug = "end", K6 = "clippingParents", bk = "viewport", qy = "popper", X6 = "reference", GR = /* @__PURE__ */ xg.reduce(function(t, n) {
20453
20453
  return t.concat([n + "-" + Gh, n + "-" + ug]);
20454
20454
  }, []), Tk = /* @__PURE__ */ [].concat(xg, [ME]).reduce(function(t, n) {
20455
20455
  return t.concat([n, n + "-" + Gh, n + "-" + ug]);
20456
- }, []), Z3 = "beforeRead", J3 = "read", eU = "afterRead", tU = "beforeMain", nU = "main", rU = "afterMain", aU = "beforeWrite", iU = "write", oU = "afterWrite", sU = [Z3, J3, eU, tU, nU, rU, aU, iU, oU];
20456
+ }, []), Z6 = "beforeRead", J6 = "read", eU = "afterRead", tU = "beforeMain", nU = "main", rU = "afterMain", aU = "beforeWrite", iU = "write", oU = "afterWrite", sU = [Z6, J6, eU, tU, nU, rU, aU, iU, oU];
20457
20457
  function xu(t) {
20458
20458
  return t ? (t.nodeName || "").toLowerCase() : null;
20459
20459
  }
@@ -20932,7 +20932,7 @@ function Rk(t) {
20932
20932
  }
20933
20933
  function cg(t, n) {
20934
20934
  n === void 0 && (n = {});
20935
- var a = n, l = a.placement, u = l === void 0 ? t.placement : l, f = a.strategy, p = f === void 0 ? t.strategy : f, v = a.boundary, g = v === void 0 ? K3 : v, w = a.rootBoundary, x = w === void 0 ? bk : w, C = a.elementContext, D = C === void 0 ? qy : C, A = a.altBoundary, M = A === void 0 ? !1 : A, U = a.padding, B = U === void 0 ? 0 : U, X = Ck(typeof B != "number" ? B : Ak(B, xg)), I = D === qy ? X3 : qy, Q = t.rects.popper, te = t.elements[M ? I : D], ae = kU(Bp(te) ? te : te.contextElement || pf(t.elements.popper), g, x, p), ue = qh(t.elements.reference), le = Rk({
20935
+ var a = n, l = a.placement, u = l === void 0 ? t.placement : l, f = a.strategy, p = f === void 0 ? t.strategy : f, v = a.boundary, g = v === void 0 ? K6 : v, w = a.rootBoundary, x = w === void 0 ? bk : w, C = a.elementContext, D = C === void 0 ? qy : C, A = a.altBoundary, M = A === void 0 ? !1 : A, U = a.padding, B = U === void 0 ? 0 : U, X = Ck(typeof B != "number" ? B : Ak(B, xg)), I = D === qy ? X6 : qy, Q = t.rects.popper, te = t.elements[M ? I : D], ae = kU(Bp(te) ? te : te.contextElement || pf(t.elements.popper), g, x, p), ue = qh(t.elements.reference), le = Rk({
20936
20936
  reference: ue,
20937
20937
  element: Q,
20938
20938
  strategy: "absolute",
@@ -21577,7 +21577,7 @@ function p4(t, n) {
21577
21577
  return clearTimeout(X.current);
21578
21578
  };
21579
21579
  }, []);
21580
- var I = u4(f.followCursor ? tO : w, D, v), Q = I.styles, te = I.attributes, ae = V3(I, f4), ue = ae.update, le = Ok({
21580
+ var I = u4(f.followCursor ? tO : w, D, v), Q = I.styles, te = I.attributes, ae = V6(I, f4), ue = ae.update, le = Ok({
21581
21581
  visible: U,
21582
21582
  triggerRef: w,
21583
21583
  tooltipRef: D,
@@ -22273,9 +22273,9 @@ function lb(t, n = {}, a, l, u) {
22273
22273
  let D = x.props, A = D == null ? void 0 : D.className, M = typeof A == "function" ? (...X) => yE(A(...X), g.className) : yE(A, g.className), U = M ? { className: M } : {}, B = jk(x.props, rf(WS(g, ["ref"])));
22274
22274
  for (let X in C)
22275
22275
  X in B && delete C[X];
22276
- return u3(x, Object.assign({}, B, C, w, { ref: u(j4(x), w.ref) }, U));
22276
+ return u6(x, Object.assign({}, B, C, w, { ref: u(j4(x), w.ref) }, U));
22277
22277
  }
22278
- return c3(f, Object.assign({}, WS(g, ["ref"]), f !== Ws && w, f !== Ws && C), x);
22278
+ return c6(f, Object.assign({}, WS(g, ["ref"]), f !== Ws && w, f !== Ws && C), x);
22279
22279
  }
22280
22280
  function U4() {
22281
22281
  let t = jt([]), n = St((a) => {
@@ -22338,7 +22338,7 @@ function lf(...t) {
22338
22338
  }
22339
22339
  function ir(t) {
22340
22340
  var n;
22341
- return Object.assign(l3(t), { displayName: (n = t.displayName) != null ? n : t.name });
22341
+ return Object.assign(l6(t), { displayName: (n = t.displayName) != null ? n : t.name });
22342
22342
  }
22343
22343
  function rf(t) {
22344
22344
  let n = Object.assign({}, t);
@@ -22592,7 +22592,7 @@ function t_(t, n) {
22592
22592
  } };
22593
22593
  }
22594
22594
  function n_(t) {
22595
- return d3(t.subscribe, t.getSnapshot, t.getSnapshot);
22595
+ return d6(t.subscribe, t.getSnapshot, t.getSnapshot);
22596
22596
  }
22597
22597
  let cB = new uB(() => t_(() => [], { ADD(t) {
22598
22598
  return this.includes(t) ? this : [...this, t];
@@ -31961,8 +31961,12 @@ const ct = "0x0000000000000000000000000000000000000000", R7 = BigInt(
31961
31961
  "0xe9b5260d99d283ff887859c569baf8ad1bd12aac"
31962
31962
  // Synthetix ETH Yield Arbitrum
31963
31963
  ], UW = [
31964
- "0xddd6b1f34e12c0230ab23cbd4514560b24438514"
31964
+ "0xddd6b1f34e12c0230ab23cbd4514560b24438514",
31965
31965
  // Synthetix ARB Yield Arbitrum
31966
+ "0xc3198eb5102fb3335c0e911ef1da4bc07e403dd1",
31967
+ // Synthetix USD Yield Arbitrum
31968
+ "0xe9b5260d99d283ff887859c569baf8ad1bd12aac"
31969
+ // Synthetix ETH Yield Arbitrum
31966
31970
  ], VN = {
31967
31971
  "0xc1e02884af4a283ca25ab63c45360d220d69da52": "USDC",
31968
31972
  "0xc3198eb5102fb3335c0e911ef1da4bc07e403dd1": "USDC",
@@ -33220,7 +33224,7 @@ const GO = {
33220
33224
  isConnected: l
33221
33225
  };
33222
33226
  }, iE = (t, n) => n.some(({ id: a }) => a === t), Pg = () => {
33223
- const { chain: t } = fk(), { chains: n } = w3(), { switchChain: a, switchChainAsync: l } = b3(), u = yV(), f = t == null ? void 0 : t.id, p = iE(f, n), v = u && iE(u, n) ? u : n[0].id;
33227
+ const { chain: t } = fk(), { chains: n } = w6(), { switchChain: a, switchChainAsync: l } = b6(), u = yV(), f = t == null ? void 0 : t.id, p = iE(f, n), v = u && iE(u, n) ? u : n[0].id;
33224
33228
  return {
33225
33229
  chain: t,
33226
33230
  isSupported: p,
@@ -33245,7 +33249,7 @@ const GO = {
33245
33249
  return yt(() => {
33246
33250
  a(!!t);
33247
33251
  }, [t]), n;
33248
- }, wV = (t) => T3({
33252
+ }, wV = (t) => T6({
33249
33253
  ...t,
33250
33254
  query: { ...t == null ? void 0 : t.query, staleTime: EC }
33251
33255
  });
@@ -33313,7 +33317,7 @@ const EV = async () => {
33313
33317
  contractId: a,
33314
33318
  onSettled: l
33315
33319
  }) => {
33316
- const { account: u } = Fr(), { chainId: f, supportedChainId: p } = Pg(), v = x3({ chainId: f }), g = Gb({ chainId: f }), w = hg(a), x = n ?? Ar(a, f ?? p), C = hV(), { writeContract: D } = S3({
33320
+ const { account: u } = Fr(), { chainId: f, supportedChainId: p } = Pg(), v = x6({ chainId: f }), g = Gb({ chainId: f }), w = hg(a), x = n ?? Ar(a, f ?? p), C = hV(), { writeContract: D } = S6({
33317
33321
  mutation: {
33318
33322
  onSettled: l
33319
33323
  }
@@ -33463,7 +33467,7 @@ const EV = async () => {
33463
33467
  send: f && g ? U : EV,
33464
33468
  estimate: A
33465
33469
  };
33466
- }, CV = (t) => E3({
33470
+ }, CV = (t) => E6({
33467
33471
  ...t,
33468
33472
  query: {
33469
33473
  ...t == null ? void 0 : t.query,
@@ -33525,7 +33529,7 @@ const EV = async () => {
33525
33529
  queryKey: t,
33526
33530
  watch: n = !0
33527
33531
  }) => {
33528
- const a = hk(), { data: l } = C3({
33532
+ const a = hk(), { data: l } = C6({
33529
33533
  query: {
33530
33534
  refetchInterval: O7
33531
33535
  }
@@ -34535,7 +34539,7 @@ function FC(t = {}) {
34535
34539
  throw new Uh();
34536
34540
  f && (w.removeListener("chainChanged", f), f = void 0), v && (w.removeListener("disconnect", v), v = void 0), p || (p = this.onConnect.bind(this), w.on("connect", p));
34537
34541
  try {
34538
- await p3(() => (
34542
+ await p6(() => (
34539
34543
  // TODO: Remove explicit type for viem@3
34540
34544
  w.request({
34541
34545
  // `'wallet_revokePermissions'` added in `viem@2.10.3`
@@ -34587,7 +34591,7 @@ function FC(t = {}) {
34587
34591
  }
34588
34592
  throw new Uh();
34589
34593
  }
34590
- return !!(await m3(() => this.getAccounts())).length;
34594
+ return !!(await m6(() => this.getAccounts())).length;
34591
34595
  } catch {
34592
34596
  return !1;
34593
34597
  }
@@ -35677,7 +35681,7 @@ const fG = /* @__PURE__ */ ge.forwardRef(dG), MM = fG, HC = ({
35677
35681
  };
35678
35682
  return /* @__PURE__ */ R.jsxs(K$, { className: Mt("dtw-flex dtw-items-center", t), children: [
35679
35683
  /* @__PURE__ */ R.jsx(B_, { onClick: f, children: /* @__PURE__ */ R.jsx(
35680
- I3,
35684
+ I6,
35681
35685
  {
35682
35686
  className: Mt(
35683
35687
  "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))] hover:dtw-opacity-80",
@@ -35763,7 +35767,7 @@ const fG = /* @__PURE__ */ ge.forwardRef(dG), MM = fG, HC = ({
35763
35767
  /* @__PURE__ */ R.jsx("div", { className: "dtw-py-1 dtw-text-xs", children: n })
35764
35768
  ] }),
35765
35769
  /* @__PURE__ */ R.jsx(jE, { text: n, children: /* @__PURE__ */ R.jsx(a, { disabled: !0, children: /* @__PURE__ */ R.jsxs("div", { className: "dtw-flex dtw-items-center dtw-justify-center dtw-gap-2", children: [
35766
- /* @__PURE__ */ R.jsx($3, { className: "dtw-h-5" }),
35770
+ /* @__PURE__ */ R.jsx($6, { className: "dtw-h-5" }),
35767
35771
  /* @__PURE__ */ R.jsx("span", { children: t })
35768
35772
  ] }) }) })
35769
35773
  ] });
@@ -37013,7 +37017,7 @@ const eL = (t, n) => {
37013
37017
  }, JG = (t) => typeof t[0] == "string" && typeof t[1] == "bigint" && typeof t[2] == "bigint", eY = () => {
37014
37018
  const t = ft(), n = MC(), { canSpend: a } = GC(), l = ZG({
37015
37019
  debounceTime: RN
37016
- }), { data: u } = A3({
37020
+ }), { data: u } = A6({
37017
37021
  abi: Nc,
37018
37022
  address: Ar("easySwapperV2", t.chainId),
37019
37023
  functionName: ON,
@@ -37155,7 +37159,7 @@ function rL(t, n) {
37155
37159
  try {
37156
37160
  const g = RE(t);
37157
37161
  if (g.startsWith("0x0b42fd17")) {
37158
- const x = `0x${g.split("0b42fd17").at(-1)}`, C = y3(
37162
+ const x = `0x${g.split("0b42fd17").at(-1)}`, C = y6(
37159
37163
  ((l = (a = Ub.filter((A) => A.name === "Errors")) == null ? void 0 : a[0]) == null ? void 0 : l.inputs) ?? [],
37160
37164
  x
37161
37165
  ), D = {};
@@ -37168,7 +37172,7 @@ function rL(t, n) {
37168
37172
  }
37169
37173
  return D;
37170
37174
  } else {
37171
- const w = g3({
37175
+ const w = g6({
37172
37176
  abi: [...Ub, ...rY],
37173
37177
  data: RE(t)
37174
37178
  });
@@ -37190,8 +37194,8 @@ async function aY(t, n, a, l) {
37190
37194
  var p;
37191
37195
  const u = rL(t, n), f = [];
37192
37196
  for (const v in u) {
37193
- const g = h3(
37194
- v3(
37197
+ const g = h6(
37198
+ v6(
37195
37199
  await (n == null ? void 0 : n.readContract({
37196
37200
  abi: Ub,
37197
37201
  address: v,
@@ -37277,7 +37281,7 @@ const aL = {
37277
37281
  const { chainId: p, vaultAddress: v, account: g } = f;
37278
37282
  if (!g || !t)
37279
37283
  return aL;
37280
- const w = (await import("./pyth-adapter-c0ea2ffc.js")).PythAdapter, x = Vb({
37284
+ const w = (await import("./pyth-adapter-dde23792.js")).PythAdapter, x = Vb({
37281
37285
  abi: hg("synthetixV3Core"),
37282
37286
  functionName: "getPositionDebt",
37283
37287
  args: BW[v.toLowerCase()] ?? []
@@ -37299,7 +37303,7 @@ const aL = {
37299
37303
  }), sY = ({
37300
37304
  chainId: t
37301
37305
  }) => {
37302
- const [n, a] = Lt(), l = Ll()[1], u = D3({
37306
+ const [n, a] = Lt(), l = Ll()[1], u = D6({
37303
37307
  mutation: {
37304
37308
  onSettled(v, g) {
37305
37309
  if (g) {
@@ -38634,7 +38638,7 @@ const CY = /* @__PURE__ */ Tg(EY), KC = () => {
38634
38638
  }, MY = () => fv() ? /* @__PURE__ */ R.jsx(kY, {}) : /* @__PURE__ */ R.jsx(NY, {}), wg = ["deposit", "withdraw"], LY = (t) => Object.keys(Xr).some((n) => n === t), PY = ({ children: t }) => {
38635
38639
  const n = HM();
38636
38640
  let a = null;
38637
- return f3.forEach(t, (l) => {
38641
+ return f6.forEach(t, (l) => {
38638
38642
  if (ck(l)) {
38639
38643
  const u = l.props.type;
38640
38644
  LY(u) && n[u] && n[u].isOpen && (a = l);