@orbs-network/spot-react 0.0.57 → 0.0.59

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.
@@ -2921,7 +2921,7 @@ const qw = async ({
2921
2921
  }) => (await Promise.all([
2922
2922
  s ? qw({ chainId: n, signal: e, page: t, limit: r, filters: { accounts: [a], configs: s.twapConfig ? [s.twapConfig] : [] } }) : Promise.resolve([]),
2923
2923
  Nw({ chainId: n, signal: e, account: a, exchange: s == null ? void 0 : s.adapter })
2924
- ]).then(([c, l]) => [...c, ...l])).sort((c, l) => l.createdAt - c.createdAt), Xw = "0.0.57", Qw = {
2924
+ ]).then(([c, l]) => [...c, ...l])).sort((c, l) => l.createdAt - c.createdAt), Xw = "0.0.59", Qw = {
2925
2925
  version: Xw
2926
2926
  };
2927
2927
  var yo = class {
@@ -2955,7 +2955,7 @@ var yo = class {
2955
2955
  clearTimeout: (e) => clearTimeout(e),
2956
2956
  setInterval: (e, t) => setInterval(e, t),
2957
2957
  clearInterval: (e) => clearInterval(e)
2958
- }, Jn, Ns, tb, e3 = (tb = class {
2958
+ }, er, Ns, tb, e3 = (tb = class {
2959
2959
  constructor() {
2960
2960
  // We cannot have TimeoutManager<T> as we must instantiate it with a concrete
2961
2961
  // type at app boot; and if we leave that type, then any new timer provider
@@ -2963,28 +2963,28 @@ var yo = class {
2963
2963
  //
2964
2964
  // We settle for type safety for the TimeoutProvider type, and accept that
2965
2965
  // this class is unsafe internally to allow for extension.
2966
- le(this, Jn, Jw);
2966
+ le(this, er, Jw);
2967
2967
  le(this, Ns, !1);
2968
2968
  }
2969
2969
  setTimeoutProvider(e) {
2970
- process.env.NODE_ENV !== "production" && _(this, Ns) && e !== _(this, Jn) && console.error(
2970
+ process.env.NODE_ENV !== "production" && _(this, Ns) && e !== _(this, er) && console.error(
2971
2971
  "[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",
2972
- { previous: _(this, Jn), provider: e }
2973
- ), X(this, Jn, e), process.env.NODE_ENV !== "production" && X(this, Ns, !1);
2972
+ { previous: _(this, er), provider: e }
2973
+ ), X(this, er, e), process.env.NODE_ENV !== "production" && X(this, Ns, !1);
2974
2974
  }
2975
2975
  setTimeout(e, t) {
2976
- return process.env.NODE_ENV !== "production" && X(this, Ns, !0), _(this, Jn).setTimeout(e, t);
2976
+ return process.env.NODE_ENV !== "production" && X(this, Ns, !0), _(this, er).setTimeout(e, t);
2977
2977
  }
2978
2978
  clearTimeout(e) {
2979
- _(this, Jn).clearTimeout(e);
2979
+ _(this, er).clearTimeout(e);
2980
2980
  }
2981
2981
  setInterval(e, t) {
2982
- return process.env.NODE_ENV !== "production" && X(this, Ns, !0), _(this, Jn).setInterval(e, t);
2982
+ return process.env.NODE_ENV !== "production" && X(this, Ns, !0), _(this, er).setInterval(e, t);
2983
2983
  }
2984
2984
  clearInterval(e) {
2985
- _(this, Jn).clearInterval(e);
2985
+ _(this, er).clearInterval(e);
2986
2986
  }
2987
- }, Jn = new WeakMap(), Ns = new WeakMap(), tb), Us = new e3();
2987
+ }, er = new WeakMap(), Ns = new WeakMap(), tb), Us = new e3();
2988
2988
  function t3(e) {
2989
2989
  setTimeout(e, 0);
2990
2990
  }
@@ -4065,15 +4065,15 @@ function b3(e, { pages: t, pageParams: n }) {
4065
4065
  var r;
4066
4066
  return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, n[0], n) : void 0;
4067
4067
  }
