ljs-tools 0.9.4 → 0.10.0
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/index.css +1 -1
- package/index.js +871 -864
- package/index.umd.cjs +7 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -84,22 +84,22 @@ function oo({ data: e, value: n, key: r = "id", children: t = "children", parent
|
|
|
84
84
|
return i.unshift(e[o]), i;
|
|
85
85
|
return i;
|
|
86
86
|
}
|
|
87
|
-
function Lr({ data: e, opts: n = [], disabled: r = !1 }) {
|
|
87
|
+
function Lr({ data: e, opts: n = [], disabled: r = !1, fatherInfluenceSon: t = !0 }) {
|
|
88
88
|
if (!e)
|
|
89
89
|
return;
|
|
90
|
-
const
|
|
91
|
-
for (let
|
|
92
|
-
e[
|
|
93
|
-
let
|
|
94
|
-
const
|
|
95
|
-
for (let
|
|
96
|
-
const
|
|
97
|
-
if (e[
|
|
98
|
-
|
|
90
|
+
const i = e.length;
|
|
91
|
+
for (let a = 0; a < i; a++) {
|
|
92
|
+
e[a].disabled = r;
|
|
93
|
+
let o = !1;
|
|
94
|
+
const l = n.length;
|
|
95
|
+
for (let c = 0; c < l; c++) {
|
|
96
|
+
const s = n[c];
|
|
97
|
+
if (e[a][s.key] === s.value) {
|
|
98
|
+
o = !0;
|
|
99
99
|
break;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
a ? (e[
|
|
102
|
+
e[a].deptName, o ? (e[a].disabled = !0, e[a].children = Lr({ data: e[a].children, opts: n, disabled: t, fatherInfluenceSon: t })) : e[a].children !== void 0 && (e[a].children = Lr({ data: e[a].children, opts: n, disabled: r, fatherInfluenceSon: t }));
|
|
103
103
|
}
|
|
104
104
|
return e;
|
|
105
105
|
}
|
|
@@ -117,23 +117,23 @@ function Sl(e) {
|
|
|
117
117
|
}
|
|
118
118
|
function kl({ data: e, id: n = "id", parentId: r = "parentId", children: t = "children" }) {
|
|
119
119
|
let i = { id: n, parentId: r, childrenList: t };
|
|
120
|
-
var a = {}, o = {},
|
|
121
|
-
for (let
|
|
122
|
-
let f =
|
|
123
|
-
a[f] == null && (a[f] = []), o[
|
|
124
|
-
}
|
|
125
|
-
for (let
|
|
126
|
-
let f =
|
|
127
|
-
o[f] == null &&
|
|
128
|
-
}
|
|
129
|
-
for (let
|
|
130
|
-
c(
|
|
131
|
-
function c(
|
|
132
|
-
if (a[
|
|
133
|
-
for (let f of
|
|
120
|
+
var a = {}, o = {}, l = [];
|
|
121
|
+
for (let s of e) {
|
|
122
|
+
let f = s[i.parentId];
|
|
123
|
+
a[f] == null && (a[f] = []), o[s[i.id]] = s, a[f].push(s);
|
|
124
|
+
}
|
|
125
|
+
for (let s of e) {
|
|
126
|
+
let f = s[i.parentId];
|
|
127
|
+
o[f] == null && l.push(s);
|
|
128
|
+
}
|
|
129
|
+
for (let s of l)
|
|
130
|
+
c(s);
|
|
131
|
+
function c(s) {
|
|
132
|
+
if (a[s[i.id]] !== null && (s[i.childrenList] = a[s[i.id]]), s[i.childrenList])
|
|
133
|
+
for (let f of s[i.childrenList])
|
|
134
134
|
c(f);
|
|
135
135
|
}
|
|
136
|
-
return
|
|
136
|
+
return l;
|
|
137
137
|
}
|
|
138
138
|
function Il(e = 120) {
|
|
139
139
|
var n = document.documentElement, r = n.clientWidth / e;
|
|
@@ -143,9 +143,9 @@ function so({ data: e, value: n, labelKey: r = "dictLabel", valueKey: t = "dictV
|
|
|
143
143
|
if (n === void 0)
|
|
144
144
|
return "";
|
|
145
145
|
let a = [];
|
|
146
|
-
return Object.keys(e).some((o,
|
|
146
|
+
return Object.keys(e).some((o, l) => {
|
|
147
147
|
if (e[o][t] == "" + n)
|
|
148
|
-
return r === "$index" ? (a =
|
|
148
|
+
return r === "$index" ? (a = l, l) : (a.push(e[o][r]), !0);
|
|
149
149
|
}), r === "$index" ? a : (a.length === 0 && a.push(n), i ? a[0] : a.join(""));
|
|
150
150
|
}
|
|
151
151
|
function Pl({
|
|
@@ -157,10 +157,10 @@ function Pl({
|
|
|
157
157
|
if (r !== null) {
|
|
158
158
|
const i = A0(e), a = [];
|
|
159
159
|
return r.forEach((o) => {
|
|
160
|
-
const
|
|
161
|
-
a.push(
|
|
162
|
-
}), a.sort(function(o,
|
|
163
|
-
return
|
|
160
|
+
const l = so({ data: i, value: o, labelKey: "$index", valueKey: n });
|
|
161
|
+
a.push(l);
|
|
162
|
+
}), a.sort(function(o, l) {
|
|
163
|
+
return l - o;
|
|
164
164
|
}), a.forEach((o) => {
|
|
165
165
|
i.splice(o, 1);
|
|
166
166
|
}), i;
|
|
@@ -192,9 +192,9 @@ function Rl({ _this: e, url: n, name: r = (/* @__PURE__ */ new Date()).valueOf()
|
|
|
192
192
|
...a[1]
|
|
193
193
|
}), o._time = (/* @__PURE__ */ new Date()).valueOf(), i.src = n + "?time=" + io(o), e.$nextTick(() => {
|
|
194
194
|
i.onload = () => {
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
const f = URL.createObjectURL(
|
|
195
|
+
const l = document.createElement("canvas");
|
|
196
|
+
l.width = i.width, l.height = i.height, l.getContext("2d").drawImage(i, 0, 0, i.width, i.height), l.toBlob((s) => {
|
|
197
|
+
const f = URL.createObjectURL(s), v = document.createElement("a");
|
|
198
198
|
v.download = r, v.href = f, v.click(), v.remove(), URL.revokeObjectURL(f);
|
|
199
199
|
}), t();
|
|
200
200
|
};
|
|
@@ -306,16 +306,16 @@ function uo({ store: e, run: n, menuObj: r, query: t }) {
|
|
|
306
306
|
if (a.url === r.url)
|
|
307
307
|
return;
|
|
308
308
|
r.address = lo({ data: e.getters.menuList, value: r.url });
|
|
309
|
-
let
|
|
310
|
-
if (r.choose = !r.choose, e.commit("SET_menuNowOpen",
|
|
309
|
+
let l = r;
|
|
310
|
+
if (r.choose = !r.choose, e.commit("SET_menuNowOpen", l), oe.fieldCheck(r.openType) || !oe.fieldCheck(r.openType) && r.openType === "1") {
|
|
311
311
|
const c = o.length;
|
|
312
|
-
let
|
|
312
|
+
let s = !1;
|
|
313
313
|
for (let f = 0; f < c; f++)
|
|
314
314
|
if (o[f].url === r.url) {
|
|
315
|
-
|
|
315
|
+
s = !0;
|
|
316
316
|
break;
|
|
317
317
|
}
|
|
318
|
-
|
|
318
|
+
s || (o = e.getters.menuOpenList, o.push(l), e.commit("SET_menuOpenList", o));
|
|
319
319
|
}
|
|
320
320
|
n.push({
|
|
321
321
|
path: r.url,
|
|
@@ -377,20 +377,20 @@ function Yl({
|
|
|
377
377
|
if (f0(e)) {
|
|
378
378
|
let i = "";
|
|
379
379
|
const a = Number(e) < 0 ? -1 : 1, o = Math.abs(Number(e));
|
|
380
|
-
let
|
|
380
|
+
let l = 0;
|
|
381
381
|
if (o < 1e4)
|
|
382
|
-
i = a * o,
|
|
382
|
+
i = a * o, l = 0;
|
|
383
383
|
else if (o >= 1e4 && o < 1e4 * 1e4) {
|
|
384
384
|
let c = o / 1e4 + sn;
|
|
385
|
-
c = Number(c.toFixed(n)), c < 1e4 ? (i = a * c,
|
|
385
|
+
c = Number(c.toFixed(n)), c < 1e4 ? (i = a * c, l = 1) : (i = a * c / 1e4, l = 2);
|
|
386
386
|
} else if (o >= 1e4 * 1e4 && o < 1e4 * 1e4 * 1e4) {
|
|
387
387
|
let c = o / 1e8 + sn;
|
|
388
|
-
c = Number(c.toFixed(n)), c < 1e4 ? (i = a * c,
|
|
388
|
+
c = Number(c.toFixed(n)), c < 1e4 ? (i = a * c, l = 2) : (i = a * c / 1e4, l = 3);
|
|
389
389
|
} else
|
|
390
|
-
o >= 1e4 * 1e4 * 1e4 && (i = a * (o / (1e4 * 1e4 * 1e4) + sn).toFixed(n),
|
|
391
|
-
return t ? i + r[
|
|
390
|
+
o >= 1e4 * 1e4 * 1e4 && (i = a * (o / (1e4 * 1e4 * 1e4) + sn).toFixed(n), l = 3);
|
|
391
|
+
return t ? i + r[l] : {
|
|
392
392
|
num: i,
|
|
393
|
-
unit: r[
|
|
393
|
+
unit: r[l]
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
396
|
return e;
|
|
@@ -445,19 +445,19 @@ function Wl(e, n, r = 0) {
|
|
|
445
445
|
const t = r / Math.abs(r);
|
|
446
446
|
let i = new Date(e), a = "";
|
|
447
447
|
const o = i.getMonth() + 1;
|
|
448
|
-
let
|
|
448
|
+
let l = 0, c = 0;
|
|
449
449
|
if (t === -1)
|
|
450
|
-
|
|
450
|
+
l = i.getFullYear() + Math.floor((o + r) / 12), c = 12 * Math.abs(l - i.getFullYear()) + o + r, (o + r) % 12 === 0 && (l += t, c = 12);
|
|
451
451
|
else if (t === 1)
|
|
452
452
|
if (o + r <= 12)
|
|
453
|
-
|
|
453
|
+
l = i.getFullYear(), c = o + r;
|
|
454
454
|
else if ((o + r) % 12 !== 0)
|
|
455
|
-
|
|
455
|
+
l = i.getFullYear() + Math.floor((o + r) / 12), c = o + r - Math.abs(l - i.getFullYear()) * 12;
|
|
456
456
|
else {
|
|
457
|
-
const
|
|
458
|
-
|
|
457
|
+
const s = (o + r) / 12;
|
|
458
|
+
l = i.getFullYear() + (s > 1 ? s - 1 : s), c = o + r - Math.abs(l - i.getFullYear()) * 12;
|
|
459
459
|
}
|
|
460
|
-
return a =
|
|
460
|
+
return a = l + "-" + de.numberB0(c), a;
|
|
461
461
|
} else if (n === "{y}")
|
|
462
462
|
return (new Date(e).getFullYear() + r).toString();
|
|
463
463
|
}
|
|
@@ -487,27 +487,27 @@ function jl(e, n = 1) {
|
|
|
487
487
|
function Gl({ time: e = 0, showTag: n = ["天", "小时", "分钟", "秒", "毫秒"], showAll: r = !1, onlyTime: t = !1 }) {
|
|
488
488
|
let i = 1;
|
|
489
489
|
e < 0 && (i = -1), e = Math.abs(e);
|
|
490
|
-
const a = 1e3, o = 60 * a,
|
|
490
|
+
const a = 1e3, o = 60 * a, l = 60 * o, c = 24 * l, s = [0, 0, 0, 0, 0];
|
|
491
491
|
if (e >= c) {
|
|
492
492
|
const h = Math.floor(e / c);
|
|
493
|
-
|
|
493
|
+
s[0] = i * h, e -= c * h;
|
|
494
494
|
}
|
|
495
|
-
if (e >=
|
|
496
|
-
const h = Math.floor(e /
|
|
497
|
-
|
|
495
|
+
if (e >= l) {
|
|
496
|
+
const h = Math.floor(e / l);
|
|
497
|
+
s[1] = i * h, e -= l * h;
|
|
498
498
|
}
|
|
499
499
|
if (e >= o) {
|
|
500
500
|
const h = Math.floor(e / o);
|
|
501
|
-
|
|
501
|
+
s[2] = i * h, e -= o * h;
|
|
502
502
|
}
|
|
503
503
|
if (e >= a) {
|
|
504
504
|
const h = Math.floor(e / a);
|
|
505
|
-
|
|
505
|
+
s[3] = i * h, e -= a * h;
|
|
506
506
|
}
|
|
507
|
-
if (
|
|
508
|
-
return
|
|
507
|
+
if (s[4] = i * e, t)
|
|
508
|
+
return s;
|
|
509
509
|
let f = r, v = "";
|
|
510
|
-
return
|
|
510
|
+
return s.forEach((h, g) => {
|
|
511
511
|
!f && h !== 0 && (f = !0), f && (v += h + n[g]);
|
|
512
512
|
}), v;
|
|
513
513
|
}
|
|
@@ -524,14 +524,14 @@ function Zl(e = /* @__PURE__ */ new Date(), n = "date", r = 0, t = 5) {
|
|
|
524
524
|
i = ye(e, "{y}-{m}-{d} 00:00:00"), a = ye(e, "{y}-{m}-{d} {h}:{i}:{s}");
|
|
525
525
|
break;
|
|
526
526
|
case "date":
|
|
527
|
-
let
|
|
528
|
-
e.getMonth() === 11 ?
|
|
529
|
-
const c = new Date(
|
|
527
|
+
let l = `${ye(e, "{y}")}-${ye(e, "{y}")}`;
|
|
528
|
+
e.getMonth() === 11 ? l = `${Number(ye(e, "{y}")) + 1}-01-01` : l = `${Number(ye(e, "{y}"))}-${Number(ye(e, "{m}")) + 1}-01`;
|
|
529
|
+
const c = new Date(l).getTime() - o;
|
|
530
530
|
i = ye(e, "{y}-{m}-01"), c < Date.now() ? a = ye(c, "{y}-{m}-{d}") : a = ye(e, "{y}-{m}-{d}");
|
|
531
531
|
break;
|
|
532
532
|
case "month":
|
|
533
|
-
let
|
|
534
|
-
i = ye(e, "{y}-01"), new Date(
|
|
533
|
+
let s = `${ye(e, "{y}")}-12`;
|
|
534
|
+
i = ye(e, "{y}-01"), new Date(s).getTime() < Date.now() ? a = ye(s, "{y}-{m}") : a = ye(e, "{y}-{m}");
|
|
535
535
|
break;
|
|
536
536
|
case "year":
|
|
537
537
|
i = e.getFullYear() - t, a = e.getFullYear();
|
|
@@ -550,14 +550,14 @@ const De = {
|
|
|
550
550
|
function Jl({ form: e, key: n = "money", zs: r = 10, ws: t = 2, type: i = "Number", fu: a = !1 }) {
|
|
551
551
|
const o = e;
|
|
552
552
|
o[n] = o[n] + "", i === "Number" && (o[n].slice(0, 1) === "0" && (o[n] = o[n].slice(1, 2) !== "." ? "0" : o[n]), o[n].slice(0, 1) === "-" && (o[n] = o[n].slice(1, 2) === "." ? "-" : o[n]), o[n].slice(0, 2) === "-0" && (o[n] = o[n].slice(2, 3) !== "." ? "-0" : o[n])), a ? o[n] = o[n].replace(/[^\d.-]/g, "") : o[n] = o[n].replace(/[^\d.]/g, ""), o[n] = o[n].replace(/^\./g, ""), o[n] = o[n].replace(/\.{2,}/g, "."), o[n] = o[n].slice(0, 1) + o[n].slice(1, o[n].length).replace(/\-/g, "");
|
|
553
|
-
const
|
|
553
|
+
const l = new RegExp("^(\\-)*(\\d+)\\.(\\d{0," + t + "}).*$");
|
|
554
554
|
if (r !== "" && o[n].length > 0) {
|
|
555
555
|
const c = o[n].split(".");
|
|
556
|
-
let
|
|
557
|
-
const v =
|
|
558
|
-
|
|
556
|
+
let s = c[0], f = "";
|
|
557
|
+
const v = s.slice(0, 1) === "-" ? 1 : 0;
|
|
558
|
+
s.length > r + v && (s = s.slice(0, r + v)), c.length > 1 ? (f = c[1], o[n] = s + "." + f) : o[n] = s;
|
|
559
559
|
}
|
|
560
|
-
o[n] = o[n].replace(
|
|
560
|
+
o[n] = o[n].replace(l, "$1$2.$3");
|
|
561
561
|
}
|
|
562
562
|
function Ql({ form: e, key: n = "num", type: r = "Number", fu: t = !1 }) {
|
|
563
563
|
r === "Number" && (t ? e[n] = e[n].slice(0, 1) + e[n].slice(1, e[n].length).replace(/\-/g, "") : e[n].slice(0, 1) === "-" && (e[n] = e[n].slice(1, e[n].length))), e[n] = e[n].replace(/[^\d-]/g, ""), r === "Number" && e[n].length > 0 && e[n] !== "-" && (e[n] = Number(e[n]));
|
|
@@ -659,15 +659,15 @@ function ac(e, n = {
|
|
|
659
659
|
value: 0,
|
|
660
660
|
index: -1
|
|
661
661
|
};
|
|
662
|
-
e.forEach((o,
|
|
662
|
+
e.forEach((o, l) => {
|
|
663
663
|
o[r.key] = o[r.key] == 0 ? null : o[r.key];
|
|
664
|
-
const c = de.numberChangeDecimal(Number(o[r.key]) / t * 100),
|
|
665
|
-
Number(a.value) <
|
|
664
|
+
const c = de.numberChangeDecimal(Number(o[r.key]) / t * 100), s = Number(c);
|
|
665
|
+
Number(a.value) < s && (a = {
|
|
666
666
|
value: c,
|
|
667
|
-
index:
|
|
668
|
-
}), o.proportion =
|
|
669
|
-
}), e[a.index].proportion = 100, e.forEach((o,
|
|
670
|
-
|
|
667
|
+
index: l
|
|
668
|
+
}), o.proportion = s === 0 && Number(o[r.key]) > 0 ? 0.01 : s;
|
|
669
|
+
}), e[a.index].proportion = 100, e.forEach((o, l) => {
|
|
670
|
+
l !== a.index && (e[a.index].proportion = de.numberChangeDecimal(e[a.index].proportion - Number(o.proportion)));
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
673
|
const i = [];
|
|
@@ -743,14 +743,14 @@ function se() {
|
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
745
|
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
746
|
-
},
|
|
746
|
+
}, l = Object.create || function() {
|
|
747
747
|
function b() {
|
|
748
748
|
}
|
|
749
749
|
return function(C) {
|
|
750
750
|
var E;
|
|
751
751
|
return b.prototype = C, E = new b(), b.prototype = null, E;
|
|
752
752
|
};
|
|
753
|
-
}(), c = {},
|
|
753
|
+
}(), c = {}, s = c.lib = {}, f = s.Base = function() {
|
|
754
754
|
return {
|
|
755
755
|
/**
|
|
756
756
|
* Creates a new object that inherits from this object.
|
|
@@ -771,7 +771,7 @@ function se() {
|
|
|
771
771
|
* });
|
|
772
772
|
*/
|
|
773
773
|
extend: function(b) {
|
|
774
|
-
var C =
|
|
774
|
+
var C = l(this);
|
|
775
775
|
return b && C.mixIn(b), (!C.hasOwnProperty("init") || this.init === C.init) && (C.init = function() {
|
|
776
776
|
C.$super.init.apply(this, arguments);
|
|
777
777
|
}), C.init.prototype = C, C.$super = this, C;
|
|
@@ -835,7 +835,7 @@ function se() {
|
|
|
835
835
|
return this.init.prototype.extend(this);
|
|
836
836
|
}
|
|
837
837
|
};
|
|
838
|
-
}(), v =
|
|
838
|
+
}(), v = s.WordArray = f.extend({
|
|
839
839
|
/**
|
|
840
840
|
* Initializes a newly created word array.
|
|
841
841
|
*
|
|
@@ -1010,7 +1010,7 @@ function se() {
|
|
|
1010
1010
|
E[T >>> 2] |= (b.charCodeAt(T) & 255) << 24 - T % 4 * 8;
|
|
1011
1011
|
return new v.init(E, C);
|
|
1012
1012
|
}
|
|
1013
|
-
},
|
|
1013
|
+
}, p = h.Utf8 = {
|
|
1014
1014
|
/**
|
|
1015
1015
|
* Converts a word array to a UTF-8 string.
|
|
1016
1016
|
*
|
|
@@ -1047,7 +1047,7 @@ function se() {
|
|
|
1047
1047
|
parse: function(b) {
|
|
1048
1048
|
return d.parse(unescape(encodeURIComponent(b)));
|
|
1049
1049
|
}
|
|
1050
|
-
}, y =
|
|
1050
|
+
}, y = s.BufferedBlockAlgorithm = f.extend({
|
|
1051
1051
|
/**
|
|
1052
1052
|
* Resets this block algorithm's data buffer to its initial state.
|
|
1053
1053
|
*
|
|
@@ -1069,7 +1069,7 @@ function se() {
|
|
|
1069
1069
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
1070
1070
|
*/
|
|
1071
1071
|
_append: function(b) {
|
|
1072
|
-
typeof b == "string" && (b =
|
|
1072
|
+
typeof b == "string" && (b = p.parse(b)), this._data.concat(b), this._nDataBytes += b.sigBytes;
|
|
1073
1073
|
},
|
|
1074
1074
|
/**
|
|
1075
1075
|
* Processes available data blocks.
|
|
@@ -1111,7 +1111,7 @@ function se() {
|
|
|
1111
1111
|
},
|
|
1112
1112
|
_minBufferSize: 0
|
|
1113
1113
|
});
|
|
1114
|
-
|
|
1114
|
+
s.Hasher = y.extend({
|
|
1115
1115
|
/**
|
|
1116
1116
|
* Configuration options.
|
|
1117
1117
|
*/
|
|
@@ -1224,7 +1224,7 @@ function Bn() {
|
|
|
1224
1224
|
e.exports = t(se());
|
|
1225
1225
|
})(re, function(r) {
|
|
1226
1226
|
return function(t) {
|
|
1227
|
-
var i = r, a = i.lib, o = a.Base,
|
|
1227
|
+
var i = r, a = i.lib, o = a.Base, l = a.WordArray, c = i.x64 = {};
|
|
1228
1228
|
c.Word = o.extend({
|
|
1229
1229
|
/**
|
|
1230
1230
|
* Initializes a newly created 64-bit word.
|
|
@@ -1236,8 +1236,8 @@ function Bn() {
|
|
|
1236
1236
|
*
|
|
1237
1237
|
* var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
|
|
1238
1238
|
*/
|
|
1239
|
-
init: function(
|
|
1240
|
-
this.high =
|
|
1239
|
+
init: function(s, f) {
|
|
1240
|
+
this.high = s, this.low = f;
|
|
1241
1241
|
}
|
|
1242
1242
|
/**
|
|
1243
1243
|
* Bitwise NOTs this word.
|
|
@@ -1409,8 +1409,8 @@ function Bn() {
|
|
|
1409
1409
|
* CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
|
|
1410
1410
|
* ], 10);
|
|
1411
1411
|
*/
|
|
1412
|
-
init: function(
|
|
1413
|
-
|
|
1412
|
+
init: function(s, f) {
|
|
1413
|
+
s = this.words = s || [], f != t ? this.sigBytes = f : this.sigBytes = s.length * 8;
|
|
1414
1414
|
},
|
|
1415
1415
|
/**
|
|
1416
1416
|
* Converts this 64-bit word array to a 32-bit word array.
|
|
@@ -1422,11 +1422,11 @@ function Bn() {
|
|
|
1422
1422
|
* var x32WordArray = x64WordArray.toX32();
|
|
1423
1423
|
*/
|
|
1424
1424
|
toX32: function() {
|
|
1425
|
-
for (var
|
|
1426
|
-
var g =
|
|
1425
|
+
for (var s = this.words, f = s.length, v = [], h = 0; h < f; h++) {
|
|
1426
|
+
var g = s[h];
|
|
1427
1427
|
v.push(g.high), v.push(g.low);
|
|
1428
1428
|
}
|
|
1429
|
-
return
|
|
1429
|
+
return l.create(v, this.sigBytes);
|
|
1430
1430
|
},
|
|
1431
1431
|
/**
|
|
1432
1432
|
* Creates a copy of this word array.
|
|
@@ -1438,9 +1438,9 @@ function Bn() {
|
|
|
1438
1438
|
* var clone = x64WordArray.clone();
|
|
1439
1439
|
*/
|
|
1440
1440
|
clone: function() {
|
|
1441
|
-
for (var
|
|
1441
|
+
for (var s = o.clone.call(this), f = s.words = this.words.slice(0), v = f.length, h = 0; h < v; h++)
|
|
1442
1442
|
f[h] = f[h].clone();
|
|
1443
|
-
return
|
|
1443
|
+
return s;
|
|
1444
1444
|
}
|
|
1445
1445
|
});
|
|
1446
1446
|
}(), r;
|
|
@@ -1455,15 +1455,15 @@ function dc() {
|
|
|
1455
1455
|
})(re, function(r) {
|
|
1456
1456
|
return function() {
|
|
1457
1457
|
if (typeof ArrayBuffer == "function") {
|
|
1458
|
-
var t = r, i = t.lib, a = i.WordArray, o = a.init,
|
|
1458
|
+
var t = r, i = t.lib, a = i.WordArray, o = a.init, l = a.init = function(c) {
|
|
1459
1459
|
if (c instanceof ArrayBuffer && (c = new Uint8Array(c)), (c instanceof Int8Array || typeof Uint8ClampedArray < "u" && c instanceof Uint8ClampedArray || c instanceof Int16Array || c instanceof Uint16Array || c instanceof Int32Array || c instanceof Uint32Array || c instanceof Float32Array || c instanceof Float64Array) && (c = new Uint8Array(c.buffer, c.byteOffset, c.byteLength)), c instanceof Uint8Array) {
|
|
1460
|
-
for (var
|
|
1460
|
+
for (var s = c.byteLength, f = [], v = 0; v < s; v++)
|
|
1461
1461
|
f[v >>> 2] |= c[v] << 24 - v % 4 * 8;
|
|
1462
|
-
o.call(this, f,
|
|
1462
|
+
o.call(this, f, s);
|
|
1463
1463
|
} else
|
|
1464
1464
|
o.apply(this, arguments);
|
|
1465
1465
|
};
|
|
1466
|
-
|
|
1466
|
+
l.prototype = a;
|
|
1467
1467
|
}
|
|
1468
1468
|
}(), r.lib.WordArray;
|
|
1469
1469
|
});
|
|
@@ -1492,8 +1492,8 @@ function xc() {
|
|
|
1492
1492
|
* var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
|
|
1493
1493
|
*/
|
|
1494
1494
|
stringify: function(c) {
|
|
1495
|
-
for (var
|
|
1496
|
-
var g =
|
|
1495
|
+
for (var s = c.words, f = c.sigBytes, v = [], h = 0; h < f; h += 2) {
|
|
1496
|
+
var g = s[h >>> 2] >>> 16 - h % 4 * 8 & 65535;
|
|
1497
1497
|
v.push(String.fromCharCode(g));
|
|
1498
1498
|
}
|
|
1499
1499
|
return v.join("");
|
|
@@ -1512,9 +1512,9 @@ function xc() {
|
|
|
1512
1512
|
* var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
|
|
1513
1513
|
*/
|
|
1514
1514
|
parse: function(c) {
|
|
1515
|
-
for (var
|
|
1515
|
+
for (var s = c.length, f = [], v = 0; v < s; v++)
|
|
1516
1516
|
f[v >>> 1] |= c.charCodeAt(v) << 16 - v % 2 * 16;
|
|
1517
|
-
return a.create(f,
|
|
1517
|
+
return a.create(f, s * 2);
|
|
1518
1518
|
}
|
|
1519
1519
|
}, o.Utf16LE = {
|
|
1520
1520
|
/**
|
|
@@ -1531,8 +1531,8 @@ function xc() {
|
|
|
1531
1531
|
* var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
|
|
1532
1532
|
*/
|
|
1533
1533
|
stringify: function(c) {
|
|
1534
|
-
for (var
|
|
1535
|
-
var g = s
|
|
1534
|
+
for (var s = c.words, f = c.sigBytes, v = [], h = 0; h < f; h += 2) {
|
|
1535
|
+
var g = l(s[h >>> 2] >>> 16 - h % 4 * 8 & 65535);
|
|
1536
1536
|
v.push(String.fromCharCode(g));
|
|
1537
1537
|
}
|
|
1538
1538
|
return v.join("");
|
|
@@ -1551,12 +1551,12 @@ function xc() {
|
|
|
1551
1551
|
* var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
|
|
1552
1552
|
*/
|
|
1553
1553
|
parse: function(c) {
|
|
1554
|
-
for (var
|
|
1555
|
-
f[v >>> 1] |=
|
|
1556
|
-
return a.create(f,
|
|
1554
|
+
for (var s = c.length, f = [], v = 0; v < s; v++)
|
|
1555
|
+
f[v >>> 1] |= l(c.charCodeAt(v) << 16 - v % 2 * 16);
|
|
1556
|
+
return a.create(f, s * 2);
|
|
1557
1557
|
}
|
|
1558
1558
|
};
|
|
1559
|
-
function
|
|
1559
|
+
function l(c) {
|
|
1560
1560
|
return c << 8 & 4278255360 | c >>> 8 & 16711935;
|
|
1561
1561
|
}
|
|
1562
1562
|
}(), r.enc.Utf16;
|
|
@@ -1586,10 +1586,10 @@ function Zt() {
|
|
|
1586
1586
|
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
|
|
1587
1587
|
*/
|
|
1588
1588
|
stringify: function(c) {
|
|
1589
|
-
var
|
|
1589
|
+
var s = c.words, f = c.sigBytes, v = this._map;
|
|
1590
1590
|
c.clamp();
|
|
1591
1591
|
for (var h = [], g = 0; g < f; g += 3)
|
|
1592
|
-
for (var d =
|
|
1592
|
+
for (var d = s[g >>> 2] >>> 24 - g % 4 * 8 & 255, p = s[g + 1 >>> 2] >>> 24 - (g + 1) % 4 * 8 & 255, y = s[g + 2 >>> 2] >>> 24 - (g + 2) % 4 * 8 & 255, _ = d << 16 | p << 8 | y, b = 0; b < 4 && g + b * 0.75 < f; b++)
|
|
1593
1593
|
h.push(v.charAt(_ >>> 6 * (3 - b) & 63));
|
|
1594
1594
|
var C = v.charAt(64);
|
|
1595
1595
|
if (C)
|
|
@@ -1611,7 +1611,7 @@ function Zt() {
|
|
|
1611
1611
|
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
|
|
1612
1612
|
*/
|
|
1613
1613
|
parse: function(c) {
|
|
1614
|
-
var
|
|
1614
|
+
var s = c.length, f = this._map, v = this._reverseMap;
|
|
1615
1615
|
if (!v) {
|
|
1616
1616
|
v = this._reverseMap = [];
|
|
1617
1617
|
for (var h = 0; h < f.length; h++)
|
|
@@ -1620,16 +1620,16 @@ function Zt() {
|
|
|
1620
1620
|
var g = f.charAt(64);
|
|
1621
1621
|
if (g) {
|
|
1622
1622
|
var d = c.indexOf(g);
|
|
1623
|
-
d !== -1 && (
|
|
1623
|
+
d !== -1 && (s = d);
|
|
1624
1624
|
}
|
|
1625
|
-
return
|
|
1625
|
+
return l(c, s, v);
|
|
1626
1626
|
},
|
|
1627
1627
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
1628
1628
|
};
|
|
1629
|
-
function
|
|
1630
|
-
for (var v = [], h = 0, g = 0; g <
|
|
1629
|
+
function l(c, s, f) {
|
|
1630
|
+
for (var v = [], h = 0, g = 0; g < s; g++)
|
|
1631
1631
|
if (g % 4) {
|
|
1632
|
-
var d = f[c.charCodeAt(g - 1)] << g % 4 * 2,
|
|
1632
|
+
var d = f[c.charCodeAt(g - 1)] << g % 4 * 2, p = f[c.charCodeAt(g)] >>> 6 - g % 4 * 2, y = d | p;
|
|
1633
1633
|
v[h >>> 2] |= y << 24 - h % 4 * 8, h++;
|
|
1634
1634
|
}
|
|
1635
1635
|
return a.create(v, h);
|
|
@@ -1662,12 +1662,12 @@ function hc() {
|
|
|
1662
1662
|
*
|
|
1663
1663
|
* var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
|
|
1664
1664
|
*/
|
|
1665
|
-
stringify: function(c,
|
|
1666
|
-
|
|
1667
|
-
var f = c.words, v = c.sigBytes, h =
|
|
1665
|
+
stringify: function(c, s) {
|
|
1666
|
+
s === void 0 && (s = !0);
|
|
1667
|
+
var f = c.words, v = c.sigBytes, h = s ? this._safe_map : this._map;
|
|
1668
1668
|
c.clamp();
|
|
1669
1669
|
for (var g = [], d = 0; d < v; d += 3)
|
|
1670
|
-
for (var
|
|
1670
|
+
for (var p = f[d >>> 2] >>> 24 - d % 4 * 8 & 255, y = f[d + 1 >>> 2] >>> 24 - (d + 1) % 4 * 8 & 255, _ = f[d + 2 >>> 2] >>> 24 - (d + 2) % 4 * 8 & 255, b = p << 16 | y << 8 | _, C = 0; C < 4 && d + C * 0.75 < v; C++)
|
|
1671
1671
|
g.push(h.charAt(b >>> 6 * (3 - C) & 63));
|
|
1672
1672
|
var E = h.charAt(64);
|
|
1673
1673
|
if (E)
|
|
@@ -1690,9 +1690,9 @@ function hc() {
|
|
|
1690
1690
|
*
|
|
1691
1691
|
* var wordArray = CryptoJS.enc.Base64url.parse(base64String);
|
|
1692
1692
|
*/
|
|
1693
|
-
parse: function(c,
|
|
1694
|
-
|
|
1695
|
-
var f = c.length, v =
|
|
1693
|
+
parse: function(c, s) {
|
|
1694
|
+
s === void 0 && (s = !0);
|
|
1695
|
+
var f = c.length, v = s ? this._safe_map : this._map, h = this._reverseMap;
|
|
1696
1696
|
if (!h) {
|
|
1697
1697
|
h = this._reverseMap = [];
|
|
1698
1698
|
for (var g = 0; g < v.length; g++)
|
|
@@ -1700,18 +1700,18 @@ function hc() {
|
|
|
1700
1700
|
}
|
|
1701
1701
|
var d = v.charAt(64);
|
|
1702
1702
|
if (d) {
|
|
1703
|
-
var
|
|
1704
|
-
|
|
1703
|
+
var p = c.indexOf(d);
|
|
1704
|
+
p !== -1 && (f = p);
|
|
1705
1705
|
}
|
|
1706
|
-
return
|
|
1706
|
+
return l(c, f, h);
|
|
1707
1707
|
},
|
|
1708
1708
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
1709
1709
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
1710
1710
|
};
|
|
1711
|
-
function
|
|
1712
|
-
for (var v = [], h = 0, g = 0; g <
|
|
1711
|
+
function l(c, s, f) {
|
|
1712
|
+
for (var v = [], h = 0, g = 0; g < s; g++)
|
|
1713
1713
|
if (g % 4) {
|
|
1714
|
-
var d = f[c.charCodeAt(g - 1)] << g % 4 * 2,
|
|
1714
|
+
var d = f[c.charCodeAt(g - 1)] << g % 4 * 2, p = f[c.charCodeAt(g)] >>> 6 - g % 4 * 2, y = d | p;
|
|
1715
1715
|
v[h >>> 2] |= y << 24 - h % 4 * 8, h++;
|
|
1716
1716
|
}
|
|
1717
1717
|
return a.create(v, h);
|
|
@@ -1727,12 +1727,12 @@ function Jt() {
|
|
|
1727
1727
|
e.exports = t(se());
|
|
1728
1728
|
})(re, function(r) {
|
|
1729
1729
|
return function(t) {
|
|
1730
|
-
var i = r, a = i.lib, o = a.WordArray,
|
|
1730
|
+
var i = r, a = i.lib, o = a.WordArray, l = a.Hasher, c = i.algo, s = [];
|
|
1731
1731
|
(function() {
|
|
1732
|
-
for (var
|
|
1733
|
-
|
|
1732
|
+
for (var p = 0; p < 64; p++)
|
|
1733
|
+
s[p] = t.abs(t.sin(p + 1)) * 4294967296 | 0;
|
|
1734
1734
|
})();
|
|
1735
|
-
var f = c.MD5 =
|
|
1735
|
+
var f = c.MD5 = l.extend({
|
|
1736
1736
|
_doReset: function() {
|
|
1737
1737
|
this._hash = new o.init([
|
|
1738
1738
|
1732584193,
|
|
@@ -1741,19 +1741,19 @@ function Jt() {
|
|
|
1741
1741
|
271733878
|
|
1742
1742
|
]);
|
|
1743
1743
|
},
|
|
1744
|
-
_doProcessBlock: function(
|
|
1744
|
+
_doProcessBlock: function(p, y) {
|
|
1745
1745
|
for (var _ = 0; _ < 16; _++) {
|
|
1746
|
-
var b = y + _, C =
|
|
1747
|
-
|
|
1746
|
+
var b = y + _, C = p[b];
|
|
1747
|
+
p[b] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360;
|
|
1748
1748
|
}
|
|
1749
|
-
var E = this._hash.words, T =
|
|
1750
|
-
M = v(M, O, $, z, T, 7,
|
|
1749
|
+
var E = this._hash.words, T = p[y + 0], A = p[y + 1], S = p[y + 2], k = p[y + 3], L = p[y + 4], F = p[y + 5], B = p[y + 6], I = p[y + 7], P = p[y + 8], W = p[y + 9], G = p[y + 10], Y = p[y + 11], X = p[y + 12], Z = p[y + 13], ae = p[y + 14], ie = p[y + 15], M = E[0], O = E[1], $ = E[2], z = E[3];
|
|
1750
|
+
M = v(M, O, $, z, T, 7, s[0]), z = v(z, M, O, $, A, 12, s[1]), $ = v($, z, M, O, S, 17, s[2]), O = v(O, $, z, M, k, 22, s[3]), M = v(M, O, $, z, L, 7, s[4]), z = v(z, M, O, $, F, 12, s[5]), $ = v($, z, M, O, B, 17, s[6]), O = v(O, $, z, M, I, 22, s[7]), M = v(M, O, $, z, P, 7, s[8]), z = v(z, M, O, $, W, 12, s[9]), $ = v($, z, M, O, G, 17, s[10]), O = v(O, $, z, M, Y, 22, s[11]), M = v(M, O, $, z, X, 7, s[12]), z = v(z, M, O, $, Z, 12, s[13]), $ = v($, z, M, O, ae, 17, s[14]), O = v(O, $, z, M, ie, 22, s[15]), M = h(M, O, $, z, A, 5, s[16]), z = h(z, M, O, $, B, 9, s[17]), $ = h($, z, M, O, Y, 14, s[18]), O = h(O, $, z, M, T, 20, s[19]), M = h(M, O, $, z, F, 5, s[20]), z = h(z, M, O, $, G, 9, s[21]), $ = h($, z, M, O, ie, 14, s[22]), O = h(O, $, z, M, L, 20, s[23]), M = h(M, O, $, z, W, 5, s[24]), z = h(z, M, O, $, ae, 9, s[25]), $ = h($, z, M, O, k, 14, s[26]), O = h(O, $, z, M, P, 20, s[27]), M = h(M, O, $, z, Z, 5, s[28]), z = h(z, M, O, $, S, 9, s[29]), $ = h($, z, M, O, I, 14, s[30]), O = h(O, $, z, M, X, 20, s[31]), M = g(M, O, $, z, F, 4, s[32]), z = g(z, M, O, $, P, 11, s[33]), $ = g($, z, M, O, Y, 16, s[34]), O = g(O, $, z, M, ae, 23, s[35]), M = g(M, O, $, z, A, 4, s[36]), z = g(z, M, O, $, L, 11, s[37]), $ = g($, z, M, O, I, 16, s[38]), O = g(O, $, z, M, G, 23, s[39]), M = g(M, O, $, z, Z, 4, s[40]), z = g(z, M, O, $, T, 11, s[41]), $ = g($, z, M, O, k, 16, s[42]), O = g(O, $, z, M, B, 23, s[43]), M = g(M, O, $, z, W, 4, s[44]), z = g(z, M, O, $, X, 11, s[45]), $ = g($, z, M, O, ie, 16, s[46]), O = g(O, $, z, M, S, 23, s[47]), M = d(M, O, $, z, T, 6, s[48]), z = d(z, M, O, $, I, 10, s[49]), $ = d($, z, M, O, ae, 15, s[50]), O = d(O, $, z, M, F, 21, s[51]), M = d(M, O, $, z, X, 6, s[52]), z = d(z, M, O, $, k, 10, s[53]), $ = d($, z, M, O, G, 15, s[54]), O = d(O, $, z, M, A, 21, s[55]), M = d(M, O, $, z, P, 6, s[56]), z = d(z, M, O, $, ie, 10, s[57]), $ = d($, z, M, O, B, 15, s[58]), O = d(O, $, z, M, Z, 21, s[59]), M = d(M, O, $, z, L, 6, s[60]), z = d(z, M, O, $, Y, 10, s[61]), $ = d($, z, M, O, S, 15, s[62]), O = d(O, $, z, M, W, 21, s[63]), E[0] = E[0] + M | 0, E[1] = E[1] + O | 0, E[2] = E[2] + $ | 0, E[3] = E[3] + z | 0;
|
|
1751
1751
|
},
|
|
1752
1752
|
_doFinalize: function() {
|
|
1753
|
-
var
|
|
1753
|
+
var p = this._data, y = p.words, _ = this._nDataBytes * 8, b = p.sigBytes * 8;
|
|
1754
1754
|
y[b >>> 5] |= 128 << 24 - b % 32;
|
|
1755
1755
|
var C = t.floor(_ / 4294967296), E = _;
|
|
1756
|
-
y[(b + 64 >>> 9 << 4) + 15] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, y[(b + 64 >>> 9 << 4) + 14] = (E << 8 | E >>> 24) & 16711935 | (E << 24 | E >>> 8) & 4278255360,
|
|
1756
|
+
y[(b + 64 >>> 9 << 4) + 15] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, y[(b + 64 >>> 9 << 4) + 14] = (E << 8 | E >>> 24) & 16711935 | (E << 24 | E >>> 8) & 4278255360, p.sigBytes = (y.length + 1) * 4, this._process();
|
|
1757
1757
|
for (var T = this._hash, A = T.words, S = 0; S < 4; S++) {
|
|
1758
1758
|
var k = A[S];
|
|
1759
1759
|
A[S] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
@@ -1761,27 +1761,27 @@ function Jt() {
|
|
|
1761
1761
|
return T;
|
|
1762
1762
|
},
|
|
1763
1763
|
clone: function() {
|
|
1764
|
-
var
|
|
1765
|
-
return
|
|
1764
|
+
var p = l.clone.call(this);
|
|
1765
|
+
return p._hash = this._hash.clone(), p;
|
|
1766
1766
|
}
|
|
1767
1767
|
});
|
|
1768
|
-
function v(
|
|
1769
|
-
var A =
|
|
1768
|
+
function v(p, y, _, b, C, E, T) {
|
|
1769
|
+
var A = p + (y & _ | ~y & b) + C + T;
|
|
1770
1770
|
return (A << E | A >>> 32 - E) + y;
|
|
1771
1771
|
}
|
|
1772
|
-
function h(
|
|
1773
|
-
var A =
|
|
1772
|
+
function h(p, y, _, b, C, E, T) {
|
|
1773
|
+
var A = p + (y & b | _ & ~b) + C + T;
|
|
1774
1774
|
return (A << E | A >>> 32 - E) + y;
|
|
1775
1775
|
}
|
|
1776
|
-
function g(
|
|
1777
|
-
var A =
|
|
1776
|
+
function g(p, y, _, b, C, E, T) {
|
|
1777
|
+
var A = p + (y ^ _ ^ b) + C + T;
|
|
1778
1778
|
return (A << E | A >>> 32 - E) + y;
|
|
1779
1779
|
}
|
|
1780
|
-
function d(
|
|
1781
|
-
var A =
|
|
1780
|
+
function d(p, y, _, b, C, E, T) {
|
|
1781
|
+
var A = p + (_ ^ (y | ~b)) + C + T;
|
|
1782
1782
|
return (A << E | A >>> 32 - E) + y;
|
|
1783
1783
|
}
|
|
1784
|
-
i.MD5 =
|
|
1784
|
+
i.MD5 = l._createHelper(f), i.HmacMD5 = l._createHmacHelper(f);
|
|
1785
1785
|
}(Math), r.MD5;
|
|
1786
1786
|
});
|
|
1787
1787
|
}(Jn)), Jn.exports;
|
|
@@ -1793,7 +1793,7 @@ function mo() {
|
|
|
1793
1793
|
e.exports = t(se());
|
|
1794
1794
|
})(re, function(r) {
|
|
1795
1795
|
return function() {
|
|
1796
|
-
var t = r, i = t.lib, a = i.WordArray, o = i.Hasher,
|
|
1796
|
+
var t = r, i = t.lib, a = i.WordArray, o = i.Hasher, l = t.algo, c = [], s = l.SHA1 = o.extend({
|
|
1797
1797
|
_doReset: function() {
|
|
1798
1798
|
this._hash = new a.init([
|
|
1799
1799
|
1732584193,
|
|
@@ -1804,7 +1804,7 @@ function mo() {
|
|
|
1804
1804
|
]);
|
|
1805
1805
|
},
|
|
1806
1806
|
_doProcessBlock: function(f, v) {
|
|
1807
|
-
for (var h = this._hash.words, g = h[0], d = h[1],
|
|
1807
|
+
for (var h = this._hash.words, g = h[0], d = h[1], p = h[2], y = h[3], _ = h[4], b = 0; b < 80; b++) {
|
|
1808
1808
|
if (b < 16)
|
|
1809
1809
|
c[b] = f[v + b] | 0;
|
|
1810
1810
|
else {
|
|
@@ -1812,9 +1812,9 @@ function mo() {
|
|
|
1812
1812
|
c[b] = C << 1 | C >>> 31;
|
|
1813
1813
|
}
|
|
1814
1814
|
var E = (g << 5 | g >>> 27) + _ + c[b];
|
|
1815
|
-
b < 20 ? E += (d &
|
|
1815
|
+
b < 20 ? E += (d & p | ~d & y) + 1518500249 : b < 40 ? E += (d ^ p ^ y) + 1859775393 : b < 60 ? E += (d & p | d & y | p & y) - 1894007588 : E += (d ^ p ^ y) - 899497514, _ = y, y = p, p = d << 30 | d >>> 2, d = g, g = E;
|
|
1816
1816
|
}
|
|
1817
|
-
h[0] = h[0] + g | 0, h[1] = h[1] + d | 0, h[2] = h[2] +
|
|
1817
|
+
h[0] = h[0] + g | 0, h[1] = h[1] + d | 0, h[2] = h[2] + p | 0, h[3] = h[3] + y | 0, h[4] = h[4] + _ | 0;
|
|
1818
1818
|
},
|
|
1819
1819
|
_doFinalize: function() {
|
|
1820
1820
|
var f = this._data, v = f.words, h = this._nDataBytes * 8, g = f.sigBytes * 8;
|
|
@@ -1825,7 +1825,7 @@ function mo() {
|
|
|
1825
1825
|
return f._hash = this._hash.clone(), f;
|
|
1826
1826
|
}
|
|
1827
1827
|
});
|
|
1828
|
-
t.SHA1 = o._createHelper(
|
|
1828
|
+
t.SHA1 = o._createHelper(s), t.HmacSHA1 = o._createHmacHelper(s);
|
|
1829
1829
|
}(), r.SHA1;
|
|
1830
1830
|
});
|
|
1831
1831
|
}(Qn)), Qn.exports;
|
|
@@ -1837,7 +1837,7 @@ function Jr() {
|
|
|
1837
1837
|
e.exports = t(se());
|
|
1838
1838
|
})(re, function(r) {
|
|
1839
1839
|
return function(t) {
|
|
1840
|
-
var i = r, a = i.lib, o = a.WordArray,
|
|
1840
|
+
var i = r, a = i.lib, o = a.WordArray, l = a.Hasher, c = i.algo, s = [], f = [];
|
|
1841
1841
|
(function() {
|
|
1842
1842
|
function g(_) {
|
|
1843
1843
|
for (var b = t.sqrt(_), C = 2; C <= b; C++)
|
|
@@ -1848,15 +1848,15 @@ function Jr() {
|
|
|
1848
1848
|
function d(_) {
|
|
1849
1849
|
return (_ - (_ | 0)) * 4294967296 | 0;
|
|
1850
1850
|
}
|
|
1851
|
-
for (var
|
|
1852
|
-
g(
|
|
1851
|
+
for (var p = 2, y = 0; y < 64; )
|
|
1852
|
+
g(p) && (y < 8 && (s[y] = d(t.pow(p, 1 / 2))), f[y] = d(t.pow(p, 1 / 3)), y++), p++;
|
|
1853
1853
|
})();
|
|
1854
|
-
var v = [], h = c.SHA256 =
|
|
1854
|
+
var v = [], h = c.SHA256 = l.extend({
|
|
1855
1855
|
_doReset: function() {
|
|
1856
|
-
this._hash = new o.init(
|
|
1856
|
+
this._hash = new o.init(s.slice(0));
|
|
1857
1857
|
},
|
|
1858
1858
|
_doProcessBlock: function(g, d) {
|
|
1859
|
-
for (var
|
|
1859
|
+
for (var p = this._hash.words, y = p[0], _ = p[1], b = p[2], C = p[3], E = p[4], T = p[5], A = p[6], S = p[7], k = 0; k < 64; k++) {
|
|
1860
1860
|
if (k < 16)
|
|
1861
1861
|
v[k] = g[d + k] | 0;
|
|
1862
1862
|
else {
|
|
@@ -1866,18 +1866,18 @@ function Jr() {
|
|
|
1866
1866
|
var P = E & T ^ ~E & A, W = y & _ ^ y & b ^ _ & b, G = (y << 30 | y >>> 2) ^ (y << 19 | y >>> 13) ^ (y << 10 | y >>> 22), Y = (E << 26 | E >>> 6) ^ (E << 21 | E >>> 11) ^ (E << 7 | E >>> 25), X = S + Y + P + f[k] + v[k], Z = G + W;
|
|
1867
1867
|
S = A, A = T, T = E, E = C + X | 0, C = b, b = _, _ = y, y = X + Z | 0;
|
|
1868
1868
|
}
|
|
1869
|
-
|
|
1869
|
+
p[0] = p[0] + y | 0, p[1] = p[1] + _ | 0, p[2] = p[2] + b | 0, p[3] = p[3] + C | 0, p[4] = p[4] + E | 0, p[5] = p[5] + T | 0, p[6] = p[6] + A | 0, p[7] = p[7] + S | 0;
|
|
1870
1870
|
},
|
|
1871
1871
|
_doFinalize: function() {
|
|
1872
|
-
var g = this._data, d = g.words,
|
|
1873
|
-
return d[y >>> 5] |= 128 << 24 - y % 32, d[(y + 64 >>> 9 << 4) + 14] = t.floor(
|
|
1872
|
+
var g = this._data, d = g.words, p = this._nDataBytes * 8, y = g.sigBytes * 8;
|
|
1873
|
+
return d[y >>> 5] |= 128 << 24 - y % 32, d[(y + 64 >>> 9 << 4) + 14] = t.floor(p / 4294967296), d[(y + 64 >>> 9 << 4) + 15] = p, g.sigBytes = d.length * 4, this._process(), this._hash;
|
|
1874
1874
|
},
|
|
1875
1875
|
clone: function() {
|
|
1876
|
-
var g =
|
|
1876
|
+
var g = l.clone.call(this);
|
|
1877
1877
|
return g._hash = this._hash.clone(), g;
|
|
1878
1878
|
}
|
|
1879
1879
|
});
|
|
1880
|
-
i.SHA256 =
|
|
1880
|
+
i.SHA256 = l._createHelper(h), i.HmacSHA256 = l._createHmacHelper(h);
|
|
1881
1881
|
}(Math), r.SHA256;
|
|
1882
1882
|
});
|
|
1883
1883
|
}(er)), er.exports;
|
|
@@ -1889,7 +1889,7 @@ function pc() {
|
|
|
1889
1889
|
e.exports = t(se(), Jr());
|
|
1890
1890
|
})(re, function(r) {
|
|
1891
1891
|
return function() {
|
|
1892
|
-
var t = r, i = t.lib, a = i.WordArray, o = t.algo,
|
|
1892
|
+
var t = r, i = t.lib, a = i.WordArray, o = t.algo, l = o.SHA256, c = o.SHA224 = l.extend({
|
|
1893
1893
|
_doReset: function() {
|
|
1894
1894
|
this._hash = new a.init([
|
|
1895
1895
|
3238371032,
|
|
@@ -1903,11 +1903,11 @@ function pc() {
|
|
|
1903
1903
|
]);
|
|
1904
1904
|
},
|
|
1905
1905
|
_doFinalize: function() {
|
|
1906
|
-
var
|
|
1907
|
-
return
|
|
1906
|
+
var s = l._doFinalize.call(this);
|
|
1907
|
+
return s.sigBytes -= 4, s;
|
|
1908
1908
|
}
|
|
1909
1909
|
});
|
|
1910
|
-
t.SHA224 =
|
|
1910
|
+
t.SHA224 = l._createHelper(c), t.HmacSHA224 = l._createHmacHelper(c);
|
|
1911
1911
|
}(), r.SHA224;
|
|
1912
1912
|
});
|
|
1913
1913
|
}(tr)), tr.exports;
|
|
@@ -1919,9 +1919,9 @@ function go() {
|
|
|
1919
1919
|
e.exports = t(se(), Bn());
|
|
1920
1920
|
})(re, function(r) {
|
|
1921
1921
|
return function() {
|
|
1922
|
-
var t = r, i = t.lib, a = i.Hasher, o = t.x64,
|
|
1922
|
+
var t = r, i = t.lib, a = i.Hasher, o = t.x64, l = o.Word, c = o.WordArray, s = t.algo;
|
|
1923
1923
|
function f() {
|
|
1924
|
-
return
|
|
1924
|
+
return l.create.apply(l, arguments);
|
|
1925
1925
|
}
|
|
1926
1926
|
var v = [
|
|
1927
1927
|
f(1116352408, 3609767458),
|
|
@@ -2009,24 +2009,24 @@ function go() {
|
|
|
2009
2009
|
for (var d = 0; d < 80; d++)
|
|
2010
2010
|
h[d] = f();
|
|
2011
2011
|
})();
|
|
2012
|
-
var g =
|
|
2012
|
+
var g = s.SHA512 = a.extend({
|
|
2013
2013
|
_doReset: function() {
|
|
2014
2014
|
this._hash = new c.init([
|
|
2015
|
-
new
|
|
2016
|
-
new
|
|
2017
|
-
new
|
|
2018
|
-
new
|
|
2019
|
-
new
|
|
2020
|
-
new
|
|
2021
|
-
new
|
|
2022
|
-
new
|
|
2015
|
+
new l.init(1779033703, 4089235720),
|
|
2016
|
+
new l.init(3144134277, 2227873595),
|
|
2017
|
+
new l.init(1013904242, 4271175723),
|
|
2018
|
+
new l.init(2773480762, 1595750129),
|
|
2019
|
+
new l.init(1359893119, 2917565137),
|
|
2020
|
+
new l.init(2600822924, 725511199),
|
|
2021
|
+
new l.init(528734635, 4215389547),
|
|
2022
|
+
new l.init(1541459225, 327033209)
|
|
2023
2023
|
]);
|
|
2024
2024
|
},
|
|
2025
|
-
_doProcessBlock: function(d,
|
|
2025
|
+
_doProcessBlock: function(d, p) {
|
|
2026
2026
|
for (var y = this._hash.words, _ = y[0], b = y[1], C = y[2], E = y[3], T = y[4], A = y[5], S = y[6], k = y[7], L = _.high, F = _.low, B = b.high, I = b.low, P = C.high, W = C.low, G = E.high, Y = E.low, X = T.high, Z = T.low, ae = A.high, ie = A.low, M = S.high, O = S.low, $ = k.high, z = k.low, fe = L, le = F, we = B, te = I, ge = P, Ge = W, Bt = G, ot = Y, Ae = X, Ce = Z, pt = ae, vt = ie, wt = M, mt = O, Nt = $, gt = z, Te = 0; Te < 80; Te++) {
|
|
2027
2027
|
var Se, Ue, V = h[Te];
|
|
2028
2028
|
if (Te < 16)
|
|
2029
|
-
Ue = V.high = d[
|
|
2029
|
+
Ue = V.high = d[p + Te * 2] | 0, Se = V.low = d[p + Te * 2 + 1] | 0;
|
|
2030
2030
|
else {
|
|
2031
2031
|
var ce = h[Te - 15], Me = ce.high, st = ce.low, e0 = (Me >>> 1 | st << 31) ^ (Me >>> 8 | st << 24) ^ Me >>> 7, R0 = (st >>> 1 | Me << 31) ^ (st >>> 8 | Me << 24) ^ (st >>> 7 | Me << 25), O0 = h[Te - 2], Dt = O0.high, Vt = O0.low, Sn = (Dt >>> 19 | Vt << 13) ^ (Dt << 3 | Vt >>> 29) ^ Dt >>> 6, t0 = (Vt >>> 19 | Dt << 13) ^ (Vt << 3 | Dt >>> 29) ^ (Vt >>> 6 | Dt << 26), z0 = h[Te - 7], L0 = z0.high, kn = z0.low, v0 = h[Te - 16], In = v0.high, H0 = v0.low;
|
|
2032
2032
|
Se = R0 + kn, Ue = e0 + L0 + (Se >>> 0 < R0 >>> 0 ? 1 : 0), Se = Se + t0, Ue = Ue + Sn + (Se >>> 0 < t0 >>> 0 ? 1 : 0), Se = Se + H0, Ue = Ue + In + (Se >>> 0 < H0 >>> 0 ? 1 : 0), V.high = Ue, V.low = Se;
|
|
@@ -2037,8 +2037,8 @@ function go() {
|
|
|
2037
2037
|
F = _.low = F + le, _.high = L + fe + (F >>> 0 < le >>> 0 ? 1 : 0), I = b.low = I + te, b.high = B + we + (I >>> 0 < te >>> 0 ? 1 : 0), W = C.low = W + Ge, C.high = P + ge + (W >>> 0 < Ge >>> 0 ? 1 : 0), Y = E.low = Y + ot, E.high = G + Bt + (Y >>> 0 < ot >>> 0 ? 1 : 0), Z = T.low = Z + Ce, T.high = X + Ae + (Z >>> 0 < Ce >>> 0 ? 1 : 0), ie = A.low = ie + vt, A.high = ae + pt + (ie >>> 0 < vt >>> 0 ? 1 : 0), O = S.low = O + mt, S.high = M + wt + (O >>> 0 < mt >>> 0 ? 1 : 0), z = k.low = z + gt, k.high = $ + Nt + (z >>> 0 < gt >>> 0 ? 1 : 0);
|
|
2038
2038
|
},
|
|
2039
2039
|
_doFinalize: function() {
|
|
2040
|
-
var d = this._data,
|
|
2041
|
-
|
|
2040
|
+
var d = this._data, p = d.words, y = this._nDataBytes * 8, _ = d.sigBytes * 8;
|
|
2041
|
+
p[_ >>> 5] |= 128 << 24 - _ % 32, p[(_ + 128 >>> 10 << 5) + 30] = Math.floor(y / 4294967296), p[(_ + 128 >>> 10 << 5) + 31] = y, d.sigBytes = p.length * 4, this._process();
|
|
2042
2042
|
var b = this._hash.toX32();
|
|
2043
2043
|
return b;
|
|
2044
2044
|
},
|
|
@@ -2060,7 +2060,7 @@ function vc() {
|
|
|
2060
2060
|
e.exports = t(se(), Bn(), go());
|
|
2061
2061
|
})(re, function(r) {
|
|
2062
2062
|
return function() {
|
|
2063
|
-
var t = r, i = t.x64, a = i.Word, o = i.WordArray,
|
|
2063
|
+
var t = r, i = t.x64, a = i.Word, o = i.WordArray, l = t.algo, c = l.SHA512, s = l.SHA384 = c.extend({
|
|
2064
2064
|
_doReset: function() {
|
|
2065
2065
|
this._hash = new o.init([
|
|
2066
2066
|
new a.init(3418070365, 3238371032),
|
|
@@ -2078,7 +2078,7 @@ function vc() {
|
|
|
2078
2078
|
return f.sigBytes -= 16, f;
|
|
2079
2079
|
}
|
|
2080
2080
|
});
|
|
2081
|
-
t.SHA384 = c._createHelper(
|
|
2081
|
+
t.SHA384 = c._createHelper(s), t.HmacSHA384 = c._createHmacHelper(s);
|
|
2082
2082
|
}(), r.SHA384;
|
|
2083
2083
|
});
|
|
2084
2084
|
}(rr)), rr.exports;
|
|
@@ -2090,7 +2090,7 @@ function mc() {
|
|
|
2090
2090
|
e.exports = t(se(), Bn());
|
|
2091
2091
|
})(re, function(r) {
|
|
2092
2092
|
return function(t) {
|
|
2093
|
-
var i = r, a = i.lib, o = a.WordArray,
|
|
2093
|
+
var i = r, a = i.lib, o = a.WordArray, l = a.Hasher, c = i.x64, s = c.Word, f = i.algo, v = [], h = [], g = [];
|
|
2094
2094
|
(function() {
|
|
2095
2095
|
for (var y = 1, _ = 0, b = 0; b < 24; b++) {
|
|
2096
2096
|
v[y + 5 * _] = (b + 1) * (b + 2) / 2 % 64;
|
|
@@ -2108,15 +2108,15 @@ function mc() {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
T & 128 ? T = T << 1 ^ 113 : T <<= 1;
|
|
2110
2110
|
}
|
|
2111
|
-
g[A] =
|
|
2111
|
+
g[A] = s.create(S, k);
|
|
2112
2112
|
}
|
|
2113
2113
|
})();
|
|
2114
2114
|
var d = [];
|
|
2115
2115
|
(function() {
|
|
2116
2116
|
for (var y = 0; y < 25; y++)
|
|
2117
|
-
d[y] =
|
|
2117
|
+
d[y] = s.create();
|
|
2118
2118
|
})();
|
|
2119
|
-
var
|
|
2119
|
+
var p = f.SHA3 = l.extend({
|
|
2120
2120
|
/**
|
|
2121
2121
|
* Configuration options.
|
|
2122
2122
|
*
|
|
@@ -2125,12 +2125,12 @@ function mc() {
|
|
|
2125
2125
|
* Only values permitted are: 224, 256, 384, 512.
|
|
2126
2126
|
* Default: 512
|
|
2127
2127
|
*/
|
|
2128
|
-
cfg:
|
|
2128
|
+
cfg: l.cfg.extend({
|
|
2129
2129
|
outputLength: 512
|
|
2130
2130
|
}),
|
|
2131
2131
|
_doReset: function() {
|
|
2132
2132
|
for (var y = this._state = [], _ = 0; _ < 25; _++)
|
|
2133
|
-
y[_] = new
|
|
2133
|
+
y[_] = new s.init();
|
|
2134
2134
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2135
2135
|
},
|
|
2136
2136
|
_doProcessBlock: function(y, _) {
|
|
@@ -2183,12 +2183,12 @@ function mc() {
|
|
|
2183
2183
|
return new o.init(S, T);
|
|
2184
2184
|
},
|
|
2185
2185
|
clone: function() {
|
|
2186
|
-
for (var y =
|
|
2186
|
+
for (var y = l.clone.call(this), _ = y._state = this._state.slice(0), b = 0; b < 25; b++)
|
|
2187
2187
|
_[b] = _[b].clone();
|
|
2188
2188
|
return y;
|
|
2189
2189
|
}
|
|
2190
2190
|
});
|
|
2191
|
-
i.SHA3 =
|
|
2191
|
+
i.SHA3 = l._createHelper(p), i.HmacSHA3 = l._createHmacHelper(p);
|
|
2192
2192
|
}(Math), r.SHA3;
|
|
2193
2193
|
});
|
|
2194
2194
|
}(ir)), ir.exports;
|
|
@@ -2210,7 +2210,7 @@ function gc() {
|
|
|
2210
2210
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2211
2211
|
*/
|
|
2212
2212
|
return function(t) {
|
|
2213
|
-
var i = r, a = i.lib, o = a.WordArray,
|
|
2213
|
+
var i = r, a = i.lib, o = a.WordArray, l = a.Hasher, c = i.algo, s = o.create([
|
|
2214
2214
|
0,
|
|
2215
2215
|
1,
|
|
2216
2216
|
2,
|
|
@@ -2534,7 +2534,7 @@ function gc() {
|
|
|
2534
2534
|
13,
|
|
2535
2535
|
11,
|
|
2536
2536
|
11
|
|
2537
|
-
]), g = o.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), d = o.create([1352829926, 1548603684, 1836072691, 2053994217, 0]),
|
|
2537
|
+
]), g = o.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), d = o.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), p = c.RIPEMD160 = l.extend({
|
|
2538
2538
|
_doReset: function() {
|
|
2539
2539
|
this._hash = o.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2540
2540
|
},
|
|
@@ -2543,7 +2543,7 @@ function gc() {
|
|
|
2543
2543
|
var L = S + k, F = A[L];
|
|
2544
2544
|
A[L] = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360;
|
|
2545
2545
|
}
|
|
2546
|
-
var B = this._hash.words, I = g.words, P = d.words, W =
|
|
2546
|
+
var B = this._hash.words, I = g.words, P = d.words, W = s.words, G = f.words, Y = v.words, X = h.words, Z, ae, ie, M, O, $, z, fe, le, we;
|
|
2547
2547
|
$ = Z = B[0], z = ae = B[1], fe = ie = B[2], le = M = B[3], we = O = B[4];
|
|
2548
2548
|
for (var te, k = 0; k < 80; k += 1)
|
|
2549
2549
|
te = Z + A[S + W[k]] | 0, k < 16 ? te += y(ae, ie, M) + I[0] : k < 32 ? te += _(ae, ie, M) + I[1] : k < 48 ? te += b(ae, ie, M) + I[2] : k < 64 ? te += C(ae, ie, M) + I[3] : te += E(ae, ie, M) + I[4], te = te | 0, te = T(te, Y[k]), te = te + O | 0, Z = O, O = M, M = T(ie, 10), ie = ae, ae = te, te = $ + A[S + G[k]] | 0, k < 16 ? te += E(z, fe, le) + P[0] : k < 32 ? te += C(z, fe, le) + P[1] : k < 48 ? te += b(z, fe, le) + P[2] : k < 64 ? te += _(z, fe, le) + P[3] : te += y(z, fe, le) + P[4], te = te | 0, te = T(te, X[k]), te = te + we | 0, $ = we, we = le, le = T(fe, 10), fe = z, z = te;
|
|
@@ -2559,7 +2559,7 @@ function gc() {
|
|
|
2559
2559
|
return F;
|
|
2560
2560
|
},
|
|
2561
2561
|
clone: function() {
|
|
2562
|
-
var A =
|
|
2562
|
+
var A = l.clone.call(this);
|
|
2563
2563
|
return A._hash = this._hash.clone(), A;
|
|
2564
2564
|
}
|
|
2565
2565
|
});
|
|
@@ -2581,7 +2581,7 @@ function gc() {
|
|
|
2581
2581
|
function T(A, S) {
|
|
2582
2582
|
return A << S | A >>> 32 - S;
|
|
2583
2583
|
}
|
|
2584
|
-
i.RIPEMD160 =
|
|
2584
|
+
i.RIPEMD160 = l._createHelper(p), i.HmacRIPEMD160 = l._createHmacHelper(p);
|
|
2585
2585
|
}(), r.RIPEMD160;
|
|
2586
2586
|
});
|
|
2587
2587
|
}(ar)), ar.exports;
|
|
@@ -2593,7 +2593,7 @@ function Qr() {
|
|
|
2593
2593
|
e.exports = t(se());
|
|
2594
2594
|
})(re, function(r) {
|
|
2595
2595
|
(function() {
|
|
2596
|
-
var t = r, i = t.lib, a = i.Base, o = t.enc,
|
|
2596
|
+
var t = r, i = t.lib, a = i.Base, o = t.enc, l = o.Utf8, c = t.algo;
|
|
2597
2597
|
c.HMAC = a.extend({
|
|
2598
2598
|
/**
|
|
2599
2599
|
* Initializes a newly created HMAC.
|
|
@@ -2605,12 +2605,12 @@ function Qr() {
|
|
|
2605
2605
|
*
|
|
2606
2606
|
* var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
|
|
2607
2607
|
*/
|
|
2608
|
-
init: function(
|
|
2609
|
-
|
|
2610
|
-
var v =
|
|
2611
|
-
f.sigBytes > h && (f =
|
|
2612
|
-
for (var g = this._oKey = f.clone(), d = this._iKey = f.clone(),
|
|
2613
|
-
|
|
2608
|
+
init: function(s, f) {
|
|
2609
|
+
s = this._hasher = new s.init(), typeof f == "string" && (f = l.parse(f));
|
|
2610
|
+
var v = s.blockSize, h = v * 4;
|
|
2611
|
+
f.sigBytes > h && (f = s.finalize(f)), f.clamp();
|
|
2612
|
+
for (var g = this._oKey = f.clone(), d = this._iKey = f.clone(), p = g.words, y = d.words, _ = 0; _ < v; _++)
|
|
2613
|
+
p[_] ^= 1549556828, y[_] ^= 909522486;
|
|
2614
2614
|
g.sigBytes = d.sigBytes = h, this.reset();
|
|
2615
2615
|
},
|
|
2616
2616
|
/**
|
|
@@ -2621,8 +2621,8 @@ function Qr() {
|
|
|
2621
2621
|
* hmacHasher.reset();
|
|
2622
2622
|
*/
|
|
2623
2623
|
reset: function() {
|
|
2624
|
-
var
|
|
2625
|
-
|
|
2624
|
+
var s = this._hasher;
|
|
2625
|
+
s.reset(), s.update(this._iKey);
|
|
2626
2626
|
},
|
|
2627
2627
|
/**
|
|
2628
2628
|
* Updates this HMAC with a message.
|
|
@@ -2636,8 +2636,8 @@ function Qr() {
|
|
|
2636
2636
|
* hmacHasher.update('message');
|
|
2637
2637
|
* hmacHasher.update(wordArray);
|
|
2638
2638
|
*/
|
|
2639
|
-
update: function(
|
|
2640
|
-
return this._hasher.update(
|
|
2639
|
+
update: function(s) {
|
|
2640
|
+
return this._hasher.update(s), this;
|
|
2641
2641
|
},
|
|
2642
2642
|
/**
|
|
2643
2643
|
* Finalizes the HMAC computation.
|
|
@@ -2653,8 +2653,8 @@ function Qr() {
|
|
|
2653
2653
|
* var hmac = hmacHasher.finalize('message');
|
|
2654
2654
|
* var hmac = hmacHasher.finalize(wordArray);
|
|
2655
2655
|
*/
|
|
2656
|
-
finalize: function(
|
|
2657
|
-
var f = this._hasher, v = f.finalize(
|
|
2656
|
+
finalize: function(s) {
|
|
2657
|
+
var f = this._hasher, v = f.finalize(s);
|
|
2658
2658
|
f.reset();
|
|
2659
2659
|
var h = f.finalize(this._oKey.clone().concat(v));
|
|
2660
2660
|
return h;
|
|
@@ -2671,7 +2671,7 @@ function yc() {
|
|
|
2671
2671
|
e.exports = t(se(), Jr(), Qr());
|
|
2672
2672
|
})(re, function(r) {
|
|
2673
2673
|
return function() {
|
|
2674
|
-
var t = r, i = t.lib, a = i.Base, o = i.WordArray,
|
|
2674
|
+
var t = r, i = t.lib, a = i.Base, o = i.WordArray, l = t.algo, c = l.SHA256, s = l.HMAC, f = l.PBKDF2 = a.extend({
|
|
2675
2675
|
/**
|
|
2676
2676
|
* Configuration options.
|
|
2677
2677
|
*
|
|
@@ -2711,7 +2711,7 @@ function yc() {
|
|
|
2711
2711
|
* var key = kdf.compute(password, salt);
|
|
2712
2712
|
*/
|
|
2713
2713
|
compute: function(v, h) {
|
|
2714
|
-
for (var g = this.cfg, d =
|
|
2714
|
+
for (var g = this.cfg, d = s.create(g.hasher, v), p = o.create(), y = o.create([1]), _ = p.words, b = y.words, C = g.keySize, E = g.iterations; _.length < C; ) {
|
|
2715
2715
|
var T = d.update(h).finalize(y);
|
|
2716
2716
|
d.reset();
|
|
2717
2717
|
for (var A = T.words, S = A.length, k = T, L = 1; L < E; L++) {
|
|
@@ -2719,9 +2719,9 @@ function yc() {
|
|
|
2719
2719
|
for (var F = k.words, B = 0; B < S; B++)
|
|
2720
2720
|
A[B] ^= F[B];
|
|
2721
2721
|
}
|
|
2722
|
-
|
|
2722
|
+
p.concat(T), b[0]++;
|
|
2723
2723
|
}
|
|
2724
|
-
return
|
|
2724
|
+
return p.sigBytes = C * 4, p;
|
|
2725
2725
|
}
|
|
2726
2726
|
});
|
|
2727
2727
|
t.PBKDF2 = function(v, h, g) {
|
|
@@ -2738,7 +2738,7 @@ function $t() {
|
|
|
2738
2738
|
e.exports = t(se(), mo(), Qr());
|
|
2739
2739
|
})(re, function(r) {
|
|
2740
2740
|
return function() {
|
|
2741
|
-
var t = r, i = t.lib, a = i.Base, o = i.WordArray,
|
|
2741
|
+
var t = r, i = t.lib, a = i.Base, o = i.WordArray, l = t.algo, c = l.MD5, s = l.EvpKDF = a.extend({
|
|
2742
2742
|
/**
|
|
2743
2743
|
* Configuration options.
|
|
2744
2744
|
*
|
|
@@ -2778,17 +2778,17 @@ function $t() {
|
|
|
2778
2778
|
* var key = kdf.compute(password, salt);
|
|
2779
2779
|
*/
|
|
2780
2780
|
compute: function(f, v) {
|
|
2781
|
-
for (var h, g = this.cfg, d = g.hasher.create(),
|
|
2781
|
+
for (var h, g = this.cfg, d = g.hasher.create(), p = o.create(), y = p.words, _ = g.keySize, b = g.iterations; y.length < _; ) {
|
|
2782
2782
|
h && d.update(h), h = d.update(f).finalize(v), d.reset();
|
|
2783
2783
|
for (var C = 1; C < b; C++)
|
|
2784
2784
|
h = d.finalize(h), d.reset();
|
|
2785
|
-
|
|
2785
|
+
p.concat(h);
|
|
2786
2786
|
}
|
|
2787
|
-
return
|
|
2787
|
+
return p.sigBytes = _ * 4, p;
|
|
2788
2788
|
}
|
|
2789
2789
|
});
|
|
2790
2790
|
t.EvpKDF = function(f, v, h) {
|
|
2791
|
-
return
|
|
2791
|
+
return s.create(h).compute(f, v);
|
|
2792
2792
|
};
|
|
2793
2793
|
}(), r.EvpKDF;
|
|
2794
2794
|
});
|
|
@@ -2801,9 +2801,9 @@ function Be() {
|
|
|
2801
2801
|
e.exports = t(se(), $t());
|
|
2802
2802
|
})(re, function(r) {
|
|
2803
2803
|
r.lib.Cipher || function(t) {
|
|
2804
|
-
var i = r, a = i.lib, o = a.Base,
|
|
2805
|
-
|
|
2806
|
-
var f =
|
|
2804
|
+
var i = r, a = i.lib, o = a.Base, l = a.WordArray, c = a.BufferedBlockAlgorithm, s = i.enc;
|
|
2805
|
+
s.Utf8;
|
|
2806
|
+
var f = s.Base64, v = i.algo, h = v.EvpKDF, g = a.Cipher = c.extend({
|
|
2807
2807
|
/**
|
|
2808
2808
|
* Configuration options.
|
|
2809
2809
|
*
|
|
@@ -2942,7 +2942,7 @@ function Be() {
|
|
|
2942
2942
|
},
|
|
2943
2943
|
blockSize: 1
|
|
2944
2944
|
});
|
|
2945
|
-
var d = i.mode = {},
|
|
2945
|
+
var d = i.mode = {}, p = a.BlockCipherMode = o.extend({
|
|
2946
2946
|
/**
|
|
2947
2947
|
* Creates this mode for encryption.
|
|
2948
2948
|
*
|
|
@@ -2987,7 +2987,7 @@ function Be() {
|
|
|
2987
2987
|
this._cipher = F, this._iv = B;
|
|
2988
2988
|
}
|
|
2989
2989
|
}), y = d.CBC = function() {
|
|
2990
|
-
var F =
|
|
2990
|
+
var F = p.extend();
|
|
2991
2991
|
F.Encryptor = F.extend({
|
|
2992
2992
|
/**
|
|
2993
2993
|
* Processes the data block at offset.
|
|
@@ -3042,7 +3042,7 @@ function Be() {
|
|
|
3042
3042
|
pad: function(F, B) {
|
|
3043
3043
|
for (var I = B * 4, P = I - F.sigBytes % I, W = P << 24 | P << 16 | P << 8 | P, G = [], Y = 0; Y < P; Y += 4)
|
|
3044
3044
|
G.push(W);
|
|
3045
|
-
var X =
|
|
3045
|
+
var X = l.create(G, P);
|
|
3046
3046
|
F.concat(X);
|
|
3047
3047
|
},
|
|
3048
3048
|
/**
|
|
@@ -3144,7 +3144,7 @@ function Be() {
|
|
|
3144
3144
|
*/
|
|
3145
3145
|
stringify: function(F) {
|
|
3146
3146
|
var B, I = F.ciphertext, P = F.salt;
|
|
3147
|
-
return P ? B =
|
|
3147
|
+
return P ? B = l.create([1398893684, 1701076831]).concat(P).concat(I) : B = I, B.toString(f);
|
|
3148
3148
|
},
|
|
3149
3149
|
/**
|
|
3150
3150
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -3161,7 +3161,7 @@ function Be() {
|
|
|
3161
3161
|
*/
|
|
3162
3162
|
parse: function(F) {
|
|
3163
3163
|
var B, I = f.parse(F), P = I.words;
|
|
3164
|
-
return P[0] == 1398893684 && P[1] == 1701076831 && (B =
|
|
3164
|
+
return P[0] == 1398893684 && P[1] == 1701076831 && (B = l.create(P.slice(2, 4)), P.splice(0, 4), I.sigBytes -= 16), C.create({ ciphertext: I, salt: B });
|
|
3165
3165
|
}
|
|
3166
3166
|
}, A = a.SerializableCipher = o.extend({
|
|
3167
3167
|
/**
|
|
@@ -3263,11 +3263,11 @@ function Be() {
|
|
|
3263
3263
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3264
3264
|
*/
|
|
3265
3265
|
execute: function(F, B, I, P, W) {
|
|
3266
|
-
if (P || (P =
|
|
3266
|
+
if (P || (P = l.random(64 / 8)), W)
|
|
3267
3267
|
var G = h.create({ keySize: B + I, hasher: W }).compute(F, P);
|
|
3268
3268
|
else
|
|
3269
3269
|
var G = h.create({ keySize: B + I }).compute(F, P);
|
|
3270
|
-
var Y =
|
|
3270
|
+
var Y = l.create(G.words.slice(B), I * 4);
|
|
3271
3271
|
return G.sigBytes = B * 4, C.create({ key: G, iv: Y, salt: P });
|
|
3272
3272
|
}
|
|
3273
3273
|
}, L = a.PasswordBasedCipher = A.extend({
|
|
@@ -3342,20 +3342,20 @@ function bc() {
|
|
|
3342
3342
|
var t = r.lib.BlockCipherMode.extend();
|
|
3343
3343
|
t.Encryptor = t.extend({
|
|
3344
3344
|
processBlock: function(a, o) {
|
|
3345
|
-
var
|
|
3346
|
-
i.call(this, a, o, c,
|
|
3345
|
+
var l = this._cipher, c = l.blockSize;
|
|
3346
|
+
i.call(this, a, o, c, l), this._prevBlock = a.slice(o, o + c);
|
|
3347
3347
|
}
|
|
3348
3348
|
}), t.Decryptor = t.extend({
|
|
3349
3349
|
processBlock: function(a, o) {
|
|
3350
|
-
var
|
|
3351
|
-
i.call(this, a, o, c,
|
|
3350
|
+
var l = this._cipher, c = l.blockSize, s = a.slice(o, o + c);
|
|
3351
|
+
i.call(this, a, o, c, l), this._prevBlock = s;
|
|
3352
3352
|
}
|
|
3353
3353
|
});
|
|
3354
|
-
function i(a, o,
|
|
3355
|
-
var
|
|
3356
|
-
f ? (
|
|
3357
|
-
for (var v = 0; v <
|
|
3358
|
-
a[o + v] ^=
|
|
3354
|
+
function i(a, o, l, c) {
|
|
3355
|
+
var s, f = this._iv;
|
|
3356
|
+
f ? (s = f.slice(0), this._iv = void 0) : s = this._prevBlock, c.encryptBlock(s, 0);
|
|
3357
|
+
for (var v = 0; v < l; v++)
|
|
3358
|
+
a[o + v] ^= s[v];
|
|
3359
3359
|
}
|
|
3360
3360
|
return t;
|
|
3361
3361
|
}(), r.mode.CFB;
|
|
@@ -3371,10 +3371,10 @@ function Cc() {
|
|
|
3371
3371
|
return r.mode.CTR = function() {
|
|
3372
3372
|
var t = r.lib.BlockCipherMode.extend(), i = t.Encryptor = t.extend({
|
|
3373
3373
|
processBlock: function(a, o) {
|
|
3374
|
-
var
|
|
3375
|
-
|
|
3374
|
+
var l = this._cipher, c = l.blockSize, s = this._iv, f = this._counter;
|
|
3375
|
+
s && (f = this._counter = s.slice(0), this._iv = void 0);
|
|
3376
3376
|
var v = f.slice(0);
|
|
3377
|
-
|
|
3377
|
+
l.encryptBlock(v, 0), f[c - 1] = f[c - 1] + 1 | 0;
|
|
3378
3378
|
for (var h = 0; h < c; h++)
|
|
3379
3379
|
a[o + h] ^= v[h];
|
|
3380
3380
|
}
|
|
@@ -3397,25 +3397,25 @@ function Ec() {
|
|
|
3397
3397
|
*/
|
|
3398
3398
|
return r.mode.CTRGladman = function() {
|
|
3399
3399
|
var t = r.lib.BlockCipherMode.extend();
|
|
3400
|
-
function i(
|
|
3401
|
-
if ((
|
|
3402
|
-
var c =
|
|
3403
|
-
c === 255 ? (c = 0,
|
|
3400
|
+
function i(l) {
|
|
3401
|
+
if ((l >> 24 & 255) === 255) {
|
|
3402
|
+
var c = l >> 16 & 255, s = l >> 8 & 255, f = l & 255;
|
|
3403
|
+
c === 255 ? (c = 0, s === 255 ? (s = 0, f === 255 ? f = 0 : ++f) : ++s) : ++c, l = 0, l += c << 16, l += s << 8, l += f;
|
|
3404
3404
|
} else
|
|
3405
|
-
|
|
3406
|
-
return
|
|
3405
|
+
l += 1 << 24;
|
|
3406
|
+
return l;
|
|
3407
3407
|
}
|
|
3408
|
-
function a(
|
|
3409
|
-
return (
|
|
3408
|
+
function a(l) {
|
|
3409
|
+
return (l[0] = i(l[0])) === 0 && (l[1] = i(l[1])), l;
|
|
3410
3410
|
}
|
|
3411
3411
|
var o = t.Encryptor = t.extend({
|
|
3412
|
-
processBlock: function(
|
|
3413
|
-
var
|
|
3412
|
+
processBlock: function(l, c) {
|
|
3413
|
+
var s = this._cipher, f = s.blockSize, v = this._iv, h = this._counter;
|
|
3414
3414
|
v && (h = this._counter = v.slice(0), this._iv = void 0), a(h);
|
|
3415
3415
|
var g = h.slice(0);
|
|
3416
|
-
|
|
3416
|
+
s.encryptBlock(g, 0);
|
|
3417
3417
|
for (var d = 0; d < f; d++)
|
|
3418
|
-
|
|
3418
|
+
l[c + d] ^= g[d];
|
|
3419
3419
|
}
|
|
3420
3420
|
});
|
|
3421
3421
|
return t.Decryptor = o, t;
|
|
@@ -3432,8 +3432,8 @@ function _c() {
|
|
|
3432
3432
|
return r.mode.OFB = function() {
|
|
3433
3433
|
var t = r.lib.BlockCipherMode.extend(), i = t.Encryptor = t.extend({
|
|
3434
3434
|
processBlock: function(a, o) {
|
|
3435
|
-
var
|
|
3436
|
-
|
|
3435
|
+
var l = this._cipher, c = l.blockSize, s = this._iv, f = this._keystream;
|
|
3436
|
+
s && (f = this._keystream = s.slice(0), this._iv = void 0), l.encryptBlock(f, 0);
|
|
3437
3437
|
for (var v = 0; v < c; v++)
|
|
3438
3438
|
a[o + v] ^= f[v];
|
|
3439
3439
|
}
|
|
@@ -3472,8 +3472,8 @@ function wc() {
|
|
|
3472
3472
|
})(re, function(r) {
|
|
3473
3473
|
return r.pad.AnsiX923 = {
|
|
3474
3474
|
pad: function(t, i) {
|
|
3475
|
-
var a = t.sigBytes, o = i * 4,
|
|
3476
|
-
t.clamp(), t.words[c >>> 2] |=
|
|
3475
|
+
var a = t.sigBytes, o = i * 4, l = o - a % o, c = a + l - 1;
|
|
3476
|
+
t.clamp(), t.words[c >>> 2] |= l << 24 - c % 4 * 8, t.sigBytes += l;
|
|
3477
3477
|
},
|
|
3478
3478
|
unpad: function(t) {
|
|
3479
3479
|
var i = t.words[t.sigBytes - 1 >>> 2] & 255;
|
|
@@ -3563,8 +3563,8 @@ function Sc() {
|
|
|
3563
3563
|
e.exports = t(se(), Be());
|
|
3564
3564
|
})(re, function(r) {
|
|
3565
3565
|
return function(t) {
|
|
3566
|
-
var i = r, a = i.lib, o = a.CipherParams,
|
|
3567
|
-
|
|
3566
|
+
var i = r, a = i.lib, o = a.CipherParams, l = i.enc, c = l.Hex, s = i.format;
|
|
3567
|
+
s.Hex = {
|
|
3568
3568
|
/**
|
|
3569
3569
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
3570
3570
|
*
|
|
@@ -3610,17 +3610,17 @@ function kc() {
|
|
|
3610
3610
|
e.exports = t(se(), Zt(), Jt(), $t(), Be());
|
|
3611
3611
|
})(re, function(r) {
|
|
3612
3612
|
return function() {
|
|
3613
|
-
var t = r, i = t.lib, a = i.BlockCipher, o = t.algo,
|
|
3613
|
+
var t = r, i = t.lib, a = i.BlockCipher, o = t.algo, l = [], c = [], s = [], f = [], v = [], h = [], g = [], d = [], p = [], y = [];
|
|
3614
3614
|
(function() {
|
|
3615
3615
|
for (var C = [], E = 0; E < 256; E++)
|
|
3616
3616
|
E < 128 ? C[E] = E << 1 : C[E] = E << 1 ^ 283;
|
|
3617
3617
|
for (var T = 0, A = 0, E = 0; E < 256; E++) {
|
|
3618
3618
|
var S = A ^ A << 1 ^ A << 2 ^ A << 3 ^ A << 4;
|
|
3619
|
-
S = S >>> 8 ^ S & 255 ^ 99,
|
|
3619
|
+
S = S >>> 8 ^ S & 255 ^ 99, l[T] = S, c[S] = T;
|
|
3620
3620
|
var k = C[T], L = C[k], F = C[L], B = C[S] * 257 ^ S * 16843008;
|
|
3621
|
-
|
|
3621
|
+
s[T] = B << 24 | B >>> 8, f[T] = B << 16 | B >>> 16, v[T] = B << 8 | B >>> 24, h[T] = B;
|
|
3622
3622
|
var B = F * 16843009 ^ L * 65537 ^ k * 257 ^ T * 16843008;
|
|
3623
|
-
g[S] = B << 24 | B >>> 8, d[S] = B << 16 | B >>> 16,
|
|
3623
|
+
g[S] = B << 24 | B >>> 8, d[S] = B << 16 | B >>> 16, p[S] = B << 8 | B >>> 24, y[S] = B, T ? (T = k ^ C[C[C[F ^ k]]], A ^= C[C[A]]) : T = A = 1;
|
|
3624
3624
|
}
|
|
3625
3625
|
})();
|
|
3626
3626
|
var _ = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], b = o.AES = a.extend({
|
|
@@ -3628,23 +3628,23 @@ function kc() {
|
|
|
3628
3628
|
var C;
|
|
3629
3629
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3630
3630
|
for (var E = this._keyPriorReset = this._key, T = E.words, A = E.sigBytes / 4, S = this._nRounds = A + 6, k = (S + 1) * 4, L = this._keySchedule = [], F = 0; F < k; F++)
|
|
3631
|
-
F < A ? L[F] = T[F] : (C = L[F - 1], F % A ? A > 6 && F % A == 4 && (C =
|
|
3631
|
+
F < A ? L[F] = T[F] : (C = L[F - 1], F % A ? A > 6 && F % A == 4 && (C = l[C >>> 24] << 24 | l[C >>> 16 & 255] << 16 | l[C >>> 8 & 255] << 8 | l[C & 255]) : (C = C << 8 | C >>> 24, C = l[C >>> 24] << 24 | l[C >>> 16 & 255] << 16 | l[C >>> 8 & 255] << 8 | l[C & 255], C ^= _[F / A | 0] << 24), L[F] = L[F - A] ^ C);
|
|
3632
3632
|
for (var B = this._invKeySchedule = [], I = 0; I < k; I++) {
|
|
3633
3633
|
var F = k - I;
|
|
3634
3634
|
if (I % 4)
|
|
3635
3635
|
var C = L[F];
|
|
3636
3636
|
else
|
|
3637
3637
|
var C = L[F - 4];
|
|
3638
|
-
I < 4 || F <= 4 ? B[I] = C : B[I] = g[
|
|
3638
|
+
I < 4 || F <= 4 ? B[I] = C : B[I] = g[l[C >>> 24]] ^ d[l[C >>> 16 & 255]] ^ p[l[C >>> 8 & 255]] ^ y[l[C & 255]];
|
|
3639
3639
|
}
|
|
3640
3640
|
}
|
|
3641
3641
|
},
|
|
3642
3642
|
encryptBlock: function(C, E) {
|
|
3643
|
-
this._doCryptBlock(C, E, this._keySchedule,
|
|
3643
|
+
this._doCryptBlock(C, E, this._keySchedule, s, f, v, h, l);
|
|
3644
3644
|
},
|
|
3645
3645
|
decryptBlock: function(C, E) {
|
|
3646
3646
|
var T = C[E + 1];
|
|
3647
|
-
C[E + 1] = C[E + 3], C[E + 3] = T, this._doCryptBlock(C, E, this._invKeySchedule, g, d,
|
|
3647
|
+
C[E + 1] = C[E + 3], C[E + 3] = T, this._doCryptBlock(C, E, this._invKeySchedule, g, d, p, y, c);
|
|
3648
3648
|
var T = C[E + 1];
|
|
3649
3649
|
C[E + 1] = C[E + 3], C[E + 3] = T;
|
|
3650
3650
|
},
|
|
@@ -3670,7 +3670,7 @@ function Ic() {
|
|
|
3670
3670
|
e.exports = t(se(), Zt(), Jt(), $t(), Be());
|
|
3671
3671
|
})(re, function(r) {
|
|
3672
3672
|
return function() {
|
|
3673
|
-
var t = r, i = t.lib, a = i.WordArray, o = i.BlockCipher,
|
|
3673
|
+
var t = r, i = t.lib, a = i.WordArray, o = i.BlockCipher, l = t.algo, c = [
|
|
3674
3674
|
57,
|
|
3675
3675
|
49,
|
|
3676
3676
|
41,
|
|
@@ -3727,7 +3727,7 @@ function Ic() {
|
|
|
3727
3727
|
20,
|
|
3728
3728
|
12,
|
|
3729
3729
|
4
|
|
3730
|
-
],
|
|
3730
|
+
], s = [
|
|
3731
3731
|
14,
|
|
3732
3732
|
17,
|
|
3733
3733
|
11,
|
|
@@ -4314,7 +4314,7 @@ function Ic() {
|
|
|
4314
4314
|
8064,
|
|
4315
4315
|
504,
|
|
4316
4316
|
2147483679
|
|
4317
|
-
], g =
|
|
4317
|
+
], g = l.DES = o.extend({
|
|
4318
4318
|
_doReset: function() {
|
|
4319
4319
|
for (var _ = this._key, b = _.words, C = [], E = 0; E < 56; E++) {
|
|
4320
4320
|
var T = c[E] - 1;
|
|
@@ -4322,7 +4322,7 @@ function Ic() {
|
|
|
4322
4322
|
}
|
|
4323
4323
|
for (var A = this._subKeys = [], S = 0; S < 16; S++) {
|
|
4324
4324
|
for (var k = A[S] = [], L = f[S], E = 0; E < 24; E++)
|
|
4325
|
-
k[E / 6 | 0] |= C[(
|
|
4325
|
+
k[E / 6 | 0] |= C[(s[E] - 1 + L) % 28] << 31 - E % 6, k[4 + (E / 6 | 0)] |= C[28 + (s[E + 24] - 1 + L) % 28] << 31 - E % 6;
|
|
4326
4326
|
k[0] = k[0] << 1 | k[0] >>> 31;
|
|
4327
4327
|
for (var E = 1; E < 7; E++)
|
|
4328
4328
|
k[E] = k[E] >>> (E - 1) * 4 + 3;
|
|
@@ -4338,14 +4338,14 @@ function Ic() {
|
|
|
4338
4338
|
this._doCryptBlock(_, b, this._invSubKeys);
|
|
4339
4339
|
},
|
|
4340
4340
|
_doCryptBlock: function(_, b, C) {
|
|
4341
|
-
this._lBlock = _[b], this._rBlock = _[b + 1], d.call(this, 4, 252645135), d.call(this, 16, 65535),
|
|
4341
|
+
this._lBlock = _[b], this._rBlock = _[b + 1], d.call(this, 4, 252645135), d.call(this, 16, 65535), p.call(this, 2, 858993459), p.call(this, 8, 16711935), d.call(this, 1, 1431655765);
|
|
4342
4342
|
for (var E = 0; E < 16; E++) {
|
|
4343
4343
|
for (var T = C[E], A = this._lBlock, S = this._rBlock, k = 0, L = 0; L < 8; L++)
|
|
4344
4344
|
k |= v[L][((S ^ T[L]) & h[L]) >>> 0];
|
|
4345
4345
|
this._lBlock = S, this._rBlock = A ^ k;
|
|
4346
4346
|
}
|
|
4347
4347
|
var F = this._lBlock;
|
|
4348
|
-
this._lBlock = this._rBlock, this._rBlock = F, d.call(this, 1, 1431655765),
|
|
4348
|
+
this._lBlock = this._rBlock, this._rBlock = F, d.call(this, 1, 1431655765), p.call(this, 8, 16711935), p.call(this, 2, 858993459), d.call(this, 16, 65535), d.call(this, 4, 252645135), _[b] = this._lBlock, _[b + 1] = this._rBlock;
|
|
4349
4349
|
},
|
|
4350
4350
|
keySize: 64 / 32,
|
|
4351
4351
|
ivSize: 64 / 32,
|
|
@@ -4355,12 +4355,12 @@ function Ic() {
|
|
|
4355
4355
|
var C = (this._lBlock >>> _ ^ this._rBlock) & b;
|
|
4356
4356
|
this._rBlock ^= C, this._lBlock ^= C << _;
|
|
4357
4357
|
}
|
|
4358
|
-
function
|
|
4358
|
+
function p(_, b) {
|
|
4359
4359
|
var C = (this._rBlock >>> _ ^ this._lBlock) & b;
|
|
4360
4360
|
this._lBlock ^= C, this._rBlock ^= C << _;
|
|
4361
4361
|
}
|
|
4362
4362
|
t.DES = o._createHelper(g);
|
|
4363
|
-
var y =
|
|
4363
|
+
var y = l.TripleDES = o.extend({
|
|
4364
4364
|
_doReset: function() {
|
|
4365
4365
|
var _ = this._key, b = _.words;
|
|
4366
4366
|
if (b.length !== 2 && b.length !== 4 && b.length < 6)
|
|
@@ -4390,15 +4390,15 @@ function Pc() {
|
|
|
4390
4390
|
e.exports = t(se(), Zt(), Jt(), $t(), Be());
|
|
4391
4391
|
})(re, function(r) {
|
|
4392
4392
|
return function() {
|
|
4393
|
-
var t = r, i = t.lib, a = i.StreamCipher, o = t.algo,
|
|
4393
|
+
var t = r, i = t.lib, a = i.StreamCipher, o = t.algo, l = o.RC4 = a.extend({
|
|
4394
4394
|
_doReset: function() {
|
|
4395
4395
|
for (var f = this._key, v = f.words, h = f.sigBytes, g = this._S = [], d = 0; d < 256; d++)
|
|
4396
4396
|
g[d] = d;
|
|
4397
|
-
for (var d = 0,
|
|
4397
|
+
for (var d = 0, p = 0; d < 256; d++) {
|
|
4398
4398
|
var y = d % h, _ = v[y >>> 2] >>> 24 - y % 4 * 8 & 255;
|
|
4399
|
-
|
|
4399
|
+
p = (p + g[d] + _) % 256;
|
|
4400
4400
|
var b = g[d];
|
|
4401
|
-
g[d] = g[
|
|
4401
|
+
g[d] = g[p], g[p] = b;
|
|
4402
4402
|
}
|
|
4403
4403
|
this._i = this._j = 0;
|
|
4404
4404
|
},
|
|
@@ -4411,28 +4411,28 @@ function Pc() {
|
|
|
4411
4411
|
function c() {
|
|
4412
4412
|
for (var f = this._S, v = this._i, h = this._j, g = 0, d = 0; d < 4; d++) {
|
|
4413
4413
|
v = (v + 1) % 256, h = (h + f[v]) % 256;
|
|
4414
|
-
var
|
|
4415
|
-
f[v] = f[h], f[h] =
|
|
4414
|
+
var p = f[v];
|
|
4415
|
+
f[v] = f[h], f[h] = p, g |= f[(f[v] + f[h]) % 256] << 24 - d * 8;
|
|
4416
4416
|
}
|
|
4417
4417
|
return this._i = v, this._j = h, g;
|
|
4418
4418
|
}
|
|
4419
|
-
t.RC4 = a._createHelper(
|
|
4420
|
-
var
|
|
4419
|
+
t.RC4 = a._createHelper(l);
|
|
4420
|
+
var s = o.RC4Drop = l.extend({
|
|
4421
4421
|
/**
|
|
4422
4422
|
* Configuration options.
|
|
4423
4423
|
*
|
|
4424
4424
|
* @property {number} drop The number of keystream words to drop. Default 192
|
|
4425
4425
|
*/
|
|
4426
|
-
cfg:
|
|
4426
|
+
cfg: l.cfg.extend({
|
|
4427
4427
|
drop: 192
|
|
4428
4428
|
}),
|
|
4429
4429
|
_doReset: function() {
|
|
4430
|
-
|
|
4430
|
+
l._doReset.call(this);
|
|
4431
4431
|
for (var f = this.cfg.drop; f > 0; f--)
|
|
4432
4432
|
c.call(this);
|
|
4433
4433
|
}
|
|
4434
4434
|
});
|
|
4435
|
-
t.RC4Drop = a._createHelper(
|
|
4435
|
+
t.RC4Drop = a._createHelper(s);
|
|
4436
4436
|
}(), r.RC4;
|
|
4437
4437
|
});
|
|
4438
4438
|
}(_r)), _r.exports;
|
|
@@ -4444,11 +4444,11 @@ function Mc() {
|
|
|
4444
4444
|
e.exports = t(se(), Zt(), Jt(), $t(), Be());
|
|
4445
4445
|
})(re, function(r) {
|
|
4446
4446
|
return function() {
|
|
4447
|
-
var t = r, i = t.lib, a = i.StreamCipher, o = t.algo,
|
|
4447
|
+
var t = r, i = t.lib, a = i.StreamCipher, o = t.algo, l = [], c = [], s = [], f = o.Rabbit = a.extend({
|
|
4448
4448
|
_doReset: function() {
|
|
4449
4449
|
for (var h = this._key.words, g = this.cfg.iv, d = 0; d < 4; d++)
|
|
4450
4450
|
h[d] = (h[d] << 8 | h[d] >>> 24) & 16711935 | (h[d] << 24 | h[d] >>> 8) & 4278255360;
|
|
4451
|
-
var
|
|
4451
|
+
var p = this._X = [
|
|
4452
4452
|
h[0],
|
|
4453
4453
|
h[3] << 16 | h[2] >>> 16,
|
|
4454
4454
|
h[1],
|
|
@@ -4471,7 +4471,7 @@ function Mc() {
|
|
|
4471
4471
|
for (var d = 0; d < 4; d++)
|
|
4472
4472
|
v.call(this);
|
|
4473
4473
|
for (var d = 0; d < 8; d++)
|
|
4474
|
-
y[d] ^=
|
|
4474
|
+
y[d] ^= p[d + 4 & 7];
|
|
4475
4475
|
if (g) {
|
|
4476
4476
|
var _ = g.words, b = _[0], C = _[1], E = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, T = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, A = E >>> 16 | T & 4294901760, S = T << 16 | E & 65535;
|
|
4477
4477
|
y[0] ^= E, y[1] ^= A, y[2] ^= T, y[3] ^= S, y[4] ^= E, y[5] ^= A, y[6] ^= T, y[7] ^= S;
|
|
@@ -4481,9 +4481,9 @@ function Mc() {
|
|
|
4481
4481
|
},
|
|
4482
4482
|
_doProcessBlock: function(h, g) {
|
|
4483
4483
|
var d = this._X;
|
|
4484
|
-
v.call(this),
|
|
4485
|
-
for (var
|
|
4486
|
-
|
|
4484
|
+
v.call(this), l[0] = d[0] ^ d[5] >>> 16 ^ d[3] << 16, l[1] = d[2] ^ d[7] >>> 16 ^ d[5] << 16, l[2] = d[4] ^ d[1] >>> 16 ^ d[7] << 16, l[3] = d[6] ^ d[3] >>> 16 ^ d[1] << 16;
|
|
4485
|
+
for (var p = 0; p < 4; p++)
|
|
4486
|
+
l[p] = (l[p] << 8 | l[p] >>> 24) & 16711935 | (l[p] << 24 | l[p] >>> 8) & 4278255360, h[g + p] ^= l[p];
|
|
4487
4487
|
},
|
|
4488
4488
|
blockSize: 128 / 32,
|
|
4489
4489
|
ivSize: 64 / 32
|
|
@@ -4493,10 +4493,10 @@ function Mc() {
|
|
|
4493
4493
|
c[d] = g[d];
|
|
4494
4494
|
g[0] = g[0] + 1295307597 + this._b | 0, g[1] = g[1] + 3545052371 + (g[0] >>> 0 < c[0] >>> 0 ? 1 : 0) | 0, g[2] = g[2] + 886263092 + (g[1] >>> 0 < c[1] >>> 0 ? 1 : 0) | 0, g[3] = g[3] + 1295307597 + (g[2] >>> 0 < c[2] >>> 0 ? 1 : 0) | 0, g[4] = g[4] + 3545052371 + (g[3] >>> 0 < c[3] >>> 0 ? 1 : 0) | 0, g[5] = g[5] + 886263092 + (g[4] >>> 0 < c[4] >>> 0 ? 1 : 0) | 0, g[6] = g[6] + 1295307597 + (g[5] >>> 0 < c[5] >>> 0 ? 1 : 0) | 0, g[7] = g[7] + 3545052371 + (g[6] >>> 0 < c[6] >>> 0 ? 1 : 0) | 0, this._b = g[7] >>> 0 < c[7] >>> 0 ? 1 : 0;
|
|
4495
4495
|
for (var d = 0; d < 8; d++) {
|
|
4496
|
-
var
|
|
4497
|
-
|
|
4496
|
+
var p = h[d] + g[d], y = p & 65535, _ = p >>> 16, b = ((y * y >>> 17) + y * _ >>> 15) + _ * _, C = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4497
|
+
s[d] = b ^ C;
|
|
4498
4498
|
}
|
|
4499
|
-
h[0] =
|
|
4499
|
+
h[0] = s[0] + (s[7] << 16 | s[7] >>> 16) + (s[6] << 16 | s[6] >>> 16) | 0, h[1] = s[1] + (s[0] << 8 | s[0] >>> 24) + s[7] | 0, h[2] = s[2] + (s[1] << 16 | s[1] >>> 16) + (s[0] << 16 | s[0] >>> 16) | 0, h[3] = s[3] + (s[2] << 8 | s[2] >>> 24) + s[1] | 0, h[4] = s[4] + (s[3] << 16 | s[3] >>> 16) + (s[2] << 16 | s[2] >>> 16) | 0, h[5] = s[5] + (s[4] << 8 | s[4] >>> 24) + s[3] | 0, h[6] = s[6] + (s[5] << 16 | s[5] >>> 16) + (s[4] << 16 | s[4] >>> 16) | 0, h[7] = s[7] + (s[6] << 8 | s[6] >>> 24) + s[5] | 0;
|
|
4500
4500
|
}
|
|
4501
4501
|
t.Rabbit = a._createHelper(f);
|
|
4502
4502
|
}(), r.Rabbit;
|
|
@@ -4510,7 +4510,7 @@ function Rc() {
|
|
|
4510
4510
|
e.exports = t(se(), Zt(), Jt(), $t(), Be());
|
|
4511
4511
|
})(re, function(r) {
|
|
4512
4512
|
return function() {
|
|
4513
|
-
var t = r, i = t.lib, a = i.StreamCipher, o = t.algo,
|
|
4513
|
+
var t = r, i = t.lib, a = i.StreamCipher, o = t.algo, l = [], c = [], s = [], f = o.RabbitLegacy = a.extend({
|
|
4514
4514
|
_doReset: function() {
|
|
4515
4515
|
var h = this._key.words, g = this.cfg.iv, d = this._X = [
|
|
4516
4516
|
h[0],
|
|
@@ -4521,7 +4521,7 @@ function Rc() {
|
|
|
4521
4521
|
h[1] << 16 | h[0] >>> 16,
|
|
4522
4522
|
h[3],
|
|
4523
4523
|
h[2] << 16 | h[1] >>> 16
|
|
4524
|
-
],
|
|
4524
|
+
], p = this._C = [
|
|
4525
4525
|
h[2] << 16 | h[2] >>> 16,
|
|
4526
4526
|
h[0] & 4294901760 | h[1] & 65535,
|
|
4527
4527
|
h[3] << 16 | h[3] >>> 16,
|
|
@@ -4535,19 +4535,19 @@ function Rc() {
|
|
|
4535
4535
|
for (var y = 0; y < 4; y++)
|
|
4536
4536
|
v.call(this);
|
|
4537
4537
|
for (var y = 0; y < 8; y++)
|
|
4538
|
-
|
|
4538
|
+
p[y] ^= d[y + 4 & 7];
|
|
4539
4539
|
if (g) {
|
|
4540
4540
|
var _ = g.words, b = _[0], C = _[1], E = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, T = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, A = E >>> 16 | T & 4294901760, S = T << 16 | E & 65535;
|
|
4541
|
-
|
|
4541
|
+
p[0] ^= E, p[1] ^= A, p[2] ^= T, p[3] ^= S, p[4] ^= E, p[5] ^= A, p[6] ^= T, p[7] ^= S;
|
|
4542
4542
|
for (var y = 0; y < 4; y++)
|
|
4543
4543
|
v.call(this);
|
|
4544
4544
|
}
|
|
4545
4545
|
},
|
|
4546
4546
|
_doProcessBlock: function(h, g) {
|
|
4547
4547
|
var d = this._X;
|
|
4548
|
-
v.call(this),
|
|
4549
|
-
for (var
|
|
4550
|
-
|
|
4548
|
+
v.call(this), l[0] = d[0] ^ d[5] >>> 16 ^ d[3] << 16, l[1] = d[2] ^ d[7] >>> 16 ^ d[5] << 16, l[2] = d[4] ^ d[1] >>> 16 ^ d[7] << 16, l[3] = d[6] ^ d[3] >>> 16 ^ d[1] << 16;
|
|
4549
|
+
for (var p = 0; p < 4; p++)
|
|
4550
|
+
l[p] = (l[p] << 8 | l[p] >>> 24) & 16711935 | (l[p] << 24 | l[p] >>> 8) & 4278255360, h[g + p] ^= l[p];
|
|
4551
4551
|
},
|
|
4552
4552
|
blockSize: 128 / 32,
|
|
4553
4553
|
ivSize: 64 / 32
|
|
@@ -4557,10 +4557,10 @@ function Rc() {
|
|
|
4557
4557
|
c[d] = g[d];
|
|
4558
4558
|
g[0] = g[0] + 1295307597 + this._b | 0, g[1] = g[1] + 3545052371 + (g[0] >>> 0 < c[0] >>> 0 ? 1 : 0) | 0, g[2] = g[2] + 886263092 + (g[1] >>> 0 < c[1] >>> 0 ? 1 : 0) | 0, g[3] = g[3] + 1295307597 + (g[2] >>> 0 < c[2] >>> 0 ? 1 : 0) | 0, g[4] = g[4] + 3545052371 + (g[3] >>> 0 < c[3] >>> 0 ? 1 : 0) | 0, g[5] = g[5] + 886263092 + (g[4] >>> 0 < c[4] >>> 0 ? 1 : 0) | 0, g[6] = g[6] + 1295307597 + (g[5] >>> 0 < c[5] >>> 0 ? 1 : 0) | 0, g[7] = g[7] + 3545052371 + (g[6] >>> 0 < c[6] >>> 0 ? 1 : 0) | 0, this._b = g[7] >>> 0 < c[7] >>> 0 ? 1 : 0;
|
|
4559
4559
|
for (var d = 0; d < 8; d++) {
|
|
4560
|
-
var
|
|
4561
|
-
|
|
4560
|
+
var p = h[d] + g[d], y = p & 65535, _ = p >>> 16, b = ((y * y >>> 17) + y * _ >>> 15) + _ * _, C = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4561
|
+
s[d] = b ^ C;
|
|
4562
4562
|
}
|
|
4563
|
-
h[0] =
|
|
4563
|
+
h[0] = s[0] + (s[7] << 16 | s[7] >>> 16) + (s[6] << 16 | s[6] >>> 16) | 0, h[1] = s[1] + (s[0] << 8 | s[0] >>> 24) + s[7] | 0, h[2] = s[2] + (s[1] << 16 | s[1] >>> 16) + (s[0] << 16 | s[0] >>> 16) | 0, h[3] = s[3] + (s[2] << 8 | s[2] >>> 24) + s[1] | 0, h[4] = s[4] + (s[3] << 16 | s[3] >>> 16) + (s[2] << 16 | s[2] >>> 16) | 0, h[5] = s[5] + (s[4] << 8 | s[4] >>> 24) + s[3] | 0, h[6] = s[6] + (s[5] << 16 | s[5] >>> 16) + (s[4] << 16 | s[4] >>> 16) | 0, h[7] = s[7] + (s[6] << 8 | s[6] >>> 24) + s[5] | 0;
|
|
4564
4564
|
}
|
|
4565
4565
|
t.RabbitLegacy = a._createHelper(f);
|
|
4566
4566
|
}(), r.RabbitLegacy;
|
|
@@ -4575,7 +4575,7 @@ function Oc() {
|
|
|
4575
4575
|
})(re, function(r) {
|
|
4576
4576
|
return function() {
|
|
4577
4577
|
var t = r, i = t.lib, a = i.BlockCipher, o = t.algo;
|
|
4578
|
-
const
|
|
4578
|
+
const l = 16, c = [
|
|
4579
4579
|
608135816,
|
|
4580
4580
|
2242054355,
|
|
4581
4581
|
320440878,
|
|
@@ -4594,7 +4594,7 @@ function Oc() {
|
|
|
4594
4594
|
3041331479,
|
|
4595
4595
|
2450970073,
|
|
4596
4596
|
2306472731
|
|
4597
|
-
],
|
|
4597
|
+
], s = [
|
|
4598
4598
|
[
|
|
4599
4599
|
3509652390,
|
|
4600
4600
|
2564797868,
|
|
@@ -5638,13 +5638,13 @@ function Oc() {
|
|
|
5638
5638
|
}
|
|
5639
5639
|
function h(y, _, b) {
|
|
5640
5640
|
let C = _, E = b, T;
|
|
5641
|
-
for (let A = 0; A <
|
|
5641
|
+
for (let A = 0; A < l; ++A)
|
|
5642
5642
|
C = C ^ y.pbox[A], E = v(y, C) ^ E, T = C, C = E, E = T;
|
|
5643
|
-
return T = C, C = E, E = T, E = E ^ y.pbox[
|
|
5643
|
+
return T = C, C = E, E = T, E = E ^ y.pbox[l], C = C ^ y.pbox[l + 1], { left: C, right: E };
|
|
5644
5644
|
}
|
|
5645
5645
|
function g(y, _, b) {
|
|
5646
5646
|
let C = _, E = b, T;
|
|
5647
|
-
for (let A =
|
|
5647
|
+
for (let A = l + 1; A > 1; --A)
|
|
5648
5648
|
C = C ^ y.pbox[A], E = v(y, C) ^ E, T = C, C = E, E = T;
|
|
5649
5649
|
return T = C, C = E, E = T, E = E ^ y.pbox[1], C = C ^ y.pbox[0], { left: C, right: E };
|
|
5650
5650
|
}
|
|
@@ -5652,20 +5652,20 @@ function Oc() {
|
|
|
5652
5652
|
for (let S = 0; S < 4; S++) {
|
|
5653
5653
|
y.sbox[S] = [];
|
|
5654
5654
|
for (let k = 0; k < 256; k++)
|
|
5655
|
-
y.sbox[S][k] =
|
|
5655
|
+
y.sbox[S][k] = s[S][k];
|
|
5656
5656
|
}
|
|
5657
5657
|
let C = 0;
|
|
5658
|
-
for (let S = 0; S <
|
|
5658
|
+
for (let S = 0; S < l + 2; S++)
|
|
5659
5659
|
y.pbox[S] = c[S] ^ _[C], C++, C >= b && (C = 0);
|
|
5660
5660
|
let E = 0, T = 0, A = 0;
|
|
5661
|
-
for (let S = 0; S <
|
|
5661
|
+
for (let S = 0; S < l + 2; S += 2)
|
|
5662
5662
|
A = h(y, E, T), E = A.left, T = A.right, y.pbox[S] = E, y.pbox[S + 1] = T;
|
|
5663
5663
|
for (let S = 0; S < 4; S++)
|
|
5664
5664
|
for (let k = 0; k < 256; k += 2)
|
|
5665
5665
|
A = h(y, E, T), E = A.left, T = A.right, y.sbox[S][k] = E, y.sbox[S][k + 1] = T;
|
|
5666
5666
|
return !0;
|
|
5667
5667
|
}
|
|
5668
|
-
var
|
|
5668
|
+
var p = o.Blowfish = a.extend({
|
|
5669
5669
|
_doReset: function() {
|
|
5670
5670
|
if (this._keyPriorReset !== this._key) {
|
|
5671
5671
|
var y = this._keyPriorReset = this._key, _ = y.words, b = y.sigBytes / 4;
|
|
@@ -5684,7 +5684,7 @@ function Oc() {
|
|
|
5684
5684
|
keySize: 128 / 32,
|
|
5685
5685
|
ivSize: 64 / 32
|
|
5686
5686
|
});
|
|
5687
|
-
t.Blowfish = a._createHelper(
|
|
5687
|
+
t.Blowfish = a._createHelper(p);
|
|
5688
5688
|
}(), r.Blowfish;
|
|
5689
5689
|
});
|
|
5690
5690
|
}(Dr)), Dr.exports;
|
|
@@ -5780,50 +5780,50 @@ var Co = { exports: {} };
|
|
|
5780
5780
|
(function(e, n) {
|
|
5781
5781
|
(function() {
|
|
5782
5782
|
var r, t = 244837814094590, i = (t & 16777215) == 15715070;
|
|
5783
|
-
function a(u, x,
|
|
5784
|
-
u != null && (typeof u == "number" ? this.fromNumber(u, x,
|
|
5783
|
+
function a(u, x, m) {
|
|
5784
|
+
u != null && (typeof u == "number" ? this.fromNumber(u, x, m) : x == null && typeof u != "string" ? this.fromString(u, 256) : this.fromString(u, x));
|
|
5785
5785
|
}
|
|
5786
5786
|
function o() {
|
|
5787
5787
|
return new a(null);
|
|
5788
5788
|
}
|
|
5789
|
-
function
|
|
5789
|
+
function l(u, x, m, w, R, H) {
|
|
5790
5790
|
for (; --H >= 0; ) {
|
|
5791
|
-
var U = x * this[u++] +
|
|
5792
|
-
R = Math.floor(U / 67108864),
|
|
5791
|
+
var U = x * this[u++] + m[w] + R;
|
|
5792
|
+
R = Math.floor(U / 67108864), m[w++] = U & 67108863;
|
|
5793
5793
|
}
|
|
5794
5794
|
return R;
|
|
5795
5795
|
}
|
|
5796
|
-
function c(u, x,
|
|
5796
|
+
function c(u, x, m, w, R, H) {
|
|
5797
5797
|
for (var U = x & 32767, K = x >> 15; --H >= 0; ) {
|
|
5798
5798
|
var pe = this[u] & 32767, _e = this[u++] >> 15, Xe = K * pe + _e * U;
|
|
5799
|
-
pe = U * pe + ((Xe & 32767) << 15) +
|
|
5799
|
+
pe = U * pe + ((Xe & 32767) << 15) + m[w] + (R & 1073741823), R = (pe >>> 30) + (Xe >>> 15) + K * _e + (R >>> 30), m[w++] = pe & 1073741823;
|
|
5800
5800
|
}
|
|
5801
5801
|
return R;
|
|
5802
5802
|
}
|
|
5803
|
-
function
|
|
5803
|
+
function s(u, x, m, w, R, H) {
|
|
5804
5804
|
for (var U = x & 16383, K = x >> 14; --H >= 0; ) {
|
|
5805
5805
|
var pe = this[u] & 16383, _e = this[u++] >> 14, Xe = K * pe + _e * U;
|
|
5806
|
-
pe = U * pe + ((Xe & 16383) << 14) +
|
|
5806
|
+
pe = U * pe + ((Xe & 16383) << 14) + m[w] + R, R = (pe >> 28) + (Xe >> 14) + K * _e, m[w++] = pe & 268435455;
|
|
5807
5807
|
}
|
|
5808
5808
|
return R;
|
|
5809
5809
|
}
|
|
5810
5810
|
var f = typeof navigator < "u";
|
|
5811
|
-
f && i && navigator.appName == "Microsoft Internet Explorer" ? (a.prototype.am = c, r = 30) : f && i && navigator.appName != "Netscape" ? (a.prototype.am =
|
|
5811
|
+
f && i && navigator.appName == "Microsoft Internet Explorer" ? (a.prototype.am = c, r = 30) : f && i && navigator.appName != "Netscape" ? (a.prototype.am = l, r = 26) : (a.prototype.am = s, r = 28), a.prototype.DB = r, a.prototype.DM = (1 << r) - 1, a.prototype.DV = 1 << r;
|
|
5812
5812
|
var v = 52;
|
|
5813
5813
|
a.prototype.FV = Math.pow(2, v), a.prototype.F1 = v - r, a.prototype.F2 = 2 * r - v;
|
|
5814
|
-
var h = "0123456789abcdefghijklmnopqrstuvwxyz", g = new Array(), d,
|
|
5815
|
-
for (d = "0".charCodeAt(0),
|
|
5816
|
-
g[d++] =
|
|
5817
|
-
for (d = "a".charCodeAt(0),
|
|
5818
|
-
g[d++] =
|
|
5819
|
-
for (d = "A".charCodeAt(0),
|
|
5820
|
-
g[d++] =
|
|
5814
|
+
var h = "0123456789abcdefghijklmnopqrstuvwxyz", g = new Array(), d, p;
|
|
5815
|
+
for (d = "0".charCodeAt(0), p = 0; p <= 9; ++p)
|
|
5816
|
+
g[d++] = p;
|
|
5817
|
+
for (d = "a".charCodeAt(0), p = 10; p < 36; ++p)
|
|
5818
|
+
g[d++] = p;
|
|
5819
|
+
for (d = "A".charCodeAt(0), p = 10; p < 36; ++p)
|
|
5820
|
+
g[d++] = p;
|
|
5821
5821
|
function y(u) {
|
|
5822
5822
|
return h.charAt(u);
|
|
5823
5823
|
}
|
|
5824
5824
|
function _(u, x) {
|
|
5825
|
-
var
|
|
5826
|
-
return
|
|
5825
|
+
var m = g[u.charCodeAt(x)];
|
|
5826
|
+
return m ?? -1;
|
|
5827
5827
|
}
|
|
5828
5828
|
function b(u) {
|
|
5829
5829
|
for (var x = this.t - 1; x >= 0; --x)
|
|
@@ -5838,33 +5838,33 @@ var Co = { exports: {} };
|
|
|
5838
5838
|
return x.fromInt(u), x;
|
|
5839
5839
|
}
|
|
5840
5840
|
function T(u, x) {
|
|
5841
|
-
var
|
|
5841
|
+
var m;
|
|
5842
5842
|
if (x == 16)
|
|
5843
|
-
|
|
5843
|
+
m = 4;
|
|
5844
5844
|
else if (x == 8)
|
|
5845
|
-
|
|
5845
|
+
m = 3;
|
|
5846
5846
|
else if (x == 256)
|
|
5847
|
-
|
|
5847
|
+
m = 8;
|
|
5848
5848
|
else if (x == 2)
|
|
5849
|
-
|
|
5849
|
+
m = 1;
|
|
5850
5850
|
else if (x == 32)
|
|
5851
|
-
|
|
5851
|
+
m = 5;
|
|
5852
5852
|
else if (x == 4)
|
|
5853
|
-
|
|
5853
|
+
m = 2;
|
|
5854
5854
|
else {
|
|
5855
5855
|
this.fromRadix(u, x);
|
|
5856
5856
|
return;
|
|
5857
5857
|
}
|
|
5858
5858
|
this.t = 0, this.s = 0;
|
|
5859
5859
|
for (var w = u.length, R = !1, H = 0; --w >= 0; ) {
|
|
5860
|
-
var U =
|
|
5860
|
+
var U = m == 8 ? u[w] & 255 : _(u, w);
|
|
5861
5861
|
if (U < 0) {
|
|
5862
5862
|
u.charAt(w) == "-" && (R = !0);
|
|
5863
5863
|
continue;
|
|
5864
5864
|
}
|
|
5865
|
-
R = !1, H == 0 ? this[this.t++] = U : H +
|
|
5865
|
+
R = !1, H == 0 ? this[this.t++] = U : H + m > this.DB ? (this[this.t - 1] |= (U & (1 << this.DB - H) - 1) << H, this[this.t++] = U >> this.DB - H) : this[this.t - 1] |= U << H, H += m, H >= this.DB && (H -= this.DB);
|
|
5866
5866
|
}
|
|
5867
|
-
|
|
5867
|
+
m == 8 && u[0] & 128 && (this.s = -1, H > 0 && (this[this.t - 1] |= (1 << this.DB - H) - 1 << H)), this.clamp(), R && a.ZERO.subTo(this, this);
|
|
5868
5868
|
}
|
|
5869
5869
|
function A() {
|
|
5870
5870
|
for (var u = this.s & this.DM; this.t > 0 && this[this.t - 1] == u; )
|
|
@@ -5886,10 +5886,10 @@ var Co = { exports: {} };
|
|
|
5886
5886
|
x = 2;
|
|
5887
5887
|
else
|
|
5888
5888
|
return this.toRadix(u);
|
|
5889
|
-
var
|
|
5889
|
+
var m = (1 << x) - 1, w, R = !1, H = "", U = this.t, K = this.DB - U * this.DB % x;
|
|
5890
5890
|
if (U-- > 0)
|
|
5891
5891
|
for (K < this.DB && (w = this[U] >> K) > 0 && (R = !0, H = y(w)); U >= 0; )
|
|
5892
|
-
K < x ? (w = (this[U] & (1 << K) - 1) << x - K, w |= this[--U] >> (K += this.DB - x)) : (w = this[U] >> (K -= x) &
|
|
5892
|
+
K < x ? (w = (this[U] & (1 << K) - 1) << x - K, w |= this[--U] >> (K += this.DB - x)) : (w = this[U] >> (K -= x) & m, K <= 0 && (K += this.DB, --U)), w > 0 && (R = !0), R && (H += y(w));
|
|
5893
5893
|
return R ? H : "0";
|
|
5894
5894
|
}
|
|
5895
5895
|
function k() {
|
|
@@ -5903,109 +5903,109 @@ var Co = { exports: {} };
|
|
|
5903
5903
|
var x = this.s - u.s;
|
|
5904
5904
|
if (x != 0)
|
|
5905
5905
|
return x;
|
|
5906
|
-
var
|
|
5907
|
-
if (x =
|
|
5906
|
+
var m = this.t;
|
|
5907
|
+
if (x = m - u.t, x != 0)
|
|
5908
5908
|
return this.s < 0 ? -x : x;
|
|
5909
|
-
for (; --
|
|
5910
|
-
if ((x = this[
|
|
5909
|
+
for (; --m >= 0; )
|
|
5910
|
+
if ((x = this[m] - u[m]) != 0)
|
|
5911
5911
|
return x;
|
|
5912
5912
|
return 0;
|
|
5913
5913
|
}
|
|
5914
5914
|
function B(u) {
|
|
5915
|
-
var x = 1,
|
|
5916
|
-
return (
|
|
5915
|
+
var x = 1, m;
|
|
5916
|
+
return (m = u >>> 16) != 0 && (u = m, x += 16), (m = u >> 8) != 0 && (u = m, x += 8), (m = u >> 4) != 0 && (u = m, x += 4), (m = u >> 2) != 0 && (u = m, x += 2), (m = u >> 1) != 0 && (u = m, x += 1), x;
|
|
5917
5917
|
}
|
|
5918
5918
|
function I() {
|
|
5919
5919
|
return this.t <= 0 ? 0 : this.DB * (this.t - 1) + B(this[this.t - 1] ^ this.s & this.DM);
|
|
5920
5920
|
}
|
|
5921
5921
|
function P(u, x) {
|
|
5922
|
-
var
|
|
5923
|
-
for (
|
|
5924
|
-
x[
|
|
5925
|
-
for (
|
|
5926
|
-
x[
|
|
5922
|
+
var m;
|
|
5923
|
+
for (m = this.t - 1; m >= 0; --m)
|
|
5924
|
+
x[m + u] = this[m];
|
|
5925
|
+
for (m = u - 1; m >= 0; --m)
|
|
5926
|
+
x[m] = 0;
|
|
5927
5927
|
x.t = this.t + u, x.s = this.s;
|
|
5928
5928
|
}
|
|
5929
5929
|
function W(u, x) {
|
|
5930
|
-
for (var
|
|
5931
|
-
x[
|
|
5930
|
+
for (var m = u; m < this.t; ++m)
|
|
5931
|
+
x[m - u] = this[m];
|
|
5932
5932
|
x.t = Math.max(this.t - u, 0), x.s = this.s;
|
|
5933
5933
|
}
|
|
5934
5934
|
function G(u, x) {
|
|
5935
|
-
var
|
|
5935
|
+
var m = u % this.DB, w = this.DB - m, R = (1 << w) - 1, H = Math.floor(u / this.DB), U = this.s << m & this.DM, K;
|
|
5936
5936
|
for (K = this.t - 1; K >= 0; --K)
|
|
5937
|
-
x[K + H + 1] = this[K] >> w | U, U = (this[K] & R) <<
|
|
5937
|
+
x[K + H + 1] = this[K] >> w | U, U = (this[K] & R) << m;
|
|
5938
5938
|
for (K = H - 1; K >= 0; --K)
|
|
5939
5939
|
x[K] = 0;
|
|
5940
5940
|
x[H] = U, x.t = this.t + H + 1, x.s = this.s, x.clamp();
|
|
5941
5941
|
}
|
|
5942
5942
|
function Y(u, x) {
|
|
5943
5943
|
x.s = this.s;
|
|
5944
|
-
var
|
|
5945
|
-
if (
|
|
5944
|
+
var m = Math.floor(u / this.DB);
|
|
5945
|
+
if (m >= this.t) {
|
|
5946
5946
|
x.t = 0;
|
|
5947
5947
|
return;
|
|
5948
5948
|
}
|
|
5949
5949
|
var w = u % this.DB, R = this.DB - w, H = (1 << w) - 1;
|
|
5950
|
-
x[0] = this[
|
|
5951
|
-
for (var U =
|
|
5952
|
-
x[U -
|
|
5953
|
-
w > 0 && (x[this.t -
|
|
5950
|
+
x[0] = this[m] >> w;
|
|
5951
|
+
for (var U = m + 1; U < this.t; ++U)
|
|
5952
|
+
x[U - m - 1] |= (this[U] & H) << R, x[U - m] = this[U] >> w;
|
|
5953
|
+
w > 0 && (x[this.t - m - 1] |= (this.s & H) << R), x.t = this.t - m, x.clamp();
|
|
5954
5954
|
}
|
|
5955
5955
|
function X(u, x) {
|
|
5956
|
-
for (var
|
|
5957
|
-
w += this[
|
|
5956
|
+
for (var m = 0, w = 0, R = Math.min(u.t, this.t); m < R; )
|
|
5957
|
+
w += this[m] - u[m], x[m++] = w & this.DM, w >>= this.DB;
|
|
5958
5958
|
if (u.t < this.t) {
|
|
5959
|
-
for (w -= u.s;
|
|
5960
|
-
w += this[
|
|
5959
|
+
for (w -= u.s; m < this.t; )
|
|
5960
|
+
w += this[m], x[m++] = w & this.DM, w >>= this.DB;
|
|
5961
5961
|
w += this.s;
|
|
5962
5962
|
} else {
|
|
5963
|
-
for (w += this.s;
|
|
5964
|
-
w -= u[
|
|
5963
|
+
for (w += this.s; m < u.t; )
|
|
5964
|
+
w -= u[m], x[m++] = w & this.DM, w >>= this.DB;
|
|
5965
5965
|
w -= u.s;
|
|
5966
5966
|
}
|
|
5967
|
-
x.s = w < 0 ? -1 : 0, w < -1 ? x[
|
|
5967
|
+
x.s = w < 0 ? -1 : 0, w < -1 ? x[m++] = this.DV + w : w > 0 && (x[m++] = w), x.t = m, x.clamp();
|
|
5968
5968
|
}
|
|
5969
5969
|
function Z(u, x) {
|
|
5970
|
-
var
|
|
5970
|
+
var m = this.abs(), w = u.abs(), R = m.t;
|
|
5971
5971
|
for (x.t = R + w.t; --R >= 0; )
|
|
5972
5972
|
x[R] = 0;
|
|
5973
5973
|
for (R = 0; R < w.t; ++R)
|
|
5974
|
-
x[R +
|
|
5974
|
+
x[R + m.t] = m.am(0, w[R], x, R, 0, m.t);
|
|
5975
5975
|
x.s = 0, x.clamp(), this.s != u.s && a.ZERO.subTo(x, x);
|
|
5976
5976
|
}
|
|
5977
5977
|
function ae(u) {
|
|
5978
|
-
for (var x = this.abs(),
|
|
5979
|
-
u[
|
|
5980
|
-
for (
|
|
5981
|
-
var w = x.am(
|
|
5982
|
-
(u[
|
|
5978
|
+
for (var x = this.abs(), m = u.t = 2 * x.t; --m >= 0; )
|
|
5979
|
+
u[m] = 0;
|
|
5980
|
+
for (m = 0; m < x.t - 1; ++m) {
|
|
5981
|
+
var w = x.am(m, x[m], u, 2 * m, 0, 1);
|
|
5982
|
+
(u[m + x.t] += x.am(m + 1, 2 * x[m], u, 2 * m + 1, w, x.t - m - 1)) >= x.DV && (u[m + x.t] -= x.DV, u[m + x.t + 1] = 1);
|
|
5983
5983
|
}
|
|
5984
|
-
u.t > 0 && (u[u.t - 1] += x.am(
|
|
5984
|
+
u.t > 0 && (u[u.t - 1] += x.am(m, x[m], u, 2 * m, 0, 1)), u.s = 0, u.clamp();
|
|
5985
5985
|
}
|
|
5986
|
-
function ie(u, x,
|
|
5986
|
+
function ie(u, x, m) {
|
|
5987
5987
|
var w = u.abs();
|
|
5988
5988
|
if (!(w.t <= 0)) {
|
|
5989
5989
|
var R = this.abs();
|
|
5990
5990
|
if (R.t < w.t) {
|
|
5991
|
-
x != null && x.fromInt(0),
|
|
5991
|
+
x != null && x.fromInt(0), m != null && this.copyTo(m);
|
|
5992
5992
|
return;
|
|
5993
5993
|
}
|
|
5994
|
-
|
|
5994
|
+
m == null && (m = o());
|
|
5995
5995
|
var H = o(), U = this.s, K = u.s, pe = this.DB - B(w[w.t - 1]);
|
|
5996
|
-
pe > 0 ? (w.lShiftTo(pe, H), R.lShiftTo(pe,
|
|
5996
|
+
pe > 0 ? (w.lShiftTo(pe, H), R.lShiftTo(pe, m)) : (w.copyTo(H), R.copyTo(m));
|
|
5997
5997
|
var _e = H.t, Xe = H[_e - 1];
|
|
5998
5998
|
if (Xe != 0) {
|
|
5999
|
-
var Ke = Xe * (1 << this.F1) + (_e > 1 ? H[_e - 2] >> this.F2 : 0), yt = this.FV / Ke, K0 = (1 << this.F1) / Ke, tt = 1 << this.F2, nt =
|
|
6000
|
-
for (H.dlShiftTo(W0, Ft),
|
|
5999
|
+
var Ke = Xe * (1 << this.F1) + (_e > 1 ? H[_e - 2] >> this.F2 : 0), yt = this.FV / Ke, K0 = (1 << this.F1) / Ke, tt = 1 << this.F2, nt = m.t, W0 = nt - _e, Ft = x ?? o();
|
|
6000
|
+
for (H.dlShiftTo(W0, Ft), m.compareTo(Ft) >= 0 && (m[m.t++] = 1, m.subTo(Ft, m)), a.ONE.dlShiftTo(_e, Ft), Ft.subTo(H, H); H.t < _e; )
|
|
6001
6001
|
H[H.t++] = 0;
|
|
6002
6002
|
for (; --W0 >= 0; ) {
|
|
6003
|
-
var qn =
|
|
6004
|
-
if ((
|
|
6005
|
-
for (H.dlShiftTo(W0, Ft),
|
|
6006
|
-
|
|
6003
|
+
var qn = m[--nt] == Xe ? this.DM : Math.floor(m[nt] * yt + (m[nt - 1] + tt) * K0);
|
|
6004
|
+
if ((m[nt] += H.am(0, qn, m, W0, 0, _e)) < qn)
|
|
6005
|
+
for (H.dlShiftTo(W0, Ft), m.subTo(Ft, m); m[nt] < --qn; )
|
|
6006
|
+
m.subTo(Ft, m);
|
|
6007
6007
|
}
|
|
6008
|
-
x != null && (
|
|
6008
|
+
x != null && (m.drShiftTo(_e, x), U != K && a.ZERO.subTo(x, x)), m.t = _e, m.clamp(), pe > 0 && m.rShiftTo(pe, m), U < 0 && a.ZERO.subTo(m, m);
|
|
6009
6009
|
}
|
|
6010
6010
|
}
|
|
6011
6011
|
}
|
|
@@ -6025,8 +6025,8 @@ var Co = { exports: {} };
|
|
|
6025
6025
|
function fe(u) {
|
|
6026
6026
|
u.divRemTo(this.m, null, u);
|
|
6027
6027
|
}
|
|
6028
|
-
function le(u, x,
|
|
6029
|
-
u.multiplyTo(x,
|
|
6028
|
+
function le(u, x, m) {
|
|
6029
|
+
u.multiplyTo(x, m), this.reduce(m);
|
|
6030
6030
|
}
|
|
6031
6031
|
function we(u, x) {
|
|
6032
6032
|
u.squareTo(x), this.reduce(x);
|
|
@@ -6056,17 +6056,17 @@ var Co = { exports: {} };
|
|
|
6056
6056
|
for (; u.t <= this.mt2; )
|
|
6057
6057
|
u[u.t++] = 0;
|
|
6058
6058
|
for (var x = 0; x < this.m.t; ++x) {
|
|
6059
|
-
var
|
|
6060
|
-
for (
|
|
6061
|
-
u[
|
|
6059
|
+
var m = u[x] & 32767, w = m * this.mpl + ((m * this.mph + (u[x] >> 15) * this.mpl & this.um) << 15) & u.DM;
|
|
6060
|
+
for (m = x + this.m.t, u[m] += this.m.am(0, w, u, x, 0, this.m.t); u[m] >= u.DV; )
|
|
6061
|
+
u[m] -= u.DV, u[++m]++;
|
|
6062
6062
|
}
|
|
6063
6063
|
u.clamp(), u.drShiftTo(this.m.t, u), u.compareTo(this.m) >= 0 && u.subTo(this.m, u);
|
|
6064
6064
|
}
|
|
6065
6065
|
function Ae(u, x) {
|
|
6066
6066
|
u.squareTo(x), this.reduce(x);
|
|
6067
6067
|
}
|
|
6068
|
-
function Ce(u, x,
|
|
6069
|
-
u.multiplyTo(x,
|
|
6068
|
+
function Ce(u, x, m) {
|
|
6069
|
+
u.multiplyTo(x, m), this.reduce(m);
|
|
6070
6070
|
}
|
|
6071
6071
|
ge.prototype.convert = Ge, ge.prototype.revert = Bt, ge.prototype.reduce = ot, ge.prototype.mulTo = Ce, ge.prototype.sqrTo = Ae;
|
|
6072
6072
|
function pt() {
|
|
@@ -6075,19 +6075,19 @@ var Co = { exports: {} };
|
|
|
6075
6075
|
function vt(u, x) {
|
|
6076
6076
|
if (u > 4294967295 || u < 1)
|
|
6077
6077
|
return a.ONE;
|
|
6078
|
-
var
|
|
6079
|
-
for (R.copyTo(
|
|
6080
|
-
if (x.sqrTo(
|
|
6081
|
-
x.mulTo(w, R,
|
|
6078
|
+
var m = o(), w = o(), R = x.convert(this), H = B(u) - 1;
|
|
6079
|
+
for (R.copyTo(m); --H >= 0; )
|
|
6080
|
+
if (x.sqrTo(m, w), (u & 1 << H) > 0)
|
|
6081
|
+
x.mulTo(w, R, m);
|
|
6082
6082
|
else {
|
|
6083
|
-
var U =
|
|
6084
|
-
|
|
6083
|
+
var U = m;
|
|
6084
|
+
m = w, w = U;
|
|
6085
6085
|
}
|
|
6086
|
-
return x.revert(
|
|
6086
|
+
return x.revert(m);
|
|
6087
6087
|
}
|
|
6088
6088
|
function wt(u, x) {
|
|
6089
|
-
var
|
|
6090
|
-
return u < 256 || x.isEven() ?
|
|
6089
|
+
var m;
|
|
6090
|
+
return u < 256 || x.isEven() ? m = new O(x) : m = new ge(x), this.exp(u, m);
|
|
6091
6091
|
}
|
|
6092
6092
|
a.prototype.copyTo = b, a.prototype.fromInt = C, a.prototype.fromString = T, a.prototype.clamp = A, a.prototype.dlShiftTo = P, a.prototype.drShiftTo = W, a.prototype.lShiftTo = G, a.prototype.rShiftTo = Y, a.prototype.subTo = X, a.prototype.multiplyTo = Z, a.prototype.squareTo = ae, a.prototype.divRemTo = ie, a.prototype.invDigit = te, a.prototype.isEven = pt, a.prototype.exp = vt, a.prototype.toString = S, a.prototype.negate = k, a.prototype.abs = L, a.prototype.compareTo = F, a.prototype.bitLength = I, a.prototype.mod = M, a.prototype.modPowInt = wt, a.ZERO = E(0), a.ONE = E(1);
|
|
6093
6093
|
function mt() {
|
|
@@ -6123,29 +6123,29 @@ var Co = { exports: {} };
|
|
|
6123
6123
|
function V(u) {
|
|
6124
6124
|
if (u == null && (u = 10), this.signum() == 0 || u < 2 || u > 36)
|
|
6125
6125
|
return "0";
|
|
6126
|
-
var x = this.chunkSize(u),
|
|
6126
|
+
var x = this.chunkSize(u), m = Math.pow(u, x), w = E(m), R = o(), H = o(), U = "";
|
|
6127
6127
|
for (this.divRemTo(w, R, H); R.signum() > 0; )
|
|
6128
|
-
U = (
|
|
6128
|
+
U = (m + H.intValue()).toString(u).substr(1) + U, R.divRemTo(w, R, H);
|
|
6129
6129
|
return H.intValue().toString(u) + U;
|
|
6130
6130
|
}
|
|
6131
6131
|
function ce(u, x) {
|
|
6132
6132
|
this.fromInt(0), x == null && (x = 10);
|
|
6133
|
-
for (var
|
|
6133
|
+
for (var m = this.chunkSize(x), w = Math.pow(x, m), R = !1, H = 0, U = 0, K = 0; K < u.length; ++K) {
|
|
6134
6134
|
var pe = _(u, K);
|
|
6135
6135
|
if (pe < 0) {
|
|
6136
6136
|
u.charAt(K) == "-" && this.signum() == 0 && (R = !0);
|
|
6137
6137
|
continue;
|
|
6138
6138
|
}
|
|
6139
|
-
U = x * U + pe, ++H >=
|
|
6139
|
+
U = x * U + pe, ++H >= m && (this.dMultiply(w), this.dAddOffset(U, 0), H = 0, U = 0);
|
|
6140
6140
|
}
|
|
6141
6141
|
H > 0 && (this.dMultiply(Math.pow(x, H)), this.dAddOffset(U, 0)), R && a.ZERO.subTo(this, this);
|
|
6142
6142
|
}
|
|
6143
|
-
function Me(u, x,
|
|
6143
|
+
function Me(u, x, m) {
|
|
6144
6144
|
if (typeof x == "number")
|
|
6145
6145
|
if (u < 2)
|
|
6146
6146
|
this.fromInt(1);
|
|
6147
6147
|
else
|
|
6148
|
-
for (this.fromNumber(u,
|
|
6148
|
+
for (this.fromNumber(u, m), this.testBit(u - 1) || this.bitwiseTo(a.ONE.shiftLeft(u - 1), t0, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(x); )
|
|
6149
6149
|
this.dAddOffset(2, 0), this.bitLength() > u && this.subTo(a.ONE.shiftLeft(u - 1), this);
|
|
6150
6150
|
else {
|
|
6151
6151
|
var w = new Array(), R = u & 7;
|
|
@@ -6155,10 +6155,10 @@ var Co = { exports: {} };
|
|
|
6155
6155
|
function st() {
|
|
6156
6156
|
var u = this.t, x = new Array();
|
|
6157
6157
|
x[0] = this.s;
|
|
6158
|
-
var
|
|
6158
|
+
var m = this.DB - u * this.DB % 8, w, R = 0;
|
|
6159
6159
|
if (u-- > 0)
|
|
6160
|
-
for (
|
|
6161
|
-
|
|
6160
|
+
for (m < this.DB && (w = this[u] >> m) != (this.s & this.DM) >> m && (x[R++] = w | this.s << this.DB - m); u >= 0; )
|
|
6161
|
+
m < 8 ? (w = (this[u] & (1 << m) - 1) << 8 - m, w |= this[--u] >> (m += this.DB - 8)) : (w = this[u] >> (m -= 8) & 255, m <= 0 && (m += this.DB, --u)), w & 128 && (w |= -256), R == 0 && (this.s & 128) != (w & 128) && ++R, (R > 0 || w != this.s) && (x[R++] = w);
|
|
6162
6162
|
return x;
|
|
6163
6163
|
}
|
|
6164
6164
|
function e0(u) {
|
|
@@ -6170,20 +6170,20 @@ var Co = { exports: {} };
|
|
|
6170
6170
|
function O0(u) {
|
|
6171
6171
|
return this.compareTo(u) > 0 ? this : u;
|
|
6172
6172
|
}
|
|
6173
|
-
function Dt(u, x,
|
|
6173
|
+
function Dt(u, x, m) {
|
|
6174
6174
|
var w, R, H = Math.min(u.t, this.t);
|
|
6175
6175
|
for (w = 0; w < H; ++w)
|
|
6176
|
-
|
|
6176
|
+
m[w] = x(this[w], u[w]);
|
|
6177
6177
|
if (u.t < this.t) {
|
|
6178
6178
|
for (R = u.s & this.DM, w = H; w < this.t; ++w)
|
|
6179
|
-
|
|
6180
|
-
|
|
6179
|
+
m[w] = x(this[w], R);
|
|
6180
|
+
m.t = this.t;
|
|
6181
6181
|
} else {
|
|
6182
6182
|
for (R = this.s & this.DM, w = H; w < u.t; ++w)
|
|
6183
|
-
|
|
6184
|
-
|
|
6183
|
+
m[w] = x(R, u[w]);
|
|
6184
|
+
m.t = u.t;
|
|
6185
6185
|
}
|
|
6186
|
-
|
|
6186
|
+
m.s = x(this.s, u.s), m.clamp();
|
|
6187
6187
|
}
|
|
6188
6188
|
function Vt(u, x) {
|
|
6189
6189
|
return u & x;
|
|
@@ -6244,8 +6244,8 @@ var Co = { exports: {} };
|
|
|
6244
6244
|
return x;
|
|
6245
6245
|
}
|
|
6246
6246
|
function N0() {
|
|
6247
|
-
for (var u = 0, x = this.s & this.DM,
|
|
6248
|
-
u += On(this[
|
|
6247
|
+
for (var u = 0, x = this.s & this.DM, m = 0; m < this.t; ++m)
|
|
6248
|
+
u += On(this[m] ^ x);
|
|
6249
6249
|
return u;
|
|
6250
6250
|
}
|
|
6251
6251
|
function zn(u) {
|
|
@@ -6253,8 +6253,8 @@ var Co = { exports: {} };
|
|
|
6253
6253
|
return x >= this.t ? this.s != 0 : (this[x] & 1 << u % this.DB) != 0;
|
|
6254
6254
|
}
|
|
6255
6255
|
function Ln(u, x) {
|
|
6256
|
-
var
|
|
6257
|
-
return this.bitwiseTo(
|
|
6256
|
+
var m = a.ONE.shiftLeft(u);
|
|
6257
|
+
return this.bitwiseTo(m, x, m), m;
|
|
6258
6258
|
}
|
|
6259
6259
|
function V0(u) {
|
|
6260
6260
|
return this.changeBit(u, t0);
|
|
@@ -6266,18 +6266,18 @@ var Co = { exports: {} };
|
|
|
6266
6266
|
return this.changeBit(u, L0);
|
|
6267
6267
|
}
|
|
6268
6268
|
function Re(u, x) {
|
|
6269
|
-
for (var
|
|
6270
|
-
w += this[
|
|
6269
|
+
for (var m = 0, w = 0, R = Math.min(u.t, this.t); m < R; )
|
|
6270
|
+
w += this[m] + u[m], x[m++] = w & this.DM, w >>= this.DB;
|
|
6271
6271
|
if (u.t < this.t) {
|
|
6272
|
-
for (w += u.s;
|
|
6273
|
-
w += this[
|
|
6272
|
+
for (w += u.s; m < this.t; )
|
|
6273
|
+
w += this[m], x[m++] = w & this.DM, w >>= this.DB;
|
|
6274
6274
|
w += this.s;
|
|
6275
6275
|
} else {
|
|
6276
|
-
for (w += this.s;
|
|
6277
|
-
w += u[
|
|
6276
|
+
for (w += this.s; m < u.t; )
|
|
6277
|
+
w += u[m], x[m++] = w & this.DM, w >>= this.DB;
|
|
6278
6278
|
w += u.s;
|
|
6279
6279
|
}
|
|
6280
|
-
x.s = w < 0 ? -1 : 0, w > 0 ? x[
|
|
6280
|
+
x.s = w < 0 ? -1 : 0, w > 0 ? x[m++] = w : w < -1 && (x[m++] = this.DV + w), x.t = m, x.clamp();
|
|
6281
6281
|
}
|
|
6282
6282
|
function lt(u) {
|
|
6283
6283
|
var x = o();
|
|
@@ -6304,8 +6304,8 @@ var Co = { exports: {} };
|
|
|
6304
6304
|
return this.divRemTo(u, null, x), x;
|
|
6305
6305
|
}
|
|
6306
6306
|
function Vs(u) {
|
|
6307
|
-
var x = o(),
|
|
6308
|
-
return this.divRemTo(u, x,
|
|
6307
|
+
var x = o(), m = o();
|
|
6308
|
+
return this.divRemTo(u, x, m), new Array(x, m);
|
|
6309
6309
|
}
|
|
6310
6310
|
function qs(u) {
|
|
6311
6311
|
this[this.t] = this.am(0, u - 1, this, 0, 0, this.t), ++this.t, this.clamp();
|
|
@@ -6323,8 +6323,8 @@ var Co = { exports: {} };
|
|
|
6323
6323
|
function pi(u) {
|
|
6324
6324
|
return u;
|
|
6325
6325
|
}
|
|
6326
|
-
function Ys(u, x,
|
|
6327
|
-
u.multiplyTo(x,
|
|
6326
|
+
function Ys(u, x, m) {
|
|
6327
|
+
u.multiplyTo(x, m);
|
|
6328
6328
|
}
|
|
6329
6329
|
function Ks(u, x) {
|
|
6330
6330
|
u.squareTo(x);
|
|
@@ -6333,25 +6333,25 @@ var Co = { exports: {} };
|
|
|
6333
6333
|
function Ws(u) {
|
|
6334
6334
|
return this.exp(u, new m0());
|
|
6335
6335
|
}
|
|
6336
|
-
function js(u, x,
|
|
6336
|
+
function js(u, x, m) {
|
|
6337
6337
|
var w = Math.min(this.t + u.t, x);
|
|
6338
|
-
for (
|
|
6339
|
-
|
|
6338
|
+
for (m.s = 0, m.t = w; w > 0; )
|
|
6339
|
+
m[--w] = 0;
|
|
6340
6340
|
var R;
|
|
6341
|
-
for (R =
|
|
6342
|
-
|
|
6341
|
+
for (R = m.t - this.t; w < R; ++w)
|
|
6342
|
+
m[w + this.t] = this.am(0, u[w], m, w, 0, this.t);
|
|
6343
6343
|
for (R = Math.min(u.t, x); w < R; ++w)
|
|
6344
|
-
this.am(0, u[w],
|
|
6345
|
-
|
|
6344
|
+
this.am(0, u[w], m, w, 0, x - w);
|
|
6345
|
+
m.clamp();
|
|
6346
6346
|
}
|
|
6347
|
-
function Gs(u, x,
|
|
6347
|
+
function Gs(u, x, m) {
|
|
6348
6348
|
--x;
|
|
6349
|
-
var w =
|
|
6350
|
-
for (
|
|
6351
|
-
|
|
6349
|
+
var w = m.t = this.t + u.t - x;
|
|
6350
|
+
for (m.s = 0; --w >= 0; )
|
|
6351
|
+
m[w] = 0;
|
|
6352
6352
|
for (w = Math.max(x - this.t, 0); w < u.t; ++w)
|
|
6353
|
-
|
|
6354
|
-
|
|
6353
|
+
m[this.t + w - x] = this.am(x - w, u[w], m, 0, 0, this.t + w - x);
|
|
6354
|
+
m.clamp(), m.drShiftTo(1, m);
|
|
6355
6355
|
}
|
|
6356
6356
|
function qt(u) {
|
|
6357
6357
|
this.r2 = o(), this.q3 = o(), a.ONE.dlShiftTo(2 * u.t, this.r2), this.mu = this.r2.divide(u), this.m = u;
|
|
@@ -6376,15 +6376,15 @@ var Co = { exports: {} };
|
|
|
6376
6376
|
function Qs(u, x) {
|
|
6377
6377
|
u.squareTo(x), this.reduce(x);
|
|
6378
6378
|
}
|
|
6379
|
-
function el(u, x,
|
|
6380
|
-
u.multiplyTo(x,
|
|
6379
|
+
function el(u, x, m) {
|
|
6380
|
+
u.multiplyTo(x, m), this.reduce(m);
|
|
6381
6381
|
}
|
|
6382
6382
|
qt.prototype.convert = Xs, qt.prototype.revert = Zs, qt.prototype.reduce = Js, qt.prototype.mulTo = el, qt.prototype.sqrTo = Qs;
|
|
6383
6383
|
function tl(u, x) {
|
|
6384
|
-
var
|
|
6385
|
-
if (
|
|
6384
|
+
var m = u.bitLength(), w, R = E(1), H;
|
|
6385
|
+
if (m <= 0)
|
|
6386
6386
|
return R;
|
|
6387
|
-
|
|
6387
|
+
m < 18 ? w = 1 : m < 48 ? w = 3 : m < 144 ? w = 4 : m < 768 ? w = 5 : w = 6, m < 8 ? H = new O(x) : x.isEven() ? H = new qt(x) : H = new ge(x);
|
|
6388
6388
|
var U = new Array(), K = 3, pe = w - 1, _e = (1 << w) - 1;
|
|
6389
6389
|
if (U[1] = H.convert(this), w > 1) {
|
|
6390
6390
|
var Xe = o();
|
|
@@ -6392,56 +6392,56 @@ var Co = { exports: {} };
|
|
|
6392
6392
|
U[K] = o(), H.mulTo(Xe, U[K - 2], U[K]), K += 2;
|
|
6393
6393
|
}
|
|
6394
6394
|
var Ke = u.t - 1, yt, K0 = !0, tt = o(), nt;
|
|
6395
|
-
for (
|
|
6396
|
-
for (
|
|
6395
|
+
for (m = B(u[Ke]) - 1; Ke >= 0; ) {
|
|
6396
|
+
for (m >= pe ? yt = u[Ke] >> m - pe & _e : (yt = (u[Ke] & (1 << m + 1) - 1) << pe - m, Ke > 0 && (yt |= u[Ke - 1] >> this.DB + m - pe)), K = w; !(yt & 1); )
|
|
6397
6397
|
yt >>= 1, --K;
|
|
6398
|
-
if ((
|
|
6398
|
+
if ((m -= K) < 0 && (m += this.DB, --Ke), K0)
|
|
6399
6399
|
U[yt].copyTo(R), K0 = !1;
|
|
6400
6400
|
else {
|
|
6401
6401
|
for (; K > 1; )
|
|
6402
6402
|
H.sqrTo(R, tt), H.sqrTo(tt, R), K -= 2;
|
|
6403
6403
|
K > 0 ? H.sqrTo(R, tt) : (nt = R, R = tt, tt = nt), H.mulTo(tt, U[yt], R);
|
|
6404
6404
|
}
|
|
6405
|
-
for (; Ke >= 0 && !(u[Ke] & 1 <<
|
|
6406
|
-
H.sqrTo(R, tt), nt = R, R = tt, tt = nt, --
|
|
6405
|
+
for (; Ke >= 0 && !(u[Ke] & 1 << m); )
|
|
6406
|
+
H.sqrTo(R, tt), nt = R, R = tt, tt = nt, --m < 0 && (m = this.DB - 1, --Ke);
|
|
6407
6407
|
}
|
|
6408
6408
|
return H.revert(R);
|
|
6409
6409
|
}
|
|
6410
6410
|
function nl(u) {
|
|
6411
|
-
var x = this.s < 0 ? this.negate() : this.clone(),
|
|
6412
|
-
if (x.compareTo(
|
|
6411
|
+
var x = this.s < 0 ? this.negate() : this.clone(), m = u.s < 0 ? u.negate() : u.clone();
|
|
6412
|
+
if (x.compareTo(m) < 0) {
|
|
6413
6413
|
var w = x;
|
|
6414
|
-
x =
|
|
6414
|
+
x = m, m = w;
|
|
6415
6415
|
}
|
|
6416
|
-
var R = x.getLowestSetBit(), H =
|
|
6416
|
+
var R = x.getLowestSetBit(), H = m.getLowestSetBit();
|
|
6417
6417
|
if (H < 0)
|
|
6418
6418
|
return x;
|
|
6419
|
-
for (R < H && (H = R), H > 0 && (x.rShiftTo(H, x),
|
|
6420
|
-
(R = x.getLowestSetBit()) > 0 && x.rShiftTo(R, x), (R =
|
|
6421
|
-
return H > 0 &&
|
|
6419
|
+
for (R < H && (H = R), H > 0 && (x.rShiftTo(H, x), m.rShiftTo(H, m)); x.signum() > 0; )
|
|
6420
|
+
(R = x.getLowestSetBit()) > 0 && x.rShiftTo(R, x), (R = m.getLowestSetBit()) > 0 && m.rShiftTo(R, m), x.compareTo(m) >= 0 ? (x.subTo(m, x), x.rShiftTo(1, x)) : (m.subTo(x, m), m.rShiftTo(1, m));
|
|
6421
|
+
return H > 0 && m.lShiftTo(H, m), m;
|
|
6422
6422
|
}
|
|
6423
6423
|
function rl(u) {
|
|
6424
6424
|
if (u <= 0)
|
|
6425
6425
|
return 0;
|
|
6426
|
-
var x = this.DV % u,
|
|
6426
|
+
var x = this.DV % u, m = this.s < 0 ? u - 1 : 0;
|
|
6427
6427
|
if (this.t > 0)
|
|
6428
6428
|
if (x == 0)
|
|
6429
|
-
|
|
6429
|
+
m = this[0] % u;
|
|
6430
6430
|
else
|
|
6431
6431
|
for (var w = this.t - 1; w >= 0; --w)
|
|
6432
|
-
|
|
6433
|
-
return
|
|
6432
|
+
m = (x * m + this[w]) % u;
|
|
6433
|
+
return m;
|
|
6434
6434
|
}
|
|
6435
6435
|
function il(u) {
|
|
6436
6436
|
var x = u.isEven();
|
|
6437
6437
|
if (this.isEven() && x || u.signum() == 0)
|
|
6438
6438
|
return a.ZERO;
|
|
6439
|
-
for (var
|
|
6440
|
-
for (;
|
|
6441
|
-
|
|
6439
|
+
for (var m = u.clone(), w = this.clone(), R = E(1), H = E(0), U = E(0), K = E(1); m.signum() != 0; ) {
|
|
6440
|
+
for (; m.isEven(); )
|
|
6441
|
+
m.rShiftTo(1, m), x ? ((!R.isEven() || !H.isEven()) && (R.addTo(this, R), H.subTo(u, H)), R.rShiftTo(1, R)) : H.isEven() || H.subTo(u, H), H.rShiftTo(1, H);
|
|
6442
6442
|
for (; w.isEven(); )
|
|
6443
6443
|
w.rShiftTo(1, w), x ? ((!U.isEven() || !K.isEven()) && (U.addTo(this, U), K.subTo(u, K)), U.rShiftTo(1, U)) : K.isEven() || K.subTo(u, K), K.rShiftTo(1, K);
|
|
6444
|
-
|
|
6444
|
+
m.compareTo(w) >= 0 ? (m.subTo(w, m), x && R.subTo(U, R), H.subTo(K, H)) : (w.subTo(m, w), x && U.subTo(R, U), K.subTo(H, K));
|
|
6445
6445
|
}
|
|
6446
6446
|
if (w.compareTo(a.ONE) != 0)
|
|
6447
6447
|
return a.ZERO;
|
|
@@ -6455,35 +6455,35 @@ var Co = { exports: {} };
|
|
|
6455
6455
|
}
|
|
6456
6456
|
var Oe = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997], al = (1 << 26) / Oe[Oe.length - 1];
|
|
6457
6457
|
function ol(u) {
|
|
6458
|
-
var x,
|
|
6459
|
-
if (
|
|
6458
|
+
var x, m = this.abs();
|
|
6459
|
+
if (m.t == 1 && m[0] <= Oe[Oe.length - 1]) {
|
|
6460
6460
|
for (x = 0; x < Oe.length; ++x)
|
|
6461
|
-
if (
|
|
6461
|
+
if (m[0] == Oe[x])
|
|
6462
6462
|
return !0;
|
|
6463
6463
|
return !1;
|
|
6464
6464
|
}
|
|
6465
|
-
if (
|
|
6465
|
+
if (m.isEven())
|
|
6466
6466
|
return !1;
|
|
6467
6467
|
for (x = 1; x < Oe.length; ) {
|
|
6468
6468
|
for (var w = Oe[x], R = x + 1; R < Oe.length && w < al; )
|
|
6469
6469
|
w *= Oe[R++];
|
|
6470
|
-
for (w =
|
|
6470
|
+
for (w = m.modInt(w); x < R; )
|
|
6471
6471
|
if (w % Oe[x++] == 0)
|
|
6472
6472
|
return !1;
|
|
6473
6473
|
}
|
|
6474
|
-
return
|
|
6474
|
+
return m.millerRabin(u);
|
|
6475
6475
|
}
|
|
6476
6476
|
function sl(u) {
|
|
6477
|
-
var x = this.subtract(a.ONE),
|
|
6478
|
-
if (
|
|
6477
|
+
var x = this.subtract(a.ONE), m = x.getLowestSetBit();
|
|
6478
|
+
if (m <= 0)
|
|
6479
6479
|
return !1;
|
|
6480
|
-
var w = x.shiftRight(
|
|
6480
|
+
var w = x.shiftRight(m);
|
|
6481
6481
|
u = u + 1 >> 1, u > Oe.length && (u = Oe.length);
|
|
6482
6482
|
for (var R = o(), H = 0; H < u; ++H) {
|
|
6483
6483
|
R.fromInt(Oe[Math.floor(Math.random() * Oe.length)]);
|
|
6484
6484
|
var U = R.modPow(w, this);
|
|
6485
6485
|
if (U.compareTo(a.ONE) != 0 && U.compareTo(x) != 0) {
|
|
6486
|
-
for (var K = 1; K++ <
|
|
6486
|
+
for (var K = 1; K++ < m && U.compareTo(x) != 0; )
|
|
6487
6487
|
if (U = U.modPowInt(2, this), U.compareTo(a.ONE) == 0)
|
|
6488
6488
|
return !1;
|
|
6489
6489
|
if (U.compareTo(x) != 0)
|
|
@@ -6538,11 +6538,11 @@ var Co = { exports: {} };
|
|
|
6538
6538
|
this.i = 0, this.j = 0, this.S = new Array();
|
|
6539
6539
|
}
|
|
6540
6540
|
function fl(u) {
|
|
6541
|
-
var x,
|
|
6541
|
+
var x, m, w;
|
|
6542
6542
|
for (x = 0; x < 256; ++x)
|
|
6543
6543
|
this.S[x] = x;
|
|
6544
|
-
for (
|
|
6545
|
-
|
|
6544
|
+
for (m = 0, x = 0; x < 256; ++x)
|
|
6545
|
+
m = m + this.S[x] + u[x % u.length] & 255, w = this.S[x], this.S[x] = this.S[m], this.S[m] = w;
|
|
6546
6546
|
this.i = 0, this.j = 0;
|
|
6547
6547
|
}
|
|
6548
6548
|
function dl() {
|
|
@@ -6636,8 +6636,8 @@ var Jc = {
|
|
|
6636
6636
|
* 解析 ASN.1 der,针对 sm2 验签
|
|
6637
6637
|
*/
|
|
6638
6638
|
decodeDer(e) {
|
|
6639
|
-
const n = Fr(e, 0), r = Fr(e, n), t = na(e, n), i = e.substr(r, t * 2), a = r + i.length, o = Fr(e, a),
|
|
6640
|
-
return { r:
|
|
6639
|
+
const n = Fr(e, 0), r = Fr(e, n), t = na(e, n), i = e.substr(r, t * 2), a = r + i.length, o = Fr(e, a), l = na(e, a), c = e.substr(o, l * 2), s = new s0(i, 16), f = new s0(c, 16);
|
|
6640
|
+
return { r: s, s: f };
|
|
6641
6641
|
}
|
|
6642
6642
|
};
|
|
6643
6643
|
const { BigInteger: ze } = wn, ra = new ze("2"), ia = new ze("3");
|
|
@@ -6747,10 +6747,10 @@ class Ot {
|
|
|
6747
6747
|
return n;
|
|
6748
6748
|
if (n.isInfinity())
|
|
6749
6749
|
return this;
|
|
6750
|
-
const r = this.x.toBigInteger(), t = this.y.toBigInteger(), i = this.z, a = n.x.toBigInteger(), o = n.y.toBigInteger(),
|
|
6750
|
+
const r = this.x.toBigInteger(), t = this.y.toBigInteger(), i = this.z, a = n.x.toBigInteger(), o = n.y.toBigInteger(), l = n.z, c = this.curve.q, s = r.multiply(l).mod(c), f = a.multiply(i).mod(c), v = s.subtract(f), h = t.multiply(l).mod(c), g = o.multiply(i).mod(c), d = h.subtract(g);
|
|
6751
6751
|
if (ze.ZERO.equals(v))
|
|
6752
6752
|
return ze.ZERO.equals(d) ? this.twice() : this.curve.infinity;
|
|
6753
|
-
const
|
|
6753
|
+
const p = s.add(f), y = i.multiply(l).mod(c), _ = v.square().mod(c), b = v.multiply(_).mod(c), C = y.multiply(d.square()).subtract(p.multiply(_)).mod(c), E = v.multiply(C).mod(c), T = d.multiply(_.multiply(s).subtract(C)).subtract(h.multiply(b)).mod(c), A = b.multiply(y).mod(c);
|
|
6754
6754
|
return new Ot(this.curve, this.curve.fromBigInteger(E), this.curve.fromBigInteger(T), A);
|
|
6755
6755
|
}
|
|
6756
6756
|
/**
|
|
@@ -6773,7 +6773,7 @@ class Ot {
|
|
|
6773
6773
|
return this;
|
|
6774
6774
|
if (!this.y.toBigInteger().signum())
|
|
6775
6775
|
return this.curve.infinity;
|
|
6776
|
-
const n = this.x.toBigInteger(), r = this.y.toBigInteger(), t = this.z, i = this.curve.q, a = this.curve.a.toBigInteger(), o = n.square().multiply(ia).add(a.multiply(t.square())).mod(i),
|
|
6776
|
+
const n = this.x.toBigInteger(), r = this.y.toBigInteger(), t = this.z, i = this.curve.q, a = this.curve.a.toBigInteger(), o = n.square().multiply(ia).add(a.multiply(t.square())).mod(i), l = r.shiftLeft(1).multiply(t).mod(i), c = r.square().mod(i), s = c.multiply(n).multiply(t).mod(i), f = l.square().mod(i), v = o.square().subtract(s.shiftLeft(3)).mod(i), h = l.multiply(v).mod(i), g = o.multiply(s.shiftLeft(2).subtract(v)).subtract(f.shiftLeft(1).multiply(c)).mod(i), d = l.multiply(f).mod(i);
|
|
6777
6777
|
return new Ot(this.curve, this.curve.fromBigInteger(h), this.curve.fromBigInteger(g), d);
|
|
6778
6778
|
}
|
|
6779
6779
|
/**
|
|
@@ -6788,8 +6788,8 @@ class Ot {
|
|
|
6788
6788
|
let i = this;
|
|
6789
6789
|
for (let a = r.bitLength() - 2; a > 0; a--) {
|
|
6790
6790
|
i = i.twice();
|
|
6791
|
-
const o = r.testBit(a),
|
|
6792
|
-
o !==
|
|
6791
|
+
const o = r.testBit(a), l = n.testBit(a);
|
|
6792
|
+
o !== l && (i = i.add(o ? this : t));
|
|
6793
6793
|
}
|
|
6794
6794
|
return i;
|
|
6795
6795
|
}
|
|
@@ -6846,12 +6846,12 @@ function au() {
|
|
|
6846
6846
|
return a0;
|
|
6847
6847
|
}
|
|
6848
6848
|
function Bo() {
|
|
6849
|
-
const e = new at("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF", 16), n = new at("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC", 16), r = new at("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93", 16), t = new nu(e, n, r), i = "32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7", a = "BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0", o = t.decodePointHex("04" + i + a),
|
|
6850
|
-
return { curve: t, G: o, n:
|
|
6849
|
+
const e = new at("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF", 16), n = new at("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC", 16), r = new at("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93", 16), t = new nu(e, n, r), i = "32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7", a = "BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0", o = t.decodePointHex("04" + i + a), l = new at("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123", 16);
|
|
6850
|
+
return { curve: t, G: o, n: l };
|
|
6851
6851
|
}
|
|
6852
6852
|
function ou(e, n, r) {
|
|
6853
|
-
const i = (e ? new at(e, n, r) : new at(aa.bitLength(), ru)).mod(aa.subtract(at.ONE)).add(at.ONE), a = w0(i.toString(16), 64), o = iu.multiply(i),
|
|
6854
|
-
return { privateKey: a, publicKey:
|
|
6853
|
+
const i = (e ? new at(e, n, r) : new at(aa.bitLength(), ru)).mod(aa.subtract(at.ONE)).add(at.ONE), a = w0(i.toString(16), 64), o = iu.multiply(i), l = w0(o.getX().toBigInteger().toString(16), 64), c = w0(o.getY().toBigInteger().toString(16), 64), s = "04" + l + c;
|
|
6854
|
+
return { privateKey: a, publicKey: s };
|
|
6855
6855
|
}
|
|
6856
6856
|
function su(e) {
|
|
6857
6857
|
if (e.length !== 130)
|
|
@@ -6961,8 +6961,8 @@ function ln(e) {
|
|
|
6961
6961
|
i[f] = parseInt(n.substr(v), 2), n = n.substr(0, v);
|
|
6962
6962
|
} else
|
|
6963
6963
|
n.length > 0 && (i[f] = parseInt(n, 2), n = "");
|
|
6964
|
-
const a = new Uint8Array([...e, 128, ...t, ...i]), o = new DataView(a.buffer, 0),
|
|
6965
|
-
for (let f = 0; f <
|
|
6964
|
+
const a = new Uint8Array([...e, 128, ...t, ...i]), o = new DataView(a.buffer, 0), l = a.length / 64, c = new Uint32Array([1937774191, 1226093241, 388252375, 3666478592, 2842636476, 372324522, 3817729613, 2969243214]);
|
|
6965
|
+
for (let f = 0; f < l; f++) {
|
|
6966
6966
|
rt.fill(0), Ar.fill(0);
|
|
6967
6967
|
const v = 16 * f;
|
|
6968
6968
|
for (let B = 0; B < 16; B++)
|
|
@@ -6972,17 +6972,17 @@ function ln(e) {
|
|
|
6972
6972
|
for (let B = 0; B < 64; B++)
|
|
6973
6973
|
Ar[B] = rt[B] ^ rt[B + 4];
|
|
6974
6974
|
const h = 2043430169, g = 2055708042;
|
|
6975
|
-
let d = c[0],
|
|
6975
|
+
let d = c[0], p = c[1], y = c[2], _ = c[3], b = c[4], C = c[5], E = c[6], T = c[7], A, S, k, L, F;
|
|
6976
6976
|
for (let B = 0; B < 64; B++)
|
|
6977
|
-
F = B >= 0 && B <= 15 ? h : g, A = Ze(Ze(d, 12) + b + Ze(F, B), 7), S = A ^ Ze(d, 12), k = (B >= 0 && B <= 15 ? d ^
|
|
6978
|
-
c[0] ^= d, c[1] ^=
|
|
6977
|
+
F = B >= 0 && B <= 15 ? h : g, A = Ze(Ze(d, 12) + b + Ze(F, B), 7), S = A ^ Ze(d, 12), k = (B >= 0 && B <= 15 ? d ^ p ^ y : d & p | d & y | p & y) + _ + S + Ar[B], L = (B >= 0 && B <= 15 ? b ^ C ^ E : b & C | ~b & E) + T + A + rt[B], _ = y, y = Ze(p, 9), p = d, d = k, T = E, E = Ze(C, 19), C = b, b = pu(L);
|
|
6978
|
+
c[0] ^= d, c[1] ^= p, c[2] ^= y, c[3] ^= _, c[4] ^= b, c[5] ^= C, c[6] ^= E, c[7] ^= T;
|
|
6979
6979
|
}
|
|
6980
|
-
const
|
|
6980
|
+
const s = [];
|
|
6981
6981
|
for (let f = 0, v = c.length; f < v; f++) {
|
|
6982
6982
|
const h = c[f];
|
|
6983
|
-
|
|
6983
|
+
s.push((h & 4278190080) >>> 24, (h & 16711680) >>> 16, (h & 65280) >>> 8, h & 255);
|
|
6984
6984
|
}
|
|
6985
|
-
return
|
|
6985
|
+
return s;
|
|
6986
6986
|
}
|
|
6987
6987
|
const T0 = 64, wo = new Uint8Array(T0), Do = new Uint8Array(T0);
|
|
6988
6988
|
for (let e = 0; e < T0; e++)
|
|
@@ -7003,16 +7003,16 @@ function bu(e, n, r = 1) {
|
|
|
7003
7003
|
const t = Q.generateKeyPairHex(), i = new ke(t.privateKey, 16);
|
|
7004
7004
|
let a = t.publicKey;
|
|
7005
7005
|
a.length > 128 && (a = a.substr(a.length - 128));
|
|
7006
|
-
const o = n.multiply(i),
|
|
7006
|
+
const o = n.multiply(i), l = Q.hexToArray(Q.leftPad(o.getX().toBigInteger().toRadix(16), 64)), c = Q.hexToArray(Q.leftPad(o.getY().toBigInteger().toRadix(16), 64)), s = Q.arrayToHex(l0([].concat(l, e, c)));
|
|
7007
7007
|
let f = 1, v = 0, h = [];
|
|
7008
|
-
const g = [].concat(
|
|
7008
|
+
const g = [].concat(l, c), d = () => {
|
|
7009
7009
|
h = l0([...g, f >> 24 & 255, f >> 16 & 255, f >> 8 & 255, f & 255]), f++, v = 0;
|
|
7010
7010
|
};
|
|
7011
7011
|
d();
|
|
7012
7012
|
for (let y = 0, _ = e.length; y < _; y++)
|
|
7013
7013
|
v === h.length && d(), e[y] ^= h[v++] & 255;
|
|
7014
|
-
const
|
|
7015
|
-
return r === To ? a +
|
|
7014
|
+
const p = Q.arrayToHex(e);
|
|
7015
|
+
return r === To ? a + p + s : a + s + p;
|
|
7016
7016
|
}
|
|
7017
7017
|
function Cu(e, n, r = 1, {
|
|
7018
7018
|
output: t = "string"
|
|
@@ -7020,18 +7020,18 @@ function Cu(e, n, r = 1, {
|
|
|
7020
7020
|
n = new ke(n, 16);
|
|
7021
7021
|
let i = e.substr(128, 64), a = e.substr(128 + 64);
|
|
7022
7022
|
r === To && (i = e.substr(e.length - 64), a = e.substr(128, e.length - 128 - 64));
|
|
7023
|
-
const o = Q.hexToArray(a),
|
|
7024
|
-
if (!
|
|
7023
|
+
const o = Q.hexToArray(a), l = Q.getGlobalCurve().decodePointHex("04" + e.substr(0, 128));
|
|
7024
|
+
if (!l || !Q.verifyPublicKey("04" + e.substr(0, 128)))
|
|
7025
7025
|
return t === "array" ? [] : "";
|
|
7026
|
-
const c =
|
|
7026
|
+
const c = l.multiply(n), s = Q.hexToArray(Q.leftPad(c.getX().toBigInteger().toRadix(16), 64)), f = Q.hexToArray(Q.leftPad(c.getY().toBigInteger().toRadix(16), 64));
|
|
7027
7027
|
let v = 1, h = 0, g = [];
|
|
7028
|
-
const d = [].concat(
|
|
7028
|
+
const d = [].concat(s, f), p = () => {
|
|
7029
7029
|
g = l0([...d, v >> 24 & 255, v >> 16 & 255, v >> 8 & 255, v & 255]), v++, h = 0;
|
|
7030
7030
|
};
|
|
7031
|
-
|
|
7031
|
+
p();
|
|
7032
7032
|
for (let _ = 0, b = o.length; _ < b; _++)
|
|
7033
|
-
h === g.length &&
|
|
7034
|
-
return Q.arrayToHex(l0([].concat(
|
|
7033
|
+
h === g.length && p(), o[_] ^= g[h++] & 255;
|
|
7034
|
+
return Q.arrayToHex(l0([].concat(s, o, f))) === i.toLowerCase() ? t === "array" ? o : Q.arrayToUtf8(o) : t === "array" ? [] : "";
|
|
7035
7035
|
}
|
|
7036
7036
|
function Eu(e, n, {
|
|
7037
7037
|
pointPool: r,
|
|
@@ -7040,14 +7040,14 @@ function Eu(e, n, {
|
|
|
7040
7040
|
publicKey: a,
|
|
7041
7041
|
userId: o
|
|
7042
7042
|
} = {}) {
|
|
7043
|
-
let
|
|
7044
|
-
i && (a = a || ko(n),
|
|
7045
|
-
const c = new ke(n, 16),
|
|
7043
|
+
let l = typeof e == "string" ? Q.utf8ToHex(e) : Q.arrayToHex(e);
|
|
7044
|
+
i && (a = a || ko(n), l = So(l, a, o));
|
|
7045
|
+
const c = new ke(n, 16), s = new ke(l, 16);
|
|
7046
7046
|
let f = null, v = null, h = null;
|
|
7047
7047
|
do {
|
|
7048
7048
|
do {
|
|
7049
7049
|
let g;
|
|
7050
|
-
r && r.length ? g = r.pop() : g = Io(), f = g.k, v =
|
|
7050
|
+
r && r.length ? g = r.pop() : g = Io(), f = g.k, v = s.add(g.x1).mod(Wt);
|
|
7051
7051
|
} while (v.equals(ke.ZERO) || v.add(f).equals(Wt));
|
|
7052
7052
|
h = c.add(ke.ONE).modInverse(Wt).multiply(f.subtract(v.multiply(c))).mod(Wt);
|
|
7053
7053
|
} while (h.equals(ke.ZERO));
|
|
@@ -7056,37 +7056,37 @@ function Eu(e, n, {
|
|
|
7056
7056
|
function _u(e, n, r, { der: t, hash: i = !0, userId: a } = {}) {
|
|
7057
7057
|
let o = typeof e == "string" ? Q.utf8ToHex(e) : Q.arrayToHex(e);
|
|
7058
7058
|
i && (o = So(o, r, a));
|
|
7059
|
-
let
|
|
7059
|
+
let l, c;
|
|
7060
7060
|
if (t) {
|
|
7061
|
-
const
|
|
7062
|
-
|
|
7061
|
+
const p = yu(n);
|
|
7062
|
+
l = p.r, c = p.s;
|
|
7063
7063
|
} else
|
|
7064
|
-
|
|
7065
|
-
const
|
|
7066
|
-
if (
|
|
7064
|
+
l = new ke(n.substring(0, 64), 16), c = new ke(n.substring(64), 16);
|
|
7065
|
+
const s = Wt.subtract(ke.ONE);
|
|
7066
|
+
if (l.compareTo(ke.ONE) < 0 || l.compareTo(s) > 0 || c.compareTo(ke.ONE) < 0 || c.compareTo(s) > 0)
|
|
7067
7067
|
return !1;
|
|
7068
7068
|
const f = Ao.decodePointHex(r);
|
|
7069
7069
|
if (!f || !Q.verifyPublicKey(r))
|
|
7070
7070
|
return !1;
|
|
7071
|
-
const v = new ke(o, 16), h =
|
|
7071
|
+
const v = new ke(o, 16), h = l.add(c).mod(Wt);
|
|
7072
7072
|
if (h.equals(ke.ZERO))
|
|
7073
7073
|
return !1;
|
|
7074
7074
|
const g = Kt.multiply(c).add(f.multiply(h)), d = v.add(g.getX().toBigInteger()).mod(Wt);
|
|
7075
|
-
return
|
|
7075
|
+
return l.equals(d);
|
|
7076
7076
|
}
|
|
7077
7077
|
function So(e, n, r = "1234567812345678") {
|
|
7078
7078
|
r = Q.utf8ToHex(r);
|
|
7079
7079
|
const t = Q.leftPad(Kt.curve.a.toBigInteger().toRadix(16), 64), i = Q.leftPad(Kt.curve.b.toBigInteger().toRadix(16), 64), a = Q.leftPad(Kt.getX().toBigInteger().toRadix(16), 64), o = Q.leftPad(Kt.getY().toBigInteger().toRadix(16), 64);
|
|
7080
|
-
let
|
|
7080
|
+
let l, c;
|
|
7081
7081
|
if (n.length === 128)
|
|
7082
|
-
|
|
7082
|
+
l = n.substr(0, 64), c = n.substr(64, 64);
|
|
7083
7083
|
else {
|
|
7084
7084
|
const h = Kt.curve.decodePointHex(n);
|
|
7085
|
-
|
|
7085
|
+
l = Q.leftPad(h.getX().toBigInteger().toRadix(16), 64), c = Q.leftPad(h.getY().toBigInteger().toRadix(16), 64);
|
|
7086
7086
|
}
|
|
7087
|
-
const
|
|
7088
|
-
|
|
7089
|
-
const v = l0(
|
|
7087
|
+
const s = Q.hexToArray(r + t + i + a + o + l + c), f = r.length * 4;
|
|
7088
|
+
s.unshift(f & 255), s.unshift(f >> 8 & 255);
|
|
7089
|
+
const v = l0(s);
|
|
7090
7090
|
return Q.arrayToHex(l0(v.concat(Q.hexToArray(e))));
|
|
7091
7091
|
}
|
|
7092
7092
|
function ko(e) {
|
|
@@ -7523,19 +7523,19 @@ function la(e, n, r, {
|
|
|
7523
7523
|
for (let g = 0; g < h; g++)
|
|
7524
7524
|
e.push(h);
|
|
7525
7525
|
}
|
|
7526
|
-
const
|
|
7527
|
-
Ou(n,
|
|
7526
|
+
const l = new Array(ku);
|
|
7527
|
+
Ou(n, l, r);
|
|
7528
7528
|
const c = [];
|
|
7529
|
-
let
|
|
7529
|
+
let s = a, f = e.length, v = 0;
|
|
7530
7530
|
for (; f >= Ut; ) {
|
|
7531
7531
|
const h = e.slice(v, v + 16), g = new Array(16);
|
|
7532
7532
|
if (i === "cbc")
|
|
7533
7533
|
for (let d = 0; d < Ut; d++)
|
|
7534
|
-
r !== Tt && (h[d] ^=
|
|
7535
|
-
Ru(h, g,
|
|
7534
|
+
r !== Tt && (h[d] ^= s[d]);
|
|
7535
|
+
Ru(h, g, l);
|
|
7536
7536
|
for (let d = 0; d < Ut; d++)
|
|
7537
|
-
i === "cbc" && r === Tt && (g[d] ^=
|
|
7538
|
-
i === "cbc" && (r !== Tt ?
|
|
7537
|
+
i === "cbc" && r === Tt && (g[d] ^= s[d]), c[v + d] = g[d];
|
|
7538
|
+
i === "cbc" && (r !== Tt ? s = g : s = h), f -= Ut, v += Ut;
|
|
7539
7539
|
}
|
|
7540
7540
|
if ((t === "pkcs#5" || t === "pkcs#7") && r === Tt) {
|
|
7541
7541
|
const h = c.length, g = c[h - 1];
|
|
@@ -7615,8 +7615,8 @@ function Nu(e) {
|
|
|
7615
7615
|
}
|
|
7616
7616
|
let a = [];
|
|
7617
7617
|
for (let o = 0; o < 6; o = o + 2) {
|
|
7618
|
-
let
|
|
7619
|
-
a.push(parseInt("0x" +
|
|
7618
|
+
let l = r.slice(o, o + 2);
|
|
7619
|
+
a.push(parseInt("0x" + l));
|
|
7620
7620
|
}
|
|
7621
7621
|
return a.join(",");
|
|
7622
7622
|
}
|
|
@@ -7655,31 +7655,31 @@ const Ro = {
|
|
|
7655
7655
|
const r = Lo(n);
|
|
7656
7656
|
return {
|
|
7657
7657
|
namespace: r,
|
|
7658
|
-
b: (
|
|
7659
|
-
e: (
|
|
7660
|
-
m: (
|
|
7661
|
-
be: (
|
|
7662
|
-
em: (
|
|
7663
|
-
bm: (
|
|
7664
|
-
bem: (
|
|
7665
|
-
is: (
|
|
7658
|
+
b: (p = "") => Yt(r.value, e, p, "", ""),
|
|
7659
|
+
e: (p) => p ? Yt(r.value, e, "", p, "") : "",
|
|
7660
|
+
m: (p) => p ? Yt(r.value, e, "", "", p) : "",
|
|
7661
|
+
be: (p, y) => p && y ? Yt(r.value, e, p, y, "") : "",
|
|
7662
|
+
em: (p, y) => p && y ? Yt(r.value, e, "", p, y) : "",
|
|
7663
|
+
bm: (p, y) => p && y ? Yt(r.value, e, p, "", y) : "",
|
|
7664
|
+
bem: (p, y, _) => p && y && _ ? Yt(r.value, e, p, y, _) : "",
|
|
7665
|
+
is: (p, ...y) => {
|
|
7666
7666
|
const _ = y.length >= 1 ? y[0] : !0;
|
|
7667
|
-
return
|
|
7667
|
+
return p && _ ? `${Ku}${p}` : "";
|
|
7668
7668
|
},
|
|
7669
|
-
cssVar: (
|
|
7669
|
+
cssVar: (p) => {
|
|
7670
7670
|
const y = {};
|
|
7671
|
-
for (const _ in
|
|
7672
|
-
|
|
7671
|
+
for (const _ in p)
|
|
7672
|
+
p[_] && (y[`--${r.value}-${_}`] = p[_]);
|
|
7673
7673
|
return y;
|
|
7674
7674
|
},
|
|
7675
|
-
cssVarName: (
|
|
7676
|
-
cssVarBlock: (
|
|
7675
|
+
cssVarName: (p) => `--${r.value}-${p}`,
|
|
7676
|
+
cssVarBlock: (p) => {
|
|
7677
7677
|
const y = {};
|
|
7678
|
-
for (const _ in
|
|
7679
|
-
|
|
7678
|
+
for (const _ in p)
|
|
7679
|
+
p[_] && (y[`--${r.value}-${e}-${_}`] = p[_]);
|
|
7680
7680
|
return y;
|
|
7681
7681
|
},
|
|
7682
|
-
cssVarBlockName: (
|
|
7682
|
+
cssVarBlockName: (p) => `--${r.value}-${e}-${p}`
|
|
7683
7683
|
};
|
|
7684
7684
|
};
|
|
7685
7685
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
@@ -7869,9 +7869,9 @@ function Jf(e, n, r) {
|
|
|
7869
7869
|
for (var t = arguments, i = -1, a = xa(t.length - n, 0), o = Array(a); ++i < a; )
|
|
7870
7870
|
o[i] = t[n + i];
|
|
7871
7871
|
i = -1;
|
|
7872
|
-
for (var
|
|
7873
|
-
|
|
7874
|
-
return
|
|
7872
|
+
for (var l = Array(n + 1); ++i < n; )
|
|
7873
|
+
l[i] = t[i];
|
|
7874
|
+
return l[n] = r(o), Rf(e, this, l);
|
|
7875
7875
|
};
|
|
7876
7876
|
}
|
|
7877
7877
|
var Qf = 9007199254740991;
|
|
@@ -8081,8 +8081,8 @@ function Kd(e) {
|
|
|
8081
8081
|
function Ko(e, n, r, t, i) {
|
|
8082
8082
|
var a = -1, o = e.length;
|
|
8083
8083
|
for (r || (r = Kd), i || (i = []); ++a < o; ) {
|
|
8084
|
-
var
|
|
8085
|
-
n > 0 && r(
|
|
8084
|
+
var l = e[a];
|
|
8085
|
+
n > 0 && r(l) ? n > 1 ? Ko(l, n - 1, r, t, i) : Yd(i, l) : t || (i[i.length] = l);
|
|
8086
8086
|
}
|
|
8087
8087
|
return i;
|
|
8088
8088
|
}
|
|
@@ -8123,22 +8123,22 @@ function Jd(e, n, r, t) {
|
|
|
8123
8123
|
if (!vn(e))
|
|
8124
8124
|
return e;
|
|
8125
8125
|
n = An(n, e);
|
|
8126
|
-
for (var i = -1, a = n.length, o = a - 1,
|
|
8127
|
-
var c = oi(n[i]),
|
|
8126
|
+
for (var i = -1, a = n.length, o = a - 1, l = e; l != null && ++i < a; ) {
|
|
8127
|
+
var c = oi(n[i]), s = r;
|
|
8128
8128
|
if (c === "__proto__" || c === "constructor" || c === "prototype")
|
|
8129
8129
|
return e;
|
|
8130
8130
|
if (i != o) {
|
|
8131
|
-
var f =
|
|
8132
|
-
|
|
8131
|
+
var f = l[c];
|
|
8132
|
+
s = t ? t(f, c, l) : void 0, s === void 0 && (s = vn(f) ? f : No(n[i + 1]) ? [] : {});
|
|
8133
8133
|
}
|
|
8134
|
-
Zf(
|
|
8134
|
+
Zf(l, c, s), l = l[c];
|
|
8135
8135
|
}
|
|
8136
8136
|
return e;
|
|
8137
8137
|
}
|
|
8138
8138
|
function Qd(e, n, r) {
|
|
8139
8139
|
for (var t = -1, i = n.length, a = {}; ++t < i; ) {
|
|
8140
|
-
var o = n[t],
|
|
8141
|
-
r(
|
|
8140
|
+
var o = n[t], l = Yo(e, o);
|
|
8141
|
+
r(l, o) && Jd(a, An(o, e), l);
|
|
8142
8142
|
}
|
|
8143
8143
|
return a;
|
|
8144
8144
|
}
|
|
@@ -8197,12 +8197,12 @@ function b0(...e) {
|
|
|
8197
8197
|
Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
|
|
8198
8198
|
const a = [], o = () => {
|
|
8199
8199
|
a.forEach((f) => f()), a.length = 0;
|
|
8200
|
-
},
|
|
8201
|
-
o(), f && a.push(...r.flatMap((h) => t.map((g) =>
|
|
8202
|
-
}, { immediate: !0, flush: "post" }),
|
|
8200
|
+
}, l = (f, v, h, g) => (f.addEventListener(v, h, g), () => f.removeEventListener(v, h, g)), c = qe(() => [Jo(n), Xo(i)], ([f, v]) => {
|
|
8201
|
+
o(), f && a.push(...r.flatMap((h) => t.map((g) => l(f, h, g, v))));
|
|
8202
|
+
}, { immediate: !0, flush: "post" }), s = () => {
|
|
8203
8203
|
c(), o();
|
|
8204
8204
|
};
|
|
8205
|
-
return Zo(
|
|
8205
|
+
return Zo(s), s;
|
|
8206
8206
|
}
|
|
8207
8207
|
function vx(e, n = !1) {
|
|
8208
8208
|
const r = he(), t = () => r.value = !!e();
|
|
@@ -8222,15 +8222,15 @@ var Ca = Object.getOwnPropertySymbols, mx = Object.prototype.hasOwnProperty, gx
|
|
|
8222
8222
|
function bx(e, n, r = {}) {
|
|
8223
8223
|
const t = r, { window: i = Qo } = t, a = yx(t, ["window"]);
|
|
8224
8224
|
let o;
|
|
8225
|
-
const
|
|
8225
|
+
const l = vx(() => i && "ResizeObserver" in i), c = () => {
|
|
8226
8226
|
o && (o.disconnect(), o = void 0);
|
|
8227
|
-
},
|
|
8228
|
-
c(),
|
|
8227
|
+
}, s = qe(() => Jo(e), (v) => {
|
|
8228
|
+
c(), l.value && i && v && (o = new ResizeObserver(n), o.observe(v, a));
|
|
8229
8229
|
}, { immediate: !0, flush: "post" }), f = () => {
|
|
8230
|
-
c(),
|
|
8230
|
+
c(), s();
|
|
8231
8231
|
};
|
|
8232
8232
|
return Zo(f), {
|
|
8233
|
-
isSupported:
|
|
8233
|
+
isSupported: l,
|
|
8234
8234
|
stop: f
|
|
8235
8235
|
};
|
|
8236
8236
|
}
|
|
@@ -8500,11 +8500,11 @@ const Tx = (e) => (n, r) => Sx(n, r, N(e)), Sx = (e, n, r) => Ud(r, e, e).replac
|
|
|
8500
8500
|
const { values: r, required: t, default: i, type: a, validator: o } = e, c = {
|
|
8501
8501
|
type: a,
|
|
8502
8502
|
required: !!t,
|
|
8503
|
-
validator: r || o ? (
|
|
8503
|
+
validator: r || o ? (s) => {
|
|
8504
8504
|
let f = !1, v = [];
|
|
8505
|
-
if (r && (v = Array.from(r), pn(e, "default") && v.push(i), f || (f = v.includes(
|
|
8505
|
+
if (r && (v = Array.from(r), pn(e, "default") && v.push(i), f || (f = v.includes(s))), o && (f || (f = o(s))), !f && v.length > 0) {
|
|
8506
8506
|
const h = [...new Set(v)].map((g) => JSON.stringify(g)).join(", ");
|
|
8507
|
-
gl(`Invalid prop: validation failed${n ? ` for prop "${n}"` : ""}. Expected one of [${h}], got value ${JSON.stringify(
|
|
8507
|
+
gl(`Invalid prop: validation failed${n ? ` for prop "${n}"` : ""}. Expected one of [${h}], got value ${JSON.stringify(s)}.`);
|
|
8508
8508
|
}
|
|
8509
8509
|
return f;
|
|
8510
8510
|
} : void 0,
|
|
@@ -8540,17 +8540,17 @@ function si(e, n = void 0) {
|
|
|
8540
8540
|
}
|
|
8541
8541
|
function Ox(e, n) {
|
|
8542
8542
|
const r = si(), t = Ct(e, j(() => {
|
|
8543
|
-
var
|
|
8544
|
-
return ((
|
|
8543
|
+
var l;
|
|
8544
|
+
return ((l = r.value) == null ? void 0 : l.namespace) || cn;
|
|
8545
8545
|
})), i = Ix(j(() => {
|
|
8546
|
-
var
|
|
8547
|
-
return (
|
|
8546
|
+
var l;
|
|
8547
|
+
return (l = r.value) == null ? void 0 : l.locale;
|
|
8548
8548
|
})), a = Fx(j(() => {
|
|
8549
|
-
var
|
|
8550
|
-
return ((
|
|
8549
|
+
var l;
|
|
8550
|
+
return ((l = r.value) == null ? void 0 : l.zIndex) || ts;
|
|
8551
8551
|
})), o = j(() => {
|
|
8552
|
-
var
|
|
8553
|
-
return N(n) || ((
|
|
8552
|
+
var l;
|
|
8553
|
+
return N(n) || ((l = r.value) == null ? void 0 : l.size) || "";
|
|
8554
8554
|
});
|
|
8555
8555
|
return zx(j(() => N(r) || {})), {
|
|
8556
8556
|
ns: t,
|
|
@@ -8566,16 +8566,16 @@ const zx = (e, n, r = !1) => {
|
|
|
8566
8566
|
xt("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
|
|
8567
8567
|
return;
|
|
8568
8568
|
}
|
|
8569
|
-
const
|
|
8569
|
+
const l = j(() => {
|
|
8570
8570
|
const c = N(e);
|
|
8571
8571
|
return a != null && a.value ? Lx(a.value, c) : c;
|
|
8572
8572
|
});
|
|
8573
|
-
return o(Oo,
|
|
8574
|
-
size: j(() =>
|
|
8573
|
+
return o(Oo, l), o(rs, j(() => l.value.locale)), o(zo, j(() => l.value.namespace)), o(ns, j(() => l.value.zIndex)), o(ls, {
|
|
8574
|
+
size: j(() => l.value.size || "")
|
|
8575
8575
|
}), o(Rx, j(() => ({
|
|
8576
|
-
emptyValues:
|
|
8577
|
-
valueOnClear:
|
|
8578
|
-
}))), (r || !yn.value) && (yn.value =
|
|
8576
|
+
emptyValues: l.value.emptyValues,
|
|
8577
|
+
valueOnClear: l.value.valueOnClear
|
|
8578
|
+
}))), (r || !yn.value) && (yn.value = l.value), l;
|
|
8579
8579
|
}, Lx = (e, n) => {
|
|
8580
8580
|
const r = [.../* @__PURE__ */ new Set([...Aa(e), ...Aa(n)])], t = {};
|
|
8581
8581
|
for (const i of r)
|
|
@@ -8901,21 +8901,21 @@ function v1(e) {
|
|
|
8901
8901
|
function Pa(e, n = 1, r) {
|
|
8902
8902
|
var t;
|
|
8903
8903
|
He || (He = document.createElement("textarea"), document.body.appendChild(He));
|
|
8904
|
-
const { paddingSize: i, borderSize: a, boxSizing: o, contextStyle:
|
|
8905
|
-
|
|
8904
|
+
const { paddingSize: i, borderSize: a, boxSizing: o, contextStyle: l } = v1(e);
|
|
8905
|
+
l.forEach(([v, h]) => He == null ? void 0 : He.style.setProperty(v, h)), Object.entries(h1).forEach(([v, h]) => He == null ? void 0 : He.style.setProperty(v, h, "important")), He.value = e.value || e.placeholder || "";
|
|
8906
8906
|
let c = He.scrollHeight;
|
|
8907
|
-
const
|
|
8907
|
+
const s = {};
|
|
8908
8908
|
o === "border-box" ? c = c + a : o === "content-box" && (c = c - i), He.value = "";
|
|
8909
8909
|
const f = He.scrollHeight - i;
|
|
8910
8910
|
if (gn(n)) {
|
|
8911
8911
|
let v = f * n;
|
|
8912
|
-
o === "border-box" && (v = v + i + a), c = Math.max(v, c),
|
|
8912
|
+
o === "border-box" && (v = v + i + a), c = Math.max(v, c), s.minHeight = `${v}px`;
|
|
8913
8913
|
}
|
|
8914
8914
|
if (gn(r)) {
|
|
8915
8915
|
let v = f * r;
|
|
8916
8916
|
o === "border-box" && (v = v + i + a), c = Math.min(v, c);
|
|
8917
8917
|
}
|
|
8918
|
-
return
|
|
8918
|
+
return s.height = `${c}px`, (t = He.parentNode) == null || t.removeChild(He), He = void 0, s;
|
|
8919
8919
|
}
|
|
8920
8920
|
const m1 = (e) => e, g1 = x0({
|
|
8921
8921
|
ariaLabel: String,
|
|
@@ -9051,13 +9051,13 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
9051
9051
|
const i = he();
|
|
9052
9052
|
let a;
|
|
9053
9053
|
const o = j(() => {
|
|
9054
|
-
var
|
|
9055
|
-
return !!(!(e.label || e.ariaLabel) && n && n.inputIds && ((
|
|
9054
|
+
var l;
|
|
9055
|
+
return !!(!(e.label || e.ariaLabel) && n && n.inputIds && ((l = n.inputIds) == null ? void 0 : l.length) <= 1);
|
|
9056
9056
|
});
|
|
9057
9057
|
return Et(() => {
|
|
9058
|
-
a = qe([dn(e, "id"), r], ([
|
|
9059
|
-
const
|
|
9060
|
-
|
|
9058
|
+
a = qe([dn(e, "id"), r], ([l, c]) => {
|
|
9059
|
+
const s = l ?? (c ? void 0 : Vr().value);
|
|
9060
|
+
s !== i.value && (n != null && n.removeInputId && (i.value && n.removeInputId(i.value), !(t != null && t.value) && !c && s && n.addInputId(s)), i.value = s);
|
|
9061
9061
|
}, { immediate: !0 });
|
|
9062
9062
|
}), yl(() => {
|
|
9063
9063
|
a && a(), n != null && n.removeInputId && i.value && n.removeInputId(i.value);
|
|
@@ -9084,24 +9084,24 @@ function A1(e, {
|
|
|
9084
9084
|
beforeBlur: t,
|
|
9085
9085
|
afterBlur: i
|
|
9086
9086
|
} = {}) {
|
|
9087
|
-
const a = ht(), { emit: o } = a,
|
|
9087
|
+
const a = ht(), { emit: o } = a, l = B0(), c = he(!1), s = (h) => {
|
|
9088
9088
|
c0(n) && n(h) || c.value || (c.value = !0, o("focus", h), r == null || r());
|
|
9089
9089
|
}, f = (h) => {
|
|
9090
9090
|
var g;
|
|
9091
|
-
c0(t) && t(h) || h.relatedTarget && ((g =
|
|
9091
|
+
c0(t) && t(h) || h.relatedTarget && ((g = l.value) != null && g.contains(h.relatedTarget)) || (c.value = !1, o("blur", h), i == null || i());
|
|
9092
9092
|
}, v = () => {
|
|
9093
9093
|
var h, g;
|
|
9094
|
-
(h =
|
|
9094
|
+
(h = l.value) != null && h.contains(document.activeElement) && l.value !== document.activeElement || (g = e.value) == null || g.focus();
|
|
9095
9095
|
};
|
|
9096
|
-
return qe(
|
|
9096
|
+
return qe(l, (h) => {
|
|
9097
9097
|
h && h.setAttribute("tabindex", "-1");
|
|
9098
|
-
}), b0(
|
|
9098
|
+
}), b0(l, "focus", s, !0), b0(l, "blur", f, !0), b0(l, "click", v, !0), process.env.NODE_ENV === "test" && Et(() => {
|
|
9099
9099
|
const h = k0(e.value) ? e.value : document.querySelector("input,textarea");
|
|
9100
|
-
h && (b0(h, "focus",
|
|
9100
|
+
h && (b0(h, "focus", s, !0), b0(h, "blur", f, !0));
|
|
9101
9101
|
}), {
|
|
9102
9102
|
isFocused: c,
|
|
9103
|
-
wrapperRef:
|
|
9104
|
-
handleFocus:
|
|
9103
|
+
wrapperRef: l,
|
|
9104
|
+
handleFocus: s,
|
|
9105
9105
|
handleBlur: f
|
|
9106
9106
|
};
|
|
9107
9107
|
}
|
|
@@ -9110,20 +9110,20 @@ function S1({
|
|
|
9110
9110
|
afterComposition: e,
|
|
9111
9111
|
emit: n
|
|
9112
9112
|
}) {
|
|
9113
|
-
const r = he(!1), t = (
|
|
9114
|
-
n == null || n("compositionstart",
|
|
9115
|
-
}, i = (
|
|
9113
|
+
const r = he(!1), t = (l) => {
|
|
9114
|
+
n == null || n("compositionstart", l), r.value = !0;
|
|
9115
|
+
}, i = (l) => {
|
|
9116
9116
|
var c;
|
|
9117
|
-
n == null || n("compositionupdate",
|
|
9118
|
-
const
|
|
9117
|
+
n == null || n("compositionupdate", l);
|
|
9118
|
+
const s = (c = l.target) == null ? void 0 : c.value, f = s[s.length - 1] || "";
|
|
9119
9119
|
r.value = !T1(f);
|
|
9120
|
-
}, a = (
|
|
9121
|
-
n == null || n("compositionend",
|
|
9120
|
+
}, a = (l) => {
|
|
9121
|
+
n == null || n("compositionend", l), r.value && (r.value = !1, Ne(() => e(l)));
|
|
9122
9122
|
};
|
|
9123
9123
|
return {
|
|
9124
9124
|
isComposing: r,
|
|
9125
|
-
handleComposition: (
|
|
9126
|
-
|
|
9125
|
+
handleComposition: (l) => {
|
|
9126
|
+
l.type === "compositionend" ? a(l) : i(l);
|
|
9127
9127
|
},
|
|
9128
9128
|
handleCompositionStart: t,
|
|
9129
9129
|
handleCompositionUpdate: i,
|
|
@@ -9138,20 +9138,20 @@ function k1(e) {
|
|
|
9138
9138
|
const { selectionStart: i, selectionEnd: a, value: o } = e.value;
|
|
9139
9139
|
if (i == null || a == null)
|
|
9140
9140
|
return;
|
|
9141
|
-
const
|
|
9141
|
+
const l = o.slice(0, Math.max(0, i)), c = o.slice(Math.max(0, a));
|
|
9142
9142
|
n = {
|
|
9143
9143
|
selectionStart: i,
|
|
9144
9144
|
selectionEnd: a,
|
|
9145
9145
|
value: o,
|
|
9146
|
-
beforeTxt:
|
|
9146
|
+
beforeTxt: l,
|
|
9147
9147
|
afterTxt: c
|
|
9148
9148
|
};
|
|
9149
9149
|
}
|
|
9150
9150
|
function t() {
|
|
9151
9151
|
if (e.value == null || n == null)
|
|
9152
9152
|
return;
|
|
9153
|
-
const { value: i } = e.value, { beforeTxt: a, afterTxt: o, selectionStart:
|
|
9154
|
-
if (a == null || o == null ||
|
|
9153
|
+
const { value: i } = e.value, { beforeTxt: a, afterTxt: o, selectionStart: l } = n;
|
|
9154
|
+
if (a == null || o == null || l == null)
|
|
9155
9155
|
return;
|
|
9156
9156
|
let c = i.length;
|
|
9157
9157
|
if (i.endsWith(o))
|
|
@@ -9159,7 +9159,7 @@ function k1(e) {
|
|
|
9159
9159
|
else if (i.startsWith(a))
|
|
9160
9160
|
c = a.length;
|
|
9161
9161
|
else {
|
|
9162
|
-
const
|
|
9162
|
+
const s = a[l - 1], f = i.indexOf(s, l - 1);
|
|
9163
9163
|
f !== -1 && (c = f + 1);
|
|
9164
9164
|
}
|
|
9165
9165
|
e.value.setSelectionRange(c, c);
|
|
@@ -9174,8 +9174,8 @@ const ys = "ElInput", I1 = me({
|
|
|
9174
9174
|
props: b1,
|
|
9175
9175
|
emits: C1,
|
|
9176
9176
|
setup(e, { expose: n, emit: r }) {
|
|
9177
|
-
const t = e, i = bl(), a = B1(), o = Za(),
|
|
9178
|
-
t.type === "textarea" ?
|
|
9177
|
+
const t = e, i = bl(), a = B1(), o = Za(), l = j(() => [
|
|
9178
|
+
t.type === "textarea" ? p.b() : d.b(),
|
|
9179
9179
|
d.m(h.value),
|
|
9180
9180
|
d.is("disabled", g.value),
|
|
9181
9181
|
d.is("exceed", O.value),
|
|
@@ -9190,9 +9190,9 @@ const ys = "ElInput", I1 = me({
|
|
|
9190
9190
|
]), c = j(() => [
|
|
9191
9191
|
d.e("wrapper"),
|
|
9192
9192
|
d.is("focus", k.value)
|
|
9193
|
-
]), { form:
|
|
9193
|
+
]), { form: s, formItem: f } = vs(), { inputId: v } = F1(t, {
|
|
9194
9194
|
formItemContext: f
|
|
9195
|
-
}), h = gs(), g = ui(), d = Ct("input"),
|
|
9195
|
+
}), h = gs(), g = ui(), d = Ct("input"), p = Ct("textarea"), y = B0(), _ = B0(), b = he(!1), C = he(!1), E = he(), T = B0(t.inputStyle), A = j(() => y.value || _.value), { wrapperRef: S, isFocused: k, handleFocus: L, handleBlur: F } = A1(A, {
|
|
9196
9196
|
beforeFocus() {
|
|
9197
9197
|
return g.value;
|
|
9198
9198
|
},
|
|
@@ -9202,7 +9202,7 @@ const ys = "ElInput", I1 = me({
|
|
|
9202
9202
|
}
|
|
9203
9203
|
}), B = j(() => {
|
|
9204
9204
|
var V;
|
|
9205
|
-
return (V =
|
|
9205
|
+
return (V = s == null ? void 0 : s.statusIcon) != null ? V : !1;
|
|
9206
9206
|
}), I = j(() => (f == null ? void 0 : f.validateState) || ""), P = j(() => I.value && d1[I.value]), W = j(() => C.value ? s1 : n1), G = j(() => [
|
|
9207
9207
|
i.style
|
|
9208
9208
|
]), Y = j(() => [
|
|
@@ -9303,7 +9303,7 @@ const ys = "ElInput", I1 = me({
|
|
|
9303
9303
|
resizeTextarea: le
|
|
9304
9304
|
}), (V, ce) => (q(), J("div", {
|
|
9305
9305
|
class: ne([
|
|
9306
|
-
N(
|
|
9306
|
+
N(l),
|
|
9307
9307
|
{
|
|
9308
9308
|
[N(d).bm("group", "append")]: V.$slots.append,
|
|
9309
9309
|
[N(d).bm("group", "prepend")]: V.$slots.prepend
|
|
@@ -9451,7 +9451,7 @@ const ys = "ElInput", I1 = me({
|
|
|
9451
9451
|
id: N(v),
|
|
9452
9452
|
ref_key: "textarea",
|
|
9453
9453
|
ref: _,
|
|
9454
|
-
class: [N(
|
|
9454
|
+
class: [N(p).e("inner"), N(d).is("focus", N(k))]
|
|
9455
9455
|
}, N(a), {
|
|
9456
9456
|
minlength: V.minlength,
|
|
9457
9457
|
maxlength: V.maxlength,
|
|
@@ -9644,10 +9644,10 @@ const Va = (e) => {
|
|
|
9644
9644
|
resume() {
|
|
9645
9645
|
this.paused = !1;
|
|
9646
9646
|
}
|
|
9647
|
-
},
|
|
9647
|
+
}, l = (d) => {
|
|
9648
9648
|
if (!e.loop && !e.trapped || o.paused)
|
|
9649
9649
|
return;
|
|
9650
|
-
const { code:
|
|
9650
|
+
const { code: p, altKey: y, ctrlKey: _, metaKey: b, currentTarget: C, shiftKey: E } = d, { loop: T } = e, A = p === xi.tab && !y && !_ && !b, S = document.activeElement;
|
|
9651
9651
|
if (A && S) {
|
|
9652
9652
|
const k = C, [L, F] = V1(k);
|
|
9653
9653
|
if (L && F) {
|
|
@@ -9672,26 +9672,26 @@ const Va = (e) => {
|
|
|
9672
9672
|
};
|
|
9673
9673
|
Kr($1, {
|
|
9674
9674
|
focusTrapRef: r,
|
|
9675
|
-
onKeydown:
|
|
9675
|
+
onKeydown: l
|
|
9676
9676
|
}), qe(() => e.focusTrapEl, (d) => {
|
|
9677
9677
|
d && (r.value = d);
|
|
9678
|
-
}, { immediate: !0 }), qe([r], ([d], [
|
|
9679
|
-
d && (d.addEventListener("keydown",
|
|
9678
|
+
}, { immediate: !0 }), qe([r], ([d], [p]) => {
|
|
9679
|
+
d && (d.addEventListener("keydown", l), d.addEventListener("focusin", f), d.addEventListener("focusout", v)), p && (p.removeEventListener("keydown", l), p.removeEventListener("focusin", f), p.removeEventListener("focusout", v));
|
|
9680
9680
|
});
|
|
9681
9681
|
const c = (d) => {
|
|
9682
9682
|
n(Oa, d);
|
|
9683
|
-
},
|
|
9684
|
-
const
|
|
9685
|
-
if (!
|
|
9683
|
+
}, s = (d) => n(za, d), f = (d) => {
|
|
9684
|
+
const p = N(r);
|
|
9685
|
+
if (!p)
|
|
9686
9686
|
return;
|
|
9687
|
-
const y = d.target, _ = d.relatedTarget, b = y &&
|
|
9688
|
-
e.trapped || _ &&
|
|
9687
|
+
const y = d.target, _ = d.relatedTarget, b = y && p.contains(y);
|
|
9688
|
+
e.trapped || _ && p.contains(_) || (t = _), b && n("focusin", d), !o.paused && e.trapped && (b ? i = y : St(i, !0));
|
|
9689
9689
|
}, v = (d) => {
|
|
9690
|
-
const
|
|
9691
|
-
if (!(o.paused || !
|
|
9690
|
+
const p = N(r);
|
|
9691
|
+
if (!(o.paused || !p))
|
|
9692
9692
|
if (e.trapped) {
|
|
9693
9693
|
const y = d.relatedTarget;
|
|
9694
|
-
!jo(y) && !
|
|
9694
|
+
!jo(y) && !p.contains(y) && setTimeout(() => {
|
|
9695
9695
|
if (!o.paused && e.trapped) {
|
|
9696
9696
|
const _ = nn({
|
|
9697
9697
|
focusReason: a.value
|
|
@@ -9701,7 +9701,7 @@ const Va = (e) => {
|
|
|
9701
9701
|
}, 0);
|
|
9702
9702
|
} else {
|
|
9703
9703
|
const y = d.target;
|
|
9704
|
-
y &&
|
|
9704
|
+
y && p.contains(y) || n("focusout", d);
|
|
9705
9705
|
}
|
|
9706
9706
|
};
|
|
9707
9707
|
async function h() {
|
|
@@ -9709,12 +9709,12 @@ const Va = (e) => {
|
|
|
9709
9709
|
const d = N(r);
|
|
9710
9710
|
if (d) {
|
|
9711
9711
|
$a.push(o);
|
|
9712
|
-
const
|
|
9713
|
-
if (t =
|
|
9712
|
+
const p = d.contains(document.activeElement) ? t : document.activeElement;
|
|
9713
|
+
if (t = p, !d.contains(p)) {
|
|
9714
9714
|
const _ = new Event(kr, Ra);
|
|
9715
9715
|
d.addEventListener(kr, c), d.dispatchEvent(_), _.defaultPrevented || Ne(() => {
|
|
9716
9716
|
let b = e.focusStartEl;
|
|
9717
|
-
dt(b) || (St(b), document.activeElement !== b && (b = "first")), b === "first" && Y1(Cs(d), !0), (document.activeElement ===
|
|
9717
|
+
dt(b) || (St(b), document.activeElement !== b && (b = "first")), b === "first" && Y1(Cs(d), !0), (document.activeElement === p || b === "container") && St(d);
|
|
9718
9718
|
});
|
|
9719
9719
|
}
|
|
9720
9720
|
}
|
|
@@ -9723,13 +9723,13 @@ const Va = (e) => {
|
|
|
9723
9723
|
const d = N(r);
|
|
9724
9724
|
if (d) {
|
|
9725
9725
|
d.removeEventListener(kr, c);
|
|
9726
|
-
const
|
|
9726
|
+
const p = new CustomEvent(Ir, {
|
|
9727
9727
|
...Ra,
|
|
9728
9728
|
detail: {
|
|
9729
9729
|
focusReason: a.value
|
|
9730
9730
|
}
|
|
9731
9731
|
});
|
|
9732
|
-
d.addEventListener(Ir,
|
|
9732
|
+
d.addEventListener(Ir, s), d.dispatchEvent(p), !p.defaultPrevented && (a.value == "keyboard" || !K1() || d.contains(document.activeElement)) && St(t ?? document.body), d.removeEventListener(Ir, s), $a.remove(o);
|
|
9733
9733
|
}
|
|
9734
9734
|
}
|
|
9735
9735
|
return Et(() => {
|
|
@@ -9737,9 +9737,9 @@ const Va = (e) => {
|
|
|
9737
9737
|
d ? h() : g();
|
|
9738
9738
|
});
|
|
9739
9739
|
}), P0(() => {
|
|
9740
|
-
e.trapped && g(), r.value && (r.value.removeEventListener("keydown",
|
|
9740
|
+
e.trapped && g(), r.value && (r.value.removeEventListener("keydown", l), r.value.removeEventListener("focusin", f), r.value.removeEventListener("focusout", v), r.value = void 0);
|
|
9741
9741
|
}), {
|
|
9742
|
-
onKeydown:
|
|
9742
|
+
onKeydown: l
|
|
9743
9743
|
};
|
|
9744
9744
|
}
|
|
9745
9745
|
});
|
|
@@ -9748,8 +9748,8 @@ function X1(e, n, r, t, i, a) {
|
|
|
9748
9748
|
}
|
|
9749
9749
|
var Z1 = /* @__PURE__ */ h0(G1, [["render", X1], ["__file", "focus-trap.vue"]]);
|
|
9750
9750
|
const Es = Symbol("buttonGroupContextKey"), J1 = ({ from: e, replacement: n, scope: r, version: t, ref: i, type: a = "API" }, o) => {
|
|
9751
|
-
qe(() => N(o), (
|
|
9752
|
-
|
|
9751
|
+
qe(() => N(o), (l) => {
|
|
9752
|
+
l && xt(r, `[${a}] ${e} is about to be deprecated in version ${t}, please use ${n} instead.
|
|
9753
9753
|
For more detail, please visit: ${i}
|
|
9754
9754
|
`);
|
|
9755
9755
|
}, {
|
|
@@ -9763,9 +9763,9 @@ For more detail, please visit: ${i}
|
|
|
9763
9763
|
scope: "props",
|
|
9764
9764
|
ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
|
|
9765
9765
|
}, j(() => e.type === "text"));
|
|
9766
|
-
const r = Ve(Es, void 0), t = si("button"), { form: i } = vs(), a = gs(j(() => r == null ? void 0 : r.size)), o = ui(),
|
|
9767
|
-
var d,
|
|
9768
|
-
return (y = (
|
|
9766
|
+
const r = Ve(Es, void 0), t = si("button"), { form: i } = vs(), a = gs(j(() => r == null ? void 0 : r.size)), o = ui(), l = he(), c = Za(), s = j(() => e.type || (r == null ? void 0 : r.type) || ""), f = j(() => {
|
|
9767
|
+
var d, p, y;
|
|
9768
|
+
return (y = (p = e.autoInsertSpace) != null ? p : (d = t.value) == null ? void 0 : d.autoInsertSpace) != null ? y : !1;
|
|
9769
9769
|
}), v = j(() => e.tag === "button" ? {
|
|
9770
9770
|
ariaDisabled: o.value || e.loading,
|
|
9771
9771
|
disabled: o.value || e.loading,
|
|
@@ -9773,9 +9773,9 @@ For more detail, please visit: ${i}
|
|
|
9773
9773
|
type: e.nativeType
|
|
9774
9774
|
} : {}), h = j(() => {
|
|
9775
9775
|
var d;
|
|
9776
|
-
const
|
|
9777
|
-
if (f.value && (
|
|
9778
|
-
const y =
|
|
9776
|
+
const p = (d = c.default) == null ? void 0 : d.call(c);
|
|
9777
|
+
if (f.value && (p == null ? void 0 : p.length) === 1) {
|
|
9778
|
+
const y = p[0];
|
|
9779
9779
|
if ((y == null ? void 0 : y.type) === Cl) {
|
|
9780
9780
|
const _ = y.children;
|
|
9781
9781
|
return /^\p{Unified_Ideograph}{2}$/u.test(_.trim());
|
|
@@ -9786,8 +9786,8 @@ For more detail, please visit: ${i}
|
|
|
9786
9786
|
return {
|
|
9787
9787
|
_disabled: o,
|
|
9788
9788
|
_size: a,
|
|
9789
|
-
_type:
|
|
9790
|
-
_ref:
|
|
9789
|
+
_type: s,
|
|
9790
|
+
_ref: l,
|
|
9791
9791
|
_props: v,
|
|
9792
9792
|
shouldAddSpace: h,
|
|
9793
9793
|
handleClick: (d) => {
|
|
@@ -9880,12 +9880,12 @@ function ah(e, n, r) {
|
|
|
9880
9880
|
}
|
|
9881
9881
|
function qa(e, n, r) {
|
|
9882
9882
|
e = Fe(e, 255), n = Fe(n, 255), r = Fe(r, 255);
|
|
9883
|
-
var t = Math.max(e, n, r), i = Math.min(e, n, r), a = 0, o = 0,
|
|
9883
|
+
var t = Math.max(e, n, r), i = Math.min(e, n, r), a = 0, o = 0, l = (t + i) / 2;
|
|
9884
9884
|
if (t === i)
|
|
9885
9885
|
o = 0, a = 0;
|
|
9886
9886
|
else {
|
|
9887
9887
|
var c = t - i;
|
|
9888
|
-
switch (o =
|
|
9888
|
+
switch (o = l > 0.5 ? c / (2 - t - i) : c / (t + i), t) {
|
|
9889
9889
|
case e:
|
|
9890
9890
|
a = (n - r) / c + (n < r ? 6 : 0);
|
|
9891
9891
|
break;
|
|
@@ -9898,7 +9898,7 @@ function qa(e, n, r) {
|
|
|
9898
9898
|
}
|
|
9899
9899
|
a /= 6;
|
|
9900
9900
|
}
|
|
9901
|
-
return { h: a, s: o, l
|
|
9901
|
+
return { h: a, s: o, l };
|
|
9902
9902
|
}
|
|
9903
9903
|
function Pr(e, n, r) {
|
|
9904
9904
|
return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (n - e) * (6 * r) : r < 1 / 2 ? n : r < 2 / 3 ? e + (n - e) * (2 / 3 - r) * 6 : e;
|
|
@@ -9908,26 +9908,26 @@ function oh(e, n, r) {
|
|
|
9908
9908
|
if (e = Fe(e, 360), n = Fe(n, 100), r = Fe(r, 100), n === 0)
|
|
9909
9909
|
i = r, a = r, t = r;
|
|
9910
9910
|
else {
|
|
9911
|
-
var o = r < 0.5 ? r * (1 + n) : r + n - r * n,
|
|
9912
|
-
t = Pr(
|
|
9911
|
+
var o = r < 0.5 ? r * (1 + n) : r + n - r * n, l = 2 * r - o;
|
|
9912
|
+
t = Pr(l, o, e + 1 / 3), i = Pr(l, o, e), a = Pr(l, o, e - 1 / 3);
|
|
9913
9913
|
}
|
|
9914
9914
|
return { r: t * 255, g: i * 255, b: a * 255 };
|
|
9915
9915
|
}
|
|
9916
9916
|
function Ua(e, n, r) {
|
|
9917
9917
|
e = Fe(e, 255), n = Fe(n, 255), r = Fe(r, 255);
|
|
9918
|
-
var t = Math.max(e, n, r), i = Math.min(e, n, r), a = 0, o = t,
|
|
9918
|
+
var t = Math.max(e, n, r), i = Math.min(e, n, r), a = 0, o = t, l = t - i, c = t === 0 ? 0 : l / t;
|
|
9919
9919
|
if (t === i)
|
|
9920
9920
|
a = 0;
|
|
9921
9921
|
else {
|
|
9922
9922
|
switch (t) {
|
|
9923
9923
|
case e:
|
|
9924
|
-
a = (n - r) /
|
|
9924
|
+
a = (n - r) / l + (n < r ? 6 : 0);
|
|
9925
9925
|
break;
|
|
9926
9926
|
case n:
|
|
9927
|
-
a = (r - e) /
|
|
9927
|
+
a = (r - e) / l + 2;
|
|
9928
9928
|
break;
|
|
9929
9929
|
case r:
|
|
9930
|
-
a = (e - n) /
|
|
9930
|
+
a = (e - n) / l + 4;
|
|
9931
9931
|
break;
|
|
9932
9932
|
}
|
|
9933
9933
|
a /= 6;
|
|
@@ -9936,8 +9936,8 @@ function Ua(e, n, r) {
|
|
|
9936
9936
|
}
|
|
9937
9937
|
function sh(e, n, r) {
|
|
9938
9938
|
e = Fe(e, 360) * 6, n = Fe(n, 100), r = Fe(r, 100);
|
|
9939
|
-
var t = Math.floor(e), i = e - t, a = r * (1 - n), o = r * (1 - i * n),
|
|
9940
|
-
return { r:
|
|
9939
|
+
var t = Math.floor(e), i = e - t, a = r * (1 - n), o = r * (1 - i * n), l = r * (1 - (1 - i) * n), c = t % 6, s = [r, o, a, a, l, r][c], f = [l, r, r, o, a, a][c], v = [a, a, l, r, r, o][c];
|
|
9940
|
+
return { r: s * 255, g: f * 255, b: v * 255 };
|
|
9941
9941
|
}
|
|
9942
9942
|
function Ya(e, n, r, t) {
|
|
9943
9943
|
var i = [
|
|
@@ -10123,10 +10123,10 @@ var Ur = {
|
|
|
10123
10123
|
yellowgreen: "#9acd32"
|
|
10124
10124
|
};
|
|
10125
10125
|
function fh(e) {
|
|
10126
|
-
var n = { r: 0, g: 0, b: 0 }, r = 1, t = null, i = null, a = null, o = !1,
|
|
10127
|
-
return typeof e == "string" && (e = hh(e)), typeof e == "object" && (bt(e.r) && bt(e.g) && bt(e.b) ? (n = ah(e.r, e.g, e.b), o = !0,
|
|
10126
|
+
var n = { r: 0, g: 0, b: 0 }, r = 1, t = null, i = null, a = null, o = !1, l = !1;
|
|
10127
|
+
return typeof e == "string" && (e = hh(e)), typeof e == "object" && (bt(e.r) && bt(e.g) && bt(e.b) ? (n = ah(e.r, e.g, e.b), o = !0, l = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : bt(e.h) && bt(e.s) && bt(e.v) ? (t = an(e.s), i = an(e.v), n = sh(e.h, t, i), o = !0, l = "hsv") : bt(e.h) && bt(e.s) && bt(e.l) && (t = an(e.s), a = an(e.l), n = oh(e.h, t, a), o = !0, l = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (r = e.a)), r = _s(r), {
|
|
10128
10128
|
ok: o,
|
|
10129
|
-
format: e.format ||
|
|
10129
|
+
format: e.format || l,
|
|
10130
10130
|
r: Math.min(255, Math.max(n.r, 0)),
|
|
10131
10131
|
g: Math.min(255, Math.max(n.g, 0)),
|
|
10132
10132
|
b: Math.min(255, Math.max(n.b, 0)),
|
|
@@ -10202,8 +10202,8 @@ var ph = (
|
|
|
10202
10202
|
var n = this.toRgb();
|
|
10203
10203
|
return (n.r * 299 + n.g * 587 + n.b * 114) / 1e3;
|
|
10204
10204
|
}, e.prototype.getLuminance = function() {
|
|
10205
|
-
var n = this.toRgb(), r, t, i, a = n.r / 255, o = n.g / 255,
|
|
10206
|
-
return a <= 0.03928 ? r = a / 12.92 : r = Math.pow((a + 0.055) / 1.055, 2.4), o <= 0.03928 ? t = o / 12.92 : t = Math.pow((o + 0.055) / 1.055, 2.4),
|
|
10205
|
+
var n = this.toRgb(), r, t, i, a = n.r / 255, o = n.g / 255, l = n.b / 255;
|
|
10206
|
+
return a <= 0.03928 ? r = a / 12.92 : r = Math.pow((a + 0.055) / 1.055, 2.4), o <= 0.03928 ? t = o / 12.92 : t = Math.pow((o + 0.055) / 1.055, 2.4), l <= 0.03928 ? i = l / 12.92 : i = Math.pow((l + 0.055) / 1.055, 2.4), 0.2126 * r + 0.7152 * t + 0.0722 * i;
|
|
10207
10207
|
}, e.prototype.getAlpha = function() {
|
|
10208
10208
|
return this.a;
|
|
10209
10209
|
}, e.prototype.setAlpha = function(n) {
|
|
@@ -10327,8 +10327,8 @@ var ph = (
|
|
|
10327
10327
|
return n.h = (n.h + 180) % 360, new e(n);
|
|
10328
10328
|
}, e.prototype.monochromatic = function(n) {
|
|
10329
10329
|
n === void 0 && (n = 6);
|
|
10330
|
-
for (var r = this.toHsv(), t = r.h, i = r.s, a = r.v, o = [],
|
|
10331
|
-
o.push(new e({ h: t, s: i, v: a })), a = (a +
|
|
10330
|
+
for (var r = this.toHsv(), t = r.h, i = r.s, a = r.v, o = [], l = 1 / n; n--; )
|
|
10331
|
+
o.push(new e({ h: t, s: i, v: a })), a = (a + l) % 1;
|
|
10332
10332
|
return o;
|
|
10333
10333
|
}, e.prototype.splitcomplement = function() {
|
|
10334
10334
|
var n = this.toHsl(), r = n.h;
|
|
@@ -10368,7 +10368,7 @@ function vh(e) {
|
|
|
10368
10368
|
if (i) {
|
|
10369
10369
|
const a = i.match(/var\((.*?)\)/);
|
|
10370
10370
|
a && (i = window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));
|
|
10371
|
-
const o = new ph(i),
|
|
10371
|
+
const o = new ph(i), l = e.dark ? o.tint(20).toString() : At(o, 20);
|
|
10372
10372
|
if (e.plain)
|
|
10373
10373
|
t = r.cssVarBlock({
|
|
10374
10374
|
"bg-color": e.dark ? At(o, 90) : o.tint(90).toString(),
|
|
@@ -10377,21 +10377,21 @@ function vh(e) {
|
|
|
10377
10377
|
"hover-text-color": `var(${r.cssVarName("color-white")})`,
|
|
10378
10378
|
"hover-bg-color": i,
|
|
10379
10379
|
"hover-border-color": i,
|
|
10380
|
-
"active-bg-color":
|
|
10380
|
+
"active-bg-color": l,
|
|
10381
10381
|
"active-text-color": `var(${r.cssVarName("color-white")})`,
|
|
10382
|
-
"active-border-color":
|
|
10382
|
+
"active-border-color": l
|
|
10383
10383
|
}), n.value && (t[r.cssVarBlockName("disabled-bg-color")] = e.dark ? At(o, 90) : o.tint(90).toString(), t[r.cssVarBlockName("disabled-text-color")] = e.dark ? At(o, 50) : o.tint(50).toString(), t[r.cssVarBlockName("disabled-border-color")] = e.dark ? At(o, 80) : o.tint(80).toString());
|
|
10384
10384
|
else {
|
|
10385
|
-
const c = e.dark ? At(o, 30) : o.tint(30).toString(),
|
|
10385
|
+
const c = e.dark ? At(o, 30) : o.tint(30).toString(), s = o.isDark() ? `var(${r.cssVarName("color-white")})` : `var(${r.cssVarName("color-black")})`;
|
|
10386
10386
|
if (t = r.cssVarBlock({
|
|
10387
10387
|
"bg-color": i,
|
|
10388
|
-
"text-color":
|
|
10388
|
+
"text-color": s,
|
|
10389
10389
|
"border-color": i,
|
|
10390
10390
|
"hover-bg-color": c,
|
|
10391
|
-
"hover-text-color":
|
|
10391
|
+
"hover-text-color": s,
|
|
10392
10392
|
"hover-border-color": c,
|
|
10393
|
-
"active-bg-color":
|
|
10394
|
-
"active-border-color":
|
|
10393
|
+
"active-bg-color": l,
|
|
10394
|
+
"active-border-color": l
|
|
10395
10395
|
}), n.value) {
|
|
10396
10396
|
const f = e.dark ? At(o, 50) : o.tint(50).toString();
|
|
10397
10397
|
t[r.cssVarBlockName("disabled-bg-color")] = f, t[r.cssVarBlockName("disabled-text-color")] = e.dark ? "rgba(255, 255, 255, 0.5)" : `var(${r.cssVarName("color-white")})`, t[r.cssVarBlockName("disabled-border-color")] = f;
|
|
@@ -10408,11 +10408,11 @@ const mh = me({
|
|
|
10408
10408
|
props: qr,
|
|
10409
10409
|
emits: nh,
|
|
10410
10410
|
setup(e, { expose: n, emit: r }) {
|
|
10411
|
-
const t = e, i = vh(t), a = Ct("button"), { _ref: o, _size:
|
|
10411
|
+
const t = e, i = vh(t), a = Ct("button"), { _ref: o, _size: l, _type: c, _disabled: s, _props: f, shouldAddSpace: v, handleClick: h } = Q1(t, r), g = j(() => [
|
|
10412
10412
|
a.b(),
|
|
10413
10413
|
a.m(c.value),
|
|
10414
|
-
a.m(
|
|
10415
|
-
a.is("disabled",
|
|
10414
|
+
a.m(l.value),
|
|
10415
|
+
a.is("disabled", s.value),
|
|
10416
10416
|
a.is("loading", t.loading),
|
|
10417
10417
|
a.is("plain", t.plain),
|
|
10418
10418
|
a.is("round", t.round),
|
|
@@ -10423,11 +10423,11 @@ const mh = me({
|
|
|
10423
10423
|
]);
|
|
10424
10424
|
return n({
|
|
10425
10425
|
ref: o,
|
|
10426
|
-
size:
|
|
10426
|
+
size: l,
|
|
10427
10427
|
type: c,
|
|
10428
|
-
disabled:
|
|
10428
|
+
disabled: s,
|
|
10429
10429
|
shouldAddSpace: v
|
|
10430
|
-
}), (d,
|
|
10430
|
+
}), (d, p) => (q(), xe(Je(d.tag), F0({
|
|
10431
10431
|
ref_key: "_ref",
|
|
10432
10432
|
ref: o
|
|
10433
10433
|
}, N(f), {
|
|
@@ -10529,7 +10529,7 @@ var Fh = me({
|
|
|
10529
10529
|
setup(e, { slots: n, emit: r }) {
|
|
10530
10530
|
const t = Ct(Dh), i = (c) => {
|
|
10531
10531
|
r("click", c);
|
|
10532
|
-
}, { onClick: a, onMousedown: o, onMouseup:
|
|
10532
|
+
}, { onClick: a, onMousedown: o, onMouseup: l } = ws(e.customMaskEvent ? void 0 : i);
|
|
10533
10533
|
return () => e.mask ? Ie("div", {
|
|
10534
10534
|
class: [t.b(), e.overlayClass],
|
|
10535
10535
|
style: {
|
|
@@ -10537,7 +10537,7 @@ var Fh = me({
|
|
|
10537
10537
|
},
|
|
10538
10538
|
onClick: a,
|
|
10539
10539
|
onMousedown: o,
|
|
10540
|
-
onMouseup:
|
|
10540
|
+
onMouseup: l
|
|
10541
10541
|
}, [Le(n, "default")], un.STYLE | un.CLASS | un.PROPS, ["onClick", "onMouseup", "onMousedown"]) : El("div", {
|
|
10542
10542
|
class: e.overlayClass,
|
|
10543
10543
|
style: {
|
|
@@ -10556,8 +10556,8 @@ const Ah = Fh, Th = (e, n, r, t) => {
|
|
|
10556
10556
|
offsetX: 0,
|
|
10557
10557
|
offsetY: 0
|
|
10558
10558
|
};
|
|
10559
|
-
const a = (
|
|
10560
|
-
const f =
|
|
10559
|
+
const a = (s) => {
|
|
10560
|
+
const f = s.clientX, v = s.clientY, { offsetX: h, offsetY: g } = i, d = e.value.getBoundingClientRect(), p = d.left, y = d.top, _ = d.width, b = d.height, C = document.documentElement.clientWidth, E = document.documentElement.clientHeight, T = -p + h, A = -y + g, S = C - p - _ + h, k = E - y - b + g, L = (B) => {
|
|
10561
10561
|
let I = h + B.clientX - f, P = g + B.clientY - v;
|
|
10562
10562
|
t != null && t.value || (I = Math.min(Math.max(I, T), S), P = Math.min(Math.max(P, A), k)), i = {
|
|
10563
10563
|
offsetX: I,
|
|
@@ -10569,7 +10569,7 @@ const Ah = Fh, Th = (e, n, r, t) => {
|
|
|
10569
10569
|
document.addEventListener("mousemove", L), document.addEventListener("mouseup", F);
|
|
10570
10570
|
}, o = () => {
|
|
10571
10571
|
n.value && e.value && n.value.addEventListener("mousedown", a);
|
|
10572
|
-
},
|
|
10572
|
+
}, l = () => {
|
|
10573
10573
|
n.value && e.value && n.value.removeEventListener("mousedown", a);
|
|
10574
10574
|
}, c = () => {
|
|
10575
10575
|
i = {
|
|
@@ -10579,10 +10579,10 @@ const Ah = Fh, Th = (e, n, r, t) => {
|
|
|
10579
10579
|
};
|
|
10580
10580
|
return Et(() => {
|
|
10581
10581
|
ja(() => {
|
|
10582
|
-
r.value ? o() :
|
|
10582
|
+
r.value ? o() : l();
|
|
10583
10583
|
});
|
|
10584
10584
|
}), P0(() => {
|
|
10585
|
-
|
|
10585
|
+
l();
|
|
10586
10586
|
}), {
|
|
10587
10587
|
resetPosition: c
|
|
10588
10588
|
};
|
|
@@ -10592,20 +10592,20 @@ const Ah = Fh, Th = (e, n, r, t) => {
|
|
|
10592
10592
|
if (!Qe || ka(document.body, t.value))
|
|
10593
10593
|
return;
|
|
10594
10594
|
let i = 0, a = !1, o = "0";
|
|
10595
|
-
const
|
|
10595
|
+
const l = () => {
|
|
10596
10596
|
setTimeout(() => {
|
|
10597
10597
|
typeof document > "u" || a && document && (document.body.style.width = o, Nx(document.body, t.value));
|
|
10598
10598
|
}, 200);
|
|
10599
10599
|
};
|
|
10600
10600
|
qe(e, (c) => {
|
|
10601
10601
|
if (!c) {
|
|
10602
|
-
|
|
10602
|
+
l();
|
|
10603
10603
|
return;
|
|
10604
10604
|
}
|
|
10605
10605
|
a = !ka(document.body, t.value), a && (o = document.body.style.width, $x(document.body, t.value)), i = qx(r.namespace.value);
|
|
10606
|
-
const
|
|
10607
|
-
i > 0 && (
|
|
10608
|
-
}), Ga(() =>
|
|
10606
|
+
const s = document.documentElement.clientHeight < document.body.scrollHeight, f = Vx(document.body, "overflowY");
|
|
10607
|
+
i > 0 && (s || f === "scroll") && a && (document.body.style.width = `calc(100% - ${i}px)`);
|
|
10608
|
+
}), Ga(() => l());
|
|
10609
10609
|
}, kh = (e) => ["", ...os].includes(e), Yr = "_trap-focus-children", Gt = [], Wa = (e) => {
|
|
10610
10610
|
var n;
|
|
10611
10611
|
if (Gt.length === 0)
|
|
@@ -10700,7 +10700,7 @@ const Ah = Fh, Th = (e, n, r, t) => {
|
|
|
10700
10700
|
zIndex: t,
|
|
10701
10701
|
ns: i,
|
|
10702
10702
|
size: a
|
|
10703
|
-
} = Ox("message-box", j(() => e.buttonSize)), { t: o } = r, { nextZIndex:
|
|
10703
|
+
} = Ox("message-box", j(() => e.buttonSize)), { t: o } = r, { nextZIndex: l } = t, c = he(!1), s = Ja({
|
|
10704
10704
|
autofocus: !0,
|
|
10705
10705
|
beforeClose: null,
|
|
10706
10706
|
callback: null,
|
|
@@ -10736,57 +10736,57 @@ const Ah = Fh, Th = (e, n, r, t) => {
|
|
|
10736
10736
|
confirmButtonDisabled: !1,
|
|
10737
10737
|
editorErrorMessage: "",
|
|
10738
10738
|
validateError: !1,
|
|
10739
|
-
zIndex:
|
|
10739
|
+
zIndex: l()
|
|
10740
10740
|
}), f = j(() => {
|
|
10741
|
-
const Y =
|
|
10741
|
+
const Y = s.type;
|
|
10742
10742
|
return { [i.bm("icon", Y)]: Y && Ia[Y] };
|
|
10743
10743
|
}), v = Vr(), h = Vr(), g = j(() => {
|
|
10744
|
-
const Y =
|
|
10745
|
-
return
|
|
10746
|
-
}), d = j(() => !!
|
|
10747
|
-
qe(() =>
|
|
10744
|
+
const Y = s.type;
|
|
10745
|
+
return s.icon || Y && Ia[Y] || "";
|
|
10746
|
+
}), d = j(() => !!s.message), p = he(), y = he(), _ = he(), b = he(), C = he(), E = j(() => s.confirmButtonClass);
|
|
10747
|
+
qe(() => s.inputValue, async (Y) => {
|
|
10748
10748
|
await Ne(), e.boxType === "prompt" && Y && I();
|
|
10749
10749
|
}, { immediate: !0 }), qe(() => c.value, (Y) => {
|
|
10750
10750
|
var X, Z;
|
|
10751
|
-
Y && (e.boxType !== "prompt" && (
|
|
10751
|
+
Y && (e.boxType !== "prompt" && (s.autofocus ? _.value = (Z = (X = C.value) == null ? void 0 : X.$el) != null ? Z : p.value : _.value = p.value), s.zIndex = l()), e.boxType === "prompt" && (Y ? Ne().then(() => {
|
|
10752
10752
|
var ae;
|
|
10753
|
-
b.value && b.value.$el && (
|
|
10754
|
-
}) : (
|
|
10753
|
+
b.value && b.value.$el && (s.autofocus ? _.value = (ae = P()) != null ? ae : p.value : _.value = p.value);
|
|
10754
|
+
}) : (s.editorErrorMessage = "", s.validateError = !1));
|
|
10755
10755
|
});
|
|
10756
10756
|
const T = j(() => e.draggable), A = j(() => e.overflow);
|
|
10757
|
-
Th(
|
|
10757
|
+
Th(p, y, T, A), Et(async () => {
|
|
10758
10758
|
await Ne(), e.closeOnHashChange && window.addEventListener("hashchange", S);
|
|
10759
10759
|
}), P0(() => {
|
|
10760
10760
|
e.closeOnHashChange && window.removeEventListener("hashchange", S);
|
|
10761
10761
|
});
|
|
10762
10762
|
function S() {
|
|
10763
10763
|
c.value && (c.value = !1, Ne(() => {
|
|
10764
|
-
|
|
10764
|
+
s.action && n("action", s.action);
|
|
10765
10765
|
}));
|
|
10766
10766
|
}
|
|
10767
10767
|
const k = () => {
|
|
10768
|
-
e.closeOnClickModal && B(
|
|
10768
|
+
e.closeOnClickModal && B(s.distinguishCancelAndClose ? "close" : "cancel");
|
|
10769
10769
|
}, L = ws(k), F = (Y) => {
|
|
10770
|
-
if (
|
|
10770
|
+
if (s.inputType !== "textarea")
|
|
10771
10771
|
return Y.preventDefault(), B("confirm");
|
|
10772
10772
|
}, B = (Y) => {
|
|
10773
10773
|
var X;
|
|
10774
|
-
e.boxType === "prompt" && Y === "confirm" && !I() || (
|
|
10774
|
+
e.boxType === "prompt" && Y === "confirm" && !I() || (s.action = Y, s.beforeClose ? (X = s.beforeClose) == null || X.call(s, Y, s, S) : S());
|
|
10775
10775
|
}, I = () => {
|
|
10776
10776
|
if (e.boxType === "prompt") {
|
|
10777
|
-
const Y =
|
|
10778
|
-
if (Y && !Y.test(
|
|
10779
|
-
return
|
|
10780
|
-
const X =
|
|
10777
|
+
const Y = s.inputPattern;
|
|
10778
|
+
if (Y && !Y.test(s.inputValue || ""))
|
|
10779
|
+
return s.editorErrorMessage = s.inputErrorMessage || o("el.messagebox.error"), s.validateError = !0, !1;
|
|
10780
|
+
const X = s.inputValidator;
|
|
10781
10781
|
if (c0(X)) {
|
|
10782
|
-
const Z = X(
|
|
10782
|
+
const Z = X(s.inputValue);
|
|
10783
10783
|
if (Z === !1)
|
|
10784
|
-
return
|
|
10784
|
+
return s.editorErrorMessage = s.inputErrorMessage || o("el.messagebox.error"), s.validateError = !0, !1;
|
|
10785
10785
|
if (dt(Z))
|
|
10786
|
-
return
|
|
10786
|
+
return s.editorErrorMessage = Z, s.validateError = !0, !1;
|
|
10787
10787
|
}
|
|
10788
10788
|
}
|
|
10789
|
-
return
|
|
10789
|
+
return s.editorErrorMessage = "", s.validateError = !1, !0;
|
|
10790
10790
|
}, P = () => {
|
|
10791
10791
|
var Y, X;
|
|
10792
10792
|
const Z = (Y = b.value) == null ? void 0 : Y.$refs;
|
|
@@ -10797,7 +10797,7 @@ const Ah = Fh, Th = (e, n, r, t) => {
|
|
|
10797
10797
|
e.closeOnPressEscape && W();
|
|
10798
10798
|
};
|
|
10799
10799
|
return e.lockScroll && Sh(c), {
|
|
10800
|
-
..._l(
|
|
10800
|
+
..._l(s),
|
|
10801
10801
|
ns: i,
|
|
10802
10802
|
overlayEvent: L,
|
|
10803
10803
|
visible: c,
|
|
@@ -10808,7 +10808,7 @@ const Ah = Fh, Th = (e, n, r, t) => {
|
|
|
10808
10808
|
btnSize: a,
|
|
10809
10809
|
iconComponent: g,
|
|
10810
10810
|
confirmButtonClasses: E,
|
|
10811
|
-
rootRef:
|
|
10811
|
+
rootRef: p,
|
|
10812
10812
|
focusStartRef: _,
|
|
10813
10813
|
headerRef: y,
|
|
10814
10814
|
inputRef: b,
|
|
@@ -10824,7 +10824,7 @@ const Ah = Fh, Th = (e, n, r, t) => {
|
|
|
10824
10824
|
}
|
|
10825
10825
|
});
|
|
10826
10826
|
function Mh(e, n, r, t, i, a) {
|
|
10827
|
-
const o = je("el-icon"),
|
|
10827
|
+
const o = je("el-icon"), l = je("el-input"), c = je("el-button"), s = je("el-focus-trap"), f = je("el-overlay");
|
|
10828
10828
|
return q(), xe(Wr, {
|
|
10829
10829
|
name: "fade-in-linear",
|
|
10830
10830
|
onAfterLeave: (v) => e.$emit("vanish"),
|
|
@@ -10847,7 +10847,7 @@ function Mh(e, n, r, t, i, a) {
|
|
|
10847
10847
|
onMousedown: e.overlayEvent.onMousedown,
|
|
10848
10848
|
onMouseup: e.overlayEvent.onMouseup
|
|
10849
10849
|
}, [
|
|
10850
|
-
Ie(
|
|
10850
|
+
Ie(s, {
|
|
10851
10851
|
loop: "",
|
|
10852
10852
|
trapped: e.visible,
|
|
10853
10853
|
"focus-trap-el": e.rootRef,
|
|
@@ -10945,7 +10945,7 @@ function Mh(e, n, r, t, i, a) {
|
|
|
10945
10945
|
Un(ee("div", {
|
|
10946
10946
|
class: ne(e.ns.e("input"))
|
|
10947
10947
|
}, [
|
|
10948
|
-
Ie(
|
|
10948
|
+
Ie(l, {
|
|
10949
10949
|
id: e.inputId,
|
|
10950
10950
|
ref: "inputRef",
|
|
10951
10951
|
modelValue: e.inputValue,
|
|
@@ -11033,8 +11033,8 @@ const I0 = /* @__PURE__ */ new Map(), Oh = (e) => {
|
|
|
11033
11033
|
eo(null, r), I0.delete(i);
|
|
11034
11034
|
}, e.onAction = (a) => {
|
|
11035
11035
|
const o = I0.get(i);
|
|
11036
|
-
let
|
|
11037
|
-
e.showInput ?
|
|
11036
|
+
let l;
|
|
11037
|
+
e.showInput ? l = { value: i.inputValue, action: a } : l = a, e.callback ? e.callback(l, t.proxy) : a === "cancel" || a === "close" ? e.distinguishCancelAndClose && a !== "cancel" ? o.reject("close") : o.reject("cancel") : o.resolve(l);
|
|
11038
11038
|
};
|
|
11039
11039
|
const t = zh(e, r, n), i = t.proxy;
|
|
11040
11040
|
for (const a in e)
|
|
@@ -11097,9 +11097,9 @@ function Uh({
|
|
|
11097
11097
|
showCancelButton: i = !0,
|
|
11098
11098
|
confirmButtonText: a = "确定",
|
|
11099
11099
|
cancelButtonText: o = "取消",
|
|
11100
|
-
center:
|
|
11100
|
+
center: l = !1,
|
|
11101
11101
|
overflow: c = !1,
|
|
11102
|
-
draggable:
|
|
11102
|
+
draggable: s = !1,
|
|
11103
11103
|
appendTo: f,
|
|
11104
11104
|
customStyle: v = {},
|
|
11105
11105
|
doSomething: h = () => {
|
|
@@ -11115,12 +11115,12 @@ function Uh({
|
|
|
11115
11115
|
showCancelButton: i,
|
|
11116
11116
|
confirmButtonText: a,
|
|
11117
11117
|
cancelButtonText: o,
|
|
11118
|
-
center:
|
|
11118
|
+
center: l,
|
|
11119
11119
|
overflow: c,
|
|
11120
|
-
draggable:
|
|
11120
|
+
draggable: s,
|
|
11121
11121
|
appendTo: f,
|
|
11122
11122
|
customStyle: v,
|
|
11123
|
-
beforeClose: (d,
|
|
11123
|
+
beforeClose: (d, p, y) => {
|
|
11124
11124
|
if (d === "confirm") {
|
|
11125
11125
|
h(), y();
|
|
11126
11126
|
return;
|
|
@@ -11158,8 +11158,8 @@ function Or(e, n, r) {
|
|
|
11158
11158
|
a.width = t.can_w, a.height = t.can_h;
|
|
11159
11159
|
let o = a.getContext("2d");
|
|
11160
11160
|
o.rotate(t.rotate * Math.PI / 180), o.font = t.font, o.fillStyle = t.color, o.textAlign = t.align, o.textBaseline = "Middle", o.fillText(n[0], a.width / 8, a.height / 2), o.fillText(n[1], a.width / 8, a.height * 2 / 3);
|
|
11161
|
-
let
|
|
11162
|
-
return
|
|
11161
|
+
let l = document.createElement("div");
|
|
11162
|
+
return l.id = i, l.style.display = "block", l.style.visibility = "visible", l.style.opacity = "1", l.style.pointerEvents = "none", l.style.top = "0px", l.style.left = "0px", l.style.position = "fixed", l.style.zIndex = "100000", l.style.width = document.documentElement.clientWidth + "px", l.style.height = document.documentElement.clientHeight + "px", l.style.background = "url(" + a.toDataURL("image/png") + ") left top repeat", document.body.appendChild(l), i;
|
|
11163
11163
|
}
|
|
11164
11164
|
hi.set = (e, n, r, t = 500) => {
|
|
11165
11165
|
let i = Or(e, n, r);
|
|
@@ -11375,9 +11375,9 @@ function op(e, n, r, t, i, a) {
|
|
|
11375
11375
|
Ie(o, F0({
|
|
11376
11376
|
background: r.background,
|
|
11377
11377
|
"current-page": a.currentPage,
|
|
11378
|
-
"onUpdate:currentPage": n[0] || (n[0] = (
|
|
11378
|
+
"onUpdate:currentPage": n[0] || (n[0] = (l) => a.currentPage = l),
|
|
11379
11379
|
"page-size": a.pageSize,
|
|
11380
|
-
"onUpdate:pageSize": n[1] || (n[1] = (
|
|
11380
|
+
"onUpdate:pageSize": n[1] || (n[1] = (l) => a.pageSize = l),
|
|
11381
11381
|
layout: r.layout,
|
|
11382
11382
|
"page-sizes": r.pageSizes,
|
|
11383
11383
|
"pager-count": r.pagerCount,
|
|
@@ -11599,8 +11599,8 @@ const up = {
|
|
|
11599
11599
|
}
|
|
11600
11600
|
}, fp = ["onClick"], dp = { class: "frequencyDate" };
|
|
11601
11601
|
function xp(e, n, r, t, i, a) {
|
|
11602
|
-
const o = je("el-date-picker"),
|
|
11603
|
-
return q(), xe(
|
|
11602
|
+
const o = je("el-date-picker"), l = je("el-form-item");
|
|
11603
|
+
return q(), xe(l, {
|
|
11604
11604
|
label: r.formItemLabel,
|
|
11605
11605
|
prop: "date"
|
|
11606
11606
|
}, {
|
|
@@ -11613,7 +11613,7 @@ function xp(e, n, r, t, i, a) {
|
|
|
11613
11613
|
}, [
|
|
11614
11614
|
(q(!0), J(ft, null, En(i.date_type, (c) => (q(), J("div", {
|
|
11615
11615
|
class: ne(["one", { active: a.dateType === c.dictValue }]),
|
|
11616
|
-
onClick: (
|
|
11616
|
+
onClick: (s) => a.dateTypeF(c.dictValue),
|
|
11617
11617
|
key: c.dictValue
|
|
11618
11618
|
}, be(c.dictLabel), 11, fp))), 128))
|
|
11619
11619
|
], 4),
|
|
@@ -11806,8 +11806,8 @@ const pp = hp, vp = ["onClick"], mp = {
|
|
|
11806
11806
|
class: "frequencyDate"
|
|
11807
11807
|
}, gp = { class: "zhi" };
|
|
11808
11808
|
function yp(e, n, r, t, i, a) {
|
|
11809
|
-
const o = je("el-date-picker"),
|
|
11810
|
-
return q(), xe(
|
|
11809
|
+
const o = je("el-date-picker"), l = je("el-form-item");
|
|
11810
|
+
return q(), xe(l, {
|
|
11811
11811
|
label: e.formItemLabel,
|
|
11812
11812
|
prop: "date"
|
|
11813
11813
|
}, {
|
|
@@ -11820,7 +11820,7 @@ function yp(e, n, r, t, i, a) {
|
|
|
11820
11820
|
}, [
|
|
11821
11821
|
(q(!0), J(ft, null, En(e.date_type, (c) => (q(), J("div", {
|
|
11822
11822
|
class: ne(["one", { active: e.dateType === c.dictValue }]),
|
|
11823
|
-
onClick: (
|
|
11823
|
+
onClick: (s) => e.dateTypeF(c.dictValue),
|
|
11824
11824
|
key: c.dictValue
|
|
11825
11825
|
}, be(c.dictLabel), 11, vp))), 128))
|
|
11826
11826
|
], 4),
|
|
@@ -12002,8 +12002,8 @@ const Is = /* @__PURE__ */ _t(pp, [["render", yp], ["__scopeId", "data-v-1e7c37e
|
|
|
12002
12002
|
};
|
|
12003
12003
|
const Cp = bp, Ep = (e) => (jr("data-v-2adc6833"), e = e(), Gr(), e), _p = /* @__PURE__ */ Ep(() => /* @__PURE__ */ ee("span", { class: "and" }, "~", -1));
|
|
12004
12004
|
function Bp(e, n, r, t, i, a) {
|
|
12005
|
-
const o = je("el-date-picker"),
|
|
12006
|
-
return q(), xe(
|
|
12005
|
+
const o = je("el-date-picker"), l = je("el-form-item");
|
|
12006
|
+
return q(), xe(l, {
|
|
12007
12007
|
label: e.formItemLabel,
|
|
12008
12008
|
prop: e.formItemProp,
|
|
12009
12009
|
rules: e.formItemRules
|
|
@@ -12089,30 +12089,30 @@ const Tp = {
|
|
|
12089
12089
|
},
|
|
12090
12090
|
computed: {
|
|
12091
12091
|
values() {
|
|
12092
|
-
return this.value !== null && typeof this.value < "u" ?
|
|
12092
|
+
return this.value !== null && typeof this.value < "u" ? Array.isArray(this.value) ? this.value : [this.value] : [];
|
|
12093
12093
|
}
|
|
12094
12094
|
}
|
|
12095
12095
|
}, Sp = ["index"];
|
|
12096
12096
|
function kp(e, n, r, t, i, a) {
|
|
12097
12097
|
const o = je("el-tag");
|
|
12098
12098
|
return q(), J("div", null, [
|
|
12099
|
-
(q(!0), J(ft, null, En(r.options, (
|
|
12100
|
-
key:
|
|
12099
|
+
(q(!0), J(ft, null, En(r.options, (l, c) => (q(), J(ft, {
|
|
12100
|
+
key: l.dictValue
|
|
12101
12101
|
}, [
|
|
12102
|
-
a.values.includes(
|
|
12103
|
-
|
|
12102
|
+
a.values.includes(l.dictValue) ? (q(), J(ft, { key: 0 }, [
|
|
12103
|
+
l.listClass == "default" || l.listClass == "" ? (q(), J("span", {
|
|
12104
12104
|
key: 0,
|
|
12105
12105
|
index: c,
|
|
12106
|
-
class: ne(
|
|
12107
|
-
}, be(
|
|
12106
|
+
class: ne(l.cssClass)
|
|
12107
|
+
}, be(l.dictLabel), 11, Sp)) : (q(), xe(o, {
|
|
12108
12108
|
key: 1,
|
|
12109
12109
|
"disable-transitions": !0,
|
|
12110
12110
|
index: c,
|
|
12111
|
-
type:
|
|
12112
|
-
class: ne(
|
|
12111
|
+
type: l.listClass === void 0 || l.listClass === null || l.listClass === "" ? "info" : l.listClass,
|
|
12112
|
+
class: ne(l.cssClass)
|
|
12113
12113
|
}, {
|
|
12114
12114
|
default: ve(() => [
|
|
12115
|
-
on(be(
|
|
12115
|
+
on(be(l.dictLabel), 1)
|
|
12116
12116
|
]),
|
|
12117
12117
|
_: 2
|
|
12118
12118
|
}, 1032, ["index", "type", "class"]))
|
|
@@ -12120,7 +12120,7 @@ function kp(e, n, r, t, i, a) {
|
|
|
12120
12120
|
], 64))), 128))
|
|
12121
12121
|
]);
|
|
12122
12122
|
}
|
|
12123
|
-
const Ms = /* @__PURE__ */ _t(Tp, [["render", kp], ["__scopeId", "data-v-
|
|
12123
|
+
const Ms = /* @__PURE__ */ _t(Tp, [["render", kp], ["__scopeId", "data-v-1155b7d5"]]);
|
|
12124
12124
|
var Ip = function(e, n) {
|
|
12125
12125
|
var r = document.querySelector("#" + e + " > .particles-js-canvas-el");
|
|
12126
12126
|
this.pJS = {
|
|
@@ -12270,8 +12270,8 @@ var Ip = function(e, n) {
|
|
|
12270
12270
|
}, t.fn.particle = function(i, a, o) {
|
|
12271
12271
|
if (this.radius = (t.particles.size.random ? Math.random() : 1) * t.particles.size.value, t.particles.size.anim.enable && (this.size_status = !1, this.vs = t.particles.size.anim.speed / 100, t.particles.size.anim.sync || (this.vs = this.vs * Math.random())), this.x = o ? o.x : Math.random() * t.canvas.w, this.y = o ? o.y : Math.random() * t.canvas.h, this.x > t.canvas.w - this.radius * 2 ? this.x = this.x - this.radius : this.x < this.radius * 2 && (this.x = this.x + this.radius), this.y > t.canvas.h - this.radius * 2 ? this.y = this.y - this.radius : this.y < this.radius * 2 && (this.y = this.y + this.radius), t.particles.move.bounce && t.fn.vendors.checkOverlap(this, o), this.color = {}, typeof i.value == "object")
|
|
12272
12272
|
if (i.value instanceof Array) {
|
|
12273
|
-
var
|
|
12274
|
-
this.color.rgb = zr(
|
|
12273
|
+
var l = i.value[Math.floor(Math.random() * t.particles.color.value.length)];
|
|
12274
|
+
this.color.rgb = zr(l);
|
|
12275
12275
|
} else
|
|
12276
12276
|
i.value.r != null && i.value.g != null && i.value.b != null && (this.color.rgb = {
|
|
12277
12277
|
r: i.value.r,
|
|
@@ -12320,14 +12320,14 @@ var Ip = function(e, n) {
|
|
|
12320
12320
|
break;
|
|
12321
12321
|
}
|
|
12322
12322
|
t.particles.move.straight ? (this.vx = c.x, this.vy = c.y, t.particles.move.random && (this.vx = this.vx * Math.random(), this.vy = this.vy * Math.random())) : (this.vx = c.x + Math.random() - 0.5, this.vy = c.y + Math.random() - 0.5), this.vx_i = this.vx, this.vy_i = this.vy;
|
|
12323
|
-
var
|
|
12324
|
-
if (typeof
|
|
12325
|
-
if (
|
|
12326
|
-
var f =
|
|
12323
|
+
var s = t.particles.shape.type;
|
|
12324
|
+
if (typeof s == "object") {
|
|
12325
|
+
if (s instanceof Array) {
|
|
12326
|
+
var f = s[Math.floor(Math.random() * s.length)];
|
|
12327
12327
|
this.shape = f;
|
|
12328
12328
|
}
|
|
12329
12329
|
} else
|
|
12330
|
-
this.shape =
|
|
12330
|
+
this.shape = s;
|
|
12331
12331
|
if (this.shape == "image") {
|
|
12332
12332
|
var v = t.particles.shape;
|
|
12333
12333
|
this.img = {
|
|
@@ -12346,10 +12346,10 @@ var Ip = function(e, n) {
|
|
|
12346
12346
|
else
|
|
12347
12347
|
var o = i.opacity;
|
|
12348
12348
|
if (i.color.rgb)
|
|
12349
|
-
var
|
|
12349
|
+
var l = "rgba(" + i.color.rgb.r + "," + i.color.rgb.g + "," + i.color.rgb.b + "," + o + ")";
|
|
12350
12350
|
else
|
|
12351
|
-
var
|
|
12352
|
-
switch (t.canvas.ctx.fillStyle =
|
|
12351
|
+
var l = "hsla(" + i.color.hsl.h + "," + i.color.hsl.s + "%," + i.color.hsl.l + "%," + o + ")";
|
|
12352
|
+
switch (t.canvas.ctx.fillStyle = l, t.canvas.ctx.beginPath(), i.shape) {
|
|
12353
12353
|
case "circle":
|
|
12354
12354
|
t.canvas.ctx.arc(i.x, i.y, a, 0, Math.PI * 2, !1);
|
|
12355
12355
|
break;
|
|
@@ -12390,7 +12390,7 @@ var Ip = function(e, n) {
|
|
|
12390
12390
|
);
|
|
12391
12391
|
break;
|
|
12392
12392
|
case "image":
|
|
12393
|
-
let
|
|
12393
|
+
let s = function() {
|
|
12394
12394
|
t.canvas.ctx.drawImage(
|
|
12395
12395
|
c,
|
|
12396
12396
|
i.x - a,
|
|
@@ -12403,7 +12403,7 @@ var Ip = function(e, n) {
|
|
|
12403
12403
|
var c = i.img.obj;
|
|
12404
12404
|
else
|
|
12405
12405
|
var c = t.tmp.img_obj;
|
|
12406
|
-
c &&
|
|
12406
|
+
c && s();
|
|
12407
12407
|
break;
|
|
12408
12408
|
}
|
|
12409
12409
|
t.canvas.ctx.closePath(), t.particles.shape.stroke.width > 0 && (t.canvas.ctx.strokeStyle = t.particles.shape.stroke.color, t.canvas.ctx.lineWidth = t.particles.shape.stroke.width, t.canvas.ctx.stroke()), t.canvas.ctx.fill();
|
|
@@ -12418,28 +12418,28 @@ var Ip = function(e, n) {
|
|
|
12418
12418
|
a.x += a.vx * o, a.y += a.vy * o;
|
|
12419
12419
|
}
|
|
12420
12420
|
if (t.particles.opacity.anim.enable && (a.opacity_status == !0 ? (a.opacity >= t.particles.opacity.value && (a.opacity_status = !1), a.opacity += a.vo) : (a.opacity <= t.particles.opacity.anim.opacity_min && (a.opacity_status = !0), a.opacity -= a.vo), a.opacity < 0 && (a.opacity = 0)), t.particles.size.anim.enable && (a.size_status == !0 ? (a.radius >= t.particles.size.value && (a.size_status = !1), a.radius += a.vs) : (a.radius <= t.particles.size.anim.size_min && (a.size_status = !0), a.radius -= a.vs), a.radius < 0 && (a.radius = 0)), t.particles.move.out_mode == "bounce")
|
|
12421
|
-
var
|
|
12421
|
+
var l = {
|
|
12422
12422
|
x_left: a.radius,
|
|
12423
12423
|
x_right: t.canvas.w,
|
|
12424
12424
|
y_top: a.radius,
|
|
12425
12425
|
y_bottom: t.canvas.h
|
|
12426
12426
|
};
|
|
12427
12427
|
else
|
|
12428
|
-
var
|
|
12428
|
+
var l = {
|
|
12429
12429
|
x_left: -a.radius,
|
|
12430
12430
|
x_right: t.canvas.w + a.radius,
|
|
12431
12431
|
y_top: -a.radius,
|
|
12432
12432
|
y_bottom: t.canvas.h + a.radius
|
|
12433
12433
|
};
|
|
12434
|
-
switch (a.x - a.radius > t.canvas.w ? (a.x =
|
|
12434
|
+
switch (a.x - a.radius > t.canvas.w ? (a.x = l.x_left, a.y = Math.random() * t.canvas.h) : a.x + a.radius < 0 && (a.x = l.x_right, a.y = Math.random() * t.canvas.h), a.y - a.radius > t.canvas.h ? (a.y = l.y_top, a.x = Math.random() * t.canvas.w) : a.y + a.radius < 0 && (a.y = l.y_bottom, a.x = Math.random() * t.canvas.w), t.particles.move.out_mode) {
|
|
12435
12435
|
case "bounce":
|
|
12436
12436
|
(a.x + a.radius > t.canvas.w || a.x - a.radius < 0) && (a.vx = -a.vx), (a.y + a.radius > t.canvas.h || a.y - a.radius < 0) && (a.vy = -a.vy);
|
|
12437
12437
|
break;
|
|
12438
12438
|
}
|
|
12439
12439
|
if (ct("grab", t.interactivity.events.onhover.mode) && t.fn.modes.grabParticle(a), (ct("bubble", t.interactivity.events.onhover.mode) || ct("bubble", t.interactivity.events.onclick.mode)) && t.fn.modes.bubbleParticle(a), (ct("repulse", t.interactivity.events.onhover.mode) || ct("repulse", t.interactivity.events.onclick.mode)) && t.fn.modes.repulseParticle(a), t.particles.line_linked.enable || t.particles.move.attract.enable)
|
|
12440
12440
|
for (var c = i + 1; c < t.particles.array.length; c++) {
|
|
12441
|
-
var
|
|
12442
|
-
t.particles.line_linked.enable && t.fn.interact.linkParticles(a,
|
|
12441
|
+
var s = t.particles.array[c];
|
|
12442
|
+
t.particles.line_linked.enable && t.fn.interact.linkParticles(a, s), t.particles.move.attract.enable && t.fn.interact.attractParticles(a, s), t.particles.move.bounce && t.fn.interact.bounceParticles(a, s);
|
|
12443
12443
|
}
|
|
12444
12444
|
}
|
|
12445
12445
|
}, t.fn.particlesDraw = function() {
|
|
@@ -12453,23 +12453,23 @@ var Ip = function(e, n) {
|
|
|
12453
12453
|
}, t.fn.particlesRefresh = function() {
|
|
12454
12454
|
cancelRequestAnimFrame(t.fn.checkAnimFrame), cancelRequestAnimFrame(t.fn.drawAnimFrame), t.tmp.source_svg = void 0, t.tmp.img_obj = void 0, t.tmp.count_svg = 0, t.fn.particlesEmpty(), t.fn.canvasClear(), t.fn.vendors.start();
|
|
12455
12455
|
}, t.fn.interact.linkParticles = function(i, a) {
|
|
12456
|
-
var o = i.x - a.x,
|
|
12456
|
+
var o = i.x - a.x, l = i.y - a.y, c = Math.sqrt(o * o + l * l);
|
|
12457
12457
|
if (c <= t.particles.line_linked.distance) {
|
|
12458
|
-
var
|
|
12459
|
-
if (
|
|
12458
|
+
var s = t.particles.line_linked.opacity - c / (1 / t.particles.line_linked.opacity) / t.particles.line_linked.distance;
|
|
12459
|
+
if (s > 0) {
|
|
12460
12460
|
var f = t.particles.line_linked.color_rgb_line;
|
|
12461
|
-
t.canvas.ctx.strokeStyle = "rgba(" + f.r + "," + f.g + "," + f.b + "," +
|
|
12461
|
+
t.canvas.ctx.strokeStyle = "rgba(" + f.r + "," + f.g + "," + f.b + "," + s + ")", t.canvas.ctx.lineWidth = t.particles.line_linked.width, t.canvas.ctx.beginPath(), t.canvas.ctx.moveTo(i.x, i.y), t.canvas.ctx.lineTo(a.x, a.y), t.canvas.ctx.stroke(), t.canvas.ctx.closePath();
|
|
12462
12462
|
}
|
|
12463
12463
|
}
|
|
12464
12464
|
}, t.fn.interact.attractParticles = function(i, a) {
|
|
12465
|
-
var o = i.x - a.x,
|
|
12465
|
+
var o = i.x - a.x, l = i.y - a.y, c = Math.sqrt(o * o + l * l);
|
|
12466
12466
|
if (c <= t.particles.line_linked.distance) {
|
|
12467
|
-
var
|
|
12468
|
-
i.vx -=
|
|
12467
|
+
var s = o / (t.particles.move.attract.rotateX * 1e3), f = l / (t.particles.move.attract.rotateY * 1e3);
|
|
12468
|
+
i.vx -= s, i.vy -= f, a.vx += s, a.vy += f;
|
|
12469
12469
|
}
|
|
12470
12470
|
}, t.fn.interact.bounceParticles = function(i, a) {
|
|
12471
|
-
var o = i.x - a.x,
|
|
12472
|
-
c <=
|
|
12471
|
+
var o = i.x - a.x, l = i.y - a.y, c = Math.sqrt(o * o + l * l), s = i.radius + a.radius;
|
|
12472
|
+
c <= s && (i.vx = -i.vx, i.vy = -i.vy, a.vx = -a.vx, a.vy = -a.vy);
|
|
12473
12473
|
}, t.fn.modes.pushParticles = function(i, a) {
|
|
12474
12474
|
t.tmp.pushing = !0;
|
|
12475
12475
|
for (var o = 0; o < i; o++)
|
|
@@ -12490,16 +12490,16 @@ var Ip = function(e, n) {
|
|
|
12490
12490
|
let g = function() {
|
|
12491
12491
|
i.opacity_bubble = i.opacity, i.radius_bubble = i.radius;
|
|
12492
12492
|
};
|
|
12493
|
-
var a = i.x - t.interactivity.mouse.pos_x, o = i.y - t.interactivity.mouse.pos_y,
|
|
12494
|
-
if (
|
|
12493
|
+
var a = i.x - t.interactivity.mouse.pos_x, o = i.y - t.interactivity.mouse.pos_y, l = Math.sqrt(a * a + o * o), c = 1 - l / t.interactivity.modes.bubble.distance;
|
|
12494
|
+
if (l <= t.interactivity.modes.bubble.distance) {
|
|
12495
12495
|
if (c >= 0 && t.interactivity.status == "mousemove") {
|
|
12496
12496
|
if (t.interactivity.modes.bubble.size != t.particles.size.value)
|
|
12497
12497
|
if (t.interactivity.modes.bubble.size > t.particles.size.value) {
|
|
12498
|
-
var
|
|
12499
|
-
|
|
12498
|
+
var s = i.radius + t.interactivity.modes.bubble.size * c;
|
|
12499
|
+
s >= 0 && (i.radius_bubble = s);
|
|
12500
12500
|
} else {
|
|
12501
|
-
var f = i.radius - t.interactivity.modes.bubble.size,
|
|
12502
|
-
|
|
12501
|
+
var f = i.radius - t.interactivity.modes.bubble.size, s = i.radius - f * c;
|
|
12502
|
+
s > 0 ? i.radius_bubble = s : i.radius_bubble = 0;
|
|
12503
12503
|
}
|
|
12504
12504
|
if (t.interactivity.modes.bubble.opacity != t.particles.opacity.value)
|
|
12505
12505
|
if (t.interactivity.modes.bubble.opacity > t.particles.opacity.value) {
|
|
@@ -12514,14 +12514,14 @@ var Ip = function(e, n) {
|
|
|
12514
12514
|
g();
|
|
12515
12515
|
t.interactivity.status == "mouseleave" && g();
|
|
12516
12516
|
} else if (t.interactivity.events.onclick.enable && ct("bubble", t.interactivity.events.onclick.mode)) {
|
|
12517
|
-
let g = function(d,
|
|
12518
|
-
if (d !=
|
|
12517
|
+
let g = function(d, p, y, _, b) {
|
|
12518
|
+
if (d != p)
|
|
12519
12519
|
if (t.tmp.bubble_duration_end) {
|
|
12520
12520
|
if (y != null) {
|
|
12521
12521
|
var T = _ - h * (_ - d) / t.interactivity.modes.bubble.duration, A = d - T;
|
|
12522
12522
|
E = d + A, b == "size" && (i.radius_bubble = E), b == "opacity" && (i.opacity_bubble = E);
|
|
12523
12523
|
}
|
|
12524
|
-
} else if (
|
|
12524
|
+
} else if (l <= t.interactivity.modes.bubble.distance) {
|
|
12525
12525
|
if (y != null)
|
|
12526
12526
|
var C = y;
|
|
12527
12527
|
else
|
|
@@ -12534,14 +12534,14 @@ var Ip = function(e, n) {
|
|
|
12534
12534
|
b == "size" && (i.radius_bubble = void 0), b == "opacity" && (i.opacity_bubble = void 0);
|
|
12535
12535
|
};
|
|
12536
12536
|
if (t.tmp.bubble_clicking) {
|
|
12537
|
-
var a = i.x - t.interactivity.mouse.click_pos_x, o = i.y - t.interactivity.mouse.click_pos_y,
|
|
12537
|
+
var a = i.x - t.interactivity.mouse.click_pos_x, o = i.y - t.interactivity.mouse.click_pos_y, l = Math.sqrt(a * a + o * o), h = ((/* @__PURE__ */ new Date()).getTime() - t.interactivity.mouse.click_time) / 1e3;
|
|
12538
12538
|
h > t.interactivity.modes.bubble.duration && (t.tmp.bubble_duration_end = !0), h > t.interactivity.modes.bubble.duration * 2 && (t.tmp.bubble_clicking = !1, t.tmp.bubble_duration_end = !1);
|
|
12539
12539
|
}
|
|
12540
12540
|
t.tmp.bubble_clicking && (g(t.interactivity.modes.bubble.size, t.particles.size.value, i.radius_bubble, i.radius, "size"), g(t.interactivity.modes.bubble.opacity, t.particles.opacity.value, i.opacity_bubble, i.opacity, "opacity"));
|
|
12541
12541
|
}
|
|
12542
12542
|
}, t.fn.modes.repulseParticle = function(i) {
|
|
12543
12543
|
if (t.interactivity.events.onhover.enable && ct("repulse", t.interactivity.events.onhover.mode) && t.interactivity.status == "mousemove") {
|
|
12544
|
-
var a = i.x - t.interactivity.mouse.pos_x, o = i.y - t.interactivity.mouse.pos_y,
|
|
12544
|
+
var a = i.x - t.interactivity.mouse.pos_x, o = i.y - t.interactivity.mouse.pos_y, l = Math.sqrt(a * a + o * o), c = { x: a / l, y: o / l }, s = t.interactivity.modes.repulse.distance, f = 100, v = Pp(1 / s * (-1 * Math.pow(l / s, 2) + 1) * s * f, 0, 50), h = {
|
|
12545
12545
|
x: i.x + c.x * v,
|
|
12546
12546
|
y: i.y + c.y * v
|
|
12547
12547
|
};
|
|
@@ -12558,18 +12558,18 @@ var Ip = function(e, n) {
|
|
|
12558
12558
|
(E.x + i.radius > t.canvas.w || E.x - i.radius < 0) && (i.vx = -i.vx), (E.y + i.radius > t.canvas.h || E.y - i.radius < 0) && (i.vy = -i.vy);
|
|
12559
12559
|
}
|
|
12560
12560
|
};
|
|
12561
|
-
var
|
|
12562
|
-
|
|
12561
|
+
var s = Math.pow(t.interactivity.modes.repulse.distance / 6, 3), g = t.interactivity.mouse.click_pos_x - i.x, d = t.interactivity.mouse.click_pos_y - i.y, p = g * g + d * d, y = -s / p * 1;
|
|
12562
|
+
p <= s && b();
|
|
12563
12563
|
} else
|
|
12564
12564
|
t.tmp.repulse_clicking == !1 && (i.vx = i.vx_i, i.vy = i.vy_i);
|
|
12565
12565
|
}, t.fn.modes.grabParticle = function(i) {
|
|
12566
12566
|
if (t.interactivity.events.onhover.enable && t.interactivity.status == "mousemove") {
|
|
12567
|
-
var a = i.x - t.interactivity.mouse.pos_x, o = i.y - t.interactivity.mouse.pos_y,
|
|
12568
|
-
if (
|
|
12569
|
-
var c = t.interactivity.modes.grab.line_linked.opacity -
|
|
12567
|
+
var a = i.x - t.interactivity.mouse.pos_x, o = i.y - t.interactivity.mouse.pos_y, l = Math.sqrt(a * a + o * o);
|
|
12568
|
+
if (l <= t.interactivity.modes.grab.distance) {
|
|
12569
|
+
var c = t.interactivity.modes.grab.line_linked.opacity - l / (1 / t.interactivity.modes.grab.line_linked.opacity) / t.interactivity.modes.grab.distance;
|
|
12570
12570
|
if (c > 0) {
|
|
12571
|
-
var
|
|
12572
|
-
t.canvas.ctx.strokeStyle = "rgba(" +
|
|
12571
|
+
var s = t.particles.line_linked.color_rgb_line;
|
|
12572
|
+
t.canvas.ctx.strokeStyle = "rgba(" + s.r + "," + s.g + "," + s.b + "," + c + ")", t.canvas.ctx.lineWidth = t.particles.line_linked.width, t.canvas.ctx.beginPath(), t.canvas.ctx.moveTo(i.x, i.y), t.canvas.ctx.lineTo(t.interactivity.mouse.pos_x, t.interactivity.mouse.pos_y), t.canvas.ctx.stroke(), t.canvas.ctx.closePath();
|
|
12573
12573
|
}
|
|
12574
12574
|
}
|
|
12575
12575
|
}
|
|
@@ -12610,27 +12610,27 @@ var Ip = function(e, n) {
|
|
|
12610
12610
|
}
|
|
12611
12611
|
}, t.fn.vendors.checkOverlap = function(i, a) {
|
|
12612
12612
|
for (var o = 0; o < t.particles.array.length; o++) {
|
|
12613
|
-
var
|
|
12614
|
-
f <= i.radius +
|
|
12613
|
+
var l = t.particles.array[o], c = i.x - l.x, s = i.y - l.y, f = Math.sqrt(c * c + s * s);
|
|
12614
|
+
f <= i.radius + l.radius && (i.x = a ? a.x : Math.random() * t.canvas.w, i.y = a ? a.y : Math.random() * t.canvas.h, t.fn.vendors.checkOverlap(i));
|
|
12615
12615
|
}
|
|
12616
12616
|
}, t.fn.vendors.createSvgImg = function(i) {
|
|
12617
|
-
var a = t.tmp.source_svg, o = /#([0-9A-F]{3,6})/gi,
|
|
12617
|
+
var a = t.tmp.source_svg, o = /#([0-9A-F]{3,6})/gi, l = a.replace(o, function(h, g, d, p) {
|
|
12618
12618
|
if (i.color.rgb)
|
|
12619
12619
|
var y = "rgba(" + i.color.rgb.r + "," + i.color.rgb.g + "," + i.color.rgb.b + "," + i.opacity + ")";
|
|
12620
12620
|
else
|
|
12621
12621
|
var y = "hsla(" + i.color.hsl.h + "," + i.color.hsl.s + "%," + i.color.hsl.l + "%," + i.opacity + ")";
|
|
12622
12622
|
return y;
|
|
12623
|
-
}), c = new Blob([
|
|
12623
|
+
}), c = new Blob([l], { type: "image/svg+xml;charset=utf-8" }), s = window.URL || window.webkitURL || window, f = s.createObjectURL(c), v = new Image();
|
|
12624
12624
|
v.addEventListener("load", function() {
|
|
12625
|
-
i.img.obj = v, i.img.loaded = !0,
|
|
12625
|
+
i.img.obj = v, i.img.loaded = !0, s.revokeObjectURL(f), t.tmp.count_svg++;
|
|
12626
12626
|
}), v.src = f;
|
|
12627
12627
|
}, t.fn.vendors.destroypJS = function() {
|
|
12628
12628
|
cancelAnimationFrame(t.fn.drawAnimFrame), r.remove(), pJSDom = null;
|
|
12629
|
-
}, t.fn.vendors.drawShape = function(i, a, o,
|
|
12630
|
-
var f = c *
|
|
12629
|
+
}, t.fn.vendors.drawShape = function(i, a, o, l, c, s) {
|
|
12630
|
+
var f = c * s, v = c / s, h = 180 * (v - 2) / v, g = Math.PI - Math.PI * h / 180;
|
|
12631
12631
|
i.save(), i.beginPath(), i.translate(a, o), i.moveTo(0, 0);
|
|
12632
12632
|
for (var d = 0; d < f; d++)
|
|
12633
|
-
i.lineTo(
|
|
12633
|
+
i.lineTo(l, 0), i.translate(l, 0), i.rotate(g);
|
|
12634
12634
|
i.fill(), i.restore();
|
|
12635
12635
|
}, t.fn.vendors.exportImg = function() {
|
|
12636
12636
|
window.open(t.canvas.el.toDataURL("image/png"), "_blank");
|
|
@@ -12638,8 +12638,8 @@ var Ip = function(e, n) {
|
|
|
12638
12638
|
if (t.tmp.img_error = void 0, t.particles.shape.image.src != "")
|
|
12639
12639
|
if (i == "svg") {
|
|
12640
12640
|
var a = new XMLHttpRequest();
|
|
12641
|
-
a.open("GET", t.particles.shape.image.src), a.onreadystatechange = function(
|
|
12642
|
-
a.readyState == 4 && (a.status == 200 ? (t.tmp.source_svg =
|
|
12641
|
+
a.open("GET", t.particles.shape.image.src), a.onreadystatechange = function(l) {
|
|
12642
|
+
a.readyState == 4 && (a.status == 200 ? (t.tmp.source_svg = l.currentTarget.response, t.fn.vendors.checkBeforeDraw()) : t.tmp.img_error = !0);
|
|
12643
12643
|
}, a.send();
|
|
12644
12644
|
} else {
|
|
12645
12645
|
var o = new Image();
|
|
@@ -12984,35 +12984,42 @@ const Ls = (e = {
|
|
|
12984
12984
|
// import html2Canvas from 'html2canvas';推荐版本1.4.1
|
|
12985
12985
|
JsPDF: null
|
|
12986
12986
|
// import JsPDF from 'jspdf';推荐版本2.5.1
|
|
12987
|
-
}, n, r, t, i) => {
|
|
12988
|
-
|
|
12989
|
-
|
|
12990
|
-
|
|
12991
|
-
const
|
|
12992
|
-
|
|
12993
|
-
|
|
12994
|
-
|
|
12995
|
-
|
|
12996
|
-
|
|
12997
|
-
|
|
12987
|
+
}, n, r, t, i = !1, a = () => {
|
|
12988
|
+
}) => {
|
|
12989
|
+
try {
|
|
12990
|
+
if (t) {
|
|
12991
|
+
const c = Math.floor(277 * r.scrollWidth / 190) + 20;
|
|
12992
|
+
for (let s = 0; s < t.length; s++) {
|
|
12993
|
+
const f = Math.ceil((t[s].offsetTop + t[s].offsetHeight) / c);
|
|
12994
|
+
if (Jp(t, s, f * c)) {
|
|
12995
|
+
var o = "";
|
|
12996
|
+
t[s].localName !== "tr" ? o = f * c - (t[s].offsetTop + t[s].offsetHeight) : o = f * c - (t[s].offsetTop + t[s].offsetHeight + fn) + 20;
|
|
12997
|
+
var l = Zp(o);
|
|
12998
|
+
const v = t[s].parentNode, h = t[s].nextSibling;
|
|
12999
|
+
h ? v.insertBefore(l, h) : v.appendChild(l);
|
|
13000
|
+
}
|
|
12998
13001
|
}
|
|
12999
13002
|
}
|
|
13003
|
+
e.html2Canvas(r, {
|
|
13004
|
+
allowTaint: !1,
|
|
13005
|
+
taintTest: !1,
|
|
13006
|
+
logging: !1,
|
|
13007
|
+
useCORS: !0,
|
|
13008
|
+
dpi: window.devicePixelRatio * 1,
|
|
13009
|
+
scale: 2
|
|
13010
|
+
// 按比例增加分辨率
|
|
13011
|
+
}).then((c) => {
|
|
13012
|
+
for (var s = new e.JsPDF("p", "mm", "a4"), f = c.getContext("2d"), v = i ? 277 : 190, h = i ? 190 : 277, g = Math.floor(h * c.width / v), d = 0; d < c.height; ) {
|
|
13013
|
+
var p = document.createElement("canvas");
|
|
13014
|
+
p.width = c.width, p.height = Math.min(g, c.height - d), p.getContext("2d").putImageData(f.getImageData(0, d, c.width, Math.min(g, c.height - d)), 0, 0), s.addImage(p.toDataURL("image/jpeg", 1), "JPEG", 10, 10, v, Math.min(h, v * p.height / p.width)), d += g, d < c.height && s.addPage();
|
|
13015
|
+
}
|
|
13016
|
+
s.save(n + ".pdf"), a("htmlPdfFinish");
|
|
13017
|
+
}).catch((c) => {
|
|
13018
|
+
a(c);
|
|
13019
|
+
});
|
|
13020
|
+
} catch (c) {
|
|
13021
|
+
a(c);
|
|
13000
13022
|
}
|
|
13001
|
-
e.html2Canvas(r, {
|
|
13002
|
-
allowTaint: !1,
|
|
13003
|
-
taintTest: !1,
|
|
13004
|
-
logging: !1,
|
|
13005
|
-
useCORS: !0,
|
|
13006
|
-
dpi: window.devicePixelRatio * 1,
|
|
13007
|
-
scale: 2
|
|
13008
|
-
// 按比例增加分辨率
|
|
13009
|
-
}).then((s) => {
|
|
13010
|
-
for (var c = new e.JsPDF("p", "mm", "a4"), l = s.getContext("2d"), f = i ? 277 : 190, v = i ? 190 : 277, h = Math.floor(v * s.width / f), g = 0; g < s.height; ) {
|
|
13011
|
-
var d = document.createElement("canvas");
|
|
13012
|
-
d.width = s.width, d.height = Math.min(h, s.height - g), d.getContext("2d").putImageData(l.getImageData(0, g, s.width, Math.min(h, s.height - g)), 0, 0), c.addImage(d.toDataURL("image/jpeg", 1), "JPEG", 10, 10, f, Math.min(v, f * d.height / d.width)), g += h, g < s.height && c.addPage();
|
|
13013
|
-
}
|
|
13014
|
-
c.save(n + ".pdf");
|
|
13015
|
-
});
|
|
13016
13023
|
}, Zp = (e, n = 0) => {
|
|
13017
13024
|
const r = document.createElement("div");
|
|
13018
13025
|
return r.style.background = "#ffffff", r.style.width = "calc(100% + 8px)", r.style.marginLeft = "-4px", r.style.marginBottom = "0px", r.classList.add("divRemove"), r.style.height = e + n + "px", r;
|