@das-fed/upf-web 6.4.0-dev.215 → 6.4.0-dev.217

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.
@@ -1,57 +1,57 @@
1
- import { defineComponent as we, ref as N, onUnmounted as X0, openBlock as Y, createElementBlock as Se, createElementVNode as K, createVNode as J, 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 J0, onScopeDispose as Z0, getCurrentInstance as Y0, onMounted as lt, nextTick as gt, reactive as wa, Fragment as _t, renderList as dn, withDirectives as Ea, h as Ce, render as Tt, onBeforeUnmount as Mt, vShow as es, useCssVars as ts, normalizeClass as rs, withModifiers as ve, toRefs as ns, normalizeStyle as Qn, createSlots as os } from "vue";
2
- import { DasWebLayout as as, DasWebNav as ss, DasWebMenu as is, DasWebTabs as cs, layout as Q, layoutData as Aa } from "@das-fed/upf-web/packages/layout/index";
1
+ import { defineComponent as we, ref as M, onUnmounted as X0, openBlock as Y, 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 J0, getCurrentInstance as Y0, onMounted as lt, nextTick as gt, reactive as ba, Fragment as _t, renderList as dn, 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 Xn, createSlots as os } from "vue";
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
3
  import { useRoute as fn, useRouter as rr } from "vue-router";
4
4
  import { microFrontend as be } from "@das-fed/upf-web/packages/micro-frontend/index";
5
- import { i18n as V, t as ne, currentLang as pn, setLang as ls, setI18nRule as us } from "@das-fed/upf-web/packages/i18n/index";
6
- import { DasIconWarning as ds } from "@das-fed/upf-ui/packages/icons/warning/index";
7
- import { DasIconClose2 as fs } from "@das-fed/upf-ui/packages/icons/close-2/index";
8
- import { getSubApps as de, getTabInfo as De, getToken as Ze, getTenantInfo as Ba, getProjectInfo as Je, getPersonalInfo as hn, getUserInfo as ka, getMenus as Yr } from "@das-fed/upf-utils/common-info";
9
- import { pureImageSrc as ps } from "@das-fed/upf-utils/pure-image-src";
5
+ import { i18n as V, t as ne, currentLang as Aa, setI18nRule as ls } from "@das-fed/upf-web/packages/i18n/index";
6
+ import { DasIconWarning as us } from "@das-fed/upf-ui/packages/icons/warning/index";
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 Je, getTenantInfo as Ba, getProjectInfo as Ze, getPersonalInfo as pn, getUserInfo as ka, getMenus as Yr } from "@das-fed/upf-utils/common-info";
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 hs, setBrowseTitle as xs, updateFavIcon as vs, dateFormat as gs, objEqual as Jn, setShowWatermark as en, setShowLayout as tn, getUrlParams as ms, isEmpty as _s, withToken as Cs } from "@das-fed/upf-utils/common-tools";
12
- import { setProcessEngineToken as Da, setProcessEngineProject as ys } from "@das-fed/upf-utils/process-engine-info";
13
- import { oauthServer as Sa, justauth as xn, enterpriseright as vn, iotModules as bs, systemConfiguration as nr, portal as Fa } from "@das-fed/upf-utils/api-services/modules";
11
+ import { flatTree as Re, filterTreeArray as ps, setBrowseTitle as hs, updateFavIcon as xs, dateFormat as vs, objEqual as Qn, setShowWatermark as en, setShowLayout as tn, getUrlParams as gs, isEmpty as ms, withToken as _s } from "@das-fed/upf-utils/common-tools";
12
+ import { setProcessEngineToken as Da, setProcessEngineProject as Cs } from "@das-fed/upf-utils/process-engine-info";
13
+ import { oauthServer as Sa, justauth as hn, enterpriseright as xn, iotModules as ys, systemConfiguration as nr, portal as Fa } from "@das-fed/upf-utils/api-services/modules";
14
14
  import { createService as Ye } from "@das-fed/upf-utils/create-api-service";
15
15
  import { getConfig as wt } from "@das-fed/upf-utils/config";
16
- import { login as Ia, getTokenParams as Ta, real_uri as Pa, tokenStorage as ws } from "@das-fed/upf-utils/create-api-service/sso";
17
- import { getAccessToken as Es, removeAccessToken as As } from "@das-fed/upf-utils/token-tools";
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";
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
+ import { getAccessToken as ws, removeAccessToken as Es } from "@das-fed/upf-utils/token-tools";
18
+ import { DasSpin as vn } from "@das-fed/upf-ui/packages/components/spin/index";
19
+ import { DasDialog as gn } 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
- import { vDasTooltip as Bs } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
22
- import { setPersonalInfo as ks } from "@das-fed/upf-utils/common-info/set-personal-info";
23
- import { DasChangePwdRef as Ds } from "@das-fed/upf-ui/packages/business-components/change-pwd/index";
24
- import { systemConfiguration as Ss, enterpriseright as _n, createService as Et, spaceManage as Ra } from "@das-fed/upf-utils/api-services";
25
- import { setThemeRule as Fs } from "@das-fed/upf-web/packages/theme/index";
21
+ import { vDasTooltip as As } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
22
+ import { setPersonalInfo as Bs } from "@das-fed/upf-utils/common-info/set-personal-info";
23
+ import { DasChangePwdRef as ks } from "@das-fed/upf-ui/packages/business-components/change-pwd/index";
24
+ import { systemConfiguration as Ds, enterpriseright as mn, createService as Et, spaceManage as Ra } from "@das-fed/upf-utils/api-services";
25
+ import { setThemeRule as Ss } from "@das-fed/upf-web/packages/theme/index";
26
26
  import { bus as $a, reportRouter as Zn } from "@das-fed/mframe";
27
- import { vAuth as Yn } from "@das-fed/upf-utils/directive";
27
+ import { vAuth as Jn } from "@das-fed/upf-utils/directive";
28
28
  import rn from "dayjs";
29
- import { devicePanelShow as za, closeDevicePanel as Is, alarmDevicePanelShow as Ts, closeAlarmPanel as Ps } from "@das-fed/upf-ui/packages/business-components/device-panel/index";
30
- import { DasIconWarningFace as Rs } from "@das-fed/upf-ui/packages/icons/warning-face/index";
31
- import { socketService as Cn } from "@das-fed/upf-utils/webSocket-service";
32
- import { userInfoNextTick as $s, tokenNextTick as or } from "@das-fed/upf-utils/nextTiken";
33
- import { mainAppFramework as Jt } from "@das-fed/upf-web/packages/main-app-framework/index";
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
+ import { DasIconWarningFace as Ps } from "@das-fed/upf-ui/packages/icons/warning-face/index";
31
+ import { socketService as _n } from "@das-fed/upf-utils/webSocket-service";
32
+ import { userInfoNextTick as Rs, tokenNextTick as or } from "@das-fed/upf-utils/nextTiken";
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";
35
35
  import { DasTooltip as Ae } from "@das-fed/upf-ui/packages/components/tooltip/index";