4068
- var qi, er, Vt, qs, tr, ts, ib, y3 = (ib = class extends Ib {
4068
+ var qi, tr, Vt, qs, nr, ts, ib, y3 = (ib = class extends Ib {
4069
4069
  constructor(t) {
4070
4070
  super();
4071
- le(this, tr);
4071
+ le(this, nr);
4072
4072
  le(this, qi);
4073
- le(this, er);
4073
+ le(this, tr);
4074
4074
  le(this, Vt);
4075
4075
  le(this, qs);
4076
- X(this, qi, t.client), this.mutationId = t.mutationId, X(this, Vt, t.mutationCache), X(this, er, []), this.state = t.state || Fb(), this.setOptions(t.options), this.scheduleGc();
4076
+ X(this, qi, t.client), this.mutationId = t.mutationId, X(this, Vt, t.mutationCache), X(this, tr, []), this.state = t.state || Fb(), this.setOptions(t.options), this.scheduleGc();
4077
4077
  }
4078
4078
  setOptions(t) {
4079
4079
  this.options = t, this.updateGcTime(this.options.gcTime);
@@ -4082,21 +4082,21 @@ var qi, er, Vt, qs, tr, ts, ib, y3 = (ib = class extends Ib {
4082
4082
  return this.options.meta;
4083
4083
  }
4084
4084
  addObserver(t) {
4085
- _(this, er).includes(t) || (_(this, er).push(t), this.clearGcTimeout(), _(this, Vt).notify({
4085
+ _(this, tr).includes(t) || (_(this, tr).push(t), this.clearGcTimeout(), _(this, Vt).notify({
4086
4086
  type: "observerAdded",
4087
4087
  mutation: this,
4088
4088
  observer: t
4089
4089
  }));
4090
4090
  }
4091
4091
  removeObserver(t) {
4092
- X(this, er, _(this, er).filter((n) => n !== t)), this.scheduleGc(), _(this, Vt).notify({
4092
+ X(this, tr, _(this, tr).filter((n) => n !== t)), this.scheduleGc(), _(this, Vt).notify({
4093
4093
  type: "observerRemoved",
4094
4094
  mutation: this,
4095
4095
  observer: t
4096
4096
  });
4097
4097
  }
4098
4098
  optionalRemove() {
4099
- _(this, er).length || (this.state.status === "pending" ? this.scheduleGc() : _(this, Vt).remove(this));
4099
+ _(this, tr).length || (this.state.status === "pending" ? this.scheduleGc() : _(this, Vt).remove(this));
4100
4100
  }
4101
4101
  continue() {
4102
4102
  var t;
@@ -4106,7 +4106,7 @@ var qi, er, Vt, qs, tr, ts, ib, y3 = (ib = class extends Ib {
4106
4106
  async execute(t) {
4107
4107
  var o, i, c, l, u, d, f, m, y, g, E, v, w, T, C, O, N, A, h, b;
4108
4108
  const n = () => {
4109
- Se(this, tr, ts).call(this, { type: "continue" });
4109
+ Se(this, nr, ts).call(this, { type: "continue" });
4110
4110
  }, r = {
4111
4111
  client: _(this, qi),
4112
4112
  meta: this.options.meta,
@@ -4115,10 +4115,10 @@ var qi, er, Vt, qs, tr, ts, ib, y3 = (ib = class extends Ib {
4115
4115
  X(this, qs, Sb({
4116
4116
  fn: () => this.options.mutationFn ? this.options.mutationFn(t, r) : Promise.reject(new Error("No mutationFn found")),
4117
4117
  onFail: (x, S) => {
4118
- Se(this, tr, ts).call(this, { type: "failed", failureCount: x, error: S });
4118
+ Se(this, nr, ts).call(this, { type: "failed", failureCount: x, error: S });
4119
4119
  },
4120
4120
  onPause: () => {
4121
- Se(this, tr, ts).call(this, { type: "pause" });
4121
+ Se(this, nr, ts).call(this, { type: "pause" });
4122
4122
  },
4123
4123
  onContinue: n,
4124
4124
  retry: this.options.retry ?? 0,
@@ -4131,7 +4131,7 @@ var qi, er, Vt, qs, tr, ts, ib, y3 = (ib = class extends Ib {
4131
4131
  if (s)
4132
4132
  n();
4133
4133
  else {
4134
- Se(this, tr, ts).call(this, { type: "pending", variables: t, isPaused: a }), await ((i = (o = _(this, Vt).config).onMutate) == null ? void 0 : i.call(
4134
+ Se(this, nr, ts).call(this, { type: "pending", variables: t, isPaused: a }), await ((i = (o = _(this, Vt).config).onMutate) == null ? void 0 : i.call(
4135
4135
  o,
4136
4136
  t,
4137
4137
  this,
@@ -4142,7 +4142,7 @@ var qi, er, Vt, qs, tr, ts, ib, y3 = (ib = class extends Ib {
4142
4142
  t,
4143
4143
  r
4144
4144
  ));
4145
- S !== this.state.context && Se(this, tr, ts).call(this, {
4145
+ S !== this.state.context && Se(this, nr, ts).call(this, {
4146
4146
  type: "pending",
4147
4147
  context: S,
4148
4148
  variables: t,
@@ -4178,7 +4178,7 @@ var qi, er, Vt, qs, tr, ts, ib, y3 = (ib = class extends Ib {
4178
4178
  t,
4179
4179
  this.state.context,
4180
4180
  r
4181
- )), Se(this, tr, ts).call(this, { type: "success", data: x }), x;
4181
+ )), Se(this, nr, ts).call(this, { type: "success", data: x }), x;
4182
4182
  } catch (x) {
4183
4183
  try {
4184
4184
  throw await ((T = (w = _(this, Vt).config).onError) == null ? void 0 : T.call(
@@ -4211,13 +4211,13 @@ var qi, er, Vt, qs, tr, ts, ib, y3 = (ib = class extends Ib {
4211
4211
  r
4212
4212
  )), x;
4213
4213
  } finally {
4214
- Se(this, tr, ts).call(this, { type: "error", error: x });
4214
+ Se(this, nr, ts).call(this, { type: "error", error: x });
4215
4215
  }
4216
4216
  } finally {
4217
4217
  _(this, Vt).runNext(this);
4218
4218
  }
4219
4219
  }
4220
- }, qi = new WeakMap(), er = new WeakMap(), Vt = new WeakMap(), qs = new WeakMap(), tr = new WeakSet(), ts = function(t) {
4220
+ }, qi = new WeakMap(), tr = new WeakMap(), Vt = new WeakMap(), qs = new WeakMap(), nr = new WeakSet(), ts = function(t) {
4221
4221
  const n = (r) => {
4222
4222
  switch (t.type) {
4223
4223
  case "failed":
@@ -4272,7 +4272,7 @@ var qi, er, Vt, qs, tr, ts, ib, y3 = (ib = class extends Ib {
4272
4272
  }
4273
4273
  };
4274
4274
  this.state = n(this.state), Tt.batch(() => {
4275
- _(this, er).forEach((r) => {
4275
+ _(this, tr).forEach((r) => {
4276
4276
  r.onMutationUpdate(t);
4277
4277
  }), _(this, Vt).notify({
4278
4278
  mutation: this,
@@ -4486,11 +4486,11 @@ var Fr, is, Jt, Ur, Hr, wl, mp, lb, x3 = (lb = class extends yo {
4486
4486
  u(_(this, is));
4487
4487
  });
4488
4488
  });
4489
- }, lb), nr, ub, w3 = (ub = class extends yo {
4489
+ }, lb), rr, ub, w3 = (ub = class extends yo {
4490
4490
  constructor(t = {}) {
4491
4491
  super();
4492
- le(this, nr);
4493
- this.config = t, X(this, nr, /* @__PURE__ */ new Map());
4492
+ le(this, rr);
4493
+ this.config = t, X(this, rr, /* @__PURE__ */ new Map());
4494
4494
  }
4495
4495
  build(t, n, r) {
4496
4496
  const s = n.queryKey, a = n.queryHash ?? Ef(s, n);
@@ -4505,14 +4505,14 @@ var Fr, is, Jt, Ur, Hr, wl, mp, lb, x3 = (lb = class extends yo {
4505
4505
  }), this.add(o)), o;
4506
4506
  }
4507
4507
  add(t) {
4508
- _(this, nr).has(t.queryHash) || (_(this, nr).set(t.queryHash, t), this.notify({
4508
+ _(this, rr).has(t.queryHash) || (_(this, rr).set(t.queryHash, t), this.notify({
4509
4509
  type: "added",
4510
4510
  query: t
4511
4511
  }));
4512
4512
  }
4513
4513
  remove(t) {
4514
- const n = _(this, nr).get(t.queryHash);
4515
- n && (t.destroy(), n === t && _(this, nr).delete(t.queryHash), this.notify({ type: "removed", query: t }));
4514
+ const n = _(this, rr).get(t.queryHash);
4515
+ n && (t.destroy(), n === t && _(this, rr).delete(t.queryHash), this.notify({ type: "removed", query: t }));
4516
4516
  }
4517
4517
  clear() {
4518
4518
  Tt.batch(() => {
@@ -4522,10 +4522,10 @@ var Fr, is, Jt, Ur, Hr, wl, mp, lb, x3 = (lb = class extends yo {
4522
4522
  });
4523
4523
  }
4524
4524
  get(t) {
4525
- return _(this, nr).get(t);
4525
+ return _(this, rr).get(t);
4526
4526
  }
4527
4527
  getAll() {
4528
- return [..._(this, nr).values()];
4528
+ return [..._(this, rr).values()];
4529
4529
  }
4530
4530
  find(t) {
4531
4531
  const n = { exact: !0, ...t };
@@ -4558,7 +4558,7 @@ var Fr, is, Jt, Ur, Hr, wl, mp, lb, x3 = (lb = class extends yo {
4558
4558
  });
4559
4559
  });
4560
4560
  }
4561
- }, nr = new WeakMap(), ub), pt, cs, ls, eo, to, us, no, ro, db, v3 = (db = class {
4561
+ }, rr = new WeakMap(), ub), pt, cs, ls, eo, to, us, no, ro, db, v3 = (db = class {
4562
4562
  constructor(e = {}) {
4563
4563
  le(this, pt);
4564
4564
  le(this, cs);
@@ -5642,11 +5642,11 @@ let b8 = class extends z {
5642
5642
  super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`, { name: "SizeOverflowError" });
5643
5643
  }
5644
5644
  };
5645
- function ir(e, { strict: t = !0 } = {}) {
5645
+ function cr(e, { strict: t = !0 } = {}) {
5646
5646
  return !e || typeof e != "string" ? !1 : t ? /^0x[0-9a-fA-F]*$/.test(e) : e.startsWith("0x");
5647
5647
  }
5648
5648
  function dt(e) {
5649
- return ir(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
5649
+ return cr(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
5650
5650
  }
5651
5651
  function rn(e, { dir: t = "left" } = {}) {
5652
5652
  let n = typeof e == "string" ? e.replace("0x", "") : e, r = 0;
@@ -5705,14 +5705,14 @@ function De(e, t = {}) {
5705
5705
  }
5706
5706
  function Yb(e, t = {}) {
5707
5707
  const n = `0x${Number(e)}`;
5708
- return typeof t.size == "number" ? (Yn(n, { size: t.size }), la(n, { size: t.size })) : n;
5708
+ return typeof t.size == "number" ? (Kn(n, { size: t.size }), la(n, { size: t.size })) : n;
5709
5709
  }
5710
5710
  function kt(e, t = {}) {
5711
5711
  let n = "";
5712
5712
  for (let s = 0; s < e.length; s++)
5713
5713
  n += g8[e[s]];
5714
5714
  const r = `0x${n}`;
5715
- return typeof t.size == "number" ? (Yn(r, { size: t.size }), la(r, { dir: "right", size: t.size })) : r;
5715
+ return typeof t.size == "number" ? (Kn(r, { size: t.size }), la(r, { dir: "right", size: t.size })) : r;
5716
5716
  }
5717
5717
  function V(e, t = {}) {
5718
5718
  const { signed: n, size: r } = t, s = BigInt(e);
@@ -5739,11 +5739,11 @@ function ao(e, t = {}) {
5739
5739
  }
5740
5740
  const w8 = /* @__PURE__ */ new TextEncoder();
5741
5741
  function Rr(e, t = {}) {
5742
- return typeof e == "number" || typeof e == "bigint" ? E8(e, t) : typeof e == "boolean" ? v8(e, t) : ir(e) ? dn(e, t) : Ys(e, t);
5742
+ return typeof e == "number" || typeof e == "bigint" ? E8(e, t) : typeof e == "boolean" ? v8(e, t) : cr(e) ? dn(e, t) : Ys(e, t);
5743
5743
  }
5744
5744
  function v8(e, t = {}) {
5745
5745
  const n = new Uint8Array(1);
5746
- return n[0] = Number(e), typeof t.size == "number" ? (Yn(n, { size: t.size }), la(n, { size: t.size })) : n;
5746
+ return n[0] = Number(e), typeof t.size == "number" ? (Kn(n, { size: t.size }), la(n, { size: t.size })) : n;
5747
5747
  }
5748
5748
  const vr = {
5749
5749
  zero: 48,
@@ -5763,7 +5763,7 @@ function ch(e) {
5763
5763
  }
5764
5764
  function dn(e, t = {}) {
5765
5765
  let n = e;
5766
- t.size && (Yn(n, { size: t.size }), n = la(n, { dir: "right", size: t.size }));
5766
+ t.size && (Kn(n, { size: t.size }), n = la(n, { dir: "right", size: t.size }));
5767
5767
  let r = n.slice(2);
5768
5768
  r.length % 2 && (r = `0${r}`);
5769
5769
  const s = r.length / 2, a = new Uint8Array(s);
@@ -5781,9 +5781,9 @@ function E8(e, t) {
5781
5781
  }
5782
5782
  function Ys(e, t = {}) {
5783
5783
  const n = w8.encode(e);
5784
- return typeof t.size == "number" ? (Yn(n, { size: t.size }), la(n, { dir: "right", size: t.size })) : n;
5784
+ return typeof t.size == "number" ? (Kn(n, { size: t.size }), la(n, { dir: "right", size: t.size })) : n;
5785
5785
  }
5786
- function Yn(e, { size: t }) {
5786
+ function Kn(e, { size: t }) {
5787
5787
  if (dt(e) > t)
5788
5788
  throw new b8({
5789
5789
  givenSize: dt(e),
@@ -5792,7 +5792,7 @@ function Yn(e, { size: t }) {
5792
5792
  }
5793
5793
  function Re(e, t = {}) {
5794
5794
  const { signed: n } = t;
5795
- t.size && Yn(e, { size: t.size });
5795
+ t.size && Kn(e, { size: t.size });
5796
5796
  const r = BigInt(e);
5797
5797
  if (!n)
5798
5798
  return r;
@@ -5801,7 +5801,7 @@ function Re(e, t = {}) {
5801
5801
  }
5802
5802
  function k8(e, t = {}) {
5803
5803
  let n = e;
5804
- if (t.size && (Yn(n, { size: t.size }), n = rn(n)), rn(n) === "0x00")
5804
+ if (t.size && (Kn(n, { size: t.size }), n = rn(n)), rn(n) === "0x00")
5805
5805
  return !1;
5806
5806
  if (rn(n) === "0x01")
5807
5807
  return !0;
@@ -5897,7 +5897,7 @@ function Tf(e, t) {
5897
5897
  };
5898
5898
  }
5899
5899
  const Af = /* @__PURE__ */ eu("block", Tf);
5900
- function cr(e, { args: t, eventName: n } = {}) {
5900
+ function lr(e, { args: t, eventName: n } = {}) {
5901
5901
  return {
5902
5902
  ...e,
5903
5903
  blockHash: e.blockHash ? e.blockHash : null,
@@ -5921,7 +5921,7 @@ function nu(e, t) {
5921
5921
  cumulativeGasUsed: e.cumulativeGasUsed ? BigInt(e.cumulativeGasUsed) : null,
5922
5922
  effectiveGasPrice: e.effectiveGasPrice ? BigInt(e.effectiveGasPrice) : null,
5923
5923
  gasUsed: e.gasUsed ? BigInt(e.gasUsed) : null,
5924
- logs: e.logs ? e.logs.map((r) => cr(r)) : null,
5924
+ logs: e.logs ? e.logs.map((r) => lr(r)) : null,
5925
5925
  to: e.to ? e.to : null,
5926
5926
  transactionIndex: e.transactionIndex ? fn(e.transactionIndex) : null,
5927
5927
  status: e.status ? Zb[e.status] : null,
@@ -5936,11 +5936,11 @@ const Sf = /* @__PURE__ */ eu("transactionReceipt", nu), T8 = {
5936
5936
  eip4844: "0x3",
5937
5937
  eip7702: "0x4"
5938
5938
  };
5939
- function Kn(e, t) {
5939
+ function Zn(e, t) {
5940
5940
  const n = {};
5941
5941
  return typeof e.authorizationList < "u" && (n.authorizationList = A8(e.authorizationList)), typeof e.accessList < "u" && (n.accessList = e.accessList), typeof e.blobVersionedHashes < "u" && (n.blobVersionedHashes = e.blobVersionedHashes), typeof e.blobs < "u" && (typeof e.blobs[0] != "string" ? n.blobs = e.blobs.map((r) => kt(r)) : n.blobs = e.blobs), typeof e.data < "u" && (n.data = e.data), e.account && (n.from = e.account.address), typeof e.from < "u" && (n.from = e.from), typeof e.gas < "u" && (n.gas = V(e.gas)), typeof e.gasPrice < "u" && (n.gasPrice = V(e.gasPrice)), typeof e.maxFeePerBlobGas < "u" && (n.maxFeePerBlobGas = V(e.maxFeePerBlobGas)), typeof e.maxFeePerGas < "u" && (n.maxFeePerGas = V(e.maxFeePerGas)), typeof e.maxPriorityFeePerGas < "u" && (n.maxPriorityFeePerGas = V(e.maxPriorityFeePerGas)), typeof e.nonce < "u" && (n.nonce = V(e.nonce)), typeof e.to < "u" && (n.to = e.to), typeof e.type < "u" && (n.type = T8[e.type]), typeof e.value < "u" && (n.value = V(e.value)), n;
5942
5942
  }
5943
- const If = /* @__PURE__ */ eu("transactionRequest", Kn);
5943
+ const If = /* @__PURE__ */ eu("transactionRequest", Zn);
5944
5944
  function A8(e) {
5945
5945
  return e.map((t) => ({
5946
5946
  address: t.address,
@@ -5986,7 +5986,7 @@ const S8 = 2n ** 16n - 1n, ea = 2n ** 256n - 1n, Pf = 50000n, lh = S8 * 32n, Xb
5986
5986
  l1BatchNumber: e.l1BatchNumber ? Re(e.l1BatchNumber) : null,
5987
5987
  l1BatchTxIndex: e.l1BatchTxIndex ? Re(e.l1BatchTxIndex) : null,
5988
5988
  logs: e.logs.map((t) => ({
5989
- ...cr(t),
5989
+ ...lr(t),
5990
5990
  l1BatchNumber: t.l1BatchNumber ? Re(t.l1BatchNumber) : null,
5991
5991
  transactionLogIndex: fn(t.transactionLogIndex),
5992
5992
  logType: t.logType
@@ -6194,7 +6194,7 @@ function Bf(e, { recursiveReadLimit: t = 8192 } = {}) {
6194
6194
  const n = Object.create(B8);
6195
6195
  return n.bytes = e, n.dataView = new DataView(e.buffer ?? e, e.byteOffset, e.byteLength), n.positionReadCount = /* @__PURE__ */ new Map(), n.recursiveReadLimit = t, n;
6196
6196
  }
6197
- function lr(e, t = "hex") {
6197
+ function ur(e, t = "hex") {
6198
6198
  const n = Jb(e), r = Bf(new Uint8Array(n.length));
6199
6199
  return n.encode(r), t === "hex" ? kt(r.bytes) : r.bytes;
6200
6200
  }
@@ -6435,7 +6435,7 @@ function xs(...e) {
6435
6435
  function ad(e) {
6436
6436
  return new DataView(e.buffer, e.byteOffset, e.byteLength);
6437
6437
  }
6438
- function Xn(e, t) {
6438
+ function Qn(e, t) {
6439
6439
  return e << 32 - t | e >>> t;
6440
6440
  }
6441
6441
  const j8 = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
@@ -6688,12 +6688,12 @@ class dv extends oy {
6688
6688
  for (let d = 0; d < 16; d++, n += 4)
6689
6689
  Qr[d] = t.getUint32(n, !1);
6690
6690
  for (let d = 16; d < 64; d++) {
6691
- const f = Qr[d - 15], m = Qr[d - 2], y = Xn(f, 7) ^ Xn(f, 18) ^ f >>> 3, g = Xn(m, 17) ^ Xn(m, 19) ^ m >>> 10;
6691
+ const f = Qr[d - 15], m = Qr[d - 2], y = Qn(f, 7) ^ Qn(f, 18) ^ f >>> 3, g = Qn(m, 17) ^ Qn(m, 19) ^ m >>> 10;
6692
6692
  Qr[d] = g + Qr[d - 7] + y + Qr[d - 16] | 0;
6693
6693
  }
6694
6694
  let { A: r, B: s, C: a, D: o, E: i, F: c, G: l, H: u } = this;
6695
6695
  for (let d = 0; d < 64; d++) {
6696
- const f = Xn(i, 6) ^ Xn(i, 11) ^ Xn(i, 25), m = u + f + X8(i, c, l) + uv[d] + Qr[d] | 0, g = (Xn(r, 2) ^ Xn(r, 13) ^ Xn(r, 22)) + Q8(r, s, a) | 0;
6696
+ const f = Qn(i, 6) ^ Qn(i, 11) ^ Qn(i, 25), m = u + f + X8(i, c, l) + uv[d] + Qr[d] | 0, g = (Qn(r, 2) ^ Qn(r, 13) ^ Qn(r, 22)) + Q8(r, s, a) | 0;
6697
6697
  u = l, l = c, c = i, i = o + m | 0, o = a, a = s, s = r, r = m + g | 0;
6698
6698
  }
6699
6699
  r = r + this.A | 0, s = s + this.B | 0, a = a + this.C | 0, o = o + this.D | 0, i = i + this.E | 0, c = c + this.F | 0, l = l + this.G | 0, u = u + this.H | 0, this.set(r, s, a, o, i, c, l, u);
@@ -6830,7 +6830,7 @@ class mv extends ly {
6830
6830
  }
6831
6831
  const _f = /* @__PURE__ */ su(() => new dv()), hv = /* @__PURE__ */ su(() => new ly()), bv = /* @__PURE__ */ su(() => new mv()), uy = _f;
6832
6832
  function dy(e, t) {
6833
- const n = t || "hex", r = uy(ir(e, { strict: !1 }) ? Rr(e) : e);
6833
+ const n = t || "hex", r = uy(cr(e, { strict: !1 }) ? Rr(e) : e);
6834
6834
  return n === "bytes" ? r : De(r);
6835
6835
  }
6836
6836
  function yv(e) {
@@ -7281,7 +7281,7 @@ class Rf extends Df {
7281
7281
  }
7282
7282
  const Uv = (e, t, n) => su(() => new Rf(t, e, n)), ky = Uv(1, 136, 256 / 8);
7283
7283
  function Dt(e, t) {
7284
- const n = t || "hex", r = ky(ir(e, { strict: !1 }) ? Rr(e) : e);
7284
+ const n = t || "hex", r = ky(cr(e, { strict: !1 }) ? Rr(e) : e);
7285
7285
  return n === "bytes" ? r : De(r);
7286
7286
  }
7287
7287
  const od = /* @__PURE__ */ new xo(8192);
@@ -7308,7 +7308,7 @@ function lt(e, t) {
7308
7308
  return id.set(r, s), s;
7309
7309
  }
7310
7310
  function na(e, t, n, { strict: r } = {}) {
7311
- return ir(e, { strict: !1 }) ? Tp(e, t, n, {
7311
+ return cr(e, { strict: !1 }) ? Tp(e, t, n, {
7312
7312
  strict: r
7313
7313
  }) : Ay(e, t, n, {
7314
7314
  strict: r
@@ -7441,7 +7441,7 @@ function Nv(e, t) {
7441
7441
  const f = Ji(u), m = z8(n);
7442
7442
  return mn([
7443
7443
  "0x04",
7444
- lr([
7444
+ ur([
7445
7445
  V(r),
7446
7446
  a ? V(a) : "0x",
7447
7447
  l ? V(l) : "0x",
@@ -7494,7 +7494,7 @@ function Lv(e, t) {
7494
7494
  return mn([
7495
7495
  "0x03",
7496
7496
  // If sidecars are enabled, envelope turns into a "wrapper":
7497
- lr(m ? [g, E, v, w] : g)
7497
+ ur(m ? [g, E, v, w] : g)
7498
7498
  ]);
7499
7499
  }
7500
7500
  function zv(e, t) {
@@ -7514,7 +7514,7 @@ function zv(e, t) {
7514
7514
  ];
7515
7515
  return mn([
7516
7516
  "0x02",
7517
- lr(f)
7517
+ ur(f)
7518
7518
  ]);
7519
7519
  }
7520
7520
  function $v(e, t) {
@@ -7533,7 +7533,7 @@ function $v(e, t) {
7533
7533
  ];
7534
7534
  return mn([
7535
7535
  "0x01",
7536
- lr(d)
7536
+ ur(d)
7537
7537
  ]);
7538
7538
  }
7539
7539
  function Hv(e, t) {
@@ -7570,7 +7570,7 @@ function Hv(e, t) {
7570
7570
  "0x",
7571
7571
  "0x"
7572
7572
  ]);
7573
- return lr(l);
7573
+ return ur(l);
7574
7574
  }
7575
7575
  function wo(e, t) {
7576
7576
  const n = t ?? e, { v: r, yParity: s } = n;
@@ -7645,7 +7645,7 @@ function Wv(e) {
7645
7645
  ];
7646
7646
  return mn([
7647
7647
  "0x71",
7648
- lr(g)
7648
+ ur(g)
7649
7649
  ]);
7650
7650
  }
7651
7651
  class qv extends z {
@@ -8044,7 +8044,7 @@ function dE(e) {
8044
8044
  ];
8045
8045
  return mn([
8046
8046
  "0x7e",
8047
- lr(l)
8047
+ ur(l)
8048
8048
  ]);
8049
8049
  }
8050
8050
  function pE(e) {
@@ -10088,7 +10088,7 @@ function Xk(e, t) {
10088
10088
  ];
10089
10089
  return mn([
10090
10090
  "0x7b",
10091
- lr(f)
10091
+ ur(f)
10092
10092
  ]);
10093
10093
  }
10094
10094
  const Qk = ea;
@@ -16295,24 +16295,24 @@ function Jy(e) {
16295
16295
  }
16296
16296
  const tc = (e) => na(Jy(e), 0, 4);
16297
16297
  function IA(e, t = {}) {
16298
- typeof t.size < "u" && Yn(e, { size: t.size });
16298
+ typeof t.size < "u" && Kn(e, { size: t.size });
16299
16299
  const n = kt(e, t);
16300
16300
  return Re(n, t);
16301
16301
  }
16302
16302
  function PA(e, t = {}) {
16303
16303
  let n = e;
16304
- if (typeof t.size < "u" && (Yn(n, { size: t.size }), n = rn(n)), n.length > 1 || n[0] > 1)
16304
+ if (typeof t.size < "u" && (Kn(n, { size: t.size }), n = rn(n)), n.length > 1 || n[0] > 1)
16305
16305
  throw new m8(n);
16306
16306
  return !!n[0];
16307
16307
  }
16308
16308
  function Nr(e, t = {}) {
16309
- typeof t.size < "u" && Yn(e, { size: t.size });
16309
+ typeof t.size < "u" && Kn(e, { size: t.size });
16310
16310
  const n = kt(e, t);
16311
16311
  return fn(n, t);
16312
16312
  }
16313
16313
  function BA(e, t = {}) {
16314
16314
  let n = e;
16315
- return typeof t.size < "u" && (Yn(n, { size: t.size }), n = rn(n, { dir: "right" })), new TextDecoder().decode(n);
16315
+ return typeof t.size < "u" && (Kn(n, { size: t.size }), n = rn(n, { dir: "right" })), new TextDecoder().decode(n);
16316
16316
  }
16317
16317
  const FA = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, eg = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
16318
16318
  function da(e, t) {
@@ -16667,7 +16667,7 @@ function tg({ abiItem: e, args: t, includeFunctionName: n = !0, includeName: r =
16667
16667
  }
16668
16668
  const iu = Jy;
16669
16669
  function pa(e) {
16670
- const { abi: t, args: n = [], name: r } = e, s = ir(r, { strict: !1 }), a = t.filter((i) => s ? i.type === "function" ? tc(i) === r : i.type === "event" ? iu(i) === r : !1 : "name" in i && i.name === r);
16670
+ const { abi: t, args: n = [], name: r } = e, s = cr(r, { strict: !1 }), a = t.filter((i) => s ? i.type === "function" ? tc(i) === r : i.type === "event" ? iu(i) === r : !1 : "name" in i && i.name === r);
16671
16671
  if (a.length === 0)
16672
16672
  return;
16673
16673
  if (a.length === 1)
@@ -17520,7 +17520,7 @@ async function nS(e, t) {
17520
17520
  try {
17521
17521
  const { accessList: i, blockNumber: c, blockTag: l, data: u, gas: d, gasPrice: f, maxFeePerGas: m, maxPriorityFeePerGas: y, nonce: g, to: E, value: v, ...w } = t, C = (typeof c == "bigint" ? V(c) : void 0) || l;
17522
17522
  mr(t);
17523
- const O = (o = (a = (s = e.chain) == null ? void 0 : s.formatters) == null ? void 0 : a.transactionRequest) == null ? void 0 : o.format, A = (O || Kn)({
17523
+ const O = (o = (a = (s = e.chain) == null ? void 0 : s.formatters) == null ? void 0 : a.transactionRequest) == null ? void 0 : o.format, A = (O || Zn)({
17524
17524
  // Pick out extra data that might exist on the chain's transaction request type.
17525
17525
  ...fa(w, { format: O }),
17526
17526
  account: r,
@@ -27586,13 +27586,13 @@ function TD(e) {
27586
27586
  return Qi(`0x${t}`);
27587
27587
  }
27588
27588
  async function AD({ hash: e, signature: t }) {
27589
- const n = ir(e) ? e : De(e), { secp256k1: r } = await Promise.resolve().then(() => fO);
27589
+ const n = cr(e) ? e : De(e), { secp256k1: r } = await Promise.resolve().then(() => fO);
27590
27590
  return `0x${(() => {
27591
27591
  if (typeof t == "object" && "r" in t && "s" in t) {
27592
27592
  const { r: l, s: u, v: d, yParity: f } = t, m = Number(f ?? d), y = t1(m);
27593
27593
  return new r.Signature(Re(l), Re(u)).addRecoveryBit(y);
27594
27594
  }
27595
- const o = ir(t) ? t : De(t);
27595
+ const o = cr(t) ? t : De(t);
27596
27596
  if (dt(o) !== 65)
27597
27597
  throw new Error("invalid signature length");
27598
27598
  const i = fn(`0x${o.slice(130)}`), c = t1(i);
@@ -27614,7 +27614,7 @@ async function a6({ hash: e, signature: t }) {
27614
27614
  function SD(e) {
27615
27615
  const { chainId: t, nonce: n, to: r } = e, s = e.contractAddress ?? e.address, a = Dt(mn([
27616
27616
  "0x05",
27617
- lr([
27617
+ ur([
27618
27618
  t ? V(t) : "0x",
27619
27619
  s,
27620
27620
  n ? V(n) : "0x"
@@ -27801,7 +27801,7 @@ async function Eu(e, t) {
27801
27801
  }) : d;
27802
27802
  try {
27803
27803
  mr(t);
27804
- const F = (typeof a == "bigint" ? V(a) : void 0) || o, R = l ? o6(l) : void 0, L = g0(N), $ = (I = (k = (D = e.chain) == null ? void 0 : D.formatters) == null ? void 0 : k.transactionRequest) == null ? void 0 : I.format, pe = ($ || Kn)({
27804
+ const F = (typeof a == "bigint" ? V(a) : void 0) || o, R = l ? o6(l) : void 0, L = g0(N), $ = (I = (k = (D = e.chain) == null ? void 0 : D.formatters) == null ? void 0 : k.transactionRequest) == null ? void 0 : I.format, pe = ($ || Zn)({
27805
27805
  // Pick out extra data that might exist on the chain's transaction request type.
27806
27806
  ...fa(A, { format: $ }),
27807
27807
  accessList: i,
@@ -27841,7 +27841,7 @@ async function Eu(e, t) {
27841
27841
  });
27842
27842
  return ie === "0x" ? { data: void 0 } : { data: ie };
27843
27843
  } catch (U) {
27844
- const F = MD(U), { offchainLookup: R, offchainLookupSignature: L } = await import("./ccip-arUXt9MQ.js");
27844
+ const F = MD(U), { offchainLookup: R, offchainLookupSignature: L } = await import("./ccip-vfZPJ3La.js");
27845
27845
  if (e.ccipRead !== !1 && (F == null ? void 0 : F.slice(0, 10)) === L && C)
27846
27846
  return { data: await R(e, { data: F, to: C }) };
27847
27847
  throw S && (F == null ? void 0 : F.slice(0, 10)) === "0x101bb98d" ? new JA({ factory: f }) : Zf(U, {
@@ -27985,7 +27985,7 @@ async function dc(e, t) {
27985
27985
  return await r.verifyHash(e, t);
27986
27986
  const i = (() => {
27987
27987
  const f = t.signature;
27988
- return ir(f) ? f : typeof f == "object" && "r" in f && "s" in f ? PD(f) : kt(f);
27988
+ return cr(f) ? f : typeof f == "object" && "r" in f && "s" in f ? PD(f) : kt(f);
27989
27989
  })();
27990
27990
  try {
27991
27991
  return xD(i) ? await ND(e, {
@@ -28696,7 +28696,7 @@ function T_(e) {
28696
28696
  function A_(e, t) {
28697
28697
  const n = e, r = n.account ? Je(n.account) : void 0;
28698
28698
  if (!w0(n))
28699
- return Kn(e);
28699
+ return Zn(e);
28700
28700
  t && (n.calls = n.calls ?? [
28701
28701
  {
28702
28702
  to: e.to || (!e.data || e.data === "0x" ? "0x0000000000000000000000000000000000000000" : void 0),
@@ -31831,7 +31831,7 @@ async function T0(e, t) {
31831
31831
  });
31832
31832
  })();
31833
31833
  mr(t);
31834
- const O = (b = (h = a == null ? void 0 : a.formatters) == null ? void 0 : h.transactionRequest) == null ? void 0 : b.format, A = (O || Kn)({
31834
+ const O = (b = (h = a == null ? void 0 : a.formatters) == null ? void 0 : h.transactionRequest) == null ? void 0 : b.format, A = (O || Zn)({
31835
31835
  // Pick out extra data that might exist on the chain's transaction request type.
31836
31836
  ...fa(T, { format: O }),
31837
31837
  account: n ? Je(n) : void 0,
@@ -32057,7 +32057,7 @@ async function S0(e, t) {
32057
32057
  return v;
32058
32058
  const S = (typeof y == "bigint" ? V(y) : void 0) || g, P = g0(h);
32059
32059
  mr(t);
32060
- const B = (c = (i = (o = e.chain) == null ? void 0 : o.formatters) == null ? void 0 : i.transactionRequest) == null ? void 0 : c.format, k = (B || Kn)({
32060
+ const B = (c = (i = (o = e.chain) == null ? void 0 : o.formatters) == null ? void 0 : i.transactionRequest) == null ? void 0 : c.format, k = (B || Zn)({
32061
32061
  // Pick out extra data that might exist on the chain's transaction request type.
32062
32062
  ...fa(b, { format: B }),
32063
32063
  account: s,
@@ -32265,7 +32265,7 @@ async function P0(e, { address: t, blockHash: n, fromBlock: r, toBlock: s, event
32265
32265
  }
32266
32266
  ]
32267
32267
  });
32268
- const m = f.map((y) => cr(y));
32268
+ const m = f.map((y) => lr(y));
32269
32269
  return u ? I0({
32270
32270
  abi: u,
32271
32271
  args: i,
@@ -32418,7 +32418,7 @@ async function Tu(e, { filter: t }) {
32418
32418
  });
32419
32419
  if (typeof r[0] == "string")
32420
32420
  return r;
32421
- const s = r.map((a) => cr(a));
32421
+ const s = r.map((a) => lr(a));
32422
32422
  return !("abi" in t) || !t.abi ? s : I0({
32423
32423
  abi: t.abi,
32424
32424
  logs: s,
@@ -32537,7 +32537,7 @@ function IR(e, t) {
32537
32537
  data: b.data,
32538
32538
  topics: b.topics,
32539
32539
  strict: f
32540
- }), B = cr(b, {
32540
+ }), B = lr(b, {
32541
32541
  args: P,
32542
32542
  eventName: S
32543
32543
  });
@@ -32549,7 +32549,7 @@ function IR(e, t) {
32549
32549
  return;
32550
32550
  P = S.abiItem.name, B = (x = S.abiItem.inputs) == null ? void 0 : x.some((k) => !("name" in k && k.name));
32551
32551
  }
32552
- const D = cr(b, {
32552
+ const D = lr(b, {
32553
32553
  args: B ? [] : {},
32554
32554
  eventName: P
32555
32555
  });
@@ -32601,7 +32601,7 @@ async function Su(e, t) {
32601
32601
  currentChainId: A,
32602
32602
  chain: r
32603
32603
  }));
32604
- const h = (C = (T = (w = e.chain) == null ? void 0 : w.formatters) == null ? void 0 : T.transactionRequest) == null ? void 0 : C.format, x = (h || Kn)({
32604
+ const h = (C = (T = (w = e.chain) == null ? void 0 : w.formatters) == null ? void 0 : T.transactionRequest) == null ? void 0 : C.format, x = (h || Zn)({
32605
32605
  // Pick out extra data that might exist on the chain's transaction request type.
32606
32606
  ...fa(E, { format: h }),
32607
32607
  accessList: s,
@@ -33053,7 +33053,7 @@ function P6(e) {
33053
33053
  if (e.length !== 66 || e.indexOf("[") !== 0 || e.indexOf("]") !== 65)
33054
33054
  return null;
33055
33055
  const t = `0x${e.slice(1, 65)}`;
33056
- return ir(t) ? t : null;
33056
+ return cr(t) ? t : null;
33057
33057
  }
33058
33058
  function Kp(e) {
33059
33059
  let t = new Uint8Array(32).fill(0);
@@ -33455,7 +33455,7 @@ async function O6(e, t) {
33455
33455
  const { account: n = e.account, blockNumber: r, blockTag: s = "latest", blobs: a, data: o, gas: i, gasPrice: c, maxFeePerBlobGas: l, maxFeePerGas: u, maxPriorityFeePerGas: d, to: f, value: m, ...y } = t, g = n ? Je(n) : void 0;
33456
33456
  try {
33457
33457
  mr(t);
33458
- const C = (typeof r == "bigint" ? V(r) : void 0) || s, O = (w = (v = (E = e.chain) == null ? void 0 : E.formatters) == null ? void 0 : v.transactionRequest) == null ? void 0 : w.format, A = (O || Kn)({
33458
+ const C = (typeof r == "bigint" ? V(r) : void 0) || s, O = (w = (v = (E = e.chain) == null ? void 0 : E.formatters) == null ? void 0 : v.transactionRequest) == null ? void 0 : w.format, A = (O || Zn)({
33459
33459
  // Pick out extra data that might exist on the chain's transaction request type.
33460
33460
  ...fa(y, { format: O }),
33461
33461
  account: g,
@@ -33637,7 +33637,7 @@ async function cN(e, { filter: t }) {
33637
33637
  const n = t.strict ?? !1, s = (await t.request({
33638
33638
  method: "eth_getFilterLogs",
33639
33639
  params: [t.id]
33640
- })).map((a) => cr(a));
33640
+ })).map((a) => lr(a));
33641
33641
  return t.abi ? I0({
33642
33642
  abi: t.abi,
33643
33643
  logs: s,
@@ -34264,7 +34264,7 @@ async function Zp(e, t) {
34264
34264
  data: v.dataSuffix ? Fn([T || "0x", v.dataSuffix]) : T,
34265
34265
  from: v.from ?? (w == null ? void 0 : w.address)
34266
34266
  };
34267
- return mr(C), Kn(C);
34267
+ return mr(C), Zn(C);
34268
34268
  }), g = f.stateOverrides ? g0(f.stateOverrides) : void 0;
34269
34269
  c.push({
34270
34270
  blockOverrides: m,
@@ -34283,7 +34283,7 @@ async function Zp(e, t) {
34283
34283
  ...Tf(f),
34284
34284
  calls: f.calls.map((y, g) => {
34285
34285
  var x, S;
34286
- const { abi: E, args: v, functionName: w, to: T } = s[m].calls[g], C = ((x = y.error) == null ? void 0 : x.data) ?? y.returnData, O = BigInt(y.gasUsed), N = (S = y.logs) == null ? void 0 : S.map((P) => cr(P)), A = y.status === "0x1" ? "success" : "failure", h = E && A === "success" && C !== "0x" ? ma({
34286
+ const { abi: E, args: v, functionName: w, to: T } = s[m].calls[g], C = ((x = y.error) == null ? void 0 : x.data) ?? y.returnData, O = BigInt(y.gasUsed), N = (S = y.logs) == null ? void 0 : S.map((P) => lr(P)), A = y.status === "0x1" ? "success" : "failure", h = E && A === "success" && C !== "0x" ? ma({
34287
34287
  abi: E,
34288
34288
  data: C,
34289
34289
  functionName: w
@@ -34542,7 +34542,7 @@ function x1(e, t, n) {
34542
34542
  function NN(e) {
34543
34543
  return V6(e);
34544
34544
  }
34545
- const LN = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", Qn = "0x0000000000000000000000000000000000000000", zN = "0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";
34545
+ const LN = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", Jn = "0x0000000000000000000000000000000000000000", zN = "0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";
34546
34546
  async function $N(e, t) {
34547
34547
  const { blockNumber: n, blockTag: r, calls: s, stateOverrides: a, traceAssetChanges: o, traceTransfers: i, validation: c } = t, l = t.account ? Je(t.account) : void 0;
34548
34548
  if (o && !l)
@@ -34581,12 +34581,12 @@ async function $N(e, t) {
34581
34581
  functionName: "balanceOf",
34582
34582
  args: [l.address],
34583
34583
  to: F,
34584
- from: Qn,
34584
+ from: Jn,
34585
34585
  nonce: R
34586
34586
  })),
34587
34587
  stateOverrides: [
34588
34588
  {
34589
- address: Qn,
34589
+ address: Jn,
34590
34590
  nonce: 0
34591
34591
  }
34592
34592
  ]
@@ -34613,12 +34613,12 @@ async function $N(e, t) {
34613
34613
  functionName: "balanceOf",
34614
34614
  args: [l.address],
34615
34615
  to: F,
34616
- from: Qn,
34616
+ from: Jn,
34617
34617
  nonce: R
34618
34618
  })),
34619
34619
  stateOverrides: [
34620
34620
  {
34621
- address: Qn,
34621
+ address: Jn,
34622
34622
  nonce: 0
34623
34623
  }
34624
34624
  ]
@@ -34631,12 +34631,12 @@ async function $N(e, t) {
34631
34631
  Aa("function decimals() returns (uint256)")
34632
34632
  ],
34633
34633
  functionName: "decimals",
34634
- from: Qn,
34634
+ from: Jn,
34635
34635
  nonce: R
34636
34636
  })),
34637
34637
  stateOverrides: [
34638
34638
  {
34639
- address: Qn,
34639
+ address: Jn,
34640
34640
  nonce: 0
34641
34641
  }
34642
34642
  ]
@@ -34650,12 +34650,12 @@ async function $N(e, t) {
34650
34650
  ],
34651
34651
  functionName: "tokenURI",
34652
34652
  args: [0n],
34653
- from: Qn,
34653
+ from: Jn,
34654
34654
  nonce: R
34655
34655
  })),
34656
34656
  stateOverrides: [
34657
34657
  {
34658
- address: Qn,
34658
+ address: Jn,
34659
34659
  nonce: 0
34660
34660
  }
34661
34661
  ]
@@ -34666,12 +34666,12 @@ async function $N(e, t) {
34666
34666
  to: F,
34667
34667
  abi: [Aa("function symbol() returns (string)")],
34668
34668
  functionName: "symbol",
34669
- from: Qn,
34669
+ from: Jn,
34670
34670
  nonce: R
34671
34671
  })),
34672
34672
  stateOverrides: [
34673
34673
  {
34674
- address: Qn,
34674
+ address: Jn,
34675
34675
  nonce: 0
34676
34676
  }
34677
34677
  ]
@@ -35073,7 +35073,7 @@ function VN(e, { address: t, args: n, batch: r = !0, event: s, events: a, fromBl
35073
35073
  data: A.data,
35074
35074
  topics: A.topics,
35075
35075
  strict: m
35076
- }), S = cr(A, { args: x, eventName: b });
35076
+ }), S = lr(A, { args: x, eventName: b });
35077
35077
  c([S]);
35078
35078
  } catch (b) {
35079
35079
  let x, S;
@@ -35082,7 +35082,7 @@ function VN(e, { address: t, args: n, batch: r = !0, event: s, events: a, fromBl
35082
35082
  return;
35083
35083
  x = b.abiItem.name, S = (h = b.abiItem.inputs) == null ? void 0 : h.some((B) => !("name" in B && B.name));
35084
35084
  }
35085
- const P = cr(A, {
35085
+ const P = lr(A, {
35086
35086
  args: S ? [] : {},
35087
35087
  eventName: x
35088
35088
  });
@@ -35397,7 +35397,7 @@ async function K6(e, t) {
35397
35397
  currentChainId: x,
35398
35398
  chain: r
35399
35399
  }));
35400
- const S = (A = (N = (O = e.chain) == null ? void 0 : O.formatters) == null ? void 0 : N.transactionRequest) == null ? void 0 : A.format, B = (S || Kn)({
35400
+ const S = (A = (N = (O = e.chain) == null ? void 0 : O.formatters) == null ? void 0 : N.transactionRequest) == null ? void 0 : A.format, B = (S || Zn)({
35401
35401
  // Pick out extra data that might exist on the chain's transaction request type.
35402
35402
  ...fa(w, { format: S }),
35403
35403
  accessList: s,
@@ -35547,7 +35547,7 @@ async function dL(e, t) {
35547
35547
  currentChainId: o,
35548
35548
  chain: r
35549
35549
  });
35550
- const i = (r == null ? void 0 : r.formatters) || ((l = e.chain) == null ? void 0 : l.formatters), c = ((u = i == null ? void 0 : i.transactionRequest) == null ? void 0 : u.format) || Kn;
35550
+ const i = (r == null ? void 0 : r.formatters) || ((l = e.chain) == null ? void 0 : l.formatters), c = ((u = i == null ? void 0 : i.transactionRequest) == null ? void 0 : u.format) || Zn;
35551
35551
  return a.signTransaction ? a.signTransaction({
35552
35552
  ...s,
35553
35553
  chainId: o
@@ -36349,7 +36349,7 @@ function GL(e, t, n) {
36349
36349
  var r = this._calendar[e] || this._calendar.sameElse;
36350
36350
  return br(r) ? r.call(t, n) : r;
36351
36351
  }
36352
- function ur(e, t, n) {
36352
+ function dr(e, t, n) {
36353
36353
  var r = "" + Math.abs(e), s = t - r.length, a = e >= 0;
36354
36354
  return (a ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, s)).toString().substr(1) + r;
36355
36355
  }
@@ -36359,7 +36359,7 @@ function ue(e, t, n, r) {
36359
36359
  typeof r == "string" && (s = function() {
36360
36360
  return this[r]();
36361
36361
  }), e && (za[e] = s), t && (za[t[0]] = function() {
36362
- return ur(s.apply(this, arguments), t[1], t[2]);
36362
+ return dr(s.apply(this, arguments), t[1], t[2]);
36363
36363
  }), n && (za[n] = function() {
36364
36364
  return this.localeData().ordinal(
36365
36365
  s.apply(this, arguments),
@@ -36578,10 +36578,10 @@ function cz(e, t, n) {
36578
36578
  function Ru(e) {
36579
36579
  return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
36580
36580
  }
36581
- var zt = 0, Dr = 1, ar = 2, At = 3, zn = 4, _r = 5, Ms = 6, lz = 7, uz = 8;
36581
+ var zt = 0, Dr = 1, or = 2, At = 3, zn = 4, _r = 5, Ms = 6, lz = 7, uz = 8;
36582
36582
  ue("Y", 0, 0, function() {
36583
36583
  var e = this.year();
36584
- return e <= 9999 ? ur(e, 4) : "+" + e;
36584
+ return e <= 9999 ? dr(e, 4) : "+" + e;
36585
36585
  });
36586
36586
  ue(0, ["YY", 2], 0, function() {
36587
36587
  return this.year() % 100;
@@ -37013,16 +37013,16 @@ ue("H", ["HH", 2], 0, "hour");
37013
37013
  ue("h", ["hh", 2], 0, Z0);
37014
37014
  ue("k", ["kk", 2], 0, Zz);
37015
37015
  ue("hmm", 0, 0, function() {
37016
- return "" + Z0.apply(this) + ur(this.minutes(), 2);
37016
+ return "" + Z0.apply(this) + dr(this.minutes(), 2);
37017
37017
  });
37018
37018
  ue("hmmss", 0, 0, function() {
37019
- return "" + Z0.apply(this) + ur(this.minutes(), 2) + ur(this.seconds(), 2);
37019
+ return "" + Z0.apply(this) + dr(this.minutes(), 2) + dr(this.seconds(), 2);
37020
37020
  });
37021
37021
  ue("Hmm", 0, 0, function() {
37022
- return "" + this.hours() + ur(this.minutes(), 2);
37022
+ return "" + this.hours() + dr(this.minutes(), 2);
37023
37023
  });
37024
37024
  ue("Hmmss", 0, 0, function() {
37025
- return "" + this.hours() + ur(this.minutes(), 2) + ur(this.seconds(), 2);
37025
+ return "" + this.hours() + dr(this.minutes(), 2) + dr(this.seconds(), 2);
37026
37026
  });
37027
37027
  function y2(e, t) {
37028
37028
  ue(e, 0, 0, function() {
@@ -37189,7 +37189,7 @@ function a$() {
37189
37189
  }
37190
37190
  function Q0(e) {
37191
37191
  var t, n = e._a;
37192
- return n && Ce(e).overflow === -2 && (t = n[Dr] < 0 || n[Dr] > 11 ? Dr : n[ar] < 1 || n[ar] > q0(n[zt], n[Dr]) ? ar : n[At] < 0 || n[At] > 24 || n[At] === 24 && (n[zn] !== 0 || n[_r] !== 0 || n[Ms] !== 0) ? At : n[zn] < 0 || n[zn] > 59 ? zn : n[_r] < 0 || n[_r] > 59 ? _r : n[Ms] < 0 || n[Ms] > 999 ? Ms : -1, Ce(e)._overflowDayOfYear && (t < zt || t > ar) && (t = ar), Ce(e)._overflowWeeks && t === -1 && (t = lz), Ce(e)._overflowWeekday && t === -1 && (t = uz), Ce(e).overflow = t), e;
37192
+ return n && Ce(e).overflow === -2 && (t = n[Dr] < 0 || n[Dr] > 11 ? Dr : n[or] < 1 || n[or] > q0(n[zt], n[Dr]) ? or : n[At] < 0 || n[At] > 24 || n[At] === 24 && (n[zn] !== 0 || n[_r] !== 0 || n[Ms] !== 0) ? At : n[zn] < 0 || n[zn] > 59 ? zn : n[_r] < 0 || n[_r] > 59 ? _r : n[Ms] < 0 || n[Ms] > 999 ? Ms : -1, Ce(e)._overflowDayOfYear && (t < zt || t > or) && (t = or), Ce(e)._overflowWeeks && t === -1 && (t = lz), Ce(e)._overflowWeekday && t === -1 && (t = uz), Ce(e).overflow = t), e;
37193
37193
  }
37194
37194
  var o$ = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, i$ = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, c$ = /Z|[+-]\d\d(?::?\d\d)?/, bl = [
37195
37195
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
@@ -37354,7 +37354,7 @@ function g$(e) {
37354
37354
  function J0(e) {
37355
37355
  var t, n, r = [], s, a, o;
37356
37356
  if (!e._d) {
37357
- for (s = g$(e), e._w && e._a[ar] == null && e._a[Dr] == null && x$(e), e._dayOfYear != null && (o = Pa(e._a[zt], s[zt]), (e._dayOfYear > ei(o) || e._dayOfYear === 0) && (Ce(e)._overflowDayOfYear = !0), n = Di(o, 0, e._dayOfYear), e._a[Dr] = n.getUTCMonth(), e._a[ar] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
37357
+ for (s = g$(e), e._w && e._a[or] == null && e._a[Dr] == null && x$(e), e._dayOfYear != null && (o = Pa(e._a[zt], s[zt]), (e._dayOfYear > ei(o) || e._dayOfYear === 0) && (Ce(e)._overflowDayOfYear = !0), n = Di(o, 0, e._dayOfYear), e._a[Dr] = n.getUTCMonth(), e._a[or] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
37358
37358
  e._a[t] = r[t] = s[t];
37359
37359
  for (; t < 7; t++)
37360
37360
  e._a[t] = r[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
@@ -37502,7 +37502,7 @@ function F$() {
37502
37502
  return this._isValid;
37503
37503
  }
37504
37504
  function U$() {
37505
- return Zn(NaN);
37505
+ return Xn(NaN);
37506
37506
  }
37507
37507
  function Lu(e) {
37508
37508
  var t = G0(e), n = t.year || 0, r = t.quarter || 0, s = t.month || 0, a = t.week || t.isoWeek || 0, o = t.day || 0, i = t.hour || 0, c = t.minute || 0, l = t.second || 0, u = t.millisecond || 0;
@@ -37525,7 +37525,7 @@ function O$(e, t, n) {
37525
37525
  function T2(e, t) {
37526
37526
  ue(e, 0, 0, function() {
37527
37527
  var n = this.utcOffset(), r = "+";
37528
- return n < 0 && (n = -n, r = "-"), r + ur(~~(n / 60), 2) + t + ur(~~n % 60, 2);
37528
+ return n < 0 && (n = -n, r = "-"), r + dr(~~(n / 60), 2) + t + dr(~~n % 60, 2);
37529
37529
  });
37530
37530
  }
37531
37531
  T2("Z", ":");
@@ -37560,7 +37560,7 @@ function _$(e, t, n) {
37560
37560
  } else Math.abs(e) < 16 && !n && (e = e * 60);
37561
37561
  return !this._isUTC && t && (s = of(this)), this._offset = e, this._isUTC = !0, s != null && this.add(s, "m"), r !== e && (!t || this._changeInProgress ? I2(
37562
37562
  this,
37563
- Zn(e - r, "m"),
37563
+ Xn(e - r, "m"),
37564
37564
  1,
37565
37565
  !1
37566
37566
  ) : this._changeInProgress || (this._changeInProgress = !0, Q.updateOffset(this, !0), this._changeInProgress = null)), this;
@@ -37607,7 +37607,7 @@ function A2() {
37607
37607
  return this.isValid() ? this._isUTC && this._offset === 0 : !1;
37608
37608
  }
37609
37609
  var V$ = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, W$ = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
37610
- function Zn(e, t) {
37610
+ function Xn(e, t) {
37611
37611
  var n = e, r = null, s, a, o;
37612
37612
  return Cl(e) ? n = {
37613
37613
  ms: e._milliseconds,
@@ -37615,7 +37615,7 @@ function Zn(e, t) {
37615
37615
  M: e._months
37616
37616
  } : Vr(e) || !isNaN(+e) ? (n = {}, t ? n[t] = +e : n.milliseconds = +e) : (r = V$.exec(e)) ? (s = r[1] === "-" ? -1 : 1, n = {
37617
37617
  y: 0,
37618
- d: Fe(r[ar]) * s,
37618
+ d: Fe(r[or]) * s,
37619
37619
  h: Fe(r[At]) * s,
37620
37620
  m: Fe(r[zn]) * s,
37621
37621
  s: Fe(r[_r]) * s,
@@ -37634,8 +37634,8 @@ function Zn(e, t) {
37634
37634
  nt(n.to)
37635
37635
  ), n = {}, n.ms = o.milliseconds, n.M = o.months), a = new Lu(n), Cl(e) && He(e, "_locale") && (a._locale = e._locale), Cl(e) && He(e, "_isValid") && (a._isValid = e._isValid), a;
37636
37636
  }
37637
- Zn.fn = Lu.prototype;
37638
- Zn.invalid = U$;
37637
+ Xn.fn = Lu.prototype;
37638
+ Xn.invalid = U$;
37639
37639
  function Fs(e, t) {
37640
37640
  var n = e && parseFloat(e.replace(",", "."));
37641
37641
  return (isNaN(n) ? 0 : n) * t;
@@ -37654,7 +37654,7 @@ function S2(e, t) {
37654
37654
  return r !== null && !isNaN(+r) && (n2(
37655
37655
  t,
37656
37656
  "moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
37657
- ), a = n, n = r, r = a), s = Zn(n, r), I2(this, s, e), this;
37657
+ ), a = n, n = r, r = a), s = Xn(n, r), I2(this, s, e), this;
37658
37658
  };
37659
37659
  }
37660
37660
  function I2(e, t, n, r) {
@@ -37830,13 +37830,13 @@ function fH(e) {
37830
37830
  return this.localeData().postformat(t);
37831
37831
  }
37832
37832
  function mH(e, t) {
37833
- return this.isValid() && (Wn(e) && e.isValid() || nt(e).isValid()) ? Zn({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
37833
+ return this.isValid() && (Wn(e) && e.isValid() || nt(e).isValid()) ? Xn({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
37834
37834
  }
37835
37835
  function hH(e) {
37836
37836
  return this.from(nt(), e);
37837
37837
  }
37838
37838
  function bH(e, t) {
37839
- return this.isValid() && (Wn(e) && e.isValid() || nt(e).isValid()) ? Zn({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
37839
+ return this.isValid() && (Wn(e) && e.isValid() || nt(e).isValid()) ? Xn({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
37840
37840
  }
37841
37841
  function yH(e) {
37842
37842
  return this.to(nt(), e);
@@ -38241,9 +38241,9 @@ ae("DD", rt, gn);
38241
38241
  ae("Do", function(e, t) {
38242
38242
  return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
38243
38243
  });
38244
- Xe(["D", "DD"], ar);
38244
+ Xe(["D", "DD"], or);
38245
38245
  Xe("Do", function(e, t) {
38246
- t[ar] = Fe(e.match(rt)[0]);
38246
+ t[or] = Fe(e.match(rt)[0]);
38247
38247
  });
38248
38248
  var R2 = Po("Date", !0);
38249
38249
  ue("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
@@ -38530,7 +38530,7 @@ function uG() {
38530
38530
  return this._milliseconds = Tr(this._milliseconds), this._days = Tr(this._days), this._months = Tr(this._months), e.milliseconds = Tr(e.milliseconds), e.seconds = Tr(e.seconds), e.minutes = Tr(e.minutes), e.hours = Tr(e.hours), e.months = Tr(e.months), e.years = Tr(e.years), this;
38531
38531
  }
38532
38532
  function $2(e, t, n, r) {
38533
- var s = Zn(t, n);
38533
+ var s = Xn(t, n);
38534
38534
  return e._milliseconds += r * s._milliseconds, e._days += r * s._days, e._months += r * s._months, e._bubble();
38535
38535
  }
38536
38536
  function dG(e, t) {
@@ -38591,7 +38591,7 @@ function Kr(e) {
38591
38591
  }
38592
38592
  var G2 = Kr("ms"), hG = Kr("s"), bG = Kr("m"), yG = Kr("h"), gG = Kr("d"), xG = Kr("w"), wG = Kr("M"), vG = Kr("Q"), EG = Kr("y"), kG = G2;
38593
38593
  function CG() {
38594
- return Zn(this);
38594
+ return Xn(this);
38595
38595
  }
38596
38596
  function TG(e) {
38597
38597
  return e = Dn(e), this.isValid() ? this[e + "s"]() : NaN;
@@ -38625,7 +38625,7 @@ function DG(e, t, n, r, s) {
38625
38625
  return s.relativeTime(t || 1, !!n, e, r);
38626
38626
  }
38627
38627
  function _G(e, t, n, r) {
38628
- var s = Zn(e).abs(), a = Sr(s.as("s")), o = Sr(s.as("m")), i = Sr(s.as("h")), c = Sr(s.as("d")), l = Sr(s.as("M")), u = Sr(s.as("w")), d = Sr(s.as("y")), f = a <= n.ss && ["s", a] || a < n.s && ["ss", a] || o <= 1 && ["m"] || o < n.m && ["mm", o] || i <= 1 && ["h"] || i < n.h && ["hh", i] || c <= 1 && ["d"] || c < n.d && ["dd", c];
38628
+ var s = Xn(e).abs(), a = Sr(s.as("s")), o = Sr(s.as("m")), i = Sr(s.as("h")), c = Sr(s.as("d")), l = Sr(s.as("M")), u = Sr(s.as("w")), d = Sr(s.as("y")), f = a <= n.ss && ["s", a] || a < n.s && ["ss", a] || o <= 1 && ["m"] || o < n.m && ["mm", o] || i <= 1 && ["h"] || i < n.h && ["hh", i] || c <= 1 && ["d"] || c < n.d && ["dd", c];
38629
38629
  return n.w != null && (f = f || u <= 1 && ["w"] || u < n.w && ["ww", u]), f = f || l <= 1 && ["M"] || l < n.M && ["MM", l] || d <= 1 && ["y"] || ["yy", d], f[2] = t, f[3] = +e > 0, f[4] = r, DG.apply(null, f);
38630
38630
  }
38631
38631
  function MG(e) {
@@ -38711,7 +38711,7 @@ Q.months = aG;
38711
38711
  Q.isDate = hc;
38712
38712
  Q.locale = bs;
38713
38713
  Q.invalid = Fu;
38714
- Q.duration = Zn;
38714
+ Q.duration = Xn;
38715
38715
  Q.isMoment = Wn;
38716
38716
  Q.weekdays = iG;
38717
38717
  Q.parseZone = sG;
@@ -39070,7 +39070,7 @@ function tj(e) {
39070
39070
  onBlur: B
39071
39071
  });
39072
39072
  }
39073
- const K2 = (e, t) => te(() => gf(e, t), [e, t]), rr = (e, t) => te(() => ys(e, t), [e, t]), xc = () => {
39073
+ const K2 = (e, t) => te(() => gf(e, t), [e, t]), sr = (e, t) => te(() => ys(e, t), [e, t]), xc = () => {
39074
39074
  const { chainId: e } = re();
39075
39075
  return te(() => bo(e), [e]);
39076
39076
  }, $d = (e) => {
@@ -39411,19 +39411,19 @@ const cm = () => {
39411
39411
  const { orders: t } = ju(), { useToken: n, config: r } = re(), s = ze(), a = te(
39412
39412
  () => t == null ? void 0 : t.all.find((C) => C.id === e),
39413
39413
  [t, e]
39414
- ) || {}, o = tx(a), i = n == null ? void 0 : n(a == null ? void 0 : a.srcTokenAddress), c = n == null ? void 0 : n(a == null ? void 0 : a.dstTokenAddress), l = rr(i == null ? void 0 : i.decimals, a == null ? void 0 : a.srcAmount), u = JV(i, c, a), d = Ve({
39414
+ ) || {}, o = tx(a), i = n == null ? void 0 : n(a == null ? void 0 : a.srcTokenAddress), c = n == null ? void 0 : n(a == null ? void 0 : a.dstTokenAddress), l = sr(i == null ? void 0 : i.decimals, a == null ? void 0 : a.srcAmount), u = JV(i, c, a), d = Ve({
39415
39415
  value: eW(i, c, a)
39416
39416
  }), f = Ve({
39417
- value: rr(i == null ? void 0 : i.decimals, a == null ? void 0 : a.srcAmountFilled)
39417
+ value: sr(i == null ? void 0 : i.decimals, a == null ? void 0 : a.srcAmountFilled)
39418
39418
  }), m = Ve({
39419
- value: rr(c == null ? void 0 : c.decimals, a == null ? void 0 : a.dstAmountFilled)
39420
- }), y = Ve({ value: a == null ? void 0 : a.progress, decimalScale: 2 }), g = rr(
39419
+ value: sr(c == null ? void 0 : c.decimals, a == null ? void 0 : a.dstAmountFilled)
39420
+ }), y = Ve({ value: a == null ? void 0 : a.progress, decimalScale: 2 }), g = sr(
39421
39421
  i == null ? void 0 : i.decimals,
39422
39422
  a == null ? void 0 : a.srcAmountPerTrade
39423
- ), E = rr(
39423
+ ), E = sr(
39424
39424
  c == null ? void 0 : c.decimals,
39425
39425
  a == null ? void 0 : a.dstMinAmountPerTrade
39426
- ), v = rr(
39426
+ ), v = sr(
39427
39427
  c == null ? void 0 : c.decimals,
39428
39428
  H(a == null ? void 0 : a.triggerPricePerTrade).multipliedBy(a == null ? void 0 : a.totalTradesAmount).toFixed()
39429
39429
  ), w = te(() => a ? a.version === 2 ? a.fillDelay : r.twapConfig ? fb(a, r.twapConfig) : 0 : 0, [a, r]), T = X2({
@@ -39535,7 +39535,7 @@ const cm = () => {
39535
39535
  a && a.forEach((l) => {
39536
39536
  var d;
39537
39537
  const u = s.find((f) => f.id === l.id);
39538
- u && u.progress !== l.progress && (o = !0, i.push(u), u.status === ft.Completed && ((d = e == null ? void 0 : e.onOrderFilled) == null || d.call(e, u)));
39538
+ !(u != null && u.twapAddress) && l.twapAddress && u && u.progress !== l.progress && (o = !0, i.push(u), u.status === ft.Completed && ((d = e == null ? void 0 : e.onOrderFilled) == null || d.call(e, u)));
39539
39539
  }), o && ((c = e == null ? void 0 : e.onOrdersProgressUpdate) == null || c.call(e, i), t == null || t());
39540
39540
  },
39541
39541
  [n, r, e, t]
@@ -40102,7 +40102,7 @@ function me(e) {
40102
40102
  function ne(e) {
40103
40103
  return (t) => ix(t, e);
40104
40104
  }
40105
- function sr(e) {
40105
+ function ar(e) {
40106
40106
  return (t) => () => {
40107
40107
  t(e);
40108
40108
  };
@@ -40119,7 +40119,7 @@ function j(e, ...t) {
40119
40119
  }
40120
40120
  };
40121
40121
  }
40122
- function or(e, t) {
40122
+ function ir(e, t) {
40123
40123
  return (n) => (r) => {
40124
40124
  n(t = e(t, r));
40125
40125
  };
@@ -40750,13 +40750,13 @@ const qW = {
40750
40750
  }, yr = je(
40751
40751
  ([{ log: e }, { recalcInProgress: t }]) => {
40752
40752
  const n = _e(), r = _e(), s = Lt(r, 0), a = _e(), o = _e(), i = q(0), c = q([]), l = q(void 0), u = q(void 0), d = q(void 0), f = q(void 0), m = q((A, h) => Es(A, qW[h])), y = q(void 0), g = q(0), E = NW(), v = Lt(
40753
- j(n, Ie(c, e, g), or(GW, E), tt()),
40753
+ j(n, Ie(c, e, g), ir(GW, E), tt()),
40754
40754
  E
40755
40755
  ), w = Lt(
40756
40756
  j(
40757
40757
  c,
40758
40758
  tt(),
40759
- or((A, h) => ({ current: h, prev: A.current }), {
40759
+ ir((A, h) => ({ current: h, prev: A.current }), {
40760
40760
  current: [],
40761
40761
  prev: []
40762
40762
  }),
@@ -40865,7 +40865,7 @@ const qW = {
40865
40865
  j(
40866
40866
  n,
40867
40867
  Ie(v),
40868
- or(
40868
+ ir(
40869
40869
  ({ sizes: A }, [h, b]) => ({
40870
40870
  changed: b !== A,
40871
40871
  sizes: b
@@ -40878,7 +40878,7 @@ const qW = {
40878
40878
  qe(
40879
40879
  j(
40880
40880
  i,
40881
- or(
40881
+ ir(
40882
40882
  (A, h) => ({ diff: A.prev - h, prev: h }),
40883
40883
  { diff: 0, prev: 0 }
40884
40884
  ),
@@ -41183,7 +41183,7 @@ const vc = je(
41183
41183
  o,
41184
41184
  Ie(c),
41185
41185
  me(([u, d]) => !!d),
41186
- sr(!1)
41186
+ ar(!1)
41187
41187
  ),
41188
41188
  i
41189
41189
  ), ce(
@@ -41191,7 +41191,7 @@ const vc = je(
41191
41191
  o,
41192
41192
  Ie(c),
41193
41193
  me(([u, d]) => !!d),
41194
- sr(!1)
41194
+ ar(!1)
41195
41195
  ),
41196
41196
  l
41197
41197
  ), qe(
@@ -41234,12 +41234,12 @@ const $i = "up", ti = "down", XW = "none", QW = {
41234
41234
  }, JW = 0, Ec = je(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: s, viewportHeight: a }]) => {
41235
41235
  const o = q(!1), i = q(!0), c = _e(), l = _e(), u = q(4), d = q(JW), f = Lt(
41236
41236
  j(
41237
- df(j(fe(s), ca(1), sr(!0)), j(fe(s), ca(1), sr(!1), _1(100))),
41237
+ df(j(fe(s), ca(1), ar(!0)), j(fe(s), ca(1), ar(!1), _1(100))),
41238
41238
  tt()
41239
41239
  ),
41240
41240
  !1
41241
41241
  ), m = Lt(
41242
- j(df(j(n, sr(!0)), j(n, sr(!1), _1(200))), tt()),
41242
+ j(df(j(n, ar(!0)), j(n, ar(!1), _1(200))), tt()),
41243
41243
  !1
41244
41244
  );
41245
41245
  ce(
@@ -41253,7 +41253,7 @@ const $i = "up", ti = "down", XW = "none", QW = {
41253
41253
  const y = pn(
41254
41254
  j(
41255
41255
  Et(r, fe(a), fe(t), fe(e), fe(u)),
41256
- or((w, [{ scrollHeight: T, scrollTop: C }, O, N, A, h]) => {
41256
+ ir((w, [{ scrollHeight: T, scrollTop: C }, O, N, A, h]) => {
41257
41257
  const b = C + O - T > -h, x = {
41258
41258
  scrollHeight: T,
41259
41259
  scrollTop: C,
@@ -41280,7 +41280,7 @@ const $i = "up", ti = "down", XW = "none", QW = {
41280
41280
  ), g = Lt(
41281
41281
  j(
41282
41282
  r,
41283
- or(
41283
+ ir(
41284
41284
  (w, { scrollHeight: T, scrollTop: C, viewportHeight: O }) => {
41285
41285
  if (vx(w.scrollHeight, T))
41286
41286
  return {
@@ -41324,20 +41324,20 @@ const $i = "up", ti = "down", XW = "none", QW = {
41324
41324
  r,
41325
41325
  ne(({ scrollTop: w }) => w),
41326
41326
  tt(),
41327
- or(
41327
+ ir(
41328
41328
  (w, T) => ct(m) ? { direction: w.direction, prevScrollTop: T } : { direction: T < w.prevScrollTop ? $i : ti, prevScrollTop: T },
41329
41329
  { direction: ti, prevScrollTop: 0 }
41330
41330
  ),
41331
41331
  ne((w) => w.direction)
41332
41332
  ),
41333
41333
  E
41334
- ), ce(j(r, Mr(50), sr(XW)), E);
41334
+ ), ce(j(r, Mr(50), ar(XW)), E);
41335
41335
  const v = q(0);
41336
41336
  return ce(
41337
41337
  j(
41338
41338
  f,
41339
41339
  me((w) => !w),
41340
- sr(0)
41340
+ ar(0)
41341
41341
  ),
41342
41342
  v
41343
41343
  ), ce(
@@ -41346,7 +41346,7 @@ const $i = "up", ti = "down", XW = "none", QW = {
41346
41346
  Mr(100),
41347
41347
  Ie(f),
41348
41348
  me(([w, T]) => !!T),
41349
- or(([w, T], [C]) => [T, C], [0, 0]),
41349
+ ir(([w, T], [C]) => [T, C], [0, 0]),
41350
41350
  ne(([w, T]) => T - w)
41351
41351
  ),
41352
41352
  v
@@ -41851,7 +41851,7 @@ const rq = (e, t) => typeof e == "function" ? j1(e(t)) : t && j1(e), sq = je(
41851
41851
  j(
41852
41852
  Et(fe(y), t, l),
41853
41853
  me(([O, , N]) => O && N),
41854
- or(
41854
+ ir(
41855
41855
  ({ value: O }, [, N]) => ({ refreshed: O === N, value: N }),
41856
41856
  { refreshed: !1, value: 0 }
41857
41857
  ),
@@ -42076,7 +42076,7 @@ const uq = Sx(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
42076
42076
  j(
42077
42077
  c,
42078
42078
  Ie(o),
42079
- or(
42079
+ ir(
42080
42080
  ([, v, w, T], [{ bottom: C, items: O, offsetBottom: N, totalCount: A }, h]) => {
42081
42081
  const b = C + N;
42082
42082
  let x = 0;
@@ -42838,7 +42838,7 @@ const Nq = /* @__PURE__ */ je(
42838
42838
  j(
42839
42839
  U,
42840
42840
  me((Y) => Y != null && Y.scrollTop > 0),
42841
- sr(0)
42841
+ ar(0)
42842
42842
  ),
42843
42843
  A
42844
42844
  ), qe(
@@ -42962,7 +42962,7 @@ const Nq = /* @__PURE__ */ je(
42962
42962
  j(
42963
42963
  fe(h),
42964
42964
  me(({ items: Y }) => Y.length > 0 && Y[0].index === 0),
42965
- sr(0),
42965
+ ar(0),
42966
42966
  tt()
42967
42967
  )
42968
42968
  ), de = pn(
@@ -43399,7 +43399,7 @@ const sY = () => {
43399
43399
  message: i("minTradeSizeError", { minTradeSize: `${u}` })
43400
43400
  };
43401
43401
  }, [e, t, n, o, r, a, i, s]);
43402
- }, dr = () => {
43402
+ }, Yn = () => {
43403
43403
  const { srcToken: e, srcUsd1Token: t, module: n, minChunkSizeUsd: r } = re(), s = J((g) => g.state.typedChunks), a = ga().fillDelay, o = J((g) => g.updateState), { amountWei: i, amountUI: c } = gr(), l = te(
43404
43404
  () => dw(a, c || "", t || "", r || 0),
43405
43405
  [c, t, r, a]
@@ -43408,7 +43408,7 @@ const sY = () => {
43408
43408
  typedChunks: g
43409
43409
  }),
43410
43410
  [o]
43411
- ), f = te(() => fw(i || "", u), [i, u]), m = rr(e == null ? void 0 : e.decimals, f), y = te(() => t ? H(m || "0").times(t || 0).toString() : "0", [m, t]);
43411
+ ), f = te(() => fw(i || "", u), [i, u]), m = sr(e == null ? void 0 : e.decimals, f), y = te(() => t ? H(m || "0").times(t || 0).toString() : "0", [m, t]);
43412
43412
  return {
43413
43413
  totalTrades: u,
43414
43414
  maxTrades: l,
@@ -43419,7 +43419,7 @@ const sY = () => {
43419
43419
  error: oY(u, l)
43420
43420
  };
43421
43421
  }, PK = () => {
43422
- const { srcToken: e, dstToken: t } = re(), n = ze(), { onChange: r, totalTrades: s, amountPerTradeUsd: a, amountPerTradeUI: o, error: i, maxTrades: c, amountPerTradeWei: l } = dr(), u = Ve({ value: o }), d = Ve({ value: a });
43422
+ const { srcToken: e, dstToken: t } = re(), n = ze(), { onChange: r, totalTrades: s, amountPerTradeUsd: a, amountPerTradeUI: o, error: i, maxTrades: c, amountPerTradeWei: l } = Yn(), u = Ve({ value: o }), d = Ve({ value: a });
43423
43423
  return {
43424
43424
  error: i,
43425
43425
  maxTrades: c,
@@ -43453,7 +43453,7 @@ const sY = () => {
43453
43453
  }
43454
43454
  }, [e, r, t, n]);
43455
43455
  }, km = () => {
43456
- const { module: e, callbacks: t } = re(), n = J((c) => c.state.typedDuration), r = J((c) => c.updateState), s = dr().totalTrades, a = ga().fillDelay, o = te(() => lw(e, s, a, n), [s, a, n, e]), i = iY(o);
43456
+ const { module: e, callbacks: t } = re(), n = J((c) => c.state.typedDuration), r = J((c) => c.updateState), s = Yn().totalTrades, a = ga().fillDelay, o = te(() => lw(e, s, a, n), [s, a, n, e]), i = iY(o);
43457
43457
  return {
43458
43458
  duration: o,
43459
43459
  setDuration: Ne((c) => {
@@ -43600,10 +43600,10 @@ const sY = () => {
43600
43600
  };
43601
43601
  }, [n, e, t, s, r]);
43602
43602
  }, uY = (e) => {
43603
- const { srcToken: t, dstToken: n, module: r } = re(), s = dr().amountPerTradeWei, a = J((i) => i.state.isMarketOrder), o = te(() => cw(r, s, e, (t == null ? void 0 : t.decimals) || 0), [e, s, a, t == null ? void 0 : t.decimals, r]);
43603
+ const { srcToken: t, dstToken: n, module: r } = re(), s = Yn().amountPerTradeWei, a = J((i) => i.state.isMarketOrder), o = te(() => cw(r, s, e, (t == null ? void 0 : t.decimals) || 0), [e, s, a, t == null ? void 0 : t.decimals, r]);
43604
43604
  return {
43605
43605
  amountWei: o,
43606
- amountUI: rr((n == null ? void 0 : n.decimals) || 0, o)
43606
+ amountUI: sr((n == null ? void 0 : n.decimals) || 0, o)
43607
43607
  };
43608
43608
  }, xa = () => {
43609
43609
  const { dstToken: e, marketPrice: t, module: n, callbacks: r } = re(), s = J((m) => m.updateState), a = cY(), o = J((m) => m.state.triggerPricePercent), i = o === void 0 ? a : o, c = n === xe.STOP_LOSS || n === xe.TAKE_PROFIT, l = Lx({
@@ -43651,7 +43651,8 @@ const sY = () => {
43651
43651
  isLoading: n || !t,
43652
43652
  isInverted: m,
43653
43653
  hide: w,
43654
- onInvert: y
43654
+ onInvert: y,
43655
+ totalTrades: Yn().totalTrades
43655
43656
  };
43656
43657
  }, dY = (e) => {
43657
43658
  const { module: t, marketPrice: n, typedInputAmount: r } = re(), s = ze(), { amountWei: a } = xa(), o = J((i) => i.state.isMarketOrder);
@@ -43712,17 +43713,17 @@ const sY = () => {
43712
43713
  const { module: e, marketPrice: t } = re(), n = kc().amountWei, r = xa().amountWei, s = J((a) => a.state.isMarketOrder);
43713
43714
  return e === xe.LIMIT || !s ? n || "" : e === xe.STOP_LOSS || e === xe.TAKE_PROFIT ? r || "" : t || "";
43714
43715
  }, Cc = () => {
43715
- const { srcToken: e, dstToken: t, dstUsd1Token: n } = re(), r = zx(), s = gr().amountWei, a = te(() => ow(s || "", r, (e == null ? void 0 : e.decimals) || 0), [s, r, e == null ? void 0 : e.decimals]), o = rr(t == null ? void 0 : t.decimals, a);
43716
+ const { srcToken: e, dstToken: t, dstUsd1Token: n } = re(), r = zx(), s = gr().amountWei, a = te(() => ow(s || "", r, (e == null ? void 0 : e.decimals) || 0), [s, r, e == null ? void 0 : e.decimals]), o = sr(t == null ? void 0 : t.decimals, a);
43716
43717
  return {
43717
43718
  amountWei: a,
43718
43719
  amountUI: o,
43719
43720
  usd: fo(o, n)
43720
43721
  };
43721
43722
  }, Ku = () => {
43722
- const { srcToken: e, dstToken: t, dstUsd1Token: n } = re(), r = zx(), s = dr().amountPerTradeWei, a = J((c) => c.state.isMarketOrder), o = te(
43723
+ const { srcToken: e, dstToken: t, dstUsd1Token: n } = re(), r = zx(), s = Yn().amountPerTradeWei, a = J((c) => c.state.isMarketOrder), o = te(
43723
43724
  () => iw(s, r, !!a, (e == null ? void 0 : e.decimals) || 0),
43724
43725
  [s, r, a, e == null ? void 0 : e.decimals]
43725
- ), i = rr(t == null ? void 0 : t.decimals, o);
43726
+ ), i = sr(t == null ? void 0 : t.decimals, o);
43726
43727
  return {
43727
43728
  amountWei: o,
43728
43729
  amountUI: i,
@@ -43751,7 +43752,7 @@ const sY = () => {
43751
43752
  onReset: v,
43752
43753
  usd: o,
43753
43754
  fromToken: g,
43754
- tradesAmount: dr().totalTrades,
43755
+ tradesAmount: Yn().totalTrades,
43755
43756
  toToken: E,
43756
43757
  percentage: i,
43757
43758
  isInverted: m,
@@ -43772,20 +43773,21 @@ const sY = () => {
43772
43773
  }, [e, r, n, t]);
43773
43774
  };
43774
43775
  function mY() {
43775
- const { marketPrice: e, marketPriceLoading: t, typedInputAmount: n } = re(), r = J((u) => u.state.swapExecution.status), s = fY(), { error: a } = xa(), { error: o } = kc(), { error: i } = dr(), { error: c } = ga(), { error: l } = km();
43776
+ const { marketPrice: e, marketPriceLoading: t, typedInputAmount: n, srcUsd1Token: r } = re(), s = J((d) => d.state.swapExecution.status), a = fY(), { error: o } = xa(), { error: i } = kc(), { error: c } = Yn(), { error: l } = ga(), { error: u } = km();
43776
43777
  return te(() => {
43777
- const u = Zl("ignore-errors");
43778
- if (r !== gt.LOADING && !(H(e || 0).isZero() || H(n || 0).isZero() || t || u))
43779
- return a || o || i || c || l || s;
43778
+ const d = Zl("ignore-errors");
43779
+ if (s !== gt.LOADING && !(H(e || 0).isZero() || H(n || 0).isZero() || H(r || "0").isZero() || t || d))
43780
+ return o || i || c || l || u || a;
43780
43781
  }, [
43781
43782
  e,
43782
43783
  t,
43783
43784
  n,
43784
- a,
43785
43785
  o,
43786
43786
  i,
43787
43787
  c,
43788
43788
  l,
43789
+ u,
43790
+ a,
43789
43791
  s,
43790
43792
  r
43791
43793
  ]);
@@ -43812,7 +43814,7 @@ const _K = () => {
43812
43814
  usd: fo(r, t)
43813
43815
  };
43814
43816
  }, yY = () => {
43815
- const { srcToken: e, dstToken: t, account: n, chainId: r, slippage: s, config: a, module: o } = re(), { amountWei: i } = gr(), { amountWei: c } = kc(), { amountPerTradeWei: l, totalTrades: u } = dr(), d = Am(), { amountWei: f } = Ku(), { pricePerChunkWei: m } = xa(), { milliseconds: y } = ga();
43817
+ const { srcToken: e, dstToken: t, account: n, chainId: r, slippage: s, config: a, module: o } = re(), { amountWei: i } = gr(), { amountWei: c } = kc(), { amountPerTradeWei: l, totalTrades: u } = Yn(), d = Am(), { amountWei: f } = Ku(), { pricePerChunkWei: m } = xa(), { milliseconds: y } = ga();
43816
43818
  return te(() => {
43817
43819
  var g;
43818
43820
  return {
@@ -43865,7 +43867,7 @@ const _K = () => {
43865
43867
  amountPerTradeUI: o,
43866
43868
  amountPerTradeUsd: i,
43867
43869
  totalTrades: c
43868
- } = dr(), { amountUI: l, usd: u } = xa(), d = Am(), { amountUI: f, usd: m } = kc(), {
43870
+ } = Yn(), { amountUI: l, usd: u } = xa(), d = Am(), { amountUI: f, usd: m } = kc(), {
43869
43871
  amount: y,
43870
43872
  percent: g,
43871
43873
  usd: E
@@ -44274,7 +44276,7 @@ const CY = () => {
44274
44276
  }
44275
44277
  });
44276
44278
  }, BY = () => {
44277
- const { account: e, chainId: t, srcToken: n, dstToken: r, module: s, slippage: a } = re(), o = xa(), i = gr().amountWei, c = dr().amountPerTradeWei, l = Am(), u = dr().totalTrades, d = ga().fillDelay, f = Ku().amountWei, m = J((y) => y.state.isMarketOrder);
44279
+ const { account: e, chainId: t, srcToken: n, dstToken: r, module: s, slippage: a } = re(), o = xa(), i = gr().amountWei, c = Yn().amountPerTradeWei, l = Am(), u = Yn().totalTrades, d = ga().fillDelay, f = Ku().amountWei, m = J((y) => y.state.isMarketOrder);
44278
44280
  return pr({
44279
44281
  mutationFn: async () => {
44280
44282
  yt.onRequestOrder({
@@ -44527,7 +44529,7 @@ export {
44527
44529
  Eu as c,
44528
44530
  qA as d,
44529
44531
  da as e,
44530
- ir as f,
44532
+ cr as f,
44531
44533
  Yf as g,
44532
44534
  BK as h,
44533
44535
  uc as i,