@orbs-network/spot-react 0.0.101 → 0.0.103

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.
@@ -1172,7 +1172,7 @@ function bb(e) {
1172
1172
  suffix: ""
1173
1173
  }, E = "0123456789abcdefghijklmnopqrstuvwxyz", v = !0;
1174
1174
  function w(h, y) {
1175
- var x, T, I, B, _, k, S, O, U = this;
1175
+ var x, T, I, B, _, k, P, O, U = this;
1176
1176
  if (!(U instanceof w)) return new w(h, y);
1177
1177
  if (y == null) {
1178
1178
  if (h && h._isBigNumber === !0) {
@@ -1200,11 +1200,11 @@ function bb(e) {
1200
1200
  throw Error($m + h);
1201
1201
  } else
1202
1202
  U.s = O.charCodeAt(0) === 45 ? (O = O.slice(1), -1) : 1;
1203
- for (x = E.slice(0, y), B = _ = 0, S = O.length; _ < S; _++)
1203
+ for (x = E.slice(0, y), B = _ = 0, P = O.length; _ < P; _++)
1204
1204
  if (x.indexOf(T = O.charAt(_)) < 0) {
1205
1205
  if (T == ".") {
1206
1206
  if (_ > B) {
1207
- B = S;
1207
+ B = P;
1208
1208
  continue;
1209
1209
  }
1210
1210
  } else if (!I && (O == O.toUpperCase() && (O = O.toLowerCase()) || O == O.toLowerCase() && (O = O.toUpperCase()))) {
@@ -1216,21 +1216,21 @@ function bb(e) {
1216
1216
  k = !1, O = r(O, y, 10, U.s), (B = O.indexOf(".")) > -1 ? O = O.replace(".", "") : B = O.length;
1217
1217
  }
1218
1218
  for (_ = 0; O.charCodeAt(_) === 48; _++) ;
1219
- for (S = O.length; O.charCodeAt(--S) === 48; ) ;
1220
- if (O = O.slice(_, ++S)) {
1221
- if (S -= _, k && w.DEBUG && S > 15 && (h > id || h !== wr(h)))
1219
+ for (P = O.length; O.charCodeAt(--P) === 48; ) ;
1220
+ if (O = O.slice(_, ++P)) {
1221
+ if (P -= _, k && w.DEBUG && P > 15 && (h > id || h !== wr(h)))
1222
1222
  throw Error($m + U.s * h);
1223
1223
  if ((B = B - _ - 1) > d)
1224
1224
  U.c = U.e = null;
1225
1225
  else if (B < u)
1226
1226
  U.c = [U.e = 0];
1227
1227
  else {
1228
- if (U.e = B, U.c = [], _ = (B + 1) % ke, B < 0 && (_ += ke), _ < S) {
1229
- for (_ && U.c.push(+O.slice(0, _)), S -= ke; _ < S; )
1228
+ if (U.e = B, U.c = [], _ = (B + 1) % ke, B < 0 && (_ += ke), _ < P) {
1229
+ for (_ && U.c.push(+O.slice(0, _)), P -= ke; _ < P; )
1230
1230
  U.c.push(+O.slice(_, _ += ke));
1231
1231
  _ = ke - (O = O.slice(_)).length;
1232
1232
  } else
1233
- _ -= S;
1233
+ _ -= P;
1234
1234
  for (; _--; O += "0") ;
1235
1235
  U.c.push(+O);
1236
1236
  }
@@ -1310,28 +1310,28 @@ function bb(e) {
1310
1310
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
1311
1311
  };
1312
1312
  return function(x) {
1313
- var T, I, B, _, k, S = 0, O = [], U = new w(a);
1313
+ var T, I, B, _, k, P = 0, O = [], U = new w(a);
1314
1314
  if (x == null ? x = o : ut(x, 0, It), _ = od(x / ke), f)
1315
1315
  if (crypto.getRandomValues) {
1316
- for (T = crypto.getRandomValues(new Uint32Array(_ *= 2)); S < _; )
1317
- k = T[S] * 131072 + (T[S + 1] >>> 11), k >= 9e15 ? (I = crypto.getRandomValues(new Uint32Array(2)), T[S] = I[0], T[S + 1] = I[1]) : (O.push(k % 1e14), S += 2);
1318
- S = _ / 2;
1316
+ for (T = crypto.getRandomValues(new Uint32Array(_ *= 2)); P < _; )
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]) : (O.push(k % 1e14), P += 2);
1318
+ P = _ / 2;
1319
1319
  } else if (crypto.randomBytes) {
1320
- for (T = crypto.randomBytes(_ *= 7); S < _; )
1321
- k = (T[S] & 31) * 281474976710656 + T[S + 1] * 1099511627776 + T[S + 2] * 4294967296 + T[S + 3] * 16777216 + (T[S + 4] << 16) + (T[S + 5] << 8) + T[S + 6], k >= 9e15 ? crypto.randomBytes(7).copy(T, S) : (O.push(k % 1e14), S += 7);
1322
- S = _ / 7;
1320
+ for (T = crypto.randomBytes(_ *= 7); P < _; )
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) : (O.push(k % 1e14), P += 7);
1322
+ P = _ / 7;
1323
1323
  } else
1324
1324
  throw f = !1, Error(Yt + "crypto unavailable");
1325
1325
  if (!f)
1326
- for (; S < _; )
1327
- k = y(), k < 9e15 && (O[S++] = k % 1e14);
1328
- for (_ = O[--S], x %= ke, _ && x && (k = cd[ke - x], O[S] = wr(_ / k) * k); O[S] === 0; O.pop(), S--) ;
1329
- if (S < 0)
1326
+ for (; P < _; )
1327
+ k = y(), k < 9e15 && (O[P++] = k % 1e14);
1328
+ for (_ = O[--P], x %= ke, _ && x && (k = cd[ke - x], O[P] = wr(_ / k) * k); O[P] === 0; O.pop(), P--) ;
1329
+ if (P < 0)
1330
1330
  O = [B = 0];
1331
1331
  else {
1332
1332
  for (B = -1; O[0] === 0; O.splice(0, 1), B -= ke) ;
1333
- for (S = 1, k = O[0]; k >= 10; k /= 10, S++) ;
1334
- S < ke && (B -= ke - S);
1333
+ for (P = 1, k = O[0]; k >= 10; k /= 10, P++) ;
1334
+ P < ke && (B -= ke - P);
1335
1335
  }
1336
1336
  return U.e = B, U.c = O, U;
1337
1337
  };
@@ -1341,15 +1341,15 @@ function bb(e) {
1341
1341
  }, r = /* @__PURE__ */ (function() {
1342
1342
  var h = "0123456789";
1343
1343
  function y(x, T, I, B) {
1344
- for (var _, k = [0], S, O = 0, U = x.length; O < U; ) {
1345
- for (S = k.length; S--; k[S] *= T) ;
1344
+ for (var _, k = [0], P, O = 0, U = x.length; O < U; ) {
1345
+ for (P = k.length; P--; k[P] *= T) ;
1346
1346
  for (k[0] += B.indexOf(x.charAt(O++)), _ = 0; _ < k.length; _++)
1347
1347
  k[_] > I - 1 && (k[_ + 1] == null && (k[_ + 1] = 0), k[_ + 1] += k[_] / I | 0, k[_] %= I);
1348
1348
  }
1349
1349
  return k.reverse();
1350
1350
  }
1351
1351
  return function(x, T, I, B, _) {
1352
- var k, S, O, U, N, L, H, Z, fe = x.indexOf("."), ye = o, ie = i;
1352
+ var k, P, O, U, N, L, H, Z, fe = x.indexOf("."), ye = o, ie = i;
1353
1353
  for (fe >= 0 && (U = b, b = 0, x = x.replace(".", ""), Z = new w(T), L = Z.pow(x.length - fe), b = U, Z.c = y(
1354
1354
  wn(gr(L.c), L.e, "0"),
1355
1355
  10,
@@ -1357,12 +1357,12 @@ function bb(e) {
1357
1357
  h
1358
1358
  ), Z.e = Z.c.length), H = y(x, T, I, _ ? (k = E, h) : (k = h, E)), O = U = H.length; H[--U] == 0; H.pop()) ;
1359
1359
  if (!H[0]) return k.charAt(0);
1360
- if (fe < 0 ? --O : (L.c = H, L.e = O, L.s = B, L = t(L, Z, ye, ie, I), H = L.c, N = L.r, O = L.e), S = O + ye + 1, fe = H[S], U = I / 2, N = N || S < 0 || H[S + 1] != null, N = ie < 4 ? (fe != null || N) && (ie == 0 || ie == (L.s < 0 ? 3 : 2)) : fe > U || fe == U && (ie == 4 || N || ie == 6 && H[S - 1] & 1 || ie == (L.s < 0 ? 8 : 7)), S < 1 || !H[0])
1360
+ if (fe < 0 ? --O : (L.c = H, L.e = O, L.s = B, L = t(L, Z, ye, ie, I), H = L.c, N = L.r, O = L.e), P = O + ye + 1, fe = H[P], U = I / 2, N = N || P < 0 || H[P + 1] != null, N = ie < 4 ? (fe != null || N) && (ie == 0 || ie == (L.s < 0 ? 3 : 2)) : fe > U || fe == U && (ie == 4 || N || ie == 6 && H[P - 1] & 1 || ie == (L.s < 0 ? 8 : 7)), P < 1 || !H[0])
1361
1361
  x = N ? wn(k.charAt(1), -ye, k.charAt(0)) : k.charAt(0);
1362
1362
  else {
1363
- if (H.length = S, N)
1364
- for (--I; ++H[--S] > I; )
1365
- H[S] = 0, S || (++O, H = [1].concat(H));
1363
+ if (H.length = P, N)
1364
+ for (--I; ++H[--P] > I; )
1365
+ H[P] = 0, P || (++O, H = [1].concat(H));
1366
1366
  for (U = H.length; !H[--U]; ) ;
1367
1367
  for (fe = 0, x = ""; fe <= U; x += k.charAt(H[fe++])) ;
1368
1368
  x = wn(x, O, k.charAt(0));
@@ -1371,22 +1371,22 @@ function bb(e) {
1371
1371
  };
1372
1372
  })(), t = /* @__PURE__ */ (function() {
1373
1373
  function h(T, I, B) {
1374
- var _, k, S, O, U = 0, N = T.length, L = I % Jn, H = I / Jn | 0;
1374
+ var _, k, P, O, U = 0, N = T.length, L = I % Jn, H = I / Jn | 0;
1375
1375
  for (T = T.slice(); N--; )
1376
- S = T[N] % Jn, O = T[N] / Jn | 0, _ = H * S + O * L, k = L * S + _ % Jn * Jn + U, U = (k / B | 0) + (_ / Jn | 0) + H * O, T[N] = k % B;
1376
+ P = T[N] % Jn, O = T[N] / Jn | 0, _ = H * P + O * L, k = L * P + _ % Jn * Jn + U, U = (k / B | 0) + (_ / Jn | 0) + H * O, T[N] = k % B;
1377
1377
  return U && (T = [U].concat(T)), T;
1378
1378
  }
1379
1379
  function y(T, I, B, _) {
1380
- var k, S;
1380
+ var k, P;
1381
1381
  if (B != _)
1382
- S = B > _ ? 1 : -1;
1382
+ P = B > _ ? 1 : -1;
1383
1383
  else
1384
- for (k = S = 0; k < B; k++)
1384
+ for (k = P = 0; k < B; k++)
1385
1385
  if (T[k] != I[k]) {
1386
- S = T[k] > I[k] ? 1 : -1;
1386
+ P = T[k] > I[k] ? 1 : -1;
1387
1387
  break;
1388
1388
  }
1389
- return S;
1389
+ return P;
1390
1390
  }
1391
1391
  function x(T, I, B, _) {
1392
1392
  for (var k = 0; B--; )
@@ -1394,7 +1394,7 @@ function bb(e) {
1394
1394
  for (; !T[0] && T.length > 1; T.splice(0, 1)) ;
1395
1395
  }
1396
1396
  return function(T, I, B, _, k) {
1397
- var S, O, U, N, L, H, Z, fe, ye, ie, pe, Ue, K, ve, De, He, at, Ae = T.s == I.s ? 1 : -1, Ee = T.c, ge = I.c;
1397
+ var P, O, U, N, L, H, Z, fe, ye, ie, pe, Ue, K, ve, De, He, at, Ae = T.s == I.s ? 1 : -1, Ee = T.c, ge = I.c;
1398
1398
  if (!Ee || !Ee[0] || !ge || !ge[0])
1399
1399
  return new w(
1400
1400
  // Return NaN if either NaN, or both Infinity or 0.
@@ -1410,16 +1410,16 @@ function bb(e) {
1410
1410
  for (ve = Ee.length, He = ge.length, U = 0, Ae += 2, L = wr(k / (ge[0] + 1)), L > 1 && (ge = h(ge, L, k), Ee = h(Ee, L, k), He = ge.length, ve = Ee.length), K = He, ie = Ee.slice(0, He), pe = ie.length; pe < He; ie[pe++] = 0) ;
1411
1411
  at = ge.slice(), at = [0].concat(at), De = ge[0], ge[1] >= k / 2 && De++;
1412
1412
  do {
1413
- if (L = 0, S = y(ge, ie, He, pe), S < 0) {
1413
+ if (L = 0, P = y(ge, ie, He, pe), P < 0) {
1414
1414
  if (Ue = ie[0], He != pe && (Ue = Ue * k + (ie[1] || 0)), L = wr(Ue / De), L > 1)
1415
1415
  for (L >= k && (L = k - 1), H = h(ge, L, k), Z = H.length, pe = ie.length; y(H, ie, Z, pe) == 1; )
1416
- L--, x(H, He < Z ? at : ge, Z, k), Z = H.length, S = 1;
1416
+ L--, x(H, He < Z ? at : ge, Z, k), Z = H.length, P = 1;
1417
1417
  else
1418
- L == 0 && (S = L = 1), H = ge.slice(), Z = H.length;
1419
- if (Z < pe && (H = [0].concat(H)), x(ie, H, pe, k), pe = ie.length, S == -1)
1418
+ L == 0 && (P = L = 1), H = ge.slice(), Z = H.length;
1419
+ if (Z < pe && (H = [0].concat(H)), x(ie, H, pe, k), pe = ie.length, P == -1)
1420
1420
  for (; y(ge, ie, He, pe) < 1; )
1421
1421
  L++, x(ie, He < pe ? at : ge, pe, k), pe = ie.length;
1422
- } else S === 0 && (L++, ie = [0]);
1422
+ } else P === 0 && (L++, ie = [0]);
1423
1423
  ye[U++] = L, ie[0] ? ie[pe++] = Ee[K] || 0 : (ie = [Ee[K]], pe = 1);
1424
1424
  } while ((K++ < ve || ie[0] != null) && Ae--);
1425
1425
  N = ie[0] != null, ye[0] || ye.splice(0, 1);
@@ -1433,18 +1433,18 @@ function bb(e) {
1433
1433
  };
1434
1434
  })();
1435
1435
  function A(h, y, x, T) {
1436
- var I, B, _, k, S;
1436
+ var I, B, _, k, P;
1437
1437
  if (x == null ? x = i : ut(x, 0, 8), !h.c) return h.toString();
1438
1438
  if (I = h.c[0], _ = h.e, y == null)
1439
- S = gr(h.c), S = T == 1 || T == 2 && (_ <= c || _ >= l) ? Lc(S, _) : wn(S, _, "0");
1440
- else if (h = R(new w(h), y, x), B = h.e, S = gr(h.c), k = S.length, T == 1 || T == 2 && (y <= B || B <= c)) {
1441
- for (; k < y; S += "0", k++) ;
1442
- S = Lc(S, B);
1443
- } else if (y -= _ + (T === 2 && B > _), S = wn(S, B, "0"), B + 1 > k) {
1444
- if (--y > 0) for (S += "."; y--; S += "0") ;
1439
+ P = gr(h.c), P = T == 1 || T == 2 && (_ <= c || _ >= l) ? Lc(P, _) : wn(P, _, "0");
1440
+ else if (h = R(new w(h), y, x), B = h.e, P = gr(h.c), k = P.length, T == 1 || T == 2 && (y <= B || B <= c)) {
1441
+ for (; k < y; P += "0", k++) ;
1442
+ P = Lc(P, B);
1443
+ } else if (y -= _ + (T === 2 && B > _), P = wn(P, B, "0"), B + 1 > k) {
1444
+ if (--y > 0) for (P += "."; y--; P += "0") ;
1445
1445
  } else if (y += B - k, y > 0)
1446
- for (B + 1 == k && (S += "."); y--; S += "0") ;
1447
- return h.s < 0 && I ? "-" + S : S;
1446
+ for (B + 1 == k && (P += "."); y--; P += "0") ;
1447
+ return h.s < 0 && I ? "-" + P : P;
1448
1448
  }
1449
1449
  function C(h, y) {
1450
1450
  for (var x, T, I = 1, B = new w(h[0]); I < h.length; I++)
@@ -1458,46 +1458,46 @@ function bb(e) {
1458
1458
  }
1459
1459
  n = /* @__PURE__ */ (function() {
1460
1460
  var h = /^(-?)0([xbo])(?=\w[\w.]*$)/i, y = /^([^.]+)\.$/, x = /^\.([^.]+)$/, T = /^-?(Infinity|NaN)$/, I = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
1461
- return function(B, _, k, S) {
1461
+ return function(B, _, k, P) {
1462
1462
  var O, U = k ? _ : _.replace(I, "");
1463
1463
  if (T.test(U))
1464
1464
  B.s = isNaN(U) ? null : U < 0 ? -1 : 1;
1465
1465
  else {
1466
1466
  if (!k && (U = U.replace(h, function(N, L, H) {
1467
- return O = (H = H.toLowerCase()) == "x" ? 16 : H == "b" ? 2 : 8, !S || S == O ? L : N;
1468
- }), S && (O = S, U = U.replace(y, "$1").replace(x, "0.$1")), _ != U))
1467
+ return O = (H = H.toLowerCase()) == "x" ? 16 : H == "b" ? 2 : 8, !P || P == O ? L : N;
1468
+ }), P && (O = P, U = U.replace(y, "$1").replace(x, "0.$1")), _ != U))
1469
1469
  return new w(U, O);
1470
1470
  if (w.DEBUG)
1471
- throw Error(Yt + "Not a" + (S ? " base " + S : "") + " number: " + _);
1471
+ throw Error(Yt + "Not a" + (P ? " base " + P : "") + " number: " + _);
1472
1472
  B.s = null;
1473
1473
  }
1474
1474
  B.c = B.e = null;
1475
1475
  };
1476
1476
  })();
1477
1477
  function R(h, y, x, T) {
1478
- var I, B, _, k, S, O, U, N = h.c, L = cd;
1478
+ var I, B, _, k, P, O, U, N = h.c, L = cd;
1479
1479
  if (N) {
1480
1480
  e: {
1481
1481
  for (I = 1, k = N[0]; k >= 10; k /= 10, I++) ;
1482
1482
  if (B = y - I, B < 0)
1483
- B += ke, _ = y, S = N[O = 0], U = wr(S / L[I - _ - 1] % 10);
1483
+ B += ke, _ = y, P = N[O = 0], U = wr(P / L[I - _ - 1] % 10);
1484
1484
  else if (O = od((B + 1) / ke), O >= N.length)
1485
1485
  if (T) {
1486
1486
  for (; N.length <= O; N.push(0)) ;
1487
- S = U = 0, I = 1, B %= ke, _ = B - ke + 1;
1487
+ P = U = 0, I = 1, B %= ke, _ = B - ke + 1;
1488
1488
  } else
1489
1489
  break e;
1490
1490
  else {
1491
- for (S = k = N[O], I = 1; k >= 10; k /= 10, I++) ;
1492
- B %= ke, _ = B - ke + I, U = _ < 0 ? 0 : wr(S / L[I - _ - 1] % 10);
1491
+ for (P = k = N[O], I = 1; k >= 10; k /= 10, I++) ;
1492
+ B %= ke, _ = B - ke + I, U = _ < 0 ? 0 : wr(P / L[I - _ - 1] % 10);
1493
1493
  }
1494
1494
  if (T = T || y < 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
- N[O + 1] != null || (_ < 0 ? S : S % L[I - _ - 1]), T = x < 4 ? (U || T) && (x == 0 || x == (h.s < 0 ? 3 : 2)) : U > 5 || U == 5 && (x == 4 || T || x == 6 && // Check whether the digit to the left of the rounding digit is odd.
1498
- (B > 0 ? _ > 0 ? S / L[I - _] : 0 : N[O - 1]) % 10 & 1 || x == (h.s < 0 ? 8 : 7)), y < 1 || !N[0])
1497
+ N[O + 1] != null || (_ < 0 ? P : P % L[I - _ - 1]), T = x < 4 ? (U || T) && (x == 0 || x == (h.s < 0 ? 3 : 2)) : U > 5 || U == 5 && (x == 4 || T || x == 6 && // Check whether the digit to the left of the rounding digit is odd.
1498
+ (B > 0 ? _ > 0 ? P / L[I - _] : 0 : N[O - 1]) % 10 & 1 || x == (h.s < 0 ? 8 : 7)), y < 1 || !N[0])
1499
1499
  return N.length = 0, T ? (y -= h.e + 1, N[0] = L[(ke - y % ke) % ke], h.e = -y || 0) : N[0] = h.e = 0, h;
1500
- if (B == 0 ? (N.length = O, k = 1, O--) : (N.length = O + 1, k = L[ke - B], N[O] = _ > 0 ? wr(S / L[I - _] % L[_]) * k : 0), T)
1500
+ if (B == 0 ? (N.length = O, k = 1, O--) : (N.length = O + 1, k = L[ke - B], N[O] = _ > 0 ? wr(P / L[I - _] % L[_]) * k : 0), T)
1501
1501
  for (; ; )
1502
1502
  if (O == 0) {
1503
1503
  for (B = 1, _ = N[0]; _ >= 10; _ /= 10, B++) ;
@@ -1514,7 +1514,7 @@ function bb(e) {
1514
1514
  }
1515
1515
  return h;
1516
1516
  }
1517
- function P(h) {
1517
+ function S(h) {
1518
1518
  var y, x = h.e;
1519
1519
  return x === null ? h.toString() : (y = gr(h.c), y = x <= c || x >= l ? Lc(y, x) : wn(y, x, "0"), h.s < 0 ? "-" + y : y);
1520
1520
  }
@@ -1535,20 +1535,20 @@ function bb(e) {
1535
1535
  }, s.dividedToIntegerBy = s.idiv = function(h, y) {
1536
1536
  return t(this, new w(h, y), 0, 1);
1537
1537
  }, s.exponentiatedBy = s.pow = function(h, y) {
1538
- var x, T, I, B, _, k, S, O, U, N = this;
1538
+ var x, T, I, B, _, k, P, O, U, N = this;
1539
1539
  if (h = new w(h), h.c && !h.isInteger())
1540
- throw Error(Yt + "Exponent not an integer: " + P(h));
1540
+ throw Error(Yt + "Exponent not an integer: " + S(h));
1541
1541
  if (y != null && (y = new w(y)), k = h.e > 14, !N.c || !N.c[0] || N.c[0] == 1 && !N.e && N.c.length == 1 || !h.c || !h.c[0])
1542
- return U = new w(Math.pow(+P(N), k ? h.s * (2 - Nc(h)) : +P(h))), y ? U.mod(y) : U;
1543
- if (S = h.s < 0, y) {
1542
+ return U = new w(Math.pow(+S(N), k ? h.s * (2 - Nc(h)) : +S(h))), y ? U.mod(y) : U;
1543
+ if (P = h.s < 0, y) {
1544
1544
  if (y.c ? !y.c[0] : !y.s) return new w(NaN);
1545
- T = !S && N.isInteger() && y.isInteger(), T && (N = N.mod(y));
1545
+ T = !P && N.isInteger() && y.isInteger(), T && (N = N.mod(y));
1546
1546
  } else {
1547
1547
  if (h.e > 9 && (N.e > 0 || N.e < -1 || (N.e == 0 ? N.c[0] > 1 || k && N.c[1] >= 24e7 : N.c[0] < 8e13 || k && N.c[0] <= 9999975e7)))
1548
- return B = N.s < 0 && Nc(h) ? -0 : 0, N.e > -1 && (B = 1 / B), new w(S ? 1 / B : B);
1548
+ return B = N.s < 0 && Nc(h) ? -0 : 0, N.e > -1 && (B = 1 / B), new w(P ? 1 / B : B);
1549
1549
  b && (B = od(b / ke + 2));
1550
1550
  }
1551
- for (k ? (x = new w(0.5), S && (h.s = 1), O = Nc(h)) : (I = Math.abs(+P(h)), O = I % 2), U = new w(a); ; ) {
1551
+ for (k ? (x = new w(0.5), P && (h.s = 1), O = Nc(h)) : (I = Math.abs(+S(h)), O = I % 2), U = new w(a); ; ) {
1552
1552
  if (O) {
1553
1553
  if (U = U.times(N), !U.c) break;
1554
1554
  B ? U.c.length > B && (U.c.length = B) : T && (U = U.mod(y));
@@ -1559,12 +1559,12 @@ function bb(e) {
1559
1559
  } else if (h = h.times(x), R(h, h.e + 1, 1), h.e > 14)
1560
1560
  O = Nc(h);
1561
1561
  else {
1562
- if (I = +P(h), I === 0) break;
1562
+ if (I = +S(h), I === 0) break;
1563
1563
  O = I % 2;
1564
1564
  }
1565
1565
  N = N.times(N), B ? N.c && N.c.length > B && (N.c.length = B) : T && (N = N.mod(y));
1566
1566
  }
1567
- return T ? U : (S && (U = a.div(U)), y ? U.mod(y) : B ? R(U, b, i, _) : U);
1567
+ return T ? U : (P && (U = a.div(U)), y ? U.mod(y) : B ? R(U, b, i, _) : U);
1568
1568
  }, s.integerValue = function(h) {
1569
1569
  var y = new w(this);
1570
1570
  return h == null ? h = i : ut(h, 0, 8), R(y, y.e + 1, h);
@@ -1595,8 +1595,8 @@ function bb(e) {
1595
1595
  if (h = new w(h, y), y = h.s, !k || !y) return new w(NaN);
1596
1596
  if (k != y)
1597
1597
  return h.s = -y, _.plus(h);
1598
- var S = _.e / ke, O = h.e / ke, U = _.c, N = h.c;
1599
- if (!S || !O) {
1598
+ var P = _.e / ke, O = h.e / ke, U = _.c, N = h.c;
1599
+ if (!P || !O) {
1600
1600
  if (!U || !N) return U ? (h.s = -y, h) : new w(N ? _ : NaN);
1601
1601
  if (!U[0] || !N[0])
1602
1602
  return N[0] ? (h.s = -y, h) : new w(U[0] ? _ : (
@@ -1604,8 +1604,8 @@ function bb(e) {
1604
1604
  i == 3 ? -0 : 0
1605
1605
  ));
1606
1606
  }
1607
- if (S = vr(S), O = vr(O), U = U.slice(), k = S - O) {
1608
- for ((B = k < 0) ? (k = -k, I = U) : (O = S, I = N), I.reverse(), y = k; y--; I.push(0)) ;
1607
+ if (P = vr(P), O = vr(O), U = U.slice(), k = P - O) {
1608
+ for ((B = k < 0) ? (k = -k, I = U) : (O = P, I = N), I.reverse(), y = k; y--; I.push(0)) ;
1609
1609
  I.reverse();
1610
1610
  } else
1611
1611
  for (T = (B = (k = U.length) < (y = N.length)) ? k : y, k = y = 0; y < T; y++)
@@ -1627,12 +1627,12 @@ function bb(e) {
1627
1627
  var x, T, I = this;
1628
1628
  return h = new w(h, y), !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, y) {
1630
- var x, T, I, B, _, k, S, O, U, N, L, H, Z, fe, ye, ie = this, pe = ie.c, Ue = (h = new w(h, y)).c;
1630
+ var x, T, I, B, _, k, P, O, U, N, L, H, Z, fe, ye, ie = this, pe = ie.c, Ue = (h = new w(h, y)).c;
1631
1631
  if (!pe || !Ue || !pe[0] || !Ue[0])
1632
1632
  return !ie.s || !h.s || pe && !pe[0] && !Ue || Ue && !Ue[0] && !pe ? h.c = h.e = h.s = null : (h.s *= ie.s, !pe || !Ue ? h.c = h.e = null : (h.c = [0], h.e = 0)), h;
1633
- for (T = vr(ie.e / ke) + vr(h.e / ke), h.s *= ie.s, S = pe.length, N = Ue.length, S < N && (Z = pe, pe = Ue, Ue = Z, I = S, S = N, N = I), I = S + N, Z = []; I--; Z.push(0)) ;
1633
+ for (T = vr(ie.e / ke) + vr(h.e / ke), h.s *= ie.s, P = pe.length, N = Ue.length, P < N && (Z = pe, pe = Ue, Ue = Z, I = P, P = N, N = I), I = P + N, Z = []; I--; Z.push(0)) ;
1634
1634
  for (fe = Dr, ye = Jn, I = N; --I >= 0; ) {
1635
- for (x = 0, L = Ue[I] % ye, H = Ue[I] / ye | 0, _ = S, B = I + _; B > I; )
1635
+ for (x = 0, L = Ue[I] % ye, H = Ue[I] / ye | 0, _ = P, B = I + _; B > I; )
1636
1636
  O = pe[--_] % ye, U = pe[_] / ye | 0, k = H * O + U * L, O = L * O + k % ye * ye + Z[B] + x, x = (O / fe | 0) + (k / ye | 0) + H * U, Z[B--] = O % fe;
1637
1637
  Z[B] = x;
1638
1638
  }
@@ -1645,17 +1645,17 @@ function bb(e) {
1645
1645
  if (h = new w(h, y), y = h.s, !I || !y) return new w(NaN);
1646
1646
  if (I != y)
1647
1647
  return h.s = -y, T.minus(h);
1648
- var B = T.e / ke, _ = h.e / ke, k = T.c, S = h.c;
1648
+ var B = T.e / ke, _ = h.e / ke, k = T.c, P = h.c;
1649
1649
  if (!B || !_) {
1650
- if (!k || !S) return new w(I / 0);
1651
- if (!k[0] || !S[0]) return S[0] ? h : new w(k[0] ? T : I * 0);
1650
+ if (!k || !P) return new w(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 = vr(B), _ = vr(_), k = k.slice(), I = B - _) {
1654
- for (I > 0 ? (_ = B, x = S) : (I = -I, x = k), x.reverse(); I--; x.push(0)) ;
1654
+ for (I > 0 ? (_ = B, x = P) : (I = -I, x = k), x.reverse(); I--; x.push(0)) ;
1655
1655
  x.reverse();
1656
1656
  }
1657
- for (I = k.length, y = S.length, I - y < 0 && (x = S, S = k, k = x, y = I), I = 0; y; )
1658
- I = (k[--y] = k[y] + S[y] + I) / Dr | 0, k[y] = Dr === k[y] ? 0 : k[y] % Dr;
1657
+ for (I = k.length, y = P.length, I - y < 0 && (x = P, P = k, k = x, y = I), I = 0; y; )
1658
+ I = (k[--y] = k[y] + P[y] + I) / Dr | 0, k[y] = Dr === k[y] ? 0 : k[y] % Dr;
1659
1659
  return I && (k = [I].concat(k), ++_), F(h, k, _);
1660
1660
  }, s.precision = s.sd = function(h, y) {
1661
1661
  var x, T, I, B = this;
@@ -1670,13 +1670,13 @@ function bb(e) {
1670
1670
  }, s.shiftedBy = function(h) {
1671
1671
  return ut(h, -id, id), this.times("1e" + h);
1672
1672
  }, s.squareRoot = s.sqrt = function() {
1673
- var h, y, x, T, I, B = this, _ = B.c, k = B.s, S = B.e, O = o + 4, U = new w("0.5");
1673
+ var h, y, x, T, I, B = this, _ = B.c, k = B.s, P = B.e, O = o + 4, U = new w("0.5");
1674
1674
  if (k !== 1 || !_ || !_[0])
1675
1675
  return new w(!k || k < 0 && (!_ || _[0]) ? NaN : _ ? B : 1 / 0);
1676
- if (k = Math.sqrt(+P(B)), k == 0 || k == 1 / 0 ? (y = gr(_), (y.length + S) % 2 == 0 && (y += "0"), k = Math.sqrt(+y), S = vr((S + 1) / 2) - (S < 0 || S % 2), k == 1 / 0 ? y = "5e" + S : (y = k.toExponential(), y = y.slice(0, y.indexOf("e") + 1) + S), x = new w(y)) : x = new w(k + ""), x.c[0]) {
1677
- for (S = x.e, k = S + O, k < 3 && (k = 0); ; )
1676
+ if (k = Math.sqrt(+S(B)), k == 0 || k == 1 / 0 ? (y = gr(_), (y.length + P) % 2 == 0 && (y += "0"), k = Math.sqrt(+y), P = vr((P + 1) / 2) - (P < 0 || P % 2), k == 1 / 0 ? y = "5e" + P : (y = k.toExponential(), y = y.slice(0, y.indexOf("e") + 1) + P), x = new w(y)) : x = new w(k + ""), x.c[0]) {
1677
+ for (P = x.e, k = P + O, k < 3 && (k = 0); ; )
1678
1678
  if (I = x, x = U.times(I.plus(t(B, I, O, 1))), gr(I.c).slice(0, k) === (y = gr(x.c)).slice(0, k))
1679
- if (x.e < S && --k, y = y.slice(k - 3, k + 1), y == "9999" || !T && y == "4999") {
1679
+ if (x.e < P && --k, y = y.slice(k - 3, k + 1), y == "9999" || !T && y == "4999") {
1680
1680
  if (!T && (R(I, I.e + o + 2, 0), I.times(I).eq(B))) {
1681
1681
  x = I;
1682
1682
  break;
@@ -1699,36 +1699,36 @@ function bb(e) {
1699
1699
  else if (typeof x != "object")
1700
1700
  throw Error(Yt + "Argument not an object: " + x);
1701
1701
  if (T = I.toFixed(h, y), I.c) {
1702
- var B, _ = T.split("."), k = +x.groupSize, S = +x.secondaryGroupSize, O = x.groupSeparator || "", U = _[0], N = _[1], L = I.s < 0, H = L ? U.slice(1) : U, Z = H.length;
1703
- if (S && (B = k, k = S, S = B, Z -= B), k > 0 && Z > 0) {
1702
+ var B, _ = T.split("."), k = +x.groupSize, P = +x.secondaryGroupSize, O = x.groupSeparator || "", U = _[0], N = _[1], L = I.s < 0, H = L ? U.slice(1) : U, Z = H.length;
1703
+ if (P && (B = k, k = P, P = B, Z -= B), k > 0 && Z > 0) {
1704
1704
  for (B = Z % k || k, U = H.substr(0, B); B < Z; B += k) U += O + H.substr(B, k);
1705
- S > 0 && (U += O + H.slice(B)), L && (U = "-" + U);
1705
+ P > 0 && (U += O + H.slice(B)), L && (U = "-" + U);
1706
1706
  }
1707
- T = N ? U + (x.decimalSeparator || "") + ((S = +x.fractionGroupSize) ? N.replace(
1708
- new RegExp("\\d{" + S + "}\\B", "g"),
1707
+ T = N ? U + (x.decimalSeparator || "") + ((P = +x.fractionGroupSize) ? N.replace(
1708
+ new RegExp("\\d{" + P + "}\\B", "g"),
1709
1709
  "$&" + (x.fractionGroupSeparator || "")
1710
1710
  ) : N) : U;
1711
1711
  }
1712
1712
  return (x.prefix || "") + T + (x.suffix || "");
1713
1713
  }, s.toFraction = function(h) {
1714
- var y, x, T, I, B, _, k, S, O, U, N, L, H = this, Z = H.c;
1714
+ var y, x, T, I, B, _, k, P, O, U, N, L, H = this, Z = H.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: ") + P(k));
1716
+ throw Error(Yt + "Argument " + (k.isInteger() ? "out of range: " : "not an integer: ") + S(k));
1717
1717
  if (!Z) return new w(H);
1718
- for (y = new w(a), O = x = new w(a), T = S = new w(a), L = gr(Z), B = y.e = L.length - H.e - 1, y.c[0] = cd[(_ = B % ke) < 0 ? ke + _ : _], h = !h || k.comparedTo(y) > 0 ? B > 0 ? y : O : k, _ = d, d = 1 / 0, k = new w(L), S.c[0] = 0; U = t(k, y, 0, 1), I = x.plus(U.times(T)), I.comparedTo(h) != 1; )
1719
- x = T, T = I, O = S.plus(U.times(I = O)), S = I, y = k.minus(U.times(I = y)), k = I;
1720
- return I = t(h.minus(x), T, 0, 1), S = S.plus(I.times(O)), x = x.plus(I.times(T)), S.s = O.s = H.s, B = B * 2, N = t(O, T, B, i).minus(H).abs().comparedTo(
1721
- t(S, x, B, i).minus(H).abs()
1722
- ) < 1 ? [O, T] : [S, x], d = _, N;
1718
+ for (y = new w(a), O = x = new w(a), T = P = new w(a), L = gr(Z), B = y.e = L.length - H.e - 1, y.c[0] = cd[(_ = B % ke) < 0 ? ke + _ : _], h = !h || k.comparedTo(y) > 0 ? B > 0 ? y : O : k, _ = d, d = 1 / 0, k = new w(L), P.c[0] = 0; U = t(k, y, 0, 1), I = x.plus(U.times(T)), I.comparedTo(h) != 1; )
1719
+ x = T, T = I, O = P.plus(U.times(I = O)), P = I, y = k.minus(U.times(I = y)), k = I;
1720
+ return I = t(h.minus(x), T, 0, 1), P = P.plus(I.times(O)), x = x.plus(I.times(T)), P.s = O.s = H.s, B = B * 2, N = t(O, T, B, i).minus(H).abs().comparedTo(
1721
+ t(P, x, B, i).minus(H).abs()
1722
+ ) < 1 ? [O, T] : [P, x], d = _, N;
1723
1723
  }, s.toNumber = function() {
1724
- return +P(this);
1724
+ return +S(this);
1725
1725
  }, s.toPrecision = function(h, y) {
1726
1726
  return h != null && ut(h, 1, It), A(this, h, y, 2);
1727
1727
  }, s.toString = function(h) {
1728
1728
  var y, x = this, T = x.s, I = x.e;
1729
1729
  return I === null ? T ? (y = "Infinity", T < 0 && (y = "-" + y)) : y = "NaN" : (h == null ? y = I <= c || I >= l ? Lc(gr(x.c), I) : wn(gr(x.c), I, "0") : h === 10 && v ? (x = R(new w(x), o + I + 1, i), y = wn(gr(x.c), x.e, "0")) : (ut(h, 2, E.length, "Base"), y = r(wn(gr(x.c), I, "0"), 10, h, T, !0)), T < 0 && x.c[0] && (y = "-" + y)), y;
1730
1730
  }, s.valueOf = s.toJSON = function() {
1731
- return P(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 vr(e) {
@@ -2187,18 +2187,18 @@ function fw(e) {
2187
2187
  const mw = {
2188
2188
  1: { dex: { sushiswap: { type: "default:sushi", router: "0xAC4c6e212A361c968F1725b4d055b47E63F80b75", adapter: "0x3Ee50D79e6D0205f325928AAFb041b63E1767Bc5", fee: "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc" } } },
2189
2189
  14: { dex: { spark: { type: "default:spark", adapter: "0xB18c633B6584A33E45a8840a759f56dF17117b1D", fee: "0xaeA8C3e1a129A77686E115b1a46D9aD8405F7D2b" } } },
2190
- 56: { dex: { agent: { type: "default:odos-v2", router: "0x89b8AA89FDd0507a99d334CBe3C808fAFC7d850E", adapter: "0x67Feba015c968c76cCB2EEabf197b4578640BE2C", fee: "0x03A70aC8126340d3cd6b5828816172693C398661" }, thena: { type: "default:odos-v2", adapter: "0xB75218ba5A99bF57Fd02556B70F05A4A0f1Dbe67", fee: "0x15eBc8b5b3877512FFF23650188694A9a8891FAc" }, pancake: { type: "p2:pancakeswap-v2", adapter: "0x654272F7e6e6E912D38650f783eFd44452fD6ee5", fee: "0x37A957f10F458e0d7fDECBE2917971b57F15c927" }, newera: { type: "default:odos-v2", adapter: "0x845f459271D800f6Ab32D78400b8Aa18414E80b0", fee: "0x4E7454909eB6D539111D56b50d68897E933D2d11" } } },
2190
+ 56: { dex: { thena: { type: "default:odos-v2", adapter: "0xB75218ba5A99bF57Fd02556B70F05A4A0f1Dbe67", fee: "0x15eBc8b5b3877512FFF23650188694A9a8891FAc" }, pancake: { type: "p2:pancakeswap-v2", adapter: "0x654272F7e6e6E912D38650f783eFd44452fD6ee5", fee: "0x37A957f10F458e0d7fDECBE2917971b57F15c927" }, newera: { type: "default:odos-v2", adapter: "0x845f459271D800f6Ab32D78400b8Aa18414E80b0", fee: "0x4E7454909eB6D539111D56b50d68897E933D2d11" } } },
2191
2191
  137: { dex: { quick: { type: "paraswap:paraswap-v5", adapter: "0x023fD6848234f2655818705237F77F02215FEfe5", fee: "0xd207DC6a6dA88f27c8DB78201F974161b1d84b1f" }, teafi: { type: "paraswap:paraswap-v5", adapter: "0xe95db7a60164B112C64cE67bA8587b1d4a0E0D29", fee: "0x04Ff96e2c4D62b5771795d307AD679a25b3D2D50" } } },
2192
2192
  143: { dex: { yowie: { type: "default:openocean-v2", adapter: "0x18bc9533c3539073B9A9acF12b0AbF7cB73e0F1f", fee: "0x6AF3eE77A3A3257777F5649aFa611b4C7Fd975Ef" }, pangolin: { type: "default:kyber-v2", adapter: "0xd7D9CAA2910f49F37AC3447f5cAd27153944354A", fee: "0xde92da99D188Ceb54A11ec711EF52D808A6260B5" } } },
2193
2193
  146: { dex: { spooky: { type: "default:magpie-v3", adapter: "0xdCee7FDdB932104329d528144Cd17A408722B7e2", fee: "0x840Df4684B35BC68BcdA3F6707A3c82A0D662f8b" }, swapx: { type: "default:openocean-v2", adapter: "0xecc733D6F6f2DEa341832D650E30822118884FEb", fee: "0x6E03f7BC0f141894612AA017796096399623895F" }, shadow: { type: "default:magpie-v3", adapter: "0x5f3E5F6ACCfc65243A01Da3E93b5A700285592C3", fee: "0xb9e3751fAF3187E1bC468E56a707a8A91754460e" } } },
2194
2194
  1329: { dex: { dragon: { type: "default:dragon", adapter: "0x02d9d5882129241b67ec21Ebc2C86e1BE9BC9890", fee: "0x0dc1E0525202b32e89bA78ed55b1e5cEdB751334" }, nami: { type: "default:openocean-v2", adapter: "0x2D4A1237A98f8cb03C3C85960e859aA44036a306", fee: "0xeB58450e23632003f013568703F54446070E2E80" } } },
2195
2195
  8453: { dex: { quick: { type: "default:kyber-v2", adapter: "0xc73F03c929A123Ee2f3A98EC18BB240f03980AE5", fee: "0xd207DC6a6dA88f27c8DB78201F974161b1d84b1f" }, sushiswap: { type: "default:sushi", router: "0xAC4c6e212A361c968F1725b4d055b47E63F80b75", adapter: "0x3Ee50D79e6D0205f325928AAFb041b63E1767Bc5", fee: "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc" } } },
2196
- 42161: { dex: { agent: { type: "default:odos-v2", router: "0xa669e7A0d4b3e4Fa48af2dE86BD4CD7126Be4e13", adapter: "0x026B8977319F67078e932a08feAcB59182B5380f", fee: "0x03A70aC8126340d3cd6b5828816172693C398661" }, arbidex: { type: "default:odos-v2", adapter: "0xa734b32151108139e48dCA06eE721538d90A9Ef6", fee: "0xa0c11852f8A44e32F9EC10AD25986A53842f72Ca" }, ramses: { type: "paraswap:paraswap-v5", adapter: "0x023fD6848234f2655818705237F77F02215FEfe5", fee: "0xB5BaCB60ECDa0bEF809B2A26eC9B4B926835D7af" }, omni: { type: "paraswap:paraswap-v5", adapter: "0xa1baE146161223cd9dCa7137F68eb385934130BE", fee: "0xba5291526c30B097E9F1Fd1Be301E2ab6E0782aa" }, chronos: { type: "default:odos-v2", adapter: "0x4Ff90F32aceD08b3e3257B018EA495Fd1Bfe4455", fee: "0x5729af83240EFecAa18eafaAE82961c2DD045Dbe" }, sushiswap: { type: "default:sushi", router: "0xAC4c6e212A361c968F1725b4d055b47E63F80b75", adapter: "0x3Ee50D79e6D0205f325928AAFb041b63E1767Bc5", fee: "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc" } } },
2196
+ 42161: { dex: { arbidex: { type: "default:odos-v2", adapter: "0xa734b32151108139e48dCA06eE721538d90A9Ef6", fee: "0xa0c11852f8A44e32F9EC10AD25986A53842f72Ca" }, ramses: { type: "paraswap:paraswap-v5", adapter: "0x023fD6848234f2655818705237F77F02215FEfe5", fee: "0xB5BaCB60ECDa0bEF809B2A26eC9B4B926835D7af" }, omni: { type: "paraswap:paraswap-v5", adapter: "0xa1baE146161223cd9dCa7137F68eb385934130BE", fee: "0xba5291526c30B097E9F1Fd1Be301E2ab6E0782aa" }, chronos: { type: "default:odos-v2", adapter: "0x4Ff90F32aceD08b3e3257B018EA495Fd1Bfe4455", fee: "0x5729af83240EFecAa18eafaAE82961c2DD045Dbe" }, sushiswap: { type: "default:sushi", router: "0xAC4c6e212A361c968F1725b4d055b47E63F80b75", adapter: "0x3Ee50D79e6D0205f325928AAFb041b63E1767Bc5", fee: "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc" } } },
2197
2197
  43114: { dex: { blackhole: { type: "default:kyber-v2", adapter: "0x426ec4bc0d58B80959CDE77576a1942dd40592Fa", fee: "0x7f8B62520D9B5DA0ED517cc36e8dcb2a356f1928" }, pangolin: { type: "default:kyber-v2", adapter: "0xd7D9CAA2910f49F37AC3447f5cAd27153944354A", fee: "0xde92da99D188Ceb54A11ec711EF52D808A6260B5" } } },
2198
2198
  59144: { dex: { lynex: { type: "default:openocean", adapter: "0x4FF6A97A67fe395212f168f011D71fE79E4396f2", fee: "0xcb36ed1B1BfAD8F7FC9651f52d21f04A68677423" } } },
2199
2199
  80094: { dex: { kodiak: { type: "default:kodiak", adapter: "0xBbaa527Aac00b1Ee9A3909D4D8c4447630E29B1F", fee: "0xBA47Ec15aFbCF6e7e9F52900632049530bB6bAe4" } } },
2200
2200
  747474: { dex: { sushiswap: { type: "default:sushi", router: "0xAC4c6e212A361c968F1725b4d055b47E63F80b75", adapter: "0x3Ee50D79e6D0205f325928AAFb041b63E1767Bc5", fee: "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc" } } },
2201
- "*": { wm: "0x0005d5cE0dB57e5BE3b2b8b6FeB75f0ccd015000", repermit: "0x00002a9C4D9497df5Bd31768eC5d30eEf5405000", cosigner: "0x000ECFa392ecDEfEE6e2a5C095d39B7A32f1E000", reactor: "0x000000b33fE4fB9d999Dd684F79b110731c3d000", executor: "0x000642A0966d9bd49870D9519f76b5cf823f3000", refinery: "0x000E474c0D7084EAA35A501035E73269f4b009A5", salt: { wm: "0xc9b46eae42dfeba3222a0315bf682f33cd5cc9d60c9625642e88406f8415f152", repermit: "0x4871dc9008e605821ea9677b65ea2a60ffb774afb31e0dcaea2e192880096be7", cosigner: "0x1117fe6f4e25c9380d10b2b3314a1e9b33e5f65ba0e55e0c63d0640db0dd60a2", reactor: "0xec73677f3a465a9755d4c9eab9509b59a24613fdb8b78719682930373e9876f5", executor: "0x9abc67d936f79e493f1f14050c2f6adb87ec208ff7aaae2e7ae788a7cb4796d7", refinery: "0x9746de29f1dd31b2c8460d71e92a7aefa34911130e61f274f37776e598c48bec" } }
2201
+ "*": { wm: "0x0005d5cE0dB57e5BE3b2b8b6FeB75f0ccd015000", repermit: "0x00002a9C4D9497df5Bd31768eC5d30eEf5405000", cosigner: "0x0007ec53404c423C935e830ec21903e184690000", reactor: "0x0006a959430e8fBB858D81B2D1140B0ae5c26001", executor: "0x000eBA869d76C618ddc4A6D685A0820A620Ce002", refinery: "0x000E474c0D7084EAA35A501035E73269f4b009A5", salt: { wm: "0xc9b46eae42dfeba3222a0315bf682f33cd5cc9d60c9625642e88406f8415f152", repermit: "0x4871dc9008e605821ea9677b65ea2a60ffb774afb31e0dcaea2e192880096be7", cosigner: "0x37576f2ac1d2a602f00777611edf6f0cbc27611b0980b29bc7856fa79b2b8073", reactor: "0x034169222370f2fd587ef8998082d762cceef58a272330215f5110ec0d76d400", executor: "0xea139bc421fa5e272bed3db74233b2e02077e0aacf8b855f87961e98f2fb467f", refinery: "0x9746de29f1dd31b2c8460d71e92a7aefa34911130e61f274f37776e598c48bec" } }
2202
2202
  };
2203
2203
  var ud, Gm;
2204
2204
  function hw() {
@@ -2210,17 +2210,13 @@ function hw() {
2210
2210
  reactor: t("OrderReactor"),
2211
2211
  executor: t("Executor"),
2212
2212
  refinery: t("Refinery"),
2213
- settler: t("Settler"),
2214
2213
  adapter: t("DefaultDexAdapter")
2215
2214
  });
2216
2215
  function n(s, a) {
2217
- if (!s) return;
2216
+ if (!s || !(a != null && a.trim())) return;
2218
2217
  const { dex: o, ...i } = e["*"] ?? {}, c = e[s];
2219
2218
  if (!c) return;
2220
- const { dex: l, ...u } = c;
2221
- if (!(a != null && a.trim()))
2222
- return { ...i, ...u };
2223
- const d = l == null ? void 0 : l[a];
2219
+ const { dex: l, ...u } = c, d = l == null ? void 0 : l[a];
2224
2220
  if (d)
2225
2221
  return { ...i, ...u, ...d };
2226
2222
  }
@@ -2495,37 +2491,38 @@ const bw = (e, t, r) => {
2495
2491
  dstMinAmountPerTrade: l = "0",
2496
2492
  triggerAmountPerTrade: u = "0",
2497
2493
  config: d,
2498
- module: f
2494
+ module: f,
2495
+ feePercentage: m
2499
2496
  }) => {
2500
- const { nonce: m, epoch: b, deadline: g, freshness: E } = Cb(
2497
+ const { nonce: b, epoch: g, deadline: E, freshness: v } = Cb(
2501
2498
  a,
2502
2499
  s
2503
- ), v = Math.floor(Date.now() / 1e3).toString(), w = l, A = f === xe.STOP_LOSS ? u : "0", C = f === xe.TAKE_PROFIT ? u : "0", F = {
2500
+ ), w = Math.floor(Date.now() / 1e3).toString(), A = l, C = m * 100, F = f === xe.STOP_LOSS ? u : "0", R = f === xe.TAKE_PROFIT ? u : "0", S = {
2504
2501
  permitted: {
2505
2502
  token: t,
2506
2503
  amount: n
2507
2504
  },
2508
2505
  spender: d.reactor,
2509
- nonce: m,
2510
- deadline: g,
2506
+ nonce: b,
2507
+ deadline: E,
2511
2508
  witness: {
2512
2509
  reactor: d.reactor,
2513
2510
  executor: d.executor,
2514
2511
  exchange: {
2515
2512
  adapter: d.adapter,
2516
2513
  ref: d.fee,
2517
- share: 0,
2514
+ share: C,
2518
2515
  data: "0x"
2519
2516
  },
2520
2517
  swapper: i,
2521
- nonce: m,
2522
- start: v,
2523
- deadline: g,
2518
+ nonce: b,
2519
+ start: w,
2520
+ deadline: E,
2524
2521
  chainid: e,
2525
2522
  exclusivity: 0,
2526
- epoch: b,
2523
+ epoch: g,
2527
2524
  slippage: o,
2528
- freshness: E,
2525
+ freshness: v,
2529
2526
  input: {
2530
2527
  token: t,
2531
2528
  amount: c,
@@ -2533,9 +2530,9 @@ const bw = (e, t, r) => {
2533
2530
  },
2534
2531
  output: {
2535
2532
  token: r,
2536
- limit: z(w || 0).toFixed(),
2537
- triggerLower: z(A || 0).toFixed(),
2538
- triggerUpper: z(C || 0).toFixed(),
2533
+ limit: z(A || 0).toFixed(),
2534
+ triggerLower: z(F || 0).toFixed(),
2535
+ triggerUpper: z(R || 0).toFixed(),
2539
2536
  recipient: i
2540
2537
  }
2541
2538
  }
@@ -2547,11 +2544,11 @@ const bw = (e, t, r) => {
2547
2544
  chainId: e,
2548
2545
  verifyingContract: d.repermit
2549
2546
  },
2550
- order: F,
2547
+ order: S,
2551
2548
  types: iw,
2552
2549
  primaryType: wb
2553
2550
  };
2554
- }, zw = (e) => iu() ? Lw(e) : Nw(e), $w = "1.9.4", Hw = {
2551
+ }, zw = (e) => iu() ? Lw(e) : Nw(e), $w = "1.10.0", Hw = {
2555
2552
  version: $w
2556
2553
  }, Gw = 0.7, jw = `https://bi.orbs.network/putes/twap-ui-${Gw}`, Tb = Hw.version;
2557
2554
  let cp = "unknown";
@@ -3239,7 +3236,7 @@ const p3 = async ({
3239
3236
  }) => (await Promise.all([
3240
3237
  s ? p3({ chainId: r, signal: e, page: t, limit: n, filters: { accounts: [a], configs: s.twapConfig ? [s.twapConfig] : [] } }) : Promise.resolve([]),
3241
3238
  n3({ chainId: r, signal: e, account: a, exchange: s == null ? void 0 : s.adapter })
3242
- ]).then(([c, l]) => [...c, ...l])).sort((c, l) => l.createdAt - c.createdAt), b3 = "0.0.101", y3 = {
3239
+ ]).then(([c, l]) => [...c, ...l])).sort((c, l) => l.createdAt - c.createdAt), b3 = "0.0.103", y3 = {
3243
3240
  version: b3
3244
3241
  };
3245
3242
  var vo = class {
@@ -3828,12 +3825,12 @@ var Ws, cb, Db = (cb = class {
3828
3825
  });
3829
3826
  }, a = () => {
3830
3827
  const C = Bb(this.options, r), R = (() => {
3831
- const P = {
3828
+ const S = {
3832
3829
  client: M(this, Ks),
3833
3830
  queryKey: this.queryKey,
3834
3831
  meta: this.meta
3835
3832
  };
3836
- return s(P), P;
3833
+ return s(S), S;
3837
3834
  })();
3838
3835
  return X(this, Ys, !1), this.options.persister ? this.options.persister(
3839
3836
  C,
@@ -4321,7 +4318,7 @@ function eh(e) {
4321
4318
  return Promise.reject();
4322
4319
  if (C == null && A.pages.length)
4323
4320
  return Promise.resolve(A);
4324
- const P = (() => {
4321
+ const S = (() => {
4325
4322
  const T = {
4326
4323
  client: t.client,
4327
4324
  queryKey: t.queryKey,
@@ -4330,7 +4327,7 @@ function eh(e) {
4330
4327
  meta: t.options.meta
4331
4328
  };
4332
4329
  return E(T), T;
4333
- })(), h = await v(P), { maxPages: y } = t.options, x = F ? T3 : C3;
4330
+ })(), h = await v(S), { maxPages: y } = t.options, x = F ? T3 : C3;
4334
4331
  return {
4335
4332
  pages: x(A.pages, h, y),
4336
4333
  pageParams: x(A.pageParams, C, y)
@@ -4422,7 +4419,7 @@ var Ji, nn, jt, Js, sn, ss, db, M3 = (db = class extends Db {
4422
4419
  this.execute(this.state.variables);
4423
4420
  }
4424
4421
  async execute(t) {
4425
- var o, i, c, l, u, d, f, m, b, g, E, v, w, A, C, F, R, P, h, y;
4422
+ var o, i, c, l, u, d, f, m, b, g, E, v, w, A, C, F, R, S, h, y;
4426
4423
  const r = () => {
4427
4424
  Se(this, sn, ss).call(this, { type: "continue" });
4428
4425
  }, n = {
@@ -4512,7 +4509,7 @@ var Ji, nn, jt, Js, sn, ss, db, M3 = (db = class extends Db {
4512
4509
  t,
4513
4510
  this.state.context,
4514
4511
  n
4515
- )), await ((P = (R = M(this, jt).config).onSettled) == null ? void 0 : P.call(
4512
+ )), await ((S = (R = M(this, jt).config).onSettled) == null ? void 0 : S.call(
4516
4513
  R,
4517
4514
  void 0,
4518
4515
  x,
@@ -9821,12 +9818,12 @@ class Hy extends zy {
9821
9818
  for (let A = 0; A < 16; A++, r += 4)
9822
9819
  rs[A] = t.getUint32(r), ns[A] = t.getUint32(r += 4);
9823
9820
  for (let A = 16; A < 80; A++) {
9824
- const C = rs[A - 15] | 0, F = ns[A - 15] | 0, R = Ta(C, F, 1) ^ Ta(C, F, 8) ^ xh(C, F, 7), P = Aa(C, F, 1) ^ Aa(C, F, 8) ^ wh(C, F, 7), h = rs[A - 2] | 0, y = ns[A - 2] | 0, x = Ta(h, y, 19) ^ Hc(h, y, 61) ^ xh(h, y, 6), T = Aa(h, y, 19) ^ Gc(h, y, 61) ^ wh(h, y, 6), I = Hv(P, T, ns[A - 7], ns[A - 16]), B = Gv(I, R, x, rs[A - 7], rs[A - 16]);
9821
+ const C = rs[A - 15] | 0, F = ns[A - 15] | 0, R = Ta(C, F, 1) ^ Ta(C, F, 8) ^ xh(C, F, 7), S = Aa(C, F, 1) ^ Aa(C, F, 8) ^ wh(C, F, 7), h = rs[A - 2] | 0, y = ns[A - 2] | 0, x = Ta(h, y, 19) ^ Hc(h, y, 61) ^ xh(h, y, 6), T = Aa(h, y, 19) ^ Gc(h, y, 61) ^ wh(h, y, 6), I = Hv(S, T, ns[A - 7], ns[A - 16]), B = Gv(I, R, x, rs[A - 7], rs[A - 16]);
9825
9822
  rs[A] = B | 0, ns[A] = I | 0;
9826
9823
  }
9827
9824
  let { Ah: n, Al: s, Bh: a, Bl: o, Ch: i, Cl: c, Dh: l, Dl: u, Eh: d, El: f, Fh: m, Fl: b, Gh: g, Gl: E, Hh: v, Hl: w } = this;
9828
9825
  for (let A = 0; A < 80; A++) {
9829
- const C = Ta(d, f, 14) ^ Ta(d, f, 18) ^ Hc(d, f, 41), F = Aa(d, f, 14) ^ Aa(d, f, 18) ^ Gc(d, f, 41), R = d & m ^ ~d & g, P = f & b ^ ~f & E, h = jv(w, F, P, Ck[A], ns[A]), y = Vv(h, v, C, R, kk[A], rs[A]), x = h | 0, T = Ta(n, s, 28) ^ Hc(n, s, 34) ^ Hc(n, s, 39), I = Aa(n, s, 28) ^ Gc(n, s, 34) ^ Gc(n, s, 39), B = n & a ^ n & i ^ a & i, _ = s & o ^ s & c ^ o & c;
9826
+ const C = Ta(d, f, 14) ^ Ta(d, f, 18) ^ Hc(d, f, 41), F = Aa(d, f, 14) ^ Aa(d, f, 18) ^ Gc(d, f, 41), R = d & m ^ ~d & g, S = f & b ^ ~f & E, h = jv(w, F, S, Ck[A], ns[A]), y = Vv(h, v, C, R, kk[A], rs[A]), x = h | 0, T = Ta(n, s, 28) ^ Hc(n, s, 34) ^ Hc(n, s, 39), I = Aa(n, s, 28) ^ Gc(n, s, 34) ^ Gc(n, s, 39), B = n & a ^ n & i ^ a & i, _ = s & o ^ s & c ^ o & c;
9830
9827
  v = g | 0, w = E | 0, g = m | 0, E = b | 0, m = d | 0, b = f | 0, { h: d, l: f } = kn(l | 0, u | 0, y | 0, x | 0), l = i | 0, u = c | 0, i = a | 0, c = o | 0, a = n | 0, o = s | 0;
9831
9828
  const k = zv(x, I, _);
9832
9829
  n = $v(k, y, T, B), s = k | 0;
@@ -9977,7 +9974,7 @@ async function s0(e, t) {
9977
9974
  });
9978
9975
  })();
9979
9976
  bn(t);
9980
- const F = (y = (h = a == null ? void 0 : a.formatters) == null ? void 0 : h.transactionRequest) == null ? void 0 : y.format, P = (F || Xr)({
9977
+ const F = (y = (h = a == null ? void 0 : a.formatters) == null ? void 0 : h.transactionRequest) == null ? void 0 : y.format, S = (F || Xr)({
9981
9978
  // Pick out extra data that might exist on the chain's transaction request type.
9982
9979
  ...ga(A, { format: F }),
9983
9980
  account: r ? Je(r) : void 0,
@@ -9999,10 +9996,10 @@ async function s0(e, t) {
9999
9996
  try {
10000
9997
  const B = await e.request({
10001
9998
  method: "eth_fillTransaction",
10002
- params: [P]
9999
+ params: [S]
10003
10000
  }), k = (((T = (x = a == null ? void 0 : a.formatters) == null ? void 0 : x.transaction) == null ? void 0 : T.format) || xa)(B.tx);
10004
10001
  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);
10005
- const S = await (async () => {
10002
+ const P = await (async () => {
10006
10003
  var L, H;
10007
10004
  if (typeof ((L = a == null ? void 0 : a.fees) == null ? void 0 : L.baseFeeMultiplier) == "function") {
10008
10005
  const Z = await se(e, zr, "getBlock")({});
@@ -10014,13 +10011,13 @@ async function s0(e, t) {
10014
10011
  }
10015
10012
  return ((H = a == null ? void 0 : a.fees) == null ? void 0 : H.baseFeeMultiplier) ?? 1.2;
10016
10013
  })();
10017
- if (S < 1)
10014
+ if (P < 1)
10018
10015
  throw new My();
10019
- const U = 10 ** (((I = S.toString().split(".")[1]) == null ? void 0 : I.length) ?? 0), N = (L) => L * BigInt(Math.ceil(S * U)) / BigInt(U);
10016
+ const U = 10 ** (((I = P.toString().split(".")[1]) == null ? void 0 : I.length) ?? 0), N = (L) => L * BigInt(Math.ceil(P * U)) / BigInt(U);
10020
10017
  return k.maxFeePerGas && !t.maxFeePerGas && (k.maxFeePerGas = N(k.maxFeePerGas)), k.gasPrice && !t.gasPrice && (k.gasPrice = N(k.gasPrice)), {
10021
10018
  raw: B.raw,
10022
10019
  transaction: {
10023
- from: P.from,
10020
+ from: S.from,
10024
10021
  ...k
10025
10022
  }
10026
10023
  };
@@ -10062,22 +10059,22 @@ async function dc(e, t) {
10062
10059
  const u = n && Je(n);
10063
10060
  let d = r.nonce;
10064
10061
  if (o.includes("nonce") && typeof d > "u" && u && a) {
10065
- const P = await l();
10062
+ const S = await l();
10066
10063
  d = await a.consume({
10067
10064
  address: u.address,
10068
- chainId: P,
10065
+ chainId: S,
10069
10066
  client: e
10070
10067
  });
10071
10068
  }
10072
10069
  i != null && i.fn && ((C = i.runAt) != null && C.includes("beforeFillTransaction")) && (r = await i.fn({ ...r, chain: s }, {
10073
10070
  phase: "beforeFillTransaction"
10074
10071
  }), d ?? (d = r.nonce));
10075
- const m = ((o.includes("blobVersionedHashes") || o.includes("sidecars")) && r.kzg && r.blobs || gd.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, s0, "fillTransaction")({ ...r, nonce: d }).then((P) => {
10076
- const { chainId: h, from: y, gas: x, gasPrice: T, nonce: I, maxFeePerBlobGas: B, maxFeePerGas: _, maxPriorityFeePerGas: k, type: S, ...O } = P.transaction;
10072
+ const m = ((o.includes("blobVersionedHashes") || o.includes("sidecars")) && r.kzg && r.blobs || gd.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, s0, "fillTransaction")({ ...r, nonce: d }).then((S) => {
10073
+ const { chainId: h, from: y, gas: x, gasPrice: T, nonce: I, maxFeePerBlobGas: B, maxFeePerGas: _, maxPriorityFeePerGas: k, type: P, ...O } = S.transaction;
10077
10074
  return gd.set(e.uid, !0), {
10078
10075
  ...r,
10079
10076
  ...y ? { from: y } : {},
10080
- ...S ? { type: S } : {},
10077
+ ...P ? { type: P } : {},
10081
10078
  ...typeof h < "u" ? { chainId: h } : {},
10082
10079
  ...typeof x < "u" ? { gas: x } : {},
10083
10080
  ...typeof T < "u" ? { gasPrice: T } : {},
@@ -10087,9 +10084,9 @@ async function dc(e, t) {
10087
10084
  ...typeof k < "u" ? { maxPriorityFeePerGas: k } : {},
10088
10085
  ..."nonceKey" in O && typeof O.nonceKey < "u" ? { nonceKey: O.nonceKey } : {}
10089
10086
  };
10090
- }).catch((P) => {
10087
+ }).catch((S) => {
10091
10088
  var x;
10092
- const h = P;
10089
+ const h = S;
10093
10090
  return h.name !== "TransactionExecutionError" || ((x = h.walk) == null ? void 0 : x.call(h, (T) => {
10094
10091
  const I = T;
10095
10092
  return I.name === "MethodNotFoundRpcError" || I.name === "MethodNotSupportedRpcError";
@@ -10112,18 +10109,18 @@ async function dc(e, t) {
10112
10109
  address: u.address,
10113
10110
  blockTag: "pending"
10114
10111
  })), (o.includes("blobVersionedHashes") || o.includes("sidecars")) && b && E) {
10115
- const P = Jf({ blobs: b, kzg: E });
10112
+ const S = Jf({ blobs: b, kzg: E });
10116
10113
  if (o.includes("blobVersionedHashes")) {
10117
10114
  const h = Vy({
10118
- commitments: P,
10115
+ commitments: S,
10119
10116
  to: "hex"
10120
10117
  });
10121
10118
  r.blobVersionedHashes = h;
10122
10119
  }
10123
10120
  if (o.includes("sidecars")) {
10124
- const h = e0({ blobs: b, commitments: P, kzg: E }), y = Zy({
10121
+ const h = e0({ blobs: b, commitments: S, kzg: E }), y = Zy({
10125
10122
  blobs: b,
10126
- commitments: P,
10123
+ commitments: S,
10127
10124
  proofs: h,
10128
10125
  to: "hex"
10129
10126
  });
@@ -10134,18 +10131,18 @@ async function dc(e, t) {
10134
10131
  try {
10135
10132
  r.type = n0(r);
10136
10133
  } catch {
10137
- let P = _h.get(e.uid);
10138
- if (typeof P > "u") {
10134
+ let S = _h.get(e.uid);
10135
+ if (typeof S > "u") {
10139
10136
  const h = await A();
10140
- P = typeof (h == null ? void 0 : h.baseFeePerGas) == "bigint", _h.set(e.uid, P);
10137
+ S = typeof (h == null ? void 0 : h.baseFeePerGas) == "bigint", _h.set(e.uid, S);
10141
10138
  }
10142
- r.type = P ? "eip1559" : "legacy";
10139
+ r.type = S ? "eip1559" : "legacy";
10143
10140
  }
10144
10141
  if (o.includes("fees"))
10145
10142
  if (r.type !== "legacy" && r.type !== "eip2930") {
10146
10143
  if (typeof r.maxFeePerGas > "u" || typeof r.maxPriorityFeePerGas > "u") {
10147
- const P = await A(), { maxFeePerGas: h, maxPriorityFeePerGas: y } = await Hp(e, {
10148
- block: P,
10144
+ const S = await A(), { maxFeePerGas: h, maxPriorityFeePerGas: y } = await Hp(e, {
10145
+ block: S,
10149
10146
  chain: s,
10150
10147
  request: r
10151
10148
  });
@@ -10159,8 +10156,8 @@ async function dc(e, t) {
10159
10156
  if (typeof r.maxFeePerGas < "u" || typeof r.maxPriorityFeePerGas < "u")
10160
10157
  throw new Kf();
10161
10158
  if (typeof r.gasPrice > "u") {
10162
- const P = await A(), { gasPrice: h } = await Hp(e, {
10163
- block: P,
10159
+ const S = await A(), { gasPrice: h } = await Hp(e, {
10160
+ block: S,
10164
10161
  chain: s,
10165
10162
  request: r,
10166
10163
  type: "legacy"
@@ -10194,7 +10191,7 @@ async function o0(e, t) {
10194
10191
  }).catch(() => {
10195
10192
  throw new $("`to` is required. Could not infer from `authorizationList`");
10196
10193
  });
10197
- })(), { accessList: u, authorizationList: d, blobs: f, blobVersionedHashes: m, blockNumber: b, blockTag: g, data: E, gas: v, gasPrice: w, maxFeePerBlobGas: A, maxFeePerGas: C, maxPriorityFeePerGas: F, nonce: R, value: P, stateOverride: h, ...y } = n ? await dc(e, {
10194
+ })(), { accessList: u, authorizationList: d, blobs: f, blobVersionedHashes: m, blockNumber: b, blockTag: g, data: E, gas: v, gasPrice: w, maxFeePerBlobGas: A, maxFeePerGas: C, maxPriorityFeePerGas: F, nonce: R, value: S, stateOverride: h, ...y } = n ? await dc(e, {
10198
10195
  ...t,
10199
10196
  parameters: a,
10200
10197
  to: l
@@ -10218,7 +10215,7 @@ async function o0(e, t) {
10218
10215
  maxPriorityFeePerGas: F,
10219
10216
  nonce: R,
10220
10217
  to: l,
10221
- value: P
10218
+ value: S
10222
10219
  }, "estimateGas");
10223
10220
  return BigInt(await e.request({
10224
10221
  method: "eth_estimateGas",
@@ -11843,8 +11840,8 @@ function wg({ fn: e, id: t, shouldSplitBatch: r, wait: n = 0, sort: s }) {
11843
11840
  };
11844
11841
  }
11845
11842
  async function Au(e, t) {
11846
- var B, _, k, S;
11847
- 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: b, gasPrice: g, maxFeePerBlobGas: E, maxFeePerGas: v, maxPriorityFeePerGas: w, nonce: A, to: C, value: F, stateOverride: R, ...P } = t, h = r ? Je(r) : void 0;
11843
+ var B, _, k, P;
11844
+ 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: b, gasPrice: g, maxFeePerBlobGas: E, maxFeePerGas: v, maxPriorityFeePerGas: w, nonce: A, to: C, value: F, stateOverride: R, ...S } = t, h = r ? Je(r) : void 0;
11848
11845
  if (u && (f || m))
11849
11846
  throw new $("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
11850
11847
  if (u && C)
@@ -11860,9 +11857,9 @@ async function Au(e, t) {
11860
11857
  }) : d;
11861
11858
  try {
11862
11859
  bn(t);
11863
- const U = (typeof a == "bigint" ? V(a) : void 0) || o, N = l ? fg(l) : void 0, L = qf(R), H = (S = (k = (_ = e.chain) == null ? void 0 : _.formatters) == null ? void 0 : k.transactionRequest) == null ? void 0 : S.format, fe = (H || Xr)({
11860
+ const U = (typeof a == "bigint" ? V(a) : void 0) || o, N = l ? fg(l) : void 0, L = qf(R), H = (P = (k = (_ = e.chain) == null ? void 0 : _.formatters) == null ? void 0 : k.transactionRequest) == null ? void 0 : P.format, fe = (H || Xr)({
11864
11861
  // Pick out extra data that might exist on the chain's transaction request type.
11865
- ...ga(P, { format: H }),
11862
+ ...ga(S, { format: H }),
11866
11863
  accessList: i,
11867
11864
  account: h,
11868
11865
  authorizationList: n,
@@ -11900,7 +11897,7 @@ async function Au(e, t) {
11900
11897
  });
11901
11898
  return ie === "0x" ? { data: void 0 } : { data: ie };
11902
11899
  } catch (O) {
11903
- const U = C7(O), { offchainLookup: N, offchainLookupSignature: L } = await import("./ccip-DSaknsOX.js");
11900
+ const U = C7(O), { offchainLookup: N, offchainLookupSignature: L } = await import("./ccip-CoUpV1TR.js");
11904
11901
  if (e.ccipRead !== !1 && (U == null ? void 0 : U.slice(0, 10)) === L && C)
11905
11902
  return { data: await N(e, { data: U, to: C }) };
11906
11903
  throw T && (U == null ? void 0 : U.slice(0, 10)) === "0x101bb98d" ? new JE({ factory: f }) : m0(O, {
@@ -12184,7 +12181,7 @@ function U7(e, t) {
12184
12181
  i !== void 0 && (A = i - 1n);
12185
12182
  let C, F = !1;
12186
12183
  const R = So(async () => {
12187
- var P;
12184
+ var S;
12188
12185
  if (!F) {
12189
12186
  try {
12190
12187
  C = await se(e, Cy, "createContractEventFilter")({
@@ -12224,7 +12221,7 @@ function U7(e, t) {
12224
12221
  for (const y of h)
12225
12222
  w.onLogs([y]);
12226
12223
  } catch (h) {
12227
- C && h instanceof Es && (F = !1), (P = w.onError) == null || P.call(w, h);
12224
+ C && h instanceof Es && (F = !1), (S = w.onError) == null || S.call(w, h);
12228
12225
  }
12229
12226
  }, {
12230
12227
  emitOnBegin: !0,
@@ -12258,7 +12255,7 @@ function U7(e, t) {
12258
12255
  abi: r,
12259
12256
  eventName: o,
12260
12257
  args: s
12261
- }) : [], { unsubscribe: P } = await F.subscribe({
12258
+ }) : [], { unsubscribe: S } = await F.subscribe({
12262
12259
  params: ["logs", { address: n, topics: R }],
12263
12260
  onData(h) {
12264
12261
  var x;
@@ -12295,7 +12292,7 @@ function U7(e, t) {
12295
12292
  (y = C.onError) == null || y.call(C, h);
12296
12293
  }
12297
12294
  });
12298
- A = P, w || A();
12295
+ A = S, w || A();
12299
12296
  } catch (F) {
12300
12297
  c == null || c(F);
12301
12298
  }
@@ -12358,9 +12355,9 @@ async function Iu(e, t) {
12358
12355
  });
12359
12356
  })();
12360
12357
  if ((v == null ? void 0 : v.type) === "json-rpc" || v === null) {
12361
- let P;
12362
- n !== null && (P = await se(e, Ps, "getChainId")({}), b0({
12363
- currentChainId: P,
12358
+ let S;
12359
+ n !== null && (S = await se(e, Ps, "getChainId")({}), b0({
12360
+ currentChainId: S,
12364
12361
  chain: n
12365
12362
  }));
12366
12363
  const h = (C = (A = (w = e.chain) == null ? void 0 : w.formatters) == null ? void 0 : A.transactionRequest) == null ? void 0 : C.format, x = (h || Xr)({
@@ -12370,7 +12367,7 @@ async function Iu(e, t) {
12370
12367
  account: v,
12371
12368
  authorizationList: a,
12372
12369
  blobs: o,
12373
- chainId: P,
12370
+ chainId: S,
12374
12371
  data: i,
12375
12372
  gas: c,
12376
12373
  gasPrice: l,
@@ -12396,14 +12393,14 @@ async function Iu(e, t) {
12396
12393
  method: "wallet_sendTransaction",
12397
12394
  params: [x]
12398
12395
  }, { retryCount: 0 }).then((k) => (Td.set(e.uid, !0), k)).catch((k) => {
12399
- const S = k;
12400
- throw S.name === "MethodNotFoundRpcError" || S.name === "MethodNotSupportedRpcError" ? (Td.set(e.uid, !1), _) : S;
12396
+ const P = k;
12397
+ throw P.name === "MethodNotFoundRpcError" || P.name === "MethodNotSupportedRpcError" ? (Td.set(e.uid, !1), _) : P;
12401
12398
  });
12402
12399
  throw _;
12403
12400
  }
12404
12401
  }
12405
12402
  if ((v == null ? void 0 : v.type) === "local") {
12406
- const P = await se(e, dc, "prepareTransactionRequest")({
12403
+ const S = await se(e, dc, "prepareTransactionRequest")({
12407
12404
  account: v,
12408
12405
  accessList: s,
12409
12406
  authorizationList: a,
@@ -12422,7 +12419,7 @@ async function Iu(e, t) {
12422
12419
  value: g,
12423
12420
  ...E,
12424
12421
  to: R
12425
- }), h = (F = n == null ? void 0 : n.serializers) == null ? void 0 : F.transaction, y = await v.signTransaction(P, {
12422
+ }), h = (F = n == null ? void 0 : n.serializers) == null ? void 0 : F.transaction, y = await v.signTransaction(S, {
12426
12423
  serializer: h
12427
12424
  });
12428
12425
  return await se(e, y0, "sendRawTransaction")({
@@ -12733,8 +12730,8 @@ function Ig(e) {
12733
12730
  function w(A) {
12734
12731
  return (C) => {
12735
12732
  const F = C(A);
12736
- for (const P in v)
12737
- delete F[P];
12733
+ for (const S in v)
12734
+ delete F[S];
12738
12735
  const R = { ...A, ...F };
12739
12736
  return Object.assign(R, { extend: w(R) });
12740
12737
  };
@@ -13237,7 +13234,7 @@ async function Dg(e, t) {
13237
13234
  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, ...b } = t, g = r ? Je(r) : void 0;
13238
13235
  try {
13239
13236
  bn(t);
13240
- const C = (typeof n == "bigint" ? V(n) : void 0) || s, F = (w = (v = (E = e.chain) == null ? void 0 : E.formatters) == null ? void 0 : v.transactionRequest) == null ? void 0 : w.format, P = (F || Xr)({
13237
+ const C = (typeof n == "bigint" ? V(n) : void 0) || s, F = (w = (v = (E = e.chain) == null ? void 0 : E.formatters) == null ? void 0 : v.transactionRequest) == null ? void 0 : w.format, S = (F || Xr)({
13241
13238
  // Pick out extra data that might exist on the chain's transaction request type.
13242
13239
  ...ga(b, { format: F }),
13243
13240
  account: g,
@@ -13252,7 +13249,7 @@ async function Dg(e, t) {
13252
13249
  value: m
13253
13250
  }, "createAccessList"), h = await e.request({
13254
13251
  method: "eth_createAccessList",
13255
- params: [P, C]
13252
+ params: [S, C]
13256
13253
  });
13257
13254
  return {
13258
13255
  accessList: h.accessList,
@@ -15667,8 +15664,8 @@ function Z9(e) {
15667
15664
  return { x: F, y: R };
15668
15665
  });
15669
15666
  function o(A) {
15670
- const { a: C, b: F } = t, R = r.sqr(A), P = r.mul(R, A);
15671
- return r.add(r.add(P, r.mul(A, C)), F);
15667
+ const { a: C, b: F } = t, R = r.sqr(A), S = r.mul(R, A);
15668
+ return r.add(r.add(S, r.mul(A, C)), F);
15672
15669
  }
15673
15670
  function i(A, C) {
15674
15671
  const F = r.sqr(C), R = o(A);
@@ -15683,7 +15680,7 @@ function Z9(e) {
15683
15680
  return d0(A, Ft, t.n);
15684
15681
  }
15685
15682
  function d(A) {
15686
- const { allowedPrivateKeyLengths: C, nByteLength: F, wrapPrivateKey: R, n: P } = t;
15683
+ const { allowedPrivateKeyLengths: C, nByteLength: F, wrapPrivateKey: R, n: S } = t;
15687
15684
  if (C && typeof A != "bigint") {
15688
15685
  if (fc(A) && (A = Oi(A)), typeof A != "string" || !C.includes(A.length))
15689
15686
  throw new Error("invalid private key");
@@ -15695,19 +15692,19 @@ function Z9(e) {
15695
15692
  } catch {
15696
15693
  throw new Error("invalid private key, expected hex or " + F + " bytes, got " + typeof A);
15697
15694
  }
15698
- return R && (h = er(h, P)), Ha("private key", h, Ft, P), h;
15695
+ return R && (h = er(h, S)), Ha("private key", h, Ft, S), h;
15699
15696
  }
15700
15697
  function f(A) {
15701
15698
  if (!(A instanceof g))
15702
15699
  throw new Error("ProjectivePoint expected");
15703
15700
  }
15704
15701
  const m = Lh((A, C) => {
15705
- const { px: F, py: R, pz: P } = A;
15706
- if (r.eql(P, r.ONE))
15702
+ const { px: F, py: R, pz: S } = A;
15703
+ if (r.eql(S, r.ONE))
15707
15704
  return { x: F, y: R };
15708
15705
  const h = A.is0();
15709
- C == null && (C = h ? r.ONE : r.inv(P));
15710
- const y = r.mul(F, C), x = r.mul(R, C), T = r.mul(P, C);
15706
+ C == null && (C = h ? r.ONE : r.inv(S));
15707
+ const y = r.mul(F, C), x = r.mul(R, C), T = r.mul(S, C);
15711
15708
  if (h)
15712
15709
  return { x: r.ZERO, y: r.ZERO };
15713
15710
  if (!r.eql(T, r.ONE))
@@ -15746,8 +15743,8 @@ function Z9(e) {
15746
15743
  throw new Error("invalid affine point");
15747
15744
  if (C instanceof g)
15748
15745
  throw new Error("projective point not allowed");
15749
- const P = (h) => r.eql(h, r.ZERO);
15750
- return P(F) && P(R) ? g.ZERO : new g(F, R, r.ONE);
15746
+ const S = (h) => r.eql(h, r.ZERO);
15747
+ return S(F) && S(R) ? g.ZERO : new g(F, R, r.ONE);
15751
15748
  }
15752
15749
  get x() {
15753
15750
  return this.toAffine().x;
@@ -15763,7 +15760,7 @@ function Z9(e) {
15763
15760
  */
15764
15761
  static normalizeZ(C) {
15765
15762
  const F = a6(r, C.map((R) => R.pz));
15766
- return C.map((R, P) => R.toAffine(F[P])).map(g.fromAffine);
15763
+ return C.map((R, S) => R.toAffine(F[S])).map(g.fromAffine);
15767
15764
  }
15768
15765
  /**
15769
15766
  * Converts hash string or Uint8Array to Point.
@@ -15800,7 +15797,7 @@ function Z9(e) {
15800
15797
  */
15801
15798
  equals(C) {
15802
15799
  f(C);
15803
- const { px: F, py: R, pz: P } = this, { px: h, py: y, pz: x } = C, T = r.eql(r.mul(F, x), r.mul(h, P)), I = r.eql(r.mul(R, x), r.mul(y, P));
15800
+ const { px: F, py: R, pz: S } = this, { px: h, py: y, pz: x } = C, T = r.eql(r.mul(F, x), r.mul(h, S)), I = r.eql(r.mul(R, x), r.mul(y, S));
15804
15801
  return T && I;
15805
15802
  }
15806
15803
  /**
@@ -15814,9 +15811,9 @@ function Z9(e) {
15814
15811
  // https://eprint.iacr.org/2015/1060, algorithm 3
15815
15812
  // Cost: 8M + 3S + 3*a + 2*b3 + 15add.
15816
15813
  double() {
15817
- const { a: C, b: F } = t, R = r.mul(F, Dd), { px: P, py: h, pz: y } = this;
15818
- let x = r.ZERO, T = r.ZERO, I = r.ZERO, B = r.mul(P, P), _ = r.mul(h, h), k = r.mul(y, y), S = r.mul(P, h);
15819
- return S = r.add(S, S), I = r.mul(P, y), I = r.add(I, I), x = r.mul(C, I), T = r.mul(R, k), T = r.add(x, T), x = r.sub(_, T), T = r.add(_, T), T = r.mul(x, T), x = r.mul(S, x), I = r.mul(R, I), k = r.mul(C, k), S = r.sub(B, k), S = r.mul(C, S), S = r.add(S, I), I = r.add(B, B), B = r.add(I, B), B = r.add(B, k), B = r.mul(B, S), T = r.add(T, B), k = r.mul(h, y), k = r.add(k, k), B = r.mul(k, S), x = r.sub(x, B), I = r.mul(k, _), I = r.add(I, I), I = r.add(I, I), new g(x, T, I);
15814
+ const { a: C, b: F } = t, R = r.mul(F, Dd), { px: S, py: h, pz: y } = this;
15815
+ let x = r.ZERO, T = r.ZERO, I = r.ZERO, B = r.mul(S, S), _ = r.mul(h, h), k = r.mul(y, y), P = r.mul(S, h);
15816
+ return P = r.add(P, P), I = r.mul(S, y), I = r.add(I, I), x = r.mul(C, I), T = r.mul(R, k), T = r.add(x, T), x = r.sub(_, T), T = r.add(_, T), T = r.mul(x, T), x = r.mul(P, x), I = r.mul(R, 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, y), k = r.add(k, k), B = r.mul(k, P), x = r.sub(x, B), I = r.mul(k, _), I = r.add(I, I), I = r.add(I, I), new g(x, T, I);
15820
15817
  }
15821
15818
  // Renes-Costello-Batina exception-free addition formula.
15822
15819
  // There is 30% faster Jacobian formula, but it is not complete.
@@ -15824,13 +15821,13 @@ function Z9(e) {
15824
15821
  // Cost: 12M + 0S + 3*a + 3*b3 + 23add.
15825
15822
  add(C) {
15826
15823
  f(C);
15827
- const { px: F, py: R, pz: P } = this, { px: h, py: y, pz: x } = C;
15824
+ const { px: F, py: R, pz: S } = this, { px: h, py: y, pz: x } = C;
15828
15825
  let T = r.ZERO, I = r.ZERO, B = r.ZERO;
15829
15826
  const _ = t.a, k = r.mul(t.b, Dd);
15830
- let S = r.mul(F, h), O = r.mul(R, y), U = r.mul(P, x), N = r.add(F, R), L = r.add(h, y);
15831
- N = r.mul(N, L), L = r.add(S, O), N = r.sub(N, L), L = r.add(F, P);
15827
+ let P = r.mul(F, h), O = r.mul(R, y), U = r.mul(S, x), N = r.add(F, R), L = r.add(h, y);
15828
+ N = r.mul(N, L), L = r.add(P, O), N = r.sub(N, L), L = r.add(F, S);
15832
15829
  let H = r.add(h, x);
15833
- return L = r.mul(L, H), H = r.add(S, U), L = r.sub(L, H), H = r.add(R, P), T = r.add(y, x), H = r.mul(H, T), T = r.add(O, U), H = r.sub(H, T), B = r.mul(_, L), T = r.mul(k, U), B = r.add(T, B), T = r.sub(O, B), B = r.add(O, B), I = r.mul(T, B), O = r.add(S, S), O = r.add(O, S), U = r.mul(_, U), L = r.mul(k, L), O = r.add(O, U), U = r.sub(S, U), U = r.mul(_, U), L = r.add(L, U), S = r.mul(O, L), I = r.add(I, S), S = r.mul(H, L), T = r.mul(N, T), T = r.sub(T, S), S = r.mul(N, O), B = r.mul(H, B), B = r.add(B, S), new g(T, I, B);
15830
+ return L = r.mul(L, H), H = r.add(P, U), L = r.sub(L, H), H = r.add(R, S), T = r.add(y, x), H = r.mul(H, T), T = r.add(O, U), H = r.sub(H, T), B = r.mul(_, L), T = r.mul(k, U), B = r.add(T, B), T = r.sub(O, B), B = r.add(O, B), I = r.mul(T, B), O = r.add(P, P), O = r.add(O, P), U = r.mul(_, U), L = r.mul(k, L), O = r.add(O, U), U = r.sub(P, U), U = r.mul(_, U), L = r.add(L, U), P = r.mul(O, L), I = r.add(I, P), P = r.mul(H, L), T = r.mul(N, T), T = r.sub(T, P), P = r.mul(N, O), B = r.mul(H, B), B = r.add(B, P), new g(T, I, B);
15834
15831
  }
15835
15832
  subtract(C) {
15836
15833
  return this.add(C.negate());
@@ -15849,14 +15846,14 @@ function Z9(e) {
15849
15846
  multiplyUnsafe(C) {
15850
15847
  const { endo: F, n: R } = t;
15851
15848
  Ha("scalar", C, _n, R);
15852
- const P = g.ZERO;
15849
+ const S = g.ZERO;
15853
15850
  if (C === _n)
15854
- return P;
15851
+ return S;
15855
15852
  if (this.is0() || C === Ft)
15856
15853
  return this;
15857
15854
  if (!F || w.hasPrecomputes(this))
15858
15855
  return w.wNAFCachedUnsafe(this, C, g.normalizeZ);
15859
- let { k1neg: h, k1: y, k2neg: x, k2: T } = F.splitScalar(C), I = P, B = P, _ = this;
15856
+ let { k1neg: h, k1: y, k2neg: x, k2: T } = F.splitScalar(C), I = S, B = S, _ = this;
15860
15857
  for (; y > _n || T > _n; )
15861
15858
  y & Ft && (I = I.add(_)), T & Ft && (B = B.add(_)), _ = _.double(), y >>= Ft, T >>= Ft;
15862
15859
  return h && (I = I.negate()), x && (B = B.negate()), B = new g(r.mul(B.px, F.beta), B.py, B.pz), I.add(B);
@@ -15873,16 +15870,16 @@ function Z9(e) {
15873
15870
  multiply(C) {
15874
15871
  const { endo: F, n: R } = t;
15875
15872
  Ha("scalar", C, Ft, R);
15876
- let P, h;
15873
+ let S, h;
15877
15874
  if (F) {
15878
15875
  const { k1neg: y, k1: x, k2neg: T, k2: I } = F.splitScalar(C);
15879
- let { p: B, f: _ } = this.wNAF(x), { p: k, f: S } = this.wNAF(I);
15880
- B = w.constTimeNegate(y, B), k = w.constTimeNegate(T, k), k = new g(r.mul(k.px, F.beta), k.py, k.pz), P = B.add(k), h = _.add(S);
15876
+ let { p: B, f: _ } = this.wNAF(x), { p: k, f: P } = this.wNAF(I);
15877
+ B = w.constTimeNegate(y, B), k = w.constTimeNegate(T, k), k = new g(r.mul(k.px, F.beta), k.py, k.pz), S = B.add(k), h = _.add(P);
15881
15878
  } else {
15882
15879
  const { p: y, f: x } = this.wNAF(C);
15883
- P = y, h = x;
15880
+ S = y, h = x;
15884
15881
  }
15885
- return g.normalizeZ([P, h])[0];
15882
+ return g.normalizeZ([S, h])[0];
15886
15883
  }
15887
15884
  /**
15888
15885
  * Efficiently calculate `aP + bQ`. Unsafe, can expose private key, if used incorrectly.
@@ -15891,7 +15888,7 @@ function Z9(e) {
15891
15888
  * @returns non-zero affine point
15892
15889
  */
15893
15890
  multiplyAndAddUnsafe(C, F, R) {
15894
- const P = g.BASE, h = (x, T) => T === _n || T === Ft || !x.equals(P) ? x.multiplyUnsafe(T) : x.multiply(T), y = h(this, F).add(h(C, R));
15891
+ const S = g.BASE, h = (x, T) => T === _n || T === Ft || !x.equals(S) ? x.multiplyUnsafe(T) : x.multiply(T), y = h(this, F).add(h(C, R));
15895
15892
  return y.is0() ? void 0 : y;
15896
15893
  }
15897
15894
  // Converts Projective point to affine (x, y) coordinates.
@@ -15951,13 +15948,13 @@ function Q9(e) {
15951
15948
  }
15952
15949
  const { ProjectivePoint: u, normPrivateKeyToScalar: d, weierstrassEquation: f, isWithinCurveOrder: m } = Z9({
15953
15950
  ...t,
15954
- toBytes(k, S, O) {
15955
- const U = S.toAffine(), N = r.toBytes(U.x), L = Vl;
15956
- return Ui("isCompressed", O), O ? L(Uint8Array.from([S.hasEvenY() ? 2 : 3]), N) : L(Uint8Array.from([4]), N, r.toBytes(U.y));
15951
+ toBytes(k, P, O) {
15952
+ const U = P.toAffine(), N = r.toBytes(U.x), L = Vl;
15953
+ return Ui("isCompressed", O), O ? L(Uint8Array.from([P.hasEvenY() ? 2 : 3]), N) : L(Uint8Array.from([4]), N, r.toBytes(U.y));
15957
15954
  },
15958
15955
  fromBytes(k) {
15959
- const S = k.length, O = k[0], U = k.subarray(1);
15960
- if (S === o && (O === 2 || O === 3)) {
15956
+ const P = k.length, O = k[0], U = k.subarray(1);
15957
+ if (P === o && (O === 2 || O === 3)) {
15961
15958
  const N = ta(U);
15962
15959
  if (!d0(N, Ft, r.ORDER))
15963
15960
  throw new Error("Point is not on curve");
@@ -15971,36 +15968,36 @@ function Q9(e) {
15971
15968
  }
15972
15969
  const Z = (H & Ft) === Ft;
15973
15970
  return (O & 1) === 1 !== Z && (H = r.neg(H)), { x: N, y: H };
15974
- } else if (S === i && O === 4) {
15971
+ } else if (P === i && O === 4) {
15975
15972
  const N = r.fromBytes(U.subarray(0, r.BYTES)), L = r.fromBytes(U.subarray(r.BYTES, 2 * r.BYTES));
15976
15973
  return { x: N, y: L };
15977
15974
  } else {
15978
15975
  const N = o, L = i;
15979
- throw new Error("invalid Point, expected length of " + N + ", or uncompressed " + L + ", got " + S);
15976
+ throw new Error("invalid Point, expected length of " + N + ", or uncompressed " + L + ", got " + P);
15980
15977
  }
15981
15978
  }
15982
15979
  });
15983
15980
  function b(k) {
15984
- const S = n >> Ft;
15985
- return k > S;
15981
+ const P = n >> Ft;
15982
+ return k > P;
15986
15983
  }
15987
15984
  function g(k) {
15988
15985
  return b(k) ? c(-k) : k;
15989
15986
  }
15990
- const E = (k, S, O) => ta(k.slice(S, O));
15987
+ const E = (k, P, O) => ta(k.slice(P, O));
15991
15988
  class v {
15992
- constructor(S, O, U) {
15993
- Ha("r", S, Ft, n), Ha("s", O, Ft, n), this.r = S, this.s = O, U != null && (this.recovery = U), Object.freeze(this);
15989
+ constructor(P, O, U) {
15990
+ Ha("r", P, Ft, n), Ha("s", O, Ft, n), this.r = P, this.s = O, U != null && (this.recovery = U), Object.freeze(this);
15994
15991
  }
15995
15992
  // pair (bytes of r, bytes of s)
15996
- static fromCompact(S) {
15993
+ static fromCompact(P) {
15997
15994
  const O = s;
15998
- return S = Er("compactSignature", S, O * 2), new v(E(S, 0, O), E(S, O, 2 * O));
15995
+ return P = Er("compactSignature", P, O * 2), new v(E(P, 0, O), E(P, O, 2 * O));
15999
15996
  }
16000
15997
  // DER encoded ECDSA signature
16001
15998
  // https://bitcoin.stackexchange.com/questions/57644/what-are-the-parts-of-a-bitcoin-transaction-input-script
16002
- static fromDER(S) {
16003
- const { r: O, s: U } = Bn.toSig(Er("DER", S));
15999
+ static fromDER(P) {
16000
+ const { r: O, s: U } = Bn.toSig(Er("DER", P));
16004
16001
  return new v(O, U);
16005
16002
  }
16006
16003
  /**
@@ -16009,11 +16006,11 @@ function Q9(e) {
16009
16006
  */
16010
16007
  assertValidity() {
16011
16008
  }
16012
- addRecoveryBit(S) {
16013
- return new v(this.r, this.s, S);
16009
+ addRecoveryBit(P) {
16010
+ return new v(this.r, this.s, P);
16014
16011
  }
16015
- recoverPublicKey(S) {
16016
- const { r: O, s: U, recovery: N } = this, L = P(Er("msgHash", S));
16012
+ recoverPublicKey(P) {
16013
+ const { r: O, s: U, recovery: N } = this, L = S(Er("msgHash", P));
16017
16014
  if (N == null || ![0, 1, 2, 3].includes(N))
16018
16015
  throw new Error("recovery id invalid");
16019
16016
  const H = N === 2 || N === 3 ? O + t.n : O;
@@ -16043,8 +16040,8 @@ function Q9(e) {
16043
16040
  return jl(this.toCompactHex());
16044
16041
  }
16045
16042
  toCompactHex() {
16046
- const S = s;
16047
- return Od(this.r, S) + Od(this.s, S);
16043
+ const P = s;
16044
+ return Od(this.r, P) + Od(this.s, P);
16048
16045
  }
16049
16046
  }
16050
16047
  const w = {
@@ -16072,12 +16069,12 @@ function Q9(e) {
16072
16069
  * const fast = utils.precompute(8, ProjectivePoint.fromHex(someonesPubKey));
16073
16070
  * fast.multiply(privKey); // much faster ECDH now
16074
16071
  */
16075
- precompute(k = 8, S = u.BASE) {
16076
- return S._setWindowSize(k), S.multiply(BigInt(3)), S;
16072
+ precompute(k = 8, P = u.BASE) {
16073
+ return P._setWindowSize(k), P.multiply(BigInt(3)), P;
16077
16074
  }
16078
16075
  };
16079
- function A(k, S = !0) {
16080
- return u.fromPrivateKey(k).toRawBytes(S);
16076
+ function A(k, P = !0) {
16077
+ return u.fromPrivateKey(k).toRawBytes(P);
16081
16078
  }
16082
16079
  function C(k) {
16083
16080
  if (typeof k == "bigint")
@@ -16088,31 +16085,31 @@ function Q9(e) {
16088
16085
  if (!(t.allowedPrivateKeyLengths || s === N))
16089
16086
  return O === N || O === L;
16090
16087
  }
16091
- function F(k, S, O = !0) {
16088
+ function F(k, P, O = !0) {
16092
16089
  if (C(k) === !0)
16093
16090
  throw new Error("first arg must be private key");
16094
- if (C(S) === !1)
16091
+ if (C(P) === !1)
16095
16092
  throw new Error("second arg must be public key");
16096
- return u.fromHex(S).multiply(d(k)).toRawBytes(O);
16093
+ return u.fromHex(P).multiply(d(k)).toRawBytes(O);
16097
16094
  }
16098
16095
  const R = t.bits2int || function(k) {
16099
16096
  if (k.length > 8192)
16100
16097
  throw new Error("input is too large");
16101
- const S = ta(k), O = k.length * 8 - a;
16102
- return O > 0 ? S >> BigInt(O) : S;
16103
- }, P = t.bits2int_modN || function(k) {
16098
+ const P = ta(k), O = k.length * 8 - a;
16099
+ return O > 0 ? P >> BigInt(O) : P;
16100
+ }, S = t.bits2int_modN || function(k) {
16104
16101
  return c(R(k));
16105
16102
  }, h = vu(a);
16106
16103
  function y(k) {
16107
16104
  return Ha("num < 2^" + a, k, _n, h), mc(k, s);
16108
16105
  }
16109
- function x(k, S, O = T) {
16106
+ function x(k, P, O = T) {
16110
16107
  if (["recovered", "canonical"].some((ve) => ve in O))
16111
16108
  throw new Error("sign() legacy options not supported");
16112
16109
  const { hash: U, randomBytes: N } = t;
16113
16110
  let { lowS: L, prehash: H, extraEntropy: Z } = O;
16114
16111
  L == null && (L = !0), k = Er("msgHash", k), a1(O), H && (k = Er("prehashed msgHash", U(k)));
16115
- const fe = P(k), ye = d(S), ie = [y(ye), y(fe)];
16112
+ const fe = S(k), ye = d(P), ie = [y(ye), y(fe)];
16116
16113
  if (Z != null && Z !== !1) {
16117
16114
  const ve = Z === !0 ? N(r.BYTES) : Z;
16118
16115
  ie.push(Er("extraEntropy", ve));
@@ -16134,15 +16131,15 @@ function Q9(e) {
16134
16131
  return { seed: pe, k2sig: K };
16135
16132
  }
16136
16133
  const T = { lowS: t.lowS, prehash: !1 }, I = { lowS: t.lowS, prehash: !1 };
16137
- function B(k, S, O = T) {
16138
- const { seed: U, k2sig: N } = x(k, S, O), L = t;
16134
+ function B(k, P, O = T) {
16135
+ const { seed: U, k2sig: N } = x(k, P, O), L = t;
16139
16136
  return Nk(L.hash.outputLen, L.nByteLength, L.hmac)(U, N);
16140
16137
  }
16141
16138
  u.BASE._setWindowSize(8);
16142
- function _(k, S, O, U = I) {
16139
+ function _(k, P, O, U = I) {
16143
16140
  var ge;
16144
16141
  const N = k;
16145
- S = Er("msgHash", S), O = Er("publicKey", O);
16142
+ P = Er("msgHash", P), O = Er("publicKey", O);
16146
16143
  const { lowS: L, prehash: H, format: Z } = U;
16147
16144
  if (a1(U), "strict" in U)
16148
16145
  throw new Error("options.strict was renamed to lowS");
@@ -16168,8 +16165,8 @@ function Q9(e) {
16168
16165
  }
16169
16166
  if (!ie || L && ie.hasHighS())
16170
16167
  return !1;
16171
- H && (S = t.hash(S));
16172
- const { r: Ue, s: K } = ie, ve = P(S), De = l(K), He = c(ve * De), at = c(Ue * De), Ae = (ge = u.BASE.multiplyAndAddUnsafe(pe, He, at)) == null ? void 0 : ge.toAffine();
16168
+ H && (P = t.hash(P));
16169
+ const { r: Ue, s: K } = ie, ve = S(P), De = l(K), He = c(ve * De), at = c(Ue * De), Ae = (ge = u.BASE.multiplyAndAddUnsafe(pe, He, at)) == null ? void 0 : ge.toAffine();
16173
16170
  return Ae ? c(Ae.x) === Ue : !1;
16174
16171
  }
16175
16172
  return {
@@ -16608,9 +16605,9 @@ async function FT(e, t) {
16608
16605
  })(), m = [[]];
16609
16606
  let b = 0, g = 0;
16610
16607
  for (let A = 0; A < l.length; A++) {
16611
- const { abi: C, address: F, args: R, functionName: P } = l[A];
16608
+ const { abi: C, address: F, args: R, functionName: S } = l[A];
16612
16609
  try {
16613
- const h = fr({ abi: C, args: R, functionName: P });
16610
+ const h = fr({ abi: C, args: R, functionName: S });
16614
16611
  g += (h.length - 2) / 2, // Check if batching is enabled.
16615
16612
  u > 0 && // Check if the current size of the batch exceeds the size limit.
16616
16613
  g > u && // Check if the current chunk is not already empty.
@@ -16628,7 +16625,7 @@ async function FT(e, t) {
16628
16625
  address: F,
16629
16626
  args: R,
16630
16627
  docsPath: "/docs/contract/multicall",
16631
- functionName: P,
16628
+ functionName: S,
16632
16629
  sender: r
16633
16630
  });
16634
16631
  if (!s)
@@ -16670,16 +16667,16 @@ async function FT(e, t) {
16670
16667
  }
16671
16668
  const F = C.value;
16672
16669
  for (let R = 0; R < F.length; R++) {
16673
- const { returnData: P, success: h } = F[R], { callData: y } = m[A][R], { abi: x, address: T, functionName: I, args: B } = l[v.length];
16670
+ const { returnData: S, success: h } = F[R], { callData: y } = m[A][R], { abi: x, address: T, functionName: I, args: B } = l[v.length];
16674
16671
  try {
16675
16672
  if (y === "0x")
16676
16673
  throw new sc();
16677
16674
  if (!h)
16678
- throw new hu({ data: P });
16675
+ throw new hu({ data: S });
16679
16676
  const _ = wa({
16680
16677
  abi: x,
16681
16678
  args: B,
16682
- data: P,
16679
+ data: S,
16683
16680
  functionName: I
16684
16681
  });
16685
16682
  v.push(s ? { result: _, status: "success" } : _);
@@ -16732,13 +16729,13 @@ async function nf(e, t) {
16732
16729
  ...Yf(f),
16733
16730
  calls: f.calls.map((b, g) => {
16734
16731
  var x, T;
16735
- const { abi: E, args: v, functionName: w, to: A } = s[m].calls[g], C = ((x = b.error) == null ? void 0 : x.data) ?? b.returnData, F = BigInt(b.gasUsed), R = (T = b.logs) == null ? void 0 : T.map((I) => pn(I)), P = b.status === "0x1" ? "success" : "failure", h = E && P === "success" && C !== "0x" ? wa({
16732
+ const { abi: E, args: v, functionName: w, to: A } = s[m].calls[g], C = ((x = b.error) == null ? void 0 : x.data) ?? b.returnData, F = BigInt(b.gasUsed), R = (T = b.logs) == null ? void 0 : T.map((I) => pn(I)), S = b.status === "0x1" ? "success" : "failure", h = E && S === "success" && C !== "0x" ? wa({
16736
16733
  abi: E,
16737
16734
  data: C,
16738
16735
  functionName: w
16739
16736
  }) : null, y = (() => {
16740
16737
  var B;
16741
- if (P === "success")
16738
+ if (S === "success")
16742
16739
  return;
16743
16740
  let I;
16744
16741
  if (((B = b.error) == null ? void 0 : B.data) === "0x" ? I = new sc() : b.error && (I = new hu(b.error)), !!I)
@@ -16753,8 +16750,8 @@ async function nf(e, t) {
16753
16750
  data: C,
16754
16751
  gasUsed: F,
16755
16752
  logs: R,
16756
- status: P,
16757
- ...P === "success" ? {
16753
+ status: S,
16754
+ ...S === "success" ? {
16758
16755
  result: h
16759
16756
  } : {
16760
16757
  error: y
@@ -17129,12 +17126,12 @@ async function $T(e, t) {
17129
17126
  ],
17130
17127
  traceTransfers: i,
17131
17128
  validation: c
17132
- }), m = o ? f[2] : f[0], [b, g, , E, v, w, A, C] = o ? f : [], { calls: F, ...R } = m, P = F.slice(0, -1) ?? [], h = (b == null ? void 0 : b.calls) ?? [], y = (g == null ? void 0 : g.calls) ?? [], x = [...h, ...y].map((U) => U.status === "success" ? Le(U.data) : null), T = (E == null ? void 0 : E.calls) ?? [], I = (v == null ? void 0 : v.calls) ?? [], B = [...T, ...I].map((U) => U.status === "success" ? Le(U.data) : null), _ = ((w == null ? void 0 : w.calls) ?? []).map((U) => U.status === "success" ? U.result : null), k = ((C == null ? void 0 : C.calls) ?? []).map((U) => U.status === "success" ? U.result : null), S = ((A == null ? void 0 : A.calls) ?? []).map((U) => U.status === "success" ? U.result : null), O = [];
17129
+ }), m = o ? f[2] : f[0], [b, g, , E, v, w, A, C] = o ? f : [], { calls: F, ...R } = m, S = F.slice(0, -1) ?? [], h = (b == null ? void 0 : b.calls) ?? [], y = (g == null ? void 0 : g.calls) ?? [], x = [...h, ...y].map((U) => U.status === "success" ? Le(U.data) : null), T = (E == null ? void 0 : E.calls) ?? [], I = (v == null ? void 0 : v.calls) ?? [], B = [...T, ...I].map((U) => U.status === "success" ? Le(U.data) : null), _ = ((w == null ? void 0 : w.calls) ?? []).map((U) => U.status === "success" ? U.result : null), k = ((C == null ? void 0 : C.calls) ?? []).map((U) => U.status === "success" ? U.result : null), P = ((A == null ? void 0 : A.calls) ?? []).map((U) => U.status === "success" ? U.result : null), O = [];
17133
17130
  for (const [U, N] of B.entries()) {
17134
17131
  const L = x[U];
17135
17132
  if (typeof N != "bigint" || typeof L != "bigint")
17136
17133
  continue;
17137
- const H = _[U - 1], Z = k[U - 1], fe = S[U - 1], ye = U === 0 ? {
17134
+ const H = _[U - 1], Z = k[U - 1], fe = P[U - 1], ye = U === 0 ? {
17138
17135
  address: LT,
17139
17136
  decimals: 18,
17140
17137
  symbol: "ETH"
@@ -17155,7 +17152,7 @@ async function $T(e, t) {
17155
17152
  return {
17156
17153
  assetChanges: O,
17157
17154
  block: R,
17158
- results: P
17155
+ results: S
17159
17156
  };
17160
17157
  }
17161
17158
  const v6 = "0x6492649264926492649264926492649264926492649264926492649264926492";
@@ -17453,7 +17450,7 @@ async function k6(e, t) {
17453
17450
  poll: !0,
17454
17451
  pollingInterval: u,
17455
17452
  async onBlockNumber(R) {
17456
- const P = (y) => {
17453
+ const S = (y) => {
17457
17454
  clearTimeout(C), E == null || E(), y(), g == null || g();
17458
17455
  };
17459
17456
  let h = R;
@@ -17462,7 +17459,7 @@ async function k6(e, t) {
17462
17459
  if (m) {
17463
17460
  if (n > 1 && (!m.blockNumber || h - m.blockNumber + 1n < n))
17464
17461
  return;
17465
- P(() => F.resolve(m));
17462
+ S(() => F.resolve(m));
17466
17463
  return;
17467
17464
  }
17468
17465
  if (r && !d && (b = !0, await ql(async () => {
@@ -17472,7 +17469,7 @@ async function k6(e, t) {
17472
17469
  retryCount: o
17473
17470
  }), b = !1), m = await se(e, Fl, "getTransactionReceipt")({ hash: s }), n > 1 && (!m.blockNumber || h - m.blockNumber + 1n < n))
17474
17471
  return;
17475
- P(() => F.resolve(m));
17472
+ S(() => F.resolve(m));
17476
17473
  } catch (y) {
17477
17474
  if (y instanceof Py || y instanceof Iy) {
17478
17475
  if (!d) {
@@ -17496,7 +17493,7 @@ async function k6(e, t) {
17496
17493
  }), n > 1 && (!m.blockNumber || h - m.blockNumber + 1n < n)))
17497
17494
  return;
17498
17495
  let I = "replaced";
17499
- T.to === f.to && T.value === f.value && T.input === f.input ? I = "repriced" : T.from === T.to && T.value === 0n && (I = "cancelled"), P(() => {
17496
+ T.to === f.to && T.value === f.value && T.input === f.input ? I = "repriced" : T.from === T.to && T.value === 0n && (I = "cancelled"), S(() => {
17500
17497
  var B;
17501
17498
  (B = F.onReplaced) == null || B.call(F, {
17502
17499
  reason: I,
@@ -17506,10 +17503,10 @@ async function k6(e, t) {
17506
17503
  }), F.resolve(m);
17507
17504
  });
17508
17505
  } catch (x) {
17509
- P(() => F.reject(x));
17506
+ S(() => F.reject(x));
17510
17507
  }
17511
17508
  } else
17512
- P(() => F.reject(y));
17509
+ S(() => F.reject(y));
17513
17510
  }
17514
17511
  }
17515
17512
  });
@@ -17634,29 +17631,29 @@ function JT(e, { address: t, args: r, batch: n = !0, event: s, events: a, fromBl
17634
17631
  return;
17635
17632
  }
17636
17633
  try {
17637
- let P;
17634
+ let S;
17638
17635
  if (A)
17639
- P = await se(e, Su, "getFilterChanges")({ filter: A });
17636
+ S = await se(e, Su, "getFilterChanges")({ filter: A });
17640
17637
  else {
17641
17638
  const h = await se(e, yc, "getBlockNumber")({});
17642
- w && w !== h ? P = await se(e, c0, "getLogs")({
17639
+ w && w !== h ? S = await se(e, c0, "getLogs")({
17643
17640
  address: t,
17644
17641
  args: r,
17645
17642
  event: s,
17646
17643
  events: a,
17647
17644
  fromBlock: w + 1n,
17648
17645
  toBlock: h
17649
- }) : P = [], w = h;
17646
+ }) : S = [], w = h;
17650
17647
  }
17651
- if (P.length === 0)
17648
+ if (S.length === 0)
17652
17649
  return;
17653
17650
  if (n)
17654
- v.onLogs(P);
17651
+ v.onLogs(S);
17655
17652
  else
17656
- for (const h of P)
17653
+ for (const h of S)
17657
17654
  v.onLogs([h]);
17658
- } catch (P) {
17659
- A && P instanceof Es && (C = !1), (R = v.onError) == null || R.call(v, P);
17655
+ } catch (S) {
17656
+ A && S instanceof Es && (C = !1), (R = v.onError) == null || R.call(v, S);
17660
17657
  }
17661
17658
  }, {
17662
17659
  emitOnBegin: !0,
@@ -17672,15 +17669,15 @@ function JT(e, { address: t, args: r, batch: n = !0, event: s, events: a, fromBl
17672
17669
  try {
17673
17670
  const w = (() => {
17674
17671
  if (e.transport.type === "fallback") {
17675
- const R = e.transport.transports.find((P) => P.config.type === "webSocket" || P.config.type === "ipc");
17672
+ const R = e.transport.transports.find((S) => S.config.type === "webSocket" || S.config.type === "ipc");
17676
17673
  return R ? R.value : e.transport;
17677
17674
  }
17678
17675
  return e.transport;
17679
17676
  })(), A = a ?? (s ? [s] : void 0);
17680
17677
  let C = [];
17681
- A && (C = [A.flatMap((P) => ic({
17682
- abi: [P],
17683
- eventName: P.name,
17678
+ A && (C = [A.flatMap((S) => ic({
17679
+ abi: [S],
17680
+ eventName: S.name,
17684
17681
  args: r
17685
17682
  }))], s && (C = C[0]));
17686
17683
  const { unsubscribe: F } = await w.subscribe({
@@ -17689,14 +17686,14 @@ function JT(e, { address: t, args: r, batch: n = !0, event: s, events: a, fromBl
17689
17686
  var h;
17690
17687
  if (!E)
17691
17688
  return;
17692
- const P = R.result;
17689
+ const S = R.result;
17693
17690
  try {
17694
17691
  const { eventName: y, args: x } = Gl({
17695
17692
  abi: A ?? [],
17696
- data: P.data,
17697
- topics: P.topics,
17693
+ data: S.data,
17694
+ topics: S.topics,
17698
17695
  strict: m
17699
- }), T = pn(P, { args: x, eventName: y });
17696
+ }), T = pn(S, { args: x, eventName: y });
17700
17697
  c([T]);
17701
17698
  } catch (y) {
17702
17699
  let x, T;
@@ -17705,7 +17702,7 @@ function JT(e, { address: t, args: r, batch: n = !0, event: s, events: a, fromBl
17705
17702
  return;
17706
17703
  x = y.abiItem.name, T = (h = y.abiItem.inputs) == null ? void 0 : h.some((B) => !("name" in B && B.name));
17707
17704
  }
17708
- const I = pn(P, {
17705
+ const I = pn(S, {
17709
17706
  args: T ? [] : {},
17710
17707
  eventName: x
17711
17708
  });
@@ -17995,7 +17992,7 @@ async function h4(e, t) {
17995
17992
  }
17996
17993
  const Md = new ko(128);
17997
17994
  async function T6(e, t) {
17998
- var F, R, P, h;
17995
+ var F, R, S, h;
17999
17996
  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: b, throwOnReceiptRevert: g, type: E, value: v, ...w } = t, A = t.timeout ?? Math.max(((n == null ? void 0 : n.blockTime) ?? 0) * 3, 5e3);
18000
17997
  if (typeof r > "u")
18001
17998
  throw new Zn({
@@ -18020,7 +18017,7 @@ async function T6(e, t) {
18020
18017
  currentChainId: x,
18021
18018
  chain: n
18022
18019
  }));
18023
- const T = (P = (R = (F = e.chain) == null ? void 0 : F.formatters) == null ? void 0 : R.transactionRequest) == null ? void 0 : P.format, B = (T || Xr)({
18020
+ const T = (S = (R = (F = e.chain) == null ? void 0 : F.formatters) == null ? void 0 : R.transactionRequest) == null ? void 0 : S.format, B = (T || Xr)({
18024
18021
  // Pick out extra data that might exist on the chain's transaction request type.
18025
18022
  ...ga(w, { format: T }),
18026
18023
  accessList: s,
@@ -18038,7 +18035,7 @@ async function T6(e, t) {
18038
18035
  to: y,
18039
18036
  type: E,
18040
18037
  value: v
18041
- }, "sendTransaction"), _ = Md.get(e.uid), k = _ ? "wallet_sendTransaction" : "eth_sendTransaction", S = await (async () => {
18038
+ }, "sendTransaction"), _ = Md.get(e.uid), k = _ ? "wallet_sendTransaction" : "eth_sendTransaction", P = await (async () => {
18042
18039
  try {
18043
18040
  return await e.request({
18044
18041
  method: k,
@@ -18060,7 +18057,7 @@ async function T6(e, t) {
18060
18057
  }
18061
18058
  })(), O = await se(e, k6, "waitForTransactionReceipt")({
18062
18059
  checkReplacement: !1,
18063
- hash: S,
18060
+ hash: P,
18064
18061
  pollingInterval: b,
18065
18062
  timeout: A
18066
18063
  });
@@ -18322,7 +18319,7 @@ function P4(e, t = {}) {
18322
18319
  methods: o,
18323
18320
  name: i,
18324
18321
  async request({ method: F, params: R }) {
18325
- const P = { method: F, params: R }, { schedule: h } = wg({
18322
+ const S = { method: F, params: R }, { schedule: h } = wg({
18326
18323
  id: A,
18327
18324
  wait: E,
18328
18325
  shouldSplitBatch(I) {
@@ -18336,12 +18333,12 @@ function P4(e, t = {}) {
18336
18333
  await C.request({
18337
18334
  body: I
18338
18335
  })
18339
- ], [{ error: x, result: T }] = await y(P);
18336
+ ], [{ error: x, result: T }] = await y(S);
18340
18337
  if (d)
18341
18338
  return { error: x, result: T };
18342
18339
  if (x)
18343
18340
  throw new Vf({
18344
- body: P,
18341
+ body: S,
18345
18342
  error: x,
18346
18343
  url: A
18347
18344
  });
@@ -26269,7 +26266,7 @@ async function gU(e, t) {
26269
26266
  try {
26270
26267
  const { accessList: i, blockNumber: c, blockTag: l, data: u, gas: d, gasPrice: f, maxFeePerGas: m, maxPriorityFeePerGas: b, nonce: g, to: E, value: v, ...w } = t, C = (typeof c == "bigint" ? V(c) : void 0) || l;
26271
26268
  bn(t);
26272
- const F = (o = (a = (s = e.chain) == null ? void 0 : s.formatters) == null ? void 0 : a.transactionRequest) == null ? void 0 : o.format, P = (F || Xr)({
26269
+ const F = (o = (a = (s = e.chain) == null ? void 0 : s.formatters) == null ? void 0 : a.transactionRequest) == null ? void 0 : o.format, S = (F || Xr)({
26273
26270
  // Pick out extra data that might exist on the chain's transaction request type.
26274
26271
  ...ga(w, { format: F }),
26275
26272
  account: n,
@@ -26284,7 +26281,7 @@ async function gU(e, t) {
26284
26281
  value: v
26285
26282
  }, "estimateGas"), { baseFeePerGas: h, gasLimit: y, priorityFeePerGas: x } = await e.request({
26286
26283
  method: "linea_estimateGas",
26287
- params: C ? [P, C] : [P]
26284
+ params: C ? [S, C] : [S]
26288
26285
  });
26289
26286
  return {
26290
26287
  baseFeePerGas: BigInt(h),
@@ -33045,8 +33042,8 @@ function qR(e) {
33045
33042
  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") {
33046
33043
  const F = o;
33047
33044
  A.calls = F.map((R) => {
33048
- const [P, h, y] = R, x = {};
33049
- return P && P !== "0x" && (x.to = P), h && h !== "0x" && (x.value = BigInt(h)), y && y !== "0x" && (x.data = y), x;
33045
+ const [S, h, y] = R, x = {};
33046
+ return S && S !== "0x" && (x.to = S), h && h !== "0x" && (x.value = BigInt(h)), y && y !== "0x" && (x.data = y), x;
33050
33047
  });
33051
33048
  }
33052
33049
  (i == null ? void 0 : i.length) !== 0 && i !== "0x" && (A.accessList = RR(i)), (b == null ? void 0 : b.length) !== 0 && b !== "0x" && (A.authorizationList = ER(b)), m !== "0x" && m !== void 0 && (m === "0x00" || Zl(m) ? A.feePayerSignature = null : A.feePayerSignature = oT(m)), v && (A.keyAuthorization = PR(v));
@@ -36153,7 +36150,7 @@ function WL({ children: e }) {
36153
36150
  }
36154
36151
  );
36155
36152
  }
36156
- const ex = tc(null), qL = new z3({
36153
+ const e2 = tc(null), qL = new z3({
36157
36154
  defaultOptions: {
36158
36155
  queries: {
36159
36156
  refetchOnWindowFocus: !1
@@ -36232,7 +36229,7 @@ const ex = tc(null), qL = new z3({
36232
36229
  return as(() => {
36233
36230
  bt.init(o, c, a);
36234
36231
  }, [o, a, c]), /* @__PURE__ */ le(
36235
- ex.Provider,
36232
+ e2.Provider,
36236
36233
  {
36237
36234
  value: {
36238
36235
  typedInputAmount: e.typedInputAmount,
@@ -36272,7 +36269,7 @@ const ex = tc(null), qL = new z3({
36272
36269
  }
36273
36270
  );
36274
36271
  }, iZ = (e) => /* @__PURE__ */ D($3, { client: qL, children: /* @__PURE__ */ D(ZL, { ...e }) }), ne = () => {
36275
- const e = au(ex);
36272
+ const e = au(e2);
36276
36273
  if (e === null)
36277
36274
  throw new Error("useSpotContext must be used within SpotProvider");
36278
36275
  return e;
@@ -36457,21 +36454,21 @@ var jd = {}, QL = [
36457
36454
  t.indexOf(n[s]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[s]) && (r[n[s]] = e[n[s]]);
36458
36455
  return r;
36459
36456
  };
36460
- function tx(e) {
36457
+ function t2(e) {
36461
36458
  return e && e.map(function(t, r) {
36462
36459
  return te.createElement(t.tag, gs({
36463
36460
  key: r
36464
- }, t.attr), tx(t.child));
36461
+ }, t.attr), t2(t.child));
36465
36462
  });
36466
36463
  }
36467
36464
  function ez(e) {
36468
36465
  return function(t) {
36469
- return te.createElement(rx, gs({
36466
+ return te.createElement(r2, gs({
36470
36467
  attr: gs({}, e.attr)
36471
- }, t), tx(e.child));
36468
+ }, t), t2(e.child));
36472
36469
  };
36473
36470
  }
36474
- function rx(e) {
36471
+ function r2(e) {
36475
36472
  var t = function(r) {
36476
36473
  var n = e.attr, s = e.size, a = e.title, o = JL(e, ["attr", "size", "title"]), i = s || r.size || "1em", c;
36477
36474
  return r.className && (c = r.className), e.className && (c = (c ? c + " " : "") + e.className), te.createElement("svg", gs({
@@ -36496,7 +36493,7 @@ const tz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
36496
36493
  __proto__: null,
36497
36494
  DefaultContext: K0,
36498
36495
  GenIcon: ez,
36499
- IconBase: rx,
36496
+ IconBase: r2,
36500
36497
  IconContext: uf,
36501
36498
  IconsManifest: QL
36502
36499
  }, Symbol.toStringTag, { value: "Module" })), Cc = /* @__PURE__ */ pw(tz);
@@ -36524,12 +36521,12 @@ var az = /* @__PURE__ */ sz();
36524
36521
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
36525
36522
  //! license : MIT
36526
36523
  //! momentjs.com
36527
- var nx;
36524
+ var n2;
36528
36525
  function ee() {
36529
- return nx.apply(null, arguments);
36526
+ return n2.apply(null, arguments);
36530
36527
  }
36531
36528
  function oz(e) {
36532
- nx = e;
36529
+ n2 = e;
36533
36530
  }
36534
36531
  function Wr(e) {
36535
36532
  return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
@@ -36558,7 +36555,7 @@ function qn(e) {
36558
36555
  function Tc(e) {
36559
36556
  return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
36560
36557
  }
36561
- function sx(e, t) {
36558
+ function s2(e, t) {
36562
36559
  var r = [], n, s = e.length;
36563
36560
  for (n = 0; n < s; ++n)
36564
36561
  r.push(t(e[n], n));
@@ -36570,7 +36567,7 @@ function ms(e, t) {
36570
36567
  return Ge(t, "toString") && (e.toString = t.toString), Ge(t, "valueOf") && (e.valueOf = t.valueOf), e;
36571
36568
  }
36572
36569
  function yn(e, t, r, n) {
36573
- return Sx(e, t, r, n, !0).utc();
36570
+ return S2(e, t, r, n, !0).utc();
36574
36571
  }
36575
36572
  function iz() {
36576
36573
  return {
@@ -36631,7 +36628,7 @@ function Ac(e) {
36631
36628
  function qr(e) {
36632
36629
  return e instanceof Ac || e != null && e._isAMomentObject != null;
36633
36630
  }
36634
- function ax(e) {
36631
+ function a2(e) {
36635
36632
  ee.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
36636
36633
  }
36637
36634
  function Ur(e, t) {
@@ -36650,7 +36647,7 @@ function Ur(e, t) {
36650
36647
  s = arguments[a];
36651
36648
  n.push(s);
36652
36649
  }
36653
- ax(
36650
+ a2(
36654
36651
  e + `
36655
36652
  Arguments: ` + Array.prototype.slice.call(n).join("") + `
36656
36653
  ` + new Error().stack
@@ -36660,8 +36657,8 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
36660
36657
  }, t);
36661
36658
  }
36662
36659
  var T1 = {};
36663
- function ox(e, t) {
36664
- ee.deprecationHandler != null && ee.deprecationHandler(e, t), T1[e] || (ax(t), T1[e] = !0);
36660
+ function o2(e, t) {
36661
+ ee.deprecationHandler != null && ee.deprecationHandler(e, t), T1[e] || (a2(t), T1[e] = !0);
36665
36662
  }
36666
36663
  ee.suppressDeprecationWarnings = !1;
36667
36664
  ee.deprecationHandler = null;
@@ -36739,9 +36736,9 @@ function pz(e) {
36739
36736
  };
36740
36737
  }
36741
36738
  function Ul(e, t) {
36742
- return e.isValid() ? (t = ix(t, e.localeData()), qd[t] = qd[t] || pz(t), qd[t](e)) : e.localeData().invalidDate();
36739
+ return e.isValid() ? (t = i2(t, e.localeData()), qd[t] = qd[t] || pz(t), qd[t](e)) : e.localeData().invalidDate();
36743
36740
  }
36744
- function ix(e, t) {
36741
+ function i2(e, t) {
36745
36742
  var r = 5;
36746
36743
  function n(s) {
36747
36744
  return t.longDateFormat(s) || s;
@@ -36886,7 +36883,7 @@ function Cz(e) {
36886
36883
  return n.priority - s.priority;
36887
36884
  }), t;
36888
36885
  }
36889
- var cx = /\d/, br = /\d\d/, lx = /\d{3}/, tm = /\d{4}/, zu = /[+-]?\d{6}/, nt = /\d\d?/, ux = /\d\d\d\d?/, dx = /\d\d\d\d\d\d?/, $u = /\d{1,3}/, rm = /\d{1,4}/, Hu = /[+-]?\d{1,6}/, Fo = /\d+/, Gu = /[+-]?\d+/, Tz = /Z|[+-]\d\d:?\d\d/gi, ju = /Z|[+-]\d\d(?::?\d\d)?/gi, Az = /[+-]?\d+(\.\d{1,3})?/, Sc = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, Uo = /^[1-9]\d?/, nm = /^([1-9]\d|\d)/, Ql;
36886
+ var c2 = /\d/, br = /\d\d/, l2 = /\d{3}/, tm = /\d{4}/, zu = /[+-]?\d{6}/, nt = /\d\d?/, u2 = /\d\d\d\d?/, d2 = /\d\d\d\d\d\d?/, $u = /\d{1,3}/, rm = /\d{1,4}/, Hu = /[+-]?\d{1,6}/, Fo = /\d+/, Gu = /[+-]?\d+/, Tz = /Z|[+-]\d\d:?\d\d/gi, ju = /Z|[+-]\d\d(?::?\d\d)?/gi, Az = /[+-]?\d+(\.\d{1,3})?/, Sc = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, Uo = /^[1-9]\d?/, nm = /^([1-9]\d|\d)/, Ql;
36890
36887
  Ql = {};
36891
36888
  function ae(e, t, r) {
36892
36889
  Ql[e] = gn(t) ? t : function(n, s) {
@@ -36967,13 +36964,13 @@ function oi(e) {
36967
36964
  ee.parseTwoDigitYear = function(e) {
36968
36965
  return Oe(e) + (Oe(e) > 68 ? 1900 : 2e3);
36969
36966
  };
36970
- var px = Oo("FullYear", !0);
36967
+ var p2 = Oo("FullYear", !0);
36971
36968
  function Uz() {
36972
36969
  return Vu(this.year());
36973
36970
  }
36974
36971
  function Oo(e, t) {
36975
36972
  return function(r) {
36976
- return r != null ? (fx(this, e, r), ee.updateOffset(this, t), this) : Li(this, e);
36973
+ return r != null ? (f2(this, e, r), ee.updateOffset(this, t), this) : Li(this, e);
36977
36974
  };
36978
36975
  }
36979
36976
  function Li(e, t) {
@@ -37001,7 +36998,7 @@ function Li(e, t) {
37001
36998
  return NaN;
37002
36999
  }
37003
37000
  }
37004
- function fx(e, t, r) {
37001
+ function f2(e, t, r) {
37005
37002
  var n, s, a, o, i;
37006
37003
  if (!(!e.isValid() || isNaN(r))) {
37007
37004
  switch (n = e._d, s = e._isUTC, t) {
@@ -37084,12 +37081,12 @@ Xe(["MMM", "MMMM"], function(e, t, r, n) {
37084
37081
  });
37085
37082
  var Mz = "January_February_March_April_May_June_July_August_September_October_November_December".split(
37086
37083
  "_"
37087
- ), mx = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), hx = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, Rz = Sc, Nz = Sc;
37084
+ ), m2 = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), h2 = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, Rz = Sc, Nz = Sc;
37088
37085
  function Lz(e, t) {
37089
- return e ? Wr(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || hx).test(t) ? "format" : "standalone"][e.month()] : Wr(this._months) ? this._months : this._months.standalone;
37086
+ return e ? Wr(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || h2).test(t) ? "format" : "standalone"][e.month()] : Wr(this._months) ? this._months : this._months.standalone;
37090
37087
  }
37091
37088
  function zz(e, t) {
37092
- return e ? Wr(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[hx.test(t) ? "format" : "standalone"][e.month()] : Wr(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
37089
+ return e ? Wr(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[h2.test(t) ? "format" : "standalone"][e.month()] : Wr(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
37093
37090
  }
37094
37091
  function $z(e, t, r) {
37095
37092
  var n, s, a, o = e.toLocaleLowerCase();
@@ -37120,7 +37117,7 @@ function Hz(e, t, r) {
37120
37117
  return n;
37121
37118
  }
37122
37119
  }
37123
- function bx(e, t) {
37120
+ function b2(e, t) {
37124
37121
  if (!e.isValid())
37125
37122
  return e;
37126
37123
  if (typeof t == "string") {
@@ -37132,19 +37129,19 @@ function bx(e, t) {
37132
37129
  var r = t, n = e.date();
37133
37130
  return n = n < 29 ? n : Math.min(n, sm(e.year(), r)), e._isUTC ? e._d.setUTCMonth(r, n) : e._d.setMonth(r, n), e;
37134
37131
  }
37135
- function yx(e) {
37136
- return e != null ? (bx(this, e), ee.updateOffset(this, !0), this) : Li(this, "Month");
37132
+ function y2(e) {
37133
+ return e != null ? (b2(this, e), ee.updateOffset(this, !0), this) : Li(this, "Month");
37137
37134
  }
37138
37135
  function Gz() {
37139
37136
  return sm(this.year(), this.month());
37140
37137
  }
37141
37138
  function jz(e) {
37142
- return this._monthsParseExact ? (Ge(this, "_monthsRegex") || gx.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (Ge(this, "_monthsShortRegex") || (this._monthsShortRegex = Rz), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
37139
+ return this._monthsParseExact ? (Ge(this, "_monthsRegex") || g2.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (Ge(this, "_monthsShortRegex") || (this._monthsShortRegex = Rz), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
37143
37140
  }
37144
37141
  function Vz(e) {
37145
- return this._monthsParseExact ? (Ge(this, "_monthsRegex") || gx.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (Ge(this, "_monthsRegex") || (this._monthsRegex = Nz), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
37142
+ return this._monthsParseExact ? (Ge(this, "_monthsRegex") || g2.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (Ge(this, "_monthsRegex") || (this._monthsRegex = Nz), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
37146
37143
  }
37147
- function gx() {
37144
+ function g2() {
37148
37145
  function e(c, l) {
37149
37146
  return l.length - c.length;
37150
37147
  }
@@ -37171,7 +37168,7 @@ function Jl(e, t, r) {
37171
37168
  var n = 7 + t - r, s = (7 + zi(e, 0, n).getUTCDay() - t) % 7;
37172
37169
  return -s + n - 1;
37173
37170
  }
37174
- function xx(e, t, r, n, s) {
37171
+ function x2(e, t, r, n, s) {
37175
37172
  var a = (7 + r - n) % 7, o = Jl(e, n, s), i = 1 + 7 * (t - 1) + a + o, c, l;
37176
37173
  return i <= 0 ? (c = e - 1, l = oi(c) + i) : i > oi(e) ? (c = e + 1, l = i - oi(e)) : (c = e, l = i), {
37177
37174
  year: c,
@@ -37264,7 +37261,7 @@ function e$(e, t) {
37264
37261
  function am(e, t) {
37265
37262
  return e.slice(t, 7).concat(e.slice(0, t));
37266
37263
  }
37267
- var t$ = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), wx = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), r$ = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), n$ = Sc, s$ = Sc, a$ = Sc;
37264
+ var t$ = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), w2 = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), r$ = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), n$ = Sc, s$ = Sc, a$ = Sc;
37268
37265
  function o$(e, t) {
37269
37266
  var r = Wr(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
37270
37267
  return e === !0 ? am(r, this._week.dow) : e ? r[e.day()] : r;
@@ -37381,7 +37378,7 @@ de("Hmm", 0, 0, function() {
37381
37378
  de("Hmmss", 0, 0, function() {
37382
37379
  return "" + this.hours() + fn(this.minutes(), 2) + fn(this.seconds(), 2);
37383
37380
  });
37384
- function vx(e, t) {
37381
+ function v2(e, t) {
37385
37382
  de(e, 0, 0, function() {
37386
37383
  return this.localeData().meridiem(
37387
37384
  this.hours(),
@@ -37390,23 +37387,23 @@ function vx(e, t) {
37390
37387
  );
37391
37388
  });
37392
37389
  }
37393
- vx("a", !0);
37394
- vx("A", !1);
37395
- function Ex(e, t) {
37390
+ v2("a", !0);
37391
+ v2("A", !1);
37392
+ function E2(e, t) {
37396
37393
  return t._meridiemParse;
37397
37394
  }
37398
- ae("a", Ex);
37399
- ae("A", Ex);
37395
+ ae("a", E2);
37396
+ ae("A", E2);
37400
37397
  ae("H", nt, nm);
37401
37398
  ae("h", nt, Uo);
37402
37399
  ae("k", nt, Uo);
37403
37400
  ae("HH", nt, br);
37404
37401
  ae("hh", nt, br);
37405
37402
  ae("kk", nt, br);
37406
- ae("hmm", ux);
37407
- ae("hmmss", dx);
37408
- ae("Hmm", ux);
37409
- ae("Hmmss", dx);
37403
+ ae("hmm", u2);
37404
+ ae("hmmss", d2);
37405
+ ae("Hmm", u2);
37406
+ ae("Hmmss", d2);
37410
37407
  Xe(["H", "HH"], At);
37411
37408
  Xe(["k", "kk"], function(e, t, r) {
37412
37409
  var n = Oe(e);
@@ -37441,7 +37438,7 @@ var x$ = /[ap]\.?m?\.?/i, w$ = Oo("Hours", !0);
37441
37438
  function v$(e, t, r) {
37442
37439
  return e > 11 ? r ? "pm" : "PM" : r ? "am" : "AM";
37443
37440
  }
37444
- var kx = {
37441
+ var k2 = {
37445
37442
  calendar: lz,
37446
37443
  longDateFormat: fz,
37447
37444
  invalidDate: hz,
@@ -37449,11 +37446,11 @@ var kx = {
37449
37446
  dayOfMonthOrdinalParse: gz,
37450
37447
  relativeTime: wz,
37451
37448
  months: Mz,
37452
- monthsShort: mx,
37449
+ monthsShort: m2,
37453
37450
  week: Kz,
37454
37451
  weekdays: t$,
37455
37452
  weekdaysMin: r$,
37456
- weekdaysShort: wx,
37453
+ weekdaysShort: w2,
37457
37454
  meridiemParse: x$
37458
37455
  }, ot = {}, Qo = {}, Hi;
37459
37456
  function E$(e, t) {
@@ -37500,9 +37497,9 @@ function xs(e, t) {
37500
37497
  }
37501
37498
  function cm(e, t) {
37502
37499
  if (t !== null) {
37503
- var r, n = kx;
37500
+ var r, n = k2;
37504
37501
  if (t.abbr = e, ot[e] != null)
37505
- ox(
37502
+ o2(
37506
37503
  "defineLocaleOverride",
37507
37504
  "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
37508
37505
  ), n = ot[e]._config;
@@ -37524,7 +37521,7 @@ function cm(e, t) {
37524
37521
  }
37525
37522
  function T$(e, t) {
37526
37523
  if (t != null) {
37527
- var r, n, s = kx;
37524
+ var r, n, s = k2;
37528
37525
  ot[e] != null && ot[e].parentLocale != null ? ot[e].set(pf(ot[e]._config, t)) : (n = Wu(e), n != null && (s = n._config), t = pf(s, t), n == null && (t.abbr = e), r = new Q0(t), r.parentLocale = ot[e], ot[e] = r), xs(e);
37529
37526
  } else
37530
37527
  ot[e] != null && (ot[e].parentLocale != null ? (ot[e] = ot[e].parentLocale, e === xs() && xs(e)) : ot[e] != null && delete ot[e]);
@@ -37584,7 +37581,7 @@ var S$ = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
37584
37581
  PDT: -420,
37585
37582
  PST: -480
37586
37583
  };
37587
- function Cx(e) {
37584
+ function C2(e) {
37588
37585
  var t, r, n = e._i, s = S$.exec(n) || P$.exec(n), a, o, i, c, l = Al.length, u = Kd.length;
37589
37586
  if (s) {
37590
37587
  for (Ce(e).iso = !0, t = 0, r = l; t < r; t++)
@@ -37625,7 +37622,7 @@ function Cx(e) {
37625
37622
  function O$(e, t, r, n, s, a) {
37626
37623
  var o = [
37627
37624
  D$(e),
37628
- mx.indexOf(t),
37625
+ m2.indexOf(t),
37629
37626
  parseInt(r, 10),
37630
37627
  parseInt(n, 10),
37631
37628
  parseInt(s, 10)
@@ -37641,7 +37638,7 @@ function _$(e) {
37641
37638
  }
37642
37639
  function M$(e, t, r) {
37643
37640
  if (e) {
37644
- var n = wx.indexOf(e), s = new Date(
37641
+ var n = w2.indexOf(e), s = new Date(
37645
37642
  t[0],
37646
37643
  t[1],
37647
37644
  t[2]
@@ -37659,7 +37656,7 @@ function R$(e, t, r) {
37659
37656
  var n = parseInt(r, 10), s = n % 100, a = (n - s) / 100;
37660
37657
  return a * 60 + s;
37661
37658
  }
37662
- function Tx(e) {
37659
+ function T2(e) {
37663
37660
  var t = F$.exec(_$(e._i)), r;
37664
37661
  if (t) {
37665
37662
  if (r = O$(
@@ -37681,11 +37678,11 @@ function N$(e) {
37681
37678
  e._d = /* @__PURE__ */ new Date(+t[1]);
37682
37679
  return;
37683
37680
  }
37684
- if (Cx(e), e._isValid === !1)
37681
+ if (C2(e), e._isValid === !1)
37685
37682
  delete e._isValid;
37686
37683
  else
37687
37684
  return;
37688
- if (Tx(e), e._isValid === !1)
37685
+ if (T2(e), e._isValid === !1)
37689
37686
  delete e._isValid;
37690
37687
  else
37691
37688
  return;
@@ -37727,7 +37724,7 @@ function z$(e) {
37727
37724
  t.GG,
37728
37725
  e._a[zt],
37729
37726
  $i(rt(), 1, 4).year
37730
- ), n = Oa(t.W, 1), s = Oa(t.E, 1), (s < 1 || s > 7) && (c = !0)) : (a = e._locale._week.dow, o = e._locale._week.doy, l = $i(rt(), a, o), r = Oa(t.gg, e._a[zt], l.year), n = Oa(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 > Gn(r, a, o) ? Ce(e)._overflowWeeks = !0 : c != null ? Ce(e)._overflowWeekday = !0 : (i = xx(r, n, s, a, o), e._a[zt] = i.year, e._dayOfYear = i.dayOfYear);
37727
+ ), n = Oa(t.W, 1), s = Oa(t.E, 1), (s < 1 || s > 7) && (c = !0)) : (a = e._locale._week.dow, o = e._locale._week.doy, l = $i(rt(), a, o), r = Oa(t.gg, e._a[zt], l.year), n = Oa(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 > Gn(r, a, o) ? Ce(e)._overflowWeeks = !0 : c != null ? Ce(e)._overflowWeekday = !0 : (i = x2(r, n, s, a, o), e._a[zt] = i.year, e._dayOfYear = i.dayOfYear);
37731
37728
  }
37732
37729
  ee.ISO_8601 = function() {
37733
37730
  };
@@ -37735,16 +37732,16 @@ ee.RFC_2822 = function() {
37735
37732
  };
37736
37733
  function dm(e) {
37737
37734
  if (e._f === ee.ISO_8601) {
37738
- Cx(e);
37735
+ C2(e);
37739
37736
  return;
37740
37737
  }
37741
37738
  if (e._f === ee.RFC_2822) {
37742
- Tx(e);
37739
+ T2(e);
37743
37740
  return;
37744
37741
  }
37745
37742
  e._a = [], Ce(e).empty = !0;
37746
37743
  var t = "" + e._i, r, n, s, a, o, i = t.length, c = 0, l, u;
37747
- for (s = ix(e._f, e._locale).match(J0) || [], u = s.length, r = 0; r < u; r++)
37744
+ for (s = i2(e._f, e._locale).match(J0) || [], u = s.length, r = 0; r < u; r++)
37748
37745
  a = s[r], n = (t.match(Sz(a, e)) || [])[0], n && (o = t.substr(0, t.indexOf(n)), o.length > 0 && Ce(e).unusedInput.push(o), t = t.slice(
37749
37746
  t.indexOf(n) + n.length
37750
37747
  ), c += n.length), ja[a] ? (n ? Ce(e).empty = !1 : Ce(e).unusedTokens.push(a), Iz(a, n, e)) : e._strict && !n && Ce(e).unusedTokens.push(a);
@@ -37771,7 +37768,7 @@ function H$(e) {
37771
37768
  function G$(e) {
37772
37769
  if (!e._d) {
37773
37770
  var t = em(e._i), r = t.day === void 0 ? t.date : t.day;
37774
- e._a = sx(
37771
+ e._a = s2(
37775
37772
  [t.year, t.month, r, t.hour, t.minute, t.second, t.millisecond],
37776
37773
  function(n) {
37777
37774
  return n && parseInt(n, 10);
@@ -37780,25 +37777,25 @@ function G$(e) {
37780
37777
  }
37781
37778
  }
37782
37779
  function j$(e) {
37783
- var t = new Ac(lm(Ax(e)));
37780
+ var t = new Ac(lm(A2(e)));
37784
37781
  return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
37785
37782
  }
37786
- function Ax(e) {
37783
+ function A2(e) {
37787
37784
  var t = e._i, r = e._f;
37788
37785
  return e._locale = e._locale || Xn(e._l), t === null || r === void 0 && t === "" ? Lu({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), qr(t) ? new Ac(lm(t)) : (Tc(t) ? e._d = t : Wr(r) ? H$(e) : r ? dm(e) : V$(e), Z0(e) || (e._d = null), e));
37789
37786
  }
37790
37787
  function V$(e) {
37791
37788
  var t = e._i;
37792
- Zt(t) ? e._d = new Date(ee.now()) : Tc(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? N$(e) : Wr(t) ? (e._a = sx(t.slice(0), function(r) {
37789
+ Zt(t) ? e._d = new Date(ee.now()) : Tc(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? N$(e) : Wr(t) ? (e._a = s2(t.slice(0), function(r) {
37793
37790
  return parseInt(r, 10);
37794
37791
  }), um(e)) : na(t) ? G$(e) : qn(t) ? e._d = new Date(t) : ee.createFromInputFallback(e);
37795
37792
  }
37796
- function Sx(e, t, r, n, s) {
37793
+ function S2(e, t, r, n, s) {
37797
37794
  var a = {};
37798
37795
  return (t === !0 || t === !1) && (n = t, t = void 0), (r === !0 || r === !1) && (n = r, r = void 0), (na(e) && Y0(e) || Wr(e) && e.length === 0) && (e = void 0), a._isAMomentObject = !0, a._useUTC = a._isUTC = s, a._l = r, a._i = e, a._f = t, a._strict = n, j$(a);
37799
37796
  }
37800
37797
  function rt(e, t, r, n) {
37801
- return Sx(e, t, r, n, !1);
37798
+ return S2(e, t, r, n, !1);
37802
37799
  }
37803
37800
  var W$ = Ur(
37804
37801
  "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
@@ -37813,7 +37810,7 @@ var W$ = Ur(
37813
37810
  return this.isValid() && e.isValid() ? e > this ? this : e : Lu();
37814
37811
  }
37815
37812
  );
37816
- function Px(e, t) {
37813
+ function P2(e, t) {
37817
37814
  var r, n;
37818
37815
  if (t.length === 1 && Wr(t[0]) && (t = t[0]), !t.length)
37819
37816
  return rt();
@@ -37823,11 +37820,11 @@ function Px(e, t) {
37823
37820
  }
37824
37821
  function K$() {
37825
37822
  var e = [].slice.call(arguments, 0);
37826
- return Px("isBefore", e);
37823
+ return P2("isBefore", e);
37827
37824
  }
37828
37825
  function Y$() {
37829
37826
  var e = [].slice.call(arguments, 0);
37830
- return Px("isAfter", e);
37827
+ return P2("isAfter", e);
37831
37828
  }
37832
37829
  var Z$ = function() {
37833
37830
  return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
@@ -37879,14 +37876,14 @@ function eH(e, t, r) {
37879
37876
  Oe(e[o]) !== Oe(t[o]) && a++;
37880
37877
  return a + s;
37881
37878
  }
37882
- function Ix(e, t) {
37879
+ function I2(e, t) {
37883
37880
  de(e, 0, 0, function() {
37884
37881
  var r = this.utcOffset(), n = "+";
37885
37882
  return r < 0 && (r = -r, n = "-"), n + fn(~~(r / 60), 2) + t + fn(~~r % 60, 2);
37886
37883
  });
37887
37884
  }
37888
- Ix("Z", ":");
37889
- Ix("ZZ", "");
37885
+ I2("Z", ":");
37886
+ I2("ZZ", "");
37890
37887
  ae("Z", ju);
37891
37888
  ae("ZZ", ju);
37892
37889
  Xe(["Z", "ZZ"], function(e, t, r) {
@@ -37915,7 +37912,7 @@ function rH(e, t, r) {
37915
37912
  if (e = pm(ju, e), e === null)
37916
37913
  return this;
37917
37914
  } else Math.abs(e) < 16 && !r && (e = e * 60);
37918
- return !this._isUTC && t && (s = bf(this)), this._offset = e, this._isUTC = !0, s != null && this.add(s, "m"), n !== e && (!t || this._changeInProgress ? Ux(
37915
+ return !this._isUTC && t && (s = bf(this)), this._offset = e, this._isUTC = !0, s != null && this.add(s, "m"), n !== e && (!t || this._changeInProgress ? U2(
37919
37916
  this,
37920
37917
  Qr(e - n, "m"),
37921
37918
  1,
@@ -37952,7 +37949,7 @@ function lH() {
37952
37949
  if (!Zt(this._isDSTShifted))
37953
37950
  return this._isDSTShifted;
37954
37951
  var e = {}, t;
37955
- return X0(e, this), e = Ax(e), e._a ? (t = e._isUTC ? yn(e._a) : rt(e._a), this._isDSTShifted = this.isValid() && eH(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
37952
+ return X0(e, this), e = A2(e), e._a ? (t = e._isUTC ? yn(e._a) : rt(e._a), this._isDSTShifted = this.isValid() && eH(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
37956
37953
  }
37957
37954
  function uH() {
37958
37955
  return this.isValid() ? !this._isUTC : !1;
@@ -37960,7 +37957,7 @@ function uH() {
37960
37957
  function dH() {
37961
37958
  return this.isValid() ? this._isUTC : !1;
37962
37959
  }
37963
- function Bx() {
37960
+ function B2() {
37964
37961
  return this.isValid() ? this._isUTC && this._offset === 0 : !1;
37965
37962
  }
37966
37963
  var pH = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, fH = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
@@ -38005,25 +38002,25 @@ function mH(e, t) {
38005
38002
  var r;
38006
38003
  return e.isValid() && t.isValid() ? (t = fm(t, e), e.isBefore(t) ? r = P1(e, t) : (r = P1(t, e), r.milliseconds = -r.milliseconds, r.months = -r.months), r) : { milliseconds: 0, months: 0 };
38007
38004
  }
38008
- function Fx(e, t) {
38005
+ function F2(e, t) {
38009
38006
  return function(r, n) {
38010
38007
  var s, a;
38011
- return n !== null && !isNaN(+n) && (ox(
38008
+ return n !== null && !isNaN(+n) && (o2(
38012
38009
  t,
38013
38010
  "moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
38014
- ), a = r, r = n, n = a), s = Qr(r, n), Ux(this, s, e), this;
38011
+ ), a = r, r = n, n = a), s = Qr(r, n), U2(this, s, e), this;
38015
38012
  };
38016
38013
  }
38017
- function Ux(e, t, r, n) {
38014
+ function U2(e, t, r, n) {
38018
38015
  var s = t._milliseconds, a = hf(t._days), o = hf(t._months);
38019
- e.isValid() && (n = n ?? !0, o && bx(e, Li(e, "Month") + o * r), a && fx(e, "Date", Li(e, "Date") + a * r), s && e._d.setTime(e._d.valueOf() + s * r), n && ee.updateOffset(e, a || o));
38016
+ e.isValid() && (n = n ?? !0, o && b2(e, Li(e, "Month") + o * r), a && f2(e, "Date", Li(e, "Date") + a * r), s && e._d.setTime(e._d.valueOf() + s * r), n && ee.updateOffset(e, a || o));
38020
38017
  }
38021
- var hH = Fx(1, "add"), bH = Fx(-1, "subtract");
38022
- function Ox(e) {
38018
+ var hH = F2(1, "add"), bH = F2(-1, "subtract");
38019
+ function O2(e) {
38023
38020
  return typeof e == "string" || e instanceof String;
38024
38021
  }
38025
38022
  function yH(e) {
38026
- return qr(e) || Tc(e) || Ox(e) || qn(e) || xH(e) || gH(e) || e === null || e === void 0;
38023
+ return qr(e) || Tc(e) || O2(e) || qn(e) || xH(e) || gH(e) || e === null || e === void 0;
38027
38024
  }
38028
38025
  function gH(e) {
38029
38026
  var t = na(e) && !Y0(e), r = !1, n = [
@@ -38059,7 +38056,7 @@ function gH(e) {
38059
38056
  function xH(e) {
38060
38057
  var t = Wr(e), r = !1;
38061
38058
  return t && (r = e.filter(function(n) {
38062
- return !qn(n) && Ox(e);
38059
+ return !qn(n) && O2(e);
38063
38060
  }).length === 0), t && r;
38064
38061
  }
38065
38062
  function wH(e) {
@@ -38198,34 +38195,34 @@ function RH(e, t) {
38198
38195
  function NH(e) {
38199
38196
  return this.to(rt(), e);
38200
38197
  }
38201
- function Dx(e) {
38198
+ function D2(e) {
38202
38199
  var t;
38203
38200
  return e === void 0 ? this._locale._abbr : (t = Xn(e), t != null && (this._locale = t), this);
38204
38201
  }
38205
- var _x = Ur(
38202
+ var _2 = Ur(
38206
38203
  "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
38207
38204
  function(e) {
38208
38205
  return e === void 0 ? this.localeData() : this.locale(e);
38209
38206
  }
38210
38207
  );
38211
- function Mx() {
38208
+ function M2() {
38212
38209
  return this._locale;
38213
38210
  }
38214
- var eu = 1e3, Va = 60 * eu, tu = 60 * Va, Rx = (365 * 400 + 97) * 24 * tu;
38211
+ var eu = 1e3, Va = 60 * eu, tu = 60 * Va, R2 = (365 * 400 + 97) * 24 * tu;
38215
38212
  function Wa(e, t) {
38216
38213
  return (e % t + t) % t;
38217
38214
  }
38218
- function Nx(e, t, r) {
38219
- return e < 100 && e >= 0 ? new Date(e + 400, t, r) - Rx : new Date(e, t, r).valueOf();
38215
+ function N2(e, t, r) {
38216
+ return e < 100 && e >= 0 ? new Date(e + 400, t, r) - R2 : new Date(e, t, r).valueOf();
38220
38217
  }
38221
- function Lx(e, t, r) {
38222
- return e < 100 && e >= 0 ? Date.UTC(e + 400, t, r) - Rx : Date.UTC(e, t, r);
38218
+ function L2(e, t, r) {
38219
+ return e < 100 && e >= 0 ? Date.UTC(e + 400, t, r) - R2 : Date.UTC(e, t, r);
38223
38220
  }
38224
38221
  function LH(e) {
38225
38222
  var t, r;
38226
38223
  if (e = Or(e), e === void 0 || e === "millisecond" || !this.isValid())
38227
38224
  return this;
38228
- switch (r = this._isUTC ? Lx : Nx, e) {
38225
+ switch (r = this._isUTC ? L2 : N2, e) {
38229
38226
  case "year":
38230
38227
  t = r(this.year(), 0, 1);
38231
38228
  break;
@@ -38276,7 +38273,7 @@ function zH(e) {
38276
38273
  var t, r;
38277
38274
  if (e = Or(e), e === void 0 || e === "millisecond" || !this.isValid())
38278
38275
  return this;
38279
- switch (r = this._isUTC ? Lx : Nx, e) {
38276
+ switch (r = this._isUTC ? L2 : N2, e) {
38280
38277
  case "year":
38281
38278
  t = r(this.year() + 1, 0, 1) - 1;
38282
38279
  break;
@@ -38543,7 +38540,7 @@ Pc(["gg", "GG"], function(e, t, r, n) {
38543
38540
  t[n] = ee.parseTwoDigitYear(e);
38544
38541
  });
38545
38542
  function uG(e) {
38546
- return zx.call(
38543
+ return z2.call(
38547
38544
  this,
38548
38545
  e,
38549
38546
  this.week(),
@@ -38553,7 +38550,7 @@ function uG(e) {
38553
38550
  );
38554
38551
  }
38555
38552
  function dG(e) {
38556
- return zx.call(
38553
+ return z2.call(
38557
38554
  this,
38558
38555
  e,
38559
38556
  this.isoWeek(),
@@ -38576,16 +38573,16 @@ function hG() {
38576
38573
  var e = this.localeData()._week;
38577
38574
  return Gn(this.weekYear(), e.dow, e.doy);
38578
38575
  }
38579
- function zx(e, t, r, n, s) {
38576
+ function z2(e, t, r, n, s) {
38580
38577
  var a;
38581
38578
  return e == null ? $i(this, n, s).year : (a = Gn(e, n, s), t > a && (t = a), bG.call(this, e, t, r, n, s));
38582
38579
  }
38583
38580
  function bG(e, t, r, n, s) {
38584
- var a = xx(e, t, r, n, s), o = zi(a.year, 0, a.dayOfYear);
38581
+ var a = x2(e, t, r, n, s), o = zi(a.year, 0, a.dayOfYear);
38585
38582
  return this.year(o.getUTCFullYear()), this.month(o.getUTCMonth()), this.date(o.getUTCDate()), this;
38586
38583
  }
38587
38584
  de("Q", 0, "Qo", "quarter");
38588
- ae("Q", cx);
38585
+ ae("Q", c2);
38589
38586
  Xe("Q", function(e, t) {
38590
38587
  t[Mn] = (Oe(e) - 1) * 3;
38591
38588
  });
@@ -38602,10 +38599,10 @@ Xe(["D", "DD"], cn);
38602
38599
  Xe("Do", function(e, t) {
38603
38600
  t[cn] = Oe(e.match(nt)[0]);
38604
38601
  });
38605
- var $x = Oo("Date", !0);
38602
+ var $2 = Oo("Date", !0);
38606
38603
  de("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
38607
38604
  ae("DDD", $u);
38608
- ae("DDDD", lx);
38605
+ ae("DDDD", l2);
38609
38606
  Xe(["DDD", "DDDD"], function(e, t, r) {
38610
38607
  r._dayOfYear = Oe(e);
38611
38608
  });
@@ -38650,10 +38647,10 @@ de(0, ["SSSSSSSS", 8], 0, function() {
38650
38647
  de(0, ["SSSSSSSSS", 9], 0, function() {
38651
38648
  return this.millisecond() * 1e6;
38652
38649
  });
38653
- ae("S", $u, cx);
38650
+ ae("S", $u, c2);
38654
38651
  ae("SS", $u, br);
38655
- ae("SSS", $u, lx);
38656
- var hs, Hx;
38652
+ ae("SSS", $u, l2);
38653
+ var hs, H2;
38657
38654
  for (hs = "SSSS"; hs.length <= 9; hs += "S")
38658
38655
  ae(hs, Fo);
38659
38656
  function vG(e, t) {
@@ -38661,7 +38658,7 @@ function vG(e, t) {
38661
38658
  }
38662
38659
  for (hs = "S"; hs.length <= 9; hs += "S")
38663
38660
  Xe(hs, vG);
38664
- Hx = Oo("Milliseconds", !1);
38661
+ H2 = Oo("Milliseconds", !1);
38665
38662
  de("z", 0, 0, "zoneAbbr");
38666
38663
  de("zz", 0, 0, "zoneName");
38667
38664
  function EG() {
@@ -38690,9 +38687,9 @@ W.isSame = SH;
38690
38687
  W.isSameOrAfter = PH;
38691
38688
  W.isSameOrBefore = IH;
38692
38689
  W.isValid = qH;
38693
- W.lang = _x;
38694
- W.locale = Dx;
38695
- W.localeData = Mx;
38690
+ W.lang = _2;
38691
+ W.locale = D2;
38692
+ W.localeData = M2;
38696
38693
  W.max = q$;
38697
38694
  W.min = W$;
38698
38695
  W.parsingFlags = KH;
@@ -38716,12 +38713,12 @@ W.eraName = eG;
38716
38713
  W.eraNarrow = tG;
38717
38714
  W.eraAbbr = rG;
38718
38715
  W.eraYear = nG;
38719
- W.year = px;
38716
+ W.year = p2;
38720
38717
  W.isLeapYear = Uz;
38721
38718
  W.weekYear = uG;
38722
38719
  W.isoWeekYear = dG;
38723
38720
  W.quarter = W.quarters = yG;
38724
- W.month = yx;
38721
+ W.month = y2;
38725
38722
  W.daysInMonth = Gz;
38726
38723
  W.week = W.weeks = Xz;
38727
38724
  W.isoWeek = W.isoWeeks = Qz;
@@ -38729,7 +38726,7 @@ W.weeksInYear = mG;
38729
38726
  W.weeksInWeekYear = hG;
38730
38727
  W.isoWeeksInYear = pG;
38731
38728
  W.isoWeeksInISOWeekYear = fG;
38732
- W.date = $x;
38729
+ W.date = $2;
38733
38730
  W.day = W.days = d$;
38734
38731
  W.weekday = p$;
38735
38732
  W.isoWeekday = f$;
@@ -38737,7 +38734,7 @@ W.dayOfYear = gG;
38737
38734
  W.hour = W.hours = w$;
38738
38735
  W.minute = W.minutes = xG;
38739
38736
  W.second = W.seconds = wG;
38740
- W.millisecond = W.milliseconds = Hx;
38737
+ W.millisecond = W.milliseconds = H2;
38741
38738
  W.utcOffset = rH;
38742
38739
  W.utc = sH;
38743
38740
  W.local = aH;
@@ -38746,21 +38743,21 @@ W.hasAlignedHourOffset = iH;
38746
38743
  W.isDST = cH;
38747
38744
  W.isLocal = uH;
38748
38745
  W.isUtcOffset = dH;
38749
- W.isUtc = Bx;
38750
- W.isUTC = Bx;
38746
+ W.isUtc = B2;
38747
+ W.isUTC = B2;
38751
38748
  W.zoneAbbr = EG;
38752
38749
  W.zoneName = kG;
38753
38750
  W.dates = Ur(
38754
38751
  "dates accessor is deprecated. Use date instead.",
38755
- $x
38752
+ $2
38756
38753
  );
38757
38754
  W.months = Ur(
38758
38755
  "months accessor is deprecated. Use month instead",
38759
- yx
38756
+ y2
38760
38757
  );
38761
38758
  W.years = Ur(
38762
38759
  "years accessor is deprecated. Use year instead",
38763
- px
38760
+ p2
38764
38761
  );
38765
38762
  W.zone = Ur(
38766
38763
  "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
@@ -38776,7 +38773,7 @@ function CG(e) {
38776
38773
  function TG() {
38777
38774
  return rt.apply(null, arguments).parseZone();
38778
38775
  }
38779
- function Gx(e) {
38776
+ function G2(e) {
38780
38777
  return e;
38781
38778
  }
38782
38779
  var je = Q0.prototype;
@@ -38784,8 +38781,8 @@ je.calendar = uz;
38784
38781
  je.longDateFormat = mz;
38785
38782
  je.invalidDate = bz;
38786
38783
  je.ordinal = xz;
38787
- je.preparse = Gx;
38788
- je.postformat = Gx;
38784
+ je.preparse = G2;
38785
+ je.postformat = G2;
38789
38786
  je.relativeTime = vz;
38790
38787
  je.pastFuture = Ez;
38791
38788
  je.set = cz;
@@ -38816,7 +38813,7 @@ function ru(e, t, r, n) {
38816
38813
  var s = Xn(), a = yn().set(n, t);
38817
38814
  return s[r](a, e);
38818
38815
  }
38819
- function jx(e, t, r) {
38816
+ function j2(e, t, r) {
38820
38817
  if (qn(e) && (t = e, e = void 0), e = e || "", t != null)
38821
38818
  return ru(e, t, r, "month");
38822
38819
  var n, s = [];
@@ -38834,10 +38831,10 @@ function bm(e, t, r, n) {
38834
38831
  return i;
38835
38832
  }
38836
38833
  function AG(e, t) {
38837
- return jx(e, t, "months");
38834
+ return j2(e, t, "months");
38838
38835
  }
38839
38836
  function SG(e, t) {
38840
- return jx(e, t, "monthsShort");
38837
+ return j2(e, t, "monthsShort");
38841
38838
  }
38842
38839
  function PG(e, t, r) {
38843
38840
  return bm(e, t, r, "weekdays");
@@ -38886,24 +38883,24 @@ function FG() {
38886
38883
  var e = this._data;
38887
38884
  return this._milliseconds = An(this._milliseconds), this._days = An(this._days), this._months = An(this._months), e.milliseconds = An(e.milliseconds), e.seconds = An(e.seconds), e.minutes = An(e.minutes), e.hours = An(e.hours), e.months = An(e.months), e.years = An(e.years), this;
38888
38885
  }
38889
- function Vx(e, t, r, n) {
38886
+ function V2(e, t, r, n) {
38890
38887
  var s = Qr(t, r);
38891
38888
  return e._milliseconds += n * s._milliseconds, e._days += n * s._days, e._months += n * s._months, e._bubble();
38892
38889
  }
38893
38890
  function UG(e, t) {
38894
- return Vx(this, e, t, 1);
38891
+ return V2(this, e, t, 1);
38895
38892
  }
38896
38893
  function OG(e, t) {
38897
- return Vx(this, e, t, -1);
38894
+ return V2(this, e, t, -1);
38898
38895
  }
38899
38896
  function I1(e) {
38900
38897
  return e < 0 ? Math.floor(e) : Math.ceil(e);
38901
38898
  }
38902
38899
  function DG() {
38903
38900
  var e = this._milliseconds, t = this._days, r = this._months, n = this._data, s, a, o, i, c;
38904
- return e >= 0 && t >= 0 && r >= 0 || e <= 0 && t <= 0 && r <= 0 || (e += I1(yf(r) + t) * 864e5, t = 0, r = 0), n.milliseconds = e % 1e3, s = Tr(e / 1e3), n.seconds = s % 60, a = Tr(s / 60), n.minutes = a % 60, o = Tr(a / 60), n.hours = o % 24, t += Tr(o / 24), c = Tr(Wx(t)), r += c, t -= I1(yf(c)), i = Tr(r / 12), r %= 12, n.days = t, n.months = r, n.years = i, this;
38901
+ return e >= 0 && t >= 0 && r >= 0 || e <= 0 && t <= 0 && r <= 0 || (e += I1(yf(r) + t) * 864e5, t = 0, r = 0), n.milliseconds = e % 1e3, s = Tr(e / 1e3), n.seconds = s % 60, a = Tr(s / 60), n.minutes = a % 60, o = Tr(a / 60), n.hours = o % 24, t += Tr(o / 24), c = Tr(W2(t)), r += c, t -= I1(yf(c)), i = Tr(r / 12), r %= 12, n.days = t, n.months = r, n.years = i, this;
38905
38902
  }
38906
- function Wx(e) {
38903
+ function W2(e) {
38907
38904
  return e * 4800 / 146097;
38908
38905
  }
38909
38906
  function yf(e) {
@@ -38914,7 +38911,7 @@ function _G(e) {
38914
38911
  return NaN;
38915
38912
  var t, r, n = this._milliseconds;
38916
38913
  if (e = Or(e), e === "month" || e === "quarter" || e === "year")
38917
- switch (t = this._days + n / 864e5, r = this._months + Wx(t), e) {
38914
+ switch (t = this._days + n / 864e5, r = this._months + W2(t), e) {
38918
38915
  case "month":
38919
38916
  return r;
38920
38917
  case "quarter":
@@ -38946,7 +38943,7 @@ function Qn(e) {
38946
38943
  return this.as(e);
38947
38944
  };
38948
38945
  }
38949
- var qx = Qn("ms"), MG = Qn("s"), RG = Qn("m"), NG = Qn("h"), LG = Qn("d"), zG = Qn("w"), $G = Qn("M"), HG = Qn("Q"), GG = Qn("y"), jG = qx;
38946
+ var q2 = Qn("ms"), MG = Qn("s"), RG = Qn("m"), NG = Qn("h"), LG = Qn("d"), zG = Qn("w"), $G = Qn("M"), HG = Qn("Q"), GG = Qn("y"), jG = q2;
38950
38947
  function VG() {
38951
38948
  return Qr(this);
38952
38949
  }
@@ -39013,7 +39010,7 @@ Ne.abs = FG;
39013
39010
  Ne.add = UG;
39014
39011
  Ne.subtract = OG;
39015
39012
  Ne.as = _G;
39016
- Ne.asMilliseconds = qx;
39013
+ Ne.asMilliseconds = q2;
39017
39014
  Ne.asSeconds = MG;
39018
39015
  Ne.asMinutes = RG;
39019
39016
  Ne.asHours = NG;
@@ -39038,13 +39035,13 @@ Ne.humanize = aj;
39038
39035
  Ne.toISOString = Yu;
39039
39036
  Ne.toString = Yu;
39040
39037
  Ne.toJSON = Yu;
39041
- Ne.locale = Dx;
39042
- Ne.localeData = Mx;
39038
+ Ne.locale = D2;
39039
+ Ne.localeData = M2;
39043
39040
  Ne.toIsoString = Ur(
39044
39041
  "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
39045
39042
  Yu
39046
39043
  );
39047
- Ne.lang = _x;
39044
+ Ne.lang = _2;
39048
39045
  de("X", 0, 0, "unix");
39049
39046
  de("x", 0, 0, "valueOf");
39050
39047
  ae("x", Gu);
@@ -39129,7 +39126,7 @@ function ij(e) {
39129
39126
  }) || (t = n, r = e.apply(void 0, n)), r;
39130
39127
  };
39131
39128
  }
39132
- function Kx(e) {
39129
+ function K2(e) {
39133
39130
  return !!(e || "").match(/\d/);
39134
39131
  }
39135
39132
  function qa(e) {
@@ -39138,10 +39135,10 @@ function qa(e) {
39138
39135
  function cj(e) {
39139
39136
  return typeof e == "number" && isNaN(e);
39140
39137
  }
39141
- function Yx(e) {
39138
+ function Y2(e) {
39142
39139
  return qa(e) || cj(e) || typeof e == "number" && !isFinite(e);
39143
39140
  }
39144
- function Zx(e) {
39141
+ function Z2(e) {
39145
39142
  return e.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
39146
39143
  }
39147
39144
  function lj(e) {
@@ -39188,7 +39185,7 @@ function pj(e) {
39188
39185
  var r = e.split("."), n = r[0].replace(/^0+/, "") || "0", s = r[1] || "";
39189
39186
  return (t ? "-" : "") + n + (s ? "." + s : "");
39190
39187
  }
39191
- function Xx(e, t, r) {
39188
+ function X2(e, t, r) {
39192
39189
  for (var n = "", s = r ? "0" : "", a = 0; a <= t - 1; a++)
39193
39190
  n += e[a] || s;
39194
39191
  return n;
@@ -39196,7 +39193,7 @@ function Xx(e, t, r) {
39196
39193
  function B1(e, t) {
39197
39194
  return Array(t + 1).join(e);
39198
39195
  }
39199
- function Qx(e) {
39196
+ function Q2(e) {
39200
39197
  var t = e + "", r = t[0] === "-" ? "-" : "";
39201
39198
  r && (t = t.substring(1));
39202
39199
  var n = t.split(/[eE]/g), s = n[0], a = n[1];
@@ -39213,7 +39210,7 @@ function F1(e, t, r) {
39213
39210
  a && Number(u[0]) && (d = a.split("").reverse().reduce(function(g, E, v) {
39214
39211
  return g.length > v ? (Number(g[0]) + Number(E)).toString() + g.substring(1, g.length) : E + g;
39215
39212
  }, u[0]));
39216
- var f = Xx(u[1] || "", t, r), m = i ? "-" : "", b = n ? "." : "";
39213
+ var f = X2(u[1] || "", t, r), m = i ? "-" : "", b = n ? "." : "";
39217
39214
  return "" + m + d + b + f;
39218
39215
  }
39219
39216
  function ei(e, t) {
@@ -39252,7 +39249,7 @@ function hj(e, t, r, n, s, a) {
39252
39249
  a === void 0 && (a = xf);
39253
39250
  var o = dj(function(b, g) {
39254
39251
  var E, v;
39255
- return Yx(b) ? (v = "", E = "") : typeof b == "number" || g ? (v = typeof b == "number" ? Qx(b) : b, E = n(v)) : (v = s(b, void 0), E = n(v)), { formattedValue: E, numAsString: v };
39252
+ return Y2(b) ? (v = "", E = "") : typeof b == "number" || g ? (v = typeof b == "number" ? Q2(b) : b, E = n(v)) : (v = s(b, void 0), E = n(v)), { formattedValue: E, numAsString: v };
39256
39253
  }), i = ou(function() {
39257
39254
  return o(qa(e) ? t : e, r);
39258
39255
  }), c = i[0], l = i[1], u = function(b, g) {
@@ -39276,7 +39273,7 @@ function U1(e, t) {
39276
39273
  if (i === void 0 && (i = "thousand"), e === "" || e === "-")
39277
39274
  return e;
39278
39275
  var c = Zu(t), l = c.thousandSeparator, u = c.decimalSeparator, d = r !== 0 && e.indexOf(".") !== -1 || r && n, f = ym(e, o), m = f.beforeDecimal, b = f.afterDecimal, g = f.addNegation;
39279
- return r !== void 0 && (b = Xx(b, r, !!n)), l && (m = uj(m, l, i)), s && (m = s + m), a && (b = b + a), g && (m = "-" + m), e = m + (d && u || "") + b, e;
39276
+ return r !== void 0 && (b = X2(b, r, !!n)), l && (m = uj(m, l, i)), s && (m = s + m), a && (b = b + a), g && (m = "-" + m), e = m + (d && u || "") + b, e;
39280
39277
  }
39281
39278
  function Zu(e) {
39282
39279
  var t = e.decimalSeparator;
@@ -39294,7 +39291,7 @@ function bj(e, t) {
39294
39291
  return e = e.replace(/-/g, ""), s && !a && t && (e = "-" + e), e;
39295
39292
  }
39296
39293
  function yj(e, t) {
39297
- return new RegExp("(^-)|[0-9]|" + Zx(e), "g");
39294
+ return new RegExp("(^-)|[0-9]|" + Z2(e), "g");
39298
39295
  }
39299
39296
  function gj(e, t, r) {
39300
39297
  return e === "" ? !0 : !(t != null && t.match(/\d/)) && !(r != null && r.match(/\d/)) && typeof e == "string" && !isNaN(Number(e));
@@ -39307,7 +39304,7 @@ function xj(e, t, r) {
39307
39304
  var o = r.suffix;
39308
39305
  o === void 0 && (o = "");
39309
39306
  var i = r.decimalScale, c = t.from, l = t.to, u = l.start, d = l.end, f = Zu(r), m = f.allowedDecimalSeparators, b = f.decimalSeparator, g = e[d] === b;
39310
- if (Kx(e) && (e === a || e === o) && t.lastValue === "")
39307
+ if (K2(e) && (e === a || e === o) && t.lastValue === "")
39311
39308
  return e;
39312
39309
  if (d - u === 1 && m.indexOf(e[u]) !== -1) {
39313
39310
  var E = i === 0 ? "" : b;
@@ -39320,18 +39317,18 @@ function xj(e, t, r) {
39320
39317
  return H && (Z = 2), Z && (O = O.substring(Z), U -= Z, N -= Z), { value: O, start: U, end: N, hasNegation: L };
39321
39318
  }, w = v(e, u, d), A = w.hasNegation;
39322
39319
  n = w, e = n.value, u = n.start, d = n.end;
39323
- var C = v(t.lastValue, c.start, c.end), F = C.start, R = C.end, P = C.value, h = e.substring(u, d);
39324
- e.length && P.length && (F > P.length - o.length || R < a.length) && !(h && o.startsWith(h)) && (e = P);
39320
+ var C = v(t.lastValue, c.start, c.end), F = C.start, R = C.end, S = C.value, h = e.substring(u, d);
39321
+ e.length && S.length && (F > S.length - o.length || R < a.length) && !(h && o.startsWith(h)) && (e = S);
39325
39322
  var y = 0;
39326
39323
  e.startsWith(a) ? y += a.length : u < a.length && (y = u), e = e.substring(y), d -= y;
39327
39324
  var x = e.length, T = e.length - o.length;
39328
39325
  e.endsWith(o) ? x = T : (d > T || d > e.length - o.length) && (x = d), e = e.substring(0, x), e = bj(A ? "-" + e : e, s), e = (e.match(yj(b)) || []).join("");
39329
39326
  var I = e.indexOf(b);
39330
- e = e.replace(new RegExp(Zx(b), "g"), function(O, U) {
39327
+ e = e.replace(new RegExp(Z2(b), "g"), function(O, U) {
39331
39328
  return U === I ? "." : "";
39332
39329
  });
39333
- var B = ym(e, s), _ = B.beforeDecimal, k = B.afterDecimal, S = B.addNegation;
39334
- return l.end - l.start < c.end - c.start && _ === "" && g && !parseFloat(k) && (e = S ? "-" : ""), e;
39330
+ var B = ym(e, s), _ = B.beforeDecimal, k = B.afterDecimal, P = B.addNegation;
39331
+ return l.end - l.start < c.end - c.start && _ === "" && g && !parseFloat(k) && (e = P ? "-" : ""), e;
39335
39332
  }
39336
39333
  function wj(e, t) {
39337
39334
  var r = t.prefix;
@@ -39369,28 +39366,28 @@ function Ej(e) {
39369
39366
  a === void 0 && (a = xf);
39370
39367
  var o = e.thousandSeparator, i = e.decimalScale, c = e.fixedDecimalScale, l = e.prefix;
39371
39368
  l === void 0 && (l = "");
39372
- var u = e.defaultValue, d = e.value, f = e.valueIsNumericString, m = e.onValueChange, b = oj(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), g = Zu(e), E = g.decimalSeparator, v = g.allowedDecimalSeparators, w = function(S) {
39373
- return U1(S, e);
39374
- }, A = function(S, O) {
39375
- return xj(S, O, e);
39369
+ var u = e.defaultValue, d = e.value, f = e.valueIsNumericString, m = e.onValueChange, b = oj(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), g = Zu(e), E = g.decimalSeparator, v = g.allowedDecimalSeparators, w = function(P) {
39370
+ return U1(P, e);
39371
+ }, A = function(P, O) {
39372
+ return xj(P, O, e);
39376
39373
  }, C = qa(d) ? u : d, F = f ?? gj(C, l, t);
39377
39374
  qa(d) ? qa(u) || (F = F || typeof u == "number") : F = F || typeof d == "number";
39378
- var R = function(S) {
39379
- return Yx(S) ? S : (typeof S == "number" && (S = Qx(S)), F && typeof i == "number" ? F1(S, i, !!c) : S);
39380
- }, P = hj(R(d), R(u), !!F, w, A, m), h = P[0], y = h.numAsString, x = h.formattedValue, T = P[1], I = function(S) {
39381
- var O = S.target, U = S.key, N = O.selectionStart, L = O.selectionEnd, H = O.value;
39375
+ var R = function(P) {
39376
+ return Y2(P) ? P : (typeof P == "number" && (P = Q2(P)), F && typeof i == "number" ? F1(P, i, !!c) : P);
39377
+ }, S = hj(R(d), R(u), !!F, w, A, m), h = S[0], y = h.numAsString, x = h.formattedValue, T = S[1], I = function(P) {
39378
+ var O = P.target, U = P.key, N = O.selectionStart, L = O.selectionEnd, H = O.value;
39382
39379
  if (H === void 0 && (H = ""), (U === "Backspace" || U === "Delete") && L < l.length) {
39383
- S.preventDefault();
39380
+ P.preventDefault();
39384
39381
  return;
39385
39382
  }
39386
39383
  if (N !== L) {
39387
- s(S);
39384
+ s(P);
39388
39385
  return;
39389
39386
  }
39390
- U === "Backspace" && H[0] === "-" && N === l.length + 1 && r && ei(O, 1), i && c && (U === "Backspace" && H[N - 1] === E ? (ei(O, N - 1), S.preventDefault()) : U === "Delete" && H[N] === E && S.preventDefault()), v != null && v.includes(U) && H[N] === E && ei(O, N + 1);
39387
+ U === "Backspace" && H[0] === "-" && N === l.length + 1 && r && ei(O, 1), i && c && (U === "Backspace" && H[N - 1] === E ? (ei(O, N - 1), P.preventDefault()) : U === "Delete" && H[N] === E && P.preventDefault()), v != null && v.includes(U) && H[N] === E && ei(O, N + 1);
39391
39388
  var Z = o === !0 ? "," : o;
39392
- U === "Backspace" && H[N - 1] === Z && ei(O, N - 1), U === "Delete" && H[N] === Z && ei(O, N + 1), s(S);
39393
- }, B = function(S) {
39389
+ U === "Backspace" && H[N - 1] === Z && ei(O, N - 1), U === "Delete" && H[N] === Z && ei(O, N + 1), s(P);
39390
+ }, B = function(P) {
39394
39391
  var O = y;
39395
39392
  if (O.match(/\d/g) || (O = ""), n || (O = pj(O)), c && i && (O = F1(O, i, c)), O !== y) {
39396
39393
  var U = U1(O, e);
@@ -39399,15 +39396,15 @@ function Ej(e) {
39399
39396
  value: O,
39400
39397
  floatValue: parseFloat(O)
39401
39398
  }, {
39402
- event: S,
39399
+ event: P,
39403
39400
  source: gf.event
39404
39401
  });
39405
39402
  }
39406
- a(S);
39407
- }, _ = function(S) {
39408
- return S === E ? !0 : Kx(S);
39409
- }, k = function(S) {
39410
- var O = S.currentValue, U = S.lastValue, N = S.formattedValue, L = S.currentValueIndex, H = S.formattedValueIndex, Z = O[L], fe = N[H], ye = fj(U, O), ie = ye.to, pe = function(Ue) {
39403
+ a(P);
39404
+ }, _ = function(P) {
39405
+ return P === E ? !0 : K2(P);
39406
+ }, k = function(P) {
39407
+ var O = P.currentValue, U = P.lastValue, N = P.formattedValue, L = P.currentValueIndex, H = P.formattedValueIndex, Z = O[L], fe = N[H], ye = fj(U, O), ie = ye.to, pe = function(Ue) {
39411
39408
  return A(Ue).indexOf(".") + l.length;
39412
39409
  };
39413
39410
  return d === 0 && c && i && O[ie.start] === E && pe(O) < L && pe(N) > H ? !1 : L >= ie.start && L < ie.end && v && v.includes(Z) && fe === E ? !0 : Z === fe;
@@ -39420,14 +39417,14 @@ function Ej(e) {
39420
39417
  onValueChange: T,
39421
39418
  format: w,
39422
39419
  removeFormatting: A,
39423
- getCaretBoundary: function(S) {
39424
- return wj(S, e);
39420
+ getCaretBoundary: function(P) {
39421
+ return wj(P, e);
39425
39422
  },
39426
39423
  onKeyDown: I,
39427
39424
  onBlur: B
39428
39425
  });
39429
39426
  }
39430
- const Jx = (e, t) => Q(() => N0(t, e), [e, t]), Lr = (e, t) => Q(() => go(t, e), [e, t]), Do = () => {
39427
+ const J2 = (e, t) => Q(() => N0(t, e), [e, t]), Lr = (e, t) => Q(() => go(t, e), [e, t]), Do = () => {
39431
39428
  const { chainId: e } = ne();
39432
39429
  return Q(() => wo(e), [e]);
39433
39430
  }, _l = (e) => {
@@ -39698,7 +39695,7 @@ const gm = () => {
39698
39695
  }
39699
39696
  }
39700
39697
  }).mutateAsync;
39701
- }, e2 = (e) => {
39698
+ }, ex = (e) => {
39702
39699
  const t = Fe(), r = e.limitPriceUsd, n = e.srcAmountPerTrade, s = e.srcAmountPerTradeUsd, a = Q(() => !e.minDestAmountPerTrade || !e.totalTrades ? "" : z(e.minDestAmountPerTrade).multipliedBy(e.totalTrades).decimalPlaces(0).toFixed(), [e.minDestAmountPerTrade, e.totalTrades]), o = Q(() => !e.minDestAmountPerTradeUsd || !e.totalTrades ? "" : z(e.minDestAmountPerTradeUsd).multipliedBy(e.totalTrades).decimalPlaces(2).toFixed(), [e.minDestAmountPerTradeUsd, e.totalTrades]), i = e.triggerPrice, c = e.triggerPriceUsd, l = e.srcUsd, u = e.dstUsd, d = e.dstAmount;
39703
39700
  return Q(() => ({
39704
39701
  srcToken: e.srcToken,
@@ -39792,18 +39789,20 @@ const gm = () => {
39792
39789
  }, SW = (e, t, r) => {
39793
39790
  const n = Do();
39794
39791
  return Q(() => e == null ? void 0 : e.map((s) => ({
39792
+ srcToken: t,
39793
+ dstToken: r,
39795
39794
  srcAmount: go(s.inAmount, t == null ? void 0 : t.decimals),
39796
39795
  dstAmount: go(s.outAmount, r == null ? void 0 : r.decimals),
39797
39796
  timestamp: s.timestamp,
39798
39797
  txHash: s.txHash,
39799
39798
  explorerUrl: Ec(s.txHash, n == null ? void 0 : n.id),
39800
39799
  executionRate: gb(s.inAmount, s.outAmount, t == null ? void 0 : t.decimals, r == null ? void 0 : r.decimals)
39801
- })), [e, t, r, n]);
39802
- }, t2 = (e) => {
39800
+ })).filter((s) => s.srcToken !== void 0 && s.dstToken !== void 0), [e, t, r, n]);
39801
+ }, tx = (e) => {
39803
39802
  const { data: t } = _o(), { useToken: r, config: n } = ne(), s = Fe(), a = Q(
39804
39803
  () => t == null ? void 0 : t.find((F) => F.id === e),
39805
39804
  [t, e]
39806
- ) || {}, o = a2(a), i = r == null ? void 0 : r(a == null ? void 0 : a.srcTokenAddress), c = r == null ? void 0 : r(a == null ? void 0 : a.dstTokenAddress), l = Lr(i == null ? void 0 : i.decimals, a == null ? void 0 : a.srcAmount), u = IW(i, c, a), d = BW(i, c, a), f = FW(i, c, a), m = Lr(
39805
+ ) || {}, o = ax(a), i = r == null ? void 0 : r(a == null ? void 0 : a.srcTokenAddress), c = r == null ? void 0 : r(a == null ? void 0 : a.dstTokenAddress), l = Lr(i == null ? void 0 : i.decimals, a == null ? void 0 : a.srcAmount), u = IW(i, c, a), d = BW(i, c, a), f = FW(i, c, a), m = Lr(
39807
39806
  i == null ? void 0 : i.decimals,
39808
39807
  a == null ? void 0 : a.srcAmountFilled
39809
39808
  ), b = Lr(
@@ -39815,7 +39814,7 @@ const gm = () => {
39815
39814
  ), v = Lr(
39816
39815
  c == null ? void 0 : c.decimals,
39817
39816
  a == null ? void 0 : a.dstMinAmountPerTrade
39818
- ), w = Q(() => a ? a.version === 2 ? a.fillDelay : n.twapConfig ? yb(a, n.twapConfig) : 0 : 0, [a, n]), A = e2({
39817
+ ), w = Q(() => a ? a.version === 2 ? a.fillDelay : n.twapConfig ? yb(a, n.twapConfig) : 0 : 0, [a, n]), A = ex({
39819
39818
  srcToken: i,
39820
39819
  dstToken: c,
39821
39820
  account: a == null ? void 0 : a.maker,
@@ -39880,7 +39879,7 @@ const gm = () => {
39880
39879
  c,
39881
39880
  A
39882
39881
  ]);
39883
- }, r2 = (e) => {
39882
+ }, rx = (e) => {
39884
39883
  const t = Fe();
39885
39884
  return Q(() => {
39886
39885
  switch (e) {
@@ -39900,20 +39899,20 @@ const gm = () => {
39900
39899
  return t("twapMarket");
39901
39900
  }
39902
39901
  }, [t, e]);
39903
- }, n2 = () => {
39902
+ }, nx = () => {
39904
39903
  const { module: e } = ne(), t = J((r) => r.state.isMarketOrder);
39905
39904
  return Q(() => e === xe.TWAP ? t ? We.TWAP_MARKET : We.TWAP_LIMIT : e === xe.LIMIT ? We.LIMIT : e === xe.STOP_LOSS ? t ? We.STOP_LOSS_MARKET : We.STOP_LOSS_LIMIT : e === xe.TAKE_PROFIT ? We.TAKE_PROFIT : We.TWAP_MARKET, [e, t]);
39906
- }, s2 = () => {
39907
- const e = n2();
39908
- return r2(e);
39909
- }, a2 = (e) => r2(e == null ? void 0 : e.type), o2 = () => {
39905
+ }, sx = () => {
39906
+ const e = nx();
39907
+ return rx(e);
39908
+ }, ax = (e) => rx(e == null ? void 0 : e.type), ox = () => {
39910
39909
  const { account: e, config: t, chainId: r } = ne();
39911
39910
  return Q(
39912
39911
  () => ["useTwapOrderHistoryManager", e, t == null ? void 0 : t.adapter, r],
39913
39912
  [e, t, r]
39914
39913
  );
39915
39914
  }, PW = () => {
39916
- const { callbacks: e, refetchBalances: t } = ne(), r = Uf(), n = o2();
39915
+ const { callbacks: e, refetchBalances: t } = ne(), r = Uf(), n = ox();
39917
39916
  return ze(
39918
39917
  (s) => {
39919
39918
  var c;
@@ -39929,7 +39928,7 @@ const gm = () => {
39929
39928
  [r, n, e, t]
39930
39929
  );
39931
39930
  }, _o = () => {
39932
- const { account: e, config: t, chainId: r } = ne(), n = o2(), s = PW();
39931
+ const { account: e, config: t, chainId: r } = ne(), n = ox(), s = PW();
39933
39932
  return J3({
39934
39933
  refetchInterval: XL,
39935
39934
  refetchOnWindowFocus: !0,
@@ -39950,15 +39949,15 @@ const gm = () => {
39950
39949
  } : c);
39951
39950
  }
39952
39951
  });
39953
- }, i2 = (e = [], t = Ar.All) => {
39952
+ }, ix = (e = [], t = Ar.All) => {
39954
39953
  let r = e ?? [];
39955
39954
  return t === Ar.Open && (r = r.filter((n) => n.status === gt.Open)), t === Ar.Completed && (r = r.filter((n) => n.status === gt.Completed)), t === Ar.Canceled && (r = r.filter((n) => n.status === gt.Canceled)), t === Ar.Expired && (r = r.filter((n) => n.status === gt.Expired)), r.sort((n, s) => s.createdAt - n.createdAt);
39956
- }, c2 = () => {
39955
+ }, cx = () => {
39957
39956
  const e = J(
39958
39957
  (r) => r.state.orderHistoryStatusFilter
39959
39958
  ), { data: t } = _o();
39960
39959
  return Q(
39961
- () => i2(t, e),
39960
+ () => ix(t, e),
39962
39961
  [e, t]
39963
39962
  );
39964
39963
  }, IW = (e, t, r) => Q(() => {
@@ -39986,7 +39985,7 @@ const gm = () => {
39986
39985
  },
39987
39986
  [e, t]
39988
39987
  );
39989
- }, l2 = () => {
39988
+ }, lx = () => {
39990
39989
  const e = Fe();
39991
39990
  return ze(
39992
39991
  (t) => {
@@ -40007,7 +40006,7 @@ const gm = () => {
40007
40006
  [e]
40008
40007
  );
40009
40008
  }, OW = () => {
40010
- const e = l2();
40009
+ const e = lx();
40011
40010
  return Q(() => Object.values(Ar).map((t) => ({
40012
40011
  text: e(t),
40013
40012
  value: t
@@ -40018,15 +40017,15 @@ const gm = () => {
40018
40017
  isLoading: t,
40019
40018
  refetch: r,
40020
40019
  isRefetching: n
40021
- } = _o(), { mutateAsync: s, isPending: a } = u2(), o = J((F) => F.state.selectedOrderID), i = J((F) => F.updateState), c = J(
40020
+ } = _o(), { mutateAsync: s, isPending: a } = ux(), o = J((F) => F.state.selectedOrderID), i = J((F) => F.updateState), c = J(
40022
40021
  (F) => F.state.orderHistoryStatusFilter
40023
40022
  ), l = J(
40024
40023
  (F) => F.state.showSelectedOrderFills
40025
40024
  ), u = ze(
40026
40025
  (F) => i({ orderHistoryStatusFilter: F }),
40027
40026
  []
40028
- ), d = OW(), f = c2(), m = t2(o), b = Q(
40029
- () => i2(e, Ar.Open),
40027
+ ), d = OW(), f = cx(), m = tx(o), b = Q(
40028
+ () => ix(e, Ar.Open),
40030
40029
  [e]
40031
40030
  ), g = ze(
40032
40031
  (F) => {
@@ -40088,7 +40087,7 @@ const gm = () => {
40088
40087
  }
40089
40088
  }
40090
40089
  });
40091
- }, u2 = () => {
40090
+ }, ux = () => {
40092
40091
  const { account: e, walletClient: t, publicClient: r, config: n, callbacks: s, chainId: a } = ne(), o = gm(), i = DW().mutateAsync, c = J((d) => d.updateState), l = async (d) => {
40093
40092
  bt.onCancelOrderRequest(
40094
40093
  d.map((f) => f.id.toString()),
@@ -40161,14 +40160,14 @@ const gm = () => {
40161
40160
  }
40162
40161
  }
40163
40162
  });
40164
- }, Ju = 0, Bs = 1, Mo = 2, d2 = 4;
40163
+ }, Ju = 0, Bs = 1, Mo = 2, dx = 4;
40165
40164
  function O1(e) {
40166
40165
  return () => e;
40167
40166
  }
40168
40167
  function _W(e) {
40169
40168
  e();
40170
40169
  }
40171
- function p2(e, t) {
40170
+ function px(e, t) {
40172
40171
  return (r) => e(t(r));
40173
40172
  }
40174
40173
  function D1(e, t) {
@@ -40206,7 +40205,7 @@ function wm(e) {
40206
40205
  e(Mo);
40207
40206
  }
40208
40207
  function ct(e) {
40209
- return e(d2);
40208
+ return e(dx);
40210
40209
  }
40211
40210
  function ce(e, t) {
40212
40211
  return qe(e, MW(t, Ju));
@@ -40225,10 +40224,10 @@ function _1(e) {
40225
40224
  }, e);
40226
40225
  };
40227
40226
  }
40228
- function f2(e, t) {
40227
+ function fx(e, t) {
40229
40228
  return e === t;
40230
40229
  }
40231
- function tt(e = f2) {
40230
+ function tt(e = fx) {
40232
40231
  let t;
40233
40232
  return (r) => (n) => {
40234
40233
  e(t, n) || (t = n, r(n));
@@ -40240,7 +40239,7 @@ function he(e) {
40240
40239
  };
40241
40240
  }
40242
40241
  function re(e) {
40243
- return (t) => p2(t, e);
40242
+ return (t) => px(t, e);
40244
40243
  }
40245
40244
  function on(e) {
40246
40245
  return (t) => () => {
@@ -40322,7 +40321,7 @@ function q(e) {
40322
40321
  s(t);
40323
40322
  break;
40324
40323
  }
40325
- case d2:
40324
+ case dx:
40326
40325
  return t;
40327
40326
  }
40328
40327
  return r(n, s);
@@ -40392,7 +40391,7 @@ function vt(...e) {
40392
40391
  }
40393
40392
  };
40394
40393
  }
40395
- function me(e, t = f2) {
40394
+ function me(e, t = fx) {
40396
40395
  return j(e, tt(t));
40397
40396
  }
40398
40397
  function wf(...e) {
@@ -40496,7 +40495,7 @@ function WW(e, t, r, n) {
40496
40495
  function M1(e, t, r) {
40497
40496
  return t !== "normal" && !(t != null && t.endsWith("px")) && r(`${e} was not resolved to pixel value correctly`, t, sr.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
40498
40497
  }
40499
- function m2(e, t, r) {
40498
+ function mx(e, t, r) {
40500
40499
  const n = te.useRef(null), s = te.useCallback(
40501
40500
  (c) => {
40502
40501
  if (!(c != null && c.offsetParent))
@@ -40579,7 +40578,7 @@ const Kt = Ve(
40579
40578
  [],
40580
40579
  { singleton: !0 }
40581
40580
  ), Gi = { lvl: 0 };
40582
- function h2(e, t) {
40581
+ function hx(e, t) {
40583
40582
  const r = e.length;
40584
40583
  if (r === 0)
40585
40584
  return [];
@@ -40610,7 +40609,7 @@ function Yr(e, t, r = "k") {
40610
40609
  return Yr(e.l, t, r);
40611
40610
  }
40612
40611
  function cr(e, t, r) {
40613
- return Ze(e) ? g2(t, r, 1) : t === e.k ? kt(e, { k: t, v: r }) : t < e.k ? R1(kt(e, { l: cr(e.l, t, r) })) : R1(kt(e, { r: cr(e.r, t, r) }));
40612
+ return Ze(e) ? gx(t, r, 1) : t === e.k ? kt(e, { k: t, v: r }) : t < e.k ? R1(kt(e, { l: cr(e.l, t, r) })) : R1(kt(e, { r: cr(e.r, t, r) }));
40614
40613
  }
40615
40614
  function Ka() {
40616
40615
  return Gi;
@@ -40630,8 +40629,8 @@ function vf(e, t) {
40630
40629
  if (Ze(s))
40631
40630
  return n;
40632
40631
  {
40633
- const [a, o] = y2(n);
40634
- return Ml(kt(e, { k: a, l: b2(n), v: o }));
40632
+ const [a, o] = yx(n);
40633
+ return Ml(kt(e, { k: a, l: bx(n), v: o }));
40635
40634
  }
40636
40635
  } else return t < r ? Ml(kt(e, { l: vf(n, t) })) : Ml(kt(e, { r: vf(s, t) }));
40637
40636
  }
@@ -40651,7 +40650,7 @@ function Ml(e) {
40651
40650
  return e;
40652
40651
  if (r > n.lvl + 1) {
40653
40652
  if (Zd(t))
40654
- return x2(kt(e, { lvl: r - 1 }));
40653
+ return xx(kt(e, { lvl: r - 1 }));
40655
40654
  if (!Ze(t) && !Ze(t.r))
40656
40655
  return kt(t.r, {
40657
40656
  l: kt(t, { r: t.r.l }),
@@ -40680,7 +40679,7 @@ function Ml(e) {
40680
40679
  }
40681
40680
  }
40682
40681
  function kt(e, t) {
40683
- return g2(
40682
+ return gx(
40684
40683
  t.k !== void 0 ? t.k : e.k,
40685
40684
  t.v !== void 0 ? t.v : e.v,
40686
40685
  t.lvl !== void 0 ? t.lvl : e.lvl,
@@ -40688,22 +40687,22 @@ function kt(e, t) {
40688
40687
  t.r !== void 0 ? t.r : e.r
40689
40688
  );
40690
40689
  }
40691
- function b2(e) {
40692
- return Ze(e.r) ? e.l : Ml(kt(e, { r: b2(e.r) }));
40690
+ function bx(e) {
40691
+ return Ze(e.r) ? e.l : Ml(kt(e, { r: bx(e.r) }));
40693
40692
  }
40694
40693
  function Zd(e) {
40695
40694
  return Ze(e) || e.lvl > e.r.lvl;
40696
40695
  }
40697
- function y2(e) {
40698
- return Ze(e.r) ? [e.k, e.v] : y2(e.r);
40696
+ function yx(e) {
40697
+ return Ze(e.r) ? [e.k, e.v] : yx(e.r);
40699
40698
  }
40700
- function g2(e, t, r, n = Gi, s = Gi) {
40699
+ function gx(e, t, r, n = Gi, s = Gi) {
40701
40700
  return { k: e, l: n, lvl: r, r: s, v: t };
40702
40701
  }
40703
40702
  function R1(e) {
40704
- return kf(x2(e));
40703
+ return kf(xx(e));
40705
40704
  }
40706
- function x2(e) {
40705
+ function xx(e) {
40707
40706
  const { l: t } = e;
40708
40707
  return !Ze(t) && t.lvl === e.lvl ? kt(t, { r: kt(e, { l: t.r }) }) : e;
40709
40708
  }
@@ -40712,9 +40711,9 @@ function kf(e) {
40712
40711
  return !Ze(r) && !Ze(r.r) && r.lvl === t && r.r.lvl === t ? kt(r, { l: kt(e, { r: r.l }), lvl: t + 1 }) : e;
40713
40712
  }
40714
40713
  function qW(e) {
40715
- return h2(e, ({ k: t, v: r }) => ({ index: t, value: r }));
40714
+ return hx(e, ({ k: t, v: r }) => ({ index: t, value: r }));
40716
40715
  }
40717
- function w2(e, t) {
40716
+ function wx(e, t) {
40718
40717
  return !!(e && e.startIndex === t.startIndex && e.endIndex === t.endIndex);
40719
40718
  }
40720
40719
  function Vi(e, t) {
@@ -40725,7 +40724,7 @@ const Em = Ve(
40725
40724
  [],
40726
40725
  { singleton: !0 }
40727
40726
  );
40728
- function v2(e, t, r) {
40727
+ function vx(e, t, r) {
40729
40728
  return e[nu(e, t, r)];
40730
40729
  }
40731
40730
  function nu(e, t, r, n = 0) {
@@ -40797,10 +40796,10 @@ function QW({ offset: e }, t) {
40797
40796
  function Wi(e, t, r) {
40798
40797
  if (t.length === 0)
40799
40798
  return 0;
40800
- const { index: n, offset: s, size: a } = v2(t, e, km), o = e - n, i = a * o + (o - 1) * r + s;
40799
+ const { index: n, offset: s, size: a } = vx(t, e, km), o = e - n, i = a * o + (o - 1) * r + s;
40801
40800
  return i > 0 ? i + r : i;
40802
40801
  }
40803
- function E2(e, t) {
40802
+ function Ex(e, t) {
40804
40803
  if (!td(t))
40805
40804
  return e;
40806
40805
  let r = 0;
@@ -40808,17 +40807,17 @@ function E2(e, t) {
40808
40807
  r++;
40809
40808
  return e + r;
40810
40809
  }
40811
- function k2(e, t, r) {
40810
+ function kx(e, t, r) {
40812
40811
  if (XW(e))
40813
40812
  return t.groupIndices[e.groupIndex] + 1;
40814
40813
  {
40815
40814
  const n = e.index === "LAST" ? r : e.index;
40816
- let s = E2(n, t);
40815
+ let s = Ex(n, t);
40817
40816
  return s = Math.max(0, s, Math.min(r, s)), s;
40818
40817
  }
40819
40818
  }
40820
40819
  function JW(e, t, r, n = 0) {
40821
- return n > 0 && (t = Math.max(t, v2(e, n, km).offset)), h2(KW(e, t, r, QW), rq);
40820
+ return n > 0 && (t = Math.max(t, vx(e, n, km).offset)), hx(KW(e, t, r, QW), rq);
40822
40821
  }
40823
40822
  function eq(e, [t, r, n, s]) {
40824
40823
  t.length > 0 && n("received item sizes", t, sr.DEBUG);
@@ -40889,31 +40888,31 @@ const sq = {
40889
40888
  offsetWidth: "width"
40890
40889
  }, xn = Ve(
40891
40890
  ([{ log: e }, { recalcInProgress: t }]) => {
40892
- const r = Re(), n = Re(), s = Lt(n, 0), a = Re(), o = Re(), i = q(0), c = q([]), l = q(void 0), u = q(void 0), d = q(void 0), f = q(void 0), m = q((P, h) => Ts(P, sq[h])), b = q(void 0), g = q(0), E = YW(), v = Lt(
40891
+ const r = Re(), n = Re(), s = Lt(n, 0), a = Re(), o = Re(), 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) => Ts(S, sq[h])), b = q(void 0), g = q(0), E = YW(), v = Lt(
40893
40892
  j(r, Pe(c, e, g), ln(eq, E), tt()),
40894
40893
  E
40895
40894
  ), w = Lt(
40896
40895
  j(
40897
40896
  c,
40898
40897
  tt(),
40899
- ln((P, h) => ({ current: h, prev: P.current }), {
40898
+ ln((S, h) => ({ current: h, prev: S.current }), {
40900
40899
  current: [],
40901
40900
  prev: []
40902
40901
  }),
40903
- re(({ prev: P }) => P)
40902
+ re(({ prev: S }) => S)
40904
40903
  ),
40905
40904
  []
40906
40905
  );
40907
40906
  ce(
40908
40907
  j(
40909
40908
  c,
40910
- he((P) => P.length > 0),
40909
+ he((S) => S.length > 0),
40911
40910
  Pe(v, g),
40912
- re(([P, h, y]) => {
40913
- const x = P.reduce((T, I, B) => cr(T, I, Wi(I, h.offsetTree, y) || B), Ka());
40911
+ re(([S, h, y]) => {
40912
+ const x = S.reduce((T, I, B) => cr(T, I, Wi(I, h.offsetTree, y) || B), Ka());
40914
40913
  return {
40915
40914
  ...h,
40916
- groupIndices: P,
40915
+ groupIndices: S,
40917
40916
  groupOffsetTree: x
40918
40917
  };
40919
40918
  })
@@ -40923,12 +40922,12 @@ const sq = {
40923
40922
  j(
40924
40923
  n,
40925
40924
  Pe(v),
40926
- he(([P, { lastIndex: h }]) => P < h),
40927
- re(([P, { lastIndex: h, lastSize: y }]) => [
40925
+ he(([S, { lastIndex: h }]) => S < h),
40926
+ re(([S, { lastIndex: h, lastSize: y }]) => [
40928
40927
  {
40929
40928
  endIndex: h,
40930
40929
  size: y,
40931
- startIndex: P
40930
+ startIndex: S
40932
40931
  }
40933
40932
  ])
40934
40933
  ),
@@ -40937,32 +40936,32 @@ const sq = {
40937
40936
  const A = Lt(
40938
40937
  j(
40939
40938
  l,
40940
- re((P) => P === void 0)
40939
+ re((S) => S === void 0)
40941
40940
  ),
40942
40941
  !0
40943
40942
  );
40944
40943
  ce(
40945
40944
  j(
40946
40945
  u,
40947
- he((P) => P !== void 0 && Ze(ct(v).sizeTree)),
40948
- re((P) => {
40946
+ he((S) => S !== void 0 && Ze(ct(v).sizeTree)),
40947
+ re((S) => {
40949
40948
  const h = ct(d), y = ct(c).length > 0;
40950
40949
  return h ? y ? [
40951
40950
  { endIndex: 0, size: h, startIndex: 0 },
40952
- { endIndex: 1, size: P, startIndex: 1 }
40953
- ] : [] : [{ endIndex: 0, size: P, startIndex: 0 }];
40951
+ { endIndex: 1, size: S, startIndex: 1 }
40952
+ ] : [] : [{ endIndex: 0, size: S, startIndex: 0 }];
40954
40953
  })
40955
40954
  ),
40956
40955
  r
40957
40956
  ), ce(
40958
40957
  j(
40959
40958
  f,
40960
- he((P) => P !== void 0 && P.length > 0 && Ze(ct(v).sizeTree)),
40961
- re((P) => {
40959
+ he((S) => S !== void 0 && S.length > 0 && Ze(ct(v).sizeTree)),
40960
+ re((S) => {
40962
40961
  const h = [];
40963
- let y = P[0], x = 0;
40964
- for (let T = 1; T < P.length; T++) {
40965
- const I = P[T];
40962
+ let y = S[0], x = 0;
40963
+ for (let T = 1; T < S.length; T++) {
40964
+ const I = S[T];
40966
40965
  I !== y && (h.push({
40967
40966
  endIndex: T - 1,
40968
40967
  size: y,
@@ -40970,7 +40969,7 @@ const sq = {
40970
40969
  }), y = I, x = T);
40971
40970
  }
40972
40971
  return h.push({
40973
- endIndex: P.length - 1,
40972
+ endIndex: S.length - 1,
40974
40973
  size: y,
40975
40974
  startIndex: x
40976
40975
  }), h;
@@ -40981,11 +40980,11 @@ const sq = {
40981
40980
  j(
40982
40981
  c,
40983
40982
  Pe(d, u),
40984
- he(([, P, h]) => P !== void 0 && h !== void 0),
40985
- re(([P, h, y]) => {
40983
+ he(([, S, h]) => S !== void 0 && h !== void 0),
40984
+ re(([S, h, y]) => {
40986
40985
  const x = [];
40987
- for (let T = 0; T < P.length; T++) {
40988
- const I = P[T], B = P[T + 1];
40986
+ for (let T = 0; T < S.length; T++) {
40987
+ const I = S[T], B = S[T + 1];
40989
40988
  x.push({
40990
40989
  startIndex: I,
40991
40990
  endIndex: I,
@@ -41006,35 +41005,35 @@ const sq = {
41006
41005
  r,
41007
41006
  Pe(v),
41008
41007
  ln(
41009
- ({ sizes: P }, [h, y]) => ({
41010
- changed: y !== P,
41008
+ ({ sizes: S }, [h, y]) => ({
41009
+ changed: y !== S,
41011
41010
  sizes: y
41012
41011
  }),
41013
41012
  { changed: !1, sizes: E }
41014
41013
  ),
41015
- re((P) => P.changed)
41014
+ re((S) => S.changed)
41016
41015
  )
41017
41016
  );
41018
41017
  qe(
41019
41018
  j(
41020
41019
  i,
41021
41020
  ln(
41022
- (P, h) => ({ diff: P.prev - h, prev: h }),
41021
+ (S, h) => ({ diff: S.prev - h, prev: h }),
41023
41022
  { diff: 0, prev: 0 }
41024
41023
  ),
41025
- re((P) => P.diff)
41024
+ re((S) => S.diff)
41026
41025
  ),
41027
- (P) => {
41026
+ (S) => {
41028
41027
  const { groupIndices: h } = ct(v);
41029
- if (P > 0)
41030
- Te(t, !0), Te(a, P + N1(P, h));
41031
- else if (P < 0) {
41028
+ if (S > 0)
41029
+ Te(t, !0), Te(a, S + N1(S, h));
41030
+ else if (S < 0) {
41032
41031
  const y = ct(w);
41033
- y.length > 0 && (P -= N1(-P, y)), Te(o, P);
41032
+ y.length > 0 && (S -= N1(-S, y)), Te(o, S);
41034
41033
  }
41035
41034
  }
41036
- ), qe(j(i, Pe(e)), ([P, h]) => {
41037
- P < 0 && h(
41035
+ ), qe(j(i, Pe(e)), ([S, h]) => {
41036
+ S < 0 && h(
41038
41037
  "`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",
41039
41038
  { firstItemIndex: i },
41040
41039
  sr.ERROR
@@ -41045,42 +41044,42 @@ const sq = {
41045
41044
  j(
41046
41045
  a,
41047
41046
  Pe(v),
41048
- re(([P, h]) => {
41047
+ re(([S, h]) => {
41049
41048
  const y = h.groupIndices.length > 0, x = [], T = h.lastSize;
41050
41049
  if (y) {
41051
41050
  const I = ji(h.sizeTree, 0);
41052
41051
  let B = 0, _ = 0;
41053
- for (; B < P; ) {
41054
- const S = h.groupIndices[_], O = h.groupIndices.length === _ + 1 ? 1 / 0 : h.groupIndices[_ + 1] - S - 1;
41052
+ for (; B < S; ) {
41053
+ const P = h.groupIndices[_], O = h.groupIndices.length === _ + 1 ? 1 / 0 : h.groupIndices[_ + 1] - P - 1;
41055
41054
  x.push({
41056
- endIndex: S,
41055
+ endIndex: P,
41057
41056
  size: I,
41058
- startIndex: S
41057
+ startIndex: P
41059
41058
  }), x.push({
41060
- endIndex: S + 1 + O - 1,
41059
+ endIndex: P + 1 + O - 1,
41061
41060
  size: T,
41062
- startIndex: S + 1
41061
+ startIndex: P + 1
41063
41062
  }), _++, B += O + 1;
41064
41063
  }
41065
41064
  const k = Gs(h.sizeTree);
41066
- return B !== P && k.shift(), k.reduce(
41067
- (S, { k: O, v: U }) => {
41068
- let N = S.ranges;
41069
- return S.prevSize !== 0 && (N = [
41070
- ...S.ranges,
41065
+ return B !== S && k.shift(), k.reduce(
41066
+ (P, { k: O, v: U }) => {
41067
+ let N = P.ranges;
41068
+ return P.prevSize !== 0 && (N = [
41069
+ ...P.ranges,
41071
41070
  {
41072
- endIndex: O + P - 1,
41073
- size: S.prevSize,
41074
- startIndex: S.prevIndex
41071
+ endIndex: O + S - 1,
41072
+ size: P.prevSize,
41073
+ startIndex: P.prevIndex
41075
41074
  }
41076
41075
  ]), {
41077
- prevIndex: O + P,
41076
+ prevIndex: O + S,
41078
41077
  prevSize: U,
41079
41078
  ranges: N
41080
41079
  };
41081
41080
  },
41082
41081
  {
41083
- prevIndex: P,
41082
+ prevIndex: S,
41084
41083
  prevSize: 0,
41085
41084
  ranges: x
41086
41085
  }
@@ -41088,9 +41087,9 @@ const sq = {
41088
41087
  }
41089
41088
  return Gs(h.sizeTree).reduce(
41090
41089
  (I, { k: B, v: _ }) => ({
41091
- prevIndex: B + P,
41090
+ prevIndex: B + S,
41092
41091
  prevSize: _,
41093
- ranges: [...I.ranges, { endIndex: B + P - 1, size: I.prevSize, startIndex: I.prevIndex }]
41092
+ ranges: [...I.ranges, { endIndex: B + S - 1, size: I.prevSize, startIndex: I.prevIndex }]
41094
41093
  }),
41095
41094
  {
41096
41095
  prevIndex: 0,
@@ -41106,8 +41105,8 @@ const sq = {
41106
41105
  j(
41107
41106
  o,
41108
41107
  Pe(v, g),
41109
- re(([P, { offsetTree: h }, y]) => {
41110
- const x = -P;
41108
+ re(([S, { offsetTree: h }, y]) => {
41109
+ const x = -S;
41111
41110
  return Wi(x, h, y);
41112
41111
  })
41113
41112
  )
@@ -41116,23 +41115,23 @@ const sq = {
41116
41115
  j(
41117
41116
  o,
41118
41117
  Pe(v, g),
41119
- re(([P, h, y]) => {
41118
+ re(([S, h, y]) => {
41120
41119
  if (h.groupIndices.length > 0) {
41121
41120
  if (Ze(h.sizeTree))
41122
41121
  return h;
41123
41122
  let x = Ka();
41124
41123
  const T = ct(w);
41125
41124
  let I = 0, B = 0, _ = 0;
41126
- for (; I < -P; ) {
41125
+ for (; I < -S; ) {
41127
41126
  _ = T[B];
41128
41127
  const k = T[B + 1] - _ - 1;
41129
41128
  B++, I += k + 1;
41130
41129
  }
41131
- if (x = Gs(h.sizeTree).reduce((k, { k: S, v: O }) => cr(k, Math.max(0, S + P), O), x), I !== -P) {
41130
+ if (x = Gs(h.sizeTree).reduce((k, { k: P, v: O }) => cr(k, Math.max(0, P + S), O), x), I !== -S) {
41132
41131
  const k = ji(h.sizeTree, _);
41133
41132
  x = cr(x, 0, k);
41134
- const S = Yr(h.sizeTree, -P + 1)[1];
41135
- x = cr(x, 1, S);
41133
+ const P = Yr(h.sizeTree, -S + 1)[1];
41134
+ x = cr(x, 1, P);
41136
41135
  }
41137
41136
  return {
41138
41137
  ...h,
@@ -41140,7 +41139,7 @@ const sq = {
41140
41139
  ...Cf(h.offsetTree, 0, x, y)
41141
41140
  };
41142
41141
  } else {
41143
- const x = Gs(h.sizeTree).reduce((T, { k: I, v: B }) => cr(T, Math.max(0, I + P), B), Ka());
41142
+ const x = Gs(h.sizeTree).reduce((T, { k: I, v: B }) => cr(T, Math.max(0, I + S), B), Ka());
41144
41143
  return {
41145
41144
  ...h,
41146
41145
  sizeTree: x,
@@ -41186,7 +41185,7 @@ function aq(e) {
41186
41185
  }
41187
41186
  );
41188
41187
  }
41189
- const C2 = Ve(
41188
+ const Cx = Ve(
41190
41189
  ([{ groupIndices: e, sizes: t, totalCount: r }, { headerHeight: n, scrollTop: s }]) => {
41191
41190
  const a = Re(), o = Re(), i = ur(j(a, re(aq)));
41192
41191
  return ce(
@@ -41229,7 +41228,7 @@ const C2 = Ve(
41229
41228
  st(Fs),
41230
41229
  { singleton: !0 }
41231
41230
  ), oq = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
41232
- function T2(e) {
41231
+ function Tx(e) {
41233
41232
  const t = typeof e == "number" ? { index: e } : e;
41234
41233
  return t.align || (t.align = "start"), (!t.behavior || !oq) && (t.behavior = "auto"), t.offset || (t.offset = 0), t;
41235
41234
  }
@@ -41260,14 +41259,14 @@ const Ic = Ve(
41260
41259
  Pe(e, a, s),
41261
41260
  re(
41262
41261
  ([
41263
- [C, F, R, P, h, y, x, T],
41262
+ [C, F, R, S, h, y, x, T],
41264
41263
  I,
41265
41264
  B,
41266
41265
  _
41267
41266
  ]) => {
41268
- const k = T2(C), { align: S, behavior: O, offset: U } = k, N = P - 1, L = k2(k, F, N);
41267
+ const k = Tx(C), { align: P, behavior: O, offset: U } = k, N = S - 1, L = kx(k, F, N);
41269
41268
  let H = Wi(L, F.offsetTree, I) + y;
41270
- S === "end" ? (H += B + Yr(F.sizeTree, L)[1] - R + _, L === N && (H += x)) : S === "center" ? H += (B + Yr(F.sizeTree, L)[1] - R + _) / 2 : H -= h, U && (H += U);
41269
+ P === "end" ? (H += B + Yr(F.sizeTree, L)[1] - R + _, L === N && (H += x)) : P === "center" ? H += (B + Yr(F.sizeTree, L)[1] - R + _) / 2 : H -= h, U && (H += U);
41271
41270
  const Z = (fe) => {
41272
41271
  A(), fe ? (T("retrying to scroll to", { location: C }, sr.DEBUG), Te(m, C)) : (Te(b, !0), T("list did not change, scroll successful", {}, sr.DEBUG));
41273
41272
  };
@@ -41359,7 +41358,7 @@ const Bc = Ve(
41359
41358
  st(xn, Kt, Ic, Us),
41360
41359
  { singleton: !0 }
41361
41360
  );
41362
- function A2(e, t) {
41361
+ function Ax(e, t) {
41363
41362
  return Math.abs(e - t) < 1.01;
41364
41363
  }
41365
41364
  const qi = "up", ii = "down", cq = "none", lq = {
@@ -41393,7 +41392,7 @@ const qi = "up", ii = "down", cq = "none", lq = {
41393
41392
  const b = ur(
41394
41393
  j(
41395
41394
  vt(n, me(a), me(t), me(e), me(u)),
41396
- ln((w, [{ scrollHeight: A, scrollTop: C }, F, R, P, h]) => {
41395
+ ln((w, [{ scrollHeight: A, scrollTop: C }, F, R, S, h]) => {
41397
41396
  const y = C + F - A > -h, x = {
41398
41397
  scrollHeight: A,
41399
41398
  scrollTop: C,
@@ -41422,7 +41421,7 @@ const qi = "up", ii = "down", cq = "none", lq = {
41422
41421
  n,
41423
41422
  ln(
41424
41423
  (w, { scrollHeight: A, scrollTop: C, viewportHeight: F }) => {
41425
- if (A2(w.scrollHeight, A))
41424
+ if (Ax(w.scrollHeight, A))
41426
41425
  return {
41427
41426
  changed: !1,
41428
41427
  jump: 0,
@@ -41539,11 +41538,11 @@ const Am = Ve(
41539
41538
  A
41540
41539
  ]) => {
41541
41540
  const C = u - w, F = E + v, R = Math.max(f - C, 0);
41542
- let P = L1;
41541
+ let S = L1;
41543
41542
  const h = $1(A, Ki), y = $1(A, Yi);
41544
- return m -= w, m += f + v, b += f + v, b -= w, m > u + F - h && (P = qi), b < u - R + d + y && (P = ii), P !== L1 ? [
41545
- Math.max(C - f - z1(g, Ki, P) - h, 0),
41546
- C - R - v + d + z1(g, Yi, P) + y
41543
+ return m -= w, m += f + v, b += f + v, b -= w, m > u + F - h && (S = qi), b < u - R + d + y && (S = ii), S !== L1 ? [
41544
+ Math.max(C - f - z1(g, Ki, S) - h, 0),
41545
+ C - R - v + d + z1(g, Yi, S) + y
41547
41546
  ] : null;
41548
41547
  }
41549
41548
  ),
@@ -41567,7 +41566,7 @@ const Am = Ve(
41567
41566
  );
41568
41567
  function dq(e, t, r) {
41569
41568
  if (td(t)) {
41570
- const n = E2(e, t);
41569
+ const n = Ex(e, t);
41571
41570
  return [
41572
41571
  { index: Yr(t.groupOffsetTree, n)[0], offset: 0, size: 0 },
41573
41572
  { data: r == null ? void 0 : r[0], index: n, offset: 0, size: 0 }
@@ -41607,7 +41606,7 @@ function Rl(e, t, r, n, s, a) {
41607
41606
  totalCount: r
41608
41607
  };
41609
41608
  }
41610
- function S2(e, t, r, n, s, a) {
41609
+ function Sx(e, t, r, n, s, a) {
41611
41610
  let o = 0;
41612
41611
  if (r.groupIndices.length > 0)
41613
41612
  for (const u of r.groupIndices) {
@@ -41682,15 +41681,15 @@ const ka = Ve(
41682
41681
  me(w),
41683
41682
  e
41684
41683
  ),
41685
- he(([P, h, , y, , , , , , , , x]) => {
41684
+ he(([S, h, , y, , , , , , , , x]) => {
41686
41685
  const T = x && x.length !== y;
41687
- return P && !h && !T;
41686
+ return S && !h && !T;
41688
41687
  }),
41689
41688
  re(
41690
41689
  ([
41691
41690
  ,
41692
41691
  ,
41693
- [P, h],
41692
+ [S, h],
41694
41693
  y,
41695
41694
  x,
41696
41695
  T,
@@ -41698,15 +41697,15 @@ const ka = Ve(
41698
41697
  B,
41699
41698
  _,
41700
41699
  k,
41701
- S,
41700
+ P,
41702
41701
  O
41703
41702
  ]) => {
41704
41703
  var U, N, L, H;
41705
41704
  const Z = x, { offsetTree: fe, sizeTree: ye } = Z, ie = ct(E);
41706
41705
  if (y === 0)
41707
41706
  return { ...Xd, totalCount: y };
41708
- if (P === 0 && h === 0)
41709
- return ie === 0 ? { ...Xd, totalCount: y } : S2(ie, T, x, _, k, O || []);
41707
+ if (S === 0 && h === 0)
41708
+ return ie === 0 ? { ...Xd, totalCount: y } : Sx(ie, T, x, _, k, O || []);
41710
41709
  if (Ze(ye))
41711
41710
  return ie > 0 ? null : Rl(
41712
41711
  dq(Tm(T, y), Z, O),
@@ -41728,7 +41727,7 @@ const ka = Ve(
41728
41727
  }
41729
41728
  if (!I)
41730
41729
  return Rl([], pe, y, k, Z, _);
41731
- const Ue = B.length > 0 ? B[B.length - 1] + 1 : 0, K = JW(fe, P, h, Ue);
41730
+ const Ue = B.length > 0 ? B[B.length - 1] + 1 : 0, K = JW(fe, S, h, Ue);
41732
41731
  if (K.length === 0)
41733
41732
  return null;
41734
41733
  const ve = y - 1, De = ed([], (Ae) => {
@@ -41736,8 +41735,8 @@ const ka = Ve(
41736
41735
  const ge = Ee.value;
41737
41736
  let Qe = ge.offset, Ye = Ee.start;
41738
41737
  const et = ge.size;
41739
- if (ge.offset < P) {
41740
- Ye += Math.floor((P - ge.offset + k) / (et + k));
41738
+ if (ge.offset < S) {
41739
+ Ye += Math.floor((S - ge.offset + k) / (et + k));
41741
41740
  const Ot = Ye - Ee.start;
41742
41741
  Qe += Ot * et + Ot * k;
41743
41742
  }
@@ -41746,7 +41745,7 @@ const ka = Ve(
41746
41745
  for (let Ot = Ye; Ot <= yr && !(Qe >= h); Ot++)
41747
41746
  Ae.push({ data: O == null ? void 0 : O[Ot], index: Ot, offset: Qe, size: et }), Qe += et + k;
41748
41747
  }
41749
- }), He = G1(S, Ki), at = G1(S, Yi);
41748
+ }), He = G1(P, Ki), at = G1(P, Yi);
41750
41749
  if (De.length > 0 && (He > 0 || at > 0)) {
41751
41750
  const Ae = De[0], Ee = De[De.length - 1];
41752
41751
  if (He > 0 && Ae.index > Ue) {
@@ -41771,7 +41770,7 @@ const ka = Ve(
41771
41770
  }
41772
41771
  ),
41773
41772
  //@ts-expect-error filter needs to be fixed
41774
- he((P) => P !== null),
41773
+ he((S) => S !== null),
41775
41774
  tt()
41776
41775
  ),
41777
41776
  Xd
@@ -41780,62 +41779,62 @@ const ka = Ve(
41780
41779
  j(
41781
41780
  e,
41782
41781
  he(xm),
41783
- re((P) => P == null ? void 0 : P.length)
41782
+ re((S) => S == null ? void 0 : S.length)
41784
41783
  ),
41785
41784
  s
41786
41785
  ), ce(
41787
41786
  j(
41788
41787
  A,
41789
- re((P) => P.topListHeight)
41788
+ re((S) => S.topListHeight)
41790
41789
  ),
41791
41790
  d
41792
41791
  ), ce(d, i), ce(
41793
41792
  j(
41794
41793
  A,
41795
- re((P) => [P.top, P.bottom])
41794
+ re((S) => [S.top, S.bottom])
41796
41795
  ),
41797
41796
  o
41798
41797
  ), ce(
41799
41798
  j(
41800
41799
  A,
41801
- re((P) => P.items)
41800
+ re((S) => S.items)
41802
41801
  ),
41803
41802
  v
41804
41803
  );
41805
41804
  const C = ur(
41806
41805
  j(
41807
41806
  A,
41808
- he(({ items: P }) => P.length > 0),
41807
+ he(({ items: S }) => S.length > 0),
41809
41808
  Pe(s, e),
41810
- he(([{ items: P }, h]) => P[P.length - 1].originalIndex === h - 1),
41811
- re(([, P, h]) => [P - 1, h]),
41809
+ he(([{ items: S }, h]) => S[S.length - 1].originalIndex === h - 1),
41810
+ re(([, S, h]) => [S - 1, h]),
41812
41811
  tt(Vi),
41813
- re(([P]) => P)
41812
+ re(([S]) => S)
41814
41813
  )
41815
41814
  ), F = ur(
41816
41815
  j(
41817
41816
  A,
41818
41817
  Nn(200),
41819
- he(({ items: P, topItems: h }) => P.length > 0 && P[0].originalIndex === h.length),
41820
- re(({ items: P }) => P[0].index),
41818
+ he(({ items: S, topItems: h }) => S.length > 0 && S[0].originalIndex === h.length),
41819
+ re(({ items: S }) => S[0].index),
41821
41820
  tt()
41822
41821
  )
41823
41822
  ), R = ur(
41824
41823
  j(
41825
41824
  A,
41826
- he(({ items: P }) => P.length > 0),
41827
- re(({ items: P }) => {
41828
- let h = 0, y = P.length - 1;
41829
- for (; P[h].type === "group" && h < y; )
41825
+ he(({ items: S }) => S.length > 0),
41826
+ re(({ items: S }) => {
41827
+ let h = 0, y = S.length - 1;
41828
+ for (; S[h].type === "group" && h < y; )
41830
41829
  h++;
41831
- for (; P[y].type === "group" && y > h; )
41830
+ for (; S[y].type === "group" && y > h; )
41832
41831
  y--;
41833
41832
  return {
41834
- endIndex: P[y].index,
41835
- startIndex: P[h].index
41833
+ endIndex: S[y].index,
41834
+ startIndex: S[h].index
41836
41835
  };
41837
41836
  }),
41838
- tt(w2)
41837
+ tt(wx)
41839
41838
  )
41840
41839
  );
41841
41840
  return {
@@ -41852,7 +41851,7 @@ const ka = Ve(
41852
41851
  },
41853
41852
  st(
41854
41853
  xn,
41855
- C2,
41854
+ Cx,
41856
41855
  Am,
41857
41856
  Bc,
41858
41857
  Ic,
@@ -41861,7 +41860,7 @@ const ka = Ve(
41861
41860
  Em
41862
41861
  ),
41863
41862
  { singleton: !0 }
41864
- ), P2 = Ve(
41863
+ ), Px = Ve(
41865
41864
  ([{ fixedFooterHeight: e, fixedHeaderHeight: t, footerHeight: r, headerHeight: n }, { listState: s }]) => {
41866
41865
  const a = Re(), o = Lt(
41867
41866
  j(
@@ -41888,9 +41887,9 @@ const ka = Ve(
41888
41887
  );
41889
41888
  return { alignToBottom: r, paddingTopAddition: n };
41890
41889
  },
41891
- st(Kt, P2),
41890
+ st(Kt, Px),
41892
41891
  { singleton: !0 }
41893
- ), I2 = Ve(() => ({
41892
+ ), Ix = Ve(() => ({
41894
41893
  context: q(null)
41895
41894
  })), fq = ({
41896
41895
  itemBottom: e,
@@ -41898,7 +41897,7 @@ const ka = Ve(
41898
41897
  locationParams: { align: r, behavior: n, ...s },
41899
41898
  viewportBottom: a,
41900
41899
  viewportTop: o
41901
- }) => t < o ? { ...s, align: r ?? "start", behavior: n } : e > a ? { ...s, align: r ?? "end", behavior: n } : null, B2 = Ve(
41900
+ }) => t < o ? { ...s, align: r ?? "start", behavior: n } : e > a ? { ...s, align: r ?? "end", behavior: n } : null, Bx = Ve(
41902
41901
  ([
41903
41902
  { gap: e, sizes: t, totalCount: r },
41904
41903
  { fixedFooterHeight: n, fixedHeaderHeight: s, headerHeight: a, scrollingInProgress: o, scrollTop: i, viewportHeight: c },
@@ -41911,14 +41910,14 @@ const ka = Ve(
41911
41910
  Pe(t, c, r, a, s, n, i),
41912
41911
  Pe(e),
41913
41912
  re(([[d, f, m, b, g, E, v, w], A]) => {
41914
- const { align: C, behavior: F, calculateViewLocation: R = fq, done: P, ...h } = d, y = k2(d, f, b - 1), x = Wi(y, f.offsetTree, A) + g + E, T = x + Yr(f.sizeTree, y)[1], I = w + E, B = w + m - v, _ = R({
41913
+ const { align: C, behavior: F, calculateViewLocation: R = fq, done: S, ...h } = d, y = kx(d, f, b - 1), x = Wi(y, f.offsetTree, A) + g + E, T = x + Yr(f.sizeTree, y)[1], I = w + E, B = w + m - v, _ = R({
41915
41914
  itemBottom: T,
41916
41915
  itemTop: x,
41917
41916
  locationParams: { align: C, behavior: F, ...h },
41918
41917
  viewportBottom: B,
41919
41918
  viewportTop: I
41920
41919
  });
41921
- return _ ? P && Hr(
41920
+ return _ ? S && Hr(
41922
41921
  j(
41923
41922
  o,
41924
41923
  he((k) => !k),
@@ -41926,8 +41925,8 @@ const ka = Ve(
41926
41925
  // but if scrollingInProgress is true, we skip the initial publish.
41927
41926
  ma(ct(o) ? 1 : 2)
41928
41927
  ),
41929
- P
41930
- ) : P && P(), _;
41928
+ S
41929
+ ) : S && S(), _;
41931
41930
  }),
41932
41931
  he((d) => d !== null)
41933
41932
  ),
@@ -41967,9 +41966,9 @@ const mq = (e, t) => typeof e == "function" ? j1(e(t)) : t && j1(e), hq = Ve(
41967
41966
  j(
41968
41967
  vt(j(me(t), ma(1)), c),
41969
41968
  Pe(me(b), a, i, d),
41970
- re(([[F, R], P, h, y, x]) => {
41969
+ re(([[F, R], S, h, y, x]) => {
41971
41970
  let T = R && y, I = "auto";
41972
- return T && (I = mq(P, h || x), T = T && !!I), { followOutputBehavior: I, shouldFollow: T, totalCount: F };
41971
+ return T && (I = mq(S, h || x), T = T && !!I), { followOutputBehavior: I, shouldFollow: T, totalCount: F };
41973
41972
  }),
41974
41973
  he(({ shouldFollow: F }) => F)
41975
41974
  ),
@@ -41982,8 +41981,8 @@ const mq = (e, t) => typeof e == "function" ? j1(e(t)) : t && j1(e), hq = Ve(
41982
41981
  }
41983
41982
  );
41984
41983
  function w(F) {
41985
- const R = Hr(s, (P) => {
41986
- F && !P.atBottom && P.notAtBottomBecause === "SIZE_INCREASED" && !E && (ct(u)("scrolling to bottom due to increased size", {}, sr.DEBUG), v("auto"));
41984
+ const R = Hr(s, (S) => {
41985
+ F && !S.atBottom && S.notAtBottomBecause === "SIZE_INCREASED" && !E && (ct(u)("scrolling to bottom due to increased size", {}, sr.DEBUG), v("auto"));
41987
41986
  });
41988
41987
  setTimeout(R, 100);
41989
41988
  }
@@ -42023,7 +42022,7 @@ const mq = (e, t) => typeof e == "function" ? j1(e(t)) : t && j1(e), hq = Ve(
42023
42022
  j(
42024
42023
  vt(j(C, ma(1)), c),
42025
42024
  Pe(me(A), i, d, f),
42026
- re(([[F, R], P, h, y, x]) => R && h && (P == null ? void 0 : P({ context: x, totalCount: F, scrollingInProgress: y }))),
42025
+ re(([[F, R], S, h, y, x]) => R && h && (S == null ? void 0 : S({ context: x, totalCount: F, scrollingInProgress: y }))),
42027
42026
  he((F) => !!F),
42028
42027
  Nn(0)
42029
42028
  ),
@@ -42044,8 +42043,8 @@ const mq = (e, t) => typeof e == "function" ? j1(e(t)) : t && j1(e), hq = Ve(
42044
42043
  Us,
42045
42044
  Fs,
42046
42045
  Kt,
42047
- I2,
42048
- B2
42046
+ Ix,
42047
+ Bx
42049
42048
  )
42050
42049
  ), bq = Ve(
42051
42050
  ([{ data: e, firstItemIndex: t, gap: r, sizes: n }, { initialTopMostItemIndex: s }, { initialItemCount: a, listState: o }, { didMount: i }]) => (ce(
@@ -42054,7 +42053,7 @@ const mq = (e, t) => typeof e == "function" ? j1(e(t)) : t && j1(e), hq = Ve(
42054
42053
  Pe(a),
42055
42054
  he(([, c]) => c !== 0),
42056
42055
  Pe(s, n, t, r, e),
42057
- re(([[, c], l, u, d, f, m = []]) => S2(c, l, u, d, f, m))
42056
+ re(([[, c], l, u, d, f, m = []]) => Sx(c, l, u, d, f, m))
42058
42057
  ),
42059
42058
  o
42060
42059
  ), {}),
@@ -42090,7 +42089,7 @@ const mq = (e, t) => typeof e == "function" ? j1(e(t)) : t && j1(e), hq = Ve(
42090
42089
  },
42091
42090
  st(Us, Kt, ka),
42092
42091
  { singleton: !0 }
42093
- ), F2 = Ve(
42092
+ ), Fx = Ve(
42094
42093
  ([{ scrollVelocity: e }]) => {
42095
42094
  const t = q(!1), r = Re(), n = q(!1);
42096
42095
  return ce(
@@ -42199,11 +42198,11 @@ const wq = Ve(([{ topItemsIndexes: e }]) => {
42199
42198
  e
42200
42199
  ), { topItemCount: t };
42201
42200
  }, st(ka));
42202
- function U2(e) {
42201
+ function Ux(e) {
42203
42202
  let t = !1, r;
42204
42203
  return () => (t || (t = !0, r = e()), r);
42205
42204
  }
42206
- const vq = U2(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Eq = Ve(
42205
+ const vq = Ux(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Eq = Ve(
42207
42206
  ([
42208
42207
  { deviation: e, scrollBy: t, scrollingInProgress: r, scrollTop: n },
42209
42208
  { isAtBottom: s, isScrolling: a, lastJumpDueToItemResize: o, scrollDirection: i },
@@ -42217,10 +42216,10 @@ const vq = U2(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
42217
42216
  c,
42218
42217
  Pe(o),
42219
42218
  ln(
42220
- ([, v, w, A], [{ bottom: C, items: F, offsetBottom: R, totalCount: P }, h]) => {
42219
+ ([, v, w, A], [{ bottom: C, items: F, offsetBottom: R, totalCount: S }, h]) => {
42221
42220
  const y = C + R;
42222
42221
  let x = 0;
42223
- return w === P && v.length > 0 && F.length > 0 && (F[0].originalIndex === 0 && v[0].originalIndex === 0 || (x = y - A, x !== 0 && (x += h))), [x, F, P, y];
42222
+ return w === S && v.length > 0 && F.length > 0 && (F[0].originalIndex === 0 && v[0].originalIndex === 0 || (x = y - A, x !== 0 && (x += h))), [x, F, S, y];
42224
42223
  },
42225
42224
  [0, [], 0, 0]
42226
42225
  ),
@@ -42254,21 +42253,21 @@ const vq = U2(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
42254
42253
  l,
42255
42254
  Pe(f, u),
42256
42255
  re(([v, { groupIndices: w, lastSize: A, sizeTree: C }, F]) => {
42257
- function R(P) {
42258
- return P * (A + F);
42256
+ function R(S) {
42257
+ return S * (A + F);
42259
42258
  }
42260
42259
  if (w.length === 0)
42261
42260
  return R(v);
42262
42261
  {
42263
- let P = 0;
42262
+ let S = 0;
42264
42263
  const h = ji(C, 0);
42265
42264
  let y = 0, x = 0;
42266
42265
  for (; y < v; ) {
42267
- y++, P += h;
42266
+ y++, S += h;
42268
42267
  let T = w.length === x + 1 ? 1 / 0 : w[x + 1] - w[x] - 1;
42269
- y + T > v && (P -= h, T = v - y + 1), y += T, P += R(T), x++;
42268
+ y + T > v && (S -= h, T = v - y + 1), y += T, S += R(T), x++;
42270
42269
  }
42271
- return P;
42270
+ return S;
42272
42271
  }
42273
42272
  })
42274
42273
  ),
@@ -42312,16 +42311,16 @@ const vq = U2(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
42312
42311
  Am,
42313
42312
  bq,
42314
42313
  Us,
42315
- F2,
42316
- P2,
42314
+ Fx,
42315
+ Px,
42317
42316
  yq,
42318
42317
  pq,
42319
42318
  Sm,
42320
- B2,
42319
+ Bx,
42321
42320
  Fs,
42322
- I2
42321
+ Ix
42323
42322
  )
42324
- ), O2 = Ve(
42323
+ ), Ox = Ve(
42325
42324
  ([
42326
42325
  {
42327
42326
  data: e,
@@ -42346,7 +42345,7 @@ const vq = U2(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
42346
42345
  C,
42347
42346
  { scrollToIndex: F },
42348
42347
  R,
42349
- { topItemCount: P },
42348
+ { topItemCount: S },
42350
42349
  { groupCounts: h },
42351
42350
  y
42352
42351
  ]) => {
@@ -42370,7 +42369,7 @@ const vq = U2(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
42370
42369
  initialTopMostItemIndex: g,
42371
42370
  scrolledToInitialItem: E,
42372
42371
  sizeRanges: l,
42373
- topItemCount: P,
42372
+ topItemCount: S,
42374
42373
  topItemsIndexes: I,
42375
42374
  // input
42376
42375
  totalCount: f,
@@ -42403,7 +42402,7 @@ const vq = U2(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
42403
42402
  Ic,
42404
42403
  Eq,
42405
42404
  wq,
42406
- C2,
42405
+ Cx,
42407
42406
  kq
42408
42407
  )
42409
42408
  );
@@ -42418,7 +42417,7 @@ function Cq(e, t) {
42418
42417
  return r;
42419
42418
  }
42420
42419
  const Sl = typeof document < "u" ? te.useLayoutEffect : te.useEffect;
42421
- function D2(e, t, r) {
42420
+ function Dx(e, t, r) {
42422
42421
  const n = Object.keys(t.required || {}), s = Object.keys(t.optional || {}), a = Object.keys(t.methods || {}), o = Object.keys(t.events || {}), i = te.createContext({});
42423
42422
  function c(E, v) {
42424
42423
  E.propsReady && Te(E.propsReady, !1);
@@ -42443,12 +42442,12 @@ function D2(e, t, r) {
42443
42442
  return o.reduce((v, w) => (v[w] = zW(E[t.events[w]]), v), {});
42444
42443
  }
42445
42444
  const d = te.forwardRef((E, v) => {
42446
- const { children: w, ...A } = E, [C] = te.useState(() => ed(HW(e), (P) => {
42447
- c(P, A);
42445
+ const { children: w, ...A } = E, [C] = te.useState(() => ed(HW(e), (S) => {
42446
+ c(S, A);
42448
42447
  })), [F] = te.useState(D1(u, C));
42449
42448
  Sl(() => {
42450
- for (const P of o)
42451
- P in A && qe(F[P], A[P]);
42449
+ for (const S of o)
42450
+ S in A && qe(F[S], A[S]);
42452
42451
  return () => {
42453
42452
  Object.values(F).map(wm);
42454
42453
  };
@@ -42494,14 +42493,14 @@ function D2(e, t, r) {
42494
42493
  usePublisher: f
42495
42494
  };
42496
42495
  }
42497
- const _2 = te.createContext(void 0), M2 = te.createContext(void 0), R2 = typeof document < "u" ? te.useLayoutEffect : te.useEffect;
42496
+ const _x = te.createContext(void 0), Mx = te.createContext(void 0), Rx = typeof document < "u" ? te.useLayoutEffect : te.useEffect;
42498
42497
  function Qd(e) {
42499
42498
  return "self" in e;
42500
42499
  }
42501
42500
  function Tq(e) {
42502
42501
  return "body" in e;
42503
42502
  }
42504
- function N2(e, t, r, n = Ro, s, a) {
42503
+ function Nx(e, t, r, n = Ro, s, a) {
42505
42504
  const o = te.useRef(null), i = te.useRef(null), c = te.useRef(null), l = te.useCallback(
42506
42505
  (f) => {
42507
42506
  let m, b, g;
@@ -42539,7 +42538,7 @@ function N2(e, t, r, n = Ro, s, a) {
42539
42538
  a ? m.document.documentElement.scrollWidth : m.document.documentElement.scrollHeight
42540
42539
  ), g = a ? m.innerWidth : m.innerHeight, v = a ? window.scrollX : window.scrollY) : (E = m[a ? "scrollWidth" : "scrollHeight"], g = Ts(m, a ? "width" : "height"), v = m[a ? "scrollLeft" : "scrollTop"]);
42541
42540
  const w = E - g;
42542
- if (f.top = Math.ceil(Math.max(Math.min(w, f.top), 0)), A2(g, E) || f.top === v) {
42541
+ if (f.top = Math.ceil(Math.max(Math.min(w, f.top), 0)), Ax(g, E) || f.top === v) {
42543
42542
  e({ scrollHeight: E, scrollTop: v, viewportHeight: g }), b && t(!0);
42544
42543
  return;
42545
42544
  }
@@ -42552,7 +42551,7 @@ function N2(e, t, r, n = Ro, s, a) {
42552
42551
  }
42553
42552
  return { scrollByCallback: d, scrollerRef: o, scrollToCallback: u };
42554
42553
  }
42555
- const Jd = "-webkit-sticky", V1 = "sticky", Pm = U2(() => {
42554
+ const Jd = "-webkit-sticky", V1 = "sticky", Pm = Ux(() => {
42556
42555
  if (typeof document > "u")
42557
42556
  return V1;
42558
42557
  const e = document.createElement("div");
@@ -42589,8 +42588,8 @@ const Aq = /* @__PURE__ */ Ve(() => {
42589
42588
  };
42590
42589
  }), Sq = /* @__PURE__ */ Ve(
42591
42590
  ([e, t]) => ({ ...e, ...t }),
42592
- st(O2, Aq)
42593
- ), Pq = ({ height: e }) => /* @__PURE__ */ D("div", { style: { height: e } }), Iq = { overflowAnchor: "none", position: Pm(), zIndex: 1 }, L2 = { overflowAnchor: "none" }, Bq = { ...L2, display: "inline-block", height: "100%" }, W1 = /* @__PURE__ */ te.memo(function({ showTopList: e = !1 }) {
42591
+ st(Ox, Aq)
42592
+ ), Pq = ({ height: e }) => /* @__PURE__ */ D("div", { style: { height: e } }), Iq = { overflowAnchor: "none", position: Pm(), zIndex: 1 }, Lx = { overflowAnchor: "none" }, Bq = { ...Lx, display: "inline-block", height: "100%" }, W1 = /* @__PURE__ */ te.memo(function({ showTopList: e = !1 }) {
42594
42593
  const t = we("listState"), r = Sr("sizeRanges"), n = we("useWindowScroll"), s = we("customScrollParent"), a = Sr("windowScrollContainerState"), o = Sr("scrollContainerState"), i = s || n ? a : o, c = we("itemContent"), l = we("context"), u = we("groupContent"), d = we("trackItemSizes"), f = we("itemSize"), m = we("log"), b = Sr("gap"), g = we("horizontalDirection"), { callbackRef: E } = VW(
42595
42594
  r,
42596
42595
  f,
@@ -42605,7 +42604,7 @@ const Aq = /* @__PURE__ */ Ve(() => {
42605
42604
  Bm("deviation", (_) => {
42606
42605
  v !== _ && w(_);
42607
42606
  });
42608
- const A = we("EmptyPlaceholder"), C = we("ScrollSeekPlaceholder") || Pq, F = we("ListComponent"), R = we("ItemComponent"), P = we("GroupComponent"), h = we("computeItemKey"), y = we("isSeeking"), x = we("groupIndices").length > 0, T = we("alignToBottom"), I = we("initialItemFinalLocationReached"), B = e ? {} : {
42607
+ const A = we("EmptyPlaceholder"), C = we("ScrollSeekPlaceholder") || Pq, F = we("ListComponent"), R = we("ItemComponent"), S = we("GroupComponent"), h = we("computeItemKey"), y = we("isSeeking"), x = we("groupIndices").length > 0, T = we("alignToBottom"), I = we("initialItemFinalLocationReached"), B = e ? {} : {
42609
42608
  boxSizing: "border-box",
42610
42609
  ...g ? {
42611
42610
  display: "inline-block",
@@ -42629,25 +42628,25 @@ const Aq = /* @__PURE__ */ Ve(() => {
42629
42628
  ref: E,
42630
42629
  style: B,
42631
42630
  children: (e ? t.topItems : t.items).map((_) => {
42632
- const k = _.originalIndex, S = h(k + t.firstItemIndex, _.data, l);
42631
+ const k = _.originalIndex, P = h(k + t.firstItemIndex, _.data, l);
42633
42632
  return y ? /* @__PURE__ */ Na(
42634
42633
  C,
42635
42634
  {
42636
42635
  ...Nt(C, l),
42637
42636
  height: _.size,
42638
42637
  index: _.index,
42639
- key: S,
42638
+ key: P,
42640
42639
  type: _.type || "item",
42641
42640
  ..._.type === "group" ? {} : { groupIndex: _.groupIndex }
42642
42641
  }
42643
42642
  ) : _.type === "group" ? /* @__PURE__ */ Na(
42644
- P,
42643
+ S,
42645
42644
  {
42646
- ...Nt(P, l),
42645
+ ...Nt(S, l),
42647
42646
  "data-index": k,
42648
42647
  "data-item-index": _.index,
42649
42648
  "data-known-size": _.size,
42650
- key: S,
42649
+ key: P,
42651
42650
  style: Iq
42652
42651
  },
42653
42652
  u(_.index, l)
@@ -42660,8 +42659,8 @@ const Aq = /* @__PURE__ */ Ve(() => {
42660
42659
  "data-item-group-index": _.groupIndex,
42661
42660
  "data-item-index": _.index,
42662
42661
  "data-known-size": _.size,
42663
- key: S,
42664
- style: g ? Bq : L2
42662
+ key: P,
42663
+ style: g ? Bq : Lx
42665
42664
  },
42666
42665
  x ? c(_.index, _.groupIndex, _.data, l) : c(_.index, _.data, l)
42667
42666
  );
@@ -42722,9 +42721,9 @@ const _q = /* @__PURE__ */ te.memo(function() {
42722
42721
  ), s = we("context");
42723
42722
  return e ? /* @__PURE__ */ D(r, { ref: n, children: /* @__PURE__ */ D(e, { ...Nt(e, s) }) }) : null;
42724
42723
  });
42725
- function z2({ useEmitter: e, useEmitterValue: t, usePublisher: r }) {
42724
+ function zx({ useEmitter: e, useEmitterValue: t, usePublisher: r }) {
42726
42725
  return te.memo(function({ children: n, style: s, context: a, ...o }) {
42727
- const i = r("scrollContainerState"), c = t("ScrollerComponent"), l = r("smoothScrollTargetReached"), u = t("scrollerRef"), d = t("horizontalDirection") || !1, { scrollByCallback: f, scrollerRef: m, scrollToCallback: b } = N2(
42726
+ const i = r("scrollContainerState"), c = t("ScrollerComponent"), l = r("smoothScrollTargetReached"), u = t("scrollerRef"), d = t("horizontalDirection") || !1, { scrollByCallback: f, scrollerRef: m, scrollToCallback: b } = Nx(
42728
42727
  i,
42729
42728
  l,
42730
42729
  c,
@@ -42747,16 +42746,16 @@ function z2({ useEmitter: e, useEmitterValue: t, usePublisher: r }) {
42747
42746
  );
42748
42747
  });
42749
42748
  }
42750
- function $2({ useEmitter: e, useEmitterValue: t, usePublisher: r }) {
42749
+ function $x({ useEmitter: e, useEmitterValue: t, usePublisher: r }) {
42751
42750
  return te.memo(function({ children: n, style: s, context: a, ...o }) {
42752
- const i = r("windowScrollContainerState"), c = t("ScrollerComponent"), l = r("smoothScrollTargetReached"), u = t("totalListHeight"), d = t("deviation"), f = t("customScrollParent"), m = te.useRef(null), b = t("scrollerRef"), { scrollByCallback: g, scrollerRef: E, scrollToCallback: v } = N2(
42751
+ const i = r("windowScrollContainerState"), c = t("ScrollerComponent"), l = r("smoothScrollTargetReached"), u = t("totalListHeight"), d = t("deviation"), f = t("customScrollParent"), m = te.useRef(null), b = t("scrollerRef"), { scrollByCallback: g, scrollerRef: E, scrollToCallback: v } = Nx(
42753
42752
  i,
42754
42753
  l,
42755
42754
  c,
42756
42755
  b,
42757
42756
  f
42758
42757
  );
42759
- return R2(() => {
42758
+ return Rx(() => {
42760
42759
  var w;
42761
42760
  return E.current = f || ((w = m.current) == null ? void 0 : w.ownerDocument.defaultView), () => {
42762
42761
  E.current = null;
@@ -42775,15 +42774,15 @@ function $2({ useEmitter: e, useEmitterValue: t, usePublisher: r }) {
42775
42774
  });
42776
42775
  }
42777
42776
  const Rq = ({ children: e }) => {
42778
- const t = te.useContext(_2), r = Sr("viewportHeight"), n = Sr("fixedItemHeight"), s = we("alignToBottom"), a = we("horizontalDirection"), o = te.useMemo(
42779
- () => p2(r, (c) => Ts(c, a ? "width" : "height")),
42777
+ const t = te.useContext(_x), r = Sr("viewportHeight"), n = Sr("fixedItemHeight"), s = we("alignToBottom"), a = we("horizontalDirection"), o = te.useMemo(
42778
+ () => px(r, (c) => Ts(c, a ? "width" : "height")),
42780
42779
  [r, a]
42781
42780
  ), i = Ea(o, !0, we("skipAnimationFrameInResizeObserver"));
42782
42781
  return te.useEffect(() => {
42783
42782
  t && (r(t.viewportHeight), n(t.itemHeight));
42784
42783
  }, [t, r, n]), /* @__PURE__ */ D("div", { "data-viewport-type": "element", ref: i, style: rd(s), children: e });
42785
42784
  }, Nq = ({ children: e }) => {
42786
- const t = te.useContext(_2), r = Sr("windowViewportRect"), n = Sr("fixedItemHeight"), s = we("customScrollParent"), a = m2(
42785
+ const t = te.useContext(_x), r = Sr("windowViewportRect"), n = Sr("fixedItemHeight"), s = we("customScrollParent"), a = mx(
42787
42786
  r,
42788
42787
  s,
42789
42788
  we("skipAnimationFrameInResizeObserver")
@@ -42809,7 +42808,7 @@ const Rq = ({ children: e }) => {
42809
42808
  useEmitter: Bm,
42810
42809
  useEmitterValue: we,
42811
42810
  usePublisher: Sr
42812
- } = /* @__PURE__ */ D2(
42811
+ } = /* @__PURE__ */ Dx(
42813
42812
  Sq,
42814
42813
  {
42815
42814
  required: {},
@@ -42872,7 +42871,7 @@ const Rq = ({ children: e }) => {
42872
42871
  }
42873
42872
  },
42874
42873
  zq
42875
- ), Hq = /* @__PURE__ */ z2({ useEmitter: Bm, useEmitterValue: we, usePublisher: Sr }), Gq = /* @__PURE__ */ $2({ useEmitter: Bm, useEmitterValue: we, usePublisher: Sr }), H2 = $q, jq = /* @__PURE__ */ Ve(() => {
42874
+ ), Hq = /* @__PURE__ */ zx({ useEmitter: Bm, useEmitterValue: we, usePublisher: Sr }), Gq = /* @__PURE__ */ $x({ useEmitter: Bm, useEmitterValue: we, usePublisher: Sr }), Hx = $q, jq = /* @__PURE__ */ Ve(() => {
42876
42875
  const e = q((l) => /* @__PURE__ */ le("td", { children: [
42877
42876
  "Item $",
42878
42877
  l
@@ -42908,7 +42907,7 @@ const Rq = ({ children: e }) => {
42908
42907
  GroupComponent: c("Group", "tr")
42909
42908
  };
42910
42909
  });
42911
- st(O2, jq);
42910
+ st(Ox, jq);
42912
42911
  Pm();
42913
42912
  const q1 = {
42914
42913
  bottom: 0,
@@ -42952,7 +42951,7 @@ const Kq = /* @__PURE__ */ Ve(
42952
42951
  { customScrollParent: E, useWindowScroll: v, windowScrollContainerState: w, windowScrollTo: A, windowViewportRect: C },
42953
42952
  F
42954
42953
  ]) => {
42955
- const R = q(0), P = q(0), h = q(q1), y = q({ height: 0, width: 0 }), x = q({ height: 0, width: 0 }), T = Re(), I = Re(), B = q(0), _ = q(null), k = q({ column: 0, row: 0 }), S = Re(), O = Re(), U = q(!1), N = q(0), L = q(!0), H = q(!1), Z = q(!1);
42954
+ const R = q(0), S = q(0), h = q(q1), y = q({ height: 0, width: 0 }), x = q({ height: 0, width: 0 }), T = Re(), I = Re(), B = q(0), _ = q(null), k = q({ column: 0, row: 0 }), P = Re(), O = Re(), U = q(!1), N = q(0), L = q(!0), H = q(!1), Z = q(!1);
42956
42955
  qe(
42957
42956
  j(
42958
42957
  b,
@@ -42980,7 +42979,7 @@ const Kq = /* @__PURE__ */ Ve(
42980
42979
  he((K) => K != null && K.scrollTop > 0),
42981
42980
  on(0)
42982
42981
  ),
42983
- P
42982
+ S
42984
42983
  ), qe(
42985
42984
  j(
42986
42985
  b,
@@ -43013,7 +43012,7 @@ const Kq = /* @__PURE__ */ Ve(
43013
43012
  viewport: K
43014
43013
  }))
43015
43014
  ),
43016
- S
43015
+ P
43017
43016
  ), ce(
43018
43017
  j(
43019
43018
  vt(
@@ -43023,7 +43022,7 @@ const Kq = /* @__PURE__ */ Ve(
43023
43022
  me(x, Pl),
43024
43023
  me(y, Pl),
43025
43024
  me(_),
43026
- me(P),
43025
+ me(S),
43027
43026
  me(U),
43028
43027
  me(L),
43029
43028
  me(N)
@@ -43049,7 +43048,7 @@ const Kq = /* @__PURE__ */ Ve(
43049
43048
  const Lm = Tm(Ye, K), t5 = Lm + Math.max(ge - 1, 0);
43050
43049
  return Wq(Z1(Lm, t5, Ee));
43051
43050
  }
43052
- const _c = G2(Dm, sd, et);
43051
+ const _c = Gx(Dm, sd, et);
43053
43052
  let Ca, _s;
43054
43053
  Qe ? ve === 0 && De === 0 && ge > 0 ? (Ca = 0, _s = ge - 1) : (Ca = _c * su((ve + yr) / (Ot + yr)), _s = _c * K1((De + yr) / (Ot + yr)) - 1, _s = ep(K - 1, ci(_s, _c - 1)), Ca = ep(_s, ci(0, Ca))) : (Ca = 0, _s = -1);
43055
43054
  const _m = Z1(Ca, _s, Ee), { bottom: Mm, top: Rm } = X1(Ae, He, at, _m), Nm = K1(K / _c), e5 = Nm * Ot + (Nm - 1) * yr - Mm;
@@ -43114,7 +43113,7 @@ const Kq = /* @__PURE__ */ Ve(
43114
43113
  endIndex: K[K.length - 1].index,
43115
43114
  startIndex: K[0].index
43116
43115
  })),
43117
- tt(w2),
43116
+ tt(wx),
43118
43117
  Nn(0)
43119
43118
  )
43120
43119
  );
@@ -43123,7 +43122,7 @@ const Kq = /* @__PURE__ */ Ve(
43123
43122
  T,
43124
43123
  Pe(y, x, R, k),
43125
43124
  re(([K, ve, De, He, at]) => {
43126
- const Ae = T2(K), { align: Ee, behavior: ge, offset: Qe } = Ae;
43125
+ const Ae = Tx(K), { align: Ee, behavior: ge, offset: Qe } = Ae;
43127
43126
  let Ye = Ae.index;
43128
43127
  Ye === "LAST" && (Ye = He - 1), Ye = ci(0, Ye, ep(He - 1, Ye));
43129
43128
  let et = Tf(ve, at, De, Ye);
@@ -43154,7 +43153,7 @@ const Kq = /* @__PURE__ */ Ve(
43154
43153
  gap: k,
43155
43154
  headerHeight: a,
43156
43155
  increaseViewportBy: e,
43157
- initialItemCount: P,
43156
+ initialItemCount: S,
43158
43157
  itemDimensions: x,
43159
43158
  overscan: r,
43160
43159
  restoreStateFrom: O,
@@ -43182,14 +43181,14 @@ const Kq = /* @__PURE__ */ Ve(
43182
43181
  propsReady: g,
43183
43182
  rangeChanged: pe,
43184
43183
  startReached: ie,
43185
- stateChanged: S,
43184
+ stateChanged: P,
43186
43185
  stateRestoreInProgress: U,
43187
43186
  ...F
43188
43187
  };
43189
43188
  },
43190
- st(Am, Kt, Fc, F2, Us, Sm, Fs)
43189
+ st(Am, Kt, Fc, Fx, Us, Sm, Fs)
43191
43190
  );
43192
- function G2(e, t, r) {
43191
+ function Gx(e, t, r) {
43193
43192
  return ci(1, su((e + r) / (su(t) + r)));
43194
43193
  }
43195
43194
  function X1(e, t, r, n) {
@@ -43200,7 +43199,7 @@ function X1(e, t, r, n) {
43200
43199
  return { bottom: Tf(e, t, r, n[n.length - 1].index) + s, top: a };
43201
43200
  }
43202
43201
  function Tf(e, t, r, n) {
43203
- const s = G2(e.width, r.width, t.column), a = su(n / s), o = a * r.height + ci(0, a - 1) * t.row;
43202
+ const s = Gx(e.width, r.width, t.column), a = su(n / s), o = a * r.height + ci(0, a - 1) * t.row;
43204
43203
  return o > 0 ? o + t.row : o;
43205
43204
  }
43206
43205
  const Yq = /* @__PURE__ */ Ve(() => {
@@ -43254,7 +43253,7 @@ const Yq = /* @__PURE__ */ Ve(() => {
43254
43253
  !0,
43255
43254
  !1
43256
43255
  );
43257
- return R2(() => {
43256
+ return Rx(() => {
43258
43257
  e.itemHeight > 0 && e.itemWidth > 0 && g(!0);
43259
43258
  }, [e]), b ? null : /* @__PURE__ */ D(
43260
43259
  c,
@@ -43313,7 +43312,7 @@ const Yq = /* @__PURE__ */ Ve(() => {
43313
43312
  ), s = it("context");
43314
43313
  return e ? /* @__PURE__ */ D(r, { ref: n, children: /* @__PURE__ */ D(e, { ...Nt(e, s) }) }) : null;
43315
43314
  }), eK = ({ children: e }) => {
43316
- const t = te.useContext(M2), r = Pr("itemDimensions"), n = Pr("viewportDimensions"), s = Ea(
43315
+ const t = te.useContext(Mx), r = Pr("itemDimensions"), n = Pr("viewportDimensions"), s = Ea(
43317
43316
  te.useMemo(
43318
43317
  () => (a) => {
43319
43318
  n(a.getBoundingClientRect());
@@ -43327,7 +43326,7 @@ const Yq = /* @__PURE__ */ Ve(() => {
43327
43326
  t && (n({ height: t.viewportHeight, width: t.viewportWidth }), r({ height: t.itemHeight, width: t.itemWidth }));
43328
43327
  }, [t, n, r]), /* @__PURE__ */ D("div", { ref: s, style: rd(!1), children: e });
43329
43328
  }, tK = ({ children: e }) => {
43330
- const t = te.useContext(M2), r = Pr("windowViewportRect"), n = Pr("itemDimensions"), s = it("customScrollParent"), a = m2(r, s, !1);
43329
+ const t = te.useContext(Mx), r = Pr("windowViewportRect"), n = Pr("itemDimensions"), s = it("customScrollParent"), a = mx(r, s, !1);
43331
43330
  return te.useEffect(() => {
43332
43331
  t && (n({ height: t.itemHeight, width: t.itemWidth }), r({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
43333
43332
  }, [t, r, n]), /* @__PURE__ */ D("div", { ref: a, style: rd(!1), children: e });
@@ -43339,10 +43338,10 @@ const Yq = /* @__PURE__ */ Ve(() => {
43339
43338
  /* @__PURE__ */ D(Jq, {})
43340
43339
  ] }) });
43341
43340
  }), {
43342
- useEmitter: j2,
43341
+ useEmitter: jx,
43343
43342
  useEmitterValue: it,
43344
43343
  usePublisher: Pr
43345
- } = /* @__PURE__ */ D2(
43344
+ } = /* @__PURE__ */ Dx(
43346
43345
  Zq,
43347
43346
  {
43348
43347
  optional: {
@@ -43383,7 +43382,7 @@ const Yq = /* @__PURE__ */ Ve(() => {
43383
43382
  }
43384
43383
  },
43385
43384
  rK
43386
- ), nK = /* @__PURE__ */ z2({ useEmitter: j2, useEmitterValue: it, usePublisher: Pr }), sK = /* @__PURE__ */ $2({ useEmitter: j2, useEmitterValue: it, usePublisher: Pr });
43385
+ ), nK = /* @__PURE__ */ zx({ useEmitter: jx, useEmitterValue: it, usePublisher: Pr }), sK = /* @__PURE__ */ $x({ useEmitter: jx, useEmitterValue: it, usePublisher: Pr });
43387
43386
  function Q1(e, t, r) {
43388
43387
  return t !== "normal" && !(t != null && t.endsWith("px")) && r(`${e} was not resolved to pixel value correctly`, t, sr.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
43389
43388
  }
@@ -43397,7 +43396,7 @@ function aK() {
43397
43396
  }, tp;
43398
43397
  }
43399
43398
  var oK = /* @__PURE__ */ aK();
43400
- function V2({ logo: e, className: t = "", style: r = {}, alt: n = "Token logo" }) {
43399
+ function Vx({ logo: e, className: t = "", style: r = {}, alt: n = "Token logo" }) {
43401
43400
  const [s, a] = ou(!1);
43402
43401
  return as(() => {
43403
43402
  a(!1);
@@ -43412,7 +43411,7 @@ function iK() {
43412
43411
  return e({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z", clipRule: "evenodd" } }] })(r);
43413
43412
  }, rp;
43414
43413
  }
43415
- var W2 = /* @__PURE__ */ iK(), np = {}, tb;
43414
+ var Wx = /* @__PURE__ */ iK(), np = {}, tb;
43416
43415
  function cK() {
43417
43416
  if (tb) return np;
43418
43417
  tb = 1;
@@ -43446,7 +43445,7 @@ const uK = ({ count: e }) => {
43446
43445
  }, rb = ({ token: e }) => {
43447
43446
  const { components: t } = ne();
43448
43447
  return /* @__PURE__ */ le("div", { className: "twap-orders__selected-order-fills-token", children: [
43449
- t.TokenLogo ? /* @__PURE__ */ D(t.TokenLogo, { token: e }) : /* @__PURE__ */ D(V2, { logo: e == null ? void 0 : e.logoUrl }),
43448
+ t.TokenLogo ? /* @__PURE__ */ D(t.TokenLogo, { token: e }) : /* @__PURE__ */ D(Vx, { logo: e == null ? void 0 : e.logoUrl }),
43450
43449
  /* @__PURE__ */ D("p", { className: "twap-orders__selected-order-fills-token-symbol", children: e == null ? void 0 : e.symbol })
43451
43450
  ] });
43452
43451
  }, dK = ({
@@ -43454,7 +43453,7 @@ const uK = ({ count: e }) => {
43454
43453
  dstToken: t
43455
43454
  }) => /* @__PURE__ */ le("div", { className: "twap-orders__selected-order-fills-tokens", children: [
43456
43455
  /* @__PURE__ */ D(rb, { token: e }),
43457
- /* @__PURE__ */ D("span", { className: "twap-orders__selected-order-fills-token-separator", children: /* @__PURE__ */ D(W2.HiArrowRight, {}) }),
43456
+ /* @__PURE__ */ D("span", { className: "twap-orders__selected-order-fills-token-separator", children: /* @__PURE__ */ D(Wx.HiArrowRight, {}) }),
43458
43457
  /* @__PURE__ */ D(rb, { token: t })
43459
43458
  ] }), pK = ({
43460
43459
  fill: e,
@@ -43530,7 +43529,7 @@ const uK = ({ count: e }) => {
43530
43529
  return /* @__PURE__ */ le("div", { className: "twap-orders__selected-order-fills", children: [
43531
43530
  /* @__PURE__ */ D(dK, { srcToken: e.srcToken, dstToken: e.dstToken }),
43532
43531
  r.length === 0 ? /* @__PURE__ */ D("p", { className: "twap-orders__selected-order-fills-empty", children: t("noFills") }) : /* @__PURE__ */ D("div", { className: "twap-orders__selected-order-fills-list", children: /* @__PURE__ */ D(
43533
- H2,
43532
+ Hx,
43534
43533
  {
43535
43534
  style: { height: "100%" },
43536
43535
  totalCount: r.length,
@@ -43549,8 +43548,8 @@ const uK = ({ count: e }) => {
43549
43548
  }
43550
43549
  ) })
43551
43550
  ] });
43552
- }, q2 = tc({}), $t = () => au(q2), mK = () => {
43553
- const e = J((f) => f.state.selectedOrderID), t = t2(e), r = Fe(), [n, s] = ou("panel1"), a = J((f) => f.updateState), o = J(
43551
+ }, qx = tc({}), $t = () => au(qx), mK = () => {
43552
+ const e = J((f) => f.state.selectedOrderID), t = tx(e), r = Fe(), [n, s] = ou("panel1"), a = J((f) => f.updateState), o = J(
43554
43553
  (f) => f.state.showSelectedOrderFills
43555
43554
  ), { components: i } = ne(), c = i.TokenLogo;
43556
43555
  as(() => {
@@ -43597,7 +43596,7 @@ const uK = ({ count: e }) => {
43597
43596
  /* @__PURE__ */ D(TK, {})
43598
43597
  ] }) })
43599
43598
  ] });
43600
- return /* @__PURE__ */ D(q2.Provider, { value: { order: t }, children: /* @__PURE__ */ D("div", { className: "twap-orders__selected-order", children: d }) });
43599
+ return /* @__PURE__ */ D(qx.Provider, { value: { order: t }, children: /* @__PURE__ */ D("div", { className: "twap-orders__selected-order", children: d }) });
43601
43600
  }, nb = ({
43602
43601
  expanded: e,
43603
43602
  onClick: t,
@@ -43717,7 +43716,7 @@ const uK = ({ count: e }) => {
43717
43716
  (t = e.dstToken) == null ? void 0 : t.symbol
43718
43717
  ] }) }) : null;
43719
43718
  }, TK = () => {
43720
- const { order: e } = $t(), t = Fe(), { mutateAsync: r, isPending: n } = u2(), { components: s } = ne(), a = s.Button, o = ze(async () => r({ orders: [e.original] }), [r, e]);
43719
+ const { order: e } = $t(), t = Fe(), { mutateAsync: r, isPending: n } = ux(), { components: s } = ne(), a = s.Button, o = ze(async () => r({ orders: [e.original] }), [r, e]);
43721
43720
  return !e || e.original.status !== gt.Open || !a ? null : /* @__PURE__ */ D(
43722
43721
  a,
43723
43722
  {
@@ -43795,9 +43794,9 @@ const uK = ({ count: e }) => {
43795
43794
  }
43796
43795
  ) : null;
43797
43796
  }, DK = () => /* @__PURE__ */ D("div", { className: "twap-orders__loader", children: /* @__PURE__ */ D("p", { children: "Loading..." }) }), _K = () => {
43798
- const { isLoading: e } = _o(), t = c2(), r = J((a) => a.state.orderIdsToCancel), n = J((a) => a.state.cancelOrdersMode), s = UW();
43797
+ const { isLoading: e } = _o(), t = cx(), r = J((a) => a.state.orderIdsToCancel), n = J((a) => a.state.cancelOrdersMode), s = UW();
43799
43798
  return /* @__PURE__ */ D(As, { children: e ? /* @__PURE__ */ D(DK, {}) : t != null && t.length ? /* @__PURE__ */ D("div", { className: `twap-orders__list ${n ? "twap-orders__list-select-mode" : ""}`, children: /* @__PURE__ */ D(
43800
- H2,
43799
+ Hx,
43801
43800
  {
43802
43801
  style: { height: "100%" },
43803
43802
  data: t,
@@ -43829,17 +43828,17 @@ const uK = ({ count: e }) => {
43829
43828
  /* @__PURE__ */ D(LK, { value: e.progress || 0 }),
43830
43829
  /* @__PURE__ */ le("div", { className: "twap-orders__list-item-tokens", children: [
43831
43830
  /* @__PURE__ */ D(sb, { address: e.srcTokenAddress }),
43832
- /* @__PURE__ */ D(W2.HiArrowRight, { className: "twap-orders__list-item-tokens-arrow" }),
43831
+ /* @__PURE__ */ D(Wx.HiArrowRight, { className: "twap-orders__list-item-tokens-arrow" }),
43833
43832
  /* @__PURE__ */ D(sb, { address: e.dstTokenAddress })
43834
43833
  ] })
43835
43834
  ] })
43836
43835
  }
43837
43836
  );
43838
43837
  }, RK = () => {
43839
- const e = J((s) => s.state.orderHistoryStatusFilter), t = l2(), r = Fe(), n = t(e);
43838
+ const e = J((s) => s.state.orderHistoryStatusFilter), t = lx(), r = Fe(), n = t(e);
43840
43839
  return /* @__PURE__ */ D("div", { className: "twap-orders__list-empty", children: /* @__PURE__ */ D("p", { children: r("noOrders", { status: n }) }) });
43841
43840
  }, NK = ({ order: e }) => {
43842
- const t = e && e.status, r = a2(e), n = Xu(e.createdAt);
43841
+ const t = e && e.status, r = ax(e), n = Xu(e.createdAt);
43843
43842
  return /* @__PURE__ */ le("div", { className: "twap-orders__list-item-header", children: [
43844
43843
  /* @__PURE__ */ le("p", { className: "twap-orders__list-item-header-title", children: [
43845
43844
  r,
@@ -43851,7 +43850,7 @@ const uK = ({ count: e }) => {
43851
43850
  }, sb = (e) => {
43852
43851
  const { useToken: t, components: r } = ne(), n = t == null ? void 0 : t(e.address);
43853
43852
  return /* @__PURE__ */ D("div", { className: "twap-orders__list-item-token", children: n ? /* @__PURE__ */ le(As, { children: [
43854
- /* @__PURE__ */ D("div", { className: "twap-orders__list-item-token-logo", children: r.TokenLogo ? /* @__PURE__ */ D(r.TokenLogo, { token: n }) : /* @__PURE__ */ D(V2, { logo: n == null ? void 0 : n.logoUrl }) }),
43853
+ /* @__PURE__ */ D("div", { className: "twap-orders__list-item-token-logo", children: r.TokenLogo ? /* @__PURE__ */ D(r.TokenLogo, { token: n }) : /* @__PURE__ */ D(Vx, { logo: n == null ? void 0 : n.logoUrl }) }),
43855
43854
  /* @__PURE__ */ D("p", { className: "twap-orders__list-item-token-symbol", children: n == null ? void 0 : n.symbol })
43856
43855
  ] }) : /* @__PURE__ */ D("div", {}) });
43857
43856
  };
@@ -43901,7 +43900,7 @@ const zK = () => {
43901
43900
  }, Jr = () => {
43902
43901
  const { srcToken: e, typedInputAmount: t } = ne(), r = Fe(), s = J((a) => a.state.swapExecution.acceptedSrcAmount) || t;
43903
43902
  return {
43904
- amountWei: Jx(e == null ? void 0 : e.decimals, s),
43903
+ amountWei: J2(e == null ? void 0 : e.decimals, s),
43905
43904
  amountUI: s,
43906
43905
  error: z(s || 0).isZero() ? r("enterAmount") : void 0
43907
43906
  };
@@ -44041,7 +44040,7 @@ const zK = () => {
44041
44040
  toToken: s ? e : t,
44042
44041
  isMarketPrice: i
44043
44042
  };
44044
- }, K2 = ({
44043
+ }, Kx = ({
44045
44044
  typedValue: e,
44046
44045
  tokenDecimals: t = 18,
44047
44046
  initialPrice: r = "0",
@@ -44139,7 +44138,7 @@ const zK = () => {
44139
44138
  usd: Cs(c, s)
44140
44139
  };
44141
44140
  }, Ds = () => {
44142
- const { dstToken: e, marketPrice: t, module: r, callbacks: n } = ne(), s = J((b) => b.updateState), a = jK(), o = J((b) => b.state.triggerPricePercent), i = o === void 0 ? a : o, c = r === xe.STOP_LOSS || r === xe.TAKE_PROFIT, l = K2({
44141
+ const { dstToken: e, marketPrice: t, module: r, callbacks: n } = ne(), s = J((b) => b.updateState), a = jK(), o = J((b) => b.state.triggerPricePercent), i = o === void 0 ? a : o, c = r === xe.STOP_LOSS || r === xe.TAKE_PROFIT, l = Kx({
44143
44142
  typedValue: J((b) => b.state.typedTriggerPrice),
44144
44143
  percentage: i,
44145
44144
  tokenDecimals: (e == null ? void 0 : e.decimals) || 18,
@@ -44215,7 +44214,7 @@ const zK = () => {
44215
44214
  };
44216
44215
  }, [e, s, a, t, o, n, r]);
44217
44216
  }, Uc = () => {
44218
- const { dstToken: e, marketPrice: t, callbacks: r } = ne(), n = J((l) => l.updateState), s = Om(), a = J((l) => l.state.limitPricePercent), o = a === void 0 ? s : a, i = K2({
44217
+ const { dstToken: e, marketPrice: t, callbacks: r } = ne(), n = J((l) => l.updateState), s = Om(), a = J((l) => l.state.limitPricePercent), o = a === void 0 ? s : a, i = Kx({
44219
44218
  typedValue: J((l) => l.state.typedLimitPrice),
44220
44219
  percentage: o,
44221
44220
  tokenDecimals: (e == null ? void 0 : e.decimals) || 18,
@@ -44245,18 +44244,18 @@ const zK = () => {
44245
44244
  toggleLimitPrice: o,
44246
44245
  hide: a
44247
44246
  };
44248
- }, Y2 = () => {
44247
+ }, Yx = () => {
44249
44248
  const { module: e, marketPrice: t } = ne(), r = Uc().amountWei, n = Ds().amountWei, s = J((a) => a.state.isMarketOrder);
44250
44249
  return e === xe.LIMIT || !s ? r || "" : e === xe.STOP_LOSS || e === xe.TAKE_PROFIT ? n || "" : t || "";
44251
44250
  }, Oc = () => {
44252
- const { srcToken: e, dstToken: t, dstUsd1Token: r } = ne(), n = Y2(), s = Jr().amountWei, a = Q(() => bw(s || "", n, (e == null ? void 0 : e.decimals) || 0), [s, n, e == null ? void 0 : e.decimals]), o = Lr(t == null ? void 0 : t.decimals, a);
44251
+ const { srcToken: e, dstToken: t, dstUsd1Token: r } = ne(), n = Yx(), s = Jr().amountWei, a = Q(() => bw(s || "", n, (e == null ? void 0 : e.decimals) || 0), [s, n, e == null ? void 0 : e.decimals]), o = Lr(t == null ? void 0 : t.decimals, a);
44253
44252
  return {
44254
44253
  amountWei: a,
44255
44254
  amountUI: o,
44256
44255
  usd: Cs(o, r)
44257
44256
  };
44258
44257
  }, Dc = () => {
44259
- const { srcToken: e, dstToken: t, dstUsd1Token: r } = ne(), n = Y2(), s = Fr().amountPerTradeWei, a = J((c) => c.state.isMarketOrder), o = Q(
44258
+ const { srcToken: e, dstToken: t, dstUsd1Token: r } = ne(), n = Yx(), s = Fr().amountPerTradeWei, a = J((c) => c.state.isMarketOrder), o = Q(
44260
44259
  () => yw(s, n, !!a, (e == null ? void 0 : e.decimals) || 0),
44261
44260
  [s, n, a, e == null ? void 0 : e.decimals]
44262
44261
  ), i = Lr(t == null ? void 0 : t.decimals, o);
@@ -44269,7 +44268,7 @@ const zK = () => {
44269
44268
  const { typedInputAmount: e, marketPriceLoading: t, dstToken: r } = ne(), { amountUI: n, usd: s } = Oc(), o = Tj() ? e : n;
44270
44269
  return {
44271
44270
  value: o,
44272
- valueWei: Jx(r == null ? void 0 : r.decimals, o),
44271
+ valueWei: J2(r == null ? void 0 : r.decimals, o),
44273
44272
  isLoading: t,
44274
44273
  usd: s
44275
44274
  };
@@ -44372,23 +44371,24 @@ const gZ = () => {
44372
44371
  usd: Cs(n, t)
44373
44372
  };
44374
44373
  }, JK = () => {
44375
- const { srcToken: e, dstToken: t, account: r, chainId: n, slippage: s, config: a, module: o } = ne(), { amountWei: i } = Jr(), { amountPerTradeWei: c, totalTrades: l } = Fr(), u = nd(), { amountWei: d } = Dc(), { pricePerChunkWei: f } = Ds(), { milliseconds: m } = Os();
44374
+ const { srcToken: e, dstToken: t, account: r, chainId: n, slippage: s, config: a, module: o, fees: i } = ne(), { amountWei: c } = Jr(), { amountPerTradeWei: l, totalTrades: u } = Fr(), d = nd(), { amountWei: f } = Dc(), { pricePerChunkWei: m } = Ds(), { milliseconds: b } = Os();
44376
44375
  return Q(() => {
44377
- var b;
44376
+ var g;
44378
44377
  return zw({
44379
44378
  chainId: n,
44380
- srcToken: xo((e == null ? void 0 : e.address) || "") ? ((b = wo(n)) == null ? void 0 : b.wToken.address) || "" : (e == null ? void 0 : e.address) || "",
44379
+ srcToken: xo((e == null ? void 0 : e.address) || "") ? ((g = wo(n)) == null ? void 0 : g.wToken.address) || "" : (e == null ? void 0 : e.address) || "",
44381
44380
  dstToken: (t == null ? void 0 : t.address) || "",
44382
- srcAmount: i,
44383
- deadlineMillis: u,
44384
- fillDelayMillis: !l || l === 1 ? 0 : m,
44381
+ srcAmount: c,
44382
+ deadlineMillis: d,
44383
+ fillDelayMillis: !u || u === 1 ? 0 : b,
44385
44384
  slippage: s * 100,
44386
44385
  account: r,
44387
- srcAmountPerTrade: c,
44388
- dstMinAmountPerTrade: d,
44389
- triggerAmountPerTrade: f,
44386
+ srcAmountPerTrade: l,
44387
+ dstMinAmountPerTrade: f,
44388
+ triggerAmountPerTrade: m,
44390
44389
  config: a,
44391
- module: o
44390
+ module: o,
44391
+ feePercentage: i
44392
44392
  });
44393
44393
  }, [
44394
44394
  e,
@@ -44398,12 +44398,13 @@ const gZ = () => {
44398
44398
  s,
44399
44399
  a,
44400
44400
  o,
44401
- i,
44402
44401
  c,
44403
44402
  l,
44403
+ u,
44404
+ b,
44405
+ f,
44404
44406
  m,
44405
- d,
44406
- f
44407
+ i
44407
44408
  ]);
44408
44409
  }, eY = () => {
44409
44410
  const { srcToken: e, dstToken: t, account: r } = ne(), { amountWei: n } = Jr(), { amountWei: s } = Uc(), { amountPerTradeWei: a, totalTrades: o } = Fr(), i = nd(), { amountWei: c } = Dc(), { pricePerChunkWei: l } = Ds(), { milliseconds: u } = Os(), d = JK();
@@ -44443,7 +44444,7 @@ const gZ = () => {
44443
44444
  amount: b,
44444
44445
  percent: g,
44445
44446
  usd: E
44446
- } = QK(), { milliseconds: v } = Os(), { amountUI: w } = Oc(), { srcAmountUsd: A, dstAmountUsd: C } = XK(), F = Jr().amountUI, R = J((T) => T.state.isMarketOrder), P = J((T) => T.state.currentTime), h = e2({
44447
+ } = QK(), { milliseconds: v } = Os(), { amountUI: w } = Oc(), { srcAmountUsd: A, dstAmountUsd: C } = XK(), F = Jr().amountUI, R = J((T) => T.state.isMarketOrder), S = J((T) => T.state.currentTime), h = ex({
44447
44448
  srcToken: e,
44448
44449
  dstToken: t,
44449
44450
  account: r,
@@ -44462,8 +44463,8 @@ const gZ = () => {
44462
44463
  srcUsd: A,
44463
44464
  dstUsd: C,
44464
44465
  dstAmount: w,
44465
- orderType: n2(),
44466
- createdAt: P
44466
+ orderType: nx(),
44467
+ createdAt: S
44467
44468
  }), y = Kr({ value: b }), x = Kr({ value: E });
44468
44469
  return Q(() => ({
44469
44470
  ...h,
@@ -44474,17 +44475,17 @@ const gZ = () => {
44474
44475
  percentage: g
44475
44476
  }
44476
44477
  }), [h, y, x, g]);
44477
- }, Z2 = tc({}), rY = ({ children: e, ...t }) => /* @__PURE__ */ D(Z2.Provider, { value: t, children: e }), nY = () => au(Z2), X2 = () => {
44478
+ }, Zx = tc({}), rY = ({ children: e, ...t }) => /* @__PURE__ */ D(Zx.Provider, { value: t, children: e }), nY = () => au(Zx), Xx = () => {
44478
44479
  var s, a;
44479
44480
  const e = Fe(), { wrapTxHash: t, srcToken: r } = J((o) => o.state.swapExecution), n = (a = (s = Do()) == null ? void 0 : s.wToken) == null ? void 0 : a.symbol;
44480
44481
  return t ? /* @__PURE__ */ D("p", { className: "twap-error-wrap-msg", children: e("wrapMsg", { symbol: (r == null ? void 0 : r.symbol) || "", wSymbol: n || "" }) }) : null;
44481
- }, Q2 = () => {
44482
- const e = Fe(), t = J((n) => n.state.swapExecution.status), r = s2();
44482
+ }, Qx = () => {
44483
+ const e = Fe(), t = J((n) => n.state.swapExecution.status), r = sx();
44483
44484
  return t === yt.SUCCESS ? e("createOrderActionSuccess", { name: r }) : e("createOrderAction", { name: r });
44484
44485
  }, sY = () => {
44485
44486
  const e = J((b) => b.state.swapExecution.srcToken), t = Fe(), { step: r, wrapTxHash: n, approveTxHash: s } = J(
44486
44487
  (b) => b.state.swapExecution
44487
- ), a = Do(), o = _l(n), i = _l(n), c = _l(s), l = J((b) => b.state.swapExecution.status), d = xo((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 = Q2();
44488
+ ), a = Do(), o = _l(n), i = _l(n), c = _l(s), l = J((b) => b.state.swapExecution.status), d = xo((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 = Qx();
44488
44489
  return Q(() => r === La.WRAP ? {
44489
44490
  title: t("wrapAction", { symbol: d }),
44490
44491
  footerLink: o,
@@ -44513,7 +44514,7 @@ const gZ = () => {
44513
44514
  "Error code: ",
44514
44515
  e == null ? void 0 : e.code
44515
44516
  ] }),
44516
- /* @__PURE__ */ D(X2, {})
44517
+ /* @__PURE__ */ D(Xx, {})
44517
44518
  ] });
44518
44519
  function oY({ error: e }) {
44519
44520
  const { components: t } = ne(), r = Fe(), n = J((o) => {
@@ -44663,9 +44664,9 @@ const iY = () => {
44663
44664
  }
44664
44665
  ) });
44665
44666
  }, lY = () => {
44666
- const e = Q2(), { components: t } = ne(), r = J((a) => a.state.swapExecution.orderId), n = t.SubmitOrderSuccessView, s = /* @__PURE__ */ le(As, { children: [
44667
+ const e = Qx(), { components: t } = ne(), r = J((a) => a.state.swapExecution.orderId), n = t.SubmitOrderSuccessView, s = /* @__PURE__ */ le(As, { children: [
44667
44668
  /* @__PURE__ */ D(Ss.Success, { title: e }),
44668
- /* @__PURE__ */ D(X2, {})
44669
+ /* @__PURE__ */ D(Xx, {})
44669
44670
  ] });
44670
44671
  return n ? /* @__PURE__ */ D(n, { newOrderId: r, children: s }) : s;
44671
44672
  }, xZ = () => {
@@ -44762,7 +44763,7 @@ const iY = () => {
44762
44763
  return (v = n == null ? void 0 : n.onOrderCreated) == null || v.call(n, m), await a(), m;
44763
44764
  }
44764
44765
  });
44765
- }, J2 = () => {
44766
+ }, Jx = () => {
44766
44767
  const { account: e, publicClient: t, config: r } = ne();
44767
44768
  return mn({
44768
44769
  mutationFn: async ({
@@ -44787,7 +44788,7 @@ const iY = () => {
44787
44788
  }
44788
44789
  });
44789
44790
  }, pY = () => {
44790
- const { account: e, walletClient: t, overrides: r, config: n, chainId: s, callbacks: a } = ne(), o = gm(), { mutateAsync: i } = J2();
44791
+ const { account: e, walletClient: t, overrides: r, config: n, chainId: s, callbacks: a } = ne(), o = gm(), { mutateAsync: i } = Jx();
44791
44792
  return mn({
44792
44793
  onError: (c) => {
44793
44794
  bt.onApproveError(c);
@@ -44880,7 +44881,7 @@ function mY(e) {
44880
44881
  };
44881
44882
  }
44882
44883
  const hY = () => {
44883
- const { srcToken: e, dstToken: t, chainId: r, callbacks: n } = ne(), s = pY().mutateAsync, a = uY().mutateAsync, o = dY().mutateAsync, { mutateAsync: i } = J2(), c = J((d) => d.updateSwapExecution), { amountWei: l } = Jr(), u = fY().mutate;
44884
+ const { srcToken: e, dstToken: t, chainId: r, callbacks: n } = ne(), s = pY().mutateAsync, a = uY().mutateAsync, o = dY().mutateAsync, { mutateAsync: i } = Jx(), c = J((d) => d.updateSwapExecution), { amountWei: l } = Jr(), u = fY().mutate;
44884
44885
  return mn({
44885
44886
  mutationFn: async () => {
44886
44887
  var f, m;
@@ -44935,7 +44936,7 @@ const hY = () => {
44935
44936
  }
44936
44937
  });
44937
44938
  }, vZ = () => {
44938
- const { marketPrice: e, srcToken: t, dstToken: r, resetTypedInputAmount: n } = ne(), s = hY(), { amountUI: a } = Jr(), o = J((g) => g.resetState), i = J((g) => g.state.swapExecution), c = J((g) => g.updateSwapExecution), l = J((g) => g.resetSwapExecution), u = s2(), d = ze(() => {
44939
+ const { marketPrice: e, srcToken: t, dstToken: r, resetTypedInputAmount: n } = ne(), s = hY(), { amountUI: a } = Jr(), o = J((g) => g.resetState), i = J((g) => g.state.swapExecution), c = J((g) => g.updateSwapExecution), l = J((g) => g.resetSwapExecution), u = sx(), d = ze(() => {
44939
44940
  (i == null ? void 0 : i.status) === yt.SUCCESS && n(), (i == null ? void 0 : i.status) !== yt.LOADING && o();
44940
44941
  }, [i == null ? void 0 : i.status, o, n]), f = ze(() => {
44941
44942
  (i == null ? void 0 : i.status) !== yt.LOADING && l({
@@ -45006,7 +45007,7 @@ export {
45006
45007
  hY as G,
45007
45008
  si as H,
45008
45009
  dY as I,
45009
- n2 as J,
45010
+ nx as J,
45010
45011
  JK as K,
45011
45012
  DW as L,
45012
45013
  Kr as M,