@das-fed/web 7.1.0-dev.31 → 7.1.0-dev.33
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/{packages/main-app-framework/index-BLOwaLgb.js → index-Co-HORmb.js} +1 -1
- package/{index-BJDVxFOS.js → index-DII2s5jN.js} +4 -3
- package/{index-BJDVxFOS.js.gz → index-DII2s5jN.js.gz} +0 -0
- package/{packages/main-app-framework/index-CwPhZ7VL.js → index-DM0W6wXZ.js} +1 -1
- package/index-DM0W6wXZ.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +9 -7
- package/{index-Dad2ayuK.js → packages/main-app-framework/index-KrpfKz6n.js} +1 -1
- package/packages/main-app-framework/index-KrpfKz6n.js.gz +0 -0
- package/packages/main-app-framework/{index-CuDzwEwX.js → index-TlWCq0Vp.js} +527 -526
- package/packages/main-app-framework/index-TlWCq0Vp.js.gz +0 -0
- package/{index-C2e_Is65.js → packages/main-app-framework/index-mcZhp5kH.js} +1 -1
- package/packages/main-app-framework/index.js +1 -1
- package/index-Dad2ayuK.js.gz +0 -0
- package/packages/main-app-framework/index-CuDzwEwX.js.gz +0 -0
- package/packages/main-app-framework/index-CwPhZ7VL.js.gz +0 -0
|
@@ -222,8 +222,8 @@ function ty(...i) {
|
|
|
222
222
|
Array.isArray(n) || (n = [n]), Array.isArray(a) || (a = [a]);
|
|
223
223
|
const c = [], f = () => {
|
|
224
224
|
c.forEach((d) => d()), c.length = 0;
|
|
225
|
-
}, p = (d, w,
|
|
226
|
-
f(), d && c.push(...n.flatMap((
|
|
225
|
+
}, p = (d, w, v, _) => (d.addEventListener(w, v, _), () => d.removeEventListener(w, v, _)), h = _t(() => [Cd(r), md(l)], ([d, w]) => {
|
|
226
|
+
f(), d && c.push(...n.flatMap((v) => a.map((_) => p(d, v, _, w))));
|
|
227
227
|
}, { immediate: !0, flush: "post" }), s = () => {
|
|
228
228
|
h(), f();
|
|
229
229
|
};
|
|
@@ -289,26 +289,26 @@ function Ho(i, r = {}) {
|
|
|
289
289
|
return !1;
|
|
290
290
|
return !1;
|
|
291
291
|
}), [h, s, d, , w] = f;
|
|
292
|
-
async function
|
|
292
|
+
async function v() {
|
|
293
293
|
p.value && (n != null && n[d] && await n[s](), c.value = !1);
|
|
294
294
|
}
|
|
295
295
|
async function _() {
|
|
296
296
|
if (!p.value)
|
|
297
297
|
return;
|
|
298
|
-
await
|
|
298
|
+
await v();
|
|
299
299
|
const E = Cd(l);
|
|
300
300
|
E && (await E[h](), c.value = !0);
|
|
301
301
|
}
|
|
302
302
|
async function C() {
|
|
303
|
-
c.value ? await
|
|
303
|
+
c.value ? await v() : await _();
|
|
304
304
|
}
|
|
305
305
|
return n && ty(n, w, () => {
|
|
306
306
|
c.value = !!(n != null && n[d]);
|
|
307
|
-
}, !1), a && _d(
|
|
307
|
+
}, !1), a && _d(v), {
|
|
308
308
|
isSupported: p,
|
|
309
309
|
isFullscreen: c,
|
|
310
310
|
enter: _,
|
|
311
|
-
exit:
|
|
311
|
+
exit: v,
|
|
312
312
|
toggle: C
|
|
313
313
|
};
|
|
314
314
|
}
|
|
@@ -363,10 +363,10 @@ const ly = xC.get("watermark"), cy = /* @__PURE__ */ at({
|
|
|
363
363
|
color: "rgba(0,0,0,.15)",
|
|
364
364
|
fontSize: 16
|
|
365
365
|
}), h = (E, b) => {
|
|
366
|
-
const
|
|
367
|
-
|
|
368
|
-
const m =
|
|
369
|
-
a.value = Math.ceil(m.width) + b / 2, l.value = Math.ceil(m.height), document.body.removeChild(
|
|
366
|
+
const x = document.createElement("span");
|
|
367
|
+
x.innerHTML = E, x.style.fontSize = b + "px", x.style.fontFamily = "sans-serif", x.style.visibility = "hidden", document.body.appendChild(x);
|
|
368
|
+
const m = x.getBoundingClientRect();
|
|
369
|
+
a.value = Math.ceil(m.width) + b / 2, l.value = Math.ceil(m.height), document.body.removeChild(x);
|
|
370
370
|
}, s = z(!1), d = () => new Promise((E) => {
|
|
371
371
|
const b = () => {
|
|
372
372
|
if (s) return E(!0);
|
|
@@ -374,11 +374,11 @@ const ly = xC.get("watermark"), cy = /* @__PURE__ */ at({
|
|
|
374
374
|
};
|
|
375
375
|
b();
|
|
376
376
|
}), w = async (E) => {
|
|
377
|
-
var
|
|
377
|
+
var x;
|
|
378
378
|
await d();
|
|
379
|
-
const b = !!((
|
|
379
|
+
const b = !!((x = n.value) != null && x.pageSwith);
|
|
380
380
|
f.value = E && b ? [...c.value] : [];
|
|
381
|
-
},
|
|
381
|
+
}, v = async () => {
|
|
382
382
|
var m, y, S, k, R, T, P;
|
|
383
383
|
s.value = !0, await (r == null ? void 0 : r.platformInitNextTick());
|
|
384
384
|
const [E, b] = await ly().run();
|
|
@@ -402,21 +402,21 @@ const ly = xC.get("watermark"), cy = /* @__PURE__ */ at({
|
|
|
402
402
|
}
|
|
403
403
|
return s.value = !1, b;
|
|
404
404
|
};
|
|
405
|
-
|
|
405
|
+
v();
|
|
406
406
|
const _ = oo(), C = Ji();
|
|
407
407
|
return _t(
|
|
408
408
|
() => _.currentRoute.value,
|
|
409
409
|
(E) => {
|
|
410
410
|
var y, S, k;
|
|
411
|
-
const b = !!((y = n.value) != null && y.pageSwith),
|
|
411
|
+
const b = !!((y = n.value) != null && y.pageSwith), x = ((S = E.meta) == null ? void 0 : S.showWatermark) ?? !0;
|
|
412
412
|
let m = ((k = E.query) == null ? void 0 : k.showWatermark) ?? !0;
|
|
413
|
-
m === "false" && (m = !1), w(b && !!(
|
|
413
|
+
m === "false" && (m = !1), w(b && !!(x && m));
|
|
414
414
|
},
|
|
415
415
|
{ immediate: !0 }
|
|
416
416
|
), ht.addEventListenerFromMicroApp("systemconfig:watermark-change", async () => {
|
|
417
|
-
var
|
|
418
|
-
await
|
|
419
|
-
const E = !!((
|
|
417
|
+
var x, m;
|
|
418
|
+
await v();
|
|
419
|
+
const E = !!((x = n.value) != null && x.pageSwith);
|
|
420
420
|
let b = ((m = C.query) == null ? void 0 : m.showWatermark) ?? !0;
|
|
421
421
|
b === "false" && (b = !1), w(!!(E && b));
|
|
422
422
|
}), (E, b) => (_e(), Ve(D(kC), {
|
|
@@ -595,11 +595,11 @@ const xy = (i = {}) => {
|
|
|
595
595
|
}, wy = (i, r) => {
|
|
596
596
|
const n = "permission-btn", a = JSON.parse(sessionStorage.getItem(n) || "{}") || {}, l = i != null && i.length ? i.filter((h) => h.routeUrl) : [], c = i != null && i.length ? i.filter((h) => !h.routeUrl && h.children).map((h) => h.children).flat() : [], f = [...l, ...c], p = {};
|
|
597
597
|
return f.forEach((h) => {
|
|
598
|
-
var
|
|
598
|
+
var v;
|
|
599
599
|
const s = h.code, d = (h == null ? void 0 : h.originalCode) ?? "";
|
|
600
600
|
p[s] || (p[s] = []);
|
|
601
601
|
let w = [];
|
|
602
|
-
h != null && h.children && ((
|
|
602
|
+
h != null && h.children && ((v = h == null ? void 0 : h.children) != null && v.length) && (h.children.forEach((_) => {
|
|
603
603
|
var C;
|
|
604
604
|
!(_ != null && _.children) || !((C = _.children) != null && C.length) ? w.push({
|
|
605
605
|
code: _.code,
|
|
@@ -923,7 +923,7 @@ function Me() {
|
|
|
923
923
|
y.push(f());
|
|
924
924
|
return new w.init(y, m);
|
|
925
925
|
}
|
|
926
|
-
}),
|
|
926
|
+
}), v = h.enc = {}, _ = v.Hex = {
|
|
927
927
|
/**
|
|
928
928
|
* Converts a word array to a hex string.
|
|
929
929
|
*
|
|
@@ -962,7 +962,7 @@ function Me() {
|
|
|
962
962
|
S[k >>> 3] |= parseInt(m.substr(k, 2), 16) << 24 - k % 8 * 4;
|
|
963
963
|
return new w.init(S, y / 2);
|
|
964
964
|
}
|
|
965
|
-
}, C =
|
|
965
|
+
}, C = v.Latin1 = {
|
|
966
966
|
/**
|
|
967
967
|
* Converts a word array to a Latin1 string.
|
|
968
968
|
*
|
|
@@ -1001,7 +1001,7 @@ function Me() {
|
|
|
1001
1001
|
S[k >>> 2] |= (m.charCodeAt(k) & 255) << 24 - k % 4 * 8;
|
|
1002
1002
|
return new w.init(S, y);
|
|
1003
1003
|
}
|
|
1004
|
-
}, E =
|
|
1004
|
+
}, E = v.Utf8 = {
|
|
1005
1005
|
/**
|
|
1006
1006
|
* Converts a word array to a UTF-8 string.
|
|
1007
1007
|
*
|
|
@@ -1197,11 +1197,11 @@ function Me() {
|
|
|
1197
1197
|
*/
|
|
1198
1198
|
_createHmacHelper: function(m) {
|
|
1199
1199
|
return function(y, S) {
|
|
1200
|
-
return new
|
|
1200
|
+
return new x.HMAC.init(m, S).finalize(y);
|
|
1201
1201
|
};
|
|
1202
1202
|
}
|
|
1203
1203
|
});
|
|
1204
|
-
var
|
|
1204
|
+
var x = h.algo = {};
|
|
1205
1205
|
return h;
|
|
1206
1206
|
}(Math);
|
|
1207
1207
|
return n;
|
|
@@ -1413,8 +1413,8 @@ function aa() {
|
|
|
1413
1413
|
* var x32WordArray = x64WordArray.toX32();
|
|
1414
1414
|
*/
|
|
1415
1415
|
toX32: function() {
|
|
1416
|
-
for (var s = this.words, d = s.length, w = [],
|
|
1417
|
-
var _ = s[
|
|
1416
|
+
for (var s = this.words, d = s.length, w = [], v = 0; v < d; v++) {
|
|
1417
|
+
var _ = s[v];
|
|
1418
1418
|
w.push(_.high), w.push(_.low);
|
|
1419
1419
|
}
|
|
1420
1420
|
return p.create(w, this.sigBytes);
|
|
@@ -1429,8 +1429,8 @@ function aa() {
|
|
|
1429
1429
|
* var clone = x64WordArray.clone();
|
|
1430
1430
|
*/
|
|
1431
1431
|
clone: function() {
|
|
1432
|
-
for (var s = f.clone.call(this), d = s.words = this.words.slice(0), w = d.length,
|
|
1433
|
-
d[
|
|
1432
|
+
for (var s = f.clone.call(this), d = s.words = this.words.slice(0), w = d.length, v = 0; v < w; v++)
|
|
1433
|
+
d[v] = d[v].clone();
|
|
1434
1434
|
return s;
|
|
1435
1435
|
}
|
|
1436
1436
|
});
|
|
@@ -1483,8 +1483,8 @@ function Uy() {
|
|
|
1483
1483
|
* var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
|
|
1484
1484
|
*/
|
|
1485
1485
|
stringify: function(h) {
|
|
1486
|
-
for (var s = h.words, d = h.sigBytes, w = [],
|
|
1487
|
-
var _ = s[
|
|
1486
|
+
for (var s = h.words, d = h.sigBytes, w = [], v = 0; v < d; v += 2) {
|
|
1487
|
+
var _ = s[v >>> 2] >>> 16 - v % 4 * 8 & 65535;
|
|
1488
1488
|
w.push(String.fromCharCode(_));
|
|
1489
1489
|
}
|
|
1490
1490
|
return w.join("");
|
|
@@ -1522,8 +1522,8 @@ function Uy() {
|
|
|
1522
1522
|
* var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
|
|
1523
1523
|
*/
|
|
1524
1524
|
stringify: function(h) {
|
|
1525
|
-
for (var s = h.words, d = h.sigBytes, w = [],
|
|
1526
|
-
var _ = p(s[
|
|
1525
|
+
for (var s = h.words, d = h.sigBytes, w = [], v = 0; v < d; v += 2) {
|
|
1526
|
+
var _ = p(s[v >>> 2] >>> 16 - v % 4 * 8 & 65535);
|
|
1527
1527
|
w.push(String.fromCharCode(_));
|
|
1528
1528
|
}
|
|
1529
1529
|
return w.join("");
|
|
@@ -1579,14 +1579,14 @@ function kr() {
|
|
|
1579
1579
|
stringify: function(h) {
|
|
1580
1580
|
var s = h.words, d = h.sigBytes, w = this._map;
|
|
1581
1581
|
h.clamp();
|
|
1582
|
-
for (var
|
|
1583
|
-
for (var C = s[_ >>> 2] >>> 24 - _ % 4 * 8 & 255, E = s[_ + 1 >>> 2] >>> 24 - (_ + 1) % 4 * 8 & 255, b = s[_ + 2 >>> 2] >>> 24 - (_ + 2) % 4 * 8 & 255,
|
|
1584
|
-
|
|
1582
|
+
for (var v = [], _ = 0; _ < d; _ += 3)
|
|
1583
|
+
for (var C = s[_ >>> 2] >>> 24 - _ % 4 * 8 & 255, E = s[_ + 1 >>> 2] >>> 24 - (_ + 1) % 4 * 8 & 255, b = s[_ + 2 >>> 2] >>> 24 - (_ + 2) % 4 * 8 & 255, x = C << 16 | E << 8 | b, m = 0; m < 4 && _ + m * 0.75 < d; m++)
|
|
1584
|
+
v.push(w.charAt(x >>> 6 * (3 - m) & 63));
|
|
1585
1585
|
var y = w.charAt(64);
|
|
1586
1586
|
if (y)
|
|
1587
|
-
for (;
|
|
1588
|
-
|
|
1589
|
-
return
|
|
1587
|
+
for (; v.length % 4; )
|
|
1588
|
+
v.push(y);
|
|
1589
|
+
return v.join("");
|
|
1590
1590
|
},
|
|
1591
1591
|
/**
|
|
1592
1592
|
* Converts a Base64 string to a word array.
|
|
@@ -1605,8 +1605,8 @@ function kr() {
|
|
|
1605
1605
|
var s = h.length, d = this._map, w = this._reverseMap;
|
|
1606
1606
|
if (!w) {
|
|
1607
1607
|
w = this._reverseMap = [];
|
|
1608
|
-
for (var
|
|
1609
|
-
w[d.charCodeAt(
|
|
1608
|
+
for (var v = 0; v < d.length; v++)
|
|
1609
|
+
w[d.charCodeAt(v)] = v;
|
|
1610
1610
|
}
|
|
1611
1611
|
var _ = d.charAt(64);
|
|
1612
1612
|
if (_) {
|
|
@@ -1618,12 +1618,12 @@ function kr() {
|
|
|
1618
1618
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
1619
1619
|
};
|
|
1620
1620
|
function p(h, s, d) {
|
|
1621
|
-
for (var w = [],
|
|
1621
|
+
for (var w = [], v = 0, _ = 0; _ < s; _++)
|
|
1622
1622
|
if (_ % 4) {
|
|
1623
1623
|
var C = d[h.charCodeAt(_ - 1)] << _ % 4 * 2, E = d[h.charCodeAt(_)] >>> 6 - _ % 4 * 2, b = C | E;
|
|
1624
|
-
w[
|
|
1624
|
+
w[v >>> 2] |= b << 24 - v % 4 * 8, v++;
|
|
1625
1625
|
}
|
|
1626
|
-
return c.create(w,
|
|
1626
|
+
return c.create(w, v);
|
|
1627
1627
|
}
|
|
1628
1628
|
}(), n.enc.Base64;
|
|
1629
1629
|
});
|
|
@@ -1655,12 +1655,12 @@ function My() {
|
|
|
1655
1655
|
*/
|
|
1656
1656
|
stringify: function(h, s) {
|
|
1657
1657
|
s === void 0 && (s = !0);
|
|
1658
|
-
var d = h.words, w = h.sigBytes,
|
|
1658
|
+
var d = h.words, w = h.sigBytes, v = s ? this._safe_map : this._map;
|
|
1659
1659
|
h.clamp();
|
|
1660
1660
|
for (var _ = [], C = 0; C < w; C += 3)
|
|
1661
|
-
for (var E = d[C >>> 2] >>> 24 - C % 4 * 8 & 255, b = d[C + 1 >>> 2] >>> 24 - (C + 1) % 4 * 8 & 255,
|
|
1662
|
-
_.push(
|
|
1663
|
-
var S =
|
|
1661
|
+
for (var E = d[C >>> 2] >>> 24 - C % 4 * 8 & 255, b = d[C + 1 >>> 2] >>> 24 - (C + 1) % 4 * 8 & 255, x = d[C + 2 >>> 2] >>> 24 - (C + 2) % 4 * 8 & 255, m = E << 16 | b << 8 | x, y = 0; y < 4 && C + y * 0.75 < w; y++)
|
|
1662
|
+
_.push(v.charAt(m >>> 6 * (3 - y) & 63));
|
|
1663
|
+
var S = v.charAt(64);
|
|
1664
1664
|
if (S)
|
|
1665
1665
|
for (; _.length % 4; )
|
|
1666
1666
|
_.push(S);
|
|
@@ -1683,29 +1683,29 @@ function My() {
|
|
|
1683
1683
|
*/
|
|
1684
1684
|
parse: function(h, s) {
|
|
1685
1685
|
s === void 0 && (s = !0);
|
|
1686
|
-
var d = h.length, w = s ? this._safe_map : this._map,
|
|
1687
|
-
if (!
|
|
1688
|
-
|
|
1686
|
+
var d = h.length, w = s ? this._safe_map : this._map, v = this._reverseMap;
|
|
1687
|
+
if (!v) {
|
|
1688
|
+
v = this._reverseMap = [];
|
|
1689
1689
|
for (var _ = 0; _ < w.length; _++)
|
|
1690
|
-
|
|
1690
|
+
v[w.charCodeAt(_)] = _;
|
|
1691
1691
|
}
|
|
1692
1692
|
var C = w.charAt(64);
|
|
1693
1693
|
if (C) {
|
|
1694
1694
|
var E = h.indexOf(C);
|
|
1695
1695
|
E !== -1 && (d = E);
|
|
1696
1696
|
}
|
|
1697
|
-
return p(h, d,
|
|
1697
|
+
return p(h, d, v);
|
|
1698
1698
|
},
|
|
1699
1699
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
1700
1700
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
1701
1701
|
};
|
|
1702
1702
|
function p(h, s, d) {
|
|
1703
|
-
for (var w = [],
|
|
1703
|
+
for (var w = [], v = 0, _ = 0; _ < s; _++)
|
|
1704
1704
|
if (_ % 4) {
|
|
1705
1705
|
var C = d[h.charCodeAt(_ - 1)] << _ % 4 * 2, E = d[h.charCodeAt(_)] >>> 6 - _ % 4 * 2, b = C | E;
|
|
1706
|
-
w[
|
|
1706
|
+
w[v >>> 2] |= b << 24 - v % 4 * 8, v++;
|
|
1707
1707
|
}
|
|
1708
|
-
return c.create(w,
|
|
1708
|
+
return c.create(w, v);
|
|
1709
1709
|
}
|
|
1710
1710
|
}(), n.enc.Base64url;
|
|
1711
1711
|
});
|
|
@@ -1733,17 +1733,17 @@ function Dr() {
|
|
|
1733
1733
|
]);
|
|
1734
1734
|
},
|
|
1735
1735
|
_doProcessBlock: function(E, b) {
|
|
1736
|
-
for (var
|
|
1737
|
-
var m = b +
|
|
1736
|
+
for (var x = 0; x < 16; x++) {
|
|
1737
|
+
var m = b + x, y = E[m];
|
|
1738
1738
|
E[m] = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360;
|
|
1739
1739
|
}
|
|
1740
1740
|
var S = this._hash.words, k = E[b + 0], R = E[b + 1], T = E[b + 2], P = E[b + 3], N = E[b + 4], I = E[b + 5], L = E[b + 6], M = E[b + 7], j = E[b + 8], ue = E[b + 9], G = E[b + 10], ie = E[b + 11], q = E[b + 12], Y = E[b + 13], le = E[b + 14], de = E[b + 15], H = S[0], Q = S[1], ne = S[2], te = S[3];
|
|
1741
|
-
H = w(H, Q, ne, te, k, 7, s[0]), te = w(te, H, Q, ne, R, 12, s[1]), ne = w(ne, te, H, Q, T, 17, s[2]), Q = w(Q, ne, te, H, P, 22, s[3]), H = w(H, Q, ne, te, N, 7, s[4]), te = w(te, H, Q, ne, I, 12, s[5]), ne = w(ne, te, H, Q, L, 17, s[6]), Q = w(Q, ne, te, H, M, 22, s[7]), H = w(H, Q, ne, te, j, 7, s[8]), te = w(te, H, Q, ne, ue, 12, s[9]), ne = w(ne, te, H, Q, G, 17, s[10]), Q = w(Q, ne, te, H, ie, 22, s[11]), H = w(H, Q, ne, te, q, 7, s[12]), te = w(te, H, Q, ne, Y, 12, s[13]), ne = w(ne, te, H, Q, le, 17, s[14]), Q = w(Q, ne, te, H, de, 22, s[15]), H =
|
|
1741
|
+
H = w(H, Q, ne, te, k, 7, s[0]), te = w(te, H, Q, ne, R, 12, s[1]), ne = w(ne, te, H, Q, T, 17, s[2]), Q = w(Q, ne, te, H, P, 22, s[3]), H = w(H, Q, ne, te, N, 7, s[4]), te = w(te, H, Q, ne, I, 12, s[5]), ne = w(ne, te, H, Q, L, 17, s[6]), Q = w(Q, ne, te, H, M, 22, s[7]), H = w(H, Q, ne, te, j, 7, s[8]), te = w(te, H, Q, ne, ue, 12, s[9]), ne = w(ne, te, H, Q, G, 17, s[10]), Q = w(Q, ne, te, H, ie, 22, s[11]), H = w(H, Q, ne, te, q, 7, s[12]), te = w(te, H, Q, ne, Y, 12, s[13]), ne = w(ne, te, H, Q, le, 17, s[14]), Q = w(Q, ne, te, H, de, 22, s[15]), H = v(H, Q, ne, te, R, 5, s[16]), te = v(te, H, Q, ne, L, 9, s[17]), ne = v(ne, te, H, Q, ie, 14, s[18]), Q = v(Q, ne, te, H, k, 20, s[19]), H = v(H, Q, ne, te, I, 5, s[20]), te = v(te, H, Q, ne, G, 9, s[21]), ne = v(ne, te, H, Q, de, 14, s[22]), Q = v(Q, ne, te, H, N, 20, s[23]), H = v(H, Q, ne, te, ue, 5, s[24]), te = v(te, H, Q, ne, le, 9, s[25]), ne = v(ne, te, H, Q, P, 14, s[26]), Q = v(Q, ne, te, H, j, 20, s[27]), H = v(H, Q, ne, te, Y, 5, s[28]), te = v(te, H, Q, ne, T, 9, s[29]), ne = v(ne, te, H, Q, M, 14, s[30]), Q = v(Q, ne, te, H, q, 20, s[31]), H = _(H, Q, ne, te, I, 4, s[32]), te = _(te, H, Q, ne, j, 11, s[33]), ne = _(ne, te, H, Q, ie, 16, s[34]), Q = _(Q, ne, te, H, le, 23, s[35]), H = _(H, Q, ne, te, R, 4, s[36]), te = _(te, H, Q, ne, N, 11, s[37]), ne = _(ne, te, H, Q, M, 16, s[38]), Q = _(Q, ne, te, H, G, 23, s[39]), H = _(H, Q, ne, te, Y, 4, s[40]), te = _(te, H, Q, ne, k, 11, s[41]), ne = _(ne, te, H, Q, P, 16, s[42]), Q = _(Q, ne, te, H, L, 23, s[43]), H = _(H, Q, ne, te, ue, 4, s[44]), te = _(te, H, Q, ne, q, 11, s[45]), ne = _(ne, te, H, Q, de, 16, s[46]), Q = _(Q, ne, te, H, T, 23, s[47]), H = C(H, Q, ne, te, k, 6, s[48]), te = C(te, H, Q, ne, M, 10, s[49]), ne = C(ne, te, H, Q, le, 15, s[50]), Q = C(Q, ne, te, H, I, 21, s[51]), H = C(H, Q, ne, te, q, 6, s[52]), te = C(te, H, Q, ne, P, 10, s[53]), ne = C(ne, te, H, Q, G, 15, s[54]), Q = C(Q, ne, te, H, R, 21, s[55]), H = C(H, Q, ne, te, j, 6, s[56]), te = C(te, H, Q, ne, de, 10, s[57]), ne = C(ne, te, H, Q, L, 15, s[58]), Q = C(Q, ne, te, H, Y, 21, s[59]), H = C(H, Q, ne, te, N, 6, s[60]), te = C(te, H, Q, ne, ie, 10, s[61]), ne = C(ne, te, H, Q, T, 15, s[62]), Q = C(Q, ne, te, H, ue, 21, s[63]), S[0] = S[0] + H | 0, S[1] = S[1] + Q | 0, S[2] = S[2] + ne | 0, S[3] = S[3] + te | 0;
|
|
1742
1742
|
},
|
|
1743
1743
|
_doFinalize: function() {
|
|
1744
|
-
var E = this._data, b = E.words,
|
|
1744
|
+
var E = this._data, b = E.words, x = this._nDataBytes * 8, m = E.sigBytes * 8;
|
|
1745
1745
|
b[m >>> 5] |= 128 << 24 - m % 32;
|
|
1746
|
-
var y = a.floor(
|
|
1746
|
+
var y = a.floor(x / 4294967296), S = x;
|
|
1747
1747
|
b[(m + 64 >>> 9 << 4) + 15] = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360, b[(m + 64 >>> 9 << 4) + 14] = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360, E.sigBytes = (b.length + 1) * 4, this._process();
|
|
1748
1748
|
for (var k = this._hash, R = k.words, T = 0; T < 4; T++) {
|
|
1749
1749
|
var P = R[T];
|
|
@@ -1756,20 +1756,20 @@ function Dr() {
|
|
|
1756
1756
|
return E._hash = this._hash.clone(), E;
|
|
1757
1757
|
}
|
|
1758
1758
|
});
|
|
1759
|
-
function w(E, b,
|
|
1760
|
-
var R = E + (b &
|
|
1759
|
+
function w(E, b, x, m, y, S, k) {
|
|
1760
|
+
var R = E + (b & x | ~b & m) + y + k;
|
|
1761
1761
|
return (R << S | R >>> 32 - S) + b;
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1764
|
-
var R = E + (b & m |
|
|
1763
|
+
function v(E, b, x, m, y, S, k) {
|
|
1764
|
+
var R = E + (b & m | x & ~m) + y + k;
|
|
1765
1765
|
return (R << S | R >>> 32 - S) + b;
|
|
1766
1766
|
}
|
|
1767
|
-
function _(E, b,
|
|
1768
|
-
var R = E + (b ^
|
|
1767
|
+
function _(E, b, x, m, y, S, k) {
|
|
1768
|
+
var R = E + (b ^ x ^ m) + y + k;
|
|
1769
1769
|
return (R << S | R >>> 32 - S) + b;
|
|
1770
1770
|
}
|
|
1771
|
-
function C(E, b,
|
|
1772
|
-
var R = E + (
|
|
1771
|
+
function C(E, b, x, m, y, S, k) {
|
|
1772
|
+
var R = E + (x ^ (b | ~m)) + y + k;
|
|
1773
1773
|
return (R << S | R >>> 32 - S) + b;
|
|
1774
1774
|
}
|
|
1775
1775
|
l.MD5 = p._createHelper(d), l.HmacMD5 = p._createHmacHelper(d);
|
|
@@ -1795,21 +1795,21 @@ function Ed() {
|
|
|
1795
1795
|
]);
|
|
1796
1796
|
},
|
|
1797
1797
|
_doProcessBlock: function(d, w) {
|
|
1798
|
-
for (var
|
|
1798
|
+
for (var v = this._hash.words, _ = v[0], C = v[1], E = v[2], b = v[3], x = v[4], m = 0; m < 80; m++) {
|
|
1799
1799
|
if (m < 16)
|
|
1800
1800
|
h[m] = d[w + m] | 0;
|
|
1801
1801
|
else {
|
|
1802
1802
|
var y = h[m - 3] ^ h[m - 8] ^ h[m - 14] ^ h[m - 16];
|
|
1803
1803
|
h[m] = y << 1 | y >>> 31;
|
|
1804
1804
|
}
|
|
1805
|
-
var S = (_ << 5 | _ >>> 27) +
|
|
1806
|
-
m < 20 ? S += (C & E | ~C & b) + 1518500249 : m < 40 ? S += (C ^ E ^ b) + 1859775393 : m < 60 ? S += (C & E | C & b | E & b) - 1894007588 : S += (C ^ E ^ b) - 899497514,
|
|
1805
|
+
var S = (_ << 5 | _ >>> 27) + x + h[m];
|
|
1806
|
+
m < 20 ? S += (C & E | ~C & b) + 1518500249 : m < 40 ? S += (C ^ E ^ b) + 1859775393 : m < 60 ? S += (C & E | C & b | E & b) - 1894007588 : S += (C ^ E ^ b) - 899497514, x = b, b = E, E = C << 30 | C >>> 2, C = _, _ = S;
|
|
1807
1807
|
}
|
|
1808
|
-
|
|
1808
|
+
v[0] = v[0] + _ | 0, v[1] = v[1] + C | 0, v[2] = v[2] + E | 0, v[3] = v[3] + b | 0, v[4] = v[4] + x | 0;
|
|
1809
1809
|
},
|
|
1810
1810
|
_doFinalize: function() {
|
|
1811
|
-
var d = this._data, w = d.words,
|
|
1812
|
-
return w[_ >>> 5] |= 128 << 24 - _ % 32, w[(_ + 64 >>> 9 << 4) + 14] = Math.floor(
|
|
1811
|
+
var d = this._data, w = d.words, v = this._nDataBytes * 8, _ = d.sigBytes * 8;
|
|
1812
|
+
return w[_ >>> 5] |= 128 << 24 - _ % 32, w[(_ + 64 >>> 9 << 4) + 14] = Math.floor(v / 4294967296), w[(_ + 64 >>> 9 << 4) + 15] = v, d.sigBytes = w.length * 4, this._process(), this._hash;
|
|
1813
1813
|
},
|
|
1814
1814
|
clone: function() {
|
|
1815
1815
|
var d = f.clone.call(this);
|
|
@@ -1830,34 +1830,34 @@ function W0() {
|
|
|
1830
1830
|
return function(a) {
|
|
1831
1831
|
var l = n, c = l.lib, f = c.WordArray, p = c.Hasher, h = l.algo, s = [], d = [];
|
|
1832
1832
|
(function() {
|
|
1833
|
-
function _(
|
|
1834
|
-
for (var m = a.sqrt(
|
|
1835
|
-
if (!(
|
|
1833
|
+
function _(x) {
|
|
1834
|
+
for (var m = a.sqrt(x), y = 2; y <= m; y++)
|
|
1835
|
+
if (!(x % y))
|
|
1836
1836
|
return !1;
|
|
1837
1837
|
return !0;
|
|
1838
1838
|
}
|
|
1839
|
-
function C(
|
|
1840
|
-
return (
|
|
1839
|
+
function C(x) {
|
|
1840
|
+
return (x - (x | 0)) * 4294967296 | 0;
|
|
1841
1841
|
}
|
|
1842
1842
|
for (var E = 2, b = 0; b < 64; )
|
|
1843
1843
|
_(E) && (b < 8 && (s[b] = C(a.pow(E, 1 / 2))), d[b] = C(a.pow(E, 1 / 3)), b++), E++;
|
|
1844
1844
|
})();
|
|
1845
|
-
var w = [],
|
|
1845
|
+
var w = [], v = h.SHA256 = p.extend({
|
|
1846
1846
|
_doReset: function() {
|
|
1847
1847
|
this._hash = new f.init(s.slice(0));
|
|
1848
1848
|
},
|
|
1849
1849
|
_doProcessBlock: function(_, C) {
|
|
1850
|
-
for (var E = this._hash.words, b = E[0],
|
|
1850
|
+
for (var E = this._hash.words, b = E[0], x = E[1], m = E[2], y = E[3], S = E[4], k = E[5], R = E[6], T = E[7], P = 0; P < 64; P++) {
|
|
1851
1851
|
if (P < 16)
|
|
1852
1852
|
w[P] = _[C + P] | 0;
|
|
1853
1853
|
else {
|
|
1854
1854
|
var N = w[P - 15], I = (N << 25 | N >>> 7) ^ (N << 14 | N >>> 18) ^ N >>> 3, L = w[P - 2], M = (L << 15 | L >>> 17) ^ (L << 13 | L >>> 19) ^ L >>> 10;
|
|
1855
1855
|
w[P] = I + w[P - 7] + M + w[P - 16];
|
|
1856
1856
|
}
|
|
1857
|
-
var j = S & k ^ ~S & R, ue = b &
|
|
1858
|
-
T = R, R = k, k = S, S = y + q | 0, y = m, m =
|
|
1857
|
+
var j = S & k ^ ~S & R, ue = b & x ^ b & m ^ x & m, G = (b << 30 | b >>> 2) ^ (b << 19 | b >>> 13) ^ (b << 10 | b >>> 22), ie = (S << 26 | S >>> 6) ^ (S << 21 | S >>> 11) ^ (S << 7 | S >>> 25), q = T + ie + j + d[P] + w[P], Y = G + ue;
|
|
1858
|
+
T = R, R = k, k = S, S = y + q | 0, y = m, m = x, x = b, b = q + Y | 0;
|
|
1859
1859
|
}
|
|
1860
|
-
E[0] = E[0] + b | 0, E[1] = E[1] +
|
|
1860
|
+
E[0] = E[0] + b | 0, E[1] = E[1] + x | 0, E[2] = E[2] + m | 0, E[3] = E[3] + y | 0, E[4] = E[4] + S | 0, E[5] = E[5] + k | 0, E[6] = E[6] + R | 0, E[7] = E[7] + T | 0;
|
|
1861
1861
|
},
|
|
1862
1862
|
_doFinalize: function() {
|
|
1863
1863
|
var _ = this._data, C = _.words, E = this._nDataBytes * 8, b = _.sigBytes * 8;
|
|
@@ -1868,7 +1868,7 @@ function W0() {
|
|
|
1868
1868
|
return _._hash = this._hash.clone(), _;
|
|
1869
1869
|
}
|
|
1870
1870
|
});
|
|
1871
|
-
l.SHA256 = p._createHelper(
|
|
1871
|
+
l.SHA256 = p._createHelper(v), l.HmacSHA256 = p._createHmacHelper(v);
|
|
1872
1872
|
}(Math), n.SHA256;
|
|
1873
1873
|
});
|
|
1874
1874
|
}(Hs)), Hs.exports;
|
|
@@ -1995,10 +1995,10 @@ function Sd() {
|
|
|
1995
1995
|
d(1501505948, 4234509866),
|
|
1996
1996
|
d(1607167915, 987167468),
|
|
1997
1997
|
d(1816402316, 1246189591)
|
|
1998
|
-
],
|
|
1998
|
+
], v = [];
|
|
1999
1999
|
(function() {
|
|
2000
2000
|
for (var C = 0; C < 80; C++)
|
|
2001
|
-
|
|
2001
|
+
v[C] = d();
|
|
2002
2002
|
})();
|
|
2003
2003
|
var _ = s.SHA512 = c.extend({
|
|
2004
2004
|
_doReset: function() {
|
|
@@ -2014,22 +2014,22 @@ function Sd() {
|
|
|
2014
2014
|
]);
|
|
2015
2015
|
},
|
|
2016
2016
|
_doProcessBlock: function(C, E) {
|
|
2017
|
-
for (var b = this._hash.words,
|
|
2018
|
-
var xt, Gt, Fr =
|
|
2017
|
+
for (var b = this._hash.words, x = b[0], m = b[1], y = b[2], S = b[3], k = b[4], R = b[5], T = b[6], P = b[7], N = x.high, I = x.low, L = m.high, M = m.low, j = y.high, ue = y.low, G = S.high, ie = S.low, q = k.high, Y = k.low, le = R.high, de = R.low, H = T.high, Q = T.low, ne = P.high, te = P.low, Fe = N, he = I, He = L, ye = M, vt = j, Pe = ue, ve = G, K = ie, ee = q, oe = Y, Je = le, rn = de, Mt = H, Gn = Q, co = ne, xn = te, nt = 0; nt < 80; nt++) {
|
|
2018
|
+
var xt, Gt, Fr = v[nt];
|
|
2019
2019
|
if (nt < 16)
|
|
2020
2020
|
Gt = Fr.high = C[E + nt * 2] | 0, xt = Fr.low = C[E + nt * 2 + 1] | 0;
|
|
2021
2021
|
else {
|
|
2022
|
-
var Xn =
|
|
2022
|
+
var Xn = v[nt - 15], Qn = Xn.high, gn = Xn.low, Zn = (Qn >>> 1 | gn << 31) ^ (Qn >>> 8 | gn << 24) ^ Qn >>> 7, Pr = (gn >>> 1 | Qn << 31) ^ (gn >>> 8 | Qn << 24) ^ (gn >>> 7 | Qn << 25), Rr = v[nt - 2], En = Rr.high, Tn = Rr.low, uo = (En >>> 19 | Tn << 13) ^ (En << 3 | Tn >>> 29) ^ En >>> 6, Lr = (Tn >>> 19 | En << 13) ^ (Tn << 3 | En >>> 29) ^ (Tn >>> 6 | En << 26), $r = v[nt - 7], fo = $r.high, po = $r.low, jo = v[nt - 16], xa = jo.high, Vo = jo.low;
|
|
2023
2023
|
xt = Pr + po, Gt = Zn + fo + (xt >>> 0 < Pr >>> 0 ? 1 : 0), xt = xt + Lr, Gt = Gt + uo + (xt >>> 0 < Lr >>> 0 ? 1 : 0), xt = xt + Vo, Gt = Gt + xa + (xt >>> 0 < Vo >>> 0 ? 1 : 0), Fr.high = Gt, Fr.low = xt;
|
|
2024
2024
|
}
|
|
2025
2025
|
var Ko = ee & Je ^ ~ee & Mt, ho = oe & rn ^ ~oe & Gn, ga = Fe & He ^ Fe & vt ^ He & vt, ma = he & ye ^ he & Pe ^ ye & Pe, _a = (Fe >>> 28 | he << 4) ^ (Fe << 30 | he >>> 2) ^ (Fe << 25 | he >>> 7), Go = (he >>> 28 | Fe << 4) ^ (he << 30 | Fe >>> 2) ^ (he << 25 | Fe >>> 7), Xo = (ee >>> 14 | oe << 18) ^ (ee >>> 18 | oe << 14) ^ (ee << 23 | oe >>> 9), Ca = (oe >>> 14 | ee << 18) ^ (oe >>> 18 | ee << 14) ^ (oe << 23 | ee >>> 9), Qo = w[nt], ya = Qo.high, Nr = Qo.low, Ft = xn + Ca, on = co + Xo + (Ft >>> 0 < xn >>> 0 ? 1 : 0), Ft = Ft + ho, on = on + Ko + (Ft >>> 0 < ho >>> 0 ? 1 : 0), Ft = Ft + Nr, on = on + ya + (Ft >>> 0 < Nr >>> 0 ? 1 : 0), Ft = Ft + xt, on = on + Gt + (Ft >>> 0 < xt >>> 0 ? 1 : 0), Zo = Go + ma, ba = _a + ga + (Zo >>> 0 < Go >>> 0 ? 1 : 0);
|
|
2026
2026
|
co = Mt, xn = Gn, Mt = Je, Gn = rn, Je = ee, rn = oe, oe = K + Ft | 0, ee = ve + on + (oe >>> 0 < K >>> 0 ? 1 : 0) | 0, ve = vt, K = Pe, vt = He, Pe = ye, He = Fe, ye = he, he = Ft + Zo | 0, Fe = on + ba + (he >>> 0 < Ft >>> 0 ? 1 : 0) | 0;
|
|
2027
2027
|
}
|
|
2028
|
-
I =
|
|
2028
|
+
I = x.low = I + he, x.high = N + Fe + (I >>> 0 < he >>> 0 ? 1 : 0), M = m.low = M + ye, m.high = L + He + (M >>> 0 < ye >>> 0 ? 1 : 0), ue = y.low = ue + Pe, y.high = j + vt + (ue >>> 0 < Pe >>> 0 ? 1 : 0), ie = S.low = ie + K, S.high = G + ve + (ie >>> 0 < K >>> 0 ? 1 : 0), Y = k.low = Y + oe, k.high = q + ee + (Y >>> 0 < oe >>> 0 ? 1 : 0), de = R.low = de + rn, R.high = le + Je + (de >>> 0 < rn >>> 0 ? 1 : 0), Q = T.low = Q + Gn, T.high = H + Mt + (Q >>> 0 < Gn >>> 0 ? 1 : 0), te = P.low = te + xn, P.high = ne + co + (te >>> 0 < xn >>> 0 ? 1 : 0);
|
|
2029
2029
|
},
|
|
2030
2030
|
_doFinalize: function() {
|
|
2031
|
-
var C = this._data, E = C.words, b = this._nDataBytes * 8,
|
|
2032
|
-
E[
|
|
2031
|
+
var C = this._data, E = C.words, b = this._nDataBytes * 8, x = C.sigBytes * 8;
|
|
2032
|
+
E[x >>> 5] |= 128 << 24 - x % 32, E[(x + 128 >>> 10 << 5) + 30] = Math.floor(b / 4294967296), E[(x + 128 >>> 10 << 5) + 31] = b, C.sigBytes = E.length * 4, this._process();
|
|
2033
2033
|
var m = this._hash.toX32();
|
|
2034
2034
|
return m;
|
|
2035
2035
|
},
|
|
@@ -2081,16 +2081,16 @@ function Wy() {
|
|
|
2081
2081
|
i.exports = a(Me(), aa());
|
|
2082
2082
|
})(Be, function(n) {
|
|
2083
2083
|
return function(a) {
|
|
2084
|
-
var l = n, c = l.lib, f = c.WordArray, p = c.Hasher, h = l.x64, s = h.Word, d = l.algo, w = [],
|
|
2084
|
+
var l = n, c = l.lib, f = c.WordArray, p = c.Hasher, h = l.x64, s = h.Word, d = l.algo, w = [], v = [], _ = [];
|
|
2085
2085
|
(function() {
|
|
2086
|
-
for (var b = 1,
|
|
2087
|
-
w[b + 5 *
|
|
2088
|
-
var y =
|
|
2089
|
-
b = y,
|
|
2086
|
+
for (var b = 1, x = 0, m = 0; m < 24; m++) {
|
|
2087
|
+
w[b + 5 * x] = (m + 1) * (m + 2) / 2 % 64;
|
|
2088
|
+
var y = x % 5, S = (2 * b + 3 * x) % 5;
|
|
2089
|
+
b = y, x = S;
|
|
2090
2090
|
}
|
|
2091
2091
|
for (var b = 0; b < 5; b++)
|
|
2092
|
-
for (var
|
|
2093
|
-
|
|
2092
|
+
for (var x = 0; x < 5; x++)
|
|
2093
|
+
v[b + 5 * x] = x + (2 * b + 3 * x) % 5 * 5;
|
|
2094
2094
|
for (var k = 1, R = 0; R < 24; R++) {
|
|
2095
2095
|
for (var T = 0, P = 0, N = 0; N < 7; N++) {
|
|
2096
2096
|
if (k & 1) {
|
|
@@ -2120,13 +2120,13 @@ function Wy() {
|
|
|
2120
2120
|
outputLength: 512
|
|
2121
2121
|
}),
|
|
2122
2122
|
_doReset: function() {
|
|
2123
|
-
for (var b = this._state = [],
|
|
2124
|
-
b[
|
|
2123
|
+
for (var b = this._state = [], x = 0; x < 25; x++)
|
|
2124
|
+
b[x] = new s.init();
|
|
2125
2125
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2126
2126
|
},
|
|
2127
|
-
_doProcessBlock: function(b,
|
|
2127
|
+
_doProcessBlock: function(b, x) {
|
|
2128
2128
|
for (var m = this._state, y = this.blockSize / 2, S = 0; S < y; S++) {
|
|
2129
|
-
var k = b[
|
|
2129
|
+
var k = b[x + 2 * S], R = b[x + 2 * S + 1];
|
|
2130
2130
|
k = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360, R = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360;
|
|
2131
2131
|
var T = m[S];
|
|
2132
2132
|
T.high ^= R, T.low ^= k;
|
|
@@ -2148,7 +2148,7 @@ function Wy() {
|
|
|
2148
2148
|
for (var Y = 1; Y < 25; Y++) {
|
|
2149
2149
|
var I, L, T = m[Y], le = T.high, de = T.low, H = w[Y];
|
|
2150
2150
|
H < 32 ? (I = le << H | de >>> 32 - H, L = de << H | le >>> 32 - H) : (I = de << H - 32 | le >>> 64 - H, L = le << H - 32 | de >>> 64 - H);
|
|
2151
|
-
var Q = C[
|
|
2151
|
+
var Q = C[v[Y]];
|
|
2152
2152
|
Q.high = I, Q.low = L;
|
|
2153
2153
|
}
|
|
2154
2154
|
var ne = C[0], te = m[0];
|
|
@@ -2163,10 +2163,10 @@ function Wy() {
|
|
|
2163
2163
|
}
|
|
2164
2164
|
},
|
|
2165
2165
|
_doFinalize: function() {
|
|
2166
|
-
var b = this._data,
|
|
2166
|
+
var b = this._data, x = b.words;
|
|
2167
2167
|
this._nDataBytes * 8;
|
|
2168
2168
|
var m = b.sigBytes * 8, y = this.blockSize * 32;
|
|
2169
|
-
|
|
2169
|
+
x[m >>> 5] |= 1 << 24 - m % 32, x[(a.ceil((m + 1) / y) * y >>> 5) - 1] |= 128, b.sigBytes = x.length * 4, this._process();
|
|
2170
2170
|
for (var S = this._state, k = this.cfg.outputLength / 8, R = k / 8, T = [], P = 0; P < R; P++) {
|
|
2171
2171
|
var N = S[P], I = N.high, L = N.low;
|
|
2172
2172
|
I = (I << 8 | I >>> 24) & 16711935 | (I << 24 | I >>> 8) & 4278255360, L = (L << 8 | L >>> 24) & 16711935 | (L << 24 | L >>> 8) & 4278255360, T.push(L), T.push(I);
|
|
@@ -2174,8 +2174,8 @@ function Wy() {
|
|
|
2174
2174
|
return new f.init(T, k);
|
|
2175
2175
|
},
|
|
2176
2176
|
clone: function() {
|
|
2177
|
-
for (var b = p.clone.call(this),
|
|
2178
|
-
|
|
2177
|
+
for (var b = p.clone.call(this), x = b._state = this._state.slice(0), m = 0; m < 25; m++)
|
|
2178
|
+
x[m] = x[m].clone();
|
|
2179
2179
|
return b;
|
|
2180
2180
|
}
|
|
2181
2181
|
});
|
|
@@ -2444,7 +2444,7 @@ function qy() {
|
|
|
2444
2444
|
8,
|
|
2445
2445
|
5,
|
|
2446
2446
|
6
|
|
2447
|
-
]),
|
|
2447
|
+
]), v = f.create([
|
|
2448
2448
|
8,
|
|
2449
2449
|
9,
|
|
2450
2450
|
9,
|
|
@@ -2534,10 +2534,10 @@ function qy() {
|
|
|
2534
2534
|
var N = T + P, I = R[N];
|
|
2535
2535
|
R[N] = (I << 8 | I >>> 24) & 16711935 | (I << 24 | I >>> 8) & 4278255360;
|
|
2536
2536
|
}
|
|
2537
|
-
var L = this._hash.words, M = _.words, j = C.words, ue = s.words, G = d.words, ie = w.words, q =
|
|
2537
|
+
var L = this._hash.words, M = _.words, j = C.words, ue = s.words, G = d.words, ie = w.words, q = v.words, Y, le, de, H, Q, ne, te, Fe, he, He;
|
|
2538
2538
|
ne = Y = L[0], te = le = L[1], Fe = de = L[2], he = H = L[3], He = Q = L[4];
|
|
2539
2539
|
for (var ye, P = 0; P < 80; P += 1)
|
|
2540
|
-
ye = Y + R[T + ue[P]] | 0, P < 16 ? ye += b(le, de, H) + M[0] : P < 32 ? ye +=
|
|
2540
|
+
ye = Y + R[T + ue[P]] | 0, P < 16 ? ye += b(le, de, H) + M[0] : P < 32 ? ye += x(le, de, H) + M[1] : P < 48 ? ye += m(le, de, H) + M[2] : P < 64 ? ye += y(le, de, H) + M[3] : ye += S(le, de, H) + M[4], ye = ye | 0, ye = k(ye, ie[P]), ye = ye + Q | 0, Y = Q, Q = H, H = k(de, 10), de = le, le = ye, ye = ne + R[T + G[P]] | 0, P < 16 ? ye += S(te, Fe, he) + j[0] : P < 32 ? ye += y(te, Fe, he) + j[1] : P < 48 ? ye += m(te, Fe, he) + j[2] : P < 64 ? ye += x(te, Fe, he) + j[3] : ye += b(te, Fe, he) + j[4], ye = ye | 0, ye = k(ye, q[P]), ye = ye + He | 0, ne = He, He = he, he = k(Fe, 10), Fe = te, te = ye;
|
|
2541
2541
|
ye = L[1] + de + he | 0, L[1] = L[2] + H + He | 0, L[2] = L[3] + Q + ne | 0, L[3] = L[4] + Y + te | 0, L[4] = L[0] + le + Fe | 0, L[0] = ye;
|
|
2542
2542
|
},
|
|
2543
2543
|
_doFinalize: function() {
|
|
@@ -2557,7 +2557,7 @@ function qy() {
|
|
|
2557
2557
|
function b(R, T, P) {
|
|
2558
2558
|
return R ^ T ^ P;
|
|
2559
2559
|
}
|
|
2560
|
-
function
|
|
2560
|
+
function x(R, T, P) {
|
|
2561
2561
|
return R & T | ~R & P;
|
|
2562
2562
|
}
|
|
2563
2563
|
function m(R, T, P) {
|
|
@@ -2598,11 +2598,11 @@ function q0() {
|
|
|
2598
2598
|
*/
|
|
2599
2599
|
init: function(s, d) {
|
|
2600
2600
|
s = this._hasher = new s.init(), typeof d == "string" && (d = p.parse(d));
|
|
2601
|
-
var w = s.blockSize,
|
|
2602
|
-
d.sigBytes >
|
|
2603
|
-
for (var _ = this._oKey = d.clone(), C = this._iKey = d.clone(), E = _.words, b = C.words,
|
|
2604
|
-
E[
|
|
2605
|
-
_.sigBytes = C.sigBytes =
|
|
2601
|
+
var w = s.blockSize, v = w * 4;
|
|
2602
|
+
d.sigBytes > v && (d = s.finalize(d)), d.clamp();
|
|
2603
|
+
for (var _ = this._oKey = d.clone(), C = this._iKey = d.clone(), E = _.words, b = C.words, x = 0; x < w; x++)
|
|
2604
|
+
E[x] ^= 1549556828, b[x] ^= 909522486;
|
|
2605
|
+
_.sigBytes = C.sigBytes = v, this.reset();
|
|
2606
2606
|
},
|
|
2607
2607
|
/**
|
|
2608
2608
|
* Resets this HMAC to its initial state.
|
|
@@ -2647,8 +2647,8 @@ function q0() {
|
|
|
2647
2647
|
finalize: function(s) {
|
|
2648
2648
|
var d = this._hasher, w = d.finalize(s);
|
|
2649
2649
|
d.reset();
|
|
2650
|
-
var
|
|
2651
|
-
return
|
|
2650
|
+
var v = d.finalize(this._oKey.clone().concat(w));
|
|
2651
|
+
return v;
|
|
2652
2652
|
}
|
|
2653
2653
|
});
|
|
2654
2654
|
})();
|
|
@@ -2701,9 +2701,9 @@ function jy() {
|
|
|
2701
2701
|
*
|
|
2702
2702
|
* var key = kdf.compute(password, salt);
|
|
2703
2703
|
*/
|
|
2704
|
-
compute: function(w,
|
|
2705
|
-
for (var _ = this.cfg, C = s.create(_.hasher, w), E = f.create(), b = f.create([1]),
|
|
2706
|
-
var k = C.update(
|
|
2704
|
+
compute: function(w, v) {
|
|
2705
|
+
for (var _ = this.cfg, C = s.create(_.hasher, w), E = f.create(), b = f.create([1]), x = E.words, m = b.words, y = _.keySize, S = _.iterations; x.length < y; ) {
|
|
2706
|
+
var k = C.update(v).finalize(b);
|
|
2707
2707
|
C.reset();
|
|
2708
2708
|
for (var R = k.words, T = R.length, P = k, N = 1; N < S; N++) {
|
|
2709
2709
|
P = C.finalize(P), C.reset();
|
|
@@ -2715,8 +2715,8 @@ function jy() {
|
|
|
2715
2715
|
return E.sigBytes = y * 4, E;
|
|
2716
2716
|
}
|
|
2717
2717
|
});
|
|
2718
|
-
a.PBKDF2 = function(w,
|
|
2719
|
-
return d.create(_).compute(w,
|
|
2718
|
+
a.PBKDF2 = function(w, v, _) {
|
|
2719
|
+
return d.create(_).compute(w, v);
|
|
2720
2720
|
};
|
|
2721
2721
|
}(), n.PBKDF2;
|
|
2722
2722
|
});
|
|
@@ -2769,17 +2769,17 @@ function lr() {
|
|
|
2769
2769
|
* var key = kdf.compute(password, salt);
|
|
2770
2770
|
*/
|
|
2771
2771
|
compute: function(d, w) {
|
|
2772
|
-
for (var
|
|
2773
|
-
|
|
2772
|
+
for (var v, _ = this.cfg, C = _.hasher.create(), E = f.create(), b = E.words, x = _.keySize, m = _.iterations; b.length < x; ) {
|
|
2773
|
+
v && C.update(v), v = C.update(d).finalize(w), C.reset();
|
|
2774
2774
|
for (var y = 1; y < m; y++)
|
|
2775
|
-
|
|
2776
|
-
E.concat(
|
|
2775
|
+
v = C.finalize(v), C.reset();
|
|
2776
|
+
E.concat(v);
|
|
2777
2777
|
}
|
|
2778
|
-
return E.sigBytes =
|
|
2778
|
+
return E.sigBytes = x * 4, E;
|
|
2779
2779
|
}
|
|
2780
2780
|
});
|
|
2781
|
-
a.EvpKDF = function(d, w,
|
|
2782
|
-
return s.create(
|
|
2781
|
+
a.EvpKDF = function(d, w, v) {
|
|
2782
|
+
return s.create(v).compute(d, w);
|
|
2783
2783
|
};
|
|
2784
2784
|
}(), n.EvpKDF;
|
|
2785
2785
|
});
|
|
@@ -2794,7 +2794,7 @@ function Ct() {
|
|
|
2794
2794
|
n.lib.Cipher || function(a) {
|
|
2795
2795
|
var l = n, c = l.lib, f = c.Base, p = c.WordArray, h = c.BufferedBlockAlgorithm, s = l.enc;
|
|
2796
2796
|
s.Utf8;
|
|
2797
|
-
var d = s.Base64, w = l.algo,
|
|
2797
|
+
var d = s.Base64, w = l.algo, v = w.EvpKDF, _ = c.Cipher = h.extend({
|
|
2798
2798
|
/**
|
|
2799
2799
|
* Configuration options.
|
|
2800
2800
|
*
|
|
@@ -3017,7 +3017,7 @@ function Ct() {
|
|
|
3017
3017
|
M[j + q] ^= G[q];
|
|
3018
3018
|
}
|
|
3019
3019
|
return I;
|
|
3020
|
-
}(),
|
|
3020
|
+
}(), x = l.pad = {}, m = x.Pkcs7 = {
|
|
3021
3021
|
/**
|
|
3022
3022
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
3023
3023
|
*
|
|
@@ -3255,9 +3255,9 @@ function Ct() {
|
|
|
3255
3255
|
*/
|
|
3256
3256
|
execute: function(I, L, M, j, ue) {
|
|
3257
3257
|
if (j || (j = p.random(64 / 8)), ue)
|
|
3258
|
-
var G =
|
|
3258
|
+
var G = v.create({ keySize: L + M, hasher: ue }).compute(I, j);
|
|
3259
3259
|
else
|
|
3260
|
-
var G =
|
|
3260
|
+
var G = v.create({ keySize: L + M }).compute(I, j);
|
|
3261
3261
|
var ie = p.create(G.words.slice(L), M * 4);
|
|
3262
3262
|
return G.sigBytes = L * 4, y.create({ key: G, iv: ie, salt: j });
|
|
3263
3263
|
}
|
|
@@ -3366,8 +3366,8 @@ function Ky() {
|
|
|
3366
3366
|
s && (d = this._counter = s.slice(0), this._iv = void 0);
|
|
3367
3367
|
var w = d.slice(0);
|
|
3368
3368
|
p.encryptBlock(w, 0), d[h - 1] = d[h - 1] + 1 | 0;
|
|
3369
|
-
for (var
|
|
3370
|
-
c[f +
|
|
3369
|
+
for (var v = 0; v < h; v++)
|
|
3370
|
+
c[f + v] ^= w[v];
|
|
3371
3371
|
}
|
|
3372
3372
|
});
|
|
3373
3373
|
return a.Decryptor = l, a;
|
|
@@ -3401,9 +3401,9 @@ function Gy() {
|
|
|
3401
3401
|
}
|
|
3402
3402
|
var f = a.Encryptor = a.extend({
|
|
3403
3403
|
processBlock: function(p, h) {
|
|
3404
|
-
var s = this._cipher, d = s.blockSize, w = this._iv,
|
|
3405
|
-
w && (
|
|
3406
|
-
var _ =
|
|
3404
|
+
var s = this._cipher, d = s.blockSize, w = this._iv, v = this._counter;
|
|
3405
|
+
w && (v = this._counter = w.slice(0), this._iv = void 0), c(v);
|
|
3406
|
+
var _ = v.slice(0);
|
|
3407
3407
|
s.encryptBlock(_, 0);
|
|
3408
3408
|
for (var C = 0; C < d; C++)
|
|
3409
3409
|
p[h + C] ^= _[C];
|
|
@@ -3601,7 +3601,7 @@ function r2() {
|
|
|
3601
3601
|
i.exports = a(Me(), kr(), Dr(), lr(), Ct());
|
|
3602
3602
|
})(Be, function(n) {
|
|
3603
3603
|
return function() {
|
|
3604
|
-
var a = n, l = a.lib, c = l.BlockCipher, f = a.algo, p = [], h = [], s = [], d = [], w = [],
|
|
3604
|
+
var a = n, l = a.lib, c = l.BlockCipher, f = a.algo, p = [], h = [], s = [], d = [], w = [], v = [], _ = [], C = [], E = [], b = [];
|
|
3605
3605
|
(function() {
|
|
3606
3606
|
for (var y = [], S = 0; S < 256; S++)
|
|
3607
3607
|
S < 128 ? y[S] = S << 1 : y[S] = S << 1 ^ 283;
|
|
@@ -3609,17 +3609,17 @@ function r2() {
|
|
|
3609
3609
|
var T = R ^ R << 1 ^ R << 2 ^ R << 3 ^ R << 4;
|
|
3610
3610
|
T = T >>> 8 ^ T & 255 ^ 99, p[k] = T, h[T] = k;
|
|
3611
3611
|
var P = y[k], N = y[P], I = y[N], L = y[T] * 257 ^ T * 16843008;
|
|
3612
|
-
s[k] = L << 24 | L >>> 8, d[k] = L << 16 | L >>> 16, w[k] = L << 8 | L >>> 24,
|
|
3612
|
+
s[k] = L << 24 | L >>> 8, d[k] = L << 16 | L >>> 16, w[k] = L << 8 | L >>> 24, v[k] = L;
|
|
3613
3613
|
var L = I * 16843009 ^ N * 65537 ^ P * 257 ^ k * 16843008;
|
|
3614
3614
|
_[T] = L << 24 | L >>> 8, C[T] = L << 16 | L >>> 16, E[T] = L << 8 | L >>> 24, b[T] = L, k ? (k = P ^ y[y[y[I ^ P]]], R ^= y[y[R]]) : k = R = 1;
|
|
3615
3615
|
}
|
|
3616
3616
|
})();
|
|
3617
|
-
var
|
|
3617
|
+
var x = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], m = f.AES = c.extend({
|
|
3618
3618
|
_doReset: function() {
|
|
3619
3619
|
var y;
|
|
3620
3620
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3621
3621
|
for (var S = this._keyPriorReset = this._key, k = S.words, R = S.sigBytes / 4, T = this._nRounds = R + 6, P = (T + 1) * 4, N = this._keySchedule = [], I = 0; I < P; I++)
|
|
3622
|
-
I < R ? N[I] = k[I] : (y = N[I - 1], I % R ? R > 6 && I % R == 4 && (y = p[y >>> 24] << 24 | p[y >>> 16 & 255] << 16 | p[y >>> 8 & 255] << 8 | p[y & 255]) : (y = y << 8 | y >>> 24, y = p[y >>> 24] << 24 | p[y >>> 16 & 255] << 16 | p[y >>> 8 & 255] << 8 | p[y & 255], y ^=
|
|
3622
|
+
I < R ? N[I] = k[I] : (y = N[I - 1], I % R ? R > 6 && I % R == 4 && (y = p[y >>> 24] << 24 | p[y >>> 16 & 255] << 16 | p[y >>> 8 & 255] << 8 | p[y & 255]) : (y = y << 8 | y >>> 24, y = p[y >>> 24] << 24 | p[y >>> 16 & 255] << 16 | p[y >>> 8 & 255] << 8 | p[y & 255], y ^= x[I / R | 0] << 24), N[I] = N[I - R] ^ y);
|
|
3623
3623
|
for (var L = this._invKeySchedule = [], M = 0; M < P; M++) {
|
|
3624
3624
|
var I = P - M;
|
|
3625
3625
|
if (M % 4)
|
|
@@ -3631,7 +3631,7 @@ function r2() {
|
|
|
3631
3631
|
}
|
|
3632
3632
|
},
|
|
3633
3633
|
encryptBlock: function(y, S) {
|
|
3634
|
-
this._doCryptBlock(y, S, this._keySchedule, s, d, w,
|
|
3634
|
+
this._doCryptBlock(y, S, this._keySchedule, s, d, w, v, p);
|
|
3635
3635
|
},
|
|
3636
3636
|
decryptBlock: function(y, S) {
|
|
3637
3637
|
var k = y[S + 1];
|
|
@@ -4296,7 +4296,7 @@ function o2() {
|
|
|
4296
4296
|
2147483678: 131104,
|
|
4297
4297
|
2147483679: 134350848
|
|
4298
4298
|
}
|
|
4299
|
-
],
|
|
4299
|
+
], v = [
|
|
4300
4300
|
4160749569,
|
|
4301
4301
|
528482304,
|
|
4302
4302
|
33030144,
|
|
@@ -4307,7 +4307,7 @@ function o2() {
|
|
|
4307
4307
|
2147483679
|
|
4308
4308
|
], _ = p.DES = f.extend({
|
|
4309
4309
|
_doReset: function() {
|
|
4310
|
-
for (var
|
|
4310
|
+
for (var x = this._key, m = x.words, y = [], S = 0; S < 56; S++) {
|
|
4311
4311
|
var k = h[S] - 1;
|
|
4312
4312
|
y[S] = m[k >>> 5] >>> 31 - k % 32 & 1;
|
|
4313
4313
|
}
|
|
@@ -4322,48 +4322,48 @@ function o2() {
|
|
|
4322
4322
|
for (var I = this._invSubKeys = [], S = 0; S < 16; S++)
|
|
4323
4323
|
I[S] = R[15 - S];
|
|
4324
4324
|
},
|
|
4325
|
-
encryptBlock: function(
|
|
4326
|
-
this._doCryptBlock(
|
|
4325
|
+
encryptBlock: function(x, m) {
|
|
4326
|
+
this._doCryptBlock(x, m, this._subKeys);
|
|
4327
4327
|
},
|
|
4328
|
-
decryptBlock: function(
|
|
4329
|
-
this._doCryptBlock(
|
|
4328
|
+
decryptBlock: function(x, m) {
|
|
4329
|
+
this._doCryptBlock(x, m, this._invSubKeys);
|
|
4330
4330
|
},
|
|
4331
|
-
_doCryptBlock: function(
|
|
4332
|
-
this._lBlock =
|
|
4331
|
+
_doCryptBlock: function(x, m, y) {
|
|
4332
|
+
this._lBlock = x[m], this._rBlock = x[m + 1], C.call(this, 4, 252645135), C.call(this, 16, 65535), E.call(this, 2, 858993459), E.call(this, 8, 16711935), C.call(this, 1, 1431655765);
|
|
4333
4333
|
for (var S = 0; S < 16; S++) {
|
|
4334
4334
|
for (var k = y[S], R = this._lBlock, T = this._rBlock, P = 0, N = 0; N < 8; N++)
|
|
4335
|
-
P |= w[N][((T ^ k[N]) &
|
|
4335
|
+
P |= w[N][((T ^ k[N]) & v[N]) >>> 0];
|
|
4336
4336
|
this._lBlock = T, this._rBlock = R ^ P;
|
|
4337
4337
|
}
|
|
4338
4338
|
var I = this._lBlock;
|
|
4339
|
-
this._lBlock = this._rBlock, this._rBlock = I, C.call(this, 1, 1431655765), E.call(this, 8, 16711935), E.call(this, 2, 858993459), C.call(this, 16, 65535), C.call(this, 4, 252645135),
|
|
4339
|
+
this._lBlock = this._rBlock, this._rBlock = I, C.call(this, 1, 1431655765), E.call(this, 8, 16711935), E.call(this, 2, 858993459), C.call(this, 16, 65535), C.call(this, 4, 252645135), x[m] = this._lBlock, x[m + 1] = this._rBlock;
|
|
4340
4340
|
},
|
|
4341
4341
|
keySize: 64 / 32,
|
|
4342
4342
|
ivSize: 64 / 32,
|
|
4343
4343
|
blockSize: 64 / 32
|
|
4344
4344
|
});
|
|
4345
|
-
function C(
|
|
4346
|
-
var y = (this._lBlock >>>
|
|
4347
|
-
this._rBlock ^= y, this._lBlock ^= y <<
|
|
4345
|
+
function C(x, m) {
|
|
4346
|
+
var y = (this._lBlock >>> x ^ this._rBlock) & m;
|
|
4347
|
+
this._rBlock ^= y, this._lBlock ^= y << x;
|
|
4348
4348
|
}
|
|
4349
|
-
function E(
|
|
4350
|
-
var y = (this._rBlock >>>
|
|
4351
|
-
this._lBlock ^= y, this._rBlock ^= y <<
|
|
4349
|
+
function E(x, m) {
|
|
4350
|
+
var y = (this._rBlock >>> x ^ this._lBlock) & m;
|
|
4351
|
+
this._lBlock ^= y, this._rBlock ^= y << x;
|
|
4352
4352
|
}
|
|
4353
4353
|
a.DES = f._createHelper(_);
|
|
4354
4354
|
var b = p.TripleDES = f.extend({
|
|
4355
4355
|
_doReset: function() {
|
|
4356
|
-
var
|
|
4356
|
+
var x = this._key, m = x.words;
|
|
4357
4357
|
if (m.length !== 2 && m.length !== 4 && m.length < 6)
|
|
4358
4358
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4359
4359
|
var y = m.slice(0, 2), S = m.length < 4 ? m.slice(0, 2) : m.slice(2, 4), k = m.length < 6 ? m.slice(0, 2) : m.slice(4, 6);
|
|
4360
4360
|
this._des1 = _.createEncryptor(c.create(y)), this._des2 = _.createEncryptor(c.create(S)), this._des3 = _.createEncryptor(c.create(k));
|
|
4361
4361
|
},
|
|
4362
|
-
encryptBlock: function(
|
|
4363
|
-
this._des1.encryptBlock(
|
|
4362
|
+
encryptBlock: function(x, m) {
|
|
4363
|
+
this._des1.encryptBlock(x, m), this._des2.decryptBlock(x, m), this._des3.encryptBlock(x, m);
|
|
4364
4364
|
},
|
|
4365
|
-
decryptBlock: function(
|
|
4366
|
-
this._des3.decryptBlock(
|
|
4365
|
+
decryptBlock: function(x, m) {
|
|
4366
|
+
this._des3.decryptBlock(x, m), this._des2.encryptBlock(x, m), this._des1.decryptBlock(x, m);
|
|
4367
4367
|
},
|
|
4368
4368
|
keySize: 192 / 32,
|
|
4369
4369
|
ivSize: 64 / 32,
|
|
@@ -4383,11 +4383,11 @@ function i2() {
|
|
|
4383
4383
|
return function() {
|
|
4384
4384
|
var a = n, l = a.lib, c = l.StreamCipher, f = a.algo, p = f.RC4 = c.extend({
|
|
4385
4385
|
_doReset: function() {
|
|
4386
|
-
for (var d = this._key, w = d.words,
|
|
4386
|
+
for (var d = this._key, w = d.words, v = d.sigBytes, _ = this._S = [], C = 0; C < 256; C++)
|
|
4387
4387
|
_[C] = C;
|
|
4388
4388
|
for (var C = 0, E = 0; C < 256; C++) {
|
|
4389
|
-
var b = C %
|
|
4390
|
-
E = (E + _[C] +
|
|
4389
|
+
var b = C % v, x = w[b >>> 2] >>> 24 - b % 4 * 8 & 255;
|
|
4390
|
+
E = (E + _[C] + x) % 256;
|
|
4391
4391
|
var m = _[C];
|
|
4392
4392
|
_[C] = _[E], _[E] = m;
|
|
4393
4393
|
}
|
|
@@ -4400,12 +4400,12 @@ function i2() {
|
|
|
4400
4400
|
ivSize: 0
|
|
4401
4401
|
});
|
|
4402
4402
|
function h() {
|
|
4403
|
-
for (var d = this._S, w = this._i,
|
|
4404
|
-
w = (w + 1) % 256,
|
|
4403
|
+
for (var d = this._S, w = this._i, v = this._j, _ = 0, C = 0; C < 4; C++) {
|
|
4404
|
+
w = (w + 1) % 256, v = (v + d[w]) % 256;
|
|
4405
4405
|
var E = d[w];
|
|
4406
|
-
d[w] = d[
|
|
4406
|
+
d[w] = d[v], d[v] = E, _ |= d[(d[w] + d[v]) % 256] << 24 - C * 8;
|
|
4407
4407
|
}
|
|
4408
|
-
return this._i = w, this._j =
|
|
4408
|
+
return this._i = w, this._j = v, _;
|
|
4409
4409
|
}
|
|
4410
4410
|
a.RC4 = c._createHelper(p);
|
|
4411
4411
|
var s = f.RC4Drop = p.extend({
|
|
@@ -4437,26 +4437,26 @@ function a2() {
|
|
|
4437
4437
|
return function() {
|
|
4438
4438
|
var a = n, l = a.lib, c = l.StreamCipher, f = a.algo, p = [], h = [], s = [], d = f.Rabbit = c.extend({
|
|
4439
4439
|
_doReset: function() {
|
|
4440
|
-
for (var
|
|
4441
|
-
|
|
4440
|
+
for (var v = this._key.words, _ = this.cfg.iv, C = 0; C < 4; C++)
|
|
4441
|
+
v[C] = (v[C] << 8 | v[C] >>> 24) & 16711935 | (v[C] << 24 | v[C] >>> 8) & 4278255360;
|
|
4442
4442
|
var E = this._X = [
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4443
|
+
v[0],
|
|
4444
|
+
v[3] << 16 | v[2] >>> 16,
|
|
4445
|
+
v[1],
|
|
4446
|
+
v[0] << 16 | v[3] >>> 16,
|
|
4447
|
+
v[2],
|
|
4448
|
+
v[1] << 16 | v[0] >>> 16,
|
|
4449
|
+
v[3],
|
|
4450
|
+
v[2] << 16 | v[1] >>> 16
|
|
4451
4451
|
], b = this._C = [
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4452
|
+
v[2] << 16 | v[2] >>> 16,
|
|
4453
|
+
v[0] & 4294901760 | v[1] & 65535,
|
|
4454
|
+
v[3] << 16 | v[3] >>> 16,
|
|
4455
|
+
v[1] & 4294901760 | v[2] & 65535,
|
|
4456
|
+
v[0] << 16 | v[0] >>> 16,
|
|
4457
|
+
v[2] & 4294901760 | v[3] & 65535,
|
|
4458
|
+
v[1] << 16 | v[1] >>> 16,
|
|
4459
|
+
v[3] & 4294901760 | v[0] & 65535
|
|
4460
4460
|
];
|
|
4461
4461
|
this._b = 0;
|
|
4462
4462
|
for (var C = 0; C < 4; C++)
|
|
@@ -4464,30 +4464,30 @@ function a2() {
|
|
|
4464
4464
|
for (var C = 0; C < 8; C++)
|
|
4465
4465
|
b[C] ^= E[C + 4 & 7];
|
|
4466
4466
|
if (_) {
|
|
4467
|
-
var
|
|
4467
|
+
var x = _.words, m = x[0], y = x[1], S = (m << 8 | m >>> 24) & 16711935 | (m << 24 | m >>> 8) & 4278255360, k = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360, R = S >>> 16 | k & 4294901760, T = k << 16 | S & 65535;
|
|
4468
4468
|
b[0] ^= S, b[1] ^= R, b[2] ^= k, b[3] ^= T, b[4] ^= S, b[5] ^= R, b[6] ^= k, b[7] ^= T;
|
|
4469
4469
|
for (var C = 0; C < 4; C++)
|
|
4470
4470
|
w.call(this);
|
|
4471
4471
|
}
|
|
4472
4472
|
},
|
|
4473
|
-
_doProcessBlock: function(
|
|
4473
|
+
_doProcessBlock: function(v, _) {
|
|
4474
4474
|
var C = this._X;
|
|
4475
4475
|
w.call(this), p[0] = C[0] ^ C[5] >>> 16 ^ C[3] << 16, p[1] = C[2] ^ C[7] >>> 16 ^ C[5] << 16, p[2] = C[4] ^ C[1] >>> 16 ^ C[7] << 16, p[3] = C[6] ^ C[3] >>> 16 ^ C[1] << 16;
|
|
4476
4476
|
for (var E = 0; E < 4; E++)
|
|
4477
|
-
p[E] = (p[E] << 8 | p[E] >>> 24) & 16711935 | (p[E] << 24 | p[E] >>> 8) & 4278255360,
|
|
4477
|
+
p[E] = (p[E] << 8 | p[E] >>> 24) & 16711935 | (p[E] << 24 | p[E] >>> 8) & 4278255360, v[_ + E] ^= p[E];
|
|
4478
4478
|
},
|
|
4479
4479
|
blockSize: 128 / 32,
|
|
4480
4480
|
ivSize: 64 / 32
|
|
4481
4481
|
});
|
|
4482
4482
|
function w() {
|
|
4483
|
-
for (var
|
|
4483
|
+
for (var v = this._X, _ = this._C, C = 0; C < 8; C++)
|
|
4484
4484
|
h[C] = _[C];
|
|
4485
4485
|
_[0] = _[0] + 1295307597 + this._b | 0, _[1] = _[1] + 3545052371 + (_[0] >>> 0 < h[0] >>> 0 ? 1 : 0) | 0, _[2] = _[2] + 886263092 + (_[1] >>> 0 < h[1] >>> 0 ? 1 : 0) | 0, _[3] = _[3] + 1295307597 + (_[2] >>> 0 < h[2] >>> 0 ? 1 : 0) | 0, _[4] = _[4] + 3545052371 + (_[3] >>> 0 < h[3] >>> 0 ? 1 : 0) | 0, _[5] = _[5] + 886263092 + (_[4] >>> 0 < h[4] >>> 0 ? 1 : 0) | 0, _[6] = _[6] + 1295307597 + (_[5] >>> 0 < h[5] >>> 0 ? 1 : 0) | 0, _[7] = _[7] + 3545052371 + (_[6] >>> 0 < h[6] >>> 0 ? 1 : 0) | 0, this._b = _[7] >>> 0 < h[7] >>> 0 ? 1 : 0;
|
|
4486
4486
|
for (var C = 0; C < 8; C++) {
|
|
4487
|
-
var E =
|
|
4487
|
+
var E = v[C] + _[C], b = E & 65535, x = E >>> 16, m = ((b * b >>> 17) + b * x >>> 15) + x * x, y = ((E & 4294901760) * E | 0) + ((E & 65535) * E | 0);
|
|
4488
4488
|
s[C] = m ^ y;
|
|
4489
4489
|
}
|
|
4490
|
-
|
|
4490
|
+
v[0] = s[0] + (s[7] << 16 | s[7] >>> 16) + (s[6] << 16 | s[6] >>> 16) | 0, v[1] = s[1] + (s[0] << 8 | s[0] >>> 24) + s[7] | 0, v[2] = s[2] + (s[1] << 16 | s[1] >>> 16) + (s[0] << 16 | s[0] >>> 16) | 0, v[3] = s[3] + (s[2] << 8 | s[2] >>> 24) + s[1] | 0, v[4] = s[4] + (s[3] << 16 | s[3] >>> 16) + (s[2] << 16 | s[2] >>> 16) | 0, v[5] = s[5] + (s[4] << 8 | s[4] >>> 24) + s[3] | 0, v[6] = s[6] + (s[5] << 16 | s[5] >>> 16) + (s[4] << 16 | s[4] >>> 16) | 0, v[7] = s[7] + (s[6] << 8 | s[6] >>> 24) + s[5] | 0;
|
|
4491
4491
|
}
|
|
4492
4492
|
a.Rabbit = c._createHelper(d);
|
|
4493
4493
|
}(), n.Rabbit;
|
|
@@ -4503,24 +4503,24 @@ function s2() {
|
|
|
4503
4503
|
return function() {
|
|
4504
4504
|
var a = n, l = a.lib, c = l.StreamCipher, f = a.algo, p = [], h = [], s = [], d = f.RabbitLegacy = c.extend({
|
|
4505
4505
|
_doReset: function() {
|
|
4506
|
-
var
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4506
|
+
var v = this._key.words, _ = this.cfg.iv, C = this._X = [
|
|
4507
|
+
v[0],
|
|
4508
|
+
v[3] << 16 | v[2] >>> 16,
|
|
4509
|
+
v[1],
|
|
4510
|
+
v[0] << 16 | v[3] >>> 16,
|
|
4511
|
+
v[2],
|
|
4512
|
+
v[1] << 16 | v[0] >>> 16,
|
|
4513
|
+
v[3],
|
|
4514
|
+
v[2] << 16 | v[1] >>> 16
|
|
4515
4515
|
], E = this._C = [
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4516
|
+
v[2] << 16 | v[2] >>> 16,
|
|
4517
|
+
v[0] & 4294901760 | v[1] & 65535,
|
|
4518
|
+
v[3] << 16 | v[3] >>> 16,
|
|
4519
|
+
v[1] & 4294901760 | v[2] & 65535,
|
|
4520
|
+
v[0] << 16 | v[0] >>> 16,
|
|
4521
|
+
v[2] & 4294901760 | v[3] & 65535,
|
|
4522
|
+
v[1] << 16 | v[1] >>> 16,
|
|
4523
|
+
v[3] & 4294901760 | v[0] & 65535
|
|
4524
4524
|
];
|
|
4525
4525
|
this._b = 0;
|
|
4526
4526
|
for (var b = 0; b < 4; b++)
|
|
@@ -4528,30 +4528,30 @@ function s2() {
|
|
|
4528
4528
|
for (var b = 0; b < 8; b++)
|
|
4529
4529
|
E[b] ^= C[b + 4 & 7];
|
|
4530
4530
|
if (_) {
|
|
4531
|
-
var
|
|
4531
|
+
var x = _.words, m = x[0], y = x[1], S = (m << 8 | m >>> 24) & 16711935 | (m << 24 | m >>> 8) & 4278255360, k = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360, R = S >>> 16 | k & 4294901760, T = k << 16 | S & 65535;
|
|
4532
4532
|
E[0] ^= S, E[1] ^= R, E[2] ^= k, E[3] ^= T, E[4] ^= S, E[5] ^= R, E[6] ^= k, E[7] ^= T;
|
|
4533
4533
|
for (var b = 0; b < 4; b++)
|
|
4534
4534
|
w.call(this);
|
|
4535
4535
|
}
|
|
4536
4536
|
},
|
|
4537
|
-
_doProcessBlock: function(
|
|
4537
|
+
_doProcessBlock: function(v, _) {
|
|
4538
4538
|
var C = this._X;
|
|
4539
4539
|
w.call(this), p[0] = C[0] ^ C[5] >>> 16 ^ C[3] << 16, p[1] = C[2] ^ C[7] >>> 16 ^ C[5] << 16, p[2] = C[4] ^ C[1] >>> 16 ^ C[7] << 16, p[3] = C[6] ^ C[3] >>> 16 ^ C[1] << 16;
|
|
4540
4540
|
for (var E = 0; E < 4; E++)
|
|
4541
|
-
p[E] = (p[E] << 8 | p[E] >>> 24) & 16711935 | (p[E] << 24 | p[E] >>> 8) & 4278255360,
|
|
4541
|
+
p[E] = (p[E] << 8 | p[E] >>> 24) & 16711935 | (p[E] << 24 | p[E] >>> 8) & 4278255360, v[_ + E] ^= p[E];
|
|
4542
4542
|
},
|
|
4543
4543
|
blockSize: 128 / 32,
|
|
4544
4544
|
ivSize: 64 / 32
|
|
4545
4545
|
});
|
|
4546
4546
|
function w() {
|
|
4547
|
-
for (var
|
|
4547
|
+
for (var v = this._X, _ = this._C, C = 0; C < 8; C++)
|
|
4548
4548
|
h[C] = _[C];
|
|
4549
4549
|
_[0] = _[0] + 1295307597 + this._b | 0, _[1] = _[1] + 3545052371 + (_[0] >>> 0 < h[0] >>> 0 ? 1 : 0) | 0, _[2] = _[2] + 886263092 + (_[1] >>> 0 < h[1] >>> 0 ? 1 : 0) | 0, _[3] = _[3] + 1295307597 + (_[2] >>> 0 < h[2] >>> 0 ? 1 : 0) | 0, _[4] = _[4] + 3545052371 + (_[3] >>> 0 < h[3] >>> 0 ? 1 : 0) | 0, _[5] = _[5] + 886263092 + (_[4] >>> 0 < h[4] >>> 0 ? 1 : 0) | 0, _[6] = _[6] + 1295307597 + (_[5] >>> 0 < h[5] >>> 0 ? 1 : 0) | 0, _[7] = _[7] + 3545052371 + (_[6] >>> 0 < h[6] >>> 0 ? 1 : 0) | 0, this._b = _[7] >>> 0 < h[7] >>> 0 ? 1 : 0;
|
|
4550
4550
|
for (var C = 0; C < 8; C++) {
|
|
4551
|
-
var E =
|
|
4551
|
+
var E = v[C] + _[C], b = E & 65535, x = E >>> 16, m = ((b * b >>> 17) + b * x >>> 15) + x * x, y = ((E & 4294901760) * E | 0) + ((E & 65535) * E | 0);
|
|
4552
4552
|
s[C] = m ^ y;
|
|
4553
4553
|
}
|
|
4554
|
-
|
|
4554
|
+
v[0] = s[0] + (s[7] << 16 | s[7] >>> 16) + (s[6] << 16 | s[6] >>> 16) | 0, v[1] = s[1] + (s[0] << 8 | s[0] >>> 24) + s[7] | 0, v[2] = s[2] + (s[1] << 16 | s[1] >>> 16) + (s[0] << 16 | s[0] >>> 16) | 0, v[3] = s[3] + (s[2] << 8 | s[2] >>> 24) + s[1] | 0, v[4] = s[4] + (s[3] << 16 | s[3] >>> 16) + (s[2] << 16 | s[2] >>> 16) | 0, v[5] = s[5] + (s[4] << 8 | s[4] >>> 24) + s[3] | 0, v[6] = s[6] + (s[5] << 16 | s[5] >>> 16) + (s[4] << 16 | s[4] >>> 16) | 0, v[7] = s[7] + (s[6] << 8 | s[6] >>> 24) + s[5] | 0;
|
|
4555
4555
|
}
|
|
4556
4556
|
a.RabbitLegacy = c._createHelper(d);
|
|
4557
4557
|
}(), n.RabbitLegacy;
|
|
@@ -5623,23 +5623,23 @@ function l2() {
|
|
|
5623
5623
|
pbox: [],
|
|
5624
5624
|
sbox: []
|
|
5625
5625
|
};
|
|
5626
|
-
function w(b,
|
|
5627
|
-
let m =
|
|
5626
|
+
function w(b, x) {
|
|
5627
|
+
let m = x >> 24 & 255, y = x >> 16 & 255, S = x >> 8 & 255, k = x & 255, R = b.sbox[0][m] + b.sbox[1][y];
|
|
5628
5628
|
return R = R ^ b.sbox[2][S], R = R + b.sbox[3][k], R;
|
|
5629
5629
|
}
|
|
5630
|
-
function
|
|
5631
|
-
let y =
|
|
5630
|
+
function v(b, x, m) {
|
|
5631
|
+
let y = x, S = m, k;
|
|
5632
5632
|
for (let R = 0; R < p; ++R)
|
|
5633
5633
|
y = y ^ b.pbox[R], S = w(b, y) ^ S, k = y, y = S, S = k;
|
|
5634
5634
|
return k = y, y = S, S = k, S = S ^ b.pbox[p], y = y ^ b.pbox[p + 1], { left: y, right: S };
|
|
5635
5635
|
}
|
|
5636
|
-
function _(b,
|
|
5637
|
-
let y =
|
|
5636
|
+
function _(b, x, m) {
|
|
5637
|
+
let y = x, S = m, k;
|
|
5638
5638
|
for (let R = p + 1; R > 1; --R)
|
|
5639
5639
|
y = y ^ b.pbox[R], S = w(b, y) ^ S, k = y, y = S, S = k;
|
|
5640
5640
|
return k = y, y = S, S = k, S = S ^ b.pbox[1], y = y ^ b.pbox[0], { left: y, right: S };
|
|
5641
5641
|
}
|
|
5642
|
-
function C(b,
|
|
5642
|
+
function C(b, x, m) {
|
|
5643
5643
|
for (let T = 0; T < 4; T++) {
|
|
5644
5644
|
b.sbox[T] = [];
|
|
5645
5645
|
for (let P = 0; P < 256; P++)
|
|
@@ -5647,29 +5647,29 @@ function l2() {
|
|
|
5647
5647
|
}
|
|
5648
5648
|
let y = 0;
|
|
5649
5649
|
for (let T = 0; T < p + 2; T++)
|
|
5650
|
-
b.pbox[T] = h[T] ^
|
|
5650
|
+
b.pbox[T] = h[T] ^ x[y], y++, y >= m && (y = 0);
|
|
5651
5651
|
let S = 0, k = 0, R = 0;
|
|
5652
5652
|
for (let T = 0; T < p + 2; T += 2)
|
|
5653
|
-
R =
|
|
5653
|
+
R = v(b, S, k), S = R.left, k = R.right, b.pbox[T] = S, b.pbox[T + 1] = k;
|
|
5654
5654
|
for (let T = 0; T < 4; T++)
|
|
5655
5655
|
for (let P = 0; P < 256; P += 2)
|
|
5656
|
-
R =
|
|
5656
|
+
R = v(b, S, k), S = R.left, k = R.right, b.sbox[T][P] = S, b.sbox[T][P + 1] = k;
|
|
5657
5657
|
return !0;
|
|
5658
5658
|
}
|
|
5659
5659
|
var E = f.Blowfish = c.extend({
|
|
5660
5660
|
_doReset: function() {
|
|
5661
5661
|
if (this._keyPriorReset !== this._key) {
|
|
5662
|
-
var b = this._keyPriorReset = this._key,
|
|
5663
|
-
C(d,
|
|
5662
|
+
var b = this._keyPriorReset = this._key, x = b.words, m = b.sigBytes / 4;
|
|
5663
|
+
C(d, x, m);
|
|
5664
5664
|
}
|
|
5665
5665
|
},
|
|
5666
|
-
encryptBlock: function(b,
|
|
5667
|
-
var m =
|
|
5668
|
-
b[
|
|
5666
|
+
encryptBlock: function(b, x) {
|
|
5667
|
+
var m = v(d, b[x], b[x + 1]);
|
|
5668
|
+
b[x] = m.left, b[x + 1] = m.right;
|
|
5669
5669
|
},
|
|
5670
|
-
decryptBlock: function(b,
|
|
5671
|
-
var m = _(d, b[
|
|
5672
|
-
b[
|
|
5670
|
+
decryptBlock: function(b, x) {
|
|
5671
|
+
var m = _(d, b[x], b[x + 1]);
|
|
5672
|
+
b[x] = m.left, b[x + 1] = m.right;
|
|
5673
5673
|
},
|
|
5674
5674
|
blockSize: 64 / 32,
|
|
5675
5675
|
keySize: 128 / 32,
|
|
@@ -5812,10 +5812,10 @@ const m2 = {
|
|
|
5812
5812
|
iso10126: "iso10126",
|
|
5813
5813
|
ansix923: "ansix923"
|
|
5814
5814
|
}, l = { hex: "hex", base64: "base64" };
|
|
5815
|
-
let c = i.encryptType || "", f = n[c.toLowerCase()], p = i.encryptMode || "", h = i.encryptKey || "", s = i.encryptOffset || "", d = i.encryptPadding || "", w = a[d.toLowerCase()],
|
|
5815
|
+
let c = i.encryptType || "", f = n[c.toLowerCase()], p = i.encryptMode || "", h = i.encryptKey || "", s = i.encryptOffset || "", d = i.encryptPadding || "", w = a[d.toLowerCase()], v = i.codingMode || "", _ = l[v.toLowerCase()], E = (Number(i.encryptKeyLength) || 0) / 8;
|
|
5816
5816
|
return new Promise((b) => {
|
|
5817
|
-
f !== "aes" && f !== "des" ? b({ error: "加密类型出错==", value: null }) : m2[f](r, h, { mode: p, keySize: E, padding: w, encoding: _, iv: s }, (
|
|
5818
|
-
b(
|
|
5817
|
+
f !== "aes" && f !== "des" ? b({ error: "加密类型出错==", value: null }) : m2[f](r, h, { mode: p, keySize: E, padding: w, encoding: _, iv: s }, (x) => {
|
|
5818
|
+
b(x);
|
|
5819
5819
|
});
|
|
5820
5820
|
});
|
|
5821
5821
|
};
|
|
@@ -6462,9 +6462,9 @@ function qi(i, r, n, a, l, c) {
|
|
|
6462
6462
|
}) : $8(i) && i.forEach(function(_, C) {
|
|
6463
6463
|
f.set(C, qi(_, r, n, C, i, c));
|
|
6464
6464
|
});
|
|
6465
|
-
var w = Zw,
|
|
6466
|
-
return zb(
|
|
6467
|
-
|
|
6465
|
+
var w = Zw, v = p ? void 0 : w(i);
|
|
6466
|
+
return zb(v || i, function(_, C) {
|
|
6467
|
+
v && (C = _, _ = i[C]), jb(f, C, qi(_, r, n, C, i, c));
|
|
6468
6468
|
}), f;
|
|
6469
6469
|
}
|
|
6470
6470
|
var c4 = 1, u4 = 4;
|
|
@@ -6510,11 +6510,11 @@ const Xi = (i, r = "") => {
|
|
|
6510
6510
|
return { left: a, right: l };
|
|
6511
6511
|
}, p4 = (i, r, n) => {
|
|
6512
6512
|
var w;
|
|
6513
|
-
const a = nn(r).filter((
|
|
6513
|
+
const a = nn(r).filter((v) => v.routeUrl).filter((v) => !(v != null && v.disable) && !(v != null && v.expired)), c = (((w = Dt()) == null ? void 0 : w.tabMap) ?? {})[i] ?? [], { left: f, right: p } = d4(c, n), h = c.filter((v) => a.find((_) => _.code === v.code)).map((v) => {
|
|
6514
6514
|
var _, C;
|
|
6515
6515
|
return {
|
|
6516
|
-
...
|
|
6517
|
-
name: ((_ = a.find((E) => E.code ===
|
|
6516
|
+
...v,
|
|
6517
|
+
name: ((_ = a.find((E) => E.code === v.code)) == null ? void 0 : _.tabName) ?? ((C = a.find((E) => E.code === v.code)) == null ? void 0 : C.name) ?? v.name
|
|
6518
6518
|
};
|
|
6519
6519
|
});
|
|
6520
6520
|
if (!f.length && !p.length || !h.length)
|
|
@@ -6526,12 +6526,12 @@ const Xi = (i, r = "") => {
|
|
|
6526
6526
|
]), F0(i);
|
|
6527
6527
|
let s = null;
|
|
6528
6528
|
if (p.length) {
|
|
6529
|
-
const
|
|
6530
|
-
|
|
6529
|
+
const v = p.find((_) => h.map((C) => C.code).includes(_.code));
|
|
6530
|
+
v && (s = v);
|
|
6531
6531
|
}
|
|
6532
6532
|
if (!s && f.length) {
|
|
6533
|
-
const
|
|
6534
|
-
|
|
6533
|
+
const v = f.reverse().find((_) => h.map((C) => C.code).includes(_.code));
|
|
6534
|
+
v && (s = v);
|
|
6535
6535
|
}
|
|
6536
6536
|
return s ? (Vt([
|
|
6537
6537
|
{
|
|
@@ -6547,7 +6547,7 @@ const Xi = (i, r = "") => {
|
|
|
6547
6547
|
value: s
|
|
6548
6548
|
},
|
|
6549
6549
|
{ key: `tabMap:${i}`, value: h }
|
|
6550
|
-
]), bd(s.code), { currentMenu: a.find((
|
|
6550
|
+
]), bd(s.code), { currentMenu: a.find((v) => v.code === s.code), currentTab: s }) : (Vt([
|
|
6551
6551
|
{ key: `preTab:${i}`, value: {} },
|
|
6552
6552
|
{ key: `tabMap:${i}`, value: [] }
|
|
6553
6553
|
]), F0(i));
|
|
@@ -6570,46 +6570,46 @@ const Xi = (i, r = "") => {
|
|
|
6570
6570
|
f != null && f.children && f.children.length && (f.originalChildren = no(f.children)), (f != null && f.expired || f != null && f.disable) && (f.children = []);
|
|
6571
6571
|
}), { menus: l, originalMenus: c };
|
|
6572
6572
|
}, h4 = async (i) => {
|
|
6573
|
-
var
|
|
6573
|
+
var v, _, C, E, b;
|
|
6574
6574
|
let { microApp: r = null, menuCode: n = "", menuPath: a = "", route: l = {} } = i;
|
|
6575
|
-
const c = ((
|
|
6575
|
+
const c = ((v = l.meta) == null ? void 0 : v.showLayout) ?? !0;
|
|
6576
6576
|
let f = ((_ = l.query) == null ? void 0 : _.showLayout) ?? !0;
|
|
6577
6577
|
f === "false" && (f = !1);
|
|
6578
6578
|
let p = (r == null ? void 0 : r.code) ?? "";
|
|
6579
6579
|
if (!p) return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
|
|
6580
6580
|
let h = [], s = [];
|
|
6581
6581
|
const d = Oe().subAppList ?? [];
|
|
6582
|
-
if (d.length && (h = ((C = d.find((
|
|
6583
|
-
const { menus:
|
|
6584
|
-
h =
|
|
6582
|
+
if (d.length && (h = ((C = d.find((x) => x.code === r.code)) == null ? void 0 : C.menus) ?? []), !h.length) {
|
|
6583
|
+
const { menus: x, originalMenus: m } = await ua(p);
|
|
6584
|
+
h = x ?? [], s = m ?? [];
|
|
6585
6585
|
}
|
|
6586
6586
|
if (!h.length && (!c || !f))
|
|
6587
6587
|
return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
|
|
6588
6588
|
if (r.routeUrl === "iot/iot") {
|
|
6589
|
-
const { instanceInfo:
|
|
6590
|
-
if (
|
|
6589
|
+
const { instanceInfo: x } = await U2();
|
|
6590
|
+
if (x) {
|
|
6591
6591
|
let m = !1;
|
|
6592
6592
|
h.forEach((S) => {
|
|
6593
|
-
S.routeUrl === "/deviceInstance" && (S.fixed = !0, S.divise = !0, S.menuCode = S.code, S.tagName = S.tabName = ce("实例"), S.name =
|
|
6593
|
+
S.routeUrl === "/deviceInstance" && (S.fixed = !0, S.divise = !0, S.menuCode = S.code, S.tagName = S.tabName = ce("实例"), S.name = x.instanceName, S.leftIcon = "change2", S.rightIcon = "change2");
|
|
6594
6594
|
});
|
|
6595
|
-
const y = J_(
|
|
6596
|
-
if (m = A0().endOf("day") > A0(y).endOf("day"), !n && !a &&
|
|
6595
|
+
const y = J_(x.endTime) || x.endTime == 0 || x.endTime === 253370736e6 || x.endTime === "253370736000000" ? "-" : Number(x.endTime);
|
|
6596
|
+
if (m = A0().endOf("day") > A0(y).endOf("day"), !n && !a && x.id && !m) {
|
|
6597
6597
|
const k = nn(h).find((R) => R.routeUrl === "/statisticalReport");
|
|
6598
6598
|
k && (n = k.code);
|
|
6599
6599
|
}
|
|
6600
6600
|
}
|
|
6601
6601
|
}
|
|
6602
6602
|
if (c && f) {
|
|
6603
|
-
const
|
|
6603
|
+
const x = nn(h), y = ((E = (Dt().tabMap ?? {})[r.code]) == null ? void 0 : E.map((S) => {
|
|
6604
6604
|
var k, R;
|
|
6605
6605
|
return {
|
|
6606
6606
|
...S,
|
|
6607
|
-
name: ((k =
|
|
6607
|
+
name: ((k = x.find((T) => T.code === S.code)) == null ? void 0 : k.tabName) ?? ((R = x.find((T) => T.code === S.code)) == null ? void 0 : R.name) ?? S.name
|
|
6608
6608
|
};
|
|
6609
6609
|
})) ?? [];
|
|
6610
6610
|
if (y.length) {
|
|
6611
6611
|
const S = y.filter(
|
|
6612
|
-
(k) => n && n === k.code || a && a === `/${k.applicationPath}${k.path}`.replace(/\/\//g, "/") ||
|
|
6612
|
+
(k) => n && n === k.code || a && a === `/${k.applicationPath}${k.path}`.replace(/\/\//g, "/") || x.map((R) => R.code).includes(k.code)
|
|
6613
6613
|
);
|
|
6614
6614
|
Vt([
|
|
6615
6615
|
{
|
|
@@ -6620,12 +6620,12 @@ const Xi = (i, r = "") => {
|
|
|
6620
6620
|
}
|
|
6621
6621
|
}
|
|
6622
6622
|
if (!n && a) {
|
|
6623
|
-
const
|
|
6623
|
+
const x = nn(h).find((m) => {
|
|
6624
6624
|
const y = `/${m.applicationPath}${m.routeUrl}`.replace(/\/\//g, "/");
|
|
6625
6625
|
return m.applicationPath && m.routeUrl && (a === y || a.startsWith(`/${y}/`));
|
|
6626
6626
|
});
|
|
6627
|
-
if (
|
|
6628
|
-
n =
|
|
6627
|
+
if (x)
|
|
6628
|
+
n = x.code;
|
|
6629
6629
|
else
|
|
6630
6630
|
return {
|
|
6631
6631
|
menuConfig: h,
|
|
@@ -6638,15 +6638,15 @@ const Xi = (i, r = "") => {
|
|
|
6638
6638
|
if (!w) {
|
|
6639
6639
|
if (!c || !f)
|
|
6640
6640
|
return { menuConfig: h, currentApp: null, currentMenu: null, query: { ...l.query, app: p } };
|
|
6641
|
-
const
|
|
6642
|
-
|
|
6641
|
+
const x = p4(r.code, h, n);
|
|
6642
|
+
x != null && x.currentApp && (r = x.currentApp), x != null && x.currentMenu && (w = x.currentMenu), x != null && x.currentTab && (l.query = ((b = x.currentTab) == null ? void 0 : b.query) ?? {});
|
|
6643
6643
|
}
|
|
6644
6644
|
if ((r == null ? void 0 : r.routeUrl) === jt)
|
|
6645
6645
|
return { menuConfig: [], currentApp: r, currentMenu: null, query: null };
|
|
6646
6646
|
if (w) {
|
|
6647
|
-
const
|
|
6647
|
+
const x = `/${w.applicationPath}${w.routeUrl}`;
|
|
6648
6648
|
let m = "";
|
|
6649
|
-
a && a.startsWith(
|
|
6649
|
+
a && a.startsWith(x) && a !== x && (m = a);
|
|
6650
6650
|
const y = { ...l.query, app: p, menu: w.code };
|
|
6651
6651
|
if (c && f) {
|
|
6652
6652
|
const S = { ...r, currentMenuCode: w.code, menus: h, originalMenus: s };
|
|
@@ -6708,8 +6708,8 @@ const ep = async () => {
|
|
|
6708
6708
|
if (r = s, r && r.length) {
|
|
6709
6709
|
const d = ((f = Kt()) == null ? void 0 : f.id) || 0;
|
|
6710
6710
|
if (d && (n = r.find((w) => w.id === d)), !d || !n) {
|
|
6711
|
-
const w = i.tenant.id ?? "",
|
|
6712
|
-
|
|
6711
|
+
const w = i.tenant.id ?? "", v = r.filter((_) => _.tenant === w);
|
|
6712
|
+
v && v.length && (n = v[0]);
|
|
6713
6713
|
}
|
|
6714
6714
|
}
|
|
6715
6715
|
} else {
|
|
@@ -6756,8 +6756,8 @@ const ep = async () => {
|
|
|
6756
6756
|
n.value = hn.value.style === 1, a.value = hn.value.style === 2, l.value = hn.value.skinStyle === "default", c.value = hn.value.skinStyle === "kjl", f.value = hn.value.skinStyle === "cjb", p.value = hn.value.skinStyle === "ssl", h.value = hn.value.skinStyle === "dkh";
|
|
6757
6757
|
};
|
|
6758
6758
|
An(s);
|
|
6759
|
-
const d = (b,
|
|
6760
|
-
b === "menu" ? (n.value =
|
|
6759
|
+
const d = (b, x) => {
|
|
6760
|
+
b === "menu" ? (n.value = x === 1, a.value = x === 2) : (l.value = x === 1, c.value = x === 2, f.value = x === 3, p.value = x === 4, h.value = x === 5);
|
|
6761
6761
|
}, w = () => {
|
|
6762
6762
|
const b = {
|
|
6763
6763
|
default: l.value,
|
|
@@ -6766,8 +6766,8 @@ const ep = async () => {
|
|
|
6766
6766
|
ssl: p.value,
|
|
6767
6767
|
dkh: h.value
|
|
6768
6768
|
};
|
|
6769
|
-
return Object.keys(b).find((
|
|
6770
|
-
},
|
|
6769
|
+
return Object.keys(b).find((x) => b[x] === !0) ?? "default";
|
|
6770
|
+
}, v = () => ({
|
|
6771
6771
|
style: n.value ? 1 : 2,
|
|
6772
6772
|
skinStyle: w()
|
|
6773
6773
|
}), _ = Nt(() => {
|
|
@@ -6784,8 +6784,8 @@ const ep = async () => {
|
|
|
6784
6784
|
};
|
|
6785
6785
|
return r({
|
|
6786
6786
|
init: s,
|
|
6787
|
-
getResult:
|
|
6788
|
-
}), (b,
|
|
6787
|
+
getResult: v
|
|
6788
|
+
}), (b, x) => Dn((_e(), Ke(
|
|
6789
6789
|
"div",
|
|
6790
6790
|
tA,
|
|
6791
6791
|
[
|
|
@@ -6800,7 +6800,7 @@ const ep = async () => {
|
|
|
6800
6800
|
se("div", oA, [
|
|
6801
6801
|
se("div", {
|
|
6802
6802
|
class: "item-content",
|
|
6803
|
-
onClick:
|
|
6803
|
+
onClick: x[1] || (x[1] = (m) => d("menu", 1))
|
|
6804
6804
|
}, [
|
|
6805
6805
|
se("img", {
|
|
6806
6806
|
src: D(O4),
|
|
@@ -6810,7 +6810,7 @@ const ep = async () => {
|
|
|
6810
6810
|
}, null, 8, iA),
|
|
6811
6811
|
ae(D(_r), {
|
|
6812
6812
|
modelValue: n.value,
|
|
6813
|
-
"onUpdate:modelValue":
|
|
6813
|
+
"onUpdate:modelValue": x[0] || (x[0] = (m) => n.value = m)
|
|
6814
6814
|
}, {
|
|
6815
6815
|
default: fe(() => [
|
|
6816
6816
|
ze(
|
|
@@ -6825,7 +6825,7 @@ const ep = async () => {
|
|
|
6825
6825
|
]),
|
|
6826
6826
|
se("div", {
|
|
6827
6827
|
class: "item-content",
|
|
6828
|
-
onClick:
|
|
6828
|
+
onClick: x[3] || (x[3] = (m) => d("menu", 2))
|
|
6829
6829
|
}, [
|
|
6830
6830
|
se("img", {
|
|
6831
6831
|
src: D(U4),
|
|
@@ -6835,7 +6835,7 @@ const ep = async () => {
|
|
|
6835
6835
|
}, null, 8, aA),
|
|
6836
6836
|
ae(D(_r), {
|
|
6837
6837
|
modelValue: a.value,
|
|
6838
|
-
"onUpdate:modelValue":
|
|
6838
|
+
"onUpdate:modelValue": x[2] || (x[2] = (m) => a.value = m)
|
|
6839
6839
|
}, {
|
|
6840
6840
|
default: fe(() => [
|
|
6841
6841
|
ze(
|
|
@@ -6861,7 +6861,7 @@ const ep = async () => {
|
|
|
6861
6861
|
se("div", cA, [
|
|
6862
6862
|
se("div", {
|
|
6863
6863
|
class: "item-content",
|
|
6864
|
-
onClick:
|
|
6864
|
+
onClick: x[5] || (x[5] = (m) => d("skin", 1))
|
|
6865
6865
|
}, [
|
|
6866
6866
|
se("img", {
|
|
6867
6867
|
src: D(M4),
|
|
@@ -6871,7 +6871,7 @@ const ep = async () => {
|
|
|
6871
6871
|
}, null, 8, uA),
|
|
6872
6872
|
ae(D(_r), {
|
|
6873
6873
|
modelValue: l.value,
|
|
6874
|
-
"onUpdate:modelValue":
|
|
6874
|
+
"onUpdate:modelValue": x[4] || (x[4] = (m) => l.value = m)
|
|
6875
6875
|
}, {
|
|
6876
6876
|
default: fe(() => [
|
|
6877
6877
|
ze(
|
|
@@ -6886,7 +6886,7 @@ const ep = async () => {
|
|
|
6886
6886
|
]),
|
|
6887
6887
|
se("div", {
|
|
6888
6888
|
class: "item-content",
|
|
6889
|
-
onClick:
|
|
6889
|
+
onClick: x[7] || (x[7] = (m) => d("skin", 2))
|
|
6890
6890
|
}, [
|
|
6891
6891
|
se("img", {
|
|
6892
6892
|
src: D(z4),
|
|
@@ -6896,7 +6896,7 @@ const ep = async () => {
|
|
|
6896
6896
|
}, null, 8, fA),
|
|
6897
6897
|
ae(D(_r), {
|
|
6898
6898
|
modelValue: c.value,
|
|
6899
|
-
"onUpdate:modelValue":
|
|
6899
|
+
"onUpdate:modelValue": x[6] || (x[6] = (m) => c.value = m)
|
|
6900
6900
|
}, {
|
|
6901
6901
|
default: fe(() => [
|
|
6902
6902
|
ze(
|
|
@@ -6913,7 +6913,7 @@ const ep = async () => {
|
|
|
6913
6913
|
se("div", dA, [
|
|
6914
6914
|
se("div", {
|
|
6915
6915
|
class: "item-content",
|
|
6916
|
-
onClick:
|
|
6916
|
+
onClick: x[9] || (x[9] = (m) => d("skin", 3))
|
|
6917
6917
|
}, [
|
|
6918
6918
|
se("img", {
|
|
6919
6919
|
src: D(H4),
|
|
@@ -6923,7 +6923,7 @@ const ep = async () => {
|
|
|
6923
6923
|
}, null, 8, pA),
|
|
6924
6924
|
ae(D(_r), {
|
|
6925
6925
|
modelValue: f.value,
|
|
6926
|
-
"onUpdate:modelValue":
|
|
6926
|
+
"onUpdate:modelValue": x[8] || (x[8] = (m) => f.value = m)
|
|
6927
6927
|
}, {
|
|
6928
6928
|
default: fe(() => [
|
|
6929
6929
|
ze(
|
|
@@ -6938,7 +6938,7 @@ const ep = async () => {
|
|
|
6938
6938
|
]),
|
|
6939
6939
|
se("div", {
|
|
6940
6940
|
class: "item-content",
|
|
6941
|
-
onClick:
|
|
6941
|
+
onClick: x[11] || (x[11] = (m) => d("skin", 4))
|
|
6942
6942
|
}, [
|
|
6943
6943
|
se("img", {
|
|
6944
6944
|
src: D(W4),
|
|
@@ -6948,7 +6948,7 @@ const ep = async () => {
|
|
|
6948
6948
|
}, null, 8, hA),
|
|
6949
6949
|
ae(D(_r), {
|
|
6950
6950
|
modelValue: p.value,
|
|
6951
|
-
"onUpdate:modelValue":
|
|
6951
|
+
"onUpdate:modelValue": x[10] || (x[10] = (m) => p.value = m)
|
|
6952
6952
|
}, {
|
|
6953
6953
|
default: fe(() => [
|
|
6954
6954
|
ze(
|
|
@@ -6965,7 +6965,7 @@ const ep = async () => {
|
|
|
6965
6965
|
se("div", vA, [
|
|
6966
6966
|
se("div", {
|
|
6967
6967
|
class: "item-content",
|
|
6968
|
-
onClick:
|
|
6968
|
+
onClick: x[13] || (x[13] = (m) => d("skin", 5))
|
|
6969
6969
|
}, [
|
|
6970
6970
|
se("img", {
|
|
6971
6971
|
src: D(q4),
|
|
@@ -6975,7 +6975,7 @@ const ep = async () => {
|
|
|
6975
6975
|
}, null, 8, xA),
|
|
6976
6976
|
ae(D(_r), {
|
|
6977
6977
|
modelValue: h.value,
|
|
6978
|
-
"onUpdate:modelValue":
|
|
6978
|
+
"onUpdate:modelValue": x[12] || (x[12] = (m) => h.value = m)
|
|
6979
6979
|
}, {
|
|
6980
6980
|
default: fe(() => [
|
|
6981
6981
|
ze(
|
|
@@ -7080,7 +7080,7 @@ const ep = async () => {
|
|
|
7080
7080
|
levelType: 1
|
|
7081
7081
|
}), d = $C();
|
|
7082
7082
|
let w = !0;
|
|
7083
|
-
const
|
|
7083
|
+
const v = z(!1), { run: _ } = $A(), { run: C } = NA(), E = () => {
|
|
7084
7084
|
var k;
|
|
7085
7085
|
w = !0, (k = d.value) == null || k.resetLazyLoad();
|
|
7086
7086
|
};
|
|
@@ -7105,9 +7105,9 @@ const ep = async () => {
|
|
|
7105
7105
|
isTenant: r.type === 1,
|
|
7106
7106
|
isPerson: !0
|
|
7107
7107
|
};
|
|
7108
|
-
w ? (w = !1,
|
|
7108
|
+
w ? (w = !1, v.value = !0) : R.parentId = k.id;
|
|
7109
7109
|
let [T, P] = await _(R);
|
|
7110
|
-
return
|
|
7110
|
+
return v.value = !1, T ? { data: [] } : { data: P.data || [] };
|
|
7111
7111
|
},
|
|
7112
7112
|
search: async (k) => {
|
|
7113
7113
|
if (!k) return {};
|
|
@@ -7141,7 +7141,7 @@ const GA = (i) => {
|
|
|
7141
7141
|
{ value: 2, label: ce("设备看板") },
|
|
7142
7142
|
{ value: 3, label: ce("数据编排") },
|
|
7143
7143
|
{ value: 4, label: ce("轻分析") }
|
|
7144
|
-
]), p = z([]), h = z(20), s = z(1), d = z(0), w = z(""),
|
|
7144
|
+
]), p = z([]), h = z(20), s = z(1), d = z(0), w = z(""), v = z(""), _ = z(""), C = z(!1), { run: E } = OA(), { run: b } = UA(), { run: x } = MA(), { run: m } = zA(), { run: y } = HA(), S = (q) => {
|
|
7145
7145
|
const Y = [], le = q[2], de = le.displays, H = le.scenes, Q = le[ce("2D3D集成根目录")];
|
|
7146
7146
|
k(de, "2D", "/enterpriseadmin/ioc-server/?type=preview&tag=displays", Y), k(H, "3D", "/enterpriseadmin/ioc-server/?type=preview3d&tag=scenes", Y), k(Q, ce("集成"), "/enterpriseadmin/ioc-server/?type=preview2d3d&tag=scenes", Y);
|
|
7147
7147
|
const ne = (s.value - 1) * h.value, te = ne + h.value;
|
|
@@ -7160,17 +7160,17 @@ const GA = (i) => {
|
|
|
7160
7160
|
s.value = 1, d.value = 0, w.value = "";
|
|
7161
7161
|
}, T = () => {
|
|
7162
7162
|
var q, Y, le;
|
|
7163
|
-
R(), c.value = ((q = r.value) == null ? void 0 : q.urlType) ?? 0,
|
|
7163
|
+
R(), c.value = ((q = r.value) == null ? void 0 : q.urlType) ?? 0, v.value = ((Y = r.value) == null ? void 0 : Y.urlId) ?? "", _.value = ((le = r.value) == null ? void 0 : le.routeUrl) ?? "", zi.afterMsg = S, L(), l.value = !0;
|
|
7164
7164
|
}, P = (q, Y, le) => {
|
|
7165
7165
|
_.value = Y.url;
|
|
7166
7166
|
}, N = () => {
|
|
7167
|
-
if (!
|
|
7167
|
+
if (!v.value) {
|
|
7168
7168
|
xd.warning(ce("至少选择一个链接"));
|
|
7169
7169
|
return;
|
|
7170
7170
|
}
|
|
7171
|
-
r.value.urlType = c.value, r.value.urlId =
|
|
7171
|
+
r.value.urlType = c.value, r.value.urlId = v.value, r.value.routeUrl = _.value, l.value = !1;
|
|
7172
7172
|
}, I = (q) => {
|
|
7173
|
-
R(), c.value = q,
|
|
7173
|
+
R(), c.value = q, v.value = "", _.value = "", L();
|
|
7174
7174
|
}, L = () => {
|
|
7175
7175
|
if (n.type !== 7) return;
|
|
7176
7176
|
({
|
|
@@ -7233,7 +7233,7 @@ const GA = (i) => {
|
|
|
7233
7233
|
pageSize: h.value
|
|
7234
7234
|
};
|
|
7235
7235
|
C.value = !0;
|
|
7236
|
-
const [Y, le] = await
|
|
7236
|
+
const [Y, le] = await x(q);
|
|
7237
7237
|
if (C.value = !1, Y) {
|
|
7238
7238
|
p.value = [];
|
|
7239
7239
|
return;
|
|
@@ -7252,7 +7252,7 @@ const GA = (i) => {
|
|
|
7252
7252
|
pageIndex: s,
|
|
7253
7253
|
totalCount: d,
|
|
7254
7254
|
tableFilter: w,
|
|
7255
|
-
urlId:
|
|
7255
|
+
urlId: v,
|
|
7256
7256
|
openUrlDialog: T,
|
|
7257
7257
|
tableChange: P,
|
|
7258
7258
|
confirmUrl: N,
|
|
@@ -7327,10 +7327,10 @@ var Qi = { exports: {} };
|
|
|
7327
7327
|
Qi.exports;
|
|
7328
7328
|
(function(i, r) {
|
|
7329
7329
|
(function() {
|
|
7330
|
-
var n, a = "4.17.21", l = 200, c = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", f = "Expected a function", p = "Invalid `variable` option passed into `_.template`", h = "__lodash_hash_undefined__", s = 500, d = "__lodash_placeholder__", w = 1,
|
|
7330
|
+
var n, a = "4.17.21", l = 200, c = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", f = "Expected a function", p = "Invalid `variable` option passed into `_.template`", h = "__lodash_hash_undefined__", s = 500, d = "__lodash_placeholder__", w = 1, v = 2, _ = 4, C = 1, E = 2, b = 1, x = 2, m = 4, y = 8, S = 16, k = 32, R = 64, T = 128, P = 256, N = 512, I = 30, L = "...", M = 800, j = 16, ue = 1, G = 2, ie = 3, q = 1 / 0, Y = 9007199254740991, le = 17976931348623157e292, de = NaN, H = 4294967295, Q = H - 1, ne = H >>> 1, te = [
|
|
7331
7331
|
["ary", T],
|
|
7332
7332
|
["bind", b],
|
|
7333
|
-
["bindKey",
|
|
7333
|
+
["bindKey", x],
|
|
7334
7334
|
["curry", y],
|
|
7335
7335
|
["curryRight", S],
|
|
7336
7336
|
["flip", N],
|
|
@@ -8183,7 +8183,7 @@ Qi.exports;
|
|
|
8183
8183
|
return e === e && (o !== n && (e = e <= o ? e : o), t !== n && (e = e >= t ? e : t)), e;
|
|
8184
8184
|
}
|
|
8185
8185
|
function un(e, t, o, u, g, B) {
|
|
8186
|
-
var F, $ = t & w, U = t &
|
|
8186
|
+
var F, $ = t & w, U = t & v, Z = t & _;
|
|
8187
8187
|
if (o && (F = g ? o(e, u, g, B) : o(e)), F !== n)
|
|
8188
8188
|
return F;
|
|
8189
8189
|
if (!rt(e))
|
|
@@ -8979,7 +8979,7 @@ Qi.exports;
|
|
|
8979
8979
|
});
|
|
8980
8980
|
}
|
|
8981
8981
|
function Ei(e, t, o, u, g, B, F, $, U, Z) {
|
|
8982
|
-
var J = t & T, re = t & b, pe = t &
|
|
8982
|
+
var J = t & T, re = t & b, pe = t & x, me = t & (y | S), we = t & N, Re = pe ? n : So(e);
|
|
8983
8983
|
function Ae() {
|
|
8984
8984
|
for (var $e = arguments.length, Ue = W($e), Jt = $e; Jt--; )
|
|
8985
8985
|
Ue[Jt] = arguments[Jt];
|
|
@@ -9099,7 +9099,7 @@ Qi.exports;
|
|
|
9099
9099
|
};
|
|
9100
9100
|
}
|
|
9101
9101
|
function Ln(e, t, o, u, g, B, F, $) {
|
|
9102
|
-
var U = t &
|
|
9102
|
+
var U = t & x;
|
|
9103
9103
|
if (!U && typeof e != "function")
|
|
9104
9104
|
throw new ln(f);
|
|
9105
9105
|
var Z = u ? u.length : 0;
|
|
@@ -9450,7 +9450,7 @@ Qi.exports;
|
|
|
9450
9450
|
return t;
|
|
9451
9451
|
}
|
|
9452
9452
|
function gx(e, t) {
|
|
9453
|
-
var o = e[1], u = t[1], g = o | u, B = g < (b |
|
|
9453
|
+
var o = e[1], u = t[1], g = o | u, B = g < (b | x | T), F = u == T && o == y || u == T && o == P && e[7].length <= t[8] || u == (T | P) && t[7].length <= t[8] && o == y;
|
|
9454
9454
|
if (!(B || F))
|
|
9455
9455
|
return e;
|
|
9456
9456
|
u & b && (e[2] = t[2], g |= o & b ? 0 : m);
|
|
@@ -10018,7 +10018,7 @@ Qi.exports;
|
|
|
10018
10018
|
}
|
|
10019
10019
|
return Ln(e, u, t, o, g);
|
|
10020
10020
|
}), ru = Le(function(e, t, o) {
|
|
10021
|
-
var u = b |
|
|
10021
|
+
var u = b | x;
|
|
10022
10022
|
if (o.length) {
|
|
10023
10023
|
var g = er(o, Xr(ru));
|
|
10024
10024
|
u |= k;
|
|
@@ -10470,7 +10470,7 @@ Qi.exports;
|
|
|
10470
10470
|
var u = !1;
|
|
10471
10471
|
t = et(t, function(B) {
|
|
10472
10472
|
return B = or(B, e), u || (u = B.length > 1), B;
|
|
10473
|
-
}), Bn(e, us(e), o), u && (o = un(o, w |
|
|
10473
|
+
}), Bn(e, us(e), o), u && (o = un(o, w | v | _, rx));
|
|
10474
10474
|
for (var g = t.length; g--; )
|
|
10475
10475
|
ns(o, t[g]);
|
|
10476
10476
|
return o;
|
|
@@ -10978,7 +10978,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
10978
10978
|
var u = o.name + "";
|
|
10979
10979
|
je.call(jr, u) || (jr[u] = []), jr[u].push({ name: t, func: o });
|
|
10980
10980
|
}
|
|
10981
|
-
}), jr[Ei(n,
|
|
10981
|
+
}), jr[Ei(n, x).name] = [{
|
|
10982
10982
|
name: "wrapper",
|
|
10983
10983
|
func: n
|
|
10984
10984
|
}], Ne.prototype.clone = Kh, Ne.prototype.reverse = Gh, Ne.prototype.value = Xh, A.prototype.at = Ag, A.prototype.chain = Eg, A.prototype.commit = Sg, A.prototype.next = Bg, A.prototype.plant = Dg, A.prototype.reverse = Ig, A.prototype.toJSON = A.prototype.valueOf = A.prototype.value = Tg, A.prototype.first = A.prototype.head, xo && (A.prototype[xo] = kg), A;
|
|
@@ -10997,8 +10997,8 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
10997
10997
|
Kt().id;
|
|
10998
10998
|
const a = n, l = z(!1), c = z(""), f = z([]), p = N_([]), h = z(""), s = z(""), d = z([]);
|
|
10999
10999
|
let w = {};
|
|
11000
|
-
const
|
|
11001
|
-
w = JA.cloneDeep(G), await E(),
|
|
11000
|
+
const v = z([]), _ = z({}), C = async (G) => {
|
|
11001
|
+
w = JA.cloneDeep(G), await E(), x(), N(), l.value = !0;
|
|
11002
11002
|
}, E = async () => {
|
|
11003
11003
|
var q;
|
|
11004
11004
|
const [G, ie] = await jA({
|
|
@@ -11006,14 +11006,14 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11006
11006
|
}).run();
|
|
11007
11007
|
G || (f.value = ie, c.value = (q = f.value[0]) == null ? void 0 : q.id);
|
|
11008
11008
|
}, b = async (G) => {
|
|
11009
|
-
if (
|
|
11010
|
-
|
|
11009
|
+
if (x(), _.value[c.value])
|
|
11010
|
+
v.value = _.value[c.value];
|
|
11011
11011
|
else {
|
|
11012
11012
|
const [ie, q] = await qf({ projectId: c.value }).run();
|
|
11013
11013
|
if (ie) return;
|
|
11014
|
-
|
|
11014
|
+
v.value = q, _.value[c.value] = [...v.value];
|
|
11015
11015
|
}
|
|
11016
|
-
},
|
|
11016
|
+
}, x = async () => {
|
|
11017
11017
|
const [G, ie] = await qA({ projectId: c.value, isPersonal: !0 }).run();
|
|
11018
11018
|
if (G) return;
|
|
11019
11019
|
p.value = [
|
|
@@ -11030,7 +11030,7 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11030
11030
|
const ie = G.totalCount;
|
|
11031
11031
|
return `${((le = (Y = G == null ? void 0 : G.apps) == null ? void 0 : Y.filter((de) => {
|
|
11032
11032
|
var H;
|
|
11033
|
-
return ((H =
|
|
11033
|
+
return ((H = v.value) == null ? void 0 : H.findIndex((Q) => Q.id === de.id)) !== -1;
|
|
11034
11034
|
})) == null ? void 0 : le.length) || 0}/${ie}`;
|
|
11035
11035
|
}, y = (G) => {
|
|
11036
11036
|
s.value = G == null ? void 0 : G.name, d.value = G == null ? void 0 : G.apps;
|
|
@@ -11039,22 +11039,22 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11039
11039
|
};
|
|
11040
11040
|
function k(G) {
|
|
11041
11041
|
var q;
|
|
11042
|
-
((q =
|
|
11042
|
+
((q = v.value) == null ? void 0 : q.map((Y) => Y.id)).includes(G.id) ? R(G) : T(G);
|
|
11043
11043
|
}
|
|
11044
11044
|
const R = (G) => {
|
|
11045
|
-
const ie =
|
|
11046
|
-
G.selected = !1,
|
|
11045
|
+
const ie = v.value.findIndex((q) => G.id === q.id);
|
|
11046
|
+
G.selected = !1, v.value.splice(ie, 1), _.value[c.value] = [...v.value];
|
|
11047
11047
|
}, T = (G) => {
|
|
11048
|
-
G.selected = !0,
|
|
11048
|
+
G.selected = !0, v.value.push(G), _.value[c.value] = [...v.value];
|
|
11049
11049
|
}, P = () => {
|
|
11050
11050
|
yr(() => {
|
|
11051
|
-
_.value[c.value] =
|
|
11051
|
+
_.value[c.value] = v.value;
|
|
11052
11052
|
});
|
|
11053
11053
|
}, N = async () => {
|
|
11054
11054
|
const [G, ie] = await qf({ projectId: c.value }).run();
|
|
11055
|
-
G || (
|
|
11055
|
+
G || (v.value = (w == null ? void 0 : w.selectedAppMap[c.value]) ?? ie, _.value[c.value] = [...v.value]);
|
|
11056
11056
|
}, I = () => {
|
|
11057
|
-
w = {},
|
|
11057
|
+
w = {}, v.value = [], _.value = {};
|
|
11058
11058
|
}, L = () => {
|
|
11059
11059
|
l.value = !1;
|
|
11060
11060
|
}, M = () => {
|
|
@@ -11232,7 +11232,7 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11232
11232
|
style: { width: "14px", height: "14px", cursor: "pointer" },
|
|
11233
11233
|
onClick: (Y) => k(q)
|
|
11234
11234
|
}, [
|
|
11235
|
-
|
|
11235
|
+
v.value.findIndex((Y) => Y.id === q.id) !== -1 ? (_e(), Ke("img", {
|
|
11236
11236
|
key: 0,
|
|
11237
11237
|
src: D(eE)
|
|
11238
11238
|
}, null, 8, xE)) : (_e(), Ke("img", {
|
|
@@ -11264,8 +11264,8 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11264
11264
|
closeable: (q) => !(q.id === "-1" || q.id === "-2"),
|
|
11265
11265
|
"custom-style": { border: "none" },
|
|
11266
11266
|
onSortEnd: S,
|
|
11267
|
-
modelValue:
|
|
11268
|
-
"onUpdate:modelValue": ie[2] || (ie[2] = (q) =>
|
|
11267
|
+
modelValue: v.value,
|
|
11268
|
+
"onUpdate:modelValue": ie[2] || (ie[2] = (q) => v.value = q),
|
|
11269
11269
|
onItemRemove: P,
|
|
11270
11270
|
onRemoveAll: P
|
|
11271
11271
|
}, null, 8, ["closeable", "modelValue"])
|
|
@@ -11318,12 +11318,12 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11318
11318
|
}, w = () => {
|
|
11319
11319
|
c.value.routeUrl = "", p.value.routeUrl = "";
|
|
11320
11320
|
}, {
|
|
11321
|
-
builtInDialog:
|
|
11321
|
+
builtInDialog: v,
|
|
11322
11322
|
$typeTree: _,
|
|
11323
11323
|
treeId: C,
|
|
11324
11324
|
treePath: E,
|
|
11325
11325
|
keyword: b,
|
|
11326
|
-
treeData:
|
|
11326
|
+
treeData: x,
|
|
11327
11327
|
openBuiltInDialog: m,
|
|
11328
11328
|
loadChildNode: y,
|
|
11329
11329
|
search: S,
|
|
@@ -11519,8 +11519,8 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11519
11519
|
]),
|
|
11520
11520
|
Ie(" 内置链接选择弹窗 "),
|
|
11521
11521
|
ae(D(Er), {
|
|
11522
|
-
modelValue: D(
|
|
11523
|
-
"onUpdate:modelValue": ve[10] || (ve[10] = (K) => bn(
|
|
11522
|
+
modelValue: D(v),
|
|
11523
|
+
"onUpdate:modelValue": ve[10] || (ve[10] = (K) => bn(v) ? v.value = K : null),
|
|
11524
11524
|
"body-style": { padding: 0 },
|
|
11525
11525
|
title: D(ce)("选择内置门户菜单"),
|
|
11526
11526
|
width: "610px",
|
|
@@ -11530,7 +11530,7 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11530
11530
|
se("div", null, [
|
|
11531
11531
|
ae(D(It), {
|
|
11532
11532
|
size: "middle",
|
|
11533
|
-
onClick: ve[9] || (ve[9] = (K) =>
|
|
11533
|
+
onClick: ve[9] || (ve[9] = (K) => v.value = !1)
|
|
11534
11534
|
}, {
|
|
11535
11535
|
default: fe(() => [
|
|
11536
11536
|
ze(
|
|
@@ -11571,7 +11571,7 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11571
11571
|
"onUpdate:path": ve[7] || (ve[7] = (K) => bn(E) ? E.value = K : null),
|
|
11572
11572
|
"filter-value": D(b),
|
|
11573
11573
|
"onUpdate:filterValue": ve[8] || (ve[8] = (K) => bn(b) ? b.value = K : null),
|
|
11574
|
-
data: D(
|
|
11574
|
+
data: D(x),
|
|
11575
11575
|
"is-ellipsis": "",
|
|
11576
11576
|
"default-expanded-keys": ["-1"],
|
|
11577
11577
|
load: D(y),
|
|
@@ -11754,17 +11754,17 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11754
11754
|
hidden: Number(Bu()) < 2
|
|
11755
11755
|
}
|
|
11756
11756
|
]), w = () => {
|
|
11757
|
-
var b,
|
|
11757
|
+
var b, x, m;
|
|
11758
11758
|
const { flag: E } = ta();
|
|
11759
|
-
E === 4 ? s.value = (b = Hn.value) == null ? void 0 : b.companyIsDisplayHome : s.value = (
|
|
11760
|
-
},
|
|
11759
|
+
E === 4 ? s.value = (b = Hn.value) == null ? void 0 : b.companyIsDisplayHome : s.value = (x = Hn.value) == null ? void 0 : x.enable, h.value = (m = Hn.value) != null && m.homeAlias ? Hn.value.homeAlias : ce("首页"), n.value = !0;
|
|
11760
|
+
}, v = TC(), _ = (E) => {
|
|
11761
11761
|
if (n.value = !1, !E) return;
|
|
11762
11762
|
ge.nav.setItems([]), ge.menu.setItems([]), ge.tab.setItems([]), H0(), window.__isAutoCloseApp = !1;
|
|
11763
|
-
const
|
|
11763
|
+
const x = new URLSearchParams(window.location.search).get("lang"), m = x ? `/?lang=${encodeURIComponent(x)}` : "/";
|
|
11764
11764
|
window.location.replace(m);
|
|
11765
11765
|
}, C = async () => {
|
|
11766
|
-
var
|
|
11767
|
-
const E = (
|
|
11766
|
+
var x, m, y, S, k;
|
|
11767
|
+
const E = (x = l.value) == null ? void 0 : x.getResult(), [b] = await TE().run(E);
|
|
11768
11768
|
if (b) {
|
|
11769
11769
|
p.value = "theme";
|
|
11770
11770
|
return;
|
|
@@ -11786,7 +11786,7 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11786
11786
|
return;
|
|
11787
11787
|
}
|
|
11788
11788
|
}
|
|
11789
|
-
(k =
|
|
11789
|
+
(k = v.value) == null || k.open();
|
|
11790
11790
|
};
|
|
11791
11791
|
return r({
|
|
11792
11792
|
openDialog: w
|
|
@@ -11798,7 +11798,7 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11798
11798
|
ae(D(DC), {
|
|
11799
11799
|
title: D(Ce)("个性化设置").value,
|
|
11800
11800
|
modelValue: n.value,
|
|
11801
|
-
"onUpdate:modelValue": b[3] || (b[3] = (
|
|
11801
|
+
"onUpdate:modelValue": b[3] || (b[3] = (x) => n.value = x),
|
|
11802
11802
|
"body-style": { padding: 0 },
|
|
11803
11803
|
direction: "rtl"
|
|
11804
11804
|
}, {
|
|
@@ -11806,7 +11806,7 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11806
11806
|
se("div", LE, [
|
|
11807
11807
|
ae(D(It), {
|
|
11808
11808
|
size: "middle",
|
|
11809
|
-
onClick: b[2] || (b[2] = (
|
|
11809
|
+
onClick: b[2] || (b[2] = (x) => n.value = !1),
|
|
11810
11810
|
style: { "margin-right": "12px" }
|
|
11811
11811
|
}, {
|
|
11812
11812
|
default: fe(() => [
|
|
@@ -11841,7 +11841,7 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11841
11841
|
ae(D(IC), {
|
|
11842
11842
|
options: d.value,
|
|
11843
11843
|
activeKey: p.value,
|
|
11844
|
-
"onUpdate:activeKey": b[0] || (b[0] = (
|
|
11844
|
+
"onUpdate:activeKey": b[0] || (b[0] = (x) => p.value = x),
|
|
11845
11845
|
"tab-width": "110px"
|
|
11846
11846
|
}, null, 8, ["options", "activeKey"]),
|
|
11847
11847
|
ae(D(bA), {
|
|
@@ -11859,7 +11859,7 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11859
11859
|
ref: c,
|
|
11860
11860
|
isShow: p.value === "home",
|
|
11861
11861
|
isShowProject: s.value,
|
|
11862
|
-
onResetConfirm: b[1] || (b[1] = (
|
|
11862
|
+
onResetConfirm: b[1] || (b[1] = (x) => n.value = !1)
|
|
11863
11863
|
}, null, 8, ["isShow", "isShowProject"])
|
|
11864
11864
|
]),
|
|
11865
11865
|
_: 1
|
|
@@ -11870,9 +11870,9 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11870
11870
|
D(FC),
|
|
11871
11871
|
{
|
|
11872
11872
|
ref_key: "$DasUpdateConfirmDialogRef",
|
|
11873
|
-
ref:
|
|
11874
|
-
onConfirm: b[4] || (b[4] = (
|
|
11875
|
-
onCancel: b[5] || (b[5] = (
|
|
11873
|
+
ref: v,
|
|
11874
|
+
onConfirm: b[4] || (b[4] = (x) => _(!0)),
|
|
11875
|
+
onCancel: b[5] || (b[5] = (x) => _(!1))
|
|
11876
11876
|
},
|
|
11877
11877
|
null,
|
|
11878
11878
|
512
|
|
@@ -11963,8 +11963,8 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11963
11963
|
const r = Ji(), { getMenu: n } = vC(), { getHistoryList: a, getSearchList: l } = l3(), { changeApp: c } = cr(), f = z("0"), p = z(!0), h = z([]), s = z(!1), d = z(!1), w = z(!1);
|
|
11964
11964
|
_t(
|
|
11965
11965
|
() => r.path,
|
|
11966
|
-
(
|
|
11967
|
-
d.value =
|
|
11966
|
+
(x) => {
|
|
11967
|
+
d.value = x === vn;
|
|
11968
11968
|
},
|
|
11969
11969
|
{
|
|
11970
11970
|
immediate: !0
|
|
@@ -11984,8 +11984,8 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11984
11984
|
immediate: !0
|
|
11985
11985
|
}
|
|
11986
11986
|
);
|
|
11987
|
-
const
|
|
11988
|
-
let
|
|
11987
|
+
const v = async () => {
|
|
11988
|
+
let x = {};
|
|
11989
11989
|
return await oC([
|
|
11990
11990
|
A4,
|
|
11991
11991
|
$2,
|
|
@@ -11993,8 +11993,8 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
11993
11993
|
ep,
|
|
11994
11994
|
$4,
|
|
11995
11995
|
m4
|
|
11996
|
-
]).then((y) => Object.assign(
|
|
11997
|
-
}, _ = async (
|
|
11996
|
+
]).then((y) => Object.assign(x, ...y)), p.value = !1, x;
|
|
11997
|
+
}, _ = async (x, m) => {
|
|
11998
11998
|
var ne, te, Fe;
|
|
11999
11999
|
const y = Hn.value, k = (() => {
|
|
12000
12000
|
const { flag: he } = ta();
|
|
@@ -12005,7 +12005,7 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12005
12005
|
label: ce(he.label)
|
|
12006
12006
|
}));
|
|
12007
12007
|
R.forEach((he) => (y != null && y.appAlias && he.value === jt && (he.label = y.appAlias), y != null && y.homeAlias && he.value === vn && (he.label = y.homeAlias), he));
|
|
12008
|
-
let T =
|
|
12008
|
+
let T = x.map((he) => he.id === "-1" || he.id === "-2" ? R.map((He) => ({ ...He, label: ce(He.label), name: ce(He.label), closable: !1 })).find((He) => He.id === he.id) : he);
|
|
12009
12009
|
k || (T = T.filter((he) => he.id !== "-2"));
|
|
12010
12010
|
const N = (m.map((he) => he.apps).flat() || []).map((he) => he.code), I = (ne = Oe()) == null ? void 0 : ne.subAppList.filter(
|
|
12011
12011
|
(he) => N.includes(he.code) && !T.map((He) => He.code).includes(he.code)
|
|
@@ -12026,12 +12026,12 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12026
12026
|
}, C = z(!1), E = async () => {
|
|
12027
12027
|
var j;
|
|
12028
12028
|
await i();
|
|
12029
|
-
const
|
|
12029
|
+
const x = Kt().id, m = await v();
|
|
12030
12030
|
if (!m) return;
|
|
12031
12031
|
const { projectConfig: y, currentProject: S, tenantList: k, navConfig: R, fixedAppsConfig: T } = m;
|
|
12032
12032
|
_(T, R);
|
|
12033
12033
|
const P = (S == null ? void 0 : S.id) || 0;
|
|
12034
|
-
|
|
12034
|
+
x != P && (f.value = f.value === "0" ? "1" : "0"), w.value = ((j = ea()) == null ? void 0 : j.flag) !== 4 && k && k.length > 1;
|
|
12035
12035
|
const N = await n("aiPlatform", "aiPlatform.dasaiassistant", "", "enterpriseadmin", !0);
|
|
12036
12036
|
s.value = !!N, y && y.length && (ge.nav.setProjectConfig({
|
|
12037
12037
|
treeProps: {
|
|
@@ -12064,12 +12064,12 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12064
12064
|
}
|
|
12065
12065
|
C.value = !0;
|
|
12066
12066
|
};
|
|
12067
|
-
return ge.nav.addEventListener("onBeforeMount", E), { loading: p, pageKey: f, commandList: h, layoutInited: C, initNextTick: () => new Promise((
|
|
12067
|
+
return ge.nav.addEventListener("onBeforeMount", E), { loading: p, pageKey: f, commandList: h, layoutInited: C, initNextTick: () => new Promise((x) => {
|
|
12068
12068
|
const m = async () => {
|
|
12069
12069
|
var k;
|
|
12070
12070
|
let y = ((k = r.meta) == null ? void 0 : k.showLayout) ?? !0, { showLayout: S = !0 } = r.query;
|
|
12071
12071
|
if (S === "false" && (S = !1), !y || !S || C.value) {
|
|
12072
|
-
|
|
12072
|
+
x();
|
|
12073
12073
|
return;
|
|
12074
12074
|
}
|
|
12075
12075
|
setTimeout(() => m(), 50);
|
|
@@ -12134,26 +12134,26 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12134
12134
|
let b = ((k = C.query) == null ? void 0 : k.showLayout) ?? !0;
|
|
12135
12135
|
if (b === "false" && (b = !1), !E || !b || C.path === l && y0(C.query, c)) return;
|
|
12136
12136
|
l = no(C.path), c = no(C.query);
|
|
12137
|
-
const
|
|
12138
|
-
if (!
|
|
12137
|
+
const x = Oe().currentSubAppCode ?? "";
|
|
12138
|
+
if (!x) return;
|
|
12139
12139
|
const m = ((R = C.query) == null ? void 0 : R.menu) ?? ((T = Dt()) == null ? void 0 : T.currentCode) ?? "";
|
|
12140
12140
|
if (!m) return;
|
|
12141
12141
|
const y = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
|
|
12142
|
-
y && JSON.stringify(y) !== "{}" && (r.value = (N = (P = y[
|
|
12142
|
+
y && JSON.stringify(y) !== "{}" && (r.value = (N = (P = y[x]) == null ? void 0 : P[m]) != null && N.fontColor ? y[x][m].fontColor : "", n.value = (L = (I = y[x]) == null ? void 0 : I[m]) != null && L.backgroundColor ? y[x][m].backgroundColor : "", a.value = (j = (M = y[x]) == null ? void 0 : M[m]) != null && j.backgroundColor ? y[x][m].backgroundColor : "");
|
|
12143
12143
|
}
|
|
12144
12144
|
);
|
|
12145
12145
|
const { deleteApp: f } = cr(), { entryMenu: p } = da(), { reloadRoute: h, unloadRoute: s } = sp(), d = (C) => {
|
|
12146
12146
|
var m;
|
|
12147
|
-
const E = nn(ji(C.applicationCode)).find((y) => y.code === C.code),
|
|
12148
|
-
p({ currentMenu: E, route: { path:
|
|
12147
|
+
const E = nn(ji(C.applicationCode)).find((y) => y.code === C.code), x = (((m = Dt().tabMap) == null ? void 0 : m[C.applicationCode]) ?? []).find((y) => y.code === C.code);
|
|
12148
|
+
p({ currentMenu: E, route: { path: x.path, query: x.query ?? {} } });
|
|
12149
12149
|
}, w = (C) => {
|
|
12150
12150
|
if (!C || !C.length) return;
|
|
12151
12151
|
const E = C.filter((b) => !b.path.startsWith(br)).map((b) => b.path);
|
|
12152
12152
|
E && E.length && s(E), C.forEach((b) => ge.iframeView.triggerEventListener("onUnloadPage", b.path));
|
|
12153
|
-
},
|
|
12153
|
+
}, v = (C) => {
|
|
12154
12154
|
const E = Oe().currentSubAppCode ?? "";
|
|
12155
12155
|
ut.innerSet = !0;
|
|
12156
|
-
const b = Dt(),
|
|
12156
|
+
const b = Dt(), x = b.tabMap[E], m = x.findIndex((P) => P.code === C.data.code);
|
|
12157
12157
|
if (m === -1) return;
|
|
12158
12158
|
const y = () => {
|
|
12159
12159
|
var I;
|
|
@@ -12162,32 +12162,32 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12162
12162
|
};
|
|
12163
12163
|
({
|
|
12164
12164
|
me: async (P) => {
|
|
12165
|
-
if (
|
|
12165
|
+
if (x.length === 1) {
|
|
12166
12166
|
y();
|
|
12167
12167
|
return;
|
|
12168
12168
|
}
|
|
12169
12169
|
const N = b.currentCode;
|
|
12170
12170
|
let I = null;
|
|
12171
|
-
N === P.value && (m + 1 ===
|
|
12171
|
+
N === P.value && (m + 1 === x.length ? x[m - 1] && (I = x[m - 1]) : x[m + 1] && (I = x[m + 1])), x.splice(m, 1), w([P]), Vt([{ key: `tabMap:${E}`, value: x }]), I ? d(I) : Vt([{ key: `preTab:${E}`, value: {} }]);
|
|
12172
12172
|
},
|
|
12173
12173
|
all: y,
|
|
12174
12174
|
other: async (P) => {
|
|
12175
|
-
const N =
|
|
12175
|
+
const N = x[m];
|
|
12176
12176
|
await i.push({
|
|
12177
12177
|
path: `/${N.applicationPath}${N.path}`.replace(/\/\//g, "/"),
|
|
12178
12178
|
query: N.query
|
|
12179
12179
|
}), ge.menu.setActiveItem(N.menuId), ge.tab.setActiveItem(N.code);
|
|
12180
|
-
const I =
|
|
12180
|
+
const I = x.filter((L) => L.code !== P.value);
|
|
12181
12181
|
I.forEach((L) => ge.tab.removeItem(L.code)), w(I), Vt([{ key: `tabMap:${E}`, value: [N] }]), d(N);
|
|
12182
12182
|
},
|
|
12183
12183
|
right: async (P) => {
|
|
12184
12184
|
const N = b.currentCode;
|
|
12185
|
-
if (N !== P.value &&
|
|
12186
|
-
const M =
|
|
12185
|
+
if (N !== P.value && x.findIndex((M) => M.code === N) > m) {
|
|
12186
|
+
const M = x[m];
|
|
12187
12187
|
d(M);
|
|
12188
12188
|
}
|
|
12189
|
-
const I =
|
|
12190
|
-
I.forEach((L) => ge.tab.removeItem(L.code)), w(I),
|
|
12189
|
+
const I = x.slice(m + 1);
|
|
12190
|
+
I.forEach((L) => ge.tab.removeItem(L.code)), w(I), x.splice(m + 1), Vt([{ key: `tabMap:${E}`, value: x }]);
|
|
12191
12191
|
}
|
|
12192
12192
|
})[C.type](C.data);
|
|
12193
12193
|
};
|
|
@@ -12195,18 +12195,18 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12195
12195
|
Dt().currentCode !== C.currentCode && (ut.innerSet = !0, d(C));
|
|
12196
12196
|
}), ge.tab.addEventListener("onItemRemove", (C) => {
|
|
12197
12197
|
const E = Dt(), b = Oe().currentSubAppCode ?? "";
|
|
12198
|
-
E.tabMap[b].findIndex((y) => y.code === C.code) !== -1 && (Wi(C.applicationCode, [C.code]),
|
|
12198
|
+
E.tabMap[b].findIndex((y) => y.code === C.code) !== -1 && (Wi(C.applicationCode, [C.code]), v({ type: "me", data: C }));
|
|
12199
12199
|
}), ge.tab.addEventListener("onMenuClick", (C) => {
|
|
12200
12200
|
let E = [];
|
|
12201
12201
|
const b = Dt().tabMap[C.applicationCode] ?? [];
|
|
12202
12202
|
if (C.type.key === "right") {
|
|
12203
|
-
const
|
|
12204
|
-
E = b.slice(
|
|
12203
|
+
const x = b.findIndex((m) => m.code === C.data.value);
|
|
12204
|
+
E = b.slice(x + 1);
|
|
12205
12205
|
}
|
|
12206
|
-
C.type.key === "other" && (E = b.filter((
|
|
12206
|
+
C.type.key === "other" && (E = b.filter((x) => x.code !== C.data.value)), C.type.key === "all" && (E = [...b]), Wi(
|
|
12207
12207
|
C.applicationCode,
|
|
12208
|
-
E.map((
|
|
12209
|
-
),
|
|
12208
|
+
E.map((x) => x.code)
|
|
12209
|
+
), v({ type: C.type.key, data: C.data });
|
|
12210
12210
|
}), ge.tab.addEventListener("onPageRefresh", async (C) => {
|
|
12211
12211
|
if (!C) return;
|
|
12212
12212
|
if (C.path.startsWith(br)) {
|
|
@@ -12220,8 +12220,8 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12220
12220
|
h([C.path]), s([`/${C.applicationPath}${E.routeUrl}`]), await p({ currentMenu: E });
|
|
12221
12221
|
return;
|
|
12222
12222
|
}
|
|
12223
|
-
const b = { app: E.applicationCode, menu: E.code },
|
|
12224
|
-
y0(b,
|
|
12223
|
+
const b = { app: E.applicationCode, menu: E.code }, x = { ...C.query };
|
|
12224
|
+
y0(b, x) || await p({ currentMenu: E }), h([C.path]);
|
|
12225
12225
|
});
|
|
12226
12226
|
const { enter: _ } = Ho();
|
|
12227
12227
|
return ge.tab.addEventListener("onToggleFullScreen", _), { fontColor: r, backgroudColor: n, borderColor: a };
|
|
@@ -12254,34 +12254,34 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12254
12254
|
const i = oo(), { entryMenu: r } = da(), { unloadRoute: n } = sp();
|
|
12255
12255
|
let { mainAppName: a = "", microAppName: l = "", microApps: c = [] } = Vn();
|
|
12256
12256
|
!a && l && (c = [{ name: l }]);
|
|
12257
|
-
const f = c.map((
|
|
12257
|
+
const f = c.map((v) => v.name), p = () => {
|
|
12258
12258
|
ge.menu.setItems([]), ge.menu.setActiveItem(""), ge.tab.setItems([]), ge.tab.setActiveItem("");
|
|
12259
|
-
}, h = async (
|
|
12260
|
-
if (
|
|
12261
|
-
const _ =
|
|
12262
|
-
let b = [],
|
|
12259
|
+
}, h = async (v) => {
|
|
12260
|
+
if (v.routeUrl && !f.includes(v.routeUrl)) return !0;
|
|
12261
|
+
const _ = v.code ?? "", E = (Oe().subAppList ?? []).find((S) => S.code === _);
|
|
12262
|
+
let b = [], x = [], m = !1;
|
|
12263
12263
|
if (E && (b = E.menus ?? []), !b.length) {
|
|
12264
12264
|
const { menus: S, originalMenus: k, err: R } = await ua(_);
|
|
12265
12265
|
if (R) return !1;
|
|
12266
|
-
b = S ?? [],
|
|
12266
|
+
b = S ?? [], x = k ?? [];
|
|
12267
12267
|
}
|
|
12268
12268
|
if (b.length ? Xi(b) || (await Po({
|
|
12269
12269
|
title: ce("提示"),
|
|
12270
12270
|
content: ce("此应用菜单已过期/已收回/配置有误") + "<br/>" + ce("无法使用")
|
|
12271
12271
|
}), m = !0) : (await Po({ title: ce("提示"), content: ce("此应用未配置菜单/无菜单权限") + "<br/>" + ce("无法使用") }), m = !0), m) return !1;
|
|
12272
|
-
const y = { ...
|
|
12272
|
+
const y = { ...v, menus: b, originalMenus: x };
|
|
12273
12273
|
return Ot([{ key: "subAppList", value: y }]), !0;
|
|
12274
|
-
}, s = async (
|
|
12274
|
+
}, s = async (v) => {
|
|
12275
12275
|
var M, j, ue, G, ie;
|
|
12276
|
-
const { microApp: _ = null, menuCode: C = "", menuPath: E = "", route: b = {} } =
|
|
12277
|
-
let
|
|
12276
|
+
const { microApp: _ = null, menuCode: C = "", menuPath: E = "", route: b = {} } = v;
|
|
12277
|
+
let x = b;
|
|
12278
12278
|
if (!_ && E) {
|
|
12279
12279
|
if (p(), !(f && f.find((Y) => E.startsWith("/" + Y) || E.startsWith(Y)))) return;
|
|
12280
|
-
await i.push({ path: E, query:
|
|
12280
|
+
await i.push({ path: E, query: x.query });
|
|
12281
12281
|
return;
|
|
12282
12282
|
}
|
|
12283
|
-
const m = ((M =
|
|
12284
|
-
let y = ((j =
|
|
12283
|
+
const m = ((M = x.meta) == null ? void 0 : M.showLayout) ?? !0;
|
|
12284
|
+
let y = ((j = x.query) == null ? void 0 : j.showLayout) ?? !0;
|
|
12285
12285
|
y === "false" && (y = !1);
|
|
12286
12286
|
const S = (_ == null ? void 0 : _.openType) ?? 1, k = (_ == null ? void 0 : _.type) ?? 1;
|
|
12287
12287
|
if (_.routeUrl && !f.includes(_.routeUrl)) {
|
|
@@ -12298,7 +12298,7 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12298
12298
|
const de = { ...le, value: le.code, label: le.name };
|
|
12299
12299
|
ge.nav.appendItem(de);
|
|
12300
12300
|
}), ge.nav.setActiveItem(_.code), _.routeUrl.includes("entrance=main")) {
|
|
12301
|
-
await i.push({ path: _.routeUrl, query: { ...
|
|
12301
|
+
await i.push({ path: _.routeUrl, query: { ...x.query, app: _.code } });
|
|
12302
12302
|
return;
|
|
12303
12303
|
}
|
|
12304
12304
|
if (S === 1 && k === 2) {
|
|
@@ -12316,7 +12316,7 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12316
12316
|
await i.push({
|
|
12317
12317
|
path: H,
|
|
12318
12318
|
query: {
|
|
12319
|
-
...
|
|
12319
|
+
...x.query,
|
|
12320
12320
|
app: _.code
|
|
12321
12321
|
}
|
|
12322
12322
|
});
|
|
@@ -12329,11 +12329,11 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12329
12329
|
currentMenu: P = null,
|
|
12330
12330
|
microPath: N = "",
|
|
12331
12331
|
query: I = {}
|
|
12332
|
-
} = await h4({ microApp: _, menuCode: C, menuPath: E, route:
|
|
12333
|
-
if (P && (
|
|
12332
|
+
} = await h4({ microApp: _, menuCode: C, menuPath: E, route: x });
|
|
12333
|
+
if (P && (x = {
|
|
12334
12334
|
path: N || `/${P.applicationPath}${P.routeUrl}`.replace(/\/\//g, "/"),
|
|
12335
12335
|
query: { ...I, app: P.applicationCode, menu: P.code },
|
|
12336
|
-
meta: { ...(
|
|
12336
|
+
meta: { ...(x == null ? void 0 : x.meta) ?? {} }
|
|
12337
12337
|
}), T && (T == null ? void 0 : T.code) !== (_ == null ? void 0 : _.code)) {
|
|
12338
12338
|
if (T.fixed || T.unClosed)
|
|
12339
12339
|
await i.push(T.path), p(), ge.nav.setActiveItem(T.path);
|
|
@@ -12348,7 +12348,7 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12348
12348
|
await i.push({
|
|
12349
12349
|
path: E,
|
|
12350
12350
|
query: {
|
|
12351
|
-
...
|
|
12351
|
+
...x.query,
|
|
12352
12352
|
app: L.code
|
|
12353
12353
|
}
|
|
12354
12354
|
});
|
|
@@ -12370,43 +12370,43 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12370
12370
|
} else
|
|
12371
12371
|
ge.tab.setItems([]);
|
|
12372
12372
|
}
|
|
12373
|
-
r({ currentMenu: P, microPath: N, route:
|
|
12374
|
-
}, d = async (
|
|
12373
|
+
r({ currentMenu: P, microPath: N, route: x });
|
|
12374
|
+
}, d = async (v, _ = !0) => {
|
|
12375
12375
|
var S;
|
|
12376
12376
|
ut.innerSet = _;
|
|
12377
|
-
const C =
|
|
12378
|
-
if (
|
|
12379
|
-
await i.push({ path:
|
|
12380
|
-
{ key: "currentSubAppCode", value:
|
|
12381
|
-
{ key: "currentSubApp", value:
|
|
12377
|
+
const C = v.query ?? {};
|
|
12378
|
+
if (v.fixed || v.unClosed) {
|
|
12379
|
+
await i.push({ path: v.path, query: C }), ge.menu.setItems([]), ge.tab.setItems([]), ge.nav.setActiveItem(v.path), Ot([
|
|
12380
|
+
{ key: "currentSubAppCode", value: v.code },
|
|
12381
|
+
{ key: "currentSubApp", value: v }
|
|
12382
12382
|
]), Vt([
|
|
12383
12383
|
{ key: "currentCode", value: "" },
|
|
12384
12384
|
{ key: "currentTab", value: {} }
|
|
12385
12385
|
]);
|
|
12386
12386
|
return;
|
|
12387
12387
|
}
|
|
12388
|
-
const E = (S = Oe().subAppList) == null ? void 0 : S.find((k) => k.code ===
|
|
12389
|
-
await s({ microApp: E, menuCode:
|
|
12388
|
+
const E = (S = Oe().subAppList) == null ? void 0 : S.find((k) => k.code === v.code), b = Dt().preTab[v.code], x = (b == null ? void 0 : b.code) ?? "", y = { ...(b == null ? void 0 : b.query) ?? {}, ...C };
|
|
12389
|
+
await s({ microApp: E, menuCode: x, route: { query: y } });
|
|
12390
12390
|
};
|
|
12391
12391
|
return {
|
|
12392
12392
|
beforeEntryApp: h,
|
|
12393
12393
|
entryApp: s,
|
|
12394
12394
|
changeApp: d,
|
|
12395
|
-
deleteApp: async (
|
|
12396
|
-
var
|
|
12395
|
+
deleteApp: async (v) => {
|
|
12396
|
+
var x;
|
|
12397
12397
|
const _ = Oe();
|
|
12398
|
-
if (!((
|
|
12399
|
-
const C = _.subAppList.findIndex((m) => m.code ===
|
|
12398
|
+
if (!((x = _.subAppList) != null && x.length)) return;
|
|
12399
|
+
const C = _.subAppList.findIndex((m) => m.code === v.code);
|
|
12400
12400
|
if (C === -1) return;
|
|
12401
|
-
const E = Dt().tabMap[
|
|
12401
|
+
const E = Dt().tabMap[v.code] ?? [];
|
|
12402
12402
|
if (E.length) {
|
|
12403
12403
|
const m = E.filter((y) => !y.path.startsWith(br)).map((y) => y.path);
|
|
12404
12404
|
m && m.length && n(m), E.forEach((y) => ge.iframeView.triggerEventListener("onUnloadPage", y.path));
|
|
12405
12405
|
}
|
|
12406
12406
|
let b = null;
|
|
12407
|
-
if (_.currentSubAppCode ===
|
|
12408
|
-
{ key: `preTab:${
|
|
12409
|
-
{ key: `tabMap:${
|
|
12407
|
+
if (_.currentSubAppCode === v.code && (C + 1 !== _.subAppList.length ? _.subAppList[C + 1] && (b = _.subAppList[C + 1]) : _.subAppList[C - 1] && (b = _.subAppList[C - 1])), _.subAppList.splice(C, 1), Ot([{ key: "subAppList", value: _.subAppList }]), Vt([
|
|
12408
|
+
{ key: `preTab:${v.code}`, value: {} },
|
|
12409
|
+
{ key: `tabMap:${v.code}`, value: [] }
|
|
12410
12410
|
]), b) {
|
|
12411
12411
|
const m = { ...b, value: b.code, label: b.name };
|
|
12412
12412
|
await d(m), ge.nav.setActiveItem(b.code);
|
|
@@ -12422,43 +12422,43 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12422
12422
|
if (!f) return;
|
|
12423
12423
|
let s = { ...p.query, app: f.applicationCode, menu: f.code };
|
|
12424
12424
|
const d = (f == null ? void 0 : f.openType) ?? 1, w = (f == null ? void 0 : f.type) ?? 1;
|
|
12425
|
-
let
|
|
12425
|
+
let v = "";
|
|
12426
12426
|
if (d === 1)
|
|
12427
12427
|
if (w === 1)
|
|
12428
12428
|
if (f.routeUrl.startsWith(br)) {
|
|
12429
12429
|
const b = C0(f.routeUrl, "iframeSrc");
|
|
12430
|
-
if (
|
|
12431
|
-
const
|
|
12432
|
-
path:
|
|
12433
|
-
name:
|
|
12430
|
+
if (v = `${br}-${f.code}`, !i.options.routes.find((x) => x.path === v)) {
|
|
12431
|
+
const x = {
|
|
12432
|
+
path: v,
|
|
12433
|
+
name: v,
|
|
12434
12434
|
component: kt(R0, {
|
|
12435
12435
|
src: b
|
|
12436
12436
|
}),
|
|
12437
12437
|
meta: { isIframe: !0, keepAlive: !0 }
|
|
12438
12438
|
};
|
|
12439
|
-
i.addRoute(
|
|
12439
|
+
i.addRoute(x), i.options.routes.push(x);
|
|
12440
12440
|
}
|
|
12441
|
-
await i.push({ path:
|
|
12442
|
-
} else f.applicationPath && (
|
|
12441
|
+
await i.push({ path: v, query: s });
|
|
12442
|
+
} else f.applicationPath && (v = h || f.routeUrl, v = `/${f.applicationPath}${v}`.replace(/\/\//g, "/"), await i.push({ path: v, query: s }));
|
|
12443
12443
|
else {
|
|
12444
|
-
const b = await S0(f.routeUrl, (f == null ? void 0 : f.param) ?? []),
|
|
12445
|
-
if (
|
|
12444
|
+
const b = await S0(f.routeUrl, (f == null ? void 0 : f.param) ?? []), x = B0(b0(w0(b)));
|
|
12445
|
+
if (v = `${br}-${f.code}`, !i.options.routes.find((m) => m.path === v)) {
|
|
12446
12446
|
const m = {
|
|
12447
|
-
path:
|
|
12448
|
-
name:
|
|
12447
|
+
path: v,
|
|
12448
|
+
name: v,
|
|
12449
12449
|
component: kt(R0, {
|
|
12450
|
-
src:
|
|
12450
|
+
src: x
|
|
12451
12451
|
}),
|
|
12452
12452
|
meta: { isIframe: !0, keepAlive: !0 }
|
|
12453
12453
|
};
|
|
12454
12454
|
i.addRoute(m), i.options.routes.push(m);
|
|
12455
12455
|
}
|
|
12456
|
-
await i.push({ path:
|
|
12456
|
+
await i.push({ path: v, query: s });
|
|
12457
12457
|
}
|
|
12458
12458
|
if (d === 2) {
|
|
12459
12459
|
const b = w === 1 ? `/${f.applicationPath}/${f.routeUrl}`.replace(/\/\//g, "/") : f.routeUrl;
|
|
12460
|
-
let
|
|
12461
|
-
|
|
12460
|
+
let x = await S0(b, (f == null ? void 0 : f.param) ?? []);
|
|
12461
|
+
x = B0(b0(w0(x))), ut.innerSet && (v = gd, await i.push({ path: v, query: s }), ut.innerSet = !1, x && window.open(x, "_blank"));
|
|
12462
12462
|
}
|
|
12463
12463
|
Od({
|
|
12464
12464
|
appCode: f.applicationCode,
|
|
@@ -12476,7 +12476,7 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12476
12476
|
menuId: f.id,
|
|
12477
12477
|
code: f.code,
|
|
12478
12478
|
name: (f == null ? void 0 : f.tabName) ?? f.name,
|
|
12479
|
-
path:
|
|
12479
|
+
path: v,
|
|
12480
12480
|
query: s
|
|
12481
12481
|
};
|
|
12482
12482
|
ge.tab.appendItem({
|
|
@@ -12509,8 +12509,8 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12509
12509
|
!l && c && (f = [{ name: c }]);
|
|
12510
12510
|
const p = async (d) => {
|
|
12511
12511
|
var y, S, k, R;
|
|
12512
|
-
let w = { ...d }, { showLayout:
|
|
12513
|
-
|
|
12512
|
+
let w = { ...d }, { showLayout: v = !0 } = w.query;
|
|
12513
|
+
v === "false" && (v = !1);
|
|
12514
12514
|
const _ = async () => {
|
|
12515
12515
|
var N, I;
|
|
12516
12516
|
let T = Oe().appcategorys ?? [];
|
|
@@ -12539,9 +12539,9 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12539
12539
|
return;
|
|
12540
12540
|
}
|
|
12541
12541
|
}
|
|
12542
|
-
const E = await _(), b = E.map((T) => T.code),
|
|
12542
|
+
const E = await _(), b = E.map((T) => T.code), x = ((y = w.query) == null ? void 0 : y.app) ?? "", m = ((S = Oe()) == null ? void 0 : S.subAppList) ?? [];
|
|
12543
12543
|
if (m.length) {
|
|
12544
|
-
const T = m.filter((N) => N.code !==
|
|
12544
|
+
const T = m.filter((N) => N.code !== x && !b.includes(N.code)), P = m.filter((N) => x === N.code || b.includes(N.code) || N.id === "-1" || N.id === "-2");
|
|
12545
12545
|
Ot([{ key: "subAppList", value: P }]), T && T.length && T.forEach((N) => {
|
|
12546
12546
|
Vt([
|
|
12547
12547
|
{ key: `preTab:${N.code}`, value: {} },
|
|
@@ -12551,7 +12551,7 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12551
12551
|
}
|
|
12552
12552
|
if (w.query.app) {
|
|
12553
12553
|
let T = E.find((P) => P.code === w.query.app);
|
|
12554
|
-
if (!T &&
|
|
12554
|
+
if (!T && v) {
|
|
12555
12555
|
const { currentApp: P } = F0(w.query.app);
|
|
12556
12556
|
if (P) {
|
|
12557
12557
|
T = P;
|
|
@@ -12586,7 +12586,7 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12586
12586
|
return;
|
|
12587
12587
|
}
|
|
12588
12588
|
}
|
|
12589
|
-
|
|
12589
|
+
v && ((R = (k = Oe()) == null ? void 0 : k.subAppList) == null || R.forEach((T) => {
|
|
12590
12590
|
const P = { ...T, value: T.code, label: T.name };
|
|
12591
12591
|
ge.nav.appendItem(P);
|
|
12592
12592
|
}));
|
|
@@ -12595,9 +12595,10 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12595
12595
|
_t(
|
|
12596
12596
|
() => a.currentRoute.value,
|
|
12597
12597
|
async (d) => {
|
|
12598
|
+
var v;
|
|
12598
12599
|
const w = d.query.loginType || "";
|
|
12599
12600
|
if (w && localStorage.setItem("loginType", w), !(d.path === h && y0(d.query, s))) {
|
|
12600
|
-
if (h = no(d.path), s = no(d.query), s && s.source && localStorage.setItem("thirdLogouSource", s.source), await r(), ut.innerSet) {
|
|
12601
|
+
if (h = no(d.path), s = no(d.query), s && s.source && ((v = s.source) != null && v.trim()) && s.source.trim() !== "undefined" && s.source.trim() !== "null" && localStorage.setItem("thirdLogouSource", s.source), await r(), ut.innerSet) {
|
|
12601
12602
|
ut.innerSet = !1;
|
|
12602
12603
|
return;
|
|
12603
12604
|
}
|
|
@@ -12629,8 +12630,8 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12629
12630
|
}, h = dC();
|
|
12630
12631
|
h && (p.redirect_uri = iC(p.redirect_uri, { loginType: h })), n.ssoLocale && (p.locale = "locale");
|
|
12631
12632
|
const s = new URLSearchParams();
|
|
12632
|
-
Object.entries(p).forEach(([
|
|
12633
|
-
s.set(
|
|
12633
|
+
Object.entries(p).forEach(([v, _]) => {
|
|
12634
|
+
s.set(v, String(_));
|
|
12634
12635
|
});
|
|
12635
12636
|
const d = s.toString(), w = `${n.baseURL}${YE.logout}?${d}`;
|
|
12636
12637
|
window.__isAutoCloseApp = !1, _C() ? await CC(w) : (fC(), location.replace(w));
|
|
@@ -12641,8 +12642,8 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12641
12642
|
await Po({ title: _, content: C, desc: E });
|
|
12642
12643
|
return;
|
|
12643
12644
|
}
|
|
12644
|
-
const
|
|
12645
|
-
|
|
12645
|
+
const v = h.find((_) => _.code === f);
|
|
12646
|
+
v && l({ microApp: v, menuPath: `/${v.routeUrl}/userInfo` });
|
|
12646
12647
|
};
|
|
12647
12648
|
return ge.nav.addEventListener("onUserCommandChange", (f) => {
|
|
12648
12649
|
var h, s;
|
|
@@ -12674,13 +12675,13 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12674
12675
|
const [h, s] = await e3().run({ tenant: p });
|
|
12675
12676
|
if (h) return;
|
|
12676
12677
|
r.value = !1;
|
|
12677
|
-
const { access_token: d = "", refresh_token: w = "", exp:
|
|
12678
|
+
const { access_token: d = "", refresh_token: w = "", exp: v = 0, sub: _ = "", name: C = "", flag: E = "", tenant: b = "" } = s, x = {
|
|
12678
12679
|
accessToken: d,
|
|
12679
|
-
accessTokenExpiredAt: Number(
|
|
12680
|
+
accessTokenExpiredAt: Number(v),
|
|
12680
12681
|
refreshToken: w,
|
|
12681
12682
|
info: s
|
|
12682
12683
|
};
|
|
12683
|
-
cd().save(
|
|
12684
|
+
cd().save(x);
|
|
12684
12685
|
const m = {
|
|
12685
12686
|
id: _,
|
|
12686
12687
|
name: C,
|
|
@@ -12723,8 +12724,8 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12723
12724
|
return ge.nav.addEventListener("searchToPage", async (a) => {
|
|
12724
12725
|
const { item: l, keyword: c, cb: f } = a;
|
|
12725
12726
|
if (l != null && l.disable || l != null && l.expired) {
|
|
12726
|
-
const { title: w, content:
|
|
12727
|
-
await Po({ title: w, content:
|
|
12727
|
+
const { title: w, content: v, desc: _ } = await X0(l);
|
|
12728
|
+
await Po({ title: w, content: v, desc: _ });
|
|
12728
12729
|
return;
|
|
12729
12730
|
}
|
|
12730
12731
|
await i3().run({ searchVal: c, clickData: l });
|
|
@@ -12752,9 +12753,9 @@ const eE = new URL("assets/setected-tvECHVG9.svg", import.meta.url).href, tE = n
|
|
|
12752
12753
|
let c = l.startsWith("/") ? `http://example.com${l}` : `http://example.com/${l}`;
|
|
12753
12754
|
const f = new URL(c), p = new URLSearchParams(f.search), h = p.get("app"), s = p.get("menu");
|
|
12754
12755
|
if (s && h) {
|
|
12755
|
-
const
|
|
12756
|
-
if (!
|
|
12757
|
-
r({ microApp:
|
|
12756
|
+
const v = ((Oe().appcategorys ?? []).map((_) => _.apps).flat() ?? []).find((_) => _.code === h);
|
|
12757
|
+
if (!v) return;
|
|
12758
|
+
r({ microApp: v, menuCode: s });
|
|
12758
12759
|
}
|
|
12759
12760
|
}, a = (l) => {
|
|
12760
12761
|
l && ht.sendMessageToMicroApp("", "openAIPanel");
|
|
@@ -12906,8 +12907,8 @@ const C3 = x3.post("data/device-auth"), y3 = /* @__PURE__ */ at({
|
|
|
12906
12907
|
ref_key: "containerRef",
|
|
12907
12908
|
ref: l,
|
|
12908
12909
|
class: id(["wrapper", { "is-active": n.active }]),
|
|
12909
|
-
onDblclick: w[0] || (w[0] = (
|
|
12910
|
-
onClick: w[1] || (w[1] = (
|
|
12910
|
+
onDblclick: w[0] || (w[0] = (v) => p()),
|
|
12911
|
+
onClick: w[1] || (w[1] = (v) => h())
|
|
12911
12912
|
},
|
|
12912
12913
|
[
|
|
12913
12914
|
sr(d.$slots, "default", {}, void 0, !0)
|
|
@@ -13110,7 +13111,7 @@ const C3 = x3.post("data/device-auth"), y3 = /* @__PURE__ */ at({
|
|
|
13110
13111
|
}), s = z(!1), d = z(!0), w = (y) => {
|
|
13111
13112
|
c.value = y, c.value.on(window.mpegts.Events.ERROR, (S) => {
|
|
13112
13113
|
});
|
|
13113
|
-
},
|
|
13114
|
+
}, v = () => {
|
|
13114
13115
|
l.value = !l.value, c.value && (c.value.muted = l.value);
|
|
13115
13116
|
}, _ = () => {
|
|
13116
13117
|
f.value = !f.value;
|
|
@@ -13128,7 +13129,7 @@ const C3 = x3.post("data/device-auth"), y3 = /* @__PURE__ */ at({
|
|
|
13128
13129
|
}
|
|
13129
13130
|
}, b = (y) => {
|
|
13130
13131
|
a("directionControl", y);
|
|
13131
|
-
},
|
|
13132
|
+
}, x = (y) => {
|
|
13132
13133
|
a("zoomControl", y);
|
|
13133
13134
|
}, m = (y) => n.authType.includes(y);
|
|
13134
13135
|
return _t(
|
|
@@ -13234,7 +13235,7 @@ const C3 = x3.post("data/device-auth"), y3 = /* @__PURE__ */ at({
|
|
|
13234
13235
|
ae(D(Yr), {
|
|
13235
13236
|
class: "icon icon-volume",
|
|
13236
13237
|
icon: l.value ? "muted" : "volume",
|
|
13237
|
-
onClick: mt(
|
|
13238
|
+
onClick: mt(v, ["stop"])
|
|
13238
13239
|
}, null, 8, ["icon"])
|
|
13239
13240
|
]),
|
|
13240
13241
|
_: 1
|
|
@@ -13262,7 +13263,7 @@ const C3 = x3.post("data/device-auth"), y3 = /* @__PURE__ */ at({
|
|
|
13262
13263
|
key: 0,
|
|
13263
13264
|
class: "icon icon-shrink",
|
|
13264
13265
|
icon: "shrink",
|
|
13265
|
-
onClick: S[0] || (S[0] = mt((k) =>
|
|
13266
|
+
onClick: S[0] || (S[0] = mt((k) => x("zoomOut"), ["stop"]))
|
|
13266
13267
|
})) : Ie("v-if", !0)
|
|
13267
13268
|
]),
|
|
13268
13269
|
_: 1
|
|
@@ -13277,7 +13278,7 @@ const C3 = x3.post("data/device-auth"), y3 = /* @__PURE__ */ at({
|
|
|
13277
13278
|
key: 0,
|
|
13278
13279
|
class: "icon icon-enlarge",
|
|
13279
13280
|
icon: "enlarge",
|
|
13280
|
-
onClick: S[1] || (S[1] = mt((k) =>
|
|
13281
|
+
onClick: S[1] || (S[1] = mt((k) => x("zoomIn"), ["stop"]))
|
|
13281
13282
|
})) : Ie("v-if", !0)
|
|
13282
13283
|
]),
|
|
13283
13284
|
_: 1
|
|
@@ -14993,8 +14994,8 @@ class C6 {
|
|
|
14993
14994
|
return;
|
|
14994
14995
|
} catch (w) {
|
|
14995
14996
|
if (this._logger.log(X.Error, `Failed to start the transport '${s.transport}': ${w}`), h = void 0, f.push(new G3(`${s.transport} failed: ${w}`, ct[s.transport])), this._connectionState !== "Connecting") {
|
|
14996
|
-
const
|
|
14997
|
-
return this._logger.log(X.Debug,
|
|
14997
|
+
const v = "Failed to select transport before stop() was called.";
|
|
14998
|
+
return this._logger.log(X.Debug, v), Promise.reject(new wn(v));
|
|
14998
14999
|
}
|
|
14999
15000
|
}
|
|
15000
15001
|
}
|
|
@@ -15335,18 +15336,18 @@ const R6 = wt(`/api/tool/event-bus/${ha}/`), _0 = R6.post("/publish"), L6 = na.g
|
|
|
15335
15336
|
return An(async () => {
|
|
15336
15337
|
if (window.self !== window.top) return;
|
|
15337
15338
|
await ia();
|
|
15338
|
-
const f = (
|
|
15339
|
+
const f = (x) => {
|
|
15339
15340
|
try {
|
|
15340
|
-
return JSON.parse(
|
|
15341
|
+
return JSON.parse(x);
|
|
15341
15342
|
} catch {
|
|
15342
15343
|
return !1;
|
|
15343
15344
|
}
|
|
15344
|
-
}, p = async (
|
|
15345
|
+
}, p = async (x) => {
|
|
15345
15346
|
var S, k, R, T, P;
|
|
15346
15347
|
const m = Oe(), y = ((S = m.appcategorys) == null ? void 0 : S.map((N) => N.apps).flat()) || [];
|
|
15347
|
-
if (Array.isArray(
|
|
15348
|
-
const N =
|
|
15349
|
-
if (
|
|
15348
|
+
if (Array.isArray(x)) {
|
|
15349
|
+
const N = x.filter((I) => I.code).map((I) => I.code);
|
|
15350
|
+
if (x.length) {
|
|
15350
15351
|
if (m.currentSubAppCode) {
|
|
15351
15352
|
const L = m.currentSubApp.menus ?? [], M = nn(L).find((j) => N.includes(j.code));
|
|
15352
15353
|
if (M) {
|
|
@@ -15358,16 +15359,16 @@ const R6 = wt(`/api/tool/event-bus/${ha}/`), _0 = R6.post("/publish"), L6 = na.g
|
|
|
15358
15359
|
I && n({ microApp: I });
|
|
15359
15360
|
}
|
|
15360
15361
|
}
|
|
15361
|
-
if (typeof
|
|
15362
|
+
if (typeof x == "string") {
|
|
15362
15363
|
const N = {
|
|
15363
15364
|
application: "/application",
|
|
15364
15365
|
home: "/home"
|
|
15365
15366
|
};
|
|
15366
|
-
if (N[
|
|
15367
|
-
i.push(N[
|
|
15367
|
+
if (N[x.toLowerCase()]) {
|
|
15368
|
+
i.push(N[x.toLowerCase()]);
|
|
15368
15369
|
return;
|
|
15369
15370
|
}
|
|
15370
|
-
let I =
|
|
15371
|
+
let I = x;
|
|
15371
15372
|
const L = "_showEchartTooltip", M = I.endsWith(L);
|
|
15372
15373
|
M && (I = I.slice(0, I.indexOf(L)));
|
|
15373
15374
|
const j = "_zdkbInfo", ue = I.endsWith(j);
|
|
@@ -15418,30 +15419,30 @@ const R6 = wt(`/api/tool/event-bus/${ha}/`), _0 = R6.post("/publish"), L6 = na.g
|
|
|
15418
15419
|
}
|
|
15419
15420
|
};
|
|
15420
15421
|
let h = z(!0);
|
|
15421
|
-
const s = (
|
|
15422
|
+
const s = (x) => {
|
|
15422
15423
|
setTimeout(async () => {
|
|
15423
15424
|
var m, y;
|
|
15424
15425
|
if (h.value) {
|
|
15425
|
-
const [S, k] = await P6().run({}, { params: { aliasName:
|
|
15426
|
+
const [S, k] = await P6().run({}, { params: { aliasName: x.actionValue } });
|
|
15426
15427
|
S ? await _0().run({
|
|
15427
|
-
uniqueId:
|
|
15428
|
+
uniqueId: x.uniqueId,
|
|
15428
15429
|
status: 0,
|
|
15429
|
-
errorMsg: "未找到" +
|
|
15430
|
+
errorMsg: "未找到" + x.actionValue
|
|
15430
15431
|
}) : k.length ? (k.length > 1 ? p(k) : p((m = k[0]) == null ? void 0 : m.code), await _0().run({
|
|
15431
|
-
uniqueId:
|
|
15432
|
+
uniqueId: x.uniqueId,
|
|
15432
15433
|
status: 1,
|
|
15433
15434
|
targetName: (y = k[0]) == null ? void 0 : y.name
|
|
15434
15435
|
})) : await _0().run({
|
|
15435
|
-
uniqueId:
|
|
15436
|
+
uniqueId: x.uniqueId,
|
|
15436
15437
|
status: 0,
|
|
15437
|
-
errorMsg: "未找到" +
|
|
15438
|
+
errorMsg: "未找到" + x.actionValue
|
|
15438
15439
|
});
|
|
15439
15440
|
}
|
|
15440
15441
|
h.value = !0;
|
|
15441
15442
|
}, 2e3);
|
|
15442
|
-
}, d = (
|
|
15443
|
+
}, d = (x) => {
|
|
15443
15444
|
const m = qn(), y = JSON.parse(atob(m.split(".")[1])).sub;
|
|
15444
|
-
D6().on(`${
|
|
15445
|
+
D6().on(`${x}:${y}`, async function(k) {
|
|
15445
15446
|
let R = f(k);
|
|
15446
15447
|
if (R)
|
|
15447
15448
|
R.uniqueId && R.actionKey == "switch-menu" && s(R);
|
|
@@ -15450,17 +15451,17 @@ const R6 = wt(`/api/tool/event-bus/${ha}/`), _0 = R6.post("/publish"), L6 = na.g
|
|
|
15450
15451
|
p(P);
|
|
15451
15452
|
} else k.includes("iocIsRun") && (h.value = !1);
|
|
15452
15453
|
});
|
|
15453
|
-
}, w = z(""), [
|
|
15454
|
+
}, w = z(""), [v, _] = await ed().run();
|
|
15454
15455
|
w.value = _, d(w.value);
|
|
15455
15456
|
const C = async () => {
|
|
15456
|
-
const [
|
|
15457
|
+
const [x, m] = await ed().run();
|
|
15457
15458
|
m !== w.value && (w.value = m, d(w.value));
|
|
15458
15459
|
};
|
|
15459
15460
|
l = setInterval(() => {
|
|
15460
15461
|
C();
|
|
15461
15462
|
}, 72e5);
|
|
15462
|
-
const E = z("online"), b = (
|
|
15463
|
-
|
|
15463
|
+
const E = z("online"), b = (x) => {
|
|
15464
|
+
x === "online" && E.value === "offline" && setTimeout(() => {
|
|
15464
15465
|
C();
|
|
15465
15466
|
}, 5e3), E.value = (window.navigator.onLine ? "on" : "off") + "line";
|
|
15466
15467
|
};
|
|
@@ -15526,11 +15527,11 @@ const R6 = wt(`/api/tool/event-bus/${ha}/`), _0 = R6.post("/publish"), L6 = na.g
|
|
|
15526
15527
|
// 事件等级id
|
|
15527
15528
|
timeLimit: ""
|
|
15528
15529
|
// 处置时限
|
|
15529
|
-
}), w = z(!1),
|
|
15530
|
+
}), w = z(!1), v = z([]), _ = z([]), C = z([
|
|
15530
15531
|
{ id: 2, name: Ce("时").value },
|
|
15531
15532
|
{ id: 1, name: Ce("分").value },
|
|
15532
15533
|
{ id: 3, name: Ce("不限").value }
|
|
15533
|
-
]), E = z([]), b = z(""),
|
|
15534
|
+
]), E = z([]), b = z(""), x = z(Ce("告警对象位置").value), m = z(""), y = z([]), S = z("");
|
|
15534
15535
|
z("[]");
|
|
15535
15536
|
const k = z(!0), R = z(!0), T = async (K) => {
|
|
15536
15537
|
const ee = { name: "1" };
|
|
@@ -15568,19 +15569,19 @@ const R6 = wt(`/api/tool/event-bus/${ha}/`), _0 = R6.post("/publish"), L6 = na.g
|
|
|
15568
15569
|
}, G = (K, ee) => {
|
|
15569
15570
|
ee.length > 0 && (b.value = ee[0].path), s.value.reportPosition = K, S.value = "";
|
|
15570
15571
|
}, ie = (K) => {
|
|
15571
|
-
K && (d.value.reportPosition = "", b.value = ""), K ? (s.value.reportPosition = null, b.value = "",
|
|
15572
|
+
K && (d.value.reportPosition = "", b.value = ""), K ? (s.value.reportPosition = null, b.value = "", x.value = Ce("告警对象位置").value) : (s.value.reportPosition = null, b.value = "", x.value = Ce("请选择").value);
|
|
15572
15573
|
}, q = (K) => {
|
|
15573
15574
|
K && (d.value.reportTheme = ""), K ? (s.value.reportTheme = "", m.value = Ce("告警对象").value) : (s.value.reportTheme = "", m.value = Ce("请输入").value);
|
|
15574
15575
|
}, Y = () => {
|
|
15575
15576
|
d.value.processTypeId = "", d.value.reason = "", d.value.treatmentPlan = "", d.value.reportPosition = "", d.value.reportTheme = "", d.value.workOrderRules = "", d.value.eventTypeId = "", d.value.eventLevelId = "", d.value.timeLimit = "";
|
|
15576
15577
|
}, le = () => {
|
|
15577
|
-
s.value.processTypeId = "confirm", s.value.reason = "", s.value.treatmentPlan = "", s.value.remarks = "", s.value.reportPosition = "", s.value.reportTheme = "", s.value.workOrderRules = null, R.value = !0, I.value = !0, N.value = !0, s.value.reportTheme = Ce("告警对象").value, b.value = "",
|
|
15578
|
+
s.value.processTypeId = "confirm", s.value.reason = "", s.value.treatmentPlan = "", s.value.remarks = "", s.value.reportPosition = "", s.value.reportTheme = "", s.value.workOrderRules = null, R.value = !0, I.value = !0, N.value = !0, s.value.reportTheme = Ce("告警对象").value, b.value = "", x.value = Ce("告警对象位置").value, m.value = Ce("请输入").value, s.value.eventTypeId = "", s.value.eventLevelId = null, s.value.timeLimit = "", s.value.interval = 1, v.value = [], _.value = [];
|
|
15578
15579
|
}, de = (K) => {
|
|
15579
15580
|
K == "eventTypeId" && (s.value.eventLevelId = null, Q()), K == "eventLevelId" && ne(), K == "interval" && (d.value.timeLimit = "", s.value.interval == 3 ? (w.value = !0, s.value.timeLimit = "") : w.value = !1);
|
|
15580
15581
|
}, H = async () => {
|
|
15581
15582
|
const [K, ee] = await K6().run();
|
|
15582
15583
|
if (K) return {};
|
|
15583
|
-
|
|
15584
|
+
v.value = ee, s.value.eventTypeId || (s.value.eventTypeId = ee[0] ? ee[0].id : null), Q();
|
|
15584
15585
|
}, Q = async () => {
|
|
15585
15586
|
const K = {
|
|
15586
15587
|
eventTypeId: s.value.eventTypeId
|
|
@@ -15827,7 +15828,7 @@ const R6 = wt(`/api/tool/event-bus/${ha}/`), _0 = R6.post("/publish"), L6 = na.g
|
|
|
15827
15828
|
"onUpdate:keyword": ee[10] || (ee[10] = (oe) => S.value = oe),
|
|
15828
15829
|
showFullPath: !0,
|
|
15829
15830
|
data: y.value,
|
|
15830
|
-
placeholder:
|
|
15831
|
+
placeholder: x.value,
|
|
15831
15832
|
disabled: k.value,
|
|
15832
15833
|
load: T,
|
|
15833
15834
|
search: P,
|
|
@@ -15935,7 +15936,7 @@ const R6 = wt(`/api/tool/event-bus/${ha}/`), _0 = R6.post("/publish"), L6 = na.g
|
|
|
15935
15936
|
"onUpdate:modelValue": ee[19] || (ee[19] = (oe) => s.value.eventTypeId = oe),
|
|
15936
15937
|
error: d.value.eventTypeId,
|
|
15937
15938
|
"onUpdate:error": ee[20] || (ee[20] = (oe) => d.value.eventTypeId = oe),
|
|
15938
|
-
options:
|
|
15939
|
+
options: v.value,
|
|
15939
15940
|
col: 1,
|
|
15940
15941
|
optionsLabelKey: "typeName",
|
|
15941
15942
|
optionsValueKey: "id",
|
|
@@ -16208,7 +16209,7 @@ const wS = () => {
|
|
|
16208
16209
|
var I;
|
|
16209
16210
|
const N = [];
|
|
16210
16211
|
N.push({ alarmId: P.recordId }), l.value = N, (I = n.value) == null || I.open();
|
|
16211
|
-
}, { entryApp: w } = Gi.hooks.useEntryApp(),
|
|
16212
|
+
}, { entryApp: w } = Gi.hooks.useEntryApp(), v = (P) => {
|
|
16212
16213
|
pd(P.equipmentCode, P.equipmentPanelCode, null, null, null, !1, P.createTime);
|
|
16213
16214
|
}, { handleAlarmVue: _ } = iS(n, l), C = async () => {
|
|
16214
16215
|
var I;
|
|
@@ -16216,10 +16217,10 @@ const wS = () => {
|
|
|
16216
16217
|
N && w({ microApp: N, menuPath: `/${N.routeUrl}/realTimeAlarm` });
|
|
16217
16218
|
}, E = [], b = (P) => {
|
|
16218
16219
|
if (E.push(P), c.value.length < 2) {
|
|
16219
|
-
|
|
16220
|
+
x(E[0]), E.shift();
|
|
16220
16221
|
return;
|
|
16221
16222
|
}
|
|
16222
|
-
},
|
|
16223
|
+
}, x = (P) => {
|
|
16223
16224
|
if (!P) return;
|
|
16224
16225
|
const N = bS();
|
|
16225
16226
|
Vi.open({
|
|
@@ -16230,7 +16231,7 @@ const wS = () => {
|
|
|
16230
16231
|
description: kt(yS, {
|
|
16231
16232
|
msgItem: P,
|
|
16232
16233
|
alarmhandle: f.value,
|
|
16233
|
-
onHanderDetail:
|
|
16234
|
+
onHanderDetail: v,
|
|
16234
16235
|
onHanderFn: d
|
|
16235
16236
|
}),
|
|
16236
16237
|
duration: 5,
|
|
@@ -16241,7 +16242,7 @@ const wS = () => {
|
|
|
16241
16242
|
setTimeout(() => {
|
|
16242
16243
|
const I = c.value.findIndex((L) => L == N);
|
|
16243
16244
|
if (I >= 0 && c.value.splice(I, 1), c.value.length < 2 && E.length) {
|
|
16244
|
-
|
|
16245
|
+
x(E[0]), E.shift();
|
|
16245
16246
|
return;
|
|
16246
16247
|
}
|
|
16247
16248
|
}, 300);
|
|
@@ -16336,14 +16337,14 @@ const wS = () => {
|
|
|
16336
16337
|
}, a = async () => {
|
|
16337
16338
|
if (!hC())
|
|
16338
16339
|
try {
|
|
16339
|
-
const { refreshToken:
|
|
16340
|
-
if (!
|
|
16340
|
+
const { refreshToken: x } = cd().getData();
|
|
16341
|
+
if (!x)
|
|
16341
16342
|
return;
|
|
16342
16343
|
await pC($0) && f();
|
|
16343
16344
|
} catch {
|
|
16344
16345
|
}
|
|
16345
16346
|
}, l = () => {
|
|
16346
|
-
const
|
|
16347
|
+
const x = Mi("accessTokenExpiredAt"), m = x ? Number(x) : 0;
|
|
16347
16348
|
if (!m || m <= 0)
|
|
16348
16349
|
return 0;
|
|
16349
16350
|
const y = m - Date.now(), S = 5 * 60 * 1e3, k = 30 * 60 * 1e3, R = 2 * 60 * 60 * 1e3;
|
|
@@ -16352,7 +16353,7 @@ const wS = () => {
|
|
|
16352
16353
|
const P = y - T;
|
|
16353
16354
|
return P > 0 ? P : 0;
|
|
16354
16355
|
}, c = () => {
|
|
16355
|
-
const
|
|
16356
|
+
const x = Mi("accessTokenExpiredAt"), m = x ? Number(x) : 0;
|
|
16356
16357
|
if (!m || m <= 0)
|
|
16357
16358
|
return 60 * 1e3;
|
|
16358
16359
|
const y = m - Date.now(), S = 5 * 60 * 1e3, k = 30 * 60 * 1e3, R = 2 * 60 * 60 * 1e3;
|
|
@@ -16360,37 +16361,37 @@ const wS = () => {
|
|
|
16360
16361
|
return y <= S ? T = 10 * 1e3 : y <= k ? T = 30 * 1e3 : y <= R ? T = 2 * 60 * 1e3 : T = 5 * 60 * 1e3, T;
|
|
16361
16362
|
}, f = () => {
|
|
16362
16363
|
n();
|
|
16363
|
-
const
|
|
16364
|
-
|
|
16364
|
+
const x = l(), m = c();
|
|
16365
|
+
x <= 0 || (i.value = window.setTimeout(() => {
|
|
16365
16366
|
a();
|
|
16366
|
-
},
|
|
16367
|
+
}, x), r.value = window.setInterval(() => {
|
|
16367
16368
|
p();
|
|
16368
16369
|
}, m));
|
|
16369
16370
|
}, p = () => {
|
|
16370
|
-
const
|
|
16371
|
+
const x = Mi("accessTokenExpiredAt"), m = x ? Number(x) : 0;
|
|
16371
16372
|
if (!m || m <= 0)
|
|
16372
16373
|
return;
|
|
16373
16374
|
m - Date.now() <= 60 * 1e3 && a();
|
|
16374
16375
|
}, h = () => {
|
|
16375
|
-
const
|
|
16376
|
-
return !!(
|
|
16376
|
+
const x = Mi("accessTokenExpiredAt"), m = localStorage.getItem("accessToken");
|
|
16377
|
+
return !!(x && m);
|
|
16377
16378
|
}, s = () => {
|
|
16378
16379
|
p(), f();
|
|
16379
16380
|
}, d = () => {
|
|
16380
16381
|
n();
|
|
16381
16382
|
};
|
|
16382
|
-
let w = null,
|
|
16383
|
-
const C = 10, E = () => h() ? (s(), w && (clearTimeout(w), w = null),
|
|
16383
|
+
let w = null, v = null, _ = 0;
|
|
16384
|
+
const C = 10, E = () => h() ? (s(), w && (clearTimeout(w), w = null), v && (window.removeEventListener("storage", v), v = null), !0) : !1, b = () => {
|
|
16384
16385
|
_++, !(_ > C) && (E() || (w = window.setTimeout(() => {
|
|
16385
16386
|
b();
|
|
16386
16387
|
}, 500)));
|
|
16387
16388
|
};
|
|
16388
16389
|
return An(() => {
|
|
16389
|
-
E() || (b(),
|
|
16390
|
-
|
|
16391
|
-
}, window.addEventListener("storage",
|
|
16390
|
+
E() || (b(), v = (x) => {
|
|
16391
|
+
x.key === "accessTokenExpiredAt" && E();
|
|
16392
|
+
}, window.addEventListener("storage", v));
|
|
16392
16393
|
}), nd(() => {
|
|
16393
|
-
d(), w && (clearTimeout(w), w = null),
|
|
16394
|
+
d(), w && (clearTimeout(w), w = null), v && (window.removeEventListener("storage", v), v = null);
|
|
16394
16395
|
}), {
|
|
16395
16396
|
startTokenRefresh: s,
|
|
16396
16397
|
stopTokenRefresh: d,
|
|
@@ -16414,9 +16415,9 @@ const wS = () => {
|
|
|
16414
16415
|
},
|
|
16415
16416
|
{ immediate: !0 }
|
|
16416
16417
|
);
|
|
16417
|
-
const { initNextTick: h } = qE(), { loading: s, pageKey: d, commandList: w, initNextTick:
|
|
16418
|
-
ZE(h,
|
|
16419
|
-
const { $changePwd: _, $personSetDialog: C } = JE(), { $aiPanel: E, toApp: b, getAIPanelStatus:
|
|
16418
|
+
const { initNextTick: h } = qE(), { loading: s, pageKey: d, commandList: w, initNextTick: v } = jE(h);
|
|
16419
|
+
ZE(h, v), QE(), GE(), n3();
|
|
16420
|
+
const { $changePwd: _, $personSetDialog: C } = JE(), { $aiPanel: E, toApp: b, getAIPanelStatus: x } = c3(), { changeEnterprisesVisible: m, userId: y, tenantId: S, changeEnterprise: k } = lp();
|
|
16420
16421
|
KE();
|
|
16421
16422
|
const { fontColor: R, backgroudColor: T, borderColor: P } = XE();
|
|
16422
16423
|
return u3(), f3(w), d3(), h3(), j3(), N6(), SS(), (N, I) => (_e(), Ke("div", BS, [
|
|
@@ -16484,7 +16485,7 @@ const wS = () => {
|
|
|
16484
16485
|
onToApp: D(b),
|
|
16485
16486
|
ref_key: "$aiPanel",
|
|
16486
16487
|
ref: E,
|
|
16487
|
-
onGetStatus: D(
|
|
16488
|
+
onGetStatus: D(x)
|
|
16488
16489
|
}, null, 8, ["platformInitNextTick", "onToApp", "onGetStatus"]),
|
|
16489
16490
|
Ie(" 告警 "),
|
|
16490
16491
|
ae(D(ES))
|
|
@@ -16686,7 +16687,7 @@ z("@das-fed/web");
|
|
|
16686
16687
|
const TS = [
|
|
16687
16688
|
{
|
|
16688
16689
|
path: jt,
|
|
16689
|
-
component: () => import("./index-
|
|
16690
|
+
component: () => import("./index-KrpfKz6n.js"),
|
|
16690
16691
|
meta: {
|
|
16691
16692
|
layout: {
|
|
16692
16693
|
minWidth: "0px"
|
|
@@ -16695,7 +16696,7 @@ const TS = [
|
|
|
16695
16696
|
},
|
|
16696
16697
|
{
|
|
16697
16698
|
path: gd,
|
|
16698
|
-
component: () => import("./index-
|
|
16699
|
+
component: () => import("./index-mcZhp5kH.js")
|
|
16699
16700
|
}
|
|
16700
16701
|
], O5 = {
|
|
16701
16702
|
routes: TS,
|