@zama-fhe/relayer-sdk 0.2.0-4 → 0.2.0-5

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.
@@ -880,11 +880,11 @@ Nu.write = function(n, t, e, r, i, o) {
880
880
  "ERR_OUT_OF_RANGE",
881
881
  function(b, h, d) {
882
882
  let P = `The value of "${b}" is out of range.`, U = d;
883
- return Number.isInteger(d) && Math.abs(d) > 2 ** 32 ? U = tt(String(d)) : typeof d == "bigint" && (U = String(d), (d > BigInt(2) ** BigInt(32) || d < -(BigInt(2) ** BigInt(32))) && (U = tt(U)), U += "n"), P += ` It must be ${h}. Received ${U}`, P;
883
+ return Number.isInteger(d) && Math.abs(d) > 2 ** 32 ? U = et(String(d)) : typeof d == "bigint" && (U = String(d), (d > BigInt(2) ** BigInt(32) || d < -(BigInt(2) ** BigInt(32))) && (U = et(U)), U += "n"), P += ` It must be ${h}. Received ${U}`, P;
884
884
  },
885
885
  RangeError
886
886
  );
887
- function tt(b) {
887
+ function et(b) {
888
888
  let h = "", d = b.length;
889
889
  const P = b[0] === "-" ? 1 : 0;
890
890
  for (; d >= P + 4; d -= 3)
@@ -1018,7 +1018,7 @@ Nu.write = function(n, t, e, r, i, o) {
1018
1018
  throw new Error("BigInt not supported");
1019
1019
  }
1020
1020
  })(sw);
