@zama-fhe/relayer-sdk 0.1.2 → 0.2.0-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/kms_lib_bg.wasm +0 -0
- package/bundle/relayer-sdk-js.js +569 -570
- package/bundle/relayer-sdk-js.umd.cjs +5 -5
- package/bundle/tfhe_bg.wasm +0 -0
- package/bundle/workerHelpers.js +1 -1
- package/bundle.d.ts +1 -0
- package/lib/kms_lib_bg.wasm +0 -0
- package/lib/tfhe_bg.wasm +0 -0
- package/lib/web.js +33 -37
- package/lib/workerHelpers.js +1 -1
- package/package.json +5 -5
package/bundle/relayer-sdk-js.js
CHANGED
|
@@ -80,7 +80,7 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
80
80
|
*/
|
|
81
81
|
(function(n) {
|
|
82
82
|
const t = Lo, e = Nu, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
83
|
-
n.Buffer = f, n.SlowBuffer =
|
|
83
|
+
n.Buffer = f, n.SlowBuffer = P, n.INSPECT_MAX_BYTES = 50;
|
|
84
84
|
const i = 2147483647;
|
|
85
85
|
n.kMaxLength = i;
|
|
86
86
|
const { Uint8Array: o, ArrayBuffer: a, SharedArrayBuffer: u } = globalThis;
|
|
@@ -145,7 +145,7 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
145
145
|
const F = b.valueOf && b.valueOf();
|
|
146
146
|
if (F != null && F !== b)
|
|
147
147
|
return f.from(F, h, w);
|
|
148
|
-
const U =
|
|
148
|
+
const U = k(b);
|
|
149
149
|
if (U) return U;
|
|
150
150
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof b[Symbol.toPrimitive] == "function")
|
|
151
151
|
return f.from(b[Symbol.toPrimitive]("string"), h, w);
|
|
@@ -205,7 +205,7 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
205
205
|
let F;
|
|
206
206
|
return h === void 0 && w === void 0 ? F = new o(b) : w === void 0 ? F = new o(b, h) : F = new o(b, h, w), Object.setPrototypeOf(F, f.prototype), F;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function k(b) {
|
|
209
209
|
if (f.isBuffer(b)) {
|
|
210
210
|
const h = z(b.length) | 0, w = l(h);
|
|
211
211
|
return w.length === 0 || b.copy(w, 0, 0, h), w;
|
|
@@ -220,7 +220,7 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
220
220
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + i.toString(16) + " bytes");
|
|
221
221
|
return b | 0;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function P(b) {
|
|
224
224
|
return +b != b && (b = 0), f.alloc(+b);
|
|
225
225
|
}
|
|
226
226
|
f.isBuffer = function(h) {
|
|
@@ -397,14 +397,14 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
397
397
|
if (w >= F)
|
|
398
398
|
return 1;
|
|
399
399
|
if (w >>>= 0, F >>>= 0, U >>>= 0, J >>>= 0, this === h) return 0;
|
|
400
|
-
let st = J - U,
|
|
401
|
-
const Vt = Math.min(st,
|
|
400
|
+
let st = J - U, Pt = F - w;
|
|
401
|
+
const Vt = Math.min(st, Pt), qt = this.slice(U, J), Kt = h.slice(w, F);
|
|
402
402
|
for (let Dt = 0; Dt < Vt; ++Dt)
|
|
403
403
|
if (qt[Dt] !== Kt[Dt]) {
|
|
404
|
-
st = qt[Dt],
|
|
404
|
+
st = qt[Dt], Pt = Kt[Dt];
|
|
405
405
|
break;
|
|
406
406
|
}
|
|
407
|
-
return st <
|
|
407
|
+
return st < Pt ? -1 : Pt < st ? 1 : 0;
|
|
408
408
|
};
|
|
409
409
|
function Y(b, h, w, F, U) {
|
|
410
410
|
if (b.length === 0) return -1;
|
|
@@ -421,11 +421,11 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
421
421
|
throw new TypeError("val must be string, number or Buffer");
|
|
422
422
|
}
|
|
423
423
|
function Z(b, h, w, F, U) {
|
|
424
|
-
let J = 1, st = b.length,
|
|
424
|
+
let J = 1, st = b.length, Pt = h.length;
|
|
425
425
|
if (F !== void 0 && (F = String(F).toLowerCase(), F === "ucs2" || F === "ucs-2" || F === "utf16le" || F === "utf-16le")) {
|
|
426
426
|
if (b.length < 2 || h.length < 2)
|
|
427
427
|
return -1;
|
|
428
|
-
J = 2, st /= 2,
|
|
428
|
+
J = 2, st /= 2, Pt /= 2, w /= 2;
|
|
429
429
|
}
|
|
430
430
|
function Vt(Kt, Dt) {
|
|
431
431
|
return J === 1 ? Kt[Dt] : Kt.readUInt16BE(Dt * J);
|
|
@@ -435,13 +435,13 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
435
435
|
let Kt = -1;
|
|
436
436
|
for (qt = w; qt < st; qt++)
|
|
437
437
|
if (Vt(b, qt) === Vt(h, Kt === -1 ? 0 : qt - Kt)) {
|
|
438
|
-
if (Kt === -1 && (Kt = qt), qt - Kt + 1 ===
|
|
438
|
+
if (Kt === -1 && (Kt = qt), qt - Kt + 1 === Pt) return Kt * J;
|
|
439
439
|
} else
|
|
440
440
|
Kt !== -1 && (qt -= qt - Kt), Kt = -1;
|
|
441
441
|
} else
|
|
442
|
-
for (w +
|
|
442
|
+
for (w + Pt > st && (w = st - Pt), qt = w; qt >= 0; qt--) {
|
|
443
443
|
let Kt = !0;
|
|
444
|
-
for (let Dt = 0; Dt <
|
|
444
|
+
for (let Dt = 0; Dt < Pt; Dt++)
|
|
445
445
|
if (Vt(b, qt + Dt) !== Vt(h, Dt)) {
|
|
446
446
|
Kt = !1;
|
|
447
447
|
break;
|
|
@@ -465,9 +465,9 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
465
465
|
F > J / 2 && (F = J / 2);
|
|
466
466
|
let st;
|
|
467
467
|
for (st = 0; st < F; ++st) {
|
|
468
|
-
const
|
|
469
|
-
if (Ee(
|
|
470
|
-
b[w + st] =
|
|
468
|
+
const Pt = parseInt(h.substr(st * 2, 2), 16);
|
|
469
|
+
if (Ee(Pt)) return st;
|
|
470
|
+
b[w + st] = Pt;
|
|
471
471
|
}
|
|
472
472
|
return st;
|
|
473
473
|
}
|
|
@@ -536,10 +536,10 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
536
536
|
let U = h;
|
|
537
537
|
for (; U < w; ) {
|
|
538
538
|
const J = b[U];
|
|
539
|
-
let st = null,
|
|
540
|
-
if (U +
|
|
539
|
+
let st = null, Pt = J > 239 ? 4 : J > 223 ? 3 : J > 191 ? 2 : 1;
|
|
540
|
+
if (U + Pt <= w) {
|
|
541
541
|
let Vt, qt, Kt, Dt;
|
|
542
|
-
switch (
|
|
542
|
+
switch (Pt) {
|
|
543
543
|
case 1:
|
|
544
544
|
J < 128 && (st = J);
|
|
545
545
|
break;
|
|
@@ -553,7 +553,7 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
553
553
|
Vt = b[U + 1], qt = b[U + 2], Kt = b[U + 3], (Vt & 192) === 128 && (qt & 192) === 128 && (Kt & 192) === 128 && (Dt = (J & 15) << 18 | (Vt & 63) << 12 | (qt & 63) << 6 | Kt & 63, Dt > 65535 && Dt < 1114112 && (st = Dt));
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
st === null ? (st = 65533,
|
|
556
|
+
st === null ? (st = 65533, Pt = 1) : st > 65535 && (st -= 65536, F.push(st >>> 10 & 1023 | 55296), st = 56320 | st & 1023), F.push(st), U += Pt;
|
|
557
557
|
}
|
|
558
558
|
return vt(F);
|
|
559
559
|
}
|
|
@@ -634,13 +634,13 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
634
634
|
}, f.prototype.readBigUInt64LE = ae(function(h) {
|
|
635
635
|
h = h >>> 0, yt(h, "offset");
|
|
636
636
|
const w = this[h], F = this[h + 7];
|
|
637
|
-
(w === void 0 || F === void 0) &&
|
|
637
|
+
(w === void 0 || F === void 0) && kt(h, this.length - 8);
|
|
638
638
|
const U = w + this[++h] * 2 ** 8 + this[++h] * 2 ** 16 + this[++h] * 2 ** 24, J = this[++h] + this[++h] * 2 ** 8 + this[++h] * 2 ** 16 + F * 2 ** 24;
|
|
639
639
|
return BigInt(U) + (BigInt(J) << BigInt(32));
|
|
640
640
|
}), f.prototype.readBigUInt64BE = ae(function(h) {
|
|
641
641
|
h = h >>> 0, yt(h, "offset");
|
|
642
642
|
const w = this[h], F = this[h + 7];
|
|
643
|
-
(w === void 0 || F === void 0) &&
|
|
643
|
+
(w === void 0 || F === void 0) && kt(h, this.length - 8);
|
|
644
644
|
const U = w * 2 ** 24 + this[++h] * 2 ** 16 + this[++h] * 2 ** 8 + this[++h], J = this[++h] * 2 ** 24 + this[++h] * 2 ** 16 + this[++h] * 2 ** 8 + F;
|
|
645
645
|
return (BigInt(U) << BigInt(32)) + BigInt(J);
|
|
646
646
|
}), f.prototype.readIntLE = function(h, w, F) {
|
|
@@ -672,13 +672,13 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
672
672
|
}, f.prototype.readBigInt64LE = ae(function(h) {
|
|
673
673
|
h = h >>> 0, yt(h, "offset");
|
|
674
674
|
const w = this[h], F = this[h + 7];
|
|
675
|
-
(w === void 0 || F === void 0) &&
|
|
675
|
+
(w === void 0 || F === void 0) && kt(h, this.length - 8);
|
|
676
676
|
const U = this[h + 4] + this[h + 5] * 2 ** 8 + this[h + 6] * 2 ** 16 + (F << 24);
|
|
677
677
|
return (BigInt(U) << BigInt(32)) + BigInt(w + this[++h] * 2 ** 8 + this[++h] * 2 ** 16 + this[++h] * 2 ** 24);
|
|
678
678
|
}), f.prototype.readBigInt64BE = ae(function(h) {
|
|
679
679
|
h = h >>> 0, yt(h, "offset");
|
|
680
680
|
const w = this[h], F = this[h + 7];
|
|
681
|
-
(w === void 0 || F === void 0) &&
|
|
681
|
+
(w === void 0 || F === void 0) && kt(h, this.length - 8);
|
|
682
682
|
const U = (w << 24) + // Overflow
|
|
683
683
|
this[++h] * 2 ** 16 + this[++h] * 2 ** 8 + this[++h];
|
|
684
684
|
return (BigInt(U) << BigInt(32)) + BigInt(this[++h] * 2 ** 24 + this[++h] * 2 ** 16 + this[++h] * 2 ** 8 + F);
|
|
@@ -698,8 +698,8 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
698
698
|
}
|
|
699
699
|
f.prototype.writeUintLE = f.prototype.writeUIntLE = function(h, w, F, U) {
|
|
700
700
|
if (h = +h, w = w >>> 0, F = F >>> 0, !U) {
|
|
701
|
-
const
|
|
702
|
-
dt(this, h, w, F,
|
|
701
|
+
const Pt = Math.pow(2, 8 * F) - 1;
|
|
702
|
+
dt(this, h, w, F, Pt, 0);
|
|
703
703
|
}
|
|
704
704
|
let J = 1, st = 0;
|
|
705
705
|
for (this[w] = h & 255; ++st < F && (J *= 256); )
|
|
@@ -707,8 +707,8 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
707
707
|
return w + F;
|
|
708
708
|
}, f.prototype.writeUintBE = f.prototype.writeUIntBE = function(h, w, F, U) {
|
|
709
709
|
if (h = +h, w = w >>> 0, F = F >>> 0, !U) {
|
|
710
|
-
const
|
|
711
|
-
dt(this, h, w, F,
|
|
710
|
+
const Pt = Math.pow(2, 8 * F) - 1;
|
|
711
|
+
dt(this, h, w, F, Pt, 0);
|
|
712
712
|
}
|
|
713
713
|
let J = F - 1, st = 1;
|
|
714
714
|
for (this[w + J] = h & 255; --J >= 0 && (st *= 256); )
|
|
@@ -748,18 +748,18 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
748
748
|
const Vt = Math.pow(2, 8 * F - 1);
|
|
749
749
|
dt(this, h, w, F, Vt - 1, -Vt);
|
|
750
750
|
}
|
|
751
|
-
let J = 0, st = 1,
|
|
751
|
+
let J = 0, st = 1, Pt = 0;
|
|
752
752
|
for (this[w] = h & 255; ++J < F && (st *= 256); )
|
|
753
|
-
h < 0 &&
|
|
753
|
+
h < 0 && Pt === 0 && this[w + J - 1] !== 0 && (Pt = 1), this[w + J] = (h / st >> 0) - Pt & 255;
|
|
754
754
|
return w + F;
|
|
755
755
|
}, f.prototype.writeIntBE = function(h, w, F, U) {
|
|
756
756
|
if (h = +h, w = w >>> 0, !U) {
|
|
757
757
|
const Vt = Math.pow(2, 8 * F - 1);
|
|
758
758
|
dt(this, h, w, F, Vt - 1, -Vt);
|
|
759
759
|
}
|
|
760
|
-
let J = F - 1, st = 1,
|
|
760
|
+
let J = F - 1, st = 1, Pt = 0;
|
|
761
761
|
for (this[w + J] = h & 255; --J >= 0 && (st *= 256); )
|
|
762
|
-
h < 0 &&
|
|
762
|
+
h < 0 && Pt === 0 && this[w + J + 1] !== 0 && (Pt = 1), this[w + J] = (h / st >> 0) - Pt & 255;
|
|
763
763
|
return w + F;
|
|
764
764
|
}, f.prototype.writeInt8 = function(h, w, F) {
|
|
765
765
|
return h = +h, w = w >>> 0, F || dt(this, h, w, 1, 127, -128), h < 0 && (h = 255 + h + 1), this[w] = h & 255, w + 1;
|
|
@@ -830,11 +830,11 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
830
830
|
for (J = w; J < F; ++J)
|
|
831
831
|
this[J] = h;
|
|
832
832
|
else {
|
|
833
|
-
const st = f.isBuffer(h) ? h : f.from(h, U),
|
|
834
|
-
if (
|
|
833
|
+
const st = f.isBuffer(h) ? h : f.from(h, U), Pt = st.length;
|
|
834
|
+
if (Pt === 0)
|
|
835
835
|
throw new TypeError('The value "' + h + '" is invalid for argument "value"');
|
|
836
836
|
for (J = 0; J < F - w; ++J)
|
|
837
|
-
this[J + w] = st[J %
|
|
837
|
+
this[J + w] = st[J % Pt];
|
|
838
838
|
}
|
|
839
839
|
return this;
|
|
840
840
|
};
|
|
@@ -892,13 +892,13 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
892
892
|
return `${b.slice(0, w)}${h}`;
|
|
893
893
|
}
|
|
894
894
|
function lt(b, h, w) {
|
|
895
|
-
yt(h, "offset"), (b[h] === void 0 || b[h + w] === void 0) &&
|
|
895
|
+
yt(h, "offset"), (b[h] === void 0 || b[h + w] === void 0) && kt(h, b.length - (w + 1));
|
|
896
896
|
}
|
|
897
897
|
function St(b, h, w, F, U, J) {
|
|
898
898
|
if (b > w || b < h) {
|
|
899
899
|
const st = typeof h == "bigint" ? "n" : "";
|
|
900
|
-
let
|
|
901
|
-
throw h === 0 || h === BigInt(0) ?
|
|
900
|
+
let Pt;
|
|
901
|
+
throw h === 0 || h === BigInt(0) ? Pt = `>= 0${st} and < 2${st} ** ${(J + 1) * 8}${st}` : Pt = `>= -(2${st} ** ${(J + 1) * 8 - 1}${st}) and < 2 ** ${(J + 1) * 8 - 1}${st}`, new v.ERR_OUT_OF_RANGE("value", Pt, b);
|
|
902
902
|
}
|
|
903
903
|
lt(F, U, J);
|
|
904
904
|
}
|
|
@@ -906,7 +906,7 @@ Nu.write = function(n, t, e, r, i, o) {
|
|
|
906
906
|
if (typeof b != "number")
|
|
907
907
|
throw new v.ERR_INVALID_ARG_TYPE(h, "number", b);
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function kt(b, h, w) {
|
|
910
910
|
throw Math.floor(b) !== b ? (yt(b, w), new v.ERR_OUT_OF_RANGE("offset", "an integer", b)) : h < 0 ? new v.ERR_BUFFER_OUT_OF_BOUNDS() : new v.ERR_OUT_OF_RANGE(
|
|
911
911
|
"offset",
|
|
912
912
|
`>= 0 and <= ${h}`,
|
|
@@ -2833,7 +2833,7 @@ function Bw(n, t = !1) {
|
|
|
2833
2833
|
}
|
|
2834
2834
|
return [e, r];
|
|
2835
2835
|
}
|
|
2836
|
-
const S0 = (n, t) => BigInt(n >>> 0) << pu | BigInt(t >>> 0),
|
|
2836
|
+
const S0 = (n, t) => BigInt(n >>> 0) << pu | BigInt(t >>> 0), k0 = (n, t, e) => n >>> e, P0 = (n, t, e) => n << 32 - e | t >>> e, F0 = (n, t, e) => n >>> e | t << 32 - e, I0 = (n, t, e) => n << 32 - e | t >>> e, O0 = (n, t, e) => n << 64 - e | t >>> e - 32, T0 = (n, t, e) => n >>> e - 32 | t << 64 - e, C0 = (n, t) => t, N0 = (n, t) => n, Sw = (n, t, e) => n << e | t >>> 32 - e, kw = (n, t, e) => t << e | n >>> 32 - e, Pw = (n, t, e) => t << e - 32 | n >>> 64 - e, Fw = (n, t, e) => n << e - 32 | t >>> 64 - e;
|
|
2837
2837
|
function L0(n, t, e, r) {
|
|
2838
2838
|
const i = (t >>> 0) + (r >>> 0);
|
|
2839
2839
|
return { h: n + e + (i / 2 ** 32 | 0) | 0, l: i | 0 };
|
|
@@ -2842,8 +2842,8 @@ const D0 = (n, t, e) => (n >>> 0) + (t >>> 0) + (e >>> 0), U0 = (n, t, e, r) =>
|
|
|
2842
2842
|
fromBig: zw,
|
|
2843
2843
|
split: Bw,
|
|
2844
2844
|
toBig: S0,
|
|
2845
|
-
shrSH:
|
|
2846
|
-
shrSL:
|
|
2845
|
+
shrSH: k0,
|
|
2846
|
+
shrSL: P0,
|
|
2847
2847
|
rotrSH: F0,
|
|
2848
2848
|
rotrSL: I0,
|
|
2849
2849
|
rotrBH: O0,
|
|
@@ -2851,8 +2851,8 @@ const D0 = (n, t, e) => (n >>> 0) + (t >>> 0) + (e >>> 0), U0 = (n, t, e, r) =>
|
|
|
2851
2851
|
rotr32H: C0,
|
|
2852
2852
|
rotr32L: N0,
|
|
2853
2853
|
rotlSH: Sw,
|
|
2854
|
-
rotlSL:
|
|
2855
|
-
rotlBH:
|
|
2854
|
+
rotlSL: kw,
|
|
2855
|
+
rotlBH: Pw,
|
|
2856
2856
|
rotlBL: Fw,
|
|
2857
2857
|
add: L0,
|
|
2858
2858
|
add3L: D0,
|
|
@@ -2957,15 +2957,15 @@ class Q0 extends xw {
|
|
|
2957
2957
|
this.Ah = t | 0, this.Al = e | 0, this.Bh = r | 0, this.Bl = i | 0, this.Ch = o | 0, this.Cl = a | 0, this.Dh = u | 0, this.Dl = _ | 0, this.Eh = l | 0, this.El = f | 0, this.Fh = g | 0, this.Fl = y | 0, this.Gh = B | 0, this.Gl = I | 0, this.Hh = S | 0, this.Hl = T | 0;
|
|
2958
2958
|
}
|
|
2959
2959
|
process(t, e) {
|
|
2960
|
-
for (let
|
|
2961
|
-
ii[
|
|
2962
|
-
for (let
|
|
2963
|
-
const z = ii[
|
|
2964
|
-
ii[
|
|
2960
|
+
for (let k = 0; k < 16; k++, e += 4)
|
|
2961
|
+
ii[k] = t.getUint32(e), si[k] = t.getUint32(e += 4);
|
|
2962
|
+
for (let k = 16; k < 80; k++) {
|
|
2963
|
+
const z = ii[k - 15] | 0, P = si[k - 15] | 0, C = It.rotrSH(z, P, 1) ^ It.rotrSH(z, P, 8) ^ It.shrSH(z, P, 7), N = It.rotrSL(z, P, 1) ^ It.rotrSL(z, P, 8) ^ It.shrSL(z, P, 7), D = ii[k - 2] | 0, Y = si[k - 2] | 0, Z = It.rotrSH(D, Y, 19) ^ It.rotrBH(D, Y, 61) ^ It.shrSH(D, Y, 6), ft = It.rotrSL(D, Y, 19) ^ It.rotrBL(D, Y, 61) ^ It.shrSL(D, Y, 6), L = It.add4L(N, ft, si[k - 7], si[k - 16]), At = It.add4H(L, C, Z, ii[k - 7], ii[k - 16]);
|
|
2964
|
+
ii[k] = At | 0, si[k] = L | 0;
|
|
2965
2965
|
}
|
|
2966
2966
|
let { Ah: r, Al: i, Bh: o, Bl: a, Ch: u, Cl: _, Dh: l, Dl: f, Eh: g, El: y, Fh: B, Fl: I, Gh: S, Gl: T, Hh: A, Hl: R } = this;
|
|
2967
|
-
for (let
|
|
2968
|
-
const z = It.rotrSH(g, y, 14) ^ It.rotrSH(g, y, 18) ^ It.rotrBH(g, y, 41),
|
|
2967
|
+
for (let k = 0; k < 80; k++) {
|
|
2968
|
+
const z = It.rotrSH(g, y, 14) ^ It.rotrSH(g, y, 18) ^ It.rotrBH(g, y, 41), P = It.rotrSL(g, y, 14) ^ It.rotrSL(g, y, 18) ^ It.rotrBL(g, y, 41), C = g & B ^ ~g & S, N = y & I ^ ~y & T, D = It.add5L(R, P, N, q0[k], si[k]), Y = It.add5H(D, A, z, C, V0[k], ii[k]), Z = D | 0, ft = It.rotrSH(r, i, 28) ^ It.rotrBH(r, i, 34) ^ It.rotrBH(r, i, 39), L = It.rotrSL(r, i, 28) ^ It.rotrBL(r, i, 34) ^ It.rotrBL(r, i, 39), At = r & o ^ r & u ^ o & u, Rt = i & a ^ i & _ ^ a & _;
|
|
2969
2969
|
A = S | 0, R = T | 0, S = B | 0, T = I | 0, B = g | 0, I = y | 0, { h: g, l: y } = It.add(l | 0, f | 0, Y | 0, Z | 0), l = u | 0, f = _ | 0, u = o | 0, _ = a | 0, o = r | 0, a = i | 0;
|
|
2970
2970
|
const at = It.add3L(Z, L, Rt);
|
|
2971
2971
|
r = It.add3H(at, Y, ft, At), i = at | 0;
|
|
@@ -2989,8 +2989,8 @@ function W0() {
|
|
|
2989
2989
|
return ns;
|
|
2990
2990
|
throw new Error("unable to locate global object");
|
|
2991
2991
|
}
|
|
2992
|
-
const
|
|
2993
|
-
|
|
2992
|
+
const k_ = W0();
|
|
2993
|
+
k_.crypto || k_.msCrypto;
|
|
2994
2994
|
function J0(n) {
|
|
2995
2995
|
switch (n) {
|
|
2996
2996
|
case "sha256":
|
|
@@ -3008,20 +3008,20 @@ for (let n = 0, t = vs, e = 1, r = 0; n < 24; n++) {
|
|
|
3008
3008
|
t = (t << vs ^ (t >> Z0) * ty) % X0, t & Y0 && (i ^= vs << (vs << /* @__PURE__ */ BigInt(o)) - vs);
|
|
3009
3009
|
Tw.push(i);
|
|
3010
3010
|
}
|
|
3011
|
-
const [ey, ry] = /* @__PURE__ */ Bw(Tw, !0),
|
|
3011
|
+
const [ey, ry] = /* @__PURE__ */ Bw(Tw, !0), P_ = (n, t, e) => e > 32 ? Pw(n, t, e) : Sw(n, t, e), F_ = (n, t, e) => e > 32 ? Fw(n, t, e) : kw(n, t, e);
|
|
3012
3012
|
function ny(n, t = 24) {
|
|
3013
3013
|
const e = new Uint32Array(10);
|
|
3014
3014
|
for (let r = 24 - t; r < 24; r++) {
|
|
3015
3015
|
for (let a = 0; a < 10; a++)
|
|
3016
3016
|
e[a] = n[a] ^ n[a + 10] ^ n[a + 20] ^ n[a + 30] ^ n[a + 40];
|
|
3017
3017
|
for (let a = 0; a < 10; a += 2) {
|
|
3018
|
-
const u = (a + 8) % 10, _ = (a + 2) % 10, l = e[_], f = e[_ + 1], g =
|
|
3018
|
+
const u = (a + 8) % 10, _ = (a + 2) % 10, l = e[_], f = e[_ + 1], g = P_(l, f, 1) ^ e[u], y = F_(l, f, 1) ^ e[u + 1];
|
|
3019
3019
|
for (let B = 0; B < 50; B += 10)
|
|
3020
3020
|
n[a + B] ^= g, n[a + B + 1] ^= y;
|
|
3021
3021
|
}
|
|
3022
3022
|
let i = n[2], o = n[3];
|
|
3023
3023
|
for (let a = 0; a < 24; a++) {
|
|
3024
|
-
const u = Ow[a], _ =
|
|
3024
|
+
const u = Ow[a], _ = P_(i, o, u), l = F_(i, o, u), f = Iw[a];
|
|
3025
3025
|
i = n[f], o = n[f + 1], n[f] = _, n[f + 1] = l;
|
|
3026
3026
|
}
|
|
3027
3027
|
for (let a = 0; a < 50; a += 10) {
|
|
@@ -3171,7 +3171,7 @@ function os(n) {
|
|
|
3171
3171
|
}
|
|
3172
3172
|
return e;
|
|
3173
3173
|
}
|
|
3174
|
-
function
|
|
3174
|
+
function ki(n) {
|
|
3175
3175
|
return qu(ss(n));
|
|
3176
3176
|
}
|
|
3177
3177
|
function Qu(n) {
|
|
@@ -3302,7 +3302,7 @@ const wy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3302
3302
|
bitMask: Wu,
|
|
3303
3303
|
bitSet: hy,
|
|
3304
3304
|
bytesToHex: ss,
|
|
3305
|
-
bytesToNumberBE:
|
|
3305
|
+
bytesToNumberBE: ki,
|
|
3306
3306
|
bytesToNumberLE: Qu,
|
|
3307
3307
|
concatBytes: Ns,
|
|
3308
3308
|
createHmacDrbg: Hw,
|
|
@@ -3499,7 +3499,7 @@ function xy(n, t, e = !1, r = {}) {
|
|
|
3499
3499
|
fromBytes: (_) => {
|
|
3500
3500
|
if (_.length !== o)
|
|
3501
3501
|
throw new Error(`Fp.fromBytes: expected ${o}, got ${_.length}`);
|
|
3502
|
-
return e ? Qu(_) :
|
|
3502
|
+
return e ? Qu(_) : ki(_);
|
|
3503
3503
|
}
|
|
3504
3504
|
});
|
|
3505
3505
|
return Object.freeze(u);
|
|
@@ -3518,11 +3518,11 @@ function Ry(n, t, e = !1) {
|
|
|
3518
3518
|
const r = n.length, i = qw(t), o = Qw(t);
|
|
3519
3519
|
if (r < 16 || r < o || r > 1024)
|
|
3520
3520
|
throw new Error(`expected ${o}-1024 bytes of input, got ${r}`);
|
|
3521
|
-
const a = e ?
|
|
3521
|
+
const a = e ? ki(n) : Qu(n), u = Fe(a, t - ue) + ue;
|
|
3522
3522
|
return e ? Ku(u, i) : as(u, i);
|
|
3523
3523
|
}
|
|
3524
3524
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
3525
|
-
const zy = BigInt(0),
|
|
3525
|
+
const zy = BigInt(0), ka = BigInt(1);
|
|
3526
3526
|
function By(n, t) {
|
|
3527
3527
|
const e = (i, o) => {
|
|
3528
3528
|
const a = o.negate();
|
|
@@ -3537,7 +3537,7 @@ function By(n, t) {
|
|
|
3537
3537
|
unsafeLadder(i, o) {
|
|
3538
3538
|
let a = n.ZERO, u = i;
|
|
3539
3539
|
for (; o > zy; )
|
|
3540
|
-
o &
|
|
3540
|
+
o & ka && (a = a.add(u)), u = u.double(), o >>= ka;
|
|
3541
3541
|
return a;
|
|
3542
3542
|
},
|
|
3543
3543
|
/**
|
|
@@ -3575,9 +3575,9 @@ function By(n, t) {
|
|
|
3575
3575
|
for (let I = 0; I < u; I++) {
|
|
3576
3576
|
const S = I * _;
|
|
3577
3577
|
let T = Number(a & g);
|
|
3578
|
-
a >>= B, T > _ && (T -= y, a +=
|
|
3579
|
-
const A = S, R = S + Math.abs(T) - 1,
|
|
3580
|
-
T === 0 ? f = f.add(e(
|
|
3578
|
+
a >>= B, T > _ && (T -= y, a += ka);
|
|
3579
|
+
const A = S, R = S + Math.abs(T) - 1, k = I % 2 !== 0, z = T < 0;
|
|
3580
|
+
T === 0 ? f = f.add(e(k, o[A])) : l = l.add(e(z, o[R]));
|
|
3581
3581
|
}
|
|
3582
3582
|
return { p: l, f };
|
|
3583
3583
|
},
|
|
@@ -3627,7 +3627,7 @@ function Sy(n) {
|
|
|
3627
3627
|
}
|
|
3628
3628
|
return Object.freeze({ ...t });
|
|
3629
3629
|
}
|
|
3630
|
-
const { bytesToNumberBE:
|
|
3630
|
+
const { bytesToNumberBE: ky, hexToBytes: Py } = wy, xi = {
|
|
3631
3631
|
// asn.1 DER encoding utils
|
|
3632
3632
|
Err: class extends Error {
|
|
3633
3633
|
constructor(t = "") {
|
|
@@ -3645,10 +3645,10 @@ const { bytesToNumberBE: Py, hexToBytes: ky } = wy, xi = {
|
|
|
3645
3645
|
throw new t("Invalid signature integer: negative");
|
|
3646
3646
|
if (r[0] === 0 && !(r[1] & 128))
|
|
3647
3647
|
throw new t("Invalid signature integer: unnecessary leading zero");
|
|
3648
|
-
return { d:
|
|
3648
|
+
return { d: ky(r), l: n.subarray(e + 2) };
|
|
3649
3649
|
},
|
|
3650
3650
|
toSig(n) {
|
|
3651
|
-
const { Err: t } = xi, e = typeof n == "string" ?
|
|
3651
|
+
const { Err: t } = xi, e = typeof n == "string" ? Py(n) : n;
|
|
3652
3652
|
if (!(e instanceof Uint8Array))
|
|
3653
3653
|
throw new Error("ui8a expected");
|
|
3654
3654
|
let r = e.length;
|
|
@@ -3700,13 +3700,13 @@ function Fy(n) {
|
|
|
3700
3700
|
throw new Error("Invalid key");
|
|
3701
3701
|
I = I.padStart(T * 2, "0");
|
|
3702
3702
|
}
|
|
3703
|
-
let
|
|
3703
|
+
let k;
|
|
3704
3704
|
try {
|
|
3705
|
-
|
|
3705
|
+
k = typeof I == "bigint" ? I : ki(qe("private key", I, T));
|
|
3706
3706
|
} catch {
|
|
3707
3707
|
throw new Error(`private key must be ${T} bytes, hex or bigint, not ${typeof I}`);
|
|
3708
3708
|
}
|
|
3709
|
-
return A && (
|
|
3709
|
+
return A && (k = Fe(k, R)), u(k), k;
|
|
3710
3710
|
}
|
|
3711
3711
|
const l = /* @__PURE__ */ new Map();
|
|
3712
3712
|
function f(I) {
|
|
@@ -3730,7 +3730,7 @@ function Fy(n) {
|
|
|
3730
3730
|
throw new Error("invalid affine point");
|
|
3731
3731
|
if (S instanceof g)
|
|
3732
3732
|
throw new Error("projective point not allowed");
|
|
3733
|
-
const R = (
|
|
3733
|
+
const R = (k) => e.eql(k, e.ZERO);
|
|
3734
3734
|
return R(T) && R(A) ? g.ZERO : new g(T, A, e.ONE);
|
|
3735
3735
|
}
|
|
3736
3736
|
get x() {
|
|
@@ -3792,7 +3792,7 @@ function Fy(n) {
|
|
|
3792
3792
|
*/
|
|
3793
3793
|
equals(S) {
|
|
3794
3794
|
f(S);
|
|
3795
|
-
const { px: T, py: A, pz: R } = this, { px:
|
|
3795
|
+
const { px: T, py: A, pz: R } = this, { px: k, py: z, pz: P } = S, C = e.eql(e.mul(T, P), e.mul(k, R)), N = e.eql(e.mul(A, P), e.mul(z, R));
|
|
3796
3796
|
return C && N;
|
|
3797
3797
|
}
|
|
3798
3798
|
/**
|
|
@@ -3806,9 +3806,9 @@ function Fy(n) {
|
|
|
3806
3806
|
// https://eprint.iacr.org/2015/1060, algorithm 3
|
|
3807
3807
|
// Cost: 8M + 3S + 3*a + 2*b3 + 15add.
|
|
3808
3808
|
double() {
|
|
3809
|
-
const { a: S, b: T } = t, A = e.mul(T, C_), { px: R, py:
|
|
3810
|
-
let
|
|
3811
|
-
return ft = e.add(ft, ft), N = e.mul(R, z), N = e.add(N, N),
|
|
3809
|
+
const { a: S, b: T } = t, A = e.mul(T, C_), { px: R, py: k, pz: z } = this;
|
|
3810
|
+
let P = e.ZERO, C = e.ZERO, N = e.ZERO, D = e.mul(R, R), Y = e.mul(k, k), Z = e.mul(z, z), ft = e.mul(R, k);
|
|
3811
|
+
return ft = e.add(ft, ft), N = e.mul(R, z), N = e.add(N, N), P = e.mul(S, N), C = e.mul(A, Z), C = e.add(P, C), P = e.sub(Y, C), C = e.add(Y, C), C = e.mul(P, C), P = e.mul(ft, P), N = e.mul(A, N), Z = e.mul(S, Z), ft = e.sub(D, Z), ft = e.mul(S, ft), ft = e.add(ft, N), N = e.add(D, D), D = e.add(N, D), D = e.add(D, Z), D = e.mul(D, ft), C = e.add(C, D), Z = e.mul(k, z), Z = e.add(Z, Z), D = e.mul(Z, ft), P = e.sub(P, D), N = e.mul(Z, Y), N = e.add(N, N), N = e.add(N, N), new g(P, C, N);
|
|
3812
3812
|
}
|
|
3813
3813
|
// Renes-Costello-Batina exception-free addition formula.
|
|
3814
3814
|
// There is 30% faster Jacobian formula, but it is not complete.
|
|
@@ -3816,13 +3816,13 @@ function Fy(n) {
|
|
|
3816
3816
|
// Cost: 12M + 0S + 3*a + 3*b3 + 23add.
|
|
3817
3817
|
add(S) {
|
|
3818
3818
|
f(S);
|
|
3819
|
-
const { px: T, py: A, pz: R } = this, { px:
|
|
3819
|
+
const { px: T, py: A, pz: R } = this, { px: k, py: z, pz: P } = S;
|
|
3820
3820
|
let C = e.ZERO, N = e.ZERO, D = e.ZERO;
|
|
3821
3821
|
const Y = t.a, Z = e.mul(t.b, C_);
|
|
3822
|
-
let ft = e.mul(T,
|
|
3822
|
+
let ft = e.mul(T, k), L = e.mul(A, z), At = e.mul(R, P), Rt = e.add(T, A), at = e.add(k, z);
|
|
3823
3823
|
Rt = e.mul(Rt, at), at = e.add(ft, L), Rt = e.sub(Rt, at), at = e.add(T, R);
|
|
3824
|
-
let wt = e.add(
|
|
3825
|
-
return at = e.mul(at, wt), wt = e.add(ft, At), at = e.sub(at, wt), wt = e.add(A, R), C = e.add(z,
|
|
3824
|
+
let wt = e.add(k, P);
|
|
3825
|
+
return at = e.mul(at, wt), wt = e.add(ft, At), at = e.sub(at, wt), wt = e.add(A, R), C = e.add(z, P), wt = e.mul(wt, C), C = e.add(L, At), wt = e.sub(wt, C), D = e.mul(Y, at), C = e.mul(Z, At), D = e.add(C, D), C = e.sub(L, D), D = e.add(L, D), N = e.mul(C, D), L = e.add(ft, ft), L = e.add(L, ft), At = e.mul(Y, At), at = e.mul(Z, at), L = e.add(L, At), At = e.sub(ft, At), At = e.mul(Y, At), at = e.add(at, At), ft = e.mul(L, at), N = e.add(N, ft), ft = e.mul(wt, at), C = e.mul(Rt, C), C = e.sub(C, ft), ft = e.mul(Rt, L), D = e.mul(wt, D), D = e.add(D, ft), new g(C, N, D);
|
|
3826
3826
|
}
|
|
3827
3827
|
subtract(S) {
|
|
3828
3828
|
return this.add(S.negate());
|
|
@@ -3833,7 +3833,7 @@ function Fy(n) {
|
|
|
3833
3833
|
wNAF(S) {
|
|
3834
3834
|
return B.wNAFCached(this, l, S, (T) => {
|
|
3835
3835
|
const A = e.invertBatch(T.map((R) => R.pz));
|
|
3836
|
-
return T.map((R,
|
|
3836
|
+
return T.map((R, k) => R.toAffine(A[k])).map(g.fromAffine);
|
|
3837
3837
|
});
|
|
3838
3838
|
}
|
|
3839
3839
|
/**
|
|
@@ -3850,9 +3850,9 @@ function Fy(n) {
|
|
|
3850
3850
|
const { endo: A } = t;
|
|
3851
3851
|
if (!A)
|
|
3852
3852
|
return B.unsafeLadder(this, S);
|
|
3853
|
-
let { k1neg: R, k1:
|
|
3854
|
-
for (;
|
|
3855
|
-
|
|
3853
|
+
let { k1neg: R, k1: k, k2neg: z, k2: P } = A.splitScalar(S), C = T, N = T, D = this;
|
|
3854
|
+
for (; k > Vn || P > Vn; )
|
|
3855
|
+
k & je && (C = C.add(D)), P & je && (N = N.add(D)), D = D.double(), k >>= je, P >>= je;
|
|
3856
3856
|
return R && (C = C.negate()), z && (N = N.negate()), N = new g(e.mul(N.px, A.beta), N.py, N.pz), C.add(N);
|
|
3857
3857
|
}
|
|
3858
3858
|
/**
|
|
@@ -3867,14 +3867,14 @@ function Fy(n) {
|
|
|
3867
3867
|
multiply(S) {
|
|
3868
3868
|
u(S);
|
|
3869
3869
|
let T = S, A, R;
|
|
3870
|
-
const { endo:
|
|
3871
|
-
if (
|
|
3872
|
-
const { k1neg: z, k1:
|
|
3873
|
-
let { p: D, f: Y } = this.wNAF(
|
|
3874
|
-
D = B.constTimeNegate(z, D), Z = B.constTimeNegate(C, Z), Z = new g(e.mul(Z.px,
|
|
3870
|
+
const { endo: k } = t;
|
|
3871
|
+
if (k) {
|
|
3872
|
+
const { k1neg: z, k1: P, k2neg: C, k2: N } = k.splitScalar(T);
|
|
3873
|
+
let { p: D, f: Y } = this.wNAF(P), { p: Z, f: ft } = this.wNAF(N);
|
|
3874
|
+
D = B.constTimeNegate(z, D), Z = B.constTimeNegate(C, Z), Z = new g(e.mul(Z.px, k.beta), Z.py, Z.pz), A = D.add(Z), R = Y.add(ft);
|
|
3875
3875
|
} else {
|
|
3876
|
-
const { p: z, f:
|
|
3877
|
-
A = z, R =
|
|
3876
|
+
const { p: z, f: P } = this.wNAF(T);
|
|
3877
|
+
A = z, R = P;
|
|
3878
3878
|
}
|
|
3879
3879
|
return g.normalizeZ([A, R])[0];
|
|
3880
3880
|
}
|
|
@@ -3885,21 +3885,21 @@ function Fy(n) {
|
|
|
3885
3885
|
* @returns non-zero affine point
|
|
3886
3886
|
*/
|
|
3887
3887
|
multiplyAndAddUnsafe(S, T, A) {
|
|
3888
|
-
const R = g.BASE,
|
|
3888
|
+
const R = g.BASE, k = (P, C) => C === Vn || C === je || !P.equals(R) ? P.multiplyUnsafe(C) : P.multiply(C), z = k(this, T).add(k(S, A));
|
|
3889
3889
|
return z.is0() ? void 0 : z;
|
|
3890
3890
|
}
|
|
3891
3891
|
// Converts Projective point to affine (x, y) coordinates.
|
|
3892
3892
|
// Can accept precomputed Z^-1 - for example, from invertBatch.
|
|
3893
3893
|
// (x, y, z) ∋ (x=x/z, y=y/z)
|
|
3894
3894
|
toAffine(S) {
|
|
3895
|
-
const { px: T, py: A, pz: R } = this,
|
|
3896
|
-
S == null && (S =
|
|
3897
|
-
const z = e.mul(T, S),
|
|
3898
|
-
if (
|
|
3895
|
+
const { px: T, py: A, pz: R } = this, k = this.is0();
|
|
3896
|
+
S == null && (S = k ? e.ONE : e.inv(R));
|
|
3897
|
+
const z = e.mul(T, S), P = e.mul(A, S), C = e.mul(R, S);
|
|
3898
|
+
if (k)
|
|
3899
3899
|
return { x: e.ZERO, y: e.ZERO };
|
|
3900
3900
|
if (!e.eql(C, e.ONE))
|
|
3901
3901
|
throw new Error("invZ was invalid");
|
|
3902
|
-
return { x: z, y:
|
|
3902
|
+
return { x: z, y: P };
|
|
3903
3903
|
}
|
|
3904
3904
|
isTorsionFree() {
|
|
3905
3905
|
const { h: S, isTorsionFree: T } = t;
|
|
@@ -3962,7 +3962,7 @@ function Oy(n) {
|
|
|
3962
3962
|
fromBytes(at) {
|
|
3963
3963
|
const wt = at.length, Et = at[0], xt = at.subarray(1);
|
|
3964
3964
|
if (wt === i && (Et === 2 || Et === 3)) {
|
|
3965
|
-
const vt =
|
|
3965
|
+
const vt = ki(xt);
|
|
3966
3966
|
if (!a(vt))
|
|
3967
3967
|
throw new Error("Point is not on curve");
|
|
3968
3968
|
const Bt = g(vt);
|
|
@@ -3983,7 +3983,7 @@ function Oy(n) {
|
|
|
3983
3983
|
function S(at) {
|
|
3984
3984
|
return I(at) ? u(-at) : at;
|
|
3985
3985
|
}
|
|
3986
|
-
const T = (at, wt, Et) =>
|
|
3986
|
+
const T = (at, wt, Et) => ki(at.slice(wt, Et));
|
|
3987
3987
|
class A {
|
|
3988
3988
|
constructor(wt, Et, xt) {
|
|
3989
3989
|
this.r = wt, this.s = Et, this.recovery = xt, this.assertValidity();
|
|
@@ -4071,14 +4071,14 @@ function Oy(n) {
|
|
|
4071
4071
|
return wt._setWindowSize(at), wt.multiply(BigInt(3)), wt;
|
|
4072
4072
|
}
|
|
4073
4073
|
};
|
|
4074
|
-
function
|
|
4074
|
+
function k(at, wt = !0) {
|
|
4075
4075
|
return l.fromPrivateKey(at).toRawBytes(wt);
|
|
4076
4076
|
}
|
|
4077
4077
|
function z(at) {
|
|
4078
4078
|
const wt = at instanceof Uint8Array, Et = typeof at == "string", xt = (wt || Et) && at.length;
|
|
4079
4079
|
return wt ? xt === i || xt === o : Et ? xt === 2 * i || xt === 2 * o : at instanceof l;
|
|
4080
4080
|
}
|
|
4081
|
-
function
|
|
4081
|
+
function P(at, wt, Et = !0) {
|
|
4082
4082
|
if (z(at))
|
|
4083
4083
|
throw new Error("first arg must be private key");
|
|
4084
4084
|
if (!z(wt))
|
|
@@ -4086,7 +4086,7 @@ function Oy(n) {
|
|
|
4086
4086
|
return l.fromHex(wt).multiply(f(at)).toRawBytes(Et);
|
|
4087
4087
|
}
|
|
4088
4088
|
const C = t.bits2int || function(at) {
|
|
4089
|
-
const wt =
|
|
4089
|
+
const wt = ki(at), Et = at.length * 8 - t.nBitLength;
|
|
4090
4090
|
return Et > 0 ? wt >> BigInt(Et) : wt;
|
|
4091
4091
|
}, N = t.bits2int_modN || function(at) {
|
|
4092
4092
|
return u(C(at));
|
|
@@ -4165,8 +4165,8 @@ function Oy(n) {
|
|
|
4165
4165
|
}
|
|
4166
4166
|
return {
|
|
4167
4167
|
CURVE: t,
|
|
4168
|
-
getPublicKey:
|
|
4169
|
-
getSharedSecret:
|
|
4168
|
+
getPublicKey: k,
|
|
4169
|
+
getSharedSecret: P,
|
|
4170
4170
|
sign: At,
|
|
4171
4171
|
verify: Rt,
|
|
4172
4172
|
ProjectivePoint: l,
|
|
@@ -4189,7 +4189,7 @@ function Cy(n, t) {
|
|
|
4189
4189
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
4190
4190
|
const Ww = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), N_ = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), Ny = BigInt(1), gu = BigInt(2), L_ = (n, t) => (n + t / gu) / t;
|
|
4191
4191
|
function Ly(n) {
|
|
4192
|
-
const t = Ww, e = BigInt(3), r = BigInt(6), i = BigInt(11), o = BigInt(22), a = BigInt(23), u = BigInt(44), _ = BigInt(88), l = n * n * n % t, f = l * l * n % t, g = De(f, e, t) * f % t, y = De(g, e, t) * f % t, B = De(y, gu, t) * l % t, I = De(B, i, t) * B % t, S = De(I, o, t) * I % t, T = De(S, u, t) * S % t, A = De(T, _, t) * T % t, R = De(A, u, t) * S % t,
|
|
4192
|
+
const t = Ww, e = BigInt(3), r = BigInt(6), i = BigInt(11), o = BigInt(22), a = BigInt(23), u = BigInt(44), _ = BigInt(88), l = n * n * n % t, f = l * l * n % t, g = De(f, e, t) * f % t, y = De(g, e, t) * f % t, B = De(y, gu, t) * l % t, I = De(B, i, t) * B % t, S = De(I, o, t) * I % t, T = De(S, u, t) * S % t, A = De(T, _, t) * T % t, R = De(A, u, t) * S % t, k = De(R, e, t) * f % t, z = De(k, a, t) * I % t, P = De(z, r, t) * l % t, C = De(P, gu, t);
|
|
4193
4193
|
if (!yu.eql(yu.sqr(C), n))
|
|
4194
4194
|
throw new Error("Cannot find square root");
|
|
4195
4195
|
return C;
|
|
@@ -4705,17 +4705,17 @@ function Ge(n) {
|
|
|
4705
4705
|
}
|
|
4706
4706
|
return !1;
|
|
4707
4707
|
}
|
|
4708
|
-
async function
|
|
4708
|
+
async function Pa(n, t) {
|
|
4709
4709
|
const e = await t;
|
|
4710
4710
|
return (e == null || e === "0x0000000000000000000000000000000000000000") && (_t(typeof n != "string", "unconfigured name", "UNCONFIGURED_NAME", { value: n }), V(!1, "invalid AddressLike value; did not resolve to a value address", "target", n)), Ut(e);
|
|
4711
4711
|
}
|
|
4712
4712
|
function ze(n, t) {
|
|
4713
4713
|
if (typeof n == "string")
|
|
4714
|
-
return n.match(/^0x[0-9a-f]{40}$/i) ? Ut(n) : (_t(t != null, "ENS resolution requires a provider", "UNSUPPORTED_OPERATION", { operation: "resolveName" }),
|
|
4714
|
+
return n.match(/^0x[0-9a-f]{40}$/i) ? Ut(n) : (_t(t != null, "ENS resolution requires a provider", "UNSUPPORTED_OPERATION", { operation: "resolveName" }), Pa(n, t.resolveName(n)));
|
|
4715
4715
|
if (Jw(n))
|
|
4716
|
-
return
|
|
4716
|
+
return Pa(n, n.getAddress());
|
|
4717
4717
|
if (n && typeof n.then == "function")
|
|
4718
|
-
return
|
|
4718
|
+
return Pa(n, n);
|
|
4719
4719
|
V(!1, "unsupported addressable value", "target", n);
|
|
4720
4720
|
}
|
|
4721
4721
|
const lr = {};
|
|
@@ -6577,7 +6577,7 @@ function xb(n) {
|
|
|
6577
6577
|
return n[t++] << 8 | n[t++];
|
|
6578
6578
|
}
|
|
6579
6579
|
let r = e(), i = 1, o = [0, 1];
|
|
6580
|
-
for (let
|
|
6580
|
+
for (let P = 1; P < r; P++)
|
|
6581
6581
|
o.push(i += e());
|
|
6582
6582
|
let a = e(), u = t;
|
|
6583
6583
|
t += a;
|
|
@@ -6587,26 +6587,26 @@ function xb(n) {
|
|
|
6587
6587
|
}
|
|
6588
6588
|
const g = 31, y = 2 ** g, B = y >>> 1, I = B >> 1, S = y - 1;
|
|
6589
6589
|
let T = 0;
|
|
6590
|
-
for (let
|
|
6591
|
-
let A = [], R = 0,
|
|
6590
|
+
for (let P = 0; P < g; P++) T = T << 1 | f();
|
|
6591
|
+
let A = [], R = 0, k = y;
|
|
6592
6592
|
for (; ; ) {
|
|
6593
|
-
let
|
|
6593
|
+
let P = Math.floor(((T - R + 1) * i - 1) / k), C = 0, N = r;
|
|
6594
6594
|
for (; N - C > 1; ) {
|
|
6595
6595
|
let Z = C + N >>> 1;
|
|
6596
|
-
|
|
6596
|
+
P < o[Z] ? N = Z : C = Z;
|
|
6597
6597
|
}
|
|
6598
6598
|
if (C == 0) break;
|
|
6599
6599
|
A.push(C);
|
|
6600
|
-
let D = R + Math.floor(
|
|
6600
|
+
let D = R + Math.floor(k * o[C] / i), Y = R + Math.floor(k * o[C + 1] / i) - 1;
|
|
6601
6601
|
for (; ((D ^ Y) & B) == 0; )
|
|
6602
6602
|
T = T << 1 & S | f(), D = D << 1 & S, Y = Y << 1 & S | 1;
|
|
6603
6603
|
for (; D & ~Y & I; )
|
|
6604
6604
|
T = T & B | T << 1 & S >>> 1 | f(), D = D << 1 ^ B, Y = (Y ^ B) << 1 | B | 1;
|
|
6605
|
-
R = D,
|
|
6605
|
+
R = D, k = 1 + Y - D;
|
|
6606
6606
|
}
|
|
6607
6607
|
let z = r - 4;
|
|
6608
|
-
return A.map((
|
|
6609
|
-
switch (
|
|
6608
|
+
return A.map((P) => {
|
|
6609
|
+
switch (P - z) {
|
|
6610
6610
|
case 3:
|
|
6611
6611
|
return z + 65792 + (n[u++] << 16 | n[u++] << 8 | n[u++]);
|
|
6612
6612
|
case 2:
|
|
@@ -6614,7 +6614,7 @@ function xb(n) {
|
|
|
6614
6614
|
case 1:
|
|
6615
6615
|
return z + n[u++];
|
|
6616
6616
|
default:
|
|
6617
|
-
return
|
|
6617
|
+
return P - 1;
|
|
6618
6618
|
}
|
|
6619
6619
|
});
|
|
6620
6620
|
}
|
|
@@ -6664,12 +6664,12 @@ function nd(n) {
|
|
|
6664
6664
|
for (; ; ) {
|
|
6665
6665
|
let e = n();
|
|
6666
6666
|
if (e == 0) break;
|
|
6667
|
-
t.push(
|
|
6667
|
+
t.push(kb(e, n));
|
|
6668
6668
|
}
|
|
6669
6669
|
for (; ; ) {
|
|
6670
6670
|
let e = n() - 1;
|
|
6671
6671
|
if (e < 0) break;
|
|
6672
|
-
t.push(
|
|
6672
|
+
t.push(Pb(e, n));
|
|
6673
6673
|
}
|
|
6674
6674
|
return t.flat();
|
|
6675
6675
|
}
|
|
@@ -6688,7 +6688,7 @@ function id(n, t, e) {
|
|
|
6688
6688
|
Sb(n, e).forEach((o, a) => r[a].push(o));
|
|
6689
6689
|
return r;
|
|
6690
6690
|
}
|
|
6691
|
-
function
|
|
6691
|
+
function kb(n, t) {
|
|
6692
6692
|
let e = 1 + t(), r = t(), i = Us(t);
|
|
6693
6693
|
return id(i.length, 1 + n, t).flatMap((a, u) => {
|
|
6694
6694
|
let [_, ...l] = a;
|
|
@@ -6698,7 +6698,7 @@ function Pb(n, t) {
|
|
|
6698
6698
|
});
|
|
6699
6699
|
});
|
|
6700
6700
|
}
|
|
6701
|
-
function
|
|
6701
|
+
function Pb(n, t) {
|
|
6702
6702
|
let e = 1 + t();
|
|
6703
6703
|
return id(e, 1 + n, t).map((i) => [i[0], i.slice(1)]);
|
|
6704
6704
|
}
|
|
@@ -6749,7 +6749,7 @@ function Tb(n, t) {
|
|
|
6749
6749
|
return r;
|
|
6750
6750
|
}
|
|
6751
6751
|
var Cb = "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";
|
|
6752
|
-
const Ms = 44032, So = 4352,
|
|
6752
|
+
const Ms = 44032, So = 4352, ko = 4449, Po = 4519, od = 19, ad = 21, us = 28, Fo = ad * us, Nb = od * Fo, Lb = Ms + Nb, Db = So + od, Ub = ko + ad, Mb = Po + us;
|
|
6753
6753
|
function Bs(n) {
|
|
6754
6754
|
return n >> 24 & 255;
|
|
6755
6755
|
}
|
|
@@ -6772,10 +6772,10 @@ function ud(n) {
|
|
|
6772
6772
|
return n >= Ms && n < Lb;
|
|
6773
6773
|
}
|
|
6774
6774
|
function Gb(n, t) {
|
|
6775
|
-
if (n >= So && n < Db && t >=
|
|
6776
|
-
return Ms + (n - So) * Fo + (t -
|
|
6777
|
-
if (ud(n) && t >
|
|
6778
|
-
return n + (t -
|
|
6775
|
+
if (n >= So && n < Db && t >= ko && t < Ub)
|
|
6776
|
+
return Ms + (n - So) * Fo + (t - ko) * us;
|
|
6777
|
+
if (ud(n) && t > Po && t < Mb && (n - Ms) % us == 0)
|
|
6778
|
+
return n + (t - Po);
|
|
6779
6779
|
{
|
|
6780
6780
|
let e = yo.get(n);
|
|
6781
6781
|
return e && (e = e.get(t), e) ? e : -1;
|
|
@@ -6794,7 +6794,7 @@ function _d(n) {
|
|
|
6794
6794
|
t.push(o);
|
|
6795
6795
|
else if (ud(o)) {
|
|
6796
6796
|
let a = o - Ms, u = a / Fo | 0, _ = a % Fo / us | 0, l = a % us;
|
|
6797
|
-
i(So + u), i(
|
|
6797
|
+
i(So + u), i(ko + _), l > 0 && i(Po + l);
|
|
6798
6798
|
} else {
|
|
6799
6799
|
let a = mu.get(o);
|
|
6800
6800
|
a ? e.push(...a) : i(o);
|
|
@@ -7239,7 +7239,7 @@ function uo(n) {
|
|
|
7239
7239
|
}
|
|
7240
7240
|
} : { base: n };
|
|
7241
7241
|
}
|
|
7242
|
-
class
|
|
7242
|
+
class Pe {
|
|
7243
7243
|
/**
|
|
7244
7244
|
* The primary type for the structured [[types]].
|
|
7245
7245
|
*
|
|
@@ -7394,19 +7394,19 @@ class ke {
|
|
|
7394
7394
|
* Create a new **TypedDataEncoder** for %%types%%.
|
|
7395
7395
|
*/
|
|
7396
7396
|
static from(t) {
|
|
7397
|
-
return new
|
|
7397
|
+
return new Pe(t);
|
|
7398
7398
|
}
|
|
7399
7399
|
/**
|
|
7400
7400
|
* Return the primary type for %%types%%.
|
|
7401
7401
|
*/
|
|
7402
7402
|
static getPrimaryType(t) {
|
|
7403
|
-
return
|
|
7403
|
+
return Pe.from(t).primaryType;
|
|
7404
7404
|
}
|
|
7405
7405
|
/**
|
|
7406
7406
|
* Return the hashed struct for %%value%% using %%types%% and %%name%%.
|
|
7407
7407
|
*/
|
|
7408
7408
|
static hashStruct(t, e, r) {
|
|
7409
|
-
return
|
|
7409
|
+
return Pe.from(e).hashStruct(t, r);
|
|
7410
7410
|
}
|
|
7411
7411
|
/**
|
|
7412
7412
|
* Return the domain hash for %%domain%%.
|
|
@@ -7419,7 +7419,7 @@ class ke {
|
|
|
7419
7419
|
const i = ef[r];
|
|
7420
7420
|
V(i, `invalid typed-data domain key: ${JSON.stringify(r)}`, "domain", t), e.push({ name: r, type: i });
|
|
7421
7421
|
}
|
|
7422
|
-
return e.sort((r, i) => Ta.indexOf(r.name) - Ta.indexOf(i.name)),
|
|
7422
|
+
return e.sort((r, i) => Ta.indexOf(r.name) - Ta.indexOf(i.name)), Pe.hashStruct("EIP712Domain", { EIP712Domain: e }, t);
|
|
7423
7423
|
}
|
|
7424
7424
|
/**
|
|
7425
7425
|
* Return the fully encoded [[link-eip-712]] %%value%% for %%types%% with %%domain%%.
|
|
@@ -7427,15 +7427,15 @@ class ke {
|
|
|
7427
7427
|
static encode(t, e, r) {
|
|
7428
7428
|
return oe([
|
|
7429
7429
|
"0x1901",
|
|
7430
|
-
|
|
7431
|
-
|
|
7430
|
+
Pe.hashDomain(t),
|
|
7431
|
+
Pe.from(e).hash(r)
|
|
7432
7432
|
]);
|
|
7433
7433
|
}
|
|
7434
7434
|
/**
|
|
7435
7435
|
* Return the hash of the fully encoded [[link-eip-712]] %%value%% for %%types%% with %%domain%%.
|
|
7436
7436
|
*/
|
|
7437
7437
|
static hash(t, e, r) {
|
|
7438
|
-
return le(
|
|
7438
|
+
return le(Pe.encode(t, e, r));
|
|
7439
7439
|
}
|
|
7440
7440
|
// Replaces all address types with ENS names with their looked up address
|
|
7441
7441
|
/**
|
|
@@ -7448,7 +7448,7 @@ class ke {
|
|
|
7448
7448
|
t[u] == null && delete t[u];
|
|
7449
7449
|
const o = {};
|
|
7450
7450
|
t.verifyingContract && !Xt(t.verifyingContract, 20) && (o[t.verifyingContract] = "0x");
|
|
7451
|
-
const a =
|
|
7451
|
+
const a = Pe.from(e);
|
|
7452
7452
|
a.visit(r, (u, _) => (u === "address" && !Xt(_, 20) && (o[_] = "0x"), _));
|
|
7453
7453
|
for (const u in o)
|
|
7454
7454
|
o[u] = await i(u);
|
|
@@ -7459,13 +7459,13 @@ class ke {
|
|
|
7459
7459
|
* the JSON-RPC [[link-eip-712]] method.
|
|
7460
7460
|
*/
|
|
7461
7461
|
static getPayload(t, e, r) {
|
|
7462
|
-
|
|
7462
|
+
Pe.hashDomain(t);
|
|
7463
7463
|
const i = {}, o = [];
|
|
7464
7464
|
Ta.forEach((_) => {
|
|
7465
7465
|
const l = t[_];
|
|
7466
7466
|
l != null && (i[_] = l1[_](l), o.push({ name: _, type: ef[_] }));
|
|
7467
7467
|
});
|
|
7468
|
-
const a =
|
|
7468
|
+
const a = Pe.from(e);
|
|
7469
7469
|
e = a.types;
|
|
7470
7470
|
const u = Object.assign({}, e);
|
|
7471
7471
|
return V(u.EIP712Domain == null, "types must not contain EIP712Domain type", "types.EIP712Domain", e), u.EIP712Domain = o, a.encode(r), {
|
|
@@ -7491,20 +7491,20 @@ class ke {
|
|
|
7491
7491
|
}
|
|
7492
7492
|
}
|
|
7493
7493
|
function Rd(n, t, e, r) {
|
|
7494
|
-
return td(
|
|
7494
|
+
return td(Pe.hash(n, t, e), r);
|
|
7495
7495
|
}
|
|
7496
7496
|
function Be(n) {
|
|
7497
7497
|
const t = /* @__PURE__ */ new Set();
|
|
7498
7498
|
return n.forEach((e) => t.add(e)), Object.freeze(t);
|
|
7499
7499
|
}
|
|
7500
|
-
const h1 = "external public payable override", p1 = Be(h1.split(" ")), zd = "constant external internal payable private public pure view override", w1 = Be(zd.split(" ")), Bd = "constructor error event fallback function receive struct", Sd = Be(Bd.split(" ")),
|
|
7500
|
+
const h1 = "external public payable override", p1 = Be(h1.split(" ")), zd = "constant external internal payable private public pure view override", w1 = Be(zd.split(" ")), Bd = "constructor error event fallback function receive struct", Sd = Be(Bd.split(" ")), kd = "calldata memory storage payable indexed", d1 = Be(kd.split(" ")), g1 = "tuple returns", y1 = [Bd, kd, g1, zd].join(" "), b1 = Be(y1.split(" ")), m1 = {
|
|
7501
7501
|
"(": "OPEN_PAREN",
|
|
7502
7502
|
")": "CLOSE_PAREN",
|
|
7503
7503
|
"[": "OPEN_BRACKET",
|
|
7504
7504
|
"]": "CLOSE_BRACKET",
|
|
7505
7505
|
",": "COMMA",
|
|
7506
7506
|
"@": "AT"
|
|
7507
|
-
}, A1 = new RegExp("^(\\s*)"), E1 = new RegExp("^([0-9]+)"), v1 = new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),
|
|
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
7508
|
class Ve {
|
|
7509
7509
|
#t;
|
|
7510
7510
|
#e;
|
|
@@ -7944,7 +7944,7 @@ class Zt {
|
|
|
7944
7944
|
return new Zt(re, I, u, _, y, l, g, f);
|
|
7945
7945
|
}
|
|
7946
7946
|
const r = t.name;
|
|
7947
|
-
V(!r || typeof r == "string" && r.match(
|
|
7947
|
+
V(!r || typeof r == "string" && r.match(Pd), "invalid name", "obj.name", r);
|
|
7948
7948
|
let i = t.indexed;
|
|
7949
7949
|
i != null && (V(e, "parameter cannot be indexed", "obj.indexed", t.indexed), i = !!i);
|
|
7950
7950
|
let o = t.type, a = o.match(x1);
|
|
@@ -8015,7 +8015,7 @@ class Ti {
|
|
|
8015
8015
|
case "function":
|
|
8016
8016
|
return ur.from(t);
|
|
8017
8017
|
case "struct":
|
|
8018
|
-
return
|
|
8018
|
+
return Pi.from(t);
|
|
8019
8019
|
}
|
|
8020
8020
|
else if (typeof t == "object") {
|
|
8021
8021
|
switch (t.type) {
|
|
@@ -8031,7 +8031,7 @@ class Ti {
|
|
|
8031
8031
|
case "function":
|
|
8032
8032
|
return ur.from(t);
|
|
8033
8033
|
case "struct":
|
|
8034
|
-
return
|
|
8034
|
+
return Pi.from(t);
|
|
8035
8035
|
}
|
|
8036
8036
|
_t(!1, `unsupported type: ${t.type}`, "UNSUPPORTED_OPERATION", {
|
|
8037
8037
|
operation: "Fragment.from"
|
|
@@ -8067,7 +8067,7 @@ class Ti {
|
|
|
8067
8067
|
* Returns true if %%value%% is a [[StructFragment]].
|
|
8068
8068
|
*/
|
|
8069
8069
|
static isStruct(t) {
|
|
8070
|
-
return
|
|
8070
|
+
return Pi.isFragment(t);
|
|
8071
8071
|
}
|
|
8072
8072
|
}
|
|
8073
8073
|
class Jo extends Ti {
|
|
@@ -8079,7 +8079,7 @@ class Jo extends Ti {
|
|
|
8079
8079
|
* @private
|
|
8080
8080
|
*/
|
|
8081
8081
|
constructor(t, e, r, i) {
|
|
8082
|
-
super(t, e, i), V(typeof r == "string" && r.match(
|
|
8082
|
+
super(t, e, i), V(typeof r == "string" && r.match(Pd), "invalid identifier", "name", r), i = Object.freeze(i.slice()), zt(this, { name: r });
|
|
8083
8083
|
}
|
|
8084
8084
|
}
|
|
8085
8085
|
function Gs(n, t) {
|
|
@@ -8403,7 +8403,7 @@ class ur extends Jo {
|
|
|
8403
8403
|
return t && t[Oe] === lf;
|
|
8404
8404
|
}
|
|
8405
8405
|
}
|
|
8406
|
-
class
|
|
8406
|
+
class Pi extends Jo {
|
|
8407
8407
|
/**
|
|
8408
8408
|
* @private
|
|
8409
8409
|
*/
|
|
@@ -8422,15 +8422,15 @@ class ki extends Jo {
|
|
|
8422
8422
|
static from(t) {
|
|
8423
8423
|
if (typeof t == "string")
|
|
8424
8424
|
try {
|
|
8425
|
-
return
|
|
8425
|
+
return Pi.from(hi(t));
|
|
8426
8426
|
} catch {
|
|
8427
8427
|
V(!1, "invalid struct fragment", "obj", t);
|
|
8428
8428
|
}
|
|
8429
8429
|
else if (t instanceof Ve) {
|
|
8430
8430
|
const e = Wo("struct", t), r = $n(t);
|
|
8431
|
-
return Oi(t), new
|
|
8431
|
+
return Oi(t), new Pi(re, e, r);
|
|
8432
8432
|
}
|
|
8433
|
-
return new
|
|
8433
|
+
return new Pi(re, t.name, t.inputs ? t.inputs.map(Zt.from) : []);
|
|
8434
8434
|
}
|
|
8435
8435
|
// @TODO: fix this return type
|
|
8436
8436
|
/**
|
|
@@ -8617,7 +8617,7 @@ class S1 {
|
|
|
8617
8617
|
});
|
|
8618
8618
|
}
|
|
8619
8619
|
}
|
|
8620
|
-
class
|
|
8620
|
+
class k1 {
|
|
8621
8621
|
/**
|
|
8622
8622
|
* The matching fragment from the transaction ``data``.
|
|
8623
8623
|
*/
|
|
@@ -8657,7 +8657,7 @@ class P1 {
|
|
|
8657
8657
|
});
|
|
8658
8658
|
}
|
|
8659
8659
|
}
|
|
8660
|
-
class
|
|
8660
|
+
class P1 {
|
|
8661
8661
|
/**
|
|
8662
8662
|
* The matching fragment.
|
|
8663
8663
|
*/
|
|
@@ -9365,7 +9365,7 @@ class Ei {
|
|
|
9365
9365
|
if (!i)
|
|
9366
9366
|
return null;
|
|
9367
9367
|
const o = this.#n.decode(i.inputs, e.slice(4));
|
|
9368
|
-
return new
|
|
9368
|
+
return new k1(i, i.selector, o, r);
|
|
9369
9369
|
}
|
|
9370
9370
|
parseCallResult(t) {
|
|
9371
9371
|
throw new Error("@TODO");
|
|
@@ -9391,7 +9391,7 @@ class Ei {
|
|
|
9391
9391
|
if (!r)
|
|
9392
9392
|
return null;
|
|
9393
9393
|
const i = this.#n.decode(r.inputs, ne(e, 4));
|
|
9394
|
-
return new
|
|
9394
|
+
return new P1(r, r.selector, i);
|
|
9395
9395
|
}
|
|
9396
9396
|
/**
|
|
9397
9397
|
* Creates a new [[Interface]] from the ABI %%value%%.
|
|
@@ -10324,10 +10324,10 @@ class $s {
|
|
|
10324
10324
|
const R = await this.provider.getTransactionReceipt(A.hash);
|
|
10325
10325
|
if (R == null || y - R.blockNumber + 1 < r)
|
|
10326
10326
|
return;
|
|
10327
|
-
let
|
|
10328
|
-
A.data === this.data && A.to === this.to && A.value === this.value ?
|
|
10329
|
-
cancelled:
|
|
10330
|
-
reason:
|
|
10327
|
+
let k = "replaced";
|
|
10328
|
+
A.data === this.data && A.to === this.to && A.value === this.value ? k = "repriced" : A.data === "0x" && A.from === A.to && A.value === Td && (k = "cancelled"), _t(!1, "transaction was replaced", "TRANSACTION_REPLACED", {
|
|
10329
|
+
cancelled: k === "replaced" || k === "cancelled",
|
|
10330
|
+
reason: k,
|
|
10331
10331
|
replacement: A.replaceableTransaction(o),
|
|
10332
10332
|
hash: A.hash,
|
|
10333
10333
|
receipt: R
|
|
@@ -10878,8 +10878,8 @@ async function mf(n, t, e) {
|
|
|
10878
10878
|
} catch {
|
|
10879
10879
|
}
|
|
10880
10880
|
if (A) {
|
|
10881
|
-
const R = A,
|
|
10882
|
-
zu(n, e,
|
|
10881
|
+
const R = A, k = i ? n.interface.decodeEventLog(i, T.data, T.topics) : [];
|
|
10882
|
+
zu(n, e, k, (z) => new C1(n, z, e, R, T));
|
|
10883
10883
|
} else
|
|
10884
10884
|
zu(n, e, [], (R) => new Ud(n, R, e, T));
|
|
10885
10885
|
};
|
|
@@ -13157,14 +13157,14 @@ class lm {
|
|
|
13157
13157
|
}
|
|
13158
13158
|
function hm(n, t) {
|
|
13159
13159
|
try {
|
|
13160
|
-
const e =
|
|
13160
|
+
const e = ku(n, t);
|
|
13161
13161
|
if (e)
|
|
13162
13162
|
return zo(e);
|
|
13163
13163
|
} catch {
|
|
13164
13164
|
}
|
|
13165
13165
|
return null;
|
|
13166
13166
|
}
|
|
13167
|
-
function
|
|
13167
|
+
function ku(n, t) {
|
|
13168
13168
|
if (n === "0x")
|
|
13169
13169
|
return null;
|
|
13170
13170
|
try {
|
|
@@ -13231,7 +13231,7 @@ function gm(n) {
|
|
|
13231
13231
|
});
|
|
13232
13232
|
}
|
|
13233
13233
|
try {
|
|
13234
|
-
const r =
|
|
13234
|
+
const r = ku(n, 64);
|
|
13235
13235
|
if (r == null)
|
|
13236
13236
|
throw new Error("abort");
|
|
13237
13237
|
t.calldata = r;
|
|
@@ -13244,7 +13244,7 @@ function gm(n) {
|
|
|
13244
13244
|
reason: "corrupt OffchainLookup callbaackSelector"
|
|
13245
13245
|
}), t.selector = ne(n, 96, 100);
|
|
13246
13246
|
try {
|
|
13247
|
-
const r =
|
|
13247
|
+
const r = ku(n, 128);
|
|
13248
13248
|
if (r == null)
|
|
13249
13249
|
throw new Error("abort");
|
|
13250
13250
|
t.extraData = r;
|
|
@@ -13476,7 +13476,7 @@ function vm(n) {
|
|
|
13476
13476
|
function Hi(n) {
|
|
13477
13477
|
return n && n.toLowerCase();
|
|
13478
13478
|
}
|
|
13479
|
-
function
|
|
13479
|
+
function kf(n) {
|
|
13480
13480
|
return n && typeof n.pollingInterval == "number";
|
|
13481
13481
|
}
|
|
13482
13482
|
const $d = {
|
|
@@ -13577,13 +13577,13 @@ class ja extends ym {
|
|
|
13577
13577
|
]);
|
|
13578
13578
|
}
|
|
13579
13579
|
async signTypedData(t, e, r) {
|
|
13580
|
-
const i = mo(r), o = await
|
|
13580
|
+
const i = mo(r), o = await Pe.resolveNames(t, e, i, async (a) => {
|
|
13581
13581
|
const u = await ze(a);
|
|
13582
13582
|
return V(u != null, "TypedData does not support null address", "value", a), u;
|
|
13583
13583
|
});
|
|
13584
13584
|
return await this.provider.send("eth_signTypedData_v4", [
|
|
13585
13585
|
this.address.toLowerCase(),
|
|
13586
|
-
JSON.stringify(
|
|
13586
|
+
JSON.stringify(Pe.getPayload(o.domain, e, o.value))
|
|
13587
13587
|
]);
|
|
13588
13588
|
}
|
|
13589
13589
|
async unlock(t) {
|
|
@@ -13920,7 +13920,7 @@ class xm extends lm {
|
|
|
13920
13920
|
});
|
|
13921
13921
|
}
|
|
13922
13922
|
if (r === "eth_call" || r === "eth_estimateGas") {
|
|
13923
|
-
const u =
|
|
13923
|
+
const u = Pu(i), _ = Ci.getBuiltinCallException(r === "eth_call" ? "call" : "estimateGas", t.params[0], u ? u.data : null);
|
|
13924
13924
|
return _.info = { error: i, payload: t }, _;
|
|
13925
13925
|
}
|
|
13926
13926
|
const o = JSON.stringify(zm(i));
|
|
@@ -14036,7 +14036,7 @@ class Yd extends xm {
|
|
|
14036
14036
|
}
|
|
14037
14037
|
_getSubscriber(t) {
|
|
14038
14038
|
const e = super._getSubscriber(t);
|
|
14039
|
-
return
|
|
14039
|
+
return kf(e) && (e.pollingInterval = this.#t), e;
|
|
14040
14040
|
}
|
|
14041
14041
|
/**
|
|
14042
14042
|
* The polling interval (default: 4000 ms)
|
|
@@ -14048,7 +14048,7 @@ class Yd extends xm {
|
|
|
14048
14048
|
if (!Number.isInteger(t) || t < 0)
|
|
14049
14049
|
throw new Error("invalid interval");
|
|
14050
14050
|
this.#t = t, this._forEachSubscriber((e) => {
|
|
14051
|
-
|
|
14051
|
+
kf(e) && (e.pollingInterval = this.#t);
|
|
14052
14052
|
});
|
|
14053
14053
|
}
|
|
14054
14054
|
}
|
|
@@ -14072,14 +14072,14 @@ class Rm extends Yd {
|
|
|
14072
14072
|
return Array.isArray(i) || (i = [i]), i;
|
|
14073
14073
|
}
|
|
14074
14074
|
}
|
|
14075
|
-
function
|
|
14075
|
+
function Pu(n) {
|
|
14076
14076
|
if (n == null)
|
|
14077
14077
|
return null;
|
|
14078
14078
|
if (typeof n.message == "string" && n.message.match(/revert/i) && Xt(n.data))
|
|
14079
14079
|
return { message: n.message, data: n.data };
|
|
14080
14080
|
if (typeof n == "object") {
|
|
14081
14081
|
for (const t in n) {
|
|
14082
|
-
const e =
|
|
14082
|
+
const e = Pu(n[t]);
|
|
14083
14083
|
if (e)
|
|
14084
14084
|
return e;
|
|
14085
14085
|
}
|
|
@@ -14087,7 +14087,7 @@ function ku(n) {
|
|
|
14087
14087
|
}
|
|
14088
14088
|
if (typeof n == "string")
|
|
14089
14089
|
try {
|
|
14090
|
-
return
|
|
14090
|
+
return Pu(JSON.parse(n));
|
|
14091
14091
|
} catch {
|
|
14092
14092
|
}
|
|
14093
14093
|
return null;
|
|
@@ -14291,12 +14291,12 @@ function Sm(n) {
|
|
|
14291
14291
|
}
|
|
14292
14292
|
}
|
|
14293
14293
|
var Wn = [], Xi = !1, Bi, Ao = -1;
|
|
14294
|
-
function
|
|
14294
|
+
function km() {
|
|
14295
14295
|
!Xi || !Bi || (Xi = !1, Bi.length ? Wn = Bi.concat(Wn) : Ao = -1, Wn.length && eg());
|
|
14296
14296
|
}
|
|
14297
14297
|
function eg() {
|
|
14298
14298
|
if (!Xi) {
|
|
14299
|
-
var n = tg(
|
|
14299
|
+
var n = tg(km);
|
|
14300
14300
|
Xi = !0;
|
|
14301
14301
|
for (var t = Wn.length; t; ) {
|
|
14302
14302
|
for (Bi = Wn, Wn = []; ++Ao < t; )
|
|
@@ -14351,25 +14351,25 @@ _e.chdir = function(n) {
|
|
|
14351
14351
|
_e.umask = function() {
|
|
14352
14352
|
return 0;
|
|
14353
14353
|
};
|
|
14354
|
-
var
|
|
14355
|
-
const Ct = /* @__PURE__ */ Bm(
|
|
14356
|
-
var ho = { exports: {} },
|
|
14354
|
+
var Pm = Xd.exports;
|
|
14355
|
+
const Ct = /* @__PURE__ */ Bm(Pm);
|
|
14356
|
+
var ho = { exports: {} }, Pf;
|
|
14357
14357
|
function ng() {
|
|
14358
|
-
if (
|
|
14359
|
-
|
|
14360
|
-
var n = typeof Reflect == "object" ? Reflect : null, t = n && typeof n.apply == "function" ? n.apply : function(
|
|
14361
|
-
return Function.prototype.apply.call(
|
|
14358
|
+
if (Pf) return ho.exports;
|
|
14359
|
+
Pf = 1;
|
|
14360
|
+
var n = typeof Reflect == "object" ? Reflect : null, t = n && typeof n.apply == "function" ? n.apply : function(P, C, N) {
|
|
14361
|
+
return Function.prototype.apply.call(P, C, N);
|
|
14362
14362
|
}, e;
|
|
14363
|
-
n && typeof n.ownKeys == "function" ? e = n.ownKeys : Object.getOwnPropertySymbols ? e = function(
|
|
14364
|
-
return Object.getOwnPropertyNames(
|
|
14365
|
-
} : e = function(
|
|
14366
|
-
return Object.getOwnPropertyNames(
|
|
14363
|
+
n && typeof n.ownKeys == "function" ? e = n.ownKeys : Object.getOwnPropertySymbols ? e = function(P) {
|
|
14364
|
+
return Object.getOwnPropertyNames(P).concat(Object.getOwnPropertySymbols(P));
|
|
14365
|
+
} : e = function(P) {
|
|
14366
|
+
return Object.getOwnPropertyNames(P);
|
|
14367
14367
|
};
|
|
14368
14368
|
function r(z) {
|
|
14369
14369
|
console && console.warn && console.warn(z);
|
|
14370
14370
|
}
|
|
14371
|
-
var i = Number.isNaN || function(
|
|
14372
|
-
return
|
|
14371
|
+
var i = Number.isNaN || function(P) {
|
|
14372
|
+
return P !== P;
|
|
14373
14373
|
};
|
|
14374
14374
|
function o() {
|
|
14375
14375
|
o.init.call(this);
|
|
@@ -14392,19 +14392,19 @@ function ng() {
|
|
|
14392
14392
|
}
|
|
14393
14393
|
}), o.init = function() {
|
|
14394
14394
|
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
14395
|
-
}, o.prototype.setMaxListeners = function(
|
|
14396
|
-
if (typeof
|
|
14397
|
-
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' +
|
|
14398
|
-
return this._maxListeners =
|
|
14395
|
+
}, o.prototype.setMaxListeners = function(P) {
|
|
14396
|
+
if (typeof P != "number" || P < 0 || i(P))
|
|
14397
|
+
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + P + ".");
|
|
14398
|
+
return this._maxListeners = P, this;
|
|
14399
14399
|
};
|
|
14400
14400
|
function _(z) {
|
|
14401
14401
|
return z._maxListeners === void 0 ? o.defaultMaxListeners : z._maxListeners;
|
|
14402
14402
|
}
|
|
14403
14403
|
o.prototype.getMaxListeners = function() {
|
|
14404
14404
|
return _(this);
|
|
14405
|
-
}, o.prototype.emit = function(
|
|
14405
|
+
}, o.prototype.emit = function(P) {
|
|
14406
14406
|
for (var C = [], N = 1; N < arguments.length; N++) C.push(arguments[N]);
|
|
14407
|
-
var D =
|
|
14407
|
+
var D = P === "error", Y = this._events;
|
|
14408
14408
|
if (Y !== void 0)
|
|
14409
14409
|
D = D && Y.error === void 0;
|
|
14410
14410
|
else if (!D)
|
|
@@ -14416,7 +14416,7 @@ function ng() {
|
|
|
14416
14416
|
var ft = new Error("Unhandled error." + (Z ? " (" + Z.message + ")" : ""));
|
|
14417
14417
|
throw ft.context = Z, ft;
|
|
14418
14418
|
}
|
|
14419
|
-
var L = Y[
|
|
14419
|
+
var L = Y[P];
|
|
14420
14420
|
if (L === void 0)
|
|
14421
14421
|
return !1;
|
|
14422
14422
|
if (typeof L == "function")
|
|
@@ -14426,46 +14426,46 @@ function ng() {
|
|
|
14426
14426
|
t(Rt[N], this, C);
|
|
14427
14427
|
return !0;
|
|
14428
14428
|
};
|
|
14429
|
-
function l(z,
|
|
14429
|
+
function l(z, P, C, N) {
|
|
14430
14430
|
var D, Y, Z;
|
|
14431
14431
|
if (u(C), Y = z._events, Y === void 0 ? (Y = z._events = /* @__PURE__ */ Object.create(null), z._eventsCount = 0) : (Y.newListener !== void 0 && (z.emit(
|
|
14432
14432
|
"newListener",
|
|
14433
|
-
|
|
14433
|
+
P,
|
|
14434
14434
|
C.listener ? C.listener : C
|
|
14435
|
-
), Y = z._events), Z = Y[
|
|
14436
|
-
Z = Y[
|
|
14437
|
-
else if (typeof Z == "function" ? Z = Y[
|
|
14435
|
+
), Y = z._events), Z = Y[P]), Z === void 0)
|
|
14436
|
+
Z = Y[P] = C, ++z._eventsCount;
|
|
14437
|
+
else if (typeof Z == "function" ? Z = Y[P] = N ? [C, Z] : [Z, C] : N ? Z.unshift(C) : Z.push(C), D = _(z), D > 0 && Z.length > D && !Z.warned) {
|
|
14438
14438
|
Z.warned = !0;
|
|
14439
|
-
var ft = new Error("Possible EventEmitter memory leak detected. " + Z.length + " " + String(
|
|
14440
|
-
ft.name = "MaxListenersExceededWarning", ft.emitter = z, ft.type =
|
|
14439
|
+
var ft = new Error("Possible EventEmitter memory leak detected. " + Z.length + " " + String(P) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
14440
|
+
ft.name = "MaxListenersExceededWarning", ft.emitter = z, ft.type = P, ft.count = Z.length, r(ft);
|
|
14441
14441
|
}
|
|
14442
14442
|
return z;
|
|
14443
14443
|
}
|
|
14444
|
-
o.prototype.addListener = function(
|
|
14445
|
-
return l(this,
|
|
14446
|
-
}, o.prototype.on = o.prototype.addListener, o.prototype.prependListener = function(
|
|
14447
|
-
return l(this,
|
|
14444
|
+
o.prototype.addListener = function(P, C) {
|
|
14445
|
+
return l(this, P, C, !1);
|
|
14446
|
+
}, o.prototype.on = o.prototype.addListener, o.prototype.prependListener = function(P, C) {
|
|
14447
|
+
return l(this, P, C, !0);
|
|
14448
14448
|
};
|
|
14449
14449
|
function f() {
|
|
14450
14450
|
if (!this.fired)
|
|
14451
14451
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
14452
14452
|
}
|
|
14453
|
-
function g(z,
|
|
14454
|
-
var N = { fired: !1, wrapFn: void 0, target: z, type:
|
|
14453
|
+
function g(z, P, C) {
|
|
14454
|
+
var N = { fired: !1, wrapFn: void 0, target: z, type: P, listener: C }, D = f.bind(N);
|
|
14455
14455
|
return D.listener = C, N.wrapFn = D, D;
|
|
14456
14456
|
}
|
|
14457
|
-
o.prototype.once = function(
|
|
14458
|
-
return u(C), this.on(
|
|
14459
|
-
}, o.prototype.prependOnceListener = function(
|
|
14460
|
-
return u(C), this.prependListener(
|
|
14461
|
-
}, o.prototype.removeListener = function(
|
|
14457
|
+
o.prototype.once = function(P, C) {
|
|
14458
|
+
return u(C), this.on(P, g(this, P, C)), this;
|
|
14459
|
+
}, o.prototype.prependOnceListener = function(P, C) {
|
|
14460
|
+
return u(C), this.prependListener(P, g(this, P, C)), this;
|
|
14461
|
+
}, o.prototype.removeListener = function(P, C) {
|
|
14462
14462
|
var N, D, Y, Z, ft;
|
|
14463
14463
|
if (u(C), D = this._events, D === void 0)
|
|
14464
14464
|
return this;
|
|
14465
|
-
if (N = D[
|
|
14465
|
+
if (N = D[P], N === void 0)
|
|
14466
14466
|
return this;
|
|
14467
14467
|
if (N === C || N.listener === C)
|
|
14468
|
-
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete D[
|
|
14468
|
+
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete D[P], D.removeListener && this.emit("removeListener", P, N.listener || C));
|
|
14469
14469
|
else if (typeof N != "function") {
|
|
14470
14470
|
for (Y = -1, Z = N.length - 1; Z >= 0; Z--)
|
|
14471
14471
|
if (N[Z] === C || N[Z].listener === C) {
|
|
@@ -14474,46 +14474,46 @@ function ng() {
|
|
|
14474
14474
|
}
|
|
14475
14475
|
if (Y < 0)
|
|
14476
14476
|
return this;
|
|
14477
|
-
Y === 0 ? N.shift() : S(N, Y), N.length === 1 && (D[
|
|
14477
|
+
Y === 0 ? N.shift() : S(N, Y), N.length === 1 && (D[P] = N[0]), D.removeListener !== void 0 && this.emit("removeListener", P, ft || C);
|
|
14478
14478
|
}
|
|
14479
14479
|
return this;
|
|
14480
|
-
}, o.prototype.off = o.prototype.removeListener, o.prototype.removeAllListeners = function(
|
|
14480
|
+
}, o.prototype.off = o.prototype.removeListener, o.prototype.removeAllListeners = function(P) {
|
|
14481
14481
|
var C, N, D;
|
|
14482
14482
|
if (N = this._events, N === void 0)
|
|
14483
14483
|
return this;
|
|
14484
14484
|
if (N.removeListener === void 0)
|
|
14485
|
-
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : N[
|
|
14485
|
+
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : N[P] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete N[P]), this;
|
|
14486
14486
|
if (arguments.length === 0) {
|
|
14487
14487
|
var Y = Object.keys(N), Z;
|
|
14488
14488
|
for (D = 0; D < Y.length; ++D)
|
|
14489
14489
|
Z = Y[D], Z !== "removeListener" && this.removeAllListeners(Z);
|
|
14490
14490
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
14491
14491
|
}
|
|
14492
|
-
if (C = N[
|
|
14493
|
-
this.removeListener(
|
|
14492
|
+
if (C = N[P], typeof C == "function")
|
|
14493
|
+
this.removeListener(P, C);
|
|
14494
14494
|
else if (C !== void 0)
|
|
14495
14495
|
for (D = C.length - 1; D >= 0; D--)
|
|
14496
|
-
this.removeListener(
|
|
14496
|
+
this.removeListener(P, C[D]);
|
|
14497
14497
|
return this;
|
|
14498
14498
|
};
|
|
14499
|
-
function y(z,
|
|
14499
|
+
function y(z, P, C) {
|
|
14500
14500
|
var N = z._events;
|
|
14501
14501
|
if (N === void 0)
|
|
14502
14502
|
return [];
|
|
14503
|
-
var D = N[
|
|
14503
|
+
var D = N[P];
|
|
14504
14504
|
return D === void 0 ? [] : typeof D == "function" ? C ? [D.listener || D] : [D] : C ? T(D) : I(D, D.length);
|
|
14505
14505
|
}
|
|
14506
|
-
o.prototype.listeners = function(
|
|
14507
|
-
return y(this,
|
|
14508
|
-
}, o.prototype.rawListeners = function(
|
|
14509
|
-
return y(this,
|
|
14510
|
-
}, o.listenerCount = function(z,
|
|
14511
|
-
return typeof z.listenerCount == "function" ? z.listenerCount(
|
|
14506
|
+
o.prototype.listeners = function(P) {
|
|
14507
|
+
return y(this, P, !0);
|
|
14508
|
+
}, o.prototype.rawListeners = function(P) {
|
|
14509
|
+
return y(this, P, !1);
|
|
14510
|
+
}, o.listenerCount = function(z, P) {
|
|
14511
|
+
return typeof z.listenerCount == "function" ? z.listenerCount(P) : B.call(z, P);
|
|
14512
14512
|
}, o.prototype.listenerCount = B;
|
|
14513
14513
|
function B(z) {
|
|
14514
|
-
var
|
|
14515
|
-
if (
|
|
14516
|
-
var C =
|
|
14514
|
+
var P = this._events;
|
|
14515
|
+
if (P !== void 0) {
|
|
14516
|
+
var C = P[z];
|
|
14517
14517
|
if (typeof C == "function")
|
|
14518
14518
|
return 1;
|
|
14519
14519
|
if (C !== void 0)
|
|
@@ -14524,41 +14524,41 @@ function ng() {
|
|
|
14524
14524
|
o.prototype.eventNames = function() {
|
|
14525
14525
|
return this._eventsCount > 0 ? e(this._events) : [];
|
|
14526
14526
|
};
|
|
14527
|
-
function I(z,
|
|
14528
|
-
for (var C = new Array(
|
|
14527
|
+
function I(z, P) {
|
|
14528
|
+
for (var C = new Array(P), N = 0; N < P; ++N)
|
|
14529
14529
|
C[N] = z[N];
|
|
14530
14530
|
return C;
|
|
14531
14531
|
}
|
|
14532
|
-
function S(z,
|
|
14533
|
-
for (;
|
|
14534
|
-
z[
|
|
14532
|
+
function S(z, P) {
|
|
14533
|
+
for (; P + 1 < z.length; P++)
|
|
14534
|
+
z[P] = z[P + 1];
|
|
14535
14535
|
z.pop();
|
|
14536
14536
|
}
|
|
14537
14537
|
function T(z) {
|
|
14538
|
-
for (var
|
|
14539
|
-
|
|
14540
|
-
return
|
|
14538
|
+
for (var P = new Array(z.length), C = 0; C < P.length; ++C)
|
|
14539
|
+
P[C] = z[C].listener || z[C];
|
|
14540
|
+
return P;
|
|
14541
14541
|
}
|
|
14542
|
-
function A(z,
|
|
14542
|
+
function A(z, P) {
|
|
14543
14543
|
return new Promise(function(C, N) {
|
|
14544
14544
|
function D(Z) {
|
|
14545
|
-
z.removeListener(
|
|
14545
|
+
z.removeListener(P, Y), N(Z);
|
|
14546
14546
|
}
|
|
14547
14547
|
function Y() {
|
|
14548
14548
|
typeof z.removeListener == "function" && z.removeListener("error", D), C([].slice.call(arguments));
|
|
14549
14549
|
}
|
|
14550
|
-
|
|
14550
|
+
k(z, P, Y, { once: !0 }), P !== "error" && R(z, D, { once: !0 });
|
|
14551
14551
|
});
|
|
14552
14552
|
}
|
|
14553
|
-
function R(z,
|
|
14554
|
-
typeof z.on == "function" &&
|
|
14553
|
+
function R(z, P, C) {
|
|
14554
|
+
typeof z.on == "function" && k(z, "error", P, C);
|
|
14555
14555
|
}
|
|
14556
|
-
function
|
|
14556
|
+
function k(z, P, C, N) {
|
|
14557
14557
|
if (typeof z.on == "function")
|
|
14558
|
-
N.once ? z.once(
|
|
14558
|
+
N.once ? z.once(P, C) : z.on(P, C);
|
|
14559
14559
|
else if (typeof z.addEventListener == "function")
|
|
14560
|
-
z.addEventListener(
|
|
14561
|
-
N.once && z.removeEventListener(
|
|
14560
|
+
z.addEventListener(P, function D(Y) {
|
|
14561
|
+
N.once && z.removeEventListener(P, D), C(Y);
|
|
14562
14562
|
});
|
|
14563
14563
|
else
|
|
14564
14564
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof z);
|
|
@@ -14579,63 +14579,63 @@ function Xo() {
|
|
|
14579
14579
|
r[u] = a[u], i[a.charCodeAt(u)] = u;
|
|
14580
14580
|
i[45] = 62, i[95] = 63;
|
|
14581
14581
|
function l(R) {
|
|
14582
|
-
var
|
|
14583
|
-
if (
|
|
14582
|
+
var k = R.length;
|
|
14583
|
+
if (k % 4 > 0)
|
|
14584
14584
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
14585
14585
|
var z = R.indexOf("=");
|
|
14586
|
-
z === -1 && (z =
|
|
14587
|
-
var
|
|
14588
|
-
return [z,
|
|
14586
|
+
z === -1 && (z = k);
|
|
14587
|
+
var P = z === k ? 0 : 4 - z % 4;
|
|
14588
|
+
return [z, P];
|
|
14589
14589
|
}
|
|
14590
14590
|
function f(R) {
|
|
14591
|
-
var
|
|
14592
|
-
return (z +
|
|
14591
|
+
var k = l(R), z = k[0], P = k[1];
|
|
14592
|
+
return (z + P) * 3 / 4 - P;
|
|
14593
14593
|
}
|
|
14594
|
-
function g(R,
|
|
14595
|
-
return (
|
|
14594
|
+
function g(R, k, z) {
|
|
14595
|
+
return (k + z) * 3 / 4 - z;
|
|
14596
14596
|
}
|
|
14597
14597
|
function y(R) {
|
|
14598
|
-
var
|
|
14598
|
+
var k, z = l(R), P = z[0], C = z[1], N = new o(g(R, P, C)), D = 0, Y = C > 0 ? P - 4 : P, Z;
|
|
14599
14599
|
for (Z = 0; Z < Y; Z += 4)
|
|
14600
|
-
|
|
14601
|
-
return C === 2 && (
|
|
14600
|
+
k = i[R.charCodeAt(Z)] << 18 | i[R.charCodeAt(Z + 1)] << 12 | i[R.charCodeAt(Z + 2)] << 6 | i[R.charCodeAt(Z + 3)], N[D++] = k >> 16 & 255, N[D++] = k >> 8 & 255, N[D++] = k & 255;
|
|
14601
|
+
return C === 2 && (k = i[R.charCodeAt(Z)] << 2 | i[R.charCodeAt(Z + 1)] >> 4, N[D++] = k & 255), C === 1 && (k = i[R.charCodeAt(Z)] << 10 | i[R.charCodeAt(Z + 1)] << 4 | i[R.charCodeAt(Z + 2)] >> 2, N[D++] = k >> 8 & 255, N[D++] = k & 255), N;
|
|
14602
14602
|
}
|
|
14603
14603
|
function B(R) {
|
|
14604
14604
|
return r[R >> 18 & 63] + r[R >> 12 & 63] + r[R >> 6 & 63] + r[R & 63];
|
|
14605
14605
|
}
|
|
14606
|
-
function I(R,
|
|
14607
|
-
for (var
|
|
14608
|
-
|
|
14606
|
+
function I(R, k, z) {
|
|
14607
|
+
for (var P, C = [], N = k; N < z; N += 3)
|
|
14608
|
+
P = (R[N] << 16 & 16711680) + (R[N + 1] << 8 & 65280) + (R[N + 2] & 255), C.push(B(P));
|
|
14609
14609
|
return C.join("");
|
|
14610
14610
|
}
|
|
14611
14611
|
function S(R) {
|
|
14612
|
-
for (var
|
|
14612
|
+
for (var k, z = R.length, P = z % 3, C = [], N = 16383, D = 0, Y = z - P; D < Y; D += N)
|
|
14613
14613
|
C.push(I(R, D, D + N > Y ? Y : D + N));
|
|
14614
|
-
return
|
|
14615
|
-
r[
|
|
14616
|
-
)) :
|
|
14617
|
-
r[
|
|
14614
|
+
return P === 1 ? (k = R[z - 1], C.push(
|
|
14615
|
+
r[k >> 2] + r[k << 4 & 63] + "=="
|
|
14616
|
+
)) : P === 2 && (k = (R[z - 2] << 8) + R[z - 1], C.push(
|
|
14617
|
+
r[k >> 10] + r[k >> 4 & 63] + r[k << 2 & 63] + "="
|
|
14618
14618
|
)), C.join("");
|
|
14619
14619
|
}
|
|
14620
14620
|
var T = {};
|
|
14621
14621
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
14622
|
-
T.read = function(R,
|
|
14623
|
-
var N, D, Y = C * 8 -
|
|
14624
|
-
for (At += Rt, N = at & (1 << -L) - 1, at >>= -L, L += Y; L > 0; N = N * 256 + R[
|
|
14622
|
+
T.read = function(R, k, z, P, C) {
|
|
14623
|
+
var N, D, Y = C * 8 - P - 1, Z = (1 << Y) - 1, ft = Z >> 1, L = -7, At = z ? C - 1 : 0, Rt = z ? -1 : 1, at = R[k + At];
|
|
14624
|
+
for (At += Rt, N = at & (1 << -L) - 1, at >>= -L, L += Y; L > 0; N = N * 256 + R[k + At], At += Rt, L -= 8)
|
|
14625
14625
|
;
|
|
14626
|
-
for (D = N & (1 << -L) - 1, N >>= -L, L +=
|
|
14626
|
+
for (D = N & (1 << -L) - 1, N >>= -L, L += P; L > 0; D = D * 256 + R[k + At], At += Rt, L -= 8)
|
|
14627
14627
|
;
|
|
14628
14628
|
if (N === 0)
|
|
14629
14629
|
N = 1 - ft;
|
|
14630
14630
|
else {
|
|
14631
14631
|
if (N === Z)
|
|
14632
14632
|
return D ? NaN : (at ? -1 : 1) * (1 / 0);
|
|
14633
|
-
D = D + Math.pow(2,
|
|
14633
|
+
D = D + Math.pow(2, P), N = N - ft;
|
|
14634
14634
|
}
|
|
14635
|
-
return (at ? -1 : 1) * D * Math.pow(2, N -
|
|
14636
|
-
}, T.write = function(R,
|
|
14637
|
-
var D, Y, Z, ft = N * 8 - C - 1, L = (1 << ft) - 1, At = L >> 1, Rt = C === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, at =
|
|
14638
|
-
for (
|
|
14635
|
+
return (at ? -1 : 1) * D * Math.pow(2, N - P);
|
|
14636
|
+
}, T.write = function(R, k, z, P, C, N) {
|
|
14637
|
+
var D, Y, Z, ft = N * 8 - C - 1, L = (1 << ft) - 1, At = L >> 1, Rt = C === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, at = P ? 0 : N - 1, wt = P ? 1 : -1, Et = k < 0 || k === 0 && 1 / k < 0 ? 1 : 0;
|
|
14638
|
+
for (k = Math.abs(k), isNaN(k) || k === 1 / 0 ? (Y = isNaN(k) ? 1 : 0, D = L) : (D = Math.floor(Math.log(k) / Math.LN2), k * (Z = Math.pow(2, -D)) < 1 && (D--, Z *= 2), D + At >= 1 ? k += Rt / Z : k += Rt * Math.pow(2, 1 - At), k * Z >= 2 && (D++, Z /= 2), D + At >= L ? (Y = 0, D = L) : D + At >= 1 ? (Y = (k * Z - 1) * Math.pow(2, C), D = D + At) : (Y = k * Math.pow(2, At - 1) * Math.pow(2, C), D = 0)); C >= 8; R[z + at] = Y & 255, at += wt, Y /= 256, C -= 8)
|
|
14639
14639
|
;
|
|
14640
14640
|
for (D = D << C | Y, ft += C; ft > 0; R[z + at] = D & 255, at += wt, D /= 256, ft -= 8)
|
|
14641
14641
|
;
|
|
@@ -14648,7 +14648,7 @@ function Xo() {
|
|
|
14648
14648
|
* @license MIT
|
|
14649
14649
|
*/
|
|
14650
14650
|
(function(R) {
|
|
14651
|
-
const
|
|
14651
|
+
const k = e, z = T, P = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
14652
14652
|
R.Buffer = L, R.SlowBuffer = X, R.INSPECT_MAX_BYTES = 50;
|
|
14653
14653
|
const C = 2147483647;
|
|
14654
14654
|
R.kMaxLength = C;
|
|
@@ -14705,7 +14705,7 @@ function Xo() {
|
|
|
14705
14705
|
throw new TypeError(
|
|
14706
14706
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof m
|
|
14707
14707
|
);
|
|
14708
|
-
if (
|
|
14708
|
+
if (ke(m, D) || m && ke(m.buffer, D) || typeof Y < "u" && (ke(m, Y) || m && ke(m.buffer, Y)))
|
|
14709
14709
|
return Bt(m, p, d);
|
|
14710
14710
|
if (typeof m == "number")
|
|
14711
14711
|
throw new TypeError(
|
|
@@ -14760,7 +14760,7 @@ function Xo() {
|
|
|
14760
14760
|
return d;
|
|
14761
14761
|
}
|
|
14762
14762
|
function vt(m) {
|
|
14763
|
-
if (
|
|
14763
|
+
if (ke(m, N)) {
|
|
14764
14764
|
const p = new N(m);
|
|
14765
14765
|
return Bt(p.buffer, p.byteOffset, p.byteLength);
|
|
14766
14766
|
}
|
|
@@ -14795,7 +14795,7 @@ function Xo() {
|
|
|
14795
14795
|
L.isBuffer = function(p) {
|
|
14796
14796
|
return p != null && p._isBuffer === !0 && p !== L.prototype;
|
|
14797
14797
|
}, L.compare = function(p, d) {
|
|
14798
|
-
if (
|
|
14798
|
+
if (ke(p, N) && (p = L.from(p, p.offset, p.byteLength)), ke(d, N) && (d = L.from(d, d.offset, d.byteLength)), !L.isBuffer(p) || !L.isBuffer(d))
|
|
14799
14799
|
throw new TypeError(
|
|
14800
14800
|
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
14801
14801
|
);
|
|
@@ -14837,7 +14837,7 @@ function Xo() {
|
|
|
14837
14837
|
let $ = 0;
|
|
14838
14838
|
for (O = 0; O < p.length; ++O) {
|
|
14839
14839
|
let ot = p[O];
|
|
14840
|
-
if (
|
|
14840
|
+
if (ke(ot, N))
|
|
14841
14841
|
$ + ot.length > H.length ? (L.isBuffer(ot) || (ot = L.from(ot)), ot.copy(H, $)) : N.prototype.set.call(
|
|
14842
14842
|
H,
|
|
14843
14843
|
ot,
|
|
@@ -14854,7 +14854,7 @@ function Xo() {
|
|
|
14854
14854
|
function nt(m, p) {
|
|
14855
14855
|
if (L.isBuffer(m))
|
|
14856
14856
|
return m.length;
|
|
14857
|
-
if (D.isView(m) ||
|
|
14857
|
+
if (D.isView(m) || ke(m, D))
|
|
14858
14858
|
return m.byteLength;
|
|
14859
14859
|
if (typeof m != "string")
|
|
14860
14860
|
throw new TypeError(
|
|
@@ -14952,8 +14952,8 @@ function Xo() {
|
|
|
14952
14952
|
let p = "";
|
|
14953
14953
|
const d = R.INSPECT_MAX_BYTES;
|
|
14954
14954
|
return p = this.toString("hex", 0, d).replace(/(.{2})/g, "$1 ").trim(), this.length > d && (p += " ... "), "<Buffer " + p + ">";
|
|
14955
|
-
},
|
|
14956
|
-
if (
|
|
14955
|
+
}, P && (L.prototype[P] = L.prototype.inspect), L.prototype.compare = function(p, d, O, H, $) {
|
|
14956
|
+
if (ke(p, N) && (p = L.from(p, p.offset, p.byteLength)), !L.isBuffer(p))
|
|
14957
14957
|
throw new TypeError(
|
|
14958
14958
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof p
|
|
14959
14959
|
);
|
|
@@ -15097,7 +15097,7 @@ function Xo() {
|
|
|
15097
15097
|
};
|
|
15098
15098
|
};
|
|
15099
15099
|
function lt(m, p, d) {
|
|
15100
|
-
return p === 0 && d === m.length ?
|
|
15100
|
+
return p === 0 && d === m.length ? k.fromByteArray(m) : k.fromByteArray(m.slice(p, d));
|
|
15101
15101
|
}
|
|
15102
15102
|
function St(m, p, d) {
|
|
15103
15103
|
d = Math.min(m.length, d);
|
|
@@ -15124,10 +15124,10 @@ function Xo() {
|
|
|
15124
15124
|
}
|
|
15125
15125
|
ot === null ? (ot = 65533, Ft = 1) : ot > 65535 && (ot -= 65536, O.push(ot >>> 10 & 1023 | 55296), ot = 56320 | ot & 1023), O.push(ot), H += Ft;
|
|
15126
15126
|
}
|
|
15127
|
-
return
|
|
15127
|
+
return kt(O);
|
|
15128
15128
|
}
|
|
15129
15129
|
const yt = 4096;
|
|
15130
|
-
function
|
|
15130
|
+
function kt(m) {
|
|
15131
15131
|
const p = m.length;
|
|
15132
15132
|
if (p <= yt)
|
|
15133
15133
|
return String.fromCharCode.apply(String, m);
|
|
@@ -15483,7 +15483,7 @@ function Xo() {
|
|
|
15483
15483
|
);
|
|
15484
15484
|
}
|
|
15485
15485
|
const st = /[^+/0-9A-Za-z-_]/g;
|
|
15486
|
-
function
|
|
15486
|
+
function Pt(m) {
|
|
15487
15487
|
if (m = m.split("=")[0], m = m.trim().replace(st, ""), m.length < 2) return "";
|
|
15488
15488
|
for (; m.length % 4 !== 0; )
|
|
15489
15489
|
m = m + "=";
|
|
@@ -15557,7 +15557,7 @@ function Xo() {
|
|
|
15557
15557
|
return $;
|
|
15558
15558
|
}
|
|
15559
15559
|
function Dt(m) {
|
|
15560
|
-
return
|
|
15560
|
+
return k.toByteArray(Pt(m));
|
|
15561
15561
|
}
|
|
15562
15562
|
function ei(m, p, d, O) {
|
|
15563
15563
|
let H;
|
|
@@ -15565,7 +15565,7 @@ function Xo() {
|
|
|
15565
15565
|
p[H + d] = m[H];
|
|
15566
15566
|
return H;
|
|
15567
15567
|
}
|
|
15568
|
-
function
|
|
15568
|
+
function ke(m, p) {
|
|
15569
15569
|
return m instanceof p || m != null && m.constructor != null && m.constructor.name != null && m.constructor.name === p.name;
|
|
15570
15570
|
}
|
|
15571
15571
|
function pi(m) {
|
|
@@ -15888,9 +15888,9 @@ function lg() {
|
|
|
15888
15888
|
return T('"use strict"; return (' + ct + ").constructor;")();
|
|
15889
15889
|
} catch {
|
|
15890
15890
|
}
|
|
15891
|
-
}, R = /* @__PURE__ */ Xs(),
|
|
15891
|
+
}, R = /* @__PURE__ */ Xs(), k = /* @__PURE__ */ ea(), z = function() {
|
|
15892
15892
|
throw new u();
|
|
15893
|
-
},
|
|
15893
|
+
}, P = R ? function() {
|
|
15894
15894
|
try {
|
|
15895
15895
|
return arguments.callee, z;
|
|
15896
15896
|
} catch {
|
|
@@ -15960,7 +15960,7 @@ function lg() {
|
|
|
15960
15960
|
"%StringIteratorPrototype%": C && N ? N(""[Symbol.iterator]()) : n,
|
|
15961
15961
|
"%Symbol%": C ? Symbol : n,
|
|
15962
15962
|
"%SyntaxError%": a,
|
|
15963
|
-
"%ThrowTypeError%":
|
|
15963
|
+
"%ThrowTypeError%": P,
|
|
15964
15964
|
"%TypedArray%": At,
|
|
15965
15965
|
"%TypeError%": u,
|
|
15966
15966
|
"%Uint8Array%": typeof Uint8Array > "u" ? n : Uint8Array,
|
|
@@ -15973,7 +15973,7 @@ function lg() {
|
|
|
15973
15973
|
"%WeakSet%": typeof WeakSet > "u" ? n : WeakSet,
|
|
15974
15974
|
"%Function.prototype.call%": ft,
|
|
15975
15975
|
"%Function.prototype.apply%": Z,
|
|
15976
|
-
"%Object.defineProperty%":
|
|
15976
|
+
"%Object.defineProperty%": k,
|
|
15977
15977
|
"%Object.getPrototypeOf%": D,
|
|
15978
15978
|
"%Math.abs%": l,
|
|
15979
15979
|
"%Math.floor%": f,
|
|
@@ -16067,8 +16067,8 @@ function lg() {
|
|
|
16067
16067
|
if (x === "%" && v !== "%")
|
|
16068
16068
|
throw new a("invalid intrinsic syntax, expected opening `%`");
|
|
16069
16069
|
var et = [];
|
|
16070
|
-
return W(ut, dt, function(lt, St, yt,
|
|
16071
|
-
et[et.length] = yt ? W(
|
|
16070
|
+
return W(ut, dt, function(lt, St, yt, kt) {
|
|
16071
|
+
et[et.length] = yt ? W(kt, G, "$1") : St || lt;
|
|
16072
16072
|
}), et;
|
|
16073
16073
|
}, tt = function(ut, v) {
|
|
16074
16074
|
var x = ut, et;
|
|
@@ -16091,13 +16091,13 @@ function lg() {
|
|
|
16091
16091
|
throw new u('"allowMissing" argument must be a boolean');
|
|
16092
16092
|
if (nt(/^%?[^%]*%?$/, ut) === null)
|
|
16093
16093
|
throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
16094
|
-
var x = M(ut), et = x.length > 0 ? x[0] : "", lt = tt("%" + et + "%", v), St = lt.name, yt = lt.value,
|
|
16094
|
+
var x = M(ut), et = x.length > 0 ? x[0] : "", lt = tt("%" + et + "%", v), St = lt.name, yt = lt.value, kt = !1, he = lt.alias;
|
|
16095
16095
|
he && (et = he[0], jt(x, Bt([0, 1], he)));
|
|
16096
16096
|
for (var it = 1, pe = !0; it < x.length; it += 1) {
|
|
16097
16097
|
var we = x[it], Gt = X(we, 0, 1), Qt = X(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) && (
|
|
16100
|
+
if ((we === "constructor" || !pe) && (kt = !0), et += "." + we, St = "%" + et + "%", vt(Rt, St))
|
|
16101
16101
|
yt = Rt[St];
|
|
16102
16102
|
else if (yt != null) {
|
|
16103
16103
|
if (!(we in yt)) {
|
|
@@ -16110,7 +16110,7 @@ function lg() {
|
|
|
16110
16110
|
pe = !!de, pe && "get" in de && !("originalValue" in de.get) ? yt = de.get : yt = yt[we];
|
|
16111
16111
|
} else
|
|
16112
16112
|
pe = vt(yt, we), yt = yt[we];
|
|
16113
|
-
pe && !
|
|
16113
|
+
pe && !kt && (Rt[St] = yt);
|
|
16114
16114
|
}
|
|
16115
16115
|
}
|
|
16116
16116
|
return yt;
|
|
@@ -16145,9 +16145,9 @@ function $m() {
|
|
|
16145
16145
|
}();
|
|
16146
16146
|
return r.isLegacyArguments = i, Sc = o ? r : i, Sc;
|
|
16147
16147
|
}
|
|
16148
|
-
var
|
|
16148
|
+
var kc, dl;
|
|
16149
16149
|
function Ym() {
|
|
16150
|
-
if (dl) return
|
|
16150
|
+
if (dl) return kc;
|
|
16151
16151
|
dl = 1;
|
|
16152
16152
|
var n = Object.prototype.toString, t = Function.prototype.toString, e = /^\s*(?:function)?\*/, r = i_()(), i = Object.getPrototypeOf, o = function() {
|
|
16153
16153
|
if (!r)
|
|
@@ -16157,7 +16157,7 @@ function Ym() {
|
|
|
16157
16157
|
} catch {
|
|
16158
16158
|
}
|
|
16159
16159
|
}, a;
|
|
16160
|
-
return
|
|
16160
|
+
return kc = function(_) {
|
|
16161
16161
|
if (typeof _ != "function")
|
|
16162
16162
|
return !1;
|
|
16163
16163
|
if (e.test(t.call(_)))
|
|
@@ -16173,11 +16173,11 @@ function Ym() {
|
|
|
16173
16173
|
a = f ? i(f) : !1;
|
|
16174
16174
|
}
|
|
16175
16175
|
return i(_) === a;
|
|
16176
|
-
},
|
|
16176
|
+
}, kc;
|
|
16177
16177
|
}
|
|
16178
|
-
var
|
|
16178
|
+
var Pc, gl;
|
|
16179
16179
|
function Zm() {
|
|
16180
|
-
if (gl) return
|
|
16180
|
+
if (gl) return Pc;
|
|
16181
16181
|
gl = 1;
|
|
16182
16182
|
var n = Function.prototype.toString, t = typeof Reflect == "object" && Reflect !== null && Reflect.apply, e, r;
|
|
16183
16183
|
if (typeof t == "function" && typeof Object.defineProperty == "function")
|
|
@@ -16194,16 +16194,16 @@ function Zm() {
|
|
|
16194
16194
|
}
|
|
16195
16195
|
else
|
|
16196
16196
|
t = null;
|
|
16197
|
-
var i = /^\s*class\b/, o = function(
|
|
16197
|
+
var i = /^\s*class\b/, o = function(k) {
|
|
16198
16198
|
try {
|
|
16199
|
-
var z = n.call(
|
|
16199
|
+
var z = n.call(k);
|
|
16200
16200
|
return i.test(z);
|
|
16201
16201
|
} catch {
|
|
16202
16202
|
return !1;
|
|
16203
16203
|
}
|
|
16204
|
-
}, a = function(
|
|
16204
|
+
}, a = function(k) {
|
|
16205
16205
|
try {
|
|
16206
|
-
return o(
|
|
16206
|
+
return o(k) ? !1 : (n.call(k), !0);
|
|
16207
16207
|
} catch {
|
|
16208
16208
|
return !1;
|
|
16209
16209
|
}
|
|
@@ -16212,40 +16212,40 @@ function Zm() {
|
|
|
16212
16212
|
};
|
|
16213
16213
|
if (typeof document == "object") {
|
|
16214
16214
|
var A = document.all;
|
|
16215
|
-
u.call(A) === u.call(document.all) && (T = function(
|
|
16216
|
-
if ((S || !
|
|
16215
|
+
u.call(A) === u.call(document.all) && (T = function(k) {
|
|
16216
|
+
if ((S || !k) && (typeof k > "u" || typeof k == "object"))
|
|
16217
16217
|
try {
|
|
16218
|
-
var z = u.call(
|
|
16219
|
-
return (z === g || z === y || z === B || z === _) &&
|
|
16218
|
+
var z = u.call(k);
|
|
16219
|
+
return (z === g || z === y || z === B || z === _) && k("") == null;
|
|
16220
16220
|
} catch {
|
|
16221
16221
|
}
|
|
16222
16222
|
return !1;
|
|
16223
16223
|
});
|
|
16224
16224
|
}
|
|
16225
|
-
return
|
|
16226
|
-
if (T(
|
|
16225
|
+
return Pc = t ? function(k) {
|
|
16226
|
+
if (T(k))
|
|
16227
16227
|
return !0;
|
|
16228
|
-
if (!
|
|
16228
|
+
if (!k || typeof k != "function" && typeof k != "object")
|
|
16229
16229
|
return !1;
|
|
16230
16230
|
try {
|
|
16231
|
-
t(
|
|
16231
|
+
t(k, null, e);
|
|
16232
16232
|
} catch (z) {
|
|
16233
16233
|
if (z !== r)
|
|
16234
16234
|
return !1;
|
|
16235
16235
|
}
|
|
16236
|
-
return !o(
|
|
16237
|
-
} : function(
|
|
16238
|
-
if (T(
|
|
16236
|
+
return !o(k) && a(k);
|
|
16237
|
+
} : function(k) {
|
|
16238
|
+
if (T(k))
|
|
16239
16239
|
return !0;
|
|
16240
|
-
if (!
|
|
16240
|
+
if (!k || typeof k != "function" && typeof k != "object")
|
|
16241
16241
|
return !1;
|
|
16242
16242
|
if (I)
|
|
16243
|
-
return a(
|
|
16244
|
-
if (o(
|
|
16243
|
+
return a(k);
|
|
16244
|
+
if (o(k))
|
|
16245
16245
|
return !1;
|
|
16246
|
-
var z = u.call(
|
|
16247
|
-
return z !== l && z !== f && !/^\[object HTML/.test(z) ? !1 : a(
|
|
16248
|
-
},
|
|
16246
|
+
var z = u.call(k);
|
|
16247
|
+
return z !== l && z !== f && !/^\[object HTML/.test(z) ? !1 : a(k);
|
|
16248
|
+
}, Pc;
|
|
16249
16249
|
}
|
|
16250
16250
|
var Fc, yl;
|
|
16251
16251
|
function Xm() {
|
|
@@ -16415,8 +16415,8 @@ function pg() {
|
|
|
16415
16415
|
if (Symbol.toStringTag in T && o) {
|
|
16416
16416
|
var A = o(T), R = i(A, Symbol.toStringTag);
|
|
16417
16417
|
if (!R && A) {
|
|
16418
|
-
var
|
|
16419
|
-
R = i(
|
|
16418
|
+
var k = o(A);
|
|
16419
|
+
R = i(k, Symbol.toStringTag);
|
|
16420
16420
|
}
|
|
16421
16421
|
y["$" + S] = e(R.get);
|
|
16422
16422
|
}
|
|
@@ -16435,11 +16435,11 @@ function pg() {
|
|
|
16435
16435
|
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
|
|
16436
16436
|
y,
|
|
16437
16437
|
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
16438
|
-
function(R,
|
|
16438
|
+
function(R, k) {
|
|
16439
16439
|
if (!A)
|
|
16440
16440
|
try {
|
|
16441
|
-
"$" + R(T) ===
|
|
16442
|
-
f(
|
|
16441
|
+
"$" + R(T) === k && (A = /** @type {import('.').TypedArrayName} */
|
|
16442
|
+
f(k, 1));
|
|
16443
16443
|
} catch {
|
|
16444
16444
|
}
|
|
16445
16445
|
}
|
|
@@ -16450,11 +16450,11 @@ function pg() {
|
|
|
16450
16450
|
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
|
|
16451
16451
|
y,
|
|
16452
16452
|
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
16453
|
-
function(R,
|
|
16453
|
+
function(R, k) {
|
|
16454
16454
|
if (!A)
|
|
16455
16455
|
try {
|
|
16456
16456
|
R(T), A = /** @type {import('.').TypedArrayName} */
|
|
16457
|
-
f(
|
|
16457
|
+
f(k, 1);
|
|
16458
16458
|
} catch {
|
|
16459
16459
|
}
|
|
16460
16460
|
}
|
|
@@ -16517,18 +16517,18 @@ function c2() {
|
|
|
16517
16517
|
return r(it) === "Uint8ClampedArray";
|
|
16518
16518
|
}
|
|
16519
16519
|
n.isUint8ClampedArray = R;
|
|
16520
|
-
function
|
|
16520
|
+
function k(it) {
|
|
16521
16521
|
return r(it) === "Uint16Array";
|
|
16522
16522
|
}
|
|
16523
|
-
n.isUint16Array =
|
|
16523
|
+
n.isUint16Array = k;
|
|
16524
16524
|
function z(it) {
|
|
16525
16525
|
return r(it) === "Uint32Array";
|
|
16526
16526
|
}
|
|
16527
16527
|
n.isUint32Array = z;
|
|
16528
|
-
function
|
|
16528
|
+
function P(it) {
|
|
16529
16529
|
return r(it) === "Int8Array";
|
|
16530
16530
|
}
|
|
16531
|
-
n.isInt8Array =
|
|
16531
|
+
n.isInt8Array = P;
|
|
16532
16532
|
function C(it) {
|
|
16533
16533
|
return r(it) === "Int16Array";
|
|
16534
16534
|
}
|
|
@@ -16649,10 +16649,10 @@ function c2() {
|
|
|
16649
16649
|
return u && I(it, B);
|
|
16650
16650
|
}
|
|
16651
16651
|
n.isSymbolObject = yt;
|
|
16652
|
-
function
|
|
16652
|
+
function kt(it) {
|
|
16653
16653
|
return x(it) || et(it) || lt(it) || St(it) || yt(it);
|
|
16654
16654
|
}
|
|
16655
|
-
n.isBoxedPrimitive =
|
|
16655
|
+
n.isBoxedPrimitive = kt;
|
|
16656
16656
|
function he(it) {
|
|
16657
16657
|
return typeof Uint8Array < "u" && (jt(it) || G(it));
|
|
16658
16658
|
}
|
|
@@ -16666,15 +16666,15 @@ function c2() {
|
|
|
16666
16666
|
});
|
|
16667
16667
|
}(qa)), qa;
|
|
16668
16668
|
}
|
|
16669
|
-
var jc,
|
|
16669
|
+
var jc, kl;
|
|
16670
16670
|
function u2() {
|
|
16671
|
-
return
|
|
16671
|
+
return kl || (kl = 1, jc = function(t) {
|
|
16672
16672
|
return t && typeof t == "object" && typeof t.copy == "function" && typeof t.fill == "function" && typeof t.readUInt8 == "function";
|
|
16673
16673
|
}), jc;
|
|
16674
16674
|
}
|
|
16675
|
-
var po = { exports: {} },
|
|
16675
|
+
var po = { exports: {} }, Pl;
|
|
16676
16676
|
function gs() {
|
|
16677
|
-
return
|
|
16677
|
+
return Pl || (Pl = 1, typeof Object.create == "function" ? po.exports = function(t, e) {
|
|
16678
16678
|
e && (t.super_ = e, t.prototype = Object.create(e.prototype, {
|
|
16679
16679
|
constructor: {
|
|
16680
16680
|
value: t,
|
|
@@ -16701,7 +16701,7 @@ function wg() {
|
|
|
16701
16701
|
return dt;
|
|
16702
16702
|
}, e = /%[sdj%]/g;
|
|
16703
16703
|
n.format = function(W) {
|
|
16704
|
-
if (!
|
|
16704
|
+
if (!P(W)) {
|
|
16705
16705
|
for (var X = [], nt = 0; nt < arguments.length; nt++)
|
|
16706
16706
|
X.push(a(arguments[nt]));
|
|
16707
16707
|
return X.join(" ");
|
|
@@ -16812,7 +16812,7 @@ function wg() {
|
|
|
16812
16812
|
X.inspect !== n.inspect && // Also filter out any prototype objects using the circular check.
|
|
16813
16813
|
!(X.constructor && X.constructor.prototype === X)) {
|
|
16814
16814
|
var dt = X.inspect(nt, W);
|
|
16815
|
-
return
|
|
16815
|
+
return P(dt) || (dt = f(W, dt, nt)), dt;
|
|
16816
16816
|
}
|
|
16817
16817
|
var G = g(W, X);
|
|
16818
16818
|
if (G)
|
|
@@ -16850,7 +16850,7 @@ function wg() {
|
|
|
16850
16850
|
function g(W, X) {
|
|
16851
16851
|
if (N(X))
|
|
16852
16852
|
return W.stylize("undefined", "undefined");
|
|
16853
|
-
if (
|
|
16853
|
+
if (P(X)) {
|
|
16854
16854
|
var nt = "'" + JSON.stringify(X).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
16855
16855
|
return W.stylize(nt, "string");
|
|
16856
16856
|
}
|
|
@@ -16926,18 +16926,18 @@ function wg() {
|
|
|
16926
16926
|
return W === null;
|
|
16927
16927
|
}
|
|
16928
16928
|
n.isNull = R;
|
|
16929
|
-
function
|
|
16929
|
+
function k(W) {
|
|
16930
16930
|
return W == null;
|
|
16931
16931
|
}
|
|
16932
|
-
n.isNullOrUndefined =
|
|
16932
|
+
n.isNullOrUndefined = k;
|
|
16933
16933
|
function z(W) {
|
|
16934
16934
|
return typeof W == "number";
|
|
16935
16935
|
}
|
|
16936
16936
|
n.isNumber = z;
|
|
16937
|
-
function
|
|
16937
|
+
function P(W) {
|
|
16938
16938
|
return typeof W == "string";
|
|
16939
16939
|
}
|
|
16940
|
-
n.isString =
|
|
16940
|
+
n.isString = P;
|
|
16941
16941
|
function C(W) {
|
|
16942
16942
|
return typeof W == "symbol";
|
|
16943
16943
|
}
|
|
@@ -17191,8 +17191,8 @@ function _2() {
|
|
|
17191
17191
|
key: "concat",
|
|
17192
17192
|
value: function(T) {
|
|
17193
17193
|
if (this.length === 0) return l.alloc(0);
|
|
17194
|
-
for (var A = l.allocUnsafe(T >>> 0), R = this.head,
|
|
17195
|
-
B(R.data, A,
|
|
17194
|
+
for (var A = l.allocUnsafe(T >>> 0), R = this.head, k = 0; R; )
|
|
17195
|
+
B(R.data, A, k), k += R.data.length, R = R.next;
|
|
17196
17196
|
return A;
|
|
17197
17197
|
}
|
|
17198
17198
|
// Consumes a specified amount of bytes or characters from the buffered data.
|
|
@@ -17211,31 +17211,31 @@ function _2() {
|
|
|
17211
17211
|
}, {
|
|
17212
17212
|
key: "_getString",
|
|
17213
17213
|
value: function(T) {
|
|
17214
|
-
var A = this.head, R = 1,
|
|
17215
|
-
for (T -=
|
|
17216
|
-
var z = A.data,
|
|
17217
|
-
if (
|
|
17218
|
-
|
|
17214
|
+
var A = this.head, R = 1, k = A.data;
|
|
17215
|
+
for (T -= k.length; A = A.next; ) {
|
|
17216
|
+
var z = A.data, P = T > z.length ? z.length : T;
|
|
17217
|
+
if (P === z.length ? k += z : k += z.slice(0, T), T -= P, T === 0) {
|
|
17218
|
+
P === z.length ? (++R, A.next ? this.head = A.next : this.head = this.tail = null) : (this.head = A, A.data = z.slice(P));
|
|
17219
17219
|
break;
|
|
17220
17220
|
}
|
|
17221
17221
|
++R;
|
|
17222
17222
|
}
|
|
17223
|
-
return this.length -= R,
|
|
17223
|
+
return this.length -= R, k;
|
|
17224
17224
|
}
|
|
17225
17225
|
// Consumes a specified amount of bytes from the buffered data.
|
|
17226
17226
|
}, {
|
|
17227
17227
|
key: "_getBuffer",
|
|
17228
17228
|
value: function(T) {
|
|
17229
|
-
var A = l.allocUnsafe(T), R = this.head,
|
|
17229
|
+
var A = l.allocUnsafe(T), R = this.head, k = 1;
|
|
17230
17230
|
for (R.data.copy(A), T -= R.data.length; R = R.next; ) {
|
|
17231
|
-
var z = R.data,
|
|
17232
|
-
if (z.copy(A, A.length - T, 0,
|
|
17233
|
-
|
|
17231
|
+
var z = R.data, P = T > z.length ? z.length : T;
|
|
17232
|
+
if (z.copy(A, A.length - T, 0, P), T -= P, T === 0) {
|
|
17233
|
+
P === z.length ? (++k, R.next ? this.head = R.next : this.head = this.tail = null) : (this.head = R, R.data = z.slice(P));
|
|
17234
17234
|
break;
|
|
17235
17235
|
}
|
|
17236
|
-
++
|
|
17236
|
+
++k;
|
|
17237
17237
|
}
|
|
17238
|
-
return this.length -=
|
|
17238
|
+
return this.length -= k, A;
|
|
17239
17239
|
}
|
|
17240
17240
|
// Make sure the linked list only shows the minimal necessary information.
|
|
17241
17241
|
}, {
|
|
@@ -17418,9 +17418,9 @@ function yg() {
|
|
|
17418
17418
|
function u(G) {
|
|
17419
17419
|
return i.isBuffer(G) || G instanceof o;
|
|
17420
17420
|
}
|
|
17421
|
-
var _ = dg(), l = gg(), f = l.getHighWaterMark, g = ys().codes, y = g.ERR_INVALID_ARG_TYPE, B = g.ERR_METHOD_NOT_IMPLEMENTED, I = g.ERR_MULTIPLE_CALLBACK, S = g.ERR_STREAM_CANNOT_PIPE, T = g.ERR_STREAM_DESTROYED, A = g.ERR_STREAM_NULL_VALUES, R = g.ERR_STREAM_WRITE_AFTER_END,
|
|
17421
|
+
var _ = dg(), l = gg(), f = l.getHighWaterMark, g = ys().codes, y = g.ERR_INVALID_ARG_TYPE, B = g.ERR_METHOD_NOT_IMPLEMENTED, I = g.ERR_MULTIPLE_CALLBACK, S = g.ERR_STREAM_CANNOT_PIPE, T = g.ERR_STREAM_DESTROYED, A = g.ERR_STREAM_NULL_VALUES, R = g.ERR_STREAM_WRITE_AFTER_END, k = g.ERR_UNKNOWN_ENCODING, z = _.errorOrDestroy;
|
|
17422
17422
|
gs()(D, r);
|
|
17423
|
-
function
|
|
17423
|
+
function P() {
|
|
17424
17424
|
}
|
|
17425
17425
|
function C(G, M, tt) {
|
|
17426
17426
|
t = t || fs(), G = G || {}, typeof tt != "boolean" && (tt = M instanceof t), this.objectMode = !!G.objectMode, tt && (this.objectMode = this.objectMode || !!G.writableObjectMode), this.highWaterMark = f(this, G, "writableHighWaterMark", tt), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
@@ -17470,14 +17470,14 @@ function yg() {
|
|
|
17470
17470
|
}
|
|
17471
17471
|
D.prototype.write = function(G, M, tt) {
|
|
17472
17472
|
var ct = this._writableState, ut = !1, v = !ct.objectMode && u(G);
|
|
17473
|
-
return v && !i.isBuffer(G) && (G = a(G)), typeof M == "function" && (tt = M, M = null), v ? M = "buffer" : M || (M = ct.defaultEncoding), typeof tt != "function" && (tt =
|
|
17473
|
+
return v && !i.isBuffer(G) && (G = a(G)), typeof M == "function" && (tt = M, M = null), v ? M = "buffer" : M || (M = ct.defaultEncoding), typeof tt != "function" && (tt = P), ct.ending ? Y(this, tt) : (v || Z(this, ct, G, tt)) && (ct.pendingcb++, ut = L(this, ct, v, G, M, tt)), ut;
|
|
17474
17474
|
}, D.prototype.cork = function() {
|
|
17475
17475
|
this._writableState.corked++;
|
|
17476
17476
|
}, D.prototype.uncork = function() {
|
|
17477
17477
|
var G = this._writableState;
|
|
17478
17478
|
G.corked && (G.corked--, !G.writing && !G.corked && !G.bufferProcessing && G.bufferedRequest && vt(this, G));
|
|
17479
17479
|
}, D.prototype.setDefaultEncoding = function(M) {
|
|
17480
|
-
if (typeof M == "string" && (M = M.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((M + "").toLowerCase()) > -1)) throw new
|
|
17480
|
+
if (typeof M == "string" && (M = M.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((M + "").toLowerCase()) > -1)) throw new k(M);
|
|
17481
17481
|
return this._writableState.defaultEncoding = M, this;
|
|
17482
17482
|
}, Object.defineProperty(D.prototype, "writableBuffer", {
|
|
17483
17483
|
// making it explicit this property is not enumerable
|
|
@@ -17556,8 +17556,8 @@ function yg() {
|
|
|
17556
17556
|
ut.allBuffers = et, At(G, M, !0, M.length, ut, "", 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 (; tt; ) {
|
|
17559
|
-
var lt = tt.chunk, St = tt.encoding, yt = tt.callback,
|
|
17560
|
-
if (At(G, M, !1,
|
|
17559
|
+
var lt = tt.chunk, St = tt.encoding, yt = tt.callback, kt = M.objectMode ? 1 : lt.length;
|
|
17560
|
+
if (At(G, M, !1, kt, lt, St, yt), tt = tt.next, M.bufferedRequestCount--, M.writing)
|
|
17561
17561
|
break;
|
|
17562
17562
|
}
|
|
17563
17563
|
tt === null && (M.lastBufferedRequest = null);
|
|
@@ -17794,13 +17794,13 @@ function jl() {
|
|
|
17794
17794
|
}
|
|
17795
17795
|
i.prototype.write = function(A) {
|
|
17796
17796
|
if (A.length === 0) return "";
|
|
17797
|
-
var R,
|
|
17797
|
+
var R, k;
|
|
17798
17798
|
if (this.lastNeed) {
|
|
17799
17799
|
if (R = this.fillLast(A), R === void 0) return "";
|
|
17800
|
-
|
|
17800
|
+
k = this.lastNeed, this.lastNeed = 0;
|
|
17801
17801
|
} else
|
|
17802
|
-
|
|
17803
|
-
return
|
|
17802
|
+
k = 0;
|
|
17803
|
+
return k < A.length ? R ? R + this.text(A, k) : this.text(A, k) : R || "";
|
|
17804
17804
|
}, i.prototype.end = f, i.prototype.text = l, i.prototype.fillLast = function(A) {
|
|
17805
17805
|
if (this.lastNeed <= A.length)
|
|
17806
17806
|
return A.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
@@ -17809,13 +17809,13 @@ function jl() {
|
|
|
17809
17809
|
function o(A) {
|
|
17810
17810
|
return A <= 127 ? 0 : A >> 5 === 6 ? 2 : A >> 4 === 14 ? 3 : A >> 3 === 30 ? 4 : A >> 6 === 2 ? -1 : -2;
|
|
17811
17811
|
}
|
|
17812
|
-
function a(A, R,
|
|
17812
|
+
function a(A, R, k) {
|
|
17813
17813
|
var z = R.length - 1;
|
|
17814
|
-
if (z <
|
|
17815
|
-
var
|
|
17816
|
-
return
|
|
17814
|
+
if (z < k) return 0;
|
|
17815
|
+
var P = o(R[z]);
|
|
17816
|
+
return P >= 0 ? (P > 0 && (A.lastNeed = P - 1), P) : --z < k || P === -2 ? 0 : (P = o(R[z]), P >= 0 ? (P > 0 && (A.lastNeed = P - 2), P) : --z < k || P === -2 ? 0 : (P = o(R[z]), P >= 0 ? (P > 0 && (P === 2 ? P = 0 : A.lastNeed = P - 3), P) : 0));
|
|
17817
17817
|
}
|
|
17818
|
-
function u(A, R,
|
|
17818
|
+
function u(A, R, k) {
|
|
17819
17819
|
if ((R[0] & 192) !== 128)
|
|
17820
17820
|
return A.lastNeed = 0, "�";
|
|
17821
17821
|
if (A.lastNeed > 1 && R.length > 1) {
|
|
@@ -17826,17 +17826,17 @@ function jl() {
|
|
|
17826
17826
|
}
|
|
17827
17827
|
}
|
|
17828
17828
|
function _(A) {
|
|
17829
|
-
var R = this.lastTotal - this.lastNeed,
|
|
17830
|
-
if (
|
|
17829
|
+
var R = this.lastTotal - this.lastNeed, k = u(this, A);
|
|
17830
|
+
if (k !== void 0) return k;
|
|
17831
17831
|
if (this.lastNeed <= A.length)
|
|
17832
17832
|
return A.copy(this.lastChar, R, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
17833
17833
|
A.copy(this.lastChar, R, 0, A.length), this.lastNeed -= A.length;
|
|
17834
17834
|
}
|
|
17835
17835
|
function l(A, R) {
|
|
17836
|
-
var
|
|
17836
|
+
var k = a(this, A, R);
|
|
17837
17837
|
if (!this.lastNeed) return A.toString("utf8", R);
|
|
17838
|
-
this.lastTotal =
|
|
17839
|
-
var z = A.length - (
|
|
17838
|
+
this.lastTotal = k;
|
|
17839
|
+
var z = A.length - (k - this.lastNeed);
|
|
17840
17840
|
return A.copy(this.lastChar, 0, z), A.toString("utf8", R, z);
|
|
17841
17841
|
}
|
|
17842
17842
|
function f(A) {
|
|
@@ -17845,27 +17845,27 @@ function jl() {
|
|
|
17845
17845
|
}
|
|
17846
17846
|
function g(A, R) {
|
|
17847
17847
|
if ((A.length - R) % 2 === 0) {
|
|
17848
|
-
var
|
|
17849
|
-
if (
|
|
17850
|
-
var z =
|
|
17848
|
+
var k = A.toString("utf16le", R);
|
|
17849
|
+
if (k) {
|
|
17850
|
+
var z = k.charCodeAt(k.length - 1);
|
|
17851
17851
|
if (z >= 55296 && z <= 56319)
|
|
17852
|
-
return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = A[A.length - 2], this.lastChar[1] = A[A.length - 1],
|
|
17852
|
+
return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = A[A.length - 2], this.lastChar[1] = A[A.length - 1], k.slice(0, -1);
|
|
17853
17853
|
}
|
|
17854
|
-
return
|
|
17854
|
+
return k;
|
|
17855
17855
|
}
|
|
17856
17856
|
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = A[A.length - 1], A.toString("utf16le", R, A.length - 1);
|
|
17857
17857
|
}
|
|
17858
17858
|
function y(A) {
|
|
17859
17859
|
var R = A && A.length ? this.write(A) : "";
|
|
17860
17860
|
if (this.lastNeed) {
|
|
17861
|
-
var
|
|
17862
|
-
return R + this.lastChar.toString("utf16le", 0,
|
|
17861
|
+
var k = this.lastTotal - this.lastNeed;
|
|
17862
|
+
return R + this.lastChar.toString("utf16le", 0, k);
|
|
17863
17863
|
}
|
|
17864
17864
|
return R;
|
|
17865
17865
|
}
|
|
17866
17866
|
function B(A, R) {
|
|
17867
|
-
var
|
|
17868
|
-
return
|
|
17867
|
+
var k = (A.length - R) % 3;
|
|
17868
|
+
return k === 0 ? A.toString("base64", R) : (this.lastNeed = 3 - k, this.lastTotal = 3, k === 1 ? this.lastChar[0] = A[A.length - 1] : (this.lastChar[0] = A[A.length - 2], this.lastChar[1] = A[A.length - 1]), A.toString("base64", R, A.length - k));
|
|
17869
17869
|
}
|
|
17870
17870
|
function I(A) {
|
|
17871
17871
|
var R = A && A.length ? this.write(A) : "";
|
|
@@ -17909,14 +17909,14 @@ function c_() {
|
|
|
17909
17909
|
l = !1, g = !0, _ || u.call(o);
|
|
17910
17910
|
}, B = o._readableState && o._readableState.endEmitted, I = function() {
|
|
17911
17911
|
_ = !1, B = !0, l || u.call(o);
|
|
17912
|
-
}, S = function(
|
|
17913
|
-
u.call(o,
|
|
17912
|
+
}, S = function(k) {
|
|
17913
|
+
u.call(o, k);
|
|
17914
17914
|
}, T = function() {
|
|
17915
|
-
var
|
|
17915
|
+
var k;
|
|
17916
17916
|
if (_ && !B)
|
|
17917
|
-
return (!o._readableState || !o._readableState.ended) && (
|
|
17917
|
+
return (!o._readableState || !o._readableState.ended) && (k = new n()), u.call(o, k);
|
|
17918
17918
|
if (l && !g)
|
|
17919
|
-
return (!o._writableState || !o._writableState.ended) && (
|
|
17919
|
+
return (!o._writableState || !o._writableState.ended) && (k = new n()), u.call(o, k);
|
|
17920
17920
|
}, A = function() {
|
|
17921
17921
|
o.req.on("finish", y);
|
|
17922
17922
|
};
|
|
@@ -17931,48 +17931,48 @@ function h2() {
|
|
|
17931
17931
|
if (Hl) return Yc;
|
|
17932
17932
|
Hl = 1;
|
|
17933
17933
|
var n;
|
|
17934
|
-
function t(
|
|
17935
|
-
return z = e(z), z in
|
|
17934
|
+
function t(k, z, P) {
|
|
17935
|
+
return z = e(z), z in k ? Object.defineProperty(k, z, { value: P, enumerable: !0, configurable: !0, writable: !0 }) : k[z] = P, k;
|
|
17936
17936
|
}
|
|
17937
|
-
function e(
|
|
17938
|
-
var z = r(
|
|
17937
|
+
function e(k) {
|
|
17938
|
+
var z = r(k, "string");
|
|
17939
17939
|
return typeof z == "symbol" ? z : String(z);
|
|
17940
17940
|
}
|
|
17941
|
-
function r(
|
|
17942
|
-
if (typeof
|
|
17943
|
-
var
|
|
17944
|
-
if (
|
|
17945
|
-
var C =
|
|
17941
|
+
function r(k, z) {
|
|
17942
|
+
if (typeof k != "object" || k === null) return k;
|
|
17943
|
+
var P = k[Symbol.toPrimitive];
|
|
17944
|
+
if (P !== void 0) {
|
|
17945
|
+
var C = P.call(k, z);
|
|
17946
17946
|
if (typeof C != "object") return C;
|
|
17947
17947
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
17948
17948
|
}
|
|
17949
|
-
return (z === "string" ? String : Number)(
|
|
17949
|
+
return (z === "string" ? String : Number)(k);
|
|
17950
17950
|
}
|
|
17951
17951
|
var i = c_(), o = Symbol("lastResolve"), a = Symbol("lastReject"), u = Symbol("error"), _ = Symbol("ended"), l = Symbol("lastPromise"), f = Symbol("handlePromise"), g = Symbol("stream");
|
|
17952
|
-
function y(
|
|
17952
|
+
function y(k, z) {
|
|
17953
17953
|
return {
|
|
17954
|
-
value:
|
|
17954
|
+
value: k,
|
|
17955
17955
|
done: z
|
|
17956
17956
|
};
|
|
17957
17957
|
}
|
|
17958
|
-
function B(
|
|
17959
|
-
var z =
|
|
17958
|
+
function B(k) {
|
|
17959
|
+
var z = k[o];
|
|
17960
17960
|
if (z !== null) {
|
|
17961
|
-
var
|
|
17962
|
-
|
|
17961
|
+
var P = k[g].read();
|
|
17962
|
+
P !== null && (k[l] = null, k[o] = null, k[a] = null, z(y(P, !1)));
|
|
17963
17963
|
}
|
|
17964
17964
|
}
|
|
17965
|
-
function I(
|
|
17966
|
-
Ct.nextTick(B,
|
|
17965
|
+
function I(k) {
|
|
17966
|
+
Ct.nextTick(B, k);
|
|
17967
17967
|
}
|
|
17968
|
-
function S(
|
|
17969
|
-
return function(
|
|
17970
|
-
|
|
17968
|
+
function S(k, z) {
|
|
17969
|
+
return function(P, C) {
|
|
17970
|
+
k.then(function() {
|
|
17971
17971
|
if (z[_]) {
|
|
17972
|
-
|
|
17972
|
+
P(y(void 0, !0));
|
|
17973
17973
|
return;
|
|
17974
17974
|
}
|
|
17975
|
-
z[f](
|
|
17975
|
+
z[f](P, C);
|
|
17976
17976
|
}, C);
|
|
17977
17977
|
};
|
|
17978
17978
|
}
|
|
@@ -17982,9 +17982,9 @@ function h2() {
|
|
|
17982
17982
|
return this[g];
|
|
17983
17983
|
},
|
|
17984
17984
|
next: function() {
|
|
17985
|
-
var z = this,
|
|
17986
|
-
if (
|
|
17987
|
-
return Promise.reject(
|
|
17985
|
+
var z = this, P = this[u];
|
|
17986
|
+
if (P !== null)
|
|
17987
|
+
return Promise.reject(P);
|
|
17988
17988
|
if (this[_])
|
|
17989
17989
|
return Promise.resolve(y(void 0, !0));
|
|
17990
17990
|
if (this[g].destroyed)
|
|
@@ -18008,38 +18008,38 @@ function h2() {
|
|
|
18008
18008
|
return this;
|
|
18009
18009
|
}), t(n, "return", function() {
|
|
18010
18010
|
var z = this;
|
|
18011
|
-
return new Promise(function(
|
|
18011
|
+
return new Promise(function(P, C) {
|
|
18012
18012
|
z[g].destroy(null, function(N) {
|
|
18013
18013
|
if (N) {
|
|
18014
18014
|
C(N);
|
|
18015
18015
|
return;
|
|
18016
18016
|
}
|
|
18017
|
-
|
|
18017
|
+
P(y(void 0, !0));
|
|
18018
18018
|
});
|
|
18019
18019
|
});
|
|
18020
18020
|
}), n), T), R = function(z) {
|
|
18021
|
-
var
|
|
18021
|
+
var P, C = Object.create(A, (P = {}, t(P, g, {
|
|
18022
18022
|
value: z,
|
|
18023
18023
|
writable: !0
|
|
18024
|
-
}), t(
|
|
18024
|
+
}), t(P, o, {
|
|
18025
18025
|
value: null,
|
|
18026
18026
|
writable: !0
|
|
18027
|
-
}), t(
|
|
18027
|
+
}), t(P, a, {
|
|
18028
18028
|
value: null,
|
|
18029
18029
|
writable: !0
|
|
18030
|
-
}), t(
|
|
18030
|
+
}), t(P, u, {
|
|
18031
18031
|
value: null,
|
|
18032
18032
|
writable: !0
|
|
18033
|
-
}), t(
|
|
18033
|
+
}), t(P, _, {
|
|
18034
18034
|
value: z._readableState.endEmitted,
|
|
18035
18035
|
writable: !0
|
|
18036
|
-
}), t(
|
|
18036
|
+
}), t(P, f, {
|
|
18037
18037
|
value: function(D, Y) {
|
|
18038
18038
|
var Z = C[g].read();
|
|
18039
18039
|
Z ? (C[l] = null, C[o] = null, C[a] = null, D(y(Z, !1))) : (C[o] = D, C[a] = Y);
|
|
18040
18040
|
},
|
|
18041
18041
|
writable: !0
|
|
18042
|
-
}),
|
|
18042
|
+
}), P));
|
|
18043
18043
|
return C[l] = null, i(z, function(N) {
|
|
18044
18044
|
if (N && N.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
18045
18045
|
var D = C[a];
|
|
@@ -18077,9 +18077,9 @@ function bg() {
|
|
|
18077
18077
|
var u = wg(), _;
|
|
18078
18078
|
u && u.debuglog ? _ = u.debuglog("stream") : _ = function() {
|
|
18079
18079
|
};
|
|
18080
|
-
var l = _2(), f = dg(), g = gg(), y = g.getHighWaterMark, B = ys().codes, I = B.ERR_INVALID_ARG_TYPE, S = B.ERR_STREAM_PUSH_AFTER_EOF, T = B.ERR_METHOD_NOT_IMPLEMENTED, A = B.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, R,
|
|
18080
|
+
var l = _2(), f = dg(), g = gg(), y = g.getHighWaterMark, B = ys().codes, I = B.ERR_INVALID_ARG_TYPE, S = B.ERR_STREAM_PUSH_AFTER_EOF, T = B.ERR_METHOD_NOT_IMPLEMENTED, A = B.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, R, k, z;
|
|
18081
18081
|
gs()(Y, e);
|
|
18082
|
-
var
|
|
18082
|
+
var P = f.errorOrDestroy, C = ["error", "close", "destroy", "pause", "resume"];
|
|
18083
18083
|
function N(v, x, et) {
|
|
18084
18084
|
if (typeof v.prependListener == "function") return v.prependListener(x, et);
|
|
18085
18085
|
!v._events || !v._events[x] ? v.on(x, et) : Array.isArray(v._events[x]) ? v._events[x].unshift(et) : v._events[x] = [et, v._events[x]];
|
|
@@ -18117,14 +18117,14 @@ function bg() {
|
|
|
18117
18117
|
if (x === null)
|
|
18118
18118
|
yt.reading = !1, wt(v, yt);
|
|
18119
18119
|
else {
|
|
18120
|
-
var
|
|
18121
|
-
if (St || (
|
|
18122
|
-
|
|
18120
|
+
var kt;
|
|
18121
|
+
if (St || (kt = L(yt, x)), kt)
|
|
18122
|
+
P(v, kt);
|
|
18123
18123
|
else if (yt.objectMode || x && x.length > 0)
|
|
18124
18124
|
if (typeof x != "string" && !yt.objectMode && Object.getPrototypeOf(x) !== r.prototype && (x = o(x)), lt)
|
|
18125
|
-
yt.endEmitted ?
|
|
18125
|
+
yt.endEmitted ? P(v, new A()) : ft(v, yt, x, !0);
|
|
18126
18126
|
else if (yt.ended)
|
|
18127
|
-
|
|
18127
|
+
P(v, new S());
|
|
18128
18128
|
else {
|
|
18129
18129
|
if (yt.destroyed)
|
|
18130
18130
|
return !1;
|
|
@@ -18199,7 +18199,7 @@ function bg() {
|
|
|
18199
18199
|
x.readingMore = !1;
|
|
18200
18200
|
}
|
|
18201
18201
|
Y.prototype._read = function(v) {
|
|
18202
|
-
|
|
18202
|
+
P(this, new T("_read()"));
|
|
18203
18203
|
}, Y.prototype.pipe = function(v, x) {
|
|
18204
18204
|
var et = this, lt = this._readableState;
|
|
18205
18205
|
switch (lt.pipesCount) {
|
|
@@ -18215,8 +18215,8 @@ function bg() {
|
|
|
18215
18215
|
}
|
|
18216
18216
|
lt.pipesCount += 1, _("pipe count=%d opts=%j", lt.pipesCount, x);
|
|
18217
18217
|
var St = (!x || x.end !== !1) && v !== Ct.stdout && v !== Ct.stderr, yt = St ? he : Ee;
|
|
18218
|
-
lt.endEmitted ? Ct.nextTick(yt) : et.once("end", yt), v.on("unpipe",
|
|
18219
|
-
function
|
|
18218
|
+
lt.endEmitted ? Ct.nextTick(yt) : et.once("end", yt), v.on("unpipe", kt);
|
|
18219
|
+
function kt(Se, ae) {
|
|
18220
18220
|
_("onunpipe"), Se === et && ae && ae.hasUnpiped === !1 && (ae.hasUnpiped = !0, we());
|
|
18221
18221
|
}
|
|
18222
18222
|
function he() {
|
|
@@ -18226,7 +18226,7 @@ function bg() {
|
|
|
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",
|
|
18229
|
+
_("cleanup"), v.removeListener("close", de), v.removeListener("finish", fe), v.removeListener("drain", it), v.removeListener("error", Qt), v.removeListener("unpipe", kt), 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
18231
|
et.on("data", Gt);
|
|
18232
18232
|
function Gt(Se) {
|
|
@@ -18235,7 +18235,7 @@ function bg() {
|
|
|
18235
18235
|
_("dest.write", ae), ae === !1 && ((lt.pipesCount === 1 && lt.pipes === v || lt.pipesCount > 1 && ut(lt.pipes, v) !== -1) && !pe && (_("false write response, pause", lt.awaitDrain), lt.awaitDrain++), et.pause());
|
|
18236
18236
|
}
|
|
18237
18237
|
function Qt(Se) {
|
|
18238
|
-
_("onerror", Se), Ee(), v.removeListener("error", Qt), t(v, "error") === 0 &&
|
|
18238
|
+
_("onerror", Se), Ee(), v.removeListener("error", Qt), t(v, "error") === 0 && P(v, Se);
|
|
18239
18239
|
}
|
|
18240
18240
|
N(v, "error", Qt);
|
|
18241
18241
|
function de() {
|
|
@@ -18272,8 +18272,8 @@ function bg() {
|
|
|
18272
18272
|
});
|
|
18273
18273
|
return this;
|
|
18274
18274
|
}
|
|
18275
|
-
var
|
|
18276
|
-
return
|
|
18275
|
+
var kt = ut(x.pipes, v);
|
|
18276
|
+
return kt === -1 ? this : (x.pipes.splice(kt, 1), x.pipesCount -= 1, x.pipesCount === 1 && (x.pipes = x.pipes[0]), v.emit("unpipe", this, et), this);
|
|
18277
18277
|
}, Y.prototype.on = function(v, x) {
|
|
18278
18278
|
var et = e.prototype.on.call(this, v, x), lt = this._readableState;
|
|
18279
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 || Ct.nextTick(X, this)), et;
|
|
@@ -18312,13 +18312,13 @@ function bg() {
|
|
|
18312
18312
|
var x = this, et = this._readableState, lt = !1;
|
|
18313
18313
|
v.on("end", function() {
|
|
18314
18314
|
if (_("wrapped end"), et.decoder && !et.ended) {
|
|
18315
|
-
var
|
|
18316
|
-
|
|
18315
|
+
var kt = et.decoder.end();
|
|
18316
|
+
kt && kt.length && x.push(kt);
|
|
18317
18317
|
}
|
|
18318
18318
|
x.push(null);
|
|
18319
|
-
}), v.on("data", function(
|
|
18320
|
-
if (_("wrapped data"), et.decoder && (
|
|
18321
|
-
var he = x.push(
|
|
18319
|
+
}), v.on("data", function(kt) {
|
|
18320
|
+
if (_("wrapped data"), et.decoder && (kt = et.decoder.write(kt)), !(et.objectMode && kt == null) && !(!et.objectMode && (!kt || !kt.length))) {
|
|
18321
|
+
var he = x.push(kt);
|
|
18322
18322
|
he || (lt = !0, v.pause());
|
|
18323
18323
|
}
|
|
18324
18324
|
});
|
|
@@ -18330,11 +18330,11 @@ function bg() {
|
|
|
18330
18330
|
}(St));
|
|
18331
18331
|
for (var yt = 0; yt < C.length; yt++)
|
|
18332
18332
|
v.on(C[yt], this.emit.bind(this, C[yt]));
|
|
18333
|
-
return this._read = function(
|
|
18334
|
-
_("wrapped _read",
|
|
18333
|
+
return this._read = function(kt) {
|
|
18334
|
+
_("wrapped _read", kt), lt && (lt = !1, v.resume());
|
|
18335
18335
|
}, this;
|
|
18336
18336
|
}, typeof Symbol == "function" && (Y.prototype[Symbol.asyncIterator] = function() {
|
|
18337
|
-
return
|
|
18337
|
+
return k === void 0 && (k = h2()), k(this);
|
|
18338
18338
|
}), Object.defineProperty(Y.prototype, "readableHighWaterMark", {
|
|
18339
18339
|
// making it explicit this property is not enumerable
|
|
18340
18340
|
// because otherwise some prototype manipulation in
|
|
@@ -18523,9 +18523,9 @@ function d2() {
|
|
|
18523
18523
|
var S = f(B);
|
|
18524
18524
|
if (Array.isArray(B[0]) && (B = B[0]), B.length < 2)
|
|
18525
18525
|
throw new r("streams");
|
|
18526
|
-
var T, A = B.map(function(R,
|
|
18527
|
-
var z =
|
|
18528
|
-
return u(R, z,
|
|
18526
|
+
var T, A = B.map(function(R, k) {
|
|
18527
|
+
var z = k < B.length - 1, P = k > 0;
|
|
18528
|
+
return u(R, z, P, function(C) {
|
|
18529
18529
|
T || (T = C), C && A.forEach(_), !z && (A.forEach(_), S(T));
|
|
18530
18530
|
});
|
|
18531
18531
|
});
|
|
@@ -18674,16 +18674,16 @@ function m2() {
|
|
|
18674
18674
|
for (let e = 0; e < 24; ++e) {
|
|
18675
18675
|
const r = t[0] ^ t[10] ^ t[20] ^ t[30] ^ t[40], i = t[1] ^ t[11] ^ t[21] ^ t[31] ^ t[41], o = t[2] ^ t[12] ^ t[22] ^ t[32] ^ t[42], a = t[3] ^ t[13] ^ t[23] ^ t[33] ^ t[43], u = t[4] ^ t[14] ^ t[24] ^ t[34] ^ t[44], _ = t[5] ^ t[15] ^ t[25] ^ t[35] ^ t[45], l = t[6] ^ t[16] ^ t[26] ^ t[36] ^ t[46], f = t[7] ^ t[17] ^ t[27] ^ t[37] ^ t[47], g = t[8] ^ t[18] ^ t[28] ^ t[38] ^ t[48], y = t[9] ^ t[19] ^ t[29] ^ t[39] ^ t[49];
|
|
18676
18676
|
let B = g ^ (o << 1 | a >>> 31), I = y ^ (a << 1 | o >>> 31);
|
|
18677
|
-
const S = t[0] ^ B, T = t[1] ^ I, A = t[10] ^ B, R = t[11] ^ I,
|
|
18677
|
+
const S = t[0] ^ B, T = t[1] ^ I, A = t[10] ^ B, R = t[11] ^ I, k = t[20] ^ B, z = t[21] ^ I, P = t[30] ^ B, C = t[31] ^ I, N = t[40] ^ B, D = t[41] ^ I;
|
|
18678
18678
|
B = r ^ (u << 1 | _ >>> 31), I = i ^ (_ << 1 | u >>> 31);
|
|
18679
18679
|
const Y = t[2] ^ B, Z = t[3] ^ I, ft = t[12] ^ B, L = t[13] ^ I, At = t[22] ^ B, Rt = t[23] ^ I, at = t[32] ^ B, wt = t[33] ^ I, Et = t[42] ^ B, xt = t[43] ^ I;
|
|
18680
18680
|
B = o ^ (l << 1 | f >>> 31), I = a ^ (f << 1 | l >>> 31);
|
|
18681
18681
|
const vt = t[4] ^ B, Bt = t[5] ^ I, jt = t[14] ^ B, W = t[15] ^ I, X = t[24] ^ B, nt = t[25] ^ I, dt = t[34] ^ B, G = t[35] ^ I, M = t[44] ^ B, tt = t[45] ^ I;
|
|
18682
18682
|
B = u ^ (g << 1 | y >>> 31), I = _ ^ (y << 1 | g >>> 31);
|
|
18683
|
-
const ct = t[6] ^ B, ut = t[7] ^ I, v = t[16] ^ B, x = t[17] ^ I, et = t[26] ^ B, lt = t[27] ^ I, St = t[36] ^ B, yt = t[37] ^ I,
|
|
18683
|
+
const ct = t[6] ^ B, ut = t[7] ^ I, v = t[16] ^ B, x = t[17] ^ I, et = t[26] ^ B, lt = t[27] ^ I, St = t[36] ^ B, yt = t[37] ^ I, kt = t[46] ^ B, he = t[47] ^ I;
|
|
18684
18684
|
B = l ^ (r << 1 | i >>> 31), I = f ^ (i << 1 | r >>> 31);
|
|
18685
|
-
const it = t[8] ^ B, pe = t[9] ^ I, we = t[18] ^ B, Gt = t[19] ^ I, Qt = t[28] ^ B, de = t[29] ^ I, fe = t[38] ^ B, Ee = t[39] ^ I, Se = t[48] ^ B, ae = t[49] ^ I, Ne = S, b = T, h = R << 4 | A >>> 28, w = A << 4 | R >>> 28, F =
|
|
18686
|
-
t[0] = Ne ^ ~Dt & $, t[1] = b ^ ~ei & ot, t[10] = Ht ^ ~da & F, t[11] = sa ^ ~ga & U, t[20] = qt ^ ~O & ca, t[21] = Kt ^ ~H & ua, t[30] = pa ^ ~h &
|
|
18685
|
+
const it = t[8] ^ B, pe = t[9] ^ I, we = t[18] ^ B, Gt = t[19] ^ I, Qt = t[28] ^ B, de = t[29] ^ I, fe = t[38] ^ B, Ee = t[39] ^ I, Se = t[48] ^ B, ae = t[49] ^ I, Ne = S, b = T, h = R << 4 | A >>> 28, w = A << 4 | R >>> 28, F = k << 3 | z >>> 29, U = z << 3 | k >>> 29, J = C << 9 | P >>> 23, st = P << 9 | C >>> 23, Pt = N << 18 | D >>> 14, Vt = D << 18 | N >>> 14, qt = Y << 1 | Z >>> 31, Kt = Z << 1 | Y >>> 31, Dt = L << 12 | ft >>> 20, ei = ft << 12 | L >>> 20, ke = At << 10 | Rt >>> 22, pi = Rt << 10 | At >>> 22, ms = wt << 13 | at >>> 19, Le = at << 13 | wt >>> 19, As = Et << 2 | xt >>> 30, m = xt << 2 | Et >>> 30, p = Bt << 30 | vt >>> 2, d = vt << 30 | Bt >>> 2, O = jt << 6 | W >>> 26, H = W << 6 | jt >>> 26, $ = nt << 11 | X >>> 21, ot = X << 11 | nt >>> 21, Ft = dt << 15 | G >>> 17, $t = G << 15 | dt >>> 17, Wt = tt << 29 | M >>> 3, Yt = M << 29 | tt >>> 3, Ht = ct << 28 | ut >>> 4, sa = ut << 28 | ct >>> 4, oa = x << 23 | v >>> 9, aa = v << 23 | x >>> 9, ca = et << 25 | lt >>> 7, ua = lt << 25 | et >>> 7, _a = St << 21 | yt >>> 11, fa = yt << 21 | St >>> 11, la = he << 24 | kt >>> 8, ha = kt << 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
|
+
t[0] = Ne ^ ~Dt & $, t[1] = b ^ ~ei & ot, t[10] = Ht ^ ~da & F, t[11] = sa ^ ~ga & U, t[20] = qt ^ ~O & ca, t[21] = Kt ^ ~H & ua, t[30] = pa ^ ~h & ke, t[31] = wa ^ ~w & pi, t[40] = p ^ ~oa & ya, t[41] = d ^ ~aa & ba, t[2] = Dt ^ ~$ & _a, t[3] = ei ^ ~ot & fa, t[12] = da ^ ~F & ms, t[13] = ga ^ ~U & Le, t[22] = O ^ ~ca & ma, t[23] = H ^ ~ua & Aa, t[32] = h ^ ~ke & Ft, t[33] = w ^ ~pi & $t, t[42] = oa ^ ~ya & J, t[43] = aa ^ ~ba & st, t[4] = $ ^ ~_a & Ea, t[5] = ot ^ ~fa & va, t[14] = F ^ ~ms & Wt, t[15] = U ^ ~Le & Yt, t[24] = ca ^ ~ma & Pt, 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 ^ ~Pt & 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 & d, t[8] = Ea ^ ~Ne & Dt, t[9] = va ^ ~b & ei, t[18] = Wt ^ ~Ht & da, t[19] = Yt ^ ~sa & ga, t[28] = Pt ^ ~qt & O, t[29] = Vt ^ ~Kt & H, t[38] = la ^ ~pa & h, t[39] = ha ^ ~wa & w, t[48] = As ^ ~p & oa, t[49] = m ^ ~d & aa, t[0] ^= n[e * 2], t[1] ^= n[e * 2 + 1];
|
|
18687
18687
|
}
|
|
18688
18688
|
}, ou;
|
|
18689
18689
|
}
|
|
@@ -18787,39 +18787,39 @@ function R2() {
|
|
|
18787
18787
|
throw new i("retryOn property expects an array or function");
|
|
18788
18788
|
return new Promise(function(I, S) {
|
|
18789
18789
|
var T = function(R) {
|
|
18790
|
-
var
|
|
18791
|
-
o(
|
|
18790
|
+
var k = typeof Request < "u" && l instanceof Request ? l.clone() : l;
|
|
18791
|
+
o(k, f).then(function(z) {
|
|
18792
18792
|
if (Array.isArray(B) && B.indexOf(z.status) === -1)
|
|
18793
18793
|
I(z);
|
|
18794
18794
|
else if (typeof B == "function")
|
|
18795
18795
|
try {
|
|
18796
|
-
return Promise.resolve(B(R, null, z)).then(function(
|
|
18797
|
-
|
|
18796
|
+
return Promise.resolve(B(R, null, z)).then(function(P) {
|
|
18797
|
+
P ? A(R, null, z) : I(z);
|
|
18798
18798
|
}).catch(S);
|
|
18799
|
-
} catch (
|
|
18800
|
-
S(
|
|
18799
|
+
} catch (P) {
|
|
18800
|
+
S(P);
|
|
18801
18801
|
}
|
|
18802
18802
|
else
|
|
18803
18803
|
R < g ? A(R, null, z) : I(z);
|
|
18804
18804
|
}).catch(function(z) {
|
|
18805
18805
|
if (typeof B == "function")
|
|
18806
18806
|
try {
|
|
18807
|
-
Promise.resolve(B(R, z, null)).then(function(
|
|
18808
|
-
|
|
18809
|
-
}).catch(function(
|
|
18810
|
-
S(
|
|
18807
|
+
Promise.resolve(B(R, z, null)).then(function(P) {
|
|
18808
|
+
P ? A(R, z, null) : S(z);
|
|
18809
|
+
}).catch(function(P) {
|
|
18810
|
+
S(P);
|
|
18811
18811
|
});
|
|
18812
|
-
} catch (
|
|
18813
|
-
S(
|
|
18812
|
+
} catch (P) {
|
|
18813
|
+
S(P);
|
|
18814
18814
|
}
|
|
18815
18815
|
else R < g ? A(R, z, null) : S(z);
|
|
18816
18816
|
});
|
|
18817
18817
|
};
|
|
18818
|
-
function A(R,
|
|
18819
|
-
var
|
|
18818
|
+
function A(R, k, z) {
|
|
18819
|
+
var P = typeof y == "function" ? y(R, k, z) : y;
|
|
18820
18820
|
setTimeout(function() {
|
|
18821
18821
|
T(++R);
|
|
18822
|
-
},
|
|
18822
|
+
}, P);
|
|
18823
18823
|
}
|
|
18824
18824
|
T(0);
|
|
18825
18825
|
});
|
|
@@ -18857,7 +18857,7 @@ xg(self, "wasm_bindgen_worker_init").then(async ({ init: n, receiver: t }) => {
|
|
|
18857
18857
|
});
|
|
18858
18858
|
await e.default(n), postMessage({ type: "wasm_bindgen_worker_ready" }), e.wbg_rayon_start_worker(t);
|
|
18859
18859
|
});
|
|
18860
|
-
async function
|
|
18860
|
+
async function k2(n, t, e) {
|
|
18861
18861
|
if (e.numThreads() === 0)
|
|
18862
18862
|
throw new Error("num_threads must be > 0.");
|
|
18863
18863
|
const r = {
|
|
@@ -18888,7 +18888,7 @@ async function P2(n, t, e) {
|
|
|
18888
18888
|
), e.build();
|
|
18889
18889
|
}
|
|
18890
18890
|
let s;
|
|
18891
|
-
function
|
|
18891
|
+
function ks(n) {
|
|
18892
18892
|
const t = s.__externref_table_alloc();
|
|
18893
18893
|
return s.__wbindgen_export_2.set(t, n), t;
|
|
18894
18894
|
}
|
|
@@ -18896,7 +18896,7 @@ function Vi(n, t) {
|
|
|
18896
18896
|
try {
|
|
18897
18897
|
return n.apply(this, t);
|
|
18898
18898
|
} catch (e) {
|
|
18899
|
-
const r =
|
|
18899
|
+
const r = ks(e);
|
|
18900
18900
|
s.__wbindgen_exn_store(r);
|
|
18901
18901
|
}
|
|
18902
18902
|
}
|
|
@@ -18904,9 +18904,9 @@ const Rg = typeof TextDecoder < "u" ? new TextDecoder("utf-8", { ignoreBOM: !0,
|
|
|
18904
18904
|
throw Error("TextDecoder not available");
|
|
18905
18905
|
} };
|
|
18906
18906
|
typeof TextDecoder < "u" && Rg.decode();
|
|
18907
|
-
let
|
|
18907
|
+
let Ps = null;
|
|
18908
18908
|
function ts() {
|
|
18909
|
-
return (
|
|
18909
|
+
return (Ps === null || Ps.buffer !== s.memory.buffer) && (Ps = new Uint8Array(s.memory.buffer)), Ps;
|
|
18910
18910
|
}
|
|
18911
18911
|
function xs(n, t) {
|
|
18912
18912
|
return n = n >>> 0, Rg.decode(ts().slice(n, n + t));
|
|
@@ -18914,7 +18914,7 @@ function xs(n, t) {
|
|
|
18914
18914
|
let j = 0;
|
|
18915
18915
|
const zg = typeof TextEncoder < "u" ? new TextEncoder("utf-8") : { encode: () => {
|
|
18916
18916
|
throw Error("TextEncoder not available");
|
|
18917
|
-
} },
|
|
18917
|
+
} }, P2 = function(n, t) {
|
|
18918
18918
|
const e = zg.encode(n);
|
|
18919
18919
|
return t.set(e), {
|
|
18920
18920
|
read: n.length,
|
|
@@ -18936,7 +18936,7 @@ function go(n, t, e) {
|
|
|
18936
18936
|
}
|
|
18937
18937
|
if (a !== r) {
|
|
18938
18938
|
a !== 0 && (n = n.slice(a)), i = e(i, r, r = a + n.length * 3, 1) >>> 0;
|
|
18939
|
-
const u = ts().subarray(i + a, i + r), _ =
|
|
18939
|
+
const u = ts().subarray(i + a, i + r), _ = P2(n, u);
|
|
18940
18940
|
a += _.written, i = e(i, r, a, 1) >>> 0;
|
|
18941
18941
|
}
|
|
18942
18942
|
return j = a, i;
|
|
@@ -20101,7 +20101,7 @@ class ls {
|
|
|
20101
20101
|
const e = s.compactciphertextlistexpander_get_uint248(this.__wbg_ptr, t);
|
|
20102
20102
|
if (e[2])
|
|
20103
20103
|
throw c(e[1]);
|
|
20104
|
-
return
|
|
20104
|
+
return kn.__wrap(e[0]);
|
|
20105
20105
|
}
|
|
20106
20106
|
/**
|
|
20107
20107
|
* @param {number} index
|
|
@@ -20111,7 +20111,7 @@ class ls {
|
|
|
20111
20111
|
const e = s.compactciphertextlistexpander_get_uint256(this.__wbg_ptr, t);
|
|
20112
20112
|
if (e[2])
|
|
20113
20113
|
throw c(e[1]);
|
|
20114
|
-
return
|
|
20114
|
+
return Pn.__wrap(e[0]);
|
|
20115
20115
|
}
|
|
20116
20116
|
/**
|
|
20117
20117
|
* @param {number} index
|
|
@@ -20421,7 +20421,7 @@ class ls {
|
|
|
20421
20421
|
const e = s.compactciphertextlistexpander_get_int176(this.__wbg_ptr, t);
|
|
20422
20422
|
if (e[2])
|
|
20423
20423
|
throw c(e[1]);
|
|
20424
|
-
return
|
|
20424
|
+
return kr.__wrap(e[0]);
|
|
20425
20425
|
}
|
|
20426
20426
|
/**
|
|
20427
20427
|
* @param {number} index
|
|
@@ -20431,7 +20431,7 @@ class ls {
|
|
|
20431
20431
|
const e = s.compactciphertextlistexpander_get_int184(this.__wbg_ptr, t);
|
|
20432
20432
|
if (e[2])
|
|
20433
20433
|
throw c(e[1]);
|
|
20434
|
-
return
|
|
20434
|
+
return Pr.__wrap(e[0]);
|
|
20435
20435
|
}
|
|
20436
20436
|
/**
|
|
20437
20437
|
* @param {number} index
|
|
@@ -22489,10 +22489,10 @@ class Sr {
|
|
|
22489
22489
|
const vh = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
22490
22490
|
}, unregister: () => {
|
|
22491
22491
|
} } : new FinalizationRegistry((n) => s.__wbg_fheint176_free(n >>> 0, 1));
|
|
22492
|
-
class
|
|
22492
|
+
class kr {
|
|
22493
22493
|
static __wrap(t) {
|
|
22494
22494
|
t = t >>> 0;
|
|
22495
|
-
const e = Object.create(
|
|
22495
|
+
const e = Object.create(kr.prototype);
|
|
22496
22496
|
return e.__wbg_ptr = t, vh.register(e, e.__wbg_ptr, e), e;
|
|
22497
22497
|
}
|
|
22498
22498
|
__destroy_into_raw() {
|
|
@@ -22513,7 +22513,7 @@ class Pr {
|
|
|
22513
22513
|
const r = s.fheint176_encrypt_with_client_key(t, e.__wbg_ptr);
|
|
22514
22514
|
if (r[2])
|
|
22515
22515
|
throw c(r[1]);
|
|
22516
|
-
return
|
|
22516
|
+
return kr.__wrap(r[0]);
|
|
22517
22517
|
}
|
|
22518
22518
|
/**
|
|
22519
22519
|
* @param {any} value
|
|
@@ -22525,7 +22525,7 @@ class Pr {
|
|
|
22525
22525
|
const r = s.fheint176_encrypt_with_public_key(t, e.__wbg_ptr);
|
|
22526
22526
|
if (r[2])
|
|
22527
22527
|
throw c(r[1]);
|
|
22528
|
-
return
|
|
22528
|
+
return kr.__wrap(r[0]);
|
|
22529
22529
|
}
|
|
22530
22530
|
/**
|
|
22531
22531
|
* @param {any} value
|
|
@@ -22537,7 +22537,7 @@ class Pr {
|
|
|
22537
22537
|
const r = s.fheint176_encrypt_with_compressed_public_key(t, e.__wbg_ptr);
|
|
22538
22538
|
if (r[2])
|
|
22539
22539
|
throw c(r[1]);
|
|
22540
|
-
return
|
|
22540
|
+
return kr.__wrap(r[0]);
|
|
22541
22541
|
}
|
|
22542
22542
|
/**
|
|
22543
22543
|
* @param {TfheClientKey} client_key
|
|
@@ -22568,7 +22568,7 @@ class Pr {
|
|
|
22568
22568
|
const e = q(t, s.__wbindgen_malloc), r = j, i = s.fheint176_deserialize(e, r);
|
|
22569
22569
|
if (i[2])
|
|
22570
22570
|
throw c(i[1]);
|
|
22571
|
-
return
|
|
22571
|
+
return kr.__wrap(i[0]);
|
|
22572
22572
|
}
|
|
22573
22573
|
/**
|
|
22574
22574
|
* @param {bigint} serialized_size_limit
|
|
@@ -22590,16 +22590,16 @@ class Pr {
|
|
|
22590
22590
|
const r = q(t, s.__wbindgen_malloc), i = j, o = s.fheint176_safe_deserialize(r, i, e);
|
|
22591
22591
|
if (o[2])
|
|
22592
22592
|
throw c(o[1]);
|
|
22593
|
-
return
|
|
22593
|
+
return kr.__wrap(o[0]);
|
|
22594
22594
|
}
|
|
22595
22595
|
}
|
|
22596
22596
|
const xh = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
22597
22597
|
}, unregister: () => {
|
|
22598
22598
|
} } : new FinalizationRegistry((n) => s.__wbg_fheint184_free(n >>> 0, 1));
|
|
22599
|
-
class
|
|
22599
|
+
class Pr {
|
|
22600
22600
|
static __wrap(t) {
|
|
22601
22601
|
t = t >>> 0;
|
|
22602
|
-
const e = Object.create(
|
|
22602
|
+
const e = Object.create(Pr.prototype);
|
|
22603
22603
|
return e.__wbg_ptr = t, xh.register(e, e.__wbg_ptr, e), e;
|
|
22604
22604
|
}
|
|
22605
22605
|
__destroy_into_raw() {
|
|
@@ -22620,7 +22620,7 @@ class kr {
|
|
|
22620
22620
|
const r = s.fheint184_encrypt_with_client_key(t, e.__wbg_ptr);
|
|
22621
22621
|
if (r[2])
|
|
22622
22622
|
throw c(r[1]);
|
|
22623
|
-
return
|
|
22623
|
+
return Pr.__wrap(r[0]);
|
|
22624
22624
|
}
|
|
22625
22625
|
/**
|
|
22626
22626
|
* @param {any} value
|
|
@@ -22632,7 +22632,7 @@ class kr {
|
|
|
22632
22632
|
const r = s.fheint184_encrypt_with_public_key(t, e.__wbg_ptr);
|
|
22633
22633
|
if (r[2])
|
|
22634
22634
|
throw c(r[1]);
|
|
22635
|
-
return
|
|
22635
|
+
return Pr.__wrap(r[0]);
|
|
22636
22636
|
}
|
|
22637
22637
|
/**
|
|
22638
22638
|
* @param {any} value
|
|
@@ -22644,7 +22644,7 @@ class kr {
|
|
|
22644
22644
|
const r = s.fheint184_encrypt_with_compressed_public_key(t, e.__wbg_ptr);
|
|
22645
22645
|
if (r[2])
|
|
22646
22646
|
throw c(r[1]);
|
|
22647
|
-
return
|
|
22647
|
+
return Pr.__wrap(r[0]);
|
|
22648
22648
|
}
|
|
22649
22649
|
/**
|
|
22650
22650
|
* @param {TfheClientKey} client_key
|
|
@@ -22675,7 +22675,7 @@ class kr {
|
|
|
22675
22675
|
const e = q(t, s.__wbindgen_malloc), r = j, i = s.fheint184_deserialize(e, r);
|
|
22676
22676
|
if (i[2])
|
|
22677
22677
|
throw c(i[1]);
|
|
22678
|
-
return
|
|
22678
|
+
return Pr.__wrap(i[0]);
|
|
22679
22679
|
}
|
|
22680
22680
|
/**
|
|
22681
22681
|
* @param {bigint} serialized_size_limit
|
|
@@ -22697,7 +22697,7 @@ class kr {
|
|
|
22697
22697
|
const r = q(t, s.__wbindgen_malloc), i = j, o = s.fheint184_safe_deserialize(r, i, e);
|
|
22698
22698
|
if (o[2])
|
|
22699
22699
|
throw c(o[1]);
|
|
22700
|
-
return
|
|
22700
|
+
return Pr.__wrap(o[0]);
|
|
22701
22701
|
}
|
|
22702
22702
|
}
|
|
22703
22703
|
const Rh = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
@@ -23128,18 +23128,18 @@ class Tr {
|
|
|
23128
23128
|
return Tr.__wrap(o[0]);
|
|
23129
23129
|
}
|
|
23130
23130
|
}
|
|
23131
|
-
const
|
|
23131
|
+
const kh = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
23132
23132
|
}, unregister: () => {
|
|
23133
23133
|
} } : new FinalizationRegistry((n) => s.__wbg_fheint208_free(n >>> 0, 1));
|
|
23134
23134
|
class Cr {
|
|
23135
23135
|
static __wrap(t) {
|
|
23136
23136
|
t = t >>> 0;
|
|
23137
23137
|
const e = Object.create(Cr.prototype);
|
|
23138
|
-
return e.__wbg_ptr = t,
|
|
23138
|
+
return e.__wbg_ptr = t, kh.register(e, e.__wbg_ptr, e), e;
|
|
23139
23139
|
}
|
|
23140
23140
|
__destroy_into_raw() {
|
|
23141
23141
|
const t = this.__wbg_ptr;
|
|
23142
|
-
return this.__wbg_ptr = 0,
|
|
23142
|
+
return this.__wbg_ptr = 0, kh.unregister(this), t;
|
|
23143
23143
|
}
|
|
23144
23144
|
free() {
|
|
23145
23145
|
const t = this.__destroy_into_raw();
|
|
@@ -23235,18 +23235,18 @@ class Cr {
|
|
|
23235
23235
|
return Cr.__wrap(o[0]);
|
|
23236
23236
|
}
|
|
23237
23237
|
}
|
|
23238
|
-
const
|
|
23238
|
+
const Ph = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
23239
23239
|
}, unregister: () => {
|
|
23240
23240
|
} } : new FinalizationRegistry((n) => s.__wbg_fheint216_free(n >>> 0, 1));
|
|
23241
23241
|
class Nr {
|
|
23242
23242
|
static __wrap(t) {
|
|
23243
23243
|
t = t >>> 0;
|
|
23244
23244
|
const e = Object.create(Nr.prototype);
|
|
23245
|
-
return e.__wbg_ptr = t,
|
|
23245
|
+
return e.__wbg_ptr = t, Ph.register(e, e.__wbg_ptr, e), e;
|
|
23246
23246
|
}
|
|
23247
23247
|
__destroy_into_raw() {
|
|
23248
23248
|
const t = this.__wbg_ptr;
|
|
23249
|
-
return this.__wbg_ptr = 0,
|
|
23249
|
+
return this.__wbg_ptr = 0, Ph.unregister(this), t;
|
|
23250
23250
|
}
|
|
23251
23251
|
free() {
|
|
23252
23252
|
const t = this.__destroy_into_raw();
|
|
@@ -28160,10 +28160,10 @@ class Sn {
|
|
|
28160
28160
|
const Ep = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
28161
28161
|
}, unregister: () => {
|
|
28162
28162
|
} } : new FinalizationRegistry((n) => s.__wbg_fheuint248_free(n >>> 0, 1));
|
|
28163
|
-
class
|
|
28163
|
+
class kn {
|
|
28164
28164
|
static __wrap(t) {
|
|
28165
28165
|
t = t >>> 0;
|
|
28166
|
-
const e = Object.create(
|
|
28166
|
+
const e = Object.create(kn.prototype);
|
|
28167
28167
|
return e.__wbg_ptr = t, Ep.register(e, e.__wbg_ptr, e), e;
|
|
28168
28168
|
}
|
|
28169
28169
|
__destroy_into_raw() {
|
|
@@ -28184,7 +28184,7 @@ class Pn {
|
|
|
28184
28184
|
const r = s.fheuint248_encrypt_with_client_key(t, e.__wbg_ptr);
|
|
28185
28185
|
if (r[2])
|
|
28186
28186
|
throw c(r[1]);
|
|
28187
|
-
return
|
|
28187
|
+
return kn.__wrap(r[0]);
|
|
28188
28188
|
}
|
|
28189
28189
|
/**
|
|
28190
28190
|
* @param {any} value
|
|
@@ -28196,7 +28196,7 @@ class Pn {
|
|
|
28196
28196
|
const r = s.fheuint248_encrypt_with_public_key(t, e.__wbg_ptr);
|
|
28197
28197
|
if (r[2])
|
|
28198
28198
|
throw c(r[1]);
|
|
28199
|
-
return
|
|
28199
|
+
return kn.__wrap(r[0]);
|
|
28200
28200
|
}
|
|
28201
28201
|
/**
|
|
28202
28202
|
* @param {any} value
|
|
@@ -28208,7 +28208,7 @@ class Pn {
|
|
|
28208
28208
|
const r = s.fheuint248_encrypt_with_compressed_public_key(t, e.__wbg_ptr);
|
|
28209
28209
|
if (r[2])
|
|
28210
28210
|
throw c(r[1]);
|
|
28211
|
-
return
|
|
28211
|
+
return kn.__wrap(r[0]);
|
|
28212
28212
|
}
|
|
28213
28213
|
/**
|
|
28214
28214
|
* @param {TfheClientKey} client_key
|
|
@@ -28239,7 +28239,7 @@ class Pn {
|
|
|
28239
28239
|
const e = q(t, s.__wbindgen_malloc), r = j, i = s.fheuint248_deserialize(e, r);
|
|
28240
28240
|
if (i[2])
|
|
28241
28241
|
throw c(i[1]);
|
|
28242
|
-
return
|
|
28242
|
+
return kn.__wrap(i[0]);
|
|
28243
28243
|
}
|
|
28244
28244
|
/**
|
|
28245
28245
|
* @param {bigint} serialized_size_limit
|
|
@@ -28261,16 +28261,16 @@ class Pn {
|
|
|
28261
28261
|
const r = q(t, s.__wbindgen_malloc), i = j, o = s.fheuint248_safe_deserialize(r, i, e);
|
|
28262
28262
|
if (o[2])
|
|
28263
28263
|
throw c(o[1]);
|
|
28264
|
-
return
|
|
28264
|
+
return kn.__wrap(o[0]);
|
|
28265
28265
|
}
|
|
28266
28266
|
}
|
|
28267
28267
|
const vp = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
28268
28268
|
}, unregister: () => {
|
|
28269
28269
|
} } : new FinalizationRegistry((n) => s.__wbg_fheuint256_free(n >>> 0, 1));
|
|
28270
|
-
class
|
|
28270
|
+
class Pn {
|
|
28271
28271
|
static __wrap(t) {
|
|
28272
28272
|
t = t >>> 0;
|
|
28273
|
-
const e = Object.create(
|
|
28273
|
+
const e = Object.create(Pn.prototype);
|
|
28274
28274
|
return e.__wbg_ptr = t, vp.register(e, e.__wbg_ptr, e), e;
|
|
28275
28275
|
}
|
|
28276
28276
|
__destroy_into_raw() {
|
|
@@ -28291,7 +28291,7 @@ class kn {
|
|
|
28291
28291
|
const r = s.fheuint256_encrypt_with_client_key(t, e.__wbg_ptr);
|
|
28292
28292
|
if (r[2])
|
|
28293
28293
|
throw c(r[1]);
|
|
28294
|
-
return
|
|
28294
|
+
return Pn.__wrap(r[0]);
|
|
28295
28295
|
}
|
|
28296
28296
|
/**
|
|
28297
28297
|
* @param {any} value
|
|
@@ -28303,7 +28303,7 @@ class kn {
|
|
|
28303
28303
|
const r = s.fheuint256_encrypt_with_public_key(t, e.__wbg_ptr);
|
|
28304
28304
|
if (r[2])
|
|
28305
28305
|
throw c(r[1]);
|
|
28306
|
-
return
|
|
28306
|
+
return Pn.__wrap(r[0]);
|
|
28307
28307
|
}
|
|
28308
28308
|
/**
|
|
28309
28309
|
* @param {any} value
|
|
@@ -28315,7 +28315,7 @@ class kn {
|
|
|
28315
28315
|
const r = s.fheuint256_encrypt_with_compressed_public_key(t, e.__wbg_ptr);
|
|
28316
28316
|
if (r[2])
|
|
28317
28317
|
throw c(r[1]);
|
|
28318
|
-
return
|
|
28318
|
+
return Pn.__wrap(r[0]);
|
|
28319
28319
|
}
|
|
28320
28320
|
/**
|
|
28321
28321
|
* @param {TfheClientKey} client_key
|
|
@@ -28346,7 +28346,7 @@ class kn {
|
|
|
28346
28346
|
const e = q(t, s.__wbindgen_malloc), r = j, i = s.fheuint256_deserialize(e, r);
|
|
28347
28347
|
if (i[2])
|
|
28348
28348
|
throw c(i[1]);
|
|
28349
|
-
return
|
|
28349
|
+
return Pn.__wrap(i[0]);
|
|
28350
28350
|
}
|
|
28351
28351
|
/**
|
|
28352
28352
|
* @param {bigint} serialized_size_limit
|
|
@@ -28368,7 +28368,7 @@ class kn {
|
|
|
28368
28368
|
const r = q(t, s.__wbindgen_malloc), i = j, o = s.fheuint256_safe_deserialize(r, i, e);
|
|
28369
28369
|
if (o[2])
|
|
28370
28370
|
throw c(o[1]);
|
|
28371
|
-
return
|
|
28371
|
+
return Pn.__wrap(o[0]);
|
|
28372
28372
|
}
|
|
28373
28373
|
}
|
|
28374
28374
|
const xp = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
@@ -28906,18 +28906,18 @@ class Cn {
|
|
|
28906
28906
|
return Cn.__wrap(o[0]);
|
|
28907
28907
|
}
|
|
28908
28908
|
}
|
|
28909
|
-
const
|
|
28909
|
+
const kp = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
28910
28910
|
}, unregister: () => {
|
|
28911
28911
|
} } : new FinalizationRegistry((n) => s.__wbg_fheuint56_free(n >>> 0, 1));
|
|
28912
28912
|
class Nn {
|
|
28913
28913
|
static __wrap(t) {
|
|
28914
28914
|
t = t >>> 0;
|
|
28915
28915
|
const e = Object.create(Nn.prototype);
|
|
28916
|
-
return e.__wbg_ptr = t,
|
|
28916
|
+
return e.__wbg_ptr = t, kp.register(e, e.__wbg_ptr, e), e;
|
|
28917
28917
|
}
|
|
28918
28918
|
__destroy_into_raw() {
|
|
28919
28919
|
const t = this.__wbg_ptr;
|
|
28920
|
-
return this.__wbg_ptr = 0,
|
|
28920
|
+
return this.__wbg_ptr = 0, kp.unregister(this), t;
|
|
28921
28921
|
}
|
|
28922
28922
|
free() {
|
|
28923
28923
|
const t = this.__destroy_into_raw();
|
|
@@ -29013,18 +29013,18 @@ class Nn {
|
|
|
29013
29013
|
return Nn.__wrap(o[0]);
|
|
29014
29014
|
}
|
|
29015
29015
|
}
|
|
29016
|
-
const
|
|
29016
|
+
const Pp = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
29017
29017
|
}, unregister: () => {
|
|
29018
29018
|
} } : new FinalizationRegistry((n) => s.__wbg_fheuint6_free(n >>> 0, 1));
|
|
29019
29019
|
class Ln {
|
|
29020
29020
|
static __wrap(t) {
|
|
29021
29021
|
t = t >>> 0;
|
|
29022
29022
|
const e = Object.create(Ln.prototype);
|
|
29023
|
-
return e.__wbg_ptr = t,
|
|
29023
|
+
return e.__wbg_ptr = t, Pp.register(e, e.__wbg_ptr, e), e;
|
|
29024
29024
|
}
|
|
29025
29025
|
__destroy_into_raw() {
|
|
29026
29026
|
const t = this.__wbg_ptr;
|
|
29027
|
-
return this.__wbg_ptr = 0,
|
|
29027
|
+
return this.__wbg_ptr = 0, Pp.unregister(this), t;
|
|
29028
29028
|
}
|
|
29029
29029
|
free() {
|
|
29030
29030
|
const t = this.__destroy_into_raw();
|
|
@@ -30410,19 +30410,19 @@ function O2() {
|
|
|
30410
30410
|
const r = e.stack, i = go(r, s.__wbindgen_malloc, s.__wbindgen_realloc), o = j;
|
|
30411
30411
|
nr().setInt32(t + 4 * 1, o, !0), nr().setInt32(t + 4 * 0, i, !0);
|
|
30412
30412
|
}, n.wbg.__wbg_startWorkers_2ca11761e08ff5d5 = function(t, e, r) {
|
|
30413
|
-
return
|
|
30413
|
+
return k2(t, e, na.__wrap(r));
|
|
30414
30414
|
}, n.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
30415
30415
|
const t = typeof Co > "u" ? null : Co;
|
|
30416
|
-
return di(t) ? 0 :
|
|
30416
|
+
return di(t) ? 0 : ks(t);
|
|
30417
30417
|
}, n.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
|
|
30418
30418
|
const t = typeof globalThis > "u" ? null : globalThis;
|
|
30419
|
-
return di(t) ? 0 :
|
|
30419
|
+
return di(t) ? 0 : ks(t);
|
|
30420
30420
|
}, n.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
30421
30421
|
const t = typeof self > "u" ? null : self;
|
|
30422
|
-
return di(t) ? 0 :
|
|
30422
|
+
return di(t) ? 0 : ks(t);
|
|
30423
30423
|
}, n.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
30424
30424
|
const t = typeof window > "u" ? null : window;
|
|
30425
|
-
return di(t) ? 0 :
|
|
30425
|
+
return di(t) ? 0 : ks(t);
|
|
30426
30426
|
}, n.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(t, e, r) {
|
|
30427
30427
|
return t.subarray(e >>> 0, r >>> 0);
|
|
30428
30428
|
}, n.wbg.__wbg_toString_2f76f493957b63da = function(t, e, r) {
|
|
@@ -30491,10 +30491,10 @@ function O2() {
|
|
|
30491
30491
|
}, n;
|
|
30492
30492
|
}
|
|
30493
30493
|
function T2(n, t) {
|
|
30494
|
-
n.wbg.memory = t || new WebAssembly.Memory({ initial:
|
|
30494
|
+
n.wbg.memory = t || new WebAssembly.Memory({ initial: 21, maximum: 16384, shared: !0 });
|
|
30495
30495
|
}
|
|
30496
30496
|
function C2(n, t, e) {
|
|
30497
|
-
if (s = n.exports, ro.__wbindgen_wasm_module = t, Fs = null,
|
|
30497
|
+
if (s = n.exports, ro.__wbindgen_wasm_module = t, Fs = null, Ps = null, typeof e < "u" && (typeof e != "number" || e === 0 || e % 65536 !== 0))
|
|
30498
30498
|
throw "invalid stack size";
|
|
30499
30499
|
return s.__wbindgen_start(e), s;
|
|
30500
30500
|
}
|
|
@@ -30532,8 +30532,8 @@ var N2 = /* @__PURE__ */ Object.freeze({
|
|
|
30532
30532
|
FheInt16: zr,
|
|
30533
30533
|
FheInt160: Br,
|
|
30534
30534
|
FheInt168: Sr,
|
|
30535
|
-
FheInt176:
|
|
30536
|
-
FheInt184:
|
|
30535
|
+
FheInt176: kr,
|
|
30536
|
+
FheInt184: Pr,
|
|
30537
30537
|
FheInt192: Fr,
|
|
30538
30538
|
FheInt2: Ir,
|
|
30539
30539
|
FheInt200: Or,
|
|
@@ -30585,8 +30585,8 @@ var N2 = /* @__PURE__ */ Object.freeze({
|
|
|
30585
30585
|
FheUint232: zn,
|
|
30586
30586
|
FheUint24: Bn,
|
|
30587
30587
|
FheUint240: Sn,
|
|
30588
|
-
FheUint248:
|
|
30589
|
-
FheUint256:
|
|
30588
|
+
FheUint248: kn,
|
|
30589
|
+
FheUint256: Pn,
|
|
30590
30590
|
FheUint32: Fn,
|
|
30591
30591
|
FheUint4: In,
|
|
30592
30592
|
FheUint40: On,
|
|
@@ -30734,7 +30734,7 @@ function D2(n, t) {
|
|
|
30734
30734
|
throw Ui(i[1]);
|
|
30735
30735
|
return ps.__wrap(i[0]);
|
|
30736
30736
|
}
|
|
30737
|
-
function
|
|
30737
|
+
function kg(n, t) {
|
|
30738
30738
|
const e = t(n.length * 4, 4) >>> 0;
|
|
30739
30739
|
for (let r = 0; r < n.length; r++) {
|
|
30740
30740
|
const i = Wi(n[r]);
|
|
@@ -30743,12 +30743,12 @@ function Pg(n, t) {
|
|
|
30743
30743
|
return ee = n.length, e;
|
|
30744
30744
|
}
|
|
30745
30745
|
function U2(n, t, e) {
|
|
30746
|
-
const r =
|
|
30746
|
+
const r = kg(n, rt.__wbindgen_malloc), i = ee, o = Si(t, rt.__wbindgen_malloc, rt.__wbindgen_realloc), a = ee, u = Si(e, rt.__wbindgen_malloc, rt.__wbindgen_realloc), _ = ee, l = rt.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]);
|
|
30750
30750
|
}
|
|
30751
|
-
function
|
|
30751
|
+
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)
|
|
@@ -30797,7 +30797,7 @@ function Q2(n, t, e, r, i, o, a) {
|
|
|
30797
30797
|
const u = rt.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
|
-
var _ =
|
|
30800
|
+
var _ = Pg(u[0], u[1]).slice();
|
|
30801
30801
|
return rt.__wbindgen_free(u[0], u[1] * 4, 4), _;
|
|
30802
30802
|
}
|
|
30803
30803
|
typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => rt.__wbg_ciphertexthandle_free(n >>> 0, 1));
|
|
@@ -30819,12 +30819,11 @@ class ia {
|
|
|
30819
30819
|
rt.__wbg_client_free(t, 0);
|
|
30820
30820
|
}
|
|
30821
30821
|
}
|
|
30822
|
-
typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => rt.__wbg_cryptoboxct_free(n >>> 0, 1));
|
|
30823
30822
|
typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => rt.__wbg_eip712domainmsg_free(n >>> 0, 1));
|
|
30824
30823
|
typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => rt.__wbg_parseduserdecryptionrequest_free(n >>> 0, 1));
|
|
30825
30824
|
const Qp = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
30826
30825
|
}, unregister: () => {
|
|
30827
|
-
} } : new FinalizationRegistry((n) => rt.
|
|
30826
|
+
} } : new FinalizationRegistry((n) => rt.__wbg_privateenckeymlkem512_free(n >>> 0, 1));
|
|
30828
30827
|
class Mi {
|
|
30829
30828
|
static __wrap(t) {
|
|
30830
30829
|
t = t >>> 0;
|
|
@@ -30837,13 +30836,13 @@ class Mi {
|
|
|
30837
30836
|
}
|
|
30838
30837
|
free() {
|
|
30839
30838
|
const t = this.__destroy_into_raw();
|
|
30840
|
-
rt.
|
|
30839
|
+
rt.__wbg_privateenckeymlkem512_free(t, 0);
|
|
30841
30840
|
}
|
|
30842
30841
|
}
|
|
30843
30842
|
typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => rt.__wbg_privatesigkey_free(n >>> 0, 1));
|
|
30844
30843
|
const Kp = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
30845
30844
|
}, unregister: () => {
|
|
30846
|
-
} } : new FinalizationRegistry((n) => rt.
|
|
30845
|
+
} } : new FinalizationRegistry((n) => rt.__wbg_publicenckeymlkem512_free(n >>> 0, 1));
|
|
30847
30846
|
class bs {
|
|
30848
30847
|
static __wrap(t) {
|
|
30849
30848
|
t = t >>> 0;
|
|
@@ -30856,7 +30855,7 @@ class bs {
|
|
|
30856
30855
|
}
|
|
30857
30856
|
free() {
|
|
30858
30857
|
const t = this.__destroy_into_raw();
|
|
30859
|
-
rt.
|
|
30858
|
+
rt.__wbg_publicenckeymlkem512_free(t, 0);
|
|
30860
30859
|
}
|
|
30861
30860
|
}
|
|
30862
30861
|
typeof FinalizationRegistry > "u" || new FinalizationRegistry((n) => rt.__wbg_publicsigkey_free(n >>> 0, 1));
|
|
@@ -31253,7 +31252,7 @@ class No {
|
|
|
31253
31252
|
*/
|
|
31254
31253
|
get signcrypted_ciphertexts() {
|
|
31255
31254
|
const t = rt.__wbg_get_userdecryptionresponsepayload_signcrypted_ciphertexts(this.__wbg_ptr);
|
|
31256
|
-
var e =
|
|
31255
|
+
var e = Pg(t[0], t[1]).slice();
|
|
31257
31256
|
return rt.__wbindgen_free(t[0], t[1] * 4, 4), e;
|
|
31258
31257
|
}
|
|
31259
31258
|
/**
|
|
@@ -31263,7 +31262,7 @@ class No {
|
|
|
31263
31262
|
* @param {TypedSigncryptedCiphertext[]} arg0
|
|
31264
31263
|
*/
|
|
31265
31264
|
set signcrypted_ciphertexts(t) {
|
|
31266
|
-
const e =
|
|
31265
|
+
const e = kg(t, rt.__wbindgen_malloc), r = ee;
|
|
31267
31266
|
rt.__wbg_set_userdecryptionresponsepayload_signcrypted_ciphertexts(this.__wbg_ptr, e, r);
|
|
31268
31267
|
}
|
|
31269
31268
|
/**
|
|
@@ -31912,13 +31911,13 @@ const lA = (n, t, e, r, i, o, a, u) => async (_, l, f, g, y, B, I, S) => {
|
|
|
31912
31911
|
} catch (L) {
|
|
31913
31912
|
throw new Error("Invalid public or private key", { cause: L });
|
|
31914
31913
|
}
|
|
31915
|
-
const R = g.replace(/^(0x)/, ""),
|
|
31914
|
+
const R = g.replace(/^(0x)/, ""), k = f.replace(/^(0x)/, ""), z = _.map((L) => ({
|
|
31916
31915
|
handle: typeof L.handle == "string" ? _r(He(L.handle), !0) : _r(L.handle, !0),
|
|
31917
31916
|
contractAddress: Ro(L.contractAddress)
|
|
31918
31917
|
}));
|
|
31919
31918
|
Mg(z.map((L) => L.handle)), fA(BigInt(I), BigInt(S));
|
|
31920
|
-
const
|
|
31921
|
-
const Rt = await
|
|
31919
|
+
const P = new Ze(i, cA, a), C = z.map(async ({ handle: L, contractAddress: At }) => {
|
|
31920
|
+
const Rt = await P.persistAllowed(L, B), at = await P.persistAllowed(L, At);
|
|
31922
31921
|
if (!Rt)
|
|
31923
31922
|
throw new Error(`User ${B} is not authorized to user decrypt handle ${L}!`);
|
|
31924
31923
|
if (!at)
|
|
@@ -31946,7 +31945,7 @@ const lA = (n, t, e, r, i, o, a, u) => async (_, l, f, g, y, B, I, S) => {
|
|
|
31946
31945
|
contractAddresses: y.map((L) => Ro(L)),
|
|
31947
31946
|
userAddress: Ro(B),
|
|
31948
31947
|
signature: R,
|
|
31949
|
-
publicKey:
|
|
31948
|
+
publicKey: k
|
|
31950
31949
|
}, Y = await d_("USER_DECRYPT", `${o}/v1/user-decrypt`, D, u);
|
|
31951
31950
|
let Z = n.map((L, At) => TKMS.new_server_id_addr(At + 1, L));
|
|
31952
31951
|
const ft = TKMS.new_client(Z, B, "default");
|
|
@@ -31962,7 +31961,7 @@ const lA = (n, t, e, r, i, o, a, u) => async (_, l, f, g, y, B, I, S) => {
|
|
|
31962
31961
|
}, wt = {
|
|
31963
31962
|
signature: R,
|
|
31964
31963
|
client_address: B,
|
|
31965
|
-
enc_key:
|
|
31964
|
+
enc_key: k,
|
|
31966
31965
|
ciphertext_handles: z.map((Bt) => Bt.handle.replace(/^0x/, "")),
|
|
31967
31966
|
eip712_verifying_contract: r
|
|
31968
31967
|
}, xt = TKMS.process_user_decryption_resp_from_js(ft, wt, at, Y.response, T, A, !0).map((Bt) => xo(Bt.bytes));
|
|
@@ -32047,7 +32046,7 @@ const lA = (n, t, e, r, i, o, a, u) => async (_, l, f, g, y, B, I, S) => {
|
|
|
32047
32046
|
},
|
|
32048
32047
|
encrypt() {
|
|
32049
32048
|
const y = (() => {
|
|
32050
|
-
const z = (D) => Object.keys(D),
|
|
32049
|
+
const z = (D) => Object.keys(D), P = u.reduce((D, Y) => D + Y, 0), C = z(r), N = C.find((D) => Number(D) >= P);
|
|
32051
32050
|
if (!N)
|
|
32052
32051
|
throw new Error(`Too many bits in provided values. Maximum is ${C[C.length - 1]}.`);
|
|
32053
32052
|
return N;
|
|
@@ -32157,7 +32156,7 @@ const mA = (n, t, e, r, i, o, a, u, _) => (l, f) => {
|
|
|
32157
32156
|
throw new Error(`Incorrect Handle ${ft}: (expected) ${Rt} != ${at} (received)`);
|
|
32158
32157
|
}
|
|
32159
32158
|
}
|
|
32160
|
-
const R = T.response.signatures,
|
|
32159
|
+
const R = T.response.signatures, k = {
|
|
32161
32160
|
name: "InputVerification",
|
|
32162
32161
|
version: "1",
|
|
32163
32162
|
chainId: r,
|
|
@@ -32169,16 +32168,16 @@ const mA = (n, t, e, r, i, o, a, u, _) => (l, f) => {
|
|
|
32169
32168
|
{ name: "contractAddress", type: "address" },
|
|
32170
32169
|
{ name: "contractChainId", type: "uint256" }
|
|
32171
32170
|
]
|
|
32172
|
-
},
|
|
32171
|
+
}, P = R.map((Z) => {
|
|
32173
32172
|
const ft = Z.startsWith("0x") ? Z : `0x${Z}`;
|
|
32174
|
-
return Rd(
|
|
32173
|
+
return Rd(k, z, {
|
|
32175
32174
|
ctHandles: A,
|
|
32176
32175
|
userAddress: f,
|
|
32177
32176
|
contractAddress: l,
|
|
32178
32177
|
contractChainId: e
|
|
32179
32178
|
}, ft);
|
|
32180
32179
|
});
|
|
32181
|
-
if (!yA(u,
|
|
32180
|
+
if (!yA(u, P, _))
|
|
32182
32181
|
throw Error("Coprocessor signers threshold is not reached");
|
|
32183
32182
|
let N = Xp(A.length);
|
|
32184
32183
|
const D = R.length;
|
|
@@ -32230,14 +32229,14 @@ const RA = (n, t, e, r, i, o, a, u) => async (_) => {
|
|
|
32230
32229
|
const l = new Ze(i, AA, a);
|
|
32231
32230
|
let f;
|
|
32232
32231
|
try {
|
|
32233
|
-
f = await Promise.all(_.map(async (
|
|
32234
|
-
const C = _r(typeof
|
|
32232
|
+
f = await Promise.all(_.map(async (P) => {
|
|
32233
|
+
const C = _r(typeof P == "string" ? He(P) : P, !0);
|
|
32235
32234
|
if (!await l.isAllowedForDecryption(C))
|
|
32236
32235
|
throw new Error(`Handle ${C} is not allowed for public decryption!`);
|
|
32237
32236
|
return C;
|
|
32238
32237
|
}));
|
|
32239
|
-
} catch (
|
|
32240
|
-
throw
|
|
32238
|
+
} catch (P) {
|
|
32239
|
+
throw P;
|
|
32241
32240
|
}
|
|
32242
32241
|
Mg(f);
|
|
32243
32242
|
const g = {
|
|
@@ -32252,8 +32251,8 @@ const RA = (n, t, e, r, i, o, a, u) => async (_) => {
|
|
|
32252
32251
|
{ name: "ctHandles", type: "bytes32[]" },
|
|
32253
32252
|
{ name: "decryptedResult", type: "bytes" }
|
|
32254
32253
|
]
|
|
32255
|
-
}, S = y.response[0], T = S.decrypted_value.startsWith("0x") ? S.decrypted_value : `0x${S.decrypted_value}`, R = S.signatures.map((
|
|
32256
|
-
const C =
|
|
32254
|
+
}, S = y.response[0], T = S.decrypted_value.startsWith("0x") ? S.decrypted_value : `0x${S.decrypted_value}`, R = S.signatures.map((P) => {
|
|
32255
|
+
const C = P.startsWith("0x") ? P : `0x${P}`;
|
|
32257
32256
|
return Rd(B, I, { ctHandles: f, decryptedResult: T }, C);
|
|
32258
32257
|
});
|
|
32259
32258
|
if (!EA(n, R, t))
|