@fsystem/fswt-ui-tools 0.3.4 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fswt-ui-tools.es.js +692 -687
- package/dist/fswt-ui-tools.umd.js +3 -3
- package/dist/types/index.d.ts +15 -0
- package/dist/types/tools/Array.d.ts +13 -2
- package/package.json +2 -2
- package/dist/types/tools/index.d.ts +0 -15
package/dist/fswt-ui-tools.es.js
CHANGED
|
@@ -9,7 +9,7 @@ var Xe = { exports: {} }, ie = { exports: {} }, ne = {}, G = {}, Ue;
|
|
|
9
9
|
function St() {
|
|
10
10
|
if (Ue)
|
|
11
11
|
return G;
|
|
12
|
-
Ue = 1, G.byteLength = o, G.toByteArray =
|
|
12
|
+
Ue = 1, G.byteLength = o, G.toByteArray = y, G.fromByteArray = w;
|
|
13
13
|
for (var e = [], r = [], a = typeof Uint8Array < "u" ? Uint8Array : Array, n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", c = 0, p = n.length; c < p; ++c)
|
|
14
14
|
e[c] = n[c], r[n.charCodeAt(c)] = c;
|
|
15
15
|
r["-".charCodeAt(0)] = 62, r["_".charCodeAt(0)] = 63;
|
|
@@ -26,26 +26,26 @@ function St() {
|
|
|
26
26
|
var E = d(b), v = E[0], S = E[1];
|
|
27
27
|
return (v + S) * 3 / 4 - S;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function m(b, E, v) {
|
|
30
30
|
return (E + v) * 3 / 4 - v;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
var E, v = d(b), S = v[0], h = v[1],
|
|
32
|
+
function y(b) {
|
|
33
|
+
var E, v = d(b), S = v[0], h = v[1], g = new a(m(b, S, h)), _ = 0, B = h > 0 ? S - 4 : S, U;
|
|
34
34
|
for (U = 0; U < B; U += 4)
|
|
35
|
-
E = r[b.charCodeAt(U)] << 18 | r[b.charCodeAt(U + 1)] << 12 | r[b.charCodeAt(U + 2)] << 6 | r[b.charCodeAt(U + 3)],
|
|
36
|
-
return h === 2 && (E = r[b.charCodeAt(U)] << 2 | r[b.charCodeAt(U + 1)] >> 4,
|
|
35
|
+
E = r[b.charCodeAt(U)] << 18 | r[b.charCodeAt(U + 1)] << 12 | r[b.charCodeAt(U + 2)] << 6 | r[b.charCodeAt(U + 3)], g[_++] = E >> 16 & 255, g[_++] = E >> 8 & 255, g[_++] = E & 255;
|
|
36
|
+
return h === 2 && (E = r[b.charCodeAt(U)] << 2 | r[b.charCodeAt(U + 1)] >> 4, g[_++] = E & 255), h === 1 && (E = r[b.charCodeAt(U)] << 10 | r[b.charCodeAt(U + 1)] << 4 | r[b.charCodeAt(U + 2)] >> 2, g[_++] = E >> 8 & 255, g[_++] = E & 255), g;
|
|
37
37
|
}
|
|
38
38
|
function s(b) {
|
|
39
39
|
return e[b >> 18 & 63] + e[b >> 12 & 63] + e[b >> 6 & 63] + e[b & 63];
|
|
40
40
|
}
|
|
41
41
|
function u(b, E, v) {
|
|
42
|
-
for (var S, h = [],
|
|
43
|
-
S = (b[
|
|
42
|
+
for (var S, h = [], g = E; g < v; g += 3)
|
|
43
|
+
S = (b[g] << 16 & 16711680) + (b[g + 1] << 8 & 65280) + (b[g + 2] & 255), h.push(s(S));
|
|
44
44
|
return h.join("");
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
for (var E, v = b.length, S = v % 3, h = [],
|
|
48
|
-
h.push(u(b, _, _ +
|
|
46
|
+
function w(b) {
|
|
47
|
+
for (var E, v = b.length, S = v % 3, h = [], g = 16383, _ = 0, B = v - S; _ < B; _ += g)
|
|
48
|
+
h.push(u(b, _, _ + g > B ? B : _ + g));
|
|
49
49
|
return S === 1 ? (E = b[v - 1], h.push(
|
|
50
50
|
e[E >> 2] + e[E << 4 & 63] + "=="
|
|
51
51
|
)) : S === 2 && (E = (b[v - 2] << 8) + b[v - 1], h.push(
|
|
@@ -59,24 +59,24 @@ var K = {};
|
|
|
59
59
|
var Te;
|
|
60
60
|
function Bt() {
|
|
61
61
|
return Te || (Te = 1, K.read = function(e, r, a, n, c) {
|
|
62
|
-
var p, d, o = c * 8 - n - 1,
|
|
63
|
-
for (u +=
|
|
62
|
+
var p, d, o = c * 8 - n - 1, m = (1 << o) - 1, y = m >> 1, s = -7, u = a ? c - 1 : 0, w = a ? -1 : 1, b = e[r + u];
|
|
63
|
+
for (u += w, p = b & (1 << -s) - 1, b >>= -s, s += o; s > 0; p = p * 256 + e[r + u], u += w, s -= 8)
|
|
64
64
|
;
|
|
65
|
-
for (d = p & (1 << -s) - 1, p >>= -s, s += n; s > 0; d = d * 256 + e[r + u], u +=
|
|
65
|
+
for (d = p & (1 << -s) - 1, p >>= -s, s += n; s > 0; d = d * 256 + e[r + u], u += w, s -= 8)
|
|
66
66
|
;
|
|
67
67
|
if (p === 0)
|
|
68
|
-
p = 1 -
|
|
68
|
+
p = 1 - y;
|
|
69
69
|
else {
|
|
70
|
-
if (p ===
|
|
70
|
+
if (p === m)
|
|
71
71
|
return d ? NaN : (b ? -1 : 1) * (1 / 0);
|
|
72
|
-
d = d + Math.pow(2, n), p = p -
|
|
72
|
+
d = d + Math.pow(2, n), p = p - y;
|
|
73
73
|
}
|
|
74
74
|
return (b ? -1 : 1) * d * Math.pow(2, p - n);
|
|
75
75
|
}, K.write = function(e, r, a, n, c, p) {
|
|
76
|
-
var d, o,
|
|
77
|
-
for (r = Math.abs(r), isNaN(r) || r === 1 / 0 ? (o = isNaN(r) ? 1 : 0, d = s) : (d = Math.floor(Math.log(r) / Math.LN2), r * (
|
|
76
|
+
var d, o, m, y = p * 8 - c - 1, s = (1 << y) - 1, u = s >> 1, w = c === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, b = n ? 0 : p - 1, E = n ? 1 : -1, v = r < 0 || r === 0 && 1 / r < 0 ? 1 : 0;
|
|
77
|
+
for (r = Math.abs(r), isNaN(r) || r === 1 / 0 ? (o = isNaN(r) ? 1 : 0, d = s) : (d = Math.floor(Math.log(r) / Math.LN2), r * (m = Math.pow(2, -d)) < 1 && (d--, m *= 2), d + u >= 1 ? r += w / m : r += w * Math.pow(2, 1 - u), r * m >= 2 && (d++, m /= 2), d + u >= s ? (o = 0, d = s) : d + u >= 1 ? (o = (r * m - 1) * Math.pow(2, c), d = d + u) : (o = r * Math.pow(2, u - 1) * Math.pow(2, c), d = 0)); c >= 8; e[a + b] = o & 255, b += E, o /= 256, c -= 8)
|
|
78
78
|
;
|
|
79
|
-
for (d = d << c | o,
|
|
79
|
+
for (d = d << c | o, y += c; y > 0; e[a + b] = d & 255, b += E, d /= 256, y -= 8)
|
|
80
80
|
;
|
|
81
81
|
e[a + b - E] |= v * 128;
|
|
82
82
|
}), K;
|
|
@@ -91,7 +91,7 @@ var Fe;
|
|
|
91
91
|
function Ke() {
|
|
92
92
|
return Fe || (Fe = 1, function(e) {
|
|
93
93
|
var r = St(), a = Bt(), n = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
94
|
-
e.Buffer = o, e.SlowBuffer =
|
|
94
|
+
e.Buffer = o, e.SlowBuffer = g, e.INSPECT_MAX_BYTES = 50;
|
|
95
95
|
var c = 2147483647;
|
|
96
96
|
e.kMaxLength = c, o.TYPED_ARRAY_SUPPORT = p(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
97
97
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
@@ -133,12 +133,12 @@ function Ke() {
|
|
|
133
133
|
);
|
|
134
134
|
return u(f);
|
|
135
135
|
}
|
|
136
|
-
return
|
|
136
|
+
return m(f, t, i);
|
|
137
137
|
}
|
|
138
138
|
o.poolSize = 8192;
|
|
139
|
-
function
|
|
139
|
+
function m(f, t, i) {
|
|
140
140
|
if (typeof f == "string")
|
|
141
|
-
return
|
|
141
|
+
return w(f, t);
|
|
142
142
|
if (ArrayBuffer.isView(f))
|
|
143
143
|
return E(f);
|
|
144
144
|
if (f == null)
|
|
@@ -168,29 +168,29 @@ function Ke() {
|
|
|
168
168
|
);
|
|
169
169
|
}
|
|
170
170
|
o.from = function(f, t, i) {
|
|
171
|
-
return
|
|
171
|
+
return m(f, t, i);
|
|
172
172
|
}, Object.setPrototypeOf(o.prototype, Uint8Array.prototype), Object.setPrototypeOf(o, Uint8Array);
|
|
173
|
-
function
|
|
173
|
+
function y(f) {
|
|
174
174
|
if (typeof f != "number")
|
|
175
175
|
throw new TypeError('"size" argument must be of type number');
|
|
176
176
|
if (f < 0)
|
|
177
177
|
throw new RangeError('The value "' + f + '" is invalid for option "size"');
|
|
178
178
|
}
|
|
179
179
|
function s(f, t, i) {
|
|
180
|
-
return
|
|
180
|
+
return y(f), f <= 0 ? d(f) : t !== void 0 ? typeof i == "string" ? d(f).fill(t, i) : d(f).fill(t) : d(f);
|
|
181
181
|
}
|
|
182
182
|
o.alloc = function(f, t, i) {
|
|
183
183
|
return s(f, t, i);
|
|
184
184
|
};
|
|
185
185
|
function u(f) {
|
|
186
|
-
return
|
|
186
|
+
return y(f), d(f < 0 ? 0 : h(f) | 0);
|
|
187
187
|
}
|
|
188
188
|
o.allocUnsafe = function(f) {
|
|
189
189
|
return u(f);
|
|
190
190
|
}, o.allocUnsafeSlow = function(f) {
|
|
191
191
|
return u(f);
|
|
192
192
|
};
|
|
193
|
-
function
|
|
193
|
+
function w(f, t) {
|
|
194
194
|
if ((typeof t != "string" || t === "") && (t = "utf8"), !o.isEncoding(t))
|
|
195
195
|
throw new TypeError("Unknown encoding: " + t);
|
|
196
196
|
var i = _(f, t) | 0, l = d(i), x = l.write(f, t);
|
|
@@ -231,7 +231,7 @@ function Ke() {
|
|
|
231
231
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + c.toString(16) + " bytes");
|
|
232
232
|
return f | 0;
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function g(f) {
|
|
235
235
|
return +f != f && (f = 0), o.alloc(+f);
|
|
236
236
|
}
|
|
237
237
|
o.isBuffer = function(t) {
|
|
@@ -923,8 +923,8 @@ function H() {
|
|
|
923
923
|
throw new TypeError('The "size" argument must be of type number. Received type ' + typeof p);
|
|
924
924
|
if (p < 0 || p >= 2 * (1 << 30))
|
|
925
925
|
throw new RangeError('The value "' + p + '" is invalid for option "size"');
|
|
926
|
-
var
|
|
927
|
-
return !d || d.length === 0 ?
|
|
926
|
+
var m = r(p);
|
|
927
|
+
return !d || d.length === 0 ? m.fill(0) : typeof o == "string" ? m.fill(d, o) : m.fill(d), m;
|
|
928
928
|
}), !a.kStringMaxLength)
|
|
929
929
|
try {
|
|
930
930
|
a.kStringMaxLength = process.binding("buffer").kStringMaxLength;
|
|
@@ -966,22 +966,22 @@ function Ut() {
|
|
|
966
966
|
return Ce || (Ce = 1, function(e, r) {
|
|
967
967
|
var a = Ke(), n = a.Buffer;
|
|
968
968
|
function c(d, o) {
|
|
969
|
-
for (var
|
|
970
|
-
o[
|
|
969
|
+
for (var m in d)
|
|
970
|
+
o[m] = d[m];
|
|
971
971
|
}
|
|
972
972
|
n.from && n.alloc && n.allocUnsafe && n.allocUnsafeSlow ? e.exports = a : (c(a, r), r.Buffer = p);
|
|
973
|
-
function p(d, o,
|
|
974
|
-
return n(d, o,
|
|
973
|
+
function p(d, o, m) {
|
|
974
|
+
return n(d, o, m);
|
|
975
975
|
}
|
|
976
|
-
p.prototype = Object.create(n.prototype), c(n, p), p.from = function(d, o,
|
|
976
|
+
p.prototype = Object.create(n.prototype), c(n, p), p.from = function(d, o, m) {
|
|
977
977
|
if (typeof d == "number")
|
|
978
978
|
throw new TypeError("Argument must not be a number");
|
|
979
|
-
return n(d, o,
|
|
980
|
-
}, p.alloc = function(d, o,
|
|
979
|
+
return n(d, o, m);
|
|
980
|
+
}, p.alloc = function(d, o, m) {
|
|
981
981
|
if (typeof d != "number")
|
|
982
982
|
throw new TypeError("Argument must be a number");
|
|
983
|
-
var
|
|
984
|
-
return o !== void 0 ? typeof
|
|
983
|
+
var y = n(d);
|
|
984
|
+
return o !== void 0 ? typeof m == "string" ? y.fill(o, m) : y.fill(o) : y.fill(0), y;
|
|
985
985
|
}, p.allocUnsafe = function(d) {
|
|
986
986
|
if (typeof d != "number")
|
|
987
987
|
throw new TypeError("Argument must be a number");
|
|
@@ -1019,7 +1019,7 @@ function Tt() {
|
|
|
1019
1019
|
function a(h) {
|
|
1020
1020
|
if (!h)
|
|
1021
1021
|
return "utf8";
|
|
1022
|
-
for (var
|
|
1022
|
+
for (var g; ; )
|
|
1023
1023
|
switch (h) {
|
|
1024
1024
|
case "utf8":
|
|
1025
1025
|
case "utf-8":
|
|
@@ -1037,49 +1037,49 @@ function Tt() {
|
|
|
1037
1037
|
case "hex":
|
|
1038
1038
|
return h;
|
|
1039
1039
|
default:
|
|
1040
|
-
if (
|
|
1040
|
+
if (g)
|
|
1041
1041
|
return;
|
|
1042
|
-
h = ("" + h).toLowerCase(),
|
|
1042
|
+
h = ("" + h).toLowerCase(), g = !0;
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
1045
1045
|
function n(h) {
|
|
1046
|
-
var
|
|
1047
|
-
if (typeof
|
|
1046
|
+
var g = a(h);
|
|
1047
|
+
if (typeof g != "string" && (e.isEncoding === r || !r(h)))
|
|
1048
1048
|
throw new Error("Unknown encoding: " + h);
|
|
1049
|
-
return
|
|
1049
|
+
return g || h;
|
|
1050
1050
|
}
|
|
1051
1051
|
oe.StringDecoder = c;
|
|
1052
1052
|
function c(h) {
|
|
1053
1053
|
this.encoding = n(h);
|
|
1054
|
-
var
|
|
1054
|
+
var g;
|
|
1055
1055
|
switch (this.encoding) {
|
|
1056
1056
|
case "utf16le":
|
|
1057
|
-
this.text = u, this.end =
|
|
1057
|
+
this.text = u, this.end = w, g = 4;
|
|
1058
1058
|
break;
|
|
1059
1059
|
case "utf8":
|
|
1060
|
-
this.fillLast =
|
|
1060
|
+
this.fillLast = m, g = 4;
|
|
1061
1061
|
break;
|
|
1062
1062
|
case "base64":
|
|
1063
|
-
this.text = b, this.end = E,
|
|
1063
|
+
this.text = b, this.end = E, g = 3;
|
|
1064
1064
|
break;
|
|
1065
1065
|
default:
|
|
1066
1066
|
this.write = v, this.end = S;
|
|
1067
1067
|
return;
|
|
1068
1068
|
}
|
|
1069
|
-
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = e.allocUnsafe(
|
|
1069
|
+
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = e.allocUnsafe(g);
|
|
1070
1070
|
}
|
|
1071
1071
|
c.prototype.write = function(h) {
|
|
1072
1072
|
if (h.length === 0)
|
|
1073
1073
|
return "";
|
|
1074
|
-
var
|
|
1074
|
+
var g, _;
|
|
1075
1075
|
if (this.lastNeed) {
|
|
1076
|
-
if (
|
|
1076
|
+
if (g = this.fillLast(h), g === void 0)
|
|
1077
1077
|
return "";
|
|
1078
1078
|
_ = this.lastNeed, this.lastNeed = 0;
|
|
1079
1079
|
} else
|
|
1080
1080
|
_ = 0;
|
|
1081
|
-
return _ < h.length ?
|
|
1082
|
-
}, c.prototype.end = s, c.prototype.text =
|
|
1081
|
+
return _ < h.length ? g ? g + this.text(h, _) : this.text(h, _) : g || "";
|
|
1082
|
+
}, c.prototype.end = s, c.prototype.text = y, c.prototype.fillLast = function(h) {
|
|
1083
1083
|
if (this.lastNeed <= h.length)
|
|
1084
1084
|
return h.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
1085
1085
|
h.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, h.length), this.lastNeed -= h.length;
|
|
@@ -1087,46 +1087,46 @@ function Tt() {
|
|
|
1087
1087
|
function p(h) {
|
|
1088
1088
|
return h <= 127 ? 0 : h >> 5 === 6 ? 2 : h >> 4 === 14 ? 3 : h >> 3 === 30 ? 4 : h >> 6 === 2 ? -1 : -2;
|
|
1089
1089
|
}
|
|
1090
|
-
function d(h,
|
|
1091
|
-
var B =
|
|
1090
|
+
function d(h, g, _) {
|
|
1091
|
+
var B = g.length - 1;
|
|
1092
1092
|
if (B < _)
|
|
1093
1093
|
return 0;
|
|
1094
|
-
var U = p(
|
|
1095
|
-
return U >= 0 ? (U > 0 && (h.lastNeed = U - 1), U) : --B < _ || U === -2 ? 0 : (U = p(
|
|
1094
|
+
var U = p(g[B]);
|
|
1095
|
+
return U >= 0 ? (U > 0 && (h.lastNeed = U - 1), U) : --B < _ || U === -2 ? 0 : (U = p(g[B]), U >= 0 ? (U > 0 && (h.lastNeed = U - 2), U) : --B < _ || U === -2 ? 0 : (U = p(g[B]), U >= 0 ? (U > 0 && (U === 2 ? U = 0 : h.lastNeed = U - 3), U) : 0));
|
|
1096
1096
|
}
|
|
1097
|
-
function o(h,
|
|
1098
|
-
if ((
|
|
1097
|
+
function o(h, g, _) {
|
|
1098
|
+
if ((g[0] & 192) !== 128)
|
|
1099
1099
|
return h.lastNeed = 0, "�";
|
|
1100
|
-
if (h.lastNeed > 1 &&
|
|
1101
|
-
if ((
|
|
1100
|
+
if (h.lastNeed > 1 && g.length > 1) {
|
|
1101
|
+
if ((g[1] & 192) !== 128)
|
|
1102
1102
|
return h.lastNeed = 1, "�";
|
|
1103
|
-
if (h.lastNeed > 2 &&
|
|
1103
|
+
if (h.lastNeed > 2 && g.length > 2 && (g[2] & 192) !== 128)
|
|
1104
1104
|
return h.lastNeed = 2, "�";
|
|
1105
1105
|
}
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1108
|
-
var
|
|
1107
|
+
function m(h) {
|
|
1108
|
+
var g = this.lastTotal - this.lastNeed, _ = o(this, h);
|
|
1109
1109
|
if (_ !== void 0)
|
|
1110
1110
|
return _;
|
|
1111
1111
|
if (this.lastNeed <= h.length)
|
|
1112
|
-
return h.copy(this.lastChar,
|
|
1113
|
-
h.copy(this.lastChar,
|
|
1112
|
+
return h.copy(this.lastChar, g, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
1113
|
+
h.copy(this.lastChar, g, 0, h.length), this.lastNeed -= h.length;
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1116
|
-
var _ = d(this, h,
|
|
1115
|
+
function y(h, g) {
|
|
1116
|
+
var _ = d(this, h, g);
|
|
1117
1117
|
if (!this.lastNeed)
|
|
1118
|
-
return h.toString("utf8",
|
|
1118
|
+
return h.toString("utf8", g);
|
|
1119
1119
|
this.lastTotal = _;
|
|
1120
1120
|
var B = h.length - (_ - this.lastNeed);
|
|
1121
|
-
return h.copy(this.lastChar, 0, B), h.toString("utf8",
|
|
1121
|
+
return h.copy(this.lastChar, 0, B), h.toString("utf8", g, B);
|
|
1122
1122
|
}
|
|
1123
1123
|
function s(h) {
|
|
1124
|
-
var
|
|
1125
|
-
return this.lastNeed ?
|
|
1124
|
+
var g = h && h.length ? this.write(h) : "";
|
|
1125
|
+
return this.lastNeed ? g + "�" : g;
|
|
1126
1126
|
}
|
|
1127
|
-
function u(h,
|
|
1128
|
-
if ((h.length -
|
|
1129
|
-
var _ = h.toString("utf16le",
|
|
1127
|
+
function u(h, g) {
|
|
1128
|
+
if ((h.length - g) % 2 === 0) {
|
|
1129
|
+
var _ = h.toString("utf16le", g);
|
|
1130
1130
|
if (_) {
|
|
1131
1131
|
var B = _.charCodeAt(_.length - 1);
|
|
1132
1132
|
if (B >= 55296 && B <= 56319)
|
|
@@ -1134,23 +1134,23 @@ function Tt() {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
return _;
|
|
1136
1136
|
}
|
|
1137
|
-
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = h[h.length - 1], h.toString("utf16le",
|
|
1137
|
+
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = h[h.length - 1], h.toString("utf16le", g, h.length - 1);
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1140
|
-
var
|
|
1139
|
+
function w(h) {
|
|
1140
|
+
var g = h && h.length ? this.write(h) : "";
|
|
1141
1141
|
if (this.lastNeed) {
|
|
1142
1142
|
var _ = this.lastTotal - this.lastNeed;
|
|
1143
|
-
return
|
|
1143
|
+
return g + this.lastChar.toString("utf16le", 0, _);
|
|
1144
1144
|
}
|
|
1145
|
-
return
|
|
1145
|
+
return g;
|
|
1146
1146
|
}
|
|
1147
|
-
function b(h,
|
|
1148
|
-
var _ = (h.length -
|
|
1149
|
-
return _ === 0 ? h.toString("base64",
|
|
1147
|
+
function b(h, g) {
|
|
1148
|
+
var _ = (h.length - g) % 3;
|
|
1149
|
+
return _ === 0 ? h.toString("base64", g) : (this.lastNeed = 3 - _, this.lastTotal = 3, _ === 1 ? this.lastChar[0] = h[h.length - 1] : (this.lastChar[0] = h[h.length - 2], this.lastChar[1] = h[h.length - 1]), h.toString("base64", g, h.length - _));
|
|
1150
1150
|
}
|
|
1151
1151
|
function E(h) {
|
|
1152
|
-
var
|
|
1153
|
-
return this.lastNeed ?
|
|
1152
|
+
var g = h && h.length ? this.write(h) : "";
|
|
1153
|
+
return this.lastNeed ? g + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : g;
|
|
1154
1154
|
}
|
|
1155
1155
|
function v(h) {
|
|
1156
1156
|
return h.toString(this.encoding);
|
|
@@ -1179,60 +1179,60 @@ function Ft() {
|
|
|
1179
1179
|
// Codec.
|
|
1180
1180
|
_internal: r
|
|
1181
1181
|
};
|
|
1182
|
-
function r(
|
|
1183
|
-
this.enc =
|
|
1182
|
+
function r(m, y) {
|
|
1183
|
+
this.enc = m.encodingName, this.bomAware = m.bomAware, this.enc === "base64" ? this.encoder = p : this.enc === "cesu8" && (this.enc = "utf8", this.encoder = d, e.from("eda0bdedb2a9", "hex").toString() !== "💩" && (this.decoder = o, this.defaultCharUnicode = y.defaultCharUnicode));
|
|
1184
1184
|
}
|
|
1185
1185
|
r.prototype.encoder = c, r.prototype.decoder = n;
|
|
1186
1186
|
var a = Tt().StringDecoder;
|
|
1187
1187
|
a.prototype.end || (a.prototype.end = function() {
|
|
1188
1188
|
});
|
|
1189
|
-
function n(
|
|
1190
|
-
this.decoder = new a(
|
|
1189
|
+
function n(m, y) {
|
|
1190
|
+
this.decoder = new a(y.enc);
|
|
1191
1191
|
}
|
|
1192
|
-
n.prototype.write = function(
|
|
1193
|
-
return e.isBuffer(
|
|
1192
|
+
n.prototype.write = function(m) {
|
|
1193
|
+
return e.isBuffer(m) || (m = e.from(m)), this.decoder.write(m);
|
|
1194
1194
|
}, n.prototype.end = function() {
|
|
1195
1195
|
return this.decoder.end();
|
|
1196
1196
|
};
|
|
1197
|
-
function c(
|
|
1198
|
-
this.enc =
|
|
1197
|
+
function c(m, y) {
|
|
1198
|
+
this.enc = y.enc;
|
|
1199
1199
|
}
|
|
1200
|
-
c.prototype.write = function(
|
|
1201
|
-
return e.from(
|
|
1200
|
+
c.prototype.write = function(m) {
|
|
1201
|
+
return e.from(m, this.enc);
|
|
1202
1202
|
}, c.prototype.end = function() {
|
|
1203
1203
|
};
|
|
1204
|
-
function p(
|
|
1204
|
+
function p(m, y) {
|
|
1205
1205
|
this.prevStr = "";
|
|
1206
1206
|
}
|
|
1207
|
-
p.prototype.write = function(
|
|
1208
|
-
|
|
1209
|
-
var
|
|
1210
|
-
return this.prevStr =
|
|
1207
|
+
p.prototype.write = function(m) {
|
|
1208
|
+
m = this.prevStr + m;
|
|
1209
|
+
var y = m.length - m.length % 4;
|
|
1210
|
+
return this.prevStr = m.slice(y), m = m.slice(0, y), e.from(m, "base64");
|
|
1211
1211
|
}, p.prototype.end = function() {
|
|
1212
1212
|
return e.from(this.prevStr, "base64");
|
|
1213
1213
|
};
|
|
1214
|
-
function d(
|
|
1214
|
+
function d(m, y) {
|
|
1215
1215
|
}
|
|
1216
|
-
d.prototype.write = function(
|
|
1217
|
-
for (var
|
|
1218
|
-
var
|
|
1219
|
-
|
|
1216
|
+
d.prototype.write = function(m) {
|
|
1217
|
+
for (var y = e.alloc(m.length * 3), s = 0, u = 0; u < m.length; u++) {
|
|
1218
|
+
var w = m.charCodeAt(u);
|
|
1219
|
+
w < 128 ? y[s++] = w : w < 2048 ? (y[s++] = 192 + (w >>> 6), y[s++] = 128 + (w & 63)) : (y[s++] = 224 + (w >>> 12), y[s++] = 128 + (w >>> 6 & 63), y[s++] = 128 + (w & 63));
|
|
1220
1220
|
}
|
|
1221
|
-
return
|
|
1221
|
+
return y.slice(0, s);
|
|
1222
1222
|
}, d.prototype.end = function() {
|
|
1223
1223
|
};
|
|
1224
|
-
function o(
|
|
1225
|
-
this.acc = 0, this.contBytes = 0, this.accBytes = 0, this.defaultCharUnicode =
|
|
1224
|
+
function o(m, y) {
|
|
1225
|
+
this.acc = 0, this.contBytes = 0, this.accBytes = 0, this.defaultCharUnicode = y.defaultCharUnicode;
|
|
1226
1226
|
}
|
|
1227
|
-
return o.prototype.write = function(
|
|
1228
|
-
for (var
|
|
1229
|
-
var E =
|
|
1230
|
-
(E & 192) !== 128 ? (s > 0 && (
|
|
1227
|
+
return o.prototype.write = function(m) {
|
|
1228
|
+
for (var y = this.acc, s = this.contBytes, u = this.accBytes, w = "", b = 0; b < m.length; b++) {
|
|
1229
|
+
var E = m[b];
|
|
1230
|
+
(E & 192) !== 128 ? (s > 0 && (w += this.defaultCharUnicode, s = 0), E < 128 ? w += String.fromCharCode(E) : E < 224 ? (y = E & 31, s = 1, u = 1) : E < 240 ? (y = E & 15, s = 2, u = 1) : w += this.defaultCharUnicode) : s > 0 ? (y = y << 6 | E & 63, s--, u++, s === 0 && (u === 2 && y < 128 && y > 0 ? w += this.defaultCharUnicode : u === 3 && y < 2048 ? w += this.defaultCharUnicode : w += String.fromCharCode(y))) : w += this.defaultCharUnicode;
|
|
1231
1231
|
}
|
|
1232
|
-
return this.acc =
|
|
1232
|
+
return this.acc = y, this.contBytes = s, this.accBytes = u, w;
|
|
1233
1233
|
}, o.prototype.end = function() {
|
|
1234
|
-
var
|
|
1235
|
-
return this.contBytes > 0 && (
|
|
1234
|
+
var m = 0;
|
|
1235
|
+
return this.contBytes > 0 && (m += this.defaultCharUnicode), m;
|
|
1236
1236
|
}, ce;
|
|
1237
1237
|
}
|
|
1238
1238
|
var z = {}, Re;
|
|
@@ -1242,113 +1242,113 @@ function Ot() {
|
|
|
1242
1242
|
Re = 1;
|
|
1243
1243
|
var e = H().Buffer;
|
|
1244
1244
|
z._utf32 = r;
|
|
1245
|
-
function r(
|
|
1246
|
-
this.iconv = s, this.bomAware = !0, this.isLE =
|
|
1245
|
+
function r(y, s) {
|
|
1246
|
+
this.iconv = s, this.bomAware = !0, this.isLE = y.isLE;
|
|
1247
1247
|
}
|
|
1248
1248
|
z.utf32le = { type: "_utf32", isLE: !0 }, z.utf32be = { type: "_utf32", isLE: !1 }, z.ucs4le = "utf32le", z.ucs4be = "utf32be", r.prototype.encoder = a, r.prototype.decoder = n;
|
|
1249
|
-
function a(
|
|
1249
|
+
function a(y, s) {
|
|
1250
1250
|
this.isLE = s.isLE, this.highSurrogate = 0;
|
|
1251
1251
|
}
|
|
1252
|
-
a.prototype.write = function(
|
|
1253
|
-
for (var s = e.from(
|
|
1252
|
+
a.prototype.write = function(y) {
|
|
1253
|
+
for (var s = e.from(y, "ucs2"), u = e.alloc(s.length * 2), w = this.isLE ? u.writeUInt32LE : u.writeUInt32BE, b = 0, E = 0; E < s.length; E += 2) {
|
|
1254
1254
|
var v = s.readUInt16LE(E), S = 55296 <= v && v < 56320, h = 56320 <= v && v < 57344;
|
|
1255
1255
|
if (this.highSurrogate)
|
|
1256
1256
|
if (S || !h)
|
|
1257
|
-
|
|
1257
|
+
w.call(u, this.highSurrogate, b), b += 4;
|
|
1258
1258
|
else {
|
|
1259
|
-
var
|
|
1260
|
-
|
|
1259
|
+
var g = (this.highSurrogate - 55296 << 10 | v - 56320) + 65536;
|
|
1260
|
+
w.call(u, g, b), b += 4, this.highSurrogate = 0;
|
|
1261
1261
|
continue;
|
|
1262
1262
|
}
|
|
1263
|
-
S ? this.highSurrogate = v : (
|
|
1263
|
+
S ? this.highSurrogate = v : (w.call(u, v, b), b += 4, this.highSurrogate = 0);
|
|
1264
1264
|
}
|
|
1265
1265
|
return b < u.length && (u = u.slice(0, b)), u;
|
|
1266
1266
|
}, a.prototype.end = function() {
|
|
1267
1267
|
if (this.highSurrogate) {
|
|
1268
|
-
var
|
|
1269
|
-
return this.isLE ?
|
|
1268
|
+
var y = e.alloc(4);
|
|
1269
|
+
return this.isLE ? y.writeUInt32LE(this.highSurrogate, 0) : y.writeUInt32BE(this.highSurrogate, 0), this.highSurrogate = 0, y;
|
|
1270
1270
|
}
|
|
1271
1271
|
};
|
|
1272
|
-
function n(
|
|
1272
|
+
function n(y, s) {
|
|
1273
1273
|
this.isLE = s.isLE, this.badChar = s.iconv.defaultCharUnicode.charCodeAt(0), this.overflow = [];
|
|
1274
1274
|
}
|
|
1275
|
-
n.prototype.write = function(
|
|
1276
|
-
if (
|
|
1275
|
+
n.prototype.write = function(y) {
|
|
1276
|
+
if (y.length === 0)
|
|
1277
1277
|
return "";
|
|
1278
|
-
var s = 0, u = 0,
|
|
1278
|
+
var s = 0, u = 0, w = e.alloc(y.length + 4), b = 0, E = this.isLE, v = this.overflow, S = this.badChar;
|
|
1279
1279
|
if (v.length > 0) {
|
|
1280
|
-
for (; s <
|
|
1281
|
-
v.push(
|
|
1282
|
-
v.length === 4 && (E ? u = v[s] | v[s + 1] << 8 | v[s + 2] << 16 | v[s + 3] << 24 : u = v[s + 3] | v[s + 2] << 8 | v[s + 1] << 16 | v[s] << 24, v.length = 0, b = c(
|
|
1280
|
+
for (; s < y.length && v.length < 4; s++)
|
|
1281
|
+
v.push(y[s]);
|
|
1282
|
+
v.length === 4 && (E ? u = v[s] | v[s + 1] << 8 | v[s + 2] << 16 | v[s + 3] << 24 : u = v[s + 3] | v[s + 2] << 8 | v[s + 1] << 16 | v[s] << 24, v.length = 0, b = c(w, b, u, S));
|
|
1283
1283
|
}
|
|
1284
|
-
for (; s <
|
|
1285
|
-
E ? u =
|
|
1286
|
-
for (; s <
|
|
1287
|
-
v.push(
|
|
1288
|
-
return
|
|
1284
|
+
for (; s < y.length - 3; s += 4)
|
|
1285
|
+
E ? u = y[s] | y[s + 1] << 8 | y[s + 2] << 16 | y[s + 3] << 24 : u = y[s + 3] | y[s + 2] << 8 | y[s + 1] << 16 | y[s] << 24, b = c(w, b, u, S);
|
|
1286
|
+
for (; s < y.length; s++)
|
|
1287
|
+
v.push(y[s]);
|
|
1288
|
+
return w.slice(0, b).toString("ucs2");
|
|
1289
1289
|
};
|
|
1290
|
-
function c(
|
|
1291
|
-
if ((u < 0 || u > 1114111) && (u =
|
|
1290
|
+
function c(y, s, u, w) {
|
|
1291
|
+
if ((u < 0 || u > 1114111) && (u = w), u >= 65536) {
|
|
1292
1292
|
u -= 65536;
|
|
1293
1293
|
var b = 55296 | u >> 10;
|
|
1294
|
-
|
|
1294
|
+
y[s++] = b & 255, y[s++] = b >> 8;
|
|
1295
1295
|
var u = 56320 | u & 1023;
|
|
1296
1296
|
}
|
|
1297
|
-
return
|
|
1297
|
+
return y[s++] = u & 255, y[s++] = u >> 8, s;
|
|
1298
1298
|
}
|
|
1299
1299
|
n.prototype.end = function() {
|
|
1300
1300
|
this.overflow.length = 0;
|
|
1301
1301
|
}, z.utf32 = p, z.ucs4 = "utf32";
|
|
1302
|
-
function p(
|
|
1302
|
+
function p(y, s) {
|
|
1303
1303
|
this.iconv = s;
|
|
1304
1304
|
}
|
|
1305
1305
|
p.prototype.encoder = d, p.prototype.decoder = o;
|
|
1306
|
-
function d(
|
|
1307
|
-
|
|
1306
|
+
function d(y, s) {
|
|
1307
|
+
y = y || {}, y.addBOM === void 0 && (y.addBOM = !0), this.encoder = s.iconv.getEncoder(y.defaultEncoding || "utf-32le", y);
|
|
1308
1308
|
}
|
|
1309
|
-
d.prototype.write = function(
|
|
1310
|
-
return this.encoder.write(
|
|
1309
|
+
d.prototype.write = function(y) {
|
|
1310
|
+
return this.encoder.write(y);
|
|
1311
1311
|
}, d.prototype.end = function() {
|
|
1312
1312
|
return this.encoder.end();
|
|
1313
1313
|
};
|
|
1314
|
-
function o(
|
|
1315
|
-
this.decoder = null, this.initialBufs = [], this.initialBufsLen = 0, this.options =
|
|
1314
|
+
function o(y, s) {
|
|
1315
|
+
this.decoder = null, this.initialBufs = [], this.initialBufsLen = 0, this.options = y || {}, this.iconv = s.iconv;
|
|
1316
1316
|
}
|
|
1317
|
-
o.prototype.write = function(
|
|
1317
|
+
o.prototype.write = function(y) {
|
|
1318
1318
|
if (!this.decoder) {
|
|
1319
|
-
if (this.initialBufs.push(
|
|
1319
|
+
if (this.initialBufs.push(y), this.initialBufsLen += y.length, this.initialBufsLen < 32)
|
|
1320
1320
|
return "";
|
|
1321
|
-
var s =
|
|
1321
|
+
var s = m(this.initialBufs, this.options.defaultEncoding);
|
|
1322
1322
|
this.decoder = this.iconv.getDecoder(s, this.options);
|
|
1323
|
-
for (var u = "",
|
|
1324
|
-
u += this.decoder.write(this.initialBufs[
|
|
1323
|
+
for (var u = "", w = 0; w < this.initialBufs.length; w++)
|
|
1324
|
+
u += this.decoder.write(this.initialBufs[w]);
|
|
1325
1325
|
return this.initialBufs.length = this.initialBufsLen = 0, u;
|
|
1326
1326
|
}
|
|
1327
|
-
return this.decoder.write(
|
|
1327
|
+
return this.decoder.write(y);
|
|
1328
1328
|
}, o.prototype.end = function() {
|
|
1329
1329
|
if (!this.decoder) {
|
|
1330
|
-
var
|
|
1331
|
-
this.decoder = this.iconv.getDecoder(
|
|
1330
|
+
var y = m(this.initialBufs, this.options.defaultEncoding);
|
|
1331
|
+
this.decoder = this.iconv.getDecoder(y, this.options);
|
|
1332
1332
|
for (var s = "", u = 0; u < this.initialBufs.length; u++)
|
|
1333
1333
|
s += this.decoder.write(this.initialBufs[u]);
|
|
1334
|
-
var
|
|
1335
|
-
return
|
|
1334
|
+
var w = this.decoder.end();
|
|
1335
|
+
return w && (s += w), this.initialBufs.length = this.initialBufsLen = 0, s;
|
|
1336
1336
|
}
|
|
1337
1337
|
return this.decoder.end();
|
|
1338
1338
|
};
|
|
1339
|
-
function
|
|
1340
|
-
var u = [],
|
|
1339
|
+
function m(y, s) {
|
|
1340
|
+
var u = [], w = 0, b = 0, E = 0, v = 0, S = 0;
|
|
1341
1341
|
e:
|
|
1342
|
-
for (var h = 0; h <
|
|
1343
|
-
for (var
|
|
1344
|
-
if (u.push(
|
|
1345
|
-
if (
|
|
1342
|
+
for (var h = 0; h < y.length; h++)
|
|
1343
|
+
for (var g = y[h], _ = 0; _ < g.length; _++)
|
|
1344
|
+
if (u.push(g[_]), u.length === 4) {
|
|
1345
|
+
if (w === 0) {
|
|
1346
1346
|
if (u[0] === 255 && u[1] === 254 && u[2] === 0 && u[3] === 0)
|
|
1347
1347
|
return "utf-32le";
|
|
1348
1348
|
if (u[0] === 0 && u[1] === 0 && u[2] === 254 && u[3] === 255)
|
|
1349
1349
|
return "utf-32be";
|
|
1350
1350
|
}
|
|
1351
|
-
if ((u[0] !== 0 || u[1] > 16) && E++, (u[3] !== 0 || u[2] > 16) && b++, u[0] === 0 && u[1] === 0 && (u[2] !== 0 || u[3] !== 0) && S++, (u[0] !== 0 || u[1] !== 0) && u[2] === 0 && u[3] === 0 && v++, u.length = 0,
|
|
1351
|
+
if ((u[0] !== 0 || u[1] > 16) && E++, (u[3] !== 0 || u[2] > 16) && b++, u[0] === 0 && u[1] === 0 && (u[2] !== 0 || u[3] !== 0) && S++, (u[0] !== 0 || u[1] !== 0) && u[2] === 0 && u[3] === 0 && v++, u.length = 0, w++, w >= 100)
|
|
1352
1352
|
break e;
|
|
1353
1353
|
}
|
|
1354
1354
|
return S - E > v - b ? "utf-32be" : S - E < v - b ? "utf-32le" : s || "utf-32le";
|
|
@@ -1367,69 +1367,69 @@ function It() {
|
|
|
1367
1367
|
r.prototype.encoder = a, r.prototype.decoder = n, r.prototype.bomAware = !0;
|
|
1368
1368
|
function a() {
|
|
1369
1369
|
}
|
|
1370
|
-
a.prototype.write = function(
|
|
1371
|
-
for (var
|
|
1372
|
-
var u =
|
|
1373
|
-
|
|
1370
|
+
a.prototype.write = function(m) {
|
|
1371
|
+
for (var y = e.from(m, "ucs2"), s = 0; s < y.length; s += 2) {
|
|
1372
|
+
var u = y[s];
|
|
1373
|
+
y[s] = y[s + 1], y[s + 1] = u;
|
|
1374
1374
|
}
|
|
1375
|
-
return
|
|
1375
|
+
return y;
|
|
1376
1376
|
}, a.prototype.end = function() {
|
|
1377
1377
|
};
|
|
1378
1378
|
function n() {
|
|
1379
1379
|
this.overflowByte = -1;
|
|
1380
1380
|
}
|
|
1381
|
-
n.prototype.write = function(
|
|
1382
|
-
if (
|
|
1381
|
+
n.prototype.write = function(m) {
|
|
1382
|
+
if (m.length == 0)
|
|
1383
1383
|
return "";
|
|
1384
|
-
var
|
|
1385
|
-
for (this.overflowByte !== -1 && (
|
|
1386
|
-
|
|
1387
|
-
return this.overflowByte = s ==
|
|
1384
|
+
var y = e.alloc(m.length + 1), s = 0, u = 0;
|
|
1385
|
+
for (this.overflowByte !== -1 && (y[0] = m[0], y[1] = this.overflowByte, s = 1, u = 2); s < m.length - 1; s += 2, u += 2)
|
|
1386
|
+
y[u] = m[s + 1], y[u + 1] = m[s];
|
|
1387
|
+
return this.overflowByte = s == m.length - 1 ? m[m.length - 1] : -1, y.slice(0, u).toString("ucs2");
|
|
1388
1388
|
}, n.prototype.end = function() {
|
|
1389
1389
|
this.overflowByte = -1;
|
|
1390
1390
|
}, ee.utf16 = c;
|
|
1391
|
-
function c(
|
|
1392
|
-
this.iconv =
|
|
1391
|
+
function c(m, y) {
|
|
1392
|
+
this.iconv = y;
|
|
1393
1393
|
}
|
|
1394
1394
|
c.prototype.encoder = p, c.prototype.decoder = d;
|
|
1395
|
-
function p(
|
|
1396
|
-
|
|
1395
|
+
function p(m, y) {
|
|
1396
|
+
m = m || {}, m.addBOM === void 0 && (m.addBOM = !0), this.encoder = y.iconv.getEncoder("utf-16le", m);
|
|
1397
1397
|
}
|
|
1398
|
-
p.prototype.write = function(
|
|
1399
|
-
return this.encoder.write(
|
|
1398
|
+
p.prototype.write = function(m) {
|
|
1399
|
+
return this.encoder.write(m);
|
|
1400
1400
|
}, p.prototype.end = function() {
|
|
1401
1401
|
return this.encoder.end();
|
|
1402
1402
|
};
|
|
1403
|
-
function d(
|
|
1404
|
-
this.decoder = null, this.initialBufs = [], this.initialBufsLen = 0, this.options =
|
|
1403
|
+
function d(m, y) {
|
|
1404
|
+
this.decoder = null, this.initialBufs = [], this.initialBufsLen = 0, this.options = m || {}, this.iconv = y.iconv;
|
|
1405
1405
|
}
|
|
1406
|
-
d.prototype.write = function(
|
|
1406
|
+
d.prototype.write = function(m) {
|
|
1407
1407
|
if (!this.decoder) {
|
|
1408
|
-
if (this.initialBufs.push(
|
|
1408
|
+
if (this.initialBufs.push(m), this.initialBufsLen += m.length, this.initialBufsLen < 16)
|
|
1409
1409
|
return "";
|
|
1410
|
-
var
|
|
1411
|
-
this.decoder = this.iconv.getDecoder(
|
|
1410
|
+
var y = o(this.initialBufs, this.options.defaultEncoding);
|
|
1411
|
+
this.decoder = this.iconv.getDecoder(y, this.options);
|
|
1412
1412
|
for (var s = "", u = 0; u < this.initialBufs.length; u++)
|
|
1413
1413
|
s += this.decoder.write(this.initialBufs[u]);
|
|
1414
1414
|
return this.initialBufs.length = this.initialBufsLen = 0, s;
|
|
1415
1415
|
}
|
|
1416
|
-
return this.decoder.write(
|
|
1416
|
+
return this.decoder.write(m);
|
|
1417
1417
|
}, d.prototype.end = function() {
|
|
1418
1418
|
if (!this.decoder) {
|
|
1419
|
-
var
|
|
1420
|
-
this.decoder = this.iconv.getDecoder(
|
|
1421
|
-
for (var
|
|
1422
|
-
|
|
1419
|
+
var m = o(this.initialBufs, this.options.defaultEncoding);
|
|
1420
|
+
this.decoder = this.iconv.getDecoder(m, this.options);
|
|
1421
|
+
for (var y = "", s = 0; s < this.initialBufs.length; s++)
|
|
1422
|
+
y += this.decoder.write(this.initialBufs[s]);
|
|
1423
1423
|
var u = this.decoder.end();
|
|
1424
|
-
return u && (
|
|
1424
|
+
return u && (y += u), this.initialBufs.length = this.initialBufsLen = 0, y;
|
|
1425
1425
|
}
|
|
1426
1426
|
return this.decoder.end();
|
|
1427
1427
|
};
|
|
1428
|
-
function o(
|
|
1429
|
-
var s = [], u = 0,
|
|
1428
|
+
function o(m, y) {
|
|
1429
|
+
var s = [], u = 0, w = 0, b = 0;
|
|
1430
1430
|
e:
|
|
1431
|
-
for (var E = 0; E <
|
|
1432
|
-
for (var v =
|
|
1431
|
+
for (var E = 0; E < m.length; E++)
|
|
1432
|
+
for (var v = m[E], S = 0; S < v.length; S++)
|
|
1433
1433
|
if (s.push(v[S]), s.length === 2) {
|
|
1434
1434
|
if (u === 0) {
|
|
1435
1435
|
if (s[0] === 255 && s[1] === 254)
|
|
@@ -1437,10 +1437,10 @@ function It() {
|
|
|
1437
1437
|
if (s[0] === 254 && s[1] === 255)
|
|
1438
1438
|
return "utf-16be";
|
|
1439
1439
|
}
|
|
1440
|
-
if (s[0] === 0 && s[1] !== 0 && b++, s[0] !== 0 && s[1] === 0 &&
|
|
1440
|
+
if (s[0] === 0 && s[1] !== 0 && b++, s[0] !== 0 && s[1] === 0 && w++, s.length = 0, u++, u >= 100)
|
|
1441
1441
|
break e;
|
|
1442
1442
|
}
|
|
1443
|
-
return b >
|
|
1443
|
+
return b > w ? "utf-16be" : b < w ? "utf-16le" : y || "utf-16le";
|
|
1444
1444
|
}
|
|
1445
1445
|
return ee;
|
|
1446
1446
|
}
|
|
@@ -1470,27 +1470,27 @@ function Ct() {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
for (var p = /[A-Za-z0-9\/+]/, d = [], o = 0; o < 256; o++)
|
|
1472
1472
|
d[o] = p.test(String.fromCharCode(o));
|
|
1473
|
-
var
|
|
1473
|
+
var m = "+".charCodeAt(0), y = "-".charCodeAt(0), s = "&".charCodeAt(0);
|
|
1474
1474
|
c.prototype.write = function(v) {
|
|
1475
|
-
for (var S = "", h = 0,
|
|
1476
|
-
if (!
|
|
1477
|
-
v[B] ==
|
|
1475
|
+
for (var S = "", h = 0, g = this.inBase64, _ = this.base64Accum, B = 0; B < v.length; B++)
|
|
1476
|
+
if (!g)
|
|
1477
|
+
v[B] == m && (S += this.iconv.decode(v.slice(h, B), "ascii"), h = B + 1, g = !0);
|
|
1478
1478
|
else if (!d[v[B]]) {
|
|
1479
|
-
if (B == h && v[B] ==
|
|
1479
|
+
if (B == h && v[B] == y)
|
|
1480
1480
|
S += "+";
|
|
1481
1481
|
else {
|
|
1482
1482
|
var U = _ + this.iconv.decode(v.slice(h, B), "ascii");
|
|
1483
1483
|
S += this.iconv.decode(e.from(U, "base64"), "utf16-be");
|
|
1484
1484
|
}
|
|
1485
|
-
v[B] !=
|
|
1485
|
+
v[B] != y && B--, h = B + 1, g = !1, _ = "";
|
|
1486
1486
|
}
|
|
1487
|
-
if (!
|
|
1487
|
+
if (!g)
|
|
1488
1488
|
S += this.iconv.decode(v.slice(h), "ascii");
|
|
1489
1489
|
else {
|
|
1490
1490
|
var U = _ + this.iconv.decode(v.slice(h), "ascii"), F = U.length - U.length % 8;
|
|
1491
1491
|
_ = U.slice(F), U = U.slice(0, F), S += this.iconv.decode(e.from(U, "base64"), "utf16-be");
|
|
1492
1492
|
}
|
|
1493
|
-
return this.inBase64 =
|
|
1493
|
+
return this.inBase64 = g, this.base64Accum = _, S;
|
|
1494
1494
|
}, c.prototype.end = function() {
|
|
1495
1495
|
var v = "";
|
|
1496
1496
|
return this.inBase64 && this.base64Accum.length > 0 && (v = this.iconv.decode(e.from(this.base64Accum, "base64"), "utf16-be")), this.inBase64 = !1, this.base64Accum = "", v;
|
|
@@ -1498,44 +1498,44 @@ function Ct() {
|
|
|
1498
1498
|
function u(v, S) {
|
|
1499
1499
|
this.iconv = S;
|
|
1500
1500
|
}
|
|
1501
|
-
u.prototype.encoder =
|
|
1502
|
-
function
|
|
1501
|
+
u.prototype.encoder = w, u.prototype.decoder = b, u.prototype.bomAware = !0;
|
|
1502
|
+
function w(v, S) {
|
|
1503
1503
|
this.iconv = S.iconv, this.inBase64 = !1, this.base64Accum = e.alloc(6), this.base64AccumIdx = 0;
|
|
1504
1504
|
}
|
|
1505
|
-
|
|
1506
|
-
for (var S = this.inBase64, h = this.base64Accum,
|
|
1505
|
+
w.prototype.write = function(v) {
|
|
1506
|
+
for (var S = this.inBase64, h = this.base64Accum, g = this.base64AccumIdx, _ = e.alloc(v.length * 5 + 10), B = 0, U = 0; U < v.length; U++) {
|
|
1507
1507
|
var F = v.charCodeAt(U);
|
|
1508
|
-
32 <= F && F <= 126 ? (S && (
|
|
1508
|
+
32 <= F && F <= 126 ? (S && (g > 0 && (B += _.write(h.slice(0, g).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), B), g = 0), _[B++] = y, S = !1), S || (_[B++] = F, F === s && (_[B++] = y))) : (S || (_[B++] = s, S = !0), S && (h[g++] = F >> 8, h[g++] = F & 255, g == h.length && (B += _.write(h.toString("base64").replace(/\//g, ","), B), g = 0)));
|
|
1509
1509
|
}
|
|
1510
|
-
return this.inBase64 = S, this.base64AccumIdx =
|
|
1511
|
-
},
|
|
1510
|
+
return this.inBase64 = S, this.base64AccumIdx = g, _.slice(0, B);
|
|
1511
|
+
}, w.prototype.end = function() {
|
|
1512
1512
|
var v = e.alloc(10), S = 0;
|
|
1513
|
-
return this.inBase64 && (this.base64AccumIdx > 0 && (S += v.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), S), this.base64AccumIdx = 0), v[S++] =
|
|
1513
|
+
return this.inBase64 && (this.base64AccumIdx > 0 && (S += v.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), S), this.base64AccumIdx = 0), v[S++] = y, this.inBase64 = !1), v.slice(0, S);
|
|
1514
1514
|
};
|
|
1515
1515
|
function b(v, S) {
|
|
1516
1516
|
this.iconv = S.iconv, this.inBase64 = !1, this.base64Accum = "";
|
|
1517
1517
|
}
|
|
1518
1518
|
var E = d.slice();
|
|
1519
1519
|
return E[",".charCodeAt(0)] = !0, b.prototype.write = function(v) {
|
|
1520
|
-
for (var S = "", h = 0,
|
|
1521
|
-
if (!
|
|
1522
|
-
v[B] == s && (S += this.iconv.decode(v.slice(h, B), "ascii"), h = B + 1,
|
|
1520
|
+
for (var S = "", h = 0, g = this.inBase64, _ = this.base64Accum, B = 0; B < v.length; B++)
|
|
1521
|
+
if (!g)
|
|
1522
|
+
v[B] == s && (S += this.iconv.decode(v.slice(h, B), "ascii"), h = B + 1, g = !0);
|
|
1523
1523
|
else if (!E[v[B]]) {
|
|
1524
|
-
if (B == h && v[B] ==
|
|
1524
|
+
if (B == h && v[B] == y)
|
|
1525
1525
|
S += "&";
|
|
1526
1526
|
else {
|
|
1527
1527
|
var U = _ + this.iconv.decode(v.slice(h, B), "ascii").replace(/,/g, "/");
|
|
1528
1528
|
S += this.iconv.decode(e.from(U, "base64"), "utf16-be");
|
|
1529
1529
|
}
|
|
1530
|
-
v[B] !=
|
|
1530
|
+
v[B] != y && B--, h = B + 1, g = !1, _ = "";
|
|
1531
1531
|
}
|
|
1532
|
-
if (!
|
|
1532
|
+
if (!g)
|
|
1533
1533
|
S += this.iconv.decode(v.slice(h), "ascii");
|
|
1534
1534
|
else {
|
|
1535
1535
|
var U = _ + this.iconv.decode(v.slice(h), "ascii").replace(/,/g, "/"), F = U.length - U.length % 8;
|
|
1536
1536
|
_ = U.slice(F), U = U.slice(0, F), S += this.iconv.decode(e.from(U, "base64"), "utf16-be");
|
|
1537
1537
|
}
|
|
1538
|
-
return this.inBase64 =
|
|
1538
|
+
return this.inBase64 = g, this.base64Accum = _, S;
|
|
1539
1539
|
}, b.prototype.end = function() {
|
|
1540
1540
|
var v = "";
|
|
1541
1541
|
return this.inBase64 && this.base64Accum.length > 0 && (v = this.iconv.decode(e.from(this.base64Accum, "base64"), "utf16-be")), this.inBase64 = !1, this.base64Accum = "", v;
|
|
@@ -1559,9 +1559,9 @@ function Dt() {
|
|
|
1559
1559
|
c.chars = d + c.chars;
|
|
1560
1560
|
}
|
|
1561
1561
|
this.decodeBuf = e.from(c.chars, "ucs2");
|
|
1562
|
-
for (var
|
|
1563
|
-
|
|
1564
|
-
this.encodeBuf =
|
|
1562
|
+
for (var m = e.alloc(65536, p.defaultCharSingleByte.charCodeAt(0)), o = 0; o < c.chars.length; o++)
|
|
1563
|
+
m[c.chars.charCodeAt(o)] = o;
|
|
1564
|
+
this.encodeBuf = m;
|
|
1565
1565
|
}
|
|
1566
1566
|
r.prototype.encoder = a, r.prototype.decoder = n;
|
|
1567
1567
|
function a(c, p) {
|
|
@@ -1577,8 +1577,8 @@ function Dt() {
|
|
|
1577
1577
|
this.decodeBuf = p.decodeBuf;
|
|
1578
1578
|
}
|
|
1579
1579
|
return n.prototype.write = function(c) {
|
|
1580
|
-
for (var p = this.decodeBuf, d = e.alloc(c.length * 2), o = 0,
|
|
1581
|
-
o = c[
|
|
1580
|
+
for (var p = this.decodeBuf, d = e.alloc(c.length * 2), o = 0, m = 0, y = 0; y < c.length; y++)
|
|
1581
|
+
o = c[y] * 2, m = y * 2, d[m] = p[o], d[m + 1] = p[o + 1];
|
|
1582
1582
|
return d.toString("ucs2");
|
|
1583
1583
|
}, n.prototype.end = function() {
|
|
1584
1584
|
}, fe;
|
|
@@ -2194,26 +2194,26 @@ function Pt() {
|
|
|
2194
2194
|
return le;
|
|
2195
2195
|
qe = 1;
|
|
2196
2196
|
var e = H().Buffer;
|
|
2197
|
-
le._dbcs =
|
|
2197
|
+
le._dbcs = m;
|
|
2198
2198
|
for (var r = -1, a = -2, n = -10, c = -1e3, p = new Array(256), d = -1, o = 0; o < 256; o++)
|
|
2199
2199
|
p[o] = r;
|
|
2200
|
-
function w
|
|
2201
|
-
if (this.encodingName =
|
|
2200
|
+
function m(w, b) {
|
|
2201
|
+
if (this.encodingName = w.encodingName, !w)
|
|
2202
2202
|
throw new Error("DBCS codec is called without the data.");
|
|
2203
|
-
if (!
|
|
2203
|
+
if (!w.table)
|
|
2204
2204
|
throw new Error("Encoding '" + this.encodingName + "' has no data.");
|
|
2205
|
-
var E =
|
|
2205
|
+
var E = w.table();
|
|
2206
2206
|
this.decodeTables = [], this.decodeTables[0] = p.slice(0), this.decodeTableSeq = [];
|
|
2207
2207
|
for (var v = 0; v < E.length; v++)
|
|
2208
2208
|
this._addDecodeChunk(E[v]);
|
|
2209
|
-
if (typeof
|
|
2210
|
-
this.gb18030 =
|
|
2209
|
+
if (typeof w.gb18030 == "function") {
|
|
2210
|
+
this.gb18030 = w.gb18030();
|
|
2211
2211
|
var S = this.decodeTables.length;
|
|
2212
2212
|
this.decodeTables.push(p.slice(0));
|
|
2213
2213
|
var h = this.decodeTables.length;
|
|
2214
2214
|
this.decodeTables.push(p.slice(0));
|
|
2215
|
-
for (var
|
|
2216
|
-
for (var _ = this.decodeTables[c -
|
|
2215
|
+
for (var g = this.decodeTables[0], v = 129; v <= 254; v++)
|
|
2216
|
+
for (var _ = this.decodeTables[c - g[v]], B = 48; B <= 57; B++) {
|
|
2217
2217
|
if (_[B] === r)
|
|
2218
2218
|
_[B] = c - S;
|
|
2219
2219
|
else if (_[B] > c)
|
|
@@ -2234,23 +2234,23 @@ function Pt() {
|
|
|
2234
2234
|
}
|
|
2235
2235
|
this.defaultCharUnicode = b.defaultCharUnicode, this.encodeTable = [], this.encodeTableSeq = [];
|
|
2236
2236
|
var j = {};
|
|
2237
|
-
if (
|
|
2238
|
-
for (var v = 0; v <
|
|
2239
|
-
var q =
|
|
2237
|
+
if (w.encodeSkipVals)
|
|
2238
|
+
for (var v = 0; v < w.encodeSkipVals.length; v++) {
|
|
2239
|
+
var q = w.encodeSkipVals[v];
|
|
2240
2240
|
if (typeof q == "number")
|
|
2241
2241
|
j[q] = !0;
|
|
2242
2242
|
else
|
|
2243
2243
|
for (var B = q.from; B <= q.to; B++)
|
|
2244
2244
|
j[B] = !0;
|
|
2245
2245
|
}
|
|
2246
|
-
if (this._fillEncodeTable(0, 0, j),
|
|
2247
|
-
for (var W in
|
|
2248
|
-
Object.prototype.hasOwnProperty.call(
|
|
2246
|
+
if (this._fillEncodeTable(0, 0, j), w.encodeAdd)
|
|
2247
|
+
for (var W in w.encodeAdd)
|
|
2248
|
+
Object.prototype.hasOwnProperty.call(w.encodeAdd, W) && this._setEncodeChar(W.charCodeAt(0), w.encodeAdd[W]);
|
|
2249
2249
|
this.defCharSB = this.encodeTable[0][b.defaultCharSingleByte.charCodeAt(0)], this.defCharSB === r && (this.defCharSB = this.encodeTable[0]["?"]), this.defCharSB === r && (this.defCharSB = "?".charCodeAt(0));
|
|
2250
2250
|
}
|
|
2251
|
-
|
|
2252
|
-
for (var b = [];
|
|
2253
|
-
b.push(
|
|
2251
|
+
m.prototype.encoder = y, m.prototype.decoder = s, m.prototype._getDecodeTrieNode = function(w) {
|
|
2252
|
+
for (var b = []; w > 0; w >>>= 8)
|
|
2253
|
+
b.push(w & 255);
|
|
2254
2254
|
b.length == 0 && b.push(0);
|
|
2255
2255
|
for (var E = this.decodeTables[0], v = b.length - 1; v > 0; v--) {
|
|
2256
2256
|
var S = E[b[v]];
|
|
@@ -2259,55 +2259,55 @@ function Pt() {
|
|
|
2259
2259
|
else if (S <= c)
|
|
2260
2260
|
E = this.decodeTables[c - S];
|
|
2261
2261
|
else
|
|
2262
|
-
throw new Error("Overwrite byte in " + this.encodingName + ", addr: " +
|
|
2262
|
+
throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + w.toString(16));
|
|
2263
2263
|
}
|
|
2264
2264
|
return E;
|
|
2265
|
-
},
|
|
2266
|
-
var b = parseInt(
|
|
2265
|
+
}, m.prototype._addDecodeChunk = function(w) {
|
|
2266
|
+
var b = parseInt(w[0], 16), E = this._getDecodeTrieNode(b);
|
|
2267
2267
|
b = b & 255;
|
|
2268
|
-
for (var v = 1; v <
|
|
2269
|
-
var S =
|
|
2268
|
+
for (var v = 1; v < w.length; v++) {
|
|
2269
|
+
var S = w[v];
|
|
2270
2270
|
if (typeof S == "string")
|
|
2271
2271
|
for (var h = 0; h < S.length; ) {
|
|
2272
|
-
var
|
|
2273
|
-
if (55296 <=
|
|
2272
|
+
var g = S.charCodeAt(h++);
|
|
2273
|
+
if (55296 <= g && g < 56320) {
|
|
2274
2274
|
var _ = S.charCodeAt(h++);
|
|
2275
2275
|
if (56320 <= _ && _ < 57344)
|
|
2276
|
-
E[b++] = 65536 + (
|
|
2276
|
+
E[b++] = 65536 + (g - 55296) * 1024 + (_ - 56320);
|
|
2277
2277
|
else
|
|
2278
|
-
throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " +
|
|
2279
|
-
} else if (4080 <
|
|
2280
|
-
for (var B = 4095 -
|
|
2278
|
+
throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + w[0]);
|
|
2279
|
+
} else if (4080 < g && g <= 4095) {
|
|
2280
|
+
for (var B = 4095 - g + 2, U = [], F = 0; F < B; F++)
|
|
2281
2281
|
U.push(S.charCodeAt(h++));
|
|
2282
2282
|
E[b++] = n - this.decodeTableSeq.length, this.decodeTableSeq.push(U);
|
|
2283
2283
|
} else
|
|
2284
|
-
E[b++] =
|
|
2284
|
+
E[b++] = g;
|
|
2285
2285
|
}
|
|
2286
2286
|
else if (typeof S == "number")
|
|
2287
2287
|
for (var P = E[b - 1] + 1, h = 0; h < S; h++)
|
|
2288
2288
|
E[b++] = P++;
|
|
2289
2289
|
else
|
|
2290
|
-
throw new Error("Incorrect type '" + typeof S + "' given in " + this.encodingName + " at chunk " +
|
|
2290
|
+
throw new Error("Incorrect type '" + typeof S + "' given in " + this.encodingName + " at chunk " + w[0]);
|
|
2291
2291
|
}
|
|
2292
2292
|
if (b > 255)
|
|
2293
|
-
throw new Error("Incorrect chunk in " + this.encodingName + " at addr " +
|
|
2294
|
-
},
|
|
2295
|
-
var b =
|
|
2293
|
+
throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + w[0] + ": too long" + b);
|
|
2294
|
+
}, m.prototype._getEncodeBucket = function(w) {
|
|
2295
|
+
var b = w >> 8;
|
|
2296
2296
|
return this.encodeTable[b] === void 0 && (this.encodeTable[b] = p.slice(0)), this.encodeTable[b];
|
|
2297
|
-
},
|
|
2298
|
-
var E = this._getEncodeBucket(
|
|
2297
|
+
}, m.prototype._setEncodeChar = function(w, b) {
|
|
2298
|
+
var E = this._getEncodeBucket(w), v = w & 255;
|
|
2299
2299
|
E[v] <= n ? this.encodeTableSeq[n - E[v]][d] = b : E[v] == r && (E[v] = b);
|
|
2300
|
-
},
|
|
2301
|
-
var E =
|
|
2300
|
+
}, m.prototype._setEncodeSequence = function(w, b) {
|
|
2301
|
+
var E = w[0], v = this._getEncodeBucket(E), S = E & 255, h;
|
|
2302
2302
|
v[S] <= n ? h = this.encodeTableSeq[n - v[S]] : (h = {}, v[S] !== r && (h[d] = v[S]), v[S] = n - this.encodeTableSeq.length, this.encodeTableSeq.push(h));
|
|
2303
|
-
for (var
|
|
2303
|
+
for (var g = 1; g < w.length - 1; g++) {
|
|
2304
2304
|
var _ = h[E];
|
|
2305
2305
|
typeof _ == "object" ? h = _ : (h = h[E] = {}, _ !== void 0 && (h[d] = _));
|
|
2306
2306
|
}
|
|
2307
|
-
E =
|
|
2308
|
-
},
|
|
2309
|
-
for (var v = this.decodeTables[
|
|
2310
|
-
var _ = v[
|
|
2307
|
+
E = w[w.length - 1], h[E] = b;
|
|
2308
|
+
}, m.prototype._fillEncodeTable = function(w, b, E) {
|
|
2309
|
+
for (var v = this.decodeTables[w], S = !1, h = {}, g = 0; g < 256; g++) {
|
|
2310
|
+
var _ = v[g], B = b + g;
|
|
2311
2311
|
if (!E[B])
|
|
2312
2312
|
if (_ >= 0)
|
|
2313
2313
|
this._setEncodeChar(_, B), S = !0;
|
|
@@ -2322,15 +2322,15 @@ function Pt() {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
return S;
|
|
2324
2324
|
};
|
|
2325
|
-
function
|
|
2325
|
+
function y(w, b) {
|
|
2326
2326
|
this.leadSurrogate = -1, this.seqObj = void 0, this.encodeTable = b.encodeTable, this.encodeTableSeq = b.encodeTableSeq, this.defaultCharSingleByte = b.defCharSB, this.gb18030 = b.gb18030;
|
|
2327
2327
|
}
|
|
2328
|
-
|
|
2329
|
-
for (var b = e.alloc(
|
|
2328
|
+
y.prototype.write = function(w) {
|
|
2329
|
+
for (var b = e.alloc(w.length * (this.gb18030 ? 4 : 3)), E = this.leadSurrogate, v = this.seqObj, S = -1, h = 0, g = 0; ; ) {
|
|
2330
2330
|
if (S === -1) {
|
|
2331
|
-
if (h ==
|
|
2331
|
+
if (h == w.length)
|
|
2332
2332
|
break;
|
|
2333
|
-
var _ =
|
|
2333
|
+
var _ = w.charCodeAt(h++);
|
|
2334
2334
|
} else {
|
|
2335
2335
|
var _ = S;
|
|
2336
2336
|
S = -1;
|
|
@@ -2365,71 +2365,71 @@ function Pt() {
|
|
|
2365
2365
|
var P = u(this.gb18030.uChars, _);
|
|
2366
2366
|
if (P != -1) {
|
|
2367
2367
|
var B = this.gb18030.gbChars[P] + (_ - this.gb18030.uChars[P]);
|
|
2368
|
-
b[
|
|
2368
|
+
b[g++] = 129 + Math.floor(B / 12600), B = B % 12600, b[g++] = 48 + Math.floor(B / 1260), B = B % 1260, b[g++] = 129 + Math.floor(B / 10), B = B % 10, b[g++] = 48 + B;
|
|
2369
2369
|
continue;
|
|
2370
2370
|
}
|
|
2371
2371
|
}
|
|
2372
2372
|
}
|
|
2373
|
-
B === r && (B = this.defaultCharSingleByte), B < 256 ? b[
|
|
2373
|
+
B === r && (B = this.defaultCharSingleByte), B < 256 ? b[g++] = B : B < 65536 ? (b[g++] = B >> 8, b[g++] = B & 255) : B < 16777216 ? (b[g++] = B >> 16, b[g++] = B >> 8 & 255, b[g++] = B & 255) : (b[g++] = B >>> 24, b[g++] = B >>> 16 & 255, b[g++] = B >>> 8 & 255, b[g++] = B & 255);
|
|
2374
2374
|
}
|
|
2375
|
-
return this.seqObj = v, this.leadSurrogate = E, b.slice(0,
|
|
2376
|
-
},
|
|
2375
|
+
return this.seqObj = v, this.leadSurrogate = E, b.slice(0, g);
|
|
2376
|
+
}, y.prototype.end = function() {
|
|
2377
2377
|
if (!(this.leadSurrogate === -1 && this.seqObj === void 0)) {
|
|
2378
|
-
var
|
|
2378
|
+
var w = e.alloc(10), b = 0;
|
|
2379
2379
|
if (this.seqObj) {
|
|
2380
2380
|
var E = this.seqObj[d];
|
|
2381
|
-
E !== void 0 && (E < 256 ?
|
|
2381
|
+
E !== void 0 && (E < 256 ? w[b++] = E : (w[b++] = E >> 8, w[b++] = E & 255)), this.seqObj = void 0;
|
|
2382
2382
|
}
|
|
2383
|
-
return this.leadSurrogate !== -1 && (
|
|
2383
|
+
return this.leadSurrogate !== -1 && (w[b++] = this.defaultCharSingleByte, this.leadSurrogate = -1), w.slice(0, b);
|
|
2384
2384
|
}
|
|
2385
|
-
},
|
|
2386
|
-
function s(
|
|
2385
|
+
}, y.prototype.findIdx = u;
|
|
2386
|
+
function s(w, b) {
|
|
2387
2387
|
this.nodeIdx = 0, this.prevBytes = [], this.decodeTables = b.decodeTables, this.decodeTableSeq = b.decodeTableSeq, this.defaultCharUnicode = b.defaultCharUnicode, this.gb18030 = b.gb18030;
|
|
2388
2388
|
}
|
|
2389
|
-
s.prototype.write = function(
|
|
2390
|
-
for (var b = e.alloc(
|
|
2391
|
-
var U = _ >= 0 ?
|
|
2392
|
-
if (!(
|
|
2393
|
-
if (
|
|
2394
|
-
|
|
2395
|
-
else if (
|
|
2389
|
+
s.prototype.write = function(w) {
|
|
2390
|
+
for (var b = e.alloc(w.length * 2), E = this.nodeIdx, v = this.prevBytes, S = this.prevBytes.length, h = -this.prevBytes.length, g, _ = 0, B = 0; _ < w.length; _++) {
|
|
2391
|
+
var U = _ >= 0 ? w[_] : v[_ + S], g = this.decodeTables[E][U];
|
|
2392
|
+
if (!(g >= 0))
|
|
2393
|
+
if (g === r)
|
|
2394
|
+
g = this.defaultCharUnicode.charCodeAt(0), _ = h;
|
|
2395
|
+
else if (g === a) {
|
|
2396
2396
|
if (_ >= 3)
|
|
2397
|
-
var F = (
|
|
2397
|
+
var F = (w[_ - 3] - 129) * 12600 + (w[_ - 2] - 48) * 1260 + (w[_ - 1] - 129) * 10 + (U - 48);
|
|
2398
2398
|
else
|
|
2399
|
-
var F = (v[_ - 3 + S] - 129) * 12600 + ((_ - 2 >= 0 ?
|
|
2399
|
+
var F = (v[_ - 3 + S] - 129) * 12600 + ((_ - 2 >= 0 ? w[_ - 2] : v[_ - 2 + S]) - 48) * 1260 + ((_ - 1 >= 0 ? w[_ - 1] : v[_ - 1 + S]) - 129) * 10 + (U - 48);
|
|
2400
2400
|
var P = u(this.gb18030.gbChars, F);
|
|
2401
|
-
|
|
2402
|
-
} else if (
|
|
2403
|
-
E = c -
|
|
2401
|
+
g = this.gb18030.uChars[P] + F - this.gb18030.gbChars[P];
|
|
2402
|
+
} else if (g <= c) {
|
|
2403
|
+
E = c - g;
|
|
2404
2404
|
continue;
|
|
2405
|
-
} else if (
|
|
2406
|
-
for (var M = this.decodeTableSeq[n -
|
|
2407
|
-
|
|
2408
|
-
|
|
2405
|
+
} else if (g <= n) {
|
|
2406
|
+
for (var M = this.decodeTableSeq[n - g], j = 0; j < M.length - 1; j++)
|
|
2407
|
+
g = M[j], b[B++] = g & 255, b[B++] = g >> 8;
|
|
2408
|
+
g = M[M.length - 1];
|
|
2409
2409
|
} else
|
|
2410
|
-
throw new Error("iconv-lite internal error: invalid decoding table value " +
|
|
2411
|
-
if (
|
|
2412
|
-
|
|
2413
|
-
var q = 55296 |
|
|
2414
|
-
b[B++] = q & 255, b[B++] = q >> 8,
|
|
2410
|
+
throw new Error("iconv-lite internal error: invalid decoding table value " + g + " at " + E + "/" + U);
|
|
2411
|
+
if (g >= 65536) {
|
|
2412
|
+
g -= 65536;
|
|
2413
|
+
var q = 55296 | g >> 10;
|
|
2414
|
+
b[B++] = q & 255, b[B++] = q >> 8, g = 56320 | g & 1023;
|
|
2415
2415
|
}
|
|
2416
|
-
b[B++] =
|
|
2416
|
+
b[B++] = g & 255, b[B++] = g >> 8, E = 0, h = _ + 1;
|
|
2417
2417
|
}
|
|
2418
|
-
return this.nodeIdx = E, this.prevBytes = h >= 0 ? Array.prototype.slice.call(
|
|
2418
|
+
return this.nodeIdx = E, this.prevBytes = h >= 0 ? Array.prototype.slice.call(w, h) : v.slice(h + S).concat(Array.prototype.slice.call(w)), b.slice(0, B).toString("ucs2");
|
|
2419
2419
|
}, s.prototype.end = function() {
|
|
2420
|
-
for (var
|
|
2421
|
-
|
|
2420
|
+
for (var w = ""; this.prevBytes.length > 0; ) {
|
|
2421
|
+
w += this.defaultCharUnicode;
|
|
2422
2422
|
var b = this.prevBytes.slice(1);
|
|
2423
|
-
this.prevBytes = [], this.nodeIdx = 0, b.length > 0 && (
|
|
2423
|
+
this.prevBytes = [], this.nodeIdx = 0, b.length > 0 && (w += this.write(b));
|
|
2424
2424
|
}
|
|
2425
|
-
return this.prevBytes = [], this.nodeIdx = 0,
|
|
2425
|
+
return this.prevBytes = [], this.nodeIdx = 0, w;
|
|
2426
2426
|
};
|
|
2427
|
-
function u(
|
|
2428
|
-
if (
|
|
2427
|
+
function u(w, b) {
|
|
2428
|
+
if (w[0] > b)
|
|
2429
2429
|
return -1;
|
|
2430
|
-
for (var E = 0, v =
|
|
2430
|
+
for (var E = 0, v = w.length; E < v - 1; ) {
|
|
2431
2431
|
var S = E + (v - E + 1 >> 1);
|
|
2432
|
-
|
|
2432
|
+
w[S] <= b ? E = S : v = S;
|
|
2433
2433
|
}
|
|
2434
2434
|
return E;
|
|
2435
2435
|
}
|
|
@@ -10984,10 +10984,10 @@ function Wt() {
|
|
|
10984
10984
|
if (typeof p != "string")
|
|
10985
10985
|
return o(new Error("Iconv encoding stream needs strings as its input."));
|
|
10986
10986
|
try {
|
|
10987
|
-
var
|
|
10988
|
-
|
|
10989
|
-
} catch (
|
|
10990
|
-
o(
|
|
10987
|
+
var m = this.conv.write(p);
|
|
10988
|
+
m && m.length && this.push(m), o();
|
|
10989
|
+
} catch (y) {
|
|
10990
|
+
o(y);
|
|
10991
10991
|
}
|
|
10992
10992
|
}, n.prototype._flush = function(p) {
|
|
10993
10993
|
try {
|
|
@@ -11013,10 +11013,10 @@ function Wt() {
|
|
|
11013
11013
|
if (!e.isBuffer(p) && !(p instanceof Uint8Array))
|
|
11014
11014
|
return o(new Error("Iconv decoding stream needs buffers as its input."));
|
|
11015
11015
|
try {
|
|
11016
|
-
var
|
|
11017
|
-
|
|
11018
|
-
} catch (
|
|
11019
|
-
o(
|
|
11016
|
+
var m = this.conv.write(p);
|
|
11017
|
+
m && m.length && this.push(m, this.encoding), o();
|
|
11018
|
+
} catch (y) {
|
|
11019
|
+
o(y);
|
|
11020
11020
|
}
|
|
11021
11021
|
}, c.prototype._flush = function(p) {
|
|
11022
11022
|
try {
|
|
@@ -11043,13 +11043,13 @@ var Ge;
|
|
|
11043
11043
|
function Gt() {
|
|
11044
11044
|
return Ge || (Ge = 1, function(e) {
|
|
11045
11045
|
var r = H().Buffer, a = At(), n = e.exports;
|
|
11046
|
-
n.encodings = null, n.defaultCharUnicode = "�", n.defaultCharSingleByte = "?", n.encode = function(d, o,
|
|
11046
|
+
n.encodings = null, n.defaultCharUnicode = "�", n.defaultCharSingleByte = "?", n.encode = function(d, o, m) {
|
|
11047
11047
|
d = "" + (d || "");
|
|
11048
|
-
var
|
|
11048
|
+
var y = n.getEncoder(o, m), s = y.write(d), u = y.end();
|
|
11049
11049
|
return u && u.length > 0 ? r.concat([s, u]) : s;
|
|
11050
|
-
}, n.decode = function(d, o,
|
|
11050
|
+
}, n.decode = function(d, o, m) {
|
|
11051
11051
|
typeof d == "string" && (n.skipDecodeWarning || (console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"), n.skipDecodeWarning = !0), d = r.from("" + (d || ""), "binary"));
|
|
11052
|
-
var
|
|
11052
|
+
var y = n.getDecoder(o, m), s = y.write(d), u = y.end();
|
|
11053
11053
|
return u ? s + u : s;
|
|
11054
11054
|
}, n.encodingExists = function(d) {
|
|
11055
11055
|
try {
|
|
@@ -11059,10 +11059,10 @@ function Gt() {
|
|
|
11059
11059
|
}
|
|
11060
11060
|
}, n.toEncoding = n.encode, n.fromEncoding = n.decode, n._codecDataCache = {}, n.getCodec = function(d) {
|
|
11061
11061
|
n.encodings || (n.encodings = $t());
|
|
11062
|
-
for (var o = n._canonicalizeEncoding(d),
|
|
11063
|
-
var
|
|
11064
|
-
if (
|
|
11065
|
-
return
|
|
11062
|
+
for (var o = n._canonicalizeEncoding(d), m = {}; ; ) {
|
|
11063
|
+
var y = n._codecDataCache[o];
|
|
11064
|
+
if (y)
|
|
11065
|
+
return y;
|
|
11066
11066
|
var s = n.encodings[o];
|
|
11067
11067
|
switch (typeof s) {
|
|
11068
11068
|
case "string":
|
|
@@ -11070,11 +11070,11 @@ function Gt() {
|
|
|
11070
11070
|
break;
|
|
11071
11071
|
case "object":
|
|
11072
11072
|
for (var u in s)
|
|
11073
|
-
|
|
11074
|
-
|
|
11073
|
+
m[u] = s[u];
|
|
11074
|
+
m.encodingName || (m.encodingName = o), o = s.type;
|
|
11075
11075
|
break;
|
|
11076
11076
|
case "function":
|
|
11077
|
-
return
|
|
11077
|
+
return m.encodingName || (m.encodingName = o), y = new s(m, n), n._codecDataCache[m.encodingName] = y, y;
|
|
11078
11078
|
default:
|
|
11079
11079
|
throw new Error("Encoding not recognized: '" + d + "' (searched as: '" + o + "')");
|
|
11080
11080
|
}
|
|
@@ -11082,18 +11082,18 @@ function Gt() {
|
|
|
11082
11082
|
}, n._canonicalizeEncoding = function(p) {
|
|
11083
11083
|
return ("" + p).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "");
|
|
11084
11084
|
}, n.getEncoder = function(d, o) {
|
|
11085
|
-
var
|
|
11086
|
-
return
|
|
11085
|
+
var m = n.getCodec(d), y = new m.encoder(o, m);
|
|
11086
|
+
return m.bomAware && o && o.addBOM && (y = new a.PrependBOM(y, o)), y;
|
|
11087
11087
|
}, n.getDecoder = function(d, o) {
|
|
11088
|
-
var
|
|
11089
|
-
return
|
|
11088
|
+
var m = n.getCodec(d), y = new m.decoder(o, m);
|
|
11089
|
+
return m.bomAware && !(o && o.stripBOM === !1) && (y = new a.StripBOM(y, o)), y;
|
|
11090
11090
|
}, n.enableStreamingAPI = function(d) {
|
|
11091
11091
|
if (!n.supportsStreams) {
|
|
11092
11092
|
var o = Wt()(d);
|
|
11093
|
-
n.IconvLiteEncoderStream = o.IconvLiteEncoderStream, n.IconvLiteDecoderStream = o.IconvLiteDecoderStream, n.encodeStream = function(
|
|
11094
|
-
return new n.IconvLiteEncoderStream(n.getEncoder(
|
|
11095
|
-
}, n.decodeStream = function(
|
|
11096
|
-
return new n.IconvLiteDecoderStream(n.getDecoder(
|
|
11093
|
+
n.IconvLiteEncoderStream = o.IconvLiteEncoderStream, n.IconvLiteDecoderStream = o.IconvLiteDecoderStream, n.encodeStream = function(y, s) {
|
|
11094
|
+
return new n.IconvLiteEncoderStream(n.getEncoder(y, s), s);
|
|
11095
|
+
}, n.decodeStream = function(y, s) {
|
|
11096
|
+
return new n.IconvLiteDecoderStream(n.getDecoder(y, s), s);
|
|
11097
11097
|
}, n.supportsStreams = !0;
|
|
11098
11098
|
}
|
|
11099
11099
|
};
|
|
@@ -11154,8 +11154,8 @@ function Gt() {
|
|
|
11154
11154
|
}
|
|
11155
11155
|
), r.prototype._trimAlloc = function() {
|
|
11156
11156
|
if (this._byteLength !== this._buffer.byteLength) {
|
|
11157
|
-
var s = new ArrayBuffer(this._byteLength), u = new Uint8Array(s),
|
|
11158
|
-
u.set(
|
|
11157
|
+
var s = new ArrayBuffer(this._byteLength), u = new Uint8Array(s), w = new Uint8Array(this._buffer, 0, u.length);
|
|
11158
|
+
u.set(w), this.buffer = s;
|
|
11159
11159
|
}
|
|
11160
11160
|
}, r.prototype.isEof = function() {
|
|
11161
11161
|
return this.pos >= this.size && this.bitsLeft === 0;
|
|
@@ -11245,28 +11245,28 @@ function Gt() {
|
|
|
11245
11245
|
}, r.prototype.readBitsIntBe = function(s) {
|
|
11246
11246
|
if (s > 32)
|
|
11247
11247
|
throw new RangeError("readBitsIntBe: the maximum supported bit length is 32 (tried to read " + s + " bits)");
|
|
11248
|
-
var u = 0,
|
|
11249
|
-
if (this.bitsLeft = -
|
|
11250
|
-
for (var b = (
|
|
11248
|
+
var u = 0, w = s - this.bitsLeft;
|
|
11249
|
+
if (this.bitsLeft = -w & 7, w > 0) {
|
|
11250
|
+
for (var b = (w - 1 >> 3) + 1, E = this.readBytes(b), v = 0; v < b; v++)
|
|
11251
11251
|
u = u << 8 | E[v];
|
|
11252
11252
|
var S = u;
|
|
11253
|
-
u = u >>> this.bitsLeft | this.bits <<
|
|
11253
|
+
u = u >>> this.bitsLeft | this.bits << w, this.bits = S;
|
|
11254
11254
|
} else
|
|
11255
|
-
u = this.bits >>> -
|
|
11255
|
+
u = this.bits >>> -w;
|
|
11256
11256
|
var h = (1 << this.bitsLeft) - 1;
|
|
11257
11257
|
return this.bits &= h, u >>> 0;
|
|
11258
11258
|
}, r.prototype.readBitsInt = r.prototype.readBitsIntBe, r.prototype.readBitsIntLe = function(s) {
|
|
11259
11259
|
if (s > 32)
|
|
11260
11260
|
throw new RangeError("readBitsIntLe: the maximum supported bit length is 32 (tried to read " + s + " bits)");
|
|
11261
|
-
var u = 0,
|
|
11262
|
-
if (
|
|
11263
|
-
for (var b = (
|
|
11261
|
+
var u = 0, w = s - this.bitsLeft;
|
|
11262
|
+
if (w > 0) {
|
|
11263
|
+
for (var b = (w - 1 >> 3) + 1, E = this.readBytes(b), v = 0; v < b; v++)
|
|
11264
11264
|
u |= E[v] << v * 8;
|
|
11265
|
-
var S =
|
|
11265
|
+
var S = w < 32 ? u >>> w : 0;
|
|
11266
11266
|
u = u << this.bitsLeft | this.bits, this.bits = S;
|
|
11267
11267
|
} else
|
|
11268
11268
|
u = this.bits, this.bits >>>= s;
|
|
11269
|
-
if (this.bitsLeft = -
|
|
11269
|
+
if (this.bitsLeft = -w & 7, s < 32) {
|
|
11270
11270
|
var h = (1 << s) - 1;
|
|
11271
11271
|
u &= h;
|
|
11272
11272
|
} else
|
|
@@ -11276,7 +11276,7 @@ function Gt() {
|
|
|
11276
11276
|
return this.mapUint8Array(s);
|
|
11277
11277
|
}, r.prototype.readBytesFull = function() {
|
|
11278
11278
|
return this.mapUint8Array(this.size - this.pos);
|
|
11279
|
-
}, r.prototype.readBytesTerm = function(s, u,
|
|
11279
|
+
}, r.prototype.readBytesTerm = function(s, u, w, b) {
|
|
11280
11280
|
for (var E = this.size - this.pos, v = new Uint8Array(this._buffer, this._byteOffset + this.pos), S = 0; S < E && v[S] !== s; S++)
|
|
11281
11281
|
;
|
|
11282
11282
|
if (S === E) {
|
|
@@ -11285,24 +11285,24 @@ function Gt() {
|
|
|
11285
11285
|
return this.mapUint8Array(S);
|
|
11286
11286
|
} else {
|
|
11287
11287
|
var h;
|
|
11288
|
-
return u ? h = this.mapUint8Array(S + 1) : h = this.mapUint8Array(S),
|
|
11288
|
+
return u ? h = this.mapUint8Array(S + 1) : h = this.mapUint8Array(S), w && (this.pos += 1), h;
|
|
11289
11289
|
}
|
|
11290
11290
|
}, r.prototype.ensureFixedContents = function(s) {
|
|
11291
11291
|
var u = this.readBytes(s.length);
|
|
11292
11292
|
if (u.length !== s.length)
|
|
11293
11293
|
throw new n(s, u);
|
|
11294
|
-
for (var
|
|
11294
|
+
for (var w = u.length, b = 0; b < w; b++)
|
|
11295
11295
|
if (u[b] !== s[b])
|
|
11296
11296
|
throw new n(s, u);
|
|
11297
11297
|
return u;
|
|
11298
11298
|
}, r.bytesStripRight = function(s, u) {
|
|
11299
|
-
for (var
|
|
11300
|
-
|
|
11301
|
-
return s.slice(0,
|
|
11302
|
-
}, r.bytesTerminate = function(s, u,
|
|
11299
|
+
for (var w = s.length; s[w - 1] === u; )
|
|
11300
|
+
w--;
|
|
11301
|
+
return s.slice(0, w);
|
|
11302
|
+
}, r.bytesTerminate = function(s, u, w) {
|
|
11303
11303
|
for (var b = 0, E = s.length; b < E && s[b] !== u; )
|
|
11304
11304
|
b++;
|
|
11305
|
-
return
|
|
11305
|
+
return w && b < E && b++, s.slice(0, b);
|
|
11306
11306
|
}, r.bytesToStr = function(s, u) {
|
|
11307
11307
|
if (u == null || u.toLowerCase() === "ascii")
|
|
11308
11308
|
return r.createStringFromArray(s);
|
|
@@ -11320,17 +11320,17 @@ function Gt() {
|
|
|
11320
11320
|
return typeof r.iconvlite > "u" && (r.iconvlite = Gt()), r.iconvlite.decode(s, u);
|
|
11321
11321
|
}
|
|
11322
11322
|
}, r.processXorOne = function(s, u) {
|
|
11323
|
-
for (var
|
|
11324
|
-
|
|
11325
|
-
return
|
|
11323
|
+
for (var w = new Uint8Array(s.length), b = s.length, E = 0; E < b; E++)
|
|
11324
|
+
w[E] = s[E] ^ u;
|
|
11325
|
+
return w;
|
|
11326
11326
|
}, r.processXorMany = function(s, u) {
|
|
11327
|
-
for (var
|
|
11327
|
+
for (var w = s.length, b = new Uint8Array(w), E = u.length, v = 0, S = 0; S < w; S++)
|
|
11328
11328
|
b[S] = s[S] ^ u[v], v++, v >= E && (v = 0);
|
|
11329
11329
|
return b;
|
|
11330
|
-
}, r.processRotateLeft = function(s, u,
|
|
11331
|
-
if (
|
|
11332
|
-
throw "unable to rotate group of " +
|
|
11333
|
-
for (var b =
|
|
11330
|
+
}, r.processRotateLeft = function(s, u, w) {
|
|
11331
|
+
if (w !== 1)
|
|
11332
|
+
throw "unable to rotate group of " + w + " bytes yet";
|
|
11333
|
+
for (var b = w * 8 - 1, E = -u & b, v = new Uint8Array(s.length), S = 0; S < s.length; S++)
|
|
11334
11334
|
v[S] = s[S] << u & 255 | s[S] >> E;
|
|
11335
11335
|
return v;
|
|
11336
11336
|
}, r.processZlib = function(s) {
|
|
@@ -11345,25 +11345,25 @@ function Gt() {
|
|
|
11345
11345
|
}, r.mod = function(s, u) {
|
|
11346
11346
|
if (u <= 0)
|
|
11347
11347
|
throw "mod divisor <= 0";
|
|
11348
|
-
var
|
|
11349
|
-
return
|
|
11348
|
+
var w = s % u;
|
|
11349
|
+
return w < 0 && (w += u), w;
|
|
11350
11350
|
}, r.arrayMin = function(s) {
|
|
11351
|
-
for (var u = s[0],
|
|
11352
|
-
|
|
11351
|
+
for (var u = s[0], w, b = 1, E = s.length; b < E; ++b)
|
|
11352
|
+
w = s[b], w < u && (u = w);
|
|
11353
11353
|
return u;
|
|
11354
11354
|
}, r.arrayMax = function(s) {
|
|
11355
|
-
for (var u = s[0],
|
|
11356
|
-
|
|
11355
|
+
for (var u = s[0], w, b = 1, E = s.length; b < E; ++b)
|
|
11356
|
+
w = s[b], w > u && (u = w);
|
|
11357
11357
|
return u;
|
|
11358
11358
|
}, r.byteArrayCompare = function(s, u) {
|
|
11359
11359
|
if (s === u)
|
|
11360
11360
|
return 0;
|
|
11361
|
-
for (var
|
|
11361
|
+
for (var w = s.length, b = u.length, E = w < b ? w : b, v = 0; v < E; v++) {
|
|
11362
11362
|
var S = s[v] - u[v];
|
|
11363
11363
|
if (S !== 0)
|
|
11364
11364
|
return S;
|
|
11365
11365
|
}
|
|
11366
|
-
return
|
|
11366
|
+
return w === b ? 0 : w - b;
|
|
11367
11367
|
};
|
|
11368
11368
|
var a = r.EOFError = function(s, u) {
|
|
11369
11369
|
this.name = "EOFError", this.message = "requested " + s + " bytes, but only " + u + " bytes available", this.bytesReq = s, this.bytesAvail = u, this.stack = new Error().stack;
|
|
@@ -11389,14 +11389,14 @@ function Gt() {
|
|
|
11389
11389
|
this.name = "ValidationGreaterThanError", this.message = "not in range, max [" + s + "], but got [" + u + "]", this.max = s, this.actual = u, this.stack = new Error().stack;
|
|
11390
11390
|
};
|
|
11391
11391
|
o.prototype = Object.create(Error.prototype), o.prototype.constructor = o;
|
|
11392
|
-
var
|
|
11392
|
+
var m = r.ValidationNotAnyOfError = function(s, u, w) {
|
|
11393
11393
|
this.name = "ValidationNotAnyOfError", this.message = "not any of the list, got [" + s + "]", this.actual = s, this.stack = new Error().stack;
|
|
11394
11394
|
};
|
|
11395
|
-
|
|
11396
|
-
var
|
|
11395
|
+
m.prototype = Object.create(Error.prototype), m.prototype.constructor = m;
|
|
11396
|
+
var y = r.ValidationExprError = function(s, u, w) {
|
|
11397
11397
|
this.name = "ValidationExprError", this.message = "not matching the expression, got [" + s + "]", this.actual = s, this.stack = new Error().stack;
|
|
11398
11398
|
};
|
|
11399
|
-
return
|
|
11399
|
+
return y.prototype = Object.create(Error.prototype), y.prototype.constructor = y, r.prototype.ensureBytesLeft = function(s) {
|
|
11400
11400
|
if (this.pos + s > this.size)
|
|
11401
11401
|
throw new a(s, this.size - this.pos);
|
|
11402
11402
|
}, r.prototype.mapUint8Array = function(s) {
|
|
@@ -11404,9 +11404,9 @@ function Gt() {
|
|
|
11404
11404
|
var u = new Uint8Array(this._buffer, this.byteOffset + this.pos, s);
|
|
11405
11405
|
return this.pos += s, u;
|
|
11406
11406
|
}, r.createStringFromArray = function(s) {
|
|
11407
|
-
for (var u = 32768,
|
|
11408
|
-
|
|
11409
|
-
return
|
|
11407
|
+
for (var u = 32768, w = [], b = typeof s.subarray == "function", E = 0; E < s.length; E += u)
|
|
11408
|
+
w.push(String.fromCharCode.apply(null, b ? s.subarray(E, E + u) : s.slice(E, E + u)));
|
|
11409
|
+
return w.join("");
|
|
11410
11410
|
}, r;
|
|
11411
11411
|
});
|
|
11412
11412
|
})(Xe);
|
|
@@ -11426,8 +11426,8 @@ var et = { exports: {} };
|
|
|
11426
11426
|
267: "PE32",
|
|
11427
11427
|
523: "PE32_PLUS"
|
|
11428
11428
|
});
|
|
11429
|
-
function n(h,
|
|
11430
|
-
this._io = h, this._parent =
|
|
11429
|
+
function n(h, g, _) {
|
|
11430
|
+
this._io = h, this._parent = g, this._root = _ || this, this._read();
|
|
11431
11431
|
}
|
|
11432
11432
|
n.prototype._read = function() {
|
|
11433
11433
|
this.mz = new b(this._io, this, this._root);
|
|
@@ -11448,8 +11448,8 @@ var et = { exports: {} };
|
|
|
11448
11448
|
3: "RESERVED_1",
|
|
11449
11449
|
4: "TS_STACK_SIGNED"
|
|
11450
11450
|
});
|
|
11451
|
-
function h(
|
|
11452
|
-
this._io =
|
|
11451
|
+
function h(g, _, B) {
|
|
11452
|
+
this._io = g, this._parent = _, this._root = B || this, this._read();
|
|
11453
11453
|
}
|
|
11454
11454
|
return h.prototype._read = function() {
|
|
11455
11455
|
this.length = this._io.readU4le(), this.revision = this._io.readU2le(), this.certificateType = this._io.readU2le(), this.certificateBytes = this._io.readBytes(this.length - 8);
|
|
@@ -11481,34 +11481,34 @@ var et = { exports: {} };
|
|
|
11481
11481
|
14: "XBOX",
|
|
11482
11482
|
16: "WINDOWS_BOOT_APPLICATION"
|
|
11483
11483
|
});
|
|
11484
|
-
function h(
|
|
11485
|
-
this._io =
|
|
11484
|
+
function h(g, _, B) {
|
|
11485
|
+
this._io = g, this._parent = _, this._root = B || this, this._read();
|
|
11486
11486
|
}
|
|
11487
11487
|
return h.prototype._read = function() {
|
|
11488
11488
|
this._parent.std.format === n.PeFormat.PE32 && (this.imageBase32 = this._io.readU4le()), this._parent.std.format === n.PeFormat.PE32_PLUS && (this.imageBase64 = this._io.readU8le()), this.sectionAlignment = this._io.readU4le(), this.fileAlignment = this._io.readU4le(), this.majorOperatingSystemVersion = this._io.readU2le(), this.minorOperatingSystemVersion = this._io.readU2le(), this.majorImageVersion = this._io.readU2le(), this.minorImageVersion = this._io.readU2le(), this.majorSubsystemVersion = this._io.readU2le(), this.minorSubsystemVersion = this._io.readU2le(), this.win32VersionValue = this._io.readU4le(), this.sizeOfImage = this._io.readU4le(), this.sizeOfHeaders = this._io.readU4le(), this.checkSum = this._io.readU4le(), this.subsystem = this._io.readU2le(), this.dllCharacteristics = this._io.readU2le(), this._parent.std.format === n.PeFormat.PE32 && (this.sizeOfStackReserve32 = this._io.readU4le()), this._parent.std.format === n.PeFormat.PE32_PLUS && (this.sizeOfStackReserve64 = this._io.readU8le()), this._parent.std.format === n.PeFormat.PE32 && (this.sizeOfStackCommit32 = this._io.readU4le()), this._parent.std.format === n.PeFormat.PE32_PLUS && (this.sizeOfStackCommit64 = this._io.readU8le()), this._parent.std.format === n.PeFormat.PE32 && (this.sizeOfHeapReserve32 = this._io.readU4le()), this._parent.std.format === n.PeFormat.PE32_PLUS && (this.sizeOfHeapReserve64 = this._io.readU8le()), this._parent.std.format === n.PeFormat.PE32 && (this.sizeOfHeapCommit32 = this._io.readU4le()), this._parent.std.format === n.PeFormat.PE32_PLUS && (this.sizeOfHeapCommit64 = this._io.readU8le()), this.loaderFlags = this._io.readU4le(), this.numberOfRvaAndSizes = this._io.readU4le();
|
|
11489
11489
|
}, h;
|
|
11490
11490
|
}(), d = n.OptionalHeaderDataDirs = function() {
|
|
11491
|
-
function h(
|
|
11492
|
-
this._io =
|
|
11491
|
+
function h(g, _, B) {
|
|
11492
|
+
this._io = g, this._parent = _, this._root = B || this, this._read();
|
|
11493
11493
|
}
|
|
11494
11494
|
return h.prototype._read = function() {
|
|
11495
11495
|
this.exportTable = new o(this._io, this, this._root), this.importTable = new o(this._io, this, this._root), this.resourceTable = new o(this._io, this, this._root), this.exceptionTable = new o(this._io, this, this._root), this.certificateTable = new o(this._io, this, this._root), this.baseRelocationTable = new o(this._io, this, this._root), this.debug = new o(this._io, this, this._root), this.architecture = new o(this._io, this, this._root), this.globalPtr = new o(this._io, this, this._root), this.tlsTable = new o(this._io, this, this._root), this.loadConfigTable = new o(this._io, this, this._root), this.boundImport = new o(this._io, this, this._root), this.iat = new o(this._io, this, this._root), this.delayImportDescriptor = new o(this._io, this, this._root), this.clrRuntimeHeader = new o(this._io, this, this._root);
|
|
11496
11496
|
}, h;
|
|
11497
11497
|
}(), o = n.DataDir = function() {
|
|
11498
|
-
function h(
|
|
11499
|
-
this._io =
|
|
11498
|
+
function h(g, _, B) {
|
|
11499
|
+
this._io = g, this._parent = _, this._root = B || this, this._read();
|
|
11500
11500
|
}
|
|
11501
11501
|
return h.prototype._read = function() {
|
|
11502
11502
|
this.virtualAddress = this._io.readU4le(), this.size = this._io.readU4le();
|
|
11503
11503
|
}, h;
|
|
11504
|
-
}(),
|
|
11505
|
-
function h(
|
|
11506
|
-
this._io =
|
|
11504
|
+
}(), m = n.CoffSymbol = function() {
|
|
11505
|
+
function h(g, _, B) {
|
|
11506
|
+
this._io = g, this._parent = _, this._root = B || this, this._read();
|
|
11507
11507
|
}
|
|
11508
11508
|
return h.prototype._read = function() {
|
|
11509
11509
|
this._raw_nameAnnoying = this._io.readBytes(8);
|
|
11510
|
-
var
|
|
11511
|
-
this.nameAnnoying = new S(
|
|
11510
|
+
var g = new r(this._raw_nameAnnoying);
|
|
11511
|
+
this.nameAnnoying = new S(g, this, this._root), this.value = this._io.readU4le(), this.sectionNumber = this._io.readU2le(), this.type = this._io.readU2le(), this.storageClass = this._io.readU1(), this.numberOfAuxSymbols = this._io.readU1();
|
|
11512
11512
|
}, Object.defineProperty(h.prototype, "section", {
|
|
11513
11513
|
get: function() {
|
|
11514
11514
|
return this._m_section !== void 0 ? this._m_section : (this._m_section = this._root.pe.sections[this.sectionNumber - 1], this._m_section);
|
|
@@ -11517,20 +11517,20 @@ var et = { exports: {} };
|
|
|
11517
11517
|
get: function() {
|
|
11518
11518
|
if (this._m_data !== void 0)
|
|
11519
11519
|
return this._m_data;
|
|
11520
|
-
var
|
|
11521
|
-
return this._io.seek(this.section.pointerToRawData + this.value), this._m_data = this._io.readBytes(1), this._io.seek(
|
|
11520
|
+
var g = this._io.pos;
|
|
11521
|
+
return this._io.seek(this.section.pointerToRawData + this.value), this._m_data = this._io.readBytes(1), this._io.seek(g), this._m_data;
|
|
11522
11522
|
}
|
|
11523
11523
|
}), h;
|
|
11524
|
-
}(),
|
|
11525
|
-
function h(
|
|
11526
|
-
this._io =
|
|
11524
|
+
}(), y = n.PeHeader = function() {
|
|
11525
|
+
function h(g, _, B) {
|
|
11526
|
+
this._io = g, this._parent = _, this._root = B || this, this._read();
|
|
11527
11527
|
}
|
|
11528
11528
|
return h.prototype._read = function() {
|
|
11529
11529
|
if (this.peSignature = this._io.readBytes(4), r.byteArrayCompare(this.peSignature, [80, 69, 0, 0]) !== 0)
|
|
11530
11530
|
throw new r.ValidationNotEqualError([80, 69, 0, 0], this.peSignature, this._io, "/types/pe_header/seq/0");
|
|
11531
11531
|
this.coffHdr = new v(this._io, this, this._root), this._raw_optionalHdr = this._io.readBytes(this.coffHdr.sizeOfOptionalHeader);
|
|
11532
|
-
var
|
|
11533
|
-
this.optionalHdr = new s(
|
|
11532
|
+
var g = new r(this._raw_optionalHdr);
|
|
11533
|
+
this.optionalHdr = new s(g, this, this._root), this.sections = [];
|
|
11534
11534
|
for (var _ = 0; _ < this.coffHdr.numberOfSections; _++)
|
|
11535
11535
|
this.sections.push(new u(this._io, this, this._root));
|
|
11536
11536
|
}, Object.defineProperty(h.prototype, "certificateTable", {
|
|
@@ -11538,24 +11538,24 @@ var et = { exports: {} };
|
|
|
11538
11538
|
if (this._m_certificateTable !== void 0)
|
|
11539
11539
|
return this._m_certificateTable;
|
|
11540
11540
|
if (this.optionalHdr.dataDirs.certificateTable.virtualAddress !== 0) {
|
|
11541
|
-
var
|
|
11541
|
+
var g = this._io.pos;
|
|
11542
11542
|
this._io.seek(this.optionalHdr.dataDirs.certificateTable.virtualAddress), this._raw__m_certificateTable = this._io.readBytes(this.optionalHdr.dataDirs.certificateTable.size);
|
|
11543
11543
|
var _ = new r(this._raw__m_certificateTable);
|
|
11544
|
-
this._m_certificateTable = new
|
|
11544
|
+
this._m_certificateTable = new w(_, this, this._root), this._io.seek(g);
|
|
11545
11545
|
}
|
|
11546
11546
|
return this._m_certificateTable;
|
|
11547
11547
|
}
|
|
11548
11548
|
}), h;
|
|
11549
11549
|
}(), s = n.OptionalHeader = function() {
|
|
11550
|
-
function h(
|
|
11551
|
-
this._io =
|
|
11550
|
+
function h(g, _, B) {
|
|
11551
|
+
this._io = g, this._parent = _, this._root = B || this, this._read();
|
|
11552
11552
|
}
|
|
11553
11553
|
return h.prototype._read = function() {
|
|
11554
11554
|
this.std = new E(this._io, this, this._root), this.windows = new p(this._io, this, this._root), this.dataDirs = new d(this._io, this, this._root);
|
|
11555
11555
|
}, h;
|
|
11556
11556
|
}(), u = n.Section = function() {
|
|
11557
|
-
function h(
|
|
11558
|
-
this._io =
|
|
11557
|
+
function h(g, _, B) {
|
|
11558
|
+
this._io = g, this._parent = _, this._root = B || this, this._read();
|
|
11559
11559
|
}
|
|
11560
11560
|
return h.prototype._read = function() {
|
|
11561
11561
|
this.name = r.bytesToStr(r.bytesStripRight(this._io.readBytes(8), 0), "UTF-8"), this.virtualSize = this._io.readU4le(), this.virtualAddress = this._io.readU4le(), this.sizeOfRawData = this._io.readU4le(), this.pointerToRawData = this._io.readU4le(), this.pointerToRelocations = this._io.readU4le(), this.pointerToLinenumbers = this._io.readU4le(), this.numberOfRelocations = this._io.readU2le(), this.numberOfLinenumbers = this._io.readU2le(), this.characteristics = this._io.readU4le();
|
|
@@ -11563,21 +11563,21 @@ var et = { exports: {} };
|
|
|
11563
11563
|
get: function() {
|
|
11564
11564
|
if (this._m_body !== void 0)
|
|
11565
11565
|
return this._m_body;
|
|
11566
|
-
var
|
|
11567
|
-
return this._io.seek(this.pointerToRawData), this._m_body = this._io.readBytes(this.sizeOfRawData), this._io.seek(
|
|
11566
|
+
var g = this._io.pos;
|
|
11567
|
+
return this._io.seek(this.pointerToRawData), this._m_body = this._io.readBytes(this.sizeOfRawData), this._io.seek(g), this._m_body;
|
|
11568
11568
|
}
|
|
11569
11569
|
}), h;
|
|
11570
|
-
}(),
|
|
11571
|
-
function h(
|
|
11572
|
-
this._io =
|
|
11570
|
+
}(), w = n.CertificateTable = function() {
|
|
11571
|
+
function h(g, _, B) {
|
|
11572
|
+
this._io = g, this._parent = _, this._root = B || this, this._read();
|
|
11573
11573
|
}
|
|
11574
11574
|
return h.prototype._read = function() {
|
|
11575
11575
|
for (this.items = []; !this._io.isEof(); )
|
|
11576
11576
|
this.items.push(new c(this._io, this, this._root));
|
|
11577
11577
|
}, h;
|
|
11578
11578
|
}(), b = n.MzPlaceholder = function() {
|
|
11579
|
-
function h(
|
|
11580
|
-
this._io =
|
|
11579
|
+
function h(g, _, B) {
|
|
11580
|
+
this._io = g, this._parent = _, this._root = B || this, this._read();
|
|
11581
11581
|
}
|
|
11582
11582
|
return h.prototype._read = function() {
|
|
11583
11583
|
if (this.magic = this._io.readBytes(2), r.byteArrayCompare(this.magic, [77, 90]) !== 0)
|
|
@@ -11585,8 +11585,8 @@ var et = { exports: {} };
|
|
|
11585
11585
|
this.data1 = this._io.readBytes(58), this.ofsPe = this._io.readU4le();
|
|
11586
11586
|
}, h;
|
|
11587
11587
|
}(), E = n.OptionalHeaderStd = function() {
|
|
11588
|
-
function h(
|
|
11589
|
-
this._io =
|
|
11588
|
+
function h(g, _, B) {
|
|
11589
|
+
this._io = g, this._parent = _, this._root = B || this, this._read();
|
|
11590
11590
|
}
|
|
11591
11591
|
return h.prototype._read = function() {
|
|
11592
11592
|
this.format = this._io.readU2le(), this.majorLinkerVersion = this._io.readU1(), this.minorLinkerVersion = this._io.readU1(), this.sizeOfCode = this._io.readU4le(), this.sizeOfInitializedData = this._io.readU4le(), this.sizeOfUninitializedData = this._io.readU4le(), this.addressOfEntryPoint = this._io.readU4le(), this.baseOfCode = this._io.readU4le(), this.format === n.PeFormat.PE32 && (this.baseOfData = this._io.readU4le());
|
|
@@ -11646,8 +11646,8 @@ var et = { exports: {} };
|
|
|
11646
11646
|
36929: "M32R",
|
|
11647
11647
|
43620: "ARM64"
|
|
11648
11648
|
});
|
|
11649
|
-
function h(
|
|
11650
|
-
this._io =
|
|
11649
|
+
function h(g, _, B) {
|
|
11650
|
+
this._io = g, this._parent = _, this._root = B || this, this._read();
|
|
11651
11651
|
}
|
|
11652
11652
|
return h.prototype._read = function() {
|
|
11653
11653
|
this.machine = this._io.readU2le(), this.numberOfSections = this._io.readU2le(), this.timeDateStamp = this._io.readU4le(), this.pointerToSymbolTable = this._io.readU4le(), this.numberOfSymbols = this._io.readU4le(), this.sizeOfOptionalHeader = this._io.readU2le(), this.characteristics = this._io.readU2le();
|
|
@@ -11663,23 +11663,23 @@ var et = { exports: {} };
|
|
|
11663
11663
|
get: function() {
|
|
11664
11664
|
if (this._m_symbolNameTableSize !== void 0)
|
|
11665
11665
|
return this._m_symbolNameTableSize;
|
|
11666
|
-
var
|
|
11667
|
-
return this._io.seek(this.symbolNameTableOffset), this._m_symbolNameTableSize = this._io.readU4le(), this._io.seek(
|
|
11666
|
+
var g = this._io.pos;
|
|
11667
|
+
return this._io.seek(this.symbolNameTableOffset), this._m_symbolNameTableSize = this._io.readU4le(), this._io.seek(g), this._m_symbolNameTableSize;
|
|
11668
11668
|
}
|
|
11669
11669
|
}), Object.defineProperty(h.prototype, "symbolTable", {
|
|
11670
11670
|
get: function() {
|
|
11671
11671
|
if (this._m_symbolTable !== void 0)
|
|
11672
11672
|
return this._m_symbolTable;
|
|
11673
|
-
var
|
|
11673
|
+
var g = this._io.pos;
|
|
11674
11674
|
this._io.seek(this.pointerToSymbolTable), this._m_symbolTable = [];
|
|
11675
11675
|
for (var _ = 0; _ < this.numberOfSymbols; _++)
|
|
11676
|
-
this._m_symbolTable.push(new
|
|
11677
|
-
return this._io.seek(
|
|
11676
|
+
this._m_symbolTable.push(new m(this._io, this, this._root));
|
|
11677
|
+
return this._io.seek(g), this._m_symbolTable;
|
|
11678
11678
|
}
|
|
11679
11679
|
}), h;
|
|
11680
11680
|
}(), S = n.Annoyingstring = function() {
|
|
11681
|
-
function h(
|
|
11682
|
-
this._io =
|
|
11681
|
+
function h(g, _, B) {
|
|
11682
|
+
this._io = g, this._parent = _, this._root = B || this, this._read();
|
|
11683
11683
|
}
|
|
11684
11684
|
return h.prototype._read = function() {
|
|
11685
11685
|
}, Object.defineProperty(h.prototype, "nameFromOffset", {
|
|
@@ -11687,8 +11687,8 @@ var et = { exports: {} };
|
|
|
11687
11687
|
if (this._m_nameFromOffset !== void 0)
|
|
11688
11688
|
return this._m_nameFromOffset;
|
|
11689
11689
|
if (this.nameZeroes === 0) {
|
|
11690
|
-
var
|
|
11691
|
-
|
|
11690
|
+
var g = this._root._io, _ = g.pos;
|
|
11691
|
+
g.seek(this.nameZeroes === 0 ? this._parent._parent.symbolNameTableOffset + this.nameOffset : 0), this._m_nameFromOffset = r.bytesToStr(g.readBytesTerm(0, !1, !0, !1), "ascii"), g.seek(_);
|
|
11692
11692
|
}
|
|
11693
11693
|
return this._m_nameFromOffset;
|
|
11694
11694
|
}
|
|
@@ -11696,8 +11696,8 @@ var et = { exports: {} };
|
|
|
11696
11696
|
get: function() {
|
|
11697
11697
|
if (this._m_nameOffset !== void 0)
|
|
11698
11698
|
return this._m_nameOffset;
|
|
11699
|
-
var
|
|
11700
|
-
return this._io.seek(4), this._m_nameOffset = this._io.readU4le(), this._io.seek(
|
|
11699
|
+
var g = this._io.pos;
|
|
11700
|
+
return this._io.seek(4), this._m_nameOffset = this._io.readU4le(), this._io.seek(g), this._m_nameOffset;
|
|
11701
11701
|
}
|
|
11702
11702
|
}), Object.defineProperty(h.prototype, "name", {
|
|
11703
11703
|
get: function() {
|
|
@@ -11707,16 +11707,16 @@ var et = { exports: {} };
|
|
|
11707
11707
|
get: function() {
|
|
11708
11708
|
if (this._m_nameZeroes !== void 0)
|
|
11709
11709
|
return this._m_nameZeroes;
|
|
11710
|
-
var
|
|
11711
|
-
return this._io.seek(0), this._m_nameZeroes = this._io.readU4le(), this._io.seek(
|
|
11710
|
+
var g = this._io.pos;
|
|
11711
|
+
return this._io.seek(0), this._m_nameZeroes = this._io.readU4le(), this._io.seek(g), this._m_nameZeroes;
|
|
11712
11712
|
}
|
|
11713
11713
|
}), Object.defineProperty(h.prototype, "nameFromShort", {
|
|
11714
11714
|
get: function() {
|
|
11715
11715
|
if (this._m_nameFromShort !== void 0)
|
|
11716
11716
|
return this._m_nameFromShort;
|
|
11717
11717
|
if (this.nameZeroes !== 0) {
|
|
11718
|
-
var
|
|
11719
|
-
this._io.seek(0), this._m_nameFromShort = r.bytesToStr(this._io.readBytesTerm(0, !1, !0, !1), "ascii"), this._io.seek(
|
|
11718
|
+
var g = this._io.pos;
|
|
11719
|
+
this._io.seek(0), this._m_nameFromShort = r.bytesToStr(this._io.readBytesTerm(0, !1, !0, !1), "ascii"), this._io.seek(g);
|
|
11720
11720
|
}
|
|
11721
11721
|
return this._m_nameFromShort;
|
|
11722
11722
|
}
|
|
@@ -11727,7 +11727,7 @@ var et = { exports: {} };
|
|
|
11727
11727
|
if (this._m_pe !== void 0)
|
|
11728
11728
|
return this._m_pe;
|
|
11729
11729
|
var h = this._io.pos;
|
|
11730
|
-
return this._io.seek(this.mz.ofsPe), this._m_pe = new
|
|
11730
|
+
return this._io.seek(this.mz.ofsPe), this._m_pe = new y(this._io, this, this._root), this._io.seek(h), this._m_pe;
|
|
11731
11731
|
}
|
|
11732
11732
|
}), n;
|
|
11733
11733
|
}();
|
|
@@ -11776,8 +11776,8 @@ function tr(e, r, a) {
|
|
|
11776
11776
|
function rr(e) {
|
|
11777
11777
|
for (var r = [], a = {}, n = 0; n < e.length; n++) {
|
|
11778
11778
|
var c = Object.keys(e[n]);
|
|
11779
|
-
c.sort(function(o,
|
|
11780
|
-
return Number(o) - Number(
|
|
11779
|
+
c.sort(function(o, m) {
|
|
11780
|
+
return Number(o) - Number(m);
|
|
11781
11781
|
});
|
|
11782
11782
|
for (var p = "", d = 0; d < c.length; d++)
|
|
11783
11783
|
p += JSON.stringify(c[d]), p += JSON.stringify(e[n][c[d]]);
|
|
@@ -11854,29 +11854,33 @@ function br(e = { name: "根节点", children: [] }, r, a = {
|
|
|
11854
11854
|
treePathSplit: "-"
|
|
11855
11855
|
}, n, c) {
|
|
11856
11856
|
let p = 0;
|
|
11857
|
-
function d(o,
|
|
11858
|
-
if (
|
|
11857
|
+
function d(o, m, y) {
|
|
11858
|
+
if (m.length === 0)
|
|
11859
11859
|
return;
|
|
11860
|
-
const s =
|
|
11861
|
-
let u = o[a.childrenKey].find((
|
|
11862
|
-
p++, u ? u = c(u, s,
|
|
11860
|
+
const s = m[m.length - 1];
|
|
11861
|
+
let u = o[a.childrenKey].find((w) => w[a.treeNameKey] === s);
|
|
11862
|
+
p++, u ? u = c(u, s, y, p, o) : (u = n(s, y, p, o), o[a.childrenKey].push(u)), d(u, m.slice(0, -1), y);
|
|
11863
11863
|
}
|
|
11864
11864
|
return r.forEach((o) => {
|
|
11865
|
-
const
|
|
11866
|
-
d(e,
|
|
11865
|
+
const m = o[a.treePathKey].split(a.treePathSplit);
|
|
11866
|
+
d(e, m, o);
|
|
11867
11867
|
}), e;
|
|
11868
11868
|
}
|
|
11869
11869
|
async function yr(e, r, a, n, c, p) {
|
|
11870
11870
|
const d = e.slice(0);
|
|
11871
11871
|
for (let o = 0; o < d.length; o++)
|
|
11872
11872
|
if (o >= a * c && o < n * c) {
|
|
11873
|
-
const
|
|
11874
|
-
|
|
11873
|
+
const m = d[o];
|
|
11874
|
+
m[r] = await p(m, o);
|
|
11875
11875
|
} else if (o >= n * c)
|
|
11876
11876
|
break;
|
|
11877
11877
|
return d;
|
|
11878
11878
|
}
|
|
11879
|
-
|
|
11879
|
+
async function gr(e, r, a, n, c, p) {
|
|
11880
|
+
const d = e.slice(0), o = d.filter((m, y) => y >= a * c && y < n * c).map(async (m, y) => (m[r] = await p(m), 1));
|
|
11881
|
+
return await Promise.all(o), d;
|
|
11882
|
+
}
|
|
11883
|
+
const Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11880
11884
|
__proto__: null,
|
|
11881
11885
|
average: pr,
|
|
11882
11886
|
buildTree: br,
|
|
@@ -11890,7 +11894,8 @@ const Ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11890
11894
|
mixSort: er,
|
|
11891
11895
|
pagination: Jt,
|
|
11892
11896
|
remove: cr,
|
|
11893
|
-
|
|
11897
|
+
setObejctArrayPropertyAsync: gr,
|
|
11898
|
+
setObejctArrayPropertySync: yr,
|
|
11894
11899
|
shuffle: dr,
|
|
11895
11900
|
sortByKey: tr,
|
|
11896
11901
|
sum: lr,
|
|
@@ -11899,7 +11904,7 @@ const Ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11899
11904
|
uniqueObject: rr,
|
|
11900
11905
|
uniqueObjectByKey: Qt
|
|
11901
11906
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11902
|
-
function
|
|
11907
|
+
function mr(e) {
|
|
11903
11908
|
const a = new Xt(new Qe(e)).pe.sections.find((d) => d.name === ".rsrc"), n = ye(
|
|
11904
11909
|
a.body,
|
|
11905
11910
|
new Uint8Array([
|
|
@@ -11938,25 +11943,25 @@ function gr(e) {
|
|
|
11938
11943
|
a.body.slice(n + 26, n + c + 26)
|
|
11939
11944
|
);
|
|
11940
11945
|
}
|
|
11941
|
-
const
|
|
11946
|
+
const Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11942
11947
|
__proto__: null,
|
|
11943
|
-
getFileVersion:
|
|
11948
|
+
getFileVersion: mr
|
|
11944
11949
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11945
|
-
function
|
|
11950
|
+
function wr(e, r) {
|
|
11946
11951
|
var a = /^(#?)[a-fA-F0-9]{6}$/, n = typeof r == "number";
|
|
11947
11952
|
if (!a.test(e))
|
|
11948
11953
|
return "";
|
|
11949
11954
|
for (var c = e.replace(/#/, ""), p = [], d = "", o = 0; o < 3; o++) {
|
|
11950
|
-
var
|
|
11951
|
-
p.push(
|
|
11955
|
+
var m = c.substring(o * 2, o * 2 + 2), y = parseInt(m, 16);
|
|
11956
|
+
p.push(y);
|
|
11952
11957
|
}
|
|
11953
11958
|
return d = p.join(), d = "rgb" + (n ? "a" : "") + "(" + d + (n ? "," + r : "") + ")", d;
|
|
11954
11959
|
}
|
|
11955
|
-
function
|
|
11956
|
-
const n = ge(e), c = n[0], p = n[1], d = n[2], o = ge(r),
|
|
11960
|
+
function vr(e, r, a) {
|
|
11961
|
+
const n = ge(e), c = n[0], p = n[1], d = n[2], o = ge(r), m = o[0], y = o[1], s = o[2], u = (m - c) / a, w = (y - p) / a, b = (s - d) / a, E = [];
|
|
11957
11962
|
for (let v = 0; v < a; v++) {
|
|
11958
11963
|
const S = tt(
|
|
11959
|
-
"rgb(" + parseInt(u * v + c) + "," + parseInt(
|
|
11964
|
+
"rgb(" + parseInt(u * v + c) + "," + parseInt(w * v + p) + "," + parseInt(b * v + d) + ")"
|
|
11960
11965
|
);
|
|
11961
11966
|
E.push(S);
|
|
11962
11967
|
}
|
|
@@ -12001,14 +12006,14 @@ function tt(e) {
|
|
|
12001
12006
|
} else
|
|
12002
12007
|
return r;
|
|
12003
12008
|
}
|
|
12004
|
-
const
|
|
12009
|
+
const en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12005
12010
|
__proto__: null,
|
|
12006
|
-
GetGradientColor:
|
|
12011
|
+
GetGradientColor: vr,
|
|
12007
12012
|
colorHex: tt,
|
|
12008
12013
|
colorRgb: ge,
|
|
12009
|
-
colorToRGBA:
|
|
12014
|
+
colorToRGBA: wr
|
|
12010
12015
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12011
|
-
function
|
|
12016
|
+
function _r(e) {
|
|
12012
12017
|
const r = [];
|
|
12013
12018
|
e.forEach((c) => {
|
|
12014
12019
|
r.push(new Date(c));
|
|
@@ -12016,7 +12021,7 @@ function vr(e) {
|
|
|
12016
12021
|
const a = new Date(Math.max.apply(null, r));
|
|
12017
12022
|
return [new Date(Math.min.apply(null, r)), a];
|
|
12018
12023
|
}
|
|
12019
|
-
function
|
|
12024
|
+
function xr(e, r) {
|
|
12020
12025
|
var a = new Date(e), n = new Date(r);
|
|
12021
12026
|
return a >= n;
|
|
12022
12027
|
}
|
|
@@ -12036,19 +12041,19 @@ function rt(e, r) {
|
|
|
12036
12041
|
a: n.getDay()
|
|
12037
12042
|
};
|
|
12038
12043
|
return a.replace(/{([ymdhisa])+}/g, (d, o) => {
|
|
12039
|
-
const
|
|
12040
|
-
return o === "a" ? ["日", "一", "二", "三", "四", "五", "六"][
|
|
12044
|
+
const m = c[o];
|
|
12045
|
+
return o === "a" ? ["日", "一", "二", "三", "四", "五", "六"][m] : m.toString().padStart(2, "0");
|
|
12041
12046
|
});
|
|
12042
12047
|
}
|
|
12043
|
-
function
|
|
12048
|
+
function Er(e, r) {
|
|
12044
12049
|
("" + e).length === 10 ? e = parseInt(e) * 1e3 : e = +e;
|
|
12045
12050
|
const a = new Date(e), c = (Date.now() - a) / 1e3;
|
|
12046
12051
|
return c < 30 ? "刚刚" : c < 3600 ? Math.ceil(c / 60) + "分钟前" : c < 3600 * 24 ? Math.ceil(c / 3600) + "小时前" : c < 3600 * 24 * 2 ? "1天前" : r ? rt(e, r) : a.getMonth() + 1 + "月" + a.getDate() + "日" + a.getHours() + "时" + a.getMinutes() + "分";
|
|
12047
12052
|
}
|
|
12048
|
-
function
|
|
12053
|
+
function Sr(e) {
|
|
12049
12054
|
return e.getYear() % 4 === 0 && (e.getYear() % 100 !== 0 || e.getYear() % 400 === 0);
|
|
12050
12055
|
}
|
|
12051
|
-
function
|
|
12056
|
+
function Br(e = /* @__PURE__ */ new Date(), r = "yyyy-MM-dd hh:mm:ss") {
|
|
12052
12057
|
const a = new Date(e);
|
|
12053
12058
|
var n = {
|
|
12054
12059
|
"M+": a.getMonth() + 1,
|
|
@@ -12074,7 +12079,7 @@ function Sr(e = /* @__PURE__ */ new Date(), r = "yyyy-MM-dd hh:mm:ss") {
|
|
|
12074
12079
|
));
|
|
12075
12080
|
return r;
|
|
12076
12081
|
}
|
|
12077
|
-
function
|
|
12082
|
+
function Ar(e, r) {
|
|
12078
12083
|
var a = 0, n = -1, c = r.length;
|
|
12079
12084
|
(n = e.indexOf("yyyy")) > -1 && n < c && (a = r.substr(n, 4));
|
|
12080
12085
|
var p = 0;
|
|
@@ -12083,10 +12088,10 @@ function Br(e, r) {
|
|
|
12083
12088
|
(n = e.indexOf("dd")) > -1 && n < c && (d = parseInt(r.substr(n, 2)));
|
|
12084
12089
|
var o = 0;
|
|
12085
12090
|
((n = e.indexOf("HH")) > -1 || (n = e.indexOf("hh")) > 1) && n < c && (o = parseInt(r.substr(n, 2)));
|
|
12086
|
-
var
|
|
12087
|
-
(n = e.indexOf("mm")) > -1 && n < c && (
|
|
12088
|
-
var
|
|
12089
|
-
return (n = e.indexOf("ss")) > -1 && n < c && (
|
|
12091
|
+
var m = 0;
|
|
12092
|
+
(n = e.indexOf("mm")) > -1 && n < c && (m = r.substr(n, 2));
|
|
12093
|
+
var y = 0;
|
|
12094
|
+
return (n = e.indexOf("ss")) > -1 && n < c && (y = r.substr(n, 2)), new Date(a, p, d, o, m, y);
|
|
12090
12095
|
}
|
|
12091
12096
|
function it(e, r, a) {
|
|
12092
12097
|
switch (e) {
|
|
@@ -12138,23 +12143,23 @@ function nt(e, r, a) {
|
|
|
12138
12143
|
);
|
|
12139
12144
|
}
|
|
12140
12145
|
}
|
|
12141
|
-
function
|
|
12146
|
+
function Ur(e) {
|
|
12142
12147
|
var r, a, n;
|
|
12143
12148
|
if (!(e == null || e < 0)) {
|
|
12144
12149
|
var c = parseInt(e);
|
|
12145
12150
|
return r = c / 3600 | 0, c = parseInt(c) - parseInt(r) * 3600, parseInt(r) < 10 && (r = "0" + r), parseInt(r) >= 24 && (r = "00"), a = parseInt(c) / 60 | 0, n = parseInt(c) - parseInt(a) * 60, parseInt(a) < 10 && (a = "0" + a), parseInt(n) < 10 && (n = "0" + n), r + ":" + a + ":" + n;
|
|
12146
12151
|
}
|
|
12147
12152
|
}
|
|
12148
|
-
function
|
|
12153
|
+
function Tr() {
|
|
12149
12154
|
var e = /* @__PURE__ */ new Date(), r = e.getFullYear(), a = e.getMonth() + 1, n = e.getDate(), c = [];
|
|
12150
12155
|
return c[0] = "星期日", c[1] = "星期一", c[2] = "星期二", c[3] = "星期三", c[4] = "星期四", c[5] = "星期五", c[6] = "星期六", r + "年" + a + "月" + n + "日 " + c[e.getDay()];
|
|
12151
12156
|
}
|
|
12152
|
-
function
|
|
12157
|
+
function Fr(e) {
|
|
12153
12158
|
e = arguments[0] || /* @__PURE__ */ new Date(), e.setDate(1), e.setMonth(e.getMonth() + 1);
|
|
12154
12159
|
var r = e.getTime() - 24 * 60 * 60 * 1e3, a = new Date(r);
|
|
12155
12160
|
return a.getDate();
|
|
12156
12161
|
}
|
|
12157
|
-
function
|
|
12162
|
+
function Or(e, r) {
|
|
12158
12163
|
var a = 0, n = it("d", e, r) + 1;
|
|
12159
12164
|
if (n > 0)
|
|
12160
12165
|
for (var c = 0; c < n; c++) {
|
|
@@ -12163,7 +12168,7 @@ function Fr(e, r) {
|
|
|
12163
12168
|
}
|
|
12164
12169
|
return a;
|
|
12165
12170
|
}
|
|
12166
|
-
function
|
|
12171
|
+
function Ir(e, r) {
|
|
12167
12172
|
r = arguments[1] || /* @__PURE__ */ new Date();
|
|
12168
12173
|
var a = "", n = ["日", "一", "二", "三", "四", "五", "六"];
|
|
12169
12174
|
switch (e) {
|
|
@@ -12194,57 +12199,57 @@ function Or(e, r) {
|
|
|
12194
12199
|
}
|
|
12195
12200
|
return a;
|
|
12196
12201
|
}
|
|
12197
|
-
const
|
|
12202
|
+
const tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12198
12203
|
__proto__: null,
|
|
12199
|
-
compareDate:
|
|
12204
|
+
compareDate: xr,
|
|
12200
12205
|
dateAdd: nt,
|
|
12201
12206
|
dateDiff: it,
|
|
12202
|
-
formatDate:
|
|
12203
|
-
formatTime:
|
|
12204
|
-
getDatePart:
|
|
12205
|
-
getIntervalWeekends:
|
|
12206
|
-
getMinMaxDate:
|
|
12207
|
-
getTodayDate:
|
|
12208
|
-
isLeapYear:
|
|
12209
|
-
maxDayOfDate:
|
|
12207
|
+
formatDate: Br,
|
|
12208
|
+
formatTime: Er,
|
|
12209
|
+
getDatePart: Ir,
|
|
12210
|
+
getIntervalWeekends: Or,
|
|
12211
|
+
getMinMaxDate: _r,
|
|
12212
|
+
getTodayDate: Tr,
|
|
12213
|
+
isLeapYear: Sr,
|
|
12214
|
+
maxDayOfDate: Fr,
|
|
12210
12215
|
parseTime: rt,
|
|
12211
|
-
strFormatToDate:
|
|
12212
|
-
timeTohhmmss:
|
|
12216
|
+
strFormatToDate: Ar,
|
|
12217
|
+
timeTohhmmss: Ur
|
|
12213
12218
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12214
12219
|
function me(e, r) {
|
|
12215
12220
|
return new RegExp("(^|\\s)" + r + "(\\s|$)").test(e.className);
|
|
12216
12221
|
}
|
|
12217
|
-
function
|
|
12222
|
+
function Cr(e, r) {
|
|
12218
12223
|
if (me(e, r))
|
|
12219
12224
|
return;
|
|
12220
12225
|
const a = e.className.split(" ");
|
|
12221
12226
|
a.push(r), e.className = a.join(" ");
|
|
12222
12227
|
}
|
|
12223
|
-
function
|
|
12228
|
+
function Dr(e, r) {
|
|
12224
12229
|
if (!me(e, r))
|
|
12225
12230
|
return;
|
|
12226
12231
|
const a = new RegExp("(^|\\s)" + r + "(\\s|$)", "g");
|
|
12227
12232
|
e.className = e.className.replace(a, " ");
|
|
12228
12233
|
}
|
|
12229
|
-
function
|
|
12234
|
+
function Lr(e = window) {
|
|
12230
12235
|
return {
|
|
12231
12236
|
x: e.pageXOffset !== void 0 ? e.pageXOffset : e.scrollLeft,
|
|
12232
12237
|
y: e.pageYOffset !== void 0 ? e.pageYOffset : e.scrollTop
|
|
12233
12238
|
};
|
|
12234
12239
|
}
|
|
12235
|
-
function
|
|
12240
|
+
function Rr(e, r = !1) {
|
|
12236
12241
|
const { top: a, left: n, bottom: c, right: p } = e.getBoundingClientRect(), { innerHeight: d, innerWidth: o } = window;
|
|
12237
12242
|
return r ? (a > 0 && a < d || c > 0 && c < d) && (n > 0 && n < o || p > 0 && p < o) : a >= 0 && n >= 0 && c <= d && p <= o;
|
|
12238
12243
|
}
|
|
12239
|
-
const
|
|
12244
|
+
const rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12240
12245
|
__proto__: null,
|
|
12241
|
-
addClass:
|
|
12242
|
-
elementIsVisibleInViewport:
|
|
12243
|
-
getScrollPosition:
|
|
12246
|
+
addClass: Cr,
|
|
12247
|
+
elementIsVisibleInViewport: Rr,
|
|
12248
|
+
getScrollPosition: Lr,
|
|
12244
12249
|
hasClass: me,
|
|
12245
|
-
removeClass:
|
|
12250
|
+
removeClass: Dr
|
|
12246
12251
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12247
|
-
function
|
|
12252
|
+
function Pr(e, ...r) {
|
|
12248
12253
|
if (typeof e == "function")
|
|
12249
12254
|
try {
|
|
12250
12255
|
return e(...r);
|
|
@@ -12254,15 +12259,15 @@ function Rr(e, ...r) {
|
|
|
12254
12259
|
else
|
|
12255
12260
|
console.warn("func 不是可执行的方法!", e);
|
|
12256
12261
|
}
|
|
12257
|
-
const
|
|
12262
|
+
const nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12258
12263
|
__proto__: null,
|
|
12259
|
-
safeExecuteFunc:
|
|
12264
|
+
safeExecuteFunc: Pr
|
|
12260
12265
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12261
12266
|
function at() {
|
|
12262
12267
|
const e = document.documentElement.scrollTop || document.body.scrollTop;
|
|
12263
12268
|
e > 0 && (window.requestAnimationFrame(at), window.scrollTo(0, e - e / 8));
|
|
12264
12269
|
}
|
|
12265
|
-
function
|
|
12270
|
+
function kr(e) {
|
|
12266
12271
|
var r = document.createElement("textarea");
|
|
12267
12272
|
r.style.background = "transparent", r.value = e, document.body.appendChild(r), r.select();
|
|
12268
12273
|
try {
|
|
@@ -12272,12 +12277,12 @@ function Pr(e) {
|
|
|
12272
12277
|
}
|
|
12273
12278
|
document.body.removeChild(r);
|
|
12274
12279
|
}
|
|
12275
|
-
function
|
|
12280
|
+
function Mr(e) {
|
|
12276
12281
|
e === void 0 && (e = !(document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen));
|
|
12277
12282
|
var r = document.documentElement;
|
|
12278
12283
|
return e ? r.requestFullscreen && r.requestFullscreen() || r.mozRequestFullScreen && r.mozRequestFullScreen() || r.webkitRequestFullscreen && r.webkitRequestFullscreen() || r.msRequestFullscreen && r.msRequestFullscreen() : document.exitFullscreen && document.exitFullscreen() || document.mozCancelFullScreen && document.mozCancelFullScreen() || document.webkitExitFullscreen && document.webkitExitFullscreen(), e;
|
|
12279
12284
|
}
|
|
12280
|
-
function
|
|
12285
|
+
function Nr(e, r, a, n) {
|
|
12281
12286
|
var c = (screen.width - r) / 2, p = (screen.height - a) / 2;
|
|
12282
12287
|
window.open(
|
|
12283
12288
|
e,
|
|
@@ -12285,31 +12290,31 @@ function Mr(e, r, a, n) {
|
|
|
12285
12290
|
"height=" + a + ",width=" + r + ",location=no,menubar=no,resizable=" + n + ",scrollbars=yes,status=no,toolbar=no,left=" + c + ",top=" + p
|
|
12286
12291
|
);
|
|
12287
12292
|
}
|
|
12288
|
-
function
|
|
12293
|
+
function jr(e, r, a, n, c) {
|
|
12289
12294
|
var p = "";
|
|
12290
12295
|
if (c !== null && typeof c == "object")
|
|
12291
12296
|
for (var d in c)
|
|
12292
12297
|
Object.prototype.hasOwnProperty.call(c, d) && (p += d + "=" + c[d] + ",");
|
|
12293
|
-
var o = window.screenLeft !== void 0 ? window.screenLeft : screen.left,
|
|
12298
|
+
var o = window.screenLeft !== void 0 ? window.screenLeft : screen.left, m = window.screenTop !== void 0 ? window.screenTop : screen.top, y = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width, s = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height, u = y / 2 - a / 2 + o, w = s / 2 - n / 2 + m, b = window.open(
|
|
12294
12299
|
e,
|
|
12295
12300
|
r,
|
|
12296
|
-
p + " width=" + a + ", height=" + n + ", top=" +
|
|
12301
|
+
p + " width=" + a + ", height=" + n + ", top=" + w + ", left=" + u
|
|
12297
12302
|
);
|
|
12298
12303
|
window.focus && b.focus();
|
|
12299
12304
|
}
|
|
12300
|
-
function
|
|
12305
|
+
function qr(e) {
|
|
12301
12306
|
confirm(e) && (window.opener = null, window.open("", "_self"), window.close());
|
|
12302
12307
|
}
|
|
12303
|
-
const
|
|
12308
|
+
const an = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12304
12309
|
__proto__: null,
|
|
12305
|
-
confirmClosewindow:
|
|
12306
|
-
copyTextToClipboard:
|
|
12307
|
-
openWindow:
|
|
12308
|
-
popupCenter:
|
|
12310
|
+
confirmClosewindow: qr,
|
|
12311
|
+
copyTextToClipboard: kr,
|
|
12312
|
+
openWindow: Nr,
|
|
12313
|
+
popupCenter: jr,
|
|
12309
12314
|
scrollToTop: at,
|
|
12310
|
-
toggleFullScreen:
|
|
12315
|
+
toggleFullScreen: Mr
|
|
12311
12316
|
}, Symbol.toStringTag, { value: "Module" })), $ = Object.prototype.toString, V = navigator.userAgent.toLowerCase();
|
|
12312
|
-
function
|
|
12317
|
+
function zr(e) {
|
|
12313
12318
|
if (!/(^\d{15}$)|(^\d{17}(\d|X|x)$)/.test(e))
|
|
12314
12319
|
return console.log("你输入的身份证长度或格式错误"), !1;
|
|
12315
12320
|
var r = {
|
|
@@ -12356,10 +12361,10 @@ function qr(e) {
|
|
|
12356
12361
|
return console.log("身份证上的出生日期非法"), !1;
|
|
12357
12362
|
for (var c = 0, p = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2], d = "10X98765432", o = 0; o < e.length - 1; o++)
|
|
12358
12363
|
c += e[o] * p[o];
|
|
12359
|
-
var
|
|
12360
|
-
return e[e.length - 1] !==
|
|
12364
|
+
var m = d[c % 11];
|
|
12365
|
+
return e[e.length - 1] !== m ? (console.log("你输入的身份证号非法"), !1) : !0;
|
|
12361
12366
|
}
|
|
12362
|
-
function
|
|
12367
|
+
function Vr(e, r) {
|
|
12363
12368
|
switch (r) {
|
|
12364
12369
|
case "phone":
|
|
12365
12370
|
return /^1[3|4|5|6|7|8|9][0-9]{9}$/.test(e);
|
|
@@ -12405,71 +12410,71 @@ function zr(e, r) {
|
|
|
12405
12410
|
return !0;
|
|
12406
12411
|
}
|
|
12407
12412
|
}
|
|
12408
|
-
function
|
|
12413
|
+
function Hr(e) {
|
|
12409
12414
|
return $.call(e) === "[object Array]";
|
|
12410
12415
|
}
|
|
12411
|
-
function
|
|
12416
|
+
function $r(e) {
|
|
12412
12417
|
return ![void 0, null].includes(e) && e.constructor === Buffer;
|
|
12413
12418
|
}
|
|
12414
|
-
function
|
|
12419
|
+
function Wr(e) {
|
|
12415
12420
|
return $.call(e) === "[object ArrayBuffer]";
|
|
12416
12421
|
}
|
|
12417
|
-
function
|
|
12422
|
+
function Gr(e) {
|
|
12418
12423
|
return typeof FormData < "u" && e instanceof FormData && $.call(e) === "[object FormData]";
|
|
12419
12424
|
}
|
|
12420
|
-
function
|
|
12425
|
+
function Yr(e) {
|
|
12421
12426
|
let r;
|
|
12422
12427
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? r = ArrayBuffer.isView(e) : r = e && e.buffer && e.buffer instanceof ArrayBuffer, r;
|
|
12423
12428
|
}
|
|
12424
|
-
function
|
|
12429
|
+
function Zr(e) {
|
|
12425
12430
|
return typeof e == "string";
|
|
12426
12431
|
}
|
|
12427
|
-
function
|
|
12432
|
+
function Xr(e) {
|
|
12428
12433
|
return typeof e == "number";
|
|
12429
12434
|
}
|
|
12430
|
-
function
|
|
12435
|
+
function Kr(e) {
|
|
12431
12436
|
return Object.prototype.toString.call(e).slice(8, -1) === "Boolean";
|
|
12432
12437
|
}
|
|
12433
|
-
function
|
|
12438
|
+
function Jr(e) {
|
|
12434
12439
|
return Object.prototype.toString.call(e).slice(8, -1) === "Null";
|
|
12435
12440
|
}
|
|
12436
|
-
function
|
|
12441
|
+
function Qr(e) {
|
|
12437
12442
|
return typeof e > "u";
|
|
12438
12443
|
}
|
|
12439
|
-
function
|
|
12444
|
+
function ei(e) {
|
|
12440
12445
|
return Object.prototype.toString.call(e).slice(8, -1) === "RegExp";
|
|
12441
12446
|
}
|
|
12442
|
-
function
|
|
12447
|
+
function ti(e) {
|
|
12443
12448
|
return Object.prototype.toString.call(e).slice(8, -1) === "Error";
|
|
12444
12449
|
}
|
|
12445
|
-
function
|
|
12450
|
+
function ri(e) {
|
|
12446
12451
|
return Object.prototype.toString.call(e).slice(8, -1) === "Symbol";
|
|
12447
12452
|
}
|
|
12448
|
-
function
|
|
12453
|
+
function ii(e) {
|
|
12449
12454
|
return Object.prototype.toString.call(e).slice(8, -1) === "Promise";
|
|
12450
12455
|
}
|
|
12451
|
-
function
|
|
12456
|
+
function ni(e) {
|
|
12452
12457
|
return Object.prototype.toString.call(e).slice(8, -1) === "Set";
|
|
12453
12458
|
}
|
|
12454
|
-
function
|
|
12459
|
+
function ai() {
|
|
12455
12460
|
return typeof V < "u" && V.match(/microMessenger/i) === "micromessenger";
|
|
12456
12461
|
}
|
|
12457
|
-
function
|
|
12462
|
+
function si() {
|
|
12458
12463
|
return typeof V < "u" && /android|webos|iphone|ipod|balckberry/i.test(V);
|
|
12459
12464
|
}
|
|
12460
|
-
function
|
|
12465
|
+
function oi() {
|
|
12461
12466
|
return typeof V < "u" && !!V.match(/mqqbrowser|qzone|qqbrowser|qbwebviewtype/i);
|
|
12462
12467
|
}
|
|
12463
|
-
function
|
|
12468
|
+
function ci() {
|
|
12464
12469
|
return typeof V < "u" && /adsbot|googlebot|bingbot|msnbot|yandexbot|baidubot|robot|careerbot|seznambot|bot|baiduspider|jikespider|symantecspider|scannerlwebcrawler|crawler|360spider|sosospider|sogou web sprider|sogou orion spider/.test(
|
|
12465
12470
|
V
|
|
12466
12471
|
);
|
|
12467
12472
|
}
|
|
12468
|
-
function
|
|
12473
|
+
function fi() {
|
|
12469
12474
|
var e = navigator.userAgent;
|
|
12470
12475
|
return e.indexOf("Android") > -1 || e.indexOf("Linux") > -1 ? !1 : e.indexOf("iPhone") > -1 ? !0 : (e.indexOf("iPad") > -1 || e.indexOf("Windows Phone") > -1, !1);
|
|
12471
12476
|
}
|
|
12472
|
-
function
|
|
12477
|
+
function ui() {
|
|
12473
12478
|
for (var e = navigator.userAgent, r = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"], a = !0, n = 0; n < r.length; n++)
|
|
12474
12479
|
if (e.indexOf(r[n]) > 0) {
|
|
12475
12480
|
a = !1;
|
|
@@ -12480,93 +12485,93 @@ function fi() {
|
|
|
12480
12485
|
function st(e) {
|
|
12481
12486
|
return e !== null && typeof e == "object";
|
|
12482
12487
|
}
|
|
12483
|
-
function
|
|
12488
|
+
function hi(e) {
|
|
12484
12489
|
return $.call(e) === "[object Date]";
|
|
12485
12490
|
}
|
|
12486
|
-
function
|
|
12491
|
+
function li(e) {
|
|
12487
12492
|
return $.call(e) === "[object File]";
|
|
12488
12493
|
}
|
|
12489
|
-
function
|
|
12494
|
+
function pi(e) {
|
|
12490
12495
|
return $.call(e) === "[object Blob]";
|
|
12491
12496
|
}
|
|
12492
12497
|
function ot(e) {
|
|
12493
12498
|
return $.call(e) === "[object Function]";
|
|
12494
12499
|
}
|
|
12495
|
-
function
|
|
12500
|
+
function di(e) {
|
|
12496
12501
|
return st(e) && ot(e.pipe);
|
|
12497
12502
|
}
|
|
12498
|
-
function
|
|
12503
|
+
function bi(e) {
|
|
12499
12504
|
return typeof URLSearchParams < "u" && e instanceof URLSearchParams;
|
|
12500
12505
|
}
|
|
12501
|
-
function
|
|
12506
|
+
function yi() {
|
|
12502
12507
|
return typeof navigator < "u" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
12503
12508
|
}
|
|
12504
|
-
function
|
|
12509
|
+
function gi(e) {
|
|
12505
12510
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
12506
12511
|
}
|
|
12507
|
-
function
|
|
12512
|
+
function mi(e) {
|
|
12508
12513
|
return /^http[s]?:\/\/.*/.test(e);
|
|
12509
12514
|
}
|
|
12510
|
-
function
|
|
12515
|
+
function wi(e) {
|
|
12511
12516
|
return /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/.test(e);
|
|
12512
12517
|
}
|
|
12513
|
-
function
|
|
12518
|
+
function vi(e) {
|
|
12514
12519
|
return /^1[0-9]{10}$/.test(e);
|
|
12515
12520
|
}
|
|
12516
|
-
function
|
|
12521
|
+
function _i(e) {
|
|
12517
12522
|
return /^([0-9]{3,4}-)?[0-9]{7,8}$/.test(e);
|
|
12518
12523
|
}
|
|
12519
|
-
const
|
|
12524
|
+
const sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12520
12525
|
__proto__: null,
|
|
12521
|
-
checkStr:
|
|
12522
|
-
isAbsoluteURL:
|
|
12523
|
-
isArray:
|
|
12524
|
-
isArrayBuffer:
|
|
12525
|
-
isArrayBufferView:
|
|
12526
|
-
isBlob:
|
|
12527
|
-
isBoolean:
|
|
12528
|
-
isBuffer:
|
|
12529
|
-
isDate:
|
|
12530
|
-
isDeviceMobile:
|
|
12531
|
-
isEmail:
|
|
12532
|
-
isError:
|
|
12533
|
-
isFile:
|
|
12534
|
-
isFormData:
|
|
12526
|
+
checkStr: Vr,
|
|
12527
|
+
isAbsoluteURL: gi,
|
|
12528
|
+
isArray: Hr,
|
|
12529
|
+
isArrayBuffer: Wr,
|
|
12530
|
+
isArrayBufferView: Yr,
|
|
12531
|
+
isBlob: pi,
|
|
12532
|
+
isBoolean: Kr,
|
|
12533
|
+
isBuffer: $r,
|
|
12534
|
+
isDate: hi,
|
|
12535
|
+
isDeviceMobile: si,
|
|
12536
|
+
isEmail: wi,
|
|
12537
|
+
isError: ti,
|
|
12538
|
+
isFile: li,
|
|
12539
|
+
isFormData: Gr,
|
|
12535
12540
|
isFunction: ot,
|
|
12536
|
-
isIDCard:
|
|
12537
|
-
isIos:
|
|
12538
|
-
isMobile:
|
|
12539
|
-
isNull:
|
|
12540
|
-
isNumber:
|
|
12541
|
+
isIDCard: zr,
|
|
12542
|
+
isIos: fi,
|
|
12543
|
+
isMobile: vi,
|
|
12544
|
+
isNull: Jr,
|
|
12545
|
+
isNumber: Xr,
|
|
12541
12546
|
isObject: st,
|
|
12542
|
-
isPC:
|
|
12543
|
-
isPhone:
|
|
12544
|
-
isPromise:
|
|
12545
|
-
isQQBrowser:
|
|
12546
|
-
isRegExp:
|
|
12547
|
-
isSet:
|
|
12548
|
-
isSpider:
|
|
12549
|
-
isStandardBrowserEnv:
|
|
12550
|
-
isStream:
|
|
12551
|
-
isString:
|
|
12552
|
-
isSymbol:
|
|
12553
|
-
isURL:
|
|
12554
|
-
isURLSearchParams:
|
|
12555
|
-
isUndefined:
|
|
12556
|
-
isWeiXin:
|
|
12547
|
+
isPC: ui,
|
|
12548
|
+
isPhone: _i,
|
|
12549
|
+
isPromise: ii,
|
|
12550
|
+
isQQBrowser: oi,
|
|
12551
|
+
isRegExp: ei,
|
|
12552
|
+
isSet: ni,
|
|
12553
|
+
isSpider: ci,
|
|
12554
|
+
isStandardBrowserEnv: yi,
|
|
12555
|
+
isStream: di,
|
|
12556
|
+
isString: Zr,
|
|
12557
|
+
isSymbol: ri,
|
|
12558
|
+
isURL: mi,
|
|
12559
|
+
isURLSearchParams: bi,
|
|
12560
|
+
isUndefined: Qr,
|
|
12561
|
+
isWeiXin: ai
|
|
12557
12562
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12558
|
-
function
|
|
12563
|
+
function xi(e, r) {
|
|
12559
12564
|
const n = e.entries().find((c) => c.value === r);
|
|
12560
12565
|
return n === void 0 ? n : n.key;
|
|
12561
12566
|
}
|
|
12562
|
-
const
|
|
12567
|
+
const on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12563
12568
|
__proto__: null,
|
|
12564
|
-
getKeyByValue:
|
|
12569
|
+
getKeyByValue: xi
|
|
12565
12570
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12566
|
-
function
|
|
12571
|
+
function Ei(e, r) {
|
|
12567
12572
|
return arguments.length === 2 ? Math.floor(e + Math.random() * (r + 1 - e)) : null;
|
|
12568
12573
|
}
|
|
12569
|
-
function
|
|
12574
|
+
function Si(e) {
|
|
12570
12575
|
var r = "", a = ["Ⅰ", "Ⅱ", "Ⅲ", "Ⅳ", "Ⅴ", "Ⅵ", "Ⅶ", "Ⅷ", "Ⅸ", "Ⅹ", "Ⅺ", "Ⅻ"];
|
|
12571
12576
|
if (e < 1 || e > 12)
|
|
12572
12577
|
r = e.toString();
|
|
@@ -12576,7 +12581,7 @@ function Ei(e) {
|
|
|
12576
12581
|
}
|
|
12577
12582
|
return r;
|
|
12578
12583
|
}
|
|
12579
|
-
function
|
|
12584
|
+
function Bi(e) {
|
|
12580
12585
|
const r = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九", "十"], a = ["", "十", "百", "千", "万", "亿", "点", ""], n = ("" + e).replace(/(^0*)/g, "").split(".");
|
|
12581
12586
|
let c = 0, p = "";
|
|
12582
12587
|
for (let d = n[0].length - 1; d >= 0; d--) {
|
|
@@ -12600,11 +12605,11 @@ function Si(e) {
|
|
|
12600
12605
|
}
|
|
12601
12606
|
return p === "一十" && (p = "十"), p.match(/^一/) && p.length === 3 && (p = p.replace("一", "")), p;
|
|
12602
12607
|
}
|
|
12603
|
-
const
|
|
12608
|
+
const cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12604
12609
|
__proto__: null,
|
|
12605
|
-
Arab2Roman:
|
|
12606
|
-
numberToChinese:
|
|
12607
|
-
random:
|
|
12610
|
+
Arab2Roman: Si,
|
|
12611
|
+
numberToChinese: Bi,
|
|
12612
|
+
random: Ei
|
|
12608
12613
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12609
12614
|
function ct(e, { label: r, value: a, children: n }) {
|
|
12610
12615
|
for (let c = 0; c < e.length; c++) {
|
|
@@ -12612,7 +12617,7 @@ function ct(e, { label: r, value: a, children: n }) {
|
|
|
12612
12617
|
p.label = p[r], p.value = p[a], p[n] !== void 0 && p[n].length > 1 && (ct(p[n], { label: r, value: a, children: n }), p.children = p[n], p.children.length === 0 && delete p.children, delete p[n]), delete p[r], delete p[a];
|
|
12613
12618
|
}
|
|
12614
12619
|
}
|
|
12615
|
-
function
|
|
12620
|
+
function Ai(e, r) {
|
|
12616
12621
|
var a = Object.getOwnPropertyNames(e), n = Object.getOwnPropertyNames(r);
|
|
12617
12622
|
if (a.length !== n.length)
|
|
12618
12623
|
return !1;
|
|
@@ -12623,20 +12628,20 @@ function Bi(e, r) {
|
|
|
12623
12628
|
}
|
|
12624
12629
|
return !0;
|
|
12625
12630
|
}
|
|
12626
|
-
const
|
|
12631
|
+
const fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12627
12632
|
__proto__: null,
|
|
12628
|
-
isObjectEqual:
|
|
12633
|
+
isObjectEqual: Ai,
|
|
12629
12634
|
recursionTreeProp: ct
|
|
12630
12635
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12631
|
-
function
|
|
12636
|
+
function Ui(e) {
|
|
12632
12637
|
var r = /\.[^.]+$/.exec(e), a = String(r), n = a.toLowerCase();
|
|
12633
12638
|
return n;
|
|
12634
12639
|
}
|
|
12635
|
-
const
|
|
12640
|
+
const un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12636
12641
|
__proto__: null,
|
|
12637
|
-
getFileExt:
|
|
12642
|
+
getFileExt: Ui
|
|
12638
12643
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12639
|
-
class
|
|
12644
|
+
class hn {
|
|
12640
12645
|
constructor(r) {
|
|
12641
12646
|
this.source = r || window.localStorage, this.initRun();
|
|
12642
12647
|
}
|
|
@@ -12667,7 +12672,7 @@ class un {
|
|
|
12667
12672
|
return delete a[r], delete a[`${r}__expires__`], n;
|
|
12668
12673
|
}
|
|
12669
12674
|
}
|
|
12670
|
-
const
|
|
12675
|
+
const Ti = () => {
|
|
12671
12676
|
var e = function() {
|
|
12672
12677
|
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
12673
12678
|
};
|
|
@@ -12707,32 +12712,32 @@ const Ui = () => {
|
|
|
12707
12712
|
return !1;
|
|
12708
12713
|
}
|
|
12709
12714
|
};
|
|
12710
|
-
function
|
|
12715
|
+
function Fi(e) {
|
|
12711
12716
|
return e.split("").some((r) => ft(r.charCodeAt(0)));
|
|
12712
12717
|
}
|
|
12713
|
-
function
|
|
12718
|
+
function Oi(e) {
|
|
12714
12719
|
return e.split("").filter((a) => !ft(a.charCodeAt(0))).join("");
|
|
12715
12720
|
}
|
|
12716
|
-
function
|
|
12721
|
+
function Ii(e, r, a) {
|
|
12717
12722
|
const n = r - (e + "").length;
|
|
12718
12723
|
for (let c = 0; c < n; c++)
|
|
12719
12724
|
e = a + e;
|
|
12720
12725
|
return e;
|
|
12721
12726
|
}
|
|
12722
|
-
function
|
|
12727
|
+
function Ci(e, r, a) {
|
|
12723
12728
|
const n = r - (e + "").length;
|
|
12724
12729
|
for (let c = 0; c < n; c++)
|
|
12725
12730
|
e = e + a;
|
|
12726
12731
|
return e;
|
|
12727
12732
|
}
|
|
12728
|
-
function
|
|
12733
|
+
function Di(e, r, a) {
|
|
12729
12734
|
var n = e.slice(0, r) + a + e.slice(r);
|
|
12730
12735
|
return n;
|
|
12731
12736
|
}
|
|
12732
|
-
function
|
|
12737
|
+
function Li(e) {
|
|
12733
12738
|
return e.replace(/<[^>]+>/g, "");
|
|
12734
12739
|
}
|
|
12735
|
-
function
|
|
12740
|
+
function Ri(e, r) {
|
|
12736
12741
|
switch (r = r || 1, r) {
|
|
12737
12742
|
case 1:
|
|
12738
12743
|
return e.replace(/\s+/g, "");
|
|
@@ -12746,13 +12751,13 @@ function Li(e, r) {
|
|
|
12746
12751
|
return e;
|
|
12747
12752
|
}
|
|
12748
12753
|
}
|
|
12749
|
-
function
|
|
12754
|
+
function Pi(e) {
|
|
12750
12755
|
return typeof e == "string" ? e.replace(/-(\w)/g, (...r) => r[1].toUpperCase()) : e;
|
|
12751
12756
|
}
|
|
12752
|
-
function
|
|
12757
|
+
function ki(e) {
|
|
12753
12758
|
return typeof e == "string" ? e.replace(/([A-Z])/g, "-$1").toLowerCase() : e;
|
|
12754
12759
|
}
|
|
12755
|
-
function
|
|
12760
|
+
function Mi(e, r) {
|
|
12756
12761
|
switch (r = r || 4, r) {
|
|
12757
12762
|
case 1:
|
|
12758
12763
|
return e.replace(/\b\w+\b/g, function(a) {
|
|
@@ -12774,62 +12779,62 @@ function ki(e, r) {
|
|
|
12774
12779
|
return e;
|
|
12775
12780
|
}
|
|
12776
12781
|
}
|
|
12777
|
-
function
|
|
12778
|
-
for (var n = e, c = r, p = 0, d = "", o = new RegExp("[一-龥]+"),
|
|
12779
|
-
var
|
|
12780
|
-
o.test(
|
|
12782
|
+
function Ni(e, r, a = "<br/>") {
|
|
12783
|
+
for (var n = e, c = r, p = 0, d = "", o = new RegExp("[一-龥]+"), m = 0; m < n.length; m++) {
|
|
12784
|
+
var y = n.charAt(m);
|
|
12785
|
+
o.test(y) ? p += 2 : p += 1, d += n.charAt(m), p >= c && (d = d + a, p = 0);
|
|
12781
12786
|
}
|
|
12782
12787
|
return d;
|
|
12783
12788
|
}
|
|
12784
|
-
function
|
|
12789
|
+
function ji(e) {
|
|
12785
12790
|
e = e.toString();
|
|
12786
12791
|
let r = "";
|
|
12787
12792
|
for (; e.length > 3; )
|
|
12788
12793
|
r = "," + e.substring(e.length - 3) + r, e = e.substring(0, e.length - 3);
|
|
12789
12794
|
return r = e + r, r;
|
|
12790
12795
|
}
|
|
12791
|
-
const
|
|
12796
|
+
const ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12792
12797
|
__proto__: null,
|
|
12793
|
-
addStrPerLength:
|
|
12794
|
-
changeCase:
|
|
12795
|
-
cleanInvalidSkuChars:
|
|
12796
|
-
containsInvalidSkuChars:
|
|
12797
|
-
humpToHyphen:
|
|
12798
|
-
hyphenToHump:
|
|
12799
|
-
insertStr:
|
|
12800
|
-
makeUUID:
|
|
12801
|
-
padLeft:
|
|
12802
|
-
padRight:
|
|
12803
|
-
removeHtmltag:
|
|
12804
|
-
toThousands:
|
|
12805
|
-
trim:
|
|
12798
|
+
addStrPerLength: Ni,
|
|
12799
|
+
changeCase: Mi,
|
|
12800
|
+
cleanInvalidSkuChars: Oi,
|
|
12801
|
+
containsInvalidSkuChars: Fi,
|
|
12802
|
+
humpToHyphen: ki,
|
|
12803
|
+
hyphenToHump: Pi,
|
|
12804
|
+
insertStr: Di,
|
|
12805
|
+
makeUUID: Ti,
|
|
12806
|
+
padLeft: Ii,
|
|
12807
|
+
padRight: Ci,
|
|
12808
|
+
removeHtmltag: Li,
|
|
12809
|
+
toThousands: ji,
|
|
12810
|
+
trim: Ri
|
|
12806
12811
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12807
|
-
function
|
|
12812
|
+
function qi(e, r) {
|
|
12808
12813
|
for (let n = 0; n < r.length; n++) {
|
|
12809
12814
|
const c = r[n], p = e.indexOf(c + "=");
|
|
12810
12815
|
if (p !== -1) {
|
|
12811
|
-
const d = e.indexOf("=", p), o = e.indexOf("&", p),
|
|
12812
|
-
let
|
|
12816
|
+
const d = e.indexOf("=", p), o = e.indexOf("&", p), m = e.indexOf("#", p);
|
|
12817
|
+
let y = "";
|
|
12813
12818
|
if (o !== -1) {
|
|
12814
12819
|
const s = o - d;
|
|
12815
|
-
|
|
12816
|
-
} else if (
|
|
12817
|
-
const s =
|
|
12818
|
-
|
|
12820
|
+
y = new RegExp(c + "=.{" + s + "}"), e = e.replace(y, "");
|
|
12821
|
+
} else if (m !== -1) {
|
|
12822
|
+
const s = m - d - 1;
|
|
12823
|
+
y = new RegExp("&?" + c + "=.{" + s + "}"), e = e.replace(y, "");
|
|
12819
12824
|
} else
|
|
12820
|
-
|
|
12825
|
+
y = new RegExp("&?" + c + "=.+"), e = e.replace(y, "");
|
|
12821
12826
|
}
|
|
12822
12827
|
}
|
|
12823
12828
|
return e.indexOf("=") === -1 && (e = e.replace(/\?/, "")), e;
|
|
12824
12829
|
}
|
|
12825
|
-
function
|
|
12830
|
+
function zi(e) {
|
|
12826
12831
|
const r = /[?&][^?&]+=[^?&]+/g, a = e.match(r);
|
|
12827
12832
|
return a === null ? e : e.replace(a.join(""), "");
|
|
12828
12833
|
}
|
|
12829
|
-
function
|
|
12834
|
+
function Vi(e) {
|
|
12830
12835
|
return new URLSearchParams(location.search).get(e);
|
|
12831
12836
|
}
|
|
12832
|
-
function
|
|
12837
|
+
function Hi(e) {
|
|
12833
12838
|
const r = e.split("?")[1];
|
|
12834
12839
|
return r ? JSON.parse(
|
|
12835
12840
|
'{"' + decodeURIComponent(r).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g, '":"').replace(/\+/g, " ") + '"}'
|
|
@@ -12841,15 +12846,15 @@ function ut(e) {
|
|
|
12841
12846
|
p[d] = n.charCodeAt(d);
|
|
12842
12847
|
return new Blob([p], { type: a });
|
|
12843
12848
|
}
|
|
12844
|
-
function
|
|
12849
|
+
function $i(e, r) {
|
|
12845
12850
|
const a = document.createElement("a"), n = ut(r);
|
|
12846
12851
|
a.download = e, a.href = URL.createObjectURL(n), a.dispatchEvent(new MouseEvent("click", { bubbles: !0, cancelable: !0, view: window }));
|
|
12847
12852
|
}
|
|
12848
|
-
function
|
|
12853
|
+
function Wi(e, r, a) {
|
|
12849
12854
|
const n = new Blob([a], { type: r }), c = URL.createObjectURL(n), p = document.createElement("a");
|
|
12850
12855
|
p.href = c, p.download = e, p.click(), window.URL.revokeObjectURL(c);
|
|
12851
12856
|
}
|
|
12852
|
-
function
|
|
12857
|
+
function Gi(e) {
|
|
12853
12858
|
const r = navigator.userAgent.toLowerCase().indexOf("chrome") > -1, a = navigator.userAgent.toLowerCase().indexOf("safari") > -1;
|
|
12854
12859
|
if (r || a) {
|
|
12855
12860
|
const n = document.createElement("a");
|
|
@@ -12864,11 +12869,11 @@ function Wi(e) {
|
|
|
12864
12869
|
}
|
|
12865
12870
|
return e.indexOf("?") === -1 && (e += "?download"), window.open(e, "_self"), !0;
|
|
12866
12871
|
}
|
|
12867
|
-
function
|
|
12872
|
+
function Yi(e, r) {
|
|
12868
12873
|
const a = document.createElement("a");
|
|
12869
12874
|
a.style.display = "none", a.href = r, a.download = e, a.click();
|
|
12870
12875
|
}
|
|
12871
|
-
function
|
|
12876
|
+
function Zi(e, r) {
|
|
12872
12877
|
fetch(r).then((a) => {
|
|
12873
12878
|
a.blob().then((n) => {
|
|
12874
12879
|
const c = window.URL.createObjectURL(n), p = document.createElement("a");
|
|
@@ -12876,45 +12881,45 @@ function Yi(e, r) {
|
|
|
12876
12881
|
});
|
|
12877
12882
|
});
|
|
12878
12883
|
}
|
|
12879
|
-
function
|
|
12884
|
+
function Xi(e) {
|
|
12880
12885
|
const r = document.createElement("script");
|
|
12881
12886
|
r.type = "text/javascript", r.async = !0, r.src = e;
|
|
12882
12887
|
const a = document.getElementsByTagName("script")[0];
|
|
12883
12888
|
a.parentNode.insertBefore(r, a);
|
|
12884
12889
|
}
|
|
12885
|
-
function
|
|
12890
|
+
function Ki(e) {
|
|
12886
12891
|
let r = 0;
|
|
12887
12892
|
return e.length < 6 || (/[0-9]/.test(e) && r++, /[a-z]/.test(e) && r++, /[A-Z]/.test(e) && r++, /[.|-|_]/.test(e) && r++), r;
|
|
12888
12893
|
}
|
|
12889
|
-
const
|
|
12894
|
+
const pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12890
12895
|
__proto__: null,
|
|
12891
12896
|
base64ToBlob: ut,
|
|
12892
|
-
checkPwd:
|
|
12893
|
-
downloadBase64Image:
|
|
12894
|
-
downloadFile:
|
|
12895
|
-
downloadFileByUrl:
|
|
12896
|
-
downloadFileByUrlCustomName:
|
|
12897
|
-
fetchFileByUrlCustomName:
|
|
12898
|
-
getParams:
|
|
12899
|
-
injectScript:
|
|
12900
|
-
removeQueryString:
|
|
12901
|
-
ridUrlParam:
|
|
12902
|
-
urlparam2Obj:
|
|
12897
|
+
checkPwd: Ki,
|
|
12898
|
+
downloadBase64Image: $i,
|
|
12899
|
+
downloadFile: Wi,
|
|
12900
|
+
downloadFileByUrl: Gi,
|
|
12901
|
+
downloadFileByUrlCustomName: Yi,
|
|
12902
|
+
fetchFileByUrlCustomName: Zi,
|
|
12903
|
+
getParams: Vi,
|
|
12904
|
+
injectScript: Xi,
|
|
12905
|
+
removeQueryString: zi,
|
|
12906
|
+
ridUrlParam: qi,
|
|
12907
|
+
urlparam2Obj: Hi
|
|
12903
12908
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12904
12909
|
export {
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
|
|
12908
|
-
|
|
12909
|
-
|
|
12910
|
-
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
12916
|
-
|
|
12917
|
-
|
|
12918
|
-
|
|
12919
|
-
|
|
12910
|
+
Ji as ArrayTools,
|
|
12911
|
+
en as ColorTools,
|
|
12912
|
+
tn as DataTools,
|
|
12913
|
+
rn as ElementTools,
|
|
12914
|
+
nn as ExecTools,
|
|
12915
|
+
an as InteractTools,
|
|
12916
|
+
sn as JudgeTools,
|
|
12917
|
+
on as MapTools,
|
|
12918
|
+
cn as NumberTools,
|
|
12919
|
+
fn as ObjectTools,
|
|
12920
|
+
un as PathTools,
|
|
12921
|
+
Qi as PeTools,
|
|
12922
|
+
hn as StorageTools,
|
|
12923
|
+
ln as StringTools,
|
|
12924
|
+
pn as UtilTools
|
|
12920
12925
|
};
|