@opensecret/react 0.3.3 → 0.3.4
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/README.md +4 -2
- package/dist/index.d.ts +1 -1
- package/dist/opensecret-react.es.js +414 -415
- package/dist/opensecret-react.umd.js +14 -14
- package/package.json +1 -1
|
@@ -53,11 +53,11 @@ function sy() {
|
|
|
53
53
|
kf = 1;
|
|
54
54
|
var r = wd, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
55
55
|
function o(c, u, d) {
|
|
56
|
-
var b,
|
|
56
|
+
var b, S = {}, Y = null, $ = null;
|
|
57
57
|
d !== void 0 && (Y = "" + d), u.key !== void 0 && (Y = "" + u.key), u.ref !== void 0 && ($ = u.ref);
|
|
58
|
-
for (b in u) n.call(u, b) && !s.hasOwnProperty(b) && (
|
|
59
|
-
if (c && c.defaultProps) for (b in u = c.defaultProps, u)
|
|
60
|
-
return { $$typeof: e, type: c, key: Y, ref: $, props:
|
|
58
|
+
for (b in u) n.call(u, b) && !s.hasOwnProperty(b) && (S[b] = u[b]);
|
|
59
|
+
if (c && c.defaultProps) for (b in u = c.defaultProps, u) S[b] === void 0 && (S[b] = u[b]);
|
|
60
|
+
return { $$typeof: e, type: c, key: Y, ref: $, props: S, _owner: i.current };
|
|
61
61
|
}
|
|
62
62
|
return Ss.Fragment = t, Ss.jsx = o, Ss.jsxs = o, Ss;
|
|
63
63
|
}
|
|
@@ -74,11 +74,11 @@ var Es = {};
|
|
|
74
74
|
var If;
|
|
75
75
|
function oy() {
|
|
76
76
|
return If || (If = 1, process.env.NODE_ENV !== "production" && function() {
|
|
77
|
-
var r = wd, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"),
|
|
78
|
-
function
|
|
77
|
+
var r = wd, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), w = Symbol.iterator, E = "@@iterator";
|
|
78
|
+
function B(h) {
|
|
79
79
|
if (h === null || typeof h != "object")
|
|
80
80
|
return null;
|
|
81
|
-
var m = w && h[w] || h[
|
|
81
|
+
var m = w && h[w] || h[E];
|
|
82
82
|
return typeof m == "function" ? m : null;
|
|
83
83
|
}
|
|
84
84
|
var I = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -102,7 +102,7 @@ function oy() {
|
|
|
102
102
|
var z = !1, he = !1, ae = !1, de = !1, Re = !1, rt;
|
|
103
103
|
rt = Symbol.for("react.module.reference");
|
|
104
104
|
function ut(h) {
|
|
105
|
-
return !!(typeof h == "string" || typeof h == "function" || h === n || h === s || Re || h === i || h === d || h === b || de || h === $ || z || he || ae || typeof h == "object" && h !== null && (h.$$typeof === Y || h.$$typeof ===
|
|
105
|
+
return !!(typeof h == "string" || typeof h == "function" || h === n || h === s || Re || h === i || h === d || h === b || de || h === $ || z || he || ae || typeof h == "object" && h !== null && (h.$$typeof === Y || h.$$typeof === S || h.$$typeof === o || h.$$typeof === c || h.$$typeof === u || // This needs to include all possible module reference object
|
|
106
106
|
// types supported by any Flight configuration anywhere since
|
|
107
107
|
// we don't know which Flight build this will end up being used
|
|
108
108
|
// with.
|
|
@@ -149,7 +149,7 @@ function oy() {
|
|
|
149
149
|
return At(_._context) + ".Provider";
|
|
150
150
|
case u:
|
|
151
151
|
return xt(h, h.render, "ForwardRef");
|
|
152
|
-
case
|
|
152
|
+
case S:
|
|
153
153
|
var N = h.displayName || null;
|
|
154
154
|
return N !== null ? N : at(h.type) || "Memo";
|
|
155
155
|
case Y: {
|
|
@@ -163,11 +163,11 @@ function oy() {
|
|
|
163
163
|
}
|
|
164
164
|
return null;
|
|
165
165
|
}
|
|
166
|
-
var
|
|
166
|
+
var ht = Object.assign, Ye = 0, Ge, oe, Te, ft, St, Et, ce;
|
|
167
167
|
function Xe() {
|
|
168
168
|
}
|
|
169
169
|
Xe.__reactDisabledLog = !0;
|
|
170
|
-
function
|
|
170
|
+
function dt() {
|
|
171
171
|
{
|
|
172
172
|
if (Ye === 0) {
|
|
173
173
|
Ge = console.log, oe = console.info, Te = console.warn, ft = console.error, St = console.group, Et = console.groupCollapsed, ce = console.groupEnd;
|
|
@@ -199,25 +199,25 @@ function oy() {
|
|
|
199
199
|
writable: !0
|
|
200
200
|
};
|
|
201
201
|
Object.defineProperties(console, {
|
|
202
|
-
log:
|
|
202
|
+
log: ht({}, h, {
|
|
203
203
|
value: Ge
|
|
204
204
|
}),
|
|
205
|
-
info:
|
|
205
|
+
info: ht({}, h, {
|
|
206
206
|
value: oe
|
|
207
207
|
}),
|
|
208
|
-
warn:
|
|
208
|
+
warn: ht({}, h, {
|
|
209
209
|
value: Te
|
|
210
210
|
}),
|
|
211
|
-
error:
|
|
211
|
+
error: ht({}, h, {
|
|
212
212
|
value: ft
|
|
213
213
|
}),
|
|
214
|
-
group:
|
|
214
|
+
group: ht({}, h, {
|
|
215
215
|
value: St
|
|
216
216
|
}),
|
|
217
|
-
groupCollapsed:
|
|
217
|
+
groupCollapsed: ht({}, h, {
|
|
218
218
|
value: Et
|
|
219
219
|
}),
|
|
220
|
-
groupEnd:
|
|
220
|
+
groupEnd: ht({}, h, {
|
|
221
221
|
value: ce
|
|
222
222
|
})
|
|
223
223
|
});
|
|
@@ -257,7 +257,7 @@ function oy() {
|
|
|
257
257
|
var Z = Error.prepareStackTrace;
|
|
258
258
|
Error.prepareStackTrace = void 0;
|
|
259
259
|
var F;
|
|
260
|
-
F = nt.current, nt.current = null,
|
|
260
|
+
F = nt.current, nt.current = null, dt();
|
|
261
261
|
try {
|
|
262
262
|
if (m) {
|
|
263
263
|
var pe = function() {
|
|
@@ -339,7 +339,7 @@ function oy() {
|
|
|
339
339
|
switch (h.$$typeof) {
|
|
340
340
|
case u:
|
|
341
341
|
return di(h.render);
|
|
342
|
-
case
|
|
342
|
+
case S:
|
|
343
343
|
return Qr(h.type, m, _);
|
|
344
344
|
case Y: {
|
|
345
345
|
var N = h, Z = N._payload, F = N._init;
|
|
@@ -525,7 +525,7 @@ Check the render method of \`` + h + "`.";
|
|
|
525
525
|
return "";
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function pt(h) {
|
|
529
529
|
return "";
|
|
530
530
|
}
|
|
531
531
|
var Ut = {};
|
|
@@ -566,7 +566,7 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
566
566
|
else if (Me(h))
|
|
567
567
|
h._store && (h._store.validated = !0);
|
|
568
568
|
else if (h) {
|
|
569
|
-
var Z =
|
|
569
|
+
var Z = B(h);
|
|
570
570
|
if (typeof Z == "function" && Z !== h.entries)
|
|
571
571
|
for (var F = Z.call(h), pe; !(pe = F.next()).done; )
|
|
572
572
|
Me(pe.value) && Fn(pe.value, m);
|
|
@@ -583,7 +583,7 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
583
583
|
_ = m.propTypes;
|
|
584
584
|
else if (typeof m == "object" && (m.$$typeof === u || // Note: Memo only checks outer props here.
|
|
585
585
|
// Inner props are checked in the reconciler.
|
|
586
|
-
m.$$typeof ===
|
|
586
|
+
m.$$typeof === S))
|
|
587
587
|
_ = m.propTypes;
|
|
588
588
|
else
|
|
589
589
|
return;
|
|
@@ -617,7 +617,7 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
617
617
|
if (!pe) {
|
|
618
618
|
var V = "";
|
|
619
619
|
(h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (V += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
620
|
-
var be =
|
|
620
|
+
var be = pt();
|
|
621
621
|
be ? V += be : V += Je();
|
|
622
622
|
var ye;
|
|
623
623
|
h === null ? ye = "null" : bn(h) ? ye = "array" : h !== void 0 && h.$$typeof === e ? (ye = "<" + (at(h.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : ye = typeof h, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ye, V);
|
|
@@ -700,10 +700,10 @@ class cy {
|
|
|
700
700
|
if (e.length === 0)
|
|
701
701
|
return new Uint8Array(0);
|
|
702
702
|
const t = this._getPaddingLength(e), n = e.length - t, i = new Uint8Array(this.maxDecodedLength(n));
|
|
703
|
-
let s = 0, o = 0, c = 0, u = 0, d = 0, b = 0,
|
|
703
|
+
let s = 0, o = 0, c = 0, u = 0, d = 0, b = 0, S = 0;
|
|
704
704
|
for (; o < n - 4; o += 4)
|
|
705
|
-
u = this._decodeChar(e.charCodeAt(o + 0)), d = this._decodeChar(e.charCodeAt(o + 1)), b = this._decodeChar(e.charCodeAt(o + 2)),
|
|
706
|
-
if (o < n - 1 && (u = this._decodeChar(e.charCodeAt(o)), d = this._decodeChar(e.charCodeAt(o + 1)), i[s++] = u << 2 | d >>> 4, c |= u & fr, c |= d & fr), o < n - 2 && (b = this._decodeChar(e.charCodeAt(o + 2)), i[s++] = d << 4 | b >>> 2, c |= b & fr), o < n - 3 && (
|
|
705
|
+
u = this._decodeChar(e.charCodeAt(o + 0)), d = this._decodeChar(e.charCodeAt(o + 1)), b = this._decodeChar(e.charCodeAt(o + 2)), S = this._decodeChar(e.charCodeAt(o + 3)), i[s++] = u << 2 | d >>> 4, i[s++] = d << 4 | b >>> 2, i[s++] = b << 6 | S, c |= u & fr, c |= d & fr, c |= b & fr, c |= S & fr;
|
|
706
|
+
if (o < n - 1 && (u = this._decodeChar(e.charCodeAt(o)), d = this._decodeChar(e.charCodeAt(o + 1)), i[s++] = u << 2 | d >>> 4, c |= u & fr, c |= d & fr), o < n - 2 && (b = this._decodeChar(e.charCodeAt(o + 2)), i[s++] = d << 4 | b >>> 2, c |= b & fr), o < n - 3 && (S = this._decodeChar(e.charCodeAt(o + 3)), i[s++] = b << 6 | S, c |= S & fr), c !== 0)
|
|
707
707
|
throw new Error("Base64Coder: incorrect characters for decoding");
|
|
708
708
|
return i;
|
|
709
709
|
}
|
|
@@ -756,10 +756,10 @@ function Or(r) {
|
|
|
756
756
|
}
|
|
757
757
|
const ly = 20;
|
|
758
758
|
function uy(r, e, t) {
|
|
759
|
-
let n = 1634760805, i = 857760878, s = 2036477234, o = 1797285236, c = t[3] << 24 | t[2] << 16 | t[1] << 8 | t[0], u = t[7] << 24 | t[6] << 16 | t[5] << 8 | t[4], d = t[11] << 24 | t[10] << 16 | t[9] << 8 | t[8], b = t[15] << 24 | t[14] << 16 | t[13] << 8 | t[12],
|
|
759
|
+
let n = 1634760805, i = 857760878, s = 2036477234, o = 1797285236, c = t[3] << 24 | t[2] << 16 | t[1] << 8 | t[0], u = t[7] << 24 | t[6] << 16 | t[5] << 8 | t[4], d = t[11] << 24 | t[10] << 16 | t[9] << 8 | t[8], b = t[15] << 24 | t[14] << 16 | t[13] << 8 | t[12], S = t[19] << 24 | t[18] << 16 | t[17] << 8 | t[16], Y = t[23] << 24 | t[22] << 16 | t[21] << 8 | t[20], $ = t[27] << 24 | t[26] << 16 | t[25] << 8 | t[24], w = t[31] << 24 | t[30] << 16 | t[29] << 8 | t[28], E = e[3] << 24 | e[2] << 16 | e[1] << 8 | e[0], B = e[7] << 24 | e[6] << 16 | e[5] << 8 | e[4], I = e[11] << 24 | e[10] << 16 | e[9] << 8 | e[8], R = e[15] << 24 | e[14] << 16 | e[13] << 8 | e[12], P = n, z = i, he = s, ae = o, de = c, Re = u, rt = d, ut = b, xt = S, At = Y, at = $, ht = w, Ye = E, Ge = B, oe = I, Te = R;
|
|
760
760
|
for (let ft = 0; ft < ly; ft += 2)
|
|
761
|
-
P = P + de | 0, Ye ^= P, Ye = Ye >>> 16 | Ye << 16, xt = xt + Ye | 0, de ^= xt, de = de >>> 20 | de << 12, z = z + Re | 0, Ge ^= z, Ge = Ge >>> 16 | Ge << 16, At = At + Ge | 0, Re ^= At, Re = Re >>> 20 | Re << 12, he = he + rt | 0, oe ^= he, oe = oe >>> 16 | oe << 16, at = at + oe | 0, rt ^= at, rt = rt >>> 20 | rt << 12, ae = ae + ut | 0, Te ^= ae, Te = Te >>> 16 | Te << 16,
|
|
762
|
-
Ft(P + n | 0, r, 0), Ft(z + i | 0, r, 4), Ft(he + s | 0, r, 8), Ft(ae + o | 0, r, 12), Ft(de + c | 0, r, 16), Ft(Re + u | 0, r, 20), Ft(rt + d | 0, r, 24), Ft(ut + b | 0, r, 28), Ft(xt +
|
|
761
|
+
P = P + de | 0, Ye ^= P, Ye = Ye >>> 16 | Ye << 16, xt = xt + Ye | 0, de ^= xt, de = de >>> 20 | de << 12, z = z + Re | 0, Ge ^= z, Ge = Ge >>> 16 | Ge << 16, At = At + Ge | 0, Re ^= At, Re = Re >>> 20 | Re << 12, he = he + rt | 0, oe ^= he, oe = oe >>> 16 | oe << 16, at = at + oe | 0, rt ^= at, rt = rt >>> 20 | rt << 12, ae = ae + ut | 0, Te ^= ae, Te = Te >>> 16 | Te << 16, ht = ht + Te | 0, ut ^= ht, ut = ut >>> 20 | ut << 12, he = he + rt | 0, oe ^= he, oe = oe >>> 24 | oe << 8, at = at + oe | 0, rt ^= at, rt = rt >>> 25 | rt << 7, ae = ae + ut | 0, Te ^= ae, Te = Te >>> 24 | Te << 8, ht = ht + Te | 0, ut ^= ht, ut = ut >>> 25 | ut << 7, z = z + Re | 0, Ge ^= z, Ge = Ge >>> 24 | Ge << 8, At = At + Ge | 0, Re ^= At, Re = Re >>> 25 | Re << 7, P = P + de | 0, Ye ^= P, Ye = Ye >>> 24 | Ye << 8, xt = xt + Ye | 0, de ^= xt, de = de >>> 25 | de << 7, P = P + Re | 0, Te ^= P, Te = Te >>> 16 | Te << 16, at = at + Te | 0, Re ^= at, Re = Re >>> 20 | Re << 12, z = z + rt | 0, Ye ^= z, Ye = Ye >>> 16 | Ye << 16, ht = ht + Ye | 0, rt ^= ht, rt = rt >>> 20 | rt << 12, he = he + ut | 0, Ge ^= he, Ge = Ge >>> 16 | Ge << 16, xt = xt + Ge | 0, ut ^= xt, ut = ut >>> 20 | ut << 12, ae = ae + de | 0, oe ^= ae, oe = oe >>> 16 | oe << 16, At = At + oe | 0, de ^= At, de = de >>> 20 | de << 12, he = he + ut | 0, Ge ^= he, Ge = Ge >>> 24 | Ge << 8, xt = xt + Ge | 0, ut ^= xt, ut = ut >>> 25 | ut << 7, ae = ae + de | 0, oe ^= ae, oe = oe >>> 24 | oe << 8, At = At + oe | 0, de ^= At, de = de >>> 25 | de << 7, z = z + rt | 0, Ye ^= z, Ye = Ye >>> 24 | Ye << 8, ht = ht + Ye | 0, rt ^= ht, rt = rt >>> 25 | rt << 7, P = P + Re | 0, Te ^= P, Te = Te >>> 24 | Te << 8, at = at + Te | 0, Re ^= at, Re = Re >>> 25 | Re << 7;
|
|
762
|
+
Ft(P + n | 0, r, 0), Ft(z + i | 0, r, 4), Ft(he + s | 0, r, 8), Ft(ae + o | 0, r, 12), Ft(de + c | 0, r, 16), Ft(Re + u | 0, r, 20), Ft(rt + d | 0, r, 24), Ft(ut + b | 0, r, 28), Ft(xt + S | 0, r, 32), Ft(At + Y | 0, r, 36), Ft(at + $ | 0, r, 40), Ft(ht + w | 0, r, 44), Ft(Ye + E | 0, r, 48), Ft(Ge + B | 0, r, 52), Ft(oe + I | 0, r, 56), Ft(Te + R | 0, r, 60);
|
|
763
763
|
}
|
|
764
764
|
function nl(r, e, t, n, i = 0) {
|
|
765
765
|
if (r.length !== 32)
|
|
@@ -835,7 +835,7 @@ class yy {
|
|
|
835
835
|
this._r[8] = (u >>> 8 | d << 8) & 8191, this._r[9] = d >>> 5 & 127, this._pad[0] = e[16] | e[17] << 8, this._pad[1] = e[18] | e[19] << 8, this._pad[2] = e[20] | e[21] << 8, this._pad[3] = e[22] | e[23] << 8, this._pad[4] = e[24] | e[25] << 8, this._pad[5] = e[26] | e[27] << 8, this._pad[6] = e[28] | e[29] << 8, this._pad[7] = e[30] | e[31] << 8;
|
|
836
836
|
}
|
|
837
837
|
_blocks(e, t, n) {
|
|
838
|
-
let i = this._fin ? 0 : 2048, s = this._h[0], o = this._h[1], c = this._h[2], u = this._h[3], d = this._h[4], b = this._h[5],
|
|
838
|
+
let i = this._fin ? 0 : 2048, s = this._h[0], o = this._h[1], c = this._h[2], u = this._h[3], d = this._h[4], b = this._h[5], S = this._h[6], Y = this._h[7], $ = this._h[8], w = this._h[9], E = this._r[0], B = this._r[1], I = this._r[2], R = this._r[3], P = this._r[4], z = this._r[5], he = this._r[6], ae = this._r[7], de = this._r[8], Re = this._r[9];
|
|
839
839
|
for (; n >= 16; ) {
|
|
840
840
|
let rt = e[t + 0] | e[t + 1] << 8;
|
|
841
841
|
s += rt & 8191;
|
|
@@ -847,34 +847,34 @@ class yy {
|
|
|
847
847
|
u += (xt >>> 7 | At << 9) & 8191;
|
|
848
848
|
let at = e[t + 8] | e[t + 9] << 8;
|
|
849
849
|
d += (At >>> 4 | at << 12) & 8191, b += at >>> 1 & 8191;
|
|
850
|
-
let
|
|
851
|
-
|
|
850
|
+
let ht = e[t + 10] | e[t + 11] << 8;
|
|
851
|
+
S += (at >>> 14 | ht << 2) & 8191;
|
|
852
852
|
let Ye = e[t + 12] | e[t + 13] << 8;
|
|
853
|
-
Y += (
|
|
853
|
+
Y += (ht >>> 11 | Ye << 5) & 8191;
|
|
854
854
|
let Ge = e[t + 14] | e[t + 15] << 8;
|
|
855
855
|
$ += (Ye >>> 8 | Ge << 8) & 8191, w += Ge >>> 5 | i;
|
|
856
856
|
let oe = 0, Te = oe;
|
|
857
|
-
Te += s *
|
|
857
|
+
Te += s * E, Te += o * (5 * Re), Te += c * (5 * de), Te += u * (5 * ae), Te += d * (5 * he), oe = Te >>> 13, Te &= 8191, Te += b * (5 * z), Te += S * (5 * P), Te += Y * (5 * R), Te += $ * (5 * I), Te += w * (5 * B), oe += Te >>> 13, Te &= 8191;
|
|
858
858
|
let ft = oe;
|
|
859
|
-
ft += s *
|
|
859
|
+
ft += s * B, ft += o * E, ft += c * (5 * Re), ft += u * (5 * de), ft += d * (5 * ae), oe = ft >>> 13, ft &= 8191, ft += b * (5 * he), ft += S * (5 * z), ft += Y * (5 * P), ft += $ * (5 * R), ft += w * (5 * I), oe += ft >>> 13, ft &= 8191;
|
|
860
860
|
let St = oe;
|
|
861
|
-
St += s * I, St += o *
|
|
861
|
+
St += s * I, St += o * B, St += c * E, St += u * (5 * Re), St += d * (5 * de), oe = St >>> 13, St &= 8191, St += b * (5 * ae), St += S * (5 * he), St += Y * (5 * z), St += $ * (5 * P), St += w * (5 * R), oe += St >>> 13, St &= 8191;
|
|
862
862
|
let Et = oe;
|
|
863
|
-
Et += s * R, Et += o * I, Et += c *
|
|
863
|
+
Et += s * R, Et += o * I, Et += c * B, Et += u * E, Et += d * (5 * Re), oe = Et >>> 13, Et &= 8191, Et += b * (5 * de), Et += S * (5 * ae), Et += Y * (5 * he), Et += $ * (5 * z), Et += w * (5 * P), oe += Et >>> 13, Et &= 8191;
|
|
864
864
|
let ce = oe;
|
|
865
|
-
ce += s * P, ce += o * R, ce += c * I, ce += u *
|
|
865
|
+
ce += s * P, ce += o * R, ce += c * I, ce += u * B, ce += d * E, oe = ce >>> 13, ce &= 8191, ce += b * (5 * Re), ce += S * (5 * de), ce += Y * (5 * ae), ce += $ * (5 * he), ce += w * (5 * z), oe += ce >>> 13, ce &= 8191;
|
|
866
866
|
let Xe = oe;
|
|
867
|
-
Xe += s * z, Xe += o * P, Xe += c * R, Xe += u * I, Xe += d *
|
|
868
|
-
let
|
|
869
|
-
|
|
867
|
+
Xe += s * z, Xe += o * P, Xe += c * R, Xe += u * I, Xe += d * B, oe = Xe >>> 13, Xe &= 8191, Xe += b * E, Xe += S * (5 * Re), Xe += Y * (5 * de), Xe += $ * (5 * ae), Xe += w * (5 * he), oe += Xe >>> 13, Xe &= 8191;
|
|
868
|
+
let dt = oe;
|
|
869
|
+
dt += s * he, dt += o * z, dt += c * P, dt += u * R, dt += d * I, oe = dt >>> 13, dt &= 8191, dt += b * B, dt += S * E, dt += Y * (5 * Re), dt += $ * (5 * de), dt += w * (5 * ae), oe += dt >>> 13, dt &= 8191;
|
|
870
870
|
let ee = oe;
|
|
871
|
-
ee += s * ae, ee += o * he, ee += c * z, ee += u * P, ee += d * R, oe = ee >>> 13, ee &= 8191, ee += b * I, ee +=
|
|
871
|
+
ee += s * ae, ee += o * he, ee += c * z, ee += u * P, ee += d * R, oe = ee >>> 13, ee &= 8191, ee += b * I, ee += S * B, ee += Y * E, ee += $ * (5 * Re), ee += w * (5 * de), oe += ee >>> 13, ee &= 8191;
|
|
872
872
|
let nt = oe;
|
|
873
|
-
nt += s * de, nt += o * ae, nt += c * he, nt += u * z, nt += d * P, oe = nt >>> 13, nt &= 8191, nt += b * R, nt +=
|
|
873
|
+
nt += s * de, nt += o * ae, nt += c * he, nt += u * z, nt += d * P, oe = nt >>> 13, nt &= 8191, nt += b * R, nt += S * I, nt += Y * B, nt += $ * E, nt += w * (5 * Re), oe += nt >>> 13, nt &= 8191;
|
|
874
874
|
let kt = oe;
|
|
875
|
-
kt += s * Re, kt += o * de, kt += c * ae, kt += u * he, kt += d * z, oe = kt >>> 13, kt &= 8191, kt += b * P, kt +=
|
|
875
|
+
kt += s * Re, kt += o * de, kt += c * ae, kt += u * he, kt += d * z, oe = kt >>> 13, kt &= 8191, kt += b * P, kt += S * R, kt += Y * I, kt += $ * B, kt += w * E, oe += kt >>> 13, kt &= 8191, oe = (oe << 2) + oe | 0, oe = oe + Te | 0, Te = oe & 8191, oe = oe >>> 13, ft += oe, s = Te, o = ft, c = St, u = Et, d = ce, b = Xe, S = dt, Y = ee, $ = nt, w = kt, t += 16, n -= 16;
|
|
876
876
|
}
|
|
877
|
-
this._h[0] = s, this._h[1] = o, this._h[2] = c, this._h[3] = u, this._h[4] = d, this._h[5] = b, this._h[6] =
|
|
877
|
+
this._h[0] = s, this._h[1] = o, this._h[2] = c, this._h[3] = u, this._h[4] = d, this._h[5] = b, this._h[6] = S, this._h[7] = Y, this._h[8] = $, this._h[9] = w;
|
|
878
878
|
}
|
|
879
879
|
finish(e, t = 0) {
|
|
880
880
|
const n = new Uint16Array(10);
|
|
@@ -1064,8 +1064,8 @@ var Nf;
|
|
|
1064
1064
|
var t = typeof globalThis == "object" ? globalThis : typeof tl == "object" ? tl : typeof self == "object" ? self : typeof this == "object" ? this : c(), n = i(r);
|
|
1065
1065
|
typeof t.Reflect < "u" && (n = i(t.Reflect, n)), e(n, t), typeof t.Reflect > "u" && (t.Reflect = r);
|
|
1066
1066
|
function i(u, d) {
|
|
1067
|
-
return function(b,
|
|
1068
|
-
Object.defineProperty(u, b, { configurable: !0, writable: !0, value:
|
|
1067
|
+
return function(b, S) {
|
|
1068
|
+
Object.defineProperty(u, b, { configurable: !0, writable: !0, value: S }), d && d(b, S);
|
|
1069
1069
|
};
|
|
1070
1070
|
}
|
|
1071
1071
|
function s() {
|
|
@@ -1103,7 +1103,7 @@ var Nf;
|
|
|
1103
1103
|
} : function(k, C) {
|
|
1104
1104
|
return k[C];
|
|
1105
1105
|
}
|
|
1106
|
-
},
|
|
1106
|
+
}, S = Object.getPrototypeOf(Function), Y = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Dr(), $ = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : yi(), w = typeof WeakMap == "function" ? WeakMap : gi(), E = i ? Symbol.for("@reflect-metadata:registry") : void 0, B = pi(), I = Mn(B);
|
|
1107
1107
|
function R(k, C, j, W) {
|
|
1108
1108
|
if (ce(j)) {
|
|
1109
1109
|
if (!hi(k))
|
|
@@ -1142,7 +1142,7 @@ var Nf;
|
|
|
1142
1142
|
function he(k, C, j) {
|
|
1143
1143
|
if (!ee(C))
|
|
1144
1144
|
throw new TypeError();
|
|
1145
|
-
return ce(j) || (j = Mt(j)),
|
|
1145
|
+
return ce(j) || (j = Mt(j)), ht(k, C, j);
|
|
1146
1146
|
}
|
|
1147
1147
|
e("hasMetadata", he);
|
|
1148
1148
|
function ae(k, C, j) {
|
|
@@ -1212,12 +1212,12 @@ var Nf;
|
|
|
1212
1212
|
}
|
|
1213
1213
|
return W;
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function ht(k, C, j) {
|
|
1216
1216
|
var W = Ye(k, C, j);
|
|
1217
1217
|
if (W)
|
|
1218
1218
|
return !0;
|
|
1219
1219
|
var Ee = $n(C);
|
|
1220
|
-
return Xe(Ee) ? !1 :
|
|
1220
|
+
return Xe(Ee) ? !1 : ht(k, Ee, j);
|
|
1221
1221
|
}
|
|
1222
1222
|
function Ye(k, C, j) {
|
|
1223
1223
|
var W = br(
|
|
@@ -1309,7 +1309,7 @@ var Nf;
|
|
|
1309
1309
|
function Xe(k) {
|
|
1310
1310
|
return k === null;
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1312
|
+
function dt(k) {
|
|
1313
1313
|
return typeof k == "symbol";
|
|
1314
1314
|
}
|
|
1315
1315
|
function ee(k) {
|
|
@@ -1365,7 +1365,7 @@ var Nf;
|
|
|
1365
1365
|
}
|
|
1366
1366
|
function Mt(k) {
|
|
1367
1367
|
var C = nt(k);
|
|
1368
|
-
return
|
|
1368
|
+
return dt(C) ? C : Xr(C);
|
|
1369
1369
|
}
|
|
1370
1370
|
function hi(k) {
|
|
1371
1371
|
return Array.isArray ? Array.isArray(k) : k instanceof Object ? k instanceof Array : Object.prototype.toString.call(k) === "[object Array]";
|
|
@@ -1419,7 +1419,7 @@ var Nf;
|
|
|
1419
1419
|
}
|
|
1420
1420
|
function $n(k) {
|
|
1421
1421
|
var C = Object.getPrototypeOf(k);
|
|
1422
|
-
if (typeof k != "function" || k ===
|
|
1422
|
+
if (typeof k != "function" || k === S || C !== S)
|
|
1423
1423
|
return C;
|
|
1424
1424
|
var j = k.prototype, W = j && Object.getPrototypeOf(j);
|
|
1425
1425
|
if (W == null || W === Object.prototype)
|
|
@@ -1429,7 +1429,7 @@ var Nf;
|
|
|
1429
1429
|
}
|
|
1430
1430
|
function bn() {
|
|
1431
1431
|
var k;
|
|
1432
|
-
!ce(
|
|
1432
|
+
!ce(E) && typeof t.Reflect < "u" && !(E in t.Reflect) && typeof t.Reflect.defineMetadata == "function" && (k = Vn(t.Reflect));
|
|
1433
1433
|
var C, j, W, Ee = new w(), wt = {
|
|
1434
1434
|
registerProvider: bt,
|
|
1435
1435
|
getProvider: X,
|
|
@@ -1466,10 +1466,10 @@ var Nf;
|
|
|
1466
1466
|
return C;
|
|
1467
1467
|
if (!ce(W))
|
|
1468
1468
|
for (var Je = Un(W); ; ) {
|
|
1469
|
-
var
|
|
1470
|
-
if (!
|
|
1469
|
+
var pt = ir(Je);
|
|
1470
|
+
if (!pt)
|
|
1471
1471
|
return;
|
|
1472
|
-
var Ut = Dn(
|
|
1472
|
+
var Ut = Dn(pt);
|
|
1473
1473
|
if (Ut.isProviderFor(ve, Me))
|
|
1474
1474
|
return wn(Je), Ut;
|
|
1475
1475
|
}
|
|
@@ -1479,8 +1479,8 @@ var Nf;
|
|
|
1479
1479
|
return k;
|
|
1480
1480
|
}
|
|
1481
1481
|
function X(ve, Me) {
|
|
1482
|
-
var Je = Ee.get(ve),
|
|
1483
|
-
return ce(Je) || (
|
|
1482
|
+
var Je = Ee.get(ve), pt;
|
|
1483
|
+
return ce(Je) || (pt = Je.get(Me)), ce(pt) && (pt = Ue(ve, Me), ce(pt) || (ce(Je) && (Je = new Y(), Ee.set(ve, Je)), Je.set(Me, pt))), pt;
|
|
1484
1484
|
}
|
|
1485
1485
|
function te(ve) {
|
|
1486
1486
|
if (ce(ve))
|
|
@@ -1490,9 +1490,9 @@ var Nf;
|
|
|
1490
1490
|
function re(ve, Me, Je) {
|
|
1491
1491
|
if (!te(Je))
|
|
1492
1492
|
throw new Error("Metadata provider not registered.");
|
|
1493
|
-
var
|
|
1494
|
-
if (
|
|
1495
|
-
if (!ce(
|
|
1493
|
+
var pt = X(ve, Me);
|
|
1494
|
+
if (pt !== Je) {
|
|
1495
|
+
if (!ce(pt))
|
|
1496
1496
|
return !1;
|
|
1497
1497
|
var Ut = Ee.get(ve);
|
|
1498
1498
|
ce(Ut) && (Ut = new Y(), Ee.set(ve, Ut)), Ut.set(Me, Je);
|
|
@@ -1502,7 +1502,7 @@ var Nf;
|
|
|
1502
1502
|
}
|
|
1503
1503
|
function pi() {
|
|
1504
1504
|
var k;
|
|
1505
|
-
return !ce(
|
|
1505
|
+
return !ce(E) && ee(t.Reflect) && Object.isExtensible(t.Reflect) && (k = t.Reflect[E]), ce(k) && (k = bn()), !ce(E) && ee(t.Reflect) && Object.isExtensible(t.Reflect) && Object.defineProperty(t.Reflect, E, {
|
|
1506
1506
|
enumerable: !1,
|
|
1507
1507
|
configurable: !1,
|
|
1508
1508
|
writable: !1,
|
|
@@ -1521,7 +1521,7 @@ var Nf;
|
|
|
1521
1521
|
OrdinaryOwnMetadataKeys: Ue,
|
|
1522
1522
|
OrdinaryDeleteMetadata: X
|
|
1523
1523
|
};
|
|
1524
|
-
return
|
|
1524
|
+
return B.registerProvider(j), j;
|
|
1525
1525
|
function W(te, re, ve) {
|
|
1526
1526
|
var Me = C.get(te), Je = !1;
|
|
1527
1527
|
if (ce(Me)) {
|
|
@@ -1529,14 +1529,14 @@ var Nf;
|
|
|
1529
1529
|
return;
|
|
1530
1530
|
Me = new Y(), C.set(te, Me), Je = !0;
|
|
1531
1531
|
}
|
|
1532
|
-
var
|
|
1533
|
-
if (ce(
|
|
1532
|
+
var pt = Me.get(re);
|
|
1533
|
+
if (ce(pt)) {
|
|
1534
1534
|
if (!ve)
|
|
1535
1535
|
return;
|
|
1536
|
-
if (
|
|
1536
|
+
if (pt = new Y(), Me.set(re, pt), !k.setProvider(te, re, j))
|
|
1537
1537
|
throw Me.delete(re), Je && C.delete(te), new Error("Wrong provider for target.");
|
|
1538
1538
|
}
|
|
1539
|
-
return
|
|
1539
|
+
return pt;
|
|
1540
1540
|
}
|
|
1541
1541
|
function Ee(te, re, ve) {
|
|
1542
1542
|
var Me = W(
|
|
@@ -1575,8 +1575,8 @@ var Nf;
|
|
|
1575
1575
|
);
|
|
1576
1576
|
if (ce(Me))
|
|
1577
1577
|
return ve;
|
|
1578
|
-
for (var Je = Me.keys(),
|
|
1579
|
-
var Hn = ir(
|
|
1578
|
+
for (var Je = Me.keys(), pt = Un(Je), Ut = 0; ; ) {
|
|
1579
|
+
var Hn = ir(pt);
|
|
1580
1580
|
if (!Hn)
|
|
1581
1581
|
return ve.length = Ut, ve;
|
|
1582
1582
|
var Fn = Dn(Hn);
|
|
@@ -1584,7 +1584,7 @@ var Nf;
|
|
|
1584
1584
|
ve[Ut] = Fn;
|
|
1585
1585
|
} catch (vi) {
|
|
1586
1586
|
try {
|
|
1587
|
-
wn(
|
|
1587
|
+
wn(pt);
|
|
1588
1588
|
} finally {
|
|
1589
1589
|
throw vi;
|
|
1590
1590
|
}
|
|
@@ -1623,11 +1623,11 @@ var Nf;
|
|
|
1623
1623
|
return Ue;
|
|
1624
1624
|
}
|
|
1625
1625
|
function br(k, C, j) {
|
|
1626
|
-
var W =
|
|
1626
|
+
var W = B.getProvider(k, C);
|
|
1627
1627
|
if (!ce(W))
|
|
1628
1628
|
return W;
|
|
1629
1629
|
if (j) {
|
|
1630
|
-
if (
|
|
1630
|
+
if (B.setProvider(k, C, I))
|
|
1631
1631
|
return I;
|
|
1632
1632
|
throw new Error("Illegal state.");
|
|
1633
1633
|
}
|
|
@@ -2174,8 +2174,8 @@ function Ii(r, e, t = -1) {
|
|
|
2174
2174
|
}
|
|
2175
2175
|
const d = new Uint8Array(u);
|
|
2176
2176
|
for (let b = c - 1; b >= 0; b--) {
|
|
2177
|
-
const
|
|
2178
|
-
d[s - b - 1] = Math.floor(i /
|
|
2177
|
+
const S = Math.pow(2, b * e);
|
|
2178
|
+
d[s - b - 1] = Math.floor(i / S), i -= d[s - b - 1] * S;
|
|
2179
2179
|
}
|
|
2180
2180
|
return u;
|
|
2181
2181
|
}
|
|
@@ -2470,10 +2470,10 @@ class kd extends gn(Hi) {
|
|
|
2470
2470
|
}
|
|
2471
2471
|
}
|
|
2472
2472
|
this.blockLength = u + 1, d[u - 1] = s[u] & 127;
|
|
2473
|
-
const
|
|
2473
|
+
const S = new Uint8Array(u);
|
|
2474
2474
|
for (let Y = 0; Y < u; Y++)
|
|
2475
|
-
|
|
2476
|
-
d = this.valueHexView = new Uint8Array(u), d.set(
|
|
2475
|
+
S[Y] = d[Y];
|
|
2476
|
+
d = this.valueHexView = new Uint8Array(u), d.set(S), this.blockLength <= 9 ? this.tagNumber = Xi(d, 7) : (this.isHexOnly = !0, this.warnings.push("Tag too long, represented as hex-coded"));
|
|
2477
2477
|
}
|
|
2478
2478
|
if (this.tagClass === 1 && this.isConstructed)
|
|
2479
2479
|
switch (this.tagNumber) {
|
|
@@ -3158,21 +3158,21 @@ function My(r, e) {
|
|
|
3158
3158
|
const o = s.length - 1, c = i.slice(0), u = c.length - 1;
|
|
3159
3159
|
let d = 0;
|
|
3160
3160
|
const b = u < o ? o : u;
|
|
3161
|
-
let
|
|
3162
|
-
for (let Y = b; Y >= 0; Y--,
|
|
3161
|
+
let S = 0;
|
|
3162
|
+
for (let Y = b; Y >= 0; Y--, S++) {
|
|
3163
3163
|
switch (!0) {
|
|
3164
|
-
case
|
|
3165
|
-
d = s[o -
|
|
3164
|
+
case S < c.length:
|
|
3165
|
+
d = s[o - S] + c[u - S] + t[0];
|
|
3166
3166
|
break;
|
|
3167
3167
|
default:
|
|
3168
|
-
d = s[o -
|
|
3168
|
+
d = s[o - S] + t[0];
|
|
3169
3169
|
}
|
|
3170
3170
|
switch (t[0] = d / 10, !0) {
|
|
3171
|
-
case
|
|
3171
|
+
case S >= s.length:
|
|
3172
3172
|
s = il(new Uint8Array([d % 10]), s);
|
|
3173
3173
|
break;
|
|
3174
3174
|
default:
|
|
3175
|
-
s[o -
|
|
3175
|
+
s[o - S] = d % 10;
|
|
3176
3176
|
}
|
|
3177
3177
|
}
|
|
3178
3178
|
return t[0] > 0 && (s = il(t, s)), s;
|
|
@@ -3194,7 +3194,7 @@ function Vy(r, e) {
|
|
|
3194
3194
|
let t = 0;
|
|
3195
3195
|
const n = new Uint8Array(r), i = new Uint8Array(e), s = n.slice(0), o = s.length - 1, c = i.slice(0), u = c.length - 1;
|
|
3196
3196
|
let d, b = 0;
|
|
3197
|
-
for (let
|
|
3197
|
+
for (let S = u; S >= 0; S--, b++)
|
|
3198
3198
|
switch (d = s[o - b] - c[u - b] - t, !0) {
|
|
3199
3199
|
case d < 0:
|
|
3200
3200
|
t = 1, s[o - b] = d + 10;
|
|
@@ -3203,7 +3203,7 @@ function Vy(r, e) {
|
|
|
3203
3203
|
t = 0, s[o - b] = d;
|
|
3204
3204
|
}
|
|
3205
3205
|
if (t > 0)
|
|
3206
|
-
for (let
|
|
3206
|
+
for (let S = o - u + 1; S >= 0; S--, b++)
|
|
3207
3207
|
if (d = s[o - b] - t, d < 0)
|
|
3208
3208
|
t = 1, s[o - b] = d + 10;
|
|
3209
3209
|
else {
|
|
@@ -3925,8 +3925,8 @@ class tc extends go {
|
|
|
3925
3925
|
if (e[e.length - 1] === "Z")
|
|
3926
3926
|
n = e.substring(0, e.length - 1), t = !0;
|
|
3927
3927
|
else {
|
|
3928
|
-
const
|
|
3929
|
-
if (isNaN(
|
|
3928
|
+
const S = new Number(e[e.length - 1]);
|
|
3929
|
+
if (isNaN(S.valueOf()))
|
|
3930
3930
|
throw new Error("Wrong input string for conversion");
|
|
3931
3931
|
n = e;
|
|
3932
3932
|
}
|
|
@@ -3936,26 +3936,26 @@ class tc extends go {
|
|
|
3936
3936
|
if (n.indexOf("-") !== -1)
|
|
3937
3937
|
throw new Error("Wrong input string for conversion");
|
|
3938
3938
|
} else {
|
|
3939
|
-
let
|
|
3940
|
-
if (Y === -1 && (Y = n.indexOf("-"),
|
|
3939
|
+
let S = 1, Y = n.indexOf("+"), $ = "";
|
|
3940
|
+
if (Y === -1 && (Y = n.indexOf("-"), S = -1), Y !== -1) {
|
|
3941
3941
|
if ($ = n.substring(Y + 1), n = n.substring(0, Y), $.length !== 2 && $.length !== 4)
|
|
3942
3942
|
throw new Error("Wrong input string for conversion");
|
|
3943
3943
|
let w = parseInt($.substring(0, 2), 10);
|
|
3944
3944
|
if (isNaN(w.valueOf()))
|
|
3945
3945
|
throw new Error("Wrong input string for conversion");
|
|
3946
|
-
if (c =
|
|
3946
|
+
if (c = S * w, $.length === 4) {
|
|
3947
3947
|
if (w = parseInt($.substring(2, 4), 10), isNaN(w.valueOf()))
|
|
3948
3948
|
throw new Error("Wrong input string for conversion");
|
|
3949
|
-
u =
|
|
3949
|
+
u = S * w;
|
|
3950
3950
|
}
|
|
3951
3951
|
}
|
|
3952
3952
|
}
|
|
3953
3953
|
let d = n.indexOf(".");
|
|
3954
3954
|
if (d === -1 && (d = n.indexOf(",")), d !== -1) {
|
|
3955
|
-
const
|
|
3956
|
-
if (isNaN(
|
|
3955
|
+
const S = new Number(`0${n.substring(d)}`);
|
|
3956
|
+
if (isNaN(S.valueOf()))
|
|
3957
3957
|
throw new Error("Wrong input string for conversion");
|
|
3958
|
-
s =
|
|
3958
|
+
s = S.valueOf(), i = n.substring(0, d);
|
|
3959
3959
|
} else
|
|
3960
3960
|
i = n;
|
|
3961
3961
|
switch (!0) {
|
|
@@ -3965,20 +3965,20 @@ class tc extends go {
|
|
|
3965
3965
|
break;
|
|
3966
3966
|
case i.length === 10:
|
|
3967
3967
|
if (o = /(\d{4})(\d{2})(\d{2})(\d{2})/ig, d !== -1) {
|
|
3968
|
-
let
|
|
3969
|
-
this.minute = Math.floor(
|
|
3968
|
+
let S = 60 * s;
|
|
3969
|
+
this.minute = Math.floor(S), S = 60 * (S - this.minute), this.second = Math.floor(S), S = 1e3 * (S - this.second), this.millisecond = Math.floor(S);
|
|
3970
3970
|
}
|
|
3971
3971
|
break;
|
|
3972
3972
|
case i.length === 12:
|
|
3973
3973
|
if (o = /(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/ig, d !== -1) {
|
|
3974
|
-
let
|
|
3975
|
-
this.second = Math.floor(
|
|
3974
|
+
let S = 60 * s;
|
|
3975
|
+
this.second = Math.floor(S), S = 1e3 * (S - this.second), this.millisecond = Math.floor(S);
|
|
3976
3976
|
}
|
|
3977
3977
|
break;
|
|
3978
3978
|
case i.length === 14:
|
|
3979
3979
|
if (o = /(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/ig, d !== -1) {
|
|
3980
|
-
const
|
|
3981
|
-
this.millisecond = Math.floor(
|
|
3980
|
+
const S = 1e3 * s;
|
|
3981
|
+
this.millisecond = Math.floor(S);
|
|
3982
3982
|
}
|
|
3983
3983
|
break;
|
|
3984
3984
|
default:
|
|
@@ -3987,32 +3987,32 @@ class tc extends go {
|
|
|
3987
3987
|
const b = o.exec(i);
|
|
3988
3988
|
if (b === null)
|
|
3989
3989
|
throw new Error("Wrong input string for conversion");
|
|
3990
|
-
for (let
|
|
3991
|
-
switch (
|
|
3990
|
+
for (let S = 1; S < b.length; S++)
|
|
3991
|
+
switch (S) {
|
|
3992
3992
|
case 1:
|
|
3993
|
-
this.year = parseInt(b[
|
|
3993
|
+
this.year = parseInt(b[S], 10);
|
|
3994
3994
|
break;
|
|
3995
3995
|
case 2:
|
|
3996
|
-
this.month = parseInt(b[
|
|
3996
|
+
this.month = parseInt(b[S], 10);
|
|
3997
3997
|
break;
|
|
3998
3998
|
case 3:
|
|
3999
|
-
this.day = parseInt(b[
|
|
3999
|
+
this.day = parseInt(b[S], 10);
|
|
4000
4000
|
break;
|
|
4001
4001
|
case 4:
|
|
4002
|
-
this.hour = parseInt(b[
|
|
4002
|
+
this.hour = parseInt(b[S], 10) + c;
|
|
4003
4003
|
break;
|
|
4004
4004
|
case 5:
|
|
4005
|
-
this.minute = parseInt(b[
|
|
4005
|
+
this.minute = parseInt(b[S], 10) + u;
|
|
4006
4006
|
break;
|
|
4007
4007
|
case 6:
|
|
4008
|
-
this.second = parseInt(b[
|
|
4008
|
+
this.second = parseInt(b[S], 10);
|
|
4009
4009
|
break;
|
|
4010
4010
|
default:
|
|
4011
4011
|
throw new Error("Wrong input string for conversion");
|
|
4012
4012
|
}
|
|
4013
4013
|
if (t === !1) {
|
|
4014
|
-
const
|
|
4015
|
-
this.year =
|
|
4014
|
+
const S = new Date(this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
4015
|
+
this.year = S.getUTCFullYear(), this.month = S.getUTCMonth(), this.day = S.getUTCDay(), this.hour = S.getUTCHours(), this.minute = S.getUTCMinutes(), this.second = S.getUTCSeconds(), this.millisecond = S.getUTCMilliseconds();
|
|
4016
4016
|
}
|
|
4017
4017
|
}
|
|
4018
4018
|
toString(e = "iso") {
|
|
@@ -4591,10 +4591,10 @@ class fg {
|
|
|
4591
4591
|
const o = n.items[s], c = t ? s : "";
|
|
4592
4592
|
let u;
|
|
4593
4593
|
if (typeof o.type == "number") {
|
|
4594
|
-
const b = A[o.type],
|
|
4595
|
-
if (!
|
|
4594
|
+
const b = A[o.type], S = xp[b];
|
|
4595
|
+
if (!S)
|
|
4596
4596
|
throw new Error(`Cannot get ASN1 class by name '${b}'`);
|
|
4597
|
-
u = new
|
|
4597
|
+
u = new S({ name: c });
|
|
4598
4598
|
} else An(o.type) ? u = new o.type().toSchema(c) : o.optional ? this.get(o.type).type === L.Choice ? u = new Bi({ name: c }) : (u = this.create(o.type, !1), u.name = c) : u = new Bi({ name: c });
|
|
4599
4599
|
const d = !!o.optional || o.defaultValue !== void 0;
|
|
4600
4600
|
if (o.repeated) {
|
|
@@ -4625,15 +4625,15 @@ class fg {
|
|
|
4625
4625
|
} else {
|
|
4626
4626
|
this.cache(o.type);
|
|
4627
4627
|
const b = !!o.repeated;
|
|
4628
|
-
let
|
|
4629
|
-
|
|
4628
|
+
let S = b ? u : this.get(o.type, !0).schema;
|
|
4629
|
+
S = "valueBlock" in S ? S.valueBlock.value : S.value, i.push(new gr({
|
|
4630
4630
|
name: b ? "" : c,
|
|
4631
4631
|
optional: d,
|
|
4632
4632
|
idBlock: {
|
|
4633
4633
|
tagClass: 3,
|
|
4634
4634
|
tagNumber: o.context
|
|
4635
4635
|
},
|
|
4636
|
-
value:
|
|
4636
|
+
value: S
|
|
4637
4637
|
}));
|
|
4638
4638
|
}
|
|
4639
4639
|
else
|
|
@@ -4733,35 +4733,35 @@ class hg {
|
|
|
4733
4733
|
const d = o.result[u];
|
|
4734
4734
|
if (!d)
|
|
4735
4735
|
continue;
|
|
4736
|
-
const b = i.items[u],
|
|
4737
|
-
if (typeof
|
|
4738
|
-
const Y = (n = b.converter) !== null && n !== void 0 ? n : An(
|
|
4736
|
+
const b = i.items[u], S = b.type;
|
|
4737
|
+
if (typeof S == "number" || An(S)) {
|
|
4738
|
+
const Y = (n = b.converter) !== null && n !== void 0 ? n : An(S) ? new S() : null;
|
|
4739
4739
|
if (!Y)
|
|
4740
4740
|
throw new Error("Converter is empty");
|
|
4741
4741
|
if (b.repeated)
|
|
4742
4742
|
if (b.implicit) {
|
|
4743
4743
|
const $ = b.repeated === "sequence" ? Sn : En, w = new $();
|
|
4744
4744
|
w.valueBlock = d.valueBlock;
|
|
4745
|
-
const
|
|
4746
|
-
if (
|
|
4747
|
-
throw new Error(`Cannot parse the child item. ${
|
|
4748
|
-
if (!("value" in
|
|
4745
|
+
const E = Wi(w.toBER(!1));
|
|
4746
|
+
if (E.offset === -1)
|
|
4747
|
+
throw new Error(`Cannot parse the child item. ${E.result.error}`);
|
|
4748
|
+
if (!("value" in E.result.valueBlock && Array.isArray(E.result.valueBlock.value)))
|
|
4749
4749
|
throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");
|
|
4750
|
-
const
|
|
4751
|
-
c[u] = Array.from(
|
|
4750
|
+
const B = E.result.valueBlock.value;
|
|
4751
|
+
c[u] = Array.from(B, (I) => Y.fromASN(I));
|
|
4752
4752
|
} else
|
|
4753
4753
|
c[u] = Array.from(d, ($) => Y.fromASN($));
|
|
4754
4754
|
else {
|
|
4755
4755
|
let $ = d;
|
|
4756
4756
|
if (b.implicit) {
|
|
4757
4757
|
let w;
|
|
4758
|
-
if (An(
|
|
4759
|
-
w = new
|
|
4758
|
+
if (An(S))
|
|
4759
|
+
w = new S().toSchema("");
|
|
4760
4760
|
else {
|
|
4761
|
-
const
|
|
4762
|
-
if (!
|
|
4763
|
-
throw new Error(`Cannot get '${
|
|
4764
|
-
w = new
|
|
4761
|
+
const E = A[S], B = xp[E];
|
|
4762
|
+
if (!B)
|
|
4763
|
+
throw new Error(`Cannot get '${E}' class from asn1js module`);
|
|
4764
|
+
w = new B();
|
|
4765
4765
|
}
|
|
4766
4766
|
w.valueBlock = $.valueBlock, $ = Wi(w.toBER(!1)).result;
|
|
4767
4767
|
}
|
|
@@ -4770,9 +4770,9 @@ class hg {
|
|
|
4770
4770
|
} else if (b.repeated) {
|
|
4771
4771
|
if (!Array.isArray(d))
|
|
4772
4772
|
throw new Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.");
|
|
4773
|
-
c[u] = Array.from(d, (Y) => this.fromASN(Y,
|
|
4773
|
+
c[u] = Array.from(d, (Y) => this.fromASN(Y, S));
|
|
4774
4774
|
} else
|
|
4775
|
-
c[u] = this.fromASN(d,
|
|
4775
|
+
c[u] = this.fromASN(d, S);
|
|
4776
4776
|
}
|
|
4777
4777
|
return c;
|
|
4778
4778
|
} catch (i) {
|
|
@@ -4928,38 +4928,38 @@ var Sp = { exports: {} };
|
|
|
4928
4928
|
deprecatedTransitional: new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${o})?)$`, "i"),
|
|
4929
4929
|
transitional: new RegExp(`^((?:${c})|(?:::)(?:${c})?)${t}\\.${t}\\.${t}\\.${t}(${o})?$`, "i")
|
|
4930
4930
|
};
|
|
4931
|
-
function d(w,
|
|
4931
|
+
function d(w, E) {
|
|
4932
4932
|
if (w.indexOf("::") !== w.lastIndexOf("::"))
|
|
4933
4933
|
return null;
|
|
4934
|
-
let
|
|
4934
|
+
let B = 0, I = -1, R = (w.match(u.zoneIndex) || [])[0], P, z;
|
|
4935
4935
|
for (R && (R = R.substring(1), w = w.replace(/%.+$/, "")); (I = w.indexOf(":", I + 1)) >= 0; )
|
|
4936
|
-
|
|
4937
|
-
if (w.substr(0, 2) === "::" &&
|
|
4936
|
+
B++;
|
|
4937
|
+
if (w.substr(0, 2) === "::" && B--, w.substr(-2, 2) === "::" && B--, B > E)
|
|
4938
4938
|
return null;
|
|
4939
|
-
for (z =
|
|
4939
|
+
for (z = E - B, P = ":"; z--; )
|
|
4940
4940
|
P += "0:";
|
|
4941
|
-
return w = w.replace("::", P), w[0] === ":" && (w = w.slice(1)), w[w.length - 1] === ":" && (w = w.slice(0, -1)),
|
|
4941
|
+
return w = w.replace("::", P), w[0] === ":" && (w = w.slice(1)), w[w.length - 1] === ":" && (w = w.slice(0, -1)), E = function() {
|
|
4942
4942
|
const he = w.split(":"), ae = [];
|
|
4943
4943
|
for (let de = 0; de < he.length; de++)
|
|
4944
4944
|
ae.push(parseInt(he[de], 16));
|
|
4945
4945
|
return ae;
|
|
4946
4946
|
}(), {
|
|
4947
|
-
parts:
|
|
4947
|
+
parts: E,
|
|
4948
4948
|
zoneId: R
|
|
4949
4949
|
};
|
|
4950
4950
|
}
|
|
4951
|
-
function b(w,
|
|
4952
|
-
if (w.length !==
|
|
4951
|
+
function b(w, E, B, I) {
|
|
4952
|
+
if (w.length !== E.length)
|
|
4953
4953
|
throw new Error("ipaddr: cannot match CIDR for objects with different lengths");
|
|
4954
4954
|
let R = 0, P;
|
|
4955
4955
|
for (; I > 0; ) {
|
|
4956
|
-
if (P =
|
|
4956
|
+
if (P = B - I, P < 0 && (P = 0), w[R] >> P !== E[R] >> P)
|
|
4957
4957
|
return !1;
|
|
4958
|
-
I -=
|
|
4958
|
+
I -= B, R += 1;
|
|
4959
4959
|
}
|
|
4960
4960
|
return !0;
|
|
4961
4961
|
}
|
|
4962
|
-
function
|
|
4962
|
+
function S(w) {
|
|
4963
4963
|
if (s.test(w))
|
|
4964
4964
|
return parseInt(w, 16);
|
|
4965
4965
|
if (w[0] === "0" && !isNaN(parseInt(w[1], 10))) {
|
|
@@ -4969,21 +4969,21 @@ var Sp = { exports: {} };
|
|
|
4969
4969
|
}
|
|
4970
4970
|
return parseInt(w, 10);
|
|
4971
4971
|
}
|
|
4972
|
-
function Y(w,
|
|
4973
|
-
for (; w.length <
|
|
4972
|
+
function Y(w, E) {
|
|
4973
|
+
for (; w.length < E; )
|
|
4974
4974
|
w = `0${w}`;
|
|
4975
4975
|
return w;
|
|
4976
4976
|
}
|
|
4977
4977
|
const $ = {};
|
|
4978
4978
|
$.IPv4 = function() {
|
|
4979
|
-
function w(
|
|
4980
|
-
if (
|
|
4979
|
+
function w(E) {
|
|
4980
|
+
if (E.length !== 4)
|
|
4981
4981
|
throw new Error("ipaddr: ipv4 octet count should be 4");
|
|
4982
|
-
let
|
|
4983
|
-
for (
|
|
4984
|
-
if (I =
|
|
4982
|
+
let B, I;
|
|
4983
|
+
for (B = 0; B < E.length; B++)
|
|
4984
|
+
if (I = E[B], !(0 <= I && I <= 255))
|
|
4985
4985
|
throw new Error("ipaddr: ipv4 octet should fit in 8 bits");
|
|
4986
|
-
this.octets =
|
|
4986
|
+
this.octets = E;
|
|
4987
4987
|
}
|
|
4988
4988
|
return w.prototype.SpecialRanges = {
|
|
4989
4989
|
unspecified: [[new w([0, 0, 0, 0]), 8]],
|
|
@@ -5023,13 +5023,13 @@ var Sp = { exports: {} };
|
|
|
5023
5023
|
]
|
|
5024
5024
|
}, w.prototype.kind = function() {
|
|
5025
5025
|
return "ipv4";
|
|
5026
|
-
}, w.prototype.match = function(
|
|
5026
|
+
}, w.prototype.match = function(E, B) {
|
|
5027
5027
|
let I;
|
|
5028
|
-
if (
|
|
5028
|
+
if (B === void 0 && (I = E, E = I[0], B = I[1]), E.kind() !== "ipv4")
|
|
5029
5029
|
throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");
|
|
5030
|
-
return b(this.octets,
|
|
5030
|
+
return b(this.octets, E.octets, 8, B);
|
|
5031
5031
|
}, w.prototype.prefixLengthFromSubnetMask = function() {
|
|
5032
|
-
let
|
|
5032
|
+
let E = 0, B = !1;
|
|
5033
5033
|
const I = {
|
|
5034
5034
|
0: 8,
|
|
5035
5035
|
128: 7,
|
|
@@ -5044,12 +5044,12 @@ var Sp = { exports: {} };
|
|
|
5044
5044
|
let R, P, z;
|
|
5045
5045
|
for (R = 3; R >= 0; R -= 1)
|
|
5046
5046
|
if (P = this.octets[R], P in I) {
|
|
5047
|
-
if (z = I[P],
|
|
5047
|
+
if (z = I[P], B && z !== 0)
|
|
5048
5048
|
return null;
|
|
5049
|
-
z !== 8 && (
|
|
5049
|
+
z !== 8 && (B = !0), E += z;
|
|
5050
5050
|
} else
|
|
5051
5051
|
return null;
|
|
5052
|
-
return 32 -
|
|
5052
|
+
return 32 - E;
|
|
5053
5053
|
}, w.prototype.range = function() {
|
|
5054
5054
|
return $.subnetMatch(this, this.SpecialRanges);
|
|
5055
5055
|
}, w.prototype.toByteArray = function() {
|
|
@@ -5063,10 +5063,10 @@ var Sp = { exports: {} };
|
|
|
5063
5063
|
}, w;
|
|
5064
5064
|
}(), $.IPv4.broadcastAddressFromCIDR = function(w) {
|
|
5065
5065
|
try {
|
|
5066
|
-
const
|
|
5066
|
+
const E = this.parseCIDR(w), B = E[0].toByteArray(), I = this.subnetMaskFromPrefixLength(E[1]).toByteArray(), R = [];
|
|
5067
5067
|
let P = 0;
|
|
5068
5068
|
for (; P < 4; )
|
|
5069
|
-
R.push(parseInt(
|
|
5069
|
+
R.push(parseInt(B[P], 10) | parseInt(I[P], 10) ^ 255), P++;
|
|
5070
5070
|
return new this(R);
|
|
5071
5071
|
} catch {
|
|
5072
5072
|
throw new Error("ipaddr: the address does not have IPv4 CIDR format");
|
|
@@ -5088,25 +5088,25 @@ var Sp = { exports: {} };
|
|
|
5088
5088
|
}, $.IPv4.isValidFourPartDecimal = function(w) {
|
|
5089
5089
|
return !!($.IPv4.isValid(w) && w.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/));
|
|
5090
5090
|
}, $.IPv4.networkAddressFromCIDR = function(w) {
|
|
5091
|
-
let
|
|
5091
|
+
let E, B, I, R, P;
|
|
5092
5092
|
try {
|
|
5093
|
-
for (
|
|
5094
|
-
R.push(parseInt(I[
|
|
5093
|
+
for (E = this.parseCIDR(w), I = E[0].toByteArray(), P = this.subnetMaskFromPrefixLength(E[1]).toByteArray(), R = [], B = 0; B < 4; )
|
|
5094
|
+
R.push(parseInt(I[B], 10) & parseInt(P[B], 10)), B++;
|
|
5095
5095
|
return new this(R);
|
|
5096
5096
|
} catch {
|
|
5097
5097
|
throw new Error("ipaddr: the address does not have IPv4 CIDR format");
|
|
5098
5098
|
}
|
|
5099
5099
|
}, $.IPv4.parse = function(w) {
|
|
5100
|
-
const
|
|
5101
|
-
if (
|
|
5100
|
+
const E = this.parser(w);
|
|
5101
|
+
if (E === null)
|
|
5102
5102
|
throw new Error("ipaddr: string is not formatted like an IPv4 Address");
|
|
5103
|
-
return new this(
|
|
5103
|
+
return new this(E);
|
|
5104
5104
|
}, $.IPv4.parseCIDR = function(w) {
|
|
5105
|
-
let
|
|
5106
|
-
if (
|
|
5107
|
-
const
|
|
5108
|
-
if (
|
|
5109
|
-
const I = [this.parse(
|
|
5105
|
+
let E;
|
|
5106
|
+
if (E = w.match(/^(.+)\/(\d+)$/)) {
|
|
5107
|
+
const B = parseInt(E[2]);
|
|
5108
|
+
if (B >= 0 && B <= 32) {
|
|
5109
|
+
const I = [this.parse(E[1]), B];
|
|
5110
5110
|
return Object.defineProperty(I, "toString", {
|
|
5111
5111
|
value: function() {
|
|
5112
5112
|
return this.join("/");
|
|
@@ -5116,16 +5116,16 @@ var Sp = { exports: {} };
|
|
|
5116
5116
|
}
|
|
5117
5117
|
throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range");
|
|
5118
5118
|
}, $.IPv4.parser = function(w) {
|
|
5119
|
-
let
|
|
5120
|
-
if (
|
|
5119
|
+
let E, B, I;
|
|
5120
|
+
if (E = w.match(n.fourOctet))
|
|
5121
5121
|
return function() {
|
|
5122
|
-
const R =
|
|
5122
|
+
const R = E.slice(1, 6), P = [];
|
|
5123
5123
|
for (let z = 0; z < R.length; z++)
|
|
5124
|
-
|
|
5124
|
+
B = R[z], P.push(S(B));
|
|
5125
5125
|
return P;
|
|
5126
5126
|
}();
|
|
5127
|
-
if (
|
|
5128
|
-
if (I = E
|
|
5127
|
+
if (E = w.match(n.longValue)) {
|
|
5128
|
+
if (I = S(E[1]), I > 4294967295 || I < 0)
|
|
5129
5129
|
throw new Error("ipaddr: address outside defined range");
|
|
5130
5130
|
return function() {
|
|
5131
5131
|
const R = [];
|
|
@@ -5134,40 +5134,40 @@ var Sp = { exports: {} };
|
|
|
5134
5134
|
R.push(I >> P & 255);
|
|
5135
5135
|
return R;
|
|
5136
5136
|
}().reverse();
|
|
5137
|
-
} else return (
|
|
5138
|
-
const R =
|
|
5139
|
-
if (I =
|
|
5137
|
+
} else return (E = w.match(n.twoOctet)) ? function() {
|
|
5138
|
+
const R = E.slice(1, 4), P = [];
|
|
5139
|
+
if (I = S(R[1]), I > 16777215 || I < 0)
|
|
5140
5140
|
throw new Error("ipaddr: address outside defined range");
|
|
5141
|
-
return P.push(
|
|
5142
|
-
}() : (
|
|
5143
|
-
const R =
|
|
5144
|
-
if (I =
|
|
5141
|
+
return P.push(S(R[0])), P.push(I >> 16 & 255), P.push(I >> 8 & 255), P.push(I & 255), P;
|
|
5142
|
+
}() : (E = w.match(n.threeOctet)) ? function() {
|
|
5143
|
+
const R = E.slice(1, 5), P = [];
|
|
5144
|
+
if (I = S(R[2]), I > 65535 || I < 0)
|
|
5145
5145
|
throw new Error("ipaddr: address outside defined range");
|
|
5146
|
-
return P.push(
|
|
5146
|
+
return P.push(S(R[0])), P.push(S(R[1])), P.push(I >> 8 & 255), P.push(I & 255), P;
|
|
5147
5147
|
}() : null;
|
|
5148
5148
|
}, $.IPv4.subnetMaskFromPrefixLength = function(w) {
|
|
5149
5149
|
if (w = parseInt(w), w < 0 || w > 32)
|
|
5150
5150
|
throw new Error("ipaddr: invalid IPv4 prefix length");
|
|
5151
|
-
const
|
|
5152
|
-
let
|
|
5151
|
+
const E = [0, 0, 0, 0];
|
|
5152
|
+
let B = 0;
|
|
5153
5153
|
const I = Math.floor(w / 8);
|
|
5154
|
-
for (;
|
|
5155
|
-
|
|
5156
|
-
return I < 4 && (
|
|
5154
|
+
for (; B < I; )
|
|
5155
|
+
E[B] = 255, B++;
|
|
5156
|
+
return I < 4 && (E[I] = Math.pow(2, w % 8) - 1 << 8 - w % 8), new this(E);
|
|
5157
5157
|
}, $.IPv6 = function() {
|
|
5158
|
-
function w(
|
|
5158
|
+
function w(E, B) {
|
|
5159
5159
|
let I, R;
|
|
5160
|
-
if (
|
|
5160
|
+
if (E.length === 16)
|
|
5161
5161
|
for (this.parts = [], I = 0; I <= 14; I += 2)
|
|
5162
|
-
this.parts.push(
|
|
5163
|
-
else if (
|
|
5164
|
-
this.parts =
|
|
5162
|
+
this.parts.push(E[I] << 8 | E[I + 1]);
|
|
5163
|
+
else if (E.length === 8)
|
|
5164
|
+
this.parts = E;
|
|
5165
5165
|
else
|
|
5166
5166
|
throw new Error("ipaddr: ipv6 part count should be 8 or 16");
|
|
5167
5167
|
for (I = 0; I < this.parts.length; I++)
|
|
5168
5168
|
if (R = this.parts[I], !(0 <= R && R <= 65535))
|
|
5169
5169
|
throw new Error("ipaddr: ipv6 part should fit in 16 bits");
|
|
5170
|
-
|
|
5170
|
+
B && (this.zoneId = B);
|
|
5171
5171
|
}
|
|
5172
5172
|
return w.prototype.SpecialRanges = {
|
|
5173
5173
|
// RFC4291, here and after
|
|
@@ -5208,13 +5208,13 @@ var Sp = { exports: {} };
|
|
|
5208
5208
|
return this.range() === "ipv4Mapped";
|
|
5209
5209
|
}, w.prototype.kind = function() {
|
|
5210
5210
|
return "ipv6";
|
|
5211
|
-
}, w.prototype.match = function(
|
|
5211
|
+
}, w.prototype.match = function(E, B) {
|
|
5212
5212
|
let I;
|
|
5213
|
-
if (
|
|
5213
|
+
if (B === void 0 && (I = E, E = I[0], B = I[1]), E.kind() !== "ipv6")
|
|
5214
5214
|
throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");
|
|
5215
|
-
return b(this.parts,
|
|
5215
|
+
return b(this.parts, E.parts, 16, B);
|
|
5216
5216
|
}, w.prototype.prefixLengthFromSubnetMask = function() {
|
|
5217
|
-
let
|
|
5217
|
+
let E = 0, B = !1;
|
|
5218
5218
|
const I = {
|
|
5219
5219
|
0: 16,
|
|
5220
5220
|
32768: 15,
|
|
@@ -5237,61 +5237,61 @@ var Sp = { exports: {} };
|
|
|
5237
5237
|
let R, P;
|
|
5238
5238
|
for (let z = 7; z >= 0; z -= 1)
|
|
5239
5239
|
if (R = this.parts[z], R in I) {
|
|
5240
|
-
if (P = I[R],
|
|
5240
|
+
if (P = I[R], B && P !== 0)
|
|
5241
5241
|
return null;
|
|
5242
|
-
P !== 16 && (
|
|
5242
|
+
P !== 16 && (B = !0), E += P;
|
|
5243
5243
|
} else
|
|
5244
5244
|
return null;
|
|
5245
|
-
return 128 -
|
|
5245
|
+
return 128 - E;
|
|
5246
5246
|
}, w.prototype.range = function() {
|
|
5247
5247
|
return $.subnetMatch(this, this.SpecialRanges);
|
|
5248
5248
|
}, w.prototype.toByteArray = function() {
|
|
5249
|
-
let
|
|
5250
|
-
const
|
|
5249
|
+
let E;
|
|
5250
|
+
const B = [], I = this.parts;
|
|
5251
5251
|
for (let R = 0; R < I.length; R++)
|
|
5252
|
-
|
|
5253
|
-
return
|
|
5252
|
+
E = I[R], B.push(E >> 8), B.push(E & 255);
|
|
5253
|
+
return B;
|
|
5254
5254
|
}, w.prototype.toFixedLengthString = function() {
|
|
5255
|
-
const
|
|
5255
|
+
const E = (function() {
|
|
5256
5256
|
const I = [];
|
|
5257
5257
|
for (let R = 0; R < this.parts.length; R++)
|
|
5258
5258
|
I.push(Y(this.parts[R].toString(16), 4));
|
|
5259
5259
|
return I;
|
|
5260
5260
|
}).call(this).join(":");
|
|
5261
|
-
let
|
|
5262
|
-
return this.zoneId && (
|
|
5261
|
+
let B = "";
|
|
5262
|
+
return this.zoneId && (B = `%${this.zoneId}`), E + B;
|
|
5263
5263
|
}, w.prototype.toIPv4Address = function() {
|
|
5264
5264
|
if (!this.isIPv4MappedAddress())
|
|
5265
5265
|
throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");
|
|
5266
|
-
const
|
|
5267
|
-
return new $.IPv4([
|
|
5266
|
+
const E = this.parts.slice(-2), B = E[0], I = E[1];
|
|
5267
|
+
return new $.IPv4([B >> 8, B & 255, I >> 8, I & 255]);
|
|
5268
5268
|
}, w.prototype.toNormalizedString = function() {
|
|
5269
|
-
const
|
|
5269
|
+
const E = (function() {
|
|
5270
5270
|
const I = [];
|
|
5271
5271
|
for (let R = 0; R < this.parts.length; R++)
|
|
5272
5272
|
I.push(this.parts[R].toString(16));
|
|
5273
5273
|
return I;
|
|
5274
5274
|
}).call(this).join(":");
|
|
5275
|
-
let
|
|
5276
|
-
return this.zoneId && (
|
|
5275
|
+
let B = "";
|
|
5276
|
+
return this.zoneId && (B = `%${this.zoneId}`), E + B;
|
|
5277
5277
|
}, w.prototype.toRFC5952String = function() {
|
|
5278
|
-
const
|
|
5278
|
+
const E = /((^|:)(0(:|$)){2,})/g, B = this.toNormalizedString();
|
|
5279
5279
|
let I = 0, R = -1, P;
|
|
5280
|
-
for (; P =
|
|
5280
|
+
for (; P = E.exec(B); )
|
|
5281
5281
|
P[0].length > R && (I = P.index, R = P[0].length);
|
|
5282
|
-
return R < 0 ?
|
|
5282
|
+
return R < 0 ? B : `${B.substring(0, I)}::${B.substring(I + R)}`;
|
|
5283
5283
|
}, w.prototype.toString = function() {
|
|
5284
5284
|
return this.toRFC5952String();
|
|
5285
5285
|
}, w;
|
|
5286
5286
|
}(), $.IPv6.broadcastAddressFromCIDR = function(w) {
|
|
5287
5287
|
try {
|
|
5288
|
-
const
|
|
5288
|
+
const E = this.parseCIDR(w), B = E[0].toByteArray(), I = this.subnetMaskFromPrefixLength(E[1]).toByteArray(), R = [];
|
|
5289
5289
|
let P = 0;
|
|
5290
5290
|
for (; P < 16; )
|
|
5291
|
-
R.push(parseInt(
|
|
5291
|
+
R.push(parseInt(B[P], 10) | parseInt(I[P], 10) ^ 255), P++;
|
|
5292
5292
|
return new this(R);
|
|
5293
|
-
} catch (
|
|
5294
|
-
throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${
|
|
5293
|
+
} catch (E) {
|
|
5294
|
+
throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${E})`);
|
|
5295
5295
|
}
|
|
5296
5296
|
}, $.IPv6.isIPv6 = function(w) {
|
|
5297
5297
|
return this.parser(w) !== null;
|
|
@@ -5299,8 +5299,8 @@ var Sp = { exports: {} };
|
|
|
5299
5299
|
if (typeof w == "string" && w.indexOf(":") === -1)
|
|
5300
5300
|
return !1;
|
|
5301
5301
|
try {
|
|
5302
|
-
const
|
|
5303
|
-
return new this(
|
|
5302
|
+
const E = this.parser(w);
|
|
5303
|
+
return new this(E.parts, E.zoneId), !0;
|
|
5304
5304
|
} catch {
|
|
5305
5305
|
return !1;
|
|
5306
5306
|
}
|
|
@@ -5313,63 +5313,63 @@ var Sp = { exports: {} };
|
|
|
5313
5313
|
return !1;
|
|
5314
5314
|
}
|
|
5315
5315
|
}, $.IPv6.networkAddressFromCIDR = function(w) {
|
|
5316
|
-
let
|
|
5316
|
+
let E, B, I, R, P;
|
|
5317
5317
|
try {
|
|
5318
|
-
for (
|
|
5319
|
-
R.push(parseInt(I[
|
|
5318
|
+
for (E = this.parseCIDR(w), I = E[0].toByteArray(), P = this.subnetMaskFromPrefixLength(E[1]).toByteArray(), R = [], B = 0; B < 16; )
|
|
5319
|
+
R.push(parseInt(I[B], 10) & parseInt(P[B], 10)), B++;
|
|
5320
5320
|
return new this(R);
|
|
5321
5321
|
} catch (z) {
|
|
5322
5322
|
throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${z})`);
|
|
5323
5323
|
}
|
|
5324
5324
|
}, $.IPv6.parse = function(w) {
|
|
5325
|
-
const
|
|
5326
|
-
if (
|
|
5325
|
+
const E = this.parser(w);
|
|
5326
|
+
if (E.parts === null)
|
|
5327
5327
|
throw new Error("ipaddr: string is not formatted like an IPv6 Address");
|
|
5328
|
-
return new this(
|
|
5328
|
+
return new this(E.parts, E.zoneId);
|
|
5329
5329
|
}, $.IPv6.parseCIDR = function(w) {
|
|
5330
|
-
let
|
|
5331
|
-
if ((
|
|
5332
|
-
return I = [this.parse(
|
|
5330
|
+
let E, B, I;
|
|
5331
|
+
if ((B = w.match(/^(.+)\/(\d+)$/)) && (E = parseInt(B[2]), E >= 0 && E <= 128))
|
|
5332
|
+
return I = [this.parse(B[1]), E], Object.defineProperty(I, "toString", {
|
|
5333
5333
|
value: function() {
|
|
5334
5334
|
return this.join("/");
|
|
5335
5335
|
}
|
|
5336
5336
|
}), I;
|
|
5337
5337
|
throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range");
|
|
5338
5338
|
}, $.IPv6.parser = function(w) {
|
|
5339
|
-
let
|
|
5339
|
+
let E, B, I, R, P, z;
|
|
5340
5340
|
if (I = w.match(u.deprecatedTransitional))
|
|
5341
5341
|
return this.parser(`::ffff:${I[1]}`);
|
|
5342
5342
|
if (u.native.test(w))
|
|
5343
5343
|
return d(w, 8);
|
|
5344
|
-
if ((I = w.match(u.transitional)) && (z = I[6] || "",
|
|
5344
|
+
if ((I = w.match(u.transitional)) && (z = I[6] || "", E = I[1], I[1].endsWith("::") || (E = E.slice(0, -1)), E = d(E + z, 6), E.parts)) {
|
|
5345
5345
|
for (P = [
|
|
5346
5346
|
parseInt(I[2]),
|
|
5347
5347
|
parseInt(I[3]),
|
|
5348
5348
|
parseInt(I[4]),
|
|
5349
5349
|
parseInt(I[5])
|
|
5350
|
-
],
|
|
5351
|
-
if (R = P[
|
|
5350
|
+
], B = 0; B < P.length; B++)
|
|
5351
|
+
if (R = P[B], !(0 <= R && R <= 255))
|
|
5352
5352
|
return null;
|
|
5353
|
-
return
|
|
5354
|
-
parts:
|
|
5355
|
-
zoneId:
|
|
5353
|
+
return E.parts.push(P[0] << 8 | P[1]), E.parts.push(P[2] << 8 | P[3]), {
|
|
5354
|
+
parts: E.parts,
|
|
5355
|
+
zoneId: E.zoneId
|
|
5356
5356
|
};
|
|
5357
5357
|
}
|
|
5358
5358
|
return null;
|
|
5359
5359
|
}, $.IPv6.subnetMaskFromPrefixLength = function(w) {
|
|
5360
5360
|
if (w = parseInt(w), w < 0 || w > 128)
|
|
5361
5361
|
throw new Error("ipaddr: invalid IPv6 prefix length");
|
|
5362
|
-
const
|
|
5363
|
-
let
|
|
5362
|
+
const E = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
5363
|
+
let B = 0;
|
|
5364
5364
|
const I = Math.floor(w / 8);
|
|
5365
|
-
for (;
|
|
5366
|
-
|
|
5367
|
-
return I < 16 && (
|
|
5365
|
+
for (; B < I; )
|
|
5366
|
+
E[B] = 255, B++;
|
|
5367
|
+
return I < 16 && (E[I] = Math.pow(2, w % 8) - 1 << 8 - w % 8), new this(E);
|
|
5368
5368
|
}, $.fromByteArray = function(w) {
|
|
5369
|
-
const
|
|
5370
|
-
if (
|
|
5369
|
+
const E = w.length;
|
|
5370
|
+
if (E === 4)
|
|
5371
5371
|
return new $.IPv4(w);
|
|
5372
|
-
if (
|
|
5372
|
+
if (E === 16)
|
|
5373
5373
|
return new $.IPv6(w);
|
|
5374
5374
|
throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address");
|
|
5375
5375
|
}, $.isValid = function(w) {
|
|
@@ -5393,18 +5393,18 @@ var Sp = { exports: {} };
|
|
|
5393
5393
|
}
|
|
5394
5394
|
}
|
|
5395
5395
|
}, $.process = function(w) {
|
|
5396
|
-
const
|
|
5397
|
-
return
|
|
5398
|
-
}, $.subnetMatch = function(w,
|
|
5396
|
+
const E = this.parse(w);
|
|
5397
|
+
return E.kind() === "ipv6" && E.isIPv4MappedAddress() ? E.toIPv4Address() : E;
|
|
5398
|
+
}, $.subnetMatch = function(w, E, B) {
|
|
5399
5399
|
let I, R, P, z;
|
|
5400
|
-
|
|
5401
|
-
for (R in
|
|
5402
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
5403
|
-
for (P =
|
|
5400
|
+
B == null && (B = "unicast");
|
|
5401
|
+
for (R in E)
|
|
5402
|
+
if (Object.prototype.hasOwnProperty.call(E, R)) {
|
|
5403
|
+
for (P = E[R], P[0] && !(P[0] instanceof Array) && (P = [P]), I = 0; I < P.length; I++)
|
|
5404
5404
|
if (z = P[I], w.kind() === z[0].kind() && w.match.apply(w, z))
|
|
5405
5405
|
return R;
|
|
5406
5406
|
}
|
|
5407
|
-
return
|
|
5407
|
+
return B;
|
|
5408
5408
|
}, r.exports ? r.exports = $ : e.ipaddr = $;
|
|
5409
5409
|
})(tl);
|
|
5410
5410
|
})(Sp);
|
|
@@ -7454,15 +7454,15 @@ function Ug(r, e, t, n) {
|
|
|
7454
7454
|
function c(b) {
|
|
7455
7455
|
try {
|
|
7456
7456
|
d(n.next(b));
|
|
7457
|
-
} catch (
|
|
7458
|
-
o(
|
|
7457
|
+
} catch (S) {
|
|
7458
|
+
o(S);
|
|
7459
7459
|
}
|
|
7460
7460
|
}
|
|
7461
7461
|
function u(b) {
|
|
7462
7462
|
try {
|
|
7463
7463
|
d(n.throw(b));
|
|
7464
|
-
} catch (
|
|
7465
|
-
o(
|
|
7464
|
+
} catch (S) {
|
|
7465
|
+
o(S);
|
|
7466
7466
|
}
|
|
7467
7467
|
}
|
|
7468
7468
|
function d(b) {
|
|
@@ -9124,13 +9124,13 @@ class yr {
|
|
|
9124
9124
|
const u = c.split(new RegExp(us, "g"));
|
|
9125
9125
|
let d = null;
|
|
9126
9126
|
for (const b of u) {
|
|
9127
|
-
const [
|
|
9127
|
+
const [S, Y] = b.split(/:(.*)/);
|
|
9128
9128
|
if (Y === void 0) {
|
|
9129
9129
|
if (!d)
|
|
9130
9130
|
throw new Error("Cannot parse PEM string. Incorrect header value");
|
|
9131
|
-
d.value +=
|
|
9131
|
+
d.value += S.trim();
|
|
9132
9132
|
} else
|
|
9133
|
-
d && o.headers.push(d), d = { key:
|
|
9133
|
+
d && o.headers.push(d), d = { key: S, value: Y.trim() };
|
|
9134
9134
|
}
|
|
9135
9135
|
d && o.headers.push(d);
|
|
9136
9136
|
}
|
|
@@ -10856,8 +10856,8 @@ function A0(r, e, t) {
|
|
|
10856
10856
|
n += `Tag #${r.value}`;
|
|
10857
10857
|
const u = r.children, [d] = u.contents.children, b = new We(u.tag, d);
|
|
10858
10858
|
Ws(b, i);
|
|
10859
|
-
const
|
|
10860
|
-
|
|
10859
|
+
const S = b.comment(e, r.depth);
|
|
10860
|
+
S && (n += ": ", n += S), o || (o = b.noChildren);
|
|
10861
10861
|
break;
|
|
10862
10862
|
}
|
|
10863
10863
|
case _e.SIMPLE_FLOAT:
|
|
@@ -12561,10 +12561,10 @@ class Tt extends Ze {
|
|
|
12561
12561
|
o.includes(d) || c.push(d);
|
|
12562
12562
|
const u = [];
|
|
12563
12563
|
for (const d of o) {
|
|
12564
|
-
const b = s[d],
|
|
12564
|
+
const b = s[d], S = i.data[d];
|
|
12565
12565
|
u.push({
|
|
12566
12566
|
key: { status: "valid", value: d },
|
|
12567
|
-
value: b._parse(new pn(i,
|
|
12567
|
+
value: b._parse(new pn(i, S, i.path, d)),
|
|
12568
12568
|
alwaysSet: d in i.data
|
|
12569
12569
|
});
|
|
12570
12570
|
}
|
|
@@ -12585,11 +12585,11 @@ class Tt extends Ze {
|
|
|
12585
12585
|
} else {
|
|
12586
12586
|
const d = this._def.catchall;
|
|
12587
12587
|
for (const b of c) {
|
|
12588
|
-
const
|
|
12588
|
+
const S = i.data[b];
|
|
12589
12589
|
u.push({
|
|
12590
12590
|
key: { status: "valid", value: b },
|
|
12591
12591
|
value: d._parse(
|
|
12592
|
-
new pn(i,
|
|
12592
|
+
new pn(i, S, i.path, b)
|
|
12593
12593
|
//, ctx.child(key), value, getParsedType(value)
|
|
12594
12594
|
),
|
|
12595
12595
|
alwaysSet: b in i.data
|
|
@@ -12599,9 +12599,9 @@ class Tt extends Ze {
|
|
|
12599
12599
|
return i.common.async ? Promise.resolve().then(async () => {
|
|
12600
12600
|
const d = [];
|
|
12601
12601
|
for (const b of u) {
|
|
12602
|
-
const
|
|
12602
|
+
const S = await b.key, Y = await b.value;
|
|
12603
12603
|
d.push({
|
|
12604
|
-
key:
|
|
12604
|
+
key: S,
|
|
12605
12605
|
value: Y,
|
|
12606
12606
|
alwaysSet: b.alwaysSet
|
|
12607
12607
|
});
|
|
@@ -13276,9 +13276,9 @@ class Ji extends Ze {
|
|
|
13276
13276
|
return lr(async function(...u) {
|
|
13277
13277
|
const d = new _r([]), b = await c._def.args.parseAsync(u, s).catch(($) => {
|
|
13278
13278
|
throw d.addIssue(n(u, $)), d;
|
|
13279
|
-
}),
|
|
13280
|
-
return await c._def.returns._def.type.parseAsync(
|
|
13281
|
-
throw d.addIssue(i(
|
|
13279
|
+
}), S = await Reflect.apply(o, this, b);
|
|
13280
|
+
return await c._def.returns._def.type.parseAsync(S, s).catch(($) => {
|
|
13281
|
+
throw d.addIssue(i(S, $)), d;
|
|
13282
13282
|
});
|
|
13283
13283
|
});
|
|
13284
13284
|
} else {
|
|
@@ -13287,10 +13287,10 @@ class Ji extends Ze {
|
|
|
13287
13287
|
const d = c._def.args.safeParse(u, s);
|
|
13288
13288
|
if (!d.success)
|
|
13289
13289
|
throw new _r([n(u, d.error)]);
|
|
13290
|
-
const b = Reflect.apply(o, this, d.data),
|
|
13291
|
-
if (!
|
|
13292
|
-
throw new _r([i(b,
|
|
13293
|
-
return
|
|
13290
|
+
const b = Reflect.apply(o, this, d.data), S = c._def.returns.safeParse(b, s);
|
|
13291
|
+
if (!S.success)
|
|
13292
|
+
throw new _r([i(b, S.error)]);
|
|
13293
|
+
return S.data;
|
|
13294
13294
|
});
|
|
13295
13295
|
}
|
|
13296
13296
|
}
|
|
@@ -13980,23 +13980,23 @@ async function Pa(r, e, t) {
|
|
|
13980
13980
|
const R = new $i(i.cabundle[I]);
|
|
13981
13981
|
c.push(R);
|
|
13982
13982
|
}
|
|
13983
|
-
const d = new $i(i.certificate),
|
|
13983
|
+
const d = new $i(i.certificate), S = await new gv({
|
|
13984
13984
|
certificates: c
|
|
13985
13985
|
}).build(d);
|
|
13986
|
-
console.log("Chain items:",
|
|
13986
|
+
console.log("Chain items:", S);
|
|
13987
13987
|
const $ = (/* @__PURE__ */ new Date()).getTime();
|
|
13988
|
-
for (let I = 0; I <
|
|
13989
|
-
const R =
|
|
13988
|
+
for (let I = 0; I < S.length; I++) {
|
|
13989
|
+
const R = S[I];
|
|
13990
13990
|
if (console.log("CERT: ", I), console.log(R.subject), console.log("Not before:", R.notBefore), console.log("Not after:", R.notAfter), console.log(R.toString("pem")), R.notBefore.getTime() > $ || R.notAfter.getTime() < $)
|
|
13991
13991
|
throw new Error("Certificate is expired.");
|
|
13992
13992
|
console.log(`Certificate ${I} is not expired.`);
|
|
13993
13993
|
}
|
|
13994
|
-
if (
|
|
13994
|
+
if (S.length !== i.cabundle.length + 1)
|
|
13995
13995
|
throw new Error("Certificate chain length does not match length of cabundle.");
|
|
13996
13996
|
const w = d.publicKey;
|
|
13997
13997
|
console.log("PUBLIC KEY:"), console.log(Lr(new Uint8Array(w.rawData)));
|
|
13998
|
-
const
|
|
13999
|
-
if (console.log("Signature verified:",
|
|
13998
|
+
const E = await w.export(), B = await J1(n, E);
|
|
13999
|
+
if (console.log("Signature verified:", B), !B)
|
|
14000
14000
|
throw new Error("Signature verification failed.");
|
|
14001
14001
|
return i;
|
|
14002
14002
|
} catch (n) {
|
|
@@ -14010,12 +14010,12 @@ async function Q1(r) {
|
|
|
14010
14010
|
const e = Us(r), n = ka(e)[2], i = ka(n);
|
|
14011
14011
|
return await X1.parse(i);
|
|
14012
14012
|
}
|
|
14013
|
-
async function em(r) {
|
|
14013
|
+
async function em(r, e) {
|
|
14014
14014
|
try {
|
|
14015
|
-
const
|
|
14016
|
-
return
|
|
14017
|
-
} catch (
|
|
14018
|
-
throw
|
|
14015
|
+
const t = await pm(r);
|
|
14016
|
+
return e && (e === "http://127.0.0.1:3000" || e === "http://localhost:3000" || e === "http://0.0.0.0:3000") ? (console.log("DEV MODE: Using fake attestation document"), await Q1(t)) : await Pa(t, ja, r);
|
|
14017
|
+
} catch (t) {
|
|
14018
|
+
throw t instanceof Error ? (console.error("Error verifying attestation document:", t), new Error(`Couldn't process attestation document: ${t.message}`)) : (console.error("Error verifying attestation document:", t), new Error("Couldn't process attestation document."));
|
|
14019
14019
|
}
|
|
14020
14020
|
}
|
|
14021
14021
|
function tm(r) {
|
|
@@ -14036,30 +14036,30 @@ const rm = {}, nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14036
14036
|
throw new Error("no PRNG");
|
|
14037
14037
|
}, i = new Uint8Array(16), s = new Uint8Array(32);
|
|
14038
14038
|
s[0] = 9;
|
|
14039
|
-
var o = t(), c = t([1]), u = t([56129, 1]), d = t([30883, 4953, 19914, 30187, 55467, 16705, 2637, 112, 59544, 30585, 16505, 36039, 65139, 11119, 27886, 20995]), b = t([61785, 9906, 39828, 60374, 45398, 33411, 5274, 224, 53552, 61171, 33010, 6542, 64743, 22239, 55772, 9222]),
|
|
14039
|
+
var o = t(), c = t([1]), u = t([56129, 1]), d = t([30883, 4953, 19914, 30187, 55467, 16705, 2637, 112, 59544, 30585, 16505, 36039, 65139, 11119, 27886, 20995]), b = t([61785, 9906, 39828, 60374, 45398, 33411, 5274, 224, 53552, 61171, 33010, 6542, 64743, 22239, 55772, 9222]), S = t([54554, 36645, 11616, 51542, 42930, 38181, 51040, 26924, 56412, 64982, 57905, 49316, 21502, 52590, 14035, 8553]), Y = t([26200, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214]), $ = t([41136, 18958, 6951, 50414, 58488, 44335, 6150, 12099, 55207, 15867, 153, 11085, 57099, 20417, 9344, 11139]);
|
|
14040
14040
|
function w(l, y, p, a) {
|
|
14041
14041
|
l[y] = p >> 24 & 255, l[y + 1] = p >> 16 & 255, l[y + 2] = p >> 8 & 255, l[y + 3] = p & 255, l[y + 4] = a >> 24 & 255, l[y + 5] = a >> 16 & 255, l[y + 6] = a >> 8 & 255, l[y + 7] = a & 255;
|
|
14042
14042
|
}
|
|
14043
|
-
function
|
|
14043
|
+
function E(l, y, p, a, v) {
|
|
14044
14044
|
var h, m = 0;
|
|
14045
14045
|
for (h = 0; h < v; h++) m |= l[y + h] ^ p[a + h];
|
|
14046
14046
|
return (1 & m - 1 >>> 8) - 1;
|
|
14047
14047
|
}
|
|
14048
|
-
function
|
|
14049
|
-
return
|
|
14048
|
+
function B(l, y, p, a) {
|
|
14049
|
+
return E(l, y, p, a, 16);
|
|
14050
14050
|
}
|
|
14051
14051
|
function I(l, y, p, a) {
|
|
14052
|
-
return
|
|
14052
|
+
return E(l, y, p, a, 32);
|
|
14053
14053
|
}
|
|
14054
14054
|
function R(l, y, p, a) {
|
|
14055
|
-
for (var v = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, h = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, m = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, _ = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, N = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Z = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, F = y[0] & 255 | (y[1] & 255) << 8 | (y[2] & 255) << 16 | (y[3] & 255) << 24, pe = y[4] & 255 | (y[5] & 255) << 8 | (y[6] & 255) << 16 | (y[7] & 255) << 24, V = y[8] & 255 | (y[9] & 255) << 8 | (y[10] & 255) << 16 | (y[11] & 255) << 24, be = y[12] & 255 | (y[13] & 255) << 8 | (y[14] & 255) << 16 | (y[15] & 255) << 24, ye = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, xe = p[16] & 255 | (p[17] & 255) << 8 | (p[18] & 255) << 16 | (p[19] & 255) << 24, Ce = p[20] & 255 | (p[21] & 255) << 8 | (p[22] & 255) << 16 | (p[23] & 255) << 24, Be = p[24] & 255 | (p[25] & 255) << 8 | (p[26] & 255) << 16 | (p[27] & 255) << 24, Oe = p[28] & 255 | (p[29] & 255) << 8 | (p[30] & 255) << 16 | (p[31] & 255) << 24, Se = a[12] & 255 | (a[13] & 255) << 8 | (a[14] & 255) << 16 | (a[15] & 255) << 24, le = v, ke = h, ie = m, we = _, Ae = N, ne = Z,
|
|
14056
|
-
x = le + Ne | 0, Ae ^= x << 7 | x >>> 25, x = Ae + le | 0, H ^= x << 9 | x >>> 23, x = H + Ae | 0, Ne ^= x << 13 | x >>> 19, x = Ne + H | 0, le ^= x << 18 | x >>> 14, x = ne + ke | 0, U ^= x << 7 | x >>> 25, x = U + ne | 0, Ve ^= x << 9 | x >>> 23, x = Ve + U | 0, ke ^= x << 13 | x >>> 19, x = ke + Ve | 0, ne ^= x << 18 | x >>> 14, x = D +
|
|
14057
|
-
le = le + v | 0, ke = ke + h | 0, ie = ie + m | 0, we = we + _ | 0, Ae = Ae + N | 0, ne = ne + Z | 0,
|
|
14055
|
+
for (var v = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, h = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, m = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, _ = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, N = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Z = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, F = y[0] & 255 | (y[1] & 255) << 8 | (y[2] & 255) << 16 | (y[3] & 255) << 24, pe = y[4] & 255 | (y[5] & 255) << 8 | (y[6] & 255) << 16 | (y[7] & 255) << 24, V = y[8] & 255 | (y[9] & 255) << 8 | (y[10] & 255) << 16 | (y[11] & 255) << 24, be = y[12] & 255 | (y[13] & 255) << 8 | (y[14] & 255) << 16 | (y[15] & 255) << 24, ye = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, xe = p[16] & 255 | (p[17] & 255) << 8 | (p[18] & 255) << 16 | (p[19] & 255) << 24, Ce = p[20] & 255 | (p[21] & 255) << 8 | (p[22] & 255) << 16 | (p[23] & 255) << 24, Be = p[24] & 255 | (p[25] & 255) << 8 | (p[26] & 255) << 16 | (p[27] & 255) << 24, Oe = p[28] & 255 | (p[29] & 255) << 8 | (p[30] & 255) << 16 | (p[31] & 255) << 24, Se = a[12] & 255 | (a[13] & 255) << 8 | (a[14] & 255) << 16 | (a[15] & 255) << 24, le = v, ke = h, ie = m, we = _, Ae = N, ne = Z, O = F, T = pe, H = V, U = be, D = ye, G = xe, Ne = Ce, Ve = Be, Fe = Oe, Le = Se, x, qe = 0; qe < 20; qe += 2)
|
|
14056
|
+
x = le + Ne | 0, Ae ^= x << 7 | x >>> 25, x = Ae + le | 0, H ^= x << 9 | x >>> 23, x = H + Ae | 0, Ne ^= x << 13 | x >>> 19, x = Ne + H | 0, le ^= x << 18 | x >>> 14, x = ne + ke | 0, U ^= x << 7 | x >>> 25, x = U + ne | 0, Ve ^= x << 9 | x >>> 23, x = Ve + U | 0, ke ^= x << 13 | x >>> 19, x = ke + Ve | 0, ne ^= x << 18 | x >>> 14, x = D + O | 0, Fe ^= x << 7 | x >>> 25, x = Fe + D | 0, ie ^= x << 9 | x >>> 23, x = ie + Fe | 0, O ^= x << 13 | x >>> 19, x = O + ie | 0, D ^= x << 18 | x >>> 14, x = Le + G | 0, we ^= x << 7 | x >>> 25, x = we + Le | 0, T ^= x << 9 | x >>> 23, x = T + we | 0, G ^= x << 13 | x >>> 19, x = G + T | 0, Le ^= x << 18 | x >>> 14, x = le + we | 0, ke ^= x << 7 | x >>> 25, x = ke + le | 0, ie ^= x << 9 | x >>> 23, x = ie + ke | 0, we ^= x << 13 | x >>> 19, x = we + ie | 0, le ^= x << 18 | x >>> 14, x = ne + Ae | 0, O ^= x << 7 | x >>> 25, x = O + ne | 0, T ^= x << 9 | x >>> 23, x = T + O | 0, Ae ^= x << 13 | x >>> 19, x = Ae + T | 0, ne ^= x << 18 | x >>> 14, x = D + U | 0, G ^= x << 7 | x >>> 25, x = G + D | 0, H ^= x << 9 | x >>> 23, x = H + G | 0, U ^= x << 13 | x >>> 19, x = U + H | 0, D ^= x << 18 | x >>> 14, x = Le + Fe | 0, Ne ^= x << 7 | x >>> 25, x = Ne + Le | 0, Ve ^= x << 9 | x >>> 23, x = Ve + Ne | 0, Fe ^= x << 13 | x >>> 19, x = Fe + Ve | 0, Le ^= x << 18 | x >>> 14;
|
|
14057
|
+
le = le + v | 0, ke = ke + h | 0, ie = ie + m | 0, we = we + _ | 0, Ae = Ae + N | 0, ne = ne + Z | 0, O = O + F | 0, T = T + pe | 0, H = H + V | 0, U = U + be | 0, D = D + ye | 0, G = G + xe | 0, Ne = Ne + Ce | 0, Ve = Ve + Be | 0, Fe = Fe + Oe | 0, Le = Le + Se | 0, l[0] = le >>> 0 & 255, l[1] = le >>> 8 & 255, l[2] = le >>> 16 & 255, l[3] = le >>> 24 & 255, l[4] = ke >>> 0 & 255, l[5] = ke >>> 8 & 255, l[6] = ke >>> 16 & 255, l[7] = ke >>> 24 & 255, l[8] = ie >>> 0 & 255, l[9] = ie >>> 8 & 255, l[10] = ie >>> 16 & 255, l[11] = ie >>> 24 & 255, l[12] = we >>> 0 & 255, l[13] = we >>> 8 & 255, l[14] = we >>> 16 & 255, l[15] = we >>> 24 & 255, l[16] = Ae >>> 0 & 255, l[17] = Ae >>> 8 & 255, l[18] = Ae >>> 16 & 255, l[19] = Ae >>> 24 & 255, l[20] = ne >>> 0 & 255, l[21] = ne >>> 8 & 255, l[22] = ne >>> 16 & 255, l[23] = ne >>> 24 & 255, l[24] = O >>> 0 & 255, l[25] = O >>> 8 & 255, l[26] = O >>> 16 & 255, l[27] = O >>> 24 & 255, l[28] = T >>> 0 & 255, l[29] = T >>> 8 & 255, l[30] = T >>> 16 & 255, l[31] = T >>> 24 & 255, l[32] = H >>> 0 & 255, l[33] = H >>> 8 & 255, l[34] = H >>> 16 & 255, l[35] = H >>> 24 & 255, l[36] = U >>> 0 & 255, l[37] = U >>> 8 & 255, l[38] = U >>> 16 & 255, l[39] = U >>> 24 & 255, l[40] = D >>> 0 & 255, l[41] = D >>> 8 & 255, l[42] = D >>> 16 & 255, l[43] = D >>> 24 & 255, l[44] = G >>> 0 & 255, l[45] = G >>> 8 & 255, l[46] = G >>> 16 & 255, l[47] = G >>> 24 & 255, l[48] = Ne >>> 0 & 255, l[49] = Ne >>> 8 & 255, l[50] = Ne >>> 16 & 255, l[51] = Ne >>> 24 & 255, l[52] = Ve >>> 0 & 255, l[53] = Ve >>> 8 & 255, l[54] = Ve >>> 16 & 255, l[55] = Ve >>> 24 & 255, l[56] = Fe >>> 0 & 255, l[57] = Fe >>> 8 & 255, l[58] = Fe >>> 16 & 255, l[59] = Fe >>> 24 & 255, l[60] = Le >>> 0 & 255, l[61] = Le >>> 8 & 255, l[62] = Le >>> 16 & 255, l[63] = Le >>> 24 & 255;
|
|
14058
14058
|
}
|
|
14059
14059
|
function P(l, y, p, a) {
|
|
14060
|
-
for (var v = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, h = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, m = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, _ = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, N = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Z = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, F = y[0] & 255 | (y[1] & 255) << 8 | (y[2] & 255) << 16 | (y[3] & 255) << 24, pe = y[4] & 255 | (y[5] & 255) << 8 | (y[6] & 255) << 16 | (y[7] & 255) << 24, V = y[8] & 255 | (y[9] & 255) << 8 | (y[10] & 255) << 16 | (y[11] & 255) << 24, be = y[12] & 255 | (y[13] & 255) << 8 | (y[14] & 255) << 16 | (y[15] & 255) << 24, ye = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, xe = p[16] & 255 | (p[17] & 255) << 8 | (p[18] & 255) << 16 | (p[19] & 255) << 24, Ce = p[20] & 255 | (p[21] & 255) << 8 | (p[22] & 255) << 16 | (p[23] & 255) << 24, Be = p[24] & 255 | (p[25] & 255) << 8 | (p[26] & 255) << 16 | (p[27] & 255) << 24, Oe = p[28] & 255 | (p[29] & 255) << 8 | (p[30] & 255) << 16 | (p[31] & 255) << 24, Se = a[12] & 255 | (a[13] & 255) << 8 | (a[14] & 255) << 16 | (a[15] & 255) << 24, le = v, ke = h, ie = m, we = _, Ae = N, ne = Z,
|
|
14061
|
-
x = le + Ne | 0, Ae ^= x << 7 | x >>> 25, x = Ae + le | 0, H ^= x << 9 | x >>> 23, x = H + Ae | 0, Ne ^= x << 13 | x >>> 19, x = Ne + H | 0, le ^= x << 18 | x >>> 14, x = ne + ke | 0, U ^= x << 7 | x >>> 25, x = U + ne | 0, Ve ^= x << 9 | x >>> 23, x = Ve + U | 0, ke ^= x << 13 | x >>> 19, x = ke + Ve | 0, ne ^= x << 18 | x >>> 14, x = D +
|
|
14062
|
-
l[0] = le >>> 0 & 255, l[1] = le >>> 8 & 255, l[2] = le >>> 16 & 255, l[3] = le >>> 24 & 255, l[4] = ne >>> 0 & 255, l[5] = ne >>> 8 & 255, l[6] = ne >>> 16 & 255, l[7] = ne >>> 24 & 255, l[8] = D >>> 0 & 255, l[9] = D >>> 8 & 255, l[10] = D >>> 16 & 255, l[11] = D >>> 24 & 255, l[12] = Le >>> 0 & 255, l[13] = Le >>> 8 & 255, l[14] = Le >>> 16 & 255, l[15] = Le >>> 24 & 255, l[16] =
|
|
14060
|
+
for (var v = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, h = p[0] & 255 | (p[1] & 255) << 8 | (p[2] & 255) << 16 | (p[3] & 255) << 24, m = p[4] & 255 | (p[5] & 255) << 8 | (p[6] & 255) << 16 | (p[7] & 255) << 24, _ = p[8] & 255 | (p[9] & 255) << 8 | (p[10] & 255) << 16 | (p[11] & 255) << 24, N = p[12] & 255 | (p[13] & 255) << 8 | (p[14] & 255) << 16 | (p[15] & 255) << 24, Z = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, F = y[0] & 255 | (y[1] & 255) << 8 | (y[2] & 255) << 16 | (y[3] & 255) << 24, pe = y[4] & 255 | (y[5] & 255) << 8 | (y[6] & 255) << 16 | (y[7] & 255) << 24, V = y[8] & 255 | (y[9] & 255) << 8 | (y[10] & 255) << 16 | (y[11] & 255) << 24, be = y[12] & 255 | (y[13] & 255) << 8 | (y[14] & 255) << 16 | (y[15] & 255) << 24, ye = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, xe = p[16] & 255 | (p[17] & 255) << 8 | (p[18] & 255) << 16 | (p[19] & 255) << 24, Ce = p[20] & 255 | (p[21] & 255) << 8 | (p[22] & 255) << 16 | (p[23] & 255) << 24, Be = p[24] & 255 | (p[25] & 255) << 8 | (p[26] & 255) << 16 | (p[27] & 255) << 24, Oe = p[28] & 255 | (p[29] & 255) << 8 | (p[30] & 255) << 16 | (p[31] & 255) << 24, Se = a[12] & 255 | (a[13] & 255) << 8 | (a[14] & 255) << 16 | (a[15] & 255) << 24, le = v, ke = h, ie = m, we = _, Ae = N, ne = Z, O = F, T = pe, H = V, U = be, D = ye, G = xe, Ne = Ce, Ve = Be, Fe = Oe, Le = Se, x, qe = 0; qe < 20; qe += 2)
|
|
14061
|
+
x = le + Ne | 0, Ae ^= x << 7 | x >>> 25, x = Ae + le | 0, H ^= x << 9 | x >>> 23, x = H + Ae | 0, Ne ^= x << 13 | x >>> 19, x = Ne + H | 0, le ^= x << 18 | x >>> 14, x = ne + ke | 0, U ^= x << 7 | x >>> 25, x = U + ne | 0, Ve ^= x << 9 | x >>> 23, x = Ve + U | 0, ke ^= x << 13 | x >>> 19, x = ke + Ve | 0, ne ^= x << 18 | x >>> 14, x = D + O | 0, Fe ^= x << 7 | x >>> 25, x = Fe + D | 0, ie ^= x << 9 | x >>> 23, x = ie + Fe | 0, O ^= x << 13 | x >>> 19, x = O + ie | 0, D ^= x << 18 | x >>> 14, x = Le + G | 0, we ^= x << 7 | x >>> 25, x = we + Le | 0, T ^= x << 9 | x >>> 23, x = T + we | 0, G ^= x << 13 | x >>> 19, x = G + T | 0, Le ^= x << 18 | x >>> 14, x = le + we | 0, ke ^= x << 7 | x >>> 25, x = ke + le | 0, ie ^= x << 9 | x >>> 23, x = ie + ke | 0, we ^= x << 13 | x >>> 19, x = we + ie | 0, le ^= x << 18 | x >>> 14, x = ne + Ae | 0, O ^= x << 7 | x >>> 25, x = O + ne | 0, T ^= x << 9 | x >>> 23, x = T + O | 0, Ae ^= x << 13 | x >>> 19, x = Ae + T | 0, ne ^= x << 18 | x >>> 14, x = D + U | 0, G ^= x << 7 | x >>> 25, x = G + D | 0, H ^= x << 9 | x >>> 23, x = H + G | 0, U ^= x << 13 | x >>> 19, x = U + H | 0, D ^= x << 18 | x >>> 14, x = Le + Fe | 0, Ne ^= x << 7 | x >>> 25, x = Ne + Le | 0, Ve ^= x << 9 | x >>> 23, x = Ve + Ne | 0, Fe ^= x << 13 | x >>> 19, x = Fe + Ve | 0, Le ^= x << 18 | x >>> 14;
|
|
14062
|
+
l[0] = le >>> 0 & 255, l[1] = le >>> 8 & 255, l[2] = le >>> 16 & 255, l[3] = le >>> 24 & 255, l[4] = ne >>> 0 & 255, l[5] = ne >>> 8 & 255, l[6] = ne >>> 16 & 255, l[7] = ne >>> 24 & 255, l[8] = D >>> 0 & 255, l[9] = D >>> 8 & 255, l[10] = D >>> 16 & 255, l[11] = D >>> 24 & 255, l[12] = Le >>> 0 & 255, l[13] = Le >>> 8 & 255, l[14] = Le >>> 16 & 255, l[15] = Le >>> 24 & 255, l[16] = O >>> 0 & 255, l[17] = O >>> 8 & 255, l[18] = O >>> 16 & 255, l[19] = O >>> 24 & 255, l[20] = T >>> 0 & 255, l[21] = T >>> 8 & 255, l[22] = T >>> 16 & 255, l[23] = T >>> 24 & 255, l[24] = H >>> 0 & 255, l[25] = H >>> 8 & 255, l[26] = H >>> 16 & 255, l[27] = H >>> 24 & 255, l[28] = U >>> 0 & 255, l[29] = U >>> 8 & 255, l[30] = U >>> 16 & 255, l[31] = U >>> 24 & 255;
|
|
14063
14063
|
}
|
|
14064
14064
|
function z(l, y, p, a) {
|
|
14065
14065
|
R(l, y, p, a);
|
|
@@ -14114,9 +14114,9 @@ const rm = {}, nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14114
14114
|
y = l[0] & 255 | (l[1] & 255) << 8, this.r[0] = y & 8191, p = l[2] & 255 | (l[3] & 255) << 8, this.r[1] = (y >>> 13 | p << 3) & 8191, a = l[4] & 255 | (l[5] & 255) << 8, this.r[2] = (p >>> 10 | a << 6) & 7939, v = l[6] & 255 | (l[7] & 255) << 8, this.r[3] = (a >>> 7 | v << 9) & 8191, h = l[8] & 255 | (l[9] & 255) << 8, this.r[4] = (v >>> 4 | h << 12) & 255, this.r[5] = h >>> 1 & 8190, m = l[10] & 255 | (l[11] & 255) << 8, this.r[6] = (h >>> 14 | m << 2) & 8191, _ = l[12] & 255 | (l[13] & 255) << 8, this.r[7] = (m >>> 11 | _ << 5) & 8065, N = l[14] & 255 | (l[15] & 255) << 8, this.r[8] = (_ >>> 8 | N << 8) & 8191, this.r[9] = N >>> 5 & 127, this.pad[0] = l[16] & 255 | (l[17] & 255) << 8, this.pad[1] = l[18] & 255 | (l[19] & 255) << 8, this.pad[2] = l[20] & 255 | (l[21] & 255) << 8, this.pad[3] = l[22] & 255 | (l[23] & 255) << 8, this.pad[4] = l[24] & 255 | (l[25] & 255) << 8, this.pad[5] = l[26] & 255 | (l[27] & 255) << 8, this.pad[6] = l[28] & 255 | (l[29] & 255) << 8, this.pad[7] = l[30] & 255 | (l[31] & 255) << 8;
|
|
14115
14115
|
};
|
|
14116
14116
|
xt.prototype.blocks = function(l, y, p) {
|
|
14117
|
-
for (var a = this.fin ? 0 : 2048, v, h, m, _, N, Z, F, pe, V, be, ye, xe, Ce, Be, Oe, Se, le, ke, ie, we = this.h[0], Ae = this.h[1], ne = this.h[2],
|
|
14118
|
-
v = l[y + 0] & 255 | (l[y + 1] & 255) << 8, we += v & 8191, h = l[y + 2] & 255 | (l[y + 3] & 255) << 8, Ae += (v >>> 13 | h << 3) & 8191, m = l[y + 4] & 255 | (l[y + 5] & 255) << 8, ne += (h >>> 10 | m << 6) & 8191, _ = l[y + 6] & 255 | (l[y + 7] & 255) << 8,
|
|
14119
|
-
this.h[0] = we, this.h[1] = Ae, this.h[2] = ne, this.h[3] =
|
|
14117
|
+
for (var a = this.fin ? 0 : 2048, v, h, m, _, N, Z, F, pe, V, be, ye, xe, Ce, Be, Oe, Se, le, ke, ie, we = this.h[0], Ae = this.h[1], ne = this.h[2], O = this.h[3], T = this.h[4], H = this.h[5], U = this.h[6], D = this.h[7], G = this.h[8], Ne = this.h[9], Ve = this.r[0], Fe = this.r[1], Le = this.r[2], x = this.r[3], qe = this.r[4], ct = this.r[5], lt = this.r[6], ze = this.r[7], it = this.r[8], st = this.r[9]; p >= 16; )
|
|
14118
|
+
v = l[y + 0] & 255 | (l[y + 1] & 255) << 8, we += v & 8191, h = l[y + 2] & 255 | (l[y + 3] & 255) << 8, Ae += (v >>> 13 | h << 3) & 8191, m = l[y + 4] & 255 | (l[y + 5] & 255) << 8, ne += (h >>> 10 | m << 6) & 8191, _ = l[y + 6] & 255 | (l[y + 7] & 255) << 8, O += (m >>> 7 | _ << 9) & 8191, N = l[y + 8] & 255 | (l[y + 9] & 255) << 8, T += (_ >>> 4 | N << 12) & 8191, H += N >>> 1 & 8191, Z = l[y + 10] & 255 | (l[y + 11] & 255) << 8, U += (N >>> 14 | Z << 2) & 8191, F = l[y + 12] & 255 | (l[y + 13] & 255) << 8, D += (Z >>> 11 | F << 5) & 8191, pe = l[y + 14] & 255 | (l[y + 15] & 255) << 8, G += (F >>> 8 | pe << 8) & 8191, Ne += pe >>> 5 | a, V = 0, be = V, be += we * Ve, be += Ae * (5 * st), be += ne * (5 * it), be += O * (5 * ze), be += T * (5 * lt), V = be >>> 13, be &= 8191, be += H * (5 * ct), be += U * (5 * qe), be += D * (5 * x), be += G * (5 * Le), be += Ne * (5 * Fe), V += be >>> 13, be &= 8191, ye = V, ye += we * Fe, ye += Ae * Ve, ye += ne * (5 * st), ye += O * (5 * it), ye += T * (5 * ze), V = ye >>> 13, ye &= 8191, ye += H * (5 * lt), ye += U * (5 * ct), ye += D * (5 * qe), ye += G * (5 * x), ye += Ne * (5 * Le), V += ye >>> 13, ye &= 8191, xe = V, xe += we * Le, xe += Ae * Fe, xe += ne * Ve, xe += O * (5 * st), xe += T * (5 * it), V = xe >>> 13, xe &= 8191, xe += H * (5 * ze), xe += U * (5 * lt), xe += D * (5 * ct), xe += G * (5 * qe), xe += Ne * (5 * x), V += xe >>> 13, xe &= 8191, Ce = V, Ce += we * x, Ce += Ae * Le, Ce += ne * Fe, Ce += O * Ve, Ce += T * (5 * st), V = Ce >>> 13, Ce &= 8191, Ce += H * (5 * it), Ce += U * (5 * ze), Ce += D * (5 * lt), Ce += G * (5 * ct), Ce += Ne * (5 * qe), V += Ce >>> 13, Ce &= 8191, Be = V, Be += we * qe, Be += Ae * x, Be += ne * Le, Be += O * Fe, Be += T * Ve, V = Be >>> 13, Be &= 8191, Be += H * (5 * st), Be += U * (5 * it), Be += D * (5 * ze), Be += G * (5 * lt), Be += Ne * (5 * ct), V += Be >>> 13, Be &= 8191, Oe = V, Oe += we * ct, Oe += Ae * qe, Oe += ne * x, Oe += O * Le, Oe += T * Fe, V = Oe >>> 13, Oe &= 8191, Oe += H * Ve, Oe += U * (5 * st), Oe += D * (5 * it), Oe += G * (5 * ze), Oe += Ne * (5 * lt), V += Oe >>> 13, Oe &= 8191, Se = V, Se += we * lt, Se += Ae * ct, Se += ne * qe, Se += O * x, Se += T * Le, V = Se >>> 13, Se &= 8191, Se += H * Fe, Se += U * Ve, Se += D * (5 * st), Se += G * (5 * it), Se += Ne * (5 * ze), V += Se >>> 13, Se &= 8191, le = V, le += we * ze, le += Ae * lt, le += ne * ct, le += O * qe, le += T * x, V = le >>> 13, le &= 8191, le += H * Le, le += U * Fe, le += D * Ve, le += G * (5 * st), le += Ne * (5 * it), V += le >>> 13, le &= 8191, ke = V, ke += we * it, ke += Ae * ze, ke += ne * lt, ke += O * ct, ke += T * qe, V = ke >>> 13, ke &= 8191, ke += H * x, ke += U * Le, ke += D * Fe, ke += G * Ve, ke += Ne * (5 * st), V += ke >>> 13, ke &= 8191, ie = V, ie += we * st, ie += Ae * it, ie += ne * ze, ie += O * lt, ie += T * ct, V = ie >>> 13, ie &= 8191, ie += H * qe, ie += U * x, ie += D * Le, ie += G * Fe, ie += Ne * Ve, V += ie >>> 13, ie &= 8191, V = (V << 2) + V | 0, V = V + be | 0, be = V & 8191, V = V >>> 13, ye += V, we = be, Ae = ye, ne = xe, O = Ce, T = Be, H = Oe, U = Se, D = le, G = ke, Ne = ie, y += 16, p -= 16;
|
|
14119
|
+
this.h[0] = we, this.h[1] = Ae, this.h[2] = ne, this.h[3] = O, this.h[4] = T, this.h[5] = H, this.h[6] = U, this.h[7] = D, this.h[8] = G, this.h[9] = Ne;
|
|
14120
14120
|
}, xt.prototype.finish = function(l, y) {
|
|
14121
14121
|
var p = new Uint16Array(10), a, v, h, m;
|
|
14122
14122
|
if (this.leftover) {
|
|
@@ -14153,9 +14153,9 @@ const rm = {}, nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14153
14153
|
}
|
|
14154
14154
|
function at(l, y, p, a, v, h) {
|
|
14155
14155
|
var m = new Uint8Array(16);
|
|
14156
|
-
return At(m, 0, p, a, v, h),
|
|
14156
|
+
return At(m, 0, p, a, v, h), B(l, y, m, 0);
|
|
14157
14157
|
}
|
|
14158
|
-
function
|
|
14158
|
+
function ht(l, y, p, a, v) {
|
|
14159
14159
|
var h;
|
|
14160
14160
|
if (p < 32) return -1;
|
|
14161
14161
|
for (ut(l, 0, y, 0, p, a, v), At(l, 16, l, 32, p - 32, l), h = 0; h < 16; h++) l[h] = 0;
|
|
@@ -14208,12 +14208,12 @@ const rm = {}, nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14208
14208
|
function Xe(l, y, p) {
|
|
14209
14209
|
for (var a = 0; a < 16; a++) l[a] = y[a] + p[a];
|
|
14210
14210
|
}
|
|
14211
|
-
function
|
|
14211
|
+
function dt(l, y, p) {
|
|
14212
14212
|
for (var a = 0; a < 16; a++) l[a] = y[a] - p[a];
|
|
14213
14213
|
}
|
|
14214
14214
|
function ee(l, y, p) {
|
|
14215
|
-
var a, v, h = 0, m = 0, _ = 0, N = 0, Z = 0, F = 0, pe = 0, V = 0, be = 0, ye = 0, xe = 0, Ce = 0, Be = 0, Oe = 0, Se = 0, le = 0, ke = 0, ie = 0, we = 0, Ae = 0, ne = 0,
|
|
14216
|
-
a = y[0], h += a * x, m += a * qe, _ += a * ct, N += a * lt, Z += a * ze, F += a * it, pe += a * st, V += a * Dt, be += a * vt, ye += a * Nt, xe += a * Rt, Ce += a * jt, Be += a * Vt, Oe += a * Jt, Se += a * Xt, le += a * Qt, a = y[1], m += a * x, _ += a * qe, N += a * ct, Z += a * lt, F += a * ze, pe += a * it, V += a * st, be += a * Dt, ye += a * vt, xe += a * Nt, Ce += a * Rt, Be += a * jt, Oe += a * Vt, Se += a * Jt, le += a * Xt, ke += a * Qt, a = y[2], _ += a * x, N += a * qe, Z += a * ct, F += a * lt, pe += a * ze, V += a * it, be += a * st, ye += a * Dt, xe += a * vt, Ce += a * Nt, Be += a * Rt, Oe += a * jt, Se += a * Vt, le += a * Jt, ke += a * Xt, ie += a * Qt, a = y[3], N += a * x, Z += a * qe, F += a * ct, pe += a * lt, V += a * ze, be += a * it, ye += a * st, xe += a * Dt, Ce += a * vt, Be += a * Nt, Oe += a * Rt, Se += a * jt, le += a * Vt, ke += a * Jt, ie += a * Xt, we += a * Qt, a = y[4], Z += a * x, F += a * qe, pe += a * ct, V += a * lt, be += a * ze, ye += a * it, xe += a * st, Ce += a * Dt, Be += a * vt, Oe += a * Nt, Se += a * Rt, le += a * jt, ke += a * Vt, ie += a * Jt, we += a * Xt, Ae += a * Qt, a = y[5], F += a * x, pe += a * qe, V += a * ct, be += a * lt, ye += a * ze, xe += a * it, Ce += a * st, Be += a * Dt, Oe += a * vt, Se += a * Nt, le += a * Rt, ke += a * jt, ie += a * Vt, we += a * Jt, Ae += a * Xt, ne += a * Qt, a = y[6], pe += a * x, V += a * qe, be += a * ct, ye += a * lt, xe += a * ze, Ce += a * it, Be += a * st, Oe += a * Dt, Se += a * vt, le += a * Nt, ke += a * Rt, ie += a * jt, we += a * Vt, Ae += a * Jt, ne += a * Xt,
|
|
14215
|
+
var a, v, h = 0, m = 0, _ = 0, N = 0, Z = 0, F = 0, pe = 0, V = 0, be = 0, ye = 0, xe = 0, Ce = 0, Be = 0, Oe = 0, Se = 0, le = 0, ke = 0, ie = 0, we = 0, Ae = 0, ne = 0, O = 0, T = 0, H = 0, U = 0, D = 0, G = 0, Ne = 0, Ve = 0, Fe = 0, Le = 0, x = p[0], qe = p[1], ct = p[2], lt = p[3], ze = p[4], it = p[5], st = p[6], Dt = p[7], vt = p[8], Nt = p[9], Rt = p[10], jt = p[11], Vt = p[12], Jt = p[13], Xt = p[14], Qt = p[15];
|
|
14216
|
+
a = y[0], h += a * x, m += a * qe, _ += a * ct, N += a * lt, Z += a * ze, F += a * it, pe += a * st, V += a * Dt, be += a * vt, ye += a * Nt, xe += a * Rt, Ce += a * jt, Be += a * Vt, Oe += a * Jt, Se += a * Xt, le += a * Qt, a = y[1], m += a * x, _ += a * qe, N += a * ct, Z += a * lt, F += a * ze, pe += a * it, V += a * st, be += a * Dt, ye += a * vt, xe += a * Nt, Ce += a * Rt, Be += a * jt, Oe += a * Vt, Se += a * Jt, le += a * Xt, ke += a * Qt, a = y[2], _ += a * x, N += a * qe, Z += a * ct, F += a * lt, pe += a * ze, V += a * it, be += a * st, ye += a * Dt, xe += a * vt, Ce += a * Nt, Be += a * Rt, Oe += a * jt, Se += a * Vt, le += a * Jt, ke += a * Xt, ie += a * Qt, a = y[3], N += a * x, Z += a * qe, F += a * ct, pe += a * lt, V += a * ze, be += a * it, ye += a * st, xe += a * Dt, Ce += a * vt, Be += a * Nt, Oe += a * Rt, Se += a * jt, le += a * Vt, ke += a * Jt, ie += a * Xt, we += a * Qt, a = y[4], Z += a * x, F += a * qe, pe += a * ct, V += a * lt, be += a * ze, ye += a * it, xe += a * st, Ce += a * Dt, Be += a * vt, Oe += a * Nt, Se += a * Rt, le += a * jt, ke += a * Vt, ie += a * Jt, we += a * Xt, Ae += a * Qt, a = y[5], F += a * x, pe += a * qe, V += a * ct, be += a * lt, ye += a * ze, xe += a * it, Ce += a * st, Be += a * Dt, Oe += a * vt, Se += a * Nt, le += a * Rt, ke += a * jt, ie += a * Vt, we += a * Jt, Ae += a * Xt, ne += a * Qt, a = y[6], pe += a * x, V += a * qe, be += a * ct, ye += a * lt, xe += a * ze, Ce += a * it, Be += a * st, Oe += a * Dt, Se += a * vt, le += a * Nt, ke += a * Rt, ie += a * jt, we += a * Vt, Ae += a * Jt, ne += a * Xt, O += a * Qt, a = y[7], V += a * x, be += a * qe, ye += a * ct, xe += a * lt, Ce += a * ze, Be += a * it, Oe += a * st, Se += a * Dt, le += a * vt, ke += a * Nt, ie += a * Rt, we += a * jt, Ae += a * Vt, ne += a * Jt, O += a * Xt, T += a * Qt, a = y[8], be += a * x, ye += a * qe, xe += a * ct, Ce += a * lt, Be += a * ze, Oe += a * it, Se += a * st, le += a * Dt, ke += a * vt, ie += a * Nt, we += a * Rt, Ae += a * jt, ne += a * Vt, O += a * Jt, T += a * Xt, H += a * Qt, a = y[9], ye += a * x, xe += a * qe, Ce += a * ct, Be += a * lt, Oe += a * ze, Se += a * it, le += a * st, ke += a * Dt, ie += a * vt, we += a * Nt, Ae += a * Rt, ne += a * jt, O += a * Vt, T += a * Jt, H += a * Xt, U += a * Qt, a = y[10], xe += a * x, Ce += a * qe, Be += a * ct, Oe += a * lt, Se += a * ze, le += a * it, ke += a * st, ie += a * Dt, we += a * vt, Ae += a * Nt, ne += a * Rt, O += a * jt, T += a * Vt, H += a * Jt, U += a * Xt, D += a * Qt, a = y[11], Ce += a * x, Be += a * qe, Oe += a * ct, Se += a * lt, le += a * ze, ke += a * it, ie += a * st, we += a * Dt, Ae += a * vt, ne += a * Nt, O += a * Rt, T += a * jt, H += a * Vt, U += a * Jt, D += a * Xt, G += a * Qt, a = y[12], Be += a * x, Oe += a * qe, Se += a * ct, le += a * lt, ke += a * ze, ie += a * it, we += a * st, Ae += a * Dt, ne += a * vt, O += a * Nt, T += a * Rt, H += a * jt, U += a * Vt, D += a * Jt, G += a * Xt, Ne += a * Qt, a = y[13], Oe += a * x, Se += a * qe, le += a * ct, ke += a * lt, ie += a * ze, we += a * it, Ae += a * st, ne += a * Dt, O += a * vt, T += a * Nt, H += a * Rt, U += a * jt, D += a * Vt, G += a * Jt, Ne += a * Xt, Ve += a * Qt, a = y[14], Se += a * x, le += a * qe, ke += a * ct, ie += a * lt, we += a * ze, Ae += a * it, ne += a * st, O += a * Dt, T += a * vt, H += a * Nt, U += a * Rt, D += a * jt, G += a * Vt, Ne += a * Jt, Ve += a * Xt, Fe += a * Qt, a = y[15], le += a * x, ke += a * qe, ie += a * ct, we += a * lt, Ae += a * ze, ne += a * it, O += a * st, T += a * Dt, H += a * vt, U += a * Nt, D += a * Rt, G += a * jt, Ne += a * Vt, Ve += a * Jt, Fe += a * Xt, Le += a * Qt, h += 38 * ke, m += 38 * ie, _ += 38 * we, N += 38 * Ae, Z += 38 * ne, F += 38 * O, pe += 38 * T, V += 38 * H, be += 38 * U, ye += 38 * D, xe += 38 * G, Ce += 38 * Ne, Be += 38 * Ve, Oe += 38 * Fe, Se += 38 * Le, v = 1, a = h + v + 65535, v = Math.floor(a / 65536), h = a - v * 65536, a = m + v + 65535, v = Math.floor(a / 65536), m = a - v * 65536, a = _ + v + 65535, v = Math.floor(a / 65536), _ = a - v * 65536, a = N + v + 65535, v = Math.floor(a / 65536), N = a - v * 65536, a = Z + v + 65535, v = Math.floor(a / 65536), Z = a - v * 65536, a = F + v + 65535, v = Math.floor(a / 65536), F = a - v * 65536, a = pe + v + 65535, v = Math.floor(a / 65536), pe = a - v * 65536, a = V + v + 65535, v = Math.floor(a / 65536), V = a - v * 65536, a = be + v + 65535, v = Math.floor(a / 65536), be = a - v * 65536, a = ye + v + 65535, v = Math.floor(a / 65536), ye = a - v * 65536, a = xe + v + 65535, v = Math.floor(a / 65536), xe = a - v * 65536, a = Ce + v + 65535, v = Math.floor(a / 65536), Ce = a - v * 65536, a = Be + v + 65535, v = Math.floor(a / 65536), Be = a - v * 65536, a = Oe + v + 65535, v = Math.floor(a / 65536), Oe = a - v * 65536, a = Se + v + 65535, v = Math.floor(a / 65536), Se = a - v * 65536, a = le + v + 65535, v = Math.floor(a / 65536), le = a - v * 65536, h += v - 1 + 37 * (v - 1), v = 1, a = h + v + 65535, v = Math.floor(a / 65536), h = a - v * 65536, a = m + v + 65535, v = Math.floor(a / 65536), m = a - v * 65536, a = _ + v + 65535, v = Math.floor(a / 65536), _ = a - v * 65536, a = N + v + 65535, v = Math.floor(a / 65536), N = a - v * 65536, a = Z + v + 65535, v = Math.floor(a / 65536), Z = a - v * 65536, a = F + v + 65535, v = Math.floor(a / 65536), F = a - v * 65536, a = pe + v + 65535, v = Math.floor(a / 65536), pe = a - v * 65536, a = V + v + 65535, v = Math.floor(a / 65536), V = a - v * 65536, a = be + v + 65535, v = Math.floor(a / 65536), be = a - v * 65536, a = ye + v + 65535, v = Math.floor(a / 65536), ye = a - v * 65536, a = xe + v + 65535, v = Math.floor(a / 65536), xe = a - v * 65536, a = Ce + v + 65535, v = Math.floor(a / 65536), Ce = a - v * 65536, a = Be + v + 65535, v = Math.floor(a / 65536), Be = a - v * 65536, a = Oe + v + 65535, v = Math.floor(a / 65536), Oe = a - v * 65536, a = Se + v + 65535, v = Math.floor(a / 65536), Se = a - v * 65536, a = le + v + 65535, v = Math.floor(a / 65536), le = a - v * 65536, h += v - 1 + 37 * (v - 1), l[0] = h, l[1] = m, l[2] = _, l[3] = N, l[4] = Z, l[5] = F, l[6] = pe, l[7] = V, l[8] = be, l[9] = ye, l[10] = xe, l[11] = Ce, l[12] = Be, l[13] = Oe, l[14] = Se, l[15] = le;
|
|
14217
14217
|
}
|
|
14218
14218
|
function nt(l, y) {
|
|
14219
14219
|
ee(l, y, y);
|
|
@@ -14238,7 +14238,7 @@ const rm = {}, nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14238
14238
|
for (a[31] = y[31] & 127 | 64, a[0] &= 248, ce(v, p), m = 0; m < 16; m++)
|
|
14239
14239
|
N[m] = v[m], F[m] = _[m] = Z[m] = 0;
|
|
14240
14240
|
for (_[0] = F[0] = 1, m = 254; m >= 0; --m)
|
|
14241
|
-
h = a[m >>> 3] >>> (m & 7) & 1, Te(_, N, h), Te(Z, F, h), Xe(pe, _, Z),
|
|
14241
|
+
h = a[m >>> 3] >>> (m & 7) & 1, Te(_, N, h), Te(Z, F, h), Xe(pe, _, Z), dt(_, _, Z), Xe(Z, N, F), dt(N, N, F), nt(F, pe), nt(V, _), ee(_, Z, _), ee(Z, N, pe), Xe(pe, _, Z), dt(_, _, Z), nt(N, _), dt(Z, F, V), ee(_, Z, u), Xe(_, _, F), ee(Z, Z, _), ee(_, F, V), ee(F, N, v), nt(N, pe), Te(_, N, h), Te(Z, F, h);
|
|
14242
14242
|
for (m = 0; m < 16; m++)
|
|
14243
14243
|
v[m + 16] = _[m], v[m + 32] = Z[m], v[m + 48] = N[m], v[m + 64] = F[m];
|
|
14244
14244
|
var be = v.subarray(32), ye = v.subarray(16);
|
|
@@ -14254,7 +14254,7 @@ const rm = {}, nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14254
14254
|
var a = new Uint8Array(32);
|
|
14255
14255
|
return Xr(a, p, y), he(l, i, a, ae);
|
|
14256
14256
|
}
|
|
14257
|
-
var di =
|
|
14257
|
+
var di = ht, As = Ye;
|
|
14258
14258
|
function Qr(l, y, p, a, v, h) {
|
|
14259
14259
|
var m = new Uint8Array(32);
|
|
14260
14260
|
return Cr(m, v, h), di(l, y, p, a, m);
|
|
@@ -14426,14 +14426,14 @@ const rm = {}, nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14426
14426
|
1246189591
|
|
14427
14427
|
];
|
|
14428
14428
|
function Dn(l, y, p, a) {
|
|
14429
|
-
for (var v = new Int32Array(16), h = new Int32Array(16), m, _, N, Z, F, pe, V, be, ye, xe, Ce, Be, Oe, Se, le, ke, ie, we, Ae, ne,
|
|
14429
|
+
for (var v = new Int32Array(16), h = new Int32Array(16), m, _, N, Z, F, pe, V, be, ye, xe, Ce, Be, Oe, Se, le, ke, ie, we, Ae, ne, O, T, H, U, D, G, Ne = l[0], Ve = l[1], Fe = l[2], Le = l[3], x = l[4], qe = l[5], ct = l[6], lt = l[7], ze = y[0], it = y[1], st = y[2], Dt = y[3], vt = y[4], Nt = y[5], Rt = y[6], jt = y[7], Vt = 0; a >= 128; ) {
|
|
14430
14430
|
for (Ae = 0; Ae < 16; Ae++)
|
|
14431
14431
|
ne = 8 * Ae + Vt, v[Ae] = p[ne + 0] << 24 | p[ne + 1] << 16 | p[ne + 2] << 8 | p[ne + 3], h[Ae] = p[ne + 4] << 24 | p[ne + 5] << 16 | p[ne + 6] << 8 | p[ne + 7];
|
|
14432
14432
|
for (Ae = 0; Ae < 80; Ae++)
|
|
14433
|
-
if (m = Ne, _ = Ve, N = Fe, Z = Le, F = x, pe = qe, V = ct, be = lt, ye = ze, xe = it, Ce = st, Be = Dt, Oe = vt, Se = Nt, le = Rt, ke = jt,
|
|
14433
|
+
if (m = Ne, _ = Ve, N = Fe, Z = Le, F = x, pe = qe, V = ct, be = lt, ye = ze, xe = it, Ce = st, Be = Dt, Oe = vt, Se = Nt, le = Rt, ke = jt, O = lt, T = jt, H = T & 65535, U = T >>> 16, D = O & 65535, G = O >>> 16, O = (x >>> 14 | vt << 18) ^ (x >>> 18 | vt << 14) ^ (vt >>> 9 | x << 23), T = (vt >>> 14 | x << 18) ^ (vt >>> 18 | x << 14) ^ (x >>> 9 | vt << 23), H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, O = x & qe ^ ~x & ct, T = vt & Nt ^ ~vt & Rt, H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, O = Un[Ae * 2], T = Un[Ae * 2 + 1], H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, O = v[Ae % 16], T = h[Ae % 16], H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, U += H >>> 16, D += U >>> 16, G += D >>> 16, ie = D & 65535 | G << 16, we = H & 65535 | U << 16, O = ie, T = we, H = T & 65535, U = T >>> 16, D = O & 65535, G = O >>> 16, O = (Ne >>> 28 | ze << 4) ^ (ze >>> 2 | Ne << 30) ^ (ze >>> 7 | Ne << 25), T = (ze >>> 28 | Ne << 4) ^ (Ne >>> 2 | ze << 30) ^ (Ne >>> 7 | ze << 25), H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, O = Ne & Ve ^ Ne & Fe ^ Ve & Fe, T = ze & it ^ ze & st ^ it & st, H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, U += H >>> 16, D += U >>> 16, G += D >>> 16, be = D & 65535 | G << 16, ke = H & 65535 | U << 16, O = Z, T = Be, H = T & 65535, U = T >>> 16, D = O & 65535, G = O >>> 16, O = ie, T = we, H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, U += H >>> 16, D += U >>> 16, G += D >>> 16, Z = D & 65535 | G << 16, Be = H & 65535 | U << 16, Ve = m, Fe = _, Le = N, x = Z, qe = F, ct = pe, lt = V, Ne = be, it = ye, st = xe, Dt = Ce, vt = Be, Nt = Oe, Rt = Se, jt = le, ze = ke, Ae % 16 === 15)
|
|
14434
14434
|
for (ne = 0; ne < 16; ne++)
|
|
14435
|
-
|
|
14436
|
-
|
|
14435
|
+
O = v[ne], T = h[ne], H = T & 65535, U = T >>> 16, D = O & 65535, G = O >>> 16, O = v[(ne + 9) % 16], T = h[(ne + 9) % 16], H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, ie = v[(ne + 1) % 16], we = h[(ne + 1) % 16], O = (ie >>> 1 | we << 31) ^ (ie >>> 8 | we << 24) ^ ie >>> 7, T = (we >>> 1 | ie << 31) ^ (we >>> 8 | ie << 24) ^ (we >>> 7 | ie << 25), H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, ie = v[(ne + 14) % 16], we = h[(ne + 14) % 16], O = (ie >>> 19 | we << 13) ^ (we >>> 29 | ie << 3) ^ ie >>> 6, T = (we >>> 19 | ie << 13) ^ (ie >>> 29 | we << 3) ^ (we >>> 6 | ie << 26), H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, U += H >>> 16, D += U >>> 16, G += D >>> 16, v[ne] = D & 65535 | G << 16, h[ne] = H & 65535 | U << 16;
|
|
14436
|
+
O = Ne, T = ze, H = T & 65535, U = T >>> 16, D = O & 65535, G = O >>> 16, O = l[0], T = y[0], H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, U += H >>> 16, D += U >>> 16, G += D >>> 16, l[0] = Ne = D & 65535 | G << 16, y[0] = ze = H & 65535 | U << 16, O = Ve, T = it, H = T & 65535, U = T >>> 16, D = O & 65535, G = O >>> 16, O = l[1], T = y[1], H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, U += H >>> 16, D += U >>> 16, G += D >>> 16, l[1] = Ve = D & 65535 | G << 16, y[1] = it = H & 65535 | U << 16, O = Fe, T = st, H = T & 65535, U = T >>> 16, D = O & 65535, G = O >>> 16, O = l[2], T = y[2], H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, U += H >>> 16, D += U >>> 16, G += D >>> 16, l[2] = Fe = D & 65535 | G << 16, y[2] = st = H & 65535 | U << 16, O = Le, T = Dt, H = T & 65535, U = T >>> 16, D = O & 65535, G = O >>> 16, O = l[3], T = y[3], H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, U += H >>> 16, D += U >>> 16, G += D >>> 16, l[3] = Le = D & 65535 | G << 16, y[3] = Dt = H & 65535 | U << 16, O = x, T = vt, H = T & 65535, U = T >>> 16, D = O & 65535, G = O >>> 16, O = l[4], T = y[4], H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, U += H >>> 16, D += U >>> 16, G += D >>> 16, l[4] = x = D & 65535 | G << 16, y[4] = vt = H & 65535 | U << 16, O = qe, T = Nt, H = T & 65535, U = T >>> 16, D = O & 65535, G = O >>> 16, O = l[5], T = y[5], H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, U += H >>> 16, D += U >>> 16, G += D >>> 16, l[5] = qe = D & 65535 | G << 16, y[5] = Nt = H & 65535 | U << 16, O = ct, T = Rt, H = T & 65535, U = T >>> 16, D = O & 65535, G = O >>> 16, O = l[6], T = y[6], H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, U += H >>> 16, D += U >>> 16, G += D >>> 16, l[6] = ct = D & 65535 | G << 16, y[6] = Rt = H & 65535 | U << 16, O = lt, T = jt, H = T & 65535, U = T >>> 16, D = O & 65535, G = O >>> 16, O = l[7], T = y[7], H += T & 65535, U += T >>> 16, D += O & 65535, G += O >>> 16, U += H >>> 16, D += U >>> 16, G += D >>> 16, l[7] = lt = D & 65535 | G << 16, y[7] = jt = H & 65535 | U << 16, Vt += 128, a -= 128;
|
|
14437
14437
|
}
|
|
14438
14438
|
return a;
|
|
14439
14439
|
}
|
|
@@ -14445,7 +14445,7 @@ const rm = {}, nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14445
14445
|
}
|
|
14446
14446
|
function wn(l, y) {
|
|
14447
14447
|
var p = t(), a = t(), v = t(), h = t(), m = t(), _ = t(), N = t(), Z = t(), F = t();
|
|
14448
|
-
|
|
14448
|
+
dt(p, l[1], l[0]), dt(F, y[1], y[0]), ee(p, p, F), Xe(a, l[0], l[1]), Xe(F, y[0], y[1]), ee(a, a, F), ee(v, l[3], y[3]), ee(v, v, b), ee(h, l[2], y[2]), Xe(h, h, h), dt(m, a, p), dt(_, h, v), Xe(N, h, v), Xe(Z, a, p), ee(l[0], m, _), ee(l[1], Z, N), ee(l[2], N, _), ee(l[3], m, Z);
|
|
14449
14449
|
}
|
|
14450
14450
|
function $n(l, y, p) {
|
|
14451
14451
|
var a;
|
|
@@ -14463,7 +14463,7 @@ const rm = {}, nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14463
14463
|
}
|
|
14464
14464
|
function Mn(l, y) {
|
|
14465
14465
|
var p = [t(), t(), t(), t()];
|
|
14466
|
-
Ge(p[0],
|
|
14466
|
+
Ge(p[0], S), Ge(p[1], Y), Ge(p[2], c), ee(p[3], S, Y), pi(l, p, y);
|
|
14467
14467
|
}
|
|
14468
14468
|
function Vn(l, y, p) {
|
|
14469
14469
|
var a = new Uint8Array(64), v = [t(), t(), t(), t()], h;
|
|
@@ -14506,7 +14506,7 @@ const rm = {}, nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14506
14506
|
}
|
|
14507
14507
|
function Ln(l, y) {
|
|
14508
14508
|
var p = t(), a = t(), v = t(), h = t(), m = t(), _ = t(), N = t();
|
|
14509
|
-
return Ge(l[2], c), ce(l[1], y), nt(v, l[1]), ee(h, v, d),
|
|
14509
|
+
return Ge(l[2], c), ce(l[1], y), nt(v, l[1]), ee(h, v, d), dt(v, v, l[2]), Xe(h, l[2], h), nt(m, h), nt(_, m), ee(N, _, m), ee(p, N, v), ee(p, p, h), Jr(p, p), ee(p, p, v), ee(p, p, h), ee(p, p, h), ee(l[0], p, h), nt(a, l[0]), ee(a, a, h), St(a, v) && ee(l[0], l[0], $), nt(a, l[0]), ee(a, a, h), St(a, v) ? -1 : (Et(l[0]) === y[31] >> 7 && dt(l[0], o, l[0]), ee(l[3], l[0], l[1]), 0);
|
|
14510
14510
|
}
|
|
14511
14511
|
function k(l, y, p, a) {
|
|
14512
14512
|
var v, h = new Uint8Array(32), m = new Uint8Array(64), _ = [t(), t(), t(), t()], N = [t(), t(), t(), t()];
|
|
@@ -14520,7 +14520,7 @@ const rm = {}, nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14520
14520
|
for (v = 0; v < p; v++) l[v] = y[v + 64];
|
|
14521
14521
|
return p;
|
|
14522
14522
|
}
|
|
14523
|
-
var C = 32, j = 24, W = 32, Ee = 16, wt = 32, bt = 32, Ue = 32, X = 32, te = 32, re = j, ve = W, Me = Ee, Je = 64,
|
|
14523
|
+
var C = 32, j = 24, W = 32, Ee = 16, wt = 32, bt = 32, Ue = 32, X = 32, te = 32, re = j, ve = W, Me = Ee, Je = 64, pt = 32, Ut = 64, Hn = 32, Fn = 64;
|
|
14524
14524
|
e.lowlevel = {
|
|
14525
14525
|
crypto_core_hsalsa20: he,
|
|
14526
14526
|
crypto_stream_xor: ut,
|
|
@@ -14529,9 +14529,9 @@ const rm = {}, nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14529
14529
|
crypto_stream_salsa20: Re,
|
|
14530
14530
|
crypto_onetimeauth: At,
|
|
14531
14531
|
crypto_onetimeauth_verify: at,
|
|
14532
|
-
crypto_verify_16:
|
|
14532
|
+
crypto_verify_16: B,
|
|
14533
14533
|
crypto_verify_32: I,
|
|
14534
|
-
crypto_secretbox:
|
|
14534
|
+
crypto_secretbox: ht,
|
|
14535
14535
|
crypto_secretbox_open: Ye,
|
|
14536
14536
|
crypto_scalarmult: Xr,
|
|
14537
14537
|
crypto_scalarmult_base: Mt,
|
|
@@ -14557,7 +14557,7 @@ const rm = {}, nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14557
14557
|
crypto_box_ZEROBYTES: ve,
|
|
14558
14558
|
crypto_box_BOXZEROBYTES: Me,
|
|
14559
14559
|
crypto_sign_BYTES: Je,
|
|
14560
|
-
crypto_sign_PUBLICKEYBYTES:
|
|
14560
|
+
crypto_sign_PUBLICKEYBYTES: pt,
|
|
14561
14561
|
crypto_sign_SECRETKEYBYTES: Ut,
|
|
14562
14562
|
crypto_sign_SEEDBYTES: Hn,
|
|
14563
14563
|
crypto_hash_BYTES: Fn,
|
|
@@ -14569,7 +14569,7 @@ const rm = {}, nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14569
14569
|
M: ee,
|
|
14570
14570
|
A: Xe,
|
|
14571
14571
|
S: nt,
|
|
14572
|
-
Z:
|
|
14572
|
+
Z: dt,
|
|
14573
14573
|
pow2523: Jr,
|
|
14574
14574
|
add: wn,
|
|
14575
14575
|
set25519: Ge,
|
|
@@ -14599,7 +14599,7 @@ const rm = {}, nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14599
14599
|
}, e.secretbox = function(l, y, p) {
|
|
14600
14600
|
sr(l, y, p), vi(p, y);
|
|
14601
14601
|
for (var a = new Uint8Array(W + l.length), v = new Uint8Array(a.length), h = 0; h < l.length; h++) a[h + W] = l[h];
|
|
14602
|
-
return
|
|
14602
|
+
return ht(v, a, a.length, y, p), v.subarray(Ee);
|
|
14603
14603
|
}, e.secretbox.open = function(l, y, p) {
|
|
14604
14604
|
sr(l, y, p), vi(p, y);
|
|
14605
14605
|
for (var a = new Uint8Array(Ee + l.length), v = new Uint8Array(a.length), h = 0; h < l.length; h++) a[h + Ee] = l[h];
|
|
@@ -14637,7 +14637,7 @@ const rm = {}, nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14637
14637
|
var p = new Uint8Array(Je + l.length);
|
|
14638
14638
|
return gi(p, l, l.length, y), p;
|
|
14639
14639
|
}, e.sign.open = function(l, y) {
|
|
14640
|
-
if (sr(l, y), y.length !==
|
|
14640
|
+
if (sr(l, y), y.length !== pt)
|
|
14641
14641
|
throw new Error("bad public key size");
|
|
14642
14642
|
var p = new Uint8Array(l.length), a = k(p, l, l.length, y);
|
|
14643
14643
|
if (a < 0) return null;
|
|
@@ -14649,31 +14649,31 @@ const rm = {}, nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
14649
14649
|
}, e.sign.detached.verify = function(l, y, p) {
|
|
14650
14650
|
if (sr(l, y, p), y.length !== Je)
|
|
14651
14651
|
throw new Error("bad signature size");
|
|
14652
|
-
if (p.length !==
|
|
14652
|
+
if (p.length !== pt)
|
|
14653
14653
|
throw new Error("bad public key size");
|
|
14654
14654
|
var a = new Uint8Array(Je + l.length), v = new Uint8Array(Je + l.length), h;
|
|
14655
14655
|
for (h = 0; h < Je; h++) a[h] = y[h];
|
|
14656
14656
|
for (h = 0; h < l.length; h++) a[h + Je] = l[h];
|
|
14657
14657
|
return k(v, a, a.length, p) >= 0;
|
|
14658
14658
|
}, e.sign.keyPair = function() {
|
|
14659
|
-
var l = new Uint8Array(
|
|
14659
|
+
var l = new Uint8Array(pt), y = new Uint8Array(Ut);
|
|
14660
14660
|
return Vn(l, y), { publicKey: l, secretKey: y };
|
|
14661
14661
|
}, e.sign.keyPair.fromSecretKey = function(l) {
|
|
14662
14662
|
if (sr(l), l.length !== Ut)
|
|
14663
14663
|
throw new Error("bad secret key size");
|
|
14664
|
-
for (var y = new Uint8Array(
|
|
14664
|
+
for (var y = new Uint8Array(pt), p = 0; p < y.length; p++) y[p] = l[32 + p];
|
|
14665
14665
|
return { publicKey: y, secretKey: new Uint8Array(l) };
|
|
14666
14666
|
}, e.sign.keyPair.fromSeed = function(l) {
|
|
14667
14667
|
if (sr(l), l.length !== Hn)
|
|
14668
14668
|
throw new Error("bad seed size");
|
|
14669
|
-
for (var y = new Uint8Array(
|
|
14669
|
+
for (var y = new Uint8Array(pt), p = new Uint8Array(Ut), a = 0; a < 32; a++) p[a] = l[a];
|
|
14670
14670
|
return Vn(y, p, !0), { publicKey: y, secretKey: p };
|
|
14671
|
-
}, e.sign.publicKeyLength =
|
|
14671
|
+
}, e.sign.publicKeyLength = pt, e.sign.secretKeyLength = Ut, e.sign.seedLength = Hn, e.sign.signatureLength = Je, e.hash = function(l) {
|
|
14672
14672
|
sr(l);
|
|
14673
14673
|
var y = new Uint8Array(Fn);
|
|
14674
14674
|
return ir(y, l, l.length), y;
|
|
14675
14675
|
}, e.hash.hashLength = Fn, e.verify = function(l, y) {
|
|
14676
|
-
return sr(l, y), l.length === 0 || y.length === 0 || l.length !== y.length ? !1 :
|
|
14676
|
+
return sr(l, y), l.length === 0 || y.length === 0 || l.length !== y.length ? !1 : E(l, 0, y, 0, l.length) === 0;
|
|
14677
14677
|
}, e.setPRNG = function(l) {
|
|
14678
14678
|
n = l;
|
|
14679
14679
|
}, function() {
|
|
@@ -14700,34 +14700,34 @@ const U0 = /* @__PURE__ */ ny(sm);
|
|
|
14700
14700
|
function om() {
|
|
14701
14701
|
return U0.box.keyPair();
|
|
14702
14702
|
}
|
|
14703
|
-
async function ho(r) {
|
|
14704
|
-
const
|
|
14703
|
+
async function ho(r, e) {
|
|
14704
|
+
const t = sessionStorage.getItem("sessionKey"), n = sessionStorage.getItem("sessionId");
|
|
14705
14705
|
console.groupCollapsed("Attestation");
|
|
14706
14706
|
try {
|
|
14707
|
-
if (
|
|
14708
|
-
const
|
|
14709
|
-
return console.log("Using existing attestation from session storage."), { sessionKey:
|
|
14710
|
-
}
|
|
14711
|
-
const
|
|
14712
|
-
console.log("Generated attestation nonce:",
|
|
14713
|
-
const
|
|
14714
|
-
if (
|
|
14707
|
+
if (t && n && !r) {
|
|
14708
|
+
const o = Us(t);
|
|
14709
|
+
return console.log("Using existing attestation from session storage."), { sessionKey: o, sessionId: n };
|
|
14710
|
+
}
|
|
14711
|
+
const i = window.crypto.randomUUID();
|
|
14712
|
+
console.log("Generated attestation nonce:", i);
|
|
14713
|
+
const s = await em(i, e);
|
|
14714
|
+
if (s && s.public_key) {
|
|
14715
14715
|
console.log("Attestation document verification succeeded");
|
|
14716
|
-
const
|
|
14716
|
+
const o = om();
|
|
14717
14717
|
console.log("Generated client key pair");
|
|
14718
|
-
const
|
|
14719
|
-
Lr(
|
|
14720
|
-
|
|
14718
|
+
const c = new Uint8Array(s.public_key), { encrypted_session_key: u, session_id: d } = await ym(
|
|
14719
|
+
Lr(o.publicKey),
|
|
14720
|
+
i
|
|
14721
14721
|
);
|
|
14722
14722
|
console.log("Key exchange completed.");
|
|
14723
|
-
const
|
|
14724
|
-
if (
|
|
14725
|
-
return console.log("Session key decrypted successfully"), window.sessionStorage.setItem("sessionKey", Lr(
|
|
14723
|
+
const b = U0.scalarMult(o.secretKey, c), S = Us(u), Y = 12, $ = S.slice(0, Y), w = S.slice(Y), B = new Tu(b).open($, w);
|
|
14724
|
+
if (B)
|
|
14725
|
+
return console.log("Session key decrypted successfully"), window.sessionStorage.setItem("sessionKey", Lr(B)), window.sessionStorage.setItem("sessionId", d), { sessionKey: B, sessionId: d };
|
|
14726
14726
|
throw new Error("Failed to decrypt session key");
|
|
14727
14727
|
} else
|
|
14728
14728
|
throw new Error("Invalid attestation document");
|
|
14729
|
-
} catch (
|
|
14730
|
-
throw console.error("Error verifying attestation:",
|
|
14729
|
+
} catch (i) {
|
|
14730
|
+
throw console.error("Error verifying attestation:", i), i;
|
|
14731
14731
|
} finally {
|
|
14732
14732
|
console.groupEnd();
|
|
14733
14733
|
}
|
|
@@ -14763,12 +14763,12 @@ async function D0(r, e, t, n, i) {
|
|
|
14763
14763
|
let { sessionKey: s, sessionId: o } = await ho();
|
|
14764
14764
|
const c = async (d, b = !1) => {
|
|
14765
14765
|
if (b || !s || !o) {
|
|
14766
|
-
const
|
|
14767
|
-
s =
|
|
14766
|
+
const B = await ho(!0);
|
|
14767
|
+
s = B.sessionKey, o = B.sessionId;
|
|
14768
14768
|
}
|
|
14769
14769
|
if (!s || !o)
|
|
14770
14770
|
throw new Error("Failed to make encrypted API call, no attestation available.");
|
|
14771
|
-
const
|
|
14771
|
+
const S = t ? JSON.stringify(t) : void 0, Y = S ? xd(s, S) : void 0, $ = {
|
|
14772
14772
|
"Content-Type": "application/json",
|
|
14773
14773
|
"x-session-id": o
|
|
14774
14774
|
};
|
|
@@ -14777,29 +14777,29 @@ async function D0(r, e, t, n, i) {
|
|
|
14777
14777
|
method: e,
|
|
14778
14778
|
headers: $,
|
|
14779
14779
|
body: Y ? JSON.stringify({ encrypted: Y }) : void 0
|
|
14780
|
-
}),
|
|
14780
|
+
}), E = {
|
|
14781
14781
|
status: w.status
|
|
14782
14782
|
};
|
|
14783
14783
|
if (w.ok)
|
|
14784
14784
|
try {
|
|
14785
|
-
const
|
|
14786
|
-
|
|
14787
|
-
} catch (
|
|
14788
|
-
console.error("Error decrypting or parsing response:",
|
|
14785
|
+
const B = await w.json(), I = Ad(s, B.encrypted);
|
|
14786
|
+
E.data = JSON.parse(I);
|
|
14787
|
+
} catch (B) {
|
|
14788
|
+
console.error("Error decrypting or parsing response:", B), E.status = 500, E.error = "Failed to decrypt or parse the response";
|
|
14789
14789
|
}
|
|
14790
14790
|
else
|
|
14791
14791
|
try {
|
|
14792
|
-
const
|
|
14793
|
-
|
|
14792
|
+
const B = await w.json();
|
|
14793
|
+
E.error = B.message || i || `HTTP error! Status: ${w.status}`;
|
|
14794
14794
|
} catch {
|
|
14795
|
-
|
|
14795
|
+
E.error = i || `HTTP error! Status: ${w.status}`;
|
|
14796
14796
|
}
|
|
14797
|
-
return
|
|
14797
|
+
return E;
|
|
14798
14798
|
}, u = async (d, b = !1) => {
|
|
14799
|
-
var
|
|
14799
|
+
var S;
|
|
14800
14800
|
try {
|
|
14801
14801
|
const Y = await c(d, b);
|
|
14802
|
-
return (Y.status === 400 || (
|
|
14802
|
+
return (Y.status === 400 || (S = Y.error) != null && S.includes("Encryption error")) && !b ? (console.log("Encryption error or Bad Request, attempting to renew attestation"), u(d, !0)) : Y;
|
|
14803
14803
|
} catch (Y) {
|
|
14804
14804
|
return {
|
|
14805
14805
|
status: 500,
|
|
@@ -14823,27 +14823,26 @@ async function Ir(r, e, t, n, i) {
|
|
|
14823
14823
|
throw new Error("No data received from the server");
|
|
14824
14824
|
return s.data;
|
|
14825
14825
|
}
|
|
14826
|
-
let
|
|
14827
|
-
console.log("API_URL:", ht);
|
|
14826
|
+
let yt = "http://localhost:3000";
|
|
14828
14827
|
function am(r) {
|
|
14829
|
-
|
|
14828
|
+
yt = r;
|
|
14830
14829
|
}
|
|
14831
14830
|
async function cm(r, e) {
|
|
14832
14831
|
return Ir(
|
|
14833
|
-
`${
|
|
14832
|
+
`${yt}/login`,
|
|
14834
14833
|
"POST",
|
|
14835
14834
|
{ email: r, password: e }
|
|
14836
14835
|
);
|
|
14837
14836
|
}
|
|
14838
14837
|
async function lm(r, e) {
|
|
14839
14838
|
return Ir(
|
|
14840
|
-
`${
|
|
14839
|
+
`${yt}/login`,
|
|
14841
14840
|
"POST",
|
|
14842
14841
|
{ id: r, password: e }
|
|
14843
14842
|
);
|
|
14844
14843
|
}
|
|
14845
14844
|
async function um(r, e, t, n) {
|
|
14846
|
-
return Ir(`${
|
|
14845
|
+
return Ir(`${yt}/register`, "POST", {
|
|
14847
14846
|
email: r,
|
|
14848
14847
|
password: e,
|
|
14849
14848
|
inviteCode: t.toLowerCase(),
|
|
@@ -14851,7 +14850,7 @@ async function um(r, e, t, n) {
|
|
|
14851
14850
|
});
|
|
14852
14851
|
}
|
|
14853
14852
|
async function fm(r, e) {
|
|
14854
|
-
return Ir(`${
|
|
14853
|
+
return Ir(`${yt}/register`, "POST", {
|
|
14855
14854
|
password: r,
|
|
14856
14855
|
inviteCode: e.toLowerCase()
|
|
14857
14856
|
});
|
|
@@ -14862,7 +14861,7 @@ async function jc() {
|
|
|
14862
14861
|
const e = { refresh_token: r };
|
|
14863
14862
|
try {
|
|
14864
14863
|
const t = await Ir(
|
|
14865
|
-
`${
|
|
14864
|
+
`${yt}/refresh`,
|
|
14866
14865
|
"POST",
|
|
14867
14866
|
e,
|
|
14868
14867
|
void 0,
|
|
@@ -14875,7 +14874,7 @@ async function jc() {
|
|
|
14875
14874
|
}
|
|
14876
14875
|
async function hm() {
|
|
14877
14876
|
return kr(
|
|
14878
|
-
`${
|
|
14877
|
+
`${yt}/protected/user`,
|
|
14879
14878
|
"GET",
|
|
14880
14879
|
void 0,
|
|
14881
14880
|
"Failed to fetch user"
|
|
@@ -14883,7 +14882,7 @@ async function hm() {
|
|
|
14883
14882
|
}
|
|
14884
14883
|
async function $0(r, e) {
|
|
14885
14884
|
return kr(
|
|
14886
|
-
`${
|
|
14885
|
+
`${yt}/protected/kv/${r}`,
|
|
14887
14886
|
"PUT",
|
|
14888
14887
|
e,
|
|
14889
14888
|
"Failed to put key-value pair"
|
|
@@ -14891,7 +14890,7 @@ async function $0(r, e) {
|
|
|
14891
14890
|
}
|
|
14892
14891
|
async function M0(r) {
|
|
14893
14892
|
return kr(
|
|
14894
|
-
`${
|
|
14893
|
+
`${yt}/protected/kv/${r}`,
|
|
14895
14894
|
"DELETE",
|
|
14896
14895
|
void 0,
|
|
14897
14896
|
"Failed to delete key-value pair"
|
|
@@ -14900,7 +14899,7 @@ async function M0(r) {
|
|
|
14900
14899
|
async function V0(r) {
|
|
14901
14900
|
try {
|
|
14902
14901
|
return await kr(
|
|
14903
|
-
`${
|
|
14902
|
+
`${yt}/protected/kv/${r}`,
|
|
14904
14903
|
"GET",
|
|
14905
14904
|
void 0,
|
|
14906
14905
|
"Failed to get key-value pair"
|
|
@@ -14912,7 +14911,7 @@ async function V0(r) {
|
|
|
14912
14911
|
}
|
|
14913
14912
|
async function L0() {
|
|
14914
14913
|
return kr(
|
|
14915
|
-
`${
|
|
14914
|
+
`${yt}/protected/kv`,
|
|
14916
14915
|
"GET",
|
|
14917
14916
|
void 0,
|
|
14918
14917
|
"Failed to list key-value pairs"
|
|
@@ -14920,11 +14919,11 @@ async function L0() {
|
|
|
14920
14919
|
}
|
|
14921
14920
|
async function dm(r) {
|
|
14922
14921
|
const e = { refresh_token: r };
|
|
14923
|
-
return Ir(`${
|
|
14922
|
+
return Ir(`${yt}/logout`, "POST", e);
|
|
14924
14923
|
}
|
|
14925
14924
|
async function H0(r) {
|
|
14926
14925
|
return Ir(
|
|
14927
|
-
`${
|
|
14926
|
+
`${yt}/verify-email/${r}`,
|
|
14928
14927
|
"GET",
|
|
14929
14928
|
void 0,
|
|
14930
14929
|
void 0,
|
|
@@ -14933,20 +14932,20 @@ async function H0(r) {
|
|
|
14933
14932
|
}
|
|
14934
14933
|
async function Ua() {
|
|
14935
14934
|
return kr(
|
|
14936
|
-
`${
|
|
14935
|
+
`${yt}/protected/request_verification`,
|
|
14937
14936
|
"POST",
|
|
14938
14937
|
void 0,
|
|
14939
14938
|
"Failed to request new verification code"
|
|
14940
14939
|
);
|
|
14941
14940
|
}
|
|
14942
14941
|
async function pm(r) {
|
|
14943
|
-
const e = await fetch(`${
|
|
14942
|
+
const e = await fetch(`${yt}/attestation/${r}`);
|
|
14944
14943
|
if (!e.ok)
|
|
14945
14944
|
throw new Error(`Request failed with status ${e.status}`);
|
|
14946
14945
|
return (await e.json()).attestation_document;
|
|
14947
14946
|
}
|
|
14948
14947
|
async function ym(r, e) {
|
|
14949
|
-
const t = await fetch(`${
|
|
14948
|
+
const t = await fetch(`${yt}/key_exchange`, {
|
|
14950
14949
|
method: "POST",
|
|
14951
14950
|
headers: {
|
|
14952
14951
|
"Content-Type": "application/json"
|
|
@@ -14960,7 +14959,7 @@ async function ym(r, e) {
|
|
|
14960
14959
|
async function F0(r, e) {
|
|
14961
14960
|
const t = { email: r, hashed_secret: e };
|
|
14962
14961
|
return Ir(
|
|
14963
|
-
`${
|
|
14962
|
+
`${yt}/password-reset/request`,
|
|
14964
14963
|
"POST",
|
|
14965
14964
|
t,
|
|
14966
14965
|
void 0,
|
|
@@ -14975,7 +14974,7 @@ async function G0(r, e, t, n) {
|
|
|
14975
14974
|
new_password: n
|
|
14976
14975
|
};
|
|
14977
14976
|
return Ir(
|
|
14978
|
-
`${
|
|
14977
|
+
`${yt}/password-reset/confirm`,
|
|
14979
14978
|
"POST",
|
|
14980
14979
|
i,
|
|
14981
14980
|
void 0,
|
|
@@ -14988,7 +14987,7 @@ async function z0(r, e) {
|
|
|
14988
14987
|
new_password: e
|
|
14989
14988
|
};
|
|
14990
14989
|
return kr(
|
|
14991
|
-
`${
|
|
14990
|
+
`${yt}/protected/change_password`,
|
|
14992
14991
|
"POST",
|
|
14993
14992
|
t,
|
|
14994
14993
|
"Failed to change password"
|
|
@@ -14997,7 +14996,7 @@ async function z0(r, e) {
|
|
|
14997
14996
|
async function gm(r) {
|
|
14998
14997
|
try {
|
|
14999
14998
|
return await Ir(
|
|
15000
|
-
`${
|
|
14999
|
+
`${yt}/auth/github`,
|
|
15001
15000
|
"POST",
|
|
15002
15001
|
r ? { invite_code: r } : {},
|
|
15003
15002
|
void 0,
|
|
@@ -15011,7 +15010,7 @@ async function vm(r, e, t) {
|
|
|
15011
15010
|
const n = { code: r, state: e, invite_code: t };
|
|
15012
15011
|
try {
|
|
15013
15012
|
return await Ir(
|
|
15014
|
-
`${
|
|
15013
|
+
`${yt}/auth/github/callback`,
|
|
15015
15014
|
"POST",
|
|
15016
15015
|
n,
|
|
15017
15016
|
void 0,
|
|
@@ -15028,7 +15027,7 @@ async function vm(r, e, t) {
|
|
|
15028
15027
|
async function mm(r) {
|
|
15029
15028
|
try {
|
|
15030
15029
|
return await Ir(
|
|
15031
|
-
`${
|
|
15030
|
+
`${yt}/auth/google`,
|
|
15032
15031
|
"POST",
|
|
15033
15032
|
r ? { invite_code: r } : {},
|
|
15034
15033
|
void 0,
|
|
@@ -15042,7 +15041,7 @@ async function wm(r, e, t) {
|
|
|
15042
15041
|
const n = { code: r, state: e, invite_code: t };
|
|
15043
15042
|
try {
|
|
15044
15043
|
return await Ir(
|
|
15045
|
-
`${
|
|
15044
|
+
`${yt}/auth/google/callback`,
|
|
15046
15045
|
"POST",
|
|
15047
15046
|
n,
|
|
15048
15047
|
void 0,
|
|
@@ -15058,14 +15057,14 @@ async function wm(r, e, t) {
|
|
|
15058
15057
|
}
|
|
15059
15058
|
async function K0() {
|
|
15060
15059
|
return kr(
|
|
15061
|
-
`${
|
|
15060
|
+
`${yt}/protected/private_key`,
|
|
15062
15061
|
"GET",
|
|
15063
15062
|
void 0,
|
|
15064
15063
|
"Failed to fetch private key"
|
|
15065
15064
|
);
|
|
15066
15065
|
}
|
|
15067
15066
|
async function Z0(r) {
|
|
15068
|
-
const e = r ? `${
|
|
15067
|
+
const e = r ? `${yt}/protected/private_key_bytes?derivation_path=${encodeURIComponent(r)}` : `${yt}/protected/private_key_bytes`;
|
|
15069
15068
|
return kr(
|
|
15070
15069
|
e,
|
|
15071
15070
|
"GET",
|
|
@@ -15076,7 +15075,7 @@ async function Z0(r) {
|
|
|
15076
15075
|
async function q0(r, e, t) {
|
|
15077
15076
|
const n = Lr(r);
|
|
15078
15077
|
return kr(
|
|
15079
|
-
`${
|
|
15078
|
+
`${yt}/protected/sign_message`,
|
|
15080
15079
|
"POST",
|
|
15081
15080
|
{
|
|
15082
15081
|
message_base64: n,
|
|
@@ -15087,7 +15086,7 @@ async function q0(r, e, t) {
|
|
|
15087
15086
|
);
|
|
15088
15087
|
}
|
|
15089
15088
|
async function W0(r, e) {
|
|
15090
|
-
const t = e ? `${
|
|
15089
|
+
const t = e ? `${yt}/protected/public_key?algorithm=${r}&derivation_path=${encodeURIComponent(e)}` : `${yt}/protected/public_key?algorithm=${r}`;
|
|
15091
15090
|
return kr(
|
|
15092
15091
|
t,
|
|
15093
15092
|
"GET",
|
|
@@ -15102,7 +15101,7 @@ async function bm(r, e, t) {
|
|
|
15102
15101
|
name: t
|
|
15103
15102
|
};
|
|
15104
15103
|
return kr(
|
|
15105
|
-
`${
|
|
15104
|
+
`${yt}/protected/convert_guest`,
|
|
15106
15105
|
"POST",
|
|
15107
15106
|
n,
|
|
15108
15107
|
"Failed to convert guest account"
|
|
@@ -15110,7 +15109,7 @@ async function bm(r, e, t) {
|
|
|
15110
15109
|
}
|
|
15111
15110
|
async function xm(r) {
|
|
15112
15111
|
return kr(
|
|
15113
|
-
`${
|
|
15112
|
+
`${yt}/protected/third_party_token`,
|
|
15114
15113
|
"POST",
|
|
15115
15114
|
{ audience: r },
|
|
15116
15115
|
"Failed to generate third party token"
|
|
@@ -15148,14 +15147,14 @@ function Am() {
|
|
|
15148
15147
|
), new Error(`Request failed with status ${d.status}: ${b}`);
|
|
15149
15148
|
}
|
|
15150
15149
|
if ((n = d.headers.get("content-type")) != null && n.includes("text/event-stream")) {
|
|
15151
|
-
const b = (i = d.body) == null ? void 0 : i.getReader(),
|
|
15150
|
+
const b = (i = d.body) == null ? void 0 : i.getReader(), S = new TextDecoder();
|
|
15152
15151
|
let Y = "";
|
|
15153
15152
|
const $ = new ReadableStream({
|
|
15154
15153
|
async start(w) {
|
|
15155
15154
|
for (; ; ) {
|
|
15156
|
-
const { done:
|
|
15157
|
-
if (
|
|
15158
|
-
const I =
|
|
15155
|
+
const { done: E, value: B } = await b.read();
|
|
15156
|
+
if (E) break;
|
|
15157
|
+
const I = S.decode(B);
|
|
15159
15158
|
Y += I;
|
|
15160
15159
|
let R;
|
|
15161
15160
|
for (; R = _m(Y); )
|
|
@@ -15248,17 +15247,17 @@ async function Im(r) {
|
|
|
15248
15247
|
}
|
|
15249
15248
|
async function Ou(r, e, t) {
|
|
15250
15249
|
console.log("Raw timestamp:", r.timestamp), console.log("Date object:", new Date(r.timestamp));
|
|
15251
|
-
const n = Array.from(r.pcrs.entries()).map(([b,
|
|
15250
|
+
const n = Array.from(r.pcrs.entries()).map(([b, S]) => ({
|
|
15252
15251
|
id: b,
|
|
15253
|
-
value: J0(
|
|
15252
|
+
value: J0(S)
|
|
15254
15253
|
})).filter((b) => !b.value.match(/^0+$/)), i = n.find((b) => b.id === 0), s = i ? km(i.value, t) : null, o = [...e, r.certificate].map((b) => {
|
|
15255
|
-
const
|
|
15254
|
+
const S = new $i(b);
|
|
15256
15255
|
return {
|
|
15257
|
-
subject:
|
|
15258
|
-
notBefore:
|
|
15259
|
-
notAfter:
|
|
15260
|
-
pem:
|
|
15261
|
-
isRoot:
|
|
15256
|
+
subject: S.subject,
|
|
15257
|
+
notBefore: S.notBefore.toLocaleString(),
|
|
15258
|
+
notAfter: S.notAfter.toLocaleString(),
|
|
15259
|
+
pem: S.toString("pem"),
|
|
15260
|
+
isRoot: S.subject === "C=US, O=Amazon, OU=AWS, CN=aws.nitro-enclaves"
|
|
15262
15261
|
};
|
|
15263
15262
|
}), c = new TextDecoder(), u = new $i(e[0]), d = await Im(u.rawData);
|
|
15264
15263
|
return {
|
|
@@ -15411,7 +15410,7 @@ function Ib({
|
|
|
15411
15410
|
throw console.error(ae), ae;
|
|
15412
15411
|
}
|
|
15413
15412
|
}
|
|
15414
|
-
async function
|
|
15413
|
+
async function S(z, he) {
|
|
15415
15414
|
try {
|
|
15416
15415
|
const { access_token: ae, refresh_token: de, id: Re } = await fm(
|
|
15417
15416
|
z,
|
|
@@ -15452,7 +15451,7 @@ function Ib({
|
|
|
15452
15451
|
signInGuest: b,
|
|
15453
15452
|
signOut: $,
|
|
15454
15453
|
signUp: d,
|
|
15455
|
-
signUpGuest:
|
|
15454
|
+
signUpGuest: S,
|
|
15456
15455
|
convertGuestToUserAccount: Y,
|
|
15457
15456
|
get: V0,
|
|
15458
15457
|
put: $0,
|