@orbs-network/spot-ui 0.0.20 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/spot-ui.js CHANGED
@@ -690,7 +690,7 @@ const it = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
690
690
  }
691
691
  ]
692
692
  }
693
- ], On = Mt, vn = Ut, _n = Vt, Pn = Lt;
693
+ ], vn = Mt, _n = Ut, Pn = Vt, Rn = Lt;
694
694
  var j = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(j || {}), se = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Canceled = "CANCELED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(se || {}), ne = /* @__PURE__ */ ((e) => (e[e.Minutes = 6e4] = "Minutes", e[e.Hours = 36e5] = "Hours", e[e.Weeks = 6048e5] = "Weeks", e[e.Days = 864e5] = "Days", e[e.Months = 2592e6] = "Months", e[e.Years = 31536e6] = "Years", e))(ne || {}), G = /* @__PURE__ */ ((e) => (e.LIMIT = "limit", e.TWAP_LIMIT = "twap-limit", e.TWAP_MARKET = "twap-market", e.TRIGGER_PRICE_MARKET = "trigger-price-market", e.TRIGGER_PRICE_LIMIT = "trigger-price-limit", e))(G || {}), Wt = /* @__PURE__ */ ((e) => (e.Arbidex = "arbidex", e.Blackhole = "blackhole", e.Chronos = "chronos", e.Dragon = "dragon", e.Kodiak = "kodiak", e.Lynex = "lynex", e.Nami = "nami", e.Newera = "newera", e.Omni = "omni", e.Pancake = "pancake", e.Quick = "quick", e.Ramses = "ramses", e.Shadow = "shadow", e.Spark = "spark", e.Spooky = "spooky", e.Swapx = "swapx", e.Teafi = "teafi", e.Thena = "thena", e.Yowie = "yowie", e))(Wt || {});
