@das-fed/web 7.0.1-beta.4 → 7.0.1-beta.5
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-CqfLT8h2.js → index-Cwi1llS_.js} +1 -1
- package/{index-CRfB8_jP.js → index-DcwOUZ1-.js} +434 -426
- package/index-DcwOUZ1-.js.gz +0 -0
- package/{packages/main-app-framework/index-BZhBzU-B.js → index-Dv1O0Bt7.js} +1 -1
- package/index-Dv1O0Bt7.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/{index-DbFV_BJP.js → packages/main-app-framework/index-BBN2mEFi.js} +1 -1
- package/packages/main-app-framework/{index-DZBJhlG3.js → index-DJlPkIkp.js} +710 -702
- package/packages/main-app-framework/index-DJlPkIkp.js.gz +0 -0
- package/{index-Dou58bml.js → packages/main-app-framework/index-DoWPII3c.js} +1 -1
- package/packages/main-app-framework/index-DoWPII3c.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/micro-frontend/index.js.gz +0 -0
- package/index-CRfB8_jP.js.gz +0 -0
- package/index-Dou58bml.js.gz +0 -0
- package/packages/main-app-framework/index-BZhBzU-B.js.gz +0 -0
- package/packages/main-app-framework/index-DZBJhlG3.js.gz +0 -0
|
@@ -196,8 +196,8 @@ function Nr(...e) {
|
|
|
196
196
|
Array.isArray(f) || (f = [f]), Array.isArray(v) || (v = [v]);
|
|
197
197
|
const P = [], t = () => {
|
|
198
198
|
P.forEach((u) => u()), P.length = 0;
|
|
199
|
-
}, z = (u, x, X,
|
|
200
|
-
t(), u && P.push(...f.flatMap((X) => v.map((
|
|
199
|
+
}, z = (u, x, X, s) => (u.addEventListener(x, X, s), () => u.removeEventListener(x, X, s)), d = OA(() => [nv(A), ev(r)], ([u, x]) => {
|
|
200
|
+
t(), u && P.push(...f.flatMap((X) => v.map((s) => z(u, X, s, x))));
|
|
201
201
|
}, { immediate: !0, flush: "post" }), n = () => {
|
|
202
202
|
d(), t();
|
|
203
203
|
};
|
|
@@ -256,9 +256,9 @@ function $9(e, A = {}) {
|
|
|
256
256
|
let t = O7[0];
|
|
257
257
|
const z = Rr(() => {
|
|
258
258
|
if (f) {
|
|
259
|
-
for (const
|
|
260
|
-
if (
|
|
261
|
-
return t =
|
|
259
|
+
for (const i of O7)
|
|
260
|
+
if (i[1] in f)
|
|
261
|
+
return t = i, !0;
|
|
262
262
|
} else
|
|
263
263
|
return !1;
|
|
264
264
|
return !1;
|
|
@@ -266,22 +266,22 @@ function $9(e, A = {}) {
|
|
|
266
266
|
async function X() {
|
|
267
267
|
z.value && (f != null && f[u] && await f[n](), P.value = !1);
|
|
268
268
|
}
|
|
269
|
-
async function
|
|
269
|
+
async function s() {
|
|
270
270
|
if (!z.value)
|
|
271
271
|
return;
|
|
272
272
|
await X();
|
|
273
|
-
const
|
|
274
|
-
|
|
273
|
+
const i = nv(r);
|
|
274
|
+
i && (await i[d](), P.value = !0);
|
|
275
275
|
}
|
|
276
276
|
async function a() {
|
|
277
|
-
P.value ? await X() : await
|
|
277
|
+
P.value ? await X() : await s();
|
|
278
278
|
}
|
|
279
279
|
return f && Nr(f, x, () => {
|
|
280
280
|
P.value = !!(f != null && f[u]);
|
|
281
281
|
}, !1), v && vv(X), {
|
|
282
282
|
isSupported: z,
|
|
283
283
|
isFullscreen: P,
|
|
284
|
-
enter:
|
|
284
|
+
enter: s,
|
|
285
285
|
exit: X,
|
|
286
286
|
toggle: a
|
|
287
287
|
};
|
|
@@ -336,28 +336,28 @@ const yr = Yn.get("watermark"), Wr = /* @__PURE__ */ qA({
|
|
|
336
336
|
const A = e, f = o({}), v = o(120), r = o(64), P = o([]), t = o([]), z = k3({
|
|
337
337
|
color: "rgba(0,0,0,.15)",
|
|
338
338
|
fontSize: 16
|
|
339
|
-
}), d = (
|
|
339
|
+
}), d = (i, b) => {
|
|
340
340
|
const H = document.createElement("span");
|
|
341
|
-
H.innerHTML =
|
|
342
|
-
const
|
|
343
|
-
v.value = Math.ceil(
|
|
344
|
-
}, n = o(!1), u = () => new Promise((
|
|
345
|
-
const
|
|
346
|
-
if (n) return
|
|
347
|
-
setTimeout(() =>
|
|
341
|
+
H.innerHTML = i, H.style.fontSize = b + "px", H.style.fontFamily = "sans-serif", H.style.visibility = "hidden", document.body.appendChild(H);
|
|
342
|
+
const c = H.getBoundingClientRect();
|
|
343
|
+
v.value = Math.ceil(c.width) + b / 2, r.value = Math.ceil(c.height), document.body.removeChild(H);
|
|
344
|
+
}, n = o(!1), u = () => new Promise((i) => {
|
|
345
|
+
const b = () => {
|
|
346
|
+
if (n) return i(!0);
|
|
347
|
+
setTimeout(() => b(), 50);
|
|
348
348
|
};
|
|
349
|
-
|
|
350
|
-
}), x = async (
|
|
349
|
+
b();
|
|
350
|
+
}), x = async (i) => {
|
|
351
351
|
var H;
|
|
352
352
|
await u();
|
|
353
|
-
const
|
|
354
|
-
t.value =
|
|
353
|
+
const b = !!((H = f.value) != null && H.pageSwith);
|
|
354
|
+
t.value = i && b ? [...P.value] : [];
|
|
355
355
|
}, X = async () => {
|
|
356
|
-
var
|
|
356
|
+
var c, q, p, m, R, V, l;
|
|
357
357
|
n.value = !0, await (A == null ? void 0 : A.platformInitNextTick());
|
|
358
|
-
const [
|
|
359
|
-
if (
|
|
360
|
-
if (f.value =
|
|
358
|
+
const [i, b] = await yr().run();
|
|
359
|
+
if (i) return null;
|
|
360
|
+
if (f.value = b, !!((c = f.value) != null && c.pageSwith)) {
|
|
361
361
|
P.value = [];
|
|
362
362
|
const { name: j, phone: O } = await fr();
|
|
363
363
|
let N = "";
|
|
@@ -374,26 +374,26 @@ const yr = Yn.get("watermark"), Wr = /* @__PURE__ */ qA({
|
|
|
374
374
|
P.value.length && (P.value = P.value.join(" ").split(`
|
|
375
375
|
`)), z.color = (V = f.value) != null && V.textColor ? f.value.textColor : "rgba(0,0,0,.15)", z.fontSize = (l = f.value) != null && l.textSize ? parseInt(f.value.textSize) : 16, d(N, z.fontSize);
|
|
376
376
|
}
|
|
377
|
-
return n.value = !1,
|
|
377
|
+
return n.value = !1, b;
|
|
378
378
|
};
|
|
379
379
|
X();
|
|
380
|
-
const
|
|
380
|
+
const s = y9(), a = sf();
|
|
381
381
|
return OA(
|
|
382
|
-
() =>
|
|
383
|
-
(
|
|
382
|
+
() => s.currentRoute.value,
|
|
383
|
+
(i) => {
|
|
384
384
|
var q, p, m;
|
|
385
|
-
const
|
|
386
|
-
let
|
|
387
|
-
|
|
385
|
+
const b = !!((q = f.value) != null && q.pageSwith), H = ((p = i.meta) == null ? void 0 : p.showWatermark) ?? !0;
|
|
386
|
+
let c = ((m = i.query) == null ? void 0 : m.showWatermark) ?? !0;
|
|
387
|
+
c === "false" && (c = !1), x(b && !!(H && c));
|
|
388
388
|
},
|
|
389
389
|
{ immediate: !0 }
|
|
390
390
|
), NA.addEventListenerFromMicroApp("systemconfig:watermark-change", async () => {
|
|
391
|
-
var H,
|
|
391
|
+
var H, c;
|
|
392
392
|
await X();
|
|
393
|
-
const
|
|
394
|
-
let
|
|
395
|
-
|
|
396
|
-
}), (
|
|
393
|
+
const i = !!((H = f.value) != null && H.pageSwith);
|
|
394
|
+
let b = ((c = a.query) == null ? void 0 : c.showWatermark) ?? !0;
|
|
395
|
+
b === "false" && (b = !1), x(!!(i && b));
|
|
396
|
+
}), (i, b) => (fA(), XA(D(vr), {
|
|
397
397
|
class: "watermark",
|
|
398
398
|
font: z,
|
|
399
399
|
zIndex: 2147483647,
|
|
@@ -402,7 +402,7 @@ const yr = Yn.get("watermark"), Wr = /* @__PURE__ */ qA({
|
|
|
402
402
|
height: r.value
|
|
403
403
|
}, {
|
|
404
404
|
default: U(() => [
|
|
405
|
-
P9(
|
|
405
|
+
P9(i.$slots, "default", {}, void 0, !0)
|
|
406
406
|
]),
|
|
407
407
|
_: 3
|
|
408
408
|
/* FORWARDED */
|
|
@@ -578,27 +578,27 @@ const kr = (e = {}) => {
|
|
|
578
578
|
const n = d.code, u = (d == null ? void 0 : d.originalCode) ?? "";
|
|
579
579
|
z[n] || (z[n] = []);
|
|
580
580
|
let x = [];
|
|
581
|
-
d != null && d.children && ((X = d == null ? void 0 : d.children) != null && X.length) && (d.children.forEach((
|
|
581
|
+
d != null && d.children && ((X = d == null ? void 0 : d.children) != null && X.length) && (d.children.forEach((s) => {
|
|
582
582
|
var a;
|
|
583
|
-
!(
|
|
584
|
-
code:
|
|
585
|
-
originalCode:
|
|
586
|
-
name:
|
|
587
|
-
}) : QA([
|
|
583
|
+
!(s != null && s.children) || !((a = s.children) != null && a.length) ? x.push({
|
|
584
|
+
code: s.code,
|
|
585
|
+
originalCode: s.originalCode,
|
|
586
|
+
name: s.name
|
|
587
|
+
}) : QA([s]).forEach((b) => {
|
|
588
588
|
x.push({
|
|
589
|
-
code:
|
|
590
|
-
originalCode:
|
|
591
|
-
name:
|
|
589
|
+
code: b.code,
|
|
590
|
+
originalCode: b.originalCode,
|
|
591
|
+
name: b.name
|
|
592
592
|
});
|
|
593
593
|
});
|
|
594
|
-
}), x.forEach((
|
|
595
|
-
let a =
|
|
594
|
+
}), x.forEach((s) => {
|
|
595
|
+
let a = s.originalCode ? s.originalCode : s.code ? s.code : "";
|
|
596
596
|
a.includes(n + ".") && (a = a.replace(n + ".", "").replaceAll(".", "-")), a.includes(u + ".") && (a = a.replace(u + ".", "").replaceAll(".", "-"));
|
|
597
|
-
const
|
|
597
|
+
const i = {
|
|
598
598
|
code: a,
|
|
599
|
-
name:
|
|
599
|
+
name: s.name
|
|
600
600
|
};
|
|
601
|
-
z[n].push(
|
|
601
|
+
z[n].push(i), u && n !== u && (z["origin-auth"] || (z["origin-auth"] = {}), z["origin-auth"][u] || (z["origin-auth"][u] = []), z["origin-auth"][u].push(i));
|
|
602
602
|
}));
|
|
603
603
|
}), v[A] = z, sessionStorage.setItem(f, JSON.stringify(v)), v;
|
|
604
604
|
}, hr = () => {
|
|
@@ -704,11 +704,11 @@ function tA() {
|
|
|
704
704
|
}
|
|
705
705
|
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
706
706
|
}, z = Object.create || /* @__PURE__ */ function() {
|
|
707
|
-
function
|
|
707
|
+
function c() {
|
|
708
708
|
}
|
|
709
709
|
return function(q) {
|
|
710
710
|
var p;
|
|
711
|
-
return
|
|
711
|
+
return c.prototype = q, p = new c(), c.prototype = null, p;
|
|
712
712
|
};
|
|
713
713
|
}(), d = {}, n = d.lib = {}, u = n.Base = /* @__PURE__ */ function() {
|
|
714
714
|
return {
|
|
@@ -730,9 +730,9 @@ function tA() {
|
|
|
730
730
|
* }
|
|
731
731
|
* });
|
|
732
732
|
*/
|
|
733
|
-
extend: function(
|
|
733
|
+
extend: function(c) {
|
|
734
734
|
var q = z(this);
|
|
735
|
-
return
|
|
735
|
+
return c && q.mixIn(c), (!q.hasOwnProperty("init") || this.init === q.init) && (q.init = function() {
|
|
736
736
|
q.$super.init.apply(this, arguments);
|
|
737
737
|
}), q.init.prototype = q, q.$super = this, q;
|
|
738
738
|
},
|
|
@@ -749,8 +749,8 @@ function tA() {
|
|
|
749
749
|
* var instance = MyType.create();
|
|
750
750
|
*/
|
|
751
751
|
create: function() {
|
|
752
|
-
var
|
|
753
|
-
return
|
|
752
|
+
var c = this.extend();
|
|
753
|
+
return c.init.apply(c, arguments), c;
|
|
754
754
|
},
|
|
755
755
|
/**
|
|
756
756
|
* Initializes a newly created object.
|
|
@@ -777,10 +777,10 @@ function tA() {
|
|
|
777
777
|
* field: 'value'
|
|
778
778
|
* });
|
|
779
779
|
*/
|
|
780
|
-
mixIn: function(
|
|
781
|
-
for (var q in
|
|
782
|
-
|
|
783
|
-
|
|
780
|
+
mixIn: function(c) {
|
|
781
|
+
for (var q in c)
|
|
782
|
+
c.hasOwnProperty(q) && (this[q] = c[q]);
|
|
783
|
+
c.hasOwnProperty("toString") && (this.toString = c.toString);
|
|
784
784
|
},
|
|
785
785
|
/**
|
|
786
786
|
* Creates a copy of this object.
|
|
@@ -808,8 +808,8 @@ function tA() {
|
|
|
808
808
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
|
|
809
809
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
810
810
|
*/
|
|
811
|
-
init: function(
|
|
812
|
-
|
|
811
|
+
init: function(c, q) {
|
|
812
|
+
c = this.words = c || [], q != r ? this.sigBytes = q : this.sigBytes = c.length * 4;
|
|
813
813
|
},
|
|
814
814
|
/**
|
|
815
815
|
* Converts this word array to a string.
|
|
@@ -824,8 +824,8 @@ function tA() {
|
|
|
824
824
|
* var string = wordArray.toString();
|
|
825
825
|
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
826
826
|
*/
|
|
827
|
-
toString: function(
|
|
828
|
-
return (
|
|
827
|
+
toString: function(c) {
|
|
828
|
+
return (c || s).stringify(this);
|
|
829
829
|
},
|
|
830
830
|
/**
|
|
831
831
|
* Concatenates a word array to this word array.
|
|
@@ -838,8 +838,8 @@ function tA() {
|
|
|
838
838
|
*
|
|
839
839
|
* wordArray1.concat(wordArray2);
|
|
840
840
|
*/
|
|
841
|
-
concat: function(
|
|
842
|
-
var q = this.words, p =
|
|
841
|
+
concat: function(c) {
|
|
842
|
+
var q = this.words, p = c.words, m = this.sigBytes, R = c.sigBytes;
|
|
843
843
|
if (this.clamp(), m % 4)
|
|
844
844
|
for (var V = 0; V < R; V++) {
|
|
845
845
|
var l = p[V >>> 2] >>> 24 - V % 4 * 8 & 255;
|
|
@@ -858,8 +858,8 @@ function tA() {
|
|
|
858
858
|
* wordArray.clamp();
|
|
859
859
|
*/
|
|
860
860
|
clamp: function() {
|
|
861
|
-
var
|
|
862
|
-
|
|
861
|
+
var c = this.words, q = this.sigBytes;
|
|
862
|
+
c[q >>> 2] &= 4294967295 << 32 - q % 4 * 8, c.length = v.ceil(q / 4);
|
|
863
863
|
},
|
|
864
864
|
/**
|
|
865
865
|
* Creates a copy of this word array.
|
|
@@ -871,8 +871,8 @@ function tA() {
|
|
|
871
871
|
* var clone = wordArray.clone();
|
|
872
872
|
*/
|
|
873
873
|
clone: function() {
|
|
874
|
-
var
|
|
875
|
-
return
|
|
874
|
+
var c = u.clone.call(this);
|
|
875
|
+
return c.words = this.words.slice(0), c;
|
|
876
876
|
},
|
|
877
877
|
/**
|
|
878
878
|
* Creates a word array filled with random bytes.
|
|
@@ -887,12 +887,12 @@ function tA() {
|
|
|
887
887
|
*
|
|
888
888
|
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
889
889
|
*/
|
|
890
|
-
random: function(
|
|
891
|
-
for (var q = [], p = 0; p <
|
|
890
|
+
random: function(c) {
|
|
891
|
+
for (var q = [], p = 0; p < c; p += 4)
|
|
892
892
|
q.push(t());
|
|
893
|
-
return new x.init(q,
|
|
893
|
+
return new x.init(q, c);
|
|
894
894
|
}
|
|
895
|
-
}), X = d.enc = {},
|
|
895
|
+
}), X = d.enc = {}, s = X.Hex = {
|
|
896
896
|
/**
|
|
897
897
|
* Converts a word array to a hex string.
|
|
898
898
|
*
|
|
@@ -906,8 +906,8 @@ function tA() {
|
|
|
906
906
|
*
|
|
907
907
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
908
908
|
*/
|
|
909
|
-
stringify: function(
|
|
910
|
-
for (var q =
|
|
909
|
+
stringify: function(c) {
|
|
910
|
+
for (var q = c.words, p = c.sigBytes, m = [], R = 0; R < p; R++) {
|
|
911
911
|
var V = q[R >>> 2] >>> 24 - R % 4 * 8 & 255;
|
|
912
912
|
m.push((V >>> 4).toString(16)), m.push((V & 15).toString(16));
|
|
913
913
|
}
|
|
@@ -926,9 +926,9 @@ function tA() {
|
|
|
926
926
|
*
|
|
927
927
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
928
928
|
*/
|
|
929
|
-
parse: function(
|
|
930
|
-
for (var q =
|
|
931
|
-
p[m >>> 3] |= parseInt(
|
|
929
|
+
parse: function(c) {
|
|
930
|
+
for (var q = c.length, p = [], m = 0; m < q; m += 2)
|
|
931
|
+
p[m >>> 3] |= parseInt(c.substr(m, 2), 16) << 24 - m % 8 * 4;
|
|
932
932
|
return new x.init(p, q / 2);
|
|
933
933
|
}
|
|
934
934
|
}, a = X.Latin1 = {
|
|
@@ -945,8 +945,8 @@ function tA() {
|
|
|
945
945
|
*
|
|
946
946
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
947
947
|
*/
|
|
948
|
-
stringify: function(
|
|
949
|
-
for (var q =
|
|
948
|
+
stringify: function(c) {
|
|
949
|
+
for (var q = c.words, p = c.sigBytes, m = [], R = 0; R < p; R++) {
|
|
950
950
|
var V = q[R >>> 2] >>> 24 - R % 4 * 8 & 255;
|
|
951
951
|
m.push(String.fromCharCode(V));
|
|
952
952
|
}
|
|
@@ -965,12 +965,12 @@ function tA() {
|
|
|
965
965
|
*
|
|
966
966
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
967
967
|
*/
|
|
968
|
-
parse: function(
|
|
969
|
-
for (var q =
|
|
970
|
-
p[m >>> 2] |= (
|
|
968
|
+
parse: function(c) {
|
|
969
|
+
for (var q = c.length, p = [], m = 0; m < q; m++)
|
|
970
|
+
p[m >>> 2] |= (c.charCodeAt(m) & 255) << 24 - m % 4 * 8;
|
|
971
971
|
return new x.init(p, q);
|
|
972
972
|
}
|
|
973
|
-
},
|
|
973
|
+
}, i = X.Utf8 = {
|
|
974
974
|
/**
|
|
975
975
|
* Converts a word array to a UTF-8 string.
|
|
976
976
|
*
|
|
@@ -984,9 +984,9 @@ function tA() {
|
|
|
984
984
|
*
|
|
985
985
|
* var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
|
|
986
986
|
*/
|
|
987
|
-
stringify: function(
|
|
987
|
+
stringify: function(c) {
|
|
988
988
|
try {
|
|
989
|
-
return decodeURIComponent(escape(a.stringify(
|
|
989
|
+
return decodeURIComponent(escape(a.stringify(c)));
|
|
990
990
|
} catch {
|
|
991
991
|
throw new Error("Malformed UTF-8 data");
|
|
992
992
|
}
|
|
@@ -1004,10 +1004,10 @@ function tA() {
|
|
|
1004
1004
|
*
|
|
1005
1005
|
* var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
|
|
1006
1006
|
*/
|
|
1007
|
-
parse: function(
|
|
1008
|
-
return a.parse(unescape(encodeURIComponent(
|
|
1007
|
+
parse: function(c) {
|
|
1008
|
+
return a.parse(unescape(encodeURIComponent(c)));
|
|
1009
1009
|
}
|
|
1010
|
-
},
|
|
1010
|
+
}, b = n.BufferedBlockAlgorithm = u.extend({
|
|
1011
1011
|
/**
|
|
1012
1012
|
* Resets this block algorithm's data buffer to its initial state.
|
|
1013
1013
|
*
|
|
@@ -1028,8 +1028,8 @@ function tA() {
|
|
|
1028
1028
|
* bufferedBlockAlgorithm._append('data');
|
|
1029
1029
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
1030
1030
|
*/
|
|
1031
|
-
_append: function(
|
|
1032
|
-
typeof
|
|
1031
|
+
_append: function(c) {
|
|
1032
|
+
typeof c == "string" && (c = i.parse(c)), this._data.concat(c), this._nDataBytes += c.sigBytes;
|
|
1033
1033
|
},
|
|
1034
1034
|
/**
|
|
1035
1035
|
* Processes available data blocks.
|
|
@@ -1045,9 +1045,9 @@ function tA() {
|
|
|
1045
1045
|
* var processedData = bufferedBlockAlgorithm._process();
|
|
1046
1046
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
1047
1047
|
*/
|
|
1048
|
-
_process: function(
|
|
1048
|
+
_process: function(c) {
|
|
1049
1049
|
var q, p = this._data, m = p.words, R = p.sigBytes, V = this.blockSize, l = V * 4, j = R / l;
|
|
1050
|
-
|
|
1050
|
+
c ? j = v.ceil(j) : j = v.max((j | 0) - this._minBufferSize, 0);
|
|
1051
1051
|
var O = j * V, N = v.min(O * 4, R);
|
|
1052
1052
|
if (O) {
|
|
1053
1053
|
for (var Z = 0; Z < O; Z += V)
|
|
@@ -1066,12 +1066,12 @@ function tA() {
|
|
|
1066
1066
|
* var clone = bufferedBlockAlgorithm.clone();
|
|
1067
1067
|
*/
|
|
1068
1068
|
clone: function() {
|
|
1069
|
-
var
|
|
1070
|
-
return
|
|
1069
|
+
var c = u.clone.call(this);
|
|
1070
|
+
return c._data = this._data.clone(), c;
|
|
1071
1071
|
},
|
|
1072
1072
|
_minBufferSize: 0
|
|
1073
1073
|
});
|
|
1074
|
-
n.Hasher =
|
|
1074
|
+
n.Hasher = b.extend({
|
|
1075
1075
|
/**
|
|
1076
1076
|
* Configuration options.
|
|
1077
1077
|
*/
|
|
@@ -1085,8 +1085,8 @@ function tA() {
|
|
|
1085
1085
|
*
|
|
1086
1086
|
* var hasher = CryptoJS.algo.SHA256.create();
|
|
1087
1087
|
*/
|
|
1088
|
-
init: function(
|
|
1089
|
-
this.cfg = this.cfg.extend(
|
|
1088
|
+
init: function(c) {
|
|
1089
|
+
this.cfg = this.cfg.extend(c), this.reset();
|
|
1090
1090
|
},
|
|
1091
1091
|
/**
|
|
1092
1092
|
* Resets this hasher to its initial state.
|
|
@@ -1096,7 +1096,7 @@ function tA() {
|
|
|
1096
1096
|
* hasher.reset();
|
|
1097
1097
|
*/
|
|
1098
1098
|
reset: function() {
|
|
1099
|
-
|
|
1099
|
+
b.reset.call(this), this._doReset();
|
|
1100
1100
|
},
|
|
1101
1101
|
/**
|
|
1102
1102
|
* Updates this hasher with a message.
|
|
@@ -1110,8 +1110,8 @@ function tA() {
|
|
|
1110
1110
|
* hasher.update('message');
|
|
1111
1111
|
* hasher.update(wordArray);
|
|
1112
1112
|
*/
|
|
1113
|
-
update: function(
|
|
1114
|
-
return this._append(
|
|
1113
|
+
update: function(c) {
|
|
1114
|
+
return this._append(c), this._process(), this;
|
|
1115
1115
|
},
|
|
1116
1116
|
/**
|
|
1117
1117
|
* Finalizes the hash computation.
|
|
@@ -1127,8 +1127,8 @@ function tA() {
|
|
|
1127
1127
|
* var hash = hasher.finalize('message');
|
|
1128
1128
|
* var hash = hasher.finalize(wordArray);
|
|
1129
1129
|
*/
|
|
1130
|
-
finalize: function(
|
|
1131
|
-
|
|
1130
|
+
finalize: function(c) {
|
|
1131
|
+
c && this._append(c);
|
|
1132
1132
|
var q = this._doFinalize();
|
|
1133
1133
|
return q;
|
|
1134
1134
|
},
|
|
@@ -1146,9 +1146,9 @@ function tA() {
|
|
|
1146
1146
|
*
|
|
1147
1147
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
1148
1148
|
*/
|
|
1149
|
-
_createHelper: function(
|
|
1149
|
+
_createHelper: function(c) {
|
|
1150
1150
|
return function(q, p) {
|
|
1151
|
-
return new
|
|
1151
|
+
return new c.init(p).finalize(q);
|
|
1152
1152
|
};
|
|
1153
1153
|
},
|
|
1154
1154
|
/**
|
|
@@ -1164,9 +1164,9 @@ function tA() {
|
|
|
1164
1164
|
*
|
|
1165
1165
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
1166
1166
|
*/
|
|
1167
|
-
_createHmacHelper: function(
|
|
1167
|
+
_createHmacHelper: function(c) {
|
|
1168
1168
|
return function(q, p) {
|
|
1169
|
-
return new H.HMAC.init(
|
|
1169
|
+
return new H.HMAC.init(c, p).finalize(q);
|
|
1170
1170
|
};
|
|
1171
1171
|
}
|
|
1172
1172
|
});
|
|
@@ -1383,8 +1383,8 @@ function Vf() {
|
|
|
1383
1383
|
*/
|
|
1384
1384
|
toX32: function() {
|
|
1385
1385
|
for (var n = this.words, u = n.length, x = [], X = 0; X < u; X++) {
|
|
1386
|
-
var
|
|
1387
|
-
x.push(
|
|
1386
|
+
var s = n[X];
|
|
1387
|
+
x.push(s.high), x.push(s.low);
|
|
1388
1388
|
}
|
|
1389
1389
|
return z.create(x, this.sigBytes);
|
|
1390
1390
|
},
|
|
@@ -1453,8 +1453,8 @@ function zP() {
|
|
|
1453
1453
|
*/
|
|
1454
1454
|
stringify: function(d) {
|
|
1455
1455
|
for (var n = d.words, u = d.sigBytes, x = [], X = 0; X < u; X += 2) {
|
|
1456
|
-
var
|
|
1457
|
-
x.push(String.fromCharCode(
|
|
1456
|
+
var s = n[X >>> 2] >>> 16 - X % 4 * 8 & 65535;
|
|
1457
|
+
x.push(String.fromCharCode(s));
|
|
1458
1458
|
}
|
|
1459
1459
|
return x.join("");
|
|
1460
1460
|
},
|
|
@@ -1492,8 +1492,8 @@ function zP() {
|
|
|
1492
1492
|
*/
|
|
1493
1493
|
stringify: function(d) {
|
|
1494
1494
|
for (var n = d.words, u = d.sigBytes, x = [], X = 0; X < u; X += 2) {
|
|
1495
|
-
var
|
|
1496
|
-
x.push(String.fromCharCode(
|
|
1495
|
+
var s = z(n[X >>> 2] >>> 16 - X % 4 * 8 & 65535);
|
|
1496
|
+
x.push(String.fromCharCode(s));
|
|
1497
1497
|
}
|
|
1498
1498
|
return x.join("");
|
|
1499
1499
|
},
|
|
@@ -1548,9 +1548,9 @@ function H9() {
|
|
|
1548
1548
|
stringify: function(d) {
|
|
1549
1549
|
var n = d.words, u = d.sigBytes, x = this._map;
|
|
1550
1550
|
d.clamp();
|
|
1551
|
-
for (var X = [],
|
|
1552
|
-
for (var a = n[
|
|
1553
|
-
X.push(x.charAt(H >>> 6 * (3 -
|
|
1551
|
+
for (var X = [], s = 0; s < u; s += 3)
|
|
1552
|
+
for (var a = n[s >>> 2] >>> 24 - s % 4 * 8 & 255, i = n[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255, b = n[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255, H = a << 16 | i << 8 | b, c = 0; c < 4 && s + c * 0.75 < u; c++)
|
|
1553
|
+
X.push(x.charAt(H >>> 6 * (3 - c) & 63));
|
|
1554
1554
|
var q = x.charAt(64);
|
|
1555
1555
|
if (q)
|
|
1556
1556
|
for (; X.length % 4; )
|
|
@@ -1577,9 +1577,9 @@ function H9() {
|
|
|
1577
1577
|
for (var X = 0; X < u.length; X++)
|
|
1578
1578
|
x[u.charCodeAt(X)] = X;
|
|
1579
1579
|
}
|
|
1580
|
-
var
|
|
1581
|
-
if (
|
|
1582
|
-
var a = d.indexOf(
|
|
1580
|
+
var s = u.charAt(64);
|
|
1581
|
+
if (s) {
|
|
1582
|
+
var a = d.indexOf(s);
|
|
1583
1583
|
a !== -1 && (n = a);
|
|
1584
1584
|
}
|
|
1585
1585
|
return z(d, n, x);
|
|
@@ -1587,10 +1587,10 @@ function H9() {
|
|
|
1587
1587
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
1588
1588
|
};
|
|
1589
1589
|
function z(d, n, u) {
|
|
1590
|
-
for (var x = [], X = 0,
|
|
1591
|
-
if (
|
|
1592
|
-
var a = u[d.charCodeAt(
|
|
1593
|
-
x[X >>> 2] |=
|
|
1590
|
+
for (var x = [], X = 0, s = 0; s < n; s++)
|
|
1591
|
+
if (s % 4) {
|
|
1592
|
+
var a = u[d.charCodeAt(s - 1)] << s % 4 * 2, i = u[d.charCodeAt(s)] >>> 6 - s % 4 * 2, b = a | i;
|
|
1593
|
+
x[X >>> 2] |= b << 24 - X % 4 * 8, X++;
|
|
1594
1594
|
}
|
|
1595
1595
|
return P.create(x, X);
|
|
1596
1596
|
}
|
|
@@ -1626,14 +1626,14 @@ function dP() {
|
|
|
1626
1626
|
n === void 0 && (n = !0);
|
|
1627
1627
|
var u = d.words, x = d.sigBytes, X = n ? this._safe_map : this._map;
|
|
1628
1628
|
d.clamp();
|
|
1629
|
-
for (var
|
|
1630
|
-
for (var
|
|
1631
|
-
|
|
1629
|
+
for (var s = [], a = 0; a < x; a += 3)
|
|
1630
|
+
for (var i = u[a >>> 2] >>> 24 - a % 4 * 8 & 255, b = u[a + 1 >>> 2] >>> 24 - (a + 1) % 4 * 8 & 255, H = u[a + 2 >>> 2] >>> 24 - (a + 2) % 4 * 8 & 255, c = i << 16 | b << 8 | H, q = 0; q < 4 && a + q * 0.75 < x; q++)
|
|
1631
|
+
s.push(X.charAt(c >>> 6 * (3 - q) & 63));
|
|
1632
1632
|
var p = X.charAt(64);
|
|
1633
1633
|
if (p)
|
|
1634
|
-
for (;
|
|
1635
|
-
|
|
1636
|
-
return
|
|
1634
|
+
for (; s.length % 4; )
|
|
1635
|
+
s.push(p);
|
|
1636
|
+
return s.join("");
|
|
1637
1637
|
},
|
|
1638
1638
|
/**
|
|
1639
1639
|
* Converts a Base64url string to a word array.
|
|
@@ -1655,13 +1655,13 @@ function dP() {
|
|
|
1655
1655
|
var u = d.length, x = n ? this._safe_map : this._map, X = this._reverseMap;
|
|
1656
1656
|
if (!X) {
|
|
1657
1657
|
X = this._reverseMap = [];
|
|
1658
|
-
for (var
|
|
1659
|
-
X[x.charCodeAt(
|
|
1658
|
+
for (var s = 0; s < x.length; s++)
|
|
1659
|
+
X[x.charCodeAt(s)] = s;
|
|
1660
1660
|
}
|
|
1661
1661
|
var a = x.charAt(64);
|
|
1662
1662
|
if (a) {
|
|
1663
|
-
var
|
|
1664
|
-
|
|
1663
|
+
var i = d.indexOf(a);
|
|
1664
|
+
i !== -1 && (u = i);
|
|
1665
1665
|
}
|
|
1666
1666
|
return z(d, u, X);
|
|
1667
1667
|
},
|
|
@@ -1669,10 +1669,10 @@ function dP() {
|
|
|
1669
1669
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
1670
1670
|
};
|
|
1671
1671
|
function z(d, n, u) {
|
|
1672
|
-
for (var x = [], X = 0,
|
|
1673
|
-
if (
|
|
1674
|
-
var a = u[d.charCodeAt(
|
|
1675
|
-
x[X >>> 2] |=
|
|
1672
|
+
for (var x = [], X = 0, s = 0; s < n; s++)
|
|
1673
|
+
if (s % 4) {
|
|
1674
|
+
var a = u[d.charCodeAt(s - 1)] << s % 4 * 2, i = u[d.charCodeAt(s)] >>> 6 - s % 4 * 2, b = a | i;
|
|
1675
|
+
x[X >>> 2] |= b << 24 - X % 4 * 8, X++;
|
|
1676
1676
|
}
|
|
1677
1677
|
return P.create(x, X);
|
|
1678
1678
|
}
|
|
@@ -1689,8 +1689,8 @@ function p9() {
|
|
|
1689
1689
|
return function(v) {
|
|
1690
1690
|
var r = f, P = r.lib, t = P.WordArray, z = P.Hasher, d = r.algo, n = [];
|
|
1691
1691
|
(function() {
|
|
1692
|
-
for (var
|
|
1693
|
-
n[
|
|
1692
|
+
for (var i = 0; i < 64; i++)
|
|
1693
|
+
n[i] = v.abs(v.sin(i + 1)) * 4294967296 | 0;
|
|
1694
1694
|
})();
|
|
1695
1695
|
var u = d.MD5 = z.extend({
|
|
1696
1696
|
_doReset: function() {
|
|
@@ -1701,19 +1701,19 @@ function p9() {
|
|
|
1701
1701
|
271733878
|
|
1702
1702
|
]);
|
|
1703
1703
|
},
|
|
1704
|
-
_doProcessBlock: function(
|
|
1704
|
+
_doProcessBlock: function(i, b) {
|
|
1705
1705
|
for (var H = 0; H < 16; H++) {
|
|
1706
|
-
var
|
|
1707
|
-
|
|
1706
|
+
var c = b + H, q = i[c];
|
|
1707
|
+
i[c] = (q << 8 | q >>> 24) & 16711935 | (q << 24 | q >>> 8) & 4278255360;
|
|
1708
1708
|
}
|
|
1709
|
-
var p = this._hash.words, m =
|
|
1710
|
-
L = x(L, W, E, w, m, 7, n[0]), w = x(w, L, W, E, R, 12, n[1]), E = x(E, w, L, W, V, 17, n[2]), W = x(W, E, w, L, l, 22, n[3]), L = x(L, W, E, w, j, 7, n[4]), w = x(w, L, W, E, O, 12, n[5]), E = x(E, w, L, W, N, 17, n[6]), W = x(W, E, w, L, Z, 22, n[7]), L = x(L, W, E, w, T, 7, n[8]), w = x(w, L, W, E, Q, 12, n[9]), E = x(E, w, L, W, h, 17, n[10]), W = x(W, E, w, L, _, 22, n[11]), L = x(L, W, E, w, G, 7, n[12]), w = x(w, L, W, E, Y, 12, n[13]), E = x(E, w, L, W, S, 17, n[14]), W = x(W, E, w, L, C, 22, n[15]), L = X(L, W, E, w, R, 5, n[16]), w = X(w, L, W, E, N, 9, n[17]), E = X(E, w, L, W, _, 14, n[18]), W = X(W, E, w, L, m, 20, n[19]), L = X(L, W, E, w, O, 5, n[20]), w = X(w, L, W, E, h, 9, n[21]), E = X(E, w, L, W, C, 14, n[22]), W = X(W, E, w, L, j, 20, n[23]), L = X(L, W, E, w, Q, 5, n[24]), w = X(w, L, W, E, S, 9, n[25]), E = X(E, w, L, W, l, 14, n[26]), W = X(W, E, w, L, T, 20, n[27]), L = X(L, W, E, w, Y, 5, n[28]), w = X(w, L, W, E, V, 9, n[29]), E = X(E, w, L, W, Z, 14, n[30]), W = X(W, E, w, L, G, 20, n[31]), L =
|
|
1709
|
+
var p = this._hash.words, m = i[b + 0], R = i[b + 1], V = i[b + 2], l = i[b + 3], j = i[b + 4], O = i[b + 5], N = i[b + 6], Z = i[b + 7], T = i[b + 8], Q = i[b + 9], h = i[b + 10], _ = i[b + 11], G = i[b + 12], Y = i[b + 13], S = i[b + 14], C = i[b + 15], L = p[0], W = p[1], E = p[2], w = p[3];
|
|
1710
|
+
L = x(L, W, E, w, m, 7, n[0]), w = x(w, L, W, E, R, 12, n[1]), E = x(E, w, L, W, V, 17, n[2]), W = x(W, E, w, L, l, 22, n[3]), L = x(L, W, E, w, j, 7, n[4]), w = x(w, L, W, E, O, 12, n[5]), E = x(E, w, L, W, N, 17, n[6]), W = x(W, E, w, L, Z, 22, n[7]), L = x(L, W, E, w, T, 7, n[8]), w = x(w, L, W, E, Q, 12, n[9]), E = x(E, w, L, W, h, 17, n[10]), W = x(W, E, w, L, _, 22, n[11]), L = x(L, W, E, w, G, 7, n[12]), w = x(w, L, W, E, Y, 12, n[13]), E = x(E, w, L, W, S, 17, n[14]), W = x(W, E, w, L, C, 22, n[15]), L = X(L, W, E, w, R, 5, n[16]), w = X(w, L, W, E, N, 9, n[17]), E = X(E, w, L, W, _, 14, n[18]), W = X(W, E, w, L, m, 20, n[19]), L = X(L, W, E, w, O, 5, n[20]), w = X(w, L, W, E, h, 9, n[21]), E = X(E, w, L, W, C, 14, n[22]), W = X(W, E, w, L, j, 20, n[23]), L = X(L, W, E, w, Q, 5, n[24]), w = X(w, L, W, E, S, 9, n[25]), E = X(E, w, L, W, l, 14, n[26]), W = X(W, E, w, L, T, 20, n[27]), L = X(L, W, E, w, Y, 5, n[28]), w = X(w, L, W, E, V, 9, n[29]), E = X(E, w, L, W, Z, 14, n[30]), W = X(W, E, w, L, G, 20, n[31]), L = s(L, W, E, w, O, 4, n[32]), w = s(w, L, W, E, T, 11, n[33]), E = s(E, w, L, W, _, 16, n[34]), W = s(W, E, w, L, S, 23, n[35]), L = s(L, W, E, w, R, 4, n[36]), w = s(w, L, W, E, j, 11, n[37]), E = s(E, w, L, W, Z, 16, n[38]), W = s(W, E, w, L, h, 23, n[39]), L = s(L, W, E, w, Y, 4, n[40]), w = s(w, L, W, E, m, 11, n[41]), E = s(E, w, L, W, l, 16, n[42]), W = s(W, E, w, L, N, 23, n[43]), L = s(L, W, E, w, Q, 4, n[44]), w = s(w, L, W, E, G, 11, n[45]), E = s(E, w, L, W, C, 16, n[46]), W = s(W, E, w, L, V, 23, n[47]), L = a(L, W, E, w, m, 6, n[48]), w = a(w, L, W, E, Z, 10, n[49]), E = a(E, w, L, W, S, 15, n[50]), W = a(W, E, w, L, O, 21, n[51]), L = a(L, W, E, w, G, 6, n[52]), w = a(w, L, W, E, l, 10, n[53]), E = a(E, w, L, W, h, 15, n[54]), W = a(W, E, w, L, R, 21, n[55]), L = a(L, W, E, w, T, 6, n[56]), w = a(w, L, W, E, C, 10, n[57]), E = a(E, w, L, W, N, 15, n[58]), W = a(W, E, w, L, Y, 21, n[59]), L = a(L, W, E, w, j, 6, n[60]), w = a(w, L, W, E, _, 10, n[61]), E = a(E, w, L, W, V, 15, n[62]), W = a(W, E, w, L, Q, 21, n[63]), p[0] = p[0] + L | 0, p[1] = p[1] + W | 0, p[2] = p[2] + E | 0, p[3] = p[3] + w | 0;
|
|
1711
1711
|
},
|
|
1712
1712
|
_doFinalize: function() {
|
|
1713
|
-
var
|
|
1714
|
-
c
|
|
1713
|
+
var i = this._data, b = i.words, H = this._nDataBytes * 8, c = i.sigBytes * 8;
|
|
1714
|
+
b[c >>> 5] |= 128 << 24 - c % 32;
|
|
1715
1715
|
var q = v.floor(H / 4294967296), p = H;
|
|
1716
|
-
|
|
1716
|
+
b[(c + 64 >>> 9 << 4) + 15] = (q << 8 | q >>> 24) & 16711935 | (q << 24 | q >>> 8) & 4278255360, b[(c + 64 >>> 9 << 4) + 14] = (p << 8 | p >>> 24) & 16711935 | (p << 24 | p >>> 8) & 4278255360, i.sigBytes = (b.length + 1) * 4, this._process();
|
|
1717
1717
|
for (var m = this._hash, R = m.words, V = 0; V < 4; V++) {
|
|
1718
1718
|
var l = R[V];
|
|
1719
1719
|
R[V] = (l << 8 | l >>> 24) & 16711935 | (l << 24 | l >>> 8) & 4278255360;
|
|
@@ -1721,25 +1721,25 @@ function p9() {
|
|
|
1721
1721
|
return m;
|
|
1722
1722
|
},
|
|
1723
1723
|
clone: function() {
|
|
1724
|
-
var
|
|
1725
|
-
return
|
|
1724
|
+
var i = z.clone.call(this);
|
|
1725
|
+
return i._hash = this._hash.clone(), i;
|
|
1726
1726
|
}
|
|
1727
1727
|
});
|
|
1728
|
-
function x(
|
|
1729
|
-
var R =
|
|
1730
|
-
return (R << p | R >>> 32 - p) +
|
|
1728
|
+
function x(i, b, H, c, q, p, m) {
|
|
1729
|
+
var R = i + (b & H | ~b & c) + q + m;
|
|
1730
|
+
return (R << p | R >>> 32 - p) + b;
|
|
1731
1731
|
}
|
|
1732
|
-
function X(
|
|
1733
|
-
var R =
|
|
1734
|
-
return (R << p | R >>> 32 - p) +
|
|
1732
|
+
function X(i, b, H, c, q, p, m) {
|
|
1733
|
+
var R = i + (b & c | H & ~c) + q + m;
|
|
1734
|
+
return (R << p | R >>> 32 - p) + b;
|
|
1735
1735
|
}
|
|
1736
|
-
function i
|
|
1737
|
-
var R =
|
|
1738
|
-
return (R << p | R >>> 32 - p) +
|
|
1736
|
+
function s(i, b, H, c, q, p, m) {
|
|
1737
|
+
var R = i + (b ^ H ^ c) + q + m;
|
|
1738
|
+
return (R << p | R >>> 32 - p) + b;
|
|
1739
1739
|
}
|
|
1740
|
-
function a(
|
|
1741
|
-
var R =
|
|
1742
|
-
return (R << p | R >>> 32 - p) +
|
|
1740
|
+
function a(i, b, H, c, q, p, m) {
|
|
1741
|
+
var R = i + (H ^ (b | ~c)) + q + m;
|
|
1742
|
+
return (R << p | R >>> 32 - p) + b;
|
|
1743
1743
|
}
|
|
1744
1744
|
r.MD5 = z._createHelper(u), r.HmacMD5 = z._createHmacHelper(u);
|
|
1745
1745
|
}(Math), f.MD5;
|
|
@@ -1764,21 +1764,21 @@ function dv() {
|
|
|
1764
1764
|
]);
|
|
1765
1765
|
},
|
|
1766
1766
|
_doProcessBlock: function(u, x) {
|
|
1767
|
-
for (var X = this._hash.words,
|
|
1768
|
-
if (
|
|
1769
|
-
d[
|
|
1767
|
+
for (var X = this._hash.words, s = X[0], a = X[1], i = X[2], b = X[3], H = X[4], c = 0; c < 80; c++) {
|
|
1768
|
+
if (c < 16)
|
|
1769
|
+
d[c] = u[x + c] | 0;
|
|
1770
1770
|
else {
|
|
1771
|
-
var q = d[
|
|
1772
|
-
d[
|
|
1771
|
+
var q = d[c - 3] ^ d[c - 8] ^ d[c - 14] ^ d[c - 16];
|
|
1772
|
+
d[c] = q << 1 | q >>> 31;
|
|
1773
1773
|
}
|
|
1774
|
-
var p = (
|
|
1775
|
-
|
|
1774
|
+
var p = (s << 5 | s >>> 27) + H + d[c];
|
|
1775
|
+
c < 20 ? p += (a & i | ~a & b) + 1518500249 : c < 40 ? p += (a ^ i ^ b) + 1859775393 : c < 60 ? p += (a & i | a & b | i & b) - 1894007588 : p += (a ^ i ^ b) - 899497514, H = b, b = i, i = a << 30 | a >>> 2, a = s, s = p;
|
|
1776
1776
|
}
|
|
1777
|
-
X[0] = X[0] +
|
|
1777
|
+
X[0] = X[0] + s | 0, X[1] = X[1] + a | 0, X[2] = X[2] + i | 0, X[3] = X[3] + b | 0, X[4] = X[4] + H | 0;
|
|
1778
1778
|
},
|
|
1779
1779
|
_doFinalize: function() {
|
|
1780
|
-
var u = this._data, x = u.words, X = this._nDataBytes * 8,
|
|
1781
|
-
return x[
|
|
1780
|
+
var u = this._data, x = u.words, X = this._nDataBytes * 8, s = u.sigBytes * 8;
|
|
1781
|
+
return x[s >>> 5] |= 128 << 24 - s % 32, x[(s + 64 >>> 9 << 4) + 14] = Math.floor(X / 4294967296), x[(s + 64 >>> 9 << 4) + 15] = X, u.sigBytes = x.length * 4, this._process(), this._hash;
|
|
1782
1782
|
},
|
|
1783
1783
|
clone: function() {
|
|
1784
1784
|
var u = t.clone.call(this);
|
|
@@ -1799,8 +1799,8 @@ function ke() {
|
|
|
1799
1799
|
return function(v) {
|
|
1800
1800
|
var r = f, P = r.lib, t = P.WordArray, z = P.Hasher, d = r.algo, n = [], u = [];
|
|
1801
1801
|
(function() {
|
|
1802
|
-
function
|
|
1803
|
-
for (var
|
|
1802
|
+
function s(H) {
|
|
1803
|
+
for (var c = v.sqrt(H), q = 2; q <= c; q++)
|
|
1804
1804
|
if (!(H % q))
|
|
1805
1805
|
return !1;
|
|
1806
1806
|
return !0;
|
|
@@ -1808,33 +1808,33 @@ function ke() {
|
|
|
1808
1808
|
function a(H) {
|
|
1809
1809
|
return (H - (H | 0)) * 4294967296 | 0;
|
|
1810
1810
|
}
|
|
1811
|
-
for (var
|
|
1812
|
-
i
|
|
1811
|
+
for (var i = 2, b = 0; b < 64; )
|
|
1812
|
+
s(i) && (b < 8 && (n[b] = a(v.pow(i, 1 / 2))), u[b] = a(v.pow(i, 1 / 3)), b++), i++;
|
|
1813
1813
|
})();
|
|
1814
1814
|
var x = [], X = d.SHA256 = z.extend({
|
|
1815
1815
|
_doReset: function() {
|
|
1816
1816
|
this._hash = new t.init(n.slice(0));
|
|
1817
1817
|
},
|
|
1818
|
-
_doProcessBlock: function(
|
|
1819
|
-
for (var
|
|
1818
|
+
_doProcessBlock: function(s, a) {
|
|
1819
|
+
for (var i = this._hash.words, b = i[0], H = i[1], c = i[2], q = i[3], p = i[4], m = i[5], R = i[6], V = i[7], l = 0; l < 64; l++) {
|
|
1820
1820
|
if (l < 16)
|
|
1821
|
-
x[l] =
|
|
1821
|
+
x[l] = s[a + l] | 0;
|
|
1822
1822
|
else {
|
|
1823
1823
|
var j = x[l - 15], O = (j << 25 | j >>> 7) ^ (j << 14 | j >>> 18) ^ j >>> 3, N = x[l - 2], Z = (N << 15 | N >>> 17) ^ (N << 13 | N >>> 19) ^ N >>> 10;
|
|
1824
1824
|
x[l] = O + x[l - 7] + Z + x[l - 16];
|
|
1825
1825
|
}
|
|
1826
|
-
var T = p & m ^ ~p & R, Q =
|
|
1827
|
-
V = R, R = m, m = p, p = q + G | 0, q =
|
|
1826
|
+
var T = p & m ^ ~p & R, Q = b & H ^ b & c ^ H & c, h = (b << 30 | b >>> 2) ^ (b << 19 | b >>> 13) ^ (b << 10 | b >>> 22), _ = (p << 26 | p >>> 6) ^ (p << 21 | p >>> 11) ^ (p << 7 | p >>> 25), G = V + _ + T + u[l] + x[l], Y = h + Q;
|
|
1827
|
+
V = R, R = m, m = p, p = q + G | 0, q = c, c = H, H = b, b = G + Y | 0;
|
|
1828
1828
|
}
|
|
1829
|
-
|
|
1829
|
+
i[0] = i[0] + b | 0, i[1] = i[1] + H | 0, i[2] = i[2] + c | 0, i[3] = i[3] + q | 0, i[4] = i[4] + p | 0, i[5] = i[5] + m | 0, i[6] = i[6] + R | 0, i[7] = i[7] + V | 0;
|
|
1830
1830
|
},
|
|
1831
1831
|
_doFinalize: function() {
|
|
1832
|
-
var
|
|
1833
|
-
return a[
|
|
1832
|
+
var s = this._data, a = s.words, i = this._nDataBytes * 8, b = s.sigBytes * 8;
|
|
1833
|
+
return a[b >>> 5] |= 128 << 24 - b % 32, a[(b + 64 >>> 9 << 4) + 14] = v.floor(i / 4294967296), a[(b + 64 >>> 9 << 4) + 15] = i, s.sigBytes = a.length * 4, this._process(), this._hash;
|
|
1834
1834
|
},
|
|
1835
1835
|
clone: function() {
|
|
1836
|
-
var
|
|
1837
|
-
return
|
|
1836
|
+
var s = z.clone.call(this);
|
|
1837
|
+
return s._hash = this._hash.clone(), s;
|
|
1838
1838
|
}
|
|
1839
1839
|
});
|
|
1840
1840
|
r.SHA256 = z._createHelper(X), r.HmacSHA256 = z._createHmacHelper(X);
|
|
@@ -1969,7 +1969,7 @@ function Xv() {
|
|
|
1969
1969
|
for (var a = 0; a < 80; a++)
|
|
1970
1970
|
X[a] = u();
|
|
1971
1971
|
})();
|
|
1972
|
-
var
|
|
1972
|
+
var s = n.SHA512 = P.extend({
|
|
1973
1973
|
_doReset: function() {
|
|
1974
1974
|
this._hash = new d.init([
|
|
1975
1975
|
new z.init(1779033703, 4089235720),
|
|
@@ -1982,11 +1982,11 @@ function Xv() {
|
|
|
1982
1982
|
new z.init(1541459225, 327033209)
|
|
1983
1983
|
]);
|
|
1984
1984
|
},
|
|
1985
|
-
_doProcessBlock: function(a,
|
|
1986
|
-
for (var
|
|
1985
|
+
_doProcessBlock: function(a, i) {
|
|
1986
|
+
for (var b = this._hash.words, H = b[0], c = b[1], q = b[2], p = b[3], m = b[4], R = b[5], V = b[6], l = b[7], j = H.high, O = H.low, N = c.high, Z = c.low, T = q.high, Q = q.low, h = p.high, _ = p.low, G = m.high, Y = m.low, S = R.high, C = R.low, L = V.high, W = V.low, E = l.high, w = l.low, zA = j, dA = O, lA = N, K = Z, $ = T, eA = Q, d9 = h, J = _, I = G, g = Y, LA = S, CA = C, vf = L, I9 = W, yf = E, M9 = w, JA = 0; JA < 80; JA++) {
|
|
1987
1987
|
var UA, n9, nf = X[JA];
|
|
1988
1988
|
if (JA < 16)
|
|
1989
|
-
n9 = nf.high = a[
|
|
1989
|
+
n9 = nf.high = a[i + JA * 2] | 0, UA = nf.low = a[i + JA * 2 + 1] | 0;
|
|
1990
1990
|
else {
|
|
1991
1991
|
var f7 = X[JA - 15], l9 = f7.high, g9 = f7.low, $v = (l9 >>> 1 | g9 << 31) ^ (l9 >>> 8 | g9 << 24) ^ l9 >>> 7, e7 = (g9 >>> 1 | l9 << 31) ^ (g9 >>> 8 | l9 << 24) ^ (g9 >>> 7 | l9 << 25), v7 = X[JA - 2], D9 = v7.high, B9 = v7.low, An = (D9 >>> 19 | B9 << 13) ^ (D9 << 3 | B9 >>> 29) ^ D9 >>> 6, n7 = (B9 >>> 19 | D9 << 13) ^ (B9 << 3 | D9 >>> 29) ^ (B9 >>> 6 | D9 << 26), r7 = X[JA - 7], fn = r7.high, en = r7.low, P7 = X[JA - 16], vn = P7.high, t7 = P7.low;
|
|
1992
1992
|
UA = e7 + en, n9 = $v + fn + (UA >>> 0 < e7 >>> 0 ? 1 : 0), UA = UA + n7, n9 = n9 + An + (UA >>> 0 < n7 >>> 0 ? 1 : 0), UA = UA + t7, n9 = n9 + vn + (UA >>> 0 < t7 >>> 0 ? 1 : 0), nf.high = n9, nf.low = UA;
|
|
@@ -1994,13 +1994,13 @@ function Xv() {
|
|
|
1994
1994
|
var nn = I & LA ^ ~I & vf, u7 = g & CA ^ ~g & I9, rn = zA & lA ^ zA & $ ^ lA & $, Pn = dA & K ^ dA & eA ^ K & eA, tn = (zA >>> 28 | dA << 4) ^ (zA << 30 | dA >>> 2) ^ (zA << 25 | dA >>> 7), z7 = (dA >>> 28 | zA << 4) ^ (dA << 30 | zA >>> 2) ^ (dA << 25 | zA >>> 7), un = (I >>> 14 | g << 18) ^ (I >>> 18 | g << 14) ^ (I << 23 | g >>> 9), zn = (g >>> 14 | I << 18) ^ (g >>> 18 | I << 14) ^ (g << 23 | I >>> 9), d7 = x[JA], dn = d7.high, X7 = d7.low, BA = M9 + zn, r9 = yf + un + (BA >>> 0 < M9 >>> 0 ? 1 : 0), BA = BA + u7, r9 = r9 + nn + (BA >>> 0 < u7 >>> 0 ? 1 : 0), BA = BA + X7, r9 = r9 + dn + (BA >>> 0 < X7 >>> 0 ? 1 : 0), BA = BA + UA, r9 = r9 + n9 + (BA >>> 0 < UA >>> 0 ? 1 : 0), b7 = z7 + Pn, Xn = tn + rn + (b7 >>> 0 < z7 >>> 0 ? 1 : 0);
|
|
1995
1995
|
yf = vf, M9 = I9, vf = LA, I9 = CA, LA = I, CA = g, g = J + BA | 0, I = d9 + r9 + (g >>> 0 < J >>> 0 ? 1 : 0) | 0, d9 = $, J = eA, $ = lA, eA = K, lA = zA, K = dA, dA = BA + b7 | 0, zA = r9 + Xn + (dA >>> 0 < BA >>> 0 ? 1 : 0) | 0;
|
|
1996
1996
|
}
|
|
1997
|
-
O = H.low = O + dA, H.high = j + zA + (O >>> 0 < dA >>> 0 ? 1 : 0), Z =
|
|
1997
|
+
O = H.low = O + dA, H.high = j + zA + (O >>> 0 < dA >>> 0 ? 1 : 0), Z = c.low = Z + K, c.high = N + lA + (Z >>> 0 < K >>> 0 ? 1 : 0), Q = q.low = Q + eA, q.high = T + $ + (Q >>> 0 < eA >>> 0 ? 1 : 0), _ = p.low = _ + J, p.high = h + d9 + (_ >>> 0 < J >>> 0 ? 1 : 0), Y = m.low = Y + g, m.high = G + I + (Y >>> 0 < g >>> 0 ? 1 : 0), C = R.low = C + CA, R.high = S + LA + (C >>> 0 < CA >>> 0 ? 1 : 0), W = V.low = W + I9, V.high = L + vf + (W >>> 0 < I9 >>> 0 ? 1 : 0), w = l.low = w + M9, l.high = E + yf + (w >>> 0 < M9 >>> 0 ? 1 : 0);
|
|
1998
1998
|
},
|
|
1999
1999
|
_doFinalize: function() {
|
|
2000
|
-
var a = this._data,
|
|
2001
|
-
|
|
2002
|
-
var
|
|
2003
|
-
return
|
|
2000
|
+
var a = this._data, i = a.words, b = this._nDataBytes * 8, H = a.sigBytes * 8;
|
|
2001
|
+
i[H >>> 5] |= 128 << 24 - H % 32, i[(H + 128 >>> 10 << 5) + 30] = Math.floor(b / 4294967296), i[(H + 128 >>> 10 << 5) + 31] = b, a.sigBytes = i.length * 4, this._process();
|
|
2002
|
+
var c = this._hash.toX32();
|
|
2003
|
+
return c;
|
|
2004
2004
|
},
|
|
2005
2005
|
clone: function() {
|
|
2006
2006
|
var a = P.clone.call(this);
|
|
@@ -2008,7 +2008,7 @@ function Xv() {
|
|
|
2008
2008
|
},
|
|
2009
2009
|
blockSize: 1024 / 32
|
|
2010
2010
|
});
|
|
2011
|
-
v.SHA512 = P._createHelper(
|
|
2011
|
+
v.SHA512 = P._createHelper(s), v.HmacSHA512 = P._createHmacHelper(s);
|
|
2012
2012
|
}(), f.SHA512;
|
|
2013
2013
|
});
|
|
2014
2014
|
}(Uf)), Uf.exports;
|
|
@@ -2050,16 +2050,16 @@ function cP() {
|
|
|
2050
2050
|
e.exports = v(tA(), Vf());
|
|
2051
2051
|
})(PA, function(f) {
|
|
2052
2052
|
return function(v) {
|
|
2053
|
-
var r = f, P = r.lib, t = P.WordArray, z = P.Hasher, d = r.x64, n = d.Word, u = r.algo, x = [], X = [],
|
|
2053
|
+
var r = f, P = r.lib, t = P.WordArray, z = P.Hasher, d = r.x64, n = d.Word, u = r.algo, x = [], X = [], s = [];
|
|
2054
2054
|
(function() {
|
|
2055
|
-
for (var
|
|
2056
|
-
x[
|
|
2057
|
-
var q = H % 5, p = (2 *
|
|
2058
|
-
|
|
2055
|
+
for (var b = 1, H = 0, c = 0; c < 24; c++) {
|
|
2056
|
+
x[b + 5 * H] = (c + 1) * (c + 2) / 2 % 64;
|
|
2057
|
+
var q = H % 5, p = (2 * b + 3 * H) % 5;
|
|
2058
|
+
b = q, H = p;
|
|
2059
2059
|
}
|
|
2060
|
-
for (var
|
|
2060
|
+
for (var b = 0; b < 5; b++)
|
|
2061
2061
|
for (var H = 0; H < 5; H++)
|
|
2062
|
-
X[
|
|
2062
|
+
X[b + 5 * H] = H + (2 * b + 3 * H) % 5 * 5;
|
|
2063
2063
|
for (var m = 1, R = 0; R < 24; R++) {
|
|
2064
2064
|
for (var V = 0, l = 0, j = 0; j < 7; j++) {
|
|
2065
2065
|
if (m & 1) {
|
|
@@ -2068,15 +2068,15 @@ function cP() {
|
|
|
2068
2068
|
}
|
|
2069
2069
|
m & 128 ? m = m << 1 ^ 113 : m <<= 1;
|
|
2070
2070
|
}
|
|
2071
|
-
|
|
2071
|
+
s[R] = n.create(V, l);
|
|
2072
2072
|
}
|
|
2073
2073
|
})();
|
|
2074
2074
|
var a = [];
|
|
2075
2075
|
(function() {
|
|
2076
|
-
for (var
|
|
2077
|
-
a[
|
|
2076
|
+
for (var b = 0; b < 25; b++)
|
|
2077
|
+
a[b] = n.create();
|
|
2078
2078
|
})();
|
|
2079
|
-
var
|
|
2079
|
+
var i = u.SHA3 = z.extend({
|
|
2080
2080
|
/**
|
|
2081
2081
|
* Configuration options.
|
|
2082
2082
|
*
|
|
@@ -2089,21 +2089,21 @@ function cP() {
|
|
|
2089
2089
|
outputLength: 512
|
|
2090
2090
|
}),
|
|
2091
2091
|
_doReset: function() {
|
|
2092
|
-
for (var
|
|
2093
|
-
|
|
2092
|
+
for (var b = this._state = [], H = 0; H < 25; H++)
|
|
2093
|
+
b[H] = new n.init();
|
|
2094
2094
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2095
2095
|
},
|
|
2096
|
-
_doProcessBlock: function(
|
|
2097
|
-
for (var
|
|
2098
|
-
var m =
|
|
2096
|
+
_doProcessBlock: function(b, H) {
|
|
2097
|
+
for (var c = this._state, q = this.blockSize / 2, p = 0; p < q; p++) {
|
|
2098
|
+
var m = b[H + 2 * p], R = b[H + 2 * p + 1];
|
|
2099
2099
|
m = (m << 8 | m >>> 24) & 16711935 | (m << 24 | m >>> 8) & 4278255360, R = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360;
|
|
2100
|
-
var V =
|
|
2100
|
+
var V = c[p];
|
|
2101
2101
|
V.high ^= R, V.low ^= m;
|
|
2102
2102
|
}
|
|
2103
2103
|
for (var l = 0; l < 24; l++) {
|
|
2104
2104
|
for (var j = 0; j < 5; j++) {
|
|
2105
2105
|
for (var O = 0, N = 0, Z = 0; Z < 5; Z++) {
|
|
2106
|
-
var V =
|
|
2106
|
+
var V = c[j + 5 * Z];
|
|
2107
2107
|
O ^= V.high, N ^= V.low;
|
|
2108
2108
|
}
|
|
2109
2109
|
var T = a[j];
|
|
@@ -2111,31 +2111,31 @@ function cP() {
|
|
|
2111
2111
|
}
|
|
2112
2112
|
for (var j = 0; j < 5; j++)
|
|
2113
2113
|
for (var Q = a[(j + 4) % 5], h = a[(j + 1) % 5], _ = h.high, G = h.low, O = Q.high ^ (_ << 1 | G >>> 31), N = Q.low ^ (G << 1 | _ >>> 31), Z = 0; Z < 5; Z++) {
|
|
2114
|
-
var V =
|
|
2114
|
+
var V = c[j + 5 * Z];
|
|
2115
2115
|
V.high ^= O, V.low ^= N;
|
|
2116
2116
|
}
|
|
2117
2117
|
for (var Y = 1; Y < 25; Y++) {
|
|
2118
|
-
var O, N, V =
|
|
2118
|
+
var O, N, V = c[Y], S = V.high, C = V.low, L = x[Y];
|
|
2119
2119
|
L < 32 ? (O = S << L | C >>> 32 - L, N = C << L | S >>> 32 - L) : (O = C << L - 32 | S >>> 64 - L, N = S << L - 32 | C >>> 64 - L);
|
|
2120
2120
|
var W = a[X[Y]];
|
|
2121
2121
|
W.high = O, W.low = N;
|
|
2122
2122
|
}
|
|
2123
|
-
var E = a[0], w =
|
|
2123
|
+
var E = a[0], w = c[0];
|
|
2124
2124
|
E.high = w.high, E.low = w.low;
|
|
2125
2125
|
for (var j = 0; j < 5; j++)
|
|
2126
2126
|
for (var Z = 0; Z < 5; Z++) {
|
|
2127
|
-
var Y = j + 5 * Z, V =
|
|
2127
|
+
var Y = j + 5 * Z, V = c[Y], zA = a[Y], dA = a[(j + 1) % 5 + 5 * Z], lA = a[(j + 2) % 5 + 5 * Z];
|
|
2128
2128
|
V.high = zA.high ^ ~dA.high & lA.high, V.low = zA.low ^ ~dA.low & lA.low;
|
|
2129
2129
|
}
|
|
2130
|
-
var V =
|
|
2130
|
+
var V = c[0], K = s[l];
|
|
2131
2131
|
V.high ^= K.high, V.low ^= K.low;
|
|
2132
2132
|
}
|
|
2133
2133
|
},
|
|
2134
2134
|
_doFinalize: function() {
|
|
2135
|
-
var
|
|
2135
|
+
var b = this._data, H = b.words;
|
|
2136
2136
|
this._nDataBytes * 8;
|
|
2137
|
-
var
|
|
2138
|
-
H[
|
|
2137
|
+
var c = b.sigBytes * 8, q = this.blockSize * 32;
|
|
2138
|
+
H[c >>> 5] |= 1 << 24 - c % 32, H[(v.ceil((c + 1) / q) * q >>> 5) - 1] |= 128, b.sigBytes = H.length * 4, this._process();
|
|
2139
2139
|
for (var p = this._state, m = this.cfg.outputLength / 8, R = m / 8, V = [], l = 0; l < R; l++) {
|
|
2140
2140
|
var j = p[l], O = j.high, N = j.low;
|
|
2141
2141
|
O = (O << 8 | O >>> 24) & 16711935 | (O << 24 | O >>> 8) & 4278255360, N = (N << 8 | N >>> 24) & 16711935 | (N << 24 | N >>> 8) & 4278255360, V.push(N), V.push(O);
|
|
@@ -2143,12 +2143,12 @@ function cP() {
|
|
|
2143
2143
|
return new t.init(V, m);
|
|
2144
2144
|
},
|
|
2145
2145
|
clone: function() {
|
|
2146
|
-
for (var
|
|
2147
|
-
H[
|
|
2148
|
-
return
|
|
2146
|
+
for (var b = z.clone.call(this), H = b._state = this._state.slice(0), c = 0; c < 25; c++)
|
|
2147
|
+
H[c] = H[c].clone();
|
|
2148
|
+
return b;
|
|
2149
2149
|
}
|
|
2150
2150
|
});
|
|
2151
|
-
r.SHA3 = z._createHelper(
|
|
2151
|
+
r.SHA3 = z._createHelper(i), r.HmacSHA3 = z._createHmacHelper(i);
|
|
2152
2152
|
}(Math), f.SHA3;
|
|
2153
2153
|
});
|
|
2154
2154
|
}(Ff)), Ff.exports;
|
|
@@ -2494,7 +2494,7 @@ function aP() {
|
|
|
2494
2494
|
13,
|
|
2495
2495
|
11,
|
|
2496
2496
|
11
|
|
2497
|
-
]),
|
|
2497
|
+
]), s = t.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), a = t.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), i = d.RIPEMD160 = z.extend({
|
|
2498
2498
|
_doReset: function() {
|
|
2499
2499
|
this._hash = t.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2500
2500
|
},
|
|
@@ -2503,10 +2503,10 @@ function aP() {
|
|
|
2503
2503
|
var j = V + l, O = R[j];
|
|
2504
2504
|
R[j] = (O << 8 | O >>> 24) & 16711935 | (O << 24 | O >>> 8) & 4278255360;
|
|
2505
2505
|
}
|
|
2506
|
-
var N = this._hash.words, Z =
|
|
2506
|
+
var N = this._hash.words, Z = s.words, T = a.words, Q = n.words, h = u.words, _ = x.words, G = X.words, Y, S, C, L, W, E, w, zA, dA, lA;
|
|
2507
2507
|
E = Y = N[0], w = S = N[1], zA = C = N[2], dA = L = N[3], lA = W = N[4];
|
|
2508
2508
|
for (var K, l = 0; l < 80; l += 1)
|
|
2509
|
-
K = Y + R[V + Q[l]] | 0, l < 16 ? K +=
|
|
2509
|
+
K = Y + R[V + Q[l]] | 0, l < 16 ? K += b(S, C, L) + Z[0] : l < 32 ? K += H(S, C, L) + Z[1] : l < 48 ? K += c(S, C, L) + Z[2] : l < 64 ? K += q(S, C, L) + Z[3] : K += p(S, C, L) + Z[4], K = K | 0, K = m(K, _[l]), K = K + W | 0, Y = W, W = L, L = m(C, 10), C = S, S = K, K = E + R[V + h[l]] | 0, l < 16 ? K += p(w, zA, dA) + T[0] : l < 32 ? K += q(w, zA, dA) + T[1] : l < 48 ? K += c(w, zA, dA) + T[2] : l < 64 ? K += H(w, zA, dA) + T[3] : K += b(w, zA, dA) + T[4], K = K | 0, K = m(K, G[l]), K = K + lA | 0, E = lA, lA = dA, dA = m(zA, 10), zA = w, w = K;
|
|
2510
2510
|
K = N[1] + C + dA | 0, N[1] = N[2] + L + lA | 0, N[2] = N[3] + W + E | 0, N[3] = N[4] + Y + w | 0, N[4] = N[0] + S + zA | 0, N[0] = K;
|
|
2511
2511
|
},
|
|
2512
2512
|
_doFinalize: function() {
|
|
@@ -2523,13 +2523,13 @@ function aP() {
|
|
|
2523
2523
|
return R._hash = this._hash.clone(), R;
|
|
2524
2524
|
}
|
|
2525
2525
|
});
|
|
2526
|
-
function
|
|
2526
|
+
function b(R, V, l) {
|
|
2527
2527
|
return R ^ V ^ l;
|
|
2528
2528
|
}
|
|
2529
2529
|
function H(R, V, l) {
|
|
2530
2530
|
return R & V | ~R & l;
|
|
2531
2531
|
}
|
|
2532
|
-
function
|
|
2532
|
+
function c(R, V, l) {
|
|
2533
2533
|
return (R | ~V) ^ l;
|
|
2534
2534
|
}
|
|
2535
2535
|
function q(R, V, l) {
|
|
@@ -2541,7 +2541,7 @@ function aP() {
|
|
|
2541
2541
|
function m(R, V) {
|
|
2542
2542
|
return R << V | R >>> 32 - V;
|
|
2543
2543
|
}
|
|
2544
|
-
r.RIPEMD160 = z._createHelper(
|
|
2544
|
+
r.RIPEMD160 = z._createHelper(i), r.HmacRIPEMD160 = z._createHmacHelper(i);
|
|
2545
2545
|
}(), f.RIPEMD160;
|
|
2546
2546
|
});
|
|
2547
2547
|
}(Sf)), Sf.exports;
|
|
@@ -2569,9 +2569,9 @@ function Qe() {
|
|
|
2569
2569
|
n = this._hasher = new n.init(), typeof u == "string" && (u = z.parse(u));
|
|
2570
2570
|
var x = n.blockSize, X = x * 4;
|
|
2571
2571
|
u.sigBytes > X && (u = n.finalize(u)), u.clamp();
|
|
2572
|
-
for (var
|
|
2573
|
-
|
|
2574
|
-
|
|
2572
|
+
for (var s = this._oKey = u.clone(), a = this._iKey = u.clone(), i = s.words, b = a.words, H = 0; H < x; H++)
|
|
2573
|
+
i[H] ^= 1549556828, b[H] ^= 909522486;
|
|
2574
|
+
s.sigBytes = a.sigBytes = X, this.reset();
|
|
2575
2575
|
},
|
|
2576
2576
|
/**
|
|
2577
2577
|
* Resets this HMAC to its initial state.
|
|
@@ -2671,21 +2671,21 @@ function iP() {
|
|
|
2671
2671
|
* var key = kdf.compute(password, salt);
|
|
2672
2672
|
*/
|
|
2673
2673
|
compute: function(x, X) {
|
|
2674
|
-
for (var
|
|
2675
|
-
var m = a.update(X).finalize(
|
|
2674
|
+
for (var s = this.cfg, a = n.create(s.hasher, x), i = t.create(), b = t.create([1]), H = i.words, c = b.words, q = s.keySize, p = s.iterations; H.length < q; ) {
|
|
2675
|
+
var m = a.update(X).finalize(b);
|
|
2676
2676
|
a.reset();
|
|
2677
2677
|
for (var R = m.words, V = R.length, l = m, j = 1; j < p; j++) {
|
|
2678
2678
|
l = a.finalize(l), a.reset();
|
|
2679
2679
|
for (var O = l.words, N = 0; N < V; N++)
|
|
2680
2680
|
R[N] ^= O[N];
|
|
2681
2681
|
}
|
|
2682
|
-
|
|
2682
|
+
i.concat(m), c[0]++;
|
|
2683
2683
|
}
|
|
2684
|
-
return
|
|
2684
|
+
return i.sigBytes = q * 4, i;
|
|
2685
2685
|
}
|
|
2686
2686
|
});
|
|
2687
|
-
v.PBKDF2 = function(x, X,
|
|
2688
|
-
return u.create(
|
|
2687
|
+
v.PBKDF2 = function(x, X, s) {
|
|
2688
|
+
return u.create(s).compute(x, X);
|
|
2689
2689
|
};
|
|
2690
2690
|
}(), f.PBKDF2;
|
|
2691
2691
|
});
|
|
@@ -2738,13 +2738,13 @@ function z9() {
|
|
|
2738
2738
|
* var key = kdf.compute(password, salt);
|
|
2739
2739
|
*/
|
|
2740
2740
|
compute: function(u, x) {
|
|
2741
|
-
for (var X,
|
|
2741
|
+
for (var X, s = this.cfg, a = s.hasher.create(), i = t.create(), b = i.words, H = s.keySize, c = s.iterations; b.length < H; ) {
|
|
2742
2742
|
X && a.update(X), X = a.update(u).finalize(x), a.reset();
|
|
2743
|
-
for (var q = 1; q <
|
|
2743
|
+
for (var q = 1; q < c; q++)
|
|
2744
2744
|
X = a.finalize(X), a.reset();
|
|
2745
|
-
|
|
2745
|
+
i.concat(X);
|
|
2746
2746
|
}
|
|
2747
|
-
return
|
|
2747
|
+
return i.sigBytes = H * 4, i;
|
|
2748
2748
|
}
|
|
2749
2749
|
});
|
|
2750
2750
|
v.EvpKDF = function(u, x, X) {
|
|
@@ -2763,7 +2763,7 @@ function VA() {
|
|
|
2763
2763
|
f.lib.Cipher || function(v) {
|
|
2764
2764
|
var r = f, P = r.lib, t = P.Base, z = P.WordArray, d = P.BufferedBlockAlgorithm, n = r.enc;
|
|
2765
2765
|
n.Utf8;
|
|
2766
|
-
var u = n.Base64, x = r.algo, X = x.EvpKDF,
|
|
2766
|
+
var u = n.Base64, x = r.algo, X = x.EvpKDF, s = P.Cipher = d.extend({
|
|
2767
2767
|
/**
|
|
2768
2768
|
* Configuration options.
|
|
2769
2769
|
*
|
|
@@ -2895,14 +2895,14 @@ function VA() {
|
|
|
2895
2895
|
};
|
|
2896
2896
|
}()
|
|
2897
2897
|
});
|
|
2898
|
-
P.StreamCipher =
|
|
2898
|
+
P.StreamCipher = s.extend({
|
|
2899
2899
|
_doFinalize: function() {
|
|
2900
2900
|
var O = this._process(!0);
|
|
2901
2901
|
return O;
|
|
2902
2902
|
},
|
|
2903
2903
|
blockSize: 1
|
|
2904
2904
|
});
|
|
2905
|
-
var a = r.mode = {},
|
|
2905
|
+
var a = r.mode = {}, i = P.BlockCipherMode = t.extend({
|
|
2906
2906
|
/**
|
|
2907
2907
|
* Creates this mode for encryption.
|
|
2908
2908
|
*
|
|
@@ -2946,8 +2946,8 @@ function VA() {
|
|
|
2946
2946
|
init: function(O, N) {
|
|
2947
2947
|
this._cipher = O, this._iv = N;
|
|
2948
2948
|
}
|
|
2949
|
-
}),
|
|
2950
|
-
var O =
|
|
2949
|
+
}), b = a.CBC = function() {
|
|
2950
|
+
var O = i.extend();
|
|
2951
2951
|
O.Encryptor = O.extend({
|
|
2952
2952
|
/**
|
|
2953
2953
|
* Processes the data block at offset.
|
|
@@ -2986,7 +2986,7 @@ function VA() {
|
|
|
2986
2986
|
Z[T + G] ^= h[G];
|
|
2987
2987
|
}
|
|
2988
2988
|
return O;
|
|
2989
|
-
}(), H = r.pad = {},
|
|
2989
|
+
}(), H = r.pad = {}, c = H.Pkcs7 = {
|
|
2990
2990
|
/**
|
|
2991
2991
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
2992
2992
|
*
|
|
@@ -3021,20 +3021,20 @@ function VA() {
|
|
|
3021
3021
|
O.sigBytes -= N;
|
|
3022
3022
|
}
|
|
3023
3023
|
};
|
|
3024
|
-
P.BlockCipher =
|
|
3024
|
+
P.BlockCipher = s.extend({
|
|
3025
3025
|
/**
|
|
3026
3026
|
* Configuration options.
|
|
3027
3027
|
*
|
|
3028
3028
|
* @property {Mode} mode The block mode to use. Default: CBC
|
|
3029
3029
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
3030
3030
|
*/
|
|
3031
|
-
cfg:
|
|
3032
|
-
mode:
|
|
3033
|
-
padding:
|
|
3031
|
+
cfg: s.cfg.extend({
|
|
3032
|
+
mode: b,
|
|
3033
|
+
padding: c
|
|
3034
3034
|
}),
|
|
3035
3035
|
reset: function() {
|
|
3036
3036
|
var O;
|
|
3037
|
-
|
|
3037
|
+
s.reset.call(this);
|
|
3038
3038
|
var N = this.cfg, Z = N.iv, T = N.mode;
|
|
3039
3039
|
this._xformMode == this._ENC_XFORM_MODE ? O = T.createEncryptor : (O = T.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == O ? this._mode.init(this, Z && Z.words) : (this._mode = O.call(T, this, Z && Z.words), this._mode.__creator = O);
|
|
3040
3040
|
},
|
|
@@ -3372,10 +3372,10 @@ function HP() {
|
|
|
3372
3372
|
processBlock: function(z, d) {
|
|
3373
3373
|
var n = this._cipher, u = n.blockSize, x = this._iv, X = this._counter;
|
|
3374
3374
|
x && (X = this._counter = x.slice(0), this._iv = void 0), P(X);
|
|
3375
|
-
var
|
|
3376
|
-
n.encryptBlock(
|
|
3375
|
+
var s = X.slice(0);
|
|
3376
|
+
n.encryptBlock(s, 0);
|
|
3377
3377
|
for (var a = 0; a < u; a++)
|
|
3378
|
-
z[d + a] ^=
|
|
3378
|
+
z[d + a] ^= s[a];
|
|
3379
3379
|
}
|
|
3380
3380
|
});
|
|
3381
3381
|
return v.Decryptor = t, v;
|
|
@@ -3570,7 +3570,7 @@ function RP() {
|
|
|
3570
3570
|
e.exports = v(tA(), H9(), p9(), z9(), VA());
|
|
3571
3571
|
})(PA, function(f) {
|
|
3572
3572
|
return function() {
|
|
3573
|
-
var v = f, r = v.lib, P = r.BlockCipher, t = v.algo, z = [], d = [], n = [], u = [], x = [], X = [],
|
|
3573
|
+
var v = f, r = v.lib, P = r.BlockCipher, t = v.algo, z = [], d = [], n = [], u = [], x = [], X = [], s = [], a = [], i = [], b = [];
|
|
3574
3574
|
(function() {
|
|
3575
3575
|
for (var q = [], p = 0; p < 256; p++)
|
|
3576
3576
|
p < 128 ? q[p] = p << 1 : q[p] = p << 1 ^ 283;
|
|
@@ -3580,10 +3580,10 @@ function RP() {
|
|
|
3580
3580
|
var l = q[m], j = q[l], O = q[j], N = q[V] * 257 ^ V * 16843008;
|
|
3581
3581
|
n[m] = N << 24 | N >>> 8, u[m] = N << 16 | N >>> 16, x[m] = N << 8 | N >>> 24, X[m] = N;
|
|
3582
3582
|
var N = O * 16843009 ^ j * 65537 ^ l * 257 ^ m * 16843008;
|
|
3583
|
-
|
|
3583
|
+
s[V] = N << 24 | N >>> 8, a[V] = N << 16 | N >>> 16, i[V] = N << 8 | N >>> 24, b[V] = N, m ? (m = l ^ q[q[q[O ^ l]]], R ^= q[q[R]]) : m = R = 1;
|
|
3584
3584
|
}
|
|
3585
3585
|
})();
|
|
3586
|
-
var H = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
|
|
3586
|
+
var H = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], c = t.AES = P.extend({
|
|
3587
3587
|
_doReset: function() {
|
|
3588
3588
|
var q;
|
|
3589
3589
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
@@ -3595,7 +3595,7 @@ function RP() {
|
|
|
3595
3595
|
var q = j[O];
|
|
3596
3596
|
else
|
|
3597
3597
|
var q = j[O - 4];
|
|
3598
|
-
Z < 4 || O <= 4 ? N[Z] = q : N[Z] =
|
|
3598
|
+
Z < 4 || O <= 4 ? N[Z] = q : N[Z] = s[z[q >>> 24]] ^ a[z[q >>> 16 & 255]] ^ i[z[q >>> 8 & 255]] ^ b[z[q & 255]];
|
|
3599
3599
|
}
|
|
3600
3600
|
}
|
|
3601
3601
|
},
|
|
@@ -3604,7 +3604,7 @@ function RP() {
|
|
|
3604
3604
|
},
|
|
3605
3605
|
decryptBlock: function(q, p) {
|
|
3606
3606
|
var m = q[p + 1];
|
|
3607
|
-
q[p + 1] = q[p + 3], q[p + 3] = m, this._doCryptBlock(q, p, this._invKeySchedule,
|
|
3607
|
+
q[p + 1] = q[p + 3], q[p + 3] = m, this._doCryptBlock(q, p, this._invKeySchedule, s, a, i, b, d);
|
|
3608
3608
|
var m = q[p + 1];
|
|
3609
3609
|
q[p + 1] = q[p + 3], q[p + 3] = m;
|
|
3610
3610
|
},
|
|
@@ -3618,7 +3618,7 @@ function RP() {
|
|
|
3618
3618
|
},
|
|
3619
3619
|
keySize: 256 / 32
|
|
3620
3620
|
});
|
|
3621
|
-
v.AES = P._createHelper(
|
|
3621
|
+
v.AES = P._createHelper(c);
|
|
3622
3622
|
}(), f.AES;
|
|
3623
3623
|
});
|
|
3624
3624
|
}(de)), de.exports;
|
|
@@ -4274,11 +4274,11 @@ function jP() {
|
|
|
4274
4274
|
8064,
|
|
4275
4275
|
504,
|
|
4276
4276
|
2147483679
|
|
4277
|
-
],
|
|
4277
|
+
], s = z.DES = t.extend({
|
|
4278
4278
|
_doReset: function() {
|
|
4279
|
-
for (var H = this._key,
|
|
4279
|
+
for (var H = this._key, c = H.words, q = [], p = 0; p < 56; p++) {
|
|
4280
4280
|
var m = d[p] - 1;
|
|
4281
|
-
q[p] =
|
|
4281
|
+
q[p] = c[m >>> 5] >>> 31 - m % 32 & 1;
|
|
4282
4282
|
}
|
|
4283
4283
|
for (var R = this._subKeys = [], V = 0; V < 16; V++) {
|
|
4284
4284
|
for (var l = R[V] = [], j = u[V], p = 0; p < 24; p++)
|
|
@@ -4291,54 +4291,54 @@ function jP() {
|
|
|
4291
4291
|
for (var O = this._invSubKeys = [], p = 0; p < 16; p++)
|
|
4292
4292
|
O[p] = R[15 - p];
|
|
4293
4293
|
},
|
|
4294
|
-
encryptBlock: function(H,
|
|
4295
|
-
this._doCryptBlock(H,
|
|
4294
|
+
encryptBlock: function(H, c) {
|
|
4295
|
+
this._doCryptBlock(H, c, this._subKeys);
|
|
4296
4296
|
},
|
|
4297
|
-
decryptBlock: function(H,
|
|
4298
|
-
this._doCryptBlock(H,
|
|
4297
|
+
decryptBlock: function(H, c) {
|
|
4298
|
+
this._doCryptBlock(H, c, this._invSubKeys);
|
|
4299
4299
|
},
|
|
4300
|
-
_doCryptBlock: function(H,
|
|
4301
|
-
this._lBlock = H[
|
|
4300
|
+
_doCryptBlock: function(H, c, q) {
|
|
4301
|
+
this._lBlock = H[c], this._rBlock = H[c + 1], a.call(this, 4, 252645135), a.call(this, 16, 65535), i.call(this, 2, 858993459), i.call(this, 8, 16711935), a.call(this, 1, 1431655765);
|
|
4302
4302
|
for (var p = 0; p < 16; p++) {
|
|
4303
4303
|
for (var m = q[p], R = this._lBlock, V = this._rBlock, l = 0, j = 0; j < 8; j++)
|
|
4304
4304
|
l |= x[j][((V ^ m[j]) & X[j]) >>> 0];
|
|
4305
4305
|
this._lBlock = V, this._rBlock = R ^ l;
|
|
4306
4306
|
}
|
|
4307
4307
|
var O = this._lBlock;
|
|
4308
|
-
this._lBlock = this._rBlock, this._rBlock = O, a.call(this, 1, 1431655765),
|
|
4308
|
+
this._lBlock = this._rBlock, this._rBlock = O, a.call(this, 1, 1431655765), i.call(this, 8, 16711935), i.call(this, 2, 858993459), a.call(this, 16, 65535), a.call(this, 4, 252645135), H[c] = this._lBlock, H[c + 1] = this._rBlock;
|
|
4309
4309
|
},
|
|
4310
4310
|
keySize: 64 / 32,
|
|
4311
4311
|
ivSize: 64 / 32,
|
|
4312
4312
|
blockSize: 64 / 32
|
|
4313
4313
|
});
|
|
4314
|
-
function a(H,
|
|
4315
|
-
var q = (this._lBlock >>> H ^ this._rBlock) &
|
|
4314
|
+
function a(H, c) {
|
|
4315
|
+
var q = (this._lBlock >>> H ^ this._rBlock) & c;
|
|
4316
4316
|
this._rBlock ^= q, this._lBlock ^= q << H;
|
|
4317
4317
|
}
|
|
4318
|
-
function
|
|
4319
|
-
var q = (this._rBlock >>> H ^ this._lBlock) &
|
|
4318
|
+
function i(H, c) {
|
|
4319
|
+
var q = (this._rBlock >>> H ^ this._lBlock) & c;
|
|
4320
4320
|
this._lBlock ^= q, this._rBlock ^= q << H;
|
|
4321
4321
|
}
|
|
4322
|
-
v.DES = t._createHelper(
|
|
4323
|
-
var
|
|
4322
|
+
v.DES = t._createHelper(s);
|
|
4323
|
+
var b = z.TripleDES = t.extend({
|
|
4324
4324
|
_doReset: function() {
|
|
4325
|
-
var H = this._key,
|
|
4326
|
-
if (
|
|
4325
|
+
var H = this._key, c = H.words;
|
|
4326
|
+
if (c.length !== 2 && c.length !== 4 && c.length < 6)
|
|
4327
4327
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4328
|
-
var q =
|
|
4329
|
-
this._des1 =
|
|
4328
|
+
var q = c.slice(0, 2), p = c.length < 4 ? c.slice(0, 2) : c.slice(2, 4), m = c.length < 6 ? c.slice(0, 2) : c.slice(4, 6);
|
|
4329
|
+
this._des1 = s.createEncryptor(P.create(q)), this._des2 = s.createEncryptor(P.create(p)), this._des3 = s.createEncryptor(P.create(m));
|
|
4330
4330
|
},
|
|
4331
|
-
encryptBlock: function(H,
|
|
4332
|
-
this._des1.encryptBlock(H,
|
|
4331
|
+
encryptBlock: function(H, c) {
|
|
4332
|
+
this._des1.encryptBlock(H, c), this._des2.decryptBlock(H, c), this._des3.encryptBlock(H, c);
|
|
4333
4333
|
},
|
|
4334
|
-
decryptBlock: function(H,
|
|
4335
|
-
this._des3.decryptBlock(H,
|
|
4334
|
+
decryptBlock: function(H, c) {
|
|
4335
|
+
this._des3.decryptBlock(H, c), this._des2.encryptBlock(H, c), this._des1.decryptBlock(H, c);
|
|
4336
4336
|
},
|
|
4337
4337
|
keySize: 192 / 32,
|
|
4338
4338
|
ivSize: 64 / 32,
|
|
4339
4339
|
blockSize: 64 / 32
|
|
4340
4340
|
});
|
|
4341
|
-
v.TripleDES = t._createHelper(
|
|
4341
|
+
v.TripleDES = t._createHelper(b);
|
|
4342
4342
|
}(), f.TripleDES;
|
|
4343
4343
|
});
|
|
4344
4344
|
}(Xe)), Xe.exports;
|
|
@@ -4352,13 +4352,13 @@ function ZP() {
|
|
|
4352
4352
|
return function() {
|
|
4353
4353
|
var v = f, r = v.lib, P = r.StreamCipher, t = v.algo, z = t.RC4 = P.extend({
|
|
4354
4354
|
_doReset: function() {
|
|
4355
|
-
for (var u = this._key, x = u.words, X = u.sigBytes,
|
|
4356
|
-
|
|
4357
|
-
for (var a = 0,
|
|
4358
|
-
var
|
|
4359
|
-
|
|
4360
|
-
var
|
|
4361
|
-
|
|
4355
|
+
for (var u = this._key, x = u.words, X = u.sigBytes, s = this._S = [], a = 0; a < 256; a++)
|
|
4356
|
+
s[a] = a;
|
|
4357
|
+
for (var a = 0, i = 0; a < 256; a++) {
|
|
4358
|
+
var b = a % X, H = x[b >>> 2] >>> 24 - b % 4 * 8 & 255;
|
|
4359
|
+
i = (i + s[a] + H) % 256;
|
|
4360
|
+
var c = s[a];
|
|
4361
|
+
s[a] = s[i], s[i] = c;
|
|
4362
4362
|
}
|
|
4363
4363
|
this._i = this._j = 0;
|
|
4364
4364
|
},
|
|
@@ -4369,12 +4369,12 @@ function ZP() {
|
|
|
4369
4369
|
ivSize: 0
|
|
4370
4370
|
});
|
|
4371
4371
|
function d() {
|
|
4372
|
-
for (var u = this._S, x = this._i, X = this._j,
|
|
4372
|
+
for (var u = this._S, x = this._i, X = this._j, s = 0, a = 0; a < 4; a++) {
|
|
4373
4373
|
x = (x + 1) % 256, X = (X + u[x]) % 256;
|
|
4374
|
-
var
|
|
4375
|
-
u[x] = u[X], u[X] =
|
|
4374
|
+
var i = u[x];
|
|
4375
|
+
u[x] = u[X], u[X] = i, s |= u[(u[x] + u[X]) % 256] << 24 - a * 8;
|
|
4376
4376
|
}
|
|
4377
|
-
return this._i = x, this._j = X,
|
|
4377
|
+
return this._i = x, this._j = X, s;
|
|
4378
4378
|
}
|
|
4379
4379
|
v.RC4 = P._createHelper(z);
|
|
4380
4380
|
var n = t.RC4Drop = z.extend({
|
|
@@ -4406,9 +4406,9 @@ function TP() {
|
|
|
4406
4406
|
return function() {
|
|
4407
4407
|
var v = f, r = v.lib, P = r.StreamCipher, t = v.algo, z = [], d = [], n = [], u = t.Rabbit = P.extend({
|
|
4408
4408
|
_doReset: function() {
|
|
4409
|
-
for (var X = this._key.words,
|
|
4409
|
+
for (var X = this._key.words, s = this.cfg.iv, a = 0; a < 4; a++)
|
|
4410
4410
|
X[a] = (X[a] << 8 | X[a] >>> 24) & 16711935 | (X[a] << 24 | X[a] >>> 8) & 4278255360;
|
|
4411
|
-
var
|
|
4411
|
+
var i = this._X = [
|
|
4412
4412
|
X[0],
|
|
4413
4413
|
X[3] << 16 | X[2] >>> 16,
|
|
4414
4414
|
X[1],
|
|
@@ -4417,7 +4417,7 @@ function TP() {
|
|
|
4417
4417
|
X[1] << 16 | X[0] >>> 16,
|
|
4418
4418
|
X[3],
|
|
4419
4419
|
X[2] << 16 | X[1] >>> 16
|
|
4420
|
-
],
|
|
4420
|
+
], b = this._C = [
|
|
4421
4421
|
X[2] << 16 | X[2] >>> 16,
|
|
4422
4422
|
X[0] & 4294901760 | X[1] & 65535,
|
|
4423
4423
|
X[3] << 16 | X[3] >>> 16,
|
|
@@ -4431,30 +4431,30 @@ function TP() {
|
|
|
4431
4431
|
for (var a = 0; a < 4; a++)
|
|
4432
4432
|
x.call(this);
|
|
4433
4433
|
for (var a = 0; a < 8; a++)
|
|
4434
|
-
|
|
4435
|
-
if (
|
|
4436
|
-
var H =
|
|
4437
|
-
|
|
4434
|
+
b[a] ^= i[a + 4 & 7];
|
|
4435
|
+
if (s) {
|
|
4436
|
+
var H = s.words, c = H[0], q = H[1], p = (c << 8 | c >>> 24) & 16711935 | (c << 24 | c >>> 8) & 4278255360, m = (q << 8 | q >>> 24) & 16711935 | (q << 24 | q >>> 8) & 4278255360, R = p >>> 16 | m & 4294901760, V = m << 16 | p & 65535;
|
|
4437
|
+
b[0] ^= p, b[1] ^= R, b[2] ^= m, b[3] ^= V, b[4] ^= p, b[5] ^= R, b[6] ^= m, b[7] ^= V;
|
|
4438
4438
|
for (var a = 0; a < 4; a++)
|
|
4439
4439
|
x.call(this);
|
|
4440
4440
|
}
|
|
4441
4441
|
},
|
|
4442
|
-
_doProcessBlock: function(X,
|
|
4442
|
+
_doProcessBlock: function(X, s) {
|
|
4443
4443
|
var a = this._X;
|
|
4444
4444
|
x.call(this), z[0] = a[0] ^ a[5] >>> 16 ^ a[3] << 16, z[1] = a[2] ^ a[7] >>> 16 ^ a[5] << 16, z[2] = a[4] ^ a[1] >>> 16 ^ a[7] << 16, z[3] = a[6] ^ a[3] >>> 16 ^ a[1] << 16;
|
|
4445
|
-
for (var
|
|
4446
|
-
z[
|
|
4445
|
+
for (var i = 0; i < 4; i++)
|
|
4446
|
+
z[i] = (z[i] << 8 | z[i] >>> 24) & 16711935 | (z[i] << 24 | z[i] >>> 8) & 4278255360, X[s + i] ^= z[i];
|
|
4447
4447
|
},
|
|
4448
4448
|
blockSize: 128 / 32,
|
|
4449
4449
|
ivSize: 64 / 32
|
|
4450
4450
|
});
|
|
4451
4451
|
function x() {
|
|
4452
|
-
for (var X = this._X,
|
|
4453
|
-
d[a] =
|
|
4454
|
-
|
|
4452
|
+
for (var X = this._X, s = this._C, a = 0; a < 8; a++)
|
|
4453
|
+
d[a] = s[a];
|
|
4454
|
+
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < d[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < d[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < d[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < d[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < d[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < d[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < d[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < d[7] >>> 0 ? 1 : 0;
|
|
4455
4455
|
for (var a = 0; a < 8; a++) {
|
|
4456
|
-
var
|
|
4457
|
-
n[a] =
|
|
4456
|
+
var i = X[a] + s[a], b = i & 65535, H = i >>> 16, c = ((b * b >>> 17) + b * H >>> 15) + H * H, q = ((i & 4294901760) * i | 0) + ((i & 65535) * i | 0);
|
|
4457
|
+
n[a] = c ^ q;
|
|
4458
4458
|
}
|
|
4459
4459
|
X[0] = n[0] + (n[7] << 16 | n[7] >>> 16) + (n[6] << 16 | n[6] >>> 16) | 0, X[1] = n[1] + (n[0] << 8 | n[0] >>> 24) + n[7] | 0, X[2] = n[2] + (n[1] << 16 | n[1] >>> 16) + (n[0] << 16 | n[0] >>> 16) | 0, X[3] = n[3] + (n[2] << 8 | n[2] >>> 24) + n[1] | 0, X[4] = n[4] + (n[3] << 16 | n[3] >>> 16) + (n[2] << 16 | n[2] >>> 16) | 0, X[5] = n[5] + (n[4] << 8 | n[4] >>> 24) + n[3] | 0, X[6] = n[6] + (n[5] << 16 | n[5] >>> 16) + (n[4] << 16 | n[4] >>> 16) | 0, X[7] = n[7] + (n[6] << 8 | n[6] >>> 24) + n[5] | 0;
|
|
4460
4460
|
}
|
|
@@ -4472,7 +4472,7 @@ function oP() {
|
|
|
4472
4472
|
return function() {
|
|
4473
4473
|
var v = f, r = v.lib, P = r.StreamCipher, t = v.algo, z = [], d = [], n = [], u = t.RabbitLegacy = P.extend({
|
|
4474
4474
|
_doReset: function() {
|
|
4475
|
-
var X = this._key.words,
|
|
4475
|
+
var X = this._key.words, s = this.cfg.iv, a = this._X = [
|
|
4476
4476
|
X[0],
|
|
4477
4477
|
X[3] << 16 | X[2] >>> 16,
|
|
4478
4478
|
X[1],
|
|
@@ -4481,7 +4481,7 @@ function oP() {
|
|
|
4481
4481
|
X[1] << 16 | X[0] >>> 16,
|
|
4482
4482
|
X[3],
|
|
4483
4483
|
X[2] << 16 | X[1] >>> 16
|
|
4484
|
-
],
|
|
4484
|
+
], i = this._C = [
|
|
4485
4485
|
X[2] << 16 | X[2] >>> 16,
|
|
4486
4486
|
X[0] & 4294901760 | X[1] & 65535,
|
|
4487
4487
|
X[3] << 16 | X[3] >>> 16,
|
|
@@ -4492,33 +4492,33 @@ function oP() {
|
|
|
4492
4492
|
X[3] & 4294901760 | X[0] & 65535
|
|
4493
4493
|
];
|
|
4494
4494
|
this._b = 0;
|
|
4495
|
-
for (var
|
|
4495
|
+
for (var b = 0; b < 4; b++)
|
|
4496
4496
|
x.call(this);
|
|
4497
|
-
for (var
|
|
4498
|
-
|
|
4499
|
-
if (
|
|
4500
|
-
var H =
|
|
4501
|
-
|
|
4502
|
-
for (var
|
|
4497
|
+
for (var b = 0; b < 8; b++)
|
|
4498
|
+
i[b] ^= a[b + 4 & 7];
|
|
4499
|
+
if (s) {
|
|
4500
|
+
var H = s.words, c = H[0], q = H[1], p = (c << 8 | c >>> 24) & 16711935 | (c << 24 | c >>> 8) & 4278255360, m = (q << 8 | q >>> 24) & 16711935 | (q << 24 | q >>> 8) & 4278255360, R = p >>> 16 | m & 4294901760, V = m << 16 | p & 65535;
|
|
4501
|
+
i[0] ^= p, i[1] ^= R, i[2] ^= m, i[3] ^= V, i[4] ^= p, i[5] ^= R, i[6] ^= m, i[7] ^= V;
|
|
4502
|
+
for (var b = 0; b < 4; b++)
|
|
4503
4503
|
x.call(this);
|
|
4504
4504
|
}
|
|
4505
4505
|
},
|
|
4506
|
-
_doProcessBlock: function(X,
|
|
4506
|
+
_doProcessBlock: function(X, s) {
|
|
4507
4507
|
var a = this._X;
|
|
4508
4508
|
x.call(this), z[0] = a[0] ^ a[5] >>> 16 ^ a[3] << 16, z[1] = a[2] ^ a[7] >>> 16 ^ a[5] << 16, z[2] = a[4] ^ a[1] >>> 16 ^ a[7] << 16, z[3] = a[6] ^ a[3] >>> 16 ^ a[1] << 16;
|
|
4509
|
-
for (var
|
|
4510
|
-
z[
|
|
4509
|
+
for (var i = 0; i < 4; i++)
|
|
4510
|
+
z[i] = (z[i] << 8 | z[i] >>> 24) & 16711935 | (z[i] << 24 | z[i] >>> 8) & 4278255360, X[s + i] ^= z[i];
|
|
4511
4511
|
},
|
|
4512
4512
|
blockSize: 128 / 32,
|
|
4513
4513
|
ivSize: 64 / 32
|
|
4514
4514
|
});
|
|
4515
4515
|
function x() {
|
|
4516
|
-
for (var X = this._X,
|
|
4517
|
-
d[a] =
|
|
4518
|
-
|
|
4516
|
+
for (var X = this._X, s = this._C, a = 0; a < 8; a++)
|
|
4517
|
+
d[a] = s[a];
|
|
4518
|
+
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < d[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < d[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < d[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < d[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < d[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < d[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < d[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < d[7] >>> 0 ? 1 : 0;
|
|
4519
4519
|
for (var a = 0; a < 8; a++) {
|
|
4520
|
-
var
|
|
4521
|
-
n[a] =
|
|
4520
|
+
var i = X[a] + s[a], b = i & 65535, H = i >>> 16, c = ((b * b >>> 17) + b * H >>> 15) + H * H, q = ((i & 4294901760) * i | 0) + ((i & 65535) * i | 0);
|
|
4521
|
+
n[a] = c ^ q;
|
|
4522
4522
|
}
|
|
4523
4523
|
X[0] = n[0] + (n[7] << 16 | n[7] >>> 16) + (n[6] << 16 | n[6] >>> 16) | 0, X[1] = n[1] + (n[0] << 8 | n[0] >>> 24) + n[7] | 0, X[2] = n[2] + (n[1] << 16 | n[1] >>> 16) + (n[0] << 16 | n[0] >>> 16) | 0, X[3] = n[3] + (n[2] << 8 | n[2] >>> 24) + n[1] | 0, X[4] = n[4] + (n[3] << 16 | n[3] >>> 16) + (n[2] << 16 | n[2] >>> 16) | 0, X[5] = n[5] + (n[4] << 8 | n[4] >>> 24) + n[3] | 0, X[6] = n[6] + (n[5] << 16 | n[5] >>> 16) + (n[4] << 16 | n[4] >>> 16) | 0, X[7] = n[7] + (n[6] << 8 | n[6] >>> 24) + n[5] | 0;
|
|
4524
4524
|
}
|
|
@@ -5592,59 +5592,59 @@ function LP() {
|
|
|
5592
5592
|
pbox: [],
|
|
5593
5593
|
sbox: []
|
|
5594
5594
|
};
|
|
5595
|
-
function x(
|
|
5596
|
-
let
|
|
5597
|
-
return R = R ^
|
|
5595
|
+
function x(b, H) {
|
|
5596
|
+
let c = H >> 24 & 255, q = H >> 16 & 255, p = H >> 8 & 255, m = H & 255, R = b.sbox[0][c] + b.sbox[1][q];
|
|
5597
|
+
return R = R ^ b.sbox[2][p], R = R + b.sbox[3][m], R;
|
|
5598
5598
|
}
|
|
5599
|
-
function X(
|
|
5600
|
-
let q = H, p =
|
|
5599
|
+
function X(b, H, c) {
|
|
5600
|
+
let q = H, p = c, m;
|
|
5601
5601
|
for (let R = 0; R < z; ++R)
|
|
5602
|
-
q = q ^
|
|
5603
|
-
return m = q, q = p, p = m, p = p ^
|
|
5602
|
+
q = q ^ b.pbox[R], p = x(b, q) ^ p, m = q, q = p, p = m;
|
|
5603
|
+
return m = q, q = p, p = m, p = p ^ b.pbox[z], q = q ^ b.pbox[z + 1], { left: q, right: p };
|
|
5604
5604
|
}
|
|
5605
|
-
function
|
|
5606
|
-
let q = H, p =
|
|
5605
|
+
function s(b, H, c) {
|
|
5606
|
+
let q = H, p = c, m;
|
|
5607
5607
|
for (let R = z + 1; R > 1; --R)
|
|
5608
|
-
q = q ^
|
|
5609
|
-
return m = q, q = p, p = m, p = p ^
|
|
5608
|
+
q = q ^ b.pbox[R], p = x(b, q) ^ p, m = q, q = p, p = m;
|
|
5609
|
+
return m = q, q = p, p = m, p = p ^ b.pbox[1], q = q ^ b.pbox[0], { left: q, right: p };
|
|
5610
5610
|
}
|
|
5611
|
-
function a(
|
|
5611
|
+
function a(b, H, c) {
|
|
5612
5612
|
for (let V = 0; V < 4; V++) {
|
|
5613
|
-
|
|
5613
|
+
b.sbox[V] = [];
|
|
5614
5614
|
for (let l = 0; l < 256; l++)
|
|
5615
|
-
|
|
5615
|
+
b.sbox[V][l] = n[V][l];
|
|
5616
5616
|
}
|
|
5617
5617
|
let q = 0;
|
|
5618
5618
|
for (let V = 0; V < z + 2; V++)
|
|
5619
|
-
|
|
5619
|
+
b.pbox[V] = d[V] ^ H[q], q++, q >= c && (q = 0);
|
|
5620
5620
|
let p = 0, m = 0, R = 0;
|
|
5621
5621
|
for (let V = 0; V < z + 2; V += 2)
|
|
5622
|
-
R = X(
|
|
5622
|
+
R = X(b, p, m), p = R.left, m = R.right, b.pbox[V] = p, b.pbox[V + 1] = m;
|
|
5623
5623
|
for (let V = 0; V < 4; V++)
|
|
5624
5624
|
for (let l = 0; l < 256; l += 2)
|
|
5625
|
-
R = X(
|
|
5625
|
+
R = X(b, p, m), p = R.left, m = R.right, b.sbox[V][l] = p, b.sbox[V][l + 1] = m;
|
|
5626
5626
|
return !0;
|
|
5627
5627
|
}
|
|
5628
|
-
var
|
|
5628
|
+
var i = t.Blowfish = P.extend({
|
|
5629
5629
|
_doReset: function() {
|
|
5630
5630
|
if (this._keyPriorReset !== this._key) {
|
|
5631
|
-
var
|
|
5632
|
-
a(u, H,
|
|
5631
|
+
var b = this._keyPriorReset = this._key, H = b.words, c = b.sigBytes / 4;
|
|
5632
|
+
a(u, H, c);
|
|
5633
5633
|
}
|
|
5634
5634
|
},
|
|
5635
|
-
encryptBlock: function(
|
|
5636
|
-
var
|
|
5637
|
-
|
|
5635
|
+
encryptBlock: function(b, H) {
|
|
5636
|
+
var c = X(u, b[H], b[H + 1]);
|
|
5637
|
+
b[H] = c.left, b[H + 1] = c.right;
|
|
5638
5638
|
},
|
|
5639
|
-
decryptBlock: function(
|
|
5640
|
-
var
|
|
5641
|
-
|
|
5639
|
+
decryptBlock: function(b, H) {
|
|
5640
|
+
var c = s(u, b[H], b[H + 1]);
|
|
5641
|
+
b[H] = c.left, b[H + 1] = c.right;
|
|
5642
5642
|
},
|
|
5643
5643
|
blockSize: 64 / 32,
|
|
5644
5644
|
keySize: 128 / 32,
|
|
5645
5645
|
ivSize: 64 / 32
|
|
5646
5646
|
});
|
|
5647
|
-
v.Blowfish = P._createHelper(
|
|
5647
|
+
v.Blowfish = P._createHelper(i);
|
|
5648
5648
|
}(), f.Blowfish;
|
|
5649
5649
|
});
|
|
5650
5650
|
}(ie)), ie.exports;
|
|
@@ -5781,10 +5781,10 @@ const QP = {
|
|
|
5781
5781
|
iso10126: "iso10126",
|
|
5782
5782
|
ansix923: "ansix923"
|
|
5783
5783
|
}, r = { hex: "hex", base64: "base64" };
|
|
5784
|
-
let P = e.encryptType || "", t = f[P.toLowerCase()], z = e.encryptMode || "", d = e.encryptKey || "", n = e.encryptOffset || "", u = e.encryptPadding || "", x = v[u.toLowerCase()], X = e.codingMode || "",
|
|
5785
|
-
return new Promise((
|
|
5786
|
-
t !== "aes" && t !== "des" ?
|
|
5787
|
-
|
|
5784
|
+
let P = e.encryptType || "", t = f[P.toLowerCase()], z = e.encryptMode || "", d = e.encryptKey || "", n = e.encryptOffset || "", u = e.encryptPadding || "", x = v[u.toLowerCase()], X = e.codingMode || "", s = r[X.toLowerCase()], i = (Number(e.encryptKeyLength) || 0) / 8;
|
|
5785
|
+
return new Promise((b) => {
|
|
5786
|
+
t !== "aes" && t !== "des" ? b({ error: "加密类型出错==", value: null }) : QP[t](A, d, { mode: z, keySize: i, padding: x, encoding: s, iv: n }, (H) => {
|
|
5787
|
+
b(H);
|
|
5788
5788
|
});
|
|
5789
5789
|
});
|
|
5790
5790
|
};
|
|
@@ -6426,14 +6426,14 @@ function uf(e, A, f, v, r, P) {
|
|
|
6426
6426
|
var u = P.get(e);
|
|
6427
6427
|
if (u)
|
|
6428
6428
|
return u;
|
|
6429
|
-
P.set(e, t), zd(e) ? e.forEach(function(
|
|
6430
|
-
t.add(uf(
|
|
6431
|
-
}) : Pd(e) && e.forEach(function(
|
|
6432
|
-
t.set(a, uf(
|
|
6429
|
+
P.set(e, t), zd(e) ? e.forEach(function(s) {
|
|
6430
|
+
t.add(uf(s, A, f, s, e, P));
|
|
6431
|
+
}) : Pd(e) && e.forEach(function(s, a) {
|
|
6432
|
+
t.set(a, uf(s, A, f, a, e, P));
|
|
6433
6433
|
});
|
|
6434
6434
|
var x = Oz, X = z ? void 0 : x(e);
|
|
6435
|
-
return Xu(X || e, function(
|
|
6436
|
-
X && (a =
|
|
6435
|
+
return Xu(X || e, function(s, a) {
|
|
6436
|
+
X && (a = s, s = e[a]), iu(t, a, uf(s, A, f, a, e, P));
|
|
6437
6437
|
}), t;
|
|
6438
6438
|
}
|
|
6439
6439
|
var yd = 1, Wd = 4;
|
|
@@ -6479,11 +6479,11 @@ const bf = (e, A = "") => {
|
|
|
6479
6479
|
return { left: v, right: r };
|
|
6480
6480
|
}, Id = (e, A, f) => {
|
|
6481
6481
|
var x;
|
|
6482
|
-
const v = QA(A).filter((X) => X.routeUrl).filter((X) => !(X != null && X.disable) && !(X != null && X.expired)), P = (((x = ZA()) == null ? void 0 : x.tabMap) ?? {})[e] ?? [], { left: t, right: z } = Ed(P, f), d = P.filter((X) => v.find((
|
|
6483
|
-
var
|
|
6482
|
+
const v = QA(A).filter((X) => X.routeUrl).filter((X) => !(X != null && X.disable) && !(X != null && X.expired)), P = (((x = ZA()) == null ? void 0 : x.tabMap) ?? {})[e] ?? [], { left: t, right: z } = Ed(P, f), d = P.filter((X) => v.find((s) => s.code === X.code)).map((X) => {
|
|
6483
|
+
var s;
|
|
6484
6484
|
return {
|
|
6485
6485
|
...X,
|
|
6486
|
-
name: ((
|
|
6486
|
+
name: ((s = v.find((a) => a.code === X.code)) == null ? void 0 : s.name) ?? X.name
|
|
6487
6487
|
};
|
|
6488
6488
|
});
|
|
6489
6489
|
if (!t.length && !z.length || !d.length)
|
|
@@ -6495,11 +6495,11 @@ const bf = (e, A = "") => {
|
|
|
6495
6495
|
]), oe(e);
|
|
6496
6496
|
let n = null;
|
|
6497
6497
|
if (z.length) {
|
|
6498
|
-
const X = z.find((
|
|
6498
|
+
const X = z.find((s) => d.map((a) => a.code).includes(s.code));
|
|
6499
6499
|
X && (n = X);
|
|
6500
6500
|
}
|
|
6501
6501
|
if (!n && t.length) {
|
|
6502
|
-
const X = t.reverse().find((
|
|
6502
|
+
const X = t.reverse().find((s) => d.map((a) => a.code).includes(s.code));
|
|
6503
6503
|
X && (n = X);
|
|
6504
6504
|
}
|
|
6505
6505
|
return n ? (IA([
|
|
@@ -6536,45 +6536,45 @@ const bf = (e, A = "") => {
|
|
|
6536
6536
|
t != null && t.children && t.children.length && (t.originalChildren = o9(t.children)), (t != null && t.expired || t != null && t.disable) && (t.children = []);
|
|
6537
6537
|
}), { menus: r, originalMenus: P };
|
|
6538
6538
|
}, Md = async (e) => {
|
|
6539
|
-
var X,
|
|
6539
|
+
var X, s, a, i, b;
|
|
6540
6540
|
let { microApp: A = null, menuCode: f = "", menuPath: v = "", route: r = {} } = e;
|
|
6541
6541
|
const P = ((X = r.meta) == null ? void 0 : X.showLayout) ?? !0;
|
|
6542
|
-
let t = ((
|
|
6542
|
+
let t = ((s = r.query) == null ? void 0 : s.showLayout) ?? !0;
|
|
6543
6543
|
t === "false" && (t = !1);
|
|
6544
6544
|
let z = (A == null ? void 0 : A.code) ?? "";
|
|
6545
6545
|
if (!z) return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
|
|
6546
6546
|
let d = [], n = [];
|
|
6547
6547
|
const u = uA().subAppList ?? [];
|
|
6548
6548
|
if (u.length && (d = ((a = u.find((H) => H.code === A.code)) == null ? void 0 : a.menus) ?? []), !d.length) {
|
|
6549
|
-
const { menus: H, originalMenus:
|
|
6550
|
-
d = H ?? [], n =
|
|
6549
|
+
const { menus: H, originalMenus: c } = await Je(z);
|
|
6550
|
+
d = H ?? [], n = c ?? [];
|
|
6551
6551
|
}
|
|
6552
6552
|
if (!d.length && (!P || !t))
|
|
6553
6553
|
return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
|
|
6554
6554
|
if (A.routeUrl === "iot/iot") {
|
|
6555
6555
|
const { instanceInfo: H } = await zt();
|
|
6556
6556
|
if (H) {
|
|
6557
|
-
let
|
|
6557
|
+
let c = !1;
|
|
6558
6558
|
d.forEach((p) => {
|
|
6559
6559
|
p.routeUrl === "/deviceInstance" && (p.fixed = !0, p.divise = !0, p.menuCode = p.code, p.tagName = p.tabName = M("实例"), p.name = H.instanceName, p.leftIcon = "change2", p.rightIcon = "change2");
|
|
6560
6560
|
});
|
|
6561
6561
|
const q = yn(H.endTime) || H.endTime == 0 || H.endTime === 253370736e6 || H.endTime === "253370736000000" ? "-" : Number(H.endTime);
|
|
6562
|
-
if (
|
|
6562
|
+
if (c = De().endOf("day") > De(q).endOf("day"), !f && !v && H.id && !c) {
|
|
6563
6563
|
const m = QA(d).find((R) => R.routeUrl === "/statisticalReport");
|
|
6564
6564
|
m && (f = m.code);
|
|
6565
6565
|
}
|
|
6566
6566
|
}
|
|
6567
6567
|
}
|
|
6568
6568
|
if (P && t) {
|
|
6569
|
-
const
|
|
6569
|
+
const c = ((i = (ZA().tabMap ?? {})[A.code]) == null ? void 0 : i.map((q) => {
|
|
6570
6570
|
var p;
|
|
6571
6571
|
return {
|
|
6572
6572
|
...q,
|
|
6573
6573
|
name: ((p = QA(d).find((m) => m.code === q.code)) == null ? void 0 : p.name) ?? q.name
|
|
6574
6574
|
};
|
|
6575
6575
|
})) ?? [];
|
|
6576
|
-
if (
|
|
6577
|
-
const q =
|
|
6576
|
+
if (c.length) {
|
|
6577
|
+
const q = c.filter(
|
|
6578
6578
|
(p) => f && f === p.code || v && v === `/${p.applicationPath}${p.path}`.replace(/\/\//g, "/") || QA(d).map((m) => m.code).includes(p.code)
|
|
6579
6579
|
);
|
|
6580
6580
|
IA([
|
|
@@ -6586,9 +6586,9 @@ const bf = (e, A = "") => {
|
|
|
6586
6586
|
}
|
|
6587
6587
|
}
|
|
6588
6588
|
if (!f && v) {
|
|
6589
|
-
const H = QA(d).find((
|
|
6590
|
-
const q = `/${
|
|
6591
|
-
return
|
|
6589
|
+
const H = QA(d).find((c) => {
|
|
6590
|
+
const q = `/${c.applicationPath}${c.routeUrl}`.replace(/\/\//g, "/");
|
|
6591
|
+
return c.applicationPath && c.routeUrl && (v === q || v.startsWith(`/${q}/`));
|
|
6592
6592
|
});
|
|
6593
6593
|
if (H)
|
|
6594
6594
|
f = H.code;
|
|
@@ -6605,14 +6605,14 @@ const bf = (e, A = "") => {
|
|
|
6605
6605
|
if (!P || !t)
|
|
6606
6606
|
return { menuConfig: d, currentApp: null, currentMenu: null, query: { ...r.query, app: z } };
|
|
6607
6607
|
const H = Id(A.code, d, f);
|
|
6608
|
-
H != null && H.currentApp && (A = H.currentApp), H != null && H.currentMenu && (x = H.currentMenu), H != null && H.currentTab && (r.query = ((
|
|
6608
|
+
H != null && H.currentApp && (A = H.currentApp), H != null && H.currentMenu && (x = H.currentMenu), H != null && H.currentTab && (r.query = ((b = H.currentTab) == null ? void 0 : b.query) ?? {});
|
|
6609
6609
|
}
|
|
6610
6610
|
if ((A == null ? void 0 : A.routeUrl) === RA)
|
|
6611
6611
|
return { menuConfig: [], currentApp: A, currentMenu: null, query: null };
|
|
6612
6612
|
if (x) {
|
|
6613
6613
|
const H = `/${x.applicationPath}${x.routeUrl}`;
|
|
6614
|
-
let
|
|
6615
|
-
v && v.startsWith(H) && v !== H && (
|
|
6614
|
+
let c = "";
|
|
6615
|
+
v && v.startsWith(H) && v !== H && (c = v);
|
|
6616
6616
|
const q = { ...r.query, app: z, menu: x.code };
|
|
6617
6617
|
if (P && t) {
|
|
6618
6618
|
const p = { ...A, currentMenuCode: x.code, menus: d, originalMenus: n };
|
|
@@ -6650,7 +6650,7 @@ const bf = (e, A = "") => {
|
|
|
6650
6650
|
}
|
|
6651
6651
|
]);
|
|
6652
6652
|
}
|
|
6653
|
-
return { menuConfig: d, currentApp: A, currentMenu: x, query: q, microPath:
|
|
6653
|
+
return { menuConfig: d, currentApp: A, currentMenu: x, query: q, microPath: c };
|
|
6654
6654
|
}
|
|
6655
6655
|
return { menuConfig: d, currentApp: A, currentMenu: null, query: { ...r.query, app: z } };
|
|
6656
6656
|
}, gd = e9.get("/appcategory"), Bd = e9.get("/app/common"), j3 = o(!1), Le = o([]), kd = EA(() => {
|
|
@@ -6677,7 +6677,7 @@ const bf = (e, A = "") => {
|
|
|
6677
6677
|
if (A = n, A && A.length) {
|
|
6678
6678
|
const u = ((t = GA()) == null ? void 0 : t.id) || 0;
|
|
6679
6679
|
if (u && (f = A.find((x) => x.id === u)), !u || !f) {
|
|
6680
|
-
const x = e.tenant.id ?? "", X = A.filter((
|
|
6680
|
+
const x = e.tenant.id ?? "", X = A.filter((s) => s.tenant === x);
|
|
6681
6681
|
X && X.length && (f = X[0]);
|
|
6682
6682
|
}
|
|
6683
6683
|
}
|
|
@@ -6725,34 +6725,34 @@ const bf = (e, A = "") => {
|
|
|
6725
6725
|
f.value = SA.value.style === 1, v.value = SA.value.style === 2, r.value = SA.value.skinStyle === "default", P.value = SA.value.skinStyle === "kjl", t.value = SA.value.skinStyle === "cjb", z.value = SA.value.skinStyle === "ssl";
|
|
6726
6726
|
};
|
|
6727
6727
|
_A(d);
|
|
6728
|
-
const n = (
|
|
6729
|
-
|
|
6728
|
+
const n = (i, b) => {
|
|
6729
|
+
i === "menu" ? (f.value = b === 1, v.value = b === 2) : (r.value = b === 1, P.value = b === 2, t.value = b === 3, z.value = b === 4);
|
|
6730
6730
|
}, u = () => {
|
|
6731
|
-
const
|
|
6731
|
+
const i = {
|
|
6732
6732
|
default: r.value,
|
|
6733
6733
|
kjl: P.value,
|
|
6734
6734
|
cjb: t.value,
|
|
6735
6735
|
ssl: z.value
|
|
6736
6736
|
};
|
|
6737
|
-
return Object.keys(
|
|
6737
|
+
return Object.keys(i).find((b) => i[b] === !0) ?? "default";
|
|
6738
6738
|
}, x = () => ({
|
|
6739
6739
|
style: f.value ? 1 : 2,
|
|
6740
6740
|
skinStyle: u()
|
|
6741
6741
|
}), X = EA(() => {
|
|
6742
|
-
const
|
|
6742
|
+
const i = C9.value === "zh-CN";
|
|
6743
6743
|
return {
|
|
6744
|
-
default:
|
|
6745
|
-
kjl:
|
|
6746
|
-
cjb:
|
|
6747
|
-
ssl:
|
|
6744
|
+
default: i ? c5 : q5,
|
|
6745
|
+
kjl: i ? a5 : H5,
|
|
6746
|
+
cjb: i ? i5 : p5,
|
|
6747
|
+
ssl: i ? s5 : x5
|
|
6748
6748
|
}[u()];
|
|
6749
|
-
}), { onPreview:
|
|
6750
|
-
|
|
6749
|
+
}), { onPreview: s } = Pr(), a = () => {
|
|
6750
|
+
s({ previewList: [X.value], previewBtnConfig: !0 });
|
|
6751
6751
|
};
|
|
6752
6752
|
return A({
|
|
6753
6753
|
init: d,
|
|
6754
6754
|
getResult: x
|
|
6755
|
-
}), (
|
|
6755
|
+
}), (i, b) => h9((fA(), mA(
|
|
6756
6756
|
"div",
|
|
6757
6757
|
O5,
|
|
6758
6758
|
[
|
|
@@ -6767,7 +6767,7 @@ const bf = (e, A = "") => {
|
|
|
6767
6767
|
k("div", D5, [
|
|
6768
6768
|
k("div", {
|
|
6769
6769
|
class: "item-content",
|
|
6770
|
-
onClick:
|
|
6770
|
+
onClick: b[1] || (b[1] = (H) => n("menu", 1))
|
|
6771
6771
|
}, [
|
|
6772
6772
|
k("img", {
|
|
6773
6773
|
src: D(t5),
|
|
@@ -6777,7 +6777,7 @@ const bf = (e, A = "") => {
|
|
|
6777
6777
|
}, null, 8, V5),
|
|
6778
6778
|
B(D(V9), {
|
|
6779
6779
|
modelValue: f.value,
|
|
6780
|
-
"onUpdate:modelValue":
|
|
6780
|
+
"onUpdate:modelValue": b[0] || (b[0] = (H) => f.value = H)
|
|
6781
6781
|
}, {
|
|
6782
6782
|
default: U(() => [
|
|
6783
6783
|
aA(
|
|
@@ -6792,7 +6792,7 @@ const bf = (e, A = "") => {
|
|
|
6792
6792
|
]),
|
|
6793
6793
|
k("div", {
|
|
6794
6794
|
class: "item-content",
|
|
6795
|
-
onClick:
|
|
6795
|
+
onClick: b[3] || (b[3] = (H) => n("menu", 2))
|
|
6796
6796
|
}, [
|
|
6797
6797
|
k("img", {
|
|
6798
6798
|
src: D(u5),
|
|
@@ -6802,7 +6802,7 @@ const bf = (e, A = "") => {
|
|
|
6802
6802
|
}, null, 8, N5),
|
|
6803
6803
|
B(D(V9), {
|
|
6804
6804
|
modelValue: v.value,
|
|
6805
|
-
"onUpdate:modelValue":
|
|
6805
|
+
"onUpdate:modelValue": b[2] || (b[2] = (H) => v.value = H)
|
|
6806
6806
|
}, {
|
|
6807
6807
|
default: U(() => [
|
|
6808
6808
|
aA(
|
|
@@ -6828,7 +6828,7 @@ const bf = (e, A = "") => {
|
|
|
6828
6828
|
k("div", Z5, [
|
|
6829
6829
|
k("div", {
|
|
6830
6830
|
class: "item-content",
|
|
6831
|
-
onClick:
|
|
6831
|
+
onClick: b[5] || (b[5] = (H) => n("skin", 1))
|
|
6832
6832
|
}, [
|
|
6833
6833
|
k("img", {
|
|
6834
6834
|
src: D(z5),
|
|
@@ -6838,7 +6838,7 @@ const bf = (e, A = "") => {
|
|
|
6838
6838
|
}, null, 8, T5),
|
|
6839
6839
|
B(D(V9), {
|
|
6840
6840
|
modelValue: r.value,
|
|
6841
|
-
"onUpdate:modelValue":
|
|
6841
|
+
"onUpdate:modelValue": b[4] || (b[4] = (H) => r.value = H)
|
|
6842
6842
|
}, {
|
|
6843
6843
|
default: U(() => [
|
|
6844
6844
|
aA(
|
|
@@ -6853,7 +6853,7 @@ const bf = (e, A = "") => {
|
|
|
6853
6853
|
]),
|
|
6854
6854
|
k("div", {
|
|
6855
6855
|
class: "item-content",
|
|
6856
|
-
onClick:
|
|
6856
|
+
onClick: b[7] || (b[7] = (H) => n("skin", 2))
|
|
6857
6857
|
}, [
|
|
6858
6858
|
k("img", {
|
|
6859
6859
|
src: D(d5),
|
|
@@ -6863,7 +6863,7 @@ const bf = (e, A = "") => {
|
|
|
6863
6863
|
}, null, 8, o5),
|
|
6864
6864
|
B(D(V9), {
|
|
6865
6865
|
modelValue: P.value,
|
|
6866
|
-
"onUpdate:modelValue":
|
|
6866
|
+
"onUpdate:modelValue": b[6] || (b[6] = (H) => P.value = H)
|
|
6867
6867
|
}, {
|
|
6868
6868
|
default: U(() => [
|
|
6869
6869
|
aA(
|
|
@@ -6880,7 +6880,7 @@ const bf = (e, A = "") => {
|
|
|
6880
6880
|
k("div", L5, [
|
|
6881
6881
|
k("div", {
|
|
6882
6882
|
class: "item-content",
|
|
6883
|
-
onClick:
|
|
6883
|
+
onClick: b[9] || (b[9] = (H) => n("skin", 3))
|
|
6884
6884
|
}, [
|
|
6885
6885
|
k("img", {
|
|
6886
6886
|
src: D(X5),
|
|
@@ -6890,7 +6890,7 @@ const bf = (e, A = "") => {
|
|
|
6890
6890
|
}, null, 8, y5),
|
|
6891
6891
|
B(D(V9), {
|
|
6892
6892
|
modelValue: t.value,
|
|
6893
|
-
"onUpdate:modelValue":
|
|
6893
|
+
"onUpdate:modelValue": b[8] || (b[8] = (H) => t.value = H)
|
|
6894
6894
|
}, {
|
|
6895
6895
|
default: U(() => [
|
|
6896
6896
|
aA(
|
|
@@ -6905,7 +6905,7 @@ const bf = (e, A = "") => {
|
|
|
6905
6905
|
]),
|
|
6906
6906
|
k("div", {
|
|
6907
6907
|
class: "item-content",
|
|
6908
|
-
onClick:
|
|
6908
|
+
onClick: b[11] || (b[11] = (H) => n("skin", 4))
|
|
6909
6909
|
}, [
|
|
6910
6910
|
k("img", {
|
|
6911
6911
|
src: D(b5),
|
|
@@ -6915,7 +6915,7 @@ const bf = (e, A = "") => {
|
|
|
6915
6915
|
}, null, 8, W5),
|
|
6916
6916
|
B(D(V9), {
|
|
6917
6917
|
modelValue: z.value,
|
|
6918
|
-
"onUpdate:modelValue":
|
|
6918
|
+
"onUpdate:modelValue": b[10] || (b[10] = (H) => z.value = H)
|
|
6919
6919
|
}, {
|
|
6920
6920
|
default: U(() => [
|
|
6921
6921
|
aA(
|
|
@@ -6952,7 +6952,7 @@ const bf = (e, A = "") => {
|
|
|
6952
6952
|
512
|
|
6953
6953
|
/* NEED_PATCH */
|
|
6954
6954
|
)), [
|
|
6955
|
-
[af,
|
|
6955
|
+
[af, i.isShow]
|
|
6956
6956
|
]);
|
|
6957
6957
|
}
|
|
6958
6958
|
}), B5 = /* @__PURE__ */ gA(g5, [["__scopeId", "data-v-cea07b15"]]), k5 = { class: "set-lang" }, Q5 = /* @__PURE__ */ qA({
|
|
@@ -7020,7 +7020,7 @@ const bf = (e, A = "") => {
|
|
|
7020
7020
|
levelType: 1
|
|
7021
7021
|
}), u = zr();
|
|
7022
7022
|
let x = !0;
|
|
7023
|
-
const X = o(!1), { run:
|
|
7023
|
+
const X = o(!1), { run: s } = A6(), { run: a } = f6(), i = () => {
|
|
7024
7024
|
var m;
|
|
7025
7025
|
x = !0, (m = u.value) == null || m.resetLazyLoad();
|
|
7026
7026
|
};
|
|
@@ -7033,7 +7033,7 @@ const bf = (e, A = "") => {
|
|
|
7033
7033
|
treeData: d,
|
|
7034
7034
|
openBuiltInDialog: () => {
|
|
7035
7035
|
var m, R, V;
|
|
7036
|
-
P.value = ((m = f.value) == null ? void 0 : m.urlId) ?? "", t.value = ((R = f.value) == null ? void 0 : R.urlPath) ?? ((V = f.value) == null ? void 0 : V.urlId) ?? "", z.value = "", r.value = !0,
|
|
7036
|
+
P.value = ((m = f.value) == null ? void 0 : m.urlId) ?? "", t.value = ((R = f.value) == null ? void 0 : R.urlPath) ?? ((V = f.value) == null ? void 0 : V.urlId) ?? "", z.value = "", r.value = !0, i();
|
|
7037
7037
|
},
|
|
7038
7038
|
loadChildNode: async (m) => {
|
|
7039
7039
|
const R = {
|
|
@@ -7045,7 +7045,7 @@ const bf = (e, A = "") => {
|
|
|
7045
7045
|
isTenant: A.type === 1
|
|
7046
7046
|
};
|
|
7047
7047
|
x ? (x = !1, X.value = !0) : R.parentId = m.id;
|
|
7048
|
-
let [V, l] = await
|
|
7048
|
+
let [V, l] = await s(R);
|
|
7049
7049
|
return X.value = !1, V ? { data: [] } : { data: l.data || [] };
|
|
7050
7050
|
},
|
|
7051
7051
|
search: async (m) => {
|
|
@@ -7079,7 +7079,7 @@ const z6 = (e) => {
|
|
|
7079
7079
|
{ value: 2, label: M("设备看板") },
|
|
7080
7080
|
{ value: 3, label: M("数据编排") },
|
|
7081
7081
|
{ value: 4, label: M("轻分析") }
|
|
7082
|
-
]), z = o([]), d = o(20), n = o(1), u = o(0), x = o(""), X = o(""),
|
|
7082
|
+
]), z = o([]), d = o(20), n = o(1), u = o(0), x = o(""), X = o(""), s = o(""), a = o(!1), { run: i } = e6(), { run: b } = v6(), { run: H } = n6(), { run: c } = r6(), { run: q } = P6(), p = (G) => {
|
|
7083
7083
|
const Y = [], S = G[2], C = S.displays, L = S.scenes, W = S[M("2D3D集成根目录")];
|
|
7084
7084
|
m(C, "2D", "/enterpriseadmin/ioc-server/?type=preview&tag=displays", Y), m(L, "3D", "/enterpriseadmin/ioc-server/?type=preview3d&tag=scenes", Y), m(W, M("集成"), "/enterpriseadmin/ioc-server/?type=preview2d3d&tag=scenes", Y);
|
|
7085
7085
|
const E = (n.value - 1) * d.value, w = E + d.value;
|
|
@@ -7098,17 +7098,17 @@ const z6 = (e) => {
|
|
|
7098
7098
|
n.value = 1, u.value = 0, x.value = "";
|
|
7099
7099
|
}, V = () => {
|
|
7100
7100
|
var G, Y, S;
|
|
7101
|
-
R(), P.value = ((G = A.value) == null ? void 0 : G.urlType) ?? 0, X.value = ((Y = A.value) == null ? void 0 : Y.urlId) ?? "",
|
|
7101
|
+
R(), P.value = ((G = A.value) == null ? void 0 : G.urlType) ?? 0, X.value = ((Y = A.value) == null ? void 0 : Y.urlId) ?? "", s.value = ((S = A.value) == null ? void 0 : S.routeUrl) ?? "", rf.afterMsg = p, N(), r.value = !0;
|
|
7102
7102
|
}, l = (G, Y, S) => {
|
|
7103
|
-
|
|
7103
|
+
s.value = Y.url;
|
|
7104
7104
|
}, j = () => {
|
|
7105
7105
|
if (!X.value) {
|
|
7106
7106
|
Ie.warning(M("至少选择一个链接"));
|
|
7107
7107
|
return;
|
|
7108
7108
|
}
|
|
7109
|
-
A.value.urlType = P.value, A.value.urlId = X.value, A.value.routeUrl =
|
|
7109
|
+
A.value.urlType = P.value, A.value.urlId = X.value, A.value.routeUrl = s.value, r.value = !1;
|
|
7110
7110
|
}, O = (G) => {
|
|
7111
|
-
R(), P.value = G, X.value = "",
|
|
7111
|
+
R(), P.value = G, X.value = "", s.value = "", N();
|
|
7112
7112
|
}, N = () => {
|
|
7113
7113
|
if (f.type !== 7) return;
|
|
7114
7114
|
({
|
|
@@ -7129,7 +7129,7 @@ const z6 = (e) => {
|
|
|
7129
7129
|
pageSize: d.value
|
|
7130
7130
|
};
|
|
7131
7131
|
a.value = !0;
|
|
7132
|
-
const [Y, S] = await
|
|
7132
|
+
const [Y, S] = await b(G);
|
|
7133
7133
|
if (a.value = !1, Y) {
|
|
7134
7134
|
z.value = [];
|
|
7135
7135
|
return;
|
|
@@ -7143,7 +7143,7 @@ const z6 = (e) => {
|
|
|
7143
7143
|
pageSize: d.value
|
|
7144
7144
|
};
|
|
7145
7145
|
a.value = !0;
|
|
7146
|
-
const [Y, S] = await
|
|
7146
|
+
const [Y, S] = await i(G);
|
|
7147
7147
|
if (a.value = !1, Y) {
|
|
7148
7148
|
z.value = [];
|
|
7149
7149
|
return;
|
|
@@ -7157,7 +7157,7 @@ const z6 = (e) => {
|
|
|
7157
7157
|
pageSize: d.value
|
|
7158
7158
|
};
|
|
7159
7159
|
a.value = !0;
|
|
7160
|
-
const [Y, S] = await
|
|
7160
|
+
const [Y, S] = await c(G);
|
|
7161
7161
|
if (a.value = !1, Y) {
|
|
7162
7162
|
z.value = [];
|
|
7163
7163
|
return;
|
|
@@ -7278,12 +7278,12 @@ const z6 = (e) => {
|
|
|
7278
7278
|
P.value.routeUrl = "", z.value.routeUrl = "";
|
|
7279
7279
|
}, {
|
|
7280
7280
|
builtInDialog: X,
|
|
7281
|
-
$typeTree:
|
|
7281
|
+
$typeTree: s,
|
|
7282
7282
|
treeId: a,
|
|
7283
|
-
treePath:
|
|
7284
|
-
keyword:
|
|
7283
|
+
treePath: i,
|
|
7284
|
+
keyword: b,
|
|
7285
7285
|
treeData: H,
|
|
7286
|
-
openBuiltInDialog:
|
|
7286
|
+
openBuiltInDialog: c,
|
|
7287
7287
|
loadChildNode: q,
|
|
7288
7288
|
search: p,
|
|
7289
7289
|
toggleTree: m,
|
|
@@ -7312,7 +7312,7 @@ const z6 = (e) => {
|
|
|
7312
7312
|
orgInfo: r,
|
|
7313
7313
|
information: P
|
|
7314
7314
|
}), W = () => {
|
|
7315
|
-
!P.value.type || P.value.type === 3 || (P.value.type === 1 ?
|
|
7315
|
+
!P.value.type || P.value.type === 3 || (P.value.type === 1 ? c() : G());
|
|
7316
7316
|
}, E = o(null), w = () => {
|
|
7317
7317
|
var K;
|
|
7318
7318
|
(K = E.value) == null || K.open();
|
|
@@ -7485,13 +7485,13 @@ const z6 = (e) => {
|
|
|
7485
7485
|
B(D(dr), {
|
|
7486
7486
|
"node-key": "id",
|
|
7487
7487
|
ref_key: "$typeTree",
|
|
7488
|
-
ref:
|
|
7488
|
+
ref: s,
|
|
7489
7489
|
modelValue: D(a),
|
|
7490
7490
|
"onUpdate:modelValue": $[5] || ($[5] = (eA) => FA(a) ? a.value = eA : null),
|
|
7491
|
-
path: D(
|
|
7492
|
-
"onUpdate:path": $[6] || ($[6] = (eA) => FA(
|
|
7493
|
-
"filter-value": D(
|
|
7494
|
-
"onUpdate:filterValue": $[7] || ($[7] = (eA) => FA(
|
|
7491
|
+
path: D(i),
|
|
7492
|
+
"onUpdate:path": $[6] || ($[6] = (eA) => FA(i) ? i.value = eA : null),
|
|
7493
|
+
"filter-value": D(b),
|
|
7494
|
+
"onUpdate:filterValue": $[7] || ($[7] = (eA) => FA(b) ? b.value = eA : null),
|
|
7495
7495
|
data: D(H),
|
|
7496
7496
|
"is-ellipsis": "",
|
|
7497
7497
|
"default-expanded-keys": ["-1"],
|
|
@@ -7664,15 +7664,15 @@ const z6 = (e) => {
|
|
|
7664
7664
|
hidden: !n.value
|
|
7665
7665
|
}
|
|
7666
7666
|
]), x = () => {
|
|
7667
|
-
var a,
|
|
7668
|
-
const { flag:
|
|
7669
|
-
|
|
7667
|
+
var a, i;
|
|
7668
|
+
const { flag: s } = Hf();
|
|
7669
|
+
s === 4 && (n.value = (a = f9.value) == null ? void 0 : a.companyIsDisplayHome), d.value = (i = f9.value) != null && i.homeAlias ? f9.value.homeAlias : M("首页"), f.value = !0;
|
|
7670
7670
|
}, X = async () => {
|
|
7671
|
-
var
|
|
7672
|
-
const
|
|
7671
|
+
var i, b, H, c;
|
|
7672
|
+
const s = (i = r.value) == null ? void 0 : i.getResult(), [a] = await D6().run(s);
|
|
7673
7673
|
if (!a) {
|
|
7674
7674
|
if (await Yv(), Number(a7()) >= 2) {
|
|
7675
|
-
const q = (
|
|
7675
|
+
const q = (b = t.value) == null ? void 0 : b.getResult(), [p] = await N6().run(q);
|
|
7676
7676
|
if (p) {
|
|
7677
7677
|
z.value = "lang";
|
|
7678
7678
|
return;
|
|
@@ -7680,7 +7680,7 @@ const z6 = (e) => {
|
|
|
7680
7680
|
}
|
|
7681
7681
|
if (n.value)
|
|
7682
7682
|
if ((H = P.value) != null && H.formValidate()) {
|
|
7683
|
-
const q = (
|
|
7683
|
+
const q = (c = P.value) == null ? void 0 : c.getResult(), [p] = await V6().run(q);
|
|
7684
7684
|
if (p) {
|
|
7685
7685
|
z.value = "home";
|
|
7686
7686
|
return;
|
|
@@ -7695,12 +7695,12 @@ const z6 = (e) => {
|
|
|
7695
7695
|
};
|
|
7696
7696
|
return A({
|
|
7697
7697
|
openDialog: x
|
|
7698
|
-
}), (
|
|
7698
|
+
}), (s, a) => (fA(), mA("div", R6, [
|
|
7699
7699
|
f.value ? (fA(), XA(D(nr), {
|
|
7700
7700
|
key: 0,
|
|
7701
7701
|
title: D(AA)("个性化设置").value,
|
|
7702
7702
|
modelValue: f.value,
|
|
7703
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
7703
|
+
"onUpdate:modelValue": a[3] || (a[3] = (i) => f.value = i),
|
|
7704
7704
|
"body-style": { padding: 0 },
|
|
7705
7705
|
direction: "rtl"
|
|
7706
7706
|
}, {
|
|
@@ -7708,7 +7708,7 @@ const z6 = (e) => {
|
|
|
7708
7708
|
k("div", j6, [
|
|
7709
7709
|
B(D(kA), {
|
|
7710
7710
|
size: "middle",
|
|
7711
|
-
onClick: a[2] || (a[2] = (
|
|
7711
|
+
onClick: a[2] || (a[2] = (i) => f.value = !1),
|
|
7712
7712
|
style: { "margin-right": "12px" }
|
|
7713
7713
|
}, {
|
|
7714
7714
|
default: U(() => [
|
|
@@ -7743,7 +7743,7 @@ const z6 = (e) => {
|
|
|
7743
7743
|
B(D(rr), {
|
|
7744
7744
|
options: u.value,
|
|
7745
7745
|
activeKey: z.value,
|
|
7746
|
-
"onUpdate:activeKey": a[0] || (a[0] = (
|
|
7746
|
+
"onUpdate:activeKey": a[0] || (a[0] = (i) => z.value = i),
|
|
7747
7747
|
"tab-width": "110px"
|
|
7748
7748
|
}, null, 8, ["options", "activeKey"]),
|
|
7749
7749
|
B(D(B5), {
|
|
@@ -7760,7 +7760,7 @@ const z6 = (e) => {
|
|
|
7760
7760
|
ref_key: "setHomeRef",
|
|
7761
7761
|
ref: P,
|
|
7762
7762
|
isShow: z.value === "home",
|
|
7763
|
-
onResetConfirm: a[1] || (a[1] = (
|
|
7763
|
+
onResetConfirm: a[1] || (a[1] = (i) => f.value = !1)
|
|
7764
7764
|
}, null, 8, ["isShow"])
|
|
7765
7765
|
]),
|
|
7766
7766
|
_: 1
|
|
@@ -7854,8 +7854,8 @@ const z6 = (e) => {
|
|
|
7854
7854
|
const A = y9(), f = sf(), { getMenu: v } = Qn(), { getHistoryList: r, getSearchList: P } = A1(), t = o("0"), z = o(!0), d = o([]), n = o([]), u = o(!1), x = o(!1), X = o(!1);
|
|
7855
7855
|
OA(
|
|
7856
7856
|
() => f.path,
|
|
7857
|
-
(
|
|
7858
|
-
x.value =
|
|
7857
|
+
(c) => {
|
|
7858
|
+
x.value = c === hA;
|
|
7859
7859
|
},
|
|
7860
7860
|
{
|
|
7861
7861
|
immediate: !0
|
|
@@ -7875,8 +7875,8 @@ const z6 = (e) => {
|
|
|
7875
7875
|
immediate: !0
|
|
7876
7876
|
}
|
|
7877
7877
|
);
|
|
7878
|
-
const
|
|
7879
|
-
let
|
|
7878
|
+
const s = async () => {
|
|
7879
|
+
let c = {};
|
|
7880
7880
|
return await Mn([
|
|
7881
7881
|
Sd,
|
|
7882
7882
|
Pt,
|
|
@@ -7884,30 +7884,30 @@ const z6 = (e) => {
|
|
|
7884
7884
|
Bv,
|
|
7885
7885
|
Yv,
|
|
7886
7886
|
Qd
|
|
7887
|
-
]).then((p) => Object.assign(
|
|
7887
|
+
]).then((p) => Object.assign(c, ...p)), z.value = !1, c;
|
|
7888
7888
|
}, a = async () => {
|
|
7889
|
-
const
|
|
7889
|
+
const c = f9.value;
|
|
7890
7890
|
let q = [...Av].map((V) => ({
|
|
7891
7891
|
...V,
|
|
7892
7892
|
label: M(V.label)
|
|
7893
7893
|
}));
|
|
7894
|
-
q.forEach((V) => (
|
|
7894
|
+
q.forEach((V) => (c != null && c.appAlias && V.value === RA && (V.label = c.appAlias), c != null && c.homeAlias && V.value === hA && (V.label = c.homeAlias), V));
|
|
7895
7895
|
const p = () => {
|
|
7896
7896
|
const { flag: V } = Hf();
|
|
7897
|
-
return V === 4 ?
|
|
7897
|
+
return V === 4 ? c == null ? void 0 : c.companyIsDisplayHome : c == null ? void 0 : c.enable;
|
|
7898
7898
|
};
|
|
7899
|
-
p() ? ((
|
|
7900
|
-
const m = p() && (
|
|
7899
|
+
p() ? ((c == null ? void 0 : c.displayPosition) === 2 && (q = I6(q, 0, 1)), d.value = q) : (d.value = q.filter((V) => V.path === RA), f.path === hA && await A.replace(RA));
|
|
7900
|
+
const m = p() && (c == null ? void 0 : c.displayPosition) !== 2 ? hA : RA;
|
|
7901
7901
|
sessionStorage.getItem("defalt-page") || f.path !== m && await A.replace(m), sessionStorage.setItem("defalt-page", m);
|
|
7902
7902
|
const R = F.nav.getItems().filter((V) => !V.fixed) ?? [];
|
|
7903
7903
|
F.nav.setItems([...d.value, ...R]);
|
|
7904
|
-
},
|
|
7904
|
+
}, i = o(!1), b = async () => {
|
|
7905
7905
|
var Z;
|
|
7906
7906
|
await e();
|
|
7907
|
-
const
|
|
7907
|
+
const c = GA().id, q = await s();
|
|
7908
7908
|
if (!q) return;
|
|
7909
7909
|
const { navConfig: p, projectConfig: m, currentProject: R, tenantList: V } = q, l = (R == null ? void 0 : R.id) || 0;
|
|
7910
|
-
|
|
7910
|
+
c != l && (t.value = t.value === "0" ? "1" : "0"), X.value = ((Z = qf()) == null ? void 0 : Z.flag) !== 4 && V && V.length > 1, u.value = p.find((T) => T.apps.some((Q) => Q.code === "dasaiassistant")), a(), m && m.length && (F.nav.setProjectConfig({
|
|
7911
7911
|
treeProps: {
|
|
7912
7912
|
disabled: (T) => T.type !== 7
|
|
7913
7913
|
},
|
|
@@ -7927,20 +7927,20 @@ const z6 = (e) => {
|
|
|
7927
7927
|
const N = uA().subAppList ?? [];
|
|
7928
7928
|
N.length && (N.forEach((T) => {
|
|
7929
7929
|
T.menus = [], T.originalMenus = [];
|
|
7930
|
-
}), MA([{ key: "subAppList", value: N }])),
|
|
7930
|
+
}), MA([{ key: "subAppList", value: N }])), i.value = !0;
|
|
7931
7931
|
};
|
|
7932
|
-
return F.nav.addEventListener("onBeforeMount",
|
|
7932
|
+
return F.nav.addEventListener("onBeforeMount", b), OA(
|
|
7933
7933
|
() => f9.value,
|
|
7934
7934
|
() => {
|
|
7935
7935
|
a();
|
|
7936
7936
|
},
|
|
7937
7937
|
{ deep: !0 }
|
|
7938
|
-
), { loading: z, pageKey: t, innerPage: d, commandList: n, layoutInited:
|
|
7938
|
+
), { loading: z, pageKey: t, innerPage: d, commandList: n, layoutInited: i, initNextTick: () => new Promise((c) => {
|
|
7939
7939
|
const q = async () => {
|
|
7940
7940
|
var R;
|
|
7941
7941
|
let p = ((R = f.meta) == null ? void 0 : R.showLayout) ?? !0, { showLayout: m = !0 } = f.query;
|
|
7942
|
-
if (m === "false" && (m = !1), !p || !m ||
|
|
7943
|
-
|
|
7942
|
+
if (m === "false" && (m = !1), !p || !m || i.value) {
|
|
7943
|
+
c();
|
|
7944
7944
|
return;
|
|
7945
7945
|
}
|
|
7946
7946
|
setTimeout(() => q(), 50);
|
|
@@ -8000,35 +8000,35 @@ const z6 = (e) => {
|
|
|
8000
8000
|
() => e.currentRoute.value,
|
|
8001
8001
|
async (a) => {
|
|
8002
8002
|
var p, m, R, V, l, j, O, N, Z, T;
|
|
8003
|
-
const
|
|
8004
|
-
let
|
|
8005
|
-
if (
|
|
8003
|
+
const i = ((p = a.meta) == null ? void 0 : p.showLayout) ?? !0;
|
|
8004
|
+
let b = ((m = a.query) == null ? void 0 : m.showLayout) ?? !0;
|
|
8005
|
+
if (b === "false" && (b = !1), !i || !b || a.path === r && Oe(a.query, P)) return;
|
|
8006
8006
|
r = o9(a.path), P = o9(a.query);
|
|
8007
8007
|
const H = uA().currentSubAppCode ?? "";
|
|
8008
8008
|
if (!H) return;
|
|
8009
|
-
const
|
|
8010
|
-
if (!
|
|
8009
|
+
const c = ((R = a.query) == null ? void 0 : R.menu) ?? ((V = ZA()) == null ? void 0 : V.currentCode) ?? "";
|
|
8010
|
+
if (!c) return;
|
|
8011
8011
|
const q = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
|
|
8012
|
-
q && JSON.stringify(q) !== "{}" && (A.value = (j = (l = q[H]) == null ? void 0 : l[
|
|
8012
|
+
q && JSON.stringify(q) !== "{}" && (A.value = (j = (l = q[H]) == null ? void 0 : l[c]) != null && j.fontColor ? q[H][c].fontColor : "", f.value = (N = (O = q[H]) == null ? void 0 : O[c]) != null && N.backgroundColor ? q[H][c].backgroundColor : "", v.value = (T = (Z = q[H]) == null ? void 0 : Z[c]) != null && T.backgroundColor ? q[H][c].backgroundColor : "");
|
|
8013
8013
|
}
|
|
8014
8014
|
);
|
|
8015
8015
|
const { deleteApp: t } = m9(), { entryMenu: z } = Zf(), { reloadRoute: d, unloadRoute: n } = Jv(), u = (a) => {
|
|
8016
|
-
var
|
|
8017
|
-
const
|
|
8018
|
-
z({ currentMenu:
|
|
8016
|
+
var c;
|
|
8017
|
+
const i = QA(zf(a.applicationCode)).find((q) => q.code === a.code), H = (((c = ZA().tabMap) == null ? void 0 : c[a.applicationCode]) ?? []).find((q) => q.code === a.code);
|
|
8018
|
+
z({ currentMenu: i, route: { path: H.path, query: H.query ?? {} } });
|
|
8019
8019
|
}, x = (a) => {
|
|
8020
8020
|
if (!a || !a.length) return;
|
|
8021
|
-
const
|
|
8022
|
-
|
|
8021
|
+
const i = a.filter((b) => !b.path.startsWith(b9)).map((b) => b.path);
|
|
8022
|
+
i && i.length && n(i), a.forEach((b) => F.iframeView.triggerEventListener("onUnloadPage", b.path));
|
|
8023
8023
|
}, X = (a) => {
|
|
8024
|
-
const
|
|
8024
|
+
const i = uA().currentSubAppCode ?? "";
|
|
8025
8025
|
xA.innerSet = !0;
|
|
8026
|
-
const
|
|
8027
|
-
if (
|
|
8026
|
+
const b = ZA(), H = b.tabMap[i], c = H.findIndex((l) => l.code === a.data.code);
|
|
8027
|
+
if (c === -1) return;
|
|
8028
8028
|
const q = () => {
|
|
8029
8029
|
var O;
|
|
8030
|
-
let j = (((O = uA().appcategorys) == null ? void 0 : O.map((N) => N.apps).flat()) ?? []).find((N) => N.code ===
|
|
8031
|
-
j = { ...j, value: j.code, label: j.name }, t(j), F.nav.removeItem(
|
|
8030
|
+
let j = (((O = uA().appcategorys) == null ? void 0 : O.map((N) => N.apps).flat()) ?? []).find((N) => N.code === i);
|
|
8031
|
+
j = { ...j, value: j.code, label: j.name }, t(j), F.nav.removeItem(i);
|
|
8032
8032
|
};
|
|
8033
8033
|
({
|
|
8034
8034
|
me: async (l) => {
|
|
@@ -8036,46 +8036,46 @@ const z6 = (e) => {
|
|
|
8036
8036
|
q();
|
|
8037
8037
|
return;
|
|
8038
8038
|
}
|
|
8039
|
-
const j =
|
|
8039
|
+
const j = b.currentCode;
|
|
8040
8040
|
let O = null;
|
|
8041
|
-
j === l.value && (
|
|
8041
|
+
j === l.value && (c + 1 === H.length ? H[c - 1] && (O = H[c - 1]) : H[c + 1] && (O = H[c + 1])), H.splice(c, 1), x([l]), IA([{ key: `tabMap:${i}`, value: H }]), O ? u(O) : IA([{ key: `preTab:${i}`, value: {} }]);
|
|
8042
8042
|
},
|
|
8043
8043
|
all: q,
|
|
8044
8044
|
other: async (l) => {
|
|
8045
|
-
const j = H[
|
|
8045
|
+
const j = H[c];
|
|
8046
8046
|
await e.push({
|
|
8047
8047
|
path: `/${j.applicationPath}${j.path}`.replace(/\/\//g, "/"),
|
|
8048
8048
|
query: j.query
|
|
8049
8049
|
}), F.menu.setActiveItem(j.menuId), F.tab.setActiveItem(j.code);
|
|
8050
8050
|
const O = H.filter((N) => N.code !== l.value);
|
|
8051
|
-
O.forEach((N) => F.tab.removeItem(N.code)), x(O), IA([{ key: `tabMap:${
|
|
8051
|
+
O.forEach((N) => F.tab.removeItem(N.code)), x(O), IA([{ key: `tabMap:${i}`, value: [j] }]), u(j);
|
|
8052
8052
|
},
|
|
8053
8053
|
right: async (l) => {
|
|
8054
|
-
const j =
|
|
8055
|
-
if (j !== l.value && H.findIndex((Z) => Z.code === j) >
|
|
8056
|
-
const Z = H[
|
|
8054
|
+
const j = b.currentCode;
|
|
8055
|
+
if (j !== l.value && H.findIndex((Z) => Z.code === j) > c) {
|
|
8056
|
+
const Z = H[c];
|
|
8057
8057
|
u(Z);
|
|
8058
8058
|
}
|
|
8059
|
-
const O = H.slice(
|
|
8060
|
-
O.forEach((N) => F.tab.removeItem(N.code)), x(O), H.splice(
|
|
8059
|
+
const O = H.slice(c + 1);
|
|
8060
|
+
O.forEach((N) => F.tab.removeItem(N.code)), x(O), H.splice(c + 1), IA([{ key: `tabMap:${i}`, value: H }]);
|
|
8061
8061
|
}
|
|
8062
8062
|
})[a.type](a.data);
|
|
8063
8063
|
};
|
|
8064
8064
|
F.tab.addEventListener("onItemClick", async (a) => {
|
|
8065
8065
|
ZA().currentCode !== a.currentCode && (xA.innerSet = !0, u(a));
|
|
8066
8066
|
}), F.tab.addEventListener("onItemRemove", (a) => {
|
|
8067
|
-
const
|
|
8068
|
-
|
|
8067
|
+
const i = ZA(), b = uA().currentSubAppCode ?? "";
|
|
8068
|
+
i.tabMap[b].findIndex((q) => q.code === a.code) !== -1 && (tf(a.applicationCode, [a.code]), X({ type: "me", data: a }));
|
|
8069
8069
|
}), F.tab.addEventListener("onMenuClick", (a) => {
|
|
8070
|
-
let
|
|
8071
|
-
const
|
|
8070
|
+
let i = [];
|
|
8071
|
+
const b = ZA().tabMap[a.applicationCode] ?? [];
|
|
8072
8072
|
if (a.type.key === "right") {
|
|
8073
|
-
const H =
|
|
8074
|
-
|
|
8073
|
+
const H = b.findIndex((c) => c.code === a.data.value);
|
|
8074
|
+
i = b.slice(H + 1);
|
|
8075
8075
|
}
|
|
8076
|
-
a.type.key === "other" && (
|
|
8076
|
+
a.type.key === "other" && (i = b.filter((H) => H.code !== a.data.value)), a.type.key === "all" && (i = [...b]), tf(
|
|
8077
8077
|
a.applicationCode,
|
|
8078
|
-
|
|
8078
|
+
i.map((H) => H.code)
|
|
8079
8079
|
), X({ type: a.type.key, data: a.data });
|
|
8080
8080
|
}), F.tab.addEventListener("onPageRefresh", async (a) => {
|
|
8081
8081
|
if (!a) return;
|
|
@@ -8084,17 +8084,17 @@ const z6 = (e) => {
|
|
|
8084
8084
|
return;
|
|
8085
8085
|
}
|
|
8086
8086
|
tf(a.applicationCode, [a.code]);
|
|
8087
|
-
const
|
|
8088
|
-
if (!
|
|
8089
|
-
if (
|
|
8090
|
-
d([a.path]), n([`/${a.applicationPath}${
|
|
8087
|
+
const i = QA(zf(a.applicationCode)).find((c) => c.code === a.code);
|
|
8088
|
+
if (!i) return;
|
|
8089
|
+
if (i.routeUrl !== a.path) {
|
|
8090
|
+
d([a.path]), n([`/${a.applicationPath}${i.routeUrl}`]), await z({ currentMenu: i });
|
|
8091
8091
|
return;
|
|
8092
8092
|
}
|
|
8093
|
-
const
|
|
8094
|
-
Oe(
|
|
8093
|
+
const b = { app: i.applicationCode, menu: i.code }, H = { ...a.query };
|
|
8094
|
+
Oe(b, H) || await z({ currentMenu: i }), d([a.path]);
|
|
8095
8095
|
});
|
|
8096
|
-
const { enter:
|
|
8097
|
-
return F.tab.addEventListener("onToggleFullScreen",
|
|
8096
|
+
const { enter: s } = $9();
|
|
8097
|
+
return F.tab.addEventListener("onToggleFullScreen", s), { fontColor: A, backgroudColor: f, borderColor: v };
|
|
8098
8098
|
}, He = u9(), T3 = (He == null ? void 0 : He.isAutoCloseApp) ?? !0, o3 = location.href.includes("showLayout=false"), L3 = window.self !== window.top, Y6 = () => {
|
|
8099
8099
|
const e = () => {
|
|
8100
8100
|
F.nav.setItems([]), F.menu.setItems([]), F.tab.setItems([]), uv();
|
|
@@ -8124,51 +8124,51 @@ const z6 = (e) => {
|
|
|
8124
8124
|
F.menu.setItems([]), F.menu.setActiveItem(""), F.tab.setItems([]), F.tab.setActiveItem("");
|
|
8125
8125
|
}, d = async (X) => {
|
|
8126
8126
|
if (X.routeUrl && !t.includes(X.routeUrl)) return !0;
|
|
8127
|
-
const
|
|
8128
|
-
let
|
|
8129
|
-
if (
|
|
8130
|
-
const { menus: p, originalMenus: m, err: R } = await Je(
|
|
8127
|
+
const s = X.code ?? "", i = (uA().subAppList ?? []).find((p) => p.code === s);
|
|
8128
|
+
let b = [], H = [], c = !1;
|
|
8129
|
+
if (i && (b = i.menus ?? []), !b.length) {
|
|
8130
|
+
const { menus: p, originalMenus: m, err: R } = await Je(s);
|
|
8131
8131
|
if (R) return !1;
|
|
8132
|
-
|
|
8132
|
+
b = p ?? [], H = m ?? [];
|
|
8133
8133
|
}
|
|
8134
|
-
if (
|
|
8134
|
+
if (b.length ? bf(b) || (await G9({
|
|
8135
8135
|
title: M("提示"),
|
|
8136
8136
|
content: M("此应用菜单已过期/已收回/配置有误") + "<br/>" + M("无法使用")
|
|
8137
|
-
}),
|
|
8138
|
-
const q = { ...X, menus:
|
|
8137
|
+
}), c = !0) : (await G9({ title: M("提示"), content: M("此应用未配置菜单/无菜单权限") + "<br/>" + M("无法使用") }), c = !0), c) return !1;
|
|
8138
|
+
const q = { ...X, menus: b, originalMenus: H };
|
|
8139
8139
|
return MA([{ key: "subAppList", value: q }]), !0;
|
|
8140
8140
|
}, n = async (X) => {
|
|
8141
8141
|
var Z, T, Q, h, _;
|
|
8142
|
-
const { microApp:
|
|
8143
|
-
let H =
|
|
8144
|
-
if (!
|
|
8145
|
-
if (z(), !(t && t.find((Y) =>
|
|
8146
|
-
await e.push({ path:
|
|
8142
|
+
const { microApp: s = null, menuCode: a = "", menuPath: i = "", route: b = {} } = X;
|
|
8143
|
+
let H = b;
|
|
8144
|
+
if (!s && i) {
|
|
8145
|
+
if (z(), !(t && t.find((Y) => i.startsWith("/" + Y) || i.startsWith(Y)))) return;
|
|
8146
|
+
await e.push({ path: i, query: H.query });
|
|
8147
8147
|
return;
|
|
8148
8148
|
}
|
|
8149
|
-
const
|
|
8149
|
+
const c = ((Z = H.meta) == null ? void 0 : Z.showLayout) ?? !0;
|
|
8150
8150
|
let q = ((T = H.query) == null ? void 0 : T.showLayout) ?? !0;
|
|
8151
8151
|
q === "false" && (q = !1);
|
|
8152
|
-
const p = (
|
|
8153
|
-
if (
|
|
8152
|
+
const p = (s == null ? void 0 : s.openType) ?? 1, m = (s == null ? void 0 : s.type) ?? 1;
|
|
8153
|
+
if (s.routeUrl && !t.includes(s.routeUrl)) {
|
|
8154
8154
|
Dv({
|
|
8155
|
-
appCode:
|
|
8156
|
-
displayAppName:
|
|
8155
|
+
appCode: s.code,
|
|
8156
|
+
displayAppName: s.name
|
|
8157
8157
|
}), z();
|
|
8158
8158
|
const G = ((Q = uA()) == null ? void 0 : Q.subAppList) ?? [];
|
|
8159
|
-
if ((G == null ? void 0 : G.find((S) => S.code ===
|
|
8160
|
-
{ key: "currentSubApp", value:
|
|
8161
|
-
{ key: "currentSubAppCode", value:
|
|
8159
|
+
if ((G == null ? void 0 : G.find((S) => S.code === s.code)) || G == null || G.push(s), MA([
|
|
8160
|
+
{ key: "currentSubApp", value: s },
|
|
8161
|
+
{ key: "currentSubAppCode", value: s.code },
|
|
8162
8162
|
{ key: "subAppList", value: G }
|
|
8163
8163
|
]), G.forEach((S) => {
|
|
8164
8164
|
const C = { ...S, value: S.code, label: S.name };
|
|
8165
8165
|
F.nav.appendItem(C);
|
|
8166
|
-
}), F.nav.setActiveItem(
|
|
8167
|
-
await e.push({ path:
|
|
8166
|
+
}), F.nav.setActiveItem(s.code), s.routeUrl.includes("entrance=main")) {
|
|
8167
|
+
await e.push({ path: s.routeUrl, query: { ...H.query, app: s.code } });
|
|
8168
8168
|
return;
|
|
8169
8169
|
}
|
|
8170
8170
|
if (p === 1 && m === 2) {
|
|
8171
|
-
const S = await Hv(
|
|
8171
|
+
const S = await Hv(s.routeUrl, (s == null ? void 0 : s.param) ?? []), C = Ne(me(le(S))), L = `${b9}-${s.code}`;
|
|
8172
8172
|
if (!e.options.routes.find((W) => W.path === L)) {
|
|
8173
8173
|
const W = {
|
|
8174
8174
|
path: L,
|
|
@@ -8183,7 +8183,7 @@ const z6 = (e) => {
|
|
|
8183
8183
|
path: L,
|
|
8184
8184
|
query: {
|
|
8185
8185
|
...H.query,
|
|
8186
|
-
app:
|
|
8186
|
+
app: s.code
|
|
8187
8187
|
}
|
|
8188
8188
|
});
|
|
8189
8189
|
return;
|
|
@@ -8195,22 +8195,22 @@ const z6 = (e) => {
|
|
|
8195
8195
|
currentMenu: l = null,
|
|
8196
8196
|
microPath: j = "",
|
|
8197
8197
|
query: O = {}
|
|
8198
|
-
} = await Md({ microApp:
|
|
8198
|
+
} = await Md({ microApp: s, menuCode: a, menuPath: i, route: H });
|
|
8199
8199
|
if (l && (H = {
|
|
8200
8200
|
path: j || `/${l.applicationPath}${l.routeUrl}`.replace(/\/\//g, "/"),
|
|
8201
8201
|
query: { ...O, app: l.applicationCode, menu: l.code },
|
|
8202
8202
|
meta: { ...(H == null ? void 0 : H.meta) ?? {} }
|
|
8203
|
-
}), V && (V == null ? void 0 : V.code) !== (
|
|
8203
|
+
}), V && (V == null ? void 0 : V.code) !== (s == null ? void 0 : s.code)) {
|
|
8204
8204
|
if (V.fixed && (await e.push(V.path), z(), F.nav.setActiveItem(V.path)), !V.fixed) {
|
|
8205
8205
|
const G = (h = uA().subAppList) == null ? void 0 : h.find((C) => C.code === V.code), Y = ZA().preTab[V.code], S = { ...(Y == null ? void 0 : Y.query) ?? {} };
|
|
8206
8206
|
await n({ microApp: G, menuCode: (Y == null ? void 0 : Y.code) ?? "", route: { query: S } });
|
|
8207
8207
|
}
|
|
8208
8208
|
return;
|
|
8209
8209
|
}
|
|
8210
|
-
const N = V ||
|
|
8211
|
-
if (!l &&
|
|
8210
|
+
const N = V || s;
|
|
8211
|
+
if (!l && i) {
|
|
8212
8212
|
await e.push({
|
|
8213
|
-
path:
|
|
8213
|
+
path: i,
|
|
8214
8214
|
query: {
|
|
8215
8215
|
...H.query,
|
|
8216
8216
|
app: N.code
|
|
@@ -8218,7 +8218,7 @@ const z6 = (e) => {
|
|
|
8218
8218
|
});
|
|
8219
8219
|
return;
|
|
8220
8220
|
}
|
|
8221
|
-
if (
|
|
8221
|
+
if (c && q) {
|
|
8222
8222
|
(_ = uA().subAppList) == null || _.forEach((Y) => {
|
|
8223
8223
|
const S = { ...Y, value: Y.code, label: Y.name };
|
|
8224
8224
|
F.nav.appendItem(S);
|
|
@@ -8236,7 +8236,7 @@ const z6 = (e) => {
|
|
|
8236
8236
|
}
|
|
8237
8237
|
A({ currentMenu: l, microPath: j, route: H });
|
|
8238
8238
|
}, u = async (X) => {
|
|
8239
|
-
var
|
|
8239
|
+
var s;
|
|
8240
8240
|
if (xA.innerSet = !0, X.fixed) {
|
|
8241
8241
|
await e.push(X.path), F.menu.setItems([]), F.tab.setItems([]), F.nav.setActiveItem(X.path), MA([
|
|
8242
8242
|
{ key: "currentSubAppCode", value: "" },
|
|
@@ -8248,8 +8248,8 @@ const z6 = (e) => {
|
|
|
8248
8248
|
return;
|
|
8249
8249
|
}
|
|
8250
8250
|
if (!X.fixed) {
|
|
8251
|
-
const a = (
|
|
8252
|
-
await n({ microApp: a, menuCode:
|
|
8251
|
+
const a = (s = uA().subAppList) == null ? void 0 : s.find((c) => c.code === X.code), i = ZA().preTab[X.code], b = (i == null ? void 0 : i.code) ?? "", H = { ...(i == null ? void 0 : i.query) ?? {} };
|
|
8252
|
+
await n({ microApp: a, menuCode: b, route: { query: H } });
|
|
8253
8253
|
}
|
|
8254
8254
|
};
|
|
8255
8255
|
return {
|
|
@@ -8258,27 +8258,27 @@ const z6 = (e) => {
|
|
|
8258
8258
|
changeApp: u,
|
|
8259
8259
|
deleteApp: async (X) => {
|
|
8260
8260
|
var H;
|
|
8261
|
-
const
|
|
8262
|
-
if (!((H =
|
|
8263
|
-
const a =
|
|
8261
|
+
const s = uA();
|
|
8262
|
+
if (!((H = s.subAppList) != null && H.length)) return;
|
|
8263
|
+
const a = s.subAppList.findIndex((c) => c.code === X.code);
|
|
8264
8264
|
if (a === -1) return;
|
|
8265
|
-
const
|
|
8266
|
-
if (
|
|
8267
|
-
const
|
|
8268
|
-
|
|
8265
|
+
const i = ZA().tabMap[X.code] ?? [];
|
|
8266
|
+
if (i.length) {
|
|
8267
|
+
const c = i.filter((q) => !q.path.startsWith(b9)).map((q) => q.path);
|
|
8268
|
+
c && c.length && f(c), i.forEach((q) => F.iframeView.triggerEventListener("onUnloadPage", q.path));
|
|
8269
8269
|
}
|
|
8270
|
-
let
|
|
8271
|
-
if (
|
|
8270
|
+
let b = null;
|
|
8271
|
+
if (s.currentSubAppCode === X.code && (a + 1 !== s.subAppList.length ? s.subAppList[a + 1] && (b = s.subAppList[a + 1]) : s.subAppList[a - 1] && (b = s.subAppList[a - 1])), s.subAppList.splice(a, 1), MA([{ key: "subAppList", value: s.subAppList }]), IA([
|
|
8272
8272
|
{ key: `preTab:${X.code}`, value: {} },
|
|
8273
8273
|
{ key: `tabMap:${X.code}`, value: [] }
|
|
8274
|
-
]),
|
|
8275
|
-
const
|
|
8276
|
-
await u(
|
|
8274
|
+
]), b) {
|
|
8275
|
+
const c = { ...b, value: b.code, label: b.name };
|
|
8276
|
+
await u(c), F.nav.setActiveItem(b.code);
|
|
8277
8277
|
}
|
|
8278
|
-
if (!
|
|
8278
|
+
if (!s.subAppList.length) {
|
|
8279
8279
|
if (F.menu.setItems([]), F.tab.setItems([]), location.pathname !== RA && location.pathname !== hA) {
|
|
8280
|
-
const
|
|
8281
|
-
|
|
8280
|
+
const c = Av.find((q) => q.value === RA);
|
|
8281
|
+
c && u(c);
|
|
8282
8282
|
}
|
|
8283
8283
|
Be(), Pv();
|
|
8284
8284
|
}
|
|
@@ -8288,7 +8288,7 @@ const z6 = (e) => {
|
|
|
8288
8288
|
const e = y9();
|
|
8289
8289
|
let { mainAppName: A = "", microAppName: f = "", microApps: v = [] } = u9();
|
|
8290
8290
|
return !A && f && (v = [{ name: f }]), v.map((P) => P.name), { entryMenu: async (P) => {
|
|
8291
|
-
var
|
|
8291
|
+
var i;
|
|
8292
8292
|
const { currentMenu: t, route: z = {}, microPath: d = "" } = P;
|
|
8293
8293
|
if (!t) return;
|
|
8294
8294
|
let n = { ...z.query, app: t.applicationCode, menu: t.code };
|
|
@@ -8297,13 +8297,13 @@ const z6 = (e) => {
|
|
|
8297
8297
|
if (u === 1)
|
|
8298
8298
|
if (x === 1)
|
|
8299
8299
|
if (t.routeUrl.startsWith(b9)) {
|
|
8300
|
-
const
|
|
8300
|
+
const b = gn(t.routeUrl, "iframeSrc");
|
|
8301
8301
|
if (X = `${b9}-${t.code}`, !e.options.routes.find((H) => H.path === X)) {
|
|
8302
8302
|
const H = {
|
|
8303
8303
|
path: X,
|
|
8304
8304
|
name: X,
|
|
8305
8305
|
component: jA(ye, {
|
|
8306
|
-
src:
|
|
8306
|
+
src: b
|
|
8307
8307
|
}),
|
|
8308
8308
|
meta: { isIframe: !0, keepAlive: !0 }
|
|
8309
8309
|
};
|
|
@@ -8312,9 +8312,9 @@ const z6 = (e) => {
|
|
|
8312
8312
|
await e.push({ path: X, query: n });
|
|
8313
8313
|
} else t.applicationPath && (X = d || t.routeUrl, X = `/${t.applicationPath}${X}`.replace(/\/\//g, "/"), await e.push({ path: X, query: n }));
|
|
8314
8314
|
else {
|
|
8315
|
-
const
|
|
8316
|
-
if (X = `${b9}-${t.code}`, !e.options.routes.find((
|
|
8317
|
-
const
|
|
8315
|
+
const b = await Hv(t.routeUrl, (t == null ? void 0 : t.param) ?? []), H = Ne(me(le(b)));
|
|
8316
|
+
if (X = `${b9}-${t.code}`, !e.options.routes.find((c) => c.path === X)) {
|
|
8317
|
+
const c = {
|
|
8318
8318
|
path: X,
|
|
8319
8319
|
name: X,
|
|
8320
8320
|
component: jA(ye, {
|
|
@@ -8322,13 +8322,13 @@ const z6 = (e) => {
|
|
|
8322
8322
|
}),
|
|
8323
8323
|
meta: { isIframe: !0, keepAlive: !0 }
|
|
8324
8324
|
};
|
|
8325
|
-
e.addRoute(
|
|
8325
|
+
e.addRoute(c), e.options.routes.push(c);
|
|
8326
8326
|
}
|
|
8327
8327
|
await e.push({ path: X, query: n });
|
|
8328
8328
|
}
|
|
8329
8329
|
if (u === 2) {
|
|
8330
|
-
let
|
|
8331
|
-
|
|
8330
|
+
let b = x === 1 ? `/${t.applicationPath}${t.routeUrl}`.replace(/\/\//g, "/") : t.routeUrl;
|
|
8331
|
+
b = Ne(me(le(b))), xA.innerSet ? (X = fv, await e.push({ path: X, query: n }), b && window.open(b, "_blank")) : x === 1 && (X = b, n = { ...n, showLayout: !1 }, await e.push({
|
|
8332
8332
|
path: X,
|
|
8333
8333
|
query: n
|
|
8334
8334
|
}));
|
|
@@ -8339,10 +8339,10 @@ const z6 = (e) => {
|
|
|
8339
8339
|
menuCode: t.code,
|
|
8340
8340
|
displayMenuName: t.name
|
|
8341
8341
|
});
|
|
8342
|
-
const
|
|
8342
|
+
const s = ((i = z.meta) == null ? void 0 : i.showLayout) ?? !0;
|
|
8343
8343
|
let a = (n == null ? void 0 : n.showLayout) ?? !0;
|
|
8344
|
-
if (a === "false" && (a = !1),
|
|
8345
|
-
const
|
|
8344
|
+
if (a === "false" && (a = !1), s && a) {
|
|
8345
|
+
const b = {
|
|
8346
8346
|
currentApplication: uA().currentSubApp.routeUrl,
|
|
8347
8347
|
applicationPath: t.applicationPath,
|
|
8348
8348
|
applicationCode: t.applicationCode,
|
|
@@ -8353,9 +8353,9 @@ const z6 = (e) => {
|
|
|
8353
8353
|
query: n
|
|
8354
8354
|
};
|
|
8355
8355
|
F.tab.appendItem({
|
|
8356
|
-
...
|
|
8357
|
-
value:
|
|
8358
|
-
label:
|
|
8356
|
+
...b,
|
|
8357
|
+
value: b.code,
|
|
8358
|
+
label: b.name
|
|
8359
8359
|
}), F.tab.setActiveItem(t.code), F.menu.setActiveItem(t.id), tv(t.code), IA([
|
|
8360
8360
|
{
|
|
8361
8361
|
key: "currentCode",
|
|
@@ -8363,15 +8363,15 @@ const z6 = (e) => {
|
|
|
8363
8363
|
},
|
|
8364
8364
|
{
|
|
8365
8365
|
key: "currentTab",
|
|
8366
|
-
value:
|
|
8366
|
+
value: b
|
|
8367
8367
|
},
|
|
8368
8368
|
{
|
|
8369
8369
|
key: `preTab:${t.applicationCode}`,
|
|
8370
|
-
value:
|
|
8370
|
+
value: b
|
|
8371
8371
|
},
|
|
8372
8372
|
{
|
|
8373
8373
|
key: `tabMap:${t.applicationCode}`,
|
|
8374
|
-
value:
|
|
8374
|
+
value: b
|
|
8375
8375
|
}
|
|
8376
8376
|
]);
|
|
8377
8377
|
}
|
|
@@ -8382,8 +8382,8 @@ const z6 = (e) => {
|
|
|
8382
8382
|
!P && t && (z = [{ name: t }]);
|
|
8383
8383
|
const d = async (x) => {
|
|
8384
8384
|
var p, m, R, V;
|
|
8385
|
-
let X = { ...x }, { showLayout:
|
|
8386
|
-
|
|
8385
|
+
let X = { ...x }, { showLayout: s = !0 } = X.query;
|
|
8386
|
+
s === "false" && (s = !1);
|
|
8387
8387
|
const a = async () => {
|
|
8388
8388
|
var O, N;
|
|
8389
8389
|
let l = uA().appcategorys ?? [];
|
|
@@ -8397,9 +8397,9 @@ const z6 = (e) => {
|
|
|
8397
8397
|
}
|
|
8398
8398
|
}
|
|
8399
8399
|
return l.map((Z) => Z.apps).flat() ?? [];
|
|
8400
|
-
},
|
|
8401
|
-
if (
|
|
8402
|
-
const l =
|
|
8400
|
+
}, i = z.filter((l) => l.public);
|
|
8401
|
+
if (i.length) {
|
|
8402
|
+
const l = i.find(
|
|
8403
8403
|
(j) => X.path.startsWith("/" + j.name) || X.path.startsWith(j.name)
|
|
8404
8404
|
);
|
|
8405
8405
|
if (l) {
|
|
@@ -8412,10 +8412,10 @@ const z6 = (e) => {
|
|
|
8412
8412
|
return;
|
|
8413
8413
|
}
|
|
8414
8414
|
}
|
|
8415
|
-
const
|
|
8415
|
+
const b = await a(), H = b.map((l) => l.code), c = ((p = X.query) == null ? void 0 : p.app) ?? "", q = ((m = uA()) == null ? void 0 : m.subAppList) ?? [];
|
|
8416
8416
|
if (q.length) {
|
|
8417
|
-
const l = q.filter((O) => O.code !==
|
|
8418
|
-
(O) =>
|
|
8417
|
+
const l = q.filter((O) => O.code !== c && !H.includes(O.code)), j = q.filter(
|
|
8418
|
+
(O) => c === O.code || H.includes(O.code)
|
|
8419
8419
|
);
|
|
8420
8420
|
MA([{ key: "subAppList", value: j }]), l && l.length && l.forEach((O) => {
|
|
8421
8421
|
IA([
|
|
@@ -8425,8 +8425,8 @@ const z6 = (e) => {
|
|
|
8425
8425
|
});
|
|
8426
8426
|
}
|
|
8427
8427
|
if (X.query.app) {
|
|
8428
|
-
let l =
|
|
8429
|
-
if (!l &&
|
|
8428
|
+
let l = b.find((j) => j.code === X.query.app);
|
|
8429
|
+
if (!l && s) {
|
|
8430
8430
|
const { currentApp: j } = oe(X.query.app);
|
|
8431
8431
|
if (j) {
|
|
8432
8432
|
l = j;
|
|
@@ -8441,8 +8441,8 @@ const z6 = (e) => {
|
|
|
8441
8441
|
(j) => X.path.startsWith("/" + j.name) || X.path.startsWith(j.name)
|
|
8442
8442
|
);
|
|
8443
8443
|
if (l) {
|
|
8444
|
-
let j =
|
|
8445
|
-
j || (j =
|
|
8444
|
+
let j = b.find((O) => O.routeUrl === l.name);
|
|
8445
|
+
j || (j = b.find(
|
|
8446
8446
|
(O) => (O == null ? void 0 : O.routePath) && O.routePath.length && O.routePath.includes(l.name)
|
|
8447
8447
|
)), v({
|
|
8448
8448
|
microApp: j,
|
|
@@ -8453,7 +8453,7 @@ const z6 = (e) => {
|
|
|
8453
8453
|
return;
|
|
8454
8454
|
}
|
|
8455
8455
|
}
|
|
8456
|
-
if (
|
|
8456
|
+
if (s) {
|
|
8457
8457
|
(V = (R = uA()) == null ? void 0 : R.subAppList) == null || V.forEach((j) => {
|
|
8458
8458
|
const O = { ...j, value: j.code, label: j.name };
|
|
8459
8459
|
F.nav.appendItem(O);
|
|
@@ -8473,7 +8473,7 @@ const z6 = (e) => {
|
|
|
8473
8473
|
() => r.currentRoute.value,
|
|
8474
8474
|
async (x) => {
|
|
8475
8475
|
if (!(x.path === n && Oe(x.query, u))) {
|
|
8476
|
-
if (n = o9(x.path), u = o9(x.query), await f(), xA.innerSet) {
|
|
8476
|
+
if (n = o9(x.path), u = o9(x.query), u && u.source && localStorage.setItem("thirdLogouSource", u.source), await f(), xA.innerSet) {
|
|
8477
8477
|
xA.innerSet = !1;
|
|
8478
8478
|
return;
|
|
8479
8479
|
}
|
|
@@ -8490,40 +8490,48 @@ const z6 = (e) => {
|
|
|
8490
8490
|
xA.routeKeepAliveVisible = !0, xA.excludeRoutes = [];
|
|
8491
8491
|
}, 100);
|
|
8492
8492
|
} }), U6 = () => {
|
|
8493
|
-
const e = Zn(), A = o6(), f = u9(), v =
|
|
8494
|
-
|
|
8493
|
+
const e = Zn(), A = o6(), f = u9(), v = () => {
|
|
8494
|
+
let d = !1;
|
|
8495
|
+
return localStorage.getItem("thirdLogouSource") === "zhongshen" && (d = !0), d;
|
|
8496
|
+
}, r = (d) => {
|
|
8497
|
+
if (localStorage.getItem("thirdLogouSource") === "zhongshen") {
|
|
8498
|
+
const x = `https://iam.shenyejituan.com:6443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(d)}&entityId=AIoT&redirectToLogin=true`;
|
|
8499
|
+
localStorage.removeItem("thirdLogouSource"), location.href = x;
|
|
8500
|
+
}
|
|
8501
|
+
}, P = async () => {
|
|
8502
|
+
const d = {
|
|
8495
8503
|
logout: "/api/justauth/oauth-server/v1/visitor/logout"
|
|
8496
|
-
},
|
|
8504
|
+
}, n = location.origin + hA, u = {
|
|
8497
8505
|
response_type: "code",
|
|
8498
8506
|
scope: "sever",
|
|
8499
8507
|
client_id: "sys",
|
|
8500
8508
|
state: +/* @__PURE__ */ new Date(),
|
|
8501
|
-
redirect_uri:
|
|
8509
|
+
redirect_uri: n,
|
|
8502
8510
|
logout_token: t9(),
|
|
8503
8511
|
// 写用户访问日志逻辑配合
|
|
8504
8512
|
logout: "true"
|
|
8505
8513
|
};
|
|
8506
|
-
f.ssoLocale && (
|
|
8507
|
-
const
|
|
8508
|
-
window.__isAutoCloseApp = !1, location.replace(
|
|
8509
|
-
}, { entryApp:
|
|
8510
|
-
const
|
|
8511
|
-
if (
|
|
8512
|
-
const { title: i, content:
|
|
8513
|
-
await G9({ title: i, content:
|
|
8514
|
+
f.ssoLocale && (u.locale = "locale");
|
|
8515
|
+
const x = Object.keys(u).map((s) => `${s}=${u[s]}`).join("&"), X = `${f.baseURL}${d.logout}?${x}`;
|
|
8516
|
+
window.__isAutoCloseApp = !1, v() ? r(X) : location.replace(X), sessionStorage.clear(), localStorage.removeItem("idelTime"), Fn();
|
|
8517
|
+
}, { entryApp: t } = m9(), z = async () => {
|
|
8518
|
+
const d = "personCenter", u = (uA().appcategorys || []).map((i) => i.apps).flat(), { originalMenus: x = [] } = await Je(d), s = QA(x).filter((i) => i.isMenu && i.routeUrl).find((i) => i.routeUrl === "/userInfo");
|
|
8519
|
+
if (s != null && s.disable || s != null && s.expired) {
|
|
8520
|
+
const { title: i, content: b, desc: H } = await Ke(s);
|
|
8521
|
+
await G9({ title: i, content: b, desc: H });
|
|
8514
8522
|
return;
|
|
8515
8523
|
}
|
|
8516
|
-
const
|
|
8517
|
-
|
|
8524
|
+
const a = u.find((i) => i.code === d);
|
|
8525
|
+
a && t({ microApp: a, menuPath: `/${a.routeUrl}/userInfo` });
|
|
8518
8526
|
};
|
|
8519
|
-
return F.nav.addEventListener("onUserCommandChange", (
|
|
8520
|
-
var
|
|
8527
|
+
return F.nav.addEventListener("onUserCommandChange", (d) => {
|
|
8528
|
+
var u, x;
|
|
8521
8529
|
({
|
|
8522
|
-
0: (
|
|
8523
|
-
1:
|
|
8524
|
-
2: (
|
|
8525
|
-
3:
|
|
8526
|
-
})[
|
|
8530
|
+
0: (u = A.value) == null ? void 0 : u.openDialog,
|
|
8531
|
+
1: z,
|
|
8532
|
+
2: (x = e.value) == null ? void 0 : x.openDialog,
|
|
8533
|
+
3: P
|
|
8534
|
+
})[d]();
|
|
8527
8535
|
}), {
|
|
8528
8536
|
$changePwd: e,
|
|
8529
8537
|
$personSetDialog: A
|
|
@@ -8546,20 +8554,20 @@ const z6 = (e) => {
|
|
|
8546
8554
|
const [d, n] = await J6().run({ tenant: z });
|
|
8547
8555
|
if (d) return;
|
|
8548
8556
|
A.value = !1;
|
|
8549
|
-
const { access_token: u = "", refresh_token: x = "", expires_in: X = 0, sub:
|
|
8557
|
+
const { access_token: u = "", refresh_token: x = "", expires_in: X = 0, sub: s = "", name: a = "", flag: i = "", tenant: b = "" } = n, H = {
|
|
8550
8558
|
accessToken: u,
|
|
8551
8559
|
accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(X) * 1e3,
|
|
8552
8560
|
refreshToken: x,
|
|
8553
8561
|
info: n
|
|
8554
8562
|
};
|
|
8555
8563
|
Un().save(H), U3(H);
|
|
8556
|
-
const
|
|
8557
|
-
id:
|
|
8564
|
+
const c = {
|
|
8565
|
+
id: s,
|
|
8558
8566
|
name: a,
|
|
8559
|
-
flag:
|
|
8560
|
-
tenantId:
|
|
8567
|
+
flag: i,
|
|
8568
|
+
tenantId: b
|
|
8561
8569
|
};
|
|
8562
|
-
sessionStorage.setItem("hotentUserInfo", JSON.stringify(
|
|
8570
|
+
sessionStorage.setItem("hotentUserInfo", JSON.stringify(c)), hn(u);
|
|
8563
8571
|
let q = "";
|
|
8564
8572
|
if (e != null && e.ssoLocale)
|
|
8565
8573
|
q = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${z}`;
|
|
@@ -8595,8 +8603,8 @@ const z6 = (e) => {
|
|
|
8595
8603
|
return F.nav.addEventListener("searchToPage", async (v) => {
|
|
8596
8604
|
const { item: r, keyword: P, cb: t } = v;
|
|
8597
8605
|
if (r != null && r.disable || r != null && r.expired) {
|
|
8598
|
-
const { title: x, content: X, desc:
|
|
8599
|
-
await G9({ title: x, content: X, desc:
|
|
8606
|
+
const { title: x, content: X, desc: s } = await Ke(r);
|
|
8607
|
+
await G9({ title: x, content: X, desc: s });
|
|
8600
8608
|
return;
|
|
8601
8609
|
}
|
|
8602
8610
|
await C6().run({ searchVal: P, clickData: r });
|
|
@@ -8976,9 +8984,9 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
8976
8984
|
});
|
|
8977
8985
|
}, X = () => {
|
|
8978
8986
|
r.value = !r.value, P.value && (P.value.muted = r.value);
|
|
8979
|
-
},
|
|
8987
|
+
}, s = () => {
|
|
8980
8988
|
t.value = !t.value;
|
|
8981
|
-
}, a = o(""),
|
|
8989
|
+
}, a = o(""), i = () => {
|
|
8982
8990
|
const q = document.createElement("canvas");
|
|
8983
8991
|
if (d.value) {
|
|
8984
8992
|
q.width = d.value.clientWidth, q.height = d.value.clientHeight;
|
|
@@ -8990,11 +8998,11 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
8990
8998
|
V.download = R, V.style.display = "none", V.href = m, document.body.appendChild(V), document.body.appendChild(q), V.click(), URL.revokeObjectURL(V.href), document.body.removeChild(V), document.body.removeChild(q);
|
|
8991
8999
|
}
|
|
8992
9000
|
}
|
|
8993
|
-
},
|
|
9001
|
+
}, b = (q) => {
|
|
8994
9002
|
v("directionControl", q);
|
|
8995
9003
|
}, H = (q) => {
|
|
8996
9004
|
v("zoomControl", q);
|
|
8997
|
-
},
|
|
9005
|
+
}, c = (q) => f.authType.includes(q);
|
|
8998
9006
|
return OA(
|
|
8999
9007
|
() => d.value,
|
|
9000
9008
|
() => {
|
|
@@ -9111,13 +9119,13 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9111
9119
|
B(D(N9), {
|
|
9112
9120
|
class: "icon icon-screenshot",
|
|
9113
9121
|
icon: "screenshot",
|
|
9114
|
-
onClick: DA(
|
|
9122
|
+
onClick: DA(i, ["stop"])
|
|
9115
9123
|
})
|
|
9116
9124
|
]),
|
|
9117
9125
|
_: 1
|
|
9118
9126
|
/* STABLE */
|
|
9119
9127
|
}, 8, ["content"]),
|
|
9120
|
-
|
|
9128
|
+
c("control") ? (fA(), XA(D(WA), {
|
|
9121
9129
|
key: 0,
|
|
9122
9130
|
content: D(M)("聚焦-")
|
|
9123
9131
|
}, {
|
|
@@ -9132,7 +9140,7 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9132
9140
|
_: 1
|
|
9133
9141
|
/* STABLE */
|
|
9134
9142
|
}, 8, ["content"])) : nA("v-if", !0),
|
|
9135
|
-
|
|
9143
|
+
c("control") ? (fA(), XA(D(WA), {
|
|
9136
9144
|
key: 1,
|
|
9137
9145
|
content: D(M)("聚焦+")
|
|
9138
9146
|
}, {
|
|
@@ -9147,7 +9155,7 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9147
9155
|
_: 1
|
|
9148
9156
|
/* STABLE */
|
|
9149
9157
|
}, 8, ["content"])) : nA("v-if", !0),
|
|
9150
|
-
|
|
9158
|
+
c("control") ? (fA(), XA(D(WA), {
|
|
9151
9159
|
key: 2,
|
|
9152
9160
|
content: D(M)("方向控制")
|
|
9153
9161
|
}, {
|
|
@@ -9156,7 +9164,7 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9156
9164
|
key: 0,
|
|
9157
9165
|
class: "icon icon-direction-control",
|
|
9158
9166
|
icon: "direction-control",
|
|
9159
|
-
onClick: DA(
|
|
9167
|
+
onClick: DA(s, ["stop"])
|
|
9160
9168
|
})) : nA("v-if", !0)
|
|
9161
9169
|
]),
|
|
9162
9170
|
_: 1
|
|
@@ -9170,7 +9178,7 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9170
9178
|
]),
|
|
9171
9179
|
t.value ? (fA(), XA(p1, {
|
|
9172
9180
|
key: 1,
|
|
9173
|
-
onChange:
|
|
9181
|
+
onChange: b
|
|
9174
9182
|
})) : nA("v-if", !0)
|
|
9175
9183
|
]),
|
|
9176
9184
|
_: 1
|
|
@@ -9369,8 +9377,8 @@ const y1 = /* @__PURE__ */ qA({
|
|
|
9369
9377
|
let x = {
|
|
9370
9378
|
projectId: P,
|
|
9371
9379
|
deviceIds: n == null ? void 0 : n.deviceId
|
|
9372
|
-
},
|
|
9373
|
-
let
|
|
9380
|
+
}, s = (await v(x)).map((a) => {
|
|
9381
|
+
let i = a.lookupOrOperation == 1;
|
|
9374
9382
|
return {
|
|
9375
9383
|
id: a.id,
|
|
9376
9384
|
productId: a.productId,
|
|
@@ -9378,10 +9386,10 @@ const y1 = /* @__PURE__ */ qA({
|
|
|
9378
9386
|
deviceName: a.deviceName,
|
|
9379
9387
|
authType: a.controlAuthorization == 1 ? 2 : 1,
|
|
9380
9388
|
// 1 查看权限 2 查看+操作权限
|
|
9381
|
-
show: !!
|
|
9389
|
+
show: !!i
|
|
9382
9390
|
};
|
|
9383
9391
|
});
|
|
9384
|
-
A.value =
|
|
9392
|
+
A.value = s.filter((a) => !!a.show), (u = A.value) != null && u.length && W1({ gridNum: e.value, deviceList: A.value });
|
|
9385
9393
|
}
|
|
9386
9394
|
}
|
|
9387
9395
|
}));
|
|
@@ -11181,20 +11189,20 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11181
11189
|
let v = null;
|
|
11182
11190
|
return _A(async () => {
|
|
11183
11191
|
await Df();
|
|
11184
|
-
const r = (
|
|
11192
|
+
const r = (i) => {
|
|
11185
11193
|
try {
|
|
11186
|
-
return JSON.parse(
|
|
11194
|
+
return JSON.parse(i);
|
|
11187
11195
|
} catch {
|
|
11188
11196
|
return !1;
|
|
11189
11197
|
}
|
|
11190
|
-
}, P = async (
|
|
11191
|
-
var
|
|
11192
|
-
const
|
|
11193
|
-
if (Array.isArray(
|
|
11194
|
-
const V =
|
|
11195
|
-
if (
|
|
11196
|
-
if (
|
|
11197
|
-
const j =
|
|
11198
|
+
}, P = async (i) => {
|
|
11199
|
+
var c, q, p, m, R;
|
|
11200
|
+
const b = uA(), H = ((c = b.appcategorys) == null ? void 0 : c.map((V) => V.apps).flat()) || [];
|
|
11201
|
+
if (Array.isArray(i)) {
|
|
11202
|
+
const V = i.filter((l) => l.code).map((l) => l.code);
|
|
11203
|
+
if (i.length) {
|
|
11204
|
+
if (b.currentSubAppCode) {
|
|
11205
|
+
const j = b.currentSubApp.menus ?? [], O = QA(j).find((N) => V.includes(N.code));
|
|
11198
11206
|
if (O) {
|
|
11199
11207
|
f({ currentMenu: O });
|
|
11200
11208
|
return;
|
|
@@ -11204,8 +11212,8 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11204
11212
|
l && A({ microApp: l });
|
|
11205
11213
|
}
|
|
11206
11214
|
}
|
|
11207
|
-
if (typeof
|
|
11208
|
-
let V =
|
|
11215
|
+
if (typeof i == "string") {
|
|
11216
|
+
let V = i;
|
|
11209
11217
|
const l = "_showEchartTooltip", j = V.endsWith(l);
|
|
11210
11218
|
j && (V = V.slice(0, V.indexOf(l)));
|
|
11211
11219
|
const O = "_zdkbInfo", N = V.endsWith(O);
|
|
@@ -11256,30 +11264,30 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11256
11264
|
}
|
|
11257
11265
|
};
|
|
11258
11266
|
let t = o(!0);
|
|
11259
|
-
const z = (
|
|
11267
|
+
const z = (i) => {
|
|
11260
11268
|
setTimeout(async () => {
|
|
11261
|
-
var
|
|
11269
|
+
var b, H;
|
|
11262
11270
|
if (t.value) {
|
|
11263
|
-
const [
|
|
11264
|
-
|
|
11265
|
-
uniqueId:
|
|
11271
|
+
const [c, q] = await l8().run({}, { params: { aliasName: i.actionValue } });
|
|
11272
|
+
c ? await xe().run({
|
|
11273
|
+
uniqueId: i.uniqueId,
|
|
11266
11274
|
status: 0,
|
|
11267
|
-
errorMsg: "未找到" +
|
|
11268
|
-
}) : q.length ? (q.length > 1 ? P(q) : P((
|
|
11269
|
-
uniqueId:
|
|
11275
|
+
errorMsg: "未找到" + i.actionValue
|
|
11276
|
+
}) : q.length ? (q.length > 1 ? P(q) : P((b = q[0]) == null ? void 0 : b.code), await xe().run({
|
|
11277
|
+
uniqueId: i.uniqueId,
|
|
11270
11278
|
status: 1,
|
|
11271
11279
|
targetName: (H = q[0]) == null ? void 0 : H.name
|
|
11272
11280
|
})) : await xe().run({
|
|
11273
|
-
uniqueId:
|
|
11281
|
+
uniqueId: i.uniqueId,
|
|
11274
11282
|
status: 0,
|
|
11275
|
-
errorMsg: "未找到" +
|
|
11283
|
+
errorMsg: "未找到" + i.actionValue
|
|
11276
11284
|
});
|
|
11277
11285
|
}
|
|
11278
11286
|
t.value = !0;
|
|
11279
11287
|
}, 2e3);
|
|
11280
|
-
}, d = (
|
|
11281
|
-
const
|
|
11282
|
-
p8().on(`${
|
|
11288
|
+
}, d = (i) => {
|
|
11289
|
+
const b = t9(), H = JSON.parse(atob(b.split(".")[1])).sub;
|
|
11290
|
+
p8().on(`${i}:${H}`, async function(q) {
|
|
11283
11291
|
let p = r(q);
|
|
11284
11292
|
if (p)
|
|
11285
11293
|
p.uniqueId && p.actionKey == "switch-menu" && z(p);
|
|
@@ -11291,16 +11299,16 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11291
11299
|
}, n = o(""), [u, x] = await g3().run();
|
|
11292
11300
|
n.value = x, d(n.value);
|
|
11293
11301
|
const X = async () => {
|
|
11294
|
-
const [
|
|
11295
|
-
|
|
11302
|
+
const [i, b] = await g3().run();
|
|
11303
|
+
b !== n.value && (n.value = b, d(n.value));
|
|
11296
11304
|
};
|
|
11297
11305
|
v = setInterval(() => {
|
|
11298
11306
|
X();
|
|
11299
11307
|
}, 72e5);
|
|
11300
|
-
const
|
|
11301
|
-
|
|
11308
|
+
const s = o("online"), a = (i) => {
|
|
11309
|
+
i === "online" && s.value === "offline" && setTimeout(() => {
|
|
11302
11310
|
X();
|
|
11303
|
-
}, 5e3),
|
|
11311
|
+
}, 5e3), s.value = (window.navigator.onLine ? "on" : "off") + "line";
|
|
11304
11312
|
};
|
|
11305
11313
|
window.addEventListener("online", () => a("online")), window.addEventListener("offline", () => a("offline"));
|
|
11306
11314
|
}), K9(() => {
|
|
@@ -11364,11 +11372,11 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11364
11372
|
// 事件等级id
|
|
11365
11373
|
timeLimit: ""
|
|
11366
11374
|
// 处置时限
|
|
11367
|
-
}), x = o(!1), X = o([]),
|
|
11375
|
+
}), x = o(!1), X = o([]), s = o([]), a = o([
|
|
11368
11376
|
{ id: 2, name: AA("时").value },
|
|
11369
11377
|
{ id: 1, name: AA("分").value },
|
|
11370
11378
|
{ id: 3, name: AA("不限").value }
|
|
11371
|
-
]),
|
|
11379
|
+
]), i = o([]), b = o(""), H = o(AA("告警对象位置").value), c = o(""), q = o([]), p = o("");
|
|
11372
11380
|
o("[]");
|
|
11373
11381
|
const m = o(!0), R = o(!0), V = async (J) => {
|
|
11374
11382
|
const I = { name: "1" };
|
|
@@ -11394,7 +11402,7 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11394
11402
|
), OA(
|
|
11395
11403
|
O,
|
|
11396
11404
|
(J) => {
|
|
11397
|
-
J ? (n.value.reportTheme = AA("告警对象").value, j.value = !0) : (
|
|
11405
|
+
J ? (n.value.reportTheme = AA("告警对象").value, j.value = !0) : (c.value = AA("请输入").value, n.value.reportTheme = "", j.value = !1);
|
|
11398
11406
|
},
|
|
11399
11407
|
{ immediate: !0 }
|
|
11400
11408
|
);
|
|
@@ -11404,15 +11412,15 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11404
11412
|
}, Q = (J) => {
|
|
11405
11413
|
u.value.reportTheme = "";
|
|
11406
11414
|
}, h = (J, I) => {
|
|
11407
|
-
I.length > 0 && (
|
|
11415
|
+
I.length > 0 && (b.value = I[0].path), n.value.reportPosition = J, p.value = "";
|
|
11408
11416
|
}, _ = (J) => {
|
|
11409
|
-
J && (u.value.reportPosition = "",
|
|
11417
|
+
J && (u.value.reportPosition = "", b.value = ""), J ? (n.value.reportPosition = null, b.value = "", H.value = AA("告警对象位置").value) : (n.value.reportPosition = null, b.value = "", H.value = AA("请选择").value);
|
|
11410
11418
|
}, G = (J) => {
|
|
11411
|
-
J && (u.value.reportTheme = ""), J ? (n.value.reportTheme = "",
|
|
11419
|
+
J && (u.value.reportTheme = ""), J ? (n.value.reportTheme = "", c.value = AA("告警对象").value) : (n.value.reportTheme = "", c.value = AA("请输入").value);
|
|
11412
11420
|
}, Y = () => {
|
|
11413
11421
|
u.value.processTypeId = "", u.value.reason = "", u.value.treatmentPlan = "", u.value.reportPosition = "", u.value.reportTheme = "", u.value.workOrderRules = "", u.value.eventTypeId = "", u.value.eventLevelId = "", u.value.timeLimit = "";
|
|
11414
11422
|
}, S = () => {
|
|
11415
|
-
n.value.processTypeId = "confirm", n.value.reason = "", n.value.treatmentPlan = "", n.value.remarks = "", n.value.reportPosition = "", n.value.reportTheme = "", n.value.workOrderRules = null, R.value = !0, O.value = !0, j.value = !0, n.value.reportTheme = AA("告警对象").value,
|
|
11423
|
+
n.value.processTypeId = "confirm", n.value.reason = "", n.value.treatmentPlan = "", n.value.remarks = "", n.value.reportPosition = "", n.value.reportTheme = "", n.value.workOrderRules = null, R.value = !0, O.value = !0, j.value = !0, n.value.reportTheme = AA("告警对象").value, b.value = "", H.value = AA("告警对象位置").value, c.value = AA("请输入").value, n.value.eventTypeId = "", n.value.eventLevelId = null, n.value.timeLimit = "", n.value.interval = 1, X.value = [], s.value = [];
|
|
11416
11424
|
}, C = (J) => {
|
|
11417
11425
|
J == "eventTypeId" && (n.value.eventLevelId = null, W()), J == "eventLevelId" && E(), J == "interval" && (u.value.timeLimit = "", n.value.interval == 3 ? (x.value = !0, n.value.timeLimit = "") : x.value = !1);
|
|
11418
11426
|
}, L = async () => {
|
|
@@ -11425,10 +11433,10 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11425
11433
|
}, [I, g] = await M8(J).run();
|
|
11426
11434
|
if (I) return {};
|
|
11427
11435
|
const LA = { 1: AA("一级").value, 2: AA("二级").value, 3: AA("三级").value, 4: AA("四级").value };
|
|
11428
|
-
|
|
11436
|
+
s.value = g.map((CA) => ({
|
|
11429
11437
|
id: `${CA}`,
|
|
11430
11438
|
name: LA[CA] ? LA[CA] : CA
|
|
11431
|
-
})), g.length && !n.value.eventLevelId && (n.value.eventLevelId =
|
|
11439
|
+
})), g.length && !n.value.eventLevelId && (n.value.eventLevelId = s.value[0].id, E());
|
|
11432
11440
|
}, E = async () => {
|
|
11433
11441
|
const J = {
|
|
11434
11442
|
eventTypeId: n.value.eventTypeId,
|
|
@@ -11450,9 +11458,9 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11450
11458
|
P.value = !1;
|
|
11451
11459
|
return;
|
|
11452
11460
|
}
|
|
11453
|
-
P.value = !1,
|
|
11454
|
-
for (let LA = 0; LA <
|
|
11455
|
-
|
|
11461
|
+
P.value = !1, i.value = g;
|
|
11462
|
+
for (let LA = 0; LA < i.value.length; LA++)
|
|
11463
|
+
i.value[LA].id === "createorder" && Z();
|
|
11456
11464
|
}, dA = () => {
|
|
11457
11465
|
let J = !0;
|
|
11458
11466
|
if (n.value.processTypeId == "dealwith")
|
|
@@ -11589,7 +11597,7 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11589
11597
|
type: "select",
|
|
11590
11598
|
modelValue: n.value.processTypeId,
|
|
11591
11599
|
"onUpdate:modelValue": I[0] || (I[0] = (g) => n.value.processTypeId = g),
|
|
11592
|
-
options:
|
|
11600
|
+
options: i.value,
|
|
11593
11601
|
col: 1,
|
|
11594
11602
|
optionsLabelKey: "name",
|
|
11595
11603
|
optionsValueKey: "id",
|
|
@@ -11659,8 +11667,8 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11659
11667
|
props: { disabled: "_disabled", label: "name" },
|
|
11660
11668
|
modelValue: n.value.reportPosition,
|
|
11661
11669
|
"onUpdate:modelValue": I[8] || (I[8] = (g) => n.value.reportPosition = g),
|
|
11662
|
-
path:
|
|
11663
|
-
"onUpdate:path": I[9] || (I[9] = (g) =>
|
|
11670
|
+
path: b.value,
|
|
11671
|
+
"onUpdate:path": I[9] || (I[9] = (g) => b.value = g),
|
|
11664
11672
|
keyword: p.value,
|
|
11665
11673
|
"onUpdate:keyword": I[10] || (I[10] = (g) => p.value = g),
|
|
11666
11674
|
showFullPath: !0,
|
|
@@ -11721,7 +11729,7 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11721
11729
|
disabled: j.value,
|
|
11722
11730
|
modelValue: n.value.reportTheme,
|
|
11723
11731
|
"onUpdate:modelValue": I[14] || (I[14] = (g) => n.value.reportTheme = g),
|
|
11724
|
-
placeholder:
|
|
11732
|
+
placeholder: c.value,
|
|
11725
11733
|
onChange: Q
|
|
11726
11734
|
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
11727
11735
|
B(D(q7), {
|
|
@@ -11791,7 +11799,7 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11791
11799
|
"onUpdate:modelValue": I[22] || (I[22] = (g) => n.value.eventLevelId = g),
|
|
11792
11800
|
error: u.value.eventLevelId,
|
|
11793
11801
|
"onUpdate:error": I[23] || (I[23] = (g) => u.value.eventLevelId = g),
|
|
11794
|
-
options:
|
|
11802
|
+
options: s.value,
|
|
11795
11803
|
col: 1,
|
|
11796
11804
|
optionsLabelKey: "name",
|
|
11797
11805
|
optionsValueKey: "id",
|
|
@@ -12048,13 +12056,13 @@ const cX = () => {
|
|
|
12048
12056
|
j.push({ alarmId: l.recordId }), r.value = j, (O = f.value) == null || O.open();
|
|
12049
12057
|
}, { entryApp: x } = Xf.hooks.useEntryApp(), X = (l) => {
|
|
12050
12058
|
C3(l.equipmentCode, l.equipmentPanelCode);
|
|
12051
|
-
}, { handleAlarmVue:
|
|
12059
|
+
}, { handleAlarmVue: s } = h8(f, r), a = async () => {
|
|
12052
12060
|
var O;
|
|
12053
12061
|
const j = (((O = uA().appcategorys) == null ? void 0 : O.map((N) => N.apps).flat()) ?? []).find((N) => N.code === "alarm");
|
|
12054
12062
|
j && x({ microApp: j, menuPath: `/${j.routeUrl}/realTimeAlarm` });
|
|
12055
|
-
},
|
|
12056
|
-
if (
|
|
12057
|
-
H(
|
|
12063
|
+
}, i = [], b = (l) => {
|
|
12064
|
+
if (i.push(l), P.value.length < 2) {
|
|
12065
|
+
H(i[0]), i.shift();
|
|
12058
12066
|
return;
|
|
12059
12067
|
}
|
|
12060
12068
|
}, H = (l) => {
|
|
@@ -12078,14 +12086,14 @@ const cX = () => {
|
|
|
12078
12086
|
onClose: () => {
|
|
12079
12087
|
setTimeout(() => {
|
|
12080
12088
|
const O = P.value.findIndex((N) => N == j);
|
|
12081
|
-
if (O >= 0 && P.value.splice(O, 1), P.value.length < 2 &&
|
|
12082
|
-
H(
|
|
12089
|
+
if (O >= 0 && P.value.splice(O, 1), P.value.length < 2 && i.length) {
|
|
12090
|
+
H(i[0]), i.shift();
|
|
12083
12091
|
return;
|
|
12084
12092
|
}
|
|
12085
12093
|
}, 300);
|
|
12086
12094
|
}
|
|
12087
|
-
}), P.value.includes(j) || P.value.push(j),
|
|
12088
|
-
},
|
|
12095
|
+
}), P.value.includes(j) || P.value.push(j), c(l);
|
|
12096
|
+
}, c = (l) => {
|
|
12089
12097
|
if (l) {
|
|
12090
12098
|
if (!d.value) {
|
|
12091
12099
|
p();
|
|
@@ -12117,7 +12125,7 @@ const cX = () => {
|
|
|
12117
12125
|
alarmCount: A,
|
|
12118
12126
|
audioObj: n,
|
|
12119
12127
|
audioAlarmRef: v,
|
|
12120
|
-
handleAlarmVue:
|
|
12128
|
+
handleAlarmVue: s,
|
|
12121
12129
|
creatAlarmSocket: async () => {
|
|
12122
12130
|
R();
|
|
12123
12131
|
const [l, j] = await Z8().run({
|
|
@@ -12136,7 +12144,7 @@ const cX = () => {
|
|
|
12136
12144
|
N && e.value.send(N);
|
|
12137
12145
|
},
|
|
12138
12146
|
message: async (N) => {
|
|
12139
|
-
NA.sendMessageToMicroApp("enterpriseadmin/alarm", "alarm:message", { alarmMessage: N }), window.self === window.top && (N.messageType === "ADD" && (A.value = A.value + 1, N.coverId ||
|
|
12147
|
+
NA.sendMessageToMicroApp("enterpriseadmin/alarm", "alarm:message", { alarmMessage: N }), window.self === window.top && (N.messageType === "ADD" && (A.value = A.value + 1, N.coverId || b(N)), N.messageType === "DELETE" && (A.value = A.value - 1, n.value.playId == N.recordId && p()));
|
|
12140
12148
|
}
|
|
12141
12149
|
}));
|
|
12142
12150
|
}
|
|
@@ -12186,9 +12194,9 @@ const cX = () => {
|
|
|
12186
12194
|
},
|
|
12187
12195
|
{ immediate: !0 }
|
|
12188
12196
|
);
|
|
12189
|
-
const { initNextTick: d } = E6(), { loading: n, pageKey: u, innerPage: x, commandList: X, initNextTick:
|
|
12190
|
-
G6(x, d,
|
|
12191
|
-
const { $changePwd: a, $personSetDialog:
|
|
12197
|
+
const { initNextTick: d } = E6(), { loading: n, pageKey: u, innerPage: x, commandList: X, initNextTick: s } = M6(d);
|
|
12198
|
+
G6(x, d, s), Y6(), k6(), S6();
|
|
12199
|
+
const { $changePwd: a, $personSetDialog: i } = U6(), { $aiPanel: b, toApp: H } = f1(), { changeEnterprisesVisible: c, userId: q, tenantId: p, changeEnterprise: m } = Fv();
|
|
12192
12200
|
B6();
|
|
12193
12201
|
const { fontColor: R, backgroudColor: V, borderColor: l } = Q6();
|
|
12194
12202
|
return e1(), v1(X), n1(), P1(), w1(), R8(), (j, O) => (fA(), mA("div", sX, [
|
|
@@ -12221,8 +12229,8 @@ const cX = () => {
|
|
|
12221
12229
|
}, 8, ["platformInitNextTick"]),
|
|
12222
12230
|
nA(" 切换租户 "),
|
|
12223
12231
|
B(D(on), {
|
|
12224
|
-
visible: D(
|
|
12225
|
-
"onUpdate:visible": O[0] || (O[0] = (N) => FA(
|
|
12232
|
+
visible: D(c),
|
|
12233
|
+
"onUpdate:visible": O[0] || (O[0] = (N) => FA(c) ? c.value = N : null),
|
|
12226
12234
|
userId: D(q),
|
|
12227
12235
|
tenantId: D(p),
|
|
12228
12236
|
onConfirm: D(m)
|
|
@@ -12243,7 +12251,7 @@ const cX = () => {
|
|
|
12243
12251
|
D(T6),
|
|
12244
12252
|
{
|
|
12245
12253
|
ref_key: "$personSetDialog",
|
|
12246
|
-
ref:
|
|
12254
|
+
ref: i
|
|
12247
12255
|
},
|
|
12248
12256
|
null,
|
|
12249
12257
|
512
|
|
@@ -12254,7 +12262,7 @@ const cX = () => {
|
|
|
12254
12262
|
platformInitNextTick: D(d),
|
|
12255
12263
|
onToApp: D(H),
|
|
12256
12264
|
ref_key: "$aiPanel",
|
|
12257
|
-
ref:
|
|
12265
|
+
ref: b
|
|
12258
12266
|
}, null, 8, ["platformInitNextTick", "onToApp"]),
|
|
12259
12267
|
nA(" 告警 "),
|
|
12260
12268
|
B(D(iX))
|
|
@@ -12430,11 +12438,11 @@ o("@das-fed/web");
|
|
|
12430
12438
|
const xX = [
|
|
12431
12439
|
{
|
|
12432
12440
|
path: RA,
|
|
12433
|
-
component: () => import("./index-
|
|
12441
|
+
component: () => import("./index-DoWPII3c.js")
|
|
12434
12442
|
},
|
|
12435
12443
|
{
|
|
12436
12444
|
path: fv,
|
|
12437
|
-
component: () => import("./index-
|
|
12445
|
+
component: () => import("./index-BBN2mEFi.js")
|
|
12438
12446
|
}
|
|
12439
12447
|
], O2 = {
|
|
12440
12448
|
routes: xX,
|