@lombard.finance/sdk-starknet 0.3.1 → 0.3.2

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/index2.js CHANGED
@@ -1059,7 +1059,7 @@ const b1 = /* @__PURE__ */ new Uint32Array([
1059
1059
  2756734187,
1060
1060
  3204031479,
1061
1061
  3329325298
1062
- ]), Hn = /* @__PURE__ */ new Uint32Array([
1062
+ ]), Ln = /* @__PURE__ */ new Uint32Array([
1063
1063
  1779033703,
1064
1064
  3144134277,
1065
1065
  1013904242,
@@ -1068,10 +1068,10 @@ const b1 = /* @__PURE__ */ new Uint32Array([
1068
1068
  2600822924,
1069
1069
  528734635,
1070
1070
  1541459225
1071
- ]), Ln = /* @__PURE__ */ new Uint32Array(64);
1071
+ ]), Dn = /* @__PURE__ */ new Uint32Array(64);
1072
1072
  let w1 = class extends y1 {
1073
1073
  constructor() {
1074
- super(64, 32, 8, !1), this.A = Hn[0] | 0, this.B = Hn[1] | 0, this.C = Hn[2] | 0, this.D = Hn[3] | 0, this.E = Hn[4] | 0, this.F = Hn[5] | 0, this.G = Hn[6] | 0, this.H = Hn[7] | 0;
1074
+ super(64, 32, 8, !1), this.A = Ln[0] | 0, this.B = Ln[1] | 0, this.C = Ln[2] | 0, this.D = Ln[3] | 0, this.E = Ln[4] | 0, this.F = Ln[5] | 0, this.G = Ln[6] | 0, this.H = Ln[7] | 0;
1075
1075
  }
1076
1076
  get() {
1077
1077
  const { A: t, B: n, C: r, D: a, E: o, F: i, G: s, H: c } = this;
@@ -1083,20 +1083,20 @@ let w1 = class extends y1 {
1083
1083
  }
1084
1084
  process(t, n) {
1085
1085
  for (let h = 0; h < 16; h++, n += 4)
1086
- Ln[h] = t.getUint32(n, !1);
1086
+ Dn[h] = t.getUint32(n, !1);
1087
1087
  for (let h = 16; h < 64; h++) {
1088
- const f = Ln[h - 15], l = Ln[h - 2], g = rn(f, 7) ^ rn(f, 18) ^ f >>> 3, b = rn(l, 17) ^ rn(l, 19) ^ l >>> 10;
1089
- Ln[h] = b + Ln[h - 7] + g + Ln[h - 16] | 0;
1088
+ const f = Dn[h - 15], l = Dn[h - 2], g = rn(f, 7) ^ rn(f, 18) ^ f >>> 3, b = rn(l, 17) ^ rn(l, 19) ^ l >>> 10;
1089
+ Dn[h] = b + Dn[h - 7] + g + Dn[h - 16] | 0;
1090
1090
  }
1091
1091
  let { A: r, B: a, C: o, D: i, E: s, F: c, G: u, H: d } = this;
1092
1092
  for (let h = 0; h < 64; h++) {
1093
- const f = rn(s, 6) ^ rn(s, 11) ^ rn(s, 25), l = d + f + m1(s, c, u) + b1[h] + Ln[h] | 0, b = (rn(r, 2) ^ rn(r, 13) ^ rn(r, 22)) + g1(r, a, o) | 0;
1093
+ const f = rn(s, 6) ^ rn(s, 11) ^ rn(s, 25), l = d + f + m1(s, c, u) + b1[h] + Dn[h] | 0, b = (rn(r, 2) ^ rn(r, 13) ^ rn(r, 22)) + g1(r, a, o) | 0;
1094
1094
  d = u, u = c, c = s, s = i + l | 0, i = o, o = a, a = r, r = l + b | 0;
1095
1095
  }
1096
1096
  r = r + this.A | 0, a = a + this.B | 0, o = o + this.C | 0, i = i + this.D | 0, s = s + this.E | 0, c = c + this.F | 0, u = u + this.G | 0, d = d + this.H | 0, this.set(r, a, o, i, s, c, u, d);
1097
1097
  }
1098
1098
  roundClean() {
1099
- Ln.fill(0);
1099
+ Dn.fill(0);
1100
1100
  }
1101
1101
  destroy() {
1102
1102
  this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
@@ -1386,7 +1386,7 @@ const q1 = /* @__PURE__ */ new Uint32Array([
1386
1386
  2756734187,
1387
1387
  3204031479,
1388
1388
  3329325298
1389
- ]), Dn = /* @__PURE__ */ new Uint32Array([
1389
+ ]), Fn = /* @__PURE__ */ new Uint32Array([
1390
1390
  1779033703,
1391
1391
  3144134277,
1392
1392
  1013904242,
@@ -1395,10 +1395,10 @@ const q1 = /* @__PURE__ */ new Uint32Array([
1395
1395
  2600822924,
1396
1396
  528734635,
1397
1397
  1541459225
1398
- ]), Fn = /* @__PURE__ */ new Uint32Array(64);
1398
+ ]), Mn = /* @__PURE__ */ new Uint32Array(64);
1399
1399
  class $1 extends V1 {
1400
1400
  constructor() {
1401
- super(64, 32, 8, !1), this.A = Dn[0] | 0, this.B = Dn[1] | 0, this.C = Dn[2] | 0, this.D = Dn[3] | 0, this.E = Dn[4] | 0, this.F = Dn[5] | 0, this.G = Dn[6] | 0, this.H = Dn[7] | 0;
1401
+ super(64, 32, 8, !1), this.A = Fn[0] | 0, this.B = Fn[1] | 0, this.C = Fn[2] | 0, this.D = Fn[3] | 0, this.E = Fn[4] | 0, this.F = Fn[5] | 0, this.G = Fn[6] | 0, this.H = Fn[7] | 0;
1402
1402
  }
1403
1403
  get() {
1404
1404
  const { A: t, B: n, C: r, D: a, E: o, F: i, G: s, H: c } = this;
@@ -1410,20 +1410,20 @@ class $1 extends V1 {
1410
1410
  }
1411
1411
  process(t, n) {
1412
1412
  for (let h = 0; h < 16; h++, n += 4)
1413
- Fn[h] = t.getUint32(n, !1);
1413
+ Mn[h] = t.getUint32(n, !1);
1414
1414
  for (let h = 16; h < 64; h++) {
1415
- const f = Fn[h - 15], l = Fn[h - 2], g = an(f, 7) ^ an(f, 18) ^ f >>> 3, b = an(l, 17) ^ an(l, 19) ^ l >>> 10;
1416
- Fn[h] = b + Fn[h - 7] + g + Fn[h - 16] | 0;
1415
+ const f = Mn[h - 15], l = Mn[h - 2], g = an(f, 7) ^ an(f, 18) ^ f >>> 3, b = an(l, 17) ^ an(l, 19) ^ l >>> 10;
1416
+ Mn[h] = b + Mn[h - 7] + g + Mn[h - 16] | 0;
1417
1417
  }
1418
1418
  let { A: r, B: a, C: o, D: i, E: s, F: c, G: u, H: d } = this;
1419
1419
  for (let h = 0; h < 64; h++) {
1420
- const f = an(s, 6) ^ an(s, 11) ^ an(s, 25), l = d + f + F1(s, c, u) + q1[h] + Fn[h] | 0, b = (an(r, 2) ^ an(r, 13) ^ an(r, 22)) + M1(r, a, o) | 0;
1420
+ const f = an(s, 6) ^ an(s, 11) ^ an(s, 25), l = d + f + F1(s, c, u) + q1[h] + Mn[h] | 0, b = (an(r, 2) ^ an(r, 13) ^ an(r, 22)) + M1(r, a, o) | 0;
1421
1421
  d = u, u = c, c = s, s = i + l | 0, i = o, o = a, a = r, r = l + b | 0;
1422
1422
  }
1423
1423
  r = r + this.A | 0, a = a + this.B | 0, o = o + this.C | 0, i = i + this.D | 0, s = s + this.E | 0, c = c + this.F | 0, u = u + this.G | 0, d = d + this.H | 0, this.set(r, a, o, i, s, c, u, d);
1424
1424
  }
1425
1425
  roundClean() {
1426
- Fn.fill(0);
1426
+ Mn.fill(0);
1427
1427
  }
1428
1428
  destroy() {
1429
1429
  this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
@@ -3758,7 +3758,7 @@ const { bytesToNumberBE: b2, hexToBytes: w2 } = i1, ln = {
3758
3758
  const { _tlv: t, _int: n } = ln, r = t.encode(2, n.encode(e.r)), a = t.encode(2, n.encode(e.s)), o = r + a;
3759
3759
  return t.encode(48, o);
3760
3760
  }
3761
- }, Xt = BigInt(0), ze = BigInt(1), Mn = BigInt(2), cs = BigInt(3), op = BigInt(4);
3761
+ }, Xt = BigInt(0), ze = BigInt(1), Vn = BigInt(2), cs = BigInt(3), op = BigInt(4);
3762
3762
  function x0(e) {
3763
3763
  const t = y2(e), { Fp: n } = t, r = k0(t.n, t.nBitLength), a = t.toBytes || ((b, y, _) => {
3764
3764
  const k = y.toAffine();
@@ -4272,9 +4272,9 @@ function T0(e) {
4272
4272
  function I0(e, t) {
4273
4273
  const n = e.ORDER;
4274
4274
  let r = Xt;
4275
- for (let g = n - ze; g % Mn === Xt; g /= Mn)
4275
+ for (let g = n - ze; g % Vn === Xt; g /= Vn)
4276
4276
  r += ze;
4277
- const a = r, o = Mn << a - ze - ze, i = o * Mn, s = (n - ze) / i, c = (s - ze) / Mn, u = i - ze, d = o, h = e.pow(t, s), f = e.pow(t, (s + ze) / Mn);
4277
+ const a = r, o = Vn << a - ze - ze, i = o * Vn, s = (n - ze) / i, c = (s - ze) / Vn, u = i - ze, d = o, h = e.pow(t, s), f = e.pow(t, (s + ze) / Vn);
4278
4278
  let l = (g, b) => {
4279
4279
  let y = h, _ = e.pow(b, u), k = e.sqr(_);
4280
4280
  k = e.mul(k, b);
@@ -4285,8 +4285,8 @@ function I0(e, t) {
4285
4285
  let A = e.eql(w, e.ONE);
4286
4286
  _ = e.mul(k, f), w = e.mul(v, y), k = e.cmov(_, k, A), v = e.cmov(w, v, A);
4287
4287
  for (let T = a; T > ze; T--) {
4288
- let I = T - Mn;
4289
- I = Mn << I - ze;
4288
+ let I = T - Vn;
4289
+ I = Vn << I - ze;
4290
4290
  let z = e.pow(v, I);
4291
4291
  const S = e.eql(z, e.ONE);
4292
4292
  _ = e.mul(k, y), y = e.mul(y, y), z = e.mul(v, y), k = e.cmov(_, k, S), v = e.cmov(z, v, S);
@@ -4635,8 +4635,8 @@ var tt = Y2, qr = {
4635
4635
  Z_DEFLATED: 8
4636
4636
  //Z_NULL: null // Use -1 or null inline, depending on var type
4637
4637
  };
4638
- const { _tr_init: J2, _tr_stored_block: Al, _tr_flush_block: Q2, _tr_tally: sr, _tr_align: eE } = K2, {
4639
- Z_NO_FLUSH: cr,
4638
+ const { _tr_init: J2, _tr_stored_block: Al, _tr_flush_block: Q2, _tr_tally: cr, _tr_align: eE } = K2, {
4639
+ Z_NO_FLUSH: ur,
4640
4640
  Z_PARTIAL_FLUSH: tE,
4641
4641
  Z_FULL_FLUSH: nE,
4642
4642
  Z_FINISH: Ft,
@@ -4654,7 +4654,7 @@ const { _tr_init: J2, _tr_stored_block: Al, _tr_flush_block: Q2, _tr_tally: sr,
4654
4654
  Z_DEFAULT_STRATEGY: cE,
4655
4655
  Z_UNKNOWN: uE,
4656
4656
  Z_DEFLATED: Ss
4657
- } = As, lE = 9, dE = 15, fE = 8, pE = 29, hE = 256, Sl = hE + 1 + pE, mE = 30, gE = 19, yE = 2 * Sl + 1, bE = 15, ve = 3, ar = 258, wn = ar + ve + 1, wE = 32, Ca = 42, xd = 57, jl = 69, xl = 73, Tl = 91, Il = 103, zr = 113, uo = 666, kt = 1, Ua = 2, $r = 3, Ha = 4, kE = 3, Pr = (e, t) => (e.msg = qr[t], t), mp = (e) => e * 2 - (e > 4 ? 9 : 0), rr = (e) => {
4657
+ } = As, lE = 9, dE = 15, fE = 8, pE = 29, hE = 256, Sl = hE + 1 + pE, mE = 30, gE = 19, yE = 2 * Sl + 1, bE = 15, ve = 3, or = 258, wn = or + ve + 1, wE = 32, Ca = 42, xd = 57, jl = 69, xl = 73, Tl = 91, Il = 103, zr = 113, uo = 666, kt = 1, Ua = 2, $r = 3, Ha = 4, kE = 3, Pr = (e, t) => (e.msg = qr[t], t), mp = (e) => e * 2 - (e > 4 ? 9 : 0), ar = (e) => {
4658
4658
  let t = e.length;
4659
4659
  for (; --t >= 0; )
4660
4660
  e[t] = 0;
@@ -4669,7 +4669,7 @@ const { _tr_init: J2, _tr_stored_block: Al, _tr_flush_block: Q2, _tr_tally: sr,
4669
4669
  n = e.prev[--r], e.prev[r] = n >= a ? n - a : 0;
4670
4670
  while (--t);
4671
4671
  };
4672
- let vE = (e, t, n) => (t << e.hash_shift ^ n) & e.hash_mask, ur = vE;
4672
+ let vE = (e, t, n) => (t << e.hash_shift ^ n) & e.hash_mask, lr = vE;
4673
4673
  const Ot = (e) => {
4674
4674
  const t = e.state;
4675
4675
  let n = t.pending;
@@ -4685,7 +4685,7 @@ const Ot = (e) => {
4685
4685
  return a > r && (a = r), a === 0 ? 0 : (e.avail_in -= a, t.set(e.input.subarray(e.next_in, e.next_in + a), n), e.state.wrap === 1 ? e.adler = Co(e.adler, t, a, n) : e.state.wrap === 2 && (e.adler = tt(e.adler, t, a, n)), e.next_in += a, e.total_in += a, a);
4686
4686
  }, $0 = (e, t) => {
4687
4687
  let n = e.max_chain_length, r = e.strstart, a, o, i = e.prev_length, s = e.nice_match;
4688
- const c = e.strstart > e.w_size - wn ? e.strstart - (e.w_size - wn) : 0, u = e.window, d = e.w_mask, h = e.prev, f = e.strstart + ar;
4688
+ const c = e.strstart > e.w_size - wn ? e.strstart - (e.w_size - wn) : 0, u = e.window, d = e.w_mask, h = e.prev, f = e.strstart + or;
4689
4689
  let l = u[r + i - 1], g = u[r + i];
4690
4690
  e.prev_length >= e.good_match && (n >>= 2), s > e.lookahead && (s = e.lookahead);
4691
4691
  do
@@ -4694,7 +4694,7 @@ const Ot = (e) => {
4694
4694
  do
4695
4695
  ;
4696
4696
  while (u[++r] === u[++a] && u[++r] === u[++a] && u[++r] === u[++a] && u[++r] === u[++a] && u[++r] === u[++a] && u[++r] === u[++a] && u[++r] === u[++a] && u[++r] === u[++a] && r < f);
4697
- if (o = ar - (f - r), r = f - ar, o > i) {
4697
+ if (o = or - (f - r), r = f - or, o > i) {
4698
4698
  if (e.match_start = t, i = o, o >= s)
4699
4699
  break;
4700
4700
  l = u[r + i - 1], g = u[r + i];
@@ -4709,37 +4709,37 @@ const Ot = (e) => {
4709
4709
  if (r = e.window_size - e.lookahead - e.strstart, e.strstart >= t + (t - wn) && (e.window.set(e.window.subarray(t, t + t - r), 0), e.match_start -= t, e.strstart -= t, e.block_start -= t, e.insert > e.strstart && (e.insert = e.strstart), _E(e), r += t), e.strm.avail_in === 0)
4710
4710
  break;
4711
4711
  if (n = Cl(e.strm, e.window, e.strstart + e.lookahead, r), e.lookahead += n, e.lookahead + e.insert >= ve)
4712
- for (a = e.strstart - e.insert, e.ins_h = e.window[a], e.ins_h = ur(e, e.ins_h, e.window[a + 1]); e.insert && (e.ins_h = ur(e, e.ins_h, e.window[a + ve - 1]), e.prev[a & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = a, a++, e.insert--, !(e.lookahead + e.insert < ve)); )
4712
+ for (a = e.strstart - e.insert, e.ins_h = e.window[a], e.ins_h = lr(e, e.ins_h, e.window[a + 1]); e.insert && (e.ins_h = lr(e, e.ins_h, e.window[a + ve - 1]), e.prev[a & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = a, a++, e.insert--, !(e.lookahead + e.insert < ve)); )
4713
4713
  ;
4714
4714
  } while (e.lookahead < wn && e.strm.avail_in !== 0);
4715
4715
  }, G0 = (e, t) => {
4716
4716
  let n = e.pending_buf_size - 5 > e.w_size ? e.w_size : e.pending_buf_size - 5, r, a, o, i = 0, s = e.strm.avail_in;
4717
4717
  do {
4718
- if (r = 65535, o = e.bi_valid + 42 >> 3, e.strm.avail_out < o || (o = e.strm.avail_out - o, a = e.strstart - e.block_start, r > a + e.strm.avail_in && (r = a + e.strm.avail_in), r > o && (r = o), r < n && (r === 0 && t !== Ft || t === cr || r !== a + e.strm.avail_in)))
4718
+ if (r = 65535, o = e.bi_valid + 42 >> 3, e.strm.avail_out < o || (o = e.strm.avail_out - o, a = e.strstart - e.block_start, r > a + e.strm.avail_in && (r = a + e.strm.avail_in), r > o && (r = o), r < n && (r === 0 && t !== Ft || t === ur || r !== a + e.strm.avail_in)))
4719
4719
  break;
4720
4720
  i = t === Ft && r === a + e.strm.avail_in ? 1 : 0, Al(e, 0, 0, i), e.pending_buf[e.pending - 4] = r, e.pending_buf[e.pending - 3] = r >> 8, e.pending_buf[e.pending - 2] = ~r, e.pending_buf[e.pending - 1] = ~r >> 8, Ot(e.strm), a && (a > r && (a = r), e.strm.output.set(e.window.subarray(e.block_start, e.block_start + a), e.strm.next_out), e.strm.next_out += a, e.strm.avail_out -= a, e.strm.total_out += a, e.block_start += a, r -= a), r && (Cl(e.strm, e.strm.output, e.strm.next_out, r), e.strm.next_out += r, e.strm.avail_out -= r, e.strm.total_out += r);
4721
4721
  } while (i === 0);
4722
- return s -= e.strm.avail_in, s && (s >= e.w_size ? (e.matches = 2, e.window.set(e.strm.input.subarray(e.strm.next_in - e.w_size, e.strm.next_in), 0), e.strstart = e.w_size, e.insert = e.strstart) : (e.window_size - e.strstart <= s && (e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, e.insert > e.strstart && (e.insert = e.strstart)), e.window.set(e.strm.input.subarray(e.strm.next_in - s, e.strm.next_in), e.strstart), e.strstart += s, e.insert += s > e.w_size - e.insert ? e.w_size - e.insert : s), e.block_start = e.strstart), e.high_water < e.strstart && (e.high_water = e.strstart), i ? Ha : t !== cr && t !== Ft && e.strm.avail_in === 0 && e.strstart === e.block_start ? Ua : (o = e.window_size - e.strstart, e.strm.avail_in > o && e.block_start >= e.w_size && (e.block_start -= e.w_size, e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, o += e.w_size, e.insert > e.strstart && (e.insert = e.strstart)), o > e.strm.avail_in && (o = e.strm.avail_in), o && (Cl(e.strm, e.window, e.strstart, o), e.strstart += o, e.insert += o > e.w_size - e.insert ? e.w_size - e.insert : o), e.high_water < e.strstart && (e.high_water = e.strstart), o = e.bi_valid + 42 >> 3, o = e.pending_buf_size - o > 65535 ? 65535 : e.pending_buf_size - o, n = o > e.w_size ? e.w_size : o, a = e.strstart - e.block_start, (a >= n || (a || t === Ft) && t !== cr && e.strm.avail_in === 0 && a <= o) && (r = a > o ? o : a, i = t === Ft && e.strm.avail_in === 0 && r === a ? 1 : 0, Al(e, e.block_start, r, i), e.block_start += r, Ot(e.strm)), i ? $r : kt);
4722
+ return s -= e.strm.avail_in, s && (s >= e.w_size ? (e.matches = 2, e.window.set(e.strm.input.subarray(e.strm.next_in - e.w_size, e.strm.next_in), 0), e.strstart = e.w_size, e.insert = e.strstart) : (e.window_size - e.strstart <= s && (e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, e.insert > e.strstart && (e.insert = e.strstart)), e.window.set(e.strm.input.subarray(e.strm.next_in - s, e.strm.next_in), e.strstart), e.strstart += s, e.insert += s > e.w_size - e.insert ? e.w_size - e.insert : s), e.block_start = e.strstart), e.high_water < e.strstart && (e.high_water = e.strstart), i ? Ha : t !== ur && t !== Ft && e.strm.avail_in === 0 && e.strstart === e.block_start ? Ua : (o = e.window_size - e.strstart, e.strm.avail_in > o && e.block_start >= e.w_size && (e.block_start -= e.w_size, e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, o += e.w_size, e.insert > e.strstart && (e.insert = e.strstart)), o > e.strm.avail_in && (o = e.strm.avail_in), o && (Cl(e.strm, e.window, e.strstart, o), e.strstart += o, e.insert += o > e.w_size - e.insert ? e.w_size - e.insert : o), e.high_water < e.strstart && (e.high_water = e.strstart), o = e.bi_valid + 42 >> 3, o = e.pending_buf_size - o > 65535 ? 65535 : e.pending_buf_size - o, n = o > e.w_size ? e.w_size : o, a = e.strstart - e.block_start, (a >= n || (a || t === Ft) && t !== ur && e.strm.avail_in === 0 && a <= o) && (r = a > o ? o : a, i = t === Ft && e.strm.avail_in === 0 && r === a ? 1 : 0, Al(e, e.block_start, r, i), e.block_start += r, Ot(e.strm)), i ? $r : kt);
4723
4723
  }, mc = (e, t) => {
4724
4724
  let n, r;
4725
4725
  for (; ; ) {
4726
4726
  if (e.lookahead < wn) {
4727
- if (Oa(e), e.lookahead < wn && t === cr)
4727
+ if (Oa(e), e.lookahead < wn && t === ur)
4728
4728
  return kt;
4729
4729
  if (e.lookahead === 0)
4730
4730
  break;
4731
4731
  }
4732
- if (n = 0, e.lookahead >= ve && (e.ins_h = ur(e, e.ins_h, e.window[e.strstart + ve - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), n !== 0 && e.strstart - n <= e.w_size - wn && (e.match_length = $0(e, n)), e.match_length >= ve)
4733
- if (r = sr(e, e.strstart - e.match_start, e.match_length - ve), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= ve) {
4732
+ if (n = 0, e.lookahead >= ve && (e.ins_h = lr(e, e.ins_h, e.window[e.strstart + ve - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), n !== 0 && e.strstart - n <= e.w_size - wn && (e.match_length = $0(e, n)), e.match_length >= ve)
4733
+ if (r = cr(e, e.strstart - e.match_start, e.match_length - ve), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= ve) {
4734
4734
  e.match_length--;
4735
4735
  do
4736
- e.strstart++, e.ins_h = ur(e, e.ins_h, e.window[e.strstart + ve - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart;
4736
+ e.strstart++, e.ins_h = lr(e, e.ins_h, e.window[e.strstart + ve - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart;
4737
4737
  while (--e.match_length !== 0);
4738
4738
  e.strstart++;
4739
4739
  } else
4740
- e.strstart += e.match_length, e.match_length = 0, e.ins_h = e.window[e.strstart], e.ins_h = ur(e, e.ins_h, e.window[e.strstart + 1]);
4740
+ e.strstart += e.match_length, e.match_length = 0, e.ins_h = e.window[e.strstart], e.ins_h = lr(e, e.ins_h, e.window[e.strstart + 1]);
4741
4741
  else
4742
- r = sr(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
4742
+ r = cr(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
4743
4743
  if (r && (Nt(e, !1), e.strm.avail_out === 0))
4744
4744
  return kt;
4745
4745
  }
@@ -4748,43 +4748,43 @@ const Ot = (e) => {
4748
4748
  let n, r, a;
4749
4749
  for (; ; ) {
4750
4750
  if (e.lookahead < wn) {
4751
- if (Oa(e), e.lookahead < wn && t === cr)
4751
+ if (Oa(e), e.lookahead < wn && t === ur)
4752
4752
  return kt;
4753
4753
  if (e.lookahead === 0)
4754
4754
  break;
4755
4755
  }
4756
- if (n = 0, e.lookahead >= ve && (e.ins_h = ur(e, e.ins_h, e.window[e.strstart + ve - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = ve - 1, n !== 0 && e.prev_length < e.max_lazy_match && e.strstart - n <= e.w_size - wn && (e.match_length = $0(e, n), e.match_length <= 5 && (e.strategy === oE || e.match_length === ve && e.strstart - e.match_start > 4096) && (e.match_length = ve - 1)), e.prev_length >= ve && e.match_length <= e.prev_length) {
4757
- a = e.strstart + e.lookahead - ve, r = sr(e, e.strstart - 1 - e.prev_match, e.prev_length - ve), e.lookahead -= e.prev_length - 1, e.prev_length -= 2;
4756
+ if (n = 0, e.lookahead >= ve && (e.ins_h = lr(e, e.ins_h, e.window[e.strstart + ve - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = ve - 1, n !== 0 && e.prev_length < e.max_lazy_match && e.strstart - n <= e.w_size - wn && (e.match_length = $0(e, n), e.match_length <= 5 && (e.strategy === oE || e.match_length === ve && e.strstart - e.match_start > 4096) && (e.match_length = ve - 1)), e.prev_length >= ve && e.match_length <= e.prev_length) {
4757
+ a = e.strstart + e.lookahead - ve, r = cr(e, e.strstart - 1 - e.prev_match, e.prev_length - ve), e.lookahead -= e.prev_length - 1, e.prev_length -= 2;
4758
4758
  do
4759
- ++e.strstart <= a && (e.ins_h = ur(e, e.ins_h, e.window[e.strstart + ve - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart);
4759
+ ++e.strstart <= a && (e.ins_h = lr(e, e.ins_h, e.window[e.strstart + ve - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart);
4760
4760
  while (--e.prev_length !== 0);
4761
4761
  if (e.match_available = 0, e.match_length = ve - 1, e.strstart++, r && (Nt(e, !1), e.strm.avail_out === 0))
4762
4762
  return kt;
4763
4763
  } else if (e.match_available) {
4764
- if (r = sr(e, 0, e.window[e.strstart - 1]), r && Nt(e, !1), e.strstart++, e.lookahead--, e.strm.avail_out === 0)
4764
+ if (r = cr(e, 0, e.window[e.strstart - 1]), r && Nt(e, !1), e.strstart++, e.lookahead--, e.strm.avail_out === 0)
4765
4765
  return kt;
4766
4766
  } else
4767
4767
  e.match_available = 1, e.strstart++, e.lookahead--;
4768
4768
  }
4769
- return e.match_available && (r = sr(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < ve - 1 ? e.strstart : ve - 1, t === Ft ? (Nt(e, !0), e.strm.avail_out === 0 ? $r : Ha) : e.sym_next && (Nt(e, !1), e.strm.avail_out === 0) ? kt : Ua;
4769
+ return e.match_available && (r = cr(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < ve - 1 ? e.strstart : ve - 1, t === Ft ? (Nt(e, !0), e.strm.avail_out === 0 ? $r : Ha) : e.sym_next && (Nt(e, !1), e.strm.avail_out === 0) ? kt : Ua;
4770
4770
  }, EE = (e, t) => {
4771
4771
  let n, r, a, o;
4772
4772
  const i = e.window;
4773
4773
  for (; ; ) {
4774
- if (e.lookahead <= ar) {
4775
- if (Oa(e), e.lookahead <= ar && t === cr)
4774
+ if (e.lookahead <= or) {
4775
+ if (Oa(e), e.lookahead <= or && t === ur)
4776
4776
  return kt;
4777
4777
  if (e.lookahead === 0)
4778
4778
  break;
4779
4779
  }
4780
4780
  if (e.match_length = 0, e.lookahead >= ve && e.strstart > 0 && (a = e.strstart - 1, r = i[a], r === i[++a] && r === i[++a] && r === i[++a])) {
4781
- o = e.strstart + ar;
4781
+ o = e.strstart + or;
4782
4782
  do
4783
4783
  ;
4784
4784
  while (r === i[++a] && r === i[++a] && r === i[++a] && r === i[++a] && r === i[++a] && r === i[++a] && r === i[++a] && r === i[++a] && a < o);
4785
- e.match_length = ar - (o - a), e.match_length > e.lookahead && (e.match_length = e.lookahead);
4785
+ e.match_length = or - (o - a), e.match_length > e.lookahead && (e.match_length = e.lookahead);
4786
4786
  }
4787
- if (e.match_length >= ve ? (n = sr(e, 1, e.match_length - ve), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (n = sr(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), n && (Nt(e, !1), e.strm.avail_out === 0))
4787
+ if (e.match_length >= ve ? (n = cr(e, 1, e.match_length - ve), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (n = cr(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), n && (Nt(e, !1), e.strm.avail_out === 0))
4788
4788
  return kt;
4789
4789
  }
4790
4790
  return e.insert = 0, t === Ft ? (Nt(e, !0), e.strm.avail_out === 0 ? $r : Ha) : e.sym_next && (Nt(e, !1), e.strm.avail_out === 0) ? kt : Ua;
@@ -4792,11 +4792,11 @@ const Ot = (e) => {
4792
4792
  let n;
4793
4793
  for (; ; ) {
4794
4794
  if (e.lookahead === 0 && (Oa(e), e.lookahead === 0)) {
4795
- if (t === cr)
4795
+ if (t === ur)
4796
4796
  return kt;
4797
4797
  break;
4798
4798
  }
4799
- if (e.match_length = 0, n = sr(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, n && (Nt(e, !1), e.strm.avail_out === 0))
4799
+ if (e.match_length = 0, n = cr(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, n && (Nt(e, !1), e.strm.avail_out === 0))
4800
4800
  return kt;
4801
4801
  }
4802
4802
  return e.insert = 0, t === Ft ? (Nt(e, !0), e.strm.avail_out === 0 ? $r : Ha) : e.sym_next && (Nt(e, !1), e.strm.avail_out === 0) ? kt : Ua;
@@ -4827,10 +4827,10 @@ const lo = [
4827
4827
  new on(32, 258, 258, 4096, ca)
4828
4828
  /* 9 max compression */
4829
4829
  ], SE = (e) => {
4830
- e.window_size = 2 * e.w_size, rr(e.head), e.max_lazy_match = lo[e.level].max_lazy, e.good_match = lo[e.level].good_length, e.nice_match = lo[e.level].nice_length, e.max_chain_length = lo[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = ve - 1, e.match_available = 0, e.ins_h = 0;
4830
+ e.window_size = 2 * e.w_size, ar(e.head), e.max_lazy_match = lo[e.level].max_lazy, e.good_match = lo[e.level].good_length, e.nice_match = lo[e.level].nice_length, e.max_chain_length = lo[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = ve - 1, e.match_available = 0, e.ins_h = 0;
4831
4831
  };
4832
4832
  function jE() {
4833
- this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = Ss, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Uint16Array(yE * 2), this.dyn_dtree = new Uint16Array((2 * mE + 1) * 2), this.bl_tree = new Uint16Array((2 * gE + 1) * 2), rr(this.dyn_ltree), rr(this.dyn_dtree), rr(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Uint16Array(bE + 1), this.heap = new Uint16Array(2 * Sl + 1), rr(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Uint16Array(2 * Sl + 1), rr(this.depth), this.sym_buf = 0, this.lit_bufsize = 0, this.sym_next = 0, this.sym_end = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
4833
+ this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = Ss, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Uint16Array(yE * 2), this.dyn_dtree = new Uint16Array((2 * mE + 1) * 2), this.bl_tree = new Uint16Array((2 * gE + 1) * 2), ar(this.dyn_ltree), ar(this.dyn_dtree), ar(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Uint16Array(bE + 1), this.heap = new Uint16Array(2 * Sl + 1), ar(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Uint16Array(2 * Sl + 1), ar(this.depth), this.sym_buf = 0, this.lit_bufsize = 0, this.sym_next = 0, this.sym_end = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
4834
4834
  }
4835
4835
  const Jo = (e) => {
4836
4836
  if (!e)
@@ -4942,11 +4942,11 @@ const Jo = (e) => {
4942
4942
  if (n.status = zr, Ot(e), n.pending !== 0)
4943
4943
  return n.last_flush = -1, ct;
4944
4944
  }
4945
- if (e.avail_in !== 0 || n.lookahead !== 0 || t !== cr && n.status !== uo) {
4945
+ if (e.avail_in !== 0 || n.lookahead !== 0 || t !== ur && n.status !== uo) {
4946
4946
  let a = n.level === 0 ? G0(n, t) : n.strategy === wi ? AE(n, t) : n.strategy === iE ? EE(n, t) : lo[n.level].func(n, t);
4947
4947
  if ((a === $r || a === Ha) && (n.status = uo), a === kt || a === $r)
4948
4948
  return e.avail_out === 0 && (n.last_flush = -1), ct;
4949
- if (a === Ua && (t === tE ? eE(n) : t !== pp && (Al(n, 0, 0, !1), t === nE && (rr(n.head), n.lookahead === 0 && (n.strstart = 0, n.block_start = 0, n.insert = 0))), Ot(e), e.avail_out === 0))
4949
+ if (a === Ua && (t === tE ? eE(n) : t !== pp && (Al(n, 0, 0, !1), t === nE && (ar(n.head), n.lookahead === 0 && (n.strstart = 0, n.block_start = 0, n.insert = 0))), Ot(e), e.avail_out === 0))
4950
4950
  return n.last_flush = -1, ct;
4951
4951
  }
4952
4952
  return t !== Ft ? ct : n.wrap <= 0 ? hp : (n.wrap === 2 ? (Te(n, e.adler & 255), Te(n, e.adler >> 8 & 255), Te(n, e.adler >> 16 & 255), Te(n, e.adler >> 24 & 255), Te(n, e.total_in & 255), Te(n, e.total_in >> 8 & 255), Te(n, e.total_in >> 16 & 255), Te(n, e.total_in >> 24 & 255)) : (qa(n, e.adler >>> 16), qa(n, e.adler & 65535)), Ot(e), n.wrap > 0 && (n.wrap = -n.wrap), n.pending !== 0 ? ct : hp);
@@ -4963,7 +4963,7 @@ const Jo = (e) => {
4963
4963
  if (a === 2 || a === 1 && r.status !== Ca || r.lookahead)
4964
4964
  return bn;
4965
4965
  if (a === 1 && (e.adler = Co(e.adler, t, n, 0)), r.wrap = 0, n >= r.w_size) {
4966
- a === 0 && (rr(r.head), r.strstart = 0, r.block_start = 0, r.insert = 0);
4966
+ a === 0 && (ar(r.head), r.strstart = 0, r.block_start = 0, r.insert = 0);
4967
4967
  let c = new Uint8Array(r.w_size);
4968
4968
  c.set(t.subarray(n - r.w_size, n), 0), t = c, n = r.w_size;
4969
4969
  }
@@ -4971,7 +4971,7 @@ const Jo = (e) => {
4971
4971
  for (e.avail_in = n, e.next_in = 0, e.input = t, Oa(r); r.lookahead >= ve; ) {
4972
4972
  let c = r.strstart, u = r.lookahead - (ve - 1);
4973
4973
  do
4974
- r.ins_h = ur(r, r.ins_h, r.window[c + ve - 1]), r.prev[c & r.w_mask] = r.head[r.ins_h], r.head[r.ins_h] = c, c++;
4974
+ r.ins_h = lr(r, r.ins_h, r.window[c + ve - 1]), r.prev[c & r.w_mask] = r.head[r.ins_h], r.head[r.ins_h] = c, c++;
4975
4975
  while (--u);
4976
4976
  r.strstart = c, r.lookahead = ve - 1, Oa(r);
4977
4977
  }
@@ -6178,7 +6178,7 @@ const ka = 2147483647, pn = 36, Id = 1, Po = 26, aS = 38, oS = 700, mb = 72, gb
6178
6178
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
6179
6179
  "invalid-input": "Invalid input"
6180
6180
  }, Ac = pn - Id, hn = Math.floor, Sc = String.fromCharCode;
6181
- function nr(e) {
6181
+ function rr(e) {
6182
6182
  throw new RangeError(uS[e]);
6183
6183
  }
6184
6184
  function lS(e, t) {
@@ -6223,21 +6223,21 @@ const wb = (e) => String.fromCodePoint(...e), dS = function(e) {
6223
6223
  let r = 0, a = gb, o = mb, i = e.lastIndexOf(yb);
6224
6224
  i < 0 && (i = 0);
6225
6225
  for (let s = 0; s < i; ++s)
6226
- e.charCodeAt(s) >= 128 && nr("not-basic"), t.push(e.charCodeAt(s));
6226
+ e.charCodeAt(s) >= 128 && rr("not-basic"), t.push(e.charCodeAt(s));
6227
6227
  for (let s = i > 0 ? i + 1 : 0; s < n; ) {
6228
6228
  const c = r;
6229
6229
  for (let d = 1, h = pn; ; h += pn) {
6230
- s >= n && nr("invalid-input");
6230
+ s >= n && rr("invalid-input");
6231
6231
  const f = dS(e.charCodeAt(s++));
6232
- f >= pn && nr("invalid-input"), f > hn((ka - r) / d) && nr("overflow"), r += f * d;
6232
+ f >= pn && rr("invalid-input"), f > hn((ka - r) / d) && rr("overflow"), r += f * d;
6233
6233
  const l = h <= o ? Id : h >= o + Po ? Po : h - o;
6234
6234
  if (f < l)
6235
6235
  break;
6236
6236
  const g = pn - l;
6237
- d > hn(ka / g) && nr("overflow"), d *= g;
6237
+ d > hn(ka / g) && rr("overflow"), d *= g;
6238
6238
  }
6239
6239
  const u = t.length + 1;
6240
- o = kb(r - c, u, c == 0), hn(r / u) > ka - a && nr("overflow"), a += hn(r / u), r %= u, t.splice(r++, 0, a);
6240
+ o = kb(r - c, u, c == 0), hn(r / u) > ka - a && rr("overflow"), a += hn(r / u), r %= u, t.splice(r++, 0, a);
6241
6241
  }
6242
6242
  return String.fromCodePoint(...t);
6243
6243
  }, Bd = function(e) {
@@ -6254,9 +6254,9 @@ const wb = (e) => String.fromCodePoint(...e), dS = function(e) {
6254
6254
  for (const d of e)
6255
6255
  d >= r && d < c && (c = d);
6256
6256
  const u = s + 1;
6257
- c - r > hn((ka - a) / u) && nr("overflow"), a += (c - r) * u, r = c;
6257
+ c - r > hn((ka - a) / u) && rr("overflow"), a += (c - r) * u, r = c;
6258
6258
  for (const d of e)
6259
- if (d < r && ++a > ka && nr("overflow"), d === r) {
6259
+ if (d < r && ++a > ka && rr("overflow"), d === r) {
6260
6260
  let h = a;
6261
6261
  for (let f = pn; ; f += pn) {
6262
6262
  const l = f <= o ? Id : f >= o + Po ? Po : f - o;
@@ -10347,10 +10347,10 @@ var Tx = class extends Error {
10347
10347
  }, Ix = {};
10348
10348
  Oe(Ix, {
10349
10349
  BlockStatus: () => zx,
10350
- BlockTag: () => lr,
10350
+ BlockTag: () => Rn,
10351
10351
  ETH_ADDRESS: () => mw,
10352
10352
  EntryPointType: () => Cx,
10353
- Literal: () => ir,
10353
+ Literal: () => sr,
10354
10354
  NON_ZERO_PREFIX: () => gw,
10355
10355
  OutsideExecutionTypesV1: () => yw,
10356
10356
  OutsideExecutionTypesV2: () => bw,
@@ -10362,7 +10362,7 @@ Oe(Ix, {
10362
10362
  TransactionType: () => Qt,
10363
10363
  TypedDataRevision: () => Ie,
10364
10364
  Uint: () => At,
10365
- ValidateType: () => or
10365
+ ValidateType: () => ir
10366
10366
  });
10367
10367
  var Cx = {
10368
10368
  EXTERNAL: "EXTERNAL",
@@ -10394,10 +10394,10 @@ var Cx = {
10394
10394
  ACCEPTED_ON_L1: "ACCEPTED_ON_L1",
10395
10395
  ACCEPTED_ON_L2: "ACCEPTED_ON_L2",
10396
10396
  REJECTED: "REJECTED"
10397
- }, lr = {
10397
+ }, Rn = {
10398
10398
  PENDING: "pending",
10399
10399
  LATEST: "latest"
10400
- }, or = {
10400
+ }, ir = {
10401
10401
  DEPLOY: "DEPLOY",
10402
10402
  CALL: "CALL",
10403
10403
  INVOKE: "INVOKE"
@@ -10411,7 +10411,7 @@ var Cx = {
10411
10411
  // This one is struct
10412
10412
  u512: "core::integer::u512"
10413
10413
  // This one is struct
10414
- }, ir = {
10414
+ }, sr = {
10415
10415
  ClassHash: "core::starknet::class_hash::ClassHash",
10416
10416
  ContractAddress: "core::starknet::contract_address::ContractAddress",
10417
10417
  Secp256k1Point: "core::starknet::secp256k1::Secp256k1Point",
@@ -10552,7 +10552,7 @@ function Wr(e) {
10552
10552
  function $d(e) {
10553
10553
  return typeof e == "boolean";
10554
10554
  }
10555
- function Nn(e) {
10555
+ function Un(e) {
10556
10556
  return typeof e == "bigint";
10557
10557
  }
10558
10558
  function Qe(e) {
@@ -10635,7 +10635,7 @@ function Nx(e) {
10635
10635
  return Ps(ee(n));
10636
10636
  }
10637
10637
  function Ho(e) {
10638
- return Wr(e) || Nn(e) || Qe(e) && ($t(e) || ta(e));
10638
+ return Wr(e) || Un(e) || Qe(e) && ($t(e) || ta(e));
10639
10639
  }
10640
10640
  var Ux = {};
10641
10641
  Oe(Ux, {
@@ -10660,7 +10660,7 @@ function Ke(e) {
10660
10660
  return ee(Wd(e));
10661
10661
  }
10662
10662
  function ni(e) {
10663
- return Wr(e) || Nn(e) ? ee(e) : $t(e) ? e : ta(e) ? ee(e) : Ke(e);
10663
+ return Wr(e) || Un(e) ? ee(e) : $t(e) ? e : ta(e) ? ee(e) : Ke(e);
10664
10664
  }
10665
10665
  function Rs(e) {
10666
10666
  const t = Ce(
@@ -10751,7 +10751,7 @@ Oe(Bw, {
10751
10751
  isCairo1Abi: () => ef,
10752
10752
  isCairo1Type: () => mr,
10753
10753
  isLen: () => Zr,
10754
- isTypeArray: () => Rn,
10754
+ isTypeArray: () => Nn,
10755
10755
  isTypeBool: () => Ls,
10756
10756
  isTypeByteArray: () => ii,
10757
10757
  isTypeBytes31: () => Ds,
@@ -10775,7 +10775,7 @@ Oe(Bw, {
10775
10775
  uint512: () => Jx
10776
10776
  });
10777
10777
  function Rr(e) {
10778
- if (Nn(e) || Number.isInteger(e))
10778
+ if (Un(e) || Number.isInteger(e))
10779
10779
  return e.toString();
10780
10780
  if (Qe(e)) {
10781
10781
  if ($t(e))
@@ -10979,7 +10979,7 @@ var ga = (1n << 128n) - 1n, zw = (1n << 256n) - 1n, Mx = 0n, Vx = 34028236692093
10979
10979
  Rr(this.limb3)
10980
10980
  ];
10981
10981
  }
10982
- }, ie(Jt, "abiSelector", "core::integer::u512"), Jt), Zr = (e) => /_len$/.test(e), Ba = (e) => e === "felt" || e === "core::felt252", Rn = (e) => /\*/.test(e) || e.startsWith("core::array::Array::") || e.startsWith("core::array::Span::"), gr = (e) => /^\(.*\)$/i.test(e), Pw = (e) => /\(.*\)/i.test(e) && e.includes(":"), oi = (e, t) => e in t, na = (e, t) => e in t, Us = (e) => e.startsWith("core::option::Option::"), Hs = (e) => e.startsWith("core::result::Result::"), Lo = (e) => Object.values(At).includes(e), Zx = (e) => Ye.isAbiType(e), Qd = (e) => Object.values(ir).includes(e), Ls = (e) => e === "core::bool", Yx = (e) => e === ir.ContractAddress, ra = (e) => e === mw, Ds = (e) => e === "core::bytes_31::bytes31", ii = (e) => e === "core::byte_array::ByteArray", Rw = (e) => e === "core::internal::bounded_int::BoundedInt::<0, 79228162514264337593543950335>", Fs = (e) => e === ir.Secp256k1Point, mr = (e) => e.includes("::"), _n = (e) => mr(e) ? e.substring(e.indexOf("<") + 1, e.lastIndexOf(">")) : e.replace("*", "");
10982
+ }, ie(Jt, "abiSelector", "core::integer::u512"), Jt), Zr = (e) => /_len$/.test(e), Ba = (e) => e === "felt" || e === "core::felt252", Nn = (e) => /\*/.test(e) || e.startsWith("core::array::Array::") || e.startsWith("core::array::Span::"), gr = (e) => /^\(.*\)$/i.test(e), Pw = (e) => /\(.*\)/i.test(e) && e.includes(":"), oi = (e, t) => e in t, na = (e, t) => e in t, Us = (e) => e.startsWith("core::option::Option::"), Hs = (e) => e.startsWith("core::result::Result::"), Lo = (e) => Object.values(At).includes(e), Zx = (e) => Ye.isAbiType(e), Qd = (e) => Object.values(sr).includes(e), Ls = (e) => e === "core::bool", Yx = (e) => e === sr.ContractAddress, ra = (e) => e === mw, Ds = (e) => e === "core::bytes_31::bytes31", ii = (e) => e === "core::byte_array::ByteArray", Rw = (e) => e === "core::internal::bounded_int::BoundedInt::<0, 79228162514264337593543950335>", Fs = (e) => e === sr.Secp256k1Point, mr = (e) => e.includes("::"), _n = (e) => mr(e) ? e.substring(e.indexOf("<") + 1, e.lastIndexOf(">")) : e.replace("*", "");
10983
10983
  function ef(e) {
10984
10984
  const { cairo: t } = tf(e);
10985
10985
  if (t === void 0)
@@ -11125,7 +11125,7 @@ var si = class {
11125
11125
  * @throws {Error} If the data type does not match the expected BigInt (BN) type.
11126
11126
  */
11127
11127
  isBN: (e, t, n) => {
11128
- if (!Nn(e[n]))
11128
+ if (!Un(e[n]))
11129
11129
  throw new Error(
11130
11130
  `Data and formatter mismatch on ${n}:${t[n]}, expected response data ${n}:${e[n]} to be BN instead it is ${typeof e[n]}`
11131
11131
  );
@@ -11461,7 +11461,7 @@ function cT(e, t, n, r) {
11461
11461
  const a = (h, f) => {
11462
11462
  if (wt.isTypeFixedArray(f))
11463
11463
  return s(h, f);
11464
- if (Rn(f))
11464
+ if (Nn(f))
11465
11465
  return i(h, f);
11466
11466
  if (na(f, r)) {
11467
11467
  const l = r[f];
@@ -11732,7 +11732,7 @@ function dT(e, t, n, r) {
11732
11732
  throw Error(`ABI expected parameter ${a} to be an array or an object, got ${i}`);
11733
11733
  return Dt(i, t.type, n, r);
11734
11734
  // Normal Array
11735
- case Rn(o):
11735
+ case Nn(o):
11736
11736
  if (!Array.isArray(i) && !ai(i))
11737
11737
  throw Error(`ABI expected parameter ${a} to be array or long string, got ${i}`);
11738
11738
  return Qe(i) && (i = Jd(i)), Dt(i, t.type, n, r);
@@ -11805,7 +11805,7 @@ function Bt(e, t, n, r) {
11805
11805
  a.push(Bt(e, o, n, r));
11806
11806
  return a;
11807
11807
  }
11808
- if (Rn(t.type)) {
11808
+ if (Nn(t.type)) {
11809
11809
  const a = [], o = { type: _n(t.type) }, i = BigInt(e.next().value);
11810
11810
  for (; a.length < i; )
11811
11811
  a.push(Bt(e, o, n, r));
@@ -11839,7 +11839,7 @@ function Bt(e, t, n, r) {
11839
11839
  const c = i != null && i.name ? i.name : s, d = { type: i != null && i.type ? i.type : i };
11840
11840
  return o[c] = Bt(e, d, n, r), o;
11841
11841
  }, {});
11842
- if (Rn(t.type)) {
11842
+ if (Nn(t.type)) {
11843
11843
  const a = [], o = { type: _n(t.type) }, i = BigInt(e.next().value);
11844
11844
  for (; a.length < i; )
11845
11845
  a.push(Bt(e, o, n, r));
@@ -11859,7 +11859,7 @@ function ps(e, t, n, r, a) {
11859
11859
  return Bt(e, t, n, r);
11860
11860
  case wt.isTypeFixedArray(i):
11861
11861
  return Bt(e, t, n, r);
11862
- case Rn(i):
11862
+ case Nn(i):
11863
11863
  if (mr(i))
11864
11864
  return Bt(e, t, n, r);
11865
11865
  const c = [];
@@ -11884,7 +11884,7 @@ function ps(e, t, n, r, a) {
11884
11884
  }
11885
11885
  var rf = (e, t) => {
11886
11886
  if (be(
11887
- Qe(e) || Wr(e) || Nn(e),
11887
+ Qe(e) || Wr(e) || Un(e),
11888
11888
  `Validate: arg ${t.name} should be a felt typed as (String, Number or BigInt)`
11889
11889
  ), Qe(e) && !$t(e)) return;
11890
11890
  const n = BigInt(e.toString(10));
@@ -11905,7 +11905,7 @@ var rf = (e, t) => {
11905
11905
  e <= Number.MAX_SAFE_INTEGER,
11906
11906
  "Validation: Parameter is too large to be typed as Number use (BigInt or String)"
11907
11907
  ), be(
11908
- Qe(e) || Wr(e) || Nn(e) || kn(e) && "low" in e && "high" in e || kn(e) && ["limb0", "limb1", "limb2", "limb3"].every((r) => r in e),
11908
+ Qe(e) || Wr(e) || Un(e) || kn(e) && "low" in e && "high" in e || kn(e) && ["limb0", "limb1", "limb2", "limb3"].every((r) => r in e),
11909
11909
  `Validate: arg ${t.name} of cairo type ${t.type} should be type (String, Number or BigInt), but is ${typeof e} ${e}.`
11910
11910
  );
11911
11911
  let n;
@@ -11962,28 +11962,28 @@ var rf = (e, t) => {
11962
11962
  `Validate: arg ${t.name} is ${t.type} should be in range 0 - 2^512-1`
11963
11963
  );
11964
11964
  break;
11965
- case ir.ClassHash:
11965
+ case sr.ClassHash:
11966
11966
  be(
11967
11967
  // from : https://github.com/starkware-libs/starknet-specs/blob/29bab650be6b1847c92d4461d4c33008b5e50b1a/api/starknet_api_openrpc.json#L1670
11968
11968
  n >= 0n && n <= 2n ** 252n - 1n,
11969
11969
  `Validate: arg ${t.name} cairo typed ${t.type} should be in range [0, 2^252-1]`
11970
11970
  );
11971
11971
  break;
11972
- case ir.ContractAddress:
11972
+ case sr.ContractAddress:
11973
11973
  be(
11974
11974
  // from : https://github.com/starkware-libs/starknet-specs/blob/29bab650be6b1847c92d4461d4c33008b5e50b1a/api/starknet_api_openrpc.json#L1245
11975
11975
  n >= 0n && n <= 2n ** 252n - 1n,
11976
11976
  `Validate: arg ${t.name} cairo typed ${t.type} should be in range [0, 2^252-1]`
11977
11977
  );
11978
11978
  break;
11979
- case ir.Secp256k1Point: {
11979
+ case sr.Secp256k1Point: {
11980
11980
  be(
11981
11981
  n >= 0n && n <= 2n ** 512n - 1n,
11982
11982
  `Validate: arg ${t.name} must be ${t.type} : a 512 bits number.`
11983
11983
  );
11984
11984
  break;
11985
11985
  }
11986
- case ir.U96: {
11986
+ case sr.U96: {
11987
11987
  be(
11988
11988
  n >= 0n && n <= 2n ** 96n - 1n,
11989
11989
  `Validate: arg ${t.name} must be ${t.type} : a 96 bits number.`
@@ -12033,7 +12033,7 @@ var rf = (e, t) => {
12033
12033
  }, Dw = (e, t) => {
12034
12034
  be(kn(e), `Validate: arg ${t.name} should be a tuple (defined as object)`);
12035
12035
  }, Fw = (e, t, n, r) => {
12036
- const a = Rn(t.type), o = a ? _n(t.type) : wt.getFixedArrayType(t.type);
12036
+ const a = Nn(t.type), o = a ? _n(t.type) : wt.getFixedArrayType(t.type);
12037
12037
  if (a && Ba(o) && Yd(e))
12038
12038
  return;
12039
12039
  let i = [];
@@ -12057,7 +12057,7 @@ var rf = (e, t) => {
12057
12057
  case gr(o):
12058
12058
  i.forEach((s) => Dw(s, { name: t.name }));
12059
12059
  break;
12060
- case Rn(o):
12060
+ case Nn(o):
12061
12061
  i.forEach(
12062
12062
  (s) => Fw(s, { name: "", type: o }, n, r)
12063
12063
  );
@@ -12135,7 +12135,7 @@ function vm(e, t, n, r) {
12135
12135
  case ii(o.type):
12136
12136
  pT(i, o);
12137
12137
  break;
12138
- case (Rn(o.type) || wt.isTypeFixedArray(o.type)):
12138
+ case (Nn(o.type) || wt.isTypeFixedArray(o.type)):
12139
12139
  Fw(i, o, n, r);
12140
12140
  break;
12141
12141
  case oi(o.type, n):
@@ -12173,19 +12173,19 @@ var xe = class po {
12173
12173
  * @param args ArgsOrCalldata - arguments that are passed to the method
12174
12174
  */
12175
12175
  validate(t, n, r = []) {
12176
- if (t !== or.DEPLOY) {
12176
+ if (t !== ir.DEPLOY) {
12177
12177
  const i = this.abi.filter((s) => {
12178
12178
  if (s.type !== "function") return !1;
12179
12179
  const c = s.stateMutability === "view" || s.state_mutability === "view";
12180
- return t === or.INVOKE ? !c : c;
12180
+ return t === ir.INVOKE ? !c : c;
12181
12181
  }).map((s) => s.name);
12182
12182
  be(
12183
12183
  i.includes(n),
12184
- `${t === or.INVOKE ? "invocable" : "viewable"} method not found in abi`
12184
+ `${t === ir.INVOKE ? "invocable" : "viewable"} method not found in abi`
12185
12185
  );
12186
12186
  }
12187
12187
  const a = this.abi.find(
12188
- (i) => t === or.DEPLOY ? i.name === n && i.type === "constructor" : i.name === n && i.type === "function"
12188
+ (i) => t === ir.DEPLOY ? i.name === n && i.type === "constructor" : i.name === n && i.type === "function"
12189
12189
  );
12190
12190
  if (km(n, r, a))
12191
12191
  return;
@@ -12249,7 +12249,7 @@ var xe = class po {
12249
12249
  let f = h;
12250
12250
  d === "entrypoint" ? f = Ke(f) : Yd(f) && (f = Ns(f));
12251
12251
  const l = Array.isArray(u) && d === "0" ? "$$len" : d;
12252
- if (Nn(f)) return [[`${c}${l}`, Mt(f)]];
12252
+ if (Un(f)) return [[`${c}${l}`, Mt(f)]];
12253
12253
  if (Object(f) === f) {
12254
12254
  const g = Object.getOwnPropertyNames(Object.getPrototypeOf(f)), b = [...Object.getOwnPropertyNames(f), ...g];
12255
12255
  if (b.includes("isSome") && b.includes("isNone")) {
@@ -12815,7 +12815,7 @@ function dk(e, t = 50) {
12815
12815
  return _o(e, t);
12816
12816
  }
12817
12817
  function sf(e, t = 50, n = 50) {
12818
- if (Nn(e))
12818
+ if (Un(e))
12819
12819
  return {
12820
12820
  l2_gas: { max_amount: "0x0", max_price_per_unit: "0x0" },
12821
12821
  l1_gas: { max_amount: "0x0", max_price_per_unit: "0x0" }
@@ -13085,7 +13085,7 @@ var Mo = (e, t = !1) => {
13085
13085
  /* SN_SEPOLIA */
13086
13086
  ], r = Math.floor(Math.random() * n.length);
13087
13087
  return n[r];
13088
- }, hk = Object.values(lr), je = class {
13088
+ }, hk = Object.values(Rn), je = class {
13089
13089
  /**
13090
13090
  * Create a Block instance
13091
13091
  * @param {BlockIdentifier} _identifier hex string and BigInt are detected as block hashes.
@@ -13120,7 +13120,7 @@ var Mo = (e, t = !1) => {
13120
13120
  this.tag = e;
13121
13121
  else
13122
13122
  throw TypeError(`Block identifier unmanaged: ${e}`);
13123
- else Nn(e) ? this.hash = ee(e) : Wr(e) ? this.number = e : this.tag = lr.PENDING;
13123
+ else Un(e) ? this.hash = ee(e) : Wr(e) ? this.number = e : this.tag = Rn.PENDING;
13124
13124
  if (Wr(this.number) && this.number < 0)
13125
13125
  throw TypeError(`Block number (${this.number}) can't be negative`);
13126
13126
  }
@@ -13262,7 +13262,7 @@ function df(e) {
13262
13262
  }
13263
13263
  var Mu = {
13264
13264
  headers: { "Content-Type": "application/json" },
13265
- blockIdentifier: lr.PENDING,
13265
+ blockIdentifier: Rn.PENDING,
13266
13266
  retries: 200
13267
13267
  }, nI = class {
13268
13268
  constructor(e) {
@@ -13758,7 +13758,7 @@ Oe(rI, {
13758
13758
  });
13759
13759
  var Vu = {
13760
13760
  headers: { "Content-Type": "application/json" },
13761
- blockIdentifier: lr.PENDING,
13761
+ blockIdentifier: Rn.PENDING,
13762
13762
  retries: 200
13763
13763
  }, yk = class {
13764
13764
  constructor(e) {
@@ -14759,8 +14759,8 @@ var jk = class {
14759
14759
  * ```
14760
14760
  */
14761
14761
  async waitForBlock(e = "pending", t = 5e3) {
14762
- if (e === lr.LATEST) return;
14763
- const n = await this.getBlockNumber(), r = e === lr.PENDING ? n + 1 : Number(ee(e));
14762
+ if (e === Rn.LATEST) return;
14763
+ const n = await this.getBlockNumber(), r = e === Rn.PENDING ? n + 1 : Number(ee(e));
14764
14764
  if (r <= n) return;
14765
14765
  const { retries: a } = this.channel;
14766
14766
  let o = a, i = !1;
@@ -14804,7 +14804,7 @@ var jk = class {
14804
14804
  * Utility method, same result can be achieved using getBlockWithTxHashes(BlockTag.pending);
14805
14805
  */
14806
14806
  async getPendingTransactions() {
14807
- const { transactions: e } = await this.getBlockWithTxHashes(lr.PENDING).then(
14807
+ const { transactions: e } = await this.getBlockWithTxHashes(Rn.PENDING).then(
14808
14808
  this.responseParser.parseGetBlockResponse
14809
14809
  );
14810
14810
  return Promise.all(e.map((t) => this.getTransactionByHash(t)));
@@ -15821,7 +15821,7 @@ var FI = class {
15821
15821
  blockIdentifier: o = void 0
15822
15822
  } = {}) {
15823
15823
  be(this.address !== null, "contract is not connected to an address");
15824
- const i = Oi(t, () => n ? (this.callData.validate(or.CALL, e, t), this.callData.compile(e, t)) : (xt.warn("Call skipped parsing but provided rawArgs, possible malfunction request"), t));
15824
+ const i = Oi(t, () => n ? (this.callData.validate(ir.CALL, e, t), this.callData.compile(e, t)) : (xt.warn("Call skipped parsing but provided rawArgs, possible malfunction request"), t));
15825
15825
  return this.providerOrAccount.callContract(
15826
15826
  {
15827
15827
  contractAddress: this.address,
@@ -15833,7 +15833,7 @@ var FI = class {
15833
15833
  }
15834
15834
  invoke(e, t = [], { parseRequest: n = !0, maxFee: r, nonce: a, signature: o } = {}) {
15835
15835
  be(this.address !== null, "contract is not connected to an address");
15836
- const i = Oi(t, () => n ? (this.callData.validate(or.INVOKE, e, t), this.callData.compile(e, t)) : (xt.warn("Invoke skipped parsing but provided rawArgs, possible malfunction request"), t)), s = {
15836
+ const i = Oi(t, () => n ? (this.callData.validate(ir.INVOKE, e, t), this.callData.compile(e, t)) : (xt.warn("Invoke skipped parsing but provided rawArgs, possible malfunction request"), t)), s = {
15837
15837
  contractAddress: this.address,
15838
15838
  calldata: i,
15839
15839
  entrypoint: e
@@ -15855,7 +15855,7 @@ var FI = class {
15855
15855
  );
15856
15856
  }
15857
15857
  async estimate(e, t = []) {
15858
- be(this.address !== null, "contract is not connected to an address"), Oi(t, () => !1) || this.callData.validate(or.INVOKE, e, t);
15858
+ be(this.address !== null, "contract is not connected to an address"), Oi(t, () => !1) || this.callData.validate(ir.INVOKE, e, t);
15859
15859
  const n = this.populate(e, t);
15860
15860
  if ("estimateInvokeFee" in this.providerOrAccount)
15861
15861
  return this.providerOrAccount.estimateInvokeFee(n);
@@ -15995,7 +15995,10 @@ const KI = (e) => new En(
15995
15995
  [_e.SN_SEPOLIA]: "https://starknet-sepolia.drpc.org"
15996
15996
  }, Cm = /* @__PURE__ */ new Map(), Yr = (e = _e.SN_MAIN) => {
15997
15997
  let t = Cm.get(e);
15998
- return t || (t = new lI({ nodeUrl: e3[e] }), Cm.set(e, t)), t;
15998
+ return t || (t = new lI({
15999
+ nodeUrl: e3[e],
16000
+ blockIdentifier: Rn.LATEST
16001
+ }), Cm.set(e, t)), t;
15999
16002
  }, gs = [
16000
16003
  {
16001
16004
  name: "LockingContract",
@@ -24424,7 +24427,7 @@ function e_() {
24424
24427
  return Kt.SHA256 = e.SHA256, Kt.sha256 = e.sha256, Kt.SHA224 = e.SHA224, Kt.sha224 = e.sha224, Kt;
24425
24428
  }
24426
24429
  var fg;
24427
- function Un() {
24430
+ function Hn() {
24428
24431
  return fg || (fg = 1, (function(e) {
24429
24432
  Object.defineProperty(e, "__esModule", { value: !0 }), e.taggedHash = e.TAGGED_HASH_PREFIXES = e.TAGS = e.hash256 = e.hash160 = e.sha256 = e.sha1 = e.ripemd160 = void 0;
24430
24433
  const t = /* @__PURE__ */ V3(), n = /* @__PURE__ */ q3(), r = /* @__PURE__ */ e_();
@@ -25189,7 +25192,7 @@ var yg;
25189
25192
  function Z3() {
25190
25193
  if (yg) return Za;
25191
25194
  yg = 1, Object.defineProperty(Za, "__esModule", { value: !0 }), Za.p2pkh = void 0;
25192
- const e = Un(), t = nn(), n = It(), r = ht(), a = yr(), o = wf(), i = n.OPS;
25195
+ const e = Hn(), t = nn(), n = It(), r = ht(), a = yr(), o = wf(), i = n.OPS;
25193
25196
  function s(c, u) {
25194
25197
  if (!c.address && !c.hash && !c.output && !c.pubkey && !c.input)
25195
25198
  throw new TypeError("Not enough data");
@@ -25289,7 +25292,7 @@ var Ja = {}, bg;
25289
25292
  function Y3() {
25290
25293
  if (bg) return Ja;
25291
25294
  bg = 1, Object.defineProperty(Ja, "__esModule", { value: !0 }), Ja.p2sh = void 0;
25292
- const e = Un(), t = nn(), n = It(), r = ht(), a = yr(), o = wf(), i = n.OPS;
25295
+ const e = Hn(), t = nn(), n = It(), r = ht(), a = yr(), o = wf(), i = n.OPS;
25293
25296
  function s(u, d) {
25294
25297
  return u.length !== d.length ? !1 : u.every((h, f) => h.equals(d[f]));
25295
25298
  }
@@ -25572,7 +25575,7 @@ var kg;
25572
25575
  function J3() {
25573
25576
  if (kg) return Qa;
25574
25577
  kg = 1, Object.defineProperty(Qa, "__esModule", { value: !0 }), Qa.p2wpkh = void 0;
25575
- const e = Un(), t = nn(), n = It(), r = ht(), a = yr(), o = Gs(), i = n.OPS, s = Buffer.alloc(0);
25578
+ const e = Hn(), t = nn(), n = It(), r = ht(), a = yr(), o = Gs(), i = n.OPS, s = Buffer.alloc(0);
25576
25579
  function c(u, d) {
25577
25580
  if (!u.address && !u.hash && !u.output && !u.pubkey && !u.witness)
25578
25581
  throw new TypeError("Not enough data");
@@ -25676,7 +25679,7 @@ var eo = {}, _g;
25676
25679
  function Q3() {
25677
25680
  if (_g) return eo;
25678
25681
  _g = 1, Object.defineProperty(eo, "__esModule", { value: !0 }), eo.p2wsh = void 0;
25679
- const e = Un(), t = nn(), n = It(), r = ht(), a = yr(), o = Gs(), i = n.OPS, s = Buffer.alloc(0);
25682
+ const e = Hn(), t = nn(), n = It(), r = ht(), a = yr(), o = Gs(), i = n.OPS, s = Buffer.alloc(0);
25680
25683
  function c(h, f) {
25681
25684
  return h.length !== f.length ? !1 : h.every((l, g) => l.equals(f[g]));
25682
25685
  }
@@ -26079,7 +26082,7 @@ var jg;
26079
26082
  function _f() {
26080
26083
  return jg || (jg = 1, (function(e) {
26081
26084
  Object.defineProperty(e, "__esModule", { value: !0 }), e.tweakKey = e.tapTweakHash = e.tapleafHash = e.findScriptPath = e.toHashTree = e.rootHashFromPath = e.MAX_TAPTREE_DEPTH = e.LEAF_VERSION_TAPSCRIPT = void 0;
26082
- const t = $s(), n = kf(), r = Un(), a = Ks(), o = ht();
26085
+ const t = $s(), n = kf(), r = Hn(), a = Ks(), o = ht();
26083
26086
  e.LEAF_VERSION_TAPSCRIPT = 192, e.MAX_TAPTREE_DEPTH = 128;
26084
26087
  const i = (b) => "left" in b && "right" in b;
26085
26088
  function s(b, y) {
@@ -26582,7 +26585,7 @@ var ao = {}, Og;
26582
26585
  function di() {
26583
26586
  if (Og) return ao;
26584
26587
  Og = 1, Object.defineProperty(ao, "__esModule", { value: !0 }), ao.Transaction = void 0;
26585
- const e = Ks(), t = Un(), n = It(), r = It(), a = ht(), { typeforce: o } = a;
26588
+ const e = Ks(), t = Hn(), n = It(), r = It(), a = ht(), { typeforce: o } = a;
26586
26589
  function i(y) {
26587
26590
  const _ = y.length;
26588
26591
  return e.varuint.encodingLength(_) + _;
@@ -26867,7 +26870,7 @@ var Bg;
26867
26870
  function aC() {
26868
26871
  if (Bg) return no;
26869
26872
  Bg = 1, Object.defineProperty(no, "__esModule", { value: !0 }), no.Block = void 0;
26870
- const e = Ks(), t = Un(), n = rC(), r = di(), a = ht(), { typeforce: o } = a, i = new TypeError(
26873
+ const e = Ks(), t = Hn(), n = rC(), r = di(), a = ht(), { typeforce: o } = a, i = new TypeError(
26871
26874
  "Cannot compute merkle root for zero transactions"
26872
26875
  ), s = new TypeError(
26873
26876
  "Cannot compute witness commit for non-segwit block"
@@ -27032,10 +27035,10 @@ function dt() {
27032
27035
  ];
27033
27036
  })(dl)), dl;
27034
27037
  }
27035
- var Vn = {}, Pg;
27038
+ var qn = {}, Pg;
27036
27039
  function oC() {
27037
- if (Pg) return Vn;
27038
- Pg = 1, Object.defineProperty(Vn, "__esModule", { value: !0 });
27040
+ if (Pg) return qn;
27041
+ Pg = 1, Object.defineProperty(qn, "__esModule", { value: !0 });
27039
27042
  const e = dt(), t = (i) => [...Array(i).keys()];
27040
27043
  function n(i) {
27041
27044
  if (i.key[0] !== e.GlobalTypes.GLOBAL_XPUB)
@@ -27061,7 +27064,7 @@ function oC() {
27061
27064
  }
27062
27065
  return c;
27063
27066
  }
27064
- Vn.decode = n;
27067
+ qn.decode = n;
27065
27068
  function r(i) {
27066
27069
  const s = Buffer.from([e.GlobalTypes.GLOBAL_XPUB]), c = Buffer.concat([s, i.extendedPubkey]), u = i.path.split("/"), d = Buffer.allocUnsafe(u.length * 4);
27067
27070
  i.masterFingerprint.copy(d, 0);
@@ -27075,17 +27078,17 @@ function oC() {
27075
27078
  value: d
27076
27079
  };
27077
27080
  }
27078
- Vn.encode = r, Vn.expected = "{ masterFingerprint: Buffer; extendedPubkey: Buffer; path: string; }";
27081
+ qn.encode = r, qn.expected = "{ masterFingerprint: Buffer; extendedPubkey: Buffer; path: string; }";
27079
27082
  function a(i) {
27080
27083
  const s = i.extendedPubkey, c = i.masterFingerprint, u = i.path;
27081
27084
  return Buffer.isBuffer(s) && s.length === 78 && [2, 3].indexOf(s[45]) > -1 && Buffer.isBuffer(c) && c.length === 4 && typeof u == "string" && !!u.match(/^m(\/\d+'?)*$/);
27082
27085
  }
27083
- Vn.check = a;
27086
+ qn.check = a;
27084
27087
  function o(i, s, c) {
27085
27088
  const u = s.extendedPubkey.toString("hex");
27086
27089
  return c.has(u) ? !1 : (c.add(u), i.filter((d) => d.extendedPubkey.equals(s.extendedPubkey)).length === 0);
27087
27090
  }
27088
- return Vn.canAddToArray = o, Vn;
27091
+ return qn.canAddToArray = o, qn;
27089
27092
  }
27090
27093
  var Di = {}, Rg;
27091
27094
  function iC() {
@@ -27100,10 +27103,10 @@ function iC() {
27100
27103
  }
27101
27104
  return Di.encode = t, Di;
27102
27105
  }
27103
- var qn = {}, Ng;
27106
+ var $n = {}, Ng;
27104
27107
  function sC() {
27105
- if (Ng) return qn;
27106
- Ng = 1, Object.defineProperty(qn, "__esModule", { value: !0 });
27108
+ if (Ng) return $n;
27109
+ Ng = 1, Object.defineProperty($n, "__esModule", { value: !0 });
27107
27110
  const e = dt();
27108
27111
  function t(o) {
27109
27112
  if (o.key[0] !== e.InputTypes.FINAL_SCRIPTSIG)
@@ -27112,27 +27115,27 @@ function sC() {
27112
27115
  );
27113
27116
  return o.value;
27114
27117
  }
27115
- qn.decode = t;
27118
+ $n.decode = t;
27116
27119
  function n(o) {
27117
27120
  return {
27118
27121
  key: Buffer.from([e.InputTypes.FINAL_SCRIPTSIG]),
27119
27122
  value: o
27120
27123
  };
27121
27124
  }
27122
- qn.encode = n, qn.expected = "Buffer";
27125
+ $n.encode = n, $n.expected = "Buffer";
27123
27126
  function r(o) {
27124
27127
  return Buffer.isBuffer(o);
27125
27128
  }
27126
- qn.check = r;
27129
+ $n.check = r;
27127
27130
  function a(o, i) {
27128
27131
  return !!o && !!i && o.finalScriptSig === void 0;
27129
27132
  }
27130
- return qn.canAdd = a, qn;
27133
+ return $n.canAdd = a, $n;
27131
27134
  }
27132
- var $n = {}, Ug;
27135
+ var Gn = {}, Ug;
27133
27136
  function cC() {
27134
- if (Ug) return $n;
27135
- Ug = 1, Object.defineProperty($n, "__esModule", { value: !0 });
27137
+ if (Ug) return Gn;
27138
+ Ug = 1, Object.defineProperty(Gn, "__esModule", { value: !0 });
27136
27139
  const e = dt();
27137
27140
  function t(o) {
27138
27141
  if (o.key[0] !== e.InputTypes.FINAL_SCRIPTWITNESS)
@@ -27141,27 +27144,27 @@ function cC() {
27141
27144
  );
27142
27145
  return o.value;
27143
27146
  }
27144
- $n.decode = t;
27147
+ Gn.decode = t;
27145
27148
  function n(o) {
27146
27149
  return {
27147
27150
  key: Buffer.from([e.InputTypes.FINAL_SCRIPTWITNESS]),
27148
27151
  value: o
27149
27152
  };
27150
27153
  }
27151
- $n.encode = n, $n.expected = "Buffer";
27154
+ Gn.encode = n, Gn.expected = "Buffer";
27152
27155
  function r(o) {
27153
27156
  return Buffer.isBuffer(o);
27154
27157
  }
27155
- $n.check = r;
27158
+ Gn.check = r;
27156
27159
  function a(o, i) {
27157
27160
  return !!o && !!i && o.finalScriptWitness === void 0;
27158
27161
  }
27159
- return $n.canAdd = a, $n;
27162
+ return Gn.canAdd = a, Gn;
27160
27163
  }
27161
- var Gn = {}, Hg;
27164
+ var Kn = {}, Hg;
27162
27165
  function uC() {
27163
- if (Hg) return Gn;
27164
- Hg = 1, Object.defineProperty(Gn, "__esModule", { value: !0 });
27166
+ if (Hg) return Kn;
27167
+ Hg = 1, Object.defineProperty(Kn, "__esModule", { value: !0 });
27165
27168
  const e = dt();
27166
27169
  function t(o) {
27167
27170
  if (o.key[0] !== e.InputTypes.NON_WITNESS_UTXO)
@@ -27170,27 +27173,27 @@ function uC() {
27170
27173
  );
27171
27174
  return o.value;
27172
27175
  }
27173
- Gn.decode = t;
27176
+ Kn.decode = t;
27174
27177
  function n(o) {
27175
27178
  return {
27176
27179
  key: Buffer.from([e.InputTypes.NON_WITNESS_UTXO]),
27177
27180
  value: o
27178
27181
  };
27179
27182
  }
27180
- Gn.encode = n, Gn.expected = "Buffer";
27183
+ Kn.encode = n, Kn.expected = "Buffer";
27181
27184
  function r(o) {
27182
27185
  return Buffer.isBuffer(o);
27183
27186
  }
27184
- Gn.check = r;
27187
+ Kn.check = r;
27185
27188
  function a(o, i) {
27186
27189
  return !!o && !!i && o.nonWitnessUtxo === void 0;
27187
27190
  }
27188
- return Gn.canAdd = a, Gn;
27191
+ return Kn.canAdd = a, Kn;
27189
27192
  }
27190
- var Kn = {}, Lg;
27193
+ var Wn = {}, Lg;
27191
27194
  function lC() {
27192
- if (Lg) return Kn;
27193
- Lg = 1, Object.defineProperty(Kn, "__esModule", { value: !0 });
27195
+ if (Lg) return Wn;
27196
+ Lg = 1, Object.defineProperty(Wn, "__esModule", { value: !0 });
27194
27197
  const e = dt();
27195
27198
  function t(i) {
27196
27199
  if (i.key[0] !== e.InputTypes.PARTIAL_SIG)
@@ -27206,7 +27209,7 @@ function lC() {
27206
27209
  signature: i.value
27207
27210
  };
27208
27211
  }
27209
- Kn.decode = t;
27212
+ Wn.decode = t;
27210
27213
  function n(i) {
27211
27214
  const s = Buffer.from([e.InputTypes.PARTIAL_SIG]);
27212
27215
  return {
@@ -27214,11 +27217,11 @@ function lC() {
27214
27217
  value: i.signature
27215
27218
  };
27216
27219
  }
27217
- Kn.encode = n, Kn.expected = "{ pubkey: Buffer; signature: Buffer; }";
27220
+ Wn.encode = n, Wn.expected = "{ pubkey: Buffer; signature: Buffer; }";
27218
27221
  function r(i) {
27219
27222
  return Buffer.isBuffer(i.pubkey) && Buffer.isBuffer(i.signature) && [33, 65].includes(i.pubkey.length) && [2, 3, 4].includes(i.pubkey[0]) && a(i.signature);
27220
27223
  }
27221
- Kn.check = r;
27224
+ Wn.check = r;
27222
27225
  function a(i) {
27223
27226
  if (!Buffer.isBuffer(i) || i.length < 9 || i[0] !== 48 || i.length !== i[1] + 3 || i[2] !== 2) return !1;
27224
27227
  const s = i[3];
@@ -27230,12 +27233,12 @@ function lC() {
27230
27233
  const u = s.pubkey.toString("hex");
27231
27234
  return c.has(u) ? !1 : (c.add(u), i.filter((d) => d.pubkey.equals(s.pubkey)).length === 0);
27232
27235
  }
27233
- return Kn.canAddToArray = o, Kn;
27236
+ return Wn.canAddToArray = o, Wn;
27234
27237
  }
27235
- var Wn = {}, Dg;
27238
+ var Xn = {}, Dg;
27236
27239
  function dC() {
27237
- if (Dg) return Wn;
27238
- Dg = 1, Object.defineProperty(Wn, "__esModule", { value: !0 });
27240
+ if (Dg) return Xn;
27241
+ Dg = 1, Object.defineProperty(Xn, "__esModule", { value: !0 });
27239
27242
  const e = dt();
27240
27243
  function t(o) {
27241
27244
  if (o.key[0] !== e.InputTypes.POR_COMMITMENT)
@@ -27244,27 +27247,27 @@ function dC() {
27244
27247
  );
27245
27248
  return o.value.toString("utf8");
27246
27249
  }
27247
- Wn.decode = t;
27250
+ Xn.decode = t;
27248
27251
  function n(o) {
27249
27252
  return {
27250
27253
  key: Buffer.from([e.InputTypes.POR_COMMITMENT]),
27251
27254
  value: Buffer.from(o, "utf8")
27252
27255
  };
27253
27256
  }
27254
- Wn.encode = n, Wn.expected = "string";
27257
+ Xn.encode = n, Xn.expected = "string";
27255
27258
  function r(o) {
27256
27259
  return typeof o == "string";
27257
27260
  }
27258
- Wn.check = r;
27261
+ Xn.check = r;
27259
27262
  function a(o, i) {
27260
27263
  return !!o && !!i && o.porCommitment === void 0;
27261
27264
  }
27262
- return Wn.canAdd = a, Wn;
27265
+ return Xn.canAdd = a, Xn;
27263
27266
  }
27264
- var Xn = {}, Fg;
27267
+ var Zn = {}, Fg;
27265
27268
  function fC() {
27266
- if (Fg) return Xn;
27267
- Fg = 1, Object.defineProperty(Xn, "__esModule", { value: !0 });
27269
+ if (Fg) return Zn;
27270
+ Fg = 1, Object.defineProperty(Zn, "__esModule", { value: !0 });
27268
27271
  const e = dt();
27269
27272
  function t(o) {
27270
27273
  if (o.key[0] !== e.InputTypes.SIGHASH_TYPE)
@@ -27273,7 +27276,7 @@ function fC() {
27273
27276
  );
27274
27277
  return o.value.readUInt32LE(0);
27275
27278
  }
27276
- Xn.decode = t;
27279
+ Zn.decode = t;
27277
27280
  function n(o) {
27278
27281
  const i = Buffer.from([e.InputTypes.SIGHASH_TYPE]), s = Buffer.allocUnsafe(4);
27279
27282
  return s.writeUInt32LE(o, 0), {
@@ -27281,20 +27284,20 @@ function fC() {
27281
27284
  value: s
27282
27285
  };
27283
27286
  }
27284
- Xn.encode = n, Xn.expected = "number";
27287
+ Zn.encode = n, Zn.expected = "number";
27285
27288
  function r(o) {
27286
27289
  return typeof o == "number";
27287
27290
  }
27288
- Xn.check = r;
27291
+ Zn.check = r;
27289
27292
  function a(o, i) {
27290
27293
  return !!o && !!i && o.sighashType === void 0;
27291
27294
  }
27292
- return Xn.canAdd = a, Xn;
27295
+ return Zn.canAdd = a, Zn;
27293
27296
  }
27294
- var Zn = {}, Mg;
27297
+ var Yn = {}, Mg;
27295
27298
  function pC() {
27296
- if (Mg) return Zn;
27297
- Mg = 1, Object.defineProperty(Zn, "__esModule", { value: !0 });
27299
+ if (Mg) return Yn;
27300
+ Mg = 1, Object.defineProperty(Yn, "__esModule", { value: !0 });
27298
27301
  const e = dt();
27299
27302
  function t(o) {
27300
27303
  if (o.key[0] !== e.InputTypes.TAP_KEY_SIG || o.key.length !== 1)
@@ -27307,24 +27310,24 @@ function pC() {
27307
27310
  );
27308
27311
  return o.value;
27309
27312
  }
27310
- Zn.decode = t;
27313
+ Yn.decode = t;
27311
27314
  function n(o) {
27312
27315
  return { key: Buffer.from([e.InputTypes.TAP_KEY_SIG]), value: o };
27313
27316
  }
27314
- Zn.encode = n, Zn.expected = "Buffer";
27317
+ Yn.encode = n, Yn.expected = "Buffer";
27315
27318
  function r(o) {
27316
27319
  return Buffer.isBuffer(o) && (o.length === 64 || o.length === 65);
27317
27320
  }
27318
- Zn.check = r;
27321
+ Yn.check = r;
27319
27322
  function a(o, i) {
27320
27323
  return !!o && !!i && o.tapKeySig === void 0;
27321
27324
  }
27322
- return Zn.canAdd = a, Zn;
27325
+ return Yn.canAdd = a, Yn;
27323
27326
  }
27324
- var Yn = {}, Vg;
27327
+ var Jn = {}, Vg;
27325
27328
  function hC() {
27326
- if (Vg) return Yn;
27327
- Vg = 1, Object.defineProperty(Yn, "__esModule", { value: !0 });
27329
+ if (Vg) return Jn;
27330
+ Vg = 1, Object.defineProperty(Jn, "__esModule", { value: !0 });
27328
27331
  const e = dt();
27329
27332
  function t(o) {
27330
27333
  if (o.key[0] !== e.InputTypes.TAP_LEAF_SCRIPT)
@@ -27343,7 +27346,7 @@ function hC() {
27343
27346
  const s = o.value.slice(0, -1);
27344
27347
  return { controlBlock: o.key.slice(1), script: s, leafVersion: i };
27345
27348
  }
27346
- Yn.decode = t;
27349
+ Jn.decode = t;
27347
27350
  function n(o) {
27348
27351
  const i = Buffer.from([e.InputTypes.TAP_LEAF_SCRIPT]), s = Buffer.from([o.leafVersion]);
27349
27352
  return {
@@ -27351,21 +27354,21 @@ function hC() {
27351
27354
  value: Buffer.concat([o.script, s])
27352
27355
  };
27353
27356
  }
27354
- Yn.encode = n, Yn.expected = "{ controlBlock: Buffer; leafVersion: number, script: Buffer; }";
27357
+ Jn.encode = n, Jn.expected = "{ controlBlock: Buffer; leafVersion: number, script: Buffer; }";
27355
27358
  function r(o) {
27356
27359
  return Buffer.isBuffer(o.controlBlock) && (o.controlBlock.length - 1) % 32 === 0 && (o.controlBlock[0] & 254) === o.leafVersion && Buffer.isBuffer(o.script);
27357
27360
  }
27358
- Yn.check = r;
27361
+ Jn.check = r;
27359
27362
  function a(o, i, s) {
27360
27363
  const c = i.controlBlock.toString("hex");
27361
27364
  return s.has(c) ? !1 : (s.add(c), o.filter((u) => u.controlBlock.equals(i.controlBlock)).length === 0);
27362
27365
  }
27363
- return Yn.canAddToArray = a, Yn;
27366
+ return Jn.canAddToArray = a, Jn;
27364
27367
  }
27365
- var Jn = {}, qg;
27368
+ var Qn = {}, qg;
27366
27369
  function mC() {
27367
- if (qg) return Jn;
27368
- qg = 1, Object.defineProperty(Jn, "__esModule", { value: !0 });
27370
+ if (qg) return Qn;
27371
+ qg = 1, Object.defineProperty(Qn, "__esModule", { value: !0 });
27369
27372
  const e = dt();
27370
27373
  function t(o) {
27371
27374
  if (o.key[0] !== e.InputTypes.TAP_MERKLE_ROOT || o.key.length !== 1)
@@ -27376,24 +27379,24 @@ function mC() {
27376
27379
  throw new Error("Decode Error: tapMerkleRoot not a 32-byte hash");
27377
27380
  return o.value;
27378
27381
  }
27379
- Jn.decode = t;
27382
+ Qn.decode = t;
27380
27383
  function n(o) {
27381
27384
  return { key: Buffer.from([e.InputTypes.TAP_MERKLE_ROOT]), value: o };
27382
27385
  }
27383
- Jn.encode = n, Jn.expected = "Buffer";
27386
+ Qn.encode = n, Qn.expected = "Buffer";
27384
27387
  function r(o) {
27385
27388
  return Buffer.isBuffer(o) && o.length === 32;
27386
27389
  }
27387
- Jn.check = r;
27390
+ Qn.check = r;
27388
27391
  function a(o, i) {
27389
27392
  return !!o && !!i && o.tapMerkleRoot === void 0;
27390
27393
  }
27391
- return Jn.canAdd = a, Jn;
27394
+ return Qn.canAdd = a, Qn;
27392
27395
  }
27393
- var Qn = {}, $g;
27396
+ var er = {}, $g;
27394
27397
  function gC() {
27395
- if ($g) return Qn;
27396
- $g = 1, Object.defineProperty(Qn, "__esModule", { value: !0 });
27398
+ if ($g) return er;
27399
+ $g = 1, Object.defineProperty(er, "__esModule", { value: !0 });
27397
27400
  const e = dt();
27398
27401
  function t(o) {
27399
27402
  if (o.key[0] !== e.InputTypes.TAP_SCRIPT_SIG)
@@ -27415,7 +27418,7 @@ function gC() {
27415
27418
  signature: o.value
27416
27419
  };
27417
27420
  }
27418
- Qn.decode = t;
27421
+ er.decode = t;
27419
27422
  function n(o) {
27420
27423
  const i = Buffer.from([e.InputTypes.TAP_SCRIPT_SIG]);
27421
27424
  return {
@@ -27423,20 +27426,20 @@ function gC() {
27423
27426
  value: o.signature
27424
27427
  };
27425
27428
  }
27426
- Qn.encode = n, Qn.expected = "{ pubkey: Buffer; leafHash: Buffer; signature: Buffer; }";
27429
+ er.encode = n, er.expected = "{ pubkey: Buffer; leafHash: Buffer; signature: Buffer; }";
27427
27430
  function r(o) {
27428
27431
  return Buffer.isBuffer(o.pubkey) && Buffer.isBuffer(o.leafHash) && Buffer.isBuffer(o.signature) && o.pubkey.length === 32 && o.leafHash.length === 32 && (o.signature.length === 64 || o.signature.length === 65);
27429
27432
  }
27430
- Qn.check = r;
27433
+ er.check = r;
27431
27434
  function a(o, i, s) {
27432
27435
  const c = i.pubkey.toString("hex") + i.leafHash.toString("hex");
27433
27436
  return s.has(c) ? !1 : (s.add(c), o.filter(
27434
27437
  (u) => u.pubkey.equals(i.pubkey) && u.leafHash.equals(i.leafHash)
27435
27438
  ).length === 0);
27436
27439
  }
27437
- return Qn.canAddToArray = a, Qn;
27440
+ return er.canAddToArray = a, er;
27438
27441
  }
27439
- var er = {}, Cn = {}, pa = {}, Gg;
27442
+ var tr = {}, Cn = {}, pa = {}, Gg;
27440
27443
  function oa() {
27441
27444
  if (Gg) return pa;
27442
27445
  Gg = 1, Object.defineProperty(pa, "__esModule", { value: !0 });
@@ -27522,8 +27525,8 @@ function vf() {
27522
27525
  }
27523
27526
  var Wg;
27524
27527
  function yC() {
27525
- if (Wg) return er;
27526
- Wg = 1, Object.defineProperty(er, "__esModule", { value: !0 });
27528
+ if (Wg) return tr;
27529
+ Wg = 1, Object.defineProperty(tr, "__esModule", { value: !0 });
27527
27530
  const e = dt(), t = vf(), n = oa();
27528
27531
  function r(s) {
27529
27532
  if (s.key[0] !== e.InputTypes.WITNESS_UTXO)
@@ -27542,7 +27545,7 @@ function yC() {
27542
27545
  value: c
27543
27546
  };
27544
27547
  }
27545
- er.decode = r;
27548
+ tr.decode = r;
27546
27549
  function a(s) {
27547
27550
  const { script: c, value: u } = s, d = n.encodingLength(c.length), h = Buffer.allocUnsafe(8 + d + c.length);
27548
27551
  return t.writeUInt64LE(h, u, 0), n.encode(c.length, h, 8), c.copy(h, 8 + d), {
@@ -27550,20 +27553,20 @@ function yC() {
27550
27553
  value: h
27551
27554
  };
27552
27555
  }
27553
- er.encode = a, er.expected = "{ script: Buffer; value: number; }";
27556
+ tr.encode = a, tr.expected = "{ script: Buffer; value: number; }";
27554
27557
  function o(s) {
27555
27558
  return Buffer.isBuffer(s.script) && typeof s.value == "number";
27556
27559
  }
27557
- er.check = o;
27560
+ tr.check = o;
27558
27561
  function i(s, c) {
27559
27562
  return !!s && !!c && s.witnessUtxo === void 0;
27560
27563
  }
27561
- return er.canAdd = i, er;
27564
+ return tr.canAdd = i, tr;
27562
27565
  }
27563
- var tr = {}, Xg;
27566
+ var nr = {}, Xg;
27564
27567
  function bC() {
27565
- if (Xg) return tr;
27566
- Xg = 1, Object.defineProperty(tr, "__esModule", { value: !0 });
27568
+ if (Xg) return nr;
27569
+ Xg = 1, Object.defineProperty(nr, "__esModule", { value: !0 });
27567
27570
  const e = dt(), t = oa();
27568
27571
  function n(i) {
27569
27572
  if (i.key[0] !== e.OutputTypes.TAP_TREE || i.key.length !== 1)
@@ -27582,7 +27585,7 @@ function bC() {
27582
27585
  }
27583
27586
  return { leaves: c };
27584
27587
  }
27585
- tr.decode = n;
27588
+ nr.decode = n;
27586
27589
  function r(i) {
27587
27590
  const s = Buffer.from([e.OutputTypes.TAP_TREE]), c = [].concat(
27588
27591
  ...i.leaves.map((u) => [
@@ -27596,17 +27599,17 @@ function bC() {
27596
27599
  value: Buffer.concat(c)
27597
27600
  };
27598
27601
  }
27599
- tr.encode = r, tr.expected = "{ leaves: [{ depth: number; leafVersion: number, script: Buffer; }] }";
27602
+ nr.encode = r, nr.expected = "{ leaves: [{ depth: number; leafVersion: number, script: Buffer; }] }";
27600
27603
  function a(i) {
27601
27604
  return Array.isArray(i.leaves) && i.leaves.every(
27602
27605
  (s) => s.depth >= 0 && s.depth <= 128 && (s.leafVersion & 254) === s.leafVersion && Buffer.isBuffer(s.script)
27603
27606
  );
27604
27607
  }
27605
- tr.check = a;
27608
+ nr.check = a;
27606
27609
  function o(i, s) {
27607
27610
  return !!i && !!s && i.tapTree === void 0;
27608
27611
  }
27609
- return tr.canAdd = o, tr;
27612
+ return nr.canAdd = o, nr;
27610
27613
  }
27611
27614
  var Fi = {}, Zg;
27612
27615
  function n_() {
@@ -28525,7 +28528,7 @@ var Ue = {}, Ne = {}, uy;
28525
28528
  function Zl() {
28526
28529
  if (uy) return Ne;
28527
28530
  uy = 1, Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.signatureBlocksAction = Ne.checkInputForSig = Ne.pubkeyInScript = Ne.pubkeyPositionInScript = Ne.witnessStackToScriptWitness = Ne.isP2TR = Ne.isP2SHScript = Ne.isP2WSHScript = Ne.isP2WPKH = Ne.isP2PKH = Ne.isP2PK = Ne.isP2MS = void 0;
28528
- const e = oa(), t = It(), n = di(), r = Un(), a = li();
28531
+ const e = oa(), t = It(), n = di(), r = Hn(), a = li();
28529
28532
  function o(l) {
28530
28533
  return (g) => {
28531
28534
  try {
@@ -30031,7 +30034,7 @@ function CC() {
30031
30034
  Object.defineProperty(e, "__esModule", { value: !0 }), e.initEccLib = e.Transaction = e.opcodes = e.Psbt = e.Block = e.script = e.payments = e.networks = e.crypto = e.address = void 0;
30032
30035
  const t = t_();
30033
30036
  e.address = t;
30034
- const n = Un();
30037
+ const n = Hn();
30035
30038
  e.crypto = n;
30036
30039
  const r = nn();
30037
30040
  e.networks = r;