@das-fed/web 7.0.1-beta.3 → 7.0.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{index-DzkpMxF2.js → index-CRfB8_jP.js} +427 -435
- package/index-CRfB8_jP.js.gz +0 -0
- package/{index-3hqumG-u.js → index-DbFV_BJP.js} +1 -1
- package/{packages/main-app-framework/index-DTjoUit3.js → index-Dou58bml.js} +1 -1
- package/index-Dou58bml.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/{index-CzUbZXox.js → packages/main-app-framework/index-BZhBzU-B.js} +1 -1
- package/packages/main-app-framework/index-BZhBzU-B.js.gz +0 -0
- package/packages/main-app-framework/{index-CUNCTIKf.js → index-CqfLT8h2.js} +1 -1
- package/packages/main-app-framework/{index-DNx_r6BJ.js → index-DZBJhlG3.js} +703 -711
- package/packages/main-app-framework/index-DZBJhlG3.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/index-CzUbZXox.js.gz +0 -0
- package/index-DzkpMxF2.js.gz +0 -0
- package/packages/main-app-framework/index-DNx_r6BJ.js.gz +0 -0
- package/packages/main-app-framework/index-DTjoUit3.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, i) => (u.addEventListener(x, X, i), () => u.removeEventListener(x, X, i)), d = OA(() => [nv(A), ev(r)], ([u, x]) => {
|
|
200
|
+
t(), u && P.push(...f.flatMap((X) => v.map((i) => z(u, X, i, 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 s of O7)
|
|
260
|
+
if (s[1] in f)
|
|
261
|
+
return t = s, !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 i() {
|
|
270
270
|
if (!z.value)
|
|
271
271
|
return;
|
|
272
272
|
await X();
|
|
273
|
-
const
|
|
274
|
-
|
|
273
|
+
const s = nv(r);
|
|
274
|
+
s && (await s[d](), P.value = !0);
|
|
275
275
|
}
|
|
276
276
|
async function a() {
|
|
277
|
-
P.value ? await X() : await
|
|
277
|
+
P.value ? await X() : await i();
|
|
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: i,
|
|
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 = (s, c) => {
|
|
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 = s, H.style.fontSize = c + "px", H.style.fontFamily = "sans-serif", H.style.visibility = "hidden", document.body.appendChild(H);
|
|
342
|
+
const b = H.getBoundingClientRect();
|
|
343
|
+
v.value = Math.ceil(b.width) + c / 2, r.value = Math.ceil(b.height), document.body.removeChild(H);
|
|
344
|
+
}, n = o(!1), u = () => new Promise((s) => {
|
|
345
|
+
const c = () => {
|
|
346
|
+
if (n) return s(!0);
|
|
347
|
+
setTimeout(() => c(), 50);
|
|
348
348
|
};
|
|
349
|
-
|
|
350
|
-
}), x = async (
|
|
349
|
+
c();
|
|
350
|
+
}), x = async (s) => {
|
|
351
351
|
var H;
|
|
352
352
|
await u();
|
|
353
|
-
const
|
|
354
|
-
t.value =
|
|
353
|
+
const c = !!((H = f.value) != null && H.pageSwith);
|
|
354
|
+
t.value = s && c ? [...P.value] : [];
|
|
355
355
|
}, X = async () => {
|
|
356
|
-
var
|
|
356
|
+
var b, 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 [s, c] = await yr().run();
|
|
359
|
+
if (s) return null;
|
|
360
|
+
if (f.value = c, !!((b = f.value) != null && b.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, c;
|
|
378
378
|
};
|
|
379
379
|
X();
|
|
380
|
-
const
|
|
380
|
+
const i = y9(), a = sf();
|
|
381
381
|
return OA(
|
|
382
|
-
() =>
|
|
383
|
-
(
|
|
382
|
+
() => i.currentRoute.value,
|
|
383
|
+
(s) => {
|
|
384
384
|
var q, p, m;
|
|
385
|
-
const
|
|
386
|
-
let
|
|
387
|
-
|
|
385
|
+
const c = !!((q = f.value) != null && q.pageSwith), H = ((p = s.meta) == null ? void 0 : p.showWatermark) ?? !0;
|
|
386
|
+
let b = ((m = s.query) == null ? void 0 : m.showWatermark) ?? !0;
|
|
387
|
+
b === "false" && (b = !1), x(c && !!(H && b));
|
|
388
388
|
},
|
|
389
389
|
{ immediate: !0 }
|
|
390
390
|
), NA.addEventListenerFromMicroApp("systemconfig:watermark-change", async () => {
|
|
391
|
-
var H,
|
|
391
|
+
var H, b;
|
|
392
392
|
await X();
|
|
393
|
-
const
|
|
394
|
-
let
|
|
395
|
-
|
|
396
|
-
}), (
|
|
393
|
+
const s = !!((H = f.value) != null && H.pageSwith);
|
|
394
|
+
let c = ((b = a.query) == null ? void 0 : b.showWatermark) ?? !0;
|
|
395
|
+
c === "false" && (c = !1), x(!!(s && c));
|
|
396
|
+
}), (s, c) => (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(s.$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((i) => {
|
|
582
582
|
var a;
|
|
583
|
-
!(
|
|
584
|
-
code:
|
|
585
|
-
originalCode:
|
|
586
|
-
name:
|
|
587
|
-
}) : QA([
|
|
583
|
+
!(i != null && i.children) || !((a = i.children) != null && a.length) ? x.push({
|
|
584
|
+
code: i.code,
|
|
585
|
+
originalCode: i.originalCode,
|
|
586
|
+
name: i.name
|
|
587
|
+
}) : QA([i]).forEach((c) => {
|
|
588
588
|
x.push({
|
|
589
|
-
code:
|
|
590
|
-
originalCode:
|
|
591
|
-
name:
|
|
589
|
+
code: c.code,
|
|
590
|
+
originalCode: c.originalCode,
|
|
591
|
+
name: c.name
|
|
592
592
|
});
|
|
593
593
|
});
|
|
594
|
-
}), x.forEach((
|
|
595
|
-
let a =
|
|
594
|
+
}), x.forEach((i) => {
|
|
595
|
+
let a = i.originalCode ? i.originalCode : i.code ? i.code : "";
|
|
596
596
|
a.includes(n + ".") && (a = a.replace(n + ".", "").replaceAll(".", "-")), a.includes(u + ".") && (a = a.replace(u + ".", "").replaceAll(".", "-"));
|
|
597
|
-
const
|
|
597
|
+
const s = {
|
|
598
598
|
code: a,
|
|
599
|
-
name:
|
|
599
|
+
name: i.name
|
|
600
600
|
};
|
|
601
|
-
z[n].push(
|
|
601
|
+
z[n].push(s), u && n !== u && (z["origin-auth"] || (z["origin-auth"] = {}), z["origin-auth"][u] || (z["origin-auth"][u] = []), z["origin-auth"][u].push(s));
|
|
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 b() {
|
|
708
708
|
}
|
|
709
709
|
return function(q) {
|
|
710
710
|
var p;
|
|
711
|
-
return
|
|
711
|
+
return b.prototype = q, p = new b(), b.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(b) {
|
|
734
734
|
var q = z(this);
|
|
735
|
-
return
|
|
735
|
+
return b && q.mixIn(b), (!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 b = this.extend();
|
|
753
|
+
return b.init.apply(b, arguments), b;
|
|
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(b) {
|
|
781
|
+
for (var q in b)
|
|
782
|
+
b.hasOwnProperty(q) && (this[q] = b[q]);
|
|
783
|
+
b.hasOwnProperty("toString") && (this.toString = b.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(b, q) {
|
|
812
|
+
b = this.words = b || [], q != r ? this.sigBytes = q : this.sigBytes = b.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(b) {
|
|
828
|
+
return (b || i).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(b) {
|
|
842
|
+
var q = this.words, p = b.words, m = this.sigBytes, R = b.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 b = this.words, q = this.sigBytes;
|
|
862
|
+
b[q >>> 2] &= 4294967295 << 32 - q % 4 * 8, b.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 b = u.clone.call(this);
|
|
875
|
+
return b.words = this.words.slice(0), b;
|
|
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(b) {
|
|
891
|
+
for (var q = [], p = 0; p < b; p += 4)
|
|
892
892
|
q.push(t());
|
|
893
|
-
return new x.init(q,
|
|
893
|
+
return new x.init(q, b);
|
|
894
894
|
}
|
|
895
|
-
}), X = d.enc = {},
|
|
895
|
+
}), X = d.enc = {}, i = 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(b) {
|
|
910
|
+
for (var q = b.words, p = b.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(b) {
|
|
930
|
+
for (var q = b.length, p = [], m = 0; m < q; m += 2)
|
|
931
|
+
p[m >>> 3] |= parseInt(b.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(b) {
|
|
949
|
+
for (var q = b.words, p = b.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(b) {
|
|
969
|
+
for (var q = b.length, p = [], m = 0; m < q; m++)
|
|
970
|
+
p[m >>> 2] |= (b.charCodeAt(m) & 255) << 24 - m % 4 * 8;
|
|
971
971
|
return new x.init(p, q);
|
|
972
972
|
}
|
|
973
|
-
},
|
|
973
|
+
}, s = 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(b) {
|
|
988
988
|
try {
|
|
989
|
-
return decodeURIComponent(escape(a.stringify(
|
|
989
|
+
return decodeURIComponent(escape(a.stringify(b)));
|
|
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(b) {
|
|
1008
|
+
return a.parse(unescape(encodeURIComponent(b)));
|
|
1009
1009
|
}
|
|
1010
|
-
},
|
|
1010
|
+
}, c = 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(b) {
|
|
1032
|
+
typeof b == "string" && (b = s.parse(b)), this._data.concat(b), this._nDataBytes += b.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(b) {
|
|
1049
1049
|
var q, p = this._data, m = p.words, R = p.sigBytes, V = this.blockSize, l = V * 4, j = R / l;
|
|
1050
|
-
|
|
1050
|
+
b ? 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 b = u.clone.call(this);
|
|
1070
|
+
return b._data = this._data.clone(), b;
|
|
1071
1071
|
},
|
|
1072
1072
|
_minBufferSize: 0
|
|
1073
1073
|
});
|
|
1074
|
-
n.Hasher =
|
|
1074
|
+
n.Hasher = c.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(b) {
|
|
1089
|
+
this.cfg = this.cfg.extend(b), 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
|
+
c.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(b) {
|
|
1114
|
+
return this._append(b), 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(b) {
|
|
1131
|
+
b && this._append(b);
|
|
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(b) {
|
|
1150
1150
|
return function(q, p) {
|
|
1151
|
-
return new
|
|
1151
|
+
return new b.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(b) {
|
|
1168
1168
|
return function(q, p) {
|
|
1169
|
-
return new H.HMAC.init(
|
|
1169
|
+
return new H.HMAC.init(b, 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 i = n[X];
|
|
1387
|
+
x.push(i.high), x.push(i.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 i = n[X >>> 2] >>> 16 - X % 4 * 8 & 65535;
|
|
1457
|
+
x.push(String.fromCharCode(i));
|
|
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 i = z(n[X >>> 2] >>> 16 - X % 4 * 8 & 65535);
|
|
1496
|
+
x.push(String.fromCharCode(i));
|
|
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 = [], i = 0; i < u; i += 3)
|
|
1552
|
+
for (var a = n[i >>> 2] >>> 24 - i % 4 * 8 & 255, s = n[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255, c = n[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255, H = a << 16 | s << 8 | c, b = 0; b < 4 && i + b * 0.75 < u; b++)
|
|
1553
|
+
X.push(x.charAt(H >>> 6 * (3 - b) & 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 i = u.charAt(64);
|
|
1581
|
+
if (i) {
|
|
1582
|
+
var a = d.indexOf(i);
|
|
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, i = 0; i < n; i++)
|
|
1591
|
+
if (i % 4) {
|
|
1592
|
+
var a = u[d.charCodeAt(i - 1)] << i % 4 * 2, s = u[d.charCodeAt(i)] >>> 6 - i % 4 * 2, c = a | s;
|
|
1593
|
+
x[X >>> 2] |= c << 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 i = [], a = 0; a < x; a += 3)
|
|
1630
|
+
for (var s = u[a >>> 2] >>> 24 - a % 4 * 8 & 255, c = u[a + 1 >>> 2] >>> 24 - (a + 1) % 4 * 8 & 255, H = u[a + 2 >>> 2] >>> 24 - (a + 2) % 4 * 8 & 255, b = s << 16 | c << 8 | H, q = 0; q < 4 && a + q * 0.75 < x; q++)
|
|
1631
|
+
i.push(X.charAt(b >>> 6 * (3 - q) & 63));
|
|
1632
1632
|
var p = X.charAt(64);
|
|
1633
1633
|
if (p)
|
|
1634
|
-
for (;
|
|
1635
|
-
|
|
1636
|
-
return
|
|
1634
|
+
for (; i.length % 4; )
|
|
1635
|
+
i.push(p);
|
|
1636
|
+
return i.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 i = 0; i < x.length; i++)
|
|
1659
|
+
X[x.charCodeAt(i)] = i;
|
|
1660
1660
|
}
|
|
1661
1661
|
var a = x.charAt(64);
|
|
1662
1662
|
if (a) {
|
|
1663
|
-
var
|
|
1664
|
-
|
|
1663
|
+
var s = d.indexOf(a);
|
|
1664
|
+
s !== -1 && (u = s);
|
|
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, i = 0; i < n; i++)
|
|
1673
|
+
if (i % 4) {
|
|
1674
|
+
var a = u[d.charCodeAt(i - 1)] << i % 4 * 2, s = u[d.charCodeAt(i)] >>> 6 - i % 4 * 2, c = a | s;
|
|
1675
|
+
x[X >>> 2] |= c << 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 s = 0; s < 64; s++)
|
|
1693
|
+
n[s] = v.abs(v.sin(s + 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(s, c) {
|
|
1705
1705
|
for (var H = 0; H < 16; H++) {
|
|
1706
|
-
var
|
|
1707
|
-
|
|
1706
|
+
var b = c + H, q = s[b];
|
|
1707
|
+
s[b] = (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 = s[c + 0], R = s[c + 1], V = s[c + 2], l = s[c + 3], j = s[c + 4], O = s[c + 5], N = s[c + 6], Z = s[c + 7], T = s[c + 8], Q = s[c + 9], h = s[c + 10], _ = s[c + 11], G = s[c + 12], Y = s[c + 13], S = s[c + 14], C = s[c + 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 = i(L, W, E, w, O, 4, n[32]), w = i(w, L, W, E, T, 11, n[33]), E = i(E, w, L, W, _, 16, n[34]), W = i(W, E, w, L, S, 23, n[35]), L = i(L, W, E, w, R, 4, n[36]), w = i(w, L, W, E, j, 11, n[37]), E = i(E, w, L, W, Z, 16, n[38]), W = i(W, E, w, L, h, 23, n[39]), L = i(L, W, E, w, Y, 4, n[40]), w = i(w, L, W, E, m, 11, n[41]), E = i(E, w, L, W, l, 16, n[42]), W = i(W, E, w, L, N, 23, n[43]), L = i(L, W, E, w, Q, 4, n[44]), w = i(w, L, W, E, G, 11, n[45]), E = i(E, w, L, W, C, 16, n[46]), W = i(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
|
-
b
|
|
1713
|
+
var s = this._data, c = s.words, H = this._nDataBytes * 8, b = s.sigBytes * 8;
|
|
1714
|
+
c[b >>> 5] |= 128 << 24 - b % 32;
|
|
1715
1715
|
var q = v.floor(H / 4294967296), p = H;
|
|
1716
|
-
|
|
1716
|
+
c[(b + 64 >>> 9 << 4) + 15] = (q << 8 | q >>> 24) & 16711935 | (q << 24 | q >>> 8) & 4278255360, c[(b + 64 >>> 9 << 4) + 14] = (p << 8 | p >>> 24) & 16711935 | (p << 24 | p >>> 8) & 4278255360, s.sigBytes = (c.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 s = z.clone.call(this);
|
|
1725
|
+
return s._hash = this._hash.clone(), s;
|
|
1726
1726
|
}
|
|
1727
1727
|
});
|
|
1728
|
-
function x(
|
|
1729
|
-
var R =
|
|
1730
|
-
return (R << p | R >>> 32 - p) +
|
|
1728
|
+
function x(s, c, H, b, q, p, m) {
|
|
1729
|
+
var R = s + (c & H | ~c & b) + q + m;
|
|
1730
|
+
return (R << p | R >>> 32 - p) + c;
|
|
1731
1731
|
}
|
|
1732
|
-
function X(
|
|
1733
|
-
var R =
|
|
1734
|
-
return (R << p | R >>> 32 - p) +
|
|
1732
|
+
function X(s, c, H, b, q, p, m) {
|
|
1733
|
+
var R = s + (c & b | H & ~b) + q + m;
|
|
1734
|
+
return (R << p | R >>> 32 - p) + c;
|
|
1735
1735
|
}
|
|
1736
|
-
function s
|
|
1737
|
-
var R =
|
|
1738
|
-
return (R << p | R >>> 32 - p) +
|
|
1736
|
+
function i(s, c, H, b, q, p, m) {
|
|
1737
|
+
var R = s + (c ^ H ^ b) + q + m;
|
|
1738
|
+
return (R << p | R >>> 32 - p) + c;
|
|
1739
1739
|
}
|
|
1740
|
-
function a(
|
|
1741
|
-
var R =
|
|
1742
|
-
return (R << p | R >>> 32 - p) +
|
|
1740
|
+
function a(s, c, H, b, q, p, m) {
|
|
1741
|
+
var R = s + (H ^ (c | ~b)) + q + m;
|
|
1742
|
+
return (R << p | R >>> 32 - p) + c;
|
|
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, i = X[0], a = X[1], s = X[2], c = X[3], H = X[4], b = 0; b < 80; b++) {
|
|
1768
|
+
if (b < 16)
|
|
1769
|
+
d[b] = u[x + b] | 0;
|
|
1770
1770
|
else {
|
|
1771
|
-
var q = d[
|
|
1772
|
-
d[
|
|
1771
|
+
var q = d[b - 3] ^ d[b - 8] ^ d[b - 14] ^ d[b - 16];
|
|
1772
|
+
d[b] = q << 1 | q >>> 31;
|
|
1773
1773
|
}
|
|
1774
|
-
var p = (
|
|
1775
|
-
|
|
1774
|
+
var p = (i << 5 | i >>> 27) + H + d[b];
|
|
1775
|
+
b < 20 ? p += (a & s | ~a & c) + 1518500249 : b < 40 ? p += (a ^ s ^ c) + 1859775393 : b < 60 ? p += (a & s | a & c | s & c) - 1894007588 : p += (a ^ s ^ c) - 899497514, H = c, c = s, s = a << 30 | a >>> 2, a = i, i = p;
|
|
1776
1776
|
}
|
|
1777
|
-
X[0] = X[0] +
|
|
1777
|
+
X[0] = X[0] + i | 0, X[1] = X[1] + a | 0, X[2] = X[2] + s | 0, X[3] = X[3] + c | 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, i = u.sigBytes * 8;
|
|
1781
|
+
return x[i >>> 5] |= 128 << 24 - i % 32, x[(i + 64 >>> 9 << 4) + 14] = Math.floor(X / 4294967296), x[(i + 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 i(H) {
|
|
1803
|
+
for (var b = v.sqrt(H), q = 2; q <= b; 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
|
-
s
|
|
1811
|
+
for (var s = 2, c = 0; c < 64; )
|
|
1812
|
+
i(s) && (c < 8 && (n[c] = a(v.pow(s, 1 / 2))), u[c] = a(v.pow(s, 1 / 3)), c++), s++;
|
|
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(i, a) {
|
|
1819
|
+
for (var s = this._hash.words, c = s[0], H = s[1], b = s[2], q = s[3], p = s[4], m = s[5], R = s[6], V = s[7], l = 0; l < 64; l++) {
|
|
1820
1820
|
if (l < 16)
|
|
1821
|
-
x[l] =
|
|
1821
|
+
x[l] = i[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 = c & H ^ c & b ^ H & b, h = (c << 30 | c >>> 2) ^ (c << 19 | c >>> 13) ^ (c << 10 | c >>> 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 = b, b = H, H = c, c = G + Y | 0;
|
|
1828
1828
|
}
|
|
1829
|
-
|
|
1829
|
+
s[0] = s[0] + c | 0, s[1] = s[1] + H | 0, s[2] = s[2] + b | 0, s[3] = s[3] + q | 0, s[4] = s[4] + p | 0, s[5] = s[5] + m | 0, s[6] = s[6] + R | 0, s[7] = s[7] + V | 0;
|
|
1830
1830
|
},
|
|
1831
1831
|
_doFinalize: function() {
|
|
1832
|
-
var
|
|
1833
|
-
return a[
|
|
1832
|
+
var i = this._data, a = i.words, s = this._nDataBytes * 8, c = i.sigBytes * 8;
|
|
1833
|
+
return a[c >>> 5] |= 128 << 24 - c % 32, a[(c + 64 >>> 9 << 4) + 14] = v.floor(s / 4294967296), a[(c + 64 >>> 9 << 4) + 15] = s, i.sigBytes = a.length * 4, this._process(), this._hash;
|
|
1834
1834
|
},
|
|
1835
1835
|
clone: function() {
|
|
1836
|
-
var
|
|
1837
|
-
return
|
|
1836
|
+
var i = z.clone.call(this);
|
|
1837
|
+
return i._hash = this._hash.clone(), i;
|
|
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 i = 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, s) {
|
|
1986
|
+
for (var c = this._hash.words, H = c[0], b = c[1], q = c[2], p = c[3], m = c[4], R = c[5], V = c[6], l = c[7], j = H.high, O = H.low, N = b.high, Z = b.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[s + JA * 2] | 0, UA = nf.low = a[s + 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 = b.low = Z + K, b.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, s = a.words, c = this._nDataBytes * 8, H = a.sigBytes * 8;
|
|
2001
|
+
s[H >>> 5] |= 128 << 24 - H % 32, s[(H + 128 >>> 10 << 5) + 30] = Math.floor(c / 4294967296), s[(H + 128 >>> 10 << 5) + 31] = c, a.sigBytes = s.length * 4, this._process();
|
|
2002
|
+
var b = this._hash.toX32();
|
|
2003
|
+
return b;
|
|
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(i), v.HmacSHA512 = P._createHmacHelper(i);
|
|
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 = [], i = [];
|
|
2054
2054
|
(function() {
|
|
2055
|
-
for (var
|
|
2056
|
-
x[
|
|
2057
|
-
var q = H % 5, p = (2 *
|
|
2058
|
-
|
|
2055
|
+
for (var c = 1, H = 0, b = 0; b < 24; b++) {
|
|
2056
|
+
x[c + 5 * H] = (b + 1) * (b + 2) / 2 % 64;
|
|
2057
|
+
var q = H % 5, p = (2 * c + 3 * H) % 5;
|
|
2058
|
+
c = q, H = p;
|
|
2059
2059
|
}
|
|
2060
|
-
for (var
|
|
2060
|
+
for (var c = 0; c < 5; c++)
|
|
2061
2061
|
for (var H = 0; H < 5; H++)
|
|
2062
|
-
X[
|
|
2062
|
+
X[c + 5 * H] = H + (2 * c + 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
|
+
i[R] = n.create(V, l);
|
|
2072
2072
|
}
|
|
2073
2073
|
})();
|
|
2074
2074
|
var a = [];
|
|
2075
2075
|
(function() {
|
|
2076
|
-
for (var
|
|
2077
|
-
a[
|
|
2076
|
+
for (var c = 0; c < 25; c++)
|
|
2077
|
+
a[c] = n.create();
|
|
2078
2078
|
})();
|
|
2079
|
-
var
|
|
2079
|
+
var s = 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 c = this._state = [], H = 0; H < 25; H++)
|
|
2093
|
+
c[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(c, H) {
|
|
2097
|
+
for (var b = this._state, q = this.blockSize / 2, p = 0; p < q; p++) {
|
|
2098
|
+
var m = c[H + 2 * p], R = c[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 = b[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 = b[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 = b[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 = b[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 = b[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 = b[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 = b[0], K = i[l];
|
|
2131
2131
|
V.high ^= K.high, V.low ^= K.low;
|
|
2132
2132
|
}
|
|
2133
2133
|
},
|
|
2134
2134
|
_doFinalize: function() {
|
|
2135
|
-
var
|
|
2135
|
+
var c = this._data, H = c.words;
|
|
2136
2136
|
this._nDataBytes * 8;
|
|
2137
|
-
var
|
|
2138
|
-
H[
|
|
2137
|
+
var b = c.sigBytes * 8, q = this.blockSize * 32;
|
|
2138
|
+
H[b >>> 5] |= 1 << 24 - b % 32, H[(v.ceil((b + 1) / q) * q >>> 5) - 1] |= 128, c.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 c = z.clone.call(this), H = c._state = this._state.slice(0), b = 0; b < 25; b++)
|
|
2147
|
+
H[b] = H[b].clone();
|
|
2148
|
+
return c;
|
|
2149
2149
|
}
|
|
2150
2150
|
});
|
|
2151
|
-
r.SHA3 = z._createHelper(
|
|
2151
|
+
r.SHA3 = z._createHelper(s), r.HmacSHA3 = z._createHmacHelper(s);
|
|
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
|
+
]), i = t.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), a = t.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), s = 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 = i.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 += c(S, C, L) + Z[0] : l < 32 ? K += H(S, C, L) + Z[1] : l < 48 ? K += b(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 += b(w, zA, dA) + T[2] : l < 64 ? K += H(w, zA, dA) + T[3] : K += c(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 c(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 b(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(s), r.HmacRIPEMD160 = z._createHmacHelper(s);
|
|
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 i = this._oKey = u.clone(), a = this._iKey = u.clone(), s = i.words, c = a.words, H = 0; H < x; H++)
|
|
2573
|
+
s[H] ^= 1549556828, c[H] ^= 909522486;
|
|
2574
|
+
i.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 i = this.cfg, a = n.create(i.hasher, x), s = t.create(), c = t.create([1]), H = s.words, b = c.words, q = i.keySize, p = i.iterations; H.length < q; ) {
|
|
2675
|
+
var m = a.update(X).finalize(c);
|
|
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
|
+
s.concat(m), b[0]++;
|
|
2683
2683
|
}
|
|
2684
|
-
return
|
|
2684
|
+
return s.sigBytes = q * 4, s;
|
|
2685
2685
|
}
|
|
2686
2686
|
});
|
|
2687
|
-
v.PBKDF2 = function(x, X,
|
|
2688
|
-
return u.create(
|
|
2687
|
+
v.PBKDF2 = function(x, X, i) {
|
|
2688
|
+
return u.create(i).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, i = this.cfg, a = i.hasher.create(), s = t.create(), c = s.words, H = i.keySize, b = i.iterations; c.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 < b; q++)
|
|
2744
2744
|
X = a.finalize(X), a.reset();
|
|
2745
|
-
|
|
2745
|
+
s.concat(X);
|
|
2746
2746
|
}
|
|
2747
|
-
return
|
|
2747
|
+
return s.sigBytes = H * 4, s;
|
|
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, i = 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 = i.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 = {}, s = 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
|
+
}), c = a.CBC = function() {
|
|
2950
|
+
var O = s.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 = {}, b = 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 = i.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: i.cfg.extend({
|
|
3032
|
+
mode: c,
|
|
3033
|
+
padding: b
|
|
3034
3034
|
}),
|
|
3035
3035
|
reset: function() {
|
|
3036
3036
|
var O;
|
|
3037
|
-
|
|
3037
|
+
i.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 i = X.slice(0);
|
|
3376
|
+
n.encryptBlock(i, 0);
|
|
3377
3377
|
for (var a = 0; a < u; a++)
|
|
3378
|
-
z[d + a] ^=
|
|
3378
|
+
z[d + a] ^= i[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 = [], i = [], a = [], s = [], c = [];
|
|
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
|
+
i[V] = N << 24 | N >>> 8, a[V] = N << 16 | N >>> 16, s[V] = N << 8 | N >>> 24, c[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], b = 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] = i[z[q >>> 24]] ^ a[z[q >>> 16 & 255]] ^ s[z[q >>> 8 & 255]] ^ c[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, i, a, s, c, 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(b);
|
|
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
|
+
], i = z.DES = t.extend({
|
|
4278
4278
|
_doReset: function() {
|
|
4279
|
-
for (var H = this._key,
|
|
4279
|
+
for (var H = this._key, b = H.words, q = [], p = 0; p < 56; p++) {
|
|
4280
4280
|
var m = d[p] - 1;
|
|
4281
|
-
q[p] =
|
|
4281
|
+
q[p] = b[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, b) {
|
|
4295
|
+
this._doCryptBlock(H, b, this._subKeys);
|
|
4296
4296
|
},
|
|
4297
|
-
decryptBlock: function(H,
|
|
4298
|
-
this._doCryptBlock(H,
|
|
4297
|
+
decryptBlock: function(H, b) {
|
|
4298
|
+
this._doCryptBlock(H, b, this._invSubKeys);
|
|
4299
4299
|
},
|
|
4300
|
-
_doCryptBlock: function(H,
|
|
4301
|
-
this._lBlock = H[
|
|
4300
|
+
_doCryptBlock: function(H, b, q) {
|
|
4301
|
+
this._lBlock = H[b], this._rBlock = H[b + 1], a.call(this, 4, 252645135), a.call(this, 16, 65535), s.call(this, 2, 858993459), s.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), s.call(this, 8, 16711935), s.call(this, 2, 858993459), a.call(this, 16, 65535), a.call(this, 4, 252645135), H[b] = this._lBlock, H[b + 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, b) {
|
|
4315
|
+
var q = (this._lBlock >>> H ^ this._rBlock) & b;
|
|
4316
4316
|
this._rBlock ^= q, this._lBlock ^= q << H;
|
|
4317
4317
|
}
|
|
4318
|
-
function
|
|
4319
|
-
var q = (this._rBlock >>> H ^ this._lBlock) &
|
|
4318
|
+
function s(H, b) {
|
|
4319
|
+
var q = (this._rBlock >>> H ^ this._lBlock) & b;
|
|
4320
4320
|
this._lBlock ^= q, this._rBlock ^= q << H;
|
|
4321
4321
|
}
|
|
4322
|
-
v.DES = t._createHelper(
|
|
4323
|
-
var
|
|
4322
|
+
v.DES = t._createHelper(i);
|
|
4323
|
+
var c = z.TripleDES = t.extend({
|
|
4324
4324
|
_doReset: function() {
|
|
4325
|
-
var H = this._key,
|
|
4326
|
-
if (
|
|
4325
|
+
var H = this._key, b = H.words;
|
|
4326
|
+
if (b.length !== 2 && b.length !== 4 && b.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 = b.slice(0, 2), p = b.length < 4 ? b.slice(0, 2) : b.slice(2, 4), m = b.length < 6 ? b.slice(0, 2) : b.slice(4, 6);
|
|
4329
|
+
this._des1 = i.createEncryptor(P.create(q)), this._des2 = i.createEncryptor(P.create(p)), this._des3 = i.createEncryptor(P.create(m));
|
|
4330
4330
|
},
|
|
4331
|
-
encryptBlock: function(H,
|
|
4332
|
-
this._des1.encryptBlock(H,
|
|
4331
|
+
encryptBlock: function(H, b) {
|
|
4332
|
+
this._des1.encryptBlock(H, b), this._des2.decryptBlock(H, b), this._des3.encryptBlock(H, b);
|
|
4333
4333
|
},
|
|
4334
|
-
decryptBlock: function(H,
|
|
4335
|
-
this._des3.decryptBlock(H,
|
|
4334
|
+
decryptBlock: function(H, b) {
|
|
4335
|
+
this._des3.decryptBlock(H, b), this._des2.encryptBlock(H, b), this._des1.decryptBlock(H, b);
|
|
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(c);
|
|
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, i = this._S = [], a = 0; a < 256; a++)
|
|
4356
|
+
i[a] = a;
|
|
4357
|
+
for (var a = 0, s = 0; a < 256; a++) {
|
|
4358
|
+
var c = a % X, H = x[c >>> 2] >>> 24 - c % 4 * 8 & 255;
|
|
4359
|
+
s = (s + i[a] + H) % 256;
|
|
4360
|
+
var b = i[a];
|
|
4361
|
+
i[a] = i[s], i[s] = b;
|
|
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, i = 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 s = u[x];
|
|
4375
|
+
u[x] = u[X], u[X] = s, i |= 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, i;
|
|
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, i = 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 s = 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
|
+
], c = 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
|
+
c[a] ^= s[a + 4 & 7];
|
|
4435
|
+
if (i) {
|
|
4436
|
+
var H = i.words, b = H[0], q = H[1], p = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, m = (q << 8 | q >>> 24) & 16711935 | (q << 24 | q >>> 8) & 4278255360, R = p >>> 16 | m & 4294901760, V = m << 16 | p & 65535;
|
|
4437
|
+
c[0] ^= p, c[1] ^= R, c[2] ^= m, c[3] ^= V, c[4] ^= p, c[5] ^= R, c[6] ^= m, c[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, i) {
|
|
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 s = 0; s < 4; s++)
|
|
4446
|
+
z[s] = (z[s] << 8 | z[s] >>> 24) & 16711935 | (z[s] << 24 | z[s] >>> 8) & 4278255360, X[i + s] ^= z[s];
|
|
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, i = this._C, a = 0; a < 8; a++)
|
|
4453
|
+
d[a] = i[a];
|
|
4454
|
+
i[0] = i[0] + 1295307597 + this._b | 0, i[1] = i[1] + 3545052371 + (i[0] >>> 0 < d[0] >>> 0 ? 1 : 0) | 0, i[2] = i[2] + 886263092 + (i[1] >>> 0 < d[1] >>> 0 ? 1 : 0) | 0, i[3] = i[3] + 1295307597 + (i[2] >>> 0 < d[2] >>> 0 ? 1 : 0) | 0, i[4] = i[4] + 3545052371 + (i[3] >>> 0 < d[3] >>> 0 ? 1 : 0) | 0, i[5] = i[5] + 886263092 + (i[4] >>> 0 < d[4] >>> 0 ? 1 : 0) | 0, i[6] = i[6] + 1295307597 + (i[5] >>> 0 < d[5] >>> 0 ? 1 : 0) | 0, i[7] = i[7] + 3545052371 + (i[6] >>> 0 < d[6] >>> 0 ? 1 : 0) | 0, this._b = i[7] >>> 0 < d[7] >>> 0 ? 1 : 0;
|
|
4455
4455
|
for (var a = 0; a < 8; a++) {
|
|
4456
|
-
var
|
|
4457
|
-
n[a] =
|
|
4456
|
+
var s = X[a] + i[a], c = s & 65535, H = s >>> 16, b = ((c * c >>> 17) + c * H >>> 15) + H * H, q = ((s & 4294901760) * s | 0) + ((s & 65535) * s | 0);
|
|
4457
|
+
n[a] = b ^ 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, i = 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
|
+
], s = 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 c = 0; c < 4; c++)
|
|
4496
4496
|
x.call(this);
|
|
4497
|
-
for (var
|
|
4498
|
-
|
|
4499
|
-
if (
|
|
4500
|
-
var H =
|
|
4501
|
-
|
|
4502
|
-
for (var
|
|
4497
|
+
for (var c = 0; c < 8; c++)
|
|
4498
|
+
s[c] ^= a[c + 4 & 7];
|
|
4499
|
+
if (i) {
|
|
4500
|
+
var H = i.words, b = H[0], q = H[1], p = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, m = (q << 8 | q >>> 24) & 16711935 | (q << 24 | q >>> 8) & 4278255360, R = p >>> 16 | m & 4294901760, V = m << 16 | p & 65535;
|
|
4501
|
+
s[0] ^= p, s[1] ^= R, s[2] ^= m, s[3] ^= V, s[4] ^= p, s[5] ^= R, s[6] ^= m, s[7] ^= V;
|
|
4502
|
+
for (var c = 0; c < 4; c++)
|
|
4503
4503
|
x.call(this);
|
|
4504
4504
|
}
|
|
4505
4505
|
},
|
|
4506
|
-
_doProcessBlock: function(X,
|
|
4506
|
+
_doProcessBlock: function(X, i) {
|
|
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 s = 0; s < 4; s++)
|
|
4510
|
+
z[s] = (z[s] << 8 | z[s] >>> 24) & 16711935 | (z[s] << 24 | z[s] >>> 8) & 4278255360, X[i + s] ^= z[s];
|
|
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, i = this._C, a = 0; a < 8; a++)
|
|
4517
|
+
d[a] = i[a];
|
|
4518
|
+
i[0] = i[0] + 1295307597 + this._b | 0, i[1] = i[1] + 3545052371 + (i[0] >>> 0 < d[0] >>> 0 ? 1 : 0) | 0, i[2] = i[2] + 886263092 + (i[1] >>> 0 < d[1] >>> 0 ? 1 : 0) | 0, i[3] = i[3] + 1295307597 + (i[2] >>> 0 < d[2] >>> 0 ? 1 : 0) | 0, i[4] = i[4] + 3545052371 + (i[3] >>> 0 < d[3] >>> 0 ? 1 : 0) | 0, i[5] = i[5] + 886263092 + (i[4] >>> 0 < d[4] >>> 0 ? 1 : 0) | 0, i[6] = i[6] + 1295307597 + (i[5] >>> 0 < d[5] >>> 0 ? 1 : 0) | 0, i[7] = i[7] + 3545052371 + (i[6] >>> 0 < d[6] >>> 0 ? 1 : 0) | 0, this._b = i[7] >>> 0 < d[7] >>> 0 ? 1 : 0;
|
|
4519
4519
|
for (var a = 0; a < 8; a++) {
|
|
4520
|
-
var
|
|
4521
|
-
n[a] =
|
|
4520
|
+
var s = X[a] + i[a], c = s & 65535, H = s >>> 16, b = ((c * c >>> 17) + c * H >>> 15) + H * H, q = ((s & 4294901760) * s | 0) + ((s & 65535) * s | 0);
|
|
4521
|
+
n[a] = b ^ 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(c, H) {
|
|
5596
|
+
let b = H >> 24 & 255, q = H >> 16 & 255, p = H >> 8 & 255, m = H & 255, R = c.sbox[0][b] + c.sbox[1][q];
|
|
5597
|
+
return R = R ^ c.sbox[2][p], R = R + c.sbox[3][m], R;
|
|
5598
5598
|
}
|
|
5599
|
-
function X(
|
|
5600
|
-
let q = H, p =
|
|
5599
|
+
function X(c, H, b) {
|
|
5600
|
+
let q = H, p = b, 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 ^ c.pbox[R], p = x(c, q) ^ p, m = q, q = p, p = m;
|
|
5603
|
+
return m = q, q = p, p = m, p = p ^ c.pbox[z], q = q ^ c.pbox[z + 1], { left: q, right: p };
|
|
5604
5604
|
}
|
|
5605
|
-
function
|
|
5606
|
-
let q = H, p =
|
|
5605
|
+
function i(c, H, b) {
|
|
5606
|
+
let q = H, p = b, 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 ^ c.pbox[R], p = x(c, q) ^ p, m = q, q = p, p = m;
|
|
5609
|
+
return m = q, q = p, p = m, p = p ^ c.pbox[1], q = q ^ c.pbox[0], { left: q, right: p };
|
|
5610
5610
|
}
|
|
5611
|
-
function a(
|
|
5611
|
+
function a(c, H, b) {
|
|
5612
5612
|
for (let V = 0; V < 4; V++) {
|
|
5613
|
-
|
|
5613
|
+
c.sbox[V] = [];
|
|
5614
5614
|
for (let l = 0; l < 256; l++)
|
|
5615
|
-
|
|
5615
|
+
c.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
|
+
c.pbox[V] = d[V] ^ H[q], q++, q >= b && (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(c, p, m), p = R.left, m = R.right, c.pbox[V] = p, c.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(c, p, m), p = R.left, m = R.right, c.sbox[V][l] = p, c.sbox[V][l + 1] = m;
|
|
5626
5626
|
return !0;
|
|
5627
5627
|
}
|
|
5628
|
-
var
|
|
5628
|
+
var s = t.Blowfish = P.extend({
|
|
5629
5629
|
_doReset: function() {
|
|
5630
5630
|
if (this._keyPriorReset !== this._key) {
|
|
5631
|
-
var
|
|
5632
|
-
a(u, H,
|
|
5631
|
+
var c = this._keyPriorReset = this._key, H = c.words, b = c.sigBytes / 4;
|
|
5632
|
+
a(u, H, b);
|
|
5633
5633
|
}
|
|
5634
5634
|
},
|
|
5635
|
-
encryptBlock: function(
|
|
5636
|
-
var
|
|
5637
|
-
|
|
5635
|
+
encryptBlock: function(c, H) {
|
|
5636
|
+
var b = X(u, c[H], c[H + 1]);
|
|
5637
|
+
c[H] = b.left, c[H + 1] = b.right;
|
|
5638
5638
|
},
|
|
5639
|
-
decryptBlock: function(
|
|
5640
|
-
var
|
|
5641
|
-
|
|
5639
|
+
decryptBlock: function(c, H) {
|
|
5640
|
+
var b = i(u, c[H], c[H + 1]);
|
|
5641
|
+
c[H] = b.left, c[H + 1] = b.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(s);
|
|
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 || "", i = r[X.toLowerCase()], s = (Number(e.encryptKeyLength) || 0) / 8;
|
|
5785
|
+
return new Promise((c) => {
|
|
5786
|
+
t !== "aes" && t !== "des" ? c({ error: "加密类型出错==", value: null }) : QP[t](A, d, { mode: z, keySize: s, padding: x, encoding: i, iv: n }, (H) => {
|
|
5787
|
+
c(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(i) {
|
|
6430
|
+
t.add(uf(i, A, f, i, e, P));
|
|
6431
|
+
}) : Pd(e) && e.forEach(function(i, a) {
|
|
6432
|
+
t.set(a, uf(i, 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(i, a) {
|
|
6436
|
+
X && (a = i, i = e[a]), iu(t, a, uf(i, 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((i) => i.code === X.code)).map((X) => {
|
|
6483
|
+
var i;
|
|
6484
6484
|
return {
|
|
6485
6485
|
...X,
|
|
6486
|
-
name: ((
|
|
6486
|
+
name: ((i = v.find((a) => a.code === X.code)) == null ? void 0 : i.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((i) => d.map((a) => a.code).includes(i.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((i) => d.map((a) => a.code).includes(i.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, i, a, s, c;
|
|
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 = ((i = r.query) == null ? void 0 : i.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: b } = await Je(z);
|
|
6550
|
+
d = H ?? [], n = b ?? [];
|
|
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 b = !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 (b = De().endOf("day") > De(q).endOf("day"), !f && !v && H.id && !b) {
|
|
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 b = ((s = (ZA().tabMap ?? {})[A.code]) == null ? void 0 : s.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 (b.length) {
|
|
6577
|
+
const q = b.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((b) => {
|
|
6590
|
+
const q = `/${b.applicationPath}${b.routeUrl}`.replace(/\/\//g, "/");
|
|
6591
|
+
return b.applicationPath && b.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 = ((c = H.currentTab) == null ? void 0 : c.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 b = "";
|
|
6615
|
+
v && v.startsWith(H) && v !== H && (b = 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: b };
|
|
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(() => {
|
|
@@ -6666,7 +6666,7 @@ const bf = (e, A = "") => {
|
|
|
6666
6666
|
if (e)
|
|
6667
6667
|
return Z3.value = [], { fixedAppsConfig: [] };
|
|
6668
6668
|
Z3.value = A;
|
|
6669
|
-
const f = ((t = uA()) == null ? void 0 : t.subAppList) || [], v = f.map((z) => z.code), r = A.filter((z) => !v.includes(z.code)), P =
|
|
6669
|
+
const f = ((t = uA()) == null ? void 0 : t.subAppList) || [], v = f.map((z) => z.code), r = A.filter((z) => !v.includes(z.code)), P = [...f, ...r].filter((z) => kd.value.find((d) => d.code === z.code));
|
|
6670
6670
|
return MA([{ key: "subAppList", value: P }]), { fixedAppsConfig: A };
|
|
6671
6671
|
}, kv = "v1", Yd = xf.get("/organization/authProjectTree"), Gd = oA(`/api/customer/customer/${kv}`), Ud = Gd.get("/project/list"), Jd = oA(`/api/project/project-server/${kv}`), Fd = Jd.get("/list/message"), Sd = async () => {
|
|
6672
6672
|
var t, z;
|
|
@@ -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((i) => i.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 = (s, c) => {
|
|
6729
|
+
s === "menu" ? (f.value = c === 1, v.value = c === 2) : (r.value = c === 1, P.value = c === 2, t.value = c === 3, z.value = c === 4);
|
|
6730
6730
|
}, u = () => {
|
|
6731
|
-
const
|
|
6731
|
+
const s = {
|
|
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(s).find((c) => s[c] === !0) ?? "default";
|
|
6738
6738
|
}, x = () => ({
|
|
6739
6739
|
style: f.value ? 1 : 2,
|
|
6740
6740
|
skinStyle: u()
|
|
6741
6741
|
}), X = EA(() => {
|
|
6742
|
-
const
|
|
6742
|
+
const s = C9.value === "zh-CN";
|
|
6743
6743
|
return {
|
|
6744
|
-
default:
|
|
6745
|
-
kjl:
|
|
6746
|
-
cjb:
|
|
6747
|
-
ssl:
|
|
6744
|
+
default: s ? c5 : q5,
|
|
6745
|
+
kjl: s ? a5 : H5,
|
|
6746
|
+
cjb: s ? i5 : p5,
|
|
6747
|
+
ssl: s ? s5 : x5
|
|
6748
6748
|
}[u()];
|
|
6749
|
-
}), { onPreview:
|
|
6750
|
-
|
|
6749
|
+
}), { onPreview: i } = Pr(), a = () => {
|
|
6750
|
+
i({ previewList: [X.value], previewBtnConfig: !0 });
|
|
6751
6751
|
};
|
|
6752
6752
|
return A({
|
|
6753
6753
|
init: d,
|
|
6754
6754
|
getResult: x
|
|
6755
|
-
}), (
|
|
6755
|
+
}), (s, c) => 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: c[1] || (c[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": c[0] || (c[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: c[3] || (c[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": c[2] || (c[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: c[5] || (c[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": c[4] || (c[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: c[7] || (c[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": c[6] || (c[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: c[9] || (c[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": c[8] || (c[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: c[11] || (c[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": c[10] || (c[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, s.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: i } = A6(), { run: a } = f6(), s = () => {
|
|
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, s();
|
|
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 i(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(""), i = o(""), a = o(!1), { run: s } = e6(), { run: c } = v6(), { run: H } = n6(), { run: b } = 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) ?? "", i.value = ((S = A.value) == null ? void 0 : S.routeUrl) ?? "", rf.afterMsg = p, N(), r.value = !0;
|
|
7102
7102
|
}, l = (G, Y, S) => {
|
|
7103
|
-
|
|
7103
|
+
i.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 = i.value, r.value = !1;
|
|
7110
7110
|
}, O = (G) => {
|
|
7111
|
-
R(), P.value = G, X.value = "",
|
|
7111
|
+
R(), P.value = G, X.value = "", i.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 c(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 s(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 b(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: i,
|
|
7282
7282
|
treeId: a,
|
|
7283
|
-
treePath:
|
|
7284
|
-
keyword:
|
|
7283
|
+
treePath: s,
|
|
7284
|
+
keyword: c,
|
|
7285
7285
|
treeData: H,
|
|
7286
|
-
openBuiltInDialog:
|
|
7286
|
+
openBuiltInDialog: b,
|
|
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 ? b() : 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: i,
|
|
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(s),
|
|
7492
|
+
"onUpdate:path": $[6] || ($[6] = (eA) => FA(s) ? s.value = eA : null),
|
|
7493
|
+
"filter-value": D(c),
|
|
7494
|
+
"onUpdate:filterValue": $[7] || ($[7] = (eA) => FA(c) ? c.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, s;
|
|
7668
|
+
const { flag: i } = Hf();
|
|
7669
|
+
i === 4 && (n.value = (a = f9.value) == null ? void 0 : a.companyIsDisplayHome), d.value = (s = f9.value) != null && s.homeAlias ? f9.value.homeAlias : M("首页"), f.value = !0;
|
|
7670
7670
|
}, X = async () => {
|
|
7671
|
-
var
|
|
7672
|
-
const
|
|
7671
|
+
var s, c, H, b;
|
|
7672
|
+
const i = (s = r.value) == null ? void 0 : s.getResult(), [a] = await D6().run(i);
|
|
7673
7673
|
if (!a) {
|
|
7674
7674
|
if (await Yv(), Number(a7()) >= 2) {
|
|
7675
|
-
const q = (
|
|
7675
|
+
const q = (c = t.value) == null ? void 0 : c.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 = (b = P.value) == null ? void 0 : b.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
|
+
}), (i, 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] = (s) => f.value = s),
|
|
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] = (s) => 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] = (s) => z.value = s),
|
|
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] = (s) => 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
|
+
(b) => {
|
|
7858
|
+
x.value = b === 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 i = async () => {
|
|
7879
|
+
let b = {};
|
|
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(b, ...p)), z.value = !1, b;
|
|
7888
7888
|
}, a = async () => {
|
|
7889
|
-
const
|
|
7889
|
+
const b = 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) => (b != null && b.appAlias && V.value === RA && (V.label = b.appAlias), b != null && b.homeAlias && V.value === hA && (V.label = b.homeAlias), V));
|
|
7895
7895
|
const p = () => {
|
|
7896
7896
|
const { flag: V } = Hf();
|
|
7897
|
-
return V === 4 ?
|
|
7897
|
+
return V === 4 ? b == null ? void 0 : b.companyIsDisplayHome : b == null ? void 0 : b.enable;
|
|
7898
7898
|
};
|
|
7899
|
-
p() ? ((
|
|
7900
|
-
const m = p() && (
|
|
7899
|
+
p() ? ((b == null ? void 0 : b.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() && (b == null ? void 0 : b.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
|
+
}, s = o(!1), c = async () => {
|
|
7905
7905
|
var Z;
|
|
7906
7906
|
await e();
|
|
7907
|
-
const
|
|
7907
|
+
const b = GA().id, q = await i();
|
|
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
|
+
b != 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 }])), s.value = !0;
|
|
7931
7931
|
};
|
|
7932
|
-
return F.nav.addEventListener("onBeforeMount",
|
|
7932
|
+
return F.nav.addEventListener("onBeforeMount", c), 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: s, initNextTick: () => new Promise((b) => {
|
|
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 || s.value) {
|
|
7943
|
+
b();
|
|
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 s = ((p = a.meta) == null ? void 0 : p.showLayout) ?? !0;
|
|
8004
|
+
let c = ((m = a.query) == null ? void 0 : m.showLayout) ?? !0;
|
|
8005
|
+
if (c === "false" && (c = !1), !s || !c || 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 b = ((R = a.query) == null ? void 0 : R.menu) ?? ((V = ZA()) == null ? void 0 : V.currentCode) ?? "";
|
|
8010
|
+
if (!b) 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[b]) != null && j.fontColor ? q[H][b].fontColor : "", f.value = (N = (O = q[H]) == null ? void 0 : O[b]) != null && N.backgroundColor ? q[H][b].backgroundColor : "", v.value = (T = (Z = q[H]) == null ? void 0 : Z[b]) != null && T.backgroundColor ? q[H][b].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 b;
|
|
8017
|
+
const s = QA(zf(a.applicationCode)).find((q) => q.code === a.code), H = (((b = ZA().tabMap) == null ? void 0 : b[a.applicationCode]) ?? []).find((q) => q.code === a.code);
|
|
8018
|
+
z({ currentMenu: s, route: { path: H.path, query: H.query ?? {} } });
|
|
8019
8019
|
}, x = (a) => {
|
|
8020
8020
|
if (!a || !a.length) return;
|
|
8021
|
-
const
|
|
8022
|
-
|
|
8021
|
+
const s = a.filter((c) => !c.path.startsWith(b9)).map((c) => c.path);
|
|
8022
|
+
s && s.length && n(s), a.forEach((c) => F.iframeView.triggerEventListener("onUnloadPage", c.path));
|
|
8023
8023
|
}, X = (a) => {
|
|
8024
|
-
const
|
|
8024
|
+
const s = uA().currentSubAppCode ?? "";
|
|
8025
8025
|
xA.innerSet = !0;
|
|
8026
|
-
const
|
|
8027
|
-
if (
|
|
8026
|
+
const c = ZA(), H = c.tabMap[s], b = H.findIndex((l) => l.code === a.data.code);
|
|
8027
|
+
if (b === -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 === s);
|
|
8031
|
+
j = { ...j, value: j.code, label: j.name }, t(j), F.nav.removeItem(s);
|
|
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 = c.currentCode;
|
|
8040
8040
|
let O = null;
|
|
8041
|
-
j === l.value && (
|
|
8041
|
+
j === l.value && (b + 1 === H.length ? H[b - 1] && (O = H[b - 1]) : H[b + 1] && (O = H[b + 1])), H.splice(b, 1), x([l]), IA([{ key: `tabMap:${s}`, value: H }]), O ? u(O) : IA([{ key: `preTab:${s}`, value: {} }]);
|
|
8042
8042
|
},
|
|
8043
8043
|
all: q,
|
|
8044
8044
|
other: async (l) => {
|
|
8045
|
-
const j = H[
|
|
8045
|
+
const j = H[b];
|
|
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:${s}`, 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 = c.currentCode;
|
|
8055
|
+
if (j !== l.value && H.findIndex((Z) => Z.code === j) > b) {
|
|
8056
|
+
const Z = H[b];
|
|
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(b + 1);
|
|
8060
|
+
O.forEach((N) => F.tab.removeItem(N.code)), x(O), H.splice(b + 1), IA([{ key: `tabMap:${s}`, 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 s = ZA(), c = uA().currentSubAppCode ?? "";
|
|
8068
|
+
s.tabMap[c].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 s = [];
|
|
8071
|
+
const c = ZA().tabMap[a.applicationCode] ?? [];
|
|
8072
8072
|
if (a.type.key === "right") {
|
|
8073
|
-
const H =
|
|
8074
|
-
|
|
8073
|
+
const H = c.findIndex((b) => b.code === a.data.value);
|
|
8074
|
+
s = c.slice(H + 1);
|
|
8075
8075
|
}
|
|
8076
|
-
a.type.key === "other" && (
|
|
8076
|
+
a.type.key === "other" && (s = c.filter((H) => H.code !== a.data.value)), a.type.key === "all" && (s = [...c]), tf(
|
|
8077
8077
|
a.applicationCode,
|
|
8078
|
-
|
|
8078
|
+
s.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 s = QA(zf(a.applicationCode)).find((b) => b.code === a.code);
|
|
8088
|
+
if (!s) return;
|
|
8089
|
+
if (s.routeUrl !== a.path) {
|
|
8090
|
+
d([a.path]), n([`/${a.applicationPath}${s.routeUrl}`]), await z({ currentMenu: s });
|
|
8091
8091
|
return;
|
|
8092
8092
|
}
|
|
8093
|
-
const
|
|
8094
|
-
Oe(
|
|
8093
|
+
const c = { app: s.applicationCode, menu: s.code }, H = { ...a.query };
|
|
8094
|
+
Oe(c, H) || await z({ currentMenu: s }), d([a.path]);
|
|
8095
8095
|
});
|
|
8096
|
-
const { enter:
|
|
8097
|
-
return F.tab.addEventListener("onToggleFullScreen",
|
|
8096
|
+
const { enter: i } = $9();
|
|
8097
|
+
return F.tab.addEventListener("onToggleFullScreen", i), { 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 i = X.code ?? "", s = (uA().subAppList ?? []).find((p) => p.code === i);
|
|
8128
|
+
let c = [], H = [], b = !1;
|
|
8129
|
+
if (s && (c = s.menus ?? []), !c.length) {
|
|
8130
|
+
const { menus: p, originalMenus: m, err: R } = await Je(i);
|
|
8131
8131
|
if (R) return !1;
|
|
8132
|
-
|
|
8132
|
+
c = p ?? [], H = m ?? [];
|
|
8133
8133
|
}
|
|
8134
|
-
if (
|
|
8134
|
+
if (c.length ? bf(c) || (await G9({
|
|
8135
8135
|
title: M("提示"),
|
|
8136
8136
|
content: M("此应用菜单已过期/已收回/配置有误") + "<br/>" + M("无法使用")
|
|
8137
|
-
}),
|
|
8138
|
-
const q = { ...X, menus:
|
|
8137
|
+
}), b = !0) : (await G9({ title: M("提示"), content: M("此应用未配置菜单/无菜单权限") + "<br/>" + M("无法使用") }), b = !0), b) return !1;
|
|
8138
|
+
const q = { ...X, menus: c, 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: i = null, menuCode: a = "", menuPath: s = "", route: c = {} } = X;
|
|
8143
|
+
let H = c;
|
|
8144
|
+
if (!i && s) {
|
|
8145
|
+
if (z(), !(t && t.find((Y) => s.startsWith("/" + Y) || s.startsWith(Y)))) return;
|
|
8146
|
+
await e.push({ path: s, query: H.query });
|
|
8147
8147
|
return;
|
|
8148
8148
|
}
|
|
8149
|
-
const
|
|
8149
|
+
const b = ((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 = (i == null ? void 0 : i.openType) ?? 1, m = (i == null ? void 0 : i.type) ?? 1;
|
|
8153
|
+
if (i.routeUrl && !t.includes(i.routeUrl)) {
|
|
8154
8154
|
Dv({
|
|
8155
|
-
appCode:
|
|
8156
|
-
displayAppName:
|
|
8155
|
+
appCode: i.code,
|
|
8156
|
+
displayAppName: i.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 === i.code)) || G == null || G.push(i), MA([
|
|
8160
|
+
{ key: "currentSubApp", value: i },
|
|
8161
|
+
{ key: "currentSubAppCode", value: i.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(i.code), i.routeUrl.includes("entrance=main")) {
|
|
8167
|
+
await e.push({ path: i.routeUrl, query: { ...H.query, app: i.code } });
|
|
8168
8168
|
return;
|
|
8169
8169
|
}
|
|
8170
8170
|
if (p === 1 && m === 2) {
|
|
8171
|
-
const S = await Hv(
|
|
8171
|
+
const S = await Hv(i.routeUrl, (i == null ? void 0 : i.param) ?? []), C = Ne(me(le(S))), L = `${b9}-${i.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: i.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: i, menuCode: a, menuPath: s, 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) !== (i == null ? void 0 : i.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 || i;
|
|
8211
|
+
if (!l && s) {
|
|
8212
8212
|
await e.push({
|
|
8213
|
-
path:
|
|
8213
|
+
path: s,
|
|
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 (b && 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 i;
|
|
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 = (i = uA().subAppList) == null ? void 0 : i.find((b) => b.code === X.code), s = ZA().preTab[X.code], c = (s == null ? void 0 : s.code) ?? "", H = { ...(s == null ? void 0 : s.query) ?? {} };
|
|
8252
|
+
await n({ microApp: a, menuCode: c, 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 i = uA();
|
|
8262
|
+
if (!((H = i.subAppList) != null && H.length)) return;
|
|
8263
|
+
const a = i.subAppList.findIndex((b) => b.code === X.code);
|
|
8264
8264
|
if (a === -1) return;
|
|
8265
|
-
const
|
|
8266
|
-
if (
|
|
8267
|
-
const
|
|
8268
|
-
|
|
8265
|
+
const s = ZA().tabMap[X.code] ?? [];
|
|
8266
|
+
if (s.length) {
|
|
8267
|
+
const b = s.filter((q) => !q.path.startsWith(b9)).map((q) => q.path);
|
|
8268
|
+
b && b.length && f(b), s.forEach((q) => F.iframeView.triggerEventListener("onUnloadPage", q.path));
|
|
8269
8269
|
}
|
|
8270
|
-
let
|
|
8271
|
-
if (
|
|
8270
|
+
let c = null;
|
|
8271
|
+
if (i.currentSubAppCode === X.code && (a + 1 !== i.subAppList.length ? i.subAppList[a + 1] && (c = i.subAppList[a + 1]) : i.subAppList[a - 1] && (c = i.subAppList[a - 1])), i.subAppList.splice(a, 1), MA([{ key: "subAppList", value: i.subAppList }]), IA([
|
|
8272
8272
|
{ key: `preTab:${X.code}`, value: {} },
|
|
8273
8273
|
{ key: `tabMap:${X.code}`, value: [] }
|
|
8274
|
-
]),
|
|
8275
|
-
const
|
|
8276
|
-
await u(
|
|
8274
|
+
]), c) {
|
|
8275
|
+
const b = { ...c, value: c.code, label: c.name };
|
|
8276
|
+
await u(b), F.nav.setActiveItem(c.code);
|
|
8277
8277
|
}
|
|
8278
|
-
if (!
|
|
8278
|
+
if (!i.subAppList.length) {
|
|
8279
8279
|
if (F.menu.setItems([]), F.tab.setItems([]), location.pathname !== RA && location.pathname !== hA) {
|
|
8280
|
-
const
|
|
8281
|
-
|
|
8280
|
+
const b = Av.find((q) => q.value === RA);
|
|
8281
|
+
b && u(b);
|
|
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 s;
|
|
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 c = 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: c
|
|
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 c = await Hv(t.routeUrl, (t == null ? void 0 : t.param) ?? []), H = Ne(me(le(c)));
|
|
8316
|
+
if (X = `${b9}-${t.code}`, !e.options.routes.find((b) => b.path === X)) {
|
|
8317
|
+
const b = {
|
|
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(b), e.options.routes.push(b);
|
|
8326
8326
|
}
|
|
8327
8327
|
await e.push({ path: X, query: n });
|
|
8328
8328
|
}
|
|
8329
8329
|
if (u === 2) {
|
|
8330
|
-
let
|
|
8331
|
-
|
|
8330
|
+
let c = x === 1 ? `/${t.applicationPath}${t.routeUrl}`.replace(/\/\//g, "/") : t.routeUrl;
|
|
8331
|
+
c = Ne(me(le(c))), xA.innerSet ? (X = fv, await e.push({ path: X, query: n }), c && window.open(c, "_blank")) : x === 1 && (X = c, 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 i = ((s = z.meta) == null ? void 0 : s.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), i && a) {
|
|
8345
|
+
const c = {
|
|
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
|
+
...c,
|
|
8357
|
+
value: c.code,
|
|
8358
|
+
label: c.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: c
|
|
8367
8367
|
},
|
|
8368
8368
|
{
|
|
8369
8369
|
key: `preTab:${t.applicationCode}`,
|
|
8370
|
-
value:
|
|
8370
|
+
value: c
|
|
8371
8371
|
},
|
|
8372
8372
|
{
|
|
8373
8373
|
key: `tabMap:${t.applicationCode}`,
|
|
8374
|
-
value:
|
|
8374
|
+
value: c
|
|
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: i = !0 } = X.query;
|
|
8386
|
+
i === "false" && (i = !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
|
+
}, s = z.filter((l) => l.public);
|
|
8401
|
+
if (s.length) {
|
|
8402
|
+
const l = s.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 c = await a(), H = c.map((l) => l.code), b = ((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 !== b && !H.includes(O.code)), j = q.filter(
|
|
8418
|
+
(O) => b === 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 = c.find((j) => j.code === X.query.app);
|
|
8429
|
+
if (!l && i) {
|
|
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 = c.find((O) => O.routeUrl === l.name);
|
|
8445
|
+
j || (j = c.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 (i) {
|
|
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),
|
|
8476
|
+
if (n = o9(x.path), u = o9(x.query), await f(), xA.innerSet) {
|
|
8477
8477
|
xA.innerSet = !1;
|
|
8478
8478
|
return;
|
|
8479
8479
|
}
|
|
@@ -8490,48 +8490,40 @@ 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
|
-
|
|
8495
|
-
return localStorage.getItem("thirdLogouSource") === "zhongshen" && (d = !0), d;
|
|
8496
|
-
}, r = (d) => {
|
|
8497
|
-
if (localStorage.getItem("thirdLogouSource") === "zhongshen") {
|
|
8498
|
-
const u = `https://iam-uat.shenyejituan.com:6443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(d)}&entityId=AIoT&redirectToLogin=true`;
|
|
8499
|
-
localStorage.removeItem("thirdLogouSource"), location.href = u;
|
|
8500
|
-
}
|
|
8501
|
-
}, P = async () => {
|
|
8502
|
-
const d = {
|
|
8493
|
+
const e = Zn(), A = o6(), f = u9(), v = async () => {
|
|
8494
|
+
const t = {
|
|
8503
8495
|
logout: "/api/justauth/oauth-server/v1/visitor/logout"
|
|
8504
|
-
},
|
|
8496
|
+
}, z = location.origin + hA, d = {
|
|
8505
8497
|
response_type: "code",
|
|
8506
8498
|
scope: "sever",
|
|
8507
8499
|
client_id: "sys",
|
|
8508
8500
|
state: +/* @__PURE__ */ new Date(),
|
|
8509
|
-
redirect_uri:
|
|
8501
|
+
redirect_uri: z,
|
|
8510
8502
|
logout_token: t9(),
|
|
8511
8503
|
// 写用户访问日志逻辑配合
|
|
8512
8504
|
logout: "true"
|
|
8513
8505
|
};
|
|
8514
|
-
f.ssoLocale && (
|
|
8515
|
-
const
|
|
8516
|
-
window.__isAutoCloseApp = !1,
|
|
8517
|
-
}, { entryApp:
|
|
8518
|
-
const
|
|
8519
|
-
if (
|
|
8520
|
-
const { title: i, content:
|
|
8521
|
-
await G9({ title: i, content:
|
|
8506
|
+
f.ssoLocale && (d.locale = "locale");
|
|
8507
|
+
const n = Object.keys(d).map((x) => `${x}=${d[x]}`).join("&"), u = `${f.baseURL}${t.logout}?${n}`;
|
|
8508
|
+
window.__isAutoCloseApp = !1, location.replace(u), sessionStorage.clear(), localStorage.removeItem("idelTime"), Fn();
|
|
8509
|
+
}, { entryApp: r } = m9(), P = async () => {
|
|
8510
|
+
const t = "personCenter", d = (uA().appcategorys || []).map((i) => i.apps).flat(), { originalMenus: n = [] } = await Je(t), x = QA(n).filter((i) => i.isMenu && i.routeUrl).find((i) => i.routeUrl === "/userInfo");
|
|
8511
|
+
if (x != null && x.disable || x != null && x.expired) {
|
|
8512
|
+
const { title: i, content: a, desc: s } = await Ke(x);
|
|
8513
|
+
await G9({ title: i, content: a, desc: s });
|
|
8522
8514
|
return;
|
|
8523
8515
|
}
|
|
8524
|
-
const
|
|
8525
|
-
|
|
8516
|
+
const X = d.find((i) => i.code === t);
|
|
8517
|
+
X && r({ microApp: X, menuPath: `/${X.routeUrl}/userInfo` });
|
|
8526
8518
|
};
|
|
8527
|
-
return F.nav.addEventListener("onUserCommandChange", (
|
|
8528
|
-
var
|
|
8519
|
+
return F.nav.addEventListener("onUserCommandChange", (t) => {
|
|
8520
|
+
var d, n;
|
|
8529
8521
|
({
|
|
8530
|
-
0: (
|
|
8531
|
-
1:
|
|
8532
|
-
2: (
|
|
8533
|
-
3:
|
|
8534
|
-
})[
|
|
8522
|
+
0: (d = A.value) == null ? void 0 : d.openDialog,
|
|
8523
|
+
1: P,
|
|
8524
|
+
2: (n = e.value) == null ? void 0 : n.openDialog,
|
|
8525
|
+
3: v
|
|
8526
|
+
})[t]();
|
|
8535
8527
|
}), {
|
|
8536
8528
|
$changePwd: e,
|
|
8537
8529
|
$personSetDialog: A
|
|
@@ -8554,20 +8546,20 @@ const z6 = (e) => {
|
|
|
8554
8546
|
const [d, n] = await J6().run({ tenant: z });
|
|
8555
8547
|
if (d) return;
|
|
8556
8548
|
A.value = !1;
|
|
8557
|
-
const { access_token: u = "", refresh_token: x = "", expires_in: X = 0, sub:
|
|
8549
|
+
const { access_token: u = "", refresh_token: x = "", expires_in: X = 0, sub: i = "", name: a = "", flag: s = "", tenant: c = "" } = n, H = {
|
|
8558
8550
|
accessToken: u,
|
|
8559
8551
|
accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(X) * 1e3,
|
|
8560
8552
|
refreshToken: x,
|
|
8561
8553
|
info: n
|
|
8562
8554
|
};
|
|
8563
8555
|
Un().save(H), U3(H);
|
|
8564
|
-
const
|
|
8565
|
-
id:
|
|
8556
|
+
const b = {
|
|
8557
|
+
id: i,
|
|
8566
8558
|
name: a,
|
|
8567
|
-
flag:
|
|
8568
|
-
tenantId:
|
|
8559
|
+
flag: s,
|
|
8560
|
+
tenantId: c
|
|
8569
8561
|
};
|
|
8570
|
-
sessionStorage.setItem("hotentUserInfo", JSON.stringify(
|
|
8562
|
+
sessionStorage.setItem("hotentUserInfo", JSON.stringify(b)), hn(u);
|
|
8571
8563
|
let q = "";
|
|
8572
8564
|
if (e != null && e.ssoLocale)
|
|
8573
8565
|
q = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${z}`;
|
|
@@ -8603,8 +8595,8 @@ const z6 = (e) => {
|
|
|
8603
8595
|
return F.nav.addEventListener("searchToPage", async (v) => {
|
|
8604
8596
|
const { item: r, keyword: P, cb: t } = v;
|
|
8605
8597
|
if (r != null && r.disable || r != null && r.expired) {
|
|
8606
|
-
const { title: x, content: X, desc:
|
|
8607
|
-
await G9({ title: x, content: X, desc:
|
|
8598
|
+
const { title: x, content: X, desc: i } = await Ke(r);
|
|
8599
|
+
await G9({ title: x, content: X, desc: i });
|
|
8608
8600
|
return;
|
|
8609
8601
|
}
|
|
8610
8602
|
await C6().run({ searchVal: P, clickData: r });
|
|
@@ -8984,9 +8976,9 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
8984
8976
|
});
|
|
8985
8977
|
}, X = () => {
|
|
8986
8978
|
r.value = !r.value, P.value && (P.value.muted = r.value);
|
|
8987
|
-
},
|
|
8979
|
+
}, i = () => {
|
|
8988
8980
|
t.value = !t.value;
|
|
8989
|
-
}, a = o(""),
|
|
8981
|
+
}, a = o(""), s = () => {
|
|
8990
8982
|
const q = document.createElement("canvas");
|
|
8991
8983
|
if (d.value) {
|
|
8992
8984
|
q.width = d.value.clientWidth, q.height = d.value.clientHeight;
|
|
@@ -8998,11 +8990,11 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
8998
8990
|
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);
|
|
8999
8991
|
}
|
|
9000
8992
|
}
|
|
9001
|
-
},
|
|
8993
|
+
}, c = (q) => {
|
|
9002
8994
|
v("directionControl", q);
|
|
9003
8995
|
}, H = (q) => {
|
|
9004
8996
|
v("zoomControl", q);
|
|
9005
|
-
},
|
|
8997
|
+
}, b = (q) => f.authType.includes(q);
|
|
9006
8998
|
return OA(
|
|
9007
8999
|
() => d.value,
|
|
9008
9000
|
() => {
|
|
@@ -9119,13 +9111,13 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9119
9111
|
B(D(N9), {
|
|
9120
9112
|
class: "icon icon-screenshot",
|
|
9121
9113
|
icon: "screenshot",
|
|
9122
|
-
onClick: DA(
|
|
9114
|
+
onClick: DA(s, ["stop"])
|
|
9123
9115
|
})
|
|
9124
9116
|
]),
|
|
9125
9117
|
_: 1
|
|
9126
9118
|
/* STABLE */
|
|
9127
9119
|
}, 8, ["content"]),
|
|
9128
|
-
|
|
9120
|
+
b("control") ? (fA(), XA(D(WA), {
|
|
9129
9121
|
key: 0,
|
|
9130
9122
|
content: D(M)("聚焦-")
|
|
9131
9123
|
}, {
|
|
@@ -9140,7 +9132,7 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9140
9132
|
_: 1
|
|
9141
9133
|
/* STABLE */
|
|
9142
9134
|
}, 8, ["content"])) : nA("v-if", !0),
|
|
9143
|
-
|
|
9135
|
+
b("control") ? (fA(), XA(D(WA), {
|
|
9144
9136
|
key: 1,
|
|
9145
9137
|
content: D(M)("聚焦+")
|
|
9146
9138
|
}, {
|
|
@@ -9155,7 +9147,7 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9155
9147
|
_: 1
|
|
9156
9148
|
/* STABLE */
|
|
9157
9149
|
}, 8, ["content"])) : nA("v-if", !0),
|
|
9158
|
-
|
|
9150
|
+
b("control") ? (fA(), XA(D(WA), {
|
|
9159
9151
|
key: 2,
|
|
9160
9152
|
content: D(M)("方向控制")
|
|
9161
9153
|
}, {
|
|
@@ -9164,7 +9156,7 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9164
9156
|
key: 0,
|
|
9165
9157
|
class: "icon icon-direction-control",
|
|
9166
9158
|
icon: "direction-control",
|
|
9167
|
-
onClick: DA(
|
|
9159
|
+
onClick: DA(i, ["stop"])
|
|
9168
9160
|
})) : nA("v-if", !0)
|
|
9169
9161
|
]),
|
|
9170
9162
|
_: 1
|
|
@@ -9178,7 +9170,7 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9178
9170
|
]),
|
|
9179
9171
|
t.value ? (fA(), XA(p1, {
|
|
9180
9172
|
key: 1,
|
|
9181
|
-
onChange:
|
|
9173
|
+
onChange: c
|
|
9182
9174
|
})) : nA("v-if", !0)
|
|
9183
9175
|
]),
|
|
9184
9176
|
_: 1
|
|
@@ -9377,8 +9369,8 @@ const y1 = /* @__PURE__ */ qA({
|
|
|
9377
9369
|
let x = {
|
|
9378
9370
|
projectId: P,
|
|
9379
9371
|
deviceIds: n == null ? void 0 : n.deviceId
|
|
9380
|
-
},
|
|
9381
|
-
let
|
|
9372
|
+
}, i = (await v(x)).map((a) => {
|
|
9373
|
+
let s = a.lookupOrOperation == 1;
|
|
9382
9374
|
return {
|
|
9383
9375
|
id: a.id,
|
|
9384
9376
|
productId: a.productId,
|
|
@@ -9386,10 +9378,10 @@ const y1 = /* @__PURE__ */ qA({
|
|
|
9386
9378
|
deviceName: a.deviceName,
|
|
9387
9379
|
authType: a.controlAuthorization == 1 ? 2 : 1,
|
|
9388
9380
|
// 1 查看权限 2 查看+操作权限
|
|
9389
|
-
show: !!
|
|
9381
|
+
show: !!s
|
|
9390
9382
|
};
|
|
9391
9383
|
});
|
|
9392
|
-
A.value =
|
|
9384
|
+
A.value = i.filter((a) => !!a.show), (u = A.value) != null && u.length && W1({ gridNum: e.value, deviceList: A.value });
|
|
9393
9385
|
}
|
|
9394
9386
|
}
|
|
9395
9387
|
}));
|
|
@@ -11189,20 +11181,20 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11189
11181
|
let v = null;
|
|
11190
11182
|
return _A(async () => {
|
|
11191
11183
|
await Df();
|
|
11192
|
-
const r = (
|
|
11184
|
+
const r = (s) => {
|
|
11193
11185
|
try {
|
|
11194
|
-
return JSON.parse(
|
|
11186
|
+
return JSON.parse(s);
|
|
11195
11187
|
} catch {
|
|
11196
11188
|
return !1;
|
|
11197
11189
|
}
|
|
11198
|
-
}, P = async (
|
|
11199
|
-
var
|
|
11200
|
-
const
|
|
11201
|
-
if (Array.isArray(
|
|
11202
|
-
const V =
|
|
11203
|
-
if (
|
|
11204
|
-
if (
|
|
11205
|
-
const j =
|
|
11190
|
+
}, P = async (s) => {
|
|
11191
|
+
var b, q, p, m, R;
|
|
11192
|
+
const c = uA(), H = ((b = c.appcategorys) == null ? void 0 : b.map((V) => V.apps).flat()) || [];
|
|
11193
|
+
if (Array.isArray(s)) {
|
|
11194
|
+
const V = s.filter((l) => l.code).map((l) => l.code);
|
|
11195
|
+
if (s.length) {
|
|
11196
|
+
if (c.currentSubAppCode) {
|
|
11197
|
+
const j = c.currentSubApp.menus ?? [], O = QA(j).find((N) => V.includes(N.code));
|
|
11206
11198
|
if (O) {
|
|
11207
11199
|
f({ currentMenu: O });
|
|
11208
11200
|
return;
|
|
@@ -11212,8 +11204,8 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11212
11204
|
l && A({ microApp: l });
|
|
11213
11205
|
}
|
|
11214
11206
|
}
|
|
11215
|
-
if (typeof
|
|
11216
|
-
let V =
|
|
11207
|
+
if (typeof s == "string") {
|
|
11208
|
+
let V = s;
|
|
11217
11209
|
const l = "_showEchartTooltip", j = V.endsWith(l);
|
|
11218
11210
|
j && (V = V.slice(0, V.indexOf(l)));
|
|
11219
11211
|
const O = "_zdkbInfo", N = V.endsWith(O);
|
|
@@ -11264,30 +11256,30 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11264
11256
|
}
|
|
11265
11257
|
};
|
|
11266
11258
|
let t = o(!0);
|
|
11267
|
-
const z = (
|
|
11259
|
+
const z = (s) => {
|
|
11268
11260
|
setTimeout(async () => {
|
|
11269
|
-
var
|
|
11261
|
+
var c, H;
|
|
11270
11262
|
if (t.value) {
|
|
11271
|
-
const [
|
|
11272
|
-
|
|
11273
|
-
uniqueId:
|
|
11263
|
+
const [b, q] = await l8().run({}, { params: { aliasName: s.actionValue } });
|
|
11264
|
+
b ? await xe().run({
|
|
11265
|
+
uniqueId: s.uniqueId,
|
|
11274
11266
|
status: 0,
|
|
11275
|
-
errorMsg: "未找到" +
|
|
11276
|
-
}) : q.length ? (q.length > 1 ? P(q) : P((
|
|
11277
|
-
uniqueId:
|
|
11267
|
+
errorMsg: "未找到" + s.actionValue
|
|
11268
|
+
}) : q.length ? (q.length > 1 ? P(q) : P((c = q[0]) == null ? void 0 : c.code), await xe().run({
|
|
11269
|
+
uniqueId: s.uniqueId,
|
|
11278
11270
|
status: 1,
|
|
11279
11271
|
targetName: (H = q[0]) == null ? void 0 : H.name
|
|
11280
11272
|
})) : await xe().run({
|
|
11281
|
-
uniqueId:
|
|
11273
|
+
uniqueId: s.uniqueId,
|
|
11282
11274
|
status: 0,
|
|
11283
|
-
errorMsg: "未找到" +
|
|
11275
|
+
errorMsg: "未找到" + s.actionValue
|
|
11284
11276
|
});
|
|
11285
11277
|
}
|
|
11286
11278
|
t.value = !0;
|
|
11287
11279
|
}, 2e3);
|
|
11288
|
-
}, d = (
|
|
11289
|
-
const
|
|
11290
|
-
p8().on(`${
|
|
11280
|
+
}, d = (s) => {
|
|
11281
|
+
const c = t9(), H = JSON.parse(atob(c.split(".")[1])).sub;
|
|
11282
|
+
p8().on(`${s}:${H}`, async function(q) {
|
|
11291
11283
|
let p = r(q);
|
|
11292
11284
|
if (p)
|
|
11293
11285
|
p.uniqueId && p.actionKey == "switch-menu" && z(p);
|
|
@@ -11299,16 +11291,16 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11299
11291
|
}, n = o(""), [u, x] = await g3().run();
|
|
11300
11292
|
n.value = x, d(n.value);
|
|
11301
11293
|
const X = async () => {
|
|
11302
|
-
const [
|
|
11303
|
-
|
|
11294
|
+
const [s, c] = await g3().run();
|
|
11295
|
+
c !== n.value && (n.value = c, d(n.value));
|
|
11304
11296
|
};
|
|
11305
11297
|
v = setInterval(() => {
|
|
11306
11298
|
X();
|
|
11307
11299
|
}, 72e5);
|
|
11308
|
-
const
|
|
11309
|
-
|
|
11300
|
+
const i = o("online"), a = (s) => {
|
|
11301
|
+
s === "online" && i.value === "offline" && setTimeout(() => {
|
|
11310
11302
|
X();
|
|
11311
|
-
}, 5e3),
|
|
11303
|
+
}, 5e3), i.value = (window.navigator.onLine ? "on" : "off") + "line";
|
|
11312
11304
|
};
|
|
11313
11305
|
window.addEventListener("online", () => a("online")), window.addEventListener("offline", () => a("offline"));
|
|
11314
11306
|
}), K9(() => {
|
|
@@ -11372,11 +11364,11 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11372
11364
|
// 事件等级id
|
|
11373
11365
|
timeLimit: ""
|
|
11374
11366
|
// 处置时限
|
|
11375
|
-
}), x = o(!1), X = o([]),
|
|
11367
|
+
}), x = o(!1), X = o([]), i = o([]), a = o([
|
|
11376
11368
|
{ id: 2, name: AA("时").value },
|
|
11377
11369
|
{ id: 1, name: AA("分").value },
|
|
11378
11370
|
{ id: 3, name: AA("不限").value }
|
|
11379
|
-
]),
|
|
11371
|
+
]), s = o([]), c = o(""), H = o(AA("告警对象位置").value), b = o(""), q = o([]), p = o("");
|
|
11380
11372
|
o("[]");
|
|
11381
11373
|
const m = o(!0), R = o(!0), V = async (J) => {
|
|
11382
11374
|
const I = { name: "1" };
|
|
@@ -11402,7 +11394,7 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11402
11394
|
), OA(
|
|
11403
11395
|
O,
|
|
11404
11396
|
(J) => {
|
|
11405
|
-
J ? (n.value.reportTheme = AA("告警对象").value, j.value = !0) : (
|
|
11397
|
+
J ? (n.value.reportTheme = AA("告警对象").value, j.value = !0) : (b.value = AA("请输入").value, n.value.reportTheme = "", j.value = !1);
|
|
11406
11398
|
},
|
|
11407
11399
|
{ immediate: !0 }
|
|
11408
11400
|
);
|
|
@@ -11412,15 +11404,15 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11412
11404
|
}, Q = (J) => {
|
|
11413
11405
|
u.value.reportTheme = "";
|
|
11414
11406
|
}, h = (J, I) => {
|
|
11415
|
-
I.length > 0 && (
|
|
11407
|
+
I.length > 0 && (c.value = I[0].path), n.value.reportPosition = J, p.value = "";
|
|
11416
11408
|
}, _ = (J) => {
|
|
11417
|
-
J && (u.value.reportPosition = "",
|
|
11409
|
+
J && (u.value.reportPosition = "", c.value = ""), J ? (n.value.reportPosition = null, c.value = "", H.value = AA("告警对象位置").value) : (n.value.reportPosition = null, c.value = "", H.value = AA("请选择").value);
|
|
11418
11410
|
}, G = (J) => {
|
|
11419
|
-
J && (u.value.reportTheme = ""), J ? (n.value.reportTheme = "",
|
|
11411
|
+
J && (u.value.reportTheme = ""), J ? (n.value.reportTheme = "", b.value = AA("告警对象").value) : (n.value.reportTheme = "", b.value = AA("请输入").value);
|
|
11420
11412
|
}, Y = () => {
|
|
11421
11413
|
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 = "";
|
|
11422
11414
|
}, S = () => {
|
|
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,
|
|
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, c.value = "", H.value = AA("告警对象位置").value, b.value = AA("请输入").value, n.value.eventTypeId = "", n.value.eventLevelId = null, n.value.timeLimit = "", n.value.interval = 1, X.value = [], i.value = [];
|
|
11424
11416
|
}, C = (J) => {
|
|
11425
11417
|
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);
|
|
11426
11418
|
}, L = async () => {
|
|
@@ -11433,10 +11425,10 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11433
11425
|
}, [I, g] = await M8(J).run();
|
|
11434
11426
|
if (I) return {};
|
|
11435
11427
|
const LA = { 1: AA("一级").value, 2: AA("二级").value, 3: AA("三级").value, 4: AA("四级").value };
|
|
11436
|
-
|
|
11428
|
+
i.value = g.map((CA) => ({
|
|
11437
11429
|
id: `${CA}`,
|
|
11438
11430
|
name: LA[CA] ? LA[CA] : CA
|
|
11439
|
-
})), g.length && !n.value.eventLevelId && (n.value.eventLevelId =
|
|
11431
|
+
})), g.length && !n.value.eventLevelId && (n.value.eventLevelId = i.value[0].id, E());
|
|
11440
11432
|
}, E = async () => {
|
|
11441
11433
|
const J = {
|
|
11442
11434
|
eventTypeId: n.value.eventTypeId,
|
|
@@ -11458,9 +11450,9 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11458
11450
|
P.value = !1;
|
|
11459
11451
|
return;
|
|
11460
11452
|
}
|
|
11461
|
-
P.value = !1,
|
|
11462
|
-
for (let LA = 0; LA <
|
|
11463
|
-
|
|
11453
|
+
P.value = !1, s.value = g;
|
|
11454
|
+
for (let LA = 0; LA < s.value.length; LA++)
|
|
11455
|
+
s.value[LA].id === "createorder" && Z();
|
|
11464
11456
|
}, dA = () => {
|
|
11465
11457
|
let J = !0;
|
|
11466
11458
|
if (n.value.processTypeId == "dealwith")
|
|
@@ -11597,7 +11589,7 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11597
11589
|
type: "select",
|
|
11598
11590
|
modelValue: n.value.processTypeId,
|
|
11599
11591
|
"onUpdate:modelValue": I[0] || (I[0] = (g) => n.value.processTypeId = g),
|
|
11600
|
-
options:
|
|
11592
|
+
options: s.value,
|
|
11601
11593
|
col: 1,
|
|
11602
11594
|
optionsLabelKey: "name",
|
|
11603
11595
|
optionsValueKey: "id",
|
|
@@ -11667,8 +11659,8 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11667
11659
|
props: { disabled: "_disabled", label: "name" },
|
|
11668
11660
|
modelValue: n.value.reportPosition,
|
|
11669
11661
|
"onUpdate:modelValue": I[8] || (I[8] = (g) => n.value.reportPosition = g),
|
|
11670
|
-
path:
|
|
11671
|
-
"onUpdate:path": I[9] || (I[9] = (g) =>
|
|
11662
|
+
path: c.value,
|
|
11663
|
+
"onUpdate:path": I[9] || (I[9] = (g) => c.value = g),
|
|
11672
11664
|
keyword: p.value,
|
|
11673
11665
|
"onUpdate:keyword": I[10] || (I[10] = (g) => p.value = g),
|
|
11674
11666
|
showFullPath: !0,
|
|
@@ -11729,7 +11721,7 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11729
11721
|
disabled: j.value,
|
|
11730
11722
|
modelValue: n.value.reportTheme,
|
|
11731
11723
|
"onUpdate:modelValue": I[14] || (I[14] = (g) => n.value.reportTheme = g),
|
|
11732
|
-
placeholder:
|
|
11724
|
+
placeholder: b.value,
|
|
11733
11725
|
onChange: Q
|
|
11734
11726
|
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
11735
11727
|
B(D(q7), {
|
|
@@ -11799,7 +11791,7 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11799
11791
|
"onUpdate:modelValue": I[22] || (I[22] = (g) => n.value.eventLevelId = g),
|
|
11800
11792
|
error: u.value.eventLevelId,
|
|
11801
11793
|
"onUpdate:error": I[23] || (I[23] = (g) => u.value.eventLevelId = g),
|
|
11802
|
-
options:
|
|
11794
|
+
options: i.value,
|
|
11803
11795
|
col: 1,
|
|
11804
11796
|
optionsLabelKey: "name",
|
|
11805
11797
|
optionsValueKey: "id",
|
|
@@ -12056,13 +12048,13 @@ const cX = () => {
|
|
|
12056
12048
|
j.push({ alarmId: l.recordId }), r.value = j, (O = f.value) == null || O.open();
|
|
12057
12049
|
}, { entryApp: x } = Xf.hooks.useEntryApp(), X = (l) => {
|
|
12058
12050
|
C3(l.equipmentCode, l.equipmentPanelCode);
|
|
12059
|
-
}, { handleAlarmVue:
|
|
12051
|
+
}, { handleAlarmVue: i } = h8(f, r), a = async () => {
|
|
12060
12052
|
var O;
|
|
12061
12053
|
const j = (((O = uA().appcategorys) == null ? void 0 : O.map((N) => N.apps).flat()) ?? []).find((N) => N.code === "alarm");
|
|
12062
12054
|
j && x({ microApp: j, menuPath: `/${j.routeUrl}/realTimeAlarm` });
|
|
12063
|
-
},
|
|
12064
|
-
if (
|
|
12065
|
-
H(
|
|
12055
|
+
}, s = [], c = (l) => {
|
|
12056
|
+
if (s.push(l), P.value.length < 2) {
|
|
12057
|
+
H(s[0]), s.shift();
|
|
12066
12058
|
return;
|
|
12067
12059
|
}
|
|
12068
12060
|
}, H = (l) => {
|
|
@@ -12086,14 +12078,14 @@ const cX = () => {
|
|
|
12086
12078
|
onClose: () => {
|
|
12087
12079
|
setTimeout(() => {
|
|
12088
12080
|
const O = P.value.findIndex((N) => N == j);
|
|
12089
|
-
if (O >= 0 && P.value.splice(O, 1), P.value.length < 2 &&
|
|
12090
|
-
H(
|
|
12081
|
+
if (O >= 0 && P.value.splice(O, 1), P.value.length < 2 && s.length) {
|
|
12082
|
+
H(s[0]), s.shift();
|
|
12091
12083
|
return;
|
|
12092
12084
|
}
|
|
12093
12085
|
}, 300);
|
|
12094
12086
|
}
|
|
12095
|
-
}), P.value.includes(j) || P.value.push(j),
|
|
12096
|
-
},
|
|
12087
|
+
}), P.value.includes(j) || P.value.push(j), b(l);
|
|
12088
|
+
}, b = (l) => {
|
|
12097
12089
|
if (l) {
|
|
12098
12090
|
if (!d.value) {
|
|
12099
12091
|
p();
|
|
@@ -12125,7 +12117,7 @@ const cX = () => {
|
|
|
12125
12117
|
alarmCount: A,
|
|
12126
12118
|
audioObj: n,
|
|
12127
12119
|
audioAlarmRef: v,
|
|
12128
|
-
handleAlarmVue:
|
|
12120
|
+
handleAlarmVue: i,
|
|
12129
12121
|
creatAlarmSocket: async () => {
|
|
12130
12122
|
R();
|
|
12131
12123
|
const [l, j] = await Z8().run({
|
|
@@ -12144,7 +12136,7 @@ const cX = () => {
|
|
|
12144
12136
|
N && e.value.send(N);
|
|
12145
12137
|
},
|
|
12146
12138
|
message: async (N) => {
|
|
12147
|
-
NA.sendMessageToMicroApp("enterpriseadmin/alarm", "alarm:message", { alarmMessage: N }), window.self === window.top && (N.messageType === "ADD" && (A.value = A.value + 1, N.coverId ||
|
|
12139
|
+
NA.sendMessageToMicroApp("enterpriseadmin/alarm", "alarm:message", { alarmMessage: N }), window.self === window.top && (N.messageType === "ADD" && (A.value = A.value + 1, N.coverId || c(N)), N.messageType === "DELETE" && (A.value = A.value - 1, n.value.playId == N.recordId && p()));
|
|
12148
12140
|
}
|
|
12149
12141
|
}));
|
|
12150
12142
|
}
|
|
@@ -12194,9 +12186,9 @@ const cX = () => {
|
|
|
12194
12186
|
},
|
|
12195
12187
|
{ immediate: !0 }
|
|
12196
12188
|
);
|
|
12197
|
-
const { initNextTick: d } = E6(), { loading: n, pageKey: u, innerPage: x, commandList: X, initNextTick:
|
|
12198
|
-
G6(x, d,
|
|
12199
|
-
const { $changePwd: a, $personSetDialog:
|
|
12189
|
+
const { initNextTick: d } = E6(), { loading: n, pageKey: u, innerPage: x, commandList: X, initNextTick: i } = M6(d);
|
|
12190
|
+
G6(x, d, i), Y6(), k6(), S6();
|
|
12191
|
+
const { $changePwd: a, $personSetDialog: s } = U6(), { $aiPanel: c, toApp: H } = f1(), { changeEnterprisesVisible: b, userId: q, tenantId: p, changeEnterprise: m } = Fv();
|
|
12200
12192
|
B6();
|
|
12201
12193
|
const { fontColor: R, backgroudColor: V, borderColor: l } = Q6();
|
|
12202
12194
|
return e1(), v1(X), n1(), P1(), w1(), R8(), (j, O) => (fA(), mA("div", sX, [
|
|
@@ -12229,8 +12221,8 @@ const cX = () => {
|
|
|
12229
12221
|
}, 8, ["platformInitNextTick"]),
|
|
12230
12222
|
nA(" 切换租户 "),
|
|
12231
12223
|
B(D(on), {
|
|
12232
|
-
visible: D(
|
|
12233
|
-
"onUpdate:visible": O[0] || (O[0] = (N) => FA(
|
|
12224
|
+
visible: D(b),
|
|
12225
|
+
"onUpdate:visible": O[0] || (O[0] = (N) => FA(b) ? b.value = N : null),
|
|
12234
12226
|
userId: D(q),
|
|
12235
12227
|
tenantId: D(p),
|
|
12236
12228
|
onConfirm: D(m)
|
|
@@ -12251,7 +12243,7 @@ const cX = () => {
|
|
|
12251
12243
|
D(T6),
|
|
12252
12244
|
{
|
|
12253
12245
|
ref_key: "$personSetDialog",
|
|
12254
|
-
ref:
|
|
12246
|
+
ref: s
|
|
12255
12247
|
},
|
|
12256
12248
|
null,
|
|
12257
12249
|
512
|
|
@@ -12262,7 +12254,7 @@ const cX = () => {
|
|
|
12262
12254
|
platformInitNextTick: D(d),
|
|
12263
12255
|
onToApp: D(H),
|
|
12264
12256
|
ref_key: "$aiPanel",
|
|
12265
|
-
ref:
|
|
12257
|
+
ref: c
|
|
12266
12258
|
}, null, 8, ["platformInitNextTick", "onToApp"]),
|
|
12267
12259
|
nA(" 告警 "),
|
|
12268
12260
|
B(D(iX))
|
|
@@ -12438,11 +12430,11 @@ o("@das-fed/web");
|
|
|
12438
12430
|
const xX = [
|
|
12439
12431
|
{
|
|
12440
12432
|
path: RA,
|
|
12441
|
-
component: () => import("./index-
|
|
12433
|
+
component: () => import("./index-BZhBzU-B.js")
|
|
12442
12434
|
},
|
|
12443
12435
|
{
|
|
12444
12436
|
path: fv,
|
|
12445
|
-
component: () => import("./index-
|
|
12437
|
+
component: () => import("./index-CqfLT8h2.js")
|
|
12446
12438
|
}
|
|
12447
12439
|
], O2 = {
|
|
12448
12440
|
routes: xX,
|