@das-fed/web 7.0.1-beta.4 → 7.0.1-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{packages/main-app-framework/index-CqfLT8h2.js → index-CHIJhK9A.js} +1 -1
- package/{index-CRfB8_jP.js → index-DeLwfYaO.js} +1159 -1153
- package/index-DeLwfYaO.js.gz +0 -0
- package/{packages/main-app-framework/index-BZhBzU-B.js → index-s2j-cJxA.js} +1 -1
- package/index-s2j-cJxA.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/{index-Dou58bml.js → packages/main-app-framework/index-4nULXb-V.js} +1 -1
- package/packages/main-app-framework/index-4nULXb-V.js.gz +0 -0
- package/packages/main-app-framework/{index-DZBJhlG3.js → index-C933IWvF.js} +1030 -1024
- package/packages/main-app-framework/index-C933IWvF.js.gz +0 -0
- package/{index-DbFV_BJP.js → packages/main-app-framework/index-PcZYYf9m.js} +1 -1
- package/packages/main-app-framework/index.js +1 -1
- package/index-CRfB8_jP.js.gz +0 -0
- package/index-Dou58bml.js.gz +0 -0
- package/packages/main-app-framework/index-BZhBzU-B.js.gz +0 -0
- package/packages/main-app-framework/index-DZBJhlG3.js.gz +0 -0
|
@@ -8,10 +8,10 @@ import { DasIconClose2 as jn } from "@das-fed/ui/packages/icons/close-2/index";
|
|
|
8
8
|
import { DasChangePwdRef as Zn, DasChangePwd as Tn } from "@das-fed/ui/packages/business-components/change-pwd/index";
|
|
9
9
|
import { DasChangeEnterprises as on } from "@das-fed/ui/packages/business-components/change-enterprises/index";
|
|
10
10
|
import { DasAiPanel as Ln } from "@das-fed/ui/packages/business-components/ai-panel/index";
|
|
11
|
-
import { getSubApps as uA, getTabInfo as ZA, getToken as t9, getTenantInfo as qf, getProjectInfo as
|
|
11
|
+
import { getSubApps as uA, getTabInfo as ZA, getToken as t9, getTenantInfo as qf, getProjectInfo as YA, getPersonalInfo as _9, getLanguages as a7, getUserInfo as Hf, getMenus as zf } from "@das-fed/utils/common-info";
|
|
12
12
|
import { pureImageSrc as pf } from "@das-fed/utils/pure-image-src";
|
|
13
13
|
import { DasNotification as df } from "@das-fed/ui/packages/components/notification/index";
|
|
14
|
-
import { flatTree as
|
|
14
|
+
import { flatTree as UA, isEmpty as yn, filterTreeArray as Wn, treeFind as i7, setBrowseTitle as wn, dateFormat as En, updateFavIcon as In, runPromiseByQueue as Mn, objEqual as Oe, setShowWatermark as me, setShowLayout as le, getUrlParams as gn, withToken as Bn } from "@das-fed/utils/common-tools";
|
|
15
15
|
import { setProcessEngineProject as G3, setProcessEngineToken as U3 } from "@das-fed/utils/process-engine-info";
|
|
16
16
|
import { oauthServer as J3, justauth as we, enterpriseright as xf, iotModules as kn, portal as e9, systemConfiguration as Of } from "@das-fed/utils/api-services/modules";
|
|
17
17
|
import { createService as oA } from "@das-fed/utils/create-api-service";
|
|
@@ -196,8 +196,8 @@ function Nr(...e) {
|
|
|
196
196
|
Array.isArray(f) || (f = [f]), Array.isArray(v) || (v = [v]);
|
|
197
197
|
const P = [], t = () => {
|
|
198
198
|
P.forEach((u) => u()), P.length = 0;
|
|
199
|
-
}, z = (u, x, X,
|
|
200
|
-
t(), u && P.push(...f.flatMap((X) => v.map((
|
|
199
|
+
}, z = (u, x, X, s) => (u.addEventListener(x, X, s), () => u.removeEventListener(x, X, s)), d = OA(() => [nv(A), ev(r)], ([u, x]) => {
|
|
200
|
+
t(), u && P.push(...f.flatMap((X) => v.map((s) => z(u, X, s, x))));
|
|
201
201
|
}, { immediate: !0, flush: "post" }), n = () => {
|
|
202
202
|
d(), t();
|
|
203
203
|
};
|
|
@@ -256,9 +256,9 @@ function $9(e, A = {}) {
|
|
|
256
256
|
let t = O7[0];
|
|
257
257
|
const z = Rr(() => {
|
|
258
258
|
if (f) {
|
|
259
|
-
for (const
|
|
260
|
-
if (
|
|
261
|
-
return t =
|
|
259
|
+
for (const i of O7)
|
|
260
|
+
if (i[1] in f)
|
|
261
|
+
return t = i, !0;
|
|
262
262
|
} else
|
|
263
263
|
return !1;
|
|
264
264
|
return !1;
|
|
@@ -266,24 +266,24 @@ function $9(e, A = {}) {
|
|
|
266
266
|
async function X() {
|
|
267
267
|
z.value && (f != null && f[u] && await f[n](), P.value = !1);
|
|
268
268
|
}
|
|
269
|
-
async function
|
|
269
|
+
async function s() {
|
|
270
270
|
if (!z.value)
|
|
271
271
|
return;
|
|
272
272
|
await X();
|
|
273
|
-
const
|
|
274
|
-
|
|
273
|
+
const i = nv(r);
|
|
274
|
+
i && (await i[d](), P.value = !0);
|
|
275
275
|
}
|
|
276
|
-
async function
|
|
277
|
-
P.value ? await X() : await
|
|
276
|
+
async function c() {
|
|
277
|
+
P.value ? await X() : await s();
|
|
278
278
|
}
|
|
279
279
|
return f && Nr(f, x, () => {
|
|
280
280
|
P.value = !!(f != null && f[u]);
|
|
281
281
|
}, !1), v && vv(X), {
|
|
282
282
|
isSupported: z,
|
|
283
283
|
isFullscreen: P,
|
|
284
|
-
enter:
|
|
284
|
+
enter: s,
|
|
285
285
|
exit: X,
|
|
286
|
-
toggle:
|
|
286
|
+
toggle: c
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
289
|
var m7;
|
|
@@ -336,64 +336,64 @@ const yr = Yn.get("watermark"), Wr = /* @__PURE__ */ qA({
|
|
|
336
336
|
const A = e, f = o({}), v = o(120), r = o(64), P = o([]), t = o([]), z = k3({
|
|
337
337
|
color: "rgba(0,0,0,.15)",
|
|
338
338
|
fontSize: 16
|
|
339
|
-
}), d = (
|
|
339
|
+
}), d = (i, b) => {
|
|
340
340
|
const H = document.createElement("span");
|
|
341
|
-
H.innerHTML =
|
|
342
|
-
const
|
|
343
|
-
v.value = Math.ceil(
|
|
344
|
-
}, n = o(!1), u = () => new Promise((
|
|
345
|
-
const
|
|
346
|
-
if (n) return
|
|
347
|
-
setTimeout(() =>
|
|
341
|
+
H.innerHTML = i, H.style.fontSize = b + "px", H.style.fontFamily = "sans-serif", H.style.visibility = "hidden", document.body.appendChild(H);
|
|
342
|
+
const a = H.getBoundingClientRect();
|
|
343
|
+
v.value = Math.ceil(a.width) + b / 2, r.value = Math.ceil(a.height), document.body.removeChild(H);
|
|
344
|
+
}, n = o(!1), u = () => new Promise((i) => {
|
|
345
|
+
const b = () => {
|
|
346
|
+
if (n) return i(!0);
|
|
347
|
+
setTimeout(() => b(), 50);
|
|
348
348
|
};
|
|
349
|
-
|
|
350
|
-
}), x = async (
|
|
349
|
+
b();
|
|
350
|
+
}), x = async (i) => {
|
|
351
351
|
var H;
|
|
352
352
|
await u();
|
|
353
|
-
const
|
|
354
|
-
t.value =
|
|
353
|
+
const b = !!((H = f.value) != null && H.pageSwith);
|
|
354
|
+
t.value = i && b ? [...P.value] : [];
|
|
355
355
|
}, X = async () => {
|
|
356
|
-
var
|
|
356
|
+
var a, q, p, m, N, V, l;
|
|
357
357
|
n.value = !0, await (A == null ? void 0 : A.platformInitNextTick());
|
|
358
|
-
const [
|
|
359
|
-
if (
|
|
360
|
-
if (f.value =
|
|
358
|
+
const [i, b] = await yr().run();
|
|
359
|
+
if (i) return null;
|
|
360
|
+
if (f.value = b, !!((a = f.value) != null && a.pageSwith)) {
|
|
361
361
|
P.value = [];
|
|
362
362
|
const { name: j, phone: O } = await fr();
|
|
363
|
-
let
|
|
364
|
-
if ((q = f.value) != null && q.nameSwith && j && (P.value.push(j),
|
|
363
|
+
let R = "";
|
|
364
|
+
if ((q = f.value) != null && q.nameSwith && j && (P.value.push(j), R = R + `${j} `), (p = f.value) != null && p.phoneSwith && O) {
|
|
365
365
|
const Z = O.slice(-4);
|
|
366
|
-
P.value.push(Z),
|
|
366
|
+
P.value.push(Z), R = R + `${Z} `;
|
|
367
367
|
}
|
|
368
|
-
if ((m = f.value) != null && m.textSwith && ((
|
|
368
|
+
if ((m = f.value) != null && m.textSwith && ((N = f.value) != null && N.text)) {
|
|
369
369
|
P.value.push(f.value.text);
|
|
370
370
|
const Z = f.value.text.replaceAll(`
|
|
371
371
|
`, "<br/>");
|
|
372
|
-
|
|
372
|
+
R = R + `${Z}`;
|
|
373
373
|
}
|
|
374
374
|
P.value.length && (P.value = P.value.join(" ").split(`
|
|
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(
|
|
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(R, z.fontSize);
|
|
376
376
|
}
|
|
377
|
-
return n.value = !1,
|
|
377
|
+
return n.value = !1, b;
|
|
378
378
|
};
|
|
379
379
|
X();
|
|
380
|
-
const
|
|
380
|
+
const s = y9(), c = sf();
|
|
381
381
|
return OA(
|
|
382
|
-
() =>
|
|
383
|
-
(
|
|
382
|
+
() => s.currentRoute.value,
|
|
383
|
+
(i) => {
|
|
384
384
|
var q, p, m;
|
|
385
|
-
const
|
|
386
|
-
let
|
|
387
|
-
|
|
385
|
+
const b = !!((q = f.value) != null && q.pageSwith), H = ((p = i.meta) == null ? void 0 : p.showWatermark) ?? !0;
|
|
386
|
+
let a = ((m = i.query) == null ? void 0 : m.showWatermark) ?? !0;
|
|
387
|
+
a === "false" && (a = !1), x(b && !!(H && a));
|
|
388
388
|
},
|
|
389
389
|
{ immediate: !0 }
|
|
390
390
|
), NA.addEventListenerFromMicroApp("systemconfig:watermark-change", async () => {
|
|
391
|
-
var H,
|
|
391
|
+
var H, a;
|
|
392
392
|
await X();
|
|
393
|
-
const
|
|
394
|
-
let
|
|
395
|
-
|
|
396
|
-
}), (
|
|
393
|
+
const i = !!((H = f.value) != null && H.pageSwith);
|
|
394
|
+
let b = ((a = c.query) == null ? void 0 : a.showWatermark) ?? !0;
|
|
395
|
+
b === "false" && (b = !1), x(!!(i && b));
|
|
396
|
+
}), (i, b) => (fA(), XA(D(vr), {
|
|
397
397
|
class: "watermark",
|
|
398
398
|
font: z,
|
|
399
399
|
zIndex: 2147483647,
|
|
@@ -402,7 +402,7 @@ const yr = Yn.get("watermark"), Wr = /* @__PURE__ */ qA({
|
|
|
402
402
|
height: r.value
|
|
403
403
|
}, {
|
|
404
404
|
default: U(() => [
|
|
405
|
-
P9(
|
|
405
|
+
P9(i.$slots, "default", {}, void 0, !0)
|
|
406
406
|
]),
|
|
407
407
|
_: 3
|
|
408
408
|
/* FORWARDED */
|
|
@@ -578,27 +578,27 @@ const kr = (e = {}) => {
|
|
|
578
578
|
const n = d.code, u = (d == null ? void 0 : d.originalCode) ?? "";
|
|
579
579
|
z[n] || (z[n] = []);
|
|
580
580
|
let x = [];
|
|
581
|
-
d != null && d.children && ((X = d == null ? void 0 : d.children) != null && X.length) && (d.children.forEach((
|
|
582
|
-
var
|
|
583
|
-
!(
|
|
584
|
-
code:
|
|
585
|
-
originalCode:
|
|
586
|
-
name:
|
|
587
|
-
}) :
|
|
581
|
+
d != null && d.children && ((X = d == null ? void 0 : d.children) != null && X.length) && (d.children.forEach((s) => {
|
|
582
|
+
var c;
|
|
583
|
+
!(s != null && s.children) || !((c = s.children) != null && c.length) ? x.push({
|
|
584
|
+
code: s.code,
|
|
585
|
+
originalCode: s.originalCode,
|
|
586
|
+
name: s.name
|
|
587
|
+
}) : UA([s]).forEach((b) => {
|
|
588
588
|
x.push({
|
|
589
|
-
code:
|
|
590
|
-
originalCode:
|
|
591
|
-
name:
|
|
589
|
+
code: b.code,
|
|
590
|
+
originalCode: b.originalCode,
|
|
591
|
+
name: b.name
|
|
592
592
|
});
|
|
593
593
|
});
|
|
594
|
-
}), x.forEach((
|
|
595
|
-
let
|
|
596
|
-
|
|
597
|
-
const
|
|
598
|
-
code:
|
|
599
|
-
name:
|
|
594
|
+
}), x.forEach((s) => {
|
|
595
|
+
let c = s.originalCode ? s.originalCode : s.code ? s.code : "";
|
|
596
|
+
c.includes(n + ".") && (c = c.replace(n + ".", "").replaceAll(".", "-")), c.includes(u + ".") && (c = c.replace(u + ".", "").replaceAll(".", "-"));
|
|
597
|
+
const i = {
|
|
598
|
+
code: c,
|
|
599
|
+
name: s.name
|
|
600
600
|
};
|
|
601
|
-
z[n].push(
|
|
601
|
+
z[n].push(i), u && n !== u && (z["origin-auth"] || (z["origin-auth"] = {}), z["origin-auth"][u] || (z["origin-auth"][u] = []), z["origin-auth"][u].push(i));
|
|
602
602
|
}));
|
|
603
603
|
}), v[A] = z, sessionStorage.setItem(f, JSON.stringify(v)), v;
|
|
604
604
|
}, hr = () => {
|
|
@@ -704,11 +704,11 @@ function tA() {
|
|
|
704
704
|
}
|
|
705
705
|
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
706
706
|
}, z = Object.create || /* @__PURE__ */ function() {
|
|
707
|
-
function
|
|
707
|
+
function a() {
|
|
708
708
|
}
|
|
709
709
|
return function(q) {
|
|
710
710
|
var p;
|
|
711
|
-
return
|
|
711
|
+
return a.prototype = q, p = new a(), a.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(a) {
|
|
734
734
|
var q = z(this);
|
|
735
|
-
return
|
|
735
|
+
return a && q.mixIn(a), (!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 a = this.extend();
|
|
753
|
+
return a.init.apply(a, arguments), a;
|
|
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(a) {
|
|
781
|
+
for (var q in a)
|
|
782
|
+
a.hasOwnProperty(q) && (this[q] = a[q]);
|
|
783
|
+
a.hasOwnProperty("toString") && (this.toString = a.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(a, q) {
|
|
812
|
+
a = this.words = a || [], q != r ? this.sigBytes = q : this.sigBytes = a.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(a) {
|
|
828
|
+
return (a || s).stringify(this);
|
|
829
829
|
},
|
|
830
830
|
/**
|
|
831
831
|
* Concatenates a word array to this word array.
|
|
@@ -838,17 +838,17 @@ function tA() {
|
|
|
838
838
|
*
|
|
839
839
|
* wordArray1.concat(wordArray2);
|
|
840
840
|
*/
|
|
841
|
-
concat: function(
|
|
842
|
-
var q = this.words, p =
|
|
841
|
+
concat: function(a) {
|
|
842
|
+
var q = this.words, p = a.words, m = this.sigBytes, N = a.sigBytes;
|
|
843
843
|
if (this.clamp(), m % 4)
|
|
844
|
-
for (var V = 0; V <
|
|
844
|
+
for (var V = 0; V < N; V++) {
|
|
845
845
|
var l = p[V >>> 2] >>> 24 - V % 4 * 8 & 255;
|
|
846
846
|
q[m + V >>> 2] |= l << 24 - (m + V) % 4 * 8;
|
|
847
847
|
}
|
|
848
848
|
else
|
|
849
|
-
for (var j = 0; j <
|
|
849
|
+
for (var j = 0; j < N; j += 4)
|
|
850
850
|
q[m + j >>> 2] = p[j >>> 2];
|
|
851
|
-
return this.sigBytes +=
|
|
851
|
+
return this.sigBytes += N, this;
|
|
852
852
|
},
|
|
853
853
|
/**
|
|
854
854
|
* Removes insignificant bits.
|
|
@@ -858,8 +858,8 @@ function tA() {
|
|
|
858
858
|
* wordArray.clamp();
|
|
859
859
|
*/
|
|
860
860
|
clamp: function() {
|
|
861
|
-
var
|
|
862
|
-
|
|
861
|
+
var a = this.words, q = this.sigBytes;
|
|
862
|
+
a[q >>> 2] &= 4294967295 << 32 - q % 4 * 8, a.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 a = u.clone.call(this);
|
|
875
|
+
return a.words = this.words.slice(0), a;
|
|
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(a) {
|
|
891
|
+
for (var q = [], p = 0; p < a; p += 4)
|
|
892
892
|
q.push(t());
|
|
893
|
-
return new x.init(q,
|
|
893
|
+
return new x.init(q, a);
|
|
894
894
|
}
|
|
895
|
-
}), X = d.enc = {},
|
|
895
|
+
}), X = d.enc = {}, s = X.Hex = {
|
|
896
896
|
/**
|
|
897
897
|
* Converts a word array to a hex string.
|
|
898
898
|
*
|
|
@@ -906,9 +906,9 @@ function tA() {
|
|
|
906
906
|
*
|
|
907
907
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
908
908
|
*/
|
|
909
|
-
stringify: function(
|
|
910
|
-
for (var q =
|
|
911
|
-
var V = q[
|
|
909
|
+
stringify: function(a) {
|
|
910
|
+
for (var q = a.words, p = a.sigBytes, m = [], N = 0; N < p; N++) {
|
|
911
|
+
var V = q[N >>> 2] >>> 24 - N % 4 * 8 & 255;
|
|
912
912
|
m.push((V >>> 4).toString(16)), m.push((V & 15).toString(16));
|
|
913
913
|
}
|
|
914
914
|
return m.join("");
|
|
@@ -926,12 +926,12 @@ 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(a) {
|
|
930
|
+
for (var q = a.length, p = [], m = 0; m < q; m += 2)
|
|
931
|
+
p[m >>> 3] |= parseInt(a.substr(m, 2), 16) << 24 - m % 8 * 4;
|
|
932
932
|
return new x.init(p, q / 2);
|
|
933
933
|
}
|
|
934
|
-
},
|
|
934
|
+
}, c = X.Latin1 = {
|
|
935
935
|
/**
|
|
936
936
|
* Converts a word array to a Latin1 string.
|
|
937
937
|
*
|
|
@@ -945,9 +945,9 @@ function tA() {
|
|
|
945
945
|
*
|
|
946
946
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
947
947
|
*/
|
|
948
|
-
stringify: function(
|
|
949
|
-
for (var q =
|
|
950
|
-
var V = q[
|
|
948
|
+
stringify: function(a) {
|
|
949
|
+
for (var q = a.words, p = a.sigBytes, m = [], N = 0; N < p; N++) {
|
|
950
|
+
var V = q[N >>> 2] >>> 24 - N % 4 * 8 & 255;
|
|
951
951
|
m.push(String.fromCharCode(V));
|
|
952
952
|
}
|
|
953
953
|
return m.join("");
|
|
@@ -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(a) {
|
|
969
|
+
for (var q = a.length, p = [], m = 0; m < q; m++)
|
|
970
|
+
p[m >>> 2] |= (a.charCodeAt(m) & 255) << 24 - m % 4 * 8;
|
|
971
971
|
return new x.init(p, q);
|
|
972
972
|
}
|
|
973
|
-
},
|
|
973
|
+
}, i = X.Utf8 = {
|
|
974
974
|
/**
|
|
975
975
|
* Converts a word array to a UTF-8 string.
|
|
976
976
|
*
|
|
@@ -984,9 +984,9 @@ function tA() {
|
|
|
984
984
|
*
|
|
985
985
|
* var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
|
|
986
986
|
*/
|
|
987
|
-
stringify: function(
|
|
987
|
+
stringify: function(a) {
|
|
988
988
|
try {
|
|
989
|
-
return decodeURIComponent(escape(
|
|
989
|
+
return decodeURIComponent(escape(c.stringify(a)));
|
|
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
|
|
1007
|
+
parse: function(a) {
|
|
1008
|
+
return c.parse(unescape(encodeURIComponent(a)));
|
|
1009
1009
|
}
|
|
1010
|
-
},
|
|
1010
|
+
}, b = n.BufferedBlockAlgorithm = u.extend({
|
|
1011
1011
|
/**
|
|
1012
1012
|
* Resets this block algorithm's data buffer to its initial state.
|
|
1013
1013
|
*
|
|
@@ -1028,8 +1028,8 @@ function tA() {
|
|
|
1028
1028
|
* bufferedBlockAlgorithm._append('data');
|
|
1029
1029
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
1030
1030
|
*/
|
|
1031
|
-
_append: function(
|
|
1032
|
-
typeof
|
|
1031
|
+
_append: function(a) {
|
|
1032
|
+
typeof a == "string" && (a = i.parse(a)), this._data.concat(a), this._nDataBytes += a.sigBytes;
|
|
1033
1033
|
},
|
|
1034
1034
|
/**
|
|
1035
1035
|
* Processes available data blocks.
|
|
@@ -1045,16 +1045,16 @@ function tA() {
|
|
|
1045
1045
|
* var processedData = bufferedBlockAlgorithm._process();
|
|
1046
1046
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
1047
1047
|
*/
|
|
1048
|
-
_process: function(
|
|
1049
|
-
var q, p = this._data, m = p.words,
|
|
1050
|
-
|
|
1051
|
-
var O = j * V,
|
|
1048
|
+
_process: function(a) {
|
|
1049
|
+
var q, p = this._data, m = p.words, N = p.sigBytes, V = this.blockSize, l = V * 4, j = N / l;
|
|
1050
|
+
a ? j = v.ceil(j) : j = v.max((j | 0) - this._minBufferSize, 0);
|
|
1051
|
+
var O = j * V, R = v.min(O * 4, N);
|
|
1052
1052
|
if (O) {
|
|
1053
1053
|
for (var Z = 0; Z < O; Z += V)
|
|
1054
1054
|
this._doProcessBlock(m, Z);
|
|
1055
|
-
q = m.splice(0, O), p.sigBytes -=
|
|
1055
|
+
q = m.splice(0, O), p.sigBytes -= R;
|
|
1056
1056
|
}
|
|
1057
|
-
return new x.init(q,
|
|
1057
|
+
return new x.init(q, R);
|
|
1058
1058
|
},
|
|
1059
1059
|
/**
|
|
1060
1060
|
* Creates a copy of this object.
|
|
@@ -1066,12 +1066,12 @@ function tA() {
|
|
|
1066
1066
|
* var clone = bufferedBlockAlgorithm.clone();
|
|
1067
1067
|
*/
|
|
1068
1068
|
clone: function() {
|
|
1069
|
-
var
|
|
1070
|
-
return
|
|
1069
|
+
var a = u.clone.call(this);
|
|
1070
|
+
return a._data = this._data.clone(), a;
|
|
1071
1071
|
},
|
|
1072
1072
|
_minBufferSize: 0
|
|
1073
1073
|
});
|
|
1074
|
-
n.Hasher =
|
|
1074
|
+
n.Hasher = b.extend({
|
|
1075
1075
|
/**
|
|
1076
1076
|
* Configuration options.
|
|
1077
1077
|
*/
|
|
@@ -1085,8 +1085,8 @@ function tA() {
|
|
|
1085
1085
|
*
|
|
1086
1086
|
* var hasher = CryptoJS.algo.SHA256.create();
|
|
1087
1087
|
*/
|
|
1088
|
-
init: function(
|
|
1089
|
-
this.cfg = this.cfg.extend(
|
|
1088
|
+
init: function(a) {
|
|
1089
|
+
this.cfg = this.cfg.extend(a), this.reset();
|
|
1090
1090
|
},
|
|
1091
1091
|
/**
|
|
1092
1092
|
* Resets this hasher to its initial state.
|
|
@@ -1096,7 +1096,7 @@ function tA() {
|
|
|
1096
1096
|
* hasher.reset();
|
|
1097
1097
|
*/
|
|
1098
1098
|
reset: function() {
|
|
1099
|
-
|
|
1099
|
+
b.reset.call(this), this._doReset();
|
|
1100
1100
|
},
|
|
1101
1101
|
/**
|
|
1102
1102
|
* Updates this hasher with a message.
|
|
@@ -1110,8 +1110,8 @@ function tA() {
|
|
|
1110
1110
|
* hasher.update('message');
|
|
1111
1111
|
* hasher.update(wordArray);
|
|
1112
1112
|
*/
|
|
1113
|
-
update: function(
|
|
1114
|
-
return this._append(
|
|
1113
|
+
update: function(a) {
|
|
1114
|
+
return this._append(a), 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(a) {
|
|
1131
|
+
a && this._append(a);
|
|
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(a) {
|
|
1150
1150
|
return function(q, p) {
|
|
1151
|
-
return new
|
|
1151
|
+
return new a.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(a) {
|
|
1168
1168
|
return function(q, p) {
|
|
1169
|
-
return new H.HMAC.init(
|
|
1169
|
+
return new H.HMAC.init(a, p).finalize(q);
|
|
1170
1170
|
};
|
|
1171
1171
|
}
|
|
1172
1172
|
});
|
|
@@ -1383,8 +1383,8 @@ function Vf() {
|
|
|
1383
1383
|
*/
|
|
1384
1384
|
toX32: function() {
|
|
1385
1385
|
for (var n = this.words, u = n.length, x = [], X = 0; X < u; X++) {
|
|
1386
|
-
var
|
|
1387
|
-
x.push(
|
|
1386
|
+
var s = n[X];
|
|
1387
|
+
x.push(s.high), x.push(s.low);
|
|
1388
1388
|
}
|
|
1389
1389
|
return z.create(x, this.sigBytes);
|
|
1390
1390
|
},
|
|
@@ -1453,8 +1453,8 @@ function zP() {
|
|
|
1453
1453
|
*/
|
|
1454
1454
|
stringify: function(d) {
|
|
1455
1455
|
for (var n = d.words, u = d.sigBytes, x = [], X = 0; X < u; X += 2) {
|
|
1456
|
-
var
|
|
1457
|
-
x.push(String.fromCharCode(
|
|
1456
|
+
var s = n[X >>> 2] >>> 16 - X % 4 * 8 & 65535;
|
|
1457
|
+
x.push(String.fromCharCode(s));
|
|
1458
1458
|
}
|
|
1459
1459
|
return x.join("");
|
|
1460
1460
|
},
|
|
@@ -1492,8 +1492,8 @@ function zP() {
|
|
|
1492
1492
|
*/
|
|
1493
1493
|
stringify: function(d) {
|
|
1494
1494
|
for (var n = d.words, u = d.sigBytes, x = [], X = 0; X < u; X += 2) {
|
|
1495
|
-
var
|
|
1496
|
-
x.push(String.fromCharCode(
|
|
1495
|
+
var s = z(n[X >>> 2] >>> 16 - X % 4 * 8 & 65535);
|
|
1496
|
+
x.push(String.fromCharCode(s));
|
|
1497
1497
|
}
|
|
1498
1498
|
return x.join("");
|
|
1499
1499
|
},
|
|
@@ -1548,9 +1548,9 @@ function H9() {
|
|
|
1548
1548
|
stringify: function(d) {
|
|
1549
1549
|
var n = d.words, u = d.sigBytes, x = this._map;
|
|
1550
1550
|
d.clamp();
|
|
1551
|
-
for (var X = [],
|
|
1552
|
-
for (var
|
|
1553
|
-
X.push(x.charAt(H >>> 6 * (3 -
|
|
1551
|
+
for (var X = [], s = 0; s < u; s += 3)
|
|
1552
|
+
for (var c = n[s >>> 2] >>> 24 - s % 4 * 8 & 255, i = n[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255, b = n[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255, H = c << 16 | i << 8 | b, a = 0; a < 4 && s + a * 0.75 < u; a++)
|
|
1553
|
+
X.push(x.charAt(H >>> 6 * (3 - a) & 63));
|
|
1554
1554
|
var q = x.charAt(64);
|
|
1555
1555
|
if (q)
|
|
1556
1556
|
for (; X.length % 4; )
|
|
@@ -1577,20 +1577,20 @@ 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
|
|
1583
|
-
|
|
1580
|
+
var s = u.charAt(64);
|
|
1581
|
+
if (s) {
|
|
1582
|
+
var c = d.indexOf(s);
|
|
1583
|
+
c !== -1 && (n = c);
|
|
1584
1584
|
}
|
|
1585
1585
|
return z(d, n, x);
|
|
1586
1586
|
},
|
|
1587
1587
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
1588
1588
|
};
|
|
1589
1589
|
function z(d, n, u) {
|
|
1590
|
-
for (var x = [], X = 0,
|
|
1591
|
-
if (
|
|
1592
|
-
var
|
|
1593
|
-
x[X >>> 2] |=
|
|
1590
|
+
for (var x = [], X = 0, s = 0; s < n; s++)
|
|
1591
|
+
if (s % 4) {
|
|
1592
|
+
var c = u[d.charCodeAt(s - 1)] << s % 4 * 2, i = u[d.charCodeAt(s)] >>> 6 - s % 4 * 2, b = c | i;
|
|
1593
|
+
x[X >>> 2] |= b << 24 - X % 4 * 8, X++;
|
|
1594
1594
|
}
|
|
1595
1595
|
return P.create(x, X);
|
|
1596
1596
|
}
|
|
@@ -1626,14 +1626,14 @@ function dP() {
|
|
|
1626
1626
|
n === void 0 && (n = !0);
|
|
1627
1627
|
var u = d.words, x = d.sigBytes, X = n ? this._safe_map : this._map;
|
|
1628
1628
|
d.clamp();
|
|
1629
|
-
for (var
|
|
1630
|
-
for (var
|
|
1631
|
-
|
|
1629
|
+
for (var s = [], c = 0; c < x; c += 3)
|
|
1630
|
+
for (var i = u[c >>> 2] >>> 24 - c % 4 * 8 & 255, b = u[c + 1 >>> 2] >>> 24 - (c + 1) % 4 * 8 & 255, H = u[c + 2 >>> 2] >>> 24 - (c + 2) % 4 * 8 & 255, a = i << 16 | b << 8 | H, q = 0; q < 4 && c + q * 0.75 < x; q++)
|
|
1631
|
+
s.push(X.charAt(a >>> 6 * (3 - q) & 63));
|
|
1632
1632
|
var p = X.charAt(64);
|
|
1633
1633
|
if (p)
|
|
1634
|
-
for (;
|
|
1635
|
-
|
|
1636
|
-
return
|
|
1634
|
+
for (; s.length % 4; )
|
|
1635
|
+
s.push(p);
|
|
1636
|
+
return s.join("");
|
|
1637
1637
|
},
|
|
1638
1638
|
/**
|
|
1639
1639
|
* Converts a Base64url string to a word array.
|
|
@@ -1655,13 +1655,13 @@ function dP() {
|
|
|
1655
1655
|
var u = d.length, x = n ? this._safe_map : this._map, X = this._reverseMap;
|
|
1656
1656
|
if (!X) {
|
|
1657
1657
|
X = this._reverseMap = [];
|
|
1658
|
-
for (var
|
|
1659
|
-
X[x.charCodeAt(
|
|
1658
|
+
for (var s = 0; s < x.length; s++)
|
|
1659
|
+
X[x.charCodeAt(s)] = s;
|
|
1660
1660
|
}
|
|
1661
|
-
var
|
|
1662
|
-
if (
|
|
1663
|
-
var
|
|
1664
|
-
|
|
1661
|
+
var c = x.charAt(64);
|
|
1662
|
+
if (c) {
|
|
1663
|
+
var i = d.indexOf(c);
|
|
1664
|
+
i !== -1 && (u = i);
|
|
1665
1665
|
}
|
|
1666
1666
|
return z(d, u, X);
|
|
1667
1667
|
},
|
|
@@ -1669,10 +1669,10 @@ function dP() {
|
|
|
1669
1669
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
1670
1670
|
};
|
|
1671
1671
|
function z(d, n, u) {
|
|
1672
|
-
for (var x = [], X = 0,
|
|
1673
|
-
if (
|
|
1674
|
-
var
|
|
1675
|
-
x[X >>> 2] |=
|
|
1672
|
+
for (var x = [], X = 0, s = 0; s < n; s++)
|
|
1673
|
+
if (s % 4) {
|
|
1674
|
+
var c = u[d.charCodeAt(s - 1)] << s % 4 * 2, i = u[d.charCodeAt(s)] >>> 6 - s % 4 * 2, b = c | i;
|
|
1675
|
+
x[X >>> 2] |= b << 24 - X % 4 * 8, X++;
|
|
1676
1676
|
}
|
|
1677
1677
|
return P.create(x, X);
|
|
1678
1678
|
}
|
|
@@ -1689,8 +1689,8 @@ function p9() {
|
|
|
1689
1689
|
return function(v) {
|
|
1690
1690
|
var r = f, P = r.lib, t = P.WordArray, z = P.Hasher, d = r.algo, n = [];
|
|
1691
1691
|
(function() {
|
|
1692
|
-
for (var
|
|
1693
|
-
n[
|
|
1692
|
+
for (var i = 0; i < 64; i++)
|
|
1693
|
+
n[i] = v.abs(v.sin(i + 1)) * 4294967296 | 0;
|
|
1694
1694
|
})();
|
|
1695
1695
|
var u = d.MD5 = z.extend({
|
|
1696
1696
|
_doReset: function() {
|
|
@@ -1701,45 +1701,45 @@ function p9() {
|
|
|
1701
1701
|
271733878
|
|
1702
1702
|
]);
|
|
1703
1703
|
},
|
|
1704
|
-
_doProcessBlock: function(
|
|
1704
|
+
_doProcessBlock: function(i, b) {
|
|
1705
1705
|
for (var H = 0; H < 16; H++) {
|
|
1706
|
-
var
|
|
1707
|
-
|
|
1706
|
+
var a = b + H, q = i[a];
|
|
1707
|
+
i[a] = (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,
|
|
1709
|
+
var p = this._hash.words, m = i[b + 0], N = i[b + 1], V = i[b + 2], l = i[b + 3], j = i[b + 4], O = i[b + 5], R = i[b + 6], Z = i[b + 7], T = i[b + 8], Q = i[b + 9], h = i[b + 10], _ = i[b + 11], G = i[b + 12], Y = i[b + 13], S = i[b + 14], C = i[b + 15], L = p[0], W = p[1], E = p[2], w = p[3];
|
|
1710
|
+
L = x(L, W, E, w, m, 7, n[0]), w = x(w, L, W, E, N, 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, R, 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, N, 5, n[16]), w = X(w, L, W, E, R, 9, n[17]), E = X(E, w, L, W, _, 14, n[18]), W = X(W, E, w, L, m, 20, n[19]), L = X(L, W, E, w, O, 5, n[20]), w = X(w, L, W, E, h, 9, n[21]), E = X(E, w, L, W, C, 14, n[22]), W = X(W, E, w, L, j, 20, n[23]), L = X(L, W, E, w, Q, 5, n[24]), w = X(w, L, W, E, S, 9, n[25]), E = X(E, w, L, W, l, 14, n[26]), W = X(W, E, w, L, T, 20, n[27]), L = X(L, W, E, w, Y, 5, n[28]), w = X(w, L, W, E, V, 9, n[29]), E = X(E, w, L, W, Z, 14, n[30]), W = X(W, E, w, L, G, 20, n[31]), L = s(L, W, E, w, O, 4, n[32]), w = s(w, L, W, E, T, 11, n[33]), E = s(E, w, L, W, _, 16, n[34]), W = s(W, E, w, L, S, 23, n[35]), L = s(L, W, E, w, N, 4, n[36]), w = s(w, L, W, E, j, 11, n[37]), E = s(E, w, L, W, Z, 16, n[38]), W = s(W, E, w, L, h, 23, n[39]), L = s(L, W, E, w, Y, 4, n[40]), w = s(w, L, W, E, m, 11, n[41]), E = s(E, w, L, W, l, 16, n[42]), W = s(W, E, w, L, R, 23, n[43]), L = s(L, W, E, w, Q, 4, n[44]), w = s(w, L, W, E, G, 11, n[45]), E = s(E, w, L, W, C, 16, n[46]), W = s(W, E, w, L, V, 23, n[47]), L = c(L, W, E, w, m, 6, n[48]), w = c(w, L, W, E, Z, 10, n[49]), E = c(E, w, L, W, S, 15, n[50]), W = c(W, E, w, L, O, 21, n[51]), L = c(L, W, E, w, G, 6, n[52]), w = c(w, L, W, E, l, 10, n[53]), E = c(E, w, L, W, h, 15, n[54]), W = c(W, E, w, L, N, 21, n[55]), L = c(L, W, E, w, T, 6, n[56]), w = c(w, L, W, E, C, 10, n[57]), E = c(E, w, L, W, R, 15, n[58]), W = c(W, E, w, L, Y, 21, n[59]), L = c(L, W, E, w, j, 6, n[60]), w = c(w, L, W, E, _, 10, n[61]), E = c(E, w, L, W, V, 15, n[62]), W = c(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
|
-
|
|
1713
|
+
var i = this._data, b = i.words, H = this._nDataBytes * 8, a = i.sigBytes * 8;
|
|
1714
|
+
b[a >>> 5] |= 128 << 24 - a % 32;
|
|
1715
1715
|
var q = v.floor(H / 4294967296), p = H;
|
|
1716
|
-
|
|
1717
|
-
for (var m = this._hash,
|
|
1718
|
-
var l =
|
|
1719
|
-
|
|
1716
|
+
b[(a + 64 >>> 9 << 4) + 15] = (q << 8 | q >>> 24) & 16711935 | (q << 24 | q >>> 8) & 4278255360, b[(a + 64 >>> 9 << 4) + 14] = (p << 8 | p >>> 24) & 16711935 | (p << 24 | p >>> 8) & 4278255360, i.sigBytes = (b.length + 1) * 4, this._process();
|
|
1717
|
+
for (var m = this._hash, N = m.words, V = 0; V < 4; V++) {
|
|
1718
|
+
var l = N[V];
|
|
1719
|
+
N[V] = (l << 8 | l >>> 24) & 16711935 | (l << 24 | l >>> 8) & 4278255360;
|
|
1720
1720
|
}
|
|
1721
1721
|
return m;
|
|
1722
1722
|
},
|
|
1723
1723
|
clone: function() {
|
|
1724
|
-
var
|
|
1725
|
-
return
|
|
1724
|
+
var i = z.clone.call(this);
|
|
1725
|
+
return i._hash = this._hash.clone(), i;
|
|
1726
1726
|
}
|
|
1727
1727
|
});
|
|
1728
|
-
function x(
|
|
1729
|
-
var
|
|
1730
|
-
return (
|
|
1728
|
+
function x(i, b, H, a, q, p, m) {
|
|
1729
|
+
var N = i + (b & H | ~b & a) + q + m;
|
|
1730
|
+
return (N << p | N >>> 32 - p) + b;
|
|
1731
1731
|
}
|
|
1732
|
-
function X(
|
|
1733
|
-
var
|
|
1734
|
-
return (
|
|
1732
|
+
function X(i, b, H, a, q, p, m) {
|
|
1733
|
+
var N = i + (b & a | H & ~a) + q + m;
|
|
1734
|
+
return (N << p | N >>> 32 - p) + b;
|
|
1735
1735
|
}
|
|
1736
|
-
function i
|
|
1737
|
-
var
|
|
1738
|
-
return (
|
|
1736
|
+
function s(i, b, H, a, q, p, m) {
|
|
1737
|
+
var N = i + (b ^ H ^ a) + q + m;
|
|
1738
|
+
return (N << p | N >>> 32 - p) + b;
|
|
1739
1739
|
}
|
|
1740
|
-
function
|
|
1741
|
-
var
|
|
1742
|
-
return (
|
|
1740
|
+
function c(i, b, H, a, q, p, m) {
|
|
1741
|
+
var N = i + (H ^ (b | ~a)) + q + m;
|
|
1742
|
+
return (N << p | N >>> 32 - p) + b;
|
|
1743
1743
|
}
|
|
1744
1744
|
r.MD5 = z._createHelper(u), r.HmacMD5 = z._createHmacHelper(u);
|
|
1745
1745
|
}(Math), f.MD5;
|
|
@@ -1764,21 +1764,21 @@ function dv() {
|
|
|
1764
1764
|
]);
|
|
1765
1765
|
},
|
|
1766
1766
|
_doProcessBlock: function(u, x) {
|
|
1767
|
-
for (var X = this._hash.words,
|
|
1768
|
-
if (
|
|
1769
|
-
d[
|
|
1767
|
+
for (var X = this._hash.words, s = X[0], c = X[1], i = X[2], b = X[3], H = X[4], a = 0; a < 80; a++) {
|
|
1768
|
+
if (a < 16)
|
|
1769
|
+
d[a] = u[x + a] | 0;
|
|
1770
1770
|
else {
|
|
1771
|
-
var q = d[
|
|
1772
|
-
d[
|
|
1771
|
+
var q = d[a - 3] ^ d[a - 8] ^ d[a - 14] ^ d[a - 16];
|
|
1772
|
+
d[a] = q << 1 | q >>> 31;
|
|
1773
1773
|
}
|
|
1774
|
-
var p = (
|
|
1775
|
-
|
|
1774
|
+
var p = (s << 5 | s >>> 27) + H + d[a];
|
|
1775
|
+
a < 20 ? p += (c & i | ~c & b) + 1518500249 : a < 40 ? p += (c ^ i ^ b) + 1859775393 : a < 60 ? p += (c & i | c & b | i & b) - 1894007588 : p += (c ^ i ^ b) - 899497514, H = b, b = i, i = c << 30 | c >>> 2, c = s, s = p;
|
|
1776
1776
|
}
|
|
1777
|
-
X[0] = X[0] +
|
|
1777
|
+
X[0] = X[0] + s | 0, X[1] = X[1] + c | 0, X[2] = X[2] + i | 0, X[3] = X[3] + b | 0, X[4] = X[4] + H | 0;
|
|
1778
1778
|
},
|
|
1779
1779
|
_doFinalize: function() {
|
|
1780
|
-
var u = this._data, x = u.words, X = this._nDataBytes * 8,
|
|
1781
|
-
return x[
|
|
1780
|
+
var u = this._data, x = u.words, X = this._nDataBytes * 8, s = u.sigBytes * 8;
|
|
1781
|
+
return x[s >>> 5] |= 128 << 24 - s % 32, x[(s + 64 >>> 9 << 4) + 14] = Math.floor(X / 4294967296), x[(s + 64 >>> 9 << 4) + 15] = X, u.sigBytes = x.length * 4, this._process(), this._hash;
|
|
1782
1782
|
},
|
|
1783
1783
|
clone: function() {
|
|
1784
1784
|
var u = t.clone.call(this);
|
|
@@ -1799,42 +1799,42 @@ function ke() {
|
|
|
1799
1799
|
return function(v) {
|
|
1800
1800
|
var r = f, P = r.lib, t = P.WordArray, z = P.Hasher, d = r.algo, n = [], u = [];
|
|
1801
1801
|
(function() {
|
|
1802
|
-
function
|
|
1803
|
-
for (var
|
|
1802
|
+
function s(H) {
|
|
1803
|
+
for (var a = v.sqrt(H), q = 2; q <= a; q++)
|
|
1804
1804
|
if (!(H % q))
|
|
1805
1805
|
return !1;
|
|
1806
1806
|
return !0;
|
|
1807
1807
|
}
|
|
1808
|
-
function
|
|
1808
|
+
function c(H) {
|
|
1809
1809
|
return (H - (H | 0)) * 4294967296 | 0;
|
|
1810
1810
|
}
|
|
1811
|
-
for (var
|
|
1812
|
-
i
|
|
1811
|
+
for (var i = 2, b = 0; b < 64; )
|
|
1812
|
+
s(i) && (b < 8 && (n[b] = c(v.pow(i, 1 / 2))), u[b] = c(v.pow(i, 1 / 3)), b++), i++;
|
|
1813
1813
|
})();
|
|
1814
1814
|
var x = [], X = d.SHA256 = z.extend({
|
|
1815
1815
|
_doReset: function() {
|
|
1816
1816
|
this._hash = new t.init(n.slice(0));
|
|
1817
1817
|
},
|
|
1818
|
-
_doProcessBlock: function(
|
|
1819
|
-
for (var
|
|
1818
|
+
_doProcessBlock: function(s, c) {
|
|
1819
|
+
for (var i = this._hash.words, b = i[0], H = i[1], a = i[2], q = i[3], p = i[4], m = i[5], N = i[6], V = i[7], l = 0; l < 64; l++) {
|
|
1820
1820
|
if (l < 16)
|
|
1821
|
-
x[l] =
|
|
1821
|
+
x[l] = s[c + l] | 0;
|
|
1822
1822
|
else {
|
|
1823
|
-
var j = x[l - 15], O = (j << 25 | j >>> 7) ^ (j << 14 | j >>> 18) ^ j >>> 3,
|
|
1823
|
+
var j = x[l - 15], O = (j << 25 | j >>> 7) ^ (j << 14 | j >>> 18) ^ j >>> 3, R = x[l - 2], Z = (R << 15 | R >>> 17) ^ (R << 13 | R >>> 19) ^ R >>> 10;
|
|
1824
1824
|
x[l] = O + x[l - 7] + Z + x[l - 16];
|
|
1825
1825
|
}
|
|
1826
|
-
var T = p & m ^ ~p &
|
|
1827
|
-
V =
|
|
1826
|
+
var T = p & m ^ ~p & N, Q = b & H ^ b & a ^ H & a, h = (b << 30 | b >>> 2) ^ (b << 19 | b >>> 13) ^ (b << 10 | b >>> 22), _ = (p << 26 | p >>> 6) ^ (p << 21 | p >>> 11) ^ (p << 7 | p >>> 25), G = V + _ + T + u[l] + x[l], Y = h + Q;
|
|
1827
|
+
V = N, N = m, m = p, p = q + G | 0, q = a, a = H, H = b, b = G + Y | 0;
|
|
1828
1828
|
}
|
|
1829
|
-
|
|
1829
|
+
i[0] = i[0] + b | 0, i[1] = i[1] + H | 0, i[2] = i[2] + a | 0, i[3] = i[3] + q | 0, i[4] = i[4] + p | 0, i[5] = i[5] + m | 0, i[6] = i[6] + N | 0, i[7] = i[7] + V | 0;
|
|
1830
1830
|
},
|
|
1831
1831
|
_doFinalize: function() {
|
|
1832
|
-
var
|
|
1833
|
-
return
|
|
1832
|
+
var s = this._data, c = s.words, i = this._nDataBytes * 8, b = s.sigBytes * 8;
|
|
1833
|
+
return c[b >>> 5] |= 128 << 24 - b % 32, c[(b + 64 >>> 9 << 4) + 14] = v.floor(i / 4294967296), c[(b + 64 >>> 9 << 4) + 15] = i, s.sigBytes = c.length * 4, this._process(), this._hash;
|
|
1834
1834
|
},
|
|
1835
1835
|
clone: function() {
|
|
1836
|
-
var
|
|
1837
|
-
return
|
|
1836
|
+
var s = z.clone.call(this);
|
|
1837
|
+
return s._hash = this._hash.clone(), s;
|
|
1838
1838
|
}
|
|
1839
1839
|
});
|
|
1840
1840
|
r.SHA256 = z._createHelper(X), r.HmacSHA256 = z._createHmacHelper(X);
|
|
@@ -1966,10 +1966,10 @@ function Xv() {
|
|
|
1966
1966
|
u(1816402316, 1246189591)
|
|
1967
1967
|
], X = [];
|
|
1968
1968
|
(function() {
|
|
1969
|
-
for (var
|
|
1970
|
-
X[
|
|
1969
|
+
for (var c = 0; c < 80; c++)
|
|
1970
|
+
X[c] = u();
|
|
1971
1971
|
})();
|
|
1972
|
-
var
|
|
1972
|
+
var s = n.SHA512 = P.extend({
|
|
1973
1973
|
_doReset: function() {
|
|
1974
1974
|
this._hash = new d.init([
|
|
1975
1975
|
new z.init(1779033703, 4089235720),
|
|
@@ -1982,33 +1982,33 @@ function Xv() {
|
|
|
1982
1982
|
new z.init(1541459225, 327033209)
|
|
1983
1983
|
]);
|
|
1984
1984
|
},
|
|
1985
|
-
_doProcessBlock: function(
|
|
1986
|
-
for (var
|
|
1987
|
-
var
|
|
1985
|
+
_doProcessBlock: function(c, i) {
|
|
1986
|
+
for (var b = this._hash.words, H = b[0], a = b[1], q = b[2], p = b[3], m = b[4], N = b[5], V = b[6], l = b[7], j = H.high, O = H.low, R = a.high, Z = a.low, T = q.high, Q = q.low, h = p.high, _ = p.low, G = m.high, Y = m.low, S = N.high, C = N.low, L = V.high, W = V.low, E = l.high, w = l.low, zA = j, dA = O, lA = R, 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
|
+
var GA, n9, nf = X[JA];
|
|
1988
1988
|
if (JA < 16)
|
|
1989
|
-
n9 = nf.high =
|
|
1989
|
+
n9 = nf.high = c[i + JA * 2] | 0, GA = nf.low = c[i + JA * 2 + 1] | 0;
|
|
1990
1990
|
else {
|
|
1991
1991
|
var f7 = X[JA - 15], l9 = f7.high, g9 = f7.low, $v = (l9 >>> 1 | g9 << 31) ^ (l9 >>> 8 | g9 << 24) ^ l9 >>> 7, e7 = (g9 >>> 1 | l9 << 31) ^ (g9 >>> 8 | l9 << 24) ^ (g9 >>> 7 | l9 << 25), v7 = X[JA - 2], D9 = v7.high, B9 = v7.low, An = (D9 >>> 19 | B9 << 13) ^ (D9 << 3 | B9 >>> 29) ^ D9 >>> 6, n7 = (B9 >>> 19 | D9 << 13) ^ (B9 << 3 | D9 >>> 29) ^ (B9 >>> 6 | D9 << 26), r7 = X[JA - 7], fn = r7.high, en = r7.low, P7 = X[JA - 16], vn = P7.high, t7 = P7.low;
|
|
1992
|
-
|
|
1992
|
+
GA = e7 + en, n9 = $v + fn + (GA >>> 0 < e7 >>> 0 ? 1 : 0), GA = GA + n7, n9 = n9 + An + (GA >>> 0 < n7 >>> 0 ? 1 : 0), GA = GA + t7, n9 = n9 + vn + (GA >>> 0 < t7 >>> 0 ? 1 : 0), nf.high = n9, nf.low = GA;
|
|
1993
1993
|
}
|
|
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 +
|
|
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 + GA, r9 = r9 + n9 + (BA >>> 0 < GA >>> 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 = a.low = Z + K, a.high = R + 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 = N.low = C + CA, N.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
|
|
2001
|
-
|
|
2002
|
-
var
|
|
2003
|
-
return
|
|
2000
|
+
var c = this._data, i = c.words, b = this._nDataBytes * 8, H = c.sigBytes * 8;
|
|
2001
|
+
i[H >>> 5] |= 128 << 24 - H % 32, i[(H + 128 >>> 10 << 5) + 30] = Math.floor(b / 4294967296), i[(H + 128 >>> 10 << 5) + 31] = b, c.sigBytes = i.length * 4, this._process();
|
|
2002
|
+
var a = this._hash.toX32();
|
|
2003
|
+
return a;
|
|
2004
2004
|
},
|
|
2005
2005
|
clone: function() {
|
|
2006
|
-
var
|
|
2007
|
-
return
|
|
2006
|
+
var c = P.clone.call(this);
|
|
2007
|
+
return c._hash = this._hash.clone(), c;
|
|
2008
2008
|
},
|
|
2009
2009
|
blockSize: 1024 / 32
|
|
2010
2010
|
});
|
|
2011
|
-
v.SHA512 = P._createHelper(
|
|
2011
|
+
v.SHA512 = P._createHelper(s), v.HmacSHA512 = P._createHmacHelper(s);
|
|
2012
2012
|
}(), f.SHA512;
|
|
2013
2013
|
});
|
|
2014
2014
|
}(Uf)), Uf.exports;
|
|
@@ -2050,17 +2050,17 @@ function cP() {
|
|
|
2050
2050
|
e.exports = v(tA(), Vf());
|
|
2051
2051
|
})(PA, function(f) {
|
|
2052
2052
|
return function(v) {
|
|
2053
|
-
var r = f, P = r.lib, t = P.WordArray, z = P.Hasher, d = r.x64, n = d.Word, u = r.algo, x = [], X = [],
|
|
2053
|
+
var r = f, P = r.lib, t = P.WordArray, z = P.Hasher, d = r.x64, n = d.Word, u = r.algo, x = [], X = [], s = [];
|
|
2054
2054
|
(function() {
|
|
2055
|
-
for (var
|
|
2056
|
-
x[
|
|
2057
|
-
var q = H % 5, p = (2 *
|
|
2058
|
-
|
|
2055
|
+
for (var b = 1, H = 0, a = 0; a < 24; a++) {
|
|
2056
|
+
x[b + 5 * H] = (a + 1) * (a + 2) / 2 % 64;
|
|
2057
|
+
var q = H % 5, p = (2 * b + 3 * H) % 5;
|
|
2058
|
+
b = q, H = p;
|
|
2059
2059
|
}
|
|
2060
|
-
for (var
|
|
2060
|
+
for (var b = 0; b < 5; b++)
|
|
2061
2061
|
for (var H = 0; H < 5; H++)
|
|
2062
|
-
X[
|
|
2063
|
-
for (var m = 1,
|
|
2062
|
+
X[b + 5 * H] = H + (2 * b + 3 * H) % 5 * 5;
|
|
2063
|
+
for (var m = 1, N = 0; N < 24; N++) {
|
|
2064
2064
|
for (var V = 0, l = 0, j = 0; j < 7; j++) {
|
|
2065
2065
|
if (m & 1) {
|
|
2066
2066
|
var O = (1 << j) - 1;
|
|
@@ -2068,15 +2068,15 @@ function cP() {
|
|
|
2068
2068
|
}
|
|
2069
2069
|
m & 128 ? m = m << 1 ^ 113 : m <<= 1;
|
|
2070
2070
|
}
|
|
2071
|
-
|
|
2071
|
+
s[N] = n.create(V, l);
|
|
2072
2072
|
}
|
|
2073
2073
|
})();
|
|
2074
|
-
var
|
|
2074
|
+
var c = [];
|
|
2075
2075
|
(function() {
|
|
2076
|
-
for (var
|
|
2077
|
-
|
|
2076
|
+
for (var b = 0; b < 25; b++)
|
|
2077
|
+
c[b] = n.create();
|
|
2078
2078
|
})();
|
|
2079
|
-
var
|
|
2079
|
+
var i = u.SHA3 = z.extend({
|
|
2080
2080
|
/**
|
|
2081
2081
|
* Configuration options.
|
|
2082
2082
|
*
|
|
@@ -2089,66 +2089,66 @@ function cP() {
|
|
|
2089
2089
|
outputLength: 512
|
|
2090
2090
|
}),
|
|
2091
2091
|
_doReset: function() {
|
|
2092
|
-
for (var
|
|
2093
|
-
|
|
2092
|
+
for (var b = this._state = [], H = 0; H < 25; H++)
|
|
2093
|
+
b[H] = new n.init();
|
|
2094
2094
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2095
2095
|
},
|
|
2096
|
-
_doProcessBlock: function(
|
|
2097
|
-
for (var
|
|
2098
|
-
var m =
|
|
2099
|
-
m = (m << 8 | m >>> 24) & 16711935 | (m << 24 | m >>> 8) & 4278255360,
|
|
2100
|
-
var V =
|
|
2101
|
-
V.high ^=
|
|
2096
|
+
_doProcessBlock: function(b, H) {
|
|
2097
|
+
for (var a = this._state, q = this.blockSize / 2, p = 0; p < q; p++) {
|
|
2098
|
+
var m = b[H + 2 * p], N = b[H + 2 * p + 1];
|
|
2099
|
+
m = (m << 8 | m >>> 24) & 16711935 | (m << 24 | m >>> 8) & 4278255360, N = (N << 8 | N >>> 24) & 16711935 | (N << 24 | N >>> 8) & 4278255360;
|
|
2100
|
+
var V = a[p];
|
|
2101
|
+
V.high ^= N, V.low ^= m;
|
|
2102
2102
|
}
|
|
2103
2103
|
for (var l = 0; l < 24; l++) {
|
|
2104
2104
|
for (var j = 0; j < 5; j++) {
|
|
2105
|
-
for (var O = 0,
|
|
2106
|
-
var V =
|
|
2107
|
-
O ^= V.high,
|
|
2105
|
+
for (var O = 0, R = 0, Z = 0; Z < 5; Z++) {
|
|
2106
|
+
var V = a[j + 5 * Z];
|
|
2107
|
+
O ^= V.high, R ^= V.low;
|
|
2108
2108
|
}
|
|
2109
|
-
var T =
|
|
2110
|
-
T.high = O, T.low =
|
|
2109
|
+
var T = c[j];
|
|
2110
|
+
T.high = O, T.low = R;
|
|
2111
2111
|
}
|
|
2112
2112
|
for (var j = 0; j < 5; j++)
|
|
2113
|
-
for (var Q =
|
|
2114
|
-
var V =
|
|
2115
|
-
V.high ^= O, V.low ^=
|
|
2113
|
+
for (var Q = c[(j + 4) % 5], h = c[(j + 1) % 5], _ = h.high, G = h.low, O = Q.high ^ (_ << 1 | G >>> 31), R = Q.low ^ (G << 1 | _ >>> 31), Z = 0; Z < 5; Z++) {
|
|
2114
|
+
var V = a[j + 5 * Z];
|
|
2115
|
+
V.high ^= O, V.low ^= R;
|
|
2116
2116
|
}
|
|
2117
2117
|
for (var Y = 1; Y < 25; Y++) {
|
|
2118
|
-
var O,
|
|
2119
|
-
L < 32 ? (O = S << L | C >>> 32 - L,
|
|
2120
|
-
var W =
|
|
2121
|
-
W.high = O, W.low =
|
|
2118
|
+
var O, R, V = a[Y], S = V.high, C = V.low, L = x[Y];
|
|
2119
|
+
L < 32 ? (O = S << L | C >>> 32 - L, R = C << L | S >>> 32 - L) : (O = C << L - 32 | S >>> 64 - L, R = S << L - 32 | C >>> 64 - L);
|
|
2120
|
+
var W = c[X[Y]];
|
|
2121
|
+
W.high = O, W.low = R;
|
|
2122
2122
|
}
|
|
2123
|
-
var E =
|
|
2123
|
+
var E = c[0], w = a[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 = a[Y], zA = c[Y], dA = c[(j + 1) % 5 + 5 * Z], lA = c[(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 = a[0], K = s[l];
|
|
2131
2131
|
V.high ^= K.high, V.low ^= K.low;
|
|
2132
2132
|
}
|
|
2133
2133
|
},
|
|
2134
2134
|
_doFinalize: function() {
|
|
2135
|
-
var
|
|
2135
|
+
var b = this._data, H = b.words;
|
|
2136
2136
|
this._nDataBytes * 8;
|
|
2137
|
-
var
|
|
2138
|
-
H[
|
|
2139
|
-
for (var p = this._state, m = this.cfg.outputLength / 8,
|
|
2140
|
-
var j = p[l], O = j.high,
|
|
2141
|
-
O = (O << 8 | O >>> 24) & 16711935 | (O << 24 | O >>> 8) & 4278255360,
|
|
2137
|
+
var a = b.sigBytes * 8, q = this.blockSize * 32;
|
|
2138
|
+
H[a >>> 5] |= 1 << 24 - a % 32, H[(v.ceil((a + 1) / q) * q >>> 5) - 1] |= 128, b.sigBytes = H.length * 4, this._process();
|
|
2139
|
+
for (var p = this._state, m = this.cfg.outputLength / 8, N = m / 8, V = [], l = 0; l < N; l++) {
|
|
2140
|
+
var j = p[l], O = j.high, R = j.low;
|
|
2141
|
+
O = (O << 8 | O >>> 24) & 16711935 | (O << 24 | O >>> 8) & 4278255360, R = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360, V.push(R), V.push(O);
|
|
2142
2142
|
}
|
|
2143
2143
|
return new t.init(V, m);
|
|
2144
2144
|
},
|
|
2145
2145
|
clone: function() {
|
|
2146
|
-
for (var
|
|
2147
|
-
H[
|
|
2148
|
-
return
|
|
2146
|
+
for (var b = z.clone.call(this), H = b._state = this._state.slice(0), a = 0; a < 25; a++)
|
|
2147
|
+
H[a] = H[a].clone();
|
|
2148
|
+
return b;
|
|
2149
2149
|
}
|
|
2150
2150
|
});
|
|
2151
|
-
r.SHA3 = z._createHelper(
|
|
2151
|
+
r.SHA3 = z._createHelper(i), r.HmacSHA3 = z._createHmacHelper(i);
|
|
2152
2152
|
}(Math), f.SHA3;
|
|
2153
2153
|
});
|
|
2154
2154
|
}(Ff)), Ff.exports;
|
|
@@ -2494,54 +2494,54 @@ function aP() {
|
|
|
2494
2494
|
13,
|
|
2495
2495
|
11,
|
|
2496
2496
|
11
|
|
2497
|
-
]),
|
|
2497
|
+
]), s = t.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), c = t.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), i = d.RIPEMD160 = z.extend({
|
|
2498
2498
|
_doReset: function() {
|
|
2499
2499
|
this._hash = t.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2500
2500
|
},
|
|
2501
|
-
_doProcessBlock: function(
|
|
2501
|
+
_doProcessBlock: function(N, V) {
|
|
2502
2502
|
for (var l = 0; l < 16; l++) {
|
|
2503
|
-
var j = V + l, O =
|
|
2504
|
-
|
|
2503
|
+
var j = V + l, O = N[j];
|
|
2504
|
+
N[j] = (O << 8 | O >>> 24) & 16711935 | (O << 24 | O >>> 8) & 4278255360;
|
|
2505
2505
|
}
|
|
2506
|
-
var
|
|
2507
|
-
E = Y =
|
|
2506
|
+
var R = this._hash.words, Z = s.words, T = c.words, Q = n.words, h = u.words, _ = x.words, G = X.words, Y, S, C, L, W, E, w, zA, dA, lA;
|
|
2507
|
+
E = Y = R[0], w = S = R[1], zA = C = R[2], dA = L = R[3], lA = W = R[4];
|
|
2508
2508
|
for (var K, l = 0; l < 80; l += 1)
|
|
2509
|
-
K = Y +
|
|
2510
|
-
K =
|
|
2509
|
+
K = Y + N[V + Q[l]] | 0, l < 16 ? K += b(S, C, L) + Z[0] : l < 32 ? K += H(S, C, L) + Z[1] : l < 48 ? K += a(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 + N[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 += a(w, zA, dA) + T[2] : l < 64 ? K += H(w, zA, dA) + T[3] : K += b(w, zA, dA) + T[4], K = K | 0, K = m(K, G[l]), K = K + lA | 0, E = lA, lA = dA, dA = m(zA, 10), zA = w, w = K;
|
|
2510
|
+
K = R[1] + C + dA | 0, R[1] = R[2] + L + lA | 0, R[2] = R[3] + W + E | 0, R[3] = R[4] + Y + w | 0, R[4] = R[0] + S + zA | 0, R[0] = K;
|
|
2511
2511
|
},
|
|
2512
2512
|
_doFinalize: function() {
|
|
2513
|
-
var
|
|
2514
|
-
V[j >>> 5] |= 128 << 24 - j % 32, V[(j + 64 >>> 9 << 4) + 14] = (l << 8 | l >>> 24) & 16711935 | (l << 24 | l >>> 8) & 4278255360,
|
|
2515
|
-
for (var O = this._hash,
|
|
2516
|
-
var T =
|
|
2517
|
-
|
|
2513
|
+
var N = this._data, V = N.words, l = this._nDataBytes * 8, j = N.sigBytes * 8;
|
|
2514
|
+
V[j >>> 5] |= 128 << 24 - j % 32, V[(j + 64 >>> 9 << 4) + 14] = (l << 8 | l >>> 24) & 16711935 | (l << 24 | l >>> 8) & 4278255360, N.sigBytes = (V.length + 1) * 4, this._process();
|
|
2515
|
+
for (var O = this._hash, R = O.words, Z = 0; Z < 5; Z++) {
|
|
2516
|
+
var T = R[Z];
|
|
2517
|
+
R[Z] = (T << 8 | T >>> 24) & 16711935 | (T << 24 | T >>> 8) & 4278255360;
|
|
2518
2518
|
}
|
|
2519
2519
|
return O;
|
|
2520
2520
|
},
|
|
2521
2521
|
clone: function() {
|
|
2522
|
-
var
|
|
2523
|
-
return
|
|
2522
|
+
var N = z.clone.call(this);
|
|
2523
|
+
return N._hash = this._hash.clone(), N;
|
|
2524
2524
|
}
|
|
2525
2525
|
});
|
|
2526
|
-
function
|
|
2527
|
-
return
|
|
2526
|
+
function b(N, V, l) {
|
|
2527
|
+
return N ^ V ^ l;
|
|
2528
2528
|
}
|
|
2529
|
-
function H(
|
|
2530
|
-
return
|
|
2529
|
+
function H(N, V, l) {
|
|
2530
|
+
return N & V | ~N & l;
|
|
2531
2531
|
}
|
|
2532
|
-
function
|
|
2533
|
-
return (
|
|
2532
|
+
function a(N, V, l) {
|
|
2533
|
+
return (N | ~V) ^ l;
|
|
2534
2534
|
}
|
|
2535
|
-
function q(
|
|
2536
|
-
return
|
|
2535
|
+
function q(N, V, l) {
|
|
2536
|
+
return N & l | V & ~l;
|
|
2537
2537
|
}
|
|
2538
|
-
function p(
|
|
2539
|
-
return
|
|
2538
|
+
function p(N, V, l) {
|
|
2539
|
+
return N ^ (V | ~l);
|
|
2540
2540
|
}
|
|
2541
|
-
function m(
|
|
2542
|
-
return
|
|
2541
|
+
function m(N, V) {
|
|
2542
|
+
return N << V | N >>> 32 - V;
|
|
2543
2543
|
}
|
|
2544
|
-
r.RIPEMD160 = z._createHelper(
|
|
2544
|
+
r.RIPEMD160 = z._createHelper(i), r.HmacRIPEMD160 = z._createHmacHelper(i);
|
|
2545
2545
|
}(), f.RIPEMD160;
|
|
2546
2546
|
});
|
|
2547
2547
|
}(Sf)), Sf.exports;
|
|
@@ -2569,9 +2569,9 @@ function Qe() {
|
|
|
2569
2569
|
n = this._hasher = new n.init(), typeof u == "string" && (u = z.parse(u));
|
|
2570
2570
|
var x = n.blockSize, X = x * 4;
|
|
2571
2571
|
u.sigBytes > X && (u = n.finalize(u)), u.clamp();
|
|
2572
|
-
for (var
|
|
2573
|
-
|
|
2574
|
-
|
|
2572
|
+
for (var s = this._oKey = u.clone(), c = this._iKey = u.clone(), i = s.words, b = c.words, H = 0; H < x; H++)
|
|
2573
|
+
i[H] ^= 1549556828, b[H] ^= 909522486;
|
|
2574
|
+
s.sigBytes = c.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 =
|
|
2676
|
-
|
|
2677
|
-
for (var
|
|
2678
|
-
l =
|
|
2679
|
-
for (var O = l.words,
|
|
2680
|
-
R
|
|
2674
|
+
for (var s = this.cfg, c = n.create(s.hasher, x), i = t.create(), b = t.create([1]), H = i.words, a = b.words, q = s.keySize, p = s.iterations; H.length < q; ) {
|
|
2675
|
+
var m = c.update(X).finalize(b);
|
|
2676
|
+
c.reset();
|
|
2677
|
+
for (var N = m.words, V = N.length, l = m, j = 1; j < p; j++) {
|
|
2678
|
+
l = c.finalize(l), c.reset();
|
|
2679
|
+
for (var O = l.words, R = 0; R < V; R++)
|
|
2680
|
+
N[R] ^= O[R];
|
|
2681
2681
|
}
|
|
2682
|
-
|
|
2682
|
+
i.concat(m), a[0]++;
|
|
2683
2683
|
}
|
|
2684
|
-
return
|
|
2684
|
+
return i.sigBytes = q * 4, i;
|
|
2685
2685
|
}
|
|
2686
2686
|
});
|
|
2687
|
-
v.PBKDF2 = function(x, X,
|
|
2688
|
-
return u.create(
|
|
2687
|
+
v.PBKDF2 = function(x, X, s) {
|
|
2688
|
+
return u.create(s).compute(x, X);
|
|
2689
2689
|
};
|
|
2690
2690
|
}(), f.PBKDF2;
|
|
2691
2691
|
});
|
|
@@ -2738,13 +2738,13 @@ function z9() {
|
|
|
2738
2738
|
* var key = kdf.compute(password, salt);
|
|
2739
2739
|
*/
|
|
2740
2740
|
compute: function(u, x) {
|
|
2741
|
-
for (var X,
|
|
2742
|
-
X &&
|
|
2743
|
-
for (var q = 1; q <
|
|
2744
|
-
X =
|
|
2745
|
-
|
|
2741
|
+
for (var X, s = this.cfg, c = s.hasher.create(), i = t.create(), b = i.words, H = s.keySize, a = s.iterations; b.length < H; ) {
|
|
2742
|
+
X && c.update(X), X = c.update(u).finalize(x), c.reset();
|
|
2743
|
+
for (var q = 1; q < a; q++)
|
|
2744
|
+
X = c.finalize(X), c.reset();
|
|
2745
|
+
i.concat(X);
|
|
2746
2746
|
}
|
|
2747
|
-
return
|
|
2747
|
+
return i.sigBytes = H * 4, i;
|
|
2748
2748
|
}
|
|
2749
2749
|
});
|
|
2750
2750
|
v.EvpKDF = function(u, x, X) {
|
|
@@ -2763,7 +2763,7 @@ function VA() {
|
|
|
2763
2763
|
f.lib.Cipher || function(v) {
|
|
2764
2764
|
var r = f, P = r.lib, t = P.Base, z = P.WordArray, d = P.BufferedBlockAlgorithm, n = r.enc;
|
|
2765
2765
|
n.Utf8;
|
|
2766
|
-
var u = n.Base64, x = r.algo, X = x.EvpKDF,
|
|
2766
|
+
var u = n.Base64, x = r.algo, X = x.EvpKDF, s = P.Cipher = d.extend({
|
|
2767
2767
|
/**
|
|
2768
2768
|
* Configuration options.
|
|
2769
2769
|
*
|
|
@@ -2784,8 +2784,8 @@ function VA() {
|
|
|
2784
2784
|
*
|
|
2785
2785
|
* var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
|
|
2786
2786
|
*/
|
|
2787
|
-
createEncryptor: function(O,
|
|
2788
|
-
return this.create(this._ENC_XFORM_MODE, O,
|
|
2787
|
+
createEncryptor: function(O, R) {
|
|
2788
|
+
return this.create(this._ENC_XFORM_MODE, O, R);
|
|
2789
2789
|
},
|
|
2790
2790
|
/**
|
|
2791
2791
|
* Creates this cipher in decryption mode.
|
|
@@ -2801,8 +2801,8 @@ function VA() {
|
|
|
2801
2801
|
*
|
|
2802
2802
|
* var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
|
|
2803
2803
|
*/
|
|
2804
|
-
createDecryptor: function(O,
|
|
2805
|
-
return this.create(this._DEC_XFORM_MODE, O,
|
|
2804
|
+
createDecryptor: function(O, R) {
|
|
2805
|
+
return this.create(this._DEC_XFORM_MODE, O, R);
|
|
2806
2806
|
},
|
|
2807
2807
|
/**
|
|
2808
2808
|
* Initializes a newly created cipher.
|
|
@@ -2815,8 +2815,8 @@ function VA() {
|
|
|
2815
2815
|
*
|
|
2816
2816
|
* var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
|
|
2817
2817
|
*/
|
|
2818
|
-
init: function(O,
|
|
2819
|
-
this.cfg = this.cfg.extend(Z), this._xformMode = O, this._key =
|
|
2818
|
+
init: function(O, R, Z) {
|
|
2819
|
+
this.cfg = this.cfg.extend(Z), this._xformMode = O, this._key = R, this.reset();
|
|
2820
2820
|
},
|
|
2821
2821
|
/**
|
|
2822
2822
|
* Resets this cipher to its initial state.
|
|
@@ -2859,8 +2859,8 @@ function VA() {
|
|
|
2859
2859
|
*/
|
|
2860
2860
|
finalize: function(O) {
|
|
2861
2861
|
O && this._append(O);
|
|
2862
|
-
var
|
|
2863
|
-
return
|
|
2862
|
+
var R = this._doFinalize();
|
|
2863
|
+
return R;
|
|
2864
2864
|
},
|
|
2865
2865
|
keySize: 128 / 32,
|
|
2866
2866
|
ivSize: 128 / 32,
|
|
@@ -2880,29 +2880,29 @@ function VA() {
|
|
|
2880
2880
|
* var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
|
|
2881
2881
|
*/
|
|
2882
2882
|
_createHelper: /* @__PURE__ */ function() {
|
|
2883
|
-
function O(
|
|
2884
|
-
return typeof
|
|
2883
|
+
function O(R) {
|
|
2884
|
+
return typeof R == "string" ? j : N;
|
|
2885
2885
|
}
|
|
2886
|
-
return function(
|
|
2886
|
+
return function(R) {
|
|
2887
2887
|
return {
|
|
2888
2888
|
encrypt: function(Z, T, Q) {
|
|
2889
|
-
return O(T).encrypt(
|
|
2889
|
+
return O(T).encrypt(R, Z, T, Q);
|
|
2890
2890
|
},
|
|
2891
2891
|
decrypt: function(Z, T, Q) {
|
|
2892
|
-
return O(T).decrypt(
|
|
2892
|
+
return O(T).decrypt(R, Z, T, Q);
|
|
2893
2893
|
}
|
|
2894
2894
|
};
|
|
2895
2895
|
};
|
|
2896
2896
|
}()
|
|
2897
2897
|
});
|
|
2898
|
-
P.StreamCipher =
|
|
2898
|
+
P.StreamCipher = s.extend({
|
|
2899
2899
|
_doFinalize: function() {
|
|
2900
2900
|
var O = this._process(!0);
|
|
2901
2901
|
return O;
|
|
2902
2902
|
},
|
|
2903
2903
|
blockSize: 1
|
|
2904
2904
|
});
|
|
2905
|
-
var
|
|
2905
|
+
var c = r.mode = {}, i = P.BlockCipherMode = t.extend({
|
|
2906
2906
|
/**
|
|
2907
2907
|
* Creates this mode for encryption.
|
|
2908
2908
|
*
|
|
@@ -2915,8 +2915,8 @@ function VA() {
|
|
|
2915
2915
|
*
|
|
2916
2916
|
* var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
|
|
2917
2917
|
*/
|
|
2918
|
-
createEncryptor: function(O,
|
|
2919
|
-
return this.Encryptor.create(O,
|
|
2918
|
+
createEncryptor: function(O, R) {
|
|
2919
|
+
return this.Encryptor.create(O, R);
|
|
2920
2920
|
},
|
|
2921
2921
|
/**
|
|
2922
2922
|
* Creates this mode for decryption.
|
|
@@ -2930,8 +2930,8 @@ function VA() {
|
|
|
2930
2930
|
*
|
|
2931
2931
|
* var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
|
|
2932
2932
|
*/
|
|
2933
|
-
createDecryptor: function(O,
|
|
2934
|
-
return this.Decryptor.create(O,
|
|
2933
|
+
createDecryptor: function(O, R) {
|
|
2934
|
+
return this.Decryptor.create(O, R);
|
|
2935
2935
|
},
|
|
2936
2936
|
/**
|
|
2937
2937
|
* Initializes a newly created mode.
|
|
@@ -2943,11 +2943,11 @@ function VA() {
|
|
|
2943
2943
|
*
|
|
2944
2944
|
* var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
|
|
2945
2945
|
*/
|
|
2946
|
-
init: function(O,
|
|
2947
|
-
this._cipher = O, this._iv =
|
|
2946
|
+
init: function(O, R) {
|
|
2947
|
+
this._cipher = O, this._iv = R;
|
|
2948
2948
|
}
|
|
2949
|
-
}),
|
|
2950
|
-
var O =
|
|
2949
|
+
}), b = c.CBC = function() {
|
|
2950
|
+
var O = i.extend();
|
|
2951
2951
|
O.Encryptor = O.extend({
|
|
2952
2952
|
/**
|
|
2953
2953
|
* Processes the data block at offset.
|
|
@@ -2961,7 +2961,7 @@ function VA() {
|
|
|
2961
2961
|
*/
|
|
2962
2962
|
processBlock: function(Z, T) {
|
|
2963
2963
|
var Q = this._cipher, h = Q.blockSize;
|
|
2964
|
-
|
|
2964
|
+
R.call(this, Z, T, h), Q.encryptBlock(Z, T), this._prevBlock = Z.slice(T, T + h);
|
|
2965
2965
|
}
|
|
2966
2966
|
}), O.Decryptor = O.extend({
|
|
2967
2967
|
/**
|
|
@@ -2976,17 +2976,17 @@ function VA() {
|
|
|
2976
2976
|
*/
|
|
2977
2977
|
processBlock: function(Z, T) {
|
|
2978
2978
|
var Q = this._cipher, h = Q.blockSize, _ = Z.slice(T, T + h);
|
|
2979
|
-
Q.decryptBlock(Z, T),
|
|
2979
|
+
Q.decryptBlock(Z, T), R.call(this, Z, T, h), this._prevBlock = _;
|
|
2980
2980
|
}
|
|
2981
2981
|
});
|
|
2982
|
-
function
|
|
2982
|
+
function R(Z, T, Q) {
|
|
2983
2983
|
var h, _ = this._iv;
|
|
2984
2984
|
_ ? (h = _, this._iv = v) : h = this._prevBlock;
|
|
2985
2985
|
for (var G = 0; G < Q; G++)
|
|
2986
2986
|
Z[T + G] ^= h[G];
|
|
2987
2987
|
}
|
|
2988
2988
|
return O;
|
|
2989
|
-
}(), H = r.pad = {},
|
|
2989
|
+
}(), H = r.pad = {}, a = H.Pkcs7 = {
|
|
2990
2990
|
/**
|
|
2991
2991
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
2992
2992
|
*
|
|
@@ -2999,8 +2999,8 @@ function VA() {
|
|
|
2999
2999
|
*
|
|
3000
3000
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
3001
3001
|
*/
|
|
3002
|
-
pad: function(O,
|
|
3003
|
-
for (var Z =
|
|
3002
|
+
pad: function(O, R) {
|
|
3003
|
+
for (var Z = R * 4, T = Z - O.sigBytes % Z, Q = T << 24 | T << 16 | T << 8 | T, h = [], _ = 0; _ < T; _ += 4)
|
|
3004
3004
|
h.push(Q);
|
|
3005
3005
|
var G = z.create(h, T);
|
|
3006
3006
|
O.concat(G);
|
|
@@ -3017,33 +3017,33 @@ function VA() {
|
|
|
3017
3017
|
* CryptoJS.pad.Pkcs7.unpad(wordArray);
|
|
3018
3018
|
*/
|
|
3019
3019
|
unpad: function(O) {
|
|
3020
|
-
var
|
|
3021
|
-
O.sigBytes -=
|
|
3020
|
+
var R = O.words[O.sigBytes - 1 >>> 2] & 255;
|
|
3021
|
+
O.sigBytes -= R;
|
|
3022
3022
|
}
|
|
3023
3023
|
};
|
|
3024
|
-
P.BlockCipher =
|
|
3024
|
+
P.BlockCipher = s.extend({
|
|
3025
3025
|
/**
|
|
3026
3026
|
* Configuration options.
|
|
3027
3027
|
*
|
|
3028
3028
|
* @property {Mode} mode The block mode to use. Default: CBC
|
|
3029
3029
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
3030
3030
|
*/
|
|
3031
|
-
cfg:
|
|
3032
|
-
mode:
|
|
3033
|
-
padding:
|
|
3031
|
+
cfg: s.cfg.extend({
|
|
3032
|
+
mode: b,
|
|
3033
|
+
padding: a
|
|
3034
3034
|
}),
|
|
3035
3035
|
reset: function() {
|
|
3036
3036
|
var O;
|
|
3037
|
-
|
|
3038
|
-
var
|
|
3037
|
+
s.reset.call(this);
|
|
3038
|
+
var R = this.cfg, Z = R.iv, T = R.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
|
},
|
|
3041
|
-
_doProcessBlock: function(O,
|
|
3042
|
-
this._mode.processBlock(O,
|
|
3041
|
+
_doProcessBlock: function(O, R) {
|
|
3042
|
+
this._mode.processBlock(O, R);
|
|
3043
3043
|
},
|
|
3044
3044
|
_doFinalize: function() {
|
|
3045
|
-
var O,
|
|
3046
|
-
return this._xformMode == this._ENC_XFORM_MODE ? (
|
|
3045
|
+
var O, R = this.cfg.padding;
|
|
3046
|
+
return this._xformMode == this._ENC_XFORM_MODE ? (R.pad(this._data, this.blockSize), O = this._process(!0)) : (O = this._process(!0), R.unpad(O)), O;
|
|
3047
3047
|
},
|
|
3048
3048
|
blockSize: 128 / 32
|
|
3049
3049
|
});
|
|
@@ -3103,8 +3103,8 @@ function VA() {
|
|
|
3103
3103
|
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
3104
3104
|
*/
|
|
3105
3105
|
stringify: function(O) {
|
|
3106
|
-
var
|
|
3107
|
-
return T ?
|
|
3106
|
+
var R, Z = O.ciphertext, T = O.salt;
|
|
3107
|
+
return T ? R = z.create([1398893684, 1701076831]).concat(T).concat(Z) : R = Z, R.toString(u);
|
|
3108
3108
|
},
|
|
3109
3109
|
/**
|
|
3110
3110
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -3120,10 +3120,10 @@ function VA() {
|
|
|
3120
3120
|
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
3121
3121
|
*/
|
|
3122
3122
|
parse: function(O) {
|
|
3123
|
-
var
|
|
3124
|
-
return T[0] == 1398893684 && T[1] == 1701076831 && (
|
|
3123
|
+
var R, Z = u.parse(O), T = Z.words;
|
|
3124
|
+
return T[0] == 1398893684 && T[1] == 1701076831 && (R = z.create(T.slice(2, 4)), T.splice(0, 4), Z.sigBytes -= 16), q.create({ ciphertext: Z, salt: R });
|
|
3125
3125
|
}
|
|
3126
|
-
},
|
|
3126
|
+
}, N = P.SerializableCipher = t.extend({
|
|
3127
3127
|
/**
|
|
3128
3128
|
* Configuration options.
|
|
3129
3129
|
*
|
|
@@ -3150,9 +3150,9 @@ function VA() {
|
|
|
3150
3150
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
3151
3151
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3152
3152
|
*/
|
|
3153
|
-
encrypt: function(O,
|
|
3153
|
+
encrypt: function(O, R, Z, T) {
|
|
3154
3154
|
T = this.cfg.extend(T);
|
|
3155
|
-
var Q = O.createEncryptor(Z, T), h = Q.finalize(
|
|
3155
|
+
var Q = O.createEncryptor(Z, T), h = Q.finalize(R), _ = Q.cfg;
|
|
3156
3156
|
return q.create({
|
|
3157
3157
|
ciphertext: h,
|
|
3158
3158
|
key: Z,
|
|
@@ -3181,9 +3181,9 @@ function VA() {
|
|
|
3181
3181
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3182
3182
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3183
3183
|
*/
|
|
3184
|
-
decrypt: function(O,
|
|
3185
|
-
T = this.cfg.extend(T),
|
|
3186
|
-
var Q = O.createDecryptor(Z, T).finalize(
|
|
3184
|
+
decrypt: function(O, R, Z, T) {
|
|
3185
|
+
T = this.cfg.extend(T), R = this._parse(R, T.format);
|
|
3186
|
+
var Q = O.createDecryptor(Z, T).finalize(R.ciphertext);
|
|
3187
3187
|
return Q;
|
|
3188
3188
|
},
|
|
3189
3189
|
/**
|
|
@@ -3201,8 +3201,8 @@ function VA() {
|
|
|
3201
3201
|
*
|
|
3202
3202
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
|
|
3203
3203
|
*/
|
|
3204
|
-
_parse: function(O,
|
|
3205
|
-
return typeof O == "string" ?
|
|
3204
|
+
_parse: function(O, R) {
|
|
3205
|
+
return typeof O == "string" ? R.parse(O, this) : O;
|
|
3206
3206
|
}
|
|
3207
3207
|
}), V = r.kdf = {}, l = V.OpenSSL = {
|
|
3208
3208
|
/**
|
|
@@ -3222,21 +3222,21 @@ function VA() {
|
|
|
3222
3222
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
3223
3223
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3224
3224
|
*/
|
|
3225
|
-
execute: function(O,
|
|
3225
|
+
execute: function(O, R, Z, T, Q) {
|
|
3226
3226
|
if (T || (T = z.random(64 / 8)), Q)
|
|
3227
|
-
var h = X.create({ keySize:
|
|
3227
|
+
var h = X.create({ keySize: R + Z, hasher: Q }).compute(O, T);
|
|
3228
3228
|
else
|
|
3229
|
-
var h = X.create({ keySize:
|
|
3230
|
-
var _ = z.create(h.words.slice(
|
|
3231
|
-
return h.sigBytes =
|
|
3229
|
+
var h = X.create({ keySize: R + Z }).compute(O, T);
|
|
3230
|
+
var _ = z.create(h.words.slice(R), Z * 4);
|
|
3231
|
+
return h.sigBytes = R * 4, q.create({ key: h, iv: _, salt: T });
|
|
3232
3232
|
}
|
|
3233
|
-
}, j = P.PasswordBasedCipher =
|
|
3233
|
+
}, j = P.PasswordBasedCipher = N.extend({
|
|
3234
3234
|
/**
|
|
3235
3235
|
* Configuration options.
|
|
3236
3236
|
*
|
|
3237
3237
|
* @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
|
|
3238
3238
|
*/
|
|
3239
|
-
cfg:
|
|
3239
|
+
cfg: N.cfg.extend({
|
|
3240
3240
|
kdf: l
|
|
3241
3241
|
}),
|
|
3242
3242
|
/**
|
|
@@ -3256,11 +3256,11 @@ function VA() {
|
|
|
3256
3256
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
3257
3257
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3258
3258
|
*/
|
|
3259
|
-
encrypt: function(O,
|
|
3259
|
+
encrypt: function(O, R, Z, T) {
|
|
3260
3260
|
T = this.cfg.extend(T);
|
|
3261
3261
|
var Q = T.kdf.execute(Z, O.keySize, O.ivSize, T.salt, T.hasher);
|
|
3262
3262
|
T.iv = Q.iv;
|
|
3263
|
-
var h =
|
|
3263
|
+
var h = N.encrypt.call(this, O, R, Q.key, T);
|
|
3264
3264
|
return h.mixIn(Q), h;
|
|
3265
3265
|
},
|
|
3266
3266
|
/**
|
|
@@ -3280,11 +3280,11 @@ function VA() {
|
|
|
3280
3280
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3281
3281
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3282
3282
|
*/
|
|
3283
|
-
decrypt: function(O,
|
|
3284
|
-
T = this.cfg.extend(T),
|
|
3285
|
-
var Q = T.kdf.execute(Z, O.keySize, O.ivSize,
|
|
3283
|
+
decrypt: function(O, R, Z, T) {
|
|
3284
|
+
T = this.cfg.extend(T), R = this._parse(R, T.format);
|
|
3285
|
+
var Q = T.kdf.execute(Z, O.keySize, O.ivSize, R.salt, T.hasher);
|
|
3286
3286
|
T.iv = Q.iv;
|
|
3287
|
-
var h =
|
|
3287
|
+
var h = N.decrypt.call(this, O, R, Q.key, T);
|
|
3288
3288
|
return h;
|
|
3289
3289
|
}
|
|
3290
3290
|
});
|
|
@@ -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(
|
|
3377
|
-
for (var
|
|
3378
|
-
z[d +
|
|
3375
|
+
var s = X.slice(0);
|
|
3376
|
+
n.encryptBlock(s, 0);
|
|
3377
|
+
for (var c = 0; c < u; c++)
|
|
3378
|
+
z[d + c] ^= s[c];
|
|
3379
3379
|
}
|
|
3380
3380
|
});
|
|
3381
3381
|
return v.Decryptor = t, v;
|
|
@@ -3570,32 +3570,32 @@ function RP() {
|
|
|
3570
3570
|
e.exports = v(tA(), H9(), p9(), z9(), VA());
|
|
3571
3571
|
})(PA, function(f) {
|
|
3572
3572
|
return function() {
|
|
3573
|
-
var v = f, r = v.lib, P = r.BlockCipher, t = v.algo, z = [], d = [], n = [], u = [], x = [], X = [],
|
|
3573
|
+
var v = f, r = v.lib, P = r.BlockCipher, t = v.algo, z = [], d = [], n = [], u = [], x = [], X = [], s = [], c = [], i = [], b = [];
|
|
3574
3574
|
(function() {
|
|
3575
3575
|
for (var q = [], p = 0; p < 256; p++)
|
|
3576
3576
|
p < 128 ? q[p] = p << 1 : q[p] = p << 1 ^ 283;
|
|
3577
|
-
for (var m = 0,
|
|
3578
|
-
var V =
|
|
3577
|
+
for (var m = 0, N = 0, p = 0; p < 256; p++) {
|
|
3578
|
+
var V = N ^ N << 1 ^ N << 2 ^ N << 3 ^ N << 4;
|
|
3579
3579
|
V = V >>> 8 ^ V & 255 ^ 99, z[m] = V, d[V] = m;
|
|
3580
|
-
var l = q[m], j = q[l], O = q[j],
|
|
3581
|
-
n[m] =
|
|
3582
|
-
var
|
|
3583
|
-
|
|
3580
|
+
var l = q[m], j = q[l], O = q[j], R = q[V] * 257 ^ V * 16843008;
|
|
3581
|
+
n[m] = R << 24 | R >>> 8, u[m] = R << 16 | R >>> 16, x[m] = R << 8 | R >>> 24, X[m] = R;
|
|
3582
|
+
var R = O * 16843009 ^ j * 65537 ^ l * 257 ^ m * 16843008;
|
|
3583
|
+
s[V] = R << 24 | R >>> 8, c[V] = R << 16 | R >>> 16, i[V] = R << 8 | R >>> 24, b[V] = R, m ? (m = l ^ q[q[q[O ^ l]]], N ^= q[q[N]]) : m = N = 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], a = t.AES = P.extend({
|
|
3587
3587
|
_doReset: function() {
|
|
3588
3588
|
var q;
|
|
3589
3589
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3590
|
-
for (var p = this._keyPriorReset = this._key, m = p.words,
|
|
3591
|
-
O <
|
|
3592
|
-
for (var
|
|
3590
|
+
for (var p = this._keyPriorReset = this._key, m = p.words, N = p.sigBytes / 4, V = this._nRounds = N + 6, l = (V + 1) * 4, j = this._keySchedule = [], O = 0; O < l; O++)
|
|
3591
|
+
O < N ? j[O] = m[O] : (q = j[O - 1], O % N ? N > 6 && O % N == 4 && (q = z[q >>> 24] << 24 | z[q >>> 16 & 255] << 16 | z[q >>> 8 & 255] << 8 | z[q & 255]) : (q = q << 8 | q >>> 24, q = z[q >>> 24] << 24 | z[q >>> 16 & 255] << 16 | z[q >>> 8 & 255] << 8 | z[q & 255], q ^= H[O / N | 0] << 24), j[O] = j[O - N] ^ q);
|
|
3592
|
+
for (var R = this._invKeySchedule = [], Z = 0; Z < l; Z++) {
|
|
3593
3593
|
var O = l - Z;
|
|
3594
3594
|
if (Z % 4)
|
|
3595
3595
|
var q = j[O];
|
|
3596
3596
|
else
|
|
3597
3597
|
var q = j[O - 4];
|
|
3598
|
-
Z < 4 || O <= 4 ?
|
|
3598
|
+
Z < 4 || O <= 4 ? R[Z] = q : R[Z] = s[z[q >>> 24]] ^ c[z[q >>> 16 & 255]] ^ i[z[q >>> 8 & 255]] ^ b[z[q & 255]];
|
|
3599
3599
|
}
|
|
3600
3600
|
}
|
|
3601
3601
|
},
|
|
@@ -3604,13 +3604,13 @@ function RP() {
|
|
|
3604
3604
|
},
|
|
3605
3605
|
decryptBlock: function(q, p) {
|
|
3606
3606
|
var m = q[p + 1];
|
|
3607
|
-
q[p + 1] = q[p + 3], q[p + 3] = m, this._doCryptBlock(q, p, this._invKeySchedule,
|
|
3607
|
+
q[p + 1] = q[p + 3], q[p + 3] = m, this._doCryptBlock(q, p, this._invKeySchedule, s, c, i, b, d);
|
|
3608
3608
|
var m = q[p + 1];
|
|
3609
3609
|
q[p + 1] = q[p + 3], q[p + 3] = m;
|
|
3610
3610
|
},
|
|
3611
|
-
_doCryptBlock: function(q, p, m,
|
|
3612
|
-
for (var
|
|
3613
|
-
var Y =
|
|
3611
|
+
_doCryptBlock: function(q, p, m, N, V, l, j, O) {
|
|
3612
|
+
for (var R = this._nRounds, Z = q[p] ^ m[0], T = q[p + 1] ^ m[1], Q = q[p + 2] ^ m[2], h = q[p + 3] ^ m[3], _ = 4, G = 1; G < R; G++) {
|
|
3613
|
+
var Y = N[Z >>> 24] ^ V[T >>> 16 & 255] ^ l[Q >>> 8 & 255] ^ j[h & 255] ^ m[_++], S = N[T >>> 24] ^ V[Q >>> 16 & 255] ^ l[h >>> 8 & 255] ^ j[Z & 255] ^ m[_++], C = N[Q >>> 24] ^ V[h >>> 16 & 255] ^ l[Z >>> 8 & 255] ^ j[T & 255] ^ m[_++], L = N[h >>> 24] ^ V[Z >>> 16 & 255] ^ l[T >>> 8 & 255] ^ j[Q & 255] ^ m[_++];
|
|
3614
3614
|
Z = Y, T = S, Q = C, h = L;
|
|
3615
3615
|
}
|
|
3616
3616
|
var Y = (O[Z >>> 24] << 24 | O[T >>> 16 & 255] << 16 | O[Q >>> 8 & 255] << 8 | O[h & 255]) ^ m[_++], S = (O[T >>> 24] << 24 | O[Q >>> 16 & 255] << 16 | O[h >>> 8 & 255] << 8 | O[Z & 255]) ^ m[_++], C = (O[Q >>> 24] << 24 | O[h >>> 16 & 255] << 16 | O[Z >>> 8 & 255] << 8 | O[T & 255]) ^ m[_++], L = (O[h >>> 24] << 24 | O[Z >>> 16 & 255] << 16 | O[T >>> 8 & 255] << 8 | O[Q & 255]) ^ m[_++];
|
|
@@ -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(a);
|
|
3622
3622
|
}(), f.AES;
|
|
3623
3623
|
});
|
|
3624
3624
|
}(de)), de.exports;
|
|
@@ -4274,14 +4274,14 @@ function jP() {
|
|
|
4274
4274
|
8064,
|
|
4275
4275
|
504,
|
|
4276
4276
|
2147483679
|
|
4277
|
-
],
|
|
4277
|
+
], s = z.DES = t.extend({
|
|
4278
4278
|
_doReset: function() {
|
|
4279
|
-
for (var H = this._key,
|
|
4279
|
+
for (var H = this._key, a = H.words, q = [], p = 0; p < 56; p++) {
|
|
4280
4280
|
var m = d[p] - 1;
|
|
4281
|
-
q[p] =
|
|
4281
|
+
q[p] = a[m >>> 5] >>> 31 - m % 32 & 1;
|
|
4282
4282
|
}
|
|
4283
|
-
for (var
|
|
4284
|
-
for (var l =
|
|
4283
|
+
for (var N = this._subKeys = [], V = 0; V < 16; V++) {
|
|
4284
|
+
for (var l = N[V] = [], j = u[V], p = 0; p < 24; p++)
|
|
4285
4285
|
l[p / 6 | 0] |= q[(n[p] - 1 + j) % 28] << 31 - p % 6, l[4 + (p / 6 | 0)] |= q[28 + (n[p + 24] - 1 + j) % 28] << 31 - p % 6;
|
|
4286
4286
|
l[0] = l[0] << 1 | l[0] >>> 31;
|
|
4287
4287
|
for (var p = 1; p < 7; p++)
|
|
@@ -4289,56 +4289,56 @@ function jP() {
|
|
|
4289
4289
|
l[7] = l[7] << 5 | l[7] >>> 27;
|
|
4290
4290
|
}
|
|
4291
4291
|
for (var O = this._invSubKeys = [], p = 0; p < 16; p++)
|
|
4292
|
-
O[p] =
|
|
4292
|
+
O[p] = N[15 - p];
|
|
4293
4293
|
},
|
|
4294
|
-
encryptBlock: function(H,
|
|
4295
|
-
this._doCryptBlock(H,
|
|
4294
|
+
encryptBlock: function(H, a) {
|
|
4295
|
+
this._doCryptBlock(H, a, this._subKeys);
|
|
4296
4296
|
},
|
|
4297
|
-
decryptBlock: function(H,
|
|
4298
|
-
this._doCryptBlock(H,
|
|
4297
|
+
decryptBlock: function(H, a) {
|
|
4298
|
+
this._doCryptBlock(H, a, this._invSubKeys);
|
|
4299
4299
|
},
|
|
4300
|
-
_doCryptBlock: function(H,
|
|
4301
|
-
this._lBlock = H[
|
|
4300
|
+
_doCryptBlock: function(H, a, q) {
|
|
4301
|
+
this._lBlock = H[a], this._rBlock = H[a + 1], c.call(this, 4, 252645135), c.call(this, 16, 65535), i.call(this, 2, 858993459), i.call(this, 8, 16711935), c.call(this, 1, 1431655765);
|
|
4302
4302
|
for (var p = 0; p < 16; p++) {
|
|
4303
|
-
for (var m = q[p],
|
|
4303
|
+
for (var m = q[p], N = this._lBlock, V = this._rBlock, l = 0, j = 0; j < 8; j++)
|
|
4304
4304
|
l |= x[j][((V ^ m[j]) & X[j]) >>> 0];
|
|
4305
|
-
this._lBlock = V, this._rBlock =
|
|
4305
|
+
this._lBlock = V, this._rBlock = N ^ l;
|
|
4306
4306
|
}
|
|
4307
4307
|
var O = this._lBlock;
|
|
4308
|
-
this._lBlock = this._rBlock, this._rBlock = O,
|
|
4308
|
+
this._lBlock = this._rBlock, this._rBlock = O, c.call(this, 1, 1431655765), i.call(this, 8, 16711935), i.call(this, 2, 858993459), c.call(this, 16, 65535), c.call(this, 4, 252645135), H[a] = this._lBlock, H[a + 1] = this._rBlock;
|
|
4309
4309
|
},
|
|
4310
4310
|
keySize: 64 / 32,
|
|
4311
4311
|
ivSize: 64 / 32,
|
|
4312
4312
|
blockSize: 64 / 32
|
|
4313
4313
|
});
|
|
4314
|
-
function
|
|
4315
|
-
var q = (this._lBlock >>> H ^ this._rBlock) &
|
|
4314
|
+
function c(H, a) {
|
|
4315
|
+
var q = (this._lBlock >>> H ^ this._rBlock) & a;
|
|
4316
4316
|
this._rBlock ^= q, this._lBlock ^= q << H;
|
|
4317
4317
|
}
|
|
4318
|
-
function
|
|
4319
|
-
var q = (this._rBlock >>> H ^ this._lBlock) &
|
|
4318
|
+
function i(H, a) {
|
|
4319
|
+
var q = (this._rBlock >>> H ^ this._lBlock) & a;
|
|
4320
4320
|
this._lBlock ^= q, this._rBlock ^= q << H;
|
|
4321
4321
|
}
|
|
4322
|
-
v.DES = t._createHelper(
|
|
4323
|
-
var
|
|
4322
|
+
v.DES = t._createHelper(s);
|
|
4323
|
+
var b = z.TripleDES = t.extend({
|
|
4324
4324
|
_doReset: function() {
|
|
4325
|
-
var H = this._key,
|
|
4326
|
-
if (
|
|
4325
|
+
var H = this._key, a = H.words;
|
|
4326
|
+
if (a.length !== 2 && a.length !== 4 && a.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 = a.slice(0, 2), p = a.length < 4 ? a.slice(0, 2) : a.slice(2, 4), m = a.length < 6 ? a.slice(0, 2) : a.slice(4, 6);
|
|
4329
|
+
this._des1 = s.createEncryptor(P.create(q)), this._des2 = s.createEncryptor(P.create(p)), this._des3 = s.createEncryptor(P.create(m));
|
|
4330
4330
|
},
|
|
4331
|
-
encryptBlock: function(H,
|
|
4332
|
-
this._des1.encryptBlock(H,
|
|
4331
|
+
encryptBlock: function(H, a) {
|
|
4332
|
+
this._des1.encryptBlock(H, a), this._des2.decryptBlock(H, a), this._des3.encryptBlock(H, a);
|
|
4333
4333
|
},
|
|
4334
|
-
decryptBlock: function(H,
|
|
4335
|
-
this._des3.decryptBlock(H,
|
|
4334
|
+
decryptBlock: function(H, a) {
|
|
4335
|
+
this._des3.decryptBlock(H, a), this._des2.encryptBlock(H, a), this._des1.decryptBlock(H, a);
|
|
4336
4336
|
},
|
|
4337
4337
|
keySize: 192 / 32,
|
|
4338
4338
|
ivSize: 64 / 32,
|
|
4339
4339
|
blockSize: 64 / 32
|
|
4340
4340
|
});
|
|
4341
|
-
v.TripleDES = t._createHelper(
|
|
4341
|
+
v.TripleDES = t._createHelper(b);
|
|
4342
4342
|
}(), f.TripleDES;
|
|
4343
4343
|
});
|
|
4344
4344
|
}(Xe)), Xe.exports;
|
|
@@ -4352,13 +4352,13 @@ function ZP() {
|
|
|
4352
4352
|
return function() {
|
|
4353
4353
|
var v = f, r = v.lib, P = r.StreamCipher, t = v.algo, z = t.RC4 = P.extend({
|
|
4354
4354
|
_doReset: function() {
|
|
4355
|
-
for (var u = this._key, x = u.words, X = u.sigBytes,
|
|
4356
|
-
|
|
4357
|
-
for (var
|
|
4358
|
-
var
|
|
4359
|
-
|
|
4360
|
-
var
|
|
4361
|
-
|
|
4355
|
+
for (var u = this._key, x = u.words, X = u.sigBytes, s = this._S = [], c = 0; c < 256; c++)
|
|
4356
|
+
s[c] = c;
|
|
4357
|
+
for (var c = 0, i = 0; c < 256; c++) {
|
|
4358
|
+
var b = c % X, H = x[b >>> 2] >>> 24 - b % 4 * 8 & 255;
|
|
4359
|
+
i = (i + s[c] + H) % 256;
|
|
4360
|
+
var a = s[c];
|
|
4361
|
+
s[c] = s[i], s[i] = a;
|
|
4362
4362
|
}
|
|
4363
4363
|
this._i = this._j = 0;
|
|
4364
4364
|
},
|
|
@@ -4369,12 +4369,12 @@ function ZP() {
|
|
|
4369
4369
|
ivSize: 0
|
|
4370
4370
|
});
|
|
4371
4371
|
function d() {
|
|
4372
|
-
for (var u = this._S, x = this._i, X = this._j,
|
|
4372
|
+
for (var u = this._S, x = this._i, X = this._j, s = 0, c = 0; c < 4; c++) {
|
|
4373
4373
|
x = (x + 1) % 256, X = (X + u[x]) % 256;
|
|
4374
|
-
var
|
|
4375
|
-
u[x] = u[X], u[X] =
|
|
4374
|
+
var i = u[x];
|
|
4375
|
+
u[x] = u[X], u[X] = i, s |= u[(u[x] + u[X]) % 256] << 24 - c * 8;
|
|
4376
4376
|
}
|
|
4377
|
-
return this._i = x, this._j = X,
|
|
4377
|
+
return this._i = x, this._j = X, s;
|
|
4378
4378
|
}
|
|
4379
4379
|
v.RC4 = P._createHelper(z);
|
|
4380
4380
|
var n = t.RC4Drop = z.extend({
|
|
@@ -4406,9 +4406,9 @@ function TP() {
|
|
|
4406
4406
|
return function() {
|
|
4407
4407
|
var v = f, r = v.lib, P = r.StreamCipher, t = v.algo, z = [], d = [], n = [], u = t.Rabbit = P.extend({
|
|
4408
4408
|
_doReset: function() {
|
|
4409
|
-
for (var X = this._key.words,
|
|
4410
|
-
X[
|
|
4411
|
-
var
|
|
4409
|
+
for (var X = this._key.words, s = this.cfg.iv, c = 0; c < 4; c++)
|
|
4410
|
+
X[c] = (X[c] << 8 | X[c] >>> 24) & 16711935 | (X[c] << 24 | X[c] >>> 8) & 4278255360;
|
|
4411
|
+
var i = this._X = [
|
|
4412
4412
|
X[0],
|
|
4413
4413
|
X[3] << 16 | X[2] >>> 16,
|
|
4414
4414
|
X[1],
|
|
@@ -4417,7 +4417,7 @@ function TP() {
|
|
|
4417
4417
|
X[1] << 16 | X[0] >>> 16,
|
|
4418
4418
|
X[3],
|
|
4419
4419
|
X[2] << 16 | X[1] >>> 16
|
|
4420
|
-
],
|
|
4420
|
+
], b = this._C = [
|
|
4421
4421
|
X[2] << 16 | X[2] >>> 16,
|
|
4422
4422
|
X[0] & 4294901760 | X[1] & 65535,
|
|
4423
4423
|
X[3] << 16 | X[3] >>> 16,
|
|
@@ -4428,33 +4428,33 @@ function TP() {
|
|
|
4428
4428
|
X[3] & 4294901760 | X[0] & 65535
|
|
4429
4429
|
];
|
|
4430
4430
|
this._b = 0;
|
|
4431
|
-
for (var
|
|
4431
|
+
for (var c = 0; c < 4; c++)
|
|
4432
4432
|
x.call(this);
|
|
4433
|
-
for (var
|
|
4434
|
-
c
|
|
4435
|
-
if (
|
|
4436
|
-
var H =
|
|
4437
|
-
|
|
4438
|
-
for (var
|
|
4433
|
+
for (var c = 0; c < 8; c++)
|
|
4434
|
+
b[c] ^= i[c + 4 & 7];
|
|
4435
|
+
if (s) {
|
|
4436
|
+
var H = s.words, a = H[0], q = H[1], p = (a << 8 | a >>> 24) & 16711935 | (a << 24 | a >>> 8) & 4278255360, m = (q << 8 | q >>> 24) & 16711935 | (q << 24 | q >>> 8) & 4278255360, N = p >>> 16 | m & 4294901760, V = m << 16 | p & 65535;
|
|
4437
|
+
b[0] ^= p, b[1] ^= N, b[2] ^= m, b[3] ^= V, b[4] ^= p, b[5] ^= N, b[6] ^= m, b[7] ^= V;
|
|
4438
|
+
for (var c = 0; c < 4; c++)
|
|
4439
4439
|
x.call(this);
|
|
4440
4440
|
}
|
|
4441
4441
|
},
|
|
4442
|
-
_doProcessBlock: function(X,
|
|
4443
|
-
var
|
|
4444
|
-
x.call(this), z[0] =
|
|
4445
|
-
for (var
|
|
4446
|
-
z[
|
|
4442
|
+
_doProcessBlock: function(X, s) {
|
|
4443
|
+
var c = this._X;
|
|
4444
|
+
x.call(this), z[0] = c[0] ^ c[5] >>> 16 ^ c[3] << 16, z[1] = c[2] ^ c[7] >>> 16 ^ c[5] << 16, z[2] = c[4] ^ c[1] >>> 16 ^ c[7] << 16, z[3] = c[6] ^ c[3] >>> 16 ^ c[1] << 16;
|
|
4445
|
+
for (var i = 0; i < 4; i++)
|
|
4446
|
+
z[i] = (z[i] << 8 | z[i] >>> 24) & 16711935 | (z[i] << 24 | z[i] >>> 8) & 4278255360, X[s + i] ^= z[i];
|
|
4447
4447
|
},
|
|
4448
4448
|
blockSize: 128 / 32,
|
|
4449
4449
|
ivSize: 64 / 32
|
|
4450
4450
|
});
|
|
4451
4451
|
function x() {
|
|
4452
|
-
for (var X = this._X,
|
|
4453
|
-
d[
|
|
4454
|
-
|
|
4455
|
-
for (var
|
|
4456
|
-
var
|
|
4457
|
-
n[
|
|
4452
|
+
for (var X = this._X, s = this._C, c = 0; c < 8; c++)
|
|
4453
|
+
d[c] = s[c];
|
|
4454
|
+
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < d[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < d[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < d[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < d[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < d[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < d[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < d[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < d[7] >>> 0 ? 1 : 0;
|
|
4455
|
+
for (var c = 0; c < 8; c++) {
|
|
4456
|
+
var i = X[c] + s[c], b = i & 65535, H = i >>> 16, a = ((b * b >>> 17) + b * H >>> 15) + H * H, q = ((i & 4294901760) * i | 0) + ((i & 65535) * i | 0);
|
|
4457
|
+
n[c] = a ^ q;
|
|
4458
4458
|
}
|
|
4459
4459
|
X[0] = n[0] + (n[7] << 16 | n[7] >>> 16) + (n[6] << 16 | n[6] >>> 16) | 0, X[1] = n[1] + (n[0] << 8 | n[0] >>> 24) + n[7] | 0, X[2] = n[2] + (n[1] << 16 | n[1] >>> 16) + (n[0] << 16 | n[0] >>> 16) | 0, X[3] = n[3] + (n[2] << 8 | n[2] >>> 24) + n[1] | 0, X[4] = n[4] + (n[3] << 16 | n[3] >>> 16) + (n[2] << 16 | n[2] >>> 16) | 0, X[5] = n[5] + (n[4] << 8 | n[4] >>> 24) + n[3] | 0, X[6] = n[6] + (n[5] << 16 | n[5] >>> 16) + (n[4] << 16 | n[4] >>> 16) | 0, X[7] = n[7] + (n[6] << 8 | n[6] >>> 24) + n[5] | 0;
|
|
4460
4460
|
}
|
|
@@ -4472,7 +4472,7 @@ function oP() {
|
|
|
4472
4472
|
return function() {
|
|
4473
4473
|
var v = f, r = v.lib, P = r.StreamCipher, t = v.algo, z = [], d = [], n = [], u = t.RabbitLegacy = P.extend({
|
|
4474
4474
|
_doReset: function() {
|
|
4475
|
-
var X = this._key.words,
|
|
4475
|
+
var X = this._key.words, s = this.cfg.iv, c = this._X = [
|
|
4476
4476
|
X[0],
|
|
4477
4477
|
X[3] << 16 | X[2] >>> 16,
|
|
4478
4478
|
X[1],
|
|
@@ -4481,7 +4481,7 @@ function oP() {
|
|
|
4481
4481
|
X[1] << 16 | X[0] >>> 16,
|
|
4482
4482
|
X[3],
|
|
4483
4483
|
X[2] << 16 | X[1] >>> 16
|
|
4484
|
-
],
|
|
4484
|
+
], i = this._C = [
|
|
4485
4485
|
X[2] << 16 | X[2] >>> 16,
|
|
4486
4486
|
X[0] & 4294901760 | X[1] & 65535,
|
|
4487
4487
|
X[3] << 16 | X[3] >>> 16,
|
|
@@ -4492,33 +4492,33 @@ function oP() {
|
|
|
4492
4492
|
X[3] & 4294901760 | X[0] & 65535
|
|
4493
4493
|
];
|
|
4494
4494
|
this._b = 0;
|
|
4495
|
-
for (var
|
|
4495
|
+
for (var b = 0; b < 4; b++)
|
|
4496
4496
|
x.call(this);
|
|
4497
|
-
for (var
|
|
4498
|
-
|
|
4499
|
-
if (
|
|
4500
|
-
var H =
|
|
4501
|
-
|
|
4502
|
-
for (var
|
|
4497
|
+
for (var b = 0; b < 8; b++)
|
|
4498
|
+
i[b] ^= c[b + 4 & 7];
|
|
4499
|
+
if (s) {
|
|
4500
|
+
var H = s.words, a = H[0], q = H[1], p = (a << 8 | a >>> 24) & 16711935 | (a << 24 | a >>> 8) & 4278255360, m = (q << 8 | q >>> 24) & 16711935 | (q << 24 | q >>> 8) & 4278255360, N = p >>> 16 | m & 4294901760, V = m << 16 | p & 65535;
|
|
4501
|
+
i[0] ^= p, i[1] ^= N, i[2] ^= m, i[3] ^= V, i[4] ^= p, i[5] ^= N, i[6] ^= m, i[7] ^= V;
|
|
4502
|
+
for (var b = 0; b < 4; b++)
|
|
4503
4503
|
x.call(this);
|
|
4504
4504
|
}
|
|
4505
4505
|
},
|
|
4506
|
-
_doProcessBlock: function(X,
|
|
4507
|
-
var
|
|
4508
|
-
x.call(this), z[0] =
|
|
4509
|
-
for (var
|
|
4510
|
-
z[
|
|
4506
|
+
_doProcessBlock: function(X, s) {
|
|
4507
|
+
var c = this._X;
|
|
4508
|
+
x.call(this), z[0] = c[0] ^ c[5] >>> 16 ^ c[3] << 16, z[1] = c[2] ^ c[7] >>> 16 ^ c[5] << 16, z[2] = c[4] ^ c[1] >>> 16 ^ c[7] << 16, z[3] = c[6] ^ c[3] >>> 16 ^ c[1] << 16;
|
|
4509
|
+
for (var i = 0; i < 4; i++)
|
|
4510
|
+
z[i] = (z[i] << 8 | z[i] >>> 24) & 16711935 | (z[i] << 24 | z[i] >>> 8) & 4278255360, X[s + i] ^= z[i];
|
|
4511
4511
|
},
|
|
4512
4512
|
blockSize: 128 / 32,
|
|
4513
4513
|
ivSize: 64 / 32
|
|
4514
4514
|
});
|
|
4515
4515
|
function x() {
|
|
4516
|
-
for (var X = this._X,
|
|
4517
|
-
d[
|
|
4518
|
-
|
|
4519
|
-
for (var
|
|
4520
|
-
var
|
|
4521
|
-
n[
|
|
4516
|
+
for (var X = this._X, s = this._C, c = 0; c < 8; c++)
|
|
4517
|
+
d[c] = s[c];
|
|
4518
|
+
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < d[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < d[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < d[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < d[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < d[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < d[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < d[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < d[7] >>> 0 ? 1 : 0;
|
|
4519
|
+
for (var c = 0; c < 8; c++) {
|
|
4520
|
+
var i = X[c] + s[c], b = i & 65535, H = i >>> 16, a = ((b * b >>> 17) + b * H >>> 15) + H * H, q = ((i & 4294901760) * i | 0) + ((i & 65535) * i | 0);
|
|
4521
|
+
n[c] = a ^ 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
|
|
5595
|
+
function x(b, H) {
|
|
5596
|
+
let a = H >> 24 & 255, q = H >> 16 & 255, p = H >> 8 & 255, m = H & 255, N = b.sbox[0][a] + b.sbox[1][q];
|
|
5597
|
+
return N = N ^ b.sbox[2][p], N = N + b.sbox[3][m], N;
|
|
5598
5598
|
}
|
|
5599
|
-
function X(
|
|
5600
|
-
let q = H, p =
|
|
5601
|
-
for (let
|
|
5602
|
-
q = q ^
|
|
5603
|
-
return m = q, q = p, p = m, p = p ^
|
|
5599
|
+
function X(b, H, a) {
|
|
5600
|
+
let q = H, p = a, m;
|
|
5601
|
+
for (let N = 0; N < z; ++N)
|
|
5602
|
+
q = q ^ b.pbox[N], p = x(b, q) ^ p, m = q, q = p, p = m;
|
|
5603
|
+
return m = q, q = p, p = m, p = p ^ b.pbox[z], q = q ^ b.pbox[z + 1], { left: q, right: p };
|
|
5604
5604
|
}
|
|
5605
|
-
function
|
|
5606
|
-
let q = H, p =
|
|
5607
|
-
for (let
|
|
5608
|
-
q = q ^
|
|
5609
|
-
return m = q, q = p, p = m, p = p ^
|
|
5605
|
+
function s(b, H, a) {
|
|
5606
|
+
let q = H, p = a, m;
|
|
5607
|
+
for (let N = z + 1; N > 1; --N)
|
|
5608
|
+
q = q ^ b.pbox[N], p = x(b, q) ^ p, m = q, q = p, p = m;
|
|
5609
|
+
return m = q, q = p, p = m, p = p ^ b.pbox[1], q = q ^ b.pbox[0], { left: q, right: p };
|
|
5610
5610
|
}
|
|
5611
|
-
function
|
|
5611
|
+
function c(b, H, a) {
|
|
5612
5612
|
for (let V = 0; V < 4; V++) {
|
|
5613
|
-
|
|
5613
|
+
b.sbox[V] = [];
|
|
5614
5614
|
for (let l = 0; l < 256; l++)
|
|
5615
|
-
|
|
5615
|
+
b.sbox[V][l] = n[V][l];
|
|
5616
5616
|
}
|
|
5617
5617
|
let q = 0;
|
|
5618
5618
|
for (let V = 0; V < z + 2; V++)
|
|
5619
|
-
|
|
5620
|
-
let p = 0, m = 0,
|
|
5619
|
+
b.pbox[V] = d[V] ^ H[q], q++, q >= a && (q = 0);
|
|
5620
|
+
let p = 0, m = 0, N = 0;
|
|
5621
5621
|
for (let V = 0; V < z + 2; V += 2)
|
|
5622
|
-
|
|
5622
|
+
N = X(b, p, m), p = N.left, m = N.right, b.pbox[V] = p, b.pbox[V + 1] = m;
|
|
5623
5623
|
for (let V = 0; V < 4; V++)
|
|
5624
5624
|
for (let l = 0; l < 256; l += 2)
|
|
5625
|
-
|
|
5625
|
+
N = X(b, p, m), p = N.left, m = N.right, b.sbox[V][l] = p, b.sbox[V][l + 1] = m;
|
|
5626
5626
|
return !0;
|
|
5627
5627
|
}
|
|
5628
|
-
var
|
|
5628
|
+
var i = t.Blowfish = P.extend({
|
|
5629
5629
|
_doReset: function() {
|
|
5630
5630
|
if (this._keyPriorReset !== this._key) {
|
|
5631
|
-
var
|
|
5632
|
-
|
|
5631
|
+
var b = this._keyPriorReset = this._key, H = b.words, a = b.sigBytes / 4;
|
|
5632
|
+
c(u, H, a);
|
|
5633
5633
|
}
|
|
5634
5634
|
},
|
|
5635
|
-
encryptBlock: function(
|
|
5636
|
-
var
|
|
5637
|
-
|
|
5635
|
+
encryptBlock: function(b, H) {
|
|
5636
|
+
var a = X(u, b[H], b[H + 1]);
|
|
5637
|
+
b[H] = a.left, b[H + 1] = a.right;
|
|
5638
5638
|
},
|
|
5639
|
-
decryptBlock: function(
|
|
5640
|
-
var
|
|
5641
|
-
|
|
5639
|
+
decryptBlock: function(b, H) {
|
|
5640
|
+
var a = s(u, b[H], b[H + 1]);
|
|
5641
|
+
b[H] = a.left, b[H + 1] = a.right;
|
|
5642
5642
|
},
|
|
5643
5643
|
blockSize: 64 / 32,
|
|
5644
5644
|
keySize: 128 / 32,
|
|
5645
5645
|
ivSize: 64 / 32
|
|
5646
5646
|
});
|
|
5647
|
-
v.Blowfish = P._createHelper(
|
|
5647
|
+
v.Blowfish = P._createHelper(i);
|
|
5648
5648
|
}(), f.Blowfish;
|
|
5649
5649
|
});
|
|
5650
5650
|
}(ie)), ie.exports;
|
|
@@ -5781,10 +5781,10 @@ const QP = {
|
|
|
5781
5781
|
iso10126: "iso10126",
|
|
5782
5782
|
ansix923: "ansix923"
|
|
5783
5783
|
}, r = { hex: "hex", base64: "base64" };
|
|
5784
|
-
let P = e.encryptType || "", t = f[P.toLowerCase()], z = e.encryptMode || "", d = e.encryptKey || "", n = e.encryptOffset || "", u = e.encryptPadding || "", x = v[u.toLowerCase()], X = e.codingMode || "",
|
|
5785
|
-
return new Promise((
|
|
5786
|
-
t !== "aes" && t !== "des" ?
|
|
5787
|
-
|
|
5784
|
+
let P = e.encryptType || "", t = f[P.toLowerCase()], z = e.encryptMode || "", d = e.encryptKey || "", n = e.encryptOffset || "", u = e.encryptPadding || "", x = v[u.toLowerCase()], X = e.codingMode || "", s = r[X.toLowerCase()], i = (Number(e.encryptKeyLength) || 0) / 8;
|
|
5785
|
+
return new Promise((b) => {
|
|
5786
|
+
t !== "aes" && t !== "des" ? b({ error: "加密类型出错==", value: null }) : QP[t](A, d, { mode: z, keySize: i, padding: x, encoding: s, iv: n }, (H) => {
|
|
5787
|
+
b(H);
|
|
5788
5788
|
});
|
|
5789
5789
|
});
|
|
5790
5790
|
};
|
|
@@ -5807,7 +5807,7 @@ async function qv(e) {
|
|
|
5807
5807
|
USER_NICKNAME: v,
|
|
5808
5808
|
USER_PHONE: r,
|
|
5809
5809
|
USER_TOKEN: t9(),
|
|
5810
|
-
CURRENT_PROJECT:
|
|
5810
|
+
CURRENT_PROJECT: YA().id
|
|
5811
5811
|
}[e];
|
|
5812
5812
|
}
|
|
5813
5813
|
async function GP(e) {
|
|
@@ -5913,7 +5913,7 @@ const Hv = async (e, A) => {
|
|
|
5913
5913
|
});
|
|
5914
5914
|
}, vt = async () => {
|
|
5915
5915
|
const [e, A] = await CP().run({});
|
|
5916
|
-
return e ? { personalConfig: null } : (lv(
|
|
5916
|
+
return e ? { personalConfig: null } : (lv(YA().id), kr(A), { personalConfig: A });
|
|
5917
5917
|
}, nt = async () => {
|
|
5918
5918
|
const [e, A] = await _P().run();
|
|
5919
5919
|
return e ? { tenantConfig: null } : (Qr(A), { tenantConfig: A });
|
|
@@ -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(
|
|
6429
|
+
P.set(e, t), zd(e) ? e.forEach(function(s) {
|
|
6430
|
+
t.add(uf(s, A, f, s, e, P));
|
|
6431
|
+
}) : Pd(e) && e.forEach(function(s, c) {
|
|
6432
|
+
t.set(c, uf(s, A, f, c, e, P));
|
|
6433
6433
|
});
|
|
6434
6434
|
var x = Oz, X = z ? void 0 : x(e);
|
|
6435
|
-
return Xu(X || e, function(
|
|
6436
|
-
X && (
|
|
6435
|
+
return Xu(X || e, function(s, c) {
|
|
6436
|
+
X && (c = s, s = e[c]), iu(t, c, uf(s, A, f, c, 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 =
|
|
6483
|
-
var
|
|
6482
|
+
const v = UA(A).filter((X) => X.routeUrl).filter((X) => !(X != null && X.disable) && !(X != null && X.expired)), P = (((x = ZA()) == null ? void 0 : x.tabMap) ?? {})[e] ?? [], { left: t, right: z } = Ed(P, f), d = P.filter((X) => v.find((s) => s.code === X.code)).map((X) => {
|
|
6483
|
+
var s, c;
|
|
6484
6484
|
return {
|
|
6485
6485
|
...X,
|
|
6486
|
-
name: ((
|
|
6486
|
+
name: ((s = v.find((i) => i.code === X.code)) == null ? void 0 : s.tabName) ?? ((c = v.find((i) => i.code === X.code)) == null ? void 0 : c.name) ?? X.name
|
|
6487
6487
|
};
|
|
6488
6488
|
});
|
|
6489
6489
|
if (!t.length && !z.length || !d.length)
|
|
@@ -6495,11 +6495,11 @@ const bf = (e, A = "") => {
|
|
|
6495
6495
|
]), oe(e);
|
|
6496
6496
|
let n = null;
|
|
6497
6497
|
if (z.length) {
|
|
6498
|
-
const X = z.find((
|
|
6498
|
+
const X = z.find((s) => d.map((c) => c.code).includes(s.code));
|
|
6499
6499
|
X && (n = X);
|
|
6500
6500
|
}
|
|
6501
6501
|
if (!n && t.length) {
|
|
6502
|
-
const X = t.reverse().find((
|
|
6502
|
+
const X = t.reverse().find((s) => d.map((c) => c.code).includes(s.code));
|
|
6503
6503
|
X && (n = X);
|
|
6504
6504
|
}
|
|
6505
6505
|
return n ? (IA([
|
|
@@ -6528,7 +6528,7 @@ const bf = (e, A = "") => {
|
|
|
6528
6528
|
});
|
|
6529
6529
|
if (A || !f || !f.length) return { menus: [], originalMenus: [], err: A };
|
|
6530
6530
|
Sr(f, e);
|
|
6531
|
-
const v =
|
|
6531
|
+
const v = UA(f);
|
|
6532
6532
|
Kr(v, e), _r(v, e);
|
|
6533
6533
|
let r = Wn(f, (t) => t.isMenu);
|
|
6534
6534
|
const P = o9(r);
|
|
@@ -6536,59 +6536,59 @@ const bf = (e, A = "") => {
|
|
|
6536
6536
|
t != null && t.children && t.children.length && (t.originalChildren = o9(t.children)), (t != null && t.expired || t != null && t.disable) && (t.children = []);
|
|
6537
6537
|
}), { menus: r, originalMenus: P };
|
|
6538
6538
|
}, Md = async (e) => {
|
|
6539
|
-
var X,
|
|
6539
|
+
var X, s, c, i, b;
|
|
6540
6540
|
let { microApp: A = null, menuCode: f = "", menuPath: v = "", route: r = {} } = e;
|
|
6541
6541
|
const P = ((X = r.meta) == null ? void 0 : X.showLayout) ?? !0;
|
|
6542
|
-
let t = ((
|
|
6542
|
+
let t = ((s = r.query) == null ? void 0 : s.showLayout) ?? !0;
|
|
6543
6543
|
t === "false" && (t = !1);
|
|
6544
6544
|
let z = (A == null ? void 0 : A.code) ?? "";
|
|
6545
6545
|
if (!z) return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
|
|
6546
6546
|
let d = [], n = [];
|
|
6547
6547
|
const u = uA().subAppList ?? [];
|
|
6548
|
-
if (u.length && (d = ((
|
|
6549
|
-
const { menus: H, originalMenus:
|
|
6550
|
-
d = H ?? [], n =
|
|
6548
|
+
if (u.length && (d = ((c = u.find((H) => H.code === A.code)) == null ? void 0 : c.menus) ?? []), !d.length) {
|
|
6549
|
+
const { menus: H, originalMenus: a } = await Je(z);
|
|
6550
|
+
d = H ?? [], n = a ?? [];
|
|
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 a = !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 (
|
|
6563
|
-
const m =
|
|
6562
|
+
if (a = De().endOf("day") > De(q).endOf("day"), !f && !v && H.id && !a) {
|
|
6563
|
+
const m = UA(d).find((N) => N.routeUrl === "/statisticalReport");
|
|
6564
6564
|
m && (f = m.code);
|
|
6565
6565
|
}
|
|
6566
6566
|
}
|
|
6567
6567
|
}
|
|
6568
6568
|
if (P && t) {
|
|
6569
|
-
const
|
|
6570
|
-
var
|
|
6569
|
+
const H = UA(d), q = ((i = (ZA().tabMap ?? {})[A.code]) == null ? void 0 : i.map((p) => {
|
|
6570
|
+
var m, N;
|
|
6571
6571
|
return {
|
|
6572
|
-
...
|
|
6573
|
-
name: ((
|
|
6572
|
+
...p,
|
|
6573
|
+
name: ((m = H.find((V) => V.code === p.code)) == null ? void 0 : m.tabName) ?? ((N = H.find((V) => V.code === p.code)) == null ? void 0 : N.name) ?? p.name
|
|
6574
6574
|
};
|
|
6575
6575
|
})) ?? [];
|
|
6576
|
-
if (
|
|
6577
|
-
const
|
|
6578
|
-
(
|
|
6576
|
+
if (q.length) {
|
|
6577
|
+
const p = q.filter(
|
|
6578
|
+
(m) => f && f === m.code || v && v === `/${m.applicationPath}${m.path}`.replace(/\/\//g, "/") || H.map((N) => N.code).includes(m.code)
|
|
6579
6579
|
);
|
|
6580
6580
|
IA([
|
|
6581
6581
|
{
|
|
6582
6582
|
key: `tabMap:${A.code}`,
|
|
6583
|
-
value:
|
|
6583
|
+
value: p
|
|
6584
6584
|
}
|
|
6585
6585
|
]);
|
|
6586
6586
|
}
|
|
6587
6587
|
}
|
|
6588
6588
|
if (!f && v) {
|
|
6589
|
-
const H =
|
|
6590
|
-
const q = `/${
|
|
6591
|
-
return
|
|
6589
|
+
const H = UA(d).find((a) => {
|
|
6590
|
+
const q = `/${a.applicationPath}${a.routeUrl}`.replace(/\/\//g, "/");
|
|
6591
|
+
return a.applicationPath && a.routeUrl && (v === q || v.startsWith(`/${q}/`));
|
|
6592
6592
|
});
|
|
6593
6593
|
if (H)
|
|
6594
6594
|
f = H.code;
|
|
@@ -6605,14 +6605,14 @@ const bf = (e, A = "") => {
|
|
|
6605
6605
|
if (!P || !t)
|
|
6606
6606
|
return { menuConfig: d, currentApp: null, currentMenu: null, query: { ...r.query, app: z } };
|
|
6607
6607
|
const H = Id(A.code, d, f);
|
|
6608
|
-
H != null && H.currentApp && (A = H.currentApp), H != null && H.currentMenu && (x = H.currentMenu), H != null && H.currentTab && (r.query = ((
|
|
6608
|
+
H != null && H.currentApp && (A = H.currentApp), H != null && H.currentMenu && (x = H.currentMenu), H != null && H.currentTab && (r.query = ((b = H.currentTab) == null ? void 0 : b.query) ?? {});
|
|
6609
6609
|
}
|
|
6610
6610
|
if ((A == null ? void 0 : A.routeUrl) === RA)
|
|
6611
6611
|
return { menuConfig: [], currentApp: A, currentMenu: null, query: null };
|
|
6612
6612
|
if (x) {
|
|
6613
6613
|
const H = `/${x.applicationPath}${x.routeUrl}`;
|
|
6614
|
-
let
|
|
6615
|
-
v && v.startsWith(H) && v !== H && (
|
|
6614
|
+
let a = "";
|
|
6615
|
+
v && v.startsWith(H) && v !== H && (a = 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: a };
|
|
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(() => {
|
|
@@ -6675,16 +6675,16 @@ const bf = (e, A = "") => {
|
|
|
6675
6675
|
if ((e == null ? void 0 : e.flag) === 4) {
|
|
6676
6676
|
const [d, n = []] = await Ud().run();
|
|
6677
6677
|
if (A = n, A && A.length) {
|
|
6678
|
-
const u = ((t =
|
|
6678
|
+
const u = ((t = YA()) == null ? void 0 : t.id) || 0;
|
|
6679
6679
|
if (u && (f = A.find((x) => x.id === u)), !u || !f) {
|
|
6680
|
-
const x = e.tenant.id ?? "", X = A.filter((
|
|
6680
|
+
const x = e.tenant.id ?? "", X = A.filter((s) => s.tenant === x);
|
|
6681
6681
|
X && X.length && (f = X[0]);
|
|
6682
6682
|
}
|
|
6683
6683
|
}
|
|
6684
6684
|
} else {
|
|
6685
6685
|
const [d, n = []] = await Yd().run();
|
|
6686
6686
|
if (A = n, A && A.length) {
|
|
6687
|
-
const u = ((z =
|
|
6687
|
+
const u = ((z = YA()) == null ? void 0 : z.id) || 0;
|
|
6688
6688
|
u && (f = i7(A, (x) => x.id === u)), (!u || !f) && (f = i7(A, (x) => x.type === 7));
|
|
6689
6689
|
}
|
|
6690
6690
|
}
|
|
@@ -6725,34 +6725,34 @@ const bf = (e, A = "") => {
|
|
|
6725
6725
|
f.value = SA.value.style === 1, v.value = SA.value.style === 2, r.value = SA.value.skinStyle === "default", P.value = SA.value.skinStyle === "kjl", t.value = SA.value.skinStyle === "cjb", z.value = SA.value.skinStyle === "ssl";
|
|
6726
6726
|
};
|
|
6727
6727
|
_A(d);
|
|
6728
|
-
const n = (
|
|
6729
|
-
|
|
6728
|
+
const n = (i, b) => {
|
|
6729
|
+
i === "menu" ? (f.value = b === 1, v.value = b === 2) : (r.value = b === 1, P.value = b === 2, t.value = b === 3, z.value = b === 4);
|
|
6730
6730
|
}, u = () => {
|
|
6731
|
-
const
|
|
6731
|
+
const i = {
|
|
6732
6732
|
default: r.value,
|
|
6733
6733
|
kjl: P.value,
|
|
6734
6734
|
cjb: t.value,
|
|
6735
6735
|
ssl: z.value
|
|
6736
6736
|
};
|
|
6737
|
-
return Object.keys(
|
|
6737
|
+
return Object.keys(i).find((b) => i[b] === !0) ?? "default";
|
|
6738
6738
|
}, x = () => ({
|
|
6739
6739
|
style: f.value ? 1 : 2,
|
|
6740
6740
|
skinStyle: u()
|
|
6741
6741
|
}), X = EA(() => {
|
|
6742
|
-
const
|
|
6742
|
+
const i = C9.value === "zh-CN";
|
|
6743
6743
|
return {
|
|
6744
|
-
default:
|
|
6745
|
-
kjl:
|
|
6746
|
-
cjb:
|
|
6747
|
-
ssl:
|
|
6744
|
+
default: i ? c5 : q5,
|
|
6745
|
+
kjl: i ? a5 : H5,
|
|
6746
|
+
cjb: i ? i5 : p5,
|
|
6747
|
+
ssl: i ? s5 : x5
|
|
6748
6748
|
}[u()];
|
|
6749
|
-
}), { onPreview:
|
|
6750
|
-
|
|
6749
|
+
}), { onPreview: s } = Pr(), c = () => {
|
|
6750
|
+
s({ previewList: [X.value], previewBtnConfig: !0 });
|
|
6751
6751
|
};
|
|
6752
6752
|
return A({
|
|
6753
6753
|
init: d,
|
|
6754
6754
|
getResult: x
|
|
6755
|
-
}), (
|
|
6755
|
+
}), (i, b) => h9((fA(), mA(
|
|
6756
6756
|
"div",
|
|
6757
6757
|
O5,
|
|
6758
6758
|
[
|
|
@@ -6767,7 +6767,7 @@ const bf = (e, A = "") => {
|
|
|
6767
6767
|
k("div", D5, [
|
|
6768
6768
|
k("div", {
|
|
6769
6769
|
class: "item-content",
|
|
6770
|
-
onClick:
|
|
6770
|
+
onClick: b[1] || (b[1] = (H) => n("menu", 1))
|
|
6771
6771
|
}, [
|
|
6772
6772
|
k("img", {
|
|
6773
6773
|
src: D(t5),
|
|
@@ -6777,7 +6777,7 @@ const bf = (e, A = "") => {
|
|
|
6777
6777
|
}, null, 8, V5),
|
|
6778
6778
|
B(D(V9), {
|
|
6779
6779
|
modelValue: f.value,
|
|
6780
|
-
"onUpdate:modelValue":
|
|
6780
|
+
"onUpdate:modelValue": b[0] || (b[0] = (H) => f.value = H)
|
|
6781
6781
|
}, {
|
|
6782
6782
|
default: U(() => [
|
|
6783
6783
|
aA(
|
|
@@ -6792,7 +6792,7 @@ const bf = (e, A = "") => {
|
|
|
6792
6792
|
]),
|
|
6793
6793
|
k("div", {
|
|
6794
6794
|
class: "item-content",
|
|
6795
|
-
onClick:
|
|
6795
|
+
onClick: b[3] || (b[3] = (H) => n("menu", 2))
|
|
6796
6796
|
}, [
|
|
6797
6797
|
k("img", {
|
|
6798
6798
|
src: D(u5),
|
|
@@ -6802,7 +6802,7 @@ const bf = (e, A = "") => {
|
|
|
6802
6802
|
}, null, 8, N5),
|
|
6803
6803
|
B(D(V9), {
|
|
6804
6804
|
modelValue: v.value,
|
|
6805
|
-
"onUpdate:modelValue":
|
|
6805
|
+
"onUpdate:modelValue": b[2] || (b[2] = (H) => v.value = H)
|
|
6806
6806
|
}, {
|
|
6807
6807
|
default: U(() => [
|
|
6808
6808
|
aA(
|
|
@@ -6828,7 +6828,7 @@ const bf = (e, A = "") => {
|
|
|
6828
6828
|
k("div", Z5, [
|
|
6829
6829
|
k("div", {
|
|
6830
6830
|
class: "item-content",
|
|
6831
|
-
onClick:
|
|
6831
|
+
onClick: b[5] || (b[5] = (H) => n("skin", 1))
|
|
6832
6832
|
}, [
|
|
6833
6833
|
k("img", {
|
|
6834
6834
|
src: D(z5),
|
|
@@ -6838,7 +6838,7 @@ const bf = (e, A = "") => {
|
|
|
6838
6838
|
}, null, 8, T5),
|
|
6839
6839
|
B(D(V9), {
|
|
6840
6840
|
modelValue: r.value,
|
|
6841
|
-
"onUpdate:modelValue":
|
|
6841
|
+
"onUpdate:modelValue": b[4] || (b[4] = (H) => r.value = H)
|
|
6842
6842
|
}, {
|
|
6843
6843
|
default: U(() => [
|
|
6844
6844
|
aA(
|
|
@@ -6853,7 +6853,7 @@ const bf = (e, A = "") => {
|
|
|
6853
6853
|
]),
|
|
6854
6854
|
k("div", {
|
|
6855
6855
|
class: "item-content",
|
|
6856
|
-
onClick:
|
|
6856
|
+
onClick: b[7] || (b[7] = (H) => n("skin", 2))
|
|
6857
6857
|
}, [
|
|
6858
6858
|
k("img", {
|
|
6859
6859
|
src: D(d5),
|
|
@@ -6863,7 +6863,7 @@ const bf = (e, A = "") => {
|
|
|
6863
6863
|
}, null, 8, o5),
|
|
6864
6864
|
B(D(V9), {
|
|
6865
6865
|
modelValue: P.value,
|
|
6866
|
-
"onUpdate:modelValue":
|
|
6866
|
+
"onUpdate:modelValue": b[6] || (b[6] = (H) => P.value = H)
|
|
6867
6867
|
}, {
|
|
6868
6868
|
default: U(() => [
|
|
6869
6869
|
aA(
|
|
@@ -6880,7 +6880,7 @@ const bf = (e, A = "") => {
|
|
|
6880
6880
|
k("div", L5, [
|
|
6881
6881
|
k("div", {
|
|
6882
6882
|
class: "item-content",
|
|
6883
|
-
onClick:
|
|
6883
|
+
onClick: b[9] || (b[9] = (H) => n("skin", 3))
|
|
6884
6884
|
}, [
|
|
6885
6885
|
k("img", {
|
|
6886
6886
|
src: D(X5),
|
|
@@ -6890,7 +6890,7 @@ const bf = (e, A = "") => {
|
|
|
6890
6890
|
}, null, 8, y5),
|
|
6891
6891
|
B(D(V9), {
|
|
6892
6892
|
modelValue: t.value,
|
|
6893
|
-
"onUpdate:modelValue":
|
|
6893
|
+
"onUpdate:modelValue": b[8] || (b[8] = (H) => t.value = H)
|
|
6894
6894
|
}, {
|
|
6895
6895
|
default: U(() => [
|
|
6896
6896
|
aA(
|
|
@@ -6905,7 +6905,7 @@ const bf = (e, A = "") => {
|
|
|
6905
6905
|
]),
|
|
6906
6906
|
k("div", {
|
|
6907
6907
|
class: "item-content",
|
|
6908
|
-
onClick:
|
|
6908
|
+
onClick: b[11] || (b[11] = (H) => n("skin", 4))
|
|
6909
6909
|
}, [
|
|
6910
6910
|
k("img", {
|
|
6911
6911
|
src: D(b5),
|
|
@@ -6915,7 +6915,7 @@ const bf = (e, A = "") => {
|
|
|
6915
6915
|
}, null, 8, W5),
|
|
6916
6916
|
B(D(V9), {
|
|
6917
6917
|
modelValue: z.value,
|
|
6918
|
-
"onUpdate:modelValue":
|
|
6918
|
+
"onUpdate:modelValue": b[10] || (b[10] = (H) => z.value = H)
|
|
6919
6919
|
}, {
|
|
6920
6920
|
default: U(() => [
|
|
6921
6921
|
aA(
|
|
@@ -6944,7 +6944,7 @@ const bf = (e, A = "") => {
|
|
|
6944
6944
|
alt: "",
|
|
6945
6945
|
width: "100%",
|
|
6946
6946
|
height: "100% ",
|
|
6947
|
-
onClick:
|
|
6947
|
+
onClick: c
|
|
6948
6948
|
}, null, 8, M5)
|
|
6949
6949
|
])
|
|
6950
6950
|
])
|
|
@@ -6952,7 +6952,7 @@ const bf = (e, A = "") => {
|
|
|
6952
6952
|
512
|
|
6953
6953
|
/* NEED_PATCH */
|
|
6954
6954
|
)), [
|
|
6955
|
-
[af,
|
|
6955
|
+
[af, i.isShow]
|
|
6956
6956
|
]);
|
|
6957
6957
|
}
|
|
6958
6958
|
}), B5 = /* @__PURE__ */ gA(g5, [["__scopeId", "data-v-cea07b15"]]), k5 = { class: "set-lang" }, Q5 = /* @__PURE__ */ qA({
|
|
@@ -7020,7 +7020,7 @@ const bf = (e, A = "") => {
|
|
|
7020
7020
|
levelType: 1
|
|
7021
7021
|
}), u = zr();
|
|
7022
7022
|
let x = !0;
|
|
7023
|
-
const X = o(!1), { run:
|
|
7023
|
+
const X = o(!1), { run: s } = A6(), { run: c } = f6(), i = () => {
|
|
7024
7024
|
var m;
|
|
7025
7025
|
x = !0, (m = u.value) == null || m.resetLazyLoad();
|
|
7026
7026
|
};
|
|
@@ -7032,11 +7032,11 @@ const bf = (e, A = "") => {
|
|
|
7032
7032
|
keyword: z,
|
|
7033
7033
|
treeData: d,
|
|
7034
7034
|
openBuiltInDialog: () => {
|
|
7035
|
-
var m,
|
|
7036
|
-
P.value = ((m = f.value) == null ? void 0 : m.urlId) ?? "", t.value = ((
|
|
7035
|
+
var m, N, V;
|
|
7036
|
+
P.value = ((m = f.value) == null ? void 0 : m.urlId) ?? "", t.value = ((N = f.value) == null ? void 0 : N.urlPath) ?? ((V = f.value) == null ? void 0 : V.urlId) ?? "", z.value = "", r.value = !0, i();
|
|
7037
7037
|
},
|
|
7038
7038
|
loadChildNode: async (m) => {
|
|
7039
|
-
const
|
|
7039
|
+
const N = {
|
|
7040
7040
|
pageIndex: 1,
|
|
7041
7041
|
pageSize: 999,
|
|
7042
7042
|
parentId: "0",
|
|
@@ -7044,19 +7044,19 @@ const bf = (e, A = "") => {
|
|
|
7044
7044
|
dataType: f.value.parentId === "-1" ? 2 : 3,
|
|
7045
7045
|
isTenant: A.type === 1
|
|
7046
7046
|
};
|
|
7047
|
-
x ? (x = !1, X.value = !0) :
|
|
7048
|
-
let [V, l] = await
|
|
7047
|
+
x ? (x = !1, X.value = !0) : N.parentId = m.id;
|
|
7048
|
+
let [V, l] = await s(N);
|
|
7049
7049
|
return X.value = !1, V ? { data: [] } : { data: l.data || [] };
|
|
7050
7050
|
},
|
|
7051
7051
|
search: async (m) => {
|
|
7052
7052
|
if (!m) return {};
|
|
7053
|
-
const [
|
|
7053
|
+
const [N, V] = await c({
|
|
7054
7054
|
name: m,
|
|
7055
7055
|
orgId: A.id,
|
|
7056
7056
|
dataType: 2,
|
|
7057
7057
|
isTenant: A.type === 1
|
|
7058
7058
|
});
|
|
7059
|
-
return
|
|
7059
|
+
return N ? {} : V;
|
|
7060
7060
|
},
|
|
7061
7061
|
toggleTree: (m) => {
|
|
7062
7062
|
n.value = m, t.value = (m == null ? void 0 : m.path) ?? m.id;
|
|
@@ -7066,8 +7066,8 @@ const bf = (e, A = "") => {
|
|
|
7066
7066
|
Ie.warning(M("至少选择一个链接"));
|
|
7067
7067
|
return;
|
|
7068
7068
|
}
|
|
7069
|
-
const m = f.value,
|
|
7070
|
-
m.routeUrl =
|
|
7069
|
+
const m = f.value, N = n.value;
|
|
7070
|
+
m.routeUrl = N.routeUrl, m.originalCode = N.code, m.originalId = N.id, m.urlId = N.id, m.urlPath = N.path, m.applicationPath = N.applicationPath, v.value.routeUrl = "", m.code || (m.code = N.code), r.value = !1;
|
|
7071
7071
|
}
|
|
7072
7072
|
};
|
|
7073
7073
|
}, u6 = "/enterpriseadmin/ioc-server/ioc-server/ws";
|
|
@@ -7079,7 +7079,7 @@ const z6 = (e) => {
|
|
|
7079
7079
|
{ value: 2, label: M("设备看板") },
|
|
7080
7080
|
{ value: 3, label: M("数据编排") },
|
|
7081
7081
|
{ value: 4, label: M("轻分析") }
|
|
7082
|
-
]), z = o([]), d = o(20), n = o(1), u = o(0), x = o(""), X = o(""),
|
|
7082
|
+
]), z = o([]), d = o(20), n = o(1), u = o(0), x = o(""), X = o(""), s = o(""), c = o(!1), { run: i } = e6(), { run: b } = v6(), { run: H } = n6(), { run: a } = 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;
|
|
@@ -7094,22 +7094,22 @@ const z6 = (e) => {
|
|
|
7094
7094
|
C.push({ id: E, name: L.slice(0, -5), type: Y, url: E });
|
|
7095
7095
|
}
|
|
7096
7096
|
}
|
|
7097
|
-
},
|
|
7097
|
+
}, N = () => {
|
|
7098
7098
|
n.value = 1, u.value = 0, x.value = "";
|
|
7099
7099
|
}, V = () => {
|
|
7100
7100
|
var G, Y, S;
|
|
7101
|
-
|
|
7101
|
+
N(), P.value = ((G = A.value) == null ? void 0 : G.urlType) ?? 0, X.value = ((Y = A.value) == null ? void 0 : Y.urlId) ?? "", s.value = ((S = A.value) == null ? void 0 : S.routeUrl) ?? "", rf.afterMsg = p, R(), r.value = !0;
|
|
7102
7102
|
}, l = (G, Y, S) => {
|
|
7103
|
-
|
|
7103
|
+
s.value = Y.url;
|
|
7104
7104
|
}, j = () => {
|
|
7105
7105
|
if (!X.value) {
|
|
7106
7106
|
Ie.warning(M("至少选择一个链接"));
|
|
7107
7107
|
return;
|
|
7108
7108
|
}
|
|
7109
|
-
A.value.urlType = P.value, A.value.urlId = X.value, A.value.routeUrl =
|
|
7109
|
+
A.value.urlType = P.value, A.value.urlId = X.value, A.value.routeUrl = s.value, r.value = !1;
|
|
7110
7110
|
}, O = (G) => {
|
|
7111
|
-
|
|
7112
|
-
},
|
|
7111
|
+
N(), P.value = G, X.value = "", s.value = "", R();
|
|
7112
|
+
}, R = () => {
|
|
7113
7113
|
if (f.type !== 7) return;
|
|
7114
7114
|
({
|
|
7115
7115
|
0: Z,
|
|
@@ -7128,9 +7128,9 @@ const z6 = (e) => {
|
|
|
7128
7128
|
pageIndex: n.value,
|
|
7129
7129
|
pageSize: d.value
|
|
7130
7130
|
};
|
|
7131
|
-
|
|
7132
|
-
const [Y, S] = await
|
|
7133
|
-
if (
|
|
7131
|
+
c.value = !0;
|
|
7132
|
+
const [Y, S] = await b(G);
|
|
7133
|
+
if (c.value = !1, Y) {
|
|
7134
7134
|
z.value = [];
|
|
7135
7135
|
return;
|
|
7136
7136
|
}
|
|
@@ -7142,9 +7142,9 @@ const z6 = (e) => {
|
|
|
7142
7142
|
pageIndex: n.value,
|
|
7143
7143
|
pageSize: d.value
|
|
7144
7144
|
};
|
|
7145
|
-
|
|
7146
|
-
const [Y, S] = await
|
|
7147
|
-
if (
|
|
7145
|
+
c.value = !0;
|
|
7146
|
+
const [Y, S] = await i(G);
|
|
7147
|
+
if (c.value = !1, Y) {
|
|
7148
7148
|
z.value = [];
|
|
7149
7149
|
return;
|
|
7150
7150
|
}
|
|
@@ -7156,9 +7156,9 @@ const z6 = (e) => {
|
|
|
7156
7156
|
pageIndex: n.value,
|
|
7157
7157
|
pageSize: d.value
|
|
7158
7158
|
};
|
|
7159
|
-
|
|
7160
|
-
const [Y, S] = await
|
|
7161
|
-
if (
|
|
7159
|
+
c.value = !0;
|
|
7160
|
+
const [Y, S] = await a(G);
|
|
7161
|
+
if (c.value = !1, Y) {
|
|
7162
7162
|
z.value = [];
|
|
7163
7163
|
return;
|
|
7164
7164
|
}
|
|
@@ -7170,9 +7170,9 @@ const z6 = (e) => {
|
|
|
7170
7170
|
pageIndex: n.value,
|
|
7171
7171
|
pageSize: d.value
|
|
7172
7172
|
};
|
|
7173
|
-
|
|
7173
|
+
c.value = !0;
|
|
7174
7174
|
const [Y, S] = await H(G);
|
|
7175
|
-
if (
|
|
7175
|
+
if (c.value = !1, Y) {
|
|
7176
7176
|
z.value = [];
|
|
7177
7177
|
return;
|
|
7178
7178
|
}
|
|
@@ -7181,7 +7181,7 @@ const z6 = (e) => {
|
|
|
7181
7181
|
return _A(() => {
|
|
7182
7182
|
rf || (rf = new lf({ url: u6, reconnectWhenClose: !0, message: p }));
|
|
7183
7183
|
}), {
|
|
7184
|
-
loading:
|
|
7184
|
+
loading: c,
|
|
7185
7185
|
urlDialog: r,
|
|
7186
7186
|
urlType: P,
|
|
7187
7187
|
urlTypeOptions: t,
|
|
@@ -7195,7 +7195,7 @@ const z6 = (e) => {
|
|
|
7195
7195
|
tableChange: l,
|
|
7196
7196
|
confirmUrl: j,
|
|
7197
7197
|
changeType: O,
|
|
7198
|
-
getTable:
|
|
7198
|
+
getTable: R
|
|
7199
7199
|
};
|
|
7200
7200
|
}, d6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAV4AAADICAYAAACgY4nwAAAUoUlEQVR4Xu2dW4xd1XnH154ZG4Z4EtsoIQElxqWVUGsk00AeUOMYVX3oQyNQlUZplBaeGlWVCn1qKrVAH0Lf4K30iUZpo6ZSBUof+lBVtKS5CKeyo5DihoSxITY3Mb7MwIw9l939eXziYWbO2XvPWf912fu3JUuRZp9vrfX71vll8Z211y4cFwQgAAEIBCVQBG2NxiAAAQhAwCFeJgEEIACBwAQQb2DgNAcBCEAA8TIHIAABCAQmgHgDA6c5CEAAAoiXOQABCEAgMAHEGxg4zUEAAhBAvMwBCEAAAoEJIN7AwGkOAhCAAOJlDkAAAhAITADxBgZOcxCAAAQQL3MAAhCAQGACiDcwcJqDAAQggHiZAxCAAAQCE0C8gYHTHAQgAAHEyxyAAAQgEJgA4g0MnOYgAAEIIF7mAAQgAIHABBBvYOA0BwEIQADxMgcgAAEIBCaAeAMDpzkIQAACiJc5AAEIQCAwAcQbGDjNQQACEEC8zAEIQAACgQkg3sDAaQ4CEIAA4mUOQAACEAhMAPEGBk5zEIAABBAvcwACEIBAYAKINzBwmoMABCCAeJkDEIAABAITQLyBgM/Onts7cd3EA8XE5AHnysOBmqUZCNQROF8U7kS5Vp5eXVp99uDBfefrPsDfxyeAeMdnWBvh1dcvPuCK4onqxr21N3MDBCISKNfWHj5w84eejNiFXjSNeMVpfvXsxfvcRPGMuBnCQ8AfgbXy/k/c/MFn/QUk0mYCiFc4J6y8MDU99VzpHKUFIWdCeydw/hMfndnnPSoBf0EA8Qonw+zPFw5PTpXHhU0QGgISAqulu/fgx2b+UxKcoA7xCifB1dru08ImCA0BCQFqvRKsrHi1WNejnz574aFiYsJ+VOOCQFYEqp0Oj378ppnHsup0Rp1lxStM1mtvzj9Slu5RYROEhoCEAOKVYGXFq8W6Hh3xhqBMGwoCiFdB9VpMVrxCvohXCJfQUgKIV4qXH9eUeBGvki6xlQQQr5KuQ7xKvIhXSZfYSgKIV0kX8UrpIl4pXoILCSBeIdwqNDVeIV/EK4RLaCkBxCvFi3iVeBGvki6xlQQQr5IuK14pXcQrxUtwIQHEK4RLqUELF/Fq+RJdRwDx6thaZGq8Qr6IVwiX0FICiFeKF/Eq8SJeJV1iKwkgXiVdVrxSuqmK94033mg17j179jj7x9UfAohXm2tKDUK+iFcIl9BSAohXipdSgxIv4lXSJbaSAOJV0qXUIKWLeKV4CS4kgHiFcNnVoIWLeLV8ia4jgHh1bC0yNV4hX8QrhEtoKQHEK8WLeJV4fYp3fn7eLS8ve+nu5cuXW8UZtqvhUhXn3YWFVrG4WUdg9+7d3nafIF5dnljxatl6fQPF3NycaytMX8MbJd5zVb+40iBg4t2/f7+XziBeLxiHBqHUIOTrc8WLeIWJ6khoxJtPIhGvMFeIVwiX0FsIIN58JgXiFeYK8QrhEhrxZjwHEK8weYhXCJfQiDfjOYB4hclDvEK4hEa8Gc8BxCtMHuIVwiU04s14DiBeYfIQrxAuoRFvxnMA8QqTh3iFcAmNeDOeA4hXmDzEK4RLaMSb8RxAvMLkIV4hXEIj3oznAOIVJs+neFM8q8HOjrB+caVBYNeuXW5mZsZLZ3hk2AvGoUEQr5CvT/H67Cav/vFJs5uxEK82r4hXyBfxCuESWkoA8UrxciykEi/iVdIltpIA4lXS5SB0KV3EK8VLcCEBxCuEW4Wm1CDki3iFcAktJYB4pXgRrxIv4lXSJbaSAOJV0mXFK6WbqnilgyZ4JwggXm0aKTUI+SJeIVxCSwkgXileSg1KvIhXSZfYSgKIV0mXUoOULuKV4iW4kADiFcJlV4MWLuLV8iW6jgDi1bG1yNR4hXwRrxAuoaUEEK8UL+JV4kW8SrrEVhJAvEq6rHildBGvFC/BhQQQrxAupQYtXMSr5Ut0HQHEq2NLjVfL1iFeMWDCywggXhnaK4H5cU3IF/EK4RJaSgDxSvEiXiVexKukS2wlAcSrpMuKV0q36+JdXV11i4uLrRhOT0+7ycnJVp/h5vAEEK+WOaUGId+ui/fS5cvu3NxcK4L79u931+3e3eoz3ByeAOLVMke8Qr6IdytcxCuccB5DI16PMLcJhXiFfBEv4hVOL2loxCvFy49rSryIN4x4J1YvuInl025q5VVlOnsVe/fyyX/a8/Zj31QPem3Vndp9rzuhbie1+Kx4hRlBvHrx7n7v2+7G17/gTL5ceRKoVtcnihV3f3GvO5XnCNr3GvG2Z9b4Ez7Fu7y87NbKsnHbIW5cqfo0Pz/fqqlhNV7bIbFS/WtzXb/4HffRt7/kJtaQbhtuid57fvKI25do37x3C/F6R3otoE/xzlW7By5Xuwhyv4aJd2Fhwdm/Ntdt7/2x27vy720+wr1pE3i4ku+TaXfRT+8Qrx+O20ZBvM1LDTsR76GFo+66tTPCDBLaK4GJG5xbe29oyEpGz04ccfd7bTPRYIhXmBjEqxXvJy/+ijB7hPZCoJJt8aHfdcUHPuNc9b/LS//r3NJLrrzwL1vCI14vxAmCeBFvr78FJt0bv+yK6bu2YDDxbpYv4u31bPE3eMSLeP3NpvwiFTO/7Yp9Xxra8bWzf+rcytu/+DvizS/HSfYY8SLeJCdmoE4VH/6zbVe7g+bLc1935fy/Id5A+ehNM4gX8fZmsm8z0Ctlhg8cGYqgfOcpV777POLt8yRRjB3xIl7FvMolpknX5DvsotSQSyYz6yfiRbyZTVm/3a1+XJu46S+d23VgS1wrMVipYeNFjdcv/t5GQ7yIt7eTfzDwzTsbqn28V6TLdrLeTw0ZAMSLeGWTK8fAtvKtDjMadrHizTGpCfYZ8SLeBKdlsl1CvMmmJq+O+RRviofkLFdnR7Q9X8HnITm/dOrGvCYEvR1JAPEyQbwQ8CleLx3yHCT2q39u+cmM5xERLiYBxBuTfofaRrzNSw07SfuHzz2+k4/xmQYEJtcuvDq18lbQk+XL8oYfTh7+2p806F72t3BIjjCFiFcr3o8v/aswe4SOQODZ4tbf53SyCOA71STiRbydmtD6wSBePePut4B4EW/3Z7nXESJerzh7Gqzr4rXX9SwuLrbK7vT0tJucnGz1mWE3U2rwgjGlIIg3pWzk2peuizd2XhBv7Ax4bx/xekfaw4CIV5t0xKvlGyE64o0AvXNNIl5tShGvlm+E6Ig3AvTONYl4tSntrXjnzzq3eM4v3P23OTd1vd+Y7aMh3vbM+MRmAohXOyc6I96BSOdecW7uZ87d8XvOzdw8HN5Pq1fa/8zja+0PfNq5239Hm6xm0RFvM07cNYoA4tXOj6zFuzjn3OnvrIvWxLvxuuehcOJNR7pGAPFqvzL9iI54tXnOUrwm2reqV5yfOVa96HFpe0ChxJuWdBGv9uvSn+iIV5vrrMRrq9of/fPW1e12iEKINz3pIl7t16U/0RGvNtdZiNdWtVaTHbXC3YxJLd40pYt4tV+X/kRHvNpcJy/eNqvcUDXedKWLeLVfl/5ER7zaXCct3jM/cO7kt4bXcUehUa14bbvYp6q3/o7aMaFNWV10flyrI8Tf6wkg3npG49yRrHhPf3u9vDDsx7O6QavEa+2mLV/EWzc3+Hs9gR+dfO25xaWlo/V3csdOCNy9t9oZkNo1jnRNivYgwx2fH/0ww7j7eKf3OXfPwyk8MLE5e4g3tfmcY38QrzZryYnXpHuy5eHsJttb7q7+fdK56f3NZDiueC0tacoX8Wq/Mv2Ijni1eU5KvLY/9/jXmpcXTLj2Q9dAuG1Q+RBvmvJFvG3mAfduTwDxamdGMuK1Wu4LTzXbo2tIrJxw6HPrK9ydXL7EO+jL3X+0k14oPoN4FVT7FhPxajOejHhtpfvWj5sN1la5v/xbzUoKwyLWiddW0Rdfb/5/BHf+oXMf+bVm/dfehXi1fPsRHfFq85yEeJvWda20cPtnq9LCXeNDGSXejft0j/3d+lkQdZf17Tf/uu6uEH9HvCEod70NxKvNcHTxWonhu080O6LxUHXimA/pGtJh4t3u4Yim8rVV8qFqN0XcC/HG5d+N1hGvNo/RxVv3n/yD4duRiyZFX9d27Y56Iq1pKaRu/7Cv/g+Pg3j1jLvfAuLV5jiqeJuudhUryc3irXsM2Pr6X1+t33FhT7SZfONdiDce++60jHi1uYwq3ia1XdVe2Y3irZPuIAX245+tfOuuI3++890WdbHr/4546xlxRx0BxFtHaLy/RxXv84/X13Z91nU3ohqIt6l0B59tUnLwXRZpl2LE244Xd29HAPFq50U08dqpY999cvTglP/ZPjgHou3reqzk8B9/Nbrftko/8hVt4qjxuiIW4T60i3i1WY4m3iZlBtVq15Daa4N2+vDFi9+szgb+n9GJiVduYMWr/cr0I/qLL732+HuXlqqiGZeCQDTx1v0nu6q26wNik1pvvHID4vWR477H+L9X5j594eI7z/edg2r8UcTbZIdA29qrCtCwuHX16XjlBsQbei50sb3Z2XN7Ly4tnLl0aemGLo4v9piiiNeeBLOHEkZd6TyCu30v7QQ1K5cMu+I9yYZ4Y3+putL+qVNzX3xn/vw/rK6udmVIyYwjinjtzRIvVi+tHHXFq5E2y02TcoM9QmwCDnsh3rC8u93a7M/nvjK/8O5Xl5aGvM6728OXjS6KeOt+WFPuZvBFssmujDhPsSFeXzkmzjoBKzssrS39bbXyvf3y8sqtXedSlmtT6jH++p7v71G3sSV+3a4AO/IxnWMWt8fTZFuZjcHGEvZCvGF501rXCLxw4uVSPaYoK966HQ2KR4QVIG0/76h3wsXZ2YB4FbkmZn8IdFa8dad9pb6jYTAF7QEQKzkMu26rzgy2c4PDXog3LG9a6xqB3oo3lxVv3ZYyxCv9SvLkmhRvf4N3Vrx1W7HsTQ62nSz1q67UoHzybjgbVrypzxv6ly6B7x1/6dbJYmpW3cMoNd468eawq8EeOX7+b0anJ85eZMSr/tIQv7sEvnf85aOThXtOPcIo4q07/DzewwfNcTfZThZnLzLibZ5F7oTA+wl8//jLD00UrnonjvaKIt4mDx/EkVZz2OmOAfE2zyJ3QuD9BI6d+OkzpSvvU3OJIt4mjwzH2YrVHHfdlrh4q3bE2zyL3AmBawSOH5/du1ysWH13r5pLFPE2OSQn5R/Y0u4/4lV/aYjfTQLHfvjyI2XpHg0xuijitYHVPb1mK8bP/EWMsw7qsTcpM8T5Yc36jnjrM8gdEHg/gZCrXWs5mnibHJQTZztW/ZSsewDEIsSrUSPe+gxyBwQ21XYDrnajirfJWQfx6qTDp2WT1W7csyYQL1KBQBsCoXYybOxTtBWvdaLJyjG1x4eb9DnOE2uDtCLeNl867u03gReO/+SwKwrbtyv/QS0Z8TZZPdqq91Nfds4eqoh91R1naf2z/tpxkDt9n9v4Y0S84zMkQh8IXH1Y4pnQ0o1aahgktu6gGbsv3mt0rk0/e2DihadGn0Zmd8dd7VoPEG8fpMEYxyNwtbzwSAzpJiHeJnt6raMx66b2eLCVGBbPjU52GjsxEO94X0k+3WUCV1e59mTa4ZjjjFrjHQy87mGEwX0x6r32I6D1z/4Pou6Kv9plxVuXI/7ePwK2VeySW3mgehTYjt6KKtwB/STE2+TAmUGHQ658rbxg0q1b6Q7KIfc8nMK+Y1a8/VMLIx4QsBVtdV7o4ckJd6B6GMIkaz+a3RqrpDAsM0mI1zpXd2LZxgHYD213/oH2Byxb4Zp0R71hYtAnKzHc8Xnn7Gm7+BfijZ8DehCagK1qV4rVp0Ocs+BjbMmI1wbTZKvWxkErHrAw0drpaWeONZOu9SetcyUQr48vBjHyIhBjL+44hJISr0nPdg6Mep3O5sHa6vfAbzh3y13jYFiXbFvhWosx6s6jR4p4x5sJfDpHAqFOFfPFJinx2qDa1Hs3QrAtZx85VP371eZv9jXZXjzj3NkfOPfmj5uvcAftmvRtj7GVGtK5EG86uaAnoQhUB9w8UdV0qx30eVzJidewNd1iNgqx1Vt3VUK8fv/6PuBd0+tSX65ka8K1VbVJt0kNd7t20pSu9RTx5vHVo5c+CVw95KZmw6fPFseLlaR4bUhtdhSMh6D9p21nhZ0+ltZKdzAOxNs+o3yiCwSu/MA2sWJHOyaxZWwU00q8R5Nl3mYPbahBWE3XXtmepnRZ8YaaB7QDgXEIlKe+UY7z+SCfbbPVTNUhE+3tnx3/RzxV/67FZcWrZ0wLEBiPQBbitSHagTonv9XsYYbxkGz9tJUWbMtYCgf11I8N8dYz4g4IxCWQjXgHmOyEsNP/HUbAeQmXGm/crxKtQ6A5gezEu1HAtu92p7sSRiEy4dre4DSeRGuezPU7WfG2Jcb9EAhNIFvxDkDZ1rO5V9ZLEW0evNgI2uq3H7zl2h7gPEoKw6YK4g39JaI9CLQlkL14Nw7YVr9vvrhehliq9uwunl/fuzs45MYEaweUX9nXW/3vqRuquu3HnLupevAi3V0KbVOKeNsS434IhCbQKfGGhpdme4g3zbzQKwhcI4B4OzcbEG/nUsqAOkcA8XYupYi3cyllQJ0jgHg7l1LE27mUMqDOEajEa+dKBH2zcecgpjSgovj74sAXHkypS6q+VC8a4IJAngQq8dor5Y/m2Xt6vYVAUTxaifexPpBBvH3IckfHWM5+/agrJk2+XPkTOOXKS3cWBx+s9tF1/0K83c9xp0dYzv7jA64onu70ILs/uBOuLB8sDn7xRPeHuj5CxNuXTHd8nOXsN+5zrqTem1+eK9lePtWXle4gPYg3v4lKjyEAgcwJIN7ME0j3IQCB/Agg3vxyRo8hAIHMCSDezBNI9yEAgfwIIN78ckaPIQCBzAkg3swTSPchAIH8CCDe/HJGjyEAgcwJIN7ME0j3IQCB/Agg3vxyRo8hAIHMCSDezBNI9yEAgfwIIN78ckaPIQCBzAkg3swTSPchAIH8CCDe/HJGjyEAgcwJIN7ME0j3IQCB/Agg3vxyRo8hAIHMCSDezBNI9yEAgfwI/D9uZuVB74JxeAAAAABJRU5ErkJggg==", X6 = ["src"], b6 = { class: "content" }, c6 = /* @__PURE__ */ qA({
|
|
7201
7201
|
__name: "index",
|
|
@@ -7259,7 +7259,7 @@ const z6 = (e) => {
|
|
|
7259
7259
|
},
|
|
7260
7260
|
emits: ["reset-confirm"],
|
|
7261
7261
|
setup(e, { expose: A, emit: f }) {
|
|
7262
|
-
const v = f, r =
|
|
7262
|
+
const v = f, r = YA(), P = o({}), t = o([]), z = o({
|
|
7263
7263
|
routeUrl: "",
|
|
7264
7264
|
homeAlias: ""
|
|
7265
7265
|
}), d = async () => {
|
|
@@ -7278,16 +7278,16 @@ const z6 = (e) => {
|
|
|
7278
7278
|
P.value.routeUrl = "", z.value.routeUrl = "";
|
|
7279
7279
|
}, {
|
|
7280
7280
|
builtInDialog: X,
|
|
7281
|
-
$typeTree:
|
|
7282
|
-
treeId:
|
|
7283
|
-
treePath:
|
|
7284
|
-
keyword:
|
|
7281
|
+
$typeTree: s,
|
|
7282
|
+
treeId: c,
|
|
7283
|
+
treePath: i,
|
|
7284
|
+
keyword: b,
|
|
7285
7285
|
treeData: H,
|
|
7286
|
-
openBuiltInDialog:
|
|
7286
|
+
openBuiltInDialog: a,
|
|
7287
7287
|
loadChildNode: q,
|
|
7288
7288
|
search: p,
|
|
7289
7289
|
toggleTree: m,
|
|
7290
|
-
confirmFormBuiltIn:
|
|
7290
|
+
confirmFormBuiltIn: N
|
|
7291
7291
|
} = t6({
|
|
7292
7292
|
orgInfo: r,
|
|
7293
7293
|
information: P,
|
|
@@ -7297,7 +7297,7 @@ const z6 = (e) => {
|
|
|
7297
7297
|
urlDialog: l,
|
|
7298
7298
|
urlType: j,
|
|
7299
7299
|
urlTypeOptions: O,
|
|
7300
|
-
tableData:
|
|
7300
|
+
tableData: R,
|
|
7301
7301
|
pageSize: Z,
|
|
7302
7302
|
pageIndex: T,
|
|
7303
7303
|
totalCount: Q,
|
|
@@ -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 ? a() : G());
|
|
7316
7316
|
}, E = o(null), w = () => {
|
|
7317
7317
|
var K;
|
|
7318
7318
|
(K = E.value) == null || K.open();
|
|
@@ -7467,7 +7467,7 @@ const z6 = (e) => {
|
|
|
7467
7467
|
btnType: "primary",
|
|
7468
7468
|
size: "middle",
|
|
7469
7469
|
style: { "margin-left": "12px" },
|
|
7470
|
-
onClick: D(
|
|
7470
|
+
onClick: D(N)
|
|
7471
7471
|
}, {
|
|
7472
7472
|
default: U(() => [
|
|
7473
7473
|
aA(
|
|
@@ -7485,13 +7485,13 @@ const z6 = (e) => {
|
|
|
7485
7485
|
B(D(dr), {
|
|
7486
7486
|
"node-key": "id",
|
|
7487
7487
|
ref_key: "$typeTree",
|
|
7488
|
-
ref:
|
|
7489
|
-
modelValue: D(
|
|
7490
|
-
"onUpdate:modelValue": $[5] || ($[5] = (eA) => FA(
|
|
7491
|
-
path: D(
|
|
7492
|
-
"onUpdate:path": $[6] || ($[6] = (eA) => FA(
|
|
7493
|
-
"filter-value": D(
|
|
7494
|
-
"onUpdate:filterValue": $[7] || ($[7] = (eA) => FA(
|
|
7488
|
+
ref: s,
|
|
7489
|
+
modelValue: D(c),
|
|
7490
|
+
"onUpdate:modelValue": $[5] || ($[5] = (eA) => FA(c) ? c.value = eA : null),
|
|
7491
|
+
path: D(i),
|
|
7492
|
+
"onUpdate:path": $[6] || ($[6] = (eA) => FA(i) ? i.value = eA : null),
|
|
7493
|
+
"filter-value": D(b),
|
|
7494
|
+
"onUpdate:filterValue": $[7] || ($[7] = (eA) => FA(b) ? b.value = eA : null),
|
|
7495
7495
|
data: D(H),
|
|
7496
7496
|
"is-ellipsis": "",
|
|
7497
7497
|
"default-expanded-keys": ["-1"],
|
|
@@ -7584,7 +7584,7 @@ const z6 = (e) => {
|
|
|
7584
7584
|
]),
|
|
7585
7585
|
k("div", p6, [
|
|
7586
7586
|
B(D(tr), {
|
|
7587
|
-
data: D(
|
|
7587
|
+
data: D(R),
|
|
7588
7588
|
currentRodioSelection: D(_),
|
|
7589
7589
|
"onUpdate:currentRodioSelection": $[12] || ($[12] = (eA) => FA(_) ? _.value = eA : null),
|
|
7590
7590
|
"radio-selection": { selectable: () => !0 },
|
|
@@ -7664,15 +7664,15 @@ const z6 = (e) => {
|
|
|
7664
7664
|
hidden: !n.value
|
|
7665
7665
|
}
|
|
7666
7666
|
]), x = () => {
|
|
7667
|
-
var
|
|
7668
|
-
const { flag:
|
|
7669
|
-
|
|
7667
|
+
var c, i;
|
|
7668
|
+
const { flag: s } = Hf();
|
|
7669
|
+
s === 4 && (n.value = (c = f9.value) == null ? void 0 : c.companyIsDisplayHome), d.value = (i = f9.value) != null && i.homeAlias ? f9.value.homeAlias : M("首页"), f.value = !0;
|
|
7670
7670
|
}, X = async () => {
|
|
7671
|
-
var
|
|
7672
|
-
const
|
|
7673
|
-
if (!
|
|
7671
|
+
var i, b, H, a;
|
|
7672
|
+
const s = (i = r.value) == null ? void 0 : i.getResult(), [c] = await D6().run(s);
|
|
7673
|
+
if (!c) {
|
|
7674
7674
|
if (await Yv(), Number(a7()) >= 2) {
|
|
7675
|
-
const q = (
|
|
7675
|
+
const q = (b = t.value) == null ? void 0 : b.getResult(), [p] = await N6().run(q);
|
|
7676
7676
|
if (p) {
|
|
7677
7677
|
z.value = "lang";
|
|
7678
7678
|
return;
|
|
@@ -7680,7 +7680,7 @@ const z6 = (e) => {
|
|
|
7680
7680
|
}
|
|
7681
7681
|
if (n.value)
|
|
7682
7682
|
if ((H = P.value) != null && H.formValidate()) {
|
|
7683
|
-
const q = (
|
|
7683
|
+
const q = (a = P.value) == null ? void 0 : a.getResult(), [p] = await V6().run(q);
|
|
7684
7684
|
if (p) {
|
|
7685
7685
|
z.value = "home";
|
|
7686
7686
|
return;
|
|
@@ -7695,12 +7695,12 @@ const z6 = (e) => {
|
|
|
7695
7695
|
};
|
|
7696
7696
|
return A({
|
|
7697
7697
|
openDialog: x
|
|
7698
|
-
}), (
|
|
7698
|
+
}), (s, c) => (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":
|
|
7703
|
+
"onUpdate:modelValue": c[3] || (c[3] = (i) => f.value = i),
|
|
7704
7704
|
"body-style": { padding: 0 },
|
|
7705
7705
|
direction: "rtl"
|
|
7706
7706
|
}, {
|
|
@@ -7708,7 +7708,7 @@ const z6 = (e) => {
|
|
|
7708
7708
|
k("div", j6, [
|
|
7709
7709
|
B(D(kA), {
|
|
7710
7710
|
size: "middle",
|
|
7711
|
-
onClick:
|
|
7711
|
+
onClick: c[2] || (c[2] = (i) => f.value = !1),
|
|
7712
7712
|
style: { "margin-right": "12px" }
|
|
7713
7713
|
}, {
|
|
7714
7714
|
default: U(() => [
|
|
@@ -7743,7 +7743,7 @@ const z6 = (e) => {
|
|
|
7743
7743
|
B(D(rr), {
|
|
7744
7744
|
options: u.value,
|
|
7745
7745
|
activeKey: z.value,
|
|
7746
|
-
"onUpdate:activeKey":
|
|
7746
|
+
"onUpdate:activeKey": c[0] || (c[0] = (i) => z.value = i),
|
|
7747
7747
|
"tab-width": "110px"
|
|
7748
7748
|
}, null, 8, ["options", "activeKey"]),
|
|
7749
7749
|
B(D(B5), {
|
|
@@ -7760,7 +7760,7 @@ const z6 = (e) => {
|
|
|
7760
7760
|
ref_key: "setHomeRef",
|
|
7761
7761
|
ref: P,
|
|
7762
7762
|
isShow: z.value === "home",
|
|
7763
|
-
onResetConfirm:
|
|
7763
|
+
onResetConfirm: c[1] || (c[1] = (i) => f.value = !1)
|
|
7764
7764
|
}, null, 8, ["isShow"])
|
|
7765
7765
|
]),
|
|
7766
7766
|
_: 1
|
|
@@ -7780,7 +7780,7 @@ const z6 = (e) => {
|
|
|
7780
7780
|
{
|
|
7781
7781
|
token: t9(),
|
|
7782
7782
|
userInfo: _9(),
|
|
7783
|
-
projectInfo:
|
|
7783
|
+
projectInfo: YA()
|
|
7784
7784
|
},
|
|
7785
7785
|
A.src
|
|
7786
7786
|
));
|
|
@@ -7815,7 +7815,7 @@ const z6 = (e) => {
|
|
|
7815
7815
|
}), ye = /* @__PURE__ */ gA(W6, [["__scopeId", "data-v-ed99a1f3"]]), w6 = we.get("/login/history"), E6 = () => {
|
|
7816
7816
|
const e = () => ["/licenseActivate", "/licenseDataManage", "/sso-logout"].some((d) => new RegExp(`^${d}$`, "i").test(location.pathname)), A = (t) => {
|
|
7817
7817
|
const { browserLogoImgHost: z = "", browserLogoImg: d = "" } = t || {}, n = d ? z + pf(d) : "./logo.svg";
|
|
7818
|
-
Ur(n),
|
|
7818
|
+
Ur(n), In(n);
|
|
7819
7819
|
}, f = async () => {
|
|
7820
7820
|
const [t, z] = await w6().run({ userId: Hf().id });
|
|
7821
7821
|
t || !z || JSON.stringify(z) === "{}" || (df.open({
|
|
@@ -7826,14 +7826,14 @@ const z6 = (e) => {
|
|
|
7826
7826
|
jA(
|
|
7827
7827
|
"div",
|
|
7828
7828
|
{ style: "font-size: 12px;color:#212121;margin-bottom:8px" },
|
|
7829
|
-
M("时间:") +
|
|
7829
|
+
M("时间:") + En(z.lastModificationTime)
|
|
7830
7830
|
),
|
|
7831
7831
|
jA("div", { style: "font-size: 12px;color:#212121;" }, M("IP地址:") + z.ip)
|
|
7832
7832
|
])
|
|
7833
7833
|
}), sessionStorage.setItem("loginInfoTip", "true"));
|
|
7834
7834
|
}, v = async () => {
|
|
7835
7835
|
const [{ loginConfig: t }, { platformConfig: z }] = await Promise.all([r5(), Qv()]);
|
|
7836
|
-
A(z), z != null && z.browserTitle && localStorage.setItem("browser-title", z.browserTitle || "AIoT智能物联网管控平台"), wn(),
|
|
7836
|
+
return A(z), z != null && z.browserTitle && localStorage.setItem("browser-title", z.browserTitle || "AIoT智能物联网管控平台"), wn(), { loginConfig: t, platformConfig: z };
|
|
7837
7837
|
}, r = o(!1), P = () => new Promise((t) => {
|
|
7838
7838
|
const z = () => {
|
|
7839
7839
|
if (r.value) return t();
|
|
@@ -7842,10 +7842,8 @@ const z6 = (e) => {
|
|
|
7842
7842
|
z();
|
|
7843
7843
|
});
|
|
7844
7844
|
return _A(async () => {
|
|
7845
|
-
|
|
7846
|
-
await vt(), await nt(), await rt(), await P5();
|
|
7847
|
-
const t = t9();
|
|
7848
|
-
U3({ accessToken: t }), r.value = !0;
|
|
7845
|
+
const { loginConfig: t } = await v();
|
|
7846
|
+
e() || (t != null && t.loginInfoTip && !sessionStorage.getItem("loginInfoTip") && f(), await vt(), await nt(), await rt(), await P5(), U3({ accessToken: t9() }), r.value = !0);
|
|
7849
7847
|
}), {
|
|
7850
7848
|
platformInited: r,
|
|
7851
7849
|
initNextTick: P
|
|
@@ -7854,8 +7852,8 @@ const z6 = (e) => {
|
|
|
7854
7852
|
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
7853
|
OA(
|
|
7856
7854
|
() => f.path,
|
|
7857
|
-
(
|
|
7858
|
-
x.value =
|
|
7855
|
+
(a) => {
|
|
7856
|
+
x.value = a === hA;
|
|
7859
7857
|
},
|
|
7860
7858
|
{
|
|
7861
7859
|
immediate: !0
|
|
@@ -7875,8 +7873,8 @@ const z6 = (e) => {
|
|
|
7875
7873
|
immediate: !0
|
|
7876
7874
|
}
|
|
7877
7875
|
);
|
|
7878
|
-
const
|
|
7879
|
-
let
|
|
7876
|
+
const s = async () => {
|
|
7877
|
+
let a = {};
|
|
7880
7878
|
return await Mn([
|
|
7881
7879
|
Sd,
|
|
7882
7880
|
Pt,
|
|
@@ -7884,30 +7882,30 @@ const z6 = (e) => {
|
|
|
7884
7882
|
Bv,
|
|
7885
7883
|
Yv,
|
|
7886
7884
|
Qd
|
|
7887
|
-
]).then((p) => Object.assign(
|
|
7888
|
-
},
|
|
7889
|
-
const
|
|
7885
|
+
]).then((p) => Object.assign(a, ...p)), z.value = !1, a;
|
|
7886
|
+
}, c = async () => {
|
|
7887
|
+
const a = f9.value;
|
|
7890
7888
|
let q = [...Av].map((V) => ({
|
|
7891
7889
|
...V,
|
|
7892
7890
|
label: M(V.label)
|
|
7893
7891
|
}));
|
|
7894
|
-
q.forEach((V) => (
|
|
7892
|
+
q.forEach((V) => (a != null && a.appAlias && V.value === RA && (V.label = a.appAlias), a != null && a.homeAlias && V.value === hA && (V.label = a.homeAlias), V));
|
|
7895
7893
|
const p = () => {
|
|
7896
7894
|
const { flag: V } = Hf();
|
|
7897
|
-
return V === 4 ?
|
|
7895
|
+
return V === 4 ? a == null ? void 0 : a.companyIsDisplayHome : a == null ? void 0 : a.enable;
|
|
7898
7896
|
};
|
|
7899
|
-
p() ? ((
|
|
7900
|
-
const m = p() && (
|
|
7897
|
+
p() ? ((a == null ? void 0 : a.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));
|
|
7898
|
+
const m = p() && (a == null ? void 0 : a.displayPosition) !== 2 ? hA : RA;
|
|
7901
7899
|
sessionStorage.getItem("defalt-page") || f.path !== m && await A.replace(m), sessionStorage.setItem("defalt-page", m);
|
|
7902
|
-
const
|
|
7903
|
-
F.nav.setItems([...d.value, ...
|
|
7904
|
-
},
|
|
7900
|
+
const N = F.nav.getItems().filter((V) => !V.fixed) ?? [];
|
|
7901
|
+
F.nav.setItems([...d.value, ...N]);
|
|
7902
|
+
}, i = o(!1), b = async () => {
|
|
7905
7903
|
var Z;
|
|
7906
7904
|
await e();
|
|
7907
|
-
const
|
|
7905
|
+
const a = YA().id, q = await s();
|
|
7908
7906
|
if (!q) return;
|
|
7909
|
-
const { navConfig: p, projectConfig: m, currentProject:
|
|
7910
|
-
|
|
7907
|
+
const { navConfig: p, projectConfig: m, currentProject: N, tenantList: V } = q, l = (N == null ? void 0 : N.id) || 0;
|
|
7908
|
+
a != 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")), c(), m && m.length && (F.nav.setProjectConfig({
|
|
7911
7909
|
treeProps: {
|
|
7912
7910
|
disabled: (T) => T.type !== 7
|
|
7913
7911
|
},
|
|
@@ -7915,32 +7913,32 @@ const z6 = (e) => {
|
|
|
7915
7913
|
filterNodeMethod: (T) => T.type === 7,
|
|
7916
7914
|
// 树打平之后保留的数据
|
|
7917
7915
|
filterFlatCondition: (T) => T.type === 7
|
|
7918
|
-
}), F.nav.setProjects(m || []),
|
|
7916
|
+
}), F.nav.setProjects(m || []), N && F.nav.setActiveProject(N));
|
|
7919
7917
|
const j = _9() ?? {}, O = j != null && j.headPicture ? pf(j.headPicture) : void 0;
|
|
7920
7918
|
n.value = [...cr].map((T) => ({
|
|
7921
7919
|
...T,
|
|
7922
7920
|
label: M(T.label)
|
|
7923
|
-
})),
|
|
7921
|
+
})), N && N.id !== 0 ? await v("personCenter", "", "/userInfo") || (n.value = n.value.filter((Q) => Q.value !== "1")) : n.value = n.value.filter((T) => T.value !== "1"), F.nav.setUserInfo({ headPicture: O, commandList: n.value }), F.nav.setSearchConfig({
|
|
7924
7922
|
getHistoryList: r,
|
|
7925
7923
|
getSearchList: P
|
|
7926
7924
|
});
|
|
7927
|
-
const
|
|
7928
|
-
|
|
7925
|
+
const R = uA().subAppList ?? [];
|
|
7926
|
+
R.length && (R.forEach((T) => {
|
|
7929
7927
|
T.menus = [], T.originalMenus = [];
|
|
7930
|
-
}), MA([{ key: "subAppList", value:
|
|
7928
|
+
}), MA([{ key: "subAppList", value: R }])), i.value = !0;
|
|
7931
7929
|
};
|
|
7932
|
-
return F.nav.addEventListener("onBeforeMount",
|
|
7930
|
+
return F.nav.addEventListener("onBeforeMount", b), OA(
|
|
7933
7931
|
() => f9.value,
|
|
7934
7932
|
() => {
|
|
7935
|
-
|
|
7933
|
+
c();
|
|
7936
7934
|
},
|
|
7937
7935
|
{ deep: !0 }
|
|
7938
|
-
), { loading: z, pageKey: t, innerPage: d, commandList: n, layoutInited:
|
|
7936
|
+
), { loading: z, pageKey: t, innerPage: d, commandList: n, layoutInited: i, initNextTick: () => new Promise((a) => {
|
|
7939
7937
|
const q = async () => {
|
|
7940
|
-
var
|
|
7941
|
-
let p = ((
|
|
7942
|
-
if (m === "false" && (m = !1), !p || !m ||
|
|
7943
|
-
|
|
7938
|
+
var N;
|
|
7939
|
+
let p = ((N = f.meta) == null ? void 0 : N.showLayout) ?? !0, { showLayout: m = !0 } = f.query;
|
|
7940
|
+
if (m === "false" && (m = !1), !p || !m || i.value) {
|
|
7941
|
+
a();
|
|
7944
7942
|
return;
|
|
7945
7943
|
}
|
|
7946
7944
|
setTimeout(() => q(), 50);
|
|
@@ -7961,7 +7959,7 @@ const z6 = (e) => {
|
|
|
7961
7959
|
F.menu.addEventListener("onItemClick", async (A) => {
|
|
7962
7960
|
var P;
|
|
7963
7961
|
xA.innerSet = !0;
|
|
7964
|
-
const f =
|
|
7962
|
+
const f = UA(zf(A.applicationCode)).filter((t) => !t.disable && !t.expired).find((t) => t.code === A.code);
|
|
7965
7963
|
if (f && !f.routeUrl) return;
|
|
7966
7964
|
if (!f) {
|
|
7967
7965
|
const { title: t, content: z, desc: d } = await Ke(f);
|
|
@@ -7998,37 +7996,37 @@ const z6 = (e) => {
|
|
|
7998
7996
|
let r = "", P = {};
|
|
7999
7997
|
OA(
|
|
8000
7998
|
() => e.currentRoute.value,
|
|
8001
|
-
async (
|
|
8002
|
-
var p, m,
|
|
8003
|
-
const
|
|
8004
|
-
let
|
|
8005
|
-
if (
|
|
8006
|
-
r = o9(
|
|
7999
|
+
async (c) => {
|
|
8000
|
+
var p, m, N, V, l, j, O, R, Z, T;
|
|
8001
|
+
const i = ((p = c.meta) == null ? void 0 : p.showLayout) ?? !0;
|
|
8002
|
+
let b = ((m = c.query) == null ? void 0 : m.showLayout) ?? !0;
|
|
8003
|
+
if (b === "false" && (b = !1), !i || !b || c.path === r && Oe(c.query, P)) return;
|
|
8004
|
+
r = o9(c.path), P = o9(c.query);
|
|
8007
8005
|
const H = uA().currentSubAppCode ?? "";
|
|
8008
8006
|
if (!H) return;
|
|
8009
|
-
const
|
|
8010
|
-
if (!
|
|
8007
|
+
const a = ((N = c.query) == null ? void 0 : N.menu) ?? ((V = ZA()) == null ? void 0 : V.currentCode) ?? "";
|
|
8008
|
+
if (!a) return;
|
|
8011
8009
|
const q = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
|
|
8012
|
-
q && JSON.stringify(q) !== "{}" && (A.value = (j = (l = q[H]) == null ? void 0 : l[
|
|
8010
|
+
q && JSON.stringify(q) !== "{}" && (A.value = (j = (l = q[H]) == null ? void 0 : l[a]) != null && j.fontColor ? q[H][a].fontColor : "", f.value = (R = (O = q[H]) == null ? void 0 : O[a]) != null && R.backgroundColor ? q[H][a].backgroundColor : "", v.value = (T = (Z = q[H]) == null ? void 0 : Z[a]) != null && T.backgroundColor ? q[H][a].backgroundColor : "");
|
|
8013
8011
|
}
|
|
8014
8012
|
);
|
|
8015
|
-
const { deleteApp: t } = m9(), { entryMenu: z } = Zf(), { reloadRoute: d, unloadRoute: n } = Jv(), u = (
|
|
8016
|
-
var
|
|
8017
|
-
const
|
|
8018
|
-
z({ currentMenu:
|
|
8019
|
-
}, x = (
|
|
8020
|
-
if (!
|
|
8021
|
-
const
|
|
8022
|
-
|
|
8023
|
-
}, X = (
|
|
8024
|
-
const
|
|
8013
|
+
const { deleteApp: t } = m9(), { entryMenu: z } = Zf(), { reloadRoute: d, unloadRoute: n } = Jv(), u = (c) => {
|
|
8014
|
+
var a;
|
|
8015
|
+
const i = UA(zf(c.applicationCode)).find((q) => q.code === c.code), H = (((a = ZA().tabMap) == null ? void 0 : a[c.applicationCode]) ?? []).find((q) => q.code === c.code);
|
|
8016
|
+
z({ currentMenu: i, route: { path: H.path, query: H.query ?? {} } });
|
|
8017
|
+
}, x = (c) => {
|
|
8018
|
+
if (!c || !c.length) return;
|
|
8019
|
+
const i = c.filter((b) => !b.path.startsWith(b9)).map((b) => b.path);
|
|
8020
|
+
i && i.length && n(i), c.forEach((b) => F.iframeView.triggerEventListener("onUnloadPage", b.path));
|
|
8021
|
+
}, X = (c) => {
|
|
8022
|
+
const i = uA().currentSubAppCode ?? "";
|
|
8025
8023
|
xA.innerSet = !0;
|
|
8026
|
-
const
|
|
8027
|
-
if (
|
|
8024
|
+
const b = ZA(), H = b.tabMap[i], a = H.findIndex((l) => l.code === c.data.code);
|
|
8025
|
+
if (a === -1) return;
|
|
8028
8026
|
const q = () => {
|
|
8029
8027
|
var O;
|
|
8030
|
-
let j = (((O = uA().appcategorys) == null ? void 0 : O.map((
|
|
8031
|
-
j = { ...j, value: j.code, label: j.name }, t(j), F.nav.removeItem(
|
|
8028
|
+
let j = (((O = uA().appcategorys) == null ? void 0 : O.map((R) => R.apps).flat()) ?? []).find((R) => R.code === i);
|
|
8029
|
+
j = { ...j, value: j.code, label: j.name }, t(j), F.nav.removeItem(i);
|
|
8032
8030
|
};
|
|
8033
8031
|
({
|
|
8034
8032
|
me: async (l) => {
|
|
@@ -8036,65 +8034,65 @@ const z6 = (e) => {
|
|
|
8036
8034
|
q();
|
|
8037
8035
|
return;
|
|
8038
8036
|
}
|
|
8039
|
-
const j =
|
|
8037
|
+
const j = b.currentCode;
|
|
8040
8038
|
let O = null;
|
|
8041
|
-
j === l.value && (
|
|
8039
|
+
j === l.value && (a + 1 === H.length ? H[a - 1] && (O = H[a - 1]) : H[a + 1] && (O = H[a + 1])), H.splice(a, 1), x([l]), IA([{ key: `tabMap:${i}`, value: H }]), O ? u(O) : IA([{ key: `preTab:${i}`, value: {} }]);
|
|
8042
8040
|
},
|
|
8043
8041
|
all: q,
|
|
8044
8042
|
other: async (l) => {
|
|
8045
|
-
const j = H[
|
|
8043
|
+
const j = H[a];
|
|
8046
8044
|
await e.push({
|
|
8047
8045
|
path: `/${j.applicationPath}${j.path}`.replace(/\/\//g, "/"),
|
|
8048
8046
|
query: j.query
|
|
8049
8047
|
}), F.menu.setActiveItem(j.menuId), F.tab.setActiveItem(j.code);
|
|
8050
|
-
const O = H.filter((
|
|
8051
|
-
O.forEach((
|
|
8048
|
+
const O = H.filter((R) => R.code !== l.value);
|
|
8049
|
+
O.forEach((R) => F.tab.removeItem(R.code)), x(O), IA([{ key: `tabMap:${i}`, value: [j] }]), u(j);
|
|
8052
8050
|
},
|
|
8053
8051
|
right: async (l) => {
|
|
8054
|
-
const j =
|
|
8055
|
-
if (j !== l.value && H.findIndex((Z) => Z.code === j) >
|
|
8056
|
-
const Z = H[
|
|
8052
|
+
const j = b.currentCode;
|
|
8053
|
+
if (j !== l.value && H.findIndex((Z) => Z.code === j) > a) {
|
|
8054
|
+
const Z = H[a];
|
|
8057
8055
|
u(Z);
|
|
8058
8056
|
}
|
|
8059
|
-
const O = H.slice(
|
|
8060
|
-
O.forEach((
|
|
8057
|
+
const O = H.slice(a + 1);
|
|
8058
|
+
O.forEach((R) => F.tab.removeItem(R.code)), x(O), H.splice(a + 1), IA([{ key: `tabMap:${i}`, value: H }]);
|
|
8061
8059
|
}
|
|
8062
|
-
})[
|
|
8060
|
+
})[c.type](c.data);
|
|
8063
8061
|
};
|
|
8064
|
-
F.tab.addEventListener("onItemClick", async (
|
|
8065
|
-
ZA().currentCode !==
|
|
8066
|
-
}), F.tab.addEventListener("onItemRemove", (
|
|
8067
|
-
const
|
|
8068
|
-
|
|
8069
|
-
}), F.tab.addEventListener("onMenuClick", (
|
|
8070
|
-
let
|
|
8071
|
-
const
|
|
8072
|
-
if (
|
|
8073
|
-
const H =
|
|
8074
|
-
|
|
8062
|
+
F.tab.addEventListener("onItemClick", async (c) => {
|
|
8063
|
+
ZA().currentCode !== c.currentCode && (xA.innerSet = !0, u(c));
|
|
8064
|
+
}), F.tab.addEventListener("onItemRemove", (c) => {
|
|
8065
|
+
const i = ZA(), b = uA().currentSubAppCode ?? "";
|
|
8066
|
+
i.tabMap[b].findIndex((q) => q.code === c.code) !== -1 && (tf(c.applicationCode, [c.code]), X({ type: "me", data: c }));
|
|
8067
|
+
}), F.tab.addEventListener("onMenuClick", (c) => {
|
|
8068
|
+
let i = [];
|
|
8069
|
+
const b = ZA().tabMap[c.applicationCode] ?? [];
|
|
8070
|
+
if (c.type.key === "right") {
|
|
8071
|
+
const H = b.findIndex((a) => a.code === c.data.value);
|
|
8072
|
+
i = b.slice(H + 1);
|
|
8075
8073
|
}
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
), X({ type:
|
|
8080
|
-
}), F.tab.addEventListener("onPageRefresh", async (
|
|
8081
|
-
if (!
|
|
8082
|
-
if (
|
|
8074
|
+
c.type.key === "other" && (i = b.filter((H) => H.code !== c.data.value)), c.type.key === "all" && (i = [...b]), tf(
|
|
8075
|
+
c.applicationCode,
|
|
8076
|
+
i.map((H) => H.code)
|
|
8077
|
+
), X({ type: c.type.key, data: c.data });
|
|
8078
|
+
}), F.tab.addEventListener("onPageRefresh", async (c) => {
|
|
8079
|
+
if (!c) return;
|
|
8080
|
+
if (c.path.startsWith(b9)) {
|
|
8083
8081
|
F.iframeView.triggerEventListener("onRefreshCurrentPage");
|
|
8084
8082
|
return;
|
|
8085
8083
|
}
|
|
8086
|
-
tf(
|
|
8087
|
-
const
|
|
8088
|
-
if (!
|
|
8089
|
-
if (
|
|
8090
|
-
d([
|
|
8084
|
+
tf(c.applicationCode, [c.code]);
|
|
8085
|
+
const i = UA(zf(c.applicationCode)).find((a) => a.code === c.code);
|
|
8086
|
+
if (!i) return;
|
|
8087
|
+
if (i.routeUrl !== c.path) {
|
|
8088
|
+
d([c.path]), n([`/${c.applicationPath}${i.routeUrl}`]), await z({ currentMenu: i });
|
|
8091
8089
|
return;
|
|
8092
8090
|
}
|
|
8093
|
-
const
|
|
8094
|
-
Oe(
|
|
8091
|
+
const b = { app: i.applicationCode, menu: i.code }, H = { ...c.query };
|
|
8092
|
+
Oe(b, H) || await z({ currentMenu: i }), d([c.path]);
|
|
8095
8093
|
});
|
|
8096
|
-
const { enter:
|
|
8097
|
-
return F.tab.addEventListener("onToggleFullScreen",
|
|
8094
|
+
const { enter: s } = $9();
|
|
8095
|
+
return F.tab.addEventListener("onToggleFullScreen", s), { fontColor: A, backgroudColor: f, borderColor: v };
|
|
8098
8096
|
}, He = u9(), T3 = (He == null ? void 0 : He.isAutoCloseApp) ?? !0, o3 = location.href.includes("showLayout=false"), L3 = window.self !== window.top, Y6 = () => {
|
|
8099
8097
|
const e = () => {
|
|
8100
8098
|
F.nav.setItems([]), F.menu.setItems([]), F.tab.setItems([]), uv();
|
|
@@ -8124,51 +8122,51 @@ const z6 = (e) => {
|
|
|
8124
8122
|
F.menu.setItems([]), F.menu.setActiveItem(""), F.tab.setItems([]), F.tab.setActiveItem("");
|
|
8125
8123
|
}, d = async (X) => {
|
|
8126
8124
|
if (X.routeUrl && !t.includes(X.routeUrl)) return !0;
|
|
8127
|
-
const
|
|
8128
|
-
let
|
|
8129
|
-
if (
|
|
8130
|
-
const { menus: p, originalMenus: m, err:
|
|
8131
|
-
if (
|
|
8132
|
-
|
|
8125
|
+
const s = X.code ?? "", i = (uA().subAppList ?? []).find((p) => p.code === s);
|
|
8126
|
+
let b = [], H = [], a = !1;
|
|
8127
|
+
if (i && (b = i.menus ?? []), !b.length) {
|
|
8128
|
+
const { menus: p, originalMenus: m, err: N } = await Je(s);
|
|
8129
|
+
if (N) return !1;
|
|
8130
|
+
b = p ?? [], H = m ?? [];
|
|
8133
8131
|
}
|
|
8134
|
-
if (
|
|
8132
|
+
if (b.length ? bf(b) || (await G9({
|
|
8135
8133
|
title: M("提示"),
|
|
8136
8134
|
content: M("此应用菜单已过期/已收回/配置有误") + "<br/>" + M("无法使用")
|
|
8137
|
-
}),
|
|
8138
|
-
const q = { ...X, menus:
|
|
8135
|
+
}), a = !0) : (await G9({ title: M("提示"), content: M("此应用未配置菜单/无菜单权限") + "<br/>" + M("无法使用") }), a = !0), a) return !1;
|
|
8136
|
+
const q = { ...X, menus: b, originalMenus: H };
|
|
8139
8137
|
return MA([{ key: "subAppList", value: q }]), !0;
|
|
8140
8138
|
}, n = async (X) => {
|
|
8141
8139
|
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:
|
|
8140
|
+
const { microApp: s = null, menuCode: c = "", menuPath: i = "", route: b = {} } = X;
|
|
8141
|
+
let H = b;
|
|
8142
|
+
if (!s && i) {
|
|
8143
|
+
if (z(), !(t && t.find((Y) => i.startsWith("/" + Y) || i.startsWith(Y)))) return;
|
|
8144
|
+
await e.push({ path: i, query: H.query });
|
|
8147
8145
|
return;
|
|
8148
8146
|
}
|
|
8149
|
-
const
|
|
8147
|
+
const a = ((Z = H.meta) == null ? void 0 : Z.showLayout) ?? !0;
|
|
8150
8148
|
let q = ((T = H.query) == null ? void 0 : T.showLayout) ?? !0;
|
|
8151
8149
|
q === "false" && (q = !1);
|
|
8152
|
-
const p = (
|
|
8153
|
-
if (
|
|
8150
|
+
const p = (s == null ? void 0 : s.openType) ?? 1, m = (s == null ? void 0 : s.type) ?? 1;
|
|
8151
|
+
if (s.routeUrl && !t.includes(s.routeUrl)) {
|
|
8154
8152
|
Dv({
|
|
8155
|
-
appCode:
|
|
8156
|
-
displayAppName:
|
|
8153
|
+
appCode: s.code,
|
|
8154
|
+
displayAppName: s.name
|
|
8157
8155
|
}), z();
|
|
8158
8156
|
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:
|
|
8157
|
+
if ((G == null ? void 0 : G.find((S) => S.code === s.code)) || G == null || G.push(s), MA([
|
|
8158
|
+
{ key: "currentSubApp", value: s },
|
|
8159
|
+
{ key: "currentSubAppCode", value: s.code },
|
|
8162
8160
|
{ key: "subAppList", value: G }
|
|
8163
8161
|
]), G.forEach((S) => {
|
|
8164
8162
|
const C = { ...S, value: S.code, label: S.name };
|
|
8165
8163
|
F.nav.appendItem(C);
|
|
8166
|
-
}), F.nav.setActiveItem(
|
|
8167
|
-
await e.push({ path:
|
|
8164
|
+
}), F.nav.setActiveItem(s.code), s.routeUrl.includes("entrance=main")) {
|
|
8165
|
+
await e.push({ path: s.routeUrl, query: { ...H.query, app: s.code } });
|
|
8168
8166
|
return;
|
|
8169
8167
|
}
|
|
8170
8168
|
if (p === 1 && m === 2) {
|
|
8171
|
-
const S = await Hv(
|
|
8169
|
+
const S = await Hv(s.routeUrl, (s == null ? void 0 : s.param) ?? []), C = Ne(me(le(S))), L = `${b9}-${s.code}`;
|
|
8172
8170
|
if (!e.options.routes.find((W) => W.path === L)) {
|
|
8173
8171
|
const W = {
|
|
8174
8172
|
path: L,
|
|
@@ -8183,47 +8181,47 @@ const z6 = (e) => {
|
|
|
8183
8181
|
path: L,
|
|
8184
8182
|
query: {
|
|
8185
8183
|
...H.query,
|
|
8186
|
-
app:
|
|
8184
|
+
app: s.code
|
|
8187
8185
|
}
|
|
8188
8186
|
});
|
|
8189
8187
|
return;
|
|
8190
8188
|
}
|
|
8191
8189
|
}
|
|
8192
8190
|
const {
|
|
8193
|
-
menuConfig:
|
|
8191
|
+
menuConfig: N = [],
|
|
8194
8192
|
currentApp: V = null,
|
|
8195
8193
|
currentMenu: l = null,
|
|
8196
8194
|
microPath: j = "",
|
|
8197
8195
|
query: O = {}
|
|
8198
|
-
} = await Md({ microApp:
|
|
8196
|
+
} = await Md({ microApp: s, menuCode: c, menuPath: i, route: H });
|
|
8199
8197
|
if (l && (H = {
|
|
8200
8198
|
path: j || `/${l.applicationPath}${l.routeUrl}`.replace(/\/\//g, "/"),
|
|
8201
8199
|
query: { ...O, app: l.applicationCode, menu: l.code },
|
|
8202
8200
|
meta: { ...(H == null ? void 0 : H.meta) ?? {} }
|
|
8203
|
-
}), V && (V == null ? void 0 : V.code) !== (
|
|
8201
|
+
}), V && (V == null ? void 0 : V.code) !== (s == null ? void 0 : s.code)) {
|
|
8204
8202
|
if (V.fixed && (await e.push(V.path), z(), F.nav.setActiveItem(V.path)), !V.fixed) {
|
|
8205
8203
|
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
8204
|
await n({ microApp: G, menuCode: (Y == null ? void 0 : Y.code) ?? "", route: { query: S } });
|
|
8207
8205
|
}
|
|
8208
8206
|
return;
|
|
8209
8207
|
}
|
|
8210
|
-
const
|
|
8211
|
-
if (!l &&
|
|
8208
|
+
const R = V || s;
|
|
8209
|
+
if (!l && i) {
|
|
8212
8210
|
await e.push({
|
|
8213
|
-
path:
|
|
8211
|
+
path: i,
|
|
8214
8212
|
query: {
|
|
8215
8213
|
...H.query,
|
|
8216
|
-
app:
|
|
8214
|
+
app: R.code
|
|
8217
8215
|
}
|
|
8218
8216
|
});
|
|
8219
8217
|
return;
|
|
8220
8218
|
}
|
|
8221
|
-
if (
|
|
8219
|
+
if (a && q) {
|
|
8222
8220
|
(_ = uA().subAppList) == null || _.forEach((Y) => {
|
|
8223
8221
|
const S = { ...Y, value: Y.code, label: Y.name };
|
|
8224
8222
|
F.nav.appendItem(S);
|
|
8225
|
-
}), F.nav.setActiveItem(
|
|
8226
|
-
const G = ZA().tabMap[
|
|
8223
|
+
}), F.nav.setActiveItem(R.code), F.menu.setItems(N);
|
|
8224
|
+
const G = ZA().tabMap[R.code] ?? [];
|
|
8227
8225
|
if (G.length) {
|
|
8228
8226
|
const Y = G.map((S) => ({
|
|
8229
8227
|
...S,
|
|
@@ -8236,7 +8234,7 @@ const z6 = (e) => {
|
|
|
8236
8234
|
}
|
|
8237
8235
|
A({ currentMenu: l, microPath: j, route: H });
|
|
8238
8236
|
}, u = async (X) => {
|
|
8239
|
-
var
|
|
8237
|
+
var s;
|
|
8240
8238
|
if (xA.innerSet = !0, X.fixed) {
|
|
8241
8239
|
await e.push(X.path), F.menu.setItems([]), F.tab.setItems([]), F.nav.setActiveItem(X.path), MA([
|
|
8242
8240
|
{ key: "currentSubAppCode", value: "" },
|
|
@@ -8248,8 +8246,8 @@ const z6 = (e) => {
|
|
|
8248
8246
|
return;
|
|
8249
8247
|
}
|
|
8250
8248
|
if (!X.fixed) {
|
|
8251
|
-
const
|
|
8252
|
-
await n({ microApp:
|
|
8249
|
+
const c = (s = uA().subAppList) == null ? void 0 : s.find((a) => a.code === X.code), i = ZA().preTab[X.code], b = (i == null ? void 0 : i.code) ?? "", H = { ...(i == null ? void 0 : i.query) ?? {} };
|
|
8250
|
+
await n({ microApp: c, menuCode: b, route: { query: H } });
|
|
8253
8251
|
}
|
|
8254
8252
|
};
|
|
8255
8253
|
return {
|
|
@@ -8258,27 +8256,27 @@ const z6 = (e) => {
|
|
|
8258
8256
|
changeApp: u,
|
|
8259
8257
|
deleteApp: async (X) => {
|
|
8260
8258
|
var H;
|
|
8261
|
-
const
|
|
8262
|
-
if (!((H =
|
|
8263
|
-
const
|
|
8264
|
-
if (
|
|
8265
|
-
const
|
|
8266
|
-
if (
|
|
8267
|
-
const
|
|
8268
|
-
|
|
8259
|
+
const s = uA();
|
|
8260
|
+
if (!((H = s.subAppList) != null && H.length)) return;
|
|
8261
|
+
const c = s.subAppList.findIndex((a) => a.code === X.code);
|
|
8262
|
+
if (c === -1) return;
|
|
8263
|
+
const i = ZA().tabMap[X.code] ?? [];
|
|
8264
|
+
if (i.length) {
|
|
8265
|
+
const a = i.filter((q) => !q.path.startsWith(b9)).map((q) => q.path);
|
|
8266
|
+
a && a.length && f(a), i.forEach((q) => F.iframeView.triggerEventListener("onUnloadPage", q.path));
|
|
8269
8267
|
}
|
|
8270
|
-
let
|
|
8271
|
-
if (
|
|
8268
|
+
let b = null;
|
|
8269
|
+
if (s.currentSubAppCode === X.code && (c + 1 !== s.subAppList.length ? s.subAppList[c + 1] && (b = s.subAppList[c + 1]) : s.subAppList[c - 1] && (b = s.subAppList[c - 1])), s.subAppList.splice(c, 1), MA([{ key: "subAppList", value: s.subAppList }]), IA([
|
|
8272
8270
|
{ key: `preTab:${X.code}`, value: {} },
|
|
8273
8271
|
{ key: `tabMap:${X.code}`, value: [] }
|
|
8274
|
-
]),
|
|
8275
|
-
const
|
|
8276
|
-
await u(
|
|
8272
|
+
]), b) {
|
|
8273
|
+
const a = { ...b, value: b.code, label: b.name };
|
|
8274
|
+
await u(a), F.nav.setActiveItem(b.code);
|
|
8277
8275
|
}
|
|
8278
|
-
if (!
|
|
8276
|
+
if (!s.subAppList.length) {
|
|
8279
8277
|
if (F.menu.setItems([]), F.tab.setItems([]), location.pathname !== RA && location.pathname !== hA) {
|
|
8280
|
-
const
|
|
8281
|
-
|
|
8278
|
+
const a = Av.find((q) => q.value === RA);
|
|
8279
|
+
a && u(a);
|
|
8282
8280
|
}
|
|
8283
8281
|
Be(), Pv();
|
|
8284
8282
|
}
|
|
@@ -8288,7 +8286,7 @@ const z6 = (e) => {
|
|
|
8288
8286
|
const e = y9();
|
|
8289
8287
|
let { mainAppName: A = "", microAppName: f = "", microApps: v = [] } = u9();
|
|
8290
8288
|
return !A && f && (v = [{ name: f }]), v.map((P) => P.name), { entryMenu: async (P) => {
|
|
8291
|
-
var
|
|
8289
|
+
var i;
|
|
8292
8290
|
const { currentMenu: t, route: z = {}, microPath: d = "" } = P;
|
|
8293
8291
|
if (!t) return;
|
|
8294
8292
|
let n = { ...z.query, app: t.applicationCode, menu: t.code };
|
|
@@ -8297,13 +8295,13 @@ const z6 = (e) => {
|
|
|
8297
8295
|
if (u === 1)
|
|
8298
8296
|
if (x === 1)
|
|
8299
8297
|
if (t.routeUrl.startsWith(b9)) {
|
|
8300
|
-
const
|
|
8298
|
+
const b = gn(t.routeUrl, "iframeSrc");
|
|
8301
8299
|
if (X = `${b9}-${t.code}`, !e.options.routes.find((H) => H.path === X)) {
|
|
8302
8300
|
const H = {
|
|
8303
8301
|
path: X,
|
|
8304
8302
|
name: X,
|
|
8305
8303
|
component: jA(ye, {
|
|
8306
|
-
src:
|
|
8304
|
+
src: b
|
|
8307
8305
|
}),
|
|
8308
8306
|
meta: { isIframe: !0, keepAlive: !0 }
|
|
8309
8307
|
};
|
|
@@ -8312,9 +8310,9 @@ const z6 = (e) => {
|
|
|
8312
8310
|
await e.push({ path: X, query: n });
|
|
8313
8311
|
} else t.applicationPath && (X = d || t.routeUrl, X = `/${t.applicationPath}${X}`.replace(/\/\//g, "/"), await e.push({ path: X, query: n }));
|
|
8314
8312
|
else {
|
|
8315
|
-
const
|
|
8316
|
-
if (X = `${b9}-${t.code}`, !e.options.routes.find((
|
|
8317
|
-
const
|
|
8313
|
+
const b = await Hv(t.routeUrl, (t == null ? void 0 : t.param) ?? []), H = Ne(me(le(b)));
|
|
8314
|
+
if (X = `${b9}-${t.code}`, !e.options.routes.find((a) => a.path === X)) {
|
|
8315
|
+
const a = {
|
|
8318
8316
|
path: X,
|
|
8319
8317
|
name: X,
|
|
8320
8318
|
component: jA(ye, {
|
|
@@ -8322,13 +8320,13 @@ const z6 = (e) => {
|
|
|
8322
8320
|
}),
|
|
8323
8321
|
meta: { isIframe: !0, keepAlive: !0 }
|
|
8324
8322
|
};
|
|
8325
|
-
e.addRoute(
|
|
8323
|
+
e.addRoute(a), e.options.routes.push(a);
|
|
8326
8324
|
}
|
|
8327
8325
|
await e.push({ path: X, query: n });
|
|
8328
8326
|
}
|
|
8329
8327
|
if (u === 2) {
|
|
8330
|
-
let
|
|
8331
|
-
|
|
8328
|
+
let b = x === 1 ? `/${t.applicationPath}${t.routeUrl}`.replace(/\/\//g, "/") : t.routeUrl;
|
|
8329
|
+
b = Ne(me(le(b))), xA.innerSet ? (X = fv, await e.push({ path: X, query: n }), b && window.open(b, "_blank")) : x === 1 && (X = b, n = { ...n, showLayout: !1 }, await e.push({
|
|
8332
8330
|
path: X,
|
|
8333
8331
|
query: n
|
|
8334
8332
|
}));
|
|
@@ -8339,10 +8337,10 @@ const z6 = (e) => {
|
|
|
8339
8337
|
menuCode: t.code,
|
|
8340
8338
|
displayMenuName: t.name
|
|
8341
8339
|
});
|
|
8342
|
-
const
|
|
8343
|
-
let
|
|
8344
|
-
if (
|
|
8345
|
-
const
|
|
8340
|
+
const s = ((i = z.meta) == null ? void 0 : i.showLayout) ?? !0;
|
|
8341
|
+
let c = (n == null ? void 0 : n.showLayout) ?? !0;
|
|
8342
|
+
if (c === "false" && (c = !1), s && c) {
|
|
8343
|
+
const b = {
|
|
8346
8344
|
currentApplication: uA().currentSubApp.routeUrl,
|
|
8347
8345
|
applicationPath: t.applicationPath,
|
|
8348
8346
|
applicationCode: t.applicationCode,
|
|
@@ -8353,9 +8351,9 @@ const z6 = (e) => {
|
|
|
8353
8351
|
query: n
|
|
8354
8352
|
};
|
|
8355
8353
|
F.tab.appendItem({
|
|
8356
|
-
...
|
|
8357
|
-
value:
|
|
8358
|
-
label:
|
|
8354
|
+
...b,
|
|
8355
|
+
value: b.code,
|
|
8356
|
+
label: b.name
|
|
8359
8357
|
}), F.tab.setActiveItem(t.code), F.menu.setActiveItem(t.id), tv(t.code), IA([
|
|
8360
8358
|
{
|
|
8361
8359
|
key: "currentCode",
|
|
@@ -8363,15 +8361,15 @@ const z6 = (e) => {
|
|
|
8363
8361
|
},
|
|
8364
8362
|
{
|
|
8365
8363
|
key: "currentTab",
|
|
8366
|
-
value:
|
|
8364
|
+
value: b
|
|
8367
8365
|
},
|
|
8368
8366
|
{
|
|
8369
8367
|
key: `preTab:${t.applicationCode}`,
|
|
8370
|
-
value:
|
|
8368
|
+
value: b
|
|
8371
8369
|
},
|
|
8372
8370
|
{
|
|
8373
8371
|
key: `tabMap:${t.applicationCode}`,
|
|
8374
|
-
value:
|
|
8372
|
+
value: b
|
|
8375
8373
|
}
|
|
8376
8374
|
]);
|
|
8377
8375
|
}
|
|
@@ -8381,25 +8379,25 @@ const z6 = (e) => {
|
|
|
8381
8379
|
let { mainAppName: P = "", microAppName: t = "", microApps: z = [] } = u9();
|
|
8382
8380
|
!P && t && (z = [{ name: t }]);
|
|
8383
8381
|
const d = async (x) => {
|
|
8384
|
-
var p, m,
|
|
8385
|
-
let X = { ...x }, { showLayout:
|
|
8386
|
-
|
|
8387
|
-
const
|
|
8388
|
-
var O,
|
|
8382
|
+
var p, m, N, V;
|
|
8383
|
+
let X = { ...x }, { showLayout: s = !0 } = X.query;
|
|
8384
|
+
s === "false" && (s = !1);
|
|
8385
|
+
const c = async () => {
|
|
8386
|
+
var O, R;
|
|
8389
8387
|
let l = uA().appcategorys ?? [];
|
|
8390
8388
|
if (!Array.isArray(l)) return [];
|
|
8391
8389
|
if (X.query) {
|
|
8392
|
-
const Z = ((O = X.query) == null ? void 0 : O.project) ?? ((
|
|
8393
|
-
if (!l.length || Z && Z !==
|
|
8390
|
+
const Z = ((O = X.query) == null ? void 0 : O.project) ?? ((R = X.query) == null ? void 0 : R.projectId) ?? "";
|
|
8391
|
+
if (!l.length || Z && Z !== YA().id) {
|
|
8394
8392
|
await A();
|
|
8395
8393
|
const { navConfig: T } = await Bv();
|
|
8396
8394
|
T && (l = T);
|
|
8397
8395
|
}
|
|
8398
8396
|
}
|
|
8399
8397
|
return l.map((Z) => Z.apps).flat() ?? [];
|
|
8400
|
-
},
|
|
8401
|
-
if (
|
|
8402
|
-
const l =
|
|
8398
|
+
}, i = z.filter((l) => l.public);
|
|
8399
|
+
if (i.length) {
|
|
8400
|
+
const l = i.find(
|
|
8403
8401
|
(j) => X.path.startsWith("/" + j.name) || X.path.startsWith(j.name)
|
|
8404
8402
|
);
|
|
8405
8403
|
if (l) {
|
|
@@ -8412,10 +8410,10 @@ const z6 = (e) => {
|
|
|
8412
8410
|
return;
|
|
8413
8411
|
}
|
|
8414
8412
|
}
|
|
8415
|
-
const
|
|
8413
|
+
const b = await c(), H = b.map((l) => l.code), a = ((p = X.query) == null ? void 0 : p.app) ?? "", q = ((m = uA()) == null ? void 0 : m.subAppList) ?? [];
|
|
8416
8414
|
if (q.length) {
|
|
8417
|
-
const l = q.filter((O) => O.code !==
|
|
8418
|
-
(O) =>
|
|
8415
|
+
const l = q.filter((O) => O.code !== a && !H.includes(O.code)), j = q.filter(
|
|
8416
|
+
(O) => a === O.code || H.includes(O.code)
|
|
8419
8417
|
);
|
|
8420
8418
|
MA([{ key: "subAppList", value: j }]), l && l.length && l.forEach((O) => {
|
|
8421
8419
|
IA([
|
|
@@ -8425,13 +8423,13 @@ const z6 = (e) => {
|
|
|
8425
8423
|
});
|
|
8426
8424
|
}
|
|
8427
8425
|
if (X.query.app) {
|
|
8428
|
-
let l =
|
|
8429
|
-
if (!l &&
|
|
8426
|
+
let l = b.find((j) => j.code === X.query.app);
|
|
8427
|
+
if (!l && s) {
|
|
8430
8428
|
const { currentApp: j } = oe(X.query.app);
|
|
8431
8429
|
if (j) {
|
|
8432
8430
|
l = j;
|
|
8433
|
-
const
|
|
8434
|
-
X = {},
|
|
8431
|
+
const R = (ZA().preTab ?? {})[l.code];
|
|
8432
|
+
X = {}, R && (X.path = `/${R.applicationPath}${R.path}`.replace(/\/\//g, "/"), X.query = R.query);
|
|
8435
8433
|
}
|
|
8436
8434
|
}
|
|
8437
8435
|
l != null && l.fixed ? (await r.push(l.path), F.menu.setItems([]), F.tab.setItems([]), F.nav.setActiveItem(l.path)) : v({ microApp: l, menuCode: X.query.menu, menuPath: X.path, route: X });
|
|
@@ -8441,8 +8439,8 @@ const z6 = (e) => {
|
|
|
8441
8439
|
(j) => X.path.startsWith("/" + j.name) || X.path.startsWith(j.name)
|
|
8442
8440
|
);
|
|
8443
8441
|
if (l) {
|
|
8444
|
-
let j =
|
|
8445
|
-
j || (j =
|
|
8442
|
+
let j = b.find((O) => O.routeUrl === l.name);
|
|
8443
|
+
j || (j = b.find(
|
|
8446
8444
|
(O) => (O == null ? void 0 : O.routePath) && O.routePath.length && O.routePath.includes(l.name)
|
|
8447
8445
|
)), v({
|
|
8448
8446
|
microApp: j,
|
|
@@ -8453,8 +8451,8 @@ const z6 = (e) => {
|
|
|
8453
8451
|
return;
|
|
8454
8452
|
}
|
|
8455
8453
|
}
|
|
8456
|
-
if (
|
|
8457
|
-
(V = (
|
|
8454
|
+
if (s) {
|
|
8455
|
+
(V = (N = uA()) == null ? void 0 : N.subAppList) == null || V.forEach((j) => {
|
|
8458
8456
|
const O = { ...j, value: j.code, label: j.name };
|
|
8459
8457
|
F.nav.appendItem(O);
|
|
8460
8458
|
});
|
|
@@ -8473,7 +8471,7 @@ const z6 = (e) => {
|
|
|
8473
8471
|
() => r.currentRoute.value,
|
|
8474
8472
|
async (x) => {
|
|
8475
8473
|
if (!(x.path === n && Oe(x.query, u))) {
|
|
8476
|
-
if (n = o9(x.path), u = o9(x.query), await f(), xA.innerSet) {
|
|
8474
|
+
if (n = o9(x.path), u = o9(x.query), u && u.source && localStorage.setItem("thirdLogouSource", u.source), await f(), xA.innerSet) {
|
|
8477
8475
|
xA.innerSet = !1;
|
|
8478
8476
|
return;
|
|
8479
8477
|
}
|
|
@@ -8490,40 +8488,48 @@ const z6 = (e) => {
|
|
|
8490
8488
|
xA.routeKeepAliveVisible = !0, xA.excludeRoutes = [];
|
|
8491
8489
|
}, 100);
|
|
8492
8490
|
} }), U6 = () => {
|
|
8493
|
-
const e = Zn(), A = o6(), f = u9(), v =
|
|
8494
|
-
|
|
8491
|
+
const e = Zn(), A = o6(), f = u9(), v = () => {
|
|
8492
|
+
let d = !1;
|
|
8493
|
+
return localStorage.getItem("thirdLogouSource") === "zhongshen" && (d = !0), d;
|
|
8494
|
+
}, r = (d) => {
|
|
8495
|
+
if (localStorage.getItem("thirdLogouSource") === "zhongshen") {
|
|
8496
|
+
const x = `https://iam.shenyejituan.com:6443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(d)}&entityId=AIoT&redirectToLogin=true`;
|
|
8497
|
+
localStorage.removeItem("thirdLogouSource"), location.href = x;
|
|
8498
|
+
}
|
|
8499
|
+
}, P = async () => {
|
|
8500
|
+
const d = {
|
|
8495
8501
|
logout: "/api/justauth/oauth-server/v1/visitor/logout"
|
|
8496
|
-
},
|
|
8502
|
+
}, n = location.origin + hA, u = {
|
|
8497
8503
|
response_type: "code",
|
|
8498
8504
|
scope: "sever",
|
|
8499
8505
|
client_id: "sys",
|
|
8500
8506
|
state: +/* @__PURE__ */ new Date(),
|
|
8501
|
-
redirect_uri:
|
|
8507
|
+
redirect_uri: n,
|
|
8502
8508
|
logout_token: t9(),
|
|
8503
8509
|
// 写用户访问日志逻辑配合
|
|
8504
8510
|
logout: "true"
|
|
8505
8511
|
};
|
|
8506
|
-
f.ssoLocale && (
|
|
8507
|
-
const
|
|
8508
|
-
window.__isAutoCloseApp = !1, location.replace(
|
|
8509
|
-
}, { entryApp:
|
|
8510
|
-
const
|
|
8511
|
-
if (
|
|
8512
|
-
const { title: i, content:
|
|
8513
|
-
await G9({ title: i, content:
|
|
8512
|
+
f.ssoLocale && (u.locale = "locale");
|
|
8513
|
+
const x = Object.keys(u).map((s) => `${s}=${u[s]}`).join("&"), X = `${f.baseURL}${d.logout}?${x}`;
|
|
8514
|
+
window.__isAutoCloseApp = !1, v() ? r(X) : location.replace(X), sessionStorage.clear(), localStorage.removeItem("idelTime"), Fn();
|
|
8515
|
+
}, { entryApp: t } = m9(), z = async () => {
|
|
8516
|
+
const d = "personCenter", u = (uA().appcategorys || []).map((i) => i.apps).flat(), { originalMenus: x = [] } = await Je(d), s = UA(x).filter((i) => i.isMenu && i.routeUrl).find((i) => i.routeUrl === "/userInfo");
|
|
8517
|
+
if (s != null && s.disable || s != null && s.expired) {
|
|
8518
|
+
const { title: i, content: b, desc: H } = await Ke(s);
|
|
8519
|
+
await G9({ title: i, content: b, desc: H });
|
|
8514
8520
|
return;
|
|
8515
8521
|
}
|
|
8516
|
-
const
|
|
8517
|
-
|
|
8522
|
+
const c = u.find((i) => i.code === d);
|
|
8523
|
+
c && t({ microApp: c, menuPath: `/${c.routeUrl}/userInfo` });
|
|
8518
8524
|
};
|
|
8519
|
-
return F.nav.addEventListener("onUserCommandChange", (
|
|
8520
|
-
var
|
|
8525
|
+
return F.nav.addEventListener("onUserCommandChange", (d) => {
|
|
8526
|
+
var u, x;
|
|
8521
8527
|
({
|
|
8522
|
-
0: (
|
|
8523
|
-
1:
|
|
8524
|
-
2: (
|
|
8525
|
-
3:
|
|
8526
|
-
})[
|
|
8528
|
+
0: (u = A.value) == null ? void 0 : u.openDialog,
|
|
8529
|
+
1: z,
|
|
8530
|
+
2: (x = e.value) == null ? void 0 : x.openDialog,
|
|
8531
|
+
3: P
|
|
8532
|
+
})[d]();
|
|
8527
8533
|
}), {
|
|
8528
8534
|
$changePwd: e,
|
|
8529
8535
|
$personSetDialog: A
|
|
@@ -8546,20 +8552,20 @@ const z6 = (e) => {
|
|
|
8546
8552
|
const [d, n] = await J6().run({ tenant: z });
|
|
8547
8553
|
if (d) return;
|
|
8548
8554
|
A.value = !1;
|
|
8549
|
-
const { access_token: u = "", refresh_token: x = "", expires_in: X = 0, sub:
|
|
8555
|
+
const { access_token: u = "", refresh_token: x = "", expires_in: X = 0, sub: s = "", name: c = "", flag: i = "", tenant: b = "" } = n, H = {
|
|
8550
8556
|
accessToken: u,
|
|
8551
8557
|
accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(X) * 1e3,
|
|
8552
8558
|
refreshToken: x,
|
|
8553
8559
|
info: n
|
|
8554
8560
|
};
|
|
8555
8561
|
Un().save(H), U3(H);
|
|
8556
|
-
const
|
|
8557
|
-
id:
|
|
8558
|
-
name:
|
|
8559
|
-
flag:
|
|
8560
|
-
tenantId:
|
|
8562
|
+
const a = {
|
|
8563
|
+
id: s,
|
|
8564
|
+
name: c,
|
|
8565
|
+
flag: i,
|
|
8566
|
+
tenantId: b
|
|
8561
8567
|
};
|
|
8562
|
-
sessionStorage.setItem("hotentUserInfo", JSON.stringify(
|
|
8568
|
+
sessionStorage.setItem("hotentUserInfo", JSON.stringify(a)), hn(u);
|
|
8563
8569
|
let q = "";
|
|
8564
8570
|
if (e != null && e.ssoLocale)
|
|
8565
8571
|
q = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${z}`;
|
|
@@ -8595,8 +8601,8 @@ const z6 = (e) => {
|
|
|
8595
8601
|
return F.nav.addEventListener("searchToPage", async (v) => {
|
|
8596
8602
|
const { item: r, keyword: P, cb: t } = v;
|
|
8597
8603
|
if (r != null && r.disable || r != null && r.expired) {
|
|
8598
|
-
const { title: x, content: X, desc:
|
|
8599
|
-
await G9({ title: x, content: X, desc:
|
|
8604
|
+
const { title: x, content: X, desc: s } = await Ke(r);
|
|
8605
|
+
await G9({ title: x, content: X, desc: s });
|
|
8600
8606
|
return;
|
|
8601
8607
|
}
|
|
8602
8608
|
await C6().run({ searchVal: P, clickData: r });
|
|
@@ -8690,7 +8696,7 @@ const z6 = (e) => {
|
|
|
8690
8696
|
},
|
|
8691
8697
|
message: async (t) => {
|
|
8692
8698
|
if (NA.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message-notify:message", { msgList: t }), window.self !== window.top) return;
|
|
8693
|
-
const d =
|
|
8699
|
+
const d = YA().id;
|
|
8694
8700
|
e.value = t.filter(
|
|
8695
8701
|
(n) => n.projectId === d || n.projectId === 0 || n.projectId === "0"
|
|
8696
8702
|
), f.value && f.value.length && (f.value.forEach((n) => df.close(n)), f.value = []), await R9(), e.value.forEach((n, u) => {
|
|
@@ -8731,7 +8737,7 @@ const z6 = (e) => {
|
|
|
8731
8737
|
});
|
|
8732
8738
|
}, t1 = "v1", u1 = W9(`/api/enterpriseright/permission/${t1}`), Sv = W9("/api/device-relation/deviceproject/v1/project/device/video", d1), z1 = Ee.get("/permissionset/user-portal-menu");
|
|
8733
8739
|
function d1(e) {
|
|
8734
|
-
const A =
|
|
8740
|
+
const A = YA() ? YA().id : 1;
|
|
8735
8741
|
return e.params || (e.params = {}), e.params.project = A, e.params.projectId = A, e;
|
|
8736
8742
|
}
|
|
8737
8743
|
function hv(e) {
|
|
@@ -8976,25 +8982,25 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
8976
8982
|
});
|
|
8977
8983
|
}, X = () => {
|
|
8978
8984
|
r.value = !r.value, P.value && (P.value.muted = r.value);
|
|
8979
|
-
},
|
|
8985
|
+
}, s = () => {
|
|
8980
8986
|
t.value = !t.value;
|
|
8981
|
-
},
|
|
8987
|
+
}, c = o(""), i = () => {
|
|
8982
8988
|
const q = document.createElement("canvas");
|
|
8983
8989
|
if (d.value) {
|
|
8984
8990
|
q.width = d.value.clientWidth, q.height = d.value.clientHeight;
|
|
8985
8991
|
const p = q.getContext("2d");
|
|
8986
8992
|
p == null || p.drawImage(d.value, 0, 0, q.width, q.height);
|
|
8987
|
-
const m = q.toDataURL("image/jpg"),
|
|
8988
|
-
if (
|
|
8993
|
+
const m = q.toDataURL("image/jpg"), N = `【${f.title}】${De().format("YYYYMMDDHHmmss").toString()}.jpg`;
|
|
8994
|
+
if (c.value = m, "download" in document.createElement("a")) {
|
|
8989
8995
|
const V = document.createElement("a");
|
|
8990
|
-
V.download =
|
|
8996
|
+
V.download = N, V.style.display = "none", V.href = m, document.body.appendChild(V), document.body.appendChild(q), V.click(), URL.revokeObjectURL(V.href), document.body.removeChild(V), document.body.removeChild(q);
|
|
8991
8997
|
}
|
|
8992
8998
|
}
|
|
8993
|
-
},
|
|
8999
|
+
}, b = (q) => {
|
|
8994
9000
|
v("directionControl", q);
|
|
8995
9001
|
}, H = (q) => {
|
|
8996
9002
|
v("zoomControl", q);
|
|
8997
|
-
},
|
|
9003
|
+
}, a = (q) => f.authType.includes(q);
|
|
8998
9004
|
return OA(
|
|
8999
9005
|
() => d.value,
|
|
9000
9006
|
() => {
|
|
@@ -9111,13 +9117,13 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9111
9117
|
B(D(N9), {
|
|
9112
9118
|
class: "icon icon-screenshot",
|
|
9113
9119
|
icon: "screenshot",
|
|
9114
|
-
onClick: DA(
|
|
9120
|
+
onClick: DA(i, ["stop"])
|
|
9115
9121
|
})
|
|
9116
9122
|
]),
|
|
9117
9123
|
_: 1
|
|
9118
9124
|
/* STABLE */
|
|
9119
9125
|
}, 8, ["content"]),
|
|
9120
|
-
|
|
9126
|
+
a("control") ? (fA(), XA(D(WA), {
|
|
9121
9127
|
key: 0,
|
|
9122
9128
|
content: D(M)("聚焦-")
|
|
9123
9129
|
}, {
|
|
@@ -9132,7 +9138,7 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9132
9138
|
_: 1
|
|
9133
9139
|
/* STABLE */
|
|
9134
9140
|
}, 8, ["content"])) : nA("v-if", !0),
|
|
9135
|
-
|
|
9141
|
+
a("control") ? (fA(), XA(D(WA), {
|
|
9136
9142
|
key: 1,
|
|
9137
9143
|
content: D(M)("聚焦+")
|
|
9138
9144
|
}, {
|
|
@@ -9147,7 +9153,7 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9147
9153
|
_: 1
|
|
9148
9154
|
/* STABLE */
|
|
9149
9155
|
}, 8, ["content"])) : nA("v-if", !0),
|
|
9150
|
-
|
|
9156
|
+
a("control") ? (fA(), XA(D(WA), {
|
|
9151
9157
|
key: 2,
|
|
9152
9158
|
content: D(M)("方向控制")
|
|
9153
9159
|
}, {
|
|
@@ -9156,7 +9162,7 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9156
9162
|
key: 0,
|
|
9157
9163
|
class: "icon icon-direction-control",
|
|
9158
9164
|
icon: "direction-control",
|
|
9159
|
-
onClick: DA(
|
|
9165
|
+
onClick: DA(s, ["stop"])
|
|
9160
9166
|
})) : nA("v-if", !0)
|
|
9161
9167
|
]),
|
|
9162
9168
|
_: 1
|
|
@@ -9170,7 +9176,7 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9170
9176
|
]),
|
|
9171
9177
|
t.value ? (fA(), XA(p1, {
|
|
9172
9178
|
key: 1,
|
|
9173
|
-
onChange:
|
|
9179
|
+
onChange: b
|
|
9174
9180
|
})) : nA("v-if", !0)
|
|
9175
9181
|
]),
|
|
9176
9182
|
_: 1
|
|
@@ -9355,7 +9361,7 @@ const y1 = /* @__PURE__ */ qA({
|
|
|
9355
9361
|
if (!t)
|
|
9356
9362
|
return z;
|
|
9357
9363
|
}, r = async () => {
|
|
9358
|
-
const P =
|
|
9364
|
+
const P = YA().id, [t, z] = await z1().run({
|
|
9359
9365
|
code: "strategy",
|
|
9360
9366
|
showBtn: !1
|
|
9361
9367
|
});
|
|
@@ -9369,19 +9375,19 @@ const y1 = /* @__PURE__ */ qA({
|
|
|
9369
9375
|
let x = {
|
|
9370
9376
|
projectId: P,
|
|
9371
9377
|
deviceIds: n == null ? void 0 : n.deviceId
|
|
9372
|
-
},
|
|
9373
|
-
let
|
|
9378
|
+
}, s = (await v(x)).map((c) => {
|
|
9379
|
+
let i = c.lookupOrOperation == 1;
|
|
9374
9380
|
return {
|
|
9375
|
-
id:
|
|
9376
|
-
productId:
|
|
9377
|
-
deviceId:
|
|
9378
|
-
deviceName:
|
|
9379
|
-
authType:
|
|
9381
|
+
id: c.id,
|
|
9382
|
+
productId: c.productId,
|
|
9383
|
+
deviceId: c.deviceId,
|
|
9384
|
+
deviceName: c.deviceName,
|
|
9385
|
+
authType: c.controlAuthorization == 1 ? 2 : 1,
|
|
9380
9386
|
// 1 查看权限 2 查看+操作权限
|
|
9381
|
-
show: !!
|
|
9387
|
+
show: !!i
|
|
9382
9388
|
};
|
|
9383
9389
|
});
|
|
9384
|
-
A.value =
|
|
9390
|
+
A.value = s.filter((c) => !!c.show), (u = A.value) != null && u.length && W1({ gridNum: e.value, deviceList: A.value });
|
|
9385
9391
|
}
|
|
9386
9392
|
}
|
|
9387
9393
|
}));
|
|
@@ -9804,40 +9810,40 @@ class C1 extends Tf {
|
|
|
9804
9810
|
return this._httpClient.getCookieString(A);
|
|
9805
9811
|
}
|
|
9806
9812
|
}
|
|
9807
|
-
class
|
|
9813
|
+
class QA {
|
|
9808
9814
|
static write(A) {
|
|
9809
|
-
return `${A}${
|
|
9815
|
+
return `${A}${QA.RecordSeparator}`;
|
|
9810
9816
|
}
|
|
9811
9817
|
static parse(A) {
|
|
9812
|
-
if (A[A.length - 1] !==
|
|
9818
|
+
if (A[A.length - 1] !== QA.RecordSeparator)
|
|
9813
9819
|
throw new Error("Message is incomplete.");
|
|
9814
|
-
const f = A.split(
|
|
9820
|
+
const f = A.split(QA.RecordSeparator);
|
|
9815
9821
|
return f.pop(), f;
|
|
9816
9822
|
}
|
|
9817
9823
|
}
|
|
9818
|
-
|
|
9819
|
-
|
|
9824
|
+
QA.RecordSeparatorCode = 30;
|
|
9825
|
+
QA.RecordSeparator = String.fromCharCode(QA.RecordSeparatorCode);
|
|
9820
9826
|
class _1 {
|
|
9821
9827
|
// Handshake request is always JSON
|
|
9822
9828
|
writeHandshakeRequest(A) {
|
|
9823
|
-
return
|
|
9829
|
+
return QA.write(JSON.stringify(A));
|
|
9824
9830
|
}
|
|
9825
9831
|
parseHandshakeResponse(A) {
|
|
9826
9832
|
let f, v;
|
|
9827
9833
|
if (q9(A)) {
|
|
9828
|
-
const z = new Uint8Array(A), d = z.indexOf(
|
|
9834
|
+
const z = new Uint8Array(A), d = z.indexOf(QA.RecordSeparatorCode);
|
|
9829
9835
|
if (d === -1)
|
|
9830
9836
|
throw new Error("Message is incomplete.");
|
|
9831
9837
|
const n = d + 1;
|
|
9832
9838
|
f = String.fromCharCode.apply(null, Array.prototype.slice.call(z.slice(0, n))), v = z.byteLength > n ? z.slice(n).buffer : null;
|
|
9833
9839
|
} else {
|
|
9834
|
-
const z = A, d = z.indexOf(
|
|
9840
|
+
const z = A, d = z.indexOf(QA.RecordSeparator);
|
|
9835
9841
|
if (d === -1)
|
|
9836
9842
|
throw new Error("Message is incomplete.");
|
|
9837
9843
|
const n = d + 1;
|
|
9838
9844
|
f = z.substring(0, n), v = z.length > n ? z.substring(n) : null;
|
|
9839
9845
|
}
|
|
9840
|
-
const r =
|
|
9846
|
+
const r = QA.parse(f), P = JSON.parse(r[0]);
|
|
9841
9847
|
if (P.type)
|
|
9842
9848
|
throw new Error("Expected a handshake response from the server.");
|
|
9843
9849
|
return [v, P];
|
|
@@ -11006,7 +11012,7 @@ class c8 {
|
|
|
11006
11012
|
if (!A)
|
|
11007
11013
|
return [];
|
|
11008
11014
|
f === null && (f = F9.instance);
|
|
11009
|
-
const v =
|
|
11015
|
+
const v = QA.parse(A), r = [];
|
|
11010
11016
|
for (const P of v) {
|
|
11011
11017
|
const t = JSON.parse(P);
|
|
11012
11018
|
if (typeof t.type != "number")
|
|
@@ -11045,7 +11051,7 @@ class c8 {
|
|
|
11045
11051
|
* @returns {string} A string containing the serialized representation of the message.
|
|
11046
11052
|
*/
|
|
11047
11053
|
writeMessage(A) {
|
|
11048
|
-
return
|
|
11054
|
+
return QA.write(JSON.stringify(A));
|
|
11049
11055
|
}
|
|
11050
11056
|
_isInvocationMessage(A) {
|
|
11051
11057
|
this._assertNotEmptyString(A.target, "Invalid payload for Invocation message."), A.invocationId !== void 0 && this._assertNotEmptyString(A.invocationId, "Invalid payload for Invocation message.");
|
|
@@ -11174,27 +11180,27 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11174
11180
|
userType: 1
|
|
11175
11181
|
});
|
|
11176
11182
|
if (f || !v || !v.length) return null;
|
|
11177
|
-
const r =
|
|
11183
|
+
const r = UA(v).find((P) => P.code === A);
|
|
11178
11184
|
return r || null;
|
|
11179
11185
|
}, R8 = () => {
|
|
11180
11186
|
const e = sf(), { entryApp: A } = Xf.hooks.useEntryApp(), { entryMenu: f } = Xf.hooks.useEntryMenu();
|
|
11181
11187
|
let v = null;
|
|
11182
11188
|
return _A(async () => {
|
|
11183
11189
|
await Df();
|
|
11184
|
-
const r = (
|
|
11190
|
+
const r = (i) => {
|
|
11185
11191
|
try {
|
|
11186
|
-
return JSON.parse(
|
|
11192
|
+
return JSON.parse(i);
|
|
11187
11193
|
} catch {
|
|
11188
11194
|
return !1;
|
|
11189
11195
|
}
|
|
11190
|
-
}, P = async (
|
|
11191
|
-
var
|
|
11192
|
-
const
|
|
11193
|
-
if (Array.isArray(
|
|
11194
|
-
const V =
|
|
11195
|
-
if (
|
|
11196
|
-
if (
|
|
11197
|
-
const j =
|
|
11196
|
+
}, P = async (i) => {
|
|
11197
|
+
var a, q, p, m, N;
|
|
11198
|
+
const b = uA(), H = ((a = b.appcategorys) == null ? void 0 : a.map((V) => V.apps).flat()) || [];
|
|
11199
|
+
if (Array.isArray(i)) {
|
|
11200
|
+
const V = i.filter((l) => l.code).map((l) => l.code);
|
|
11201
|
+
if (i.length) {
|
|
11202
|
+
if (b.currentSubAppCode) {
|
|
11203
|
+
const j = b.currentSubApp.menus ?? [], O = UA(j).find((R) => V.includes(R.code));
|
|
11198
11204
|
if (O) {
|
|
11199
11205
|
f({ currentMenu: O });
|
|
11200
11206
|
return;
|
|
@@ -11204,17 +11210,17 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11204
11210
|
l && A({ microApp: l });
|
|
11205
11211
|
}
|
|
11206
11212
|
}
|
|
11207
|
-
if (typeof
|
|
11208
|
-
let V =
|
|
11213
|
+
if (typeof i == "string") {
|
|
11214
|
+
let V = i;
|
|
11209
11215
|
const l = "_showEchartTooltip", j = V.endsWith(l);
|
|
11210
11216
|
j && (V = V.slice(0, V.indexOf(l)));
|
|
11211
|
-
const O = "_zdkbInfo",
|
|
11212
|
-
if (
|
|
11217
|
+
const O = "_zdkbInfo", R = V.endsWith(O);
|
|
11218
|
+
if (R && (V = V.slice(0, V.indexOf(O))), V.includes(":")) {
|
|
11213
11219
|
const Z = V.split(":"), [T = "", Q = ""] = Z;
|
|
11214
11220
|
if (!T) return;
|
|
11215
11221
|
const h = H.find((_) => _.code === T);
|
|
11216
11222
|
if (h) {
|
|
11217
|
-
if (
|
|
11223
|
+
if (R || j) {
|
|
11218
11224
|
const _ = await B3(h.code, Q);
|
|
11219
11225
|
if (_) {
|
|
11220
11226
|
const G = JSON.stringify({ showEchartTooltip: j });
|
|
@@ -11237,11 +11243,11 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11237
11243
|
if (Q) return;
|
|
11238
11244
|
const _ = H.find((G) => G.code === h);
|
|
11239
11245
|
if (_) {
|
|
11240
|
-
if (
|
|
11246
|
+
if (R || j) {
|
|
11241
11247
|
const G = await B3(_.code, Z);
|
|
11242
11248
|
if (G) {
|
|
11243
11249
|
const Y = JSON.stringify({ showEchartTooltip: j });
|
|
11244
|
-
(m = e.query) != null && m.app && e.query.app === T.code && ((
|
|
11250
|
+
(m = e.query) != null && m.app && e.query.app === T.code && ((N = e.query) != null && N.menu) && e.query.menu === Z ? NA.sendMessageToMicroApp(G.applicationPath, `${Z}:todetail`, Y) : (await A({ microApp: T, menuCode: Z }), setTimeout(() => {
|
|
11245
11251
|
NA.sendMessageToMicroApp(G.applicationPath, `${Z}:todetail`, Y, {
|
|
11246
11252
|
awaitListener: !0
|
|
11247
11253
|
});
|
|
@@ -11256,53 +11262,53 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11256
11262
|
}
|
|
11257
11263
|
};
|
|
11258
11264
|
let t = o(!0);
|
|
11259
|
-
const z = (
|
|
11265
|
+
const z = (i) => {
|
|
11260
11266
|
setTimeout(async () => {
|
|
11261
|
-
var
|
|
11267
|
+
var b, H;
|
|
11262
11268
|
if (t.value) {
|
|
11263
|
-
const [
|
|
11264
|
-
|
|
11265
|
-
uniqueId:
|
|
11269
|
+
const [a, q] = await l8().run({}, { params: { aliasName: i.actionValue } });
|
|
11270
|
+
a ? await xe().run({
|
|
11271
|
+
uniqueId: i.uniqueId,
|
|
11266
11272
|
status: 0,
|
|
11267
|
-
errorMsg: "未找到" +
|
|
11268
|
-
}) : q.length ? (q.length > 1 ? P(q) : P((
|
|
11269
|
-
uniqueId:
|
|
11273
|
+
errorMsg: "未找到" + i.actionValue
|
|
11274
|
+
}) : q.length ? (q.length > 1 ? P(q) : P((b = q[0]) == null ? void 0 : b.code), await xe().run({
|
|
11275
|
+
uniqueId: i.uniqueId,
|
|
11270
11276
|
status: 1,
|
|
11271
11277
|
targetName: (H = q[0]) == null ? void 0 : H.name
|
|
11272
11278
|
})) : await xe().run({
|
|
11273
|
-
uniqueId:
|
|
11279
|
+
uniqueId: i.uniqueId,
|
|
11274
11280
|
status: 0,
|
|
11275
|
-
errorMsg: "未找到" +
|
|
11281
|
+
errorMsg: "未找到" + i.actionValue
|
|
11276
11282
|
});
|
|
11277
11283
|
}
|
|
11278
11284
|
t.value = !0;
|
|
11279
11285
|
}, 2e3);
|
|
11280
|
-
}, d = (
|
|
11281
|
-
const
|
|
11282
|
-
p8().on(`${
|
|
11286
|
+
}, d = (i) => {
|
|
11287
|
+
const b = t9(), H = JSON.parse(atob(b.split(".")[1])).sub;
|
|
11288
|
+
p8().on(`${i}:${H}`, async function(q) {
|
|
11283
11289
|
let p = r(q);
|
|
11284
11290
|
if (p)
|
|
11285
11291
|
p.uniqueId && p.actionKey == "switch-menu" && z(p);
|
|
11286
11292
|
else if (q.includes("openAppMenu=")) {
|
|
11287
|
-
const m = q.split("="),
|
|
11288
|
-
P(
|
|
11293
|
+
const m = q.split("="), N = JSON.parse(m[1]);
|
|
11294
|
+
P(N);
|
|
11289
11295
|
} else q.includes("iocIsRun") && (t.value = !1);
|
|
11290
11296
|
});
|
|
11291
11297
|
}, n = o(""), [u, x] = await g3().run();
|
|
11292
11298
|
n.value = x, d(n.value);
|
|
11293
11299
|
const X = async () => {
|
|
11294
|
-
const [
|
|
11295
|
-
|
|
11300
|
+
const [i, b] = await g3().run();
|
|
11301
|
+
b !== n.value && (n.value = b, d(n.value));
|
|
11296
11302
|
};
|
|
11297
11303
|
v = setInterval(() => {
|
|
11298
11304
|
X();
|
|
11299
11305
|
}, 72e5);
|
|
11300
|
-
const
|
|
11301
|
-
|
|
11306
|
+
const s = o("online"), c = (i) => {
|
|
11307
|
+
i === "online" && s.value === "offline" && setTimeout(() => {
|
|
11302
11308
|
X();
|
|
11303
|
-
}, 5e3),
|
|
11309
|
+
}, 5e3), s.value = (window.navigator.onLine ? "on" : "off") + "line";
|
|
11304
11310
|
};
|
|
11305
|
-
window.addEventListener("online", () =>
|
|
11311
|
+
window.addEventListener("online", () => c("online")), window.addEventListener("offline", () => c("offline"));
|
|
11306
11312
|
}), K9(() => {
|
|
11307
11313
|
v && clearInterval(v);
|
|
11308
11314
|
}), {};
|
|
@@ -11364,13 +11370,13 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11364
11370
|
// 事件等级id
|
|
11365
11371
|
timeLimit: ""
|
|
11366
11372
|
// 处置时限
|
|
11367
|
-
}), x = o(!1), X = o([]),
|
|
11373
|
+
}), x = o(!1), X = o([]), s = o([]), c = o([
|
|
11368
11374
|
{ id: 2, name: AA("时").value },
|
|
11369
11375
|
{ id: 1, name: AA("分").value },
|
|
11370
11376
|
{ id: 3, name: AA("不限").value }
|
|
11371
|
-
]),
|
|
11377
|
+
]), i = o([]), b = o(""), H = o(AA("告警对象位置").value), a = o(""), q = o([]), p = o("");
|
|
11372
11378
|
o("[]");
|
|
11373
|
-
const m = o(!0),
|
|
11379
|
+
const m = o(!0), N = o(!0), V = async (J) => {
|
|
11374
11380
|
const I = { name: "1" };
|
|
11375
11381
|
J != null && J.id && (I.spaceId = J.id);
|
|
11376
11382
|
const [g, LA] = await w8(I).run();
|
|
@@ -11378,15 +11384,15 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11378
11384
|
}, l = async (J) => {
|
|
11379
11385
|
const I = { name: J || "" }, [g, LA] = await E8(I).run();
|
|
11380
11386
|
return g ? {} : LA;
|
|
11381
|
-
}, j = o(!0), O = o(!0),
|
|
11387
|
+
}, j = o(!0), O = o(!0), R = o([]), Z = async () => {
|
|
11382
11388
|
const [J, I] = await W8().run({ pageIndex: -1, pageSize: -1 });
|
|
11383
11389
|
if (J) return {};
|
|
11384
|
-
|
|
11390
|
+
R.value = I.data.filter((g) => g.status), R.value.length > 0 && (n.value.workOrderRules = R.value[0].id);
|
|
11385
11391
|
};
|
|
11386
11392
|
OA(d, (J) => {
|
|
11387
11393
|
J || (Y(), S());
|
|
11388
11394
|
}), OA(
|
|
11389
|
-
|
|
11395
|
+
N,
|
|
11390
11396
|
(J) => {
|
|
11391
11397
|
J ? (m.value = !0, n.value.customPath = AA("选填").value) : (m.value = !1, n.value.customPath = "");
|
|
11392
11398
|
},
|
|
@@ -11394,7 +11400,7 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11394
11400
|
), OA(
|
|
11395
11401
|
O,
|
|
11396
11402
|
(J) => {
|
|
11397
|
-
J ? (n.value.reportTheme = AA("告警对象").value, j.value = !0) : (
|
|
11403
|
+
J ? (n.value.reportTheme = AA("告警对象").value, j.value = !0) : (a.value = AA("请输入").value, n.value.reportTheme = "", j.value = !1);
|
|
11398
11404
|
},
|
|
11399
11405
|
{ immediate: !0 }
|
|
11400
11406
|
);
|
|
@@ -11404,15 +11410,15 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11404
11410
|
}, Q = (J) => {
|
|
11405
11411
|
u.value.reportTheme = "";
|
|
11406
11412
|
}, h = (J, I) => {
|
|
11407
|
-
I.length > 0 && (
|
|
11413
|
+
I.length > 0 && (b.value = I[0].path), n.value.reportPosition = J, p.value = "";
|
|
11408
11414
|
}, _ = (J) => {
|
|
11409
|
-
J && (u.value.reportPosition = "",
|
|
11415
|
+
J && (u.value.reportPosition = "", b.value = ""), J ? (n.value.reportPosition = null, b.value = "", H.value = AA("告警对象位置").value) : (n.value.reportPosition = null, b.value = "", H.value = AA("请选择").value);
|
|
11410
11416
|
}, G = (J) => {
|
|
11411
|
-
J && (u.value.reportTheme = ""), J ? (n.value.reportTheme = "",
|
|
11417
|
+
J && (u.value.reportTheme = ""), J ? (n.value.reportTheme = "", a.value = AA("告警对象").value) : (n.value.reportTheme = "", a.value = AA("请输入").value);
|
|
11412
11418
|
}, Y = () => {
|
|
11413
11419
|
u.value.processTypeId = "", u.value.reason = "", u.value.treatmentPlan = "", u.value.reportPosition = "", u.value.reportTheme = "", u.value.workOrderRules = "", u.value.eventTypeId = "", u.value.eventLevelId = "", u.value.timeLimit = "";
|
|
11414
11420
|
}, S = () => {
|
|
11415
|
-
n.value.processTypeId = "confirm", n.value.reason = "", n.value.treatmentPlan = "", n.value.remarks = "", n.value.reportPosition = "", n.value.reportTheme = "", n.value.workOrderRules = null,
|
|
11421
|
+
n.value.processTypeId = "confirm", n.value.reason = "", n.value.treatmentPlan = "", n.value.remarks = "", n.value.reportPosition = "", n.value.reportTheme = "", n.value.workOrderRules = null, N.value = !0, O.value = !0, j.value = !0, n.value.reportTheme = AA("告警对象").value, b.value = "", H.value = AA("告警对象位置").value, a.value = AA("请输入").value, n.value.eventTypeId = "", n.value.eventLevelId = null, n.value.timeLimit = "", n.value.interval = 1, X.value = [], s.value = [];
|
|
11416
11422
|
}, C = (J) => {
|
|
11417
11423
|
J == "eventTypeId" && (n.value.eventLevelId = null, W()), J == "eventLevelId" && E(), J == "interval" && (u.value.timeLimit = "", n.value.interval == 3 ? (x.value = !0, n.value.timeLimit = "") : x.value = !1);
|
|
11418
11424
|
}, L = async () => {
|
|
@@ -11425,10 +11431,10 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11425
11431
|
}, [I, g] = await M8(J).run();
|
|
11426
11432
|
if (I) return {};
|
|
11427
11433
|
const LA = { 1: AA("一级").value, 2: AA("二级").value, 3: AA("三级").value, 4: AA("四级").value };
|
|
11428
|
-
|
|
11434
|
+
s.value = g.map((CA) => ({
|
|
11429
11435
|
id: `${CA}`,
|
|
11430
11436
|
name: LA[CA] ? LA[CA] : CA
|
|
11431
|
-
})), g.length && !n.value.eventLevelId && (n.value.eventLevelId =
|
|
11437
|
+
})), g.length && !n.value.eventLevelId && (n.value.eventLevelId = s.value[0].id, E());
|
|
11432
11438
|
}, E = async () => {
|
|
11433
11439
|
const J = {
|
|
11434
11440
|
eventTypeId: n.value.eventTypeId,
|
|
@@ -11450,15 +11456,15 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11450
11456
|
P.value = !1;
|
|
11451
11457
|
return;
|
|
11452
11458
|
}
|
|
11453
|
-
P.value = !1,
|
|
11454
|
-
for (let LA = 0; LA <
|
|
11455
|
-
|
|
11459
|
+
P.value = !1, i.value = g;
|
|
11460
|
+
for (let LA = 0; LA < i.value.length; LA++)
|
|
11461
|
+
i.value[LA].id === "createorder" && Z();
|
|
11456
11462
|
}, dA = () => {
|
|
11457
11463
|
let J = !0;
|
|
11458
11464
|
if (n.value.processTypeId == "dealwith")
|
|
11459
11465
|
n.value.reason.trim() || (J = !1, u.value.reason = AA("必填,最多50个字符/汉字").value), n.value.treatmentPlan.trim() || (J = !1, u.value.treatmentPlan = AA("必填,最多50个字符/汉字").value);
|
|
11460
11466
|
else if (n.value.processTypeId == "createorder")
|
|
11461
|
-
|
|
11467
|
+
N.value ? u.value.reportPosition = "" : !n.value.reportPosition && !n.value.customPath ? (J = !1, u.value.reportPosition = AA("必填").value) : u.value.reportPosition = "", O.value || n.value.reportTheme ? u.value.reportTheme = "" : (J = !1, u.value.reportTheme = AA("必填,最多20个汉字/字符").value), n.value.workOrderRules ? u.value.workOrderRules = "" : (J = !1, u.value.workOrderRules = AA("必填").value);
|
|
11462
11468
|
else if (n.value.processTypeId == "createcontingency") {
|
|
11463
11469
|
const I = /^[1-9][0-9]{0,2}$/;
|
|
11464
11470
|
n.value.eventTypeId || (J = !1, u.value.eventTypeId = AA("必选").value), n.value.eventLevelId || (J = !1, u.value.eventLevelId = AA("必选").value), n.value.interval != 3 && !I.test(n.value.timeLimit) && (J = !1, u.value.timeLimit = AA("必填,请输入1~999之间的正整数").value);
|
|
@@ -11478,7 +11484,7 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11478
11484
|
processTypeId: n.value.processTypeId
|
|
11479
11485
|
//处理类型id
|
|
11480
11486
|
};
|
|
11481
|
-
n.value.processTypeId === "createorder" ? (J.path =
|
|
11487
|
+
n.value.processTypeId === "createorder" ? (J.path = N.value ? "" : n.value.customPath, J.topic = O.value ? "" : n.value.reportTheme, J.spaceId = N.value ? "" : n.value.reportPosition ?? "", J.orderId = n.value.workOrderRules) : n.value.processTypeId === "createcontingency" ? (J.eventTypeId = n.value.eventTypeId, J.eventLevelId = n.value.eventLevelId, J.timeLimit = n.value.interval == 3 ? null : Number(n.value.timeLimit), J.interval = n.value.interval) : (J.reason = n.value.reason, J.treatmentPlan = n.value.treatmentPlan, J.remarks = n.value.remarks), P.value = !0, r("emitFn", "startHandle");
|
|
11482
11488
|
const [I, g] = await L8(J, {
|
|
11483
11489
|
params: {
|
|
11484
11490
|
projectId: v.projectId
|
|
@@ -11589,7 +11595,7 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11589
11595
|
type: "select",
|
|
11590
11596
|
modelValue: n.value.processTypeId,
|
|
11591
11597
|
"onUpdate:modelValue": I[0] || (I[0] = (g) => n.value.processTypeId = g),
|
|
11592
|
-
options:
|
|
11598
|
+
options: i.value,
|
|
11593
11599
|
col: 1,
|
|
11594
11600
|
optionsLabelKey: "name",
|
|
11595
11601
|
optionsValueKey: "id",
|
|
@@ -11659,8 +11665,8 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11659
11665
|
props: { disabled: "_disabled", label: "name" },
|
|
11660
11666
|
modelValue: n.value.reportPosition,
|
|
11661
11667
|
"onUpdate:modelValue": I[8] || (I[8] = (g) => n.value.reportPosition = g),
|
|
11662
|
-
path:
|
|
11663
|
-
"onUpdate:path": I[9] || (I[9] = (g) =>
|
|
11668
|
+
path: b.value,
|
|
11669
|
+
"onUpdate:path": I[9] || (I[9] = (g) => b.value = g),
|
|
11664
11670
|
keyword: p.value,
|
|
11665
11671
|
"onUpdate:keyword": I[10] || (I[10] = (g) => p.value = g),
|
|
11666
11672
|
showFullPath: !0,
|
|
@@ -11683,8 +11689,8 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11683
11689
|
}, null, 8, ["modelValue", "placeholder", "disabled"])
|
|
11684
11690
|
]),
|
|
11685
11691
|
B(D(q7), {
|
|
11686
|
-
modelValue:
|
|
11687
|
-
"onUpdate:modelValue": I[12] || (I[12] = (g) =>
|
|
11692
|
+
modelValue: N.value,
|
|
11693
|
+
"onUpdate:modelValue": I[12] || (I[12] = (g) => N.value = g),
|
|
11688
11694
|
checkboxType: "default",
|
|
11689
11695
|
onChange: _,
|
|
11690
11696
|
size: "middle"
|
|
@@ -11721,7 +11727,7 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11721
11727
|
disabled: j.value,
|
|
11722
11728
|
modelValue: n.value.reportTheme,
|
|
11723
11729
|
"onUpdate:modelValue": I[14] || (I[14] = (g) => n.value.reportTheme = g),
|
|
11724
|
-
placeholder:
|
|
11730
|
+
placeholder: a.value,
|
|
11725
11731
|
onChange: Q
|
|
11726
11732
|
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
11727
11733
|
B(D(q7), {
|
|
@@ -11755,7 +11761,7 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11755
11761
|
"onUpdate:modelValue": I[17] || (I[17] = (g) => n.value.workOrderRules = g),
|
|
11756
11762
|
error: u.value.workOrderRules,
|
|
11757
11763
|
"onUpdate:error": I[18] || (I[18] = (g) => u.value.workOrderRules = g),
|
|
11758
|
-
options:
|
|
11764
|
+
options: R.value,
|
|
11759
11765
|
col: 1,
|
|
11760
11766
|
optionsLabelKey: "name",
|
|
11761
11767
|
optionsValueKey: "id",
|
|
@@ -11791,7 +11797,7 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11791
11797
|
"onUpdate:modelValue": I[22] || (I[22] = (g) => n.value.eventLevelId = g),
|
|
11792
11798
|
error: u.value.eventLevelId,
|
|
11793
11799
|
"onUpdate:error": I[23] || (I[23] = (g) => u.value.eventLevelId = g),
|
|
11794
|
-
options:
|
|
11800
|
+
options: s.value,
|
|
11795
11801
|
col: 1,
|
|
11796
11802
|
optionsLabelKey: "name",
|
|
11797
11803
|
optionsValueKey: "id",
|
|
@@ -11826,7 +11832,7 @@ const D8 = oA(`/api/tool/event-bus/${of}/`), xe = D8.post("/publish"), V8 = xf.g
|
|
|
11826
11832
|
value: "id",
|
|
11827
11833
|
label: "name"
|
|
11828
11834
|
},
|
|
11829
|
-
options:
|
|
11835
|
+
options: c.value,
|
|
11830
11836
|
"border-type": "underline",
|
|
11831
11837
|
size: "small",
|
|
11832
11838
|
"get-popup-container": T,
|
|
@@ -12048,13 +12054,13 @@ const cX = () => {
|
|
|
12048
12054
|
j.push({ alarmId: l.recordId }), r.value = j, (O = f.value) == null || O.open();
|
|
12049
12055
|
}, { entryApp: x } = Xf.hooks.useEntryApp(), X = (l) => {
|
|
12050
12056
|
C3(l.equipmentCode, l.equipmentPanelCode);
|
|
12051
|
-
}, { handleAlarmVue:
|
|
12057
|
+
}, { handleAlarmVue: s } = h8(f, r), c = async () => {
|
|
12052
12058
|
var O;
|
|
12053
|
-
const j = (((O = uA().appcategorys) == null ? void 0 : O.map((
|
|
12059
|
+
const j = (((O = uA().appcategorys) == null ? void 0 : O.map((R) => R.apps).flat()) ?? []).find((R) => R.code === "alarm");
|
|
12054
12060
|
j && x({ microApp: j, menuPath: `/${j.routeUrl}/realTimeAlarm` });
|
|
12055
|
-
},
|
|
12056
|
-
if (
|
|
12057
|
-
H(
|
|
12061
|
+
}, i = [], b = (l) => {
|
|
12062
|
+
if (i.push(l), P.value.length < 2) {
|
|
12063
|
+
H(i[0]), i.shift();
|
|
12058
12064
|
return;
|
|
12059
12065
|
}
|
|
12060
12066
|
}, H = (l) => {
|
|
@@ -12073,19 +12079,19 @@ const cX = () => {
|
|
|
12073
12079
|
}),
|
|
12074
12080
|
duration: 5,
|
|
12075
12081
|
onClick: () => {
|
|
12076
|
-
|
|
12082
|
+
c();
|
|
12077
12083
|
},
|
|
12078
12084
|
onClose: () => {
|
|
12079
12085
|
setTimeout(() => {
|
|
12080
|
-
const O = P.value.findIndex((
|
|
12081
|
-
if (O >= 0 && P.value.splice(O, 1), P.value.length < 2 &&
|
|
12082
|
-
H(
|
|
12086
|
+
const O = P.value.findIndex((R) => R == j);
|
|
12087
|
+
if (O >= 0 && P.value.splice(O, 1), P.value.length < 2 && i.length) {
|
|
12088
|
+
H(i[0]), i.shift();
|
|
12083
12089
|
return;
|
|
12084
12090
|
}
|
|
12085
12091
|
}, 300);
|
|
12086
12092
|
}
|
|
12087
|
-
}), P.value.includes(j) || P.value.push(j),
|
|
12088
|
-
},
|
|
12093
|
+
}), P.value.includes(j) || P.value.push(j), a(l);
|
|
12094
|
+
}, a = (l) => {
|
|
12089
12095
|
if (l) {
|
|
12090
12096
|
if (!d.value) {
|
|
12091
12097
|
p();
|
|
@@ -12108,7 +12114,7 @@ const cX = () => {
|
|
|
12108
12114
|
v.value.onended = function() {
|
|
12109
12115
|
n.value.loopCount = n.value.loopCount + 1, n.value.loopTotalCount && n.value.loopTotalCount && (n.value.loopCount == n.value.loopTotalCount ? (n.value.playPath = "", n.value.isplay = !1, n.value.playId = "", n.value.loopTotalCount = 0, n.value.loopCount = 0, n.value.playLine = null) : v.value.play());
|
|
12110
12116
|
};
|
|
12111
|
-
},
|
|
12117
|
+
}, N = async () => {
|
|
12112
12118
|
const [l, j] = await y8().run();
|
|
12113
12119
|
l || (d.value = j.isEnable);
|
|
12114
12120
|
};
|
|
@@ -12117,26 +12123,26 @@ const cX = () => {
|
|
|
12117
12123
|
alarmCount: A,
|
|
12118
12124
|
audioObj: n,
|
|
12119
12125
|
audioAlarmRef: v,
|
|
12120
|
-
handleAlarmVue:
|
|
12126
|
+
handleAlarmVue: s,
|
|
12121
12127
|
creatAlarmSocket: async () => {
|
|
12122
|
-
|
|
12128
|
+
N();
|
|
12123
12129
|
const [l, j] = await Z8().run({
|
|
12124
12130
|
code: "alarm",
|
|
12125
12131
|
showBtn: !0
|
|
12126
12132
|
});
|
|
12127
12133
|
if (l || !j || !j.length) return;
|
|
12128
12134
|
let O = !1;
|
|
12129
|
-
j.forEach((
|
|
12130
|
-
(
|
|
12135
|
+
j.forEach((R) => {
|
|
12136
|
+
(R.code === "alarm.realTimeAlarm" || R.originalCode === "alarm.realTimeAlarm") && (O = !0, R.children && R.children.length ? t.value = R.children.findIndex((Z) => Z.code == "alarm.realTimeAlarm.handle") >= 0 : t.value = !1);
|
|
12131
12137
|
}), O && (e.value = new lf({
|
|
12132
12138
|
url: "/api/alarm/socket/v1/record/subscribe",
|
|
12133
12139
|
reconnectWhenClose: !0,
|
|
12134
12140
|
opened: () => {
|
|
12135
|
-
const
|
|
12136
|
-
|
|
12141
|
+
const R = YA().id;
|
|
12142
|
+
R && e.value.send(R);
|
|
12137
12143
|
},
|
|
12138
|
-
message: async (
|
|
12139
|
-
NA.sendMessageToMicroApp("enterpriseadmin/alarm", "alarm:message", { alarmMessage:
|
|
12144
|
+
message: async (R) => {
|
|
12145
|
+
NA.sendMessageToMicroApp("enterpriseadmin/alarm", "alarm:message", { alarmMessage: R }), window.self === window.top && (R.messageType === "ADD" && (A.value = A.value + 1, R.coverId || b(R)), R.messageType === "DELETE" && (A.value = A.value - 1, n.value.playId == R.recordId && p()));
|
|
12140
12146
|
}
|
|
12141
12147
|
}));
|
|
12142
12148
|
}
|
|
@@ -12186,11 +12192,11 @@ const cX = () => {
|
|
|
12186
12192
|
},
|
|
12187
12193
|
{ immediate: !0 }
|
|
12188
12194
|
);
|
|
12189
|
-
const { initNextTick: d } = E6(), { loading: n, pageKey: u, innerPage: x, commandList: X, initNextTick:
|
|
12190
|
-
G6(x, d,
|
|
12191
|
-
const { $changePwd:
|
|
12195
|
+
const { initNextTick: d } = E6(), { loading: n, pageKey: u, innerPage: x, commandList: X, initNextTick: s } = M6(d);
|
|
12196
|
+
G6(x, d, s), Y6(), k6(), S6();
|
|
12197
|
+
const { $changePwd: c, $personSetDialog: i } = U6(), { $aiPanel: b, toApp: H } = f1(), { changeEnterprisesVisible: a, userId: q, tenantId: p, changeEnterprise: m } = Fv();
|
|
12192
12198
|
B6();
|
|
12193
|
-
const { fontColor:
|
|
12199
|
+
const { fontColor: N, backgroudColor: V, borderColor: l } = Q6();
|
|
12194
12200
|
return e1(), v1(X), n1(), P1(), w1(), R8(), (j, O) => (fA(), mA("div", sX, [
|
|
12195
12201
|
nA(` <button @click="test(0)">test</button>\r
|
|
12196
12202
|
<button style="margin-left: 5px" @click="test(1)">test2</button> `),
|
|
@@ -12202,13 +12208,13 @@ const cX = () => {
|
|
|
12202
12208
|
showLayout: r.value,
|
|
12203
12209
|
excludeRoutes: P.value,
|
|
12204
12210
|
routeKeepAliveVisible: t.value,
|
|
12205
|
-
tabsAttr: { fontColor: D(
|
|
12211
|
+
tabsAttr: { fontColor: D(N), backgroudColor: D(V), borderColor: D(l) },
|
|
12206
12212
|
menuAttr: z.value
|
|
12207
12213
|
}, xn({
|
|
12208
12214
|
_: 2
|
|
12209
12215
|
/* DYNAMIC */
|
|
12210
12216
|
}, [
|
|
12211
|
-
We(j.$slots, (
|
|
12217
|
+
We(j.$slots, (R, Z, T) => ({
|
|
12212
12218
|
name: Z,
|
|
12213
12219
|
fn: U(() => [
|
|
12214
12220
|
P9(j.$slots, Z, {}, void 0, !0)
|
|
@@ -12221,8 +12227,8 @@ const cX = () => {
|
|
|
12221
12227
|
}, 8, ["platformInitNextTick"]),
|
|
12222
12228
|
nA(" 切换租户 "),
|
|
12223
12229
|
B(D(on), {
|
|
12224
|
-
visible: D(
|
|
12225
|
-
"onUpdate:visible": O[0] || (O[0] = (
|
|
12230
|
+
visible: D(a),
|
|
12231
|
+
"onUpdate:visible": O[0] || (O[0] = (R) => FA(a) ? a.value = R : null),
|
|
12226
12232
|
userId: D(q),
|
|
12227
12233
|
tenantId: D(p),
|
|
12228
12234
|
onConfirm: D(m)
|
|
@@ -12232,7 +12238,7 @@ const cX = () => {
|
|
|
12232
12238
|
D(Tn),
|
|
12233
12239
|
{
|
|
12234
12240
|
ref_key: "$changePwd",
|
|
12235
|
-
ref:
|
|
12241
|
+
ref: c
|
|
12236
12242
|
},
|
|
12237
12243
|
null,
|
|
12238
12244
|
512
|
|
@@ -12243,7 +12249,7 @@ const cX = () => {
|
|
|
12243
12249
|
D(T6),
|
|
12244
12250
|
{
|
|
12245
12251
|
ref_key: "$personSetDialog",
|
|
12246
|
-
ref:
|
|
12252
|
+
ref: i
|
|
12247
12253
|
},
|
|
12248
12254
|
null,
|
|
12249
12255
|
512
|
|
@@ -12254,7 +12260,7 @@ const cX = () => {
|
|
|
12254
12260
|
platformInitNextTick: D(d),
|
|
12255
12261
|
onToApp: D(H),
|
|
12256
12262
|
ref_key: "$aiPanel",
|
|
12257
|
-
ref:
|
|
12263
|
+
ref: b
|
|
12258
12264
|
}, null, 8, ["platformInitNextTick", "onToApp"]),
|
|
12259
12265
|
nA(" 告警 "),
|
|
12260
12266
|
B(D(iX))
|
|
@@ -12430,11 +12436,11 @@ o("@das-fed/web");
|
|
|
12430
12436
|
const xX = [
|
|
12431
12437
|
{
|
|
12432
12438
|
path: RA,
|
|
12433
|
-
component: () => import("./index-
|
|
12439
|
+
component: () => import("./index-4nULXb-V.js")
|
|
12434
12440
|
},
|
|
12435
12441
|
{
|
|
12436
12442
|
path: fv,
|
|
12437
|
-
component: () => import("./index-
|
|
12443
|
+
component: () => import("./index-PcZYYf9m.js")
|
|
12438
12444
|
}
|
|
12439
12445
|
], O2 = {
|
|
12440
12446
|
routes: xX,
|