@orbs-network/spot-react 0.0.82 → 0.0.84

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.
@@ -707,7 +707,7 @@ const Xx = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
707
707
  ]
708
708
  }
709
709
  ], U5 = P5, GK = I5, O5 = F5, D5 = B5;
710
- var xe = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(xe || {}), pt = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Canceled = "CANCELED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(pt || {}), Jt = /* @__PURE__ */ ((e) => (e[e.Minutes = 6e4] = "Minutes", e[e.Hours = 36e5] = "Hours", e[e.Weeks = 6048e5] = "Weeks", e[e.Days = 864e5] = "Days", e[e.Months = 2592e6] = "Months", e[e.Years = 31536e6] = "Years", e))(Jt || {}), Ve = /* @__PURE__ */ ((e) => (e.LIMIT = "limit", e.TWAP_LIMIT = "twap-limit", e.TWAP_MARKET = "twap-market", e.TAKE_PROFIT = "take-profit", e.STOP_LOSS_LIMIT = "stop-loss-limit", e.STOP_LOSS_MARKET = "stop-loss-market", e))(Ve || {}), _5 = /* @__PURE__ */ ((e) => (e.Arbidex = "arbidex", e.Blackhole = "blackhole", e.Chronos = "chronos", e.Dragon = "dragon", e.Kodiak = "kodiak", e.Lynex = "lynex", e.Nami = "nami", e.Newera = "newera", e.Omni = "omni", e.Pancake = "pancake", e.Quick = "quick", e.Ramses = "ramses", e.Shadow = "shadow", e.Spark = "spark", e.Spooky = "spooky", e.Swapx = "swapx", e.Teafi = "teafi", e.Thena = "thena", e.Yowie = "yowie", e.Pangolin = "pangolin", e.Sushiswap = "sushiswap", e))(_5 || {}), Wt = /* @__PURE__ */ ((e) => (e[e.EMPTY_LIMIT_PRICE = 0] = "EMPTY_LIMIT_PRICE", e[e.MAX_CHUNKS = 1] = "MAX_CHUNKS", e[e.MIN_CHUNKS = 2] = "MIN_CHUNKS", e[e.MIN_TRADE_SIZE = 3] = "MIN_TRADE_SIZE", e[e.MAX_FILL_DELAY = 4] = "MAX_FILL_DELAY", e[e.MIN_FILL_DELAY = 5] = "MIN_FILL_DELAY", e[e.MAX_ORDER_DURATION = 6] = "MAX_ORDER_DURATION", e[e.MIN_ORDER_DURATION = 7] = "MIN_ORDER_DURATION", e[e.MISSING_LIMIT_PRICE = 8] = "MISSING_LIMIT_PRICE", e[e.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE = 9] = "STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE", e[e.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE = 10] = "TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE", e[e.TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE = 11] = "TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE", e[e.EMPTY_TRIGGER_PRICE = 12] = "EMPTY_TRIGGER_PRICE", e[e.INSUFFICIENT_BALANCE = 13] = "INSUFFICIENT_BALANCE", e[e.MAX_ORDER_SIZE = 14] = "MAX_ORDER_SIZE", e[e.MIN_TRADE_SIZE_ERROR = 15] = "MIN_TRADE_SIZE_ERROR", e))(Wt || {});
710
+ var Ee = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(Ee || {}), pt = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Canceled = "CANCELED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(pt || {}), Jt = /* @__PURE__ */ ((e) => (e[e.Minutes = 6e4] = "Minutes", e[e.Hours = 36e5] = "Hours", e[e.Weeks = 6048e5] = "Weeks", e[e.Days = 864e5] = "Days", e[e.Months = 2592e6] = "Months", e[e.Years = 31536e6] = "Years", e))(Jt || {}), Ve = /* @__PURE__ */ ((e) => (e.LIMIT = "limit", e.TWAP_LIMIT = "twap-limit", e.TWAP_MARKET = "twap-market", e.TAKE_PROFIT = "take-profit", e.STOP_LOSS_LIMIT = "stop-loss-limit", e.STOP_LOSS_MARKET = "stop-loss-market", e))(Ve || {}), _5 = /* @__PURE__ */ ((e) => (e.Arbidex = "arbidex", e.Blackhole = "blackhole", e.Chronos = "chronos", e.Dragon = "dragon", e.Kodiak = "kodiak", e.Lynex = "lynex", e.Nami = "nami", e.Newera = "newera", e.Omni = "omni", e.Pancake = "pancake", e.Quick = "quick", e.Ramses = "ramses", e.Shadow = "shadow", e.Spark = "spark", e.Spooky = "spooky", e.Swapx = "swapx", e.Teafi = "teafi", e.Thena = "thena", e.Yowie = "yowie", e.Pangolin = "pangolin", e.Sushiswap = "sushiswap", e))(_5 || {}), Wt = /* @__PURE__ */ ((e) => (e[e.EMPTY_LIMIT_PRICE = 0] = "EMPTY_LIMIT_PRICE", e[e.MAX_CHUNKS = 1] = "MAX_CHUNKS", e[e.MIN_CHUNKS = 2] = "MIN_CHUNKS", e[e.MIN_TRADE_SIZE = 3] = "MIN_TRADE_SIZE", e[e.MAX_FILL_DELAY = 4] = "MAX_FILL_DELAY", e[e.MIN_FILL_DELAY = 5] = "MIN_FILL_DELAY", e[e.MAX_ORDER_DURATION = 6] = "MAX_ORDER_DURATION", e[e.MIN_ORDER_DURATION = 7] = "MIN_ORDER_DURATION", e[e.MISSING_LIMIT_PRICE = 8] = "MISSING_LIMIT_PRICE", e[e.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE = 9] = "STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE", e[e.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE = 10] = "TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE", e[e.TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE = 11] = "TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE", e[e.EMPTY_TRIGGER_PRICE = 12] = "EMPTY_TRIGGER_PRICE", e[e.INSUFFICIENT_BALANCE = 13] = "INSUFFICIENT_BALANCE", e[e.MAX_ORDER_SIZE = 14] = "MAX_ORDER_SIZE", e[e.MIN_TRADE_SIZE_ERROR = 15] = "MIN_TRADE_SIZE_ERROR", e))(Wt || {});
711
711
  const gt = "0x0000000000000000000000000000000000000000", Mt = {
712
712
  eth: {
713
713
  id: 1,
@@ -1158,7 +1158,7 @@ const gt = "0x0000000000000000000000000000000000000000", Mt = {
1158
1158
  eip1559: !0
1159
1159
  }
1160
1160
  };
1161
- var M5 = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, td = Math.ceil, vr = Math.floor, Yt = "[BigNumber Error] ", Nm = Yt + "Number primitive has more than 15 significant digits: ", Dr = 1e14, Ee = 14, rd = 9007199254740991, nd = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Zn = 1e7, Pt = 1e9;
1161
+ var M5 = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, td = Math.ceil, vr = Math.floor, Yt = "[BigNumber Error] ", Nm = Yt + "Number primitive has more than 15 significant digits: ", Dr = 1e14, ve = 14, rd = 9007199254740991, nd = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Zn = 1e7, Pt = 1e9;
1162
1162
  function fb(e) {
1163
1163
  var t, r, n, s = w.prototype = { constructor: w, toString: null, valueOf: null }, a = new w(1), o = 20, i = 4, c = -7, l = 21, u = -1e7, d = 1e7, f = !1, m = 1, y = 0, g = {
1164
1164
  prefix: "",
@@ -1172,7 +1172,7 @@ function fb(e) {
1172
1172
  suffix: ""
1173
1173
  }, E = "0123456789abcdefghijklmnopqrstuvwxyz", v = !0;
1174
1174
  function w(h, b) {
1175
- var x, S, I, B, D, k, P, U, F = this;
1175
+ var x, T, I, B, D, k, P, U, F = this;
1176
1176
  if (!(F instanceof w)) return new w(h, b);
1177
1177
  if (b == null) {
1178
1178
  if (h && h._isBigNumber === !0) {
@@ -1201,8 +1201,8 @@ function fb(e) {
1201
1201
  } else
1202
1202
  F.s = U.charCodeAt(0) === 45 ? (U = U.slice(1), -1) : 1;
1203
1203
  for (x = E.slice(0, b), B = D = 0, P = U.length; D < P; D++)
1204
- if (x.indexOf(S = U.charAt(D)) < 0) {
1205
- if (S == ".") {
1204
+ if (x.indexOf(T = U.charAt(D)) < 0) {
1205
+ if (T == ".") {
1206
1206
  if (D > B) {
1207
1207
  B = P;
1208
1208
  continue;
@@ -1225,10 +1225,10 @@ function fb(e) {
1225
1225
  else if (B < u)
1226
1226
  F.c = [F.e = 0];
1227
1227
  else {
1228
- if (F.e = B, F.c = [], D = (B + 1) % Ee, B < 0 && (D += Ee), D < P) {
1229
- for (D && F.c.push(+U.slice(0, D)), P -= Ee; D < P; )
1230
- F.c.push(+U.slice(D, D += Ee));
1231
- D = Ee - (U = U.slice(D)).length;
1228
+ if (F.e = B, F.c = [], D = (B + 1) % ve, B < 0 && (D += ve), D < P) {
1229
+ for (D && F.c.push(+U.slice(0, D)), P -= ve; D < P; )
1230
+ F.c.push(+U.slice(D, D += ve));
1231
+ D = ve - (U = U.slice(D)).length;
1232
1232
  } else
1233
1233
  D -= P;
1234
1234
  for (; D--; U += "0") ;
@@ -1283,20 +1283,20 @@ function fb(e) {
1283
1283
  }, w.isBigNumber = function(h) {
1284
1284
  if (!h || h._isBigNumber !== !0) return !1;
1285
1285
  if (!w.DEBUG) return !0;
1286
- var b, x, S = h.c, I = h.e, B = h.s;
1287
- e: if ({}.toString.call(S) == "[object Array]") {
1286
+ var b, x, T = h.c, I = h.e, B = h.s;
1287
+ e: if ({}.toString.call(T) == "[object Array]") {
1288
1288
  if ((B === 1 || B === -1) && I >= -Pt && I <= Pt && I === vr(I)) {
1289
- if (S[0] === 0) {
1290
- if (I === 0 && S.length === 1) return !0;
1289
+ if (T[0] === 0) {
1290
+ if (I === 0 && T.length === 1) return !0;
1291
1291
  break e;
1292
1292
  }
1293
- if (b = (I + 1) % Ee, b < 1 && (b += Ee), String(S[0]).length == b) {
1294
- for (b = 0; b < S.length; b++)
1295
- if (x = S[b], x < 0 || x >= Dr || x !== vr(x)) break e;
1293
+ if (b = (I + 1) % ve, b < 1 && (b += ve), String(T[0]).length == b) {
1294
+ for (b = 0; b < T.length; b++)
1295
+ if (x = T[b], x < 0 || x >= Dr || x !== vr(x)) break e;
1296
1296
  if (x !== 0) return !0;
1297
1297
  }
1298
1298
  }
1299
- } else if (S === null && I === null && (B === null || B === 1 || B === -1))
1299
+ } else if (T === null && I === null && (B === null || B === 1 || B === -1))
1300
1300
  return !0;
1301
1301
  throw Error(Yt + "Invalid BigNumber: " + h);
1302
1302
  }, w.maximum = w.max = function() {
@@ -1310,28 +1310,28 @@ function fb(e) {
1310
1310
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
1311
1311
  };
1312
1312
  return function(x) {
1313
- var S, I, B, D, k, P = 0, U = [], F = new w(a);
1314
- if (x == null ? x = o : lt(x, 0, Pt), D = td(x / Ee), f)
1313
+ var T, I, B, D, k, P = 0, U = [], F = new w(a);
1314
+ if (x == null ? x = o : lt(x, 0, Pt), D = td(x / ve), f)
1315
1315
  if (crypto.getRandomValues) {
1316
- for (S = crypto.getRandomValues(new Uint32Array(D *= 2)); P < D; )
1317
- k = S[P] * 131072 + (S[P + 1] >>> 11), k >= 9e15 ? (I = crypto.getRandomValues(new Uint32Array(2)), S[P] = I[0], S[P + 1] = I[1]) : (U.push(k % 1e14), P += 2);
1316
+ for (T = crypto.getRandomValues(new Uint32Array(D *= 2)); P < D; )
1317
+ k = T[P] * 131072 + (T[P + 1] >>> 11), k >= 9e15 ? (I = crypto.getRandomValues(new Uint32Array(2)), T[P] = I[0], T[P + 1] = I[1]) : (U.push(k % 1e14), P += 2);
1318
1318
  P = D / 2;
1319
1319
  } else if (crypto.randomBytes) {
1320
- for (S = crypto.randomBytes(D *= 7); P < D; )
1321
- k = (S[P] & 31) * 281474976710656 + S[P + 1] * 1099511627776 + S[P + 2] * 4294967296 + S[P + 3] * 16777216 + (S[P + 4] << 16) + (S[P + 5] << 8) + S[P + 6], k >= 9e15 ? crypto.randomBytes(7).copy(S, P) : (U.push(k % 1e14), P += 7);
1320
+ for (T = crypto.randomBytes(D *= 7); P < D; )
1321
+ k = (T[P] & 31) * 281474976710656 + T[P + 1] * 1099511627776 + T[P + 2] * 4294967296 + T[P + 3] * 16777216 + (T[P + 4] << 16) + (T[P + 5] << 8) + T[P + 6], k >= 9e15 ? crypto.randomBytes(7).copy(T, P) : (U.push(k % 1e14), P += 7);
1322
1322
  P = D / 7;
1323
1323
  } else
1324
1324
  throw f = !1, Error(Yt + "crypto unavailable");
1325
1325
  if (!f)
1326
1326
  for (; P < D; )
1327
1327
  k = b(), k < 9e15 && (U[P++] = k % 1e14);
1328
- for (D = U[--P], x %= Ee, D && x && (k = nd[Ee - x], U[P] = vr(D / k) * k); U[P] === 0; U.pop(), P--) ;
1328
+ for (D = U[--P], x %= ve, D && x && (k = nd[ve - x], U[P] = vr(D / k) * k); U[P] === 0; U.pop(), P--) ;
1329
1329
  if (P < 0)
1330
1330
  U = [B = 0];
1331
1331
  else {
1332
- for (B = -1; U[0] === 0; U.splice(0, 1), B -= Ee) ;
1332
+ for (B = -1; U[0] === 0; U.splice(0, 1), B -= ve) ;
1333
1333
  for (P = 1, k = U[0]; k >= 10; k /= 10, P++) ;
1334
- P < Ee && (B -= Ee - P);
1334
+ P < ve && (B -= ve - P);
1335
1335
  }
1336
1336
  return F.e = B, F.c = U, F;
1337
1337
  };
@@ -1340,22 +1340,22 @@ function fb(e) {
1340
1340
  return x;
1341
1341
  }, r = /* @__PURE__ */ (function() {
1342
1342
  var h = "0123456789";
1343
- function b(x, S, I, B) {
1343
+ function b(x, T, I, B) {
1344
1344
  for (var D, k = [0], P, U = 0, F = x.length; U < F; ) {
1345
- for (P = k.length; P--; k[P] *= S) ;
1345
+ for (P = k.length; P--; k[P] *= T) ;
1346
1346
  for (k[0] += B.indexOf(x.charAt(U++)), D = 0; D < k.length; D++)
1347
1347
  k[D] > I - 1 && (k[D + 1] == null && (k[D + 1] = 0), k[D + 1] += k[D] / I | 0, k[D] %= I);
1348
1348
  }
1349
1349
  return k.reverse();
1350
1350
  }
1351
- return function(x, S, I, B, D) {
1351
+ return function(x, T, I, B, D) {
1352
1352
  var k, P, U, F, R, L, $, Z, pe = x.indexOf("."), be = o, ie = i;
1353
- for (pe >= 0 && (F = y, y = 0, x = x.replace(".", ""), Z = new w(S), L = Z.pow(x.length - pe), y = F, Z.c = b(
1353
+ for (pe >= 0 && (F = y, y = 0, x = x.replace(".", ""), Z = new w(T), L = Z.pow(x.length - pe), y = F, Z.c = b(
1354
1354
  gn(xr(L.c), L.e, "0"),
1355
1355
  10,
1356
1356
  I,
1357
1357
  h
1358
- ), Z.e = Z.c.length), $ = b(x, S, I, D ? (k = E, h) : (k = h, E)), U = F = $.length; $[--F] == 0; $.pop()) ;
1358
+ ), Z.e = Z.c.length), $ = b(x, T, I, D ? (k = E, h) : (k = h, E)), U = F = $.length; $[--F] == 0; $.pop()) ;
1359
1359
  if (!$[0]) return k.charAt(0);
1360
1360
  if (pe < 0 ? --U : (L.c = $, L.e = U, L.s = B, L = t(L, Z, be, ie, I), $ = L.c, R = L.r, U = L.e), P = U + be + 1, pe = $[P], F = I / 2, R = R || P < 0 || $[P + 1] != null, R = ie < 4 ? (pe != null || R) && (ie == 0 || ie == (L.s < 0 ? 3 : 2)) : pe > F || pe == F && (ie == 4 || R || ie == 6 && $[P - 1] & 1 || ie == (L.s < 0 ? 8 : 7)), P < 1 || !$[0])
1361
1361
  x = R ? gn(k.charAt(1), -be, k.charAt(0)) : k.charAt(0);
@@ -1370,44 +1370,44 @@ function fb(e) {
1370
1370
  return x;
1371
1371
  };
1372
1372
  })(), t = /* @__PURE__ */ (function() {
1373
- function h(S, I, B) {
1374
- var D, k, P, U, F = 0, R = S.length, L = I % Zn, $ = I / Zn | 0;
1375
- for (S = S.slice(); R--; )
1376
- P = S[R] % Zn, U = S[R] / Zn | 0, D = $ * P + U * L, k = L * P + D % Zn * Zn + F, F = (k / B | 0) + (D / Zn | 0) + $ * U, S[R] = k % B;
1377
- return F && (S = [F].concat(S)), S;
1373
+ function h(T, I, B) {
1374
+ var D, k, P, U, F = 0, R = T.length, L = I % Zn, $ = I / Zn | 0;
1375
+ for (T = T.slice(); R--; )
1376
+ P = T[R] % Zn, U = T[R] / Zn | 0, D = $ * P + U * L, k = L * P + D % Zn * Zn + F, F = (k / B | 0) + (D / Zn | 0) + $ * U, T[R] = k % B;
1377
+ return F && (T = [F].concat(T)), T;
1378
1378
  }
1379
- function b(S, I, B, D) {
1379
+ function b(T, I, B, D) {
1380
1380
  var k, P;
1381
1381
  if (B != D)
1382
1382
  P = B > D ? 1 : -1;
1383
1383
  else
1384
1384
  for (k = P = 0; k < B; k++)
1385
- if (S[k] != I[k]) {
1386
- P = S[k] > I[k] ? 1 : -1;
1385
+ if (T[k] != I[k]) {
1386
+ P = T[k] > I[k] ? 1 : -1;
1387
1387
  break;
1388
1388
  }
1389
1389
  return P;
1390
1390
  }
1391
- function x(S, I, B, D) {
1391
+ function x(T, I, B, D) {
1392
1392
  for (var k = 0; B--; )
1393
- S[B] -= k, k = S[B] < I[B] ? 1 : 0, S[B] = k * D + S[B] - I[B];
1394
- for (; !S[0] && S.length > 1; S.splice(0, 1)) ;
1393
+ T[B] -= k, k = T[B] < I[B] ? 1 : 0, T[B] = k * D + T[B] - I[B];
1394
+ for (; !T[0] && T.length > 1; T.splice(0, 1)) ;
1395
1395
  }
1396
- return function(S, I, B, D, k) {
1397
- var P, U, F, R, L, $, Z, pe, be, ie, de, Be, K, we, Ue, ze, st, Ae = S.s == I.s ? 1 : -1, ve = S.c, ye = I.c;
1398
- if (!ve || !ve[0] || !ye || !ye[0])
1396
+ return function(T, I, B, D, k) {
1397
+ var P, U, F, R, L, $, Z, pe, be, ie, de, Be, K, xe, Ue, ze, st, Ae = T.s == I.s ? 1 : -1, we = T.c, ye = I.c;
1398
+ if (!we || !we[0] || !ye || !ye[0])
1399
1399
  return new w(
1400
1400
  // Return NaN if either NaN, or both Infinity or 0.
1401
- !S.s || !I.s || (ve ? ye && ve[0] == ye[0] : !ye) ? NaN : (
1401
+ !T.s || !I.s || (we ? ye && we[0] == ye[0] : !ye) ? NaN : (
1402
1402
  // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
1403
- ve && ve[0] == 0 || !ye ? Ae * 0 : Ae / 0
1403
+ we && we[0] == 0 || !ye ? Ae * 0 : Ae / 0
1404
1404
  )
1405
1405
  );
1406
- for (pe = new w(Ae), be = pe.c = [], U = S.e - I.e, Ae = B + U + 1, k || (k = Dr, U = Er(S.e / Ee) - Er(I.e / Ee), Ae = Ae / Ee | 0), F = 0; ye[F] == (ve[F] || 0); F++) ;
1407
- if (ye[F] > (ve[F] || 0) && U--, Ae < 0)
1406
+ for (pe = new w(Ae), be = pe.c = [], U = T.e - I.e, Ae = B + U + 1, k || (k = Dr, U = Er(T.e / ve) - Er(I.e / ve), Ae = Ae / ve | 0), F = 0; ye[F] == (we[F] || 0); F++) ;
1407
+ if (ye[F] > (we[F] || 0) && U--, Ae < 0)
1408
1408
  be.push(1), R = !0;
1409
1409
  else {
1410
- for (we = ve.length, ze = ye.length, F = 0, Ae += 2, L = vr(k / (ye[0] + 1)), L > 1 && (ye = h(ye, L, k), ve = h(ve, L, k), ze = ye.length, we = ve.length), K = ze, ie = ve.slice(0, ze), de = ie.length; de < ze; ie[de++] = 0) ;
1410
+ for (xe = we.length, ze = ye.length, F = 0, Ae += 2, L = vr(k / (ye[0] + 1)), L > 1 && (ye = h(ye, L, k), we = h(we, L, k), ze = ye.length, xe = we.length), K = ze, ie = we.slice(0, ze), de = ie.length; de < ze; ie[de++] = 0) ;
1411
1411
  st = ye.slice(), st = [0].concat(st), Ue = ye[0], ye[1] >= k / 2 && Ue++;
1412
1412
  do {
1413
1413
  if (L = 0, P = b(ye, ie, ze, de), P < 0) {
@@ -1420,47 +1420,47 @@ function fb(e) {
1420
1420
  for (; b(ye, ie, ze, de) < 1; )
1421
1421
  L++, x(ie, ze < de ? st : ye, de, k), de = ie.length;
1422
1422
  } else P === 0 && (L++, ie = [0]);
1423
- be[F++] = L, ie[0] ? ie[de++] = ve[K] || 0 : (ie = [ve[K]], de = 1);
1424
- } while ((K++ < we || ie[0] != null) && Ae--);
1423
+ be[F++] = L, ie[0] ? ie[de++] = we[K] || 0 : (ie = [we[K]], de = 1);
1424
+ } while ((K++ < xe || ie[0] != null) && Ae--);
1425
1425
  R = ie[0] != null, be[0] || be.splice(0, 1);
1426
1426
  }
1427
1427
  if (k == Dr) {
1428
1428
  for (F = 1, Ae = be[0]; Ae >= 10; Ae /= 10, F++) ;
1429
- N(pe, B + (pe.e = F + U * Ee - 1) + 1, D, R);
1429
+ N(pe, B + (pe.e = F + U * ve - 1) + 1, D, R);
1430
1430
  } else
1431
1431
  pe.e = U, pe.r = +R;
1432
1432
  return pe;
1433
1433
  };
1434
1434
  })();
1435
- function A(h, b, x, S) {
1435
+ function A(h, b, x, T) {
1436
1436
  var I, B, D, k, P;
1437
1437
  if (x == null ? x = i : lt(x, 0, 8), !h.c) return h.toString();
1438
1438
  if (I = h.c[0], D = h.e, b == null)
1439
- P = xr(h.c), P = S == 1 || S == 2 && (D <= c || D >= l) ? Uc(P, D) : gn(P, D, "0");
1440
- else if (h = N(new w(h), b, x), B = h.e, P = xr(h.c), k = P.length, S == 1 || S == 2 && (b <= B || B <= c)) {
1439
+ P = xr(h.c), P = T == 1 || T == 2 && (D <= c || D >= l) ? Uc(P, D) : gn(P, D, "0");
1440
+ else if (h = N(new w(h), b, x), B = h.e, P = xr(h.c), k = P.length, T == 1 || T == 2 && (b <= B || B <= c)) {
1441
1441
  for (; k < b; P += "0", k++) ;
1442
1442
  P = Uc(P, B);
1443
- } else if (b -= D + (S === 2 && B > D), P = gn(P, B, "0"), B + 1 > k) {
1443
+ } else if (b -= D + (T === 2 && B > D), P = gn(P, B, "0"), B + 1 > k) {
1444
1444
  if (--b > 0) for (P += "."; b--; P += "0") ;
1445
1445
  } else if (b += B - k, b > 0)
1446
1446
  for (B + 1 == k && (P += "."); b--; P += "0") ;
1447
1447
  return h.s < 0 && I ? "-" + P : P;
1448
1448
  }
1449
1449
  function C(h, b) {
1450
- for (var x, S, I = 1, B = new w(h[0]); I < h.length; I++)
1451
- S = new w(h[I]), (!S.s || (x = Us(B, S)) === b || x === 0 && B.s === b) && (B = S);
1450
+ for (var x, T, I = 1, B = new w(h[0]); I < h.length; I++)
1451
+ T = new w(h[I]), (!T.s || (x = Us(B, T)) === b || x === 0 && B.s === b) && (B = T);
1452
1452
  return B;
1453
1453
  }
1454
1454
  function O(h, b, x) {
1455
- for (var S = 1, I = b.length; !b[--I]; b.pop()) ;
1456
- for (I = b[0]; I >= 10; I /= 10, S++) ;
1457
- return (x = S + x * Ee - 1) > d ? h.c = h.e = null : x < u ? h.c = [h.e = 0] : (h.e = x, h.c = b), h;
1455
+ for (var T = 1, I = b.length; !b[--I]; b.pop()) ;
1456
+ for (I = b[0]; I >= 10; I /= 10, T++) ;
1457
+ return (x = T + x * ve - 1) > d ? h.c = h.e = null : x < u ? h.c = [h.e = 0] : (h.e = x, h.c = b), h;
1458
1458
  }
1459
1459
  n = /* @__PURE__ */ (function() {
1460
- var h = /^(-?)0([xbo])(?=\w[\w.]*$)/i, b = /^([^.]+)\.$/, x = /^\.([^.]+)$/, S = /^-?(Infinity|NaN)$/, I = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
1460
+ var h = /^(-?)0([xbo])(?=\w[\w.]*$)/i, b = /^([^.]+)\.$/, x = /^\.([^.]+)$/, T = /^-?(Infinity|NaN)$/, I = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
1461
1461
  return function(B, D, k, P) {
1462
1462
  var U, F = k ? D : D.replace(I, "");
1463
- if (S.test(F))
1463
+ if (T.test(F))
1464
1464
  B.s = isNaN(F) ? null : F < 0 ? -1 : 1;
1465
1465
  else {
1466
1466
  if (!k && (F = F.replace(h, function(R, L, $) {
@@ -1474,30 +1474,30 @@ function fb(e) {
1474
1474
  B.c = B.e = null;
1475
1475
  };
1476
1476
  })();
1477
- function N(h, b, x, S) {
1477
+ function N(h, b, x, T) {
1478
1478
  var I, B, D, k, P, U, F, R = h.c, L = nd;
1479
1479
  if (R) {
1480
1480
  e: {
1481
1481
  for (I = 1, k = R[0]; k >= 10; k /= 10, I++) ;
1482
1482
  if (B = b - I, B < 0)
1483
- B += Ee, D = b, P = R[U = 0], F = vr(P / L[I - D - 1] % 10);
1484
- else if (U = td((B + 1) / Ee), U >= R.length)
1485
- if (S) {
1483
+ B += ve, D = b, P = R[U = 0], F = vr(P / L[I - D - 1] % 10);
1484
+ else if (U = td((B + 1) / ve), U >= R.length)
1485
+ if (T) {
1486
1486
  for (; R.length <= U; R.push(0)) ;
1487
- P = F = 0, I = 1, B %= Ee, D = B - Ee + 1;
1487
+ P = F = 0, I = 1, B %= ve, D = B - ve + 1;
1488
1488
  } else
1489
1489
  break e;
1490
1490
  else {
1491
1491
  for (P = k = R[U], I = 1; k >= 10; k /= 10, I++) ;
1492
- B %= Ee, D = B - Ee + I, F = D < 0 ? 0 : vr(P / L[I - D - 1] % 10);
1492
+ B %= ve, D = B - ve + I, F = D < 0 ? 0 : vr(P / L[I - D - 1] % 10);
1493
1493
  }
1494
- if (S = S || b < 0 || // Are there any non-zero digits after the rounding digit?
1494
+ if (T = T || b < 0 || // Are there any non-zero digits after the rounding digit?
1495
1495
  // The expression n % pows10[d - j - 1] returns all digits of n to the right
1496
1496
  // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
1497
- R[U + 1] != null || (D < 0 ? P : P % L[I - D - 1]), S = x < 4 ? (F || S) && (x == 0 || x == (h.s < 0 ? 3 : 2)) : F > 5 || F == 5 && (x == 4 || S || x == 6 && // Check whether the digit to the left of the rounding digit is odd.
1497
+ R[U + 1] != null || (D < 0 ? P : P % L[I - D - 1]), T = x < 4 ? (F || T) && (x == 0 || x == (h.s < 0 ? 3 : 2)) : F > 5 || F == 5 && (x == 4 || T || x == 6 && // Check whether the digit to the left of the rounding digit is odd.
1498
1498
  (B > 0 ? D > 0 ? P / L[I - D] : 0 : R[U - 1]) % 10 & 1 || x == (h.s < 0 ? 8 : 7)), b < 1 || !R[0])
1499
- return R.length = 0, S ? (b -= h.e + 1, R[0] = L[(Ee - b % Ee) % Ee], h.e = -b || 0) : R[0] = h.e = 0, h;
1500
- if (B == 0 ? (R.length = U, k = 1, U--) : (R.length = U + 1, k = L[Ee - B], R[U] = D > 0 ? vr(P / L[I - D] % L[D]) * k : 0), S)
1499
+ return R.length = 0, T ? (b -= h.e + 1, R[0] = L[(ve - b % ve) % ve], h.e = -b || 0) : R[0] = h.e = 0, h;
1500
+ if (B == 0 ? (R.length = U, k = 1, U--) : (R.length = U + 1, k = L[ve - B], R[U] = D > 0 ? vr(P / L[I - D] % L[D]) * k : 0), T)
1501
1501
  for (; ; )
1502
1502
  if (U == 0) {
1503
1503
  for (B = 1, D = R[0]; D >= 10; D /= 10, B++) ;
@@ -1514,7 +1514,7 @@ function fb(e) {
1514
1514
  }
1515
1515
  return h;
1516
1516
  }
1517
- function T(h) {
1517
+ function S(h) {
1518
1518
  var b, x = h.e;
1519
1519
  return x === null ? h.toString() : (b = xr(h.c), b = x <= c || x >= l ? Uc(b, x) : gn(b, x, "0"), h.s < 0 ? "-" + b : b);
1520
1520
  }
@@ -1524,34 +1524,34 @@ function fb(e) {
1524
1524
  }, s.comparedTo = function(h, b) {
1525
1525
  return Us(this, new w(h, b));
1526
1526
  }, s.decimalPlaces = s.dp = function(h, b) {
1527
- var x, S, I, B = this;
1527
+ var x, T, I, B = this;
1528
1528
  if (h != null)
1529
1529
  return lt(h, 0, Pt), b == null ? b = i : lt(b, 0, 8), N(new w(B), h + B.e + 1, b);
1530
1530
  if (!(x = B.c)) return null;
1531
- if (S = ((I = x.length - 1) - Er(this.e / Ee)) * Ee, I = x[I]) for (; I % 10 == 0; I /= 10, S--) ;
1532
- return S < 0 && (S = 0), S;
1531
+ if (T = ((I = x.length - 1) - Er(this.e / ve)) * ve, I = x[I]) for (; I % 10 == 0; I /= 10, T--) ;
1532
+ return T < 0 && (T = 0), T;
1533
1533
  }, s.dividedBy = s.div = function(h, b) {
1534
1534
  return t(this, new w(h, b), o, i);
1535
1535
  }, s.dividedToIntegerBy = s.idiv = function(h, b) {
1536
1536
  return t(this, new w(h, b), 0, 1);
1537
1537
  }, s.exponentiatedBy = s.pow = function(h, b) {
1538
- var x, S, I, B, D, k, P, U, F, R = this;
1538
+ var x, T, I, B, D, k, P, U, F, R = this;
1539
1539
  if (h = new w(h), h.c && !h.isInteger())
1540
- throw Error(Yt + "Exponent not an integer: " + T(h));
1540
+ throw Error(Yt + "Exponent not an integer: " + S(h));
1541
1541
  if (b != null && (b = new w(b)), k = h.e > 14, !R.c || !R.c[0] || R.c[0] == 1 && !R.e && R.c.length == 1 || !h.c || !h.c[0])
1542
- return F = new w(Math.pow(+T(R), k ? h.s * (2 - Fc(h)) : +T(h))), b ? F.mod(b) : F;
1542
+ return F = new w(Math.pow(+S(R), k ? h.s * (2 - Fc(h)) : +S(h))), b ? F.mod(b) : F;
1543
1543
  if (P = h.s < 0, b) {
1544
1544
  if (b.c ? !b.c[0] : !b.s) return new w(NaN);
1545
- S = !P && R.isInteger() && b.isInteger(), S && (R = R.mod(b));
1545
+ T = !P && R.isInteger() && b.isInteger(), T && (R = R.mod(b));
1546
1546
  } else {
1547
1547
  if (h.e > 9 && (R.e > 0 || R.e < -1 || (R.e == 0 ? R.c[0] > 1 || k && R.c[1] >= 24e7 : R.c[0] < 8e13 || k && R.c[0] <= 9999975e7)))
1548
1548
  return B = R.s < 0 && Fc(h) ? -0 : 0, R.e > -1 && (B = 1 / B), new w(P ? 1 / B : B);
1549
- y && (B = td(y / Ee + 2));
1549
+ y && (B = td(y / ve + 2));
1550
1550
  }
1551
- for (k ? (x = new w(0.5), P && (h.s = 1), U = Fc(h)) : (I = Math.abs(+T(h)), U = I % 2), F = new w(a); ; ) {
1551
+ for (k ? (x = new w(0.5), P && (h.s = 1), U = Fc(h)) : (I = Math.abs(+S(h)), U = I % 2), F = new w(a); ; ) {
1552
1552
  if (U) {
1553
1553
  if (F = F.times(R), !F.c) break;
1554
- B ? F.c.length > B && (F.c.length = B) : S && (F = F.mod(b));
1554
+ B ? F.c.length > B && (F.c.length = B) : T && (F = F.mod(b));
1555
1555
  }
1556
1556
  if (I) {
1557
1557
  if (I = vr(I / 2), I === 0) break;
@@ -1559,12 +1559,12 @@ function fb(e) {
1559
1559
  } else if (h = h.times(x), N(h, h.e + 1, 1), h.e > 14)
1560
1560
  U = Fc(h);
1561
1561
  else {
1562
- if (I = +T(h), I === 0) break;
1562
+ if (I = +S(h), I === 0) break;
1563
1563
  U = I % 2;
1564
1564
  }
1565
- R = R.times(R), B ? R.c && R.c.length > B && (R.c.length = B) : S && (R = R.mod(b));
1565
+ R = R.times(R), B ? R.c && R.c.length > B && (R.c.length = B) : T && (R = R.mod(b));
1566
1566
  }
1567
- return S ? F : (P && (F = a.div(F)), b ? F.mod(b) : B ? N(F, y, i, D) : F);
1567
+ return T ? F : (P && (F = a.div(F)), b ? F.mod(b) : B ? N(F, y, i, D) : F);
1568
1568
  }, s.integerValue = function(h) {
1569
1569
  var b = new w(this);
1570
1570
  return h == null ? h = i : lt(h, 0, 8), N(b, b.e + 1, h);
@@ -1577,7 +1577,7 @@ function fb(e) {
1577
1577
  }, s.isGreaterThanOrEqualTo = s.gte = function(h, b) {
1578
1578
  return (b = Us(this, new w(h, b))) === 1 || b === 0;
1579
1579
  }, s.isInteger = function() {
1580
- return !!this.c && Er(this.e / Ee) > this.c.length - 2;
1580
+ return !!this.c && Er(this.e / ve) > this.c.length - 2;
1581
1581
  }, s.isLessThan = s.lt = function(h, b) {
1582
1582
  return Us(this, new w(h, b)) < 0;
1583
1583
  }, s.isLessThanOrEqualTo = s.lte = function(h, b) {
@@ -1591,11 +1591,11 @@ function fb(e) {
1591
1591
  }, s.isZero = function() {
1592
1592
  return !!this.c && this.c[0] == 0;
1593
1593
  }, s.minus = function(h, b) {
1594
- var x, S, I, B, D = this, k = D.s;
1594
+ var x, T, I, B, D = this, k = D.s;
1595
1595
  if (h = new w(h, b), b = h.s, !k || !b) return new w(NaN);
1596
1596
  if (k != b)
1597
1597
  return h.s = -b, D.plus(h);
1598
- var P = D.e / Ee, U = h.e / Ee, F = D.c, R = h.c;
1598
+ var P = D.e / ve, U = h.e / ve, F = D.c, R = h.c;
1599
1599
  if (!P || !U) {
1600
1600
  if (!F || !R) return F ? (h.s = -b, h) : new w(R ? D : NaN);
1601
1601
  if (!F[0] || !R[0])
@@ -1608,47 +1608,47 @@ function fb(e) {
1608
1608
  for ((B = k < 0) ? (k = -k, I = F) : (U = P, I = R), I.reverse(), b = k; b--; I.push(0)) ;
1609
1609
  I.reverse();
1610
1610
  } else
1611
- for (S = (B = (k = F.length) < (b = R.length)) ? k : b, k = b = 0; b < S; b++)
1611
+ for (T = (B = (k = F.length) < (b = R.length)) ? k : b, k = b = 0; b < T; b++)
1612
1612
  if (F[b] != R[b]) {
1613
1613
  B = F[b] < R[b];
1614
1614
  break;
1615
1615
  }
1616
- if (B && (I = F, F = R, R = I, h.s = -h.s), b = (S = R.length) - (x = F.length), b > 0) for (; b--; F[x++] = 0) ;
1617
- for (b = Dr - 1; S > k; ) {
1618
- if (F[--S] < R[S]) {
1619
- for (x = S; x && !F[--x]; F[x] = b) ;
1620
- --F[x], F[S] += Dr;
1616
+ if (B && (I = F, F = R, R = I, h.s = -h.s), b = (T = R.length) - (x = F.length), b > 0) for (; b--; F[x++] = 0) ;
1617
+ for (b = Dr - 1; T > k; ) {
1618
+ if (F[--T] < R[T]) {
1619
+ for (x = T; x && !F[--x]; F[x] = b) ;
1620
+ --F[x], F[T] += Dr;
1621
1621
  }
1622
- F[S] -= R[S];
1622
+ F[T] -= R[T];
1623
1623
  }
1624
1624
  for (; F[0] == 0; F.splice(0, 1), --U) ;
1625
1625
  return F[0] ? O(h, F, U) : (h.s = i == 3 ? -1 : 1, h.c = [h.e = 0], h);
1626
1626
  }, s.modulo = s.mod = function(h, b) {
1627
- var x, S, I = this;
1628
- return h = new w(h, b), !I.c || !h.s || h.c && !h.c[0] ? new w(NaN) : !h.c || I.c && !I.c[0] ? new w(I) : (m == 9 ? (S = h.s, h.s = 1, x = t(I, h, 0, 3), h.s = S, x.s *= S) : x = t(I, h, 0, m), h = I.minus(x.times(h)), !h.c[0] && m == 1 && (h.s = I.s), h);
1627
+ var x, T, I = this;
1628
+ return h = new w(h, b), !I.c || !h.s || h.c && !h.c[0] ? new w(NaN) : !h.c || I.c && !I.c[0] ? new w(I) : (m == 9 ? (T = h.s, h.s = 1, x = t(I, h, 0, 3), h.s = T, x.s *= T) : x = t(I, h, 0, m), h = I.minus(x.times(h)), !h.c[0] && m == 1 && (h.s = I.s), h);
1629
1629
  }, s.multipliedBy = s.times = function(h, b) {
1630
- var x, S, I, B, D, k, P, U, F, R, L, $, Z, pe, be, ie = this, de = ie.c, Be = (h = new w(h, b)).c;
1630
+ var x, T, I, B, D, k, P, U, F, R, L, $, Z, pe, be, ie = this, de = ie.c, Be = (h = new w(h, b)).c;
1631
1631
  if (!de || !Be || !de[0] || !Be[0])
1632
1632
  return !ie.s || !h.s || de && !de[0] && !Be || Be && !Be[0] && !de ? h.c = h.e = h.s = null : (h.s *= ie.s, !de || !Be ? h.c = h.e = null : (h.c = [0], h.e = 0)), h;
1633
- for (S = Er(ie.e / Ee) + Er(h.e / Ee), h.s *= ie.s, P = de.length, R = Be.length, P < R && (Z = de, de = Be, Be = Z, I = P, P = R, R = I), I = P + R, Z = []; I--; Z.push(0)) ;
1633
+ for (T = Er(ie.e / ve) + Er(h.e / ve), h.s *= ie.s, P = de.length, R = Be.length, P < R && (Z = de, de = Be, Be = Z, I = P, P = R, R = I), I = P + R, Z = []; I--; Z.push(0)) ;
1634
1634
  for (pe = Dr, be = Zn, I = R; --I >= 0; ) {
1635
1635
  for (x = 0, L = Be[I] % be, $ = Be[I] / be | 0, D = P, B = I + D; B > I; )
1636
1636
  U = de[--D] % be, F = de[D] / be | 0, k = $ * U + F * L, U = L * U + k % be * be + Z[B] + x, x = (U / pe | 0) + (k / be | 0) + $ * F, Z[B--] = U % pe;
1637
1637
  Z[B] = x;
1638
1638
  }
1639
- return x ? ++S : Z.splice(0, 1), O(h, Z, S);
1639
+ return x ? ++T : Z.splice(0, 1), O(h, Z, T);
1640
1640
  }, s.negated = function() {
1641
1641
  var h = new w(this);
1642
1642
  return h.s = -h.s || null, h;
1643
1643
  }, s.plus = function(h, b) {
1644
- var x, S = this, I = S.s;
1644
+ var x, T = this, I = T.s;
1645
1645
  if (h = new w(h, b), b = h.s, !I || !b) return new w(NaN);
1646
1646
  if (I != b)
1647
- return h.s = -b, S.minus(h);
1648
- var B = S.e / Ee, D = h.e / Ee, k = S.c, P = h.c;
1647
+ return h.s = -b, T.minus(h);
1648
+ var B = T.e / ve, D = h.e / ve, k = T.c, P = h.c;
1649
1649
  if (!B || !D) {
1650
1650
  if (!k || !P) return new w(I / 0);
1651
- if (!k[0] || !P[0]) return P[0] ? h : new w(k[0] ? S : I * 0);
1651
+ if (!k[0] || !P[0]) return P[0] ? h : new w(k[0] ? T : I * 0);
1652
1652
  }
1653
1653
  if (B = Er(B), D = Er(D), k = k.slice(), I = B - D) {
1654
1654
  for (I > 0 ? (D = B, x = P) : (I = -I, x = k), x.reverse(); I--; x.push(0)) ;
@@ -1658,30 +1658,30 @@ function fb(e) {
1658
1658
  I = (k[--b] = k[b] + P[b] + I) / Dr | 0, k[b] = Dr === k[b] ? 0 : k[b] % Dr;
1659
1659
  return I && (k = [I].concat(k), ++D), O(h, k, D);
1660
1660
  }, s.precision = s.sd = function(h, b) {
1661
- var x, S, I, B = this;
1661
+ var x, T, I, B = this;
1662
1662
  if (h != null && h !== !!h)
1663
1663
  return lt(h, 1, Pt), b == null ? b = i : lt(b, 0, 8), N(new w(B), h, b);
1664
1664
  if (!(x = B.c)) return null;
1665
- if (I = x.length - 1, S = I * Ee + 1, I = x[I]) {
1666
- for (; I % 10 == 0; I /= 10, S--) ;
1667
- for (I = x[0]; I >= 10; I /= 10, S++) ;
1665
+ if (I = x.length - 1, T = I * ve + 1, I = x[I]) {
1666
+ for (; I % 10 == 0; I /= 10, T--) ;
1667
+ for (I = x[0]; I >= 10; I /= 10, T++) ;
1668
1668
  }
1669
- return h && B.e + 1 > S && (S = B.e + 1), S;
1669
+ return h && B.e + 1 > T && (T = B.e + 1), T;
1670
1670
  }, s.shiftedBy = function(h) {
1671
1671
  return lt(h, -rd, rd), this.times("1e" + h);
1672
1672
  }, s.squareRoot = s.sqrt = function() {
1673
- var h, b, x, S, I, B = this, D = B.c, k = B.s, P = B.e, U = o + 4, F = new w("0.5");
1673
+ var h, b, x, T, I, B = this, D = B.c, k = B.s, P = B.e, U = o + 4, F = new w("0.5");
1674
1674
  if (k !== 1 || !D || !D[0])
1675
1675
  return new w(!k || k < 0 && (!D || D[0]) ? NaN : D ? B : 1 / 0);
1676
- if (k = Math.sqrt(+T(B)), k == 0 || k == 1 / 0 ? (b = xr(D), (b.length + P) % 2 == 0 && (b += "0"), k = Math.sqrt(+b), P = Er((P + 1) / 2) - (P < 0 || P % 2), k == 1 / 0 ? b = "5e" + P : (b = k.toExponential(), b = b.slice(0, b.indexOf("e") + 1) + P), x = new w(b)) : x = new w(k + ""), x.c[0]) {
1676
+ if (k = Math.sqrt(+S(B)), k == 0 || k == 1 / 0 ? (b = xr(D), (b.length + P) % 2 == 0 && (b += "0"), k = Math.sqrt(+b), P = Er((P + 1) / 2) - (P < 0 || P % 2), k == 1 / 0 ? b = "5e" + P : (b = k.toExponential(), b = b.slice(0, b.indexOf("e") + 1) + P), x = new w(b)) : x = new w(k + ""), x.c[0]) {
1677
1677
  for (P = x.e, k = P + U, k < 3 && (k = 0); ; )
1678
1678
  if (I = x, x = F.times(I.plus(t(B, I, U, 1))), xr(I.c).slice(0, k) === (b = xr(x.c)).slice(0, k))
1679
- if (x.e < P && --k, b = b.slice(k - 3, k + 1), b == "9999" || !S && b == "4999") {
1680
- if (!S && (N(I, I.e + o + 2, 0), I.times(I).eq(B))) {
1679
+ if (x.e < P && --k, b = b.slice(k - 3, k + 1), b == "9999" || !T && b == "4999") {
1680
+ if (!T && (N(I, I.e + o + 2, 0), I.times(I).eq(B))) {
1681
1681
  x = I;
1682
1682
  break;
1683
1683
  }
1684
- U += 4, k += 4, S = 1;
1684
+ U += 4, k += 4, T = 1;
1685
1685
  } else {
1686
1686
  (!+b || !+b.slice(1) && b.charAt(0) == "5") && (N(x, x.e + o + 2, 1), h = !x.times(x).eq(B));
1687
1687
  break;
@@ -1693,42 +1693,42 @@ function fb(e) {
1693
1693
  }, s.toFixed = function(h, b) {
1694
1694
  return h != null && (lt(h, 0, Pt), h = h + this.e + 1), A(this, h, b);
1695
1695
  }, s.toFormat = function(h, b, x) {
1696
- var S, I = this;
1696
+ var T, I = this;
1697
1697
  if (x == null)
1698
1698
  h != null && b && typeof b == "object" ? (x = b, b = null) : h && typeof h == "object" ? (x = h, h = b = null) : x = g;
1699
1699
  else if (typeof x != "object")
1700
1700
  throw Error(Yt + "Argument not an object: " + x);
1701
- if (S = I.toFixed(h, b), I.c) {
1702
- var B, D = S.split("."), k = +x.groupSize, P = +x.secondaryGroupSize, U = x.groupSeparator || "", F = D[0], R = D[1], L = I.s < 0, $ = L ? F.slice(1) : F, Z = $.length;
1701
+ if (T = I.toFixed(h, b), I.c) {
1702
+ var B, D = T.split("."), k = +x.groupSize, P = +x.secondaryGroupSize, U = x.groupSeparator || "", F = D[0], R = D[1], L = I.s < 0, $ = L ? F.slice(1) : F, Z = $.length;
1703
1703
  if (P && (B = k, k = P, P = B, Z -= B), k > 0 && Z > 0) {
1704
1704
  for (B = Z % k || k, F = $.substr(0, B); B < Z; B += k) F += U + $.substr(B, k);
1705
1705
  P > 0 && (F += U + $.slice(B)), L && (F = "-" + F);
1706
1706
  }
1707
- S = R ? F + (x.decimalSeparator || "") + ((P = +x.fractionGroupSize) ? R.replace(
1707
+ T = R ? F + (x.decimalSeparator || "") + ((P = +x.fractionGroupSize) ? R.replace(
1708
1708
  new RegExp("\\d{" + P + "}\\B", "g"),
1709
1709
  "$&" + (x.fractionGroupSeparator || "")
1710
1710
  ) : R) : F;
1711
1711
  }
1712
- return (x.prefix || "") + S + (x.suffix || "");
1712
+ return (x.prefix || "") + T + (x.suffix || "");
1713
1713
  }, s.toFraction = function(h) {
1714
- var b, x, S, I, B, D, k, P, U, F, R, L, $ = this, Z = $.c;
1714
+ var b, x, T, I, B, D, k, P, U, F, R, L, $ = this, Z = $.c;
1715
1715
  if (h != null && (k = new w(h), !k.isInteger() && (k.c || k.s !== 1) || k.lt(a)))
1716
- throw Error(Yt + "Argument " + (k.isInteger() ? "out of range: " : "not an integer: ") + T(k));
1716
+ throw Error(Yt + "Argument " + (k.isInteger() ? "out of range: " : "not an integer: ") + S(k));
1717
1717
  if (!Z) return new w($);
1718
- for (b = new w(a), U = x = new w(a), S = P = new w(a), L = xr(Z), B = b.e = L.length - $.e - 1, b.c[0] = nd[(D = B % Ee) < 0 ? Ee + D : D], h = !h || k.comparedTo(b) > 0 ? B > 0 ? b : U : k, D = d, d = 1 / 0, k = new w(L), P.c[0] = 0; F = t(k, b, 0, 1), I = x.plus(F.times(S)), I.comparedTo(h) != 1; )
1719
- x = S, S = I, U = P.plus(F.times(I = U)), P = I, b = k.minus(F.times(I = b)), k = I;
1720
- return I = t(h.minus(x), S, 0, 1), P = P.plus(I.times(U)), x = x.plus(I.times(S)), P.s = U.s = $.s, B = B * 2, R = t(U, S, B, i).minus($).abs().comparedTo(
1718
+ for (b = new w(a), U = x = new w(a), T = P = new w(a), L = xr(Z), B = b.e = L.length - $.e - 1, b.c[0] = nd[(D = B % ve) < 0 ? ve + D : D], h = !h || k.comparedTo(b) > 0 ? B > 0 ? b : U : k, D = d, d = 1 / 0, k = new w(L), P.c[0] = 0; F = t(k, b, 0, 1), I = x.plus(F.times(T)), I.comparedTo(h) != 1; )
1719
+ x = T, T = I, U = P.plus(F.times(I = U)), P = I, b = k.minus(F.times(I = b)), k = I;
1720
+ return I = t(h.minus(x), T, 0, 1), P = P.plus(I.times(U)), x = x.plus(I.times(T)), P.s = U.s = $.s, B = B * 2, R = t(U, T, B, i).minus($).abs().comparedTo(
1721
1721
  t(P, x, B, i).minus($).abs()
1722
- ) < 1 ? [U, S] : [P, x], d = D, R;
1722
+ ) < 1 ? [U, T] : [P, x], d = D, R;
1723
1723
  }, s.toNumber = function() {
1724
- return +T(this);
1724
+ return +S(this);
1725
1725
  }, s.toPrecision = function(h, b) {
1726
1726
  return h != null && lt(h, 1, Pt), A(this, h, b, 2);
1727
1727
  }, s.toString = function(h) {
1728
- var b, x = this, S = x.s, I = x.e;
1729
- return I === null ? S ? (b = "Infinity", S < 0 && (b = "-" + b)) : b = "NaN" : (h == null ? b = I <= c || I >= l ? Uc(xr(x.c), I) : gn(xr(x.c), I, "0") : h === 10 && v ? (x = N(new w(x), o + I + 1, i), b = gn(xr(x.c), x.e, "0")) : (lt(h, 2, E.length, "Base"), b = r(gn(xr(x.c), I, "0"), 10, h, S, !0)), S < 0 && x.c[0] && (b = "-" + b)), b;
1728
+ var b, x = this, T = x.s, I = x.e;
1729
+ return I === null ? T ? (b = "Infinity", T < 0 && (b = "-" + b)) : b = "NaN" : (h == null ? b = I <= c || I >= l ? Uc(xr(x.c), I) : gn(xr(x.c), I, "0") : h === 10 && v ? (x = N(new w(x), o + I + 1, i), b = gn(xr(x.c), x.e, "0")) : (lt(h, 2, E.length, "Base"), b = r(gn(xr(x.c), I, "0"), 10, h, T, !0)), T < 0 && x.c[0] && (b = "-" + b)), b;
1730
1730
  }, s.valueOf = s.toJSON = function() {
1731
- return T(this);
1731
+ return S(this);
1732
1732
  }, s._isBigNumber = !0, s[Symbol.toStringTag] = "BigNumber", s[Symbol.for("nodejs.util.inspect.custom")] = s.valueOf, e != null && w.set(e), w;
1733
1733
  }
1734
1734
  function Er(e) {
@@ -1737,7 +1737,7 @@ function Er(e) {
1737
1737
  }
1738
1738
  function xr(e) {
1739
1739
  for (var t, r, n = 1, s = e.length, a = e[0] + ""; n < s; ) {
1740
- for (t = e[n++] + "", r = Ee - t.length; r--; t = "0" + t) ;
1740
+ for (t = e[n++] + "", r = ve - t.length; r--; t = "0" + t) ;
1741
1741
  a += t;
1742
1742
  }
1743
1743
  for (s = a.length; a.charCodeAt(--s) === 48; ) ;
@@ -1759,7 +1759,7 @@ function lt(e, t, r, n) {
1759
1759
  }
1760
1760
  function Fc(e) {
1761
1761
  var t = e.c.length - 1;
1762
- return Er(e.e / Ee) == t && e.c[t] % 2 != 0;
1762
+ return Er(e.e / ve) == t && e.c[t] % 2 != 0;
1763
1763
  }
1764
1764
  function Uc(e, t) {
1765
1765
  return (e.length > 1 ? e.charAt(0) + "." + e.slice(1) : e) + (t < 0 ? "e" : "e+") + t;
@@ -2103,15 +2103,15 @@ const aw = (e, t, r) => {
2103
2103
  const s = H(e).times(H(t)), a = H(10).pow(n), o = s.div(a);
2104
2104
  return H.max(1, o).integerValue(H.ROUND_FLOOR).toFixed(0);
2105
2105
  }, iw = (e, t, r, n) => {
2106
- if (e === xe.TWAP || e === xe.LIMIT)
2106
+ if (e === Ee.TWAP || e === Ee.LIMIT)
2107
2107
  return "0";
2108
2108
  if (!n || !t || !r) return;
2109
2109
  const s = H(t).times(H(r)), a = H(10).pow(n), o = s.div(a);
2110
2110
  return H.max(1, o).integerValue(H.ROUND_FLOOR).toFixed(0) || "0";
2111
2111
  }, cw = (e, t, r, n) => {
2112
2112
  const s = ys(r) * 2 * t, a = Zi(Xi.DURATION), o = R5(a ? Number(a) : s);
2113
- return a ? { unit: o, value: Number(H(Number(a) / o).toFixed(2)) } : n || (e === xe.LIMIT ? { unit: Jt.Days, value: 7 } : e === xe.STOP_LOSS || e === xe.TAKE_PROFIT ? { unit: Jt.Days, value: 1 } : { unit: o, value: Number(H(s / o).toFixed(2)) });
2114
- }, lw = (e, t, r) => t !== xe.TWAP ? 1 : r !== void 0 ? r : e, uw = (e, t, r, n) => {
2113
+ return a ? { unit: o, value: Number(H(Number(a) / o).toFixed(2)) } : n || (e === Ee.LIMIT ? { unit: Jt.Days, value: 7 } : e === Ee.STOP_LOSS || e === Ee.TAKE_PROFIT ? { unit: Jt.Days, value: 1 } : { unit: o, value: Number(H(s / o).toFixed(2)) });
2114
+ }, lw = (e, t, r) => t !== Ee.TWAP ? 1 : r !== void 0 ? r : e, uw = (e, t, r, n) => {
2115
2115
  if (!t || !r || !n) return 1;
2116
2116
  const a = H(r).times(t).div(n).integerValue(H.ROUND_FLOOR).toNumber(), o = Math.floor(
2117
2117
  ni / 2 / ys(e)
@@ -2121,30 +2121,30 @@ const aw = (e, t, r) => {
2121
2121
  isError: !(e.unit === rp.unit && e.value === rp.value) && ys(e) * t > ni,
2122
2122
  value: Math.floor(ni / t)
2123
2123
  }), mw = (e = "", t = "", r) => {
2124
- if (r === xe.STOP_LOSS)
2124
+ if (r === Ee.STOP_LOSS)
2125
2125
  return {
2126
2126
  isError: H(t || 0).gte(H(e || 0)),
2127
2127
  value: e
2128
2128
  };
2129
2129
  }, hw = (e = "", t = "", r) => {
2130
- if (r === xe.TAKE_PROFIT)
2130
+ if (r === Ee.TAKE_PROFIT)
2131
2131
  return {
2132
2132
  isError: H(t || 0).lte(H(e || 0)),
2133
2133
  value: e
2134
2134
  };
2135
2135
  }, bw = (e = "", t = "", r = !1, n) => {
2136
- if (!r && n === xe.STOP_LOSS)
2136
+ if (!r && n === Ee.STOP_LOSS)
2137
2137
  return {
2138
2138
  isError: H(t || 0).gte(H(e || 0)),
2139
2139
  value: e
2140
2140
  };
2141
2141
  }, yw = (e = "", t = "", r = !1, n) => {
2142
- if (!r && n === xe.TAKE_PROFIT)
2142
+ if (!r && n === Ee.TAKE_PROFIT)
2143
2143
  return {
2144
2144
  isError: H(t || 0).gte(H(e || 0)),
2145
2145
  value: e
2146
2146
  };
2147
- }, gw = (e, t) => e === xe.STOP_LOSS || e === xe.TAKE_PROFIT ? {
2147
+ }, gw = (e, t) => e === Ee.STOP_LOSS || e === Ee.TAKE_PROFIT ? {
2148
2148
  isError: ys(t) > 5184e6,
2149
2149
  value: 5184e6
2150
2150
  } : {
@@ -2161,7 +2161,7 @@ const aw = (e, t, r) => {
2161
2161
  isError: H(t || 0).multipliedBy(e || 0).isLessThan(r),
2162
2162
  value: r
2163
2163
  }), Ew = (e, t, r) => ({
2164
- isError: r === xe.TWAP && H(e).isGreaterThan(t),
2164
+ isError: r === Ee.TWAP && H(e).isGreaterThan(t),
2165
2165
  value: t
2166
2166
  }), gb = (e, t = 0) => {
2167
2167
  var o;
@@ -2218,7 +2218,7 @@ const aw = (e, t, r) => {
2218
2218
  config: d,
2219
2219
  module: f
2220
2220
  }) => {
2221
- const m = Date.now().toString(), y = parseInt((a / 1e3).toFixed(0)), g = N5(s / 1e3), E = Zi(Xi.FRESHNESS), v = E ? parseInt(E) : 60, w = f === xe.TAKE_PROFIT ? Ef : u, A = f === xe.TAKE_PROFIT ? u : l, C = {
2221
+ const m = Date.now().toString(), y = parseInt((a / 1e3).toFixed(0)), g = N5(s / 1e3), E = Zi(Xi.FRESHNESS), v = E ? parseInt(E) : 60, w = f === Ee.TAKE_PROFIT ? Ef : u, A = f === Ee.TAKE_PROFIT ? u : l, C = {
2222
2222
  permitted: {
2223
2223
  token: t,
2224
2224
  amount: n
@@ -2938,7 +2938,7 @@ const Yw = async ({
2938
2938
  }) => (await Promise.all([
2939
2939
  s ? Yw({ chainId: r, signal: e, page: t, limit: n, filters: { accounts: [a], configs: s.twapConfig ? [s.twapConfig] : [] } }) : Promise.resolve([]),
2940
2940
  zw({ chainId: r, signal: e, account: a, exchange: s == null ? void 0 : s.adapter })
2941
- ]).then(([c, l]) => [...c, ...l])).sort((c, l) => l.createdAt - c.createdAt), Jw = "0.0.82", e3 = {
2941
+ ]).then(([c, l]) => [...c, ...l])).sort((c, l) => l.createdAt - c.createdAt), Jw = "0.0.84", e3 = {
2942
2942
  version: Jw
2943
2943
  };
2944
2944
  var yo = class {
@@ -3527,12 +3527,12 @@ var Hs, ab, Pb = (ab = class {
3527
3527
  });
3528
3528
  }, a = () => {
3529
3529
  const C = Cb(this.options, r), N = (() => {
3530
- const T = {
3530
+ const S = {
3531
3531
  client: _(this, js),
3532
3532
  queryKey: this.queryKey,
3533
3533
  meta: this.meta
3534
3534
  };
3535
- return s(T), T;
3535
+ return s(S), S;
3536
3536
  })();
3537
3537
  return X(this, Vs, !1), this.options.persister ? this.options.persister(
3538
3538
  C,
@@ -3828,8 +3828,8 @@ var Xt, Oe, Vi, Gt, Ws, Za, Pn, as, Wi, Xa, Qa, qs, Ks, os, Ja, qe, Yo, dp, pp,
3828
3828
  const n = _(this, Oe), s = this.options, a = _(this, Gt), o = _(this, Ws), i = _(this, Za), l = t !== n ? t.state : _(this, Vi), { state: u } = t;
3829
3829
  let d = { ...u }, f = !1, m;
3830
3830
  if (r._optimisticResults) {
3831
- const x = this.hasListeners(), S = !x && Zm(t, r), I = x && Xm(t, n, r, s);
3832
- (S || I) && (d = {
3831
+ const x = this.hasListeners(), T = !x && Zm(t, r), I = x && Xm(t, n, r, s);
3832
+ (T || I) && (d = {
3833
3833
  ...d,
3834
3834
  ...Ib(u.data, t.options)
3835
3835
  }), r._optimisticResults === "isRestoring" && (d.fetchStatus = "idle");
@@ -3889,7 +3889,7 @@ var Xt, Oe, Vi, Gt, Ws, Za, Pn, as, Wi, Xa, Qa, qs, Ks, os, Ja, qe, Yo, dp, pp,
3889
3889
  if (this.options.experimental_prefetchInRender) {
3890
3890
  const x = (B) => {
3891
3891
  h.status === "error" ? B.reject(h.error) : h.data !== void 0 && B.resolve(h.data);
3892
- }, S = () => {
3892
+ }, T = () => {
3893
3893
  const B = X(this, Pn, h.promise = lp());
3894
3894
  x(B);
3895
3895
  }, I = _(this, Pn);
@@ -3898,10 +3898,10 @@ var Xt, Oe, Vi, Gt, Ws, Za, Pn, as, Wi, Xa, Qa, qs, Ks, os, Ja, qe, Yo, dp, pp,
3898
3898
  t.queryHash === n.queryHash && x(I);
3899
3899
  break;
3900
3900
  case "fulfilled":
3901
- (h.status === "error" || h.data !== I.value) && S();
3901
+ (h.status === "error" || h.data !== I.value) && T();
3902
3902
  break;
3903
3903
  case "rejected":
3904
- (h.status !== "error" || h.error !== I.reason) && S();
3904
+ (h.status !== "error" || h.error !== I.reason) && T();
3905
3905
  break;
3906
3906
  }
3907
3907
  }
@@ -4020,16 +4020,16 @@ function Qm(e) {
4020
4020
  return Promise.reject();
4021
4021
  if (C == null && A.pages.length)
4022
4022
  return Promise.resolve(A);
4023
- const T = (() => {
4024
- const S = {
4023
+ const S = (() => {
4024
+ const T = {
4025
4025
  client: t.client,
4026
4026
  queryKey: t.queryKey,
4027
4027
  pageParam: C,
4028
4028
  direction: O ? "backward" : "forward",
4029
4029
  meta: t.options.meta
4030
4030
  };
4031
- return E(S), S;
4032
- })(), h = await v(T), { maxPages: b } = t.options, x = O ? c3 : i3;
4031
+ return E(T), T;
4032
+ })(), h = await v(S), { maxPages: b } = t.options, x = O ? c3 : i3;
4033
4033
  return {
4034
4034
  pages: x(A.pages, h, b),
4035
4035
  pageParams: x(A.pageParams, C, b)
@@ -4121,7 +4121,7 @@ var qi, tn, jt, Ys, rn, ts, cb, x3 = (cb = class extends Pb {
4121
4121
  this.execute(this.state.variables);
4122
4122
  }
4123
4123
  async execute(t) {
4124
- var o, i, c, l, u, d, f, m, y, g, E, v, w, A, C, O, N, T, h, b;
4124
+ var o, i, c, l, u, d, f, m, y, g, E, v, w, A, C, O, N, S, h, b;
4125
4125
  const r = () => {
4126
4126
  Se(this, rn, ts).call(this, { type: "continue" });
4127
4127
  }, n = {
@@ -4131,8 +4131,8 @@ var qi, tn, jt, Ys, rn, ts, cb, x3 = (cb = class extends Pb {
4131
4131
  };
4132
4132
  X(this, Ys, Sb({
4133
4133
  fn: () => this.options.mutationFn ? this.options.mutationFn(t, n) : Promise.reject(new Error("No mutationFn found")),
4134
- onFail: (x, S) => {
4135
- Se(this, rn, ts).call(this, { type: "failed", failureCount: x, error: S });
4134
+ onFail: (x, T) => {
4135
+ Se(this, rn, ts).call(this, { type: "failed", failureCount: x, error: T });
4136
4136
  },
4137
4137
  onPause: () => {
4138
4138
  Se(this, rn, ts).call(this, { type: "pause" });
@@ -4154,14 +4154,14 @@ var qi, tn, jt, Ys, rn, ts, cb, x3 = (cb = class extends Pb {
4154
4154
  this,
4155
4155
  n
4156
4156
  ));
4157
- const S = await ((l = (c = this.options).onMutate) == null ? void 0 : l.call(
4157
+ const T = await ((l = (c = this.options).onMutate) == null ? void 0 : l.call(
4158
4158
  c,
4159
4159
  t,
4160
4160
  n
4161
4161
  ));
4162
- S !== this.state.context && Se(this, rn, ts).call(this, {
4162
+ T !== this.state.context && Se(this, rn, ts).call(this, {
4163
4163
  type: "pending",
4164
- context: S,
4164
+ context: T,
4165
4165
  variables: t,
4166
4166
  isPaused: a
4167
4167
  });
@@ -4211,7 +4211,7 @@ var qi, tn, jt, Ys, rn, ts, cb, x3 = (cb = class extends Pb {
4211
4211
  t,
4212
4212
  this.state.context,
4213
4213
  n
4214
- )), await ((T = (N = _(this, jt).config).onSettled) == null ? void 0 : T.call(
4214
+ )), await ((S = (N = _(this, jt).config).onSettled) == null ? void 0 : S.call(
4215
4215
  N,
4216
4216
  void 0,
4217
4217
  x,
@@ -5029,7 +5029,7 @@ const rh = (e) => {
5029
5029
  disclaimerAccepted: !0,
5030
5030
  currentTime: Date.now(),
5031
5031
  swapExecution: {}
5032
- }, ee = G3((e, t) => ({
5032
+ }, J = G3((e, t) => ({
5033
5033
  state: nh,
5034
5034
  updateState: (r) => e((n) => ({ state: { ...n.state, ...r } })),
5035
5035
  updateSwapExecution: (r) => e((n) => ({ state: { ...n.state, swapExecution: { ...n.state.swapExecution, ...r } } })),
@@ -9513,15 +9513,15 @@ class My extends Dy {
9513
9513
  for (let A = 0; A < 16; A++, r += 4)
9514
9514
  Jn[A] = t.getUint32(r), es[A] = t.getUint32(r += 4);
9515
9515
  for (let A = 16; A < 80; A++) {
9516
- const C = Jn[A - 15] | 0, O = es[A - 15] | 0, N = va(C, O, 1) ^ va(C, O, 8) ^ gh(C, O, 7), T = Ea(C, O, 1) ^ Ea(C, O, 8) ^ xh(C, O, 7), h = Jn[A - 2] | 0, b = es[A - 2] | 0, x = va(h, b, 19) ^ _c(h, b, 61) ^ gh(h, b, 6), S = Ea(h, b, 19) ^ Mc(h, b, 61) ^ xh(h, b, 6), I = Tv(T, S, es[A - 7], es[A - 16]), B = Av(I, N, x, Jn[A - 7], Jn[A - 16]);
9516
+ const C = Jn[A - 15] | 0, O = es[A - 15] | 0, N = va(C, O, 1) ^ va(C, O, 8) ^ gh(C, O, 7), S = Ea(C, O, 1) ^ Ea(C, O, 8) ^ xh(C, O, 7), h = Jn[A - 2] | 0, b = es[A - 2] | 0, x = va(h, b, 19) ^ _c(h, b, 61) ^ gh(h, b, 6), T = Ea(h, b, 19) ^ Mc(h, b, 61) ^ xh(h, b, 6), I = Tv(S, T, es[A - 7], es[A - 16]), B = Av(I, N, x, Jn[A - 7], Jn[A - 16]);
9517
9517
  Jn[A] = B | 0, es[A] = I | 0;
9518
9518
  }
9519
9519
  let { Ah: n, Al: s, Bh: a, Bl: o, Ch: i, Cl: c, Dh: l, Dl: u, Eh: d, El: f, Fh: m, Fl: y, Gh: g, Gl: E, Hh: v, Hl: w } = this;
9520
9520
  for (let A = 0; A < 80; A++) {
9521
- const C = va(d, f, 14) ^ va(d, f, 18) ^ _c(d, f, 41), O = Ea(d, f, 14) ^ Ea(d, f, 18) ^ Mc(d, f, 41), N = d & m ^ ~d & g, T = f & y ^ ~f & E, h = Sv(w, O, T, ik[A], es[A]), b = Pv(h, v, C, N, ok[A], Jn[A]), x = h | 0, S = va(n, s, 28) ^ _c(n, s, 34) ^ _c(n, s, 39), I = Ea(n, s, 28) ^ Mc(n, s, 34) ^ Mc(n, s, 39), B = n & a ^ n & i ^ a & i, D = s & o ^ s & c ^ o & c;
9521
+ const C = va(d, f, 14) ^ va(d, f, 18) ^ _c(d, f, 41), O = Ea(d, f, 14) ^ Ea(d, f, 18) ^ Mc(d, f, 41), N = d & m ^ ~d & g, S = f & y ^ ~f & E, h = Sv(w, O, S, ik[A], es[A]), b = Pv(h, v, C, N, ok[A], Jn[A]), x = h | 0, T = va(n, s, 28) ^ _c(n, s, 34) ^ _c(n, s, 39), I = Ea(n, s, 28) ^ Mc(n, s, 34) ^ Mc(n, s, 39), B = n & a ^ n & i ^ a & i, D = s & o ^ s & c ^ o & c;
9522
9522
  v = g | 0, w = E | 0, g = m | 0, E = y | 0, m = d | 0, y = f | 0, { h: d, l: f } = vn(l | 0, u | 0, b | 0, x | 0), l = i | 0, u = c | 0, i = a | 0, c = o | 0, a = n | 0, o = s | 0;
9523
9523
  const k = kv(x, I, D);
9524
- n = Cv(k, b, S, B), s = k | 0;
9524
+ n = Cv(k, b, T, B), s = k | 0;
9525
9525
  }
9526
9526
  ({ h: n, l: s } = vn(this.Ah | 0, this.Al | 0, n | 0, s | 0)), { h: a, l: o } = vn(this.Bh | 0, this.Bl | 0, a | 0, o | 0), { h: i, l: c } = vn(this.Ch | 0, this.Cl | 0, i | 0, c | 0), { h: l, l: u } = vn(this.Dh | 0, this.Dl | 0, l | 0, u | 0), { h: d, l: f } = vn(this.Eh | 0, this.El | 0, d | 0, f | 0), { h: m, l: y } = vn(this.Fh | 0, this.Fl | 0, m | 0, y | 0), { h: g, l: E } = vn(this.Gh | 0, this.Gl | 0, g | 0, E | 0), { h: v, l: w } = vn(this.Hh | 0, this.Hl | 0, v | 0, w | 0), this.set(n, s, a, o, i, c, l, u, d, f, m, y, g, E, v, w);
9527
9527
  }
@@ -9657,7 +9657,7 @@ async function Cs(e) {
9657
9657
  return pr(t);
9658
9658
  }
9659
9659
  async function Jf(e, t) {
9660
- var h, b, x, S, I;
9660
+ var h, b, x, T, I;
9661
9661
  const { account: r = e.account, accessList: n, authorizationList: s, chain: a = e.chain, blobVersionedHashes: o, blobs: i, data: c, gas: l, gasPrice: u, maxFeePerBlobGas: d, maxFeePerGas: f, maxPriorityFeePerGas: m, nonce: y, nonceManager: g, to: E, type: v, value: w, ...A } = t, C = await (async () => {
9662
9662
  if (!r || !g || typeof y < "u")
9663
9663
  return y;
@@ -9669,7 +9669,7 @@ async function Jf(e, t) {
9669
9669
  });
9670
9670
  })();
9671
9671
  mn(t);
9672
- const O = (b = (h = a == null ? void 0 : a.formatters) == null ? void 0 : h.transactionRequest) == null ? void 0 : b.format, T = (O || Yr)({
9672
+ const O = (b = (h = a == null ? void 0 : a.formatters) == null ? void 0 : h.transactionRequest) == null ? void 0 : b.format, S = (O || Yr)({
9673
9673
  // Pick out extra data that might exist on the chain's transaction request type.
9674
9674
  ...ma(A, { format: O }),
9675
9675
  account: r ? Qe(r) : void 0,
@@ -9691,8 +9691,8 @@ async function Jf(e, t) {
9691
9691
  try {
9692
9692
  const B = await e.request({
9693
9693
  method: "eth_fillTransaction",
9694
- params: [T]
9695
- }), k = (((S = (x = a == null ? void 0 : a.formatters) == null ? void 0 : x.transaction) == null ? void 0 : S.format) || ha)(B.tx);
9694
+ params: [S]
9695
+ }), k = (((T = (x = a == null ? void 0 : a.formatters) == null ? void 0 : x.transaction) == null ? void 0 : T.format) || ha)(B.tx);
9696
9696
  delete k.blockHash, delete k.blockNumber, delete k.r, delete k.s, delete k.transactionIndex, delete k.v, delete k.yParity, k.data = k.input, k.gas && (k.gas = t.gas ?? k.gas), k.gasPrice && (k.gasPrice = t.gasPrice ?? k.gasPrice), k.maxFeePerBlobGas && (k.maxFeePerBlobGas = t.maxFeePerBlobGas ?? k.maxFeePerBlobGas), k.maxFeePerGas && (k.maxFeePerGas = t.maxFeePerGas ?? k.maxFeePerGas), k.maxPriorityFeePerGas && (k.maxPriorityFeePerGas = t.maxPriorityFeePerGas ?? k.maxPriorityFeePerGas), k.nonce && (k.nonce = t.nonce ?? k.nonce);
9697
9697
  const P = await (async () => {
9698
9698
  var L, $;
@@ -9712,7 +9712,7 @@ async function Jf(e, t) {
9712
9712
  return k.maxFeePerGas && !t.maxFeePerGas && (k.maxFeePerGas = R(k.maxFeePerGas)), k.gasPrice && !t.gasPrice && (k.gasPrice = R(k.gasPrice)), {
9713
9713
  raw: B.raw,
9714
9714
  transaction: {
9715
- from: T.from,
9715
+ from: S.from,
9716
9716
  ...k
9717
9717
  }
9718
9718
  };
@@ -9754,36 +9754,36 @@ async function ac(e, t) {
9754
9754
  const u = n && Qe(n);
9755
9755
  let d = r.nonce;
9756
9756
  if (o.includes("nonce") && typeof d > "u" && u && a) {
9757
- const T = await l();
9757
+ const S = await l();
9758
9758
  d = await a.consume({
9759
9759
  address: u.address,
9760
- chainId: T,
9760
+ chainId: S,
9761
9761
  client: e
9762
9762
  });
9763
9763
  }
9764
9764
  i != null && i.fn && ((C = i.runAt) != null && C.includes("beforeFillTransaction")) && (r = await i.fn({ ...r, chain: s }, {
9765
9765
  phase: "beforeFillTransaction"
9766
9766
  }), d ?? (d = r.nonce));
9767
- const m = ((o.includes("blobVersionedHashes") || o.includes("sidecars")) && r.kzg && r.blobs || fd.get(e.uid) === !1 || !["fees", "gas"].some((h) => o.includes(h)) ? !1 : !!(o.includes("chainId") && typeof r.chainId != "number" || o.includes("nonce") && typeof d != "number" || o.includes("fees") && typeof r.gasPrice != "bigint" && (typeof r.maxFeePerGas != "bigint" || typeof r.maxPriorityFeePerGas != "bigint") || o.includes("gas") && typeof r.gas != "bigint")) ? await se(e, Jf, "fillTransaction")({ ...r, nonce: d }).then((T) => {
9768
- const { chainId: h, from: b, gas: x, gasPrice: S, nonce: I, maxFeePerBlobGas: B, maxFeePerGas: D, maxPriorityFeePerGas: k, type: P, ...U } = T.transaction;
9767
+ const m = ((o.includes("blobVersionedHashes") || o.includes("sidecars")) && r.kzg && r.blobs || fd.get(e.uid) === !1 || !["fees", "gas"].some((h) => o.includes(h)) ? !1 : !!(o.includes("chainId") && typeof r.chainId != "number" || o.includes("nonce") && typeof d != "number" || o.includes("fees") && typeof r.gasPrice != "bigint" && (typeof r.maxFeePerGas != "bigint" || typeof r.maxPriorityFeePerGas != "bigint") || o.includes("gas") && typeof r.gas != "bigint")) ? await se(e, Jf, "fillTransaction")({ ...r, nonce: d }).then((S) => {
9768
+ const { chainId: h, from: b, gas: x, gasPrice: T, nonce: I, maxFeePerBlobGas: B, maxFeePerGas: D, maxPriorityFeePerGas: k, type: P, ...U } = S.transaction;
9769
9769
  return fd.set(e.uid, !0), {
9770
9770
  ...r,
9771
9771
  ...b ? { from: b } : {},
9772
9772
  ...P ? { type: P } : {},
9773
9773
  ...typeof h < "u" ? { chainId: h } : {},
9774
9774
  ...typeof x < "u" ? { gas: x } : {},
9775
- ...typeof S < "u" ? { gasPrice: S } : {},
9775
+ ...typeof T < "u" ? { gasPrice: T } : {},
9776
9776
  ...typeof I < "u" ? { nonce: I } : {},
9777
9777
  ...typeof B < "u" ? { maxFeePerBlobGas: B } : {},
9778
9778
  ...typeof D < "u" ? { maxFeePerGas: D } : {},
9779
9779
  ...typeof k < "u" ? { maxPriorityFeePerGas: k } : {},
9780
9780
  ..."nonceKey" in U && typeof U.nonceKey < "u" ? { nonceKey: U.nonceKey } : {}
9781
9781
  };
9782
- }).catch((T) => {
9782
+ }).catch((S) => {
9783
9783
  var x;
9784
- const h = T;
9785
- return h.name !== "TransactionExecutionError" || ((x = h.walk) == null ? void 0 : x.call(h, (S) => {
9786
- const I = S;
9784
+ const h = S;
9785
+ return h.name !== "TransactionExecutionError" || ((x = h.walk) == null ? void 0 : x.call(h, (T) => {
9786
+ const I = T;
9787
9787
  return I.name === "MethodNotFoundRpcError" || I.name === "MethodNotSupportedRpcError";
9788
9788
  })) && fd.set(e.uid, !1), r;
9789
9789
  }) : r;
@@ -9804,18 +9804,18 @@ async function ac(e, t) {
9804
9804
  address: u.address,
9805
9805
  blockTag: "pending"
9806
9806
  })), (o.includes("blobVersionedHashes") || o.includes("sidecars")) && y && E) {
9807
- const T = Kf({ blobs: y, kzg: E });
9807
+ const S = Kf({ blobs: y, kzg: E });
9808
9808
  if (o.includes("blobVersionedHashes")) {
9809
9809
  const h = Ly({
9810
- commitments: T,
9810
+ commitments: S,
9811
9811
  to: "hex"
9812
9812
  });
9813
9813
  r.blobVersionedHashes = h;
9814
9814
  }
9815
9815
  if (o.includes("sidecars")) {
9816
- const h = Yf({ blobs: y, commitments: T, kzg: E }), b = jy({
9816
+ const h = Yf({ blobs: y, commitments: S, kzg: E }), b = jy({
9817
9817
  blobs: y,
9818
- commitments: T,
9818
+ commitments: S,
9819
9819
  proofs: h,
9820
9820
  to: "hex"
9821
9821
  });
@@ -9826,18 +9826,18 @@ async function ac(e, t) {
9826
9826
  try {
9827
9827
  r.type = Qf(r);
9828
9828
  } catch {
9829
- let T = Dh.get(e.uid);
9830
- if (typeof T > "u") {
9829
+ let S = Dh.get(e.uid);
9830
+ if (typeof S > "u") {
9831
9831
  const h = await A();
9832
- T = typeof (h == null ? void 0 : h.baseFeePerGas) == "bigint", Dh.set(e.uid, T);
9832
+ S = typeof (h == null ? void 0 : h.baseFeePerGas) == "bigint", Dh.set(e.uid, S);
9833
9833
  }
9834
- r.type = T ? "eip1559" : "legacy";
9834
+ r.type = S ? "eip1559" : "legacy";
9835
9835
  }
9836
9836
  if (o.includes("fees"))
9837
9837
  if (r.type !== "legacy" && r.type !== "eip2930") {
9838
9838
  if (typeof r.maxFeePerGas > "u" || typeof r.maxPriorityFeePerGas > "u") {
9839
- const T = await A(), { maxFeePerGas: h, maxPriorityFeePerGas: b } = await Rp(e, {
9840
- block: T,
9839
+ const S = await A(), { maxFeePerGas: h, maxPriorityFeePerGas: b } = await Rp(e, {
9840
+ block: S,
9841
9841
  chain: s,
9842
9842
  request: r
9843
9843
  });
@@ -9851,8 +9851,8 @@ async function ac(e, t) {
9851
9851
  if (typeof r.maxFeePerGas < "u" || typeof r.maxPriorityFeePerGas < "u")
9852
9852
  throw new Gf();
9853
9853
  if (typeof r.gasPrice > "u") {
9854
- const T = await A(), { gasPrice: h } = await Rp(e, {
9855
- block: T,
9854
+ const S = await A(), { gasPrice: h } = await Rp(e, {
9855
+ block: S,
9856
9856
  chain: s,
9857
9857
  request: r,
9858
9858
  type: "legacy"
@@ -9886,14 +9886,14 @@ async function t0(e, t) {
9886
9886
  }).catch(() => {
9887
9887
  throw new z("`to` is required. Could not infer from `authorizationList`");
9888
9888
  });
9889
- })(), { accessList: u, authorizationList: d, blobs: f, blobVersionedHashes: m, blockNumber: y, blockTag: g, data: E, gas: v, gasPrice: w, maxFeePerBlobGas: A, maxFeePerGas: C, maxPriorityFeePerGas: O, nonce: N, value: T, stateOverride: h, ...b } = n ? await ac(e, {
9889
+ })(), { accessList: u, authorizationList: d, blobs: f, blobVersionedHashes: m, blockNumber: y, blockTag: g, data: E, gas: v, gasPrice: w, maxFeePerBlobGas: A, maxFeePerGas: C, maxPriorityFeePerGas: O, nonce: N, value: S, stateOverride: h, ...b } = n ? await ac(e, {
9890
9890
  ...t,
9891
9891
  parameters: a,
9892
9892
  to: l
9893
9893
  }) : t;
9894
9894
  if (v && t.gas !== v)
9895
9895
  return v;
9896
- const S = (typeof y == "bigint" ? V(y) : void 0) || g, I = Hf(h);
9896
+ const T = (typeof y == "bigint" ? V(y) : void 0) || g, I = Hf(h);
9897
9897
  mn(t);
9898
9898
  const B = (c = (i = (o = e.chain) == null ? void 0 : o.formatters) == null ? void 0 : i.transactionRequest) == null ? void 0 : c.format, k = (B || Yr)({
9899
9899
  // Pick out extra data that might exist on the chain's transaction request type.
@@ -9910,15 +9910,15 @@ async function t0(e, t) {
9910
9910
  maxPriorityFeePerGas: O,
9911
9911
  nonce: N,
9912
9912
  to: l,
9913
- value: T
9913
+ value: S
9914
9914
  }, "estimateGas");
9915
9915
  return BigInt(await e.request({
9916
9916
  method: "eth_estimateGas",
9917
9917
  params: I ? [
9918
9918
  k,
9919
- S ?? e.experimental_blockTag ?? "latest",
9919
+ T ?? e.experimental_blockTag ?? "latest",
9920
9920
  I
9921
- ] : S ? [k, S] : [k]
9921
+ ] : T ? [k, T] : [k]
9922
9922
  }));
9923
9923
  } catch (l) {
9924
9924
  throw WE(l, {
@@ -11536,12 +11536,12 @@ function mg({ fn: e, id: t, shouldSplitBatch: r, wait: n = 0, sort: s }) {
11536
11536
  }
11537
11537
  async function gu(e, t) {
11538
11538
  var B, D, k, P;
11539
- const { account: r = e.account, authorizationList: n, batch: s = !!((B = e.batch) != null && B.multicall), blockNumber: a, blockTag: o = e.experimental_blockTag ?? "latest", accessList: i, blobs: c, blockOverrides: l, code: u, data: d, factory: f, factoryData: m, gas: y, gasPrice: g, maxFeePerBlobGas: E, maxFeePerGas: v, maxPriorityFeePerGas: w, nonce: A, to: C, value: O, stateOverride: N, ...T } = t, h = r ? Qe(r) : void 0;
11539
+ const { account: r = e.account, authorizationList: n, batch: s = !!((B = e.batch) != null && B.multicall), blockNumber: a, blockTag: o = e.experimental_blockTag ?? "latest", accessList: i, blobs: c, blockOverrides: l, code: u, data: d, factory: f, factoryData: m, gas: y, gasPrice: g, maxFeePerBlobGas: E, maxFeePerGas: v, maxPriorityFeePerGas: w, nonce: A, to: C, value: O, stateOverride: N, ...S } = t, h = r ? Qe(r) : void 0;
11540
11540
  if (u && (f || m))
11541
11541
  throw new z("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
11542
11542
  if (u && C)
11543
11543
  throw new z("Cannot provide both `code` & `to` as parameters.");
11544
- const b = u && d, x = f && m && C && d, S = b || x, I = b ? hg({
11544
+ const b = u && d, x = f && m && C && d, T = b || x, I = b ? hg({
11545
11545
  code: u,
11546
11546
  data: d
11547
11547
  }) : x ? o7({
@@ -11554,7 +11554,7 @@ async function gu(e, t) {
11554
11554
  mn(t);
11555
11555
  const F = (typeof a == "bigint" ? V(a) : void 0) || o, R = l ? ig(l) : void 0, L = Hf(N), $ = (P = (k = (D = e.chain) == null ? void 0 : D.formatters) == null ? void 0 : k.transactionRequest) == null ? void 0 : P.format, pe = ($ || Yr)({
11556
11556
  // Pick out extra data that might exist on the chain's transaction request type.
11557
- ...ma(T, { format: $ }),
11557
+ ...ma(S, { format: $ }),
11558
11558
  accessList: i,
11559
11559
  account: h,
11560
11560
  authorizationList: n,
@@ -11566,7 +11566,7 @@ async function gu(e, t) {
11566
11566
  maxFeePerGas: v,
11567
11567
  maxPriorityFeePerGas: w,
11568
11568
  nonce: A,
11569
- to: S ? void 0 : C,
11569
+ to: T ? void 0 : C,
11570
11570
  value: O
11571
11571
  }, "call");
11572
11572
  if (s && s7({ request: pe }) && !L && !R)
@@ -11592,10 +11592,10 @@ async function gu(e, t) {
11592
11592
  });
11593
11593
  return ie === "0x" ? { data: void 0 } : { data: ie };
11594
11594
  } catch (U) {
11595
- const F = i7(U), { offchainLookup: R, offchainLookupSignature: L } = await import("./ccip-BRRC7Ayf.js");
11595
+ const F = i7(U), { offchainLookup: R, offchainLookupSignature: L } = await import("./ccip-DMctUrv3.js");
11596
11596
  if (e.ccipRead !== !1 && (F == null ? void 0 : F.slice(0, 10)) === L && C)
11597
11597
  return { data: await R(e, { data: F, to: C }) };
11598
- throw S && (F == null ? void 0 : F.slice(0, 10)) === "0x101bb98d" ? new ME({ factory: f }) : l0(U, {
11598
+ throw T && (F == null ? void 0 : F.slice(0, 10)) === "0x101bb98d" ? new ME({ factory: f }) : l0(U, {
11599
11599
  ...t,
11600
11600
  account: h,
11601
11601
  chain: e.chain
@@ -11876,7 +11876,7 @@ function h7(e, t) {
11876
11876
  i !== void 0 && (A = i - 1n);
11877
11877
  let C, O = !1;
11878
11878
  const N = ko(async () => {
11879
- var T;
11879
+ var S;
11880
11880
  if (!O) {
11881
11881
  try {
11882
11882
  C = await se(e, gy, "createContractEventFilter")({
@@ -11916,7 +11916,7 @@ function h7(e, t) {
11916
11916
  for (const b of h)
11917
11917
  w.onLogs([b]);
11918
11918
  } catch (h) {
11919
- C && h instanceof xs && (O = !1), (T = w.onError) == null || T.call(w, h);
11919
+ C && h instanceof xs && (O = !1), (S = w.onError) == null || S.call(w, h);
11920
11920
  }
11921
11921
  }, {
11922
11922
  emitOnBegin: !0,
@@ -11950,7 +11950,7 @@ function h7(e, t) {
11950
11950
  abi: r,
11951
11951
  eventName: o,
11952
11952
  args: s
11953
- }) : [], { unsubscribe: T } = await O.subscribe({
11953
+ }) : [], { unsubscribe: S } = await O.subscribe({
11954
11954
  params: ["logs", { address: n, topics: N }],
11955
11955
  onData(h) {
11956
11956
  var x;
@@ -11958,22 +11958,22 @@ function h7(e, t) {
11958
11958
  return;
11959
11959
  const b = h.result;
11960
11960
  try {
11961
- const { eventName: S, args: I } = Ml({
11961
+ const { eventName: T, args: I } = Ml({
11962
11962
  abi: r,
11963
11963
  data: b.data,
11964
11964
  topics: b.topics,
11965
11965
  strict: f
11966
11966
  }), B = un(b, {
11967
11967
  args: I,
11968
- eventName: S
11968
+ eventName: T
11969
11969
  });
11970
11970
  C.onLogs([B]);
11971
- } catch (S) {
11971
+ } catch (T) {
11972
11972
  let I, B;
11973
- if (S instanceof _l || S instanceof If) {
11973
+ if (T instanceof _l || T instanceof If) {
11974
11974
  if (f)
11975
11975
  return;
11976
- I = S.abiItem.name, B = (x = S.abiItem.inputs) == null ? void 0 : x.some((k) => !("name" in k && k.name));
11976
+ I = T.abiItem.name, B = (x = T.abiItem.inputs) == null ? void 0 : x.some((k) => !("name" in k && k.name));
11977
11977
  }
11978
11978
  const D = un(b, {
11979
11979
  args: B ? [] : {},
@@ -11987,7 +11987,7 @@ function h7(e, t) {
11987
11987
  (b = C.onError) == null || b.call(C, h);
11988
11988
  }
11989
11989
  });
11990
- A = T, w || A();
11990
+ A = S, w || A();
11991
11991
  } catch (O) {
11992
11992
  c == null || c(O);
11993
11993
  }
@@ -12050,9 +12050,9 @@ async function vu(e, t) {
12050
12050
  });
12051
12051
  })();
12052
12052
  if ((v == null ? void 0 : v.type) === "json-rpc" || v === null) {
12053
- let T;
12054
- n !== null && (T = await se(e, Cs, "getChainId")({}), d0({
12055
- currentChainId: T,
12053
+ let S;
12054
+ n !== null && (S = await se(e, Cs, "getChainId")({}), d0({
12055
+ currentChainId: S,
12056
12056
  chain: n
12057
12057
  }));
12058
12058
  const h = (C = (A = (w = e.chain) == null ? void 0 : w.formatters) == null ? void 0 : A.transactionRequest) == null ? void 0 : C.format, x = (h || Yr)({
@@ -12062,7 +12062,7 @@ async function vu(e, t) {
12062
12062
  account: v,
12063
12063
  authorizationList: a,
12064
12064
  blobs: o,
12065
- chainId: T,
12065
+ chainId: S,
12066
12066
  data: i,
12067
12067
  gas: c,
12068
12068
  gasPrice: l,
@@ -12073,14 +12073,14 @@ async function vu(e, t) {
12073
12073
  to: N,
12074
12074
  type: y,
12075
12075
  value: g
12076
- }, "sendTransaction"), S = wd.get(e.uid), I = S ? "wallet_sendTransaction" : "eth_sendTransaction";
12076
+ }, "sendTransaction"), T = wd.get(e.uid), I = T ? "wallet_sendTransaction" : "eth_sendTransaction";
12077
12077
  try {
12078
12078
  return await e.request({
12079
12079
  method: I,
12080
12080
  params: [x]
12081
12081
  }, { retryCount: 0 });
12082
12082
  } catch (B) {
12083
- if (S === !1)
12083
+ if (T === !1)
12084
12084
  throw B;
12085
12085
  const D = B;
12086
12086
  if (D.name === "InvalidInputRpcError" || D.name === "InvalidParamsRpcError" || D.name === "MethodNotFoundRpcError" || D.name === "MethodNotSupportedRpcError")
@@ -12095,7 +12095,7 @@ async function vu(e, t) {
12095
12095
  }
12096
12096
  }
12097
12097
  if ((v == null ? void 0 : v.type) === "local") {
12098
- const T = await se(e, ac, "prepareTransactionRequest")({
12098
+ const S = await se(e, ac, "prepareTransactionRequest")({
12099
12099
  account: v,
12100
12100
  accessList: s,
12101
12101
  authorizationList: a,
@@ -12114,7 +12114,7 @@ async function vu(e, t) {
12114
12114
  value: g,
12115
12115
  ...E,
12116
12116
  to: N
12117
- }), h = (O = n == null ? void 0 : n.serializers) == null ? void 0 : O.transaction, b = await v.signTransaction(T, {
12117
+ }), h = (O = n == null ? void 0 : n.serializers) == null ? void 0 : O.transaction, b = await v.signTransaction(S, {
12118
12118
  serializer: h
12119
12119
  });
12120
12120
  return await se(e, p0, "sendRawTransaction")({
@@ -12425,8 +12425,8 @@ function kg(e) {
12425
12425
  function w(A) {
12426
12426
  return (C) => {
12427
12427
  const O = C(A);
12428
- for (const T in v)
12429
- delete O[T];
12428
+ for (const S in v)
12429
+ delete O[S];
12430
12430
  const N = { ...A, ...O };
12431
12431
  return Object.assign(N, { extend: w(N) });
12432
12432
  };
@@ -12929,7 +12929,7 @@ async function Pg(e, t) {
12929
12929
  const { account: r = e.account, blockNumber: n, blockTag: s = "latest", blobs: a, data: o, gas: i, gasPrice: c, maxFeePerBlobGas: l, maxFeePerGas: u, maxPriorityFeePerGas: d, to: f, value: m, ...y } = t, g = r ? Qe(r) : void 0;
12930
12930
  try {
12931
12931
  mn(t);
12932
- const C = (typeof n == "bigint" ? V(n) : void 0) || s, O = (w = (v = (E = e.chain) == null ? void 0 : E.formatters) == null ? void 0 : v.transactionRequest) == null ? void 0 : w.format, T = (O || Yr)({
12932
+ const C = (typeof n == "bigint" ? V(n) : void 0) || s, O = (w = (v = (E = e.chain) == null ? void 0 : E.formatters) == null ? void 0 : v.transactionRequest) == null ? void 0 : w.format, S = (O || Yr)({
12933
12933
  // Pick out extra data that might exist on the chain's transaction request type.
12934
12934
  ...ma(y, { format: O }),
12935
12935
  account: g,
@@ -12944,7 +12944,7 @@ async function Pg(e, t) {
12944
12944
  value: m
12945
12945
  }, "createAccessList"), h = await e.request({
12946
12946
  method: "eth_createAccessList",
12947
- params: [T, C]
12947
+ params: [S, C]
12948
12948
  });
12949
12949
  return {
12950
12950
  accessList: h.accessList,
@@ -15359,8 +15359,8 @@ function O9(e) {
15359
15359
  return { x: O, y: N };
15360
15360
  });
15361
15361
  function o(A) {
15362
- const { a: C, b: O } = t, N = r.sqr(A), T = r.mul(N, A);
15363
- return r.add(r.add(T, r.mul(A, C)), O);
15362
+ const { a: C, b: O } = t, N = r.sqr(A), S = r.mul(N, A);
15363
+ return r.add(r.add(S, r.mul(A, C)), O);
15364
15364
  }
15365
15365
  function i(A, C) {
15366
15366
  const O = r.sqr(C), N = o(A);
@@ -15375,7 +15375,7 @@ function O9(e) {
15375
15375
  return o0(A, Bt, t.n);
15376
15376
  }
15377
15377
  function d(A) {
15378
- const { allowedPrivateKeyLengths: C, nByteLength: O, wrapPrivateKey: N, n: T } = t;
15378
+ const { allowedPrivateKeyLengths: C, nByteLength: O, wrapPrivateKey: N, n: S } = t;
15379
15379
  if (C && typeof A != "bigint") {
15380
15380
  if (ic(A) && (A = Si(A)), typeof A != "string" || !C.includes(A.length))
15381
15381
  throw new Error("invalid private key");
@@ -15387,22 +15387,22 @@ function O9(e) {
15387
15387
  } catch {
15388
15388
  throw new Error("invalid private key, expected hex or " + O + " bytes, got " + typeof A);
15389
15389
  }
15390
- return N && (h = er(h, T)), Na("private key", h, Bt, T), h;
15390
+ return N && (h = er(h, S)), Na("private key", h, Bt, S), h;
15391
15391
  }
15392
15392
  function f(A) {
15393
15393
  if (!(A instanceof g))
15394
15394
  throw new Error("ProjectivePoint expected");
15395
15395
  }
15396
15396
  const m = Nh((A, C) => {
15397
- const { px: O, py: N, pz: T } = A;
15398
- if (r.eql(T, r.ONE))
15397
+ const { px: O, py: N, pz: S } = A;
15398
+ if (r.eql(S, r.ONE))
15399
15399
  return { x: O, y: N };
15400
15400
  const h = A.is0();
15401
- C == null && (C = h ? r.ONE : r.inv(T));
15402
- const b = r.mul(O, C), x = r.mul(N, C), S = r.mul(T, C);
15401
+ C == null && (C = h ? r.ONE : r.inv(S));
15402
+ const b = r.mul(O, C), x = r.mul(N, C), T = r.mul(S, C);
15403
15403
  if (h)
15404
15404
  return { x: r.ZERO, y: r.ZERO };
15405
- if (!r.eql(S, r.ONE))
15405
+ if (!r.eql(T, r.ONE))
15406
15406
  throw new Error("invZ was invalid");
15407
15407
  return { x: b, y: x };
15408
15408
  }), y = Nh((A) => {
@@ -15438,8 +15438,8 @@ function O9(e) {
15438
15438
  throw new Error("invalid affine point");
15439
15439
  if (C instanceof g)
15440
15440
  throw new Error("projective point not allowed");
15441
- const T = (h) => r.eql(h, r.ZERO);
15442
- return T(O) && T(N) ? g.ZERO : new g(O, N, r.ONE);
15441
+ const S = (h) => r.eql(h, r.ZERO);
15442
+ return S(O) && S(N) ? g.ZERO : new g(O, N, r.ONE);
15443
15443
  }
15444
15444
  get x() {
15445
15445
  return this.toAffine().x;
@@ -15455,7 +15455,7 @@ function O9(e) {
15455
15455
  */
15456
15456
  static normalizeZ(C) {
15457
15457
  const O = Jg(r, C.map((N) => N.pz));
15458
- return C.map((N, T) => N.toAffine(O[T])).map(g.fromAffine);
15458
+ return C.map((N, S) => N.toAffine(O[S])).map(g.fromAffine);
15459
15459
  }
15460
15460
  /**
15461
15461
  * Converts hash string or Uint8Array to Point.
@@ -15492,8 +15492,8 @@ function O9(e) {
15492
15492
  */
15493
15493
  equals(C) {
15494
15494
  f(C);
15495
- const { px: O, py: N, pz: T } = this, { px: h, py: b, pz: x } = C, S = r.eql(r.mul(O, x), r.mul(h, T)), I = r.eql(r.mul(N, x), r.mul(b, T));
15496
- return S && I;
15495
+ const { px: O, py: N, pz: S } = this, { px: h, py: b, pz: x } = C, T = r.eql(r.mul(O, x), r.mul(h, S)), I = r.eql(r.mul(N, x), r.mul(b, S));
15496
+ return T && I;
15497
15497
  }
15498
15498
  /**
15499
15499
  * Flips point to one corresponding to (x, -y) in Affine coordinates.
@@ -15506,9 +15506,9 @@ function O9(e) {
15506
15506
  // https://eprint.iacr.org/2015/1060, algorithm 3
15507
15507
  // Cost: 8M + 3S + 3*a + 2*b3 + 15add.
15508
15508
  double() {
15509
- const { a: C, b: O } = t, N = r.mul(O, Id), { px: T, py: h, pz: b } = this;
15510
- let x = r.ZERO, S = r.ZERO, I = r.ZERO, B = r.mul(T, T), D = r.mul(h, h), k = r.mul(b, b), P = r.mul(T, h);
15511
- return P = r.add(P, P), I = r.mul(T, b), I = r.add(I, I), x = r.mul(C, I), S = r.mul(N, k), S = r.add(x, S), x = r.sub(D, S), S = r.add(D, S), S = r.mul(x, S), x = r.mul(P, x), I = r.mul(N, I), k = r.mul(C, k), P = r.sub(B, k), P = r.mul(C, P), P = r.add(P, I), I = r.add(B, B), B = r.add(I, B), B = r.add(B, k), B = r.mul(B, P), S = r.add(S, B), k = r.mul(h, b), k = r.add(k, k), B = r.mul(k, P), x = r.sub(x, B), I = r.mul(k, D), I = r.add(I, I), I = r.add(I, I), new g(x, S, I);
15509
+ const { a: C, b: O } = t, N = r.mul(O, Id), { px: S, py: h, pz: b } = this;
15510
+ let x = r.ZERO, T = r.ZERO, I = r.ZERO, B = r.mul(S, S), D = r.mul(h, h), k = r.mul(b, b), P = r.mul(S, h);
15511
+ return P = r.add(P, P), I = r.mul(S, b), I = r.add(I, I), x = r.mul(C, I), T = r.mul(N, k), T = r.add(x, T), x = r.sub(D, T), T = r.add(D, T), T = r.mul(x, T), x = r.mul(P, x), I = r.mul(N, I), k = r.mul(C, k), P = r.sub(B, k), P = r.mul(C, P), P = r.add(P, I), I = r.add(B, B), B = r.add(I, B), B = r.add(B, k), B = r.mul(B, P), T = r.add(T, B), k = r.mul(h, b), k = r.add(k, k), B = r.mul(k, P), x = r.sub(x, B), I = r.mul(k, D), I = r.add(I, I), I = r.add(I, I), new g(x, T, I);
15512
15512
  }
15513
15513
  // Renes-Costello-Batina exception-free addition formula.
15514
15514
  // There is 30% faster Jacobian formula, but it is not complete.
@@ -15516,13 +15516,13 @@ function O9(e) {
15516
15516
  // Cost: 12M + 0S + 3*a + 3*b3 + 23add.
15517
15517
  add(C) {
15518
15518
  f(C);
15519
- const { px: O, py: N, pz: T } = this, { px: h, py: b, pz: x } = C;
15520
- let S = r.ZERO, I = r.ZERO, B = r.ZERO;
15519
+ const { px: O, py: N, pz: S } = this, { px: h, py: b, pz: x } = C;
15520
+ let T = r.ZERO, I = r.ZERO, B = r.ZERO;
15521
15521
  const D = t.a, k = r.mul(t.b, Id);
15522
- let P = r.mul(O, h), U = r.mul(N, b), F = r.mul(T, x), R = r.add(O, N), L = r.add(h, b);
15523
- R = r.mul(R, L), L = r.add(P, U), R = r.sub(R, L), L = r.add(O, T);
15522
+ let P = r.mul(O, h), U = r.mul(N, b), F = r.mul(S, x), R = r.add(O, N), L = r.add(h, b);
15523
+ R = r.mul(R, L), L = r.add(P, U), R = r.sub(R, L), L = r.add(O, S);
15524
15524
  let $ = r.add(h, x);
15525
- return L = r.mul(L, $), $ = r.add(P, F), L = r.sub(L, $), $ = r.add(N, T), S = r.add(b, x), $ = r.mul($, S), S = r.add(U, F), $ = r.sub($, S), B = r.mul(D, L), S = r.mul(k, F), B = r.add(S, B), S = r.sub(U, B), B = r.add(U, B), I = r.mul(S, B), U = r.add(P, P), U = r.add(U, P), F = r.mul(D, F), L = r.mul(k, L), U = r.add(U, F), F = r.sub(P, F), F = r.mul(D, F), L = r.add(L, F), P = r.mul(U, L), I = r.add(I, P), P = r.mul($, L), S = r.mul(R, S), S = r.sub(S, P), P = r.mul(R, U), B = r.mul($, B), B = r.add(B, P), new g(S, I, B);
15525
+ return L = r.mul(L, $), $ = r.add(P, F), L = r.sub(L, $), $ = r.add(N, S), T = r.add(b, x), $ = r.mul($, T), T = r.add(U, F), $ = r.sub($, T), B = r.mul(D, L), T = r.mul(k, F), B = r.add(T, B), T = r.sub(U, B), B = r.add(U, B), I = r.mul(T, B), U = r.add(P, P), U = r.add(U, P), F = r.mul(D, F), L = r.mul(k, L), U = r.add(U, F), F = r.sub(P, F), F = r.mul(D, F), L = r.add(L, F), P = r.mul(U, L), I = r.add(I, P), P = r.mul($, L), T = r.mul(R, T), T = r.sub(T, P), P = r.mul(R, U), B = r.mul($, B), B = r.add(B, P), new g(T, I, B);
15526
15526
  }
15527
15527
  subtract(C) {
15528
15528
  return this.add(C.negate());
@@ -15541,16 +15541,16 @@ function O9(e) {
15541
15541
  multiplyUnsafe(C) {
15542
15542
  const { endo: O, n: N } = t;
15543
15543
  Na("scalar", C, Un, N);
15544
- const T = g.ZERO;
15544
+ const S = g.ZERO;
15545
15545
  if (C === Un)
15546
- return T;
15546
+ return S;
15547
15547
  if (this.is0() || C === Bt)
15548
15548
  return this;
15549
15549
  if (!O || w.hasPrecomputes(this))
15550
15550
  return w.wNAFCachedUnsafe(this, C, g.normalizeZ);
15551
- let { k1neg: h, k1: b, k2neg: x, k2: S } = O.splitScalar(C), I = T, B = T, D = this;
15552
- for (; b > Un || S > Un; )
15553
- b & Bt && (I = I.add(D)), S & Bt && (B = B.add(D)), D = D.double(), b >>= Bt, S >>= Bt;
15551
+ let { k1neg: h, k1: b, k2neg: x, k2: T } = O.splitScalar(C), I = S, B = S, D = this;
15552
+ for (; b > Un || T > Un; )
15553
+ b & Bt && (I = I.add(D)), T & Bt && (B = B.add(D)), D = D.double(), b >>= Bt, T >>= Bt;
15554
15554
  return h && (I = I.negate()), x && (B = B.negate()), B = new g(r.mul(B.px, O.beta), B.py, B.pz), I.add(B);
15555
15555
  }
15556
15556
  /**
@@ -15565,16 +15565,16 @@ function O9(e) {
15565
15565
  multiply(C) {
15566
15566
  const { endo: O, n: N } = t;
15567
15567
  Na("scalar", C, Bt, N);
15568
- let T, h;
15568
+ let S, h;
15569
15569
  if (O) {
15570
- const { k1neg: b, k1: x, k2neg: S, k2: I } = O.splitScalar(C);
15570
+ const { k1neg: b, k1: x, k2neg: T, k2: I } = O.splitScalar(C);
15571
15571
  let { p: B, f: D } = this.wNAF(x), { p: k, f: P } = this.wNAF(I);
15572
- B = w.constTimeNegate(b, B), k = w.constTimeNegate(S, k), k = new g(r.mul(k.px, O.beta), k.py, k.pz), T = B.add(k), h = D.add(P);
15572
+ B = w.constTimeNegate(b, B), k = w.constTimeNegate(T, k), k = new g(r.mul(k.px, O.beta), k.py, k.pz), S = B.add(k), h = D.add(P);
15573
15573
  } else {
15574
15574
  const { p: b, f: x } = this.wNAF(C);
15575
- T = b, h = x;
15575
+ S = b, h = x;
15576
15576
  }
15577
- return g.normalizeZ([T, h])[0];
15577
+ return g.normalizeZ([S, h])[0];
15578
15578
  }
15579
15579
  /**
15580
15580
  * Efficiently calculate `aP + bQ`. Unsafe, can expose private key, if used incorrectly.
@@ -15583,7 +15583,7 @@ function O9(e) {
15583
15583
  * @returns non-zero affine point
15584
15584
  */
15585
15585
  multiplyAndAddUnsafe(C, O, N) {
15586
- const T = g.BASE, h = (x, S) => S === Un || S === Bt || !x.equals(T) ? x.multiplyUnsafe(S) : x.multiply(S), b = h(this, O).add(h(C, N));
15586
+ const S = g.BASE, h = (x, T) => T === Un || T === Bt || !x.equals(S) ? x.multiplyUnsafe(T) : x.multiply(T), b = h(this, O).add(h(C, N));
15587
15587
  return b.is0() ? void 0 : b;
15588
15588
  }
15589
15589
  // Converts Projective point to affine (x, y) coordinates.
@@ -15705,7 +15705,7 @@ function _9(e) {
15705
15705
  return new v(this.r, this.s, P);
15706
15706
  }
15707
15707
  recoverPublicKey(P) {
15708
- const { r: U, s: F, recovery: R } = this, L = T(kr("msgHash", P));
15708
+ const { r: U, s: F, recovery: R } = this, L = S(kr("msgHash", P));
15709
15709
  if (R == null || ![0, 1, 2, 3].includes(R))
15710
15710
  throw new Error("recovery id invalid");
15711
15711
  const $ = R === 2 || R === 3 ? U + t.n : U;
@@ -15792,41 +15792,41 @@ function _9(e) {
15792
15792
  throw new Error("input is too large");
15793
15793
  const P = Xs(k), U = k.length * 8 - a;
15794
15794
  return U > 0 ? P >> BigInt(U) : P;
15795
- }, T = t.bits2int_modN || function(k) {
15795
+ }, S = t.bits2int_modN || function(k) {
15796
15796
  return c(N(k));
15797
15797
  }, h = fu(a);
15798
15798
  function b(k) {
15799
15799
  return Na("num < 2^" + a, k, Un, h), cc(k, s);
15800
15800
  }
15801
- function x(k, P, U = S) {
15802
- if (["recovered", "canonical"].some((we) => we in U))
15801
+ function x(k, P, U = T) {
15802
+ if (["recovered", "canonical"].some((xe) => xe in U))
15803
15803
  throw new Error("sign() legacy options not supported");
15804
15804
  const { hash: F, randomBytes: R } = t;
15805
15805
  let { lowS: L, prehash: $, extraEntropy: Z } = U;
15806
15806
  L == null && (L = !0), k = kr("msgHash", k), s1(U), $ && (k = kr("prehashed msgHash", F(k)));
15807
- const pe = T(k), be = d(P), ie = [b(be), b(pe)];
15807
+ const pe = S(k), be = d(P), ie = [b(be), b(pe)];
15808
15808
  if (Z != null && Z !== !1) {
15809
- const we = Z === !0 ? R(r.BYTES) : Z;
15810
- ie.push(kr("extraEntropy", we));
15809
+ const xe = Z === !0 ? R(r.BYTES) : Z;
15810
+ ie.push(kr("extraEntropy", xe));
15811
15811
  }
15812
15812
  const de = Nl(...ie), Be = pe;
15813
- function K(we) {
15814
- const Ue = N(we);
15813
+ function K(xe) {
15814
+ const Ue = N(xe);
15815
15815
  if (!m(Ue))
15816
15816
  return;
15817
15817
  const ze = l(Ue), st = u.BASE.multiply(Ue).toAffine(), Ae = c(st.x);
15818
15818
  if (Ae === Un)
15819
15819
  return;
15820
- const ve = c(ze * c(Be + Ae * be));
15821
- if (ve === Un)
15820
+ const we = c(ze * c(Be + Ae * be));
15821
+ if (we === Un)
15822
15822
  return;
15823
- let ye = (st.x === Ae ? 0 : 2) | Number(st.y & Bt), Xe = ve;
15824
- return L && y(ve) && (Xe = g(ve), ye ^= 1), new v(Ae, Xe, ye);
15823
+ let ye = (st.x === Ae ? 0 : 2) | Number(st.y & Bt), Xe = we;
15824
+ return L && y(we) && (Xe = g(we), ye ^= 1), new v(Ae, Xe, ye);
15825
15825
  }
15826
15826
  return { seed: de, k2sig: K };
15827
15827
  }
15828
- const S = { lowS: t.lowS, prehash: !1 }, I = { lowS: t.lowS, prehash: !1 };
15829
- function B(k, P, U = S) {
15828
+ const T = { lowS: t.lowS, prehash: !1 }, I = { lowS: t.lowS, prehash: !1 };
15829
+ function B(k, P, U = T) {
15830
15830
  const { seed: F, k2sig: R } = x(k, P, U), L = t;
15831
15831
  return vk(L.hash.outputLen, L.nByteLength, L.hmac)(F, R);
15832
15832
  }
@@ -15861,7 +15861,7 @@ function _9(e) {
15861
15861
  if (!ie || L && ie.hasHighS())
15862
15862
  return !1;
15863
15863
  $ && (P = t.hash(P));
15864
- const { r: Be, s: K } = ie, we = T(P), Ue = l(K), ze = c(we * Ue), st = c(Be * Ue), Ae = (ye = u.BASE.multiplyAndAddUnsafe(de, ze, st)) == null ? void 0 : ye.toAffine();
15864
+ const { r: Be, s: K } = ie, xe = S(P), Ue = l(K), ze = c(xe * Ue), st = c(Be * Ue), Ae = (ye = u.BASE.multiplyAndAddUnsafe(de, ze, st)) == null ? void 0 : ye.toAffine();
15865
15865
  return Ae ? c(Ae.x) === Be : !1;
15866
15866
  }
15867
15867
  return {
@@ -16300,9 +16300,9 @@ async function mT(e, t) {
16300
16300
  })(), m = [[]];
16301
16301
  let y = 0, g = 0;
16302
16302
  for (let A = 0; A < l.length; A++) {
16303
- const { abi: C, address: O, args: N, functionName: T } = l[A];
16303
+ const { abi: C, address: O, args: N, functionName: S } = l[A];
16304
16304
  try {
16305
- const h = mr({ abi: C, args: N, functionName: T });
16305
+ const h = mr({ abi: C, args: N, functionName: S });
16306
16306
  g += (h.length - 2) / 2, // Check if batching is enabled.
16307
16307
  u > 0 && // Check if the current size of the batch exceeds the size limit.
16308
16308
  g > u && // Check if the current chunk is not already empty.
@@ -16320,7 +16320,7 @@ async function mT(e, t) {
16320
16320
  address: O,
16321
16321
  args: N,
16322
16322
  docsPath: "/docs/contract/multicall",
16323
- functionName: T,
16323
+ functionName: S,
16324
16324
  sender: r
16325
16325
  });
16326
16326
  if (!s)
@@ -16362,23 +16362,23 @@ async function mT(e, t) {
16362
16362
  }
16363
16363
  const O = C.value;
16364
16364
  for (let N = 0; N < O.length; N++) {
16365
- const { returnData: T, success: h } = O[N], { callData: b } = m[A][N], { abi: x, address: S, functionName: I, args: B } = l[v.length];
16365
+ const { returnData: S, success: h } = O[N], { callData: b } = m[A][N], { abi: x, address: T, functionName: I, args: B } = l[v.length];
16366
16366
  try {
16367
16367
  if (b === "0x")
16368
16368
  throw new Qi();
16369
16369
  if (!h)
16370
- throw new iu({ data: T });
16370
+ throw new iu({ data: S });
16371
16371
  const D = ba({
16372
16372
  abi: x,
16373
16373
  args: B,
16374
- data: T,
16374
+ data: S,
16375
16375
  functionName: I
16376
16376
  });
16377
16377
  v.push(s ? { result: D, status: "success" } : D);
16378
16378
  } catch (D) {
16379
16379
  const k = aa(D, {
16380
16380
  abi: x,
16381
- address: S,
16381
+ address: T,
16382
16382
  args: B,
16383
16383
  docsPath: "/docs/contract/multicall",
16384
16384
  functionName: I
@@ -16423,14 +16423,14 @@ async function Qp(e, t) {
16423
16423
  })).map((f, m) => ({
16424
16424
  ...jf(f),
16425
16425
  calls: f.calls.map((y, g) => {
16426
- var x, S;
16427
- const { abi: E, args: v, functionName: w, to: A } = s[m].calls[g], C = ((x = y.error) == null ? void 0 : x.data) ?? y.returnData, O = BigInt(y.gasUsed), N = (S = y.logs) == null ? void 0 : S.map((I) => un(I)), T = y.status === "0x1" ? "success" : "failure", h = E && T === "success" && C !== "0x" ? ba({
16426
+ var x, T;
16427
+ const { abi: E, args: v, functionName: w, to: A } = s[m].calls[g], C = ((x = y.error) == null ? void 0 : x.data) ?? y.returnData, O = BigInt(y.gasUsed), N = (T = y.logs) == null ? void 0 : T.map((I) => un(I)), S = y.status === "0x1" ? "success" : "failure", h = E && S === "success" && C !== "0x" ? ba({
16428
16428
  abi: E,
16429
16429
  data: C,
16430
16430
  functionName: w
16431
16431
  }) : null, b = (() => {
16432
16432
  var B;
16433
- if (T === "success")
16433
+ if (S === "success")
16434
16434
  return;
16435
16435
  let I;
16436
16436
  if (((B = y.error) == null ? void 0 : B.data) === "0x" ? I = new Qi() : y.error && (I = new iu(y.error)), !!I)
@@ -16445,8 +16445,8 @@ async function Qp(e, t) {
16445
16445
  data: C,
16446
16446
  gasUsed: O,
16447
16447
  logs: N,
16448
- status: T,
16449
- ...T === "success" ? {
16448
+ status: S,
16449
+ ...S === "success" ? {
16450
16450
  result: h
16451
16451
  } : {
16452
16452
  error: b
@@ -16821,7 +16821,7 @@ async function CT(e, t) {
16821
16821
  ],
16822
16822
  traceTransfers: i,
16823
16823
  validation: c
16824
- }), m = o ? f[2] : f[0], [y, g, , E, v, w, A, C] = o ? f : [], { calls: O, ...N } = m, T = O.slice(0, -1) ?? [], h = (y == null ? void 0 : y.calls) ?? [], b = (g == null ? void 0 : g.calls) ?? [], x = [...h, ...b].map((F) => F.status === "success" ? Ne(F.data) : null), S = (E == null ? void 0 : E.calls) ?? [], I = (v == null ? void 0 : v.calls) ?? [], B = [...S, ...I].map((F) => F.status === "success" ? Ne(F.data) : null), D = ((w == null ? void 0 : w.calls) ?? []).map((F) => F.status === "success" ? F.result : null), k = ((C == null ? void 0 : C.calls) ?? []).map((F) => F.status === "success" ? F.result : null), P = ((A == null ? void 0 : A.calls) ?? []).map((F) => F.status === "success" ? F.result : null), U = [];
16824
+ }), m = o ? f[2] : f[0], [y, g, , E, v, w, A, C] = o ? f : [], { calls: O, ...N } = m, S = O.slice(0, -1) ?? [], h = (y == null ? void 0 : y.calls) ?? [], b = (g == null ? void 0 : g.calls) ?? [], x = [...h, ...b].map((F) => F.status === "success" ? Ne(F.data) : null), T = (E == null ? void 0 : E.calls) ?? [], I = (v == null ? void 0 : v.calls) ?? [], B = [...T, ...I].map((F) => F.status === "success" ? Ne(F.data) : null), D = ((w == null ? void 0 : w.calls) ?? []).map((F) => F.status === "success" ? F.result : null), k = ((C == null ? void 0 : C.calls) ?? []).map((F) => F.status === "success" ? F.result : null), P = ((A == null ? void 0 : A.calls) ?? []).map((F) => F.status === "success" ? F.result : null), U = [];
16825
16825
  for (const [F, R] of B.entries()) {
16826
16826
  const L = x[F];
16827
16827
  if (typeof R != "bigint" || typeof L != "bigint")
@@ -16847,7 +16847,7 @@ async function CT(e, t) {
16847
16847
  return {
16848
16848
  assetChanges: U,
16849
16849
  block: N,
16850
- results: T
16850
+ results: S
16851
16851
  };
16852
16852
  }
16853
16853
  const h6 = "0x6492649264926492649264926492649264926492649264926492649264926492";
@@ -17145,7 +17145,7 @@ async function y6(e, t) {
17145
17145
  poll: !0,
17146
17146
  pollingInterval: u,
17147
17147
  async onBlockNumber(N) {
17148
- const T = (b) => {
17148
+ const S = (b) => {
17149
17149
  clearTimeout(C), E == null || E(), b(), g == null || g();
17150
17150
  };
17151
17151
  let h = N;
@@ -17154,7 +17154,7 @@ async function y6(e, t) {
17154
17154
  if (m) {
17155
17155
  if (n > 1 && (!m.blockNumber || h - m.blockNumber + 1n < n))
17156
17156
  return;
17157
- T(() => O.resolve(m));
17157
+ S(() => O.resolve(m));
17158
17158
  return;
17159
17159
  }
17160
17160
  if (r && !d && (y = !0, await zl(async () => {
@@ -17164,7 +17164,7 @@ async function y6(e, t) {
17164
17164
  retryCount: o
17165
17165
  }), y = !1), m = await se(e, Tl, "getTransactionReceipt")({ hash: s }), n > 1 && (!m.blockNumber || h - m.blockNumber + 1n < n))
17166
17166
  return;
17167
- T(() => O.resolve(m));
17167
+ S(() => O.resolve(m));
17168
17168
  } catch (b) {
17169
17169
  if (b instanceof Ey || b instanceof ky) {
17170
17170
  if (!d) {
@@ -17182,26 +17182,26 @@ async function y6(e, t) {
17182
17182
  shouldRetry: ({ error: B }) => B instanceof Fy
17183
17183
  });
17184
17184
  y = !1;
17185
- const S = x.transactions.find(({ from: B, nonce: D }) => B === f.from && D === f.nonce);
17186
- if (!S || (m = await se(e, Tl, "getTransactionReceipt")({
17187
- hash: S.hash
17185
+ const T = x.transactions.find(({ from: B, nonce: D }) => B === f.from && D === f.nonce);
17186
+ if (!T || (m = await se(e, Tl, "getTransactionReceipt")({
17187
+ hash: T.hash
17188
17188
  }), n > 1 && (!m.blockNumber || h - m.blockNumber + 1n < n)))
17189
17189
  return;
17190
17190
  let I = "replaced";
17191
- S.to === f.to && S.value === f.value && S.input === f.input ? I = "repriced" : S.from === S.to && S.value === 0n && (I = "cancelled"), T(() => {
17191
+ T.to === f.to && T.value === f.value && T.input === f.input ? I = "repriced" : T.from === T.to && T.value === 0n && (I = "cancelled"), S(() => {
17192
17192
  var B;
17193
17193
  (B = O.onReplaced) == null || B.call(O, {
17194
17194
  reason: I,
17195
17195
  replacedTransaction: f,
17196
- transaction: S,
17196
+ transaction: T,
17197
17197
  transactionReceipt: m
17198
17198
  }), O.resolve(m);
17199
17199
  });
17200
17200
  } catch (x) {
17201
- T(() => O.reject(x));
17201
+ S(() => O.reject(x));
17202
17202
  }
17203
17203
  } else
17204
- T(() => O.reject(b));
17204
+ S(() => O.reject(b));
17205
17205
  }
17206
17206
  }
17207
17207
  });
@@ -17326,29 +17326,29 @@ function MT(e, { address: t, args: r, batch: n = !0, event: s, events: a, fromBl
17326
17326
  return;
17327
17327
  }
17328
17328
  try {
17329
- let T;
17329
+ let S;
17330
17330
  if (A)
17331
- T = await se(e, xu, "getFilterChanges")({ filter: A });
17331
+ S = await se(e, xu, "getFilterChanges")({ filter: A });
17332
17332
  else {
17333
17333
  const h = await se(e, dc, "getBlockNumber")({});
17334
- w && w !== h ? T = await se(e, n0, "getLogs")({
17334
+ w && w !== h ? S = await se(e, n0, "getLogs")({
17335
17335
  address: t,
17336
17336
  args: r,
17337
17337
  event: s,
17338
17338
  events: a,
17339
17339
  fromBlock: w + 1n,
17340
17340
  toBlock: h
17341
- }) : T = [], w = h;
17341
+ }) : S = [], w = h;
17342
17342
  }
17343
- if (T.length === 0)
17343
+ if (S.length === 0)
17344
17344
  return;
17345
17345
  if (n)
17346
- v.onLogs(T);
17346
+ v.onLogs(S);
17347
17347
  else
17348
- for (const h of T)
17348
+ for (const h of S)
17349
17349
  v.onLogs([h]);
17350
- } catch (T) {
17351
- A && T instanceof xs && (C = !1), (N = v.onError) == null || N.call(v, T);
17350
+ } catch (S) {
17351
+ A && S instanceof xs && (C = !1), (N = v.onError) == null || N.call(v, S);
17352
17352
  }
17353
17353
  }, {
17354
17354
  emitOnBegin: !0,
@@ -17364,15 +17364,15 @@ function MT(e, { address: t, args: r, batch: n = !0, event: s, events: a, fromBl
17364
17364
  try {
17365
17365
  const w = (() => {
17366
17366
  if (e.transport.type === "fallback") {
17367
- const N = e.transport.transports.find((T) => T.config.type === "webSocket" || T.config.type === "ipc");
17367
+ const N = e.transport.transports.find((S) => S.config.type === "webSocket" || S.config.type === "ipc");
17368
17368
  return N ? N.value : e.transport;
17369
17369
  }
17370
17370
  return e.transport;
17371
17371
  })(), A = a ?? (s ? [s] : void 0);
17372
17372
  let C = [];
17373
- A && (C = [A.flatMap((T) => tc({
17374
- abi: [T],
17375
- eventName: T.name,
17373
+ A && (C = [A.flatMap((S) => tc({
17374
+ abi: [S],
17375
+ eventName: S.name,
17376
17376
  args: r
17377
17377
  }))], s && (C = C[0]));
17378
17378
  const { unsubscribe: O } = await w.subscribe({
@@ -17381,24 +17381,24 @@ function MT(e, { address: t, args: r, batch: n = !0, event: s, events: a, fromBl
17381
17381
  var h;
17382
17382
  if (!E)
17383
17383
  return;
17384
- const T = N.result;
17384
+ const S = N.result;
17385
17385
  try {
17386
17386
  const { eventName: b, args: x } = Ml({
17387
17387
  abi: A ?? [],
17388
- data: T.data,
17389
- topics: T.topics,
17388
+ data: S.data,
17389
+ topics: S.topics,
17390
17390
  strict: m
17391
- }), S = un(T, { args: x, eventName: b });
17392
- c([S]);
17391
+ }), T = un(S, { args: x, eventName: b });
17392
+ c([T]);
17393
17393
  } catch (b) {
17394
- let x, S;
17394
+ let x, T;
17395
17395
  if (b instanceof _l || b instanceof If) {
17396
17396
  if (d)
17397
17397
  return;
17398
- x = b.abiItem.name, S = (h = b.abiItem.inputs) == null ? void 0 : h.some((B) => !("name" in B && B.name));
17398
+ x = b.abiItem.name, T = (h = b.abiItem.inputs) == null ? void 0 : h.some((B) => !("name" in B && B.name));
17399
17399
  }
17400
- const I = un(T, {
17401
- args: S ? [] : {},
17400
+ const I = un(S, {
17401
+ args: T ? [] : {},
17402
17402
  eventName: x
17403
17403
  });
17404
17404
  c([I]);
@@ -17687,7 +17687,7 @@ async function QT(e, t) {
17687
17687
  }
17688
17688
  const Fd = new xo(128);
17689
17689
  async function x6(e, t) {
17690
- var O, N, T, h;
17690
+ var O, N, S, h;
17691
17691
  const { account: r = e.account, chain: n = e.chain, accessList: s, authorizationList: a, blobs: o, data: i, gas: c, gasPrice: l, maxFeePerBlobGas: u, maxFeePerGas: d, maxPriorityFeePerGas: f, nonce: m, pollingInterval: y, throwOnReceiptRevert: g, type: E, value: v, ...w } = t, A = t.timeout ?? Math.max(((n == null ? void 0 : n.blockTime) ?? 0) * 3, 5e3);
17692
17692
  if (typeof r > "u")
17693
17693
  throw new qn({
@@ -17712,9 +17712,9 @@ async function x6(e, t) {
17712
17712
  currentChainId: x,
17713
17713
  chain: n
17714
17714
  }));
17715
- const S = (T = (N = (O = e.chain) == null ? void 0 : O.formatters) == null ? void 0 : N.transactionRequest) == null ? void 0 : T.format, B = (S || Yr)({
17715
+ const T = (S = (N = (O = e.chain) == null ? void 0 : O.formatters) == null ? void 0 : N.transactionRequest) == null ? void 0 : S.format, B = (T || Yr)({
17716
17716
  // Pick out extra data that might exist on the chain's transaction request type.
17717
- ...ma(w, { format: S }),
17717
+ ...ma(w, { format: T }),
17718
17718
  accessList: s,
17719
17719
  account: C,
17720
17720
  authorizationList: a,
@@ -17780,8 +17780,8 @@ async function x6(e, t) {
17780
17780
  value: v,
17781
17781
  ...w,
17782
17782
  to: b
17783
- }), S = (h = n == null ? void 0 : n.serializers) == null ? void 0 : h.transaction, I = await C.signTransaction(x, {
17784
- serializer: S
17783
+ }), T = (h = n == null ? void 0 : n.serializers) == null ? void 0 : h.transaction, I = await C.signTransaction(x, {
17784
+ serializer: T
17785
17785
  });
17786
17786
  return await se(e, U0, "sendRawTransactionSync")({
17787
17787
  serializedTransaction: I,
@@ -18014,7 +18014,7 @@ function d4(e, t = {}) {
18014
18014
  methods: o,
18015
18015
  name: i,
18016
18016
  async request({ method: O, params: N }) {
18017
- const T = { method: O, params: N }, { schedule: h } = mg({
18017
+ const S = { method: O, params: N }, { schedule: h } = mg({
18018
18018
  id: A,
18019
18019
  wait: E,
18020
18020
  shouldSplitBatch(I) {
@@ -18028,16 +18028,16 @@ function d4(e, t = {}) {
18028
18028
  await C.request({
18029
18029
  body: I
18030
18030
  })
18031
- ], [{ error: x, result: S }] = await b(T);
18031
+ ], [{ error: x, result: T }] = await b(S);
18032
18032
  if (d)
18033
- return { error: x, result: S };
18033
+ return { error: x, result: T };
18034
18034
  if (x)
18035
18035
  throw new zf({
18036
- body: T,
18036
+ body: S,
18037
18037
  error: x,
18038
18038
  url: A
18039
18039
  });
18040
- return S;
18040
+ return T;
18041
18041
  },
18042
18042
  retryCount: v,
18043
18043
  retryDelay: u,
@@ -25961,7 +25961,7 @@ async function tU(e, t) {
25961
25961
  try {
25962
25962
  const { accessList: i, blockNumber: c, blockTag: l, data: u, gas: d, gasPrice: f, maxFeePerGas: m, maxPriorityFeePerGas: y, nonce: g, to: E, value: v, ...w } = t, C = (typeof c == "bigint" ? V(c) : void 0) || l;
25963
25963
  mn(t);
25964
- const O = (o = (a = (s = e.chain) == null ? void 0 : s.formatters) == null ? void 0 : a.transactionRequest) == null ? void 0 : o.format, T = (O || Yr)({
25964
+ const O = (o = (a = (s = e.chain) == null ? void 0 : s.formatters) == null ? void 0 : a.transactionRequest) == null ? void 0 : o.format, S = (O || Yr)({
25965
25965
  // Pick out extra data that might exist on the chain's transaction request type.
25966
25966
  ...ma(w, { format: O }),
25967
25967
  account: n,
@@ -25976,7 +25976,7 @@ async function tU(e, t) {
25976
25976
  value: v
25977
25977
  }, "estimateGas"), { baseFeePerGas: h, gasLimit: b, priorityFeePerGas: x } = await e.request({
25978
25978
  method: "linea_estimateGas",
25979
- params: C ? [T, C] : [T]
25979
+ params: C ? [S, C] : [S]
25980
25980
  });
25981
25981
  return {
25982
25982
  baseFeePerGas: BigInt(h),
@@ -32737,8 +32737,8 @@ function BR(e) {
32737
32737
  if (Mr(a) && a !== "0x" && (A.gas = BigInt(a)), Mr(l) && (A.nonce = l === "0x" ? 0n : BigInt(l)), Mr(s) && s !== "0x" && (A.maxFeePerGas = BigInt(s)), Mr(n) && n !== "0x" && (A.maxPriorityFeePerGas = BigInt(n)), Mr(c) && (A.nonceKey = c === "0x" ? 0n : BigInt(c)), Mr(u) && u !== "0x" && (A.validBefore = Number(u)), Mr(d) && d !== "0x" && (A.validAfter = Number(d)), Mr(f) && f !== "0x" && (A.feeToken = f), o && o !== "0x") {
32738
32738
  const O = o;
32739
32739
  A.calls = O.map((N) => {
32740
- const [T, h, b] = N, x = {};
32741
- return T && T !== "0x" && (x.to = T), h && h !== "0x" && (x.value = BigInt(h)), b && b !== "0x" && (x.data = b), x;
32740
+ const [S, h, b] = N, x = {};
32741
+ return S && S !== "0x" && (x.to = S), h && h !== "0x" && (x.value = BigInt(h)), b && b !== "0x" && (x.data = b), x;
32742
32742
  });
32743
32743
  }
32744
32744
  (i == null ? void 0 : i.length) !== 0 && i !== "0x" && (A.accessList = wR(i)), (y == null ? void 0 : y.length) !== 0 && y !== "0x" && (A.authorizationList = aR(y)), m !== "0x" && m !== void 0 && (m === "0x00" || Gl(m) ? A.feePayerSignature = null : A.feePayerSignature = G9(m)), v && (A.keyAuthorization = dR(v));
@@ -35853,7 +35853,7 @@ const sf = Yi({}), BL = new k3({
35853
35853
  }
35854
35854
  }), FL = (e) => {
35855
35855
  var n, s, a;
35856
- const t = ee((o) => o.updateState), r = ee((o) => o.state.isMarketOrder);
35856
+ const t = J((o) => o.updateState), r = J((o) => o.state.isMarketOrder);
35857
35857
  return rs(() => {
35858
35858
  setInterval(() => {
35859
35859
  t({ currentTime: Date.now() });
@@ -35861,7 +35861,7 @@ const sf = Yi({}), BL = new k3({
35861
35861
  }, [t]), rs(() => {
35862
35862
  var o, i, c, l, u, d, f, m, y, g, E, v;
35863
35863
  t({
35864
- isMarketOrder: e.module !== xe.LIMIT ? !1 : (i = (o = e.overrides) == null ? void 0 : o.state) == null ? void 0 : i.isMarketOrder,
35864
+ isMarketOrder: (i = (o = e.overrides) == null ? void 0 : o.state) == null ? void 0 : i.isMarketOrder,
35865
35865
  typedChunks: (l = (c = e.overrides) == null ? void 0 : c.state) == null ? void 0 : l.chunks,
35866
35866
  typedFillDelay: (d = (u = e.overrides) == null ? void 0 : u.state) == null ? void 0 : d.fillDelay,
35867
35867
  typedDuration: (m = (f = e.overrides) == null ? void 0 : f.state) == null ? void 0 : m.duration,
@@ -35879,7 +35879,7 @@ const sf = Yi({}), BL = new k3({
35879
35879
  limitPricePercent: void 0
35880
35880
  });
35881
35881
  }, [(s = e.srcToken) == null ? void 0 : s.address, (a = e.dstToken) == null ? void 0 : a.address]), rs(() => {
35882
- e.module === xe.LIMIT && t({ isMarketOrder: !1 }), e.module === xe.TAKE_PROFIT && t({ isMarketOrder: !0 });
35882
+ e.module === Ee.LIMIT && t({ isMarketOrder: !1 }), e.module === Ee.TAKE_PROFIT && t({ isMarketOrder: !0 });
35883
35883
  }, [e.module]), rs(() => {
35884
35884
  r && t({ isInvertedTrade: !1 });
35885
35885
  }, [r]), null;
@@ -35904,7 +35904,7 @@ const sf = Yi({}), BL = new k3({
35904
35904
  value: a
35905
35905
  };
35906
35906
  }, [e, s, t, r, n]), OL = (e) => {
35907
- const t = ee((l) => l.state.acceptedMarketPrice), { walletClient: r, publicClient: n } = Q(
35907
+ const t = J((l) => l.state.acceptedMarketPrice), { walletClient: r, publicClient: n } = Q(
35908
35908
  () => SL(e.chainId, e.provider),
35909
35909
  [e.chainId, e.provider]
35910
35910
  ), s = Q(
@@ -36215,7 +36215,7 @@ var HL = /* @__PURE__ */ $L();
36215
36215
  //! license : MIT
36216
36216
  //! momentjs.com
36217
36217
  var X6;
36218
- function J() {
36218
+ function ee() {
36219
36219
  return X6.apply(null, arguments);
36220
36220
  }
36221
36221
  function GL(e) {
@@ -36307,7 +36307,7 @@ function Du(e) {
36307
36307
  var t = hn(NaN);
36308
36308
  return e != null ? ds(Ce(t), e) : Ce(t).userInvalidated = !0, t;
36309
36309
  }
36310
- var k1 = J.momentProperties = [], $d = !1;
36310
+ var k1 = ee.momentProperties = [], $d = !1;
36311
36311
  function V0(e, t) {
36312
36312
  var r, n, s, a = k1.length;
36313
36313
  if (Zt(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), Zt(t._i) || (e._i = t._i), Zt(t._f) || (e._f = t._f), Zt(t._l) || (e._l = t._l), Zt(t._strict) || (e._strict = t._strict), Zt(t._tzm) || (e._tzm = t._tzm), Zt(t._isUTC) || (e._isUTC = t._isUTC), Zt(t._offset) || (e._offset = t._offset), Zt(t._pf) || (e._pf = Ce(t)), Zt(t._locale) || (e._locale = t._locale), a > 0)
@@ -36316,18 +36316,18 @@ function V0(e, t) {
36316
36316
  return e;
36317
36317
  }
36318
36318
  function gc(e) {
36319
- V0(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), $d === !1 && ($d = !0, J.updateOffset(this), $d = !1);
36319
+ V0(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), $d === !1 && ($d = !0, ee.updateOffset(this), $d = !1);
36320
36320
  }
36321
36321
  function Wr(e) {
36322
36322
  return e instanceof gc || e != null && e._isAMomentObject != null;
36323
36323
  }
36324
36324
  function J6(e) {
36325
- J.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
36325
+ ee.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
36326
36326
  }
36327
36327
  function Ur(e, t) {
36328
36328
  var r = !0;
36329
36329
  return ds(function() {
36330
- if (J.deprecationHandler != null && J.deprecationHandler(null, e), r) {
36330
+ if (ee.deprecationHandler != null && ee.deprecationHandler(null, e), r) {
36331
36331
  var n = [], s, a, o, i = arguments.length;
36332
36332
  for (a = 0; a < i; a++) {
36333
36333
  if (s = "", typeof arguments[a] == "object") {
@@ -36351,10 +36351,10 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
36351
36351
  }
36352
36352
  var C1 = {};
36353
36353
  function e2(e, t) {
36354
- J.deprecationHandler != null && J.deprecationHandler(e, t), C1[e] || (J6(t), C1[e] = !0);
36354
+ ee.deprecationHandler != null && ee.deprecationHandler(e, t), C1[e] || (J6(t), C1[e] = !0);
36355
36355
  }
36356
- J.suppressDeprecationWarnings = !1;
36357
- J.deprecationHandler = null;
36356
+ ee.suppressDeprecationWarnings = !1;
36357
+ ee.deprecationHandler = null;
36358
36358
  function bn(e) {
36359
36359
  return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
36360
36360
  }
@@ -36643,10 +36643,10 @@ ae("YYYYY", Ru, _u);
36643
36643
  ae("YYYYYY", Ru, _u);
36644
36644
  Ze(["YYYYY", "YYYYYY"], Lt);
36645
36645
  Ze("YYYY", function(e, t) {
36646
- t[Lt] = e.length === 2 ? J.parseTwoDigitYear(e) : Fe(e);
36646
+ t[Lt] = e.length === 2 ? ee.parseTwoDigitYear(e) : Fe(e);
36647
36647
  });
36648
36648
  Ze("YY", function(e, t) {
36649
- t[Lt] = J.parseTwoDigitYear(e);
36649
+ t[Lt] = ee.parseTwoDigitYear(e);
36650
36650
  });
36651
36651
  Ze("Y", function(e, t) {
36652
36652
  t[Lt] = parseInt(e, 10);
@@ -36654,7 +36654,7 @@ Ze("Y", function(e, t) {
36654
36654
  function ei(e) {
36655
36655
  return zu(e) ? 366 : 365;
36656
36656
  }
36657
- J.parseTwoDigitYear = function(e) {
36657
+ ee.parseTwoDigitYear = function(e) {
36658
36658
  return Fe(e) + (Fe(e) > 68 ? 1900 : 2e3);
36659
36659
  };
36660
36660
  var o2 = Io("FullYear", !0);
@@ -36663,7 +36663,7 @@ function hz() {
36663
36663
  }
36664
36664
  function Io(e, t) {
36665
36665
  return function(r) {
36666
- return r != null ? (i2(this, e, r), J.updateOffset(this, t), this) : Oi(this, e);
36666
+ return r != null ? (i2(this, e, r), ee.updateOffset(this, t), this) : Oi(this, e);
36667
36667
  };
36668
36668
  }
36669
36669
  function Oi(e, t) {
@@ -36823,7 +36823,7 @@ function u2(e, t) {
36823
36823
  return n = n < 29 ? n : Math.min(n, Q0(e.year(), r)), e._isUTC ? e._d.setUTCMonth(r, n) : e._d.setMonth(r, n), e;
36824
36824
  }
36825
36825
  function d2(e) {
36826
- return e != null ? (u2(this, e), J.updateOffset(this, !0), this) : Oi(this, "Month");
36826
+ return e != null ? (u2(this, e), ee.updateOffset(this, !0), this) : Oi(this, "Month");
36827
36827
  }
36828
36828
  function Az() {
36829
36829
  return Q0(this.year(), this.month());
@@ -37379,9 +37379,9 @@ function v$(e) {
37379
37379
  delete e._isValid;
37380
37380
  else
37381
37381
  return;
37382
- e._strict ? e._isValid = !1 : J.createFromInputFallback(e);
37382
+ e._strict ? e._isValid = !1 : ee.createFromInputFallback(e);
37383
37383
  }
37384
- J.createFromInputFallback = Ur(
37384
+ ee.createFromInputFallback = Ur(
37385
37385
  "value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
37386
37386
  function(e) {
37387
37387
  e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
@@ -37391,7 +37391,7 @@ function Ia(e, t, r) {
37391
37391
  return e ?? t ?? r;
37392
37392
  }
37393
37393
  function E$(e) {
37394
- var t = new Date(J.now());
37394
+ var t = new Date(ee.now());
37395
37395
  return e._useUTC ? [
37396
37396
  t.getUTCFullYear(),
37397
37397
  t.getUTCMonth(),
@@ -37419,16 +37419,16 @@ function k$(e) {
37419
37419
  _i(tt(), 1, 4).year
37420
37420
  ), n = Ia(t.W, 1), s = Ia(t.E, 1), (s < 1 || s > 7) && (c = !0)) : (a = e._locale._week.dow, o = e._locale._week.doy, l = _i(tt(), a, o), r = Ia(t.gg, e._a[Lt], l.year), n = Ia(t.w, l.week), t.d != null ? (s = t.d, (s < 0 || s > 6) && (c = !0)) : t.e != null ? (s = t.e + a, (t.e < 0 || t.e > 6) && (c = !0)) : s = a), n < 1 || n > $n(r, a, o) ? Ce(e)._overflowWeeks = !0 : c != null ? Ce(e)._overflowWeekday = !0 : (i = f2(r, n, s, a, o), e._a[Lt] = i.year, e._dayOfYear = i.dayOfYear);
37421
37421
  }
37422
- J.ISO_8601 = function() {
37422
+ ee.ISO_8601 = function() {
37423
37423
  };
37424
- J.RFC_2822 = function() {
37424
+ ee.RFC_2822 = function() {
37425
37425
  };
37426
37426
  function am(e) {
37427
- if (e._f === J.ISO_8601) {
37427
+ if (e._f === ee.ISO_8601) {
37428
37428
  g2(e);
37429
37429
  return;
37430
37430
  }
37431
- if (e._f === J.RFC_2822) {
37431
+ if (e._f === ee.RFC_2822) {
37432
37432
  x2(e);
37433
37433
  return;
37434
37434
  }
@@ -37479,9 +37479,9 @@ function w2(e) {
37479
37479
  }
37480
37480
  function P$(e) {
37481
37481
  var t = e._i;
37482
- Zt(t) ? e._d = new Date(J.now()) : yc(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? v$(e) : Vr(t) ? (e._a = Q6(t.slice(0), function(r) {
37482
+ Zt(t) ? e._d = new Date(ee.now()) : yc(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? v$(e) : Vr(t) ? (e._a = Q6(t.slice(0), function(r) {
37483
37483
  return parseInt(r, 10);
37484
- }), sm(e)) : Js(t) ? A$(e) : Vn(t) ? e._d = new Date(t) : J.createFromInputFallback(e);
37484
+ }), sm(e)) : Js(t) ? A$(e) : Vn(t) ? e._d = new Date(t) : ee.createFromInputFallback(e);
37485
37485
  }
37486
37486
  function v2(e, t, r, n, s) {
37487
37487
  var a = {};
@@ -37589,12 +37589,12 @@ function om(e, t) {
37589
37589
  }
37590
37590
  function im(e, t) {
37591
37591
  var r, n;
37592
- return t._isUTC ? (r = t.clone(), n = (Wr(e) || yc(e) ? e.valueOf() : tt(e).valueOf()) - r.valueOf(), r._d.setTime(r._d.valueOf() + n), J.updateOffset(r, !1), r) : tt(e).local();
37592
+ return t._isUTC ? (r = t.clone(), n = (Wr(e) || yc(e) ? e.valueOf() : tt(e).valueOf()) - r.valueOf(), r._d.setTime(r._d.valueOf() + n), ee.updateOffset(r, !1), r) : tt(e).local();
37593
37593
  }
37594
37594
  function pf(e) {
37595
37595
  return -Math.round(e._d.getTimezoneOffset());
37596
37596
  }
37597
- J.updateOffset = function() {
37597
+ ee.updateOffset = function() {
37598
37598
  };
37599
37599
  function L$(e, t, r) {
37600
37600
  var n = this._offset || 0, s;
@@ -37610,7 +37610,7 @@ function L$(e, t, r) {
37610
37610
  Zr(e - n, "m"),
37611
37611
  1,
37612
37612
  !1
37613
- ) : this._changeInProgress || (this._changeInProgress = !0, J.updateOffset(this, !0), this._changeInProgress = null)), this;
37613
+ ) : this._changeInProgress || (this._changeInProgress = !0, ee.updateOffset(this, !0), this._changeInProgress = null)), this;
37614
37614
  } else
37615
37615
  return this._isUTC ? n : pf(this);
37616
37616
  }
@@ -37706,7 +37706,7 @@ function T2(e, t) {
37706
37706
  }
37707
37707
  function A2(e, t, r, n) {
37708
37708
  var s = t._milliseconds, a = df(t._days), o = df(t._months);
37709
- e.isValid() && (n = n ?? !0, o && u2(e, Oi(e, "Month") + o * r), a && i2(e, "Date", Oi(e, "Date") + a * r), s && e._d.setTime(e._d.valueOf() + s * r), n && J.updateOffset(e, a || o));
37709
+ e.isValid() && (n = n ?? !0, o && u2(e, Oi(e, "Month") + o * r), a && i2(e, "Date", Oi(e, "Date") + a * r), s && e._d.setTime(e._d.valueOf() + s * r), n && ee.updateOffset(e, a || o));
37710
37710
  }
37711
37711
  var Q$ = T2(1, "add"), J$ = T2(-1, "subtract");
37712
37712
  function S2(e) {
@@ -37771,7 +37771,7 @@ function sH(e, t) {
37771
37771
  }
37772
37772
  function aH(e, t) {
37773
37773
  arguments.length === 1 && (arguments[0] ? eH(arguments[0]) ? (e = arguments[0], t = void 0) : nH(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
37774
- var r = e || tt(), n = im(r, this).startOf("day"), s = J.calendarFormat(this, n) || "sameElse", a = t && (bn(t[s]) ? t[s].call(this, r) : t[s]);
37774
+ var r = e || tt(), n = im(r, this).startOf("day"), s = ee.calendarFormat(this, n) || "sameElse", a = t && (bn(t[s]) ? t[s].call(this, r) : t[s]);
37775
37775
  return this.format(
37776
37776
  a || this.localeData().calendar(s, this, tt(r))
37777
37777
  );
@@ -37848,8 +37848,8 @@ function Pl(e, t) {
37848
37848
  var r = (t.year() - e.year()) * 12 + (t.month() - e.month()), n = e.clone().add(r, "months"), s, a;
37849
37849
  return t - n < 0 ? (s = e.clone().add(r - 1, "months"), a = (t - n) / (n - s)) : (s = e.clone().add(r + 1, "months"), a = (t - n) / (s - n)), -(r + a) || 0;
37850
37850
  }
37851
- J.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
37852
- J.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
37851
+ ee.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
37852
+ ee.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
37853
37853
  function mH() {
37854
37854
  return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
37855
37855
  }
@@ -37872,7 +37872,7 @@ function bH() {
37872
37872
  return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), r = "[" + e + '("]', n = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", s = "-MM-DD[T]HH:mm:ss.SSS", a = t + '[")]', this.format(r + n + s + a);
37873
37873
  }
37874
37874
  function yH(e) {
37875
- e || (e = this.isUtc() ? J.defaultFormatUtc : J.defaultFormat);
37875
+ e || (e = this.isUtc() ? ee.defaultFormatUtc : ee.defaultFormat);
37876
37876
  var t = Al(this, e);
37877
37877
  return this.localeData().postformat(t);
37878
37878
  }
@@ -37960,7 +37960,7 @@ function EH(e) {
37960
37960
  t = this._d.valueOf(), t -= Ha(t, ql);
37961
37961
  break;
37962
37962
  }
37963
- return this._d.setTime(t), J.updateOffset(this, !0), this;
37963
+ return this._d.setTime(t), ee.updateOffset(this, !0), this;
37964
37964
  }
37965
37965
  function kH(e) {
37966
37966
  var t, r;
@@ -38011,7 +38011,7 @@ function kH(e) {
38011
38011
  t = this._d.valueOf(), t += ql - Ha(t, ql) - 1;
38012
38012
  break;
38013
38013
  }
38014
- return this._d.setTime(t), J.updateOffset(this, !0), this;
38014
+ return this._d.setTime(t), ee.updateOffset(this, !0), this;
38015
38015
  }
38016
38016
  function CH() {
38017
38017
  return this._d.valueOf() - (this._offset || 0) * 6e4;
@@ -38103,7 +38103,7 @@ function DH(e, t) {
38103
38103
  for (r = 0, n = a.length; r < n; ++r) {
38104
38104
  switch (typeof a[r].since) {
38105
38105
  case "string":
38106
- s = J(a[r].since).startOf("day"), a[r].since = s.valueOf();
38106
+ s = ee(a[r].since).startOf("day"), a[r].since = s.valueOf();
38107
38107
  break;
38108
38108
  }
38109
38109
  switch (typeof a[r].until) {
@@ -38111,7 +38111,7 @@ function DH(e, t) {
38111
38111
  a[r].until = 1 / 0;
38112
38112
  break;
38113
38113
  case "string":
38114
- s = J(a[r].until).startOf("day").valueOf(), a[r].until = s.valueOf();
38114
+ s = ee(a[r].until).startOf("day").valueOf(), a[r].until = s.valueOf();
38115
38115
  break;
38116
38116
  }
38117
38117
  }
@@ -38142,7 +38142,7 @@ function _H(e, t, r) {
38142
38142
  }
38143
38143
  function MH(e, t) {
38144
38144
  var r = e.since <= e.until ? 1 : -1;
38145
- return t === void 0 ? J(e.since).year() : J(e.since).year() + (t - e.offset) * r;
38145
+ return t === void 0 ? ee(e.since).year() : ee(e.since).year() + (t - e.offset) * r;
38146
38146
  }
38147
38147
  function RH() {
38148
38148
  var e, t, r, n = this.localeData().eras();
@@ -38169,7 +38169,7 @@ function zH() {
38169
38169
  var e, t, r, n, s = this.localeData().eras();
38170
38170
  for (e = 0, t = s.length; e < t; ++e)
38171
38171
  if (r = s[e].since <= s[e].until ? 1 : -1, n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
38172
- return (this.year() - J(s[e].since).year()) * r + s[e].offset;
38172
+ return (this.year() - ee(s[e].since).year()) * r + s[e].offset;
38173
38173
  return this.year();
38174
38174
  }
38175
38175
  function $H(e) {
@@ -38230,7 +38230,7 @@ wc(
38230
38230
  }
38231
38231
  );
38232
38232
  wc(["gg", "GG"], function(e, t, r, n) {
38233
- t[n] = J.parseTwoDigitYear(e);
38233
+ t[n] = ee.parseTwoDigitYear(e);
38234
38234
  });
38235
38235
  function qH(e) {
38236
38236
  return D2.call(
@@ -38563,11 +38563,11 @@ bs("en", {
38563
38563
  return e + r;
38564
38564
  }
38565
38565
  });
38566
- J.lang = Ur(
38566
+ ee.lang = Ur(
38567
38567
  "moment.lang is deprecated. Use moment.locale instead.",
38568
38568
  bs
38569
38569
  );
38570
- J.langData = Ur(
38570
+ ee.langData = Ur(
38571
38571
  "moment.langData is deprecated. Use moment.localeData instead.",
38572
38572
  Kn
38573
38573
  );
@@ -38746,36 +38746,36 @@ Ze("x", function(e, t, r) {
38746
38746
  r._d = new Date(Fe(e));
38747
38747
  });
38748
38748
  //! moment.js
38749
- J.version = "2.30.1";
38749
+ ee.version = "2.30.1";
38750
38750
  GL(tt);
38751
- J.fn = W;
38752
- J.min = F$;
38753
- J.max = U$;
38754
- J.now = O$;
38755
- J.utc = hn;
38756
- J.unix = iG;
38757
- J.months = lG;
38758
- J.isDate = yc;
38759
- J.locale = bs;
38760
- J.invalid = Du;
38761
- J.duration = Zr;
38762
- J.isMoment = Wr;
38763
- J.weekdays = dG;
38764
- J.parseZone = cG;
38765
- J.localeData = Kn;
38766
- J.isDuration = Sl;
38767
- J.monthsShort = uG;
38768
- J.weekdaysMin = fG;
38769
- J.defineLocale = rm;
38770
- J.updateLocale = c$;
38771
- J.locales = l$;
38772
- J.weekdaysShort = pG;
38773
- J.normalizeUnits = Or;
38774
- J.relativeTimeRounding = zG;
38775
- J.relativeTimeThreshold = $G;
38776
- J.calendarFormat = sH;
38777
- J.prototype = W;
38778
- J.HTML5_FMT = {
38751
+ ee.fn = W;
38752
+ ee.min = F$;
38753
+ ee.max = U$;
38754
+ ee.now = O$;
38755
+ ee.utc = hn;
38756
+ ee.unix = iG;
38757
+ ee.months = lG;
38758
+ ee.isDate = yc;
38759
+ ee.locale = bs;
38760
+ ee.invalid = Du;
38761
+ ee.duration = Zr;
38762
+ ee.isMoment = Wr;
38763
+ ee.weekdays = dG;
38764
+ ee.parseZone = cG;
38765
+ ee.localeData = Kn;
38766
+ ee.isDuration = Sl;
38767
+ ee.monthsShort = uG;
38768
+ ee.weekdaysMin = fG;
38769
+ ee.defineLocale = rm;
38770
+ ee.updateLocale = c$;
38771
+ ee.locales = l$;
38772
+ ee.weekdaysShort = pG;
38773
+ ee.normalizeUnits = Or;
38774
+ ee.relativeTimeRounding = zG;
38775
+ ee.relativeTimeThreshold = $G;
38776
+ ee.calendarFormat = sH;
38777
+ ee.prototype = W;
38778
+ ee.HTML5_FMT = {
38779
38779
  DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
38780
38780
  // <input type="datetime-local" />
38781
38781
  DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
@@ -39010,12 +39010,12 @@ function rj(e, t, r) {
39010
39010
  return $ && (Z = 2), Z && (U = U.substring(Z), F -= Z, R -= Z), { value: U, start: F, end: R, hasNegation: L };
39011
39011
  }, w = v(e, u, d), A = w.hasNegation;
39012
39012
  n = w, e = n.value, u = n.start, d = n.end;
39013
- var C = v(t.lastValue, c.start, c.end), O = C.start, N = C.end, T = C.value, h = e.substring(u, d);
39014
- e.length && T.length && (O > T.length - o.length || N < a.length) && !(h && o.startsWith(h)) && (e = T);
39013
+ var C = v(t.lastValue, c.start, c.end), O = C.start, N = C.end, S = C.value, h = e.substring(u, d);
39014
+ e.length && S.length && (O > S.length - o.length || N < a.length) && !(h && o.startsWith(h)) && (e = S);
39015
39015
  var b = 0;
39016
39016
  e.startsWith(a) ? b += a.length : u < a.length && (b = u), e = e.substring(b), d -= b;
39017
- var x = e.length, S = e.length - o.length;
39018
- e.endsWith(o) ? x = S : (d > S || d > e.length - o.length) && (x = d), e = e.substring(0, x), e = JG(A ? "-" + e : e, s), e = (e.match(ej(y)) || []).join("");
39017
+ var x = e.length, T = e.length - o.length;
39018
+ e.endsWith(o) ? x = T : (d > T || d > e.length - o.length) && (x = d), e = e.substring(0, x), e = JG(A ? "-" + e : e, s), e = (e.match(ej(y)) || []).join("");
39019
39019
  var I = e.indexOf(y);
39020
39020
  e = e.replace(new RegExp(j2(y), "g"), function(U, F) {
39021
39021
  return F === I ? "." : "";
@@ -39067,7 +39067,7 @@ function aj(e) {
39067
39067
  Ga(d) ? Ga(u) || (O = O || typeof u == "number") : O = O || typeof d == "number";
39068
39068
  var N = function(P) {
39069
39069
  return G2(P) ? P : (typeof P == "number" && (P = W2(P)), O && typeof i == "number" ? B1(P, i, !!c) : P);
39070
- }, T = QG(N(d), N(u), !!O, w, A, m), h = T[0], b = h.numAsString, x = h.formattedValue, S = T[1], I = function(P) {
39070
+ }, S = QG(N(d), N(u), !!O, w, A, m), h = S[0], b = h.numAsString, x = h.formattedValue, T = S[1], I = function(P) {
39071
39071
  var U = P.target, F = P.key, R = U.selectionStart, L = U.selectionEnd, $ = U.value;
39072
39072
  if ($ === void 0 && ($ = ""), (F === "Backspace" || F === "Delete") && L < l.length) {
39073
39073
  P.preventDefault();
@@ -39084,7 +39084,7 @@ function aj(e) {
39084
39084
  var U = b;
39085
39085
  if (U.match(/\d/g) || (U = ""), n || (U = YG(U)), c && i && (U = B1(U, i, c)), U !== b) {
39086
39086
  var F = F1(U, e);
39087
- S({
39087
+ T({
39088
39088
  formattedValue: F,
39089
39089
  value: U,
39090
39090
  floatValue: parseFloat(U)
@@ -39107,7 +39107,7 @@ function aj(e) {
39107
39107
  valueIsNumericString: !1,
39108
39108
  isValidInputCharacter: D,
39109
39109
  isCharacterSame: k,
39110
- onValueChange: S,
39110
+ onValueChange: T,
39111
39111
  format: w,
39112
39112
  removeFormatting: A,
39113
39113
  getCaretBoundary: function(P) {
@@ -39137,7 +39137,7 @@ const q2 = (e, t) => Q(() => O0(t, e), [e, t]), On = (e, t) => Q(() => Iu(t, e),
39137
39137
  return e || t;
39138
39138
  }, pm = (e) => {
39139
39139
  const { overrides: t } = ne();
39140
- return Q(() => t != null && t.dateFormat ? t.dateFormat(e || 0) : J(e).format("DD/MM/YYYY HH:mm"), [e, t == null ? void 0 : t.dateFormat]);
39140
+ return Q(() => t != null && t.dateFormat ? t.dateFormat(e || 0) : ee(e).format("DD/MM/YYYY HH:mm"), [e, t == null ? void 0 : t.dateFormat]);
39141
39141
  };
39142
39142
  function lj() {
39143
39143
  const { callbacks: e } = ne();
@@ -39555,8 +39555,8 @@ const fm = () => {
39555
39555
  }
39556
39556
  }, [t, e]);
39557
39557
  }, X2 = () => {
39558
- const { module: e } = ne(), t = ee((r) => r.state.isMarketOrder);
39559
- return Q(() => e === xe.TWAP ? t ? Ve.TWAP_MARKET : Ve.TWAP_LIMIT : e === xe.LIMIT ? Ve.LIMIT : e === xe.STOP_LOSS ? t ? Ve.STOP_LOSS_MARKET : Ve.STOP_LOSS_LIMIT : e === xe.TAKE_PROFIT ? Ve.TAKE_PROFIT : Ve.TWAP_MARKET, [e, t]);
39558
+ const { module: e } = ne(), t = J((r) => r.state.isMarketOrder);
39559
+ return Q(() => e === Ee.TWAP ? t ? Ve.TWAP_MARKET : Ve.TWAP_LIMIT : e === Ee.LIMIT ? Ve.LIMIT : e === Ee.STOP_LOSS ? t ? Ve.STOP_LOSS_MARKET : Ve.STOP_LOSS_LIMIT : e === Ee.TAKE_PROFIT ? Ve.TAKE_PROFIT : Ve.TWAP_MARKET, [e, t]);
39560
39560
  }, Q2 = () => {
39561
39561
  const e = X2();
39562
39562
  return Z2(e);
@@ -39627,7 +39627,7 @@ const fm = () => {
39627
39627
  isRefetching: s
39628
39628
  }), [e, t, r, n, a, s]);
39629
39629
  }, tx = () => {
39630
- const e = ee((r) => r.state.orderHistoryStatusFilter), { orders: t } = qu();
39630
+ const e = J((r) => r.state.orderHistoryStatusFilter), { orders: t } = qu();
39631
39631
  return Q(() => e ? t.all.filter(
39632
39632
  (r) => r.status.toLowerCase() === e.toLowerCase()
39633
39633
  ) || [] : t.all, [e, t]);
@@ -39645,7 +39645,7 @@ const fm = () => {
39645
39645
  if (!(!e || !t || !r))
39646
39646
  return $5(r, e.decimals, t.decimals);
39647
39647
  }, [r, e, t]), rx = () => {
39648
- const e = ee((r) => r.updateState), t = ee((r) => r.state.orderIdsToCancel);
39648
+ const e = J((r) => r.updateState), t = J((r) => r.state.orderIdsToCancel);
39649
39649
  return $e(
39650
39650
  (r) => {
39651
39651
  t != null && t.includes(r) ? e({
@@ -39657,13 +39657,13 @@ const fm = () => {
39657
39657
  [e, t]
39658
39658
  );
39659
39659
  }, UY = () => {
39660
- var T, h;
39660
+ var S, h;
39661
39661
  const e = Re(), {
39662
39662
  orders: t,
39663
39663
  isLoading: r,
39664
39664
  refetch: n,
39665
39665
  isRefetching: s
39666
- } = qu(), { mutateAsync: a, isPending: o } = hm(), i = tx(), c = ee((b) => b.updateState), l = ee((b) => b.state.orderHistoryStatusFilter), u = ee((b) => b.state.cancelOrdersMode), d = ee((b) => b.state.orderIdsToCancel), f = $e(
39666
+ } = qu(), { mutateAsync: a, isPending: o } = hm(), i = tx(), c = J((b) => b.updateState), l = J((b) => b.state.orderHistoryStatusFilter), u = J((b) => b.state.cancelOrdersMode), d = J((b) => b.state.orderIdsToCancel), f = $e(
39667
39667
  (b) => c({ cancelOrdersMode: b, orderIdsToCancel: [] }),
39668
39668
  [c]
39669
39669
  ), m = $e(
@@ -39681,7 +39681,7 @@ const fm = () => {
39681
39681
  value: x
39682
39682
  }));
39683
39683
  return [{ text: e("allOrders"), value: "" }, ...b];
39684
- }, [e]), v = rx(), w = ee((b) => b.state.selectedOrderID), A = Y2(w), C = Q(
39684
+ }, [e]), v = rx(), w = J((b) => b.state.selectedOrderID), A = Y2(w), C = Q(
39685
39685
  () => t.all.filter((b) => d == null ? void 0 : d.includes(b.id)),
39686
39686
  [t, d]
39687
39687
  ), O = $e(
@@ -39704,7 +39704,7 @@ const fm = () => {
39704
39704
  ordersToDisplay: i,
39705
39705
  isLoading: r,
39706
39706
  selectedOrder: w ? A : void 0,
39707
- openOrdersCount: ((T = t == null ? void 0 : t.open) == null ? void 0 : T.length) || 0,
39707
+ openOrdersCount: ((S = t == null ? void 0 : t.open) == null ? void 0 : S.length) || 0,
39708
39708
  isCancelOrdersLoading: o,
39709
39709
  selectedStatus: l || ((h = E[0]) == null ? void 0 : h.value) || "",
39710
39710
  statuses: E,
@@ -39731,7 +39731,7 @@ const fm = () => {
39731
39731
  }
39732
39732
  });
39733
39733
  }, hm = () => {
39734
- const { account: e, walletClient: t, publicClient: r, config: n, callbacks: s, chainId: a } = ne(), o = fm(), i = aW().mutateAsync, c = ee((d) => d.updateState), l = async (d) => {
39734
+ const { account: e, walletClient: t, publicClient: r, config: n, callbacks: s, chainId: a } = ne(), o = fm(), i = aW().mutateAsync, c = J((d) => d.updateState), l = async (d) => {
39735
39735
  bt.onCancelOrderRequest(
39736
39736
  d.map((f) => f.id.toString()),
39737
39737
  1
@@ -39804,7 +39804,7 @@ const fm = () => {
39804
39804
  }
39805
39805
  });
39806
39806
  }, nx = Yi({}), zt = () => Ql(nx), oW = () => {
39807
- const e = ee((c) => c.state.selectedOrderID), t = Y2(e), r = Re(), [n, s] = Jl("panel1"), { components: a } = ne(), o = a.TokenLogo;
39807
+ const e = J((c) => c.state.selectedOrderID), t = Y2(e), r = Re(), [n, s] = Jl("panel1"), { components: a } = ne(), o = a.TokenLogo;
39808
39808
  rs(() => {
39809
39809
  s("panel1");
39810
39810
  }, [t.id.value]);
@@ -40794,31 +40794,31 @@ const XW = {
40794
40794
  offsetWidth: "width"
40795
40795
  }, yn = je(
40796
40796
  ([{ log: e }, { recalcInProgress: t }]) => {
40797
- const r = _e(), n = _e(), s = Nt(n, 0), a = _e(), o = _e(), i = q(0), c = q([]), l = q(void 0), u = q(void 0), d = q(void 0), f = q(void 0), m = q((T, h) => Es(T, XW[h])), y = q(void 0), g = q(0), E = HW(), v = Nt(
40797
+ const r = _e(), n = _e(), s = Nt(n, 0), a = _e(), o = _e(), i = q(0), c = q([]), l = q(void 0), u = q(void 0), d = q(void 0), f = q(void 0), m = q((S, h) => Es(S, XW[h])), y = q(void 0), g = q(0), E = HW(), v = Nt(
40798
40798
  j(r, Pe(c, e, g), on(qW, E), et()),
40799
40799
  E
40800
40800
  ), w = Nt(
40801
40801
  j(
40802
40802
  c,
40803
40803
  et(),
40804
- on((T, h) => ({ current: h, prev: T.current }), {
40804
+ on((S, h) => ({ current: h, prev: S.current }), {
40805
40805
  current: [],
40806
40806
  prev: []
40807
40807
  }),
40808
- re(({ prev: T }) => T)
40808
+ re(({ prev: S }) => S)
40809
40809
  ),
40810
40810
  []
40811
40811
  );
40812
40812
  ce(
40813
40813
  j(
40814
40814
  c,
40815
- me((T) => T.length > 0),
40815
+ me((S) => S.length > 0),
40816
40816
  Pe(v, g),
40817
- re(([T, h, b]) => {
40818
- const x = T.reduce((S, I, B) => lr(S, I, zi(I, h.offsetTree, b) || B), ja());
40817
+ re(([S, h, b]) => {
40818
+ const x = S.reduce((T, I, B) => lr(T, I, zi(I, h.offsetTree, b) || B), ja());
40819
40819
  return {
40820
40820
  ...h,
40821
- groupIndices: T,
40821
+ groupIndices: S,
40822
40822
  groupOffsetTree: x
40823
40823
  };
40824
40824
  })
@@ -40828,12 +40828,12 @@ const XW = {
40828
40828
  j(
40829
40829
  n,
40830
40830
  Pe(v),
40831
- me(([T, { lastIndex: h }]) => T < h),
40832
- re(([T, { lastIndex: h, lastSize: b }]) => [
40831
+ me(([S, { lastIndex: h }]) => S < h),
40832
+ re(([S, { lastIndex: h, lastSize: b }]) => [
40833
40833
  {
40834
40834
  endIndex: h,
40835
40835
  size: b,
40836
- startIndex: T
40836
+ startIndex: S
40837
40837
  }
40838
40838
  ])
40839
40839
  ),
@@ -40842,40 +40842,40 @@ const XW = {
40842
40842
  const A = Nt(
40843
40843
  j(
40844
40844
  l,
40845
- re((T) => T === void 0)
40845
+ re((S) => S === void 0)
40846
40846
  ),
40847
40847
  !0
40848
40848
  );
40849
40849
  ce(
40850
40850
  j(
40851
40851
  u,
40852
- me((T) => T !== void 0 && Ye(it(v).sizeTree)),
40853
- re((T) => {
40852
+ me((S) => S !== void 0 && Ye(it(v).sizeTree)),
40853
+ re((S) => {
40854
40854
  const h = it(d), b = it(c).length > 0;
40855
40855
  return h ? b ? [
40856
40856
  { endIndex: 0, size: h, startIndex: 0 },
40857
- { endIndex: 1, size: T, startIndex: 1 }
40858
- ] : [] : [{ endIndex: 0, size: T, startIndex: 0 }];
40857
+ { endIndex: 1, size: S, startIndex: 1 }
40858
+ ] : [] : [{ endIndex: 0, size: S, startIndex: 0 }];
40859
40859
  })
40860
40860
  ),
40861
40861
  r
40862
40862
  ), ce(
40863
40863
  j(
40864
40864
  f,
40865
- me((T) => T !== void 0 && T.length > 0 && Ye(it(v).sizeTree)),
40866
- re((T) => {
40865
+ me((S) => S !== void 0 && S.length > 0 && Ye(it(v).sizeTree)),
40866
+ re((S) => {
40867
40867
  const h = [];
40868
- let b = T[0], x = 0;
40869
- for (let S = 1; S < T.length; S++) {
40870
- const I = T[S];
40868
+ let b = S[0], x = 0;
40869
+ for (let T = 1; T < S.length; T++) {
40870
+ const I = S[T];
40871
40871
  I !== b && (h.push({
40872
- endIndex: S - 1,
40872
+ endIndex: T - 1,
40873
40873
  size: b,
40874
40874
  startIndex: x
40875
- }), b = I, x = S);
40875
+ }), b = I, x = T);
40876
40876
  }
40877
40877
  return h.push({
40878
- endIndex: T.length - 1,
40878
+ endIndex: S.length - 1,
40879
40879
  size: b,
40880
40880
  startIndex: x
40881
40881
  }), h;
@@ -40886,11 +40886,11 @@ const XW = {
40886
40886
  j(
40887
40887
  c,
40888
40888
  Pe(d, u),
40889
- me(([, T, h]) => T !== void 0 && h !== void 0),
40890
- re(([T, h, b]) => {
40889
+ me(([, S, h]) => S !== void 0 && h !== void 0),
40890
+ re(([S, h, b]) => {
40891
40891
  const x = [];
40892
- for (let S = 0; S < T.length; S++) {
40893
- const I = T[S], B = T[S + 1];
40892
+ for (let T = 0; T < S.length; T++) {
40893
+ const I = S[T], B = S[T + 1];
40894
40894
  x.push({
40895
40895
  startIndex: I,
40896
40896
  endIndex: I,
@@ -40911,35 +40911,35 @@ const XW = {
40911
40911
  r,
40912
40912
  Pe(v),
40913
40913
  on(
40914
- ({ sizes: T }, [h, b]) => ({
40915
- changed: b !== T,
40914
+ ({ sizes: S }, [h, b]) => ({
40915
+ changed: b !== S,
40916
40916
  sizes: b
40917
40917
  }),
40918
40918
  { changed: !1, sizes: E }
40919
40919
  ),
40920
- re((T) => T.changed)
40920
+ re((S) => S.changed)
40921
40921
  )
40922
40922
  );
40923
40923
  We(
40924
40924
  j(
40925
40925
  i,
40926
40926
  on(
40927
- (T, h) => ({ diff: T.prev - h, prev: h }),
40927
+ (S, h) => ({ diff: S.prev - h, prev: h }),
40928
40928
  { diff: 0, prev: 0 }
40929
40929
  ),
40930
- re((T) => T.diff)
40930
+ re((S) => S.diff)
40931
40931
  ),
40932
- (T) => {
40932
+ (S) => {
40933
40933
  const { groupIndices: h } = it(v);
40934
- if (T > 0)
40935
- Te(t, !0), Te(a, T + L1(T, h));
40936
- else if (T < 0) {
40934
+ if (S > 0)
40935
+ Te(t, !0), Te(a, S + L1(S, h));
40936
+ else if (S < 0) {
40937
40937
  const b = it(w);
40938
- b.length > 0 && (T -= L1(-T, b)), Te(o, T);
40938
+ b.length > 0 && (S -= L1(-S, b)), Te(o, S);
40939
40939
  }
40940
40940
  }
40941
- ), We(j(i, Pe(e)), ([T, h]) => {
40942
- T < 0 && h(
40941
+ ), We(j(i, Pe(e)), ([S, h]) => {
40942
+ S < 0 && h(
40943
40943
  "`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",
40944
40944
  { firstItemIndex: i },
40945
40945
  sr.ERROR
@@ -40950,12 +40950,12 @@ const XW = {
40950
40950
  j(
40951
40951
  a,
40952
40952
  Pe(v),
40953
- re(([T, h]) => {
40954
- const b = h.groupIndices.length > 0, x = [], S = h.lastSize;
40953
+ re(([S, h]) => {
40954
+ const b = h.groupIndices.length > 0, x = [], T = h.lastSize;
40955
40955
  if (b) {
40956
40956
  const I = Ni(h.sizeTree, 0);
40957
40957
  let B = 0, D = 0;
40958
- for (; B < T; ) {
40958
+ for (; B < S; ) {
40959
40959
  const P = h.groupIndices[D], U = h.groupIndices.length === D + 1 ? 1 / 0 : h.groupIndices[D + 1] - P - 1;
40960
40960
  x.push({
40961
40961
  endIndex: P,
@@ -40963,29 +40963,29 @@ const XW = {
40963
40963
  startIndex: P
40964
40964
  }), x.push({
40965
40965
  endIndex: P + 1 + U - 1,
40966
- size: S,
40966
+ size: T,
40967
40967
  startIndex: P + 1
40968
40968
  }), D++, B += U + 1;
40969
40969
  }
40970
40970
  const k = Ls(h.sizeTree);
40971
- return B !== T && k.shift(), k.reduce(
40971
+ return B !== S && k.shift(), k.reduce(
40972
40972
  (P, { k: U, v: F }) => {
40973
40973
  let R = P.ranges;
40974
40974
  return P.prevSize !== 0 && (R = [
40975
40975
  ...P.ranges,
40976
40976
  {
40977
- endIndex: U + T - 1,
40977
+ endIndex: U + S - 1,
40978
40978
  size: P.prevSize,
40979
40979
  startIndex: P.prevIndex
40980
40980
  }
40981
40981
  ]), {
40982
- prevIndex: U + T,
40982
+ prevIndex: U + S,
40983
40983
  prevSize: F,
40984
40984
  ranges: R
40985
40985
  };
40986
40986
  },
40987
40987
  {
40988
- prevIndex: T,
40988
+ prevIndex: S,
40989
40989
  prevSize: 0,
40990
40990
  ranges: x
40991
40991
  }
@@ -40993,13 +40993,13 @@ const XW = {
40993
40993
  }
40994
40994
  return Ls(h.sizeTree).reduce(
40995
40995
  (I, { k: B, v: D }) => ({
40996
- prevIndex: B + T,
40996
+ prevIndex: B + S,
40997
40997
  prevSize: D,
40998
- ranges: [...I.ranges, { endIndex: B + T - 1, size: I.prevSize, startIndex: I.prevIndex }]
40998
+ ranges: [...I.ranges, { endIndex: B + S - 1, size: I.prevSize, startIndex: I.prevIndex }]
40999
40999
  }),
41000
41000
  {
41001
41001
  prevIndex: 0,
41002
- prevSize: S,
41002
+ prevSize: T,
41003
41003
  ranges: []
41004
41004
  }
41005
41005
  ).ranges;
@@ -41011,8 +41011,8 @@ const XW = {
41011
41011
  j(
41012
41012
  o,
41013
41013
  Pe(v, g),
41014
- re(([T, { offsetTree: h }, b]) => {
41015
- const x = -T;
41014
+ re(([S, { offsetTree: h }, b]) => {
41015
+ const x = -S;
41016
41016
  return zi(x, h, b);
41017
41017
  })
41018
41018
  )
@@ -41021,22 +41021,22 @@ const XW = {
41021
41021
  j(
41022
41022
  o,
41023
41023
  Pe(v, g),
41024
- re(([T, h, b]) => {
41024
+ re(([S, h, b]) => {
41025
41025
  if (h.groupIndices.length > 0) {
41026
41026
  if (Ye(h.sizeTree))
41027
41027
  return h;
41028
41028
  let x = ja();
41029
- const S = it(w);
41029
+ const T = it(w);
41030
41030
  let I = 0, B = 0, D = 0;
41031
- for (; I < -T; ) {
41032
- D = S[B];
41033
- const k = S[B + 1] - D - 1;
41031
+ for (; I < -S; ) {
41032
+ D = T[B];
41033
+ const k = T[B + 1] - D - 1;
41034
41034
  B++, I += k + 1;
41035
41035
  }
41036
- if (x = Ls(h.sizeTree).reduce((k, { k: P, v: U }) => lr(k, Math.max(0, P + T), U), x), I !== -T) {
41036
+ if (x = Ls(h.sizeTree).reduce((k, { k: P, v: U }) => lr(k, Math.max(0, P + S), U), x), I !== -S) {
41037
41037
  const k = Ni(h.sizeTree, D);
41038
41038
  x = lr(x, 0, k);
41039
- const P = qr(h.sizeTree, -T + 1)[1];
41039
+ const P = qr(h.sizeTree, -S + 1)[1];
41040
41040
  x = lr(x, 1, P);
41041
41041
  }
41042
41042
  return {
@@ -41045,7 +41045,7 @@ const XW = {
41045
41045
  ...wf(h.offsetTree, 0, x, b)
41046
41046
  };
41047
41047
  } else {
41048
- const x = Ls(h.sizeTree).reduce((S, { k: I, v: B }) => lr(S, Math.max(0, I + T), B), ja());
41048
+ const x = Ls(h.sizeTree).reduce((T, { k: I, v: B }) => lr(T, Math.max(0, I + S), B), ja());
41049
41049
  return {
41050
41050
  ...h,
41051
41051
  sizeTree: x,
@@ -41165,16 +41165,16 @@ const Ec = je(
41165
41165
  Pe(e, a, s),
41166
41166
  re(
41167
41167
  ([
41168
- [C, O, N, T, h, b, x, S],
41168
+ [C, O, N, S, h, b, x, T],
41169
41169
  I,
41170
41170
  B,
41171
41171
  D
41172
41172
  ]) => {
41173
- const k = gx(C), { align: P, behavior: U, offset: F } = k, R = T - 1, L = bx(k, O, R);
41173
+ const k = gx(C), { align: P, behavior: U, offset: F } = k, R = S - 1, L = bx(k, O, R);
41174
41174
  let $ = zi(L, O.offsetTree, I) + b;
41175
41175
  P === "end" ? ($ += B + qr(O.sizeTree, L)[1] - N + D, L === R && ($ += x)) : P === "center" ? $ += (B + qr(O.sizeTree, L)[1] - N + D) / 2 : $ -= h, F && ($ += F);
41176
41176
  const Z = (pe) => {
41177
- A(), pe ? (S("retrying to scroll to", { location: C }, sr.DEBUG), Te(m, C)) : (Te(y, !0), S("list did not change, scroll successful", {}, sr.DEBUG));
41177
+ A(), pe ? (T("retrying to scroll to", { location: C }, sr.DEBUG), Te(m, C)) : (Te(y, !0), T("list did not change, scroll successful", {}, sr.DEBUG));
41178
41178
  };
41179
41179
  if (A(), U === "smooth") {
41180
41180
  let pe = !1;
@@ -41187,7 +41187,7 @@ const Ec = je(
41187
41187
  E = $r(j(t, eq(150)), Z);
41188
41188
  return v = setTimeout(() => {
41189
41189
  A();
41190
- }, 1200), Te(c, !0), S("scrolling from index to", { behavior: U, index: L, top: $ }, sr.DEBUG), { behavior: U, top: $ };
41190
+ }, 1200), Te(c, !0), T("scrolling from index to", { behavior: U, index: L, top: $ }, sr.DEBUG), { behavior: U, top: $ };
41191
41191
  }
41192
41192
  )
41193
41193
  ),
@@ -41298,7 +41298,7 @@ const $i = "up", ti = "down", tq = "none", rq = {
41298
41298
  const y = dr(
41299
41299
  j(
41300
41300
  vt(n, fe(a), fe(t), fe(e), fe(u)),
41301
- on((w, [{ scrollHeight: A, scrollTop: C }, O, N, T, h]) => {
41301
+ on((w, [{ scrollHeight: A, scrollTop: C }, O, N, S, h]) => {
41302
41302
  const b = C + O - A > -h, x = {
41303
41303
  scrollHeight: A,
41304
41304
  scrollTop: C,
@@ -41313,10 +41313,10 @@ const $i = "up", ti = "down", tq = "none", rq = {
41313
41313
  state: x
41314
41314
  };
41315
41315
  }
41316
- let S;
41317
- return x.scrollHeight > w.state.scrollHeight ? S = "SIZE_INCREASED" : O < w.state.viewportHeight ? S = "VIEWPORT_HEIGHT_DECREASING" : C < w.state.scrollTop ? S = "SCROLLING_UPWARDS" : S = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
41316
+ let T;
41317
+ return x.scrollHeight > w.state.scrollHeight ? T = "SIZE_INCREASED" : O < w.state.viewportHeight ? T = "VIEWPORT_HEIGHT_DECREASING" : C < w.state.scrollTop ? T = "SCROLLING_UPWARDS" : T = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
41318
41318
  atBottom: !1,
41319
- notAtBottomBecause: S,
41319
+ notAtBottomBecause: T,
41320
41320
  state: x
41321
41321
  };
41322
41322
  }, rq),
@@ -41444,11 +41444,11 @@ const km = je(
41444
41444
  A
41445
41445
  ]) => {
41446
41446
  const C = u - w, O = E + v, N = Math.max(f - C, 0);
41447
- let T = z1;
41447
+ let S = z1;
41448
41448
  const h = H1(A, Hi), b = H1(A, Gi);
41449
- return m -= w, m += f + v, y += f + v, y -= w, m > u + O - h && (T = $i), y < u - N + d + b && (T = ti), T !== z1 ? [
41450
- Math.max(C - f - $1(g, Hi, T) - h, 0),
41451
- C - N - v + d + $1(g, Gi, T) + b
41449
+ return m -= w, m += f + v, y += f + v, y -= w, m > u + O - h && (S = $i), y < u - N + d + b && (S = ti), S !== z1 ? [
41450
+ Math.max(C - f - $1(g, Hi, S) - h, 0),
41451
+ C - N - v + d + $1(g, Gi, S) + b
41452
41452
  ] : null;
41453
41453
  }
41454
41454
  ),
@@ -41587,18 +41587,18 @@ const xa = je(
41587
41587
  fe(w),
41588
41588
  e
41589
41589
  ),
41590
- me(([T, h, , b, , , , , , , , x]) => {
41591
- const S = x && x.length !== b;
41592
- return T && !h && !S;
41590
+ me(([S, h, , b, , , , , , , , x]) => {
41591
+ const T = x && x.length !== b;
41592
+ return S && !h && !T;
41593
41593
  }),
41594
41594
  re(
41595
41595
  ([
41596
41596
  ,
41597
41597
  ,
41598
- [T, h],
41598
+ [S, h],
41599
41599
  b,
41600
41600
  x,
41601
- S,
41601
+ T,
41602
41602
  I,
41603
41603
  B,
41604
41604
  D,
@@ -41610,11 +41610,11 @@ const xa = je(
41610
41610
  const Z = x, { offsetTree: pe, sizeTree: be } = Z, ie = it(E);
41611
41611
  if (b === 0)
41612
41612
  return { ...Kd, totalCount: b };
41613
- if (T === 0 && h === 0)
41614
- return ie === 0 ? { ...Kd, totalCount: b } : wx(ie, S, x, D, k, U || []);
41613
+ if (S === 0 && h === 0)
41614
+ return ie === 0 ? { ...Kd, totalCount: b } : wx(ie, T, x, D, k, U || []);
41615
41615
  if (Ye(be))
41616
41616
  return ie > 0 ? null : Bl(
41617
- sq(Em(S, b), Z, U),
41617
+ sq(Em(T, b), Z, U),
41618
41618
  [],
41619
41619
  b,
41620
41620
  k,
@@ -41623,37 +41623,37 @@ const xa = je(
41623
41623
  );
41624
41624
  const de = [];
41625
41625
  if (B.length > 0) {
41626
- const Ae = B[0], ve = B[B.length - 1];
41626
+ const Ae = B[0], we = B[B.length - 1];
41627
41627
  let ye = 0;
41628
- for (const Xe of Va(be, Ae, ve)) {
41629
- const Ke = Xe.value, Je = Math.max(Xe.start, Ae), gr = Math.min(Xe.end, ve);
41628
+ for (const Xe of Va(be, Ae, we)) {
41629
+ const Ke = Xe.value, Je = Math.max(Xe.start, Ae), gr = Math.min(Xe.end, we);
41630
41630
  for (let Ut = Je; Ut <= gr; Ut++)
41631
41631
  de.push({ data: U == null ? void 0 : U[Ut], index: Ut, offset: ye, size: Ke }), ye += Ke;
41632
41632
  }
41633
41633
  }
41634
41634
  if (!I)
41635
41635
  return Bl([], de, b, k, Z, D);
41636
- const Be = B.length > 0 ? B[B.length - 1] + 1 : 0, K = WW(pe, T, h, Be);
41636
+ const Be = B.length > 0 ? B[B.length - 1] + 1 : 0, K = WW(pe, S, h, Be);
41637
41637
  if (K.length === 0)
41638
41638
  return null;
41639
- const we = b - 1, Ue = Yu([], (Ae) => {
41640
- for (const ve of K) {
41641
- const ye = ve.value;
41642
- let Xe = ye.offset, Ke = ve.start;
41639
+ const xe = b - 1, Ue = Yu([], (Ae) => {
41640
+ for (const we of K) {
41641
+ const ye = we.value;
41642
+ let Xe = ye.offset, Ke = we.start;
41643
41643
  const Je = ye.size;
41644
- if (ye.offset < T) {
41645
- Ke += Math.floor((T - ye.offset + k) / (Je + k));
41646
- const Ut = Ke - ve.start;
41644
+ if (ye.offset < S) {
41645
+ Ke += Math.floor((S - ye.offset + k) / (Je + k));
41646
+ const Ut = Ke - we.start;
41647
41647
  Xe += Ut * Je + Ut * k;
41648
41648
  }
41649
41649
  Ke < Be && (Xe += (Be - Ke) * Je, Ke = Be);
41650
- const gr = Math.min(ve.end, we);
41650
+ const gr = Math.min(we.end, xe);
41651
41651
  for (let Ut = Ke; Ut <= gr && !(Xe >= h); Ut++)
41652
41652
  Ae.push({ data: U == null ? void 0 : U[Ut], index: Ut, offset: Xe, size: Je }), Xe += Je + k;
41653
41653
  }
41654
41654
  }), ze = j1(P, Hi), st = j1(P, Gi);
41655
41655
  if (Ue.length > 0 && (ze > 0 || st > 0)) {
41656
- const Ae = Ue[0], ve = Ue[Ue.length - 1];
41656
+ const Ae = Ue[0], we = Ue[Ue.length - 1];
41657
41657
  if (ze > 0 && Ae.index > Be) {
41658
41658
  const ye = Math.min(ze, Ae.index - Be), Xe = [];
41659
41659
  let Ke = Ae.offset;
@@ -41663,11 +41663,11 @@ const xa = je(
41663
41663
  }
41664
41664
  Ue.unshift(...Xe);
41665
41665
  }
41666
- if (st > 0 && ve.index < we) {
41667
- const ye = Math.min(st, we - ve.index);
41668
- let Xe = ve.offset + ve.size + k;
41669
- for (let Ke = ve.index + 1; Ke <= ve.index + ye; Ke++) {
41670
- const Je = ($ = (L = Va(be, Ke, Ke)[0]) == null ? void 0 : L.value) != null ? $ : ve.size;
41666
+ if (st > 0 && we.index < xe) {
41667
+ const ye = Math.min(st, xe - we.index);
41668
+ let Xe = we.offset + we.size + k;
41669
+ for (let Ke = we.index + 1; Ke <= we.index + ye; Ke++) {
41670
+ const Je = ($ = (L = Va(be, Ke, Ke)[0]) == null ? void 0 : L.value) != null ? $ : we.size;
41671
41671
  Ue.push({ data: U == null ? void 0 : U[Ke], index: Ke, offset: Xe, size: Je }), Xe += Je + k;
41672
41672
  }
41673
41673
  }
@@ -41676,7 +41676,7 @@ const xa = je(
41676
41676
  }
41677
41677
  ),
41678
41678
  //@ts-expect-error filter needs to be fixed
41679
- me((T) => T !== null),
41679
+ me((S) => S !== null),
41680
41680
  et()
41681
41681
  ),
41682
41682
  Kd
@@ -41685,59 +41685,59 @@ const xa = je(
41685
41685
  j(
41686
41686
  e,
41687
41687
  me(bm),
41688
- re((T) => T == null ? void 0 : T.length)
41688
+ re((S) => S == null ? void 0 : S.length)
41689
41689
  ),
41690
41690
  s
41691
41691
  ), ce(
41692
41692
  j(
41693
41693
  A,
41694
- re((T) => T.topListHeight)
41694
+ re((S) => S.topListHeight)
41695
41695
  ),
41696
41696
  d
41697
41697
  ), ce(d, i), ce(
41698
41698
  j(
41699
41699
  A,
41700
- re((T) => [T.top, T.bottom])
41700
+ re((S) => [S.top, S.bottom])
41701
41701
  ),
41702
41702
  o
41703
41703
  ), ce(
41704
41704
  j(
41705
41705
  A,
41706
- re((T) => T.items)
41706
+ re((S) => S.items)
41707
41707
  ),
41708
41708
  v
41709
41709
  );
41710
41710
  const C = dr(
41711
41711
  j(
41712
41712
  A,
41713
- me(({ items: T }) => T.length > 0),
41713
+ me(({ items: S }) => S.length > 0),
41714
41714
  Pe(s, e),
41715
- me(([{ items: T }, h]) => T[T.length - 1].originalIndex === h - 1),
41716
- re(([, T, h]) => [T - 1, h]),
41715
+ me(([{ items: S }, h]) => S[S.length - 1].originalIndex === h - 1),
41716
+ re(([, S, h]) => [S - 1, h]),
41717
41717
  et(Li),
41718
- re(([T]) => T)
41718
+ re(([S]) => S)
41719
41719
  )
41720
41720
  ), O = dr(
41721
41721
  j(
41722
41722
  A,
41723
41723
  Mn(200),
41724
- me(({ items: T, topItems: h }) => T.length > 0 && T[0].originalIndex === h.length),
41725
- re(({ items: T }) => T[0].index),
41724
+ me(({ items: S, topItems: h }) => S.length > 0 && S[0].originalIndex === h.length),
41725
+ re(({ items: S }) => S[0].index),
41726
41726
  et()
41727
41727
  )
41728
41728
  ), N = dr(
41729
41729
  j(
41730
41730
  A,
41731
- me(({ items: T }) => T.length > 0),
41732
- re(({ items: T }) => {
41733
- let h = 0, b = T.length - 1;
41734
- for (; T[h].type === "group" && h < b; )
41731
+ me(({ items: S }) => S.length > 0),
41732
+ re(({ items: S }) => {
41733
+ let h = 0, b = S.length - 1;
41734
+ for (; S[h].type === "group" && h < b; )
41735
41735
  h++;
41736
- for (; T[b].type === "group" && b > h; )
41736
+ for (; S[b].type === "group" && b > h; )
41737
41737
  b--;
41738
41738
  return {
41739
- endIndex: T[b].index,
41740
- startIndex: T[h].index
41739
+ endIndex: S[b].index,
41740
+ startIndex: S[h].index
41741
41741
  };
41742
41742
  }),
41743
41743
  et(fx)
@@ -41816,14 +41816,14 @@ const xa = je(
41816
41816
  Pe(t, c, r, a, s, n, i),
41817
41817
  Pe(e),
41818
41818
  re(([[d, f, m, y, g, E, v, w], A]) => {
41819
- const { align: C, behavior: O, calculateViewLocation: N = oq, done: T, ...h } = d, b = bx(d, f, y - 1), x = zi(b, f.offsetTree, A) + g + E, S = x + qr(f.sizeTree, b)[1], I = w + E, B = w + m - v, D = N({
41820
- itemBottom: S,
41819
+ const { align: C, behavior: O, calculateViewLocation: N = oq, done: S, ...h } = d, b = bx(d, f, y - 1), x = zi(b, f.offsetTree, A) + g + E, T = x + qr(f.sizeTree, b)[1], I = w + E, B = w + m - v, D = N({
41820
+ itemBottom: T,
41821
41821
  itemTop: x,
41822
41822
  locationParams: { align: C, behavior: O, ...h },
41823
41823
  viewportBottom: B,
41824
41824
  viewportTop: I
41825
41825
  });
41826
- return D ? T && $r(
41826
+ return D ? S && $r(
41827
41827
  j(
41828
41828
  o,
41829
41829
  me((k) => !k),
@@ -41831,8 +41831,8 @@ const xa = je(
41831
41831
  // but if scrollingInProgress is true, we skip the initial publish.
41832
41832
  ua(it(o) ? 1 : 2)
41833
41833
  ),
41834
- T
41835
- ) : T && T(), D;
41834
+ S
41835
+ ) : S && S(), D;
41836
41836
  }),
41837
41837
  me((d) => d !== null)
41838
41838
  ),
@@ -41872,9 +41872,9 @@ const iq = (e, t) => typeof e == "function" ? V1(e(t)) : t && V1(e), cq = je(
41872
41872
  j(
41873
41873
  vt(j(fe(t), ua(1)), c),
41874
41874
  Pe(fe(y), a, i, d),
41875
- re(([[O, N], T, h, b, x]) => {
41876
- let S = N && b, I = "auto";
41877
- return S && (I = iq(T, h || x), S = S && !!I), { followOutputBehavior: I, shouldFollow: S, totalCount: O };
41875
+ re(([[O, N], S, h, b, x]) => {
41876
+ let T = N && b, I = "auto";
41877
+ return T && (I = iq(S, h || x), T = T && !!I), { followOutputBehavior: I, shouldFollow: T, totalCount: O };
41878
41878
  }),
41879
41879
  me(({ shouldFollow: O }) => O)
41880
41880
  ),
@@ -41887,8 +41887,8 @@ const iq = (e, t) => typeof e == "function" ? V1(e(t)) : t && V1(e), cq = je(
41887
41887
  }
41888
41888
  );
41889
41889
  function w(O) {
41890
- const N = $r(s, (T) => {
41891
- O && !T.atBottom && T.notAtBottomBecause === "SIZE_INCREASED" && !E && (it(u)("scrolling to bottom due to increased size", {}, sr.DEBUG), v("auto"));
41890
+ const N = $r(s, (S) => {
41891
+ O && !S.atBottom && S.notAtBottomBecause === "SIZE_INCREASED" && !E && (it(u)("scrolling to bottom due to increased size", {}, sr.DEBUG), v("auto"));
41892
41892
  });
41893
41893
  setTimeout(N, 100);
41894
41894
  }
@@ -41928,7 +41928,7 @@ const iq = (e, t) => typeof e == "function" ? V1(e(t)) : t && V1(e), cq = je(
41928
41928
  j(
41929
41929
  vt(j(C, ua(1)), c),
41930
41930
  Pe(fe(A), i, d, f),
41931
- re(([[O, N], T, h, b, x]) => N && h && (T == null ? void 0 : T({ context: x, totalCount: O, scrollingInProgress: b }))),
41931
+ re(([[O, N], S, h, b, x]) => N && h && (S == null ? void 0 : S({ context: x, totalCount: O, scrollingInProgress: b }))),
41932
41932
  me((O) => !!O),
41933
41933
  Mn(0)
41934
41934
  ),
@@ -42122,10 +42122,10 @@ const mq = Tx(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
42122
42122
  c,
42123
42123
  Pe(o),
42124
42124
  on(
42125
- ([, v, w, A], [{ bottom: C, items: O, offsetBottom: N, totalCount: T }, h]) => {
42125
+ ([, v, w, A], [{ bottom: C, items: O, offsetBottom: N, totalCount: S }, h]) => {
42126
42126
  const b = C + N;
42127
42127
  let x = 0;
42128
- return w === T && v.length > 0 && O.length > 0 && (O[0].originalIndex === 0 && v[0].originalIndex === 0 || (x = b - A, x !== 0 && (x += h))), [x, O, T, b];
42128
+ return w === S && v.length > 0 && O.length > 0 && (O[0].originalIndex === 0 && v[0].originalIndex === 0 || (x = b - A, x !== 0 && (x += h))), [x, O, S, b];
42129
42129
  },
42130
42130
  [0, [], 0, 0]
42131
42131
  ),
@@ -42159,21 +42159,21 @@ const mq = Tx(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
42159
42159
  l,
42160
42160
  Pe(f, u),
42161
42161
  re(([v, { groupIndices: w, lastSize: A, sizeTree: C }, O]) => {
42162
- function N(T) {
42163
- return T * (A + O);
42162
+ function N(S) {
42163
+ return S * (A + O);
42164
42164
  }
42165
42165
  if (w.length === 0)
42166
42166
  return N(v);
42167
42167
  {
42168
- let T = 0;
42168
+ let S = 0;
42169
42169
  const h = Ni(C, 0);
42170
42170
  let b = 0, x = 0;
42171
42171
  for (; b < v; ) {
42172
- b++, T += h;
42173
- let S = w.length === x + 1 ? 1 / 0 : w[x + 1] - w[x] - 1;
42174
- b + S > v && (T -= h, S = v - b + 1), b += S, T += N(S), x++;
42172
+ b++, S += h;
42173
+ let T = w.length === x + 1 ? 1 / 0 : w[x + 1] - w[x] - 1;
42174
+ b + T > v && (S -= h, T = v - b + 1), b += T, S += N(T), x++;
42175
42175
  }
42176
- return T;
42176
+ return S;
42177
42177
  }
42178
42178
  })
42179
42179
  ),
@@ -42251,11 +42251,11 @@ const mq = Tx(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
42251
42251
  C,
42252
42252
  { scrollToIndex: O },
42253
42253
  N,
42254
- { topItemCount: T },
42254
+ { topItemCount: S },
42255
42255
  { groupCounts: h },
42256
42256
  b
42257
42257
  ]) => {
42258
- const { listState: x, minOverscanItemCount: S, topItemsIndexes: I, rangeChanged: B, ...D } = C;
42258
+ const { listState: x, minOverscanItemCount: T, topItemsIndexes: I, rangeChanged: B, ...D } = C;
42259
42259
  return ce(B, b.scrollSeekRangeChanged), ce(
42260
42260
  j(
42261
42261
  b.windowViewportRect,
@@ -42275,7 +42275,7 @@ const mq = Tx(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
42275
42275
  initialTopMostItemIndex: g,
42276
42276
  scrolledToInitialItem: E,
42277
42277
  sizeRanges: l,
42278
- topItemCount: T,
42278
+ topItemCount: S,
42279
42279
  topItemsIndexes: I,
42280
42280
  // input
42281
42281
  totalCount: f,
@@ -42283,7 +42283,7 @@ const mq = Tx(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
42283
42283
  groupIndices: o,
42284
42284
  itemSize: c,
42285
42285
  listState: x,
42286
- minOverscanItemCount: S,
42286
+ minOverscanItemCount: T,
42287
42287
  scrollToIndex: O,
42288
42288
  // output
42289
42289
  statefulTotalCount: d,
@@ -42348,12 +42348,12 @@ function Sx(e, t, r) {
42348
42348
  return o.reduce((v, w) => (v[w] = OW(E[t.events[w]]), v), {});
42349
42349
  }
42350
42350
  const d = te.forwardRef((E, v) => {
42351
- const { children: w, ...A } = E, [C] = te.useState(() => Yu(_W(e), (T) => {
42352
- c(T, A);
42351
+ const { children: w, ...A } = E, [C] = te.useState(() => Yu(_W(e), (S) => {
42352
+ c(S, A);
42353
42353
  })), [O] = te.useState(_1(u, C));
42354
42354
  vl(() => {
42355
- for (const T of o)
42356
- T in A && We(O[T], A[T]);
42355
+ for (const S of o)
42356
+ S in A && We(O[S], A[S]);
42357
42357
  return () => {
42358
42358
  Object.values(O).map(ym);
42359
42359
  };
@@ -42510,17 +42510,17 @@ const xq = /* @__PURE__ */ je(() => {
42510
42510
  Sm("deviation", (D) => {
42511
42511
  v !== D && w(D);
42512
42512
  });
42513
- const A = ge("EmptyPlaceholder"), C = ge("ScrollSeekPlaceholder") || vq, O = ge("ListComponent"), N = ge("ItemComponent"), T = ge("GroupComponent"), h = ge("computeItemKey"), b = ge("isSeeking"), x = ge("groupIndices").length > 0, S = ge("alignToBottom"), I = ge("initialItemFinalLocationReached"), B = e ? {} : {
42513
+ const A = ge("EmptyPlaceholder"), C = ge("ScrollSeekPlaceholder") || vq, O = ge("ListComponent"), N = ge("ItemComponent"), S = ge("GroupComponent"), h = ge("computeItemKey"), b = ge("isSeeking"), x = ge("groupIndices").length > 0, T = ge("alignToBottom"), I = ge("initialItemFinalLocationReached"), B = e ? {} : {
42514
42514
  boxSizing: "border-box",
42515
42515
  ...g ? {
42516
42516
  display: "inline-block",
42517
42517
  height: "100%",
42518
- marginLeft: v !== 0 ? v : S ? "auto" : 0,
42518
+ marginLeft: v !== 0 ? v : T ? "auto" : 0,
42519
42519
  paddingLeft: t.offsetTop,
42520
42520
  paddingRight: t.offsetBottom,
42521
42521
  whiteSpace: "nowrap"
42522
42522
  } : {
42523
- marginTop: v !== 0 ? v : S ? "auto" : 0,
42523
+ marginTop: v !== 0 ? v : T ? "auto" : 0,
42524
42524
  paddingBottom: t.offsetBottom,
42525
42525
  paddingTop: t.offsetTop
42526
42526
  },
@@ -42546,9 +42546,9 @@ const xq = /* @__PURE__ */ je(() => {
42546
42546
  ...D.type === "group" ? {} : { groupIndex: D.groupIndex }
42547
42547
  }
42548
42548
  ) : D.type === "group" ? /* @__PURE__ */ Da(
42549
- T,
42549
+ S,
42550
42550
  {
42551
- ...Rt(T, l),
42551
+ ...Rt(S, l),
42552
42552
  "data-index": k,
42553
42553
  "data-item-index": D.index,
42554
42554
  "data-known-size": D.size,
@@ -42857,12 +42857,12 @@ const Hq = /* @__PURE__ */ je(
42857
42857
  { customScrollParent: E, useWindowScroll: v, windowScrollContainerState: w, windowScrollTo: A, windowViewportRect: C },
42858
42858
  O
42859
42859
  ]) => {
42860
- const N = q(0), T = q(0), h = q(K1), b = q({ height: 0, width: 0 }), x = q({ height: 0, width: 0 }), S = _e(), I = _e(), B = q(0), D = q(null), k = q({ column: 0, row: 0 }), P = _e(), U = _e(), F = q(!1), R = q(0), L = q(!0), $ = q(!1), Z = q(!1);
42860
+ const N = q(0), S = q(0), h = q(K1), b = q({ height: 0, width: 0 }), x = q({ height: 0, width: 0 }), T = _e(), I = _e(), B = q(0), D = q(null), k = q({ column: 0, row: 0 }), P = _e(), U = _e(), F = q(!1), R = q(0), L = q(!0), $ = q(!1), Z = q(!1);
42861
42861
  We(
42862
42862
  j(
42863
42863
  y,
42864
42864
  Pe(R),
42865
- me(([K, we]) => !!we)
42865
+ me(([K, xe]) => !!xe)
42866
42866
  ),
42867
42867
  () => {
42868
42868
  Te(L, !1);
@@ -42870,11 +42870,11 @@ const Hq = /* @__PURE__ */ je(
42870
42870
  ), We(
42871
42871
  j(
42872
42872
  vt(y, L, x, b, R, $),
42873
- me(([K, we, Ue, ze, , st]) => K && !we && Ue.height !== 0 && ze.height !== 0 && !st)
42873
+ me(([K, xe, Ue, ze, , st]) => K && !xe && Ue.height !== 0 && ze.height !== 0 && !st)
42874
42874
  ),
42875
42875
  ([, , , , K]) => {
42876
42876
  Te($, !0), vm(1, () => {
42877
- Te(S, K);
42877
+ Te(T, K);
42878
42878
  }), $r(j(l), () => {
42879
42879
  Te(t, [0, 0]), Te(L, !0);
42880
42880
  });
@@ -42885,7 +42885,7 @@ const Hq = /* @__PURE__ */ je(
42885
42885
  me((K) => K != null && K.scrollTop > 0),
42886
42886
  sn(0)
42887
42887
  ),
42888
- T
42888
+ S
42889
42889
  ), We(
42890
42890
  j(
42891
42891
  y,
@@ -42893,7 +42893,7 @@ const Hq = /* @__PURE__ */ je(
42893
42893
  me(([, K]) => K != null)
42894
42894
  ),
42895
42895
  ([, K]) => {
42896
- K && (Te(b, K.viewport), Te(x, K.item), Te(k, K.gap), K.scrollTop > 0 && (Te(F, !0), $r(j(l, ua(1)), (we) => {
42896
+ K && (Te(b, K.viewport), Te(x, K.item), Te(k, K.gap), K.scrollTop > 0 && (Te(F, !0), $r(j(l, ua(1)), (xe) => {
42897
42897
  Te(F, !1);
42898
42898
  }), Te(c, { top: K.scrollTop })));
42899
42899
  }
@@ -42908,12 +42908,12 @@ const Hq = /* @__PURE__ */ je(
42908
42908
  vt(
42909
42909
  fe(b, El),
42910
42910
  fe(x, El),
42911
- fe(k, (K, we) => K && K.column === we.column && K.row === we.row),
42911
+ fe(k, (K, xe) => K && K.column === xe.column && K.row === xe.row),
42912
42912
  fe(l)
42913
42913
  ),
42914
- re(([K, we, Ue, ze]) => ({
42914
+ re(([K, xe, Ue, ze]) => ({
42915
42915
  gap: Ue,
42916
- item: we,
42916
+ item: xe,
42917
42917
  scrollTop: ze,
42918
42918
  viewport: K
42919
42919
  }))
@@ -42928,7 +42928,7 @@ const Hq = /* @__PURE__ */ je(
42928
42928
  fe(x, El),
42929
42929
  fe(b, El),
42930
42930
  fe(D),
42931
- fe(T),
42931
+ fe(S),
42932
42932
  fe(F),
42933
42933
  fe(L),
42934
42934
  fe(R)
@@ -42937,11 +42937,11 @@ const Hq = /* @__PURE__ */ je(
42937
42937
  re(
42938
42938
  ([
42939
42939
  K,
42940
- [we, Ue],
42940
+ [xe, Ue],
42941
42941
  ze,
42942
42942
  st,
42943
42943
  Ae,
42944
- ve,
42944
+ we,
42945
42945
  ye,
42946
42946
  ,
42947
42947
  Xe,
@@ -42952,12 +42952,12 @@ const Hq = /* @__PURE__ */ je(
42952
42952
  return K1;
42953
42953
  if (Ju === 0) {
42954
42954
  const Mm = Em(Ke, K), jx = Mm + Math.max(ye - 1, 0);
42955
- return zq(X1(Mm, jx, ve));
42955
+ return zq(X1(Mm, jx, we));
42956
42956
  }
42957
42957
  const Pc = _x(Fm, Ju, Je);
42958
42958
  let wa, Fs;
42959
- Xe ? we === 0 && Ue === 0 && ye > 0 ? (wa = 0, Fs = ye - 1) : (wa = Pc * Xl((we + gr) / (Ut + gr)), Fs = Pc * Y1((Ue + gr) / (Ut + gr)) - 1, Fs = Xd(K - 1, ri(Fs, Pc - 1)), wa = Xd(Fs, ri(0, wa))) : (wa = 0, Fs = -1);
42960
- const Um = X1(wa, Fs, ve), { bottom: Om, top: Dm } = Q1(Ae, ze, st, Um), _m = Y1(K / Pc), Gx = _m * Ut + (_m - 1) * gr - Om;
42959
+ Xe ? xe === 0 && Ue === 0 && ye > 0 ? (wa = 0, Fs = ye - 1) : (wa = Pc * Xl((xe + gr) / (Ut + gr)), Fs = Pc * Y1((Ue + gr) / (Ut + gr)) - 1, Fs = Xd(K - 1, ri(Fs, Pc - 1)), wa = Xd(Fs, ri(0, wa))) : (wa = 0, Fs = -1);
42960
+ const Um = X1(wa, Fs, we), { bottom: Om, top: Dm } = Q1(Ae, ze, st, Um), _m = Y1(K / Pc), Gx = _m * Ut + (_m - 1) * gr - Om;
42961
42961
  return { bottom: Om, itemHeight: Ut, items: Um, itemWidth: Ju, offsetBottom: Gx, offsetTop: Dm, top: Dm };
42962
42962
  }
42963
42963
  )
@@ -42973,9 +42973,9 @@ const Hq = /* @__PURE__ */ je(
42973
42973
  ), ce(
42974
42974
  j(
42975
42975
  vt(b, x, h, k),
42976
- me(([K, we, { items: Ue }]) => Ue.length > 0 && we.height !== 0 && K.height !== 0),
42977
- re(([K, we, { items: Ue }, ze]) => {
42978
- const { bottom: st, top: Ae } = Q1(K, ze, we, Ue);
42976
+ me(([K, xe, { items: Ue }]) => Ue.length > 0 && xe.height !== 0 && K.height !== 0),
42977
+ re(([K, xe, { items: Ue }, ze]) => {
42978
+ const { bottom: st, top: Ae } = Q1(K, ze, xe, Ue);
42979
42979
  return [Ae, st];
42980
42980
  }),
42981
42981
  et(Li)
@@ -42987,7 +42987,7 @@ const Hq = /* @__PURE__ */ je(
42987
42987
  j(
42988
42988
  l,
42989
42989
  Pe(pe),
42990
- re(([K, we]) => we || K !== 0)
42990
+ re(([K, xe]) => xe || K !== 0)
42991
42991
  ),
42992
42992
  pe
42993
42993
  );
@@ -42996,9 +42996,9 @@ const Hq = /* @__PURE__ */ je(
42996
42996
  vt(h, N),
42997
42997
  me(([{ items: K }]) => K.length > 0),
42998
42998
  Pe(pe),
42999
- me(([[K, we], Ue]) => {
43000
- const ze = K.items[K.items.length - 1].index === we - 1;
43001
- return (Ue || K.bottom > 0 && K.itemHeight > 0 && K.offsetBottom === 0 && K.items.length === we) && ze;
42999
+ me(([[K, xe], Ue]) => {
43000
+ const ze = K.items[K.items.length - 1].index === xe - 1;
43001
+ return (Ue || K.bottom > 0 && K.itemHeight > 0 && K.offsetBottom === 0 && K.items.length === xe) && ze;
43002
43002
  }),
43003
43003
  re(([[, K]]) => K - 1),
43004
43004
  et()
@@ -43014,7 +43014,7 @@ const Hq = /* @__PURE__ */ je(
43014
43014
  j(
43015
43015
  fe(h),
43016
43016
  Pe(F),
43017
- me(([{ items: K }, we]) => K.length > 0 && !we),
43017
+ me(([{ items: K }, xe]) => K.length > 0 && !xe),
43018
43018
  re(([{ items: K }]) => ({
43019
43019
  endIndex: K[K.length - 1].index,
43020
43020
  startIndex: K[0].index
@@ -43025,14 +43025,14 @@ const Hq = /* @__PURE__ */ je(
43025
43025
  );
43026
43026
  ce(de, m.scrollSeekRangeChanged), ce(
43027
43027
  j(
43028
- S,
43028
+ T,
43029
43029
  Pe(b, x, N, k),
43030
- re(([K, we, Ue, ze, st]) => {
43031
- const Ae = gx(K), { align: ve, behavior: ye, offset: Xe } = Ae;
43030
+ re(([K, xe, Ue, ze, st]) => {
43031
+ const Ae = gx(K), { align: we, behavior: ye, offset: Xe } = Ae;
43032
43032
  let Ke = Ae.index;
43033
43033
  Ke === "LAST" && (Ke = ze - 1), Ke = ri(0, Ke, Xd(ze - 1, Ke));
43034
- let Je = vf(we, st, Ue, Ke);
43035
- return ve === "end" ? Je = Z1(Je - we.height + Ue.height) : ve === "center" && (Je = Z1(Je - we.height / 2 + Ue.height / 2)), Xe && (Je += Xe), { behavior: ye, top: Je };
43034
+ let Je = vf(xe, st, Ue, Ke);
43035
+ return we === "end" ? Je = Z1(Je - xe.height + Ue.height) : we === "center" && (Je = Z1(Je - xe.height / 2 + Ue.height / 2)), Xe && (Je += Xe), { behavior: ye, top: Je };
43036
43036
  })
43037
43037
  ),
43038
43038
  c
@@ -43059,7 +43059,7 @@ const Hq = /* @__PURE__ */ je(
43059
43059
  gap: k,
43060
43060
  headerHeight: a,
43061
43061
  increaseViewportBy: e,
43062
- initialItemCount: T,
43062
+ initialItemCount: S,
43063
43063
  itemDimensions: x,
43064
43064
  overscan: r,
43065
43065
  restoreStateFrom: U,
@@ -43067,7 +43067,7 @@ const Hq = /* @__PURE__ */ je(
43067
43067
  scrollContainerState: i,
43068
43068
  scrollHeight: I,
43069
43069
  scrollTo: c,
43070
- scrollToIndex: S,
43070
+ scrollToIndex: T,
43071
43071
  scrollTop: l,
43072
43072
  smoothScrollTargetReached: u,
43073
43073
  totalCount: N,
@@ -43309,7 +43309,7 @@ function tK({ logo: e, className: t = "", style: r = {}, alt: n = "Token logo" }
43309
43309
  }, [e]), e && !s ? /* @__PURE__ */ M("img", { alt: n, style: r, onError: () => a(!0), className: `twap-token-logo ${t}`, src: e }) : /* @__PURE__ */ M(eK.AiFillQuestionCircle, { style: { width: 20, height: 20 }, className: "twap-token-svg" });
43310
43310
  }
43311
43311
  const rK = () => /* @__PURE__ */ M("div", { className: "twap-orders__loader", children: /* @__PURE__ */ M("p", { children: "Loading..." }) }), nK = () => {
43312
- const { isLoading: e } = qu(), t = tx(), r = ee((a) => a.state.orderIdsToCancel), n = ee((a) => a.state.cancelOrdersMode), s = rx();
43312
+ const { isLoading: e } = qu(), t = tx(), r = J((a) => a.state.orderIdsToCancel), n = J((a) => a.state.cancelOrdersMode), s = rx();
43313
43313
  return /* @__PURE__ */ M(mo, { children: e ? /* @__PURE__ */ M(rK, {}) : t != null && t.length ? /* @__PURE__ */ M("div", { className: `twap-orders__list ${n ? "twap-orders__list-select-mode" : ""}`, children: /* @__PURE__ */ M(
43314
43314
  Rq,
43315
43315
  {
@@ -43328,7 +43328,7 @@ const rK = () => /* @__PURE__ */ M("div", { className: "twap-orders__loader", ch
43328
43328
  }
43329
43329
  ) }) : /* @__PURE__ */ M(aK, {}) });
43330
43330
  }, sK = ({ order: e, selectOrder: t, selected: r, cancelOrdersMode: n }) => {
43331
- const s = ee((i) => i.updateState), a = xt.useCallback(() => {
43331
+ const s = J((i) => i.updateState), a = xt.useCallback(() => {
43332
43332
  s({ selectedOrderID: e == null ? void 0 : e.id });
43333
43333
  }, [s, e == null ? void 0 : e.id]), o = xt.useCallback(() => {
43334
43334
  n ? t(e == null ? void 0 : e.id) : a();
@@ -43350,7 +43350,7 @@ const rK = () => /* @__PURE__ */ M("div", { className: "twap-orders__loader", ch
43350
43350
  }
43351
43351
  );
43352
43352
  }, aK = () => {
43353
- const e = ee((n) => n.state.orderHistoryStatusFilter), t = Re(), r = xt.useMemo(() => e || "", [e]);
43353
+ const e = J((n) => n.state.orderHistoryStatusFilter), t = Re(), r = xt.useMemo(() => e || "", [e]);
43354
43354
  return /* @__PURE__ */ M("div", { className: "twap-orders__list-empty", children: /* @__PURE__ */ M("p", { children: t("noOrders", { status: r }) }) });
43355
43355
  }, oK = ({ order: e }) => {
43356
43356
  const t = e && e.status, r = J2(e), n = pm(e.createdAt);
@@ -43376,7 +43376,7 @@ function iK(e) {
43376
43376
  ] });
43377
43377
  }
43378
43378
  const cK = () => {
43379
- const e = ee((r) => r.state.selectedOrderID);
43379
+ const e = J((r) => r.state.selectedOrderID);
43380
43380
  return /* @__PURE__ */ M("div", { className: `twap-orders ${e !== void 0 ? "twap-orders__show-selected" : ""}`, children: e !== void 0 ? /* @__PURE__ */ M(oW, {}) : /* @__PURE__ */ M(nK, {}) });
43381
43381
  }, lK = (e) => {
43382
43382
  const t = Re(), { marketPrice: r, typedInputAmount: n } = ne();
@@ -43390,7 +43390,7 @@ const cK = () => {
43390
43390
  };
43391
43391
  }, [e, t, n, r]);
43392
43392
  }, Is = () => {
43393
- const { callbacks: e } = ne(), t = ee((a) => a.state.typedFillDelay), r = ee((a) => a.updateState), n = Q(() => t || rp, [t]), s = lK(n);
43393
+ const { callbacks: e } = ne(), t = J((a) => a.state.typedFillDelay), r = J((a) => a.updateState), n = Q(() => t || rp, [t]), s = lK(n);
43394
43394
  return {
43395
43395
  fillDelay: n,
43396
43396
  onChange: $e((a) => {
@@ -43413,7 +43413,7 @@ const cK = () => {
43413
43413
  tooltip: n("tradeIntervalTooltip")
43414
43414
  };
43415
43415
  }, Xr = () => {
43416
- const { srcToken: e, typedInputAmount: t } = ne(), r = Re(), s = ee((a) => a.state.acceptedSrcAmount) || t;
43416
+ const { srcToken: e, typedInputAmount: t } = ne(), r = Re(), s = J((a) => a.state.acceptedSrcAmount) || t;
43417
43417
  return {
43418
43418
  amountWei: q2(e == null ? void 0 : e.decimals, s),
43419
43419
  amountUI: s,
@@ -43445,7 +43445,7 @@ const cK = () => {
43445
43445
  };
43446
43446
  }, [e, t, r, o, n, a, i, s]);
43447
43447
  }, Fr = () => {
43448
- const { srcToken: e, srcUsd1Token: t, module: r, minChunkSizeUsd: n } = ne(), s = ee((g) => g.state.typedChunks), a = Is().fillDelay, o = ee((g) => g.updateState), { amountWei: i, amountUI: c } = Xr(), l = Q(
43448
+ const { srcToken: e, srcUsd1Token: t, module: r, minChunkSizeUsd: n } = ne(), s = J((g) => g.state.typedChunks), a = Is().fillDelay, o = J((g) => g.updateState), { amountWei: i, amountUI: c } = Xr(), l = Q(
43449
43449
  () => uw(a, c || "", t || "", n || 0),
43450
43450
  [c, t, n, a]
43451
43451
  ), u = Q(() => lw(l, r, s), [l, s, r]), d = $e(
@@ -43498,7 +43498,7 @@ const cK = () => {
43498
43498
  }
43499
43499
  }, [e, n, t, r]);
43500
43500
  }, Pm = () => {
43501
- const { module: e, callbacks: t } = ne(), r = ee((c) => c.state.typedDuration), n = ee((c) => c.updateState), s = Fr().totalTrades, a = Is().fillDelay, o = Q(() => cw(e, s, a, r), [s, a, r, e]), i = dK(o);
43501
+ const { module: e, callbacks: t } = ne(), r = J((c) => c.state.typedDuration), n = J((c) => c.updateState), s = Fr().totalTrades, a = Is().fillDelay, o = Q(() => cw(e, s, a, r), [s, a, r, e]), i = dK(o);
43502
43502
  return {
43503
43503
  duration: o,
43504
43504
  setDuration: $e((c) => {
@@ -43518,7 +43518,7 @@ const cK = () => {
43518
43518
  n({ unit: c, value: r.value });
43519
43519
  },
43520
43520
  [n, r]
43521
- ), i = Q(() => e === xe.STOP_LOSS ? t("stopLossDurationTooltip") : t("maxDurationTooltip"), [t, e]);
43521
+ ), i = Q(() => e === Ee.STOP_LOSS ? t("stopLossDurationTooltip") : t("maxDurationTooltip"), [t, e]);
43522
43522
  return {
43523
43523
  duration: r,
43524
43524
  onChange: n,
@@ -43530,14 +43530,14 @@ const cK = () => {
43530
43530
  error: s
43531
43531
  };
43532
43532
  }, MY = () => {
43533
- const e = ee((a) => a.state.isMarketOrder), { module: t } = ne(), r = Re(), n = Q(() => {
43534
- if (e && t === xe.STOP_LOSS)
43533
+ const e = J((a) => a.state.isMarketOrder), { module: t } = ne(), r = Re(), n = Q(() => {
43534
+ if (e && t === Ee.STOP_LOSS)
43535
43535
  return {
43536
43536
  text: r("triggerMarketPriceDisclaimer"),
43537
43537
  url: bb
43538
43538
  };
43539
43539
  }, [e, r, t]), s = Q(() => {
43540
- if (!(t !== xe.LIMIT && t !== xe.TWAP))
43540
+ if (!(t !== Ee.LIMIT && t !== Ee.TWAP))
43541
43541
  return {
43542
43542
  text: r(e ? "marketOrderWarning" : "limitPriceMessage"),
43543
43543
  url: "https://www.orbs.com/dtwap-and-dlimit-faq/"
@@ -43545,7 +43545,7 @@ const cK = () => {
43545
43545
  }, [e, r, t]);
43546
43546
  return n || s;
43547
43547
  }, Im = () => {
43548
- const { srcToken: e, dstToken: t, marketPriceLoading: r } = ne(), n = ee((l) => l.updateState), s = ee((l) => l.state.isInvertedTrade), a = ee((l) => l.state.typedTriggerPrice), o = ee((l) => l.state.typedLimitPrice), i = ee((l) => l.state.isMarketOrder);
43548
+ const { srcToken: e, dstToken: t, marketPriceLoading: r } = ne(), n = J((l) => l.updateState), s = J((l) => l.state.isInvertedTrade), a = J((l) => l.state.typedTriggerPrice), o = J((l) => l.state.typedLimitPrice), i = J((l) => l.state.isMarketOrder);
43549
43549
  return {
43550
43550
  onInvert: $e(() => {
43551
43551
  a !== void 0 && n({ typedTriggerPrice: H(1).div(a).toFixed() }), o !== void 0 && n({ typedLimitPrice: H(1).div(o).toFixed() }), n({ isInvertedTrade: !s });
@@ -43616,14 +43616,14 @@ const cK = () => {
43616
43616
  };
43617
43617
  }, pK = () => {
43618
43618
  const { module: e } = ne();
43619
- return Q(() => e === xe.STOP_LOSS ? X5 : Q5, [e]);
43619
+ return Q(() => e === Ee.STOP_LOSS ? X5 : Q5, [e]);
43620
43620
  }, Bm = () => {
43621
- const { module: e } = ne(), t = ee((r) => r.state.isMarketOrder);
43622
- return Q(() => e !== xe.STOP_LOSS && e !== xe.TAKE_PROFIT || t ? void 0 : e === xe.STOP_LOSS ? J5 : ew, [e, t]);
43621
+ const { module: e } = ne(), t = J((r) => r.state.isMarketOrder);
43622
+ return Q(() => e !== Ee.STOP_LOSS && e !== Ee.TAKE_PROFIT || t ? void 0 : e === Ee.STOP_LOSS ? J5 : ew, [e, t]);
43623
43623
  }, fK = (e = "") => {
43624
43624
  const { module: t, marketPrice: r, typedInputAmount: n } = ne(), s = Re();
43625
43625
  return Q(() => {
43626
- if (H(n || "0").isZero() || !r || t !== xe.STOP_LOSS && t !== xe.TAKE_PROFIT) return;
43626
+ if (H(n || "0").isZero() || !r || t !== Ee.STOP_LOSS && t !== Ee.TAKE_PROFIT) return;
43627
43627
  const a = mw(r || "", e || "", t);
43628
43628
  if (a != null && a.isError)
43629
43629
  return {
@@ -43646,15 +43646,15 @@ const cK = () => {
43646
43646
  };
43647
43647
  }, [r, e, t, s, n]);
43648
43648
  }, mK = (e) => {
43649
- const { srcToken: t, dstToken: r, module: n, dstUsd1Token: s } = ne(), a = Fr().amountPerTradeWei, o = ee((l) => l.state.isMarketOrder), i = Q(() => iw(n, a, e, (t == null ? void 0 : t.decimals) || 0), [e, a, o, t == null ? void 0 : t.decimals, n]), c = On((r == null ? void 0 : r.decimals) || 0, i);
43649
+ const { srcToken: t, dstToken: r, module: n, dstUsd1Token: s } = ne(), a = Fr().amountPerTradeWei, o = J((l) => l.state.isMarketOrder), i = Q(() => iw(n, a, e, (t == null ? void 0 : t.decimals) || 0), [e, a, o, t == null ? void 0 : t.decimals, n]), c = On((r == null ? void 0 : r.decimals) || 0, i);
43650
43650
  return {
43651
43651
  amountWei: i,
43652
43652
  amountUI: c,
43653
43653
  usd: vs(c, s)
43654
43654
  };
43655
43655
  }, Bs = () => {
43656
- const { dstToken: e, marketPrice: t, module: r, callbacks: n } = ne(), s = ee((y) => y.updateState), a = pK(), o = ee((y) => y.state.triggerPricePercent), i = o === void 0 ? a : o, c = r === xe.STOP_LOSS || r === xe.TAKE_PROFIT, l = Rx({
43657
- typedValue: ee((y) => y.state.typedTriggerPrice),
43656
+ const { dstToken: e, marketPrice: t, module: r, callbacks: n } = ne(), s = J((y) => y.updateState), a = pK(), o = J((y) => y.state.triggerPricePercent), i = o === void 0 ? a : o, c = r === Ee.STOP_LOSS || r === Ee.TAKE_PROFIT, l = Rx({
43657
+ typedValue: J((y) => y.state.typedTriggerPrice),
43658
43658
  percentage: i,
43659
43659
  tokenDecimals: (e == null ? void 0 : e.decimals) || 18,
43660
43660
  initialPrice: c ? t : void 0,
@@ -43678,16 +43678,16 @@ const cK = () => {
43678
43678
  pricePerChunkUsd: m
43679
43679
  }), [l, u, d, f, m]);
43680
43680
  }, RY = () => {
43681
- const { module: e, marketPrice: t, marketPriceLoading: r } = ne(), n = Re(), { amountUI: s, onChange: a, onPercentageChange: o, usd: i, selectedPercentage: c, error: l, pricePerChunkUI: u, pricePerChunkUsd: d, isTypedValue: f } = Bs(), m = ee((O) => O.state.isMarketOrder), y = ee((O) => O.updateState), { isInverted: g, onInvert: E, fromToken: v, toToken: w } = Im(), A = $e(() => {
43681
+ const { module: e, marketPrice: t, marketPriceLoading: r } = ne(), n = Re(), { amountUI: s, onChange: a, onPercentageChange: o, usd: i, selectedPercentage: c, error: l, pricePerChunkUI: u, pricePerChunkUsd: d, isTypedValue: f } = Bs(), m = J((O) => O.state.isMarketOrder), y = J((O) => O.updateState), { isInverted: g, onInvert: E, fromToken: v, toToken: w } = Im(), A = $e(() => {
43682
43682
  y({ triggerPricePercent: void 0, typedTriggerPrice: void 0 });
43683
- }, [y]), C = e !== xe.STOP_LOSS && e !== xe.TAKE_PROFIT;
43683
+ }, [y]), C = e !== Ee.STOP_LOSS && e !== Ee.TAKE_PROFIT;
43684
43684
  return {
43685
43685
  price: s,
43686
43686
  amountPerChunk: u,
43687
43687
  amountPerChunkUsd: d,
43688
43688
  error: l,
43689
43689
  label: n("stopLossLabel"),
43690
- tooltip: e === xe.STOP_LOSS ? n("stopLossTooltip") : n("takeProfitTooltip"),
43690
+ tooltip: e === Ee.STOP_LOSS ? n("stopLossTooltip") : n("takeProfitTooltip"),
43691
43691
  onChange: a,
43692
43692
  onPercentageChange: o,
43693
43693
  percentage: c,
@@ -43705,7 +43705,7 @@ const cK = () => {
43705
43705
  isTypedValue: f
43706
43706
  };
43707
43707
  }, hK = (e) => {
43708
- const { module: t, marketPrice: r, typedInputAmount: n } = ne(), s = Re(), { amountWei: a } = Bs(), o = ee((i) => i.state.isMarketOrder);
43708
+ const { module: t, marketPrice: r, typedInputAmount: n } = ne(), s = Re(), { amountWei: a } = Bs(), o = J((i) => i.state.isMarketOrder);
43709
43709
  return Q(() => {
43710
43710
  if (H(n || "0").isZero() || !a || !r) return;
43711
43711
  const i = bw(a, e, o, t), c = yw(a, e, o, t);
@@ -43729,8 +43729,8 @@ const cK = () => {
43729
43729
  };
43730
43730
  }, [e, s, a, t, o, n, r]);
43731
43731
  }, Tc = () => {
43732
- const { dstToken: e, marketPrice: t, callbacks: r } = ne(), n = ee((l) => l.updateState), s = Bm(), a = ee((l) => l.state.limitPricePercent), o = a === void 0 ? s : a, i = Rx({
43733
- typedValue: ee((l) => l.state.typedLimitPrice),
43732
+ const { dstToken: e, marketPrice: t, callbacks: r } = ne(), n = J((l) => l.updateState), s = Bm(), a = J((l) => l.state.limitPricePercent), o = a === void 0 ? s : a, i = Rx({
43733
+ typedValue: J((l) => l.state.typedLimitPrice),
43734
43734
  percentage: o,
43735
43735
  tokenDecimals: (e == null ? void 0 : e.decimals) || 18,
43736
43736
  initialPrice: t,
@@ -43751,8 +43751,8 @@ const cK = () => {
43751
43751
  error: c
43752
43752
  }), [i, c]);
43753
43753
  }, bK = () => {
43754
- const { module: e } = ne(), t = ee((i) => i.updateState), r = ee((i) => i.state.isMarketOrder), n = Bm(), s = ee((i) => i.state.triggerPricePercent) || 0, a = e === xe.LIMIT, o = $e(() => {
43755
- !r && e === xe.STOP_LOSS && t({ limitPricePercent: n }), t({ isMarketOrder: !r });
43754
+ const { module: e } = ne(), t = J((i) => i.updateState), r = J((i) => i.state.isMarketOrder), n = Bm(), s = J((i) => i.state.triggerPricePercent) || 0, a = e === Ee.LIMIT, o = $e(() => {
43755
+ !r && e === Ee.STOP_LOSS && t({ limitPricePercent: n }), t({ isMarketOrder: !r });
43756
43756
  }, [t, s, e, r, n]);
43757
43757
  return {
43758
43758
  isLimitPrice: !r,
@@ -43760,8 +43760,8 @@ const cK = () => {
43760
43760
  hide: a
43761
43761
  };
43762
43762
  }, Nx = () => {
43763
- const { module: e, marketPrice: t } = ne(), r = Tc().amountWei, n = Bs().amountWei, s = ee((a) => a.state.isMarketOrder);
43764
- return e === xe.LIMIT || !s ? r || "" : e === xe.STOP_LOSS || e === xe.TAKE_PROFIT ? n || "" : t || "";
43763
+ const { module: e, marketPrice: t } = ne(), r = Tc().amountWei, n = Bs().amountWei, s = J((a) => a.state.isMarketOrder);
43764
+ return e === Ee.LIMIT || !s ? r || "" : e === Ee.STOP_LOSS || e === Ee.TAKE_PROFIT ? n || "" : t || "";
43765
43765
  }, Ac = () => {
43766
43766
  const { srcToken: e, dstToken: t, dstUsd1Token: r } = ne(), n = Nx(), s = Xr().amountWei, a = Q(() => aw(s || "", n, (e == null ? void 0 : e.decimals) || 0), [s, n, e == null ? void 0 : e.decimals]), o = On(t == null ? void 0 : t.decimals, a);
43767
43767
  return {
@@ -43770,7 +43770,7 @@ const cK = () => {
43770
43770
  usd: vs(o, r)
43771
43771
  };
43772
43772
  }, Sc = () => {
43773
- const { srcToken: e, dstToken: t, dstUsd1Token: r } = ne(), n = Nx(), s = Fr().amountPerTradeWei, a = ee((c) => c.state.isMarketOrder), o = Q(
43773
+ const { srcToken: e, dstToken: t, dstUsd1Token: r } = ne(), n = Nx(), s = Fr().amountPerTradeWei, a = J((c) => c.state.isMarketOrder), o = Q(
43774
43774
  () => ow(s, n, !!a, (e == null ? void 0 : e.decimals) || 0),
43775
43775
  [s, n, a, e == null ? void 0 : e.decimals]
43776
43776
  ), i = On(t == null ? void 0 : t.decimals, o);
@@ -43788,9 +43788,9 @@ const cK = () => {
43788
43788
  usd: s
43789
43789
  };
43790
43790
  }, LY = () => {
43791
- const { module: e, marketPriceLoading: t } = ne(), r = Re(), { amountUI: n, onChange: s, onPercentageChange: a, usd: o, selectedPercentage: i, error: c, isTypedValue: l } = Tc(), { amountUI: u, usd: d } = Sc(), f = ee((N) => N.updateState), m = Bm(), { isLimitPrice: y, toggleLimitPrice: g } = bK(), { isInverted: E, onInvert: v, fromToken: w, toToken: A } = Im(), C = $e(() => {
43791
+ const { module: e, marketPriceLoading: t } = ne(), r = Re(), { amountUI: n, onChange: s, onPercentageChange: a, usd: o, selectedPercentage: i, error: c, isTypedValue: l } = Tc(), { amountUI: u, usd: d } = Sc(), f = J((N) => N.updateState), m = Bm(), { isLimitPrice: y, toggleLimitPrice: g } = bK(), { isInverted: E, onInvert: v, fromToken: w, toToken: A } = Im(), C = $e(() => {
43792
43792
  f({ typedLimitPrice: void 0 }), f({ limitPricePercent: m });
43793
- }, [f, e, m]), O = Q(() => e === xe.STOP_LOSS ? r("stopLossLimitPriceTooltip") : r("limitPriceTooltip"), [r, e]);
43793
+ }, [f, e, m]), O = Q(() => e === Ee.STOP_LOSS ? r("stopLossLimitPriceTooltip") : r("limitPriceTooltip"), [r, e]);
43794
43794
  return {
43795
43795
  price: n,
43796
43796
  amountPerChunk: u,
@@ -43829,7 +43829,7 @@ function gK() {
43829
43829
  srcUsd1Token: n,
43830
43830
  srcBalance: s,
43831
43831
  chainId: a
43832
- } = ne(), o = ee((E) => E.state.swapExecution.status), i = Re(), { error: c } = Bs(), { error: l } = Tc(), { error: u } = Fr(), { error: d } = Is(), { error: f } = Pm(), m = yK(), y = Xr().amountWei, g = Q(() => {
43832
+ } = ne(), o = J((E) => E.state.swapExecution.status), i = Re(), { error: c } = Bs(), { error: l } = Tc(), { error: u } = Fr(), { error: d } = Is(), { error: f } = Pm(), m = yK(), y = Xr().amountWei, g = Q(() => {
43833
43833
  if (s && H(y).gt(s))
43834
43834
  return {
43835
43835
  type: Wt.INSUFFICIENT_BALANCE,
@@ -43865,7 +43865,7 @@ function gK() {
43865
43865
  ]);
43866
43866
  }
43867
43867
  const zY = () => {
43868
- const e = ee((n) => n.state.isMarketOrder), t = ee((n) => n.updateState), r = $e(() => {
43868
+ const e = J((n) => n.state.isMarketOrder), t = J((n) => n.updateState), r = $e(() => {
43869
43869
  t({ isMarketOrder: !e });
43870
43870
  }, [t, e]);
43871
43871
  return {
@@ -43873,7 +43873,7 @@ const zY = () => {
43873
43873
  togglePrice: r
43874
43874
  };
43875
43875
  }, Qu = () => {
43876
- const e = ee((r) => r.state.currentTime), t = Pm().duration;
43876
+ const e = J((r) => r.state.currentTime), t = Pm().duration;
43877
43877
  return Q(() => dw(e, t), [e, t]);
43878
43878
  }, xK = () => {
43879
43879
  const { srcUsd1Token: e, dstUsd1Token: t } = ne(), r = Xr().amountUI, n = Ac().amountUI, s = vs(r, e), a = vs(n, t);
@@ -43957,7 +43957,7 @@ const zY = () => {
43957
43957
  amount: y,
43958
43958
  percent: g,
43959
43959
  usd: E
43960
- } = wK(), { milliseconds: v } = Is(), { amountUI: w } = Ac(), { srcAmountUsd: A, dstAmountUsd: C } = xK(), O = Xr().amountUI, N = ee((x) => x.state.isMarketOrder), T = K2({
43960
+ } = wK(), { milliseconds: v } = Is(), { amountUI: w } = Ac(), { srcAmountUsd: A, dstAmountUsd: C } = xK(), O = Xr().amountUI, N = J((T) => T.state.isMarketOrder), S = J((T) => T.state.currentTime), h = K2({
43961
43961
  srcToken: e,
43962
43962
  dstToken: t,
43963
43963
  account: r,
@@ -43976,28 +43976,29 @@ const zY = () => {
43976
43976
  srcUsd: A,
43977
43977
  dstUsd: C,
43978
43978
  dstAmount: w,
43979
- orderType: X2()
43980
- }), h = ar({ value: y }), b = ar({ value: E });
43979
+ orderType: X2(),
43980
+ createdAt: S
43981
+ }), b = ar({ value: y }), x = ar({ value: E });
43981
43982
  return Q(() => ({
43982
- ...T,
43983
+ ...h,
43983
43984
  fees: {
43984
43985
  label: n("fees", { value: `${g}%` }),
43985
- amount: h,
43986
- usd: b || "",
43986
+ amount: b,
43987
+ usd: x || "",
43987
43988
  percentage: g
43988
43989
  }
43989
- }), [T, h, b, g]);
43990
+ }), [h, b, x, g]);
43990
43991
  }, Lx = Yi({}), CK = ({ children: e, ...t }) => /* @__PURE__ */ M(Lx.Provider, { value: t, children: e }), TK = () => Ql(Lx), zx = () => {
43991
43992
  var s, a;
43992
- const e = Re(), { wrapTxHash: t, srcToken: r } = ee((o) => o.state.swapExecution), n = (a = (s = vc()) == null ? void 0 : s.wToken) == null ? void 0 : a.symbol;
43993
+ const e = Re(), { wrapTxHash: t, srcToken: r } = J((o) => o.state.swapExecution), n = (a = (s = vc()) == null ? void 0 : s.wToken) == null ? void 0 : a.symbol;
43993
43994
  return t ? /* @__PURE__ */ M("p", { className: "twap-error-wrap-msg", children: e("wrapMsg", { symbol: (r == null ? void 0 : r.symbol) || "", wSymbol: n || "" }) }) : null;
43994
43995
  }, $x = () => {
43995
- const e = Re(), t = ee((n) => n.state.swapExecution.status), r = Q2();
43996
+ const e = Re(), t = J((n) => n.state.swapExecution.status), r = Q2();
43996
43997
  return t === wt.SUCCESS ? e("createOrderActionSuccess", { name: r }) : e("createOrderAction", { name: r });
43997
43998
  }, AK = () => {
43998
- const e = ee((y) => y.state.swapExecution.srcToken), t = Re(), { step: r, wrapTxHash: n, approveTxHash: s } = ee(
43999
+ const e = J((y) => y.state.swapExecution.srcToken), t = Re(), { step: r, wrapTxHash: n, approveTxHash: s } = J(
43999
44000
  (y) => y.state.swapExecution
44000
- ), a = vc(), o = Vd(n), i = Vd(n), c = Vd(s), l = ee((y) => y.state.swapExecution.status), d = ho((e == null ? void 0 : e.address) || "") ? (a == null ? void 0 : a.native.symbol) || "" : (e == null ? void 0 : e.symbol) || "", f = a == null ? void 0 : a.wToken.symbol, m = $x();
44001
+ ), a = vc(), o = Vd(n), i = Vd(n), c = Vd(s), l = J((y) => y.state.swapExecution.status), d = ho((e == null ? void 0 : e.address) || "") ? (a == null ? void 0 : a.native.symbol) || "" : (e == null ? void 0 : e.symbol) || "", f = a == null ? void 0 : a.wToken.symbol, m = $x();
44001
44002
  return Q(() => r === _a.WRAP ? {
44002
44003
  title: t("wrapAction", { symbol: d }),
44003
44004
  footerLink: o,
@@ -44029,7 +44030,7 @@ const zY = () => {
44029
44030
  /* @__PURE__ */ M(zx, {})
44030
44031
  ] });
44031
44032
  function PK({ error: e }) {
44032
- const { components: t } = ne(), r = Re(), n = ee((o) => {
44033
+ const { components: t } = ne(), r = Re(), n = J((o) => {
44033
44034
  var i;
44034
44035
  return (i = o.state.swapExecution) == null ? void 0 : i.wrapTxHash;
44035
44036
  }), s = t.SubmitOrderErrorView, a = /* @__PURE__ */ M(
@@ -44043,7 +44044,7 @@ function PK({ error: e }) {
44043
44044
  return s ? /* @__PURE__ */ M(s, { wrapTxHash: n, error: e, children: a }) : a;
44044
44045
  }
44045
44046
  const IK = () => {
44046
- const { components: e } = ne(), t = ee((u) => u.state.swapExecution.srcToken), r = ee((u) => u.state.swapExecution.dstToken), { reviewDetails: n } = TK(), s = Re(), a = ee(
44047
+ const { components: e } = ne(), t = J((u) => u.state.swapExecution.srcToken), r = J((u) => u.state.swapExecution.dstToken), { reviewDetails: n } = TK(), s = Re(), a = J(
44047
44048
  (u) => {
44048
44049
  var d;
44049
44050
  return !!((d = u.state.swapExecution) != null && d.status);
@@ -44143,7 +44144,7 @@ const IK = () => {
44143
44144
  ] });
44144
44145
  return c ? /* @__PURE__ */ M(c, { children: l }) : l;
44145
44146
  }, BK = (e) => {
44146
- const { status: t, stepIndex: r, totalSteps: n, parsedError: s } = ee(
44147
+ const { status: t, stepIndex: r, totalSteps: n, parsedError: s } = J(
44147
44148
  (w) => w.state.swapExecution
44148
44149
  ), { components: a } = ne(), o = a.Spinner, i = a.SuccessIcon, c = a.ErrorIcon, l = a.TokenLogo, { srcToken: u, dstToken: d } = ne(), f = Xr().amountUI, m = Ac().amountUI, y = ar({ value: f, decimalScale: 2 }), g = ar({ value: m, decimalScale: 2 }), E = Q(() => ({
44149
44150
  symbol: u == null ? void 0 : u.symbol,
@@ -44176,7 +44177,7 @@ const IK = () => {
44176
44177
  }
44177
44178
  ) });
44178
44179
  }, FK = () => {
44179
- const e = $x(), { components: t } = ne(), r = ee((a) => a.state.swapExecution.orderId), n = t.SubmitOrderSuccessView, s = /* @__PURE__ */ he(mo, { children: [
44180
+ const e = $x(), { components: t } = ne(), r = J((a) => a.state.swapExecution.orderId), n = t.SubmitOrderSuccessView, s = /* @__PURE__ */ he(mo, { children: [
44180
44181
  /* @__PURE__ */ M(ks.Success, { title: e }),
44181
44182
  /* @__PURE__ */ M(zx, {})
44182
44183
  ] });
@@ -44363,7 +44364,7 @@ const IK = () => {
44363
44364
  }
44364
44365
  });
44365
44366
  }, _K = () => {
44366
- const { account: e, chainId: t, srcToken: r, dstToken: n, module: s, slippage: a } = ne(), o = Bs(), i = Xr().amountWei, c = Fr().amountPerTradeWei, l = Qu(), u = Fr().totalTrades, d = Is().fillDelay, f = Sc().amountWei, m = ee((y) => y.state.isMarketOrder);
44367
+ const { account: e, chainId: t, srcToken: r, dstToken: n, module: s, slippage: a } = ne(), o = Bs(), i = Xr().amountWei, c = Fr().amountPerTradeWei, l = Qu(), u = Fr().totalTrades, d = Is().fillDelay, f = Sc().amountWei, m = J((y) => y.state.isMarketOrder);
44367
44368
  return pn({
44368
44369
  mutationFn: async () => {
44369
44370
  bt.onRequestOrder({
@@ -44393,7 +44394,7 @@ function MK(e) {
44393
44394
  };
44394
44395
  }
44395
44396
  const RK = () => {
44396
- const { srcToken: e, dstToken: t, chainId: r, callbacks: n } = ne(), s = DK().mutateAsync, a = UK().mutateAsync, o = OK().mutateAsync, { mutateAsync: i } = Hx(), c = ee((d) => d.updateSwapExecution), { amountWei: l } = Xr(), u = _K().mutate;
44397
+ const { srcToken: e, dstToken: t, chainId: r, callbacks: n } = ne(), s = DK().mutateAsync, a = UK().mutateAsync, o = OK().mutateAsync, { mutateAsync: i } = Hx(), c = J((d) => d.updateSwapExecution), { amountWei: l } = Xr(), u = _K().mutate;
44397
44398
  return pn({
44398
44399
  mutationFn: async () => {
44399
44400
  var f, m;
@@ -44448,7 +44449,7 @@ const RK = () => {
44448
44449
  }
44449
44450
  });
44450
44451
  }, GY = () => {
44451
- const { marketPrice: e, srcToken: t, dstToken: r, resetTypedInputAmount: n } = ne(), s = RK(), a = ee((g) => g.updateState), { amountUI: o } = Xr(), i = ee((g) => g.resetState), c = ee((g) => g.state.swapExecution), l = ee((g) => g.updateSwapExecution), u = Q2(), d = $e(() => {
44452
+ const { marketPrice: e, srcToken: t, dstToken: r, resetTypedInputAmount: n } = ne(), s = RK(), a = J((g) => g.updateState), { amountUI: o } = Xr(), i = J((g) => g.resetState), c = J((g) => g.state.swapExecution), l = J((g) => g.updateSwapExecution), u = Q2(), d = $e(() => {
44452
44453
  (c == null ? void 0 : c.status) === wt.SUCCESS && (n(), i());
44453
44454
  }, [c == null ? void 0 : c.status, i, n]), f = $e(() => {
44454
44455
  (c == null ? void 0 : c.status) !== wt.LOADING && (a({
@@ -44536,7 +44537,7 @@ export {
44536
44537
  pt as Q,
44537
44538
  Ve as R,
44538
44539
  IY as S,
44539
- xe as T,
44540
+ Ee as T,
44540
44541
  kY as U,
44541
44542
  O0 as V,
44542
44543
  Iu as W,