@das-fed/upf-web 6.4.0-dev.217 → 6.4.0-dev.219
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/es5.js +1268 -1264
- package/{index-Bg6PM02l.js → index-BP-OhkfR.js} +1 -1
- package/{index-Duoum6s2.js → index-DWDzVyzH.js} +732 -731
- package/index-DWDzVyzH.js.gz +0 -0
- package/{packages/main-app-framework/index-DLOeR4lo.js → index-DwuvutgL.js} +1 -1
- package/index-DwuvutgL.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/main-app-framework/es5.js +1316 -1312
- package/packages/main-app-framework/{index-D2I3UnWM.js → index-7BUmPh7i.js} +1 -1
- package/{index-DsbX1-Oq.js → packages/main-app-framework/index-BP8gHC_g.js} +1 -1
- package/packages/main-app-framework/index-BP8gHC_g.js.gz +0 -0
- package/packages/main-app-framework/{index-D2D_f0hd.js → index-CUuJCTjN.js} +770 -769
- package/packages/main-app-framework/index-CUuJCTjN.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/index-DsbX1-Oq.js.gz +0 -0
- package/index-Duoum6s2.js.gz +0 -0
- package/packages/main-app-framework/index-D2D_f0hd.js.gz +0 -0
- package/packages/main-app-framework/index-DLOeR4lo.js.gz +0 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { defineComponent as we, ref as M, onUnmounted as X0, openBlock as
|
|
1
|
+
import { defineComponent as we, ref as M, onUnmounted as X0, openBlock as J, createElementBlock as Se, createElementVNode as K, createVNode as Z, unref as F, createTextVNode as ze, toDisplayString as pe, createCommentVNode as oe, watch as ke, createBlock as se, computed as je, mergeProps as Q0, withCtx as X, renderSlot as Xe, getCurrentScope as Z0, onScopeDispose as Y0, getCurrentInstance as J0, onMounted as lt, nextTick as gt, reactive as ba, Fragment as _t, renderList as fn, withDirectives as wa, h as Ce, render as Tt, onBeforeUnmount as Nt, vShow as es, useCssVars as ts, normalizeClass as rs, withModifiers as ve, toRefs as ns, normalizeStyle as Qn, createSlots as os } from "vue";
|
|
2
2
|
import { DasWebLayout as as, DasWebNav as ss, DasWebMenu as is, DasWebTabs as cs, layout as Q, layoutData as Ea } from "@das-fed/upf-web/packages/layout/index";
|
|
3
|
-
import { useRoute as
|
|
3
|
+
import { useRoute as pn, useRouter as rr } from "vue-router";
|
|
4
4
|
import { microFrontend as be } from "@das-fed/upf-web/packages/micro-frontend/index";
|
|
5
5
|
import { i18n as V, t as ne, currentLang as Aa, setI18nRule as ls } from "@das-fed/upf-web/packages/i18n/index";
|
|
6
6
|
import { DasIconWarning as us } from "@das-fed/upf-ui/packages/icons/warning/index";
|
|
7
7
|
import { DasIconClose2 as ds } from "@das-fed/upf-ui/packages/icons/close-2/index";
|
|
8
|
-
import { getSubApps as de, getTabInfo as De, getToken as
|
|
8
|
+
import { getSubApps as de, getTabInfo as De, getToken as Ye, getTenantInfo as Ba, getProjectInfo as Ze, getPersonalInfo as hn, getUserInfo as ka, getMenus as en } from "@das-fed/upf-utils/common-info";
|
|
9
9
|
import { pureImageSrc as fs } from "@das-fed/upf-utils/pure-image-src";
|
|
10
10
|
import { DasNotification as Qt } from "@das-fed/upf-ui/packages/components/notification/index";
|
|
11
|
-
import { flatTree as Re, filterTreeArray as ps, setBrowseTitle as hs, updateFavIcon as xs, dateFormat as vs, objEqual as
|
|
11
|
+
import { flatTree as Re, filterTreeArray as ps, setBrowseTitle as hs, updateFavIcon as xs, dateFormat as vs, objEqual as Zn, setShowWatermark as tn, setShowLayout as rn, getUrlParams as gs, isEmpty as ms, withToken as _s } from "@das-fed/upf-utils/common-tools";
|
|
12
12
|
import { setProcessEngineToken as Da, setProcessEngineProject as Cs } from "@das-fed/upf-utils/process-engine-info";
|
|
13
|
-
import { oauthServer as Sa, justauth as
|
|
14
|
-
import { createService as
|
|
13
|
+
import { oauthServer as Sa, justauth as xn, enterpriseright as vn, iotModules as ys, systemConfiguration as nr, portal as Fa } from "@das-fed/upf-utils/api-services/modules";
|
|
14
|
+
import { createService as Je } from "@das-fed/upf-utils/create-api-service";
|
|
15
15
|
import { getConfig as wt } from "@das-fed/upf-utils/config";
|
|
16
16
|
import { login as Ia, getTokenParams as Ta, real_uri as Pa, tokenStorage as bs } from "@das-fed/upf-utils/create-api-service/sso";
|
|
17
17
|
import { getAccessToken as ws, removeAccessToken as Es } from "@das-fed/upf-utils/token-tools";
|
|
18
|
-
import { DasSpin as
|
|
19
|
-
import { DasDialog as
|
|
18
|
+
import { DasSpin as gn } from "@das-fed/upf-ui/packages/components/spin/index";
|
|
19
|
+
import { DasDialog as mn } from "@das-fed/upf-ui/packages/components/dialog/index";
|
|
20
20
|
import { DasButton as mt } from "@das-fed/upf-ui/packages/components/button/index";
|
|
21
21
|
import { vDasTooltip as As } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
|
|
22
22
|
import { setPersonalInfo as Bs } from "@das-fed/upf-utils/common-info/set-personal-info";
|
|
23
23
|
import { DasChangePwdRef as ks } from "@das-fed/upf-ui/packages/business-components/change-pwd/index";
|
|
24
|
-
import { systemConfiguration as Ds, enterpriseright as
|
|
24
|
+
import { systemConfiguration as Ds, enterpriseright as _n, createService as Et, spaceManage as Ra } from "@das-fed/upf-utils/api-services";
|
|
25
25
|
import { setThemeRule as Ss } from "@das-fed/upf-web/packages/theme/index";
|
|
26
|
-
import { bus as $a, reportRouter as
|
|
27
|
-
import { vAuth as
|
|
28
|
-
import
|
|
26
|
+
import { bus as $a, reportRouter as hr } from "@das-fed/mframe";
|
|
27
|
+
import { vAuth as Yn } from "@das-fed/upf-utils/directive";
|
|
28
|
+
import nn from "dayjs";
|
|
29
29
|
import { devicePanelShow as za, closeDevicePanel as Fs, alarmDevicePanelShow as Is, closeAlarmPanel as Ts } from "@das-fed/upf-ui/packages/business-components/device-panel/index";
|
|
30
30
|
import { DasIconWarningFace as Ps } from "@das-fed/upf-ui/packages/icons/warning-face/index";
|
|
31
|
-
import { socketService as
|
|
31
|
+
import { socketService as Cn } from "@das-fed/upf-utils/webSocket-service";
|
|
32
32
|
import { userInfoNextTick as Rs, tokenNextTick as or } from "@das-fed/upf-utils/nextTiken";
|
|
33
33
|
import { mainAppFramework as Zt } from "@das-fed/upf-web/packages/main-app-framework/index";
|
|
34
34
|
import { DasAutoRegisterIcon as Oa, DasIcon as vt } from "@das-fed/upf-ui/packages/components/icon/index";
|
|
@@ -37,7 +37,7 @@ import { DasLivePlayer as $s } from "@das-fed/upf-ui/packages/components/live-pl
|
|
|
37
37
|
import { DasWatermark as zs } from "@das-fed/upf-ui/packages/components/watermark/index";
|
|
38
38
|
import { DasSelect as Os } from "@das-fed/upf-ui/packages/components/select/index";
|
|
39
39
|
import { DasTreeSelect as Ms } from "@das-fed/upf-ui/packages/components/tree-select/index";
|
|
40
|
-
import { DasInput as
|
|
40
|
+
import { DasInput as Jn } from "@das-fed/upf-ui/packages/components/input/index";
|
|
41
41
|
import { DasCheckbox as eo } from "@das-fed/upf-ui/packages/components/checkbox/index";
|
|
42
42
|
import { DasForm as Ns } from "@das-fed/upf-ui/packages/components/form/index";
|
|
43
43
|
import { DasFormItem as Ne } from "@das-fed/upf-ui/packages/components/form-item/index";
|
|
@@ -61,7 +61,7 @@ const Rt = "/home", qe = "/application", Ls = [
|
|
|
61
61
|
});
|
|
62
62
|
return X0(() => {
|
|
63
63
|
u();
|
|
64
|
-
}), (o, c) => n.value ? oe("v-if", !0) : (
|
|
64
|
+
}), (o, c) => n.value ? oe("v-if", !0) : (J(), Se("div", Hs, [
|
|
65
65
|
K("div", Us, [
|
|
66
66
|
Z(F(us), {
|
|
67
67
|
class: "icons",
|
|
@@ -88,14 +88,14 @@ const Rt = "/home", qe = "/application", Ls = [
|
|
|
88
88
|
}, qs = /* @__PURE__ */ Le(js, [["__scopeId", "data-v-cb7c6db7"]]), Ws = /* @__PURE__ */ we({
|
|
89
89
|
__name: "index",
|
|
90
90
|
setup(r) {
|
|
91
|
-
const e =
|
|
91
|
+
const e = pn(), t = M("");
|
|
92
92
|
return ke(
|
|
93
93
|
() => e.path,
|
|
94
94
|
(n) => {
|
|
95
95
|
t.value = n;
|
|
96
96
|
},
|
|
97
97
|
{ immediate: !0 }
|
|
98
|
-
), (n, a) => t.value.startsWith("/iot/iot") ? (
|
|
98
|
+
), (n, a) => t.value.startsWith("/iot/iot") ? (J(), se(qs, { key: 0 })) : oe("v-if", !0);
|
|
99
99
|
}
|
|
100
100
|
}), Vs = /* @__PURE__ */ we({
|
|
101
101
|
__name: "base-layout",
|
|
@@ -123,7 +123,7 @@ const Rt = "/home", qe = "/application", Ls = [
|
|
|
123
123
|
excludeRoutes: e.excludeRoutes,
|
|
124
124
|
routeKeepAliveVisible: e.routeKeepAliveVisible
|
|
125
125
|
}));
|
|
126
|
-
return (a, s) => (
|
|
126
|
+
return (a, s) => (J(), se(F(as), Q0({
|
|
127
127
|
pageKey: a.pageKey,
|
|
128
128
|
"transition-config": t.value
|
|
129
129
|
}, n.value), {
|
|
@@ -153,9 +153,9 @@ const Rt = "/home", qe = "/application", Ls = [
|
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
155
|
var to;
|
|
156
|
-
const
|
|
156
|
+
const yn = typeof window < "u", Ks = (r) => typeof r == "string", Gs = () => {
|
|
157
157
|
};
|
|
158
|
-
|
|
158
|
+
yn && ((to = window == null ? void 0 : window.navigator) != null && to.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
159
159
|
function Na(r) {
|
|
160
160
|
return typeof r == "function" ? r() : F(r);
|
|
161
161
|
}
|
|
@@ -163,18 +163,18 @@ function Xs(r) {
|
|
|
163
163
|
return r;
|
|
164
164
|
}
|
|
165
165
|
function La(r) {
|
|
166
|
-
return Z0() ? (
|
|
166
|
+
return Z0() ? (Y0(r), !0) : !1;
|
|
167
167
|
}
|
|
168
168
|
function Qs(r, e = !0) {
|
|
169
|
-
|
|
169
|
+
J0() ? lt(r) : e ? r() : gt(r);
|
|
170
170
|
}
|
|
171
171
|
function Ha(r) {
|
|
172
172
|
var e;
|
|
173
173
|
const t = Na(r);
|
|
174
174
|
return (e = t == null ? void 0 : t.$el) != null ? e : t;
|
|
175
175
|
}
|
|
176
|
-
const Zs =
|
|
177
|
-
function
|
|
176
|
+
const Zs = yn ? window : void 0, Ys = yn ? window.document : void 0;
|
|
177
|
+
function Js(...r) {
|
|
178
178
|
let e, t, n, a;
|
|
179
179
|
if (Ks(r[0]) || Array.isArray(r[0]) ? ([t, n, a] = r, e = Zs) : [e, t, n, a] = r, !e)
|
|
180
180
|
return Gs;
|
|
@@ -237,7 +237,7 @@ const oo = [
|
|
|
237
237
|
]
|
|
238
238
|
];
|
|
239
239
|
function Lt(r, e = {}) {
|
|
240
|
-
const { document: t =
|
|
240
|
+
const { document: t = Ys, autoExit: n = !1 } = e, a = r || (t == null ? void 0 : t.querySelector("html")), s = M(!1);
|
|
241
241
|
let i = oo[0];
|
|
242
242
|
const l = ei(() => {
|
|
243
243
|
if (t) {
|
|
@@ -261,7 +261,7 @@ function Lt(r, e = {}) {
|
|
|
261
261
|
async function p() {
|
|
262
262
|
s.value ? await d() : await h();
|
|
263
263
|
}
|
|
264
|
-
return t &&
|
|
264
|
+
return t && Js(t, _, () => {
|
|
265
265
|
s.value = !!(t != null && t[c]);
|
|
266
266
|
}, !1), n && La(d), {
|
|
267
267
|
isSupported: l,
|
|
@@ -362,7 +362,7 @@ const si = Ds.get("watermark"), ii = /* @__PURE__ */ we({
|
|
|
362
362
|
return o.value = !1, x;
|
|
363
363
|
};
|
|
364
364
|
d();
|
|
365
|
-
const h = rr(), p =
|
|
365
|
+
const h = rr(), p = pn();
|
|
366
366
|
return ke(
|
|
367
367
|
() => h.currentRoute.value,
|
|
368
368
|
(g) => {
|
|
@@ -378,7 +378,7 @@ const si = Ds.get("watermark"), ii = /* @__PURE__ */ we({
|
|
|
378
378
|
const g = !!((m = t.value) != null && m.pageSwith);
|
|
379
379
|
let x = ((f = p.query) == null ? void 0 : f.showWatermark) ?? !0;
|
|
380
380
|
x === "false" && (x = !1), _(!!(g && x));
|
|
381
|
-
}), (g, x) => (
|
|
381
|
+
}), (g, x) => (J(), se(F(zs), {
|
|
382
382
|
class: "watermark",
|
|
383
383
|
font: l,
|
|
384
384
|
zIndex: 2147483647,
|
|
@@ -407,7 +407,7 @@ const si = Ds.get("watermark"), ii = /* @__PURE__ */ we({
|
|
|
407
407
|
},
|
|
408
408
|
setup(r) {
|
|
409
409
|
const e = M(!0);
|
|
410
|
-
return (t, n) => (
|
|
410
|
+
return (t, n) => (J(), se(F(mn), {
|
|
411
411
|
modelValue: e.value,
|
|
412
412
|
"onUpdate:modelValue": n[0] || (n[0] = (a) => e.value = a),
|
|
413
413
|
type: "feedback",
|
|
@@ -442,7 +442,7 @@ const si = Ds.get("watermark"), ii = /* @__PURE__ */ we({
|
|
|
442
442
|
class: "content",
|
|
443
443
|
innerHTML: t.content
|
|
444
444
|
}, null, 8, ui),
|
|
445
|
-
t.desc && t.desc.length ? (
|
|
445
|
+
t.desc && t.desc.length ? (J(), Se(
|
|
446
446
|
_t,
|
|
447
447
|
{ key: 0 },
|
|
448
448
|
[
|
|
@@ -453,10 +453,10 @@ const si = Ds.get("watermark"), ii = /* @__PURE__ */ we({
|
|
|
453
453
|
-1
|
|
454
454
|
/* CACHED */
|
|
455
455
|
)),
|
|
456
|
-
(
|
|
456
|
+
(J(!0), Se(
|
|
457
457
|
_t,
|
|
458
458
|
null,
|
|
459
|
-
|
|
459
|
+
fn(t.desc, (a, s) => wa((J(), Se("div", {
|
|
460
460
|
key: s,
|
|
461
461
|
class: "desc-item"
|
|
462
462
|
}, [
|
|
@@ -480,7 +480,7 @@ const si = Ds.get("watermark"), ii = /* @__PURE__ */ we({
|
|
|
480
480
|
/* STABLE */
|
|
481
481
|
}, 8, ["modelValue", "width", "height", "title", "onClosed"]));
|
|
482
482
|
}
|
|
483
|
-
}), pi = /* @__PURE__ */ Le(fi, [["__scopeId", "data-v-75a4552b"]]),
|
|
483
|
+
}), pi = /* @__PURE__ */ Le(fi, [["__scopeId", "data-v-75a4552b"]]), Yt = ({ title: r = "", content: e = "", desc: t = [] }) => new Promise((n) => {
|
|
484
484
|
const a = document.createElement("div");
|
|
485
485
|
a.setAttribute("id", "entry-app-dialog"), document.body.appendChild(a);
|
|
486
486
|
const i = Ce(pi, { title: r, content: e, desc: t, closeCallback: () => {
|
|
@@ -490,8 +490,6 @@ const si = Ds.get("watermark"), ii = /* @__PURE__ */ we({
|
|
|
490
490
|
});
|
|
491
491
|
Ss(li);
|
|
492
492
|
const hi = (r = {}) => {
|
|
493
|
-
sessionStorage.setItem("userInfo", JSON.stringify(r));
|
|
494
|
-
}, xi = (r = {}) => {
|
|
495
493
|
var t;
|
|
496
494
|
sessionStorage.setItem("tenantInfo", JSON.stringify(r));
|
|
497
495
|
const e = {
|
|
@@ -501,9 +499,9 @@ const hi = (r = {}) => {
|
|
|
501
499
|
tenantId: ((t = r == null ? void 0 : r.tenant) == null ? void 0 : t.id) ?? ""
|
|
502
500
|
};
|
|
503
501
|
sessionStorage.setItem("hotentUserInfo", JSON.stringify(e));
|
|
504
|
-
},
|
|
502
|
+
}, xi = (r = "") => {
|
|
505
503
|
localStorage.setItem("fav-icon", r);
|
|
506
|
-
},
|
|
504
|
+
}, vi = () => {
|
|
507
505
|
sessionStorage.removeItem("projectInfo"), sessionStorage.removeItem("project");
|
|
508
506
|
}, Ie = (r) => {
|
|
509
507
|
let e = De();
|
|
@@ -535,7 +533,7 @@ const hi = (r = {}) => {
|
|
|
535
533
|
} else
|
|
536
534
|
Object.assign(e, { [t.key]: t.value });
|
|
537
535
|
}), sessionStorage.setItem("subApps", JSON.stringify(e));
|
|
538
|
-
},
|
|
536
|
+
}, bn = () => {
|
|
539
537
|
Qe([
|
|
540
538
|
{ key: "currentSubApp", value: {} },
|
|
541
539
|
{ key: "currentSubAppCode", value: "" },
|
|
@@ -548,7 +546,7 @@ const hi = (r = {}) => {
|
|
|
548
546
|
for (const t in e.subAppList)
|
|
549
547
|
e.subAppList[t].code === e.currentSubAppCode && (e.subAppList[t].currentMenuCode = r);
|
|
550
548
|
sessionStorage.setItem("subApps", JSON.stringify(e));
|
|
551
|
-
},
|
|
549
|
+
}, gi = (r, e) => {
|
|
552
550
|
const t = "permission-btn", n = JSON.parse(sessionStorage.getItem(t) || "{}") || {}, a = r != null && r.length ? r.filter((u) => u.routeUrl) : [], s = r != null && r.length ? r.filter((u) => !u.routeUrl && u.children).map((u) => u.children).flat() : [], i = [...a, ...s], l = {};
|
|
553
551
|
return i.forEach((u) => {
|
|
554
552
|
var d;
|
|
@@ -578,17 +576,17 @@ const hi = (r = {}) => {
|
|
|
578
576
|
l[o].push(g), c && o !== c && (l["origin-auth"] || (l["origin-auth"] = {}), l["origin-auth"][c] || (l["origin-auth"][c] = []), l["origin-auth"][c].push(g));
|
|
579
577
|
}));
|
|
580
578
|
}), n[e] = l, sessionStorage.setItem(t, JSON.stringify(n)), n;
|
|
581
|
-
},
|
|
579
|
+
}, mi = () => {
|
|
582
580
|
sessionStorage.removeItem("permission-btn");
|
|
583
|
-
},
|
|
581
|
+
}, _i = (r, e) => {
|
|
584
582
|
const t = "breadcrumb", n = r.filter((s) => s.routeUrl), a = JSON.parse(sessionStorage.getItem(t) || "{}") || {};
|
|
585
583
|
return n.forEach((s) => {
|
|
586
584
|
const l = ((s == null ? void 0 : s.style) ?? 1) === 1, u = s.code;
|
|
587
585
|
a[e] || (a[e] = {}), a[e][u] = l;
|
|
588
586
|
}), sessionStorage.setItem(t, JSON.stringify(a)), a;
|
|
589
|
-
},
|
|
587
|
+
}, Ci = () => {
|
|
590
588
|
sessionStorage.removeItem("breadcrumb");
|
|
591
|
-
},
|
|
589
|
+
}, yi = (r, e) => {
|
|
592
590
|
const t = "tabStyle", n = r.filter((s) => s.routeUrl), a = JSON.parse(sessionStorage.getItem(t) || "{}") || {};
|
|
593
591
|
return n.forEach((s) => {
|
|
594
592
|
const i = s.code, l = {
|
|
@@ -597,13 +595,13 @@ const hi = (r = {}) => {
|
|
|
597
595
|
};
|
|
598
596
|
a[e] || (a[e] = {}), a[e][i] = l;
|
|
599
597
|
}), sessionStorage.setItem(t, JSON.stringify(a)), a;
|
|
600
|
-
},
|
|
598
|
+
}, bi = () => {
|
|
601
599
|
sessionStorage.removeItem("tabStyle");
|
|
602
|
-
},
|
|
600
|
+
}, wi = (r) => {
|
|
603
601
|
sessionStorage.setItem("instance", JSON.stringify(r));
|
|
604
|
-
},
|
|
605
|
-
|
|
606
|
-
},
|
|
602
|
+
}, Ei = () => {
|
|
603
|
+
mi(), bn(), Ua(), Ci(), bi();
|
|
604
|
+
}, Ai = (r) => {
|
|
607
605
|
const e = JSON.parse(sessionStorage.getItem(r) || "{}");
|
|
608
606
|
if (e && JSON.stringify(e) !== "{}" && e != null && e.exitConfirmPages && e.exitConfirmPages.length) {
|
|
609
607
|
const t = (e == null ? void 0 : e.currentPage) ?? "";
|
|
@@ -622,10 +620,10 @@ const hi = (r = {}) => {
|
|
|
622
620
|
}
|
|
623
621
|
};
|
|
624
622
|
var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
625
|
-
function
|
|
623
|
+
function Bi(r) {
|
|
626
624
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
627
625
|
}
|
|
628
|
-
function
|
|
626
|
+
function ki(r) {
|
|
629
627
|
if (r.__esModule) return r;
|
|
630
628
|
var e = r.default;
|
|
631
629
|
if (typeof e == "function") {
|
|
@@ -645,14 +643,14 @@ function Di(r) {
|
|
|
645
643
|
}), t;
|
|
646
644
|
}
|
|
647
645
|
var qa = { exports: {} };
|
|
648
|
-
function
|
|
646
|
+
function Di(r) {
|
|
649
647
|
throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
650
648
|
}
|
|
651
|
-
var
|
|
652
|
-
const
|
|
649
|
+
var xr = { exports: {} };
|
|
650
|
+
const Si = {}, Fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
653
651
|
__proto__: null,
|
|
654
|
-
default:
|
|
655
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
652
|
+
default: Si
|
|
653
|
+
}, Symbol.toStringTag, { value: "Module" })), Ii = /* @__PURE__ */ ki(Fi);
|
|
656
654
|
var co;
|
|
657
655
|
function re() {
|
|
658
656
|
return co || (co = 1, function(r, e) {
|
|
@@ -661,9 +659,9 @@ function re() {
|
|
|
661
659
|
})(te, function() {
|
|
662
660
|
var t = t || function(n, a) {
|
|
663
661
|
var s;
|
|
664
|
-
if (typeof window < "u" && window.crypto && (s = window.crypto), typeof self < "u" && self.crypto && (s = self.crypto), typeof globalThis < "u" && globalThis.crypto && (s = globalThis.crypto), !s && typeof window < "u" && window.msCrypto && (s = window.msCrypto), !s && typeof te < "u" && te.crypto && (s = te.crypto), !s && typeof
|
|
662
|
+
if (typeof window < "u" && window.crypto && (s = window.crypto), typeof self < "u" && self.crypto && (s = self.crypto), typeof globalThis < "u" && globalThis.crypto && (s = globalThis.crypto), !s && typeof window < "u" && window.msCrypto && (s = window.msCrypto), !s && typeof te < "u" && te.crypto && (s = te.crypto), !s && typeof Di == "function")
|
|
665
663
|
try {
|
|
666
|
-
s =
|
|
664
|
+
s = Ii;
|
|
667
665
|
} catch {
|
|
668
666
|
}
|
|
669
667
|
var i = function() {
|
|
@@ -1152,9 +1150,9 @@ function re() {
|
|
|
1152
1150
|
}(Math);
|
|
1153
1151
|
return t;
|
|
1154
1152
|
});
|
|
1155
|
-
}(
|
|
1153
|
+
}(xr)), xr.exports;
|
|
1156
1154
|
}
|
|
1157
|
-
var
|
|
1155
|
+
var vr = { exports: {} }, lo;
|
|
1158
1156
|
function ar() {
|
|
1159
1157
|
return lo || (lo = 1, function(r, e) {
|
|
1160
1158
|
(function(t, n) {
|
|
@@ -1382,10 +1380,10 @@ function ar() {
|
|
|
1382
1380
|
});
|
|
1383
1381
|
}(), t;
|
|
1384
1382
|
});
|
|
1385
|
-
}(
|
|
1383
|
+
}(vr)), vr.exports;
|
|
1386
1384
|
}
|
|
1387
|
-
var
|
|
1388
|
-
function
|
|
1385
|
+
var gr = { exports: {} }, uo;
|
|
1386
|
+
function Ti() {
|
|
1389
1387
|
return uo || (uo = 1, function(r, e) {
|
|
1390
1388
|
(function(t, n) {
|
|
1391
1389
|
r.exports = n(re());
|
|
@@ -1404,10 +1402,10 @@ function Pi() {
|
|
|
1404
1402
|
}
|
|
1405
1403
|
}(), t.lib.WordArray;
|
|
1406
1404
|
});
|
|
1407
|
-
}(
|
|
1405
|
+
}(gr)), gr.exports;
|
|
1408
1406
|
}
|
|
1409
|
-
var
|
|
1410
|
-
function
|
|
1407
|
+
var mr = { exports: {} }, fo;
|
|
1408
|
+
function Pi() {
|
|
1411
1409
|
return fo || (fo = 1, function(r, e) {
|
|
1412
1410
|
(function(t, n) {
|
|
1413
1411
|
r.exports = n(re());
|
|
@@ -1498,9 +1496,9 @@ function Ri() {
|
|
|
1498
1496
|
}
|
|
1499
1497
|
}(), t.enc.Utf16;
|
|
1500
1498
|
});
|
|
1501
|
-
}(
|
|
1499
|
+
}(mr)), mr.exports;
|
|
1502
1500
|
}
|
|
1503
|
-
var
|
|
1501
|
+
var _r = { exports: {} }, po;
|
|
1504
1502
|
function ut() {
|
|
1505
1503
|
return po || (po = 1, function(r, e) {
|
|
1506
1504
|
(function(t, n) {
|
|
@@ -1573,10 +1571,10 @@ function ut() {
|
|
|
1573
1571
|
}
|
|
1574
1572
|
}(), t.enc.Base64;
|
|
1575
1573
|
});
|
|
1576
|
-
}(
|
|
1574
|
+
}(_r)), _r.exports;
|
|
1577
1575
|
}
|
|
1578
|
-
var
|
|
1579
|
-
function
|
|
1576
|
+
var Cr = { exports: {} }, ho;
|
|
1577
|
+
function Ri() {
|
|
1580
1578
|
return ho || (ho = 1, function(r, e) {
|
|
1581
1579
|
(function(t, n) {
|
|
1582
1580
|
r.exports = n(re());
|
|
@@ -1655,9 +1653,9 @@ function $i() {
|
|
|
1655
1653
|
}
|
|
1656
1654
|
}(), t.enc.Base64url;
|
|
1657
1655
|
});
|
|
1658
|
-
}(
|
|
1656
|
+
}(Cr)), Cr.exports;
|
|
1659
1657
|
}
|
|
1660
|
-
var
|
|
1658
|
+
var yr = { exports: {} }, xo;
|
|
1661
1659
|
function dt() {
|
|
1662
1660
|
return xo || (xo = 1, function(r, e) {
|
|
1663
1661
|
(function(t, n) {
|
|
@@ -1721,9 +1719,9 @@ function dt() {
|
|
|
1721
1719
|
a.MD5 = l._createHelper(c), a.HmacMD5 = l._createHmacHelper(c);
|
|
1722
1720
|
}(Math), t.MD5;
|
|
1723
1721
|
});
|
|
1724
|
-
}(
|
|
1722
|
+
}(yr)), yr.exports;
|
|
1725
1723
|
}
|
|
1726
|
-
var
|
|
1724
|
+
var br = { exports: {} }, vo;
|
|
1727
1725
|
function Wa() {
|
|
1728
1726
|
return vo || (vo = 1, function(r, e) {
|
|
1729
1727
|
(function(t, n) {
|
|
@@ -1765,10 +1763,10 @@ function Wa() {
|
|
|
1765
1763
|
n.SHA1 = i._createHelper(o), n.HmacSHA1 = i._createHmacHelper(o);
|
|
1766
1764
|
}(), t.SHA1;
|
|
1767
1765
|
});
|
|
1768
|
-
}(
|
|
1766
|
+
}(br)), br.exports;
|
|
1769
1767
|
}
|
|
1770
|
-
var
|
|
1771
|
-
function
|
|
1768
|
+
var wr = { exports: {} }, go;
|
|
1769
|
+
function wn() {
|
|
1772
1770
|
return go || (go = 1, function(r, e) {
|
|
1773
1771
|
(function(t, n) {
|
|
1774
1772
|
r.exports = n(re());
|
|
@@ -1817,13 +1815,13 @@ function bn() {
|
|
|
1817
1815
|
a.SHA256 = l._createHelper(d), a.HmacSHA256 = l._createHmacHelper(d);
|
|
1818
1816
|
}(Math), t.SHA256;
|
|
1819
1817
|
});
|
|
1820
|
-
}(
|
|
1818
|
+
}(wr)), wr.exports;
|
|
1821
1819
|
}
|
|
1822
|
-
var
|
|
1823
|
-
function
|
|
1820
|
+
var Er = { exports: {} }, mo;
|
|
1821
|
+
function $i() {
|
|
1824
1822
|
return mo || (mo = 1, function(r, e) {
|
|
1825
1823
|
(function(t, n, a) {
|
|
1826
|
-
r.exports = n(re(),
|
|
1824
|
+
r.exports = n(re(), wn());
|
|
1827
1825
|
})(te, function(t) {
|
|
1828
1826
|
return function() {
|
|
1829
1827
|
var n = t, a = n.lib, s = a.WordArray, i = n.algo, l = i.SHA256, u = i.SHA224 = l.extend({
|
|
@@ -1847,9 +1845,9 @@ function zi() {
|
|
|
1847
1845
|
n.SHA224 = l._createHelper(u), n.HmacSHA224 = l._createHmacHelper(u);
|
|
1848
1846
|
}(), t.SHA224;
|
|
1849
1847
|
});
|
|
1850
|
-
}(
|
|
1848
|
+
}(Er)), Er.exports;
|
|
1851
1849
|
}
|
|
1852
|
-
var
|
|
1850
|
+
var Ar = { exports: {} }, _o;
|
|
1853
1851
|
function Va() {
|
|
1854
1852
|
return _o || (_o = 1, function(r, e) {
|
|
1855
1853
|
(function(t, n, a) {
|
|
@@ -1965,11 +1963,11 @@ function Va() {
|
|
|
1965
1963
|
if ($e < 16)
|
|
1966
1964
|
Ke = Vt.high = p[g + $e * 2] | 0, Pe = Vt.low = p[g + $e * 2 + 1] | 0;
|
|
1967
1965
|
else {
|
|
1968
|
-
var
|
|
1969
|
-
Pe =
|
|
1966
|
+
var Mn = d[$e - 15], ht = Mn.high, St = Mn.low, z0 = (ht >>> 1 | St << 31) ^ (ht >>> 8 | St << 24) ^ ht >>> 7, Nn = (St >>> 1 | ht << 31) ^ (St >>> 8 | ht << 24) ^ (St >>> 7 | ht << 25), Ln = d[$e - 2], xt = Ln.high, Ft = Ln.low, O0 = (xt >>> 19 | Ft << 13) ^ (xt << 3 | Ft >>> 29) ^ xt >>> 6, Hn = (Ft >>> 19 | xt << 13) ^ (Ft << 3 | xt >>> 29) ^ (Ft >>> 6 | xt << 26), Un = d[$e - 7], M0 = Un.high, N0 = Un.low, jn = d[$e - 16], L0 = jn.high, qn = jn.low;
|
|
1967
|
+
Pe = Nn + N0, Ke = z0 + M0 + (Pe >>> 0 < Nn >>> 0 ? 1 : 0), Pe = Pe + Hn, Ke = Ke + O0 + (Pe >>> 0 < Hn >>> 0 ? 1 : 0), Pe = Pe + qn, Ke = Ke + L0 + (Pe >>> 0 < qn >>> 0 ? 1 : 0), Vt.high = Ke, Vt.low = Pe;
|
|
1970
1968
|
}
|
|
1971
|
-
var H0 = R & Ee ^ ~R & Wt,
|
|
1972
|
-
pr = Wt, Dt = kt, Wt = Ee, kt = Me, Ee = R, Me = O, O = N + Fe | 0, R = rt + Ge + (O >>> 0 < N >>> 0 ? 1 : 0) | 0, rt = tt, N = Ve, tt = _e, Ve = ee, _e = ie, ee = ae, ae = Fe +
|
|
1969
|
+
var H0 = R & Ee ^ ~R & Wt, Wn = O & Me ^ ~O & kt, U0 = ie & _e ^ ie & tt ^ _e & tt, j0 = ae & ee ^ ae & Ve ^ ee & Ve, q0 = (ie >>> 28 | ae << 4) ^ (ie << 30 | ae >>> 2) ^ (ie << 25 | ae >>> 7), Vn = (ae >>> 28 | ie << 4) ^ (ae << 30 | ie >>> 2) ^ (ae << 25 | ie >>> 7), W0 = (R >>> 14 | O << 18) ^ (R >>> 18 | O << 14) ^ (R << 23 | O >>> 9), V0 = (O >>> 14 | R << 18) ^ (O >>> 18 | R << 14) ^ (O << 23 | R >>> 9), Kn = _[$e], K0 = Kn.high, Gn = Kn.low, Fe = Dt + V0, Ge = pr + W0 + (Fe >>> 0 < Dt >>> 0 ? 1 : 0), Fe = Fe + Wn, Ge = Ge + H0 + (Fe >>> 0 < Wn >>> 0 ? 1 : 0), Fe = Fe + Gn, Ge = Ge + K0 + (Fe >>> 0 < Gn >>> 0 ? 1 : 0), Fe = Fe + Pe, Ge = Ge + Ke + (Fe >>> 0 < Pe >>> 0 ? 1 : 0), Xn = Vn + j0, G0 = q0 + U0 + (Xn >>> 0 < Vn >>> 0 ? 1 : 0);
|
|
1970
|
+
pr = Wt, Dt = kt, Wt = Ee, kt = Me, Ee = R, Me = O, O = N + Fe | 0, R = rt + Ge + (O >>> 0 < N >>> 0 ? 1 : 0) | 0, rt = tt, N = Ve, tt = _e, Ve = ee, _e = ie, ee = ae, ae = Fe + Xn | 0, ie = Ge + G0 + (ae >>> 0 < Fe >>> 0 ? 1 : 0) | 0;
|
|
1973
1971
|
}
|
|
1974
1972
|
y = m.low = y + ae, m.high = k + ie + (y >>> 0 < ae >>> 0 ? 1 : 0), D = f.low = D + ee, f.high = b + _e + (D >>> 0 < ee >>> 0 ? 1 : 0), L = v.low = L + Ve, v.high = S + tt + (L >>> 0 < Ve >>> 0 ? 1 : 0), W = C.low = W + N, C.high = H + rt + (W >>> 0 < N >>> 0 ? 1 : 0), U = w.low = U + O, w.high = q + R + (U >>> 0 < O >>> 0 ? 1 : 0), G = A.low = G + Me, A.high = j + Ee + (G >>> 0 < Me >>> 0 ? 1 : 0), P = B.low = P + kt, B.high = T + Wt + (P >>> 0 < kt >>> 0 ? 1 : 0), $ = E.low = $ + Dt, E.high = z + pr + ($ >>> 0 < Dt >>> 0 ? 1 : 0);
|
|
1975
1973
|
},
|
|
@@ -1988,10 +1986,10 @@ function Va() {
|
|
|
1988
1986
|
n.SHA512 = s._createHelper(h), n.HmacSHA512 = s._createHmacHelper(h);
|
|
1989
1987
|
}(), t.SHA512;
|
|
1990
1988
|
});
|
|
1991
|
-
}(
|
|
1989
|
+
}(Ar)), Ar.exports;
|
|
1992
1990
|
}
|
|
1993
|
-
var
|
|
1994
|
-
function
|
|
1991
|
+
var Br = { exports: {} }, Co;
|
|
1992
|
+
function zi() {
|
|
1995
1993
|
return Co || (Co = 1, function(r, e) {
|
|
1996
1994
|
(function(t, n, a) {
|
|
1997
1995
|
r.exports = n(re(), ar(), Va());
|
|
@@ -2018,10 +2016,10 @@ function Oi() {
|
|
|
2018
2016
|
n.SHA384 = u._createHelper(o), n.HmacSHA384 = u._createHmacHelper(o);
|
|
2019
2017
|
}(), t.SHA384;
|
|
2020
2018
|
});
|
|
2021
|
-
}(
|
|
2019
|
+
}(Br)), Br.exports;
|
|
2022
2020
|
}
|
|
2023
|
-
var
|
|
2024
|
-
function
|
|
2021
|
+
var kr = { exports: {} }, yo;
|
|
2022
|
+
function Oi() {
|
|
2025
2023
|
return yo || (yo = 1, function(r, e) {
|
|
2026
2024
|
(function(t, n, a) {
|
|
2027
2025
|
r.exports = n(re(), ar());
|
|
@@ -2128,10 +2126,10 @@ function Mi() {
|
|
|
2128
2126
|
a.SHA3 = l._createHelper(g), a.HmacSHA3 = l._createHmacHelper(g);
|
|
2129
2127
|
}(Math), t.SHA3;
|
|
2130
2128
|
});
|
|
2131
|
-
}(
|
|
2129
|
+
}(kr)), kr.exports;
|
|
2132
2130
|
}
|
|
2133
|
-
var
|
|
2134
|
-
function
|
|
2131
|
+
var Dr = { exports: {} }, bo;
|
|
2132
|
+
function Mi() {
|
|
2135
2133
|
return bo || (bo = 1, function(r, e) {
|
|
2136
2134
|
(function(t, n) {
|
|
2137
2135
|
r.exports = n(re());
|
|
@@ -2521,10 +2519,10 @@ function Ni() {
|
|
|
2521
2519
|
a.RIPEMD160 = l._createHelper(g), a.HmacRIPEMD160 = l._createHmacHelper(g);
|
|
2522
2520
|
}(), t.RIPEMD160;
|
|
2523
2521
|
});
|
|
2524
|
-
}(
|
|
2522
|
+
}(Dr)), Dr.exports;
|
|
2525
2523
|
}
|
|
2526
|
-
var
|
|
2527
|
-
function
|
|
2524
|
+
var Sr = { exports: {} }, wo;
|
|
2525
|
+
function En() {
|
|
2528
2526
|
return wo || (wo = 1, function(r, e) {
|
|
2529
2527
|
(function(t, n) {
|
|
2530
2528
|
r.exports = n(re());
|
|
@@ -2599,13 +2597,13 @@ function wn() {
|
|
|
2599
2597
|
});
|
|
2600
2598
|
})();
|
|
2601
2599
|
});
|
|
2602
|
-
}(
|
|
2600
|
+
}(Sr)), Sr.exports;
|
|
2603
2601
|
}
|
|
2604
|
-
var
|
|
2605
|
-
function
|
|
2602
|
+
var Fr = { exports: {} }, Eo;
|
|
2603
|
+
function Ni() {
|
|
2606
2604
|
return Eo || (Eo = 1, function(r, e) {
|
|
2607
2605
|
(function(t, n, a) {
|
|
2608
|
-
r.exports = n(re(),
|
|
2606
|
+
r.exports = n(re(), wn(), En());
|
|
2609
2607
|
})(te, function(t) {
|
|
2610
2608
|
return function() {
|
|
2611
2609
|
var n = t, a = n.lib, s = a.Base, i = a.WordArray, l = n.algo, u = l.SHA256, o = l.HMAC, c = l.PBKDF2 = s.extend({
|
|
@@ -2666,13 +2664,13 @@ function Li() {
|
|
|
2666
2664
|
};
|
|
2667
2665
|
}(), t.PBKDF2;
|
|
2668
2666
|
});
|
|
2669
|
-
}(
|
|
2667
|
+
}(Fr)), Fr.exports;
|
|
2670
2668
|
}
|
|
2671
|
-
var
|
|
2669
|
+
var Ir = { exports: {} }, Ao;
|
|
2672
2670
|
function et() {
|
|
2673
2671
|
return Ao || (Ao = 1, function(r, e) {
|
|
2674
2672
|
(function(t, n, a) {
|
|
2675
|
-
r.exports = n(re(), Wa(),
|
|
2673
|
+
r.exports = n(re(), Wa(), En());
|
|
2676
2674
|
})(te, function(t) {
|
|
2677
2675
|
return function() {
|
|
2678
2676
|
var n = t, a = n.lib, s = a.Base, i = a.WordArray, l = n.algo, u = l.MD5, o = l.EvpKDF = s.extend({
|
|
@@ -2729,9 +2727,9 @@ function et() {
|
|
|
2729
2727
|
};
|
|
2730
2728
|
}(), t.EvpKDF;
|
|
2731
2729
|
});
|
|
2732
|
-
}(
|
|
2730
|
+
}(Ir)), Ir.exports;
|
|
2733
2731
|
}
|
|
2734
|
-
var
|
|
2732
|
+
var Tr = { exports: {} }, Bo;
|
|
2735
2733
|
function ge() {
|
|
2736
2734
|
return Bo || (Bo = 1, function(r, e) {
|
|
2737
2735
|
(function(t, n, a) {
|
|
@@ -3267,10 +3265,10 @@ function ge() {
|
|
|
3267
3265
|
});
|
|
3268
3266
|
}();
|
|
3269
3267
|
});
|
|
3270
|
-
}(
|
|
3268
|
+
}(Tr)), Tr.exports;
|
|
3271
3269
|
}
|
|
3272
|
-
var
|
|
3273
|
-
function
|
|
3270
|
+
var Pr = { exports: {} }, ko;
|
|
3271
|
+
function Li() {
|
|
3274
3272
|
return ko || (ko = 1, function(r, e) {
|
|
3275
3273
|
(function(t, n, a) {
|
|
3276
3274
|
r.exports = n(re(), ge());
|
|
@@ -3297,10 +3295,10 @@ function Hi() {
|
|
|
3297
3295
|
return n;
|
|
3298
3296
|
}(), t.mode.CFB;
|
|
3299
3297
|
});
|
|
3300
|
-
}(
|
|
3298
|
+
}(Pr)), Pr.exports;
|
|
3301
3299
|
}
|
|
3302
|
-
var
|
|
3303
|
-
function
|
|
3300
|
+
var Rr = { exports: {} }, Do;
|
|
3301
|
+
function Hi() {
|
|
3304
3302
|
return Do || (Do = 1, function(r, e) {
|
|
3305
3303
|
(function(t, n, a) {
|
|
3306
3304
|
r.exports = n(re(), ge());
|
|
@@ -3319,10 +3317,10 @@ function Ui() {
|
|
|
3319
3317
|
return n.Decryptor = a, n;
|
|
3320
3318
|
}(), t.mode.CTR;
|
|
3321
3319
|
});
|
|
3322
|
-
}(
|
|
3320
|
+
}(Rr)), Rr.exports;
|
|
3323
3321
|
}
|
|
3324
|
-
var
|
|
3325
|
-
function
|
|
3322
|
+
var $r = { exports: {} }, So;
|
|
3323
|
+
function Ui() {
|
|
3326
3324
|
return So || (So = 1, function(r, e) {
|
|
3327
3325
|
(function(t, n, a) {
|
|
3328
3326
|
r.exports = n(re(), ge());
|
|
@@ -3358,10 +3356,10 @@ function ji() {
|
|
|
3358
3356
|
return n.Decryptor = i, n;
|
|
3359
3357
|
}(), t.mode.CTRGladman;
|
|
3360
3358
|
});
|
|
3361
|
-
}(
|
|
3359
|
+
}($r)), $r.exports;
|
|
3362
3360
|
}
|
|
3363
|
-
var
|
|
3364
|
-
function
|
|
3361
|
+
var zr = { exports: {} }, Fo;
|
|
3362
|
+
function ji() {
|
|
3365
3363
|
return Fo || (Fo = 1, function(r, e) {
|
|
3366
3364
|
(function(t, n, a) {
|
|
3367
3365
|
r.exports = n(re(), ge());
|
|
@@ -3378,10 +3376,10 @@ function qi() {
|
|
|
3378
3376
|
return n.Decryptor = a, n;
|
|
3379
3377
|
}(), t.mode.OFB;
|
|
3380
3378
|
});
|
|
3381
|
-
}(
|
|
3379
|
+
}(zr)), zr.exports;
|
|
3382
3380
|
}
|
|
3383
|
-
var
|
|
3384
|
-
function
|
|
3381
|
+
var Or = { exports: {} }, Io;
|
|
3382
|
+
function qi() {
|
|
3385
3383
|
return Io || (Io = 1, function(r, e) {
|
|
3386
3384
|
(function(t, n, a) {
|
|
3387
3385
|
r.exports = n(re(), ge());
|
|
@@ -3399,10 +3397,10 @@ function Wi() {
|
|
|
3399
3397
|
}), n;
|
|
3400
3398
|
}(), t.mode.ECB;
|
|
3401
3399
|
});
|
|
3402
|
-
}(
|
|
3400
|
+
}(Or)), Or.exports;
|
|
3403
3401
|
}
|
|
3404
|
-
var
|
|
3405
|
-
function
|
|
3402
|
+
var Mr = { exports: {} }, To;
|
|
3403
|
+
function Wi() {
|
|
3406
3404
|
return To || (To = 1, function(r, e) {
|
|
3407
3405
|
(function(t, n, a) {
|
|
3408
3406
|
r.exports = n(re(), ge());
|
|
@@ -3418,10 +3416,10 @@ function Vi() {
|
|
|
3418
3416
|
}
|
|
3419
3417
|
}, t.pad.Ansix923;
|
|
3420
3418
|
});
|
|
3421
|
-
}(
|
|
3419
|
+
}(Mr)), Mr.exports;
|
|
3422
3420
|
}
|
|
3423
|
-
var
|
|
3424
|
-
function
|
|
3421
|
+
var Nr = { exports: {} }, Po;
|
|
3422
|
+
function Vi() {
|
|
3425
3423
|
return Po || (Po = 1, function(r, e) {
|
|
3426
3424
|
(function(t, n, a) {
|
|
3427
3425
|
r.exports = n(re(), ge());
|
|
@@ -3437,10 +3435,10 @@ function Ki() {
|
|
|
3437
3435
|
}
|
|
3438
3436
|
}, t.pad.Iso10126;
|
|
3439
3437
|
});
|
|
3440
|
-
}(
|
|
3438
|
+
}(Nr)), Nr.exports;
|
|
3441
3439
|
}
|
|
3442
|
-
var
|
|
3443
|
-
function
|
|
3440
|
+
var Lr = { exports: {} }, Ro;
|
|
3441
|
+
function Ki() {
|
|
3444
3442
|
return Ro || (Ro = 1, function(r, e) {
|
|
3445
3443
|
(function(t, n, a) {
|
|
3446
3444
|
r.exports = n(re(), ge());
|
|
@@ -3454,10 +3452,10 @@ function Gi() {
|
|
|
3454
3452
|
}
|
|
3455
3453
|
}, t.pad.Iso97971;
|
|
3456
3454
|
});
|
|
3457
|
-
}(
|
|
3455
|
+
}(Lr)), Lr.exports;
|
|
3458
3456
|
}
|
|
3459
|
-
var
|
|
3460
|
-
function
|
|
3457
|
+
var Hr = { exports: {} }, $o;
|
|
3458
|
+
function Gi() {
|
|
3461
3459
|
return $o || ($o = 1, function(r, e) {
|
|
3462
3460
|
(function(t, n, a) {
|
|
3463
3461
|
r.exports = n(re(), ge());
|
|
@@ -3476,10 +3474,10 @@ function Xi() {
|
|
|
3476
3474
|
}
|
|
3477
3475
|
}, t.pad.ZeroPadding;
|
|
3478
3476
|
});
|
|
3479
|
-
}(
|
|
3477
|
+
}(Hr)), Hr.exports;
|
|
3480
3478
|
}
|
|
3481
|
-
var
|
|
3482
|
-
function
|
|
3479
|
+
var Ur = { exports: {} }, zo;
|
|
3480
|
+
function Xi() {
|
|
3483
3481
|
return zo || (zo = 1, function(r, e) {
|
|
3484
3482
|
(function(t, n, a) {
|
|
3485
3483
|
r.exports = n(re(), ge());
|
|
@@ -3491,10 +3489,10 @@ function Qi() {
|
|
|
3491
3489
|
}
|
|
3492
3490
|
}, t.pad.NoPadding;
|
|
3493
3491
|
});
|
|
3494
|
-
}(
|
|
3492
|
+
}(Ur)), Ur.exports;
|
|
3495
3493
|
}
|
|
3496
|
-
var
|
|
3497
|
-
function
|
|
3494
|
+
var jr = { exports: {} }, Oo;
|
|
3495
|
+
function Qi() {
|
|
3498
3496
|
return Oo || (Oo = 1, function(r, e) {
|
|
3499
3497
|
(function(t, n, a) {
|
|
3500
3498
|
r.exports = n(re(), ge());
|
|
@@ -3538,10 +3536,10 @@ function Zi() {
|
|
|
3538
3536
|
};
|
|
3539
3537
|
}(), t.format.Hex;
|
|
3540
3538
|
});
|
|
3541
|
-
}(
|
|
3539
|
+
}(jr)), jr.exports;
|
|
3542
3540
|
}
|
|
3543
|
-
var
|
|
3544
|
-
function
|
|
3541
|
+
var qr = { exports: {} }, Mo;
|
|
3542
|
+
function Zi() {
|
|
3545
3543
|
return Mo || (Mo = 1, function(r, e) {
|
|
3546
3544
|
(function(t, n, a) {
|
|
3547
3545
|
r.exports = n(re(), ut(), dt(), et(), ge());
|
|
@@ -3598,9 +3596,9 @@ function Ji() {
|
|
|
3598
3596
|
n.AES = s._createHelper(f);
|
|
3599
3597
|
}(), t.AES;
|
|
3600
3598
|
});
|
|
3601
|
-
}(
|
|
3599
|
+
}(qr)), qr.exports;
|
|
3602
3600
|
}
|
|
3603
|
-
var
|
|
3601
|
+
var Wr = { exports: {} }, No;
|
|
3604
3602
|
function Yi() {
|
|
3605
3603
|
return No || (No = 1, function(r, e) {
|
|
3606
3604
|
(function(t, n, a) {
|
|
@@ -4318,10 +4316,10 @@ function Yi() {
|
|
|
4318
4316
|
n.TripleDES = i._createHelper(x);
|
|
4319
4317
|
}(), t.TripleDES;
|
|
4320
4318
|
});
|
|
4321
|
-
}(
|
|
4319
|
+
}(Wr)), Wr.exports;
|
|
4322
4320
|
}
|
|
4323
|
-
var
|
|
4324
|
-
function
|
|
4321
|
+
var Vr = { exports: {} }, Lo;
|
|
4322
|
+
function Ji() {
|
|
4325
4323
|
return Lo || (Lo = 1, function(r, e) {
|
|
4326
4324
|
(function(t, n, a) {
|
|
4327
4325
|
r.exports = n(re(), ut(), dt(), et(), ge());
|
|
@@ -4372,10 +4370,10 @@ function ec() {
|
|
|
4372
4370
|
n.RC4Drop = s._createHelper(o);
|
|
4373
4371
|
}(), t.RC4;
|
|
4374
4372
|
});
|
|
4375
|
-
}(
|
|
4373
|
+
}(Vr)), Vr.exports;
|
|
4376
4374
|
}
|
|
4377
|
-
var
|
|
4378
|
-
function
|
|
4375
|
+
var Kr = { exports: {} }, Ho;
|
|
4376
|
+
function ec() {
|
|
4379
4377
|
return Ho || (Ho = 1, function(r, e) {
|
|
4380
4378
|
(function(t, n, a) {
|
|
4381
4379
|
r.exports = n(re(), ut(), dt(), et(), ge());
|
|
@@ -4438,10 +4436,10 @@ function tc() {
|
|
|
4438
4436
|
n.Rabbit = s._createHelper(c);
|
|
4439
4437
|
}(), t.Rabbit;
|
|
4440
4438
|
});
|
|
4441
|
-
}(
|
|
4439
|
+
}(Kr)), Kr.exports;
|
|
4442
4440
|
}
|
|
4443
|
-
var
|
|
4444
|
-
function
|
|
4441
|
+
var Gr = { exports: {} }, Uo;
|
|
4442
|
+
function tc() {
|
|
4445
4443
|
return Uo || (Uo = 1, function(r, e) {
|
|
4446
4444
|
(function(t, n, a) {
|
|
4447
4445
|
r.exports = n(re(), ut(), dt(), et(), ge());
|
|
@@ -4502,10 +4500,10 @@ function rc() {
|
|
|
4502
4500
|
n.RabbitLegacy = s._createHelper(c);
|
|
4503
4501
|
}(), t.RabbitLegacy;
|
|
4504
4502
|
});
|
|
4505
|
-
}(
|
|
4503
|
+
}(Gr)), Gr.exports;
|
|
4506
4504
|
}
|
|
4507
|
-
var
|
|
4508
|
-
function
|
|
4505
|
+
var Xr = { exports: {} }, jo;
|
|
4506
|
+
function rc() {
|
|
4509
4507
|
return jo || (jo = 1, function(r, e) {
|
|
4510
4508
|
(function(t, n, a) {
|
|
4511
4509
|
r.exports = n(re(), ut(), dt(), et(), ge());
|
|
@@ -5624,20 +5622,20 @@ function nc() {
|
|
|
5624
5622
|
n.Blowfish = s._createHelper(g);
|
|
5625
5623
|
}(), t.Blowfish;
|
|
5626
5624
|
});
|
|
5627
|
-
}(
|
|
5625
|
+
}(Xr)), Xr.exports;
|
|
5628
5626
|
}
|
|
5629
5627
|
(function(r, e) {
|
|
5630
5628
|
(function(t, n, a) {
|
|
5631
|
-
r.exports = n(re(), ar(),
|
|
5629
|
+
r.exports = n(re(), ar(), Ti(), Pi(), ut(), Ri(), dt(), Wa(), wn(), $i(), Va(), zi(), Oi(), Mi(), En(), Ni(), et(), ge(), Li(), Hi(), Ui(), ji(), qi(), Wi(), Vi(), Ki(), Gi(), Xi(), Qi(), Zi(), Yi(), Ji(), ec(), tc(), rc());
|
|
5632
5630
|
})(te, function(t) {
|
|
5633
5631
|
return t;
|
|
5634
5632
|
});
|
|
5635
5633
|
})(qa);
|
|
5636
|
-
var
|
|
5637
|
-
const Be = /* @__PURE__ */
|
|
5638
|
-
function
|
|
5634
|
+
var nc = qa.exports;
|
|
5635
|
+
const Be = /* @__PURE__ */ Bi(nc);
|
|
5636
|
+
function oc(r, e, t, n) {
|
|
5639
5637
|
Ka(r, e).then(({ input: a, key: s }) => Xa(a, s, t, !0, n)).then((a) => {
|
|
5640
|
-
|
|
5638
|
+
ac.apply(null, a);
|
|
5641
5639
|
}).catch((a) => {
|
|
5642
5640
|
n({
|
|
5643
5641
|
value: null,
|
|
@@ -5645,16 +5643,16 @@ function ac(r, e, t, n) {
|
|
|
5645
5643
|
});
|
|
5646
5644
|
});
|
|
5647
5645
|
}
|
|
5648
|
-
function
|
|
5646
|
+
function ac(r, e, t, n, a, s, i, l) {
|
|
5649
5647
|
let u = Ga(e, t, n, a, s), o = Be.AES.encrypt.apply(null, [r, u.key, u.options]), c = i === "base64" ? Be.enc.Base64 : Be.enc.Hex, _ = o.ciphertext.toString(c);
|
|
5650
5648
|
l({
|
|
5651
5649
|
value: _,
|
|
5652
5650
|
error: null
|
|
5653
5651
|
});
|
|
5654
5652
|
}
|
|
5655
|
-
function
|
|
5653
|
+
function sc(r, e, t, n) {
|
|
5656
5654
|
Ka(r, e).then(({ input: a, key: s }) => Xa(a, s, t, !1, n)).then((a) => {
|
|
5657
|
-
|
|
5655
|
+
ic.apply(null, a);
|
|
5658
5656
|
}).catch((a) => {
|
|
5659
5657
|
n({
|
|
5660
5658
|
value: null,
|
|
@@ -5662,7 +5660,7 @@ function ic(r, e, t, n) {
|
|
|
5662
5660
|
});
|
|
5663
5661
|
});
|
|
5664
5662
|
}
|
|
5665
|
-
function
|
|
5663
|
+
function ic(r, e, t, n, a, s, i, l) {
|
|
5666
5664
|
let u = Ga(e, t, n, a, s), o = Be.DES.encrypt.apply(null, [r, u.key, u.options]), c = i === "base64" ? Be.enc.Base64 : Be.enc.Hex, _ = o.ciphertext.toString(c);
|
|
5667
5665
|
l({
|
|
5668
5666
|
value: _,
|
|
@@ -5691,7 +5689,7 @@ function Ga(r, e, t, n, a) {
|
|
|
5691
5689
|
async function Xa(r, e, t, n = !1, a) {
|
|
5692
5690
|
let s;
|
|
5693
5691
|
try {
|
|
5694
|
-
s = await
|
|
5692
|
+
s = await cc(t);
|
|
5695
5693
|
} catch (c) {
|
|
5696
5694
|
return Promise.reject(c);
|
|
5697
5695
|
}
|
|
@@ -5700,39 +5698,39 @@ async function Xa(r, e, t, n = !1, a) {
|
|
|
5700
5698
|
return Promise.reject("非ECB模式iv不能为空");
|
|
5701
5699
|
let l;
|
|
5702
5700
|
try {
|
|
5703
|
-
l = await
|
|
5701
|
+
l = await lc(t, n);
|
|
5704
5702
|
} catch (c) {
|
|
5705
5703
|
return Promise.reject(c);
|
|
5706
5704
|
}
|
|
5707
5705
|
let u;
|
|
5708
5706
|
try {
|
|
5709
|
-
u = await
|
|
5707
|
+
u = await uc(t);
|
|
5710
5708
|
} catch (c) {
|
|
5711
5709
|
return Promise.reject(c);
|
|
5712
5710
|
}
|
|
5713
5711
|
let o;
|
|
5714
5712
|
try {
|
|
5715
|
-
o = await
|
|
5713
|
+
o = await dc(t);
|
|
5716
5714
|
} catch (c) {
|
|
5717
5715
|
return Promise.reject(c);
|
|
5718
5716
|
}
|
|
5719
5717
|
return [r, e, l, i, s, u, o, a];
|
|
5720
5718
|
}
|
|
5721
|
-
async function
|
|
5719
|
+
async function cc(r) {
|
|
5722
5720
|
let { mode: e = "CBC" } = r || {};
|
|
5723
5721
|
return e = e.trim().toUpperCase(), ["CBC", "CFB", "OFB", "ECB"].indexOf(e) === -1 ? Promise.reject("mode模式配置错误") : e;
|
|
5724
5722
|
}
|
|
5725
|
-
async function
|
|
5723
|
+
async function lc(r, e = !1) {
|
|
5726
5724
|
if (!e)
|
|
5727
5725
|
return 8;
|
|
5728
5726
|
let { keySize: t = 0 } = r || {};
|
|
5729
5727
|
return [16, 24, 32].indexOf(t) !== -1 ? t : Promise.reject("keySize配置错误");
|
|
5730
5728
|
}
|
|
5731
|
-
async function
|
|
5729
|
+
async function uc(r) {
|
|
5732
5730
|
let { padding: e = "pkcs7" } = r || {};
|
|
5733
5731
|
return e = e.trim().toLowerCase(), ["pkcs7", "pkcs5", "zero", "iso10126", "ansix923"].indexOf(e) !== -1 ? e : Promise.reject("padding配置错误");
|
|
5734
5732
|
}
|
|
5735
|
-
async function
|
|
5733
|
+
async function dc(r) {
|
|
5736
5734
|
let { encoding: e = "base64" } = r || {};
|
|
5737
5735
|
return e = e.trim().toLowerCase(), ["base64", "hex"].indexOf(e) !== -1 ? e : Promise.reject("encoding配置错误");
|
|
5738
5736
|
}
|
|
@@ -5747,10 +5745,10 @@ function qo(r, e) {
|
|
|
5747
5745
|
}
|
|
5748
5746
|
return Be.enc.Latin1.parse(t);
|
|
5749
5747
|
}
|
|
5750
|
-
const
|
|
5751
|
-
aes:
|
|
5752
|
-
des:
|
|
5753
|
-
},
|
|
5748
|
+
const fc = {
|
|
5749
|
+
aes: oc,
|
|
5750
|
+
des: sc
|
|
5751
|
+
}, pc = (r = {}, e) => {
|
|
5754
5752
|
const t = { aes: "aes", des: "des" }, n = {
|
|
5755
5753
|
pkcs5padding: "Pkcs5",
|
|
5756
5754
|
pkcs7padding: "Pkcs7",
|
|
@@ -5760,7 +5758,7 @@ const pc = {
|
|
|
5760
5758
|
}, a = { hex: "hex", base64: "base64" };
|
|
5761
5759
|
let s = r.encryptType || "", i = t[s.toLowerCase()], l = r.encryptMode || "", u = r.encryptKey || "", o = r.encryptOffset || "", c = r.encryptPadding || "", _ = n[c.toLowerCase()], d = r.codingMode || "", h = a[d.toLowerCase()], g = (Number(r.encryptKeyLength) || 0) / 8;
|
|
5762
5760
|
return new Promise((x) => {
|
|
5763
|
-
i !== "aes" && i !== "des" ? x({ error: "加密类型出错==", value: null }) :
|
|
5761
|
+
i !== "aes" && i !== "des" ? x({ error: "加密类型出错==", value: null }) : fc[i](e, u, { mode: l, keySize: g, padding: _, encoding: h, iv: o }, (m) => {
|
|
5764
5762
|
x(m);
|
|
5765
5763
|
});
|
|
5766
5764
|
});
|
|
@@ -5776,18 +5774,18 @@ function Za(r) {
|
|
|
5776
5774
|
nt.USER_NICKNAME
|
|
5777
5775
|
].findIndex((t) => r.trim() === t) >= 0 : !1;
|
|
5778
5776
|
}
|
|
5779
|
-
async function
|
|
5777
|
+
async function Ya(r) {
|
|
5780
5778
|
const { userName: e, name: t, nickName: n, phone: a } = Ba();
|
|
5781
5779
|
return {
|
|
5782
5780
|
USER_ACCOUNT: e,
|
|
5783
5781
|
USER_NAME: t,
|
|
5784
5782
|
USER_NICKNAME: n,
|
|
5785
5783
|
USER_PHONE: a,
|
|
5786
|
-
USER_TOKEN:
|
|
5784
|
+
USER_TOKEN: Ye(),
|
|
5787
5785
|
CURRENT_PROJECT: Ze().id
|
|
5788
5786
|
}[r];
|
|
5789
5787
|
}
|
|
5790
|
-
async function
|
|
5788
|
+
async function hc(r) {
|
|
5791
5789
|
if (typeof r != "string") return "";
|
|
5792
5790
|
let e = null;
|
|
5793
5791
|
try {
|
|
@@ -5801,28 +5799,28 @@ async function xc(r) {
|
|
|
5801
5799
|
if (i && l) {
|
|
5802
5800
|
let u = l;
|
|
5803
5801
|
if (Za(l)) {
|
|
5804
|
-
if (!
|
|
5802
|
+
if (!Ye())
|
|
5805
5803
|
return Ia({ ...Ta, redirect_uri: Pa }), "goLogin";
|
|
5806
|
-
u = await
|
|
5804
|
+
u = await Ya(l);
|
|
5807
5805
|
}
|
|
5808
5806
|
t[i] = u;
|
|
5809
5807
|
}
|
|
5810
5808
|
}
|
|
5811
5809
|
return JSON.stringify(t);
|
|
5812
5810
|
}
|
|
5813
|
-
async function
|
|
5811
|
+
async function xc(r) {
|
|
5814
5812
|
let e = {};
|
|
5815
5813
|
for (let t = 0; t < r.length; t++) {
|
|
5816
5814
|
let n = r[t] || {}, { attributeContentEnum: a, paramName: s, attributeContent: i, paramType: l, isEncrypted: u } = n, o = s, c = i;
|
|
5817
5815
|
if (Za(a)) {
|
|
5818
|
-
if (!
|
|
5816
|
+
if (!Ye())
|
|
5819
5817
|
return Ia({ ...Ta, redirect_uri: Pa }), "goLogin";
|
|
5820
|
-
c = await
|
|
5821
|
-
} else if (l === Qa.JSON && (c = await
|
|
5818
|
+
c = await Ya(a);
|
|
5819
|
+
} else if (l === Qa.JSON && (c = await hc(i), c === "goLogin"))
|
|
5822
5820
|
return "goLogin";
|
|
5823
5821
|
if (o && c) {
|
|
5824
5822
|
if (u) {
|
|
5825
|
-
let _ = await
|
|
5823
|
+
let _ = await pc(n, c);
|
|
5826
5824
|
_.error, c = _.value ?? "";
|
|
5827
5825
|
}
|
|
5828
5826
|
e[o] = c;
|
|
@@ -5830,7 +5828,7 @@ async function vc(r) {
|
|
|
5830
5828
|
}
|
|
5831
5829
|
return e;
|
|
5832
5830
|
}
|
|
5833
|
-
function
|
|
5831
|
+
function vc(r) {
|
|
5834
5832
|
let e = {}, t = r.split("&");
|
|
5835
5833
|
for (let n = 0; n < t.length; n++) {
|
|
5836
5834
|
let s = t[n].split("=");
|
|
@@ -5841,35 +5839,35 @@ function gc(r) {
|
|
|
5841
5839
|
}
|
|
5842
5840
|
return e;
|
|
5843
5841
|
}
|
|
5844
|
-
function
|
|
5842
|
+
function gc(r) {
|
|
5845
5843
|
return Object.keys(r).map((e) => `${e}=${r[e]}`).join("&");
|
|
5846
5844
|
}
|
|
5847
|
-
function
|
|
5845
|
+
function mc(r, e) {
|
|
5848
5846
|
let t = r.split("?").filter((o) => o.length > 0), n = Object.keys(e).map((o) => {
|
|
5849
5847
|
let c = e[o];
|
|
5850
5848
|
return `${encodeURIComponent(o)}=${encodeURIComponent(c)}`;
|
|
5851
5849
|
}).join("&");
|
|
5852
5850
|
if (t.length !== 2)
|
|
5853
5851
|
return n.length > 0 ? `${r}?${n}` : r;
|
|
5854
|
-
let a = t[0], s =
|
|
5852
|
+
let a = t[0], s = vc(t[1]), i = /* @__PURE__ */ new Set();
|
|
5855
5853
|
Object.keys(s).forEach((o) => {
|
|
5856
5854
|
e[o] && i.add(o);
|
|
5857
5855
|
}), i.forEach((o) => {
|
|
5858
5856
|
delete s[o];
|
|
5859
5857
|
});
|
|
5860
|
-
let l = n, u =
|
|
5858
|
+
let l = n, u = gc(s);
|
|
5861
5859
|
return u.length > 0 && (n.length > 0 ? l = `${u}&${n}` : l = u), l.length > 0 ? `${a}?${l}` : a;
|
|
5862
5860
|
}
|
|
5863
|
-
const
|
|
5864
|
-
const t = await
|
|
5865
|
-
return t === "goLogin" ? "" :
|
|
5866
|
-
},
|
|
5861
|
+
const Ja = async (r, e) => {
|
|
5862
|
+
const t = await xc(e);
|
|
5863
|
+
return t === "goLogin" ? "" : mc(r, t) ?? "";
|
|
5864
|
+
}, on = (r) => {
|
|
5867
5865
|
const e = new URL(r, location.origin);
|
|
5868
5866
|
return ["true", "1"].includes(e.searchParams.get("autoSetToken")) && (e.searchParams.append("access_token", ws()), e.searchParams.delete("autoSetToken")), e.toString();
|
|
5869
|
-
}, e0 = "v1",
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
const
|
|
5867
|
+
}, e0 = "v1", _c = Je(`/api/personal-center/personal-server/${e0}`), Cc = Je(`/api/enterpriseright/permission/${e0}`), yc = _c.get("/info"), bc = Sa.get("/user-info");
|
|
5868
|
+
Cc.get("/user/tenant");
|
|
5869
|
+
xn.post("/tenant/page");
|
|
5870
|
+
const wc = "v1", Ec = Je(`/api/user-portrait/user-data/${wc}`), t0 = Ec.post("/data/actions", (r) => (r.ignoreErrorMessage = !0, r)), r0 = "pc", n0 = "pc", Ac = async (r) => {
|
|
5873
5871
|
const e = JSON.parse(sessionStorage.getItem("access-sys") || "{}");
|
|
5874
5872
|
(e == null ? void 0 : e.projectId) !== r && (await t0().run({
|
|
5875
5873
|
action: "access-sys",
|
|
@@ -5891,14 +5889,14 @@ const Ec = "v1", Ac = Ye(`/api/user-portrait/user-data/${Ec}`), t0 = Ac.post("/d
|
|
|
5891
5889
|
displayMenuName: a
|
|
5892
5890
|
}
|
|
5893
5891
|
});
|
|
5892
|
+
}, Bc = async () => {
|
|
5893
|
+
const [r, e] = await yc().run({});
|
|
5894
|
+
return r ? { personalConfig: null } : (Ac(Ze().id), { personalConfig: e });
|
|
5894
5895
|
}, kc = async () => {
|
|
5895
|
-
const [r, e] = await bc().run(
|
|
5896
|
-
return r ? {
|
|
5897
|
-
}, Dc =
|
|
5898
|
-
|
|
5899
|
-
return r ? { tenantConfig: null } : (xi(e), { tenantConfig: e });
|
|
5900
|
-
}, Sc = xn.get("/permissionset/user-portal-menu"), Fc = ys.deviceManage.get("/instance/getLast");
|
|
5901
|
-
function Ic() {
|
|
5896
|
+
const [r, e] = await bc().run();
|
|
5897
|
+
return r ? { tenantConfig: null } : (hi(e), { tenantConfig: e });
|
|
5898
|
+
}, Dc = vn.get("/permissionset/user-portal-menu"), Sc = ys.deviceManage.get("/instance/getLast");
|
|
5899
|
+
function Fc() {
|
|
5902
5900
|
this.__data__ = [], this.size = 0;
|
|
5903
5901
|
}
|
|
5904
5902
|
function a0(r, e) {
|
|
@@ -5910,22 +5908,22 @@ function sr(r, e) {
|
|
|
5910
5908
|
return t;
|
|
5911
5909
|
return -1;
|
|
5912
5910
|
}
|
|
5913
|
-
var
|
|
5914
|
-
function
|
|
5911
|
+
var Ic = Array.prototype, Tc = Ic.splice;
|
|
5912
|
+
function Pc(r) {
|
|
5915
5913
|
var e = this.__data__, t = sr(e, r);
|
|
5916
5914
|
if (t < 0)
|
|
5917
5915
|
return !1;
|
|
5918
5916
|
var n = e.length - 1;
|
|
5919
|
-
return t == n ? e.pop() :
|
|
5917
|
+
return t == n ? e.pop() : Tc.call(e, t, 1), --this.size, !0;
|
|
5920
5918
|
}
|
|
5921
|
-
function
|
|
5919
|
+
function Rc(r) {
|
|
5922
5920
|
var e = this.__data__, t = sr(e, r);
|
|
5923
5921
|
return t < 0 ? void 0 : e[t][1];
|
|
5924
5922
|
}
|
|
5925
|
-
function
|
|
5923
|
+
function $c(r) {
|
|
5926
5924
|
return sr(this.__data__, r) > -1;
|
|
5927
5925
|
}
|
|
5928
|
-
function
|
|
5926
|
+
function zc(r, e) {
|
|
5929
5927
|
var t = this.__data__, n = sr(t, r);
|
|
5930
5928
|
return n < 0 ? (++this.size, t.push([r, e])) : t[n][1] = e, this;
|
|
5931
5929
|
}
|
|
@@ -5936,66 +5934,66 @@ function We(r) {
|
|
|
5936
5934
|
this.set(n[0], n[1]);
|
|
5937
5935
|
}
|
|
5938
5936
|
}
|
|
5939
|
-
We.prototype.clear =
|
|
5940
|
-
We.prototype.delete =
|
|
5941
|
-
We.prototype.get =
|
|
5942
|
-
We.prototype.has =
|
|
5943
|
-
We.prototype.set =
|
|
5944
|
-
function
|
|
5937
|
+
We.prototype.clear = Fc;
|
|
5938
|
+
We.prototype.delete = Pc;
|
|
5939
|
+
We.prototype.get = Rc;
|
|
5940
|
+
We.prototype.has = $c;
|
|
5941
|
+
We.prototype.set = zc;
|
|
5942
|
+
function Oc() {
|
|
5945
5943
|
this.__data__ = new We(), this.size = 0;
|
|
5946
5944
|
}
|
|
5947
|
-
function
|
|
5945
|
+
function Mc(r) {
|
|
5948
5946
|
var e = this.__data__, t = e.delete(r);
|
|
5949
5947
|
return this.size = e.size, t;
|
|
5950
5948
|
}
|
|
5951
|
-
function
|
|
5949
|
+
function Nc(r) {
|
|
5952
5950
|
return this.__data__.get(r);
|
|
5953
5951
|
}
|
|
5954
|
-
function
|
|
5952
|
+
function Lc(r) {
|
|
5955
5953
|
return this.__data__.has(r);
|
|
5956
5954
|
}
|
|
5957
|
-
var s0 = typeof global == "object" && global && global.Object === Object && global,
|
|
5958
|
-
function
|
|
5959
|
-
var e =
|
|
5955
|
+
var s0 = typeof global == "object" && global && global.Object === Object && global, Hc = typeof self == "object" && self && self.Object === Object && self, He = s0 || Hc || Function("return this")(), Ct = He.Symbol, i0 = Object.prototype, Uc = i0.hasOwnProperty, jc = i0.toString, It = Ct ? Ct.toStringTag : void 0;
|
|
5956
|
+
function qc(r) {
|
|
5957
|
+
var e = Uc.call(r, It), t = r[It];
|
|
5960
5958
|
try {
|
|
5961
5959
|
r[It] = void 0;
|
|
5962
5960
|
var n = !0;
|
|
5963
5961
|
} catch {
|
|
5964
5962
|
}
|
|
5965
|
-
var a =
|
|
5963
|
+
var a = jc.call(r);
|
|
5966
5964
|
return n && (e ? r[It] = t : delete r[It]), a;
|
|
5967
5965
|
}
|
|
5968
|
-
var
|
|
5969
|
-
function
|
|
5970
|
-
return
|
|
5966
|
+
var Wc = Object.prototype, Vc = Wc.toString;
|
|
5967
|
+
function Kc(r) {
|
|
5968
|
+
return Vc.call(r);
|
|
5971
5969
|
}
|
|
5972
|
-
var
|
|
5970
|
+
var Gc = "[object Null]", Xc = "[object Undefined]", Wo = Ct ? Ct.toStringTag : void 0;
|
|
5973
5971
|
function Ht(r) {
|
|
5974
|
-
return r == null ? r === void 0 ?
|
|
5972
|
+
return r == null ? r === void 0 ? Xc : Gc : Wo && Wo in Object(r) ? qc(r) : Kc(r);
|
|
5975
5973
|
}
|
|
5976
5974
|
function Ut(r) {
|
|
5977
5975
|
var e = typeof r;
|
|
5978
5976
|
return r != null && (e == "object" || e == "function");
|
|
5979
5977
|
}
|
|
5980
|
-
var
|
|
5978
|
+
var Qc = "[object AsyncFunction]", Zc = "[object Function]", Yc = "[object GeneratorFunction]", Jc = "[object Proxy]";
|
|
5981
5979
|
function c0(r) {
|
|
5982
5980
|
if (!Ut(r))
|
|
5983
5981
|
return !1;
|
|
5984
5982
|
var e = Ht(r);
|
|
5985
|
-
return e ==
|
|
5983
|
+
return e == Zc || e == Yc || e == Qc || e == Jc;
|
|
5986
5984
|
}
|
|
5987
|
-
var
|
|
5988
|
-
var r = /[^.]+$/.exec(
|
|
5985
|
+
var Qr = He["__core-js_shared__"], Vo = function() {
|
|
5986
|
+
var r = /[^.]+$/.exec(Qr && Qr.keys && Qr.keys.IE_PROTO || "");
|
|
5989
5987
|
return r ? "Symbol(src)_1." + r : "";
|
|
5990
5988
|
}();
|
|
5991
|
-
function
|
|
5989
|
+
function el(r) {
|
|
5992
5990
|
return !!Vo && Vo in r;
|
|
5993
5991
|
}
|
|
5994
|
-
var
|
|
5992
|
+
var tl = Function.prototype, rl = tl.toString;
|
|
5995
5993
|
function ft(r) {
|
|
5996
5994
|
if (r != null) {
|
|
5997
5995
|
try {
|
|
5998
|
-
return
|
|
5996
|
+
return rl.call(r);
|
|
5999
5997
|
} catch {
|
|
6000
5998
|
}
|
|
6001
5999
|
try {
|
|
@@ -6005,48 +6003,48 @@ function ft(r) {
|
|
|
6005
6003
|
}
|
|
6006
6004
|
return "";
|
|
6007
6005
|
}
|
|
6008
|
-
var
|
|
6009
|
-
"^" +
|
|
6006
|
+
var nl = /[\\^$.*+?()[\]{}|]/g, ol = /^\[object .+?Constructor\]$/, al = Function.prototype, sl = Object.prototype, il = al.toString, cl = sl.hasOwnProperty, ll = RegExp(
|
|
6007
|
+
"^" + il.call(cl).replace(nl, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
6010
6008
|
);
|
|
6011
|
-
function
|
|
6012
|
-
if (!Ut(r) ||
|
|
6009
|
+
function ul(r) {
|
|
6010
|
+
if (!Ut(r) || el(r))
|
|
6013
6011
|
return !1;
|
|
6014
|
-
var e = c0(r) ?
|
|
6012
|
+
var e = c0(r) ? ll : ol;
|
|
6015
6013
|
return e.test(ft(r));
|
|
6016
6014
|
}
|
|
6017
|
-
function
|
|
6015
|
+
function dl(r, e) {
|
|
6018
6016
|
return r == null ? void 0 : r[e];
|
|
6019
6017
|
}
|
|
6020
6018
|
function pt(r, e) {
|
|
6021
|
-
var t =
|
|
6022
|
-
return
|
|
6019
|
+
var t = dl(r, e);
|
|
6020
|
+
return ul(t) ? t : void 0;
|
|
6023
6021
|
}
|
|
6024
6022
|
var $t = pt(He, "Map"), zt = pt(Object, "create");
|
|
6025
|
-
function
|
|
6023
|
+
function fl() {
|
|
6026
6024
|
this.__data__ = zt ? zt(null) : {}, this.size = 0;
|
|
6027
6025
|
}
|
|
6028
|
-
function
|
|
6026
|
+
function pl(r) {
|
|
6029
6027
|
var e = this.has(r) && delete this.__data__[r];
|
|
6030
6028
|
return this.size -= e ? 1 : 0, e;
|
|
6031
6029
|
}
|
|
6032
|
-
var
|
|
6033
|
-
function
|
|
6030
|
+
var hl = "__lodash_hash_undefined__", xl = Object.prototype, vl = xl.hasOwnProperty;
|
|
6031
|
+
function gl(r) {
|
|
6034
6032
|
var e = this.__data__;
|
|
6035
6033
|
if (zt) {
|
|
6036
6034
|
var t = e[r];
|
|
6037
|
-
return t ===
|
|
6035
|
+
return t === hl ? void 0 : t;
|
|
6038
6036
|
}
|
|
6039
|
-
return
|
|
6037
|
+
return vl.call(e, r) ? e[r] : void 0;
|
|
6040
6038
|
}
|
|
6041
|
-
var
|
|
6042
|
-
function
|
|
6039
|
+
var ml = Object.prototype, _l = ml.hasOwnProperty;
|
|
6040
|
+
function Cl(r) {
|
|
6043
6041
|
var e = this.__data__;
|
|
6044
|
-
return zt ? e[r] !== void 0 :
|
|
6042
|
+
return zt ? e[r] !== void 0 : _l.call(e, r);
|
|
6045
6043
|
}
|
|
6046
|
-
var
|
|
6047
|
-
function
|
|
6044
|
+
var yl = "__lodash_hash_undefined__";
|
|
6045
|
+
function bl(r, e) {
|
|
6048
6046
|
var t = this.__data__;
|
|
6049
|
-
return this.size += this.has(r) ? 0 : 1, t[r] = zt && e === void 0 ?
|
|
6047
|
+
return this.size += this.has(r) ? 0 : 1, t[r] = zt && e === void 0 ? yl : e, this;
|
|
6050
6048
|
}
|
|
6051
6049
|
function it(r) {
|
|
6052
6050
|
var e = -1, t = r == null ? 0 : r.length;
|
|
@@ -6055,37 +6053,37 @@ function it(r) {
|
|
|
6055
6053
|
this.set(n[0], n[1]);
|
|
6056
6054
|
}
|
|
6057
6055
|
}
|
|
6058
|
-
it.prototype.clear =
|
|
6059
|
-
it.prototype.delete =
|
|
6060
|
-
it.prototype.get =
|
|
6061
|
-
it.prototype.has =
|
|
6062
|
-
it.prototype.set =
|
|
6063
|
-
function
|
|
6056
|
+
it.prototype.clear = fl;
|
|
6057
|
+
it.prototype.delete = pl;
|
|
6058
|
+
it.prototype.get = gl;
|
|
6059
|
+
it.prototype.has = Cl;
|
|
6060
|
+
it.prototype.set = bl;
|
|
6061
|
+
function wl() {
|
|
6064
6062
|
this.size = 0, this.__data__ = {
|
|
6065
6063
|
hash: new it(),
|
|
6066
6064
|
map: new ($t || We)(),
|
|
6067
6065
|
string: new it()
|
|
6068
6066
|
};
|
|
6069
6067
|
}
|
|
6070
|
-
function
|
|
6068
|
+
function El(r) {
|
|
6071
6069
|
var e = typeof r;
|
|
6072
6070
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? r !== "__proto__" : r === null;
|
|
6073
6071
|
}
|
|
6074
6072
|
function ir(r, e) {
|
|
6075
6073
|
var t = r.__data__;
|
|
6076
|
-
return
|
|
6074
|
+
return El(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
|
|
6077
6075
|
}
|
|
6078
|
-
function
|
|
6076
|
+
function Al(r) {
|
|
6079
6077
|
var e = ir(this, r).delete(r);
|
|
6080
6078
|
return this.size -= e ? 1 : 0, e;
|
|
6081
6079
|
}
|
|
6082
|
-
function
|
|
6080
|
+
function Bl(r) {
|
|
6083
6081
|
return ir(this, r).get(r);
|
|
6084
6082
|
}
|
|
6085
|
-
function
|
|
6083
|
+
function kl(r) {
|
|
6086
6084
|
return ir(this, r).has(r);
|
|
6087
6085
|
}
|
|
6088
|
-
function
|
|
6086
|
+
function Dl(r, e) {
|
|
6089
6087
|
var t = ir(this, r), n = t.size;
|
|
6090
6088
|
return t.set(r, e), this.size += t.size == n ? 0 : 1, this;
|
|
6091
6089
|
}
|
|
@@ -6096,17 +6094,17 @@ function At(r) {
|
|
|
6096
6094
|
this.set(n[0], n[1]);
|
|
6097
6095
|
}
|
|
6098
6096
|
}
|
|
6099
|
-
At.prototype.clear =
|
|
6100
|
-
At.prototype.delete =
|
|
6101
|
-
At.prototype.get =
|
|
6102
|
-
At.prototype.has =
|
|
6103
|
-
At.prototype.set =
|
|
6104
|
-
var
|
|
6105
|
-
function
|
|
6097
|
+
At.prototype.clear = wl;
|
|
6098
|
+
At.prototype.delete = Al;
|
|
6099
|
+
At.prototype.get = Bl;
|
|
6100
|
+
At.prototype.has = kl;
|
|
6101
|
+
At.prototype.set = Dl;
|
|
6102
|
+
var Sl = 200;
|
|
6103
|
+
function Fl(r, e) {
|
|
6106
6104
|
var t = this.__data__;
|
|
6107
6105
|
if (t instanceof We) {
|
|
6108
6106
|
var n = t.__data__;
|
|
6109
|
-
if (!$t || n.length <
|
|
6107
|
+
if (!$t || n.length < Sl - 1)
|
|
6110
6108
|
return n.push([r, e]), this.size = ++t.size, this;
|
|
6111
6109
|
t = this.__data__ = new At(n);
|
|
6112
6110
|
}
|
|
@@ -6116,12 +6114,12 @@ function Bt(r) {
|
|
|
6116
6114
|
var e = this.__data__ = new We(r);
|
|
6117
6115
|
this.size = e.size;
|
|
6118
6116
|
}
|
|
6119
|
-
Bt.prototype.clear =
|
|
6120
|
-
Bt.prototype.delete =
|
|
6121
|
-
Bt.prototype.get =
|
|
6122
|
-
Bt.prototype.has =
|
|
6123
|
-
Bt.prototype.set =
|
|
6124
|
-
function
|
|
6117
|
+
Bt.prototype.clear = Oc;
|
|
6118
|
+
Bt.prototype.delete = Mc;
|
|
6119
|
+
Bt.prototype.get = Nc;
|
|
6120
|
+
Bt.prototype.has = Lc;
|
|
6121
|
+
Bt.prototype.set = Fl;
|
|
6122
|
+
function Il(r, e) {
|
|
6125
6123
|
for (var t = -1, n = r == null ? 0 : r.length; ++t < n && e(r[t], t, r) !== !1; )
|
|
6126
6124
|
;
|
|
6127
6125
|
return r;
|
|
@@ -6141,10 +6139,10 @@ function l0(r, e, t) {
|
|
|
6141
6139
|
writable: !0
|
|
6142
6140
|
}) : r[e] = t;
|
|
6143
6141
|
}
|
|
6144
|
-
var
|
|
6142
|
+
var Tl = Object.prototype, Pl = Tl.hasOwnProperty;
|
|
6145
6143
|
function u0(r, e, t) {
|
|
6146
6144
|
var n = r[e];
|
|
6147
|
-
(!(
|
|
6145
|
+
(!(Pl.call(r, e) && a0(n, t)) || t === void 0 && !(e in r)) && l0(r, e, t);
|
|
6148
6146
|
}
|
|
6149
6147
|
function cr(r, e, t, n) {
|
|
6150
6148
|
var a = !t;
|
|
@@ -6155,7 +6153,7 @@ function cr(r, e, t, n) {
|
|
|
6155
6153
|
}
|
|
6156
6154
|
return t;
|
|
6157
6155
|
}
|
|
6158
|
-
function
|
|
6156
|
+
function Rl(r, e) {
|
|
6159
6157
|
for (var t = -1, n = Array(r); ++t < r; )
|
|
6160
6158
|
n[t] = e(t);
|
|
6161
6159
|
return n;
|
|
@@ -6163,58 +6161,58 @@ function $l(r, e) {
|
|
|
6163
6161
|
function jt(r) {
|
|
6164
6162
|
return r != null && typeof r == "object";
|
|
6165
6163
|
}
|
|
6166
|
-
var
|
|
6164
|
+
var $l = "[object Arguments]";
|
|
6167
6165
|
function Go(r) {
|
|
6168
|
-
return jt(r) && Ht(r) ==
|
|
6166
|
+
return jt(r) && Ht(r) == $l;
|
|
6169
6167
|
}
|
|
6170
|
-
var d0 = Object.prototype,
|
|
6168
|
+
var d0 = Object.prototype, zl = d0.hasOwnProperty, Ol = d0.propertyIsEnumerable, Ml = Go(/* @__PURE__ */ function() {
|
|
6171
6169
|
return arguments;
|
|
6172
6170
|
}()) ? Go : function(r) {
|
|
6173
|
-
return jt(r) &&
|
|
6174
|
-
},
|
|
6175
|
-
function
|
|
6171
|
+
return jt(r) && zl.call(r, "callee") && !Ol.call(r, "callee");
|
|
6172
|
+
}, An = Array.isArray;
|
|
6173
|
+
function Nl() {
|
|
6176
6174
|
return !1;
|
|
6177
6175
|
}
|
|
6178
|
-
var f0 = typeof exports == "object" && exports && !exports.nodeType && exports, Xo = f0 && typeof module == "object" && module && !module.nodeType && module,
|
|
6179
|
-
function
|
|
6176
|
+
var f0 = typeof exports == "object" && exports && !exports.nodeType && exports, Xo = f0 && typeof module == "object" && module && !module.nodeType && module, Ll = Xo && Xo.exports === f0, Qo = Ll ? He.Buffer : void 0, Hl = Qo ? Qo.isBuffer : void 0, p0 = Hl || Nl, Ul = 9007199254740991, jl = /^(?:0|[1-9]\d*)$/;
|
|
6177
|
+
function ql(r, e) {
|
|
6180
6178
|
var t = typeof r;
|
|
6181
|
-
return e = e ??
|
|
6179
|
+
return e = e ?? Ul, !!e && (t == "number" || t != "symbol" && jl.test(r)) && r > -1 && r % 1 == 0 && r < e;
|
|
6182
6180
|
}
|
|
6183
|
-
var
|
|
6181
|
+
var Wl = 9007199254740991;
|
|
6184
6182
|
function h0(r) {
|
|
6185
|
-
return typeof r == "number" && r > -1 && r % 1 == 0 && r <=
|
|
6183
|
+
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Wl;
|
|
6186
6184
|
}
|
|
6187
|
-
var
|
|
6188
|
-
le[cu] = le[lu] = le[uu] = le[du] = le[fu] = le[pu] = le[hu] = le[xu] =
|
|
6189
|
-
le[Kl] = le[
|
|
6190
|
-
function
|
|
6185
|
+
var Vl = "[object Arguments]", Kl = "[object Array]", Gl = "[object Boolean]", Xl = "[object Date]", Ql = "[object Error]", Zl = "[object Function]", Yl = "[object Map]", Jl = "[object Number]", eu = "[object Object]", tu = "[object RegExp]", ru = "[object Set]", nu = "[object String]", ou = "[object WeakMap]", au = "[object ArrayBuffer]", su = "[object DataView]", iu = "[object Float32Array]", cu = "[object Float64Array]", lu = "[object Int8Array]", uu = "[object Int16Array]", du = "[object Int32Array]", fu = "[object Uint8Array]", pu = "[object Uint8ClampedArray]", hu = "[object Uint16Array]", xu = "[object Uint32Array]", le = {};
|
|
6186
|
+
le[iu] = le[cu] = le[lu] = le[uu] = le[du] = le[fu] = le[pu] = le[hu] = le[xu] = !0;
|
|
6187
|
+
le[Vl] = le[Kl] = le[au] = le[Gl] = le[su] = le[Xl] = le[Ql] = le[Zl] = le[Yl] = le[Jl] = le[eu] = le[tu] = le[ru] = le[nu] = le[ou] = !1;
|
|
6188
|
+
function vu(r) {
|
|
6191
6189
|
return jt(r) && h0(r.length) && !!le[Ht(r)];
|
|
6192
6190
|
}
|
|
6193
|
-
function
|
|
6191
|
+
function Bn(r) {
|
|
6194
6192
|
return function(e) {
|
|
6195
6193
|
return r(e);
|
|
6196
6194
|
};
|
|
6197
6195
|
}
|
|
6198
|
-
var x0 = typeof exports == "object" && exports && !exports.nodeType && exports, Pt = x0 && typeof module == "object" && module && !module.nodeType && module,
|
|
6196
|
+
var x0 = typeof exports == "object" && exports && !exports.nodeType && exports, Pt = x0 && typeof module == "object" && module && !module.nodeType && module, gu = Pt && Pt.exports === x0, Zr = gu && s0.process, yt = function() {
|
|
6199
6197
|
try {
|
|
6200
6198
|
var r = Pt && Pt.require && Pt.require("util").types;
|
|
6201
|
-
return r ||
|
|
6199
|
+
return r || Zr && Zr.binding && Zr.binding("util");
|
|
6202
6200
|
} catch {
|
|
6203
6201
|
}
|
|
6204
|
-
}(), Zo = yt && yt.isTypedArray,
|
|
6202
|
+
}(), Zo = yt && yt.isTypedArray, mu = Zo ? Bn(Zo) : vu, _u = Object.prototype, Cu = _u.hasOwnProperty;
|
|
6205
6203
|
function v0(r, e) {
|
|
6206
|
-
var t =
|
|
6204
|
+
var t = An(r), n = !t && Ml(r), a = !t && !n && p0(r), s = !t && !n && !a && mu(r), i = t || n || a || s, l = i ? Rl(r.length, String) : [], u = l.length;
|
|
6207
6205
|
for (var o in r)
|
|
6208
|
-
(e ||
|
|
6206
|
+
(e || Cu.call(r, o)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
6209
6207
|
(o == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
6210
6208
|
a && (o == "offset" || o == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
6211
6209
|
s && (o == "buffer" || o == "byteLength" || o == "byteOffset") || // Skip index properties.
|
|
6212
|
-
|
|
6210
|
+
ql(o, u))) && l.push(o);
|
|
6213
6211
|
return l;
|
|
6214
6212
|
}
|
|
6215
|
-
var
|
|
6216
|
-
function
|
|
6217
|
-
var e = r && r.constructor, t = typeof e == "function" && e.prototype ||
|
|
6213
|
+
var yu = Object.prototype;
|
|
6214
|
+
function kn(r) {
|
|
6215
|
+
var e = r && r.constructor, t = typeof e == "function" && e.prototype || yu;
|
|
6218
6216
|
return r === t;
|
|
6219
6217
|
}
|
|
6220
6218
|
function g0(r, e) {
|
|
@@ -6222,60 +6220,60 @@ function g0(r, e) {
|
|
|
6222
6220
|
return r(e(t));
|
|
6223
6221
|
};
|
|
6224
6222
|
}
|
|
6225
|
-
var
|
|
6226
|
-
function
|
|
6227
|
-
if (!
|
|
6228
|
-
return
|
|
6223
|
+
var bu = g0(Object.keys, Object), wu = Object.prototype, Eu = wu.hasOwnProperty;
|
|
6224
|
+
function Au(r) {
|
|
6225
|
+
if (!kn(r))
|
|
6226
|
+
return bu(r);
|
|
6229
6227
|
var e = [];
|
|
6230
6228
|
for (var t in Object(r))
|
|
6231
|
-
|
|
6229
|
+
Eu.call(r, t) && t != "constructor" && e.push(t);
|
|
6232
6230
|
return e;
|
|
6233
6231
|
}
|
|
6234
6232
|
function m0(r) {
|
|
6235
6233
|
return r != null && h0(r.length) && !c0(r);
|
|
6236
6234
|
}
|
|
6237
|
-
function
|
|
6238
|
-
return m0(r) ? v0(r) :
|
|
6235
|
+
function Dn(r) {
|
|
6236
|
+
return m0(r) ? v0(r) : Au(r);
|
|
6239
6237
|
}
|
|
6240
|
-
function
|
|
6241
|
-
return r && cr(e,
|
|
6238
|
+
function Bu(r, e) {
|
|
6239
|
+
return r && cr(e, Dn(e), r);
|
|
6242
6240
|
}
|
|
6243
|
-
function
|
|
6241
|
+
function ku(r) {
|
|
6244
6242
|
var e = [];
|
|
6245
6243
|
if (r != null)
|
|
6246
6244
|
for (var t in Object(r))
|
|
6247
6245
|
e.push(t);
|
|
6248
6246
|
return e;
|
|
6249
6247
|
}
|
|
6250
|
-
var
|
|
6251
|
-
function
|
|
6248
|
+
var Du = Object.prototype, Su = Du.hasOwnProperty;
|
|
6249
|
+
function Fu(r) {
|
|
6252
6250
|
if (!Ut(r))
|
|
6253
|
-
return
|
|
6254
|
-
var e =
|
|
6251
|
+
return ku(r);
|
|
6252
|
+
var e = kn(r), t = [];
|
|
6255
6253
|
for (var n in r)
|
|
6256
|
-
n == "constructor" && (e || !
|
|
6254
|
+
n == "constructor" && (e || !Su.call(r, n)) || t.push(n);
|
|
6257
6255
|
return t;
|
|
6258
6256
|
}
|
|
6259
|
-
function
|
|
6260
|
-
return m0(r) ? v0(r, !0) :
|
|
6257
|
+
function Sn(r) {
|
|
6258
|
+
return m0(r) ? v0(r, !0) : Fu(r);
|
|
6261
6259
|
}
|
|
6262
|
-
function
|
|
6263
|
-
return r && cr(e,
|
|
6260
|
+
function Iu(r, e) {
|
|
6261
|
+
return r && cr(e, Sn(e), r);
|
|
6264
6262
|
}
|
|
6265
|
-
var _0 = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
6266
|
-
function
|
|
6263
|
+
var _0 = typeof exports == "object" && exports && !exports.nodeType && exports, Yo = _0 && typeof module == "object" && module && !module.nodeType && module, Tu = Yo && Yo.exports === _0, Jo = Tu ? He.Buffer : void 0, ea = Jo ? Jo.allocUnsafe : void 0;
|
|
6264
|
+
function Pu(r, e) {
|
|
6267
6265
|
if (e)
|
|
6268
6266
|
return r.slice();
|
|
6269
6267
|
var t = r.length, n = ea ? ea(t) : new r.constructor(t);
|
|
6270
6268
|
return r.copy(n), n;
|
|
6271
6269
|
}
|
|
6272
|
-
function
|
|
6270
|
+
function Ru(r, e) {
|
|
6273
6271
|
var t = -1, n = r.length;
|
|
6274
6272
|
for (e || (e = Array(n)); ++t < n; )
|
|
6275
6273
|
e[t] = r[t];
|
|
6276
6274
|
return e;
|
|
6277
6275
|
}
|
|
6278
|
-
function
|
|
6276
|
+
function $u(r, e) {
|
|
6279
6277
|
for (var t = -1, n = r == null ? 0 : r.length, a = 0, s = []; ++t < n; ) {
|
|
6280
6278
|
var i = r[t];
|
|
6281
6279
|
e(i, t, r) && (s[a++] = i);
|
|
@@ -6285,93 +6283,94 @@ function zu(r, e) {
|
|
|
6285
6283
|
function C0() {
|
|
6286
6284
|
return [];
|
|
6287
6285
|
}
|
|
6288
|
-
var
|
|
6289
|
-
return r == null ? [] : (r = Object(r),
|
|
6290
|
-
return
|
|
6286
|
+
var zu = Object.prototype, Ou = zu.propertyIsEnumerable, ta = Object.getOwnPropertySymbols, Fn = ta ? function(r) {
|
|
6287
|
+
return r == null ? [] : (r = Object(r), $u(ta(r), function(e) {
|
|
6288
|
+
return Ou.call(r, e);
|
|
6291
6289
|
}));
|
|
6292
6290
|
} : C0;
|
|
6293
|
-
function
|
|
6294
|
-
return cr(r,
|
|
6291
|
+
function Mu(r, e) {
|
|
6292
|
+
return cr(r, Fn(r), e);
|
|
6295
6293
|
}
|
|
6296
6294
|
function y0(r, e) {
|
|
6297
6295
|
for (var t = -1, n = e.length, a = r.length; ++t < n; )
|
|
6298
6296
|
r[a + t] = e[t];
|
|
6299
6297
|
return r;
|
|
6300
6298
|
}
|
|
6301
|
-
var b0 = g0(Object.getPrototypeOf, Object),
|
|
6299
|
+
var b0 = g0(Object.getPrototypeOf, Object), Nu = Object.getOwnPropertySymbols, w0 = Nu ? function(r) {
|
|
6302
6300
|
for (var e = []; r; )
|
|
6303
|
-
y0(e,
|
|
6301
|
+
y0(e, Fn(r)), r = b0(r);
|
|
6304
6302
|
return e;
|
|
6305
6303
|
} : C0;
|
|
6306
|
-
function
|
|
6304
|
+
function Lu(r, e) {
|
|
6307
6305
|
return cr(r, w0(r), e);
|
|
6308
6306
|
}
|
|
6309
6307
|
function E0(r, e, t) {
|
|
6310
6308
|
var n = e(r);
|
|
6311
|
-
return
|
|
6309
|
+
return An(r) ? n : y0(n, t(r));
|
|
6312
6310
|
}
|
|
6313
|
-
function
|
|
6314
|
-
return E0(r,
|
|
6311
|
+
function Hu(r) {
|
|
6312
|
+
return E0(r, Dn, Fn);
|
|
6315
6313
|
}
|
|
6316
|
-
function
|
|
6317
|
-
return E0(r,
|
|
6314
|
+
function Uu(r) {
|
|
6315
|
+
return E0(r, Sn, w0);
|
|
6318
6316
|
}
|
|
6319
|
-
var
|
|
6320
|
-
(
|
|
6321
|
-
var e = Ht(r), t = e ==
|
|
6317
|
+
var an = pt(He, "DataView"), sn = pt(He, "Promise"), cn = pt(He, "Set"), ln = pt(He, "WeakMap"), ra = "[object Map]", ju = "[object Object]", na = "[object Promise]", oa = "[object Set]", aa = "[object WeakMap]", sa = "[object DataView]", qu = ft(an), Wu = ft($t), Vu = ft(sn), Ku = ft(cn), Gu = ft(ln), Ue = Ht;
|
|
6318
|
+
(an && Ue(new an(new ArrayBuffer(1))) != sa || $t && Ue(new $t()) != ra || sn && Ue(sn.resolve()) != na || cn && Ue(new cn()) != oa || ln && Ue(new ln()) != aa) && (Ue = function(r) {
|
|
6319
|
+
var e = Ht(r), t = e == ju ? r.constructor : void 0, n = t ? ft(t) : "";
|
|
6322
6320
|
if (n)
|
|
6323
6321
|
switch (n) {
|
|
6324
|
-
case
|
|
6322
|
+
case qu:
|
|
6325
6323
|
return sa;
|
|
6326
|
-
case
|
|
6324
|
+
case Wu:
|
|
6327
6325
|
return ra;
|
|
6328
|
-
case
|
|
6326
|
+
case Vu:
|
|
6329
6327
|
return na;
|
|
6330
|
-
case
|
|
6328
|
+
case Ku:
|
|
6331
6329
|
return oa;
|
|
6332
|
-
case
|
|
6330
|
+
case Gu:
|
|
6333
6331
|
return aa;
|
|
6334
6332
|
}
|
|
6335
6333
|
return e;
|
|
6336
6334
|
});
|
|
6337
|
-
var
|
|
6338
|
-
function
|
|
6335
|
+
var Xu = Object.prototype, Qu = Xu.hasOwnProperty;
|
|
6336
|
+
function Zu(r) {
|
|
6339
6337
|
var e = r.length, t = new r.constructor(e);
|
|
6340
|
-
return e && typeof r[0] == "string" &&
|
|
6338
|
+
return e && typeof r[0] == "string" && Qu.call(r, "index") && (t.index = r.index, t.input = r.input), t;
|
|
6341
6339
|
}
|
|
6342
6340
|
var ia = He.Uint8Array;
|
|
6343
|
-
function
|
|
6341
|
+
function In(r) {
|
|
6344
6342
|
var e = new r.constructor(r.byteLength);
|
|
6345
6343
|
return new ia(e).set(new ia(r)), e;
|
|
6346
6344
|
}
|
|
6347
6345
|
function Yu(r, e) {
|
|
6348
|
-
var t = e ?
|
|
6346
|
+
var t = e ? In(r.buffer) : r.buffer;
|
|
6349
6347
|
return new r.constructor(t, r.byteOffset, r.byteLength);
|
|
6350
6348
|
}
|
|
6351
|
-
var
|
|
6352
|
-
function
|
|
6353
|
-
var e = new r.constructor(r.source,
|
|
6349
|
+
var Ju = /\w*$/;
|
|
6350
|
+
function ed(r) {
|
|
6351
|
+
var e = new r.constructor(r.source, Ju.exec(r));
|
|
6354
6352
|
return e.lastIndex = r.lastIndex, e;
|
|
6355
6353
|
}
|
|
6356
6354
|
var ca = Ct ? Ct.prototype : void 0, la = ca ? ca.valueOf : void 0;
|
|
6357
|
-
function
|
|
6355
|
+
function td(r) {
|
|
6358
6356
|
return la ? Object(la.call(r)) : {};
|
|
6359
6357
|
}
|
|
6360
|
-
function
|
|
6361
|
-
var t = e ?
|
|
6358
|
+
function rd(r, e) {
|
|
6359
|
+
var t = e ? In(r.buffer) : r.buffer;
|
|
6362
6360
|
return new r.constructor(t, r.byteOffset, r.length);
|
|
6363
6361
|
}
|
|
6364
|
-
var
|
|
6365
|
-
function
|
|
6362
|
+
var nd = "[object Boolean]", od = "[object Date]", ad = "[object Map]", sd = "[object Number]", id = "[object RegExp]", cd = "[object Set]", ld = "[object String]", ud = "[object Symbol]", dd = "[object ArrayBuffer]", fd = "[object DataView]", pd = "[object Float32Array]", hd = "[object Float64Array]", xd = "[object Int8Array]", vd = "[object Int16Array]", gd = "[object Int32Array]", md = "[object Uint8Array]", _d = "[object Uint8ClampedArray]", Cd = "[object Uint16Array]", yd = "[object Uint32Array]";
|
|
6363
|
+
function bd(r, e, t) {
|
|
6366
6364
|
var n = r.constructor;
|
|
6367
6365
|
switch (e) {
|
|
6368
|
-
case
|
|
6369
|
-
return
|
|
6366
|
+
case dd:
|
|
6367
|
+
return In(r);
|
|
6368
|
+
case nd:
|
|
6370
6369
|
case od:
|
|
6371
|
-
case ad:
|
|
6372
6370
|
return new n(+r);
|
|
6373
|
-
case
|
|
6371
|
+
case fd:
|
|
6374
6372
|
return Yu(r, t);
|
|
6373
|
+
case pd:
|
|
6375
6374
|
case hd:
|
|
6376
6375
|
case xd:
|
|
6377
6376
|
case vd:
|
|
@@ -6380,22 +6379,21 @@ function wd(r, e, t) {
|
|
|
6380
6379
|
case _d:
|
|
6381
6380
|
case Cd:
|
|
6382
6381
|
case yd:
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
case sd:
|
|
6382
|
+
return rd(r, t);
|
|
6383
|
+
case ad:
|
|
6386
6384
|
return new n();
|
|
6387
|
-
case
|
|
6388
|
-
case
|
|
6385
|
+
case sd:
|
|
6386
|
+
case ld:
|
|
6389
6387
|
return new n(r);
|
|
6388
|
+
case id:
|
|
6389
|
+
return ed(r);
|
|
6390
6390
|
case cd:
|
|
6391
|
-
return td(r);
|
|
6392
|
-
case ld:
|
|
6393
6391
|
return new n();
|
|
6394
|
-
case
|
|
6395
|
-
return
|
|
6392
|
+
case ud:
|
|
6393
|
+
return td(r);
|
|
6396
6394
|
}
|
|
6397
6395
|
}
|
|
6398
|
-
var ua = Object.create,
|
|
6396
|
+
var ua = Object.create, wd = /* @__PURE__ */ function() {
|
|
6399
6397
|
function r() {
|
|
6400
6398
|
}
|
|
6401
6399
|
return function(e) {
|
|
@@ -6408,60 +6406,60 @@ var ua = Object.create, Ed = /* @__PURE__ */ function() {
|
|
|
6408
6406
|
return r.prototype = void 0, t;
|
|
6409
6407
|
};
|
|
6410
6408
|
}();
|
|
6411
|
-
function
|
|
6412
|
-
return typeof r.constructor == "function" && !
|
|
6409
|
+
function Ed(r) {
|
|
6410
|
+
return typeof r.constructor == "function" && !kn(r) ? wd(b0(r)) : {};
|
|
6413
6411
|
}
|
|
6414
|
-
var
|
|
6415
|
-
function
|
|
6416
|
-
return jt(r) && Ue(r) ==
|
|
6412
|
+
var Ad = "[object Map]";
|
|
6413
|
+
function Bd(r) {
|
|
6414
|
+
return jt(r) && Ue(r) == Ad;
|
|
6417
6415
|
}
|
|
6418
|
-
var da = yt && yt.isMap,
|
|
6419
|
-
function
|
|
6420
|
-
return jt(r) && Ue(r) ==
|
|
6416
|
+
var da = yt && yt.isMap, kd = da ? Bn(da) : Bd, Dd = "[object Set]";
|
|
6417
|
+
function Sd(r) {
|
|
6418
|
+
return jt(r) && Ue(r) == Dd;
|
|
6421
6419
|
}
|
|
6422
|
-
var fa = yt && yt.isSet,
|
|
6423
|
-
ce[A0] = ce[
|
|
6424
|
-
ce[
|
|
6420
|
+
var fa = yt && yt.isSet, Fd = fa ? Bn(fa) : Sd, Id = 1, Td = 2, Pd = 4, A0 = "[object Arguments]", Rd = "[object Array]", $d = "[object Boolean]", zd = "[object Date]", Od = "[object Error]", B0 = "[object Function]", Md = "[object GeneratorFunction]", Nd = "[object Map]", Ld = "[object Number]", k0 = "[object Object]", Hd = "[object RegExp]", Ud = "[object Set]", jd = "[object String]", qd = "[object Symbol]", Wd = "[object WeakMap]", Vd = "[object ArrayBuffer]", Kd = "[object DataView]", Gd = "[object Float32Array]", Xd = "[object Float64Array]", Qd = "[object Int8Array]", Zd = "[object Int16Array]", Yd = "[object Int32Array]", Jd = "[object Uint8Array]", ef = "[object Uint8ClampedArray]", tf = "[object Uint16Array]", rf = "[object Uint32Array]", ce = {};
|
|
6421
|
+
ce[A0] = ce[Rd] = ce[Vd] = ce[Kd] = ce[$d] = ce[zd] = ce[Gd] = ce[Xd] = ce[Qd] = ce[Zd] = ce[Yd] = ce[Nd] = ce[Ld] = ce[k0] = ce[Hd] = ce[Ud] = ce[jd] = ce[qd] = ce[Jd] = ce[ef] = ce[tf] = ce[rf] = !0;
|
|
6422
|
+
ce[Od] = ce[B0] = ce[Wd] = !1;
|
|
6425
6423
|
function Xt(r, e, t, n, a, s) {
|
|
6426
|
-
var i, l = e &
|
|
6424
|
+
var i, l = e & Id, u = e & Td, o = e & Pd;
|
|
6427
6425
|
if (i !== void 0)
|
|
6428
6426
|
return i;
|
|
6429
6427
|
if (!Ut(r))
|
|
6430
6428
|
return r;
|
|
6431
|
-
var c =
|
|
6429
|
+
var c = An(r);
|
|
6432
6430
|
if (c) {
|
|
6433
|
-
if (i =
|
|
6434
|
-
return
|
|
6431
|
+
if (i = Zu(r), !l)
|
|
6432
|
+
return Ru(r, i);
|
|
6435
6433
|
} else {
|
|
6436
|
-
var _ = Ue(r), d = _ == B0 || _ ==
|
|
6434
|
+
var _ = Ue(r), d = _ == B0 || _ == Md;
|
|
6437
6435
|
if (p0(r))
|
|
6438
|
-
return
|
|
6436
|
+
return Pu(r, l);
|
|
6439
6437
|
if (_ == k0 || _ == A0 || d && !a) {
|
|
6440
|
-
if (i = u || d ? {} :
|
|
6441
|
-
return u ?
|
|
6438
|
+
if (i = u || d ? {} : Ed(r), !l)
|
|
6439
|
+
return u ? Lu(r, Iu(i, r)) : Mu(r, Bu(i, r));
|
|
6442
6440
|
} else {
|
|
6443
6441
|
if (!ce[_])
|
|
6444
6442
|
return a ? r : {};
|
|
6445
|
-
i =
|
|
6443
|
+
i = bd(r, _, l);
|
|
6446
6444
|
}
|
|
6447
6445
|
}
|
|
6448
6446
|
s || (s = new Bt());
|
|
6449
6447
|
var h = s.get(r);
|
|
6450
6448
|
if (h)
|
|
6451
6449
|
return h;
|
|
6452
|
-
s.set(r, i),
|
|
6450
|
+
s.set(r, i), Fd(r) ? r.forEach(function(x) {
|
|
6453
6451
|
i.add(Xt(x, e, t, x, r, s));
|
|
6454
|
-
}) :
|
|
6452
|
+
}) : kd(r) && r.forEach(function(x, m) {
|
|
6455
6453
|
i.set(m, Xt(x, e, t, m, r, s));
|
|
6456
6454
|
});
|
|
6457
|
-
var p = o ? u ?
|
|
6458
|
-
return
|
|
6455
|
+
var p = o ? u ? Uu : Hu : u ? Sn : Dn, g = c ? void 0 : p(r);
|
|
6456
|
+
return Il(g || r, function(x, m) {
|
|
6459
6457
|
g && (m = x, x = r[m]), u0(i, m, Xt(x, e, t, m, r, s));
|
|
6460
6458
|
}), i;
|
|
6461
6459
|
}
|
|
6462
|
-
var
|
|
6463
|
-
function
|
|
6464
|
-
return Xt(r,
|
|
6460
|
+
var nf = 1, of = 4;
|
|
6461
|
+
function Jt(r) {
|
|
6462
|
+
return Xt(r, nf | of);
|
|
6465
6463
|
}
|
|
6466
6464
|
const er = (r, e = "") => {
|
|
6467
6465
|
for (let t of r)
|
|
@@ -6482,7 +6480,7 @@ const er = (r, e = "") => {
|
|
|
6482
6480
|
}
|
|
6483
6481
|
}
|
|
6484
6482
|
return null;
|
|
6485
|
-
},
|
|
6483
|
+
}, af = (r, e) => {
|
|
6486
6484
|
let t;
|
|
6487
6485
|
const n = r.findIndex((i) => i.code === e);
|
|
6488
6486
|
if (n === -1) return { index: n, target: t };
|
|
@@ -6490,19 +6488,19 @@ const er = (r, e = "") => {
|
|
|
6490
6488
|
return s.length && (t = s[0]), t || a.length && (t = a[a.length - 1]), { index: n, target: t };
|
|
6491
6489
|
}, pa = (r) => {
|
|
6492
6490
|
const e = de().subAppList ?? [];
|
|
6493
|
-
let { index: t, target: n } =
|
|
6494
|
-
return e.splice(t, 1), e.length ? Qe([{ key: "subAppList", value: e }]) :
|
|
6491
|
+
let { index: t, target: n } = af(e, r);
|
|
6492
|
+
return e.splice(t, 1), e.length ? Qe([{ key: "subAppList", value: e }]) : bn(), Ie([
|
|
6495
6493
|
{ key: "currentCode", value: "" },
|
|
6496
6494
|
{ key: "currentTab", value: {} },
|
|
6497
6495
|
{ key: `preTab:${r}`, value: {} },
|
|
6498
6496
|
{ key: `tabMap:${r}`, value: [] }
|
|
6499
6497
|
]), n || (n = { fixed: !0, path: qe }), { currentApp: n };
|
|
6500
|
-
},
|
|
6498
|
+
}, sf = (r, e) => {
|
|
6501
6499
|
const t = r.findIndex((s) => s.code === e), n = r.slice(0, t), a = r.slice(t + 1);
|
|
6502
6500
|
return { left: n, right: a };
|
|
6503
|
-
},
|
|
6501
|
+
}, cf = (r, e, t) => {
|
|
6504
6502
|
var _;
|
|
6505
|
-
const n = Re(e).filter((d) => d.routeUrl).filter((d) => !(d != null && d.disable) && !(d != null && d.expired)), s = (((_ = De()) == null ? void 0 : _.tabMap) ?? {})[r] ?? [], { left: i, right: l } =
|
|
6503
|
+
const n = Re(e).filter((d) => d.routeUrl).filter((d) => !(d != null && d.disable) && !(d != null && d.expired)), s = (((_ = De()) == null ? void 0 : _.tabMap) ?? {})[r] ?? [], { left: i, right: l } = sf(s, t), u = s.filter((d) => n.find((h) => h.code === d.code)).map((d) => {
|
|
6506
6504
|
var h;
|
|
6507
6505
|
return {
|
|
6508
6506
|
...d,
|
|
@@ -6543,22 +6541,22 @@ const er = (r, e = "") => {
|
|
|
6543
6541
|
{ key: `preTab:${r}`, value: {} },
|
|
6544
6542
|
{ key: `tabMap:${r}`, value: [] }
|
|
6545
6543
|
]), pa(r));
|
|
6546
|
-
},
|
|
6547
|
-
const [e, t] = await
|
|
6544
|
+
}, Tn = async (r) => {
|
|
6545
|
+
const [e, t] = await Dc().run({
|
|
6548
6546
|
code: r,
|
|
6549
6547
|
showBtn: !0,
|
|
6550
6548
|
userType: 1
|
|
6551
6549
|
});
|
|
6552
6550
|
if (e || !t || !t.length) return { menus: [], originalMenus: [], err: e };
|
|
6553
|
-
|
|
6551
|
+
gi(t, r);
|
|
6554
6552
|
const n = Re(t);
|
|
6555
|
-
|
|
6553
|
+
_i(n, r), yi(n, r);
|
|
6556
6554
|
let a = ps(t, (i) => i.isMenu);
|
|
6557
|
-
const s =
|
|
6555
|
+
const s = Jt(a);
|
|
6558
6556
|
return a.forEach((i) => {
|
|
6559
|
-
i != null && i.children && i.children.length && (i.originalChildren =
|
|
6557
|
+
i != null && i.children && i.children.length && (i.originalChildren = Jt(i.children)), (i != null && i.expired || i != null && i.disable) && (i.children = []);
|
|
6560
6558
|
}), { menus: a, originalMenus: s };
|
|
6561
|
-
},
|
|
6559
|
+
}, lf = async (r) => {
|
|
6562
6560
|
var d, h, p, g, x;
|
|
6563
6561
|
let { microApp: e = null, menuCode: t = "", menuPath: n = "", route: a = {} } = r;
|
|
6564
6562
|
const s = ((d = a.meta) == null ? void 0 : d.showLayout) ?? !0;
|
|
@@ -6569,7 +6567,7 @@ const er = (r, e = "") => {
|
|
|
6569
6567
|
let u = [], o = [];
|
|
6570
6568
|
const c = de().subAppList ?? [];
|
|
6571
6569
|
if (c.length && (u = ((p = c.find((m) => m.code === e.code)) == null ? void 0 : p.menus) ?? []), !u.length) {
|
|
6572
|
-
const { menus: m, originalMenus: f } = await
|
|
6570
|
+
const { menus: m, originalMenus: f } = await Tn(l);
|
|
6573
6571
|
u = m ?? [], o = f ?? [];
|
|
6574
6572
|
}
|
|
6575
6573
|
if (!u.length && (!s || !i))
|
|
@@ -6613,7 +6611,7 @@ const er = (r, e = "") => {
|
|
|
6613
6611
|
if (!_) {
|
|
6614
6612
|
if (!s || !i)
|
|
6615
6613
|
return { menuConfig: u, currentApp: null, currentMenu: null, query: { ...a.query, app: l } };
|
|
6616
|
-
const m =
|
|
6614
|
+
const m = cf(e.code, u, t);
|
|
6617
6615
|
m != null && m.currentApp && (e = m.currentApp), m != null && m.currentMenu && (_ = m.currentMenu), m != null && m.currentTab && (a.query = ((x = m.currentTab) == null ? void 0 : x.query) ?? {});
|
|
6618
6616
|
}
|
|
6619
6617
|
if ((e == null ? void 0 : e.routeUrl) === qe)
|
|
@@ -6662,17 +6660,17 @@ const er = (r, e = "") => {
|
|
|
6662
6660
|
return { menuConfig: u, currentApp: e, currentMenu: _, query: v, microPath: f };
|
|
6663
6661
|
}
|
|
6664
6662
|
return { menuConfig: u, currentApp: e, currentMenu: null, query: { ...a.query, app: l } };
|
|
6665
|
-
},
|
|
6666
|
-
|
|
6663
|
+
}, uf = "v1", df = nr.get("/visitor/login/with-default", (r) => (r.public = !0, r)), ff = nr.get("/visitor/appearance/with-default", (r) => (r.public = !0, r)), pf = nr.get("platform/appearance/withdefault"), hf = Je(`/api/portal/manager/${uf}`);
|
|
6664
|
+
hf.get("/basics/home/info");
|
|
6667
6665
|
Fa.get("/language");
|
|
6668
6666
|
Fa.get("/menu/personal-setting");
|
|
6669
|
-
const
|
|
6670
|
-
const [r, e] = await
|
|
6667
|
+
const xf = async () => {
|
|
6668
|
+
const [r, e] = await df().run();
|
|
6671
6669
|
return r ? { loginConfig: null } : { loginConfig: e };
|
|
6672
|
-
},
|
|
6673
|
-
const r =
|
|
6670
|
+
}, vf = async () => {
|
|
6671
|
+
const r = Ye() ? pf : ff, [e, t] = await r().run();
|
|
6674
6672
|
return e ? { platformConfig: null } : { platformConfig: t };
|
|
6675
|
-
},
|
|
6673
|
+
}, gf = M(null), D0 = M({ style: 1, skinStyle: "default" }), mf = () => M(null), _f = { class: "iframe-container" }, Cf = ["src"], yf = /* @__PURE__ */ we({
|
|
6676
6674
|
__name: "index",
|
|
6677
6675
|
props: {
|
|
6678
6676
|
src: { default: "" }
|
|
@@ -6682,8 +6680,8 @@ const vf = async () => {
|
|
|
6682
6680
|
var i, l;
|
|
6683
6681
|
n.value && (i = t.value) != null && i.contentWindow && ((l = t.value.contentWindow) == null || l.postMessage(
|
|
6684
6682
|
{
|
|
6685
|
-
token:
|
|
6686
|
-
userInfo:
|
|
6683
|
+
token: Ye(),
|
|
6684
|
+
userInfo: hn(),
|
|
6687
6685
|
projectInfo: Ze()
|
|
6688
6686
|
},
|
|
6689
6687
|
e.src
|
|
@@ -6693,8 +6691,8 @@ const vf = async () => {
|
|
|
6693
6691
|
};
|
|
6694
6692
|
return Nt(() => {
|
|
6695
6693
|
n.value = !1;
|
|
6696
|
-
}), (i, l) => (
|
|
6697
|
-
i.src ? (
|
|
6694
|
+
}), (i, l) => (J(), Se("div", _f, [
|
|
6695
|
+
i.src ? (J(), se(F(gn), {
|
|
6698
6696
|
key: 0,
|
|
6699
6697
|
spinning: !n.value
|
|
6700
6698
|
}, {
|
|
@@ -6707,7 +6705,7 @@ const vf = async () => {
|
|
|
6707
6705
|
height: "100%",
|
|
6708
6706
|
src: i.src,
|
|
6709
6707
|
onLoad: s
|
|
6710
|
-
}, null, 40,
|
|
6708
|
+
}, null, 40, Cf), [
|
|
6711
6709
|
[es, n.value]
|
|
6712
6710
|
])
|
|
6713
6711
|
]),
|
|
@@ -6716,12 +6714,12 @@ const vf = async () => {
|
|
|
6716
6714
|
}, 8, ["spinning"])) : oe("v-if", !0)
|
|
6717
6715
|
]));
|
|
6718
6716
|
}
|
|
6719
|
-
}),
|
|
6717
|
+
}), un = /* @__PURE__ */ Le(yf, [["__scopeId", "data-v-d0f25bba"]]), bf = xn.get("/login/history"), wf = () => {
|
|
6720
6718
|
const r = () => ["/licenseActivate", "/licenseDataManage", "/sso-logout"].some((u) => new RegExp(`^${u}$`, "i").test(location.pathname)), e = (i) => {
|
|
6721
6719
|
const { browserLogoImgHost: l = "", browserLogoImg: u = "" } = i || {}, o = u ? l + fs(u) : "./logo.svg";
|
|
6722
|
-
|
|
6720
|
+
xi(o), xs(o);
|
|
6723
6721
|
}, t = async () => {
|
|
6724
|
-
const [i, l] = await
|
|
6722
|
+
const [i, l] = await bf().run({ userId: ka().id });
|
|
6725
6723
|
i || !l || JSON.stringify(l) === "{}" || (Qt.open({
|
|
6726
6724
|
key: "loginTip",
|
|
6727
6725
|
message: ne("上次登录信息"),
|
|
@@ -6736,7 +6734,7 @@ const vf = async () => {
|
|
|
6736
6734
|
])
|
|
6737
6735
|
}), sessionStorage.setItem("loginInfoTip", "true"));
|
|
6738
6736
|
}, n = async () => {
|
|
6739
|
-
const [{ loginConfig: i }, { platformConfig: l }] = await Promise.all([
|
|
6737
|
+
const [{ loginConfig: i }, { platformConfig: l }] = await Promise.all([xf(), vf()]);
|
|
6740
6738
|
e(l), l != null && l.browserTitle && localStorage.setItem("browser-title", l.browserTitle || "AIoT智能物联网管控平台"), hs(), !r() && i != null && i.loginInfoTip && !sessionStorage.getItem("loginInfoTip") && t();
|
|
6741
6739
|
}, a = M(!1), s = () => new Promise((i) => {
|
|
6742
6740
|
const l = () => {
|
|
@@ -6747,15 +6745,15 @@ const vf = async () => {
|
|
|
6747
6745
|
});
|
|
6748
6746
|
return lt(async () => {
|
|
6749
6747
|
if (await n(), r()) return;
|
|
6750
|
-
await
|
|
6751
|
-
const i =
|
|
6748
|
+
await Bc(), await kc();
|
|
6749
|
+
const i = Ye();
|
|
6752
6750
|
Da({ accessToken: i }), a.value = !0;
|
|
6753
6751
|
}), {
|
|
6754
6752
|
platformInited: a,
|
|
6755
6753
|
initNextTick: s
|
|
6756
6754
|
};
|
|
6757
|
-
},
|
|
6758
|
-
const [e, t] = await
|
|
6755
|
+
}, Ef = _n.get("/data/menu-expiration"), S0 = async (r) => {
|
|
6756
|
+
const [e, t] = await Ef().run();
|
|
6759
6757
|
if (e) return { title: "", content: "", decs: [] };
|
|
6760
6758
|
const n = (r == null ? void 0 : r.expired) ?? !1;
|
|
6761
6759
|
return {
|
|
@@ -6763,16 +6761,16 @@ const vf = async () => {
|
|
|
6763
6761
|
content: n ? t.menuExpirationExpiredContent : t.menuExpirationRetrieveContent,
|
|
6764
6762
|
desc: t.menuExpirationExpiredInfo
|
|
6765
6763
|
};
|
|
6766
|
-
},
|
|
6764
|
+
}, Af = () => {
|
|
6767
6765
|
const { entryMenu: r } = lr();
|
|
6768
6766
|
Q.menu.addEventListener("onItemClick", async (e) => {
|
|
6769
6767
|
var s;
|
|
6770
6768
|
me.innerSet = !0;
|
|
6771
|
-
const t = Re(
|
|
6769
|
+
const t = Re(en(e.applicationCode)).filter((i) => !i.disable && !i.expired).find((i) => i.code === e.code);
|
|
6772
6770
|
if (t && !t.routeUrl) return;
|
|
6773
6771
|
if (!t) {
|
|
6774
6772
|
const { title: i, content: l, desc: u } = await S0(t);
|
|
6775
|
-
await
|
|
6773
|
+
await Yt({ title: i, content: l, desc: u });
|
|
6776
6774
|
return;
|
|
6777
6775
|
}
|
|
6778
6776
|
const a = (((s = De().tabMap) == null ? void 0 : s[e.applicationCode]) ?? []).find((i) => i.code === e.code);
|
|
@@ -6782,12 +6780,12 @@ const vf = async () => {
|
|
|
6782
6780
|
let n = de().menuCollapses || [];
|
|
6783
6781
|
e ? n = Array.from(/* @__PURE__ */ new Set([...n, t])) : n = n.filter((a) => a !== t), Qe([{ key: "menuCollapses", value: n }]);
|
|
6784
6782
|
});
|
|
6785
|
-
},
|
|
6783
|
+
}, Bf = () => {
|
|
6786
6784
|
const { changeApp: r, deleteApp: e, beforeEntryApp: t } = qt();
|
|
6787
6785
|
Q.nav.addEventListener("onItemClick", async (a) => {
|
|
6788
6786
|
const s = de().currentSubAppCode ?? "";
|
|
6789
6787
|
if (s !== a.code) {
|
|
6790
|
-
if (s &&
|
|
6788
|
+
if (s && Ai(s), !a.fixed && !await t(a))
|
|
6791
6789
|
throw new Error(ne("取消切换"));
|
|
6792
6790
|
r(a);
|
|
6793
6791
|
}
|
|
@@ -6800,7 +6798,7 @@ const vf = async () => {
|
|
|
6800
6798
|
});
|
|
6801
6799
|
const { enter: n } = Lt();
|
|
6802
6800
|
return Q.nav.addEventListener("fullScreenHandle", n), {};
|
|
6803
|
-
},
|
|
6801
|
+
}, kf = () => {
|
|
6804
6802
|
const r = rr(), e = M(""), t = M(""), n = M("");
|
|
6805
6803
|
let a = "", s = {};
|
|
6806
6804
|
ke(
|
|
@@ -6809,8 +6807,8 @@ const vf = async () => {
|
|
|
6809
6807
|
var C, w, A, B, E, k, y, b, D, S;
|
|
6810
6808
|
const g = ((C = p.meta) == null ? void 0 : C.showLayout) ?? !0;
|
|
6811
6809
|
let x = ((w = p.query) == null ? void 0 : w.showLayout) ?? !0;
|
|
6812
|
-
if (x === "false" && (x = !1), !g || !x || p.path === a &&
|
|
6813
|
-
a =
|
|
6810
|
+
if (x === "false" && (x = !1), !g || !x || p.path === a && Zn(p.query, s)) return;
|
|
6811
|
+
a = Jt(p.path), s = Jt(p.query);
|
|
6814
6812
|
const m = de().currentSubAppCode ?? "";
|
|
6815
6813
|
if (!m) return;
|
|
6816
6814
|
const f = ((A = p.query) == null ? void 0 : A.menu) ?? ((B = De()) == null ? void 0 : B.currentCode) ?? "";
|
|
@@ -6819,9 +6817,9 @@ const vf = async () => {
|
|
|
6819
6817
|
JSON.stringify(v) !== "{}" && (e.value = (k = (E = v[m]) == null ? void 0 : E[f]) != null && k.fontColor ? v[m][f].fontColor : "", t.value = (b = (y = v[m]) == null ? void 0 : y[f]) != null && b.backgroundColor ? v[m][f].backgroundColor : "", n.value = (S = (D = v[m]) == null ? void 0 : D[f]) != null && S.backgroundColor ? v[m][f].backgroundColor : "");
|
|
6820
6818
|
}
|
|
6821
6819
|
);
|
|
6822
|
-
const { deleteApp: i } = qt(), { entryMenu: l } = lr(), { reloadRoute: u, unloadRoute: o } =
|
|
6820
|
+
const { deleteApp: i } = qt(), { entryMenu: l } = lr(), { reloadRoute: u, unloadRoute: o } = Pn(), c = (p) => {
|
|
6823
6821
|
var f;
|
|
6824
|
-
const g = Re(
|
|
6822
|
+
const g = Re(en(p.applicationCode)).find((v) => v.code === p.code), m = (((f = De().tabMap) == null ? void 0 : f[p.applicationCode]) ?? []).find((v) => v.code === p.code);
|
|
6825
6823
|
l({ currentMenu: g, route: { path: m.path, query: m.query ?? {} } });
|
|
6826
6824
|
}, _ = (p) => {
|
|
6827
6825
|
if (!p || !p.length) return;
|
|
@@ -6891,19 +6889,19 @@ const vf = async () => {
|
|
|
6891
6889
|
return;
|
|
6892
6890
|
}
|
|
6893
6891
|
Gt(p.applicationCode, [p.code]);
|
|
6894
|
-
const g = Re(
|
|
6892
|
+
const g = Re(en(p.applicationCode)).find((f) => f.code === p.code);
|
|
6895
6893
|
if (!g) return;
|
|
6896
6894
|
if (g.routeUrl !== p.path) {
|
|
6897
6895
|
u([p.path]), o([`/${p.applicationPath}${g.routeUrl}`]), await l({ currentMenu: g });
|
|
6898
6896
|
return;
|
|
6899
6897
|
}
|
|
6900
6898
|
const x = { app: g.applicationCode, menu: g.code }, m = { ...p.query };
|
|
6901
|
-
|
|
6899
|
+
Zn(x, m) || await l({ currentMenu: g }), u([p.path]);
|
|
6902
6900
|
});
|
|
6903
6901
|
const { enter: h } = Lt();
|
|
6904
6902
|
return Q.tab.addEventListener("onToggleFullScreen", h), { fontColor: e, backgroudColor: t, borderColor: n };
|
|
6905
6903
|
}, qt = () => {
|
|
6906
|
-
const r = rr(), { entryMenu: e } = lr(), { unloadRoute: t } =
|
|
6904
|
+
const r = rr(), { entryMenu: e } = lr(), { unloadRoute: t } = Pn();
|
|
6907
6905
|
let { mainAppName: n = "", microAppName: a = "", microApps: s = [] } = wt();
|
|
6908
6906
|
!n && a && (s = [{ name: a }]);
|
|
6909
6907
|
const i = s.map((d) => d.name), l = () => {
|
|
@@ -6913,14 +6911,14 @@ const vf = async () => {
|
|
|
6913
6911
|
const h = d.code ?? "", g = (de().subAppList ?? []).find((C) => C.code === h);
|
|
6914
6912
|
let x = [], m = [], f = !1;
|
|
6915
6913
|
if (g && (x = g.menus ?? []), !x.length) {
|
|
6916
|
-
const { menus: C, originalMenus: w, err: A } = await
|
|
6914
|
+
const { menus: C, originalMenus: w, err: A } = await Tn(h);
|
|
6917
6915
|
if (A) return !1;
|
|
6918
6916
|
x = C ?? [], m = w ?? [];
|
|
6919
6917
|
}
|
|
6920
|
-
if (x.length ? er(x) || (await
|
|
6918
|
+
if (x.length ? er(x) || (await Yt({
|
|
6921
6919
|
title: ne("提示"),
|
|
6922
6920
|
content: ne("此应用菜单已过期/已收回/配置有误") + "<br/>" + ne("无法使用")
|
|
6923
|
-
}), f = !0) : (await
|
|
6921
|
+
}), f = !0) : (await Yt({ title: ne("提示"), content: ne("此应用未配置菜单/无菜单权限") + "<br/>" + ne("无法使用") }), f = !0), f) return !1;
|
|
6924
6922
|
const v = { ...d, menus: x, originalMenus: m };
|
|
6925
6923
|
return Qe([{ key: "subAppList", value: v }]), !0;
|
|
6926
6924
|
}, o = async (d) => {
|
|
@@ -6954,11 +6952,11 @@ const vf = async () => {
|
|
|
6954
6952
|
return;
|
|
6955
6953
|
}
|
|
6956
6954
|
if (C === 1 && w === 2) {
|
|
6957
|
-
const j = await
|
|
6955
|
+
const j = await Ja(h.routeUrl, (h == null ? void 0 : h.param) ?? []), G = on(tn(rn(j))), T = `${ot}-${h.code}`;
|
|
6958
6956
|
if (!r.options.routes.find((P) => P.path === T)) {
|
|
6959
6957
|
const P = {
|
|
6960
6958
|
path: T,
|
|
6961
|
-
component: Ce(
|
|
6959
|
+
component: Ce(un, {
|
|
6962
6960
|
src: G
|
|
6963
6961
|
}),
|
|
6964
6962
|
meta: { isIframe: !0, keepAlive: !0 }
|
|
@@ -6981,7 +6979,7 @@ const vf = async () => {
|
|
|
6981
6979
|
currentMenu: E = null,
|
|
6982
6980
|
microPath: k = "",
|
|
6983
6981
|
query: y = {}
|
|
6984
|
-
} = await
|
|
6982
|
+
} = await lf({ microApp: h, menuCode: p, menuPath: g, route: m });
|
|
6985
6983
|
if (E && (m = {
|
|
6986
6984
|
path: k || `/${E.applicationPath}${E.routeUrl}`.replace(/\/\//g, "/"),
|
|
6987
6985
|
query: { ...y, app: E.applicationCode, menu: E.code },
|
|
@@ -7066,7 +7064,7 @@ const vf = async () => {
|
|
|
7066
7064
|
const f = Ls.find((v) => v.value === qe);
|
|
7067
7065
|
f && c(f);
|
|
7068
7066
|
}
|
|
7069
|
-
|
|
7067
|
+
bn(), Ua();
|
|
7070
7068
|
}
|
|
7071
7069
|
}
|
|
7072
7070
|
};
|
|
@@ -7088,7 +7086,7 @@ const vf = async () => {
|
|
|
7088
7086
|
const m = {
|
|
7089
7087
|
path: d,
|
|
7090
7088
|
name: d,
|
|
7091
|
-
component: Ce(
|
|
7089
|
+
component: Ce(un, {
|
|
7092
7090
|
src: x
|
|
7093
7091
|
}),
|
|
7094
7092
|
meta: { isIframe: !0, keepAlive: !0 }
|
|
@@ -7098,12 +7096,12 @@ const vf = async () => {
|
|
|
7098
7096
|
await r.push({ path: d, query: o });
|
|
7099
7097
|
} else i.applicationPath && (d = u || i.routeUrl, d = `/${i.applicationPath}${d}`.replace(/\/\//g, "/"), await r.push({ path: d, query: o }));
|
|
7100
7098
|
else {
|
|
7101
|
-
const x = await
|
|
7099
|
+
const x = await Ja(i.routeUrl, (i == null ? void 0 : i.param) ?? []), m = on(tn(rn(x)));
|
|
7102
7100
|
if (d = `${ot}-${i.code}`, !r.options.routes.find((f) => f.path === d)) {
|
|
7103
7101
|
const f = {
|
|
7104
7102
|
path: d,
|
|
7105
7103
|
name: d,
|
|
7106
|
-
component: Ce(
|
|
7104
|
+
component: Ce(un, {
|
|
7107
7105
|
src: m
|
|
7108
7106
|
}),
|
|
7109
7107
|
meta: { isIframe: !0, keepAlive: !0 }
|
|
@@ -7114,7 +7112,7 @@ const vf = async () => {
|
|
|
7114
7112
|
}
|
|
7115
7113
|
if (c === 2) {
|
|
7116
7114
|
let x = _ === 1 ? `/${i.applicationPath}${i.routeUrl}`.replace(/\/\//g, "/") : i.routeUrl;
|
|
7117
|
-
x =
|
|
7115
|
+
x = on(tn(rn(x))), me.innerSet ? (d = Ma, await r.push({ path: d, query: o }), x && window.open(x, "_blank")) : _ === 1 && (d = x, o = { ...o, showLayout: !1 }, await r.push({
|
|
7118
7116
|
path: d,
|
|
7119
7117
|
query: o
|
|
7120
7118
|
}));
|
|
@@ -7162,7 +7160,7 @@ const vf = async () => {
|
|
|
7162
7160
|
]);
|
|
7163
7161
|
}
|
|
7164
7162
|
} };
|
|
7165
|
-
},
|
|
7163
|
+
}, Pn = () => ({ reloadRoute: (t) => {
|
|
7166
7164
|
me.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...me.excludeRoutes, ...t])), me.routeKeepAliveVisible = !1, setTimeout(() => {
|
|
7167
7165
|
me.routeKeepAliveVisible = !0, me.excludeRoutes = [];
|
|
7168
7166
|
}, 300);
|
|
@@ -7170,8 +7168,8 @@ const vf = async () => {
|
|
|
7170
7168
|
me.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...me.excludeRoutes, ...t])), me.routeKeepAliveVisible = !1, setTimeout(() => {
|
|
7171
7169
|
me.excludeRoutes = [], me.routeKeepAliveVisible = !0;
|
|
7172
7170
|
}, 100);
|
|
7173
|
-
} }),
|
|
7174
|
-
const r = ks(), e =
|
|
7171
|
+
} }), Df = () => {
|
|
7172
|
+
const r = ks(), e = mf(), t = wt(), n = async () => {
|
|
7175
7173
|
const i = {
|
|
7176
7174
|
logout: "/api/justauth/oauth-server/v1/visitor/logout"
|
|
7177
7175
|
}, l = location.origin + Rt, u = {
|
|
@@ -7180,7 +7178,7 @@ const vf = async () => {
|
|
|
7180
7178
|
client_id: "sys",
|
|
7181
7179
|
state: +/* @__PURE__ */ new Date(),
|
|
7182
7180
|
redirect_uri: l,
|
|
7183
|
-
logout_token:
|
|
7181
|
+
logout_token: Ye(),
|
|
7184
7182
|
// 写用户访问日志逻辑配合
|
|
7185
7183
|
logout: "true"
|
|
7186
7184
|
};
|
|
@@ -7188,10 +7186,10 @@ const vf = async () => {
|
|
|
7188
7186
|
const o = Object.keys(u).map((_) => `${_}=${u[_]}`).join("&"), c = `${t.baseURL}${i.logout}?${o}`;
|
|
7189
7187
|
window.__isAutoCloseApp = !1, location.replace(c), sessionStorage.clear(), localStorage.removeItem("idelTime"), Es();
|
|
7190
7188
|
}, { entryApp: a } = qt(), s = async () => {
|
|
7191
|
-
const i = "personCenter", u = (de().appcategorys || []).map((h) => h.apps).flat(), { originalMenus: o = [] } = await
|
|
7189
|
+
const i = "personCenter", u = (de().appcategorys || []).map((h) => h.apps).flat(), { originalMenus: o = [] } = await Tn(i), _ = Re(o).filter((h) => h.isMenu && h.routeUrl).find((h) => h.routeUrl === "/userInfo");
|
|
7192
7190
|
if (_ != null && _.disable || _ != null && _.expired) {
|
|
7193
7191
|
const { title: h, content: p, desc: g } = await S0(_);
|
|
7194
|
-
await
|
|
7192
|
+
await Yt({ title: h, content: p, desc: g });
|
|
7195
7193
|
return;
|
|
7196
7194
|
}
|
|
7197
7195
|
const d = u.find((h) => h.code === i);
|
|
@@ -7209,22 +7207,22 @@ const vf = async () => {
|
|
|
7209
7207
|
$changePwd: r,
|
|
7210
7208
|
$personSetDialog: e
|
|
7211
7209
|
};
|
|
7212
|
-
},
|
|
7210
|
+
}, Sf = Sa.get("/convert/tenant"), Ff = xn.get("/platform/withdefault"), F0 = () => {
|
|
7213
7211
|
const r = wt(), e = M(!1), t = M(""), n = M(""), a = () => {
|
|
7214
|
-
t.value =
|
|
7212
|
+
t.value = hn().id, n.value = ka().tenantId, e.value = !0;
|
|
7215
7213
|
};
|
|
7216
7214
|
Q.nav.addEventListener("changeEnterpriseHandle", () => {
|
|
7217
7215
|
a();
|
|
7218
7216
|
});
|
|
7219
7217
|
const s = () => {
|
|
7220
|
-
|
|
7218
|
+
Ei(), vi(), window.__isAutoCloseApp = !1, location.pathname !== qe && location.pathname !== Rt ? window.location.replace(location.origin + qe) : window.location.reload();
|
|
7221
7219
|
};
|
|
7222
7220
|
return {
|
|
7223
7221
|
changeEnterprisesVisible: e,
|
|
7224
7222
|
userId: t,
|
|
7225
7223
|
tenantId: n,
|
|
7226
7224
|
changeEnterprise: async (l) => {
|
|
7227
|
-
const [u, o] = await
|
|
7225
|
+
const [u, o] = await Sf().run({ tenant: l });
|
|
7228
7226
|
if (u) return;
|
|
7229
7227
|
e.value = !1;
|
|
7230
7228
|
const { access_token: c = "", refresh_token: _ = "", expires_in: d = 0, sub: h = "", name: p = "", flag: g = "", tenant: x = "" } = o, m = {
|
|
@@ -7245,7 +7243,7 @@ const vf = async () => {
|
|
|
7245
7243
|
if (r != null && r.ssoLocale)
|
|
7246
7244
|
v = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${l}`;
|
|
7247
7245
|
else {
|
|
7248
|
-
const [C, w] = await
|
|
7246
|
+
const [C, w] = await Ff().run();
|
|
7249
7247
|
w != null && w.loginHost && (v = `${w.loginHost}/oauth/refreshOauthToken?tenantId=${l}`);
|
|
7250
7248
|
}
|
|
7251
7249
|
if (v) {
|
|
@@ -7255,7 +7253,7 @@ const vf = async () => {
|
|
|
7255
7253
|
s();
|
|
7256
7254
|
}
|
|
7257
7255
|
};
|
|
7258
|
-
},
|
|
7256
|
+
}, If = () => {
|
|
7259
7257
|
const { changeEnterprise: r } = F0();
|
|
7260
7258
|
Q.nav.addEventListener("onProjectChange", async (e) => {
|
|
7261
7259
|
const t = Ba();
|
|
@@ -7265,7 +7263,7 @@ const vf = async () => {
|
|
|
7265
7263
|
}
|
|
7266
7264
|
Cs((e == null ? void 0 : e.id) || 0), (t == null ? void 0 : t.flag) !== 4 && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
7267
7265
|
});
|
|
7268
|
-
},
|
|
7266
|
+
}, Tf = () => {
|
|
7269
7267
|
const r = M(), { entryApp: e } = qt();
|
|
7270
7268
|
return Q.nav.addEventListener("openAI", () => {
|
|
7271
7269
|
var n;
|
|
@@ -7287,12 +7285,12 @@ const vf = async () => {
|
|
|
7287
7285
|
innerSet: !1,
|
|
7288
7286
|
excludeRoutes: [],
|
|
7289
7287
|
routeKeepAliveVisible: !0
|
|
7290
|
-
}),
|
|
7291
|
-
const [r, e] = await
|
|
7292
|
-
return
|
|
7288
|
+
}), Pf = async () => {
|
|
7289
|
+
const [r, e] = await Sc().run(), t = { instanceInfo: e ?? null };
|
|
7290
|
+
return wi(t), t;
|
|
7293
7291
|
};
|
|
7294
7292
|
$a("container");
|
|
7295
|
-
const
|
|
7293
|
+
const Rf = (r) => {
|
|
7296
7294
|
const { microAppBus: e } = r, t = "/iot/iot/deviceInstance", n = "/iot/iot/statisticalReport", a = (i) => {
|
|
7297
7295
|
const { menuName: l = "实例" } = i || {};
|
|
7298
7296
|
e.cors.send("customEventFromMicro", {
|
|
@@ -7313,42 +7311,45 @@ const $f = (r) => {
|
|
|
7313
7311
|
}, s = async (i) => {
|
|
7314
7312
|
const { toPath: l = "", params: u = {} } = i || {};
|
|
7315
7313
|
let o = "实例", c = !1;
|
|
7316
|
-
const { instanceInfo: _ } = await
|
|
7314
|
+
const { instanceInfo: _ } = await Pf();
|
|
7317
7315
|
if (_) {
|
|
7318
7316
|
const g = ms(_.endTime) || _.endTime == 0 || _.endTime === 253370736e6 || _.endTime === "253370736000000" ? "-" : Number(_.endTime);
|
|
7319
|
-
c =
|
|
7317
|
+
c = nn().endOf("day") > nn(g).endOf("day"), c || (o = _.instanceName ?? "实例");
|
|
7320
7318
|
}
|
|
7321
7319
|
a({ menuName: o });
|
|
7322
|
-
const { clickSource: d = "", isFirstEnter: h = !1 } = u, p =
|
|
7323
|
-
d === "nav" && h && l.toLowerCase() === t.toLowerCase() && _.id && !c && p
|
|
7320
|
+
const { clickSource: d = "", isFirstEnter: h = !1 } = u, p = Yn(null, { menuCode: "iot.statisticalReport" });
|
|
7321
|
+
d === "nav" && h && l.toLowerCase() === t.toLowerCase() && _.id && !c && p ? await hr({
|
|
7324
7322
|
manual: !0,
|
|
7325
7323
|
path: n
|
|
7324
|
+
}) : await hr({
|
|
7325
|
+
manual: !0,
|
|
7326
|
+
path: l
|
|
7326
7327
|
});
|
|
7327
7328
|
};
|
|
7328
7329
|
return be.addEventListenerFromMicroApp("iot:change-instance", (i) => {
|
|
7329
7330
|
const { instanceInfo: l } = i.data || {};
|
|
7330
|
-
a({ menuName: l.instanceName }),
|
|
7331
|
+
a({ menuName: l.instanceName }), Yn(null, { menuCode: "iot.statisticalReport" }) && hr({
|
|
7331
7332
|
manual: !0,
|
|
7332
7333
|
path: n
|
|
7333
7334
|
});
|
|
7334
7335
|
}), { routerBeforEnter: s };
|
|
7335
|
-
},
|
|
7336
|
-
const { unloadRoute: r } =
|
|
7337
|
-
|
|
7336
|
+
}, dn = $a("microApp"), { routerBeforEnter: $f } = Rf({ microAppBus: dn }), zf = () => {
|
|
7337
|
+
const { unloadRoute: r } = Pn();
|
|
7338
|
+
dn.event.on("unmountPage", (e) => {
|
|
7338
7339
|
var n;
|
|
7339
7340
|
const t = (n = e == null ? void 0 : e.urls) != null && n.length ? e.urls : e.url ? Array.isArray(e.url) ? e.url : [e.url] : [];
|
|
7340
7341
|
t.length && r(t);
|
|
7341
|
-
}),
|
|
7342
|
+
}), dn.event.on("beforeEnter", async (e) => {
|
|
7342
7343
|
const t = String((e == null ? void 0 : e.toPath) || "").trim().split("?")[0].split("#")[0];
|
|
7343
7344
|
try {
|
|
7344
|
-
t && t.startsWith("/iot/iot") &&
|
|
7345
|
+
t && t.startsWith("/iot/iot") && $f({ toPath: t, params: e });
|
|
7345
7346
|
} catch {
|
|
7346
7347
|
}
|
|
7347
7348
|
});
|
|
7348
|
-
},
|
|
7349
|
+
}, Of = () => {
|
|
7349
7350
|
be.addEventListenerFromMicroApp("iot:change-instance", (r) => {
|
|
7350
7351
|
});
|
|
7351
|
-
},
|
|
7352
|
+
}, Mf = () => {
|
|
7352
7353
|
be.addEventListenerFromMicroApp("devicePanelShow", (r) => {
|
|
7353
7354
|
const { deviceId: e = "", panelCode: t = "", deviceName: n = "", x: a = 0, y: s = 0, isCenter: i = !1 } = r.data;
|
|
7354
7355
|
za(e, t, n, a, s, i);
|
|
@@ -7360,17 +7361,17 @@ const $f = (r) => {
|
|
|
7360
7361
|
}), be.addEventListenerFromMicroApp("closeAlarmPanel", (r) => {
|
|
7361
7362
|
Ts();
|
|
7362
7363
|
});
|
|
7363
|
-
},
|
|
7364
|
+
}, Nf = nr.get("/platform/login/pwd-advance-notify-check"), Lf = () => {
|
|
7364
7365
|
const r = M([]), e = M(null), t = M([]), { entryApp: n } = Zt.hooks.useEntryApp(), a = () => {
|
|
7365
7366
|
var u;
|
|
7366
7367
|
const l = (((u = de().appcategorys) == null ? void 0 : u.map((o) => o.apps).flat()) ?? []).find((o) => o.code === "messagecenter");
|
|
7367
7368
|
l && n({ microApp: l });
|
|
7368
7369
|
}, s = () => {
|
|
7369
|
-
e.value = new
|
|
7370
|
+
e.value = new Cn({
|
|
7370
7371
|
url: "/api/messagecenter/message/v1/innersend",
|
|
7371
7372
|
reconnectWhenClose: !0,
|
|
7372
7373
|
opened: async () => {
|
|
7373
|
-
await
|
|
7374
|
+
await Nf().run();
|
|
7374
7375
|
},
|
|
7375
7376
|
message: async (i) => {
|
|
7376
7377
|
if (be.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message-notify:message", { msgList: i }), window.self !== window.top) return;
|
|
@@ -7413,8 +7414,8 @@ const $f = (r) => {
|
|
|
7413
7414
|
}), Nt(() => {
|
|
7414
7415
|
e.value && e.value.disconnect(), e.value = null;
|
|
7415
7416
|
});
|
|
7416
|
-
},
|
|
7417
|
-
function
|
|
7417
|
+
}, Hf = "v1", Uf = Et(`/api/enterpriseright/permission/${Hf}`), I0 = Et("/api/device-relation/deviceproject/v1/project/device/video", qf), jf = _n.get("/permissionset/user-portal-menu");
|
|
7418
|
+
function qf(r) {
|
|
7418
7419
|
const e = Ze() ? Ze().id : 1;
|
|
7419
7420
|
return r.params || (r.params = {}), r.params.project = e, r.params.projectId = e, r;
|
|
7420
7421
|
}
|
|
@@ -7427,10 +7428,10 @@ function T0(r) {
|
|
|
7427
7428
|
function ha(r) {
|
|
7428
7429
|
return I0.post(`/ptz?${T0(r)}`)().run();
|
|
7429
7430
|
}
|
|
7430
|
-
function
|
|
7431
|
+
function Wf(r) {
|
|
7431
7432
|
return I0.post(`/url/preview?${T0(r)}`)().run();
|
|
7432
7433
|
}
|
|
7433
|
-
const
|
|
7434
|
+
const Vf = Uf.post("data/device-auth"), Kf = /* @__PURE__ */ we({
|
|
7434
7435
|
__name: "GridItem",
|
|
7435
7436
|
props: {
|
|
7436
7437
|
active: { type: Boolean },
|
|
@@ -7448,7 +7449,7 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
|
|
|
7448
7449
|
}, u = () => {
|
|
7449
7450
|
n("itemClick");
|
|
7450
7451
|
}, o = je(() => `calc(100% / ${Math.sqrt(t.gridNum)})`);
|
|
7451
|
-
return (c, _) => (
|
|
7452
|
+
return (c, _) => (J(), Se(
|
|
7452
7453
|
"div",
|
|
7453
7454
|
{
|
|
7454
7455
|
ref_key: "containerRef",
|
|
@@ -7464,7 +7465,7 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
|
|
|
7464
7465
|
/* CLASS, NEED_HYDRATION */
|
|
7465
7466
|
));
|
|
7466
7467
|
}
|
|
7467
|
-
}),
|
|
7468
|
+
}), Gf = /* @__PURE__ */ Le(Kf, [["__scopeId", "data-v-68946aef"]]), Xf = { class: "layout-wrapper" }, Qf = /* @__PURE__ */ we({
|
|
7468
7469
|
__name: "GridLayout",
|
|
7469
7470
|
props: {
|
|
7470
7471
|
gridNum: {},
|
|
@@ -7476,12 +7477,12 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
|
|
|
7476
7477
|
const t = r, n = e, a = (s) => {
|
|
7477
7478
|
n("update:activeIndex", s);
|
|
7478
7479
|
};
|
|
7479
|
-
return (s, i) => (
|
|
7480
|
+
return (s, i) => (J(), Se("div", Xf, [
|
|
7480
7481
|
oe(' :active="index === activeIndex" '),
|
|
7481
|
-
(
|
|
7482
|
+
(J(!0), Se(
|
|
7482
7483
|
_t,
|
|
7483
7484
|
null,
|
|
7484
|
-
|
|
7485
|
+
fn(t.gridNum, (l, u) => (J(), se(Gf, {
|
|
7485
7486
|
active: !1,
|
|
7486
7487
|
"grid-num": t.gridNum,
|
|
7487
7488
|
onItemClick: (o) => a(u)
|
|
@@ -7500,14 +7501,14 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
|
|
|
7500
7501
|
))
|
|
7501
7502
|
]));
|
|
7502
7503
|
}
|
|
7503
|
-
}),
|
|
7504
|
+
}), Zf = /* @__PURE__ */ Le(Qf, [["__scopeId", "data-v-22baf4d8"]]), Yf = /* @__PURE__ */ we({
|
|
7504
7505
|
__name: "DirectionControl",
|
|
7505
7506
|
emits: ["change"],
|
|
7506
7507
|
setup(r, { emit: e }) {
|
|
7507
7508
|
const t = e, n = (a) => {
|
|
7508
7509
|
t("change", a);
|
|
7509
7510
|
};
|
|
7510
|
-
return (a, s) => (
|
|
7511
|
+
return (a, s) => (J(), Se(
|
|
7511
7512
|
"div",
|
|
7512
7513
|
{
|
|
7513
7514
|
class: "direction-control",
|
|
@@ -7627,10 +7628,10 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
|
|
|
7627
7628
|
/* NEED_HYDRATION */
|
|
7628
7629
|
));
|
|
7629
7630
|
}
|
|
7630
|
-
}),
|
|
7631
|
+
}), Jf = /* @__PURE__ */ Le(Yf, [["__scopeId", "data-v-83a64a40"]]), ep = { class: "video-wrapper" }, tp = { class: "video-top" }, rp = { class: "video-top_l" }, np = { class: "video-title-wrapper" }, op = { class: "video-title" }, ap = { class: "video-top_r" }, sp = {
|
|
7631
7632
|
key: 0,
|
|
7632
7633
|
class: "play-status"
|
|
7633
|
-
},
|
|
7634
|
+
}, ip = { class: "video-bottom" }, cp = { class: "video-bottom_r" }, lp = /* @__PURE__ */ we({
|
|
7634
7635
|
__name: "index",
|
|
7635
7636
|
props: {
|
|
7636
7637
|
videoUrl: {},
|
|
@@ -7668,7 +7669,7 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
|
|
|
7668
7669
|
v.width = u.value.clientWidth, v.height = u.value.clientHeight;
|
|
7669
7670
|
const C = v.getContext("2d");
|
|
7670
7671
|
C == null || C.drawImage(u.value, 0, 0, v.width, v.height);
|
|
7671
|
-
const w = v.toDataURL("image/jpg"), A = `【${t.title}】${
|
|
7672
|
+
const w = v.toDataURL("image/jpg"), A = `【${t.title}】${nn().format("YYYYMMDDHHmmss").toString()}.jpg`;
|
|
7672
7673
|
if (p.value = w, "download" in document.createElement("a")) {
|
|
7673
7674
|
const B = document.createElement("a");
|
|
7674
7675
|
B.download = A, B.style.display = "none", B.href = w, document.body.appendChild(B), document.body.appendChild(v), B.click(), URL.revokeObjectURL(B.href), document.body.removeChild(B), document.body.removeChild(v);
|
|
@@ -7720,29 +7721,29 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
|
|
|
7720
7721
|
c.value = !0;
|
|
7721
7722
|
});
|
|
7722
7723
|
}
|
|
7723
|
-
), (v, C) => (
|
|
7724
|
-
Z(F(
|
|
7724
|
+
), (v, C) => (J(), Se("div", ep, [
|
|
7725
|
+
Z(F(gn), {
|
|
7725
7726
|
spinning: t.loading,
|
|
7726
7727
|
type: "component",
|
|
7727
7728
|
tip: "加载中..."
|
|
7728
7729
|
}, {
|
|
7729
7730
|
default: X(() => [
|
|
7730
|
-
K("div",
|
|
7731
|
-
K("div",
|
|
7732
|
-
K("div",
|
|
7731
|
+
K("div", tp, [
|
|
7732
|
+
K("div", rp, [
|
|
7733
|
+
K("div", np, [
|
|
7733
7734
|
K(
|
|
7734
7735
|
"div",
|
|
7735
|
-
|
|
7736
|
+
op,
|
|
7736
7737
|
pe(t.title.length > 20 ? t.title.slice(0, 19) + "..." : t.title),
|
|
7737
7738
|
1
|
|
7738
7739
|
/* TEXT */
|
|
7739
7740
|
)
|
|
7740
7741
|
])
|
|
7741
7742
|
]),
|
|
7742
|
-
K("div",
|
|
7743
|
-
["live"].includes(v.type) ? (
|
|
7743
|
+
K("div", ap, [
|
|
7744
|
+
["live"].includes(v.type) ? (J(), Se(
|
|
7744
7745
|
"span",
|
|
7745
|
-
|
|
7746
|
+
sp,
|
|
7746
7747
|
pe(F(ne)("正在实时预览")),
|
|
7747
7748
|
1
|
|
7748
7749
|
/* TEXT */
|
|
@@ -7750,7 +7751,7 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
|
|
|
7750
7751
|
oe(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
|
|
7751
7752
|
])
|
|
7752
7753
|
]),
|
|
7753
|
-
t.videoUrl && c.value ? (
|
|
7754
|
+
t.videoUrl && c.value ? (J(), se(F($s), {
|
|
7754
7755
|
key: 0,
|
|
7755
7756
|
type: "flv",
|
|
7756
7757
|
ref_key: "dasLivePlayerRef",
|
|
@@ -7759,7 +7760,7 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
|
|
|
7759
7760
|
onLoaded: _,
|
|
7760
7761
|
src: t.videoUrl
|
|
7761
7762
|
}, null, 8, ["muted", "src"])) : oe("v-if", !0),
|
|
7762
|
-
K("div",
|
|
7763
|
+
K("div", ip, [
|
|
7763
7764
|
C[3] || (C[3] = K(
|
|
7764
7765
|
"div",
|
|
7765
7766
|
{ class: "video-bottom_l" },
|
|
@@ -7767,7 +7768,7 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
|
|
|
7767
7768
|
-1
|
|
7768
7769
|
/* CACHED */
|
|
7769
7770
|
)),
|
|
7770
|
-
K("div",
|
|
7771
|
+
K("div", cp, [
|
|
7771
7772
|
K(
|
|
7772
7773
|
"div",
|
|
7773
7774
|
{
|
|
@@ -7801,12 +7802,12 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
|
|
|
7801
7802
|
_: 1
|
|
7802
7803
|
/* STABLE */
|
|
7803
7804
|
}, 8, ["content"]),
|
|
7804
|
-
f("control") ? (
|
|
7805
|
+
f("control") ? (J(), se(F(Ae), {
|
|
7805
7806
|
key: 0,
|
|
7806
7807
|
content: F(ne)("聚焦-")
|
|
7807
7808
|
}, {
|
|
7808
7809
|
default: X(() => [
|
|
7809
|
-
["live", "polling"].includes(t.type) ? (
|
|
7810
|
+
["live", "polling"].includes(t.type) ? (J(), se(F(vt), {
|
|
7810
7811
|
key: 0,
|
|
7811
7812
|
class: "icon icon-shrink",
|
|
7812
7813
|
icon: "shrink",
|
|
@@ -7816,12 +7817,12 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
|
|
|
7816
7817
|
_: 1
|
|
7817
7818
|
/* STABLE */
|
|
7818
7819
|
}, 8, ["content"])) : oe("v-if", !0),
|
|
7819
|
-
f("control") ? (
|
|
7820
|
+
f("control") ? (J(), se(F(Ae), {
|
|
7820
7821
|
key: 1,
|
|
7821
7822
|
content: F(ne)("聚焦+")
|
|
7822
7823
|
}, {
|
|
7823
7824
|
default: X(() => [
|
|
7824
|
-
["live", "polling"].includes(t.type) ? (
|
|
7825
|
+
["live", "polling"].includes(t.type) ? (J(), se(F(vt), {
|
|
7825
7826
|
key: 0,
|
|
7826
7827
|
class: "icon icon-enlarge",
|
|
7827
7828
|
icon: "enlarge",
|
|
@@ -7831,12 +7832,12 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
|
|
|
7831
7832
|
_: 1
|
|
7832
7833
|
/* STABLE */
|
|
7833
7834
|
}, 8, ["content"])) : oe("v-if", !0),
|
|
7834
|
-
f("control") ? (
|
|
7835
|
+
f("control") ? (J(), se(F(Ae), {
|
|
7835
7836
|
key: 2,
|
|
7836
7837
|
content: F(ne)("方向控制")
|
|
7837
7838
|
}, {
|
|
7838
7839
|
default: X(() => [
|
|
7839
|
-
["live", "polling"].includes(t.type) ? (
|
|
7840
|
+
["live", "polling"].includes(t.type) ? (J(), se(F(vt), {
|
|
7840
7841
|
key: 0,
|
|
7841
7842
|
class: "icon icon-direction-control",
|
|
7842
7843
|
icon: "direction-control",
|
|
@@ -7852,7 +7853,7 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
|
|
|
7852
7853
|
)
|
|
7853
7854
|
])
|
|
7854
7855
|
]),
|
|
7855
|
-
i.value ? (
|
|
7856
|
+
i.value ? (J(), se(Jf, {
|
|
7856
7857
|
key: 1,
|
|
7857
7858
|
onChange: x
|
|
7858
7859
|
})) : oe("v-if", !0)
|
|
@@ -7862,7 +7863,7 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
|
|
|
7862
7863
|
}, 8, ["spinning"])
|
|
7863
7864
|
]));
|
|
7864
7865
|
}
|
|
7865
|
-
}),
|
|
7866
|
+
}), up = /* @__PURE__ */ Le(lp, [["__scopeId", "data-v-30f67b62"]]), dp = /* @__PURE__ */ we({
|
|
7866
7867
|
props: {
|
|
7867
7868
|
deviceInfo: {
|
|
7868
7869
|
type: Object,
|
|
@@ -7878,7 +7879,7 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
|
|
|
7878
7879
|
var c;
|
|
7879
7880
|
if (!((c = t.value) != null && c.deviceId)) return;
|
|
7880
7881
|
n.value = !0;
|
|
7881
|
-
const [u, o] = await
|
|
7882
|
+
const [u, o] = await Wf({
|
|
7882
7883
|
productId: t.value.productId,
|
|
7883
7884
|
deviceId: t.value.deviceId,
|
|
7884
7885
|
source: "strategy"
|
|
@@ -7915,13 +7916,13 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
|
|
|
7915
7916
|
})]);
|
|
7916
7917
|
}
|
|
7917
7918
|
});
|
|
7918
|
-
function
|
|
7919
|
+
function fp(r) {
|
|
7919
7920
|
const e = M(0), t = M(), {
|
|
7920
7921
|
toggle: n,
|
|
7921
7922
|
isFullscreen: a
|
|
7922
7923
|
} = Lt(t);
|
|
7923
7924
|
return {
|
|
7924
|
-
render: () => Z(
|
|
7925
|
+
render: () => Z(Zf, {
|
|
7925
7926
|
ref: t,
|
|
7926
7927
|
gridNum: r.gridNum,
|
|
7927
7928
|
activeIndex: e.value,
|
|
@@ -7932,7 +7933,7 @@ function pp(r) {
|
|
|
7932
7933
|
index: i
|
|
7933
7934
|
}) => {
|
|
7934
7935
|
const l = r.deviceList[i];
|
|
7935
|
-
return Z(
|
|
7936
|
+
return Z(dp, {
|
|
7936
7937
|
deviceInfo: l
|
|
7937
7938
|
}, {
|
|
7938
7939
|
default: ({
|
|
@@ -7940,7 +7941,7 @@ function pp(r) {
|
|
|
7940
7941
|
onDirectionControl: o,
|
|
7941
7942
|
onZoomControl: c,
|
|
7942
7943
|
loading: _
|
|
7943
|
-
}) => Z(
|
|
7944
|
+
}) => Z(up, {
|
|
7944
7945
|
type: "live",
|
|
7945
7946
|
loading: _,
|
|
7946
7947
|
videoUrl: u,
|
|
@@ -7955,7 +7956,7 @@ function pp(r) {
|
|
|
7955
7956
|
toggleFullscreen: n
|
|
7956
7957
|
};
|
|
7957
7958
|
}
|
|
7958
|
-
const
|
|
7959
|
+
const pp = /* @__PURE__ */ we({
|
|
7959
7960
|
__name: "index",
|
|
7960
7961
|
props: {
|
|
7961
7962
|
deviceList: { default: () => [] },
|
|
@@ -7966,7 +7967,7 @@ const hp = /* @__PURE__ */ we({
|
|
|
7966
7967
|
Oa({
|
|
7967
7968
|
fullscreen2: import("@das-fed/upf-ui/packages/icons/fullscreen-2")
|
|
7968
7969
|
});
|
|
7969
|
-
const e = r, t = M(!0), { render: n, toggleFullscreen: a } =
|
|
7970
|
+
const e = r, t = M(!0), { render: n, toggleFullscreen: a } = fp(e), s = je(() => {
|
|
7970
7971
|
let i = {};
|
|
7971
7972
|
switch (e.gridNum) {
|
|
7972
7973
|
case 1:
|
|
@@ -7981,7 +7982,7 @@ const hp = /* @__PURE__ */ we({
|
|
|
7981
7982
|
}
|
|
7982
7983
|
return i;
|
|
7983
7984
|
});
|
|
7984
|
-
return (i, l) => (
|
|
7985
|
+
return (i, l) => (J(), se(F(mn), {
|
|
7985
7986
|
size: "mini",
|
|
7986
7987
|
title: F(ne)("视频监控"),
|
|
7987
7988
|
"custom-class": `das-linakge-video-dialog ${s.value}`,
|
|
@@ -8018,33 +8019,33 @@ const hp = /* @__PURE__ */ we({
|
|
|
8018
8019
|
}, 8, ["content"])
|
|
8019
8020
|
]),
|
|
8020
8021
|
default: X(() => [
|
|
8021
|
-
t.value ? (
|
|
8022
|
+
t.value ? (J(), se(F(n), { key: 0 })) : oe("v-if", !0)
|
|
8022
8023
|
]),
|
|
8023
8024
|
_: 1
|
|
8024
8025
|
/* STABLE */
|
|
8025
8026
|
}, 8, ["title", "custom-class", "modelValue", "onClosed"]));
|
|
8026
8027
|
}
|
|
8027
|
-
}),
|
|
8028
|
+
}), hp = (r) => {
|
|
8028
8029
|
const { gridNum: e = 4, deviceList: t = [] } = r;
|
|
8029
8030
|
return new Promise((n) => {
|
|
8030
8031
|
let a = document.body.querySelector("#video-dialog-container");
|
|
8031
8032
|
a && (Tt(null, a), document.body.removeChild(a)), a = document.createElement("div"), a.setAttribute("id", "video-dialog-container"), document.body.appendChild(a);
|
|
8032
|
-
const i = Ce(
|
|
8033
|
+
const i = Ce(pp, { gridNum: e, deviceList: t, closeCallback: () => {
|
|
8033
8034
|
Tt(null, a), document.body.removeChild(a), n(null);
|
|
8034
8035
|
} });
|
|
8035
8036
|
Tt(i, a);
|
|
8036
8037
|
});
|
|
8037
|
-
},
|
|
8038
|
+
}, xp = () => {
|
|
8038
8039
|
const r = M(4), e = M([]), t = M(null), n = async (s) => {
|
|
8039
|
-
const [i, l] = await
|
|
8040
|
+
const [i, l] = await Vf(s).run();
|
|
8040
8041
|
if (!i)
|
|
8041
8042
|
return l;
|
|
8042
8043
|
}, a = async () => {
|
|
8043
|
-
const s = Ze().id, [i, l] = await
|
|
8044
|
+
const s = Ze().id, [i, l] = await jf().run({
|
|
8044
8045
|
code: "strategy",
|
|
8045
8046
|
showBtn: !1
|
|
8046
8047
|
});
|
|
8047
|
-
i || !l || !l.length || !l.find((o) => o.code === "strategy.linkageModel") || t.value || (t.value = new
|
|
8048
|
+
i || !l || !l.length || !l.find((o) => o.code === "strategy.linkageModel") || t.value || (t.value = new Cn({
|
|
8048
8049
|
url: "/api/strategy/linkage-strategy/v1/video-popup/subscribe",
|
|
8049
8050
|
params: { project: s },
|
|
8050
8051
|
message: async (o) => {
|
|
@@ -8066,7 +8067,7 @@ const hp = /* @__PURE__ */ we({
|
|
|
8066
8067
|
show: !!g
|
|
8067
8068
|
};
|
|
8068
8069
|
});
|
|
8069
|
-
e.value = h.filter((p) => !!p.show), (c = e.value) != null && c.length &&
|
|
8070
|
+
e.value = h.filter((p) => !!p.show), (c = e.value) != null && c.length && hp({ gridNum: r.value, deviceList: e.value });
|
|
8070
8071
|
}
|
|
8071
8072
|
}
|
|
8072
8073
|
}));
|
|
@@ -8093,7 +8094,7 @@ class at extends Error {
|
|
|
8093
8094
|
super(`${e}: Status code '${t}'`), this.statusCode = t, this.__proto__ = n;
|
|
8094
8095
|
}
|
|
8095
8096
|
}
|
|
8096
|
-
class
|
|
8097
|
+
class Rn extends Error {
|
|
8097
8098
|
/** Constructs a new instance of {@link @microsoft/signalr.TimeoutError}.
|
|
8098
8099
|
*
|
|
8099
8100
|
* @param {string} errorMessage A descriptive error message.
|
|
@@ -8113,7 +8114,7 @@ class Oe extends Error {
|
|
|
8113
8114
|
super(e), this.__proto__ = t;
|
|
8114
8115
|
}
|
|
8115
8116
|
}
|
|
8116
|
-
class
|
|
8117
|
+
class vp extends Error {
|
|
8117
8118
|
/** Constructs a new instance of {@link @microsoft/signalr.UnsupportedTransportError}.
|
|
8118
8119
|
*
|
|
8119
8120
|
* @param {string} message A descriptive error message.
|
|
@@ -8124,7 +8125,7 @@ class gp extends Error {
|
|
|
8124
8125
|
super(e), this.transport = t, this.errorType = "UnsupportedTransportError", this.__proto__ = n;
|
|
8125
8126
|
}
|
|
8126
8127
|
}
|
|
8127
|
-
class
|
|
8128
|
+
class gp extends Error {
|
|
8128
8129
|
/** Constructs a new instance of {@link @microsoft/signalr.DisabledTransportError}.
|
|
8129
8130
|
*
|
|
8130
8131
|
* @param {string} message A descriptive error message.
|
|
@@ -8135,7 +8136,7 @@ class mp extends Error {
|
|
|
8135
8136
|
super(e), this.transport = t, this.errorType = "DisabledTransportError", this.__proto__ = n;
|
|
8136
8137
|
}
|
|
8137
8138
|
}
|
|
8138
|
-
class
|
|
8139
|
+
class mp extends Error {
|
|
8139
8140
|
/** Constructs a new instance of {@link @microsoft/signalr.FailedToStartTransportError}.
|
|
8140
8141
|
*
|
|
8141
8142
|
* @param {string} message A descriptive error message.
|
|
@@ -8156,7 +8157,7 @@ class xa extends Error {
|
|
|
8156
8157
|
super(e), this.errorType = "FailedToNegotiateWithServerError", this.__proto__ = t;
|
|
8157
8158
|
}
|
|
8158
8159
|
}
|
|
8159
|
-
class
|
|
8160
|
+
class _p extends Error {
|
|
8160
8161
|
/** Constructs a new instance of {@link @microsoft/signalr.AggregateErrors}.
|
|
8161
8162
|
*
|
|
8162
8163
|
* @param {string} message A descriptive error message.
|
|
@@ -8217,7 +8218,7 @@ class Ot {
|
|
|
8217
8218
|
}
|
|
8218
8219
|
}
|
|
8219
8220
|
Ot.instance = new Ot();
|
|
8220
|
-
const
|
|
8221
|
+
const Cp = "8.0.7";
|
|
8221
8222
|
class xe {
|
|
8222
8223
|
static isRequired(e, t) {
|
|
8223
8224
|
if (e == null)
|
|
@@ -8253,9 +8254,9 @@ class fe {
|
|
|
8253
8254
|
}
|
|
8254
8255
|
function Mt(r, e) {
|
|
8255
8256
|
let t = "";
|
|
8256
|
-
return ct(r) ? (t = `Binary data of length ${r.byteLength}`, e && (t += `. Content: '${
|
|
8257
|
+
return ct(r) ? (t = `Binary data of length ${r.byteLength}`, e && (t += `. Content: '${yp(r)}'`)) : typeof r == "string" && (t = `String data of length ${r.length}`, e && (t += `. Content: '${r}'`)), t;
|
|
8257
8258
|
}
|
|
8258
|
-
function
|
|
8259
|
+
function yp(r) {
|
|
8259
8260
|
const e = new Uint8Array(r);
|
|
8260
8261
|
let t = "";
|
|
8261
8262
|
return e.forEach((n) => {
|
|
@@ -8279,10 +8280,10 @@ async function R0(r, e, t, n, a, s) {
|
|
|
8279
8280
|
});
|
|
8280
8281
|
r.log(I.Trace, `(${e} transport) request complete. Response status: ${c.statusCode}.`);
|
|
8281
8282
|
}
|
|
8282
|
-
function
|
|
8283
|
+
function bp(r) {
|
|
8283
8284
|
return r === void 0 ? new tr(I.Information) : r === null ? Ot.instance : r.log !== void 0 ? r : new tr(r);
|
|
8284
8285
|
}
|
|
8285
|
-
class
|
|
8286
|
+
class wp {
|
|
8286
8287
|
constructor(e, t) {
|
|
8287
8288
|
this._subject = e, this._observer = t;
|
|
8288
8289
|
}
|
|
@@ -8319,14 +8320,14 @@ class tr {
|
|
|
8319
8320
|
}
|
|
8320
8321
|
function bt() {
|
|
8321
8322
|
let r = "X-SignalR-User-Agent";
|
|
8322
|
-
return fe.isNode && (r = "User-Agent"), [r,
|
|
8323
|
+
return fe.isNode && (r = "User-Agent"), [r, Ep(Cp, Ap(), kp(), Bp())];
|
|
8323
8324
|
}
|
|
8324
|
-
function
|
|
8325
|
+
function Ep(r, e, t, n) {
|
|
8325
8326
|
let a = "Microsoft SignalR/";
|
|
8326
8327
|
const s = r.split(".");
|
|
8327
8328
|
return a += `${s[0]}.${s[1]}`, a += ` (${r}; `, e && e !== "" ? a += `${e}; ` : a += "Unknown OS; ", a += `${t}`, n ? a += `; ${n}` : a += "; Unknown Runtime Version", a += ")", a;
|
|
8328
8329
|
}
|
|
8329
|
-
function
|
|
8330
|
+
function Ap() {
|
|
8330
8331
|
if (fe.isNode)
|
|
8331
8332
|
switch (process.platform) {
|
|
8332
8333
|
case "win32":
|
|
@@ -8341,17 +8342,17 @@ function Bp() {
|
|
|
8341
8342
|
else
|
|
8342
8343
|
return "";
|
|
8343
8344
|
}
|
|
8344
|
-
function
|
|
8345
|
+
function Bp() {
|
|
8345
8346
|
if (fe.isNode)
|
|
8346
8347
|
return process.versions.node;
|
|
8347
8348
|
}
|
|
8348
|
-
function
|
|
8349
|
+
function kp() {
|
|
8349
8350
|
return fe.isNode ? "NodeJS" : "Browser";
|
|
8350
8351
|
}
|
|
8351
|
-
function
|
|
8352
|
+
function Yr(r) {
|
|
8352
8353
|
return r.stack ? r.stack : r.message ? r.message : `${r}`;
|
|
8353
8354
|
}
|
|
8354
|
-
function
|
|
8355
|
+
function Dp() {
|
|
8355
8356
|
if (typeof globalThis < "u")
|
|
8356
8357
|
return globalThis;
|
|
8357
8358
|
if (typeof self < "u")
|
|
@@ -8362,13 +8363,13 @@ function Sp() {
|
|
|
8362
8363
|
return global;
|
|
8363
8364
|
throw new Error("could not find global");
|
|
8364
8365
|
}
|
|
8365
|
-
class
|
|
8366
|
+
class Sp extends ur {
|
|
8366
8367
|
constructor(e) {
|
|
8367
8368
|
if (super(), this._logger = e, typeof fetch > "u" || fe.isNode) {
|
|
8368
8369
|
const t = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
8369
8370
|
this._jar = new (t("tough-cookie")).CookieJar(), typeof fetch > "u" ? this._fetchType = t("node-fetch") : this._fetchType = fetch, this._fetchType = t("fetch-cookie")(this._fetchType, this._jar);
|
|
8370
8371
|
} else
|
|
8371
|
-
this._fetchType = fetch.bind(
|
|
8372
|
+
this._fetchType = fetch.bind(Dp());
|
|
8372
8373
|
if (typeof AbortController > "u") {
|
|
8373
8374
|
const t = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
8374
8375
|
this._abortControllerType = t("abort-controller");
|
|
@@ -8392,7 +8393,7 @@ class Fp extends ur {
|
|
|
8392
8393
|
if (e.timeout) {
|
|
8393
8394
|
const u = e.timeout;
|
|
8394
8395
|
a = setTimeout(() => {
|
|
8395
|
-
t.abort(), this._logger.log(I.Warning, "Timeout from HTTP request."), n = new
|
|
8396
|
+
t.abort(), this._logger.log(I.Warning, "Timeout from HTTP request."), n = new Rn();
|
|
8396
8397
|
}, u);
|
|
8397
8398
|
}
|
|
8398
8399
|
e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {}, ct(e.content) ? e.headers["Content-Type"] = "application/octet-stream" : e.headers["Content-Type"] = "text/plain;charset=UTF-8");
|
|
@@ -8447,7 +8448,7 @@ function va(r, e) {
|
|
|
8447
8448
|
}
|
|
8448
8449
|
return t;
|
|
8449
8450
|
}
|
|
8450
|
-
class
|
|
8451
|
+
class Fp extends ur {
|
|
8451
8452
|
constructor(e) {
|
|
8452
8453
|
super(), this._logger = e;
|
|
8453
8454
|
}
|
|
@@ -8466,18 +8467,18 @@ class Ip extends ur {
|
|
|
8466
8467
|
}, a.onerror = () => {
|
|
8467
8468
|
this._logger.log(I.Warning, `Error from HTTP request. ${a.status}: ${a.statusText}.`), n(new at(a.statusText, a.status));
|
|
8468
8469
|
}, a.ontimeout = () => {
|
|
8469
|
-
this._logger.log(I.Warning, "Timeout from HTTP request."), n(new
|
|
8470
|
+
this._logger.log(I.Warning, "Timeout from HTTP request."), n(new Rn());
|
|
8470
8471
|
}, a.send(e.content);
|
|
8471
8472
|
}) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
|
|
8472
8473
|
}
|
|
8473
8474
|
}
|
|
8474
|
-
class
|
|
8475
|
+
class Ip extends ur {
|
|
8475
8476
|
/** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
|
|
8476
8477
|
constructor(e) {
|
|
8477
8478
|
if (super(), typeof fetch < "u" || fe.isNode)
|
|
8478
|
-
this._httpClient = new
|
|
8479
|
+
this._httpClient = new Sp(e);
|
|
8479
8480
|
else if (typeof XMLHttpRequest < "u")
|
|
8480
|
-
this._httpClient = new
|
|
8481
|
+
this._httpClient = new Fp(e);
|
|
8481
8482
|
else
|
|
8482
8483
|
throw new Error("No usable HttpClient found.");
|
|
8483
8484
|
}
|
|
@@ -8502,7 +8503,7 @@ class Te {
|
|
|
8502
8503
|
}
|
|
8503
8504
|
Te.RecordSeparatorCode = 30;
|
|
8504
8505
|
Te.RecordSeparator = String.fromCharCode(Te.RecordSeparatorCode);
|
|
8505
|
-
class
|
|
8506
|
+
class Tp {
|
|
8506
8507
|
// Handshake request is always JSON
|
|
8507
8508
|
writeHandshakeRequest(e) {
|
|
8508
8509
|
return Te.write(JSON.stringify(e));
|
|
@@ -8528,11 +8529,11 @@ class Pp {
|
|
|
8528
8529
|
return [n, s];
|
|
8529
8530
|
}
|
|
8530
8531
|
}
|
|
8531
|
-
var
|
|
8532
|
+
var Y;
|
|
8532
8533
|
(function(r) {
|
|
8533
8534
|
r[r.Invocation = 1] = "Invocation", r[r.StreamItem = 2] = "StreamItem", r[r.Completion = 3] = "Completion", r[r.StreamInvocation = 4] = "StreamInvocation", r[r.CancelInvocation = 5] = "CancelInvocation", r[r.Ping = 6] = "Ping", r[r.Close = 7] = "Close", r[r.Ack = 8] = "Ack", r[r.Sequence = 9] = "Sequence";
|
|
8534
|
-
})(
|
|
8535
|
-
class
|
|
8535
|
+
})(Y || (Y = {}));
|
|
8536
|
+
class Pp {
|
|
8536
8537
|
constructor() {
|
|
8537
8538
|
this.observers = [];
|
|
8538
8539
|
}
|
|
@@ -8549,10 +8550,10 @@ class Rp {
|
|
|
8549
8550
|
e.complete && e.complete();
|
|
8550
8551
|
}
|
|
8551
8552
|
subscribe(e) {
|
|
8552
|
-
return this.observers.push(e), new
|
|
8553
|
+
return this.observers.push(e), new wp(this, e);
|
|
8553
8554
|
}
|
|
8554
8555
|
}
|
|
8555
|
-
class
|
|
8556
|
+
class Rp {
|
|
8556
8557
|
constructor(e, t, n) {
|
|
8557
8558
|
this._bufferSize = 1e5, this._messages = [], this._totalMessageCount = 0, this._waitForSequenceMessage = !1, this._nextReceivingSequenceId = 1, this._latestReceivedSequenceId = 0, this._bufferedByteCount = 0, this._reconnectInProgress = !1, this._protocol = e, this._connection = t, this._bufferSize = n;
|
|
8558
8559
|
}
|
|
@@ -8566,7 +8567,7 @@ class $p {
|
|
|
8566
8567
|
};
|
|
8567
8568
|
ct(t) ? this._bufferedByteCount += t.byteLength : this._bufferedByteCount += t.length, this._bufferedByteCount >= this._bufferSize && (n = new Promise((i, l) => {
|
|
8568
8569
|
a = i, s = l;
|
|
8569
|
-
})), this._messages.push(new
|
|
8570
|
+
})), this._messages.push(new $p(t, this._totalMessageCount, a, s));
|
|
8570
8571
|
}
|
|
8571
8572
|
try {
|
|
8572
8573
|
this._reconnectInProgress || await this._connection.send(t);
|
|
@@ -8590,7 +8591,7 @@ class $p {
|
|
|
8590
8591
|
}
|
|
8591
8592
|
_shouldProcessMessage(e) {
|
|
8592
8593
|
if (this._waitForSequenceMessage)
|
|
8593
|
-
return e.type !==
|
|
8594
|
+
return e.type !== Y.Sequence ? !1 : (this._waitForSequenceMessage = !1, !0);
|
|
8594
8595
|
if (!this._isInvocationMessage(e))
|
|
8595
8596
|
return !0;
|
|
8596
8597
|
const t = this._nextReceivingSequenceId;
|
|
@@ -8608,7 +8609,7 @@ class $p {
|
|
|
8608
8609
|
}
|
|
8609
8610
|
async _resend() {
|
|
8610
8611
|
const e = this._messages.length !== 0 ? this._messages[0]._id : this._totalMessageCount + 1;
|
|
8611
|
-
await this._connection.send(this._protocol.writeMessage({ type:
|
|
8612
|
+
await this._connection.send(this._protocol.writeMessage({ type: Y.Sequence, sequenceId: e }));
|
|
8612
8613
|
const t = this._messages;
|
|
8613
8614
|
for (const n of t)
|
|
8614
8615
|
await this._connection.send(n._message);
|
|
@@ -8621,52 +8622,52 @@ class $p {
|
|
|
8621
8622
|
}
|
|
8622
8623
|
_isInvocationMessage(e) {
|
|
8623
8624
|
switch (e.type) {
|
|
8624
|
-
case
|
|
8625
|
-
case
|
|
8626
|
-
case
|
|
8627
|
-
case
|
|
8628
|
-
case
|
|
8625
|
+
case Y.Invocation:
|
|
8626
|
+
case Y.StreamItem:
|
|
8627
|
+
case Y.Completion:
|
|
8628
|
+
case Y.StreamInvocation:
|
|
8629
|
+
case Y.CancelInvocation:
|
|
8629
8630
|
return !0;
|
|
8630
|
-
case
|
|
8631
|
-
case
|
|
8632
|
-
case
|
|
8633
|
-
case
|
|
8631
|
+
case Y.Close:
|
|
8632
|
+
case Y.Sequence:
|
|
8633
|
+
case Y.Ping:
|
|
8634
|
+
case Y.Ack:
|
|
8634
8635
|
return !1;
|
|
8635
8636
|
}
|
|
8636
8637
|
}
|
|
8637
8638
|
_ackTimer() {
|
|
8638
8639
|
this._ackTimerHandle === void 0 && (this._ackTimerHandle = setTimeout(async () => {
|
|
8639
8640
|
try {
|
|
8640
|
-
this._reconnectInProgress || await this._connection.send(this._protocol.writeMessage({ type:
|
|
8641
|
+
this._reconnectInProgress || await this._connection.send(this._protocol.writeMessage({ type: Y.Ack, sequenceId: this._latestReceivedSequenceId }));
|
|
8641
8642
|
} catch {
|
|
8642
8643
|
}
|
|
8643
8644
|
clearTimeout(this._ackTimerHandle), this._ackTimerHandle = void 0;
|
|
8644
8645
|
}, 1e3));
|
|
8645
8646
|
}
|
|
8646
8647
|
}
|
|
8647
|
-
class
|
|
8648
|
+
class $p {
|
|
8648
8649
|
constructor(e, t, n, a) {
|
|
8649
8650
|
this._message = e, this._id = t, this._resolver = n, this._rejector = a;
|
|
8650
8651
|
}
|
|
8651
8652
|
}
|
|
8652
|
-
const
|
|
8653
|
+
const zp = 30 * 1e3, Op = 15 * 1e3, Mp = 1e5;
|
|
8653
8654
|
var ue;
|
|
8654
8655
|
(function(r) {
|
|
8655
8656
|
r.Disconnected = "Disconnected", r.Connecting = "Connecting", r.Connected = "Connected", r.Disconnecting = "Disconnecting", r.Reconnecting = "Reconnecting";
|
|
8656
8657
|
})(ue || (ue = {}));
|
|
8657
|
-
class
|
|
8658
|
+
class $n {
|
|
8658
8659
|
/** @internal */
|
|
8659
8660
|
// Using a public static factory method means we can have a private constructor and an _internal_
|
|
8660
8661
|
// create method that can be used by HubConnectionBuilder. An "internal" constructor would just
|
|
8661
8662
|
// be stripped away and the '.d.ts' file would have no constructor, which is interpreted as a
|
|
8662
8663
|
// public parameter-less constructor.
|
|
8663
8664
|
static create(e, t, n, a, s, i, l) {
|
|
8664
|
-
return new
|
|
8665
|
+
return new $n(e, t, n, a, s, i, l);
|
|
8665
8666
|
}
|
|
8666
8667
|
constructor(e, t, n, a, s, i, l) {
|
|
8667
8668
|
this._nextKeepAlive = 0, this._freezeEventListener = () => {
|
|
8668
8669
|
this._logger.log(I.Warning, "The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep");
|
|
8669
|
-
}, xe.isRequired(e, "connection"), xe.isRequired(t, "logger"), xe.isRequired(n, "protocol"), this.serverTimeoutInMilliseconds = s ??
|
|
8670
|
+
}, xe.isRequired(e, "connection"), xe.isRequired(t, "logger"), xe.isRequired(n, "protocol"), this.serverTimeoutInMilliseconds = s ?? zp, this.keepAliveIntervalInMilliseconds = i ?? Op, this._statefulReconnectBufferSize = l ?? Mp, this._logger = t, this._protocol = n, this.connection = e, this._reconnectPolicy = a, this._handshakeProtocol = new Tp(), this.connection.onreceive = (u) => this._processIncomingData(u), this.connection.onclose = (u) => this._connectionClosed(u), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = ue.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: Y.Ping });
|
|
8670
8671
|
}
|
|
8671
8672
|
/** Indicates the state of the {@link HubConnection} to the server. */
|
|
8672
8673
|
get state() {
|
|
@@ -8726,7 +8727,7 @@ class Rn {
|
|
|
8726
8727
|
};
|
|
8727
8728
|
if (this._logger.log(I.Debug, "Sending handshake request."), await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(n)), this._logger.log(I.Information, `Using HubProtocol '${this._protocol.name}'.`), this._cleanupTimeout(), this._resetTimeoutPeriod(), this._resetKeepAliveInterval(), await e, this._stopDuringStartError)
|
|
8728
8729
|
throw this._stopDuringStartError;
|
|
8729
|
-
(this.connection.features.reconnect || !1) && (this._messageBuffer = new
|
|
8730
|
+
(this.connection.features.reconnect || !1) && (this._messageBuffer = new Rp(this._protocol, this.connection, this._statefulReconnectBufferSize), this.connection.features.disconnected = this._messageBuffer._disconnected.bind(this._messageBuffer), this.connection.features.resend = () => {
|
|
8730
8731
|
if (this._messageBuffer)
|
|
8731
8732
|
return this._messageBuffer._resend();
|
|
8732
8733
|
}), this.connection.features.inherentKeepAlive || await this._sendMessage(this._cachedPingMessage);
|
|
@@ -8770,7 +8771,7 @@ class Rn {
|
|
|
8770
8771
|
stream(e, ...t) {
|
|
8771
8772
|
const [n, a] = this._replaceStreamingParams(t), s = this._createStreamInvocation(e, t, a);
|
|
8772
8773
|
let i;
|
|
8773
|
-
const l = new
|
|
8774
|
+
const l = new Pp();
|
|
8774
8775
|
return l.cancelCallback = () => {
|
|
8775
8776
|
const u = this._createCancelInvocation(s.invocationId);
|
|
8776
8777
|
return delete this._callbacks[s.invocationId], i.then(() => this._sendWithProtocol(u));
|
|
@@ -8778,7 +8779,7 @@ class Rn {
|
|
|
8778
8779
|
if (o) {
|
|
8779
8780
|
l.error(o);
|
|
8780
8781
|
return;
|
|
8781
|
-
} else u && (u.type ===
|
|
8782
|
+
} else u && (u.type === Y.Completion ? u.error ? l.error(new Error(u.error)) : l.complete() : l.next(u.item));
|
|
8782
8783
|
}, i = this._sendWithProtocol(s).catch((u) => {
|
|
8783
8784
|
l.error(u), delete this._callbacks[s.invocationId];
|
|
8784
8785
|
}), this._launchStreams(n, i), l;
|
|
@@ -8824,7 +8825,7 @@ class Rn {
|
|
|
8824
8825
|
if (_) {
|
|
8825
8826
|
u(_);
|
|
8826
8827
|
return;
|
|
8827
|
-
} else c && (c.type ===
|
|
8828
|
+
} else c && (c.type === Y.Completion ? c.error ? u(new Error(c.error)) : l(c.result) : u(new Error(`Unexpected message type: ${c.type}`)));
|
|
8828
8829
|
};
|
|
8829
8830
|
const o = this._sendWithProtocol(s).catch((c) => {
|
|
8830
8831
|
u(c), delete this._callbacks[s.invocationId];
|
|
@@ -8874,36 +8875,36 @@ class Rn {
|
|
|
8874
8875
|
for (const n of t)
|
|
8875
8876
|
if (!(this._messageBuffer && !this._messageBuffer._shouldProcessMessage(n)))
|
|
8876
8877
|
switch (n.type) {
|
|
8877
|
-
case
|
|
8878
|
+
case Y.Invocation:
|
|
8878
8879
|
this._invokeClientMethod(n).catch((a) => {
|
|
8879
|
-
this._logger.log(I.Error, `Invoke client method threw error: ${
|
|
8880
|
+
this._logger.log(I.Error, `Invoke client method threw error: ${Yr(a)}`);
|
|
8880
8881
|
});
|
|
8881
8882
|
break;
|
|
8882
|
-
case
|
|
8883
|
-
case
|
|
8883
|
+
case Y.StreamItem:
|
|
8884
|
+
case Y.Completion: {
|
|
8884
8885
|
const a = this._callbacks[n.invocationId];
|
|
8885
8886
|
if (a) {
|
|
8886
|
-
n.type ===
|
|
8887
|
+
n.type === Y.Completion && delete this._callbacks[n.invocationId];
|
|
8887
8888
|
try {
|
|
8888
8889
|
a(n);
|
|
8889
8890
|
} catch (s) {
|
|
8890
|
-
this._logger.log(I.Error, `Stream callback threw error: ${
|
|
8891
|
+
this._logger.log(I.Error, `Stream callback threw error: ${Yr(s)}`);
|
|
8891
8892
|
}
|
|
8892
8893
|
}
|
|
8893
8894
|
break;
|
|
8894
8895
|
}
|
|
8895
|
-
case
|
|
8896
|
+
case Y.Ping:
|
|
8896
8897
|
break;
|
|
8897
|
-
case
|
|
8898
|
+
case Y.Close: {
|
|
8898
8899
|
this._logger.log(I.Information, "Close message received from server.");
|
|
8899
8900
|
const a = n.error ? new Error("Server returned an error on close: " + n.error) : void 0;
|
|
8900
8901
|
n.allowReconnect === !0 ? this.connection.stop(a) : this._stopPromise = this._stopInternal(a);
|
|
8901
8902
|
break;
|
|
8902
8903
|
}
|
|
8903
|
-
case
|
|
8904
|
+
case Y.Ack:
|
|
8904
8905
|
this._messageBuffer && this._messageBuffer._ack(n);
|
|
8905
8906
|
break;
|
|
8906
|
-
case
|
|
8907
|
+
case Y.Sequence:
|
|
8907
8908
|
this._messageBuffer && this._messageBuffer._resetSequence(n);
|
|
8908
8909
|
break;
|
|
8909
8910
|
default:
|
|
@@ -9043,7 +9044,7 @@ class Rn {
|
|
|
9043
9044
|
try {
|
|
9044
9045
|
a(null, e);
|
|
9045
9046
|
} catch (s) {
|
|
9046
|
-
this._logger.log(I.Error, `Stream 'error' callback called with '${e}' threw error: ${
|
|
9047
|
+
this._logger.log(I.Error, `Stream 'error' callback called with '${e}' threw error: ${Yr(s)}`);
|
|
9047
9048
|
}
|
|
9048
9049
|
});
|
|
9049
9050
|
}
|
|
@@ -9059,11 +9060,11 @@ class Rn {
|
|
|
9059
9060
|
arguments: t,
|
|
9060
9061
|
streamIds: a,
|
|
9061
9062
|
target: e,
|
|
9062
|
-
type:
|
|
9063
|
+
type: Y.Invocation
|
|
9063
9064
|
} : {
|
|
9064
9065
|
arguments: t,
|
|
9065
9066
|
target: e,
|
|
9066
|
-
type:
|
|
9067
|
+
type: Y.Invocation
|
|
9067
9068
|
};
|
|
9068
9069
|
{
|
|
9069
9070
|
const s = this._invocationId;
|
|
@@ -9072,12 +9073,12 @@ class Rn {
|
|
|
9072
9073
|
invocationId: s.toString(),
|
|
9073
9074
|
streamIds: a,
|
|
9074
9075
|
target: e,
|
|
9075
|
-
type:
|
|
9076
|
+
type: Y.Invocation
|
|
9076
9077
|
} : {
|
|
9077
9078
|
arguments: t,
|
|
9078
9079
|
invocationId: s.toString(),
|
|
9079
9080
|
target: e,
|
|
9080
|
-
type:
|
|
9081
|
+
type: Y.Invocation
|
|
9081
9082
|
};
|
|
9082
9083
|
}
|
|
9083
9084
|
}
|
|
@@ -9120,46 +9121,46 @@ class Rn {
|
|
|
9120
9121
|
invocationId: a.toString(),
|
|
9121
9122
|
streamIds: n,
|
|
9122
9123
|
target: e,
|
|
9123
|
-
type:
|
|
9124
|
+
type: Y.StreamInvocation
|
|
9124
9125
|
} : {
|
|
9125
9126
|
arguments: t,
|
|
9126
9127
|
invocationId: a.toString(),
|
|
9127
9128
|
target: e,
|
|
9128
|
-
type:
|
|
9129
|
+
type: Y.StreamInvocation
|
|
9129
9130
|
};
|
|
9130
9131
|
}
|
|
9131
9132
|
_createCancelInvocation(e) {
|
|
9132
9133
|
return {
|
|
9133
9134
|
invocationId: e,
|
|
9134
|
-
type:
|
|
9135
|
+
type: Y.CancelInvocation
|
|
9135
9136
|
};
|
|
9136
9137
|
}
|
|
9137
9138
|
_createStreamItemMessage(e, t) {
|
|
9138
9139
|
return {
|
|
9139
9140
|
invocationId: e,
|
|
9140
9141
|
item: t,
|
|
9141
|
-
type:
|
|
9142
|
+
type: Y.StreamItem
|
|
9142
9143
|
};
|
|
9143
9144
|
}
|
|
9144
9145
|
_createCompletionMessage(e, t, n) {
|
|
9145
9146
|
return t ? {
|
|
9146
9147
|
error: t,
|
|
9147
9148
|
invocationId: e,
|
|
9148
|
-
type:
|
|
9149
|
+
type: Y.Completion
|
|
9149
9150
|
} : {
|
|
9150
9151
|
invocationId: e,
|
|
9151
9152
|
result: n,
|
|
9152
|
-
type:
|
|
9153
|
+
type: Y.Completion
|
|
9153
9154
|
};
|
|
9154
9155
|
}
|
|
9155
9156
|
_createCloseMessage() {
|
|
9156
|
-
return { type:
|
|
9157
|
+
return { type: Y.Close };
|
|
9157
9158
|
}
|
|
9158
9159
|
}
|
|
9159
|
-
const
|
|
9160
|
+
const Np = [0, 2e3, 1e4, 3e4, null];
|
|
9160
9161
|
class ga {
|
|
9161
9162
|
constructor(e) {
|
|
9162
|
-
this._retryDelays = e !== void 0 ? [...e, null] :
|
|
9163
|
+
this._retryDelays = e !== void 0 ? [...e, null] : Np;
|
|
9163
9164
|
}
|
|
9164
9165
|
nextRetryDelayInMilliseconds(e) {
|
|
9165
9166
|
return this._retryDelays[e.previousRetryCount];
|
|
@@ -9169,7 +9170,7 @@ class st {
|
|
|
9169
9170
|
}
|
|
9170
9171
|
st.Authorization = "Authorization";
|
|
9171
9172
|
st.Cookie = "Cookie";
|
|
9172
|
-
class
|
|
9173
|
+
class Lp extends ur {
|
|
9173
9174
|
constructor(e, t) {
|
|
9174
9175
|
super(), this._innerClient = e, this._accessTokenFactory = t;
|
|
9175
9176
|
}
|
|
@@ -9194,7 +9195,7 @@ var ye;
|
|
|
9194
9195
|
(function(r) {
|
|
9195
9196
|
r[r.Text = 1] = "Text", r[r.Binary = 2] = "Binary";
|
|
9196
9197
|
})(ye || (ye = {}));
|
|
9197
|
-
let
|
|
9198
|
+
let Hp = class {
|
|
9198
9199
|
constructor() {
|
|
9199
9200
|
this._isAborted = !1, this.onabort = null;
|
|
9200
9201
|
}
|
|
@@ -9214,7 +9215,7 @@ class ma {
|
|
|
9214
9215
|
return this._pollAbort.aborted;
|
|
9215
9216
|
}
|
|
9216
9217
|
constructor(e, t, n) {
|
|
9217
|
-
this._httpClient = e, this._logger = t, this._pollAbort = new
|
|
9218
|
+
this._httpClient = e, this._logger = t, this._pollAbort = new Hp(), this._options = n, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
9218
9219
|
}
|
|
9219
9220
|
async connect(e, t) {
|
|
9220
9221
|
if (xe.isRequired(e, "url"), xe.isRequired(t, "transferFormat"), xe.isIn(t, ye, "transferFormat"), this._url = e, this._logger.log(I.Trace, "(LongPolling transport) Connecting."), t === ye.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
|
|
@@ -9240,7 +9241,7 @@ class ma {
|
|
|
9240
9241
|
const a = await this._httpClient.get(n, t);
|
|
9241
9242
|
a.statusCode === 204 ? (this._logger.log(I.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : a.statusCode !== 200 ? (this._logger.log(I.Error, `(LongPolling transport) Unexpected response code: ${a.statusCode}.`), this._closeError = new at(a.statusText || "", a.statusCode), this._running = !1) : a.content ? (this._logger.log(I.Trace, `(LongPolling transport) data received. ${Mt(a.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(a.content)) : this._logger.log(I.Trace, "(LongPolling transport) Poll timed out, reissuing.");
|
|
9242
9243
|
} catch (n) {
|
|
9243
|
-
this._running ? n instanceof
|
|
9244
|
+
this._running ? n instanceof Rn ? this._logger.log(I.Trace, "(LongPolling transport) Poll timed out, reissuing.") : (this._closeError = n, this._running = !1) : this._logger.log(I.Trace, `(LongPolling transport) Poll errored after shutdown: ${n.message}`);
|
|
9244
9245
|
}
|
|
9245
9246
|
} finally {
|
|
9246
9247
|
this._logger.log(I.Trace, "(LongPolling transport) Polling complete."), this.pollAborted || this._raiseOnClose();
|
|
@@ -9278,7 +9279,7 @@ class ma {
|
|
|
9278
9279
|
}
|
|
9279
9280
|
}
|
|
9280
9281
|
}
|
|
9281
|
-
class
|
|
9282
|
+
class Up {
|
|
9282
9283
|
constructor(e, t, n, a) {
|
|
9283
9284
|
this._httpClient = e, this._accessToken = t, this._logger = n, this._options = a, this.onreceive = null, this.onclose = null;
|
|
9284
9285
|
}
|
|
@@ -9328,7 +9329,7 @@ class jp {
|
|
|
9328
9329
|
this._eventSource && (this._eventSource.close(), this._eventSource = void 0, this.onclose && this.onclose(e));
|
|
9329
9330
|
}
|
|
9330
9331
|
}
|
|
9331
|
-
class
|
|
9332
|
+
class jp {
|
|
9332
9333
|
constructor(e, t, n, a, s, i) {
|
|
9333
9334
|
this._logger = n, this._accessTokenFactory = t, this._logMessageContent = a, this._webSocketConstructor = s, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = i;
|
|
9334
9335
|
}
|
|
@@ -9387,10 +9388,10 @@ class qp {
|
|
|
9387
9388
|
}
|
|
9388
9389
|
}
|
|
9389
9390
|
const _a = 100;
|
|
9390
|
-
class
|
|
9391
|
+
class qp {
|
|
9391
9392
|
constructor(e, t = {}) {
|
|
9392
9393
|
if (this._stopPromiseResolver = () => {
|
|
9393
|
-
}, this.features = {}, this._negotiateVersion = 1, xe.isRequired(e, "url"), this._logger =
|
|
9394
|
+
}, this.features = {}, this._negotiateVersion = 1, xe.isRequired(e, "url"), this._logger = bp(t.logger), this.baseUrl = this._resolveUrl(e), t = t || {}, t.logMessageContent = t.logMessageContent === void 0 ? !1 : t.logMessageContent, typeof t.withCredentials == "boolean" || t.withCredentials === void 0)
|
|
9394
9395
|
t.withCredentials = t.withCredentials === void 0 ? !0 : t.withCredentials;
|
|
9395
9396
|
else
|
|
9396
9397
|
throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
|
|
@@ -9400,7 +9401,7 @@ class Wp {
|
|
|
9400
9401
|
const s = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
9401
9402
|
n = s("ws"), a = s("eventsource");
|
|
9402
9403
|
}
|
|
9403
|
-
!fe.isNode && typeof WebSocket < "u" && !t.WebSocket ? t.WebSocket = WebSocket : fe.isNode && !t.WebSocket && n && (t.WebSocket = n), !fe.isNode && typeof EventSource < "u" && !t.EventSource ? t.EventSource = EventSource : fe.isNode && !t.EventSource && typeof a < "u" && (t.EventSource = a), this._httpClient = new
|
|
9404
|
+
!fe.isNode && typeof WebSocket < "u" && !t.WebSocket ? t.WebSocket = WebSocket : fe.isNode && !t.WebSocket && n && (t.WebSocket = n), !fe.isNode && typeof EventSource < "u" && !t.EventSource ? t.EventSource = EventSource : fe.isNode && !t.EventSource && typeof a < "u" && (t.EventSource = a), this._httpClient = new Lp(t.httpClient || new Ip(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
|
|
9404
9405
|
}
|
|
9405
9406
|
async start(e) {
|
|
9406
9407
|
if (e = e || ye.Binary, xe.isIn(e, ye, "transferFormat"), this._logger.log(I.Debug, `Starting connection with transfer format '${ye[e]}'.`), this._connectionState !== "Disconnected")
|
|
@@ -9415,7 +9416,7 @@ class Wp {
|
|
|
9415
9416
|
this._connectionStarted = !0;
|
|
9416
9417
|
}
|
|
9417
9418
|
send(e) {
|
|
9418
|
-
return this._connectionState !== "Connected" ? Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")) : (this._sendQueue || (this._sendQueue = new
|
|
9419
|
+
return this._connectionState !== "Connected" ? Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")) : (this._sendQueue || (this._sendQueue = new zn(this.transport)), this._sendQueue.send(e));
|
|
9419
9420
|
}
|
|
9420
9421
|
async stop(e) {
|
|
9421
9422
|
if (this._connectionState === "Disconnected")
|
|
@@ -9524,25 +9525,25 @@ class Wp {
|
|
|
9524
9525
|
await this._startTransport(s, a), this.connectionId = u.connectionId;
|
|
9525
9526
|
return;
|
|
9526
9527
|
} catch (_) {
|
|
9527
|
-
if (this._logger.log(I.Error, `Failed to start the transport '${o.transport}': ${_}`), u = void 0, i.push(new
|
|
9528
|
+
if (this._logger.log(I.Error, `Failed to start the transport '${o.transport}': ${_}`), u = void 0, i.push(new mp(`${o.transport} failed: ${_}`, he[o.transport])), this._connectionState !== "Connecting") {
|
|
9528
9529
|
const d = "Failed to select transport before stop() was called.";
|
|
9529
9530
|
return this._logger.log(I.Debug, d), Promise.reject(new Oe(d));
|
|
9530
9531
|
}
|
|
9531
9532
|
}
|
|
9532
9533
|
}
|
|
9533
9534
|
}
|
|
9534
|
-
return i.length > 0 ? Promise.reject(new
|
|
9535
|
+
return i.length > 0 ? Promise.reject(new _p(`Unable to connect to the server with any of the available transports. ${i.join(" ")}`, i)) : Promise.reject(new Error("None of the transports supported by the client are supported by the server."));
|
|
9535
9536
|
}
|
|
9536
9537
|
_constructTransport(e) {
|
|
9537
9538
|
switch (e) {
|
|
9538
9539
|
case he.WebSockets:
|
|
9539
9540
|
if (!this._options.WebSocket)
|
|
9540
9541
|
throw new Error("'WebSocket' is not supported in your environment.");
|
|
9541
|
-
return new
|
|
9542
|
+
return new jp(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
|
|
9542
9543
|
case he.ServerSentEvents:
|
|
9543
9544
|
if (!this._options.EventSource)
|
|
9544
9545
|
throw new Error("'EventSource' is not supported in your environment.");
|
|
9545
|
-
return new
|
|
9546
|
+
return new Up(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
|
|
9546
9547
|
case he.LongPolling:
|
|
9547
9548
|
return new ma(this._httpClient, this._logger, this._options);
|
|
9548
9549
|
default:
|
|
@@ -9569,10 +9570,10 @@ class Wp {
|
|
|
9569
9570
|
const s = he[e.transport];
|
|
9570
9571
|
if (s == null)
|
|
9571
9572
|
return this._logger.log(I.Debug, `Skipping transport '${e.transport}' because it is not supported by this client.`), new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);
|
|
9572
|
-
if (
|
|
9573
|
+
if (Wp(t, s))
|
|
9573
9574
|
if (e.transferFormats.map((l) => ye[l]).indexOf(n) >= 0) {
|
|
9574
9575
|
if (s === he.WebSockets && !this._options.WebSocket || s === he.ServerSentEvents && !this._options.EventSource)
|
|
9575
|
-
return this._logger.log(I.Debug, `Skipping transport '${he[s]}' because it is not supported in your environment.'`), new
|
|
9576
|
+
return this._logger.log(I.Debug, `Skipping transport '${he[s]}' because it is not supported in your environment.'`), new vp(`'${he[s]}' is not supported in your environment.`, s);
|
|
9576
9577
|
this._logger.log(I.Debug, `Selecting transport '${he[s]}'.`);
|
|
9577
9578
|
try {
|
|
9578
9579
|
return this.features.reconnect = s === he.WebSockets ? a : void 0, this._constructTransport(s);
|
|
@@ -9582,7 +9583,7 @@ class Wp {
|
|
|
9582
9583
|
} else
|
|
9583
9584
|
return this._logger.log(I.Debug, `Skipping transport '${he[s]}' because it does not support the requested transfer format '${ye[n]}'.`), new Error(`'${he[s]}' does not support ${ye[n]}.`);
|
|
9584
9585
|
else
|
|
9585
|
-
return this._logger.log(I.Debug, `Skipping transport '${he[s]}' because it was disabled by the client.`), new
|
|
9586
|
+
return this._logger.log(I.Debug, `Skipping transport '${he[s]}' because it was disabled by the client.`), new gp(`'${he[s]}' is disabled by the client.`, s);
|
|
9586
9587
|
}
|
|
9587
9588
|
_isITransport(e) {
|
|
9588
9589
|
return e && typeof e == "object" && "connect" in e;
|
|
@@ -9620,10 +9621,10 @@ class Wp {
|
|
|
9620
9621
|
return n.has("negotiateVersion") || n.append("negotiateVersion", this._negotiateVersion.toString()), n.has("useStatefulReconnect") ? n.get("useStatefulReconnect") === "true" && (this._options._useStatefulReconnect = !0) : this._options._useStatefulReconnect === !0 && n.append("useStatefulReconnect", "true"), t.search = n.toString(), t.toString();
|
|
9621
9622
|
}
|
|
9622
9623
|
}
|
|
9623
|
-
function
|
|
9624
|
+
function Wp(r, e) {
|
|
9624
9625
|
return !r || (e & r) !== 0;
|
|
9625
9626
|
}
|
|
9626
|
-
class
|
|
9627
|
+
class zn {
|
|
9627
9628
|
constructor(e) {
|
|
9628
9629
|
this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new Kt(), this._transportResult = new Kt(), this._sendLoopPromise = this._sendLoop();
|
|
9629
9630
|
}
|
|
@@ -9647,7 +9648,7 @@ class $n {
|
|
|
9647
9648
|
this._sendBufferedData = new Kt();
|
|
9648
9649
|
const e = this._transportResult;
|
|
9649
9650
|
this._transportResult = void 0;
|
|
9650
|
-
const t = typeof this._buffer[0] == "string" ? this._buffer.join("") :
|
|
9651
|
+
const t = typeof this._buffer[0] == "string" ? this._buffer.join("") : zn._concatBuffers(this._buffer);
|
|
9651
9652
|
this._buffer.length = 0;
|
|
9652
9653
|
try {
|
|
9653
9654
|
await this._transport.send(t), e.resolve();
|
|
@@ -9675,10 +9676,10 @@ class Kt {
|
|
|
9675
9676
|
this._rejecter(e);
|
|
9676
9677
|
}
|
|
9677
9678
|
}
|
|
9678
|
-
const
|
|
9679
|
-
class
|
|
9679
|
+
const Vp = "json";
|
|
9680
|
+
class Kp {
|
|
9680
9681
|
constructor() {
|
|
9681
|
-
this.name =
|
|
9682
|
+
this.name = Vp, this.version = 2, this.transferFormat = ye.Text;
|
|
9682
9683
|
}
|
|
9683
9684
|
/** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
|
|
9684
9685
|
*
|
|
@@ -9697,23 +9698,23 @@ class Gp {
|
|
|
9697
9698
|
if (typeof i.type != "number")
|
|
9698
9699
|
throw new Error("Invalid payload.");
|
|
9699
9700
|
switch (i.type) {
|
|
9700
|
-
case
|
|
9701
|
+
case Y.Invocation:
|
|
9701
9702
|
this._isInvocationMessage(i);
|
|
9702
9703
|
break;
|
|
9703
|
-
case
|
|
9704
|
+
case Y.StreamItem:
|
|
9704
9705
|
this._isStreamItemMessage(i);
|
|
9705
9706
|
break;
|
|
9706
|
-
case
|
|
9707
|
+
case Y.Completion:
|
|
9707
9708
|
this._isCompletionMessage(i);
|
|
9708
9709
|
break;
|
|
9709
|
-
case
|
|
9710
|
+
case Y.Ping:
|
|
9710
9711
|
break;
|
|
9711
|
-
case
|
|
9712
|
+
case Y.Close:
|
|
9712
9713
|
break;
|
|
9713
|
-
case
|
|
9714
|
+
case Y.Ack:
|
|
9714
9715
|
this._isAckMessage(i);
|
|
9715
9716
|
break;
|
|
9716
|
-
case
|
|
9717
|
+
case Y.Sequence:
|
|
9717
9718
|
this._isSequenceMessage(i);
|
|
9718
9719
|
break;
|
|
9719
9720
|
default:
|
|
@@ -9757,7 +9758,7 @@ class Gp {
|
|
|
9757
9758
|
throw new Error(t);
|
|
9758
9759
|
}
|
|
9759
9760
|
}
|
|
9760
|
-
const
|
|
9761
|
+
const Gp = {
|
|
9761
9762
|
trace: I.Trace,
|
|
9762
9763
|
debug: I.Debug,
|
|
9763
9764
|
info: I.Information,
|
|
@@ -9768,18 +9769,18 @@ const Xp = {
|
|
|
9768
9769
|
critical: I.Critical,
|
|
9769
9770
|
none: I.None
|
|
9770
9771
|
};
|
|
9771
|
-
function
|
|
9772
|
-
const e =
|
|
9772
|
+
function Xp(r) {
|
|
9773
|
+
const e = Gp[r.toLowerCase()];
|
|
9773
9774
|
if (typeof e < "u")
|
|
9774
9775
|
return e;
|
|
9775
9776
|
throw new Error(`Unknown log level: ${r}`);
|
|
9776
9777
|
}
|
|
9777
|
-
class
|
|
9778
|
+
class Qp {
|
|
9778
9779
|
configureLogging(e) {
|
|
9779
|
-
if (xe.isRequired(e, "logging"),
|
|
9780
|
+
if (xe.isRequired(e, "logging"), Zp(e))
|
|
9780
9781
|
this.logger = e;
|
|
9781
9782
|
else if (typeof e == "string") {
|
|
9782
|
-
const t =
|
|
9783
|
+
const t = Xp(e);
|
|
9783
9784
|
this.logger = new tr(t);
|
|
9784
9785
|
} else
|
|
9785
9786
|
this.logger = new tr(e);
|
|
@@ -9832,16 +9833,16 @@ class Zp {
|
|
|
9832
9833
|
const e = this.httpConnectionOptions || {};
|
|
9833
9834
|
if (e.logger === void 0 && (e.logger = this.logger), !this.url)
|
|
9834
9835
|
throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
|
|
9835
|
-
const t = new
|
|
9836
|
-
return
|
|
9836
|
+
const t = new qp(this.url, e);
|
|
9837
|
+
return $n.create(t, this.logger || Ot.instance, this.protocol || new Kp(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
|
|
9837
9838
|
}
|
|
9838
9839
|
}
|
|
9839
|
-
function
|
|
9840
|
+
function Zp(r) {
|
|
9840
9841
|
return r.log !== void 0;
|
|
9841
9842
|
}
|
|
9842
9843
|
let { baseURL: Yp } = wt();
|
|
9843
|
-
const
|
|
9844
|
-
const r = new
|
|
9844
|
+
const Jp = () => {
|
|
9845
|
+
const r = new Qp().withUrl(`${Yp}/api/tool/event-bus`, {
|
|
9845
9846
|
skipNegotiation: !0,
|
|
9846
9847
|
transport: he.WebSockets
|
|
9847
9848
|
}).withAutomaticReconnect().build();
|
|
@@ -9850,10 +9851,10 @@ const eh = () => {
|
|
|
9850
9851
|
}), r.onclose((e) => {
|
|
9851
9852
|
}), r.onreconnected(() => {
|
|
9852
9853
|
}), r;
|
|
9853
|
-
}, dr = "v1",
|
|
9854
|
-
|
|
9855
|
-
const
|
|
9856
|
-
const [t, n] = await
|
|
9854
|
+
}, dr = "v1", eh = Je(`/api/graphics-engine/component/${dr}`, (r) => (r.customErrorMessage = () => "", r)), th = Je(`/api/portal/manager/${dr}`, (r) => (r.customErrorMessage = () => "", r)), rh = Je(`/api/speech-base/speech/${dr}`, (r) => (r.customErrorMessage = () => "", r)), Ca = eh.get("/component/client/heartbeat"), nh = th.get("/basics/by-alias");
|
|
9855
|
+
rh.post("/control/callBack");
|
|
9856
|
+
const oh = Je(`/api/tool/event-bus/${dr}/`), Jr = oh.post("/publish"), ah = vn.get("/permissionset/application"), sh = vn.get("/permissionset/user-portal-menu"), ya = async (r, e) => {
|
|
9857
|
+
const [t, n] = await sh().run({
|
|
9857
9858
|
code: r,
|
|
9858
9859
|
showBtn: !1,
|
|
9859
9860
|
userType: 1
|
|
@@ -9861,8 +9862,8 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
9861
9862
|
if (t || !n || !n.length) return null;
|
|
9862
9863
|
const a = Re(n).find((s) => s.code === e);
|
|
9863
9864
|
return a || null;
|
|
9864
|
-
},
|
|
9865
|
-
const r =
|
|
9865
|
+
}, ih = () => {
|
|
9866
|
+
const r = pn(), { entryApp: e } = Zt.hooks.useEntryApp(), { entryMenu: t } = Zt.hooks.useEntryMenu();
|
|
9866
9867
|
let n = null;
|
|
9867
9868
|
return lt(async () => {
|
|
9868
9869
|
var m;
|
|
@@ -9921,7 +9922,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
9921
9922
|
if (W)
|
|
9922
9923
|
e({ microApp: W });
|
|
9923
9924
|
else {
|
|
9924
|
-
const [q, U] = await
|
|
9925
|
+
const [q, U] = await ah().run({ menuCode: H });
|
|
9925
9926
|
if (q) return;
|
|
9926
9927
|
const j = C.find((G) => G.code === U);
|
|
9927
9928
|
if (j) {
|
|
@@ -9948,7 +9949,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
9948
9949
|
setTimeout(async () => {
|
|
9949
9950
|
var v, C;
|
|
9950
9951
|
if (u.value) {
|
|
9951
|
-
const [w, A] = await
|
|
9952
|
+
const [w, A] = await nh().run({}, { params: { aliasName: f.actionValue } });
|
|
9952
9953
|
w ? await Jr().run({
|
|
9953
9954
|
uniqueId: f.uniqueId,
|
|
9954
9955
|
status: 0,
|
|
@@ -9966,8 +9967,8 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
9966
9967
|
u.value = !0;
|
|
9967
9968
|
}, 2e3);
|
|
9968
9969
|
}, c = (f) => {
|
|
9969
|
-
const v =
|
|
9970
|
-
|
|
9970
|
+
const v = Ye(), C = JSON.parse(atob(v.split(".")[1])).sub;
|
|
9971
|
+
Jp().on(`${f}:${C}`, async function(A) {
|
|
9971
9972
|
let B = i(A);
|
|
9972
9973
|
if (B)
|
|
9973
9974
|
B.uniqueId && B.actionKey == "switch-menu" && o(B);
|
|
@@ -9994,10 +9995,10 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
9994
9995
|
}), Nt(() => {
|
|
9995
9996
|
n && clearInterval(n);
|
|
9996
9997
|
}), {};
|
|
9997
|
-
}, fr = "v1",
|
|
9998
|
+
}, fr = "v1", ch = Et(`/api/fms/report/${fr}`), On = Et(`/api/emergency/manage/${fr}`), lh = _n.get("/permissionset/user-portal-menu"), $0 = Et(`/api/alarm/config/${fr}`), uh = Et(`/api/alarm/run-time/${fr}`), dh = $0.get("/alarm-definition/status-option"), fh = uh.post("/record/handling"), ph = $0.get("/alarm-level/prompttone"), hh = ch.get("/alarm/rule/list"), xh = Ra.get("/controller/space-children-all-type"), vh = Ra.get("/controller/fuzzy-area-small"), gh = On.get("/emergency-event/event/type"), mh = On.get("/emergency-event/event/level"), _h = On.get("/emergency-plan/plan/handle-time"), Ch = { class: "handle-alarm-container" }, yh = { class: "select-check" }, bh = { class: "form-box" }, wh = { class: "select-check" }, Eh = { style: { "margin-left": "8px" } }, Ah = { class: "foot-btn-box" }, Bh = {
|
|
9998
9999
|
name: "handleAlarm"
|
|
9999
|
-
},
|
|
10000
|
-
...
|
|
10000
|
+
}, kh = /* @__PURE__ */ we({
|
|
10001
|
+
...Bh,
|
|
10001
10002
|
props: {
|
|
10002
10003
|
projectId: { default: "" },
|
|
10003
10004
|
handerIds: { default: [] }
|
|
@@ -10061,13 +10062,13 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10061
10062
|
const w = M(!0), A = M(!0), B = async (N) => {
|
|
10062
10063
|
const R = { name: "1" };
|
|
10063
10064
|
N != null && N.id && (R.spaceId = N.id);
|
|
10064
|
-
const [O, Ee] = await
|
|
10065
|
+
const [O, Ee] = await xh(R).run();
|
|
10065
10066
|
return O ? {} : Ee;
|
|
10066
10067
|
}, E = async (N) => {
|
|
10067
|
-
const R = { name: N || "" }, [O, Ee] = await
|
|
10068
|
+
const R = { name: N || "" }, [O, Ee] = await vh(R).run();
|
|
10068
10069
|
return O ? {} : Ee;
|
|
10069
10070
|
}, k = M(!0), y = M(!0), b = M([]), D = async () => {
|
|
10070
|
-
const [N, R] = await
|
|
10071
|
+
const [N, R] = await hh().run({ pageIndex: -1, pageSize: -1 });
|
|
10071
10072
|
if (N) return {};
|
|
10072
10073
|
b.value = R.data.filter((O) => O.status), b.value.length > 0 && (o.value.workOrderRules = b.value[0].id);
|
|
10073
10074
|
};
|
|
@@ -10104,13 +10105,13 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10104
10105
|
}, G = (N) => {
|
|
10105
10106
|
N == "eventTypeId" && (o.value.eventLevelId = null, P()), N == "eventLevelId" && z(), N == "interval" && (c.value.timeLimit = "", o.value.interval == 3 ? (_.value = !0, o.value.timeLimit = "") : _.value = !1);
|
|
10106
10107
|
}, T = async () => {
|
|
10107
|
-
const [N, R] = await
|
|
10108
|
+
const [N, R] = await gh().run();
|
|
10108
10109
|
if (N) return {};
|
|
10109
10110
|
d.value = R, o.value.eventTypeId || (o.value.eventTypeId = R[0] ? R[0].id : null), P();
|
|
10110
10111
|
}, P = async () => {
|
|
10111
10112
|
const N = {
|
|
10112
10113
|
eventTypeId: o.value.eventTypeId
|
|
10113
|
-
}, [R, O] = await
|
|
10114
|
+
}, [R, O] = await mh(N).run();
|
|
10114
10115
|
if (R) return {};
|
|
10115
10116
|
const Ee = { 1: V("一级").value, 2: V("二级").value, 3: V("三级").value, 4: V("四级").value };
|
|
10116
10117
|
h.value = O.map((Me) => ({
|
|
@@ -10121,7 +10122,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10121
10122
|
const N = {
|
|
10122
10123
|
eventTypeId: o.value.eventTypeId,
|
|
10123
10124
|
eventLevel: o.value.eventLevelId
|
|
10124
|
-
}, [R, O] = await
|
|
10125
|
+
}, [R, O] = await _h(N).run();
|
|
10125
10126
|
if (R) return {};
|
|
10126
10127
|
o.value.interval = O.handleTimeUnit, O.handleTimeUnit == 3 ? o.value.timeLimit = "" : o.value.timeLimit = O.handleTime;
|
|
10127
10128
|
}, $ = (N) => {
|
|
@@ -10133,7 +10134,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10133
10134
|
projectId: n.projectId
|
|
10134
10135
|
};
|
|
10135
10136
|
s.value = !0;
|
|
10136
|
-
const [R, O] = await
|
|
10137
|
+
const [R, O] = await dh(N).run();
|
|
10137
10138
|
if (R) {
|
|
10138
10139
|
s.value = !1;
|
|
10139
10140
|
return;
|
|
@@ -10167,7 +10168,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10167
10168
|
//处理类型id
|
|
10168
10169
|
};
|
|
10169
10170
|
o.value.processTypeId === "createorder" ? (N.path = A.value ? "" : o.value.customPath, N.topic = y.value ? "" : o.value.reportTheme, N.spaceId = A.value ? "" : o.value.reportPosition ?? "", N.orderId = o.value.workOrderRules) : o.value.processTypeId === "createcontingency" ? (N.eventTypeId = o.value.eventTypeId, N.eventLevelId = o.value.eventLevelId, N.timeLimit = o.value.interval == 3 ? null : Number(o.value.timeLimit), N.interval = o.value.interval) : (N.reason = o.value.reason, N.treatmentPlan = o.value.treatmentPlan, N.remarks = o.value.remarks), s.value = !0, a("emitFn", "startHandle");
|
|
10170
|
-
const [R, O] = await
|
|
10171
|
+
const [R, O] = await fh(N, {
|
|
10171
10172
|
params: {
|
|
10172
10173
|
projectId: n.projectId
|
|
10173
10174
|
}
|
|
@@ -10185,8 +10186,8 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10185
10186
|
return e({
|
|
10186
10187
|
open: Ve,
|
|
10187
10188
|
close: rt
|
|
10188
|
-
}), (N, R) => (
|
|
10189
|
-
Z(F(
|
|
10189
|
+
}), (N, R) => (J(), Se("div", Ch, [
|
|
10190
|
+
Z(F(mn), {
|
|
10190
10191
|
modelValue: u.value,
|
|
10191
10192
|
"onUpdate:modelValue": R[31] || (R[31] = (O) => u.value = O),
|
|
10192
10193
|
type: "basic",
|
|
@@ -10206,7 +10207,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10206
10207
|
)
|
|
10207
10208
|
]),
|
|
10208
10209
|
footer: X(() => [
|
|
10209
|
-
K("div",
|
|
10210
|
+
K("div", Ah, [
|
|
10210
10211
|
Z(F(mt), {
|
|
10211
10212
|
size: "middle",
|
|
10212
10213
|
onClick: _e
|
|
@@ -10255,7 +10256,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10255
10256
|
])
|
|
10256
10257
|
]),
|
|
10257
10258
|
default: X(() => [
|
|
10258
|
-
Z(F(
|
|
10259
|
+
Z(F(gn), { spinning: s.value }, {
|
|
10259
10260
|
default: X(() => [
|
|
10260
10261
|
K(
|
|
10261
10262
|
"div",
|
|
@@ -10286,7 +10287,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10286
10287
|
marginRight: "0",
|
|
10287
10288
|
onChange: $
|
|
10288
10289
|
}, null, 8, ["label", "modelValue", "options"]),
|
|
10289
|
-
o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (
|
|
10290
|
+
o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (J(), se(F(Ne), {
|
|
10290
10291
|
key: 0,
|
|
10291
10292
|
label: F(V)("告警原因").value,
|
|
10292
10293
|
required: o.value.processTypeId == "dealwith",
|
|
@@ -10301,7 +10302,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10301
10302
|
marginBottom: "30px",
|
|
10302
10303
|
marginRight: "0"
|
|
10303
10304
|
}, null, 8, ["label", "required", "modelValue", "error"])) : oe("v-if", !0),
|
|
10304
|
-
o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (
|
|
10305
|
+
o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (J(), se(F(Ne), {
|
|
10305
10306
|
key: 1,
|
|
10306
10307
|
label: F(V)("处理方案").value,
|
|
10307
10308
|
required: o.value.processTypeId == "dealwith",
|
|
@@ -10316,7 +10317,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10316
10317
|
marginBottom: "30px",
|
|
10317
10318
|
marginRight: "0"
|
|
10318
10319
|
}, null, 8, ["label", "required", "modelValue", "error"])) : oe("v-if", !0),
|
|
10319
|
-
o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (
|
|
10320
|
+
o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (J(), se(F(Ne), {
|
|
10320
10321
|
key: 2,
|
|
10321
10322
|
label: F(V)("备注").value,
|
|
10322
10323
|
type: "textarea",
|
|
@@ -10329,7 +10330,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10329
10330
|
marginBottom: "30px",
|
|
10330
10331
|
marginRight: "0"
|
|
10331
10332
|
}, null, 8, ["label", "modelValue"])) : oe("v-if", !0),
|
|
10332
|
-
o.value.processTypeId == "createorder" ? (
|
|
10333
|
+
o.value.processTypeId == "createorder" ? (J(), se(F(Ne), {
|
|
10333
10334
|
key: 3,
|
|
10334
10335
|
label: F(V)("报事位置").value,
|
|
10335
10336
|
required: "",
|
|
@@ -10340,8 +10341,8 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10340
10341
|
marginRight: "0"
|
|
10341
10342
|
}, {
|
|
10342
10343
|
default: X(() => [
|
|
10343
|
-
K("div",
|
|
10344
|
-
K("div",
|
|
10344
|
+
K("div", yh, [
|
|
10345
|
+
K("div", bh, [
|
|
10345
10346
|
Z(F(Ms), {
|
|
10346
10347
|
borderType: "underline",
|
|
10347
10348
|
props: { disabled: "_disabled", label: "name" },
|
|
@@ -10361,7 +10362,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10361
10362
|
filter: !0,
|
|
10362
10363
|
allowClear: !0
|
|
10363
10364
|
}, null, 8, ["modelValue", "path", "keyword", "data", "placeholder", "disabled"]),
|
|
10364
|
-
Z(F(
|
|
10365
|
+
Z(F(Jn), {
|
|
10365
10366
|
ref: "testInput",
|
|
10366
10367
|
modelValue: o.value.customPath,
|
|
10367
10368
|
"onUpdate:modelValue": R[11] || (R[11] = (O) => o.value.customPath = O),
|
|
@@ -10392,7 +10393,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10392
10393
|
_: 1
|
|
10393
10394
|
/* STABLE */
|
|
10394
10395
|
}, 8, ["label", "error"])) : oe("v-if", !0),
|
|
10395
|
-
o.value.processTypeId == "createorder" ? (
|
|
10396
|
+
o.value.processTypeId == "createorder" ? (J(), se(F(Ne), {
|
|
10396
10397
|
key: 4,
|
|
10397
10398
|
label: F(V)("报事主题").value,
|
|
10398
10399
|
required: "",
|
|
@@ -10403,8 +10404,8 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10403
10404
|
marginRight: "0"
|
|
10404
10405
|
}, {
|
|
10405
10406
|
default: X(() => [
|
|
10406
|
-
K("div",
|
|
10407
|
-
Z(F(
|
|
10407
|
+
K("div", wh, [
|
|
10408
|
+
Z(F(Jn), {
|
|
10408
10409
|
maxlength: "20",
|
|
10409
10410
|
disabled: k.value,
|
|
10410
10411
|
modelValue: o.value.reportTheme,
|
|
@@ -10434,7 +10435,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10434
10435
|
_: 1
|
|
10435
10436
|
/* STABLE */
|
|
10436
10437
|
}, 8, ["label", "error"])) : oe("v-if", !0),
|
|
10437
|
-
o.value.processTypeId == "createorder" ? (
|
|
10438
|
+
o.value.processTypeId == "createorder" ? (J(), se(F(Ne), {
|
|
10438
10439
|
key: 5,
|
|
10439
10440
|
label: F(V)("工单规则").value,
|
|
10440
10441
|
required: "",
|
|
@@ -10452,7 +10453,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10452
10453
|
marginRight: "0"
|
|
10453
10454
|
}, null, 8, ["label", "modelValue", "error", "options"])) : oe("v-if", !0),
|
|
10454
10455
|
oe(" createcontingency 生成应急事件 "),
|
|
10455
|
-
o.value.processTypeId == "createcontingency" ? (
|
|
10456
|
+
o.value.processTypeId == "createcontingency" ? (J(), se(F(Ne), {
|
|
10456
10457
|
key: 6,
|
|
10457
10458
|
label: F(V)("事件类型").value,
|
|
10458
10459
|
required: "",
|
|
@@ -10470,7 +10471,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10470
10471
|
marginRight: "0",
|
|
10471
10472
|
onChange: R[21] || (R[21] = (O) => G("eventTypeId"))
|
|
10472
10473
|
}, null, 8, ["label", "modelValue", "error", "options"])) : oe("v-if", !0),
|
|
10473
|
-
o.value.processTypeId == "createcontingency" ? (
|
|
10474
|
+
o.value.processTypeId == "createcontingency" ? (J(), se(F(Ne), {
|
|
10474
10475
|
key: 7,
|
|
10475
10476
|
label: F(V)("事件等级").value,
|
|
10476
10477
|
required: "",
|
|
@@ -10488,7 +10489,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10488
10489
|
marginRight: "0",
|
|
10489
10490
|
onChange: R[24] || (R[24] = (O) => G("eventLevelId"))
|
|
10490
10491
|
}, null, 8, ["label", "modelValue", "error", "options"])) : oe("v-if", !0),
|
|
10491
|
-
o.value.processTypeId == "createcontingency" ? (
|
|
10492
|
+
o.value.processTypeId == "createcontingency" ? (J(), se(F(Ne), {
|
|
10492
10493
|
key: 8,
|
|
10493
10494
|
label: F(V)("处置时限").value,
|
|
10494
10495
|
required: "",
|
|
@@ -10504,7 +10505,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10504
10505
|
marginRight: "0"
|
|
10505
10506
|
}, {
|
|
10506
10507
|
default: X(() => [
|
|
10507
|
-
K("div",
|
|
10508
|
+
K("div", Eh, [
|
|
10508
10509
|
Z(F(Os), {
|
|
10509
10510
|
class: "select",
|
|
10510
10511
|
modelValue: o.value.interval,
|
|
@@ -10544,18 +10545,18 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10544
10545
|
}, 8, ["modelValue"])
|
|
10545
10546
|
]));
|
|
10546
10547
|
}
|
|
10547
|
-
}),
|
|
10548
|
-
handleAlarmVue: () => Ce(
|
|
10548
|
+
}), Dh = /* @__PURE__ */ Le(kh, [["__scopeId", "data-v-f392391d"]]), Sh = (r, e, t) => ({
|
|
10549
|
+
handleAlarmVue: () => Ce(Dh, {
|
|
10549
10550
|
handerIds: e.value,
|
|
10550
|
-
projectId:
|
|
10551
|
+
projectId: hn().id,
|
|
10551
10552
|
ref: r,
|
|
10552
10553
|
onEmitFn: (a, s) => {
|
|
10553
10554
|
}
|
|
10554
10555
|
})
|
|
10555
|
-
}),
|
|
10556
|
+
}), Fh = { class: "alarm-msg" }, Ih = { style: { position: "relative" } }, Th = { class: "title-left" }, Ph = { class: "title-box" }, Rh = { class: "content-box" }, $h = { class: "alarm-msg-line" }, zh = { class: "alarm-msg-line-left" }, Oh = { class: "alarm-msg-line" }, Mh = { class: "alarm-msg-line-left" }, Nh = { class: "alarm-msg-line-right alarm-content-object" }, Lh = { class: "alarm-msg-line" }, Hh = { class: "alarm-msg-line-left" }, Uh = { class: "alarm-msg-line-right alarm-content" }, jh = { class: "btn-box" }, qh = {
|
|
10556
10557
|
name: "alarm"
|
|
10557
|
-
},
|
|
10558
|
-
...
|
|
10558
|
+
}, Wh = /* @__PURE__ */ we({
|
|
10559
|
+
...qh,
|
|
10559
10560
|
props: {
|
|
10560
10561
|
alarmhandle: { type: Boolean, default: !1 },
|
|
10561
10562
|
msgItem: { default: {} }
|
|
@@ -10567,27 +10568,27 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10567
10568
|
}, s = () => {
|
|
10568
10569
|
n("handerDetail", t.msgItem);
|
|
10569
10570
|
};
|
|
10570
|
-
return (i, l) => (
|
|
10571
|
+
return (i, l) => (J(), Se(
|
|
10571
10572
|
_t,
|
|
10572
10573
|
null,
|
|
10573
10574
|
[
|
|
10574
10575
|
oe(` <div class="alarm-msg" :style="{ 'border-color': msgItem.color }"> `),
|
|
10575
|
-
K("div",
|
|
10576
|
-
K("div",
|
|
10576
|
+
K("div", Fh, [
|
|
10577
|
+
K("div", Ih, [
|
|
10577
10578
|
K(
|
|
10578
10579
|
"div",
|
|
10579
10580
|
{
|
|
10580
|
-
style:
|
|
10581
|
+
style: Qn({ "background-color": i.msgItem.color }),
|
|
10581
10582
|
class: "title-detail"
|
|
10582
10583
|
},
|
|
10583
10584
|
[
|
|
10584
|
-
K("div",
|
|
10585
|
+
K("div", Th, [
|
|
10585
10586
|
oe(` <div class="icon-box" :style="{ color: msgItem.color }">\r
|
|
10586
10587
|
!\r
|
|
10587
10588
|
</div> `),
|
|
10588
10589
|
K(
|
|
10589
10590
|
"div",
|
|
10590
|
-
|
|
10591
|
+
Ph,
|
|
10591
10592
|
pe(F(V)("新告警").value),
|
|
10592
10593
|
1
|
|
10593
10594
|
/* TEXT */
|
|
@@ -10604,11 +10605,11 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10604
10605
|
4
|
|
10605
10606
|
/* STYLE */
|
|
10606
10607
|
),
|
|
10607
|
-
K("div",
|
|
10608
|
-
K("div",
|
|
10608
|
+
K("div", Rh, [
|
|
10609
|
+
K("div", $h, [
|
|
10609
10610
|
K(
|
|
10610
10611
|
"div",
|
|
10611
|
-
|
|
10612
|
+
zh,
|
|
10612
10613
|
pe(F(V)("告警等级:").value),
|
|
10613
10614
|
1
|
|
10614
10615
|
/* TEXT */
|
|
@@ -10617,47 +10618,47 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10617
10618
|
"div",
|
|
10618
10619
|
{
|
|
10619
10620
|
class: "alarm-msg-line-right alarm-content-object",
|
|
10620
|
-
style:
|
|
10621
|
+
style: Qn({ color: i.msgItem.color })
|
|
10621
10622
|
},
|
|
10622
10623
|
pe(i.msgItem.alarmLevelName || ""),
|
|
10623
10624
|
5
|
|
10624
10625
|
/* TEXT, STYLE */
|
|
10625
10626
|
)
|
|
10626
10627
|
]),
|
|
10627
|
-
K("div",
|
|
10628
|
+
K("div", Oh, [
|
|
10628
10629
|
K(
|
|
10629
10630
|
"div",
|
|
10630
|
-
|
|
10631
|
+
Mh,
|
|
10631
10632
|
pe(F(V)("告警对象:").value),
|
|
10632
10633
|
1
|
|
10633
10634
|
/* TEXT */
|
|
10634
10635
|
),
|
|
10635
10636
|
K(
|
|
10636
10637
|
"div",
|
|
10637
|
-
|
|
10638
|
+
Nh,
|
|
10638
10639
|
pe(i.msgItem.equipmentName || ""),
|
|
10639
10640
|
1
|
|
10640
10641
|
/* TEXT */
|
|
10641
10642
|
)
|
|
10642
10643
|
]),
|
|
10643
|
-
K("div",
|
|
10644
|
+
K("div", Lh, [
|
|
10644
10645
|
K(
|
|
10645
10646
|
"div",
|
|
10646
|
-
|
|
10647
|
+
Hh,
|
|
10647
10648
|
pe(F(V)("告警内容:").value),
|
|
10648
10649
|
1
|
|
10649
10650
|
/* TEXT */
|
|
10650
10651
|
),
|
|
10651
10652
|
K(
|
|
10652
10653
|
"div",
|
|
10653
|
-
|
|
10654
|
+
Uh,
|
|
10654
10655
|
pe(i.msgItem.alarmContent || ""),
|
|
10655
10656
|
1
|
|
10656
10657
|
/* TEXT */
|
|
10657
10658
|
)
|
|
10658
10659
|
]),
|
|
10659
|
-
K("div",
|
|
10660
|
-
i.msgItem.equipmentCode && i.msgItem.equipmentPanelCode ? (
|
|
10660
|
+
K("div", jh, [
|
|
10661
|
+
i.msgItem.equipmentCode && i.msgItem.equipmentPanelCode ? (J(), se(F(mt), {
|
|
10661
10662
|
key: 0,
|
|
10662
10663
|
block: "",
|
|
10663
10664
|
onClick: ve(s, ["stop"]),
|
|
@@ -10674,7 +10675,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10674
10675
|
_: 1
|
|
10675
10676
|
/* STABLE */
|
|
10676
10677
|
})) : oe("v-if", !0),
|
|
10677
|
-
i.alarmhandle ? (
|
|
10678
|
+
i.alarmhandle ? (J(), se(F(mt), {
|
|
10678
10679
|
key: 1,
|
|
10679
10680
|
block: "",
|
|
10680
10681
|
btnType: "primary-text",
|
|
@@ -10701,7 +10702,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
|
|
|
10701
10702
|
));
|
|
10702
10703
|
}
|
|
10703
10704
|
});
|
|
10704
|
-
let
|
|
10705
|
+
let Vh = (r = 21) => {
|
|
10705
10706
|
let e = "", t = crypto.getRandomValues(new Uint8Array(r));
|
|
10706
10707
|
for (; r--; ) {
|
|
10707
10708
|
let n = t[r] & 63;
|
|
@@ -10709,7 +10710,7 @@ let Kh = (r = 21) => {
|
|
|
10709
10710
|
}
|
|
10710
10711
|
return e;
|
|
10711
10712
|
};
|
|
10712
|
-
const
|
|
10713
|
+
const Kh = () => {
|
|
10713
10714
|
const r = M(null), e = M(0), t = M(null), n = M(null), a = M([]), s = M([]), i = M(!1), l = M(!1), u = M(!1), o = M({
|
|
10714
10715
|
playId: "",
|
|
10715
10716
|
// 播放的告警的recordId
|
|
@@ -10736,7 +10737,7 @@ const Gh = () => {
|
|
|
10736
10737
|
k.push({ alarmId: E.recordId }), a.value = k, (y = t.value) == null || y.open();
|
|
10737
10738
|
}, { entryApp: _ } = Zt.hooks.useEntryApp(), d = (E) => {
|
|
10738
10739
|
za(E.equipmentCode, E.equipmentPanelCode);
|
|
10739
|
-
}, { handleAlarmVue: h } =
|
|
10740
|
+
}, { handleAlarmVue: h } = Sh(t, a), p = async () => {
|
|
10740
10741
|
var y;
|
|
10741
10742
|
const k = (((y = de().appcategorys) == null ? void 0 : y.map((b) => b.apps).flat()) ?? []).find((b) => b.code === "alarm");
|
|
10742
10743
|
k && _({ microApp: k, menuPath: `/${k.routeUrl}/realTimeAlarm` });
|
|
@@ -10747,13 +10748,13 @@ const Gh = () => {
|
|
|
10747
10748
|
}
|
|
10748
10749
|
}, m = (E) => {
|
|
10749
10750
|
if (!E) return;
|
|
10750
|
-
const k =
|
|
10751
|
+
const k = Vh();
|
|
10751
10752
|
Qt.open({
|
|
10752
10753
|
key: k,
|
|
10753
10754
|
class: "alarm-notify",
|
|
10754
10755
|
message: V("新告警").value,
|
|
10755
10756
|
placement: "bottomRight",
|
|
10756
|
-
description: Ce(
|
|
10757
|
+
description: Ce(Wh, {
|
|
10757
10758
|
msgItem: E,
|
|
10758
10759
|
alarmhandle: i.value,
|
|
10759
10760
|
onHanderDetail: d,
|
|
@@ -10797,7 +10798,7 @@ const Gh = () => {
|
|
|
10797
10798
|
o.value.loopCount = o.value.loopCount + 1, o.value.loopTotalCount && o.value.loopTotalCount && (o.value.loopCount == o.value.loopTotalCount ? (o.value.playPath = "", o.value.isplay = !1, o.value.playId = "", o.value.loopTotalCount = 0, o.value.loopCount = 0, o.value.playLine = null) : n.value.play());
|
|
10798
10799
|
};
|
|
10799
10800
|
}, A = async () => {
|
|
10800
|
-
const [E, k] = await
|
|
10801
|
+
const [E, k] = await ph().run();
|
|
10801
10802
|
E || (u.value = k.isEnable);
|
|
10802
10803
|
};
|
|
10803
10804
|
return {
|
|
@@ -10808,7 +10809,7 @@ const Gh = () => {
|
|
|
10808
10809
|
handleAlarmVue: h,
|
|
10809
10810
|
creatAlarmSocket: async () => {
|
|
10810
10811
|
A();
|
|
10811
|
-
const [E, k] = await
|
|
10812
|
+
const [E, k] = await lh().run({
|
|
10812
10813
|
code: "alarm",
|
|
10813
10814
|
showBtn: !0
|
|
10814
10815
|
});
|
|
@@ -10816,7 +10817,7 @@ const Gh = () => {
|
|
|
10816
10817
|
let y = !1;
|
|
10817
10818
|
k.forEach((b) => {
|
|
10818
10819
|
(b.code === "alarm.realTimeAlarm" || b.originalCode === "alarm.realTimeAlarm") && (y = !0, b.children && b.children.length ? i.value = b.children.findIndex((D) => D.code == "alarm.realTimeAlarm.handle") >= 0 : i.value = !1);
|
|
10819
|
-
}), y && (r.value = new
|
|
10820
|
+
}), y && (r.value = new Cn({
|
|
10820
10821
|
url: "/api/alarm/socket/v1/record/subscribe",
|
|
10821
10822
|
reconnectWhenClose: !0,
|
|
10822
10823
|
opened: () => {
|
|
@@ -10829,15 +10830,15 @@ const Gh = () => {
|
|
|
10829
10830
|
}));
|
|
10830
10831
|
}
|
|
10831
10832
|
};
|
|
10832
|
-
},
|
|
10833
|
+
}, Gh = ["src", "muted", "loop"], Xh = /* @__PURE__ */ we({
|
|
10833
10834
|
__name: "index",
|
|
10834
10835
|
setup(r) {
|
|
10835
|
-
const { alarmSocket: e, creatAlarmSocket: t, audioObj: n, audioAlarmRef: a, handleAlarmVue: s } =
|
|
10836
|
+
const { alarmSocket: e, creatAlarmSocket: t, audioObj: n, audioAlarmRef: a, handleAlarmVue: s } = Kh();
|
|
10836
10837
|
return lt(async () => {
|
|
10837
10838
|
await or(), t();
|
|
10838
10839
|
}), Nt(() => {
|
|
10839
10840
|
e.value && e.value.disconnect(), e.value = null;
|
|
10840
|
-
}), (i, l) => (
|
|
10841
|
+
}), (i, l) => (J(), Se(
|
|
10841
10842
|
_t,
|
|
10842
10843
|
null,
|
|
10843
10844
|
[
|
|
@@ -10850,13 +10851,13 @@ const Gh = () => {
|
|
|
10850
10851
|
muted: !F(n).isplay,
|
|
10851
10852
|
loop: F(n).loop,
|
|
10852
10853
|
autoplay: ""
|
|
10853
|
-
}, null, 8,
|
|
10854
|
+
}, null, 8, Gh)
|
|
10854
10855
|
],
|
|
10855
10856
|
64
|
|
10856
10857
|
/* STABLE_FRAGMENT */
|
|
10857
10858
|
));
|
|
10858
10859
|
}
|
|
10859
|
-
}),
|
|
10860
|
+
}), Qh = { class: "das-main-app-container" }, Zh = /* @__PURE__ */ we({
|
|
10860
10861
|
__name: "index",
|
|
10861
10862
|
props: {
|
|
10862
10863
|
showLayout: { type: Boolean, default: !0 }
|
|
@@ -10874,10 +10875,10 @@ const Gh = () => {
|
|
|
10874
10875
|
},
|
|
10875
10876
|
{ immediate: !0 }
|
|
10876
10877
|
);
|
|
10877
|
-
const { initNextTick: u } =
|
|
10878
|
-
|
|
10879
|
-
const { fontColor: o, backgroudColor: c, borderColor: _ } =
|
|
10880
|
-
return
|
|
10878
|
+
const { initNextTick: u } = wf();
|
|
10879
|
+
Bf(), If(), Df(), Tf(), F0(), Af();
|
|
10880
|
+
const { fontColor: o, backgroudColor: c, borderColor: _ } = kf();
|
|
10881
|
+
return zf(), Of(), Mf(), Lf(), xp(), ih(), (d, h) => (J(), Se("div", Qh, [
|
|
10881
10882
|
oe(` <button @click="test(0)">test</button>\r
|
|
10882
10883
|
<button style="margin-left: 5px" @click="test(1)">test2</button> `),
|
|
10883
10884
|
Z(F(ci), { platformInitNextTick: F(u) }, {
|
|
@@ -10893,7 +10894,7 @@ const Gh = () => {
|
|
|
10893
10894
|
_: 2
|
|
10894
10895
|
/* DYNAMIC */
|
|
10895
10896
|
}, [
|
|
10896
|
-
|
|
10897
|
+
fn(d.$slots, (p, g, x) => ({
|
|
10897
10898
|
name: g,
|
|
10898
10899
|
fn: X(() => [
|
|
10899
10900
|
Xe(d.$slots, g, {}, void 0, !0)
|
|
@@ -10905,10 +10906,10 @@ const Gh = () => {
|
|
|
10905
10906
|
/* FORWARDED */
|
|
10906
10907
|
}, 8, ["platformInitNextTick"]),
|
|
10907
10908
|
oe(" 告警 "),
|
|
10908
|
-
Z(F(
|
|
10909
|
+
Z(F(Xh))
|
|
10909
10910
|
]));
|
|
10910
10911
|
}
|
|
10911
|
-
}), Yh = /* @__PURE__ */ Le(
|
|
10912
|
+
}), Yh = /* @__PURE__ */ Le(Zh, [["__scopeId", "data-v-7a63b5ce"]]), Jh = {
|
|
10912
10913
|
正在实时预览: { "zh-CN": "正在实时预览", en: "Real-time Video", _appCode: "framework", "zh-MO": "正在實時預覽" },
|
|
10913
10914
|
声音: { "zh-CN": "声音", en: "Sound", _appCode: "framework", "zh-MO": "聲音" },
|
|
10914
10915
|
截图: { "zh-CN": "截图", en: "Screenshot", _appCode: "framework", "zh-MO": "截圖" },
|
|
@@ -11087,22 +11088,22 @@ const Gh = () => {
|
|
|
11087
11088
|
"zh-MO": "當前實例($0)$1天后過期(到期時間:$2),請儘快聯繫管理人員續費,過期失效後將會停用物聯網平臺所有功能服務~"
|
|
11088
11089
|
}
|
|
11089
11090
|
};
|
|
11090
|
-
ls(
|
|
11091
|
+
ls(Jh);
|
|
11091
11092
|
M("@das-fed/upf-web");
|
|
11092
|
-
const
|
|
11093
|
+
const ex = [
|
|
11093
11094
|
{
|
|
11094
11095
|
path: qe,
|
|
11095
|
-
component: () => import("./index-
|
|
11096
|
+
component: () => import("./index-BP8gHC_g.js")
|
|
11096
11097
|
},
|
|
11097
11098
|
{
|
|
11098
11099
|
path: Ma,
|
|
11099
|
-
component: () => import("./index-
|
|
11100
|
+
component: () => import("./index-7BUmPh7i.js")
|
|
11100
11101
|
}
|
|
11101
|
-
],
|
|
11102
|
-
routes:
|
|
11102
|
+
], Wx = {
|
|
11103
|
+
routes: ex,
|
|
11103
11104
|
Layout: Yh,
|
|
11104
11105
|
data: {
|
|
11105
|
-
homeInfo:
|
|
11106
|
+
homeInfo: gf,
|
|
11106
11107
|
personalConfig: D0
|
|
11107
11108
|
},
|
|
11108
11109
|
hooks: {
|
|
@@ -11112,11 +11113,11 @@ const tx = [
|
|
|
11112
11113
|
};
|
|
11113
11114
|
export {
|
|
11114
11115
|
Le as _,
|
|
11115
|
-
|
|
11116
|
-
|
|
11117
|
-
|
|
11116
|
+
on as a,
|
|
11117
|
+
Jt as c,
|
|
11118
|
+
Ja as g,
|
|
11118
11119
|
me as l,
|
|
11119
|
-
|
|
11120
|
+
Wx as m,
|
|
11120
11121
|
D0 as p,
|
|
11121
11122
|
qt as u
|
|
11122
11123
|
};
|