@omnity/ree-client-ts-sdk 0.3.6 → 0.3.8

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.
@@ -1160,7 +1160,7 @@ function L1() {
1160
1160
  return Gh || (Gh = 1, Object.defineProperty(Zs, "__esModule", { value: !0 }), Zs.crypto = void 0, Zs.crypto = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0), Zs;
1161
1161
  }
1162
1162
  var Wh;
1163
- function ui() {
1163
+ function fi() {
1164
1164
  return Wh || (Wh = 1, (function(e) {
1165
1165
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
1166
1166
  Object.defineProperty(e, "__esModule", { value: !0 }), e.wrapXOFConstructorWithOpts = e.wrapConstructorWithOpts = e.wrapConstructor = e.Hash = e.nextTick = e.swap32IfBE = e.byteSwapIfBE = e.swap8IfBE = e.isLE = void 0, e.isBytes = n, e.anumber = r, e.abytes = i, e.ahash = s, e.aexists = o, e.aoutput = c, e.u8 = a, e.u32 = u, e.clean = f, e.createView = l, e.rotr = d, e.rotl = y, e.byteSwap = g, e.byteSwap32 = m, e.bytesToHex = _, e.hexToBytes = O, e.asyncLoop = R, e.utf8ToBytes = M, e.bytesToUtf8 = v, e.toBytes = U, e.kdfInputToBytes = q, e.concatBytes = K, e.checkOpts = H, e.createHasher = P, e.createOptHasher = $, e.createXOFer = F, e.randomBytes = x;
@@ -1334,7 +1334,7 @@ var Xh;
1334
1334
  function Uy() {
1335
1335
  if (Xh) return qt;
1336
1336
  Xh = 1, Object.defineProperty(qt, "__esModule", { value: !0 }), qt.SHA512_IV = qt.SHA384_IV = qt.SHA224_IV = qt.SHA256_IV = qt.HashMD = void 0, qt.setBigUint64 = t, qt.Chi = n, qt.Maj = r;
1337
- const e = /* @__PURE__ */ ui();
1337
+ const e = /* @__PURE__ */ fi();
1338
1338
  function t(s, o, c, a) {
1339
1339
  if (typeof s.setBigUint64 == "function")
1340
1340
  return s.setBigUint64(o, c, a);
@@ -1541,7 +1541,7 @@ var Yh;
1541
1541
  function Cy() {
1542
1542
  if (Yh) return We;
1543
1543
  Yh = 1, Object.defineProperty(We, "__esModule", { value: !0 }), We.sha512_224 = We.sha512_256 = We.sha384 = We.sha512 = We.sha224 = We.sha256 = We.SHA512_256 = We.SHA512_224 = We.SHA384 = We.SHA512 = We.SHA224 = We.SHA256 = void 0;
1544
- const e = /* @__PURE__ */ Uy(), t = /* @__PURE__ */ q1(), n = /* @__PURE__ */ ui(), r = /* @__PURE__ */ Uint32Array.from([
1544
+ const e = /* @__PURE__ */ Uy(), t = /* @__PURE__ */ q1(), n = /* @__PURE__ */ fi(), r = /* @__PURE__ */ Uint32Array.from([
1545
1545
  1116352408,
1546
1546
  1899447441,
1547
1547
  3049323471,
@@ -1824,7 +1824,7 @@ var Js = {}, Pu = {}, Ru = {}, Zh;
1824
1824
  function V1() {
1825
1825
  return Zh || (Zh = 1, (function(e) {
1826
1826
  Object.defineProperty(e, "__esModule", { value: !0 }), e.hmac = e.HMAC = void 0;
1827
- const t = /* @__PURE__ */ ui();
1827
+ const t = /* @__PURE__ */ fi();
1828
1828
  class n extends t.Hash {
1829
1829
  constructor(s, o) {
1830
1830
  super(), this.finished = !1, this.destroyed = !1, (0, t.ahash)(s);
@@ -1873,8 +1873,8 @@ function Ls() {
1873
1873
  return Jh || (Jh = 1, (function(e) {
1874
1874
  Object.defineProperty(e, "__esModule", { value: !0 }), e.notImplemented = e.bitMask = e.utf8ToBytes = e.randomBytes = e.isBytes = e.hexToBytes = e.concatBytes = e.bytesToUtf8 = e.bytesToHex = e.anumber = e.abytes = void 0, e.abool = s, e._abool2 = o, e._abytes2 = c, e.numberToHexUnpadded = a, e.hexToNumber = u, e.bytesToNumberBE = f, e.bytesToNumberLE = l, e.numberToBytesBE = d, e.numberToBytesLE = y, e.numberToVarBytesBE = g, e.ensureBytes = m, e.equalBytes = E, e.copyBytes = S, e.asciiToBytes = _, e.inRange = T, e.aInRange = O, e.bitLen = A, e.bitGet = R, e.bitSet = M, e.createHmacDrbg = U, e.validateObject = K, e.isHash = H, e._validateObject = D, e.memoized = $;
1875
1875
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
1876
- const t = /* @__PURE__ */ ui();
1877
- var n = /* @__PURE__ */ ui();
1876
+ const t = /* @__PURE__ */ fi();
1877
+ var n = /* @__PURE__ */ fi();
1878
1878
  Object.defineProperty(e, "abytes", { enumerable: !0, get: function() {
1879
1879
  return n.abytes;
1880
1880
  } }), Object.defineProperty(e, "anumber", { enumerable: !0, get: function() {
@@ -2598,7 +2598,7 @@ function Hy() {
2598
2598
  return td || (td = 1, (function(e) {
2599
2599
  Object.defineProperty(e, "__esModule", { value: !0 }), e.DER = e.DERErr = void 0, e._splitEndoScalar = c, e._normFnElement = E, e.weierstrassN = S, e.SWUFpSqrtRatio = w, e.mapToCurveSimpleSWU = T, e.ecdh = A, e.ecdsa = R, e.weierstrassPoints = M, e._legacyHelperEquat = q, e.weierstrass = D;
2600
2600
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
2601
- const t = /* @__PURE__ */ V1(), n = /* @__PURE__ */ ui(), r = /* @__PURE__ */ Ls(), i = /* @__PURE__ */ D1(), s = /* @__PURE__ */ rc(), o = (P, $) => (P + (P >= 0 ? $ : -$) / y) / $;
2601
+ const t = /* @__PURE__ */ V1(), n = /* @__PURE__ */ fi(), r = /* @__PURE__ */ Ls(), i = /* @__PURE__ */ D1(), s = /* @__PURE__ */ rc(), o = (P, $) => (P + (P >= 0 ? $ : -$) / y) / $;
2602
2602
  function c(P, $, F) {
2603
2603
  const [[x, B], [L, N]] = $, V = o(N * P, F), G = o(-B * P, F);
2604
2604
  let X = P - V * x - G * L, Y = -V * B - G * N;
@@ -3609,7 +3609,7 @@ function K1() {
3609
3609
  return id || (id = 1, (function(e) {
3610
3610
  Object.defineProperty(e, "__esModule", { value: !0 }), e.encodeToCurve = e.hashToCurve = e.secp256k1_hasher = e.schnorr = e.secp256k1 = void 0;
3611
3611
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
3612
- const t = /* @__PURE__ */ Cy(), n = /* @__PURE__ */ ui(), r = /* @__PURE__ */ $1(), i = /* @__PURE__ */ j1(), s = /* @__PURE__ */ rc(), o = /* @__PURE__ */ Hy(), c = /* @__PURE__ */ Ls(), a = {
3612
+ const t = /* @__PURE__ */ Cy(), n = /* @__PURE__ */ fi(), r = /* @__PURE__ */ $1(), i = /* @__PURE__ */ j1(), s = /* @__PURE__ */ rc(), o = /* @__PURE__ */ Hy(), c = /* @__PURE__ */ Ls(), a = {
3613
3613
  p: BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),
3614
3614
  n: BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),
3615
3615
  h: BigInt(1),
@@ -4898,11 +4898,11 @@ function da(e, ...t) {
4898
4898
  };
4899
4899
  return 0 in t && (n.default = t[0]), n;
4900
4900
  }
4901
- function Yi(e) {
4901
+ function Zi(e) {
4902
4902
  return {
4903
4903
  kind: "schema",
4904
4904
  type: "string",
4905
- reference: Yi,
4905
+ reference: Zi,
4906
4906
  expects: "string",
4907
4907
  async: !1,
4908
4908
  message: e,
@@ -5016,7 +5016,7 @@ function ot(e, t, n) {
5016
5016
  throw new _b(r.issues);
5017
5017
  return r.value;
5018
5018
  }
5019
- function fi(e, t) {
5019
+ function li(e, t) {
5020
5020
  const n = {};
5021
5021
  for (const r in e.entries)
5022
5022
  n[r] = da(e.entries[r]);
@@ -5062,7 +5062,7 @@ function Qy(e) {
5062
5062
  return Array.isArray(e) ? e.length !== 2 ? !1 : e.every((t) => Qy(t)) : Ol(e);
5063
5063
  }
5064
5064
  const Sb = vt(32), Tb = vt(20), fd = vt(32), $e = Wa(Uint8Array);
5065
- Vs(Yi(), zy(/^([0-9a-f]{2})+$/i));
5065
+ Vs(Zi(), zy(/^([0-9a-f]{2})+$/i));
5066
5066
  const xb = Vs(
5067
5067
  fn(),
5068
5068
  Al(),
@@ -5232,16 +5232,16 @@ function In(e) {
5232
5232
  let t;
5233
5233
  return () => (t !== void 0 || (t = e()), t);
5234
5234
  }
5235
- const ds = Ge, xc = ds.OP_RESERVED;
5235
+ const ps = Ge, xc = ps.OP_RESERVED;
5236
5236
  function Xa(e, t) {
5237
5237
  if (!e.input && !e.output && !(e.pubkeys && e.m !== void 0) && !e.signatures)
5238
5238
  throw new TypeError("Not enough data");
5239
5239
  t = Object.assign({ validate: !0 }, t || {});
5240
5240
  function n(a) {
5241
- return Nr(a) || (t.allowIncomplete && a === ds.OP_0) !== void 0;
5241
+ return Nr(a) || (t.allowIncomplete && a === ps.OP_0) !== void 0;
5242
5242
  }
5243
5243
  ot(
5244
- fi(
5244
+ li(
5245
5245
  _t({
5246
5246
  network: _t({}),
5247
5247
  m: fn(),
@@ -5269,7 +5269,7 @@ function Xa(e, t) {
5269
5269
  xc + e.m,
5270
5270
  e.pubkeys,
5271
5271
  xc + i.n,
5272
- ds.OP_CHECKMULTISIG
5272
+ ps.OP_CHECKMULTISIG
5273
5273
  )
5274
5274
  );
5275
5275
  }), Te(i, "m", () => {
@@ -5286,7 +5286,7 @@ function Xa(e, t) {
5286
5286
  return ft(e.input).slice(1);
5287
5287
  }), Te(i, "input", () => {
5288
5288
  if (e.signatures)
5289
- return nn([ds.OP_0].concat(e.signatures));
5289
+ return nn([ps.OP_0].concat(e.signatures));
5290
5290
  }), Te(i, "witness", () => {
5291
5291
  if (i.input)
5292
5292
  return [];
@@ -5297,7 +5297,7 @@ function Xa(e, t) {
5297
5297
  if (e.output) {
5298
5298
  if (c(e.output), ot(fn(), s[0], { message: "Output is invalid" }), ot(fn(), s[s.length - 2], {
5299
5299
  message: "Output is invalid"
5300
- }), s[s.length - 1] !== ds.OP_CHECKMULTISIG)
5300
+ }), s[s.length - 1] !== ps.OP_CHECKMULTISIG)
5301
5301
  throw new TypeError("Output is invalid");
5302
5302
  if (i.m <= 0 || i.n > 16 || i.m > i.n || i.n !== s.length - 3)
5303
5303
  throw new TypeError("Output is invalid");
@@ -5320,7 +5320,7 @@ function Xa(e, t) {
5320
5320
  throw new TypeError("Too many signatures provided");
5321
5321
  }
5322
5322
  if (e.input) {
5323
- if (e.input[0] !== ds.OP_0) throw new TypeError("Input is invalid");
5323
+ if (e.input[0] !== ps.OP_0) throw new TypeError("Input is invalid");
5324
5324
  if (i.signatures.length === 0 || !i.signatures.every(n))
5325
5325
  throw new TypeError("Input has invalid signature(s)");
5326
5326
  if (e.signatures && !Io(e.signatures, i.signatures))
@@ -5336,7 +5336,7 @@ function sg(e, t) {
5336
5336
  if (!e.input && !e.output && !e.pubkey && !e.input && !e.signature)
5337
5337
  throw new TypeError("Not enough data");
5338
5338
  t = Object.assign({ validate: !0 }, t || {}), ot(
5339
- fi(
5339
+ li(
5340
5340
  _t({
5341
5341
  network: _t({}),
5342
5342
  output: $e,
@@ -5384,7 +5384,7 @@ function sg(e, t) {
5384
5384
  }
5385
5385
  return Object.assign(i, e);
5386
5386
  }
5387
- const rs = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
5387
+ const is = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
5388
5388
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
5389
5389
  function sc(e) {
5390
5390
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
@@ -5411,7 +5411,7 @@ function Ub(e, t) {
5411
5411
  if (e.length < n)
5412
5412
  throw new Error("digestInto() expects output buffer of length at least " + n);
5413
5413
  }
5414
- function Di(...e) {
5414
+ function $i(...e) {
5415
5415
  for (let t = 0; t < e.length; t++)
5416
5416
  e[t].fill(0);
5417
5417
  }
@@ -5489,10 +5489,10 @@ function za(e) {
5489
5489
  return t.outputLen = n.outputLen, t.blockLen = n.blockLen, t.create = () => e(), t;
5490
5490
  }
5491
5491
  function ag(e = 32) {
5492
- if (rs && typeof rs.getRandomValues == "function")
5493
- return rs.getRandomValues(new Uint8Array(e));
5494
- if (rs && typeof rs.randomBytes == "function")
5495
- return Uint8Array.from(rs.randomBytes(e));
5492
+ if (is && typeof is.getRandomValues == "function")
5493
+ return is.getRandomValues(new Uint8Array(e));
5494
+ if (is && typeof is.randomBytes == "function")
5495
+ return Uint8Array.from(is.randomBytes(e));
5496
5496
  throw new Error("crypto.getRandomValues must be defined");
5497
5497
  }
5498
5498
  function Fb(e, t, n, r) {
@@ -5530,7 +5530,7 @@ class kl extends Hb {
5530
5530
  gd(this), Ub(t, this), this.finished = !0;
5531
5531
  const { buffer: n, view: r, blockLen: i, isLE: s } = this;
5532
5532
  let { pos: o } = this;
5533
- n[o++] = 128, Di(this.buffer.subarray(o)), this.padOffset > i - o && (this.process(r, 0), o = 0);
5533
+ n[o++] = 128, $i(this.buffer.subarray(o)), this.padOffset > i - o && (this.process(r, 0), o = 0);
5534
5534
  for (let l = o; l < i; l++)
5535
5535
  n[l] = 0;
5536
5536
  Fb(r, i - 8, BigInt(this.length * 8), s), this.process(r, 0);
@@ -5668,10 +5668,10 @@ class Gb extends kl {
5668
5668
  this.set(this.h1 + c + f | 0, this.h2 + u + d | 0, this.h3 + l + i | 0, this.h4 + r + o | 0, this.h0 + s + a | 0);
5669
5669
  }
5670
5670
  roundClean() {
5671
- Di(vc);
5671
+ $i(vc);
5672
5672
  }
5673
5673
  destroy() {
5674
- this.destroyed = !0, Di(this.buffer), this.set(0, 0, 0, 0, 0);
5674
+ this.destroyed = !0, $i(this.buffer), this.set(0, 0, 0, 0, 0);
5675
5675
  }
5676
5676
  }
5677
5677
  const Wb = /* @__PURE__ */ za(() => new Gb()), Xb = Wb, Ic = /* @__PURE__ */ BigInt(2 ** 32 - 1), bd = /* @__PURE__ */ BigInt(32);
@@ -5687,7 +5687,7 @@ function Yb(e, t = !1) {
5687
5687
  }
5688
5688
  return [r, i];
5689
5689
  }
5690
- const Ed = (e, t, n) => e >>> n, _d = (e, t, n) => e << 32 - n | t >>> n, is = (e, t, n) => e >>> n | t << 32 - n, ss = (e, t, n) => e << 32 - n | t >>> n, Oc = (e, t, n) => e << 64 - n | t >>> n - 32, Bc = (e, t, n) => e >>> n - 32 | t << 64 - n;
5690
+ const Ed = (e, t, n) => e >>> n, _d = (e, t, n) => e << 32 - n | t >>> n, ss = (e, t, n) => e >>> n | t << 32 - n, os = (e, t, n) => e << 32 - n | t >>> n, Oc = (e, t, n) => e << 64 - n | t >>> n - 32, Bc = (e, t, n) => e >>> n - 32 | t << 64 - n;
5691
5691
  function ur(e, t, n, r) {
5692
5692
  const i = (t >>> 0) + (r >>> 0);
5693
5693
  return { h: e + n + (i / 2 ** 32 | 0) | 0, l: i | 0 };
@@ -5785,10 +5785,10 @@ class pg extends kl {
5785
5785
  r = r + this.A | 0, i = i + this.B | 0, s = s + this.C | 0, o = o + this.D | 0, c = c + this.E | 0, a = a + this.F | 0, u = u + this.G | 0, f = f + this.H | 0, this.set(r, i, s, o, c, a, u, f);
5786
5786
  }
5787
5787
  roundClean() {
5788
- Di(Mr);
5788
+ $i(Mr);
5789
5789
  }
5790
5790
  destroy() {
5791
- this.set(0, 0, 0, 0, 0, 0, 0, 0), Di(this.buffer);
5791
+ this.set(0, 0, 0, 0, 0, 0, 0, 0), $i(this.buffer);
5792
5792
  }
5793
5793
  }
5794
5794
  class iE extends pg {
@@ -5895,12 +5895,12 @@ class cE extends kl {
5895
5895
  for (let w = 0; w < 16; w++, n += 4)
5896
5896
  Lr[w] = t.getUint32(n), qr[w] = t.getUint32(n += 4);
5897
5897
  for (let w = 16; w < 80; w++) {
5898
- const T = Lr[w - 15] | 0, O = qr[w - 15] | 0, A = is(T, O, 1) ^ is(T, O, 8) ^ Ed(T, O, 7), R = ss(T, O, 1) ^ ss(T, O, 8) ^ _d(T, O, 7), M = Lr[w - 2] | 0, v = qr[w - 2] | 0, U = is(M, v, 19) ^ Oc(M, v, 61) ^ Ed(M, v, 6), q = ss(M, v, 19) ^ Bc(M, v, 61) ^ _d(M, v, 6), K = Qb(R, q, qr[w - 7], qr[w - 16]), H = eE(K, A, U, Lr[w - 7], Lr[w - 16]);
5898
+ const T = Lr[w - 15] | 0, O = qr[w - 15] | 0, A = ss(T, O, 1) ^ ss(T, O, 8) ^ Ed(T, O, 7), R = os(T, O, 1) ^ os(T, O, 8) ^ _d(T, O, 7), M = Lr[w - 2] | 0, v = qr[w - 2] | 0, U = ss(M, v, 19) ^ Oc(M, v, 61) ^ Ed(M, v, 6), q = os(M, v, 19) ^ Bc(M, v, 61) ^ _d(M, v, 6), K = Qb(R, q, qr[w - 7], qr[w - 16]), H = eE(K, A, U, Lr[w - 7], Lr[w - 16]);
5899
5899
  Lr[w] = H | 0, qr[w] = K | 0;
5900
5900
  }
5901
5901
  let { Ah: r, Al: i, Bh: s, Bl: o, Ch: c, Cl: a, Dh: u, Dl: f, Eh: l, El: d, Fh: y, Fl: g, Gh: m, Gl: E, Hh: S, Hl: _ } = this;
5902
5902
  for (let w = 0; w < 80; w++) {
5903
- const T = is(l, d, 14) ^ is(l, d, 18) ^ Oc(l, d, 41), O = ss(l, d, 14) ^ ss(l, d, 18) ^ Bc(l, d, 41), A = l & y ^ ~l & m, R = d & g ^ ~d & E, M = tE(_, O, R, oE[w], qr[w]), v = nE(M, S, T, A, sE[w], Lr[w]), U = M | 0, q = is(r, i, 28) ^ Oc(r, i, 34) ^ Oc(r, i, 39), K = ss(r, i, 28) ^ Bc(r, i, 34) ^ Bc(r, i, 39), H = r & s ^ r & c ^ s & c, D = i & o ^ i & a ^ o & a;
5903
+ const T = ss(l, d, 14) ^ ss(l, d, 18) ^ Oc(l, d, 41), O = os(l, d, 14) ^ os(l, d, 18) ^ Bc(l, d, 41), A = l & y ^ ~l & m, R = d & g ^ ~d & E, M = tE(_, O, R, oE[w], qr[w]), v = nE(M, S, T, A, sE[w], Lr[w]), U = M | 0, q = ss(r, i, 28) ^ Oc(r, i, 34) ^ Oc(r, i, 39), K = os(r, i, 28) ^ Bc(r, i, 34) ^ Bc(r, i, 39), H = r & s ^ r & c ^ s & c, D = i & o ^ i & a ^ o & a;
5904
5904
  S = m | 0, _ = E | 0, m = y | 0, E = g | 0, y = l | 0, g = d | 0, { h: l, l: d } = ur(u | 0, f | 0, v | 0, U | 0), u = c | 0, f = a | 0, c = s | 0, a = o | 0, s = r | 0, o = i | 0;
5905
5905
  const P = Zb(U, K, D);
5906
5906
  r = Jb(P, v, q, H), i = P | 0;
@@ -5908,17 +5908,17 @@ class cE extends kl {
5908
5908
  ({ h: r, l: i } = ur(this.Ah | 0, this.Al | 0, r | 0, i | 0)), { h: s, l: o } = ur(this.Bh | 0, this.Bl | 0, s | 0, o | 0), { h: c, l: a } = ur(this.Ch | 0, this.Cl | 0, c | 0, a | 0), { h: u, l: f } = ur(this.Dh | 0, this.Dl | 0, u | 0, f | 0), { h: l, l: d } = ur(this.Eh | 0, this.El | 0, l | 0, d | 0), { h: y, l: g } = ur(this.Fh | 0, this.Fl | 0, y | 0, g | 0), { h: m, l: E } = ur(this.Gh | 0, this.Gl | 0, m | 0, E | 0), { h: S, l: _ } = ur(this.Hh | 0, this.Hl | 0, S | 0, _ | 0), this.set(r, i, s, o, c, a, u, f, l, d, y, g, m, E, S, _);
5909
5909
  }
5910
5910
  roundClean() {
5911
- Di(Lr, qr);
5911
+ $i(Lr, qr);
5912
5912
  }
5913
5913
  destroy() {
5914
- Di(this.buffer), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
5914
+ $i(this.buffer), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
5915
5915
  }
5916
5916
  }
5917
5917
  const En = /* @__PURE__ */ za(() => new pg()), aE = /* @__PURE__ */ za(() => new iE()), uE = /* @__PURE__ */ za(() => new cE()), en = En;
5918
5918
  function Or(e) {
5919
5919
  return Xb(en(e));
5920
5920
  }
5921
- function bi(e) {
5921
+ function Ei(e) {
5922
5922
  return en(en(e));
5923
5923
  }
5924
5924
  const fE = {
@@ -6640,10 +6640,10 @@ function cc(e, t) {
6640
6640
  if (!e.address && !e.hash && !e.output && !e.pubkey && !e.input)
6641
6641
  throw new TypeError("Not enough data");
6642
6642
  t = Object.assign({ validate: !0 }, t || {}), ot(
6643
- fi(
6643
+ li(
6644
6644
  _t({
6645
6645
  network: _t({}),
6646
- address: Yi(),
6646
+ address: Zi(),
6647
6647
  hash: Tb,
6648
6648
  output: vt(25),
6649
6649
  pubkey: Kn($n),
@@ -6735,13 +6735,13 @@ function ac(e, t) {
6735
6735
  if (!e.address && !e.hash && !e.output && !e.redeem && !e.input)
6736
6736
  throw new TypeError("Not enough data");
6737
6737
  t = Object.assign({ validate: !0 }, t || {}), ot(
6738
- fi(
6738
+ li(
6739
6739
  _t({
6740
6740
  network: _t({}),
6741
- address: Yi(),
6741
+ address: Zi(),
6742
6742
  hash: vt(20),
6743
6743
  output: vt(23),
6744
- redeem: fi(
6744
+ redeem: li(
6745
6745
  _t({
6746
6746
  network: _t({}),
6747
6747
  output: $e,
@@ -6869,10 +6869,10 @@ function ac(e, t) {
6869
6869
  }
6870
6870
  return Object.assign(r, e);
6871
6871
  }
6872
- var Ei = {}, Sd;
6872
+ var _i = {}, Sd;
6873
6873
  function uc() {
6874
- if (Sd) return Ei;
6875
- Sd = 1, Object.defineProperty(Ei, "__esModule", { value: !0 }), Ei.bech32m = Ei.bech32 = void 0;
6874
+ if (Sd) return _i;
6875
+ Sd = 1, Object.defineProperty(_i, "__esModule", { value: !0 }), _i.bech32m = _i.bech32 = void 0;
6876
6876
  const e = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", t = {};
6877
6877
  for (let u = 0; u < e.length; u++) {
6878
6878
  const f = e.charAt(u);
@@ -7002,7 +7002,7 @@ function uc() {
7002
7002
  fromWords: c
7003
7003
  };
7004
7004
  }
7005
- return Ei.bech32 = a("bech32"), Ei.bech32m = a("bech32m"), Ei;
7005
+ return _i.bech32 = a("bech32"), _i.bech32m = a("bech32m"), _i;
7006
7006
  }
7007
7007
  var Gt = uc();
7008
7008
  const Td = Ge, yE = new Uint8Array(0);
@@ -7010,9 +7010,9 @@ function Za(e, t) {
7010
7010
  if (!e.address && !e.hash && !e.output && !e.pubkey && !e.witness)
7011
7011
  throw new TypeError("Not enough data");
7012
7012
  t = Object.assign({ validate: !0 }, t || {}), ot(
7013
- fi(
7013
+ li(
7014
7014
  _t({
7015
- address: Yi(),
7015
+ address: Zi(),
7016
7016
  hash: vt(20),
7017
7017
  input: vt(0),
7018
7018
  network: _t({}),
@@ -7113,7 +7113,7 @@ function fc(e, t) {
7113
7113
  t = Object.assign({ validate: !0 }, t || {}), ot(
7114
7114
  ld({
7115
7115
  network: _t({}),
7116
- address: Yi(),
7116
+ address: Zi(),
7117
7117
  hash: Sb,
7118
7118
  output: vt(34),
7119
7119
  redeem: ld({
@@ -7373,7 +7373,7 @@ function vE(e) {
7373
7373
  function mg(e) {
7374
7374
  typeof e == "number" ? vE(e) : AE(e);
7375
7375
  }
7376
- function li(e, t, n) {
7376
+ function hi(e, t, n) {
7377
7377
  mg(e), n === void 0 && (n = 0), t === void 0 && (t = new Uint8Array(Bn(e)));
7378
7378
  let r = 0;
7379
7379
  return e < 253 ? (t.set([Number(e)], n), r = 1) : e <= 65535 ? (t.set([253], n), bE(t, n + 1, Number(e), "LE"), r = 3) : e <= 4294967295 ? (t.set([254], n), EE(t, n + 1, Number(e), "LE"), r = 5) : (t.set([255], n), _E(t, n + 1, BigInt(e), "LE"), r = 9), { buffer: t, bytes: r };
@@ -7457,7 +7457,7 @@ class $t {
7457
7457
  this.offset = ob(this.buffer, this.offset, BigInt(t), "LE");
7458
7458
  }
7459
7459
  writeVarInt(t) {
7460
- const { bytes: n } = li(t, this.buffer, this.offset);
7460
+ const { bytes: n } = hi(t, this.buffer, this.offset);
7461
7461
  this.offset += n;
7462
7462
  }
7463
7463
  writeSlice(t) {
@@ -7583,16 +7583,16 @@ function jf(e, t) {
7583
7583
  }
7584
7584
  function RE(e) {
7585
7585
  const t = Bn(e.length), n = new Uint8Array(t);
7586
- return li(e.length, n), ct([n, e]);
7586
+ return hi(e.length, n), ct([n, e]);
7587
7587
  }
7588
7588
  const vd = Ge, Id = 1, UE = 80;
7589
7589
  function lc(e, t) {
7590
7590
  if (!e.address && !e.output && !e.pubkey && !e.internalPubkey && !(e.witness && e.witness.length > 1))
7591
7591
  throw new TypeError("Not enough data");
7592
7592
  t = Object.assign({ validate: !0 }, t || {}), ot(
7593
- fi(
7593
+ li(
7594
7594
  _t({
7595
- address: Yi(),
7595
+ address: Zi(),
7596
7596
  input: vt(0),
7597
7597
  network: _t({}),
7598
7598
  output: vt(34),
@@ -7607,7 +7607,7 @@ function lc(e, t) {
7607
7607
  ]),
7608
7608
  witness: hn($e),
7609
7609
  scriptTree: Kn(Qy, "Taptree is not of type isTaptree"),
7610
- redeem: fi(
7610
+ redeem: li(
7611
7611
  _t({
7612
7612
  output: $e,
7613
7613
  // tapleaf script
@@ -8049,7 +8049,7 @@ let gt = class Ye {
8049
8049
  c.script = ni;
8050
8050
  }), s.ins[t].script = i);
8051
8051
  const o = new Uint8Array(s.byteLength(!1) + 4);
8052
- return $y(o, o.length - 4, r, "LE"), s.__toBuffer(o, 0, !1), bi(o);
8052
+ return $y(o, o.length - 4, r, "LE"), s.__toBuffer(o, 0, !1), Ei(o);
8053
8053
  }
8054
8054
  hashForWitnessV1(t, n, r, i, s, o) {
8055
8055
  if (ot(
@@ -8117,23 +8117,23 @@ let gt = class Ye {
8117
8117
  let s = Uint8Array.from([]), o, c = Vu, a = Vu, u = Vu;
8118
8118
  if (i & Ye.SIGHASH_ANYONECANPAY || (s = new Uint8Array(36 * this.ins.length), o = new $t(s, 0), this.ins.forEach((l) => {
8119
8119
  o.writeSlice(l.hash), o.writeUInt32(l.index);
8120
- }), a = bi(s)), !(i & Ye.SIGHASH_ANYONECANPAY) && (i & 31) !== Ye.SIGHASH_SINGLE && (i & 31) !== Ye.SIGHASH_NONE && (s = new Uint8Array(4 * this.ins.length), o = new $t(s, 0), this.ins.forEach((l) => {
8120
+ }), a = Ei(s)), !(i & Ye.SIGHASH_ANYONECANPAY) && (i & 31) !== Ye.SIGHASH_SINGLE && (i & 31) !== Ye.SIGHASH_NONE && (s = new Uint8Array(4 * this.ins.length), o = new $t(s, 0), this.ins.forEach((l) => {
8121
8121
  o.writeUInt32(l.sequence);
8122
- }), u = bi(s)), (i & 31) !== Ye.SIGHASH_SINGLE && (i & 31) !== Ye.SIGHASH_NONE) {
8122
+ }), u = Ei(s)), (i & 31) !== Ye.SIGHASH_SINGLE && (i & 31) !== Ye.SIGHASH_NONE) {
8123
8123
  const l = this.outs.reduce((d, y) => d + 8 + Qn(y.script), 0);
8124
8124
  s = new Uint8Array(l), o = new $t(s, 0), this.outs.forEach((d) => {
8125
8125
  o.writeInt64(d.value), o.writeVarSlice(d.script);
8126
- }), c = bi(s);
8126
+ }), c = Ei(s);
8127
8127
  } else if ((i & 31) === Ye.SIGHASH_SINGLE && t < this.outs.length) {
8128
8128
  const l = this.outs[t];
8129
- s = new Uint8Array(8 + Qn(l.script)), o = new $t(s, 0), o.writeInt64(l.value), o.writeVarSlice(l.script), c = bi(s);
8129
+ s = new Uint8Array(8 + Qn(l.script)), o = new $t(s, 0), o.writeInt64(l.value), o.writeVarSlice(l.script), c = Ei(s);
8130
8130
  }
8131
8131
  s = new Uint8Array(156 + Qn(n)), o = new $t(s, 0);
8132
8132
  const f = this.ins[t];
8133
- return o.writeInt32(this.version), o.writeSlice(a), o.writeSlice(u), o.writeSlice(f.hash), o.writeUInt32(f.index), o.writeVarSlice(n), o.writeInt64(r), o.writeUInt32(f.sequence), o.writeSlice(c), o.writeUInt32(this.locktime), o.writeUInt32(i), bi(s);
8133
+ return o.writeInt32(this.version), o.writeSlice(a), o.writeSlice(u), o.writeSlice(f.hash), o.writeUInt32(f.index), o.writeVarSlice(n), o.writeInt64(r), o.writeUInt32(f.sequence), o.writeSlice(c), o.writeUInt32(this.locktime), o.writeUInt32(i), Ei(s);
8134
8134
  }
8135
8135
  getHash(t) {
8136
- return t && this.isCoinbase() ? new Uint8Array(32) : bi(this.__toBuffer(void 0, void 0, t));
8136
+ return t && this.isCoinbase() ? new Uint8Array(32) : Ei(this.__toBuffer(void 0, void 0, t));
8137
8137
  }
8138
8138
  getId() {
8139
8139
  return xe(Pl(this.getHash(!1)));
@@ -8592,7 +8592,7 @@ function n_(e) {
8592
8592
  }
8593
8593
  function r_(e) {
8594
8594
  const { script: t, value: n } = e, r = Bn(t.length), i = new Uint8Array(8 + r + t.length);
8595
- return jy(i, 0, BigInt(n), "LE"), li(t.length, i, 8), i.set(t, 8 + r), {
8595
+ return jy(i, 0, BigInt(n), "LE"), hi(t.length, i, 8), i.set(t, 8 + r), {
8596
8596
  key: Uint8Array.from([me.WITNESS_UTXO]),
8597
8597
  value: i
8598
8598
  };
@@ -8636,7 +8636,7 @@ function u_(e) {
8636
8636
  const t = Uint8Array.from([pt.TAP_TREE]), n = [].concat(
8637
8637
  ...e.leaves.map((r) => [
8638
8638
  Uint8Array.of(r.depth, r.leafVersion),
8639
- li(BigInt(r.script.length)).buffer,
8639
+ hi(BigInt(r.script.length)).buffer,
8640
8640
  r.script
8641
8641
  ])
8642
8642
  );
@@ -8773,7 +8773,7 @@ function Ng(e) {
8773
8773
  }
8774
8774
  function r(o) {
8775
8775
  const c = t.encode(o), a = Bn(o.leafHashes.length), u = new Uint8Array(a);
8776
- li(o.leafHashes.length, u);
8776
+ hi(o.leafHashes.length, u);
8777
8777
  const f = ct([u, ...o.leafHashes, c.value]);
8778
8778
  return { ...c, value: f };
8779
8779
  }
@@ -8900,7 +8900,7 @@ function Nd(e) {
8900
8900
  }
8901
8901
  function w_(e) {
8902
8902
  const t = e.key.length, n = e.value.length, r = Bn(t), i = Bn(n), s = new Uint8Array(r + t + i + n);
8903
- return li(t, s, 0), s.set(e.key, r), li(n, s, r + t), s.set(e.value, r + t + i), s;
8903
+ return hi(t, s, 0), s.set(e.key, r), hi(n, s, r + t), s.set(e.value, r + t + i), s;
8904
8904
  }
8905
8905
  function b_(e, t) {
8906
8906
  let n = 0;
@@ -9160,7 +9160,7 @@ function S_(e) {
9160
9160
  const i = kd(t);
9161
9161
  if (i === void 0)
9162
9162
  throw new Error("Combine: Self missing transaction");
9163
- const s = os(n.globalKeyVals), o = n.inputKeyVals.map(os), c = n.outputKeyVals.map(os);
9163
+ const s = cs(n.globalKeyVals), o = n.inputKeyVals.map(cs), c = n.outputKeyVals.map(cs);
9164
9164
  for (const a of r) {
9165
9165
  const u = kd(a);
9166
9166
  if (u === void 0 || de(u.toBuffer(), i.toBuffer()) !== 0)
@@ -9168,13 +9168,13 @@ function S_(e) {
9168
9168
  "Combine: One of the Psbts does not have the same transaction."
9169
9169
  );
9170
9170
  const f = Kf(a);
9171
- os(f.globalKeyVals).forEach(
9171
+ cs(f.globalKeyVals).forEach(
9172
9172
  $u(
9173
9173
  s,
9174
9174
  n.globalKeyVals,
9175
9175
  f.globalKeyVals
9176
9176
  )
9177
- ), f.inputKeyVals.map(os).forEach(
9177
+ ), f.inputKeyVals.map(cs).forEach(
9178
9178
  (g, m) => g.forEach(
9179
9179
  $u(
9180
9180
  o[m],
@@ -9182,7 +9182,7 @@ function S_(e) {
9182
9182
  f.inputKeyVals[m]
9183
9183
  )
9184
9184
  )
9185
- ), f.outputKeyVals.map(os).forEach(
9185
+ ), f.outputKeyVals.map(cs).forEach(
9186
9186
  (g, m) => g.forEach(
9187
9187
  $u(
9188
9188
  c[m],
@@ -9208,7 +9208,7 @@ function $u(e, t, n) {
9208
9208
  function kd(e) {
9209
9209
  return e.globalMap.unsignedTx;
9210
9210
  }
9211
- function os(e) {
9211
+ function cs(e) {
9212
9212
  const t = /* @__PURE__ */ new Set();
9213
9213
  return e.forEach((n) => {
9214
9214
  const r = xe(n.key);
@@ -9389,7 +9389,7 @@ let Rd = class {
9389
9389
  return this.globalMap.unsignedTx.toBuffer();
9390
9390
  }
9391
9391
  };
9392
- function Zi(e) {
9392
+ function Ji(e) {
9393
9393
  return (t) => {
9394
9394
  try {
9395
9395
  return e({ output: t }), !0;
@@ -9398,7 +9398,7 @@ function Zi(e) {
9398
9398
  }
9399
9399
  };
9400
9400
  }
9401
- const I_ = Zi(Xa), O_ = Zi(sg), B_ = Zi(cc), Ja = Zi(Za), Ud = Zi(fc), Hg = Zi(ac), Fg = Zi(lc);
9401
+ const I_ = Ji(Xa), O_ = Ji(sg), B_ = Ji(cc), Ja = Ji(Za), Ud = Ji(fc), Hg = Ji(ac), Fg = Ji(lc);
9402
9402
  function wa(e) {
9403
9403
  let t = new Uint8Array(0);
9404
9404
  function n(o) {
@@ -9406,7 +9406,7 @@ function wa(e) {
9406
9406
  }
9407
9407
  function r(o) {
9408
9408
  const c = t.length, a = Bn(o);
9409
- t = ct([t, new Uint8Array(a)]), li(o, t, c);
9409
+ t = ct([t, new Uint8Array(a)]), hi(o, t, c);
9410
9410
  }
9411
9411
  function i(o) {
9412
9412
  r(o.length), n(o);
@@ -11111,7 +11111,7 @@ function mS(e) {
11111
11111
  return (t ^ -1) >>> 0;
11112
11112
  }
11113
11113
  const Uc = "__principal__", wS = 2, Gd = 4, bS = "aaaaa-aa";
11114
- let Ke = class ps {
11114
+ let Ke = class ys {
11115
11115
  static anonymous() {
11116
11116
  return new this(new Uint8Array([Gd]));
11117
11117
  }
@@ -11128,11 +11128,11 @@ let Ke = class ps {
11128
11128
  }
11129
11129
  static from(t) {
11130
11130
  if (typeof t == "string")
11131
- return ps.fromText(t);
11131
+ return ys.fromText(t);
11132
11132
  if (Object.getPrototypeOf(t) === Uint8Array.prototype)
11133
- return new ps(t);
11134
- if (ps.isPrincipal(t))
11135
- return new ps(t._arr);
11133
+ return new ys(t);
11134
+ if (ys.isPrincipal(t))
11135
+ return new ys(t._arr);
11136
11136
  throw new Error(`Impossible to convert ${JSON.stringify(t)} to Principal.`);
11137
11137
  }
11138
11138
  static fromHex(t) {
@@ -11156,7 +11156,7 @@ let Ke = class ps {
11156
11156
  return new this(t);
11157
11157
  }
11158
11158
  static isPrincipal(t) {
11159
- return t instanceof ps || typeof t == "object" && t !== null && "_isPrincipal" in t && t._isPrincipal === !0 && "_arr" in t && t._arr instanceof Uint8Array;
11159
+ return t instanceof ys || typeof t == "object" && t !== null && "_isPrincipal" in t && t._isPrincipal === !0 && "_arr" in t && t._arr instanceof Uint8Array;
11160
11160
  }
11161
11161
  constructor(t) {
11162
11162
  this._arr = t, this._isPrincipal = !0;
@@ -11357,10 +11357,10 @@ function zf(e) {
11357
11357
  function tm() {
11358
11358
  throw new Error("unexpected end of buffer");
11359
11359
  }
11360
- function $i(e, t) {
11360
+ function ji(e, t) {
11361
11361
  return e.byteLength < t && tm(), e.read(t);
11362
11362
  }
11363
- function ji(e) {
11363
+ function Ki(e) {
11364
11364
  const t = e.readUint8();
11365
11365
  return t === void 0 && tm(), t;
11366
11366
  }
@@ -11381,7 +11381,7 @@ function ut(e) {
11381
11381
  function Nt(e) {
11382
11382
  let t = BigInt(1), n = BigInt(0), r;
11383
11383
  do
11384
- r = ji(e), n += BigInt(r & 127).valueOf() * t, t *= BigInt(128);
11384
+ r = Ki(e), n += BigInt(r & 127).valueOf() * t, t *= BigInt(128);
11385
11385
  while (r >= 128);
11386
11386
  return n;
11387
11387
  }
@@ -11413,7 +11413,7 @@ function ri(e) {
11413
11413
  return Nt(e);
11414
11414
  break;
11415
11415
  }
11416
- const r = new Uint8Array($i(e, n + 1));
11416
+ const r = new Uint8Array(ji(e, n + 1));
11417
11417
  let i = BigInt(0);
11418
11418
  for (let s = r.byteLength - 1; s >= 0; s--)
11419
11419
  i = i * BigInt(128) + BigInt(128 - (r[s] & 127) - 1);
@@ -11435,10 +11435,10 @@ function nm(e, t) {
11435
11435
  function rm(e, t) {
11436
11436
  if (t <= 0 || !Number.isInteger(t))
11437
11437
  throw new Error("Byte length must be a positive integer");
11438
- let n = BigInt(ji(e)), r = BigInt(1), i = 0;
11438
+ let n = BigInt(Ki(e)), r = BigInt(1), i = 0;
11439
11439
  for (; ++i < t; ) {
11440
11440
  r *= BigInt(256);
11441
- const s = BigInt(ji(e));
11441
+ const s = BigInt(Ki(e));
11442
11442
  n = n + r * s;
11443
11443
  }
11444
11444
  return n;
@@ -11598,7 +11598,7 @@ class Rn extends nu {
11598
11598
  _buildTypeTableImpl(t) {
11599
11599
  }
11600
11600
  }
11601
- class pi extends nu {
11601
+ class yi extends nu {
11602
11602
  checkType(t) {
11603
11603
  if (t instanceof Nn) {
11604
11604
  const n = t.getType();
@@ -11706,7 +11706,7 @@ class sm extends Rn {
11706
11706
  return It(Le.Bool);
11707
11707
  }
11708
11708
  decodeValue(t, n) {
11709
- switch (this.checkType(n), ji(t)) {
11709
+ switch (this.checkType(n), Ki(t)) {
11710
11710
  case 0:
11711
11711
  return !1;
11712
11712
  case 1:
@@ -11747,7 +11747,7 @@ class Po extends Rn {
11747
11747
  return "null";
11748
11748
  }
11749
11749
  }
11750
- class hi extends Rn {
11750
+ class di extends Rn {
11751
11751
  get typeName() {
11752
11752
  return Be.ReservedClass;
11753
11753
  }
@@ -11797,7 +11797,7 @@ class om extends Rn {
11797
11797
  }
11798
11798
  decodeValue(t, n) {
11799
11799
  this.checkType(n);
11800
- const r = Nt(t), i = $i(t, Number(r));
11800
+ const r = Nt(t), i = ji(t, Number(r));
11801
11801
  return new TextDecoder("utf8", { fatal: !0 }).decode(i);
11802
11802
  }
11803
11803
  get name() {
@@ -11898,7 +11898,7 @@ class Dl extends Rn {
11898
11898
  }
11899
11899
  decodeValue(t, n) {
11900
11900
  this.checkType(n);
11901
- const r = $i(t, this._bits / 8), i = _S(r);
11901
+ const r = ji(t, this._bits / 8), i = _S(r);
11902
11902
  return this._bits === 32 ? i.getFloat32(0, !0) : i.getFloat64(0, !0);
11903
11903
  }
11904
11904
  get name() {
@@ -11908,7 +11908,7 @@ class Dl extends Rn {
11908
11908
  return t.toString();
11909
11909
  }
11910
11910
  }
11911
- class Ki extends Rn {
11911
+ class Gi extends Rn {
11912
11912
  get typeName() {
11913
11913
  return Be.FixedIntClass;
11914
11914
  }
@@ -11954,7 +11954,7 @@ class Ki extends Rn {
11954
11954
  return t.toString();
11955
11955
  }
11956
11956
  }
11957
- class ai extends Rn {
11957
+ class ui extends Rn {
11958
11958
  get typeName() {
11959
11959
  return Be.FixedNatClass;
11960
11960
  }
@@ -11993,7 +11993,7 @@ class ai extends Rn {
11993
11993
  return t.toString();
11994
11994
  }
11995
11995
  }
11996
- class Rs extends pi {
11996
+ class Rs extends yi {
11997
11997
  get typeName() {
11998
11998
  return Be.VecClass;
11999
11999
  }
@@ -12001,13 +12001,13 @@ class Rs extends pi {
12001
12001
  return t.typeName === Be.VecClass;
12002
12002
  }
12003
12003
  constructor(t) {
12004
- super(), this._type = t, this._blobOptimization = !1, t instanceof ai && t._bits === 8 && (this._blobOptimization = !0);
12004
+ super(), this._type = t, this._blobOptimization = !1, t instanceof ui && t._bits === 8 && (this._blobOptimization = !0);
12005
12005
  }
12006
12006
  accept(t, n) {
12007
12007
  return t.visitVec(this, this._type, n);
12008
12008
  }
12009
12009
  covariant(t) {
12010
- const n = this._type instanceof ai ? this._type._bits : this._type instanceof Ki ? this._type._bits : 0;
12010
+ const n = this._type instanceof ui ? this._type._bits : this._type instanceof Gi ? this._type._bits : 0;
12011
12011
  if (ArrayBuffer.isView(t) && n == t.BYTES_PER_ELEMENT * 8 || Array.isArray(t) && t.every((r, i) => {
12012
12012
  try {
12013
12013
  return this._type.covariant(r);
@@ -12060,7 +12060,7 @@ index ${i} -> ${s.message}`);
12060
12060
  if (!(r instanceof Rs))
12061
12061
  throw new Error("Not a vector type");
12062
12062
  const i = Number(Nt(t));
12063
- if (this._type instanceof ai) {
12063
+ if (this._type instanceof ui) {
12064
12064
  if (this._type._bits == 8)
12065
12065
  return new Uint8Array(t.read(i));
12066
12066
  if (this._type._bits == 16) {
@@ -12074,7 +12074,7 @@ index ${i} -> ${s.message}`);
12074
12074
  if (this._type._bits == 64)
12075
12075
  return new BigUint64Array(t.read(i * 8).buffer);
12076
12076
  }
12077
- if (this._type instanceof Ki) {
12077
+ if (this._type instanceof Gi) {
12078
12078
  if (this._type._bits == 8)
12079
12079
  return new Int8Array(t.read(i));
12080
12080
  if (this._type._bits == 16) {
@@ -12111,7 +12111,7 @@ index ${i} -> ${s.message}`);
12111
12111
  return "vec {" + t.map((r) => this._type.valueToString(r)).join("; ") + "}";
12112
12112
  }
12113
12113
  }
12114
- class kr extends pi {
12114
+ class kr extends yi {
12115
12115
  get typeName() {
12116
12116
  return Be.OptClass;
12117
12117
  }
@@ -12146,7 +12146,7 @@ class kr extends pi {
12146
12146
  decodeValue(t, n) {
12147
12147
  if (n instanceof Po)
12148
12148
  return [];
12149
- if (n instanceof hi)
12149
+ if (n instanceof di)
12150
12150
  return [];
12151
12151
  let r = n;
12152
12152
  if (n instanceof Nn) {
@@ -12156,7 +12156,7 @@ class kr extends pi {
12156
12156
  r = i;
12157
12157
  }
12158
12158
  if (r instanceof kr)
12159
- switch (ji(t)) {
12159
+ switch (Ki(t)) {
12160
12160
  case 0:
12161
12161
  return [];
12162
12162
  case 1: {
@@ -12173,7 +12173,7 @@ class kr extends pi {
12173
12173
  else {
12174
12174
  if (
12175
12175
  // this check corresponds to `not (null <: <t>)` in the spec
12176
- this._type instanceof Po || this._type instanceof kr || this._type instanceof hi
12176
+ this._type instanceof Po || this._type instanceof kr || this._type instanceof di
12177
12177
  )
12178
12178
  return r.decodeValue(t, r), [];
12179
12179
  {
@@ -12196,7 +12196,7 @@ class kr extends pi {
12196
12196
  return t.length === 0 ? "null" : `opt ${this._type.valueToString(t[0])}`;
12197
12197
  }
12198
12198
  }
12199
- class Gi extends pi {
12199
+ class Wi extends yi {
12200
12200
  get typeName() {
12201
12201
  return Be.RecordClass;
12202
12202
  }
@@ -12245,7 +12245,7 @@ field ${n} -> ${i.message}`);
12245
12245
  }
12246
12246
  decodeValue(t, n) {
12247
12247
  const r = this.checkType(n);
12248
- if (!(r instanceof Gi))
12248
+ if (!(r instanceof Wi))
12249
12249
  throw new Error("Not a record type");
12250
12250
  const i = {};
12251
12251
  let s = 0, o = 0;
@@ -12259,7 +12259,7 @@ field ${n} -> ${i.message}`);
12259
12259
  if (l === d)
12260
12260
  i[u] = f.decodeValue(t, a), s++, o++;
12261
12261
  else if (d > l)
12262
- if (f instanceof kr || f instanceof hi)
12262
+ if (f instanceof kr || f instanceof di)
12263
12263
  i[u] = [], s++;
12264
12264
  else
12265
12265
  throw new Error("Cannot find required field " + u);
@@ -12267,7 +12267,7 @@ field ${n} -> ${i.message}`);
12267
12267
  a.decodeValue(t, a), o++;
12268
12268
  }
12269
12269
  for (const [c, a] of this._fields.slice(s))
12270
- if (a instanceof kr || a instanceof hi)
12270
+ if (a instanceof kr || a instanceof di)
12271
12271
  i[c] = [];
12272
12272
  else
12273
12273
  throw new Error("Cannot find required field " + c);
@@ -12290,7 +12290,7 @@ field ${n} -> ${i.message}`);
12290
12290
  return `record {${ko(this._fields, n, ([i, s], o) => i + "=" + s.valueToString(o)).join("; ")}}`;
12291
12291
  }
12292
12292
  }
12293
- class ru extends Gi {
12293
+ class ru extends Wi {
12294
12294
  get typeName() {
12295
12295
  return Be.TupleClass;
12296
12296
  }
@@ -12339,7 +12339,7 @@ index ${r} -> ${i.message}`);
12339
12339
  return `record {${ko(this._components, t, (r, i) => r.valueToString(i)).join("; ")}}`;
12340
12340
  }
12341
12341
  }
12342
- class Us extends pi {
12342
+ class Us extends yi {
12343
12343
  get typeName() {
12344
12344
  return Be.VariantClass;
12345
12345
  }
@@ -12418,7 +12418,7 @@ variant ${n} -> ${i.message}`);
12418
12418
  return t;
12419
12419
  }
12420
12420
  }
12421
- const Da = class Da extends pi {
12421
+ const Da = class Da extends yi {
12422
12422
  constructor() {
12423
12423
  super(...arguments), this._id = Da._counter++;
12424
12424
  }
@@ -12476,10 +12476,10 @@ const Da = class Da extends pi {
12476
12476
  Da._counter = 0;
12477
12477
  let Nn = Da;
12478
12478
  function $l(e) {
12479
- if (ji(e) !== 1)
12479
+ if (Ki(e) !== 1)
12480
12480
  throw new Error("Cannot decode principal");
12481
12481
  const n = Number(Nt(e));
12482
- return Ke.fromUint8Array(new Uint8Array($i(e, n)));
12482
+ return Ke.fromUint8Array(new Uint8Array(ji(e, n)));
12483
12483
  }
12484
12484
  class cm extends Rn {
12485
12485
  get typeName() {
@@ -12513,7 +12513,7 @@ class cm extends Rn {
12513
12513
  return `${this.name} "${t.toText()}"`;
12514
12514
  }
12515
12515
  }
12516
- class Ro extends pi {
12516
+ class Ro extends yi {
12517
12517
  get typeName() {
12518
12518
  return Be.FuncClass;
12519
12519
  }
@@ -12549,9 +12549,9 @@ class Ro extends pi {
12549
12549
  const r = n instanceof Nn ? n.getType() ?? n : n;
12550
12550
  if (!jl(r, this))
12551
12551
  throw new Error(`Cannot decode function reference at type ${this.display()} from wire type ${r.display()}`);
12552
- if (ji(t) !== 1)
12552
+ if (Ki(t) !== 1)
12553
12553
  throw new Error("Cannot decode function reference");
12554
- const s = $l(t), o = Number(Nt(t)), c = $i(t, o), u = new TextDecoder("utf8", { fatal: !0 }).decode(c);
12554
+ const s = $l(t), o = Number(Nt(t)), c = ji(t, o), u = new TextDecoder("utf8", { fatal: !0 }).decode(c);
12555
12555
  return [s, u];
12556
12556
  }
12557
12557
  get name() {
@@ -12575,7 +12575,7 @@ class Ro extends pi {
12575
12575
  throw new Error("Illegal function annotation");
12576
12576
  }
12577
12577
  }
12578
- class Sa extends pi {
12578
+ class Sa extends yi {
12579
12579
  get typeName() {
12580
12580
  return Be.ServiceClass;
12581
12581
  }
@@ -12649,7 +12649,7 @@ function am(e, t) {
12649
12649
  const n = new $s(t);
12650
12650
  if (t.byteLength < Jc.length)
12651
12651
  throw new Error("Message length smaller than magic number");
12652
- const r = $i(n, Jc.length), i = new TextDecoder().decode(r);
12652
+ const r = ji(n, Jc.length), i = new TextDecoder().decode(r);
12653
12653
  if (i !== Jc)
12654
12654
  throw new Error("Wrong magic number: " + JSON.stringify(i));
12655
12655
  function s(d) {
@@ -12715,7 +12715,7 @@ function am(e, t) {
12715
12715
  let w = Number(Nt(d));
12716
12716
  const T = [];
12717
12717
  for (; w--; ) {
12718
- const O = Number(Nt(d)), A = new TextDecoder().decode($i(d, O)), R = ri(d);
12718
+ const O = Number(Nt(d)), A = new TextDecoder().decode(ji(d, O)), R = ri(d);
12719
12719
  T.push([A, R]);
12720
12720
  }
12721
12721
  y.push([_, T]);
@@ -12850,7 +12850,7 @@ function am(e, t) {
12850
12850
  Zf();
12851
12851
  }
12852
12852
  }
12853
- const um = new Ll(), fm = new hi(), IS = new im(), lm = new sm(), hm = new Po(), dm = new om(), pm = new ql(), ym = new Vl(), gm = new Dl(32), mm = new Dl(64), wm = new Ki(8), bm = new Ki(16), Em = new Ki(32), _m = new Ki(64), Sm = new ai(8), Tm = new ai(16), xm = new ai(32), Am = new ai(64), vm = new cm();
12853
+ const um = new Ll(), fm = new di(), IS = new im(), lm = new sm(), hm = new Po(), dm = new om(), pm = new ql(), ym = new Vl(), gm = new Dl(32), mm = new Dl(64), wm = new Gi(8), bm = new Gi(16), Em = new Gi(32), _m = new Gi(64), Sm = new ui(8), Tm = new ui(16), xm = new ui(32), Am = new ui(64), vm = new cm();
12854
12854
  function Im(...e) {
12855
12855
  return new ru(e);
12856
12856
  }
@@ -12861,7 +12861,7 @@ function Bm(e) {
12861
12861
  return new kr(e);
12862
12862
  }
12863
12863
  function Nm(e) {
12864
- return new Gi(e);
12864
+ return new Wi(e);
12865
12865
  }
12866
12866
  function km(e) {
12867
12867
  return new Us(e);
@@ -12929,7 +12929,7 @@ function OS(e, t) {
12929
12929
  return !0;
12930
12930
  }
12931
12931
  function zu(e) {
12932
- return e instanceof kr || e instanceof Po || e instanceof hi;
12932
+ return e instanceof kr || e instanceof Po || e instanceof di;
12933
12933
  }
12934
12934
  function jl(e, t) {
12935
12935
  const n = Qc.copy(), r = gr(n, e, t);
@@ -12941,13 +12941,13 @@ function gr(e, t, n) {
12941
12941
  const r = e.known(t, n);
12942
12942
  if (r !== void 0)
12943
12943
  return r;
12944
- if (e.add(t, n), n instanceof hi || t instanceof Ll || t instanceof Vl && n instanceof ql)
12944
+ if (e.add(t, n), n instanceof di || t instanceof Ll || t instanceof Vl && n instanceof ql)
12945
12945
  return !0;
12946
12946
  if (t instanceof Rs && n instanceof Rs)
12947
12947
  return gr(e, t._type, n._type);
12948
12948
  if (n instanceof kr)
12949
12949
  return !0;
12950
- if (t instanceof Gi && n instanceof Gi) {
12950
+ if (t instanceof Wi && n instanceof Wi) {
12951
12951
  const i = t.fieldsAsObject;
12952
12952
  for (const [s, o] of n._fields) {
12953
12953
  const c = i[cn(s)];
@@ -13004,11 +13004,11 @@ const BS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13004
13004
  __proto__: null,
13005
13005
  Bool: lm,
13006
13006
  BoolClass: sm,
13007
- ConstructType: pi,
13007
+ ConstructType: yi,
13008
13008
  Empty: um,
13009
13009
  EmptyClass: Ll,
13010
- FixedIntClass: Ki,
13011
- FixedNatClass: ai,
13010
+ FixedIntClass: Gi,
13011
+ FixedNatClass: ui,
13012
13012
  Float32: gm,
13013
13013
  Float64: mm,
13014
13014
  FloatClass: Dl,
@@ -13036,9 +13036,9 @@ const BS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13036
13036
  Rec: Pm,
13037
13037
  RecClass: Nn,
13038
13038
  Record: Nm,
13039
- RecordClass: Gi,
13039
+ RecordClass: Wi,
13040
13040
  Reserved: fm,
13041
- ReservedClass: hi,
13041
+ ReservedClass: di,
13042
13042
  Service: Um,
13043
13043
  ServiceClass: Sa,
13044
13044
  Text: dm,
@@ -13120,7 +13120,7 @@ function Lm(e, t) {
13120
13120
  return i;
13121
13121
  return null;
13122
13122
  }
13123
- const Ui = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : globalThis, qm = (e) => !Uo(e) && e !== Ui;
13123
+ const Ci = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : globalThis, qm = (e) => !Uo(e) && e !== Ci;
13124
13124
  function Jf() {
13125
13125
  const { caseless: e } = qm(this) && this || {}, t = {}, n = (r, i) => {
13126
13126
  const s = e && Lm(t, i) || i;
@@ -13229,14 +13229,14 @@ const fT = (e) => {
13229
13229
  return r;
13230
13230
  };
13231
13231
  return n(e, 0);
13232
- }, lT = Gn("AsyncFunction"), hT = (e) => e && (dc(e) || dn(e)) && dn(e.then) && dn(e.catch), Dm = ((e, t) => e ? setImmediate : t ? ((n, r) => (Ui.addEventListener("message", ({ source: i, data: s }) => {
13233
- i === Ui && s === n && r.length && r.shift()();
13232
+ }, lT = Gn("AsyncFunction"), hT = (e) => e && (dc(e) || dn(e)) && dn(e.then) && dn(e.catch), Dm = ((e, t) => e ? setImmediate : t ? ((n, r) => (Ci.addEventListener("message", ({ source: i, data: s }) => {
13233
+ i === Ci && s === n && r.length && r.shift()();
13234
13234
  }, !1), (i) => {
13235
- r.push(i), Ui.postMessage(n, "*");
13235
+ r.push(i), Ci.postMessage(n, "*");
13236
13236
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
13237
13237
  typeof setImmediate == "function",
13238
- dn(Ui.postMessage)
13239
- ), dT = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ui) : typeof process < "u" && process.nextTick || Dm, pT = (e) => e != null && dn(e[su]), z = {
13238
+ dn(Ci.postMessage)
13239
+ ), dT = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ci) : typeof process < "u" && process.nextTick || Dm, pT = (e) => e != null && dn(e[su]), z = {
13240
13240
  isArray: js,
13241
13241
  isArrayBuffer: Fm,
13242
13242
  isBuffer: hc,
@@ -13286,7 +13286,7 @@ const fT = (e) => {
13286
13286
  noop: cT,
13287
13287
  toFiniteNumber: aT,
13288
13288
  findKey: Lm,
13289
- global: Ui,
13289
+ global: Ci,
13290
13290
  isContextDefined: qm,
13291
13291
  isSpecCompliantForm: uT,
13292
13292
  toJSONObject: fT,
@@ -13992,7 +13992,7 @@ function Jm(e, t, n) {
13992
13992
  return e && (r || n == !1) ? $T(e, t) : t;
13993
13993
  }
13994
13994
  const t0 = (e) => e instanceof pn ? { ...e } : e;
13995
- function Wi(e, t) {
13995
+ function Xi(e, t) {
13996
13996
  t = t || {};
13997
13997
  const n = {};
13998
13998
  function r(u, f, l, d) {
@@ -14057,7 +14057,7 @@ function Wi(e, t) {
14057
14057
  }), n;
14058
14058
  }
14059
14059
  const Qm = (e) => {
14060
- const t = Wi({}, e);
14060
+ const t = Xi({}, e);
14061
14061
  let { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: s, headers: o, auth: c } = t;
14062
14062
  t.headers = o = pn.from(o), t.url = Wm(Jm(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
14063
14063
  "Authorization",
@@ -14458,7 +14458,7 @@ const na = {
14458
14458
  assertOptions: nx,
14459
14459
  validators: fu
14460
14460
  }, Yn = na.validators;
14461
- let Li = class {
14461
+ let qi = class {
14462
14462
  constructor(t) {
14463
14463
  this.defaults = t || {}, this.interceptors = {
14464
14464
  request: new Zd(),
@@ -14491,7 +14491,7 @@ let Li = class {
14491
14491
  }
14492
14492
  }
14493
14493
  _request(t, n) {
14494
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Wi(this.defaults, n);
14494
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Xi(this.defaults, n);
14495
14495
  const { transitional: r, paramsSerializer: i, headers: s } = n;
14496
14496
  r !== void 0 && na.assertOptions(r, {
14497
14497
  silentJSONParsing: Yn.transitional(Yn.boolean),
@@ -14553,14 +14553,14 @@ let Li = class {
14553
14553
  return f;
14554
14554
  }
14555
14555
  getUri(t) {
14556
- t = Wi(this.defaults, t);
14556
+ t = Xi(this.defaults, t);
14557
14557
  const n = Jm(t.baseURL, t.url, t.allowAbsoluteUrls);
14558
14558
  return Wm(n, t.params, t.paramsSerializer);
14559
14559
  }
14560
14560
  };
14561
14561
  z.forEach(["delete", "get", "head", "options"], function(t) {
14562
- Li.prototype[t] = function(n, r) {
14563
- return this.request(Wi(r || {}, {
14562
+ qi.prototype[t] = function(n, r) {
14563
+ return this.request(Xi(r || {}, {
14564
14564
  method: t,
14565
14565
  url: n,
14566
14566
  data: (r || {}).data
@@ -14570,7 +14570,7 @@ z.forEach(["delete", "get", "head", "options"], function(t) {
14570
14570
  z.forEach(["post", "put", "patch"], function(t) {
14571
14571
  function n(r) {
14572
14572
  return function(s, o, c) {
14573
- return this.request(Wi(c || {}, {
14573
+ return this.request(Xi(c || {}, {
14574
14574
  method: t,
14575
14575
  headers: r ? {
14576
14576
  "Content-Type": "multipart/form-data"
@@ -14580,7 +14580,7 @@ z.forEach(["post", "put", "patch"], function(t) {
14580
14580
  }));
14581
14581
  };
14582
14582
  }
14583
- Li.prototype[t] = n(), Li.prototype[t + "Form"] = n(!0);
14583
+ qi.prototype[t] = n(), qi.prototype[t + "Form"] = n(!0);
14584
14584
  });
14585
14585
  let rx = class iw {
14586
14586
  constructor(t) {
@@ -14732,13 +14732,13 @@ Object.entries(rl).forEach(([e, t]) => {
14732
14732
  rl[t] = e;
14733
14733
  });
14734
14734
  function sw(e) {
14735
- const t = new Li(e), n = Cm(Li.prototype.request, t);
14736
- return z.extend(n, Li.prototype, t, { allOwnKeys: !0 }), z.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(i) {
14737
- return sw(Wi(e, i));
14735
+ const t = new qi(e), n = Cm(qi.prototype.request, t);
14736
+ return z.extend(n, qi.prototype, t, { allOwnKeys: !0 }), z.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(i) {
14737
+ return sw(Xi(e, i));
14738
14738
  }, n;
14739
14739
  }
14740
14740
  const ht = sw(yc);
14741
- ht.Axios = Li;
14741
+ ht.Axios = qi;
14742
14742
  ht.CanceledError = Ks;
14743
14743
  ht.CancelToken = rx;
14744
14744
  ht.isCancel = Ym;
@@ -14751,7 +14751,7 @@ ht.all = function(t) {
14751
14751
  };
14752
14752
  ht.spread = ix;
14753
14753
  ht.isAxiosError = sx;
14754
- ht.mergeConfig = Wi;
14754
+ ht.mergeConfig = Xi;
14755
14755
  ht.AxiosHeaders = pn;
14756
14756
  ht.formToJSON = (e) => zm(z.isHTMLForm(e) ? new FormData(e) : e);
14757
14757
  ht.getAdapter = nw.getAdapter;
@@ -14789,7 +14789,7 @@ class ox {
14789
14789
  }
14790
14790
  async utxosByAddress(t, n, r = !0) {
14791
14791
  return await this.axios.get(
14792
- `/addresses/${t}/utxos?filter_dust=true&filter_dust_threshold=547&exclude_metaprotocols=${r}&order=asc&count=100${n ? `&cursor=${n}` : ""}`
14792
+ `/addresses/${t}/utxos?filter_dust=true&filter_dust_threshold=547&exclude_metaprotocols=${r}&ignore_used_brc20=true&order=asc&count=100${n ? `&cursor=${n}` : ""}`
14793
14793
  ).then((s) => s.data);
14794
14794
  }
14795
14795
  async inscriptionIdsByCollectionSymbol(t, n) {
@@ -14872,42 +14872,42 @@ class _r extends Error {
14872
14872
  return `${this.name} (${this.kind}): ${this.message}`;
14873
14873
  }
14874
14874
  }
14875
- class Ji extends _r {
14875
+ class Qi extends _r {
14876
14876
  static fromCode(t) {
14877
14877
  return new this(t);
14878
14878
  }
14879
14879
  }
14880
- class An extends Ji {
14880
+ class An extends Qi {
14881
14881
  constructor(t) {
14882
14882
  super(t, Pr.Trust), this.name = "TrustError", Object.setPrototypeOf(this, An.prototype);
14883
14883
  }
14884
14884
  }
14885
- class yt extends Ji {
14885
+ class yt extends Qi {
14886
14886
  constructor(t) {
14887
14887
  super(t, Pr.Protocol), this.name = "ProtocolError", Object.setPrototypeOf(this, yt.prototype);
14888
14888
  }
14889
14889
  }
14890
- class Ss extends Ji {
14890
+ class Ss extends Qi {
14891
14891
  constructor(t) {
14892
14892
  super(t, Pr.Reject), this.name = "RejectError", Object.setPrototypeOf(this, Ss.prototype);
14893
14893
  }
14894
14894
  }
14895
- class Aa extends Ji {
14895
+ class Aa extends Qi {
14896
14896
  constructor(t) {
14897
14897
  super(t, Pr.Transport), this.name = "TransportError", Object.setPrototypeOf(this, Aa.prototype);
14898
14898
  }
14899
14899
  }
14900
- class an extends Ji {
14900
+ class an extends Qi {
14901
14901
  constructor(t) {
14902
14902
  super(t, Pr.External), this.name = "ExternalError", Object.setPrototypeOf(this, an.prototype);
14903
14903
  }
14904
14904
  }
14905
- class et extends Ji {
14905
+ class et extends Qi {
14906
14906
  constructor(t) {
14907
14907
  super(t, Pr.Input), this.name = "InputError", Object.setPrototypeOf(this, et.prototype);
14908
14908
  }
14909
14909
  }
14910
- class un extends Ji {
14910
+ class un extends Qi {
14911
14911
  constructor(t) {
14912
14912
  super(t, Pr.Unknown), this.name = "UnknownError", Object.setPrototypeOf(this, un.prototype);
14913
14913
  }
@@ -15121,9 +15121,9 @@ class xo extends Ue {
15121
15121
  return this.error;
15122
15122
  }
15123
15123
  }
15124
- class Pi extends Ue {
15124
+ class Ri extends Ue {
15125
15125
  constructor() {
15126
- super(), this.name = "IdentityInvalidErrorCode", Object.setPrototypeOf(this, Pi.prototype);
15126
+ super(), this.name = "IdentityInvalidErrorCode", Object.setPrototypeOf(this, Ri.prototype);
15127
15127
  }
15128
15128
  toErrorMessage() {
15129
15129
  return "This identity has expired due this application's security policy. Please refresh your authentication.";
@@ -15320,7 +15320,7 @@ class a0 {
15320
15320
  };
15321
15321
  }
15322
15322
  }
15323
- class Qi extends Error {
15323
+ class es extends Error {
15324
15324
  constructor(t) {
15325
15325
  super(t), this.name = "DecodingError";
15326
15326
  }
@@ -15347,10 +15347,10 @@ function wx(e) {
15347
15347
  let Fo = new Uint8Array(), ro, Dn = 0;
15348
15348
  function bx(e, t) {
15349
15349
  Fo = e, Dn = 0;
15350
- const n = qi();
15350
+ const n = Vi();
15351
15351
  return t?.(n) ?? n;
15352
15352
  }
15353
- function qi(e) {
15353
+ function Vi(e) {
15354
15354
  const [t, n] = ra();
15355
15355
  switch (t) {
15356
15356
  case xt.UnsignedInteger:
@@ -15370,12 +15370,12 @@ function qi(e) {
15370
15370
  case xt.Simple:
15371
15371
  return _x(n);
15372
15372
  }
15373
- throw new Qi(`Unsupported major type: ${t}`);
15373
+ throw new es(`Unsupported major type: ${t}`);
15374
15374
  }
15375
15375
  function ra() {
15376
15376
  const e = Fo.at(Dn);
15377
15377
  if (yx(e))
15378
- throw new Qi("Provided CBOR data is empty");
15378
+ throw new es("Provided CBOR data is empty");
15379
15379
  const t = mx(e), n = wx(e);
15380
15380
  return Dn++, [t, n];
15381
15381
  }
@@ -15383,14 +15383,14 @@ function Ex(e, t) {
15383
15383
  const n = Ws(e);
15384
15384
  if (n === 1 / 0) {
15385
15385
  const i = [];
15386
- let s = qi();
15386
+ let s = Vi();
15387
15387
  for (; s !== aw; )
15388
- i.push(s), s = qi();
15388
+ i.push(s), s = Vi();
15389
15389
  return i;
15390
15390
  }
15391
15391
  const r = new Array(n);
15392
15392
  for (let i = 0; i < n; i++) {
15393
- const s = qi();
15393
+ const s = Vi();
15394
15394
  r[i] = s;
15395
15395
  }
15396
15396
  return r;
@@ -15408,14 +15408,14 @@ function _x(e) {
15408
15408
  case Vn.Break:
15409
15409
  return aw;
15410
15410
  }
15411
- throw new Qi(`Unrecognized simple type: ${e.toString(2)}`);
15411
+ throw new es(`Unrecognized simple type: ${e.toString(2)}`);
15412
15412
  }
15413
15413
  function Sx(e, t) {
15414
15414
  const n = Ws(e), r = {};
15415
15415
  if (n === 1 / 0) {
15416
15416
  let [i, s] = ra();
15417
15417
  for (; i !== xt.Simple && s !== Vn.Break; ) {
15418
- const o = sl(s), c = qi();
15418
+ const o = sl(s), c = Vi();
15419
15419
  r[o] = c, [i, s] = ra();
15420
15420
  }
15421
15421
  return r;
@@ -15423,8 +15423,8 @@ function Sx(e, t) {
15423
15423
  for (let i = 0; i < n; i++) {
15424
15424
  const [s, o] = ra();
15425
15425
  if (s !== xt.TextString)
15426
- throw new Qi("Map keys must be text strings");
15427
- const c = sl(o), a = qi();
15426
+ throw new es("Map keys must be text strings");
15427
+ const c = sl(o), a = Vi();
15428
15428
  r[c] = a;
15429
15429
  }
15430
15430
  return r;
@@ -15444,7 +15444,7 @@ function Ws(e) {
15444
15444
  case Ln.Indefinite:
15445
15445
  return 1 / 0;
15446
15446
  default:
15447
- throw new Qi(`Unsupported integer info: ${e.toString(2)}`);
15447
+ throw new es(`Unsupported integer info: ${e.toString(2)}`);
15448
15448
  }
15449
15449
  }
15450
15450
  function Tx(e) {
@@ -15454,7 +15454,7 @@ function Tx(e) {
15454
15454
  function fw(e) {
15455
15455
  const t = Ws(e);
15456
15456
  if (t > Number.MAX_SAFE_INTEGER)
15457
- throw new Qi("Byte length is too large");
15457
+ throw new es("Byte length is too large");
15458
15458
  const n = Number(t);
15459
15459
  return Dn += n, Fo.slice(Dn - n, Dn);
15460
15460
  }
@@ -15465,8 +15465,8 @@ function sl(e) {
15465
15465
  function xx(e, t) {
15466
15466
  const n = Ws(e);
15467
15467
  if (n === cw)
15468
- return qi();
15469
- throw new Qi(`Unsupported tag: ${n}.`);
15468
+ return Vi();
15469
+ throw new es(`Unsupported tag: ${n}.`);
15470
15470
  }
15471
15471
  class lh extends Error {
15472
15472
  constructor(t) {
@@ -15631,10 +15631,10 @@ const Cc = () => {
15631
15631
  }
15632
15632
  return typeof crypto < "u" && crypto.randomInt ? crypto.randomInt(0, 4294967295) : Math.floor(Math.random() * 4294967295);
15633
15633
  };
15634
- var Ci;
15634
+ var Hi;
15635
15635
  (function(e) {
15636
15636
  e.Query = "read", e.ReadState = "read_state", e.Call = "call";
15637
- })(Ci || (Ci = {}));
15637
+ })(Hi || (Hi = {}));
15638
15638
  var ol;
15639
15639
  (function(e) {
15640
15640
  e.Call = "call";
@@ -15710,7 +15710,7 @@ class vs {
15710
15710
  function f0(e = cl) {
15711
15711
  return async (t) => {
15712
15712
  const n = t.request.headers;
15713
- t.request.headers = n, t.endpoint === Ci.Call && (t.body.nonce = e());
15713
+ t.request.headers = n, t.endpoint === Hi.Call && (t.body.nonce = e());
15714
15714
  };
15715
15715
  }
15716
15716
  function nf(e) {
@@ -15790,7 +15790,7 @@ function Vo(e) {
15790
15790
  function Vx(e, t) {
15791
15791
  return e >> BigInt(t) & Ra;
15792
15792
  }
15793
- const es = (e) => (Ra << BigInt(e)) - Ra;
15793
+ const ts = (e) => (Ra << BigInt(e)) - Ra;
15794
15794
  function Dx(e) {
15795
15795
  return typeof e == "function" && Number.isSafeInteger(e.outputLen);
15796
15796
  }
@@ -15821,7 +15821,7 @@ function Do(e) {
15821
15821
  };
15822
15822
  }
15823
15823
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
15824
- const ln = BigInt(0), Mt = BigInt(1), Hi = /* @__PURE__ */ BigInt(2), Ew = /* @__PURE__ */ BigInt(3), _w = /* @__PURE__ */ BigInt(4), Sw = /* @__PURE__ */ BigInt(5), $x = /* @__PURE__ */ BigInt(7), Tw = /* @__PURE__ */ BigInt(8), jx = /* @__PURE__ */ BigInt(9), xw = /* @__PURE__ */ BigInt(16);
15824
+ const ln = BigInt(0), Mt = BigInt(1), Fi = /* @__PURE__ */ BigInt(2), Ew = /* @__PURE__ */ BigInt(3), _w = /* @__PURE__ */ BigInt(4), Sw = /* @__PURE__ */ BigInt(5), $x = /* @__PURE__ */ BigInt(7), Tw = /* @__PURE__ */ BigInt(8), jx = /* @__PURE__ */ BigInt(9), xw = /* @__PURE__ */ BigInt(16);
15825
15825
  function mt(e, t) {
15826
15826
  const n = e % t;
15827
15827
  return n >= ln ? n : t + n;
@@ -15855,11 +15855,11 @@ function Aw(e, t) {
15855
15855
  return yh(e, r, t), r;
15856
15856
  }
15857
15857
  function Kx(e, t) {
15858
- const n = (e.ORDER - Sw) / Tw, r = e.mul(t, Hi), i = e.pow(r, n), s = e.mul(t, i), o = e.mul(e.mul(s, Hi), i), c = e.mul(s, e.sub(o, e.ONE));
15858
+ const n = (e.ORDER - Sw) / Tw, r = e.mul(t, Fi), i = e.pow(r, n), s = e.mul(t, i), o = e.mul(e.mul(s, Fi), i), c = e.mul(s, e.sub(o, e.ONE));
15859
15859
  return yh(e, c, t), c;
15860
15860
  }
15861
15861
  function Gx(e) {
15862
- const t = yi(e), n = vw(e), r = n(t, t.neg(t.ONE)), i = n(t, r), s = n(t, t.neg(r)), o = (e + $x) / xw;
15862
+ const t = gi(e), n = vw(e), r = n(t, t.neg(t.ONE)), i = n(t, r), s = n(t, t.neg(r)), o = (e + $x) / xw;
15863
15863
  return (c, a) => {
15864
15864
  let u = c.pow(a, o), f = c.mul(u, r);
15865
15865
  const l = c.mul(u, i), d = c.mul(u, s), y = c.eql(c.sqr(f), a), g = c.eql(c.sqr(l), a);
@@ -15872,17 +15872,17 @@ function vw(e) {
15872
15872
  if (e < Ew)
15873
15873
  throw new Error("sqrt is not defined for small field");
15874
15874
  let t = e - Mt, n = 0;
15875
- for (; t % Hi === ln; )
15876
- t /= Hi, n++;
15877
- let r = Hi;
15878
- const i = yi(e);
15875
+ for (; t % Fi === ln; )
15876
+ t /= Fi, n++;
15877
+ let r = Fi;
15878
+ const i = gi(e);
15879
15879
  for (; Ua(i, r) === 1; )
15880
15880
  if (r++ > 1e3)
15881
15881
  throw new Error("Cannot find square root: probably non-prime P");
15882
15882
  if (n === 1)
15883
15883
  return Aw;
15884
15884
  let s = i.pow(r, t);
15885
- const o = (t + Mt) / Hi;
15885
+ const o = (t + Mt) / Fi;
15886
15886
  return function(a, u) {
15887
15887
  if (a.is0(u))
15888
15888
  return u;
@@ -15945,12 +15945,12 @@ function mu(e, t, n) {
15945
15945
  n & Mt && (r = e.mul(r, i)), i = e.sqr(i), n >>= Mt;
15946
15946
  return r;
15947
15947
  }
15948
- function ts(e, t, n = !1) {
15948
+ function ns(e, t, n = !1) {
15949
15949
  const r = new Array(t.length).fill(n ? e.ZERO : void 0), i = t.reduce((o, c, a) => e.is0(c) ? o : (r[a] = o, e.mul(o, c)), e.ONE), s = e.inv(i);
15950
15950
  return t.reduceRight((o, c, a) => e.is0(c) ? o : (r[a] = e.mul(o, r[a]), e.mul(o, c)), s), r;
15951
15951
  }
15952
15952
  function Ua(e, t) {
15953
- const n = (e.ORDER - Mt) / Hi, r = e.pow(t, n), i = e.eql(r, e.ONE), s = e.eql(r, e.ZERO), o = e.eql(r, e.neg(e.ONE));
15953
+ const n = (e.ORDER - Mt) / Fi, r = e.pow(t, n), i = e.eql(r, e.ONE), s = e.eql(r, e.ZERO), o = e.eql(r, e.neg(e.ONE));
15954
15954
  if (!i && !s && !o)
15955
15955
  throw new Error("invalid Legendre symbol result");
15956
15956
  return i ? 1 : s ? 0 : -1;
@@ -15960,7 +15960,7 @@ function Yx(e, t) {
15960
15960
  const n = t !== void 0 ? t : e.toString(2).length, r = Math.ceil(n / 8);
15961
15961
  return { nBitLength: n, nByteLength: r };
15962
15962
  }
15963
- function yi(e, t, n = !1, r = {}) {
15963
+ function gi(e, t, n = !1, r = {}) {
15964
15964
  if (e <= ln)
15965
15965
  throw new Error("invalid field: expected ORDER > 0, got " + e);
15966
15966
  let i, s, o = !1, c;
@@ -15980,7 +15980,7 @@ function yi(e, t, n = !1, r = {}) {
15980
15980
  isLE: n,
15981
15981
  BITS: a,
15982
15982
  BYTES: u,
15983
- MASK: es(a),
15983
+ MASK: ts(a),
15984
15984
  ZERO: ln,
15985
15985
  ONE: Mt,
15986
15986
  allowedLengths: c,
@@ -16025,7 +16025,7 @@ function yi(e, t, n = !1, r = {}) {
16025
16025
  return g;
16026
16026
  },
16027
16027
  // TODO: we don't need it here, move out to separate fn
16028
- invertBatch: (d) => ts(l, d),
16028
+ invertBatch: (d) => ns(l, d),
16029
16029
  // We can't move this out because Fp6, Fp12 implement it
16030
16030
  // and it's unclear what to return in there.
16031
16031
  cmov: (d, y, g) => g ? y : d
@@ -16050,13 +16050,13 @@ function Zx(e, t, n = !1) {
16050
16050
  return n ? mw(c, i) : Ct(c, i);
16051
16051
  }
16052
16052
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
16053
- const Fs = BigInt(0), Fi = BigInt(1);
16053
+ const Fs = BigInt(0), Mi = BigInt(1);
16054
16054
  function Ca(e, t) {
16055
16055
  const n = t.negate();
16056
16056
  return e ? n : t;
16057
16057
  }
16058
16058
  function xr(e, t) {
16059
- const n = ts(e.Fp, t.map((r) => r.Z));
16059
+ const n = ns(e.Fp, t.map((r) => r.Z));
16060
16060
  return t.map((r, i) => e.fromAffine(r.toAffine(n[i])));
16061
16061
  }
16062
16062
  function Nw(e, t) {
@@ -16065,13 +16065,13 @@ function Nw(e, t) {
16065
16065
  }
16066
16066
  function sf(e, t) {
16067
16067
  Nw(e, t);
16068
- const n = Math.ceil(t / e) + 1, r = 2 ** (e - 1), i = 2 ** e, s = es(e), o = BigInt(e);
16068
+ const n = Math.ceil(t / e) + 1, r = 2 ** (e - 1), i = 2 ** e, s = ts(e), o = BigInt(e);
16069
16069
  return { windows: n, windowSize: r, mask: s, maxNumber: i, shiftBy: o };
16070
16070
  }
16071
16071
  function p0(e, t, n) {
16072
16072
  const { windowSize: r, mask: i, maxNumber: s, shiftBy: o } = n;
16073
16073
  let c = Number(e & i), a = e >> o;
16074
- c > r && (c -= s, a += Fi);
16074
+ c > r && (c -= s, a += Mi);
16075
16075
  const u = t * r, f = u + Math.abs(c) - 1, l = c === 0, d = c < 0, y = t % 2 !== 0;
16076
16076
  return { nextN: a, offset: f, isZero: l, isNeg: d, isNegF: y, offsetF: u };
16077
16077
  }
@@ -16108,7 +16108,7 @@ class Pw {
16108
16108
  _unsafeLadder(t, n, r = this.ZERO) {
16109
16109
  let i = t;
16110
16110
  for (; n > Fs; )
16111
- n & Fi && (r = r.add(i)), i = i.double(), n >>= Fi;
16111
+ n & Mi && (r = r.add(i)), i = i.double(), n >>= Mi;
16112
16112
  return r;
16113
16113
  }
16114
16114
  /**
@@ -16192,7 +16192,7 @@ class Pw {
16192
16192
  function e3(e, t, n, r) {
16193
16193
  let i = t, s = e.ZERO, o = e.ZERO;
16194
16194
  for (; n > Fs || r > Fs; )
16195
- n & Fi && (s = s.add(i)), r & Fi && (o = o.add(i)), i = i.double(), n >>= Fi, r >>= Fi;
16195
+ n & Mi && (s = s.add(i)), r & Mi && (o = o.add(i)), i = i.double(), n >>= Mi, r >>= Mi;
16196
16196
  return { p1: s, p2: o };
16197
16197
  }
16198
16198
  function Rw(e, t, n, r) {
@@ -16203,7 +16203,7 @@ function Rw(e, t, n, r) {
16203
16203
  const o = e.ZERO, c = Vo(BigInt(i));
16204
16204
  let a = 1;
16205
16205
  c > 12 ? a = c - 3 : c > 4 ? a = c - 2 : c > 0 && (a = 2);
16206
- const u = es(a), f = new Array(Number(u) + 1).fill(o), l = Math.floor((t.BITS - 1) / a) * a;
16206
+ const u = ts(a), f = new Array(Number(u) + 1).fill(o), l = Math.floor((t.BITS - 1) / a) * a;
16207
16207
  let d = o;
16208
16208
  for (let y = l; y >= 0; y -= a) {
16209
16209
  f.fill(o);
@@ -16226,7 +16226,7 @@ function g0(e, t, n) {
16226
16226
  throw new Error("Field.ORDER must match order: Fp == p, Fn == n");
16227
16227
  return Iw(t), t;
16228
16228
  } else
16229
- return yi(e, { isLE: n });
16229
+ return gi(e, { isLE: n });
16230
16230
  }
16231
16231
  function Uw(e, t, n = {}, r) {
16232
16232
  if (r === void 0 && (r = e === "edwards"), !t || typeof t != "object")
@@ -16323,7 +16323,7 @@ function af(e, t, n) {
16323
16323
  function Hw(e, t) {
16324
16324
  const n = t.map((r) => Array.from(r).reverse());
16325
16325
  return (r, i) => {
16326
- const [s, o, c, a] = n.map((l) => l.reduce((d, y) => e.add(e.mul(d, r), y))), [u, f] = ts(e, [o, a], !0);
16326
+ const [s, o, c, a] = n.map((l) => l.reduce((d, y) => e.add(e.mul(d, r), y))), [u, f] = ns(e, [o, a], !0);
16327
16327
  return r = e.mul(s, u), i = e.mul(i, e.mul(c, f)), { x: r, y: i };
16328
16328
  };
16329
16329
  }
@@ -16370,14 +16370,14 @@ const w0 = (e, t) => (e + (e >= 0 ? t : -t) / mr) / t;
16370
16370
  function o3(e, t, n) {
16371
16371
  const [[r, i], [s, o]] = t, c = w0(o * e, n), a = w0(-i * e, n);
16372
16372
  let u = e - c * r - a * s, f = -c * i - a * o;
16373
- const l = u < Mi, d = f < Mi;
16373
+ const l = u < Li, d = f < Li;
16374
16374
  l && (u = -u), d && (f = -f);
16375
- const y = es(Math.ceil(Vo(n) / 2)) + Qt;
16376
- if (u < Mi || u >= y || f < Mi || f >= y)
16375
+ const y = ts(Math.ceil(Vo(n) / 2)) + Qt;
16376
+ if (u < Li || u >= y || f < Li || f >= y)
16377
16377
  throw new Error("splitScalar (endomorphism): failed, k=" + e);
16378
16378
  return { k1neg: l, k1: u, k2neg: d, k2: f };
16379
16379
  }
16380
- const Mi = BigInt(0), Qt = BigInt(1), mr = BigInt(2), ms = BigInt(3), al = BigInt(4);
16380
+ const Li = BigInt(0), Qt = BigInt(1), mr = BigInt(2), ms = BigInt(3), al = BigInt(4);
16381
16381
  function Ha(e, t) {
16382
16382
  const { BYTES: n } = e;
16383
16383
  let r;
@@ -16631,7 +16631,7 @@ function c3(e, t = {}) {
16631
16631
  const { endo: D } = t, P = this;
16632
16632
  if (!i.isValid(H))
16633
16633
  throw new Error("invalid scalar: out of range");
16634
- if (H === Mi || P.is0())
16634
+ if (H === Li || P.is0())
16635
16635
  return v.ZERO;
16636
16636
  if (H === Qt)
16637
16637
  return P;
@@ -16713,8 +16713,8 @@ function a3(e) {
16713
16713
  }
16714
16714
  function u3(e, t) {
16715
16715
  const n = e.ORDER;
16716
- let r = Mi;
16717
- for (let g = n - Qt; g % mr === Mi; g /= mr)
16716
+ let r = Li;
16717
+ for (let g = n - Qt; g % mr === Li; g /= mr)
16718
16718
  r += Qt;
16719
16719
  const i = r, s = mr << i - Qt - Qt, o = s * mr, c = (n - Qt) / o, a = (c - Qt) / mr, u = o - Qt, f = s, l = e.pow(t, c), d = e.pow(t, (c + Qt) / mr);
16720
16720
  let y = (g, m) => {
@@ -16765,7 +16765,7 @@ function Fw(e, t) {
16765
16765
  g = e.mul(c, o), g = e.mul(g, E), y = e.cmov(y, u, m), g = e.cmov(g, E, m);
16766
16766
  const S = e.isOdd(o) === e.isOdd(g);
16767
16767
  g = e.cmov(e.neg(g), g, S);
16768
- const _ = ts(e, [f], !0)[0];
16768
+ const _ = ns(e, [f], !0)[0];
16769
16769
  return y = e.mul(y, _), { x: y, y: g };
16770
16770
  };
16771
16771
  }
@@ -16793,7 +16793,7 @@ function l3(e) {
16793
16793
  Gy: e.Gy
16794
16794
  }, n = e.Fp;
16795
16795
  let r = e.allowedPrivateKeyLengths ? Array.from(new Set(e.allowedPrivateKeyLengths.map((o) => Math.ceil(o / 2)))) : void 0;
16796
- const i = yi(t.n, {
16796
+ const i = gi(t.n, {
16797
16797
  BITS: e.nBitLength,
16798
16798
  allowedLengths: r,
16799
16799
  modFromBytes: e.wrapPrivateKey
@@ -17169,7 +17169,7 @@ class b3 {
17169
17169
  return mu(this, t, n);
17170
17170
  }
17171
17171
  invertBatch(t) {
17172
- return ts(this, t);
17172
+ return ns(this, t);
17173
17173
  }
17174
17174
  // Normalized
17175
17175
  add(t, n) {
@@ -17375,7 +17375,7 @@ class E3 {
17375
17375
  return mu(this, t, n);
17376
17376
  }
17377
17377
  invertBatch(t) {
17378
- return ts(this, t);
17378
+ return ns(this, t);
17379
17379
  }
17380
17380
  inv({ c0: t, c1: n, c2: r }) {
17381
17381
  const { Fp2: i } = this;
@@ -17503,7 +17503,7 @@ class _3 {
17503
17503
  return mu(this, t, n);
17504
17504
  }
17505
17505
  invertBatch(t) {
17506
- return ts(this, t);
17506
+ return ns(this, t);
17507
17507
  }
17508
17508
  // Normalized
17509
17509
  add({ c0: t, c1: n }, { c0: r, c1: i }) {
@@ -17667,11 +17667,11 @@ class _3 {
17667
17667
  }
17668
17668
  }
17669
17669
  function S3(e) {
17670
- const t = yi(e.ORDER), n = new b3(t, e), r = new E3(n), i = new _3(r, e);
17670
+ const t = gi(e.ORDER), n = new b3(t, e), r = new E3(n), i = new _3(r, e);
17671
17671
  return { Fp: t, Fp2: n, Fp6: r, Fp12: i };
17672
17672
  }
17673
17673
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
17674
- const Kt = BigInt(0), Fa = BigInt(1), kn = BigInt(2), wu = BigInt(3), jo = BigInt(4), si = BigInt("0xd201000000010000"), T3 = Vo(si), Xi = {
17674
+ const Kt = BigInt(0), Fa = BigInt(1), kn = BigInt(2), wu = BigInt(3), jo = BigInt(4), si = BigInt("0xd201000000010000"), T3 = Vo(si), zi = {
17675
17675
  p: BigInt("0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab"),
17676
17676
  n: BigInt("0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001"),
17677
17677
  h: BigInt("0x396c8c005555e1568c00aaab0000aaab"),
@@ -17679,11 +17679,11 @@ const Kt = BigInt(0), Fa = BigInt(1), kn = BigInt(2), wu = BigInt(3), jo = BigIn
17679
17679
  b: jo,
17680
17680
  Gx: BigInt("0x17f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb"),
17681
17681
  Gy: BigInt("0x08b3f481e3aaa0f1a09e30ed741d8ae4fcf5e095d5d00af600db18cb2c04b3edd03cc744a2888ae40caa232946c5e7e1")
17682
- }, x3 = yi(Xi.n, {
17682
+ }, x3 = gi(zi.n, {
17683
17683
  modFromBytes: !0,
17684
17684
  isLE: !0
17685
17685
  }), { Fp: Ee, Fp2: Re, Fp6: A3, Fp12: Me } = S3({
17686
- ORDER: Xi.p,
17686
+ ORDER: zi.p,
17687
17687
  X_LEN: T3,
17688
17688
  // Finite extension field over irreducible polynominal.
17689
17689
  // Fp(u) / (u² - β) where β = -1
@@ -17706,7 +17706,7 @@ const Kt = BigInt(0), Fa = BigInt(1), kn = BigInt(2), wu = BigInt(3), jo = BigIn
17706
17706
  hash: En
17707
17707
  }), mh = {
17708
17708
  p: Re.ORDER,
17709
- n: Xi.n,
17709
+ n: zi.n,
17710
17710
  h: BigInt("0x5d543a95414e7f1091d50792876a202cd91de4547085abaa68a205b2e5a7ddfa628f1cb4d9e82ef21537e293a6691ae1616ec6e786f0c70cf1c38e31c7238e5"),
17711
17711
  a: Re.ZERO,
17712
17712
  b: Re.fromBigTuple([jo, jo]),
@@ -17750,13 +17750,13 @@ function lf(e) {
17750
17750
  function O3(e) {
17751
17751
  const { compressed: t, infinity: n, sort: r, value: i } = Eu(e), { BYTES: s, ORDER: o } = Ee;
17752
17752
  if (i.length === 48 && t) {
17753
- const c = ir(i), a = Ee.create(c & es(Ee.BITS));
17753
+ const c = ir(i), a = Ee.create(c & ts(Ee.BITS));
17754
17754
  if (n) {
17755
17755
  if (a !== Kt)
17756
17756
  throw new Error("invalid G1 point: non-empty, at infinity, with compression");
17757
17757
  return { x: Kt, y: Kt };
17758
17758
  }
17759
- const u = Ee.add(Ee.pow(a, wu), Ee.create(Xi.b));
17759
+ const u = Ee.add(Ee.pow(a, wu), Ee.create(zi.b));
17760
17760
  let f = Ee.sqrt(u);
17761
17761
  if (!f)
17762
17762
  throw new Error("invalid G1 point: compressed point");
@@ -17776,7 +17776,7 @@ function v0(e) {
17776
17776
  const { infinity: t, sort: n, value: r } = Eu(on("signatureHex", e, 48)), i = Ee.ORDER, s = _u.G1.Point, o = ir(r);
17777
17777
  if (t)
17778
17778
  return s.ZERO;
17779
- const c = Ee.create(o & es(Ee.BITS)), a = Ee.add(Ee.pow(c, wu), Ee.create(Xi.b));
17779
+ const c = Ee.create(o & ts(Ee.BITS)), a = Ee.add(Ee.pow(c, wu), Ee.create(zi.b));
17780
17780
  let u = Ee.sqrt(a);
17781
17781
  if (!u)
17782
17782
  throw new Error("invalid G1 point: compressed");
@@ -17842,7 +17842,7 @@ function I0(e) {
17842
17842
  const c = ir(i.slice(0, o)), a = ir(i.slice(o));
17843
17843
  if (n)
17844
17844
  return s.ZERO;
17845
- const u = Ee.create(c & es(Ee.BITS)), f = Ee.create(a), l = Re.create({ c0: f, c1: u }), d = Re.add(Re.pow(l, wu), mh.b);
17845
+ const u = Ee.create(c & ts(Ee.BITS)), f = Ee.create(a), l = Re.create({ c0: f, c1: u }), d = Re.add(Re.pow(l, wu), mh.b);
17846
17846
  let y = Re.sqrt(d);
17847
17847
  if (!y)
17848
17848
  throw new Error("Failed to find a square root");
@@ -17862,7 +17862,7 @@ const _u = m3({
17862
17862
  },
17863
17863
  // G1: y² = x³ + 4
17864
17864
  G1: {
17865
- ...Xi,
17865
+ ...zi,
17866
17866
  Fp: Ee,
17867
17867
  htfDefaults: { ...ff, m: 1, DST: "BLS_SIG_BLS12381G1_XMD:SHA-256_SSWU_RO_NUL_" },
17868
17868
  wrapPrivateKey: !0,
@@ -17947,7 +17947,7 @@ const _u = m3({
17947
17947
  params: {
17948
17948
  ateLoopSize: si,
17949
17949
  // The BLS parameter x for BLS12-381
17950
- r: Xi.n,
17950
+ r: zi.n,
17951
17951
  // order; z⁴ − z² + 1; CURVE.n from other curves
17952
17952
  xNegative: !0,
17953
17953
  twistType: "multiplicative"
@@ -18130,7 +18130,7 @@ function K3(e, t) {
18130
18130
  return !0;
18131
18131
  return !1;
18132
18132
  }
18133
- class Vi {
18133
+ class Di {
18134
18134
  #t = !1;
18135
18135
  #e = void 0;
18136
18136
  /**
@@ -18139,11 +18139,11 @@ class Vi {
18139
18139
  * @throws if the verification of the certificate fails
18140
18140
  */
18141
18141
  static async create(t) {
18142
- const n = Vi.createUnverified(t);
18142
+ const n = Di.createUnverified(t);
18143
18143
  return await n.verify(), n;
18144
18144
  }
18145
18145
  static createUnverified(t) {
18146
- return new Vi(t.certificate, t.rootKey, t.canisterId, t.blsVerify ?? F3, t.maxAgeInMinutes, t.disableTimeVerification, t.agent);
18146
+ return new Di(t.certificate, t.rootKey, t.canisterId, t.blsVerify ?? F3, t.maxAgeInMinutes, t.disableTimeVerification, t.agent);
18147
18147
  }
18148
18148
  constructor(t, n, r, i, s = D3, o = !1, c) {
18149
18149
  this._rootKey = n, this._canisterId = r, this._blsVerify = i, this._maxAgeInMinutes = s, this.#t = o, this.cert = tr(t), c && "getTimeDiffMsecs" in c && "hasSyncedTime" in c && "syncTime" in c && (this.#e = c);
@@ -18187,7 +18187,7 @@ class Vi {
18187
18187
  async _checkDelegationAndGetKey(t) {
18188
18188
  if (!t)
18189
18189
  return this._rootKey;
18190
- const n = Vi.createUnverified({
18190
+ const n = Di.createUnverified({
18191
18191
  certificate: t.certificate,
18192
18192
  rootKey: this._rootKey,
18193
18193
  canisterId: this._canisterId,
@@ -18417,7 +18417,7 @@ const B0 = async (e) => {
18417
18417
  throw an.fromCode(new Gs());
18418
18418
  const l = t.rootKey, d = await t.readState(i, {
18419
18419
  paths: [f]
18420
- }), y = await Vi.create({
18420
+ }), y = await Di.create({
18421
18421
  certificate: d.certificate,
18422
18422
  rootKey: l,
18423
18423
  canisterId: i,
@@ -18886,7 +18886,7 @@ function t8(e) {
18886
18886
  h: e.h,
18887
18887
  Gx: e.Gx,
18888
18888
  Gy: e.Gy
18889
- }, n = e.Fp, r = yi(t.n, e.nBitLength, !0), i = { Fp: n, Fn: r, uvRatio: e.uvRatio }, s = {
18889
+ }, n = e.Fp, r = gi(t.n, e.nBitLength, !0), i = { Fp: n, Fn: r, uvRatio: e.uvRatio }, s = {
18890
18890
  randomBytes: e.randomBytes,
18891
18891
  adjustScalarBytes: e.adjustScalarBytes,
18892
18892
  domain: e.domain,
@@ -18934,7 +18934,7 @@ function u8(e, t) {
18934
18934
  const c = mt(t * o * o, n), a = o, u = mt(o * k0, n), f = c === e, l = c === mt(-e, n), d = c === mt(-e * k0, n);
18935
18935
  return f && (o = a), (l || d) && (o = u), Xx(o, n) && (o = mt(-o, n)), { isValid: f || l, value: o };
18936
18936
  }
18937
- const f8 = yi(Vw.p, { isLE: !0 }), l8 = {
18937
+ const f8 = gi(Vw.p, { isLE: !0 }), l8 = {
18938
18938
  ...Vw,
18939
18939
  Fp: f8,
18940
18940
  hash: uE,
@@ -19216,23 +19216,23 @@ const g8 = (e, t) => {
19216
19216
  return o;
19217
19217
  };
19218
19218
  var Wo, Xo;
19219
- const Ri = class Ri {
19219
+ const Ui = class Ui {
19220
19220
  // `fromRaw` and `fromDer` should be used for instantiation, not this constructor.
19221
19221
  constructor(t) {
19222
19222
  sn(this, Wo);
19223
19223
  sn(this, Xo);
19224
- if (t.byteLength !== Ri.RAW_KEY_LENGTH)
19224
+ if (t.byteLength !== Ui.RAW_KEY_LENGTH)
19225
19225
  throw et.fromCode(new Rr("An Ed25519 public key must be exactly 32 bytes long"));
19226
- Yt(this, Wo, t), Yt(this, Xo, Ri.derEncode(t));
19226
+ Yt(this, Wo, t), Yt(this, Xo, Ui.derEncode(t));
19227
19227
  }
19228
19228
  static from(t) {
19229
19229
  return this.fromDer(t.toDer());
19230
19230
  }
19231
19231
  static fromRaw(t) {
19232
- return new Ri(t);
19232
+ return new Ui(t);
19233
19233
  }
19234
19234
  static fromDer(t) {
19235
- return new Ri(this.derDecode(t));
19235
+ return new Ui(this.derDecode(t));
19236
19236
  }
19237
19237
  static derEncode(t) {
19238
19238
  return y8(t, H0);
@@ -19256,8 +19256,8 @@ const Ri = class Ri {
19256
19256
  return this.rawKey;
19257
19257
  }
19258
19258
  };
19259
- Wo = new WeakMap(), Xo = new WeakMap(), Ri.RAW_KEY_LENGTH = 32;
19260
- let ll = Ri;
19259
+ Wo = new WeakMap(), Xo = new WeakMap(), Ui.RAW_KEY_LENGTH = 32;
19260
+ let ll = Ui;
19261
19261
  class m8 {
19262
19262
  constructor() {
19263
19263
  this.observers = [];
@@ -19485,7 +19485,7 @@ class vr {
19485
19485
  }
19486
19486
  async getPrincipal() {
19487
19487
  if (!this.#n)
19488
- throw an.fromCode(new Pi());
19488
+ throw an.fromCode(new Ri());
19489
19489
  return (await this.#n).getPrincipal();
19490
19490
  }
19491
19491
  /**
@@ -19503,7 +19503,7 @@ class vr {
19503
19503
  async call(t, n, r) {
19504
19504
  const i = n.callSync ?? !0, s = await (r ?? this.#n);
19505
19505
  if (!s)
19506
- throw an.fromCode(new Pi());
19506
+ throw an.fromCode(new Ri());
19507
19507
  const o = Ke.from(t), c = n.effectiveCanisterId ? Ke.from(n.effectiveCanisterId) : o;
19508
19508
  await this.#y(c);
19509
19509
  const a = s.getPrincipal(), u = yf(this.#o, this.#i), f = {
@@ -19523,7 +19523,7 @@ class vr {
19523
19523
  ...this.#r ? { Authorization: "Basic " + btoa(this.#r) } : {}
19524
19524
  }
19525
19525
  },
19526
- endpoint: Ci.Call,
19526
+ endpoint: Hi.Call,
19527
19527
  body: f
19528
19528
  }), d;
19529
19529
  n?.nonce ? d = y(n.nonce) : l.body.nonce ? d = y(l.body.nonce) : d = void 0, f.nonce = d;
@@ -19680,7 +19680,7 @@ class vr {
19680
19680
  let o;
19681
19681
  const c = await (r ?? this.#n);
19682
19682
  if (!c)
19683
- throw an.fromCode(new Pi());
19683
+ throw an.fromCode(new Ri());
19684
19684
  const a = Ke.from(t), u = c.getPrincipal(), f = yf(this.#o, this.#i), l = {
19685
19685
  request_type: Mo.Query,
19686
19686
  canister_id: a,
@@ -19697,7 +19697,7 @@ class vr {
19697
19697
  ...this.#r ? { Authorization: "Basic " + btoa(this.#r) } : {}
19698
19698
  }
19699
19699
  },
19700
- endpoint: Ci.Query,
19700
+ endpoint: Hi.Query,
19701
19701
  body: l
19702
19702
  }), o = await c.transformRequest(o);
19703
19703
  const y = tf(o.body), g = {
@@ -19756,7 +19756,7 @@ class vr {
19756
19756
  await this.#y();
19757
19757
  const r = await (n ?? this.#n);
19758
19758
  if (!r)
19759
- throw an.fromCode(new Pi());
19759
+ throw an.fromCode(new Ri());
19760
19760
  const i = r.getPrincipal(), s = await this._transform({
19761
19761
  request: {
19762
19762
  method: "POST",
@@ -19765,7 +19765,7 @@ class vr {
19765
19765
  ...this.#r ? { Authorization: "Basic " + btoa(this.#r) } : {}
19766
19766
  }
19767
19767
  },
19768
- endpoint: Ci.ReadState,
19768
+ endpoint: Hi.ReadState,
19769
19769
  body: {
19770
19770
  request_type: Mo.ReadState,
19771
19771
  paths: t.paths,
@@ -19792,7 +19792,7 @@ class vr {
19792
19792
  a = o(n);
19793
19793
  const f = await this.#n;
19794
19794
  if (!f)
19795
- throw an.fromCode(new Pi());
19795
+ throw an.fromCode(new Ri());
19796
19796
  c = await this.createReadStateRequest(n, f);
19797
19797
  }
19798
19798
  this.log.print(`fetching "/api/v2/canister/${s}/read_state" with request:`, c);
@@ -19929,7 +19929,7 @@ class vr {
19929
19929
  }
19930
19930
  _transform(t) {
19931
19931
  let n = Promise.resolve(t);
19932
- if (t.endpoint === Ci.Call)
19932
+ if (t.endpoint === Hi.Call)
19933
19933
  for (const r of this.#l)
19934
19934
  n = n.then((i) => r(i).then((s) => s || i));
19935
19935
  else
@@ -20015,7 +20015,7 @@ async function jw(e, t, n, r = {}) {
20015
20015
  pollingOptions: r
20016
20016
  }), s = await e.readState(t, { paths: [i] }, void 0, o)) : s = await e.readState(t, { paths: [i] }), e.rootKey == null)
20017
20017
  throw an.fromCode(new Gs());
20018
- const a = await Vi.create({
20018
+ const a = await Di.create({
20019
20019
  certificate: s.certificate,
20020
20020
  rootKey: e.rootKey,
20021
20021
  canisterId: t,
@@ -20127,7 +20127,7 @@ class Ma {
20127
20127
  this[xn] = Object.freeze(t);
20128
20128
  }
20129
20129
  }
20130
- function cs(e, t) {
20130
+ function as(e, t) {
20131
20131
  const n = am(e, t);
20132
20132
  switch (n.length) {
20133
20133
  case 0:
@@ -20171,8 +20171,8 @@ function V8(e, t, n, r) {
20171
20171
  case Cs.Replied:
20172
20172
  return n.annotations.includes(pl) ? {
20173
20173
  httpDetails: d,
20174
- result: cs(n.retTypes, l.reply.arg)
20175
- } : cs(n.retTypes, l.reply.arg);
20174
+ result: as(n.retTypes, l.reply.arg)
20175
+ } : as(n.retTypes, l.reply.arg);
20176
20176
  }
20177
20177
  } : i = async (o, ...c) => {
20178
20178
  o = {
@@ -20197,7 +20197,7 @@ function V8(e, t, n, r) {
20197
20197
  if (a.rootKey == null)
20198
20198
  throw an.fromCode(new Gs());
20199
20199
  const R = E.body.certificate;
20200
- w = await Vi.create({
20200
+ w = await Di.create({
20201
20201
  certificate: R,
20202
20202
  rootKey: a.rootKey,
20203
20203
  canisterId: y,
@@ -20238,14 +20238,14 @@ function V8(e, t, n, r) {
20238
20238
  return T && O ? {
20239
20239
  httpDetails: A,
20240
20240
  certificate: w,
20241
- result: cs(n.retTypes, _)
20241
+ result: as(n.retTypes, _)
20242
20242
  } : O ? {
20243
20243
  certificate: w,
20244
- result: cs(n.retTypes, _)
20244
+ result: as(n.retTypes, _)
20245
20245
  } : T ? {
20246
20246
  httpDetails: A,
20247
- result: cs(n.retTypes, _)
20248
- } : cs(n.retTypes, _);
20247
+ result: as(n.retTypes, _)
20248
+ } : as(n.retTypes, _);
20249
20249
  {
20250
20250
  const R = new qn(`Call was returned undefined. We cannot determine if the call was successful or not. Return types: [${n.retTypes.map((M) => M.display()).join(",")}].`);
20251
20251
  throw R.callContext = {
@@ -20267,7 +20267,7 @@ const mn = {
20267
20267
  P2TR: { P2TR: null },
20268
20268
  UNKNOWN: { UNKNOWN: null }
20269
20269
  };
20270
- var _i = {}, Xe = {}, mf = {}, Zt = {}, lr = {}, j0;
20270
+ var Si = {}, Xe = {}, mf = {}, Zt = {}, lr = {}, j0;
20271
20271
  function Wn() {
20272
20272
  return j0 || (j0 = 1, Object.defineProperty(lr, "__esModule", { value: !0 }), lr.testnet = lr.regtest = lr.bitcoin = void 0, lr.bitcoin = {
20273
20273
  /**
@@ -20383,10 +20383,10 @@ function Ww() {
20383
20383
  }
20384
20384
  return hr.encode = n, hr;
20385
20385
  }
20386
- var Si = {}, G0;
20386
+ var Ti = {}, G0;
20387
20387
  function _h() {
20388
- if (G0) return Si;
20389
- G0 = 1, Object.defineProperty(Si, "__esModule", { value: !0 }), Si.REVERSE_OPS = Si.OPS = void 0;
20388
+ if (G0) return Ti;
20389
+ G0 = 1, Object.defineProperty(Ti, "__esModule", { value: !0 }), Ti.REVERSE_OPS = Ti.OPS = void 0;
20390
20390
  const e = {
20391
20391
  OP_FALSE: 0,
20392
20392
  OP_0: 0,
@@ -20508,14 +20508,14 @@ function _h() {
20508
20508
  OP_PUBKEY: 254,
20509
20509
  OP_INVALIDOPCODE: 255
20510
20510
  };
20511
- Si.OPS = e;
20511
+ Ti.OPS = e;
20512
20512
  const t = {};
20513
- Si.REVERSE_OPS = t;
20513
+ Ti.REVERSE_OPS = t;
20514
20514
  for (const n of Object.keys(e)) {
20515
20515
  const r = e[n];
20516
20516
  t[r] = n;
20517
20517
  }
20518
- return Si;
20518
+ return Ti;
20519
20519
  }
20520
20520
  var dr = {}, W0;
20521
20521
  function D8() {
@@ -20555,10 +20555,10 @@ function D8() {
20555
20555
  }
20556
20556
  return dr.decode = r, dr;
20557
20557
  }
20558
- var Ti = {}, X0;
20558
+ var xi = {}, X0;
20559
20559
  function $8() {
20560
- if (X0) return Ti;
20561
- X0 = 1, Object.defineProperty(Ti, "__esModule", { value: !0 }), Ti.encode = Ti.decode = void 0;
20560
+ if (X0) return xi;
20561
+ X0 = 1, Object.defineProperty(xi, "__esModule", { value: !0 }), xi.encode = xi.decode = void 0;
20562
20562
  function e(r, i, s) {
20563
20563
  i = i || 4, s = s === void 0 ? !0 : s;
20564
20564
  const o = r.length;
@@ -20575,7 +20575,7 @@ function $8() {
20575
20575
  c |= r[a] << 8 * a;
20576
20576
  return r[o - 1] & 128 ? -(c & ~(128 << 8 * (o - 1))) : c;
20577
20577
  }
20578
- Ti.decode = e;
20578
+ xi.decode = e;
20579
20579
  function t(r) {
20580
20580
  return r > 2147483647 ? 5 : r > 8388607 ? 4 : r > 32767 ? 3 : r > 127 ? 2 : r > 0 ? 1 : 0;
20581
20581
  }
@@ -20586,9 +20586,9 @@ function $8() {
20586
20586
  o.writeUInt8(i & 255, a), i >>= 8;
20587
20587
  return o[s - 1] & 128 ? o.writeUInt8(c ? 128 : 0, s - 1) : c && (o[s - 1] |= 128), o;
20588
20588
  }
20589
- return Ti.encode = n, Ti;
20589
+ return xi.encode = n, xi;
20590
20590
  }
20591
- var xi = {}, Ef = {}, _f, z0;
20591
+ var Ai = {}, Ef = {}, _f, z0;
20592
20592
  function Sh() {
20593
20593
  if (z0) return _f;
20594
20594
  z0 = 1;
@@ -20986,8 +20986,8 @@ function zt() {
20986
20986
  }
20987
20987
  var ep;
20988
20988
  function G8() {
20989
- if (ep) return xi;
20990
- ep = 1, Object.defineProperty(xi, "__esModule", { value: !0 }), xi.encode = xi.decode = void 0;
20989
+ if (ep) return Ai;
20990
+ ep = 1, Object.defineProperty(Ai, "__esModule", { value: !0 }), Ai.encode = Ai.decode = void 0;
20991
20991
  const e = Ww(), t = rn(), n = zt(), { typeforce: r } = n, i = Buffer.alloc(1, 0);
20992
20992
  function s(u) {
20993
20993
  let f = 0;
@@ -21006,7 +21006,7 @@ function G8() {
21006
21006
  const l = e.decode(u.slice(0, -1)), d = o(l.r), y = o(l.s);
21007
21007
  return { signature: Buffer.concat([d, y], 64), hashType: f };
21008
21008
  }
21009
- xi.decode = c;
21009
+ Ai.decode = c;
21010
21010
  function a(u, f) {
21011
21011
  if (r(
21012
21012
  {
@@ -21021,7 +21021,7 @@ function G8() {
21021
21021
  const d = s(u.slice(0, 32)), y = s(u.slice(32, 64));
21022
21022
  return Buffer.concat([e.encode(d, y), l]);
21023
21023
  }
21024
- return xi.encode = a, xi;
21024
+ return Ai.encode = a, Ai;
21025
21025
  }
21026
21026
  var tp;
21027
21027
  function rn() {
@@ -21142,10 +21142,10 @@ function rn() {
21142
21142
  e.isCanonicalScriptSignature = M, e.number = i, e.signature = s;
21143
21143
  })(bf)), bf;
21144
21144
  }
21145
- var Ai = {}, np;
21146
- function gi() {
21147
- if (np) return Ai;
21148
- np = 1, Object.defineProperty(Ai, "__esModule", { value: !0 }), Ai.value = Ai.prop = void 0;
21145
+ var vi = {}, np;
21146
+ function mi() {
21147
+ if (np) return vi;
21148
+ np = 1, Object.defineProperty(vi, "__esModule", { value: !0 }), vi.value = vi.prop = void 0;
21149
21149
  function e(n, r, i) {
21150
21150
  Object.defineProperty(n, r, {
21151
21151
  configurable: !0,
@@ -21164,18 +21164,18 @@ function gi() {
21164
21164
  }
21165
21165
  });
21166
21166
  }
21167
- Ai.prop = e;
21167
+ vi.prop = e;
21168
21168
  function t(n) {
21169
21169
  let r;
21170
21170
  return () => (r !== void 0 || (r = n()), r);
21171
21171
  }
21172
- return Ai.value = t, Ai;
21172
+ return vi.value = t, vi;
21173
21173
  }
21174
21174
  var rp;
21175
21175
  function W8() {
21176
21176
  if (rp) return oo;
21177
21177
  rp = 1, Object.defineProperty(oo, "__esModule", { value: !0 }), oo.p2data = void 0;
21178
- const e = Wn(), t = rn(), n = zt(), r = gi(), i = t.OPS;
21178
+ const e = Wn(), t = rn(), n = zt(), r = mi(), i = t.OPS;
21179
21179
  function s(o, c) {
21180
21180
  if (!o.data && !o.output) throw new TypeError("Not enough data");
21181
21181
  c = Object.assign({ validate: !0 }, c || {}), (0, n.typeforce)(
@@ -21211,7 +21211,7 @@ var co = {}, ip;
21211
21211
  function X8() {
21212
21212
  if (ip) return co;
21213
21213
  ip = 1, Object.defineProperty(co, "__esModule", { value: !0 }), co.p2ms = void 0;
21214
- const e = Wn(), t = rn(), n = zt(), r = gi(), i = t.OPS, s = i.OP_RESERVED;
21214
+ const e = Wn(), t = rn(), n = zt(), r = mi(), i = t.OPS, s = i.OP_RESERVED;
21215
21215
  function o(c, a) {
21216
21216
  if (!c.input && !c.output && !(c.pubkeys && c.m !== void 0) && !c.signatures)
21217
21217
  throw new TypeError("Not enough data");
@@ -21317,7 +21317,7 @@ var ao = {}, sp;
21317
21317
  function z8() {
21318
21318
  if (sp) return ao;
21319
21319
  sp = 1, Object.defineProperty(ao, "__esModule", { value: !0 }), ao.p2pk = void 0;
21320
- const e = Wn(), t = rn(), n = zt(), r = gi(), i = t.OPS;
21320
+ const e = Wn(), t = rn(), n = zt(), r = mi(), i = t.OPS;
21321
21321
  function s(o, c) {
21322
21322
  if (!o.input && !o.output && !o.pubkey && !o.input && !o.signature)
21323
21323
  throw new TypeError("Not enough data");
@@ -21368,11 +21368,11 @@ function z8() {
21368
21368
  }
21369
21369
  return ao.p2pk = s, ao;
21370
21370
  }
21371
- var uo = {}, Af = {}, vi = {}, Jt = {}, op;
21371
+ var uo = {}, Af = {}, Ii = {}, Jt = {}, op;
21372
21372
  function zw() {
21373
21373
  if (op) return Jt;
21374
21374
  op = 1, Object.defineProperty(Jt, "__esModule", { value: !0 }), Jt.ripemd160 = Jt.RIPEMD160 = Jt.md5 = Jt.MD5 = Jt.sha1 = Jt.SHA1 = void 0;
21375
- const e = /* @__PURE__ */ Uy(), t = /* @__PURE__ */ ui(), n = /* @__PURE__ */ Uint32Array.from([
21375
+ const e = /* @__PURE__ */ Uy(), t = /* @__PURE__ */ fi(), n = /* @__PURE__ */ Uint32Array.from([
21376
21376
  1732584193,
21377
21377
  4023233417,
21378
21378
  2562383102,
@@ -21527,17 +21527,17 @@ function zw() {
21527
21527
  }
21528
21528
  var cp;
21529
21529
  function Y8() {
21530
- if (cp) return vi;
21531
- cp = 1, Object.defineProperty(vi, "__esModule", { value: !0 }), vi.ripemd160 = vi.RIPEMD160 = void 0;
21530
+ if (cp) return Ii;
21531
+ cp = 1, Object.defineProperty(Ii, "__esModule", { value: !0 }), Ii.ripemd160 = Ii.RIPEMD160 = void 0;
21532
21532
  const e = /* @__PURE__ */ zw();
21533
- return vi.RIPEMD160 = e.RIPEMD160, vi.ripemd160 = e.ripemd160, vi;
21533
+ return Ii.RIPEMD160 = e.RIPEMD160, Ii.ripemd160 = e.ripemd160, Ii;
21534
21534
  }
21535
- var Ii = {}, ap;
21535
+ var Oi = {}, ap;
21536
21536
  function Z8() {
21537
- if (ap) return Ii;
21538
- ap = 1, Object.defineProperty(Ii, "__esModule", { value: !0 }), Ii.sha1 = Ii.SHA1 = void 0;
21537
+ if (ap) return Oi;
21538
+ ap = 1, Object.defineProperty(Oi, "__esModule", { value: !0 }), Oi.sha1 = Oi.SHA1 = void 0;
21539
21539
  const e = /* @__PURE__ */ zw();
21540
- return Ii.SHA1 = e.SHA1, Ii.sha1 = e.sha1, Ii;
21540
+ return Oi.SHA1 = e.SHA1, Oi.sha1 = e.sha1, Oi;
21541
21541
  }
21542
21542
  var Un = {}, up;
21543
21543
  function Yw() {
@@ -22312,7 +22312,7 @@ var yp;
22312
22312
  function tA() {
22313
22313
  if (yp) return uo;
22314
22314
  yp = 1, Object.defineProperty(uo, "__esModule", { value: !0 }), uo.p2pkh = void 0;
22315
- const e = Cr(), t = Wn(), n = rn(), r = zt(), i = gi(), s = Th(), o = n.OPS;
22315
+ const e = Cr(), t = Wn(), n = rn(), r = zt(), i = mi(), s = Th(), o = n.OPS;
22316
22316
  function c(a, u) {
22317
22317
  if (!a.address && !a.hash && !a.output && !a.pubkey && !a.input)
22318
22318
  throw new TypeError("Not enough data");
@@ -22412,7 +22412,7 @@ var fo = {}, gp;
22412
22412
  function nA() {
22413
22413
  if (gp) return fo;
22414
22414
  gp = 1, Object.defineProperty(fo, "__esModule", { value: !0 }), fo.p2sh = void 0;
22415
- const e = Cr(), t = Wn(), n = rn(), r = zt(), i = gi(), s = Th(), o = n.OPS;
22415
+ const e = Cr(), t = Wn(), n = rn(), r = zt(), i = mi(), s = Th(), o = n.OPS;
22416
22416
  function c(a, u) {
22417
22417
  if (!a.address && !a.hash && !a.output && !a.redeem && !a.input)
22418
22418
  throw new TypeError("Not enough data");
@@ -22557,7 +22557,7 @@ var lo = {}, mp;
22557
22557
  function rA() {
22558
22558
  if (mp) return lo;
22559
22559
  mp = 1, Object.defineProperty(lo, "__esModule", { value: !0 }), lo.p2wpkh = void 0;
22560
- const e = Cr(), t = Wn(), n = rn(), r = zt(), i = gi(), s = uc(), o = n.OPS, c = Buffer.alloc(0);
22560
+ const e = Cr(), t = Wn(), n = rn(), r = zt(), i = mi(), s = uc(), o = n.OPS, c = Buffer.alloc(0);
22561
22561
  function a(u, f) {
22562
22562
  if (!u.address && !u.hash && !u.output && !u.pubkey && !u.witness)
22563
22563
  throw new TypeError("Not enough data");
@@ -22661,7 +22661,7 @@ var ho = {}, wp;
22661
22661
  function iA() {
22662
22662
  if (wp) return ho;
22663
22663
  wp = 1, Object.defineProperty(ho, "__esModule", { value: !0 }), ho.p2wsh = void 0;
22664
- const e = Cr(), t = Wn(), n = rn(), r = zt(), i = gi(), s = uc(), o = n.OPS, c = Buffer.alloc(0);
22664
+ const e = Cr(), t = Wn(), n = rn(), r = zt(), i = mi(), s = uc(), o = n.OPS, c = Buffer.alloc(0);
22665
22665
  function a(f) {
22666
22666
  return !!(Buffer.isBuffer(f) && f.length === 65 && f[0] === 4 && (0, r.isPoint)(f));
22667
22667
  }
@@ -22800,15 +22800,15 @@ function iA() {
22800
22800
  }
22801
22801
  return ho.p2wsh = u, ho;
22802
22802
  }
22803
- var po = {}, Oi = {}, bp;
22803
+ var po = {}, Bi = {}, bp;
22804
22804
  function xh() {
22805
- if (bp) return Oi;
22806
- bp = 1, Object.defineProperty(Oi, "__esModule", { value: !0 }), Oi.getEccLib = Oi.initEccLib = void 0;
22805
+ if (bp) return Bi;
22806
+ bp = 1, Object.defineProperty(Bi, "__esModule", { value: !0 }), Bi.getEccLib = Bi.initEccLib = void 0;
22807
22807
  const e = {};
22808
22808
  function t(c, a) {
22809
22809
  c ? c !== e.eccLib && (a?.DANGER_DO_NOT_VERIFY_ECCLIB || i(c), e.eccLib = c) : e.eccLib = c;
22810
22810
  }
22811
- Oi.initEccLib = t;
22811
+ Bi.initEccLib = t;
22812
22812
  function n() {
22813
22813
  if (!e.eccLib)
22814
22814
  throw new Error(
@@ -22816,7 +22816,7 @@ function xh() {
22816
22816
  );
22817
22817
  return e.eccLib;
22818
22818
  }
22819
- Oi.getEccLib = n;
22819
+ Bi.getEccLib = n;
22820
22820
  const r = (c) => Buffer.from(c, "hex");
22821
22821
  function i(c) {
22822
22822
  s(typeof c.isXOnlyPoint == "function"), s(
@@ -22871,7 +22871,7 @@ function xh() {
22871
22871
  result: "9534f8dc8c6deda2dc007655981c78b49c5d96c778fbf363462a11ec9dfd948c"
22872
22872
  }
22873
22873
  ];
22874
- return Oi;
22874
+ return Bi;
22875
22875
  }
22876
22876
  var Nf = {}, Pt = {}, Mc = { exports: {} };
22877
22877
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
@@ -23141,7 +23141,7 @@ var xp;
23141
23141
  function cA() {
23142
23142
  if (xp) return po;
23143
23143
  xp = 1, Object.defineProperty(po, "__esModule", { value: !0 }), po.p2tr = void 0;
23144
- const e = nc(), t = Wn(), n = rn(), r = zt(), i = xh(), s = Ah(), o = gi(), c = uc(), a = vh(), u = n.OPS, f = 1, l = 80;
23144
+ const e = nc(), t = Wn(), n = rn(), r = zt(), i = xh(), s = Ah(), o = mi(), c = uc(), a = vh(), u = n.OPS, f = 1, l = 80;
23145
23145
  function d(y, g) {
23146
23146
  if (!y.address && !y.output && !y.pubkey && !y.internalPubkey && !(y.witness && y.witness.length > 1))
23147
23147
  throw new TypeError("Not enough data");
@@ -23972,7 +23972,7 @@ function uA() {
23972
23972
  }
23973
23973
  return yo;
23974
23974
  }
23975
- var wo = {}, Lc = {}, qc = {}, Pf = {}, as = {}, us = {}, Rf = {}, Np;
23975
+ var wo = {}, Lc = {}, qc = {}, Pf = {}, us = {}, fs = {}, Rf = {}, Np;
23976
23976
  function Lt() {
23977
23977
  return Np || (Np = 1, (function(e) {
23978
23978
  Object.defineProperty(e, "__esModule", { value: !0 }), (function(t) {
@@ -24412,10 +24412,10 @@ function _A() {
24412
24412
  }
24413
24413
  return Qr.canAddToArray = i, Qr;
24414
24414
  }
24415
- var ei = {}, pr = {}, fs = {}, $p;
24416
- function ns() {
24417
- if ($p) return fs;
24418
- $p = 1, Object.defineProperty(fs, "__esModule", { value: !0 });
24415
+ var ei = {}, pr = {}, ls = {}, $p;
24416
+ function rs() {
24417
+ if ($p) return ls;
24418
+ $p = 1, Object.defineProperty(ls, "__esModule", { value: !0 });
24419
24419
  const e = 9007199254740991;
24420
24420
  function t(s) {
24421
24421
  if (s < 0 || s > e || s % 1 !== 0)
@@ -24426,7 +24426,7 @@ function ns() {
24426
24426
  throw new TypeError("buffer must be a Buffer instance");
24427
24427
  return c || (c = 0), s < 253 ? (o.writeUInt8(s, c), Object.assign(n, { bytes: 1 })) : s <= 65535 ? (o.writeUInt8(253, c), o.writeUInt16LE(s, c + 1), Object.assign(n, { bytes: 3 })) : s <= 4294967295 ? (o.writeUInt8(254, c), o.writeUInt32LE(s, c + 1), Object.assign(n, { bytes: 5 })) : (o.writeUInt8(255, c), o.writeUInt32LE(s >>> 0, c + 1), o.writeUInt32LE(s / 4294967296 | 0, c + 5), Object.assign(n, { bytes: 9 })), o;
24428
24428
  }
24429
- fs.encode = n;
24429
+ ls.encode = n;
24430
24430
  function r(s, o) {
24431
24431
  if (!Buffer.isBuffer(s))
24432
24432
  throw new TypeError("buffer must be a Buffer instance");
@@ -24444,17 +24444,17 @@ function ns() {
24444
24444
  return t(f), f;
24445
24445
  }
24446
24446
  }
24447
- fs.decode = r;
24447
+ ls.decode = r;
24448
24448
  function i(s) {
24449
24449
  return t(s), s < 253 ? 1 : s <= 65535 ? 3 : s <= 4294967295 ? 5 : 9;
24450
24450
  }
24451
- return fs.encodingLength = i, fs;
24451
+ return ls.encodingLength = i, ls;
24452
24452
  }
24453
24453
  var jp;
24454
24454
  function Ih() {
24455
24455
  if (jp) return pr;
24456
24456
  jp = 1, Object.defineProperty(pr, "__esModule", { value: !0 });
24457
- const e = ns();
24457
+ const e = rs();
24458
24458
  pr.range = (c) => [...Array(c).keys()];
24459
24459
  function t(c) {
24460
24460
  if (c.length < 1) return c;
@@ -24500,7 +24500,7 @@ var Kp;
24500
24500
  function SA() {
24501
24501
  if (Kp) return ei;
24502
24502
  Kp = 1, Object.defineProperty(ei, "__esModule", { value: !0 });
24503
- const e = Lt(), t = Ih(), n = ns();
24503
+ const e = Lt(), t = Ih(), n = rs();
24504
24504
  function r(c) {
24505
24505
  if (c.key[0] !== e.InputTypes.WITNESS_UTXO)
24506
24506
  throw new Error(
@@ -24540,7 +24540,7 @@ var ti = {}, Gp;
24540
24540
  function TA() {
24541
24541
  if (Gp) return ti;
24542
24542
  Gp = 1, Object.defineProperty(ti, "__esModule", { value: !0 });
24543
- const e = Lt(), t = ns();
24543
+ const e = Lt(), t = rs();
24544
24544
  function n(o) {
24545
24545
  if (o.key[0] !== e.OutputTypes.TAP_TREE || o.key.length !== 1)
24546
24546
  throw new Error(
@@ -24702,7 +24702,7 @@ var Kc = {}, Yp;
24702
24702
  function vA() {
24703
24703
  if (Yp) return Kc;
24704
24704
  Yp = 1, Object.defineProperty(Kc, "__esModule", { value: !0 });
24705
- const e = ns(), t = Zw(), n = (i) => i.length === 32;
24705
+ const e = rs(), t = Zw(), n = (i) => i.length === 32;
24706
24706
  function r(i) {
24707
24707
  const s = t.makeConverter(i, n);
24708
24708
  function o(f) {
@@ -24809,15 +24809,15 @@ function OA() {
24809
24809
  }
24810
24810
  var Qp;
24811
24811
  function Oh() {
24812
- if (Qp) return us;
24813
- Qp = 1, Object.defineProperty(us, "__esModule", { value: !0 });
24812
+ if (Qp) return fs;
24813
+ Qp = 1, Object.defineProperty(fs, "__esModule", { value: !0 });
24814
24814
  const e = Lt(), t = fA(), n = lA(), r = hA(), i = dA(), s = pA(), o = yA(), c = gA(), a = mA(), u = wA(), f = bA(), l = EA(), d = _A(), y = SA(), g = TA(), m = Zw(), E = xA(), S = AA(), _ = vA(), w = IA(), T = OA(), O = {
24815
24815
  unsignedTx: n,
24816
24816
  globalXpub: t,
24817
24817
  // pass an Array of key bytes that require pubkey beside the key
24818
24818
  checkPubkey: E.makeChecker([])
24819
24819
  };
24820
- us.globals = O;
24820
+ fs.globals = O;
24821
24821
  const A = {
24822
24822
  nonWitnessUtxo: s,
24823
24823
  partialSig: o,
@@ -24850,7 +24850,7 @@ function Oh() {
24850
24850
  ),
24851
24851
  tapMerkleRoot: l
24852
24852
  };
24853
- us.inputs = A;
24853
+ fs.inputs = A;
24854
24854
  const R = {
24855
24855
  bip32Derivation: m.makeConverter(
24856
24856
  e.OutputTypes.BIP32_DERIVATION
@@ -24872,13 +24872,13 @@ function Oh() {
24872
24872
  e.OutputTypes.TAP_INTERNAL_KEY
24873
24873
  )
24874
24874
  };
24875
- return us.outputs = R, us;
24875
+ return fs.outputs = R, fs;
24876
24876
  }
24877
24877
  var ey;
24878
24878
  function BA() {
24879
- if (ey) return as;
24880
- ey = 1, Object.defineProperty(as, "__esModule", { value: !0 });
24881
- const e = Oh(), t = Ih(), n = ns(), r = Lt();
24879
+ if (ey) return us;
24880
+ ey = 1, Object.defineProperty(us, "__esModule", { value: !0 });
24881
+ const e = Oh(), t = Ih(), n = rs(), r = Lt();
24882
24882
  function i(c, a) {
24883
24883
  let u = 0;
24884
24884
  function f() {
@@ -24959,14 +24959,14 @@ function BA() {
24959
24959
  outputKeyVals: A
24960
24960
  });
24961
24961
  }
24962
- as.psbtFromBuffer = i;
24962
+ us.psbtFromBuffer = i;
24963
24963
  function s(c, a, u) {
24964
24964
  if (!a.equals(Buffer.from([u])))
24965
24965
  throw new Error(
24966
24966
  `Format Error: Invalid ${c} key: ${a.toString("hex")}`
24967
24967
  );
24968
24968
  }
24969
- as.checkKeyBuffer = s;
24969
+ us.checkKeyBuffer = s;
24970
24970
  function o(c, { globalMapKeyVals: a, inputKeyVals: u, outputKeyVals: f }) {
24971
24971
  const l = {
24972
24972
  unsignedTx: c
@@ -25162,7 +25162,7 @@ function BA() {
25162
25162
  }
25163
25163
  return { globalMap: l, inputs: m, outputs: E };
25164
25164
  }
25165
- return as.psbtFromKeyVals = o, as;
25165
+ return us.psbtFromKeyVals = o, us;
25166
25166
  }
25167
25167
  var bo = {}, ty;
25168
25168
  function NA() {
@@ -25501,7 +25501,7 @@ var Qe = {}, ze = {}, oy;
25501
25501
  function yl() {
25502
25502
  if (oy) return ze;
25503
25503
  oy = 1, Object.defineProperty(ze, "__esModule", { value: !0 }), ze.signatureBlocksAction = ze.checkInputForSig = ze.pubkeyInScript = ze.pubkeyPositionInScript = ze.witnessStackToScriptWitness = ze.isP2TR = ze.isP2SHScript = ze.isP2WSHScript = ze.isP2WPKH = ze.isP2PKH = ze.isP2PK = ze.isP2MS = void 0;
25504
- const e = ns(), t = rn(), n = Sc(), r = Cr(), i = _c();
25504
+ const e = rs(), t = rn(), n = Sc(), r = Cr(), i = _c();
25505
25505
  function s(y) {
25506
25506
  return (g) => {
25507
25507
  try {
@@ -25802,7 +25802,7 @@ var ay;
25802
25802
  function UA() {
25803
25803
  if (ay) return wo;
25804
25804
  ay = 1, Object.defineProperty(wo, "__esModule", { value: !0 }), wo.Psbt = void 0;
25805
- const e = PA(), t = ns(), n = Qw(), r = vh(), i = Su(), s = Wn(), o = _c(), c = Ah(), a = rn(), u = Sc(), f = RA(), l = yl(), d = {
25805
+ const e = PA(), t = rs(), n = Qw(), r = vh(), i = Su(), s = Wn(), o = _c(), c = Ah(), a = rn(), u = Sc(), f = RA(), l = yl(), d = {
25806
25806
  /**
25807
25807
  * A bitcoinjs Network object. This is only used if you pass an `address`
25808
25808
  * parameter to addOutput. Otherwise it is not needed and can be left default.
@@ -27052,10 +27052,10 @@ function CA() {
27052
27052
  });
27053
27053
  })(mf)), mf;
27054
27054
  }
27055
- var Bi = {}, fy;
27055
+ var Ni = {}, fy;
27056
27056
  function HA() {
27057
- if (fy) return Bi;
27058
- fy = 1, Object.defineProperty(Bi, "__esModule", { value: !0 }), Bi.base26Decode = Bi.base26Encode = void 0;
27057
+ if (fy) return Ni;
27058
+ fy = 1, Object.defineProperty(Ni, "__esModule", { value: !0 }), Ni.base26Decode = Ni.base26Encode = void 0;
27059
27059
  function e(n) {
27060
27060
  let r = 0n;
27061
27061
  for (let i = 0; i < n.length; i++) {
@@ -27069,7 +27069,7 @@ function HA() {
27069
27069
  }
27070
27070
  return r;
27071
27071
  }
27072
- Bi.base26Encode = e;
27072
+ Ni.base26Encode = e;
27073
27073
  function t(n) {
27074
27074
  if (n === 340282366920938463463374607431768211455n)
27075
27075
  return "BCGDENLQRQWDSLRUGSNLBTMFIJAV";
@@ -27081,12 +27081,12 @@ function HA() {
27081
27081
  }
27082
27082
  return r.reverse().join("");
27083
27083
  }
27084
- return Bi.base26Decode = t, Bi;
27084
+ return Ni.base26Decode = t, Ni;
27085
27085
  }
27086
- var Ni = {}, ly;
27086
+ var ki = {}, ly;
27087
27087
  function e1() {
27088
- if (ly) return Ni;
27089
- ly = 1, Object.defineProperty(Ni, "__esModule", { value: !0 }), Ni.none = Ni.some = void 0;
27088
+ if (ly) return ki;
27089
+ ly = 1, Object.defineProperty(ki, "__esModule", { value: !0 }), ki.none = ki.some = void 0;
27090
27090
  class e {
27091
27091
  constructor() {
27092
27092
  }
@@ -27117,16 +27117,16 @@ function e1() {
27117
27117
  function n(i) {
27118
27118
  return new t(i);
27119
27119
  }
27120
- Ni.some = n;
27120
+ ki.some = n;
27121
27121
  function r() {
27122
27122
  return new e();
27123
27123
  }
27124
- return Ni.none = r, Ni;
27124
+ return ki.none = r, ki;
27125
27125
  }
27126
- var ki = {}, hy;
27126
+ var Pi = {}, hy;
27127
27127
  function FA() {
27128
- if (hy) return ki;
27129
- hy = 1, Object.defineProperty(ki, "__esModule", { value: !0 }), ki.decodeLEB128 = ki.encodeLEB128 = void 0;
27128
+ if (hy) return Pi;
27129
+ hy = 1, Object.defineProperty(Pi, "__esModule", { value: !0 }), Pi.decodeLEB128 = Pi.encodeLEB128 = void 0;
27130
27130
  function e(n) {
27131
27131
  const r = [];
27132
27132
  let i = !0;
@@ -27136,7 +27136,7 @@ function FA() {
27136
27136
  }
27137
27137
  return r;
27138
27138
  }
27139
- ki.encodeLEB128 = e;
27139
+ Pi.encodeLEB128 = e;
27140
27140
  function t(n) {
27141
27141
  let r = BigInt(0);
27142
27142
  for (let i = 0; i < n.length; i++) {
@@ -27154,7 +27154,7 @@ function FA() {
27154
27154
  }
27155
27155
  throw new Error("Unterminated");
27156
27156
  }
27157
- return ki.decodeLEB128 = t, ki;
27157
+ return Pi.decodeLEB128 = t, Pi;
27158
27158
  }
27159
27159
  var Cf = {}, dy;
27160
27160
  function MA() {
@@ -27667,7 +27667,7 @@ function LA() {
27667
27667
  var gy;
27668
27668
  function qA() {
27669
27669
  return gy || (gy = 1, (function(e) {
27670
- var t = _i && _i.__createBinding || (Object.create ? (function(s, o, c, a) {
27670
+ var t = Si && Si.__createBinding || (Object.create ? (function(s, o, c, a) {
27671
27671
  a === void 0 && (a = c);
27672
27672
  var u = Object.getOwnPropertyDescriptor(o, c);
27673
27673
  (!u || ("get" in u ? !o.__esModule : u.writable || u.configurable)) && (u = { enumerable: !0, get: function() {
@@ -27675,7 +27675,7 @@ function qA() {
27675
27675
  } }), Object.defineProperty(s, a, u);
27676
27676
  }) : (function(s, o, c, a) {
27677
27677
  a === void 0 && (a = c), s[a] = o[c];
27678
- })), n = _i && _i.__exportStar || function(s, o) {
27678
+ })), n = Si && Si.__exportStar || function(s, o) {
27679
27679
  for (var c in s) c !== "default" && !Object.prototype.hasOwnProperty.call(o, c) && t(o, s, c);
27680
27680
  };
27681
27681
  Object.defineProperty(e, "__esModule", { value: !0 }), e.removeSpacers = e.getSpacersVal = e.applySpacers = e.some = e.none = void 0, n(LA(), e);
@@ -27693,9 +27693,9 @@ function qA() {
27693
27693
  } }), Object.defineProperty(e, "removeSpacers", { enumerable: !0, get: function() {
27694
27694
  return i.removeSpacers;
27695
27695
  } });
27696
- })(_i)), _i;
27696
+ })(Si)), Si;
27697
27697
  }
27698
- var ls = qA();
27698
+ var hs = qA();
27699
27699
  function n1(e) {
27700
27700
  if (e.length % 2 !== 0)
27701
27701
  throw new Error("Hex string must have even length");
@@ -27714,7 +27714,7 @@ function kh(e, t = No.Testnet) {
27714
27714
  const n = Nh(t);
27715
27715
  return vg(e, n);
27716
27716
  }
27717
- function ys(e) {
27717
+ function ci(e) {
27718
27718
  const t = Pn, n = My, r = Y1;
27719
27719
  let i, s, o = mn.UNKNOWN;
27720
27720
  if (e.startsWith("bc1") || e.startsWith("tb1") || e.startsWith("bcrt1"))
@@ -27762,7 +27762,7 @@ const g6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27762
27762
  __proto__: null,
27763
27763
  bytesToHex: Bh,
27764
27764
  formatPoolUtxo: VA,
27765
- getAddressType: ys,
27765
+ getAddressType: ci,
27766
27766
  getScriptByAddress: kh,
27767
27767
  getUtxoProof: r1,
27768
27768
  hexToBytes: n1,
@@ -27802,7 +27802,7 @@ class GA {
27802
27802
  value: BigInt(t.satoshis),
27803
27803
  script: n1(t.scriptPk)
27804
27804
  }
27805
- }), this.inputAddressTypes.push(ys(n)), this.inputUtxos.push(t), (n === this.config.address || n === this.config.paymentAddress) && t.runes.length !== 0 && (this.userInputUtxoDusts += BigInt(t.satoshis));
27805
+ }), this.inputAddressTypes.push(ci(n)), this.inputUtxos.push(t), (n === this.config.address || n === this.config.paymentAddress) && t.runes.length !== 0 && (this.userInputUtxoDusts += BigInt(t.satoshis));
27806
27806
  }
27807
27807
  /**
27808
27808
  * Add a standard output to the transaction
@@ -27813,7 +27813,7 @@ class GA {
27813
27813
  this.psbt.addOutput({
27814
27814
  address: t,
27815
27815
  value: n
27816
- }), this.outputAddressTypes.push(ys(t));
27816
+ }), this.outputAddressTypes.push(ci(t));
27817
27817
  }
27818
27818
  /**
27819
27819
  * Add an OP_RETURN script output (for Runestone)
@@ -27886,7 +27886,7 @@ class GA {
27886
27886
  */
27887
27887
  async addBtcAndFees(t, n) {
27888
27888
  const r = this.config.paymentAddress, i = this.additionalDustNeeded, s = this.userInputUtxoDusts;
27889
- this.outputAddressTypes.push(ys(r));
27889
+ this.outputAddressTypes.push(ci(r));
27890
27890
  let o = BigInt(0), c = BigInt(0), a = [], u = BigInt(0), f = BigInt(0);
27891
27891
  const l = [...this.inputAddressTypes];
27892
27892
  do
@@ -27899,7 +27899,7 @@ class GA {
27899
27899
  if (m.length === 0)
27900
27900
  throw new Error("INSUFFICIENT_BTC_UTXOs");
27901
27901
  this.inputAddressTypes = l.concat([
27902
- ...m.map(() => ys(r))
27902
+ ...m.map(() => ci(r))
27903
27903
  ]);
27904
27904
  const E = m.reduce(
27905
27905
  (S, _) => S + BigInt(_.satoshis),
@@ -28120,7 +28120,7 @@ class GA {
28120
28120
  const i = [], s = [];
28121
28121
  let o = 1;
28122
28122
  r.forEach((a) => {
28123
- const u = new ls.RuneId(
28123
+ const u = new hs.RuneId(
28124
28124
  Number(a.split(":")[0]),
28125
28125
  Number(a.split(":")[1])
28126
28126
  );
@@ -28128,10 +28128,10 @@ class GA {
28128
28128
  t
28129
28129
  )) {
28130
28130
  const d = l[a] ?? BigInt(0);
28131
- d > BigInt(0) && (i.push(new ls.Edict(u, d, o)), s.push(f), o++);
28131
+ d > BigInt(0) && (i.push(new hs.Edict(u, d, o)), s.push(f), o++);
28132
28132
  }
28133
28133
  });
28134
- const c = new ls.Runestone(i, ls.none(), ls.none(), ls.none());
28134
+ const c = new hs.Runestone(i, hs.none(), hs.none(), hs.none());
28135
28135
  this.addScriptOutput(new Uint8Array(c.encipher())), s.forEach((a) => {
28136
28136
  const u = t[a]?.[Jn] ?? BigInt(0), f = u > BigInt(0) && a !== this.config.address ? u : Xc;
28137
28137
  this.addOutput(a, f), u > BigInt(0) && a !== this.config.address ? delete t[a][Jn] : this.additionalDustNeeded += Xc;
@@ -28192,7 +28192,7 @@ class GA {
28192
28192
  const t = await this.getInvolvedAddressUtxos();
28193
28193
  for (const u of this.intentions) {
28194
28194
  const f = u.poolUtxos;
28195
- if (!f?.length) continue;
28195
+ if (!f) continue;
28196
28196
  t.btc[u.poolAddress] = f, t.rune[u.poolAddress] = {};
28197
28197
  const l = t.rune[u.poolAddress];
28198
28198
  for (const d of f)
@@ -28210,7 +28210,7 @@ class GA {
28210
28210
  const l = this.inputUtxos[u].address;
28211
28211
  if (l !== this.config.paymentAddress || l !== this.config.address)
28212
28212
  continue;
28213
- const d = this.psbt.data.inputs[u].redeemScript, y = ys(l);
28213
+ const d = this.psbt.data.inputs[u].redeemScript, y = ci(l);
28214
28214
  if (d && y === mn.P2SH_P2WPKH) {
28215
28215
  const g = nn([d]);
28216
28216
  c.setInputScript(u, g);
@@ -28301,7 +28301,7 @@ class Bs extends Error {
28301
28301
  return t.errors?.[0]?.message ?? `GraphQL Error (Code: ${String(t.status)})`;
28302
28302
  }
28303
28303
  }
28304
- const my = (e) => e.toUpperCase(), Hf = (e) => typeof e == "function" ? e() : e, i1 = (e, t) => e.map((n, r) => [n, t[r]]), hs = (e) => {
28304
+ const my = (e) => e.toUpperCase(), Hf = (e) => typeof e == "function" ? e() : e, i1 = (e, t) => e.map((n, r) => [n, t[r]]), ds = (e) => {
28305
28305
  let t = {};
28306
28306
  return e instanceof Headers ? t = WA(e) : Array.isArray(e) ? e.forEach(([n, r]) => {
28307
28307
  n && r !== void 0 && (t[n] = r);
@@ -28786,7 +28786,7 @@ function f1(e) {
28786
28786
  function l1(e) {
28787
28787
  return e >= 56320 && e <= 57343;
28788
28788
  }
28789
- function zi(e, t) {
28789
+ function Yi(e, t) {
28790
28790
  const n = e.source.body.codePointAt(t);
28791
28791
  if (n === void 0)
28792
28792
  return ee.EOF;
@@ -28891,7 +28891,7 @@ function lv(e, t) {
28891
28891
  throw kt(
28892
28892
  e.source,
28893
28893
  i,
28894
- s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : zs(s) || Tu(n, i) ? `Unexpected character: ${zi(e, i)}.` : `Invalid character: ${zi(e, i)}.`
28894
+ s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : zs(s) || Tu(n, i) ? `Unexpected character: ${Yi(e, i)}.` : `Invalid character: ${Yi(e, i)}.`
28895
28895
  );
28896
28896
  }
28897
28897
  return Et(e, ee.EOF, r, r);
@@ -28926,7 +28926,7 @@ function dv(e, t, n) {
28926
28926
  throw kt(
28927
28927
  e.source,
28928
28928
  i,
28929
- `Invalid number, unexpected digit after 0: ${zi(
28929
+ `Invalid number, unexpected digit after 0: ${Yi(
28930
28930
  e,
28931
28931
  i
28932
28932
  )}.`
@@ -28937,7 +28937,7 @@ function dv(e, t, n) {
28937
28937
  throw kt(
28938
28938
  e.source,
28939
28939
  i,
28940
- `Invalid number, expected digit but got: ${zi(
28940
+ `Invalid number, expected digit but got: ${Yi(
28941
28941
  e,
28942
28942
  i
28943
28943
  )}.`
@@ -28955,7 +28955,7 @@ function Ff(e, t, n) {
28955
28955
  throw kt(
28956
28956
  e.source,
28957
28957
  t,
28958
- `Invalid number, expected digit but got: ${zi(
28958
+ `Invalid number, expected digit but got: ${Yi(
28959
28959
  e,
28960
28960
  t
28961
28961
  )}.`
@@ -28989,7 +28989,7 @@ function pv(e, t) {
28989
28989
  throw kt(
28990
28990
  e.source,
28991
28991
  i,
28992
- `Invalid character within String: ${zi(
28992
+ `Invalid character within String: ${Yi(
28993
28993
  e,
28994
28994
  i
28995
28995
  )}.`
@@ -29138,7 +29138,7 @@ function wv(e, t) {
29138
29138
  throw kt(
29139
29139
  e.source,
29140
29140
  s,
29141
- `Invalid character within String: ${zi(
29141
+ `Invalid character within String: ${Yi(
29142
29142
  e,
29143
29143
  s
29144
29144
  )}.`
@@ -31086,8 +31086,8 @@ class zv {
31086
31086
  variables: s.variables
31087
31087
  },
31088
31088
  headers: {
31089
- ...hs(Hf(o)),
31090
- ...hs(s.requestHeaders)
31089
+ ...ds(Hf(o)),
31090
+ ...ds(s.requestHeaders)
31091
31091
  },
31092
31092
  fetch: c,
31093
31093
  method: a,
@@ -31113,8 +31113,8 @@ class zv {
31113
31113
  variables: s.variables
31114
31114
  },
31115
31115
  headers: {
31116
- ...hs(Hf(o)),
31117
- ...hs(s.requestHeaders)
31116
+ ...ds(Hf(o)),
31117
+ ...ds(s.requestHeaders)
31118
31118
  },
31119
31119
  fetch: c,
31120
31120
  method: a,
@@ -31142,8 +31142,8 @@ class zv {
31142
31142
  variables: f
31143
31143
  },
31144
31144
  headers: {
31145
- ...hs(Hf(i)),
31146
- ...hs(r.requestHeaders)
31145
+ ...ds(Hf(i)),
31146
+ ...ds(r.requestHeaders)
31147
31147
  },
31148
31148
  fetch: this.requestConfig.fetch ?? globalThis.fetch,
31149
31149
  method: this.requestConfig.method || "POST",
@@ -31188,7 +31188,7 @@ const Yv = (e, t, n) => e.document ? e : {
31188
31188
  * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
31189
31189
  * MIT Licence
31190
31190
  */
31191
- var Es = 9e15, mi = 1e9, _l = "0123456789abcdef", La = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", qa = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", Sl = {
31191
+ var Es = 9e15, wi = 1e9, _l = "0123456789abcdef", La = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", qa = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", Sl = {
31192
31192
  // These values must be integers within the stated ranges (inclusive).
31193
31193
  // Most of these values can be changed at run-time using the `Decimal.config` method.
31194
31194
  // The maximum number of significant digits of the result of a calculation or base conversion.
@@ -31246,7 +31246,7 @@ var Es = 9e15, mi = 1e9, _l = "0123456789abcdef", La = "2.3025850929940456840179
31246
31246
  // Whether to use cryptographically-secure random number generation, if available.
31247
31247
  crypto: !1
31248
31248
  // true/false
31249
- }, m1, Ir, Ae = !0, Au = "[DecimalError] ", di = Au + "Invalid argument: ", w1 = Au + "Precision limit exceeded", b1 = Au + "crypto unavailable", E1 = "[object Decimal]", Xt = Math.floor, At = Math.pow, Jv = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, Qv = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, eI = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, _1 = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, jn = 1e7, _e = 7, tI = 9007199254740991, nI = La.length - 1, Tl = qa.length - 1, se = { toStringTag: E1 };
31249
+ }, m1, Ir, Ae = !0, Au = "[DecimalError] ", pi = Au + "Invalid argument: ", w1 = Au + "Precision limit exceeded", b1 = Au + "crypto unavailable", E1 = "[object Decimal]", Xt = Math.floor, At = Math.pow, Jv = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, Qv = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, eI = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, _1 = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, jn = 1e7, _e = 7, tI = 9007199254740991, nI = La.length - 1, Tl = qa.length - 1, se = { toStringTag: E1 };
31250
31250
  se.absoluteValue = se.abs = function() {
31251
31251
  var e = new this.constructor(this);
31252
31252
  return e.s < 0 && (e.s = 1), be(e);
@@ -31257,7 +31257,7 @@ se.ceil = function() {
31257
31257
  se.clampedTo = se.clamp = function(e, t) {
31258
31258
  var n, r = this, i = r.constructor;
31259
31259
  if (e = new i(e), t = new i(t), !e.s || !t.s) return new i(NaN);
31260
- if (e.gt(t)) throw Error(di + t);
31260
+ if (e.gt(t)) throw Error(pi + t);
31261
31261
  return n = r.cmp(e), n < 0 ? e : r.cmp(t) > 0 ? t : new i(r);
31262
31262
  };
31263
31263
  se.comparedTo = se.cmp = function(e) {
@@ -31423,9 +31423,9 @@ se.logarithm = se.log = function(e) {
31423
31423
  for (i = n[0]; i % 10 === 0; ) i /= 10;
31424
31424
  s = i !== 1;
31425
31425
  }
31426
- if (Ae = !1, c = l + y, o = ci(u, c), r = t ? Va(f, c + 10) : ci(e, c), a = Ze(o, r, c, 1), Go(a.d, i = l, d))
31426
+ if (Ae = !1, c = l + y, o = ai(u, c), r = t ? Va(f, c + 10) : ai(e, c), a = Ze(o, r, c, 1), Go(a.d, i = l, d))
31427
31427
  do
31428
- if (c += 10, o = ci(u, c), r = t ? Va(f, c + 10) : ci(e, c), a = Ze(o, r, c, 1), !s) {
31428
+ if (c += 10, o = ai(u, c), r = t ? Va(f, c + 10) : ai(e, c), a = Ze(o, r, c, 1), !s) {
31429
31429
  +Ft(a.d).slice(i + 1, i + 15) + 1 == 1e14 && (a = be(a, l + 1, 0));
31430
31430
  break;
31431
31431
  }
@@ -31475,7 +31475,7 @@ se.naturalExponential = se.exp = function() {
31475
31475
  return xl(this);
31476
31476
  };
31477
31477
  se.naturalLogarithm = se.ln = function() {
31478
- return ci(this);
31478
+ return ai(this);
31479
31479
  };
31480
31480
  se.negated = se.neg = function() {
31481
31481
  var e = new this.constructor(this);
@@ -31500,7 +31500,7 @@ se.plus = se.add = function(e) {
31500
31500
  };
31501
31501
  se.precision = se.sd = function(e) {
31502
31502
  var t, n = this;
31503
- if (e !== void 0 && e !== !!e && e !== 1 && e !== 0) throw Error(di + e);
31503
+ if (e !== void 0 && e !== !!e && e !== 1 && e !== 0) throw Error(pi + e);
31504
31504
  return n.d ? (t = S1(n.d), e && n.e + 1 > t && (t = n.e + 1)) : t = NaN, t;
31505
31505
  };
31506
31506
  se.round = function() {
@@ -31551,15 +31551,15 @@ se.toBinary = function(e, t) {
31551
31551
  };
31552
31552
  se.toDecimalPlaces = se.toDP = function(e, t) {
31553
31553
  var n = this, r = n.constructor;
31554
- return n = new r(n), e === void 0 ? n : (yn(e, 0, mi), t === void 0 ? t = r.rounding : yn(t, 0, 8), be(n, e + n.e + 1, t));
31554
+ return n = new r(n), e === void 0 ? n : (yn(e, 0, wi), t === void 0 ? t = r.rounding : yn(t, 0, 8), be(n, e + n.e + 1, t));
31555
31555
  };
31556
31556
  se.toExponential = function(e, t) {
31557
31557
  var n, r = this, i = r.constructor;
31558
- return e === void 0 ? n = cr(r, !0) : (yn(e, 0, mi), t === void 0 ? t = i.rounding : yn(t, 0, 8), r = be(new i(r), e + 1, t), n = cr(r, !0, e + 1)), r.isNeg() && !r.isZero() ? "-" + n : n;
31558
+ return e === void 0 ? n = cr(r, !0) : (yn(e, 0, wi), t === void 0 ? t = i.rounding : yn(t, 0, 8), r = be(new i(r), e + 1, t), n = cr(r, !0, e + 1)), r.isNeg() && !r.isZero() ? "-" + n : n;
31559
31559
  };
31560
31560
  se.toFixed = function(e, t) {
31561
31561
  var n, r, i = this, s = i.constructor;
31562
- return e === void 0 ? n = cr(i) : (yn(e, 0, mi), t === void 0 ? t = s.rounding : yn(t, 0, 8), r = be(new s(i), e + i.e + 1, t), n = cr(r, !1, e + r.e + 1)), i.isNeg() && !i.isZero() ? "-" + n : n;
31562
+ return e === void 0 ? n = cr(i) : (yn(e, 0, wi), t === void 0 ? t = s.rounding : yn(t, 0, 8), r = be(new s(i), e + i.e + 1, t), n = cr(r, !1, e + r.e + 1)), i.isNeg() && !i.isZero() ? "-" + n : n;
31563
31563
  };
31564
31564
  se.toFraction = function(e) {
31565
31565
  var t, n, r, i, s, o, c, a, u, f, l, d, y = this, g = y.d, m = y.constructor;
@@ -31567,7 +31567,7 @@ se.toFraction = function(e) {
31567
31567
  if (u = n = new m(1), r = a = new m(0), t = new m(r), s = t.e = S1(g) - y.e - 1, o = s % _e, t.d[0] = At(10, o < 0 ? _e + o : o), e == null)
31568
31568
  e = s > 0 ? t : u;
31569
31569
  else {
31570
- if (c = new m(e), !c.isInt() || c.lt(u)) throw Error(di + c);
31570
+ if (c = new m(e), !c.isInt() || c.lt(u)) throw Error(pi + c);
31571
31571
  e = c.gt(t) ? s > 0 ? t : u : c;
31572
31572
  }
31573
31573
  for (Ae = !1, c = new m(Ft(g)), f = m.precision, m.precision = s = g.length * _e * 2; l = Ze(c, t, 0, 1, 1), i = n.plus(l.times(r)), i.cmp(e) != 1; )
@@ -31607,15 +31607,15 @@ se.toPower = se.pow = function(e) {
31607
31607
  if ((e.d[t] & 1) == 0 && (o = 1), c.e == 0 && c.d[0] == 1 && c.d.length == 1)
31608
31608
  return c.s = o, c;
31609
31609
  }
31610
- return n = At(+c, u), t = n == 0 || !isFinite(n) ? Xt(u * (Math.log("0." + Ft(c.d)) / Math.LN10 + c.e + 1)) : new a(n + "").e, t > a.maxE + 1 || t < a.minE - 1 ? new a(t > 0 ? o / 0 : 0) : (Ae = !1, a.rounding = c.s = 1, n = Math.min(12, (t + "").length), i = xl(e.times(ci(c, r + n)), r), i.d && (i = be(i, r + 5, 1), Go(i.d, r, s) && (t = r + 10, i = be(xl(e.times(ci(c, t + n)), t), t + 5, 1), +Ft(i.d).slice(r + 1, r + 15) + 1 == 1e14 && (i = be(i, r + 1, 0)))), i.s = o, Ae = !0, a.rounding = s, be(i, r, s));
31610
+ return n = At(+c, u), t = n == 0 || !isFinite(n) ? Xt(u * (Math.log("0." + Ft(c.d)) / Math.LN10 + c.e + 1)) : new a(n + "").e, t > a.maxE + 1 || t < a.minE - 1 ? new a(t > 0 ? o / 0 : 0) : (Ae = !1, a.rounding = c.s = 1, n = Math.min(12, (t + "").length), i = xl(e.times(ai(c, r + n)), r), i.d && (i = be(i, r + 5, 1), Go(i.d, r, s) && (t = r + 10, i = be(xl(e.times(ai(c, t + n)), t), t + 5, 1), +Ft(i.d).slice(r + 1, r + 15) + 1 == 1e14 && (i = be(i, r + 1, 0)))), i.s = o, Ae = !0, a.rounding = s, be(i, r, s));
31611
31611
  };
31612
31612
  se.toPrecision = function(e, t) {
31613
31613
  var n, r = this, i = r.constructor;
31614
- return e === void 0 ? n = cr(r, r.e <= i.toExpNeg || r.e >= i.toExpPos) : (yn(e, 1, mi), t === void 0 ? t = i.rounding : yn(t, 0, 8), r = be(new i(r), e, t), n = cr(r, e <= r.e || r.e <= i.toExpNeg, e)), r.isNeg() && !r.isZero() ? "-" + n : n;
31614
+ return e === void 0 ? n = cr(r, r.e <= i.toExpNeg || r.e >= i.toExpPos) : (yn(e, 1, wi), t === void 0 ? t = i.rounding : yn(t, 0, 8), r = be(new i(r), e, t), n = cr(r, e <= r.e || r.e <= i.toExpNeg, e)), r.isNeg() && !r.isZero() ? "-" + n : n;
31615
31615
  };
31616
31616
  se.toSignificantDigits = se.toSD = function(e, t) {
31617
31617
  var n = this, r = n.constructor;
31618
- return e === void 0 ? (e = r.precision, t = r.rounding) : (yn(e, 1, mi), t === void 0 ? t = r.rounding : yn(t, 0, 8)), be(new r(n), e, t);
31618
+ return e === void 0 ? (e = r.precision, t = r.rounding) : (yn(e, 1, wi), t === void 0 ? t = r.rounding : yn(t, 0, 8)), be(new r(n), e, t);
31619
31619
  };
31620
31620
  se.toString = function() {
31621
31621
  var e = this, t = e.constructor, n = cr(e, e.e <= t.toExpNeg || e.e >= t.toExpPos);
@@ -31641,7 +31641,7 @@ function Ft(e) {
31641
31641
  }
31642
31642
  function yn(e, t, n) {
31643
31643
  if (e !== ~~e || e < t || e > n)
31644
- throw Error(di + e);
31644
+ throw Error(pi + e);
31645
31645
  }
31646
31646
  function Go(e, t, n, r) {
31647
31647
  var i, s, o, c;
@@ -31837,7 +31837,7 @@ function xl(e, t) {
31837
31837
  o = c;
31838
31838
  }
31839
31839
  }
31840
- function ci(e, t) {
31840
+ function ai(e, t) {
31841
31841
  var n, r, i, s, o, c, a, u, f, l, d, y = 1, g = 10, m = e, E = m.d, S = m.constructor, _ = S.rounding, w = S.precision;
31842
31842
  if (m.s < 0 || !E || !E[0] || !m.e && E[0] == 1 && E.length == 1)
31843
31843
  return new S(E && !E[0] ? -1 / 0 : m.s != 1 ? NaN : E ? 0 : m);
@@ -31846,7 +31846,7 @@ function ci(e, t) {
31846
31846
  m = m.times(e), n = Ft(m.d), r = n.charAt(0), y++;
31847
31847
  s = m.e, r > 1 ? (m = new S("0." + n), s++) : m = new S(r + "." + n.slice(1));
31848
31848
  } else
31849
- return u = Va(S, f + 2, w).times(s + ""), m = ci(new S(r + "." + n.slice(1)), f - g).plus(u), S.precision = w, t == null ? be(m, w, _, Ae = !0) : m;
31849
+ return u = Va(S, f + 2, w).times(s + ""), m = ai(new S(r + "." + n.slice(1)), f - g).plus(u), S.precision = w, t == null ? be(m, w, _, Ae = !0) : m;
31850
31850
  for (l = m, a = o = m = Ze(m.minus(1), m.plus(1), f, 1), d = be(m.times(m), f, 1), i = 3; ; ) {
31851
31851
  if (o = be(o.times(d), f, 1), u = a.plus(Ze(o, new S(i), f, 1)), Ft(u.d).slice(0, f) === Ft(a.d).slice(0, f))
31852
31852
  if (a = a.times(2), s !== 0 && (a = a.plus(Va(S, f + 2, w).times(s + ""))), a = Ze(a, new S(y), f, 1), t == null)
@@ -31891,7 +31891,7 @@ function iI(e, t) {
31891
31891
  else if (eI.test(t))
31892
31892
  n = 8;
31893
31893
  else
31894
- throw Error(di + t);
31894
+ throw Error(pi + t);
31895
31895
  for (s = t.search(/p/i), s > 0 ? (a = +t.slice(s + 1), t = t.substring(2, s)) : t = t.slice(2), s = t.indexOf("."), o = s >= 0, r = e.constructor, o && (t = t.replace(".", ""), c = t.length, s = c - s, i = T1(r, new r(n), s, s * 2)), u = aa(t, n, jn), f = u.length - 1, s = f; u[s] === 0; --s) u.pop();
31896
31896
  return s < 0 ? new r(e.s * 0) : (e.e = vu(u, f), e.d = u, Ae = !1, o && (e = Ze(e, i, c * 4)), a && (e = e.times(Math.abs(a) < 54 ? At(2, a) : Sr.pow(2, a))), Ae = !0, e);
31897
31897
  }
@@ -31934,7 +31934,7 @@ function v1(e, t) {
31934
31934
  }
31935
31935
  function Hh(e, t, n, r) {
31936
31936
  var i, s, o, c, a, u, f, l, d, y = e.constructor, g = n !== void 0;
31937
- if (g ? (yn(n, 1, mi), r === void 0 ? r = y.rounding : yn(r, 0, 8)) : (n = y.precision, r = y.rounding), !e.isFinite())
31937
+ if (g ? (yn(n, 1, wi), r === void 0 ? r = y.rounding : yn(r, 0, 8)) : (n = y.precision, r = y.rounding), !e.isFinite())
31938
31938
  f = A1(e);
31939
31939
  else {
31940
31940
  for (f = cr(e), o = f.indexOf("."), g ? (i = 2, t == 16 ? n = n * 4 - 3 : t == 8 && (n = n * 3 - 2)) : i = t, o >= 0 && (f = f.replace(".", ""), d = new y(1), d.e = f.length - o, d.d = aa(cr(d), 10, i), d.e = d.d.length), l = aa(f, 10, i), s = a = l.length; l[--a] == 0; ) l.pop();
@@ -32012,7 +32012,7 @@ function wI(e) {
32012
32012
  var t, n, r, i = e.defaults === !0, s = [
32013
32013
  "precision",
32014
32014
  1,
32015
- mi,
32015
+ wi,
32016
32016
  "rounding",
32017
32017
  0,
32018
32018
  8,
@@ -32035,7 +32035,7 @@ function wI(e) {
32035
32035
  for (t = 0; t < s.length; t += 3)
32036
32036
  if (n = s[t], i && (this[n] = Sl[n]), (r = e[n]) !== void 0)
32037
32037
  if (Xt(r) === r && r >= s[t + 1] && r <= s[t + 2]) this[n] = r;
32038
- else throw Error(di + n + ": " + r);
32038
+ else throw Error(pi + n + ": " + r);
32039
32039
  if (n = "crypto", i && (this[n] = Sl[n]), (r = e[n]) !== void 0)
32040
32040
  if (r === !0 || r === !1 || r === 0 || r === 1)
32041
32041
  if (r)
@@ -32046,7 +32046,7 @@ function wI(e) {
32046
32046
  else
32047
32047
  this[n] = !1;
32048
32048
  else
32049
- throw Error(di + n + ": " + r);
32049
+ throw Error(pi + n + ": " + r);
32050
32050
  return this;
32051
32051
  }
32052
32052
  function bI(e) {
@@ -32084,7 +32084,7 @@ function I1(e) {
32084
32084
  return (c = s.charCodeAt(0)) === 45 ? (s = s.slice(1), u.s = -1) : (c === 43 && (s = s.slice(1)), u.s = 1), _1.test(s) ? ua(u, s) : iI(u, s);
32085
32085
  if (a === "bigint")
32086
32086
  return s < 0 ? (s = -s, u.s = -1) : u.s = 1, ua(u, s.toString());
32087
- throw Error(di + s);
32087
+ throw Error(pi + s);
32088
32088
  }
32089
32089
  if (i.prototype = se, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.EUCLID = 9, i.config = i.set = wI, i.clone = I1, i.isDecimal = Py, i.abs = oI, i.acos = cI, i.acosh = aI, i.add = uI, i.asin = fI, i.asinh = lI, i.atan = hI, i.atanh = dI, i.atan2 = pI, i.cbrt = yI, i.ceil = gI, i.clamp = mI, i.cos = bI, i.cosh = EI, i.div = _I, i.exp = SI, i.floor = TI, i.hypot = xI, i.ln = AI, i.log = vI, i.log10 = OI, i.log2 = II, i.max = BI, i.min = NI, i.mod = kI, i.mul = PI, i.pow = RI, i.random = UI, i.round = CI, i.sign = HI, i.sin = FI, i.sinh = MI, i.sqrt = LI, i.sub = qI, i.sum = VI, i.tan = DI, i.tanh = $I, i.trunc = jI, e === void 0 && (e = {}), e && e.defaults !== !0)
32090
32090
  for (r = ["precision", "rounding", "toExpNeg", "toExpPos", "maxE", "minE", "modulo", "crypto"], t = 0; t < r.length; ) e.hasOwnProperty(n = r[t++]) || (e[n] = this[n]);
@@ -32143,7 +32143,7 @@ function RI(e, t) {
32143
32143
  }
32144
32144
  function UI(e) {
32145
32145
  var t, n, r, i, s = 0, o = new this(1), c = [];
32146
- if (e === void 0 ? e = this.precision : yn(e, 1, mi), r = Math.ceil(e / _e), this.crypto)
32146
+ if (e === void 0 ? e = this.precision : yn(e, 1, wi), r = Math.ceil(e / _e), this.crypto)
32147
32147
  if (crypto.getRandomValues)
32148
32148
  for (t = crypto.getRandomValues(new Uint32Array(r)); s < r; )
32149
32149
  i = t[s], i >= 429e7 ? t[s] = crypto.getRandomValues(new Uint32Array(1))[0] : c[s++] = i % 1e7;
@@ -32525,6 +32525,59 @@ class GI {
32525
32525
  ) < 0
32526
32526
  );
32527
32527
  }
32528
+ /**
32529
+ * Get pending (zero-confirmation) Bitcoin UTXOs for a payment address
32530
+ * These are UTXOs from Ree protocol transactions that have been broadcast but not yet confirmed
32531
+ * Filters out UTXOs that contain runes to get pure Bitcoin UTXOs only
32532
+ * @param paymentAddress - The Bitcoin payment address to check for pending UTXOs
32533
+ * @returns Array of pending Bitcoin UTXOs without runes from Ree transactions
32534
+ */
32535
+ async getPendingBtcUtxos(t) {
32536
+ const n = await this.orchestrator.get_zero_confirmed_utxos_of_address(
32537
+ t
32538
+ ), r = ci(t);
32539
+ return n.filter(({ maybe_rune: i }) => !i.length).map(({ value: i, script_pubkey_hex: s, outpoint: o }) => {
32540
+ const [c, a] = o.split(":");
32541
+ return {
32542
+ txid: c,
32543
+ vout: Number(a),
32544
+ satoshis: i.toString(),
32545
+ scriptPk: s,
32546
+ addressType: r,
32547
+ address: t,
32548
+ runes: []
32549
+ };
32550
+ });
32551
+ }
32552
+ /**
32553
+ * Get pending (zero-confirmation) Rune UTXOs for an address
32554
+ * These are UTXOs from Ree protocol transactions that have been broadcast but not yet confirmed
32555
+ * Filters to include only UTXOs that contain runes
32556
+ * @param address - The Bitcoin address to check for pending rune UTXOs
32557
+ * @returns Array of pending UTXOs containing runes from Ree transactions
32558
+ */
32559
+ async getPendingRuneUtxos(t) {
32560
+ const n = await this.orchestrator.get_zero_confirmed_utxos_of_address(
32561
+ t
32562
+ ), r = ci(t);
32563
+ return n.filter(({ maybe_rune: i }) => i.length).map(({ value: i, script_pubkey_hex: s, outpoint: o, maybe_rune: c }) => {
32564
+ const [a, u] = o.split(":"), f = c[0];
32565
+ return {
32566
+ txid: a,
32567
+ vout: Number(u),
32568
+ satoshis: i.toString(),
32569
+ scriptPk: s,
32570
+ addressType: r,
32571
+ address: t,
32572
+ runes: f ? [
32573
+ {
32574
+ id: f.id,
32575
+ amount: f.value.toString()
32576
+ }
32577
+ ] : []
32578
+ };
32579
+ });
32580
+ }
32528
32581
  /**
32529
32582
  * Get all Bitcoin UTXOs for the payment address
32530
32583
  * Handles pagination automatically to fetch all available UTXOs
@@ -32532,32 +32585,32 @@ class GI {
32532
32585
  */
32533
32586
  async getBtcUtxos(t, n = !0) {
32534
32587
  let r = null;
32535
- const i = [];
32588
+ const i = [], s = await this.getPendingBtcUtxos(t);
32536
32589
  do {
32537
- const o = await this.maestro.utxosByAddress(
32590
+ const c = await this.maestro.utxosByAddress(
32538
32591
  t,
32539
32592
  r,
32540
32593
  n
32541
32594
  );
32542
- i.push(...o.data), r = o.next_cursor;
32595
+ i.push(...c.data), r = c.next_cursor;
32543
32596
  } while (r !== null);
32544
- const s = i.map(
32545
- ({ txid: o, vout: c, runes: a, satoshis: u, script_pubkey: f, address: l }) => ({
32546
- txid: o,
32547
- vout: c,
32548
- address: l,
32549
- runes: a.map(({ rune_id: d, amount: y }) => {
32550
- const g = (y.split(".")[1] ?? "").length, m = new Sr(y).mul(10 ** g).toFixed(0);
32597
+ const o = i.map(
32598
+ ({ txid: c, vout: a, runes: u, satoshis: f, script_pubkey: l, address: d }) => ({
32599
+ txid: c,
32600
+ vout: a,
32601
+ address: d,
32602
+ runes: u.map(({ rune_id: y, amount: g }) => {
32603
+ const m = (g.split(".")[1] ?? "").length, E = new Sr(g).mul(10 ** m).toFixed(0);
32551
32604
  return {
32552
- id: d,
32553
- amount: m
32605
+ id: y,
32606
+ amount: E
32554
32607
  };
32555
32608
  }),
32556
- satoshis: u,
32557
- scriptPk: f
32609
+ satoshis: f,
32610
+ scriptPk: l
32558
32611
  })
32559
32612
  );
32560
- return this.filterSpentUtxos(t, s);
32613
+ return this.filterSpentUtxos(t, o.concat(s));
32561
32614
  }
32562
32615
  /**
32563
32616
  * Get UTXOs containing a specific rune for the user's address
@@ -32566,33 +32619,33 @@ class GI {
32566
32619
  */
32567
32620
  async getRuneUtxos(t, n) {
32568
32621
  let r = null;
32569
- const i = [];
32622
+ const i = [], s = await this.getPendingRuneUtxos(t);
32570
32623
  do {
32571
- const o = await this.maestro.runeUtxosByAddress(
32624
+ const c = await this.maestro.runeUtxosByAddress(
32572
32625
  t,
32573
32626
  n,
32574
32627
  r
32575
32628
  );
32576
- i.push(...o.data), r = o.next_cursor;
32629
+ i.push(...c.data), r = c.next_cursor;
32577
32630
  } while (r !== null);
32578
- const s = i.map(({ txid: o, vout: c, runes: a, satoshis: u }) => {
32579
- const f = kh(t, this.config.network);
32631
+ const o = i.map(({ txid: c, vout: a, runes: u, satoshis: f }) => {
32632
+ const l = kh(t, this.config.network);
32580
32633
  return {
32581
- txid: o,
32582
- vout: c,
32634
+ txid: c,
32635
+ vout: a,
32583
32636
  address: t,
32584
- runes: a.map(({ rune_id: l, amount: d }) => {
32585
- const y = (d.split(".")[1] ?? "").length, g = new Sr(d).mul(10 ** y).toFixed(0);
32637
+ runes: u.map(({ rune_id: d, amount: y }) => {
32638
+ const g = (y.split(".")[1] ?? "").length, m = new Sr(y).mul(10 ** g).toFixed(0);
32586
32639
  return {
32587
- id: l,
32588
- amount: g
32640
+ id: d,
32641
+ amount: m
32589
32642
  };
32590
32643
  }),
32591
- satoshis: u,
32592
- scriptPk: Bh(f)
32644
+ satoshis: f,
32645
+ scriptPk: Bh(l)
32593
32646
  };
32594
32647
  });
32595
- return this.filterSpentUtxos(t, s);
32648
+ return this.filterSpentUtxos(t, o.concat(s));
32596
32649
  }
32597
32650
  /**
32598
32651
  * Search for runes by keyword or rune ID
@@ -32762,14 +32815,14 @@ function m6({ children: e, config: t }) {
32762
32815
  );
32763
32816
  return /* @__PURE__ */ B1(O1.Provider, { value: c, children: e });
32764
32817
  }
32765
- function wi() {
32818
+ function bi() {
32766
32819
  const e = k1(O1);
32767
32820
  if (!e)
32768
32821
  throw new Error("useRee must be used within ReeProvider");
32769
32822
  return e;
32770
32823
  }
32771
32824
  function w6(e = {}) {
32772
- const { refreshInterval: t = 0, autoRefresh: n = !0 } = e, { client: r, paymentAddress: i } = wi(), [s, o] = lt(null), [c, a] = lt(!1), [u, f] = lt(null), l = sr(async () => {
32825
+ const { refreshInterval: t = 0, autoRefresh: n = !0 } = e, { client: r, paymentAddress: i } = bi(), [s, o] = lt(null), [c, a] = lt(!1), [u, f] = lt(null), l = sr(async () => {
32773
32826
  if (!i) {
32774
32827
  o(null), f("Payment address not set");
32775
32828
  return;
@@ -32801,7 +32854,7 @@ function w6(e = {}) {
32801
32854
  };
32802
32855
  }
32803
32856
  function b6(e, t = {}) {
32804
- const { refreshInterval: n = 0, autoRefresh: r = !0 } = t, { client: i, address: s } = wi(), [o, c] = lt(null), [a, u] = lt(!1), [f, l] = lt(null), d = sr(async () => {
32857
+ const { refreshInterval: n = 0, autoRefresh: r = !0 } = t, { client: i, address: s } = bi(), [o, c] = lt(null), [a, u] = lt(!1), [f, l] = lt(null), d = sr(async () => {
32805
32858
  if (!s) {
32806
32859
  c(null), l("Address not set");
32807
32860
  return;
@@ -32837,7 +32890,7 @@ function b6(e, t = {}) {
32837
32890
  };
32838
32891
  }
32839
32892
  function E6(e = {}) {
32840
- const { refreshInterval: t = 0, autoRefresh: n = !0 } = e, { client: r, paymentAddress: i } = wi(), [s, o] = lt([]), [c, a] = lt(!1), [u, f] = lt(null), l = sr(async () => {
32893
+ const { refreshInterval: t = 0, autoRefresh: n = !0 } = e, { client: r, paymentAddress: i } = bi(), [s, o] = lt([]), [c, a] = lt(!1), [u, f] = lt(null), l = sr(async () => {
32841
32894
  if (!i) {
32842
32895
  o([]), f("Payment address not set");
32843
32896
  return;
@@ -32869,7 +32922,7 @@ function E6(e = {}) {
32869
32922
  };
32870
32923
  }
32871
32924
  function _6(e, t = {}) {
32872
- const { refreshInterval: n = 0, autoRefresh: r = !0 } = t, { client: i, address: s } = wi(), [o, c] = lt([]), [a, u] = lt(!1), [f, l] = lt(null), d = sr(async () => {
32925
+ const { refreshInterval: n = 0, autoRefresh: r = !0 } = t, { client: i, address: s } = bi(), [o, c] = lt([]), [a, u] = lt(!1), [f, l] = lt(null), d = sr(async () => {
32873
32926
  if (!s) {
32874
32927
  c([]), l("Address not set");
32875
32928
  return;
@@ -32905,7 +32958,7 @@ function _6(e, t = {}) {
32905
32958
  };
32906
32959
  }
32907
32960
  function S6() {
32908
- const { client: e } = wi();
32961
+ const { client: e } = bi();
32909
32962
  return sr(
32910
32963
  async (n) => {
32911
32964
  const r = n;
@@ -32917,7 +32970,7 @@ function S6() {
32917
32970
  );
32918
32971
  }
32919
32972
  function T6(e) {
32920
- const { client: t } = wi(), [n, r] = lt(null), [i, s] = lt(!1), [o, c] = lt(null), a = sr(async () => {
32973
+ const { client: t } = bi(), [n, r] = lt(null), [i, s] = lt(!1), [o, c] = lt(null), a = sr(async () => {
32921
32974
  if (!e) {
32922
32975
  r(null), c("Rune ID is required");
32923
32976
  return;
@@ -32942,7 +32995,7 @@ function T6(e) {
32942
32995
  };
32943
32996
  }
32944
32997
  function x6() {
32945
- const { client: e } = wi(), [t, n] = lt([]), [r, i] = lt(!1), [s, o] = lt(null), c = sr(async () => {
32998
+ const { client: e } = bi(), [t, n] = lt([]), [r, i] = lt(!1), [s, o] = lt(null), c = sr(async () => {
32946
32999
  i(!0), o(null);
32947
33000
  try {
32948
33001
  const a = await e.getPoolList();
@@ -32965,7 +33018,7 @@ function x6() {
32965
33018
  };
32966
33019
  }
32967
33020
  function A6(e) {
32968
- const { client: t } = wi(), [n, r] = lt(null), [i, s] = lt(!1), [o, c] = lt(null), a = sr(async () => {
33021
+ const { client: t } = bi(), [n, r] = lt(null), [i, s] = lt(!1), [o, c] = lt(null), a = sr(async () => {
32969
33022
  if (!e) {
32970
33023
  r(null), c("Pool address is required");
32971
33024
  return;
@@ -33000,7 +33053,7 @@ export {
33000
33053
  E6 as useBtcUtxos,
33001
33054
  A6 as usePoolInfo,
33002
33055
  x6 as usePoolList,
33003
- wi as useRee,
33056
+ bi as useRee,
33004
33057
  b6 as useRuneBalance,
33005
33058
  T6 as useRuneInfo,
33006
33059
  _6 as useRuneUtxos,