1021
- const Ye = sw.Buffer, Jg = "6.15.0";
1021
+ const Xe = sw.Buffer, Jg = "6.15.0";
1022
1022
  function $g(n, t, e) {
1023
1023
  const r = t.split("|").map((o) => o.trim());
1024
1024
  for (let o = 0; o < r.length; o++)
@@ -1087,7 +1087,7 @@ function Ae(n, t) {
1087
1087
  function Lu(n) {
1088
1088
  return Ae(n, "CALL_EXCEPTION");
1089
1089
  }
1090
- function te(n, t, e) {
1090
+ function ee(n, t, e) {
1091
1091
  let r = n;
1092
1092
  {
1093
1093
  const o = [];
@@ -1119,7 +1119,7 @@ function te(n, t, e) {
1119
1119
  }
1120
1120
  function ft(n, t, e, r) {
1121
1121
  if (!n)
1122
- throw te(t, e, r);
1122
+ throw ee(t, e, r);
1123
1123
  }
1124
1124
  function V(n, t, e, r) {
1125
1125
  ft(n, t, "INVALID_ARGUMENT", { argument: e, value: r });
@@ -1216,30 +1216,30 @@ function Yn(n, t) {
1216
1216
  function Yg(n, t) {
1217
1217
  return uw(n, t, !1);
1218
1218
  }
1219
- const Uo = BigInt(0), Je = BigInt(1), Ki = 9007199254740991;
1219
+ const Uo = BigInt(0), Ye = BigInt(1), Ki = 9007199254740991;
1220
1220
  function Zg(n, t) {
1221
1221
  const e = Mo(n, "value"), r = BigInt(Tt(t, "width"));
1222
1222
  if (ft(e >> r === Uo, "overflow", "NUMERIC_FAULT", {
1223
1223
  operation: "fromTwos",
1224
1224
  fault: "overflow",
1225
1225
  value: n
1226
- }), e >> r - Je) {
1227
- const i = (Je << r) - Je;
1228
- return -((~e & i) + Je);
1226
+ }), e >> r - Ye) {
1227
+ const i = (Ye << r) - Ye;
1228
+ return -((~e & i) + Ye);
1229
1229
  }
1230
1230
  return e;
1231
1231
  }
1232
1232
  function _w(n, t) {
1233
1233
  let e = At(n, "value");
1234
- const r = BigInt(Tt(t, "width")), i = Je << r - Je;
1234
+ const r = BigInt(Tt(t, "width")), i = Ye << r - Ye;
1235
1235
  if (e < Uo) {
1236
1236
  e = -e, ft(e <= i, "too low", "NUMERIC_FAULT", {
1237
1237
  operation: "toTwos",
1238
1238
  fault: "overflow",
1239
1239
  value: n
1240
1240
  });
1241
- const o = (Je << r) - Je;
1242
- return (~e & o) + Je;
1241
+ const o = (Ye << r) - Ye;
1242
+ return (~e & o) + Ye;
1243
1243
  } else
1244
1244
  ft(e < i, "too high", "NUMERIC_FAULT", {
1245
1245
  operation: "toTwos",
@@ -1250,7 +1250,7 @@ function _w(n, t) {
1250
1250
  }
1251
1251
  function zs(n, t) {
1252
1252
  const e = Mo(n, "value"), r = BigInt(Tt(t, "bits"));
1253
- return e & (Je << r) - Je;
1253
+ return e & (Ye << r) - Ye;
1254
1254
  }
1255
1255
  function At(n, t) {
1256
1256
  switch (typeof n) {
@@ -1335,7 +1335,7 @@ function ge(n) {
1335
1335
  }
1336
1336
  return r;
1337
1337
  }
1338
- function Ke(n) {
1338
+ function Je(n) {
1339
1339
  let t = yt(Du(n) ? n : ge(n)).substring(2);
1340
1340
  for (; t.startsWith("0"); )
1341
1341
  t = t.substring(1);
@@ -1501,10 +1501,10 @@ function hw(n) {
1501
1501
  });
1502
1502
  let o = null;
1503
1503
  const a = new AbortController(), u = setTimeout(() => {
1504
- o = te("request timeout", "TIMEOUT"), a.abort();
1504
+ o = ee("request timeout", "TIMEOUT"), a.abort();
1505
1505
  }, e.timeout);
1506
1506
  r && r.addListener(() => {
1507
- o = te("request cancelled", "CANCELLED"), a.abort();
1507
+ o = ee("request cancelled", "CANCELLED"), a.abort();
1508
1508
  });
1509
1509
  const _ = Object.assign({}, n, {
1510
1510
  method: e.method,
@@ -3188,7 +3188,7 @@ function Ku(n, t) {
3188
3188
  function cy(n) {
3189
3189
  return os(Gw(n));
3190
3190
  }
3191
- function qe(n, t, e) {
3191
+ function Ke(n, t, e) {
3192
3192
  let r;
3193
3193
  if (typeof t == "string")
3194
3194
  try {
@@ -3306,7 +3306,7 @@ const wy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3306
3306
  bytesToNumberLE: Qu,
3307
3307
  concatBytes: Ns,
3308
3308
  createHmacDrbg: Hw,
3309
- ensureBytes: qe,
3309
+ ensureBytes: Ke,
3310
3310
  equalBytes: uy,
3311
3311
  hexToBytes: os,
3312
3312
  hexToNumber: qu,
@@ -3702,7 +3702,7 @@ function Fy(n) {
3702
3702
  }
3703
3703
  let S;
3704
3704
  try {
3705
- S = typeof F == "bigint" ? F : ki(qe("private key", F, T));
3705
+ S = typeof F == "bigint" ? F : ki(Ke("private key", F, T));
3706
3706
  } catch {
3707
3707
  throw new Error(`private key must be ${T} bytes, hex or bigint, not ${typeof F}`);
3708
3708
  }
@@ -3754,7 +3754,7 @@ function Fy(n) {
3754
3754
  * @param hex short/long ECDSA hex
3755
3755
  */
3756
3756
  static fromHex(k) {
3757
- const T = w.fromAffine(i(qe("pointHex", k)));
3757
+ const T = w.fromAffine(i(Ke("pointHex", k)));
3758
3758
  return T.assertValidity(), T;
3759
3759
  }
3760
3760
  // Multiplies generator point by privateKey.
@@ -3991,12 +3991,12 @@ function Oy(n) {
3991
3991
  // pair (bytes of r, bytes of s)
3992
3992
  static fromCompact(ht) {
3993
3993
  const Et = t.nByteLength;
3994
- return ht = qe("compactSignature", ht, Et * 2), new A(T(ht, 0, Et), T(ht, Et, 2 * Et));
3994
+ return ht = Ke("compactSignature", ht, Et * 2), new A(T(ht, 0, Et), T(ht, Et, 2 * Et));
3995
3995
  }
3996
3996
  // DER encoded ECDSA signature
3997
3997
  // https://bitcoin.stackexchange.com/questions/57644/what-are-the-parts-of-a-bitcoin-transaction-input-script
3998
3998
  static fromDER(ht) {
3999
- const { r: Et, s: Rt } = xi.toSig(qe("DER", ht));
3999
+ const { r: Et, s: Rt } = xi.toSig(Ke("DER", ht));
4000
4000
  return new A(Et, Rt);
4001
4001
  }
4002
4002
  assertValidity() {
@@ -4009,7 +4009,7 @@ function Oy(n) {
4009
4009
  return new A(this.r, this.s, ht);
4010
4010
  }
4011
4011
  recoverPublicKey(ht) {
4012
- const { r: Et, s: Rt, recovery: vt } = this, Pt = N(qe("msgHash", ht));
4012
+ const { r: Et, s: Rt, recovery: vt } = this, Pt = N(Ke("msgHash", ht));
4013
4013
  if (vt == null || ![0, 1, 2, 3].includes(vt))
4014
4014
  throw new Error("recovery id invalid");
4015
4015
  const Ct = vt === 2 || vt === 3 ? Et + t.n : Et;
@@ -4103,25 +4103,25 @@ function Oy(n) {
4103
4103
  throw new Error("sign() legacy options not supported");
4104
4104
  const { hash: Rt, randomBytes: vt } = t;
4105
4105
  let { lowS: Pt, prehash: Ct, extraEntropy: W } = Et;
4106
- Pt == null && (Pt = !0), at = qe("msgHash", at), Ct && (at = qe("prehashed msgHash", Rt(at)));
4106
+ Pt == null && (Pt = !0), at = Ke("msgHash", at), Ct && (at = Ke("prehashed msgHash", Rt(at)));
4107
4107
  const Z = N(at), rt = f(ht), gt = [Y(rt), Y(Z)];
4108
4108
  if (W != null) {
4109
4109
  const ct = W === !0 ? vt(e.BYTES) : W;
4110
- gt.push(qe("extraEntropy", ct));
4110
+ gt.push(Ke("extraEntropy", ct));
4111
4111
  }
4112
4112
  const G = Ns(...gt), M = Z;
4113
4113
  function X(ct) {
4114
4114
  const _t = C(ct);
4115
4115
  if (!y(_t))
4116
4116
  return;
4117
- const v = _(_t), R = l.BASE.multiply(_t).toAffine(), tt = u(R.x);
4118
- if (tt === Vn)
4117
+ const v = _(_t), R = l.BASE.multiply(_t).toAffine(), et = u(R.x);
4118
+ if (et === Vn)
4119
4119
  return;
4120
- const lt = u(v * u(M + tt * rt));
4120
+ const lt = u(v * u(M + et * rt));
4121
4121
  if (lt === Vn)
4122
4122
  return;
4123
- let Bt = (R.x === tt ? 0 : 2) | Number(R.y & je), bt = lt;
4124
- return Pt && F(lt) && (bt = k(lt), Bt ^= 1), new A(tt, bt, Bt);
4123
+ let Bt = (R.x === et ? 0 : 2) | Number(R.y & je), bt = lt;
4124
+ return Pt && F(lt) && (bt = k(lt), Bt ^= 1), new A(et, bt, Bt);
4125
4125
  }
4126
4126
  return { seed: G, k2sig: X };
4127
4127
  }
@@ -4133,7 +4133,7 @@ function Oy(n) {
4133
4133
  l.BASE._setWindowSize(8);
4134
4134
  function xt(at, ht, Et, Rt = D) {
4135
4135
  const vt = at;
4136
- if (ht = qe("msgHash", ht), Et = qe("publicKey", Et), "strict" in Rt)
4136
+ if (ht = Ke("msgHash", ht), Et = Ke("publicKey", Et), "strict" in Rt)
4137
4137
  throw new Error("options.strict was renamed to lowS");
4138
4138
  const { lowS: Pt, prehash: Ct } = Rt;
4139
4139
  let W, Z;
@@ -4147,8 +4147,8 @@ function Oy(n) {
4147
4147
  W = A.fromCompact(vt);
4148
4148
  }
4149
4149
  else if (typeof vt == "object" && typeof vt.r == "bigint" && typeof vt.s == "bigint") {
4150
- const { r: R, s: tt } = vt;
4151
- W = new A(R, tt);
4150
+ const { r: R, s: et } = vt;
4151
+ W = new A(R, et);
4152
4152
  } else
4153
4153
  throw new Error("PARSE");
4154
4154
  Z = l.fromHex(Et);
@@ -6082,7 +6082,7 @@ function Eb(n, t) {
6082
6082
  ];
6083
6083
  return t && (e.push(Dt(t.yParity, "yParity")), e.push(ge(t.r)), e.push(ge(t.s))), oe(["0x04", fi(e)]);
6084
6084
  }
6085
- class Qe {
6085
+ class We {
6086
6086
  #t;
6087
6087
  #e;
6088
6088
  #r;
@@ -6516,7 +6516,7 @@ class Qe {
6516
6516
  * Create a copy of this transaciton.
6517
6517
  */
6518
6518
  clone() {
6519
- return Qe.from(this);
6519
+ return We.from(this);
6520
6520
  }
6521
6521
  /**
6522
6522
  * Return a JSON-friendly object.
@@ -6545,24 +6545,24 @@ class Qe {
6545
6545
  */
6546
6546
  static from(t) {
6547
6547
  if (t == null)
6548
- return new Qe();
6548
+ return new We();
6549
6549
  if (typeof t == "string") {
6550
6550
  const r = Ot(t);
6551
6551
  if (r[0] >= 127)
6552
- return Qe.from(hb(r));
6552
+ return We.from(hb(r));
6553
6553
  switch (r[0]) {
6554
6554
  case 1:
6555
- return Qe.from(gb(r));
6555
+ return We.from(gb(r));
6556
6556
  case 2:
6557
- return Qe.from(wb(r));
6557
+ return We.from(wb(r));
6558
6558
  case 3:
6559
- return Qe.from(bb(r));
6559
+ return We.from(bb(r));
6560
6560
  case 4:
6561
- return Qe.from(Ab(r));
6561
+ return We.from(Ab(r));
6562
6562
  }
6563
6563
  ft(!1, "unsupported transaction type", "UNSUPPORTED_OPERATION", { operation: "from" });
6564
6564
  }
6565
- const e = new Qe();
6565
+ const e = new We();
6566
6566
  return t.type != null && (e.type = t.type), t.to != null && (e.to = t.to), t.nonce != null && (e.nonce = t.nonce), t.gasLimit != null && (e.gasLimit = t.gasLimit), t.gasPrice != null && (e.gasPrice = t.gasPrice), t.maxPriorityFeePerGas != null && (e.maxPriorityFeePerGas = t.maxPriorityFeePerGas), t.maxFeePerGas != null && (e.maxFeePerGas = t.maxFeePerGas), t.maxFeePerBlobGas != null && (e.maxFeePerBlobGas = t.maxFeePerBlobGas), t.data != null && (e.data = t.data), t.value != null && (e.value = t.value), t.chainId != null && (e.chainId = t.chainId), t.signature != null && (e.signature = ie.from(t.signature)), t.accessList != null && (e.accessList = t.accessList), t.authorizationList != null && (e.authorizationList = t.authorizationList), t.blobVersionedHashes != null && (e.blobVersionedHashes = t.blobVersionedHashes), t.kzg != null && (e.kzg = t.kzg), t.blobs != null && (e.blobs = t.blobs), t.hash != null && (V(e.isSigned(), "unsigned transaction cannot define '.hash'", "tx", t), V(e.hash === t.hash, "hash mismatch", "tx", t)), t.from != null && (V(e.isSigned(), "unsigned transaction cannot define '.from'", "tx", t), V(e.from.toLowerCase() === (t.from || "").toLowerCase(), "from mismatch", "tx", t)), e;
6567
6567
  }
6568
6568
  }
@@ -7167,7 +7167,7 @@ const l1 = {
7167
7167
  version: rf("version"),
7168
7168
  chainId: function(n) {
7169
7169
  const t = At(n, "domain.chainId");
7170
- return V(t >= 0, "invalid chain ID", "domain.chainId", n), Number.isSafeInteger(t) ? Number(t) : Ke(t);
7170
+ return V(t >= 0, "invalid chain ID", "domain.chainId", n), Number.isSafeInteger(t) ? Number(t) : Je(t);
7171
7171
  },
7172
7172
  verifyingContract: function(n) {
7173
7173
  try {
@@ -7505,7 +7505,7 @@ const h1 = "external public payable override", p1 = Be(h1.split(" ")), zd = "con
7505
7505
  ",": "COMMA",
7506
7506
  "@": "AT"
7507
7507
  }, A1 = new RegExp("^(\\s*)"), E1 = new RegExp("^([0-9]+)"), v1 = new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"), Pd = new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"), Fd = new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");
7508
- class Ve {
7508
+ class Qe {
7509
7509
  #t;
7510
7510
  #e;
7511
7511
  get offset() {
@@ -7518,13 +7518,13 @@ class Ve {
7518
7518
  this.#t = 0, this.#e = t.slice();
7519
7519
  }
7520
7520
  clone() {
7521
- return new Ve(this.#e);
7521
+ return new Qe(this.#e);
7522
7522
  }
7523
7523
  reset() {
7524
7524
  this.#t = 0;
7525
7525
  }
7526
7526
  #r(t = 0, e = 0) {
7527
- return new Ve(this.#e.slice(t, e).map((r) => Object.freeze(Object.assign({}, r, {
7527
+ return new Qe(this.#e.slice(t, e).map((r) => Object.freeze(Object.assign({}, r, {
7528
7528
  match: r.match - t,
7529
7529
  linkBack: r.linkBack - t,
7530
7530
  linkNext: r.linkNext - t
@@ -7648,7 +7648,7 @@ function hi(n) {
7648
7648
  }
7649
7649
  throw new Error(`unexpected token ${JSON.stringify(a[0])} at position ${o}`);
7650
7650
  }
7651
- return new Ve(t.map((a) => Object.freeze(a)));
7651
+ return new Qe(t.map((a) => Object.freeze(a)));
7652
7652
  }
7653
7653
  function sf(n, t) {
7654
7654
  let e = [];
@@ -7924,7 +7924,7 @@ class Zt {
7924
7924
  } catch {
7925
7925
  V(!1, "invalid param type", "obj", t);
7926
7926
  }
7927
- else if (t instanceof Ve) {
7927
+ else if (t instanceof Qe) {
7928
7928
  let u = "", _ = "", l = null;
7929
7929
  Zn(t, Be(["tuple"])).has("tuple") || t.peekType("OPEN_PAREN") ? (_ = "tuple", l = t.popParams().map((k) => Zt.from(k)), u = `tuple(${l.map((k) => k.format()).join(",")})`) : (u = of(t.popType("TYPE")), _ = u);
7930
7930
  let f = null, w = null;
@@ -8001,7 +8001,7 @@ class Ti {
8001
8001
  }
8002
8002
  return Ti.from(hi(t));
8003
8003
  }
8004
- if (t instanceof Ve)
8004
+ if (t instanceof Qe)
8005
8005
  switch (t.peekKeyword(Sd)) {
8006
8006
  case "constructor":
8007
8007
  return Kn.from(t);
@@ -8119,7 +8119,7 @@ class Ie extends Jo {
8119
8119
  return t;
8120
8120
  if (typeof t == "string")
8121
8121
  return Ie.from(hi(t));
8122
- if (t instanceof Ve) {
8122
+ if (t instanceof Qe) {
8123
8123
  const e = Wo("error", t), r = $n(t);
8124
8124
  return Oi(t), new Ie(re, e, r);
8125
8125
  }
@@ -8182,7 +8182,7 @@ class cr extends Jo {
8182
8182
  } catch {
8183
8183
  V(!1, "invalid event fragment", "obj", t);
8184
8184
  }
8185
- else if (t instanceof Ve) {
8185
+ else if (t instanceof Qe) {
8186
8186
  const e = Wo("event", t), r = $n(t, !0), i = !!Zn(t, Be(["anonymous"])).has("anonymous");
8187
8187
  return Oi(t), new cr(re, e, r, i);
8188
8188
  }
@@ -8238,7 +8238,7 @@ class Kn extends Ti {
8238
8238
  } catch {
8239
8239
  V(!1, "invalid constuctor fragment", "obj", t);
8240
8240
  }
8241
- else if (t instanceof Ve) {
8241
+ else if (t instanceof Qe) {
8242
8242
  Zn(t, Be(["constructor"]));
8243
8243
  const e = $n(t), r = !!Zn(t, p1).has("payable"), i = Od(t);
8244
8244
  return Oi(t), new Kn(re, "constructor", e, r, i);
@@ -8284,7 +8284,7 @@ class hr extends Ti {
8284
8284
  } catch {
8285
8285
  V(!1, "invalid fallback fragment", "obj", t);
8286
8286
  }
8287
- else if (t instanceof Ve) {
8287
+ else if (t instanceof Qe) {
8288
8288
  const e = t.toString(), r = t.peekKeyword(Be(["fallback", "receive"]));
8289
8289
  if (V(r, "type must be fallback or receive", "obj", e), t.popKeyword(Be(["fallback", "receive"])) === "receive") {
8290
8290
  const u = $n(t);
@@ -8385,7 +8385,7 @@ class ur extends Jo {
8385
8385
  } catch {
8386
8386
  V(!1, "invalid function fragment", "obj", t);
8387
8387
  }
8388
- else if (t instanceof Ve) {
8388
+ else if (t instanceof Qe) {
8389
8389
  const r = Wo("function", t), i = $n(t), o = Id(t);
8390
8390
  let a = [];
8391
8391
  Zn(t, Be(["returns"])).has("returns") && (a = $n(t));
@@ -8426,7 +8426,7 @@ class Pi extends Jo {
8426
8426
  } catch {
8427
8427
  V(!1, "invalid struct fragment", "obj", t);
8428
8428
  }
8429
- else if (t instanceof Ve) {
8429
+ else if (t instanceof Qe) {
8430
8430
  const e = Wo("struct", t), r = $n(t);
8431
8431
  return Oi(t), new Pi(re, e, r);
8432
8432
  }
@@ -8493,7 +8493,7 @@ function B1(n, t, e, r) {
8493
8493
  to: t.to ? Mt(t.to) : null,
8494
8494
  data: t.data || "0x"
8495
8495
  };
8496
- return t.from && (_.from = Mt(t.from)), te(i, "CALL_EXCEPTION", {
8496
+ return t.from && (_.from = Mt(t.from)), ee(i, "CALL_EXCEPTION", {
8497
8497
  action: n,
8498
8498
  data: e,
8499
8499
  reason: o,
@@ -10369,7 +10369,7 @@ class $s {
10369
10369
  u = !0;
10370
10370
  }), i > 0) {
10371
10371
  const A = setTimeout(() => {
10372
- k(), z(te("wait for transaction timeout", "TIMEOUT"));
10372
+ k(), z(ee("wait for transaction timeout", "TIMEOUT"));
10373
10373
  }, i);
10374
10374
  F.push(() => {
10375
10375
  clearTimeout(A);
@@ -10975,12 +10975,12 @@ class Ts {
10975
10975
  else {
10976
10976
  const w = Ni(r, "resolveName");
10977
10977
  if (!$o(w))
10978
- throw te("contract runner does not support name resolution", "UNSUPPORTED_OPERATION", {
10978
+ throw ee("contract runner does not support name resolution", "UNSUPPORTED_OPERATION", {
10979
10979
  operation: "resolveName"
10980
10980
  });
10981
10981
  a = w.resolveName(t).then((y) => {
10982
10982
  if (y == null)
10983
- throw te("an ENS name used for a contract target must be correctly configured", "UNCONFIGURED_NAME", {
10983
+ throw ee("an ENS name used for a contract target must be correctly configured", "UNCONFIGURED_NAME", {
10984
10984
  value: t
10985
10985
  });
10986
10986
  return Te(this).addr = y, y;
@@ -11262,7 +11262,7 @@ class Ts {
11262
11262
  function V1() {
11263
11263
  return Ts;
11264
11264
  }
11265
- class Ze extends V1() {
11265
+ class tr extends V1() {
11266
11266
  }
11267
11267
  function La(n) {
11268
11268
  return n.match(/^ipfs:\/\/ipfs\//i) ? n = n.substring(12) : n.match(/^ipfs:\/\//i) ? n = n.substring(7) : V(!1, "unsupported IPFS format", "link", n), `https://gateway.ipfs.io/ipfs/${n}`;
@@ -11323,7 +11323,7 @@ class Zi {
11323
11323
  #t;
11324
11324
  #e;
11325
11325
  constructor(t, e, r) {
11326
- zt(this, { provider: t, address: e, name: r }), this.#t = null, this.#e = new Ze(e, [
11326
+ zt(this, { provider: t, address: e, name: r }), this.#t = null, this.#e = new tr(e, [
11327
11327
  "function supportsInterface(bytes4) view returns (bool)",
11328
11328
  "function resolve(bytes, bytes) view returns (bytes)",
11329
11329
  "function addr(bytes32) view returns (address)",
@@ -11485,7 +11485,7 @@ class Zi {
11485
11485
  const _ = (i[2] || "").split("/");
11486
11486
  if (_.length !== 2)
11487
11487
  return t.push({ type: `!${o}caip`, value: i[2] || "" }), { url: null, linkage: t };
11488
- const l = _[1], f = new Ze(_[0], [
11488
+ const l = _[1], f = new tr(_[0], [
11489
11489
  // ERC-721
11490
11490
  "function tokenURI(uint) view returns (string)",
11491
11491
  "function ownerOf(uint) view returns (address)",
@@ -11551,7 +11551,7 @@ class Zi {
11551
11551
  static async #n(t, e) {
11552
11552
  const r = await Zi.getEnsAddress(t);
11553
11553
  try {
11554
- const o = await new Ze(r, [
11554
+ const o = await new tr(r, [
11555
11555
  "function resolver(bytes32) view returns (address)"
11556
11556
  ], t).resolver(xu(e), {
11557
11557
  enableCcipRead: !0
@@ -12585,9 +12585,9 @@ class lm {
12585
12585
  return t;
12586
12586
  }
12587
12587
  if (Xt(t))
12588
- return Xt(t, 32) ? t : Ke(t);
12588
+ return Xt(t, 32) ? t : Je(t);
12589
12589
  if (typeof t == "bigint" && (t = Tt(t, "blockTag")), typeof t == "number")
12590
- return t >= 0 ? Ke(t) : this.#a >= 0 ? Ke(this.#a + t) : this.getBlockNumber().then((e) => Ke(e + t));
12590
+ return t >= 0 ? Je(t) : this.#a >= 0 ? Je(this.#a + t) : this.getBlockNumber().then((e) => Je(e + t));
12591
12591
  V(!1, "invalid blockTag", "blockTag", t);
12592
12592
  }
12593
12593
  /**
@@ -12802,7 +12802,7 @@ class lm {
12802
12802
  signedTransaction: t
12803
12803
  }),
12804
12804
  network: this.getNetwork()
12805
- }), o = Qe.from(t);
12805
+ }), o = We.from(t);
12806
12806
  if (o.hash !== r)
12807
12807
  throw new Error("@TODO: the returned hash did not match");
12808
12808
  return this._wrapTransactionResponse(o, i).replaceableTransaction(e);
@@ -12889,12 +12889,12 @@ class lm {
12889
12889
  t = Mt(t);
12890
12890
  const e = xu(t.substring(2).toLowerCase() + ".addr.reverse");
12891
12891
  try {
12892
- const r = await Zi.getEnsAddress(this), o = await new Ze(r, [
12892
+ const r = await Zi.getEnsAddress(this), o = await new tr(r, [
12893
12893
  "function resolver(bytes32) view returns (address)"
12894
12894
  ], this).resolver(e);
12895
12895
  if (o == null || o === Ls)
12896
12896
  return null;
12897
- const u = await new Ze(o, [
12897
+ const u = await new tr(o, [
12898
12898
  "function name(bytes32) view returns (string)"
12899
12899
  ], this).name(e);
12900
12900
  return await this.resolveName(u) !== t ? null : u;
@@ -12922,7 +12922,7 @@ class lm {
12922
12922
  this.once("block", _);
12923
12923
  };
12924
12924
  r != null && (u = setTimeout(() => {
12925
- u != null && (u = null, this.off("block", _), a(te("timeout", "TIMEOUT", { reason: "timeout" })));
12925
+ u != null && (u = null, this.off("block", _), a(ee("timeout", "TIMEOUT", { reason: "timeout" })));
12926
12926
  }, r)), _(await this.getBlockNumber());
12927
12927
  });
12928
12928
  }
@@ -13340,7 +13340,7 @@ class ym {
13340
13340
  async sendTransaction(t) {
13341
13341
  const e = wi(this, "sendTransaction"), r = await this.populateTransaction(t);
13342
13342
  delete r.from;
13343
- const i = Qe.from(r);
13343
+ const i = We.from(r);
13344
13344
  return await e.broadcastTransaction(await this.signTransaction(i));
13345
13345
  }
13346
13346
  // @TODO: in v7 move this to be abstract
@@ -13550,7 +13550,7 @@ class ja extends ym {
13550
13550
  o(l);
13551
13551
  return;
13552
13552
  }
13553
- this.provider.emit("error", te("failed to fetch transation after sending (will try again)", "UNKNOWN_ERROR", { error: l }));
13553
+ this.provider.emit("error", ee("failed to fetch transation after sending (will try again)", "UNKNOWN_ERROR", { error: l }));
13554
13554
  }
13555
13555
  this.provider._setTimeout(() => {
13556
13556
  _();
@@ -13634,12 +13634,12 @@ class xm extends lm {
13634
13634
  this.emit("debug", { action: "receiveRpcResult", result: o });
13635
13635
  for (const { resolve: a, reject: u, payload: _ } of r) {
13636
13636
  if (this.destroyed) {
13637
- u(te("provider destroyed; cancelled request", "UNSUPPORTED_OPERATION", { operation: _.method }));
13637
+ u(ee("provider destroyed; cancelled request", "UNSUPPORTED_OPERATION", { operation: _.method }));
13638
13638
  continue;
13639
13639
  }
13640
13640
  const l = o.filter((f) => f.id === _.id)[0];
13641
13641
  if (l == null) {
13642
- const f = te("missing response for request", "BAD_DATA", {
13642
+ const f = ee("missing response for request", "BAD_DATA", {
13643
13643
  value: o,
13644
13644
  info: { payload: _ }
13645
13645
  });
@@ -13763,7 +13763,7 @@ class xm extends lm {
13763
13763
  } catch (t) {
13764
13764
  if (this.destroyed)
13765
13765
  break;
13766
- console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"), this.emit("error", te("failed to bootstrap network detection", "NETWORK_ERROR", { event: "initial-network-discovery", info: { error: t } })), await vm(1e3);
13766
+ console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"), this.emit("error", ee("failed to bootstrap network detection", "NETWORK_ERROR", { event: "initial-network-discovery", info: { error: t } })), await vm(1e3);
13767
13767
  }
13768
13768
  this.#a();
13769
13769
  })());
@@ -13803,18 +13803,18 @@ class xm extends lm {
13803
13803
  if (t[r] == null)
13804
13804
  return;
13805
13805
  let i = r;
13806
- r === "gasLimit" && (i = "gas"), e[i] = Ke(At(t[r], `tx.${r}`));
13806
+ r === "gasLimit" && (i = "gas"), e[i] = Je(At(t[r], `tx.${r}`));
13807
13807
  }), ["from", "to", "data"].forEach((r) => {
13808
13808
  t[r] != null && (e[r] = yt(t[r]));
13809
13809
  }), t.accessList && (e.accessList = Li(t.accessList)), t.blobVersionedHashes && (e.blobVersionedHashes = t.blobVersionedHashes.map((r) => r.toLowerCase())), t.authorizationList && (e.authorizationList = t.authorizationList.map((r) => {
13810
13810
  const i = Xw(r);
13811
13811
  return {
13812
13812
  address: i.address,
13813
- nonce: Ke(i.nonce),
13814
- chainId: Ke(i.chainId),
13815
- yParity: Ke(i.signature.yParity),
13816
- r: Ke(i.signature.r),
13817
- s: Ke(i.signature.s)
13813
+ nonce: Je(i.nonce),
13814
+ chainId: Je(i.chainId),
13815
+ yParity: Je(i.signature.yParity),
13816
+ r: Je(i.signature.r),
13817
+ s: Je(i.signature.s)
13818
13818
  };
13819
13819
  })), e;
13820
13820
  }
@@ -13909,12 +13909,12 @@ class xm extends lm {
13909
13909
  if (r === "eth_estimateGas" && i.message) {
13910
13910
  const u = i.message;
13911
13911
  if (!u.match(/revert/i) && u.match(/insufficient funds/i))
13912
- return te("insufficient funds", "INSUFFICIENT_FUNDS", {
13912
+ return ee("insufficient funds", "INSUFFICIENT_FUNDS", {
13913
13913
  transaction: t.params[0],
13914
13914
  info: { payload: t, error: i }
13915
13915
  });
13916
13916
  if (u.match(/nonce/i) && u.match(/too low/i))
13917
- return te("nonce has already been used", "NONCE_EXPIRED", {
13917
+ return ee("nonce has already been used", "NONCE_EXPIRED", {
13918
13918
  transaction: t.params[0],
13919
13919
  info: { payload: t, error: i }
13920
13920
  });
@@ -13925,7 +13925,7 @@ class xm extends lm {
13925
13925
  }
13926
13926
  const o = JSON.stringify(zm(i));
13927
13927
  if (typeof i.message == "string" && i.message.match(/user denied|ethers-user-denied/i))
13928
- return te("user rejected action", "ACTION_REJECTED", {
13928
+ return ee("user rejected action", "ACTION_REJECTED", {
13929
13929
  action: {
13930
13930
  eth_sign: "signMessage",
13931
13931
  personal_sign: "signMessage",
@@ -13941,25 +13941,25 @@ class xm extends lm {
13941
13941
  if (r === "eth_sendRawTransaction" || r === "eth_sendTransaction") {
13942
13942
  const u = t.params[0];
13943
13943
  if (o.match(/insufficient funds|base fee exceeds gas limit/i))
13944
- return te("insufficient funds for intrinsic transaction cost", "INSUFFICIENT_FUNDS", {
13944
+ return ee("insufficient funds for intrinsic transaction cost", "INSUFFICIENT_FUNDS", {
13945
13945
  transaction: u,
13946
13946
  info: { error: i }
13947
13947
  });
13948
13948
  if (o.match(/nonce/i) && o.match(/too low/i))
13949
- return te("nonce has already been used", "NONCE_EXPIRED", { transaction: u, info: { error: i } });
13949
+ return ee("nonce has already been used", "NONCE_EXPIRED", { transaction: u, info: { error: i } });
13950
13950
  if (o.match(/replacement transaction/i) && o.match(/underpriced/i))
13951
- return te("replacement fee too low", "REPLACEMENT_UNDERPRICED", { transaction: u, info: { error: i } });
13951
+ return ee("replacement fee too low", "REPLACEMENT_UNDERPRICED", { transaction: u, info: { error: i } });
13952
13952
  if (o.match(/only replay-protected/i))
13953
- return te("legacy pre-eip-155 transactions not supported", "UNSUPPORTED_OPERATION", {
13953
+ return ee("legacy pre-eip-155 transactions not supported", "UNSUPPORTED_OPERATION", {
13954
13954
  operation: r,
13955
13955
  info: { transaction: u, info: { error: i } }
13956
13956
  });
13957
13957
  }
13958
13958
  let a = !!o.match(/the method .* does not exist/i);
13959
- return a || i && i.details && i.details.startsWith("Unauthorized method:") && (a = !0), a ? te("unsupported operation", "UNSUPPORTED_OPERATION", {
13959
+ return a || i && i.details && i.details.startsWith("Unauthorized method:") && (a = !0), a ? ee("unsupported operation", "UNSUPPORTED_OPERATION", {
13960
13960
  operation: t.method,
13961
13961
  info: { error: i, payload: t }
13962
- }) : te("could not coalesce error", "UNKNOWN_ERROR", { error: i, payload: t });
13962
+ }) : ee("could not coalesce error", "UNKNOWN_ERROR", { error: i, payload: t });
13963
13963
  }
13964
13964
  /**
13965
13965
  * Requests the %%method%% with %%params%% via the JSON-RPC protocol
@@ -13976,7 +13976,7 @@ class xm extends lm {
13976
13976
  */
13977
13977
  send(t, e) {
13978
13978
  if (this.destroyed)
13979
- return Promise.reject(te("provider destroyed; cancelled request", "UNSUPPORTED_OPERATION", { operation: t }));
13979
+ return Promise.reject(ee("provider destroyed; cancelled request", "UNSUPPORTED_OPERATION", { operation: t }));
13980
13980
  const r = this.#e++, i = new Promise((o, a) => {
13981
13981
  this.#r.push({
13982
13982
  resolve: o,
@@ -14023,7 +14023,7 @@ class xm extends lm {
14023
14023
  destroy() {
14024
14024
  this.#n && (clearTimeout(this.#n), this.#n = null);
14025
14025
  for (const { payload: t, reject: e } of this.#r)
14026
- e(te("provider destroyed; cancelled request", "UNSUPPORTED_OPERATION", { operation: t.method }));
14026
+ e(ee("provider destroyed; cancelled request", "UNSUPPORTED_OPERATION", { operation: t.method }));
14027
14027
  this.#r = [], super.destroy();
14028
14028
  }
14029
14029
  }
@@ -14213,7 +14213,7 @@ class vi extends Yd {
14213
14213
  providerInfo: F
14214
14214
  }));
14215
14215
  } else
14216
- a(te("filter returned unknown info", "UNSUPPORTED_OPERATION", {
14216
+ a(ee("filter returned unknown info", "UNSUPPORTED_OPERATION", {
14217
14217
  value: w
14218
14218
  }));
14219
14219
  }
@@ -15049,7 +15049,7 @@ function Xo() {
15049
15049
  function R(m, p, g, I) {
15050
15050
  return ei(Ut(p), m, g, I);
15051
15051
  }
15052
- function tt(m, p, g, I) {
15052
+ function et(m, p, g, I) {
15053
15053
  return ei(Kt(p, m.length - g), m, g, I);
15054
15054
  }
15055
15055
  D.prototype.write = function(p, g, I, H) {
@@ -15085,7 +15085,7 @@ function Xo() {
15085
15085
  case "ucs-2":
15086
15086
  case "utf16le":
15087
15087
  case "utf-16le":
15088
- return tt(this, p, g, I);
15088
+ return et(this, p, g, I);
15089
15089
  default:
15090
15090
  if (ot) throw new TypeError("Unknown encoding: " + H);
15091
15091
  H = ("" + H).toLowerCase(), ot = !0;
@@ -16003,8 +16003,8 @@ function lg() {
16003
16003
  var R = ct("%AsyncGeneratorFunction%");
16004
16004
  R && (v = R.prototype);
16005
16005
  } else if (_t === "%AsyncIteratorPrototype%") {
16006
- var tt = ct("%AsyncGenerator%");
16007
- tt && N && (v = N(tt.prototype));
16006
+ var et = ct("%AsyncGenerator%");
16007
+ et && N && (v = N(et.prototype));
16008
16008
  }
16009
16009
  return xt[_t] = v, v;
16010
16010
  }, Et = {
@@ -16066,18 +16066,18 @@ function lg() {
16066
16066
  throw new a("invalid intrinsic syntax, expected closing `%`");
16067
16067
  if (R === "%" && v !== "%")
16068
16068
  throw new a("invalid intrinsic syntax, expected opening `%`");
16069
- var tt = [];
16069
+ var et = [];
16070
16070
  return W(_t, gt, function(lt, Bt, bt, St) {
16071
- tt[tt.length] = bt ? W(St, G, "$1") : Bt || lt;
16072
- }), tt;
16071
+ et[et.length] = bt ? W(St, G, "$1") : Bt || lt;
16072
+ }), et;
16073
16073
  }, X = function(_t, v) {
16074
- var R = _t, tt;
16075
- if (vt(Et, R) && (tt = Et[R], R = "%" + tt[0] + "%"), vt(xt, R)) {
16074
+ var R = _t, et;
16075
+ if (vt(Et, R) && (et = Et[R], R = "%" + et[0] + "%"), vt(xt, R)) {
16076
16076
  var lt = xt[R];
16077
16077
  if (lt === D && (lt = ht(R)), typeof lt > "u" && !v)
16078
16078
  throw new u("intrinsic " + _t + " exists, but is not available. Please file an issue!");
16079
16079
  return {
16080
- alias: tt,
16080
+ alias: et,
16081
16081
  name: R,
16082
16082
  value: lt
16083
16083
  };
@@ -16091,13 +16091,13 @@ function lg() {
16091
16091
  throw new u('"allowMissing" argument must be a boolean');
16092
16092
  if (rt(/^%?[^%]*%?$/, _t) === null)
16093
16093
  throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
16094
- var R = M(_t), tt = R.length > 0 ? R[0] : "", lt = X("%" + tt + "%", v), Bt = lt.name, bt = lt.value, St = !1, he = lt.alias;
16095
- he && (tt = he[0], Ct(R, Pt([0, 1], he)));
16094
+ var R = M(_t), et = R.length > 0 ? R[0] : "", lt = X("%" + et + "%", v), Bt = lt.name, bt = lt.value, St = !1, he = lt.alias;
16095
+ he && (et = he[0], Ct(R, Pt([0, 1], he)));
16096
16096
  for (var it = 1, pe = !0; it < R.length; it += 1) {
16097
16097
  var we = R[it], Gt = Z(we, 0, 1), Qt = Z(we, -1);
16098
16098
  if ((Gt === '"' || Gt === "'" || Gt === "`" || Qt === '"' || Qt === "'" || Qt === "`") && Gt !== Qt)
16099
16099
  throw new a("property names with quotes must have matching quotes");
16100
- if ((we === "constructor" || !pe) && (St = !0), tt += "." + we, Bt = "%" + tt + "%", vt(xt, Bt))
16100
+ if ((we === "constructor" || !pe) && (St = !0), et += "." + we, Bt = "%" + et + "%", vt(xt, Bt))
16101
16101
  bt = xt[Bt];
16102
16102
  else if (bt != null) {
16103
16103
  if (!(we in bt)) {
@@ -16633,10 +16633,10 @@ function c2() {
16633
16633
  return F(it, l);
16634
16634
  }
16635
16635
  n.isNumberObject = R;
16636
- function tt(it) {
16636
+ function et(it) {
16637
16637
  return F(it, f);
16638
16638
  }
16639
- n.isStringObject = tt;
16639
+ n.isStringObject = et;
16640
16640
  function lt(it) {
16641
16641
  return F(it, w);
16642
16642
  }
@@ -16650,7 +16650,7 @@ function c2() {
16650
16650
  }
16651
16651
  n.isSymbolObject = bt;
16652
16652
  function St(it) {
16653
- return R(it) || tt(it) || lt(it) || Bt(it) || bt(it);
16653
+ return R(it) || et(it) || lt(it) || Bt(it) || bt(it);
16654
16654
  }
16655
16655
  n.isBoxedPrimitive = St;
16656
16656
  function he(it) {
@@ -16834,8 +16834,8 @@ function wg() {
16834
16834
  }
16835
16835
  var _t = "", v = !1, R = ["{", "}"];
16836
16836
  if (T(Z) && (v = !0, R = ["[", "]"]), D(Z)) {
16837
- var tt = Z.name ? ": " + Z.name : "";
16838
- _t = " [Function" + tt + "]";
16837
+ var et = Z.name ? ": " + Z.name : "";
16838
+ _t = " [Function" + et + "]";
16839
16839
  }
16840
16840
  if (L(Z) && (_t = " " + RegExp.prototype.toString.call(Z)), nt(Z) && (_t = " " + Date.prototype.toUTCString.call(Z)), ut(Z) && (_t = " " + y(Z)), M.length === 0 && (!v || Z.length == 0))
16841
16841
  return R[0] + _t + R[1];
@@ -17505,8 +17505,8 @@ function yg() {
17505
17505
  var R = ut(M, ct, _t);
17506
17506
  ct !== R && (X = !0, _t = "buffer", ct = R);
17507
17507
  }
17508
- var tt = M.objectMode ? 1 : ct.length;
17509
- M.length += tt;
17508
+ var et = M.objectMode ? 1 : ct.length;
17509
+ M.length += et;
17510
17510
  var lt = M.length < M.highWaterMark;
17511
17511
  if (lt || (M.needDrain = !0), M.writing || M.corked) {
17512
17512
  var Bt = M.lastBufferedRequest;
@@ -17518,7 +17518,7 @@ function yg() {
17518
17518
  next: null
17519
17519
  }, Bt ? Bt.next = M.lastBufferedRequest : M.bufferedRequest = M.lastBufferedRequest, M.bufferedRequestCount += 1;
17520
17520
  } else
17521
- dt(G, M, !1, tt, ct, _t, v);
17521
+ dt(G, M, !1, et, ct, _t, v);
17522
17522
  return lt;
17523
17523
  }
17524
17524
  function dt(G, M, X, ct, _t, v, R) {
@@ -17551,9 +17551,9 @@ function yg() {
17551
17551
  if (G._writev && X && X.next) {
17552
17552
  var ct = M.bufferedRequestCount, _t = new Array(ct), v = M.corkedRequestsFree;
17553
17553
  v.entry = X;
17554
- for (var R = 0, tt = !0; X; )
17555
- _t[R] = X, X.isBuf || (tt = !1), X = X.next, R += 1;
17556
- _t.allBuffers = tt, dt(G, M, !0, M.length, _t, "", v.finish), M.pendingcb++, M.lastBufferedRequest = null, v.next ? (M.corkedRequestsFree = v.next, v.next = null) : M.corkedRequestsFree = new n(M), M.bufferedRequestCount = 0;
17554
+ for (var R = 0, et = !0; X; )
17555
+ _t[R] = X, X.isBuf || (et = !1), X = X.next, R += 1;
17556
+ _t.allBuffers = et, dt(G, M, !0, M.length, _t, "", v.finish), M.pendingcb++, M.lastBufferedRequest = null, v.next ? (M.corkedRequestsFree = v.next, v.next = null) : M.corkedRequestsFree = new n(M), M.bufferedRequestCount = 0;
17557
17557
  } else {
17558
17558
  for (; X; ) {
17559
17559
  var lt = X.chunk, Bt = X.encoding, bt = X.callback, St = M.objectMode ? 1 : lt.length;
@@ -18064,8 +18064,8 @@ function bg() {
18064
18064
  ql = 1, Xc = Y;
18065
18065
  var n;
18066
18066
  Y.ReadableState = L, ng().EventEmitter;
18067
- var t = function(R, tt) {
18068
- return R.listeners(tt).length;
18067
+ var t = function(R, et) {
18068
+ return R.listeners(et).length;
18069
18069
  }, e = ig(), r = Xo().Buffer, i = (typeof li < "u" ? li : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
18070
18070
  };
18071
18071
  function o(v) {
@@ -18080,12 +18080,12 @@ function bg() {
18080
18080
  var l = _2(), f = dg(), w = gg(), y = w.getHighWaterMark, z = ys().codes, F = z.ERR_INVALID_ARG_TYPE, k = z.ERR_STREAM_PUSH_AFTER_EOF, T = z.ERR_METHOD_NOT_IMPLEMENTED, A = z.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, x, S, B;
18081
18081
  gs()(Y, e);
18082
18082
  var O = f.errorOrDestroy, C = ["error", "close", "destroy", "pause", "resume"];
18083
- function N(v, R, tt) {
18084
- if (typeof v.prependListener == "function") return v.prependListener(R, tt);
18085
- !v._events || !v._events[R] ? v.on(R, tt) : Array.isArray(v._events[R]) ? v._events[R].unshift(tt) : v._events[R] = [tt, v._events[R]];
18083
+ function N(v, R, et) {
18084
+ if (typeof v.prependListener == "function") return v.prependListener(R, et);
18085
+ !v._events || !v._events[R] ? v.on(R, et) : Array.isArray(v._events[R]) ? v._events[R].unshift(et) : v._events[R] = [et, v._events[R]];
18086
18086
  }
18087
- function L(v, R, tt) {
18088
- n = n || fs(), v = v || {}, typeof tt != "boolean" && (tt = R instanceof n), this.objectMode = !!v.objectMode, tt && (this.objectMode = this.objectMode || !!v.readableObjectMode), this.highWaterMark = y(this, v, "readableHighWaterMark", tt), this.buffer = new l(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = v.emitClose !== !1, this.autoDestroy = !!v.autoDestroy, this.destroyed = !1, this.defaultEncoding = v.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, v.encoding && (x || (x = jl().StringDecoder), this.decoder = new x(v.encoding), this.encoding = v.encoding);
18087
+ function L(v, R, et) {
18088
+ n = n || fs(), v = v || {}, typeof et != "boolean" && (et = R instanceof n), this.objectMode = !!v.objectMode, et && (this.objectMode = this.objectMode || !!v.readableObjectMode), this.highWaterMark = y(this, v, "readableHighWaterMark", et), this.buffer = new l(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = v.emitClose !== !1, this.autoDestroy = !!v.autoDestroy, this.destroyed = !1, this.defaultEncoding = v.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, v.encoding && (x || (x = jl().StringDecoder), this.decoder = new x(v.encoding), this.encoding = v.encoding);
18089
18089
  }
18090
18090
  function Y(v) {
18091
18091
  if (n = n || fs(), !(this instanceof Y)) return new Y(v);
@@ -18106,12 +18106,12 @@ function bg() {
18106
18106
  }), Y.prototype.destroy = f.destroy, Y.prototype._undestroy = f.undestroy, Y.prototype._destroy = function(v, R) {
18107
18107
  R(v);
18108
18108
  }, Y.prototype.push = function(v, R) {
18109
- var tt = this._readableState, lt;
18110
- return tt.objectMode ? lt = !0 : typeof v == "string" && (R = R || tt.defaultEncoding, R !== tt.encoding && (v = r.from(v, R), R = ""), lt = !0), nt(this, v, R, !1, lt);
18109
+ var et = this._readableState, lt;
18110
+ return et.objectMode ? lt = !0 : typeof v == "string" && (R = R || et.defaultEncoding, R !== et.encoding && (v = r.from(v, R), R = ""), lt = !0), nt(this, v, R, !1, lt);
18111
18111
  }, Y.prototype.unshift = function(v) {
18112
18112
  return nt(this, v, null, !0, !1);
18113
18113
  };
18114
- function nt(v, R, tt, lt, Bt) {
18114
+ function nt(v, R, et, lt, Bt) {
18115
18115
  _("readableAddChunk", R);
18116
18116
  var bt = v._readableState;
18117
18117
  if (R === null)
@@ -18128,18 +18128,18 @@ function bg() {
18128
18128
  else {
18129
18129
  if (bt.destroyed)
18130
18130
  return !1;
18131
- bt.reading = !1, bt.decoder && !tt ? (R = bt.decoder.write(R), bt.objectMode || R.length !== 0 ? ut(v, bt, R, !1) : vt(v, bt)) : ut(v, bt, R, !1);
18131
+ bt.reading = !1, bt.decoder && !et ? (R = bt.decoder.write(R), bt.objectMode || R.length !== 0 ? ut(v, bt, R, !1) : vt(v, bt)) : ut(v, bt, R, !1);
18132
18132
  }
18133
18133
  else lt || (bt.reading = !1, vt(v, bt));
18134
18134
  }
18135
18135
  return !bt.ended && (bt.length < bt.highWaterMark || bt.length === 0);
18136
18136
  }
18137
- function ut(v, R, tt, lt) {
18138
- R.flowing && R.length === 0 && !R.sync ? (R.awaitDrain = 0, v.emit("data", tt)) : (R.length += R.objectMode ? 1 : tt.length, lt ? R.buffer.unshift(tt) : R.buffer.push(tt), R.needReadable && Et(v)), vt(v, R);
18137
+ function ut(v, R, et, lt) {
18138
+ R.flowing && R.length === 0 && !R.sync ? (R.awaitDrain = 0, v.emit("data", et)) : (R.length += R.objectMode ? 1 : et.length, lt ? R.buffer.unshift(et) : R.buffer.push(et), R.needReadable && Et(v)), vt(v, R);
18139
18139
  }
18140
18140
  function D(v, R) {
18141
- var tt;
18142
- return !a(R) && typeof R != "string" && R !== void 0 && !v.objectMode && (tt = new F("chunk", ["string", "Buffer", "Uint8Array"], R)), tt;
18141
+ var et;
18142
+ return !a(R) && typeof R != "string" && R !== void 0 && !v.objectMode && (et = new F("chunk", ["string", "Buffer", "Uint8Array"], R)), et;
18143
18143
  }
18144
18144
  Y.prototype.isPaused = function() {
18145
18145
  return this._readableState.flowing === !1;
@@ -18147,8 +18147,8 @@ function bg() {
18147
18147
  x || (x = jl().StringDecoder);
18148
18148
  var R = new x(v);
18149
18149
  this._readableState.decoder = R, this._readableState.encoding = this._readableState.decoder.encoding;
18150
- for (var tt = this._readableState.buffer.head, lt = ""; tt !== null; )
18151
- lt += R.write(tt.data), tt = tt.next;
18150
+ for (var et = this._readableState.buffer.head, lt = ""; et !== null; )
18151
+ lt += R.write(et.data), et = et.next;
18152
18152
  return this._readableState.buffer.clear(), lt !== "" && this._readableState.buffer.push(lt), this._readableState.length = lt.length, this;
18153
18153
  };
18154
18154
  var dt = 1073741824;
@@ -18160,21 +18160,21 @@ function bg() {
18160
18160
  }
18161
18161
  Y.prototype.read = function(v) {
18162
18162
  _("read", v), v = parseInt(v, 10);
18163
- var R = this._readableState, tt = v;
18163
+ var R = this._readableState, et = v;
18164
18164
  if (v !== 0 && (R.emittedReadable = !1), v === 0 && R.needReadable && ((R.highWaterMark !== 0 ? R.length >= R.highWaterMark : R.length > 0) || R.ended))
18165
18165
  return _("read: emitReadable", R.length, R.ended), R.length === 0 && R.ended ? X(this) : Et(this), null;
18166
18166
  if (v = at(v, R), v === 0 && R.ended)
18167
18167
  return R.length === 0 && X(this), null;
18168
18168
  var lt = R.needReadable;
18169
- _("need readable", lt), (R.length === 0 || R.length - v < R.highWaterMark) && (lt = !0, _("length less than watermark", lt)), R.ended || R.reading ? (lt = !1, _("reading or ended", lt)) : lt && (_("do read"), R.reading = !0, R.sync = !0, R.length === 0 && (R.needReadable = !0), this._read(R.highWaterMark), R.sync = !1, R.reading || (v = at(tt, R)));
18169
+ _("need readable", lt), (R.length === 0 || R.length - v < R.highWaterMark) && (lt = !0, _("length less than watermark", lt)), R.ended || R.reading ? (lt = !1, _("reading or ended", lt)) : lt && (_("do read"), R.reading = !0, R.sync = !0, R.length === 0 && (R.needReadable = !0), this._read(R.highWaterMark), R.sync = !1, R.reading || (v = at(et, R)));
18170
18170
  var Bt;
18171
- return v > 0 ? Bt = M(v, R) : Bt = null, Bt === null ? (R.needReadable = R.length <= R.highWaterMark, v = 0) : (R.length -= v, R.awaitDrain = 0), R.length === 0 && (R.ended || (R.needReadable = !0), tt !== v && R.ended && X(this)), Bt !== null && this.emit("data", Bt), Bt;
18171
+ return v > 0 ? Bt = M(v, R) : Bt = null, Bt === null ? (R.needReadable = R.length <= R.highWaterMark, v = 0) : (R.length -= v, R.awaitDrain = 0), R.length === 0 && (R.ended || (R.needReadable = !0), et !== v && R.ended && X(this)), Bt !== null && this.emit("data", Bt), Bt;
18172
18172
  };
18173
18173
  function ht(v, R) {
18174
18174
  if (_("onEofChunk"), !R.ended) {
18175
18175
  if (R.decoder) {
18176
- var tt = R.decoder.end();
18177
- tt && tt.length && (R.buffer.push(tt), R.length += R.objectMode ? 1 : tt.length);
18176
+ var et = R.decoder.end();
18177
+ et && et.length && (R.buffer.push(et), R.length += R.objectMode ? 1 : et.length);
18178
18178
  }
18179
18179
  R.ended = !0, R.sync ? Et(v) : (R.needReadable = !1, R.emittedReadable || (R.emittedReadable = !0, Rt(v)));
18180
18180
  }
@@ -18192,8 +18192,8 @@ function bg() {
18192
18192
  }
18193
18193
  function Pt(v, R) {
18194
18194
  for (; !R.reading && !R.ended && (R.length < R.highWaterMark || R.flowing && R.length === 0); ) {
18195
- var tt = R.length;
18196
- if (_("maybeReadMore read 0"), v.read(0), tt === R.length)
18195
+ var et = R.length;
18196
+ if (_("maybeReadMore read 0"), v.read(0), et === R.length)
18197
18197
  break;
18198
18198
  }
18199
18199
  R.readingMore = !1;
@@ -18201,7 +18201,7 @@ function bg() {
18201
18201
  Y.prototype._read = function(v) {
18202
18202
  O(this, new T("_read()"));
18203
18203
  }, Y.prototype.pipe = function(v, R) {
18204
- var tt = this, lt = this._readableState;
18204
+ var et = this, lt = this._readableState;
18205
18205
  switch (lt.pipesCount) {
18206
18206
  case 0:
18207
18207
  lt.pipes = v;
@@ -18215,24 +18215,24 @@ function bg() {
18215
18215
  }
18216
18216
  lt.pipesCount += 1, _("pipe count=%d opts=%j", lt.pipesCount, R);
18217
18217
  var Bt = (!R || R.end !== !1) && v !== Nt.stdout && v !== Nt.stderr, bt = Bt ? he : Ee;
18218
- lt.endEmitted ? Nt.nextTick(bt) : tt.once("end", bt), v.on("unpipe", St);
18218
+ lt.endEmitted ? Nt.nextTick(bt) : et.once("end", bt), v.on("unpipe", St);
18219
18219
  function St(Se, ae) {
18220
- _("onunpipe"), Se === tt && ae && ae.hasUnpiped === !1 && (ae.hasUnpiped = !0, we());
18220
+ _("onunpipe"), Se === et && ae && ae.hasUnpiped === !1 && (ae.hasUnpiped = !0, we());
18221
18221
  }
18222
18222
  function he() {
18223
18223
  _("onend"), v.end();
18224
18224
  }
18225
- var it = Ct(tt);
18225
+ var it = Ct(et);
18226
18226
  v.on("drain", it);
18227
18227
  var pe = !1;
18228
18228
  function we() {
18229
- _("cleanup"), v.removeListener("close", de), v.removeListener("finish", fe), v.removeListener("drain", it), v.removeListener("error", Qt), v.removeListener("unpipe", St), tt.removeListener("end", he), tt.removeListener("end", Ee), tt.removeListener("data", Gt), pe = !0, lt.awaitDrain && (!v._writableState || v._writableState.needDrain) && it();
18229
+ _("cleanup"), v.removeListener("close", de), v.removeListener("finish", fe), v.removeListener("drain", it), v.removeListener("error", Qt), v.removeListener("unpipe", St), et.removeListener("end", he), et.removeListener("end", Ee), et.removeListener("data", Gt), pe = !0, lt.awaitDrain && (!v._writableState || v._writableState.needDrain) && it();
18230
18230
  }
18231
- tt.on("data", Gt);
18231
+ et.on("data", Gt);
18232
18232
  function Gt(Se) {
18233
18233
  _("ondata");
18234
18234
  var ae = v.write(Se);
18235
- _("dest.write", ae), ae === !1 && ((lt.pipesCount === 1 && lt.pipes === v || lt.pipesCount > 1 && _t(lt.pipes, v) !== -1) && !pe && (_("false write response, pause", lt.awaitDrain), lt.awaitDrain++), tt.pause());
18235
+ _("dest.write", ae), ae === !1 && ((lt.pipesCount === 1 && lt.pipes === v || lt.pipesCount > 1 && _t(lt.pipes, v) !== -1) && !pe && (_("false write response, pause", lt.awaitDrain), lt.awaitDrain++), et.pause());
18236
18236
  }
18237
18237
  function Qt(Se) {
18238
18238
  _("onerror", Se), Ee(), v.removeListener("error", Qt), t(v, "error") === 0 && O(v, Se);
@@ -18247,23 +18247,23 @@ function bg() {
18247
18247
  }
18248
18248
  v.once("finish", fe);
18249
18249
  function Ee() {
18250
- _("unpipe"), tt.unpipe(v);
18250
+ _("unpipe"), et.unpipe(v);
18251
18251
  }
18252
- return v.emit("pipe", tt), lt.flowing || (_("pipe resume"), tt.resume()), v;
18252
+ return v.emit("pipe", et), lt.flowing || (_("pipe resume"), et.resume()), v;
18253
18253
  };
18254
18254
  function Ct(v) {
18255
18255
  return function() {
18256
- var tt = v._readableState;
18257
- _("pipeOnDrain", tt.awaitDrain), tt.awaitDrain && tt.awaitDrain--, tt.awaitDrain === 0 && t(v, "data") && (tt.flowing = !0, G(v));
18256
+ var et = v._readableState;
18257
+ _("pipeOnDrain", et.awaitDrain), et.awaitDrain && et.awaitDrain--, et.awaitDrain === 0 && t(v, "data") && (et.flowing = !0, G(v));
18258
18258
  };
18259
18259
  }
18260
18260
  Y.prototype.unpipe = function(v) {
18261
- var R = this._readableState, tt = {
18261
+ var R = this._readableState, et = {
18262
18262
  hasUnpiped: !1
18263
18263
  };
18264
18264
  if (R.pipesCount === 0) return this;
18265
18265
  if (R.pipesCount === 1)
18266
- return v && v !== R.pipes ? this : (v || (v = R.pipes), R.pipes = null, R.pipesCount = 0, R.flowing = !1, v && v.emit("unpipe", this, tt), this);
18266
+ return v && v !== R.pipes ? this : (v || (v = R.pipes), R.pipes = null, R.pipesCount = 0, R.flowing = !1, v && v.emit("unpipe", this, et), this);
18267
18267
  if (!v) {
18268
18268
  var lt = R.pipes, Bt = R.pipesCount;
18269
18269
  R.pipes = null, R.pipesCount = 0, R.flowing = !1;
@@ -18273,13 +18273,13 @@ function bg() {
18273
18273
  return this;
18274
18274
  }
18275
18275
  var St = _t(R.pipes, v);
18276
- return St === -1 ? this : (R.pipes.splice(St, 1), R.pipesCount -= 1, R.pipesCount === 1 && (R.pipes = R.pipes[0]), v.emit("unpipe", this, tt), this);
18276
+ return St === -1 ? this : (R.pipes.splice(St, 1), R.pipesCount -= 1, R.pipesCount === 1 && (R.pipes = R.pipes[0]), v.emit("unpipe", this, et), this);
18277
18277
  }, Y.prototype.on = function(v, R) {
18278
- var tt = e.prototype.on.call(this, v, R), lt = this._readableState;
18279
- return v === "data" ? (lt.readableListening = this.listenerCount("readable") > 0, lt.flowing !== !1 && this.resume()) : v === "readable" && !lt.endEmitted && !lt.readableListening && (lt.readableListening = lt.needReadable = !0, lt.flowing = !1, lt.emittedReadable = !1, _("on readable", lt.length, lt.reading), lt.length ? Et(this) : lt.reading || Nt.nextTick(Z, this)), tt;
18278
+ var et = e.prototype.on.call(this, v, R), lt = this._readableState;
18279
+ return v === "data" ? (lt.readableListening = this.listenerCount("readable") > 0, lt.flowing !== !1 && this.resume()) : v === "readable" && !lt.endEmitted && !lt.readableListening && (lt.readableListening = lt.needReadable = !0, lt.flowing = !1, lt.emittedReadable = !1, _("on readable", lt.length, lt.reading), lt.length ? Et(this) : lt.reading || Nt.nextTick(Z, this)), et;
18280
18280
  }, Y.prototype.addListener = Y.prototype.on, Y.prototype.removeListener = function(v, R) {
18281
- var tt = e.prototype.removeListener.call(this, v, R);
18282
- return v === "readable" && Nt.nextTick(W, this), tt;
18281
+ var et = e.prototype.removeListener.call(this, v, R);
18282
+ return v === "readable" && Nt.nextTick(W, this), et;
18283
18283
  }, Y.prototype.removeAllListeners = function(v) {
18284
18284
  var R = e.prototype.removeAllListeners.apply(this, arguments);
18285
18285
  return (v === "readable" || v === void 0) && Nt.nextTick(W, this), R;
@@ -18309,15 +18309,15 @@ function bg() {
18309
18309
  for (_("flow", R.flowing); R.flowing && v.read() !== null; ) ;
18310
18310
  }
18311
18311
  Y.prototype.wrap = function(v) {
18312
- var R = this, tt = this._readableState, lt = !1;
18312
+ var R = this, et = this._readableState, lt = !1;
18313
18313
  v.on("end", function() {
18314
- if (_("wrapped end"), tt.decoder && !tt.ended) {
18315
- var St = tt.decoder.end();
18314
+ if (_("wrapped end"), et.decoder && !et.ended) {
18315
+ var St = et.decoder.end();
18316
18316
  St && St.length && R.push(St);
18317
18317
  }
18318
18318
  R.push(null);
18319
18319
  }), v.on("data", function(St) {
18320
- if (_("wrapped data"), tt.decoder && (St = tt.decoder.write(St)), !(tt.objectMode && St == null) && !(!tt.objectMode && (!St || !St.length))) {
18320
+ if (_("wrapped data"), et.decoder && (St = et.decoder.write(St)), !(et.objectMode && St == null) && !(!et.objectMode && (!St || !St.length))) {
18321
18321
  var he = R.push(St);
18322
18322
  he || (lt = !0, v.pause());
18323
18323
  }
@@ -18373,8 +18373,8 @@ function bg() {
18373
18373
  });
18374
18374
  function M(v, R) {
18375
18375
  if (R.length === 0) return null;
18376
- var tt;
18377
- return R.objectMode ? tt = R.buffer.shift() : !v || v >= R.length ? (R.decoder ? tt = R.buffer.join("") : R.buffer.length === 1 ? tt = R.buffer.first() : tt = R.buffer.concat(R.length), R.buffer.clear()) : tt = R.buffer.consume(v, R.decoder), tt;
18376
+ var et;
18377
+ return R.objectMode ? et = R.buffer.shift() : !v || v >= R.length ? (R.decoder ? et = R.buffer.join("") : R.buffer.length === 1 ? et = R.buffer.first() : et = R.buffer.concat(R.length), R.buffer.clear()) : et = R.buffer.consume(v, R.decoder), et;
18378
18378
  }
18379
18379
  function X(v) {
18380
18380
  var R = v._readableState;
@@ -18382,16 +18382,16 @@ function bg() {
18382
18382
  }
18383
18383
  function ct(v, R) {
18384
18384
  if (_("endReadableNT", v.endEmitted, v.length), !v.endEmitted && v.length === 0 && (v.endEmitted = !0, R.readable = !1, R.emit("end"), v.autoDestroy)) {
18385
- var tt = R._writableState;
18386
- (!tt || tt.autoDestroy && tt.finished) && R.destroy();
18385
+ var et = R._writableState;
18386
+ (!et || et.autoDestroy && et.finished) && R.destroy();
18387
18387
  }
18388
18388
  }
18389
18389
  typeof Symbol == "function" && (Y.from = function(v, R) {
18390
18390
  return B === void 0 && (B = p2()), B(Y, v, R);
18391
18391
  });
18392
18392
  function _t(v, R) {
18393
- for (var tt = 0, lt = v.length; tt < lt; tt++)
18394
- if (v[tt] === R) return tt;
18393
+ for (var et = 0, lt = v.length; et < lt; et++)
18394
+ if (v[et] === R) return et;
18395
18395
  return -1;
18396
18396
  }
18397
18397
  return Xc;
@@ -18567,9 +18567,9 @@ function g2() {
18567
18567
  r(i);
18568
18568
  }
18569
18569
  update(r, i) {
18570
- if (!Ye.isBuffer(r) && typeof r != "string") throw new TypeError("Data must be a string or a buffer");
18570
+ if (!Xe.isBuffer(r) && typeof r != "string") throw new TypeError("Data must be a string or a buffer");
18571
18571
  if (this._finalized) throw new Error("Digest already called");
18572
- return Ye.isBuffer(r) || (r = Ye.from(r, i)), this._state.absorb(r), this;
18572
+ return Xe.isBuffer(r) || (r = Xe.from(r, i)), this._state.absorb(r), this;
18573
18573
  }
18574
18574
  digest(r) {
18575
18575
  if (this._finalized) throw new Error("Digest already called");
@@ -18612,9 +18612,9 @@ function y2() {
18612
18612
  this.push(this.squeeze(r));
18613
18613
  }
18614
18614
  update(r, i) {
18615
- if (!Ye.isBuffer(r) && typeof r != "string") throw new TypeError("Data must be a string or a buffer");
18615
+ if (!Xe.isBuffer(r) && typeof r != "string") throw new TypeError("Data must be a string or a buffer");
18616
18616
  if (this._finalized) throw new Error("Squeeze already called");
18617
- return Ye.isBuffer(r) || (r = Ye.from(r, i)), this._state.absorb(r), this;
18617
+ return Xe.isBuffer(r) || (r = Xe.from(r, i)), this._state.absorb(r), this;
18618
18618
  }
18619
18619
  squeeze(r, i) {
18620
18620
  this._finalized || (this._finalized = !0, this._state.absorbLastFewBits(this._delimitedSuffix));
@@ -18680,9 +18680,9 @@ function m2() {
18680
18680
  z = o ^ (l << 1 | f >>> 31), F = a ^ (f << 1 | l >>> 31);
18681
18681
  const vt = t[4] ^ z, Pt = t[5] ^ F, Ct = t[14] ^ z, W = t[15] ^ F, Z = t[24] ^ z, rt = t[25] ^ F, gt = t[34] ^ z, G = t[35] ^ F, M = t[44] ^ z, X = t[45] ^ F;
18682
18682
  z = u ^ (w << 1 | y >>> 31), F = _ ^ (y << 1 | w >>> 31);
18683
- const ct = t[6] ^ z, _t = t[7] ^ F, v = t[16] ^ z, R = t[17] ^ F, tt = t[26] ^ z, lt = t[27] ^ F, Bt = t[36] ^ z, bt = t[37] ^ F, St = t[46] ^ z, he = t[47] ^ F;
18683
+ const ct = t[6] ^ z, _t = t[7] ^ F, v = t[16] ^ z, R = t[17] ^ F, et = t[26] ^ z, lt = t[27] ^ F, Bt = t[36] ^ z, bt = t[37] ^ F, St = t[46] ^ z, he = t[47] ^ F;
18684
18684
  z = l ^ (r << 1 | i >>> 31), F = f ^ (i << 1 | r >>> 31);
18685
- const it = t[8] ^ z, pe = t[9] ^ F, we = t[18] ^ z, Gt = t[19] ^ F, Qt = t[28] ^ z, de = t[29] ^ F, fe = t[38] ^ z, Ee = t[39] ^ F, Se = t[48] ^ z, ae = t[49] ^ F, Ne = k, b = T, h = x << 4 | A >>> 28, d = A << 4 | x >>> 28, P = S << 3 | B >>> 29, U = B << 3 | S >>> 29, J = C << 9 | O >>> 23, st = O << 9 | C >>> 23, kt = N << 18 | L >>> 14, Vt = L << 18 | N >>> 14, qt = Y << 1 | nt >>> 31, Kt = nt << 1 | Y >>> 31, Ut = D << 12 | ut >>> 20, ei = ut << 12 | D >>> 20, ke = dt << 10 | xt >>> 22, pi = xt << 10 | dt >>> 22, ms = ht << 13 | at >>> 19, Le = at << 13 | ht >>> 19, As = Et << 2 | Rt >>> 30, m = Rt << 2 | Et >>> 30, p = Pt << 30 | vt >>> 2, g = vt << 30 | Pt >>> 2, I = Ct << 6 | W >>> 26, H = W << 6 | Ct >>> 26, $ = rt << 11 | Z >>> 21, ot = Z << 11 | rt >>> 21, Ft = gt << 15 | G >>> 17, $t = G << 15 | gt >>> 17, Wt = X << 29 | M >>> 3, Yt = M << 29 | X >>> 3, Ht = ct << 28 | _t >>> 4, sa = _t << 28 | ct >>> 4, oa = R << 23 | v >>> 9, aa = v << 23 | R >>> 9, ca = tt << 25 | lt >>> 7, ua = lt << 25 | tt >>> 7, _a = Bt << 21 | bt >>> 11, fa = bt << 21 | Bt >>> 11, la = he << 24 | St >>> 8, ha = St << 24 | he >>> 8, pa = it << 27 | pe >>> 5, wa = pe << 27 | it >>> 5, da = we << 20 | Gt >>> 12, ga = Gt << 20 | we >>> 12, ya = de << 7 | Qt >>> 25, ba = Qt << 7 | de >>> 25, ma = fe << 8 | Ee >>> 24, Aa = Ee << 8 | fe >>> 24, Ea = Se << 14 | ae >>> 18, va = ae << 14 | Se >>> 18;
18685
+ const it = t[8] ^ z, pe = t[9] ^ F, we = t[18] ^ z, Gt = t[19] ^ F, Qt = t[28] ^ z, de = t[29] ^ F, fe = t[38] ^ z, Ee = t[39] ^ F, Se = t[48] ^ z, ae = t[49] ^ F, Ne = k, b = T, h = x << 4 | A >>> 28, d = A << 4 | x >>> 28, P = S << 3 | B >>> 29, U = B << 3 | S >>> 29, J = C << 9 | O >>> 23, st = O << 9 | C >>> 23, kt = N << 18 | L >>> 14, Vt = L << 18 | N >>> 14, qt = Y << 1 | nt >>> 31, Kt = nt << 1 | Y >>> 31, Ut = D << 12 | ut >>> 20, ei = ut << 12 | D >>> 20, ke = dt << 10 | xt >>> 22, pi = xt << 10 | dt >>> 22, ms = ht << 13 | at >>> 19, Le = at << 13 | ht >>> 19, As = Et << 2 | Rt >>> 30, m = Rt << 2 | Et >>> 30, p = Pt << 30 | vt >>> 2, g = vt << 30 | Pt >>> 2, I = Ct << 6 | W >>> 26, H = W << 6 | Ct >>> 26, $ = rt << 11 | Z >>> 21, ot = Z << 11 | rt >>> 21, Ft = gt << 15 | G >>> 17, $t = G << 15 | gt >>> 17, Wt = X << 29 | M >>> 3, Yt = M << 29 | X >>> 3, Ht = ct << 28 | _t >>> 4, sa = _t << 28 | ct >>> 4, oa = R << 23 | v >>> 9, aa = v << 23 | R >>> 9, ca = et << 25 | lt >>> 7, ua = lt << 25 | et >>> 7, _a = Bt << 21 | bt >>> 11, fa = bt << 21 | Bt >>> 11, la = he << 24 | St >>> 8, ha = St << 24 | he >>> 8, pa = it << 27 | pe >>> 5, wa = pe << 27 | it >>> 5, da = we << 20 | Gt >>> 12, ga = Gt << 20 | we >>> 12, ya = de << 7 | Qt >>> 25, ba = Qt << 7 | de >>> 25, ma = fe << 8 | Ee >>> 24, Aa = Ee << 8 | fe >>> 24, Ea = Se << 14 | ae >>> 18, va = ae << 14 | Se >>> 18;
18686
18686
  t[0] = Ne ^ ~Ut & $, t[1] = b ^ ~ei & ot, t[10] = Ht ^ ~da & P, t[11] = sa ^ ~ga & U, t[20] = qt ^ ~I & ca, t[21] = Kt ^ ~H & ua, t[30] = pa ^ ~h & ke, t[31] = wa ^ ~d & pi, t[40] = p ^ ~oa & ya, t[41] = g ^ ~aa & ba, t[2] = Ut ^ ~$ & _a, t[3] = ei ^ ~ot & fa, t[12] = da ^ ~P & ms, t[13] = ga ^ ~U & Le, t[22] = I ^ ~ca & ma, t[23] = H ^ ~ua & Aa, t[32] = h ^ ~ke & Ft, t[33] = d ^ ~pi & $t, t[42] = oa ^ ~ya & J, t[43] = aa ^ ~ba & st, t[4] = $ ^ ~_a & Ea, t[5] = ot ^ ~fa & va, t[14] = P ^ ~ms & Wt, t[15] = U ^ ~Le & Yt, t[24] = ca ^ ~ma & kt, t[25] = ua ^ ~Aa & Vt, t[34] = ke ^ ~Ft & la, t[35] = pi ^ ~$t & ha, t[44] = ya ^ ~J & As, t[45] = ba ^ ~st & m, t[6] = _a ^ ~Ea & Ne, t[7] = fa ^ ~va & b, t[16] = ms ^ ~Wt & Ht, t[17] = Le ^ ~Yt & sa, t[26] = ma ^ ~kt & qt, t[27] = Aa ^ ~Vt & Kt, t[36] = Ft ^ ~la & pa, t[37] = $t ^ ~ha & wa, t[46] = J ^ ~As & p, t[47] = st ^ ~m & g, t[8] = Ea ^ ~Ne & Ut, t[9] = va ^ ~b & ei, t[18] = Wt ^ ~Ht & da, t[19] = Yt ^ ~sa & ga, t[28] = kt ^ ~qt & I, t[29] = Vt ^ ~Kt & H, t[38] = la ^ ~pa & h, t[39] = ha ^ ~wa & d, t[48] = As ^ ~p & oa, t[49] = m ^ ~g & aa, t[0] ^= n[e * 2], t[1] ^= n[e * 2 + 1];
18687
18687
  }
18688
18688
  }, ou;
@@ -18731,7 +18731,7 @@ function A2() {
18731
18731
  this.state[~~(this.count / 4)] ^= e << 8 * (this.count % 4), (e & 128) !== 0 && this.count === this.blockSize - 1 && n.p1600(this.state), this.state[~~((this.blockSize - 1) / 4)] ^= 128 << 8 * ((this.blockSize - 1) % 4), n.p1600(this.state), this.count = 0, this.squeezing = !0;
18732
18732
  }, t.prototype.squeeze = function(e) {
18733
18733
  this.squeezing || this.absorbLastFewBits(1);
18734
- const r = Ye.alloc(e);
18734
+ const r = Xe.alloc(e);
18735
18735
  for (let i = 0; i < e; ++i)
18736
18736
  r[i] = this.state[~~(this.count / 4)] >>> 8 * (this.count % 4) & 255, this.count += 1, this.count === this.blockSize && (n.p1600(this.state), this.count = 0);
18737
18737
  return r;
@@ -19045,7 +19045,7 @@ class ui {
19045
19045
  * @returns {CompactCiphertextListBuilder}
19046
19046
  */
19047
19047
  static builder(t) {
19048
- E(t, $e);
19048
+ E(t, Ze);
19049
19049
  const e = s.compactciphertextlist_builder(t.__wbg_ptr);
19050
19050
  if (e[2])
19051
19051
  throw c(e[1]);
@@ -19493,7 +19493,7 @@ class eo {
19493
19493
  * @returns {ProvenCompactCiphertextList}
19494
19494
  */
19495
19495
  build_with_proof_packed(t, e, r) {
19496
- E(t, We);
19496
+ E(t, $e);
19497
19497
  const i = q(e, s.__wbindgen_malloc), o = j, a = s.compactciphertextlistbuilder_build_with_proof_packed(this.__wbg_ptr, t.__wbg_ptr, i, o, r);
19498
19498
  if (a[2])
19499
19499
  throw c(a[1]);
@@ -20707,10 +20707,10 @@ class ls {
20707
20707
  const ah = typeof FinalizationRegistry > "u" ? { register: () => {
20708
20708
  }, unregister: () => {
20709
20709
  } } : new FinalizationRegistry((n) => s.__wbg_compactpkecrs_free(n >>> 0, 1));
20710
- class We {
20710
+ class $e {
20711
20711
  static __wrap(t) {
20712
20712
  t = t >>> 0;
20713
- const e = Object.create(We.prototype);
20713
+ const e = Object.create($e.prototype);
20714
20714
  return e.__wbg_ptr = t, ah.register(e, e.__wbg_ptr, e), e;
20715
20715
  }
20716
20716
  __destroy_into_raw() {
@@ -20740,7 +20740,7 @@ class We {
20740
20740
  const e = q(t, s.__wbindgen_malloc), r = j, i = s.compactpkecrs_deserialize(e, r);
20741
20741
  if (i[2])
20742
20742
  throw c(i[1]);
20743
- return We.__wrap(i[0]);
20743
+ return $e.__wrap(i[0]);
20744
20744
  }
20745
20745
  /**
20746
20746
  * @param {bigint} serialized_size_limit
@@ -20762,7 +20762,7 @@ class We {
20762
20762
  const r = q(t, s.__wbindgen_malloc), i = j, o = s.compactpkecrs_safe_deserialize(r, i, e);
20763
20763
  if (o[2])
20764
20764
  throw c(o[1]);
20765
- return We.__wrap(o[0]);
20765
+ return $e.__wrap(o[0]);
20766
20766
  }
20767
20767
  /**
20768
20768
  * @param {TfheConfig} config
@@ -20774,7 +20774,7 @@ class We {
20774
20774
  const r = s.compactpkecrs_from_config(t.__wbg_ptr, e);
20775
20775
  if (r[2])
20776
20776
  throw c(r[1]);
20777
- return We.__wrap(r[0]);
20777
+ return $e.__wrap(r[0]);
20778
20778
  }
20779
20779
  /**
20780
20780
  * @param {Uint8Array} buffer
@@ -20784,7 +20784,7 @@ class We {
20784
20784
  const e = q(t, s.__wbindgen_malloc), r = j, i = s.compactpkecrs_deserialize_from_public_params(e, r);
20785
20785
  if (i[2])
20786
20786
  throw c(i[1]);
20787
- return We.__wrap(i[0]);
20787
+ return $e.__wrap(i[0]);
20788
20788
  }
20789
20789
  /**
20790
20790
  * @param {Uint8Array} buffer
@@ -20795,7 +20795,7 @@ class We {
20795
20795
  const r = q(t, s.__wbindgen_malloc), i = j, o = s.compactpkecrs_safe_deserialize_from_public_params(r, i, e);
20796
20796
  if (o[2])
20797
20797
  throw c(o[1]);
20798
- return We.__wrap(o[0]);
20798
+ return $e.__wrap(o[0]);
20799
20799
  }
20800
20800
  }
20801
20801
  typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => s.__wbg_compressedfhebool_free(n >>> 0, 1));
@@ -29784,7 +29784,7 @@ class es {
29784
29784
  * @returns {CompactCiphertextListBuilder}
29785
29785
  */
29786
29786
  static builder(t) {
29787
- E(t, $e);
29787
+ E(t, Ze);
29788
29788
  const e = s.provencompactciphertextlist_builder(t.__wbg_ptr);
29789
29789
  if (e[2])
29790
29790
  throw c(e[1]);
@@ -29817,7 +29817,7 @@ class es {
29817
29817
  * @returns {CompactCiphertextListExpander}
29818
29818
  */
29819
29819
  verify_and_expand(t, e, r) {
29820
- E(t, We), E(e, $e);
29820
+ E(t, $e), E(e, Ze);
29821
29821
  const i = q(r, s.__wbindgen_malloc), o = j, a = s.provencompactciphertextlist_verify_and_expand(this.__wbg_ptr, t.__wbg_ptr, e.__wbg_ptr, i, o);
29822
29822
  if (a[2])
29823
29823
  throw c(a[1]);
@@ -30030,10 +30030,10 @@ class K {
30030
30030
  const Mp = typeof FinalizationRegistry > "u" ? { register: () => {
30031
30031
  }, unregister: () => {
30032
30032
  } } : new FinalizationRegistry((n) => s.__wbg_tfhecompactpublickey_free(n >>> 0, 1));
30033
- class $e {
30033
+ class Ze {
30034
30034
  static __wrap(t) {
30035
30035
  t = t >>> 0;
30036
- const e = Object.create($e.prototype);
30036
+ const e = Object.create(Ze.prototype);
30037
30037
  return e.__wbg_ptr = t, Mp.register(e, e.__wbg_ptr, e), e;
30038
30038
  }
30039
30039
  __destroy_into_raw() {
@@ -30053,7 +30053,7 @@ class $e {
30053
30053
  const e = s.tfhecompactpublickey_new(t.__wbg_ptr);
30054
30054
  if (e[2])
30055
30055
  throw c(e[1]);
30056
- return $e.__wrap(e[0]);
30056
+ return Ze.__wrap(e[0]);
30057
30057
  }
30058
30058
  /**
30059
30059
  * @returns {Uint8Array}
@@ -30073,7 +30073,7 @@ class $e {
30073
30073
  const e = q(t, s.__wbindgen_malloc), r = j, i = s.tfhecompactpublickey_deserialize(e, r);
30074
30074
  if (i[2])
30075
30075
  throw c(i[1]);
30076
- return $e.__wrap(i[0]);
30076
+ return Ze.__wrap(i[0]);
30077
30077
  }
30078
30078
  /**
30079
30079
  * @param {bigint} serialized_size_limit
@@ -30095,7 +30095,7 @@ class $e {
30095
30095
  const r = q(t, s.__wbindgen_malloc), i = j, o = s.tfhecompactpublickey_safe_deserialize(r, i, e);
30096
30096
  if (o[2])
30097
30097
  throw c(o[1]);
30098
- return $e.__wrap(o[0]);
30098
+ return Ze.__wrap(o[0]);
30099
30099
  }
30100
30100
  /**
30101
30101
  * @param {Uint8Array} buffer
@@ -30109,7 +30109,7 @@ class $e {
30109
30109
  const a = s.tfhecompactpublickey_safe_deserialize_conformant(i, o, e, r.__wbg_ptr);
30110
30110
  if (a[2])
30111
30111
  throw c(a[1]);
30112
- return $e.__wrap(a[0]);
30112
+ return Ze.__wrap(a[0]);
30113
30113
  }
30114
30114
  }
30115
30115
  typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => s.__wbg_tfhecompressedcompactpublickey_free(n >>> 0, 1));
@@ -30516,7 +30516,7 @@ var N2 = /* @__PURE__ */ Object.freeze({
30516
30516
  CompactCiphertextList: ui,
30517
30517
  CompactCiphertextListBuilder: eo,
30518
30518
  CompactCiphertextListExpander: ls,
30519
- CompactPkeCrs: We,
30519
+ CompactPkeCrs: $e,
30520
30520
  FheBool: pr,
30521
30521
  FheInt10: wr,
30522
30522
  FheInt1024: dr,
@@ -30604,7 +30604,7 @@ var N2 = /* @__PURE__ */ Object.freeze({
30604
30604
  ShortintCompactPublicKeyEncryptionParameters: Vs,
30605
30605
  ShortintNoiseDistribution: ra,
30606
30606
  TfheClientKey: K,
30607
- TfheCompactPublicKey: $e,
30607
+ TfheCompactPublicKey: Ze,
30608
30608
  TfheCompressedPublicKey: wt,
30609
30609
  TfheConfig: hs,
30610
30610
  TfhePublicKey: pt,
@@ -30615,9 +30615,9 @@ var N2 = /* @__PURE__ */ Object.freeze({
30615
30615
  wbg_rayon_PoolBuilder: na,
30616
30616
  wbg_rayon_start_worker: F2
30617
30617
  });
30618
- let et, ee = 0, Is = null;
30618
+ let tt, te = 0, Is = null;
30619
30619
  function rs() {
30620
- return (Is === null || Is.byteLength === 0) && (Is = new Uint8Array(et.memory.buffer)), Is;
30620
+ return (Is === null || Is.byteLength === 0) && (Is = new Uint8Array(tt.memory.buffer)), Is;
30621
30621
  }
30622
30622
  const vo = typeof TextEncoder < "u" ? new TextEncoder("utf-8") : { encode: () => {
30623
30623
  throw Error("TextEncoder not available");
@@ -30633,7 +30633,7 @@ const vo = typeof TextEncoder < "u" ? new TextEncoder("utf-8") : { encode: () =>
30633
30633
  function Si(n, t, e) {
30634
30634
  if (e === void 0) {
30635
30635
  const u = vo.encode(n), _ = t(u.length, 1) >>> 0;
30636
- return rs().subarray(_, _ + u.length).set(u), ee = u.length, _;
30636
+ return rs().subarray(_, _ + u.length).set(u), te = u.length, _;
30637
30637
  }
30638
30638
  let r = n.length, i = t(r, 1) >>> 0;
30639
30639
  const o = rs();
@@ -30648,22 +30648,22 @@ function Si(n, t, e) {
30648
30648
  const u = rs().subarray(i + a, i + r), _ = L2(n, u);
30649
30649
  a += _.written, i = e(i, r, a, 1) >>> 0;
30650
30650
  }
30651
- return ee = a, i;
30651
+ return te = a, i;
30652
30652
  }
30653
30653
  let bi = null;
30654
30654
  function Ue() {
30655
- return (bi === null || bi.buffer.detached === !0 || bi.buffer.detached === void 0 && bi.buffer !== et.memory.buffer) && (bi = new DataView(et.memory.buffer)), bi;
30655
+ return (bi === null || bi.buffer.detached === !0 || bi.buffer.detached === void 0 && bi.buffer !== tt.memory.buffer) && (bi = new DataView(tt.memory.buffer)), bi;
30656
30656
  }
30657
30657
  function Wi(n) {
30658
- const t = et.__externref_table_alloc();
30659
- return et.__wbindgen_export_4.set(t, n), t;
30658
+ const t = tt.__externref_table_alloc();
30659
+ return tt.__wbindgen_export_4.set(t, n), t;
30660
30660
  }
30661
30661
  function gi(n, t) {
30662
30662
  try {
30663
30663
  return n.apply(this, t);
30664
30664
  } catch (e) {
30665
30665
  const r = Wi(e);
30666
- et.__wbindgen_exn_store(r);
30666
+ tt.__wbindgen_exn_store(r);
30667
30667
  }
30668
30668
  }
30669
30669
  const Sg = typeof TextDecoder < "u" ? new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }) : { decode: () => {
@@ -30717,19 +30717,19 @@ function Fi(n, t) {
30717
30717
  if (!(n instanceof t))
30718
30718
  throw new Error(`expected instance of ${t.name}`);
30719
30719
  }
30720
- function Xe(n, t) {
30720
+ function Ve(n, t) {
30721
30721
  return n = n >>> 0, rs().subarray(n / 1, n / 1 + t);
30722
30722
  }
30723
- function tr(n, t) {
30723
+ function qe(n, t) {
30724
30724
  const e = t(n.length * 1, 1) >>> 0;
30725
- return rs().set(n, e / 1), ee = n.length, e;
30725
+ return rs().set(n, e / 1), te = n.length, e;
30726
30726
  }
30727
30727
  function Ui(n) {
30728
- const t = et.__wbindgen_export_4.get(n);
30729
- return et.__externref_table_dealloc(n), t;
30728
+ const t = tt.__wbindgen_export_4.get(n);
30729
+ return tt.__externref_table_dealloc(n), t;
30730
30730
  }
30731
30731
  function D2(n, t) {
30732
- const e = Si(t, et.__wbindgen_malloc, et.__wbindgen_realloc), r = ee, i = et.new_server_id_addr(n, e, r);
30732
+ const e = Si(t, tt.__wbindgen_malloc, tt.__wbindgen_realloc), r = te, i = tt.new_server_id_addr(n, e, r);
30733
30733
  if (i[2])
30734
30734
  throw Ui(i[1]);
30735
30735
  return ps.__wrap(i[0]);
@@ -30740,10 +30740,10 @@ function kg(n, t) {
30740
30740
  const i = Wi(n[r]);
30741
30741
  Ue().setUint32(e + 4 * r, i, !0);
30742
30742
  }
30743
- return ee = n.length, e;
30743
+ return te = n.length, e;
30744
30744
  }
30745
30745
  function U2(n, t, e) {
30746
- const r = kg(n, et.__wbindgen_malloc), i = ee, o = Si(t, et.__wbindgen_malloc, et.__wbindgen_realloc), a = ee, u = Si(e, et.__wbindgen_malloc, et.__wbindgen_realloc), _ = ee, l = et.new_client(r, i, o, a, u, _);
30746
+ const r = kg(n, tt.__wbindgen_malloc), i = te, o = Si(t, tt.__wbindgen_malloc, tt.__wbindgen_realloc), a = te, u = Si(e, tt.__wbindgen_malloc, tt.__wbindgen_realloc), _ = te, l = tt.new_client(r, i, o, a, u, _);
30747
30747
  if (l[2])
30748
30748
  throw Ui(l[1]);
30749
30749
  return ia.__wrap(l[0]);
@@ -30752,58 +30752,58 @@ function Pg(n, t) {
30752
30752
  n = n >>> 0;
30753
30753
  const e = Ue(), r = [];
30754
30754
  for (let i = n; i < n + 4 * t; i += 4)
30755
- r.push(et.__wbindgen_export_4.get(e.getUint32(i, !0)));
30756
- return et.__externref_drop_slice(n, t), r;
30755
+ r.push(tt.__wbindgen_export_4.get(e.getUint32(i, !0)));
30756
+ return tt.__externref_drop_slice(n, t), r;
30757
30757
  }
30758
30758
  function M2() {
30759
- const n = et.ml_kem_pke_keygen();
30759
+ const n = tt.ml_kem_pke_keygen();
30760
30760
  return Mi.__wrap(n);
30761
30761
  }
30762
30762
  function j2(n) {
30763
30763
  Fi(n, Mi);
30764
- const t = et.ml_kem_pke_get_pk(n.__wbg_ptr);
30764
+ const t = tt.ml_kem_pke_get_pk(n.__wbg_ptr);
30765
30765
  return bs.__wrap(t);
30766
30766
  }
30767
30767
  function G2(n) {
30768
30768
  Fi(n, bs);
30769
- const t = et.ml_kem_pke_pk_to_u8vec(n.__wbg_ptr);
30769
+ const t = tt.ml_kem_pke_pk_to_u8vec(n.__wbg_ptr);
30770
30770
  if (t[3])
30771
30771
  throw Ui(t[2]);
30772
- var e = Xe(t[0], t[1]).slice();
30773
- return et.__wbindgen_free(t[0], t[1] * 1, 1), e;
30772
+ var e = Ve(t[0], t[1]).slice();
30773
+ return tt.__wbindgen_free(t[0], t[1] * 1, 1), e;
30774
30774
  }
30775
30775
  function H2(n) {
30776
30776
  Fi(n, Mi);
30777
- const t = et.ml_kem_pke_sk_to_u8vec(n.__wbg_ptr);
30777
+ const t = tt.ml_kem_pke_sk_to_u8vec(n.__wbg_ptr);
30778
30778
  if (t[3])
30779
30779
  throw Ui(t[2]);
30780
- var e = Xe(t[0], t[1]).slice();
30781
- return et.__wbindgen_free(t[0], t[1] * 1, 1), e;
30780
+ var e = Ve(t[0], t[1]).slice();
30781
+ return tt.__wbindgen_free(t[0], t[1] * 1, 1), e;
30782
30782
  }
30783
30783
  function V2(n) {
30784
- const t = tr(n, et.__wbindgen_malloc), e = ee, r = et.u8vec_to_ml_kem_pke_pk(t, e);
30784
+ const t = qe(n, tt.__wbindgen_malloc), e = te, r = tt.u8vec_to_ml_kem_pke_pk(t, e);
30785
30785
  if (r[2])
30786
30786
  throw Ui(r[1]);
30787
30787
  return bs.__wrap(r[0]);
30788
30788
  }
30789
30789
  function q2(n) {
30790
- const t = tr(n, et.__wbindgen_malloc), e = ee, r = et.u8vec_to_ml_kem_pke_sk(t, e);
30790
+ const t = qe(n, tt.__wbindgen_malloc), e = te, r = tt.u8vec_to_ml_kem_pke_sk(t, e);
30791
30791
  if (r[2])
30792
30792
  throw Ui(r[1]);
30793
30793
  return Mi.__wrap(r[0]);
30794
30794
  }
30795
30795
  function Q2(n, t, e, r, i, o, a) {
30796
30796
  Fi(n, ia), Fi(i, bs), Fi(o, Mi);
30797
- const u = et.process_user_decryption_resp_from_js(n.__wbg_ptr, t, e, r, i.__wbg_ptr, o.__wbg_ptr, a);
30797
+ const u = tt.process_user_decryption_resp_from_js(n.__wbg_ptr, t, e, r, i.__wbg_ptr, o.__wbg_ptr, a);
30798
30798
  if (u[3])
30799
30799
  throw Ui(u[2]);
30800
30800
  var _ = Pg(u[0], u[1]).slice();
30801
- return et.__wbindgen_free(u[0], u[1] * 4, 4), _;
30801
+ return tt.__wbindgen_free(u[0], u[1] * 4, 4), _;
30802
30802
  }
30803
- typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => et.__wbg_ciphertexthandle_free(n >>> 0, 1));
30803
+ typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => tt.__wbg_ciphertexthandle_free(n >>> 0, 1));
30804
30804
  const qp = typeof FinalizationRegistry > "u" ? { register: () => {
30805
30805
  }, unregister: () => {
30806
- } } : new FinalizationRegistry((n) => et.__wbg_client_free(n >>> 0, 1));
30806
+ } } : new FinalizationRegistry((n) => tt.__wbg_client_free(n >>> 0, 1));
30807
30807
  class ia {
30808
30808
  static __wrap(t) {
30809
30809
  t = t >>> 0;
@@ -30816,14 +30816,14 @@ class ia {
30816
30816
  }
30817
30817
  free() {
30818
30818
  const t = this.__destroy_into_raw();
30819
- et.__wbg_client_free(t, 0);
30819
+ tt.__wbg_client_free(t, 0);
30820
30820
  }
30821
30821
  }
30822
- typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => et.__wbg_eip712domainmsg_free(n >>> 0, 1));
30823
- typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => et.__wbg_parseduserdecryptionrequest_free(n >>> 0, 1));
30822
+ typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => tt.__wbg_eip712domainmsg_free(n >>> 0, 1));
30823
+ typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => tt.__wbg_parseduserdecryptionrequest_free(n >>> 0, 1));
30824
30824
  const Qp = typeof FinalizationRegistry > "u" ? { register: () => {
30825
30825
  }, unregister: () => {
30826
- } } : new FinalizationRegistry((n) => et.__wbg_privateenckeymlkem512_free(n >>> 0, 1));
30826
+ } } : new FinalizationRegistry((n) => tt.__wbg_privateenckeymlkem512_free(n >>> 0, 1));
30827
30827
  class Mi {
30828
30828
  static __wrap(t) {
30829
30829
  t = t >>> 0;
@@ -30836,13 +30836,13 @@ class Mi {
30836
30836
  }
30837
30837
  free() {
30838
30838
  const t = this.__destroy_into_raw();
30839
- et.__wbg_privateenckeymlkem512_free(t, 0);
30839
+ tt.__wbg_privateenckeymlkem512_free(t, 0);
30840
30840
  }
30841
30841
  }
30842
- typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => et.__wbg_privatesigkey_free(n >>> 0, 1));
30842
+ typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => tt.__wbg_privatesigkey_free(n >>> 0, 1));
30843
30843
  const Kp = typeof FinalizationRegistry > "u" ? { register: () => {
30844
30844
  }, unregister: () => {
30845
- } } : new FinalizationRegistry((n) => et.__wbg_publicenckeymlkem512_free(n >>> 0, 1));
30845
+ } } : new FinalizationRegistry((n) => tt.__wbg_publicenckeymlkem512_free(n >>> 0, 1));
30846
30846
  class bs {
30847
30847
  static __wrap(t) {
30848
30848
  t = t >>> 0;
@@ -30855,14 +30855,14 @@ class bs {
30855
30855
  }
30856
30856
  free() {
30857
30857
  const t = this.__destroy_into_raw();
30858
- et.__wbg_publicenckeymlkem512_free(t, 0);
30858
+ tt.__wbg_publicenckeymlkem512_free(t, 0);
30859
30859
  }
30860
30860
  }
30861
- typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => et.__wbg_publicsigkey_free(n >>> 0, 1));
30862
- typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => et.__wbg_requestid_free(n >>> 0, 1));
30861
+ typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => tt.__wbg_publicsigkey_free(n >>> 0, 1));
30862
+ typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => tt.__wbg_requestid_free(n >>> 0, 1));
30863
30863
  const Wp = typeof FinalizationRegistry > "u" ? { register: () => {
30864
30864
  }, unregister: () => {
30865
- } } : new FinalizationRegistry((n) => et.__wbg_serveridaddr_free(n >>> 0, 1));
30865
+ } } : new FinalizationRegistry((n) => tt.__wbg_serveridaddr_free(n >>> 0, 1));
30866
30866
  class ps {
30867
30867
  static __wrap(t) {
30868
30868
  t = t >>> 0;
@@ -30878,12 +30878,12 @@ class ps {
30878
30878
  }
30879
30879
  free() {
30880
30880
  const t = this.__destroy_into_raw();
30881
- et.__wbg_serveridaddr_free(t, 0);
30881
+ tt.__wbg_serveridaddr_free(t, 0);
30882
30882
  }
30883
30883
  }
30884
30884
  const Jp = typeof FinalizationRegistry > "u" ? { register: () => {
30885
30885
  }, unregister: () => {
30886
- } } : new FinalizationRegistry((n) => et.__wbg_typedciphertext_free(n >>> 0, 1));
30886
+ } } : new FinalizationRegistry((n) => tt.__wbg_typedciphertext_free(n >>> 0, 1));
30887
30887
  class qs {
30888
30888
  static __wrap(t) {
30889
30889
  t = t >>> 0;
@@ -30899,24 +30899,24 @@ class qs {
30899
30899
  }
30900
30900
  free() {
30901
30901
  const t = this.__destroy_into_raw();
30902
- et.__wbg_typedciphertext_free(t, 0);
30902
+ tt.__wbg_typedciphertext_free(t, 0);
30903
30903
  }
30904
30904
  /**
30905
30905
  * The actual ciphertext to decrypt, taken directly from fhevm.
30906
30906
  * @returns {Uint8Array}
30907
30907
  */
30908
30908
  get ciphertext() {
30909
- const t = et.__wbg_get_typedciphertext_ciphertext(this.__wbg_ptr);
30910
- var e = Xe(t[0], t[1]).slice();
30911
- return et.__wbindgen_free(t[0], t[1] * 1, 1), e;
30909
+ const t = tt.__wbg_get_typedciphertext_ciphertext(this.__wbg_ptr);
30910
+ var e = Ve(t[0], t[1]).slice();
30911
+ return tt.__wbindgen_free(t[0], t[1] * 1, 1), e;
30912
30912
  }
30913
30913
  /**
30914
30914
  * The actual ciphertext to decrypt, taken directly from fhevm.
30915
30915
  * @param {Uint8Array} arg0
30916
30916
  */
30917
30917
  set ciphertext(t) {
30918
- const e = tr(t, et.__wbindgen_malloc), r = ee;
30919
- et.__wbg_set_eip712domainmsg_name(this.__wbg_ptr, e, r);
30918
+ const e = qe(t, tt.__wbindgen_malloc), r = te;
30919
+ tt.__wbg_set_eip712domainmsg_name(this.__wbg_ptr, e, r);
30920
30920
  }
30921
30921
  /**
30922
30922
  * The type of plaintext encrypted. The type should match FheType from tfhe-rs:
@@ -30924,7 +30924,7 @@ class qs {
30924
30924
  * @returns {number}
30925
30925
  */
30926
30926
  get fhe_type() {
30927
- return et.__wbg_get_typedciphertext_fhe_type(this.__wbg_ptr);
30927
+ return tt.__wbg_get_typedciphertext_fhe_type(this.__wbg_ptr);
30928
30928
  }
30929
30929
  /**
30930
30930
  * The type of plaintext encrypted. The type should match FheType from tfhe-rs:
@@ -30932,24 +30932,24 @@ class qs {
30932
30932
  * @param {number} arg0
30933
30933
  */
30934
30934
  set fhe_type(t) {
30935
- et.__wbg_set_typedciphertext_fhe_type(this.__wbg_ptr, t);
30935
+ tt.__wbg_set_typedciphertext_fhe_type(this.__wbg_ptr, t);
30936
30936
  }
30937
30937
  /**
30938
30938
  * The external handle of the ciphertext (the handle used in the copro).
30939
30939
  * @returns {Uint8Array}
30940
30940
  */
30941
30941
  get external_handle() {
30942
- const t = et.__wbg_get_typedciphertext_external_handle(this.__wbg_ptr);
30943
- var e = Xe(t[0], t[1]).slice();
30944
- return et.__wbindgen_free(t[0], t[1] * 1, 1), e;
30942
+ const t = tt.__wbg_get_typedciphertext_external_handle(this.__wbg_ptr);
30943
+ var e = Ve(t[0], t[1]).slice();
30944
+ return tt.__wbindgen_free(t[0], t[1] * 1, 1), e;
30945
30945
  }
30946
30946
  /**
30947
30947
  * The external handle of the ciphertext (the handle used in the copro).
30948
30948
  * @param {Uint8Array} arg0
30949
30949
  */
30950
30950
  set external_handle(t) {
30951
- const e = tr(t, et.__wbindgen_malloc), r = ee;
30952
- et.__wbg_set_eip712domainmsg_version(this.__wbg_ptr, e, r);
30951
+ const e = qe(t, tt.__wbindgen_malloc), r = te;
30952
+ tt.__wbg_set_eip712domainmsg_version(this.__wbg_ptr, e, r);
30953
30953
  }
30954
30954
  /**
30955
30955
  * The ciphertext format, see CiphertextFormat documentation for details.
@@ -30957,7 +30957,7 @@ class qs {
30957
30957
  * @returns {number}
30958
30958
  */
30959
30959
  get ciphertext_format() {
30960
- return et.__wbg_get_typedciphertext_ciphertext_format(this.__wbg_ptr);
30960
+ return tt.__wbg_get_typedciphertext_ciphertext_format(this.__wbg_ptr);
30961
30961
  }
30962
30962
  /**
30963
30963
  * The ciphertext format, see CiphertextFormat documentation for details.
@@ -30965,12 +30965,12 @@ class qs {
30965
30965
  * @param {number} arg0
30966
30966
  */
30967
30967
  set ciphertext_format(t) {
30968
- et.__wbg_set_typedciphertext_ciphertext_format(this.__wbg_ptr, t);
30968
+ tt.__wbg_set_typedciphertext_ciphertext_format(this.__wbg_ptr, t);
30969
30969
  }
30970
30970
  }
30971
30971
  const $p = typeof FinalizationRegistry > "u" ? { register: () => {
30972
30972
  }, unregister: () => {
30973
- } } : new FinalizationRegistry((n) => et.__wbg_typedplaintext_free(n >>> 0, 1));
30973
+ } } : new FinalizationRegistry((n) => tt.__wbg_typedplaintext_free(n >>> 0, 1));
30974
30974
  class f_ {
30975
30975
  static __wrap(t) {
30976
30976
  t = t >>> 0;
@@ -30983,24 +30983,24 @@ class f_ {
30983
30983
  }
30984
30984
  free() {
30985
30985
  const t = this.__destroy_into_raw();
30986
- et.__wbg_typedplaintext_free(t, 0);
30986
+ tt.__wbg_typedplaintext_free(t, 0);
30987
30987
  }
30988
30988
  /**
30989
30989
  * The actual plaintext in bytes.
30990
30990
  * @returns {Uint8Array}
30991
30991
  */
30992
30992
  get bytes() {
30993
- const t = et.__wbg_get_typedplaintext_bytes(this.__wbg_ptr);
30994
- var e = Xe(t[0], t[1]).slice();
30995
- return et.__wbindgen_free(t[0], t[1] * 1, 1), e;
30993
+ const t = tt.__wbg_get_typedplaintext_bytes(this.__wbg_ptr);
30994
+ var e = Ve(t[0], t[1]).slice();
30995
+ return tt.__wbindgen_free(t[0], t[1] * 1, 1), e;
30996
30996
  }
30997
30997
  /**
30998
30998
  * The actual plaintext in bytes.
30999
30999
  * @param {Uint8Array} arg0
31000
31000
  */
31001
31001
  set bytes(t) {
31002
- const e = tr(t, et.__wbindgen_malloc), r = ee;
31003
- et.__wbg_set_eip712domainmsg_name(this.__wbg_ptr, e, r);
31002
+ const e = qe(t, tt.__wbindgen_malloc), r = te;
31003
+ tt.__wbg_set_eip712domainmsg_name(this.__wbg_ptr, e, r);
31004
31004
  }
31005
31005
  /**
31006
31006
  * The type of plaintext encrypted. The type should match FheType from tfhe-rs:
@@ -31008,7 +31008,7 @@ class f_ {
31008
31008
  * @returns {number}
31009
31009
  */
31010
31010
  get fhe_type() {
31011
- return et.__wbg_get_typedplaintext_fhe_type(this.__wbg_ptr);
31011
+ return tt.__wbg_get_typedplaintext_fhe_type(this.__wbg_ptr);
31012
31012
  }
31013
31013
  /**
31014
31014
  * The type of plaintext encrypted. The type should match FheType from tfhe-rs:
@@ -31016,12 +31016,12 @@ class f_ {
31016
31016
  * @param {number} arg0
31017
31017
  */
31018
31018
  set fhe_type(t) {
31019
- et.__wbg_set_typedplaintext_fhe_type(this.__wbg_ptr, t);
31019
+ tt.__wbg_set_typedplaintext_fhe_type(this.__wbg_ptr, t);
31020
31020
  }
31021
31021
  }
31022
31022
  const Yp = typeof FinalizationRegistry > "u" ? { register: () => {
31023
31023
  }, unregister: () => {
31024
- } } : new FinalizationRegistry((n) => et.__wbg_typedsigncryptedciphertext_free(n >>> 0, 1));
31024
+ } } : new FinalizationRegistry((n) => tt.__wbg_typedsigncryptedciphertext_free(n >>> 0, 1));
31025
31025
  class Qs {
31026
31026
  static __wrap(t) {
31027
31027
  t = t >>> 0;
@@ -31037,7 +31037,7 @@ class Qs {
31037
31037
  }
31038
31038
  free() {
31039
31039
  const t = this.__destroy_into_raw();
31040
- et.__wbg_typedsigncryptedciphertext_free(t, 0);
31040
+ tt.__wbg_typedsigncryptedciphertext_free(t, 0);
31041
31041
  }
31042
31042
  /**
31043
31043
  * The type of plaintext encrypted. The type should match FheType from tfhe-rs:
@@ -31045,7 +31045,7 @@ class Qs {
31045
31045
  * @returns {number}
31046
31046
  */
31047
31047
  get fhe_type() {
31048
- return et.__wbg_get_typedciphertext_fhe_type(this.__wbg_ptr);
31048
+ return tt.__wbg_get_typedciphertext_fhe_type(this.__wbg_ptr);
31049
31049
  }
31050
31050
  /**
31051
31051
  * The type of plaintext encrypted. The type should match FheType from tfhe-rs:
@@ -31053,7 +31053,7 @@ class Qs {
31053
31053
  * @param {number} arg0
31054
31054
  */
31055
31055
  set fhe_type(t) {
31056
- et.__wbg_set_typedciphertext_fhe_type(this.__wbg_ptr, t);
31056
+ tt.__wbg_set_typedciphertext_fhe_type(this.__wbg_ptr, t);
31057
31057
  }
31058
31058
  /**
31059
31059
  * The signcrypted payload, using a hybrid encryption approach in
@@ -31061,9 +31061,9 @@ class Qs {
31061
31061
  * @returns {Uint8Array}
31062
31062
  */
31063
31063
  get signcrypted_ciphertext() {
31064
- const t = et.__wbg_get_typedsigncryptedciphertext_signcrypted_ciphertext(this.__wbg_ptr);
31065
- var e = Xe(t[0], t[1]).slice();
31066
- return et.__wbindgen_free(t[0], t[1] * 1, 1), e;
31064
+ const t = tt.__wbg_get_typedsigncryptedciphertext_signcrypted_ciphertext(this.__wbg_ptr);
31065
+ var e = Ve(t[0], t[1]).slice();
31066
+ return tt.__wbindgen_free(t[0], t[1] * 1, 1), e;
31067
31067
  }
31068
31068
  /**
31069
31069
  * The signcrypted payload, using a hybrid encryption approach in
@@ -31071,25 +31071,25 @@ class Qs {
31071
31071
  * @param {Uint8Array} arg0
31072
31072
  */
31073
31073
  set signcrypted_ciphertext(t) {
31074
- const e = tr(t, et.__wbindgen_malloc), r = ee;
31075
- et.__wbg_set_eip712domainmsg_name(this.__wbg_ptr, e, r);
31074
+ const e = qe(t, tt.__wbindgen_malloc), r = te;
31075
+ tt.__wbg_set_eip712domainmsg_name(this.__wbg_ptr, e, r);
31076
31076
  }
31077
31077
  /**
31078
31078
  * The external handles that were originally in the request.
31079
31079
  * @returns {Uint8Array}
31080
31080
  */
31081
31081
  get external_handle() {
31082
- const t = et.__wbg_get_typedsigncryptedciphertext_external_handle(this.__wbg_ptr);
31083
- var e = Xe(t[0], t[1]).slice();
31084
- return et.__wbindgen_free(t[0], t[1] * 1, 1), e;
31082
+ const t = tt.__wbg_get_typedsigncryptedciphertext_external_handle(this.__wbg_ptr);
31083
+ var e = Ve(t[0], t[1]).slice();
31084
+ return tt.__wbindgen_free(t[0], t[1] * 1, 1), e;
31085
31085
  }
31086
31086
  /**
31087
31087
  * The external handles that were originally in the request.
31088
31088
  * @param {Uint8Array} arg0
31089
31089
  */
31090
31090
  set external_handle(t) {
31091
- const e = tr(t, et.__wbindgen_malloc), r = ee;
31092
- et.__wbg_set_eip712domainmsg_version(this.__wbg_ptr, e, r);
31091
+ const e = qe(t, tt.__wbindgen_malloc), r = te;
31092
+ tt.__wbg_set_eip712domainmsg_version(this.__wbg_ptr, e, r);
31093
31093
  }
31094
31094
  /**
31095
31095
  * The packing factor determines whether the decrypted plaintext
@@ -31097,7 +31097,7 @@ class Qs {
31097
31097
  * @returns {number}
31098
31098
  */
31099
31099
  get packing_factor() {
31100
- return et.__wbg_get_typedciphertext_ciphertext_format(this.__wbg_ptr) >>> 0;
31100
+ return tt.__wbg_get_typedciphertext_ciphertext_format(this.__wbg_ptr) >>> 0;
31101
31101
  }
31102
31102
  /**
31103
31103
  * The packing factor determines whether the decrypted plaintext
@@ -31105,13 +31105,13 @@ class Qs {
31105
31105
  * @param {number} arg0
31106
31106
  */
31107
31107
  set packing_factor(t) {
31108
- et.__wbg_set_typedciphertext_ciphertext_format(this.__wbg_ptr, t);
31108
+ tt.__wbg_set_typedciphertext_ciphertext_format(this.__wbg_ptr, t);
31109
31109
  }
31110
31110
  }
31111
- typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => et.__wbg_userdecryptionrequest_free(n >>> 0, 1));
31111
+ typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => tt.__wbg_userdecryptionrequest_free(n >>> 0, 1));
31112
31112
  const K2 = typeof FinalizationRegistry > "u" ? { register: () => {
31113
31113
  }, unregister: () => {
31114
- } } : new FinalizationRegistry((n) => et.__wbg_userdecryptionresponse_free(n >>> 0, 1));
31114
+ } } : new FinalizationRegistry((n) => tt.__wbg_userdecryptionresponse_free(n >>> 0, 1));
31115
31115
  class l_ {
31116
31116
  static __unwrap(t) {
31117
31117
  return t instanceof l_ ? t.__destroy_into_raw() : 0;
@@ -31122,22 +31122,22 @@ class l_ {
31122
31122
  }
31123
31123
  free() {
31124
31124
  const t = this.__destroy_into_raw();
31125
- et.__wbg_userdecryptionresponse_free(t, 0);
31125
+ tt.__wbg_userdecryptionresponse_free(t, 0);
31126
31126
  }
31127
31127
  /**
31128
31128
  * @returns {Uint8Array}
31129
31129
  */
31130
31130
  get signature() {
31131
- const t = et.__wbg_get_userdecryptionresponse_signature(this.__wbg_ptr);
31132
- var e = Xe(t[0], t[1]).slice();
31133
- return et.__wbindgen_free(t[0], t[1] * 1, 1), e;
31131
+ const t = tt.__wbg_get_userdecryptionresponse_signature(this.__wbg_ptr);
31132
+ var e = Ve(t[0], t[1]).slice();
31133
+ return tt.__wbindgen_free(t[0], t[1] * 1, 1), e;
31134
31134
  }
31135
31135
  /**
31136
31136
  * @param {Uint8Array} arg0
31137
31137
  */
31138
31138
  set signature(t) {
31139
- const e = tr(t, et.__wbindgen_malloc), r = ee;
31140
- et.__wbg_set_eip712domainmsg_name(this.__wbg_ptr, e, r);
31139
+ const e = qe(t, tt.__wbindgen_malloc), r = te;
31140
+ tt.__wbg_set_eip712domainmsg_name(this.__wbg_ptr, e, r);
31141
31141
  }
31142
31142
  /**
31143
31143
  * This is the external signature created from the Eip712 domain
@@ -31145,14 +31145,15 @@ class l_ {
31145
31145
  * struct UserDecryptResponseVerification {
31146
31146
  * bytes publicKey;
31147
31147
  * uint256\[\] ctHandles;
31148
- * bytes userDecryptedShare;
31148
+ * bytes userDecryptedShare; // serialization of payload
31149
+ * bytes extraData;
31149
31150
  * }
31150
31151
  * @returns {Uint8Array}
31151
31152
  */
31152
31153
  get external_signature() {
31153
- const t = et.__wbg_get_userdecryptionresponse_external_signature(this.__wbg_ptr);
31154
- var e = Xe(t[0], t[1]).slice();
31155
- return et.__wbindgen_free(t[0], t[1] * 1, 1), e;
31154
+ const t = tt.__wbg_get_userdecryptionresponse_external_signature(this.__wbg_ptr);
31155
+ var e = Ve(t[0], t[1]).slice();
31156
+ return tt.__wbindgen_free(t[0], t[1] * 1, 1), e;
31156
31157
  }
31157
31158
  /**
31158
31159
  * This is the external signature created from the Eip712 domain
@@ -31160,20 +31161,21 @@ class l_ {
31160
31161
  * struct UserDecryptResponseVerification {
31161
31162
  * bytes publicKey;
31162
31163
  * uint256\[\] ctHandles;
31163
- * bytes userDecryptedShare;
31164
+ * bytes userDecryptedShare; // serialization of payload
31165
+ * bytes extraData;
31164
31166
  * }
31165
31167
  * @param {Uint8Array} arg0
31166
31168
  */
31167
31169
  set external_signature(t) {
31168
- const e = tr(t, et.__wbindgen_malloc), r = ee;
31169
- et.__wbg_set_eip712domainmsg_version(this.__wbg_ptr, e, r);
31170
+ const e = qe(t, tt.__wbindgen_malloc), r = te;
31171
+ tt.__wbg_set_eip712domainmsg_version(this.__wbg_ptr, e, r);
31170
31172
  }
31171
31173
  /**
31172
31174
  * The actual \[UserDecryptionResponsePayload\].
31173
31175
  * @returns {UserDecryptionResponsePayload | undefined}
31174
31176
  */
31175
31177
  get payload() {
31176
- const t = et.__wbg_get_userdecryptionresponse_payload(this.__wbg_ptr);
31178
+ const t = tt.__wbg_get_userdecryptionresponse_payload(this.__wbg_ptr);
31177
31179
  return t === 0 ? void 0 : No.__wrap(t);
31178
31180
  }
31179
31181
  /**
@@ -31182,12 +31184,29 @@ class l_ {
31182
31184
  */
31183
31185
  set payload(t) {
31184
31186
  let e = 0;
31185
- ai(t) || (Fi(t, No), e = t.__destroy_into_raw()), et.__wbg_set_userdecryptionresponse_payload(this.__wbg_ptr, e);
31187
+ ai(t) || (Fi(t, No), e = t.__destroy_into_raw()), tt.__wbg_set_userdecryptionresponse_payload(this.__wbg_ptr, e);
31188
+ }
31189
+ /**
31190
+ * Extra data used in the EIP712 signature - external_signature.
31191
+ * @returns {Uint8Array}
31192
+ */
31193
+ get extra_data() {
31194
+ const t = tt.__wbg_get_userdecryptionresponse_extra_data(this.__wbg_ptr);
31195
+ var e = Ve(t[0], t[1]).slice();
31196
+ return tt.__wbindgen_free(t[0], t[1] * 1, 1), e;
31197
+ }
31198
+ /**
31199
+ * Extra data used in the EIP712 signature - external_signature.
31200
+ * @param {Uint8Array} arg0
31201
+ */
31202
+ set extra_data(t) {
31203
+ const e = qe(t, tt.__wbindgen_malloc), r = te;
31204
+ tt.__wbg_set_eip712domainmsg_chain_id(this.__wbg_ptr, e, r);
31186
31205
  }
31187
31206
  }
31188
31207
  const Zp = typeof FinalizationRegistry > "u" ? { register: () => {
31189
31208
  }, unregister: () => {
31190
- } } : new FinalizationRegistry((n) => et.__wbg_userdecryptionresponsepayload_free(n >>> 0, 1));
31209
+ } } : new FinalizationRegistry((n) => tt.__wbg_userdecryptionresponsepayload_free(n >>> 0, 1));
31191
31210
  class No {
31192
31211
  static __wrap(t) {
31193
31212
  t = t >>> 0;
@@ -31200,7 +31219,7 @@ class No {
31200
31219
  }
31201
31220
  free() {
31202
31221
  const t = this.__destroy_into_raw();
31203
- et.__wbg_userdecryptionresponsepayload_free(t, 0);
31222
+ tt.__wbg_userdecryptionresponsepayload_free(t, 0);
31204
31223
  }
31205
31224
  /**
31206
31225
  * The server's signature verification key, Encoded using SEC1.
@@ -31209,9 +31228,9 @@ class No {
31209
31228
  * @returns {Uint8Array}
31210
31229
  */
31211
31230
  get verification_key() {
31212
- const t = et.__wbg_get_userdecryptionresponsepayload_verification_key(this.__wbg_ptr);
31213
- var e = Xe(t[0], t[1]).slice();
31214
- return et.__wbindgen_free(t[0], t[1] * 1, 1), e;
31231
+ const t = tt.__wbg_get_userdecryptionresponsepayload_verification_key(this.__wbg_ptr);
31232
+ var e = Ve(t[0], t[1]).slice();
31233
+ return tt.__wbindgen_free(t[0], t[1] * 1, 1), e;
31215
31234
  }
31216
31235
  /**
31217
31236
  * The server's signature verification key, Encoded using SEC1.
@@ -31220,8 +31239,8 @@ class No {
31220
31239
  * @param {Uint8Array} arg0
31221
31240
  */
31222
31241
  set verification_key(t) {
31223
- const e = tr(t, et.__wbindgen_malloc), r = ee;
31224
- et.__wbg_set_eip712domainmsg_name(this.__wbg_ptr, e, r);
31242
+ const e = qe(t, tt.__wbindgen_malloc), r = te;
31243
+ tt.__wbg_set_eip712domainmsg_name(this.__wbg_ptr, e, r);
31225
31244
  }
31226
31245
  /**
31227
31246
  * This is needed to ensure the response corresponds to the request.
@@ -31230,9 +31249,9 @@ class No {
31230
31249
  * @returns {Uint8Array}
31231
31250
  */
31232
31251
  get digest() {
31233
- const t = et.__wbg_get_userdecryptionresponsepayload_digest(this.__wbg_ptr);
31234
- var e = Xe(t[0], t[1]).slice();
31235
- return et.__wbindgen_free(t[0], t[1] * 1, 1), e;
31252
+ const t = tt.__wbg_get_userdecryptionresponsepayload_digest(this.__wbg_ptr);
31253
+ var e = Ve(t[0], t[1]).slice();
31254
+ return tt.__wbindgen_free(t[0], t[1] * 1, 1), e;
31236
31255
  }
31237
31256
  /**
31238
31257
  * This is needed to ensure the response corresponds to the request.
@@ -31241,8 +31260,8 @@ class No {
31241
31260
  * @param {Uint8Array} arg0
31242
31261
  */
31243
31262
  set digest(t) {
31244
- const e = tr(t, et.__wbindgen_malloc), r = ee;
31245
- et.__wbg_set_eip712domainmsg_version(this.__wbg_ptr, e, r);
31263
+ const e = qe(t, tt.__wbindgen_malloc), r = te;
31264
+ tt.__wbg_set_eip712domainmsg_version(this.__wbg_ptr, e, r);
31246
31265
  }
31247
31266
  /**
31248
31267
  * The resulting signcrypted ciphertexts, each ciphertext
@@ -31251,9 +31270,9 @@ class No {
31251
31270
  * @returns {TypedSigncryptedCiphertext[]}
31252
31271
  */
31253
31272
  get signcrypted_ciphertexts() {
31254
- const t = et.__wbg_get_userdecryptionresponsepayload_signcrypted_ciphertexts(this.__wbg_ptr);
31273
+ const t = tt.__wbg_get_userdecryptionresponsepayload_signcrypted_ciphertexts(this.__wbg_ptr);
31255
31274
  var e = Pg(t[0], t[1]).slice();
31256
- return et.__wbindgen_free(t[0], t[1] * 4, 4), e;
31275
+ return tt.__wbindgen_free(t[0], t[1] * 4, 4), e;
31257
31276
  }
31258
31277
  /**
31259
31278
  * The resulting signcrypted ciphertexts, each ciphertext
@@ -31262,8 +31281,8 @@ class No {
31262
31281
  * @param {TypedSigncryptedCiphertext[]} arg0
31263
31282
  */
31264
31283
  set signcrypted_ciphertexts(t) {
31265
- const e = kg(t, et.__wbindgen_malloc), r = ee;
31266
- et.__wbg_set_userdecryptionresponsepayload_signcrypted_ciphertexts(this.__wbg_ptr, e, r);
31284
+ const e = kg(t, tt.__wbindgen_malloc), r = te;
31285
+ tt.__wbg_set_userdecryptionresponsepayload_signcrypted_ciphertexts(this.__wbg_ptr, e, r);
31267
31286
  }
31268
31287
  /**
31269
31288
  * The ID of the MPC party doing the user decryption. Used for polynomial
@@ -31271,7 +31290,7 @@ class No {
31271
31290
  * @returns {number}
31272
31291
  */
31273
31292
  get party_id() {
31274
- return et.__wbg_get_userdecryptionresponsepayload_party_id(this.__wbg_ptr) >>> 0;
31293
+ return tt.__wbg_get_userdecryptionresponsepayload_party_id(this.__wbg_ptr) >>> 0;
31275
31294
  }
31276
31295
  /**
31277
31296
  * The ID of the MPC party doing the user decryption. Used for polynomial
@@ -31279,21 +31298,21 @@ class No {
31279
31298
  * @param {number} arg0
31280
31299
  */
31281
31300
  set party_id(t) {
31282
- et.__wbg_set_userdecryptionresponsepayload_party_id(this.__wbg_ptr, t);
31301
+ tt.__wbg_set_userdecryptionresponsepayload_party_id(this.__wbg_ptr, t);
31283
31302
  }
31284
31303
  /**
31285
31304
  * The degree of the sharing scheme used.
31286
31305
  * @returns {number}
31287
31306
  */
31288
31307
  get degree() {
31289
- return et.__wbg_get_userdecryptionresponsepayload_degree(this.__wbg_ptr) >>> 0;
31308
+ return tt.__wbg_get_userdecryptionresponsepayload_degree(this.__wbg_ptr) >>> 0;
31290
31309
  }
31291
31310
  /**
31292
31311
  * The degree of the sharing scheme used.
31293
31312
  * @param {number} arg0
31294
31313
  */
31295
31314
  set degree(t) {
31296
- et.__wbg_set_userdecryptionresponsepayload_degree(this.__wbg_ptr, t);
31315
+ tt.__wbg_set_userdecryptionresponsepayload_degree(this.__wbg_ptr, t);
31297
31316
  }
31298
31317
  }
31299
31318
  async function W2(n, t) {
@@ -31317,7 +31336,7 @@ async function W2(n, t) {
31317
31336
  function J2() {
31318
31337
  const n = {};
31319
31338
  return n.wbg = {}, n.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(t, e) {
31320
- const r = String(e), i = Si(r, et.__wbindgen_malloc, et.__wbindgen_realloc), o = ee;
31339
+ const r = String(e), i = Si(r, tt.__wbindgen_malloc, tt.__wbindgen_realloc), o = te;
31321
31340
  Ue().setInt32(t + 4 * 1, o, !0), Ue().setInt32(t + 4 * 0, i, !0);
31322
31341
  }, n.wbg.__wbg_buffer_609cc3eee51ed158 = function(t) {
31323
31342
  return t.buffer;
@@ -31338,7 +31357,7 @@ function J2() {
31338
31357
  try {
31339
31358
  r = t, i = e, console.error(Rs(t, e));
31340
31359
  } finally {
31341
- et.__wbindgen_free(r, i, 1);
31360
+ tt.__wbindgen_free(r, i, 1);
31342
31361
  }
31343
31362
  }, n.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() {
31344
31363
  return gi(function(t, e) {
@@ -31415,7 +31434,7 @@ function J2() {
31415
31434
  }, n.wbg.__wbg_set_65595bdd868b3009 = function(t, e, r) {
31416
31435
  t.set(e, r >>> 0);
31417
31436
  }, n.wbg.__wbg_stack_0ed75d68575b0f3c = function(t, e) {
31418
- const r = e.stack, i = Si(r, et.__wbindgen_malloc, et.__wbindgen_realloc), o = ee;
31437
+ const r = e.stack, i = Si(r, tt.__wbindgen_malloc, tt.__wbindgen_realloc), o = te;
31419
31438
  Ue().setInt32(t + 4 * 1, o, !0), Ue().setInt32(t + 4 * 0, i, !0);
31420
31439
  }, n.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
31421
31440
  const t = typeof Co > "u" ? null : Co;
@@ -31453,14 +31472,14 @@ function J2() {
31453
31472
  const e = t;
31454
31473
  return typeof e == "boolean" ? e ? 1 : 0 : 2;
31455
31474
  }, n.wbg.__wbindgen_debug_string = function(t, e) {
31456
- const r = Cu(e), i = Si(r, et.__wbindgen_malloc, et.__wbindgen_realloc), o = ee;
31475
+ const r = Cu(e), i = Si(r, tt.__wbindgen_malloc, tt.__wbindgen_realloc), o = te;
31457
31476
  Ue().setInt32(t + 4 * 1, o, !0), Ue().setInt32(t + 4 * 0, i, !0);
31458
31477
  }, n.wbg.__wbindgen_error_new = function(t, e) {
31459
31478
  return new Error(Rs(t, e));
31460
31479
  }, n.wbg.__wbindgen_in = function(t, e) {
31461
31480
  return t in e;
31462
31481
  }, n.wbg.__wbindgen_init_externref_table = function() {
31463
- const t = et.__wbindgen_export_4, e = t.grow(4);
31482
+ const t = tt.__wbindgen_export_4, e = t.grow(4);
31464
31483
  t.set(0, void 0), t.set(e + 0, void 0), t.set(e + 1, null), t.set(e + 2, !0), t.set(e + 3, !1);
31465
31484
  }, n.wbg.__wbindgen_is_function = function(t) {
31466
31485
  return typeof t == "function";
@@ -31476,13 +31495,13 @@ function J2() {
31476
31495
  }, n.wbg.__wbindgen_jsval_loose_eq = function(t, e) {
31477
31496
  return t == e;
31478
31497
  }, n.wbg.__wbindgen_memory = function() {
31479
- return et.memory;
31498
+ return tt.memory;
31480
31499
  }, n.wbg.__wbindgen_number_get = function(t, e) {
31481
31500
  const r = e, i = typeof r == "number" ? r : void 0;
31482
31501
  Ue().setFloat64(t + 8 * 1, ai(i) ? 0 : i, !0), Ue().setInt32(t + 4 * 0, !ai(i), !0);
31483
31502
  }, n.wbg.__wbindgen_string_get = function(t, e) {
31484
31503
  const r = e, i = typeof r == "string" ? r : void 0;
31485
- var o = ai(i) ? 0 : Si(i, et.__wbindgen_malloc, et.__wbindgen_realloc), a = ee;
31504
+ var o = ai(i) ? 0 : Si(i, tt.__wbindgen_malloc, tt.__wbindgen_realloc), a = te;
31486
31505
  Ue().setInt32(t + 4 * 1, a, !0), Ue().setInt32(t + 4 * 0, o, !0);
31487
31506
  }, n.wbg.__wbindgen_string_new = function(t, e) {
31488
31507
  return Rs(t, e);
@@ -31491,10 +31510,10 @@ function J2() {
31491
31510
  }, n;
31492
31511
  }
31493
31512
  function $2(n, t) {
31494
- return et = n.exports, h_.__wbindgen_wasm_module = t, bi = null, Is = null, et.__wbindgen_start(), et;
31513
+ return tt = n.exports, h_.__wbindgen_wasm_module = t, bi = null, Is = null, tt.__wbindgen_start(), tt;
31495
31514
  }
31496
31515
  async function h_(n) {
31497
- if (et !== void 0) return et;
31516
+ if (tt !== void 0) return tt;
31498
31517
  typeof n < "u" && (Object.getPrototypeOf(n) === Object.prototype ? { module_or_path: n } = n : console.warn("using deprecated parameters for the initialization function; pass a single object instead")), typeof n > "u" && (n = new URL(
31499
31518
  /* @vite-ignore */
31500
31519
  "/kms_lib_bg.wasm",
@@ -31840,11 +31859,11 @@ const _u = {}, Lg = async (n, t) => {
31840
31859
  }
31841
31860
  } else
31842
31861
  throw new Error("You must provide a valid CRS with its CRS ID.");
31843
- }, iA = async (n, t) => await new Ze(t.kmsContractAddress, Dg, n).getKmsSigners(), sA = async (n, t) => {
31844
- const r = await new Ze(t.kmsContractAddress, Dg, n).getThreshold();
31862
+ }, iA = async (n, t) => await new tr(t.kmsContractAddress, Dg, n).getKmsSigners(), sA = async (n, t) => {
31863
+ const r = await new tr(t.kmsContractAddress, Dg, n).getThreshold();
31845
31864
  return Number(r);
31846
- }, oA = async (n, t) => await new Ze(t.inputVerifierContractAddress, Ug, n).getCoprocessorSigners(), aA = async (n, t) => {
31847
- const r = await new Ze(t.inputVerifierContractAddress, Ug, n).getThreshold();
31865
+ }, oA = async (n, t) => await new tr(t.inputVerifierContractAddress, Ug, n).getCoprocessorSigners(), aA = async (n, t) => {
31866
+ const r = await new tr(t.inputVerifierContractAddress, Ug, n).getThreshold();
31848
31867
  return Number(r);
31849
31868
  }, tw = {
31850
31869
  0: 2,
@@ -31917,7 +31936,7 @@ const lA = (n, t, e, r, i, o, a, u) => async (_, l, f, w, y, z, F, k) => {
31917
31936
  contractAddress: Ro(dt.contractAddress)
31918
31937
  }));
31919
31938
  Mg(O.map((dt) => dt.handle)), fA(BigInt(F), BigInt(k));
31920
- const C = new Ze(i, cA, a), N = O.map(async ({ handle: dt, contractAddress: xt }) => {
31939
+ const C = new tr(i, cA, a), N = O.map(async ({ handle: dt, contractAddress: xt }) => {
31921
31940
  const at = await C.persistAllowed(dt, z), ht = await C.persistAllowed(dt, xt);
31922
31941
  if (!at)
31923
31942
  throw new Error(`User ${z} is not authorized to user decrypt handle ${dt}!`);
@@ -32070,9 +32089,9 @@ const lA = (n, t, e, r, i, o, a, u) => async (_, l, f, w, y, z, F, k) => {
32070
32089
  1024: 10,
32071
32090
  2048: 11
32072
32091
  }, wA = BigInt("18446744073709551615"), dA = (n, t, e, r, i) => {
32073
- const o = rh("keccak256").update(Ye.from(n)).digest(), a = Ye.from(He(e)), u = r.toString(16).padStart(64, "0"), _ = Ye.from(u, "hex");
32092
+ const o = rh("keccak256").update(Xe.from(n)).digest(), a = Xe.from(He(e)), u = r.toString(16).padStart(64, "0"), _ = Xe.from(u, "hex");
32074
32093
  return t.map((f, w) => {
32075
- const y = pA[f], z = Ye.from([w]), F = rh("keccak256").update(o).update(z).update(a).update(_).digest(), k = new Uint8Array(32);
32094
+ const y = pA[f], z = Xe.from([w]), F = rh("keccak256").update(o).update(z).update(a).update(_).digest(), k = new Uint8Array(32);
32076
32095
  if (k.set(F, 0), BigInt(r) > wA)
32077
32096
  throw new Error("ChainId exceeds maximum allowed value (8 bytes)");
32078
32097
  const T = He(u).slice(24, 32);
@@ -32231,7 +32250,7 @@ function xA(n, t) {
32231
32250
  return n.forEach((l, f) => _[l] = u[f]), _;
32232
32251
  }
32233
32252
  const RA = (n, t, e, r, i, o, a, u) => async (_) => {
32234
- const l = "0x00", f = new Ze(i, AA, a);
32253
+ const l = "0x00", f = new tr(i, AA, a);
32235
32254
  let w;
32236
32255
  try {
32237
32256
  w = await Promise.all(_.map(async (C) => {
@@ -32403,8 +32422,8 @@ window.TFHE = {
32403
32422
  default: ro,
32404
32423
  initThreadPool: __,
32405
32424
  init_panic_hook: u_,
32406
- TfheCompactPublicKey: $e,
32407
- CompactPkeCrs: We,
32425
+ TfheCompactPublicKey: Ze,
32426
+ CompactPkeCrs: $e,
32408
32427
  CompactCiphertextList: ui,
32409
32428
  ZkComputeLoad: Bg
32410
32429
  };