36
- import { DasLivePlayer as zs } from "@das-fed/upf-ui/packages/components/live-player/index";
37
- import { DasWatermark as Os } from "@das-fed/upf-ui/packages/components/watermark/index";
38
- import { DasSelect as Ns } from "@das-fed/upf-ui/packages/components/select/index";
36
+ import { DasLivePlayer as $s } from "@das-fed/upf-ui/packages/components/live-player/index";
37
+ import { DasWatermark as zs } from "@das-fed/upf-ui/packages/components/watermark/index";
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 eo } from "@das-fed/upf-ui/packages/components/input/index";
41
- import { DasCheckbox as to } from "@das-fed/upf-ui/packages/components/checkbox/index";
42
- import { DasForm as Ls } from "@das-fed/upf-ui/packages/components/form/index";
43
- import { DasFormItem as Me } from "@das-fed/upf-ui/packages/components/form-item/index";
44
- const Rt = "/home", qe = "/application", Hs = [
40
+ import { DasInput as Yn } from "@das-fed/upf-ui/packages/components/input/index";
41
+ import { DasCheckbox as eo } from "@das-fed/upf-ui/packages/components/checkbox/index";
42
+ import { DasForm as Ns } from "@das-fed/upf-ui/packages/components/form/index";
43
+ import { DasFormItem as Ne } from "@das-fed/upf-ui/packages/components/form-item/index";
44
+ const Rt = "/home", qe = "/application", Ls = [
45
45
  { value: Rt, label: "首页", path: Rt, fixed: !0 },
46
46
  { value: qe, label: "应用", path: qe, fixed: !0 }
47
- ], ot = "/outerView", Na = "/placeholder", Us = {
47
+ ], ot = "/outerView", Ma = "/placeholder", Hs = {
48
48
  key: 0,
49
49
  class: "box-banner-wrap"
50
- }, js = { class: "icon-wrap" }, qs = /* @__PURE__ */ we({
50
+ }, Us = { class: "icon-wrap" }, js = /* @__PURE__ */ we({
51
51
  __name: "banner",
52
52
  emits: ["close-tip"],
53
53
  setup(r, { emit: e }) {
54
- const t = e, n = N(!0), a = N(""), s = N(0), i = N({}), l = () => {
54
+ const t = e, n = M(!0), a = M(""), s = M(0), i = M({}), l = () => {
55
55
  t("close-tip", !0), n.value = !0;
56
56
  };
57
57
  be.sendMessageToMicroApp("iot/iot", "iot:banner-data-1", null, { awaitListener: !0 });
@@ -61,9 +61,9 @@ const Rt = "/home", qe = "/application", Hs = [
61
61
  });
62
62
  return X0(() => {
63
63
  u();
64
- }), (o, c) => n.value ? oe("v-if", !0) : (Y(), Se("div", Us, [
65
- K("div", js, [
66
- J(F(ds), {
64
+ }), (o, c) => n.value ? oe("v-if", !0) : (Y(), Se("div", Hs, [
65
+ K("div", Us, [
66
+ Z(F(us), {
67
67
  class: "icons",
68
68
  iconColor: "#fdaf1a"
69
69
  }),
@@ -73,7 +73,7 @@ const Rt = "/home", qe = "/application", Hs = [
73
73
  /* TEXT */
74
74
  )
75
75
  ]),
76
- J(F(fs), {
76
+ Z(F(ds), {
77
77
  class: "icons close-icon",
78
78
  iconColor: "#999999",
79
79
  onClick: l
@@ -85,19 +85,19 @@ const Rt = "/home", qe = "/application", Hs = [
85
85
  for (const [n, a] of e)
86
86
  t[n] = a;
87
87
  return t;
88
- }, Ws = /* @__PURE__ */ Le(qs, [["__scopeId", "data-v-cb7c6db7"]]), Vs = /* @__PURE__ */ we({
88
+ }, qs = /* @__PURE__ */ Le(js, [["__scopeId", "data-v-cb7c6db7"]]), Ws = /* @__PURE__ */ we({
89
89
  __name: "index",
90
90
  setup(r) {
91
- const e = fn(), t = N("");
91
+ const e = fn(), 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") ? (Y(), se(Ws, { key: 0 })) : oe("v-if", !0);
98
+ ), (n, a) => t.value.startsWith("/iot/iot") ? (Y(), se(qs, { key: 0 })) : oe("v-if", !0);
99
99
  }
100
- }), Ks = /* @__PURE__ */ we({
100
+ }), Vs = /* @__PURE__ */ we({
101
101
  __name: "base-layout",
102
102
  props: {
103
103
  loading: { type: Boolean, default: !1 },
@@ -129,22 +129,22 @@ const Rt = "/home", qe = "/application", Hs = [
129
129
  }, n.value), {
130
130
  header: X(() => [
131
131
  Xe(a.$slots, "header", {}, () => [
132
- J(F(ss))
132
+ Z(F(ss))
133
133
  ])
134
134
  ]),
135
135
  aside: X(() => [
136
136
  Xe(a.$slots, "aside", {}, () => [
137
- J(F(is), { menuAttr: a.menuAttr }, null, 8, ["menuAttr"])
137
+ Z(F(is), { menuAttr: a.menuAttr }, null, 8, ["menuAttr"])
138
138
  ])
139
139
  ]),
140
140
  tab: X(() => [
141
141
  Xe(a.$slots, "tab", {}, () => [
142
- J(F(cs), { tabsAttr: a.tabsAttr }, null, 8, ["tabsAttr"])
142
+ Z(F(cs), { tabsAttr: a.tabsAttr }, null, 8, ["tabsAttr"])
143
143
  ])
144
144
  ]),
145
145
  banner: X(() => [
146
146
  Xe(a.$slots, "banner", {}, () => [
147
- J(Vs)
147
+ Z(Ws)
148
148
  ])
149
149
  ]),
150
150
  _: 3
@@ -152,49 +152,49 @@ const Rt = "/home", qe = "/application", Hs = [
152
152
  }, 16, ["pageKey", "transition-config"]));
153
153
  }
154
154
  });
155
- var ro;
156
- const yn = typeof window < "u", Gs = (r) => typeof r == "string", Xs = () => {
155
+ var to;
156
+ const Cn = typeof window < "u", Ks = (r) => typeof r == "string", Gs = () => {
157
157
  };
158
- yn && ((ro = window == null ? void 0 : window.navigator) != null && ro.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
159
- function Ma(r) {
158
+ Cn && ((to = window == null ? void 0 : window.navigator) != null && to.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
159
+ function Na(r) {
160
160
  return typeof r == "function" ? r() : F(r);
161
161
  }
162
- function Qs(r) {
162
+ function Xs(r) {
163
163
  return r;
164
164
  }
165
165
  function La(r) {
166
- return J0() ? (Z0(r), !0) : !1;
166
+ return Z0() ? (J0(r), !0) : !1;
167
167
  }
168
- function Js(r, e = !0) {
168
+ function Qs(r, e = !0) {
169
169
  Y0() ? lt(r) : e ? r() : gt(r);
170
170
  }
171
171
  function Ha(r) {
172
172
  var e;
173
- const t = Ma(r);
173
+ const t = Na(r);
174
174
  return (e = t == null ? void 0 : t.$el) != null ? e : t;
175
175
  }
176
- const Zs = yn ? window : void 0, Ys = yn ? window.document : void 0;
177
- function ei(...r) {
176
+ const Zs = Cn ? window : void 0, Js = Cn ? window.document : void 0;
177
+ function Ys(...r) {
178
178
  let e, t, n, a;
179
- if (Gs(r[0]) || Array.isArray(r[0]) ? ([t, n, a] = r, e = Zs) : [e, t, n, a] = r, !e)
180
- return Xs;
179
+ if (Ks(r[0]) || Array.isArray(r[0]) ? ([t, n, a] = r, e = Zs) : [e, t, n, a] = r, !e)
180
+ return Gs;
181
181
  Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
182
182
  const s = [], i = () => {
183
183
  s.forEach((c) => c()), s.length = 0;
184
- }, l = (c, _, d, h) => (c.addEventListener(_, d, h), () => c.removeEventListener(_, d, h)), u = ke(() => [Ha(e), Ma(a)], ([c, _]) => {
184
+ }, l = (c, _, d, h) => (c.addEventListener(_, d, h), () => c.removeEventListener(_, d, h)), u = ke(() => [Ha(e), Na(a)], ([c, _]) => {
185
185
  i(), c && s.push(...t.flatMap((d) => n.map((h) => l(c, d, h, _))));
186
186
  }, { immediate: !0, flush: "post" }), o = () => {
187
187
  u(), i();
188
188
  };
189
189
  return La(o), o;
190
190
  }
191
- function ti(r, e = !1) {
192
- const t = N(), n = () => t.value = !!r();
193
- return n(), Js(n, e), t;
191
+ function ei(r, e = !1) {
192
+ const t = M(), n = () => t.value = !!r();
193
+ return n(), Qs(n, e), t;
194
194
  }
195
- const no = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, oo = "__vueuse_ssr_handlers__";
196
- no[oo] = no[oo] || {};
197
- const ao = [
195
+ const ro = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, no = "__vueuse_ssr_handlers__";
196
+ ro[no] = ro[no] || {};
197
+ const oo = [
198
198
  [
199
199
  "requestFullscreen",
200
200
  "exitFullscreen",
@@ -237,11 +237,11 @@ const ao = [
237
237
  ]
238
238
  ];
239
239
  function Lt(r, e = {}) {
240
- const { document: t = Ys, autoExit: n = !1 } = e, a = r || (t == null ? void 0 : t.querySelector("html")), s = N(!1);
241
- let i = ao[0];
242
- const l = ti(() => {
240
+ const { document: t = Js, autoExit: n = !1 } = e, a = r || (t == null ? void 0 : t.querySelector("html")), s = M(!1);
241
+ let i = oo[0];
242
+ const l = ei(() => {
243
243
  if (t) {
244
- for (const g of ao)
244
+ for (const g of oo)
245
245
  if (g[1] in t)
246
246
  return i = g, !0;
247
247
  } else
@@ -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 && ei(t, _, () => {
264
+ return t && Ys(t, _, () => {
265
265
  s.value = !!(t != null && t[c]);
266
266
  }, !1), n && La(d), {
267
267
  isSupported: l,
@@ -271,19 +271,19 @@ function Lt(r, e = {}) {
271
271
  toggle: p
272
272
  };
273
273
  }
274
- var so;
274
+ var ao;
275
275
  (function(r) {
276
276
  r.UP = "UP", r.RIGHT = "RIGHT", r.DOWN = "DOWN", r.LEFT = "LEFT", r.NONE = "NONE";
277
- })(so || (so = {}));
278
- var ri = Object.defineProperty, io = Object.getOwnPropertySymbols, ni = Object.prototype.hasOwnProperty, oi = Object.prototype.propertyIsEnumerable, co = (r, e, t) => e in r ? ri(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, ai = (r, e) => {
277
+ })(ao || (ao = {}));
278
+ var ti = Object.defineProperty, so = Object.getOwnPropertySymbols, ri = Object.prototype.hasOwnProperty, ni = Object.prototype.propertyIsEnumerable, io = (r, e, t) => e in r ? ti(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, oi = (r, e) => {
279
279
  for (var t in e)
280
- ni.call(e, t) && co(r, t, e[t]);
281
- if (io)
282
- for (var t of io(e))
283
- oi.call(e, t) && co(r, t, e[t]);
280
+ ri.call(e, t) && io(r, t, e[t]);
281
+ if (so)
282
+ for (var t of so(e))
283
+ ni.call(e, t) && io(r, t, e[t]);
284
284
  return r;
285
285
  };
286
- const si = {
286
+ const ai = {
287
287
  easeInSine: [0.12, 0, 0.39, 0],
288
288
  easeOutSine: [0.61, 1, 0.88, 1],
289
289
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -309,16 +309,16 @@ const si = {
309
309
  easeOutBack: [0.34, 1.56, 0.64, 1],
310
310
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
311
311
  };
312
- ai({
313
- linear: Qs
314
- }, si);
315
- const ii = Ss.get("watermark"), ci = /* @__PURE__ */ we({
312
+ oi({
313
+ linear: Xs
314
+ }, ai);
315
+ const si = Ds.get("watermark"), ii = /* @__PURE__ */ we({
316
316
  __name: "index",
317
317
  props: {
318
318
  platformInitNextTick: {}
319
319
  },
320
320
  setup(r) {
321
- const e = r, t = N({}), n = N(120), a = N(64), s = N([]), i = N([]), l = wa({
321
+ const e = r, t = M({}), n = M(120), a = M(64), s = M([]), i = M([]), l = ba({
322
322
  color: "rgba(0,0,0,.15)",
323
323
  fontSize: 16
324
324
  }), u = (g, x) => {
@@ -326,7 +326,7 @@ const ii = Ss.get("watermark"), ci = /* @__PURE__ */ we({
326
326
  m.innerHTML = g, m.style.fontSize = x + "px", m.style.fontFamily = "sans-serif", m.style.visibility = "hidden", document.body.appendChild(m);
327
327
  const f = m.getBoundingClientRect();
328
328
  n.value = Math.ceil(f.width) + x / 2, a.value = Math.ceil(f.height), document.body.removeChild(m);
329
- }, o = N(!1), c = () => new Promise((g) => {
329
+ }, o = M(!1), c = () => new Promise((g) => {
330
330
  const x = () => {
331
331
  if (o) return g(!0);
332
332
  setTimeout(() => x(), 50);
@@ -340,11 +340,11 @@ const ii = Ss.get("watermark"), ci = /* @__PURE__ */ we({
340
340
  }, d = async () => {
341
341
  var f, v, C, w, A, B, E;
342
342
  o.value = !0, await (e == null ? void 0 : e.platformInitNextTick());
343
- const [g, x] = await ii().run();
343
+ const [g, x] = await si().run();
344
344
  if (g) return null;
345
345
  if (t.value = x, !!((f = t.value) != null && f.pageSwith)) {
346
346
  s.value = [];
347
- const { name: k, phone: y } = await $s();
347
+ const { name: k, phone: y } = await Rs();
348
348
  let b = "";
349
349
  if ((v = t.value) != null && v.nameSwith && k && (s.value.push(k), b = b + `${k} `), (C = t.value) != null && C.phoneSwith && y) {
350
350
  const D = y.slice(-4);
@@ -378,7 +378,7 @@ const ii = Ss.get("watermark"), ci = /* @__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) => (Y(), se(F(Os), {
381
+ }), (g, x) => (Y(), se(F(zs), {
382
382
  class: "watermark",
383
383
  font: l,
384
384
  zIndex: 2147483647,
@@ -393,11 +393,11 @@ const ii = Ss.get("watermark"), ci = /* @__PURE__ */ we({
393
393
  /* FORWARDED */
394
394
  }, 8, ["font", "content", "width", "height"]));
395
395
  }
396
- }), li = /* @__PURE__ */ Le(ci, [["__scopeId", "data-v-9d1f6b72"]]), ui = {
396
+ }), ci = /* @__PURE__ */ Le(ii, [["__scopeId", "data-v-9d1f6b72"]]), li = {
397
397
  "--menu-tip-diaolg-content": "#212121",
398
398
  "--menu-tip-diaolg-divide": "#d9d9d9",
399
399
  "--menu-tip-diaolg-info": "#999999"
400
- }, di = ["innerHTML"], fi = { class: "footer" }, pi = /* @__PURE__ */ we({
400
+ }, ui = ["innerHTML"], di = { class: "footer" }, fi = /* @__PURE__ */ we({
401
401
  __name: "tip",
402
402
  props: {
403
403
  title: {},
@@ -406,8 +406,8 @@ const ii = Ss.get("watermark"), ci = /* @__PURE__ */ we({
406
406
  closeCallback: {}
407
407
  },
408
408
  setup(r) {
409
- const e = N(!0);
410
- return (t, n) => (Y(), se(F(mn), {
409
+ const e = M(!0);
410
+ return (t, n) => (Y(), se(F(gn), {
411
411
  modelValue: e.value,
412
412
  "onUpdate:modelValue": n[0] || (n[0] = (a) => e.value = a),
413
413
  type: "feedback",
@@ -419,8 +419,8 @@ const ii = Ss.get("watermark"), ci = /* @__PURE__ */ we({
419
419
  onClosed: t.closeCallback
420
420
  }, {
421
421
  footer: X(() => [
422
- K("div", fi, [
423
- J(F(mt), {
422
+ K("div", di, [
423
+ Z(F(mt), {
424
424
  btnType: "default",
425
425
  size: "small",
426
426
  onClick: t.closeCallback
@@ -441,7 +441,7 @@ const ii = Ss.get("watermark"), ci = /* @__PURE__ */ we({
441
441
  K("div", {
442
442
  class: "content",
443
443
  innerHTML: t.content
444
- }, null, 8, di),
444
+ }, null, 8, ui),
445
445
  t.desc && t.desc.length ? (Y(), Se(
446
446
  _t,
447
447
  { key: 0 },
@@ -456,7 +456,7 @@ const ii = Ss.get("watermark"), ci = /* @__PURE__ */ we({
456
456
  (Y(!0), Se(
457
457
  _t,
458
458
  null,
459
- dn(t.desc, (a, s) => Ea((Y(), Se("div", {
459
+ dn(t.desc, (a, s) => wa((Y(), Se("div", {
460
460
  key: s,
461
461
  class: "desc-item"
462
462
  }, [
@@ -466,7 +466,7 @@ const ii = Ss.get("watermark"), ci = /* @__PURE__ */ we({
466
466
  /* TEXT */
467
467
  )
468
468
  ])), [
469
- [F(Bs)]
469
+ [F(As)]
470
470
  ])),
471
471
  128
472
472
  /* KEYED_FRAGMENT */
@@ -480,18 +480,18 @@ const ii = Ss.get("watermark"), ci = /* @__PURE__ */ we({
480
480
  /* STABLE */
481
481
  }, 8, ["modelValue", "width", "height", "title", "onClosed"]));
482
482
  }
483
- }), hi = /* @__PURE__ */ Le(pi, [["__scopeId", "data-v-75a4552b"]]), Zt = ({ title: r = "", content: e = "", desc: t = [] }) => new Promise((n) => {
483
+ }), pi = /* @__PURE__ */ Le(fi, [["__scopeId", "data-v-75a4552b"]]), Jt = ({ 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
- const i = Ce(hi, { title: r, content: e, desc: t, closeCallback: () => {
486
+ const i = Ce(pi, { title: r, content: e, desc: t, closeCallback: () => {
487
487
  Tt(null, a), document.body.removeChild(a), n(null);
488
488
  } });
489
489
  Tt(i, a);
490
490
  });
491
- Fs(ui);
492
- const xi = (r = {}) => {
491
+ Ss(li);
492
+ const hi = (r = {}) => {
493
493
  sessionStorage.setItem("userInfo", JSON.stringify(r));
494
- }, vi = (r = {}) => {
494
+ }, xi = (r = {}) => {
495
495
  var t;
496
496
  sessionStorage.setItem("tenantInfo", JSON.stringify(r));
497
497
  const e = {
@@ -501,11 +501,9 @@ const xi = (r = {}) => {
501
501
  tenantId: ((t = r == null ? void 0 : r.tenant) == null ? void 0 : t.id) ?? ""
502
502
  };
503
503
  sessionStorage.setItem("hotentUserInfo", JSON.stringify(e));
504
- }, gi = (r) => {
505
- sessionStorage.setItem("languages", JSON.stringify(r));
506
- }, mi = (r = "") => {
504
+ }, vi = (r = "") => {
507
505
  localStorage.setItem("fav-icon", r);
508
- }, _i = () => {
506
+ }, gi = () => {
509
507
  sessionStorage.removeItem("projectInfo"), sessionStorage.removeItem("project");
510
508
  }, Ie = (r) => {
511
509
  let e = De();
@@ -537,7 +535,7 @@ const xi = (r = {}) => {
537
535
  } else
538
536
  Object.assign(e, { [t.key]: t.value });
539
537
  }), sessionStorage.setItem("subApps", JSON.stringify(e));
540
- }, bn = () => {
538
+ }, yn = () => {
541
539
  Qe([
542
540
  { key: "currentSubApp", value: {} },
543
541
  { key: "currentSubAppCode", value: "" },
@@ -550,7 +548,7 @@ const xi = (r = {}) => {
550
548
  for (const t in e.subAppList)
551
549
  e.subAppList[t].code === e.currentSubAppCode && (e.subAppList[t].currentMenuCode = r);
552
550
  sessionStorage.setItem("subApps", JSON.stringify(e));
553
- }, Ci = (r, e) => {
551
+ }, mi = (r, e) => {
554
552
  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 = {};
555
553
  return i.forEach((u) => {
556
554
  var d;
@@ -580,17 +578,17 @@ const xi = (r = {}) => {
580
578
  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));
581
579
  }));
582
580
  }), n[e] = l, sessionStorage.setItem(t, JSON.stringify(n)), n;
583
- }, yi = () => {
581
+ }, _i = () => {
584
582
  sessionStorage.removeItem("permission-btn");
585
- }, bi = (r, e) => {
583
+ }, Ci = (r, e) => {
586
584
  const t = "breadcrumb", n = r.filter((s) => s.routeUrl), a = JSON.parse(sessionStorage.getItem(t) || "{}") || {};
587
585
  return n.forEach((s) => {
588
586
  const l = ((s == null ? void 0 : s.style) ?? 1) === 1, u = s.code;
589
587
  a[e] || (a[e] = {}), a[e][u] = l;
590
588
  }), sessionStorage.setItem(t, JSON.stringify(a)), a;
591
- }, wi = () => {
589
+ }, yi = () => {
592
590
  sessionStorage.removeItem("breadcrumb");
593
- }, Ei = (r, e) => {
591
+ }, bi = (r, e) => {
594
592
  const t = "tabStyle", n = r.filter((s) => s.routeUrl), a = JSON.parse(sessionStorage.getItem(t) || "{}") || {};
595
593
  return n.forEach((s) => {
596
594
  const i = s.code, l = {
@@ -599,13 +597,13 @@ const xi = (r = {}) => {
599
597
  };
600
598
  a[e] || (a[e] = {}), a[e][i] = l;
601
599
  }), sessionStorage.setItem(t, JSON.stringify(a)), a;
602
- }, Ai = () => {
600
+ }, wi = () => {
603
601
  sessionStorage.removeItem("tabStyle");
604
- }, Bi = (r) => {
602
+ }, Ei = (r) => {
605
603
  sessionStorage.setItem("instance", JSON.stringify(r));
606
- }, ki = () => {
607
- yi(), bn(), Ua(), wi(), Ai();
608
- }, Di = (r) => {
604
+ }, Ai = () => {
605
+ _i(), yn(), Ua(), yi(), wi();
606
+ }, Bi = (r) => {
609
607
  const e = JSON.parse(sessionStorage.getItem(r) || "{}");
610
608
  if (e && JSON.stringify(e) !== "{}" && e != null && e.exitConfirmPages && e.exitConfirmPages.length) {
611
609
  const t = (e == null ? void 0 : e.currentPage) ?? "";
@@ -624,10 +622,10 @@ const xi = (r = {}) => {
624
622
  }
625
623
  };
626
624
  var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
627
- function Si(r) {
625
+ function ki(r) {
628
626
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
629
627
  }
630
- function Fi(r) {
628
+ function Di(r) {
631
629
  if (r.__esModule) return r;
632
630
  var e = r.default;
633
631
  if (typeof e == "function") {
@@ -647,25 +645,25 @@ function Fi(r) {
647
645
  }), t;
648
646
  }
649
647
  var qa = { exports: {} };
650
- function Ii(r) {
648
+ function Si(r) {
651
649
  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.');
652
650
  }
653
651
  var hr = { exports: {} };
654
- const Ti = {}, Pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
652
+ const Fi = {}, Ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
655
653
  __proto__: null,
656
- default: Ti
657
- }, Symbol.toStringTag, { value: "Module" })), Ri = /* @__PURE__ */ Fi(Pi);
658
- var lo;
654
+ default: Fi
655
+ }, Symbol.toStringTag, { value: "Module" })), Ti = /* @__PURE__ */ Di(Ii);
656
+ var co;
659
657
  function re() {
660
- return lo || (lo = 1, function(r, e) {
658
+ return co || (co = 1, function(r, e) {
661
659
  (function(t, n) {
662
660
  r.exports = n();
663
661
  })(te, function() {
664
662
  var t = t || function(n, a) {
665
663
  var s;
666
- 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 Ii == "function")
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 Si == "function")
667
665
  try {
668
- s = Ri;
666
+ s = Ti;
669
667
  } catch {
670
668
  }
671
669
  var i = function() {
@@ -1156,9 +1154,9 @@ function re() {
1156
1154
  });
1157
1155
  }(hr)), hr.exports;
1158
1156
  }
1159
- var xr = { exports: {} }, uo;
1157
+ var xr = { exports: {} }, lo;
1160
1158
  function ar() {
1161
- return uo || (uo = 1, function(r, e) {
1159
+ return lo || (lo = 1, function(r, e) {
1162
1160
  (function(t, n) {
1163
1161
  r.exports = n(re());
1164
1162
  })(te, function(t) {
@@ -1386,9 +1384,9 @@ function ar() {
1386
1384
  });
1387
1385
  }(xr)), xr.exports;
1388
1386
  }
1389
- var vr = { exports: {} }, fo;
1390
- function $i() {
1391
- return fo || (fo = 1, function(r, e) {
1387
+ var vr = { exports: {} }, uo;
1388
+ function Pi() {
1389
+ return uo || (uo = 1, function(r, e) {
1392
1390
  (function(t, n) {
1393
1391
  r.exports = n(re());
1394
1392
  })(te, function(t) {
@@ -1408,9 +1406,9 @@ function $i() {
1408
1406
  });
1409
1407
  }(vr)), vr.exports;
1410
1408
  }
1411
- var gr = { exports: {} }, po;
1412
- function zi() {
1413
- return po || (po = 1, function(r, e) {
1409
+ var gr = { exports: {} }, fo;
1410
+ function Ri() {
1411
+ return fo || (fo = 1, function(r, e) {
1414
1412
  (function(t, n) {
1415
1413
  r.exports = n(re());
1416
1414
  })(te, function(t) {
@@ -1502,9 +1500,9 @@ function zi() {
1502
1500
  });
1503
1501
  }(gr)), gr.exports;
1504
1502
  }
1505
- var mr = { exports: {} }, ho;
1503
+ var mr = { exports: {} }, po;
1506
1504
  function ut() {
1507
- return ho || (ho = 1, function(r, e) {
1505
+ return po || (po = 1, function(r, e) {
1508
1506
  (function(t, n) {
1509
1507
  r.exports = n(re());
1510
1508
  })(te, function(t) {
@@ -1577,9 +1575,9 @@ function ut() {
1577
1575
  });
1578
1576
  }(mr)), mr.exports;
1579
1577
  }
1580
- var _r = { exports: {} }, xo;
1581
- function Oi() {
1582
- return xo || (xo = 1, function(r, e) {
1578
+ var _r = { exports: {} }, ho;
1579
+ function $i() {
1580
+ return ho || (ho = 1, function(r, e) {
1583
1581
  (function(t, n) {
1584
1582
  r.exports = n(re());
1585
1583
  })(te, function(t) {
@@ -1659,9 +1657,9 @@ function Oi() {
1659
1657
  });
1660
1658
  }(_r)), _r.exports;
1661
1659
  }
1662
- var Cr = { exports: {} }, vo;
1660
+ var Cr = { exports: {} }, xo;
1663
1661
  function dt() {
1664
- return vo || (vo = 1, function(r, e) {
1662
+ return xo || (xo = 1, function(r, e) {
1665
1663
  (function(t, n) {
1666
1664
  r.exports = n(re());
1667
1665
  })(te, function(t) {
@@ -1725,9 +1723,9 @@ function dt() {
1725
1723
  });
1726
1724
  }(Cr)), Cr.exports;
1727
1725
  }
1728
- var yr = { exports: {} }, go;
1726
+ var yr = { exports: {} }, vo;
1729
1727
  function Wa() {
1730
- return go || (go = 1, function(r, e) {
1728
+ return vo || (vo = 1, function(r, e) {
1731
1729
  (function(t, n) {
1732
1730
  r.exports = n(re());
1733
1731
  })(te, function(t) {
@@ -1769,9 +1767,9 @@ function Wa() {
1769
1767
  });
1770
1768
  }(yr)), yr.exports;
1771
1769
  }
1772
- var br = { exports: {} }, mo;
1773
- function wn() {
1774
- return mo || (mo = 1, function(r, e) {
1770
+ var br = { exports: {} }, go;
1771
+ function bn() {
1772
+ return go || (go = 1, function(r, e) {
1775
1773
  (function(t, n) {
1776
1774
  r.exports = n(re());
1777
1775
  })(te, function(t) {
@@ -1821,11 +1819,11 @@ function wn() {
1821
1819
  });
1822
1820
  }(br)), br.exports;
1823
1821
  }
1824
- var wr = { exports: {} }, _o;
1825
- function Ni() {
1826
- return _o || (_o = 1, function(r, e) {
1822
+ var wr = { exports: {} }, mo;
1823
+ function zi() {
1824
+ return mo || (mo = 1, function(r, e) {
1827
1825
  (function(t, n, a) {
1828
- r.exports = n(re(), wn());
1826
+ r.exports = n(re(), bn());
1829
1827
  })(te, function(t) {
1830
1828
  return function() {
1831
1829
  var n = t, a = n.lib, s = a.WordArray, i = n.algo, l = i.SHA256, u = i.SHA224 = l.extend({
@@ -1851,9 +1849,9 @@ function Ni() {
1851
1849
  });
1852
1850
  }(wr)), wr.exports;
1853
1851
  }
1854
- var Er = { exports: {} }, Co;
1852
+ var Er = { exports: {} }, _o;
1855
1853
  function Va() {
1856
- return Co || (Co = 1, function(r, e) {
1854
+ return _o || (_o = 1, function(r, e) {
1857
1855
  (function(t, n, a) {
1858
1856
  r.exports = n(re(), ar());
1859
1857
  })(te, function(t) {
@@ -1962,18 +1960,18 @@ function Va() {
1962
1960
  ]);
1963
1961
  },
1964
1962
  _doProcessBlock: function(p, g) {
1965
- for (var x = this._hash.words, m = x[0], f = x[1], v = x[2], C = x[3], w = x[4], A = x[5], B = x[6], E = x[7], k = m.high, y = m.low, b = f.high, D = f.low, S = v.high, L = v.low, H = C.high, W = C.low, q = w.high, U = w.low, j = A.high, G = A.low, T = B.high, P = B.low, z = E.high, $ = E.low, ie = k, ae = y, _e = b, ee = D, tt = S, Ve = L, rt = H, M = W, R = q, O = U, Ee = j, Ne = G, Wt = T, kt = P, pr = z, Dt = $, $e = 0; $e < 80; $e++) {
1963
+ for (var x = this._hash.words, m = x[0], f = x[1], v = x[2], C = x[3], w = x[4], A = x[5], B = x[6], E = x[7], k = m.high, y = m.low, b = f.high, D = f.low, S = v.high, L = v.low, H = C.high, W = C.low, q = w.high, U = w.low, j = A.high, G = A.low, T = B.high, P = B.low, z = E.high, $ = E.low, ie = k, ae = y, _e = b, ee = D, tt = S, Ve = L, rt = H, N = W, R = q, O = U, Ee = j, Me = G, Wt = T, kt = P, pr = z, Dt = $, $e = 0; $e < 80; $e++) {
1966
1964
  var Pe, Ke, Vt = d[$e];
1967
1965
  if ($e < 16)
1968
1966
  Ke = Vt.high = p[g + $e * 2] | 0, Pe = Vt.low = p[g + $e * 2 + 1] | 0;
1969
1967
  else {
1970
- var Nn = d[$e - 15], ht = Nn.high, St = Nn.low, z0 = (ht >>> 1 | St << 31) ^ (ht >>> 8 | St << 24) ^ ht >>> 7, Mn = (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], N0 = Un.high, M0 = Un.low, jn = d[$e - 16], L0 = jn.high, qn = jn.low;
1971
- Pe = Mn + M0, Ke = z0 + N0 + (Pe >>> 0 < Mn >>> 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;
1968
+ var On = d[$e - 15], ht = On.high, St = On.low, z0 = (ht >>> 1 | St << 31) ^ (ht >>> 8 | St << 24) ^ ht >>> 7, Mn = (St >>> 1 | ht << 31) ^ (St >>> 8 | ht << 24) ^ (St >>> 7 | ht << 25), Nn = d[$e - 2], xt = Nn.high, Ft = Nn.low, O0 = (xt >>> 19 | Ft << 13) ^ (xt << 3 | Ft >>> 29) ^ xt >>> 6, Ln = (Ft >>> 19 | xt << 13) ^ (Ft << 3 | xt >>> 29) ^ (Ft >>> 6 | xt << 26), Hn = d[$e - 7], M0 = Hn.high, N0 = Hn.low, Un = d[$e - 16], L0 = Un.high, jn = Un.low;
1969
+ Pe = Mn + N0, Ke = z0 + M0 + (Pe >>> 0 < Mn >>> 0 ? 1 : 0), Pe = Pe + Ln, Ke = Ke + O0 + (Pe >>> 0 < Ln >>> 0 ? 1 : 0), Pe = Pe + jn, Ke = Ke + L0 + (Pe >>> 0 < jn >>> 0 ? 1 : 0), Vt.high = Ke, Vt.low = Pe;
1972
1970
  }
1973
- var H0 = R & Ee ^ ~R & Wt, Wn = O & Ne ^ ~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);
1974
- pr = Wt, Dt = kt, Wt = Ee, kt = Ne, Ee = R, Ne = O, O = M + Fe | 0, R = rt + Ge + (O >>> 0 < M >>> 0 ? 1 : 0) | 0, rt = tt, M = Ve, tt = _e, Ve = ee, _e = ie, ee = ae, ae = Fe + Xn | 0, ie = Ge + G0 + (ae >>> 0 < Fe >>> 0 ? 1 : 0) | 0;
1971
+ var H0 = R & Ee ^ ~R & Wt, qn = 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), Wn = (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), Vn = _[$e], K0 = Vn.high, Kn = Vn.low, Fe = Dt + V0, Ge = pr + W0 + (Fe >>> 0 < Dt >>> 0 ? 1 : 0), Fe = Fe + qn, Ge = Ge + H0 + (Fe >>> 0 < qn >>> 0 ? 1 : 0), Fe = Fe + Kn, Ge = Ge + K0 + (Fe >>> 0 < Kn >>> 0 ? 1 : 0), Fe = Fe + Pe, Ge = Ge + Ke + (Fe >>> 0 < Pe >>> 0 ? 1 : 0), Gn = Wn + j0, G0 = q0 + U0 + (Gn >>> 0 < Wn >>> 0 ? 1 : 0);
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 + Gn | 0, ie = Ge + G0 + (ae >>> 0 < Fe >>> 0 ? 1 : 0) | 0;
1975
1973
  }
1976
- 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 + M, C.high = H + rt + (W >>> 0 < M >>> 0 ? 1 : 0), U = w.low = U + O, w.high = q + R + (U >>> 0 < O >>> 0 ? 1 : 0), G = A.low = G + Ne, A.high = j + Ee + (G >>> 0 < Ne >>> 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);
1974
+ 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);
1977
1975
  },
1978
1976
  _doFinalize: function() {
1979
1977
  var p = this._data, g = p.words, x = this._nDataBytes * 8, m = p.sigBytes * 8;
@@ -1992,9 +1990,9 @@ function Va() {
1992
1990
  });
1993
1991
  }(Er)), Er.exports;
1994
1992
  }
1995
- var Ar = { exports: {} }, yo;
1996
- function Mi() {
1997
- return yo || (yo = 1, function(r, e) {
1993
+ var Ar = { exports: {} }, Co;
1994
+ function Oi() {
1995
+ return Co || (Co = 1, function(r, e) {
1998
1996
  (function(t, n, a) {
1999
1997
  r.exports = n(re(), ar(), Va());
2000
1998
  })(te, function(t) {
@@ -2022,9 +2020,9 @@ function Mi() {
2022
2020
  });
2023
2021
  }(Ar)), Ar.exports;
2024
2022
  }
2025
- var Br = { exports: {} }, bo;
2026
- function Li() {
2027
- return bo || (bo = 1, function(r, e) {
2023
+ var Br = { exports: {} }, yo;
2024
+ function Mi() {
2025
+ return yo || (yo = 1, function(r, e) {
2028
2026
  (function(t, n, a) {
2029
2027
  r.exports = n(re(), ar());
2030
2028
  })(te, function(t) {
@@ -2132,9 +2130,9 @@ function Li() {
2132
2130
  });
2133
2131
  }(Br)), Br.exports;
2134
2132
  }
2135
- var kr = { exports: {} }, wo;
2136
- function Hi() {
2137
- return wo || (wo = 1, function(r, e) {
2133
+ var kr = { exports: {} }, bo;
2134
+ function Ni() {
2135
+ return bo || (bo = 1, function(r, e) {
2138
2136
  (function(t, n) {
2139
2137
  r.exports = n(re());
2140
2138
  })(te, function(t) {
@@ -2525,9 +2523,9 @@ function Hi() {
2525
2523
  });
2526
2524
  }(kr)), kr.exports;
2527
2525
  }
2528
- var Dr = { exports: {} }, Eo;
2529
- function En() {
2530
- return Eo || (Eo = 1, function(r, e) {
2526
+ var Dr = { exports: {} }, wo;
2527
+ function wn() {
2528
+ return wo || (wo = 1, function(r, e) {
2531
2529
  (function(t, n) {
2532
2530
  r.exports = n(re());
2533
2531
  })(te, function(t) {
@@ -2603,11 +2601,11 @@ function En() {
2603
2601
  });
2604
2602
  }(Dr)), Dr.exports;
2605
2603
  }
2606
- var Sr = { exports: {} }, Ao;
2607
- function Ui() {
2608
- return Ao || (Ao = 1, function(r, e) {
2604
+ var Sr = { exports: {} }, Eo;
2605
+ function Li() {
2606
+ return Eo || (Eo = 1, function(r, e) {
2609
2607
  (function(t, n, a) {
2610
- r.exports = n(re(), wn(), En());
2608
+ r.exports = n(re(), bn(), wn());
2611
2609
  })(te, function(t) {
2612
2610
  return function() {
2613
2611
  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({
@@ -2670,11 +2668,11 @@ function Ui() {
2670
2668
  });
2671
2669
  }(Sr)), Sr.exports;
2672
2670
  }
2673
- var Fr = { exports: {} }, Bo;
2671
+ var Fr = { exports: {} }, Ao;
2674
2672
  function et() {
2675
- return Bo || (Bo = 1, function(r, e) {
2673
+ return Ao || (Ao = 1, function(r, e) {
2676
2674
  (function(t, n, a) {
2677
- r.exports = n(re(), Wa(), En());
2675
+ r.exports = n(re(), Wa(), wn());
2678
2676
  })(te, function(t) {
2679
2677
  return function() {
2680
2678
  var n = t, a = n.lib, s = a.Base, i = a.WordArray, l = n.algo, u = l.MD5, o = l.EvpKDF = s.extend({
@@ -2733,9 +2731,9 @@ function et() {
2733
2731
  });
2734
2732
  }(Fr)), Fr.exports;
2735
2733
  }
2736
- var Ir = { exports: {} }, ko;
2734
+ var Ir = { exports: {} }, Bo;
2737
2735
  function ge() {
2738
- return ko || (ko = 1, function(r, e) {
2736
+ return Bo || (Bo = 1, function(r, e) {
2739
2737
  (function(t, n, a) {
2740
2738
  r.exports = n(re(), et());
2741
2739
  })(te, function(t) {
@@ -3271,9 +3269,9 @@ function ge() {
3271
3269
  });
3272
3270
  }(Ir)), Ir.exports;
3273
3271
  }
3274
- var Tr = { exports: {} }, Do;
3275
- function ji() {
3276
- return Do || (Do = 1, function(r, e) {
3272
+ var Tr = { exports: {} }, ko;
3273
+ function Hi() {
3274
+ return ko || (ko = 1, function(r, e) {
3277
3275
  (function(t, n, a) {
3278
3276
  r.exports = n(re(), ge());
3279
3277
  })(te, function(t) {
@@ -3301,9 +3299,9 @@ function ji() {
3301
3299
  });
3302
3300
  }(Tr)), Tr.exports;
3303
3301
  }
3304
- var Pr = { exports: {} }, So;
3305
- function qi() {
3306
- return So || (So = 1, function(r, e) {
3302
+ var Pr = { exports: {} }, Do;
3303
+ function Ui() {
3304
+ return Do || (Do = 1, function(r, e) {
3307
3305
  (function(t, n, a) {
3308
3306
  r.exports = n(re(), ge());
3309
3307
  })(te, function(t) {
@@ -3323,9 +3321,9 @@ function qi() {
3323
3321
  });
3324
3322
  }(Pr)), Pr.exports;
3325
3323
  }
3326
- var Rr = { exports: {} }, Fo;
3327
- function Wi() {
3328
- return Fo || (Fo = 1, function(r, e) {
3324
+ var Rr = { exports: {} }, So;
3325
+ function ji() {
3326
+ return So || (So = 1, function(r, e) {
3329
3327
  (function(t, n, a) {
3330
3328
  r.exports = n(re(), ge());
3331
3329
  })(te, function(t) {
@@ -3362,9 +3360,9 @@ function Wi() {
3362
3360
  });
3363
3361
  }(Rr)), Rr.exports;
3364
3362
  }
3365
- var $r = { exports: {} }, Io;
3366
- function Vi() {
3367
- return Io || (Io = 1, function(r, e) {
3363
+ var $r = { exports: {} }, Fo;
3364
+ function qi() {
3365
+ return Fo || (Fo = 1, function(r, e) {
3368
3366
  (function(t, n, a) {
3369
3367
  r.exports = n(re(), ge());
3370
3368
  })(te, function(t) {
@@ -3382,9 +3380,9 @@ function Vi() {
3382
3380
  });
3383
3381
  }($r)), $r.exports;
3384
3382
  }
3385
- var zr = { exports: {} }, To;
3386
- function Ki() {
3387
- return To || (To = 1, function(r, e) {
3383
+ var zr = { exports: {} }, Io;
3384
+ function Wi() {
3385
+ return Io || (Io = 1, function(r, e) {
3388
3386
  (function(t, n, a) {
3389
3387
  r.exports = n(re(), ge());
3390
3388
  })(te, function(t) {
@@ -3403,9 +3401,9 @@ function Ki() {
3403
3401
  });
3404
3402
  }(zr)), zr.exports;
3405
3403
  }
3406
- var Or = { exports: {} }, Po;
3407
- function Gi() {
3408
- return Po || (Po = 1, function(r, e) {
3404
+ var Or = { exports: {} }, To;
3405
+ function Vi() {
3406
+ return To || (To = 1, function(r, e) {
3409
3407
  (function(t, n, a) {
3410
3408
  r.exports = n(re(), ge());
3411
3409
  })(te, function(t) {
@@ -3422,9 +3420,9 @@ function Gi() {
3422
3420
  });
3423
3421
  }(Or)), Or.exports;
3424
3422
  }
3425
- var Nr = { exports: {} }, Ro;
3426
- function Xi() {
3427
- return Ro || (Ro = 1, function(r, e) {
3423
+ var Mr = { exports: {} }, Po;
3424
+ function Ki() {
3425
+ return Po || (Po = 1, function(r, e) {
3428
3426
  (function(t, n, a) {
3429
3427
  r.exports = n(re(), ge());
3430
3428
  })(te, function(t) {
@@ -3439,11 +3437,11 @@ function Xi() {
3439
3437
  }
3440
3438
  }, t.pad.Iso10126;
3441
3439
  });
3442
- }(Nr)), Nr.exports;
3440
+ }(Mr)), Mr.exports;
3443
3441
  }
3444
- var Mr = { exports: {} }, $o;
3445
- function Qi() {
3446
- return $o || ($o = 1, function(r, e) {
3442
+ var Nr = { exports: {} }, Ro;
3443
+ function Gi() {
3444
+ return Ro || (Ro = 1, function(r, e) {
3447
3445
  (function(t, n, a) {
3448
3446
  r.exports = n(re(), ge());
3449
3447
  })(te, function(t) {
@@ -3456,11 +3454,11 @@ function Qi() {
3456
3454
  }
3457
3455
  }, t.pad.Iso97971;
3458
3456
  });
3459
- }(Mr)), Mr.exports;
3457
+ }(Nr)), Nr.exports;
3460
3458
  }
3461
- var Lr = { exports: {} }, zo;
3462
- function Ji() {
3463
- return zo || (zo = 1, function(r, e) {
3459
+ var Lr = { exports: {} }, $o;
3460
+ function Xi() {
3461
+ return $o || ($o = 1, function(r, e) {
3464
3462
  (function(t, n, a) {
3465
3463
  r.exports = n(re(), ge());
3466
3464
  })(te, function(t) {
@@ -3480,9 +3478,9 @@ function Ji() {
3480
3478
  });
3481
3479
  }(Lr)), Lr.exports;
3482
3480
  }
3483
- var Hr = { exports: {} }, Oo;
3484
- function Zi() {
3485
- return Oo || (Oo = 1, function(r, e) {
3481
+ var Hr = { exports: {} }, zo;
3482
+ function Qi() {
3483
+ return zo || (zo = 1, function(r, e) {
3486
3484
  (function(t, n, a) {
3487
3485
  r.exports = n(re(), ge());
3488
3486
  })(te, function(t) {
@@ -3495,9 +3493,9 @@ function Zi() {
3495
3493
  });
3496
3494
  }(Hr)), Hr.exports;
3497
3495
  }
3498
- var Ur = { exports: {} }, No;
3499
- function Yi() {
3500
- return No || (No = 1, function(r, e) {
3496
+ var Ur = { exports: {} }, Oo;
3497
+ function Zi() {
3498
+ return Oo || (Oo = 1, function(r, e) {
3501
3499
  (function(t, n, a) {
3502
3500
  r.exports = n(re(), ge());
3503
3501
  })(te, function(t) {
@@ -3543,7 +3541,7 @@ function Yi() {
3543
3541
  }(Ur)), Ur.exports;
3544
3542
  }
3545
3543
  var jr = { exports: {} }, Mo;
3546
- function ec() {
3544
+ function Ji() {
3547
3545
  return Mo || (Mo = 1, function(r, e) {
3548
3546
  (function(t, n, a) {
3549
3547
  r.exports = n(re(), ut(), dt(), et(), ge());
@@ -3602,9 +3600,9 @@ function ec() {
3602
3600
  });
3603
3601
  }(jr)), jr.exports;
3604
3602
  }
3605
- var qr = { exports: {} }, Lo;
3606
- function tc() {
3607
- return Lo || (Lo = 1, function(r, e) {
3603
+ var qr = { exports: {} }, No;
3604
+ function Yi() {
3605
+ return No || (No = 1, function(r, e) {
3608
3606
  (function(t, n, a) {
3609
3607
  r.exports = n(re(), ut(), dt(), et(), ge());
3610
3608
  })(te, function(t) {
@@ -4322,9 +4320,9 @@ function tc() {
4322
4320
  });
4323
4321
  }(qr)), qr.exports;
4324
4322
  }
4325
- var Wr = { exports: {} }, Ho;
4326
- function rc() {
4327
- return Ho || (Ho = 1, function(r, e) {
4323
+ var Wr = { exports: {} }, Lo;
4324
+ function ec() {
4325
+ return Lo || (Lo = 1, function(r, e) {
4328
4326
  (function(t, n, a) {
4329
4327
  r.exports = n(re(), ut(), dt(), et(), ge());
4330
4328
  })(te, function(t) {
@@ -4376,9 +4374,9 @@ function rc() {
4376
4374
  });
4377
4375
  }(Wr)), Wr.exports;
4378
4376
  }
4379
- var Vr = { exports: {} }, Uo;
4380
- function nc() {
4381
- return Uo || (Uo = 1, function(r, e) {
4377
+ var Vr = { exports: {} }, Ho;
4378
+ function tc() {
4379
+ return Ho || (Ho = 1, function(r, e) {
4382
4380
  (function(t, n, a) {
4383
4381
  r.exports = n(re(), ut(), dt(), et(), ge());
4384
4382
  })(te, function(t) {
@@ -4442,9 +4440,9 @@ function nc() {
4442
4440
  });
4443
4441
  }(Vr)), Vr.exports;
4444
4442
  }
4445
- var Kr = { exports: {} }, jo;
4446
- function oc() {
4447
- return jo || (jo = 1, function(r, e) {
4443
+ var Kr = { exports: {} }, Uo;
4444
+ function rc() {
4445
+ return Uo || (Uo = 1, function(r, e) {
4448
4446
  (function(t, n, a) {
4449
4447
  r.exports = n(re(), ut(), dt(), et(), ge());
4450
4448
  })(te, function(t) {
@@ -4506,9 +4504,9 @@ function oc() {
4506
4504
  });
4507
4505
  }(Kr)), Kr.exports;
4508
4506
  }
4509
- var Gr = { exports: {} }, qo;
4510
- function ac() {
4511
- return qo || (qo = 1, function(r, e) {
4507
+ var Gr = { exports: {} }, jo;
4508
+ function nc() {
4509
+ return jo || (jo = 1, function(r, e) {
4512
4510
  (function(t, n, a) {
4513
4511
  r.exports = n(re(), ut(), dt(), et(), ge());
4514
4512
  })(te, function(t) {
@@ -5630,16 +5628,16 @@ function ac() {
5630
5628
  }
5631
5629
  (function(r, e) {
5632
5630
  (function(t, n, a) {
5633
- r.exports = n(re(), ar(), $i(), zi(), ut(), Oi(), dt(), Wa(), wn(), Ni(), Va(), Mi(), Li(), Hi(), En(), Ui(), et(), ge(), ji(), qi(), Wi(), Vi(), Ki(), Gi(), Xi(), Qi(), Ji(), Zi(), Yi(), ec(), tc(), rc(), nc(), oc(), ac());
5631
+ r.exports = n(re(), ar(), Pi(), Ri(), ut(), $i(), dt(), Wa(), bn(), zi(), Va(), Oi(), Mi(), Ni(), wn(), Li(), et(), ge(), Hi(), Ui(), ji(), qi(), Wi(), Vi(), Ki(), Gi(), Xi(), Qi(), Zi(), Ji(), Yi(), ec(), tc(), rc(), nc());
5634
5632
  })(te, function(t) {
5635
5633
  return t;
5636
5634
  });
5637
5635
  })(qa);
5638
- var sc = qa.exports;
5639
- const Be = /* @__PURE__ */ Si(sc);
5640
- function ic(r, e, t, n) {
5636
+ var oc = qa.exports;
5637
+ const Be = /* @__PURE__ */ ki(oc);
5638
+ function ac(r, e, t, n) {
5641
5639
  Ka(r, e).then(({ input: a, key: s }) => Xa(a, s, t, !0, n)).then((a) => {
5642
- cc.apply(null, a);
5640
+ sc.apply(null, a);
5643
5641
  }).catch((a) => {
5644
5642
  n({
5645
5643
  value: null,
@@ -5647,16 +5645,16 @@ function ic(r, e, t, n) {
5647
5645
  });
5648
5646
  });
5649
5647
  }
5650
- function cc(r, e, t, n, a, s, i, l) {
5648
+ function sc(r, e, t, n, a, s, i, l) {
5651
5649
  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);
5652
5650
  l({
5653
5651
  value: _,
5654
5652
  error: null
5655
5653
  });
5656
5654
  }
5657
- function lc(r, e, t, n) {
5655
+ function ic(r, e, t, n) {
5658
5656
  Ka(r, e).then(({ input: a, key: s }) => Xa(a, s, t, !1, n)).then((a) => {
5659
- uc.apply(null, a);
5657
+ cc.apply(null, a);
5660
5658
  }).catch((a) => {
5661
5659
  n({
5662
5660
  value: null,
@@ -5664,7 +5662,7 @@ function lc(r, e, t, n) {
5664
5662
  });
5665
5663
  });
5666
5664
  }
5667
- function uc(r, e, t, n, a, s, i, l) {
5665
+ function cc(r, e, t, n, a, s, i, l) {
5668
5666
  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);
5669
5667
  l({
5670
5668
  value: _,
@@ -5679,9 +5677,9 @@ async function Ka(r, e) {
5679
5677
  } : Promise.reject("秘钥为空");
5680
5678
  }
5681
5679
  function Ga(r, e, t, n, a) {
5682
- let s = Wo(r, e), i = {}, l = Be.mode.CBC;
5680
+ let s = qo(r, e), i = {}, l = Be.mode.CBC;
5683
5681
  if (n === "CFB" ? l = Be.mode.CFB : n === "OFB" ? l = Be.mode.OFB : n === "ECB" && (l = Be.mode.ECB), i.mode = l, n !== "ECB") {
5684
- let c = Wo(t, e === 8 ? 8 : 16);
5682
+ let c = qo(t, e === 8 ? 8 : 16);
5685
5683
  i.iv = c;
5686
5684
  }
5687
5685
  let u = Be.pad.Pkcs7;
@@ -5693,7 +5691,7 @@ function Ga(r, e, t, n, a) {
5693
5691
  async function Xa(r, e, t, n = !1, a) {
5694
5692
  let s;
5695
5693
  try {
5696
- s = await dc(t);
5694
+ s = await lc(t);
5697
5695
  } catch (c) {
5698
5696
  return Promise.reject(c);
5699
5697
  }
@@ -5702,43 +5700,43 @@ async function Xa(r, e, t, n = !1, a) {
5702
5700
  return Promise.reject("非ECB模式iv不能为空");
5703
5701
  let l;
5704
5702
  try {
5705
- l = await fc(t, n);
5703
+ l = await uc(t, n);
5706
5704
  } catch (c) {
5707
5705
  return Promise.reject(c);
5708
5706
  }
5709
5707
  let u;
5710
5708
  try {
5711
- u = await pc(t);
5709
+ u = await dc(t);
5712
5710
  } catch (c) {
5713
5711
  return Promise.reject(c);
5714
5712
  }
5715
5713
  let o;
5716
5714
  try {
5717
- o = await hc(t);
5715
+ o = await fc(t);
5718
5716
  } catch (c) {
5719
5717
  return Promise.reject(c);
5720
5718
  }
5721
5719
  return [r, e, l, i, s, u, o, a];
5722
5720
  }
5723
- async function dc(r) {
5721
+ async function lc(r) {
5724
5722
  let { mode: e = "CBC" } = r || {};
5725
5723
  return e = e.trim().toUpperCase(), ["CBC", "CFB", "OFB", "ECB"].indexOf(e) === -1 ? Promise.reject("mode模式配置错误") : e;
5726
5724
  }
5727
- async function fc(r, e = !1) {
5725
+ async function uc(r, e = !1) {
5728
5726
  if (!e)
5729
5727
  return 8;
5730
5728
  let { keySize: t = 0 } = r || {};
5731
5729
  return [16, 24, 32].indexOf(t) !== -1 ? t : Promise.reject("keySize配置错误");
5732
5730
  }
5733
- async function pc(r) {
5731
+ async function dc(r) {
5734
5732
  let { padding: e = "pkcs7" } = r || {};
5735
5733
  return e = e.trim().toLowerCase(), ["pkcs7", "pkcs5", "zero", "iso10126", "ansix923"].indexOf(e) !== -1 ? e : Promise.reject("padding配置错误");
5736
5734
  }
5737
- async function hc(r) {
5735
+ async function fc(r) {
5738
5736
  let { encoding: e = "base64" } = r || {};
5739
5737
  return e = e.trim().toLowerCase(), ["base64", "hex"].indexOf(e) !== -1 ? e : Promise.reject("encoding配置错误");
5740
5738
  }
5741
- function Wo(r, e) {
5739
+ function qo(r, e) {
5742
5740
  let t = unescape(encodeURIComponent(r)), n = t.length;
5743
5741
  if (e = e || n, n > e)
5744
5742
  t = t.substring(0, e);
@@ -5749,10 +5747,10 @@ function Wo(r, e) {
5749
5747
  }
5750
5748
  return Be.enc.Latin1.parse(t);
5751
5749
  }
5752
- const xc = {
5753
- aes: ic,
5754
- des: lc
5755
- }, vc = (r = {}, e) => {
5750
+ const pc = {
5751
+ aes: ac,
5752
+ des: ic
5753
+ }, hc = (r = {}, e) => {
5756
5754
  const t = { aes: "aes", des: "des" }, n = {
5757
5755
  pkcs5padding: "Pkcs5",
5758
5756
  pkcs7padding: "Pkcs7",
@@ -5762,13 +5760,13 @@ const xc = {
5762
5760
  }, a = { hex: "hex", base64: "base64" };
5763
5761
  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;
5764
5762
  return new Promise((x) => {
5765
- i !== "aes" && i !== "des" ? x({ error: "加密类型出错==", value: null }) : xc[i](e, u, { mode: l, keySize: g, padding: _, encoding: h, iv: o }, (m) => {
5763
+ i !== "aes" && i !== "des" ? x({ error: "加密类型出错==", value: null }) : pc[i](e, u, { mode: l, keySize: g, padding: _, encoding: h, iv: o }, (m) => {
5766
5764
  x(m);
5767
5765
  });
5768
5766
  });
5769
5767
  };
5770
5768
  var nt = /* @__PURE__ */ ((r) => (r.USER_ACCOUNT = "USER_ACCOUNT", r.USER_PHONE = "USER_PHONE", r.USER_TOKEN = "USER_TOKEN", r.CURRENT_PROJECT = "CURRENT_PROJECT", r.USER_NAME = "USER_NAME", r.USER_NICKNAME = "USER_NICKNAME", r))(nt || {}), Qa = /* @__PURE__ */ ((r) => (r.TEXT = "TEXT", r.JSON = "JSON", r))(Qa || {});
5771
- function Ja(r) {
5769
+ function Za(r) {
5772
5770
  return r ? [
5773
5771
  nt.USER_ACCOUNT,
5774
5772
  nt.USER_PHONE,
@@ -5778,18 +5776,18 @@ function Ja(r) {
5778
5776
  nt.USER_NICKNAME
5779
5777
  ].findIndex((t) => r.trim() === t) >= 0 : !1;
5780
5778
  }
5781
- async function Za(r) {
5779
+ async function Ja(r) {
5782
5780
  const { userName: e, name: t, nickName: n, phone: a } = Ba();
5783
5781
  return {
5784
5782
  USER_ACCOUNT: e,
5785
5783
  USER_NAME: t,
5786
5784
  USER_NICKNAME: n,
5787
5785
  USER_PHONE: a,
5788
- USER_TOKEN: Ze(),
5789
- CURRENT_PROJECT: Je().id
5786
+ USER_TOKEN: Je(),
5787
+ CURRENT_PROJECT: Ze().id
5790
5788
  }[r];
5791
5789
  }
5792
- async function gc(r) {
5790
+ async function xc(r) {
5793
5791
  if (typeof r != "string") return "";
5794
5792
  let e = null;
5795
5793
  try {
@@ -5802,29 +5800,29 @@ async function gc(r) {
5802
5800
  let s = e[n[a]], { name: i, value: l } = s || {};
5803
5801
  if (i && l) {
5804
5802
  let u = l;
5805
- if (Ja(l)) {
5806
- if (!Ze())
5803
+ if (Za(l)) {
5804
+ if (!Je())
5807
5805
  return Ia({ ...Ta, redirect_uri: Pa }), "goLogin";
5808
- u = await Za(l);
5806
+ u = await Ja(l);
5809
5807
  }
5810
5808
  t[i] = u;
5811
5809
  }
5812
5810
  }
5813
5811
  return JSON.stringify(t);
5814
5812
  }
5815
- async function mc(r) {
5813
+ async function vc(r) {
5816
5814
  let e = {};
5817
5815
  for (let t = 0; t < r.length; t++) {
5818
5816
  let n = r[t] || {}, { attributeContentEnum: a, paramName: s, attributeContent: i, paramType: l, isEncrypted: u } = n, o = s, c = i;
5819
- if (Ja(a)) {
5820
- if (!Ze())
5817
+ if (Za(a)) {
5818
+ if (!Je())
5821
5819
  return Ia({ ...Ta, redirect_uri: Pa }), "goLogin";
5822
- c = await Za(a);
5823
- } else if (l === Qa.JSON && (c = await gc(i), c === "goLogin"))
5820
+ c = await Ja(a);
5821
+ } else if (l === Qa.JSON && (c = await xc(i), c === "goLogin"))
5824
5822
  return "goLogin";
5825
5823
  if (o && c) {
5826
5824
  if (u) {
5827
- let _ = await vc(n, c);
5825
+ let _ = await hc(n, c);
5828
5826
  _.error, c = _.value ?? "";
5829
5827
  }
5830
5828
  e[o] = c;
@@ -5832,7 +5830,7 @@ async function mc(r) {
5832
5830
  }
5833
5831
  return e;
5834
5832
  }
5835
- function _c(r) {
5833
+ function gc(r) {
5836
5834
  let e = {}, t = r.split("&");
5837
5835
  for (let n = 0; n < t.length; n++) {
5838
5836
  let s = t[n].split("=");
@@ -5843,34 +5841,35 @@ function _c(r) {
5843
5841
  }
5844
5842
  return e;
5845
5843
  }
5846
- function Cc(r) {
5844
+ function mc(r) {
5847
5845
  return Object.keys(r).map((e) => `${e}=${r[e]}`).join("&");
5848
5846
  }
5849
- function yc(r, e) {
5847
+ function _c(r, e) {
5850
5848
  let t = r.split("?").filter((o) => o.length > 0), n = Object.keys(e).map((o) => {
5851
5849
  let c = e[o];
5852
5850
  return `${encodeURIComponent(o)}=${encodeURIComponent(c)}`;
5853
5851
  }).join("&");
5854
5852
  if (t.length !== 2)
5855
5853
  return n.length > 0 ? `${r}?${n}` : r;
5856
- let a = t[0], s = _c(t[1]), i = /* @__PURE__ */ new Set();
5854
+ let a = t[0], s = gc(t[1]), i = /* @__PURE__ */ new Set();
5857
5855
  Object.keys(s).forEach((o) => {
5858
5856
  e[o] && i.add(o);
5859
5857
  }), i.forEach((o) => {
5860
5858
  delete s[o];
5861
5859
  });
5862
- let l = n, u = Cc(s);
5860
+ let l = n, u = mc(s);
5863
5861
  return u.length > 0 && (n.length > 0 ? l = `${u}&${n}` : l = u), l.length > 0 ? `${a}?${l}` : a;
5864
5862
  }
5865
5863
  const Ya = async (r, e) => {
5866
- const t = await mc(e);
5867
- return t === "goLogin" ? "" : yc(r, t) ?? "";
5864
+ const t = await vc(e);
5865
+ return t === "goLogin" ? "" : _c(r, t) ?? "";
5868
5866
  }, nn = (r) => {
5869
5867
  const e = new URL(r, location.origin);
5870
- return ["true", "1"].includes(e.searchParams.get("autoSetToken")) && (e.searchParams.append("access_token", Es()), e.searchParams.delete("autoSetToken")), e.toString();
5871
- }, e0 = "v1", bc = Ye(`/api/personal-center/personal-server/${e0}`), wc = Ye(`/api/enterpriseright/permission/${e0}`), Ec = bc.get("/info"), Ac = Sa.get("/user-info"), Bc = wc.get("/user/tenant");
5872
- xn.post("/tenant/page");
5873
- const kc = "v1", Dc = Ye(`/api/user-portrait/user-data/${kc}`), t0 = Dc.post("/data/actions", (r) => (r.ignoreErrorMessage = !0, r)), r0 = "pc", n0 = "pc", Sc = async (r) => {
5868
+ return ["true", "1"].includes(e.searchParams.get("autoSetToken")) && (e.searchParams.append("access_token", ws()), e.searchParams.delete("autoSetToken")), e.toString();
5869
+ }, e0 = "v1", Cc = Ye(`/api/personal-center/personal-server/${e0}`), yc = Ye(`/api/enterpriseright/permission/${e0}`), bc = Cc.get("/info"), wc = Sa.get("/user-info");
5870
+ yc.get("/user/tenant");
5871
+ hn.post("/tenant/page");
5872
+ const Ec = "v1", Ac = Ye(`/api/user-portrait/user-data/${Ec}`), t0 = Ac.post("/data/actions", (r) => (r.ignoreErrorMessage = !0, r)), r0 = "pc", n0 = "pc", Bc = async (r) => {
5874
5873
  const e = JSON.parse(sessionStorage.getItem("access-sys") || "{}");
5875
5874
  (e == null ? void 0 : e.projectId) !== r && (await t0().run({
5876
5875
  action: "access-sys",
@@ -5892,17 +5891,14 @@ const kc = "v1", Dc = Ye(`/api/user-portrait/user-data/${kc}`), t0 = Dc.post("/d
5892
5891
  displayMenuName: a
5893
5892
  }
5894
5893
  });
5895
- }, Fc = async () => {
5896
- const [r, e] = await Ec().run({});
5897
- return r ? { personalConfig: null } : (Sc(Je().id), xi(e), { personalConfig: e });
5898
- }, Ic = async () => {
5899
- const [r, e] = await Ac().run();
5900
- return r ? { tenantConfig: null } : (vi(e), { tenantConfig: e });
5901
- }, Tc = async () => {
5902
- const [r, e] = await Bc().run(), t = (e == null ? void 0 : e.envLanguage) ?? [];
5903
- return gi(t.length), r ? { currentTenatConfig: null } : { tenantConfig: e };
5904
- }, Pc = vn.get("/permissionset/user-portal-menu"), Rc = bs.deviceManage.get("/instance/getLast");
5905
- function $c() {
5894
+ }, kc = async () => {
5895
+ const [r, e] = await bc().run({});
5896
+ return r ? { personalConfig: null } : (Bc(Ze().id), hi(e), { personalConfig: e });
5897
+ }, Dc = async () => {
5898
+ const [r, e] = await wc().run();
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() {
5906
5902
  this.__data__ = [], this.size = 0;
5907
5903
  }
5908
5904
  function a0(r, e) {
@@ -5914,22 +5910,22 @@ function sr(r, e) {
5914
5910
  return t;
5915
5911
  return -1;
5916
5912
  }
5917
- var zc = Array.prototype, Oc = zc.splice;
5918
- function Nc(r) {
5913
+ var Tc = Array.prototype, Pc = Tc.splice;
5914
+ function Rc(r) {
5919
5915
  var e = this.__data__, t = sr(e, r);
5920
5916
  if (t < 0)
5921
5917
  return !1;
5922
5918
  var n = e.length - 1;
5923
- return t == n ? e.pop() : Oc.call(e, t, 1), --this.size, !0;
5919
+ return t == n ? e.pop() : Pc.call(e, t, 1), --this.size, !0;
5924
5920
  }
5925
- function Mc(r) {
5921
+ function $c(r) {
5926
5922
  var e = this.__data__, t = sr(e, r);
5927
5923
  return t < 0 ? void 0 : e[t][1];
5928
5924
  }
5929
- function Lc(r) {
5925
+ function zc(r) {
5930
5926
  return sr(this.__data__, r) > -1;
5931
5927
  }
5932
- function Hc(r, e) {
5928
+ function Oc(r, e) {
5933
5929
  var t = this.__data__, n = sr(t, r);
5934
5930
  return n < 0 ? (++this.size, t.push([r, e])) : t[n][1] = e, this;
5935
5931
  }
@@ -5940,66 +5936,66 @@ function We(r) {
5940
5936
  this.set(n[0], n[1]);
5941
5937
  }
5942
5938
  }
5943
- We.prototype.clear = $c;
5944
- We.prototype.delete = Nc;
5945
- We.prototype.get = Mc;
5946
- We.prototype.has = Lc;
5947
- We.prototype.set = Hc;
5948
- function Uc() {
5939
+ We.prototype.clear = Ic;
5940
+ We.prototype.delete = Rc;
5941
+ We.prototype.get = $c;
5942
+ We.prototype.has = zc;
5943
+ We.prototype.set = Oc;
5944
+ function Mc() {
5949
5945
  this.__data__ = new We(), this.size = 0;
5950
5946
  }
5951
- function jc(r) {
5947
+ function Nc(r) {
5952
5948
  var e = this.__data__, t = e.delete(r);
5953
5949
  return this.size = e.size, t;
5954
5950
  }
5955
- function qc(r) {
5951
+ function Lc(r) {
5956
5952
  return this.__data__.get(r);
5957
5953
  }
5958
- function Wc(r) {
5954
+ function Hc(r) {
5959
5955
  return this.__data__.has(r);
5960
5956
  }
5961
- var s0 = typeof global == "object" && global && global.Object === Object && global, Vc = typeof self == "object" && self && self.Object === Object && self, He = s0 || Vc || Function("return this")(), Ct = He.Symbol, i0 = Object.prototype, Kc = i0.hasOwnProperty, Gc = i0.toString, It = Ct ? Ct.toStringTag : void 0;
5962
- function Xc(r) {
5963
- var e = Kc.call(r, It), t = r[It];
5957
+ var s0 = typeof global == "object" && global && global.Object === Object && global, Uc = typeof self == "object" && self && self.Object === Object && self, He = s0 || Uc || Function("return this")(), Ct = He.Symbol, i0 = Object.prototype, jc = i0.hasOwnProperty, qc = i0.toString, It = Ct ? Ct.toStringTag : void 0;
5958
+ function Wc(r) {
5959
+ var e = jc.call(r, It), t = r[It];
5964
5960
  try {
5965
5961
  r[It] = void 0;
5966
5962
  var n = !0;
5967
5963
  } catch {
5968
5964
  }
5969
- var a = Gc.call(r);
5965
+ var a = qc.call(r);
5970
5966
  return n && (e ? r[It] = t : delete r[It]), a;
5971
5967
  }
5972
- var Qc = Object.prototype, Jc = Qc.toString;
5973
- function Zc(r) {
5974
- return Jc.call(r);
5968
+ var Vc = Object.prototype, Kc = Vc.toString;
5969
+ function Gc(r) {
5970
+ return Kc.call(r);
5975
5971
  }
5976
- var Yc = "[object Null]", el = "[object Undefined]", Vo = Ct ? Ct.toStringTag : void 0;
5972
+ var Xc = "[object Null]", Qc = "[object Undefined]", Wo = Ct ? Ct.toStringTag : void 0;
5977
5973
  function Ht(r) {
5978
- return r == null ? r === void 0 ? el : Yc : Vo && Vo in Object(r) ? Xc(r) : Zc(r);
5974
+ return r == null ? r === void 0 ? Qc : Xc : Wo && Wo in Object(r) ? Wc(r) : Gc(r);
5979
5975
  }
5980
5976
  function Ut(r) {
5981
5977
  var e = typeof r;
5982
5978
  return r != null && (e == "object" || e == "function");
5983
5979
  }
5984
- var tl = "[object AsyncFunction]", rl = "[object Function]", nl = "[object GeneratorFunction]", ol = "[object Proxy]";
5980
+ var Zc = "[object AsyncFunction]", Jc = "[object Function]", Yc = "[object GeneratorFunction]", el = "[object Proxy]";
5985
5981
  function c0(r) {
5986
5982
  if (!Ut(r))
5987
5983
  return !1;
5988
5984
  var e = Ht(r);
5989
- return e == rl || e == nl || e == tl || e == ol;
5985
+ return e == Jc || e == Yc || e == Zc || e == el;
5990
5986
  }
5991
- var Xr = He["__core-js_shared__"], Ko = function() {
5987
+ var Xr = He["__core-js_shared__"], Vo = function() {
5992
5988
  var r = /[^.]+$/.exec(Xr && Xr.keys && Xr.keys.IE_PROTO || "");
5993
5989
  return r ? "Symbol(src)_1." + r : "";
5994
5990
  }();
5995
- function al(r) {
5996
- return !!Ko && Ko in r;
5991
+ function tl(r) {
5992
+ return !!Vo && Vo in r;
5997
5993
  }
5998
- var sl = Function.prototype, il = sl.toString;
5994
+ var rl = Function.prototype, nl = rl.toString;
5999
5995
  function ft(r) {
6000
5996
  if (r != null) {
6001
5997
  try {
6002
- return il.call(r);
5998
+ return nl.call(r);
6003
5999
  } catch {
6004
6000
  }
6005
6001
  try {
@@ -6009,48 +6005,48 @@ function ft(r) {
6009
6005
  }
6010
6006
  return "";
6011
6007
  }
6012
- var cl = /[\\^$.*+?()[\]{}|]/g, ll = /^\[object .+?Constructor\]$/, ul = Function.prototype, dl = Object.prototype, fl = ul.toString, pl = dl.hasOwnProperty, hl = RegExp(
6013
- "^" + fl.call(pl).replace(cl, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
6008
+ var ol = /[\\^$.*+?()[\]{}|]/g, al = /^\[object .+?Constructor\]$/, sl = Function.prototype, il = Object.prototype, cl = sl.toString, ll = il.hasOwnProperty, ul = RegExp(
6009
+ "^" + cl.call(ll).replace(ol, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
6014
6010
  );
6015
- function xl(r) {
6016
- if (!Ut(r) || al(r))
6011
+ function dl(r) {
6012
+ if (!Ut(r) || tl(r))
6017
6013
  return !1;
6018
- var e = c0(r) ? hl : ll;
6014
+ var e = c0(r) ? ul : al;
6019
6015
  return e.test(ft(r));
6020
6016
  }
6021
- function vl(r, e) {
6017
+ function fl(r, e) {
6022
6018
  return r == null ? void 0 : r[e];
6023
6019
  }
6024
6020
  function pt(r, e) {
6025
- var t = vl(r, e);
6026
- return xl(t) ? t : void 0;
6021
+ var t = fl(r, e);
6022
+ return dl(t) ? t : void 0;
6027
6023
  }
6028
6024
  var $t = pt(He, "Map"), zt = pt(Object, "create");
6029
- function gl() {
6025
+ function pl() {
6030
6026
  this.__data__ = zt ? zt(null) : {}, this.size = 0;
6031
6027
  }
6032
- function ml(r) {
6028
+ function hl(r) {
6033
6029
  var e = this.has(r) && delete this.__data__[r];
6034
6030
  return this.size -= e ? 1 : 0, e;
6035
6031
  }
6036
- var _l = "__lodash_hash_undefined__", Cl = Object.prototype, yl = Cl.hasOwnProperty;
6037
- function bl(r) {
6032
+ var xl = "__lodash_hash_undefined__", vl = Object.prototype, gl = vl.hasOwnProperty;
6033
+ function ml(r) {
6038
6034
  var e = this.__data__;
6039
6035
  if (zt) {
6040
6036
  var t = e[r];
6041
- return t === _l ? void 0 : t;
6037
+ return t === xl ? void 0 : t;
6042
6038
  }
6043
- return yl.call(e, r) ? e[r] : void 0;
6039
+ return gl.call(e, r) ? e[r] : void 0;
6044
6040
  }
6045
- var wl = Object.prototype, El = wl.hasOwnProperty;
6046
- function Al(r) {
6041
+ var _l = Object.prototype, Cl = _l.hasOwnProperty;
6042
+ function yl(r) {
6047
6043
  var e = this.__data__;
6048
- return zt ? e[r] !== void 0 : El.call(e, r);
6044
+ return zt ? e[r] !== void 0 : Cl.call(e, r);
6049
6045
  }
6050
- var Bl = "__lodash_hash_undefined__";
6051
- function kl(r, e) {
6046
+ var bl = "__lodash_hash_undefined__";
6047
+ function wl(r, e) {
6052
6048
  var t = this.__data__;
6053
- return this.size += this.has(r) ? 0 : 1, t[r] = zt && e === void 0 ? Bl : e, this;
6049
+ return this.size += this.has(r) ? 0 : 1, t[r] = zt && e === void 0 ? bl : e, this;
6054
6050
  }
6055
6051
  function it(r) {
6056
6052
  var e = -1, t = r == null ? 0 : r.length;
@@ -6059,37 +6055,37 @@ function it(r) {
6059
6055
  this.set(n[0], n[1]);
6060
6056
  }
6061
6057
  }
6062
- it.prototype.clear = gl;
6063
- it.prototype.delete = ml;
6064
- it.prototype.get = bl;
6065
- it.prototype.has = Al;
6066
- it.prototype.set = kl;
6067
- function Dl() {
6058
+ it.prototype.clear = pl;
6059
+ it.prototype.delete = hl;
6060
+ it.prototype.get = ml;
6061
+ it.prototype.has = yl;
6062
+ it.prototype.set = wl;
6063
+ function El() {
6068
6064
  this.size = 0, this.__data__ = {
6069
6065
  hash: new it(),
6070
6066
  map: new ($t || We)(),
6071
6067
  string: new it()
6072
6068
  };
6073
6069
  }
6074
- function Sl(r) {
6070
+ function Al(r) {
6075
6071
  var e = typeof r;
6076
6072
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? r !== "__proto__" : r === null;
6077
6073
  }
6078
6074
  function ir(r, e) {
6079
6075
  var t = r.__data__;
6080
- return Sl(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
6076
+ return Al(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
6081
6077
  }
6082
- function Fl(r) {
6078
+ function Bl(r) {
6083
6079
  var e = ir(this, r).delete(r);
6084
6080
  return this.size -= e ? 1 : 0, e;
6085
6081
  }
6086
- function Il(r) {
6082
+ function kl(r) {
6087
6083
  return ir(this, r).get(r);
6088
6084
  }
6089
- function Tl(r) {
6085
+ function Dl(r) {
6090
6086
  return ir(this, r).has(r);
6091
6087
  }
6092
- function Pl(r, e) {
6088
+ function Sl(r, e) {
6093
6089
  var t = ir(this, r), n = t.size;
6094
6090
  return t.set(r, e), this.size += t.size == n ? 0 : 1, this;
6095
6091
  }
@@ -6100,17 +6096,17 @@ function At(r) {
6100
6096
  this.set(n[0], n[1]);
6101
6097
  }
6102
6098
  }
6103
- At.prototype.clear = Dl;
6104
- At.prototype.delete = Fl;
6105
- At.prototype.get = Il;
6106
- At.prototype.has = Tl;
6107
- At.prototype.set = Pl;
6108
- var Rl = 200;
6109
- function $l(r, e) {
6099
+ At.prototype.clear = El;
6100
+ At.prototype.delete = Bl;
6101
+ At.prototype.get = kl;
6102
+ At.prototype.has = Dl;
6103
+ At.prototype.set = Sl;
6104
+ var Fl = 200;
6105
+ function Il(r, e) {
6110
6106
  var t = this.__data__;
6111
6107
  if (t instanceof We) {
6112
6108
  var n = t.__data__;
6113
- if (!$t || n.length < Rl - 1)
6109
+ if (!$t || n.length < Fl - 1)
6114
6110
  return n.push([r, e]), this.size = ++t.size, this;
6115
6111
  t = this.__data__ = new At(n);
6116
6112
  }
@@ -6120,17 +6116,17 @@ function Bt(r) {
6120
6116
  var e = this.__data__ = new We(r);
6121
6117
  this.size = e.size;
6122
6118
  }
6123
- Bt.prototype.clear = Uc;
6124
- Bt.prototype.delete = jc;
6125
- Bt.prototype.get = qc;
6126
- Bt.prototype.has = Wc;
6127
- Bt.prototype.set = $l;
6128
- function zl(r, e) {
6119
+ Bt.prototype.clear = Mc;
6120
+ Bt.prototype.delete = Nc;
6121
+ Bt.prototype.get = Lc;
6122
+ Bt.prototype.has = Hc;
6123
+ Bt.prototype.set = Il;
6124
+ function Tl(r, e) {
6129
6125
  for (var t = -1, n = r == null ? 0 : r.length; ++t < n && e(r[t], t, r) !== !1; )
6130
6126
  ;
6131
6127
  return r;
6132
6128
  }
6133
- var Go = function() {
6129
+ var Ko = function() {
6134
6130
  try {
6135
6131
  var r = pt(Object, "defineProperty");
6136
6132
  return r({}, "", {}), r;
@@ -6138,17 +6134,17 @@ var Go = function() {
6138
6134
  }
6139
6135
  }();
6140
6136
  function l0(r, e, t) {
6141
- e == "__proto__" && Go ? Go(r, e, {
6137
+ e == "__proto__" && Ko ? Ko(r, e, {
6142
6138
  configurable: !0,
6143
6139
  enumerable: !0,
6144
6140
  value: t,
6145
6141
  writable: !0
6146
6142
  }) : r[e] = t;
6147
6143
  }
6148
- var Ol = Object.prototype, Nl = Ol.hasOwnProperty;
6144
+ var Pl = Object.prototype, Rl = Pl.hasOwnProperty;
6149
6145
  function u0(r, e, t) {
6150
6146
  var n = r[e];
6151
- (!(Nl.call(r, e) && a0(n, t)) || t === void 0 && !(e in r)) && l0(r, e, t);
6147
+ (!(Rl.call(r, e) && a0(n, t)) || t === void 0 && !(e in r)) && l0(r, e, t);
6152
6148
  }
6153
6149
  function cr(r, e, t, n) {
6154
6150
  var a = !t;
@@ -6159,7 +6155,7 @@ function cr(r, e, t, n) {
6159
6155
  }
6160
6156
  return t;
6161
6157
  }
6162
- function Ml(r, e) {
6158
+ function $l(r, e) {
6163
6159
  for (var t = -1, n = Array(r); ++t < r; )
6164
6160
  n[t] = e(t);
6165
6161
  return n;
@@ -6167,58 +6163,58 @@ function Ml(r, e) {
6167
6163
  function jt(r) {
6168
6164
  return r != null && typeof r == "object";
6169
6165
  }
6170
- var Ll = "[object Arguments]";
6171
- function Xo(r) {
6172
- return jt(r) && Ht(r) == Ll;
6166
+ var zl = "[object Arguments]";
6167
+ function Go(r) {
6168
+ return jt(r) && Ht(r) == zl;
6173
6169
  }
6174
- var d0 = Object.prototype, Hl = d0.hasOwnProperty, Ul = d0.propertyIsEnumerable, jl = Xo(/* @__PURE__ */ function() {
6170
+ var d0 = Object.prototype, Ol = d0.hasOwnProperty, Ml = d0.propertyIsEnumerable, Nl = Go(/* @__PURE__ */ function() {
6175
6171
  return arguments;
6176
- }()) ? Xo : function(r) {
6177
- return jt(r) && Hl.call(r, "callee") && !Ul.call(r, "callee");
6178
- }, An = Array.isArray;
6179
- function ql() {
6172
+ }()) ? Go : function(r) {
6173
+ return jt(r) && Ol.call(r, "callee") && !Ml.call(r, "callee");
6174
+ }, En = Array.isArray;
6175
+ function Ll() {
6180
6176
  return !1;
6181
6177
  }
6182
- var f0 = typeof exports == "object" && exports && !exports.nodeType && exports, Qo = f0 && typeof module == "object" && module && !module.nodeType && module, Wl = Qo && Qo.exports === f0, Jo = Wl ? He.Buffer : void 0, Vl = Jo ? Jo.isBuffer : void 0, p0 = Vl || ql, Kl = 9007199254740991, Gl = /^(?:0|[1-9]\d*)$/;
6183
- function Xl(r, e) {
6178
+ var f0 = typeof exports == "object" && exports && !exports.nodeType && exports, Xo = f0 && typeof module == "object" && module && !module.nodeType && module, Hl = Xo && Xo.exports === f0, Qo = Hl ? He.Buffer : void 0, Ul = Qo ? Qo.isBuffer : void 0, p0 = Ul || Ll, jl = 9007199254740991, ql = /^(?:0|[1-9]\d*)$/;
6179
+ function Wl(r, e) {
6184
6180
  var t = typeof r;
6185
- return e = e ?? Kl, !!e && (t == "number" || t != "symbol" && Gl.test(r)) && r > -1 && r % 1 == 0 && r < e;
6181
+ return e = e ?? jl, !!e && (t == "number" || t != "symbol" && ql.test(r)) && r > -1 && r % 1 == 0 && r < e;
6186
6182
  }
6187
- var Ql = 9007199254740991;
6183
+ var Vl = 9007199254740991;
6188
6184
  function h0(r) {
6189
- return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Ql;
6185
+ return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Vl;
6190
6186
  }
6191
- var Jl = "[object Arguments]", Zl = "[object Array]", Yl = "[object Boolean]", eu = "[object Date]", tu = "[object Error]", ru = "[object Function]", nu = "[object Map]", ou = "[object Number]", au = "[object Object]", su = "[object RegExp]", iu = "[object Set]", cu = "[object String]", lu = "[object WeakMap]", uu = "[object ArrayBuffer]", du = "[object DataView]", fu = "[object Float32Array]", pu = "[object Float64Array]", hu = "[object Int8Array]", xu = "[object Int16Array]", vu = "[object Int32Array]", gu = "[object Uint8Array]", mu = "[object Uint8ClampedArray]", _u = "[object Uint16Array]", Cu = "[object Uint32Array]", le = {};
6192
- le[fu] = le[pu] = le[hu] = le[xu] = le[vu] = le[gu] = le[mu] = le[_u] = le[Cu] = !0;
6193
- le[Jl] = le[Zl] = le[uu] = le[Yl] = le[du] = le[eu] = le[tu] = le[ru] = le[nu] = le[ou] = le[au] = le[su] = le[iu] = le[cu] = le[lu] = !1;
6194
- function yu(r) {
6187
+ var Kl = "[object Arguments]", Gl = "[object Array]", Xl = "[object Boolean]", Ql = "[object Date]", Zl = "[object Error]", Jl = "[object Function]", Yl = "[object Map]", eu = "[object Number]", tu = "[object Object]", ru = "[object RegExp]", nu = "[object Set]", ou = "[object String]", au = "[object WeakMap]", su = "[object ArrayBuffer]", iu = "[object DataView]", cu = "[object Float32Array]", lu = "[object Float64Array]", uu = "[object Int8Array]", du = "[object Int16Array]", fu = "[object Int32Array]", pu = "[object Uint8Array]", hu = "[object Uint8ClampedArray]", xu = "[object Uint16Array]", vu = "[object Uint32Array]", le = {};
6188
+ le[cu] = le[lu] = le[uu] = le[du] = le[fu] = le[pu] = le[hu] = le[xu] = le[vu] = !0;
6189
+ le[Kl] = le[Gl] = le[su] = le[Xl] = le[iu] = le[Ql] = le[Zl] = le[Jl] = le[Yl] = le[eu] = le[tu] = le[ru] = le[nu] = le[ou] = le[au] = !1;
6190
+ function gu(r) {
6195
6191
  return jt(r) && h0(r.length) && !!le[Ht(r)];
6196
6192
  }
6197
- function Bn(r) {
6193
+ function An(r) {
6198
6194
  return function(e) {
6199
6195
  return r(e);
6200
6196
  };
6201
6197
  }
6202
- var x0 = typeof exports == "object" && exports && !exports.nodeType && exports, Pt = x0 && typeof module == "object" && module && !module.nodeType && module, bu = Pt && Pt.exports === x0, Qr = bu && s0.process, yt = function() {
6198
+ var x0 = typeof exports == "object" && exports && !exports.nodeType && exports, Pt = x0 && typeof module == "object" && module && !module.nodeType && module, mu = Pt && Pt.exports === x0, Qr = mu && s0.process, yt = function() {
6203
6199
  try {
6204
6200
  var r = Pt && Pt.require && Pt.require("util").types;
6205
6201
  return r || Qr && Qr.binding && Qr.binding("util");
6206
6202
  } catch {
6207
6203
  }
6208
- }(), Zo = yt && yt.isTypedArray, wu = Zo ? Bn(Zo) : yu, Eu = Object.prototype, Au = Eu.hasOwnProperty;
6204
+ }(), Zo = yt && yt.isTypedArray, _u = Zo ? An(Zo) : gu, Cu = Object.prototype, yu = Cu.hasOwnProperty;
6209
6205
  function v0(r, e) {
6210
- var t = An(r), n = !t && jl(r), a = !t && !n && p0(r), s = !t && !n && !a && wu(r), i = t || n || a || s, l = i ? Ml(r.length, String) : [], u = l.length;
6206
+ var t = En(r), n = !t && Nl(r), a = !t && !n && p0(r), s = !t && !n && !a && _u(r), i = t || n || a || s, l = i ? $l(r.length, String) : [], u = l.length;
6211
6207
  for (var o in r)
6212
- (e || Au.call(r, o)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
6208
+ (e || yu.call(r, o)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
6213
6209
  (o == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
6214
6210
  a && (o == "offset" || o == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
6215
6211
  s && (o == "buffer" || o == "byteLength" || o == "byteOffset") || // Skip index properties.
6216
- Xl(o, u))) && l.push(o);
6212
+ Wl(o, u))) && l.push(o);
6217
6213
  return l;
6218
6214
  }
6219
- var Bu = Object.prototype;
6220
- function kn(r) {
6221
- var e = r && r.constructor, t = typeof e == "function" && e.prototype || Bu;
6215
+ var bu = Object.prototype;
6216
+ function Bn(r) {
6217
+ var e = r && r.constructor, t = typeof e == "function" && e.prototype || bu;
6222
6218
  return r === t;
6223
6219
  }
6224
6220
  function g0(r, e) {
@@ -6226,60 +6222,60 @@ function g0(r, e) {
6226
6222
  return r(e(t));
6227
6223
  };
6228
6224
  }
6229
- var ku = g0(Object.keys, Object), Du = Object.prototype, Su = Du.hasOwnProperty;
6230
- function Fu(r) {
6231
- if (!kn(r))
6232
- return ku(r);
6225
+ var wu = g0(Object.keys, Object), Eu = Object.prototype, Au = Eu.hasOwnProperty;
6226
+ function Bu(r) {
6227
+ if (!Bn(r))
6228
+ return wu(r);
6233
6229
  var e = [];
6234
6230
  for (var t in Object(r))
6235
- Su.call(r, t) && t != "constructor" && e.push(t);
6231
+ Au.call(r, t) && t != "constructor" && e.push(t);
6236
6232
  return e;
6237
6233
  }
6238
6234
  function m0(r) {
6239
6235
  return r != null && h0(r.length) && !c0(r);
6240
6236
  }
6241
- function Dn(r) {
6242
- return m0(r) ? v0(r) : Fu(r);
6237
+ function kn(r) {
6238
+ return m0(r) ? v0(r) : Bu(r);
6243
6239
  }
6244
- function Iu(r, e) {
6245
- return r && cr(e, Dn(e), r);
6240
+ function ku(r, e) {
6241
+ return r && cr(e, kn(e), r);
6246
6242
  }
6247
- function Tu(r) {
6243
+ function Du(r) {
6248
6244
  var e = [];
6249
6245
  if (r != null)
6250
6246
  for (var t in Object(r))
6251
6247
  e.push(t);
6252
6248
  return e;
6253
6249
  }
6254
- var Pu = Object.prototype, Ru = Pu.hasOwnProperty;
6255
- function $u(r) {
6250
+ var Su = Object.prototype, Fu = Su.hasOwnProperty;
6251
+ function Iu(r) {
6256
6252
  if (!Ut(r))
6257
- return Tu(r);
6258
- var e = kn(r), t = [];
6253
+ return Du(r);
6254
+ var e = Bn(r), t = [];
6259
6255
  for (var n in r)
6260
- n == "constructor" && (e || !Ru.call(r, n)) || t.push(n);
6256
+ n == "constructor" && (e || !Fu.call(r, n)) || t.push(n);
6261
6257
  return t;
6262
6258
  }
6263
- function Sn(r) {
6264
- return m0(r) ? v0(r, !0) : $u(r);
6259
+ function Dn(r) {
6260
+ return m0(r) ? v0(r, !0) : Iu(r);
6265
6261
  }
6266
- function zu(r, e) {
6267
- return r && cr(e, Sn(e), r);
6262
+ function Tu(r, e) {
6263
+ return r && cr(e, Dn(e), r);
6268
6264
  }
6269
- var _0 = typeof exports == "object" && exports && !exports.nodeType && exports, Yo = _0 && typeof module == "object" && module && !module.nodeType && module, Ou = Yo && Yo.exports === _0, ea = Ou ? He.Buffer : void 0, ta = ea ? ea.allocUnsafe : void 0;
6270
- function Nu(r, e) {
6265
+ var _0 = typeof exports == "object" && exports && !exports.nodeType && exports, Jo = _0 && typeof module == "object" && module && !module.nodeType && module, Pu = Jo && Jo.exports === _0, Yo = Pu ? He.Buffer : void 0, ea = Yo ? Yo.allocUnsafe : void 0;
6266
+ function Ru(r, e) {
6271
6267
  if (e)
6272
6268
  return r.slice();
6273
- var t = r.length, n = ta ? ta(t) : new r.constructor(t);
6269
+ var t = r.length, n = ea ? ea(t) : new r.constructor(t);
6274
6270
  return r.copy(n), n;
6275
6271
  }
6276
- function Mu(r, e) {
6272
+ function $u(r, e) {
6277
6273
  var t = -1, n = r.length;
6278
6274
  for (e || (e = Array(n)); ++t < n; )
6279
6275
  e[t] = r[t];
6280
6276
  return e;
6281
6277
  }
6282
- function Lu(r, e) {
6278
+ function zu(r, e) {
6283
6279
  for (var t = -1, n = r == null ? 0 : r.length, a = 0, s = []; ++t < n; ) {
6284
6280
  var i = r[t];
6285
6281
  e(i, t, r) && (s[a++] = i);
@@ -6289,183 +6285,183 @@ function Lu(r, e) {
6289
6285
  function C0() {
6290
6286
  return [];
6291
6287
  }
6292
- var Hu = Object.prototype, Uu = Hu.propertyIsEnumerable, ra = Object.getOwnPropertySymbols, Fn = ra ? function(r) {
6293
- return r == null ? [] : (r = Object(r), Lu(ra(r), function(e) {
6294
- return Uu.call(r, e);
6288
+ var Ou = Object.prototype, Mu = Ou.propertyIsEnumerable, ta = Object.getOwnPropertySymbols, Sn = ta ? function(r) {
6289
+ return r == null ? [] : (r = Object(r), zu(ta(r), function(e) {
6290
+ return Mu.call(r, e);
6295
6291
  }));
6296
6292
  } : C0;
6297
- function ju(r, e) {
6298
- return cr(r, Fn(r), e);
6293
+ function Nu(r, e) {
6294
+ return cr(r, Sn(r), e);
6299
6295
  }
6300
6296
  function y0(r, e) {
6301
6297
  for (var t = -1, n = e.length, a = r.length; ++t < n; )
6302
6298
  r[a + t] = e[t];
6303
6299
  return r;
6304
6300
  }
6305
- var b0 = g0(Object.getPrototypeOf, Object), qu = Object.getOwnPropertySymbols, w0 = qu ? function(r) {
6301
+ var b0 = g0(Object.getPrototypeOf, Object), Lu = Object.getOwnPropertySymbols, w0 = Lu ? function(r) {
6306
6302
  for (var e = []; r; )
6307
- y0(e, Fn(r)), r = b0(r);
6303
+ y0(e, Sn(r)), r = b0(r);
6308
6304
  return e;
6309
6305
  } : C0;
6310
- function Wu(r, e) {
6306
+ function Hu(r, e) {
6311
6307
  return cr(r, w0(r), e);
6312
6308
  }
6313
6309
  function E0(r, e, t) {
6314
6310
  var n = e(r);
6315
- return An(r) ? n : y0(n, t(r));
6311
+ return En(r) ? n : y0(n, t(r));
6316
6312
  }
6317
- function Vu(r) {
6318
- return E0(r, Dn, Fn);
6313
+ function Uu(r) {
6314
+ return E0(r, kn, Sn);
6319
6315
  }
6320
- function Ku(r) {
6321
- return E0(r, Sn, w0);
6316
+ function ju(r) {
6317
+ return E0(r, Dn, w0);
6322
6318
  }
6323
- var on = pt(He, "DataView"), an = pt(He, "Promise"), sn = pt(He, "Set"), cn = pt(He, "WeakMap"), na = "[object Map]", Gu = "[object Object]", oa = "[object Promise]", aa = "[object Set]", sa = "[object WeakMap]", ia = "[object DataView]", Xu = ft(on), Qu = ft($t), Ju = ft(an), Zu = ft(sn), Yu = ft(cn), Ue = Ht;
6324
- (on && Ue(new on(new ArrayBuffer(1))) != ia || $t && Ue(new $t()) != na || an && Ue(an.resolve()) != oa || sn && Ue(new sn()) != aa || cn && Ue(new cn()) != sa) && (Ue = function(r) {
6325
- var e = Ht(r), t = e == Gu ? r.constructor : void 0, n = t ? ft(t) : "";
6319
+ var on = pt(He, "DataView"), an = pt(He, "Promise"), sn = pt(He, "Set"), cn = pt(He, "WeakMap"), ra = "[object Map]", qu = "[object Object]", na = "[object Promise]", oa = "[object Set]", aa = "[object WeakMap]", sa = "[object DataView]", Wu = ft(on), Vu = ft($t), Ku = ft(an), Gu = ft(sn), Xu = ft(cn), Ue = Ht;
6320
+ (on && Ue(new on(new ArrayBuffer(1))) != sa || $t && Ue(new $t()) != ra || an && Ue(an.resolve()) != na || sn && Ue(new sn()) != oa || cn && Ue(new cn()) != aa) && (Ue = function(r) {
6321
+ var e = Ht(r), t = e == qu ? r.constructor : void 0, n = t ? ft(t) : "";
6326
6322
  if (n)
6327
6323
  switch (n) {
6328
- case Xu:
6329
- return ia;
6330
- case Qu:
6324
+ case Wu:
6325
+ return sa;
6326
+ case Vu:
6327
+ return ra;
6328
+ case Ku:
6331
6329
  return na;
6332
- case Ju:
6330
+ case Gu:
6333
6331
  return oa;
6334
- case Zu:
6332
+ case Xu:
6335
6333
  return aa;
6336
- case Yu:
6337
- return sa;
6338
6334
  }
6339
6335
  return e;
6340
6336
  });
6341
- var ed = Object.prototype, td = ed.hasOwnProperty;
6342
- function rd(r) {
6337
+ var Qu = Object.prototype, Zu = Qu.hasOwnProperty;
6338
+ function Ju(r) {
6343
6339
  var e = r.length, t = new r.constructor(e);
6344
- return e && typeof r[0] == "string" && td.call(r, "index") && (t.index = r.index, t.input = r.input), t;
6340
+ return e && typeof r[0] == "string" && Zu.call(r, "index") && (t.index = r.index, t.input = r.input), t;
6345
6341
  }
6346
- var ca = He.Uint8Array;
6347
- function In(r) {
6342
+ var ia = He.Uint8Array;
6343
+ function Fn(r) {
6348
6344
  var e = new r.constructor(r.byteLength);
6349
- return new ca(e).set(new ca(r)), e;
6345
+ return new ia(e).set(new ia(r)), e;
6350
6346
  }
6351
- function nd(r, e) {
6352
- var t = e ? In(r.buffer) : r.buffer;
6347
+ function Yu(r, e) {
6348
+ var t = e ? Fn(r.buffer) : r.buffer;
6353
6349
  return new r.constructor(t, r.byteOffset, r.byteLength);
6354
6350
  }
6355
- var od = /\w*$/;
6356
- function ad(r) {
6357
- var e = new r.constructor(r.source, od.exec(r));
6351
+ var ed = /\w*$/;
6352
+ function td(r) {
6353
+ var e = new r.constructor(r.source, ed.exec(r));
6358
6354
  return e.lastIndex = r.lastIndex, e;
6359
6355
  }
6360
- var la = Ct ? Ct.prototype : void 0, ua = la ? la.valueOf : void 0;
6361
- function sd(r) {
6362
- return ua ? Object(ua.call(r)) : {};
6356
+ var ca = Ct ? Ct.prototype : void 0, la = ca ? ca.valueOf : void 0;
6357
+ function rd(r) {
6358
+ return la ? Object(la.call(r)) : {};
6363
6359
  }
6364
- function id(r, e) {
6365
- var t = e ? In(r.buffer) : r.buffer;
6360
+ function nd(r, e) {
6361
+ var t = e ? Fn(r.buffer) : r.buffer;
6366
6362
  return new r.constructor(t, r.byteOffset, r.length);
6367
6363
  }
6368
- var cd = "[object Boolean]", ld = "[object Date]", ud = "[object Map]", dd = "[object Number]", fd = "[object RegExp]", pd = "[object Set]", hd = "[object String]", xd = "[object Symbol]", vd = "[object ArrayBuffer]", gd = "[object DataView]", md = "[object Float32Array]", _d = "[object Float64Array]", Cd = "[object Int8Array]", yd = "[object Int16Array]", bd = "[object Int32Array]", wd = "[object Uint8Array]", Ed = "[object Uint8ClampedArray]", Ad = "[object Uint16Array]", Bd = "[object Uint32Array]";
6369
- function kd(r, e, t) {
6364
+ var od = "[object Boolean]", ad = "[object Date]", sd = "[object Map]", id = "[object Number]", cd = "[object RegExp]", ld = "[object Set]", ud = "[object String]", dd = "[object Symbol]", fd = "[object ArrayBuffer]", pd = "[object DataView]", hd = "[object Float32Array]", xd = "[object Float64Array]", vd = "[object Int8Array]", gd = "[object Int16Array]", md = "[object Int32Array]", _d = "[object Uint8Array]", Cd = "[object Uint8ClampedArray]", yd = "[object Uint16Array]", bd = "[object Uint32Array]";
6365
+ function wd(r, e, t) {
6370
6366
  var n = r.constructor;
6371
6367
  switch (e) {
6372
- case vd:
6373
- return In(r);
6374
- case cd:
6375
- case ld:
6368
+ case fd:
6369
+ return Fn(r);
6370
+ case od:
6371
+ case ad:
6376
6372
  return new n(+r);
6373
+ case pd:
6374
+ return Yu(r, t);
6375
+ case hd:
6376
+ case xd:
6377
+ case vd:
6377
6378
  case gd:
6378
- return nd(r, t);
6379
6379
  case md:
6380
6380
  case _d:
6381
6381
  case Cd:
6382
6382
  case yd:
6383
6383
  case bd:
6384
- case wd:
6385
- case Ed:
6386
- case Ad:
6387
- case Bd:
6388
- return id(r, t);
6389
- case ud:
6384
+ return nd(r, t);
6385
+ case sd:
6390
6386
  return new n();
6391
- case dd:
6392
- case hd:
6387
+ case id:
6388
+ case ud:
6393
6389
  return new n(r);
6394
- case fd:
6395
- return ad(r);
6396
- case pd:
6390
+ case cd:
6391
+ return td(r);
6392
+ case ld:
6397
6393
  return new n();
6398
- case xd:
6399
- return sd(r);
6394
+ case dd:
6395
+ return rd(r);
6400
6396
  }
6401
6397
  }
6402
- var da = Object.create, Dd = /* @__PURE__ */ function() {
6398
+ var ua = Object.create, Ed = /* @__PURE__ */ function() {
6403
6399
  function r() {
6404
6400
  }
6405
6401
  return function(e) {
6406
6402
  if (!Ut(e))
6407
6403
  return {};
6408
- if (da)
6409
- return da(e);
6404
+ if (ua)
6405
+ return ua(e);
6410
6406
  r.prototype = e;
6411
6407
  var t = new r();
6412
6408
  return r.prototype = void 0, t;
6413
6409
  };
6414
6410
  }();
6415
- function Sd(r) {
6416
- return typeof r.constructor == "function" && !kn(r) ? Dd(b0(r)) : {};
6411
+ function Ad(r) {
6412
+ return typeof r.constructor == "function" && !Bn(r) ? Ed(b0(r)) : {};
6417
6413
  }
6418
- var Fd = "[object Map]";
6419
- function Id(r) {
6420
- return jt(r) && Ue(r) == Fd;
6414
+ var Bd = "[object Map]";
6415
+ function kd(r) {
6416
+ return jt(r) && Ue(r) == Bd;
6421
6417
  }
6422
- var fa = yt && yt.isMap, Td = fa ? Bn(fa) : Id, Pd = "[object Set]";
6423
- function Rd(r) {
6424
- return jt(r) && Ue(r) == Pd;
6418
+ var da = yt && yt.isMap, Dd = da ? An(da) : kd, Sd = "[object Set]";
6419
+ function Fd(r) {
6420
+ return jt(r) && Ue(r) == Sd;
6425
6421
  }
6426
- var pa = yt && yt.isSet, $d = pa ? Bn(pa) : Rd, zd = 1, Od = 2, Nd = 4, A0 = "[object Arguments]", Md = "[object Array]", Ld = "[object Boolean]", Hd = "[object Date]", Ud = "[object Error]", B0 = "[object Function]", jd = "[object GeneratorFunction]", qd = "[object Map]", Wd = "[object Number]", k0 = "[object Object]", Vd = "[object RegExp]", Kd = "[object Set]", Gd = "[object String]", Xd = "[object Symbol]", Qd = "[object WeakMap]", Jd = "[object ArrayBuffer]", Zd = "[object DataView]", Yd = "[object Float32Array]", ef = "[object Float64Array]", tf = "[object Int8Array]", rf = "[object Int16Array]", nf = "[object Int32Array]", of = "[object Uint8Array]", af = "[object Uint8ClampedArray]", sf = "[object Uint16Array]", cf = "[object Uint32Array]", ce = {};
6427
- ce[A0] = ce[Md] = ce[Jd] = ce[Zd] = ce[Ld] = ce[Hd] = ce[Yd] = ce[ef] = ce[tf] = ce[rf] = ce[nf] = ce[qd] = ce[Wd] = ce[k0] = ce[Vd] = ce[Kd] = ce[Gd] = ce[Xd] = ce[of] = ce[af] = ce[sf] = ce[cf] = !0;
6428
- ce[Ud] = ce[B0] = ce[Qd] = !1;
6422
+ var fa = yt && yt.isSet, Id = fa ? An(fa) : Fd, Td = 1, Pd = 2, Rd = 4, A0 = "[object Arguments]", $d = "[object Array]", zd = "[object Boolean]", Od = "[object Date]", Md = "[object Error]", B0 = "[object Function]", Nd = "[object GeneratorFunction]", Ld = "[object Map]", Hd = "[object Number]", k0 = "[object Object]", Ud = "[object RegExp]", jd = "[object Set]", qd = "[object String]", Wd = "[object Symbol]", Vd = "[object WeakMap]", Kd = "[object ArrayBuffer]", Gd = "[object DataView]", Xd = "[object Float32Array]", Qd = "[object Float64Array]", Zd = "[object Int8Array]", Jd = "[object Int16Array]", Yd = "[object Int32Array]", ef = "[object Uint8Array]", tf = "[object Uint8ClampedArray]", rf = "[object Uint16Array]", nf = "[object Uint32Array]", ce = {};
6423
+ ce[A0] = ce[$d] = ce[Kd] = ce[Gd] = ce[zd] = ce[Od] = ce[Xd] = ce[Qd] = ce[Zd] = ce[Jd] = ce[Yd] = ce[Ld] = ce[Hd] = ce[k0] = ce[Ud] = ce[jd] = ce[qd] = ce[Wd] = ce[ef] = ce[tf] = ce[rf] = ce[nf] = !0;
6424
+ ce[Md] = ce[B0] = ce[Vd] = !1;
6429
6425
  function Xt(r, e, t, n, a, s) {
6430
- var i, l = e & zd, u = e & Od, o = e & Nd;
6426
+ var i, l = e & Td, u = e & Pd, o = e & Rd;
6431
6427
  if (i !== void 0)
6432
6428
  return i;
6433
6429
  if (!Ut(r))
6434
6430
  return r;
6435
- var c = An(r);
6431
+ var c = En(r);
6436
6432
  if (c) {
6437
- if (i = rd(r), !l)
6438
- return Mu(r, i);
6433
+ if (i = Ju(r), !l)
6434
+ return $u(r, i);
6439
6435
  } else {
6440
- var _ = Ue(r), d = _ == B0 || _ == jd;
6436
+ var _ = Ue(r), d = _ == B0 || _ == Nd;
6441
6437
  if (p0(r))
6442
- return Nu(r, l);
6438
+ return Ru(r, l);
6443
6439
  if (_ == k0 || _ == A0 || d && !a) {
6444
- if (i = u || d ? {} : Sd(r), !l)
6445
- return u ? Wu(r, zu(i, r)) : ju(r, Iu(i, r));
6440
+ if (i = u || d ? {} : Ad(r), !l)
6441
+ return u ? Hu(r, Tu(i, r)) : Nu(r, ku(i, r));
6446
6442
  } else {
6447
6443
  if (!ce[_])
6448
6444
  return a ? r : {};
6449
- i = kd(r, _, l);
6445
+ i = wd(r, _, l);
6450
6446
  }
6451
6447
  }
6452
6448
  s || (s = new Bt());
6453
6449
  var h = s.get(r);
6454
6450
  if (h)
6455
6451
  return h;
6456
- s.set(r, i), $d(r) ? r.forEach(function(x) {
6452
+ s.set(r, i), Id(r) ? r.forEach(function(x) {
6457
6453
  i.add(Xt(x, e, t, x, r, s));
6458
- }) : Td(r) && r.forEach(function(x, m) {
6454
+ }) : Dd(r) && r.forEach(function(x, m) {
6459
6455
  i.set(m, Xt(x, e, t, m, r, s));
6460
6456
  });
6461
- var p = o ? u ? Ku : Vu : u ? Sn : Dn, g = c ? void 0 : p(r);
6462
- return zl(g || r, function(x, m) {
6457
+ var p = o ? u ? ju : Uu : u ? Dn : kn, g = c ? void 0 : p(r);
6458
+ return Tl(g || r, function(x, m) {
6463
6459
  g && (m = x, x = r[m]), u0(i, m, Xt(x, e, t, m, r, s));
6464
6460
  }), i;
6465
6461
  }
6466
- var lf = 1, uf = 4;
6462
+ var of = 1, af = 4;
6467
6463
  function Yt(r) {
6468
- return Xt(r, lf | uf);
6464
+ return Xt(r, of | af);
6469
6465
  }
6470
6466
  const er = (r, e = "") => {
6471
6467
  for (let t of r)
@@ -6486,27 +6482,27 @@ const er = (r, e = "") => {
6486
6482
  }
6487
6483
  }
6488
6484
  return null;
6489
- }, df = (r, e) => {
6485
+ }, sf = (r, e) => {
6490
6486
  let t;
6491
6487
  const n = r.findIndex((i) => i.code === e);
6492
6488
  if (n === -1) return { index: n, target: t };
6493
6489
  const a = r.slice(0, n), s = r.slice(n + 1);
6494
6490
  return s.length && (t = s[0]), t || a.length && (t = a[a.length - 1]), { index: n, target: t };
6495
- }, ha = (r) => {
6491
+ }, pa = (r) => {
6496
6492
  const e = de().subAppList ?? [];
6497
- let { index: t, target: n } = df(e, r);
6498
- return e.splice(t, 1), e.length ? Qe([{ key: "subAppList", value: e }]) : bn(), Ie([
6493
+ let { index: t, target: n } = sf(e, r);
6494
+ return e.splice(t, 1), e.length ? Qe([{ key: "subAppList", value: e }]) : yn(), Ie([
6499
6495
  { key: "currentCode", value: "" },
6500
6496
  { key: "currentTab", value: {} },
6501
6497
  { key: `preTab:${r}`, value: {} },
6502
6498
  { key: `tabMap:${r}`, value: [] }
6503
6499
  ]), n || (n = { fixed: !0, path: qe }), { currentApp: n };
6504
- }, ff = (r, e) => {
6500
+ }, cf = (r, e) => {
6505
6501
  const t = r.findIndex((s) => s.code === e), n = r.slice(0, t), a = r.slice(t + 1);
6506
6502
  return { left: n, right: a };
6507
- }, pf = (r, e, t) => {
6503
+ }, lf = (r, e, t) => {
6508
6504
  var _;
6509
- 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 } = ff(s, t), u = s.filter((d) => n.find((h) => h.code === d.code)).map((d) => {
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 } = cf(s, t), u = s.filter((d) => n.find((h) => h.code === d.code)).map((d) => {
6510
6506
  var h;
6511
6507
  return {
6512
6508
  ...d,
@@ -6519,7 +6515,7 @@ const er = (r, e = "") => {
6519
6515
  { key: "currentTab", value: {} },
6520
6516
  { key: `preTab:${r}`, value: {} },
6521
6517
  { key: `tabMap:${r}`, value: [] }
6522
- ]), ha(r);
6518
+ ]), pa(r);
6523
6519
  let o = null;
6524
6520
  if (l.length) {
6525
6521
  const d = l.find((h) => u.map((p) => p.code).includes(h.code));
@@ -6546,23 +6542,23 @@ const er = (r, e = "") => {
6546
6542
  ]), ja(o.code), { currentMenu: n.find((d) => d.code === o.code), currentTab: o }) : (Ie([
6547
6543
  { key: `preTab:${r}`, value: {} },
6548
6544
  { key: `tabMap:${r}`, value: [] }
6549
- ]), ha(r));
6550
- }, Tn = async (r) => {
6551
- const [e, t] = await Pc().run({
6545
+ ]), pa(r));
6546
+ }, In = async (r) => {
6547
+ const [e, t] = await Sc().run({
6552
6548
  code: r,
6553
6549
  showBtn: !0,
6554
6550
  userType: 1
6555
6551
  });
6556
6552
  if (e || !t || !t.length) return { menus: [], originalMenus: [], err: e };
6557
- Ci(t, r);
6553
+ mi(t, r);
6558
6554
  const n = Re(t);
6559
- bi(n, r), Ei(n, r);
6560
- let a = hs(t, (i) => i.isMenu);
6555
+ Ci(n, r), bi(n, r);
6556
+ let a = ps(t, (i) => i.isMenu);
6561
6557
  const s = Yt(a);
6562
6558
  return a.forEach((i) => {
6563
6559
  i != null && i.children && i.children.length && (i.originalChildren = Yt(i.children)), (i != null && i.expired || i != null && i.disable) && (i.children = []);
6564
6560
  }), { menus: a, originalMenus: s };
6565
- }, hf = async (r) => {
6561
+ }, uf = async (r) => {
6566
6562
  var d, h, p, g, x;
6567
6563
  let { microApp: e = null, menuCode: t = "", menuPath: n = "", route: a = {} } = r;
6568
6564
  const s = ((d = a.meta) == null ? void 0 : d.showLayout) ?? !0;
@@ -6573,7 +6569,7 @@ const er = (r, e = "") => {
6573
6569
  let u = [], o = [];
6574
6570
  const c = de().subAppList ?? [];
6575
6571
  if (c.length && (u = ((p = c.find((m) => m.code === e.code)) == null ? void 0 : p.menus) ?? []), !u.length) {
6576
- const { menus: m, originalMenus: f } = await Tn(l);
6572
+ const { menus: m, originalMenus: f } = await In(l);
6577
6573
  u = m ?? [], o = f ?? [];
6578
6574
  }
6579
6575
  if (!u.length && (!s || !i))
@@ -6617,7 +6613,7 @@ const er = (r, e = "") => {
6617
6613
  if (!_) {
6618
6614
  if (!s || !i)
6619
6615
  return { menuConfig: u, currentApp: null, currentMenu: null, query: { ...a.query, app: l } };
6620
- const m = pf(e.code, u, t);
6616
+ const m = lf(e.code, u, t);
6621
6617
  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) ?? {});
6622
6618
  }
6623
6619
  if ((e == null ? void 0 : e.routeUrl) === qe)
@@ -6666,50 +6662,44 @@ const er = (r, e = "") => {
6666
6662
  return { menuConfig: u, currentApp: e, currentMenu: _, query: v, microPath: f };
6667
6663
  }
6668
6664
  return { menuConfig: u, currentApp: e, currentMenu: null, query: { ...a.query, app: l } };
6669
- }, xf = "v1", vf = nr.get("/visitor/login/with-default", (r) => (r.public = !0, r)), gf = nr.get("/visitor/appearance/with-default", (r) => (r.public = !0, r)), mf = nr.get("platform/appearance/withdefault"), _f = Ye(`/api/portal/manager/${xf}`);
6670
- _f.get("/basics/home/info");
6671
- const Cf = Fa.get("/language");
6665
+ }, df = "v1", ff = nr.get("/visitor/login/with-default", (r) => (r.public = !0, r)), pf = nr.get("/visitor/appearance/with-default", (r) => (r.public = !0, r)), hf = nr.get("platform/appearance/withdefault"), xf = Ye(`/api/portal/manager/${df}`);
6666
+ xf.get("/basics/home/info");
6667
+ Fa.get("/language");
6672
6668
  Fa.get("/menu/personal-setting");
6673
- const yf = async () => {
6674
- const [r, e] = await vf().run();
6669
+ const vf = async () => {
6670
+ const [r, e] = await ff().run();
6675
6671
  return r ? { loginConfig: null } : { loginConfig: e };
6676
- }, bf = async () => {
6677
- const r = Ze() ? mf : gf, [e, t] = await r().run();
6672
+ }, gf = async () => {
6673
+ const r = Je() ? hf : pf, [e, t] = await r().run();
6678
6674
  return e ? { platformConfig: null } : { platformConfig: t };
6679
- }, wf = N(null), D0 = N({ style: 1, skinStyle: "default" }), Ef = async () => {
6680
- const [r, e] = await Cf().run();
6681
- let t = pn.value;
6682
- return e != null && e.type && e.type === 1 && (t = "zh-CN"), e != null && e.type && e.type === 2 && (t = "en"), ls(t), {
6683
- langConfig: { ...e }
6684
- };
6685
- }, Af = () => N(null), Bf = { class: "iframe-container" }, kf = ["src"], Df = /* @__PURE__ */ we({
6675
+ }, mf = M(null), D0 = M({ style: 1, skinStyle: "default" }), _f = () => M(null), Cf = { class: "iframe-container" }, yf = ["src"], bf = /* @__PURE__ */ we({
6686
6676
  __name: "index",
6687
6677
  props: {
6688
6678
  src: { default: "" }
6689
6679
  },
6690
6680
  setup(r) {
6691
- const e = r, t = N(null), n = N(!1), a = () => {
6681
+ const e = r, t = M(null), n = M(!1), a = () => {
6692
6682
  var i, l;
6693
6683
  n.value && (i = t.value) != null && i.contentWindow && ((l = t.value.contentWindow) == null || l.postMessage(
6694
6684
  {
6695
- token: Ze(),
6696
- userInfo: hn(),
6697
- projectInfo: Je()
6685
+ token: Je(),
6686
+ userInfo: pn(),
6687
+ projectInfo: Ze()
6698
6688
  },
6699
6689
  e.src
6700
6690
  ));
6701
6691
  }, s = () => {
6702
6692
  n.value = !0, a();
6703
6693
  };
6704
- return Mt(() => {
6694
+ return Nt(() => {
6705
6695
  n.value = !1;
6706
- }), (i, l) => (Y(), Se("div", Bf, [
6707
- i.src ? (Y(), se(F(gn), {
6696
+ }), (i, l) => (Y(), Se("div", Cf, [
6697
+ i.src ? (Y(), se(F(vn), {
6708
6698
  key: 0,
6709
6699
  spinning: !n.value
6710
6700
  }, {
6711
6701
  default: X(() => [
6712
- Ea(K("iframe", {
6702
+ wa(K("iframe", {
6713
6703
  id: "iframe-view",
6714
6704
  ref_key: "iframeRef",
6715
6705
  ref: t,
@@ -6717,7 +6707,7 @@ const yf = async () => {
6717
6707
  height: "100%",
6718
6708
  src: i.src,
6719
6709
  onLoad: s
6720
- }, null, 40, kf), [
6710
+ }, null, 40, yf), [
6721
6711
  [es, n.value]
6722
6712
  ])
6723
6713
  ]),
@@ -6726,12 +6716,12 @@ const yf = async () => {
6726
6716
  }, 8, ["spinning"])) : oe("v-if", !0)
6727
6717
  ]));
6728
6718
  }
6729
- }), ln = /* @__PURE__ */ Le(Df, [["__scopeId", "data-v-d0f25bba"]]), Sf = xn.get("/login/history"), Ff = () => {
6719
+ }), ln = /* @__PURE__ */ Le(bf, [["__scopeId", "data-v-d0f25bba"]]), wf = hn.get("/login/history"), Ef = () => {
6730
6720
  const r = () => ["/licenseActivate", "/licenseDataManage", "/sso-logout"].some((u) => new RegExp(`^${u}$`, "i").test(location.pathname)), e = (i) => {
6731
- const { browserLogoImgHost: l = "", browserLogoImg: u = "" } = i || {}, o = u ? l + ps(u) : "./logo.svg";
6732
- mi(o), vs(o);
6721
+ const { browserLogoImgHost: l = "", browserLogoImg: u = "" } = i || {}, o = u ? l + fs(u) : "./logo.svg";
6722
+ vi(o), xs(o);
6733
6723
  }, t = async () => {
6734
- const [i, l] = await Sf().run({ userId: ka().id });
6724
+ const [i, l] = await wf().run({ userId: ka().id });
6735
6725
  i || !l || JSON.stringify(l) === "{}" || (Qt.open({
6736
6726
  key: "loginTip",
6737
6727
  message: ne("上次登录信息"),
@@ -6740,15 +6730,15 @@ const yf = async () => {
6740
6730
  Ce(
6741
6731
  "div",
6742
6732
  { style: "font-size: 12px;color:#212121;margin-bottom:8px" },
6743
- ne("时间:") + gs(l.lastModificationTime)
6733
+ ne("时间:") + vs(l.lastModificationTime)
6744
6734
  ),
6745
6735
  Ce("div", { style: "font-size: 12px;color:#212121;" }, ne("IP地址:") + l.ip)
6746
6736
  ])
6747
6737
  }), sessionStorage.setItem("loginInfoTip", "true"));
6748
6738
  }, n = async () => {
6749
- const [{ loginConfig: i }, { platformConfig: l }] = await Promise.all([yf(), bf()]);
6750
- e(l), l != null && l.browserTitle && localStorage.setItem("browser-title", l.browserTitle || "AIoT智能物联网管控平台"), xs(), !r() && i != null && i.loginInfoTip && !sessionStorage.getItem("loginInfoTip") && t();
6751
- }, a = N(!1), s = () => new Promise((i) => {
6739
+ const [{ loginConfig: i }, { platformConfig: l }] = await Promise.all([vf(), gf()]);
6740
+ e(l), l != null && l.browserTitle && localStorage.setItem("browser-title", l.browserTitle || "AIoT智能物联网管控平台"), hs(), !r() && i != null && i.loginInfoTip && !sessionStorage.getItem("loginInfoTip") && t();
6741
+ }, a = M(!1), s = () => new Promise((i) => {
6752
6742
  const l = () => {
6753
6743
  if (a.value) return i();
6754
6744
  setTimeout(() => l(), 50);
@@ -6757,15 +6747,15 @@ const yf = async () => {
6757
6747
  });
6758
6748
  return lt(async () => {
6759
6749
  if (await n(), r()) return;
6760
- await Fc(), await Ic(), await Tc(), await Ef();
6761
- const i = Ze();
6750
+ await kc(), await Dc();
6751
+ const i = Je();
6762
6752
  Da({ accessToken: i }), a.value = !0;
6763
6753
  }), {
6764
6754
  platformInited: a,
6765
6755
  initNextTick: s
6766
6756
  };
6767
- }, If = _n.get("/data/menu-expiration"), S0 = async (r) => {
6768
- const [e, t] = await If().run();
6757
+ }, Af = mn.get("/data/menu-expiration"), S0 = async (r) => {
6758
+ const [e, t] = await Af().run();
6769
6759
  if (e) return { title: "", content: "", decs: [] };
6770
6760
  const n = (r == null ? void 0 : r.expired) ?? !1;
6771
6761
  return {
@@ -6773,7 +6763,7 @@ const yf = async () => {
6773
6763
  content: n ? t.menuExpirationExpiredContent : t.menuExpirationRetrieveContent,
6774
6764
  desc: t.menuExpirationExpiredInfo
6775
6765
  };
6776
- }, Tf = () => {
6766
+ }, Bf = () => {
6777
6767
  const { entryMenu: r } = lr();
6778
6768
  Q.menu.addEventListener("onItemClick", async (e) => {
6779
6769
  var s;
@@ -6782,22 +6772,22 @@ const yf = async () => {
6782
6772
  if (t && !t.routeUrl) return;
6783
6773
  if (!t) {
6784
6774
  const { title: i, content: l, desc: u } = await S0(t);
6785
- await Zt({ title: i, content: l, desc: u });
6775
+ await Jt({ title: i, content: l, desc: u });
6786
6776
  return;
6787
6777
  }
6788
6778
  const a = (((s = De().tabMap) == null ? void 0 : s[e.applicationCode]) ?? []).find((i) => i.code === e.code);
6789
6779
  r(a ? { currentMenu: t, route: { path: a.path, query: a.query ?? {} } } : { currentMenu: t });
6790
6780
  }), Q.menu.addEventListener("toggleCollapse", (e) => {
6791
- const t = Aa.nav.activeItem;
6781
+ const t = Ea.nav.activeItem;
6792
6782
  let n = de().menuCollapses || [];
6793
6783
  e ? n = Array.from(/* @__PURE__ */ new Set([...n, t])) : n = n.filter((a) => a !== t), Qe([{ key: "menuCollapses", value: n }]);
6794
6784
  });
6795
- }, Pf = () => {
6785
+ }, kf = () => {
6796
6786
  const { changeApp: r, deleteApp: e, beforeEntryApp: t } = qt();
6797
6787
  Q.nav.addEventListener("onItemClick", async (a) => {
6798
6788
  const s = de().currentSubAppCode ?? "";
6799
6789
  if (s !== a.code) {
6800
- if (s && Di(s), !a.fixed && !await t(a))
6790
+ if (s && Bi(s), !a.fixed && !await t(a))
6801
6791
  throw new Error(ne("取消切换"));
6802
6792
  r(a);
6803
6793
  }
@@ -6810,8 +6800,8 @@ const yf = async () => {
6810
6800
  });
6811
6801
  const { enter: n } = Lt();
6812
6802
  return Q.nav.addEventListener("fullScreenHandle", n), {};
6813
- }, Rf = () => {
6814
- const r = rr(), e = N(""), t = N(""), n = N("");
6803
+ }, Df = () => {
6804
+ const r = rr(), e = M(""), t = M(""), n = M("");
6815
6805
  let a = "", s = {};
6816
6806
  ke(
6817
6807
  () => r.currentRoute.value,
@@ -6819,7 +6809,7 @@ const yf = async () => {
6819
6809
  var C, w, A, B, E, k, y, b, D, S;
6820
6810
  const g = ((C = p.meta) == null ? void 0 : C.showLayout) ?? !0;
6821
6811
  let x = ((w = p.query) == null ? void 0 : w.showLayout) ?? !0;
6822
- if (x === "false" && (x = !1), !g || !x || p.path === a && Jn(p.query, s)) return;
6812
+ if (x === "false" && (x = !1), !g || !x || p.path === a && Qn(p.query, s)) return;
6823
6813
  a = Yt(p.path), s = Yt(p.query);
6824
6814
  const m = de().currentSubAppCode ?? "";
6825
6815
  if (!m) return;
@@ -6829,7 +6819,7 @@ const yf = async () => {
6829
6819
  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 : "");
6830
6820
  }
6831
6821
  );
6832
- const { deleteApp: i } = qt(), { entryMenu: l } = lr(), { reloadRoute: u, unloadRoute: o } = Pn(), c = (p) => {
6822
+ const { deleteApp: i } = qt(), { entryMenu: l } = lr(), { reloadRoute: u, unloadRoute: o } = Tn(), c = (p) => {
6833
6823
  var f;
6834
6824
  const g = Re(Yr(p.applicationCode)).find((v) => v.code === p.code), m = (((f = De().tabMap) == null ? void 0 : f[p.applicationCode]) ?? []).find((v) => v.code === p.code);
6835
6825
  l({ currentMenu: g, route: { path: m.path, query: m.query ?? {} } });
@@ -6908,12 +6898,12 @@ const yf = async () => {
6908
6898
  return;
6909
6899
  }
6910
6900
  const x = { app: g.applicationCode, menu: g.code }, m = { ...p.query };
6911
- Jn(x, m) || await l({ currentMenu: g }), u([p.path]);
6901
+ Qn(x, m) || await l({ currentMenu: g }), u([p.path]);
6912
6902
  });
6913
6903
  const { enter: h } = Lt();
6914
6904
  return Q.tab.addEventListener("onToggleFullScreen", h), { fontColor: e, backgroudColor: t, borderColor: n };
6915
6905
  }, qt = () => {
6916
- const r = rr(), { entryMenu: e } = lr(), { unloadRoute: t } = Pn();
6906
+ const r = rr(), { entryMenu: e } = lr(), { unloadRoute: t } = Tn();
6917
6907
  let { mainAppName: n = "", microAppName: a = "", microApps: s = [] } = wt();
6918
6908
  !n && a && (s = [{ name: a }]);
6919
6909
  const i = s.map((d) => d.name), l = () => {
@@ -6923,14 +6913,14 @@ const yf = async () => {
6923
6913
  const h = d.code ?? "", g = (de().subAppList ?? []).find((C) => C.code === h);
6924
6914
  let x = [], m = [], f = !1;
6925
6915
  if (g && (x = g.menus ?? []), !x.length) {
6926
- const { menus: C, originalMenus: w, err: A } = await Tn(h);
6916
+ const { menus: C, originalMenus: w, err: A } = await In(h);
6927
6917
  if (A) return !1;
6928
6918
  x = C ?? [], m = w ?? [];
6929
6919
  }
6930
- if (x.length ? er(x) || (await Zt({
6920
+ if (x.length ? er(x) || (await Jt({
6931
6921
  title: ne("提示"),
6932
6922
  content: ne("此应用菜单已过期/已收回/配置有误") + "<br/>" + ne("无法使用")
6933
- }), f = !0) : (await Zt({ title: ne("提示"), content: ne("此应用未配置菜单/无菜单权限") + "<br/>" + ne("无法使用") }), f = !0), f) return !1;
6923
+ }), f = !0) : (await Jt({ title: ne("提示"), content: ne("此应用未配置菜单/无菜单权限") + "<br/>" + ne("无法使用") }), f = !0), f) return !1;
6934
6924
  const v = { ...d, menus: x, originalMenus: m };
6935
6925
  return Qe([{ key: "subAppList", value: v }]), !0;
6936
6926
  }, o = async (d) => {
@@ -6991,7 +6981,7 @@ const yf = async () => {
6991
6981
  currentMenu: E = null,
6992
6982
  microPath: k = "",
6993
6983
  query: y = {}
6994
- } = await hf({ microApp: h, menuCode: p, menuPath: g, route: m });
6984
+ } = await uf({ microApp: h, menuCode: p, menuPath: g, route: m });
6995
6985
  if (E && (m = {
6996
6986
  path: k || `/${E.applicationPath}${E.routeUrl}`.replace(/\/\//g, "/"),
6997
6987
  query: { ...y, app: E.applicationCode, menu: E.code },
@@ -7073,10 +7063,10 @@ const yf = async () => {
7073
7063
  }
7074
7064
  if (!h.subAppList.length) {
7075
7065
  if (Q.menu.setItems([]), Q.tab.setItems([]), location.pathname !== qe && location.pathname !== Rt) {
7076
- const f = Hs.find((v) => v.value === qe);
7066
+ const f = Ls.find((v) => v.value === qe);
7077
7067
  f && c(f);
7078
7068
  }
7079
- bn(), Ua();
7069
+ yn(), Ua();
7080
7070
  }
7081
7071
  }
7082
7072
  };
@@ -7093,7 +7083,7 @@ const yf = async () => {
7093
7083
  if (c === 1)
7094
7084
  if (_ === 1)
7095
7085
  if (i.routeUrl.startsWith(ot)) {
7096
- const x = ms(i.routeUrl, "iframeSrc");
7086
+ const x = gs(i.routeUrl, "iframeSrc");
7097
7087
  if (d = `${ot}-${i.code}`, !r.options.routes.find((m) => m.path === d)) {
7098
7088
  const m = {
7099
7089
  path: d,
@@ -7124,7 +7114,7 @@ const yf = async () => {
7124
7114
  }
7125
7115
  if (c === 2) {
7126
7116
  let x = _ === 1 ? `/${i.applicationPath}${i.routeUrl}`.replace(/\/\//g, "/") : i.routeUrl;
7127
- x = nn(en(tn(x))), me.innerSet ? (d = Na, await r.push({ path: d, query: o }), x && window.open(x, "_blank")) : _ === 1 && (d = x, o = { ...o, showLayout: !1 }, await r.push({
7117
+ x = nn(en(tn(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({
7128
7118
  path: d,
7129
7119
  query: o
7130
7120
  }));
@@ -7172,7 +7162,7 @@ const yf = async () => {
7172
7162
  ]);
7173
7163
  }
7174
7164
  } };
7175
- }, Pn = () => ({ reloadRoute: (t) => {
7165
+ }, Tn = () => ({ reloadRoute: (t) => {
7176
7166
  me.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...me.excludeRoutes, ...t])), me.routeKeepAliveVisible = !1, setTimeout(() => {
7177
7167
  me.routeKeepAliveVisible = !0, me.excludeRoutes = [];
7178
7168
  }, 300);
@@ -7180,8 +7170,8 @@ const yf = async () => {
7180
7170
  me.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...me.excludeRoutes, ...t])), me.routeKeepAliveVisible = !1, setTimeout(() => {
7181
7171
  me.excludeRoutes = [], me.routeKeepAliveVisible = !0;
7182
7172
  }, 100);
7183
- } }), $f = () => {
7184
- const r = Ds(), e = Af(), t = wt(), n = async () => {
7173
+ } }), Sf = () => {
7174
+ const r = ks(), e = _f(), t = wt(), n = async () => {
7185
7175
  const i = {
7186
7176
  logout: "/api/justauth/oauth-server/v1/visitor/logout"
7187
7177
  }, l = location.origin + Rt, u = {
@@ -7190,18 +7180,18 @@ const yf = async () => {
7190
7180
  client_id: "sys",
7191
7181
  state: +/* @__PURE__ */ new Date(),
7192
7182
  redirect_uri: l,
7193
- logout_token: Ze(),
7183
+ logout_token: Je(),
7194
7184
  // 写用户访问日志逻辑配合
7195
7185
  logout: "true"
7196
7186
  };
7197
7187
  t.ssoLocale && (u.locale = "locale");
7198
7188
  const o = Object.keys(u).map((_) => `${_}=${u[_]}`).join("&"), c = `${t.baseURL}${i.logout}?${o}`;
7199
- window.__isAutoCloseApp = !1, location.replace(c), sessionStorage.clear(), localStorage.removeItem("idelTime"), As();
7189
+ window.__isAutoCloseApp = !1, location.replace(c), sessionStorage.clear(), localStorage.removeItem("idelTime"), Es();
7200
7190
  }, { entryApp: a } = qt(), s = async () => {
7201
- 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");
7191
+ const i = "personCenter", u = (de().appcategorys || []).map((h) => h.apps).flat(), { originalMenus: o = [] } = await In(i), _ = Re(o).filter((h) => h.isMenu && h.routeUrl).find((h) => h.routeUrl === "/userInfo");
7202
7192
  if (_ != null && _.disable || _ != null && _.expired) {
7203
7193
  const { title: h, content: p, desc: g } = await S0(_);
7204
- await Zt({ title: h, content: p, desc: g });
7194
+ await Jt({ title: h, content: p, desc: g });
7205
7195
  return;
7206
7196
  }
7207
7197
  const d = u.find((h) => h.code === i);
@@ -7219,22 +7209,22 @@ const yf = async () => {
7219
7209
  $changePwd: r,
7220
7210
  $personSetDialog: e
7221
7211
  };
7222
- }, zf = Sa.get("/convert/tenant"), Of = xn.get("/platform/withdefault"), F0 = () => {
7223
- const r = wt(), e = N(!1), t = N(""), n = N(""), a = () => {
7224
- t.value = hn().id, n.value = ka().tenantId, e.value = !0;
7212
+ }, Ff = Sa.get("/convert/tenant"), If = hn.get("/platform/withdefault"), F0 = () => {
7213
+ const r = wt(), e = M(!1), t = M(""), n = M(""), a = () => {
7214
+ t.value = pn().id, n.value = ka().tenantId, e.value = !0;
7225
7215
  };
7226
7216
  Q.nav.addEventListener("changeEnterpriseHandle", () => {
7227
7217
  a();
7228
7218
  });
7229
7219
  const s = () => {
7230
- ki(), _i(), window.__isAutoCloseApp = !1, location.pathname !== qe && location.pathname !== Rt ? window.location.replace(location.origin + qe) : window.location.reload();
7220
+ Ai(), gi(), window.__isAutoCloseApp = !1, location.pathname !== qe && location.pathname !== Rt ? window.location.replace(location.origin + qe) : window.location.reload();
7231
7221
  };
7232
7222
  return {
7233
7223
  changeEnterprisesVisible: e,
7234
7224
  userId: t,
7235
7225
  tenantId: n,
7236
7226
  changeEnterprise: async (l) => {
7237
- const [u, o] = await zf().run({ tenant: l });
7227
+ const [u, o] = await Ff().run({ tenant: l });
7238
7228
  if (u) return;
7239
7229
  e.value = !1;
7240
7230
  const { access_token: c = "", refresh_token: _ = "", expires_in: d = 0, sub: h = "", name: p = "", flag: g = "", tenant: x = "" } = o, m = {
@@ -7243,19 +7233,19 @@ const yf = async () => {
7243
7233
  refreshToken: _,
7244
7234
  info: o
7245
7235
  };
7246
- ws().save(m), Da(m);
7236
+ bs().save(m), Da(m);
7247
7237
  const f = {
7248
7238
  id: h,
7249
7239
  name: p,
7250
7240
  flag: g,
7251
7241
  tenantId: x
7252
7242
  };
7253
- sessionStorage.setItem("hotentUserInfo", JSON.stringify(f)), ks(c);
7243
+ sessionStorage.setItem("hotentUserInfo", JSON.stringify(f)), Bs(c);
7254
7244
  let v = "";
7255
7245
  if (r != null && r.ssoLocale)
7256
7246
  v = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${l}`;
7257
7247
  else {
7258
- const [C, w] = await Of().run();
7248
+ const [C, w] = await If().run();
7259
7249
  w != null && w.loginHost && (v = `${w.loginHost}/oauth/refreshOauthToken?tenantId=${l}`);
7260
7250
  }
7261
7251
  if (v) {
@@ -7265,7 +7255,7 @@ const yf = async () => {
7265
7255
  s();
7266
7256
  }
7267
7257
  };
7268
- }, Nf = () => {
7258
+ }, Tf = () => {
7269
7259
  const { changeEnterprise: r } = F0();
7270
7260
  Q.nav.addEventListener("onProjectChange", async (e) => {
7271
7261
  const t = Ba();
@@ -7273,10 +7263,10 @@ const yf = async () => {
7273
7263
  const n = t.tenant.id, a = (e == null ? void 0 : e.tenant) ?? "";
7274
7264
  n !== a && await r(a);
7275
7265
  }
7276
- ys((e == null ? void 0 : e.id) || 0), (t == null ? void 0 : t.flag) !== 4 && (window.__isAutoCloseApp = !1, window.location.reload());
7266
+ Cs((e == null ? void 0 : e.id) || 0), (t == null ? void 0 : t.flag) !== 4 && (window.__isAutoCloseApp = !1, window.location.reload());
7277
7267
  });
7278
- }, Mf = () => {
7279
- const r = N(), { entryApp: e } = qt();
7268
+ }, Pf = () => {
7269
+ const r = M(), { entryApp: e } = qt();
7280
7270
  return Q.nav.addEventListener("openAI", () => {
7281
7271
  var n;
7282
7272
  (n = r.value) == null || n.openPanel();
@@ -7292,17 +7282,17 @@ const yf = async () => {
7292
7282
  }
7293
7283
  }
7294
7284
  };
7295
- }, me = wa({
7285
+ }, me = ba({
7296
7286
  /** 菜单或者应用跳转是否通过触发界面调用的 */
7297
7287
  innerSet: !1,
7298
7288
  excludeRoutes: [],
7299
7289
  routeKeepAliveVisible: !0
7300
- }), Lf = async () => {
7301
- const [r, e] = await Rc().run(), t = { instanceInfo: e ?? null };
7302
- return Bi(t), t;
7290
+ }), Rf = async () => {
7291
+ const [r, e] = await Fc().run(), t = { instanceInfo: e ?? null };
7292
+ return Ei(t), t;
7303
7293
  };
7304
7294
  $a("container");
7305
- const Hf = (r) => {
7295
+ const $f = (r) => {
7306
7296
  const { microAppBus: e } = r, t = "/iot/iot/deviceInstance", n = "/iot/iot/statisticalReport", a = (i) => {
7307
7297
  const { menuName: l = "实例" } = i || {};
7308
7298
  e.cors.send("customEventFromMicro", {
@@ -7323,13 +7313,13 @@ const Hf = (r) => {
7323
7313
  }, s = async (i) => {
7324
7314
  const { toPath: l = "", params: u = {} } = i || {};
7325
7315
  let o = "实例", c = !1;
7326
- const { instanceInfo: _ } = await Lf();
7316
+ const { instanceInfo: _ } = await Rf();
7327
7317
  if (_) {
7328
- const g = _s(_.endTime) || _.endTime == 0 || _.endTime === 253370736e6 || _.endTime === "253370736000000" ? "-" : Number(_.endTime);
7318
+ const g = ms(_.endTime) || _.endTime == 0 || _.endTime === 253370736e6 || _.endTime === "253370736000000" ? "-" : Number(_.endTime);
7329
7319
  c = rn().endOf("day") > rn(g).endOf("day"), c || (o = _.instanceName ?? "实例");
7330
7320
  }
7331
7321
  a({ menuName: o });
7332
- const { clickSource: d = "", isFirstEnter: h = !1 } = u, p = Yn(null, { menuCode: "iot.statisticalReport" });
7322
+ const { clickSource: d = "", isFirstEnter: h = !1 } = u, p = Jn(null, { menuCode: "iot.statisticalReport" });
7333
7323
  d === "nav" && h && l.toLowerCase() === t.toLowerCase() && _.id && !c && p && await Zn({
7334
7324
  manual: !0,
7335
7325
  path: n
@@ -7337,13 +7327,13 @@ const Hf = (r) => {
7337
7327
  };
7338
7328
  return be.addEventListenerFromMicroApp("iot:change-instance", (i) => {
7339
7329
  const { instanceInfo: l } = i.data || {};
7340
- a({ menuName: l.instanceName }), Yn(null, { menuCode: "iot.statisticalReport" }) && Zn({
7330
+ a({ menuName: l.instanceName }), Jn(null, { menuCode: "iot.statisticalReport" }) && Zn({
7341
7331
  manual: !0,
7342
7332
  path: n
7343
7333
  });
7344
7334
  }), { routerBeforEnter: s };
7345
- }, un = $a("microApp"), { routerBeforEnter: Uf } = Hf({ microAppBus: un }), jf = () => {
7346
- const { unloadRoute: r } = Pn();
7335
+ }, un = $a("microApp"), { routerBeforEnter: zf } = $f({ microAppBus: un }), Of = () => {
7336
+ const { unloadRoute: r } = Tn();
7347
7337
  un.event.on("unmountPage", (e) => {
7348
7338
  var n;
7349
7339
  const t = (n = e == null ? void 0 : e.urls) != null && n.length ? e.urls : e.url ? Array.isArray(e.url) ? e.url : [e.url] : [];
@@ -7351,40 +7341,40 @@ const Hf = (r) => {
7351
7341
  }), un.event.on("beforeEnter", async (e) => {
7352
7342
  const t = String((e == null ? void 0 : e.toPath) || "").trim().split("?")[0].split("#")[0];
7353
7343
  try {
7354
- t && t.startsWith("/iot/iot") && Uf({ toPath: t, params: e });
7344
+ t && t.startsWith("/iot/iot") && zf({ toPath: t, params: e });
7355
7345
  } catch {
7356
7346
  }
7357
7347
  });
7358
- }, qf = () => {
7348
+ }, Mf = () => {
7359
7349
  be.addEventListenerFromMicroApp("iot:change-instance", (r) => {
7360
7350
  });
7361
- }, Wf = () => {
7351
+ }, Nf = () => {
7362
7352
  be.addEventListenerFromMicroApp("devicePanelShow", (r) => {
7363
7353
  const { deviceId: e = "", panelCode: t = "", deviceName: n = "", x: a = 0, y: s = 0, isCenter: i = !1 } = r.data;
7364
7354
  za(e, t, n, a, s, i);
7365
7355
  }), be.addEventListenerFromMicroApp("closeDevicePanel", (r) => {
7366
- Is();
7356
+ Fs();
7367
7357
  }), be.addEventListenerFromMicroApp("alarmDevicePanelShow", (r) => {
7368
7358
  const { deviceId: e = "", panelCode: t = "", alarmTime: n = "" } = r.data;
7369
- Ts(e, t, n);
7359
+ Is(e, t, n);
7370
7360
  }), be.addEventListenerFromMicroApp("closeAlarmPanel", (r) => {
7371
- Ps();
7361
+ Ts();
7372
7362
  });
7373
- }, Vf = nr.get("/platform/login/pwd-advance-notify-check"), Kf = () => {
7374
- const r = N([]), e = N(null), t = N([]), { entryApp: n } = Jt.hooks.useEntryApp(), a = () => {
7363
+ }, Lf = nr.get("/platform/login/pwd-advance-notify-check"), Hf = () => {
7364
+ const r = M([]), e = M(null), t = M([]), { entryApp: n } = Zt.hooks.useEntryApp(), a = () => {
7375
7365
  var u;
7376
7366
  const l = (((u = de().appcategorys) == null ? void 0 : u.map((o) => o.apps).flat()) ?? []).find((o) => o.code === "messagecenter");
7377
7367
  l && n({ microApp: l });
7378
7368
  }, s = () => {
7379
- e.value = new Cn({
7369
+ e.value = new _n({
7380
7370
  url: "/api/messagecenter/message/v1/innersend",
7381
7371
  reconnectWhenClose: !0,
7382
7372
  opened: async () => {
7383
- await Vf().run();
7373
+ await Lf().run();
7384
7374
  },
7385
7375
  message: async (i) => {
7386
7376
  if (be.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message-notify:message", { msgList: i }), window.self !== window.top) return;
7387
- const u = Je().id;
7377
+ const u = Ze().id;
7388
7378
  r.value = i.filter(
7389
7379
  (o) => o.projectId === u || o.projectId === 0 || o.projectId === "0"
7390
7380
  ), t.value && t.value.length && (t.value.forEach((o) => Qt.close(o)), t.value = []), await gt(), r.value.forEach((o, c) => {
@@ -7396,7 +7386,7 @@ const Hf = (r) => {
7396
7386
  description: Ce("div", {}, [
7397
7387
  // 标题
7398
7388
  Ce("div", { class: "custom-title" }, [
7399
- Ce(Rs, { customSize: 24, iconColor: "#5582f3" }),
7389
+ Ce(Ps, { customSize: 24, iconColor: "#5582f3" }),
7400
7390
  Ce("div", { class: "title" }, o.title)
7401
7391
  ]),
7402
7392
  // 内容
@@ -7420,12 +7410,12 @@ const Hf = (r) => {
7420
7410
  };
7421
7411
  lt(async () => {
7422
7412
  await or(), s();
7423
- }), Mt(() => {
7413
+ }), Nt(() => {
7424
7414
  e.value && e.value.disconnect(), e.value = null;
7425
7415
  });
7426
- }, Gf = "v1", Xf = Et(`/api/enterpriseright/permission/${Gf}`), I0 = Et("/api/device-relation/deviceproject/v1/project/device/video", Jf), Qf = _n.get("/permissionset/user-portal-menu");
7427
- function Jf(r) {
7428
- const e = Je() ? Je().id : 1;
7416
+ }, Uf = "v1", jf = Et(`/api/enterpriseright/permission/${Uf}`), I0 = Et("/api/device-relation/deviceproject/v1/project/device/video", Wf), qf = mn.get("/permissionset/user-portal-menu");
7417
+ function Wf(r) {
7418
+ const e = Ze() ? Ze().id : 1;
7429
7419
  return r.params || (r.params = {}), r.params.project = e, r.params.projectId = e, r;
7430
7420
  }
7431
7421
  function T0(r) {
@@ -7434,13 +7424,13 @@ function T0(r) {
7434
7424
  e.append(t, n);
7435
7425
  return e.toString();
7436
7426
  }
7437
- function xa(r) {
7427
+ function ha(r) {
7438
7428
  return I0.post(`/ptz?${T0(r)}`)().run();
7439
7429
  }
7440
- function Zf(r) {
7430
+ function Vf(r) {
7441
7431
  return I0.post(`/url/preview?${T0(r)}`)().run();
7442
7432
  }
7443
- const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7433
+ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7444
7434
  __name: "GridItem",
7445
7435
  props: {
7446
7436
  active: { type: Boolean },
@@ -7451,7 +7441,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7451
7441
  ts((c) => ({
7452
7442
  "23bfa220": o.value
7453
7443
  }));
7454
- const t = r, n = e, a = N(), { toggle: s, isFullscreen: i } = Lt(a), l = () => {
7444
+ const t = r, n = e, a = M(), { toggle: s, isFullscreen: i } = Lt(a), l = () => {
7455
7445
  a.value != document.fullscreenElement && (i.value ? (i.value = !1, gt(() => {
7456
7446
  s();
7457
7447
  })) : s());
@@ -7474,7 +7464,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7474
7464
  /* CLASS, NEED_HYDRATION */
7475
7465
  ));
7476
7466
  }
7477
- }), tp = /* @__PURE__ */ Le(ep, [["__scopeId", "data-v-68946aef"]]), rp = { class: "layout-wrapper" }, np = /* @__PURE__ */ we({
7467
+ }), Xf = /* @__PURE__ */ Le(Gf, [["__scopeId", "data-v-68946aef"]]), Qf = { class: "layout-wrapper" }, Zf = /* @__PURE__ */ we({
7478
7468
  __name: "GridLayout",
7479
7469
  props: {
7480
7470
  gridNum: {},
@@ -7486,12 +7476,12 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7486
7476
  const t = r, n = e, a = (s) => {
7487
7477
  n("update:activeIndex", s);
7488
7478
  };
7489
- return (s, i) => (Y(), Se("div", rp, [
7479
+ return (s, i) => (Y(), Se("div", Qf, [
7490
7480
  oe(' :active="index === activeIndex" '),
7491
7481
  (Y(!0), Se(
7492
7482
  _t,
7493
7483
  null,
7494
- dn(t.gridNum, (l, u) => (Y(), se(tp, {
7484
+ dn(t.gridNum, (l, u) => (Y(), se(Xf, {
7495
7485
  active: !1,
7496
7486
  "grid-num": t.gridNum,
7497
7487
  onItemClick: (o) => a(u)
@@ -7510,7 +7500,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7510
7500
  ))
7511
7501
  ]));
7512
7502
  }
7513
- }), op = /* @__PURE__ */ Le(np, [["__scopeId", "data-v-22baf4d8"]]), ap = /* @__PURE__ */ we({
7503
+ }), Jf = /* @__PURE__ */ Le(Zf, [["__scopeId", "data-v-22baf4d8"]]), Yf = /* @__PURE__ */ we({
7514
7504
  __name: "DirectionControl",
7515
7505
  emits: ["change"],
7516
7506
  setup(r, { emit: e }) {
@@ -7524,7 +7514,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7524
7514
  onDblclick: s[9] || (s[9] = ve((i) => i.stopPropagation(), ["stop"]))
7525
7515
  },
7526
7516
  [
7527
- J(F(Ae), {
7517
+ Z(F(Ae), {
7528
7518
  content: F(ne)("左上")
7529
7519
  }, {
7530
7520
  default: X(() => [
@@ -7536,7 +7526,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7536
7526
  _: 1
7537
7527
  /* STABLE */
7538
7528
  }, 8, ["content"]),
7539
- J(F(Ae), {
7529
+ Z(F(Ae), {
7540
7530
  content: F(ne)("上")
7541
7531
  }, {
7542
7532
  default: X(() => [
@@ -7548,7 +7538,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7548
7538
  _: 1
7549
7539
  /* STABLE */
7550
7540
  }, 8, ["content"]),
7551
- J(F(Ae), {
7541
+ Z(F(Ae), {
7552
7542
  content: F(ne)("右上")
7553
7543
  }, {
7554
7544
  default: X(() => [
@@ -7560,7 +7550,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7560
7550
  _: 1
7561
7551
  /* STABLE */
7562
7552
  }, 8, ["content"]),
7563
- J(F(Ae), {
7553
+ Z(F(Ae), {
7564
7554
  content: F(ne)("左")
7565
7555
  }, {
7566
7556
  default: X(() => [
@@ -7572,7 +7562,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7572
7562
  _: 1
7573
7563
  /* STABLE */
7574
7564
  }, 8, ["content"]),
7575
- J(F(Ae), {
7565
+ Z(F(Ae), {
7576
7566
  content: F(ne)("自动")
7577
7567
  }, {
7578
7568
  default: X(() => [
@@ -7584,7 +7574,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7584
7574
  _: 1
7585
7575
  /* STABLE */
7586
7576
  }, 8, ["content"]),
7587
- J(F(Ae), {
7577
+ Z(F(Ae), {
7588
7578
  content: F(ne)("右")
7589
7579
  }, {
7590
7580
  default: X(() => [
@@ -7596,7 +7586,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7596
7586
  _: 1
7597
7587
  /* STABLE */
7598
7588
  }, 8, ["content"]),
7599
- J(F(Ae), {
7589
+ Z(F(Ae), {
7600
7590
  content: F(ne)("左下")
7601
7591
  }, {
7602
7592
  default: X(() => [
@@ -7608,7 +7598,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7608
7598
  _: 1
7609
7599
  /* STABLE */
7610
7600
  }, 8, ["content"]),
7611
- J(F(Ae), {
7601
+ Z(F(Ae), {
7612
7602
  content: F(ne)("下")
7613
7603
  }, {
7614
7604
  default: X(() => [
@@ -7620,7 +7610,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7620
7610
  _: 1
7621
7611
  /* STABLE */
7622
7612
  }, 8, ["content"]),
7623
- J(F(Ae), {
7613
+ Z(F(Ae), {
7624
7614
  content: F(ne)("右下")
7625
7615
  }, {
7626
7616
  default: X(() => [
@@ -7637,10 +7627,10 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7637
7627
  /* NEED_HYDRATION */
7638
7628
  ));
7639
7629
  }
7640
- }), sp = /* @__PURE__ */ Le(ap, [["__scopeId", "data-v-83a64a40"]]), ip = { class: "video-wrapper" }, cp = { class: "video-top" }, lp = { class: "video-top_l" }, up = { class: "video-title-wrapper" }, dp = { class: "video-title" }, fp = { class: "video-top_r" }, pp = {
7630
+ }), ep = /* @__PURE__ */ Le(Yf, [["__scopeId", "data-v-83a64a40"]]), tp = { class: "video-wrapper" }, rp = { class: "video-top" }, np = { class: "video-top_l" }, op = { class: "video-title-wrapper" }, ap = { class: "video-title" }, sp = { class: "video-top_r" }, ip = {
7641
7631
  key: 0,
7642
7632
  class: "play-status"
7643
- }, hp = { class: "video-bottom" }, xp = { class: "video-bottom_r" }, vp = /* @__PURE__ */ we({
7633
+ }, cp = { class: "video-bottom" }, lp = { class: "video-bottom_r" }, up = /* @__PURE__ */ we({
7644
7634
  __name: "index",
7645
7635
  props: {
7646
7636
  videoUrl: {},
@@ -7662,17 +7652,17 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7662
7652
  enlarge: import("@das-fed/upf-ui/packages/icons/enlarge"),
7663
7653
  "direction-control": import("@das-fed/upf-ui/packages/icons/direction-control")
7664
7654
  });
7665
- const t = r, n = e, a = N(!0), s = N(), i = N(!1), l = N(), u = je(() => {
7655
+ const t = r, n = e, a = M(!0), s = M(), i = M(!1), l = M(), u = je(() => {
7666
7656
  var v;
7667
7657
  return (v = l.value) == null ? void 0 : v.video;
7668
- }), o = N(!1), c = N(!0), _ = (v) => {
7658
+ }), o = M(!1), c = M(!0), _ = (v) => {
7669
7659
  s.value = v, s.value.on(window.mpegts.Events.ERROR, (C) => {
7670
7660
  });
7671
7661
  }, d = () => {
7672
7662
  a.value = !a.value, s.value && (s.value.muted = a.value);
7673
7663
  }, h = () => {
7674
7664
  i.value = !i.value;
7675
- }, p = N(""), g = () => {
7665
+ }, p = M(""), g = () => {
7676
7666
  const v = document.createElement("canvas");
7677
7667
  if (u.value) {
7678
7668
  v.width = u.value.clientWidth, v.height = u.value.clientHeight;
@@ -7730,29 +7720,29 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7730
7720
  c.value = !0;
7731
7721
  });
7732
7722
  }
7733
- ), (v, C) => (Y(), Se("div", ip, [
7734
- J(F(gn), {
7723
+ ), (v, C) => (Y(), Se("div", tp, [
7724
+ Z(F(vn), {
7735
7725
  spinning: t.loading,
7736
7726
  type: "component",
7737
7727
  tip: "加载中..."
7738
7728
  }, {
7739
7729
  default: X(() => [
7740
- K("div", cp, [
7741
- K("div", lp, [
7742
- K("div", up, [
7730
+ K("div", rp, [
7731
+ K("div", np, [
7732
+ K("div", op, [
7743
7733
  K(
7744
7734
  "div",
7745
- dp,
7735
+ ap,
7746
7736
  pe(t.title.length > 20 ? t.title.slice(0, 19) + "..." : t.title),
7747
7737
  1
7748
7738
  /* TEXT */
7749
7739
  )
7750
7740
  ])
7751
7741
  ]),
7752
- K("div", fp, [
7742
+ K("div", sp, [
7753
7743
  ["live"].includes(v.type) ? (Y(), Se(
7754
7744
  "span",
7755
- pp,
7745
+ ip,
7756
7746
  pe(F(ne)("正在实时预览")),
7757
7747
  1
7758
7748
  /* TEXT */
@@ -7760,7 +7750,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7760
7750
  oe(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
7761
7751
  ])
7762
7752
  ]),
7763
- t.videoUrl && c.value ? (Y(), se(F(zs), {
7753
+ t.videoUrl && c.value ? (Y(), se(F($s), {
7764
7754
  key: 0,
7765
7755
  type: "flv",
7766
7756
  ref_key: "dasLivePlayerRef",
@@ -7769,7 +7759,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7769
7759
  onLoaded: _,
7770
7760
  src: t.videoUrl
7771
7761
  }, null, 8, ["muted", "src"])) : oe("v-if", !0),
7772
- K("div", hp, [
7762
+ K("div", cp, [
7773
7763
  C[3] || (C[3] = K(
7774
7764
  "div",
7775
7765
  { class: "video-bottom_l" },
@@ -7777,7 +7767,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7777
7767
  -1
7778
7768
  /* CACHED */
7779
7769
  )),
7780
- K("div", xp, [
7770
+ K("div", lp, [
7781
7771
  K(
7782
7772
  "div",
7783
7773
  {
@@ -7785,11 +7775,11 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7785
7775
  onDblclick: C[2] || (C[2] = ve((w) => w.stopPropagation(), ["stop"]))
7786
7776
  },
7787
7777
  [
7788
- J(F(Ae), {
7778
+ Z(F(Ae), {
7789
7779
  content: F(ne)("声音")
7790
7780
  }, {
7791
7781
  default: X(() => [
7792
- J(F(vt), {
7782
+ Z(F(vt), {
7793
7783
  class: "icon icon-volume",
7794
7784
  icon: a.value ? "muted" : "volume",
7795
7785
  onClick: ve(d, ["stop"])
@@ -7798,11 +7788,11 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7798
7788
  _: 1
7799
7789
  /* STABLE */
7800
7790
  }, 8, ["content"]),
7801
- J(F(Ae), {
7791
+ Z(F(Ae), {
7802
7792
  content: F(ne)("截图")
7803
7793
  }, {
7804
7794
  default: X(() => [
7805
- J(F(vt), {
7795
+ Z(F(vt), {
7806
7796
  class: "icon icon-screenshot",
7807
7797
  icon: "screenshot",
7808
7798
  onClick: ve(g, ["stop"])
@@ -7862,7 +7852,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7862
7852
  )
7863
7853
  ])
7864
7854
  ]),
7865
- i.value ? (Y(), se(sp, {
7855
+ i.value ? (Y(), se(ep, {
7866
7856
  key: 1,
7867
7857
  onChange: x
7868
7858
  })) : oe("v-if", !0)
@@ -7872,7 +7862,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7872
7862
  }, 8, ["spinning"])
7873
7863
  ]));
7874
7864
  }
7875
- }), gp = /* @__PURE__ */ Le(vp, [["__scopeId", "data-v-30f67b62"]]), mp = /* @__PURE__ */ we({
7865
+ }), dp = /* @__PURE__ */ Le(up, [["__scopeId", "data-v-30f67b62"]]), fp = /* @__PURE__ */ we({
7876
7866
  props: {
7877
7867
  deviceInfo: {
7878
7868
  type: Object,
@@ -7884,18 +7874,18 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7884
7874
  }) {
7885
7875
  const {
7886
7876
  deviceInfo: t
7887
- } = ns(r), n = N(!1), a = N(""), s = async () => {
7877
+ } = ns(r), n = M(!1), a = M(""), s = async () => {
7888
7878
  var c;
7889
7879
  if (!((c = t.value) != null && c.deviceId)) return;
7890
7880
  n.value = !0;
7891
- const [u, o] = await Zf({
7881
+ const [u, o] = await Vf({
7892
7882
  productId: t.value.productId,
7893
7883
  deviceId: t.value.deviceId,
7894
7884
  source: "strategy"
7895
7885
  });
7896
- u || (a.value = Cs(o == null ? void 0 : o.wsFlvStreamURL)), n.value = !1;
7886
+ u || (a.value = _s(o == null ? void 0 : o.wsFlvStreamURL)), n.value = !1;
7897
7887
  }, i = (u) => {
7898
- xa({
7888
+ ha({
7899
7889
  productId: t.value.productId,
7900
7890
  deviceId: t.value.deviceId,
7901
7891
  direction: u,
@@ -7903,7 +7893,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7903
7893
  source: "strategy"
7904
7894
  });
7905
7895
  }, l = (u) => {
7906
- xa({
7896
+ ha({
7907
7897
  productId: t.value.productId,
7908
7898
  deviceId: t.value.deviceId,
7909
7899
  direction: "",
@@ -7917,7 +7907,7 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7917
7907
  s();
7918
7908
  }, {
7919
7909
  deep: !0
7920
- }), () => J(_t, null, [e.default({
7910
+ }), () => Z(_t, null, [e.default({
7921
7911
  videoUrl: a.value,
7922
7912
  loading: n.value,
7923
7913
  onDirectionControl: i,
@@ -7925,13 +7915,13 @@ const Yf = Xf.post("data/device-auth"), ep = /* @__PURE__ */ we({
7925
7915
  })]);
7926
7916
  }
7927
7917
  });
7928
- function _p(r) {
7929
- const e = N(0), t = N(), {
7918
+ function pp(r) {
7919
+ const e = M(0), t = M(), {
7930
7920
  toggle: n,
7931
7921
  isFullscreen: a
7932
7922
  } = Lt(t);
7933
7923
  return {
7934
- render: () => J(op, {
7924
+ render: () => Z(Jf, {
7935
7925
  ref: t,
7936
7926
  gridNum: r.gridNum,
7937
7927
  activeIndex: e.value,
@@ -7942,7 +7932,7 @@ function _p(r) {
7942
7932
  index: i
7943
7933
  }) => {
7944
7934
  const l = r.deviceList[i];
7945
- return J(mp, {
7935
+ return Z(fp, {
7946
7936
  deviceInfo: l
7947
7937
  }, {
7948
7938
  default: ({
@@ -7950,7 +7940,7 @@ function _p(r) {
7950
7940
  onDirectionControl: o,
7951
7941
  onZoomControl: c,
7952
7942
  loading: _
7953
- }) => J(gp, {
7943
+ }) => Z(dp, {
7954
7944
  type: "live",
7955
7945
  loading: _,
7956
7946
  videoUrl: u,
@@ -7965,7 +7955,7 @@ function _p(r) {
7965
7955
  toggleFullscreen: n
7966
7956
  };
7967
7957
  }
7968
- const Cp = /* @__PURE__ */ we({
7958
+ const hp = /* @__PURE__ */ we({
7969
7959
  __name: "index",
7970
7960
  props: {
7971
7961
  deviceList: { default: () => [] },
@@ -7976,7 +7966,7 @@ const Cp = /* @__PURE__ */ we({
7976
7966
  Oa({
7977
7967
  fullscreen2: import("@das-fed/upf-ui/packages/icons/fullscreen-2")
7978
7968
  });
7979
- const e = r, t = N(!0), { render: n, toggleFullscreen: a } = _p(e), s = je(() => {
7969
+ const e = r, t = M(!0), { render: n, toggleFullscreen: a } = pp(e), s = je(() => {
7980
7970
  let i = {};
7981
7971
  switch (e.gridNum) {
7982
7972
  case 1:
@@ -7991,7 +7981,7 @@ const Cp = /* @__PURE__ */ we({
7991
7981
  }
7992
7982
  return i;
7993
7983
  });
7994
- return (i, l) => (Y(), se(F(mn), {
7984
+ return (i, l) => (Y(), se(F(gn), {
7995
7985
  size: "mini",
7996
7986
  title: F(ne)("视频监控"),
7997
7987
  "custom-class": `das-linakge-video-dialog ${s.value}`,
@@ -8012,11 +8002,11 @@ const Cp = /* @__PURE__ */ we({
8012
8002
  1
8013
8003
  /* TEXT */
8014
8004
  ),
8015
- J(F(Ae), {
8005
+ Z(F(Ae), {
8016
8006
  content: F(ne)("页面全屏")
8017
8007
  }, {
8018
8008
  default: X(() => [
8019
- J(F(vt), {
8009
+ Z(F(vt), {
8020
8010
  class: "icon",
8021
8011
  icon: "fullscreen2",
8022
8012
  iconColor: "#999",
@@ -8034,27 +8024,27 @@ const Cp = /* @__PURE__ */ we({
8034
8024
  /* STABLE */
8035
8025
  }, 8, ["title", "custom-class", "modelValue", "onClosed"]));
8036
8026
  }
8037
- }), yp = (r) => {
8027
+ }), xp = (r) => {
8038
8028
  const { gridNum: e = 4, deviceList: t = [] } = r;
8039
8029
  return new Promise((n) => {
8040
8030
  let a = document.body.querySelector("#video-dialog-container");
8041
8031
  a && (Tt(null, a), document.body.removeChild(a)), a = document.createElement("div"), a.setAttribute("id", "video-dialog-container"), document.body.appendChild(a);
8042
- const i = Ce(Cp, { gridNum: e, deviceList: t, closeCallback: () => {
8032
+ const i = Ce(hp, { gridNum: e, deviceList: t, closeCallback: () => {
8043
8033
  Tt(null, a), document.body.removeChild(a), n(null);
8044
8034
  } });
8045
8035
  Tt(i, a);
8046
8036
  });
8047
- }, bp = () => {
8048
- const r = N(4), e = N([]), t = N(null), n = async (s) => {
8049
- const [i, l] = await Yf(s).run();
8037
+ }, vp = () => {
8038
+ const r = M(4), e = M([]), t = M(null), n = async (s) => {
8039
+ const [i, l] = await Kf(s).run();
8050
8040
  if (!i)
8051
8041
  return l;
8052
8042
  }, a = async () => {
8053
- const s = Je().id, [i, l] = await Qf().run({
8043
+ const s = Ze().id, [i, l] = await qf().run({
8054
8044
  code: "strategy",
8055
8045
  showBtn: !1
8056
8046
  });
8057
- i || !l || !l.length || !l.find((o) => o.code === "strategy.linkageModel") || t.value || (t.value = new Cn({
8047
+ i || !l || !l.length || !l.find((o) => o.code === "strategy.linkageModel") || t.value || (t.value = new _n({
8058
8048
  url: "/api/strategy/linkage-strategy/v1/video-popup/subscribe",
8059
8049
  params: { project: s },
8060
8050
  message: async (o) => {
@@ -8076,14 +8066,14 @@ const Cp = /* @__PURE__ */ we({
8076
8066
  show: !!g
8077
8067
  };
8078
8068
  });
8079
- e.value = h.filter((p) => !!p.show), (c = e.value) != null && c.length && yp({ gridNum: r.value, deviceList: e.value });
8069
+ e.value = h.filter((p) => !!p.show), (c = e.value) != null && c.length && xp({ gridNum: r.value, deviceList: e.value });
8080
8070
  }
8081
8071
  }
8082
8072
  }));
8083
8073
  };
8084
8074
  return lt(async () => {
8085
8075
  await or(), a();
8086
- }), Mt(() => {
8076
+ }), Nt(() => {
8087
8077
  t.value && t.value.disconnect(), t.value = null;
8088
8078
  }), {
8089
8079
  gridNum: r,
@@ -8103,7 +8093,7 @@ class at extends Error {
8103
8093
  super(`${e}: Status code '${t}'`), this.statusCode = t, this.__proto__ = n;
8104
8094
  }
8105
8095
  }
8106
- class Rn extends Error {
8096
+ class Pn extends Error {
8107
8097
  /** Constructs a new instance of {@link @microsoft/signalr.TimeoutError}.
8108
8098
  *
8109
8099
  * @param {string} errorMessage A descriptive error message.
@@ -8123,7 +8113,7 @@ class Oe extends Error {
8123
8113
  super(e), this.__proto__ = t;
8124
8114
  }
8125
8115
  }
8126
- class wp extends Error {
8116
+ class gp extends Error {
8127
8117
  /** Constructs a new instance of {@link @microsoft/signalr.UnsupportedTransportError}.
8128
8118
  *
8129
8119
  * @param {string} message A descriptive error message.
@@ -8134,7 +8124,7 @@ class wp extends Error {
8134
8124
  super(e), this.transport = t, this.errorType = "UnsupportedTransportError", this.__proto__ = n;
8135
8125
  }
8136
8126
  }
8137
- class Ep extends Error {
8127
+ class mp extends Error {
8138
8128
  /** Constructs a new instance of {@link @microsoft/signalr.DisabledTransportError}.
8139
8129
  *
8140
8130
  * @param {string} message A descriptive error message.
@@ -8145,7 +8135,7 @@ class Ep extends Error {
8145
8135
  super(e), this.transport = t, this.errorType = "DisabledTransportError", this.__proto__ = n;
8146
8136
  }
8147
8137
  }
8148
- class Ap extends Error {
8138
+ class _p extends Error {
8149
8139
  /** Constructs a new instance of {@link @microsoft/signalr.FailedToStartTransportError}.
8150
8140
  *
8151
8141
  * @param {string} message A descriptive error message.
@@ -8156,7 +8146,7 @@ class Ap extends Error {
8156
8146
  super(e), this.transport = t, this.errorType = "FailedToStartTransportError", this.__proto__ = n;
8157
8147
  }
8158
8148
  }
8159
- class va extends Error {
8149
+ class xa extends Error {
8160
8150
  /** Constructs a new instance of {@link @microsoft/signalr.FailedToNegotiateWithServerError}.
8161
8151
  *
8162
8152
  * @param {string} message A descriptive error message.
@@ -8166,7 +8156,7 @@ class va extends Error {
8166
8156
  super(e), this.errorType = "FailedToNegotiateWithServerError", this.__proto__ = t;
8167
8157
  }
8168
8158
  }
8169
- class Bp extends Error {
8159
+ class Cp extends Error {
8170
8160
  /** Constructs a new instance of {@link @microsoft/signalr.AggregateErrors}.
8171
8161
  *
8172
8162
  * @param {string} message A descriptive error message.
@@ -8227,7 +8217,7 @@ class Ot {
8227
8217
  }
8228
8218
  }
8229
8219
  Ot.instance = new Ot();
8230
- const kp = "8.0.7";
8220
+ const yp = "8.0.7";
8231
8221
  class xe {
8232
8222
  static isRequired(e, t) {
8233
8223
  if (e == null)
@@ -8261,11 +8251,11 @@ class fe {
8261
8251
  return typeof process < "u" && process.release && process.release.name === "node";
8262
8252
  }
8263
8253
  }
8264
- function Nt(r, e) {
8254
+ function Mt(r, e) {
8265
8255
  let t = "";
8266
- return ct(r) ? (t = `Binary data of length ${r.byteLength}`, e && (t += `. Content: '${Dp(r)}'`)) : typeof r == "string" && (t = `String data of length ${r.length}`, e && (t += `. Content: '${r}'`)), t;
8256
+ return ct(r) ? (t = `Binary data of length ${r.byteLength}`, e && (t += `. Content: '${bp(r)}'`)) : typeof r == "string" && (t = `String data of length ${r.length}`, e && (t += `. Content: '${r}'`)), t;
8267
8257
  }
8268
- function Dp(r) {
8258
+ function bp(r) {
8269
8259
  const e = new Uint8Array(r);
8270
8260
  let t = "";
8271
8261
  return e.forEach((n) => {
@@ -8279,7 +8269,7 @@ function ct(r) {
8279
8269
  }
8280
8270
  async function R0(r, e, t, n, a, s) {
8281
8271
  const i = {}, [l, u] = bt();
8282
- i[l] = u, r.log(I.Trace, `(${e} transport) sending data. ${Nt(a, s.logMessageContent)}.`);
8272
+ i[l] = u, r.log(I.Trace, `(${e} transport) sending data. ${Mt(a, s.logMessageContent)}.`);
8283
8273
  const o = ct(a) ? "arraybuffer" : "text", c = await t.post(n, {
8284
8274
  content: a,
8285
8275
  headers: { ...i, ...s.headers },
@@ -8289,10 +8279,10 @@ async function R0(r, e, t, n, a, s) {
8289
8279
  });
8290
8280
  r.log(I.Trace, `(${e} transport) request complete. Response status: ${c.statusCode}.`);
8291
8281
  }
8292
- function Sp(r) {
8282
+ function wp(r) {
8293
8283
  return r === void 0 ? new tr(I.Information) : r === null ? Ot.instance : r.log !== void 0 ? r : new tr(r);
8294
8284
  }
8295
- class Fp {
8285
+ class Ep {
8296
8286
  constructor(e, t) {
8297
8287
  this._subject = e, this._observer = t;
8298
8288
  }
@@ -8329,14 +8319,14 @@ class tr {
8329
8319
  }
8330
8320
  function bt() {
8331
8321
  let r = "X-SignalR-User-Agent";
8332
- return fe.isNode && (r = "User-Agent"), [r, Ip(kp, Tp(), Rp(), Pp())];
8322
+ return fe.isNode && (r = "User-Agent"), [r, Ap(yp, Bp(), Dp(), kp())];
8333
8323
  }
8334
- function Ip(r, e, t, n) {
8324
+ function Ap(r, e, t, n) {
8335
8325
  let a = "Microsoft SignalR/";
8336
8326
  const s = r.split(".");
8337
8327
  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;
8338
8328
  }
8339
- function Tp() {
8329
+ function Bp() {
8340
8330
  if (fe.isNode)
8341
8331
  switch (process.platform) {
8342
8332
  case "win32":
@@ -8351,17 +8341,17 @@ function Tp() {
8351
8341
  else
8352
8342
  return "";
8353
8343
  }
8354
- function Pp() {
8344
+ function kp() {
8355
8345
  if (fe.isNode)
8356
8346
  return process.versions.node;
8357
8347
  }
8358
- function Rp() {
8348
+ function Dp() {
8359
8349
  return fe.isNode ? "NodeJS" : "Browser";
8360
8350
  }
8361
- function Jr(r) {
8351
+ function Zr(r) {
8362
8352
  return r.stack ? r.stack : r.message ? r.message : `${r}`;
8363
8353
  }
8364
- function $p() {
8354
+ function Sp() {
8365
8355
  if (typeof globalThis < "u")
8366
8356
  return globalThis;
8367
8357
  if (typeof self < "u")
@@ -8372,13 +8362,13 @@ function $p() {
8372
8362
  return global;
8373
8363
  throw new Error("could not find global");
8374
8364
  }
8375
- class zp extends ur {
8365
+ class Fp extends ur {
8376
8366
  constructor(e) {
8377
8367
  if (super(), this._logger = e, typeof fetch > "u" || fe.isNode) {
8378
8368
  const t = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
8379
8369
  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);
8380
8370
  } else
8381
- this._fetchType = fetch.bind($p());
8371
+ this._fetchType = fetch.bind(Sp());
8382
8372
  if (typeof AbortController > "u") {
8383
8373
  const t = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
8384
8374
  this._abortControllerType = t("abort-controller");
@@ -8402,7 +8392,7 @@ class zp extends ur {
8402
8392
  if (e.timeout) {
8403
8393
  const u = e.timeout;
8404
8394
  a = setTimeout(() => {
8405
- t.abort(), this._logger.log(I.Warning, "Timeout from HTTP request."), n = new Rn();
8395
+ t.abort(), this._logger.log(I.Warning, "Timeout from HTTP request."), n = new Pn();
8406
8396
  }, u);
8407
8397
  }
8408
8398
  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");
@@ -8427,10 +8417,10 @@ class zp extends ur {
8427
8417
  a && clearTimeout(a), e.abortSignal && (e.abortSignal.onabort = null);
8428
8418
  }
8429
8419
  if (!s.ok) {
8430
- const u = await ga(s, "text");
8420
+ const u = await va(s, "text");
8431
8421
  throw new at(u || s.statusText, s.status);
8432
8422
  }
8433
- const l = await ga(s, e.responseType);
8423
+ const l = await va(s, e.responseType);
8434
8424
  return new P0(s.status, s.statusText, l);
8435
8425
  }
8436
8426
  getCookieString(e) {
@@ -8438,7 +8428,7 @@ class zp extends ur {
8438
8428
  return fe.isNode && this._jar && this._jar.getCookies(e, (n, a) => t = a.join("; ")), t;
8439
8429
  }
8440
8430
  }
8441
- function ga(r, e) {
8431
+ function va(r, e) {
8442
8432
  let t;
8443
8433
  switch (e) {
8444
8434
  case "arraybuffer":
@@ -8457,7 +8447,7 @@ function ga(r, e) {
8457
8447
  }
8458
8448
  return t;
8459
8449
  }
8460
- class Op extends ur {
8450
+ class Ip extends ur {
8461
8451
  constructor(e) {
8462
8452
  super(), this._logger = e;
8463
8453
  }
@@ -8476,18 +8466,18 @@ class Op extends ur {
8476
8466
  }, a.onerror = () => {
8477
8467
  this._logger.log(I.Warning, `Error from HTTP request. ${a.status}: ${a.statusText}.`), n(new at(a.statusText, a.status));
8478
8468
  }, a.ontimeout = () => {
8479
- this._logger.log(I.Warning, "Timeout from HTTP request."), n(new Rn());
8469
+ this._logger.log(I.Warning, "Timeout from HTTP request."), n(new Pn());
8480
8470
  }, a.send(e.content);
8481
8471
  }) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
8482
8472
  }
8483
8473
  }
8484
- class Np extends ur {
8474
+ class Tp extends ur {
8485
8475
  /** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
8486
8476
  constructor(e) {
8487
8477
  if (super(), typeof fetch < "u" || fe.isNode)
8488
- this._httpClient = new zp(e);
8478
+ this._httpClient = new Fp(e);
8489
8479
  else if (typeof XMLHttpRequest < "u")
8490
- this._httpClient = new Op(e);
8480
+ this._httpClient = new Ip(e);
8491
8481
  else
8492
8482
  throw new Error("No usable HttpClient found.");
8493
8483
  }
@@ -8512,7 +8502,7 @@ class Te {
8512
8502
  }
8513
8503
  Te.RecordSeparatorCode = 30;
8514
8504
  Te.RecordSeparator = String.fromCharCode(Te.RecordSeparatorCode);
8515
- class Mp {
8505
+ class Pp {
8516
8506
  // Handshake request is always JSON
8517
8507
  writeHandshakeRequest(e) {
8518
8508
  return Te.write(JSON.stringify(e));
@@ -8538,11 +8528,11 @@ class Mp {
8538
8528
  return [n, s];
8539
8529
  }
8540
8530
  }
8541
- var Z;
8531
+ var J;
8542
8532
  (function(r) {
8543
8533
  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";
8544
- })(Z || (Z = {}));
8545
- class Lp {
8534
+ })(J || (J = {}));
8535
+ class Rp {
8546
8536
  constructor() {
8547
8537
  this.observers = [];
8548
8538
  }
@@ -8559,10 +8549,10 @@ class Lp {
8559
8549
  e.complete && e.complete();
8560
8550
  }
8561
8551
  subscribe(e) {
8562
- return this.observers.push(e), new Fp(this, e);
8552
+ return this.observers.push(e), new Ep(this, e);
8563
8553
  }
8564
8554
  }
8565
- class Hp {
8555
+ class $p {
8566
8556
  constructor(e, t, n) {
8567
8557
  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;
8568
8558
  }
@@ -8576,7 +8566,7 @@ class Hp {
8576
8566
  };
8577
8567
  ct(t) ? this._bufferedByteCount += t.byteLength : this._bufferedByteCount += t.length, this._bufferedByteCount >= this._bufferSize && (n = new Promise((i, l) => {
8578
8568
  a = i, s = l;
8579
- })), this._messages.push(new Up(t, this._totalMessageCount, a, s));
8569
+ })), this._messages.push(new zp(t, this._totalMessageCount, a, s));
8580
8570
  }
8581
8571
  try {
8582
8572
  this._reconnectInProgress || await this._connection.send(t);
@@ -8600,7 +8590,7 @@ class Hp {
8600
8590
  }
8601
8591
  _shouldProcessMessage(e) {
8602
8592
  if (this._waitForSequenceMessage)
8603
- return e.type !== Z.Sequence ? !1 : (this._waitForSequenceMessage = !1, !0);
8593
+ return e.type !== J.Sequence ? !1 : (this._waitForSequenceMessage = !1, !0);
8604
8594
  if (!this._isInvocationMessage(e))
8605
8595
  return !0;
8606
8596
  const t = this._nextReceivingSequenceId;
@@ -8618,7 +8608,7 @@ class Hp {
8618
8608
  }
8619
8609
  async _resend() {
8620
8610
  const e = this._messages.length !== 0 ? this._messages[0]._id : this._totalMessageCount + 1;
8621
- await this._connection.send(this._protocol.writeMessage({ type: Z.Sequence, sequenceId: e }));
8611
+ await this._connection.send(this._protocol.writeMessage({ type: J.Sequence, sequenceId: e }));
8622
8612
  const t = this._messages;
8623
8613
  for (const n of t)
8624
8614
  await this._connection.send(n._message);
@@ -8631,52 +8621,52 @@ class Hp {
8631
8621
  }
8632
8622
  _isInvocationMessage(e) {
8633
8623
  switch (e.type) {
8634
- case Z.Invocation:
8635
- case Z.StreamItem:
8636
- case Z.Completion:
8637
- case Z.StreamInvocation:
8638
- case Z.CancelInvocation:
8624
+ case J.Invocation:
8625
+ case J.StreamItem:
8626
+ case J.Completion:
8627
+ case J.StreamInvocation:
8628
+ case J.CancelInvocation:
8639
8629
  return !0;
8640
- case Z.Close:
8641
- case Z.Sequence:
8642
- case Z.Ping:
8643
- case Z.Ack:
8630
+ case J.Close:
8631
+ case J.Sequence:
8632
+ case J.Ping:
8633
+ case J.Ack:
8644
8634
  return !1;
8645
8635
  }
8646
8636
  }
8647
8637
  _ackTimer() {
8648
8638
  this._ackTimerHandle === void 0 && (this._ackTimerHandle = setTimeout(async () => {
8649
8639
  try {
8650
- this._reconnectInProgress || await this._connection.send(this._protocol.writeMessage({ type: Z.Ack, sequenceId: this._latestReceivedSequenceId }));
8640
+ this._reconnectInProgress || await this._connection.send(this._protocol.writeMessage({ type: J.Ack, sequenceId: this._latestReceivedSequenceId }));
8651
8641
  } catch {
8652
8642
  }
8653
8643
  clearTimeout(this._ackTimerHandle), this._ackTimerHandle = void 0;
8654
8644
  }, 1e3));
8655
8645
  }
8656
8646
  }
8657
- class Up {
8647
+ class zp {
8658
8648
  constructor(e, t, n, a) {
8659
8649
  this._message = e, this._id = t, this._resolver = n, this._rejector = a;
8660
8650
  }
8661
8651
  }
8662
- const jp = 30 * 1e3, qp = 15 * 1e3, Wp = 1e5;
8652
+ const Op = 30 * 1e3, Mp = 15 * 1e3, Np = 1e5;
8663
8653
  var ue;
8664
8654
  (function(r) {
8665
8655
  r.Disconnected = "Disconnected", r.Connecting = "Connecting", r.Connected = "Connected", r.Disconnecting = "Disconnecting", r.Reconnecting = "Reconnecting";
8666
8656
  })(ue || (ue = {}));
8667
- class $n {
8657
+ class Rn {
8668
8658
  /** @internal */
8669
8659
  // Using a public static factory method means we can have a private constructor and an _internal_
8670
8660
  // create method that can be used by HubConnectionBuilder. An "internal" constructor would just
8671
8661
  // be stripped away and the '.d.ts' file would have no constructor, which is interpreted as a
8672
8662
  // public parameter-less constructor.
8673
8663
  static create(e, t, n, a, s, i, l) {
8674
- return new $n(e, t, n, a, s, i, l);
8664
+ return new Rn(e, t, n, a, s, i, l);
8675
8665
  }
8676
8666
  constructor(e, t, n, a, s, i, l) {
8677
8667
  this._nextKeepAlive = 0, this._freezeEventListener = () => {
8678
8668
  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");
8679
- }, xe.isRequired(e, "connection"), xe.isRequired(t, "logger"), xe.isRequired(n, "protocol"), this.serverTimeoutInMilliseconds = s ?? jp, this.keepAliveIntervalInMilliseconds = i ?? qp, this._statefulReconnectBufferSize = l ?? Wp, this._logger = t, this._protocol = n, this.connection = e, this._reconnectPolicy = a, this._handshakeProtocol = new Mp(), 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: Z.Ping });
8669
+ }, xe.isRequired(e, "connection"), xe.isRequired(t, "logger"), xe.isRequired(n, "protocol"), this.serverTimeoutInMilliseconds = s ?? Op, this.keepAliveIntervalInMilliseconds = i ?? Mp, this._statefulReconnectBufferSize = l ?? Np, this._logger = t, this._protocol = n, this.connection = e, this._reconnectPolicy = a, this._handshakeProtocol = new Pp(), 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: J.Ping });
8680
8670
  }
8681
8671
  /** Indicates the state of the {@link HubConnection} to the server. */
8682
8672
  get state() {
@@ -8736,7 +8726,7 @@ class $n {
8736
8726
  };
8737
8727
  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)
8738
8728
  throw this._stopDuringStartError;
8739
- (this.connection.features.reconnect || !1) && (this._messageBuffer = new Hp(this._protocol, this.connection, this._statefulReconnectBufferSize), this.connection.features.disconnected = this._messageBuffer._disconnected.bind(this._messageBuffer), this.connection.features.resend = () => {
8729
+ (this.connection.features.reconnect || !1) && (this._messageBuffer = new $p(this._protocol, this.connection, this._statefulReconnectBufferSize), this.connection.features.disconnected = this._messageBuffer._disconnected.bind(this._messageBuffer), this.connection.features.resend = () => {
8740
8730
  if (this._messageBuffer)
8741
8731
  return this._messageBuffer._resend();
8742
8732
  }), this.connection.features.inherentKeepAlive || await this._sendMessage(this._cachedPingMessage);
@@ -8780,7 +8770,7 @@ class $n {
8780
8770
  stream(e, ...t) {
8781
8771
  const [n, a] = this._replaceStreamingParams(t), s = this._createStreamInvocation(e, t, a);
8782
8772
  let i;
8783
- const l = new Lp();
8773
+ const l = new Rp();
8784
8774
  return l.cancelCallback = () => {
8785
8775
  const u = this._createCancelInvocation(s.invocationId);
8786
8776
  return delete this._callbacks[s.invocationId], i.then(() => this._sendWithProtocol(u));
@@ -8788,7 +8778,7 @@ class $n {
8788
8778
  if (o) {
8789
8779
  l.error(o);
8790
8780
  return;
8791
- } else u && (u.type === Z.Completion ? u.error ? l.error(new Error(u.error)) : l.complete() : l.next(u.item));
8781
+ } else u && (u.type === J.Completion ? u.error ? l.error(new Error(u.error)) : l.complete() : l.next(u.item));
8792
8782
  }, i = this._sendWithProtocol(s).catch((u) => {
8793
8783
  l.error(u), delete this._callbacks[s.invocationId];
8794
8784
  }), this._launchStreams(n, i), l;
@@ -8834,7 +8824,7 @@ class $n {
8834
8824
  if (_) {
8835
8825
  u(_);
8836
8826
  return;
8837
- } else c && (c.type === Z.Completion ? c.error ? u(new Error(c.error)) : l(c.result) : u(new Error(`Unexpected message type: ${c.type}`)));
8827
+ } else c && (c.type === J.Completion ? c.error ? u(new Error(c.error)) : l(c.result) : u(new Error(`Unexpected message type: ${c.type}`)));
8838
8828
  };
8839
8829
  const o = this._sendWithProtocol(s).catch((c) => {
8840
8830
  u(c), delete this._callbacks[s.invocationId];
@@ -8884,36 +8874,36 @@ class $n {
8884
8874
  for (const n of t)
8885
8875
  if (!(this._messageBuffer && !this._messageBuffer._shouldProcessMessage(n)))
8886
8876
  switch (n.type) {
8887
- case Z.Invocation:
8877
+ case J.Invocation:
8888
8878
  this._invokeClientMethod(n).catch((a) => {
8889
- this._logger.log(I.Error, `Invoke client method threw error: ${Jr(a)}`);
8879
+ this._logger.log(I.Error, `Invoke client method threw error: ${Zr(a)}`);
8890
8880
  });
8891
8881
  break;
8892
- case Z.StreamItem:
8893
- case Z.Completion: {
8882
+ case J.StreamItem:
8883
+ case J.Completion: {
8894
8884
  const a = this._callbacks[n.invocationId];
8895
8885
  if (a) {
8896
- n.type === Z.Completion && delete this._callbacks[n.invocationId];
8886
+ n.type === J.Completion && delete this._callbacks[n.invocationId];
8897
8887
  try {
8898
8888
  a(n);
8899
8889
  } catch (s) {
8900
- this._logger.log(I.Error, `Stream callback threw error: ${Jr(s)}`);
8890
+ this._logger.log(I.Error, `Stream callback threw error: ${Zr(s)}`);
8901
8891
  }
8902
8892
  }
8903
8893
  break;
8904
8894
  }
8905
- case Z.Ping:
8895
+ case J.Ping:
8906
8896
  break;
8907
- case Z.Close: {
8897
+ case J.Close: {
8908
8898
  this._logger.log(I.Information, "Close message received from server.");
8909
8899
  const a = n.error ? new Error("Server returned an error on close: " + n.error) : void 0;
8910
8900
  n.allowReconnect === !0 ? this.connection.stop(a) : this._stopPromise = this._stopInternal(a);
8911
8901
  break;
8912
8902
  }
8913
- case Z.Ack:
8903
+ case J.Ack:
8914
8904
  this._messageBuffer && this._messageBuffer._ack(n);
8915
8905
  break;
8916
- case Z.Sequence:
8906
+ case J.Sequence:
8917
8907
  this._messageBuffer && this._messageBuffer._resetSequence(n);
8918
8908
  break;
8919
8909
  default:
@@ -9053,7 +9043,7 @@ class $n {
9053
9043
  try {
9054
9044
  a(null, e);
9055
9045
  } catch (s) {
9056
- this._logger.log(I.Error, `Stream 'error' callback called with '${e}' threw error: ${Jr(s)}`);
9046
+ this._logger.log(I.Error, `Stream 'error' callback called with '${e}' threw error: ${Zr(s)}`);
9057
9047
  }
9058
9048
  });
9059
9049
  }
@@ -9069,11 +9059,11 @@ class $n {
9069
9059
  arguments: t,
9070
9060
  streamIds: a,
9071
9061
  target: e,
9072
- type: Z.Invocation
9062
+ type: J.Invocation
9073
9063
  } : {
9074
9064
  arguments: t,
9075
9065
  target: e,
9076
- type: Z.Invocation
9066
+ type: J.Invocation
9077
9067
  };
9078
9068
  {
9079
9069
  const s = this._invocationId;
@@ -9082,12 +9072,12 @@ class $n {
9082
9072
  invocationId: s.toString(),
9083
9073
  streamIds: a,
9084
9074
  target: e,
9085
- type: Z.Invocation
9075
+ type: J.Invocation
9086
9076
  } : {
9087
9077
  arguments: t,
9088
9078
  invocationId: s.toString(),
9089
9079
  target: e,
9090
- type: Z.Invocation
9080
+ type: J.Invocation
9091
9081
  };
9092
9082
  }
9093
9083
  }
@@ -9130,46 +9120,46 @@ class $n {
9130
9120
  invocationId: a.toString(),
9131
9121
  streamIds: n,
9132
9122
  target: e,
9133
- type: Z.StreamInvocation
9123
+ type: J.StreamInvocation
9134
9124
  } : {
9135
9125
  arguments: t,
9136
9126
  invocationId: a.toString(),
9137
9127
  target: e,
9138
- type: Z.StreamInvocation
9128
+ type: J.StreamInvocation
9139
9129
  };
9140
9130
  }
9141
9131
  _createCancelInvocation(e) {
9142
9132
  return {
9143
9133
  invocationId: e,
9144
- type: Z.CancelInvocation
9134
+ type: J.CancelInvocation
9145
9135
  };
9146
9136
  }
9147
9137
  _createStreamItemMessage(e, t) {
9148
9138
  return {
9149
9139
  invocationId: e,
9150
9140
  item: t,
9151
- type: Z.StreamItem
9141
+ type: J.StreamItem
9152
9142
  };
9153
9143
  }
9154
9144
  _createCompletionMessage(e, t, n) {
9155
9145
  return t ? {
9156
9146
  error: t,
9157
9147
  invocationId: e,
9158
- type: Z.Completion
9148
+ type: J.Completion
9159
9149
  } : {
9160
9150
  invocationId: e,
9161
9151
  result: n,
9162
- type: Z.Completion
9152
+ type: J.Completion
9163
9153
  };
9164
9154
  }
9165
9155
  _createCloseMessage() {
9166
- return { type: Z.Close };
9156
+ return { type: J.Close };
9167
9157
  }
9168
9158
  }
9169
- const Vp = [0, 2e3, 1e4, 3e4, null];
9170
- class ma {
9159
+ const Lp = [0, 2e3, 1e4, 3e4, null];
9160
+ class ga {
9171
9161
  constructor(e) {
9172
- this._retryDelays = e !== void 0 ? [...e, null] : Vp;
9162
+ this._retryDelays = e !== void 0 ? [...e, null] : Lp;
9173
9163
  }
9174
9164
  nextRetryDelayInMilliseconds(e) {
9175
9165
  return this._retryDelays[e.previousRetryCount];
@@ -9179,7 +9169,7 @@ class st {
9179
9169
  }
9180
9170
  st.Authorization = "Authorization";
9181
9171
  st.Cookie = "Cookie";
9182
- class Kp extends ur {
9172
+ class Hp extends ur {
9183
9173
  constructor(e, t) {
9184
9174
  super(), this._innerClient = e, this._accessTokenFactory = t;
9185
9175
  }
@@ -9204,7 +9194,7 @@ var ye;
9204
9194
  (function(r) {
9205
9195
  r[r.Text = 1] = "Text", r[r.Binary = 2] = "Binary";
9206
9196
  })(ye || (ye = {}));
9207
- let Gp = class {
9197
+ let Up = class {
9208
9198
  constructor() {
9209
9199
  this._isAborted = !1, this.onabort = null;
9210
9200
  }
@@ -9218,13 +9208,13 @@ let Gp = class {
9218
9208
  return this._isAborted;
9219
9209
  }
9220
9210
  };
9221
- class _a {
9211
+ class ma {
9222
9212
  // This is an internal type, not exported from 'index' so this is really just internal.
9223
9213
  get pollAborted() {
9224
9214
  return this._pollAbort.aborted;
9225
9215
  }
9226
9216
  constructor(e, t, n) {
9227
- this._httpClient = e, this._logger = t, this._pollAbort = new Gp(), this._options = n, this._running = !1, this.onreceive = null, this.onclose = null;
9217
+ this._httpClient = e, this._logger = t, this._pollAbort = new Up(), this._options = n, this._running = !1, this.onreceive = null, this.onclose = null;
9228
9218
  }
9229
9219
  async connect(e, t) {
9230
9220
  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")
@@ -9248,9 +9238,9 @@ class _a {
9248
9238
  const n = `${e}&_=${Date.now()}`;
9249
9239
  this._logger.log(I.Trace, `(LongPolling transport) polling: ${n}.`);
9250
9240
  const a = await this._httpClient.get(n, t);
9251
- 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. ${Nt(a.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(a.content)) : this._logger.log(I.Trace, "(LongPolling transport) Poll timed out, reissuing.");
9241
+ 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.");
9252
9242
  } catch (n) {
9253
- 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}`);
9243
+ this._running ? n instanceof Pn ? 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}`);
9254
9244
  }
9255
9245
  } finally {
9256
9246
  this._logger.log(I.Trace, "(LongPolling transport) Polling complete."), this.pollAborted || this._raiseOnClose();
@@ -9288,7 +9278,7 @@ class _a {
9288
9278
  }
9289
9279
  }
9290
9280
  }
9291
- class Xp {
9281
+ class jp {
9292
9282
  constructor(e, t, n, a) {
9293
9283
  this._httpClient = e, this._accessToken = t, this._logger = n, this._options = a, this.onreceive = null, this.onclose = null;
9294
9284
  }
@@ -9312,7 +9302,7 @@ class Xp {
9312
9302
  i.onmessage = (l) => {
9313
9303
  if (this.onreceive)
9314
9304
  try {
9315
- this._logger.log(I.Trace, `(SSE transport) data received. ${Nt(l.data, this._options.logMessageContent)}.`), this.onreceive(l.data);
9305
+ this._logger.log(I.Trace, `(SSE transport) data received. ${Mt(l.data, this._options.logMessageContent)}.`), this.onreceive(l.data);
9316
9306
  } catch (u) {
9317
9307
  this._close(u);
9318
9308
  return;
@@ -9338,7 +9328,7 @@ class Xp {
9338
9328
  this._eventSource && (this._eventSource.close(), this._eventSource = void 0, this.onclose && this.onclose(e));
9339
9329
  }
9340
9330
  }
9341
- class Qp {
9331
+ class qp {
9342
9332
  constructor(e, t, n, a, s, i) {
9343
9333
  this._logger = n, this._accessTokenFactory = t, this._logMessageContent = a, this._webSocketConstructor = s, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = i;
9344
9334
  }
@@ -9363,7 +9353,7 @@ class Qp {
9363
9353
  let c = null;
9364
9354
  typeof ErrorEvent < "u" && o instanceof ErrorEvent ? c = o.error : c = "There was an error with the transport", this._logger.log(I.Information, `(WebSockets transport) ${c}.`);
9365
9355
  }, i.onmessage = (o) => {
9366
- if (this._logger.log(I.Trace, `(WebSockets transport) data received. ${Nt(o.data, this._logMessageContent)}.`), this.onreceive)
9356
+ if (this._logger.log(I.Trace, `(WebSockets transport) data received. ${Mt(o.data, this._logMessageContent)}.`), this.onreceive)
9367
9357
  try {
9368
9358
  this.onreceive(o.data);
9369
9359
  } catch (c) {
@@ -9381,7 +9371,7 @@ class Qp {
9381
9371
  });
9382
9372
  }
9383
9373
  send(e) {
9384
- return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(I.Trace, `(WebSockets transport) sending data. ${Nt(e, this._logMessageContent)}.`), this._webSocket.send(e), Promise.resolve()) : Promise.reject("WebSocket is not in the OPEN state");
9374
+ return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(I.Trace, `(WebSockets transport) sending data. ${Mt(e, this._logMessageContent)}.`), this._webSocket.send(e), Promise.resolve()) : Promise.reject("WebSocket is not in the OPEN state");
9385
9375
  }
9386
9376
  stop() {
9387
9377
  return this._webSocket && this._close(void 0), Promise.resolve();
@@ -9396,11 +9386,11 @@ class Qp {
9396
9386
  return e && typeof e.wasClean == "boolean" && typeof e.code == "number";
9397
9387
  }
9398
9388
  }
9399
- const Ca = 100;
9400
- class Jp {
9389
+ const _a = 100;
9390
+ class Wp {
9401
9391
  constructor(e, t = {}) {
9402
9392
  if (this._stopPromiseResolver = () => {
9403
- }, this.features = {}, this._negotiateVersion = 1, xe.isRequired(e, "url"), this._logger = Sp(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)
9393
+ }, this.features = {}, this._negotiateVersion = 1, xe.isRequired(e, "url"), this._logger = wp(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)
9404
9394
  t.withCredentials = t.withCredentials === void 0 ? !0 : t.withCredentials;
9405
9395
  else
9406
9396
  throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
@@ -9410,7 +9400,7 @@ class Jp {
9410
9400
  const s = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
9411
9401
  n = s("ws"), a = s("eventsource");
9412
9402
  }
9413
- !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 Kp(t.httpClient || new Np(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
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 Hp(t.httpClient || new Tp(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
9414
9404
  }
9415
9405
  async start(e) {
9416
9406
  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")
@@ -9425,7 +9415,7 @@ class Jp {
9425
9415
  this._connectionStarted = !0;
9426
9416
  }
9427
9417
  send(e) {
9428
- 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));
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 $n(this.transport)), this._sendQueue.send(e));
9429
9419
  }
9430
9420
  async stop(e) {
9431
9421
  if (this._connectionState === "Disconnected")
@@ -9475,12 +9465,12 @@ class Jp {
9475
9465
  this._accessTokenFactory = () => s, this._httpClient._accessToken = s, this._httpClient._accessTokenFactory = void 0;
9476
9466
  }
9477
9467
  a++;
9478
- } while (n.url && a < Ca);
9479
- if (a === Ca && n.url)
9468
+ } while (n.url && a < _a);
9469
+ if (a === _a && n.url)
9480
9470
  throw new Error("Negotiate redirection limit exceeded.");
9481
9471
  await this._createTransport(t, this._options.transport, n, e);
9482
9472
  }
9483
- this.transport instanceof _a && (this.features.inherentKeepAlive = !0), this._connectionState === "Connecting" && (this._logger.log(I.Debug, "The HttpConnection connected successfully."), this._connectionState = "Connected");
9473
+ this.transport instanceof ma && (this.features.inherentKeepAlive = !0), this._connectionState === "Connecting" && (this._logger.log(I.Debug, "The HttpConnection connected successfully."), this._connectionState = "Connected");
9484
9474
  } catch (n) {
9485
9475
  return this._logger.log(I.Error, "Failed to start the connection: " + n), this._connectionState = "Disconnected", this.transport = void 0, this._stopPromiseResolver(), Promise.reject(n);
9486
9476
  }
@@ -9500,10 +9490,10 @@ class Jp {
9500
9490
  if (i.statusCode !== 200)
9501
9491
  return Promise.reject(new Error(`Unexpected status code returned from negotiate '${i.statusCode}'`));
9502
9492
  const l = JSON.parse(i.content);
9503
- return (!l.negotiateVersion || l.negotiateVersion < 1) && (l.connectionToken = l.connectionId), l.useStatefulReconnect && this._options._useStatefulReconnect !== !0 ? Promise.reject(new va("Client didn't negotiate Stateful Reconnect but the server did.")) : l;
9493
+ return (!l.negotiateVersion || l.negotiateVersion < 1) && (l.connectionToken = l.connectionId), l.useStatefulReconnect && this._options._useStatefulReconnect !== !0 ? Promise.reject(new xa("Client didn't negotiate Stateful Reconnect but the server did.")) : l;
9504
9494
  } catch (i) {
9505
9495
  let l = "Failed to complete negotiation with the server: " + i;
9506
- return i instanceof at && i.statusCode === 404 && (l = l + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(I.Error, l), Promise.reject(new va(l));
9496
+ return i instanceof at && i.statusCode === 404 && (l = l + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(I.Error, l), Promise.reject(new xa(l));
9507
9497
  }
9508
9498
  }
9509
9499
  _createConnectUrl(e, t) {
@@ -9534,27 +9524,27 @@ class Jp {
9534
9524
  await this._startTransport(s, a), this.connectionId = u.connectionId;
9535
9525
  return;
9536
9526
  } catch (_) {
9537
- if (this._logger.log(I.Error, `Failed to start the transport '${o.transport}': ${_}`), u = void 0, i.push(new Ap(`${o.transport} failed: ${_}`, he[o.transport])), this._connectionState !== "Connecting") {
9527
+ if (this._logger.log(I.Error, `Failed to start the transport '${o.transport}': ${_}`), u = void 0, i.push(new _p(`${o.transport} failed: ${_}`, he[o.transport])), this._connectionState !== "Connecting") {
9538
9528
  const d = "Failed to select transport before stop() was called.";
9539
9529
  return this._logger.log(I.Debug, d), Promise.reject(new Oe(d));
9540
9530
  }
9541
9531
  }
9542
9532
  }
9543
9533
  }
9544
- return i.length > 0 ? Promise.reject(new Bp(`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."));
9534
+ return i.length > 0 ? Promise.reject(new Cp(`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."));
9545
9535
  }
9546
9536
  _constructTransport(e) {
9547
9537
  switch (e) {
9548
9538
  case he.WebSockets:
9549
9539
  if (!this._options.WebSocket)
9550
9540
  throw new Error("'WebSocket' is not supported in your environment.");
9551
- return new Qp(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
9541
+ return new qp(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
9552
9542
  case he.ServerSentEvents:
9553
9543
  if (!this._options.EventSource)
9554
9544
  throw new Error("'EventSource' is not supported in your environment.");
9555
- return new Xp(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
9545
+ return new jp(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
9556
9546
  case he.LongPolling:
9557
- return new _a(this._httpClient, this._logger, this._options);
9547
+ return new ma(this._httpClient, this._logger, this._options);
9558
9548
  default:
9559
9549
  throw new Error(`Unknown transport: ${e}.`);
9560
9550
  }
@@ -9579,10 +9569,10 @@ class Jp {
9579
9569
  const s = he[e.transport];
9580
9570
  if (s == null)
9581
9571
  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.`);
9582
- if (Zp(t, s))
9572
+ if (Vp(t, s))
9583
9573
  if (e.transferFormats.map((l) => ye[l]).indexOf(n) >= 0) {
9584
9574
  if (s === he.WebSockets && !this._options.WebSocket || s === he.ServerSentEvents && !this._options.EventSource)
9585
- return this._logger.log(I.Debug, `Skipping transport '${he[s]}' because it is not supported in your environment.'`), new wp(`'${he[s]}' is not supported in your environment.`, s);
9575
+ return this._logger.log(I.Debug, `Skipping transport '${he[s]}' because it is not supported in your environment.'`), new gp(`'${he[s]}' is not supported in your environment.`, s);
9586
9576
  this._logger.log(I.Debug, `Selecting transport '${he[s]}'.`);
9587
9577
  try {
9588
9578
  return this.features.reconnect = s === he.WebSockets ? a : void 0, this._constructTransport(s);
@@ -9592,7 +9582,7 @@ class Jp {
9592
9582
  } else
9593
9583
  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]}.`);
9594
9584
  else
9595
- return this._logger.log(I.Debug, `Skipping transport '${he[s]}' because it was disabled by the client.`), new Ep(`'${he[s]}' is disabled by the client.`, s);
9585
+ return this._logger.log(I.Debug, `Skipping transport '${he[s]}' because it was disabled by the client.`), new mp(`'${he[s]}' is disabled by the client.`, s);
9596
9586
  }
9597
9587
  _isITransport(e) {
9598
9588
  return e && typeof e == "object" && "connect" in e;
@@ -9630,10 +9620,10 @@ class Jp {
9630
9620
  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();
9631
9621
  }
9632
9622
  }
9633
- function Zp(r, e) {
9623
+ function Vp(r, e) {
9634
9624
  return !r || (e & r) !== 0;
9635
9625
  }
9636
- class zn {
9626
+ class $n {
9637
9627
  constructor(e) {
9638
9628
  this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new Kt(), this._transportResult = new Kt(), this._sendLoopPromise = this._sendLoop();
9639
9629
  }
@@ -9657,7 +9647,7 @@ class zn {
9657
9647
  this._sendBufferedData = new Kt();
9658
9648
  const e = this._transportResult;
9659
9649
  this._transportResult = void 0;
9660
- const t = typeof this._buffer[0] == "string" ? this._buffer.join("") : zn._concatBuffers(this._buffer);
9650
+ const t = typeof this._buffer[0] == "string" ? this._buffer.join("") : $n._concatBuffers(this._buffer);
9661
9651
  this._buffer.length = 0;
9662
9652
  try {
9663
9653
  await this._transport.send(t), e.resolve();
@@ -9685,10 +9675,10 @@ class Kt {
9685
9675
  this._rejecter(e);
9686
9676
  }
9687
9677
  }
9688
- const Yp = "json";
9689
- class eh {
9678
+ const Kp = "json";
9679
+ class Gp {
9690
9680
  constructor() {
9691
- this.name = Yp, this.version = 2, this.transferFormat = ye.Text;
9681
+ this.name = Kp, this.version = 2, this.transferFormat = ye.Text;
9692
9682
  }
9693
9683
  /** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
9694
9684
  *
@@ -9707,23 +9697,23 @@ class eh {
9707
9697
  if (typeof i.type != "number")
9708
9698
  throw new Error("Invalid payload.");
9709
9699
  switch (i.type) {
9710
- case Z.Invocation:
9700
+ case J.Invocation:
9711
9701
  this._isInvocationMessage(i);
9712
9702
  break;
9713
- case Z.StreamItem:
9703
+ case J.StreamItem:
9714
9704
  this._isStreamItemMessage(i);
9715
9705
  break;
9716
- case Z.Completion:
9706
+ case J.Completion:
9717
9707
  this._isCompletionMessage(i);
9718
9708
  break;
9719
- case Z.Ping:
9709
+ case J.Ping:
9720
9710
  break;
9721
- case Z.Close:
9711
+ case J.Close:
9722
9712
  break;
9723
- case Z.Ack:
9713
+ case J.Ack:
9724
9714
  this._isAckMessage(i);
9725
9715
  break;
9726
- case Z.Sequence:
9716
+ case J.Sequence:
9727
9717
  this._isSequenceMessage(i);
9728
9718
  break;
9729
9719
  default:
@@ -9767,7 +9757,7 @@ class eh {
9767
9757
  throw new Error(t);
9768
9758
  }
9769
9759
  }
9770
- const th = {
9760
+ const Xp = {
9771
9761
  trace: I.Trace,
9772
9762
  debug: I.Debug,
9773
9763
  info: I.Information,
@@ -9778,18 +9768,18 @@ const th = {
9778
9768
  critical: I.Critical,
9779
9769
  none: I.None
9780
9770
  };
9781
- function rh(r) {
9782
- const e = th[r.toLowerCase()];
9771
+ function Qp(r) {
9772
+ const e = Xp[r.toLowerCase()];
9783
9773
  if (typeof e < "u")
9784
9774
  return e;
9785
9775
  throw new Error(`Unknown log level: ${r}`);
9786
9776
  }
9787
- class nh {
9777
+ class Zp {
9788
9778
  configureLogging(e) {
9789
- if (xe.isRequired(e, "logging"), oh(e))
9779
+ if (xe.isRequired(e, "logging"), Jp(e))
9790
9780
  this.logger = e;
9791
9781
  else if (typeof e == "string") {
9792
- const t = rh(e);
9782
+ const t = Qp(e);
9793
9783
  this.logger = new tr(t);
9794
9784
  } else
9795
9785
  this.logger = new tr(e);
@@ -9811,7 +9801,7 @@ class nh {
9811
9801
  withAutomaticReconnect(e) {
9812
9802
  if (this.reconnectPolicy)
9813
9803
  throw new Error("A reconnectPolicy has already been set.");
9814
- return e ? Array.isArray(e) ? this.reconnectPolicy = new ma(e) : this.reconnectPolicy = e : this.reconnectPolicy = new ma(), this;
9804
+ return e ? Array.isArray(e) ? this.reconnectPolicy = new ga(e) : this.reconnectPolicy = e : this.reconnectPolicy = new ga(), this;
9815
9805
  }
9816
9806
  /** Configures {@link @microsoft/signalr.HubConnection.serverTimeoutInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
9817
9807
  *
@@ -9842,16 +9832,16 @@ class nh {
9842
9832
  const e = this.httpConnectionOptions || {};
9843
9833
  if (e.logger === void 0 && (e.logger = this.logger), !this.url)
9844
9834
  throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
9845
- const t = new Jp(this.url, e);
9846
- return $n.create(t, this.logger || Ot.instance, this.protocol || new eh(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
9835
+ const t = new Wp(this.url, e);
9836
+ return Rn.create(t, this.logger || Ot.instance, this.protocol || new Gp(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
9847
9837
  }
9848
9838
  }
9849
- function oh(r) {
9839
+ function Jp(r) {
9850
9840
  return r.log !== void 0;
9851
9841
  }
9852
- let { baseURL: ah } = wt();
9853
- const sh = () => {
9854
- const r = new nh().withUrl(`${ah}/api/tool/event-bus`, {
9842
+ let { baseURL: Yp } = wt();
9843
+ const eh = () => {
9844
+ const r = new Zp().withUrl(`${Yp}/api/tool/event-bus`, {
9855
9845
  skipNegotiation: !0,
9856
9846
  transport: he.WebSockets
9857
9847
  }).withAutomaticReconnect().build();
@@ -9860,10 +9850,10 @@ const sh = () => {
9860
9850
  }), r.onclose((e) => {
9861
9851
  }), r.onreconnected(() => {
9862
9852
  }), r;
9863
- }, dr = "v1", ih = Ye(`/api/graphics-engine/component/${dr}`, (r) => (r.customErrorMessage = () => "", r)), ch = Ye(`/api/portal/manager/${dr}`, (r) => (r.customErrorMessage = () => "", r)), lh = Ye(`/api/speech-base/speech/${dr}`, (r) => (r.customErrorMessage = () => "", r)), ya = ih.get("/component/client/heartbeat"), uh = ch.get("/basics/by-alias");
9864
- lh.post("/control/callBack");
9865
- const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.get("/permissionset/application"), ph = vn.get("/permissionset/user-portal-menu"), ba = async (r, e) => {
9866
- const [t, n] = await ph().run({
9853
+ }, dr = "v1", th = Ye(`/api/graphics-engine/component/${dr}`, (r) => (r.customErrorMessage = () => "", r)), rh = Ye(`/api/portal/manager/${dr}`, (r) => (r.customErrorMessage = () => "", r)), nh = Ye(`/api/speech-base/speech/${dr}`, (r) => (r.customErrorMessage = () => "", r)), Ca = th.get("/component/client/heartbeat"), oh = rh.get("/basics/by-alias");
9854
+ nh.post("/control/callBack");
9855
+ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.get("/permissionset/application"), ih = xn.get("/permissionset/user-portal-menu"), ya = async (r, e) => {
9856
+ const [t, n] = await ih().run({
9867
9857
  code: r,
9868
9858
  showBtn: !1,
9869
9859
  userType: 1
@@ -9871,8 +9861,8 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
9871
9861
  if (t || !n || !n.length) return null;
9872
9862
  const a = Re(n).find((s) => s.code === e);
9873
9863
  return a || null;
9874
- }, hh = () => {
9875
- const r = fn(), { entryApp: e } = Jt.hooks.useEntryApp(), { entryMenu: t } = Jt.hooks.useEntryMenu();
9864
+ }, ch = () => {
9865
+ const r = fn(), { entryApp: e } = Zt.hooks.useEntryApp(), { entryMenu: t } = Zt.hooks.useEntryMenu();
9876
9866
  let n = null;
9877
9867
  return lt(async () => {
9878
9868
  var m;
@@ -9913,7 +9903,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
9913
9903
  const U = C.find((j) => j.code === W);
9914
9904
  if (U) {
9915
9905
  if (L || D) {
9916
- const j = await ba(U.code, q);
9906
+ const j = await ya(U.code, q);
9917
9907
  if (j) {
9918
9908
  const G = JSON.stringify({ showEchartTooltip: D });
9919
9909
  (A = r.query) != null && A.app && r.query.app === U.code && ((B = r.query) != null && B.menu) && r.query.menu === q ? be.sendMessageToMicroApp(j.applicationPath, `${q}:todetail`, G) : (await e({ microApp: U, menuCode: q }), setTimeout(() => {
@@ -9931,12 +9921,12 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
9931
9921
  if (W)
9932
9922
  e({ microApp: W });
9933
9923
  else {
9934
- const [q, U] = await fh().run({ menuCode: H });
9924
+ const [q, U] = await sh().run({ menuCode: H });
9935
9925
  if (q) return;
9936
9926
  const j = C.find((G) => G.code === U);
9937
9927
  if (j) {
9938
9928
  if (L || D) {
9939
- const G = await ba(j.code, H);
9929
+ const G = await ya(j.code, H);
9940
9930
  if (G) {
9941
9931
  const T = JSON.stringify({ showEchartTooltip: D });
9942
9932
  (E = r.query) != null && E.app && r.query.app === W.code && ((k = r.query) != null && k.menu) && r.query.menu === H ? be.sendMessageToMicroApp(G.applicationPath, `${H}:todetail`, T) : (await e({ microApp: W, menuCode: H }), setTimeout(() => {
@@ -9953,21 +9943,21 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
9953
9943
  }
9954
9944
  }
9955
9945
  };
9956
- let u = N(!0);
9946
+ let u = M(!0);
9957
9947
  const o = (f) => {
9958
9948
  setTimeout(async () => {
9959
9949
  var v, C;
9960
9950
  if (u.value) {
9961
- const [w, A] = await uh().run({}, { params: { aliasName: f.actionValue } });
9962
- w ? await Zr().run({
9951
+ const [w, A] = await oh().run({}, { params: { aliasName: f.actionValue } });
9952
+ w ? await Jr().run({
9963
9953
  uniqueId: f.uniqueId,
9964
9954
  status: 0,
9965
9955
  errorMsg: "未找到" + f.actionValue
9966
- }) : A.length ? (A.length > 1 ? l(A) : l((v = A[0]) == null ? void 0 : v.code), await Zr().run({
9956
+ }) : A.length ? (A.length > 1 ? l(A) : l((v = A[0]) == null ? void 0 : v.code), await Jr().run({
9967
9957
  uniqueId: f.uniqueId,
9968
9958
  status: 1,
9969
9959
  targetName: (C = A[0]) == null ? void 0 : C.name
9970
- })) : await Zr().run({
9960
+ })) : await Jr().run({
9971
9961
  uniqueId: f.uniqueId,
9972
9962
  status: 0,
9973
9963
  errorMsg: "未找到" + f.actionValue
@@ -9976,8 +9966,8 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
9976
9966
  u.value = !0;
9977
9967
  }, 2e3);
9978
9968
  }, c = (f) => {
9979
- const v = Ze(), C = JSON.parse(atob(v.split(".")[1])).sub;
9980
- sh().on(`${f}:${C}`, async function(A) {
9969
+ const v = Je(), C = JSON.parse(atob(v.split(".")[1])).sub;
9970
+ eh().on(`${f}:${C}`, async function(A) {
9981
9971
  let B = i(A);
9982
9972
  if (B)
9983
9973
  B.uniqueId && B.actionKey == "switch-menu" && o(B);
@@ -9986,37 +9976,37 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
9986
9976
  l(k);
9987
9977
  } else A.includes("iocIsRun") && (u.value = !1);
9988
9978
  });
9989
- }, _ = N(""), [d, h] = await ya().run();
9979
+ }, _ = M(""), [d, h] = await Ca().run();
9990
9980
  _.value = h, c(_.value);
9991
9981
  const p = async () => {
9992
- const [f, v] = await ya().run();
9982
+ const [f, v] = await Ca().run();
9993
9983
  v !== _.value && (_.value = v, c(_.value));
9994
9984
  };
9995
9985
  n = setInterval(() => {
9996
9986
  p();
9997
9987
  }, 72e5);
9998
- const g = N("online"), x = (f) => {
9988
+ const g = M("online"), x = (f) => {
9999
9989
  f === "online" && g.value === "offline" && setTimeout(() => {
10000
9990
  p();
10001
9991
  }, 5e3), g.value = (window.navigator.onLine ? "on" : "off") + "line";
10002
9992
  };
10003
9993
  window.addEventListener("online", () => x("online")), window.addEventListener("offline", () => x("offline"));
10004
- }), Mt(() => {
9994
+ }), Nt(() => {
10005
9995
  n && clearInterval(n);
10006
9996
  }), {};
10007
- }, fr = "v1", xh = Et(`/api/fms/report/${fr}`), On = Et(`/api/emergency/manage/${fr}`), vh = _n.get("/permissionset/user-portal-menu"), $0 = Et(`/api/alarm/config/${fr}`), gh = Et(`/api/alarm/run-time/${fr}`), mh = $0.get("/alarm-definition/status-option"), _h = gh.post("/record/handling"), Ch = $0.get("/alarm-level/prompttone"), yh = xh.get("/alarm/rule/list"), bh = Ra.get("/controller/space-children-all-type"), wh = Ra.get("/controller/fuzzy-area-small"), Eh = On.get("/emergency-event/event/type"), Ah = On.get("/emergency-event/event/level"), Bh = On.get("/emergency-plan/plan/handle-time"), kh = { class: "handle-alarm-container" }, Dh = { class: "select-check" }, Sh = { class: "form-box" }, Fh = { class: "select-check" }, Ih = { style: { "margin-left": "8px" } }, Th = { class: "foot-btn-box" }, Ph = {
9997
+ }, fr = "v1", lh = Et(`/api/fms/report/${fr}`), zn = Et(`/api/emergency/manage/${fr}`), uh = mn.get("/permissionset/user-portal-menu"), $0 = Et(`/api/alarm/config/${fr}`), dh = Et(`/api/alarm/run-time/${fr}`), fh = $0.get("/alarm-definition/status-option"), ph = dh.post("/record/handling"), hh = $0.get("/alarm-level/prompttone"), xh = lh.get("/alarm/rule/list"), vh = Ra.get("/controller/space-children-all-type"), gh = Ra.get("/controller/fuzzy-area-small"), mh = zn.get("/emergency-event/event/type"), _h = zn.get("/emergency-event/event/level"), Ch = zn.get("/emergency-plan/plan/handle-time"), yh = { class: "handle-alarm-container" }, bh = { class: "select-check" }, wh = { class: "form-box" }, Eh = { class: "select-check" }, Ah = { style: { "margin-left": "8px" } }, Bh = { class: "foot-btn-box" }, kh = {
10008
9998
  name: "handleAlarm"
10009
- }, Rh = /* @__PURE__ */ we({
10010
- ...Ph,
9999
+ }, Dh = /* @__PURE__ */ we({
10000
+ ...kh,
10011
10001
  props: {
10012
10002
  projectId: { default: "" },
10013
10003
  handerIds: { default: [] }
10014
10004
  },
10015
10005
  emits: ["emitFn"],
10016
10006
  setup(r, { expose: e, emit: t }) {
10017
- const n = r, a = t, s = N(!1), i = N(null), l = N(0), u = N(!1);
10018
- N("");
10019
- const o = N({
10007
+ const n = r, a = t, s = M(!1), i = M(null), l = M(0), u = M(!1);
10008
+ M("");
10009
+ const o = M({
10020
10010
  processTypeId: "confirm",
10021
10011
  // 处理类型
10022
10012
  reason: "",
@@ -10042,7 +10032,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10042
10032
  // 处置时限
10043
10033
  interval: 2
10044
10034
  // 时限刻度 默认选择“时”
10045
- }), c = N({
10035
+ }), c = M({
10046
10036
  processTypeId: "",
10047
10037
  // 处理类型 必填
10048
10038
  reason: "",
@@ -10062,88 +10052,88 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10062
10052
  // 事件等级id
10063
10053
  timeLimit: ""
10064
10054
  // 处置时限
10065
- }), _ = N(!1), d = N([]), h = N([]), p = N([
10055
+ }), _ = M(!1), d = M([]), h = M([]), p = M([
10066
10056
  { id: 2, name: V("时").value },
10067
10057
  { id: 1, name: V("分").value },
10068
10058
  { id: 3, name: V("不限").value }
10069
- ]), g = N([]), x = N(""), m = N(V("告警对象位置").value), f = N(""), v = N([]), C = N("");
10070
- N("[]");
10071
- const w = N(!0), A = N(!0), B = async (M) => {
10059
+ ]), g = M([]), x = M(""), m = M(V("告警对象位置").value), f = M(""), v = M([]), C = M("");
10060
+ M("[]");
10061
+ const w = M(!0), A = M(!0), B = async (N) => {
10072
10062
  const R = { name: "1" };
10073
- M != null && M.id && (R.spaceId = M.id);
10074
- const [O, Ee] = await bh(R).run();
10063
+ N != null && N.id && (R.spaceId = N.id);
10064
+ const [O, Ee] = await vh(R).run();
10075
10065
  return O ? {} : Ee;
10076
- }, E = async (M) => {
10077
- const R = { name: M || "" }, [O, Ee] = await wh(R).run();
10066
+ }, E = async (N) => {
10067
+ const R = { name: N || "" }, [O, Ee] = await gh(R).run();
10078
10068
  return O ? {} : Ee;
10079
- }, k = N(!0), y = N(!0), b = N([]), D = async () => {
10080
- const [M, R] = await yh().run({ pageIndex: -1, pageSize: -1 });
10081
- if (M) return {};
10069
+ }, k = M(!0), y = M(!0), b = M([]), D = async () => {
10070
+ const [N, R] = await xh().run({ pageIndex: -1, pageSize: -1 });
10071
+ if (N) return {};
10082
10072
  b.value = R.data.filter((O) => O.status), b.value.length > 0 && (o.value.workOrderRules = b.value[0].id);
10083
10073
  };
10084
- ke(u, (M) => {
10085
- M || (U(), j());
10074
+ ke(u, (N) => {
10075
+ N || (U(), j());
10086
10076
  }), ke(
10087
10077
  A,
10088
- (M) => {
10089
- M ? (w.value = !0, o.value.customPath = V("选填").value) : (w.value = !1, o.value.customPath = "");
10078
+ (N) => {
10079
+ N ? (w.value = !0, o.value.customPath = V("选填").value) : (w.value = !1, o.value.customPath = "");
10090
10080
  },
10091
10081
  { immediate: !0 }
10092
10082
  ), ke(
10093
10083
  y,
10094
- (M) => {
10095
- M ? (o.value.reportTheme = V("告警对象").value, k.value = !0) : (f.value = V("请输入").value, o.value.reportTheme = "", k.value = !1);
10084
+ (N) => {
10085
+ N ? (o.value.reportTheme = V("告警对象").value, k.value = !0) : (f.value = V("请输入").value, o.value.reportTheme = "", k.value = !1);
10096
10086
  },
10097
10087
  { immediate: !0 }
10098
10088
  );
10099
- const S = (M) => {
10089
+ const S = (N) => {
10100
10090
  var R;
10101
10091
  return (R = i.value) == null ? void 0 : R.parentNode.parentNode;
10102
- }, L = (M) => {
10092
+ }, L = (N) => {
10103
10093
  c.value.reportTheme = "";
10104
- }, H = (M, R) => {
10105
- R.length > 0 && (x.value = R[0].path), o.value.reportPosition = M, C.value = "";
10106
- }, W = (M) => {
10107
- M && (c.value.reportPosition = "", x.value = ""), M ? (o.value.reportPosition = null, x.value = "", m.value = V("告警对象位置").value) : (o.value.reportPosition = null, x.value = "", m.value = V("请选择").value);
10108
- }, q = (M) => {
10109
- M && (c.value.reportTheme = ""), M ? (o.value.reportTheme = "", f.value = V("告警对象").value) : (o.value.reportTheme = "", f.value = V("请输入").value);
10094
+ }, H = (N, R) => {
10095
+ R.length > 0 && (x.value = R[0].path), o.value.reportPosition = N, C.value = "";
10096
+ }, W = (N) => {
10097
+ N && (c.value.reportPosition = "", x.value = ""), N ? (o.value.reportPosition = null, x.value = "", m.value = V("告警对象位置").value) : (o.value.reportPosition = null, x.value = "", m.value = V("请选择").value);
10098
+ }, q = (N) => {
10099
+ N && (c.value.reportTheme = ""), N ? (o.value.reportTheme = "", f.value = V("告警对象").value) : (o.value.reportTheme = "", f.value = V("请输入").value);
10110
10100
  }, U = () => {
10111
10101
  c.value.processTypeId = "", c.value.reason = "", c.value.treatmentPlan = "", c.value.reportPosition = "", c.value.reportTheme = "", c.value.workOrderRules = "", c.value.eventTypeId = "", c.value.eventLevelId = "", c.value.timeLimit = "";
10112
10102
  }, j = () => {
10113
10103
  o.value.processTypeId = "confirm", o.value.reason = "", o.value.treatmentPlan = "", o.value.remarks = "", o.value.reportPosition = "", o.value.reportTheme = "", o.value.workOrderRules = null, A.value = !0, y.value = !0, k.value = !0, o.value.reportTheme = V("告警对象").value, x.value = "", m.value = V("告警对象位置").value, f.value = V("请输入").value, o.value.eventTypeId = "", o.value.eventLevelId = null, o.value.timeLimit = "", o.value.interval = 1, d.value = [], h.value = [];
10114
- }, G = (M) => {
10115
- M == "eventTypeId" && (o.value.eventLevelId = null, P()), M == "eventLevelId" && z(), M == "interval" && (c.value.timeLimit = "", o.value.interval == 3 ? (_.value = !0, o.value.timeLimit = "") : _.value = !1);
10104
+ }, G = (N) => {
10105
+ 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);
10116
10106
  }, T = async () => {
10117
- const [M, R] = await Eh().run();
10118
- if (M) return {};
10107
+ const [N, R] = await mh().run();
10108
+ if (N) return {};
10119
10109
  d.value = R, o.value.eventTypeId || (o.value.eventTypeId = R[0] ? R[0].id : null), P();
10120
10110
  }, P = async () => {
10121
- const M = {
10111
+ const N = {
10122
10112
  eventTypeId: o.value.eventTypeId
10123
- }, [R, O] = await Ah(M).run();
10113
+ }, [R, O] = await _h(N).run();
10124
10114
  if (R) return {};
10125
10115
  const Ee = { 1: V("一级").value, 2: V("二级").value, 3: V("三级").value, 4: V("四级").value };
10126
- h.value = O.map((Ne) => ({
10127
- id: `${Ne}`,
10128
- name: Ee[Ne] ? Ee[Ne] : Ne
10116
+ h.value = O.map((Me) => ({
10117
+ id: `${Me}`,
10118
+ name: Ee[Me] ? Ee[Me] : Me
10129
10119
  })), O.length && !o.value.eventLevelId && (o.value.eventLevelId = h.value[0].id, z());
10130
10120
  }, z = async () => {
10131
- const M = {
10121
+ const N = {
10132
10122
  eventTypeId: o.value.eventTypeId,
10133
10123
  eventLevel: o.value.eventLevelId
10134
- }, [R, O] = await Bh(M).run();
10124
+ }, [R, O] = await Ch(N).run();
10135
10125
  if (R) return {};
10136
10126
  o.value.interval = O.handleTimeUnit, O.handleTimeUnit == 3 ? o.value.timeLimit = "" : o.value.timeLimit = O.handleTime;
10137
- }, $ = (M) => {
10138
- U(), M == "createcontingency" && T();
10127
+ }, $ = (N) => {
10128
+ U(), N == "createcontingency" && T();
10139
10129
  }, ie = async () => {
10140
- const M = {
10130
+ const N = {
10141
10131
  logic: !1,
10142
10132
  isTime: !1,
10143
10133
  projectId: n.projectId
10144
10134
  };
10145
10135
  s.value = !0;
10146
- const [R, O] = await mh(M).run();
10136
+ const [R, O] = await fh(N).run();
10147
10137
  if (R) {
10148
10138
  s.value = !1;
10149
10139
  return;
@@ -10152,22 +10142,22 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10152
10142
  for (let Ee = 0; Ee < g.value.length; Ee++)
10153
10143
  g.value[Ee].id === "createorder" && D();
10154
10144
  }, ae = () => {
10155
- let M = !0;
10145
+ let N = !0;
10156
10146
  if (o.value.processTypeId == "dealwith")
10157
- o.value.reason.trim() || (M = !1, c.value.reason = V("必填,最多50个字符/汉字").value), o.value.treatmentPlan.trim() || (M = !1, c.value.treatmentPlan = V("必填,最多50个字符/汉字").value);
10147
+ o.value.reason.trim() || (N = !1, c.value.reason = V("必填,最多50个字符/汉字").value), o.value.treatmentPlan.trim() || (N = !1, c.value.treatmentPlan = V("必填,最多50个字符/汉字").value);
10158
10148
  else if (o.value.processTypeId == "createorder")
10159
- A.value ? c.value.reportPosition = "" : !o.value.reportPosition && !o.value.customPath ? (M = !1, c.value.reportPosition = V("必填").value) : c.value.reportPosition = "", y.value || o.value.reportTheme ? c.value.reportTheme = "" : (M = !1, c.value.reportTheme = V("必填,最多20个汉字/字符").value), o.value.workOrderRules ? c.value.workOrderRules = "" : (M = !1, c.value.workOrderRules = V("必填").value);
10149
+ A.value ? c.value.reportPosition = "" : !o.value.reportPosition && !o.value.customPath ? (N = !1, c.value.reportPosition = V("必填").value) : c.value.reportPosition = "", y.value || o.value.reportTheme ? c.value.reportTheme = "" : (N = !1, c.value.reportTheme = V("必填,最多20个汉字/字符").value), o.value.workOrderRules ? c.value.workOrderRules = "" : (N = !1, c.value.workOrderRules = V("必填").value);
10160
10150
  else if (o.value.processTypeId == "createcontingency") {
10161
10151
  const R = /^[1-9][0-9]{0,2}$/;
10162
- o.value.eventTypeId || (M = !1, c.value.eventTypeId = V("必选").value), o.value.eventLevelId || (M = !1, c.value.eventLevelId = V("必选").value), o.value.interval != 3 && !R.test(o.value.timeLimit) && (M = !1, c.value.timeLimit = V("必填,请输入1~999之间的正整数").value);
10152
+ o.value.eventTypeId || (N = !1, c.value.eventTypeId = V("必选").value), o.value.eventLevelId || (N = !1, c.value.eventLevelId = V("必选").value), o.value.interval != 3 && !R.test(o.value.timeLimit) && (N = !1, c.value.timeLimit = V("必填,请输入1~999之间的正整数").value);
10163
10153
  }
10164
- return M;
10154
+ return N;
10165
10155
  }, _e = () => {
10166
10156
  rt();
10167
- }, ee = async (M) => {
10168
- ae() && (l.value = M, tt());
10157
+ }, ee = async (N) => {
10158
+ ae() && (l.value = N, tt());
10169
10159
  }, tt = async () => {
10170
- const M = {
10160
+ const N = {
10171
10161
  projectId: n.projectId,
10172
10162
  processStatus: l.value,
10173
10163
  //处理状态 1=结束处理 2=继续处理
@@ -10176,8 +10166,8 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10176
10166
  processTypeId: o.value.processTypeId
10177
10167
  //处理类型id
10178
10168
  };
10179
- o.value.processTypeId === "createorder" ? (M.path = A.value ? "" : o.value.customPath, M.topic = y.value ? "" : o.value.reportTheme, M.spaceId = A.value ? "" : o.value.reportPosition ?? "", M.orderId = o.value.workOrderRules) : o.value.processTypeId === "createcontingency" ? (M.eventTypeId = o.value.eventTypeId, M.eventLevelId = o.value.eventLevelId, M.timeLimit = o.value.interval == 3 ? null : Number(o.value.timeLimit), M.interval = o.value.interval) : (M.reason = o.value.reason, M.treatmentPlan = o.value.treatmentPlan, M.remarks = o.value.remarks), s.value = !0, a("emitFn", "startHandle");
10180
- const [R, O] = await _h(M, {
10169
+ 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 ph(N, {
10181
10171
  params: {
10182
10172
  projectId: n.projectId
10183
10173
  }
@@ -10195,8 +10185,8 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10195
10185
  return e({
10196
10186
  open: Ve,
10197
10187
  close: rt
10198
- }), (M, R) => (Y(), Se("div", kh, [
10199
- J(F(mn), {
10188
+ }), (N, R) => (Y(), Se("div", yh, [
10189
+ Z(F(gn), {
10200
10190
  modelValue: u.value,
10201
10191
  "onUpdate:modelValue": R[31] || (R[31] = (O) => u.value = O),
10202
10192
  type: "basic",
@@ -10216,8 +10206,8 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10216
10206
  )
10217
10207
  ]),
10218
10208
  footer: X(() => [
10219
- K("div", Th, [
10220
- J(F(mt), {
10209
+ K("div", Bh, [
10210
+ Z(F(mt), {
10221
10211
  size: "middle",
10222
10212
  onClick: _e
10223
10213
  }, {
@@ -10231,7 +10221,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10231
10221
  _: 1
10232
10222
  /* STABLE */
10233
10223
  }),
10234
- J(F(mt), {
10224
+ Z(F(mt), {
10235
10225
  block: "",
10236
10226
  size: "middle",
10237
10227
  onClick: R[29] || (R[29] = (O) => ee(1))
@@ -10246,7 +10236,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10246
10236
  _: 1
10247
10237
  /* STABLE */
10248
10238
  }),
10249
- J(F(mt), {
10239
+ Z(F(mt), {
10250
10240
  block: "",
10251
10241
  btnType: "primary",
10252
10242
  size: "middle",
@@ -10265,7 +10255,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10265
10255
  ])
10266
10256
  ]),
10267
10257
  default: X(() => [
10268
- J(F(gn), { spinning: s.value }, {
10258
+ Z(F(vn), { spinning: s.value }, {
10269
10259
  default: X(() => [
10270
10260
  K(
10271
10261
  "div",
@@ -10275,13 +10265,13 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10275
10265
  class: "handle-alarm-dialog-content"
10276
10266
  },
10277
10267
  [
10278
- J(F(Ls), {
10268
+ Z(F(Ns), {
10279
10269
  style: { width: "100%", height: "100%", "align-items": "center" },
10280
10270
  cols: 1,
10281
10271
  alignType: "horizontal"
10282
10272
  }, {
10283
10273
  default: X(() => [
10284
- J(F(Me), {
10274
+ Z(F(Ne), {
10285
10275
  label: F(V)("处理类型").value,
10286
10276
  required: "",
10287
10277
  type: "select",
@@ -10296,7 +10286,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10296
10286
  marginRight: "0",
10297
10287
  onChange: $
10298
10288
  }, null, 8, ["label", "modelValue", "options"]),
10299
- o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (Y(), se(F(Me), {
10289
+ o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (Y(), se(F(Ne), {
10300
10290
  key: 0,
10301
10291
  label: F(V)("告警原因").value,
10302
10292
  required: o.value.processTypeId == "dealwith",
@@ -10311,7 +10301,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10311
10301
  marginBottom: "30px",
10312
10302
  marginRight: "0"
10313
10303
  }, null, 8, ["label", "required", "modelValue", "error"])) : oe("v-if", !0),
10314
- o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (Y(), se(F(Me), {
10304
+ o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (Y(), se(F(Ne), {
10315
10305
  key: 1,
10316
10306
  label: F(V)("处理方案").value,
10317
10307
  required: o.value.processTypeId == "dealwith",
@@ -10326,7 +10316,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10326
10316
  marginBottom: "30px",
10327
10317
  marginRight: "0"
10328
10318
  }, null, 8, ["label", "required", "modelValue", "error"])) : oe("v-if", !0),
10329
- o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (Y(), se(F(Me), {
10319
+ o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (Y(), se(F(Ne), {
10330
10320
  key: 2,
10331
10321
  label: F(V)("备注").value,
10332
10322
  type: "textarea",
@@ -10339,7 +10329,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10339
10329
  marginBottom: "30px",
10340
10330
  marginRight: "0"
10341
10331
  }, null, 8, ["label", "modelValue"])) : oe("v-if", !0),
10342
- o.value.processTypeId == "createorder" ? (Y(), se(F(Me), {
10332
+ o.value.processTypeId == "createorder" ? (Y(), se(F(Ne), {
10343
10333
  key: 3,
10344
10334
  label: F(V)("报事位置").value,
10345
10335
  required: "",
@@ -10350,9 +10340,9 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10350
10340
  marginRight: "0"
10351
10341
  }, {
10352
10342
  default: X(() => [
10353
- K("div", Dh, [
10354
- K("div", Sh, [
10355
- J(F(Ms), {
10343
+ K("div", bh, [
10344
+ K("div", wh, [
10345
+ Z(F(Ms), {
10356
10346
  borderType: "underline",
10357
10347
  props: { disabled: "_disabled", label: "name" },
10358
10348
  modelValue: o.value.reportPosition,
@@ -10371,7 +10361,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10371
10361
  filter: !0,
10372
10362
  allowClear: !0
10373
10363
  }, null, 8, ["modelValue", "path", "keyword", "data", "placeholder", "disabled"]),
10374
- J(F(eo), {
10364
+ Z(F(Yn), {
10375
10365
  ref: "testInput",
10376
10366
  modelValue: o.value.customPath,
10377
10367
  "onUpdate:modelValue": R[11] || (R[11] = (O) => o.value.customPath = O),
@@ -10380,7 +10370,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10380
10370
  maxlength: "20"
10381
10371
  }, null, 8, ["modelValue", "placeholder", "disabled"])
10382
10372
  ]),
10383
- J(F(to), {
10373
+ Z(F(eo), {
10384
10374
  modelValue: A.value,
10385
10375
  "onUpdate:modelValue": R[12] || (R[12] = (O) => A.value = O),
10386
10376
  checkboxType: "default",
@@ -10402,7 +10392,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10402
10392
  _: 1
10403
10393
  /* STABLE */
10404
10394
  }, 8, ["label", "error"])) : oe("v-if", !0),
10405
- o.value.processTypeId == "createorder" ? (Y(), se(F(Me), {
10395
+ o.value.processTypeId == "createorder" ? (Y(), se(F(Ne), {
10406
10396
  key: 4,
10407
10397
  label: F(V)("报事主题").value,
10408
10398
  required: "",
@@ -10413,8 +10403,8 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10413
10403
  marginRight: "0"
10414
10404
  }, {
10415
10405
  default: X(() => [
10416
- K("div", Fh, [
10417
- J(F(eo), {
10406
+ K("div", Eh, [
10407
+ Z(F(Yn), {
10418
10408
  maxlength: "20",
10419
10409
  disabled: k.value,
10420
10410
  modelValue: o.value.reportTheme,
@@ -10422,7 +10412,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10422
10412
  placeholder: f.value,
10423
10413
  onChange: L
10424
10414
  }, null, 8, ["disabled", "modelValue", "placeholder"]),
10425
- J(F(to), {
10415
+ Z(F(eo), {
10426
10416
  modelValue: y.value,
10427
10417
  "onUpdate:modelValue": R[15] || (R[15] = (O) => y.value = O),
10428
10418
  checkboxType: "default",
@@ -10444,7 +10434,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10444
10434
  _: 1
10445
10435
  /* STABLE */
10446
10436
  }, 8, ["label", "error"])) : oe("v-if", !0),
10447
- o.value.processTypeId == "createorder" ? (Y(), se(F(Me), {
10437
+ o.value.processTypeId == "createorder" ? (Y(), se(F(Ne), {
10448
10438
  key: 5,
10449
10439
  label: F(V)("工单规则").value,
10450
10440
  required: "",
@@ -10462,7 +10452,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10462
10452
  marginRight: "0"
10463
10453
  }, null, 8, ["label", "modelValue", "error", "options"])) : oe("v-if", !0),
10464
10454
  oe(" createcontingency 生成应急事件 "),
10465
- o.value.processTypeId == "createcontingency" ? (Y(), se(F(Me), {
10455
+ o.value.processTypeId == "createcontingency" ? (Y(), se(F(Ne), {
10466
10456
  key: 6,
10467
10457
  label: F(V)("事件类型").value,
10468
10458
  required: "",
@@ -10480,7 +10470,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10480
10470
  marginRight: "0",
10481
10471
  onChange: R[21] || (R[21] = (O) => G("eventTypeId"))
10482
10472
  }, null, 8, ["label", "modelValue", "error", "options"])) : oe("v-if", !0),
10483
- o.value.processTypeId == "createcontingency" ? (Y(), se(F(Me), {
10473
+ o.value.processTypeId == "createcontingency" ? (Y(), se(F(Ne), {
10484
10474
  key: 7,
10485
10475
  label: F(V)("事件等级").value,
10486
10476
  required: "",
@@ -10498,7 +10488,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10498
10488
  marginRight: "0",
10499
10489
  onChange: R[24] || (R[24] = (O) => G("eventLevelId"))
10500
10490
  }, null, 8, ["label", "modelValue", "error", "options"])) : oe("v-if", !0),
10501
- o.value.processTypeId == "createcontingency" ? (Y(), se(F(Me), {
10491
+ o.value.processTypeId == "createcontingency" ? (Y(), se(F(Ne), {
10502
10492
  key: 8,
10503
10493
  label: F(V)("处置时限").value,
10504
10494
  required: "",
@@ -10514,12 +10504,12 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10514
10504
  marginRight: "0"
10515
10505
  }, {
10516
10506
  default: X(() => [
10517
- K("div", Ih, [
10518
- J(F(Ns), {
10507
+ K("div", Ah, [
10508
+ Z(F(Os), {
10519
10509
  class: "select",
10520
10510
  modelValue: o.value.interval,
10521
10511
  "onUpdate:modelValue": R[25] || (R[25] = (O) => o.value.interval = O),
10522
- width: F(pn) == "zh-CN" ? "65px" : "85px",
10512
+ width: F(Aa) == "zh-CN" ? "65px" : "85px",
10523
10513
  fieldNames: {
10524
10514
  value: "id",
10525
10515
  label: "name"
@@ -10554,18 +10544,18 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10554
10544
  }, 8, ["modelValue"])
10555
10545
  ]));
10556
10546
  }
10557
- }), $h = /* @__PURE__ */ Le(Rh, [["__scopeId", "data-v-f392391d"]]), zh = (r, e, t) => ({
10558
- handleAlarmVue: () => Ce($h, {
10547
+ }), Sh = /* @__PURE__ */ Le(Dh, [["__scopeId", "data-v-f392391d"]]), Fh = (r, e, t) => ({
10548
+ handleAlarmVue: () => Ce(Sh, {
10559
10549
  handerIds: e.value,
10560
- projectId: hn().id,
10550
+ projectId: pn().id,
10561
10551
  ref: r,
10562
10552
  onEmitFn: (a, s) => {
10563
10553
  }
10564
10554
  })
10565
- }), Oh = { class: "alarm-msg" }, Nh = { style: { position: "relative" } }, Mh = { class: "title-left" }, Lh = { class: "title-box" }, Hh = { class: "content-box" }, Uh = { class: "alarm-msg-line" }, jh = { class: "alarm-msg-line-left" }, qh = { class: "alarm-msg-line" }, Wh = { class: "alarm-msg-line-left" }, Vh = { class: "alarm-msg-line-right alarm-content-object" }, Kh = { class: "alarm-msg-line" }, Gh = { class: "alarm-msg-line-left" }, Xh = { class: "alarm-msg-line-right alarm-content" }, Qh = { class: "btn-box" }, Jh = {
10555
+ }), Ih = { class: "alarm-msg" }, Th = { style: { position: "relative" } }, Ph = { class: "title-left" }, Rh = { class: "title-box" }, $h = { class: "content-box" }, zh = { class: "alarm-msg-line" }, Oh = { class: "alarm-msg-line-left" }, Mh = { class: "alarm-msg-line" }, Nh = { class: "alarm-msg-line-left" }, Lh = { class: "alarm-msg-line-right alarm-content-object" }, Hh = { class: "alarm-msg-line" }, Uh = { class: "alarm-msg-line-left" }, jh = { class: "alarm-msg-line-right alarm-content" }, qh = { class: "btn-box" }, Wh = {
10566
10556
  name: "alarm"
10567
- }, Zh = /* @__PURE__ */ we({
10568
- ...Jh,
10557
+ }, Vh = /* @__PURE__ */ we({
10558
+ ...Wh,
10569
10559
  props: {
10570
10560
  alarmhandle: { type: Boolean, default: !1 },
10571
10561
  msgItem: { default: {} }
@@ -10582,22 +10572,22 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10582
10572
  null,
10583
10573
  [
10584
10574
  oe(` <div class="alarm-msg" :style="{ 'border-color': msgItem.color }"> `),
10585
- K("div", Oh, [
10586
- K("div", Nh, [
10575
+ K("div", Ih, [
10576
+ K("div", Th, [
10587
10577
  K(
10588
10578
  "div",
10589
10579
  {
10590
- style: Qn({ "background-color": i.msgItem.color }),
10580
+ style: Xn({ "background-color": i.msgItem.color }),
10591
10581
  class: "title-detail"
10592
10582
  },
10593
10583
  [
10594
- K("div", Mh, [
10584
+ K("div", Ph, [
10595
10585
  oe(` <div class="icon-box" :style="{ color: msgItem.color }">\r
10596
10586
  !\r
10597
10587
  </div> `),
10598
10588
  K(
10599
10589
  "div",
10600
- Lh,
10590
+ Rh,
10601
10591
  pe(F(V)("新告警").value),
10602
10592
  1
10603
10593
  /* TEXT */
@@ -10614,11 +10604,11 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10614
10604
  4
10615
10605
  /* STYLE */
10616
10606
  ),
10617
- K("div", Hh, [
10618
- K("div", Uh, [
10607
+ K("div", $h, [
10608
+ K("div", zh, [
10619
10609
  K(
10620
10610
  "div",
10621
- jh,
10611
+ Oh,
10622
10612
  pe(F(V)("告警等级:").value),
10623
10613
  1
10624
10614
  /* TEXT */
@@ -10627,46 +10617,46 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10627
10617
  "div",
10628
10618
  {
10629
10619
  class: "alarm-msg-line-right alarm-content-object",
10630
- style: Qn({ color: i.msgItem.color })
10620
+ style: Xn({ color: i.msgItem.color })
10631
10621
  },
10632
10622
  pe(i.msgItem.alarmLevelName || ""),
10633
10623
  5
10634
10624
  /* TEXT, STYLE */
10635
10625
  )
10636
10626
  ]),
10637
- K("div", qh, [
10627
+ K("div", Mh, [
10638
10628
  K(
10639
10629
  "div",
10640
- Wh,
10630
+ Nh,
10641
10631
  pe(F(V)("告警对象:").value),
10642
10632
  1
10643
10633
  /* TEXT */
10644
10634
  ),
10645
10635
  K(
10646
10636
  "div",
10647
- Vh,
10637
+ Lh,
10648
10638
  pe(i.msgItem.equipmentName || ""),
10649
10639
  1
10650
10640
  /* TEXT */
10651
10641
  )
10652
10642
  ]),
10653
- K("div", Kh, [
10643
+ K("div", Hh, [
10654
10644
  K(
10655
10645
  "div",
10656
- Gh,
10646
+ Uh,
10657
10647
  pe(F(V)("告警内容:").value),
10658
10648
  1
10659
10649
  /* TEXT */
10660
10650
  ),
10661
10651
  K(
10662
10652
  "div",
10663
- Xh,
10653
+ jh,
10664
10654
  pe(i.msgItem.alarmContent || ""),
10665
10655
  1
10666
10656
  /* TEXT */
10667
10657
  )
10668
10658
  ]),
10669
- K("div", Qh, [
10659
+ K("div", qh, [
10670
10660
  i.msgItem.equipmentCode && i.msgItem.equipmentPanelCode ? (Y(), se(F(mt), {
10671
10661
  key: 0,
10672
10662
  block: "",
@@ -10711,7 +10701,7 @@ const dh = Ye(`/api/tool/event-bus/${dr}/`), Zr = dh.post("/publish"), fh = vn.g
10711
10701
  ));
10712
10702
  }
10713
10703
  });
10714
- let Yh = (r = 21) => {
10704
+ let Kh = (r = 21) => {
10715
10705
  let e = "", t = crypto.getRandomValues(new Uint8Array(r));
10716
10706
  for (; r--; ) {
10717
10707
  let n = t[r] & 63;
@@ -10719,8 +10709,8 @@ let Yh = (r = 21) => {
10719
10709
  }
10720
10710
  return e;
10721
10711
  };
10722
- const ex = () => {
10723
- const r = N(null), e = N(0), t = N(null), n = N(null), a = N([]), s = N([]), i = N(!1), l = N(!1), u = N(!1), o = N({
10712
+ const Gh = () => {
10713
+ 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({
10724
10714
  playId: "",
10725
10715
  // 播放的告警的recordId
10726
10716
  playPath: "",
@@ -10744,9 +10734,9 @@ const ex = () => {
10744
10734
  var y;
10745
10735
  const k = [];
10746
10736
  k.push({ alarmId: E.recordId }), a.value = k, (y = t.value) == null || y.open();
10747
- }, { entryApp: _ } = Jt.hooks.useEntryApp(), d = (E) => {
10737
+ }, { entryApp: _ } = Zt.hooks.useEntryApp(), d = (E) => {
10748
10738
  za(E.equipmentCode, E.equipmentPanelCode);
10749
- }, { handleAlarmVue: h } = zh(t, a), p = async () => {
10739
+ }, { handleAlarmVue: h } = Fh(t, a), p = async () => {
10750
10740
  var y;
10751
10741
  const k = (((y = de().appcategorys) == null ? void 0 : y.map((b) => b.apps).flat()) ?? []).find((b) => b.code === "alarm");
10752
10742
  k && _({ microApp: k, menuPath: `/${k.routeUrl}/realTimeAlarm` });
@@ -10757,13 +10747,13 @@ const ex = () => {
10757
10747
  }
10758
10748
  }, m = (E) => {
10759
10749
  if (!E) return;
10760
- const k = Yh();
10750
+ const k = Kh();
10761
10751
  Qt.open({
10762
10752
  key: k,
10763
10753
  class: "alarm-notify",
10764
10754
  message: V("新告警").value,
10765
10755
  placement: "bottomRight",
10766
- description: Ce(Zh, {
10756
+ description: Ce(Vh, {
10767
10757
  msgItem: E,
10768
10758
  alarmhandle: i.value,
10769
10759
  onHanderDetail: d,
@@ -10807,7 +10797,7 @@ const ex = () => {
10807
10797
  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());
10808
10798
  };
10809
10799
  }, A = async () => {
10810
- const [E, k] = await Ch().run();
10800
+ const [E, k] = await hh().run();
10811
10801
  E || (u.value = k.isEnable);
10812
10802
  };
10813
10803
  return {
@@ -10818,7 +10808,7 @@ const ex = () => {
10818
10808
  handleAlarmVue: h,
10819
10809
  creatAlarmSocket: async () => {
10820
10810
  A();
10821
- const [E, k] = await vh().run({
10811
+ const [E, k] = await uh().run({
10822
10812
  code: "alarm",
10823
10813
  showBtn: !0
10824
10814
  });
@@ -10826,11 +10816,11 @@ const ex = () => {
10826
10816
  let y = !1;
10827
10817
  k.forEach((b) => {
10828
10818
  (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);
10829
- }), y && (r.value = new Cn({
10819
+ }), y && (r.value = new _n({
10830
10820
  url: "/api/alarm/socket/v1/record/subscribe",
10831
10821
  reconnectWhenClose: !0,
10832
10822
  opened: () => {
10833
- const b = Je().id;
10823
+ const b = Ze().id;
10834
10824
  b && r.value.send(b);
10835
10825
  },
10836
10826
  message: async (b) => {
@@ -10839,19 +10829,19 @@ const ex = () => {
10839
10829
  }));
10840
10830
  }
10841
10831
  };
10842
- }, tx = ["src", "muted", "loop"], rx = /* @__PURE__ */ we({
10832
+ }, Xh = ["src", "muted", "loop"], Qh = /* @__PURE__ */ we({
10843
10833
  __name: "index",
10844
10834
  setup(r) {
10845
- const { alarmSocket: e, creatAlarmSocket: t, audioObj: n, audioAlarmRef: a, handleAlarmVue: s } = ex();
10835
+ const { alarmSocket: e, creatAlarmSocket: t, audioObj: n, audioAlarmRef: a, handleAlarmVue: s } = Gh();
10846
10836
  return lt(async () => {
10847
10837
  await or(), t();
10848
- }), Mt(() => {
10838
+ }), Nt(() => {
10849
10839
  e.value && e.value.disconnect(), e.value = null;
10850
10840
  }), (i, l) => (Y(), Se(
10851
10841
  _t,
10852
10842
  null,
10853
10843
  [
10854
- J(F(s)),
10844
+ Z(F(s)),
10855
10845
  K("audio", {
10856
10846
  src: F(n).playPath,
10857
10847
  class: "audio-alarm-level",
@@ -10860,13 +10850,13 @@ const ex = () => {
10860
10850
  muted: !F(n).isplay,
10861
10851
  loop: F(n).loop,
10862
10852
  autoplay: ""
10863
- }, null, 8, tx)
10853
+ }, null, 8, Xh)
10864
10854
  ],
10865
10855
  64
10866
10856
  /* STABLE_FRAGMENT */
10867
10857
  ));
10868
10858
  }
10869
- }), nx = { class: "das-main-app-container" }, ox = /* @__PURE__ */ we({
10859
+ }), Zh = { class: "das-main-app-container" }, Jh = /* @__PURE__ */ we({
10870
10860
  __name: "index",
10871
10861
  props: {
10872
10862
  showLayout: { type: Boolean, default: !0 }
@@ -10874,7 +10864,7 @@ const ex = () => {
10874
10864
  setup(r) {
10875
10865
  const e = r, { isFullscreen: t } = Lt(), n = wt().showLayout ?? !0, a = je(() => n && e.showLayout && !t.value), s = je(() => me.excludeRoutes), i = je(() => me.routeKeepAliveVisible), l = je(() => ({ mode: D0.value.style === 1 ? "vertical" : "inline" }));
10876
10866
  ke(
10877
- () => Aa.nav.activeItem,
10867
+ () => Ea.nav.activeItem,
10878
10868
  (d) => {
10879
10869
  var h;
10880
10870
  if (d) {
@@ -10884,16 +10874,16 @@ const ex = () => {
10884
10874
  },
10885
10875
  { immediate: !0 }
10886
10876
  );
10887
- const { initNextTick: u } = Ff();
10888
- Pf(), Nf(), $f(), Mf(), F0(), Tf();
10889
- const { fontColor: o, backgroudColor: c, borderColor: _ } = Rf();
10890
- return jf(), qf(), Wf(), Kf(), bp(), hh(), (d, h) => (Y(), Se("div", nx, [
10877
+ const { initNextTick: u } = Ef();
10878
+ kf(), Tf(), Sf(), Pf(), F0(), Bf();
10879
+ const { fontColor: o, backgroudColor: c, borderColor: _ } = Df();
10880
+ return Of(), Mf(), Nf(), Hf(), vp(), ch(), (d, h) => (Y(), Se("div", Zh, [
10891
10881
  oe(` <button @click="test(0)">test</button>\r
10892
10882
  <button style="margin-left: 5px" @click="test(1)">test2</button> `),
10893
- J(F(li), { platformInitNextTick: F(u) }, {
10883
+ Z(F(ci), { platformInitNextTick: F(u) }, {
10894
10884
  default: X(() => [
10895
- J(Ks, {
10896
- pageKey: F(pn),
10885
+ Z(Vs, {
10886
+ pageKey: F(Aa),
10897
10887
  showLayout: a.value,
10898
10888
  excludeRoutes: s.value,
10899
10889
  routeKeepAliveVisible: i.value,
@@ -10915,10 +10905,10 @@ const ex = () => {
10915
10905
  /* FORWARDED */
10916
10906
  }, 8, ["platformInitNextTick"]),
10917
10907
  oe(" 告警 "),
10918
- J(F(rx))
10908
+ Z(F(Qh))
10919
10909
  ]));
10920
10910
  }
10921
- }), ax = /* @__PURE__ */ Le(ox, [["__scopeId", "data-v-7a63b5ce"]]), sx = {
10911
+ }), Yh = /* @__PURE__ */ Le(Jh, [["__scopeId", "data-v-7a63b5ce"]]), ex = {
10922
10912
  正在实时预览: { "zh-CN": "正在实时预览", en: "Real-time Video", _appCode: "framework", "zh-MO": "正在實時預覽" },
10923
10913
  声音: { "zh-CN": "声音", en: "Sound", _appCode: "framework", "zh-MO": "聲音" },
10924
10914
  截图: { "zh-CN": "截图", en: "Screenshot", _appCode: "framework", "zh-MO": "截圖" },
@@ -11097,22 +11087,22 @@ const ex = () => {
11097
11087
  "zh-MO": "當前實例($0)$1天后過期(到期時間:$2),請儘快聯繫管理人員續費,過期失效後將會停用物聯網平臺所有功能服務~"
11098
11088
  }
11099
11089
  };
11100
- us(sx);
11101
- N("@das-fed/upf-web");
11102
- const ix = [
11090
+ ls(ex);
11091
+ M("@das-fed/upf-web");
11092
+ const tx = [
11103
11093
  {
11104
11094
  path: qe,
11105
- component: () => import("./index-BJWTr6s8.js")
11095
+ component: () => import("./index-DLOeR4lo.js")
11106
11096
  },
11107
11097
  {
11108
- path: Na,
11109
- component: () => import("./index-DhC7txnI.js")
11098
+ path: Ma,
11099
+ component: () => import("./index-D2I3UnWM.js")
11110
11100
  }
11111
- ], Zx = {
11112
- routes: ix,
11113
- Layout: ax,
11101
+ ], Vx = {
11102
+ routes: tx,
11103
+ Layout: Yh,
11114
11104
  data: {
11115
- homeInfo: wf,
11105
+ homeInfo: mf,
11116
11106
  personalConfig: D0
11117
11107
  },
11118
11108
  hooks: {
@@ -11126,7 +11116,7 @@ export {
11126
11116
  Yt as c,
11127
11117
  Ya as g,
11128
11118
  me as l,
11129
- Zx as m,
11119
+ Vx as m,
11130
11120
  D0 as p,
11131
11121
  qt as u
11132
11122
  };