@edgex-web/components 0.1.0-beta.25 → 0.1.0-beta.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -2,13 +2,13 @@ var Ta = Object.defineProperty;
2
2
  var Ca = (e, t, n) => t in e ? Ta(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var _e = (e, t, n) => Ca(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as j from "react";
5
- import z, { createContext as Se, useContext as he, useMemo as re, useCallback as X, forwardRef as io, createElement as An, useRef as ee, useEffect as ye, useState as te, useLayoutEffect as Bn, Fragment as ke, isValidElement as Na, cloneElement as Aa, useId as Mt, useReducer as Pa, useSyncExternalStore as $a, useImperativeHandle as rs } from "react";
5
+ import z, { createContext as Se, useContext as he, useMemo as re, useCallback as X, forwardRef as io, createElement as Pn, useRef as ee, useEffect as ye, useState as te, useLayoutEffect as Bn, Fragment as ke, isValidElement as Na, cloneElement as Pa, useId as Mt, useReducer as Aa, useSyncExternalStore as $a, useImperativeHandle as rs } from "react";
6
6
  import * as on from "react-dom";
7
7
  import os, { createPortal as is, flushSync as tn } from "react-dom";
8
8
  function La(e) {
9
9
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
10
10
  }
11
- var Ar = { exports: {} }, Qt = {};
11
+ var Pr = { exports: {} }, Qt = {};
12
12
  /**
13
13
  * @license React
14
14
  * react-jsx-runtime.production.min.js
@@ -79,14 +79,14 @@ function Ia() {
79
79
  // with.
80
80
  $.$$typeof === v || $.getModuleId !== void 0));
81
81
  }
82
- function P($, B, Y) {
82
+ function A($, B, Y) {
83
83
  var Q = $.displayName;
84
84
  if (Q)
85
85
  return Q;
86
86
  var ae = B.displayName || B.name || "";
87
87
  return ae !== "" ? Y + "(" + ae + ")" : Y;
88
88
  }
89
- function A($) {
89
+ function P($) {
90
90
  return $.displayName || "Context";
91
91
  }
92
92
  function C($) {
@@ -114,12 +114,12 @@ function Ia() {
114
114
  switch ($.$$typeof) {
115
115
  case c:
116
116
  var B = $;
117
- return A(B) + ".Consumer";
117
+ return P(B) + ".Consumer";
118
118
  case l:
119
119
  var Y = $;
120
- return A(Y._context) + ".Provider";
120
+ return P(Y._context) + ".Provider";
121
121
  case s:
122
- return P($, $.render, "ForwardRef");
122
+ return A($, $.render, "ForwardRef");
123
123
  case d:
124
124
  var Q = $.displayName || null;
125
125
  return Q !== null ? Q : C($.type) || "Memo";
@@ -210,16 +210,16 @@ function Ia() {
210
210
  ` + H + $;
211
211
  }
212
212
  }
213
- var fe = !1, Ae;
213
+ var fe = !1, Pe;
214
214
  {
215
- var Pe = typeof WeakMap == "function" ? WeakMap : Map;
216
- Ae = new Pe();
215
+ var Ae = typeof WeakMap == "function" ? WeakMap : Map;
216
+ Pe = new Ae();
217
217
  }
218
218
  function rt($, B) {
219
219
  if (!$ || fe)
220
220
  return "";
221
221
  {
222
- var Y = Ae.get($);
222
+ var Y = Pe.get($);
223
223
  if (Y !== void 0)
224
224
  return Y;
225
225
  }
@@ -274,7 +274,7 @@ function Ia() {
274
274
  if (ve--, be--, be < 0 || oe[ve] !== Ce[be]) {
275
275
  var Be = `
276
276
  ` + oe[ve].replace(" at new ", " at ");
277
- return $.displayName && Be.includes("<anonymous>") && (Be = Be.replace("<anonymous>", $.displayName)), typeof $ == "function" && Ae.set($, Be), Be;
277
+ return $.displayName && Be.includes("<anonymous>") && (Be = Be.replace("<anonymous>", $.displayName)), typeof $ == "function" && Pe.set($, Be), Be;
278
278
  }
279
279
  while (ve >= 1 && be >= 0);
280
280
  break;
@@ -284,7 +284,7 @@ function Ia() {
284
284
  fe = !1, K.current = ue, W(), Error.prepareStackTrace = ae;
285
285
  }
286
286
  var kt = $ ? $.displayName || $.name : "", Nt = kt ? Z(kt) : "";
287
- return typeof $ == "function" && Ae.set($, Nt), Nt;
287
+ return typeof $ == "function" && Pe.set($, Nt), Nt;
288
288
  }
289
289
  function Oe($, B, Y) {
290
290
  return rt($, !1);
@@ -632,8 +632,8 @@ React keys must be passed directly to JSX without using spread:
632
632
  Jt.Fragment = r, Jt.jsx = Ea, Jt.jsxs = Ra;
633
633
  }()), Jt;
634
634
  }
635
- process.env.NODE_ENV === "production" ? Ar.exports = Da() : Ar.exports = Ia();
636
- var R = Ar.exports;
635
+ process.env.NODE_ENV === "production" ? Pr.exports = Da() : Pr.exports = Ia();
636
+ var R = Pr.exports;
637
637
  const Ma = {
638
638
  // 充值相关
639
639
  deposit: {
@@ -871,18 +871,18 @@ const Ma = {
871
871
  "ru-RU": _a,
872
872
  "zh-CN": Ma,
873
873
  "zh-TW": ka
874
- }, Pr = "en-US", Fh = {
874
+ }, Ar = "en-US", Fh = {
875
875
  "en-US": "English",
876
876
  "zh-CN": "简体中文",
877
877
  "zh-TW": "繁體中文",
878
878
  "ja-JP": "日本語",
879
879
  "ru-RU": "Русский"
880
- }, Wa = (e) => ss.includes(e) ? ti[e] : ti[Pr], Ba = (e) => ss.includes(e), ls = Se(null), _h = ({
880
+ }, Wa = (e) => ss.includes(e) ? ti[e] : ti[Ar], Ba = (e) => ss.includes(e), ls = Se(null), _h = ({
881
881
  config: e,
882
882
  children: t
883
883
  }) => {
884
884
  const n = re(() => {
885
- const r = e.locale || Pr, o = Ba(r) ? r : Pr, i = Wa(o);
885
+ const r = e.locale || Ar, o = Ba(r) ? r : Ar, i = Wa(o);
886
886
  return {
887
887
  ...e,
888
888
  currentLocale: o,
@@ -910,7 +910,7 @@ function as(e) {
910
910
  suffix: ""
911
911
  }, w = "0123456789abcdefghijklmnopqrstuvwxyz", L = !0;
912
912
  function y(m, v) {
913
- var b, P, A, C, E, S, O, N, x = this;
913
+ var b, A, P, C, E, S, O, N, x = this;
914
914
  if (!(x instanceof y)) return new y(m, v);
915
915
  if (v == null) {
916
916
  if (m && m._isBigNumber === !0) {
@@ -939,14 +939,14 @@ function as(e) {
939
939
  } else
940
940
  x.s = N.charCodeAt(0) === 45 ? (N = N.slice(1), -1) : 1;
941
941
  for (b = w.slice(0, v), C = E = 0, O = N.length; E < O; E++)
942
- if (b.indexOf(P = N.charAt(E)) < 0) {
943
- if (P == ".") {
942
+ if (b.indexOf(A = N.charAt(E)) < 0) {
943
+ if (A == ".") {
944
944
  if (E > C) {
945
945
  C = O;
946
946
  continue;
947
947
  }
948
- } else if (!A && (N == N.toUpperCase() && (N = N.toLowerCase()) || N == N.toLowerCase() && (N = N.toUpperCase()))) {
949
- A = !0, E = -1, C = 0;
948
+ } else if (!P && (N == N.toUpperCase() && (N = N.toLowerCase()) || N == N.toLowerCase() && (N = N.toUpperCase()))) {
949
+ P = !0, E = -1, C = 0;
950
950
  continue;
951
951
  }
952
952
  return r(x, String(m), S, v);
@@ -1021,20 +1021,20 @@ function as(e) {
1021
1021
  }, y.isBigNumber = function(m) {
1022
1022
  if (!m || m._isBigNumber !== !0) return !1;
1023
1023
  if (!y.DEBUG) return !0;
1024
- var v, b, P = m.c, A = m.e, C = m.s;
1025
- e: if ({}.toString.call(P) == "[object Array]") {
1026
- if ((C === 1 || C === -1) && A >= -we && A <= we && A === ze(A)) {
1027
- if (P[0] === 0) {
1028
- if (A === 0 && P.length === 1) return !0;
1024
+ var v, b, A = m.c, P = m.e, C = m.s;
1025
+ e: if ({}.toString.call(A) == "[object Array]") {
1026
+ if ((C === 1 || C === -1) && P >= -we && P <= we && P === ze(P)) {
1027
+ if (A[0] === 0) {
1028
+ if (P === 0 && A.length === 1) return !0;
1029
1029
  break e;
1030
1030
  }
1031
- if (v = (A + 1) % J, v < 1 && (v += J), String(P[0]).length == v) {
1032
- for (v = 0; v < P.length; v++)
1033
- if (b = P[v], b < 0 || b >= Ze || b !== ze(b)) break e;
1031
+ if (v = (P + 1) % J, v < 1 && (v += J), String(A[0]).length == v) {
1032
+ for (v = 0; v < A.length; v++)
1033
+ if (b = A[v], b < 0 || b >= Ze || b !== ze(b)) break e;
1034
1034
  if (b !== 0) return !0;
1035
1035
  }
1036
1036
  }
1037
- } else if (P === null && A === null && (C === null || C === 1 || C === -1))
1037
+ } else if (A === null && P === null && (C === null || C === 1 || C === -1))
1038
1038
  return !0;
1039
1039
  throw Error(Le + "Invalid BigNumber: " + m);
1040
1040
  }, y.maximum = y.max = function() {
@@ -1048,15 +1048,15 @@ function as(e) {
1048
1048
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
1049
1049
  };
1050
1050
  return function(b) {
1051
- var P, A, C, E, S, O = 0, N = [], x = new y(i);
1051
+ var A, P, C, E, S, O = 0, N = [], x = new y(i);
1052
1052
  if (b == null ? b = l : pe(b, 0, we), E = lr(b / J), p)
1053
1053
  if (crypto.getRandomValues) {
1054
- for (P = crypto.getRandomValues(new Uint32Array(E *= 2)); O < E; )
1055
- S = P[O] * 131072 + (P[O + 1] >>> 11), S >= 9e15 ? (A = crypto.getRandomValues(new Uint32Array(2)), P[O] = A[0], P[O + 1] = A[1]) : (N.push(S % 1e14), O += 2);
1054
+ for (A = crypto.getRandomValues(new Uint32Array(E *= 2)); O < E; )
1055
+ S = A[O] * 131072 + (A[O + 1] >>> 11), S >= 9e15 ? (P = crypto.getRandomValues(new Uint32Array(2)), A[O] = P[0], A[O + 1] = P[1]) : (N.push(S % 1e14), O += 2);
1056
1056
  O = E / 2;
1057
1057
  } else if (crypto.randomBytes) {
1058
- for (P = crypto.randomBytes(E *= 7); O < E; )
1059
- S = (P[O] & 31) * 281474976710656 + P[O + 1] * 1099511627776 + P[O + 2] * 4294967296 + P[O + 3] * 16777216 + (P[O + 4] << 16) + (P[O + 5] << 8) + P[O + 6], S >= 9e15 ? crypto.randomBytes(7).copy(P, O) : (N.push(S % 1e14), O += 7);
1058
+ for (A = crypto.randomBytes(E *= 7); O < E; )
1059
+ S = (A[O] & 31) * 281474976710656 + A[O + 1] * 1099511627776 + A[O + 2] * 4294967296 + A[O + 3] * 16777216 + (A[O + 4] << 16) + (A[O + 5] << 8) + A[O + 6], S >= 9e15 ? crypto.randomBytes(7).copy(A, O) : (N.push(S % 1e14), O += 7);
1060
1060
  O = E / 7;
1061
1061
  } else
1062
1062
  throw p = !1, Error(Le + "crypto unavailable");
@@ -1078,28 +1078,28 @@ function as(e) {
1078
1078
  return b;
1079
1079
  }, n = /* @__PURE__ */ function() {
1080
1080
  var m = "0123456789";
1081
- function v(b, P, A, C) {
1081
+ function v(b, A, P, C) {
1082
1082
  for (var E, S = [0], O, N = 0, x = b.length; N < x; ) {
1083
- for (O = S.length; O--; S[O] *= P) ;
1083
+ for (O = S.length; O--; S[O] *= A) ;
1084
1084
  for (S[0] += C.indexOf(b.charAt(N++)), E = 0; E < S.length; E++)
1085
- S[E] > A - 1 && (S[E + 1] == null && (S[E + 1] = 0), S[E + 1] += S[E] / A | 0, S[E] %= A);
1085
+ S[E] > P - 1 && (S[E + 1] == null && (S[E + 1] = 0), S[E + 1] += S[E] / P | 0, S[E] %= P);
1086
1086
  }
1087
1087
  return S.reverse();
1088
1088
  }
1089
- return function(b, P, A, C, E) {
1089
+ return function(b, A, P, C, E) {
1090
1090
  var S, O, N, x, D, _, U, V, G = b.indexOf("."), q = l, W = c;
1091
- for (G >= 0 && (x = h, h = 0, b = b.replace(".", ""), V = new y(P), _ = V.pow(b.length - G), h = x, V.c = v(
1091
+ for (G >= 0 && (x = h, h = 0, b = b.replace(".", ""), V = new y(A), _ = V.pow(b.length - G), h = x, V.c = v(
1092
1092
  pt(Ue(_.c), _.e, "0"),
1093
1093
  10,
1094
- A,
1094
+ P,
1095
1095
  m
1096
- ), V.e = V.c.length), U = v(b, P, A, E ? (S = w, m) : (S = m, w)), N = x = U.length; U[--x] == 0; U.pop()) ;
1096
+ ), V.e = V.c.length), U = v(b, A, P, E ? (S = w, m) : (S = m, w)), N = x = U.length; U[--x] == 0; U.pop()) ;
1097
1097
  if (!U[0]) return S.charAt(0);
1098
- if (G < 0 ? --N : (_.c = U, _.e = N, _.s = C, _ = t(_, V, q, W, A), U = _.c, D = _.r, N = _.e), O = N + q + 1, G = U[O], x = A / 2, D = D || O < 0 || U[O + 1] != null, D = W < 4 ? (G != null || D) && (W == 0 || W == (_.s < 0 ? 3 : 2)) : G > x || G == x && (W == 4 || D || W == 6 && U[O - 1] & 1 || W == (_.s < 0 ? 8 : 7)), O < 1 || !U[0])
1098
+ if (G < 0 ? --N : (_.c = U, _.e = N, _.s = C, _ = t(_, V, q, W, P), U = _.c, D = _.r, N = _.e), O = N + q + 1, G = U[O], x = P / 2, D = D || O < 0 || U[O + 1] != null, D = W < 4 ? (G != null || D) && (W == 0 || W == (_.s < 0 ? 3 : 2)) : G > x || G == x && (W == 4 || D || W == 6 && U[O - 1] & 1 || W == (_.s < 0 ? 8 : 7)), O < 1 || !U[0])
1099
1099
  b = D ? pt(S.charAt(1), -q, S.charAt(0)) : S.charAt(0);
1100
1100
  else {
1101
1101
  if (U.length = O, D)
1102
- for (--A; ++U[--O] > A; )
1102
+ for (--P; ++U[--O] > P; )
1103
1103
  U[O] = 0, O || (++N, U = [1].concat(U));
1104
1104
  for (x = U.length; !U[--x]; ) ;
1105
1105
  for (G = 0, b = ""; G <= x; b += S.charAt(U[G++])) ;
@@ -1108,55 +1108,55 @@ function as(e) {
1108
1108
  return b;
1109
1109
  };
1110
1110
  }(), t = /* @__PURE__ */ function() {
1111
- function m(P, A, C) {
1112
- var E, S, O, N, x = 0, D = P.length, _ = A % wt, U = A / wt | 0;
1113
- for (P = P.slice(); D--; )
1114
- O = P[D] % wt, N = P[D] / wt | 0, E = U * O + N * _, S = _ * O + E % wt * wt + x, x = (S / C | 0) + (E / wt | 0) + U * N, P[D] = S % C;
1115
- return x && (P = [x].concat(P)), P;
1111
+ function m(A, P, C) {
1112
+ var E, S, O, N, x = 0, D = A.length, _ = P % wt, U = P / wt | 0;
1113
+ for (A = A.slice(); D--; )
1114
+ O = A[D] % wt, N = A[D] / wt | 0, E = U * O + N * _, S = _ * O + E % wt * wt + x, x = (S / C | 0) + (E / wt | 0) + U * N, A[D] = S % C;
1115
+ return x && (A = [x].concat(A)), A;
1116
1116
  }
1117
- function v(P, A, C, E) {
1117
+ function v(A, P, C, E) {
1118
1118
  var S, O;
1119
1119
  if (C != E)
1120
1120
  O = C > E ? 1 : -1;
1121
1121
  else
1122
1122
  for (S = O = 0; S < C; S++)
1123
- if (P[S] != A[S]) {
1124
- O = P[S] > A[S] ? 1 : -1;
1123
+ if (A[S] != P[S]) {
1124
+ O = A[S] > P[S] ? 1 : -1;
1125
1125
  break;
1126
1126
  }
1127
1127
  return O;
1128
1128
  }
1129
- function b(P, A, C, E) {
1129
+ function b(A, P, C, E) {
1130
1130
  for (var S = 0; C--; )
1131
- P[C] -= S, S = P[C] < A[C] ? 1 : 0, P[C] = S * E + P[C] - A[C];
1132
- for (; !P[0] && P.length > 1; P.splice(0, 1)) ;
1131
+ A[C] -= S, S = A[C] < P[C] ? 1 : 0, A[C] = S * E + A[C] - P[C];
1132
+ for (; !A[0] && A.length > 1; A.splice(0, 1)) ;
1133
1133
  }
1134
- return function(P, A, C, E, S) {
1135
- var O, N, x, D, _, U, V, G, q, W, K, H, Z, fe, Ae, Pe, rt, Oe = P.s == A.s ? 1 : -1, xe = P.c, ce = A.c;
1134
+ return function(A, P, C, E, S) {
1135
+ var O, N, x, D, _, U, V, G, q, W, K, H, Z, fe, Pe, Ae, rt, Oe = A.s == P.s ? 1 : -1, xe = A.c, ce = P.c;
1136
1136
  if (!xe || !xe[0] || !ce || !ce[0])
1137
1137
  return new y(
1138
1138
  // Return NaN if either NaN, or both Infinity or 0.
1139
- !P.s || !A.s || (xe ? ce && xe[0] == ce[0] : !ce) ? NaN : (
1139
+ !A.s || !P.s || (xe ? ce && xe[0] == ce[0] : !ce) ? NaN : (
1140
1140
  // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
1141
1141
  xe && xe[0] == 0 || !ce ? Oe * 0 : Oe / 0
1142
1142
  )
1143
1143
  );
1144
- for (G = new y(Oe), q = G.c = [], N = P.e - A.e, Oe = C + N + 1, S || (S = Ze, N = He(P.e / J) - He(A.e / J), Oe = Oe / J | 0), x = 0; ce[x] == (xe[x] || 0); x++) ;
1144
+ for (G = new y(Oe), q = G.c = [], N = A.e - P.e, Oe = C + N + 1, S || (S = Ze, N = He(A.e / J) - He(P.e / J), Oe = Oe / J | 0), x = 0; ce[x] == (xe[x] || 0); x++) ;
1145
1145
  if (ce[x] > (xe[x] || 0) && N--, Oe < 0)
1146
1146
  q.push(1), D = !0;
1147
1147
  else {
1148
- for (fe = xe.length, Pe = ce.length, x = 0, Oe += 2, _ = ze(S / (ce[0] + 1)), _ > 1 && (ce = m(ce, _, S), xe = m(xe, _, S), Pe = ce.length, fe = xe.length), Z = Pe, W = xe.slice(0, Pe), K = W.length; K < Pe; W[K++] = 0) ;
1149
- rt = ce.slice(), rt = [0].concat(rt), Ae = ce[0], ce[1] >= S / 2 && Ae++;
1148
+ for (fe = xe.length, Ae = ce.length, x = 0, Oe += 2, _ = ze(S / (ce[0] + 1)), _ > 1 && (ce = m(ce, _, S), xe = m(xe, _, S), Ae = ce.length, fe = xe.length), Z = Ae, W = xe.slice(0, Ae), K = W.length; K < Ae; W[K++] = 0) ;
1149
+ rt = ce.slice(), rt = [0].concat(rt), Pe = ce[0], ce[1] >= S / 2 && Pe++;
1150
1150
  do {
1151
- if (_ = 0, O = v(ce, W, Pe, K), O < 0) {
1152
- if (H = W[0], Pe != K && (H = H * S + (W[1] || 0)), _ = ze(H / Ae), _ > 1)
1151
+ if (_ = 0, O = v(ce, W, Ae, K), O < 0) {
1152
+ if (H = W[0], Ae != K && (H = H * S + (W[1] || 0)), _ = ze(H / Pe), _ > 1)
1153
1153
  for (_ >= S && (_ = S - 1), U = m(ce, _, S), V = U.length, K = W.length; v(U, W, V, K) == 1; )
1154
- _--, b(U, Pe < V ? rt : ce, V, S), V = U.length, O = 1;
1154
+ _--, b(U, Ae < V ? rt : ce, V, S), V = U.length, O = 1;
1155
1155
  else
1156
1156
  _ == 0 && (O = _ = 1), U = ce.slice(), V = U.length;
1157
1157
  if (V < K && (U = [0].concat(U)), b(W, U, K, S), K = W.length, O == -1)
1158
- for (; v(ce, W, Pe, K) < 1; )
1159
- _++, b(W, Pe < K ? rt : ce, K, S), K = W.length;
1158
+ for (; v(ce, W, Ae, K) < 1; )
1159
+ _++, b(W, Ae < K ? rt : ce, K, S), K = W.length;
1160
1160
  } else O === 0 && (_++, W = [0]);
1161
1161
  q[x++] = _, W[0] ? W[K++] = xe[Z] || 0 : (W = [xe[Z]], K = 1);
1162
1162
  } while ((Z++ < fe || W[0] != null) && Oe--);
@@ -1170,35 +1170,35 @@ function as(e) {
1170
1170
  return G;
1171
1171
  };
1172
1172
  }();
1173
- function T(m, v, b, P) {
1174
- var A, C, E, S, O;
1173
+ function T(m, v, b, A) {
1174
+ var P, C, E, S, O;
1175
1175
  if (b == null ? b = c : pe(b, 0, 8), !m.c) return m.toString();
1176
- if (A = m.c[0], E = m.e, v == null)
1177
- O = Ue(m.c), O = P == 1 || P == 2 && (E <= s || E >= a) ? vn(O, E) : pt(O, E, "0");
1178
- else if (m = F(new y(m), v, b), C = m.e, O = Ue(m.c), S = O.length, P == 1 || P == 2 && (v <= C || C <= s)) {
1176
+ if (P = m.c[0], E = m.e, v == null)
1177
+ O = Ue(m.c), O = A == 1 || A == 2 && (E <= s || E >= a) ? vn(O, E) : pt(O, E, "0");
1178
+ else if (m = F(new y(m), v, b), C = m.e, O = Ue(m.c), S = O.length, A == 1 || A == 2 && (v <= C || C <= s)) {
1179
1179
  for (; S < v; O += "0", S++) ;
1180
1180
  O = vn(O, C);
1181
- } else if (v -= E + (P === 2 && C > E), O = pt(O, C, "0"), C + 1 > S) {
1181
+ } else if (v -= E + (A === 2 && C > E), O = pt(O, C, "0"), C + 1 > S) {
1182
1182
  if (--v > 0) for (O += "."; v--; O += "0") ;
1183
1183
  } else if (v += C - S, v > 0)
1184
1184
  for (C + 1 == S && (O += "."); v--; O += "0") ;
1185
- return m.s < 0 && A ? "-" + O : O;
1185
+ return m.s < 0 && P ? "-" + O : O;
1186
1186
  }
1187
1187
  function I(m, v) {
1188
- for (var b, P, A = 1, C = new y(m[0]); A < m.length; A++)
1189
- P = new y(m[A]), (!P.s || (b = At(C, P)) === v || b === 0 && C.s === v) && (C = P);
1188
+ for (var b, A, P = 1, C = new y(m[0]); P < m.length; P++)
1189
+ A = new y(m[P]), (!A.s || (b = Pt(C, A)) === v || b === 0 && C.s === v) && (C = A);
1190
1190
  return C;
1191
1191
  }
1192
1192
  function M(m, v, b) {
1193
- for (var P = 1, A = v.length; !v[--A]; v.pop()) ;
1194
- for (A = v[0]; A >= 10; A /= 10, P++) ;
1195
- return (b = P + b * J - 1) > d ? m.c = m.e = null : b < u ? m.c = [m.e = 0] : (m.e = b, m.c = v), m;
1193
+ for (var A = 1, P = v.length; !v[--P]; v.pop()) ;
1194
+ for (P = v[0]; P >= 10; P /= 10, A++) ;
1195
+ return (b = A + b * J - 1) > d ? m.c = m.e = null : b < u ? m.c = [m.e = 0] : (m.e = b, m.c = v), m;
1196
1196
  }
1197
1197
  r = /* @__PURE__ */ function() {
1198
- var m = /^(-?)0([xbo])(?=\w[\w.]*$)/i, v = /^([^.]+)\.$/, b = /^\.([^.]+)$/, P = /^-?(Infinity|NaN)$/, A = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
1198
+ var m = /^(-?)0([xbo])(?=\w[\w.]*$)/i, v = /^([^.]+)\.$/, b = /^\.([^.]+)$/, A = /^-?(Infinity|NaN)$/, P = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
1199
1199
  return function(C, E, S, O) {
1200
- var N, x = S ? E : E.replace(A, "");
1201
- if (P.test(x))
1200
+ var N, x = S ? E : E.replace(P, "");
1201
+ if (A.test(x))
1202
1202
  C.s = isNaN(x) ? null : x < 0 ? -1 : 1;
1203
1203
  else {
1204
1204
  if (!S && (x = x.replace(m, function(D, _, U) {
@@ -1212,30 +1212,30 @@ function as(e) {
1212
1212
  C.c = C.e = null;
1213
1213
  };
1214
1214
  }();
1215
- function F(m, v, b, P) {
1216
- var A, C, E, S, O, N, x, D = m.c, _ = cr;
1215
+ function F(m, v, b, A) {
1216
+ var P, C, E, S, O, N, x, D = m.c, _ = cr;
1217
1217
  if (D) {
1218
1218
  e: {
1219
- for (A = 1, S = D[0]; S >= 10; S /= 10, A++) ;
1220
- if (C = v - A, C < 0)
1221
- C += J, E = v, O = D[N = 0], x = ze(O / _[A - E - 1] % 10);
1219
+ for (P = 1, S = D[0]; S >= 10; S /= 10, P++) ;
1220
+ if (C = v - P, C < 0)
1221
+ C += J, E = v, O = D[N = 0], x = ze(O / _[P - E - 1] % 10);
1222
1222
  else if (N = lr((C + 1) / J), N >= D.length)
1223
- if (P) {
1223
+ if (A) {
1224
1224
  for (; D.length <= N; D.push(0)) ;
1225
- O = x = 0, A = 1, C %= J, E = C - J + 1;
1225
+ O = x = 0, P = 1, C %= J, E = C - J + 1;
1226
1226
  } else
1227
1227
  break e;
1228
1228
  else {
1229
- for (O = S = D[N], A = 1; S >= 10; S /= 10, A++) ;
1230
- C %= J, E = C - J + A, x = E < 0 ? 0 : ze(O / _[A - E - 1] % 10);
1229
+ for (O = S = D[N], P = 1; S >= 10; S /= 10, P++) ;
1230
+ C %= J, E = C - J + P, x = E < 0 ? 0 : ze(O / _[P - E - 1] % 10);
1231
1231
  }
1232
- if (P = P || v < 0 || // Are there any non-zero digits after the rounding digit?
1232
+ if (A = A || v < 0 || // Are there any non-zero digits after the rounding digit?
1233
1233
  // The expression n % pows10[d - j - 1] returns all digits of n to the right
1234
1234
  // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
1235
- D[N + 1] != null || (E < 0 ? O : O % _[A - E - 1]), P = b < 4 ? (x || P) && (b == 0 || b == (m.s < 0 ? 3 : 2)) : x > 5 || x == 5 && (b == 4 || P || b == 6 && // Check whether the digit to the left of the rounding digit is odd.
1236
- (C > 0 ? E > 0 ? O / _[A - E] : 0 : D[N - 1]) % 10 & 1 || b == (m.s < 0 ? 8 : 7)), v < 1 || !D[0])
1237
- return D.length = 0, P ? (v -= m.e + 1, D[0] = _[(J - v % J) % J], m.e = -v || 0) : D[0] = m.e = 0, m;
1238
- if (C == 0 ? (D.length = N, S = 1, N--) : (D.length = N + 1, S = _[J - C], D[N] = E > 0 ? ze(O / _[A - E] % _[E]) * S : 0), P)
1235
+ D[N + 1] != null || (E < 0 ? O : O % _[P - E - 1]), A = b < 4 ? (x || A) && (b == 0 || b == (m.s < 0 ? 3 : 2)) : x > 5 || x == 5 && (b == 4 || A || b == 6 && // Check whether the digit to the left of the rounding digit is odd.
1236
+ (C > 0 ? E > 0 ? O / _[P - E] : 0 : D[N - 1]) % 10 & 1 || b == (m.s < 0 ? 8 : 7)), v < 1 || !D[0])
1237
+ return D.length = 0, A ? (v -= m.e + 1, D[0] = _[(J - v % J) % J], m.e = -v || 0) : D[0] = m.e = 0, m;
1238
+ if (C == 0 ? (D.length = N, S = 1, N--) : (D.length = N + 1, S = _[J - C], D[N] = E > 0 ? ze(O / _[P - E] % _[E]) * S : 0), A)
1239
1239
  for (; ; )
1240
1240
  if (N == 0) {
1241
1241
  for (C = 1, E = D[0]; E >= 10; E /= 10, C++) ;
@@ -1260,66 +1260,66 @@ function as(e) {
1260
1260
  var m = new y(this);
1261
1261
  return m.s < 0 && (m.s = 1), m;
1262
1262
  }, o.comparedTo = function(m, v) {
1263
- return At(this, new y(m, v));
1263
+ return Pt(this, new y(m, v));
1264
1264
  }, o.decimalPlaces = o.dp = function(m, v) {
1265
- var b, P, A, C = this;
1265
+ var b, A, P, C = this;
1266
1266
  if (m != null)
1267
1267
  return pe(m, 0, we), v == null ? v = c : pe(v, 0, 8), F(new y(C), m + C.e + 1, v);
1268
1268
  if (!(b = C.c)) return null;
1269
- if (P = ((A = b.length - 1) - He(this.e / J)) * J, A = b[A]) for (; A % 10 == 0; A /= 10, P--) ;
1270
- return P < 0 && (P = 0), P;
1269
+ if (A = ((P = b.length - 1) - He(this.e / J)) * J, P = b[P]) for (; P % 10 == 0; P /= 10, A--) ;
1270
+ return A < 0 && (A = 0), A;
1271
1271
  }, o.dividedBy = o.div = function(m, v) {
1272
1272
  return t(this, new y(m, v), l, c);
1273
1273
  }, o.dividedToIntegerBy = o.idiv = function(m, v) {
1274
1274
  return t(this, new y(m, v), 0, 1);
1275
1275
  }, o.exponentiatedBy = o.pow = function(m, v) {
1276
- var b, P, A, C, E, S, O, N, x, D = this;
1276
+ var b, A, P, C, E, S, O, N, x, D = this;
1277
1277
  if (m = new y(m), m.c && !m.isInteger())
1278
1278
  throw Error(Le + "Exponent not an integer: " + k(m));
1279
1279
  if (v != null && (v = new y(v)), S = m.e > 14, !D.c || !D.c[0] || D.c[0] == 1 && !D.e && D.c.length == 1 || !m.c || !m.c[0])
1280
1280
  return x = new y(Math.pow(+k(D), S ? m.s * (2 - gn(m)) : +k(m))), v ? x.mod(v) : x;
1281
1281
  if (O = m.s < 0, v) {
1282
1282
  if (v.c ? !v.c[0] : !v.s) return new y(NaN);
1283
- P = !O && D.isInteger() && v.isInteger(), P && (D = D.mod(v));
1283
+ A = !O && D.isInteger() && v.isInteger(), A && (D = D.mod(v));
1284
1284
  } else {
1285
1285
  if (m.e > 9 && (D.e > 0 || D.e < -1 || (D.e == 0 ? D.c[0] > 1 || S && D.c[1] >= 24e7 : D.c[0] < 8e13 || S && D.c[0] <= 9999975e7)))
1286
1286
  return C = D.s < 0 && gn(m) ? -0 : 0, D.e > -1 && (C = 1 / C), new y(O ? 1 / C : C);
1287
1287
  h && (C = lr(h / J + 2));
1288
1288
  }
1289
- for (S ? (b = new y(0.5), O && (m.s = 1), N = gn(m)) : (A = Math.abs(+k(m)), N = A % 2), x = new y(i); ; ) {
1289
+ for (S ? (b = new y(0.5), O && (m.s = 1), N = gn(m)) : (P = Math.abs(+k(m)), N = P % 2), x = new y(i); ; ) {
1290
1290
  if (N) {
1291
1291
  if (x = x.times(D), !x.c) break;
1292
- C ? x.c.length > C && (x.c.length = C) : P && (x = x.mod(v));
1292
+ C ? x.c.length > C && (x.c.length = C) : A && (x = x.mod(v));
1293
1293
  }
1294
- if (A) {
1295
- if (A = ze(A / 2), A === 0) break;
1296
- N = A % 2;
1294
+ if (P) {
1295
+ if (P = ze(P / 2), P === 0) break;
1296
+ N = P % 2;
1297
1297
  } else if (m = m.times(b), F(m, m.e + 1, 1), m.e > 14)
1298
1298
  N = gn(m);
1299
1299
  else {
1300
- if (A = +k(m), A === 0) break;
1301
- N = A % 2;
1300
+ if (P = +k(m), P === 0) break;
1301
+ N = P % 2;
1302
1302
  }
1303
- D = D.times(D), C ? D.c && D.c.length > C && (D.c.length = C) : P && (D = D.mod(v));
1303
+ D = D.times(D), C ? D.c && D.c.length > C && (D.c.length = C) : A && (D = D.mod(v));
1304
1304
  }
1305
- return P ? x : (O && (x = i.div(x)), v ? x.mod(v) : C ? F(x, h, c, E) : x);
1305
+ return A ? x : (O && (x = i.div(x)), v ? x.mod(v) : C ? F(x, h, c, E) : x);
1306
1306
  }, o.integerValue = function(m) {
1307
1307
  var v = new y(this);
1308
1308
  return m == null ? m = c : pe(m, 0, 8), F(v, v.e + 1, m);
1309
1309
  }, o.isEqualTo = o.eq = function(m, v) {
1310
- return At(this, new y(m, v)) === 0;
1310
+ return Pt(this, new y(m, v)) === 0;
1311
1311
  }, o.isFinite = function() {
1312
1312
  return !!this.c;
1313
1313
  }, o.isGreaterThan = o.gt = function(m, v) {
1314
- return At(this, new y(m, v)) > 0;
1314
+ return Pt(this, new y(m, v)) > 0;
1315
1315
  }, o.isGreaterThanOrEqualTo = o.gte = function(m, v) {
1316
- return (v = At(this, new y(m, v))) === 1 || v === 0;
1316
+ return (v = Pt(this, new y(m, v))) === 1 || v === 0;
1317
1317
  }, o.isInteger = function() {
1318
1318
  return !!this.c && He(this.e / J) > this.c.length - 2;
1319
1319
  }, o.isLessThan = o.lt = function(m, v) {
1320
- return At(this, new y(m, v)) < 0;
1320
+ return Pt(this, new y(m, v)) < 0;
1321
1321
  }, o.isLessThanOrEqualTo = o.lte = function(m, v) {
1322
- return (v = At(this, new y(m, v))) === -1 || v === 0;
1322
+ return (v = Pt(this, new y(m, v))) === -1 || v === 0;
1323
1323
  }, o.isNaN = function() {
1324
1324
  return !this.s;
1325
1325
  }, o.isNegative = function() {
@@ -1329,7 +1329,7 @@ function as(e) {
1329
1329
  }, o.isZero = function() {
1330
1330
  return !!this.c && this.c[0] == 0;
1331
1331
  }, o.minus = function(m, v) {
1332
- var b, P, A, C, E = this, S = E.s;
1332
+ var b, A, P, C, E = this, S = E.s;
1333
1333
  if (m = new y(m, v), v = m.s, !S || !v) return new y(NaN);
1334
1334
  if (S != v)
1335
1335
  return m.s = -v, E.plus(m);
@@ -1343,83 +1343,83 @@ function as(e) {
1343
1343
  ));
1344
1344
  }
1345
1345
  if (O = He(O), N = He(N), x = x.slice(), S = O - N) {
1346
- for ((C = S < 0) ? (S = -S, A = x) : (N = O, A = D), A.reverse(), v = S; v--; A.push(0)) ;
1347
- A.reverse();
1346
+ for ((C = S < 0) ? (S = -S, P = x) : (N = O, P = D), P.reverse(), v = S; v--; P.push(0)) ;
1347
+ P.reverse();
1348
1348
  } else
1349
- for (P = (C = (S = x.length) < (v = D.length)) ? S : v, S = v = 0; v < P; v++)
1349
+ for (A = (C = (S = x.length) < (v = D.length)) ? S : v, S = v = 0; v < A; v++)
1350
1350
  if (x[v] != D[v]) {
1351
1351
  C = x[v] < D[v];
1352
1352
  break;
1353
1353
  }
1354
- if (C && (A = x, x = D, D = A, m.s = -m.s), v = (P = D.length) - (b = x.length), v > 0) for (; v--; x[b++] = 0) ;
1355
- for (v = Ze - 1; P > S; ) {
1356
- if (x[--P] < D[P]) {
1357
- for (b = P; b && !x[--b]; x[b] = v) ;
1358
- --x[b], x[P] += Ze;
1354
+ if (C && (P = x, x = D, D = P, m.s = -m.s), v = (A = D.length) - (b = x.length), v > 0) for (; v--; x[b++] = 0) ;
1355
+ for (v = Ze - 1; A > S; ) {
1356
+ if (x[--A] < D[A]) {
1357
+ for (b = A; b && !x[--b]; x[b] = v) ;
1358
+ --x[b], x[A] += Ze;
1359
1359
  }
1360
- x[P] -= D[P];
1360
+ x[A] -= D[A];
1361
1361
  }
1362
1362
  for (; x[0] == 0; x.splice(0, 1), --N) ;
1363
1363
  return x[0] ? M(m, x, N) : (m.s = c == 3 ? -1 : 1, m.c = [m.e = 0], m);
1364
1364
  }, o.modulo = o.mod = function(m, v) {
1365
- var b, P, A = this;
1366
- return m = new y(m, v), !A.c || !m.s || m.c && !m.c[0] ? new y(NaN) : !m.c || A.c && !A.c[0] ? new y(A) : (f == 9 ? (P = m.s, m.s = 1, b = t(A, m, 0, 3), m.s = P, b.s *= P) : b = t(A, m, 0, f), m = A.minus(b.times(m)), !m.c[0] && f == 1 && (m.s = A.s), m);
1365
+ var b, A, P = this;
1366
+ return m = new y(m, v), !P.c || !m.s || m.c && !m.c[0] ? new y(NaN) : !m.c || P.c && !P.c[0] ? new y(P) : (f == 9 ? (A = m.s, m.s = 1, b = t(P, m, 0, 3), m.s = A, b.s *= A) : b = t(P, m, 0, f), m = P.minus(b.times(m)), !m.c[0] && f == 1 && (m.s = P.s), m);
1367
1367
  }, o.multipliedBy = o.times = function(m, v) {
1368
- var b, P, A, C, E, S, O, N, x, D, _, U, V, G, q, W = this, K = W.c, H = (m = new y(m, v)).c;
1368
+ var b, A, P, C, E, S, O, N, x, D, _, U, V, G, q, W = this, K = W.c, H = (m = new y(m, v)).c;
1369
1369
  if (!K || !H || !K[0] || !H[0])
1370
1370
  return !W.s || !m.s || K && !K[0] && !H || H && !H[0] && !K ? m.c = m.e = m.s = null : (m.s *= W.s, !K || !H ? m.c = m.e = null : (m.c = [0], m.e = 0)), m;
1371
- for (P = He(W.e / J) + He(m.e / J), m.s *= W.s, O = K.length, D = H.length, O < D && (V = K, K = H, H = V, A = O, O = D, D = A), A = O + D, V = []; A--; V.push(0)) ;
1372
- for (G = Ze, q = wt, A = D; --A >= 0; ) {
1373
- for (b = 0, _ = H[A] % q, U = H[A] / q | 0, E = O, C = A + E; C > A; )
1371
+ for (A = He(W.e / J) + He(m.e / J), m.s *= W.s, O = K.length, D = H.length, O < D && (V = K, K = H, H = V, P = O, O = D, D = P), P = O + D, V = []; P--; V.push(0)) ;
1372
+ for (G = Ze, q = wt, P = D; --P >= 0; ) {
1373
+ for (b = 0, _ = H[P] % q, U = H[P] / q | 0, E = O, C = P + E; C > P; )
1374
1374
  N = K[--E] % q, x = K[E] / q | 0, S = U * N + x * _, N = _ * N + S % q * q + V[C] + b, b = (N / G | 0) + (S / q | 0) + U * x, V[C--] = N % G;
1375
1375
  V[C] = b;
1376
1376
  }
1377
- return b ? ++P : V.splice(0, 1), M(m, V, P);
1377
+ return b ? ++A : V.splice(0, 1), M(m, V, A);
1378
1378
  }, o.negated = function() {
1379
1379
  var m = new y(this);
1380
1380
  return m.s = -m.s || null, m;
1381
1381
  }, o.plus = function(m, v) {
1382
- var b, P = this, A = P.s;
1383
- if (m = new y(m, v), v = m.s, !A || !v) return new y(NaN);
1384
- if (A != v)
1385
- return m.s = -v, P.minus(m);
1386
- var C = P.e / J, E = m.e / J, S = P.c, O = m.c;
1382
+ var b, A = this, P = A.s;
1383
+ if (m = new y(m, v), v = m.s, !P || !v) return new y(NaN);
1384
+ if (P != v)
1385
+ return m.s = -v, A.minus(m);
1386
+ var C = A.e / J, E = m.e / J, S = A.c, O = m.c;
1387
1387
  if (!C || !E) {
1388
- if (!S || !O) return new y(A / 0);
1389
- if (!S[0] || !O[0]) return O[0] ? m : new y(S[0] ? P : A * 0);
1388
+ if (!S || !O) return new y(P / 0);
1389
+ if (!S[0] || !O[0]) return O[0] ? m : new y(S[0] ? A : P * 0);
1390
1390
  }
1391
- if (C = He(C), E = He(E), S = S.slice(), A = C - E) {
1392
- for (A > 0 ? (E = C, b = O) : (A = -A, b = S), b.reverse(); A--; b.push(0)) ;
1391
+ if (C = He(C), E = He(E), S = S.slice(), P = C - E) {
1392
+ for (P > 0 ? (E = C, b = O) : (P = -P, b = S), b.reverse(); P--; b.push(0)) ;
1393
1393
  b.reverse();
1394
1394
  }
1395
- for (A = S.length, v = O.length, A - v < 0 && (b = O, O = S, S = b, v = A), A = 0; v; )
1396
- A = (S[--v] = S[v] + O[v] + A) / Ze | 0, S[v] = Ze === S[v] ? 0 : S[v] % Ze;
1397
- return A && (S = [A].concat(S), ++E), M(m, S, E);
1395
+ for (P = S.length, v = O.length, P - v < 0 && (b = O, O = S, S = b, v = P), P = 0; v; )
1396
+ P = (S[--v] = S[v] + O[v] + P) / Ze | 0, S[v] = Ze === S[v] ? 0 : S[v] % Ze;
1397
+ return P && (S = [P].concat(S), ++E), M(m, S, E);
1398
1398
  }, o.precision = o.sd = function(m, v) {
1399
- var b, P, A, C = this;
1399
+ var b, A, P, C = this;
1400
1400
  if (m != null && m !== !!m)
1401
1401
  return pe(m, 1, we), v == null ? v = c : pe(v, 0, 8), F(new y(C), m, v);
1402
1402
  if (!(b = C.c)) return null;
1403
- if (A = b.length - 1, P = A * J + 1, A = b[A]) {
1404
- for (; A % 10 == 0; A /= 10, P--) ;
1405
- for (A = b[0]; A >= 10; A /= 10, P++) ;
1403
+ if (P = b.length - 1, A = P * J + 1, P = b[P]) {
1404
+ for (; P % 10 == 0; P /= 10, A--) ;
1405
+ for (P = b[0]; P >= 10; P /= 10, A++) ;
1406
1406
  }
1407
- return m && C.e + 1 > P && (P = C.e + 1), P;
1407
+ return m && C.e + 1 > A && (A = C.e + 1), A;
1408
1408
  }, o.shiftedBy = function(m) {
1409
1409
  return pe(m, -ar, ar), this.times("1e" + m);
1410
1410
  }, o.squareRoot = o.sqrt = function() {
1411
- var m, v, b, P, A, C = this, E = C.c, S = C.s, O = C.e, N = l + 4, x = new y("0.5");
1411
+ var m, v, b, A, P, C = this, E = C.c, S = C.s, O = C.e, N = l + 4, x = new y("0.5");
1412
1412
  if (S !== 1 || !E || !E[0])
1413
1413
  return new y(!S || S < 0 && (!E || E[0]) ? NaN : E ? C : 1 / 0);
1414
1414
  if (S = Math.sqrt(+k(C)), S == 0 || S == 1 / 0 ? (v = Ue(E), (v.length + O) % 2 == 0 && (v += "0"), S = Math.sqrt(+v), O = He((O + 1) / 2) - (O < 0 || O % 2), S == 1 / 0 ? v = "5e" + O : (v = S.toExponential(), v = v.slice(0, v.indexOf("e") + 1) + O), b = new y(v)) : b = new y(S + ""), b.c[0]) {
1415
1415
  for (O = b.e, S = O + N, S < 3 && (S = 0); ; )
1416
- if (A = b, b = x.times(A.plus(t(C, A, N, 1))), Ue(A.c).slice(0, S) === (v = Ue(b.c)).slice(0, S))
1417
- if (b.e < O && --S, v = v.slice(S - 3, S + 1), v == "9999" || !P && v == "4999") {
1418
- if (!P && (F(A, A.e + l + 2, 0), A.times(A).eq(C))) {
1419
- b = A;
1416
+ if (P = b, b = x.times(P.plus(t(C, P, N, 1))), Ue(P.c).slice(0, S) === (v = Ue(b.c)).slice(0, S))
1417
+ if (b.e < O && --S, v = v.slice(S - 3, S + 1), v == "9999" || !A && v == "4999") {
1418
+ if (!A && (F(P, P.e + l + 2, 0), P.times(P).eq(C))) {
1419
+ b = P;
1420
1420
  break;
1421
1421
  }
1422
- N += 4, S += 4, P = 1;
1422
+ N += 4, S += 4, A = 1;
1423
1423
  } else {
1424
1424
  (!+v || !+v.slice(1) && v.charAt(0) == "5") && (F(b, b.e + l + 2, 1), m = !b.times(b).eq(C));
1425
1425
  break;
@@ -1431,40 +1431,40 @@ function as(e) {
1431
1431
  }, o.toFixed = function(m, v) {
1432
1432
  return m != null && (pe(m, 0, we), m = m + this.e + 1), T(this, m, v);
1433
1433
  }, o.toFormat = function(m, v, b) {
1434
- var P, A = this;
1434
+ var A, P = this;
1435
1435
  if (b == null)
1436
1436
  m != null && v && typeof v == "object" ? (b = v, v = null) : m && typeof m == "object" ? (b = m, m = v = null) : b = g;
1437
1437
  else if (typeof b != "object")
1438
1438
  throw Error(Le + "Argument not an object: " + b);
1439
- if (P = A.toFixed(m, v), A.c) {
1440
- var C, E = P.split("."), S = +b.groupSize, O = +b.secondaryGroupSize, N = b.groupSeparator || "", x = E[0], D = E[1], _ = A.s < 0, U = _ ? x.slice(1) : x, V = U.length;
1439
+ if (A = P.toFixed(m, v), P.c) {
1440
+ var C, E = A.split("."), S = +b.groupSize, O = +b.secondaryGroupSize, N = b.groupSeparator || "", x = E[0], D = E[1], _ = P.s < 0, U = _ ? x.slice(1) : x, V = U.length;
1441
1441
  if (O && (C = S, S = O, O = C, V -= C), S > 0 && V > 0) {
1442
1442
  for (C = V % S || S, x = U.substr(0, C); C < V; C += S) x += N + U.substr(C, S);
1443
1443
  O > 0 && (x += N + U.slice(C)), _ && (x = "-" + x);
1444
1444
  }
1445
- P = D ? x + (b.decimalSeparator || "") + ((O = +b.fractionGroupSize) ? D.replace(
1445
+ A = D ? x + (b.decimalSeparator || "") + ((O = +b.fractionGroupSize) ? D.replace(
1446
1446
  new RegExp("\\d{" + O + "}\\B", "g"),
1447
1447
  "$&" + (b.fractionGroupSeparator || "")
1448
1448
  ) : D) : x;
1449
1449
  }
1450
- return (b.prefix || "") + P + (b.suffix || "");
1450
+ return (b.prefix || "") + A + (b.suffix || "");
1451
1451
  }, o.toFraction = function(m) {
1452
- var v, b, P, A, C, E, S, O, N, x, D, _, U = this, V = U.c;
1452
+ var v, b, A, P, C, E, S, O, N, x, D, _, U = this, V = U.c;
1453
1453
  if (m != null && (S = new y(m), !S.isInteger() && (S.c || S.s !== 1) || S.lt(i)))
1454
1454
  throw Error(Le + "Argument " + (S.isInteger() ? "out of range: " : "not an integer: ") + k(S));
1455
1455
  if (!V) return new y(U);
1456
- for (v = new y(i), N = b = new y(i), P = O = new y(i), _ = Ue(V), C = v.e = _.length - U.e - 1, v.c[0] = cr[(E = C % J) < 0 ? J + E : E], m = !m || S.comparedTo(v) > 0 ? C > 0 ? v : N : S, E = d, d = 1 / 0, S = new y(_), O.c[0] = 0; x = t(S, v, 0, 1), A = b.plus(x.times(P)), A.comparedTo(m) != 1; )
1457
- b = P, P = A, N = O.plus(x.times(A = N)), O = A, v = S.minus(x.times(A = v)), S = A;
1458
- return A = t(m.minus(b), P, 0, 1), O = O.plus(A.times(N)), b = b.plus(A.times(P)), O.s = N.s = U.s, C = C * 2, D = t(N, P, C, c).minus(U).abs().comparedTo(
1456
+ for (v = new y(i), N = b = new y(i), A = O = new y(i), _ = Ue(V), C = v.e = _.length - U.e - 1, v.c[0] = cr[(E = C % J) < 0 ? J + E : E], m = !m || S.comparedTo(v) > 0 ? C > 0 ? v : N : S, E = d, d = 1 / 0, S = new y(_), O.c[0] = 0; x = t(S, v, 0, 1), P = b.plus(x.times(A)), P.comparedTo(m) != 1; )
1457
+ b = A, A = P, N = O.plus(x.times(P = N)), O = P, v = S.minus(x.times(P = v)), S = P;
1458
+ return P = t(m.minus(b), A, 0, 1), O = O.plus(P.times(N)), b = b.plus(P.times(A)), O.s = N.s = U.s, C = C * 2, D = t(N, A, C, c).minus(U).abs().comparedTo(
1459
1459
  t(O, b, C, c).minus(U).abs()
1460
- ) < 1 ? [N, P] : [O, b], d = E, D;
1460
+ ) < 1 ? [N, A] : [O, b], d = E, D;
1461
1461
  }, o.toNumber = function() {
1462
1462
  return +k(this);
1463
1463
  }, o.toPrecision = function(m, v) {
1464
1464
  return m != null && pe(m, 1, we), T(this, m, v, 2);
1465
1465
  }, o.toString = function(m) {
1466
- var v, b = this, P = b.s, A = b.e;
1467
- return A === null ? P ? (v = "Infinity", P < 0 && (v = "-" + v)) : v = "NaN" : (m == null ? v = A <= s || A >= a ? vn(Ue(b.c), A) : pt(Ue(b.c), A, "0") : m === 10 && L ? (b = F(new y(b), l + A + 1, c), v = pt(Ue(b.c), b.e, "0")) : (pe(m, 2, w.length, "Base"), v = n(pt(Ue(b.c), A, "0"), 10, m, P, !0)), P < 0 && b.c[0] && (v = "-" + v)), v;
1466
+ var v, b = this, A = b.s, P = b.e;
1467
+ return P === null ? A ? (v = "Infinity", A < 0 && (v = "-" + v)) : v = "NaN" : (m == null ? v = P <= s || P >= a ? vn(Ue(b.c), P) : pt(Ue(b.c), P, "0") : m === 10 && L ? (b = F(new y(b), l + P + 1, c), v = pt(Ue(b.c), b.e, "0")) : (pe(m, 2, w.length, "Base"), v = n(pt(Ue(b.c), P, "0"), 10, m, A, !0)), A < 0 && b.c[0] && (v = "-" + v)), v;
1468
1468
  }, o.valueOf = o.toJSON = function() {
1469
1469
  return k(this);
1470
1470
  }, o._isBigNumber = !0, o[Symbol.toStringTag] = "BigNumber", o[Symbol.for("nodejs.util.inspect.custom")] = o.valueOf, e != null && y.set(e), y;
@@ -1481,7 +1481,7 @@ function Ue(e) {
1481
1481
  for (o = i.length; i.charCodeAt(--o) === 48; ) ;
1482
1482
  return i.slice(0, o + 1 || 1);
1483
1483
  }
1484
- function At(e, t) {
1484
+ function Pt(e, t) {
1485
1485
  var n, r, o = e.c, i = t.c, l = e.s, c = t.s, s = e.e, a = t.e;
1486
1486
  if (!l || !c) return null;
1487
1487
  if (n = o && !o[0], r = i && !i[0], n || r) return n ? r ? 0 : -c : l;
@@ -1636,7 +1636,7 @@ const Ka = io(
1636
1636
  children: i,
1637
1637
  iconNode: l,
1638
1638
  ...c
1639
- }, s) => An(
1639
+ }, s) => Pn(
1640
1640
  "svg",
1641
1641
  {
1642
1642
  ref: s,
@@ -1650,7 +1650,7 @@ const Ka = io(
1650
1650
  ...c
1651
1651
  },
1652
1652
  [
1653
- ...l.map(([a, u]) => An(a, u)),
1653
+ ...l.map(([a, u]) => Pn(a, u)),
1654
1654
  ...Array.isArray(i) ? i : [i]
1655
1655
  ]
1656
1656
  )
@@ -1663,7 +1663,7 @@ const Ka = io(
1663
1663
  */
1664
1664
  const qa = (e, t) => {
1665
1665
  const n = io(
1666
- ({ className: r, ...o }, i) => An(Ka, {
1666
+ ({ className: r, ...o }, i) => Pn(Ka, {
1667
1667
  ref: i,
1668
1668
  iconNode: t,
1669
1669
  className: cs(
@@ -1715,8 +1715,8 @@ class Qa extends fs {
1715
1715
  return "mpc";
1716
1716
  }
1717
1717
  getDisplayAddress() {
1718
- var n, r;
1719
- return ((n = this.smartWallet) == null ? void 0 : n.address) || ((r = this.currentActiveAccount) == null ? void 0 : r.ethAddress) || "";
1718
+ var n;
1719
+ return ((n = this.smartWallet) == null ? void 0 : n.address) || "";
1720
1720
  }
1721
1721
  isApprovalRequired() {
1722
1722
  return !1;
@@ -1886,7 +1886,7 @@ function ec(e) {
1886
1886
  const Ct = (e) => {
1887
1887
  var t;
1888
1888
  return (t = e == null ? void 0 : e.ownerDocument) !== null && t !== void 0 ? t : document;
1889
- }, Pt = (e) => e && "window" in e && e.window === e ? e : Ct(e).defaultView || window;
1889
+ }, At = (e) => e && "window" in e && e.window === e ? e : Ct(e).defaultView || window;
1890
1890
  function tc(e) {
1891
1891
  return e !== null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number";
1892
1892
  }
@@ -2061,7 +2061,7 @@ function co(e, t) {
2061
2061
  function pc(e) {
2062
2062
  return !(e.metaKey || !ao() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
2063
2063
  }
2064
- function Pn(e) {
2064
+ function An(e) {
2065
2065
  Lt = !0, pc(e) && (un = "keyboard", co("keyboard", e));
2066
2066
  }
2067
2067
  function Ye(e) {
@@ -2077,12 +2077,12 @@ function ws() {
2077
2077
  Lt = !1, Dr = !0;
2078
2078
  }
2079
2079
  function Ir(e) {
2080
- if (typeof window > "u" || typeof document > "u" || nn.get(Pt(e))) return;
2081
- const t = Pt(e), n = Ct(e);
2080
+ if (typeof window > "u" || typeof document > "u" || nn.get(At(e))) return;
2081
+ const t = At(e), n = Ct(e);
2082
2082
  let r = t.HTMLElement.prototype.focus;
2083
2083
  t.HTMLElement.prototype.focus = function() {
2084
2084
  Lt = !0, r.apply(this, arguments);
2085
- }, n.addEventListener("keydown", Pn, !0), n.addEventListener("keyup", Pn, !0), n.addEventListener("click", xs, !0), t.addEventListener("focus", ys, !0), t.addEventListener("blur", ws, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", Ye, !0), n.addEventListener("pointermove", Ye, !0), n.addEventListener("pointerup", Ye, !0)) : process.env.NODE_ENV === "test" && (n.addEventListener("mousedown", Ye, !0), n.addEventListener("mousemove", Ye, !0), n.addEventListener("mouseup", Ye, !0)), t.addEventListener("beforeunload", () => {
2085
+ }, n.addEventListener("keydown", An, !0), n.addEventListener("keyup", An, !0), n.addEventListener("click", xs, !0), t.addEventListener("focus", ys, !0), t.addEventListener("blur", ws, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", Ye, !0), n.addEventListener("pointermove", Ye, !0), n.addEventListener("pointerup", Ye, !0)) : process.env.NODE_ENV === "test" && (n.addEventListener("mousedown", Ye, !0), n.addEventListener("mousemove", Ye, !0), n.addEventListener("mouseup", Ye, !0)), t.addEventListener("beforeunload", () => {
2086
2086
  Es(e);
2087
2087
  }, {
2088
2088
  once: !0
@@ -2091,8 +2091,8 @@ function Ir(e) {
2091
2091
  });
2092
2092
  }
2093
2093
  const Es = (e, t) => {
2094
- const n = Pt(e), r = Ct(e);
2095
- t && r.removeEventListener("DOMContentLoaded", t), nn.has(n) && (n.HTMLElement.prototype.focus = nn.get(n).focus, r.removeEventListener("keydown", Pn, !0), r.removeEventListener("keyup", Pn, !0), r.removeEventListener("click", xs, !0), n.removeEventListener("focus", ys, !0), n.removeEventListener("blur", ws, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", Ye, !0), r.removeEventListener("pointermove", Ye, !0), r.removeEventListener("pointerup", Ye, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", Ye, !0), r.removeEventListener("mousemove", Ye, !0), r.removeEventListener("mouseup", Ye, !0)), nn.delete(n));
2094
+ const n = At(e), r = Ct(e);
2095
+ t && r.removeEventListener("DOMContentLoaded", t), nn.has(n) && (n.HTMLElement.prototype.focus = nn.get(n).focus, r.removeEventListener("keydown", An, !0), r.removeEventListener("keyup", An, !0), r.removeEventListener("click", xs, !0), n.removeEventListener("focus", ys, !0), n.removeEventListener("blur", ws, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", Ye, !0), r.removeEventListener("pointermove", Ye, !0), r.removeEventListener("pointerup", Ye, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", Ye, !0), r.removeEventListener("mousemove", Ye, !0), r.removeEventListener("mouseup", Ye, !0)), nn.delete(n));
2096
2096
  };
2097
2097
  function mc(e) {
2098
2098
  const t = Ct(e);
@@ -2118,7 +2118,7 @@ const hc = /* @__PURE__ */ new Set([
2118
2118
  ]);
2119
2119
  function gc(e, t, n) {
2120
2120
  let r = Ct(n == null ? void 0 : n.target);
2121
- const o = typeof window < "u" ? Pt(n == null ? void 0 : n.target).HTMLInputElement : HTMLInputElement, i = typeof window < "u" ? Pt(n == null ? void 0 : n.target).HTMLTextAreaElement : HTMLTextAreaElement, l = typeof window < "u" ? Pt(n == null ? void 0 : n.target).HTMLElement : HTMLElement, c = typeof window < "u" ? Pt(n == null ? void 0 : n.target).KeyboardEvent : KeyboardEvent;
2121
+ const o = typeof window < "u" ? At(n == null ? void 0 : n.target).HTMLInputElement : HTMLInputElement, i = typeof window < "u" ? At(n == null ? void 0 : n.target).HTMLTextAreaElement : HTMLTextAreaElement, l = typeof window < "u" ? At(n == null ? void 0 : n.target).HTMLElement : HTMLElement, c = typeof window < "u" ? At(n == null ? void 0 : n.target).KeyboardEvent : KeyboardEvent;
2122
2122
  return e = e || r.activeElement instanceof o && !hc.has(r.activeElement.type) || r.activeElement instanceof i || r.activeElement instanceof l && r.activeElement.isContentEditable, !(e && t === "keyboard" && n instanceof c && !dc[n.key]);
2123
2123
  }
2124
2124
  function vc(e, t, n) {
@@ -2427,9 +2427,9 @@ function Nc({ disabled: e = !1 } = {}) {
2427
2427
  });
2428
2428
  return { pressed: n, pressProps: e ? {} : { onPointerDown: l, onPointerUp: i, onClick: i } };
2429
2429
  }
2430
- let Ac = Se(void 0);
2430
+ let Pc = Se(void 0);
2431
2431
  function uo() {
2432
- return he(Ac);
2432
+ return he(Pc);
2433
2433
  }
2434
2434
  function jr(...e) {
2435
2435
  return Array.from(new Set(e.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
@@ -2445,9 +2445,9 @@ function Xe(e, t, ...n) {
2445
2445
  var Ln = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Ln || {}), Rt = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Rt || {});
2446
2446
  function We() {
2447
2447
  let e = $c();
2448
- return X((t) => Pc({ mergeRefs: e, ...t }), [e]);
2448
+ return X((t) => Ac({ mergeRefs: e, ...t }), [e]);
2449
2449
  }
2450
- function Pc({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: i = !0, name: l, mergeRefs: c }) {
2450
+ function Ac({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: i = !0, name: l, mergeRefs: c }) {
2451
2451
  c = c ?? Lc;
2452
2452
  let s = Os(t, e);
2453
2453
  if (i) return xn(s, n, r, l, c);
@@ -2486,9 +2486,9 @@ function xn(e, t = {}, n, r, o) {
2486
2486
  } else {
2487
2487
  let p = u.props, f = p == null ? void 0 : p.className, h = typeof f == "function" ? (...L) => jr(f(...L), s.className) : jr(f, s.className), g = h ? { className: h } : {}, w = Os(u.props, Et(dr(s, ["ref"])));
2488
2488
  for (let L in d) L in w && delete d[L];
2489
- return Aa(u, Object.assign({}, w, d, a, { ref: o(Dc(u), a.ref) }, g));
2489
+ return Pa(u, Object.assign({}, w, d, a, { ref: o(Dc(u), a.ref) }, g));
2490
2490
  }
2491
- return An(i, Object.assign({}, dr(s, ["ref"]), i !== ke && a, i !== ke && d), u);
2491
+ return Pn(i, Object.assign({}, dr(s, ["ref"]), i !== ke && a, i !== ke && d), u);
2492
2492
  }
2493
2493
  function $c() {
2494
2494
  let e = ee([]), t = X((n) => {
@@ -2558,14 +2558,14 @@ function Mc(e) {
2558
2558
  return t;
2559
2559
  }
2560
2560
  function Cs(e = {}, t = null, n = []) {
2561
- for (let [r, o] of Object.entries(e)) As(n, Ns(t, r), o);
2561
+ for (let [r, o] of Object.entries(e)) Ps(n, Ns(t, r), o);
2562
2562
  return n;
2563
2563
  }
2564
2564
  function Ns(e, t) {
2565
2565
  return e ? e + "[" + t + "]" : t;
2566
2566
  }
2567
- function As(e, t, n) {
2568
- if (Array.isArray(n)) for (let [r, o] of n.entries()) As(e, Ns(t, r.toString()), o);
2567
+ function Ps(e, t, n) {
2568
+ if (Array.isArray(n)) for (let [r, o] of n.entries()) Ps(e, Ns(t, r.toString()), o);
2569
2569
  else n instanceof Date ? e.push([t, n.toISOString()]) : typeof n == "boolean" ? e.push([t, n ? "1" : "0"]) : typeof n == "string" ? e.push([t, n]) : typeof n == "number" ? e.push([t, `${n}`]) : n == null ? e.push([t, ""]) : Cs(n, t, e);
2570
2570
  }
2571
2571
  function jc(e) {
@@ -2586,7 +2586,7 @@ function _c(e, t) {
2586
2586
  let { features: r = 1, ...o } = e, i = { ref: t, "aria-hidden": (r & 2) === 2 ? !0 : (n = o["aria-hidden"]) != null ? n : void 0, hidden: (r & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
2587
2587
  return We()({ ourProps: i, theirProps: o, slot: {}, defaultTag: Fc, name: "Hidden" });
2588
2588
  }
2589
- let Ps = Fe(_c), kc = Se(null);
2589
+ let As = Fe(_c), kc = Se(null);
2590
2590
  function Wc({ children: e }) {
2591
2591
  let t = he(kc);
2592
2592
  if (!t) return z.createElement(z.Fragment, null, e);
@@ -2597,7 +2597,7 @@ function Bc({ data: e, form: t, disabled: n, onReset: r, overrides: o }) {
2597
2597
  let [i, l] = te(null), c = Gt();
2598
2598
  return ye(() => {
2599
2599
  if (r && i) return c.addEventListener(i, "reset", r);
2600
- }, [i, t, r]), z.createElement(Wc, null, z.createElement(Uc, { setForm: l, formId: t }), Cs(e).map(([s, a]) => z.createElement(Ps, { features: fo.Hidden, ...Et({ key: s, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: t, disabled: n, name: s, value: a, ...o }) })));
2600
+ }, [i, t, r]), z.createElement(Wc, null, z.createElement(Uc, { setForm: l, formId: t }), Cs(e).map(([s, a]) => z.createElement(As, { features: fo.Hidden, ...Et({ key: s, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: t, disabled: n, name: s, value: a, ...o }) })));
2601
2601
  }
2602
2602
  function Uc({ setForm: e, formId: t }) {
2603
2603
  return ye(() => {
@@ -2605,7 +2605,7 @@ function Uc({ setForm: e, formId: t }) {
2605
2605
  let n = document.getElementById(t);
2606
2606
  n && e(n);
2607
2607
  }
2608
- }, [e, t]), t ? null : z.createElement(Ps, { features: fo.Hidden, as: "input", type: "hidden", hidden: !0, readOnly: !0, ref: (n) => {
2608
+ }, [e, t]), t ? null : z.createElement(As, { features: fo.Hidden, as: "input", type: "hidden", hidden: !0, readOnly: !0, ref: (n) => {
2609
2609
  if (!n) return;
2610
2610
  let r = n.closest("form");
2611
2611
  r && e(r);
@@ -2765,7 +2765,7 @@ function au(e) {
2765
2765
  return { width: t, height: n };
2766
2766
  }
2767
2767
  function cu(e, t = !1) {
2768
- let [n, r] = Pa(() => ({}), {}), o = re(() => au(e), [e, n]);
2768
+ let [n, r] = Aa(() => ({}), {}), o = re(() => au(e), [e, n]);
2769
2769
  return de(() => {
2770
2770
  if (!e) return;
2771
2771
  let i = new ResizeObserver(r);
@@ -3095,7 +3095,7 @@ typeof window < "u" && typeof document < "u" && (document.addEventListener("keyd
3095
3095
  e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
3096
3096
  }, !0));
3097
3097
  let Nu = ["textarea", "input"].join(",");
3098
- function Au(e) {
3098
+ function Pu(e) {
3099
3099
  var t, n;
3100
3100
  return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e, Nu)) != null ? n : !1;
3101
3101
  }
@@ -3107,7 +3107,7 @@ function Ys(e, t = (n) => n) {
3107
3107
  return l & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : l & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
3108
3108
  });
3109
3109
  }
3110
- function Pu(e, t) {
3110
+ function Au(e, t) {
3111
3111
  return $u(Hs(), t, { relativeTo: e });
3112
3112
  }
3113
3113
  function $u(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
@@ -3134,7 +3134,7 @@ function $u(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] }
3134
3134
  }
3135
3135
  p = l[f], p == null || p.focus(a), u += c;
3136
3136
  } while (p !== i.activeElement);
3137
- return t & 6 && Au(p) && p.select(), 2;
3137
+ return t & 6 && Pu(p) && p.select(), 2;
3138
3138
  }
3139
3139
  function Ks() {
3140
3140
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
@@ -3722,7 +3722,7 @@ var yf = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3722
3722
  for (var r = 0; r < t.length; r++)
3723
3723
  if (t[r].checked && t[r].form === n)
3724
3724
  return t[r];
3725
- }, Af = function(t) {
3725
+ }, Pf = function(t) {
3726
3726
  if (!t.name)
3727
3727
  return !0;
3728
3728
  var n = t.form || Mn(t), r = function(c) {
@@ -3738,10 +3738,10 @@ var yf = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3738
3738
  }
3739
3739
  var i = Nf(o, t.form);
3740
3740
  return !i || i === t;
3741
- }, Pf = function(t) {
3741
+ }, Af = function(t) {
3742
3742
  return rl(t) && t.type === "radio";
3743
3743
  }, $f = function(t) {
3744
- return Pf(t) && !Af(t);
3744
+ return Af(t) && !Pf(t);
3745
3745
  }, Lf = function(t) {
3746
3746
  var n, r = t && Mn(t), o = (n = r) === null || n === void 0 ? void 0 : n.host, i = !1;
3747
3747
  if (r && r !== t) {
@@ -4006,7 +4006,7 @@ const kf = (e) => ({
4006
4006
  }, f = yo(o), h = xo(f), g = await l.getDimensions(a), w = f === "y", L = w ? "top" : "left", y = w ? "bottom" : "right", T = w ? "clientHeight" : "clientWidth", I = i.reference[h] + i.reference[f] - p[f] - i.floating[h], M = p[f] - i.reference[f], F = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(a));
4007
4007
  let k = F ? F[T] : 0;
4008
4008
  (!k || !await (l.isElement == null ? void 0 : l.isElement(F))) && (k = c.floating[T] || i.floating[h]);
4009
- const m = I / 2 - M / 2, v = k / 2 - g[h] / 2 - 1, b = bt(d[L], v), P = bt(d[y], v), A = b, C = k - g[h] - P, E = k / 2 - g[h] / 2 + m, S = zr(A, E, C), O = !s.arrow && Kt(o) != null && E !== S && i.reference[h] / 2 - (E < A ? b : P) - g[h] / 2 < 0, N = O ? E < A ? E - A : E - C : 0;
4009
+ const m = I / 2 - M / 2, v = k / 2 - g[h] / 2 - 1, b = bt(d[L], v), A = bt(d[y], v), P = b, C = k - g[h] - A, E = k / 2 - g[h] / 2 + m, S = zr(P, E, C), O = !s.arrow && Kt(o) != null && E !== S && i.reference[h] / 2 - (E < P ? b : A) - g[h] / 2 < 0, N = O ? E < P ? E - P : E - C : 0;
4010
4010
  return {
4011
4011
  [f]: p[f] + N,
4012
4012
  data: {
@@ -4055,8 +4055,8 @@ const kf = (e) => ({
4055
4055
  placement: o,
4056
4056
  overflows: v
4057
4057
  }], !v.every((E) => E <= 0)) {
4058
- var P, A;
4059
- const E = (((P = i.flip) == null ? void 0 : P.index) || 0) + 1, S = k[E];
4058
+ var A, P;
4059
+ const E = (((A = i.flip) == null ? void 0 : A.index) || 0) + 1, S = k[E];
4060
4060
  if (S && (!(d === "alignment" ? y !== ht(S) : !1) || // We leave the current main axis only if every placement on that axis
4061
4061
  // overflows the main axis.
4062
4062
  b.every((x) => ht(x.placement) === y ? x.overflows[0] > 0 : !0)))
@@ -4069,7 +4069,7 @@ const kf = (e) => ({
4069
4069
  placement: S
4070
4070
  }
4071
4071
  };
4072
- let O = (A = b.filter((N) => N.overflows[0] <= 0).sort((N, x) => N.overflows[1] - x.overflows[1])[0]) == null ? void 0 : A.placement;
4072
+ let O = (P = b.filter((N) => N.overflows[0] <= 0).sort((N, x) => N.overflows[1] - x.overflows[1])[0]) == null ? void 0 : P.placement;
4073
4073
  if (!O)
4074
4074
  switch (f) {
4075
4075
  case "bestFit": {
@@ -4230,8 +4230,8 @@ const Vf = function(e) {
4230
4230
  const y = g - u.top - u.bottom, T = h - u.left - u.right, I = bt(g - u[w], y), M = bt(h - u[L], T), F = !t.middlewareData.shift;
4231
4231
  let k = I, m = M;
4232
4232
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (m = T), (r = t.middlewareData.shift) != null && r.enabled.y && (k = y), F && !p) {
4233
- const b = Te(u.left, 0), P = Te(u.right, 0), A = Te(u.top, 0), C = Te(u.bottom, 0);
4234
- f ? m = h - 2 * (b !== 0 || P !== 0 ? b + P : Te(u.left, u.right)) : k = g - 2 * (A !== 0 || C !== 0 ? A + C : Te(u.top, u.bottom));
4233
+ const b = Te(u.left, 0), A = Te(u.right, 0), P = Te(u.top, 0), C = Te(u.bottom, 0);
4234
+ f ? m = h - 2 * (b !== 0 || A !== 0 ? b + A : Te(u.left, u.right)) : k = g - 2 * (P !== 0 || C !== 0 ? P + C : Te(u.top, u.bottom));
4235
4235
  }
4236
4236
  await s({
4237
4237
  ...t,
@@ -4705,7 +4705,7 @@ function pl(e) {
4705
4705
  x !== F.current && (F.current = x, g(x));
4706
4706
  }, []), T = j.useCallback((x) => {
4707
4707
  x !== k.current && (k.current = x, L(x));
4708
- }, []), I = i || h, M = l || w, F = j.useRef(null), k = j.useRef(null), m = j.useRef(u), v = s != null, b = yr(s), P = yr(o), A = yr(a), C = j.useCallback(() => {
4708
+ }, []), I = i || h, M = l || w, F = j.useRef(null), k = j.useRef(null), m = j.useRef(u), v = s != null, b = yr(s), A = yr(o), P = yr(a), C = j.useCallback(() => {
4709
4709
  if (!F.current || !k.current)
4710
4710
  return;
4711
4711
  const x = {
@@ -4713,20 +4713,20 @@ function pl(e) {
4713
4713
  strategy: n,
4714
4714
  middleware: p
4715
4715
  };
4716
- P.current && (x.platform = P.current), dd(F.current, k.current, x).then((D) => {
4716
+ A.current && (x.platform = A.current), dd(F.current, k.current, x).then((D) => {
4717
4717
  const _ = {
4718
4718
  ...D,
4719
4719
  // The floating element's position may be recomputed while it's closed
4720
4720
  // but still mounted (such as when transitioning out). To ensure
4721
4721
  // `isPositioned` will be `false` initially on the next open, avoid
4722
4722
  // setting it to `true` when `open === false` (must be specified).
4723
- isPositioned: A.current !== !1
4723
+ isPositioned: P.current !== !1
4724
4724
  };
4725
4725
  E.current && !Fn(m.current, _) && (m.current = _, on.flushSync(() => {
4726
4726
  d(_);
4727
4727
  }));
4728
4728
  });
4729
- }, [p, t, n, P, A]);
4729
+ }, [p, t, n, A, P]);
4730
4730
  Tn(() => {
4731
4731
  a === !1 && m.current.isPositioned && (m.current.isPositioned = !1, d((x) => ({
4732
4732
  ...x,
@@ -4833,18 +4833,18 @@ function vl(e) {
4833
4833
  }, []);
4834
4834
  }
4835
4835
  var Yr = typeof document < "u" ? Bn : ye;
4836
- let Ai = !1, yd = 0;
4837
- const Pi = () => (
4836
+ let Pi = !1, yd = 0;
4837
+ const Ai = () => (
4838
4838
  // Ensure the id is unique with multiple independent versions of Floating UI
4839
4839
  // on <React 18
4840
4840
  "floating-ui-" + Math.random().toString(36).slice(2, 6) + yd++
4841
4841
  );
4842
4842
  function wd() {
4843
- const [e, t] = j.useState(() => Ai ? Pi() : void 0);
4843
+ const [e, t] = j.useState(() => Pi ? Ai() : void 0);
4844
4844
  return Yr(() => {
4845
- e == null && t(Pi());
4845
+ e == null && t(Ai());
4846
4846
  }, []), j.useEffect(() => {
4847
- Ai = !0;
4847
+ Pi = !0;
4848
4848
  }, []), e;
4849
4849
  }
4850
4850
  const Ed = gl.useId, Rd = Ed || wd;
@@ -4884,16 +4884,16 @@ function Td() {
4884
4884
  }
4885
4885
  };
4886
4886
  }
4887
- const Cd = /* @__PURE__ */ j.createContext(null), Nd = /* @__PURE__ */ j.createContext(null), Ad = () => {
4887
+ const Cd = /* @__PURE__ */ j.createContext(null), Nd = /* @__PURE__ */ j.createContext(null), Pd = () => {
4888
4888
  var e;
4889
4889
  return ((e = j.useContext(Cd)) == null ? void 0 : e.id) || null;
4890
- }, Pd = () => j.useContext(Nd), $d = "data-floating-ui-focusable";
4890
+ }, Ad = () => j.useContext(Nd), $d = "data-floating-ui-focusable";
4891
4891
  function Ld(e) {
4892
4892
  const {
4893
4893
  open: t = !1,
4894
4894
  onOpenChange: n,
4895
4895
  elements: r
4896
- } = e, o = Rd(), i = j.useRef({}), [l] = j.useState(() => Td()), c = Ad() != null;
4896
+ } = e, o = Rd(), i = j.useRef({}), [l] = j.useState(() => Td()), c = Pd() != null;
4897
4897
  if (process.env.NODE_ENV !== "production") {
4898
4898
  const f = r.reference;
4899
4899
  f && !le(f) && Od("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
@@ -4933,7 +4933,7 @@ function Dd(e) {
4933
4933
  floating: null,
4934
4934
  ...e.elements
4935
4935
  }
4936
- }), r = e.rootContext || n, o = r.elements, [i, l] = j.useState(null), [c, s] = j.useState(null), u = (o == null ? void 0 : o.domReference) || i, d = j.useRef(null), p = Pd();
4936
+ }), r = e.rootContext || n, o = r.elements, [i, l] = j.useState(null), [c, s] = j.useState(null), u = (o == null ? void 0 : o.domReference) || i, d = j.useRef(null), p = Ad();
4937
4937
  Yr(() => {
4938
4938
  u && (d.current = u);
4939
4939
  }, [u]);
@@ -5081,10 +5081,10 @@ const Md = (e) => ({
5081
5081
  }, I = await xr(Di(T, h.scrollHeight + g + p.clientTop), u), M = await xr(T, {
5082
5082
  ...u,
5083
5083
  elementContext: "reference"
5084
- }), F = Te(0, I.top), k = T.y + F, b = (h.scrollHeight > h.clientHeight ? (P) => P : sn)(Te(0, h.scrollHeight + (w && y || L ? g * 2 : 0) - F - Te(0, I.bottom)));
5084
+ }), F = Te(0, I.top), k = T.y + F, b = (h.scrollHeight > h.clientHeight ? (A) => A : sn)(Te(0, h.scrollHeight + (w && y || L ? g * 2 : 0) - F - Te(0, I.bottom)));
5085
5085
  if (h.style.maxHeight = b + "px", h.scrollTop = F, o) {
5086
- const P = h.offsetHeight < f.offsetHeight * bt(c, n.current.length) - 1 || M.top >= -s || M.bottom >= -s;
5087
- on.flushSync(() => o(P));
5086
+ const A = h.offsetHeight < f.offsetHeight * bt(c, n.current.length) - 1 || M.top >= -s || M.bottom >= -s;
5087
+ on.flushSync(() => o(A));
5088
5088
  }
5089
5089
  return r && (r.current = await xr(Di({
5090
5090
  ...T,
@@ -5190,13 +5190,13 @@ function Ud({ children: e, enabled: t = !0 }) {
5190
5190
  de(() => {
5191
5191
  a && i(0);
5192
5192
  }, [a]);
5193
- let { refs: L, floatingStyles: y, context: T } = Dd({ open: a, placement: g === "selection" ? w === "center" ? "bottom" : `bottom-${w}` : w === "center" ? `${g}` : `${g}-${w}`, strategy: "absolute", transform: !1, middleware: [Eo({ mainAxis: g === "selection" ? 0 : d, crossAxis: p }), ml({ padding: f }), g !== "selection" && hl({ padding: f }), g === "selection" && h ? Md({ ...h, padding: f, overflowRef: l, offset: o, minItemsVisible: Ii, referenceOverflowThreshold: f, onFallbackChange(P) {
5194
- var A, C;
5195
- if (!P) return;
5193
+ let { refs: L, floatingStyles: y, context: T } = Dd({ open: a, placement: g === "selection" ? w === "center" ? "bottom" : `bottom-${w}` : w === "center" ? `${g}` : `${g}-${w}`, strategy: "absolute", transform: !1, middleware: [Eo({ mainAxis: g === "selection" ? 0 : d, crossAxis: p }), ml({ padding: f }), g !== "selection" && hl({ padding: f }), g === "selection" && h ? Md({ ...h, padding: f, overflowRef: l, offset: o, minItemsVisible: Ii, referenceOverflowThreshold: f, onFallbackChange(A) {
5194
+ var P, C;
5195
+ if (!A) return;
5196
5196
  let E = T.elements.floating;
5197
5197
  if (!E) return;
5198
5198
  let S = parseFloat(getComputedStyle(E).scrollPaddingBottom) || 0, O = Math.min(Ii, E.childElementCount), N = 0, x = 0;
5199
- for (let D of (C = (A = T.elements.floating) == null ? void 0 : A.childNodes) != null ? C : []) if (yt(D)) {
5199
+ for (let D of (C = (P = T.elements.floating) == null ? void 0 : P.childNodes) != null ? C : []) if (yt(D)) {
5200
5200
  let _ = D.offsetTop, U = _ + D.clientHeight + S, V = E.scrollTop, G = V + E.clientHeight;
5201
5201
  if (_ >= V && U <= G) O--;
5202
5202
  else {
@@ -5208,12 +5208,12 @@ function Ud({ children: e, enabled: t = !0 }) {
5208
5208
  let _ = N * O - x + S;
5209
5209
  return D >= _ ? D : _;
5210
5210
  });
5211
- } }) : null, gd({ padding: f, apply({ availableWidth: P, availableHeight: A, elements: C }) {
5212
- Object.assign(C.floating.style, { overflow: "auto", maxWidth: `${P}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${A}px)` });
5211
+ } }) : null, gd({ padding: f, apply({ availableWidth: A, availableHeight: P, elements: C }) {
5212
+ Object.assign(C.floating.style, { overflow: "auto", maxWidth: `${A}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${P}px)` });
5213
5213
  } })].filter(Boolean), whileElementsMounted: fl }), [I = g, M = w] = T.placement.split("-");
5214
5214
  g === "selection" && (I = "selection");
5215
- let F = re(() => ({ anchor: [I, M].filter(Boolean).join(" ") }), [I, M]), k = jd(T, { overflowRef: l, onChange: i }), { getReferenceProps: m, getFloatingProps: v } = Id([k]), b = ie((P) => {
5216
- s(P), L.setFloating(P);
5215
+ let F = re(() => ({ anchor: [I, M].filter(Boolean).join(" ") }), [I, M]), k = jd(T, { overflowRef: l, onChange: i }), { getReferenceProps: m, getFloatingProps: v } = Id([k]), b = ie((A) => {
5216
+ s(A), L.setFloating(A);
5217
5217
  });
5218
5218
  return j.createElement(Ro.Provider, { value: r }, j.createElement(qt.Provider, { value: { setFloating: b, setReference: L.setReference, styles: y, getReferenceProps: m, getFloatingProps: v, slot: F } }, e));
5219
5219
  }
@@ -5465,11 +5465,11 @@ function Ol(e, t) {
5465
5465
  let Tl = ke, Cl = Ln.RenderStrategy;
5466
5466
  function cp(e, t) {
5467
5467
  var n, r;
5468
- let { transition: o = !0, beforeEnter: i, afterEnter: l, beforeLeave: c, afterLeave: s, enter: a, enterFrom: u, enterTo: d, entered: p, leave: f, leaveFrom: h, leaveTo: g, ...w } = e, [L, y] = te(null), T = ee(null), I = Sl(e), M = Je(...I ? [T, t, y] : t === null ? [] : [t]), F = (n = w.unmount) == null || n ? Rt.Unmount : Rt.Hidden, { show: k, appear: m, initial: v } = lp(), [b, P] = te(k ? "visible" : "hidden"), A = ap(), { register: C, unregister: E } = A;
5468
+ let { transition: o = !0, beforeEnter: i, afterEnter: l, beforeLeave: c, afterLeave: s, enter: a, enterFrom: u, enterTo: d, entered: p, leave: f, leaveFrom: h, leaveTo: g, ...w } = e, [L, y] = te(null), T = ee(null), I = Sl(e), M = Je(...I ? [T, t, y] : t === null ? [] : [t]), F = (n = w.unmount) == null || n ? Rt.Unmount : Rt.Hidden, { show: k, appear: m, initial: v } = lp(), [b, A] = te(k ? "visible" : "hidden"), P = ap(), { register: C, unregister: E } = P;
5469
5469
  de(() => C(T), [C, T]), de(() => {
5470
5470
  if (F === Rt.Hidden && T.current) {
5471
5471
  if (k && b !== "visible") {
5472
- P("visible");
5472
+ A("visible");
5473
5473
  return;
5474
5474
  }
5475
5475
  return Xe(b, { hidden: () => E(T), visible: () => C(T) });
@@ -5480,8 +5480,8 @@ function cp(e, t) {
5480
5480
  if (I && S && b === "visible" && T.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
5481
5481
  }, [T, b, S, I]);
5482
5482
  let O = v && !m, N = m && k && v, x = ee(!1), D = Ol(() => {
5483
- x.current || (P("hidden"), E(T));
5484
- }, A), _ = ie((H) => {
5483
+ x.current || (A("hidden"), E(T));
5484
+ }, P), _ = ie((H) => {
5485
5485
  x.current = !0;
5486
5486
  let Z = H ? "enter" : "leave";
5487
5487
  D.onStart(T, Z, (fe) => {
@@ -5491,7 +5491,7 @@ function cp(e, t) {
5491
5491
  let Z = H ? "enter" : "leave";
5492
5492
  x.current = !1, D.onStop(T, Z, (fe) => {
5493
5493
  fe === "enter" ? l == null || l() : fe === "leave" && (s == null || s());
5494
- }), Z === "leave" && !Zn(D) && (P("hidden"), E(T));
5494
+ }), Z === "leave" && !Zn(D) && (A("hidden"), E(T));
5495
5495
  });
5496
5496
  ye(() => {
5497
5497
  I && o || (_(k), U(k));
@@ -5529,7 +5529,7 @@ function fp(e, t) {
5529
5529
  let n = he(Qn) !== null, r = Oo() !== null;
5530
5530
  return z.createElement(z.Fragment, null, !n && r ? z.createElement(Kr, { ref: t, ...e }) : z.createElement(Nl, { ref: t, ...e }));
5531
5531
  }
5532
- let Kr = Fe(up), Nl = Fe(cp), dp = Fe(fp), Al = Object.assign(Kr, { Child: dp, Root: Kr });
5532
+ let Kr = Fe(up), Nl = Fe(cp), dp = Fe(fp), Pl = Object.assign(Kr, { Child: dp, Root: Kr });
5533
5533
  function pp(e, t) {
5534
5534
  let n = ee({ left: 0, top: 0 });
5535
5535
  if (de(() => {
@@ -5578,7 +5578,7 @@ function hp(e) {
5578
5578
  return t.current = o, n.current = i, i;
5579
5579
  });
5580
5580
  }
5581
- var gp = Object.defineProperty, vp = (e, t, n) => t in e ? gp(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, _i = (e, t, n) => (vp(e, typeof t != "symbol" ? t + "" : t, n), n), Re = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Re || {}), st = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(st || {}), Cn = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(Cn || {}), Pl = ((e) => (e[e.OpenListbox = 0] = "OpenListbox", e[e.CloseListbox = 1] = "CloseListbox", e[e.GoToOption = 2] = "GoToOption", e[e.Search = 3] = "Search", e[e.ClearSearch = 4] = "ClearSearch", e[e.RegisterOptions = 5] = "RegisterOptions", e[e.UnregisterOptions = 6] = "UnregisterOptions", e[e.SetButtonElement = 7] = "SetButtonElement", e[e.SetOptionsElement = 8] = "SetOptionsElement", e[e.SortOptions = 9] = "SortOptions", e))(Pl || {});
5581
+ var gp = Object.defineProperty, vp = (e, t, n) => t in e ? gp(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, _i = (e, t, n) => (vp(e, typeof t != "symbol" ? t + "" : t, n), n), Re = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Re || {}), st = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(st || {}), Cn = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(Cn || {}), Al = ((e) => (e[e.OpenListbox = 0] = "OpenListbox", e[e.CloseListbox = 1] = "CloseListbox", e[e.GoToOption = 2] = "GoToOption", e[e.Search = 3] = "Search", e[e.ClearSearch = 4] = "ClearSearch", e[e.RegisterOptions = 5] = "RegisterOptions", e[e.UnregisterOptions = 6] = "UnregisterOptions", e[e.SetButtonElement = 7] = "SetButtonElement", e[e.SetOptionsElement = 8] = "SetOptionsElement", e[e.SortOptions = 9] = "SortOptions", e))(Al || {});
5582
5582
  function ki(e, t = (n) => n) {
5583
5583
  let n = e.activeOptionIndex !== null ? e.options[e.activeOptionIndex] : null, r = Ys(t(e.options.slice()), (i) => i.dataRef.current.domRef.current), o = n ? r.indexOf(n) : null;
5584
5584
  return o === -1 && (o = null), { options: r, activeOptionIndex: o };
@@ -5747,14 +5747,14 @@ function yp(e, t) {
5747
5747
  de(() => {
5748
5748
  M.state.dataRef.current = b;
5749
5749
  }, [b]);
5750
- let P = qe(M, (V) => V.listboxState), A = ho.get(null), C = qe(A, X((V) => A.selectors.isTop(V, n), [A, n])), [E, S] = qe(M, (V) => [V.buttonElement, V.optionsElement]);
5750
+ let A = qe(M, (V) => V.listboxState), P = ho.get(null), C = qe(P, X((V) => P.selectors.isTop(V, n), [P, n])), [E, S] = qe(M, (V) => [V.buttonElement, V.optionsElement]);
5751
5751
  Iu(C, [E, S], (V, G) => {
5752
- M.send({ type: Pl.CloseListbox }), Gs(G, go.Loose) || (V.preventDefault(), E == null || E.focus());
5752
+ M.send({ type: Al.CloseListbox }), Gs(G, go.Loose) || (V.preventDefault(), E == null || E.focus());
5753
5753
  });
5754
- let O = re(() => ({ open: P === Re.Open, disabled: d, invalid: u, value: T }), [P, d, u, T]), [N, x] = tu({ inherit: !0 }), D = { ref: L }, _ = X(() => {
5754
+ let O = re(() => ({ open: A === Re.Open, disabled: d, invalid: u, value: T }), [A, d, u, T]), [N, x] = tu({ inherit: !0 }), D = { ref: L }, _ = X(() => {
5755
5755
  if (y !== void 0) return I == null ? void 0 : I(y);
5756
5756
  }, [I, y]), U = We();
5757
- return z.createElement(x, { value: N, props: { htmlFor: E == null ? void 0 : E.id }, slot: { open: P === Re.Open, disabled: d } }, z.createElement(Ud, null, z.createElement($l.Provider, { value: M }, z.createElement(er.Provider, { value: b }, z.createElement(xl, { value: Xe(P, { [Re.Open]: tt.Open, [Re.Closed]: tt.Closed }) }, c != null && T != null && z.createElement(Bc, { disabled: d, data: { [c]: T }, form: l, onReset: _ }), U({ ourProps: D, theirProps: g, slot: O, defaultTag: xp, name: "Listbox" }))))));
5757
+ return z.createElement(x, { value: N, props: { htmlFor: E == null ? void 0 : E.id }, slot: { open: A === Re.Open, disabled: d } }, z.createElement(Ud, null, z.createElement($l.Provider, { value: M }, z.createElement(er.Provider, { value: b }, z.createElement(xl, { value: Xe(A, { [Re.Open]: tt.Open, [Re.Closed]: tt.Closed }) }, c != null && T != null && z.createElement(Bc, { disabled: d, data: { [c]: T }, form: l, onReset: _ }), U({ ourProps: D, theirProps: g, slot: O, defaultTag: xp, name: "Listbox" }))))));
5758
5758
  }
5759
5759
  let wp = "button";
5760
5760
  function Ep(e, t) {
@@ -5793,7 +5793,7 @@ function Ep(e, t) {
5793
5793
  T.current = x.pointerType, x.pointerType === "mouse" && y(x);
5794
5794
  }), M = ie((x) => {
5795
5795
  T.current !== "mouse" && y(x);
5796
- }), F = ie((x) => x.preventDefault()), k = Fs([l]), m = Qc(), { isFocusVisible: v, focusProps: b } = Ec({ autoFocus: s }), { isHovered: P, hoverProps: A } = wc({ isDisabled: c }), { pressed: C, pressProps: E } = Nc({ disabled: c }), S = re(() => ({ open: p === Re.Open, active: C || p === Re.Open, disabled: c, invalid: o.invalid, value: o.value, hover: P, focus: v, autofocus: s }), [p, o.value, c, P, v, C, o.invalid, s]), O = qe(i, (x) => x.listboxState === Re.Open), N = Ts(d(), { ref: u, id: l, type: _u(e, f), "aria-haspopup": "listbox", "aria-controls": h == null ? void 0 : h.id, "aria-expanded": O, "aria-labelledby": k, "aria-describedby": m, disabled: c || void 0, autoFocus: s, onKeyDown: w, onKeyUp: L, onKeyPress: F, onPointerDown: I, onClick: M }, b, A, E);
5796
+ }), F = ie((x) => x.preventDefault()), k = Fs([l]), m = Qc(), { isFocusVisible: v, focusProps: b } = Ec({ autoFocus: s }), { isHovered: A, hoverProps: P } = wc({ isDisabled: c }), { pressed: C, pressProps: E } = Nc({ disabled: c }), S = re(() => ({ open: p === Re.Open, active: C || p === Re.Open, disabled: c, invalid: o.invalid, value: o.value, hover: A, focus: v, autofocus: s }), [p, o.value, c, A, v, C, o.invalid, s]), O = qe(i, (x) => x.listboxState === Re.Open), N = Ts(d(), { ref: u, id: l, type: _u(e, f), "aria-haspopup": "listbox", "aria-controls": h == null ? void 0 : h.id, "aria-expanded": O, "aria-labelledby": k, "aria-describedby": m, disabled: c || void 0, autoFocus: s, onKeyDown: w, onKeyUp: L, onKeyPress: F, onPointerDown: I, onClick: M }, b, P, E);
5797
5797
  return We()({ ourProps: N, theirProps: a, slot: S, defaultTag: wp, name: "Listbox.Button" });
5798
5798
  }
5799
5799
  let Dl = Se(!1), Rp = "div", Sp = Ln.RenderStrategy | Ln.Static;
@@ -5806,10 +5806,10 @@ function Op(e, t) {
5806
5806
  Gu(k, T);
5807
5807
  let m = L ? !1 : l && h === Re.Open;
5808
5808
  wu(m, { allowed: X(() => [g, w], [g, w]) });
5809
- let v = h !== Re.Open, b = pp(v, g) ? !1 : M, P = M && h === Re.Closed, A = Hd(P, p.value), C = ie((H) => p.compare(A, H)), E = qe(f, (H) => {
5809
+ let v = h !== Re.Open, b = pp(v, g) ? !1 : M, A = M && h === Re.Closed, P = Hd(A, p.value), C = ie((H) => p.compare(P, H)), E = qe(f, (H) => {
5810
5810
  var Z;
5811
5811
  if (a == null || !((Z = a == null ? void 0 : a.to) != null && Z.includes("selection"))) return null;
5812
- let fe = H.options.findIndex((Ae) => C(Ae.dataRef.current.value));
5812
+ let fe = H.options.findIndex((Pe) => C(Pe.dataRef.current.value));
5813
5813
  return fe === -1 && (fe = 0), fe;
5814
5814
  }), S = (() => {
5815
5815
  if (a == null) return;
@@ -5829,8 +5829,8 @@ function Op(e, t) {
5829
5829
  if (f.state.searchQuery !== "") return H.preventDefault(), H.stopPropagation(), f.actions.search(H.key);
5830
5830
  case Ee.Enter:
5831
5831
  if (H.preventDefault(), H.stopPropagation(), f.state.activeOptionIndex !== null) {
5832
- let { dataRef: Ae } = f.state.options[f.state.activeOptionIndex];
5833
- f.actions.onChange(Ae.current.value);
5832
+ let { dataRef: Pe } = f.state.options[f.state.activeOptionIndex];
5833
+ f.actions.onChange(Pe.current.value);
5834
5834
  }
5835
5835
  p.mode === st.Single && (tn(() => f.actions.closeListbox()), (Z = f.state.buttonElement) == null || Z.focus({ preventScroll: !0 }));
5836
5836
  break;
@@ -5848,7 +5848,7 @@ function Op(e, t) {
5848
5848
  H.preventDefault(), H.stopPropagation(), tn(() => f.actions.closeListbox()), (fe = f.state.buttonElement) == null || fe.focus({ preventScroll: !0 });
5849
5849
  return;
5850
5850
  case Ee.Tab:
5851
- H.preventDefault(), H.stopPropagation(), tn(() => f.actions.closeListbox()), Pu(f.state.buttonElement, H.shiftKey ? Wr.Previous : Wr.Next);
5851
+ H.preventDefault(), H.stopPropagation(), tn(() => f.actions.closeListbox()), Au(f.state.buttonElement, H.shiftKey ? Wr.Previous : Wr.Next);
5852
5852
  break;
5853
5853
  default:
5854
5854
  H.key.length === 1 && (f.actions.search(H.key), _.setTimeout(() => f.actions.clearSearch(), 350));
@@ -5869,16 +5869,16 @@ function Cp(e, t) {
5869
5869
  }), w = qe(a, (b) => a.selectors.shouldScrollIntoView(b, r));
5870
5870
  de(() => {
5871
5871
  if (w) return nt().requestAnimationFrame(() => {
5872
- var b, P;
5873
- (P = (b = p.current) == null ? void 0 : b.scrollIntoView) == null || P.call(b, { block: "nearest" });
5872
+ var b, A;
5873
+ (A = (b = p.current) == null ? void 0 : b.scrollIntoView) == null || A.call(b, { block: "nearest" });
5874
5874
  });
5875
5875
  }, [w, p]), de(() => {
5876
5876
  if (!c) return a.actions.registerOption(r, h), () => a.actions.unregisterOption(r);
5877
5877
  }, [h, r, c]);
5878
5878
  let L = ie((b) => {
5879
- var P;
5879
+ var A;
5880
5880
  if (o) return b.preventDefault();
5881
- a.actions.onChange(i), s.mode === st.Single && (tn(() => a.actions.closeListbox()), (P = a.state.buttonElement) == null || P.focus({ preventScroll: !0 }));
5881
+ a.actions.onChange(i), s.mode === st.Single && (tn(() => a.actions.closeListbox()), (A = a.state.buttonElement) == null || A.focus({ preventScroll: !0 }));
5882
5882
  }), y = ie(() => {
5883
5883
  if (o) return a.actions.goToOption({ focus: me.Nothing });
5884
5884
  a.actions.goToOption({ focus: me.Specific, id: r });
@@ -5890,11 +5890,11 @@ function Cp(e, t) {
5890
5890
  return !d && c ? null : v({ ourProps: m, theirProps: l, slot: k, defaultTag: Tp, name: "Listbox.Option" });
5891
5891
  }
5892
5892
  let Np = ke;
5893
- function Ap(e, t) {
5893
+ function Pp(e, t) {
5894
5894
  let { options: n, placeholder: r, ...o } = e, i = { ref: Je(t) }, l = pn("ListboxSelectedOption"), c = re(() => ({}), []), s = l.value === void 0 || l.value === null || l.mode === st.Multi && Array.isArray(l.value) && l.value.length === 0, a = We();
5895
5895
  return z.createElement(Dl.Provider, { value: !0 }, a({ ourProps: i, theirProps: { ...o, children: z.createElement(z.Fragment, null, r && s ? r : n) }, slot: c, defaultTag: Np, name: "ListboxSelectedOption" }));
5896
5896
  }
5897
- let Pp = Fe(yp), $p = Fe(Ep), Lp = iu, Dp = Fe(Op), Ip = Fe(Cp), Mp = Fe(Ap), St = Object.assign(Pp, { Button: $p, Label: Lp, Options: Dp, Option: Ip, SelectedOption: Mp });
5897
+ let Ap = Fe(yp), $p = Fe(Ep), Lp = iu, Dp = Fe(Op), Ip = Fe(Cp), Mp = Fe(Pp), St = Object.assign(Ap, { Button: $p, Label: Lp, Options: Dp, Option: Ip, SelectedOption: Mp });
5898
5898
  function jp({
5899
5899
  title: e,
5900
5900
  titleId: t,
@@ -5987,7 +5987,7 @@ const Il = /* @__PURE__ */ j.forwardRef(jp), Fp = ({
5987
5987
  }
5988
5988
  ),
5989
5989
  /* @__PURE__ */ R.jsx(
5990
- Al,
5990
+ Pl,
5991
5991
  {
5992
5992
  as: ke,
5993
5993
  enter: "transition ease-out duration-100",
@@ -6111,7 +6111,7 @@ const Il = /* @__PURE__ */ j.forwardRef(jp), Fp = ({
6111
6111
  }
6112
6112
  ),
6113
6113
  /* @__PURE__ */ R.jsx(
6114
- Al,
6114
+ Pl,
6115
6115
  {
6116
6116
  as: ke,
6117
6117
  enter: "transition ease-out duration-100",
@@ -6163,7 +6163,7 @@ const Il = /* @__PURE__ */ j.forwardRef(jp), Fp = ({
6163
6163
  ] })
6164
6164
  }
6165
6165
  ) });
6166
- }, Ao = ({
6166
+ }, Po = ({
6167
6167
  currentActiveChain: e,
6168
6168
  chainList: t,
6169
6169
  onChainChange: n,
@@ -6230,7 +6230,7 @@ const Il = /* @__PURE__ */ j.forwardRef(jp), Fp = ({
6230
6230
  const r = n.split("."), o = r[0];
6231
6231
  let i = r[1] || "";
6232
6232
  return i.length > 6 && (i = i.substring(0, 6)), i = i.replace(/0+$/, ""), i ? (i.length === 1 && (i += "0"), o + "." + i) : o + ".00";
6233
- }, Po = (e, t = "0") => {
6233
+ }, Ao = (e, t = "0") => {
6234
6234
  if (/[^0-9.]/.test(e))
6235
6235
  return {
6236
6236
  isValid: !1,
@@ -6256,7 +6256,7 @@ const Il = /* @__PURE__ */ j.forwardRef(jp), Fp = ({
6256
6256
  const o = e.split(".");
6257
6257
  if (o.length === 2 && o[1].length > 6) {
6258
6258
  const s = o[0] + "." + o[1].substring(0, 6);
6259
- return Po(s, t);
6259
+ return Ao(s, t);
6260
6260
  }
6261
6261
  const i = parseFloat(e), l = parseFloat(t);
6262
6262
  return !isNaN(i) && !isNaN(l) && i > l ? {
@@ -6303,11 +6303,11 @@ const Il = /* @__PURE__ */ j.forwardRef(jp), Fp = ({
6303
6303
  }
6304
6304
  ], $o = {
6305
6305
  wallet: "mpc",
6306
- ethAddress: "0x1234567890123456789012345678901234567890",
6307
- accountId: "123",
6308
- l2Key: "0x123"
6306
+ ethAddress: "",
6307
+ accountId: "",
6308
+ l2Key: ""
6309
6309
  }, Lo = {
6310
- address: "0x1234567890123456789012345678901234567890"
6310
+ address: ""
6311
6311
  }, Do = {
6312
6312
  multiChain: { minDeposit: 10 }
6313
6313
  };
@@ -7214,7 +7214,7 @@ var vm = function() {
7214
7214
  T.current = E, typeof n == "function" ? n(E) : n && (n.current = E);
7215
7215
  },
7216
7216
  [n]
7217
- ), [F, k] = z.useState(!1), { margin: m, cells: v, numCells: b, calculatedImageSettings: P } = Kl({
7217
+ ), [F, k] = z.useState(!1), { margin: m, cells: v, numCells: b, calculatedImageSettings: A } = Kl({
7218
7218
  value: o,
7219
7219
  level: l,
7220
7220
  minVersion: u,
@@ -7230,10 +7230,10 @@ var vm = function() {
7230
7230
  if (!S)
7231
7231
  return;
7232
7232
  let O = v;
7233
- const N = I.current, x = P != null && N !== null && N.complete && N.naturalHeight !== 0 && N.naturalWidth !== 0;
7234
- x && P.excavation != null && (O = Yl(
7233
+ const N = I.current, x = A != null && N !== null && N.complete && N.naturalHeight !== 0 && N.naturalWidth !== 0;
7234
+ x && A.excavation != null && (O = Yl(
7235
7235
  v,
7236
- P.excavation
7236
+ A.excavation
7237
7237
  ));
7238
7238
  const D = window.devicePixelRatio || 1;
7239
7239
  E.height = E.width = i * D;
@@ -7242,18 +7242,18 @@ var vm = function() {
7242
7242
  U.forEach(function(G, q) {
7243
7243
  G && S.fillRect(q + m, V + m, 1, 1);
7244
7244
  });
7245
- }), P && (S.globalAlpha = P.opacity), x && S.drawImage(
7245
+ }), A && (S.globalAlpha = A.opacity), x && S.drawImage(
7246
7246
  N,
7247
- P.x + m,
7248
- P.y + m,
7249
- P.w,
7250
- P.h
7247
+ A.x + m,
7248
+ A.y + m,
7249
+ A.w,
7250
+ A.h
7251
7251
  );
7252
7252
  }
7253
7253
  }), z.useEffect(() => {
7254
7254
  k(!1);
7255
7255
  }, [y]);
7256
- const A = Jr({ height: i, width: i }, w);
7256
+ const P = Jr({ height: i, width: i }, w);
7257
7257
  let C = null;
7258
7258
  return y != null && (C = /* @__PURE__ */ z.createElement(
7259
7259
  "img",
@@ -7265,12 +7265,12 @@ var vm = function() {
7265
7265
  k(!0);
7266
7266
  },
7267
7267
  ref: I,
7268
- crossOrigin: P == null ? void 0 : P.crossOrigin
7268
+ crossOrigin: A == null ? void 0 : A.crossOrigin
7269
7269
  }
7270
7270
  )), /* @__PURE__ */ z.createElement(z.Fragment, null, /* @__PURE__ */ z.createElement(
7271
7271
  "canvas",
7272
7272
  Jr({
7273
- style: A,
7273
+ style: P,
7274
7274
  height: i,
7275
7275
  width: i,
7276
7276
  ref: M,
@@ -7450,9 +7450,9 @@ function cn(e, t) {
7450
7450
  const n = ["mouse", "pen"];
7451
7451
  return t || n.push("", void 0), n.includes(e);
7452
7452
  }
7453
- var Nm = typeof document < "u", Am = function() {
7454
- }, ut = Nm ? Bn : Am;
7455
- const Pm = {
7453
+ var Nm = typeof document < "u", Pm = function() {
7454
+ }, ut = Nm ? Bn : Pm;
7455
+ const Am = {
7456
7456
  ...j
7457
7457
  };
7458
7458
  function Sn(e) {
@@ -7461,7 +7461,7 @@ function Sn(e) {
7461
7461
  t.current = e;
7462
7462
  }), t;
7463
7463
  }
7464
- const $m = Pm.useInsertionEffect, Lm = $m || ((e) => e());
7464
+ const $m = Am.useInsertionEffect, Lm = $m || ((e) => e());
7465
7465
  function it(e) {
7466
7466
  const t = j.useRef(() => {
7467
7467
  if (process.env.NODE_ENV !== "production")
@@ -7597,7 +7597,7 @@ function Hm(e, t) {
7597
7597
  restMs: d = 0,
7598
7598
  move: p = !0
7599
7599
  } = t, f = Fo(), h = jo(), g = Sn(a), w = Sn(s), L = Sn(n), y = Sn(d), T = j.useRef(), I = j.useRef(-1), M = j.useRef(), F = j.useRef(-1), k = j.useRef(!0), m = j.useRef(!1), v = j.useRef(() => {
7600
- }), b = j.useRef(!1), P = it(() => {
7600
+ }), b = j.useRef(!1), A = it(() => {
7601
7601
  var N;
7602
7602
  const x = (N = o.current.openEvent) == null ? void 0 : N.type;
7603
7603
  return (x == null ? void 0 : x.includes("mouse")) && x !== "mousedown";
@@ -7616,14 +7616,14 @@ function Hm(e, t) {
7616
7616
  }, [c, i]), j.useEffect(() => {
7617
7617
  if (!c || !g.current || !n) return;
7618
7618
  function N(D) {
7619
- P() && r(!1, D, "hover");
7619
+ A() && r(!1, D, "hover");
7620
7620
  }
7621
7621
  const x = lt(l.floating).documentElement;
7622
7622
  return x.addEventListener("mouseleave", N), () => {
7623
7623
  x.removeEventListener("mouseleave", N);
7624
7624
  };
7625
- }, [l.floating, n, r, c, g, P]);
7626
- const A = j.useCallback(function(N, x, D) {
7625
+ }, [l.floating, n, r, c, g, A]);
7626
+ const P = j.useCallback(function(N, x, D) {
7627
7627
  x === void 0 && (x = !0), D === void 0 && (D = "hover");
7628
7628
  const _ = Or(w.current, "close", T.current);
7629
7629
  _ && !M.current ? (Ge(I), I.current = window.setTimeout(() => r(!1, N, D), _)) : x && (Ge(I), r(!1, N, D));
@@ -7659,7 +7659,7 @@ function Hm(e, t) {
7659
7659
  x: V.clientX,
7660
7660
  y: V.clientY,
7661
7661
  onClose() {
7662
- E(), C(), S() || A(V, !0, "safe-polygon");
7662
+ E(), C(), S() || P(V, !0, "safe-polygon");
7663
7663
  }
7664
7664
  });
7665
7665
  const W = M.current;
@@ -7668,7 +7668,7 @@ function Hm(e, t) {
7668
7668
  };
7669
7669
  return;
7670
7670
  }
7671
- (T.current === "touch" ? !Ht(l.floating, V.relatedTarget) : !0) && A(V);
7671
+ (T.current === "touch" ? !Ht(l.floating, V.relatedTarget) : !0) && P(V);
7672
7672
  }
7673
7673
  function D(V) {
7674
7674
  S() || o.current.floatingContext && (g.current == null || g.current({
@@ -7677,7 +7677,7 @@ function Hm(e, t) {
7677
7677
  x: V.clientX,
7678
7678
  y: V.clientY,
7679
7679
  onClose() {
7680
- E(), C(), S() || A(V);
7680
+ E(), C(), S() || P(V);
7681
7681
  }
7682
7682
  })(V));
7683
7683
  }
@@ -7685,7 +7685,7 @@ function Hm(e, t) {
7685
7685
  Ge(I);
7686
7686
  }
7687
7687
  function U(V) {
7688
- S() || A(V, !1);
7688
+ S() || P(V, !1);
7689
7689
  }
7690
7690
  if (le(l.domReference)) {
7691
7691
  const V = l.domReference, G = l.floating;
@@ -7695,9 +7695,9 @@ function Hm(e, t) {
7695
7695
  n && V.removeEventListener("mouseleave", D), p && V.removeEventListener("mousemove", N), V.removeEventListener("mouseenter", N), V.removeEventListener("mouseleave", x), G && (G.removeEventListener("mouseleave", D), G.removeEventListener("mouseenter", _), G.removeEventListener("mouseleave", U));
7696
7696
  };
7697
7697
  }
7698
- }, [l, c, e, u, p, A, C, E, r, n, L, f, w, g, o, S, y]), ut(() => {
7698
+ }, [l, c, e, u, p, P, C, E, r, n, L, f, w, g, o, S, y]), ut(() => {
7699
7699
  var N;
7700
- if (c && n && (N = g.current) != null && (N = N.__options) != null && N.blockPointerEvents && P()) {
7700
+ if (c && n && (N = g.current) != null && (N = N.__options) != null && N.blockPointerEvents && A()) {
7701
7701
  m.current = !0;
7702
7702
  const D = l.floating;
7703
7703
  if (le(l.domReference) && D) {
@@ -7710,7 +7710,7 @@ function Hm(e, t) {
7710
7710
  };
7711
7711
  }
7712
7712
  }
7713
- }, [c, n, h, l, f, g, P]), ut(() => {
7713
+ }, [c, n, h, l, f, g, A]), ut(() => {
7714
7714
  n || (T.current = void 0, b.current = !1, C(), E());
7715
7715
  }, [n, C, E]), j.useEffect(() => () => {
7716
7716
  C(), Ge(I), Ge(F), E();
@@ -7997,7 +7997,7 @@ function Zm(e, t) {
7997
7997
  Array.from(_).every((W) => !Ht(U, W)))
7998
7998
  return;
7999
7999
  if (Ne(x) && C) {
8000
- const W = gt(x), K = Qe(x), H = /auto|scroll/, Z = W || H.test(K.overflowX), fe = W || H.test(K.overflowY), Ae = Z && x.clientWidth > 0 && x.scrollWidth > x.clientWidth, Pe = fe && x.clientHeight > 0 && x.scrollHeight > x.clientHeight, rt = K.direction === "rtl", Oe = Pe && (rt ? E.offsetX <= x.offsetWidth - x.clientWidth : E.offsetX > x.clientWidth), xe = Ae && E.offsetY > x.clientHeight;
8000
+ const W = gt(x), K = Qe(x), H = /auto|scroll/, Z = W || H.test(K.overflowX), fe = W || H.test(K.overflowY), Pe = Z && x.clientWidth > 0 && x.scrollWidth > x.clientWidth, Ae = fe && x.clientHeight > 0 && x.scrollHeight > x.clientHeight, rt = K.direction === "rtl", Oe = Ae && (rt ? E.offsetX <= x.offsetWidth - x.clientWidth : E.offsetX > x.clientWidth), xe = Pe && E.offsetY > x.clientHeight;
8001
8001
  if (Oe || xe)
8002
8002
  return;
8003
8003
  }
@@ -8020,7 +8020,7 @@ function Zm(e, t) {
8020
8020
  return;
8021
8021
  }
8022
8022
  r(!1, E, "outside-press");
8023
- }), P = it((E) => {
8023
+ }), A = it((E) => {
8024
8024
  var S;
8025
8025
  const O = () => {
8026
8026
  var N;
@@ -8050,7 +8050,7 @@ function Zm(e, t) {
8050
8050
  );
8051
8051
  }
8052
8052
  const x = lt(o.floating);
8053
- c && (x.addEventListener("keydown", M ? v : m, M), x.addEventListener("compositionstart", O), x.addEventListener("compositionend", N)), L && x.addEventListener(a, F ? P : b, F);
8053
+ c && (x.addEventListener("keydown", M ? v : m, M), x.addEventListener("compositionstart", O), x.addEventListener("compositionend", N)), L && x.addEventListener(a, F ? A : b, F);
8054
8054
  let D = [];
8055
8055
  return p && (le(o.domReference) && (D = Ot(o.domReference)), le(o.floating) && (D = D.concat(Ot(o.floating))), !le(o.reference) && o.reference && o.reference.contextElement && (D = D.concat(Ot(o.reference.contextElement)))), D = D.filter((_) => {
8056
8056
  var U;
@@ -8060,14 +8060,14 @@ function Zm(e, t) {
8060
8060
  passive: !0
8061
8061
  });
8062
8062
  }), () => {
8063
- c && (x.removeEventListener("keydown", M ? v : m, M), x.removeEventListener("compositionstart", O), x.removeEventListener("compositionend", N)), L && x.removeEventListener(a, F ? P : b, F), D.forEach((_) => {
8063
+ c && (x.removeEventListener("keydown", M ? v : m, M), x.removeEventListener("compositionstart", O), x.removeEventListener("compositionend", N)), L && x.removeEventListener(a, F ? A : b, F), D.forEach((_) => {
8064
8064
  _.removeEventListener("scroll", S);
8065
8065
  }), window.clearTimeout(E);
8066
8066
  };
8067
- }, [i, o, c, L, a, n, r, p, l, T, I, m, M, v, b, F, P]), j.useEffect(() => {
8067
+ }, [i, o, c, L, a, n, r, p, l, T, I, m, M, v, b, F, A]), j.useEffect(() => {
8068
8068
  i.current.insideReactTree = !1;
8069
8069
  }, [i, L, a]);
8070
- const A = j.useMemo(() => ({
8070
+ const P = j.useMemo(() => ({
8071
8071
  onKeyDown: m,
8072
8072
  ...u && {
8073
8073
  [Qm[d]]: (E) => {
@@ -8092,9 +8092,9 @@ function Zm(e, t) {
8092
8092
  }
8093
8093
  }), [m, a, i]);
8094
8094
  return j.useMemo(() => l ? {
8095
- reference: A,
8095
+ reference: P,
8096
8096
  floating: C
8097
- } : {}, [l, A, C]);
8097
+ } : {}, [l, P, C]);
8098
8098
  }
8099
8099
  function eh(e) {
8100
8100
  const {
@@ -8534,7 +8534,7 @@ const Wn = ({
8534
8534
  var c;
8535
8535
  const { t: i } = ft(), l = z.useMemo(() => Up(n || {}), [n]);
8536
8536
  return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
8537
- /* @__PURE__ */ R.jsx("div", { className: "flex justify-center mt-4 mb-3", children: /* @__PURE__ */ R.jsx("div", { className: "bg-white rounded-lg", children: /* @__PURE__ */ R.jsx(
8537
+ /* @__PURE__ */ R.jsx("div", { className: "flex justify-center mt-4 mb-3", children: (e == null ? void 0 : e.getDisplayAddress()) && /* @__PURE__ */ R.jsx("div", { className: "bg-white rounded-lg", children: /* @__PURE__ */ R.jsx(
8538
8538
  ql,
8539
8539
  {
8540
8540
  value: (e == null ? void 0 : e.getDisplayAddress()) || "",
@@ -8545,7 +8545,7 @@ const Wn = ({
8545
8545
  marginSize: 0
8546
8546
  }
8547
8547
  ) }) }),
8548
- /* @__PURE__ */ R.jsxs("div", { className: "flex items-center justify-between bg-fill-input-primary rounded-lg py-2 px-3 mb-3", children: [
8548
+ (e == null ? void 0 : e.getDisplayAddress()) && /* @__PURE__ */ R.jsxs("div", { className: "flex items-center justify-between bg-fill-input-primary rounded-lg py-2 px-3 mb-3", children: [
8549
8549
  /* @__PURE__ */ R.jsx("span", { className: "flex-1 text-text-primary text-sm font-medium break-all mr-3", children: e == null ? void 0 : e.getDisplayAddress() }),
8550
8550
  /* @__PURE__ */ R.jsx(
8551
8551
  cm,
@@ -8666,7 +8666,7 @@ const Wn = ({
8666
8666
  );
8667
8667
  return !e || e.length === 0 ? /* @__PURE__ */ R.jsx("div", { className: "text-center py-8", children: /* @__PURE__ */ R.jsx("p", { className: "text-gray-400", children: "No chains available" }) }) : f ? /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
8668
8668
  /* @__PURE__ */ R.jsx(
8669
- Ao,
8669
+ Po,
8670
8670
  {
8671
8671
  currentActiveChain: f,
8672
8672
  chainList: e,
@@ -8781,7 +8781,7 @@ const Wn = ({
8781
8781
  }
8782
8782
  }, [o == null ? void 0 : o.chainId, s]);
8783
8783
  const y = (I) => {
8784
- const M = I.target.value, F = w(), k = Po(M, F);
8784
+ const M = I.target.value, F = w(), k = Ao(M, F);
8785
8785
  if (k.isValid)
8786
8786
  u(k.formattedValue), k.errorType;
8787
8787
  else
@@ -9192,13 +9192,13 @@ const mh = (e) => {
9192
9192
  M(W), g == null || g(W);
9193
9193
  },
9194
9194
  [g]
9195
- ), b = z.useRef(!0), P = z.useRef(I), A = z.useRef(y);
9195
+ ), b = z.useRef(!0), A = z.useRef(I), P = z.useRef(y);
9196
9196
  z.useEffect(() => {
9197
9197
  if (b.current) {
9198
- b.current = !1, P.current = I, A.current = y;
9198
+ b.current = !1, A.current = I, P.current = y;
9199
9199
  return;
9200
9200
  }
9201
- (P.current !== I || A.current !== y) && (k(""), P.current = I, A.current = y);
9201
+ (A.current !== I || P.current !== y) && (k(""), A.current = I, P.current = y);
9202
9202
  }, [I, y]);
9203
9203
  const C = e && e.length > 0 ? e.find((W) => W.chainId === y) || e[0] : null, E = (q = C == null ? void 0 : C.tokenList) == null ? void 0 : q.find(
9204
9204
  (W) => W.token === I
@@ -9274,7 +9274,7 @@ const mh = (e) => {
9274
9274
  ] }) : !e || e.length === 0 ? /* @__PURE__ */ R.jsx("div", { className: "text-center py-8", children: /* @__PURE__ */ R.jsx("p", { className: "text-gray-400", children: "No chains available" }) }) : C ? /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
9275
9275
  N,
9276
9276
  /* @__PURE__ */ R.jsx(
9277
- Ao,
9277
+ Po,
9278
9278
  {
9279
9279
  currentActiveChain: C,
9280
9280
  chainList: e,
@@ -9528,7 +9528,7 @@ const Rh = ({
9528
9528
  }
9529
9529
  return e || "0";
9530
9530
  }, [e, o, n == null ? void 0 : n.chainId]), p = re(() => r || "0", [r]), f = (w) => {
9531
- const L = w.target.value, T = Po(L, p || "0");
9531
+ const L = w.target.value, T = Ao(L, p || "0");
9532
9532
  if (T.isValid)
9533
9533
  c(T.formattedValue), T.errorType;
9534
9534
  else
@@ -9745,7 +9745,7 @@ const Ch = (e) => {
9745
9745
  return;
9746
9746
  }
9747
9747
  je.closeWithdraw();
9748
- }, Ah = (e) => {
9748
+ }, Ph = (e) => {
9749
9749
  if (!je) {
9750
9750
  console.error(
9751
9751
  "WithdrawManager not initialized. Make sure to render <WithdrawManager /> in your app."
@@ -9761,12 +9761,12 @@ const Ch = (e) => {
9761
9761
  return;
9762
9762
  }
9763
9763
  je.setWithdrawLoading(e);
9764
- }, Ph = () => je ? je.isOpen() : !1, $h = () => je ? je.isLoading() : !1, Kh = () => ({
9764
+ }, Ah = () => je ? je.isOpen() : !1, $h = () => je ? je.isLoading() : !1, Kh = () => ({
9765
9765
  openWithdraw: Ch,
9766
9766
  closeWithdraw: Nh,
9767
- updateWithdrawOptions: Ah,
9767
+ updateWithdrawOptions: Ph,
9768
9768
  setWithdrawLoading: oo,
9769
- isOpen: Ph,
9769
+ isOpen: Ah,
9770
9770
  isLoading: $h
9771
9771
  }), Lh = ({
9772
9772
  chains: e,
@@ -9805,15 +9805,15 @@ const Ch = (e) => {
9805
9805
  y(q), f == null || f(q);
9806
9806
  },
9807
9807
  [f]
9808
- ), P = X(
9808
+ ), A = X(
9809
9809
  (q) => {
9810
9810
  I(q), h == null || h(q);
9811
9811
  },
9812
9812
  [h]
9813
- ), A = z.useRef(!0), C = z.useRef(T), E = z.useRef(L);
9813
+ ), P = z.useRef(!0), C = z.useRef(T), E = z.useRef(L);
9814
9814
  z.useEffect(() => {
9815
- if (A.current) {
9816
- A.current = !1, C.current = T, E.current = L;
9815
+ if (P.current) {
9816
+ P.current = !1, C.current = T, E.current = L;
9817
9817
  return;
9818
9818
  }
9819
9819
  (C.current !== T || E.current !== L) && (F(""), C.current = T, E.current = L);
@@ -9877,13 +9877,13 @@ const Ch = (e) => {
9877
9877
  ] }) : !e || e.length === 0 ? /* @__PURE__ */ R.jsx("div", { className: "text-center py-8", children: /* @__PURE__ */ R.jsx("p", { className: "text-gray-400", children: "No chains available" }) }) : S ? /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
9878
9878
  D,
9879
9879
  /* @__PURE__ */ R.jsx(
9880
- Ao,
9880
+ Po,
9881
9881
  {
9882
9882
  currentActiveChain: S,
9883
9883
  chainList: e,
9884
9884
  onChainChange: b,
9885
9885
  curSelectToken: T,
9886
- onTokenChange: P,
9886
+ onTokenChange: A,
9887
9887
  walletType: "evm"
9888
9888
  }
9889
9889
  ),
@@ -10030,7 +10030,7 @@ const Ch = (e) => {
10030
10030
  export {
10031
10031
  _o as ChromeLoader,
10032
10032
  _h as ComponentProvider,
10033
- Pr as DEFAULT_LOCALE,
10033
+ Ar as DEFAULT_LOCALE,
10034
10034
  yh as Deposit,
10035
10035
  ph as DepositManager,
10036
10036
  Fh as LOCALE_NAMES,
@@ -10049,7 +10049,7 @@ export {
10049
10049
  ro as setDepositLoading,
10050
10050
  oo as setWithdrawLoading,
10051
10051
  gh as updateDepositOptions,
10052
- Ah as updateWithdrawOptions,
10052
+ Ph as updateWithdrawOptions,
10053
10053
  Ua as useComponentConfig,
10054
10054
  Wh as useDeposit,
10055
10055
  Yh as useDepositManager,