minutool 1.0.31 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +17 -1
- package/dist/minutool.js +596 -583
- package/dist/minutool.js.map +1 -1
- package/dist/minutool.umd.cjs +5 -5
- package/dist/minutool.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/minutool.js
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
const
|
|
1
|
+
const xe = (e) => e, Et = (e) => Math.min(1, Math.max(0, e)), ve = (e, t, n) => e + (t - e) * n, Mt = (e, t, n, o = xe) => ve(e, t, o(n)), bt = (e) => e * e, Tt = (e) => 1 - (1 - e) * (1 - e), At = (e) => e < 0.5 ? 2 * e * e : 1 - Math.pow(-2 * e + 2, 2) / 2, St = (e) => e * e * e, Ct = (e) => 1 - Math.pow(1 - e, 3), ye = (e) => e < 0.5 ? 4 * e * e * e : 1 - Math.pow(-2 * e + 2, 3) / 2, _t = (e) => e * e * e * e, Ot = (e) => 1 - Math.pow(1 - e, 4), It = (e) => e < 0.5 ? 8 * e * e * e * e : 1 - Math.pow(-2 * e + 2, 4) / 2, Dt = (e) => e * e * e * e * e, Nt = (e) => 1 - Math.pow(1 - e, 5), Lt = (e) => e < 0.5 ? 16 * e * e * e * e * e : 1 - Math.pow(-2 * e + 2, 5) / 2, Rt = (e) => 1 - Math.cos(e * Math.PI / 2), kt = (e) => Math.sin(e * Math.PI / 2), Pt = (e) => -(Math.cos(Math.PI * e) - 1) / 2, Ft = (e) => e === 0 ? 0 : Math.pow(2, 10 * e - 10), Ht = (e) => e === 1 ? 1 : 1 - Math.pow(2, -10 * e), Bt = (e) => e === 0 ? 0 : e === 1 ? 1 : e < 0.5 ? Math.pow(2, 20 * e - 10) / 2 : (2 - Math.pow(2, -20 * e + 10)) / 2, $t = (e) => 1 - Math.sqrt(1 - Math.pow(e, 2)), Ut = (e) => Math.sqrt(1 - Math.pow(e - 1, 2)), Yt = (e) => e < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * e, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * e + 2, 2)) + 1) / 2, jt = (e, t = 1.70158) => (t + 1) * e * e * e - t * e * e, qt = (e, t = 1.70158) => 1 + (t + 1) * Math.pow(e - 1, 3) + t * Math.pow(e - 1, 2), zt = (e, t = 1.70158) => {
|
|
2
2
|
const n = t * 1.525;
|
|
3
3
|
return e < 0.5 ? Math.pow(2 * e, 2) * ((n + 1) * 2 * e - n) / 2 : (Math.pow(2 * e - 2, 2) * ((n + 1) * (e * 2 - 2) + n) + 2) / 2;
|
|
4
|
-
},
|
|
4
|
+
}, Wt = (e) => {
|
|
5
5
|
if (e === 0 || e === 1) return e;
|
|
6
6
|
const t = 2 * Math.PI / 3;
|
|
7
7
|
return -Math.pow(2, 10 * e - 10) * Math.sin((e * 10 - 10.75) * t);
|
|
8
|
-
},
|
|
8
|
+
}, Gt = (e) => {
|
|
9
9
|
if (e === 0 || e === 1) return e;
|
|
10
10
|
const t = 2 * Math.PI / 3;
|
|
11
11
|
return Math.pow(2, -10 * e) * Math.sin((e * 10 - 0.75) * t) + 1;
|
|
12
|
-
},
|
|
12
|
+
}, Kt = (e) => {
|
|
13
13
|
if (e === 0 || e === 1) return e;
|
|
14
14
|
const t = 2 * Math.PI / 4.5;
|
|
15
15
|
return e < 0.5 ? -(Math.pow(2, 20 * e - 10) * Math.sin((20 * e - 11.125) * t)) / 2 : Math.pow(2, -20 * e + 10) * Math.sin((20 * e - 11.125) * t) / 2 + 1;
|
|
16
|
-
},
|
|
16
|
+
}, $ = (e) => e < 0.36363636363636365 ? 7.5625 * e * e : e < 0.7272727272727273 ? 7.5625 * (e -= 0.5454545454545454) * e + 0.75 : e < 0.9090909090909091 ? 7.5625 * (e -= 0.8181818181818182) * e + 0.9375 : 7.5625 * (e -= 0.9545454545454546) * e + 0.984375, Vt = (e) => 1 - $(1 - e), Qt = (e) => e < 0.5 ? (1 - $(1 - 2 * e)) / 2 : (1 + $(2 * e - 1)) / 2, Jt = (e, t) => {
|
|
17
17
|
let n = [];
|
|
18
18
|
for (let o = 0; o < e.length; o++)
|
|
19
19
|
n.push(e[o][t]);
|
|
20
20
|
return n;
|
|
21
|
-
},
|
|
21
|
+
}, Xt = (e, t) => {
|
|
22
22
|
for (let n = 0; n < e.length; n++)
|
|
23
23
|
if (e[n] === t)
|
|
24
24
|
return n;
|
|
25
25
|
return null;
|
|
26
|
-
},
|
|
26
|
+
}, Zt = (e, t) => {
|
|
27
27
|
let n = /* @__PURE__ */ new Map();
|
|
28
28
|
return e.filter((o, r) => {
|
|
29
29
|
let i = t ? t(o, r) : o;
|
|
30
30
|
if (!n.has(i))
|
|
31
31
|
return n.set(i, !0), !0;
|
|
32
32
|
});
|
|
33
|
-
},
|
|
33
|
+
}, en = (e, t, n) => {
|
|
34
34
|
if (!e || !e.length)
|
|
35
35
|
return e;
|
|
36
36
|
let o = {};
|
|
37
37
|
if (e.forEach((i) => {
|
|
38
|
-
let
|
|
39
|
-
o[
|
|
38
|
+
let a = i[t];
|
|
39
|
+
o[a] || (o[a] = []), o[a].push(i);
|
|
40
40
|
}), !n)
|
|
41
41
|
return o;
|
|
42
42
|
let r = {};
|
|
43
43
|
for (let i in o)
|
|
44
44
|
r[i] = o[i][0];
|
|
45
45
|
return r;
|
|
46
|
-
},
|
|
46
|
+
}, tn = (e) => Object.keys(e).sort().reduce(
|
|
47
47
|
function(t, n) {
|
|
48
48
|
return t[n] = e[n], t;
|
|
49
49
|
},
|
|
50
50
|
{}
|
|
51
|
-
),
|
|
51
|
+
), nn = (e, t) => {
|
|
52
52
|
let n = e.length;
|
|
53
53
|
if (t < 1 || !n)
|
|
54
54
|
return [];
|
|
55
55
|
if (t > n)
|
|
56
56
|
return [e];
|
|
57
57
|
let o = [], r = Math.floor(n / t), i = n % t;
|
|
58
|
-
for (let
|
|
58
|
+
for (let a = 1; a <= r; a++)
|
|
59
59
|
o.push(e.splice(0, t));
|
|
60
60
|
return i && o.push(e.splice(0, i)), o;
|
|
61
|
-
},
|
|
61
|
+
}, on = (e) => {
|
|
62
62
|
let t = -1;
|
|
63
63
|
for (let n = e.length - 1; n >= 0; n--)
|
|
64
64
|
if (e[n]) {
|
|
@@ -66,74 +66,74 @@ const de = (e) => e, wt = (e) => Math.min(1, Math.max(0, e)), he = (e, t, n) =>
|
|
|
66
66
|
break;
|
|
67
67
|
}
|
|
68
68
|
return e.slice(0, t + 1);
|
|
69
|
-
},
|
|
69
|
+
}, rn = 96, Ee = window.devicePixelRatio * 96, an = () => window.innerWidth > window.innerHeight, sn = () => window.innerHeight > window.innerWidth, Me = (e) => {
|
|
70
70
|
const t = e;
|
|
71
71
|
if (e.requestFullscreen)
|
|
72
72
|
return e.requestFullscreen();
|
|
73
73
|
if (t.webkitRequestFullScreen)
|
|
74
74
|
return t.webkitRequestFullScreen();
|
|
75
75
|
throw t.mozRequestFullScreen && t.mozRequestFullScreen(), t.msRequestFullScreen && t.msRequestFullScreen(), "Browser no allow full screen";
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
}),
|
|
76
|
+
}, be = () => document.exitFullscreen(), cn = (e) => new Promise((t, n) => {
|
|
77
|
+
Te() ? be().then(t).catch(n) : Me(e).then(t).catch(n);
|
|
78
|
+
}), Te = () => !!document.fullscreenElement, ln = (e) => {
|
|
79
79
|
const t = navigator.language || navigator.userLanguage;
|
|
80
80
|
if (e.includes(t))
|
|
81
81
|
return t;
|
|
82
82
|
const n = t.split("-")[0], o = e.find((r) => r.startsWith(n));
|
|
83
83
|
return o || e[0];
|
|
84
|
-
},
|
|
84
|
+
}, pn = () => navigator.userAgent.toLowerCase().indexOf("firefox") > -1, un = (1 + Math.sqrt(5)) / 2 - 1, re = 96, fn = (e, t = re) => e / 25.4 * t, mn = (e) => Math.round(e * 56.6929), dn = (e) => e * 2.83464566929, hn = (e) => e / 2.83464566929, gn = (e, t = re) => 25.4 * e / t, wn = (e, t, n) => Math.min(Math.max(e, t), n), v = (e, t, n, o = !0) => o ? e >= t && e <= n : e > t && e < n, xn = (e, t) => Math.floor(Math.random() * (t + 1 - e)) + e, Ae = (e, t = 2) => {
|
|
85
85
|
let n = Math.pow(10, t);
|
|
86
86
|
return Math.round(e * n) / n;
|
|
87
|
-
},
|
|
87
|
+
}, N = (e) => typeof e == "number" ? isFinite(e) : typeof e != "string" ? !1 : /^[+-]?(\d+\.?\d*|\.\d+)$/.test(e), vn = (...e) => {
|
|
88
88
|
let t = 0;
|
|
89
89
|
return e.forEach((n) => {
|
|
90
|
-
if (typeof n == "number" &&
|
|
90
|
+
if (typeof n == "number" && N(n)) {
|
|
91
91
|
const o = n.toString().split(".")[1];
|
|
92
92
|
o && (t = Math.max(t, o.length));
|
|
93
93
|
}
|
|
94
94
|
}), t;
|
|
95
|
-
},
|
|
95
|
+
}, yn = (e) => (e = Math.abs(Number(e)), e === 0 ? 1 : Math.floor(Math.log10(e)) + 1), Se = (e) => e && e.charAt(0).toUpperCase() + e.slice(1), U = (e, t = "") => {
|
|
96
96
|
if (typeof e == "number")
|
|
97
97
|
return { val: e, unit: t };
|
|
98
|
-
if (
|
|
98
|
+
if (N(e))
|
|
99
99
|
return { val: parseFloat(e), unit: t };
|
|
100
100
|
const n = /^(-?[\d.]+)([a-z%]+)$/i, o = e.trim().match(n);
|
|
101
101
|
if (!o)
|
|
102
102
|
throw new Error("unit parse fail:" + e);
|
|
103
103
|
return { val: parseFloat(o[1]), unit: o[2].toLowerCase() };
|
|
104
|
-
},
|
|
105
|
-
const o =
|
|
104
|
+
}, K = (e, t, n = {}) => {
|
|
105
|
+
const o = U(e);
|
|
106
106
|
if (!o)
|
|
107
107
|
throw new Error(`Invalid value: ${e}`);
|
|
108
108
|
const r = o.val, i = o.unit;
|
|
109
|
-
if (!
|
|
109
|
+
if (!N(r))
|
|
110
110
|
throw new Error(`Invalid number in value: ${e}`);
|
|
111
|
-
const
|
|
111
|
+
const a = n.dpi || Ee;
|
|
112
112
|
if (i === t)
|
|
113
113
|
return r;
|
|
114
|
-
const
|
|
114
|
+
const s = {
|
|
115
115
|
mm: 1,
|
|
116
116
|
cm: 10,
|
|
117
117
|
in: 25.4,
|
|
118
|
-
px: 25.4 /
|
|
118
|
+
px: 25.4 / a,
|
|
119
119
|
pt: 25.4 / 72,
|
|
120
120
|
// 1pt = 1/72 inch
|
|
121
121
|
pc: 25.4 / 6
|
|
122
122
|
// 1pc = 1/6 inch
|
|
123
|
-
},
|
|
123
|
+
}, c = {
|
|
124
124
|
mm: 1,
|
|
125
125
|
cm: 1 / 10,
|
|
126
126
|
in: 1 / 25.4,
|
|
127
|
-
px:
|
|
127
|
+
px: a / 25.4,
|
|
128
128
|
pt: 72 / 25.4,
|
|
129
129
|
pc: 6 / 25.4
|
|
130
130
|
};
|
|
131
|
-
if (!
|
|
131
|
+
if (!s[i])
|
|
132
132
|
throw new Error(`Unsupported source unit: ${i}`);
|
|
133
|
-
if (!
|
|
133
|
+
if (!c[t])
|
|
134
134
|
throw new Error(`Unsupported target unit: ${t}`);
|
|
135
|
-
return r *
|
|
136
|
-
},
|
|
135
|
+
return r * s[i] * c[t];
|
|
136
|
+
}, Ce = (e, t = 0) => N(e) ? parseFloat(String(e)) : t, En = (e) => (e + "").replace(/\\(.?)/g, function(t, n) {
|
|
137
137
|
switch (n) {
|
|
138
138
|
case "\\":
|
|
139
139
|
return "\\";
|
|
@@ -144,7 +144,7 @@ const de = (e) => e, wt = (e) => Math.min(1, Math.max(0, e)), he = (e, t, n) =>
|
|
|
144
144
|
default:
|
|
145
145
|
return n;
|
|
146
146
|
}
|
|
147
|
-
}),
|
|
147
|
+
}), Mn = (e, t, n = "...") => {
|
|
148
148
|
let o = /[^\x00-\xff]/g;
|
|
149
149
|
if (e.replace(o, "mm").length <= t)
|
|
150
150
|
return e;
|
|
@@ -153,15 +153,15 @@ const de = (e) => e, wt = (e) => Math.min(1, Math.max(0, e)), he = (e, t, n) =>
|
|
|
153
153
|
if (e.substr(0, i).replace(o, "mm").length >= t)
|
|
154
154
|
return e.substr(0, i) + n;
|
|
155
155
|
return e;
|
|
156
|
-
},
|
|
156
|
+
}, bn = (e, t) => {
|
|
157
157
|
const n = Object.keys(t), o = Object.values(t);
|
|
158
158
|
return new Function(...n, `return \`${e}\`;`)(...o);
|
|
159
|
-
},
|
|
159
|
+
}, Tn = (e) => e.replace(/[-_](.)/g, (t, n) => n.toUpperCase()), An = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), Sn = (e, t, n = "...") => e.length <= t ? e : e.slice(0, t) + n, Y = (e) => (e + "").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g, "\\$1"), _e = (e) => {
|
|
160
160
|
let t = "", n = 0, o = 0, r = 0, i = 0;
|
|
161
161
|
for (; n < e.length; )
|
|
162
162
|
o = e.charCodeAt(n), o < 128 ? (t += String.fromCharCode(o), n++) : o > 191 && o < 224 ? (r = e.charCodeAt(n + 1), t += String.fromCharCode((o & 31) << 6 | r & 63), n += 2) : (r = e.charCodeAt(n + 1), i = e.charCodeAt(n + 2), t += String.fromCharCode((o & 15) << 12 | (r & 63) << 6 | i & 63), n += 3);
|
|
163
163
|
return t;
|
|
164
|
-
},
|
|
164
|
+
}, ie = (e) => {
|
|
165
165
|
e = e.replace(/\r\n/g, "n");
|
|
166
166
|
let t = "";
|
|
167
167
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -169,74 +169,74 @@ const de = (e) => e, wt = (e) => Math.min(1, Math.max(0, e)), he = (e, t, n) =>
|
|
|
169
169
|
o < 128 ? t += String.fromCharCode(o) : o > 127 && o < 2048 ? (t += String.fromCharCode(o >> 6 | 192), t += String.fromCharCode(o & 63 | 128)) : (t += String.fromCharCode(o >> 12 | 224), t += String.fromCharCode(o >> 6 & 63 | 128), t += String.fromCharCode(o & 63 | 128));
|
|
170
170
|
}
|
|
171
171
|
return t;
|
|
172
|
-
},
|
|
172
|
+
}, Cn = (e) => {
|
|
173
173
|
let t = 0, n = e.length, o = -1;
|
|
174
174
|
for (let r = 0; r < n; r++)
|
|
175
175
|
o = e.charCodeAt(r), o >= 0 && o <= 128 ? t += 1 : t += 3;
|
|
176
176
|
return t;
|
|
177
|
-
},
|
|
177
|
+
}, Oe = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890", Ie = (e = 6, t = Oe) => {
|
|
178
178
|
let n = "";
|
|
179
179
|
for (let o = 0; o < e; o++) {
|
|
180
180
|
let r = Math.round(Math.random() * (t.length - 1));
|
|
181
181
|
n += t.substring(r, r + 1);
|
|
182
182
|
}
|
|
183
183
|
return n;
|
|
184
|
-
},
|
|
184
|
+
}, _n = (e = 1, t = 8) => {
|
|
185
185
|
let n = [];
|
|
186
186
|
const o = "bcdfghjklmnpqrstvwxyz", r = "aeiou";
|
|
187
187
|
for (; e-- > 0; ) {
|
|
188
188
|
let i = "";
|
|
189
|
-
for (let
|
|
189
|
+
for (let a = 0; a < t; a = a + 3)
|
|
190
190
|
i += o[Math.floor(Math.random() * o.length)], i += r[Math.floor(Math.random() * r.length)], i += o[Math.floor(Math.random() * o.length)];
|
|
191
191
|
n.push(i);
|
|
192
192
|
}
|
|
193
193
|
return n;
|
|
194
|
-
},
|
|
194
|
+
}, On = (e, t = !1) => {
|
|
195
195
|
let n = [];
|
|
196
196
|
return e.replace(/[-_\s+]/g, " ").split(" ").forEach((o, r) => {
|
|
197
|
-
n.push(r === 0 && !t ? o :
|
|
197
|
+
n.push(r === 0 && !t ? o : Se(o));
|
|
198
198
|
}), n.join("");
|
|
199
|
-
},
|
|
199
|
+
}, V = 0, Q = 1, De = 2, In = (e, t = "", n = V) => {
|
|
200
200
|
if (t.length) {
|
|
201
|
-
let o = new RegExp("^[" +
|
|
202
|
-
return n ===
|
|
201
|
+
let o = new RegExp("^[" + Y(t) + "]+"), r = new RegExp("[" + Y(t) + "]+$");
|
|
202
|
+
return n === Q ? e.replace(o, "") : n === De ? e.replace(r, "") : e.replace(o, "").replace(r, "");
|
|
203
203
|
} else
|
|
204
|
-
return n ===
|
|
205
|
-
},
|
|
204
|
+
return n === V ? e.trim() : n === Q ? e.trimStart() : e.trimEnd();
|
|
205
|
+
}, Dn = (e, t) => {
|
|
206
206
|
let n = [];
|
|
207
207
|
for (let o = 0; o < e.length; o += t)
|
|
208
208
|
n.push(e.slice(o, o + t));
|
|
209
209
|
return n;
|
|
210
|
-
},
|
|
210
|
+
}, Nn = (e) => /[\u4e00-\u9fa5]/.test(e), Ln = (e, t = "B", n = 2) => {
|
|
211
211
|
const o = ["B", "KB", "MB", "GB", "TB", "PB"];
|
|
212
212
|
let r = o.indexOf(t.toUpperCase());
|
|
213
213
|
if (r === -1)
|
|
214
214
|
throw new Error(`Unsupported unit: ${t}`);
|
|
215
215
|
for (; e >= 1024 && r < o.length - 1; )
|
|
216
216
|
e /= 1024, r++;
|
|
217
|
-
return
|
|
218
|
-
}, y = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
219
|
-
let t = "", n, o, r, i,
|
|
217
|
+
return Ae(e, n);
|
|
218
|
+
}, y = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Rn = (e) => {
|
|
219
|
+
let t = "", n, o, r, i, a, s, c, l = 0;
|
|
220
220
|
for (e = e.replace(/\+\+[++^A-Za-z0-9+/=]/g, ""); l < e.length; )
|
|
221
|
-
i = y.indexOf(e.charAt(l++)),
|
|
222
|
-
return t =
|
|
223
|
-
},
|
|
224
|
-
let t = "", n, o, r, i,
|
|
225
|
-
for (e =
|
|
226
|
-
n = e.charCodeAt(l++), o = e.charCodeAt(l++), r = e.charCodeAt(l++), i = n >> 2,
|
|
221
|
+
i = y.indexOf(e.charAt(l++)), a = y.indexOf(e.charAt(l++)), s = y.indexOf(e.charAt(l++)), c = y.indexOf(e.charAt(l++)), n = i << 2 | a >> 4, o = (a & 15) << 4 | s >> 2, r = (s & 3) << 6 | c, t = t + String.fromCharCode(n), s !== 64 && (t = t + String.fromCharCode(o)), c !== 64 && (t = t + String.fromCharCode(r));
|
|
222
|
+
return t = _e(t), t;
|
|
223
|
+
}, kn = (e) => ie(e).replace("+", "-").replace("/", "_"), Pn = (e) => {
|
|
224
|
+
let t = "", n, o, r, i, a, s, c, l = 0;
|
|
225
|
+
for (e = ie(e); l < e.length; )
|
|
226
|
+
n = e.charCodeAt(l++), o = e.charCodeAt(l++), r = e.charCodeAt(l++), i = n >> 2, a = (n & 3) << 4 | o >> 4, s = (o & 15) << 2 | r >> 6, c = r & 63, isNaN(o) ? s = c = 64 : isNaN(r) && (c = 64), t = t + y.charAt(i) + y.charAt(a) + y.charAt(s) + y.charAt(c);
|
|
227
227
|
return t;
|
|
228
|
-
},
|
|
228
|
+
}, Ne = async (e) => await Le(e), Le = (e) => new Promise((t, n) => {
|
|
229
229
|
const o = new FileReader();
|
|
230
230
|
o.readAsDataURL(e), o.onload = () => t(o.result), o.onerror = (r) => n(r);
|
|
231
|
-
}),
|
|
231
|
+
}), Fn = (e, t, n, o = "/", r) => {
|
|
232
232
|
let i = "";
|
|
233
233
|
if (n) {
|
|
234
|
-
let
|
|
235
|
-
|
|
234
|
+
let s = /* @__PURE__ */ new Date();
|
|
235
|
+
s.setTime(Date.now() + n * 24 * 60 * 60 * 1e3), i = "; expires=" + s.toUTCString();
|
|
236
236
|
}
|
|
237
|
-
let
|
|
238
|
-
r && (
|
|
239
|
-
},
|
|
237
|
+
let a = e + "=" + (t || "") + i + "; path=" + o;
|
|
238
|
+
r && (a += "; domain=" + r), document.cookie = a;
|
|
239
|
+
}, Hn = (e) => {
|
|
240
240
|
let t = e + "=", n = document.cookie.split(";");
|
|
241
241
|
for (let o = 0; o < n.length; o++) {
|
|
242
242
|
let r = n[o];
|
|
@@ -244,35 +244,35 @@ const de = (e) => e, wt = (e) => Math.min(1, Math.max(0, e)), he = (e, t, n) =>
|
|
|
244
244
|
if (r.indexOf(t) === 0) return r.substring(t.length, r.length);
|
|
245
245
|
}
|
|
246
246
|
return null;
|
|
247
|
-
},
|
|
247
|
+
}, F = (e, t = "/", n) => {
|
|
248
248
|
let o = e + "=; Path=" + t + "; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";
|
|
249
249
|
n && (o += " Domain=" + n + ";"), document.cookie = o;
|
|
250
|
-
},
|
|
250
|
+
}, Bn = (e, t) => {
|
|
251
251
|
const n = (t || (location == null ? void 0 : location.hostname)).split(".");
|
|
252
252
|
for (; n.length > 1; )
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
F(e, "/", n.join(".")), F(e, "/", "." + n.join(".")), n.shift();
|
|
254
|
+
F(e);
|
|
255
255
|
};
|
|
256
|
-
let
|
|
257
|
-
const
|
|
256
|
+
let Re = 0;
|
|
257
|
+
const ke = (e = "") => "guid_" + (e || Ie(6)) + ++Re, $n = (e, t) => {
|
|
258
258
|
let n, o, r = 0;
|
|
259
259
|
return function() {
|
|
260
260
|
let i = +/* @__PURE__ */ new Date();
|
|
261
261
|
n = this, o = arguments, i - r > t && (e.apply(n, o), r = i);
|
|
262
262
|
};
|
|
263
|
-
},
|
|
263
|
+
}, Un = (e, t) => {
|
|
264
264
|
let n, o, r = 0, i = !1;
|
|
265
265
|
return function() {
|
|
266
266
|
if (i)
|
|
267
267
|
return;
|
|
268
|
-
let
|
|
268
|
+
let a = +/* @__PURE__ */ new Date();
|
|
269
269
|
n = this, o = arguments;
|
|
270
|
-
let
|
|
271
|
-
|
|
272
|
-
e.apply(n, o), i = !1, r =
|
|
273
|
-
},
|
|
270
|
+
let s = t - (a - r);
|
|
271
|
+
s <= 0 ? (e.apply(n, o), r = a) : (i = !0, setTimeout(() => {
|
|
272
|
+
e.apply(n, o), i = !1, r = a;
|
|
273
|
+
}, s));
|
|
274
274
|
};
|
|
275
|
-
},
|
|
275
|
+
}, Yn = (e, t) => {
|
|
276
276
|
let n;
|
|
277
277
|
return function() {
|
|
278
278
|
let o = this, r = arguments;
|
|
@@ -280,41 +280,41 @@ const De = (e = "") => "guid_" + (e || Se(6)) + ++Ie, Pn = (e, t) => {
|
|
|
280
280
|
e.apply(o, r);
|
|
281
281
|
}, t);
|
|
282
282
|
};
|
|
283
|
-
},
|
|
283
|
+
}, jn = (e) => e && typeof e == "object" && e.then && typeof e.then == "function", qn = (e) => {
|
|
284
284
|
let t = !1;
|
|
285
285
|
try {
|
|
286
286
|
JSON.parse(e), t = !0;
|
|
287
287
|
} catch {
|
|
288
288
|
}
|
|
289
289
|
return t;
|
|
290
|
-
},
|
|
290
|
+
}, zn = (e) => e && typeof e == "object" && !Array.isArray(e), Wn = (e) => e ? Object.prototype.toString.call(e) === "[object Function]" || typeof e == "function" || e instanceof Function : !1, Pe = (e) => typeof e != "string" || e.trim() === "" ? !1 : /^(https?:\/\/|\/\/|\/|\.\.?\/*)/i.test(e), Gn = (e) => {
|
|
291
291
|
let t = !1;
|
|
292
292
|
try {
|
|
293
293
|
JSON.parse(e), t = !0;
|
|
294
294
|
} catch {
|
|
295
295
|
}
|
|
296
296
|
return t;
|
|
297
|
-
},
|
|
297
|
+
}, Kn = () => {
|
|
298
298
|
let e = new Error().stack;
|
|
299
299
|
console.log(e);
|
|
300
|
-
},
|
|
301
|
-
let
|
|
302
|
-
const
|
|
303
|
-
function
|
|
304
|
-
if (!
|
|
305
|
-
const t = `${
|
|
306
|
-
|
|
300
|
+
}, z = new EventTarget(), Fe = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map();
|
|
301
|
+
let He = 0;
|
|
302
|
+
const Be = "__MINUTOOL_SYM_EVENT__";
|
|
303
|
+
function W(e) {
|
|
304
|
+
if (!H.has(e)) {
|
|
305
|
+
const t = `${Be}${++He}`;
|
|
306
|
+
H.set(e, t), Fe.set(t, e);
|
|
307
307
|
}
|
|
308
|
-
return
|
|
308
|
+
return H.get(e);
|
|
309
309
|
}
|
|
310
|
-
const
|
|
311
|
-
const n = e.map((o) =>
|
|
310
|
+
const Vn = (e, t) => {
|
|
311
|
+
const n = e.map((o) => $e(o, t));
|
|
312
312
|
return () => n.forEach((o) => o());
|
|
313
|
-
},
|
|
314
|
-
|
|
315
|
-
},
|
|
316
|
-
|
|
317
|
-
},
|
|
313
|
+
}, $e = (e, t) => (z.addEventListener(typeof e == "symbol" ? W(e) : e, t), () => Ue(e, t)), Ue = (e, t) => {
|
|
314
|
+
z.removeEventListener(typeof e == "symbol" ? W(e) : e, t);
|
|
315
|
+
}, Qn = (e, t) => {
|
|
316
|
+
z.dispatchEvent(new CustomEvent(typeof e == "symbol" ? W(e) : e, { detail: t }));
|
|
317
|
+
}, Jn = (e) => {
|
|
318
318
|
if (document.readyState === "complete" || document.readyState === "interactive")
|
|
319
319
|
e();
|
|
320
320
|
else {
|
|
@@ -323,91 +323,91 @@ const zn = (e, t) => {
|
|
|
323
323
|
};
|
|
324
324
|
document.addEventListener("DOMContentLoaded", t);
|
|
325
325
|
}
|
|
326
|
-
},
|
|
327
|
-
var
|
|
328
|
-
const
|
|
329
|
-
|
|
330
|
-
}),
|
|
331
|
-
const r = (
|
|
332
|
-
n(
|
|
326
|
+
}, Xn = (e, t, n, o) => _(e, n, (i) => {
|
|
327
|
+
var c;
|
|
328
|
+
const a = i.target, s = (c = a == null ? void 0 : a.closest) == null ? void 0 : c.call(a, t);
|
|
329
|
+
s && o(i, s);
|
|
330
|
+
}), Zn = (e, t) => _(e, "click", t), eo = (e, t) => _(e, "keyup", t), to = (e, t) => _(e, "keydown", t), no = (e, t) => _(e, "dblclick", t), _ = (e, t, n, o) => {
|
|
331
|
+
const r = (a) => {
|
|
332
|
+
n(a);
|
|
333
333
|
}, i = typeof e == "string" ? b(e) : e;
|
|
334
334
|
if (!i)
|
|
335
335
|
throw new Error(`EventTarget not found for selector: ${e}`);
|
|
336
336
|
return i.addEventListener(t, r, o), () => {
|
|
337
337
|
i.removeEventListener(t, r, o);
|
|
338
338
|
};
|
|
339
|
-
},
|
|
340
|
-
let o = !1, r = null, i = null,
|
|
341
|
-
const
|
|
342
|
-
let
|
|
343
|
-
i !==
|
|
344
|
-
},
|
|
345
|
-
const
|
|
346
|
-
|
|
347
|
-
r = null, !(o || !
|
|
339
|
+
}, oo = (e, t, n = 50) => {
|
|
340
|
+
let o = !1, r = null, i = null, a = null;
|
|
341
|
+
const s = (w) => {
|
|
342
|
+
let x = w.target.value;
|
|
343
|
+
i !== x && (i = x, t(x, w));
|
|
344
|
+
}, c = (w) => {
|
|
345
|
+
const f = w;
|
|
346
|
+
f.isComposing || o || (a = f, r && clearTimeout(r), r = window.setTimeout(() => {
|
|
347
|
+
r = null, !(o || !a) && (s(a), a = null);
|
|
348
348
|
}, n));
|
|
349
349
|
}, l = () => {
|
|
350
350
|
o = !0;
|
|
351
351
|
}, p = () => {
|
|
352
352
|
o = !1;
|
|
353
353
|
};
|
|
354
|
-
return e.addEventListener("input",
|
|
355
|
-
e.removeEventListener("input",
|
|
354
|
+
return e.addEventListener("input", c), e.addEventListener("compositionstart", l), e.addEventListener("compositionend", p), () => {
|
|
355
|
+
e.removeEventListener("input", c), e.removeEventListener("compositionstart", l), e.removeEventListener("compositionend", p), r && (clearTimeout(r), r = null), a = null;
|
|
356
356
|
};
|
|
357
|
-
},
|
|
357
|
+
}, ro = (e, t) => {
|
|
358
358
|
const n = (o) => {
|
|
359
359
|
o.key === e && t(o.newValue);
|
|
360
360
|
};
|
|
361
361
|
return window.addEventListener("storage", n), () => {
|
|
362
362
|
window.removeEventListener("storage", n);
|
|
363
363
|
};
|
|
364
|
-
},
|
|
364
|
+
}, io = (e, t) => {
|
|
365
365
|
if ("createEvent" in document) {
|
|
366
366
|
let n = document.createEvent("HTMLEvents");
|
|
367
367
|
n.initEvent(t.toLowerCase(), !1, !0), e.dispatchEvent(n);
|
|
368
368
|
} else
|
|
369
369
|
e.fireEvent("on" + t.toLowerCase());
|
|
370
|
-
},
|
|
370
|
+
}, ao = (e) => {
|
|
371
371
|
const t = b(e);
|
|
372
372
|
t && (t.style.display = "none");
|
|
373
|
-
},
|
|
373
|
+
}, so = (e) => {
|
|
374
374
|
const t = b(e);
|
|
375
375
|
t && (t.style.display = "");
|
|
376
|
-
},
|
|
376
|
+
}, co = (e) => {
|
|
377
377
|
let t = b(e);
|
|
378
378
|
return t && t.parentNode && t.parentNode.removeChild(t);
|
|
379
|
-
},
|
|
380
|
-
let o = b(e), r = n === null ? !o.classList.contains(
|
|
381
|
-
r &&
|
|
382
|
-
},
|
|
379
|
+
}, B = "disabled", Ye = (e, t = "") => ae(e, t, !1), je = (e, t = "") => ae(e, t, !0), ae = (e, t = "", n = null) => {
|
|
380
|
+
let o = b(e), r = n === null ? !o.classList.contains(B) : !n;
|
|
381
|
+
r && ze(`.${B} {pointer-event:none !important;}`, "__element_lock_style__"), o.classList.toggle(B, r), o[r ? "setAttribute" : "removeAttribute"]("disabled", "disabled"), o[r ? "setAttribute" : "removeAttribute"]("data-disabled", "disabled"), t && o.classList.toggle(t, r);
|
|
382
|
+
}, lo = (e, t, n) => {
|
|
383
383
|
e = b(e);
|
|
384
384
|
let o = !1;
|
|
385
385
|
const r = [];
|
|
386
386
|
return r.push(
|
|
387
|
-
|
|
387
|
+
_(e, "mouseenter", () => {
|
|
388
388
|
o || (o = !0, t && t());
|
|
389
389
|
})
|
|
390
390
|
), r.push(
|
|
391
|
-
|
|
391
|
+
_(e, "mouseleave", () => {
|
|
392
392
|
o && (o = !1, n && n());
|
|
393
393
|
})
|
|
394
394
|
), () => {
|
|
395
395
|
r.forEach((i) => i());
|
|
396
396
|
};
|
|
397
|
-
},
|
|
398
|
-
|
|
399
|
-
|
|
397
|
+
}, po = (e, t) => {
|
|
398
|
+
Ye(e), t(() => {
|
|
399
|
+
je(e);
|
|
400
400
|
});
|
|
401
|
-
},
|
|
401
|
+
}, uo = (e) => e.parentNode ? Array.prototype.indexOf.call(e.parentNode.children, e) : -1, se = (e, t = document) => {
|
|
402
402
|
if (typeof e == "string")
|
|
403
403
|
return e = e.trim(), e.indexOf(":scope") !== 0 && (e = ":scope " + e), Array.from(t.querySelectorAll(e));
|
|
404
404
|
if (Array.isArray(e)) {
|
|
405
405
|
let n = [];
|
|
406
406
|
return e.forEach((o) => {
|
|
407
|
-
n.push(...
|
|
407
|
+
n.push(...se(o));
|
|
408
408
|
}), n;
|
|
409
409
|
} else return NodeList.prototype.isPrototypeOf(e) || HTMLCollection.prototype.isPrototypeOf(e) ? Array.from(e) : e instanceof HTMLElement ? [e] : e;
|
|
410
|
-
}, b = (e, t = document) => typeof e == "string" ? t.querySelector(e) : e,
|
|
410
|
+
}, b = (e, t = document) => typeof e == "string" ? t.querySelector(e) : e, fo = (e) => {
|
|
411
411
|
let t = document.getElementsByTagName("*"), n = [];
|
|
412
412
|
for (n = []; e && e.nodeType === 1; e = e.parentNode)
|
|
413
413
|
if (e.hasAttribute("id")) {
|
|
@@ -426,14 +426,14 @@ const zn = (e, t) => {
|
|
|
426
426
|
n.unshift(e.localName.toLowerCase() + "[" + o + "]");
|
|
427
427
|
}
|
|
428
428
|
return n.length ? "/" + n.join("/") : null;
|
|
429
|
-
},
|
|
430
|
-
const o = "ON_DOM_TREE_CHANGE_BIND_" +
|
|
429
|
+
}, mo = (e, t, n = !0) => {
|
|
430
|
+
const o = "ON_DOM_TREE_CHANGE_BIND_" + ke();
|
|
431
431
|
let r = () => {
|
|
432
|
-
|
|
432
|
+
se(`input:not([${o}]), textarea:not([${o}]), select:not([${o}])`, e).forEach((i) => {
|
|
433
433
|
i.setAttribute(o, "1"), i.addEventListener("change", t);
|
|
434
434
|
});
|
|
435
435
|
};
|
|
436
|
-
|
|
436
|
+
qe(
|
|
437
437
|
e,
|
|
438
438
|
{ attributes: !0, subtree: !0, childList: !0 },
|
|
439
439
|
() => {
|
|
@@ -441,17 +441,17 @@ const zn = (e, t) => {
|
|
|
441
441
|
},
|
|
442
442
|
10
|
|
443
443
|
), n && r();
|
|
444
|
-
},
|
|
445
|
-
let r = 0, i = !1,
|
|
444
|
+
}, qe = (e, t, n, o = 10) => {
|
|
445
|
+
let r = 0, i = !1, a = new MutationObserver(() => {
|
|
446
446
|
if (i)
|
|
447
447
|
return;
|
|
448
|
-
let
|
|
449
|
-
|
|
450
|
-
i = !1, r = Date.now(), n(
|
|
451
|
-
},
|
|
448
|
+
let s = o - (Date.now() - r);
|
|
449
|
+
s > 0 ? (i = !0, setTimeout(() => {
|
|
450
|
+
i = !1, r = Date.now(), n(a);
|
|
451
|
+
}, s)) : (r = Date.now(), n(a));
|
|
452
452
|
});
|
|
453
|
-
|
|
454
|
-
},
|
|
453
|
+
a.observe(e, t);
|
|
454
|
+
}, ho = (e, t = {
|
|
455
455
|
left: 0,
|
|
456
456
|
top: 0,
|
|
457
457
|
width: window.innerWidth,
|
|
@@ -459,52 +459,52 @@ const zn = (e, t) => {
|
|
|
459
459
|
}) => {
|
|
460
460
|
let n = { left: e.left, top: e.top };
|
|
461
461
|
return e.width > t.width || e.height > t.height || (e.width + e.left > t.width + t.left && (n.left = e.left - (e.width + e.left - (t.width + t.left))), e.height + e.top > t.height + t.top && (n.top = e.top - (e.height + e.top - (t.height + t.top))), e.left < t.left && (n.left = t.left), e.top < t.top && (n.top = t.top)), n;
|
|
462
|
-
},
|
|
462
|
+
}, go = (e, t) => e.left <= t.left ? e.left + e.width >= t.left && (v(t.top, e.top, e.top + e.height) || v(t.top + t.height, e.top, e.top + e.height) || t.top >= e.top && t.height >= e.height) : t.left + t.width >= e.left && (v(e.top, t.top, t.top + t.height) || v(e.top + e.height, t.top, t.top + t.height) || e.top >= t.top && e.height >= t.height), wo = (e) => e ? !!(e.tabIndex >= 0 || e instanceof HTMLAnchorElement && e.href || e instanceof HTMLButtonElement && !e.disabled || e instanceof HTMLInputElement && !e.disabled || e instanceof HTMLTextAreaElement && !e.disabled) : !1;
|
|
463
463
|
let E = {};
|
|
464
|
-
const
|
|
464
|
+
const xo = (e, t = !1) => (!t && e in E || (E[e] = new Promise((n, o) => {
|
|
465
465
|
let r = document.createElement("link");
|
|
466
466
|
r.rel = "stylesheet", r.href = e, r.onload = () => {
|
|
467
467
|
n();
|
|
468
468
|
}, r.onerror = () => {
|
|
469
469
|
o();
|
|
470
470
|
}, document.head.append(r);
|
|
471
|
-
})), E[e]),
|
|
471
|
+
})), E[e]), vo = (e, t = !1) => (!t && e in E || (E[e] = new Promise((n, o) => {
|
|
472
472
|
let r = document.createElement("script");
|
|
473
473
|
r.src = e, r.onload = () => {
|
|
474
474
|
n();
|
|
475
475
|
}, r.onerror = () => {
|
|
476
476
|
o();
|
|
477
477
|
}, document.head.append(r);
|
|
478
|
-
})), E[e]),
|
|
478
|
+
})), E[e]), yo = (e) => {
|
|
479
479
|
let t = e.style.visibility, n = e.style.display, o, r;
|
|
480
480
|
return e.style.visibility = "hidden", e.style.display = "block", o = e.clientWidth, r = e.clientHeight, e.style.visibility = t, e.style.display = n, { width: o, height: r };
|
|
481
|
-
},
|
|
481
|
+
}, ze = (e, t = "", n = document) => {
|
|
482
482
|
if (t && n.querySelector(`#${t}`))
|
|
483
483
|
return n.querySelector(`#${t}`);
|
|
484
484
|
let o = n.createElement("style");
|
|
485
485
|
return n.head.appendChild(o), o.innerHTML = e, t && (o.id = t), o;
|
|
486
|
-
},
|
|
487
|
-
v(e.top + e.height, t.top, t.top + t.height) && v(e.left + e.width, t.left, t.left + t.width),
|
|
486
|
+
}, Eo = (e, t) => v(e.top, t.top, t.top + t.height) && v(e.left, t.left, t.left + t.width) && //左上角
|
|
487
|
+
v(e.top + e.height, t.top, t.top + t.height) && v(e.left + e.width, t.left, t.left + t.width), Mo = (e) => Math.pow(10, -e), bo = (e, t) => {
|
|
488
488
|
try {
|
|
489
489
|
return new URL(e, t).href;
|
|
490
490
|
} catch {
|
|
491
491
|
return e;
|
|
492
492
|
}
|
|
493
|
-
},
|
|
493
|
+
}, To = (e, t = null) => {
|
|
494
494
|
const n = document.createElement("template");
|
|
495
495
|
e = e.trim(), n.innerHTML = e;
|
|
496
496
|
let o = [];
|
|
497
497
|
return t ? Array.from(n.content.children).forEach((r) => {
|
|
498
498
|
o.push(t.appendChild(r));
|
|
499
499
|
}) : o = Array.from(n.content.children), o.length === 1 ? o[0] : o;
|
|
500
|
-
},
|
|
500
|
+
}, We = (e, t = !1) => {
|
|
501
501
|
if (!e)
|
|
502
502
|
throw new Error("el is null");
|
|
503
503
|
const n = e.getBoundingClientRect();
|
|
504
504
|
if (t && !n.height) {
|
|
505
505
|
const o = e.style.visibility, r = e.style.display;
|
|
506
506
|
e.style.visibility = "hidden", e.style.display = "block";
|
|
507
|
-
const i =
|
|
507
|
+
const i = We(e);
|
|
508
508
|
return e.style.visibility = o, e.style.display = r, i;
|
|
509
509
|
}
|
|
510
510
|
return {
|
|
@@ -515,78 +515,91 @@ v(e.top + e.height, t.top, t.top + t.height) && v(e.left + e.width, t.left, t.le
|
|
|
515
515
|
width: n.width,
|
|
516
516
|
height: n.height
|
|
517
517
|
};
|
|
518
|
-
},
|
|
518
|
+
}, Ao = (e) => {
|
|
519
519
|
let t = {};
|
|
520
520
|
for (let n in e) {
|
|
521
521
|
const o = e[n];
|
|
522
522
|
o != null && (t[`--${n}`] = `${o}`);
|
|
523
523
|
}
|
|
524
524
|
return t;
|
|
525
|
-
},
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
525
|
+
}, So = (e, t = null, {
|
|
526
|
+
lockInView: n = !1,
|
|
527
|
+
onStart: o,
|
|
528
|
+
onEnd: r,
|
|
529
|
+
onMove: i
|
|
530
|
+
} = {}) => {
|
|
531
|
+
const a = b(e);
|
|
532
|
+
t = b(t || a);
|
|
533
|
+
const s = a.style.position, c = a.style.left, l = a.style.top, p = a.style.transform;
|
|
534
|
+
let w = !1, f = 0, x = 0;
|
|
535
|
+
const T = (u) => {
|
|
536
|
+
if (!w)
|
|
536
537
|
return;
|
|
537
|
-
a =
|
|
538
|
-
|
|
539
|
-
|
|
538
|
+
a.style.position = "fixed", a.style.transform = "none";
|
|
539
|
+
let C = u.clientX - f, R = u.clientY - x;
|
|
540
|
+
if (n) {
|
|
541
|
+
const ge = window.innerWidth - a.offsetWidth, we = window.innerHeight - a.offsetHeight;
|
|
542
|
+
C = Math.min(Math.max(0, C), ge), R = Math.min(Math.max(0, R), we);
|
|
543
|
+
}
|
|
544
|
+
a.style.left = `${C}px`, a.style.top = `${R}px`, i && i(C, R);
|
|
545
|
+
}, A = () => {
|
|
546
|
+
w = !1, document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", A), r && r(parseInt(a.style.left, 10), parseInt(a.style.top, 10));
|
|
547
|
+
}, S = (u) => {
|
|
548
|
+
if (u.button !== 0 || o && o() === !1)
|
|
549
|
+
return;
|
|
550
|
+
w = !0;
|
|
551
|
+
const C = a.getBoundingClientRect();
|
|
552
|
+
f = u.clientX - C.left, x = u.clientY - C.top, document.addEventListener("mousemove", T), document.addEventListener("mouseup", A), u.preventDefault();
|
|
540
553
|
};
|
|
541
|
-
return t.addEventListener("mousedown",
|
|
542
|
-
|
|
554
|
+
return t.addEventListener("mousedown", S), () => {
|
|
555
|
+
A(), t.removeEventListener("mousedown", S), a.style.position = s, a.style.left = c, a.style.top = l, a.style.transform = p;
|
|
543
556
|
};
|
|
544
|
-
},
|
|
545
|
-
const t =
|
|
546
|
-
t && (cancelAnimationFrame(t.raf),
|
|
547
|
-
},
|
|
548
|
-
const { duration: o = 380, axis: r = "scrollLeft", onEnd: i, easingFn:
|
|
549
|
-
|
|
550
|
-
const
|
|
557
|
+
}, I = /* @__PURE__ */ new WeakMap(), Ge = (e) => {
|
|
558
|
+
const t = I.get(e);
|
|
559
|
+
t && (cancelAnimationFrame(t.raf), I.delete(e), e.style.scrollBehavior = t.prevBehavior);
|
|
560
|
+
}, Co = (e, t, n = {}) => {
|
|
561
|
+
const { duration: o = 380, axis: r = "scrollLeft", onEnd: i, easingFn: a = ye } = n;
|
|
562
|
+
Ge(e);
|
|
563
|
+
const s = e.style.scrollBehavior;
|
|
551
564
|
e.style.scrollBehavior = "auto";
|
|
552
|
-
const
|
|
553
|
-
e.style.scrollBehavior =
|
|
565
|
+
const c = r === "scrollLeft" ? e.scrollWidth - e.clientWidth : e.scrollHeight - e.clientHeight, l = Math.max(0, Math.min(c, t)), p = e[r], w = l - p, f = () => {
|
|
566
|
+
e.style.scrollBehavior = s, i == null || i();
|
|
554
567
|
};
|
|
555
568
|
if (Math.abs(w) < 1) {
|
|
556
|
-
|
|
569
|
+
f();
|
|
557
570
|
return;
|
|
558
571
|
}
|
|
559
|
-
const
|
|
560
|
-
const
|
|
561
|
-
e[r] = p + w *
|
|
562
|
-
const
|
|
563
|
-
|
|
572
|
+
const x = performance.now(), T = (A) => {
|
|
573
|
+
const S = Math.min(1, (A - x) / o);
|
|
574
|
+
e[r] = p + w * a(S);
|
|
575
|
+
const u = I.get(e);
|
|
576
|
+
S < 1 && u ? u.raf = requestAnimationFrame(T) : (I.delete(e), f());
|
|
564
577
|
};
|
|
565
|
-
|
|
566
|
-
},
|
|
578
|
+
I.set(e, { raf: requestAnimationFrame(T), prevBehavior: s });
|
|
579
|
+
}, _o = (e) => e.replace(/[\\/:*?"<>|]/g, "_").replace(/[\0-\x1F]/g, "_").replace(/\s+/g, " ").replace(/^\.+/, "").replace(/\.+$/, "").trim(), J = (e) => new Promise((t, n) => {
|
|
567
580
|
const o = new FileReader();
|
|
568
581
|
o.onload = () => t(o.result), o.onerror = (r) => n(r), o.readAsDataURL(e);
|
|
569
|
-
}),
|
|
582
|
+
}), X = {}, Z = (e, t = null) => t !== null ? (X[e] = t, null) : X[e] || null, Oo = async (e) => {
|
|
570
583
|
if (!e)
|
|
571
584
|
return null;
|
|
572
585
|
if (typeof e == "string" && e.startsWith("data:"))
|
|
573
586
|
return e;
|
|
574
587
|
try {
|
|
575
|
-
if (typeof e == "string" &&
|
|
588
|
+
if (typeof e == "string" && Pe(e)) {
|
|
576
589
|
const t = await fetch(e);
|
|
577
590
|
if (!t.ok)
|
|
578
591
|
throw new Error(`Fetch failed: ${t.status}`);
|
|
579
592
|
const n = await t.blob();
|
|
580
|
-
return await
|
|
593
|
+
return await J(n);
|
|
581
594
|
}
|
|
582
|
-
return e instanceof Blob ? await
|
|
595
|
+
return e instanceof Blob ? await J(e) : null;
|
|
583
596
|
} catch (t) {
|
|
584
597
|
return console.warn("file2Base64DataURL failed:", t), null;
|
|
585
598
|
}
|
|
586
|
-
},
|
|
599
|
+
}, Io = (e, t) => {
|
|
587
600
|
const n = document.createElement("a");
|
|
588
601
|
n.rel = "noopener noreferrer", n.href = e, n.download = t, document.body.appendChild(n), n.click(), document.body.removeChild(n);
|
|
589
|
-
},
|
|
602
|
+
}, ce = [
|
|
590
603
|
"ADDRESS",
|
|
591
604
|
"ARTICLE",
|
|
592
605
|
"ASIDE",
|
|
@@ -621,7 +634,7 @@ v(e.top + e.height, t.top, t.top + t.height) && v(e.left + e.width, t.left, t.le
|
|
|
621
634
|
"TFOOT",
|
|
622
635
|
"UL",
|
|
623
636
|
"VIDEO"
|
|
624
|
-
],
|
|
637
|
+
], Do = [
|
|
625
638
|
"A",
|
|
626
639
|
"ABBR",
|
|
627
640
|
"ACRONYM",
|
|
@@ -654,27 +667,27 @@ v(e.top + e.height, t.top, t.top + t.height) && v(e.left + e.width, t.left, t.le
|
|
|
654
667
|
"TT",
|
|
655
668
|
"U",
|
|
656
669
|
"VAR"
|
|
657
|
-
].concat(...
|
|
670
|
+
].concat(...ce), No = ["AREA", "BASE", "BR", "COL", "EMBED", "HR", "IMG", "INPUT", "LINK", "META", "PARAM", "SOURCE", "TRACK", "WBR"], Ke = ["STYLE", "COMMENT", "SELECT", "OPTION", "SCRIPT", "TITLE", "HEAD", "BUTTON", "META", "LINK", "PARAM", "SOURCE"], Lo = (e, t = {}) => {
|
|
658
671
|
t.keepLineBreak = t.keepLineBreak !== !1;
|
|
659
672
|
const n = t.imgReplacer !== void 0 ? t.imgReplacer : "[Image]";
|
|
660
|
-
e = e.replace(/<img[^>]*src=["']([^"']*)["'][^>]*alt=["']([^"']*)["'][^>]*>/gi, function(i,
|
|
661
|
-
return typeof n == "function" ? n(
|
|
662
|
-
}), e = e.replace(/<img[^>]*alt=["']([^"']*)["'][^>]*src=["']([^"']*)["'][^>]*>/gi, function(i,
|
|
663
|
-
return typeof n == "function" ? n(
|
|
664
|
-
}), e = e.replace(/<img[^>]*src=["']([^"']*)["'][^>]*>/gi, function(i,
|
|
665
|
-
return typeof n == "function" ? n(
|
|
673
|
+
e = e.replace(/<img[^>]*src=["']([^"']*)["'][^>]*alt=["']([^"']*)["'][^>]*>/gi, function(i, a, s) {
|
|
674
|
+
return typeof n == "function" ? n(a, s) : n;
|
|
675
|
+
}), e = e.replace(/<img[^>]*alt=["']([^"']*)["'][^>]*src=["']([^"']*)["'][^>]*>/gi, function(i, a, s) {
|
|
676
|
+
return typeof n == "function" ? n(s, a) : n;
|
|
677
|
+
}), e = e.replace(/<img[^>]*src=["']([^"']*)["'][^>]*>/gi, function(i, a) {
|
|
678
|
+
return typeof n == "function" ? n(a, "") : n;
|
|
666
679
|
});
|
|
667
680
|
const o = t.videoReplacer !== void 0 ? t.videoReplacer : "[Video]";
|
|
668
|
-
return e = e.replace(/<video[^>]*src=["']([^"']*)["'][^>]*>/gi, function(i,
|
|
669
|
-
return typeof o == "function" ? o(
|
|
670
|
-
}), e = e.replace(/<video[^>]*>[\s\S]*?<source[^>]*src=["']([^"']*)["'][^>]*>[\s\S]*?<\/video>/gi, function(i,
|
|
671
|
-
return typeof o == "function" ? o(
|
|
672
|
-
}),
|
|
681
|
+
return e = e.replace(/<video[^>]*src=["']([^"']*)["'][^>]*>/gi, function(i, a) {
|
|
682
|
+
return typeof o == "function" ? o(a, "") : o;
|
|
683
|
+
}), e = e.replace(/<video[^>]*>[\s\S]*?<source[^>]*src=["']([^"']*)["'][^>]*>[\s\S]*?<\/video>/gi, function(i, a) {
|
|
684
|
+
return typeof o == "function" ? o(a, "") : o;
|
|
685
|
+
}), Ke.forEach((i) => {
|
|
673
686
|
e = e.replace(new RegExp(`<${i}[^>]*>([\\s\\S]*?)<\\/${i}>`, "gi"), ""), e = e.replace(new RegExp(`<${i}[^>]*>`, "gi"), "");
|
|
674
|
-
}), e = e.replace(/[\r|\n]/g, ""), e = e.replace(/<(\w+)([^>]*)>/g, function(i,
|
|
675
|
-
return
|
|
687
|
+
}), e = e.replace(/[\r|\n]/g, ""), e = e.replace(/<(\w+)([^>]*)>/g, function(i, a, s) {
|
|
688
|
+
return ce.includes(a.toUpperCase()) ? `
|
|
676
689
|
` : "";
|
|
677
|
-
}), e = e.replace(/<\/(\w+)([^>]*)>/g, function(i,
|
|
690
|
+
}), e = e.replace(/<\/(\w+)([^>]*)>/g, function(i, a, s) {
|
|
678
691
|
return "";
|
|
679
692
|
}), e = e.replace(/<[^>]+>/g, ""), [
|
|
680
693
|
[/ /gi, " "],
|
|
@@ -682,28 +695,28 @@ v(e.top + e.height, t.top, t.top + t.height) && v(e.left + e.width, t.left, t.le
|
|
|
682
695
|
[/>/gi, ">"],
|
|
683
696
|
[/"/gi, '"'],
|
|
684
697
|
[/'/gi, "'"]
|
|
685
|
-
].forEach(([i,
|
|
686
|
-
e = e.replace(i,
|
|
687
|
-
}), e = e.replace(/&#(\d+);/g, function(i,
|
|
688
|
-
return String.fromCharCode(parseInt(
|
|
698
|
+
].forEach(([i, a]) => {
|
|
699
|
+
e = e.replace(i, a);
|
|
700
|
+
}), e = e.replace(/&#(\d+);/g, function(i, a) {
|
|
701
|
+
return String.fromCharCode(parseInt(a));
|
|
689
702
|
}), e = e.replace(/&/gi, "&"), t.keepLineBreak || (e = e.replace(/\n+/g, " ")), e = e.trim(), e;
|
|
690
|
-
},
|
|
703
|
+
}, Ro = (e) => Ve(e, 0, !1).replace(/\n/g, "<br/>"), ko = (e) => window.CSS && CSS.escape ? CSS.escape(e) : e.replace(/[!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g, "\\$&"), Po = (e) => {
|
|
691
704
|
let t = e.split(";");
|
|
692
705
|
return t.pop(), t.map((n) => String.fromCharCode(n[2] === "x" ? parseInt(n.slice(3), 16) : parseInt(n.slice(2)))).join("");
|
|
693
706
|
};
|
|
694
|
-
let
|
|
695
|
-
const
|
|
707
|
+
let O;
|
|
708
|
+
const Fo = (e) => (O || (O = document.createElement("div")), e = e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim, ""), e = e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim, ""), O.innerHTML = e, e = O.textContent || "", O.textContent = "", e), Ho = (e) => {
|
|
696
709
|
let t = "";
|
|
697
710
|
for (let n in e) {
|
|
698
711
|
let o = e[n] === null ? "" : e[n];
|
|
699
|
-
t += `<input type="hidden" name="${
|
|
712
|
+
t += `<input type="hidden" name="${ee(n)}" value="${ee(o)}"/>`;
|
|
700
713
|
}
|
|
701
714
|
return t;
|
|
702
|
-
},
|
|
715
|
+
}, Ve = (e, t = 2, n = !0) => {
|
|
703
716
|
let o = String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
704
717
|
return n && (o = o.replace(/[\r\n]/g, "<br/>")), t && (o = o.replace(/\t/g, " ".repeat(t))), o = o.replace(/\s/g, " "), o;
|
|
705
|
-
},
|
|
706
|
-
`),
|
|
718
|
+
}, Bo = (e) => String(e).replace(/"/g, '"').replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">").replace(/ /g, " ").replace(/&/g, "&").replace(/<br.*>/, `
|
|
719
|
+
`), $o = (e) => {
|
|
707
720
|
if (!e)
|
|
708
721
|
return "";
|
|
709
722
|
let t = e;
|
|
@@ -712,20 +725,20 @@ const Lo = (e) => (S || (S = document.createElement("div")), e = e.replace(/<scr
|
|
|
712
725
|
`);
|
|
713
726
|
if (o.length < 2) return n;
|
|
714
727
|
let r = "<table>";
|
|
715
|
-
return o.forEach((i,
|
|
716
|
-
const
|
|
717
|
-
if (/^\s*-+\s*$/.test(
|
|
718
|
-
const
|
|
719
|
-
r += "<tr>",
|
|
720
|
-
r += `<${
|
|
728
|
+
return o.forEach((i, a) => {
|
|
729
|
+
const s = i.split("|").slice(1, -1);
|
|
730
|
+
if (/^\s*-+\s*$/.test(s[0])) return;
|
|
731
|
+
const c = a === 0 ? "th" : "td";
|
|
732
|
+
r += "<tr>", s.forEach((l) => {
|
|
733
|
+
r += `<${c}>${l.trim()}</${c}>`;
|
|
721
734
|
}), r += "</tr>";
|
|
722
735
|
}), r += "</table>", r;
|
|
723
736
|
}), t = t.replace(/^\s*-\s+(.*)/gim, "<li>$1</li>"), t = t.replace(/(<li>.*<\/li>)/gims, "<ul>$1</ul>"), t = t.replace(/\n/g, "<br />"), t.trim();
|
|
724
|
-
},
|
|
725
|
-
`, ("" + e).replace(/&/g, "&").replace(/'/g, "'").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">").replace(/\r\n/g, t).replace(/[\r\n]/g, t)),
|
|
737
|
+
}, ee = (e, t = "") => (t = t ? " " : `
|
|
738
|
+
`, ("" + e).replace(/&/g, "&").replace(/'/g, "'").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">").replace(/\r\n/g, t).replace(/[\r\n]/g, t)), Uo = (e, t) => {
|
|
726
739
|
let n = e.split("");
|
|
727
740
|
return t = t || 0, n.map((o) => `&#${t ? "x" + o.charCodeAt(0).toString(16) : o.charCodeAt(0)};`).join("");
|
|
728
|
-
},
|
|
741
|
+
}, Yo = (e, t, n = '<span class="matched">%s</span>') => t ? e.replace(new RegExp(Y(t), "ig"), (o) => n.replace("%s", o)) : e, jo = (e) => {
|
|
729
742
|
if (!e.src)
|
|
730
743
|
return null;
|
|
731
744
|
if (e.src.indexOf("data:") === 0)
|
|
@@ -734,29 +747,29 @@ const Lo = (e) => (S || (S = document.createElement("div")), e = e.replace(/<scr
|
|
|
734
747
|
t.width = e.width, t.height = e.height;
|
|
735
748
|
let n = t.getContext("2d");
|
|
736
749
|
return n ? (n.drawImage(e, 0, 0, e.width, e.height), t.toDataURL("image/png")) : null;
|
|
737
|
-
},
|
|
750
|
+
}, Qe = (e) => {
|
|
738
751
|
const t = new XMLSerializer().serializeToString(e), n = new Blob([t], { type: "image/svg+xml;charset=utf-8" });
|
|
739
752
|
return URL.createObjectURL(n);
|
|
740
|
-
},
|
|
741
|
-
const o =
|
|
753
|
+
}, Je = (e) => new Promise((t, n) => {
|
|
754
|
+
const o = Qe(e), r = new Image();
|
|
742
755
|
r.onload = () => {
|
|
743
756
|
t(r);
|
|
744
757
|
}, r.onerror = (i) => {
|
|
745
758
|
n(new Error("Failed to load SVG into Image:" + i));
|
|
746
759
|
}, r.src = o;
|
|
747
|
-
}),
|
|
748
|
-
const i =
|
|
749
|
-
|
|
750
|
-
const [
|
|
751
|
-
l.width =
|
|
760
|
+
}), qo = (e, t = null, n = null) => (t = t || "image/png", new Promise((o, r) => {
|
|
761
|
+
const i = N(n) ? Ce(n) : 1;
|
|
762
|
+
Je(e).then((a) => {
|
|
763
|
+
const [s, c] = Xe(e), l = document.createElement("canvas");
|
|
764
|
+
l.width = s * i, l.height = c * i, l.getContext("2d").drawImage(a, 0, 0, s * i, c * i), URL.revokeObjectURL(a.src), o(l.toDataURL(t));
|
|
752
765
|
}, r);
|
|
753
|
-
})),
|
|
766
|
+
})), Xe = (e) => {
|
|
754
767
|
let t = null, n = null;
|
|
755
768
|
const o = e.getAttribute("width"), r = e.getAttribute("height");
|
|
756
769
|
if (o && r)
|
|
757
770
|
try {
|
|
758
|
-
const i =
|
|
759
|
-
i &&
|
|
771
|
+
const i = U(o, "px"), a = U(r, "px");
|
|
772
|
+
i && a && (t = K(i.val + i.unit, "px"), n = K(a.val + a.unit, "px"));
|
|
760
773
|
} catch {
|
|
761
774
|
}
|
|
762
775
|
if (t === null || n === null) {
|
|
@@ -768,9 +781,9 @@ const Lo = (e) => (S || (S = document.createElement("div")), e = e.replace(/<scr
|
|
|
768
781
|
t = i.width, n = i.height;
|
|
769
782
|
}
|
|
770
783
|
return [t, n];
|
|
771
|
-
},
|
|
784
|
+
}, zo = (e, t = !1) => new Promise((n, o) => {
|
|
772
785
|
if (t) {
|
|
773
|
-
const i =
|
|
786
|
+
const i = Z(e);
|
|
774
787
|
if (i)
|
|
775
788
|
return n(i);
|
|
776
789
|
}
|
|
@@ -778,10 +791,10 @@ const Lo = (e) => (S || (S = document.createElement("div")), e = e.replace(/<scr
|
|
|
778
791
|
r.open("GET", e, !0), r.responseType = "blob", r.onload = function() {
|
|
779
792
|
if (this.status === 200) {
|
|
780
793
|
let i = this.response;
|
|
781
|
-
|
|
782
|
-
t &&
|
|
783
|
-
}).catch((
|
|
784
|
-
o(
|
|
794
|
+
Ne(i).then((a) => {
|
|
795
|
+
t && Z(e, a), n(a);
|
|
796
|
+
}).catch((a) => {
|
|
797
|
+
o(a);
|
|
785
798
|
});
|
|
786
799
|
}
|
|
787
800
|
}, r.onerror = function() {
|
|
@@ -792,18 +805,18 @@ const Lo = (e) => (S || (S = document.createElement("div")), e = e.replace(/<scr
|
|
|
792
805
|
}), M = (e, t) => {
|
|
793
806
|
let n = (e & 65535) + (t & 65535);
|
|
794
807
|
return (e >> 16) + (t >> 16) + (n >> 16) << 16 | n & 65535;
|
|
795
|
-
},
|
|
808
|
+
}, Ze = (e, t) => e << t | e >>> 32 - t, P = (e, t, n, o, r, i) => M(Ze(M(M(t, e), M(o, i)), r), n), m = (e, t, n, o, r, i, a) => P(t & n | ~t & o, e, t, r, i, a), d = (e, t, n, o, r, i, a) => P(t & o | n & ~o, e, t, r, i, a), h = (e, t, n, o, r, i, a) => P(t ^ n ^ o, e, t, r, i, a), g = (e, t, n, o, r, i, a) => P(n ^ (t | ~o), e, t, r, i, a), k = (e, t) => {
|
|
796
809
|
e[t >> 5] |= 128 << t % 32, e[(t + 64 >>> 9 << 4) + 14] = t;
|
|
797
|
-
let n, o, r, i,
|
|
810
|
+
let n, o, r, i, a, s = 1732584193, c = -271733879, l = -1732584194, p = 271733878;
|
|
798
811
|
for (n = 0; n < e.length; n += 16)
|
|
799
|
-
o =
|
|
800
|
-
return [
|
|
801
|
-
},
|
|
812
|
+
o = s, r = c, i = l, a = p, s = m(s, c, l, p, e[n], 7, -680876936), p = m(p, s, c, l, e[n + 1], 12, -389564586), l = m(l, p, s, c, e[n + 2], 17, 606105819), c = m(c, l, p, s, e[n + 3], 22, -1044525330), s = m(s, c, l, p, e[n + 4], 7, -176418897), p = m(p, s, c, l, e[n + 5], 12, 1200080426), l = m(l, p, s, c, e[n + 6], 17, -1473231341), c = m(c, l, p, s, e[n + 7], 22, -45705983), s = m(s, c, l, p, e[n + 8], 7, 1770035416), p = m(p, s, c, l, e[n + 9], 12, -1958414417), l = m(l, p, s, c, e[n + 10], 17, -42063), c = m(c, l, p, s, e[n + 11], 22, -1990404162), s = m(s, c, l, p, e[n + 12], 7, 1804603682), p = m(p, s, c, l, e[n + 13], 12, -40341101), l = m(l, p, s, c, e[n + 14], 17, -1502002290), c = m(c, l, p, s, e[n + 15], 22, 1236535329), s = d(s, c, l, p, e[n + 1], 5, -165796510), p = d(p, s, c, l, e[n + 6], 9, -1069501632), l = d(l, p, s, c, e[n + 11], 14, 643717713), c = d(c, l, p, s, e[n], 20, -373897302), s = d(s, c, l, p, e[n + 5], 5, -701558691), p = d(p, s, c, l, e[n + 10], 9, 38016083), l = d(l, p, s, c, e[n + 15], 14, -660478335), c = d(c, l, p, s, e[n + 4], 20, -405537848), s = d(s, c, l, p, e[n + 9], 5, 568446438), p = d(p, s, c, l, e[n + 14], 9, -1019803690), l = d(l, p, s, c, e[n + 3], 14, -187363961), c = d(c, l, p, s, e[n + 8], 20, 1163531501), s = d(s, c, l, p, e[n + 13], 5, -1444681467), p = d(p, s, c, l, e[n + 2], 9, -51403784), l = d(l, p, s, c, e[n + 7], 14, 1735328473), c = d(c, l, p, s, e[n + 12], 20, -1926607734), s = h(s, c, l, p, e[n + 5], 4, -378558), p = h(p, s, c, l, e[n + 8], 11, -2022574463), l = h(l, p, s, c, e[n + 11], 16, 1839030562), c = h(c, l, p, s, e[n + 14], 23, -35309556), s = h(s, c, l, p, e[n + 1], 4, -1530992060), p = h(p, s, c, l, e[n + 4], 11, 1272893353), l = h(l, p, s, c, e[n + 7], 16, -155497632), c = h(c, l, p, s, e[n + 10], 23, -1094730640), s = h(s, c, l, p, e[n + 13], 4, 681279174), p = h(p, s, c, l, e[n], 11, -358537222), l = h(l, p, s, c, e[n + 3], 16, -722521979), c = h(c, l, p, s, e[n + 6], 23, 76029189), s = h(s, c, l, p, e[n + 9], 4, -640364487), p = h(p, s, c, l, e[n + 12], 11, -421815835), l = h(l, p, s, c, e[n + 15], 16, 530742520), c = h(c, l, p, s, e[n + 2], 23, -995338651), s = g(s, c, l, p, e[n], 6, -198630844), p = g(p, s, c, l, e[n + 7], 10, 1126891415), l = g(l, p, s, c, e[n + 14], 15, -1416354905), c = g(c, l, p, s, e[n + 5], 21, -57434055), s = g(s, c, l, p, e[n + 12], 6, 1700485571), p = g(p, s, c, l, e[n + 3], 10, -1894986606), l = g(l, p, s, c, e[n + 10], 15, -1051523), c = g(c, l, p, s, e[n + 1], 21, -2054922799), s = g(s, c, l, p, e[n + 8], 6, 1873313359), p = g(p, s, c, l, e[n + 15], 10, -30611744), l = g(l, p, s, c, e[n + 6], 15, -1560198380), c = g(c, l, p, s, e[n + 13], 21, 1309151649), s = g(s, c, l, p, e[n + 4], 6, -145523070), p = g(p, s, c, l, e[n + 11], 10, -1120210379), l = g(l, p, s, c, e[n + 2], 15, 718787259), c = g(c, l, p, s, e[n + 9], 21, -343485551), s = M(s, o), c = M(c, r), l = M(l, i), p = M(p, a);
|
|
813
|
+
return [s, c, l, p];
|
|
814
|
+
}, le = (e) => {
|
|
802
815
|
let t, n = "", o = e.length * 32;
|
|
803
816
|
for (t = 0; t < o; t += 8)
|
|
804
817
|
n += String.fromCharCode(e[t >> 5] >>> t % 32 & 255);
|
|
805
818
|
return n;
|
|
806
|
-
},
|
|
819
|
+
}, j = (e) => {
|
|
807
820
|
let t, n = [];
|
|
808
821
|
for (n[(e.length >> 2) - 1] = void 0, t = 0; t < n.length; t += 1)
|
|
809
822
|
n[t] = 0;
|
|
@@ -811,17 +824,17 @@ const Lo = (e) => (S || (S = document.createElement("div")), e = e.replace(/<scr
|
|
|
811
824
|
for (t = 0; t < o; t += 8)
|
|
812
825
|
n[t >> 5] |= (e.charCodeAt(t / 8) & 255) << t % 32;
|
|
813
826
|
return n;
|
|
814
|
-
},
|
|
815
|
-
let n, o =
|
|
816
|
-
for (r[15] = i[15] = void 0, o.length > 16 && (o =
|
|
827
|
+
}, et = (e) => le(k(j(e), e.length * 8)), tt = (e, t) => {
|
|
828
|
+
let n, o = j(e), r = [], i = [], a;
|
|
829
|
+
for (r[15] = i[15] = void 0, o.length > 16 && (o = k(o, e.length * 8)), n = 0; n < 16; n += 1)
|
|
817
830
|
r[n] = o[n] ^ 909522486, i[n] = o[n] ^ 1549556828;
|
|
818
|
-
return
|
|
819
|
-
},
|
|
831
|
+
return a = k(r.concat(j(t)), 512 + t.length * 8), le(k(i.concat(a), 640));
|
|
832
|
+
}, pe = (e) => {
|
|
820
833
|
let t = "0123456789abcdef", n = "", o, r;
|
|
821
834
|
for (r = 0; r < e.length; r += 1)
|
|
822
835
|
o = e.charCodeAt(r), n += t.charAt(o >>> 4 & 15) + t.charAt(o & 15);
|
|
823
836
|
return n;
|
|
824
|
-
},
|
|
837
|
+
}, q = (e) => unescape(encodeURIComponent(e)), ue = (e) => et(q(e)), nt = (e) => pe(ue(e)), fe = (e, t) => tt(q(e), q(t)), ot = (e, t) => pe(fe(e, t)), Wo = (e, t, n) => t ? n ? fe(t, e) : ot(t, e) : n ? ue(e) : nt(e), Go = "application/octet-stream", D = "application/json", rt = "application/x-www-form-urlencoded", it = "multipart/form-data", Ko = "text/plain", Vo = "text/html", Qo = {
|
|
825
838
|
323: "text/h323",
|
|
826
839
|
accdb: "application/msaccess",
|
|
827
840
|
accde: "application/msaccess",
|
|
@@ -1118,16 +1131,16 @@ const Lo = (e) => (S || (S = document.createElement("div")), e = e.replace(/<scr
|
|
|
1118
1131
|
xwd: "image/x-xwindowdump",
|
|
1119
1132
|
z: "application/x-compress",
|
|
1120
1133
|
zip: "application/x-zip-compressed"
|
|
1121
|
-
},
|
|
1134
|
+
}, me = (e) => {
|
|
1122
1135
|
const t = {};
|
|
1123
1136
|
return e.replace(/^\?/, "").split("&").forEach((n) => {
|
|
1124
1137
|
const [o, r] = n.split("=");
|
|
1125
1138
|
o && (t[decodeURIComponent(o)] = decodeURIComponent(r || ""));
|
|
1126
1139
|
}), t;
|
|
1127
|
-
},
|
|
1128
|
-
const [n, o] = e.split("?"), i = { ...o ?
|
|
1129
|
-
return `${n}?${
|
|
1130
|
-
},
|
|
1140
|
+
}, at = (e, t) => {
|
|
1141
|
+
const [n, o] = e.split("?"), i = { ...o ? me(o) : {}, ...t }, a = de(i);
|
|
1142
|
+
return `${n}?${a}`;
|
|
1143
|
+
}, de = (e) => {
|
|
1131
1144
|
if (typeof e > "u" || typeof e != "object")
|
|
1132
1145
|
return e;
|
|
1133
1146
|
let t = [];
|
|
@@ -1141,46 +1154,46 @@ const Lo = (e) => (S || (S = document.createElement("div")), e = e.replace(/<scr
|
|
|
1141
1154
|
}
|
|
1142
1155
|
return t.join("&");
|
|
1143
1156
|
};
|
|
1144
|
-
class
|
|
1157
|
+
class st extends Error {
|
|
1145
1158
|
constructor(t) {
|
|
1146
1159
|
super(t), Object.setPrototypeOf(this, new.target.prototype);
|
|
1147
1160
|
}
|
|
1148
1161
|
}
|
|
1149
|
-
const
|
|
1162
|
+
const ct = (e, t = {}) => {
|
|
1150
1163
|
const n = new AbortController();
|
|
1151
1164
|
let o = null;
|
|
1152
1165
|
t.timeout && (o = setTimeout(() => n.abort(), t.timeout));
|
|
1153
1166
|
const r = () => {
|
|
1154
1167
|
o !== null && (clearTimeout(o), o = null);
|
|
1155
|
-
}, i = (
|
|
1156
|
-
const
|
|
1157
|
-
return
|
|
1158
|
-
return i(l(
|
|
1159
|
-
},
|
|
1160
|
-
return i(p(
|
|
1161
|
-
},
|
|
1162
|
-
return i(w(
|
|
1163
|
-
},
|
|
1164
|
-
r(),
|
|
1165
|
-
},
|
|
1166
|
-
r(),
|
|
1168
|
+
}, i = (s) => {
|
|
1169
|
+
const c = s, l = c.then.bind(c), p = c.catch.bind(c), w = c.finally.bind(c);
|
|
1170
|
+
return c.then = function(f, x) {
|
|
1171
|
+
return i(l(f, x));
|
|
1172
|
+
}, c.catch = function(f) {
|
|
1173
|
+
return i(p(f));
|
|
1174
|
+
}, c.finally = function(f) {
|
|
1175
|
+
return i(w(f));
|
|
1176
|
+
}, c.abort = (f) => {
|
|
1177
|
+
r(), c.aborted = !0, n.abort(new st(f || "request aborted."));
|
|
1178
|
+
}, c.abortSilently = () => {
|
|
1179
|
+
r(), c.aborted = !0;
|
|
1167
1180
|
try {
|
|
1168
1181
|
n.abort();
|
|
1169
1182
|
} catch {
|
|
1170
1183
|
}
|
|
1171
|
-
},
|
|
1172
|
-
},
|
|
1184
|
+
}, c;
|
|
1185
|
+
}, a = fetch(e, {
|
|
1173
1186
|
...t,
|
|
1174
1187
|
signal: n.signal
|
|
1175
|
-
}).then((
|
|
1176
|
-
throw r(),
|
|
1188
|
+
}).then((s) => (r(), s)).catch((s) => {
|
|
1189
|
+
throw r(), s;
|
|
1177
1190
|
});
|
|
1178
|
-
return i(
|
|
1179
|
-
},
|
|
1191
|
+
return i(a);
|
|
1192
|
+
}, lt = (e, t, n) => {
|
|
1180
1193
|
if (t == null) return;
|
|
1181
1194
|
const o = e.replace(/([A-Z])/g, "-$1").replace(/^-/, "");
|
|
1182
1195
|
n[o] = String(t);
|
|
1183
|
-
},
|
|
1196
|
+
}, pt = (e) => {
|
|
1184
1197
|
const t = {};
|
|
1185
1198
|
if (!e) return t;
|
|
1186
1199
|
if (e instanceof Headers)
|
|
@@ -1195,7 +1208,7 @@ const rt = (e, t = {}) => {
|
|
|
1195
1208
|
for (const n in e)
|
|
1196
1209
|
t[n] = String(e[n]);
|
|
1197
1210
|
return t;
|
|
1198
|
-
},
|
|
1211
|
+
}, te = (e) => [
|
|
1199
1212
|
"method",
|
|
1200
1213
|
"headers",
|
|
1201
1214
|
"body",
|
|
@@ -1209,67 +1222,67 @@ const rt = (e, t = {}) => {
|
|
|
1209
1222
|
"keepalive",
|
|
1210
1223
|
"signal",
|
|
1211
1224
|
"window"
|
|
1212
|
-
].includes(e),
|
|
1225
|
+
].includes(e), G = (e, t = null, n = {}) => {
|
|
1213
1226
|
n = n || {}, n.method = n.method || "GET";
|
|
1214
|
-
const o = n.method.toUpperCase() === "GET", r =
|
|
1215
|
-
for (let
|
|
1216
|
-
!
|
|
1217
|
-
o && t && (e =
|
|
1227
|
+
const o = n.method.toUpperCase() === "GET", r = pt(n.headers);
|
|
1228
|
+
for (let a in n)
|
|
1229
|
+
!te(a) && a !== "timeout" && lt(a, n[a], r);
|
|
1230
|
+
o && t && (e = at(e, typeof t == "string" ? me(t) : t), t = null);
|
|
1218
1231
|
const i = {};
|
|
1219
|
-
for (let
|
|
1220
|
-
|
|
1232
|
+
for (let a in n)
|
|
1233
|
+
a === "timeout" ? i.timeout = n.timeout : te(a) && a !== "headers" && (i[a] = n[a]);
|
|
1221
1234
|
if (i.headers = r, !o) {
|
|
1222
|
-
const
|
|
1223
|
-
i.body =
|
|
1235
|
+
const a = r["Content-Type"] || r["content-type"];
|
|
1236
|
+
i.body = ft(t, a);
|
|
1224
1237
|
}
|
|
1225
|
-
return
|
|
1226
|
-
if (!
|
|
1227
|
-
throw new Error(`HTTP error! status: ${
|
|
1228
|
-
return
|
|
1238
|
+
return ct(e, i).then((a) => {
|
|
1239
|
+
if (!a.ok)
|
|
1240
|
+
throw new Error(`HTTP error! status: ${a.status}`);
|
|
1241
|
+
return a;
|
|
1229
1242
|
});
|
|
1230
|
-
},
|
|
1231
|
-
if (
|
|
1243
|
+
}, ut = (e) => typeof e == "string" || e instanceof FormData || e instanceof URLSearchParams || e instanceof Blob || e instanceof ArrayBuffer || ArrayBuffer.isView(e), ft = (e, t) => {
|
|
1244
|
+
if (ut(e) || typeof e != "object")
|
|
1232
1245
|
return e;
|
|
1233
1246
|
switch (t == null ? void 0 : t.toLowerCase()) {
|
|
1234
|
-
case
|
|
1247
|
+
case D:
|
|
1235
1248
|
return JSON.stringify(e);
|
|
1236
|
-
case
|
|
1237
|
-
case
|
|
1249
|
+
case rt:
|
|
1250
|
+
case it:
|
|
1238
1251
|
default:
|
|
1239
|
-
return
|
|
1252
|
+
return de(e);
|
|
1240
1253
|
}
|
|
1241
|
-
},
|
|
1254
|
+
}, Jo = (e, t = null, n = {}) => G(e, t, { ...n, ContentType: D, Accept: D }).then((o) => o.json()), Xo = (e, t = null, n = {}) => G(e, t, { ...n, method: "POST", ContentType: D, Accept: D }).then((o) => o.json()), Zo = (e, t, n = null, o = {}) => {
|
|
1242
1255
|
const r = new FormData();
|
|
1243
1256
|
if (Object.keys(t).forEach((i) => {
|
|
1244
1257
|
r.append(i, t[i], t[i].name);
|
|
1245
1258
|
}), n)
|
|
1246
1259
|
for (let i in n)
|
|
1247
1260
|
n.hasOwnProperty(i) && r.append(i, n[i]);
|
|
1248
|
-
return
|
|
1249
|
-
},
|
|
1261
|
+
return G(e, r, { ...o, method: "POST" }).then((i) => i.json());
|
|
1262
|
+
}, ne = (e) => {
|
|
1250
1263
|
if (e === null || typeof e != "object") return e;
|
|
1251
1264
|
if (e instanceof Date) return new Date(e.getTime());
|
|
1252
|
-
if (e instanceof Array) return e.map((t) =>
|
|
1265
|
+
if (e instanceof Array) return e.map((t) => ne(t));
|
|
1253
1266
|
if (e instanceof Object) {
|
|
1254
1267
|
const t = {};
|
|
1255
1268
|
for (const n in e)
|
|
1256
|
-
e.hasOwnProperty(n) && (t[n] =
|
|
1269
|
+
e.hasOwnProperty(n) && (t[n] = ne(e[n]));
|
|
1257
1270
|
return t;
|
|
1258
1271
|
}
|
|
1259
1272
|
return e;
|
|
1260
|
-
},
|
|
1273
|
+
}, er = (e) => Object.keys(e).length === 0, tr = (e, t) => {
|
|
1261
1274
|
let n = {};
|
|
1262
1275
|
for (let o in e)
|
|
1263
1276
|
t[o] !== void 0 ? n[t[o]] = e[o] : n[o] = e[o];
|
|
1264
1277
|
return n;
|
|
1265
|
-
},
|
|
1278
|
+
}, nr = (e) => Object.entries(e).map(([t, n]) => [/^\d+$/.test(t) ? Number(t) : t, n]), or = (e) => {
|
|
1266
1279
|
const t = {};
|
|
1267
1280
|
for (const [n, o] of e) {
|
|
1268
1281
|
const r = typeof n == "string" && /^\d+$/.test(n) ? Number(n) : n;
|
|
1269
1282
|
t[r] = o;
|
|
1270
1283
|
}
|
|
1271
1284
|
return t;
|
|
1272
|
-
},
|
|
1285
|
+
}, rr = (e) => Object.fromEntries(Object.entries(e).map(([t, n]) => [n, t])), ir = (e, t, n) => {
|
|
1273
1286
|
const o = t.split(".");
|
|
1274
1287
|
let r = e;
|
|
1275
1288
|
for (const i of o) {
|
|
@@ -1278,26 +1291,26 @@ const rt = (e, t = {}) => {
|
|
|
1278
1291
|
r = r[i];
|
|
1279
1292
|
}
|
|
1280
1293
|
return r !== void 0 ? r : n;
|
|
1281
|
-
},
|
|
1294
|
+
}, ar = (e, t, n) => {
|
|
1282
1295
|
const o = t.split("."), r = o.pop();
|
|
1283
1296
|
let i = e;
|
|
1284
|
-
for (const
|
|
1285
|
-
(!(
|
|
1297
|
+
for (const a of o)
|
|
1298
|
+
(!(a in i) || typeof i[a] != "object") && (i[a] = {}), i = i[a];
|
|
1286
1299
|
i[r] = n;
|
|
1287
|
-
},
|
|
1300
|
+
}, mt = (e, ...t) => {
|
|
1288
1301
|
for (const n of t)
|
|
1289
1302
|
for (const o in n)
|
|
1290
1303
|
if (n.hasOwnProperty(o)) {
|
|
1291
1304
|
const r = n[o], i = e[o];
|
|
1292
|
-
r && typeof r == "object" && !Array.isArray(r) && i && typeof i == "object" && !Array.isArray(i) ? e[o] =
|
|
1305
|
+
r && typeof r == "object" && !Array.isArray(r) && i && typeof i == "object" && !Array.isArray(i) ? e[o] = mt(i, r) : e[o] = r;
|
|
1293
1306
|
}
|
|
1294
1307
|
return e;
|
|
1295
|
-
},
|
|
1308
|
+
}, dt = (e, t = !1) => {
|
|
1296
1309
|
const n = e;
|
|
1297
1310
|
for (const o in n)
|
|
1298
|
-
n[o] === null ? delete n[o] : t && typeof n[o] == "object" &&
|
|
1311
|
+
n[o] === null ? delete n[o] : t && typeof n[o] == "object" && dt(n[o], !0);
|
|
1299
1312
|
return e;
|
|
1300
|
-
},
|
|
1313
|
+
}, sr = (/* @__PURE__ */ new Date()).getFullYear(), cr = (/* @__PURE__ */ new Date()).getMonth() + 1, lr = (/* @__PURE__ */ new Date()).getDate(), pr = 60 * 1e3, ur = 60 * 60 * 1e3, L = 24 * 60 * 60 * 1e3, fr = 7 * L, mr = 30 * L, dr = 31 * L, hr = 365 * L, gr = 366 * L, wr = 0, xr = 1, vr = 2, yr = 3, Er = 4, Mr = 5, br = 6, ht = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], gt = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], wt = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], xt = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Tr = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], Ar = ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], Sr = ["日", "一", "二", "三", "四", "五", "六"], Cr = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], _r = (e, t, n) => {
|
|
1301
1314
|
let o = () => {
|
|
1302
1315
|
if (t && t(e), e-- > 0) {
|
|
1303
1316
|
setTimeout(o, 1e3);
|
|
@@ -1306,24 +1319,24 @@ const rt = (e, t = {}) => {
|
|
|
1306
1319
|
n && n();
|
|
1307
1320
|
};
|
|
1308
1321
|
o();
|
|
1309
|
-
},
|
|
1322
|
+
}, Or = (e) => {
|
|
1310
1323
|
if (!e || e < 10)
|
|
1311
1324
|
return "刚刚";
|
|
1312
1325
|
e = Math.floor(e / 1e3);
|
|
1313
1326
|
const t = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), o = e % 60;
|
|
1314
1327
|
let r = "";
|
|
1315
1328
|
return t > 0 && (r += t + "小时"), (n > 0 || t > 0) && (r += n + "分钟"), r += o + "秒前", r;
|
|
1316
|
-
},
|
|
1329
|
+
}, Ir = (e, t = !1) => {
|
|
1317
1330
|
const n = new Date(e);
|
|
1318
1331
|
return new Date(n.getTime() - n.getTimezoneOffset() * 6e4).toISOString().slice(0, t ? 19 : 16);
|
|
1319
|
-
},
|
|
1332
|
+
}, Dr = (e, t, n) => e <= 0 ? 1 / 0 : (Date.now() - n) / e * (t - e), oe = {
|
|
1320
1333
|
d: (e) => {
|
|
1321
1334
|
let t = e.getDate();
|
|
1322
1335
|
return (t < 10 ? "0" : "") + t;
|
|
1323
1336
|
},
|
|
1324
|
-
D: (e) =>
|
|
1337
|
+
D: (e) => gt[e.getDay()],
|
|
1325
1338
|
j: (e) => e.getDate(),
|
|
1326
|
-
l: (e) =>
|
|
1339
|
+
l: (e) => ht[e.getDay()],
|
|
1327
1340
|
N: (e) => {
|
|
1328
1341
|
let t = e.getDay();
|
|
1329
1342
|
return t === 0 ? 7 : t;
|
|
@@ -1347,12 +1360,12 @@ const rt = (e, t = {}) => {
|
|
|
1347
1360
|
return r < 10 ? "0" + r : r;
|
|
1348
1361
|
},
|
|
1349
1362
|
// Month
|
|
1350
|
-
F: (e) =>
|
|
1363
|
+
F: (e) => wt[e.getMonth()],
|
|
1351
1364
|
m: (e) => {
|
|
1352
1365
|
let t = e.getMonth();
|
|
1353
1366
|
return (t < 9 ? "0" : "") + (t + 1);
|
|
1354
1367
|
},
|
|
1355
|
-
M: (e) =>
|
|
1368
|
+
M: (e) => xt[e.getMonth()],
|
|
1356
1369
|
n: (e) => e.getMonth() + 1,
|
|
1357
1370
|
t: (e) => {
|
|
1358
1371
|
let t = e.getFullYear(), n = e.getMonth() + 1;
|
|
@@ -1423,15 +1436,15 @@ const rt = (e, t = {}) => {
|
|
|
1423
1436
|
},
|
|
1424
1437
|
Z: (e) => -e.getTimezoneOffset() * 60,
|
|
1425
1438
|
// Full Date/Time
|
|
1426
|
-
c: (e) =>
|
|
1439
|
+
c: (e) => he("Y-m-d\\TH:i:sP", e),
|
|
1427
1440
|
r: (e) => e.toString(),
|
|
1428
1441
|
U: (e) => Math.floor(e.getTime() / 1e3)
|
|
1429
|
-
},
|
|
1442
|
+
}, he = function(e, t = null) {
|
|
1430
1443
|
let n = null;
|
|
1431
1444
|
return typeof t == "object" && t !== null ? n = t : n = new Date(t || Date.now()), e.replace(/(\\?)(.)/g, function(o, r, i) {
|
|
1432
|
-
return r === "" &&
|
|
1445
|
+
return r === "" && oe[i] ? String(oe[i](n)) : i;
|
|
1433
1446
|
});
|
|
1434
|
-
},
|
|
1447
|
+
}, vt = (e) => {
|
|
1435
1448
|
const t = /* @__PURE__ */ new Date(), n = new Intl.DateTimeFormat("en-US", {
|
|
1436
1449
|
timeZone: "UTC",
|
|
1437
1450
|
year: "numeric",
|
|
@@ -1448,260 +1461,260 @@ const rt = (e, t = {}) => {
|
|
|
1448
1461
|
hour: "numeric",
|
|
1449
1462
|
minute: "numeric",
|
|
1450
1463
|
second: "numeric"
|
|
1451
|
-
}), r = n.formatToParts(t), i = o.formatToParts(t),
|
|
1452
|
-
const w = p.find((
|
|
1453
|
-
return Date.UTC(Number(w), Number(
|
|
1454
|
-
},
|
|
1455
|
-
return (
|
|
1456
|
-
},
|
|
1464
|
+
}), r = n.formatToParts(t), i = o.formatToParts(t), a = (p) => {
|
|
1465
|
+
const w = p.find((u) => u.type === "year").value, f = p.find((u) => u.type === "month").value, x = p.find((u) => u.type === "day").value, T = p.find((u) => u.type === "hour").value, A = p.find((u) => u.type === "minute").value, S = p.find((u) => u.type === "second").value;
|
|
1466
|
+
return Date.UTC(Number(w), Number(f) - 1, Number(x), Number(T), Number(A), Number(S));
|
|
1467
|
+
}, s = a(r), c = a(i);
|
|
1468
|
+
return (s - c) / 1e3 / 60;
|
|
1469
|
+
}, yt = (e) => {
|
|
1457
1470
|
const t = Math.floor(e / 60), n = Math.abs(e % 60);
|
|
1458
1471
|
return `${t >= 0 ? "+" : "-"}${String(Math.abs(t)).padStart(2, "0")}:${String(n).padStart(2, "0")}`;
|
|
1459
|
-
},
|
|
1460
|
-
const t =
|
|
1461
|
-
return
|
|
1462
|
-
},
|
|
1472
|
+
}, Nr = (e) => {
|
|
1473
|
+
const t = vt(e);
|
|
1474
|
+
return yt(t);
|
|
1475
|
+
}, Lr = (e) => he("W", e);
|
|
1463
1476
|
export {
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1477
|
+
st as AbortError,
|
|
1478
|
+
ce as BLOCK_TAGS,
|
|
1479
|
+
Pn as Base64Encode,
|
|
1480
|
+
rn as COMMON_DPI,
|
|
1481
|
+
lr as DATE_NOW,
|
|
1482
|
+
Mr as DAY_FRIDAY,
|
|
1483
|
+
xr as DAY_MONDAY,
|
|
1484
|
+
br as DAY_SATURDAY,
|
|
1485
|
+
wr as DAY_SUNDAY,
|
|
1486
|
+
Er as DAY_THURSDAY,
|
|
1487
|
+
vr as DAY_TUESDAY,
|
|
1488
|
+
yr as DAY_WEDNESDAY,
|
|
1489
|
+
un as GOLDEN_RATIO,
|
|
1490
|
+
Go as MIME_BINARY_DEFAULT,
|
|
1491
|
+
Qo as MIME_EXTENSION_MAP,
|
|
1492
|
+
rt as MIME_FORM,
|
|
1493
|
+
Vo as MIME_HTML,
|
|
1494
|
+
D as MIME_JSON,
|
|
1495
|
+
it as MIME_MULTIPART,
|
|
1496
|
+
Ko as MIME_TEXT,
|
|
1497
|
+
Tr as MONTH_NAMES_CN,
|
|
1498
|
+
wt as MONTH_NAMES_EN,
|
|
1499
|
+
Ar as MONTH_NAMES_SHORT_CN,
|
|
1500
|
+
xt as MONTH_NAMES_SHORT_EN,
|
|
1501
|
+
cr as MONTH_NOW,
|
|
1502
|
+
L as ONE_DAY,
|
|
1503
|
+
ur as ONE_HOUR,
|
|
1504
|
+
pr as ONE_MINUTE,
|
|
1505
|
+
mr as ONE_MONTH30,
|
|
1506
|
+
dr as ONE_MONTH31,
|
|
1507
|
+
fr as ONE_WEEK,
|
|
1508
|
+
hr as ONE_YEAR365,
|
|
1509
|
+
gr as ONE_YEAR366,
|
|
1510
|
+
Do as PAIR_TAGS,
|
|
1511
|
+
Ke as REMOVABLE_TAGS,
|
|
1512
|
+
Ee as SCREEN_DPI,
|
|
1513
|
+
No as SELF_CLOSING_TAGS,
|
|
1514
|
+
re as STAND_DPI,
|
|
1515
|
+
V as TRIM_BOTH,
|
|
1516
|
+
Q as TRIM_LEFT,
|
|
1517
|
+
De as TRIM_RIGHT,
|
|
1518
|
+
Cr as WEEK_DAY_NAMES_CN,
|
|
1519
|
+
ht as WEEK_DAY_NAMES_EN,
|
|
1520
|
+
Sr as WEEK_DAY_NAMES_SHORT_CN,
|
|
1521
|
+
gt as WEEK_DAY_NAMES_SHORT_EN,
|
|
1522
|
+
sr as YEAR_NOW,
|
|
1523
|
+
ct as abortableFetch,
|
|
1524
|
+
nn as arrayChunk,
|
|
1525
|
+
Jt as arrayColumn,
|
|
1526
|
+
Zt as arrayDistinct,
|
|
1527
|
+
en as arrayGroup,
|
|
1528
|
+
Xt as arrayIndex,
|
|
1529
|
+
tn as arraySortByKey,
|
|
1530
|
+
on as arrayTrimTail,
|
|
1531
|
+
Rn as base64Decode,
|
|
1532
|
+
kn as base64UrlSafeEncode,
|
|
1520
1533
|
v as between,
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1534
|
+
Zn as bindClick,
|
|
1535
|
+
_ as bindDomEvent,
|
|
1536
|
+
no as bindDoubleClick,
|
|
1537
|
+
oo as bindInputDebounce,
|
|
1538
|
+
to as bindKeyDown,
|
|
1539
|
+
eo as bindKeyUp,
|
|
1540
|
+
So as bindNodeMove,
|
|
1541
|
+
ro as bindStorageEvent,
|
|
1542
|
+
Ne as blobToBase64,
|
|
1543
|
+
J as blobToDataUri,
|
|
1544
|
+
Ho as buildHtmlHidden,
|
|
1545
|
+
Ao as buildStyleVars,
|
|
1546
|
+
Dr as calcRemainingMSecs,
|
|
1547
|
+
Tn as camelCase,
|
|
1548
|
+
Ge as cancelScrollAnimation,
|
|
1549
|
+
Se as capitalize,
|
|
1550
|
+
Et as clamp01,
|
|
1551
|
+
dt as cleanNull,
|
|
1552
|
+
yt as convertMinutesToTimezoneOffsetStr,
|
|
1553
|
+
_r as countDown,
|
|
1554
|
+
To as createDomByHtml,
|
|
1555
|
+
ko as cssSelectorEscape,
|
|
1556
|
+
Mn as cutString,
|
|
1557
|
+
Yn as debounce,
|
|
1558
|
+
Fo as decodeHTMLEntities,
|
|
1559
|
+
ne as deepClone,
|
|
1560
|
+
F as deleteCookie,
|
|
1561
|
+
Bn as deleteCookieAllPaths,
|
|
1562
|
+
ln as detectLanguage,
|
|
1563
|
+
vn as detectedPrecision,
|
|
1564
|
+
yn as digitCount,
|
|
1565
|
+
Ye as disabled,
|
|
1566
|
+
Qn as dispatchEvent,
|
|
1567
|
+
Io as downloadFile,
|
|
1568
|
+
jt as easeInBack,
|
|
1569
|
+
Vt as easeInBounce,
|
|
1570
|
+
$t as easeInCirc,
|
|
1571
|
+
St as easeInCubic,
|
|
1572
|
+
Wt as easeInElastic,
|
|
1573
|
+
Ft as easeInExpo,
|
|
1574
|
+
zt as easeInOutBack,
|
|
1575
|
+
Qt as easeInOutBounce,
|
|
1576
|
+
Yt as easeInOutCirc,
|
|
1577
|
+
ye as easeInOutCubic,
|
|
1578
|
+
Kt as easeInOutElastic,
|
|
1579
|
+
Bt as easeInOutExpo,
|
|
1580
|
+
At as easeInOutQuad,
|
|
1581
|
+
It as easeInOutQuart,
|
|
1582
|
+
Lt as easeInOutQuint,
|
|
1583
|
+
Pt as easeInOutSine,
|
|
1584
|
+
bt as easeInQuad,
|
|
1585
|
+
_t as easeInQuart,
|
|
1586
|
+
Dt as easeInQuint,
|
|
1587
|
+
Rt as easeInSine,
|
|
1588
|
+
qt as easeOutBack,
|
|
1589
|
+
$ as easeOutBounce,
|
|
1590
|
+
Ut as easeOutCirc,
|
|
1591
|
+
Ct as easeOutCubic,
|
|
1592
|
+
Gt as easeOutElastic,
|
|
1593
|
+
Ht as easeOutExpo,
|
|
1594
|
+
Tt as easeOutQuad,
|
|
1595
|
+
Ot as easeOutQuart,
|
|
1596
|
+
Nt as easeOutQuint,
|
|
1597
|
+
kt as easeOutSine,
|
|
1598
|
+
Mt as easeValue,
|
|
1599
|
+
je as enabled,
|
|
1600
|
+
Me as enterFullScreen,
|
|
1601
|
+
Po as entityToString,
|
|
1602
|
+
ee as escapeAttr,
|
|
1603
|
+
Ve as escapeHtml,
|
|
1604
|
+
Xn as eventDelegate,
|
|
1605
|
+
be as exitFullScreen,
|
|
1606
|
+
bn as extract,
|
|
1607
|
+
Oo as fileToBase64DataUri,
|
|
1608
|
+
se as findAll,
|
|
1596
1609
|
b as findOne,
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1610
|
+
bo as fixBaseUrl,
|
|
1611
|
+
Ce as floatVal,
|
|
1612
|
+
he as formatDate,
|
|
1613
|
+
Ln as formatSize,
|
|
1614
|
+
We as getBoundingClientRect,
|
|
1615
|
+
Hn as getCookie,
|
|
1616
|
+
yo as getDomDimension,
|
|
1617
|
+
Jo as getJson,
|
|
1618
|
+
fo as getNodeXPath,
|
|
1619
|
+
vt as getTimezoneOffsetMinutes,
|
|
1620
|
+
Nr as getTimezoneOffsetStr,
|
|
1621
|
+
Cn as getUTF8StrLen,
|
|
1622
|
+
Lr as getWeekNumber,
|
|
1623
|
+
ke as guid,
|
|
1624
|
+
ao as hide,
|
|
1625
|
+
Yo as highlightText,
|
|
1626
|
+
Lo as html2Text,
|
|
1627
|
+
jo as imgToBase64,
|
|
1628
|
+
ze as insertStyleSheet,
|
|
1629
|
+
ut as isBodyInit,
|
|
1630
|
+
Nn as isChinese,
|
|
1631
|
+
er as isEmptyObject,
|
|
1632
|
+
pn as isFirefox,
|
|
1633
|
+
wo as isFocusable,
|
|
1634
|
+
Wn as isFunction,
|
|
1635
|
+
Te as isInFullScreen,
|
|
1636
|
+
Gn as isJSON,
|
|
1637
|
+
qn as isJson,
|
|
1638
|
+
an as isLandscape,
|
|
1639
|
+
N as isNumberic,
|
|
1640
|
+
zn as isObject,
|
|
1641
|
+
sn as isPortrait,
|
|
1642
|
+
jn as isPromise,
|
|
1643
|
+
Pe as isUrl,
|
|
1644
|
+
An as kebabCase,
|
|
1645
|
+
ho as keepRectInContainer,
|
|
1646
|
+
ve as lerp,
|
|
1647
|
+
wn as limit,
|
|
1648
|
+
xe as linear,
|
|
1649
|
+
xo as loadCss,
|
|
1650
|
+
vo as loadScript,
|
|
1651
|
+
po as lockElementInteraction,
|
|
1652
|
+
$o as markdown2Html,
|
|
1653
|
+
Wo as md5,
|
|
1654
|
+
dn as mmToPt,
|
|
1655
|
+
fn as mmToPx,
|
|
1656
|
+
mn as mmToTwip,
|
|
1657
|
+
Or as msToHMS,
|
|
1658
|
+
qe as mutationEffective,
|
|
1659
|
+
uo as nodeIndex,
|
|
1660
|
+
de as objToQuery,
|
|
1661
|
+
nr as objectEntries,
|
|
1662
|
+
or as objectFromEntries,
|
|
1663
|
+
ir as objectGet,
|
|
1664
|
+
tr as objectKeyReplace,
|
|
1665
|
+
mt as objectMerge,
|
|
1666
|
+
ar as objectSet,
|
|
1667
|
+
rr as objectSwitchKV,
|
|
1668
|
+
Ue as offEvent,
|
|
1669
|
+
Jn as onDocReady,
|
|
1670
|
+
mo as onDomTreeChange,
|
|
1671
|
+
$e as onEvent,
|
|
1672
|
+
Vn as onEvents,
|
|
1673
|
+
lo as onHover,
|
|
1674
|
+
U as parseUnit,
|
|
1675
|
+
Zo as postFiles,
|
|
1676
|
+
Xo as postJson,
|
|
1677
|
+
Mo as precisionToStep,
|
|
1678
|
+
Kn as printStack,
|
|
1679
|
+
hn as ptToMm,
|
|
1680
|
+
gn as pxToMm,
|
|
1681
|
+
at as queryReplace,
|
|
1682
|
+
me as queryToObj,
|
|
1683
|
+
xn as randomInt,
|
|
1684
|
+
Ie as randomString,
|
|
1685
|
+
_n as randomWords,
|
|
1686
|
+
go as rectAssoc,
|
|
1687
|
+
Eo as rectInLayout,
|
|
1688
|
+
Y as regQuote,
|
|
1689
|
+
co as remove,
|
|
1690
|
+
G as request,
|
|
1691
|
+
Ae as round,
|
|
1692
|
+
_o as sanitizeFileName,
|
|
1693
|
+
Co as scrollToAnimated,
|
|
1694
|
+
Fn as setCookie,
|
|
1695
|
+
so as show,
|
|
1696
|
+
zo as srcToBase64,
|
|
1697
|
+
Dn as strChunk,
|
|
1698
|
+
On as strToPascalCase,
|
|
1699
|
+
Uo as stringToEntity,
|
|
1700
|
+
En as stripSlashes,
|
|
1701
|
+
Xe as svgGetDimension,
|
|
1702
|
+
Je as svgToImg,
|
|
1703
|
+
qo as svgToImgData,
|
|
1704
|
+
Qe as svgToSrc,
|
|
1705
|
+
Ro as text2Html,
|
|
1706
|
+
$n as throttle,
|
|
1707
|
+
Un as throttleEffect,
|
|
1708
|
+
Ir as timestampToDateTimeLocal,
|
|
1709
|
+
ae as toggleDisabled,
|
|
1710
|
+
cn as toggleFullScreen,
|
|
1711
|
+
io as triggerDomEvent,
|
|
1712
|
+
In as trim,
|
|
1713
|
+
Sn as truncate,
|
|
1714
|
+
Bo as unescapeHtml,
|
|
1715
|
+
K as unitConvert,
|
|
1716
|
+
Z as urlB64DataCache,
|
|
1717
|
+
_e as utf8Decode,
|
|
1718
|
+
ie as utf8Encode
|
|
1706
1719
|
};
|
|
1707
1720
|
//# sourceMappingURL=minutool.js.map
|