695
695
  const U = "0x0000000000000000000000000000000000000000", H = {
696
696
  eth: {
@@ -1144,7 +1144,7 @@ const U = "0x0000000000000000000000000000000000000000", H = {
1144
1144
  };
1145
1145
  var zt = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, De = Math.ceil, J = Math.floor, q = "[BigNumber Error] ", Le = q + "Number primitive has more than 15 significant digits: ", te = 1e14, S = 14, ke = 9007199254740991, Se = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], ce = 1e7, V = 1e9;
1146
1146
  function je(e) {
1147
- var n, i, y, p = b.prototype = { constructor: b, toString: null, valueOf: null }, A = new b(1), g = 20, E = 4, w = -7, T = 21, B = -1e7, C = 1e7, k = !1, P = 1, R = 0, ue = {
1147
+ var n, i, y, c = b.prototype = { constructor: b, toString: null, valueOf: null }, A = new b(1), g = 20, E = 4, w = -7, T = 21, B = -1e7, C = 1e7, k = !1, P = 1, R = 0, ue = {
1148
1148
  prefix: "",
1149
1149
  groupSize: 3,
1150
1150
  secondaryGroupSize: 0,
@@ -1156,7 +1156,7 @@ function je(e) {
1156
1156
  suffix: ""
1157
1157
  }, re = "0123456789abcdefghijklmnopqrstuvwxyz", fe = !0;
1158
1158
  function b(t, a) {
1159
- var s, u, o, c, m, r, d, f, l = this;
1159
+ var s, u, o, p, m, r, d, f, l = this;
1160
1160
  if (!(l instanceof b)) return new b(t, a);
1161
1161
  if (a == null) {
1162
1162
  if (t && t._isBigNumber === !0) {
@@ -1165,8 +1165,8 @@ function je(e) {
1165
1165
  }
1166
1166
  if ((r = typeof t == "number") && t * 0 == 0) {
1167
1167
  if (l.s = 1 / t < 0 ? (t = -t, -1) : 1, t === ~~t) {
1168
- for (c = 0, m = t; m >= 10; m /= 10, c++) ;
1169
- c > C ? l.c = l.e = null : (l.e = c, l.c = [t]);
1168
+ for (p = 0, m = t; m >= 10; m /= 10, p++) ;
1169
+ p > C ? l.c = l.e = null : (l.e = p, l.c = [t]);
1170
1170
  return;
1171
1171
  }
1172
1172
  f = String(t);
@@ -1174,7 +1174,7 @@ function je(e) {
1174
1174
  if (!zt.test(f = String(t))) return y(l, f, r);
1175
1175
  l.s = f.charCodeAt(0) == 45 ? (f = f.slice(1), -1) : 1;
1176
1176
  }
1177
- (c = f.indexOf(".")) > -1 && (f = f.replace(".", "")), (m = f.search(/e/i)) > 0 ? (c < 0 && (c = m), c += +f.slice(m + 1), f = f.substring(0, m)) : c < 0 && (c = f.length);
1177
+ (p = f.indexOf(".")) > -1 && (f = f.replace(".", "")), (m = f.search(/e/i)) > 0 ? (p < 0 && (p = m), p += +f.slice(m + 1), f = f.substring(0, m)) : p < 0 && (p = f.length);
1178
1178
  } else {
1179
1179
  if (I(a, 2, re.length, "Base"), a == 10 && fe)
1180
1180
  return l = new b(t), X(l, g + l.e + 1, E);
@@ -1184,32 +1184,32 @@ function je(e) {
1184
1184
  throw Error(Le + t);
1185
1185
  } else
1186
1186
  l.s = f.charCodeAt(0) === 45 ? (f = f.slice(1), -1) : 1;
1187
- for (s = re.slice(0, a), c = m = 0, d = f.length; m < d; m++)
1187
+ for (s = re.slice(0, a), p = m = 0, d = f.length; m < d; m++)
1188
1188
  if (s.indexOf(u = f.charAt(m)) < 0) {
1189
1189
  if (u == ".") {
1190
- if (m > c) {
1191
- c = d;
1190
+ if (m > p) {
1191
+ p = d;
1192
1192
  continue;
1193
1193
  }
1194
1194
  } else if (!o && (f == f.toUpperCase() && (f = f.toLowerCase()) || f == f.toLowerCase() && (f = f.toUpperCase()))) {
1195
- o = !0, m = -1, c = 0;
1195
+ o = !0, m = -1, p = 0;
1196
1196
  continue;
1197
1197
  }
1198
1198
  return y(l, String(t), r, a);
1199
1199
  }
1200
- r = !1, f = i(f, a, 10, l.s), (c = f.indexOf(".")) > -1 ? f = f.replace(".", "") : c = f.length;
1200
+ r = !1, f = i(f, a, 10, l.s), (p = f.indexOf(".")) > -1 ? f = f.replace(".", "") : p = f.length;
1201
1201
  }
1202
1202
  for (m = 0; f.charCodeAt(m) === 48; m++) ;
1203
1203
  for (d = f.length; f.charCodeAt(--d) === 48; ) ;
1204
1204
  if (f = f.slice(m, ++d)) {
1205
1205
  if (d -= m, r && b.DEBUG && d > 15 && (t > ke || t !== J(t)))
1206
1206
  throw Error(Le + l.s * t);
1207
- if ((c = c - m - 1) > C)
1207
+ if ((p = p - m - 1) > C)
1208
1208
  l.c = l.e = null;
1209
- else if (c < B)
1209
+ else if (p < B)
1210
1210
  l.c = [l.e = 0];
1211
1211
  else {
1212
- if (l.e = c, l.c = [], m = (c + 1) % S, c < 0 && (m += S), m < d) {
1212
+ if (l.e = p, l.c = [], m = (p + 1) % S, p < 0 && (m += S), m < d) {
1213
1213
  for (m && l.c.push(+f.slice(0, m)), d -= S; m < d; )
1214
1214
  l.c.push(+f.slice(m, m += S));
1215
1215
  m = S - (f = f.slice(m)).length;
@@ -1267,9 +1267,9 @@ function je(e) {
1267
1267
  }, b.isBigNumber = function(t) {
1268
1268
  if (!t || t._isBigNumber !== !0) return !1;
1269
1269
  if (!b.DEBUG) return !0;
1270
- var a, s, u = t.c, o = t.e, c = t.s;
1270
+ var a, s, u = t.c, o = t.e, p = t.s;
1271
1271
  e: if ({}.toString.call(u) == "[object Array]") {
1272
- if ((c === 1 || c === -1) && o >= -V && o <= V && o === J(o)) {
1272
+ if ((p === 1 || p === -1) && o >= -V && o <= V && o === J(o)) {
1273
1273
  if (u[0] === 0) {
1274
1274
  if (o === 0 && u.length === 1) return !0;
1275
1275
  break e;
@@ -1280,7 +1280,7 @@ function je(e) {
1280
1280
  if (s !== 0) return !0;
1281
1281
  }
1282
1282
  }
1283
- } else if (u === null && o === null && (c === null || c === 1 || c === -1))
1283
+ } else if (u === null && o === null && (p === null || p === 1 || p === -1))
1284
1284
  return !0;
1285
1285
  throw Error(q + "Invalid BigNumber: " + t);
1286
1286
  }, b.maximum = b.max = function() {
@@ -1294,7 +1294,7 @@ function je(e) {
1294
1294
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
1295
1295
  };
1296
1296
  return function(s) {
1297
- var u, o, c, m, r, d = 0, f = [], l = new b(A);
1297
+ var u, o, p, m, r, d = 0, f = [], l = new b(A);
1298
1298
  if (s == null ? s = g : I(s, 0, V), m = De(s / S), k)
1299
1299
  if (crypto.getRandomValues) {
1300
1300
  for (u = crypto.getRandomValues(new Uint32Array(m *= 2)); d < m; )
@@ -1311,28 +1311,28 @@ function je(e) {
1311
1311
  r = a(), r < 9e15 && (f[d++] = r % 1e14);
1312
1312
  for (m = f[--d], s %= S, m && s && (r = Se[S - s], f[d] = J(m / r) * r); f[d] === 0; f.pop(), d--) ;
1313
1313
  if (d < 0)
1314
- f = [c = 0];
1314
+ f = [p = 0];
1315
1315
  else {
1316
- for (c = -1; f[0] === 0; f.splice(0, 1), c -= S) ;
1316
+ for (p = -1; f[0] === 0; f.splice(0, 1), p -= S) ;
1317
1317
  for (d = 1, r = f[0]; r >= 10; r /= 10, d++) ;
1318
- d < S && (c -= S - d);
1318
+ d < S && (p -= S - d);
1319
1319
  }
1320
- return l.e = c, l.c = f, l;
1320
+ return l.e = p, l.c = f, l;
1321
1321
  };
1322
1322
  })(), b.sum = function() {
1323
1323
  for (var t = 1, a = arguments, s = new b(a[0]); t < a.length; ) s = s.plus(a[t++]);
1324
1324
  return s;
1325
1325
  }, i = /* @__PURE__ */ (function() {
1326
1326
  var t = "0123456789";
1327
- function a(s, u, o, c) {
1327
+ function a(s, u, o, p) {
1328
1328
  for (var m, r = [0], d, f = 0, l = s.length; f < l; ) {
1329
1329
  for (d = r.length; d--; r[d] *= u) ;
1330
- for (r[0] += c.indexOf(s.charAt(f++)), m = 0; m < r.length; m++)
1330
+ for (r[0] += p.indexOf(s.charAt(f++)), m = 0; m < r.length; m++)
1331
1331
  r[m] > o - 1 && (r[m + 1] == null && (r[m + 1] = 0), r[m + 1] += r[m] / o | 0, r[m] %= o);
1332
1332
  }
1333
1333
  return r.reverse();
1334
1334
  }
1335
- return function(s, u, o, c, m) {
1335
+ return function(s, u, o, p, m) {
1336
1336
  var r, d, f, l, h, F, D, v, N = s.indexOf("."), L = g, O = E;
1337
1337
  for (N >= 0 && (l = R, R = 0, s = s.replace(".", ""), v = new b(u), F = v.pow(s.length - N), R = l, v.c = a(
1338
1338
  oe(Y(F.c), F.e, "0"),
@@ -1341,7 +1341,7 @@ function je(e) {
1341
1341
  t
1342
1342
  ), v.e = v.c.length), D = a(s, u, o, m ? (r = re, t) : (r = t, re)), f = l = D.length; D[--l] == 0; D.pop()) ;
1343
1343
  if (!D[0]) return r.charAt(0);
1344
- if (N < 0 ? --f : (F.c = D, F.e = f, F.s = c, F = n(F, v, L, O, o), D = F.c, h = F.r, f = F.e), d = f + L + 1, N = D[d], l = o / 2, h = h || d < 0 || D[d + 1] != null, h = O < 4 ? (N != null || h) && (O == 0 || O == (F.s < 0 ? 3 : 2)) : N > l || N == l && (O == 4 || h || O == 6 && D[d - 1] & 1 || O == (F.s < 0 ? 8 : 7)), d < 1 || !D[0])
1344
+ if (N < 0 ? --f : (F.c = D, F.e = f, F.s = p, F = n(F, v, L, O, o), D = F.c, h = F.r, f = F.e), d = f + L + 1, N = D[d], l = o / 2, h = h || d < 0 || D[d + 1] != null, h = O < 4 ? (N != null || h) && (O == 0 || O == (F.s < 0 ? 3 : 2)) : N > l || N == l && (O == 4 || h || O == 6 && D[d - 1] & 1 || O == (F.s < 0 ? 8 : 7)), d < 1 || !D[0])
1345
1345
  s = h ? oe(r.charAt(1), -L, r.charAt(0)) : r.charAt(0);
1346
1346
  else {
1347
1347
  if (D.length = d, h)
@@ -1354,30 +1354,30 @@ function je(e) {
1354
1354
  return s;
1355
1355
  };
1356
1356
  })(), n = /* @__PURE__ */ (function() {
1357
- function t(u, o, c) {
1357
+ function t(u, o, p) {
1358
1358
  var m, r, d, f, l = 0, h = u.length, F = o % ce, D = o / ce | 0;
1359
1359
  for (u = u.slice(); h--; )
1360
- d = u[h] % ce, f = u[h] / ce | 0, m = D * d + f * F, r = F * d + m % ce * ce + l, l = (r / c | 0) + (m / ce | 0) + D * f, u[h] = r % c;
1360
+ d = u[h] % ce, f = u[h] / ce | 0, m = D * d + f * F, r = F * d + m % ce * ce + l, l = (r / p | 0) + (m / ce | 0) + D * f, u[h] = r % p;
1361
1361
  return l && (u = [l].concat(u)), u;
1362
1362
  }
1363
- function a(u, o, c, m) {
1363
+ function a(u, o, p, m) {
1364
1364
  var r, d;
1365
- if (c != m)
1366
- d = c > m ? 1 : -1;
1365
+ if (p != m)
1366
+ d = p > m ? 1 : -1;
1367
1367
  else
1368
- for (r = d = 0; r < c; r++)
1368
+ for (r = d = 0; r < p; r++)
1369
1369
  if (u[r] != o[r]) {
1370
1370
  d = u[r] > o[r] ? 1 : -1;
1371
1371
  break;
1372
1372
  }
1373
1373
  return d;
1374
1374
  }
1375
- function s(u, o, c, m) {
1376
- for (var r = 0; c--; )
1377
- u[c] -= r, r = u[c] < o[c] ? 1 : 0, u[c] = r * m + u[c] - o[c];
1375
+ function s(u, o, p, m) {
1376
+ for (var r = 0; p--; )
1377
+ u[p] -= r, r = u[p] < o[p] ? 1 : 0, u[p] = r * m + u[p] - o[p];
1378
1378
  for (; !u[0] && u.length > 1; u.splice(0, 1)) ;
1379
1379
  }
1380
- return function(u, o, c, m, r) {
1380
+ return function(u, o, p, m, r) {
1381
1381
  var d, f, l, h, F, D, v, N, L, O, _, W, he, Fe, Ce, ae, me, Q = u.s == o.s ? 1 : -1, z = u.c, M = o.c;
1382
1382
  if (!z || !z[0] || !M || !M[0])
1383
1383
  return new b(
@@ -1387,7 +1387,7 @@ function je(e) {
1387
1387
  z && z[0] == 0 || !M ? Q * 0 : Q / 0
1388
1388
  )
1389
1389
  );
1390
- for (N = new b(Q), L = N.c = [], f = u.e - o.e, Q = c + f + 1, r || (r = te, f = ee(u.e / S) - ee(o.e / S), Q = Q / S | 0), l = 0; M[l] == (z[l] || 0); l++) ;
1390
+ for (N = new b(Q), L = N.c = [], f = u.e - o.e, Q = p + f + 1, r || (r = te, f = ee(u.e / S) - ee(o.e / S), Q = Q / S | 0), l = 0; M[l] == (z[l] || 0); l++) ;
1391
1391
  if (M[l] > (z[l] || 0) && f--, Q < 0)
1392
1392
  L.push(1), h = !0;
1393
1393
  else {
@@ -1410,30 +1410,30 @@ function je(e) {
1410
1410
  }
1411
1411
  if (r == te) {
1412
1412
  for (l = 1, Q = L[0]; Q >= 10; Q /= 10, l++) ;
1413
- X(N, c + (N.e = l + f * S - 1) + 1, m, h);
1413
+ X(N, p + (N.e = l + f * S - 1) + 1, m, h);
1414
1414
  } else
1415
1415
  N.e = f, N.r = +h;
1416
1416
  return N;
1417
1417
  };
1418
1418
  })();
1419
1419
  function we(t, a, s, u) {
1420
- var o, c, m, r, d;
1420
+ var o, p, m, r, d;
1421
1421
  if (s == null ? s = E : I(s, 0, 8), !t.c) return t.toString();
1422
1422
  if (o = t.c[0], m = t.e, a == null)
1423
1423
  d = Y(t.c), d = u == 1 || u == 2 && (m <= w || m >= T) ? ge(d, m) : oe(d, m, "0");
1424
- else if (t = X(new b(t), a, s), c = t.e, d = Y(t.c), r = d.length, u == 1 || u == 2 && (a <= c || c <= w)) {
1424
+ else if (t = X(new b(t), a, s), p = t.e, d = Y(t.c), r = d.length, u == 1 || u == 2 && (a <= p || p <= w)) {
1425
1425
  for (; r < a; d += "0", r++) ;
1426
- d = ge(d, c);
1427
- } else if (a -= m + (u === 2 && c > m), d = oe(d, c, "0"), c + 1 > r) {
1426
+ d = ge(d, p);
1427
+ } else if (a -= m + (u === 2 && p > m), d = oe(d, p, "0"), p + 1 > r) {
1428
1428
  if (--a > 0) for (d += "."; a--; d += "0") ;
1429
- } else if (a += c - r, a > 0)
1430
- for (c + 1 == r && (d += "."); a--; d += "0") ;
1429
+ } else if (a += p - r, a > 0)
1430
+ for (p + 1 == r && (d += "."); a--; d += "0") ;
1431
1431
  return t.s < 0 && o ? "-" + d : d;
1432
1432
  }
1433
1433
  function Ue(t, a) {
1434
- for (var s, u, o = 1, c = new b(t[0]); o < t.length; o++)
1435
- u = new b(t[o]), (!u.s || (s = le(c, u)) === a || s === 0 && c.s === a) && (c = u);
1436
- return c;
1434
+ for (var s, u, o = 1, p = new b(t[0]); o < t.length; o++)
1435
+ u = new b(t[o]), (!u.s || (s = le(p, u)) === a || s === 0 && p.s === a) && (p = u);
1436
+ return p;
1437
1437
  }
1438
1438
  function Te(t, a, s) {
1439
1439
  for (var u = 1, o = a.length; !a[--o]; a.pop()) ;
@@ -1442,10 +1442,10 @@ function je(e) {
1442
1442
  }
1443
1443
  y = /* @__PURE__ */ (function() {
1444
1444
  var t = /^(-?)0([xbo])(?=\w[\w.]*$)/i, a = /^([^.]+)\.$/, s = /^\.([^.]+)$/, u = /^-?(Infinity|NaN)$/, o = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
1445
- return function(c, m, r, d) {
1445
+ return function(p, m, r, d) {
1446
1446
  var f, l = r ? m : m.replace(o, "");
1447
1447
  if (u.test(l))
1448
- c.s = isNaN(l) ? null : l < 0 ? -1 : 1;
1448
+ p.s = isNaN(l) ? null : l < 0 ? -1 : 1;
1449
1449
  else {
1450
1450
  if (!r && (l = l.replace(t, function(h, F, D) {
1451
1451
  return f = (D = D.toLowerCase()) == "x" ? 16 : D == "b" ? 2 : 8, !d || d == f ? F : h;
@@ -1453,46 +1453,46 @@ function je(e) {
1453
1453
  return new b(l, f);
1454
1454
  if (b.DEBUG)
1455
1455
  throw Error(q + "Not a" + (d ? " base " + d : "") + " number: " + m);
1456
- c.s = null;
1456
+ p.s = null;
1457
1457
  }
1458
- c.c = c.e = null;
1458
+ p.c = p.e = null;
1459
1459
  };
1460
1460
  })();
1461
1461
  function X(t, a, s, u) {
1462
- var o, c, m, r, d, f, l, h = t.c, F = Se;
1462
+ var o, p, m, r, d, f, l, h = t.c, F = Se;
1463
1463
  if (h) {
1464
1464
  e: {
1465
1465
  for (o = 1, r = h[0]; r >= 10; r /= 10, o++) ;
1466
- if (c = a - o, c < 0)
1467
- c += S, m = a, d = h[f = 0], l = J(d / F[o - m - 1] % 10);
1468
- else if (f = De((c + 1) / S), f >= h.length)
1466
+ if (p = a - o, p < 0)
1467
+ p += S, m = a, d = h[f = 0], l = J(d / F[o - m - 1] % 10);
1468
+ else if (f = De((p + 1) / S), f >= h.length)
1469
1469
  if (u) {
1470
1470
  for (; h.length <= f; h.push(0)) ;
1471
- d = l = 0, o = 1, c %= S, m = c - S + 1;
1471
+ d = l = 0, o = 1, p %= S, m = p - S + 1;
1472
1472
  } else
1473
1473
  break e;
1474
1474
  else {
1475
1475
  for (d = r = h[f], o = 1; r >= 10; r /= 10, o++) ;
1476
- c %= S, m = c - S + o, l = m < 0 ? 0 : J(d / F[o - m - 1] % 10);
1476
+ p %= S, m = p - S + o, l = m < 0 ? 0 : J(d / F[o - m - 1] % 10);
1477
1477
  }
1478
1478
  if (u = u || a < 0 || // Are there any non-zero digits after the rounding digit?
1479
1479
  // The expression n % pows10[d - j - 1] returns all digits of n to the right
1480
1480
  // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
1481
1481
  h[f + 1] != null || (m < 0 ? d : d % F[o - m - 1]), u = s < 4 ? (l || u) && (s == 0 || s == (t.s < 0 ? 3 : 2)) : l > 5 || l == 5 && (s == 4 || u || s == 6 && // Check whether the digit to the left of the rounding digit is odd.
1482
- (c > 0 ? m > 0 ? d / F[o - m] : 0 : h[f - 1]) % 10 & 1 || s == (t.s < 0 ? 8 : 7)), a < 1 || !h[0])
1482
+ (p > 0 ? m > 0 ? d / F[o - m] : 0 : h[f - 1]) % 10 & 1 || s == (t.s < 0 ? 8 : 7)), a < 1 || !h[0])
1483
1483
  return h.length = 0, u ? (a -= t.e + 1, h[0] = F[(S - a % S) % S], t.e = -a || 0) : h[0] = t.e = 0, t;
1484
- if (c == 0 ? (h.length = f, r = 1, f--) : (h.length = f + 1, r = F[S - c], h[f] = m > 0 ? J(d / F[o - m] % F[m]) * r : 0), u)
1484
+ if (p == 0 ? (h.length = f, r = 1, f--) : (h.length = f + 1, r = F[S - p], h[f] = m > 0 ? J(d / F[o - m] % F[m]) * r : 0), u)
1485
1485
  for (; ; )
1486
1486
  if (f == 0) {
1487
- for (c = 1, m = h[0]; m >= 10; m /= 10, c++) ;
1487
+ for (p = 1, m = h[0]; m >= 10; m /= 10, p++) ;
1488
1488
  for (m = h[0] += r, r = 1; m >= 10; m /= 10, r++) ;
1489
- c != r && (t.e++, h[0] == te && (h[0] = 1));
1489
+ p != r && (t.e++, h[0] == te && (h[0] = 1));
1490
1490
  break;
1491
1491
  } else {
1492
1492
  if (h[f] += r, h[f] != te) break;
1493
1493
  h[f--] = 0, r = 1;
1494
1494
  }
1495
- for (c = h.length; h[--c] === 0; h.pop()) ;
1495
+ for (p = h.length; h[--p] === 0; h.pop()) ;
1496
1496
  }
1497
1497
  t.e > C ? t.c = t.e = null : t.e < B && (t.c = [t.e = 0]);
1498
1498
  }
@@ -1502,24 +1502,24 @@ function je(e) {
1502
1502
  var a, s = t.e;
1503
1503
  return s === null ? t.toString() : (a = Y(t.c), a = s <= w || s >= T ? ge(a, s) : oe(a, s, "0"), t.s < 0 ? "-" + a : a);
1504
1504
  }
1505
- return p.absoluteValue = p.abs = function() {
1505
+ return c.absoluteValue = c.abs = function() {
1506
1506
  var t = new b(this);
1507
1507
  return t.s < 0 && (t.s = 1), t;
1508
- }, p.comparedTo = function(t, a) {
1508
+ }, c.comparedTo = function(t, a) {
1509
1509
  return le(this, new b(t, a));
1510
- }, p.decimalPlaces = p.dp = function(t, a) {
1511
- var s, u, o, c = this;
1510
+ }, c.decimalPlaces = c.dp = function(t, a) {
1511
+ var s, u, o, p = this;
1512
1512
  if (t != null)
1513
- return I(t, 0, V), a == null ? a = E : I(a, 0, 8), X(new b(c), t + c.e + 1, a);
1514
- if (!(s = c.c)) return null;
1513
+ return I(t, 0, V), a == null ? a = E : I(a, 0, 8), X(new b(p), t + p.e + 1, a);
1514
+ if (!(s = p.c)) return null;
1515
1515
  if (u = ((o = s.length - 1) - ee(this.e / S)) * S, o = s[o]) for (; o % 10 == 0; o /= 10, u--) ;
1516
1516
  return u < 0 && (u = 0), u;
1517
- }, p.dividedBy = p.div = function(t, a) {
1517
+ }, c.dividedBy = c.div = function(t, a) {
1518
1518
  return n(this, new b(t, a), g, E);
1519
- }, p.dividedToIntegerBy = p.idiv = function(t, a) {
1519
+ }, c.dividedToIntegerBy = c.idiv = function(t, a) {
1520
1520
  return n(this, new b(t, a), 0, 1);
1521
- }, p.exponentiatedBy = p.pow = function(t, a) {
1522
- var s, u, o, c, m, r, d, f, l, h = this;
1521
+ }, c.exponentiatedBy = c.pow = function(t, a) {
1522
+ var s, u, o, p, m, r, d, f, l, h = this;
1523
1523
  if (t = new b(t), t.c && !t.isInteger())
1524
1524
  throw Error(q + "Exponent not an integer: " + ie(t));
1525
1525
  if (a != null && (a = new b(a)), r = t.e > 14, !h.c || !h.c[0] || h.c[0] == 1 && !h.e && h.c.length == 1 || !t.c || !t.c[0])
@@ -1529,13 +1529,13 @@ function je(e) {
1529
1529
  u = !d && h.isInteger() && a.isInteger(), u && (h = h.mod(a));
1530
1530
  } else {
1531
1531
  if (t.e > 9 && (h.e > 0 || h.e < -1 || (h.e == 0 ? h.c[0] > 1 || r && h.c[1] >= 24e7 : h.c[0] < 8e13 || r && h.c[0] <= 9999975e7)))
1532
- return c = h.s < 0 && be(t) ? -0 : 0, h.e > -1 && (c = 1 / c), new b(d ? 1 / c : c);
1533
- R && (c = De(R / S + 2));
1532
+ return p = h.s < 0 && be(t) ? -0 : 0, h.e > -1 && (p = 1 / p), new b(d ? 1 / p : p);
1533
+ R && (p = De(R / S + 2));
1534
1534
  }
1535
1535
  for (r ? (s = new b(0.5), d && (t.s = 1), f = be(t)) : (o = Math.abs(+ie(t)), f = o % 2), l = new b(A); ; ) {
1536
1536
  if (f) {
1537
1537
  if (l = l.times(h), !l.c) break;
1538
- c ? l.c.length > c && (l.c.length = c) : u && (l = l.mod(a));
1538
+ p ? l.c.length > p && (l.c.length = p) : u && (l = l.mod(a));
1539
1539
  }
1540
1540
  if (o) {
1541
1541
  if (o = J(o / 2), o === 0) break;
@@ -1546,36 +1546,36 @@ function je(e) {
1546
1546
  if (o = +ie(t), o === 0) break;
1547
1547
  f = o % 2;
1548
1548
  }
1549
- h = h.times(h), c ? h.c && h.c.length > c && (h.c.length = c) : u && (h = h.mod(a));
1549
+ h = h.times(h), p ? h.c && h.c.length > p && (h.c.length = p) : u && (h = h.mod(a));
1550
1550
  }
1551
- return u ? l : (d && (l = A.div(l)), a ? l.mod(a) : c ? X(l, R, E, m) : l);
1552
- }, p.integerValue = function(t) {
1551
+ return u ? l : (d && (l = A.div(l)), a ? l.mod(a) : p ? X(l, R, E, m) : l);
1552
+ }, c.integerValue = function(t) {
1553
1553
  var a = new b(this);
1554
1554
  return t == null ? t = E : I(t, 0, 8), X(a, a.e + 1, t);
1555
- }, p.isEqualTo = p.eq = function(t, a) {
1555
+ }, c.isEqualTo = c.eq = function(t, a) {
1556
1556
  return le(this, new b(t, a)) === 0;
1557
- }, p.isFinite = function() {
1557
+ }, c.isFinite = function() {
1558
1558
  return !!this.c;
1559
- }, p.isGreaterThan = p.gt = function(t, a) {
1559
+ }, c.isGreaterThan = c.gt = function(t, a) {
1560
1560
  return le(this, new b(t, a)) > 0;
1561
- }, p.isGreaterThanOrEqualTo = p.gte = function(t, a) {
1561
+ }, c.isGreaterThanOrEqualTo = c.gte = function(t, a) {
1562
1562
  return (a = le(this, new b(t, a))) === 1 || a === 0;
1563
- }, p.isInteger = function() {
1563
+ }, c.isInteger = function() {
1564
1564
  return !!this.c && ee(this.e / S) > this.c.length - 2;
1565
- }, p.isLessThan = p.lt = function(t, a) {
1565
+ }, c.isLessThan = c.lt = function(t, a) {
1566
1566
  return le(this, new b(t, a)) < 0;
1567
- }, p.isLessThanOrEqualTo = p.lte = function(t, a) {
1567
+ }, c.isLessThanOrEqualTo = c.lte = function(t, a) {
1568
1568
  return (a = le(this, new b(t, a))) === -1 || a === 0;
1569
- }, p.isNaN = function() {
1569
+ }, c.isNaN = function() {
1570
1570
  return !this.s;
1571
- }, p.isNegative = function() {
1571
+ }, c.isNegative = function() {
1572
1572
  return this.s < 0;
1573
- }, p.isPositive = function() {
1573
+ }, c.isPositive = function() {
1574
1574
  return this.s > 0;
1575
- }, p.isZero = function() {
1575
+ }, c.isZero = function() {
1576
1576
  return !!this.c && this.c[0] == 0;
1577
- }, p.minus = function(t, a) {
1578
- var s, u, o, c, m = this, r = m.s;
1577
+ }, c.minus = function(t, a) {
1578
+ var s, u, o, p, m = this, r = m.s;
1579
1579
  if (t = new b(t, a), a = t.s, !r || !a) return new b(NaN);
1580
1580
  if (r != a)
1581
1581
  return t.s = -a, m.plus(t);
@@ -1589,15 +1589,15 @@ function je(e) {
1589
1589
  ));
1590
1590
  }
1591
1591
  if (d = ee(d), f = ee(f), l = l.slice(), r = d - f) {
1592
- for ((c = r < 0) ? (r = -r, o = l) : (f = d, o = h), o.reverse(), a = r; a--; o.push(0)) ;
1592
+ for ((p = r < 0) ? (r = -r, o = l) : (f = d, o = h), o.reverse(), a = r; a--; o.push(0)) ;
1593
1593
  o.reverse();
1594
1594
  } else
1595
- for (u = (c = (r = l.length) < (a = h.length)) ? r : a, r = a = 0; a < u; a++)
1595
+ for (u = (p = (r = l.length) < (a = h.length)) ? r : a, r = a = 0; a < u; a++)
1596
1596
  if (l[a] != h[a]) {
1597
- c = l[a] < h[a];
1597
+ p = l[a] < h[a];
1598
1598
  break;
1599
1599
  }
1600
- if (c && (o = l, l = h, h = o, t.s = -t.s), a = (u = h.length) - (s = l.length), a > 0) for (; a--; l[s++] = 0) ;
1600
+ if (p && (o = l, l = h, h = o, t.s = -t.s), a = (u = h.length) - (s = l.length), a > 0) for (; a--; l[s++] = 0) ;
1601
1601
  for (a = te - 1; u > r; ) {
1602
1602
  if (l[--u] < h[u]) {
1603
1603
  for (s = u; s && !l[--s]; l[s] = a) ;
@@ -1607,86 +1607,86 @@ function je(e) {
1607
1607
  }
1608
1608
  for (; l[0] == 0; l.splice(0, 1), --f) ;
1609
1609
  return l[0] ? Te(t, l, f) : (t.s = E == 3 ? -1 : 1, t.c = [t.e = 0], t);
1610
- }, p.modulo = p.mod = function(t, a) {
1610
+ }, c.modulo = c.mod = function(t, a) {
1611
1611
  var s, u, o = this;
1612
1612
  return t = new b(t, a), !o.c || !t.s || t.c && !t.c[0] ? new b(NaN) : !t.c || o.c && !o.c[0] ? new b(o) : (P == 9 ? (u = t.s, t.s = 1, s = n(o, t, 0, 3), t.s = u, s.s *= u) : s = n(o, t, 0, P), t = o.minus(s.times(t)), !t.c[0] && P == 1 && (t.s = o.s), t);
1613
- }, p.multipliedBy = p.times = function(t, a) {
1614
- var s, u, o, c, m, r, d, f, l, h, F, D, v, N, L, O = this, _ = O.c, W = (t = new b(t, a)).c;
1613
+ }, c.multipliedBy = c.times = function(t, a) {
1614
+ var s, u, o, p, m, r, d, f, l, h, F, D, v, N, L, O = this, _ = O.c, W = (t = new b(t, a)).c;
1615
1615
  if (!_ || !W || !_[0] || !W[0])
1616
1616
  return !O.s || !t.s || _ && !_[0] && !W || W && !W[0] && !_ ? t.c = t.e = t.s = null : (t.s *= O.s, !_ || !W ? t.c = t.e = null : (t.c = [0], t.e = 0)), t;
1617
1617
  for (u = ee(O.e / S) + ee(t.e / S), t.s *= O.s, d = _.length, h = W.length, d < h && (v = _, _ = W, W = v, o = d, d = h, h = o), o = d + h, v = []; o--; v.push(0)) ;
1618
1618
  for (N = te, L = ce, o = h; --o >= 0; ) {
1619
- for (s = 0, F = W[o] % L, D = W[o] / L | 0, m = d, c = o + m; c > o; )
1620
- f = _[--m] % L, l = _[m] / L | 0, r = D * f + l * F, f = F * f + r % L * L + v[c] + s, s = (f / N | 0) + (r / L | 0) + D * l, v[c--] = f % N;
1621
- v[c] = s;
1619
+ for (s = 0, F = W[o] % L, D = W[o] / L | 0, m = d, p = o + m; p > o; )
1620
+ f = _[--m] % L, l = _[m] / L | 0, r = D * f + l * F, f = F * f + r % L * L + v[p] + s, s = (f / N | 0) + (r / L | 0) + D * l, v[p--] = f % N;
1621
+ v[p] = s;
1622
1622
  }
1623
1623
  return s ? ++u : v.splice(0, 1), Te(t, v, u);
1624
- }, p.negated = function() {
1624
+ }, c.negated = function() {
1625
1625
  var t = new b(this);
1626
1626
  return t.s = -t.s || null, t;
1627
- }, p.plus = function(t, a) {
1627
+ }, c.plus = function(t, a) {
1628
1628
  var s, u = this, o = u.s;
1629
1629
  if (t = new b(t, a), a = t.s, !o || !a) return new b(NaN);
1630
1630
  if (o != a)
1631
1631
  return t.s = -a, u.minus(t);
1632
- var c = u.e / S, m = t.e / S, r = u.c, d = t.c;
1633
- if (!c || !m) {
1632
+ var p = u.e / S, m = t.e / S, r = u.c, d = t.c;
1633
+ if (!p || !m) {
1634
1634
  if (!r || !d) return new b(o / 0);
1635
1635
  if (!r[0] || !d[0]) return d[0] ? t : new b(r[0] ? u : o * 0);
1636
1636
  }
1637
- if (c = ee(c), m = ee(m), r = r.slice(), o = c - m) {
1638
- for (o > 0 ? (m = c, s = d) : (o = -o, s = r), s.reverse(); o--; s.push(0)) ;
1637
+ if (p = ee(p), m = ee(m), r = r.slice(), o = p - m) {
1638
+ for (o > 0 ? (m = p, s = d) : (o = -o, s = r), s.reverse(); o--; s.push(0)) ;
1639
1639
  s.reverse();
1640
1640
  }
1641
1641
  for (o = r.length, a = d.length, o - a < 0 && (s = d, d = r, r = s, a = o), o = 0; a; )
1642
1642
  o = (r[--a] = r[a] + d[a] + o) / te | 0, r[a] = te === r[a] ? 0 : r[a] % te;
1643
1643
  return o && (r = [o].concat(r), ++m), Te(t, r, m);
1644
- }, p.precision = p.sd = function(t, a) {
1645
- var s, u, o, c = this;
1644
+ }, c.precision = c.sd = function(t, a) {
1645
+ var s, u, o, p = this;
1646
1646
  if (t != null && t !== !!t)
1647
- return I(t, 1, V), a == null ? a = E : I(a, 0, 8), X(new b(c), t, a);
1648
- if (!(s = c.c)) return null;
1647
+ return I(t, 1, V), a == null ? a = E : I(a, 0, 8), X(new b(p), t, a);
1648
+ if (!(s = p.c)) return null;
1649
1649
  if (o = s.length - 1, u = o * S + 1, o = s[o]) {
1650
1650
  for (; o % 10 == 0; o /= 10, u--) ;
1651
1651
  for (o = s[0]; o >= 10; o /= 10, u++) ;
1652
1652
  }
1653
- return t && c.e + 1 > u && (u = c.e + 1), u;
1654
- }, p.shiftedBy = function(t) {
1653
+ return t && p.e + 1 > u && (u = p.e + 1), u;
1654
+ }, c.shiftedBy = function(t) {
1655
1655
  return I(t, -ke, ke), this.times("1e" + t);
1656
- }, p.squareRoot = p.sqrt = function() {
1657
- var t, a, s, u, o, c = this, m = c.c, r = c.s, d = c.e, f = g + 4, l = new b("0.5");
1656
+ }, c.squareRoot = c.sqrt = function() {
1657
+ var t, a, s, u, o, p = this, m = p.c, r = p.s, d = p.e, f = g + 4, l = new b("0.5");
1658
1658
  if (r !== 1 || !m || !m[0])
1659
- return new b(!r || r < 0 && (!m || m[0]) ? NaN : m ? c : 1 / 0);
1660
- if (r = Math.sqrt(+ie(c)), r == 0 || r == 1 / 0 ? (a = Y(m), (a.length + d) % 2 == 0 && (a += "0"), r = Math.sqrt(+a), d = ee((d + 1) / 2) - (d < 0 || d % 2), r == 1 / 0 ? a = "5e" + d : (a = r.toExponential(), a = a.slice(0, a.indexOf("e") + 1) + d), s = new b(a)) : s = new b(r + ""), s.c[0]) {
1659
+ return new b(!r || r < 0 && (!m || m[0]) ? NaN : m ? p : 1 / 0);
1660
+ if (r = Math.sqrt(+ie(p)), r == 0 || r == 1 / 0 ? (a = Y(m), (a.length + d) % 2 == 0 && (a += "0"), r = Math.sqrt(+a), d = ee((d + 1) / 2) - (d < 0 || d % 2), r == 1 / 0 ? a = "5e" + d : (a = r.toExponential(), a = a.slice(0, a.indexOf("e") + 1) + d), s = new b(a)) : s = new b(r + ""), s.c[0]) {
1661
1661
  for (d = s.e, r = d + f, r < 3 && (r = 0); ; )
1662
- if (o = s, s = l.times(o.plus(n(c, o, f, 1))), Y(o.c).slice(0, r) === (a = Y(s.c)).slice(0, r))
1662
+ if (o = s, s = l.times(o.plus(n(p, o, f, 1))), Y(o.c).slice(0, r) === (a = Y(s.c)).slice(0, r))
1663
1663
  if (s.e < d && --r, a = a.slice(r - 3, r + 1), a == "9999" || !u && a == "4999") {
1664
- if (!u && (X(o, o.e + g + 2, 0), o.times(o).eq(c))) {
1664
+ if (!u && (X(o, o.e + g + 2, 0), o.times(o).eq(p))) {
1665
1665
  s = o;
1666
1666
  break;
1667
1667
  }
1668
1668
  f += 4, r += 4, u = 1;
1669
1669
  } else {
1670
- (!+a || !+a.slice(1) && a.charAt(0) == "5") && (X(s, s.e + g + 2, 1), t = !s.times(s).eq(c));
1670
+ (!+a || !+a.slice(1) && a.charAt(0) == "5") && (X(s, s.e + g + 2, 1), t = !s.times(s).eq(p));
1671
1671
  break;
1672
1672
  }
1673
1673
  }
1674
1674
  return X(s, s.e + g + 1, E, t);
1675
- }, p.toExponential = function(t, a) {
1675
+ }, c.toExponential = function(t, a) {
1676
1676
  return t != null && (I(t, 0, V), t++), we(this, t, a, 1);
1677
- }, p.toFixed = function(t, a) {
1677
+ }, c.toFixed = function(t, a) {
1678
1678
  return t != null && (I(t, 0, V), t = t + this.e + 1), we(this, t, a);
1679
- }, p.toFormat = function(t, a, s) {
1679
+ }, c.toFormat = function(t, a, s) {
1680
1680
  var u, o = this;
1681
1681
  if (s == null)
1682
1682
  t != null && a && typeof a == "object" ? (s = a, a = null) : t && typeof t == "object" ? (s = t, t = a = null) : s = ue;
1683
1683
  else if (typeof s != "object")
1684
1684
  throw Error(q + "Argument not an object: " + s);
1685
1685
  if (u = o.toFixed(t, a), o.c) {
1686
- var c, m = u.split("."), r = +s.groupSize, d = +s.secondaryGroupSize, f = s.groupSeparator || "", l = m[0], h = m[1], F = o.s < 0, D = F ? l.slice(1) : l, v = D.length;
1687
- if (d && (c = r, r = d, d = c, v -= c), r > 0 && v > 0) {
1688
- for (c = v % r || r, l = D.substr(0, c); c < v; c += r) l += f + D.substr(c, r);
1689
- d > 0 && (l += f + D.slice(c)), F && (l = "-" + l);
1686
+ var p, m = u.split("."), r = +s.groupSize, d = +s.secondaryGroupSize, f = s.groupSeparator || "", l = m[0], h = m[1], F = o.s < 0, D = F ? l.slice(1) : l, v = D.length;
1687
+ if (d && (p = r, r = d, d = p, v -= p), r > 0 && v > 0) {
1688
+ for (p = v % r || r, l = D.substr(0, p); p < v; p += r) l += f + D.substr(p, r);
1689
+ d > 0 && (l += f + D.slice(p)), F && (l = "-" + l);
1690
1690
  }
1691
1691
  u = h ? l + (s.decimalSeparator || "") + ((d = +s.fractionGroupSize) ? h.replace(
1692
1692
  new RegExp("\\d{" + d + "}\\B", "g"),
@@ -1694,47 +1694,47 @@ function je(e) {
1694
1694
  ) : h) : l;
1695
1695
  }
1696
1696
  return (s.prefix || "") + u + (s.suffix || "");
1697
- }, p.toFraction = function(t) {
1698
- var a, s, u, o, c, m, r, d, f, l, h, F, D = this, v = D.c;
1697
+ }, c.toFraction = function(t) {
1698
+ var a, s, u, o, p, m, r, d, f, l, h, F, D = this, v = D.c;
1699
1699
  if (t != null && (r = new b(t), !r.isInteger() && (r.c || r.s !== 1) || r.lt(A)))
1700
1700
  throw Error(q + "Argument " + (r.isInteger() ? "out of range: " : "not an integer: ") + ie(r));
1701
1701
  if (!v) return new b(D);
1702
- for (a = new b(A), f = s = new b(A), u = d = new b(A), F = Y(v), c = a.e = F.length - D.e - 1, a.c[0] = Se[(m = c % S) < 0 ? S + m : m], t = !t || r.comparedTo(a) > 0 ? c > 0 ? a : f : r, m = C, C = 1 / 0, r = new b(F), d.c[0] = 0; l = n(r, a, 0, 1), o = s.plus(l.times(u)), o.comparedTo(t) != 1; )
1702
+ for (a = new b(A), f = s = new b(A), u = d = new b(A), F = Y(v), p = a.e = F.length - D.e - 1, a.c[0] = Se[(m = p % S) < 0 ? S + m : m], t = !t || r.comparedTo(a) > 0 ? p > 0 ? a : f : r, m = C, C = 1 / 0, r = new b(F), d.c[0] = 0; l = n(r, a, 0, 1), o = s.plus(l.times(u)), o.comparedTo(t) != 1; )
1703
1703
  s = u, u = o, f = d.plus(l.times(o = f)), d = o, a = r.minus(l.times(o = a)), r = o;
1704
- return o = n(t.minus(s), u, 0, 1), d = d.plus(o.times(f)), s = s.plus(o.times(u)), d.s = f.s = D.s, c = c * 2, h = n(f, u, c, E).minus(D).abs().comparedTo(
1705
- n(d, s, c, E).minus(D).abs()
1704
+ return o = n(t.minus(s), u, 0, 1), d = d.plus(o.times(f)), s = s.plus(o.times(u)), d.s = f.s = D.s, p = p * 2, h = n(f, u, p, E).minus(D).abs().comparedTo(
1705
+ n(d, s, p, E).minus(D).abs()
1706
1706
  ) < 1 ? [f, u] : [d, s], C = m, h;
1707
- }, p.toNumber = function() {
1707
+ }, c.toNumber = function() {
1708
1708
  return +ie(this);
1709
- }, p.toPrecision = function(t, a) {
1709
+ }, c.toPrecision = function(t, a) {
1710
1710
  return t != null && I(t, 1, V), we(this, t, a, 2);
1711
- }, p.toString = function(t) {
1711
+ }, c.toString = function(t) {
1712
1712
  var a, s = this, u = s.s, o = s.e;
1713
1713
  return o === null ? u ? (a = "Infinity", u < 0 && (a = "-" + a)) : a = "NaN" : (t == null ? a = o <= w || o >= T ? ge(Y(s.c), o) : oe(Y(s.c), o, "0") : t === 10 && fe ? (s = X(new b(s), g + o + 1, E), a = oe(Y(s.c), s.e, "0")) : (I(t, 2, re.length, "Base"), a = i(oe(Y(s.c), o, "0"), 10, t, u, !0)), u < 0 && s.c[0] && (a = "-" + a)), a;
1714
- }, p.valueOf = p.toJSON = function() {
1714
+ }, c.valueOf = c.toJSON = function() {
1715
1715
  return ie(this);
1716
- }, p._isBigNumber = !0, p[Symbol.toStringTag] = "BigNumber", p[Symbol.for("nodejs.util.inspect.custom")] = p.valueOf, e != null && b.set(e), b;
1716
+ }, c._isBigNumber = !0, c[Symbol.toStringTag] = "BigNumber", c[Symbol.for("nodejs.util.inspect.custom")] = c.valueOf, e != null && b.set(e), b;
1717
1717
  }
1718
1718
  function ee(e) {
1719
1719
  var n = e | 0;
1720
1720
  return e > 0 || e === n ? n : n - 1;
1721
1721
  }
1722
1722
  function Y(e) {
1723
- for (var n, i, y = 1, p = e.length, A = e[0] + ""; y < p; ) {
1723
+ for (var n, i, y = 1, c = e.length, A = e[0] + ""; y < c; ) {
1724
1724
  for (n = e[y++] + "", i = S - n.length; i--; n = "0" + n) ;
1725
1725
  A += n;
1726
1726
  }
1727
- for (p = A.length; A.charCodeAt(--p) === 48; ) ;
1728
- return A.slice(0, p + 1 || 1);
1727
+ for (c = A.length; A.charCodeAt(--c) === 48; ) ;
1728
+ return A.slice(0, c + 1 || 1);
1729
1729
  }
1730
1730
  function le(e, n) {
1731
- var i, y, p = e.c, A = n.c, g = e.s, E = n.s, w = e.e, T = n.e;
1731
+ var i, y, c = e.c, A = n.c, g = e.s, E = n.s, w = e.e, T = n.e;
1732
1732
  if (!g || !E) return null;
1733
- if (i = p && !p[0], y = A && !A[0], i || y) return i ? y ? 0 : -E : g;
1733
+ if (i = c && !c[0], y = A && !A[0], i || y) return i ? y ? 0 : -E : g;
1734
1734
  if (g != E) return g;
1735
- if (i = g < 0, y = w == T, !p || !A) return y ? 0 : !p ^ i ? 1 : -1;
1735
+ if (i = g < 0, y = w == T, !c || !A) return y ? 0 : !c ^ i ? 1 : -1;
1736
1736
  if (!y) return w > T ^ i ? 1 : -1;
1737
- for (E = (w = p.length) < (T = A.length) ? w : T, g = 0; g < E; g++) if (p[g] != A[g]) return p[g] > A[g] ^ i ? 1 : -1;
1737
+ for (E = (w = c.length) < (T = A.length) ? w : T, g = 0; g < E; g++) if (c[g] != A[g]) return c[g] > A[g] ^ i ? 1 : -1;
1738
1738
  return w == T ? 0 : w > T ^ i ? 1 : -1;
1739
1739
  }
1740
1740
  function I(e, n, i, y) {
@@ -1749,13 +1749,13 @@ function ge(e, n) {
1749
1749
  return (e.length > 1 ? e.charAt(0) + "." + e.slice(1) : e) + (n < 0 ? "e" : "e+") + n;
1750
1750
  }
1751
1751
  function oe(e, n, i) {
1752
- var y, p;
1752
+ var y, c;
1753
1753
  if (n < 0) {
1754
- for (p = i + "."; ++n; p += i) ;
1755
- e = p + e;
1754
+ for (c = i + "."; ++n; c += i) ;
1755
+ e = c + e;
1756
1756
  } else if (y = e.length, ++n > y) {
1757
- for (p = i, n -= y; --n; p += i) ;
1758
- e += p;
1757
+ for (c = i, n -= y; --n; c += i) ;
1758
+ e += c;
1759
1759
  } else n < y && (e = e.slice(0, n) + "." + e.slice(n));
1760
1760
  return e;
1761
1761
  }
@@ -1764,7 +1764,7 @@ const xe = (e, n) => {
1764
1764
  if (!e || !n) return "";
1765
1765
  const i = x(10).pow(e || 0);
1766
1766
  return x(n).times(i).idiv(i).div(i).toFixed();
1767
- }, Rn = (e, n) => !e || !n ? "" : Ht(n).times(x(10).pow(e)).decimalPlaces(0).toFixed(0), $t = x(0);
1767
+ }, In = (e, n) => !e || !n ? "" : Ht(n).times(x(10).pow(e)).decimalPlaces(0).toFixed(0), $t = x(0);
1768
1768
  x(1);
1769
1769
  x(10);
1770
1770
  x(1e18);
@@ -1776,12 +1776,12 @@ function Ee(e, n) {
1776
1776
  }
1777
1777
  function Ht(e, n, i) {
1778
1778
  if (typeof e != "string") return Ve(e);
1779
- const y = ".", p = e.replace(new RegExp(`[^${y}\\d-]+`, "g"), "");
1779
+ const y = ".", c = e.replace(new RegExp(`[^${y}\\d-]+`, "g"), "");
1780
1780
  return Ve(
1781
- p
1781
+ c
1782
1782
  );
1783
1783
  }
1784
- const In = (e) => !!Yt.find((n) => Ee(n, e || ""));
1784
+ const Nn = (e) => !!Yt.find((n) => Ee(n, e || ""));
1785
1785
  function Kt(e) {
1786
1786
  return [
1787
1787
  ne.Years,
@@ -1792,24 +1792,24 @@ function Kt(e) {
1792
1792
  ne.Minutes
1793
1793
  ].find((i) => i <= e) || ne.Minutes;
1794
1794
  }
1795
- const pe = (e) => e ? e.value * e.unit : 0, qt = (e) => !e || e === "NaN" ? "0" : x(e).decimalPlaces(0).toFixed(), Nn = (e) => Object.values(H).find((n) => n.id === e), Gt = (e) => {
1795
+ const pe = (e) => e ? e.value * e.unit : 0, qt = (e) => !e || e === "NaN" ? "0" : x(e).decimalPlaces(0).toFixed(), Mn = (e) => Object.values(H).find((n) => n.id === e), Gt = (e) => {
1796
1796
  if (!e) return;
1797
- const n = e.map((A) => K(A)), i = Object.entries(Zt).filter(([A]) => n.includes(A)).flatMap(([, A]) => A), y = e.map((A) => A.exchangeAddress), p = new Set(
1797
+ const n = e.map((A) => K(A)), i = Object.entries(Zt).filter(([A]) => n.includes(A)).flatMap(([, A]) => A), y = e.map((A) => A.exchangeAddress), c = new Set(
1798
1798
  [...y, ...i].map((A) => A.toLowerCase())
1799
1799
  );
1800
- return Array.from(p);
1801
- }, Mn = (e, n) => e.version === 1 ? (e.fillDelay || 0) * 1e3 + Je(n) : (e.fillDelay || 0) * 1e3, Xe = (e) => typeof window > "u" ? null : new URLSearchParams(window.location.search).get(e), Un = (e) => rn().filter((n) => n.name === e).map((n) => n.chainId), Ln = (e, n, i) => {
1800
+ return Array.from(c);
1801
+ }, Un = (e, n) => e.version === 1 ? (e.fillDelay || 0) * 1e3 + Je(n) : (e.fillDelay || 0) * 1e3, Xe = (e) => typeof window > "u" ? null : new URLSearchParams(window.location.search).get(e), Ln = (e) => rn().filter((n) => n.name === e).map((n) => n.chainId), Vn = (e, n, i) => {
1802
1802
  if (!x(e.srcAmountFilled || 0).gt(0) || !x(e.dstAmountFilled || 0).gt(0))
1803
1803
  return "";
1804
- const y = xe(n, e.srcAmountFilled), p = xe(i, e.dstAmountFilled);
1805
- return x(p).div(y).toFixed();
1806
- }, Vn = (e, n, i) => {
1804
+ const y = xe(n, e.srcAmountFilled), c = xe(i, e.dstAmountFilled);
1805
+ return x(c).div(y).toFixed();
1806
+ }, Wn = (e, n, i) => {
1807
1807
  if (e.type === G.TWAP_MARKET) return "";
1808
- const y = xe(n, e.srcAmountPerTrade), p = xe(i, e.dstMinAmountPerTrade);
1809
- return x(p).div(y).toFixed();
1808
+ const y = xe(n, e.srcAmountPerTrade), c = xe(i, e.dstMinAmountPerTrade);
1809
+ return x(c).div(y).toFixed();
1810
1810
  }, We = "https://order-sink-dev.orbs.network", Be = "https://order-sink.orbs.network";
1811
1811
  let Pe;
1812
- const Wn = (e) => {
1812
+ const zn = (e) => {
1813
1813
  Pe = e;
1814
1814
  }, Qe = () => {
1815
1815
  const e = Xe(
@@ -1817,7 +1817,7 @@ const Wn = (e) => {
1817
1817
  /* ENV */
1818
1818
  );
1819
1819
  return e === "prod" ? Be : e === "dev" ? We : Pe === "prod" ? Be : Pe === "dev" ? We : Be;
1820
- }, zn = 100, $n = 1, Re = 300 * 1e3, ye = 365 * 24 * 60 * 60 * 1e3, ze = 300 * 1e3, jt = new Date(
1820
+ }, $n = 100, Hn = 1, Re = 300 * 1e3, ye = 365 * 24 * 60 * 60 * 1e3, ze = 300 * 1e3, jt = new Date(
1821
1821
  Re
1822
1822
  ).getMinutes(), $e = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, Z = "https://hub.orbs.network/api/apikey/subgraphs/id", Xt = {
1823
1823
  [H.eth.id]: `${Z}/Bf7bvMYcJbDAvYWJmhMpHZ4cpFjqzkhK6GXXEpnPRq6`,
@@ -1841,7 +1841,7 @@ const Wn = (e) => {
1841
1841
  "0x000000000000000000000000000000000000dEaD",
1842
1842
  "0x000000000000000000000000000000000000800A",
1843
1843
  "0x000000000000000000000000000000000000800a"
1844
- ], Hn = "115792089237316195423570985008687907853269984665640564039457584007913129639935", K = (e) => `${e.name}_${e.chainId}`, Zt = {
1844
+ ], Kn = "115792089237316195423570985008687907853269984665640564039457584007913129639935", K = (e) => `${e.name}_${e.chainId}`, Zt = {
1845
1845
  [K($.SushiArb)]: [
1846
1846
  "0x846F2B29ef314bF3D667981b4ffdADc5B858312a",
1847
1847
  "0x08c41f5D1C844061f6D952E25827eeAA576c6536"
@@ -1893,7 +1893,7 @@ const Wn = (e) => {
1893
1893
  }, He = {
1894
1894
  unit: ne.Minutes,
1895
1895
  value: jt
1896
- }, Kn = 0.25, qn = "100", Jt = "RePermitWitnessTransferFrom", en = {
1896
+ }, qn = 0.25, Gn = "100", Jt = "RePermitWitnessTransferFrom", en = {
1897
1897
  RePermitWitnessTransferFrom: [
1898
1898
  {
1899
1899
  name: "permitted",
@@ -2018,9 +2018,9 @@ const Wn = (e) => {
2018
2018
  type: "uint256"
2019
2019
  }
2020
2020
  ]
2021
- }, Gn = "https://www.orbs.com/dtwap-and-dlimit-faq/", jn = "https://www.orbs.com/dtwap-and-dlimit-faq/#dSLTP", Xn = "https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/orbslogo.svg", Qn = "https://www.orbs.com/assets/img/common/logo.svg", Yn = "https://www.orbs.com/", Zn = "https://www.orbs.com/dtwap-dlimit-disclaimer";
2021
+ }, jn = "https://www.orbs.com/dtwap-and-dlimit-faq/", Xn = "https://www.orbs.com/dtwap-and-dlimit-faq/#dSLTP", Qn = "https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/orbslogo.svg", Yn = "https://www.orbs.com/assets/img/common/logo.svg", Zn = "https://www.orbs.com/", Jn = "https://www.orbs.com/dtwap-dlimit-disclaimer";
2022
2022
  var Ye = /* @__PURE__ */ ((e) => (e.FRESHNESS = "freshness", e.MIN_CHUNK_SIZE_USD = "minChunkSizeUsd", e.ENV = "env", e))(Ye || {});
2023
- const Jn = "-5", ea = "10", ta = "-10", na = "5", aa = "Something went wrong";
2023
+ const ea = "-5", ta = "10", na = "-10", aa = "5", sa = "Something went wrong";
2024
2024
  function tn(e) {
2025
2025
  throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
2026
2026
  }
@@ -2042,7 +2042,7 @@ var Oe, Ke;
2042
2042
  function an() {
2043
2043
  if (Ke) return Oe;
2044
2044
  Ke = 1;
2045
- const e = nn, n = (p) => tn(`./out/${p}.sol/${p}.json`).abi, i = () => ({
2045
+ const e = nn, n = (c) => tn(`./out/${c}.sol/${c}.json`).abi, i = () => ({
2046
2046
  wm: n("WM"),
2047
2047
  repermit: n("RePermit"),
2048
2048
  reactor: n("OrderReactor"),
@@ -2050,9 +2050,9 @@ function an() {
2050
2050
  refinery: n("Refinery"),
2051
2051
  adapter: n("DefaultDexAdapter")
2052
2052
  });
2053
- function y(p, A) {
2054
- if (!p || !(A != null && A.trim())) return;
2055
- const { dex: g, ...E } = e["*"] ?? {}, w = e[p];
2053
+ function y(c, A) {
2054
+ if (!c || !(A != null && A.trim())) return;
2055
+ const { dex: g, ...E } = e["*"] ?? {}, w = e[c];
2056
2056
  if (!w) return;
2057
2057
  const { dex: T, ...B } = w, C = T == null ? void 0 : T[A];
2058
2058
  if (C)
@@ -2061,83 +2061,83 @@ function an() {
2061
2061
  return Oe = { config: y, abis: i, raw: e }, Oe;
2062
2062
  }
2063
2063
  var Ze = an();
2064
- const sa = (e, n, i) => {
2064
+ const ra = (e, n, i) => {
2065
2065
  if (!e || !n || !i) return;
2066
- const y = x(e).times(n), p = x(10).pow(i);
2067
- return y.div(p).toFixed(0);
2068
- }, ra = (e, n, i, y) => {
2066
+ const y = x(e).times(n), c = x(10).pow(i);
2067
+ return y.div(c).toFixed(0);
2068
+ }, ia = (e, n, i, y) => {
2069
2069
  if (i || !y || !e || !n)
2070
2070
  return x(0).toString();
2071
- const p = x(e).times(x(n)), A = x(10).pow(y), g = p.div(A);
2071
+ const c = x(e).times(x(n)), A = x(10).pow(y), g = c.div(A);
2072
2072
  return x.max(1, g).integerValue(x.ROUND_FLOOR).toFixed(0);
2073
- }, ia = (e, n, i, y) => {
2073
+ }, oa = (e, n, i, y) => {
2074
2074
  if (e === j.TWAP || e === j.LIMIT)
2075
2075
  return "0";
2076
2076
  if (!y || !n || !i) return;
2077
- const p = x(n).times(x(i)), A = x(10).pow(y), g = p.div(A);
2077
+ const c = x(n).times(x(i)), A = x(10).pow(y), g = c.div(A);
2078
2078
  return x.max(1, g).integerValue(x.ROUND_FLOOR).toFixed(0) || "0";
2079
- }, oa = (e, n, i, y) => {
2080
- const p = pe(i) * 2 * n, A = Kt(p);
2081
- return y || (e === j.LIMIT ? { unit: ne.Days, value: 7 } : e === j.STOP_LOSS || e === j.TAKE_PROFIT ? { unit: ne.Days, value: 1 } : { unit: A, value: Number(x(p / A).toFixed(2)) });
2082
- }, da = (e, n, i) => n !== j.TWAP ? 1 : i !== void 0 ? i : e, ca = (e, n, i, y) => {
2079
+ }, da = (e, n, i, y) => {
2080
+ const c = pe(i) * 2 * n, A = Kt(c);
2081
+ return y || (e === j.LIMIT ? { unit: ne.Days, value: 7 } : e === j.STOP_LOSS || e === j.TAKE_PROFIT ? { unit: ne.Days, value: 1 } : { unit: A, value: Number(x(c / A).toFixed(2)) });
2082
+ }, ca = (e, n, i) => n !== j.TWAP ? 1 : i !== void 0 ? i : e, pa = (e, n, i, y) => {
2083
2083
  if (!n || !i || !y) return 1;
2084
2084
  const A = x(i).times(n).div(y).integerValue(x.ROUND_FLOOR).toNumber(), g = Math.floor(
2085
2085
  ye / 2 / pe(e)
2086
2086
  );
2087
2087
  return Math.max(1, Math.min(A, g));
2088
- }, pa = (e) => Je(e) / 1e3 / 60, la = (e, n) => e + pe(n) + 6e4, Je = (e) => e.bidDelaySeconds * 1e3 * 2, ua = (e, n) => !e || !n ? "0" : x(e).div(n).integerValue(x.ROUND_FLOOR).toFixed(0), fa = (e, n) => ({
2088
+ }, la = (e) => Je(e) / 1e3 / 60, ua = (e, n) => e + pe(n) + 6e4, Je = (e) => e.bidDelaySeconds * 1e3 * 2, fa = (e, n) => !e || !n ? "0" : x(e).div(n).integerValue(x.ROUND_FLOOR).toFixed(0), ma = (e, n) => ({
2089
2089
  isError: !(e.unit === He.unit && e.value === He.value) && pe(e) * n > ye,
2090
2090
  value: Math.floor(ye / n)
2091
- }), ma = (e = "", n = "", i) => {
2091
+ }), ya = (e = "", n = "", i) => {
2092
2092
  if (i === j.STOP_LOSS)
2093
2093
  return {
2094
2094
  isError: x(n || 0).gte(x(e || 0)),
2095
2095
  value: e
2096
2096
  };
2097
- }, ya = (e = "", n = "", i) => {
2097
+ }, ha = (e = "", n = "", i) => {
2098
2098
  if (i === j.TAKE_PROFIT)
2099
2099
  return {
2100
2100
  isError: x(n || 0).lte(x(e || 0)),
2101
2101
  value: e
2102
2102
  };
2103
- }, ha = (e = "", n = "", i = !1, y) => {
2103
+ }, Aa = (e = "", n = "", i = !1, y) => {
2104
2104
  if (!i && y === j.STOP_LOSS)
2105
2105
  return {
2106
2106
  isError: x(n || 0).gte(x(e || 0)),
2107
2107
  value: e
2108
2108
  };
2109
- }, Aa = (e = "", n = "", i = !1, y) => {
2109
+ }, ba = (e = "", n = "", i = !1, y) => {
2110
2110
  if (!i && y === j.TAKE_PROFIT)
2111
2111
  return {
2112
2112
  isError: x(n || 0).gte(x(e || 0)),
2113
2113
  value: e
2114
2114
  };
2115
- }, ba = (e, n) => e === j.STOP_LOSS || e === j.TAKE_PROFIT ? {
2115
+ }, ga = (e, n) => e === j.STOP_LOSS || e === j.TAKE_PROFIT ? {
2116
2116
  isError: pe(n) > 5184e6,
2117
2117
  value: 5184e6
2118
2118
  } : {
2119
2119
  isError: pe(n) > ye,
2120
2120
  // 365 days
2121
2121
  value: ye
2122
- }, ga = (e) => ({
2122
+ }, xa = (e) => ({
2123
2123
  isError: pe(e) < ze,
2124
2124
  value: ze
2125
- }), xa = (e) => ({
2125
+ }), Ea = (e) => ({
2126
2126
  isError: pe(e) < Re,
2127
2127
  value: Re
2128
- }), Ea = (e, n, i) => ({
2128
+ }), wa = (e, n, i) => ({
2129
2129
  isError: x(n || 0).multipliedBy(e || 0).isLessThan(i),
2130
2130
  value: i
2131
- }), wa = (e, n, i) => ({
2131
+ }), Ta = (e, n, i) => ({
2132
2132
  isError: i === j.TWAP && x(e).isGreaterThan(n),
2133
2133
  value: n
2134
2134
  }), sn = (e, n = 0) => {
2135
2135
  var g;
2136
2136
  const i = (g = Object.entries($).find(
2137
2137
  ([E, w]) => w.chainId === n && E.toLowerCase().indexOf(e.toLowerCase()) >= 0
2138
- )) == null ? void 0 : g[1], { abi: y, ...p } = Ze.config(n, e);
2138
+ )) == null ? void 0 : g[1], { abi: y, ...c } = Ze.config(n, e);
2139
2139
  return {
2140
- ...p,
2140
+ ...c,
2141
2141
  partner: e,
2142
2142
  twapConfig: i
2143
2143
  };
@@ -2145,18 +2145,18 @@ const sa = (e, n, i) => {
2145
2145
  const e = Ze.raw;
2146
2146
  return Object.entries(e).filter(([n]) => n !== "*").flatMap(([n, i]) => {
2147
2147
  const y = i == null ? void 0 : i.dex;
2148
- return !y || typeof y != "object" ? [] : Object.entries(y).map(([p]) => ({
2148
+ return !y || typeof y != "object" ? [] : Object.entries(y).map(([c]) => ({
2149
2149
  chainId: Number(n),
2150
- name: p,
2151
- config: sn(p, Number(n))
2150
+ name: c,
2151
+ config: sn(c, Number(n))
2152
2152
  }));
2153
2153
  }).sort((n, i) => n.name.localeCompare(i.name));
2154
- }, Ta = ({
2154
+ }, Fa = ({
2155
2155
  chainId: e,
2156
2156
  srcToken: n,
2157
2157
  dstToken: i,
2158
2158
  srcAmount: y,
2159
- deadlineMillis: p,
2159
+ deadlineMillis: c,
2160
2160
  fillDelayMillis: A,
2161
2161
  slippage: g,
2162
2162
  account: E,
@@ -2165,7 +2165,7 @@ const sa = (e, n, i) => {
2165
2165
  triggerAmountPerTrade: B,
2166
2166
  config: C
2167
2167
  }) => {
2168
- const k = Date.now().toString(), P = parseInt((A / 1e3).toFixed(0)), R = qt(p / 1e3), ue = Xe(Ye.FRESHNESS), re = ue ? parseInt(ue) : 60, fe = {
2168
+ const k = Date.now().toString(), P = parseInt((A / 1e3).toFixed(0)), R = qt(c / 1e3), ue = Xe(Ye.FRESHNESS), re = ue ? parseInt(ue) : 60, fe = {
2169
2169
  permitted: {
2170
2170
  token: n,
2171
2171
  amount: y
@@ -2214,11 +2214,11 @@ const sa = (e, n, i) => {
2214
2214
  types: en,
2215
2215
  primaryType: Jt
2216
2216
  };
2217
- }, on = "0.0.20", dn = {
2217
+ }, on = "0.0.22", dn = {
2218
2218
  version: on
2219
2219
  }, cn = 0.7, pn = `https://bi.orbs.network/putes/twap-ui-${cn}`, et = dn.version;
2220
2220
  let Ie = "unknown";
2221
- function Fa(e) {
2221
+ function Ca(e) {
2222
2222
  Ie = e;
2223
2223
  }
2224
2224
  function ve() {
@@ -2226,7 +2226,7 @@ function ve() {
2226
2226
  return `id_${e + n + i}`;
2227
2227
  }
2228
2228
  const ln = (e, n, i) => {
2229
- var y, p, A, g, E, w, T, B, C;
2229
+ var y, c, A, g, E, w, T, B, C;
2230
2230
  return {
2231
2231
  spotVersion: et,
2232
2232
  partner: e.partner,
@@ -2242,7 +2242,7 @@ const ln = (e, n, i) => {
2242
2242
  wm: e.wm,
2243
2243
  chainName: ((y = e.twapConfig) == null ? void 0 : y.chainName) || "",
2244
2244
  chainId: i || 0,
2245
- twapVersion: ((p = e.twapConfig) == null ? void 0 : p.twapVersion) || 0,
2245
+ twapVersion: ((c = e.twapConfig) == null ? void 0 : c.twapVersion) || 0,
2246
2246
  twapAddress: ((A = e.twapConfig) == null ? void 0 : A.twapAddress) || "",
2247
2247
  lensAddress: ((g = e.twapConfig) == null ? void 0 : g.lensAddress) || "",
2248
2248
  bidDelaySeconds: ((E = e.twapConfig) == null ? void 0 : E.bidDelaySeconds) || 0,
@@ -2282,8 +2282,8 @@ class un {
2282
2282
  }, i ? (await qe(this.data), y == null || y()) : (clearTimeout(this.timeout), this.timeout = setTimeout(() => {
2283
2283
  qe(this.data), y == null || y();
2284
2284
  }, 1e3));
2285
- } catch (p) {
2286
- console.error("Failed to update and send BI", p);
2285
+ } catch (c) {
2286
+ console.error("Failed to update and send BI", c);
2287
2287
  }
2288
2288
  }
2289
2289
  onCancelOrderRequest(n, i) {
@@ -2344,7 +2344,7 @@ class un {
2344
2344
  account: n,
2345
2345
  chainId: i,
2346
2346
  module: y,
2347
- srcToken: p,
2347
+ srcToken: c,
2348
2348
  dstToken: A,
2349
2349
  fromTokenAmount: g,
2350
2350
  srcChunkAmount: E,
@@ -2359,8 +2359,8 @@ class un {
2359
2359
  this.updateAndSend({
2360
2360
  toTokenAddress: A.address,
2361
2361
  toTokenSymbol: A.symbol,
2362
- fromTokenAddress: p.address,
2363
- fromTokenSymbol: p.symbol,
2362
+ fromTokenAddress: c.address,
2363
+ fromTokenSymbol: c.symbol,
2364
2364
  fromTokenAmount: g,
2365
2365
  chunksAmount: R,
2366
2366
  srcChunkAmount: E,
@@ -2392,8 +2392,8 @@ class un {
2392
2392
  });
2393
2393
  }
2394
2394
  init(n, i, y) {
2395
- var p;
2396
- this.config = n, y !== ((p = this.data) == null ? void 0 : p.chainId) && (this.data = {
2395
+ var c;
2396
+ this.config = n, y !== ((c = this.data) == null ? void 0 : c.chainId) && (this.data = {
2397
2397
  _id: ve(),
2398
2398
  action: "module-import",
2399
2399
  uiVersion: Ie,
@@ -2457,12 +2457,12 @@ class un {
2457
2457
  }
2458
2458
  }
2459
2459
  const _e = new un(), fn = (e) => {
2460
- var p;
2461
- const n = x(e.order.witness.output.limit || 0).gt(1), i = x(e.order.witness.output.stop || 0).gt(0), y = ((p = e.metadata.chunks) == null ? void 0 : p.length) || x(e.order.witness.input.maxAmount).div(x(e.order.witness.input.amount)).toNumber();
2460
+ var c;
2461
+ const n = x(e.order.witness.output.limit || 0).gt(1), i = x(e.order.witness.output.stop || 0).gt(0), y = ((c = e.metadata.chunks) == null ? void 0 : c.length) || x(e.order.witness.input.maxAmount).div(x(e.order.witness.input.amount)).toNumber();
2462
2462
  return i && n ? G.TRIGGER_PRICE_LIMIT : i ? G.TRIGGER_PRICE_MARKET : !n && y <= 1 ? G.TWAP_MARKET : y >= 1 && n ? G.TWAP_LIMIT : n ? G.LIMIT : G.TWAP_MARKET;
2463
2463
  }, mn = (e) => {
2464
- var p;
2465
- const n = ((p = e.metadata.chunks) == null ? void 0 : p.filter((A) => A.status === "success").length) || 0, i = e.metadata.expectedChunks || 0, y = x(n).dividedBy(i).toNumber();
2464
+ var c;
2465
+ const n = ((c = e.metadata.chunks) == null ? void 0 : c.filter((A) => A.status === "success").length) || 0, i = e.metadata.expectedChunks || 0, y = x(n).dividedBy(i).toNumber();
2466
2466
  return y >= 0.99 ? 100 : y <= 0 ? 0 : Number((y * 100).toFixed(2));
2467
2467
  }, yn = (e, n) => e.metadata.status === "completed" || n >= 99 ? se.Completed : ["pending", "eligible"].includes(e.metadata.status) ? se.Open : e.metadata.description.toLowerCase() === "cancelled by contract" ? se.Canceled : se.Expired, hn = (e) => {
2468
2468
  var i;
@@ -2476,8 +2476,8 @@ const _e = new un(), fn = (e) => {
2476
2476
  var y;
2477
2477
  const i = e.length;
2478
2478
  return i >= n && ((y = e[i - 1]) == null ? void 0 : y.timestamp) || 0;
2479
- }, tt = (e) => {
2480
- const n = mn(e), i = Number(e.order.witness.output.limit) === 1 ? "" : e.order.witness.output.limit, y = e.metadata.expectedChunks || 1, p = hn(e);
2479
+ }, bn = (e) => x(e.metadata.displayOnlyInputTokenPriceUSD).dividedBy(1e18).toFixed(), tt = (e) => {
2480
+ const n = mn(e), i = Number(e.order.witness.output.limit) === 1 ? "" : e.order.witness.output.limit, y = e.metadata.expectedChunks || 1, c = hn(e);
2481
2481
  return {
2482
2482
  id: e.hash,
2483
2483
  hash: e.hash,
@@ -2485,12 +2485,12 @@ const _e = new un(), fn = (e) => {
2485
2485
  type: fn(e),
2486
2486
  maker: e.order.witness.swapper,
2487
2487
  progress: n,
2488
- srcAmountFilled: p.reduce((A, g) => A.plus(g.inAmount), new x(0)).toFixed() || "",
2489
- dstAmountFilled: p.reduce((A, g) => A.plus(g.outAmount), new x(0)).toFixed() || "",
2490
- fills: p,
2488
+ srcAmountFilled: c.reduce((A, g) => A.plus(g.inAmount), new x(0)).toFixed() || "",
2489
+ dstAmountFilled: c.reduce((A, g) => A.plus(g.outAmount), new x(0)).toFixed() || "",
2490
+ fills: c,
2491
2491
  srcTokenAddress: e.order.witness.input.token,
2492
2492
  dstTokenAddress: e.order.witness.output.token,
2493
- orderDollarValueIn: e.metadata.displayOnlyInputTokenPriceUSD ? x(e.metadata.displayOnlyInputTokenPriceUSD).toFixed(6) : "",
2493
+ orderDollarValueIn: bn(e),
2494
2494
  fillDelay: e.order.witness.epoch * 1e3,
2495
2495
  deadline: Number(e.order.deadline) * 1e3,
2496
2496
  createdAt: new Date(e.timestamp).getTime(),
@@ -2502,13 +2502,29 @@ const _e = new un(), fn = (e) => {
2502
2502
  totalTradesAmount: y,
2503
2503
  isMarketPrice: x(i || 0).lte(1),
2504
2504
  chainId: e.order.witness.chainid,
2505
- filledOrderTimestamp: An(p, y),
2505
+ filledOrderTimestamp: An(c, y),
2506
2506
  status: yn(e, n),
2507
2507
  rawOrder: e
2508
2508
  };
2509
- }, bn = async ({ chainId: e, signal: n, account: i }) => i ? (await (await fetch(`${Qe()}/orders?swapper=${i}&chainId=${e}`, {
2510
- signal: n
2511
- })).json()).orders.map(tt) : [], Ca = async (e, n) => {
2509
+ }, gn = async ({
2510
+ chainId: e,
2511
+ signal: n,
2512
+ account: i,
2513
+ exchange: y
2514
+ }) => {
2515
+ try {
2516
+ if (!i) return [];
2517
+ const c = y ? `&exchange=${y}` : "";
2518
+ return (await (await fetch(
2519
+ `${Qe()}/orders?swapper=${i}&chainId=${e}${c}`,
2520
+ {
2521
+ signal: n
2522
+ }
2523
+ )).json()).orders.map(tt);
2524
+ } catch {
2525
+ return [];
2526
+ }
2527
+ }, Da = async (e, n) => {
2512
2528
  try {
2513
2529
  const i = {
2514
2530
  signature: n,
@@ -2516,18 +2532,18 @@ const _e = new un(), fn = (e) => {
2516
2532
  status: "pending"
2517
2533
  };
2518
2534
  console.log("body", i), _e.onCreateOrderRequest();
2519
- const p = await (await fetch(`${Qe()}/orders/new`, {
2535
+ const c = await (await fetch(`${Qe()}/orders/new`, {
2520
2536
  method: "POST",
2521
2537
  body: JSON.stringify(i)
2522
2538
  })).json();
2523
- if (!p.success)
2524
- throw new Error(`error:${p.message}, code:${p.code}`);
2525
- const A = tt(p.signedOrder);
2539
+ if (!c.success)
2540
+ throw new Error(`error:${c.message}, code:${c.code}`);
2541
+ const A = tt(c.signedOrder);
2526
2542
  return _e.onCreateOrderSuccess(A.id), A;
2527
2543
  } catch (i) {
2528
2544
  throw _e.onCreateOrderError(i), console.error(i), i;
2529
2545
  }
2530
- }, de = (e, n) => e && e.length ? e.map(n || ((i) => `${i}`)) : void 0, gn = (e) => {
2546
+ }, de = (e, n) => e && e.length ? e.map(n || ((i) => `${i}`)) : void 0, xn = (e) => {
2531
2547
  if (e)
2532
2548
  return Xt[e];
2533
2549
  }, Me = async ({
@@ -2535,15 +2551,15 @@ const _e = new un(), fn = (e) => {
2535
2551
  buildQuery: n,
2536
2552
  extractResults: i,
2537
2553
  signal: y,
2538
- retries: p = 1,
2554
+ retries: c = 1,
2539
2555
  limit: A = 1e3,
2540
2556
  page: g
2541
2557
  }) => {
2542
- const E = gn(e);
2543
- if (!E) throw new Cn();
2558
+ const E = xn(e);
2559
+ if (!E) throw new Dn();
2544
2560
  const w = async (C) => {
2545
2561
  let k = 0;
2546
- for (; k <= p; )
2562
+ for (; k <= c; )
2547
2563
  try {
2548
2564
  const P = await fetch(E, {
2549
2565
  method: "POST",
@@ -2557,7 +2573,7 @@ const _e = new un(), fn = (e) => {
2557
2573
  throw new Error(R.errors[0].message);
2558
2574
  return i(R);
2559
2575
  } catch (P) {
2560
- if (k === p) throw P;
2576
+ if (k === c) throw P;
2561
2577
  await new Promise((R) => setTimeout(R, 500 * 2 ** k)), k++;
2562
2578
  }
2563
2579
  return [];
@@ -2602,9 +2618,9 @@ const _e = new un(), fn = (e) => {
2602
2618
  })), Ge = (e, n) => {
2603
2619
  const i = x(e || 0).gt(1);
2604
2620
  return !i && n === 1 ? G.TWAP_MARKET : n > 1 && i ? G.TWAP_LIMIT : i ? G.LIMIT : G.TWAP_MARKET;
2605
- }, xn = (e, n, i, y) => {
2621
+ }, En = (e, n, i, y) => {
2606
2622
  var k;
2607
- const p = nt(i || []), A = new x(e.ask_srcAmount || 0).div(e.ask_srcBidAmount).integerValue(x.ROUND_FLOOR).toNumber(), E = (i == null ? void 0 : i.length) === A ? (k = i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) == null ? void 0 : k.timestamp : void 0, w = p.reduce((P, R) => P.plus(R.inAmount), new x(0)).toFixed(), T = p.reduce((P, R) => P.plus(R.outAmount), new x(0)).toFixed(), B = at(e.ask_srcAmount, w), C = Ge(e.ask_dstMinAmount, A);
2623
+ const c = nt(i || []), A = new x(e.ask_srcAmount || 0).div(e.ask_srcBidAmount).integerValue(x.ROUND_FLOOR).toNumber(), E = (i == null ? void 0 : i.length) === A ? (k = i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) == null ? void 0 : k.timestamp : void 0, w = c.reduce((P, R) => P.plus(R.inAmount), new x(0)).toFixed(), T = c.reduce((P, R) => P.plus(R.outAmount), new x(0)).toFixed(), B = at(e.ask_srcAmount, w), C = Ge(e.ask_dstMinAmount, A);
2608
2624
  return {
2609
2625
  version: 1,
2610
2626
  id: e.Contract_id.toString(),
@@ -2621,7 +2637,7 @@ const _e = new un(), fn = (e) => {
2621
2637
  orderDollarValueIn: x(e.dollarValueIn || 0).toFixed(6),
2622
2638
  srcAmount: e.ask_srcAmount,
2623
2639
  dstMinAmountTotal: x(e.ask_dstMinAmount).multipliedBy(A).toString(),
2624
- fills: p,
2640
+ fills: c,
2625
2641
  fillDelay: e.ask_fillDelay,
2626
2642
  deadline: e.ask_deadline * 1e3,
2627
2643
  createdAt: new Date(e.timestamp).getTime(),
@@ -2636,7 +2652,7 @@ const _e = new un(), fn = (e) => {
2636
2652
  status: y,
2637
2653
  rawOrder: e
2638
2654
  };
2639
- }, En = (e) => {
2655
+ }, wn = (e) => {
2640
2656
  var C;
2641
2657
  if (!e) return "";
2642
2658
  const n = de(
@@ -2648,7 +2664,7 @@ const _e = new un(), fn = (e) => {
2648
2664
  ), y = de(
2649
2665
  e.inTokenSymbols,
2650
2666
  (k) => `"${k.toUpperCase()}"`
2651
- ), p = de(
2667
+ ), c = de(
2652
2668
  e.outTokenSymbols,
2653
2669
  (k) => `"${k.toUpperCase()}"`
2654
2670
  ), A = de(
@@ -2672,7 +2688,7 @@ const _e = new un(), fn = (e) => {
2672
2688
  w ? `Contract_id_in: [${w.join(", ")}]` : "",
2673
2689
  B ? `dollarValueIn_gte: ${B}` : "",
2674
2690
  y ? `srcTokenSymbol_in: [${y.join(", ")}]` : "",
2675
- p ? `dstTokenSymbol_in: [${p.join(", ")}]` : "",
2691
+ c ? `dstTokenSymbol_in: [${c.join(", ")}]` : "",
2676
2692
  A ? `srcTokenAddress_in: [${A.join(", ")}]` : "",
2677
2693
  g ? `dstTokenAddress_in: [${g.join(", ")}]` : "",
2678
2694
  e != null && e.startDate ? `blockTimestamp_gte: ${e.startDate}` : "",
@@ -2681,14 +2697,14 @@ const _e = new un(), fn = (e) => {
2681
2697
  (e == null ? void 0 : e.orderType) === "market" ? "ask_dstMinAmount_lte: 1" : ""
2682
2698
  ].filter(Boolean).join(", ");
2683
2699
  };
2684
- async function wn({
2700
+ async function Tn({
2685
2701
  chainId: e,
2686
2702
  signal: n,
2687
2703
  page: i,
2688
2704
  limit: y,
2689
- filters: p
2705
+ filters: c
2690
2706
  }) {
2691
- const A = y || 1e3, g = En(p);
2707
+ const A = y || 1e3, g = wn(c);
2692
2708
  return await Me({
2693
2709
  chainId: e,
2694
2710
  signal: n,
@@ -2735,7 +2751,7 @@ async function wn({
2735
2751
  }
2736
2752
  });
2737
2753
  }
2738
- const Tn = async ({
2754
+ const Fn = async ({
2739
2755
  chainId: e,
2740
2756
  orders: n,
2741
2757
  signal: i
@@ -2770,14 +2786,14 @@ const Tn = async ({
2770
2786
  function Ne(e) {
2771
2787
  return Array.from(new Set(e));
2772
2788
  }
2773
- const Fn = async ({
2789
+ const Cn = async ({
2774
2790
  chainId: e,
2775
2791
  orders: n,
2776
2792
  signal: i
2777
2793
  }) => {
2778
- const y = Ne(n.map((C) => C.Contract_id)), p = Ne(n.map((C) => C.twapAddress)).filter(Boolean);
2794
+ const y = Ne(n.map((C) => C.Contract_id)), c = Ne(n.map((C) => C.twapAddress)).filter(Boolean);
2779
2795
  if (y.length === 0) return [];
2780
- const A = y.join(", "), g = p.map((C) => `"${C}"`).join(", "), E = p.length ? `twapAddress_in: [${g}]` : "", T = `where: { ${[
2796
+ const A = y.join(", "), g = c.map((C) => `"${C}"`).join(", "), E = c.length ? `twapAddress_in: [${g}]` : "", T = `where: { ${[
2781
2797
  `TWAP_id_in: [${A}]`,
2782
2798
  E
2783
2799
  ].filter(Boolean).join(", ")} }`;
@@ -2812,139 +2828,143 @@ const Fn = async ({
2812
2828
  }
2813
2829
  });
2814
2830
  };
2815
- class Cn extends Error {
2831
+ class Dn extends Error {
2816
2832
  constructor() {
2817
2833
  super("No graph endpoint found"), this.name = "NoGraphEndpointError";
2818
2834
  }
2819
2835
  }
2820
- const Dn = async ({
2836
+ const kn = async ({
2821
2837
  chainId: e,
2822
2838
  signal: n,
2823
2839
  page: i,
2824
2840
  limit: y,
2825
- filters: p
2841
+ filters: c
2826
2842
  }) => {
2827
- const A = await wn({
2828
- chainId: e,
2829
- signal: n,
2830
- page: i,
2831
- limit: y,
2832
- filters: p
2833
- }), [g, E] = await Promise.all([
2834
- Fn({ chainId: e, orders: A, signal: n }),
2835
- Tn({ chainId: e, orders: A, signal: n })
2836
- ]);
2837
- return A.map((T) => {
2838
- const B = g == null ? void 0 : g.filter(
2839
- (C) => C.TWAP_id === Number(T.Contract_id) && Ee(C.exchange, T.exchange) && Ee(C.twapAddress, T.twapAddress)
2840
- );
2841
- return xn(
2842
- T,
2843
- e,
2844
- B,
2845
- kn(T, B || [], E)
2846
- );
2847
- }).sort((T, B) => B.createdAt - T.createdAt);
2848
- }, kn = (e, n, i) => {
2843
+ try {
2844
+ const A = await Tn({
2845
+ chainId: e,
2846
+ signal: n,
2847
+ page: i,
2848
+ limit: y,
2849
+ filters: c
2850
+ }), [g, E] = await Promise.all([
2851
+ Cn({ chainId: e, orders: A, signal: n }),
2852
+ Fn({ chainId: e, orders: A, signal: n })
2853
+ ]);
2854
+ return A.map((T) => {
2855
+ const B = g == null ? void 0 : g.filter(
2856
+ (C) => C.TWAP_id === Number(T.Contract_id) && Ee(C.exchange, T.exchange) && Ee(C.twapAddress, T.twapAddress)
2857
+ );
2858
+ return En(
2859
+ T,
2860
+ e,
2861
+ B,
2862
+ Sn(T, B || [], E)
2863
+ );
2864
+ }).sort((T, B) => B.createdAt - T.createdAt);
2865
+ } catch {
2866
+ return [];
2867
+ }
2868
+ }, Sn = (e, n, i) => {
2849
2869
  var E;
2850
2870
  const y = (E = i == null ? void 0 : i.find(
2851
2871
  (w) => w.twapId === e.Contract_id.toString() && Ee(w.twapAddress, e.twapAddress)
2852
2872
  )) == null ? void 0 : E.status, A = nt(n).reduce((w, T) => w.plus(T.inAmount), new x(0)).toFixed(), g = at(e.ask_srcAmount, A);
2853
- return Sn(g, e.ask_deadline * 1e3, y);
2873
+ return Bn(g, e.ask_deadline * 1e3, y);
2854
2874
  }, at = (e, n) => {
2855
2875
  if (!n || !e) return 0;
2856
2876
  const i = x(n).dividedBy(e).toNumber();
2857
2877
  return i >= 0.99 ? 100 : i <= 0 ? 0 : Number((i * 100).toFixed(2));
2858
- }, Sn = (e, n, i) => e === 100 ? se.Completed : i === "CANCELED" ? se.Canceled : i === "COMPLETED" ? se.Completed : n > Date.now() ? se.Open : se.Expired, Da = async ({
2878
+ }, Bn = (e, n, i) => e === 100 ? se.Completed : i === "CANCELED" ? se.Canceled : i === "COMPLETED" ? se.Completed : n > Date.now() ? se.Open : se.Expired, ka = async ({
2859
2879
  signal: e,
2860
2880
  page: n,
2861
2881
  chainId: i,
2862
2882
  limit: y,
2863
- config: p,
2883
+ config: c,
2864
2884
  account: A
2865
2885
  }) => (await Promise.all([
2866
- p ? Dn({ chainId: i, signal: e, page: n, limit: y, filters: { accounts: [A], configs: [p] } }) : Promise.resolve([]),
2867
- bn({ chainId: i, signal: e, account: A })
2886
+ c ? kn({ chainId: i, signal: e, page: n, limit: y, filters: { accounts: [A], configs: c.twapConfig ? [c.twapConfig] : [] } }) : Promise.resolve([]),
2887
+ gn({ chainId: i, signal: e, account: A, exchange: c == null ? void 0 : c.adapter })
2868
2888
  ]).then(([w, T]) => [...w, ...T])).sort((w, T) => T.createdAt - w.createdAt);
2869
2889
  export {
2870
- aa as CRASH_ERROR_MESSAGE,
2890
+ sa as CRASH_ERROR_MESSAGE,
2871
2891
  $ as Configs,
2872
2892
  He as DEFAULT_FILL_DELAY,
2873
- ta as DEFAULT_STOP_LOSS_LIMIT_PERCENTAGE,
2874
- Jn as DEFAULT_STOP_LOSS_PERCENTAGE,
2875
- na as DEFAULT_TAKE_PROFIT_LIMIT_PERCENTAGE,
2876
- ea as DEFAULT_TAKE_PROFIT_PERCENTAGE,
2877
- Zn as DISCLAIMER_URL,
2893
+ na as DEFAULT_STOP_LOSS_LIMIT_PERCENTAGE,
2894
+ ea as DEFAULT_STOP_LOSS_PERCENTAGE,
2895
+ aa as DEFAULT_TAKE_PROFIT_LIMIT_PERCENTAGE,
2896
+ ta as DEFAULT_TAKE_PROFIT_PERCENTAGE,
2897
+ Jn as DISCLAIMER_URL,
2878
2898
  en as EIP712_TYPES,
2879
- vn as ERC20_ABI,
2880
- qn as EXCLUSIVITY_OVERRIDE_BPS,
2881
- Kn as FEES,
2882
- On as IWETH_ABI,
2899
+ _n as ERC20_ABI,
2900
+ Gn as EXCLUSIVITY_OVERRIDE_BPS,
2901
+ qn as FEES,
2902
+ vn as IWETH_ABI,
2883
2903
  Zt as LEGACY_EXCHANGES_MAP,
2884
2904
  ye as MAX_ORDER_DURATION_MILLIS,
2885
- $n as MIN_CHUNKS,
2905
+ Hn as MIN_CHUNKS,
2886
2906
  Re as MIN_FILL_DELAY_MILLIS,
2887
2907
  jt as MIN_FILL_DELAY_MINUTES,
2888
2908
  ze as MIN_ORDER_DURATION_MILLIS,
2889
2909
  j as Module,
2890
- Xn as ORBS_LOGO,
2891
- Qn as ORBS_LOGO_FALLBACK,
2892
- jn as ORBS_SLTP_FAQ_URL,
2893
- Gn as ORBS_TWAP_FAQ_URL,
2894
- Yn as ORBS_WEBSITE_URL,
2910
+ Qn as ORBS_LOGO,
2911
+ Yn as ORBS_LOGO_FALLBACK,
2912
+ Xn as ORBS_SLTP_FAQ_URL,
2913
+ jn as ORBS_TWAP_FAQ_URL,
2914
+ Zn as ORBS_WEBSITE_URL,
2895
2915
  se as OrderStatus,
2896
2916
  G as OrderType,
2897
2917
  Wt as Partners,
2898
2918
  Ye as QUERY_PARAMS,
2899
- _n as REPERMIT_ABI,
2919
+ Pn as REPERMIT_ABI,
2900
2920
  Jt as REPERMIT_PRIMARY_TYPE,
2901
- zn as SUGGEST_CHUNK_VALUE,
2921
+ $n as SUGGEST_CHUNK_VALUE,
2902
2922
  Xt as THE_GRAPH_ORDERS_API,
2903
- Pn as TWAP_ABI,
2923
+ Rn as TWAP_ABI,
2904
2924
  ne as TimeUnit,
2905
- Rn as amountBN,
2925
+ In as amountBN,
2906
2926
  xe as amountUi,
2907
2927
  _e as analytics,
2908
- Ta as buildRePermitOrderData,
2928
+ Fa as buildRePermitOrderData,
2909
2929
  tt as buildV2Order,
2910
2930
  Ee as eqIgnoreCase,
2911
- Da as getAccountOrders,
2931
+ ka as getAccountOrders,
2912
2932
  Qe as getApiEndpoint,
2913
- da as getChunks,
2933
+ ca as getChunks,
2914
2934
  sn as getConfig,
2915
- la as getDeadline,
2916
- sa as getDestTokenAmount,
2917
- ra as getDestTokenMinAmountPerChunk,
2918
- oa as getDuration,
2935
+ ua as getDeadline,
2936
+ ra as getDestTokenAmount,
2937
+ ia as getDestTokenMinAmountPerChunk,
2938
+ da as getDuration,
2919
2939
  Je as getEstimatedDelayBetweenChunksMillis,
2920
- wa as getMaxChunksError,
2921
- fa as getMaxFillDelayError,
2922
- ba as getMaxOrderDurationError,
2923
- ca as getMaxPossibleChunks,
2924
- xa as getMinFillDelayError,
2925
- ga as getMinOrderDurationError,
2926
- Ea as getMinTradeSizeError,
2927
- pa as getMinimumDelayMinutes,
2928
- Nn as getNetwork,
2929
- Ln as getOrderExcecutionRate,
2930
- Mn as getOrderFillDelayMillis,
2931
- Vn as getOrderLimitPriceRate,
2932
- Un as getPartnerChains,
2940
+ Ta as getMaxChunksError,
2941
+ ma as getMaxFillDelayError,
2942
+ ga as getMaxOrderDurationError,
2943
+ pa as getMaxPossibleChunks,
2944
+ Ea as getMinFillDelayError,
2945
+ xa as getMinOrderDurationError,
2946
+ wa as getMinTradeSizeError,
2947
+ la as getMinimumDelayMinutes,
2948
+ Mn as getNetwork,
2949
+ Vn as getOrderExcecutionRate,
2950
+ Un as getOrderFillDelayMillis,
2951
+ Wn as getOrderLimitPriceRate,
2952
+ Ln as getPartnerChains,
2933
2953
  K as getPartnerIdentifier,
2934
2954
  rn as getPartners,
2935
2955
  Xe as getQueryParam,
2936
- ua as getSrcTokenChunkAmount,
2937
- ha as getStopLossLimitPriceError,
2938
- ma as getStopLossPriceError,
2939
- Aa as getTakeProfitLimitPriceError,
2940
- ya as getTakeProfitPriceError,
2941
- ia as getTriggerPricePerChunk,
2942
- In as isNativeAddress,
2943
- Hn as maxUint256,
2956
+ fa as getSrcTokenChunkAmount,
2957
+ Aa as getStopLossLimitPriceError,
2958
+ ya as getStopLossPriceError,
2959
+ ba as getTakeProfitLimitPriceError,
2960
+ ha as getTakeProfitPriceError,
2961
+ oa as getTriggerPricePerChunk,
2962
+ Nn as isNativeAddress,
2963
+ Kn as maxUint256,
2944
2964
  Yt as nativeTokenAddresses,
2945
2965
  H as networks,
2946
- Wn as setApiMode,
2947
- Fa as setUIVersion,
2948
- Ca as submitOrder,
2966
+ zn as setApiMode,
2967
+ Ca as setUIVersion,
2968
+ Da as submitOrder,
2949
2969
  Qt as zeroAddress
2950
2970
  };