ljs-tools 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.css +1 -1
- package/index.js +68 -67
- package/index.umd.cjs +6 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3,13 +3,13 @@ var pl = (e, n, r) => n in e ? hl(e, n, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var g0 = (e, n, r) => (pl(e, typeof n != "symbol" ? n + "" : n, r), r);
|
|
4
4
|
import { getCurrentInstance as ht, inject as Ve, ref as he, computed as j, unref as N, shallowRef as B0, watchEffect as ja, readonly as vl, getCurrentScope as ml, onScopeDispose as Ga, onMounted as Et, nextTick as Ne, watch as qe, isRef as Xa, warn as gl, provide as Kr, defineComponent as me, openBlock as q, createElementBlock as J, mergeProps as F0, renderSlot as Le, createElementVNode as ee, toRef as dn, onUnmounted as yl, useAttrs as bl, useSlots as Za, normalizeClass as ne, normalizeStyle as Pe, createCommentVNode as ue, Fragment as ft, createBlock as xe, withCtx as ve, resolveDynamicComponent as Je, withModifiers as E0, createVNode as Ie, toDisplayString as be, onBeforeUnmount as P0, Text as Cl, reactive as Ja, h as El, markRaw as xn, toRefs as _l, resolveComponent as je, Transition as Wr, withDirectives as Un, withKeys as j0, createTextVNode as on, vShow as Yn, isVNode as Qa, render as eo, Teleport as to, renderList as En, pushScopeId as jr, popScopeId as Gr } from "vue";
|
|
5
5
|
const Bl = () => {
|
|
6
|
-
|
|
6
|
+
ae.colorLog({ content: ["", "******************************************"] }), ae.colorLog({ content: ["Core Dependencies:", "ljs-tools"] }), ae.colorLog({ content: ["Author:", "LJS"] }), ae.colorLog({ content: ["API", "https://ljs-y.github.io/ljs-vue3"], color: [
|
|
7
7
|
"background: #666666; color: #fff; border-radius: 4px 0 0 4px; padding: 3px 6px;",
|
|
8
8
|
"background: #FFF; border: 1px solid #666666; color: #fff; border-radius: 0 4px 4px 0; padding: 2px 6px;"
|
|
9
|
-
] }),
|
|
9
|
+
] }), ae.colorLog({ content: ["", "******************************************"] });
|
|
10
10
|
};
|
|
11
11
|
function Xr(e) {
|
|
12
|
-
if (
|
|
12
|
+
if (ae.fieldCheck(e))
|
|
13
13
|
return null;
|
|
14
14
|
const n = {};
|
|
15
15
|
let r = e.split("?");
|
|
@@ -30,13 +30,13 @@ function wl(e, n = location.search) {
|
|
|
30
30
|
return e in t ? t[e] : null;
|
|
31
31
|
}
|
|
32
32
|
function Dl(e, n = !0) {
|
|
33
|
-
if (
|
|
33
|
+
if (ae.fieldCheck(e))
|
|
34
34
|
return null;
|
|
35
35
|
let r = e.lastIndexOf(".");
|
|
36
36
|
return r === -1 ? null : (r = n ? r : r + 1, e.slice(r, e.length));
|
|
37
37
|
}
|
|
38
38
|
function Fl(e, n = !1) {
|
|
39
|
-
if (
|
|
39
|
+
if (ae.fieldCheck(e))
|
|
40
40
|
return null;
|
|
41
41
|
const r = e.lastIndexOf("/"), t = e.lastIndexOf("\\");
|
|
42
42
|
let i = r > t ? r : t;
|
|
@@ -229,7 +229,7 @@ function Ll(e, n) {
|
|
|
229
229
|
t[i] = r[i];
|
|
230
230
|
return t;
|
|
231
231
|
}
|
|
232
|
-
const
|
|
232
|
+
const ae = {
|
|
233
233
|
fieldCheck: Tl,
|
|
234
234
|
deepCopy: A0,
|
|
235
235
|
getTreeParents: oo,
|
|
@@ -251,7 +251,7 @@ function Hl(e) {
|
|
|
251
251
|
r.address = t, e.commit("SET_menuNowOpen", r), e.commit("SET_menuOpenList", [r]);
|
|
252
252
|
}
|
|
253
253
|
function lo({ data: e, value: n, key: r = "url" }) {
|
|
254
|
-
const t =
|
|
254
|
+
const t = ae.getTreeParents({ data: e, value: n, key: r }), i = [];
|
|
255
255
|
return t.forEach((a) => {
|
|
256
256
|
const o = {
|
|
257
257
|
title: a.title,
|
|
@@ -267,11 +267,11 @@ function co({ menuList: e }) {
|
|
|
267
267
|
return {};
|
|
268
268
|
let n = {};
|
|
269
269
|
return e.forEach((r, t) => {
|
|
270
|
-
t === 0 && (!
|
|
270
|
+
t === 0 && (!ae.fieldCheck(r.children) && r.children.length > 0 ? (r.open = !0, n = co({ menuList: r.children })) : n = r);
|
|
271
271
|
}), n;
|
|
272
272
|
}
|
|
273
273
|
function $l({ store: e, path: n }) {
|
|
274
|
-
const r = e.getters.menuList, t =
|
|
274
|
+
const r = e.getters.menuList, t = ae.handleTreeList(r), i = t.length;
|
|
275
275
|
for (let a = 0; a < i; a++) {
|
|
276
276
|
const o = t[a];
|
|
277
277
|
if (o.url === n)
|
|
@@ -284,11 +284,11 @@ function Nl({ store: e, run: n, path: r, query: t = {} }) {
|
|
|
284
284
|
}
|
|
285
285
|
function uo({ store: e, run: n, menuObj: r, query: t }) {
|
|
286
286
|
let i = e.getters.menuList;
|
|
287
|
-
if (
|
|
287
|
+
if (ae.fieldCheck(r.children) && (r.children = []), r.children.length > 0) {
|
|
288
288
|
if (r.open)
|
|
289
289
|
r.open = !r.open;
|
|
290
290
|
else {
|
|
291
|
-
const a =
|
|
291
|
+
const a = ae.getTreeParents({
|
|
292
292
|
data: i,
|
|
293
293
|
value: r.menuId,
|
|
294
294
|
key: "menuId"
|
|
@@ -297,7 +297,7 @@ function uo({ store: e, run: n, menuObj: r, query: t }) {
|
|
|
297
297
|
}
|
|
298
298
|
e.commit("SET_menuList", i);
|
|
299
299
|
} else {
|
|
300
|
-
if (!
|
|
300
|
+
if (!ae.fieldCheck(r.isFrame) && r.isFrame === !0) {
|
|
301
301
|
fo(r.url);
|
|
302
302
|
return;
|
|
303
303
|
}
|
|
@@ -307,7 +307,7 @@ function uo({ store: e, run: n, menuObj: r, query: t }) {
|
|
|
307
307
|
return;
|
|
308
308
|
r.address = lo({ data: e.getters.menuList, value: r.url });
|
|
309
309
|
let l = r;
|
|
310
|
-
if (r.choose = !r.choose, e.commit("SET_menuNowOpen", l),
|
|
310
|
+
if (r.choose = !r.choose, e.commit("SET_menuNowOpen", l), ae.fieldCheck(r.openType) || !ae.fieldCheck(r.openType) && r.openType === "1") {
|
|
311
311
|
const c = o.length;
|
|
312
312
|
let s = !1;
|
|
313
313
|
for (let f = 0; f < c; f++)
|
|
@@ -371,26 +371,27 @@ function Ul(e) {
|
|
|
371
371
|
function Yl({
|
|
372
372
|
value: e,
|
|
373
373
|
ws: n = 0,
|
|
374
|
-
|
|
375
|
-
isMerge: t = !0
|
|
374
|
+
dws: r = ["", "万", "亿", "万亿"],
|
|
375
|
+
isMerge: t = !0,
|
|
376
|
+
numeralSystem: i = 1e4
|
|
376
377
|
}) {
|
|
377
378
|
if (f0(e)) {
|
|
378
|
-
let
|
|
379
|
-
const
|
|
380
|
-
let
|
|
381
|
-
if (
|
|
382
|
-
|
|
383
|
-
else if (
|
|
384
|
-
let
|
|
385
|
-
|
|
386
|
-
} else if (
|
|
387
|
-
let
|
|
388
|
-
|
|
379
|
+
let a = "";
|
|
380
|
+
const o = Number(e) < 0 ? -1 : 1, l = Math.abs(Number(e));
|
|
381
|
+
let c = 0;
|
|
382
|
+
if (l < i)
|
|
383
|
+
a = o * Number(l.toFixed(n)), c = 0;
|
|
384
|
+
else if (l >= i && l < i * i) {
|
|
385
|
+
let s = l / i + sn;
|
|
386
|
+
s = Number(s.toFixed(n)), s < i ? (a = o * s, c = 1) : (a = o * s / i, c = 2);
|
|
387
|
+
} else if (l >= i * i && l < i * i * i) {
|
|
388
|
+
let s = l / (i * i) + sn;
|
|
389
|
+
s = Number(s.toFixed(n)), s < i ? (a = o * s, c = 2) : (a = o * s / i, c = 3);
|
|
389
390
|
} else
|
|
390
|
-
|
|
391
|
-
return t ?
|
|
392
|
-
num:
|
|
393
|
-
unit: r[
|
|
391
|
+
l >= i * i * i && (a = o * (l / (i * i * i) + sn).toFixed(n), c = 3);
|
|
392
|
+
return t ? a + (ae.fieldCheck(r[c]) ? r[r.length - 1] : r[c]) : {
|
|
393
|
+
num: a,
|
|
394
|
+
unit: ae.fieldCheck(r[c]) ? r[r.length - 1] : r[c]
|
|
394
395
|
};
|
|
395
396
|
}
|
|
396
397
|
return e;
|
|
@@ -418,7 +419,7 @@ const de = {
|
|
|
418
419
|
averageNum: Kl
|
|
419
420
|
};
|
|
420
421
|
function ye(e, n) {
|
|
421
|
-
if (
|
|
422
|
+
if (ae.fieldCheck(e))
|
|
422
423
|
return e;
|
|
423
424
|
const r = new Date(e), t = n || "{y}-{m}-{d} {h}:{i}:{s}", i = {
|
|
424
425
|
y: r.getFullYear(),
|
|
@@ -432,7 +433,7 @@ function ye(e, n) {
|
|
|
432
433
|
return t.replace(/{(y|m|d|h|i|s|MS)+}/g, (a, o) => i[o]);
|
|
433
434
|
}
|
|
434
435
|
function Wl(e, n, r = 0) {
|
|
435
|
-
if (
|
|
436
|
+
if (ae.fieldCheck(e))
|
|
436
437
|
return e;
|
|
437
438
|
if (r === 0) {
|
|
438
439
|
let t = new Date(e).getTime();
|
|
@@ -1746,8 +1747,8 @@ function Jt() {
|
|
|
1746
1747
|
var b = y + _, C = p[b];
|
|
1747
1748
|
p[b] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360;
|
|
1748
1749
|
}
|
|
1749
|
-
var E = this._hash.words, T = p[y + 0], A = p[y + 1], S = p[y + 2], k = p[y + 3], L = p[y + 4], F = p[y + 5], B = p[y + 6], I = p[y + 7], P = p[y + 8], W = p[y + 9], G = p[y + 10], Y = p[y + 11], X = p[y + 12], Z = p[y + 13],
|
|
1750
|
-
M = v(M, O, $, z, T, 7, s[0]), z = v(z, M, O, $, A, 12, s[1]), $ = v($, z, M, O, S, 17, s[2]), O = v(O, $, z, M, k, 22, s[3]), M = v(M, O, $, z, L, 7, s[4]), z = v(z, M, O, $, F, 12, s[5]), $ = v($, z, M, O, B, 17, s[6]), O = v(O, $, z, M, I, 22, s[7]), M = v(M, O, $, z, P, 7, s[8]), z = v(z, M, O, $, W, 12, s[9]), $ = v($, z, M, O, G, 17, s[10]), O = v(O, $, z, M, Y, 22, s[11]), M = v(M, O, $, z, X, 7, s[12]), z = v(z, M, O, $, Z, 12, s[13]), $ = v($, z, M, O,
|
|
1750
|
+
var E = this._hash.words, T = p[y + 0], A = p[y + 1], S = p[y + 2], k = p[y + 3], L = p[y + 4], F = p[y + 5], B = p[y + 6], I = p[y + 7], P = p[y + 8], W = p[y + 9], G = p[y + 10], Y = p[y + 11], X = p[y + 12], Z = p[y + 13], oe = p[y + 14], ie = p[y + 15], M = E[0], O = E[1], $ = E[2], z = E[3];
|
|
1751
|
+
M = v(M, O, $, z, T, 7, s[0]), z = v(z, M, O, $, A, 12, s[1]), $ = v($, z, M, O, S, 17, s[2]), O = v(O, $, z, M, k, 22, s[3]), M = v(M, O, $, z, L, 7, s[4]), z = v(z, M, O, $, F, 12, s[5]), $ = v($, z, M, O, B, 17, s[6]), O = v(O, $, z, M, I, 22, s[7]), M = v(M, O, $, z, P, 7, s[8]), z = v(z, M, O, $, W, 12, s[9]), $ = v($, z, M, O, G, 17, s[10]), O = v(O, $, z, M, Y, 22, s[11]), M = v(M, O, $, z, X, 7, s[12]), z = v(z, M, O, $, Z, 12, s[13]), $ = v($, z, M, O, oe, 17, s[14]), O = v(O, $, z, M, ie, 22, s[15]), M = h(M, O, $, z, A, 5, s[16]), z = h(z, M, O, $, B, 9, s[17]), $ = h($, z, M, O, Y, 14, s[18]), O = h(O, $, z, M, T, 20, s[19]), M = h(M, O, $, z, F, 5, s[20]), z = h(z, M, O, $, G, 9, s[21]), $ = h($, z, M, O, ie, 14, s[22]), O = h(O, $, z, M, L, 20, s[23]), M = h(M, O, $, z, W, 5, s[24]), z = h(z, M, O, $, oe, 9, s[25]), $ = h($, z, M, O, k, 14, s[26]), O = h(O, $, z, M, P, 20, s[27]), M = h(M, O, $, z, Z, 5, s[28]), z = h(z, M, O, $, S, 9, s[29]), $ = h($, z, M, O, I, 14, s[30]), O = h(O, $, z, M, X, 20, s[31]), M = g(M, O, $, z, F, 4, s[32]), z = g(z, M, O, $, P, 11, s[33]), $ = g($, z, M, O, Y, 16, s[34]), O = g(O, $, z, M, oe, 23, s[35]), M = g(M, O, $, z, A, 4, s[36]), z = g(z, M, O, $, L, 11, s[37]), $ = g($, z, M, O, I, 16, s[38]), O = g(O, $, z, M, G, 23, s[39]), M = g(M, O, $, z, Z, 4, s[40]), z = g(z, M, O, $, T, 11, s[41]), $ = g($, z, M, O, k, 16, s[42]), O = g(O, $, z, M, B, 23, s[43]), M = g(M, O, $, z, W, 4, s[44]), z = g(z, M, O, $, X, 11, s[45]), $ = g($, z, M, O, ie, 16, s[46]), O = g(O, $, z, M, S, 23, s[47]), M = d(M, O, $, z, T, 6, s[48]), z = d(z, M, O, $, I, 10, s[49]), $ = d($, z, M, O, oe, 15, s[50]), O = d(O, $, z, M, F, 21, s[51]), M = d(M, O, $, z, X, 6, s[52]), z = d(z, M, O, $, k, 10, s[53]), $ = d($, z, M, O, G, 15, s[54]), O = d(O, $, z, M, A, 21, s[55]), M = d(M, O, $, z, P, 6, s[56]), z = d(z, M, O, $, ie, 10, s[57]), $ = d($, z, M, O, B, 15, s[58]), O = d(O, $, z, M, Z, 21, s[59]), M = d(M, O, $, z, L, 6, s[60]), z = d(z, M, O, $, Y, 10, s[61]), $ = d($, z, M, O, S, 15, s[62]), O = d(O, $, z, M, W, 21, s[63]), E[0] = E[0] + M | 0, E[1] = E[1] + O | 0, E[2] = E[2] + $ | 0, E[3] = E[3] + z | 0;
|
|
1751
1752
|
},
|
|
1752
1753
|
_doFinalize: function() {
|
|
1753
1754
|
var p = this._data, y = p.words, _ = this._nDataBytes * 8, b = p.sigBytes * 8;
|
|
@@ -2023,7 +2024,7 @@ function go() {
|
|
|
2023
2024
|
]);
|
|
2024
2025
|
},
|
|
2025
2026
|
_doProcessBlock: function(d, p) {
|
|
2026
|
-
for (var y = this._hash.words, _ = y[0], b = y[1], C = y[2], E = y[3], T = y[4], A = y[5], S = y[6], k = y[7], L = _.high, F = _.low, B = b.high, I = b.low, P = C.high, W = C.low, G = E.high, Y = E.low, X = T.high, Z = T.low,
|
|
2027
|
+
for (var y = this._hash.words, _ = y[0], b = y[1], C = y[2], E = y[3], T = y[4], A = y[5], S = y[6], k = y[7], L = _.high, F = _.low, B = b.high, I = b.low, P = C.high, W = C.low, G = E.high, Y = E.low, X = T.high, Z = T.low, oe = A.high, ie = A.low, M = S.high, O = S.low, $ = k.high, z = k.low, fe = L, le = F, we = B, te = I, ge = P, Ge = W, Bt = G, ot = Y, Ae = X, Ce = Z, pt = oe, vt = ie, wt = M, mt = O, Nt = $, gt = z, Te = 0; Te < 80; Te++) {
|
|
2027
2028
|
var Se, Ue, V = h[Te];
|
|
2028
2029
|
if (Te < 16)
|
|
2029
2030
|
Ue = V.high = d[p + Te * 2] | 0, Se = V.low = d[p + Te * 2 + 1] | 0;
|
|
@@ -2034,7 +2035,7 @@ function go() {
|
|
|
2034
2035
|
var Pn = Ae & pt ^ ~Ae & wt, $0 = Ce & vt ^ ~Ce & mt, Mn = fe & we ^ fe & ge ^ we & ge, Rn = le & te ^ le & Ge ^ te & Ge, On = (fe >>> 28 | le << 4) ^ (fe << 30 | le >>> 2) ^ (fe << 25 | le >>> 7), N0 = (le >>> 28 | fe << 4) ^ (le << 30 | fe >>> 2) ^ (le << 25 | fe >>> 7), zn = (Ae >>> 14 | Ce << 18) ^ (Ae >>> 18 | Ce << 14) ^ (Ae << 23 | Ce >>> 9), Ln = (Ce >>> 14 | Ae << 18) ^ (Ce >>> 18 | Ae << 14) ^ (Ce << 23 | Ae >>> 9), V0 = v[Te], Hn = V0.high, q0 = V0.low, Re = gt + Ln, lt = Nt + zn + (Re >>> 0 < gt >>> 0 ? 1 : 0), Re = Re + $0, lt = lt + Pn + (Re >>> 0 < $0 >>> 0 ? 1 : 0), Re = Re + q0, lt = lt + Hn + (Re >>> 0 < q0 >>> 0 ? 1 : 0), Re = Re + Se, lt = lt + Ue + (Re >>> 0 < Se >>> 0 ? 1 : 0), U0 = N0 + Rn, $n = On + Mn + (U0 >>> 0 < N0 >>> 0 ? 1 : 0);
|
|
2035
2036
|
Nt = wt, gt = mt, wt = pt, mt = vt, pt = Ae, vt = Ce, Ce = ot + Re | 0, Ae = Bt + lt + (Ce >>> 0 < ot >>> 0 ? 1 : 0) | 0, Bt = ge, ot = Ge, ge = we, Ge = te, we = fe, te = le, le = Re + U0 | 0, fe = lt + $n + (le >>> 0 < Re >>> 0 ? 1 : 0) | 0;
|
|
2036
2037
|
}
|
|
2037
|
-
F = _.low = F + le, _.high = L + fe + (F >>> 0 < le >>> 0 ? 1 : 0), I = b.low = I + te, b.high = B + we + (I >>> 0 < te >>> 0 ? 1 : 0), W = C.low = W + Ge, C.high = P + ge + (W >>> 0 < Ge >>> 0 ? 1 : 0), Y = E.low = Y + ot, E.high = G + Bt + (Y >>> 0 < ot >>> 0 ? 1 : 0), Z = T.low = Z + Ce, T.high = X + Ae + (Z >>> 0 < Ce >>> 0 ? 1 : 0), ie = A.low = ie + vt, A.high =
|
|
2038
|
+
F = _.low = F + le, _.high = L + fe + (F >>> 0 < le >>> 0 ? 1 : 0), I = b.low = I + te, b.high = B + we + (I >>> 0 < te >>> 0 ? 1 : 0), W = C.low = W + Ge, C.high = P + ge + (W >>> 0 < Ge >>> 0 ? 1 : 0), Y = E.low = Y + ot, E.high = G + Bt + (Y >>> 0 < ot >>> 0 ? 1 : 0), Z = T.low = Z + Ce, T.high = X + Ae + (Z >>> 0 < Ce >>> 0 ? 1 : 0), ie = A.low = ie + vt, A.high = oe + pt + (ie >>> 0 < vt >>> 0 ? 1 : 0), O = S.low = O + mt, S.high = M + wt + (O >>> 0 < mt >>> 0 ? 1 : 0), z = k.low = z + gt, k.high = $ + Nt + (z >>> 0 < gt >>> 0 ? 1 : 0);
|
|
2038
2039
|
},
|
|
2039
2040
|
_doFinalize: function() {
|
|
2040
2041
|
var d = this._data, p = d.words, y = this._nDataBytes * 8, _ = d.sigBytes * 8;
|
|
@@ -2155,8 +2156,8 @@ function mc() {
|
|
|
2155
2156
|
S.high ^= F, S.low ^= B;
|
|
2156
2157
|
}
|
|
2157
2158
|
for (var Z = 1; Z < 25; Z++) {
|
|
2158
|
-
var F, B, S = b[Z],
|
|
2159
|
-
M < 32 ? (F =
|
|
2159
|
+
var F, B, S = b[Z], oe = S.high, ie = S.low, M = v[Z];
|
|
2160
|
+
M < 32 ? (F = oe << M | ie >>> 32 - M, B = ie << M | oe >>> 32 - M) : (F = ie << M - 32 | oe >>> 64 - M, B = oe << M - 32 | ie >>> 64 - M);
|
|
2160
2161
|
var O = d[h[Z]];
|
|
2161
2162
|
O.high = F, O.low = B;
|
|
2162
2163
|
}
|
|
@@ -2543,11 +2544,11 @@ function gc() {
|
|
|
2543
2544
|
var L = S + k, F = A[L];
|
|
2544
2545
|
A[L] = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360;
|
|
2545
2546
|
}
|
|
2546
|
-
var B = this._hash.words, I = g.words, P = d.words, W = s.words, G = f.words, Y = v.words, X = h.words, Z,
|
|
2547
|
-
$ = Z = B[0], z =
|
|
2547
|
+
var B = this._hash.words, I = g.words, P = d.words, W = s.words, G = f.words, Y = v.words, X = h.words, Z, oe, ie, M, O, $, z, fe, le, we;
|
|
2548
|
+
$ = Z = B[0], z = oe = B[1], fe = ie = B[2], le = M = B[3], we = O = B[4];
|
|
2548
2549
|
for (var te, k = 0; k < 80; k += 1)
|
|
2549
|
-
te = Z + A[S + W[k]] | 0, k < 16 ? te += y(
|
|
2550
|
-
te = B[1] + ie + le | 0, B[1] = B[2] + M + we | 0, B[2] = B[3] + O + $ | 0, B[3] = B[4] + Z + z | 0, B[4] = B[0] +
|
|
2550
|
+
te = Z + A[S + W[k]] | 0, k < 16 ? te += y(oe, ie, M) + I[0] : k < 32 ? te += _(oe, ie, M) + I[1] : k < 48 ? te += b(oe, ie, M) + I[2] : k < 64 ? te += C(oe, ie, M) + I[3] : te += E(oe, ie, M) + I[4], te = te | 0, te = T(te, Y[k]), te = te + O | 0, Z = O, O = M, M = T(ie, 10), ie = oe, oe = te, te = $ + A[S + G[k]] | 0, k < 16 ? te += E(z, fe, le) + P[0] : k < 32 ? te += C(z, fe, le) + P[1] : k < 48 ? te += b(z, fe, le) + P[2] : k < 64 ? te += _(z, fe, le) + P[3] : te += y(z, fe, le) + P[4], te = te | 0, te = T(te, X[k]), te = te + we | 0, $ = we, we = le, le = T(fe, 10), fe = z, z = te;
|
|
2551
|
+
te = B[1] + ie + le | 0, B[1] = B[2] + M + we | 0, B[2] = B[3] + O + $ | 0, B[3] = B[4] + Z + z | 0, B[4] = B[0] + oe + fe | 0, B[0] = te;
|
|
2551
2552
|
},
|
|
2552
2553
|
_doFinalize: function() {
|
|
2553
2554
|
var A = this._data, S = A.words, k = this._nDataBytes * 8, L = A.sigBytes * 8;
|
|
@@ -3650,11 +3651,11 @@ function kc() {
|
|
|
3650
3651
|
},
|
|
3651
3652
|
_doCryptBlock: function(C, E, T, A, S, k, L, F) {
|
|
3652
3653
|
for (var B = this._nRounds, I = C[E] ^ T[0], P = C[E + 1] ^ T[1], W = C[E + 2] ^ T[2], G = C[E + 3] ^ T[3], Y = 4, X = 1; X < B; X++) {
|
|
3653
|
-
var Z = A[I >>> 24] ^ S[P >>> 16 & 255] ^ k[W >>> 8 & 255] ^ L[G & 255] ^ T[Y++],
|
|
3654
|
-
I = Z, P =
|
|
3654
|
+
var Z = A[I >>> 24] ^ S[P >>> 16 & 255] ^ k[W >>> 8 & 255] ^ L[G & 255] ^ T[Y++], oe = A[P >>> 24] ^ S[W >>> 16 & 255] ^ k[G >>> 8 & 255] ^ L[I & 255] ^ T[Y++], ie = A[W >>> 24] ^ S[G >>> 16 & 255] ^ k[I >>> 8 & 255] ^ L[P & 255] ^ T[Y++], M = A[G >>> 24] ^ S[I >>> 16 & 255] ^ k[P >>> 8 & 255] ^ L[W & 255] ^ T[Y++];
|
|
3655
|
+
I = Z, P = oe, W = ie, G = M;
|
|
3655
3656
|
}
|
|
3656
|
-
var Z = (F[I >>> 24] << 24 | F[P >>> 16 & 255] << 16 | F[W >>> 8 & 255] << 8 | F[G & 255]) ^ T[Y++],
|
|
3657
|
-
C[E] = Z, C[E + 1] =
|
|
3657
|
+
var Z = (F[I >>> 24] << 24 | F[P >>> 16 & 255] << 16 | F[W >>> 8 & 255] << 8 | F[G & 255]) ^ T[Y++], oe = (F[P >>> 24] << 24 | F[W >>> 16 & 255] << 16 | F[G >>> 8 & 255] << 8 | F[I & 255]) ^ T[Y++], ie = (F[W >>> 24] << 24 | F[G >>> 16 & 255] << 16 | F[I >>> 8 & 255] << 8 | F[P & 255]) ^ T[Y++], M = (F[G >>> 24] << 24 | F[I >>> 16 & 255] << 16 | F[P >>> 8 & 255] << 8 | F[W & 255]) ^ T[Y++];
|
|
3658
|
+
C[E] = Z, C[E + 1] = oe, C[E + 2] = ie, C[E + 3] = M;
|
|
3658
3659
|
},
|
|
3659
3660
|
keySize: 256 / 32
|
|
3660
3661
|
});
|
|
@@ -5974,7 +5975,7 @@ var Co = { exports: {} };
|
|
|
5974
5975
|
x[R + m.t] = m.am(0, w[R], x, R, 0, m.t);
|
|
5975
5976
|
x.s = 0, x.clamp(), this.s != u.s && a.ZERO.subTo(x, x);
|
|
5976
5977
|
}
|
|
5977
|
-
function
|
|
5978
|
+
function oe(u) {
|
|
5978
5979
|
for (var x = this.abs(), m = u.t = 2 * x.t; --m >= 0; )
|
|
5979
5980
|
u[m] = 0;
|
|
5980
5981
|
for (m = 0; m < x.t - 1; ++m) {
|
|
@@ -6089,7 +6090,7 @@ var Co = { exports: {} };
|
|
|
6089
6090
|
var m;
|
|
6090
6091
|
return u < 256 || x.isEven() ? m = new O(x) : m = new ge(x), this.exp(u, m);
|
|
6091
6092
|
}
|
|
6092
|
-
a.prototype.copyTo = b, a.prototype.fromInt = C, a.prototype.fromString = T, a.prototype.clamp = A, a.prototype.dlShiftTo = P, a.prototype.drShiftTo = W, a.prototype.lShiftTo = G, a.prototype.rShiftTo = Y, a.prototype.subTo = X, a.prototype.multiplyTo = Z, a.prototype.squareTo =
|
|
6093
|
+
a.prototype.copyTo = b, a.prototype.fromInt = C, a.prototype.fromString = T, a.prototype.clamp = A, a.prototype.dlShiftTo = P, a.prototype.drShiftTo = W, a.prototype.lShiftTo = G, a.prototype.rShiftTo = Y, a.prototype.subTo = X, a.prototype.multiplyTo = Z, a.prototype.squareTo = oe, a.prototype.divRemTo = ie, a.prototype.invDigit = te, a.prototype.isEven = pt, a.prototype.exp = vt, a.prototype.toString = S, a.prototype.negate = k, a.prototype.abs = L, a.prototype.compareTo = F, a.prototype.bitLength = I, a.prototype.mod = M, a.prototype.modPowInt = wt, a.ZERO = E(0), a.ONE = E(1);
|
|
6093
6094
|
function mt() {
|
|
6094
6095
|
var u = o();
|
|
6095
6096
|
return this.copyTo(u), u;
|
|
@@ -9183,7 +9184,7 @@ const ys = "ElInput", I1 = me({
|
|
|
9183
9184
|
[d.b("group")]: o.prepend || o.append,
|
|
9184
9185
|
[d.m("prefix")]: o.prefix || t.prefixIcon,
|
|
9185
9186
|
[d.m("suffix")]: o.suffix || t.suffixIcon || t.clearable || t.showPassword,
|
|
9186
|
-
[d.bm("suffix", "password-clear")]: Z.value &&
|
|
9187
|
+
[d.bm("suffix", "password-clear")]: Z.value && oe.value,
|
|
9187
9188
|
[d.b("hidden")]: t.type === "hidden"
|
|
9188
9189
|
},
|
|
9189
9190
|
i.class
|
|
@@ -9209,7 +9210,7 @@ const ys = "ElInput", I1 = me({
|
|
|
9209
9210
|
t.inputStyle,
|
|
9210
9211
|
T.value,
|
|
9211
9212
|
{ resize: t.resize }
|
|
9212
|
-
]), X = j(() => jo(t.modelValue) ? "" : String(t.modelValue)), Z = j(() => t.clearable && !g.value && !t.readonly && !!X.value && (k.value || b.value)),
|
|
9213
|
+
]), X = j(() => jo(t.modelValue) ? "" : String(t.modelValue)), Z = j(() => t.clearable && !g.value && !t.readonly && !!X.value && (k.value || b.value)), oe = j(() => t.showPassword && !g.value && !!X.value && (!!X.value || k.value)), ie = j(() => t.showWordLimit && !!t.maxlength && (t.type === "text" || t.type === "textarea") && !g.value && !t.readonly && !t.showPassword), M = j(() => X.value.length), O = j(() => !!ie.value && M.value > Number(t.maxlength)), $ = j(() => !!o.suffix || !!t.suffixIcon || Z.value || t.showPassword || ie.value || !!I.value && B.value), [z, fe] = k1(y);
|
|
9213
9214
|
bx(_, (V) => {
|
|
9214
9215
|
if (te(), !ie.value || t.resize !== "both")
|
|
9215
9216
|
return;
|
|
@@ -9381,7 +9382,7 @@ const ys = "ElInput", I1 = me({
|
|
|
9381
9382
|
ee("span", {
|
|
9382
9383
|
class: ne(N(d).e("suffix-inner"))
|
|
9383
9384
|
}, [
|
|
9384
|
-
!N(Z) || !N(
|
|
9385
|
+
!N(Z) || !N(oe) || !N(ie) ? (q(), J(ft, { key: 0 }, [
|
|
9385
9386
|
Le(V.$slots, "suffix"),
|
|
9386
9387
|
V.suffixIcon ? (q(), xe(N(Pt), {
|
|
9387
9388
|
key: 0,
|
|
@@ -9404,7 +9405,7 @@ const ys = "ElInput", I1 = me({
|
|
|
9404
9405
|
]),
|
|
9405
9406
|
_: 1
|
|
9406
9407
|
}, 8, ["class", "onMousedown"])) : ue("v-if", !0),
|
|
9407
|
-
N(
|
|
9408
|
+
N(oe) ? (q(), xe(N(Pt), {
|
|
9408
9409
|
key: 2,
|
|
9409
9410
|
class: ne([N(d).e("icon"), N(d).e("password")]),
|
|
9410
9411
|
onClick: vt
|
|
@@ -10749,8 +10750,8 @@ const Ah = Fh, Th = (e, n, r, t) => {
|
|
|
10749
10750
|
}, { immediate: !0 }), qe(() => c.value, (Y) => {
|
|
10750
10751
|
var X, Z;
|
|
10751
10752
|
Y && (e.boxType !== "prompt" && (s.autofocus ? _.value = (Z = (X = C.value) == null ? void 0 : X.$el) != null ? Z : p.value : _.value = p.value), s.zIndex = l()), e.boxType === "prompt" && (Y ? Ne().then(() => {
|
|
10752
|
-
var
|
|
10753
|
-
b.value && b.value.$el && (s.autofocus ? _.value = (
|
|
10753
|
+
var oe;
|
|
10754
|
+
b.value && b.value.$el && (s.autofocus ? _.value = (oe = P()) != null ? oe : p.value : _.value = p.value);
|
|
10754
10755
|
}) : (s.editorErrorMessage = "", s.validateError = !1));
|
|
10755
10756
|
});
|
|
10756
10757
|
const T = j(() => e.draggable), A = j(() => e.overflow);
|
|
@@ -11171,7 +11172,7 @@ hi.set = (e, n, r, t = 500) => {
|
|
|
11171
11172
|
};
|
|
11172
11173
|
};
|
|
11173
11174
|
function Kh(e) {
|
|
11174
|
-
if (
|
|
11175
|
+
if (ae.fieldCheck(e))
|
|
11175
11176
|
return e;
|
|
11176
11177
|
const n = e.length;
|
|
11177
11178
|
if (n === 2)
|
|
@@ -11183,7 +11184,7 @@ function Kh(e) {
|
|
|
11183
11184
|
return e;
|
|
11184
11185
|
}
|
|
11185
11186
|
function Wh(e, n = 4) {
|
|
11186
|
-
if (
|
|
11187
|
+
if (ae.fieldCheck(e))
|
|
11187
11188
|
return e;
|
|
11188
11189
|
e = e + "";
|
|
11189
11190
|
const r = e.length;
|
|
@@ -11214,7 +11215,7 @@ function jh({
|
|
|
11214
11215
|
maskChar: t = "*",
|
|
11215
11216
|
maskLength: i = 4
|
|
11216
11217
|
}) {
|
|
11217
|
-
if (
|
|
11218
|
+
if (ae.fieldCheck(e))
|
|
11218
11219
|
return e;
|
|
11219
11220
|
if (!e || e.length < n + r)
|
|
11220
11221
|
return e + t.repeat(i);
|
|
@@ -11758,7 +11759,7 @@ const ks = /* @__PURE__ */ _t(up, [["render", xp], ["__scopeId", "data-v-5475b4d
|
|
|
11758
11759
|
break;
|
|
11759
11760
|
}
|
|
11760
11761
|
}
|
|
11761
|
-
}), this.date_type = e), !
|
|
11762
|
+
}), this.date_type = e), !ae.fieldCheck(this.date) && this.date.length === 2 && (this.opts.startDate = this.date[0], this.opts.endDate = this.date[1]), this.dateTypeF(this.dateType);
|
|
11762
11763
|
},
|
|
11763
11764
|
// 日期类型切换
|
|
11764
11765
|
dateTypeF(e) {
|
|
@@ -11778,7 +11779,7 @@ const ks = /* @__PURE__ */ _t(up, [["render", xp], ["__scopeId", "data-v-5475b4d
|
|
|
11778
11779
|
this.opts.dateType = "year", this.opts.valueFormat = "YYYY";
|
|
11779
11780
|
break;
|
|
11780
11781
|
}
|
|
11781
|
-
if (!
|
|
11782
|
+
if (!ae.fieldCheck(this.date) && this.date.length === 2) {
|
|
11782
11783
|
switch (this.dateSwitchRule === 0 ? r = [this.date[0], this.date[1]] : this.dateSwitchRule === 1 && (r = De.initSearchDateQj(this.opts.dateType)), e) {
|
|
11783
11784
|
case this.dateTypeKeyValue[3]:
|
|
11784
11785
|
this.opts.startDate = De.formatTime(r[0], "{y}-{m}-{d} {h}:{i}:{s}"), this.opts.endDate = De.formatTime(r[1], "{y}-{m}-{d} {h}:{i}:{s}");
|
|
@@ -11942,7 +11943,7 @@ const Is = /* @__PURE__ */ _t(pp, [["render", yp], ["__scopeId", "data-v-1e7c37e
|
|
|
11942
11943
|
watch: {
|
|
11943
11944
|
modelValue: {
|
|
11944
11945
|
handler(e) {
|
|
11945
|
-
!
|
|
11946
|
+
!ae.fieldCheck(this.modelValue) && this.modelValue.length >= 1 ? (this.opts.startDate = this.modelValue[0], this.opts.endDate = this.modelValue[1]) : (this.opts.startDate = null, this.opts.endDate = null);
|
|
11946
11947
|
},
|
|
11947
11948
|
deep: !0,
|
|
11948
11949
|
immediate: !0
|
|
@@ -12060,7 +12061,7 @@ function wp(e, n = 30, r) {
|
|
|
12060
12061
|
function Dp(e, n, r, t) {
|
|
12061
12062
|
if (t)
|
|
12062
12063
|
n.tempDate = e.date;
|
|
12063
|
-
else if (!
|
|
12064
|
+
else if (!ae.fieldCheck(e.date) && e.date.length > 0 && !ae.fieldCheck(e.date[0]) && !ae.fieldCheck(e.date[1])) {
|
|
12064
12065
|
let i = new Date(e.date[0]).getTime(), a = new Date(e.date[1]).getTime();
|
|
12065
12066
|
Math.abs(i - a) / o0 >= r && (n.tempDate[1] === e.date[1] ? e.date[1] = De.formatTime(i + o0 * (r - 1), "{y}-{m}-{d}") : e.date[0] = De.formatTime(a - o0 * (r - 1), "{y}-{m}-{d}"));
|
|
12066
12067
|
}
|
|
@@ -12068,7 +12069,7 @@ function Dp(e, n, r, t) {
|
|
|
12068
12069
|
function Fp(e, n, r, t) {
|
|
12069
12070
|
if (t)
|
|
12070
12071
|
n.tempDate = e.date;
|
|
12071
|
-
else if (!
|
|
12072
|
+
else if (!ae.fieldCheck(e.date) && e.date.length > 0 && !ae.fieldCheck(e.date[0]) && !ae.fieldCheck(e.date[1])) {
|
|
12072
12073
|
let i = new Date(e.date[0]).getTime(), a = new Date(e.date[1]).getTime();
|
|
12073
12074
|
Math.abs(i - a) / o0 >= r && (n.tempDate[0] === e.date[0] ? e.date[0] = De.formatTime(a - o0 * (r - 1), "{y}-{m}-{d}") : e.date[1] = De.formatTime(i + o0 * (r - 1), "{y}-{m}-{d}"));
|
|
12074
12075
|
}
|
|
@@ -12959,14 +12960,14 @@ let C0 = null;
|
|
|
12959
12960
|
function Gp(e, n = null, r) {
|
|
12960
12961
|
if ("WebSocket" in window) {
|
|
12961
12962
|
e = Xp(e);
|
|
12962
|
-
const t =
|
|
12963
|
+
const t = ae.fieldCheck(n) ? [] : [n];
|
|
12963
12964
|
return C0 = new WebSocket(e, t), C0.onopen = function() {
|
|
12964
|
-
|
|
12965
|
+
ae.colorLog({ content: ["websocket", "已连接,正在接收数据...."] });
|
|
12965
12966
|
}, C0.onmessage = function(i) {
|
|
12966
12967
|
let a = i.data;
|
|
12967
12968
|
r(JSON.parse(a));
|
|
12968
12969
|
}, C0.onclose = function() {
|
|
12969
|
-
|
|
12970
|
+
ae.colorLog({ content: ["websocket", "已关闭!"] });
|
|
12970
12971
|
}, C0;
|
|
12971
12972
|
} else
|
|
12972
12973
|
console.info("您的浏览器不支持 WebSocket!");
|
|
@@ -13122,7 +13123,7 @@ const Qp = {
|
|
|
13122
13123
|
// html转pdf
|
|
13123
13124
|
}, ev = [
|
|
13124
13125
|
{ type: "function", name: "menu", entity: xo },
|
|
13125
|
-
{ type: "function", name: "base", entity:
|
|
13126
|
+
{ type: "function", name: "base", entity: ae },
|
|
13126
13127
|
{ type: "function", name: "num", entity: de },
|
|
13127
13128
|
{ type: "function", name: "date", entity: De },
|
|
13128
13129
|
{ type: "function", name: "fc", entity: _n },
|
|
@@ -13178,7 +13179,7 @@ const Qp = {
|
|
|
13178
13179
|
LJSprivacy: Fs,
|
|
13179
13180
|
// 方法
|
|
13180
13181
|
LJSmenu: xo,
|
|
13181
|
-
LJSbase:
|
|
13182
|
+
LJSbase: ae,
|
|
13182
13183
|
LJSnum: de,
|
|
13183
13184
|
LJSdate: De,
|
|
13184
13185
|
LJSfc: _n,
|