zigap-utils 3.1.0-preview.0 → 3.1.0-preview.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +632 -629
- package/dist/utils/session.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import * as If from "react";
|
|
|
5
5
|
import Me, { useState as Fe, useEffect as We } from "react";
|
|
6
6
|
import Br from "styled-components";
|
|
7
7
|
var Dr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
8
|
-
function
|
|
8
|
+
function ni(e) {
|
|
9
9
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
10
10
|
}
|
|
11
11
|
function $d(e) {
|
|
@@ -24,7 +24,7 @@ function $d(e) {
|
|
|
24
24
|
} });
|
|
25
25
|
}), r;
|
|
26
26
|
}
|
|
27
|
-
var Da, vo = { exports: {} },
|
|
27
|
+
var Da, vo = { exports: {} }, ai = {}, Ki = {};
|
|
28
28
|
const Tf = $d(If);
|
|
29
29
|
/**
|
|
30
30
|
* @license React
|
|
@@ -37,7 +37,7 @@ const Tf = $d(If);
|
|
|
37
37
|
*/
|
|
38
38
|
var Fa;
|
|
39
39
|
process.env.NODE_ENV === "production" ? vo.exports = function() {
|
|
40
|
-
if (Da) return
|
|
40
|
+
if (Da) return ai;
|
|
41
41
|
Da = 1;
|
|
42
42
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
43
43
|
function r(n, i, s) {
|
|
@@ -46,7 +46,7 @@ process.env.NODE_ENV === "production" ? vo.exports = function() {
|
|
|
46
46
|
else s = i;
|
|
47
47
|
return i = s.ref, { $$typeof: e, type: n, key: a, ref: i !== void 0 ? i : null, props: s };
|
|
48
48
|
}
|
|
49
|
-
return
|
|
49
|
+
return ai.Fragment = t, ai.jsx = r, ai.jsxs = r, ai;
|
|
50
50
|
}() : vo.exports = (Fa || (Fa = 1, process.env.NODE_ENV !== "production" && function() {
|
|
51
51
|
function e(R) {
|
|
52
52
|
if (R == null) return null;
|
|
@@ -61,7 +61,7 @@ process.env.NODE_ENV === "production" ? vo.exports = function() {
|
|
|
61
61
|
return "StrictMode";
|
|
62
62
|
case S:
|
|
63
63
|
return "Suspense";
|
|
64
|
-
case
|
|
64
|
+
case O:
|
|
65
65
|
return "SuspenseList";
|
|
66
66
|
case L:
|
|
67
67
|
return "Activity";
|
|
@@ -158,7 +158,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
158
158
|
function o(R) {
|
|
159
159
|
typeof R == "object" && R !== null && R.$$typeof === h && R._store && (R._store.validated = 1);
|
|
160
160
|
}
|
|
161
|
-
var c, d = Tf, h = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), I = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"),
|
|
161
|
+
var c, d = Tf, h = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), I = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), z = Symbol.for("react.client.reference"), f = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, l = Object.prototype.hasOwnProperty, g = Array.isArray, m = console.createTask ? console.createTask : function() {
|
|
162
162
|
return null;
|
|
163
163
|
}, u = {}, y = (d = { "react-stack-bottom-frame": function(R) {
|
|
164
164
|
return R();
|
|
@@ -192,13 +192,13 @@ Hd.exports = function() {
|
|
|
192
192
|
return { M: d, y: p, w: c, d: o, D: w, h: a, m: s, s: i, ms: n, Q: h }[u] || String(u || "").toLowerCase().replace(/s$/, "");
|
|
193
193
|
}, u: function(u) {
|
|
194
194
|
return u === void 0;
|
|
195
|
-
} },
|
|
196
|
-
k[
|
|
195
|
+
} }, O = "en", k = {};
|
|
196
|
+
k[O] = _;
|
|
197
197
|
var N = "$isDayjsObject", L = function(u) {
|
|
198
198
|
return u instanceof g || !(!u || !u[N]);
|
|
199
199
|
}, z = function u(y, x, P) {
|
|
200
200
|
var R;
|
|
201
|
-
if (!y) return
|
|
201
|
+
if (!y) return O;
|
|
202
202
|
if (typeof y == "string") {
|
|
203
203
|
var j = y.toLowerCase();
|
|
204
204
|
k[j] && (R = j), x && (k[j] = x, R = j);
|
|
@@ -208,7 +208,7 @@ Hd.exports = function() {
|
|
|
208
208
|
var U = y.name;
|
|
209
209
|
k[U] = y, R = U;
|
|
210
210
|
}
|
|
211
|
-
return !P && R && (
|
|
211
|
+
return !P && R && (O = R), R || !P && O;
|
|
212
212
|
}, f = function(u, y) {
|
|
213
213
|
if (L(u)) return u.clone();
|
|
214
214
|
var x = typeof y == "object" ? y : {};
|
|
@@ -441,9 +441,9 @@ Hd.exports = function() {
|
|
|
441
441
|
return u.$i || (u(y, g, f), u.$i = !0), f;
|
|
442
442
|
}, f.locale = z, f.isDayjs = L, f.unix = function(u) {
|
|
443
443
|
return f(1e3 * u);
|
|
444
|
-
}, f.en = k[
|
|
444
|
+
}, f.en = k[O], f.Ls = k, f.p = {}, f;
|
|
445
445
|
}();
|
|
446
|
-
const
|
|
446
|
+
const gi = ni(Hd.exports);
|
|
447
447
|
var hn, Za, Rf = Object.defineProperty, hs = Object.getOwnPropertySymbols, Dd = Object.prototype.hasOwnProperty, Fd = Object.prototype.propertyIsEnumerable, Va = (e, t, r) => t in e ? Rf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wo = (e, t) => {
|
|
448
448
|
for (var r in t || (t = {})) Dd.call(t, r) && Va(e, r, t[r]);
|
|
449
449
|
if (hs) for (var r of hs(t)) Fd.call(t, r) && Va(e, r, t[r]);
|
|
@@ -487,26 +487,26 @@ var hn, Za, Rf = Object.defineProperty, hs = Object.getOwnPropertySymbols, Dd =
|
|
|
487
487
|
if (!(Ht.MIN_VERSION <= h && h <= p && p <= Ht.MAX_VERSION) || w < -1 || w > 7) throw new RangeError("Invalid value");
|
|
488
488
|
let A, I;
|
|
489
489
|
for (A = h; ; A++) {
|
|
490
|
-
const
|
|
491
|
-
if (k <=
|
|
490
|
+
const O = 8 * Ht.getNumDataCodewords(A, d), k = a.getTotalBits(c, A);
|
|
491
|
+
if (k <= O) {
|
|
492
492
|
I = k;
|
|
493
493
|
break;
|
|
494
494
|
}
|
|
495
495
|
if (A >= p) throw new RangeError("Data too long");
|
|
496
496
|
}
|
|
497
|
-
for (const
|
|
497
|
+
for (const O of [Ht.Ecc.MEDIUM, Ht.Ecc.QUARTILE, Ht.Ecc.HIGH]) v && I <= 8 * Ht.getNumDataCodewords(A, O) && (d = O);
|
|
498
498
|
let _ = [];
|
|
499
|
-
for (const
|
|
500
|
-
r(
|
|
501
|
-
for (const k of
|
|
499
|
+
for (const O of c) {
|
|
500
|
+
r(O.mode.modeBits, 4, _), r(O.numChars, O.mode.numCharCountBits(A), _);
|
|
501
|
+
for (const k of O.getData()) _.push(k);
|
|
502
502
|
}
|
|
503
503
|
i(_.length == I);
|
|
504
504
|
const M = 8 * Ht.getNumDataCodewords(A, d);
|
|
505
505
|
i(_.length <= M), r(0, Math.min(4, M - _.length), _), r(0, (8 - _.length % 8) % 8, _), i(_.length % 8 == 0);
|
|
506
|
-
for (let
|
|
506
|
+
for (let O = 236; _.length < M; O ^= 253) r(O, 8, _);
|
|
507
507
|
let S = [];
|
|
508
508
|
for (; 8 * S.length < _.length; ) S.push(0);
|
|
509
|
-
return _.forEach((
|
|
509
|
+
return _.forEach((O, k) => S[k >>> 3] |= O << 7 - (7 & k)), new Ht(A, d, S, w);
|
|
510
510
|
}
|
|
511
511
|
getModule(c, d) {
|
|
512
512
|
return 0 <= c && c < this.size && 0 <= d && d < this.size && this.modules[d][c];
|
|
@@ -563,15 +563,15 @@ var hn, Za, Rf = Object.defineProperty, hs = Object.getOwnPropertySymbols, Dd =
|
|
|
563
563
|
const p = Ht.NUM_ERROR_CORRECTION_BLOCKS[h.ordinal][d], w = Ht.ECC_CODEWORDS_PER_BLOCK[h.ordinal][d], v = Math.floor(Ht.getNumRawDataModules(d) / 8), A = p - v % p, I = Math.floor(v / p);
|
|
564
564
|
let _ = [];
|
|
565
565
|
const M = Ht.reedSolomonComputeDivisor(w);
|
|
566
|
-
for (let
|
|
567
|
-
let N = c.slice(k, k + I - w + (
|
|
566
|
+
for (let O = 0, k = 0; O < p; O++) {
|
|
567
|
+
let N = c.slice(k, k + I - w + (O < A ? 0 : 1));
|
|
568
568
|
k += N.length;
|
|
569
569
|
const L = Ht.reedSolomonComputeRemainder(N, M);
|
|
570
|
-
|
|
570
|
+
O < A && N.push(0), _.push(N.concat(L));
|
|
571
571
|
}
|
|
572
572
|
let S = [];
|
|
573
|
-
for (let
|
|
574
|
-
(
|
|
573
|
+
for (let O = 0; O < _[0].length; O++) _.forEach((k, N) => {
|
|
574
|
+
(O != I - w || N >= A) && S.push(k[O]);
|
|
575
575
|
});
|
|
576
576
|
return i(S.length == v), S;
|
|
577
577
|
}
|
|
@@ -836,9 +836,9 @@ function Gd({ value: e, level: t, minVersion: r, includeMargin: n, marginSize: i
|
|
|
836
836
|
let v = c.getModules();
|
|
837
837
|
const A = function(M, S) {
|
|
838
838
|
return S != null ? Math.max(Math.floor(S), 0) : M ? 4 : 0;
|
|
839
|
-
}(n, i), I = v.length + 2 * A, _ = function(M, S,
|
|
839
|
+
}(n, i), I = v.length + 2 * A, _ = function(M, S, O, k) {
|
|
840
840
|
if (k == null) return null;
|
|
841
|
-
const N = M.length + 2 *
|
|
841
|
+
const N = M.length + 2 * O, L = Math.floor(0.1 * S), z = N / S, f = (k.width || L) * z, l = (k.height || L) * z, g = k.x == null ? M.length / 2 - f / 2 : k.x * z, m = k.y == null ? M.length / 2 - l / 2 : k.y * z, u = k.opacity == null ? 1 : k.opacity;
|
|
842
842
|
let y = null;
|
|
843
843
|
if (k.excavate) {
|
|
844
844
|
let x = Math.floor(g), P = Math.floor(m);
|
|
@@ -850,7 +850,7 @@ function Gd({ value: e, level: t, minVersion: r, includeMargin: n, marginSize: i
|
|
|
850
850
|
}, [c, a, s, n, i]);
|
|
851
851
|
return { qrcode: c, margin: h, cells: d, numCells: p, calculatedImageSettings: w };
|
|
852
852
|
}
|
|
853
|
-
var
|
|
853
|
+
var Cf = function() {
|
|
854
854
|
try {
|
|
855
855
|
new Path2D().addPath(new Path2D());
|
|
856
856
|
} catch {
|
|
@@ -858,7 +858,7 @@ var Of = function() {
|
|
|
858
858
|
}
|
|
859
859
|
return !0;
|
|
860
860
|
}(), In = Me.forwardRef(function(e, t) {
|
|
861
|
-
const r = e, { value: n, size: i = Zd, level: s = Vd, bgColor: a = Kd, fgColor: o = Wd, includeMargin: c = Yd, minVersion: d = Qd, boostLevel: h, marginSize: p, imageSettings: w } = r, v = _o(r, ["value", "size", "level", "bgColor", "fgColor", "includeMargin", "minVersion", "boostLevel", "marginSize", "imageSettings"]), { style: A } = v, I = _o(v, ["style"]), _ = w == null ? void 0 : w.src, M = Me.useRef(null), S = Me.useRef(null),
|
|
861
|
+
const r = e, { value: n, size: i = Zd, level: s = Vd, bgColor: a = Kd, fgColor: o = Wd, includeMargin: c = Yd, minVersion: d = Qd, boostLevel: h, marginSize: p, imageSettings: w } = r, v = _o(r, ["value", "size", "level", "bgColor", "fgColor", "includeMargin", "minVersion", "boostLevel", "marginSize", "imageSettings"]), { style: A } = v, I = _o(v, ["style"]), _ = w == null ? void 0 : w.src, M = Me.useRef(null), S = Me.useRef(null), O = Me.useCallback((u) => {
|
|
862
862
|
M.current = u, typeof t == "function" ? t(u) : t && (t.current = u);
|
|
863
863
|
}, [t]), [k, N] = Me.useState(!1), { margin: L, cells: z, numCells: f, calculatedImageSettings: l } = Gd({ value: n, level: s, minVersion: d, boostLevel: h, includeMargin: c, marginSize: p, imageSettings: w, size: i });
|
|
864
864
|
Me.useEffect(() => {
|
|
@@ -871,7 +871,7 @@ var Of = function() {
|
|
|
871
871
|
const j = window.devicePixelRatio || 1;
|
|
872
872
|
u.height = u.width = i * j;
|
|
873
873
|
const Z = i / f * j;
|
|
874
|
-
y.scale(Z, Z), y.fillStyle = a, y.fillRect(0, 0, f, f), y.fillStyle = o,
|
|
874
|
+
y.scale(Z, Z), y.fillStyle = a, y.fillRect(0, 0, f, f), y.fillStyle = o, Cf ? y.fill(new Path2D(Jd(x, L))) : z.forEach(function(U, V) {
|
|
875
875
|
U.forEach(function(F, H) {
|
|
876
876
|
F && y.fillRect(H + L, V + L, 1, 1);
|
|
877
877
|
});
|
|
@@ -884,23 +884,23 @@ var Of = function() {
|
|
|
884
884
|
let m = null;
|
|
885
885
|
return _ != null && (m = Me.createElement("img", { src: _, key: _, style: { display: "none" }, onLoad: () => {
|
|
886
886
|
N(!0);
|
|
887
|
-
}, ref: S, crossOrigin: l == null ? void 0 : l.crossOrigin })), Me.createElement(Me.Fragment, null, Me.createElement("canvas", wo({ style: g, height: i, width: i, ref:
|
|
887
|
+
}, ref: S, crossOrigin: l == null ? void 0 : l.crossOrigin })), Me.createElement(Me.Fragment, null, Me.createElement("canvas", wo({ style: g, height: i, width: i, ref: O, role: "img" }, I)), m);
|
|
888
888
|
});
|
|
889
889
|
In.displayName = "QRCodeCanvas";
|
|
890
|
-
var
|
|
890
|
+
var Of = Me.forwardRef(function(e, t) {
|
|
891
891
|
const r = e, { value: n, size: i = Zd, level: s = Vd, bgColor: a = Kd, fgColor: o = Wd, includeMargin: c = Yd, minVersion: d = Qd, boostLevel: h, title: p, marginSize: w, imageSettings: v } = r, A = _o(r, ["value", "size", "level", "bgColor", "fgColor", "includeMargin", "minVersion", "boostLevel", "title", "marginSize", "imageSettings"]), { margin: I, cells: _, numCells: M, calculatedImageSettings: S } = Gd({ value: n, level: s, minVersion: d, boostLevel: h, includeMargin: c, marginSize: w, imageSettings: v, size: i });
|
|
892
|
-
let
|
|
893
|
-
v != null && S != null && (S.excavation != null && (
|
|
894
|
-
const N = Jd(
|
|
892
|
+
let O = _, k = null;
|
|
893
|
+
v != null && S != null && (S.excavation != null && (O = Xd(_, S.excavation)), k = Me.createElement("image", { href: v.src, height: S.h, width: S.w, x: S.x + I, y: S.y + I, preserveAspectRatio: "none", opacity: S.opacity, crossOrigin: S.crossOrigin }));
|
|
894
|
+
const N = Jd(O, I);
|
|
895
895
|
return Me.createElement("svg", wo({ height: i, width: i, viewBox: `0 0 ${M} ${M}`, ref: t, role: "img" }, A), !!p && Me.createElement("title", null, p), Me.createElement("path", { fill: a, d: `M0,0 h${M}v${M}H0z`, shapeRendering: "crispEdges" }), Me.createElement("path", { fill: o, d: N, shapeRendering: "crispEdges" }), k);
|
|
896
896
|
});
|
|
897
|
-
|
|
898
|
-
const
|
|
897
|
+
Of.displayName = "QRCodeSVG";
|
|
898
|
+
const Fn = "userInfo", vi = "YYYY-MM-DD HH:mm:ss", L3 = () => {
|
|
899
899
|
const [e, t] = Fe(!1), [r, n] = Fe(void 0), [i, s] = Fe(void 0);
|
|
900
900
|
return We(() => {
|
|
901
901
|
if (typeof window < "u") {
|
|
902
902
|
t(!0);
|
|
903
|
-
const a = localStorage.getItem(
|
|
903
|
+
const a = localStorage.getItem(Fn);
|
|
904
904
|
if (a) {
|
|
905
905
|
const o = JSON.parse(a);
|
|
906
906
|
n(o);
|
|
@@ -908,11 +908,11 @@ const gi = "userInfo", vi = "YYYY-MM-DD HH:mm:ss", L3 = () => {
|
|
|
908
908
|
}
|
|
909
909
|
}, []), We(() => {
|
|
910
910
|
if (r && r.expire.type !== "NONE") {
|
|
911
|
-
const { type: a, seconds: o } = r.expire, c =
|
|
912
|
-
s(h),
|
|
911
|
+
const { type: a, seconds: o } = r.expire, c = gi().add(o, "seconds").format(vi), d = gi(r.issuedDateTime).add(o, "seconds").format(vi), h = a === "EXTEND" ? c : d;
|
|
912
|
+
s(h), gi().format(vi) > h && (localStorage.removeItem(Fn), window.location.reload());
|
|
913
913
|
}
|
|
914
914
|
}, [r]), { userInfo: { address: (r == null ? void 0 : r.address) ?? void 0, network: (r == null ? void 0 : r.network) ?? void 0, nickName: (r == null ? void 0 : r.nickName) ?? void 0, token: (r == null ? void 0 : r.token) ?? void 0, issuedDateTime: (r == null ? void 0 : r.issuedDateTime) ?? void 0, expireDateTime: i }, logout: () => {
|
|
915
|
-
localStorage.removeItem(
|
|
915
|
+
localStorage.removeItem(Fn), n(void 0);
|
|
916
916
|
}, isWindowLoaded: e };
|
|
917
917
|
};
|
|
918
918
|
var t1 = { exports: {} };
|
|
@@ -968,12 +968,12 @@ function Jt() {
|
|
|
968
968
|
}, toString: function(_) {
|
|
969
969
|
return (_ || p).stringify(this);
|
|
970
970
|
}, concat: function(_) {
|
|
971
|
-
var M = this.words, S = _.words,
|
|
972
|
-
if (this.clamp(),
|
|
971
|
+
var M = this.words, S = _.words, O = this.sigBytes, k = _.sigBytes;
|
|
972
|
+
if (this.clamp(), O % 4) for (var N = 0; N < k; N++) {
|
|
973
973
|
var L = S[N >>> 2] >>> 24 - N % 4 * 8 & 255;
|
|
974
|
-
M[
|
|
974
|
+
M[O + N >>> 2] |= L << 24 - (O + N) % 4 * 8;
|
|
975
975
|
}
|
|
976
|
-
else for (var z = 0; z < k; z += 4) M[
|
|
976
|
+
else for (var z = 0; z < k; z += 4) M[O + z >>> 2] = S[z >>> 2];
|
|
977
977
|
return this.sigBytes += k, this;
|
|
978
978
|
}, clamp: function() {
|
|
979
979
|
var _ = this.words, M = this.sigBytes;
|
|
@@ -985,22 +985,22 @@ function Jt() {
|
|
|
985
985
|
for (var M = [], S = 0; S < _; S += 4) M.push(i());
|
|
986
986
|
return new d.init(M, _);
|
|
987
987
|
} }), h = a.enc = {}, p = h.Hex = { stringify: function(_) {
|
|
988
|
-
for (var M = _.words, S = _.sigBytes,
|
|
988
|
+
for (var M = _.words, S = _.sigBytes, O = [], k = 0; k < S; k++) {
|
|
989
989
|
var N = M[k >>> 2] >>> 24 - k % 4 * 8 & 255;
|
|
990
|
-
|
|
990
|
+
O.push((N >>> 4).toString(16)), O.push((15 & N).toString(16));
|
|
991
991
|
}
|
|
992
|
-
return
|
|
992
|
+
return O.join("");
|
|
993
993
|
}, parse: function(_) {
|
|
994
|
-
for (var M = _.length, S = [],
|
|
994
|
+
for (var M = _.length, S = [], O = 0; O < M; O += 2) S[O >>> 3] |= parseInt(_.substr(O, 2), 16) << 24 - O % 8 * 4;
|
|
995
995
|
return new d.init(S, M / 2);
|
|
996
996
|
} }, w = h.Latin1 = { stringify: function(_) {
|
|
997
|
-
for (var M = _.words, S = _.sigBytes,
|
|
997
|
+
for (var M = _.words, S = _.sigBytes, O = [], k = 0; k < S; k++) {
|
|
998
998
|
var N = M[k >>> 2] >>> 24 - k % 4 * 8 & 255;
|
|
999
|
-
|
|
999
|
+
O.push(String.fromCharCode(N));
|
|
1000
1000
|
}
|
|
1001
|
-
return
|
|
1001
|
+
return O.join("");
|
|
1002
1002
|
}, parse: function(_) {
|
|
1003
|
-
for (var M = _.length, S = [],
|
|
1003
|
+
for (var M = _.length, S = [], O = 0; O < M; O++) S[O >>> 2] |= (255 & _.charCodeAt(O)) << 24 - O % 4 * 8;
|
|
1004
1004
|
return new d.init(S, M);
|
|
1005
1005
|
} }, v = h.Utf8 = { stringify: function(_) {
|
|
1006
1006
|
try {
|
|
@@ -1015,10 +1015,10 @@ function Jt() {
|
|
|
1015
1015
|
}, _append: function(_) {
|
|
1016
1016
|
typeof _ == "string" && (_ = v.parse(_)), this._data.concat(_), this._nDataBytes += _.sigBytes;
|
|
1017
1017
|
}, _process: function(_) {
|
|
1018
|
-
var M, S = this._data,
|
|
1018
|
+
var M, S = this._data, O = S.words, k = S.sigBytes, N = this.blockSize, L = k / (4 * N), z = (L = _ ? t.ceil(L) : t.max((0 | L) - this._minBufferSize, 0)) * N, f = t.min(4 * z, k);
|
|
1019
1019
|
if (z) {
|
|
1020
|
-
for (var l = 0; l < z; l += N) this._doProcessBlock(
|
|
1021
|
-
M =
|
|
1020
|
+
for (var l = 0; l < z; l += N) this._doProcessBlock(O, l);
|
|
1021
|
+
M = O.splice(0, z), S.sigBytes -= f;
|
|
1022
1022
|
}
|
|
1023
1023
|
return new d.init(M, f);
|
|
1024
1024
|
}, clone: function() {
|
|
@@ -1203,36 +1203,36 @@ function mn() {
|
|
|
1203
1203
|
var _ = A + I, M = v[_];
|
|
1204
1204
|
v[_] = 16711935 & (M << 8 | M >>> 24) | 4278255360 & (M << 24 | M >>> 8);
|
|
1205
1205
|
}
|
|
1206
|
-
var S = this._hash.words,
|
|
1207
|
-
U = d(U, V, F, H,
|
|
1206
|
+
var S = this._hash.words, O = v[A + 0], k = v[A + 1], N = v[A + 2], L = v[A + 3], z = v[A + 4], f = v[A + 5], l = v[A + 6], g = v[A + 7], m = v[A + 8], u = v[A + 9], y = v[A + 10], x = v[A + 11], P = v[A + 12], R = v[A + 13], j = v[A + 14], Z = v[A + 15], U = S[0], V = S[1], F = S[2], H = S[3];
|
|
1207
|
+
U = d(U, V, F, H, O, 7, o[0]), H = d(H, U, V, F, k, 12, o[1]), F = d(F, H, U, V, N, 17, o[2]), V = d(V, F, H, U, L, 22, o[3]), U = d(U, V, F, H, z, 7, o[4]), H = d(H, U, V, F, f, 12, o[5]), F = d(F, H, U, V, l, 17, o[6]), V = d(V, F, H, U, g, 22, o[7]), U = d(U, V, F, H, m, 7, o[8]), H = d(H, U, V, F, u, 12, o[9]), F = d(F, H, U, V, y, 17, o[10]), V = d(V, F, H, U, x, 22, o[11]), U = d(U, V, F, H, P, 7, o[12]), H = d(H, U, V, F, R, 12, o[13]), F = d(F, H, U, V, j, 17, o[14]), U = h(U, V = d(V, F, H, U, Z, 22, o[15]), F, H, k, 5, o[16]), H = h(H, U, V, F, l, 9, o[17]), F = h(F, H, U, V, x, 14, o[18]), V = h(V, F, H, U, O, 20, o[19]), U = h(U, V, F, H, f, 5, o[20]), H = h(H, U, V, F, y, 9, o[21]), F = h(F, H, U, V, Z, 14, o[22]), V = h(V, F, H, U, z, 20, o[23]), U = h(U, V, F, H, u, 5, o[24]), H = h(H, U, V, F, j, 9, o[25]), F = h(F, H, U, V, L, 14, o[26]), V = h(V, F, H, U, m, 20, o[27]), U = h(U, V, F, H, R, 5, o[28]), H = h(H, U, V, F, N, 9, o[29]), F = h(F, H, U, V, g, 14, o[30]), U = p(U, V = h(V, F, H, U, P, 20, o[31]), F, H, f, 4, o[32]), H = p(H, U, V, F, m, 11, o[33]), F = p(F, H, U, V, x, 16, o[34]), V = p(V, F, H, U, j, 23, o[35]), U = p(U, V, F, H, k, 4, o[36]), H = p(H, U, V, F, z, 11, o[37]), F = p(F, H, U, V, g, 16, o[38]), V = p(V, F, H, U, y, 23, o[39]), U = p(U, V, F, H, R, 4, o[40]), H = p(H, U, V, F, O, 11, o[41]), F = p(F, H, U, V, L, 16, o[42]), V = p(V, F, H, U, l, 23, o[43]), U = p(U, V, F, H, u, 4, o[44]), H = p(H, U, V, F, P, 11, o[45]), F = p(F, H, U, V, Z, 16, o[46]), U = w(U, V = p(V, F, H, U, N, 23, o[47]), F, H, O, 6, o[48]), H = w(H, U, V, F, g, 10, o[49]), F = w(F, H, U, V, j, 15, o[50]), V = w(V, F, H, U, f, 21, o[51]), U = w(U, V, F, H, P, 6, o[52]), H = w(H, U, V, F, L, 10, o[53]), F = w(F, H, U, V, y, 15, o[54]), V = w(V, F, H, U, k, 21, o[55]), U = w(U, V, F, H, m, 6, o[56]), H = w(H, U, V, F, Z, 10, o[57]), F = w(F, H, U, V, l, 15, o[58]), V = w(V, F, H, U, R, 21, o[59]), U = w(U, V, F, H, z, 6, o[60]), H = w(H, U, V, F, x, 10, o[61]), F = w(F, H, U, V, N, 15, o[62]), V = w(V, F, H, U, u, 21, o[63]), S[0] = S[0] + U | 0, S[1] = S[1] + V | 0, S[2] = S[2] + F | 0, S[3] = S[3] + H | 0;
|
|
1208
1208
|
}, _doFinalize: function() {
|
|
1209
1209
|
var v = this._data, A = v.words, I = 8 * this._nDataBytes, _ = 8 * v.sigBytes;
|
|
1210
1210
|
A[_ >>> 5] |= 128 << 24 - _ % 32;
|
|
1211
1211
|
var M = t.floor(I / 4294967296), S = I;
|
|
1212
1212
|
A[15 + (_ + 64 >>> 9 << 4)] = 16711935 & (M << 8 | M >>> 24) | 4278255360 & (M << 24 | M >>> 8), A[14 + (_ + 64 >>> 9 << 4)] = 16711935 & (S << 8 | S >>> 24) | 4278255360 & (S << 24 | S >>> 8), v.sigBytes = 4 * (A.length + 1), this._process();
|
|
1213
|
-
for (var
|
|
1213
|
+
for (var O = this._hash, k = O.words, N = 0; N < 4; N++) {
|
|
1214
1214
|
var L = k[N];
|
|
1215
1215
|
k[N] = 16711935 & (L << 8 | L >>> 24) | 4278255360 & (L << 24 | L >>> 8);
|
|
1216
1216
|
}
|
|
1217
|
-
return
|
|
1217
|
+
return O;
|
|
1218
1218
|
}, clone: function() {
|
|
1219
1219
|
var v = s.clone.call(this);
|
|
1220
1220
|
return v._hash = this._hash.clone(), v;
|
|
1221
1221
|
} });
|
|
1222
|
-
function d(v, A, I, _, M, S,
|
|
1223
|
-
var k = v + (A & I | ~A & _) + M +
|
|
1222
|
+
function d(v, A, I, _, M, S, O) {
|
|
1223
|
+
var k = v + (A & I | ~A & _) + M + O;
|
|
1224
1224
|
return (k << S | k >>> 32 - S) + A;
|
|
1225
1225
|
}
|
|
1226
|
-
function h(v, A, I, _, M, S,
|
|
1227
|
-
var k = v + (A & _ | I & ~_) + M +
|
|
1226
|
+
function h(v, A, I, _, M, S, O) {
|
|
1227
|
+
var k = v + (A & _ | I & ~_) + M + O;
|
|
1228
1228
|
return (k << S | k >>> 32 - S) + A;
|
|
1229
1229
|
}
|
|
1230
|
-
function p(v, A, I, _, M, S,
|
|
1231
|
-
var k = v + (A ^ I ^ _) + M +
|
|
1230
|
+
function p(v, A, I, _, M, S, O) {
|
|
1231
|
+
var k = v + (A ^ I ^ _) + M + O;
|
|
1232
1232
|
return (k << S | k >>> 32 - S) + A;
|
|
1233
1233
|
}
|
|
1234
|
-
function w(v, A, I, _, M, S,
|
|
1235
|
-
var k = v + (I ^ (A | ~_)) + M +
|
|
1234
|
+
function w(v, A, I, _, M, S, O) {
|
|
1235
|
+
var k = v + (I ^ (A | ~_)) + M + O;
|
|
1236
1236
|
return (k << S | k >>> 32 - S) + A;
|
|
1237
1237
|
}
|
|
1238
1238
|
r.MD5 = s._createHelper(c), r.HmacMD5 = s._createHmacHelper(c);
|
|
@@ -1285,16 +1285,16 @@ function Ws() {
|
|
|
1285
1285
|
var d = [], h = a.SHA256 = s.extend({ _doReset: function() {
|
|
1286
1286
|
this._hash = new i.init(o.slice(0));
|
|
1287
1287
|
}, _doProcessBlock: function(p, w) {
|
|
1288
|
-
for (var v = this._hash.words, A = v[0], I = v[1], _ = v[2], M = v[3], S = v[4],
|
|
1288
|
+
for (var v = this._hash.words, A = v[0], I = v[1], _ = v[2], M = v[3], S = v[4], O = v[5], k = v[6], N = v[7], L = 0; L < 64; L++) {
|
|
1289
1289
|
if (L < 16) d[L] = 0 | p[w + L];
|
|
1290
1290
|
else {
|
|
1291
1291
|
var z = d[L - 15], f = (z << 25 | z >>> 7) ^ (z << 14 | z >>> 18) ^ z >>> 3, l = d[L - 2], g = (l << 15 | l >>> 17) ^ (l << 13 | l >>> 19) ^ l >>> 10;
|
|
1292
1292
|
d[L] = f + d[L - 7] + g + d[L - 16];
|
|
1293
1293
|
}
|
|
1294
|
-
var m = A & I ^ A & _ ^ I & _, u = (A << 30 | A >>> 2) ^ (A << 19 | A >>> 13) ^ (A << 10 | A >>> 22), y = N + ((S << 26 | S >>> 6) ^ (S << 21 | S >>> 11) ^ (S << 7 | S >>> 25)) + (S &
|
|
1295
|
-
N = k, k =
|
|
1294
|
+
var m = A & I ^ A & _ ^ I & _, u = (A << 30 | A >>> 2) ^ (A << 19 | A >>> 13) ^ (A << 10 | A >>> 22), y = N + ((S << 26 | S >>> 6) ^ (S << 21 | S >>> 11) ^ (S << 7 | S >>> 25)) + (S & O ^ ~S & k) + c[L] + d[L];
|
|
1295
|
+
N = k, k = O, O = S, S = M + y | 0, M = _, _ = I, I = A, A = y + (u + m) | 0;
|
|
1296
1296
|
}
|
|
1297
|
-
v[0] = v[0] + A | 0, v[1] = v[1] + I | 0, v[2] = v[2] + _ | 0, v[3] = v[3] + M | 0, v[4] = v[4] + S | 0, v[5] = v[5] +
|
|
1297
|
+
v[0] = v[0] + A | 0, v[1] = v[1] + I | 0, v[2] = v[2] + _ | 0, v[3] = v[3] + M | 0, v[4] = v[4] + S | 0, v[5] = v[5] + O | 0, v[6] = v[6] + k | 0, v[7] = v[7] + N | 0;
|
|
1298
1298
|
}, _doFinalize: function() {
|
|
1299
1299
|
var p = this._data, w = p.words, v = 8 * this._nDataBytes, A = 8 * p.sigBytes;
|
|
1300
1300
|
return w[A >>> 5] |= 128 << 24 - A % 32, w[14 + (A + 64 >>> 9 << 4)] = t.floor(v / 4294967296), w[15 + (A + 64 >>> 9 << 4)] = v, p.sigBytes = 4 * w.length, this._process(), this._hash;
|
|
@@ -1321,17 +1321,17 @@ function pc() {
|
|
|
1321
1321
|
var h = a.SHA512 = r.extend({ _doReset: function() {
|
|
1322
1322
|
this._hash = new s.init([new i.init(1779033703, 4089235720), new i.init(3144134277, 2227873595), new i.init(1013904242, 4271175723), new i.init(2773480762, 1595750129), new i.init(1359893119, 2917565137), new i.init(2600822924, 725511199), new i.init(528734635, 4215389547), new i.init(1541459225, 327033209)]);
|
|
1323
1323
|
}, _doProcessBlock: function(p, w) {
|
|
1324
|
-
for (var v = this._hash.words, A = v[0], I = v[1], _ = v[2], M = v[3], S = v[4],
|
|
1324
|
+
for (var v = this._hash.words, A = v[0], I = v[1], _ = v[2], M = v[3], S = v[4], O = v[5], k = v[6], N = v[7], L = A.high, z = A.low, f = I.high, l = I.low, g = _.high, m = _.low, u = M.high, y = M.low, x = S.high, P = S.low, R = O.high, j = O.low, Z = k.high, U = k.low, V = N.high, F = N.low, H = L, X = z, Rt = f, dt = l, yt = g, Ft = m, mt = u, Et = y, Zt = x, Lt = P, oe = R, Qe = j, Yt = Z, ee = U, Pr = V, ae = F, Vt = 0; Vt < 80; Vt++) {
|
|
1325
1325
|
var Ve, ie, ce = d[Vt];
|
|
1326
1326
|
if (Vt < 16) ie = ce.high = 0 | p[w + 2 * Vt], Ve = ce.low = 0 | p[w + 2 * Vt + 1];
|
|
1327
1327
|
else {
|
|
1328
|
-
var Lr = d[Vt - 15], se = Lr.high, de = Lr.low, Kr = (se >>> 1 | de << 31) ^ (se >>> 8 | de << 24) ^ se >>> 7, fe = (de >>> 1 | se << 31) ^ (de >>> 8 | se << 24) ^ (de >>> 7 | se << 25), re = d[Vt - 2], ze = re.high, ne = re.low, pe = (ze >>> 19 | ne << 13) ^ (ze << 3 | ne >>> 29) ^ ze >>> 6, Ee = (ne >>> 19 | ze << 13) ^ (ne << 3 | ze >>> 29) ^ (ne >>> 6 | ze << 26), ue = d[Vt - 7], T = ue.high,
|
|
1329
|
-
ie = (ie = (ie = Kr + T + ((Ve = fe +
|
|
1328
|
+
var Lr = d[Vt - 15], se = Lr.high, de = Lr.low, Kr = (se >>> 1 | de << 31) ^ (se >>> 8 | de << 24) ^ se >>> 7, fe = (de >>> 1 | se << 31) ^ (de >>> 8 | se << 24) ^ (de >>> 7 | se << 25), re = d[Vt - 2], ze = re.high, ne = re.low, pe = (ze >>> 19 | ne << 13) ^ (ze << 3 | ne >>> 29) ^ ze >>> 6, Ee = (ne >>> 19 | ze << 13) ^ (ne << 3 | ze >>> 29) ^ (ne >>> 6 | ze << 26), ue = d[Vt - 7], T = ue.high, C = ue.low, B = d[Vt - 16], b = B.high, E = B.low;
|
|
1329
|
+
ie = (ie = (ie = Kr + T + ((Ve = fe + C) >>> 0 < fe >>> 0 ? 1 : 0)) + pe + ((Ve += Ee) >>> 0 < Ee >>> 0 ? 1 : 0)) + b + ((Ve += E) >>> 0 < E >>> 0 ? 1 : 0), ce.high = ie, ce.low = Ve;
|
|
1330
1330
|
}
|
|
1331
1331
|
var $, D = Zt & oe ^ ~Zt & Yt, W = Lt & Qe ^ ~Lt & ee, q = H & Rt ^ H & yt ^ Rt & yt, Y = X & dt ^ X & Ft ^ dt & Ft, gt = (H >>> 28 | X << 4) ^ (H << 30 | X >>> 2) ^ (H << 25 | X >>> 7), G = (X >>> 28 | H << 4) ^ (X << 30 | H >>> 2) ^ (X << 25 | H >>> 7), ct = (Zt >>> 14 | Lt << 18) ^ (Zt >>> 18 | Lt << 14) ^ (Zt << 23 | Lt >>> 9), wt = (Lt >>> 14 | Zt << 18) ^ (Lt >>> 18 | Zt << 14) ^ (Lt << 23 | Zt >>> 9), nt = c[Vt], ht = nt.high, xt = nt.low, ot = Pr + ct + (($ = ae + wt) >>> 0 < ae >>> 0 ? 1 : 0), ut = G + Y;
|
|
1332
1332
|
Pr = Yt, ae = ee, Yt = oe, ee = Qe, oe = Zt, Qe = Lt, Zt = mt + (ot = (ot = (ot = ot + D + (($ += W) >>> 0 < W >>> 0 ? 1 : 0)) + ht + (($ += xt) >>> 0 < xt >>> 0 ? 1 : 0)) + ie + (($ += Ve) >>> 0 < Ve >>> 0 ? 1 : 0)) + ((Lt = Et + $ | 0) >>> 0 < Et >>> 0 ? 1 : 0) | 0, mt = yt, Et = Ft, yt = Rt, Ft = dt, Rt = H, dt = X, H = ot + (gt + q + (ut >>> 0 < G >>> 0 ? 1 : 0)) + ((X = $ + ut | 0) >>> 0 < $ >>> 0 ? 1 : 0) | 0;
|
|
1333
1333
|
}
|
|
1334
|
-
z = A.low = z + X, A.high = L + H + (z >>> 0 < X >>> 0 ? 1 : 0), l = I.low = l + dt, I.high = f + Rt + (l >>> 0 < dt >>> 0 ? 1 : 0), m = _.low = m + Ft, _.high = g + yt + (m >>> 0 < Ft >>> 0 ? 1 : 0), y = M.low = y + Et, M.high = u + mt + (y >>> 0 < Et >>> 0 ? 1 : 0), P = S.low = P + Lt, S.high = x + Zt + (P >>> 0 < Lt >>> 0 ? 1 : 0), j =
|
|
1334
|
+
z = A.low = z + X, A.high = L + H + (z >>> 0 < X >>> 0 ? 1 : 0), l = I.low = l + dt, I.high = f + Rt + (l >>> 0 < dt >>> 0 ? 1 : 0), m = _.low = m + Ft, _.high = g + yt + (m >>> 0 < Ft >>> 0 ? 1 : 0), y = M.low = y + Et, M.high = u + mt + (y >>> 0 < Et >>> 0 ? 1 : 0), P = S.low = P + Lt, S.high = x + Zt + (P >>> 0 < Lt >>> 0 ? 1 : 0), j = O.low = j + Qe, O.high = R + oe + (j >>> 0 < Qe >>> 0 ? 1 : 0), U = k.low = U + ee, k.high = Z + Yt + (U >>> 0 < ee >>> 0 ? 1 : 0), F = N.low = F + ae, N.high = V + Pr + (F >>> 0 < ae >>> 0 ? 1 : 0);
|
|
1335
1335
|
}, _doFinalize: function() {
|
|
1336
1336
|
var p = this._data, w = p.words, v = 8 * this._nDataBytes, A = 8 * p.sigBytes;
|
|
1337
1337
|
return w[A >>> 5] |= 128 << 24 - A % 32, w[30 + (A + 128 >>> 10 << 5)] = Math.floor(v / 4294967296), w[31 + (A + 128 >>> 10 << 5)] = v, p.sigBytes = 4 * w.length, this._process(), this._hash.toX32();
|
|
@@ -1356,14 +1356,14 @@ function Uf() {
|
|
|
1356
1356
|
}
|
|
1357
1357
|
for (v = 0; v < 5; v++) for (A = 0; A < 5; A++) d[v + 5 * A] = A + (2 * v + 3 * A) % 5 * 5;
|
|
1358
1358
|
for (var M = 1, S = 0; S < 24; S++) {
|
|
1359
|
-
for (var
|
|
1359
|
+
for (var O = 0, k = 0, N = 0; N < 7; N++) {
|
|
1360
1360
|
if (1 & M) {
|
|
1361
1361
|
var L = (1 << N) - 1;
|
|
1362
|
-
L < 32 ? k ^= 1 << L :
|
|
1362
|
+
L < 32 ? k ^= 1 << L : O ^= 1 << L - 32;
|
|
1363
1363
|
}
|
|
1364
1364
|
128 & M ? M = M << 1 ^ 113 : M <<= 1;
|
|
1365
1365
|
}
|
|
1366
|
-
h[S] = a.create(
|
|
1366
|
+
h[S] = a.create(O, k);
|
|
1367
1367
|
}
|
|
1368
1368
|
})();
|
|
1369
1369
|
var p = [];
|
|
@@ -1375,8 +1375,8 @@ function Uf() {
|
|
|
1375
1375
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
1376
1376
|
}, _doProcessBlock: function(v, A) {
|
|
1377
1377
|
for (var I = this._state, _ = this.blockSize / 2, M = 0; M < _; M++) {
|
|
1378
|
-
var S = v[A + 2 * M],
|
|
1379
|
-
S = 16711935 & (S << 8 | S >>> 24) | 4278255360 & (S << 24 | S >>> 8),
|
|
1378
|
+
var S = v[A + 2 * M], O = v[A + 2 * M + 1];
|
|
1379
|
+
S = 16711935 & (S << 8 | S >>> 24) | 4278255360 & (S << 24 | S >>> 8), O = 16711935 & (O << 8 | O >>> 24) | 4278255360 & (O << 24 | O >>> 8), (F = I[M]).high ^= O, F.low ^= S;
|
|
1380
1380
|
}
|
|
1381
1381
|
for (var k = 0; k < 24; k++) {
|
|
1382
1382
|
for (var N = 0; N < 5; N++) {
|
|
@@ -1408,7 +1408,7 @@ function Uf() {
|
|
|
1408
1408
|
this._nDataBytes;
|
|
1409
1409
|
var I = 8 * v.sigBytes, _ = 32 * this.blockSize;
|
|
1410
1410
|
A[I >>> 5] |= 1 << 24 - I % 32, A[(t.ceil((I + 1) / _) * _ >>> 5) - 1] |= 128, v.sigBytes = 4 * A.length, this._process();
|
|
1411
|
-
for (var M = this._state, S = this.cfg.outputLength / 8,
|
|
1411
|
+
for (var M = this._state, S = this.cfg.outputLength / 8, O = S / 8, k = [], N = 0; N < O; N++) {
|
|
1412
1412
|
var L = M[N], z = L.high, f = L.low;
|
|
1413
1413
|
z = 16711935 & (z << 8 | z >>> 24) | 4278255360 & (z << 24 | z >>> 8), f = 16711935 & (f << 8 | f >>> 24) | 4278255360 & (f << 24 | f >>> 8), k.push(f), k.push(z);
|
|
1414
1414
|
}
|
|
@@ -1465,7 +1465,7 @@ function tn() {
|
|
|
1465
1465
|
}(Jt(), r1(), xo())), Ac.exports;
|
|
1466
1466
|
}
|
|
1467
1467
|
var Sc, Ec = { exports: {} };
|
|
1468
|
-
function
|
|
1468
|
+
function Ce() {
|
|
1469
1469
|
return Sc || (Sc = 1, Ec.exports = function(e) {
|
|
1470
1470
|
e.lib.Cipher || function(t) {
|
|
1471
1471
|
var r = e, n = r.lib, i = n.Base, s = n.WordArray, a = n.BufferedBlockAlgorithm, o = r.enc;
|
|
@@ -1484,7 +1484,7 @@ function Oe() {
|
|
|
1484
1484
|
return k && this._append(k), this._doFinalize();
|
|
1485
1485
|
}, keySize: 4, ivSize: 4, _ENC_XFORM_MODE: 1, _DEC_XFORM_MODE: 2, _createHelper: /* @__PURE__ */ function() {
|
|
1486
1486
|
function k(N) {
|
|
1487
|
-
return typeof N == "string" ?
|
|
1487
|
+
return typeof N == "string" ? O : M;
|
|
1488
1488
|
}
|
|
1489
1489
|
return function(N) {
|
|
1490
1490
|
return { encrypt: function(L, z, f) {
|
|
@@ -1559,7 +1559,7 @@ function Oe() {
|
|
|
1559
1559
|
else var l = d.create({ keySize: N + L }).compute(k, z);
|
|
1560
1560
|
var g = s.create(l.words.slice(N), 4 * L);
|
|
1561
1561
|
return l.sigBytes = 4 * N, I.create({ key: l, iv: g, salt: z });
|
|
1562
|
-
} },
|
|
1562
|
+
} }, O = n.PasswordBasedCipher = M.extend({ cfg: M.cfg.extend({ kdf: S }), encrypt: function(k, N, L, z) {
|
|
1563
1563
|
var f = (z = this.cfg.extend(z)).kdf.execute(L, k.keySize, k.ivSize, z.salt, z.hasher);
|
|
1564
1564
|
z.iv = f.iv;
|
|
1565
1565
|
var l = M.encrypt.call(this, k, N, f.key, z);
|
|
@@ -1590,7 +1590,7 @@ function Hf() {
|
|
|
1590
1590
|
r.call(this, n, i, a, s), this._prevBlock = o;
|
|
1591
1591
|
} }), t;
|
|
1592
1592
|
}(), e.mode.CFB;
|
|
1593
|
-
}(Jt(),
|
|
1593
|
+
}(Jt(), Ce())), Mc.exports;
|
|
1594
1594
|
}
|
|
1595
1595
|
var Ic, Tc = { exports: {} };
|
|
1596
1596
|
function Df() {
|
|
@@ -1603,7 +1603,7 @@ function Df() {
|
|
|
1603
1603
|
for (var h = 0; h < a; h++) n[i + h] ^= d[h];
|
|
1604
1604
|
} }), t.Decryptor = r, t), e.mode.CTR;
|
|
1605
1605
|
var t, r;
|
|
1606
|
-
}(Jt(),
|
|
1606
|
+
}(Jt(), Ce())), Tc.exports;
|
|
1607
1607
|
}
|
|
1608
1608
|
var Rc, Nc = { exports: {} };
|
|
1609
1609
|
function Ff() {
|
|
@@ -1635,18 +1635,18 @@ function Ff() {
|
|
|
1635
1635
|
} });
|
|
1636
1636
|
return t.Decryptor = i, t;
|
|
1637
1637
|
}(), e.mode.CTRGladman;
|
|
1638
|
-
}(Jt(),
|
|
1638
|
+
}(Jt(), Ce())), Nc.exports;
|
|
1639
1639
|
}
|
|
1640
|
-
var
|
|
1640
|
+
var Cc, Oc = { exports: {} };
|
|
1641
1641
|
function Zf() {
|
|
1642
|
-
return
|
|
1642
|
+
return Cc || (Cc = 1, Oc.exports = function(e) {
|
|
1643
1643
|
return e.mode.OFB = (t = e.lib.BlockCipherMode.extend(), r = t.Encryptor = t.extend({ processBlock: function(n, i) {
|
|
1644
1644
|
var s = this._cipher, a = s.blockSize, o = this._iv, c = this._keystream;
|
|
1645
1645
|
o && (c = this._keystream = o.slice(0), this._iv = void 0), s.encryptBlock(c, 0);
|
|
1646
1646
|
for (var d = 0; d < a; d++) n[i + d] ^= c[d];
|
|
1647
1647
|
} }), t.Decryptor = r, t), e.mode.OFB;
|
|
1648
1648
|
var t, r;
|
|
1649
|
-
}(Jt(),
|
|
1649
|
+
}(Jt(), Ce())), Oc.exports;
|
|
1650
1650
|
}
|
|
1651
1651
|
var Bc, Vf = { exports: {} }, Pc, Kf = { exports: {} }, Lc, Wf = { exports: {} }, zc, Yf = { exports: {} }, jc, Qf = { exports: {} }, Uc, Jf = { exports: {} }, qc, Xf = { exports: {} }, $c, Gf = { exports: {} }, Hc, Dc = { exports: {} };
|
|
1652
1652
|
function th() {
|
|
@@ -1657,14 +1657,14 @@ function th() {
|
|
|
1657
1657
|
var S = a[M] - 1;
|
|
1658
1658
|
_[M] = I[S >>> 5] >>> 31 - S % 32 & 1;
|
|
1659
1659
|
}
|
|
1660
|
-
for (var
|
|
1661
|
-
var N =
|
|
1660
|
+
for (var O = this._subKeys = [], k = 0; k < 16; k++) {
|
|
1661
|
+
var N = O[k] = [], L = c[k];
|
|
1662
1662
|
for (M = 0; M < 24; M++) N[M / 6 | 0] |= _[(o[M] - 1 + L) % 28] << 31 - M % 6, N[4 + (M / 6 | 0)] |= _[28 + (o[M + 24] - 1 + L) % 28] << 31 - M % 6;
|
|
1663
1663
|
for (N[0] = N[0] << 1 | N[0] >>> 31, M = 1; M < 7; M++) N[M] = N[M] >>> 4 * (M - 1) + 3;
|
|
1664
1664
|
N[7] = N[7] << 5 | N[7] >>> 27;
|
|
1665
1665
|
}
|
|
1666
1666
|
var z = this._invSubKeys = [];
|
|
1667
|
-
for (M = 0; M < 16; M++) z[M] =
|
|
1667
|
+
for (M = 0; M < 16; M++) z[M] = O[15 - M];
|
|
1668
1668
|
}, encryptBlock: function(I, _) {
|
|
1669
1669
|
this._doCryptBlock(I, _, this._subKeys);
|
|
1670
1670
|
}, decryptBlock: function(I, _) {
|
|
@@ -1672,7 +1672,7 @@ function th() {
|
|
|
1672
1672
|
}, _doCryptBlock: function(I, _, M) {
|
|
1673
1673
|
this._lBlock = I[_], this._rBlock = I[_ + 1], w.call(this, 4, 252645135), w.call(this, 16, 65535), v.call(this, 2, 858993459), v.call(this, 8, 16711935), w.call(this, 1, 1431655765);
|
|
1674
1674
|
for (var S = 0; S < 16; S++) {
|
|
1675
|
-
for (var
|
|
1675
|
+
for (var O = M[S], k = this._lBlock, N = this._rBlock, L = 0, z = 0; z < 8; z++) L |= d[z][((N ^ O[z]) & h[z]) >>> 0];
|
|
1676
1676
|
this._lBlock = N, this._rBlock = k ^ L;
|
|
1677
1677
|
}
|
|
1678
1678
|
var f = this._lBlock;
|
|
@@ -1699,7 +1699,7 @@ function th() {
|
|
|
1699
1699
|
}, keySize: 6, ivSize: 2, blockSize: 2 });
|
|
1700
1700
|
t.TripleDES = i._createHelper(A);
|
|
1701
1701
|
}(), e.TripleDES;
|
|
1702
|
-
}(Jt(), pn(), mn(), tn(),
|
|
1702
|
+
}(Jt(), pn(), mn(), tn(), Ce())), Dc.exports;
|
|
1703
1703
|
}
|
|
1704
1704
|
var Fc, eh = { exports: {} }, Zc, rh = { exports: {} }, Vc, nh = { exports: {} }, Kc, Wc = { exports: {} };
|
|
1705
1705
|
function ih() {
|
|
@@ -1709,17 +1709,17 @@ function ih() {
|
|
|
1709
1709
|
const i = 16, s = [608135816, 2242054355, 320440878, 57701188, 2752067618, 698298832, 137296536, 3964562569, 1160258022, 953160567, 3193202383, 887688300, 3232508343, 3380367581, 1065670069, 3041331479, 2450970073, 2306472731], a = [[3509652390, 2564797868, 805139163, 3491422135, 3101798381, 1780907670, 3128725573, 4046225305, 614570311, 3012652279, 134345442, 2240740374, 1667834072, 1901547113, 2757295779, 4103290238, 227898511, 1921955416, 1904987480, 2182433518, 2069144605, 3260701109, 2620446009, 720527379, 3318853667, 677414384, 3393288472, 3101374703, 2390351024, 1614419982, 1822297739, 2954791486, 3608508353, 3174124327, 2024746970, 1432378464, 3864339955, 2857741204, 1464375394, 1676153920, 1439316330, 715854006, 3033291828, 289532110, 2706671279, 2087905683, 3018724369, 1668267050, 732546397, 1947742710, 3462151702, 2609353502, 2950085171, 1814351708, 2050118529, 680887927, 999245976, 1800124847, 3300911131, 1713906067, 1641548236, 4213287313, 1216130144, 1575780402, 4018429277, 3917837745, 3693486850, 3949271944, 596196993, 3549867205, 258830323, 2213823033, 772490370, 2760122372, 1774776394, 2652871518, 566650946, 4142492826, 1728879713, 2882767088, 1783734482, 3629395816, 2517608232, 2874225571, 1861159788, 326777828, 3124490320, 2130389656, 2716951837, 967770486, 1724537150, 2185432712, 2364442137, 1164943284, 2105845187, 998989502, 3765401048, 2244026483, 1075463327, 1455516326, 1322494562, 910128902, 469688178, 1117454909, 936433444, 3490320968, 3675253459, 1240580251, 122909385, 2157517691, 634681816, 4142456567, 3825094682, 3061402683, 2540495037, 79693498, 3249098678, 1084186820, 1583128258, 426386531, 1761308591, 1047286709, 322548459, 995290223, 1845252383, 2603652396, 3431023940, 2942221577, 3202600964, 3727903485, 1712269319, 422464435, 3234572375, 1170764815, 3523960633, 3117677531, 1434042557, 442511882, 3600875718, 1076654713, 1738483198, 4213154764, 2393238008, 3677496056, 1014306527, 4251020053, 793779912, 2902807211, 842905082, 4246964064, 1395751752, 1040244610, 2656851899, 3396308128, 445077038, 3742853595, 3577915638, 679411651, 2892444358, 2354009459, 1767581616, 3150600392, 3791627101, 3102740896, 284835224, 4246832056, 1258075500, 768725851, 2589189241, 3069724005, 3532540348, 1274779536, 3789419226, 2764799539, 1660621633, 3471099624, 4011903706, 913787905, 3497959166, 737222580, 2514213453, 2928710040, 3937242737, 1804850592, 3499020752, 2949064160, 2386320175, 2390070455, 2415321851, 4061277028, 2290661394, 2416832540, 1336762016, 1754252060, 3520065937, 3014181293, 791618072, 3188594551, 3933548030, 2332172193, 3852520463, 3043980520, 413987798, 3465142937, 3030929376, 4245938359, 2093235073, 3534596313, 375366246, 2157278981, 2479649556, 555357303, 3870105701, 2008414854, 3344188149, 4221384143, 3956125452, 2067696032, 3594591187, 2921233993, 2428461, 544322398, 577241275, 1471733935, 610547355, 4027169054, 1432588573, 1507829418, 2025931657, 3646575487, 545086370, 48609733, 2200306550, 1653985193, 298326376, 1316178497, 3007786442, 2064951626, 458293330, 2589141269, 3591329599, 3164325604, 727753846, 2179363840, 146436021, 1461446943, 4069977195, 705550613, 3059967265, 3887724982, 4281599278, 3313849956, 1404054877, 2845806497, 146425753, 1854211946], [1266315497, 3048417604, 3681880366, 3289982499, 290971e4, 1235738493, 2632868024, 2414719590, 3970600049, 1771706367, 1449415276, 3266420449, 422970021, 1963543593, 2690192192, 3826793022, 1062508698, 1531092325, 1804592342, 2583117782, 2714934279, 4024971509, 1294809318, 4028980673, 1289560198, 2221992742, 1669523910, 35572830, 157838143, 1052438473, 1016535060, 1802137761, 1753167236, 1386275462, 3080475397, 2857371447, 1040679964, 2145300060, 2390574316, 1461121720, 2956646967, 4031777805, 4028374788, 33600511, 2920084762, 1018524850, 629373528, 3691585981, 3515945977, 2091462646, 2486323059, 586499841, 988145025, 935516892, 3367335476, 2599673255, 2839830854, 265290510, 3972581182, 2759138881, 3795373465, 1005194799, 847297441, 406762289, 1314163512, 1332590856, 1866599683, 4127851711, 750260880, 613907577, 1450815602, 3165620655, 3734664991, 3650291728, 3012275730, 3704569646, 1427272223, 778793252, 1343938022, 2676280711, 2052605720, 1946737175, 3164576444, 3914038668, 3967478842, 3682934266, 1661551462, 3294938066, 4011595847, 840292616, 3712170807, 616741398, 312560963, 711312465, 1351876610, 322626781, 1910503582, 271666773, 2175563734, 1594956187, 70604529, 3617834859, 1007753275, 1495573769, 4069517037, 2549218298, 2663038764, 504708206, 2263041392, 3941167025, 2249088522, 1514023603, 1998579484, 1312622330, 694541497, 2582060303, 2151582166, 1382467621, 776784248, 2618340202, 3323268794, 2497899128, 2784771155, 503983604, 4076293799, 907881277, 423175695, 432175456, 1378068232, 4145222326, 3954048622, 3938656102, 3820766613, 2793130115, 2977904593, 26017576, 3274890735, 3194772133, 1700274565, 1756076034, 4006520079, 3677328699, 720338349, 1533947780, 354530856, 688349552, 3973924725, 1637815568, 332179504, 3949051286, 53804574, 2852348879, 3044236432, 1282449977, 3583942155, 3416972820, 4006381244, 1617046695, 2628476075, 3002303598, 1686838959, 431878346, 2686675385, 1700445008, 1080580658, 1009431731, 832498133, 3223435511, 2605976345, 2271191193, 2516031870, 1648197032, 4164389018, 2548247927, 300782431, 375919233, 238389289, 3353747414, 2531188641, 2019080857, 1475708069, 455242339, 2609103871, 448939670, 3451063019, 1395535956, 2413381860, 1841049896, 1491858159, 885456874, 4264095073, 4001119347, 1565136089, 3898914787, 1108368660, 540939232, 1173283510, 2745871338, 3681308437, 4207628240, 3343053890, 4016749493, 1699691293, 1103962373, 3625875870, 2256883143, 3830138730, 1031889488, 3479347698, 1535977030, 4236805024, 3251091107, 2132092099, 1774941330, 1199868427, 1452454533, 157007616, 2904115357, 342012276, 595725824, 1480756522, 206960106, 497939518, 591360097, 863170706, 2375253569, 3596610801, 1814182875, 2094937945, 3421402208, 1082520231, 3463918190, 2785509508, 435703966, 3908032597, 1641649973, 2842273706, 3305899714, 1510255612, 2148256476, 2655287854, 3276092548, 4258621189, 236887753, 3681803219, 274041037, 1734335097, 3815195456, 3317970021, 1899903192, 1026095262, 4050517792, 356393447, 2410691914, 3873677099, 3682840055], [3913112168, 2491498743, 4132185628, 2489919796, 1091903735, 1979897079, 3170134830, 3567386728, 3557303409, 857797738, 1136121015, 1342202287, 507115054, 2535736646, 337727348, 3213592640, 1301675037, 2528481711, 1895095763, 1721773893, 3216771564, 62756741, 2142006736, 835421444, 2531993523, 1442658625, 3659876326, 2882144922, 676362277, 1392781812, 170690266, 3921047035, 1759253602, 3611846912, 1745797284, 664899054, 1329594018, 3901205900, 3045908486, 2062866102, 2865634940, 3543621612, 3464012697, 1080764994, 553557557, 3656615353, 3996768171, 991055499, 499776247, 1265440854, 648242737, 3940784050, 980351604, 3713745714, 1749149687, 3396870395, 4211799374, 3640570775, 1161844396, 3125318951, 1431517754, 545492359, 4268468663, 3499529547, 1437099964, 2702547544, 3433638243, 2581715763, 2787789398, 1060185593, 1593081372, 2418618748, 4260947970, 69676912, 2159744348, 86519011, 2512459080, 3838209314, 1220612927, 3339683548, 133810670, 1090789135, 1078426020, 1569222167, 845107691, 3583754449, 4072456591, 1091646820, 628848692, 1613405280, 3757631651, 526609435, 236106946, 48312990, 2942717905, 3402727701, 1797494240, 859738849, 992217954, 4005476642, 2243076622, 3870952857, 3732016268, 765654824, 3490871365, 2511836413, 1685915746, 3888969200, 1414112111, 2273134842, 3281911079, 4080962846, 172450625, 2569994100, 980381355, 4109958455, 2819808352, 2716589560, 2568741196, 3681446669, 3329971472, 1835478071, 660984891, 3704678404, 4045999559, 3422617507, 3040415634, 1762651403, 1719377915, 3470491036, 2693910283, 3642056355, 3138596744, 1364962596, 2073328063, 1983633131, 926494387, 3423689081, 2150032023, 4096667949, 1749200295, 3328846651, 309677260, 2016342300, 1779581495, 3079819751, 111262694, 1274766160, 443224088, 298511866, 1025883608, 3806446537, 1145181785, 168956806, 3641502830, 3584813610, 1689216846, 3666258015, 3200248200, 1692713982, 2646376535, 4042768518, 1618508792, 1610833997, 3523052358, 4130873264, 2001055236, 3610705100, 2202168115, 4028541809, 2961195399, 1006657119, 2006996926, 3186142756, 1430667929, 3210227297, 1314452623, 4074634658, 4101304120, 2273951170, 1399257539, 3367210612, 3027628629, 1190975929, 2062231137, 2333990788, 2221543033, 2438960610, 1181637006, 548689776, 2362791313, 3372408396, 3104550113, 3145860560, 296247880, 1970579870, 3078560182, 3769228297, 1714227617, 3291629107, 3898220290, 166772364, 1251581989, 493813264, 448347421, 195405023, 2709975567, 677966185, 3703036547, 1463355134, 2715995803, 1338867538, 1343315457, 2802222074, 2684532164, 233230375, 2599980071, 2000651841, 3277868038, 1638401717, 4028070440, 3237316320, 6314154, 819756386, 300326615, 590932579, 1405279636, 3267499572, 3150704214, 2428286686, 3959192993, 3461946742, 1862657033, 1266418056, 963775037, 2089974820, 2263052895, 1917689273, 448879540, 3550394620, 3981727096, 150775221, 3627908307, 1303187396, 508620638, 2975983352, 2726630617, 1817252668, 1876281319, 1457606340, 908771278, 3720792119, 3617206836, 2455994898, 1729034894, 1080033504], [976866871, 3556439503, 2881648439, 1522871579, 1555064734, 1336096578, 3548522304, 2579274686, 3574697629, 3205460757, 3593280638, 3338716283, 3079412587, 564236357, 2993598910, 1781952180, 1464380207, 3163844217, 3332601554, 1699332808, 1393555694, 1183702653, 3581086237, 1288719814, 691649499, 2847557200, 2895455976, 3193889540, 2717570544, 1781354906, 1676643554, 2592534050, 3230253752, 1126444790, 2770207658, 2633158820, 2210423226, 2615765581, 2414155088, 3127139286, 673620729, 2805611233, 1269405062, 4015350505, 3341807571, 4149409754, 1057255273, 2012875353, 2162469141, 2276492801, 2601117357, 993977747, 3918593370, 2654263191, 753973209, 36408145, 2530585658, 25011837, 3520020182, 2088578344, 530523599, 2918365339, 1524020338, 1518925132, 3760827505, 3759777254, 1202760957, 3985898139, 3906192525, 674977740, 4174734889, 2031300136, 2019492241, 3983892565, 4153806404, 3822280332, 352677332, 2297720250, 60907813, 90501309, 3286998549, 1016092578, 2535922412, 2839152426, 457141659, 509813237, 4120667899, 652014361, 1966332200, 2975202805, 55981186, 2327461051, 676427537, 3255491064, 2882294119, 3433927263, 1307055953, 942726286, 933058658, 2468411793, 3933900994, 4215176142, 1361170020, 2001714738, 2830558078, 3274259782, 1222529897, 1679025792, 2729314320, 3714953764, 1770335741, 151462246, 3013232138, 1682292957, 1483529935, 471910574, 1539241949, 458788160, 3436315007, 1807016891, 3718408830, 978976581, 1043663428, 3165965781, 1927990952, 4200891579, 2372276910, 3208408903, 3533431907, 1412390302, 2931980059, 4132332400, 1947078029, 3881505623, 4168226417, 2941484381, 1077988104, 1320477388, 886195818, 18198404, 3786409e3, 2509781533, 112762804, 3463356488, 1866414978, 891333506, 18488651, 661792760, 1628790961, 3885187036, 3141171499, 876946877, 2693282273, 1372485963, 791857591, 2686433993, 3759982718, 3167212022, 3472953795, 2716379847, 445679433, 3561995674, 3504004811, 3574258232, 54117162, 3331405415, 2381918588, 3769707343, 4154350007, 1140177722, 4074052095, 668550556, 3214352940, 367459370, 261225585, 2610173221, 4209349473, 3468074219, 3265815641, 314222801, 3066103646, 3808782860, 282218597, 3406013506, 3773591054, 379116347, 1285071038, 846784868, 2669647154, 3771962079, 3550491691, 2305946142, 453669953, 1268987020, 3317592352, 3279303384, 3744833421, 2610507566, 3859509063, 266596637, 3847019092, 517658769, 3462560207, 3443424879, 370717030, 4247526661, 2224018117, 4143653529, 4112773975, 2788324899, 2477274417, 1456262402, 2901442914, 1517677493, 1846949527, 2295493580, 3734397586, 2176403920, 1280348187, 1908823572, 3871786941, 846861322, 1172426758, 3287448474, 3383383037, 1655181056, 3139813346, 901632758, 1897031941, 2986607138, 3066810236, 3447102507, 1393639104, 373351379, 950779232, 625454576, 3124240540, 4148612726, 2007998917, 544563296, 2244738638, 2330496472, 2058025392, 1291430526, 424198748, 50039436, 29584100, 3605783033, 2429876329, 2791104160, 1057563949, 3255363231, 3075367218, 3463963227, 1469046755, 985887462]];
|
|
1710
1710
|
var o = { pbox: [], sbox: [] };
|
|
1711
1711
|
function c(v, A) {
|
|
1712
|
-
let I = A >> 24 & 255, _ = A >> 16 & 255, M = A >> 8 & 255, S = 255 & A,
|
|
1713
|
-
return
|
|
1712
|
+
let I = A >> 24 & 255, _ = A >> 16 & 255, M = A >> 8 & 255, S = 255 & A, O = v.sbox[0][I] + v.sbox[1][_];
|
|
1713
|
+
return O ^= v.sbox[2][M], O += v.sbox[3][S], O;
|
|
1714
1714
|
}
|
|
1715
1715
|
function d(v, A, I) {
|
|
1716
1716
|
let _, M = A, S = I;
|
|
1717
|
-
for (let
|
|
1717
|
+
for (let O = 0; O < i; ++O) M ^= v.pbox[O], S = c(v, M) ^ S, _ = M, M = S, S = _;
|
|
1718
1718
|
return _ = M, M = S, S = _, S ^= v.pbox[i], M ^= v.pbox[i + 1], { left: M, right: S };
|
|
1719
1719
|
}
|
|
1720
1720
|
function h(v, A, I) {
|
|
1721
1721
|
let _, M = A, S = I;
|
|
1722
|
-
for (let
|
|
1722
|
+
for (let O = i + 1; O > 1; --O) M ^= v.pbox[O], S = c(v, M) ^ S, _ = M, M = S, S = _;
|
|
1723
1723
|
return _ = M, M = S, S = _, S ^= v.pbox[1], M ^= v.pbox[0], { left: M, right: S };
|
|
1724
1724
|
}
|
|
1725
1725
|
function p(v, A, I) {
|
|
@@ -1729,9 +1729,9 @@ function ih() {
|
|
|
1729
1729
|
}
|
|
1730
1730
|
let _ = 0;
|
|
1731
1731
|
for (let k = 0; k < i + 2; k++) v.pbox[k] = s[k] ^ A[_], _++, _ >= I && (_ = 0);
|
|
1732
|
-
let M = 0, S = 0,
|
|
1733
|
-
for (let k = 0; k < i + 2; k += 2)
|
|
1734
|
-
for (let k = 0; k < 4; k++) for (let N = 0; N < 256; N += 2)
|
|
1732
|
+
let M = 0, S = 0, O = 0;
|
|
1733
|
+
for (let k = 0; k < i + 2; k += 2) O = d(v, M, S), M = O.left, S = O.right, v.pbox[k] = M, v.pbox[k + 1] = S;
|
|
1734
|
+
for (let k = 0; k < 4; k++) for (let N = 0; N < 256; N += 2) O = d(v, M, S), M = O.left, S = O.right, v.sbox[k][N] = M, v.sbox[k][N + 1] = S;
|
|
1735
1735
|
return !0;
|
|
1736
1736
|
}
|
|
1737
1737
|
var w = n.Blowfish = r.extend({ _doReset: function() {
|
|
@@ -1748,7 +1748,7 @@ function ih() {
|
|
|
1748
1748
|
}, blockSize: 2, keySize: 4, ivSize: 2 });
|
|
1749
1749
|
t.Blowfish = r._createHelper(w);
|
|
1750
1750
|
}(), e.Blowfish;
|
|
1751
|
-
}(Jt(), pn(), mn(), tn(),
|
|
1751
|
+
}(Jt(), pn(), mn(), tn(), Ce())), Wc.exports;
|
|
1752
1752
|
}
|
|
1753
1753
|
t1.exports = /* @__PURE__ */ function(e) {
|
|
1754
1754
|
return e;
|
|
@@ -1786,43 +1786,43 @@ t1.exports = /* @__PURE__ */ function(e) {
|
|
|
1786
1786
|
return function() {
|
|
1787
1787
|
var t = e, r = t.lib, n = r.WordArray, i = r.Hasher, s = t.algo, a = n.create([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]), o = n.create([5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]), c = n.create([11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6]), d = n.create([8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]), h = n.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), p = n.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), w = s.RIPEMD160 = i.extend({ _doReset: function() {
|
|
1788
1788
|
this._hash = n.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
1789
|
-
}, _doProcessBlock: function(
|
|
1789
|
+
}, _doProcessBlock: function(O, k) {
|
|
1790
1790
|
for (var N = 0; N < 16; N++) {
|
|
1791
|
-
var L = k + N, z =
|
|
1792
|
-
|
|
1791
|
+
var L = k + N, z = O[L];
|
|
1792
|
+
O[L] = 16711935 & (z << 8 | z >>> 24) | 4278255360 & (z << 24 | z >>> 8);
|
|
1793
1793
|
}
|
|
1794
1794
|
var f, l, g, m, u, y, x, P, R, j, Z, U = this._hash.words, V = h.words, F = p.words, H = a.words, X = o.words, Rt = c.words, dt = d.words;
|
|
1795
|
-
for (y = f = U[0], x = l = U[1], P = g = U[2], R = m = U[3], j = u = U[4], N = 0; N < 80; N += 1) Z = f +
|
|
1795
|
+
for (y = f = U[0], x = l = U[1], P = g = U[2], R = m = U[3], j = u = U[4], N = 0; N < 80; N += 1) Z = f + O[k + H[N]] | 0, Z += N < 16 ? v(l, g, m) + V[0] : N < 32 ? A(l, g, m) + V[1] : N < 48 ? I(l, g, m) + V[2] : N < 64 ? _(l, g, m) + V[3] : M(l, g, m) + V[4], Z = (Z = S(Z |= 0, Rt[N])) + u | 0, f = u, u = m, m = S(g, 10), g = l, l = Z, Z = y + O[k + X[N]] | 0, Z += N < 16 ? M(x, P, R) + F[0] : N < 32 ? _(x, P, R) + F[1] : N < 48 ? I(x, P, R) + F[2] : N < 64 ? A(x, P, R) + F[3] : v(x, P, R) + F[4], Z = (Z = S(Z |= 0, dt[N])) + j | 0, y = j, j = R, R = S(P, 10), P = x, x = Z;
|
|
1796
1796
|
Z = U[1] + g + R | 0, U[1] = U[2] + m + j | 0, U[2] = U[3] + u + y | 0, U[3] = U[4] + f + x | 0, U[4] = U[0] + l + P | 0, U[0] = Z;
|
|
1797
1797
|
}, _doFinalize: function() {
|
|
1798
|
-
var
|
|
1799
|
-
k[L >>> 5] |= 128 << 24 - L % 32, k[14 + (L + 64 >>> 9 << 4)] = 16711935 & (N << 8 | N >>> 24) | 4278255360 & (N << 24 | N >>> 8),
|
|
1798
|
+
var O = this._data, k = O.words, N = 8 * this._nDataBytes, L = 8 * O.sigBytes;
|
|
1799
|
+
k[L >>> 5] |= 128 << 24 - L % 32, k[14 + (L + 64 >>> 9 << 4)] = 16711935 & (N << 8 | N >>> 24) | 4278255360 & (N << 24 | N >>> 8), O.sigBytes = 4 * (k.length + 1), this._process();
|
|
1800
1800
|
for (var z = this._hash, f = z.words, l = 0; l < 5; l++) {
|
|
1801
1801
|
var g = f[l];
|
|
1802
1802
|
f[l] = 16711935 & (g << 8 | g >>> 24) | 4278255360 & (g << 24 | g >>> 8);
|
|
1803
1803
|
}
|
|
1804
1804
|
return z;
|
|
1805
1805
|
}, clone: function() {
|
|
1806
|
-
var
|
|
1807
|
-
return
|
|
1806
|
+
var O = i.clone.call(this);
|
|
1807
|
+
return O._hash = this._hash.clone(), O;
|
|
1808
1808
|
} });
|
|
1809
|
-
function v(
|
|
1810
|
-
return
|
|
1809
|
+
function v(O, k, N) {
|
|
1810
|
+
return O ^ k ^ N;
|
|
1811
1811
|
}
|
|
1812
|
-
function A(
|
|
1813
|
-
return
|
|
1812
|
+
function A(O, k, N) {
|
|
1813
|
+
return O & k | ~O & N;
|
|
1814
1814
|
}
|
|
1815
|
-
function I(
|
|
1816
|
-
return (
|
|
1815
|
+
function I(O, k, N) {
|
|
1816
|
+
return (O | ~k) ^ N;
|
|
1817
1817
|
}
|
|
1818
|
-
function _(
|
|
1819
|
-
return
|
|
1818
|
+
function _(O, k, N) {
|
|
1819
|
+
return O & N | k & ~N;
|
|
1820
1820
|
}
|
|
1821
|
-
function M(
|
|
1822
|
-
return
|
|
1821
|
+
function M(O, k, N) {
|
|
1822
|
+
return O ^ (k | ~N);
|
|
1823
1823
|
}
|
|
1824
|
-
function S(
|
|
1825
|
-
return
|
|
1824
|
+
function S(O, k) {
|
|
1825
|
+
return O << k | O >>> 32 - k;
|
|
1826
1826
|
}
|
|
1827
1827
|
t.RIPEMD160 = i._createHelper(w), t.HmacRIPEMD160 = i._createHmacHelper(w);
|
|
1828
1828
|
}(), e.RIPEMD160;
|
|
@@ -1832,13 +1832,13 @@ t1.exports = /* @__PURE__ */ function(e) {
|
|
|
1832
1832
|
this.cfg = this.cfg.extend(d);
|
|
1833
1833
|
}, compute: function(d, h) {
|
|
1834
1834
|
for (var p = this.cfg, w = o.create(p.hasher, d), v = i.create(), A = i.create([1]), I = v.words, _ = A.words, M = p.keySize, S = p.iterations; I.length < M; ) {
|
|
1835
|
-
var
|
|
1835
|
+
var O = w.update(h).finalize(A);
|
|
1836
1836
|
w.reset();
|
|
1837
|
-
for (var k =
|
|
1837
|
+
for (var k = O.words, N = k.length, L = O, z = 1; z < S; z++) {
|
|
1838
1838
|
L = w.finalize(L), w.reset();
|
|
1839
1839
|
for (var f = L.words, l = 0; l < N; l++) k[l] ^= f[l];
|
|
1840
1840
|
}
|
|
1841
|
-
v.concat(
|
|
1841
|
+
v.concat(O), _[0]++;
|
|
1842
1842
|
}
|
|
1843
1843
|
return v.sigBytes = 4 * M, v;
|
|
1844
1844
|
} });
|
|
@@ -1846,14 +1846,14 @@ t1.exports = /* @__PURE__ */ function(e) {
|
|
|
1846
1846
|
return c.create(p).compute(d, h);
|
|
1847
1847
|
};
|
|
1848
1848
|
}(), e.PBKDF2;
|
|
1849
|
-
}(Jt(), Ws(), xo())), tn(),
|
|
1849
|
+
}(Jt(), Ws(), xo())), tn(), Ce(), Hf(), Df(), Ff(), Zf(), Bc || (Bc = 1, Vf.exports = function(e) {
|
|
1850
1850
|
return e.mode.ECB = ((t = e.lib.BlockCipherMode.extend()).Encryptor = t.extend({ processBlock: function(r, n) {
|
|
1851
1851
|
this._cipher.encryptBlock(r, n);
|
|
1852
1852
|
} }), t.Decryptor = t.extend({ processBlock: function(r, n) {
|
|
1853
1853
|
this._cipher.decryptBlock(r, n);
|
|
1854
1854
|
} }), t), e.mode.ECB;
|
|
1855
1855
|
var t;
|
|
1856
|
-
}(Jt(),
|
|
1856
|
+
}(Jt(), Ce())), Pc || (Pc = 1, Kf.exports = function(e) {
|
|
1857
1857
|
return e.pad.AnsiX923 = { pad: function(t, r) {
|
|
1858
1858
|
var n = t.sigBytes, i = 4 * r, s = i - n % i, a = n + s - 1;
|
|
1859
1859
|
t.clamp(), t.words[a >>> 2] |= s << 24 - a % 4 * 8, t.sigBytes += s;
|
|
@@ -1861,7 +1861,7 @@ t1.exports = /* @__PURE__ */ function(e) {
|
|
|
1861
1861
|
var r = 255 & t.words[t.sigBytes - 1 >>> 2];
|
|
1862
1862
|
t.sigBytes -= r;
|
|
1863
1863
|
} }, e.pad.Ansix923;
|
|
1864
|
-
}(Jt(),
|
|
1864
|
+
}(Jt(), Ce())), Lc || (Lc = 1, Wf.exports = function(e) {
|
|
1865
1865
|
return e.pad.Iso10126 = { pad: function(t, r) {
|
|
1866
1866
|
var n = 4 * r, i = n - t.sigBytes % n;
|
|
1867
1867
|
t.concat(e.lib.WordArray.random(i - 1)).concat(e.lib.WordArray.create([i << 24], 1));
|
|
@@ -1869,13 +1869,13 @@ t1.exports = /* @__PURE__ */ function(e) {
|
|
|
1869
1869
|
var r = 255 & t.words[t.sigBytes - 1 >>> 2];
|
|
1870
1870
|
t.sigBytes -= r;
|
|
1871
1871
|
} }, e.pad.Iso10126;
|
|
1872
|
-
}(Jt(),
|
|
1872
|
+
}(Jt(), Ce())), zc || (zc = 1, Yf.exports = function(e) {
|
|
1873
1873
|
return e.pad.Iso97971 = { pad: function(t, r) {
|
|
1874
1874
|
t.concat(e.lib.WordArray.create([2147483648], 1)), e.pad.ZeroPadding.pad(t, r);
|
|
1875
1875
|
}, unpad: function(t) {
|
|
1876
1876
|
e.pad.ZeroPadding.unpad(t), t.sigBytes--;
|
|
1877
1877
|
} }, e.pad.Iso97971;
|
|
1878
|
-
}(Jt(),
|
|
1878
|
+
}(Jt(), Ce())), jc || (jc = 1, Qf.exports = function(e) {
|
|
1879
1879
|
return e.pad.ZeroPadding = { pad: function(t, r) {
|
|
1880
1880
|
var n = 4 * r;
|
|
1881
1881
|
t.clamp(), t.sigBytes += n - (t.sigBytes % n || n);
|
|
@@ -1886,11 +1886,11 @@ t1.exports = /* @__PURE__ */ function(e) {
|
|
|
1886
1886
|
break;
|
|
1887
1887
|
}
|
|
1888
1888
|
} }, e.pad.ZeroPadding;
|
|
1889
|
-
}(Jt(),
|
|
1889
|
+
}(Jt(), Ce())), Uc || (Uc = 1, Jf.exports = function(e) {
|
|
1890
1890
|
return e.pad.NoPadding = { pad: function() {
|
|
1891
1891
|
}, unpad: function() {
|
|
1892
1892
|
} }, e.pad.NoPadding;
|
|
1893
|
-
}(Jt(),
|
|
1893
|
+
}(Jt(), Ce())), qc || (qc = 1, Xf.exports = function(e) {
|
|
1894
1894
|
return r = (t = e).lib.CipherParams, n = t.enc.Hex, t.format.Hex = { stringify: function(i) {
|
|
1895
1895
|
return i.ciphertext.toString(n);
|
|
1896
1896
|
}, parse: function(i) {
|
|
@@ -1898,24 +1898,24 @@ t1.exports = /* @__PURE__ */ function(e) {
|
|
|
1898
1898
|
return r.create({ ciphertext: s });
|
|
1899
1899
|
} }, e.format.Hex;
|
|
1900
1900
|
var t, r, n;
|
|
1901
|
-
}(Jt(),
|
|
1901
|
+
}(Jt(), Ce())), $c || ($c = 1, Gf.exports = function(e) {
|
|
1902
1902
|
return function() {
|
|
1903
1903
|
var t = e, r = t.lib.BlockCipher, n = t.algo, i = [], s = [], a = [], o = [], c = [], d = [], h = [], p = [], w = [], v = [];
|
|
1904
1904
|
(function() {
|
|
1905
1905
|
for (var _ = [], M = 0; M < 256; M++) _[M] = M < 128 ? M << 1 : M << 1 ^ 283;
|
|
1906
|
-
var S = 0,
|
|
1906
|
+
var S = 0, O = 0;
|
|
1907
1907
|
for (M = 0; M < 256; M++) {
|
|
1908
|
-
var k =
|
|
1908
|
+
var k = O ^ O << 1 ^ O << 2 ^ O << 3 ^ O << 4;
|
|
1909
1909
|
k = k >>> 8 ^ 255 & k ^ 99, i[S] = k, s[k] = S;
|
|
1910
1910
|
var N = _[S], L = _[N], z = _[L], f = 257 * _[k] ^ 16843008 * k;
|
|
1911
|
-
a[S] = f << 24 | f >>> 8, o[S] = f << 16 | f >>> 16, c[S] = f << 8 | f >>> 24, d[S] = f, f = 16843009 * z ^ 65537 * L ^ 257 * N ^ 16843008 * S, h[k] = f << 24 | f >>> 8, p[k] = f << 16 | f >>> 16, w[k] = f << 8 | f >>> 24, v[k] = f, S ? (S = N ^ _[_[_[z ^ N]]],
|
|
1911
|
+
a[S] = f << 24 | f >>> 8, o[S] = f << 16 | f >>> 16, c[S] = f << 8 | f >>> 24, d[S] = f, f = 16843009 * z ^ 65537 * L ^ 257 * N ^ 16843008 * S, h[k] = f << 24 | f >>> 8, p[k] = f << 16 | f >>> 16, w[k] = f << 8 | f >>> 24, v[k] = f, S ? (S = N ^ _[_[_[z ^ N]]], O ^= _[_[O]]) : S = O = 1;
|
|
1912
1912
|
}
|
|
1913
1913
|
})();
|
|
1914
1914
|
var A = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], I = n.AES = r.extend({ _doReset: function() {
|
|
1915
1915
|
if (!this._nRounds || this._keyPriorReset !== this._key) {
|
|
1916
|
-
for (var _ = this._keyPriorReset = this._key, M = _.words, S = _.sigBytes / 4,
|
|
1917
|
-
for (var L = this._invKeySchedule = [], z = 0; z <
|
|
1918
|
-
if (N =
|
|
1916
|
+
for (var _ = this._keyPriorReset = this._key, M = _.words, S = _.sigBytes / 4, O = 4 * ((this._nRounds = S + 6) + 1), k = this._keySchedule = [], N = 0; N < O; N++) N < S ? k[N] = M[N] : (f = k[N - 1], N % S ? S > 6 && N % S == 4 && (f = i[f >>> 24] << 24 | i[f >>> 16 & 255] << 16 | i[f >>> 8 & 255] << 8 | i[255 & f]) : (f = i[(f = f << 8 | f >>> 24) >>> 24] << 24 | i[f >>> 16 & 255] << 16 | i[f >>> 8 & 255] << 8 | i[255 & f], f ^= A[N / S | 0] << 24), k[N] = k[N - S] ^ f);
|
|
1917
|
+
for (var L = this._invKeySchedule = [], z = 0; z < O; z++) {
|
|
1918
|
+
if (N = O - z, z % 4) var f = k[N];
|
|
1919
1919
|
else f = k[N - 4];
|
|
1920
1920
|
L[z] = z < 4 || N <= 4 ? f : h[i[f >>> 24]] ^ p[i[f >>> 16 & 255]] ^ w[i[f >>> 8 & 255]] ^ v[i[255 & f]];
|
|
1921
1921
|
}
|
|
@@ -1925,16 +1925,16 @@ t1.exports = /* @__PURE__ */ function(e) {
|
|
|
1925
1925
|
}, decryptBlock: function(_, M) {
|
|
1926
1926
|
var S = _[M + 1];
|
|
1927
1927
|
_[M + 1] = _[M + 3], _[M + 3] = S, this._doCryptBlock(_, M, this._invKeySchedule, h, p, w, v, s), S = _[M + 1], _[M + 1] = _[M + 3], _[M + 3] = S;
|
|
1928
|
-
}, _doCryptBlock: function(_, M, S,
|
|
1928
|
+
}, _doCryptBlock: function(_, M, S, O, k, N, L, z) {
|
|
1929
1929
|
for (var f = this._nRounds, l = _[M] ^ S[0], g = _[M + 1] ^ S[1], m = _[M + 2] ^ S[2], u = _[M + 3] ^ S[3], y = 4, x = 1; x < f; x++) {
|
|
1930
|
-
var P =
|
|
1930
|
+
var P = O[l >>> 24] ^ k[g >>> 16 & 255] ^ N[m >>> 8 & 255] ^ L[255 & u] ^ S[y++], R = O[g >>> 24] ^ k[m >>> 16 & 255] ^ N[u >>> 8 & 255] ^ L[255 & l] ^ S[y++], j = O[m >>> 24] ^ k[u >>> 16 & 255] ^ N[l >>> 8 & 255] ^ L[255 & g] ^ S[y++], Z = O[u >>> 24] ^ k[l >>> 16 & 255] ^ N[g >>> 8 & 255] ^ L[255 & m] ^ S[y++];
|
|
1931
1931
|
l = P, g = R, m = j, u = Z;
|
|
1932
1932
|
}
|
|
1933
1933
|
P = (z[l >>> 24] << 24 | z[g >>> 16 & 255] << 16 | z[m >>> 8 & 255] << 8 | z[255 & u]) ^ S[y++], R = (z[g >>> 24] << 24 | z[m >>> 16 & 255] << 16 | z[u >>> 8 & 255] << 8 | z[255 & l]) ^ S[y++], j = (z[m >>> 24] << 24 | z[u >>> 16 & 255] << 16 | z[l >>> 8 & 255] << 8 | z[255 & g]) ^ S[y++], Z = (z[u >>> 24] << 24 | z[l >>> 16 & 255] << 16 | z[g >>> 8 & 255] << 8 | z[255 & m]) ^ S[y++], _[M] = P, _[M + 1] = R, _[M + 2] = j, _[M + 3] = Z;
|
|
1934
1934
|
}, keySize: 8 });
|
|
1935
1935
|
t.AES = r._createHelper(I);
|
|
1936
1936
|
}(), e.AES;
|
|
1937
|
-
}(Jt(), pn(), mn(), tn(),
|
|
1937
|
+
}(Jt(), pn(), mn(), tn(), Ce())), th(), Fc || (Fc = 1, eh.exports = function(e) {
|
|
1938
1938
|
return function() {
|
|
1939
1939
|
var t = e, r = t.lib.StreamCipher, n = t.algo, i = n.RC4 = r.extend({ _doReset: function() {
|
|
1940
1940
|
for (var o = this._key, c = o.words, d = o.sigBytes, h = this._S = [], p = 0; p < 256; p++) h[p] = p;
|
|
@@ -1964,7 +1964,7 @@ t1.exports = /* @__PURE__ */ function(e) {
|
|
|
1964
1964
|
} });
|
|
1965
1965
|
t.RC4Drop = r._createHelper(a);
|
|
1966
1966
|
}(), e.RC4;
|
|
1967
|
-
}(Jt(), pn(), mn(), tn(),
|
|
1967
|
+
}(Jt(), pn(), mn(), tn(), Ce())), Zc || (Zc = 1, rh.exports = function(e) {
|
|
1968
1968
|
return function() {
|
|
1969
1969
|
var t = e, r = t.lib.StreamCipher, n = t.algo, i = [], s = [], a = [], o = n.Rabbit = r.extend({ _doReset: function() {
|
|
1970
1970
|
for (var d = this._key.words, h = this.cfg.iv, p = 0; p < 4; p++) d[p] = 16711935 & (d[p] << 8 | d[p] >>> 24) | 4278255360 & (d[p] << 24 | d[p] >>> 8);
|
|
@@ -1972,8 +1972,8 @@ t1.exports = /* @__PURE__ */ function(e) {
|
|
|
1972
1972
|
for (this._b = 0, p = 0; p < 4; p++) c.call(this);
|
|
1973
1973
|
for (p = 0; p < 8; p++) v[p] ^= w[p + 4 & 7];
|
|
1974
1974
|
if (h) {
|
|
1975
|
-
var A = h.words, I = A[0], _ = A[1], M = 16711935 & (I << 8 | I >>> 24) | 4278255360 & (I << 24 | I >>> 8), S = 16711935 & (_ << 8 | _ >>> 24) | 4278255360 & (_ << 24 | _ >>> 8),
|
|
1976
|
-
for (v[0] ^= M, v[1] ^=
|
|
1975
|
+
var A = h.words, I = A[0], _ = A[1], M = 16711935 & (I << 8 | I >>> 24) | 4278255360 & (I << 24 | I >>> 8), S = 16711935 & (_ << 8 | _ >>> 24) | 4278255360 & (_ << 24 | _ >>> 8), O = M >>> 16 | 4294901760 & S, k = S << 16 | 65535 & M;
|
|
1976
|
+
for (v[0] ^= M, v[1] ^= O, v[2] ^= S, v[3] ^= k, v[4] ^= M, v[5] ^= O, v[6] ^= S, v[7] ^= k, p = 0; p < 4; p++) c.call(this);
|
|
1977
1977
|
}
|
|
1978
1978
|
}, _doProcessBlock: function(d, h) {
|
|
1979
1979
|
var p = this._X;
|
|
@@ -1990,7 +1990,7 @@ t1.exports = /* @__PURE__ */ function(e) {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
t.Rabbit = r._createHelper(o);
|
|
1992
1992
|
}(), e.Rabbit;
|
|
1993
|
-
}(Jt(), pn(), mn(), tn(),
|
|
1993
|
+
}(Jt(), pn(), mn(), tn(), Ce())), Vc || (Vc = 1, nh.exports = function(e) {
|
|
1994
1994
|
return function() {
|
|
1995
1995
|
var t = e, r = t.lib.StreamCipher, n = t.algo, i = [], s = [], a = [], o = n.RabbitLegacy = r.extend({ _doReset: function() {
|
|
1996
1996
|
var d = this._key.words, h = this.cfg.iv, p = this._X = [d[0], d[3] << 16 | d[2] >>> 16, d[1], d[0] << 16 | d[3] >>> 16, d[2], d[1] << 16 | d[0] >>> 16, d[3], d[2] << 16 | d[1] >>> 16], w = this._C = [d[2] << 16 | d[2] >>> 16, 4294901760 & d[0] | 65535 & d[1], d[3] << 16 | d[3] >>> 16, 4294901760 & d[1] | 65535 & d[2], d[0] << 16 | d[0] >>> 16, 4294901760 & d[2] | 65535 & d[3], d[1] << 16 | d[1] >>> 16, 4294901760 & d[3] | 65535 & d[0]];
|
|
@@ -1998,8 +1998,8 @@ t1.exports = /* @__PURE__ */ function(e) {
|
|
|
1998
1998
|
for (var v = 0; v < 4; v++) c.call(this);
|
|
1999
1999
|
for (v = 0; v < 8; v++) w[v] ^= p[v + 4 & 7];
|
|
2000
2000
|
if (h) {
|
|
2001
|
-
var A = h.words, I = A[0], _ = A[1], M = 16711935 & (I << 8 | I >>> 24) | 4278255360 & (I << 24 | I >>> 8), S = 16711935 & (_ << 8 | _ >>> 24) | 4278255360 & (_ << 24 | _ >>> 8),
|
|
2002
|
-
for (w[0] ^= M, w[1] ^=
|
|
2001
|
+
var A = h.words, I = A[0], _ = A[1], M = 16711935 & (I << 8 | I >>> 24) | 4278255360 & (I << 24 | I >>> 8), S = 16711935 & (_ << 8 | _ >>> 24) | 4278255360 & (_ << 24 | _ >>> 8), O = M >>> 16 | 4294901760 & S, k = S << 16 | 65535 & M;
|
|
2002
|
+
for (w[0] ^= M, w[1] ^= O, w[2] ^= S, w[3] ^= k, w[4] ^= M, w[5] ^= O, w[6] ^= S, w[7] ^= k, v = 0; v < 4; v++) c.call(this);
|
|
2003
2003
|
}
|
|
2004
2004
|
}, _doProcessBlock: function(d, h) {
|
|
2005
2005
|
var p = this._X;
|
|
@@ -2016,8 +2016,8 @@ t1.exports = /* @__PURE__ */ function(e) {
|
|
|
2016
2016
|
}
|
|
2017
2017
|
t.RabbitLegacy = r._createHelper(o);
|
|
2018
2018
|
}(), e.RabbitLegacy;
|
|
2019
|
-
}(Jt(), pn(), mn(), tn(),
|
|
2020
|
-
const xe =
|
|
2019
|
+
}(Jt(), pn(), mn(), tn(), Ce())), ih());
|
|
2020
|
+
const xe = ni(t1.exports);
|
|
2021
2021
|
var n1 = {};
|
|
2022
2022
|
const sh = "6.6.1";
|
|
2023
2023
|
var rr = {}, i1 = { exports: {} };
|
|
@@ -2281,7 +2281,7 @@ var rr = {}, i1 = { exports: {} };
|
|
|
2281
2281
|
return this.clone().isub(f);
|
|
2282
2282
|
};
|
|
2283
2283
|
var v = function(f, l, g) {
|
|
2284
|
-
var m, u, y, x = f.words, P = l.words, R = g.words, j = 0, Z = 0 | x[0], U = 8191 & Z, V = Z >>> 13, F = 0 | x[1], H = 8191 & F, X = F >>> 13, Rt = 0 | x[2], dt = 8191 & Rt, yt = Rt >>> 13, Ft = 0 | x[3], mt = 8191 & Ft, Et = Ft >>> 13, Zt = 0 | x[4], Lt = 8191 & Zt, oe = Zt >>> 13, Qe = 0 | x[5], Yt = 8191 & Qe, ee = Qe >>> 13, Pr = 0 | x[6], ae = 8191 & Pr, Vt = Pr >>> 13, Ve = 0 | x[7], ie = 8191 & Ve, ce = Ve >>> 13, Lr = 0 | x[8], se = 8191 & Lr, de = Lr >>> 13, Kr = 0 | x[9], fe = 8191 & Kr, re = Kr >>> 13, ze = 0 | P[0], ne = 8191 & ze, pe = ze >>> 13, Ee = 0 | P[1], ue = 8191 & Ee, T = Ee >>> 13,
|
|
2284
|
+
var m, u, y, x = f.words, P = l.words, R = g.words, j = 0, Z = 0 | x[0], U = 8191 & Z, V = Z >>> 13, F = 0 | x[1], H = 8191 & F, X = F >>> 13, Rt = 0 | x[2], dt = 8191 & Rt, yt = Rt >>> 13, Ft = 0 | x[3], mt = 8191 & Ft, Et = Ft >>> 13, Zt = 0 | x[4], Lt = 8191 & Zt, oe = Zt >>> 13, Qe = 0 | x[5], Yt = 8191 & Qe, ee = Qe >>> 13, Pr = 0 | x[6], ae = 8191 & Pr, Vt = Pr >>> 13, Ve = 0 | x[7], ie = 8191 & Ve, ce = Ve >>> 13, Lr = 0 | x[8], se = 8191 & Lr, de = Lr >>> 13, Kr = 0 | x[9], fe = 8191 & Kr, re = Kr >>> 13, ze = 0 | P[0], ne = 8191 & ze, pe = ze >>> 13, Ee = 0 | P[1], ue = 8191 & Ee, T = Ee >>> 13, C = 0 | P[2], B = 8191 & C, b = C >>> 13, E = 0 | P[3], $ = 8191 & E, D = E >>> 13, W = 0 | P[4], q = 8191 & W, Y = W >>> 13, gt = 0 | P[5], G = 8191 & gt, ct = gt >>> 13, wt = 0 | P[6], nt = 8191 & wt, ht = wt >>> 13, xt = 0 | P[7], ot = 8191 & xt, ut = xt >>> 13, At = 0 | P[8], it = 8191 & At, lt = At >>> 13, Bt = 0 | P[9], at = 8191 & Bt, K = Bt >>> 13;
|
|
2285
2285
|
g.negative = f.negative ^ l.negative, g.length = 19;
|
|
2286
2286
|
var Q = (j + (m = Math.imul(U, ne)) | 0) + ((8191 & (u = (u = Math.imul(U, pe)) + Math.imul(V, ne) | 0)) << 13) | 0;
|
|
2287
2287
|
j = ((y = Math.imul(V, pe)) + (u >>> 13) | 0) + (Q >>> 26) | 0, Q &= 67108863, m = Math.imul(H, ne), u = (u = Math.imul(H, pe)) + Math.imul(X, ne) | 0, y = Math.imul(X, pe);
|
|
@@ -2293,12 +2293,12 @@ var rr = {}, i1 = { exports: {} };
|
|
|
2293
2293
|
j = ((y = y + Math.imul(V, D) | 0) + (u >>> 13) | 0) + (et >>> 26) | 0, et &= 67108863, m = Math.imul(Lt, ne), u = (u = Math.imul(Lt, pe)) + Math.imul(oe, ne) | 0, y = Math.imul(oe, pe), m = m + Math.imul(mt, ue) | 0, u = (u = u + Math.imul(mt, T) | 0) + Math.imul(Et, ue) | 0, y = y + Math.imul(Et, T) | 0, m = m + Math.imul(dt, B) | 0, u = (u = u + Math.imul(dt, b) | 0) + Math.imul(yt, B) | 0, y = y + Math.imul(yt, b) | 0, m = m + Math.imul(H, $) | 0, u = (u = u + Math.imul(H, D) | 0) + Math.imul(X, $) | 0, y = y + Math.imul(X, D) | 0;
|
|
2294
2294
|
var rt = (j + (m = m + Math.imul(U, q) | 0) | 0) + ((8191 & (u = (u = u + Math.imul(U, Y) | 0) + Math.imul(V, q) | 0)) << 13) | 0;
|
|
2295
2295
|
j = ((y = y + Math.imul(V, Y) | 0) + (u >>> 13) | 0) + (rt >>> 26) | 0, rt &= 67108863, m = Math.imul(Yt, ne), u = (u = Math.imul(Yt, pe)) + Math.imul(ee, ne) | 0, y = Math.imul(ee, pe), m = m + Math.imul(Lt, ue) | 0, u = (u = u + Math.imul(Lt, T) | 0) + Math.imul(oe, ue) | 0, y = y + Math.imul(oe, T) | 0, m = m + Math.imul(mt, B) | 0, u = (u = u + Math.imul(mt, b) | 0) + Math.imul(Et, B) | 0, y = y + Math.imul(Et, b) | 0, m = m + Math.imul(dt, $) | 0, u = (u = u + Math.imul(dt, D) | 0) + Math.imul(yt, $) | 0, y = y + Math.imul(yt, D) | 0, m = m + Math.imul(H, q) | 0, u = (u = u + Math.imul(H, Y) | 0) + Math.imul(X, q) | 0, y = y + Math.imul(X, Y) | 0;
|
|
2296
|
-
var
|
|
2297
|
-
j = ((y = y + Math.imul(V, ct) | 0) + (u >>> 13) | 0) + (
|
|
2296
|
+
var Ot = (j + (m = m + Math.imul(U, G) | 0) | 0) + ((8191 & (u = (u = u + Math.imul(U, ct) | 0) + Math.imul(V, G) | 0)) << 13) | 0;
|
|
2297
|
+
j = ((y = y + Math.imul(V, ct) | 0) + (u >>> 13) | 0) + (Ot >>> 26) | 0, Ot &= 67108863, m = Math.imul(ae, ne), u = (u = Math.imul(ae, pe)) + Math.imul(Vt, ne) | 0, y = Math.imul(Vt, pe), m = m + Math.imul(Yt, ue) | 0, u = (u = u + Math.imul(Yt, T) | 0) + Math.imul(ee, ue) | 0, y = y + Math.imul(ee, T) | 0, m = m + Math.imul(Lt, B) | 0, u = (u = u + Math.imul(Lt, b) | 0) + Math.imul(oe, B) | 0, y = y + Math.imul(oe, b) | 0, m = m + Math.imul(mt, $) | 0, u = (u = u + Math.imul(mt, D) | 0) + Math.imul(Et, $) | 0, y = y + Math.imul(Et, D) | 0, m = m + Math.imul(dt, q) | 0, u = (u = u + Math.imul(dt, Y) | 0) + Math.imul(yt, q) | 0, y = y + Math.imul(yt, Y) | 0, m = m + Math.imul(H, G) | 0, u = (u = u + Math.imul(H, ct) | 0) + Math.imul(X, G) | 0, y = y + Math.imul(X, ct) | 0;
|
|
2298
2298
|
var zt = (j + (m = m + Math.imul(U, nt) | 0) | 0) + ((8191 & (u = (u = u + Math.imul(U, ht) | 0) + Math.imul(V, nt) | 0)) << 13) | 0;
|
|
2299
2299
|
j = ((y = y + Math.imul(V, ht) | 0) + (u >>> 13) | 0) + (zt >>> 26) | 0, zt &= 67108863, m = Math.imul(ie, ne), u = (u = Math.imul(ie, pe)) + Math.imul(ce, ne) | 0, y = Math.imul(ce, pe), m = m + Math.imul(ae, ue) | 0, u = (u = u + Math.imul(ae, T) | 0) + Math.imul(Vt, ue) | 0, y = y + Math.imul(Vt, T) | 0, m = m + Math.imul(Yt, B) | 0, u = (u = u + Math.imul(Yt, b) | 0) + Math.imul(ee, B) | 0, y = y + Math.imul(ee, b) | 0, m = m + Math.imul(Lt, $) | 0, u = (u = u + Math.imul(Lt, D) | 0) + Math.imul(oe, $) | 0, y = y + Math.imul(oe, D) | 0, m = m + Math.imul(mt, q) | 0, u = (u = u + Math.imul(mt, Y) | 0) + Math.imul(Et, q) | 0, y = y + Math.imul(Et, Y) | 0, m = m + Math.imul(dt, G) | 0, u = (u = u + Math.imul(dt, ct) | 0) + Math.imul(yt, G) | 0, y = y + Math.imul(yt, ct) | 0, m = m + Math.imul(H, nt) | 0, u = (u = u + Math.imul(H, ht) | 0) + Math.imul(X, nt) | 0, y = y + Math.imul(X, ht) | 0;
|
|
2300
|
-
var
|
|
2301
|
-
j = ((y = y + Math.imul(V, ut) | 0) + (u >>> 13) | 0) + (
|
|
2300
|
+
var Ct = (j + (m = m + Math.imul(U, ot) | 0) | 0) + ((8191 & (u = (u = u + Math.imul(U, ut) | 0) + Math.imul(V, ot) | 0)) << 13) | 0;
|
|
2301
|
+
j = ((y = y + Math.imul(V, ut) | 0) + (u >>> 13) | 0) + (Ct >>> 26) | 0, Ct &= 67108863, m = Math.imul(se, ne), u = (u = Math.imul(se, pe)) + Math.imul(de, ne) | 0, y = Math.imul(de, pe), m = m + Math.imul(ie, ue) | 0, u = (u = u + Math.imul(ie, T) | 0) + Math.imul(ce, ue) | 0, y = y + Math.imul(ce, T) | 0, m = m + Math.imul(ae, B) | 0, u = (u = u + Math.imul(ae, b) | 0) + Math.imul(Vt, B) | 0, y = y + Math.imul(Vt, b) | 0, m = m + Math.imul(Yt, $) | 0, u = (u = u + Math.imul(Yt, D) | 0) + Math.imul(ee, $) | 0, y = y + Math.imul(ee, D) | 0, m = m + Math.imul(Lt, q) | 0, u = (u = u + Math.imul(Lt, Y) | 0) + Math.imul(oe, q) | 0, y = y + Math.imul(oe, Y) | 0, m = m + Math.imul(mt, G) | 0, u = (u = u + Math.imul(mt, ct) | 0) + Math.imul(Et, G) | 0, y = y + Math.imul(Et, ct) | 0, m = m + Math.imul(dt, nt) | 0, u = (u = u + Math.imul(dt, ht) | 0) + Math.imul(yt, nt) | 0, y = y + Math.imul(yt, ht) | 0, m = m + Math.imul(H, ot) | 0, u = (u = u + Math.imul(H, ut) | 0) + Math.imul(X, ot) | 0, y = y + Math.imul(X, ut) | 0;
|
|
2302
2302
|
var Kt = (j + (m = m + Math.imul(U, it) | 0) | 0) + ((8191 & (u = (u = u + Math.imul(U, lt) | 0) + Math.imul(V, it) | 0)) << 13) | 0;
|
|
2303
2303
|
j = ((y = y + Math.imul(V, lt) | 0) + (u >>> 13) | 0) + (Kt >>> 26) | 0, Kt &= 67108863, m = Math.imul(fe, ne), u = (u = Math.imul(fe, pe)) + Math.imul(re, ne) | 0, y = Math.imul(re, pe), m = m + Math.imul(se, ue) | 0, u = (u = u + Math.imul(se, T) | 0) + Math.imul(de, ue) | 0, y = y + Math.imul(de, T) | 0, m = m + Math.imul(ie, B) | 0, u = (u = u + Math.imul(ie, b) | 0) + Math.imul(ce, B) | 0, y = y + Math.imul(ce, b) | 0, m = m + Math.imul(ae, $) | 0, u = (u = u + Math.imul(ae, D) | 0) + Math.imul(Vt, $) | 0, y = y + Math.imul(Vt, D) | 0, m = m + Math.imul(Yt, q) | 0, u = (u = u + Math.imul(Yt, Y) | 0) + Math.imul(ee, q) | 0, y = y + Math.imul(ee, Y) | 0, m = m + Math.imul(Lt, G) | 0, u = (u = u + Math.imul(Lt, ct) | 0) + Math.imul(oe, G) | 0, y = y + Math.imul(oe, ct) | 0, m = m + Math.imul(mt, nt) | 0, u = (u = u + Math.imul(mt, ht) | 0) + Math.imul(Et, nt) | 0, y = y + Math.imul(Et, ht) | 0, m = m + Math.imul(dt, ot) | 0, u = (u = u + Math.imul(dt, ut) | 0) + Math.imul(yt, ot) | 0, y = y + Math.imul(yt, ut) | 0, m = m + Math.imul(H, it) | 0, u = (u = u + Math.imul(H, lt) | 0) + Math.imul(X, it) | 0, y = y + Math.imul(X, lt) | 0;
|
|
2304
2304
|
var Qt = (j + (m = m + Math.imul(U, at) | 0) | 0) + ((8191 & (u = (u = u + Math.imul(U, K) | 0) + Math.imul(V, at) | 0)) << 13) | 0;
|
|
@@ -2320,7 +2320,7 @@ var rr = {}, i1 = { exports: {} };
|
|
|
2320
2320
|
var $t = (j + (m = m + Math.imul(se, at) | 0) | 0) + ((8191 & (u = (u = u + Math.imul(se, K) | 0) + Math.imul(de, at) | 0)) << 13) | 0;
|
|
2321
2321
|
j = ((y = y + Math.imul(de, K) | 0) + (u >>> 13) | 0) + ($t >>> 26) | 0, $t &= 67108863;
|
|
2322
2322
|
var me = (j + (m = Math.imul(fe, at)) | 0) + ((8191 & (u = (u = Math.imul(fe, K)) + Math.imul(re, at) | 0)) << 13) | 0;
|
|
2323
|
-
return j = ((y = Math.imul(re, K)) + (u >>> 13) | 0) + (me >>> 26) | 0, me &= 67108863, R[0] = Q, R[1] = st, R[2] = tt, R[3] = et, R[4] = rt, R[5] =
|
|
2323
|
+
return j = ((y = Math.imul(re, K)) + (u >>> 13) | 0) + (me >>> 26) | 0, me &= 67108863, R[0] = Q, R[1] = st, R[2] = tt, R[3] = et, R[4] = rt, R[5] = Ot, R[6] = zt, R[7] = Ct, R[8] = Kt, R[9] = Qt, R[10] = Gt, R[11] = St, R[12] = It, R[13] = Tt, R[14] = Nt, R[15] = _t, R[16] = jt, R[17] = $t, R[18] = me, j !== 0 && (R[19] = j, g.length++), g;
|
|
2324
2324
|
};
|
|
2325
2325
|
function A(f, l, g) {
|
|
2326
2326
|
return new I().mulp(f, l, g);
|
|
@@ -2709,7 +2709,7 @@ var rr = {}, i1 = { exports: {} };
|
|
|
2709
2709
|
function S() {
|
|
2710
2710
|
M.call(this, "k256", "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f");
|
|
2711
2711
|
}
|
|
2712
|
-
function
|
|
2712
|
+
function O() {
|
|
2713
2713
|
M.call(this, "p224", "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001");
|
|
2714
2714
|
}
|
|
2715
2715
|
function k() {
|
|
@@ -2757,7 +2757,7 @@ var rr = {}, i1 = { exports: {} };
|
|
|
2757
2757
|
l += 977 * m, f.words[g] = 67108863 & l, l = 64 * m + (l / 67108864 | 0);
|
|
2758
2758
|
}
|
|
2759
2759
|
return f.words[f.length - 1] === 0 && (f.length--, f.words[f.length - 1] === 0 && f.length--), f;
|
|
2760
|
-
}, n(
|
|
2760
|
+
}, n(O, M), n(k, M), n(N, M), N.prototype.imulK = function(f) {
|
|
2761
2761
|
for (var l = 0, g = 0; g < f.length; g++) {
|
|
2762
2762
|
var m = 19 * (0 | f.words[g]) + l, u = 67108863 & m;
|
|
2763
2763
|
m >>>= 26, f.words[g] = u, l = m;
|
|
@@ -2767,7 +2767,7 @@ var rr = {}, i1 = { exports: {} };
|
|
|
2767
2767
|
if (_[f]) return _[f];
|
|
2768
2768
|
var l;
|
|
2769
2769
|
if (f === "k256") l = new S();
|
|
2770
|
-
else if (f === "p224") l = new
|
|
2770
|
+
else if (f === "p224") l = new O();
|
|
2771
2771
|
else if (f === "p192") l = new k();
|
|
2772
2772
|
else {
|
|
2773
2773
|
if (f !== "p25519") throw new Error("Unknown prime " + f);
|
|
@@ -3015,8 +3015,8 @@ Xr.prototype.point = function() {
|
|
|
3015
3015
|
t[v].y.cmp(t[A].y) === 0 ? (I[1] = t[v].add(t[A]), I[2] = t[v].toJ().mixedAdd(t[A].neg())) : t[v].y.cmp(t[A].y.redNeg()) === 0 ? (I[1] = t[v].toJ().mixedAdd(t[A]), I[2] = t[v].add(t[A].neg())) : (I[1] = t[v].toJ().mixedAdd(t[A]), I[2] = t[v].toJ().mixedAdd(t[A].neg()));
|
|
3016
3016
|
var _ = [-3, -1, -5, -7, 0, 7, 5, 1, 3], M = oh(r[v], r[A]);
|
|
3017
3017
|
for (p = Math.max(M[0].length, p), h[v] = new Array(p), h[A] = new Array(p), a = 0; a < p; a++) {
|
|
3018
|
-
var S = 0 | M[0][a],
|
|
3019
|
-
h[v][a] = _[3 * (S + 1) + (
|
|
3018
|
+
var S = 0 | M[0][a], O = 0 | M[1][a];
|
|
3019
|
+
h[v][a] = _[3 * (S + 1) + (O + 1)], h[A][a] = 0, d[v] = I;
|
|
3020
3020
|
}
|
|
3021
3021
|
} else h[v] = Wi(r[v], c[v], this._bitLength), h[A] = Wi(r[A], c[A], this._bitLength), p = Math.max(h[v].length, p), p = Math.max(h[A].length, p);
|
|
3022
3022
|
}
|
|
@@ -3089,17 +3089,17 @@ typeof Object.create == "function" ? Eo.exports = function(e, t) {
|
|
|
3089
3089
|
r.prototype = t.prototype, e.prototype = new r(), e.prototype.constructor = e;
|
|
3090
3090
|
}
|
|
3091
3091
|
};
|
|
3092
|
-
var
|
|
3092
|
+
var Cs = Eo.exports, we = Vr, ko = Cs, Yn = Ns, ah = rr.assert;
|
|
3093
3093
|
function ar(e) {
|
|
3094
|
-
|
|
3094
|
+
Yn.call(this, "short", e), this.a = new we(e.a, 16).toRed(this.red), this.b = new we(e.b, 16).toRed(this.red), this.tinv = this.two.redInvm(), this.zeroA = this.a.fromRed().cmpn(0) === 0, this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0, this.endo = this._getEndomorphism(e), this._endoWnafT1 = new Array(4), this._endoWnafT2 = new Array(4);
|
|
3095
3095
|
}
|
|
3096
|
-
ko(ar,
|
|
3096
|
+
ko(ar, Yn);
|
|
3097
3097
|
var ch = ar;
|
|
3098
3098
|
function Ie(e, t, r, n) {
|
|
3099
|
-
|
|
3099
|
+
Yn.BasePoint.call(this, e, "affine"), t === null && r === null ? (this.x = null, this.y = null, this.inf = !0) : (this.x = new we(t, 16), this.y = new we(r, 16), n && (this.x.forceRed(this.curve.red), this.y.forceRed(this.curve.red)), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.inf = !1);
|
|
3100
3100
|
}
|
|
3101
3101
|
function je(e, t, r, n) {
|
|
3102
|
-
|
|
3102
|
+
Yn.BasePoint.call(this, e, "jacobian"), t === null && r === null && n === null ? (this.x = this.curve.one, this.y = this.curve.one, this.z = new we(0)) : (this.x = new we(t, 16), this.y = new we(r, 16), this.z = new we(n, 16)), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)), this.zOne = this.z === this.curve.one;
|
|
3103
3103
|
}
|
|
3104
3104
|
ar.prototype._getEndomorphism = function(e) {
|
|
3105
3105
|
if (this.zeroA && this.g && this.n && this.p.modn(3) === 1) {
|
|
@@ -3125,10 +3125,10 @@ ar.prototype._getEndomorphism = function(e) {
|
|
|
3125
3125
|
for (var t, r, n, i, s, a, o, c, d, h = this.n.ushrn(Math.floor(this.n.bitLength() / 2)), p = e, w = this.n.clone(), v = new we(1), A = new we(0), I = new we(0), _ = new we(1), M = 0; p.cmpn(0) !== 0; ) {
|
|
3126
3126
|
var S = w.div(p);
|
|
3127
3127
|
c = w.sub(S.mul(p)), d = I.sub(S.mul(v));
|
|
3128
|
-
var
|
|
3128
|
+
var O = _.sub(S.mul(A));
|
|
3129
3129
|
if (!n && c.cmp(h) < 0) t = o.neg(), r = v, n = c.neg(), i = d;
|
|
3130
3130
|
else if (n && ++M === 2) break;
|
|
3131
|
-
o = c, w = p, p = c, I = v, v = d, _ = A, A =
|
|
3131
|
+
o = c, w = p, p = c, I = v, v = d, _ = A, A = O;
|
|
3132
3132
|
}
|
|
3133
3133
|
s = c.neg(), a = d;
|
|
3134
3134
|
var k = n.sqr().add(i.sqr());
|
|
@@ -3153,7 +3153,7 @@ ar.prototype._getEndomorphism = function(e) {
|
|
|
3153
3153
|
}
|
|
3154
3154
|
for (var d = this._wnafMulAdd(1, n, i, 2 * s, r), h = 0; h < 2 * s; h++) n[h] = null, i[h] = null;
|
|
3155
3155
|
return d;
|
|
3156
|
-
}, ko(Ie,
|
|
3156
|
+
}, ko(Ie, Yn.BasePoint), ar.prototype.point = function(e, t, r) {
|
|
3157
3157
|
return new Ie(this, e, t, r);
|
|
3158
3158
|
}, ar.prototype.pointFromJSON = function(e, t) {
|
|
3159
3159
|
return Ie.fromJSON(this, e, t);
|
|
@@ -3227,7 +3227,7 @@ ar.prototype._getEndomorphism = function(e) {
|
|
|
3227
3227
|
return t;
|
|
3228
3228
|
}, Ie.prototype.toJ = function() {
|
|
3229
3229
|
return this.inf ? this.curve.jpoint(null, null, null) : this.curve.jpoint(this.x, this.y, this.curve.one);
|
|
3230
|
-
}, ko(je,
|
|
3230
|
+
}, ko(je, Yn.BasePoint), ar.prototype.jpoint = function(e, t, r) {
|
|
3231
3231
|
return new je(this, e, t, r);
|
|
3232
3232
|
}, je.prototype.toP = function() {
|
|
3233
3233
|
if (this.isInfinity()) return this.curve.point(null, null);
|
|
@@ -3339,19 +3339,19 @@ ar.prototype._getEndomorphism = function(e) {
|
|
|
3339
3339
|
}, je.prototype.isInfinity = function() {
|
|
3340
3340
|
return this.z.cmpn(0) === 0;
|
|
3341
3341
|
};
|
|
3342
|
-
var Un = Vr, a1 =
|
|
3342
|
+
var Un = Vr, a1 = Cs, Os = Ns, dh = rr;
|
|
3343
3343
|
function qn(e) {
|
|
3344
|
-
|
|
3344
|
+
Os.call(this, "mont", e), this.a = new Un(e.a, 16).toRed(this.red), this.b = new Un(e.b, 16).toRed(this.red), this.i4 = new Un(4).toRed(this.red).redInvm(), this.two = new Un(2).toRed(this.red), this.a24 = this.i4.redMul(this.a.redAdd(this.two));
|
|
3345
3345
|
}
|
|
3346
|
-
a1(qn,
|
|
3346
|
+
a1(qn, Os);
|
|
3347
3347
|
var fh = qn;
|
|
3348
3348
|
function Te(e, t, r) {
|
|
3349
|
-
|
|
3349
|
+
Os.BasePoint.call(this, e, "projective"), t === null && r === null ? (this.x = this.curve.one, this.z = this.curve.zero) : (this.x = new Un(t, 16), this.z = new Un(r, 16), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)));
|
|
3350
3350
|
}
|
|
3351
3351
|
qn.prototype.validate = function(e) {
|
|
3352
3352
|
var t = e.normalize().x, r = t.redSqr(), n = r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);
|
|
3353
3353
|
return n.redSqrt().redSqr().cmp(n) === 0;
|
|
3354
|
-
}, a1(Te,
|
|
3354
|
+
}, a1(Te, Os.BasePoint), qn.prototype.decodePoint = function(e, t) {
|
|
3355
3355
|
return this.point(dh.toArray(e, t), 1);
|
|
3356
3356
|
}, qn.prototype.point = function(e, t) {
|
|
3357
3357
|
return new Te(this, e, t);
|
|
@@ -3389,7 +3389,7 @@ qn.prototype.validate = function(e) {
|
|
|
3389
3389
|
}, Te.prototype.getX = function() {
|
|
3390
3390
|
return this.normalize(), this.x.fromRed();
|
|
3391
3391
|
};
|
|
3392
|
-
var Fr = Vr, c1 =
|
|
3392
|
+
var Fr = Vr, c1 = Cs, Bs = Ns, hh = rr.assert;
|
|
3393
3393
|
function _r(e) {
|
|
3394
3394
|
this.twisted = (0 | e.a) != 1, this.mOneA = this.twisted && (0 | e.a) == -1, this.extended = this.mOneA, Bs.call(this, "edwards", e), this.a = new Fr(e.a, 16).umod(this.red.m), this.a = this.a.toRed(this.red), this.c = new Fr(e.c, 16).toRed(this.red), this.c2 = this.c.redSqr(), this.d = new Fr(e.d, 16).toRed(this.red), this.dd = this.d.redAdd(this.d), hh(!this.twisted || this.c.fromRed().cmpn(1) === 0), this.oneC = (0 | e.c) == 1;
|
|
3395
3395
|
}
|
|
@@ -3486,7 +3486,7 @@ _r.prototype._mulA = function(e) {
|
|
|
3486
3486
|
var t = e;
|
|
3487
3487
|
t.base = Ns, t.short = ch, t.mont = fh, t.edwards = uh;
|
|
3488
3488
|
}(ya);
|
|
3489
|
-
var Ps = {}, ls = {}, Wt = {}, lh = Tn, ph =
|
|
3489
|
+
var Ps = {}, ls = {}, Wt = {}, lh = Tn, ph = Cs;
|
|
3490
3490
|
function mh(e, t) {
|
|
3491
3491
|
return (64512 & e.charCodeAt(t)) == 55296 && !(t < 0 || t + 1 >= e.length) && (64512 & e.charCodeAt(t + 1)) == 56320;
|
|
3492
3492
|
}
|
|
@@ -3572,11 +3572,11 @@ Wt.inherits = ph, Wt.toArray = function(e, t) {
|
|
|
3572
3572
|
}, Wt.shr64_lo = function(e, t, r) {
|
|
3573
3573
|
return (e << 32 - r | t >>> r) >>> 0;
|
|
3574
3574
|
};
|
|
3575
|
-
var
|
|
3575
|
+
var ii = {}, Gc = Wt, bh = Tn;
|
|
3576
3576
|
function Qi() {
|
|
3577
3577
|
this.pending = null, this.pendingTotal = 0, this.blockSize = this.constructor.blockSize, this.outSize = this.constructor.outSize, this.hmacStrength = this.constructor.hmacStrength, this.padLength = this.constructor.padLength / 8, this.endian = "big", this._delta8 = this.blockSize / 8, this._delta32 = this.blockSize / 32;
|
|
3578
3578
|
}
|
|
3579
|
-
|
|
3579
|
+
ii.BlockHash = Qi, Qi.prototype.update = function(e, t) {
|
|
3580
3580
|
if (e = Gc.toArray(e, t), this.pending ? this.pending = this.pending.concat(e) : this.pending = e, this.pendingTotal += e.length, this.pending.length >= this._delta8) {
|
|
3581
3581
|
var r = (e = this.pending).length % this._delta8;
|
|
3582
3582
|
this.pending = e.slice(e.length - r, e.length), this.pending.length === 0 && (this.pending = null), e = Gc.join32(e, 0, e.length - r, this.endian);
|
|
@@ -3616,12 +3616,12 @@ xr.ft_1 = function(e, t, r, n) {
|
|
|
3616
3616
|
}, xr.g1_256 = function(e) {
|
|
3617
3617
|
return vr(e, 17) ^ vr(e, 19) ^ e >>> 10;
|
|
3618
3618
|
};
|
|
3619
|
-
var
|
|
3619
|
+
var Qn = Wt, yh = ii, gh = xr, Qs = Qn.rotl32, ci = Qn.sum32, vh = Qn.sum32_5, wh = gh.ft_1, d1 = yh.BlockHash, _h = [1518500249, 1859775393, 2400959708, 3395469782];
|
|
3620
3620
|
function Er() {
|
|
3621
3621
|
if (!(this instanceof Er)) return new Er();
|
|
3622
3622
|
d1.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.W = new Array(80);
|
|
3623
3623
|
}
|
|
3624
|
-
|
|
3624
|
+
Qn.inherits(Er, d1);
|
|
3625
3625
|
var xh = Er;
|
|
3626
3626
|
Er.blockSize = 512, Er.outSize = 160, Er.hmacStrength = 80, Er.padLength = 64, Er.prototype._update = function(e, t) {
|
|
3627
3627
|
for (var r = this.W, n = 0; n < 16; n++) r[n] = e[t + n];
|
|
@@ -3631,20 +3631,20 @@ Er.blockSize = 512, Er.outSize = 160, Er.hmacStrength = 80, Er.padLength = 64, E
|
|
|
3631
3631
|
var d = ~~(n / 20), h = vh(Qs(i, 5), wh(d, s, a, o), c, r[n], _h[d]);
|
|
3632
3632
|
c = o, o = a, a = Qs(s, 30), s = i, i = h;
|
|
3633
3633
|
}
|
|
3634
|
-
this.h[0] =
|
|
3634
|
+
this.h[0] = ci(this.h[0], i), this.h[1] = ci(this.h[1], s), this.h[2] = ci(this.h[2], a), this.h[3] = ci(this.h[3], o), this.h[4] = ci(this.h[4], c);
|
|
3635
3635
|
}, Er.prototype._digest = function(e) {
|
|
3636
|
-
return e === "hex" ?
|
|
3636
|
+
return e === "hex" ? Qn.toHex32(this.h, "big") : Qn.split32(this.h, "big");
|
|
3637
3637
|
};
|
|
3638
|
-
var
|
|
3638
|
+
var Jn = Wt, Ah = ii, si = xr, Sh = Tn, hr = Jn.sum32, Eh = Jn.sum32_4, kh = Jn.sum32_5, Mh = si.ch32, Ih = si.maj32, Th = si.s0_256, Rh = si.s1_256, Nh = si.g0_256, Ch = si.g1_256, f1 = Ah.BlockHash, Oh = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298];
|
|
3639
3639
|
function kr() {
|
|
3640
3640
|
if (!(this instanceof kr)) return new kr();
|
|
3641
|
-
f1.call(this), this.h = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225], this.k =
|
|
3641
|
+
f1.call(this), this.h = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225], this.k = Oh, this.W = new Array(64);
|
|
3642
3642
|
}
|
|
3643
|
-
|
|
3643
|
+
Jn.inherits(kr, f1);
|
|
3644
3644
|
var h1 = kr;
|
|
3645
3645
|
kr.blockSize = 512, kr.outSize = 256, kr.hmacStrength = 192, kr.padLength = 64, kr.prototype._update = function(e, t) {
|
|
3646
3646
|
for (var r = this.W, n = 0; n < 16; n++) r[n] = e[t + n];
|
|
3647
|
-
for (; n < r.length; n++) r[n] = Eh(
|
|
3647
|
+
for (; n < r.length; n++) r[n] = Eh(Ch(r[n - 2]), r[n - 7], Nh(r[n - 15]), r[n - 16]);
|
|
3648
3648
|
var i = this.h[0], s = this.h[1], a = this.h[2], o = this.h[3], c = this.h[4], d = this.h[5], h = this.h[6], p = this.h[7];
|
|
3649
3649
|
for (Sh(this.k.length === r.length), n = 0; n < r.length; n++) {
|
|
3650
3650
|
var w = kh(p, Rh(c), Mh(c, d, h), this.k[n], r[n]), v = hr(Th(i), Ih(i, s, a));
|
|
@@ -3652,7 +3652,7 @@ kr.blockSize = 512, kr.outSize = 256, kr.hmacStrength = 192, kr.padLength = 64,
|
|
|
3652
3652
|
}
|
|
3653
3653
|
this.h[0] = hr(this.h[0], i), this.h[1] = hr(this.h[1], s), this.h[2] = hr(this.h[2], a), this.h[3] = hr(this.h[3], o), this.h[4] = hr(this.h[4], c), this.h[5] = hr(this.h[5], d), this.h[6] = hr(this.h[6], h), this.h[7] = hr(this.h[7], p);
|
|
3654
3654
|
}, kr.prototype._digest = function(e) {
|
|
3655
|
-
return e === "hex" ?
|
|
3655
|
+
return e === "hex" ? Jn.toHex32(this.h, "big") : Jn.split32(this.h, "big");
|
|
3656
3656
|
};
|
|
3657
3657
|
var Mo = Wt, u1 = h1;
|
|
3658
3658
|
function qr() {
|
|
@@ -3664,7 +3664,7 @@ var Bh = qr;
|
|
|
3664
3664
|
qr.blockSize = 512, qr.outSize = 224, qr.hmacStrength = 192, qr.padLength = 64, qr.prototype._digest = function(e) {
|
|
3665
3665
|
return e === "hex" ? Mo.toHex32(this.h.slice(0, 7), "big") : Mo.split32(this.h.slice(0, 7), "big");
|
|
3666
3666
|
};
|
|
3667
|
-
var tr = Wt, Ph =
|
|
3667
|
+
var tr = Wt, Ph = ii, Lh = Tn, Ir = tr.rotr64_hi, Tr = tr.rotr64_lo, l1 = tr.shr64_hi, p1 = tr.shr64_lo, Yr = tr.sum64, Js = tr.sum64_hi, Xs = tr.sum64_lo, zh = tr.sum64_4_hi, jh = tr.sum64_4_lo, Uh = tr.sum64_5_hi, qh = tr.sum64_5_lo, m1 = Ph.BlockHash, $h = [1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591];
|
|
3668
3668
|
function pr() {
|
|
3669
3669
|
if (!(this instanceof pr)) return new pr();
|
|
3670
3670
|
m1.call(this), this.h = [1779033703, 4089235720, 3144134277, 2227873595, 1013904242, 4271175723, 2773480762, 1595750129, 1359893119, 2917565137, 2600822924, 725511199, 528734635, 4215389547, 1541459225, 327033209], this.k = $h, this.W = new Array(160);
|
|
@@ -3729,8 +3729,8 @@ pr.blockSize = 1024, pr.outSize = 512, pr.hmacStrength = 192, pr.padLength = 128
|
|
|
3729
3729
|
this._prepareBlock(e, t);
|
|
3730
3730
|
var r = this.W, n = this.h[0], i = this.h[1], s = this.h[2], a = this.h[3], o = this.h[4], c = this.h[5], d = this.h[6], h = this.h[7], p = this.h[8], w = this.h[9], v = this.h[10], A = this.h[11], I = this.h[12], _ = this.h[13], M = this.h[14], S = this.h[15];
|
|
3731
3731
|
Lh(this.k.length === r.length);
|
|
3732
|
-
for (var
|
|
3733
|
-
var k = M, N = S, L = Wh(p, w), z = Yh(p, w), f = Hh(p, w, v, A, I), l = Dh(p, w, v, A, I, _), g = this.k[
|
|
3732
|
+
for (var O = 0; O < r.length; O += 2) {
|
|
3733
|
+
var k = M, N = S, L = Wh(p, w), z = Yh(p, w), f = Hh(p, w, v, A, I), l = Dh(p, w, v, A, I, _), g = this.k[O], m = this.k[O + 1], u = r[O], y = r[O + 1], x = Uh(k, N, L, z, f, l, g, m, u, y), P = qh(k, N, L, z, f, l, g, m, u, y);
|
|
3734
3734
|
k = Vh(n, i), N = Kh(n, i), L = Fh(n, i, s, a, o), z = Zh(n, i, s, a, o, c);
|
|
3735
3735
|
var R = Js(k, N, L, z), j = Xs(k, N, L, z);
|
|
3736
3736
|
M = I, S = _, I = v, _ = A, v = p, A = w, p = Js(d, h, x, P), w = Xs(h, h, x, P), d = o, h = c, o = s, c = a, s = n, a = i, n = Js(x, P, R, j), i = Xs(x, P, R, j);
|
|
@@ -3749,7 +3749,7 @@ var tu = $r;
|
|
|
3749
3749
|
$r.blockSize = 1024, $r.outSize = 384, $r.hmacStrength = 192, $r.padLength = 128, $r.prototype._digest = function(e) {
|
|
3750
3750
|
return e === "hex" ? Io.toHex32(this.h.slice(0, 12), "big") : Io.split32(this.h.slice(0, 12), "big");
|
|
3751
3751
|
}, Bn.sha1 = xh, Bn.sha224 = Bh, Bn.sha256 = h1, Bn.sha384 = tu, Bn.sha512 = b1;
|
|
3752
|
-
var g1 = {}, wn = Wt, eu =
|
|
3752
|
+
var g1 = {}, wn = Wt, eu = ii, Ji = wn.rotl32, n0 = wn.sum32, di = wn.sum32_3, i0 = wn.sum32_4, v1 = eu.BlockHash;
|
|
3753
3753
|
function Ar() {
|
|
3754
3754
|
if (!(this instanceof Ar)) return new Ar();
|
|
3755
3755
|
v1.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.endian = "little";
|
|
@@ -3768,29 +3768,29 @@ wn.inherits(Ar, v1), g1.ripemd160 = Ar, Ar.blockSize = 512, Ar.outSize = 160, Ar
|
|
|
3768
3768
|
var v = n0(Ji(i0(r, s0(w, n, i, s), e[iu[w] + t], ru(w)), ou[w]), a);
|
|
3769
3769
|
r = a, a = s, s = Ji(i, 10), i = n, n = v, v = n0(Ji(i0(o, s0(79 - w, c, d, h), e[su[w] + t], nu(w)), au[w]), p), o = p, p = h, h = Ji(d, 10), d = c, c = v;
|
|
3770
3770
|
}
|
|
3771
|
-
v =
|
|
3771
|
+
v = di(this.h[1], i, h), this.h[1] = di(this.h[2], s, p), this.h[2] = di(this.h[3], a, o), this.h[3] = di(this.h[4], r, c), this.h[4] = di(this.h[0], n, d), this.h[0] = v;
|
|
3772
3772
|
}, Ar.prototype._digest = function(e) {
|
|
3773
3773
|
return e === "hex" ? wn.toHex32(this.h, "little") : wn.split32(this.h, "little");
|
|
3774
3774
|
};
|
|
3775
3775
|
var iu = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13], su = [5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11], ou = [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6], au = [8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11], cu = Wt, du = Tn;
|
|
3776
|
-
function
|
|
3777
|
-
if (!(this instanceof
|
|
3776
|
+
function Zn(e, t, r) {
|
|
3777
|
+
if (!(this instanceof Zn)) return new Zn(e, t, r);
|
|
3778
3778
|
this.Hash = e, this.blockSize = e.blockSize / 8, this.outSize = e.outSize / 8, this.inner = null, this.outer = null, this._init(cu.toArray(t, r));
|
|
3779
3779
|
}
|
|
3780
|
-
var o0, a0, fu =
|
|
3781
|
-
|
|
3780
|
+
var o0, a0, fu = Zn;
|
|
3781
|
+
Zn.prototype._init = function(e) {
|
|
3782
3782
|
e.length > this.blockSize && (e = new this.Hash().update(e).digest()), du(e.length <= this.blockSize);
|
|
3783
3783
|
for (var t = e.length; t < this.blockSize; t++) e.push(0);
|
|
3784
3784
|
for (t = 0; t < e.length; t++) e[t] ^= 54;
|
|
3785
3785
|
for (this.inner = new this.Hash().update(e), t = 0; t < e.length; t++) e[t] ^= 106;
|
|
3786
3786
|
this.outer = new this.Hash().update(e);
|
|
3787
|
-
},
|
|
3787
|
+
}, Zn.prototype.update = function(e, t) {
|
|
3788
3788
|
return this.inner.update(e, t), this;
|
|
3789
|
-
},
|
|
3789
|
+
}, Zn.prototype.digest = function(e) {
|
|
3790
3790
|
return this.outer.update(this.inner.digest()), this.outer.digest(e);
|
|
3791
3791
|
}, function() {
|
|
3792
3792
|
var e = ls;
|
|
3793
|
-
e.utils = Wt, e.common =
|
|
3793
|
+
e.utils = Wt, e.common = ii, e.sha = Bn, e.ripemd = g1, e.hmac = fu, e.sha1 = e.sha.sha1, e.sha256 = e.sha.sha256, e.sha224 = e.sha.sha224, e.sha384 = e.sha.sha384, e.sha512 = e.sha.sha512, e.ripemd160 = e.ripemd.ripemd160;
|
|
3794
3794
|
}(), function() {
|
|
3795
3795
|
var e, t = Ps, r = ls, n = ya, i = rr.assert;
|
|
3796
3796
|
function s(o) {
|
|
@@ -4005,7 +4005,7 @@ cr.prototype.keyPair = function(e) {
|
|
|
4005
4005
|
}
|
|
4006
4006
|
throw new Error("Unable to find valid recovery factor");
|
|
4007
4007
|
};
|
|
4008
|
-
var Ai = rr, f0 = Ai.assert, h0 = Ai.parseBytes,
|
|
4008
|
+
var Ai = rr, f0 = Ai.assert, h0 = Ai.parseBytes, Cn = Ai.cachedProperty;
|
|
4009
4009
|
function Ne(e, t) {
|
|
4010
4010
|
this.eddsa = e, this._secret = h0(t.secret), e.isPoint(t.pub) ? this._pub = t.pub : this._pubBytes = h0(t.pub);
|
|
4011
4011
|
}
|
|
@@ -4015,18 +4015,18 @@ Ne.fromPublic = function(e, t) {
|
|
|
4015
4015
|
return t instanceof Ne ? t : new Ne(e, { secret: t });
|
|
4016
4016
|
}, Ne.prototype.secret = function() {
|
|
4017
4017
|
return this._secret;
|
|
4018
|
-
},
|
|
4018
|
+
}, Cn(Ne, "pubBytes", function() {
|
|
4019
4019
|
return this.eddsa.encodePoint(this.pub());
|
|
4020
|
-
}),
|
|
4020
|
+
}), Cn(Ne, "pub", function() {
|
|
4021
4021
|
return this._pubBytes ? this.eddsa.decodePoint(this._pubBytes) : this.eddsa.g.mul(this.priv());
|
|
4022
|
-
}),
|
|
4022
|
+
}), Cn(Ne, "privBytes", function() {
|
|
4023
4023
|
var e = this.eddsa, t = this.hash(), r = e.encodingLength - 1, n = t.slice(0, e.encodingLength);
|
|
4024
4024
|
return n[0] &= 248, n[r] &= 127, n[r] |= 64, n;
|
|
4025
|
-
}),
|
|
4025
|
+
}), Cn(Ne, "priv", function() {
|
|
4026
4026
|
return this.eddsa.decodeInt(this.privBytes());
|
|
4027
|
-
}),
|
|
4027
|
+
}), Cn(Ne, "hash", function() {
|
|
4028
4028
|
return this.eddsa.hash().update(this.secret()).digest();
|
|
4029
|
-
}),
|
|
4029
|
+
}), Cn(Ne, "messagePrefix", function() {
|
|
4030
4030
|
return this.hash().slice(this.eddsa.encodingLength);
|
|
4031
4031
|
}), Ne.prototype.sign = function(e) {
|
|
4032
4032
|
return f0(this._secret, "KeyPair can only verify"), this.eddsa.sign(e, this);
|
|
@@ -4059,7 +4059,7 @@ function Je(e) {
|
|
|
4059
4059
|
if (ku(e === "ed25519", "only tested with ed25519 so far"), !(this instanceof Je)) return new Je(e);
|
|
4060
4060
|
e = Eu[e].curve, this.curve = e, this.g = e.g, this.g.precompute(e.n.bitLength() + 1), this.pointClass = e.point().constructor, this.encodingLength = Math.ceil(e.n.bitLength() / 8), this.hash = Su.sha512;
|
|
4061
4061
|
}
|
|
4062
|
-
var
|
|
4062
|
+
var li, pi, Ro, b0, Mu = Je;
|
|
4063
4063
|
Je.prototype.sign = function(e, t) {
|
|
4064
4064
|
e = l0(e);
|
|
4065
4065
|
var r = this.keyFromSecret(t), n = this.hashInt(r.messagePrefix(), e), i = this.g.mul(n), s = this.encodePoint(i), a = this.hashInt(s, r.pubBytes(), e).mul(r.priv()), o = n.add(a).umod(this.curve.n);
|
|
@@ -4094,9 +4094,9 @@ Je.prototype.sign = function(e, t) {
|
|
|
4094
4094
|
t.version = sh, t.utils = rr, t.rand = o1, t.curve = ya, t.curves = Ps, t.ec = vu, t.eddsa = Mu;
|
|
4095
4095
|
}(n1), function(e) {
|
|
4096
4096
|
e.NUMBER = "NUMBER_NUMBER", e.HEX = "NUMBER_HEX", e.STR = "NUMBER_STR", e.BIGINT = "NUMBER_BIGINT";
|
|
4097
|
-
}(
|
|
4097
|
+
}(li || (li = {})), function(e) {
|
|
4098
4098
|
e.HEX = "BYTES_HEX", e.UINT8ARRAY = "BYTES_UINT8ARRAY";
|
|
4099
|
-
}(
|
|
4099
|
+
}(pi || (pi = {})), li.BIGINT, pi.HEX, li.HEX, pi.HEX, function(e) {
|
|
4100
4100
|
e.EARLIEST = "earliest", e.LATEST = "latest", e.PENDING = "pending", e.SAFE = "safe", e.FINALIZED = "finalized", e.COMMITTED = "committed";
|
|
4101
4101
|
}(Ro || (Ro = {})), function(e) {
|
|
4102
4102
|
e.chainstart = "chainstart", e.frontier = "frontier", e.homestead = "homestead", e.dao = "dao", e.tangerineWhistle = "tangerineWhistle", e.spuriousDragon = "spuriousDragon", e.byzantium = "byzantium", e.constantinople = "constantinople", e.petersburg = "petersburg", e.istanbul = "istanbul", e.muirGlacier = "muirGlacier", e.berlin = "berlin", e.london = "london", e.altair = "altair", e.arrowGlacier = "arrowGlacier", e.grayGlacier = "grayGlacier", e.bellatrix = "bellatrix", e.merge = "merge", e.capella = "capella", e.shanghai = "shanghai";
|
|
@@ -4156,7 +4156,7 @@ class zs {
|
|
|
4156
4156
|
}, t.asEIP1193Provider = void 0, t;
|
|
4157
4157
|
}
|
|
4158
4158
|
}
|
|
4159
|
-
const Iu = 4001, Tu = 4100, Ru = 4200, Nu = 4900,
|
|
4159
|
+
const Iu = 4001, Tu = 4100, Ru = 4200, Nu = 4900, Cu = 4901, No = -32700, Co = -32600, Oo = -32601, Bo = -32602, Po = -32603, Lo = -32e3, zo = -32001, jo = -32002, Uo = -32003, qo = -32004, $o = -32005, Ho = -32006;
|
|
4160
4160
|
class Le extends Error {
|
|
4161
4161
|
get innerError() {
|
|
4162
4162
|
return this.cause instanceof wi ? this.cause.errors : this.cause;
|
|
@@ -4191,7 +4191,7 @@ class v0 extends Le {
|
|
|
4191
4191
|
super("Private key must be 32 bytes."), this.code = 701;
|
|
4192
4192
|
}
|
|
4193
4193
|
}
|
|
4194
|
-
class
|
|
4194
|
+
class Ou extends Le {
|
|
4195
4195
|
constructor() {
|
|
4196
4196
|
super("Invalid Private Key, Not a valid string or uint8Array"), this.code = 702;
|
|
4197
4197
|
}
|
|
@@ -4284,7 +4284,7 @@ class $u extends va {
|
|
|
4284
4284
|
super(t, void 0, r), this.code = 101, "error" in t ? n = t.error : t instanceof Array && (n = t.map((i) => i.error)), Array.isArray(n) ? this.cause = new wi(n) : this.cause = n;
|
|
4285
4285
|
}
|
|
4286
4286
|
}
|
|
4287
|
-
const x1 = "An Rpc error has occured with a code of *code*", De = { [No]: { message: "Parse error", description: "Invalid JSON" }, [
|
|
4287
|
+
const x1 = "An Rpc error has occured with a code of *code*", De = { [No]: { message: "Parse error", description: "Invalid JSON" }, [Co]: { message: "Invalid request", description: "JSON is not a valid request object " }, [Oo]: { message: "Method not found", description: "Method does not exist " }, [Bo]: { message: "Invalid params", description: "Invalid method parameters" }, [Po]: { message: "Internal error", description: "Internal JSON-RPC error" }, [Lo]: { message: "Invalid input", description: "Missing or invalid parameters" }, [zo]: { message: "Resource not found", description: "Requested resource not found" }, [jo]: { message: "Resource unavailable", description: "Requested resource not available" }, [Uo]: { message: "Transaction rejected", description: "Transaction creation failed" }, [qo]: { message: "Method not supported", description: "Method is not implemented" }, [$o]: { message: "Limit exceeded", description: "Request exceeds defined limit" }, [Ho]: { message: "JSON-RPC version not supported", description: "Version of JSON-RPC protocol is not supported" }, [Iu]: { name: "User Rejected Request", message: "The user rejected the request." }, [Tu]: { name: "Unauthorized", message: "The requested method and/or account has not been authorized by the user." }, [Ru]: { name: "Unsupported Method", message: "The Provider does not support the requested method." }, [Nu]: { name: "Disconnected", message: "The Provider is disconnected from all chains." }, [Cu]: { name: "Chain Disconnected", message: "The Provider is not connected to the requested chain." }, "0-999": { name: "", message: "Not used." }, 1e3: { name: "Normal Closure", message: "The connection successfully completed the purpose for which it was created." }, 1001: { name: "Going Away", message: "The endpoint is going away, either because of a server failure or because the browser is navigating away from the page that opened the connection." }, 1002: { name: "Protocol error", message: "The endpoint is terminating the connection due to a protocol error." }, 1003: { name: "Unsupported Data", message: "The connection is being terminated because the endpoint received data of a type it cannot accept. (For example, a text-only endpoint received binary data.)" }, 1004: { name: "Reserved", message: "Reserved. A meaning might be defined in the future." }, 1005: { name: "No Status Rcvd", message: "Reserved. Indicates that no status code was provided even though one was expected." }, 1006: { name: "Abnormal Closure", message: "Reserved. Indicates that a connection was closed abnormally (that is, with no close frame being sent) when a status code is expected." }, 1007: { name: "Invalid frame payload data", message: "The endpoint is terminating the connection because a message was received that contained inconsistent data (e.g., non-UTF-8 data within a text message)." }, 1008: { name: "Policy Violation", message: "The endpoint is terminating the connection because it received a message that violates its policy. This is a generic status code, used when codes 1003 and 1009 are not suitable." }, 1009: { name: "Message Too Big", message: "The endpoint is terminating the connection because a data frame was received that is too large." }, 1010: { name: "Mandatory Ext.", message: "The client is terminating the connection because it expected the server to negotiate one or more extension, but the server didn't." }, 1011: { name: "Internal Error", message: "The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request." }, 1012: { name: "Service Restart", message: "The server is terminating the connection because it is restarting." }, 1013: { name: "Try Again Later", message: "The server is terminating the connection due to a temporary condition, e.g. it is overloaded and is casting off some of its clients." }, 1014: { name: "Bad Gateway", message: "The server was acting as a gateway or proxy and received an invalid response from the upstream server. This is similar to 502 HTTP Status Code." }, 1015: { name: "TLS handshake", message: "Reserved. Indicates that the connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified)." }, "1016-2999": { name: "", message: "For definition by future revisions of the WebSocket Protocol specification, and for definition by extension specifications." }, "3000-3999": { name: "", message: "For use by libraries, frameworks, and applications. These status codes are registered directly with IANA. The interpretation of these codes is undefined by the WebSocket protocol." }, "4000-4999": { name: "", message: "For private use, and thus can't be registered. Such codes can be used by prior agreements between WebSocket applications. The interpretation of these codes is undefined by the WebSocket protocol." } };
|
|
4288
4288
|
class ir extends Le {
|
|
4289
4289
|
constructor(t, r) {
|
|
4290
4290
|
super(r ?? x1.replace("*code*", t.error.code.toString())), this.code = t.error.code, this.id = t.id, this.jsonrpc = t.jsonrpc, this.jsonRpcError = t.error;
|
|
@@ -4310,13 +4310,13 @@ sr.set(No, { error: class extends ir {
|
|
|
4310
4310
|
constructor(e) {
|
|
4311
4311
|
super(e, De[-32700].message), this.code = No;
|
|
4312
4312
|
}
|
|
4313
|
-
} }), sr.set(
|
|
4313
|
+
} }), sr.set(Co, { error: class extends ir {
|
|
4314
4314
|
constructor(e) {
|
|
4315
|
-
super(e, De[-32600].message), this.code =
|
|
4315
|
+
super(e, De[-32600].message), this.code = Co;
|
|
4316
4316
|
}
|
|
4317
|
-
} }), sr.set(
|
|
4317
|
+
} }), sr.set(Oo, { error: class extends ir {
|
|
4318
4318
|
constructor(e) {
|
|
4319
|
-
super(e, De[-32601].message), this.code =
|
|
4319
|
+
super(e, De[-32601].message), this.code = Oo;
|
|
4320
4320
|
}
|
|
4321
4321
|
} }), sr.set(Bo, { error: class extends ir {
|
|
4322
4322
|
constructor(e) {
|
|
@@ -4366,7 +4366,7 @@ class Du extends Le {
|
|
|
4366
4366
|
function Si(e) {
|
|
4367
4367
|
if (!Number.isSafeInteger(e) || e < 0) throw new Error(`positive integer expected, not ${e}`);
|
|
4368
4368
|
}
|
|
4369
|
-
function
|
|
4369
|
+
function oi(e, ...t) {
|
|
4370
4370
|
if (!((r = e) instanceof Uint8Array || r != null && typeof r == "object" && r.constructor.name === "Uint8Array")) throw new Error("Uint8Array expected");
|
|
4371
4371
|
var r;
|
|
4372
4372
|
if (t.length > 0 && !t.includes(e.length)) throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`);
|
|
@@ -4380,13 +4380,13 @@ function xn(e, t = !0) {
|
|
|
4380
4380
|
if (t && e.finished) throw new Error("Hash#digest() has already been called");
|
|
4381
4381
|
}
|
|
4382
4382
|
function wa(e, t) {
|
|
4383
|
-
|
|
4383
|
+
oi(e);
|
|
4384
4384
|
const r = t.outputLen;
|
|
4385
4385
|
if (e.length < r) throw new Error(`digestInto() expects output buffer of length at least ${r}`);
|
|
4386
4386
|
}
|
|
4387
4387
|
const Fu = { number: Si, bool: function(e) {
|
|
4388
4388
|
if (typeof e != "boolean") throw new Error(`boolean expected, not ${e}`);
|
|
4389
|
-
}, bytes:
|
|
4389
|
+
}, bytes: oi, hash: A1, exists: xn, output: wa }, ts = BigInt(2 ** 32 - 1), _0 = BigInt(32);
|
|
4390
4390
|
function Zu(e, t = !1) {
|
|
4391
4391
|
return t ? { h: Number(e & ts), l: Number(e >> _0 & ts) } : { h: 0 | Number(e >> _0 & ts), l: 0 | Number(e & ts) };
|
|
4392
4392
|
}
|
|
@@ -4402,12 +4402,12 @@ const io = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.
|
|
|
4402
4402
|
function A0(e) {
|
|
4403
4403
|
for (let t = 0; t < e.length; t++) e[t] = Ku(e[t]);
|
|
4404
4404
|
}
|
|
4405
|
-
function
|
|
4405
|
+
function Vn(e) {
|
|
4406
4406
|
if (typeof e != "string") throw new Error("utf8ToBytes expected string, got " + typeof e);
|
|
4407
4407
|
return new Uint8Array(new TextEncoder().encode(e));
|
|
4408
4408
|
}
|
|
4409
4409
|
function js(e) {
|
|
4410
|
-
return typeof e == "string" && (e =
|
|
4410
|
+
return typeof e == "string" && (e = Vn(e)), oi(e), e;
|
|
4411
4411
|
}
|
|
4412
4412
|
class _a {
|
|
4413
4413
|
clone() {
|
|
@@ -4422,11 +4422,11 @@ function E1(e = 32) {
|
|
|
4422
4422
|
if (io && typeof io.getRandomValues == "function") return io.getRandomValues(new Uint8Array(e));
|
|
4423
4423
|
throw new Error("crypto.getRandomValues must be defined");
|
|
4424
4424
|
}
|
|
4425
|
-
const k1 = [], M1 = [], I1 = [], Wu = BigInt(0),
|
|
4426
|
-
for (let e = 0, t =
|
|
4425
|
+
const k1 = [], M1 = [], I1 = [], Wu = BigInt(0), fi = BigInt(1), Yu = BigInt(2), Qu = BigInt(7), Ju = BigInt(256), Xu = BigInt(113);
|
|
4426
|
+
for (let e = 0, t = fi, r = 1, n = 0; e < 24; e++) {
|
|
4427
4427
|
[r, n] = [n, (2 * r + 3 * n) % 5], k1.push(2 * (5 * n + r)), M1.push((e + 1) * (e + 2) / 2 % 64);
|
|
4428
4428
|
let i = Wu;
|
|
4429
|
-
for (let s = 0; s < 7; s++) t = (t <<
|
|
4429
|
+
for (let s = 0; s < 7; s++) t = (t << fi ^ (t >> Qu) * Xu) % Ju, t & Yu && (i ^= fi << (fi << BigInt(s)) - fi);
|
|
4430
4430
|
I1.push(i);
|
|
4431
4431
|
}
|
|
4432
4432
|
const [Gu, t2] = Vu(I1, !0), S0 = (e, t, r) => r > 32 ? ((n, i, s) => i << s - 32 | n >>> 64 - s)(e, t, r) : ((n, i, s) => n << s | i >>> 32 - s)(e, t, r), E0 = (e, t, r) => r > 32 ? ((n, i, s) => n << s - 32 | i >>> 64 - s)(e, t, r) : ((n, i, s) => i << s | n >>> 32 - s)(e, t, r);
|
|
@@ -4476,7 +4476,7 @@ class xa extends _a {
|
|
|
4476
4476
|
t[n] ^= r, 128 & r && n === i - 1 && this.keccak(), t[i - 1] ^= 128, this.keccak();
|
|
4477
4477
|
}
|
|
4478
4478
|
writeInto(t) {
|
|
4479
|
-
xn(this, !1),
|
|
4479
|
+
xn(this, !1), oi(t), this.finish();
|
|
4480
4480
|
const r = this.state, { blockLen: n } = this;
|
|
4481
4481
|
for (let i = 0, s = t.length; i < s; ) {
|
|
4482
4482
|
this.posOut >= n && this.keccak();
|
|
@@ -4624,7 +4624,7 @@ class er extends Error {
|
|
|
4624
4624
|
}
|
|
4625
4625
|
}
|
|
4626
4626
|
er.create = (e) => new er(e);
|
|
4627
|
-
const
|
|
4627
|
+
const Xn = (e, t) => {
|
|
4628
4628
|
let r;
|
|
4629
4629
|
switch (e.code) {
|
|
4630
4630
|
case J.invalid_type:
|
|
@@ -4680,7 +4680,7 @@ const Jn = (e, t) => {
|
|
|
4680
4680
|
}
|
|
4681
4681
|
return { message: r };
|
|
4682
4682
|
};
|
|
4683
|
-
let T1 =
|
|
4683
|
+
let T1 = Xn;
|
|
4684
4684
|
function bs() {
|
|
4685
4685
|
return T1;
|
|
4686
4686
|
}
|
|
@@ -4693,7 +4693,7 @@ const ys = (e) => {
|
|
|
4693
4693
|
return { ...i, path: s, message: o };
|
|
4694
4694
|
};
|
|
4695
4695
|
function ft(e, t) {
|
|
4696
|
-
const r = bs(), n = ys({ issueData: t, data: e.data, path: e.path, errorMaps: [e.common.contextualErrorMap, e.schemaErrorMap, r, r ===
|
|
4696
|
+
const r = bs(), n = ys({ issueData: t, data: e.data, path: e.path, errorMaps: [e.common.contextualErrorMap, e.schemaErrorMap, r, r === Xn ? void 0 : Xn].filter((i) => !!i) });
|
|
4697
4697
|
e.common.issues.push(n);
|
|
4698
4698
|
}
|
|
4699
4699
|
class Ze {
|
|
@@ -4737,7 +4737,7 @@ var vt;
|
|
|
4737
4737
|
(function(e) {
|
|
4738
4738
|
e.errToObj = (t) => typeof t == "string" ? { message: t } : t || {}, e.toString = (t) => typeof t == "string" ? t : t == null ? void 0 : t.message;
|
|
4739
4739
|
})(vt || (vt = {}));
|
|
4740
|
-
class
|
|
4740
|
+
class Cr {
|
|
4741
4741
|
constructor(t, r, n, i) {
|
|
4742
4742
|
this._cachedPath = [], this.parent = t, this.data = r, this._path = n, this._key = i;
|
|
4743
4743
|
}
|
|
@@ -4846,7 +4846,7 @@ class qt {
|
|
|
4846
4846
|
return gr.create(this);
|
|
4847
4847
|
}
|
|
4848
4848
|
promise() {
|
|
4849
|
-
return
|
|
4849
|
+
return ti.create(this, this._def);
|
|
4850
4850
|
}
|
|
4851
4851
|
or(t) {
|
|
4852
4852
|
return Ti.create([this, t], this._def);
|
|
@@ -4894,7 +4894,7 @@ function N1(e) {
|
|
|
4894
4894
|
function b2(e) {
|
|
4895
4895
|
return new RegExp(`^${N1(e)}$`);
|
|
4896
4896
|
}
|
|
4897
|
-
function
|
|
4897
|
+
function C1(e) {
|
|
4898
4898
|
let t = `${R1}T${N1(e)}`;
|
|
4899
4899
|
const r = [];
|
|
4900
4900
|
return r.push(e.local ? "Z?" : "Z"), e.offset && r.push("([+-]\\d{2}:?\\d{2})"), t = `${t}(${r.join("|")})`, new RegExp(`^${t}$`);
|
|
@@ -4941,7 +4941,7 @@ class br extends qt {
|
|
|
4941
4941
|
} catch {
|
|
4942
4942
|
n = this._getOrReturnCtx(t, n), ft(n, { validation: "url", code: J.invalid_string, message: i.message }), r.dirty();
|
|
4943
4943
|
}
|
|
4944
|
-
else i.kind === "regex" ? (i.regex.lastIndex = 0, i.regex.test(t.data) || (n = this._getOrReturnCtx(t, n), ft(n, { validation: "regex", code: J.invalid_string, message: i.message }), r.dirty())) : i.kind === "trim" ? t.data = t.data.trim() : i.kind === "includes" ? t.data.includes(i.value, i.position) || (n = this._getOrReturnCtx(t, n), ft(n, { code: J.invalid_string, validation: { includes: i.value, position: i.position }, message: i.message }), r.dirty()) : i.kind === "toLowerCase" ? t.data = t.data.toLowerCase() : i.kind === "toUpperCase" ? t.data = t.data.toUpperCase() : i.kind === "startsWith" ? t.data.startsWith(i.value) || (n = this._getOrReturnCtx(t, n), ft(n, { code: J.invalid_string, validation: { startsWith: i.value }, message: i.message }), r.dirty()) : i.kind === "endsWith" ? t.data.endsWith(i.value) || (n = this._getOrReturnCtx(t, n), ft(n, { code: J.invalid_string, validation: { endsWith: i.value }, message: i.message }), r.dirty()) : i.kind === "datetime" ?
|
|
4944
|
+
else i.kind === "regex" ? (i.regex.lastIndex = 0, i.regex.test(t.data) || (n = this._getOrReturnCtx(t, n), ft(n, { validation: "regex", code: J.invalid_string, message: i.message }), r.dirty())) : i.kind === "trim" ? t.data = t.data.trim() : i.kind === "includes" ? t.data.includes(i.value, i.position) || (n = this._getOrReturnCtx(t, n), ft(n, { code: J.invalid_string, validation: { includes: i.value, position: i.position }, message: i.message }), r.dirty()) : i.kind === "toLowerCase" ? t.data = t.data.toLowerCase() : i.kind === "toUpperCase" ? t.data = t.data.toUpperCase() : i.kind === "startsWith" ? t.data.startsWith(i.value) || (n = this._getOrReturnCtx(t, n), ft(n, { code: J.invalid_string, validation: { startsWith: i.value }, message: i.message }), r.dirty()) : i.kind === "endsWith" ? t.data.endsWith(i.value) || (n = this._getOrReturnCtx(t, n), ft(n, { code: J.invalid_string, validation: { endsWith: i.value }, message: i.message }), r.dirty()) : i.kind === "datetime" ? C1(i).test(t.data) || (n = this._getOrReturnCtx(t, n), ft(n, { code: J.invalid_string, validation: "datetime", message: i.message }), r.dirty()) : i.kind === "date" ? m2.test(t.data) || (n = this._getOrReturnCtx(t, n), ft(n, { code: J.invalid_string, validation: "date", message: i.message }), r.dirty()) : i.kind === "time" ? b2(i).test(t.data) || (n = this._getOrReturnCtx(t, n), ft(n, { code: J.invalid_string, validation: "time", message: i.message }), r.dirty()) : i.kind === "duration" ? a2.test(t.data) || (n = this._getOrReturnCtx(t, n), ft(n, { validation: "duration", code: J.invalid_string, message: i.message }), r.dirty()) : i.kind === "ip" ? y2(t.data, i.version) || (n = this._getOrReturnCtx(t, n), ft(n, { validation: "ip", code: J.invalid_string, message: i.message }), r.dirty()) : i.kind === "jwt" ? g2(t.data, i.alg) || (n = this._getOrReturnCtx(t, n), ft(n, { validation: "jwt", code: J.invalid_string, message: i.message }), r.dirty()) : i.kind === "cidr" ? v2(t.data, i.version) || (n = this._getOrReturnCtx(t, n), ft(n, { validation: "cidr", code: J.invalid_string, message: i.message }), r.dirty()) : i.kind === "base64" ? l2.test(t.data) || (n = this._getOrReturnCtx(t, n), ft(n, { validation: "base64", code: J.invalid_string, message: i.message }), r.dirty()) : i.kind === "base64url" ? p2.test(t.data) || (n = this._getOrReturnCtx(t, n), ft(n, { validation: "base64url", code: J.invalid_string, message: i.message }), r.dirty()) : te.assertNever(i);
|
|
4945
4945
|
return { status: r.value, value: t.data };
|
|
4946
4946
|
}
|
|
4947
4947
|
_regex(t, r, n) {
|
|
@@ -5316,7 +5316,7 @@ class Ii extends qt {
|
|
|
5316
5316
|
}
|
|
5317
5317
|
}
|
|
5318
5318
|
Ii.create = (e) => new Ii({ typeName: Mt.ZodNull, ...Pt(e) });
|
|
5319
|
-
class
|
|
5319
|
+
class Gn extends qt {
|
|
5320
5320
|
constructor() {
|
|
5321
5321
|
super(...arguments), this._any = !0;
|
|
5322
5322
|
}
|
|
@@ -5324,7 +5324,7 @@ class Xn extends qt {
|
|
|
5324
5324
|
return Ye(t.data);
|
|
5325
5325
|
}
|
|
5326
5326
|
}
|
|
5327
|
-
|
|
5327
|
+
Gn.create = (e) => new Gn({ typeName: Mt.ZodAny, ...Pt(e) });
|
|
5328
5328
|
class _n extends qt {
|
|
5329
5329
|
constructor() {
|
|
5330
5330
|
super(...arguments), this._unknown = !0;
|
|
@@ -5359,8 +5359,8 @@ class gr extends qt {
|
|
|
5359
5359
|
const a = r.data.length > i.exactLength.value, o = r.data.length < i.exactLength.value;
|
|
5360
5360
|
(a || o) && (ft(r, { code: a ? J.too_big : J.too_small, minimum: o ? i.exactLength.value : void 0, maximum: a ? i.exactLength.value : void 0, type: "array", inclusive: !0, exact: !0, message: i.exactLength.message }), n.dirty());
|
|
5361
5361
|
}
|
|
5362
|
-
if (i.minLength !== null && r.data.length < i.minLength.value && (ft(r, { code: J.too_small, minimum: i.minLength.value, type: "array", inclusive: !0, exact: !1, message: i.minLength.message }), n.dirty()), i.maxLength !== null && r.data.length > i.maxLength.value && (ft(r, { code: J.too_big, maximum: i.maxLength.value, type: "array", inclusive: !0, exact: !1, message: i.maxLength.message }), n.dirty()), r.common.async) return Promise.all([...r.data].map((a, o) => i.type._parseAsync(new
|
|
5363
|
-
const s = [...r.data].map((a, o) => i.type._parseSync(new
|
|
5362
|
+
if (i.minLength !== null && r.data.length < i.minLength.value && (ft(r, { code: J.too_small, minimum: i.minLength.value, type: "array", inclusive: !0, exact: !1, message: i.minLength.message }), n.dirty()), i.maxLength !== null && r.data.length > i.maxLength.value && (ft(r, { code: J.too_big, maximum: i.maxLength.value, type: "array", inclusive: !0, exact: !1, message: i.maxLength.message }), n.dirty()), r.common.async) return Promise.all([...r.data].map((a, o) => i.type._parseAsync(new Cr(r, a, r.path, o)))).then((a) => Ze.mergeArray(n, a));
|
|
5363
|
+
const s = [...r.data].map((a, o) => i.type._parseSync(new Cr(r, a, r.path, o)));
|
|
5364
5364
|
return Ze.mergeArray(n, s);
|
|
5365
5365
|
}
|
|
5366
5366
|
get element() {
|
|
@@ -5388,7 +5388,7 @@ function Pn(e) {
|
|
|
5388
5388
|
}
|
|
5389
5389
|
return new be({ ...e._def, shape: () => t });
|
|
5390
5390
|
}
|
|
5391
|
-
return e instanceof gr ? new gr({ ...e._def, type: Pn(e.element) }) : e instanceof Rr ? Rr.create(Pn(e.unwrap())) : e instanceof an ? an.create(Pn(e.unwrap())) : e instanceof
|
|
5391
|
+
return e instanceof gr ? new gr({ ...e._def, type: Pn(e.element) }) : e instanceof Rr ? Rr.create(Pn(e.unwrap())) : e instanceof an ? an.create(Pn(e.unwrap())) : e instanceof Or ? Or.create(e.items.map((t) => Pn(t))) : e;
|
|
5392
5392
|
}
|
|
5393
5393
|
gr.create = (e, t) => new gr({ type: e, minLength: null, maxLength: null, exactLength: null, typeName: Mt.ZodArray, ...Pt(t) });
|
|
5394
5394
|
class be extends qt {
|
|
@@ -5410,7 +5410,7 @@ class be extends qt {
|
|
|
5410
5410
|
const o = [];
|
|
5411
5411
|
for (const c of s) {
|
|
5412
5412
|
const d = i[c], h = n.data[c];
|
|
5413
|
-
o.push({ key: { status: "valid", value: c }, value: d._parse(new
|
|
5413
|
+
o.push({ key: { status: "valid", value: c }, value: d._parse(new Cr(n, h, n.path, c)), alwaysSet: c in n.data });
|
|
5414
5414
|
}
|
|
5415
5415
|
if (this._def.catchall instanceof Zr) {
|
|
5416
5416
|
const c = this._def.unknownKeys;
|
|
@@ -5421,7 +5421,7 @@ class be extends qt {
|
|
|
5421
5421
|
const c = this._def.catchall;
|
|
5422
5422
|
for (const d of a) {
|
|
5423
5423
|
const h = n.data[d];
|
|
5424
|
-
o.push({ key: { status: "valid", value: d }, value: c._parse(new
|
|
5424
|
+
o.push({ key: { status: "valid", value: d }, value: c._parse(new Cr(n, h, n.path, d)), alwaysSet: d in n.data });
|
|
5425
5425
|
}
|
|
5426
5426
|
}
|
|
5427
5427
|
return n.common.async ? Promise.resolve().then(async () => {
|
|
@@ -5493,7 +5493,7 @@ class be extends qt {
|
|
|
5493
5493
|
return new be({ ...this._def, shape: () => r });
|
|
5494
5494
|
}
|
|
5495
5495
|
keyof() {
|
|
5496
|
-
return
|
|
5496
|
+
return O1(te.objectKeys(this.shape));
|
|
5497
5497
|
}
|
|
5498
5498
|
}
|
|
5499
5499
|
be.create = (e, t) => new be({ shape: () => e, unknownKeys: "strip", catchall: Zr.create(), typeName: Mt.ZodObject, ...Pt(t) }), be.strictCreate = (e, t) => new be({ shape: () => e, unknownKeys: "strict", catchall: Zr.create(), typeName: Mt.ZodObject, ...Pt(t) }), be.lazycreate = (e, t) => new be({ shape: e, unknownKeys: "strip", catchall: Zr.create(), typeName: Mt.ZodObject, ...Pt(t) });
|
|
@@ -5527,7 +5527,7 @@ class Ti extends qt {
|
|
|
5527
5527
|
}
|
|
5528
5528
|
}
|
|
5529
5529
|
Ti.create = (e, t) => new Ti({ options: e, typeName: Mt.ZodUnion, ...Pt(t) });
|
|
5530
|
-
const Gr = (e) => e instanceof Ni ? Gr(e.schema) : e instanceof yr ? Gr(e.innerType()) : e instanceof
|
|
5530
|
+
const Gr = (e) => e instanceof Ni ? Gr(e.schema) : e instanceof yr ? Gr(e.innerType()) : e instanceof Ci ? [e.value] : e instanceof on ? e.options : e instanceof Oi ? te.objectValues(e.enum) : e instanceof Bi ? Gr(e._def.innerType) : e instanceof Mi ? [void 0] : e instanceof Ii ? [null] : e instanceof Rr ? [void 0, ...Gr(e.unwrap())] : e instanceof an ? [null, ...Gr(e.unwrap())] : e instanceof Sa || e instanceof Li ? Gr(e.unwrap()) : e instanceof Pi ? Gr(e._def.innerType) : [];
|
|
5531
5531
|
class Us extends qt {
|
|
5532
5532
|
_parse(t) {
|
|
5533
5533
|
const { ctx: r } = this._processInputParams(t);
|
|
@@ -5592,7 +5592,7 @@ class Ri extends qt {
|
|
|
5592
5592
|
}
|
|
5593
5593
|
}
|
|
5594
5594
|
Ri.create = (e, t, r) => new Ri({ left: e, right: t, typeName: Mt.ZodIntersection, ...Pt(r) });
|
|
5595
|
-
class
|
|
5595
|
+
class Or extends qt {
|
|
5596
5596
|
_parse(t) {
|
|
5597
5597
|
const { status: r, ctx: n } = this._processInputParams(t);
|
|
5598
5598
|
if (n.parsedType !== bt.array) return ft(n, { code: J.invalid_type, expected: bt.array, received: n.parsedType }), kt;
|
|
@@ -5600,7 +5600,7 @@ class Cr extends qt {
|
|
|
5600
5600
|
!this._def.rest && n.data.length > this._def.items.length && (ft(n, { code: J.too_big, maximum: this._def.items.length, inclusive: !0, exact: !1, type: "array" }), r.dirty());
|
|
5601
5601
|
const i = [...n.data].map((s, a) => {
|
|
5602
5602
|
const o = this._def.items[a] || this._def.rest;
|
|
5603
|
-
return o ? o._parse(new
|
|
5603
|
+
return o ? o._parse(new Cr(n, s, n.path, a)) : null;
|
|
5604
5604
|
}).filter((s) => !!s);
|
|
5605
5605
|
return n.common.async ? Promise.all(i).then((s) => Ze.mergeArray(r, s)) : Ze.mergeArray(r, i);
|
|
5606
5606
|
}
|
|
@@ -5608,12 +5608,12 @@ class Cr extends qt {
|
|
|
5608
5608
|
return this._def.items;
|
|
5609
5609
|
}
|
|
5610
5610
|
rest(t) {
|
|
5611
|
-
return new
|
|
5611
|
+
return new Or({ ...this._def, rest: t });
|
|
5612
5612
|
}
|
|
5613
5613
|
}
|
|
5614
|
-
|
|
5614
|
+
Or.create = (e, t) => {
|
|
5615
5615
|
if (!Array.isArray(e)) throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
|
|
5616
|
-
return new
|
|
5616
|
+
return new Or({ items: e, typeName: Mt.ZodTuple, rest: null, ...Pt(t) });
|
|
5617
5617
|
};
|
|
5618
5618
|
class qs extends qt {
|
|
5619
5619
|
get keySchema() {
|
|
@@ -5626,7 +5626,7 @@ class qs extends qt {
|
|
|
5626
5626
|
const { status: r, ctx: n } = this._processInputParams(t);
|
|
5627
5627
|
if (n.parsedType !== bt.object) return ft(n, { code: J.invalid_type, expected: bt.object, received: n.parsedType }), kt;
|
|
5628
5628
|
const i = [], s = this._def.keyType, a = this._def.valueType;
|
|
5629
|
-
for (const o in n.data) i.push({ key: s._parse(new
|
|
5629
|
+
for (const o in n.data) i.push({ key: s._parse(new Cr(n, o, n.path, o)), value: a._parse(new Cr(n, n.data[o], n.path, o)), alwaysSet: o in n.data });
|
|
5630
5630
|
return n.common.async ? Ze.mergeObjectAsync(r, i) : Ze.mergeObjectSync(r, i);
|
|
5631
5631
|
}
|
|
5632
5632
|
get element() {
|
|
@@ -5646,7 +5646,7 @@ class _s extends qt {
|
|
|
5646
5646
|
_parse(t) {
|
|
5647
5647
|
const { status: r, ctx: n } = this._processInputParams(t);
|
|
5648
5648
|
if (n.parsedType !== bt.map) return ft(n, { code: J.invalid_type, expected: bt.map, received: n.parsedType }), kt;
|
|
5649
|
-
const i = this._def.keyType, s = this._def.valueType, a = [...n.data.entries()].map(([o, c], d) => ({ key: i._parse(new
|
|
5649
|
+
const i = this._def.keyType, s = this._def.valueType, a = [...n.data.entries()].map(([o, c], d) => ({ key: i._parse(new Cr(n, o, n.path, [d, "key"])), value: s._parse(new Cr(n, c, n.path, [d, "value"])) }));
|
|
5650
5650
|
if (n.common.async) {
|
|
5651
5651
|
const o = /* @__PURE__ */ new Map();
|
|
5652
5652
|
return Promise.resolve().then(async () => {
|
|
@@ -5685,7 +5685,7 @@ class En extends qt {
|
|
|
5685
5685
|
}
|
|
5686
5686
|
return { status: r.value, value: d };
|
|
5687
5687
|
}
|
|
5688
|
-
const o = [...n.data.values()].map((c, d) => s._parse(new
|
|
5688
|
+
const o = [...n.data.values()].map((c, d) => s._parse(new Cr(n, c, n.path, d)));
|
|
5689
5689
|
return n.common.async ? Promise.all(o).then((c) => a(c)) : a(o);
|
|
5690
5690
|
}
|
|
5691
5691
|
min(t, r) {
|
|
@@ -5702,7 +5702,7 @@ class En extends qt {
|
|
|
5702
5702
|
}
|
|
5703
5703
|
}
|
|
5704
5704
|
En.create = (e, t) => new En({ valueType: e, minSize: null, maxSize: null, typeName: Mt.ZodSet, ...Pt(t) });
|
|
5705
|
-
class
|
|
5705
|
+
class Kn extends qt {
|
|
5706
5706
|
constructor() {
|
|
5707
5707
|
super(...arguments), this.validate = this.implement;
|
|
5708
5708
|
}
|
|
@@ -5710,13 +5710,13 @@ class Vn extends qt {
|
|
|
5710
5710
|
const { ctx: r } = this._processInputParams(t);
|
|
5711
5711
|
if (r.parsedType !== bt.function) return ft(r, { code: J.invalid_type, expected: bt.function, received: r.parsedType }), kt;
|
|
5712
5712
|
function n(o, c) {
|
|
5713
|
-
return ys({ data: o, path: r.path, errorMaps: [r.common.contextualErrorMap, r.schemaErrorMap, bs(),
|
|
5713
|
+
return ys({ data: o, path: r.path, errorMaps: [r.common.contextualErrorMap, r.schemaErrorMap, bs(), Xn].filter((d) => !!d), issueData: { code: J.invalid_arguments, argumentsError: c } });
|
|
5714
5714
|
}
|
|
5715
5715
|
function i(o, c) {
|
|
5716
|
-
return ys({ data: o, path: r.path, errorMaps: [r.common.contextualErrorMap, r.schemaErrorMap, bs(),
|
|
5716
|
+
return ys({ data: o, path: r.path, errorMaps: [r.common.contextualErrorMap, r.schemaErrorMap, bs(), Xn].filter((d) => !!d), issueData: { code: J.invalid_return_type, returnTypeError: c } });
|
|
5717
5717
|
}
|
|
5718
5718
|
const s = { errorMap: r.common.contextualErrorMap }, a = r.data;
|
|
5719
|
-
if (this._def.returns instanceof
|
|
5719
|
+
if (this._def.returns instanceof ti) {
|
|
5720
5720
|
const o = this;
|
|
5721
5721
|
return Ye(async function(...c) {
|
|
5722
5722
|
const d = new er([]), h = await o._def.args.parseAsync(c, s).catch((w) => {
|
|
@@ -5745,10 +5745,10 @@ class Vn extends qt {
|
|
|
5745
5745
|
return this._def.returns;
|
|
5746
5746
|
}
|
|
5747
5747
|
args(...t) {
|
|
5748
|
-
return new
|
|
5748
|
+
return new Kn({ ...this._def, args: Or.create(t).rest(_n.create()) });
|
|
5749
5749
|
}
|
|
5750
5750
|
returns(t) {
|
|
5751
|
-
return new
|
|
5751
|
+
return new Kn({ ...this._def, returns: t });
|
|
5752
5752
|
}
|
|
5753
5753
|
implement(t) {
|
|
5754
5754
|
return this.parse(t);
|
|
@@ -5757,7 +5757,7 @@ class Vn extends qt {
|
|
|
5757
5757
|
return this.parse(t);
|
|
5758
5758
|
}
|
|
5759
5759
|
static create(t, r, n) {
|
|
5760
|
-
return new
|
|
5760
|
+
return new Kn({ args: t || Or.create([]).rest(_n.create()), returns: r || _n.create(), typeName: Mt.ZodFunction, ...Pt(n) });
|
|
5761
5761
|
}
|
|
5762
5762
|
}
|
|
5763
5763
|
class Ni extends qt {
|
|
@@ -5770,7 +5770,7 @@ class Ni extends qt {
|
|
|
5770
5770
|
}
|
|
5771
5771
|
}
|
|
5772
5772
|
Ni.create = (e, t) => new Ni({ getter: e, typeName: Mt.ZodLazy, ...Pt(t) });
|
|
5773
|
-
class
|
|
5773
|
+
class Ci extends qt {
|
|
5774
5774
|
_parse(t) {
|
|
5775
5775
|
if (t.data !== this._def.value) {
|
|
5776
5776
|
const r = this._getOrReturnCtx(t);
|
|
@@ -5782,10 +5782,10 @@ class Oi extends qt {
|
|
|
5782
5782
|
return this._def.value;
|
|
5783
5783
|
}
|
|
5784
5784
|
}
|
|
5785
|
-
function
|
|
5785
|
+
function O1(e, t) {
|
|
5786
5786
|
return new on({ values: e, typeName: Mt.ZodEnum, ...Pt(t) });
|
|
5787
5787
|
}
|
|
5788
|
-
|
|
5788
|
+
Ci.create = (e, t) => new Ci({ value: e, typeName: Mt.ZodLiteral, ...Pt(t) });
|
|
5789
5789
|
class on extends qt {
|
|
5790
5790
|
_parse(t) {
|
|
5791
5791
|
if (typeof t.data != "string") {
|
|
@@ -5823,8 +5823,8 @@ class on extends qt {
|
|
|
5823
5823
|
return on.create(this.options.filter((n) => !t.includes(n)), { ...this._def, ...r });
|
|
5824
5824
|
}
|
|
5825
5825
|
}
|
|
5826
|
-
on.create =
|
|
5827
|
-
class
|
|
5826
|
+
on.create = O1;
|
|
5827
|
+
class Oi extends qt {
|
|
5828
5828
|
_parse(t) {
|
|
5829
5829
|
const r = te.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(t);
|
|
5830
5830
|
if (n.parsedType !== bt.string && n.parsedType !== bt.number) {
|
|
@@ -5841,8 +5841,8 @@ class Ci extends qt {
|
|
|
5841
5841
|
return this._def.values;
|
|
5842
5842
|
}
|
|
5843
5843
|
}
|
|
5844
|
-
|
|
5845
|
-
class
|
|
5844
|
+
Oi.create = (e, t) => new Oi({ values: e, typeName: Mt.ZodNativeEnum, ...Pt(t) });
|
|
5845
|
+
class ti extends qt {
|
|
5846
5846
|
unwrap() {
|
|
5847
5847
|
return this._def.type;
|
|
5848
5848
|
}
|
|
@@ -5853,7 +5853,7 @@ class Gn extends qt {
|
|
|
5853
5853
|
return Ye(n.then((i) => this._def.type.parseAsync(i, { path: r.path, errorMap: r.common.contextualErrorMap })));
|
|
5854
5854
|
}
|
|
5855
5855
|
}
|
|
5856
|
-
|
|
5856
|
+
ti.create = (e, t) => new ti({ type: e, typeName: Mt.ZodPromise, ...Pt(t) });
|
|
5857
5857
|
class yr extends qt {
|
|
5858
5858
|
innerType() {
|
|
5859
5859
|
return this._def.schema;
|
|
@@ -6001,7 +6001,7 @@ function I0(e, t) {
|
|
|
6001
6001
|
return typeof r == "string" ? { message: r } : r;
|
|
6002
6002
|
}
|
|
6003
6003
|
function T0(e, t = {}, r) {
|
|
6004
|
-
return e ?
|
|
6004
|
+
return e ? Gn.create().superRefine((n, i) => {
|
|
6005
6005
|
const s = e(n);
|
|
6006
6006
|
if (s instanceof Promise) return s.then((a) => {
|
|
6007
6007
|
if (!a) {
|
|
@@ -6013,7 +6013,7 @@ function T0(e, t = {}, r) {
|
|
|
6013
6013
|
const a = I0(t, n), o = a.fatal ?? r ?? !0;
|
|
6014
6014
|
i.addIssue({ code: "custom", ...a, fatal: o });
|
|
6015
6015
|
}
|
|
6016
|
-
}) :
|
|
6016
|
+
}) : Gn.create();
|
|
6017
6017
|
}
|
|
6018
6018
|
Li.create = (e, t) => new Li({ innerType: e, typeName: Mt.ZodReadonly, ...Pt(t) });
|
|
6019
6019
|
const x2 = { object: be.lazycreate };
|
|
@@ -6021,13 +6021,13 @@ var Mt;
|
|
|
6021
6021
|
(function(e) {
|
|
6022
6022
|
e.ZodString = "ZodString", e.ZodNumber = "ZodNumber", e.ZodNaN = "ZodNaN", e.ZodBigInt = "ZodBigInt", e.ZodBoolean = "ZodBoolean", e.ZodDate = "ZodDate", e.ZodSymbol = "ZodSymbol", e.ZodUndefined = "ZodUndefined", e.ZodNull = "ZodNull", e.ZodAny = "ZodAny", e.ZodUnknown = "ZodUnknown", e.ZodNever = "ZodNever", e.ZodVoid = "ZodVoid", e.ZodArray = "ZodArray", e.ZodObject = "ZodObject", e.ZodUnion = "ZodUnion", e.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", e.ZodIntersection = "ZodIntersection", e.ZodTuple = "ZodTuple", e.ZodRecord = "ZodRecord", e.ZodMap = "ZodMap", e.ZodSet = "ZodSet", e.ZodFunction = "ZodFunction", e.ZodLazy = "ZodLazy", e.ZodLiteral = "ZodLiteral", e.ZodEnum = "ZodEnum", e.ZodEffects = "ZodEffects", e.ZodNativeEnum = "ZodNativeEnum", e.ZodOptional = "ZodOptional", e.ZodNullable = "ZodNullable", e.ZodDefault = "ZodDefault", e.ZodCatch = "ZodCatch", e.ZodPromise = "ZodPromise", e.ZodBranded = "ZodBranded", e.ZodPipeline = "ZodPipeline", e.ZodReadonly = "ZodReadonly";
|
|
6023
6023
|
})(Mt || (Mt = {}));
|
|
6024
|
-
const R0 = br.create, N0 = nn.create, A2 = xs.create, S2 = sn.create,
|
|
6024
|
+
const R0 = br.create, N0 = nn.create, A2 = xs.create, S2 = sn.create, C0 = ki.create, E2 = Sn.create, k2 = vs.create, M2 = Mi.create, I2 = Ii.create, Qo = Gn.create, T2 = _n.create, R2 = Zr.create, N2 = ws.create, B1 = gr.create, is = be.create, C2 = be.strictCreate, P1 = Ti.create, O2 = Us.create, B2 = Ri.create, L1 = Or.create, P2 = qs.create, L2 = _s.create, z2 = En.create, j2 = Kn.create, U2 = Ni.create, q2 = Ci.create, $2 = on.create, H2 = Oi.create, D2 = ti.create, O0 = yr.create, F2 = Rr.create, Z2 = an.create, V2 = yr.createWithPreprocess, K2 = Hi.create, W2 = { string: (e) => br.create({ ...e, coerce: !0 }), number: (e) => nn.create({ ...e, coerce: !0 }), boolean: (e) => ki.create({ ...e, coerce: !0 }), bigint: (e) => sn.create({ ...e, coerce: !0 }), date: (e) => Sn.create({ ...e, coerce: !0 }) }, Y2 = kt, B0 = Object.freeze(Object.defineProperty({ __proto__: null, BRAND: _2, DIRTY: gs, EMPTY_PATH: [], INVALID: kt, NEVER: Y2, OK: Ye, ParseStatus: Ze, Schema: qt, ZodAny: Gn, ZodArray: gr, ZodBigInt: sn, ZodBoolean: ki, ZodBranded: Sa, ZodCatch: Pi, ZodDate: Sn, ZodDefault: Bi, ZodDiscriminatedUnion: Us, ZodEffects: yr, ZodEnum: on, ZodError: er, get ZodFirstPartyTypeKind() {
|
|
6025
6025
|
return Mt;
|
|
6026
|
-
}, ZodFunction:
|
|
6026
|
+
}, ZodFunction: Kn, ZodIntersection: Ri, ZodIssueCode: J, ZodLazy: Ni, ZodLiteral: Ci, ZodMap: _s, ZodNaN: xs, ZodNativeEnum: Oi, ZodNever: Zr, ZodNull: Ii, ZodNullable: an, ZodNumber: nn, ZodObject: be, ZodOptional: Rr, ZodParsedType: bt, ZodPipeline: Hi, ZodPromise: ti, ZodReadonly: Li, ZodRecord: qs, ZodSchema: qt, ZodSet: En, ZodString: br, ZodSymbol: vs, ZodTransformer: yr, ZodTuple: Or, ZodType: qt, ZodUndefined: Mi, ZodUnion: Ti, ZodUnknown: _n, ZodVoid: ws, addIssueToContext: ft, any: Qo, array: B1, bigint: S2, boolean: C0, coerce: W2, custom: T0, date: E2, datetimeRegex: C1, defaultErrorMap: Xn, discriminatedUnion: O2, effect: O0, enum: $2, function: j2, getErrorMap: bs, getParsedType: Ur, instanceof: (e, t = { message: `Input not instance of ${e.name}` }) => T0((r) => r instanceof e, t), intersection: B2, isAborted: Ko, isAsync: Ei, isDirty: Wo, isValid: An, late: x2, lazy: U2, literal: q2, makeIssue: ys, map: L2, nan: A2, nativeEnum: H2, never: R2, null: I2, nullable: Z2, number: N0, object: is, get objectUtil() {
|
|
6027
6027
|
return Vo;
|
|
6028
|
-
}, oboolean: () =>
|
|
6028
|
+
}, oboolean: () => C0().optional(), onumber: () => N0().optional(), optional: F2, ostring: () => R0().optional(), pipeline: K2, preprocess: V2, promise: D2, quotelessJson: (e) => JSON.stringify(e, null, 2).replace(/"([^"]+)":/g, "$1:"), record: P2, set: z2, setErrorMap: function(e) {
|
|
6029
6029
|
T1 = e;
|
|
6030
|
-
}, strictObject:
|
|
6030
|
+
}, strictObject: C2, string: R0, symbol: k2, transformer: O0, tuple: L1, undefined: M2, union: P1, unknown: T2, get util() {
|
|
6031
6031
|
return te;
|
|
6032
6032
|
}, void: N2 }, Symbol.toStringTag, { value: "Module" })), Q2 = (e) => e.message ? e.message : "unspecified error";
|
|
6033
6033
|
class As extends Le {
|
|
@@ -6172,7 +6172,7 @@ const rl = Object.freeze(Object.defineProperty({ __proto__: null, abiSchemaToJso
|
|
|
6172
6172
|
let r;
|
|
6173
6173
|
return r = Xo(e) ? Es(e) : typeof e != "string" || Pe(e) || e.toLowerCase().startsWith("0x") ? e : `0x${e}`, !!/^(0x)?[0-9a-f]{40}$/i.test(r) && (!(!/^(0x|0X)?[0-9a-f]{40}$/.test(r) && !/^(0x|0X)?[0-9A-F]{40}$/.test(r)) || !t || ((n) => {
|
|
6174
6174
|
if (!/^(0x)?[0-9a-f]{40}$/i.test(n)) return !1;
|
|
6175
|
-
const i = n.slice(2), s =
|
|
6175
|
+
const i = n.slice(2), s = Vn(i.toLowerCase()), a = Es(Aa(Ds(s))).slice(2);
|
|
6176
6176
|
for (let o = 0; o < 40; o += 1) if (parseInt(a[o], 16) > 7 && i[o].toUpperCase() !== i[o] || parseInt(a[o], 16) <= 7 && i[o].toLowerCase() !== i[o]) return !1;
|
|
6177
6177
|
return !0;
|
|
6178
6178
|
})(r));
|
|
@@ -6226,11 +6226,11 @@ const rl = Object.freeze(Object.defineProperty({ __proto__: null, abiSchemaToJso
|
|
|
6226
6226
|
for (let e = 8; e <= 256; e += 8) kn[`int${e}`] = (t) => ta(t, { bitSize: e }), kn[`uint${e}`] = (t) => Ma(t, { bitSize: e });
|
|
6227
6227
|
for (let e = 1; e <= 32; e += 1) kn[`bytes${e}`] = (t) => U1(t, { size: e });
|
|
6228
6228
|
kn.bytes256 = kn.bytes;
|
|
6229
|
-
const
|
|
6229
|
+
const mi = (e) => {
|
|
6230
6230
|
if ((!(e != null && e.type) || (e == null ? void 0 : e.type) === "object") && (e != null && e.properties)) {
|
|
6231
6231
|
const t = {};
|
|
6232
6232
|
for (const r of Object.keys(e.properties)) {
|
|
6233
|
-
const n =
|
|
6233
|
+
const n = mi(e.properties[r]);
|
|
6234
6234
|
n && (t[r] = n);
|
|
6235
6235
|
}
|
|
6236
6236
|
return Array.isArray(e.required) ? is(t).partial().required(e.required.reduce((r, n) => Object.assign(Object.assign({}, r), { [n]: !0 }), {})) : is(t).partial();
|
|
@@ -6239,16 +6239,16 @@ const pi = (e) => {
|
|
|
6239
6239
|
if (Array.isArray(e.items) && e.items.length > 1 && e.maxItems !== void 0 && new Set(e.items.map((n) => n.$id)).size === e.items.length) {
|
|
6240
6240
|
const n = [];
|
|
6241
6241
|
for (const i of e.items) {
|
|
6242
|
-
const s =
|
|
6242
|
+
const s = mi(i);
|
|
6243
6243
|
s && n.push(s);
|
|
6244
6244
|
}
|
|
6245
6245
|
return L1(n);
|
|
6246
6246
|
}
|
|
6247
6247
|
const t = Array.isArray(e.items) ? e.items[0] : e.items;
|
|
6248
|
-
let r = B1(
|
|
6248
|
+
let r = B1(mi(t));
|
|
6249
6249
|
return r = e.minItems !== void 0 ? r.min(e.minItems) : r, r = e.maxItems !== void 0 ? r.max(e.maxItems) : r, r;
|
|
6250
6250
|
}
|
|
6251
|
-
if (e.oneOf && Array.isArray(e.oneOf)) return P1(e.oneOf.map((t) =>
|
|
6251
|
+
if (e.oneOf && Array.isArray(e.oneOf)) return P1(e.oneOf.map((t) => mi(t)));
|
|
6252
6252
|
if (e != null && e.format) {
|
|
6253
6253
|
if (!kn[e.format]) throw new Du(e.format);
|
|
6254
6254
|
return Qo().refine(kn[e.format], (t) => ({ params: { value: t, format: e.format } }));
|
|
@@ -6261,7 +6261,7 @@ class Hn {
|
|
|
6261
6261
|
}
|
|
6262
6262
|
validate(t, r, n) {
|
|
6263
6263
|
var i, s;
|
|
6264
|
-
const a =
|
|
6264
|
+
const a = mi(t).safeParse(r);
|
|
6265
6265
|
if (!a.success) {
|
|
6266
6266
|
const o = this.convertErrors((s = (i = a.error) === null || i === void 0 ? void 0 : i.issues) !== null && s !== void 0 ? s : []);
|
|
6267
6267
|
if (o) {
|
|
@@ -6320,7 +6320,7 @@ const zi = (e) => {
|
|
|
6320
6320
|
Di.validate(["string"], [e]);
|
|
6321
6321
|
let t = e.replace(/^(?:\u0000)/, "");
|
|
6322
6322
|
return t = t.replace(/(?:\u0000)$/, ""), Fs(new TextEncoder().encode(t));
|
|
6323
|
-
}, sl = D1, ol =
|
|
6323
|
+
}, sl = D1, ol = Vn, Ia = (e) => {
|
|
6324
6324
|
if (!_i(e, !1)) throw new _1(e);
|
|
6325
6325
|
const t = e.toLowerCase().replace(/^0x/i, ""), r = Es(Aa(Ds(ol(t))));
|
|
6326
6326
|
if (Ge(r) || r === "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470") return "";
|
|
@@ -6384,7 +6384,7 @@ var F1 = { exports: {} };
|
|
|
6384
6384
|
for (_ = 1, I = new Array(S - 1); _ < S; _++) I[_ - 1] = arguments[_];
|
|
6385
6385
|
M.fn.apply(M.context, I);
|
|
6386
6386
|
} else {
|
|
6387
|
-
var
|
|
6387
|
+
var O, k = M.length;
|
|
6388
6388
|
for (_ = 0; _ < k; _++) switch (M[_].once && this.removeListener(c, M[_].fn, void 0, !0), S) {
|
|
6389
6389
|
case 1:
|
|
6390
6390
|
M[_].fn.call(M[_].context);
|
|
@@ -6399,7 +6399,7 @@ var F1 = { exports: {} };
|
|
|
6399
6399
|
M[_].fn.call(M[_].context, d, h, p);
|
|
6400
6400
|
break;
|
|
6401
6401
|
default:
|
|
6402
|
-
if (!I) for (
|
|
6402
|
+
if (!I) for (O = 1, I = new Array(S - 1); O < S; O++) I[O - 1] = arguments[O];
|
|
6403
6403
|
M[_].fn.apply(M[_].context, I);
|
|
6404
6404
|
}
|
|
6405
6405
|
}
|
|
@@ -6424,12 +6424,12 @@ var F1 = { exports: {} };
|
|
|
6424
6424
|
return c ? (d = r ? r + c : c, this._events[d] && a(this, d)) : (this._events = new n(), this._eventsCount = 0), this;
|
|
6425
6425
|
}, o.prototype.off = o.prototype.removeListener, o.prototype.addListener = o.prototype.on, o.prefixed = r, o.EventEmitter = o, e.exports = o;
|
|
6426
6426
|
})(F1);
|
|
6427
|
-
const al =
|
|
6427
|
+
const al = ni(F1.exports), ea = Ge, $0 = (e, t, r = "0") => typeof e == "string" ? Pe(e) ? Jo(e, t, r) : e.padStart(t, r) : (Di.validate(["int"], [e]), Jo(e, t, r)), Z1 = "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", cl = (e) => {
|
|
6428
6428
|
let t;
|
|
6429
|
-
t = typeof e == "string" ? e.startsWith("0x") && Pe(e) ? ji(e) :
|
|
6429
|
+
t = typeof e == "string" ? e.startsWith("0x") && Pe(e) ? ji(e) : Vn(e) : e;
|
|
6430
6430
|
const r = ((n) => {
|
|
6431
6431
|
let i;
|
|
6432
|
-
return i = typeof n == "bigint" || typeof n == "number" ?
|
|
6432
|
+
return i = typeof n == "bigint" || typeof n == "number" ? Vn(n.toString()) : Array.isArray(n) ? new Uint8Array(n) : typeof n != "string" || Pe(n) ? zi(n) : Vn(n), Fs(Aa(Ds(i)));
|
|
6433
6433
|
})(t);
|
|
6434
6434
|
return r === Z1 ? void 0 : r;
|
|
6435
6435
|
}, Ta = (e) => {
|
|
@@ -6811,7 +6811,7 @@ var ra = { exports: {} };
|
|
|
6811
6811
|
this.append(P, x[P]);
|
|
6812
6812
|
}, this);
|
|
6813
6813
|
}
|
|
6814
|
-
function
|
|
6814
|
+
function O(x) {
|
|
6815
6815
|
if (!x._noBody) return x.bodyUsed ? Promise.reject(new TypeError("Already read")) : void (x.bodyUsed = !0);
|
|
6816
6816
|
}
|
|
6817
6817
|
function k(x) {
|
|
@@ -6837,7 +6837,7 @@ var ra = { exports: {} };
|
|
|
6837
6837
|
var P;
|
|
6838
6838
|
this.bodyUsed = this.bodyUsed, this._bodyInit = x, x ? typeof x == "string" ? this._bodyText = x : h && Blob.prototype.isPrototypeOf(x) ? this._bodyBlob = x : p && FormData.prototype.isPrototypeOf(x) ? this._bodyFormData = x : c && URLSearchParams.prototype.isPrototypeOf(x) ? this._bodyText = x.toString() : w && h && (P = x) && DataView.prototype.isPrototypeOf(P) ? (this._bodyArrayBuffer = L(x.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : w && (ArrayBuffer.prototype.isPrototypeOf(x) || A(x)) ? this._bodyArrayBuffer = L(x) : this._bodyText = x = Object.prototype.toString.call(x) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof x == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : c && URLSearchParams.prototype.isPrototypeOf(x) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
6839
6839
|
}, h && (this.blob = function() {
|
|
6840
|
-
var x =
|
|
6840
|
+
var x = O(this);
|
|
6841
6841
|
if (x) return x;
|
|
6842
6842
|
if (this._bodyBlob) return Promise.resolve(this._bodyBlob);
|
|
6843
6843
|
if (this._bodyArrayBuffer) return Promise.resolve(new Blob([this._bodyArrayBuffer]));
|
|
@@ -6845,13 +6845,13 @@ var ra = { exports: {} };
|
|
|
6845
6845
|
return Promise.resolve(new Blob([this._bodyText]));
|
|
6846
6846
|
}), this.arrayBuffer = function() {
|
|
6847
6847
|
if (this._bodyArrayBuffer) {
|
|
6848
|
-
var x =
|
|
6848
|
+
var x = O(this);
|
|
6849
6849
|
return x || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)) : Promise.resolve(this._bodyArrayBuffer));
|
|
6850
6850
|
}
|
|
6851
6851
|
if (h) return this.blob().then(N);
|
|
6852
6852
|
throw new Error("could not read as ArrayBuffer");
|
|
6853
6853
|
}, this.text = function() {
|
|
6854
|
-
var x, P, R, j, Z, U =
|
|
6854
|
+
var x, P, R, j, Z, U = O(this);
|
|
6855
6855
|
if (U) return U;
|
|
6856
6856
|
if (this._bodyBlob) return x = this._bodyBlob, P = new FileReader(), R = k(P), j = /charset=([A-Za-z0-9_-]+)/.exec(x.type), Z = j ? j[1] : "utf-8", P.readAsText(x, Z), R;
|
|
6857
6857
|
if (this._bodyArrayBuffer) return Promise.resolve(function(V) {
|
|
@@ -7015,7 +7015,7 @@ var ra = { exports: {} };
|
|
|
7015
7015
|
var i = r.fetch ? r : n;
|
|
7016
7016
|
(t = i.fetch).default = i.fetch, t.fetch = i.fetch, t.Headers = i.Headers, t.Request = i.Request, t.Response = i.Response, e.exports = t;
|
|
7017
7017
|
})(ra, ra.exports);
|
|
7018
|
-
const bl =
|
|
7018
|
+
const bl = ni(ra.exports);
|
|
7019
7019
|
var yl = function(e, t, r, n) {
|
|
7020
7020
|
return new (r || (r = Promise))(function(i, s) {
|
|
7021
7021
|
function a(d) {
|
|
@@ -7159,7 +7159,7 @@ class Q1 extends _a {
|
|
|
7159
7159
|
return xn(this), this.iHash.update(t), this;
|
|
7160
7160
|
}
|
|
7161
7161
|
digestInto(t) {
|
|
7162
|
-
xn(this),
|
|
7162
|
+
xn(this), oi(t, this.outputLen), this.finished = !0, this.iHash.digestInto(t), this.oHash.update(t), this.oHash.digestInto(t), this.destroy();
|
|
7163
7163
|
}
|
|
7164
7164
|
digest() {
|
|
7165
7165
|
const t = new Uint8Array(this.oHash.outputLen);
|
|
@@ -7203,8 +7203,8 @@ class xl extends _a {
|
|
|
7203
7203
|
for (let p = a; p < i; p++) r[p] = 0;
|
|
7204
7204
|
(function(p, w, v, A) {
|
|
7205
7205
|
if (typeof p.setBigUint64 == "function") return p.setBigUint64(w, v, A);
|
|
7206
|
-
const I = BigInt(32), _ = BigInt(4294967295), M = Number(v >> I & _), S = Number(v & _),
|
|
7207
|
-
p.setUint32(w +
|
|
7206
|
+
const I = BigInt(32), _ = BigInt(4294967295), M = Number(v >> I & _), S = Number(v & _), O = A ? 4 : 0, k = A ? 0 : 4;
|
|
7207
|
+
p.setUint32(w + O, M, A), p.setUint32(w + k, S, A);
|
|
7208
7208
|
})(n, i - 8, BigInt(8 * this.length), s), this.process(n, 0);
|
|
7209
7209
|
const o = so(t), c = this.outputLen;
|
|
7210
7210
|
if (c % 4) throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
@@ -7265,7 +7265,7 @@ function Fi(e) {
|
|
|
7265
7265
|
if (!Mn(e)) throw new Error("Uint8Array expected");
|
|
7266
7266
|
}
|
|
7267
7267
|
const Ml = Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
7268
|
-
function
|
|
7268
|
+
function ei(e) {
|
|
7269
7269
|
Fi(e);
|
|
7270
7270
|
let t = "";
|
|
7271
7271
|
for (let r = 0; r < e.length; r++) t += Ml[e[r]];
|
|
@@ -7283,7 +7283,7 @@ const Q0 = 48, Il = 57, J0 = 65, Tl = 70, X0 = 97, Rl = 102;
|
|
|
7283
7283
|
function G0(e) {
|
|
7284
7284
|
return e >= Q0 && e <= Il ? e - Q0 : e >= J0 && e <= Tl ? e - (J0 - 10) : e >= X0 && e <= Rl ? e - (X0 - 10) : void 0;
|
|
7285
7285
|
}
|
|
7286
|
-
function
|
|
7286
|
+
function ri(e) {
|
|
7287
7287
|
if (typeof e != "string") throw new Error("hex string expected, got " + typeof e);
|
|
7288
7288
|
const t = e.length, r = t / 2;
|
|
7289
7289
|
if (t % 2) throw new Error("padded hex string expected, got unpadded hex of length " + t);
|
|
@@ -7299,21 +7299,21 @@ function ei(e) {
|
|
|
7299
7299
|
return n;
|
|
7300
7300
|
}
|
|
7301
7301
|
function gn(e) {
|
|
7302
|
-
return Na(
|
|
7302
|
+
return Na(ei(e));
|
|
7303
7303
|
}
|
|
7304
|
-
function
|
|
7305
|
-
return Fi(e), Na(
|
|
7304
|
+
function Ca(e) {
|
|
7305
|
+
return Fi(e), Na(ei(Uint8Array.from(e).reverse()));
|
|
7306
7306
|
}
|
|
7307
|
-
function
|
|
7308
|
-
return
|
|
7307
|
+
function Wn(e, t) {
|
|
7308
|
+
return ri(e.toString(16).padStart(2 * t, "0"));
|
|
7309
7309
|
}
|
|
7310
|
-
function
|
|
7311
|
-
return
|
|
7310
|
+
function Oa(e, t) {
|
|
7311
|
+
return Wn(e, t).reverse();
|
|
7312
7312
|
}
|
|
7313
7313
|
function lr(e, t, r) {
|
|
7314
7314
|
let n;
|
|
7315
7315
|
if (typeof t == "string") try {
|
|
7316
|
-
n =
|
|
7316
|
+
n = ri(t);
|
|
7317
7317
|
} catch (s) {
|
|
7318
7318
|
throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${s}`);
|
|
7319
7319
|
}
|
|
@@ -7377,7 +7377,7 @@ function qi(e, t, r = {}) {
|
|
|
7377
7377
|
for (const [i, s] of Object.entries(r)) n(i, s, !0);
|
|
7378
7378
|
return e;
|
|
7379
7379
|
}
|
|
7380
|
-
const
|
|
7380
|
+
const Cl = Object.freeze(Object.defineProperty({ __proto__: null, abytes: Fi, bitGet: function(e, t) {
|
|
7381
7381
|
return e >> BigInt(t) & os;
|
|
7382
7382
|
}, bitLen: function(e) {
|
|
7383
7383
|
let t;
|
|
@@ -7385,17 +7385,17 @@ const Ol = Object.freeze(Object.defineProperty({ __proto__: null, abytes: Fi, bi
|
|
|
7385
7385
|
return t;
|
|
7386
7386
|
}, bitMask: Ba, bitSet: function(e, t, r) {
|
|
7387
7387
|
return e | (r ? os : W0) << BigInt(t);
|
|
7388
|
-
}, bytesToHex:
|
|
7388
|
+
}, bytesToHex: ei, bytesToNumberBE: gn, bytesToNumberLE: Ca, concatBytes: Ui, createHmacDrbg: X1, ensureBytes: lr, equalBytes: function(e, t) {
|
|
7389
7389
|
if (e.length !== t.length) return !1;
|
|
7390
7390
|
let r = 0;
|
|
7391
7391
|
for (let n = 0; n < e.length; n++) r |= e[n] ^ t[n];
|
|
7392
7392
|
return r === 0;
|
|
7393
|
-
}, hexToBytes:
|
|
7394
|
-
return
|
|
7393
|
+
}, hexToBytes: ri, hexToNumber: Na, isBytes: Mn, numberToBytesBE: Wn, numberToBytesLE: Oa, numberToHexUnpadded: Y0, numberToVarBytesBE: function(e) {
|
|
7394
|
+
return ri(Y0(e));
|
|
7395
7395
|
}, utf8ToBytes: function(e) {
|
|
7396
7396
|
if (typeof e != "string") throw new Error("utf8ToBytes expected string, got " + typeof e);
|
|
7397
7397
|
return new Uint8Array(new TextEncoder().encode(e));
|
|
7398
|
-
}, validateObject: qi }, Symbol.toStringTag, { value: "Module" })), Be = BigInt(0), Ae = BigInt(1), fn = BigInt(2),
|
|
7398
|
+
}, validateObject: qi }, Symbol.toStringTag, { value: "Module" })), Be = BigInt(0), Ae = BigInt(1), fn = BigInt(2), Ol = BigInt(3), uo = BigInt(4), ed = BigInt(5), rd = BigInt(8);
|
|
7399
7399
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
7400
7400
|
function Xe(e, t) {
|
|
7401
7401
|
const r = e % t;
|
|
@@ -7424,7 +7424,7 @@ function na(e, t) {
|
|
|
7424
7424
|
return Xe(i, t);
|
|
7425
7425
|
}
|
|
7426
7426
|
function Pl(e) {
|
|
7427
|
-
if (e % uo ===
|
|
7427
|
+
if (e % uo === Ol) {
|
|
7428
7428
|
const t = (e + Ae) / uo;
|
|
7429
7429
|
return function(r, n) {
|
|
7430
7430
|
const i = r.pow(n, t);
|
|
@@ -7489,7 +7489,7 @@ function ef(e) {
|
|
|
7489
7489
|
return qi(e.Fp, Ll.reduce((t, r) => (t[r] = "function", t), { ORDER: "bigint", MASK: "bigint", BYTES: "isSafeInteger", BITS: "isSafeInteger" })), qi(e, { n: "bigint", h: "bigint", Gx: "field", Gy: "field" }, { nBitLength: "isSafeInteger", nByteLength: "isSafeInteger" }), Object.freeze({ ...G1(e.n, e.nBitLength), ...e, p: e.Fp.ORDER });
|
|
7490
7490
|
}
|
|
7491
7491
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
7492
|
-
const { bytesToNumberBE: jl, hexToBytes: Ul } =
|
|
7492
|
+
const { bytesToNumberBE: jl, hexToBytes: Ul } = Cl, vn = { Err: class extends Error {
|
|
7493
7493
|
constructor(e = "") {
|
|
7494
7494
|
super(e);
|
|
7495
7495
|
}
|
|
@@ -7550,16 +7550,16 @@ function ql(e) {
|
|
|
7550
7550
|
function c(A) {
|
|
7551
7551
|
const { allowedPrivateKeyLengths: I, nByteLength: _, wrapPrivateKey: M, n: S } = t;
|
|
7552
7552
|
if (I && typeof A != "bigint") {
|
|
7553
|
-
if (Mn(A) && (A =
|
|
7553
|
+
if (Mn(A) && (A = ei(A)), typeof A != "string" || !I.includes(A.length)) throw new Error("Invalid key");
|
|
7554
7554
|
A = A.padStart(2 * _, "0");
|
|
7555
7555
|
}
|
|
7556
|
-
let
|
|
7556
|
+
let O;
|
|
7557
7557
|
try {
|
|
7558
|
-
|
|
7558
|
+
O = typeof A == "bigint" ? A : gn(lr("private key", A, _));
|
|
7559
7559
|
} catch {
|
|
7560
7560
|
throw new Error(`private key must be ${_} bytes, hex or bigint, not ${typeof A}`);
|
|
7561
7561
|
}
|
|
7562
|
-
return M && (
|
|
7562
|
+
return M && (O = Xe(O, S)), o(O), O;
|
|
7563
7563
|
}
|
|
7564
7564
|
const d = /* @__PURE__ */ new Map();
|
|
7565
7565
|
function h(A) {
|
|
@@ -7575,7 +7575,7 @@ function ql(e) {
|
|
|
7575
7575
|
const { x: _, y: M } = I || {};
|
|
7576
7576
|
if (!I || !r.isValid(_) || !r.isValid(M)) throw new Error("invalid affine point");
|
|
7577
7577
|
if (I instanceof p) throw new Error("projective point not allowed");
|
|
7578
|
-
const S = (
|
|
7578
|
+
const S = (O) => r.eql(O, r.ZERO);
|
|
7579
7579
|
return S(_) && S(M) ? p.ZERO : new p(_, M, r.ONE);
|
|
7580
7580
|
}
|
|
7581
7581
|
get x() {
|
|
@@ -7616,25 +7616,25 @@ function ql(e) {
|
|
|
7616
7616
|
}
|
|
7617
7617
|
equals(I) {
|
|
7618
7618
|
h(I);
|
|
7619
|
-
const { px: _, py: M, pz: S } = this, { px:
|
|
7619
|
+
const { px: _, py: M, pz: S } = this, { px: O, py: k, pz: N } = I, L = r.eql(r.mul(_, N), r.mul(O, S)), z = r.eql(r.mul(M, N), r.mul(k, S));
|
|
7620
7620
|
return L && z;
|
|
7621
7621
|
}
|
|
7622
7622
|
negate() {
|
|
7623
7623
|
return new p(this.px, r.neg(this.py), this.pz);
|
|
7624
7624
|
}
|
|
7625
7625
|
double() {
|
|
7626
|
-
const { a: I, b: _ } = t, M = r.mul(_, id), { px: S, py:
|
|
7627
|
-
let N = r.ZERO, L = r.ZERO, z = r.ZERO, f = r.mul(S, S), l = r.mul(
|
|
7628
|
-
return m = r.add(m, m), z = r.mul(S, k), z = r.add(z, z), N = r.mul(I, z), L = r.mul(M, g), L = r.add(N, L), N = r.sub(l, L), L = r.add(l, L), L = r.mul(N, L), N = r.mul(m, N), z = r.mul(M, z), g = r.mul(I, g), m = r.sub(f, g), m = r.mul(I, m), m = r.add(m, z), z = r.add(f, f), f = r.add(z, f), f = r.add(f, g), f = r.mul(f, m), L = r.add(L, f), g = r.mul(
|
|
7626
|
+
const { a: I, b: _ } = t, M = r.mul(_, id), { px: S, py: O, pz: k } = this;
|
|
7627
|
+
let N = r.ZERO, L = r.ZERO, z = r.ZERO, f = r.mul(S, S), l = r.mul(O, O), g = r.mul(k, k), m = r.mul(S, O);
|
|
7628
|
+
return m = r.add(m, m), z = r.mul(S, k), z = r.add(z, z), N = r.mul(I, z), L = r.mul(M, g), L = r.add(N, L), N = r.sub(l, L), L = r.add(l, L), L = r.mul(N, L), N = r.mul(m, N), z = r.mul(M, z), g = r.mul(I, g), m = r.sub(f, g), m = r.mul(I, m), m = r.add(m, z), z = r.add(f, f), f = r.add(z, f), f = r.add(f, g), f = r.mul(f, m), L = r.add(L, f), g = r.mul(O, k), g = r.add(g, g), f = r.mul(g, m), N = r.sub(N, f), z = r.mul(g, l), z = r.add(z, z), z = r.add(z, z), new p(N, L, z);
|
|
7629
7629
|
}
|
|
7630
7630
|
add(I) {
|
|
7631
7631
|
h(I);
|
|
7632
|
-
const { px: _, py: M, pz: S } = this, { px:
|
|
7632
|
+
const { px: _, py: M, pz: S } = this, { px: O, py: k, pz: N } = I;
|
|
7633
7633
|
let L = r.ZERO, z = r.ZERO, f = r.ZERO;
|
|
7634
7634
|
const l = t.a, g = r.mul(t.b, id);
|
|
7635
|
-
let m = r.mul(_,
|
|
7635
|
+
let m = r.mul(_, O), u = r.mul(M, k), y = r.mul(S, N), x = r.add(_, M), P = r.add(O, k);
|
|
7636
7636
|
x = r.mul(x, P), P = r.add(m, u), x = r.sub(x, P), P = r.add(_, S);
|
|
7637
|
-
let R = r.add(
|
|
7637
|
+
let R = r.add(O, N);
|
|
7638
7638
|
return P = r.mul(P, R), R = r.add(m, y), P = r.sub(P, R), R = r.add(M, S), L = r.add(k, N), R = r.mul(R, L), L = r.add(u, y), R = r.sub(R, L), f = r.mul(l, P), L = r.mul(g, y), f = r.add(L, f), L = r.sub(u, f), f = r.add(u, f), z = r.mul(L, f), u = r.add(m, m), u = r.add(u, m), y = r.mul(l, y), P = r.mul(g, P), u = r.add(u, y), y = r.sub(m, y), y = r.mul(l, y), P = r.add(P, y), m = r.mul(u, P), z = r.add(z, m), m = r.mul(R, P), L = r.mul(x, L), L = r.sub(L, m), m = r.mul(x, u), f = r.mul(R, f), f = r.add(f, m), new p(L, z, f);
|
|
7639
7639
|
}
|
|
7640
7640
|
subtract(I) {
|
|
@@ -7646,7 +7646,7 @@ function ql(e) {
|
|
|
7646
7646
|
wNAF(I) {
|
|
7647
7647
|
return v.wNAFCached(this, d, I, (_) => {
|
|
7648
7648
|
const M = r.invertBatch(_.map((S) => S.pz));
|
|
7649
|
-
return _.map((S,
|
|
7649
|
+
return _.map((S, O) => S.toAffine(M[O])).map(p.fromAffine);
|
|
7650
7650
|
});
|
|
7651
7651
|
}
|
|
7652
7652
|
multiplyUnsafe(I) {
|
|
@@ -7655,18 +7655,18 @@ function ql(e) {
|
|
|
7655
7655
|
if (o(I), I === dr) return this;
|
|
7656
7656
|
const { endo: M } = t;
|
|
7657
7657
|
if (!M) return v.unsafeLadder(this, I);
|
|
7658
|
-
let { k1neg: S, k1:
|
|
7659
|
-
for (;
|
|
7658
|
+
let { k1neg: S, k1: O, k2neg: k, k2: N } = M.splitScalar(I), L = _, z = _, f = this;
|
|
7659
|
+
for (; O > Hr || N > Hr; ) O & dr && (L = L.add(f)), N & dr && (z = z.add(f)), f = f.double(), O >>= dr, N >>= dr;
|
|
7660
7660
|
return S && (L = L.negate()), k && (z = z.negate()), z = new p(r.mul(z.px, M.beta), z.py, z.pz), L.add(z);
|
|
7661
7661
|
}
|
|
7662
7662
|
multiply(I) {
|
|
7663
7663
|
o(I);
|
|
7664
7664
|
let _, M, S = I;
|
|
7665
|
-
const { endo:
|
|
7666
|
-
if (
|
|
7667
|
-
const { k1neg: k, k1: N, k2neg: L, k2: z } =
|
|
7665
|
+
const { endo: O } = t;
|
|
7666
|
+
if (O) {
|
|
7667
|
+
const { k1neg: k, k1: N, k2neg: L, k2: z } = O.splitScalar(S);
|
|
7668
7668
|
let { p: f, f: l } = this.wNAF(N), { p: g, f: m } = this.wNAF(z);
|
|
7669
|
-
f = v.constTimeNegate(k, f), g = v.constTimeNegate(L, g), g = new p(r.mul(g.px,
|
|
7669
|
+
f = v.constTimeNegate(k, f), g = v.constTimeNegate(L, g), g = new p(r.mul(g.px, O.beta), g.py, g.pz), _ = f.add(g), M = l.add(m);
|
|
7670
7670
|
} else {
|
|
7671
7671
|
const { p: k, f: N } = this.wNAF(S);
|
|
7672
7672
|
_ = k, M = N;
|
|
@@ -7674,14 +7674,14 @@ function ql(e) {
|
|
|
7674
7674
|
return p.normalizeZ([_, M])[0];
|
|
7675
7675
|
}
|
|
7676
7676
|
multiplyAndAddUnsafe(I, _, M) {
|
|
7677
|
-
const S = p.BASE,
|
|
7677
|
+
const S = p.BASE, O = (N, L) => L !== Hr && L !== dr && N.equals(S) ? N.multiply(L) : N.multiplyUnsafe(L), k = O(this, _).add(O(I, M));
|
|
7678
7678
|
return k.is0() ? void 0 : k;
|
|
7679
7679
|
}
|
|
7680
7680
|
toAffine(I) {
|
|
7681
|
-
const { px: _, py: M, pz: S } = this,
|
|
7682
|
-
I == null && (I =
|
|
7681
|
+
const { px: _, py: M, pz: S } = this, O = this.is0();
|
|
7682
|
+
I == null && (I = O ? r.ONE : r.inv(S));
|
|
7683
7683
|
const k = r.mul(_, I), N = r.mul(M, I), L = r.mul(S, I);
|
|
7684
|
-
if (
|
|
7684
|
+
if (O) return { x: r.ZERO, y: r.ZERO };
|
|
7685
7685
|
if (!r.eql(L, r.ONE)) throw new Error("invZ was invalid");
|
|
7686
7686
|
return { x: k, y: N };
|
|
7687
7687
|
}
|
|
@@ -7699,21 +7699,21 @@ function ql(e) {
|
|
|
7699
7699
|
return this.assertValidity(), n(p, this, I);
|
|
7700
7700
|
}
|
|
7701
7701
|
toHex(I = !0) {
|
|
7702
|
-
return
|
|
7702
|
+
return ei(this.toRawBytes(I));
|
|
7703
7703
|
}
|
|
7704
7704
|
}
|
|
7705
7705
|
p.BASE = new p(t.Gx, t.Gy, r.ONE), p.ZERO = new p(r.ZERO, r.ONE, r.ZERO);
|
|
7706
7706
|
const w = t.nBitLength, v = /* @__PURE__ */ function(A, I) {
|
|
7707
|
-
const _ = (S,
|
|
7708
|
-
const k =
|
|
7709
|
-
return S ? k :
|
|
7707
|
+
const _ = (S, O) => {
|
|
7708
|
+
const k = O.negate();
|
|
7709
|
+
return S ? k : O;
|
|
7710
7710
|
}, M = (S) => ({ windows: Math.ceil(I / S) + 1, windowSize: 2 ** (S - 1) });
|
|
7711
|
-
return { constTimeNegate: _, unsafeLadder(S,
|
|
7711
|
+
return { constTimeNegate: _, unsafeLadder(S, O) {
|
|
7712
7712
|
let k = A.ZERO, N = S;
|
|
7713
|
-
for (;
|
|
7713
|
+
for (; O > zl; ) O & lo && (k = k.add(N)), N = N.double(), O >>= lo;
|
|
7714
7714
|
return k;
|
|
7715
|
-
}, precomputeWindow(S,
|
|
7716
|
-
const { windows: k, windowSize: N } = M(
|
|
7715
|
+
}, precomputeWindow(S, O) {
|
|
7716
|
+
const { windows: k, windowSize: N } = M(O), L = [];
|
|
7717
7717
|
let z = S, f = z;
|
|
7718
7718
|
for (let l = 0; l < k; l++) {
|
|
7719
7719
|
f = z, L.push(f);
|
|
@@ -7721,7 +7721,7 @@ function ql(e) {
|
|
|
7721
7721
|
z = f.double();
|
|
7722
7722
|
}
|
|
7723
7723
|
return L;
|
|
7724
|
-
}, wNAF(S,
|
|
7724
|
+
}, wNAF(S, O, k) {
|
|
7725
7725
|
const { windows: N, windowSize: L } = M(S);
|
|
7726
7726
|
let z = A.ZERO, f = A.BASE;
|
|
7727
7727
|
const l = BigInt(2 ** S - 1), g = 2 ** S, m = BigInt(S);
|
|
@@ -7730,13 +7730,13 @@ function ql(e) {
|
|
|
7730
7730
|
let x = Number(k & l);
|
|
7731
7731
|
k >>= m, x > L && (x -= g, k += lo);
|
|
7732
7732
|
const P = y, R = y + Math.abs(x) - 1, j = u % 2 != 0, Z = x < 0;
|
|
7733
|
-
x === 0 ? f = f.add(_(j,
|
|
7733
|
+
x === 0 ? f = f.add(_(j, O[P])) : z = z.add(_(Z, O[R]));
|
|
7734
7734
|
}
|
|
7735
7735
|
return { p: z, f };
|
|
7736
|
-
}, wNAFCached(S,
|
|
7736
|
+
}, wNAFCached(S, O, k, N) {
|
|
7737
7737
|
const L = S._WINDOW_SIZE || 1;
|
|
7738
|
-
let z =
|
|
7739
|
-
return z || (z = this.precomputeWindow(S, L), L !== 1 &&
|
|
7738
|
+
let z = O.get(S);
|
|
7739
|
+
return z || (z = this.precomputeWindow(S, L), L !== 1 && O.set(S, N(z))), this.wNAF(L, z, k);
|
|
7740
7740
|
} };
|
|
7741
7741
|
}(p, t.endo ? Math.ceil(w / 2) : w);
|
|
7742
7742
|
return { CURVE: t, ProjectivePoint: p, normPrivateKeyToScalar: c, weierstrassEquation: s, isWithinCurveOrder: a };
|
|
@@ -7776,7 +7776,7 @@ function $l(e) {
|
|
|
7776
7776
|
return !(1 & ~m) != ((R & dr) === dr) && (R = r.neg(R)), { x, y: R };
|
|
7777
7777
|
}
|
|
7778
7778
|
var y;
|
|
7779
|
-
} }), w = (l) =>
|
|
7779
|
+
} }), w = (l) => ei(Wn(l, t.nByteLength));
|
|
7780
7780
|
function v(l) {
|
|
7781
7781
|
return l > n >> dr;
|
|
7782
7782
|
}
|
|
@@ -7801,7 +7801,7 @@ function $l(e) {
|
|
|
7801
7801
|
return new I(this.r, this.s, g);
|
|
7802
7802
|
}
|
|
7803
7803
|
recoverPublicKey(g) {
|
|
7804
|
-
const { r: m, s: u, recovery: y } = this, x =
|
|
7804
|
+
const { r: m, s: u, recovery: y } = this, x = O(lr("msgHash", g));
|
|
7805
7805
|
if (y == null || ![0, 1, 2, 3].includes(y)) throw new Error("recovery id invalid");
|
|
7806
7806
|
const P = y === 2 || y === 3 ? m + t.n : m;
|
|
7807
7807
|
if (P >= r.ORDER) throw new Error("recovery id 2 or 3 invalid");
|
|
@@ -7816,13 +7816,13 @@ function $l(e) {
|
|
|
7816
7816
|
return this.hasHighS() ? new I(this.r, a(-this.s), this.recovery) : this;
|
|
7817
7817
|
}
|
|
7818
7818
|
toDERRawBytes() {
|
|
7819
|
-
return
|
|
7819
|
+
return ri(this.toDERHex());
|
|
7820
7820
|
}
|
|
7821
7821
|
toDERHex() {
|
|
7822
7822
|
return vn.hexFromSig({ r: this.r, s: this.s });
|
|
7823
7823
|
}
|
|
7824
7824
|
toCompactRawBytes() {
|
|
7825
|
-
return
|
|
7825
|
+
return ri(this.toCompactHex());
|
|
7826
7826
|
}
|
|
7827
7827
|
toCompactHex() {
|
|
7828
7828
|
return w(this.r) + w(this.s);
|
|
@@ -7839,8 +7839,8 @@ function $l(e) {
|
|
|
7839
7839
|
return function(g, m, u = !1) {
|
|
7840
7840
|
const y = g.length, x = tf(m), P = nd(m);
|
|
7841
7841
|
if (y < 16 || y < P || y > 1024) throw new Error(`expected ${P}-1024 bytes of input, got ${y}`);
|
|
7842
|
-
const R = Xe(u ? gn(g) :
|
|
7843
|
-
return u ?
|
|
7842
|
+
const R = Xe(u ? gn(g) : Ca(g), m - Ae) + Ae;
|
|
7843
|
+
return u ? Oa(R, x) : Wn(R, x);
|
|
7844
7844
|
}(t.randomBytes(l), t.n);
|
|
7845
7845
|
}, precompute: (l = 8, g = c.BASE) => (g._setWindowSize(l), g.multiply(BigInt(3)), g) };
|
|
7846
7846
|
function M(l) {
|
|
@@ -7850,20 +7850,20 @@ function $l(e) {
|
|
|
7850
7850
|
const S = t.bits2int || function(l) {
|
|
7851
7851
|
const g = gn(l), m = 8 * l.length - t.nBitLength;
|
|
7852
7852
|
return m > 0 ? g >> BigInt(m) : g;
|
|
7853
|
-
},
|
|
7853
|
+
}, O = t.bits2int_modN || function(l) {
|
|
7854
7854
|
return a(S(l));
|
|
7855
7855
|
}, k = Ba(t.nBitLength);
|
|
7856
7856
|
function N(l) {
|
|
7857
7857
|
if (typeof l != "bigint") throw new Error("bigint expected");
|
|
7858
7858
|
if (!(Hr <= l && l < k)) throw new Error(`bigint expected < 2^${t.nBitLength}`);
|
|
7859
|
-
return
|
|
7859
|
+
return Wn(l, t.nByteLength);
|
|
7860
7860
|
}
|
|
7861
7861
|
function L(l, g, m = z) {
|
|
7862
7862
|
if (["recovered", "canonical"].some((H) => H in m)) throw new Error("sign() legacy options not supported");
|
|
7863
7863
|
const { hash: u, randomBytes: y } = t;
|
|
7864
7864
|
let { lowS: x, prehash: P, extraEntropy: R } = m;
|
|
7865
7865
|
x == null && (x = !0), l = lr("msgHash", l), P && (l = lr("prehashed msgHash", u(l)));
|
|
7866
|
-
const j =
|
|
7866
|
+
const j = O(l), Z = d(g), U = [N(Z), N(j)];
|
|
7867
7867
|
if (R != null && R !== !1) {
|
|
7868
7868
|
const H = R === !0 ? y(r.BYTES) : R;
|
|
7869
7869
|
U.push(lr("extraEntropy", H));
|
|
@@ -7919,7 +7919,7 @@ function $l(e) {
|
|
|
7919
7919
|
}
|
|
7920
7920
|
if (x && R.hasHighS()) return !1;
|
|
7921
7921
|
P && (g = t.hash(g));
|
|
7922
|
-
const { r: Z, s: U } = R, V =
|
|
7922
|
+
const { r: Z, s: U } = R, V = O(g), F = o(U), H = a(V * F), X = a(Z * F), Rt = (dt = c.BASE.multiplyAndAddUnsafe(j, H, X)) == null ? void 0 : dt.toAffine();
|
|
7923
7923
|
return !!Rt && a(Rt.x) === Z;
|
|
7924
7924
|
}, ProjectivePoint: c, Signature: I, utils: _ };
|
|
7925
7925
|
}
|
|
@@ -7929,7 +7929,7 @@ function Hl(e) {
|
|
|
7929
7929
|
let i = 0;
|
|
7930
7930
|
for (let a = 0; a < n.length; a++) {
|
|
7931
7931
|
const o = n[a];
|
|
7932
|
-
|
|
7932
|
+
oi(o), i += o.length;
|
|
7933
7933
|
}
|
|
7934
7934
|
const s = new Uint8Array(i);
|
|
7935
7935
|
for (let a = 0, o = 0; a < n.length; a++) {
|
|
@@ -7958,13 +7958,13 @@ const sd = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefff
|
|
|
7958
7958
|
}(o, c, d), div: (c, d) => Xe(c * na(d, e), e), sqrN: (c) => c * c, addN: (c, d) => c + d, subN: (c, d) => c - d, mulN: (c, d) => c * d, inv: (c) => na(c, e), sqrt: n.sqrt || ((c) => a(o, c)), invertBatch: (c) => function(d, h) {
|
|
7959
7959
|
const p = new Array(h.length), w = h.reduce((A, I, _) => d.is0(I) ? A : (p[_] = A, d.mul(A, I)), d.ONE), v = d.inv(w);
|
|
7960
7960
|
return h.reduceRight((A, I, _) => d.is0(I) ? A : (p[_] = d.mul(A, p[_]), d.mul(A, I)), v), p;
|
|
7961
|
-
}(o, c), cmov: (c, d, h) => h ? d : c, toBytes: (c) => r ?
|
|
7961
|
+
}(o, c), cmov: (c, d, h) => h ? d : c, toBytes: (c) => r ? Oa(c, s) : Wn(c, s), fromBytes: (c) => {
|
|
7962
7962
|
if (c.length !== s) throw new Error(`Fp.fromBytes: expected ${s}, got ${c.length}`);
|
|
7963
|
-
return r ?
|
|
7963
|
+
return r ? Ca(c) : gn(c);
|
|
7964
7964
|
} });
|
|
7965
7965
|
return Object.freeze(o);
|
|
7966
7966
|
}(sd, void 0, void 0, { sqrt: function(e) {
|
|
7967
|
-
const t = sd, r = BigInt(3), n = BigInt(6), i = BigInt(11), s = BigInt(22), a = BigInt(23), o = BigInt(44), c = BigInt(88), d = e * e * e % t, h = d * d * e % t, p = or(h, r, t) * h % t, w = or(p, r, t) * h % t, v = or(w, ia, t) * d % t, A = or(v, i, t) * v % t, I = or(A, s, t) * A % t, _ = or(I, o, t) * I % t, M = or(_, c, t) * _ % t, S = or(M, o, t) * I % t,
|
|
7967
|
+
const t = sd, r = BigInt(3), n = BigInt(6), i = BigInt(11), s = BigInt(22), a = BigInt(23), o = BigInt(44), c = BigInt(88), d = e * e * e % t, h = d * d * e % t, p = or(h, r, t) * h % t, w = or(p, r, t) * h % t, v = or(w, ia, t) * d % t, A = or(v, i, t) * v % t, I = or(A, s, t) * A % t, _ = or(I, o, t) * I % t, M = or(_, c, t) * _ % t, S = or(M, o, t) * I % t, O = or(S, r, t) * h % t, k = or(O, a, t) * A % t, N = or(k, n, t) * d % t, L = or(N, ia, t);
|
|
7968
7968
|
if (!sa.eql(sa.sqr(L), e)) throw new Error("Cannot find square root");
|
|
7969
7969
|
return L;
|
|
7970
7970
|
} }), Pa = function(e, t) {
|
|
@@ -8011,7 +8011,7 @@ function La(e) {
|
|
|
8011
8011
|
const t = af(e);
|
|
8012
8012
|
return t.length === 1 && t[0] < 128 ? t : aa(md(t.length, 128), t);
|
|
8013
8013
|
}
|
|
8014
|
-
function
|
|
8014
|
+
function On(e, t, r) {
|
|
8015
8015
|
if (r > e.length) throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");
|
|
8016
8016
|
return e.slice(t, r);
|
|
8017
8017
|
}
|
|
@@ -8036,23 +8036,23 @@ function oa(e) {
|
|
|
8036
8036
|
const a = [], o = e[0];
|
|
8037
8037
|
if (o <= 127) return { data: e.slice(0, 1), remainder: e.slice(1) };
|
|
8038
8038
|
if (o <= 183) {
|
|
8039
|
-
if (t = o - 127, n = o === 128 ? Uint8Array.from([]) :
|
|
8039
|
+
if (t = o - 127, n = o === 128 ? Uint8Array.from([]) : On(e, 1, t), t === 2 && n[0] < 128) throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");
|
|
8040
8040
|
return { data: n, remainder: e.slice(t) };
|
|
8041
8041
|
}
|
|
8042
8042
|
if (o <= 191) {
|
|
8043
8043
|
if (r = o - 182, e.length - 1 < r) throw new Error("invalid RLP: not enough bytes for string length");
|
|
8044
|
-
if (t = pd(
|
|
8045
|
-
return n =
|
|
8044
|
+
if (t = pd(On(e, 1, r)), t <= 55) throw new Error("invalid RLP: expected string length to be greater than 55");
|
|
8045
|
+
return n = On(e, r, t + r), { data: n, remainder: e.slice(t + r) };
|
|
8046
8046
|
}
|
|
8047
8047
|
if (o <= 247) {
|
|
8048
|
-
for (t = o - 191, i =
|
|
8048
|
+
for (t = o - 191, i = On(e, 1, t); i.length; ) s = oa(i), a.push(s.data), i = s.remainder;
|
|
8049
8049
|
return { data: a, remainder: e.slice(t) };
|
|
8050
8050
|
}
|
|
8051
8051
|
{
|
|
8052
|
-
if (r = o - 246, t = pd(
|
|
8052
|
+
if (r = o - 246, t = pd(On(e, 1, r)), t < 56) throw new Error("invalid RLP: encoded list too short");
|
|
8053
8053
|
const c = r + t;
|
|
8054
8054
|
if (c > e.length) throw new Error("invalid RLP: total length is larger than the data");
|
|
8055
|
-
for (i =
|
|
8055
|
+
for (i = On(e, r, c); i.length; ) s = oa(i), a.push(s.data), i = s.remainder;
|
|
8056
8056
|
return { data: a, remainder: e.slice(c) };
|
|
8057
8057
|
}
|
|
8058
8058
|
}
|
|
@@ -8112,29 +8112,29 @@ var mo, cf = {};
|
|
|
8112
8112
|
mo = function(e) {
|
|
8113
8113
|
e.version = "1.2.2";
|
|
8114
8114
|
var t = function() {
|
|
8115
|
-
for (var S = 0,
|
|
8116
|
-
return typeof Int32Array < "u" ? new Int32Array(
|
|
8115
|
+
for (var S = 0, O = new Array(256), k = 0; k != 256; ++k) S = 1 & (S = 1 & (S = 1 & (S = 1 & (S = 1 & (S = 1 & (S = 1 & (S = 1 & (S = k) ? -306674912 ^ S >>> 1 : S >>> 1) ? -306674912 ^ S >>> 1 : S >>> 1) ? -306674912 ^ S >>> 1 : S >>> 1) ? -306674912 ^ S >>> 1 : S >>> 1) ? -306674912 ^ S >>> 1 : S >>> 1) ? -306674912 ^ S >>> 1 : S >>> 1) ? -306674912 ^ S >>> 1 : S >>> 1) ? -306674912 ^ S >>> 1 : S >>> 1, O[k] = S;
|
|
8116
|
+
return typeof Int32Array < "u" ? new Int32Array(O) : O;
|
|
8117
8117
|
}(), r = function(S) {
|
|
8118
|
-
var
|
|
8118
|
+
var O = 0, k = 0, N = 0, L = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
|
|
8119
8119
|
for (N = 0; N != 256; ++N) L[N] = S[N];
|
|
8120
|
-
for (N = 0; N != 256; ++N) for (k = S[N],
|
|
8120
|
+
for (N = 0; N != 256; ++N) for (k = S[N], O = 256 + N; O < 4096; O += 256) k = L[O] = k >>> 8 ^ S[255 & k];
|
|
8121
8121
|
var z = [];
|
|
8122
8122
|
for (N = 1; N != 16; ++N) z[N - 1] = typeof Int32Array < "u" ? L.subarray(256 * N, 256 * N + 256) : L.slice(256 * N, 256 * N + 256);
|
|
8123
8123
|
return z;
|
|
8124
8124
|
}(t), n = r[0], i = r[1], s = r[2], a = r[3], o = r[4], c = r[5], d = r[6], h = r[7], p = r[8], w = r[9], v = r[10], A = r[11], I = r[12], _ = r[13], M = r[14];
|
|
8125
|
-
e.table = t, e.bstr = function(S,
|
|
8126
|
-
for (var k = -1 ^
|
|
8125
|
+
e.table = t, e.bstr = function(S, O) {
|
|
8126
|
+
for (var k = -1 ^ O, N = 0, L = S.length; N < L; ) k = k >>> 8 ^ t[255 & (k ^ S.charCodeAt(N++))];
|
|
8127
8127
|
return ~k;
|
|
8128
|
-
}, e.buf = function(S,
|
|
8129
|
-
for (var k = -1 ^
|
|
8128
|
+
}, e.buf = function(S, O) {
|
|
8129
|
+
for (var k = -1 ^ O, N = S.length - 15, L = 0; L < N; ) k = M[S[L++] ^ 255 & k] ^ _[S[L++] ^ k >> 8 & 255] ^ I[S[L++] ^ k >> 16 & 255] ^ A[S[L++] ^ k >>> 24] ^ v[S[L++]] ^ w[S[L++]] ^ p[S[L++]] ^ h[S[L++]] ^ d[S[L++]] ^ c[S[L++]] ^ o[S[L++]] ^ a[S[L++]] ^ s[S[L++]] ^ i[S[L++]] ^ n[S[L++]] ^ t[S[L++]];
|
|
8130
8130
|
for (N += 15; L < N; ) k = k >>> 8 ^ t[255 & (k ^ S[L++])];
|
|
8131
8131
|
return ~k;
|
|
8132
|
-
}, e.str = function(S,
|
|
8133
|
-
for (var k = -1 ^
|
|
8132
|
+
}, e.str = function(S, O) {
|
|
8133
|
+
for (var k = -1 ^ O, N = 0, L = S.length, z = 0, f = 0; N < L; ) (z = S.charCodeAt(N++)) < 128 ? k = k >>> 8 ^ t[255 & (k ^ z)] : z < 2048 ? k = (k = k >>> 8 ^ t[255 & (k ^ (192 | z >> 6 & 31))]) >>> 8 ^ t[255 & (k ^ (128 | 63 & z))] : z >= 55296 && z < 57344 ? (z = 64 + (1023 & z), f = 1023 & S.charCodeAt(N++), k = (k = (k = (k = k >>> 8 ^ t[255 & (k ^ (240 | z >> 8 & 7))]) >>> 8 ^ t[255 & (k ^ (128 | z >> 2 & 63))]) >>> 8 ^ t[255 & (k ^ (128 | f >> 6 & 15 | (3 & z) << 4))]) >>> 8 ^ t[255 & (k ^ (128 | 63 & f))]) : k = (k = (k = k >>> 8 ^ t[255 & (k ^ (224 | z >> 12 & 15))]) >>> 8 ^ t[255 & (k ^ (128 | z >> 6 & 63))]) >>> 8 ^ t[255 & (k ^ (128 | 63 & z))];
|
|
8134
8134
|
return ~k;
|
|
8135
8135
|
};
|
|
8136
8136
|
}, mo(typeof DO_NOT_EXPORT_CRC > "u" ? cf : {});
|
|
8137
|
-
const Vl =
|
|
8137
|
+
const Vl = ni(cf), { buf: z3 } = Vl;
|
|
8138
8138
|
var yd;
|
|
8139
8139
|
(function(e) {
|
|
8140
8140
|
e[e.EIP155ReplayProtection = 155] = "EIP155ReplayProtection", e[e.EIP1559FeeMarket = 1559] = "EIP1559FeeMarket", e[e.EIP2718TypedTransaction = 2718] = "EIP2718TypedTransaction", e[e.EIP2930AccessLists = 2930] = "EIP2930AccessLists";
|
|
@@ -8147,7 +8147,7 @@ const df = (e, t) => {
|
|
|
8147
8147
|
try {
|
|
8148
8148
|
r = H1(e) ? e : zi(e);
|
|
8149
8149
|
} catch {
|
|
8150
|
-
throw new
|
|
8150
|
+
throw new Ou();
|
|
8151
8151
|
}
|
|
8152
8152
|
if (r.byteLength !== 32) throw new v0();
|
|
8153
8153
|
return r;
|
|
@@ -8178,49 +8178,49 @@ ${n.byteLength}`)), s = t ? n : function(...a) {
|
|
|
8178
8178
|
const o = Zs.Signature.fromCompact(t.slice(2, 130)).addRecoveryBit(a).recoverPublicKey(s.replace("0x", "")).toRawBytes(!1), c = Ta(o.subarray(1));
|
|
8179
8179
|
return Ia(`0x${c.slice(-40)}`);
|
|
8180
8180
|
};
|
|
8181
|
-
class
|
|
8181
|
+
class Oe {
|
|
8182
8182
|
constructor(t) {
|
|
8183
8183
|
if (this.toAddress = () => {
|
|
8184
8184
|
if (this.isDirect()) {
|
|
8185
|
-
const r = this._iban.slice(4), n =
|
|
8185
|
+
const r = this._iban.slice(4), n = Oe._parseInt(r, 36), i = $0(n, 40);
|
|
8186
8186
|
return Ia(i);
|
|
8187
8187
|
}
|
|
8188
8188
|
throw new Error("Iban is indirect and cannot be converted. Must be length of 34 or 35");
|
|
8189
|
-
}, !
|
|
8189
|
+
}, !Oe.isIndirect(t) && !Oe.isDirect(t)) throw new Error("Invalid IBAN was provided");
|
|
8190
8190
|
this._iban = t;
|
|
8191
8191
|
}
|
|
8192
8192
|
static isDirect(t) {
|
|
8193
8193
|
return t.length === 34 || t.length === 35;
|
|
8194
8194
|
}
|
|
8195
8195
|
isDirect() {
|
|
8196
|
-
return
|
|
8196
|
+
return Oe.isDirect(this._iban);
|
|
8197
8197
|
}
|
|
8198
8198
|
static isIndirect(t) {
|
|
8199
8199
|
return t.length === 20;
|
|
8200
8200
|
}
|
|
8201
8201
|
isIndirect() {
|
|
8202
|
-
return
|
|
8202
|
+
return Oe.isIndirect(this._iban);
|
|
8203
8203
|
}
|
|
8204
8204
|
static isValid(t) {
|
|
8205
|
-
return /^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(t) &&
|
|
8205
|
+
return /^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(t) && Oe._mod9710(Oe._iso13616Prepare(t)) === 1;
|
|
8206
8206
|
}
|
|
8207
8207
|
isValid() {
|
|
8208
|
-
return
|
|
8208
|
+
return Oe.isValid(this._iban);
|
|
8209
8209
|
}
|
|
8210
8210
|
static fromBban(t) {
|
|
8211
8211
|
const r = `0${(98 - this._mod9710(this._iso13616Prepare(`XE00${t}`))).toString()}`.slice(-2);
|
|
8212
|
-
return new
|
|
8212
|
+
return new Oe(`XE${r}${t}`);
|
|
8213
8213
|
}
|
|
8214
8214
|
static createIndirect(t) {
|
|
8215
|
-
return
|
|
8215
|
+
return Oe.fromBban(`ETH${t.institution}${t.identifier}`);
|
|
8216
8216
|
}
|
|
8217
8217
|
static fromAddress(t) {
|
|
8218
8218
|
if (!_i(t)) throw new _1(t);
|
|
8219
8219
|
const r = BigInt(((s) => (Di.validate(["hex"], [s]), $s(s)))(t)), n = r.toString(36), i = $0(n, 15);
|
|
8220
|
-
return
|
|
8220
|
+
return Oe.fromBban(i.toUpperCase());
|
|
8221
8221
|
}
|
|
8222
8222
|
static toIban(t) {
|
|
8223
|
-
return
|
|
8223
|
+
return Oe.fromAddress(t).toString();
|
|
8224
8224
|
}
|
|
8225
8225
|
client() {
|
|
8226
8226
|
return this.isIndirect() ? this._iban.slice(11) : "";
|
|
@@ -8235,17 +8235,17 @@ class Ce {
|
|
|
8235
8235
|
return this._iban;
|
|
8236
8236
|
}
|
|
8237
8237
|
}
|
|
8238
|
-
|
|
8238
|
+
Oe._iso13616Prepare = (e) => {
|
|
8239
8239
|
const n = e.toUpperCase();
|
|
8240
8240
|
return `${n.slice(4)}${n.slice(0, 4)}`.split("").map((i) => {
|
|
8241
8241
|
const s = i.charCodeAt(0);
|
|
8242
8242
|
return s >= 65 && s <= 90 ? s - 65 + 10 : i;
|
|
8243
8243
|
}).join("");
|
|
8244
|
-
},
|
|
8244
|
+
}, Oe._parseInt = (e, t) => [...e].reduce((r, n) => BigInt(parseInt(n, t)) + BigInt(t) * r, BigInt(0)), Oe._mod9710 = (e) => {
|
|
8245
8245
|
let t, r = e;
|
|
8246
8246
|
for (; r.length > 2; ) t = r.slice(0, 9), r = `${(parseInt(t, 10) % 97).toString()}${r.slice(t.length)}`;
|
|
8247
8247
|
return parseInt(r, 10) % 97;
|
|
8248
|
-
},
|
|
8248
|
+
}, Oe.toAddress = (e) => new Oe(e).toAddress(), function(e) {
|
|
8249
8249
|
if (!e.setImmediate) {
|
|
8250
8250
|
var t, r, n, i, s, a = 1, o = {}, c = !1, d = e.document, h = Object.getPrototypeOf && Object.getPrototypeOf(e);
|
|
8251
8251
|
h = h && h.setTimeout ? h : e, {}.toString.call(e.process) === "[object process]" ? t = function(v) {
|
|
@@ -8322,7 +8322,7 @@ Object.assign({}, za);
|
|
|
8322
8322
|
const gd = { type: "string", enum: ["goerli", "kovan", "mainnet", "rinkeby", "ropsten", "sepolia"] }, vd = { type: "string", enum: ["arrowGlacier", "berlin", "byzantium", "chainstart", "constantinople", "dao", "homestead", "istanbul", "london", "merge", "muirGlacier", "petersburg", "shanghai", "spuriousDragon", "tangerineWhistle"] }, Wl = { properties: { from: { format: "address" }, to: { oneOf: [{ format: "address" }, { type: "null" }] }, value: { format: "uint" }, gas: { format: "uint" }, gasPrice: { format: "uint" }, effectiveGasPrice: { format: "uint" }, type: { format: "uint" }, maxFeePerGas: { format: "uint" }, maxPriorityFeePerGas: { format: "uint" }, accessList: Object.assign({}, za), data: { format: "bytes" }, input: { format: "bytes" }, nonce: { format: "uint" }, chain: Object.assign({}, gd), hardfork: Object.assign({}, vd), chainId: { format: "uint" }, networkId: { format: "uint" }, common: { type: "object", properties: { customChain: Object.assign({}, { type: "object", properties: { name: { format: "string" }, networkId: { format: "uint" }, chainId: { format: "uint" } } }), baseChain: Object.assign({}, gd), hardfork: Object.assign({}, vd) } }, gasLimit: { format: "uint" }, v: { format: "uint" }, r: { format: "bytes32" }, s: { format: "bytes32" } } }, Yl = { type: "object", properties: Object.assign(Object.assign({}, Wl.properties), { blockHash: { format: "bytes32" }, blockNumber: { format: "uint" }, hash: { format: "bytes32" }, transactionIndex: { format: "uint" }, from: { format: "address" }, to: { oneOf: [{ format: "address" }, { type: "null" }] }, value: { format: "uint" }, gas: { format: "uint" }, gasPrice: { format: "uint" }, effectiveGasPrice: { format: "uint" }, type: { format: "uint" }, maxFeePerGas: { format: "uint" }, maxPriorityFeePerGas: { format: "uint" }, accessList: Object.assign({}, za), data: { format: "bytes" }, input: { format: "bytes" }, nonce: { format: "uint" }, gasLimit: { format: "uint" }, v: { format: "uint" }, r: { format: "bytes32" }, s: { format: "bytes32" } }) }, wd = { type: "object", properties: { index: { format: "uint" }, validatorIndex: { format: "uint" }, address: { format: "address" }, amount: { format: "uint" } } };
|
|
8323
8323
|
Object.assign({}, Yl), Object.assign({}, wd), Object.assign({}, wd);
|
|
8324
8324
|
Object.assign({}, { type: "object", properties: { removed: { format: "bool" }, logIndex: { format: "uint" }, transactionIndex: { format: "uint" }, transactionHash: { format: "bytes32" }, blockHash: { format: "bytes32" }, blockNumber: { format: "uint" }, address: { format: "address" }, data: { format: "bytes" }, topics: { type: "array", items: { format: "bytes32" } } } });
|
|
8325
|
-
Object.assign({}, { type: "object", properties: { key: { format: "bytes32" }, value: { format: "uint" }, proof: { type: "array", items: { format: "bytes32" } } } }),
|
|
8325
|
+
Object.assign({}, { type: "object", properties: { key: { format: "bytes32" }, value: { format: "uint" }, proof: { type: "array", items: { format: "bytes32" } } } }), pi.HEX, li.NUMBER;
|
|
8326
8326
|
const Dn = /* @__PURE__ */ new Map();
|
|
8327
8327
|
let es = BigInt(256);
|
|
8328
8328
|
for (let e = 8; e <= 256; e += 8) Dn.set(`uint${e}`, { min: BigInt(0), max: es - BigInt(1) }), Dn.set(`int${e}`, { min: -es / BigInt(2), max: es / BigInt(2) - BigInt(1) }), es *= BigInt(256);
|
|
@@ -8524,183 +8524,183 @@ class t3 {
|
|
|
8524
8524
|
var da = { exports: {} };
|
|
8525
8525
|
(function(e) {
|
|
8526
8526
|
var t = function(T) {
|
|
8527
|
-
var
|
|
8528
|
-
if (T) for (
|
|
8527
|
+
var C, B = new Float64Array(16);
|
|
8528
|
+
if (T) for (C = 0; C < T.length; C++) B[C] = T[C];
|
|
8529
8529
|
return B;
|
|
8530
8530
|
}, r = function() {
|
|
8531
8531
|
throw new Error("no PRNG");
|
|
8532
8532
|
}, n = new Uint8Array(16), i = new Uint8Array(32);
|
|
8533
8533
|
i[0] = 9;
|
|
8534
8534
|
var s = t(), a = t([1]), o = t([56129, 1]), c = t([30883, 4953, 19914, 30187, 55467, 16705, 2637, 112, 59544, 30585, 16505, 36039, 65139, 11119, 27886, 20995]), d = t([61785, 9906, 39828, 60374, 45398, 33411, 5274, 224, 53552, 61171, 33010, 6542, 64743, 22239, 55772, 9222]), h = t([54554, 36645, 11616, 51542, 42930, 38181, 51040, 26924, 56412, 64982, 57905, 49316, 21502, 52590, 14035, 8553]), p = t([26200, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214]), w = t([41136, 18958, 6951, 50414, 58488, 44335, 6150, 12099, 55207, 15867, 153, 11085, 57099, 20417, 9344, 11139]);
|
|
8535
|
-
function v(T,
|
|
8536
|
-
T[
|
|
8535
|
+
function v(T, C, B, b) {
|
|
8536
|
+
T[C] = B >> 24 & 255, T[C + 1] = B >> 16 & 255, T[C + 2] = B >> 8 & 255, T[C + 3] = 255 & B, T[C + 4] = b >> 24 & 255, T[C + 5] = b >> 16 & 255, T[C + 6] = b >> 8 & 255, T[C + 7] = 255 & b;
|
|
8537
8537
|
}
|
|
8538
|
-
function A(T,
|
|
8538
|
+
function A(T, C, B, b, E) {
|
|
8539
8539
|
var $, D = 0;
|
|
8540
|
-
for ($ = 0; $ < E; $++) D |= T[
|
|
8540
|
+
for ($ = 0; $ < E; $++) D |= T[C + $] ^ B[b + $];
|
|
8541
8541
|
return (1 & D - 1 >>> 8) - 1;
|
|
8542
8542
|
}
|
|
8543
|
-
function I(T,
|
|
8544
|
-
return A(T,
|
|
8543
|
+
function I(T, C, B, b) {
|
|
8544
|
+
return A(T, C, B, b, 16);
|
|
8545
8545
|
}
|
|
8546
|
-
function _(T,
|
|
8547
|
-
return A(T,
|
|
8546
|
+
function _(T, C, B, b) {
|
|
8547
|
+
return A(T, C, B, b, 32);
|
|
8548
8548
|
}
|
|
8549
|
-
function M(T,
|
|
8549
|
+
function M(T, C, B, b) {
|
|
8550
8550
|
(function(E, $, D, W) {
|
|
8551
|
-
for (var q, Y = 255 & W[0] | (255 & W[1]) << 8 | (255 & W[2]) << 16 | (255 & W[3]) << 24, gt = 255 & D[0] | (255 & D[1]) << 8 | (255 & D[2]) << 16 | (255 & D[3]) << 24, G = 255 & D[4] | (255 & D[5]) << 8 | (255 & D[6]) << 16 | (255 & D[7]) << 24, ct = 255 & D[8] | (255 & D[9]) << 8 | (255 & D[10]) << 16 | (255 & D[11]) << 24, wt = 255 & D[12] | (255 & D[13]) << 8 | (255 & D[14]) << 16 | (255 & D[15]) << 24, nt = 255 & W[4] | (255 & W[5]) << 8 | (255 & W[6]) << 16 | (255 & W[7]) << 24, ht = 255 & $[0] | (255 & $[1]) << 8 | (255 & $[2]) << 16 | (255 & $[3]) << 24, xt = 255 & $[4] | (255 & $[5]) << 8 | (255 & $[6]) << 16 | (255 & $[7]) << 24, ot = 255 & $[8] | (255 & $[9]) << 8 | (255 & $[10]) << 16 | (255 & $[11]) << 24, ut = 255 & $[12] | (255 & $[13]) << 8 | (255 & $[14]) << 16 | (255 & $[15]) << 24, At = 255 & W[8] | (255 & W[9]) << 8 | (255 & W[10]) << 16 | (255 & W[11]) << 24, it = 255 & D[16] | (255 & D[17]) << 8 | (255 & D[18]) << 16 | (255 & D[19]) << 24, lt = 255 & D[20] | (255 & D[21]) << 8 | (255 & D[22]) << 16 | (255 & D[23]) << 24, Bt = 255 & D[24] | (255 & D[25]) << 8 | (255 & D[26]) << 16 | (255 & D[27]) << 24, at = 255 & D[28] | (255 & D[29]) << 8 | (255 & D[30]) << 16 | (255 & D[31]) << 24, K = 255 & W[12] | (255 & W[13]) << 8 | (255 & W[14]) << 16 | (255 & W[15]) << 24, Q = Y, st = gt, tt = G, et = ct, rt = wt,
|
|
8552
|
-
Q = Q + Y | 0, st = st + gt | 0, tt = tt + G | 0, et = et + ct | 0, rt = rt + wt | 0,
|
|
8553
|
-
})(T,
|
|
8551
|
+
for (var q, Y = 255 & W[0] | (255 & W[1]) << 8 | (255 & W[2]) << 16 | (255 & W[3]) << 24, gt = 255 & D[0] | (255 & D[1]) << 8 | (255 & D[2]) << 16 | (255 & D[3]) << 24, G = 255 & D[4] | (255 & D[5]) << 8 | (255 & D[6]) << 16 | (255 & D[7]) << 24, ct = 255 & D[8] | (255 & D[9]) << 8 | (255 & D[10]) << 16 | (255 & D[11]) << 24, wt = 255 & D[12] | (255 & D[13]) << 8 | (255 & D[14]) << 16 | (255 & D[15]) << 24, nt = 255 & W[4] | (255 & W[5]) << 8 | (255 & W[6]) << 16 | (255 & W[7]) << 24, ht = 255 & $[0] | (255 & $[1]) << 8 | (255 & $[2]) << 16 | (255 & $[3]) << 24, xt = 255 & $[4] | (255 & $[5]) << 8 | (255 & $[6]) << 16 | (255 & $[7]) << 24, ot = 255 & $[8] | (255 & $[9]) << 8 | (255 & $[10]) << 16 | (255 & $[11]) << 24, ut = 255 & $[12] | (255 & $[13]) << 8 | (255 & $[14]) << 16 | (255 & $[15]) << 24, At = 255 & W[8] | (255 & W[9]) << 8 | (255 & W[10]) << 16 | (255 & W[11]) << 24, it = 255 & D[16] | (255 & D[17]) << 8 | (255 & D[18]) << 16 | (255 & D[19]) << 24, lt = 255 & D[20] | (255 & D[21]) << 8 | (255 & D[22]) << 16 | (255 & D[23]) << 24, Bt = 255 & D[24] | (255 & D[25]) << 8 | (255 & D[26]) << 16 | (255 & D[27]) << 24, at = 255 & D[28] | (255 & D[29]) << 8 | (255 & D[30]) << 16 | (255 & D[31]) << 24, K = 255 & W[12] | (255 & W[13]) << 8 | (255 & W[14]) << 16 | (255 & W[15]) << 24, Q = Y, st = gt, tt = G, et = ct, rt = wt, Ot = nt, zt = ht, Ct = xt, Kt = ot, Qt = ut, Gt = At, St = it, It = lt, Tt = Bt, Nt = at, _t = K, jt = 0; jt < 20; jt += 2) Q ^= (q = (It ^= (q = (Kt ^= (q = (rt ^= (q = Q + It | 0) << 7 | q >>> 25) + Q | 0) << 9 | q >>> 23) + rt | 0) << 13 | q >>> 19) + Kt | 0) << 18 | q >>> 14, Ot ^= (q = (st ^= (q = (Tt ^= (q = (Qt ^= (q = Ot + st | 0) << 7 | q >>> 25) + Ot | 0) << 9 | q >>> 23) + Qt | 0) << 13 | q >>> 19) + Tt | 0) << 18 | q >>> 14, Gt ^= (q = (zt ^= (q = (tt ^= (q = (Nt ^= (q = Gt + zt | 0) << 7 | q >>> 25) + Gt | 0) << 9 | q >>> 23) + Nt | 0) << 13 | q >>> 19) + tt | 0) << 18 | q >>> 14, _t ^= (q = (St ^= (q = (Ct ^= (q = (et ^= (q = _t + St | 0) << 7 | q >>> 25) + _t | 0) << 9 | q >>> 23) + et | 0) << 13 | q >>> 19) + Ct | 0) << 18 | q >>> 14, Q ^= (q = (et ^= (q = (tt ^= (q = (st ^= (q = Q + et | 0) << 7 | q >>> 25) + Q | 0) << 9 | q >>> 23) + st | 0) << 13 | q >>> 19) + tt | 0) << 18 | q >>> 14, Ot ^= (q = (rt ^= (q = (Ct ^= (q = (zt ^= (q = Ot + rt | 0) << 7 | q >>> 25) + Ot | 0) << 9 | q >>> 23) + zt | 0) << 13 | q >>> 19) + Ct | 0) << 18 | q >>> 14, Gt ^= (q = (Qt ^= (q = (Kt ^= (q = (St ^= (q = Gt + Qt | 0) << 7 | q >>> 25) + Gt | 0) << 9 | q >>> 23) + St | 0) << 13 | q >>> 19) + Kt | 0) << 18 | q >>> 14, _t ^= (q = (Nt ^= (q = (Tt ^= (q = (It ^= (q = _t + Nt | 0) << 7 | q >>> 25) + _t | 0) << 9 | q >>> 23) + It | 0) << 13 | q >>> 19) + Tt | 0) << 18 | q >>> 14;
|
|
8552
|
+
Q = Q + Y | 0, st = st + gt | 0, tt = tt + G | 0, et = et + ct | 0, rt = rt + wt | 0, Ot = Ot + nt | 0, zt = zt + ht | 0, Ct = Ct + xt | 0, Kt = Kt + ot | 0, Qt = Qt + ut | 0, Gt = Gt + At | 0, St = St + it | 0, It = It + lt | 0, Tt = Tt + Bt | 0, Nt = Nt + at | 0, _t = _t + K | 0, E[0] = Q >>> 0 & 255, E[1] = Q >>> 8 & 255, E[2] = Q >>> 16 & 255, E[3] = Q >>> 24 & 255, E[4] = st >>> 0 & 255, E[5] = st >>> 8 & 255, E[6] = st >>> 16 & 255, E[7] = st >>> 24 & 255, E[8] = tt >>> 0 & 255, E[9] = tt >>> 8 & 255, E[10] = tt >>> 16 & 255, E[11] = tt >>> 24 & 255, E[12] = et >>> 0 & 255, E[13] = et >>> 8 & 255, E[14] = et >>> 16 & 255, E[15] = et >>> 24 & 255, E[16] = rt >>> 0 & 255, E[17] = rt >>> 8 & 255, E[18] = rt >>> 16 & 255, E[19] = rt >>> 24 & 255, E[20] = Ot >>> 0 & 255, E[21] = Ot >>> 8 & 255, E[22] = Ot >>> 16 & 255, E[23] = Ot >>> 24 & 255, E[24] = zt >>> 0 & 255, E[25] = zt >>> 8 & 255, E[26] = zt >>> 16 & 255, E[27] = zt >>> 24 & 255, E[28] = Ct >>> 0 & 255, E[29] = Ct >>> 8 & 255, E[30] = Ct >>> 16 & 255, E[31] = Ct >>> 24 & 255, E[32] = Kt >>> 0 & 255, E[33] = Kt >>> 8 & 255, E[34] = Kt >>> 16 & 255, E[35] = Kt >>> 24 & 255, E[36] = Qt >>> 0 & 255, E[37] = Qt >>> 8 & 255, E[38] = Qt >>> 16 & 255, E[39] = Qt >>> 24 & 255, E[40] = Gt >>> 0 & 255, E[41] = Gt >>> 8 & 255, E[42] = Gt >>> 16 & 255, E[43] = Gt >>> 24 & 255, E[44] = St >>> 0 & 255, E[45] = St >>> 8 & 255, E[46] = St >>> 16 & 255, E[47] = St >>> 24 & 255, E[48] = It >>> 0 & 255, E[49] = It >>> 8 & 255, E[50] = It >>> 16 & 255, E[51] = It >>> 24 & 255, E[52] = Tt >>> 0 & 255, E[53] = Tt >>> 8 & 255, E[54] = Tt >>> 16 & 255, E[55] = Tt >>> 24 & 255, E[56] = Nt >>> 0 & 255, E[57] = Nt >>> 8 & 255, E[58] = Nt >>> 16 & 255, E[59] = Nt >>> 24 & 255, E[60] = _t >>> 0 & 255, E[61] = _t >>> 8 & 255, E[62] = _t >>> 16 & 255, E[63] = _t >>> 24 & 255;
|
|
8553
|
+
})(T, C, B, b);
|
|
8554
8554
|
}
|
|
8555
|
-
function S(T,
|
|
8555
|
+
function S(T, C, B, b) {
|
|
8556
8556
|
(function(E, $, D, W) {
|
|
8557
8557
|
for (var q, Y = 255 & W[0] | (255 & W[1]) << 8 | (255 & W[2]) << 16 | (255 & W[3]) << 24, gt = 255 & D[0] | (255 & D[1]) << 8 | (255 & D[2]) << 16 | (255 & D[3]) << 24, G = 255 & D[4] | (255 & D[5]) << 8 | (255 & D[6]) << 16 | (255 & D[7]) << 24, ct = 255 & D[8] | (255 & D[9]) << 8 | (255 & D[10]) << 16 | (255 & D[11]) << 24, wt = 255 & D[12] | (255 & D[13]) << 8 | (255 & D[14]) << 16 | (255 & D[15]) << 24, nt = 255 & W[4] | (255 & W[5]) << 8 | (255 & W[6]) << 16 | (255 & W[7]) << 24, ht = 255 & $[0] | (255 & $[1]) << 8 | (255 & $[2]) << 16 | (255 & $[3]) << 24, xt = 255 & $[4] | (255 & $[5]) << 8 | (255 & $[6]) << 16 | (255 & $[7]) << 24, ot = 255 & $[8] | (255 & $[9]) << 8 | (255 & $[10]) << 16 | (255 & $[11]) << 24, ut = 255 & $[12] | (255 & $[13]) << 8 | (255 & $[14]) << 16 | (255 & $[15]) << 24, At = 255 & W[8] | (255 & W[9]) << 8 | (255 & W[10]) << 16 | (255 & W[11]) << 24, it = 255 & D[16] | (255 & D[17]) << 8 | (255 & D[18]) << 16 | (255 & D[19]) << 24, lt = 255 & D[20] | (255 & D[21]) << 8 | (255 & D[22]) << 16 | (255 & D[23]) << 24, Bt = 255 & D[24] | (255 & D[25]) << 8 | (255 & D[26]) << 16 | (255 & D[27]) << 24, at = 255 & D[28] | (255 & D[29]) << 8 | (255 & D[30]) << 16 | (255 & D[31]) << 24, K = 255 & W[12] | (255 & W[13]) << 8 | (255 & W[14]) << 16 | (255 & W[15]) << 24, Q = 0; Q < 20; Q += 2) Y ^= (q = (lt ^= (q = (ot ^= (q = (wt ^= (q = Y + lt | 0) << 7 | q >>> 25) + Y | 0) << 9 | q >>> 23) + wt | 0) << 13 | q >>> 19) + ot | 0) << 18 | q >>> 14, nt ^= (q = (gt ^= (q = (Bt ^= (q = (ut ^= (q = nt + gt | 0) << 7 | q >>> 25) + nt | 0) << 9 | q >>> 23) + ut | 0) << 13 | q >>> 19) + Bt | 0) << 18 | q >>> 14, At ^= (q = (ht ^= (q = (G ^= (q = (at ^= (q = At + ht | 0) << 7 | q >>> 25) + At | 0) << 9 | q >>> 23) + at | 0) << 13 | q >>> 19) + G | 0) << 18 | q >>> 14, K ^= (q = (it ^= (q = (xt ^= (q = (ct ^= (q = K + it | 0) << 7 | q >>> 25) + K | 0) << 9 | q >>> 23) + ct | 0) << 13 | q >>> 19) + xt | 0) << 18 | q >>> 14, Y ^= (q = (ct ^= (q = (G ^= (q = (gt ^= (q = Y + ct | 0) << 7 | q >>> 25) + Y | 0) << 9 | q >>> 23) + gt | 0) << 13 | q >>> 19) + G | 0) << 18 | q >>> 14, nt ^= (q = (wt ^= (q = (xt ^= (q = (ht ^= (q = nt + wt | 0) << 7 | q >>> 25) + nt | 0) << 9 | q >>> 23) + ht | 0) << 13 | q >>> 19) + xt | 0) << 18 | q >>> 14, At ^= (q = (ut ^= (q = (ot ^= (q = (it ^= (q = At + ut | 0) << 7 | q >>> 25) + At | 0) << 9 | q >>> 23) + it | 0) << 13 | q >>> 19) + ot | 0) << 18 | q >>> 14, K ^= (q = (at ^= (q = (Bt ^= (q = (lt ^= (q = K + at | 0) << 7 | q >>> 25) + K | 0) << 9 | q >>> 23) + lt | 0) << 13 | q >>> 19) + Bt | 0) << 18 | q >>> 14;
|
|
8558
8558
|
E[0] = Y >>> 0 & 255, E[1] = Y >>> 8 & 255, E[2] = Y >>> 16 & 255, E[3] = Y >>> 24 & 255, E[4] = nt >>> 0 & 255, E[5] = nt >>> 8 & 255, E[6] = nt >>> 16 & 255, E[7] = nt >>> 24 & 255, E[8] = At >>> 0 & 255, E[9] = At >>> 8 & 255, E[10] = At >>> 16 & 255, E[11] = At >>> 24 & 255, E[12] = K >>> 0 & 255, E[13] = K >>> 8 & 255, E[14] = K >>> 16 & 255, E[15] = K >>> 24 & 255, E[16] = ht >>> 0 & 255, E[17] = ht >>> 8 & 255, E[18] = ht >>> 16 & 255, E[19] = ht >>> 24 & 255, E[20] = xt >>> 0 & 255, E[21] = xt >>> 8 & 255, E[22] = xt >>> 16 & 255, E[23] = xt >>> 24 & 255, E[24] = ot >>> 0 & 255, E[25] = ot >>> 8 & 255, E[26] = ot >>> 16 & 255, E[27] = ot >>> 24 & 255, E[28] = ut >>> 0 & 255, E[29] = ut >>> 8 & 255, E[30] = ut >>> 16 & 255, E[31] = ut >>> 24 & 255;
|
|
8559
|
-
})(T,
|
|
8559
|
+
})(T, C, B, b);
|
|
8560
8560
|
}
|
|
8561
|
-
var
|
|
8562
|
-
function k(T,
|
|
8561
|
+
var O = new Uint8Array([101, 120, 112, 97, 110, 100, 32, 51, 50, 45, 98, 121, 116, 101, 32, 107]);
|
|
8562
|
+
function k(T, C, B, b, E, $, D) {
|
|
8563
8563
|
var W, q, Y = new Uint8Array(16), gt = new Uint8Array(64);
|
|
8564
8564
|
for (q = 0; q < 16; q++) Y[q] = 0;
|
|
8565
8565
|
for (q = 0; q < 8; q++) Y[q] = $[q];
|
|
8566
8566
|
for (; E >= 64; ) {
|
|
8567
|
-
for (M(gt, Y, D,
|
|
8567
|
+
for (M(gt, Y, D, O), q = 0; q < 64; q++) T[C + q] = B[b + q] ^ gt[q];
|
|
8568
8568
|
for (W = 1, q = 8; q < 16; q++) W = W + (255 & Y[q]) | 0, Y[q] = 255 & W, W >>>= 8;
|
|
8569
|
-
E -= 64,
|
|
8569
|
+
E -= 64, C += 64, b += 64;
|
|
8570
8570
|
}
|
|
8571
|
-
if (E > 0) for (M(gt, Y, D,
|
|
8571
|
+
if (E > 0) for (M(gt, Y, D, O), q = 0; q < E; q++) T[C + q] = B[b + q] ^ gt[q];
|
|
8572
8572
|
return 0;
|
|
8573
8573
|
}
|
|
8574
|
-
function N(T,
|
|
8574
|
+
function N(T, C, B, b, E) {
|
|
8575
8575
|
var $, D, W = new Uint8Array(16), q = new Uint8Array(64);
|
|
8576
8576
|
for (D = 0; D < 16; D++) W[D] = 0;
|
|
8577
8577
|
for (D = 0; D < 8; D++) W[D] = b[D];
|
|
8578
8578
|
for (; B >= 64; ) {
|
|
8579
|
-
for (M(q, W, E,
|
|
8579
|
+
for (M(q, W, E, O), D = 0; D < 64; D++) T[C + D] = q[D];
|
|
8580
8580
|
for ($ = 1, D = 8; D < 16; D++) $ = $ + (255 & W[D]) | 0, W[D] = 255 & $, $ >>>= 8;
|
|
8581
|
-
B -= 64,
|
|
8581
|
+
B -= 64, C += 64;
|
|
8582
8582
|
}
|
|
8583
|
-
if (B > 0) for (M(q, W, E,
|
|
8583
|
+
if (B > 0) for (M(q, W, E, O), D = 0; D < B; D++) T[C + D] = q[D];
|
|
8584
8584
|
return 0;
|
|
8585
8585
|
}
|
|
8586
|
-
function L(T,
|
|
8586
|
+
function L(T, C, B, b, E) {
|
|
8587
8587
|
var $ = new Uint8Array(32);
|
|
8588
|
-
S($, b, E,
|
|
8588
|
+
S($, b, E, O);
|
|
8589
8589
|
for (var D = new Uint8Array(8), W = 0; W < 8; W++) D[W] = b[W + 16];
|
|
8590
|
-
return N(T,
|
|
8590
|
+
return N(T, C, B, D, $);
|
|
8591
8591
|
}
|
|
8592
|
-
function z(T,
|
|
8592
|
+
function z(T, C, B, b, E, $, D) {
|
|
8593
8593
|
var W = new Uint8Array(32);
|
|
8594
|
-
S(W, $, D,
|
|
8594
|
+
S(W, $, D, O);
|
|
8595
8595
|
for (var q = new Uint8Array(8), Y = 0; Y < 8; Y++) q[Y] = $[Y + 16];
|
|
8596
|
-
return k(T,
|
|
8596
|
+
return k(T, C, B, b, E, q, W);
|
|
8597
8597
|
}
|
|
8598
8598
|
var f = function(T) {
|
|
8599
|
-
var
|
|
8600
|
-
this.buffer = new Uint8Array(16), this.r = new Uint16Array(10), this.h = new Uint16Array(10), this.pad = new Uint16Array(8), this.leftover = 0, this.fin = 0,
|
|
8599
|
+
var C, B, b, E, $, D, W, q;
|
|
8600
|
+
this.buffer = new Uint8Array(16), this.r = new Uint16Array(10), this.h = new Uint16Array(10), this.pad = new Uint16Array(8), this.leftover = 0, this.fin = 0, C = 255 & T[0] | (255 & T[1]) << 8, this.r[0] = 8191 & C, B = 255 & T[2] | (255 & T[3]) << 8, this.r[1] = 8191 & (C >>> 13 | B << 3), b = 255 & T[4] | (255 & T[5]) << 8, this.r[2] = 7939 & (B >>> 10 | b << 6), E = 255 & T[6] | (255 & T[7]) << 8, this.r[3] = 8191 & (b >>> 7 | E << 9), $ = 255 & T[8] | (255 & T[9]) << 8, this.r[4] = 255 & (E >>> 4 | $ << 12), this.r[5] = $ >>> 1 & 8190, D = 255 & T[10] | (255 & T[11]) << 8, this.r[6] = 8191 & ($ >>> 14 | D << 2), W = 255 & T[12] | (255 & T[13]) << 8, this.r[7] = 8065 & (D >>> 11 | W << 5), q = 255 & T[14] | (255 & T[15]) << 8, this.r[8] = 8191 & (W >>> 8 | q << 8), this.r[9] = q >>> 5 & 127, this.pad[0] = 255 & T[16] | (255 & T[17]) << 8, this.pad[1] = 255 & T[18] | (255 & T[19]) << 8, this.pad[2] = 255 & T[20] | (255 & T[21]) << 8, this.pad[3] = 255 & T[22] | (255 & T[23]) << 8, this.pad[4] = 255 & T[24] | (255 & T[25]) << 8, this.pad[5] = 255 & T[26] | (255 & T[27]) << 8, this.pad[6] = 255 & T[28] | (255 & T[29]) << 8, this.pad[7] = 255 & T[30] | (255 & T[31]) << 8;
|
|
8601
8601
|
};
|
|
8602
|
-
function l(T,
|
|
8602
|
+
function l(T, C, B, b, E, $) {
|
|
8603
8603
|
var D = new f($);
|
|
8604
|
-
return D.update(B, b, E), D.finish(T,
|
|
8604
|
+
return D.update(B, b, E), D.finish(T, C), 0;
|
|
8605
8605
|
}
|
|
8606
|
-
function g(T,
|
|
8606
|
+
function g(T, C, B, b, E, $) {
|
|
8607
8607
|
var D = new Uint8Array(16);
|
|
8608
|
-
return l(D, 0, B, b, E, $), I(T,
|
|
8608
|
+
return l(D, 0, B, b, E, $), I(T, C, D, 0);
|
|
8609
8609
|
}
|
|
8610
|
-
function m(T,
|
|
8610
|
+
function m(T, C, B, b, E) {
|
|
8611
8611
|
var $;
|
|
8612
8612
|
if (B < 32) return -1;
|
|
8613
|
-
for (z(T, 0,
|
|
8613
|
+
for (z(T, 0, C, 0, B, b, E), l(T, 16, T, 32, B - 32, T), $ = 0; $ < 16; $++) T[$] = 0;
|
|
8614
8614
|
return 0;
|
|
8615
8615
|
}
|
|
8616
|
-
function u(T,
|
|
8616
|
+
function u(T, C, B, b, E) {
|
|
8617
8617
|
var $, D = new Uint8Array(32);
|
|
8618
|
-
if (B < 32 || (L(D, 0, 32, b, E), g(
|
|
8619
|
-
for (z(T, 0,
|
|
8618
|
+
if (B < 32 || (L(D, 0, 32, b, E), g(C, 16, C, 32, B - 32, D) !== 0)) return -1;
|
|
8619
|
+
for (z(T, 0, C, 0, B, b, E), $ = 0; $ < 32; $++) T[$] = 0;
|
|
8620
8620
|
return 0;
|
|
8621
8621
|
}
|
|
8622
|
-
function y(T,
|
|
8622
|
+
function y(T, C) {
|
|
8623
8623
|
var B;
|
|
8624
|
-
for (B = 0; B < 16; B++) T[B] = 0 |
|
|
8624
|
+
for (B = 0; B < 16; B++) T[B] = 0 | C[B];
|
|
8625
8625
|
}
|
|
8626
8626
|
function x(T) {
|
|
8627
|
-
var
|
|
8628
|
-
for (
|
|
8627
|
+
var C, B, b = 1;
|
|
8628
|
+
for (C = 0; C < 16; C++) B = T[C] + b + 65535, b = Math.floor(B / 65536), T[C] = B - 65536 * b;
|
|
8629
8629
|
T[0] += b - 1 + 37 * (b - 1);
|
|
8630
8630
|
}
|
|
8631
|
-
function P(T,
|
|
8632
|
-
for (var b, E = ~(B - 1), $ = 0; $ < 16; $++) b = E & (T[$] ^
|
|
8631
|
+
function P(T, C, B) {
|
|
8632
|
+
for (var b, E = ~(B - 1), $ = 0; $ < 16; $++) b = E & (T[$] ^ C[$]), T[$] ^= b, C[$] ^= b;
|
|
8633
8633
|
}
|
|
8634
|
-
function R(T,
|
|
8634
|
+
function R(T, C) {
|
|
8635
8635
|
var B, b, E, $ = t(), D = t();
|
|
8636
|
-
for (B = 0; B < 16; B++) D[B] =
|
|
8636
|
+
for (B = 0; B < 16; B++) D[B] = C[B];
|
|
8637
8637
|
for (x(D), x(D), x(D), b = 0; b < 2; b++) {
|
|
8638
8638
|
for ($[0] = D[0] - 65517, B = 1; B < 15; B++) $[B] = D[B] - 65535 - ($[B - 1] >> 16 & 1), $[B - 1] &= 65535;
|
|
8639
8639
|
$[15] = D[15] - 32767 - ($[14] >> 16 & 1), E = $[15] >> 16 & 1, $[14] &= 65535, P(D, $, 1 - E);
|
|
8640
8640
|
}
|
|
8641
8641
|
for (B = 0; B < 16; B++) T[2 * B] = 255 & D[B], T[2 * B + 1] = D[B] >> 8;
|
|
8642
8642
|
}
|
|
8643
|
-
function j(T,
|
|
8643
|
+
function j(T, C) {
|
|
8644
8644
|
var B = new Uint8Array(32), b = new Uint8Array(32);
|
|
8645
|
-
return R(B, T), R(b,
|
|
8645
|
+
return R(B, T), R(b, C), _(B, 0, b, 0);
|
|
8646
8646
|
}
|
|
8647
8647
|
function Z(T) {
|
|
8648
|
-
var
|
|
8649
|
-
return R(
|
|
8648
|
+
var C = new Uint8Array(32);
|
|
8649
|
+
return R(C, T), 1 & C[0];
|
|
8650
8650
|
}
|
|
8651
|
-
function U(T,
|
|
8651
|
+
function U(T, C) {
|
|
8652
8652
|
var B;
|
|
8653
|
-
for (B = 0; B < 16; B++) T[B] =
|
|
8653
|
+
for (B = 0; B < 16; B++) T[B] = C[2 * B] + (C[2 * B + 1] << 8);
|
|
8654
8654
|
T[15] &= 32767;
|
|
8655
8655
|
}
|
|
8656
|
-
function V(T,
|
|
8657
|
-
for (var b = 0; b < 16; b++) T[b] =
|
|
8656
|
+
function V(T, C, B) {
|
|
8657
|
+
for (var b = 0; b < 16; b++) T[b] = C[b] + B[b];
|
|
8658
8658
|
}
|
|
8659
|
-
function F(T,
|
|
8660
|
-
for (var b = 0; b < 16; b++) T[b] =
|
|
8659
|
+
function F(T, C, B) {
|
|
8660
|
+
for (var b = 0; b < 16; b++) T[b] = C[b] - B[b];
|
|
8661
8661
|
}
|
|
8662
|
-
function H(T,
|
|
8663
|
-
var b, E, $ = 0, D = 0, W = 0, q = 0, Y = 0, gt = 0, G = 0, ct = 0, wt = 0, nt = 0, ht = 0, xt = 0, ot = 0, ut = 0, At = 0, it = 0, lt = 0, Bt = 0, at = 0, K = 0, Q = 0, st = 0, tt = 0, et = 0, rt = 0,
|
|
8664
|
-
$ += (b =
|
|
8662
|
+
function H(T, C, B) {
|
|
8663
|
+
var b, E, $ = 0, D = 0, W = 0, q = 0, Y = 0, gt = 0, G = 0, ct = 0, wt = 0, nt = 0, ht = 0, xt = 0, ot = 0, ut = 0, At = 0, it = 0, lt = 0, Bt = 0, at = 0, K = 0, Q = 0, st = 0, tt = 0, et = 0, rt = 0, Ot = 0, zt = 0, Ct = 0, Kt = 0, Qt = 0, Gt = 0, St = B[0], It = B[1], Tt = B[2], Nt = B[3], _t = B[4], jt = B[5], $t = B[6], me = B[7], he = B[8], ye = B[9], ge = B[10], _e = B[11], ke = B[12], Ue = B[13], qe = B[14], $e = B[15];
|
|
8664
|
+
$ += (b = C[0]) * St, D += b * It, W += b * Tt, q += b * Nt, Y += b * _t, gt += b * jt, G += b * $t, ct += b * me, wt += b * he, nt += b * ye, ht += b * ge, xt += b * _e, ot += b * ke, ut += b * Ue, At += b * qe, it += b * $e, D += (b = C[1]) * St, W += b * It, q += b * Tt, Y += b * Nt, gt += b * _t, G += b * jt, ct += b * $t, wt += b * me, nt += b * he, ht += b * ye, xt += b * ge, ot += b * _e, ut += b * ke, At += b * Ue, it += b * qe, lt += b * $e, W += (b = C[2]) * St, q += b * It, Y += b * Tt, gt += b * Nt, G += b * _t, ct += b * jt, wt += b * $t, nt += b * me, ht += b * he, xt += b * ye, ot += b * ge, ut += b * _e, At += b * ke, it += b * Ue, lt += b * qe, Bt += b * $e, q += (b = C[3]) * St, Y += b * It, gt += b * Tt, G += b * Nt, ct += b * _t, wt += b * jt, nt += b * $t, ht += b * me, xt += b * he, ot += b * ye, ut += b * ge, At += b * _e, it += b * ke, lt += b * Ue, Bt += b * qe, at += b * $e, Y += (b = C[4]) * St, gt += b * It, G += b * Tt, ct += b * Nt, wt += b * _t, nt += b * jt, ht += b * $t, xt += b * me, ot += b * he, ut += b * ye, At += b * ge, it += b * _e, lt += b * ke, Bt += b * Ue, at += b * qe, K += b * $e, gt += (b = C[5]) * St, G += b * It, ct += b * Tt, wt += b * Nt, nt += b * _t, ht += b * jt, xt += b * $t, ot += b * me, ut += b * he, At += b * ye, it += b * ge, lt += b * _e, Bt += b * ke, at += b * Ue, K += b * qe, Q += b * $e, G += (b = C[6]) * St, ct += b * It, wt += b * Tt, nt += b * Nt, ht += b * _t, xt += b * jt, ot += b * $t, ut += b * me, At += b * he, it += b * ye, lt += b * ge, Bt += b * _e, at += b * ke, K += b * Ue, Q += b * qe, st += b * $e, ct += (b = C[7]) * St, wt += b * It, nt += b * Tt, ht += b * Nt, xt += b * _t, ot += b * jt, ut += b * $t, At += b * me, it += b * he, lt += b * ye, Bt += b * ge, at += b * _e, K += b * ke, Q += b * Ue, st += b * qe, tt += b * $e, wt += (b = C[8]) * St, nt += b * It, ht += b * Tt, xt += b * Nt, ot += b * _t, ut += b * jt, At += b * $t, it += b * me, lt += b * he, Bt += b * ye, at += b * ge, K += b * _e, Q += b * ke, st += b * Ue, tt += b * qe, et += b * $e, nt += (b = C[9]) * St, ht += b * It, xt += b * Tt, ot += b * Nt, ut += b * _t, At += b * jt, it += b * $t, lt += b * me, Bt += b * he, at += b * ye, K += b * ge, Q += b * _e, st += b * ke, tt += b * Ue, et += b * qe, rt += b * $e, ht += (b = C[10]) * St, xt += b * It, ot += b * Tt, ut += b * Nt, At += b * _t, it += b * jt, lt += b * $t, Bt += b * me, at += b * he, K += b * ye, Q += b * ge, st += b * _e, tt += b * ke, et += b * Ue, rt += b * qe, Ot += b * $e, xt += (b = C[11]) * St, ot += b * It, ut += b * Tt, At += b * Nt, it += b * _t, lt += b * jt, Bt += b * $t, at += b * me, K += b * he, Q += b * ye, st += b * ge, tt += b * _e, et += b * ke, rt += b * Ue, Ot += b * qe, zt += b * $e, ot += (b = C[12]) * St, ut += b * It, At += b * Tt, it += b * Nt, lt += b * _t, Bt += b * jt, at += b * $t, K += b * me, Q += b * he, st += b * ye, tt += b * ge, et += b * _e, rt += b * ke, Ot += b * Ue, zt += b * qe, Ct += b * $e, ut += (b = C[13]) * St, At += b * It, it += b * Tt, lt += b * Nt, Bt += b * _t, at += b * jt, K += b * $t, Q += b * me, st += b * he, tt += b * ye, et += b * ge, rt += b * _e, Ot += b * ke, zt += b * Ue, Ct += b * qe, Kt += b * $e, At += (b = C[14]) * St, it += b * It, lt += b * Tt, Bt += b * Nt, at += b * _t, K += b * jt, Q += b * $t, st += b * me, tt += b * he, et += b * ye, rt += b * ge, Ot += b * _e, zt += b * ke, Ct += b * Ue, Kt += b * qe, Qt += b * $e, it += (b = C[15]) * St, D += 38 * (Bt += b * Tt), W += 38 * (at += b * Nt), q += 38 * (K += b * _t), Y += 38 * (Q += b * jt), gt += 38 * (st += b * $t), G += 38 * (tt += b * me), ct += 38 * (et += b * he), wt += 38 * (rt += b * ye), nt += 38 * (Ot += b * ge), ht += 38 * (zt += b * _e), xt += 38 * (Ct += b * ke), ot += 38 * (Kt += b * Ue), ut += 38 * (Qt += b * qe), At += 38 * (Gt += b * $e), $ = (b = ($ += 38 * (lt += b * It)) + (E = 1) + 65535) - 65536 * (E = Math.floor(b / 65536)), D = (b = D + E + 65535) - 65536 * (E = Math.floor(b / 65536)), W = (b = W + E + 65535) - 65536 * (E = Math.floor(b / 65536)), q = (b = q + E + 65535) - 65536 * (E = Math.floor(b / 65536)), Y = (b = Y + E + 65535) - 65536 * (E = Math.floor(b / 65536)), gt = (b = gt + E + 65535) - 65536 * (E = Math.floor(b / 65536)), G = (b = G + E + 65535) - 65536 * (E = Math.floor(b / 65536)), ct = (b = ct + E + 65535) - 65536 * (E = Math.floor(b / 65536)), wt = (b = wt + E + 65535) - 65536 * (E = Math.floor(b / 65536)), nt = (b = nt + E + 65535) - 65536 * (E = Math.floor(b / 65536)), ht = (b = ht + E + 65535) - 65536 * (E = Math.floor(b / 65536)), xt = (b = xt + E + 65535) - 65536 * (E = Math.floor(b / 65536)), ot = (b = ot + E + 65535) - 65536 * (E = Math.floor(b / 65536)), ut = (b = ut + E + 65535) - 65536 * (E = Math.floor(b / 65536)), At = (b = At + E + 65535) - 65536 * (E = Math.floor(b / 65536)), it = (b = it + E + 65535) - 65536 * (E = Math.floor(b / 65536)), $ = (b = ($ += E - 1 + 37 * (E - 1)) + (E = 1) + 65535) - 65536 * (E = Math.floor(b / 65536)), D = (b = D + E + 65535) - 65536 * (E = Math.floor(b / 65536)), W = (b = W + E + 65535) - 65536 * (E = Math.floor(b / 65536)), q = (b = q + E + 65535) - 65536 * (E = Math.floor(b / 65536)), Y = (b = Y + E + 65535) - 65536 * (E = Math.floor(b / 65536)), gt = (b = gt + E + 65535) - 65536 * (E = Math.floor(b / 65536)), G = (b = G + E + 65535) - 65536 * (E = Math.floor(b / 65536)), ct = (b = ct + E + 65535) - 65536 * (E = Math.floor(b / 65536)), wt = (b = wt + E + 65535) - 65536 * (E = Math.floor(b / 65536)), nt = (b = nt + E + 65535) - 65536 * (E = Math.floor(b / 65536)), ht = (b = ht + E + 65535) - 65536 * (E = Math.floor(b / 65536)), xt = (b = xt + E + 65535) - 65536 * (E = Math.floor(b / 65536)), ot = (b = ot + E + 65535) - 65536 * (E = Math.floor(b / 65536)), ut = (b = ut + E + 65535) - 65536 * (E = Math.floor(b / 65536)), At = (b = At + E + 65535) - 65536 * (E = Math.floor(b / 65536)), it = (b = it + E + 65535) - 65536 * (E = Math.floor(b / 65536)), $ += E - 1 + 37 * (E - 1), T[0] = $, T[1] = D, T[2] = W, T[3] = q, T[4] = Y, T[5] = gt, T[6] = G, T[7] = ct, T[8] = wt, T[9] = nt, T[10] = ht, T[11] = xt, T[12] = ot, T[13] = ut, T[14] = At, T[15] = it;
|
|
8665
8665
|
}
|
|
8666
|
-
function X(T,
|
|
8667
|
-
H(T,
|
|
8666
|
+
function X(T, C) {
|
|
8667
|
+
H(T, C, C);
|
|
8668
8668
|
}
|
|
8669
|
-
function Rt(T,
|
|
8669
|
+
function Rt(T, C) {
|
|
8670
8670
|
var B, b = t();
|
|
8671
|
-
for (B = 0; B < 16; B++) b[B] =
|
|
8672
|
-
for (B = 253; B >= 0; B--) X(b, b), B !== 2 && B !== 4 && H(b, b,
|
|
8671
|
+
for (B = 0; B < 16; B++) b[B] = C[B];
|
|
8672
|
+
for (B = 253; B >= 0; B--) X(b, b), B !== 2 && B !== 4 && H(b, b, C);
|
|
8673
8673
|
for (B = 0; B < 16; B++) T[B] = b[B];
|
|
8674
8674
|
}
|
|
8675
|
-
function dt(T,
|
|
8675
|
+
function dt(T, C) {
|
|
8676
8676
|
var B, b = t();
|
|
8677
|
-
for (B = 0; B < 16; B++) b[B] =
|
|
8678
|
-
for (B = 250; B >= 0; B--) X(b, b), B !== 1 && H(b, b,
|
|
8677
|
+
for (B = 0; B < 16; B++) b[B] = C[B];
|
|
8678
|
+
for (B = 250; B >= 0; B--) X(b, b), B !== 1 && H(b, b, C);
|
|
8679
8679
|
for (B = 0; B < 16; B++) T[B] = b[B];
|
|
8680
8680
|
}
|
|
8681
|
-
function yt(T,
|
|
8681
|
+
function yt(T, C, B) {
|
|
8682
8682
|
var b, E, $ = new Uint8Array(32), D = new Float64Array(80), W = t(), q = t(), Y = t(), gt = t(), G = t(), ct = t();
|
|
8683
|
-
for (E = 0; E < 31; E++) $[E] =
|
|
8684
|
-
for ($[31] = 127 &
|
|
8683
|
+
for (E = 0; E < 31; E++) $[E] = C[E];
|
|
8684
|
+
for ($[31] = 127 & C[31] | 64, $[0] &= 248, U(D, B), E = 0; E < 16; E++) q[E] = D[E], gt[E] = W[E] = Y[E] = 0;
|
|
8685
8685
|
for (W[0] = gt[0] = 1, E = 254; E >= 0; --E) P(W, q, b = $[E >>> 3] >>> (7 & E) & 1), P(Y, gt, b), V(G, W, Y), F(W, W, Y), V(Y, q, gt), F(q, q, gt), X(gt, G), X(ct, W), H(W, Y, W), H(Y, q, G), V(G, W, Y), F(W, W, Y), X(q, W), F(Y, gt, ct), H(W, Y, o), V(W, W, gt), H(Y, Y, W), H(W, gt, ct), H(gt, q, D), X(q, G), P(W, q, b), P(Y, gt, b);
|
|
8686
8686
|
for (E = 0; E < 16; E++) D[E + 16] = W[E], D[E + 32] = Y[E], D[E + 48] = q[E], D[E + 64] = gt[E];
|
|
8687
8687
|
var wt = D.subarray(32), nt = D.subarray(16);
|
|
8688
8688
|
return Rt(wt, wt), H(nt, nt, wt), R(T, nt), 0;
|
|
8689
8689
|
}
|
|
8690
|
-
function Ft(T,
|
|
8691
|
-
return yt(T,
|
|
8690
|
+
function Ft(T, C) {
|
|
8691
|
+
return yt(T, C, i);
|
|
8692
8692
|
}
|
|
8693
|
-
function mt(T,
|
|
8694
|
-
return r(
|
|
8693
|
+
function mt(T, C) {
|
|
8694
|
+
return r(C, 32), Ft(T, C);
|
|
8695
8695
|
}
|
|
8696
|
-
function Et(T,
|
|
8696
|
+
function Et(T, C, B) {
|
|
8697
8697
|
var b = new Uint8Array(32);
|
|
8698
|
-
return yt(b, B,
|
|
8698
|
+
return yt(b, B, C), S(T, n, b, O);
|
|
8699
8699
|
}
|
|
8700
|
-
f.prototype.blocks = function(T,
|
|
8701
|
-
for (var b, E, $, D, W, q, Y, gt, G, ct, wt, nt, ht, xt, ot, ut, At, it, lt, Bt = this.fin ? 0 : 2048, at = this.h[0], K = this.h[1], Q = this.h[2], st = this.h[3], tt = this.h[4], et = this.h[5], rt = this.h[6],
|
|
8702
|
-
this.h[0] = at, this.h[1] = K, this.h[2] = Q, this.h[3] = st, this.h[4] = tt, this.h[5] = et, this.h[6] = rt, this.h[7] =
|
|
8703
|
-
}, f.prototype.finish = function(T,
|
|
8700
|
+
f.prototype.blocks = function(T, C, B) {
|
|
8701
|
+
for (var b, E, $, D, W, q, Y, gt, G, ct, wt, nt, ht, xt, ot, ut, At, it, lt, Bt = this.fin ? 0 : 2048, at = this.h[0], K = this.h[1], Q = this.h[2], st = this.h[3], tt = this.h[4], et = this.h[5], rt = this.h[6], Ot = this.h[7], zt = this.h[8], Ct = this.h[9], Kt = this.r[0], Qt = this.r[1], Gt = this.r[2], St = this.r[3], It = this.r[4], Tt = this.r[5], Nt = this.r[6], _t = this.r[7], jt = this.r[8], $t = this.r[9]; B >= 16; ) ct = G = 0, ct += (at += 8191 & (b = 255 & T[C + 0] | (255 & T[C + 1]) << 8)) * Kt, ct += (K += 8191 & (b >>> 13 | (E = 255 & T[C + 2] | (255 & T[C + 3]) << 8) << 3)) * (5 * $t), ct += (Q += 8191 & (E >>> 10 | ($ = 255 & T[C + 4] | (255 & T[C + 5]) << 8) << 6)) * (5 * jt), ct += (st += 8191 & ($ >>> 7 | (D = 255 & T[C + 6] | (255 & T[C + 7]) << 8) << 9)) * (5 * _t), G = (ct += (tt += 8191 & (D >>> 4 | (W = 255 & T[C + 8] | (255 & T[C + 9]) << 8) << 12)) * (5 * Nt)) >>> 13, ct &= 8191, ct += (et += W >>> 1 & 8191) * (5 * Tt), ct += (rt += 8191 & (W >>> 14 | (q = 255 & T[C + 10] | (255 & T[C + 11]) << 8) << 2)) * (5 * It), ct += (Ot += 8191 & (q >>> 11 | (Y = 255 & T[C + 12] | (255 & T[C + 13]) << 8) << 5)) * (5 * St), ct += (zt += 8191 & (Y >>> 8 | (gt = 255 & T[C + 14] | (255 & T[C + 15]) << 8) << 8)) * (5 * Gt), wt = G += (ct += (Ct += gt >>> 5 | Bt) * (5 * Qt)) >>> 13, wt += at * Qt, wt += K * Kt, wt += Q * (5 * $t), wt += st * (5 * jt), G = (wt += tt * (5 * _t)) >>> 13, wt &= 8191, wt += et * (5 * Nt), wt += rt * (5 * Tt), wt += Ot * (5 * It), wt += zt * (5 * St), G += (wt += Ct * (5 * Gt)) >>> 13, wt &= 8191, nt = G, nt += at * Gt, nt += K * Qt, nt += Q * Kt, nt += st * (5 * $t), G = (nt += tt * (5 * jt)) >>> 13, nt &= 8191, nt += et * (5 * _t), nt += rt * (5 * Nt), nt += Ot * (5 * Tt), nt += zt * (5 * It), ht = G += (nt += Ct * (5 * St)) >>> 13, ht += at * St, ht += K * Gt, ht += Q * Qt, ht += st * Kt, G = (ht += tt * (5 * $t)) >>> 13, ht &= 8191, ht += et * (5 * jt), ht += rt * (5 * _t), ht += Ot * (5 * Nt), ht += zt * (5 * Tt), xt = G += (ht += Ct * (5 * It)) >>> 13, xt += at * It, xt += K * St, xt += Q * Gt, xt += st * Qt, G = (xt += tt * Kt) >>> 13, xt &= 8191, xt += et * (5 * $t), xt += rt * (5 * jt), xt += Ot * (5 * _t), xt += zt * (5 * Nt), ot = G += (xt += Ct * (5 * Tt)) >>> 13, ot += at * Tt, ot += K * It, ot += Q * St, ot += st * Gt, G = (ot += tt * Qt) >>> 13, ot &= 8191, ot += et * Kt, ot += rt * (5 * $t), ot += Ot * (5 * jt), ot += zt * (5 * _t), ut = G += (ot += Ct * (5 * Nt)) >>> 13, ut += at * Nt, ut += K * Tt, ut += Q * It, ut += st * St, G = (ut += tt * Gt) >>> 13, ut &= 8191, ut += et * Qt, ut += rt * Kt, ut += Ot * (5 * $t), ut += zt * (5 * jt), At = G += (ut += Ct * (5 * _t)) >>> 13, At += at * _t, At += K * Nt, At += Q * Tt, At += st * It, G = (At += tt * St) >>> 13, At &= 8191, At += et * Gt, At += rt * Qt, At += Ot * Kt, At += zt * (5 * $t), it = G += (At += Ct * (5 * jt)) >>> 13, it += at * jt, it += K * _t, it += Q * Nt, it += st * Tt, G = (it += tt * It) >>> 13, it &= 8191, it += et * St, it += rt * Gt, it += Ot * Qt, it += zt * Kt, lt = G += (it += Ct * (5 * $t)) >>> 13, lt += at * $t, lt += K * jt, lt += Q * _t, lt += st * Nt, G = (lt += tt * Tt) >>> 13, lt &= 8191, lt += et * It, lt += rt * St, lt += Ot * Gt, lt += zt * Qt, at = ct = 8191 & (G = (G = ((G += (lt += Ct * Kt) >>> 13) << 2) + G | 0) + (ct &= 8191) | 0), K = wt += G >>>= 13, Q = nt &= 8191, st = ht &= 8191, tt = xt &= 8191, et = ot &= 8191, rt = ut &= 8191, Ot = At &= 8191, zt = it &= 8191, Ct = lt &= 8191, C += 16, B -= 16;
|
|
8702
|
+
this.h[0] = at, this.h[1] = K, this.h[2] = Q, this.h[3] = st, this.h[4] = tt, this.h[5] = et, this.h[6] = rt, this.h[7] = Ot, this.h[8] = zt, this.h[9] = Ct;
|
|
8703
|
+
}, f.prototype.finish = function(T, C) {
|
|
8704
8704
|
var B, b, E, $, D = new Uint16Array(10);
|
|
8705
8705
|
if (this.leftover) {
|
|
8706
8706
|
for ($ = this.leftover, this.buffer[$++] = 1; $ < 16; $++) this.buffer[$] = 0;
|
|
@@ -8711,81 +8711,81 @@ var da = { exports: {} };
|
|
|
8711
8711
|
for (D[9] -= 8192, b = (1 ^ B) - 1, $ = 0; $ < 10; $++) D[$] &= b;
|
|
8712
8712
|
for (b = ~b, $ = 0; $ < 10; $++) this.h[$] = this.h[$] & b | D[$];
|
|
8713
8713
|
for (this.h[0] = 65535 & (this.h[0] | this.h[1] << 13), this.h[1] = 65535 & (this.h[1] >>> 3 | this.h[2] << 10), this.h[2] = 65535 & (this.h[2] >>> 6 | this.h[3] << 7), this.h[3] = 65535 & (this.h[3] >>> 9 | this.h[4] << 4), this.h[4] = 65535 & (this.h[4] >>> 12 | this.h[5] << 1 | this.h[6] << 14), this.h[5] = 65535 & (this.h[6] >>> 2 | this.h[7] << 11), this.h[6] = 65535 & (this.h[7] >>> 5 | this.h[8] << 8), this.h[7] = 65535 & (this.h[8] >>> 8 | this.h[9] << 5), E = this.h[0] + this.pad[0], this.h[0] = 65535 & E, $ = 1; $ < 8; $++) E = (this.h[$] + this.pad[$] | 0) + (E >>> 16) | 0, this.h[$] = 65535 & E;
|
|
8714
|
-
T[
|
|
8715
|
-
}, f.prototype.update = function(T,
|
|
8714
|
+
T[C + 0] = this.h[0] >>> 0 & 255, T[C + 1] = this.h[0] >>> 8 & 255, T[C + 2] = this.h[1] >>> 0 & 255, T[C + 3] = this.h[1] >>> 8 & 255, T[C + 4] = this.h[2] >>> 0 & 255, T[C + 5] = this.h[2] >>> 8 & 255, T[C + 6] = this.h[3] >>> 0 & 255, T[C + 7] = this.h[3] >>> 8 & 255, T[C + 8] = this.h[4] >>> 0 & 255, T[C + 9] = this.h[4] >>> 8 & 255, T[C + 10] = this.h[5] >>> 0 & 255, T[C + 11] = this.h[5] >>> 8 & 255, T[C + 12] = this.h[6] >>> 0 & 255, T[C + 13] = this.h[6] >>> 8 & 255, T[C + 14] = this.h[7] >>> 0 & 255, T[C + 15] = this.h[7] >>> 8 & 255;
|
|
8715
|
+
}, f.prototype.update = function(T, C, B) {
|
|
8716
8716
|
var b, E;
|
|
8717
8717
|
if (this.leftover) {
|
|
8718
|
-
for ((E = 16 - this.leftover) > B && (E = B), b = 0; b < E; b++) this.buffer[this.leftover + b] = T[
|
|
8719
|
-
if (B -= E,
|
|
8718
|
+
for ((E = 16 - this.leftover) > B && (E = B), b = 0; b < E; b++) this.buffer[this.leftover + b] = T[C + b];
|
|
8719
|
+
if (B -= E, C += E, this.leftover += E, this.leftover < 16) return;
|
|
8720
8720
|
this.blocks(this.buffer, 0, 16), this.leftover = 0;
|
|
8721
8721
|
}
|
|
8722
|
-
if (B >= 16 && (E = B - B % 16, this.blocks(T,
|
|
8723
|
-
for (b = 0; b < B; b++) this.buffer[this.leftover + b] = T[
|
|
8722
|
+
if (B >= 16 && (E = B - B % 16, this.blocks(T, C, E), C += E, B -= E), B) {
|
|
8723
|
+
for (b = 0; b < B; b++) this.buffer[this.leftover + b] = T[C + b];
|
|
8724
8724
|
this.leftover += B;
|
|
8725
8725
|
}
|
|
8726
8726
|
};
|
|
8727
8727
|
var Zt = m, Lt = u, oe = [1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591];
|
|
8728
|
-
function Qe(T,
|
|
8729
|
-
for (var E, $, D, W, q, Y, gt, G, ct, wt, nt, ht, xt, ot, ut, At, it, lt, Bt, at, K, Q, st, tt, et, rt,
|
|
8730
|
-
for (Bt = 0; Bt < 16; Bt++) at = 8 * Bt + ke,
|
|
8731
|
-
for (Bt = 0; Bt < 80; Bt++) if (E =
|
|
8732
|
-
st = 65535 & (Q = _t), tt = Q >>> 16, et = 65535 & (K =
|
|
8728
|
+
function Qe(T, C, B, b) {
|
|
8729
|
+
for (var E, $, D, W, q, Y, gt, G, ct, wt, nt, ht, xt, ot, ut, At, it, lt, Bt, at, K, Q, st, tt, et, rt, Ot = new Int32Array(16), zt = new Int32Array(16), Ct = T[0], Kt = T[1], Qt = T[2], Gt = T[3], St = T[4], It = T[5], Tt = T[6], Nt = T[7], _t = C[0], jt = C[1], $t = C[2], me = C[3], he = C[4], ye = C[5], ge = C[6], _e = C[7], ke = 0; b >= 128; ) {
|
|
8730
|
+
for (Bt = 0; Bt < 16; Bt++) at = 8 * Bt + ke, Ot[Bt] = B[at + 0] << 24 | B[at + 1] << 16 | B[at + 2] << 8 | B[at + 3], zt[Bt] = B[at + 4] << 24 | B[at + 5] << 16 | B[at + 6] << 8 | B[at + 7];
|
|
8731
|
+
for (Bt = 0; Bt < 80; Bt++) if (E = Ct, $ = Kt, D = Qt, W = Gt, q = St, Y = It, gt = Tt, ct = _t, wt = jt, nt = $t, ht = me, xt = he, ot = ye, ut = ge, st = 65535 & (Q = _e), tt = Q >>> 16, et = 65535 & (K = Nt), rt = K >>> 16, st += 65535 & (Q = (he >>> 14 | St << 18) ^ (he >>> 18 | St << 14) ^ (St >>> 9 | he << 23)), tt += Q >>> 16, et += 65535 & (K = (St >>> 14 | he << 18) ^ (St >>> 18 | he << 14) ^ (he >>> 9 | St << 23)), rt += K >>> 16, st += 65535 & (Q = he & ye ^ ~he & ge), tt += Q >>> 16, et += 65535 & (K = St & It ^ ~St & Tt), rt += K >>> 16, st += 65535 & (Q = oe[2 * Bt + 1]), tt += Q >>> 16, et += 65535 & (K = oe[2 * Bt]), rt += K >>> 16, K = Ot[Bt % 16], tt += (Q = zt[Bt % 16]) >>> 16, et += 65535 & K, rt += K >>> 16, et += (tt += (st += 65535 & Q) >>> 16) >>> 16, st = 65535 & (Q = lt = 65535 & st | tt << 16), tt = Q >>> 16, et = 65535 & (K = it = 65535 & et | (rt += et >>> 16) << 16), rt = K >>> 16, st += 65535 & (Q = (_t >>> 28 | Ct << 4) ^ (Ct >>> 2 | _t << 30) ^ (Ct >>> 7 | _t << 25)), tt += Q >>> 16, et += 65535 & (K = (Ct >>> 28 | _t << 4) ^ (_t >>> 2 | Ct << 30) ^ (_t >>> 7 | Ct << 25)), rt += K >>> 16, tt += (Q = _t & jt ^ _t & $t ^ jt & $t) >>> 16, et += 65535 & (K = Ct & Kt ^ Ct & Qt ^ Kt & Qt), rt += K >>> 16, G = 65535 & (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) | (rt += et >>> 16) << 16, At = 65535 & st | tt << 16, st = 65535 & (Q = ht), tt = Q >>> 16, et = 65535 & (K = W), rt = K >>> 16, tt += (Q = lt) >>> 16, et += 65535 & (K = it), rt += K >>> 16, Kt = E, Qt = $, Gt = D, St = W = 65535 & (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) | (rt += et >>> 16) << 16, It = q, Tt = Y, Nt = gt, Ct = G, jt = ct, $t = wt, me = nt, he = ht = 65535 & st | tt << 16, ye = xt, ge = ot, _e = ut, _t = At, Bt % 16 == 15) for (at = 0; at < 16; at++) K = Ot[at], st = 65535 & (Q = zt[at]), tt = Q >>> 16, et = 65535 & K, rt = K >>> 16, K = Ot[(at + 9) % 16], st += 65535 & (Q = zt[(at + 9) % 16]), tt += Q >>> 16, et += 65535 & K, rt += K >>> 16, it = Ot[(at + 1) % 16], st += 65535 & (Q = ((lt = zt[(at + 1) % 16]) >>> 1 | it << 31) ^ (lt >>> 8 | it << 24) ^ (lt >>> 7 | it << 25)), tt += Q >>> 16, et += 65535 & (K = (it >>> 1 | lt << 31) ^ (it >>> 8 | lt << 24) ^ it >>> 7), rt += K >>> 16, it = Ot[(at + 14) % 16], tt += (Q = ((lt = zt[(at + 14) % 16]) >>> 19 | it << 13) ^ (it >>> 29 | lt << 3) ^ (lt >>> 6 | it << 26)) >>> 16, et += 65535 & (K = (it >>> 19 | lt << 13) ^ (lt >>> 29 | it << 3) ^ it >>> 6), rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, Ot[at] = 65535 & et | rt << 16, zt[at] = 65535 & st | tt << 16;
|
|
8732
|
+
st = 65535 & (Q = _t), tt = Q >>> 16, et = 65535 & (K = Ct), rt = K >>> 16, K = T[0], tt += (Q = C[0]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[0] = Ct = 65535 & et | rt << 16, C[0] = _t = 65535 & st | tt << 16, st = 65535 & (Q = jt), tt = Q >>> 16, et = 65535 & (K = Kt), rt = K >>> 16, K = T[1], tt += (Q = C[1]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[1] = Kt = 65535 & et | rt << 16, C[1] = jt = 65535 & st | tt << 16, st = 65535 & (Q = $t), tt = Q >>> 16, et = 65535 & (K = Qt), rt = K >>> 16, K = T[2], tt += (Q = C[2]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[2] = Qt = 65535 & et | rt << 16, C[2] = $t = 65535 & st | tt << 16, st = 65535 & (Q = me), tt = Q >>> 16, et = 65535 & (K = Gt), rt = K >>> 16, K = T[3], tt += (Q = C[3]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[3] = Gt = 65535 & et | rt << 16, C[3] = me = 65535 & st | tt << 16, st = 65535 & (Q = he), tt = Q >>> 16, et = 65535 & (K = St), rt = K >>> 16, K = T[4], tt += (Q = C[4]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[4] = St = 65535 & et | rt << 16, C[4] = he = 65535 & st | tt << 16, st = 65535 & (Q = ye), tt = Q >>> 16, et = 65535 & (K = It), rt = K >>> 16, K = T[5], tt += (Q = C[5]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[5] = It = 65535 & et | rt << 16, C[5] = ye = 65535 & st | tt << 16, st = 65535 & (Q = ge), tt = Q >>> 16, et = 65535 & (K = Tt), rt = K >>> 16, K = T[6], tt += (Q = C[6]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[6] = Tt = 65535 & et | rt << 16, C[6] = ge = 65535 & st | tt << 16, st = 65535 & (Q = _e), tt = Q >>> 16, et = 65535 & (K = Nt), rt = K >>> 16, K = T[7], tt += (Q = C[7]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[7] = Nt = 65535 & et | rt << 16, C[7] = _e = 65535 & st | tt << 16, ke += 128, b -= 128;
|
|
8733
8733
|
}
|
|
8734
8734
|
return b;
|
|
8735
8735
|
}
|
|
8736
|
-
function Yt(T,
|
|
8736
|
+
function Yt(T, C, B) {
|
|
8737
8737
|
var b, E = new Int32Array(8), $ = new Int32Array(8), D = new Uint8Array(256), W = B;
|
|
8738
|
-
for (E[0] = 1779033703, E[1] = 3144134277, E[2] = 1013904242, E[3] = 2773480762, E[4] = 1359893119, E[5] = 2600822924, E[6] = 528734635, E[7] = 1541459225, $[0] = 4089235720, $[1] = 2227873595, $[2] = 4271175723, $[3] = 1595750129, $[4] = 2917565137, $[5] = 725511199, $[6] = 4215389547, $[7] = 327033209, Qe(E, $,
|
|
8738
|
+
for (E[0] = 1779033703, E[1] = 3144134277, E[2] = 1013904242, E[3] = 2773480762, E[4] = 1359893119, E[5] = 2600822924, E[6] = 528734635, E[7] = 1541459225, $[0] = 4089235720, $[1] = 2227873595, $[2] = 4271175723, $[3] = 1595750129, $[4] = 2917565137, $[5] = 725511199, $[6] = 4215389547, $[7] = 327033209, Qe(E, $, C, B), B %= 128, b = 0; b < B; b++) D[b] = C[W - B + b];
|
|
8739
8739
|
for (D[B] = 128, D[(B = 256 - 128 * (B < 112 ? 1 : 0)) - 9] = 0, v(D, B - 8, W / 536870912 | 0, W << 3), Qe(E, $, D, B), b = 0; b < 8; b++) v(T, 8 * b, E[b], $[b]);
|
|
8740
8740
|
return 0;
|
|
8741
8741
|
}
|
|
8742
|
-
function ee(T,
|
|
8742
|
+
function ee(T, C) {
|
|
8743
8743
|
var B = t(), b = t(), E = t(), $ = t(), D = t(), W = t(), q = t(), Y = t(), gt = t();
|
|
8744
|
-
F(B, T[1], T[0]), F(gt,
|
|
8744
|
+
F(B, T[1], T[0]), F(gt, C[1], C[0]), H(B, B, gt), V(b, T[0], T[1]), V(gt, C[0], C[1]), H(b, b, gt), H(E, T[3], C[3]), H(E, E, d), H($, T[2], C[2]), V($, $, $), F(D, b, B), F(W, $, E), V(q, $, E), V(Y, b, B), H(T[0], D, W), H(T[1], Y, q), H(T[2], q, W), H(T[3], D, Y);
|
|
8745
8745
|
}
|
|
8746
|
-
function Pr(T,
|
|
8746
|
+
function Pr(T, C, B) {
|
|
8747
8747
|
var b;
|
|
8748
|
-
for (b = 0; b < 4; b++) P(T[b],
|
|
8748
|
+
for (b = 0; b < 4; b++) P(T[b], C[b], B);
|
|
8749
8749
|
}
|
|
8750
|
-
function ae(T,
|
|
8750
|
+
function ae(T, C) {
|
|
8751
8751
|
var B = t(), b = t(), E = t();
|
|
8752
|
-
Rt(E,
|
|
8752
|
+
Rt(E, C[2]), H(B, C[0], E), H(b, C[1], E), R(T, b), T[31] ^= Z(B) << 7;
|
|
8753
8753
|
}
|
|
8754
|
-
function Vt(T,
|
|
8754
|
+
function Vt(T, C, B) {
|
|
8755
8755
|
var b, E;
|
|
8756
|
-
for (y(T[0], s), y(T[1], a), y(T[2], a), y(T[3], s), E = 255; E >= 0; --E) Pr(T,
|
|
8756
|
+
for (y(T[0], s), y(T[1], a), y(T[2], a), y(T[3], s), E = 255; E >= 0; --E) Pr(T, C, b = B[E / 8 | 0] >> (7 & E) & 1), ee(C, T), ee(T, T), Pr(T, C, b);
|
|
8757
8757
|
}
|
|
8758
|
-
function Ve(T,
|
|
8758
|
+
function Ve(T, C) {
|
|
8759
8759
|
var B = [t(), t(), t(), t()];
|
|
8760
|
-
y(B[0], h), y(B[1], p), y(B[2], a), H(B[3], h, p), Vt(T, B,
|
|
8760
|
+
y(B[0], h), y(B[1], p), y(B[2], a), H(B[3], h, p), Vt(T, B, C);
|
|
8761
8761
|
}
|
|
8762
|
-
function ie(T,
|
|
8762
|
+
function ie(T, C, B) {
|
|
8763
8763
|
var b, E = new Uint8Array(64), $ = [t(), t(), t(), t()];
|
|
8764
|
-
for (B || r(
|
|
8764
|
+
for (B || r(C, 32), Yt(E, C, 32), E[0] &= 248, E[31] &= 127, E[31] |= 64, Ve($, E), ae(T, $), b = 0; b < 32; b++) C[b + 32] = T[b];
|
|
8765
8765
|
return 0;
|
|
8766
8766
|
}
|
|
8767
8767
|
var ce = new Float64Array([237, 211, 245, 92, 26, 99, 18, 88, 214, 156, 247, 162, 222, 249, 222, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16]);
|
|
8768
|
-
function Lr(T,
|
|
8768
|
+
function Lr(T, C) {
|
|
8769
8769
|
var B, b, E, $;
|
|
8770
8770
|
for (b = 63; b >= 32; --b) {
|
|
8771
|
-
for (B = 0, E = b - 32, $ = b - 12; E < $; ++E)
|
|
8772
|
-
|
|
8771
|
+
for (B = 0, E = b - 32, $ = b - 12; E < $; ++E) C[E] += B - 16 * C[b] * ce[E - (b - 32)], B = Math.floor((C[E] + 128) / 256), C[E] -= 256 * B;
|
|
8772
|
+
C[E] += B, C[b] = 0;
|
|
8773
8773
|
}
|
|
8774
|
-
for (B = 0, E = 0; E < 32; E++)
|
|
8775
|
-
for (E = 0; E < 32; E++)
|
|
8776
|
-
for (b = 0; b < 32; b++)
|
|
8774
|
+
for (B = 0, E = 0; E < 32; E++) C[E] += B - (C[31] >> 4) * ce[E], B = C[E] >> 8, C[E] &= 255;
|
|
8775
|
+
for (E = 0; E < 32; E++) C[E] -= B * ce[E];
|
|
8776
|
+
for (b = 0; b < 32; b++) C[b + 1] += C[b] >> 8, T[b] = 255 & C[b];
|
|
8777
8777
|
}
|
|
8778
8778
|
function se(T) {
|
|
8779
|
-
var
|
|
8780
|
-
for (
|
|
8781
|
-
for (
|
|
8779
|
+
var C, B = new Float64Array(64);
|
|
8780
|
+
for (C = 0; C < 64; C++) B[C] = T[C];
|
|
8781
|
+
for (C = 0; C < 64; C++) T[C] = 0;
|
|
8782
8782
|
Lr(T, B);
|
|
8783
8783
|
}
|
|
8784
|
-
function de(T,
|
|
8784
|
+
function de(T, C, B, b) {
|
|
8785
8785
|
var E, $, D = new Uint8Array(64), W = new Uint8Array(64), q = new Uint8Array(64), Y = new Float64Array(64), gt = [t(), t(), t(), t()];
|
|
8786
8786
|
Yt(D, b, 32), D[0] &= 248, D[31] &= 127, D[31] |= 64;
|
|
8787
8787
|
var G = B + 64;
|
|
8788
|
-
for (E = 0; E < B; E++) T[64 + E] =
|
|
8788
|
+
for (E = 0; E < B; E++) T[64 + E] = C[E];
|
|
8789
8789
|
for (E = 0; E < 32; E++) T[32 + E] = D[32 + E];
|
|
8790
8790
|
for (Yt(q, T.subarray(32), B + 32), se(q), Ve(gt, q), ae(T, gt), E = 32; E < 64; E++) T[E] = b[E];
|
|
8791
8791
|
for (Yt(W, T, B + 64), se(W), E = 0; E < 64; E++) Y[E] = 0;
|
|
@@ -8793,132 +8793,132 @@ var da = { exports: {} };
|
|
|
8793
8793
|
for (E = 0; E < 32; E++) for ($ = 0; $ < 32; $++) Y[E + $] += W[E] * D[$];
|
|
8794
8794
|
return Lr(T.subarray(32), Y), G;
|
|
8795
8795
|
}
|
|
8796
|
-
function Kr(T,
|
|
8796
|
+
function Kr(T, C, B, b) {
|
|
8797
8797
|
var E, $ = new Uint8Array(32), D = new Uint8Array(64), W = [t(), t(), t(), t()], q = [t(), t(), t(), t()];
|
|
8798
8798
|
if (B < 64 || function(Y, gt) {
|
|
8799
8799
|
var G = t(), ct = t(), wt = t(), nt = t(), ht = t(), xt = t(), ot = t();
|
|
8800
8800
|
return y(Y[2], a), U(Y[1], gt), X(wt, Y[1]), H(nt, wt, c), F(wt, wt, Y[2]), V(nt, Y[2], nt), X(ht, nt), X(xt, ht), H(ot, xt, ht), H(G, ot, wt), H(G, G, nt), dt(G, G), H(G, G, wt), H(G, G, nt), H(G, G, nt), H(Y[0], G, nt), X(ct, Y[0]), H(ct, ct, nt), j(ct, wt) && H(Y[0], Y[0], w), X(ct, Y[0]), H(ct, ct, nt), j(ct, wt) ? -1 : (Z(Y[0]) === gt[31] >> 7 && F(Y[0], s, Y[0]), H(Y[3], Y[0], Y[1]), 0);
|
|
8801
8801
|
}(q, b)) return -1;
|
|
8802
|
-
for (E = 0; E < B; E++) T[E] =
|
|
8802
|
+
for (E = 0; E < B; E++) T[E] = C[E];
|
|
8803
8803
|
for (E = 0; E < 32; E++) T[E + 32] = b[E];
|
|
8804
|
-
if (Yt(D, T, B), se(D), Vt(W, q, D), Ve(q,
|
|
8804
|
+
if (Yt(D, T, B), se(D), Vt(W, q, D), Ve(q, C.subarray(32)), ee(W, q), ae($, W), B -= 64, _(C, 0, $, 0)) {
|
|
8805
8805
|
for (E = 0; E < B; E++) T[E] = 0;
|
|
8806
8806
|
return -1;
|
|
8807
8807
|
}
|
|
8808
|
-
for (E = 0; E < B; E++) T[E] =
|
|
8808
|
+
for (E = 0; E < B; E++) T[E] = C[E + 64];
|
|
8809
8809
|
return B;
|
|
8810
8810
|
}
|
|
8811
8811
|
var fe = 16, re = 64, ze = 32, ne = 64;
|
|
8812
|
-
function pe(T,
|
|
8812
|
+
function pe(T, C) {
|
|
8813
8813
|
if (T.length !== 32) throw new Error("bad key size");
|
|
8814
|
-
if (
|
|
8814
|
+
if (C.length !== 24) throw new Error("bad nonce size");
|
|
8815
8815
|
}
|
|
8816
8816
|
function Ee() {
|
|
8817
8817
|
for (var T = 0; T < arguments.length; T++) if (!(arguments[T] instanceof Uint8Array)) throw new TypeError("unexpected type, use Uint8Array");
|
|
8818
8818
|
}
|
|
8819
8819
|
function ue(T) {
|
|
8820
|
-
for (var
|
|
8820
|
+
for (var C = 0; C < T.length; C++) T[C] = 0;
|
|
8821
8821
|
}
|
|
8822
|
-
e.lowlevel = { crypto_core_hsalsa20: S, crypto_stream_xor: z, crypto_stream: L, crypto_stream_salsa20_xor: k, crypto_stream_salsa20: N, crypto_onetimeauth: l, crypto_onetimeauth_verify: g, crypto_verify_16: I, crypto_verify_32: _, crypto_secretbox: m, crypto_secretbox_open: u, crypto_scalarmult: yt, crypto_scalarmult_base: Ft, crypto_box_beforenm: Et, crypto_box_afternm: Zt, crypto_box: function(T,
|
|
8822
|
+
e.lowlevel = { crypto_core_hsalsa20: S, crypto_stream_xor: z, crypto_stream: L, crypto_stream_salsa20_xor: k, crypto_stream_salsa20: N, crypto_onetimeauth: l, crypto_onetimeauth_verify: g, crypto_verify_16: I, crypto_verify_32: _, crypto_secretbox: m, crypto_secretbox_open: u, crypto_scalarmult: yt, crypto_scalarmult_base: Ft, crypto_box_beforenm: Et, crypto_box_afternm: Zt, crypto_box: function(T, C, B, b, E, $) {
|
|
8823
8823
|
var D = new Uint8Array(32);
|
|
8824
|
-
return Et(D, E, $), Zt(T,
|
|
8825
|
-
}, crypto_box_open: function(T,
|
|
8824
|
+
return Et(D, E, $), Zt(T, C, B, b, D);
|
|
8825
|
+
}, crypto_box_open: function(T, C, B, b, E, $) {
|
|
8826
8826
|
var D = new Uint8Array(32);
|
|
8827
|
-
return Et(D, E, $), Lt(T,
|
|
8827
|
+
return Et(D, E, $), Lt(T, C, B, b, D);
|
|
8828
8828
|
}, crypto_box_keypair: mt, crypto_hash: Yt, crypto_sign: de, crypto_sign_keypair: ie, crypto_sign_open: Kr, crypto_secretbox_KEYBYTES: 32, crypto_secretbox_NONCEBYTES: 24, crypto_secretbox_ZEROBYTES: 32, crypto_secretbox_BOXZEROBYTES: fe, crypto_scalarmult_BYTES: 32, crypto_scalarmult_SCALARBYTES: 32, crypto_box_PUBLICKEYBYTES: 32, crypto_box_SECRETKEYBYTES: 32, crypto_box_BEFORENMBYTES: 32, crypto_box_NONCEBYTES: 24, crypto_box_ZEROBYTES: 32, crypto_box_BOXZEROBYTES: 16, crypto_sign_BYTES: re, crypto_sign_PUBLICKEYBYTES: ze, crypto_sign_SECRETKEYBYTES: ne, crypto_sign_SEEDBYTES: 32, crypto_hash_BYTES: 64, gf: t, D: c, L: ce, pack25519: R, unpack25519: U, M: H, A: V, S: X, Z: F, pow2523: dt, add: ee, set25519: y, modL: Lr, scalarmult: Vt, scalarbase: Ve }, e.randomBytes = function(T) {
|
|
8829
|
-
var
|
|
8830
|
-
return r(
|
|
8831
|
-
}, e.secretbox = function(T,
|
|
8832
|
-
Ee(T,
|
|
8829
|
+
var C = new Uint8Array(T);
|
|
8830
|
+
return r(C, T), C;
|
|
8831
|
+
}, e.secretbox = function(T, C, B) {
|
|
8832
|
+
Ee(T, C, B), pe(B, C);
|
|
8833
8833
|
for (var b = new Uint8Array(32 + T.length), E = new Uint8Array(b.length), $ = 0; $ < T.length; $++) b[$ + 32] = T[$];
|
|
8834
|
-
return m(E, b, b.length,
|
|
8835
|
-
}, e.secretbox.open = function(T,
|
|
8836
|
-
Ee(T,
|
|
8834
|
+
return m(E, b, b.length, C, B), E.subarray(fe);
|
|
8835
|
+
}, e.secretbox.open = function(T, C, B) {
|
|
8836
|
+
Ee(T, C, B), pe(B, C);
|
|
8837
8837
|
for (var b = new Uint8Array(fe + T.length), E = new Uint8Array(b.length), $ = 0; $ < T.length; $++) b[$ + fe] = T[$];
|
|
8838
|
-
return b.length < 32 || u(E, b, b.length,
|
|
8839
|
-
}, e.secretbox.keyLength = 32, e.secretbox.nonceLength = 24, e.secretbox.overheadLength = fe, e.scalarMult = function(T,
|
|
8840
|
-
if (Ee(T,
|
|
8841
|
-
if (
|
|
8838
|
+
return b.length < 32 || u(E, b, b.length, C, B) !== 0 ? null : E.subarray(32);
|
|
8839
|
+
}, e.secretbox.keyLength = 32, e.secretbox.nonceLength = 24, e.secretbox.overheadLength = fe, e.scalarMult = function(T, C) {
|
|
8840
|
+
if (Ee(T, C), T.length !== 32) throw new Error("bad n size");
|
|
8841
|
+
if (C.length !== 32) throw new Error("bad p size");
|
|
8842
8842
|
var B = new Uint8Array(32);
|
|
8843
|
-
return yt(B, T,
|
|
8843
|
+
return yt(B, T, C), B;
|
|
8844
8844
|
}, e.scalarMult.base = function(T) {
|
|
8845
8845
|
if (Ee(T), T.length !== 32) throw new Error("bad n size");
|
|
8846
|
-
var
|
|
8847
|
-
return Ft(
|
|
8848
|
-
}, e.scalarMult.scalarLength = 32, e.scalarMult.groupElementLength = 32, e.box = function(T,
|
|
8846
|
+
var C = new Uint8Array(32);
|
|
8847
|
+
return Ft(C, T), C;
|
|
8848
|
+
}, e.scalarMult.scalarLength = 32, e.scalarMult.groupElementLength = 32, e.box = function(T, C, B, b) {
|
|
8849
8849
|
var E = e.box.before(B, b);
|
|
8850
|
-
return e.secretbox(T,
|
|
8851
|
-
}, e.box.before = function(T,
|
|
8852
|
-
Ee(T,
|
|
8850
|
+
return e.secretbox(T, C, E);
|
|
8851
|
+
}, e.box.before = function(T, C) {
|
|
8852
|
+
Ee(T, C), function(b, E) {
|
|
8853
8853
|
if (b.length !== 32) throw new Error("bad public key size");
|
|
8854
8854
|
if (E.length !== 32) throw new Error("bad secret key size");
|
|
8855
|
-
}(T,
|
|
8855
|
+
}(T, C);
|
|
8856
8856
|
var B = new Uint8Array(32);
|
|
8857
|
-
return Et(B, T,
|
|
8858
|
-
}, e.box.after = e.secretbox, e.box.open = function(T,
|
|
8857
|
+
return Et(B, T, C), B;
|
|
8858
|
+
}, e.box.after = e.secretbox, e.box.open = function(T, C, B, b) {
|
|
8859
8859
|
var E = e.box.before(B, b);
|
|
8860
|
-
return e.secretbox.open(T,
|
|
8860
|
+
return e.secretbox.open(T, C, E);
|
|
8861
8861
|
}, e.box.open.after = e.secretbox.open, e.box.keyPair = function() {
|
|
8862
|
-
var T = new Uint8Array(32),
|
|
8863
|
-
return mt(T,
|
|
8862
|
+
var T = new Uint8Array(32), C = new Uint8Array(32);
|
|
8863
|
+
return mt(T, C), { publicKey: T, secretKey: C };
|
|
8864
8864
|
}, e.box.keyPair.fromSecretKey = function(T) {
|
|
8865
8865
|
if (Ee(T), T.length !== 32) throw new Error("bad secret key size");
|
|
8866
|
-
var
|
|
8867
|
-
return Ft(
|
|
8868
|
-
}, e.box.publicKeyLength = 32, e.box.secretKeyLength = 32, e.box.sharedKeyLength = 32, e.box.nonceLength = 24, e.box.overheadLength = e.secretbox.overheadLength, e.sign = function(T,
|
|
8869
|
-
if (Ee(T,
|
|
8866
|
+
var C = new Uint8Array(32);
|
|
8867
|
+
return Ft(C, T), { publicKey: C, secretKey: new Uint8Array(T) };
|
|
8868
|
+
}, e.box.publicKeyLength = 32, e.box.secretKeyLength = 32, e.box.sharedKeyLength = 32, e.box.nonceLength = 24, e.box.overheadLength = e.secretbox.overheadLength, e.sign = function(T, C) {
|
|
8869
|
+
if (Ee(T, C), C.length !== ne) throw new Error("bad secret key size");
|
|
8870
8870
|
var B = new Uint8Array(re + T.length);
|
|
8871
|
-
return de(B, T, T.length,
|
|
8872
|
-
}, e.sign.open = function(T,
|
|
8873
|
-
if (Ee(T,
|
|
8874
|
-
var B = new Uint8Array(T.length), b = Kr(B, T, T.length,
|
|
8871
|
+
return de(B, T, T.length, C), B;
|
|
8872
|
+
}, e.sign.open = function(T, C) {
|
|
8873
|
+
if (Ee(T, C), C.length !== ze) throw new Error("bad public key size");
|
|
8874
|
+
var B = new Uint8Array(T.length), b = Kr(B, T, T.length, C);
|
|
8875
8875
|
if (b < 0) return null;
|
|
8876
8876
|
for (var E = new Uint8Array(b), $ = 0; $ < E.length; $++) E[$] = B[$];
|
|
8877
8877
|
return E;
|
|
8878
|
-
}, e.sign.detached = function(T,
|
|
8879
|
-
for (var B = e.sign(T,
|
|
8878
|
+
}, e.sign.detached = function(T, C) {
|
|
8879
|
+
for (var B = e.sign(T, C), b = new Uint8Array(re), E = 0; E < b.length; E++) b[E] = B[E];
|
|
8880
8880
|
return b;
|
|
8881
|
-
}, e.sign.detached.verify = function(T,
|
|
8882
|
-
if (Ee(T,
|
|
8881
|
+
}, e.sign.detached.verify = function(T, C, B) {
|
|
8882
|
+
if (Ee(T, C, B), C.length !== re) throw new Error("bad signature size");
|
|
8883
8883
|
if (B.length !== ze) throw new Error("bad public key size");
|
|
8884
8884
|
var b, E = new Uint8Array(re + T.length), $ = new Uint8Array(re + T.length);
|
|
8885
|
-
for (b = 0; b < re; b++) E[b] =
|
|
8885
|
+
for (b = 0; b < re; b++) E[b] = C[b];
|
|
8886
8886
|
for (b = 0; b < T.length; b++) E[b + re] = T[b];
|
|
8887
8887
|
return Kr($, E, E.length, B) >= 0;
|
|
8888
8888
|
}, e.sign.keyPair = function() {
|
|
8889
|
-
var T = new Uint8Array(ze),
|
|
8890
|
-
return ie(T,
|
|
8889
|
+
var T = new Uint8Array(ze), C = new Uint8Array(ne);
|
|
8890
|
+
return ie(T, C), { publicKey: T, secretKey: C };
|
|
8891
8891
|
}, e.sign.keyPair.fromSecretKey = function(T) {
|
|
8892
8892
|
if (Ee(T), T.length !== ne) throw new Error("bad secret key size");
|
|
8893
|
-
for (var
|
|
8894
|
-
return { publicKey:
|
|
8893
|
+
for (var C = new Uint8Array(ze), B = 0; B < C.length; B++) C[B] = T[32 + B];
|
|
8894
|
+
return { publicKey: C, secretKey: new Uint8Array(T) };
|
|
8895
8895
|
}, e.sign.keyPair.fromSeed = function(T) {
|
|
8896
8896
|
if (Ee(T), T.length !== 32) throw new Error("bad seed size");
|
|
8897
|
-
for (var
|
|
8898
|
-
return ie(
|
|
8897
|
+
for (var C = new Uint8Array(ze), B = new Uint8Array(ne), b = 0; b < 32; b++) B[b] = T[b];
|
|
8898
|
+
return ie(C, B, !0), { publicKey: C, secretKey: B };
|
|
8899
8899
|
}, e.sign.publicKeyLength = ze, e.sign.secretKeyLength = ne, e.sign.seedLength = 32, e.sign.signatureLength = re, e.hash = function(T) {
|
|
8900
8900
|
Ee(T);
|
|
8901
|
-
var
|
|
8902
|
-
return Yt(
|
|
8903
|
-
}, e.hash.hashLength = 64, e.verify = function(T,
|
|
8904
|
-
return Ee(T,
|
|
8901
|
+
var C = new Uint8Array(64);
|
|
8902
|
+
return Yt(C, T, T.length), C;
|
|
8903
|
+
}, e.hash.hashLength = 64, e.verify = function(T, C) {
|
|
8904
|
+
return Ee(T, C), T.length !== 0 && C.length !== 0 && T.length === C.length && A(T, 0, C, 0, T.length) === 0;
|
|
8905
8905
|
}, e.setPRNG = function(T) {
|
|
8906
8906
|
r = T;
|
|
8907
8907
|
}, function() {
|
|
8908
8908
|
var T = typeof self < "u" ? self.crypto || self.msCrypto : null;
|
|
8909
|
-
T && T.getRandomValues ? e.setPRNG(function(
|
|
8909
|
+
T && T.getRandomValues ? e.setPRNG(function(C, B) {
|
|
8910
8910
|
var b, E = new Uint8Array(B);
|
|
8911
8911
|
for (b = 0; b < B; b += 65536) T.getRandomValues(E.subarray(b, b + Math.min(B - b, 65536)));
|
|
8912
|
-
for (b = 0; b < B; b++)
|
|
8912
|
+
for (b = 0; b < B; b++) C[b] = E[b];
|
|
8913
8913
|
ue(E);
|
|
8914
|
-
}) : e1 !== void 0 && (T = Rs) && T.randomBytes && e.setPRNG(function(
|
|
8914
|
+
}) : e1 !== void 0 && (T = Rs) && T.randomBytes && e.setPRNG(function(C, B) {
|
|
8915
8915
|
var b, E = T.randomBytes(B);
|
|
8916
|
-
for (b = 0; b < B; b++)
|
|
8916
|
+
for (b = 0; b < B; b++) C[b] = E[b];
|
|
8917
8917
|
ue(E);
|
|
8918
8918
|
});
|
|
8919
8919
|
}();
|
|
8920
8920
|
})(da.exports ? da.exports : self.nacl = self.nacl || {});
|
|
8921
|
-
const
|
|
8921
|
+
const hi = ni(da.exports), Ke = new class {
|
|
8922
8922
|
string(e) {
|
|
8923
8923
|
let t;
|
|
8924
8924
|
return t = typeof e == "object" && e !== null ? JSON.stringify(e) : String(e), this.stringToUnicode(t.replace(/\//g, "\\/"));
|
|
@@ -8946,7 +8946,7 @@ const fi = ri(da.exports), Ke = new class {
|
|
|
8946
8946
|
isHex(e) {
|
|
8947
8947
|
return typeof e != "string" ? !1 : /^[0-9a-fA-F]+$/.test(e) && e.length % 2 == 0;
|
|
8948
8948
|
}
|
|
8949
|
-
}(),
|
|
8949
|
+
}(), bi = new class {
|
|
8950
8950
|
string(e) {
|
|
8951
8951
|
return Ke.string(e);
|
|
8952
8952
|
}
|
|
@@ -8976,23 +8976,23 @@ const fi = ri(da.exports), Ke = new class {
|
|
|
8976
8976
|
this.KEY_SIZE = 64, this.SIGNATURE_SIZE = 128;
|
|
8977
8977
|
}
|
|
8978
8978
|
keyPair() {
|
|
8979
|
-
const e =
|
|
8979
|
+
const e = hi.sign.keyPair();
|
|
8980
8980
|
return { private_key: Ke.byteToHex(e.secretKey).slice(0, this.KEY_SIZE), public_key: Ke.byteToHex(e.publicKey), address: this.address(Ke.byteToHex(e.publicKey)) };
|
|
8981
8981
|
}
|
|
8982
8982
|
privateKey() {
|
|
8983
|
-
return Ke.byteToHex(
|
|
8983
|
+
return Ke.byteToHex(hi.sign.keyPair().secretKey).slice(0, this.KEY_SIZE);
|
|
8984
8984
|
}
|
|
8985
8985
|
publicKey(e) {
|
|
8986
|
-
return Ke.byteToHex(
|
|
8986
|
+
return Ke.byteToHex(hi.sign.keyPair.fromSeed(Ke.hexToByte(e)).publicKey);
|
|
8987
8987
|
}
|
|
8988
8988
|
address(e) {
|
|
8989
|
-
return
|
|
8989
|
+
return bi.idHash(e);
|
|
8990
8990
|
}
|
|
8991
8991
|
signature(e, t) {
|
|
8992
|
-
return Ke.byteToHex(
|
|
8992
|
+
return Ke.byteToHex(hi.sign.detached(Ke.stringToByte(bi.string(e)), Ke.hexToByte(t + this.publicKey(t))));
|
|
8993
8993
|
}
|
|
8994
8994
|
signatureValidity(e, t, r) {
|
|
8995
|
-
return r.length === this.SIGNATURE_SIZE &&
|
|
8995
|
+
return r.length === this.SIGNATURE_SIZE && bi.isHex(r) === !0 && hi.sign.detached.verify(Ke.stringToByte(bi.string(e)), Ke.hexToByte(r), Ke.hexToByte(t));
|
|
8996
8996
|
}
|
|
8997
8997
|
}(), Zi = new class {
|
|
8998
8998
|
constructor() {
|
|
@@ -9042,8 +9042,8 @@ function Sd(e) {
|
|
|
9042
9042
|
return e instanceof Uint8Array ? e : e instanceof ArrayBuffer ? new Uint8Array(e) : new Uint8Array(e.buffer, e.byteOffset, e.byteLength);
|
|
9043
9043
|
}
|
|
9044
9044
|
let bo;
|
|
9045
|
-
const e3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
9046
|
-
for (let e = 0; e < 64; e++)
|
|
9045
|
+
const e3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", yi = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
9046
|
+
for (let e = 0; e < 64; e++) yi[e3.charCodeAt(e)] = e;
|
|
9047
9047
|
const r3 = typeof ArrayBuffer == "function", Ua = (e, t) => {
|
|
9048
9048
|
if (typeof e != "string") return { type: "message", data: bf(e, t) };
|
|
9049
9049
|
const r = e.charAt(0);
|
|
@@ -9054,7 +9054,7 @@ const r3 = typeof ArrayBuffer == "function", Ua = (e, t) => {
|
|
|
9054
9054
|
let i, s, a, o, c, d = 0.75 * n.length, h = n.length, p = 0;
|
|
9055
9055
|
n[n.length - 1] === "=" && (d--, n[n.length - 2] === "=" && d--);
|
|
9056
9056
|
const w = new ArrayBuffer(d), v = new Uint8Array(w);
|
|
9057
|
-
for (i = 0; i < h; i += 4) s =
|
|
9057
|
+
for (i = 0; i < h; i += 4) s = yi[n.charCodeAt(i)], a = yi[n.charCodeAt(i + 1)], o = yi[n.charCodeAt(i + 2)], c = yi[n.charCodeAt(i + 3)], v[p++] = s << 2 | a >> 4, v[p++] = (15 & a) << 4 | o >> 2, v[p++] = (3 & o) << 6 | 63 & c;
|
|
9058
9058
|
return w;
|
|
9059
9059
|
})(e);
|
|
9060
9060
|
return bf(r, t);
|
|
@@ -10262,7 +10262,7 @@ class ma extends Se {
|
|
|
10262
10262
|
this._reconnecting = !1, this.backoff.reset(), this.emitReserved("reconnect", t);
|
|
10263
10263
|
}
|
|
10264
10264
|
}
|
|
10265
|
-
const
|
|
10265
|
+
const ui = {};
|
|
10266
10266
|
function fs(e, t) {
|
|
10267
10267
|
typeof e == "object" && (t = e, e = void 0);
|
|
10268
10268
|
const r = function(c, d = "", h) {
|
|
@@ -10270,12 +10270,12 @@ function fs(e, t) {
|
|
|
10270
10270
|
h = h || typeof location < "u" && location, c == null && (c = h.protocol + "//" + h.host), typeof c == "string" && (c.charAt(0) === "/" && (c = c.charAt(1) === "/" ? h.protocol + c : h.host + c), /^(https?|wss?):\/\//.test(c) || (c = h !== void 0 ? h.protocol + "//" + c : "https://" + c), p = ha(c)), p.port || (/^(http|ws)$/.test(p.protocol) ? p.port = "80" : /^(http|ws)s$/.test(p.protocol) && (p.port = "443")), p.path = p.path || "/";
|
|
10271
10271
|
const w = p.host.indexOf(":") !== -1 ? "[" + p.host + "]" : p.host;
|
|
10272
10272
|
return p.id = p.protocol + "://" + w + ":" + p.port + d, p.href = p.protocol + "://" + w + (h && h.port === p.port ? "" : ":" + p.port), p;
|
|
10273
|
-
}(e, (t = t || {}).path || "/socket.io"), n = r.source, i = r.id, s = r.path, a =
|
|
10273
|
+
}(e, (t = t || {}).path || "/socket.io"), n = r.source, i = r.id, s = r.path, a = ui[i] && s in ui[i].nsps;
|
|
10274
10274
|
let o;
|
|
10275
|
-
return t.forceNew || t["force new connection"] || t.multiplex === !1 || a ? o = new ma(n, t) : (
|
|
10275
|
+
return t.forceNew || t["force new connection"] || t.multiplex === !1 || a ? o = new ma(n, t) : (ui[i] || (ui[i] = new ma(n, t)), o = ui[i]), r.query && !t.query && (t.query = r.queryKey), o.socket(r.path, t);
|
|
10276
10276
|
}
|
|
10277
10277
|
Object.assign(fs, { Manager: ma, Socket: Af, io: fs, connect: fs });
|
|
10278
|
-
const T3 = process.env.NEXT_PUBLIC_SOCKET_ENCRYPTED_URL || "
|
|
10278
|
+
const T3 = process.env.NEXT_PUBLIC_SOCKET_ENCRYPTED_URL || "U2FsdGVkX198E2S0aZLQMMr5muT8JIyx2ysyvI9Wytbp8iF3qYTzcfle9NfoDVA/", R3 = process.env.NEXT_PUBLIC_SOCKET_KEY || "049ec031fa0357114b604cf7e54fc1622811cd089cc50659af82fff59c3e4a81ddaad524fd4ef5f952924c973bea94114639561fa24aff757be11a275706ddec91", Sf = Zi.decrypt(T3, R3);
|
|
10279
10279
|
if (!Sf) throw new Error("VITE_SOCKET_URL 환경 변수가 설정되지 않았습니다.");
|
|
10280
10280
|
const bn = class bn {
|
|
10281
10281
|
constructor() {
|
|
@@ -10410,7 +10410,7 @@ Nonce: ${r}`, await this.sendMessage(e, t);
|
|
|
10410
10410
|
getAddress(e) {
|
|
10411
10411
|
return Is.address(e);
|
|
10412
10412
|
}
|
|
10413
|
-
}(), Ef = { Enc:
|
|
10413
|
+
}(), Ef = { Enc: bi, Sign: Is, Util: Ke, Validation: N3 }, Nn = new class {
|
|
10414
10414
|
generateLoginQrCode(e, t, r, n, i, s) {
|
|
10415
10415
|
const a = xe.lib.WordArray.random(16).toString(xe.enc.Hex), o = new URLSearchParams({ roomId: a, dapp: e, url: t, network: r.toString(), icon: n ?? "undefined", method: i }), c = encodeURIComponent(o.toString()), d = `${this.getQrDomain(s)}/qrCode/scan?type=login&encoded=${c}`;
|
|
10416
10416
|
return Ut.joinRoom(a), { qrCode: d, roomId: a };
|
|
@@ -10435,7 +10435,7 @@ Nonce: ${r}`, await this.sendMessage(e, t);
|
|
|
10435
10435
|
return e || "https://zigap.io";
|
|
10436
10436
|
}
|
|
10437
10437
|
}(), Vi = "data:image/svg+xml,%3csvg%20width='167'%20height='166'%20viewBox='0%200%20167%20166'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M116.052%20115.296H166.355H166.36V0H51.0675V50.3042H0.759995V165.6H116.052V115.296ZM90.3366%2065.3428L40.21%20115.296H40.4307L40.2551%20115.471H101.014V150.561H15.7981V65.3428H90.3366ZM76.7327%20100.257H151.317V15.0386H66.1006V50.1536L109.424%2050.3042H126.684L126.624%2050.364L126.669%2050.3642L113.846%2063.1431L76.7327%20100.257Z'%20fill='url(%23paint0_linear_2322_66)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2322_66'%20x1='167.74'%20y1='-2.07'%20x2='-3.37985'%20y2='172.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231349F8'/%3e%3cstop%20offset='1'%20stop-color='%235C13F8'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", j3 = ({ availableNetworks: e, dapp: t, url: r, sigMessage: n, onReceive: i, validSeconds: s, isShowLogo: a = !1, logoSize: o = 30, expire: c, icon: d, size: h, processingMark: p = { type: "DEFAULT" }, qrDomain: w, ...v }) => {
|
|
10438
|
-
const [A, I] = Fe(!0), [_, M] = Fe(!1), S = Zi.generateNonce(16), { qrCode:
|
|
10438
|
+
const [A, I] = Fe(!0), [_, M] = Fe(!1), S = Zi.generateNonce(16), { qrCode: O, roomId: k } = Nn.generateLoginQrCode(t, r, e, d, "login", w);
|
|
10439
10439
|
return We(() => {
|
|
10440
10440
|
const N = setTimeout(() => {
|
|
10441
10441
|
Ut.leaveRoom(k), I(!1);
|
|
@@ -10450,8 +10450,8 @@ Nonce: ${r}`, await this.sendMessage(e, t);
|
|
|
10450
10450
|
i && i({ status: "ACCOUNT" });
|
|
10451
10451
|
const z = `${n}
|
|
10452
10452
|
|
|
10453
|
-
Nonce: ${S}`, f = (c == null ? void 0 : c.type) ?? "NONE", l = (c == null ? void 0 : c.seconds) ?? 0, g = { publicKey: L.publicKey, message: z }, m = { address: L.address, network: L.network, nickName: L.nickName, token: Ef.Validation.createToken(g, L.signature), issuedDateTime:
|
|
10454
|
-
i && i({ status: "SUCCESS", result: m }), M(!1), localStorage.setItem(
|
|
10453
|
+
Nonce: ${S}`, f = (c == null ? void 0 : c.type) ?? "NONE", l = (c == null ? void 0 : c.seconds) ?? 0, g = { publicKey: L.publicKey, message: z }, m = { address: L.address, network: L.network, nickName: L.nickName, token: Ef.Validation.createToken(g, L.signature), issuedDateTime: gi().format(vi), isVerified: L.isVerified, signature: L.signature, expire: f === "NONE" ? { type: f } : { type: f, seconds: l } };
|
|
10454
|
+
i && i({ status: "SUCCESS", result: m }), M(!1), localStorage.setItem(Fn, JSON.stringify(m));
|
|
10455
10455
|
}
|
|
10456
10456
|
} catch {
|
|
10457
10457
|
i && i({ status: "ERROR" }), M(!1);
|
|
@@ -10467,7 +10467,7 @@ Nonce: ${S}`, f = (c == null ? void 0 : c.type) ?? "NONE", l = (c == null ? void
|
|
|
10467
10467
|
case "CUSTOM":
|
|
10468
10468
|
return p.type === "CUSTOM" ? p.component : void 0;
|
|
10469
10469
|
}
|
|
10470
|
-
})(p.type) }) : Dt.jsx(In, { value:
|
|
10470
|
+
})(p.type) }) : Dt.jsx(In, { value: O, size: h, ...a && { imageSettings: { src: Vi, width: o, height: o, excavate: !1 } }, ...v }) }) : Dt.jsx(Id, { children: Dt.jsx(Td, { children: "QR timeout" }) });
|
|
10471
10471
|
}, Id = Br.div`
|
|
10472
10472
|
width: ${(e) => e.$size ? `${e.$size}px` : "128px"};
|
|
10473
10473
|
height: ${(e) => e.$size ? `${e.$size}px` : "128px"};
|
|
@@ -10520,16 +10520,16 @@ Nonce: ${S}`, f = (c == null ? void 0 : c.type) ?? "NONE", l = (c == null ? void
|
|
|
10520
10520
|
}(), U3 = ({ network: e, dapp: t, address: r, amount: n, description: i, info: s, onReceive: a, validSeconds: o, isShowLogo: c = !1, logoSize: d = 30, size: h, processingMark: p = { type: "DEFAULT" }, ...w }) => {
|
|
10521
10521
|
const [v, A] = Fe(!0), [I, _] = Fe(!1), { qrCode: M, roomId: S } = Nn.generatePaymentQrCode(t, e, r, n, i, s);
|
|
10522
10522
|
return We(() => {
|
|
10523
|
-
const
|
|
10523
|
+
const O = setTimeout(() => {
|
|
10524
10524
|
Ut.leaveRoom(S), A(!1);
|
|
10525
10525
|
}, 1e3 * o);
|
|
10526
|
-
return () => clearTimeout(
|
|
10526
|
+
return () => clearTimeout(O);
|
|
10527
10527
|
}, [S, o]), We(() => {
|
|
10528
10528
|
(async () => {
|
|
10529
10529
|
try {
|
|
10530
10530
|
console.log("roomId", S);
|
|
10531
|
-
const
|
|
10532
|
-
if (_(!0), a && a({ status: "REQUEST" }),
|
|
10531
|
+
const O = await Rd.startPayment(S);
|
|
10532
|
+
if (_(!0), a && a({ status: "REQUEST" }), O.isSuccess) {
|
|
10533
10533
|
const k = await Rd.qrPayment(S), N = { from: k.from, txHash: k.txHash, status: k.status };
|
|
10534
10534
|
console.log("result: ", N), a && a({ status: "SUCCESS" }), _(!1);
|
|
10535
10535
|
}
|
|
@@ -10537,27 +10537,27 @@ Nonce: ${S}`, f = (c == null ? void 0 : c.type) ?? "NONE", l = (c == null ? void
|
|
|
10537
10537
|
a && a({ status: "ERROR" }), _(!1);
|
|
10538
10538
|
}
|
|
10539
10539
|
})();
|
|
10540
|
-
}, [a]), v ? Dt.jsx(Dt.Fragment, { children: I && p.type !== "NONE" ? Dt.jsx(Nd, { $size: h, children: ((
|
|
10541
|
-
switch (
|
|
10540
|
+
}, [a]), v ? Dt.jsx(Dt.Fragment, { children: I && p.type !== "NONE" ? Dt.jsx(Nd, { $size: h, children: ((O) => {
|
|
10541
|
+
switch (O) {
|
|
10542
10542
|
case "DEFAULT":
|
|
10543
|
-
return Dt.jsx(
|
|
10543
|
+
return Dt.jsx(Cd, { children: "processing..." });
|
|
10544
10544
|
case "NONE":
|
|
10545
10545
|
default:
|
|
10546
10546
|
return;
|
|
10547
10547
|
case "CUSTOM":
|
|
10548
10548
|
return p.type === "CUSTOM" ? p.component : void 0;
|
|
10549
10549
|
}
|
|
10550
|
-
})(p.type) }) : Dt.jsx(In, { value: M, size: h, ...c && { imageSettings: { src: Vi, width: d, height: d, excavate: !1 } }, ...w }) }) : Dt.jsx(Nd, { children: Dt.jsx(
|
|
10550
|
+
})(p.type) }) : Dt.jsx(In, { value: M, size: h, ...c && { imageSettings: { src: Vi, width: d, height: d, excavate: !1 } }, ...w }) }) : Dt.jsx(Nd, { children: Dt.jsx(Cd, { children: "QR timeout" }) });
|
|
10551
10551
|
}, Nd = Br.div`
|
|
10552
10552
|
width: ${(e) => e.$size ? `${e.$size}px` : "128px"};
|
|
10553
10553
|
height: ${(e) => e.$size ? `${e.$size}px` : "128px"};
|
|
10554
10554
|
display: flex;
|
|
10555
10555
|
justify-content: center;
|
|
10556
10556
|
align-items: center;
|
|
10557
|
-
`,
|
|
10557
|
+
`, Cd = Br.div`
|
|
10558
10558
|
font-size: 12px;
|
|
10559
10559
|
color: #7a7a7a;
|
|
10560
|
-
`,
|
|
10560
|
+
`, C3 = new class {
|
|
10561
10561
|
isAccountType(e) {
|
|
10562
10562
|
return typeof e == "object" && e !== null && typeof e.address == "string" && typeof e.network == "string" && typeof e.nickName == "string";
|
|
10563
10563
|
}
|
|
@@ -10588,14 +10588,14 @@ Nonce: ${S}`, f = (c == null ? void 0 : c.type) ?? "NONE", l = (c == null ? void
|
|
|
10588
10588
|
(async () => {
|
|
10589
10589
|
try {
|
|
10590
10590
|
console.log("roomId22", w);
|
|
10591
|
-
const v = await
|
|
10591
|
+
const v = await C3.qrAddressProvide(w);
|
|
10592
10592
|
v.address, v.network, v.nickName, i({ isSuccess: !0 });
|
|
10593
10593
|
} catch {
|
|
10594
10594
|
i({ isSuccess: !1 });
|
|
10595
10595
|
}
|
|
10596
10596
|
})();
|
|
10597
10597
|
}, []), d ? Dt.jsx(In, { value: p, ...s && { imageSettings: { src: Vi, width: a, height: a, excavate: !1 } }, ...c }) : Dt.jsx("div", { children: "QR loading error" });
|
|
10598
|
-
},
|
|
10598
|
+
}, Od = new class {
|
|
10599
10599
|
startAirdrop(e) {
|
|
10600
10600
|
return new Promise((t, r) => {
|
|
10601
10601
|
Ut.onMessageReceived("userJoined", (n) => {
|
|
@@ -10612,26 +10612,26 @@ Nonce: ${S}`, f = (c == null ? void 0 : c.type) ?? "NONE", l = (c == null ? void
|
|
|
10612
10612
|
}
|
|
10613
10613
|
}(), $3 = ({ availableNetworks: e, dapp: t, validSeconds: r, onReceive: n, isShowLogo: i = !1, logoSize: s = 30, icon: a, size: o, processingMark: c = { type: "DEFAULT" }, ...d }) => {
|
|
10614
10614
|
const [h, p] = Fe(!0), [w, v] = Fe(!1), [A, I] = Fe(""), [_, M] = Fe(""), S = () => {
|
|
10615
|
-
const { qrCode:
|
|
10616
|
-
I(k), M(
|
|
10615
|
+
const { qrCode: O, roomId: k } = Nn.generateAirdropQrCode(t, e, a);
|
|
10616
|
+
I(k), M(O), console.log("New QR Code generated:", k);
|
|
10617
10617
|
};
|
|
10618
10618
|
return We(() => {
|
|
10619
10619
|
S();
|
|
10620
10620
|
}, []), We(() => {
|
|
10621
|
-
const
|
|
10621
|
+
const O = setTimeout(() => {
|
|
10622
10622
|
Ut.leaveRoom(A), p(!1);
|
|
10623
10623
|
}, 60 * r * 1e3);
|
|
10624
|
-
return () => clearTimeout(
|
|
10624
|
+
return () => clearTimeout(O);
|
|
10625
10625
|
}, [A, r]), We(() => {
|
|
10626
10626
|
(async () => {
|
|
10627
10627
|
try {
|
|
10628
|
-
console.log("roomId:", A), (await
|
|
10629
|
-
} catch (
|
|
10630
|
-
console.error("Error during airdrop:",
|
|
10628
|
+
console.log("roomId:", A), (await Od.startAirdrop(A)).isSuccess && (v(!0), n && n({ status: "REQUEST" }), (await Od.getAirdrop(A)).isSuccess ? (n && n({ status: "SUCCESS", result: { isSuccess: !0 } }), v(!1), S(), Ut.leaveRoom(A)) : (n && n({ status: "ERROR", result: { isSuccess: !1 } }), v(!1), console.log("Airdrop failed, keeping processing state"), Ut.leaveRoom(A)));
|
|
10629
|
+
} catch (O) {
|
|
10630
|
+
console.error("Error during airdrop:", O), n && n({ status: "ERROR", result: { isSuccess: !1 } }), v(!1), Ut.leaveRoom(A);
|
|
10631
10631
|
}
|
|
10632
10632
|
})();
|
|
10633
|
-
}, [A, n]), h ? Dt.jsx(Dt.Fragment, { children: w && c.type !== "NONE" ? Dt.jsx(Bd, { $size: o, children: ((
|
|
10634
|
-
switch (
|
|
10633
|
+
}, [A, n]), h ? Dt.jsx(Dt.Fragment, { children: w && c.type !== "NONE" ? Dt.jsx(Bd, { $size: o, children: ((O) => {
|
|
10634
|
+
switch (O) {
|
|
10635
10635
|
case "DEFAULT":
|
|
10636
10636
|
return Dt.jsx(Pd, { children: "Processing..." });
|
|
10637
10637
|
case "NONE":
|
|
@@ -10691,15 +10691,15 @@ Nonce: ${S}`, f = (c == null ? void 0 : c.type) ?? "NONE", l = (c == null ? void
|
|
|
10691
10691
|
}(), H3 = ({ availableNetworks: e, dapp: t, url: r, onReceive: n, validSeconds: i, isShowLogo: s = !1, logoSize: a = 30, size: o, icon: c, transaction: d, processingMark: h = { type: "DEFAULT" }, qrDomain: p, ...w }) => {
|
|
10692
10692
|
const [v, A] = Fe(!0), [I, _] = Fe(!1), { qrCode: M, roomId: S } = Nn.generateSendTransactionQrCode(t, e, r, c, p);
|
|
10693
10693
|
return We(() => {
|
|
10694
|
-
const
|
|
10694
|
+
const O = setTimeout(() => {
|
|
10695
10695
|
Ut.leaveRoom(S), A(!1);
|
|
10696
10696
|
}, 1e3 * i);
|
|
10697
|
-
return () => clearTimeout(
|
|
10697
|
+
return () => clearTimeout(O);
|
|
10698
10698
|
}, [S, i]), We(() => {
|
|
10699
10699
|
(async () => {
|
|
10700
10700
|
try {
|
|
10701
|
-
const
|
|
10702
|
-
if (_(!0), n && n({ status: "REQUEST" }),
|
|
10701
|
+
const O = await Ld.receiveRequest(S);
|
|
10702
|
+
if (_(!0), n && n({ status: "REQUEST" }), O.isSuccess) {
|
|
10703
10703
|
const k = await Ld.qrSendTransaction(S, d), N = { txHash: k.txHash, status: k.status, error: k.error };
|
|
10704
10704
|
n && n({ status: "SUCCESS", result: N }), _(!1);
|
|
10705
10705
|
}
|
|
@@ -10707,8 +10707,8 @@ Nonce: ${S}`, f = (c == null ? void 0 : c.type) ?? "NONE", l = (c == null ? void
|
|
|
10707
10707
|
n && n({ status: "ERROR" }), _(!1);
|
|
10708
10708
|
}
|
|
10709
10709
|
})();
|
|
10710
|
-
}, [n]), v ? Dt.jsx(Dt.Fragment, { children: I && h.type !== "NONE" ? Dt.jsx(zd, { $size: o, children: ((
|
|
10711
|
-
switch (
|
|
10710
|
+
}, [n]), v ? Dt.jsx(Dt.Fragment, { children: I && h.type !== "NONE" ? Dt.jsx(zd, { $size: o, children: ((O) => {
|
|
10711
|
+
switch (O) {
|
|
10712
10712
|
case "DEFAULT":
|
|
10713
10713
|
return Dt.jsx(jd, { children: "processing..." });
|
|
10714
10714
|
case "NONE":
|
|
@@ -10728,7 +10728,7 @@ Nonce: ${S}`, f = (c == null ? void 0 : c.type) ?? "NONE", l = (c == null ? void
|
|
|
10728
10728
|
font-size: 12px;
|
|
10729
10729
|
color: #7a7a7a;
|
|
10730
10730
|
`, D3 = ({ availableNetworks: e, dapp: t, url: r, sigMessage: n, onReceive: i, validSeconds: s, isShowLogo: a = !1, logoSize: o = 30, expire: c, icon: d, size: h, processingMark: p = { type: "DEFAULT" }, qrDomain: w, ...v }) => {
|
|
10731
|
-
const [A, I] = Fe(!0), [_, M] = Fe(!1), S = Zi.generateNonce(16), { qrCode:
|
|
10731
|
+
const [A, I] = Fe(!0), [_, M] = Fe(!1), S = Zi.generateNonce(16), { qrCode: O, roomId: k } = Nn.generateLoginQrCode(t, r, e, d, "signature", w);
|
|
10732
10732
|
return We(() => {
|
|
10733
10733
|
const N = setTimeout(() => {
|
|
10734
10734
|
Ut.leaveRoom(k), I(!1);
|
|
@@ -10743,8 +10743,8 @@ Nonce: ${S}`, f = (c == null ? void 0 : c.type) ?? "NONE", l = (c == null ? void
|
|
|
10743
10743
|
i && i({ status: "ACCOUNT" });
|
|
10744
10744
|
const z = `${n}
|
|
10745
10745
|
|
|
10746
|
-
Nonce: ${S}`, f = (c == null ? void 0 : c.type) ?? "NONE", l = (c == null ? void 0 : c.seconds) ?? 0, g = { publicKey: L.publicKey, message: z }, m = { address: L.address, network: L.network, nickName: L.nickName, token: Ef.Validation.createToken(g, L.signature), issuedDateTime:
|
|
10747
|
-
i && i({ status: "SUCCESS", result: m }), M(!1), localStorage.setItem(
|
|
10746
|
+
Nonce: ${S}`, f = (c == null ? void 0 : c.type) ?? "NONE", l = (c == null ? void 0 : c.seconds) ?? 0, g = { publicKey: L.publicKey, message: z }, m = { address: L.address, network: L.network, nickName: L.nickName, token: Ef.Validation.createToken(g, L.signature), issuedDateTime: gi().format(vi), isVerified: L.isVerified, signature: L.signature, expire: f === "NONE" ? { type: f } : { type: f, seconds: l } };
|
|
10747
|
+
i && i({ status: "SUCCESS", result: m }), M(!1), localStorage.setItem(Fn, JSON.stringify(m));
|
|
10748
10748
|
}
|
|
10749
10749
|
} catch {
|
|
10750
10750
|
i && i({ status: "ERROR" }), M(!1);
|
|
@@ -10760,7 +10760,7 @@ Nonce: ${S}`, f = (c == null ? void 0 : c.type) ?? "NONE", l = (c == null ? void
|
|
|
10760
10760
|
case "CUSTOM":
|
|
10761
10761
|
return p.type === "CUSTOM" ? p.component : void 0;
|
|
10762
10762
|
}
|
|
10763
|
-
})(p.type) }) : Dt.jsx(In, { value:
|
|
10763
|
+
})(p.type) }) : Dt.jsx(In, { value: O, size: h, ...a && { imageSettings: { src: Vi, width: o, height: o, excavate: !1 } }, ...v }) }) : Dt.jsx(Ud, { children: Dt.jsx(qd, { children: "QR timeout" }) });
|
|
10764
10764
|
}, Ud = Br.div`
|
|
10765
10765
|
width: ${(e) => e.$size ? `${e.$size}px` : "128px"};
|
|
10766
10766
|
height: ${(e) => e.$size ? `${e.$size}px` : "128px"};
|
|
@@ -10770,7 +10770,9 @@ Nonce: ${S}`, f = (c == null ? void 0 : c.type) ?? "NONE", l = (c == null ? void
|
|
|
10770
10770
|
`, qd = Br.div`
|
|
10771
10771
|
font-size: 12px;
|
|
10772
10772
|
color: #7a7a7a;
|
|
10773
|
-
`, F3 = { Qr: Nn }
|
|
10773
|
+
`, F3 = { Qr: Nn }, Z3 = () => {
|
|
10774
|
+
typeof window < "u" && localStorage.removeItem(Fn);
|
|
10775
|
+
};
|
|
10774
10776
|
export {
|
|
10775
10777
|
q3 as AddressProvideQR,
|
|
10776
10778
|
$3 as AirdropQR,
|
|
@@ -10780,5 +10782,6 @@ export {
|
|
|
10780
10782
|
D3 as SignatureQR,
|
|
10781
10783
|
Ef as Xphere,
|
|
10782
10784
|
F3 as Zigap,
|
|
10785
|
+
Z3 as clearSession,
|
|
10783
10786
|
L3 as useZigap
|
|
10784
10787
|
};
|