@das-fed/web 6.4.0-dev.53 → 6.4.0-dev.54

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.
@@ -125,8 +125,8 @@ function jv(...e) {
125
125
  Array.isArray(f) || (f = [f]), Array.isArray(n) || (n = [n]);
126
126
  const P = [], r = () => {
127
127
  P.forEach((u) => u()), P.length = 0;
128
- }, d = (u, p, a, H) => (u.addEventListener(p, a, H), () => u.removeEventListener(p, a, H)), z = PA(() => [M9(A), E9(v)], ([u, p]) => {
129
- r(), u && P.push(...f.flatMap((a) => n.map((H) => d(u, a, H, p))));
128
+ }, d = (u, m, a, H) => (u.addEventListener(m, a, H), () => u.removeEventListener(m, a, H)), z = PA(() => [M9(A), E9(v)], ([u, m]) => {
129
+ r(), u && P.push(...f.flatMap((a) => n.map((H) => d(u, a, H, m))));
130
130
  }, { immediate: !0, flush: "post" }), t = () => {
131
131
  z(), r();
132
132
  };
@@ -191,7 +191,7 @@ function sf(e, A = {}) {
191
191
  } else
192
192
  return !1;
193
193
  return !1;
194
- }), [z, t, u, , p] = r;
194
+ }), [z, t, u, , m] = r;
195
195
  async function a() {
196
196
  d.value && (f != null && f[u] && await f[t](), P.value = !1);
197
197
  }
@@ -205,7 +205,7 @@ function sf(e, A = {}) {
205
205
  async function N() {
206
206
  P.value ? await a() : await H();
207
207
  }
208
- return f && jv(f, p, () => {
208
+ return f && jv(f, m, () => {
209
209
  P.value = !!(f != null && f[u]);
210
210
  }, !1), n && w9(a), {
211
211
  isSupported: d,
@@ -266,27 +266,27 @@ const Ev = nv.get("watermark"), wv = /* @__PURE__ */ aA({
266
266
  color: "rgba(0,0,0,.15)",
267
267
  fontSize: 16
268
268
  }), z = (V, i) => {
269
- const X = document.createElement("span");
270
- X.innerHTML = V, X.style.fontSize = i + "px", X.style.fontFamily = "sans-serif", X.style.visibility = "hidden", document.body.appendChild(X);
271
- const b = X.getBoundingClientRect();
272
- n.value = Math.ceil(b.width) + i / 2, v.value = Math.ceil(b.height), document.body.removeChild(X);
269
+ const b = document.createElement("span");
270
+ b.innerHTML = V, b.style.fontSize = i + "px", b.style.fontFamily = "sans-serif", b.style.visibility = "hidden", document.body.appendChild(b);
271
+ const X = b.getBoundingClientRect();
272
+ n.value = Math.ceil(X.width) + i / 2, v.value = Math.ceil(X.height), document.body.removeChild(b);
273
273
  }, t = O(!1), u = () => new Promise((V) => {
274
274
  const i = () => {
275
275
  if (t) return V(!0);
276
276
  setTimeout(() => i(), 50);
277
277
  };
278
278
  i();
279
- }), p = async (V) => {
280
- var X;
279
+ }), m = async (V) => {
280
+ var b;
281
281
  await u();
282
- const i = !!((X = f.value) != null && X.pageSwith);
282
+ const i = !!((b = f.value) != null && b.pageSwith);
283
283
  r.value = V && i ? [...P.value] : [];
284
284
  }, a = async () => {
285
- var b, s, q, D, y, E, l;
285
+ var X, s, q, D, y, E, l;
286
286
  t.value = !0, await (A == null ? void 0 : A.platformInitNextTick());
287
287
  const [V, i] = await Ev().run();
288
288
  if (V) return null;
289
- if (f.value = i, !!((b = f.value) != null && b.pageSwith)) {
289
+ if (f.value = i, !!((X = f.value) != null && X.pageSwith)) {
290
290
  P.value = [];
291
291
  const { name: o, phone: x } = await cv();
292
292
  let I = "";
@@ -311,17 +311,17 @@ const Ev = nv.get("watermark"), wv = /* @__PURE__ */ aA({
311
311
  () => H.currentRoute.value,
312
312
  (V) => {
313
313
  var s, q, D;
314
- const i = !!((s = f.value) != null && s.pageSwith), X = ((q = V.meta) == null ? void 0 : q.showWatermark) ?? !0;
315
- let b = ((D = V.query) == null ? void 0 : D.showWatermark) ?? !0;
316
- b === "false" && (b = !1), p(i && !!(X && b));
314
+ const i = !!((s = f.value) != null && s.pageSwith), b = ((q = V.meta) == null ? void 0 : q.showWatermark) ?? !0;
315
+ let X = ((D = V.query) == null ? void 0 : D.showWatermark) ?? !0;
316
+ X === "false" && (X = !1), m(i && !!(b && X));
317
317
  },
318
318
  { immediate: !0 }
319
319
  ), HA.addEventListenerFromMicroApp("systemconfig:watermark-change", async () => {
320
- var X, b;
320
+ var b, X;
321
321
  await a();
322
- const V = !!((X = f.value) != null && X.pageSwith);
323
- let i = ((b = N.query) == null ? void 0 : b.showWatermark) ?? !0;
324
- i === "false" && (i = !1), p(!!(V && i));
322
+ const V = !!((b = f.value) != null && b.pageSwith);
323
+ let i = ((X = N.query) == null ? void 0 : X.showWatermark) ?? !0;
324
+ i === "false" && (i = !1), m(!!(V && i));
325
325
  }), (V, i) => (k(), h(c(iv), {
326
326
  class: "watermark",
327
327
  font: d,
@@ -507,21 +507,21 @@ const Uv = (e = {}) => {
507
507
  var a;
508
508
  const t = z.code, u = (z == null ? void 0 : z.originalCode) ?? "";
509
509
  d[t] || (d[t] = []);
510
- let p = [];
510
+ let m = [];
511
511
  z != null && z.children && ((a = z == null ? void 0 : z.children) != null && a.length) && (z.children.forEach((H) => {
512
512
  var N;
513
- !(H != null && H.children) || !((N = H.children) != null && N.length) ? p.push({
513
+ !(H != null && H.children) || !((N = H.children) != null && N.length) ? m.push({
514
514
  code: H.code,
515
515
  originalCode: H.originalCode,
516
516
  name: H.name
517
517
  }) : pA([H]).forEach((i) => {
518
- p.push({
518
+ m.push({
519
519
  code: i.code,
520
520
  originalCode: i.originalCode,
521
521
  name: i.name
522
522
  });
523
523
  });
524
- }), p.forEach((H) => {
524
+ }), m.forEach((H) => {
525
525
  let N = H.originalCode ? H.originalCode : H.code ? H.code : "";
526
526
  N.includes(t + ".") && (N = N.replace(t + ".", "").replaceAll(".", "-")), N.includes(u + ".") && (N = N.replace(u + ".", "").replaceAll(".", "-"));
527
527
  const V = {
@@ -1129,16 +1129,16 @@ function Rf(e, A, f, n, v, P) {
1129
1129
  if (r = IP(e), !d)
1130
1130
  return HP(e, r);
1131
1131
  } else {
1132
- var p = oA(e), a = p == un || p == lr;
1132
+ var m = oA(e), a = m == un || m == lr;
1133
1133
  if (C9(e))
1134
1134
  return qP(e, d);
1135
- if (p == Xn || p == dn || a && !v) {
1135
+ if (m == Xn || m == dn || a && !v) {
1136
1136
  if (r = z || a ? {} : zr(e), !d)
1137
1137
  return z ? RP(e, iP(r, e)) : lP(e, uP(r, e));
1138
1138
  } else {
1139
- if (!F[p])
1139
+ if (!F[m])
1140
1140
  return v ? e : {};
1141
- r = rr(e, p, d);
1141
+ r = rr(e, m, d);
1142
1142
  }
1143
1143
  }
1144
1144
  P || (P = new nf());
@@ -1147,12 +1147,12 @@ function Rf(e, A, f, n, v, P) {
1147
1147
  return H;
1148
1148
  P.set(e, r), ar(e) ? e.forEach(function(i) {
1149
1149
  r.add(Rf(i, A, f, i, e, P));
1150
- }) : Xr(e) && e.forEach(function(i, X) {
1151
- r.set(X, Rf(i, A, f, X, e, P));
1150
+ }) : Xr(e) && e.forEach(function(i, b) {
1151
+ r.set(b, Rf(i, A, f, b, e, P));
1152
1152
  });
1153
1153
  var N = t ? z ? xP : NP : z ? me : He, V = u ? void 0 : N(e);
1154
- return i7(V || e, function(i, X) {
1155
- V && (X = i, i = e[X]), h9(r, X, Rf(i, A, f, X, e, P));
1154
+ return i7(V || e, function(i, b) {
1155
+ V && (b = i, i = e[b]), h9(r, b, Rf(i, A, f, b, e, P));
1156
1156
  }), r;
1157
1157
  }
1158
1158
  var Br = 1, Qr = 4;
@@ -1197,8 +1197,8 @@ const jf = (e, A = "") => {
1197
1197
  const f = e.findIndex((P) => P.code === A), n = e.slice(0, f), v = e.slice(f + 1);
1198
1198
  return { left: n, right: v };
1199
1199
  }, Jr = (e, A, f) => {
1200
- var p;
1201
- const n = pA(A).filter((a) => a.routeUrl).filter((a) => !(a != null && a.disable) && !(a != null && a.expired)), P = (((p = XA()) == null ? void 0 : p.tabMap) ?? {})[e] ?? [], { left: r, right: d } = Ur(P, f), z = P.filter((a) => n.find((H) => H.code === a.code));
1200
+ var m;
1201
+ const n = pA(A).filter((a) => a.routeUrl).filter((a) => !(a != null && a.disable) && !(a != null && a.expired)), P = (((m = XA()) == null ? void 0 : m.tabMap) ?? {})[e] ?? [], { left: r, right: d } = Ur(P, f), z = P.filter((a) => n.find((H) => H.code === a.code));
1202
1202
  if (!r.length && !d.length || !z.length)
1203
1203
  return bA([
1204
1204
  { key: "currentCode", value: "" },
@@ -1259,43 +1259,43 @@ const jf = (e, A = "") => {
1259
1259
  let z = [], t = [];
1260
1260
  const u = J().subAppList ?? [];
1261
1261
  if (u.length && (z = ((N = u.find((i) => i.code === A.code)) == null ? void 0 : N.menus) ?? []), !z.length) {
1262
- const { menus: i, originalMenus: X } = await le(d);
1263
- z = i ?? [], t = X ?? [];
1262
+ const { menus: i, originalMenus: b } = await le(d);
1263
+ z = i ?? [], t = b ?? [];
1264
1264
  }
1265
1265
  if (!z.length && (!P || !r))
1266
1266
  return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
1267
1267
  if (A.routeUrl === "iot/iot") {
1268
1268
  const { instanceInfo: i } = await c3();
1269
1269
  if (i) {
1270
- let X = !1;
1270
+ let b = !1;
1271
1271
  z.forEach((s) => {
1272
1272
  s.routeUrl === "/deviceInstance" && (s.fixed = !0, s.divise = !0, s.menuCode = s.code, s.tagName = s.tabName = Q("实例"), s.name = i.instanceName, s.leftIcon = "change2", s.rightIcon = "change2");
1273
1273
  });
1274
- const b = hn(i.endTime) || i.endTime == 0 || i.endTime === 253370736e6 || i.endTime === "253370736000000" ? "-" : Number(i.endTime);
1275
- if (X = Kf().endOf("day") > Kf(b).endOf("day"), !f && !n && i.id && !X) {
1274
+ const X = hn(i.endTime) || i.endTime == 0 || i.endTime === 253370736e6 || i.endTime === "253370736000000" ? "-" : Number(i.endTime);
1275
+ if (b = Kf().endOf("day") > Kf(X).endOf("day"), !f && !n && i.id && !b) {
1276
1276
  const q = pA(z).find((D) => D.routeUrl === "/statisticalReport");
1277
1277
  q && (f = q.code);
1278
1278
  }
1279
1279
  }
1280
1280
  }
1281
1281
  if (P && r) {
1282
- const X = (XA().tabMap ?? {})[A.code] ?? [];
1283
- if (X.length) {
1284
- const b = X.filter(
1282
+ const b = (XA().tabMap ?? {})[A.code] ?? [];
1283
+ if (b.length) {
1284
+ const X = b.filter(
1285
1285
  (s) => f && f === s.code || n && n === `/${s.applicationPath}${s.path}`.replace(/\/\//g, "/") || pA(z).map((q) => q.code).includes(s.code)
1286
1286
  );
1287
1287
  bA([
1288
1288
  {
1289
1289
  key: `tabMap:${A.code}`,
1290
- value: b
1290
+ value: X
1291
1291
  }
1292
1292
  ]);
1293
1293
  }
1294
1294
  }
1295
1295
  if (!f && n) {
1296
- const i = pA(z).find((X) => {
1297
- const b = `/${X.applicationPath}${X.routeUrl}`.replace(/\/\//g, "/");
1298
- return X.applicationPath && X.routeUrl && (n === b || n.startsWith(`/${b}/`));
1296
+ const i = pA(z).find((b) => {
1297
+ const X = `/${b.applicationPath}${b.routeUrl}`.replace(/\/\//g, "/");
1298
+ return b.applicationPath && b.routeUrl && (n === X || n.startsWith(`/${X}/`));
1299
1299
  });
1300
1300
  if (i)
1301
1301
  f = i.code;
@@ -1307,22 +1307,22 @@ const jf = (e, A = "") => {
1307
1307
  query: { ...v.query, app: d }
1308
1308
  };
1309
1309
  }
1310
- let p = jf(z, f);
1311
- if (!p) {
1310
+ let m = jf(z, f);
1311
+ if (!m) {
1312
1312
  if (!P || !r)
1313
1313
  return { menuConfig: z, currentApp: null, currentMenu: null, query: { ...v.query, app: d } };
1314
1314
  const i = Jr(A.code, z, f);
1315
- i != null && i.currentApp && (A = i.currentApp), i != null && i.currentMenu && (p = i.currentMenu), i != null && i.currentTab && (v.query = ((V = i.currentTab) == null ? void 0 : V.query) ?? {});
1315
+ i != null && i.currentApp && (A = i.currentApp), i != null && i.currentMenu && (m = i.currentMenu), i != null && i.currentTab && (v.query = ((V = i.currentTab) == null ? void 0 : V.query) ?? {});
1316
1316
  }
1317
1317
  if ((A == null ? void 0 : A.routeUrl) === RA)
1318
1318
  return { menuConfig: [], currentApp: A, currentMenu: null, query: null };
1319
- if (p) {
1320
- const i = `/${p.applicationPath}${p.routeUrl}`;
1321
- let X = "";
1322
- n && n.startsWith(i) && n !== i && (X = n);
1323
- const b = { ...v.query, app: d, menu: p.code };
1319
+ if (m) {
1320
+ const i = `/${m.applicationPath}${m.routeUrl}`;
1321
+ let b = "";
1322
+ n && n.startsWith(i) && n !== i && (b = n);
1323
+ const X = { ...v.query, app: d, menu: m.code };
1324
1324
  if (P && r) {
1325
- const s = { ...A, currentMenuCode: p.code, menus: z, originalMenus: t };
1325
+ const s = { ...A, currentMenuCode: m.code, menus: z, originalMenus: t };
1326
1326
  iA([
1327
1327
  { key: "currentSubApp", value: s },
1328
1328
  { key: "currentSubAppCode", value: d },
@@ -1330,18 +1330,18 @@ const jf = (e, A = "") => {
1330
1330
  ]);
1331
1331
  const q = {
1332
1332
  currentApplication: A.routeUrl,
1333
- applicationPath: p.applicationPath,
1333
+ applicationPath: m.applicationPath,
1334
1334
  applicationCode: d,
1335
- menuId: p.id,
1336
- code: p.code,
1337
- name: (p == null ? void 0 : p.tabName) ?? p.name,
1338
- path: p.routeUrl,
1339
- query: b
1335
+ menuId: m.id,
1336
+ code: m.code,
1337
+ name: (m == null ? void 0 : m.tabName) ?? m.name,
1338
+ path: m.routeUrl,
1339
+ query: X
1340
1340
  };
1341
1341
  bA([
1342
1342
  {
1343
1343
  key: "currentCode",
1344
- value: p.code
1344
+ value: m.code
1345
1345
  },
1346
1346
  {
1347
1347
  key: "currentTab",
@@ -1357,7 +1357,7 @@ const jf = (e, A = "") => {
1357
1357
  }
1358
1358
  ]);
1359
1359
  }
1360
- return { menuConfig: z, currentApp: A, currentMenu: p, query: b, microPath: X };
1360
+ return { menuConfig: z, currentApp: A, currentMenu: m, query: X, microPath: b };
1361
1361
  }
1362
1362
  return { menuConfig: z, currentApp: A, currentMenu: null, query: { ...v.query, app: d } };
1363
1363
  }, Fr = TA.get("/appcategory"), hr = TA.get("/app/common"), u9 = O(!1), X9 = O([]), bn = async () => {
@@ -1417,38 +1417,38 @@ const jf = (e, A = "") => {
1417
1417
  setup(e, { expose: A }) {
1418
1418
  const f = O(!1), n = O(!1), v = O(!1), P = O(!1), r = O(!1), d = O(!1), z = O(!1), t = O(!1), u = () => {
1419
1419
  n.value = DA.value.style === 1, v.value = DA.value.style === 2, P.value = DA.value.skinStyle === "default", r.value = DA.value.skinStyle === "kjl", d.value = DA.value.skinStyle === "cjb", z.value = DA.value.skinStyle === "ssl", f.value = !0;
1420
- }, p = (X, b) => {
1421
- X === "menu" ? (n.value = b === 1, v.value = b === 2) : (P.value = b === 1, r.value = b === 2, d.value = b === 3, z.value = b === 4);
1420
+ }, m = (b, X) => {
1421
+ b === "menu" ? (n.value = X === 1, v.value = X === 2) : (P.value = X === 1, r.value = X === 2, d.value = X === 3, z.value = X === 4);
1422
1422
  }, a = () => {
1423
- const X = {
1423
+ const b = {
1424
1424
  default: P.value,
1425
1425
  kjl: r.value,
1426
1426
  cjb: d.value,
1427
1427
  ssl: z.value
1428
1428
  };
1429
- return Object.keys(X).find((b) => X[b] === !0) ?? "default";
1429
+ return Object.keys(b).find((X) => b[X] === !0) ?? "default";
1430
1430
  }, H = OA(() => ({
1431
1431
  default: Ht,
1432
1432
  kjl: mt,
1433
1433
  cjb: pt,
1434
1434
  ssl: Vt
1435
1435
  })[a()]), N = async () => {
1436
- const X = {
1436
+ const b = {
1437
1437
  style: n.value ? 1 : 2,
1438
1438
  skinStyle: a()
1439
- }, [b] = await Xt().run(X);
1440
- b || (await sn(), f.value = !1);
1439
+ }, [X] = await Xt().run(b);
1440
+ X || (await sn(), f.value = !1);
1441
1441
  }, { onPreview: V } = qv(), i = () => {
1442
1442
  V({ previewList: [H.value], previewBtnConfig: !0 });
1443
1443
  };
1444
1444
  return A({
1445
1445
  /** 打开弹窗 */
1446
1446
  openDialog: u
1447
- }), (X, b) => (k(), cA("div", lt, [
1447
+ }), (b, X) => (k(), cA("div", lt, [
1448
1448
  M(c(sv), {
1449
1449
  title: c(T)("主题设置").value,
1450
1450
  modelValue: f.value,
1451
- "onUpdate:modelValue": b[13] || (b[13] = (s) => f.value = s),
1451
+ "onUpdate:modelValue": X[19] || (X[19] = (s) => f.value = s),
1452
1452
  "body-style": { padding: 0 },
1453
1453
  direction: "rtl"
1454
1454
  }, {
@@ -1456,7 +1456,7 @@ const jf = (e, A = "") => {
1456
1456
  Z("div", Bt, [
1457
1457
  M(c(WA), {
1458
1458
  size: "middle",
1459
- onClick: b[12] || (b[12] = (s) => f.value = !1),
1459
+ onClick: X[18] || (X[18] = (s) => f.value = !1),
1460
1460
  style: { "margin-right": "12px" }
1461
1461
  }, {
1462
1462
  default: w(() => [
@@ -1500,7 +1500,7 @@ const jf = (e, A = "") => {
1500
1500
  Z("div", xt, [
1501
1501
  Z("div", {
1502
1502
  class: "item-content",
1503
- onClick: b[1] || (b[1] = (s) => p("menu", 1))
1503
+ onClick: X[2] || (X[2] = (s) => m("menu", 1))
1504
1504
  }, [
1505
1505
  Z("img", {
1506
1506
  src: c(bt),
@@ -1510,7 +1510,8 @@ const jf = (e, A = "") => {
1510
1510
  }, null, 8, ot),
1511
1511
  M(c(FA), {
1512
1512
  modelValue: n.value,
1513
- "onUpdate:modelValue": b[0] || (b[0] = (s) => n.value = s)
1513
+ "onUpdate:modelValue": X[0] || (X[0] = (s) => n.value = s),
1514
+ onChange: X[1] || (X[1] = (s) => m("menu", 1))
1514
1515
  }, {
1515
1516
  default: w(() => [
1516
1517
  nA(
@@ -1525,7 +1526,7 @@ const jf = (e, A = "") => {
1525
1526
  ]),
1526
1527
  Z("div", {
1527
1528
  class: "item-content",
1528
- onClick: b[3] || (b[3] = (s) => p("menu", 2))
1529
+ onClick: X[5] || (X[5] = (s) => m("menu", 2))
1529
1530
  }, [
1530
1531
  Z("img", {
1531
1532
  src: c(ct),
@@ -1535,7 +1536,8 @@ const jf = (e, A = "") => {
1535
1536
  }, null, 8, Dt),
1536
1537
  M(c(FA), {
1537
1538
  modelValue: v.value,
1538
- "onUpdate:modelValue": b[2] || (b[2] = (s) => v.value = s)
1539
+ "onUpdate:modelValue": X[3] || (X[3] = (s) => v.value = s),
1540
+ onChange: X[4] || (X[4] = (s) => m("menu", 2))
1539
1541
  }, {
1540
1542
  default: w(() => [
1541
1543
  nA(
@@ -1561,7 +1563,7 @@ const jf = (e, A = "") => {
1561
1563
  Z("div", Tt, [
1562
1564
  Z("div", {
1563
1565
  class: "item-content",
1564
- onClick: b[5] || (b[5] = (s) => p("skin", 1))
1566
+ onClick: X[8] || (X[8] = (s) => m("skin", 1))
1565
1567
  }, [
1566
1568
  Z("img", {
1567
1569
  src: c(at),
@@ -1571,7 +1573,8 @@ const jf = (e, A = "") => {
1571
1573
  }, null, 8, yt),
1572
1574
  M(c(FA), {
1573
1575
  modelValue: P.value,
1574
- "onUpdate:modelValue": b[4] || (b[4] = (s) => P.value = s)
1576
+ "onUpdate:modelValue": X[6] || (X[6] = (s) => P.value = s),
1577
+ onChange: X[7] || (X[7] = (s) => m("skin", 1))
1575
1578
  }, {
1576
1579
  default: w(() => [
1577
1580
  nA(
@@ -1586,7 +1589,7 @@ const jf = (e, A = "") => {
1586
1589
  ]),
1587
1590
  Z("div", {
1588
1591
  class: "item-content",
1589
- onClick: b[7] || (b[7] = (s) => p("skin", 2))
1592
+ onClick: X[11] || (X[11] = (s) => m("skin", 2))
1590
1593
  }, [
1591
1594
  Z("img", {
1592
1595
  src: c(it),
@@ -1596,7 +1599,8 @@ const jf = (e, A = "") => {
1596
1599
  }, null, 8, Lt),
1597
1600
  M(c(FA), {
1598
1601
  modelValue: r.value,
1599
- "onUpdate:modelValue": b[6] || (b[6] = (s) => r.value = s)
1602
+ "onUpdate:modelValue": X[9] || (X[9] = (s) => r.value = s),
1603
+ onChange: X[10] || (X[10] = (s) => m("skin", 2))
1600
1604
  }, {
1601
1605
  default: w(() => [
1602
1606
  nA(
@@ -1613,7 +1617,7 @@ const jf = (e, A = "") => {
1613
1617
  Z("div", Wt, [
1614
1618
  Z("div", {
1615
1619
  class: "item-content",
1616
- onClick: b[9] || (b[9] = (s) => p("skin", 3))
1620
+ onClick: X[14] || (X[14] = (s) => m("skin", 3))
1617
1621
  }, [
1618
1622
  Z("img", {
1619
1623
  src: c(st),
@@ -1623,7 +1627,8 @@ const jf = (e, A = "") => {
1623
1627
  }, null, 8, It),
1624
1628
  M(c(FA), {
1625
1629
  modelValue: d.value,
1626
- "onUpdate:modelValue": b[8] || (b[8] = (s) => d.value = s)
1630
+ "onUpdate:modelValue": X[12] || (X[12] = (s) => d.value = s),
1631
+ onChange: X[13] || (X[13] = (s) => m("skin", 3))
1627
1632
  }, {
1628
1633
  default: w(() => [
1629
1634
  nA(
@@ -1638,7 +1643,7 @@ const jf = (e, A = "") => {
1638
1643
  ]),
1639
1644
  Z("div", {
1640
1645
  class: "item-content",
1641
- onClick: b[11] || (b[11] = (s) => p("skin", 4))
1646
+ onClick: X[17] || (X[17] = (s) => m("skin", 4))
1642
1647
  }, [
1643
1648
  Z("img", {
1644
1649
  src: c(qt),
@@ -1648,7 +1653,8 @@ const jf = (e, A = "") => {
1648
1653
  }, null, 8, Et),
1649
1654
  M(c(FA), {
1650
1655
  modelValue: z.value,
1651
- "onUpdate:modelValue": b[10] || (b[10] = (s) => z.value = s)
1656
+ "onUpdate:modelValue": X[15] || (X[15] = (s) => z.value = s),
1657
+ onChange: X[16] || (X[16] = (s) => m("skin", 4))
1652
1658
  }, {
1653
1659
  default: w(() => [
1654
1660
  nA(
@@ -1688,7 +1694,7 @@ const jf = (e, A = "") => {
1688
1694
  }, 8, ["title", "modelValue"])
1689
1695
  ]));
1690
1696
  }
1691
- }), Gt = /* @__PURE__ */ NA(Qt, [["__scopeId", "data-v-36a8224a"]]), Ut = () => O(null), Jt = { class: "iframe-container" }, Yt = ["src"], Ft = /* @__PURE__ */ aA({
1697
+ }), Gt = /* @__PURE__ */ NA(Qt, [["__scopeId", "data-v-84a90748"]]), Ut = () => O(null), Jt = { class: "iframe-container" }, Yt = ["src"], Ft = /* @__PURE__ */ aA({
1692
1698
  __name: "index",
1693
1699
  props: {
1694
1700
  src: { default: "" }
@@ -1794,7 +1800,7 @@ const jf = (e, A = "") => {
1794
1800
  immediate: !0
1795
1801
  }
1796
1802
  );
1797
- const p = async () => {
1803
+ const m = async () => {
1798
1804
  let N = {};
1799
1805
  return await _n([
1800
1806
  u3,
@@ -1808,10 +1814,10 @@ const jf = (e, A = "") => {
1808
1814
  return L.nav.addEventListener("onBeforeMount", async () => {
1809
1815
  var o;
1810
1816
  await e();
1811
- const N = await p();
1817
+ const N = await m();
1812
1818
  if (!N) return;
1813
- const { homeConfig: V, projectConfig: i, currentProject: X, tenantList: b, personalMenuConfig: s, fixedAppsConfig: q } = N;
1814
- u.value = ((o = ve()) == null ? void 0 : o.flag) !== 4 && b && b.length > 1;
1819
+ const { homeConfig: V, projectConfig: i, currentProject: b, tenantList: X, personalMenuConfig: s, fixedAppsConfig: q } = N;
1820
+ u.value = ((o = ve()) == null ? void 0 : o.flag) !== 4 && X && X.length > 1;
1815
1821
  const D = [...W9];
1816
1822
  D.forEach((x) => {
1817
1823
  V != null && V.appAlias && x.value === RA && (x.label = V.appAlias), V != null && V.homeAlias && x.value === rf && (x.label = V.homeAlias);
@@ -1823,9 +1829,9 @@ const jf = (e, A = "") => {
1823
1829
  filterNodeMethod: (x) => x.type === 7,
1824
1830
  // 树打平之后保留的数据
1825
1831
  filterFlatCondition: (x) => x.type === 7
1826
- }), L.nav.setProjects(i || []), X && L.nav.setActiveProject(X));
1832
+ }), L.nav.setProjects(i || []), b && L.nav.setActiveProject(b));
1827
1833
  const y = af() ?? {}, E = y != null && y.headPicture ? yf(y.headPicture) : void 0;
1828
- z.value = [...Vv], X && X.id !== 0 ? await n("personCenter", "", "/userInfo") || (z.value = z.value.filter((I) => I.value !== "1")) : z.value = z.value.filter((x) => x.value !== "1"), L.nav.setUserInfo({ headPicture: E, commandList: z.value }), L.nav.setSearchConfig({
1834
+ z.value = [...Vv], b && b.id !== 0 ? await n("personCenter", "", "/userInfo") || (z.value = z.value.filter((I) => I.value !== "1")) : z.value = z.value.filter((x) => x.value !== "1"), L.nav.setUserInfo({ headPicture: E, commandList: z.value }), L.nav.setSearchConfig({
1829
1835
  getHistoryList: v,
1830
1836
  getSearchList: P
1831
1837
  });
@@ -1835,9 +1841,9 @@ const jf = (e, A = "") => {
1835
1841
  }), iA([{ key: "subAppList", value: l }])), a.value = !0;
1836
1842
  }), { loading: r, innerPage: d, commandList: z, layoutInited: a, initNextTick: () => new Promise((N) => {
1837
1843
  const V = async () => {
1838
- var b;
1839
- let i = ((b = f.meta) == null ? void 0 : b.showLayout) ?? !0, { showLayout: X = !0 } = f.query;
1840
- if (X === "false" && (X = !1), !i || !X || a.value) {
1844
+ var X;
1845
+ let i = ((X = f.meta) == null ? void 0 : X.showLayout) ?? !0, { showLayout: b = !0 } = f.query;
1846
+ if (b === "false" && (b = !1), !i || !b || a.value) {
1841
1847
  N();
1842
1848
  return;
1843
1849
  }
@@ -1895,37 +1901,37 @@ const jf = (e, A = "") => {
1895
1901
  let d = "", z = {};
1896
1902
  PA(
1897
1903
  () => e.currentRoute.value,
1898
- async (X) => {
1904
+ async (b) => {
1899
1905
  var E, l, o, x, I, B, Y;
1900
- const b = ((E = X.meta) == null ? void 0 : E.showLayout) ?? !0;
1901
- let s = ((l = X.query) == null ? void 0 : l.showLayout) ?? !0;
1902
- if (s === "false" && (s = !1), !b || !s || X.path === d && Ff(X.query, z)) return;
1903
- d = _A(X.path), z = _A(X.query);
1906
+ const X = ((E = b.meta) == null ? void 0 : E.showLayout) ?? !0;
1907
+ let s = ((l = b.query) == null ? void 0 : l.showLayout) ?? !0;
1908
+ if (s === "false" && (s = !1), !X || !s || b.path === d && Ff(b.query, z)) return;
1909
+ d = _A(b.path), z = _A(b.query);
1904
1910
  const q = J().currentSubAppCode ?? "";
1905
1911
  if (!q) return;
1906
- const D = ((o = X.query) == null ? void 0 : o.menu) ?? ((x = XA()) == null ? void 0 : x.currentCode) ?? "";
1912
+ const D = ((o = b.query) == null ? void 0 : o.menu) ?? ((x = XA()) == null ? void 0 : x.currentCode) ?? "";
1907
1913
  if (!D) return;
1908
1914
  const y = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
1909
1915
  y && JSON.stringify(y) !== "{}" && (v.value = (I = y[q][D]) != null && I.fontColor ? y[q][D].fontColor : A, P.value = (B = y[q][D]) != null && B.backgroundColor ? y[q][D].backgroundColor : f, r.value = (Y = y[q][D]) != null && Y.backgroundColor ? y[q][D].backgroundColor : n);
1910
1916
  }
1911
1917
  );
1912
- const { deleteApp: t } = vf(), { entryMenu: u } = wf(), { reloadRoute: p, unloadRoute: a } = qn(), H = (X) => {
1918
+ const { deleteApp: t } = vf(), { entryMenu: u } = wf(), { reloadRoute: m, unloadRoute: a } = qn(), H = (b) => {
1913
1919
  var D;
1914
- const b = pA(xf(X.applicationCode)).find((y) => y.code === X.code), q = (((D = XA().tabMap) == null ? void 0 : D[X.applicationCode]) ?? []).find((y) => y.code === X.code);
1915
- u({ currentMenu: b, route: { path: q.path, query: q.query ?? {} } });
1916
- }, N = (X) => {
1917
- if (!X || !X.length) return;
1918
- const b = X.filter((q) => !q.path.startsWith(jA)).map((q) => q.path);
1919
- a(b), X.filter((q) => q.path.startsWith(jA)).map((q) => q.path).forEach((q) => L.iframeView.triggerEventListener("onRefreshPage", q));
1920
- }, V = (X) => {
1921
- const b = J().currentSubAppCode ?? "";
1920
+ const X = pA(xf(b.applicationCode)).find((y) => y.code === b.code), q = (((D = XA().tabMap) == null ? void 0 : D[b.applicationCode]) ?? []).find((y) => y.code === b.code);
1921
+ u({ currentMenu: X, route: { path: q.path, query: q.query ?? {} } });
1922
+ }, N = (b) => {
1923
+ if (!b || !b.length) return;
1924
+ const X = b.filter((q) => !q.path.startsWith(jA)).map((q) => q.path);
1925
+ a(X), b.filter((q) => q.path.startsWith(jA)).map((q) => q.path).forEach((q) => L.iframeView.triggerEventListener("onRefreshPage", q));
1926
+ }, V = (b) => {
1927
+ const X = J().currentSubAppCode ?? "";
1922
1928
  fA.innerSet = !0;
1923
- const s = XA(), q = s.tabMap[b], D = q.findIndex((I) => I.code === X.data.code);
1929
+ const s = XA(), q = s.tabMap[X], D = q.findIndex((I) => I.code === b.data.code);
1924
1930
  if (D === -1) return;
1925
1931
  const y = () => {
1926
1932
  var Y;
1927
- let B = (((Y = J().appcategorys) == null ? void 0 : Y.map((dA) => dA.apps).flat()) ?? []).find((dA) => dA.code === b);
1928
- B = { ...B, value: B.code, label: B.name }, t(B), L.nav.removeItem(b);
1933
+ let B = (((Y = J().appcategorys) == null ? void 0 : Y.map((dA) => dA.apps).flat()) ?? []).find((dA) => dA.code === X);
1934
+ B = { ...B, value: B.code, label: B.name }, t(B), L.nav.removeItem(X);
1929
1935
  };
1930
1936
  ({
1931
1937
  me: async (I) => {
@@ -1935,7 +1941,7 @@ const jf = (e, A = "") => {
1935
1941
  }
1936
1942
  const B = s.currentCode;
1937
1943
  let Y = null;
1938
- B === I.value && (D + 1 === q.length ? q[D - 1] && (Y = q[D - 1]) : q[D + 1] && (Y = q[D + 1])), q.splice(D, 1), N([I]), bA([{ key: `tabMap:${b}`, value: q }]), Y ? H(Y) : bA([{ key: `preTab:${b}`, value: {} }]);
1944
+ B === I.value && (D + 1 === q.length ? q[D - 1] && (Y = q[D - 1]) : q[D + 1] && (Y = q[D + 1])), q.splice(D, 1), N([I]), bA([{ key: `tabMap:${X}`, value: q }]), Y ? H(Y) : bA([{ key: `preTab:${X}`, value: {} }]);
1939
1945
  },
1940
1946
  all: y,
1941
1947
  other: async (I) => {
@@ -1945,7 +1951,7 @@ const jf = (e, A = "") => {
1945
1951
  query: B.query
1946
1952
  }), L.menu.setActiveItem(B.menuId), L.tab.setActiveItem(B.code);
1947
1953
  const Y = q.filter((dA) => dA.code !== I.value);
1948
- Y.forEach((dA) => L.tab.removeItem(dA.code)), N(Y), bA([{ key: `tabMap:${b}`, value: [B] }]), H(B);
1954
+ Y.forEach((dA) => L.tab.removeItem(dA.code)), N(Y), bA([{ key: `tabMap:${X}`, value: [B] }]), H(B);
1949
1955
  },
1950
1956
  right: async (I) => {
1951
1957
  const B = s.currentCode;
@@ -1954,41 +1960,41 @@ const jf = (e, A = "") => {
1954
1960
  H(LA);
1955
1961
  }
1956
1962
  const Y = q.slice(D + 1);
1957
- Y.forEach((dA) => L.tab.removeItem(dA.code)), N(Y), q.splice(D + 1), bA([{ key: `tabMap:${b}`, value: q }]);
1963
+ Y.forEach((dA) => L.tab.removeItem(dA.code)), N(Y), q.splice(D + 1), bA([{ key: `tabMap:${X}`, value: q }]);
1958
1964
  }
1959
- })[X.type](X.data);
1965
+ })[b.type](b.data);
1960
1966
  };
1961
- L.tab.addEventListener("onItemClick", async (X) => {
1962
- XA().currentCode !== X.currentCode && (fA.innerSet = !0, H(X));
1963
- }), L.tab.addEventListener("onItemRemove", (X) => {
1964
- const b = XA(), s = J().currentSubAppCode ?? "";
1965
- b.tabMap[s].findIndex((y) => y.code === X.code) !== -1 && (Of(X.applicationCode, [X.code]), V({ type: "me", data: X }));
1966
- }), L.tab.addEventListener("onMenuClick", (X) => {
1967
- let b = [];
1968
- const s = XA().tabMap[X.applicationCode] ?? [];
1969
- if (X.type.key === "right") {
1970
- const q = s.findIndex((D) => D.code === X.data.value);
1971
- b = s.slice(q + 1);
1967
+ L.tab.addEventListener("onItemClick", async (b) => {
1968
+ XA().currentCode !== b.currentCode && (fA.innerSet = !0, H(b));
1969
+ }), L.tab.addEventListener("onItemRemove", (b) => {
1970
+ const X = XA(), s = J().currentSubAppCode ?? "";
1971
+ X.tabMap[s].findIndex((y) => y.code === b.code) !== -1 && (Of(b.applicationCode, [b.code]), V({ type: "me", data: b }));
1972
+ }), L.tab.addEventListener("onMenuClick", (b) => {
1973
+ let X = [];
1974
+ const s = XA().tabMap[b.applicationCode] ?? [];
1975
+ if (b.type.key === "right") {
1976
+ const q = s.findIndex((D) => D.code === b.data.value);
1977
+ X = s.slice(q + 1);
1972
1978
  }
1973
- X.type.key === "other" && (b = s.filter((q) => q.code !== X.data.value)), X.type.key === "all" && (b = [...s]), Of(
1974
- X.applicationCode,
1975
- b.map((q) => q.code)
1976
- ), V({ type: X.type.key, data: X.data });
1977
- }), L.tab.addEventListener("onPageRefresh", async (X) => {
1978
- if (!X) return;
1979
- if (X.path.startsWith(jA)) {
1979
+ b.type.key === "other" && (X = s.filter((q) => q.code !== b.data.value)), b.type.key === "all" && (X = [...s]), Of(
1980
+ b.applicationCode,
1981
+ X.map((q) => q.code)
1982
+ ), V({ type: b.type.key, data: b.data });
1983
+ }), L.tab.addEventListener("onPageRefresh", async (b) => {
1984
+ if (!b) return;
1985
+ if (b.path.startsWith(jA)) {
1980
1986
  L.iframeView.triggerEventListener("onRefreshCurrentPage");
1981
1987
  return;
1982
1988
  }
1983
- Of(X.applicationCode, [X.code]);
1984
- const b = pA(xf(X.applicationCode)).find((D) => D.code === X.code);
1985
- if (!b) return;
1986
- if (b.routeUrl !== X.path) {
1987
- p([X.path]), a([`/${X.applicationPath}${b.routeUrl}`]), await u({ currentMenu: b });
1989
+ Of(b.applicationCode, [b.code]);
1990
+ const X = pA(xf(b.applicationCode)).find((D) => D.code === b.code);
1991
+ if (!X) return;
1992
+ if (X.routeUrl !== b.path) {
1993
+ m([b.path]), a([`/${b.applicationPath}${X.routeUrl}`]), await u({ currentMenu: X });
1988
1994
  return;
1989
1995
  }
1990
- const s = { app: b.applicationCode, menu: b.code }, q = { ...X.query };
1991
- Ff(s, q) || await u({ currentMenu: b }), p([X.path]);
1996
+ const s = { app: X.applicationCode, menu: X.code }, q = { ...b.query };
1997
+ Ff(s, q) || await u({ currentMenu: X }), m([b.path]);
1992
1998
  });
1993
1999
  const { enter: i } = sf();
1994
2000
  return L.tab.addEventListener("onToggleFullScreen", i), { fontColor: v, backgroudColor: P, borderColor: r };
@@ -2022,29 +2028,29 @@ const jf = (e, A = "") => {
2022
2028
  }, z = async (a) => {
2023
2029
  if (a.routeUrl && !r.includes(a.routeUrl)) return !0;
2024
2030
  const H = a.code ?? "", V = (J().subAppList ?? []).find((q) => q.code === H);
2025
- let i = [], X = [], b = !1;
2031
+ let i = [], b = [], X = !1;
2026
2032
  if (V && (i = V.menus ?? []), !i.length) {
2027
2033
  const { menus: q, originalMenus: D, err: y } = await le(H);
2028
2034
  if (y) return !1;
2029
- i = q ?? [], X = D ?? [];
2035
+ i = q ?? [], b = D ?? [];
2030
2036
  }
2031
2037
  if (i.length ? jf(i) || (await zf({
2032
2038
  title: Q("提示"),
2033
2039
  content: Q("此应用菜单已过期/已收回/配置有误") + "<br/>" + Q("无法使用")
2034
- }), b = !0) : (await zf({ title: Q("提示"), content: Q("此应用未配置菜单/无菜单权限") + "<br/>" + Q("无法使用") }), b = !0), b) return !1;
2035
- const s = { ...a, menus: i, originalMenus: X };
2040
+ }), X = !0) : (await zf({ title: Q("提示"), content: Q("此应用未配置菜单/无菜单权限") + "<br/>" + Q("无法使用") }), X = !0), X) return !1;
2041
+ const s = { ...a, menus: i, originalMenus: b };
2036
2042
  return iA([{ key: "subAppList", value: s }]), !0;
2037
2043
  }, t = async (a) => {
2038
2044
  var B, Y, dA, LA, pf;
2039
2045
  const { microApp: H = null, menuCode: N = "", menuPath: V = "", route: i = {} } = a;
2040
- let X = i;
2046
+ let b = i;
2041
2047
  if (!H && V) {
2042
2048
  if (d(), !(r && r.find((AA) => V.startsWith("/" + AA) || V.startsWith(AA)))) return;
2043
- await e.push({ path: V, query: X.query });
2049
+ await e.push({ path: V, query: b.query });
2044
2050
  return;
2045
2051
  }
2046
- const b = ((B = X.meta) == null ? void 0 : B.showLayout) ?? !0;
2047
- let s = ((Y = X.query) == null ? void 0 : Y.showLayout) ?? !0;
2052
+ const X = ((B = b.meta) == null ? void 0 : B.showLayout) ?? !0;
2053
+ let s = ((Y = b.query) == null ? void 0 : Y.showLayout) ?? !0;
2048
2054
  s === "false" && (s = !1);
2049
2055
  const q = (H == null ? void 0 : H.openType) ?? 1, D = (H == null ? void 0 : H.type) ?? 1;
2050
2056
  if (H.routeUrl && !r.includes(H.routeUrl)) {
@@ -2058,7 +2064,7 @@ const jf = (e, A = "") => {
2058
2064
  const qA = { ...vA, value: vA.code, label: vA.name };
2059
2065
  L.nav.appendItem(qA);
2060
2066
  }), L.nav.setActiveItem(H.code), H.routeUrl.includes("entrance=main")) {
2061
- await e.push({ path: H.routeUrl, query: { ...X.query, app: H.code } });
2067
+ await e.push({ path: H.routeUrl, query: { ...b.query, app: H.code } });
2062
2068
  return;
2063
2069
  }
2064
2070
  if (q === 1 && D === 2) {
@@ -2076,7 +2082,7 @@ const jf = (e, A = "") => {
2076
2082
  await e.push({
2077
2083
  path: qA,
2078
2084
  query: {
2079
- ...X.query,
2085
+ ...b.query,
2080
2086
  app: H.code
2081
2087
  }
2082
2088
  });
@@ -2089,11 +2095,11 @@ const jf = (e, A = "") => {
2089
2095
  currentMenu: l = null,
2090
2096
  microPath: o = "",
2091
2097
  query: x = {}
2092
- } = await Yr({ microApp: H, menuCode: N, menuPath: V, route: X });
2093
- if (l && (X = {
2098
+ } = await Yr({ microApp: H, menuCode: N, menuPath: V, route: b });
2099
+ if (l && (b = {
2094
2100
  path: o || `/${l.applicationPath}${l.routeUrl}`.replace(/\/\//g, "/"),
2095
2101
  query: { ...x, app: l.applicationCode, menu: l.code },
2096
- meta: { ...(X == null ? void 0 : X.meta) ?? {} }
2102
+ meta: { ...(b == null ? void 0 : b.meta) ?? {} }
2097
2103
  }), E && (E == null ? void 0 : E.code) !== (H == null ? void 0 : H.code)) {
2098
2104
  if (E.fixed && (await e.push(E.path), d(), L.nav.setActiveItem(E.path)), !E.fixed) {
2099
2105
  const rA = (LA = J().subAppList) == null ? void 0 : LA.find((qA) => qA.code === E.code), AA = XA().preTab[E.code], vA = { ...(AA == null ? void 0 : AA.query) ?? {} };
@@ -2106,13 +2112,13 @@ const jf = (e, A = "") => {
2106
2112
  await e.push({
2107
2113
  path: V,
2108
2114
  query: {
2109
- ...X.query,
2115
+ ...b.query,
2110
2116
  app: I.code
2111
2117
  }
2112
2118
  });
2113
2119
  return;
2114
2120
  }
2115
- if (b && s) {
2121
+ if (X && s) {
2116
2122
  (pf = J().subAppList) == null || pf.forEach((AA) => {
2117
2123
  const vA = { ...AA, value: AA.code, label: AA.name };
2118
2124
  L.nav.appendItem(vA);
@@ -2128,7 +2134,7 @@ const jf = (e, A = "") => {
2128
2134
  } else
2129
2135
  L.tab.setItems([]);
2130
2136
  }
2131
- A({ currentMenu: l, microPath: o, route: X });
2137
+ A({ currentMenu: l, microPath: o, route: b });
2132
2138
  }, u = async (a) => {
2133
2139
  var H;
2134
2140
  if (fA.innerSet = !0, a.fixed) {
@@ -2142,8 +2148,8 @@ const jf = (e, A = "") => {
2142
2148
  return;
2143
2149
  }
2144
2150
  if (!a.fixed) {
2145
- const N = (H = J().subAppList) == null ? void 0 : H.find((b) => b.code === a.code), V = XA().preTab[a.code], i = (V == null ? void 0 : V.code) ?? "", X = { ...(V == null ? void 0 : V.query) ?? {} };
2146
- await t({ microApp: N, menuCode: i, route: { query: X } });
2151
+ const N = (H = J().subAppList) == null ? void 0 : H.find((X) => X.code === a.code), V = XA().preTab[a.code], i = (V == null ? void 0 : V.code) ?? "", b = { ...(V == null ? void 0 : V.query) ?? {} };
2152
+ await t({ microApp: N, menuCode: i, route: { query: b } });
2147
2153
  }
2148
2154
  };
2149
2155
  return {
@@ -2151,28 +2157,28 @@ const jf = (e, A = "") => {
2151
2157
  entryApp: t,
2152
2158
  changeApp: u,
2153
2159
  deleteApp: async (a) => {
2154
- var X;
2160
+ var b;
2155
2161
  const H = J();
2156
- if (!((X = H.subAppList) != null && X.length)) return;
2157
- const N = H.subAppList.findIndex((b) => b.code === a.code);
2162
+ if (!((b = H.subAppList) != null && b.length)) return;
2163
+ const N = H.subAppList.findIndex((X) => X.code === a.code);
2158
2164
  if (N === -1) return;
2159
2165
  const V = XA().tabMap[a.code] ?? [];
2160
2166
  if (V.length) {
2161
- const b = V.filter((q) => !q.path.startsWith(jA)).map((q) => q.path);
2162
- f(b), V.filter((q) => q.path.startsWith(jA)).map((q) => q.path).forEach((q) => L.iframeView.triggerEventListener("onRefreshPage", q));
2167
+ const X = V.filter((q) => !q.path.startsWith(jA)).map((q) => q.path);
2168
+ f(X), V.filter((q) => q.path.startsWith(jA)).map((q) => q.path).forEach((q) => L.iframeView.triggerEventListener("onRefreshPage", q));
2163
2169
  }
2164
2170
  let i = null;
2165
2171
  if (H.currentSubAppCode === a.code && (N + 1 !== H.subAppList.length ? H.subAppList[N + 1] && (i = H.subAppList[N + 1]) : H.subAppList[N - 1] && (i = H.subAppList[N - 1])), H.subAppList.splice(N, 1), iA([{ key: "subAppList", value: H.subAppList }]), bA([
2166
2172
  { key: `preTab:${a.code}`, value: {} },
2167
2173
  { key: `tabMap:${a.code}`, value: [] }
2168
2174
  ]), i) {
2169
- const b = { ...i, value: i.code, label: i.name };
2170
- await u(b), L.nav.setActiveItem(i.code);
2175
+ const X = { ...i, value: i.code, label: i.name };
2176
+ await u(X), L.nav.setActiveItem(i.code);
2171
2177
  }
2172
2178
  if (!H.subAppList.length) {
2173
2179
  L.menu.setItems([]), L.tab.setItems([]);
2174
- const b = W9.find((s) => s.value === RA);
2175
- b && u(b), ae(), k9();
2180
+ const X = W9.find((s) => s.value === RA);
2181
+ X && u(X), ae(), k9();
2176
2182
  }
2177
2183
  }
2178
2184
  };
@@ -2184,14 +2190,14 @@ const jf = (e, A = "") => {
2184
2190
  const { currentMenu: r, route: d = {}, microPath: z = "" } = P;
2185
2191
  if (!r) return;
2186
2192
  let t = { ...d.query, app: r.applicationCode, menu: r.code };
2187
- const u = (r == null ? void 0 : r.openType) ?? 1, p = (r == null ? void 0 : r.type) ?? 1;
2193
+ const u = (r == null ? void 0 : r.openType) ?? 1, m = (r == null ? void 0 : r.type) ?? 1;
2188
2194
  let a = "";
2189
2195
  if (u === 1)
2190
- if (p === 1)
2196
+ if (m === 1)
2191
2197
  if (r.routeUrl.startsWith(jA)) {
2192
2198
  const i = $n(r.routeUrl, "iframeSrc");
2193
- if (a = `${jA}-${r.code}`, !e.options.routes.find((X) => X.path === a)) {
2194
- const X = {
2199
+ if (a = `${jA}-${r.code}`, !e.options.routes.find((b) => b.path === a)) {
2200
+ const b = {
2195
2201
  path: a,
2196
2202
  name: a,
2197
2203
  component: tA(ne, {
@@ -2199,14 +2205,14 @@ const jf = (e, A = "") => {
2199
2205
  }),
2200
2206
  meta: { isIframe: !0, keepAlive: !0 }
2201
2207
  };
2202
- e.addRoute(X), e.options.routes.push(X);
2208
+ e.addRoute(b), e.options.routes.push(b);
2203
2209
  }
2204
2210
  await e.push({ path: a, query: t });
2205
2211
  } else r.applicationPath && (a = z || r.routeUrl, a = `/${r.applicationPath}${a}`.replace(/\/\//g, "/"), await e.push({ path: a, query: t }));
2206
2212
  else {
2207
2213
  const i = Cf(hf(Sf(r.routeUrl)));
2208
- if (a = `${jA}-${r.code}`, !e.options.routes.find((X) => X.path === a)) {
2209
- const X = {
2214
+ if (a = `${jA}-${r.code}`, !e.options.routes.find((b) => b.path === a)) {
2215
+ const b = {
2210
2216
  path: a,
2211
2217
  name: a,
2212
2218
  component: tA(ne, {
@@ -2214,13 +2220,13 @@ const jf = (e, A = "") => {
2214
2220
  }),
2215
2221
  meta: { isIframe: !0, keepAlive: !0 }
2216
2222
  };
2217
- e.addRoute(X), e.options.routes.push(X);
2223
+ e.addRoute(b), e.options.routes.push(b);
2218
2224
  }
2219
2225
  await e.push({ path: a, query: t });
2220
2226
  }
2221
2227
  if (u === 2) {
2222
- let i = p === 1 ? `/${r.applicationPath}${r.routeUrl}`.replace(/\/\//g, "/") : r.routeUrl;
2223
- i = Cf(hf(Sf(i))), fA.innerSet ? (a = I9, await e.push({ path: a, query: t }), i && window.open(i, "_blank")) : p === 1 && (a = i, t = { ...t, showLayout: !1 }, await e.push({
2228
+ let i = m === 1 ? `/${r.applicationPath}${r.routeUrl}`.replace(/\/\//g, "/") : r.routeUrl;
2229
+ i = Cf(hf(Sf(i))), fA.innerSet ? (a = I9, await e.push({ path: a, query: t }), i && window.open(i, "_blank")) : m === 1 && (a = i, t = { ...t, showLayout: !1 }, await e.push({
2224
2230
  path: a,
2225
2231
  query: t
2226
2232
  }));
@@ -2266,9 +2272,9 @@ const jf = (e, A = "") => {
2266
2272
  const { entryApp: n } = vf(), v = Af();
2267
2273
  let { mainAppName: P = "", microAppName: r = "", microApps: d = [] } = GA();
2268
2274
  !P && r && (d = [{ name: r }]);
2269
- const z = async (p) => {
2275
+ const z = async (m) => {
2270
2276
  var q, D, y, E;
2271
- let a = { ...p }, { showLayout: H = !0 } = a.query;
2277
+ let a = { ...m }, { showLayout: H = !0 } = a.query;
2272
2278
  H === "false" && (H = !1);
2273
2279
  const N = async () => {
2274
2280
  var x, I;
@@ -2298,10 +2304,10 @@ const jf = (e, A = "") => {
2298
2304
  return;
2299
2305
  }
2300
2306
  }
2301
- const i = await N(), X = i.map((l) => l.code), b = ((q = a.query) == null ? void 0 : q.app) ?? "", s = ((D = J()) == null ? void 0 : D.subAppList) ?? [];
2307
+ const i = await N(), b = i.map((l) => l.code), X = ((q = a.query) == null ? void 0 : q.app) ?? "", s = ((D = J()) == null ? void 0 : D.subAppList) ?? [];
2302
2308
  if (s.length) {
2303
- const l = s.filter((x) => x.code !== b && !X.includes(x.code)), o = s.filter(
2304
- (x) => b === x.code || X.includes(x.code)
2309
+ const l = s.filter((x) => x.code !== X && !b.includes(x.code)), o = s.filter(
2310
+ (x) => X === x.code || b.includes(x.code)
2305
2311
  );
2306
2312
  iA([{ key: "subAppList", value: o }]), l && l.length && l.forEach((x) => {
2307
2313
  bA([
@@ -2357,13 +2363,13 @@ const jf = (e, A = "") => {
2357
2363
  let t = "", u = {};
2358
2364
  PA(
2359
2365
  () => v.currentRoute.value,
2360
- async (p) => {
2361
- if (!(p.path === t && Ff(p.query, u))) {
2362
- if (t = _A(p.path), u = _A(p.query), await f(), fA.innerSet) {
2366
+ async (m) => {
2367
+ if (!(m.path === t && Ff(m.query, u))) {
2368
+ if (t = _A(m.path), u = _A(m.query), await f(), fA.innerSet) {
2363
2369
  fA.innerSet = !1;
2364
2370
  return;
2365
2371
  }
2366
- z(p);
2372
+ z(m);
2367
2373
  }
2368
2374
  }
2369
2375
  );
@@ -2390,12 +2396,12 @@ const jf = (e, A = "") => {
2390
2396
  logout: "true"
2391
2397
  };
2392
2398
  f.ssoLocale && (z.locale = "locale");
2393
- const t = Object.keys(z).map((p) => `${p}=${z[p]}`).join("&"), u = `${f.baseURL}${r.logout}?${t}`;
2399
+ const t = Object.keys(z).map((m) => `${m}=${z[m]}`).join("&"), u = `${f.baseURL}${r.logout}?${t}`;
2394
2400
  window.__isAutoCloseApp = !1, location.replace(u), sessionStorage.clear(), localStorage.removeItem("idelTime"), Pv();
2395
2401
  }, { entryApp: v } = vf(), P = async () => {
2396
- const r = "personCenter", z = (J().appcategorys || []).map((H) => H.apps).flat(), { originalMenus: t = [] } = await le(r), p = pA(t).filter((H) => H.isMenu && H.routeUrl).find((H) => H.routeUrl === "/userInfo");
2397
- if (p != null && p.disable || p != null && p.expired) {
2398
- const { title: H, content: N, desc: V } = await Oe(p);
2402
+ const r = "personCenter", z = (J().appcategorys || []).map((H) => H.apps).flat(), { originalMenus: t = [] } = await le(r), m = pA(t).filter((H) => H.isMenu && H.routeUrl).find((H) => H.routeUrl === "/userInfo");
2403
+ if (m != null && m.disable || m != null && m.expired) {
2404
+ const { title: H, content: N, desc: V } = await Oe(m);
2399
2405
  await zf({ title: H, content: N, desc: V });
2400
2406
  return;
2401
2407
  }
@@ -2432,20 +2438,20 @@ const jf = (e, A = "") => {
2432
2438
  const [z, t] = await vz().run({ tenant: d });
2433
2439
  if (z) return;
2434
2440
  A.value = !1;
2435
- const { access_token: u = "", refresh_token: p = "", expires_in: a = 0, sub: H = "", name: N = "", flag: V = "", tenant: i = "" } = t, X = {
2441
+ const { access_token: u = "", refresh_token: m = "", expires_in: a = 0, sub: H = "", name: N = "", flag: V = "", tenant: i = "" } = t, b = {
2436
2442
  accessToken: u,
2437
2443
  accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(a) * 1e3,
2438
- refreshToken: p,
2444
+ refreshToken: m,
2439
2445
  info: t
2440
2446
  };
2441
- tv().save(X), j9(X);
2442
- const b = {
2447
+ tv().save(b), j9(b);
2448
+ const X = {
2443
2449
  id: H,
2444
2450
  name: N,
2445
2451
  flag: V,
2446
2452
  tenantId: i
2447
2453
  };
2448
- sessionStorage.setItem("hotentUserInfo", JSON.stringify(b)), zv(u);
2454
+ sessionStorage.setItem("hotentUserInfo", JSON.stringify(X)), zv(u);
2449
2455
  let s = "";
2450
2456
  if (e != null && e.ssoLocale)
2451
2457
  s = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${d}`;
@@ -2481,8 +2487,8 @@ const jf = (e, A = "") => {
2481
2487
  return L.nav.addEventListener("searchToPage", async (n) => {
2482
2488
  const { item: v, keyword: P, cb: r } = n;
2483
2489
  if (v != null && v.disable || v != null && v.expired) {
2484
- const { title: u, content: p, desc: a } = await Oe(v);
2485
- await zf({ title: u, content: p, desc: a });
2490
+ const { title: u, content: m, desc: a } = await Oe(v);
2491
+ await zf({ title: u, content: m, desc: a });
2486
2492
  return;
2487
2493
  }
2488
2494
  await dz().run({ searchVal: P, clickData: v });
@@ -2631,14 +2637,14 @@ const Oz = mz.post("data/device-auth"), Rz = /* @__PURE__ */ aA({
2631
2637
  }, z = () => {
2632
2638
  n("itemClick");
2633
2639
  }, t = OA(() => `calc(100% / ${Math.sqrt(f.gridNum)})`);
2634
- return (u, p) => (k(), cA(
2640
+ return (u, m) => (k(), cA(
2635
2641
  "div",
2636
2642
  {
2637
2643
  ref_key: "containerRef",
2638
2644
  ref: v,
2639
2645
  class: En(["wrapper", { "is-active": f.active }]),
2640
- onDblclick: p[0] || (p[0] = (a) => d()),
2641
- onClick: p[1] || (p[1] = (a) => z())
2646
+ onDblclick: m[0] || (m[0] = (a) => d()),
2647
+ onClick: m[1] || (m[1] = (a) => z())
2642
2648
  },
2643
2649
  [
2644
2650
  EA(u.$slots, "default", {}, void 0, !0)
@@ -2838,7 +2844,7 @@ const Oz = mz.post("data/device-auth"), Rz = /* @__PURE__ */ aA({
2838
2844
  const f = e, n = A, v = O(!0), P = O(), r = O(!1), d = O(), z = OA(() => {
2839
2845
  var s;
2840
2846
  return (s = d.value) == null ? void 0 : s.video;
2841
- }), t = O(!1), u = O(!0), p = (s) => {
2847
+ }), t = O(!1), u = O(!0), m = (s) => {
2842
2848
  P.value = s, P.value.on(window.mpegts.Events.ERROR, (q) => {
2843
2849
  });
2844
2850
  }, a = () => {
@@ -2859,9 +2865,9 @@ const Oz = mz.post("data/device-auth"), Rz = /* @__PURE__ */ aA({
2859
2865
  }
2860
2866
  }, i = (s) => {
2861
2867
  n("directionControl", s);
2862
- }, X = (s) => {
2868
+ }, b = (s) => {
2863
2869
  n("zoomControl", s);
2864
- }, b = (s) => f.authType.includes(s);
2870
+ }, X = (s) => f.authType.includes(s);
2865
2871
  return PA(
2866
2872
  () => z.value,
2867
2873
  () => {
@@ -2939,7 +2945,7 @@ const Oz = mz.post("data/device-auth"), Rz = /* @__PURE__ */ aA({
2939
2945
  ref_key: "dasLivePlayerRef",
2940
2946
  ref: d,
2941
2947
  muted: v.value,
2942
- onLoaded: p,
2948
+ onLoaded: m,
2943
2949
  src: f.videoUrl
2944
2950
  }, null, 8, ["muted", "src"])) : G("v-if", !0),
2945
2951
  Z("div", Mz, [
@@ -2984,7 +2990,7 @@ const Oz = mz.post("data/device-auth"), Rz = /* @__PURE__ */ aA({
2984
2990
  _: 1
2985
2991
  /* STABLE */
2986
2992
  }, 8, ["content"]),
2987
- b("control") ? (k(), h(c(uA), {
2993
+ X("control") ? (k(), h(c(uA), {
2988
2994
  key: 0,
2989
2995
  content: c(Q)("聚焦-")
2990
2996
  }, {
@@ -2993,13 +2999,13 @@ const Oz = mz.post("data/device-auth"), Rz = /* @__PURE__ */ aA({
2993
2999
  key: 0,
2994
3000
  class: "icon icon-shrink",
2995
3001
  icon: "shrink",
2996
- onClick: q[0] || (q[0] = eA((D) => X("zoomOut"), ["stop"]))
3002
+ onClick: q[0] || (q[0] = eA((D) => b("zoomOut"), ["stop"]))
2997
3003
  })) : G("v-if", !0)
2998
3004
  ]),
2999
3005
  _: 1
3000
3006
  /* STABLE */
3001
3007
  }, 8, ["content"])) : G("v-if", !0),
3002
- b("control") ? (k(), h(c(uA), {
3008
+ X("control") ? (k(), h(c(uA), {
3003
3009
  key: 1,
3004
3010
  content: c(Q)("聚焦+")
3005
3011
  }, {
@@ -3008,13 +3014,13 @@ const Oz = mz.post("data/device-auth"), Rz = /* @__PURE__ */ aA({
3008
3014
  key: 0,
3009
3015
  class: "icon icon-enlarge",
3010
3016
  icon: "enlarge",
3011
- onClick: q[1] || (q[1] = eA((D) => X("zoomIn"), ["stop"]))
3017
+ onClick: q[1] || (q[1] = eA((D) => b("zoomIn"), ["stop"]))
3012
3018
  })) : G("v-if", !0)
3013
3019
  ]),
3014
3020
  _: 1
3015
3021
  /* STABLE */
3016
3022
  }, 8, ["content"])) : G("v-if", !0),
3017
- b("control") ? (k(), h(c(uA), {
3023
+ X("control") ? (k(), h(c(uA), {
3018
3024
  key: 2,
3019
3025
  content: c(Q)("方向控制")
3020
3026
  }, {
@@ -3122,10 +3128,10 @@ function Gz(e) {
3122
3128
  videoUrl: z,
3123
3129
  onDirectionControl: t,
3124
3130
  onZoomControl: u,
3125
- loading: p
3131
+ loading: m
3126
3132
  }) => M(Bz, {
3127
3133
  type: "live",
3128
- loading: p,
3134
+ loading: m,
3129
3135
  videoUrl: z,
3130
3136
  title: d.deviceName,
3131
3137
  onDirectionControl: t,
@@ -3234,10 +3240,10 @@ const Uz = /* @__PURE__ */ aA({
3234
3240
  var u;
3235
3241
  if ((t == null ? void 0 : t.project) === P) {
3236
3242
  e.value = t.layout;
3237
- let p = {
3243
+ let m = {
3238
3244
  projectId: P,
3239
3245
  deviceIds: t == null ? void 0 : t.deviceId
3240
- }, H = (await n(p)).map((N) => {
3246
+ }, H = (await n(m)).map((N) => {
3241
3247
  let V = N.lookupOrOperation == 1;
3242
3248
  return {
3243
3249
  id: N.id,
@@ -3387,10 +3393,10 @@ class Mf {
3387
3393
  return "";
3388
3394
  }
3389
3395
  }
3390
- var m;
3396
+ var p;
3391
3397
  (function(e) {
3392
3398
  e[e.Trace = 0] = "Trace", e[e.Debug = 1] = "Debug", e[e.Information = 2] = "Information", e[e.Warning = 3] = "Warning", e[e.Error = 4] = "Error", e[e.Critical = 5] = "Critical", e[e.None = 6] = "None";
3393
- })(m || (m = {}));
3399
+ })(p || (p = {}));
3394
3400
  class Xf {
3395
3401
  constructor() {
3396
3402
  }
@@ -3452,7 +3458,7 @@ function kA(e) {
3452
3458
  }
3453
3459
  async function ln(e, A, f, n, v, P) {
3454
3460
  const r = {}, [d, z] = $A();
3455
- r[d] = z, e.log(m.Trace, `(${A} transport) sending data. ${bf(v, P.logMessageContent)}.`);
3461
+ r[d] = z, e.log(p.Trace, `(${A} transport) sending data. ${bf(v, P.logMessageContent)}.`);
3456
3462
  const t = kA(v) ? "arraybuffer" : "text", u = await f.post(n, {
3457
3463
  content: v,
3458
3464
  headers: { ...r, ...P.headers },
@@ -3460,10 +3466,10 @@ async function ln(e, A, f, n, v, P) {
3460
3466
  timeout: P.timeout,
3461
3467
  withCredentials: P.withCredentials
3462
3468
  });
3463
- e.log(m.Trace, `(${A} transport) request complete. Response status: ${u.statusCode}.`);
3469
+ e.log(p.Trace, `(${A} transport) request complete. Response status: ${u.statusCode}.`);
3464
3470
  }
3465
3471
  function $z(e) {
3466
- return e === void 0 ? new Zf(m.Information) : e === null ? Xf.instance : e.log !== void 0 ? e : new Zf(e);
3472
+ return e === void 0 ? new Zf(p.Information) : e === null ? Xf.instance : e.log !== void 0 ? e : new Zf(e);
3467
3473
  }
3468
3474
  class Ad {
3469
3475
  constructor(A, f) {
@@ -3481,16 +3487,16 @@ class Zf {
3481
3487
  }
3482
3488
  log(A, f) {
3483
3489
  if (A >= this._minLevel) {
3484
- const n = `[${(/* @__PURE__ */ new Date()).toISOString()}] ${m[A]}: ${f}`;
3490
+ const n = `[${(/* @__PURE__ */ new Date()).toISOString()}] ${p[A]}: ${f}`;
3485
3491
  switch (A) {
3486
- case m.Critical:
3487
- case m.Error:
3492
+ case p.Critical:
3493
+ case p.Error:
3488
3494
  this.out.error(n);
3489
3495
  break;
3490
- case m.Warning:
3496
+ case p.Warning:
3491
3497
  this.out.warn(n);
3492
3498
  break;
3493
- case m.Information:
3499
+ case p.Information:
3494
3500
  this.out.info(n);
3495
3501
  break;
3496
3502
  default:
@@ -3575,7 +3581,7 @@ class rd extends Mf {
3575
3581
  if (A.timeout) {
3576
3582
  const z = A.timeout;
3577
3583
  v = setTimeout(() => {
3578
- f.abort(), this._logger.log(m.Warning, "Timeout from HTTP request."), n = new Re();
3584
+ f.abort(), this._logger.log(p.Warning, "Timeout from HTTP request."), n = new Re();
3579
3585
  }, z);
3580
3586
  }
3581
3587
  A.content === "" && (A.content = void 0), A.content && (A.headers = A.headers || {}, kA(A.content) ? A.headers["Content-Type"] = "application/octet-stream" : A.headers["Content-Type"] = "text/plain;charset=UTF-8");
@@ -3595,7 +3601,7 @@ class rd extends Mf {
3595
3601
  signal: f.signal
3596
3602
  });
3597
3603
  } catch (z) {
3598
- throw n || (this._logger.log(m.Warning, `Error from HTTP request. ${z}.`), z);
3604
+ throw n || (this._logger.log(p.Warning, `Error from HTTP request. ${z}.`), z);
3599
3605
  } finally {
3600
3606
  v && clearTimeout(v), A.abortSignal && (A.abortSignal.onabort = null);
3601
3607
  }
@@ -3647,9 +3653,9 @@ class td extends Mf {
3647
3653
  }), A.timeout && (v.timeout = A.timeout), v.onload = () => {
3648
3654
  A.abortSignal && (A.abortSignal.onabort = null), v.status >= 200 && v.status < 300 ? f(new Vn(v.status, v.statusText, v.response || v.responseText)) : n(new wA(v.response || v.responseText || v.statusText, v.status));
3649
3655
  }, v.onerror = () => {
3650
- this._logger.log(m.Warning, `Error from HTTP request. ${v.status}: ${v.statusText}.`), n(new wA(v.statusText, v.status));
3656
+ this._logger.log(p.Warning, `Error from HTTP request. ${v.status}: ${v.statusText}.`), n(new wA(v.statusText, v.status));
3651
3657
  }, v.ontimeout = () => {
3652
- this._logger.log(m.Warning, "Timeout from HTTP request."), n(new Re());
3658
+ this._logger.log(p.Warning, "Timeout from HTTP request."), n(new Re());
3653
3659
  }, v.send(A.content);
3654
3660
  }) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
3655
3661
  }
@@ -3848,7 +3854,7 @@ class Ne {
3848
3854
  }
3849
3855
  constructor(A, f, n, v, P, r, d) {
3850
3856
  this._nextKeepAlive = 0, this._freezeEventListener = () => {
3851
- this._logger.log(m.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");
3857
+ this._logger.log(p.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");
3852
3858
  }, $.isRequired(A, "connection"), $.isRequired(f, "logger"), $.isRequired(n, "protocol"), this.serverTimeoutInMilliseconds = P ?? cd, this.keepAliveIntervalInMilliseconds = r ?? ad, this._statefulReconnectBufferSize = d ?? id, this._logger = f, this._protocol = n, this.connection = A, this._reconnectPolicy = v, this._handshakeProtocol = new dd(), this.connection.onreceive = (z) => this._processIncomingData(z), this.connection.onclose = (z) => this._connectionClosed(z), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = K.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: g.Ping });
3853
3859
  }
3854
3860
  /** Indicates the state of the {@link HubConnection} to the server. */
@@ -3887,11 +3893,11 @@ class Ne {
3887
3893
  async _startWithStateTransitions() {
3888
3894
  if (this._connectionState !== K.Disconnected)
3889
3895
  return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));
3890
- this._connectionState = K.Connecting, this._logger.log(m.Debug, "Starting HubConnection.");
3896
+ this._connectionState = K.Connecting, this._logger.log(p.Debug, "Starting HubConnection.");
3891
3897
  try {
3892
- await this._startInternal(), C.isBrowser && window.document.addEventListener("freeze", this._freezeEventListener), this._connectionState = K.Connected, this._connectionStarted = !0, this._logger.log(m.Debug, "HubConnection connected successfully.");
3898
+ await this._startInternal(), C.isBrowser && window.document.addEventListener("freeze", this._freezeEventListener), this._connectionState = K.Connected, this._connectionStarted = !0, this._logger.log(p.Debug, "HubConnection connected successfully.");
3893
3899
  } catch (A) {
3894
- return this._connectionState = K.Disconnected, this._logger.log(m.Debug, `HubConnection failed to start successfully because of error '${A}'.`), Promise.reject(A);
3900
+ return this._connectionState = K.Disconnected, this._logger.log(p.Debug, `HubConnection failed to start successfully because of error '${A}'.`), Promise.reject(A);
3895
3901
  }
3896
3902
  }
3897
3903
  async _startInternal() {
@@ -3907,14 +3913,14 @@ class Ne {
3907
3913
  protocol: this._protocol.name,
3908
3914
  version: f
3909
3915
  };
3910
- if (this._logger.log(m.Debug, "Sending handshake request."), await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(n)), this._logger.log(m.Information, `Using HubProtocol '${this._protocol.name}'.`), this._cleanupTimeout(), this._resetTimeoutPeriod(), this._resetKeepAliveInterval(), await A, this._stopDuringStartError)
3916
+ if (this._logger.log(p.Debug, "Sending handshake request."), await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(n)), this._logger.log(p.Information, `Using HubProtocol '${this._protocol.name}'.`), this._cleanupTimeout(), this._resetTimeoutPeriod(), this._resetKeepAliveInterval(), await A, this._stopDuringStartError)
3911
3917
  throw this._stopDuringStartError;
3912
3918
  (this.connection.features.reconnect || !1) && (this._messageBuffer = new Xd(this._protocol, this.connection, this._statefulReconnectBufferSize), this.connection.features.disconnected = this._messageBuffer._disconnected.bind(this._messageBuffer), this.connection.features.resend = () => {
3913
3919
  if (this._messageBuffer)
3914
3920
  return this._messageBuffer._resend();
3915
3921
  }), this.connection.features.inherentKeepAlive || await this._sendMessage(this._cachedPingMessage);
3916
3922
  } catch (f) {
3917
- throw this._logger.log(m.Debug, `Hub handshake failed with error '${f}' during start(). Stopping HubConnection.`), this._cleanupTimeout(), this._cleanupPingTimer(), await this.connection.stop(f), f;
3923
+ throw this._logger.log(p.Debug, `Hub handshake failed with error '${f}' during start(). Stopping HubConnection.`), this._cleanupTimeout(), this._cleanupPingTimer(), await this.connection.stop(f), f;
3918
3924
  }
3919
3925
  }
3920
3926
  /** Stops the connection.
@@ -3931,11 +3937,11 @@ class Ne {
3931
3937
  }
3932
3938
  _stopInternal(A) {
3933
3939
  if (this._connectionState === K.Disconnected)
3934
- return this._logger.log(m.Debug, `Call to HubConnection.stop(${A}) ignored because it is already in the disconnected state.`), Promise.resolve();
3940
+ return this._logger.log(p.Debug, `Call to HubConnection.stop(${A}) ignored because it is already in the disconnected state.`), Promise.resolve();
3935
3941
  if (this._connectionState === K.Disconnecting)
3936
- return this._logger.log(m.Debug, `Call to HttpConnection.stop(${A}) ignored because the connection is already in the disconnecting state.`), this._stopPromise;
3942
+ return this._logger.log(p.Debug, `Call to HttpConnection.stop(${A}) ignored because the connection is already in the disconnecting state.`), this._stopPromise;
3937
3943
  const f = this._connectionState;
3938
- return this._connectionState = K.Disconnecting, this._logger.log(m.Debug, "Stopping HubConnection."), this._reconnectDelayHandle ? (this._logger.log(m.Debug, "Connection stopped during reconnect delay. Done reconnecting."), clearTimeout(this._reconnectDelayHandle), this._reconnectDelayHandle = void 0, this._completeClose(), Promise.resolve()) : (f === K.Connected && this._sendCloseMessage(), this._cleanupTimeout(), this._cleanupPingTimer(), this._stopDuringStartError = A || new mA("The connection was stopped before the hub handshake could complete."), this.connection.stop(A));
3944
+ return this._connectionState = K.Disconnecting, this._logger.log(p.Debug, "Stopping HubConnection."), this._reconnectDelayHandle ? (this._logger.log(p.Debug, "Connection stopped during reconnect delay. Done reconnecting."), clearTimeout(this._reconnectDelayHandle), this._reconnectDelayHandle = void 0, this._completeClose(), Promise.resolve()) : (f === K.Connected && this._sendCloseMessage(), this._cleanupTimeout(), this._cleanupPingTimer(), this._stopDuringStartError = A || new mA("The connection was stopped before the hub handshake could complete."), this.connection.stop(A));
3939
3945
  }
3940
3946
  async _sendCloseMessage() {
3941
3947
  try {
@@ -4003,9 +4009,9 @@ class Ne {
4003
4009
  invoke(A, ...f) {
4004
4010
  const [n, v] = this._replaceStreamingParams(f), P = this._createInvocation(A, f, !1, v);
4005
4011
  return new Promise((d, z) => {
4006
- this._callbacks[P.invocationId] = (u, p) => {
4007
- if (p) {
4008
- z(p);
4012
+ this._callbacks[P.invocationId] = (u, m) => {
4013
+ if (m) {
4014
+ z(m);
4009
4015
  return;
4010
4016
  } else u && (u.type === g.Completion ? u.error ? z(new Error(u.error)) : d(u.result) : z(new Error(`Unexpected message type: ${u.type}`)));
4011
4017
  };
@@ -4059,7 +4065,7 @@ class Ne {
4059
4065
  switch (n.type) {
4060
4066
  case g.Invocation:
4061
4067
  this._invokeClientMethod(n).catch((v) => {
4062
- this._logger.log(m.Error, `Invoke client method threw error: ${Jf(v)}`);
4068
+ this._logger.log(p.Error, `Invoke client method threw error: ${Jf(v)}`);
4063
4069
  });
4064
4070
  break;
4065
4071
  case g.StreamItem:
@@ -4070,7 +4076,7 @@ class Ne {
4070
4076
  try {
4071
4077
  v(n);
4072
4078
  } catch (P) {
4073
- this._logger.log(m.Error, `Stream callback threw error: ${Jf(P)}`);
4079
+ this._logger.log(p.Error, `Stream callback threw error: ${Jf(P)}`);
4074
4080
  }
4075
4081
  }
4076
4082
  break;
@@ -4078,7 +4084,7 @@ class Ne {
4078
4084
  case g.Ping:
4079
4085
  break;
4080
4086
  case g.Close: {
4081
- this._logger.log(m.Information, "Close message received from server.");
4087
+ this._logger.log(p.Information, "Close message received from server.");
4082
4088
  const v = n.error ? new Error("Server returned an error on close: " + n.error) : void 0;
4083
4089
  n.allowReconnect === !0 ? this.connection.stop(v) : this._stopPromise = this._stopInternal(v);
4084
4090
  break;
@@ -4090,7 +4096,7 @@ class Ne {
4090
4096
  this._messageBuffer && this._messageBuffer._resetSequence(n);
4091
4097
  break;
4092
4098
  default:
4093
- this._logger.log(m.Warning, `Invalid message type: ${n.type}.`);
4099
+ this._logger.log(p.Warning, `Invalid message type: ${n.type}.`);
4094
4100
  break;
4095
4101
  }
4096
4102
  }
@@ -4102,17 +4108,17 @@ class Ne {
4102
4108
  [n, f] = this._handshakeProtocol.parseHandshakeResponse(A);
4103
4109
  } catch (v) {
4104
4110
  const P = "Error parsing handshake response: " + v;
4105
- this._logger.log(m.Error, P);
4111
+ this._logger.log(p.Error, P);
4106
4112
  const r = new Error(P);
4107
4113
  throw this._handshakeRejecter(r), r;
4108
4114
  }
4109
4115
  if (f.error) {
4110
4116
  const v = "Server returned handshake error: " + f.error;
4111
- this._logger.log(m.Error, v);
4117
+ this._logger.log(p.Error, v);
4112
4118
  const P = new Error(v);
4113
4119
  throw this._handshakeRejecter(P), P;
4114
4120
  } else
4115
- this._logger.log(m.Debug, "Server handshake complete.");
4121
+ this._logger.log(p.Debug, "Server handshake complete.");
4116
4122
  return this._handshakeResolver(), n;
4117
4123
  }
4118
4124
  _resetKeepAliveInterval() {
@@ -4138,7 +4144,7 @@ class Ne {
4138
4144
  async _invokeClientMethod(A) {
4139
4145
  const f = A.target.toLowerCase(), n = this._methods[f];
4140
4146
  if (!n) {
4141
- this._logger.log(m.Warning, `No client method with the name '${f}' found.`), A.invocationId && (this._logger.log(m.Warning, `No result given for '${f}' method and invocation ID '${A.invocationId}'.`), await this._sendWithProtocol(this._createCompletionMessage(A.invocationId, "Client didn't provide a result.", null)));
4147
+ this._logger.log(p.Warning, `No client method with the name '${f}' found.`), A.invocationId && (this._logger.log(p.Warning, `No result given for '${f}' method and invocation ID '${A.invocationId}'.`), await this._sendWithProtocol(this._createCompletionMessage(A.invocationId, "Client didn't provide a result.", null)));
4142
4148
  return;
4143
4149
  }
4144
4150
  const v = n.slice(), P = !!A.invocationId;
@@ -4146,14 +4152,14 @@ class Ne {
4146
4152
  for (const t of v)
4147
4153
  try {
4148
4154
  const u = r;
4149
- r = await t.apply(this, A.arguments), P && r && u && (this._logger.log(m.Error, `Multiple results provided for '${f}'. Sending error to server.`), z = this._createCompletionMessage(A.invocationId, "Client provided multiple results.", null)), d = void 0;
4155
+ r = await t.apply(this, A.arguments), P && r && u && (this._logger.log(p.Error, `Multiple results provided for '${f}'. Sending error to server.`), z = this._createCompletionMessage(A.invocationId, "Client provided multiple results.", null)), d = void 0;
4150
4156
  } catch (u) {
4151
- d = u, this._logger.log(m.Error, `A callback for the method '${f}' threw error '${u}'.`);
4157
+ d = u, this._logger.log(p.Error, `A callback for the method '${f}' threw error '${u}'.`);
4152
4158
  }
4153
- z ? await this._sendWithProtocol(z) : P ? (d ? z = this._createCompletionMessage(A.invocationId, `${d}`, null) : r !== void 0 ? z = this._createCompletionMessage(A.invocationId, null, r) : (this._logger.log(m.Warning, `No result given for '${f}' method and invocation ID '${A.invocationId}'.`), z = this._createCompletionMessage(A.invocationId, "Client didn't provide a result.", null)), await this._sendWithProtocol(z)) : r && this._logger.log(m.Error, `Result given for '${f}' method but server is not expecting a result.`);
4159
+ z ? await this._sendWithProtocol(z) : P ? (d ? z = this._createCompletionMessage(A.invocationId, `${d}`, null) : r !== void 0 ? z = this._createCompletionMessage(A.invocationId, null, r) : (this._logger.log(p.Warning, `No result given for '${f}' method and invocation ID '${A.invocationId}'.`), z = this._createCompletionMessage(A.invocationId, "Client didn't provide a result.", null)), await this._sendWithProtocol(z)) : r && this._logger.log(p.Error, `Result given for '${f}' method but server is not expecting a result.`);
4154
4160
  }
4155
4161
  _connectionClosed(A) {
4156
- this._logger.log(m.Debug, `HubConnection.connectionClosed(${A}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || A || new mA("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(A || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState === K.Disconnecting ? this._completeClose(A) : this._connectionState === K.Connected && this._reconnectPolicy ? this._reconnect(A) : this._connectionState === K.Connected && this._completeClose(A);
4162
+ this._logger.log(p.Debug, `HubConnection.connectionClosed(${A}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || A || new mA("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(A || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState === K.Disconnecting ? this._completeClose(A) : this._connectionState === K.Connected && this._reconnectPolicy ? this._reconnect(A) : this._connectionState === K.Connected && this._completeClose(A);
4157
4163
  }
4158
4164
  _completeClose(A) {
4159
4165
  if (this._connectionStarted) {
@@ -4161,7 +4167,7 @@ class Ne {
4161
4167
  try {
4162
4168
  this._closedCallbacks.forEach((f) => f.apply(this, [A]));
4163
4169
  } catch (f) {
4164
- this._logger.log(m.Error, `An onclose callback called with error '${A}' threw error '${f}'.`);
4170
+ this._logger.log(p.Error, `An onclose callback called with error '${A}' threw error '${f}'.`);
4165
4171
  }
4166
4172
  }
4167
4173
  }
@@ -4169,44 +4175,44 @@ class Ne {
4169
4175
  const f = Date.now();
4170
4176
  let n = 0, v = A !== void 0 ? A : new Error("Attempting to reconnect due to a unknown error."), P = this._getNextRetryDelay(n++, 0, v);
4171
4177
  if (P === null) {
4172
- this._logger.log(m.Debug, "Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."), this._completeClose(A);
4178
+ this._logger.log(p.Debug, "Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."), this._completeClose(A);
4173
4179
  return;
4174
4180
  }
4175
- if (this._connectionState = K.Reconnecting, A ? this._logger.log(m.Information, `Connection reconnecting because of error '${A}'.`) : this._logger.log(m.Information, "Connection reconnecting."), this._reconnectingCallbacks.length !== 0) {
4181
+ if (this._connectionState = K.Reconnecting, A ? this._logger.log(p.Information, `Connection reconnecting because of error '${A}'.`) : this._logger.log(p.Information, "Connection reconnecting."), this._reconnectingCallbacks.length !== 0) {
4176
4182
  try {
4177
4183
  this._reconnectingCallbacks.forEach((r) => r.apply(this, [A]));
4178
4184
  } catch (r) {
4179
- this._logger.log(m.Error, `An onreconnecting callback called with error '${A}' threw error '${r}'.`);
4185
+ this._logger.log(p.Error, `An onreconnecting callback called with error '${A}' threw error '${r}'.`);
4180
4186
  }
4181
4187
  if (this._connectionState !== K.Reconnecting) {
4182
- this._logger.log(m.Debug, "Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");
4188
+ this._logger.log(p.Debug, "Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");
4183
4189
  return;
4184
4190
  }
4185
4191
  }
4186
4192
  for (; P !== null; ) {
4187
- if (this._logger.log(m.Information, `Reconnect attempt number ${n} will start in ${P} ms.`), await new Promise((r) => {
4193
+ if (this._logger.log(p.Information, `Reconnect attempt number ${n} will start in ${P} ms.`), await new Promise((r) => {
4188
4194
  this._reconnectDelayHandle = setTimeout(r, P);
4189
4195
  }), this._reconnectDelayHandle = void 0, this._connectionState !== K.Reconnecting) {
4190
- this._logger.log(m.Debug, "Connection left the reconnecting state during reconnect delay. Done reconnecting.");
4196
+ this._logger.log(p.Debug, "Connection left the reconnecting state during reconnect delay. Done reconnecting.");
4191
4197
  return;
4192
4198
  }
4193
4199
  try {
4194
- if (await this._startInternal(), this._connectionState = K.Connected, this._logger.log(m.Information, "HubConnection reconnected successfully."), this._reconnectedCallbacks.length !== 0)
4200
+ if (await this._startInternal(), this._connectionState = K.Connected, this._logger.log(p.Information, "HubConnection reconnected successfully."), this._reconnectedCallbacks.length !== 0)
4195
4201
  try {
4196
4202
  this._reconnectedCallbacks.forEach((r) => r.apply(this, [this.connection.connectionId]));
4197
4203
  } catch (r) {
4198
- this._logger.log(m.Error, `An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${r}'.`);
4204
+ this._logger.log(p.Error, `An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${r}'.`);
4199
4205
  }
4200
4206
  return;
4201
4207
  } catch (r) {
4202
- if (this._logger.log(m.Information, `Reconnect attempt failed because of error '${r}'.`), this._connectionState !== K.Reconnecting) {
4203
- this._logger.log(m.Debug, `Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`), this._connectionState === K.Disconnecting && this._completeClose();
4208
+ if (this._logger.log(p.Information, `Reconnect attempt failed because of error '${r}'.`), this._connectionState !== K.Reconnecting) {
4209
+ this._logger.log(p.Debug, `Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`), this._connectionState === K.Disconnecting && this._completeClose();
4204
4210
  return;
4205
4211
  }
4206
4212
  v = r instanceof Error ? r : new Error(r.toString()), P = this._getNextRetryDelay(n++, Date.now() - f, v);
4207
4213
  }
4208
4214
  }
4209
- this._logger.log(m.Information, `Reconnect retries have been exhausted after ${Date.now() - f} ms and ${n} failed attempts. Connection disconnecting.`), this._completeClose();
4215
+ this._logger.log(p.Information, `Reconnect retries have been exhausted after ${Date.now() - f} ms and ${n} failed attempts. Connection disconnecting.`), this._completeClose();
4210
4216
  }
4211
4217
  _getNextRetryDelay(A, f, n) {
4212
4218
  try {
@@ -4216,7 +4222,7 @@ class Ne {
4216
4222
  retryReason: n
4217
4223
  });
4218
4224
  } catch (v) {
4219
- return this._logger.log(m.Error, `IRetryPolicy.nextRetryDelayInMilliseconds(${A}, ${f}) threw error '${v}'.`), null;
4225
+ return this._logger.log(p.Error, `IRetryPolicy.nextRetryDelayInMilliseconds(${A}, ${f}) threw error '${v}'.`), null;
4220
4226
  }
4221
4227
  }
4222
4228
  _cancelCallbacksWithError(A) {
@@ -4226,7 +4232,7 @@ class Ne {
4226
4232
  try {
4227
4233
  v(null, A);
4228
4234
  } catch (P) {
4229
- this._logger.log(m.Error, `Stream 'error' callback called with '${A}' threw error: ${Jf(P)}`);
4235
+ this._logger.log(p.Error, `Stream 'error' callback called with '${A}' threw error: ${Jf(P)}`);
4230
4236
  }
4231
4237
  });
4232
4238
  }
@@ -4400,7 +4406,7 @@ class p9 {
4400
4406
  this._httpClient = A, this._logger = f, this._pollAbort = new Hd(), this._options = n, this._running = !1, this.onreceive = null, this.onclose = null;
4401
4407
  }
4402
4408
  async connect(A, f) {
4403
- if ($.isRequired(A, "url"), $.isRequired(f, "transferFormat"), $.isIn(f, zA, "transferFormat"), this._url = A, this._logger.log(m.Trace, "(LongPolling transport) Connecting."), f === zA.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
4409
+ if ($.isRequired(A, "url"), $.isRequired(f, "transferFormat"), $.isIn(f, zA, "transferFormat"), this._url = A, this._logger.log(p.Trace, "(LongPolling transport) Connecting."), f === zA.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
4404
4410
  throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
4405
4411
  const [n, v] = $A(), P = { [n]: v, ...this._options.headers }, r = {
4406
4412
  abortSignal: this._pollAbort.signal,
@@ -4410,32 +4416,32 @@ class p9 {
4410
4416
  };
4411
4417
  f === zA.Binary && (r.responseType = "arraybuffer");
4412
4418
  const d = `${A}&_=${Date.now()}`;
4413
- this._logger.log(m.Trace, `(LongPolling transport) polling: ${d}.`);
4419
+ this._logger.log(p.Trace, `(LongPolling transport) polling: ${d}.`);
4414
4420
  const z = await this._httpClient.get(d, r);
4415
- z.statusCode !== 200 ? (this._logger.log(m.Error, `(LongPolling transport) Unexpected response code: ${z.statusCode}.`), this._closeError = new wA(z.statusText || "", z.statusCode), this._running = !1) : this._running = !0, this._receiving = this._poll(this._url, r);
4421
+ z.statusCode !== 200 ? (this._logger.log(p.Error, `(LongPolling transport) Unexpected response code: ${z.statusCode}.`), this._closeError = new wA(z.statusText || "", z.statusCode), this._running = !1) : this._running = !0, this._receiving = this._poll(this._url, r);
4416
4422
  }
4417
4423
  async _poll(A, f) {
4418
4424
  try {
4419
4425
  for (; this._running; )
4420
4426
  try {
4421
4427
  const n = `${A}&_=${Date.now()}`;
4422
- this._logger.log(m.Trace, `(LongPolling transport) polling: ${n}.`);
4428
+ this._logger.log(p.Trace, `(LongPolling transport) polling: ${n}.`);
4423
4429
  const v = await this._httpClient.get(n, f);
4424
- v.statusCode === 204 ? (this._logger.log(m.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : v.statusCode !== 200 ? (this._logger.log(m.Error, `(LongPolling transport) Unexpected response code: ${v.statusCode}.`), this._closeError = new wA(v.statusText || "", v.statusCode), this._running = !1) : v.content ? (this._logger.log(m.Trace, `(LongPolling transport) data received. ${bf(v.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(v.content)) : this._logger.log(m.Trace, "(LongPolling transport) Poll timed out, reissuing.");
4430
+ v.statusCode === 204 ? (this._logger.log(p.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : v.statusCode !== 200 ? (this._logger.log(p.Error, `(LongPolling transport) Unexpected response code: ${v.statusCode}.`), this._closeError = new wA(v.statusText || "", v.statusCode), this._running = !1) : v.content ? (this._logger.log(p.Trace, `(LongPolling transport) data received. ${bf(v.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(v.content)) : this._logger.log(p.Trace, "(LongPolling transport) Poll timed out, reissuing.");
4425
4431
  } catch (n) {
4426
- this._running ? n instanceof Re ? this._logger.log(m.Trace, "(LongPolling transport) Poll timed out, reissuing.") : (this._closeError = n, this._running = !1) : this._logger.log(m.Trace, `(LongPolling transport) Poll errored after shutdown: ${n.message}`);
4432
+ this._running ? n instanceof Re ? this._logger.log(p.Trace, "(LongPolling transport) Poll timed out, reissuing.") : (this._closeError = n, this._running = !1) : this._logger.log(p.Trace, `(LongPolling transport) Poll errored after shutdown: ${n.message}`);
4427
4433
  }
4428
4434
  } finally {
4429
- this._logger.log(m.Trace, "(LongPolling transport) Polling complete."), this.pollAborted || this._raiseOnClose();
4435
+ this._logger.log(p.Trace, "(LongPolling transport) Polling complete."), this.pollAborted || this._raiseOnClose();
4430
4436
  }
4431
4437
  }
4432
4438
  async send(A) {
4433
4439
  return this._running ? ln(this._logger, "LongPolling", this._httpClient, this._url, A, this._options) : Promise.reject(new Error("Cannot send until the transport is connected"));
4434
4440
  }
4435
4441
  async stop() {
4436
- this._logger.log(m.Trace, "(LongPolling transport) Stopping polling."), this._running = !1, this._pollAbort.abort();
4442
+ this._logger.log(p.Trace, "(LongPolling transport) Stopping polling."), this._running = !1, this._pollAbort.abort();
4437
4443
  try {
4438
- await this._receiving, this._logger.log(m.Trace, `(LongPolling transport) sending DELETE request to ${this._url}.`);
4444
+ await this._receiving, this._logger.log(p.Trace, `(LongPolling transport) sending DELETE request to ${this._url}.`);
4439
4445
  const A = {}, [f, n] = $A();
4440
4446
  A[f] = n;
4441
4447
  const v = {
@@ -4449,15 +4455,15 @@ class p9 {
4449
4455
  } catch (r) {
4450
4456
  P = r;
4451
4457
  }
4452
- P ? P instanceof wA && (P.statusCode === 404 ? this._logger.log(m.Trace, "(LongPolling transport) A 404 response was returned from sending a DELETE request.") : this._logger.log(m.Trace, `(LongPolling transport) Error sending a DELETE request: ${P}`)) : this._logger.log(m.Trace, "(LongPolling transport) DELETE request accepted.");
4458
+ P ? P instanceof wA && (P.statusCode === 404 ? this._logger.log(p.Trace, "(LongPolling transport) A 404 response was returned from sending a DELETE request.") : this._logger.log(p.Trace, `(LongPolling transport) Error sending a DELETE request: ${P}`)) : this._logger.log(p.Trace, "(LongPolling transport) DELETE request accepted.");
4453
4459
  } finally {
4454
- this._logger.log(m.Trace, "(LongPolling transport) Stop finished."), this._raiseOnClose();
4460
+ this._logger.log(p.Trace, "(LongPolling transport) Stop finished."), this._raiseOnClose();
4455
4461
  }
4456
4462
  }
4457
4463
  _raiseOnClose() {
4458
4464
  if (this.onclose) {
4459
4465
  let A = "(LongPolling transport) Firing onclose event.";
4460
- this._closeError && (A += " Error: " + this._closeError), this._logger.log(m.Trace, A), this.onclose(this._closeError);
4466
+ this._closeError && (A += " Error: " + this._closeError), this._logger.log(p.Trace, A), this.onclose(this._closeError);
4461
4467
  }
4462
4468
  }
4463
4469
  }
@@ -4466,7 +4472,7 @@ class md {
4466
4472
  this._httpClient = A, this._accessToken = f, this._logger = n, this._options = v, this.onreceive = null, this.onclose = null;
4467
4473
  }
4468
4474
  async connect(A, f) {
4469
- return $.isRequired(A, "url"), $.isRequired(f, "transferFormat"), $.isIn(f, zA, "transferFormat"), this._logger.log(m.Trace, "(SSE transport) Connecting."), this._url = A, this._accessToken && (A += (A.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((n, v) => {
4475
+ return $.isRequired(A, "url"), $.isRequired(f, "transferFormat"), $.isIn(f, zA, "transferFormat"), this._logger.log(p.Trace, "(SSE transport) Connecting."), this._url = A, this._accessToken && (A += (A.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((n, v) => {
4470
4476
  let P = !1;
4471
4477
  if (f !== zA.Text) {
4472
4478
  v(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
@@ -4485,7 +4491,7 @@ class md {
4485
4491
  r.onmessage = (d) => {
4486
4492
  if (this.onreceive)
4487
4493
  try {
4488
- this._logger.log(m.Trace, `(SSE transport) data received. ${bf(d.data, this._options.logMessageContent)}.`), this.onreceive(d.data);
4494
+ this._logger.log(p.Trace, `(SSE transport) data received. ${bf(d.data, this._options.logMessageContent)}.`), this.onreceive(d.data);
4489
4495
  } catch (z) {
4490
4496
  this._close(z);
4491
4497
  return;
@@ -4493,7 +4499,7 @@ class md {
4493
4499
  }, r.onerror = (d) => {
4494
4500
  P ? this._close() : v(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."));
4495
4501
  }, r.onopen = () => {
4496
- this._logger.log(m.Information, `SSE connected to ${this._url}`), this._eventSource = r, P = !0, n();
4502
+ this._logger.log(p.Information, `SSE connected to ${this._url}`), this._eventSource = r, P = !0, n();
4497
4503
  };
4498
4504
  } catch (d) {
4499
4505
  v(d);
@@ -4516,7 +4522,7 @@ class pd {
4516
4522
  this._logger = n, this._accessTokenFactory = f, this._logMessageContent = v, this._webSocketConstructor = P, this._httpClient = A, this.onreceive = null, this.onclose = null, this._headers = r;
4517
4523
  }
4518
4524
  async connect(A, f) {
4519
- $.isRequired(A, "url"), $.isRequired(f, "transferFormat"), $.isIn(f, zA, "transferFormat"), this._logger.log(m.Trace, "(WebSockets transport) Connecting.");
4525
+ $.isRequired(A, "url"), $.isRequired(f, "transferFormat"), $.isIn(f, zA, "transferFormat"), this._logger.log(p.Trace, "(WebSockets transport) Connecting.");
4520
4526
  let n;
4521
4527
  return this._accessTokenFactory && (n = await this._accessTokenFactory()), new Promise((v, P) => {
4522
4528
  A = A.replace(/^http/, "ws");
@@ -4524,19 +4530,19 @@ class pd {
4524
4530
  const d = this._httpClient.getCookieString(A);
4525
4531
  let z = !1;
4526
4532
  if (C.isNode || C.isReactNative) {
4527
- const t = {}, [u, p] = $A();
4528
- t[u] = p, n && (t[MA.Authorization] = `Bearer ${n}`), d && (t[MA.Cookie] = d), r = new this._webSocketConstructor(A, void 0, {
4533
+ const t = {}, [u, m] = $A();
4534
+ t[u] = m, n && (t[MA.Authorization] = `Bearer ${n}`), d && (t[MA.Cookie] = d), r = new this._webSocketConstructor(A, void 0, {
4529
4535
  headers: { ...t, ...this._headers }
4530
4536
  });
4531
4537
  } else
4532
4538
  n && (A += (A.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(n)}`);
4533
4539
  r || (r = new this._webSocketConstructor(A)), f === zA.Binary && (r.binaryType = "arraybuffer"), r.onopen = (t) => {
4534
- this._logger.log(m.Information, `WebSocket connected to ${A}.`), this._webSocket = r, z = !0, v();
4540
+ this._logger.log(p.Information, `WebSocket connected to ${A}.`), this._webSocket = r, z = !0, v();
4535
4541
  }, r.onerror = (t) => {
4536
4542
  let u = null;
4537
- typeof ErrorEvent < "u" && t instanceof ErrorEvent ? u = t.error : u = "There was an error with the transport", this._logger.log(m.Information, `(WebSockets transport) ${u}.`);
4543
+ typeof ErrorEvent < "u" && t instanceof ErrorEvent ? u = t.error : u = "There was an error with the transport", this._logger.log(p.Information, `(WebSockets transport) ${u}.`);
4538
4544
  }, r.onmessage = (t) => {
4539
- if (this._logger.log(m.Trace, `(WebSockets transport) data received. ${bf(t.data, this._logMessageContent)}.`), this.onreceive)
4545
+ if (this._logger.log(p.Trace, `(WebSockets transport) data received. ${bf(t.data, this._logMessageContent)}.`), this.onreceive)
4540
4546
  try {
4541
4547
  this.onreceive(t.data);
4542
4548
  } catch (u) {
@@ -4554,7 +4560,7 @@ class pd {
4554
4560
  });
4555
4561
  }
4556
4562
  send(A) {
4557
- return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(m.Trace, `(WebSockets transport) sending data. ${bf(A, this._logMessageContent)}.`), this._webSocket.send(A), Promise.resolve()) : Promise.reject("WebSocket is not in the OPEN state");
4563
+ return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(p.Trace, `(WebSockets transport) sending data. ${bf(A, this._logMessageContent)}.`), this._webSocket.send(A), Promise.resolve()) : Promise.reject("WebSocket is not in the OPEN state");
4558
4564
  }
4559
4565
  stop() {
4560
4566
  return this._webSocket && this._close(void 0), Promise.resolve();
@@ -4563,7 +4569,7 @@ class pd {
4563
4569
  this._webSocket && (this._webSocket.onclose = () => {
4564
4570
  }, this._webSocket.onmessage = () => {
4565
4571
  }, this._webSocket.onerror = () => {
4566
- }, this._webSocket.close(), this._webSocket = void 0), this._logger.log(m.Trace, "(WebSockets transport) socket closed."), this.onclose && (this._isCloseEvent(A) && (A.wasClean === !1 || A.code !== 1e3) ? this.onclose(new Error(`WebSocket closed with status code: ${A.code} (${A.reason || "no reason given"}).`)) : A instanceof Error ? this.onclose(A) : this.onclose());
4572
+ }, this._webSocket.close(), this._webSocket = void 0), this._logger.log(p.Trace, "(WebSockets transport) socket closed."), this.onclose && (this._isCloseEvent(A) && (A.wasClean === !1 || A.code !== 1e3) ? this.onclose(new Error(`WebSocket closed with status code: ${A.code} (${A.reason || "no reason given"}).`)) : A instanceof Error ? this.onclose(A) : this.onclose());
4567
4573
  }
4568
4574
  _isCloseEvent(A) {
4569
4575
  return A && typeof A.wasClean == "boolean" && typeof A.code == "number";
@@ -4586,14 +4592,14 @@ class Vd {
4586
4592
  !C.isNode && typeof WebSocket < "u" && !f.WebSocket ? f.WebSocket = WebSocket : C.isNode && !f.WebSocket && n && (f.WebSocket = n), !C.isNode && typeof EventSource < "u" && !f.EventSource ? f.EventSource = EventSource : C.isNode && !f.EventSource && typeof v < "u" && (f.EventSource = v), this._httpClient = new qd(f.httpClient || new zd(this._logger), f.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = f, this.onreceive = null, this.onclose = null;
4587
4593
  }
4588
4594
  async start(A) {
4589
- if (A = A || zA.Binary, $.isIn(A, zA, "transferFormat"), this._logger.log(m.Debug, `Starting connection with transfer format '${zA[A]}'.`), this._connectionState !== "Disconnected")
4595
+ if (A = A || zA.Binary, $.isIn(A, zA, "transferFormat"), this._logger.log(p.Debug, `Starting connection with transfer format '${zA[A]}'.`), this._connectionState !== "Disconnected")
4590
4596
  return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
4591
4597
  if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(A), await this._startInternalPromise, this._connectionState === "Disconnecting") {
4592
4598
  const f = "Failed to start the HttpConnection before stop() was called.";
4593
- return this._logger.log(m.Error, f), await this._stopPromise, Promise.reject(new mA(f));
4599
+ return this._logger.log(p.Error, f), await this._stopPromise, Promise.reject(new mA(f));
4594
4600
  } else if (this._connectionState !== "Connected") {
4595
4601
  const f = "HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";
4596
- return this._logger.log(m.Error, f), Promise.reject(new mA(f));
4602
+ return this._logger.log(p.Error, f), Promise.reject(new mA(f));
4597
4603
  }
4598
4604
  this._connectionStarted = !0;
4599
4605
  }
@@ -4602,9 +4608,9 @@ class Vd {
4602
4608
  }
4603
4609
  async stop(A) {
4604
4610
  if (this._connectionState === "Disconnected")
4605
- return this._logger.log(m.Debug, `Call to HttpConnection.stop(${A}) ignored because the connection is already in the disconnected state.`), Promise.resolve();
4611
+ return this._logger.log(p.Debug, `Call to HttpConnection.stop(${A}) ignored because the connection is already in the disconnected state.`), Promise.resolve();
4606
4612
  if (this._connectionState === "Disconnecting")
4607
- return this._logger.log(m.Debug, `Call to HttpConnection.stop(${A}) ignored because the connection is already in the disconnecting state.`), this._stopPromise;
4613
+ return this._logger.log(p.Debug, `Call to HttpConnection.stop(${A}) ignored because the connection is already in the disconnecting state.`), this._stopPromise;
4608
4614
  this._connectionState = "Disconnecting", this._stopPromise = new Promise((f) => {
4609
4615
  this._stopPromiseResolver = f;
4610
4616
  }), await this._stopInternal(A), await this._stopPromise;
@@ -4619,11 +4625,11 @@ class Vd {
4619
4625
  try {
4620
4626
  await this.transport.stop();
4621
4627
  } catch (f) {
4622
- this._logger.log(m.Error, `HttpConnection.transport.stop() threw error '${f}'.`), this._stopConnection();
4628
+ this._logger.log(p.Error, `HttpConnection.transport.stop() threw error '${f}'.`), this._stopConnection();
4623
4629
  }
4624
4630
  this.transport = void 0;
4625
4631
  } else
4626
- this._logger.log(m.Debug, "HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.");
4632
+ this._logger.log(p.Debug, "HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.");
4627
4633
  }
4628
4634
  async _startInternal(A) {
4629
4635
  let f = this.baseUrl;
@@ -4653,16 +4659,16 @@ class Vd {
4653
4659
  throw new Error("Negotiate redirection limit exceeded.");
4654
4660
  await this._createTransport(f, this._options.transport, n, A);
4655
4661
  }
4656
- this.transport instanceof p9 && (this.features.inherentKeepAlive = !0), this._connectionState === "Connecting" && (this._logger.log(m.Debug, "The HttpConnection connected successfully."), this._connectionState = "Connected");
4662
+ this.transport instanceof p9 && (this.features.inherentKeepAlive = !0), this._connectionState === "Connecting" && (this._logger.log(p.Debug, "The HttpConnection connected successfully."), this._connectionState = "Connected");
4657
4663
  } catch (n) {
4658
- return this._logger.log(m.Error, "Failed to start the connection: " + n), this._connectionState = "Disconnected", this.transport = void 0, this._stopPromiseResolver(), Promise.reject(n);
4664
+ return this._logger.log(p.Error, "Failed to start the connection: " + n), this._connectionState = "Disconnected", this.transport = void 0, this._stopPromiseResolver(), Promise.reject(n);
4659
4665
  }
4660
4666
  }
4661
4667
  async _getNegotiationResponse(A) {
4662
4668
  const f = {}, [n, v] = $A();
4663
4669
  f[n] = v;
4664
4670
  const P = this._resolveNegotiateUrl(A);
4665
- this._logger.log(m.Debug, `Sending negotiation request: ${P}.`);
4671
+ this._logger.log(p.Debug, `Sending negotiation request: ${P}.`);
4666
4672
  try {
4667
4673
  const r = await this._httpClient.post(P, {
4668
4674
  content: "",
@@ -4676,7 +4682,7 @@ class Vd {
4676
4682
  return (!d.negotiateVersion || d.negotiateVersion < 1) && (d.connectionToken = d.connectionId), d.useStatefulReconnect && this._options._useStatefulReconnect !== !0 ? Promise.reject(new q9("Client didn't negotiate Stateful Reconnect but the server did.")) : d;
4677
4683
  } catch (r) {
4678
4684
  let d = "Failed to complete negotiation with the server: " + r;
4679
- return r instanceof wA && r.statusCode === 404 && (d = d + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(m.Error, d), Promise.reject(new q9(d));
4685
+ return r instanceof wA && r.statusCode === 404 && (d = d + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(p.Error, d), Promise.reject(new q9(d));
4680
4686
  }
4681
4687
  }
4682
4688
  _createConnectUrl(A, f) {
@@ -4685,7 +4691,7 @@ class Vd {
4685
4691
  async _createTransport(A, f, n, v) {
4686
4692
  let P = this._createConnectUrl(A, n.connectionToken);
4687
4693
  if (this._isITransport(f)) {
4688
- this._logger.log(m.Debug, "Connection was provided an instance of ITransport, using that directly."), this.transport = f, await this._startTransport(P, v), this.connectionId = n.connectionId;
4694
+ this._logger.log(p.Debug, "Connection was provided an instance of ITransport, using that directly."), this.transport = f, await this._startTransport(P, v), this.connectionId = n.connectionId;
4689
4695
  return;
4690
4696
  }
4691
4697
  const r = [], d = n.availableTransports || [];
@@ -4698,18 +4704,18 @@ class Vd {
4698
4704
  if (this.transport = u, !z) {
4699
4705
  try {
4700
4706
  z = await this._getNegotiationResponse(A);
4701
- } catch (p) {
4702
- return Promise.reject(p);
4707
+ } catch (m) {
4708
+ return Promise.reject(m);
4703
4709
  }
4704
4710
  P = this._createConnectUrl(A, z.connectionToken);
4705
4711
  }
4706
4712
  try {
4707
4713
  await this._startTransport(P, v), this.connectionId = z.connectionId;
4708
4714
  return;
4709
- } catch (p) {
4710
- if (this._logger.log(m.Error, `Failed to start the transport '${t.transport}': ${p}`), z = void 0, r.push(new Sz(`${t.transport} failed: ${p}`, _[t.transport])), this._connectionState !== "Connecting") {
4715
+ } catch (m) {
4716
+ if (this._logger.log(p.Error, `Failed to start the transport '${t.transport}': ${m}`), z = void 0, r.push(new Sz(`${t.transport} failed: ${m}`, _[t.transport])), this._connectionState !== "Connecting") {
4711
4717
  const a = "Failed to select transport before stop() was called.";
4712
- return this._logger.log(m.Debug, a), Promise.reject(new mA(a));
4718
+ return this._logger.log(p.Debug, a), Promise.reject(new mA(a));
4713
4719
  }
4714
4720
  }
4715
4721
  }
@@ -4751,40 +4757,40 @@ class Vd {
4751
4757
  _resolveTransportOrError(A, f, n, v) {
4752
4758
  const P = _[A.transport];
4753
4759
  if (P == null)
4754
- return this._logger.log(m.Debug, `Skipping transport '${A.transport}' because it is not supported by this client.`), new Error(`Skipping transport '${A.transport}' because it is not supported by this client.`);
4760
+ return this._logger.log(p.Debug, `Skipping transport '${A.transport}' because it is not supported by this client.`), new Error(`Skipping transport '${A.transport}' because it is not supported by this client.`);
4755
4761
  if (ld(f, P))
4756
4762
  if (A.transferFormats.map((d) => zA[d]).indexOf(n) >= 0) {
4757
4763
  if (P === _.WebSockets && !this._options.WebSocket || P === _.ServerSentEvents && !this._options.EventSource)
4758
- return this._logger.log(m.Debug, `Skipping transport '${_[P]}' because it is not supported in your environment.'`), new Fz(`'${_[P]}' is not supported in your environment.`, P);
4759
- this._logger.log(m.Debug, `Selecting transport '${_[P]}'.`);
4764
+ return this._logger.log(p.Debug, `Skipping transport '${_[P]}' because it is not supported in your environment.'`), new Fz(`'${_[P]}' is not supported in your environment.`, P);
4765
+ this._logger.log(p.Debug, `Selecting transport '${_[P]}'.`);
4760
4766
  try {
4761
4767
  return this.features.reconnect = P === _.WebSockets ? v : void 0, this._constructTransport(P);
4762
4768
  } catch (d) {
4763
4769
  return d;
4764
4770
  }
4765
4771
  } else
4766
- return this._logger.log(m.Debug, `Skipping transport '${_[P]}' because it does not support the requested transfer format '${zA[n]}'.`), new Error(`'${_[P]}' does not support ${zA[n]}.`);
4772
+ return this._logger.log(p.Debug, `Skipping transport '${_[P]}' because it does not support the requested transfer format '${zA[n]}'.`), new Error(`'${_[P]}' does not support ${zA[n]}.`);
4767
4773
  else
4768
- return this._logger.log(m.Debug, `Skipping transport '${_[P]}' because it was disabled by the client.`), new hz(`'${_[P]}' is disabled by the client.`, P);
4774
+ return this._logger.log(p.Debug, `Skipping transport '${_[P]}' because it was disabled by the client.`), new hz(`'${_[P]}' is disabled by the client.`, P);
4769
4775
  }
4770
4776
  _isITransport(A) {
4771
4777
  return A && typeof A == "object" && "connect" in A;
4772
4778
  }
4773
4779
  _stopConnection(A) {
4774
- if (this._logger.log(m.Debug, `HttpConnection.stopConnection(${A}) called while in state ${this._connectionState}.`), this.transport = void 0, A = this._stopError || A, this._stopError = void 0, this._connectionState === "Disconnected") {
4775
- this._logger.log(m.Debug, `Call to HttpConnection.stopConnection(${A}) was ignored because the connection is already in the disconnected state.`);
4780
+ if (this._logger.log(p.Debug, `HttpConnection.stopConnection(${A}) called while in state ${this._connectionState}.`), this.transport = void 0, A = this._stopError || A, this._stopError = void 0, this._connectionState === "Disconnected") {
4781
+ this._logger.log(p.Debug, `Call to HttpConnection.stopConnection(${A}) was ignored because the connection is already in the disconnected state.`);
4776
4782
  return;
4777
4783
  }
4778
4784
  if (this._connectionState === "Connecting")
4779
- throw this._logger.log(m.Warning, `Call to HttpConnection.stopConnection(${A}) was ignored because the connection is still in the connecting state.`), new Error(`HttpConnection.stopConnection(${A}) was called while the connection is still in the connecting state.`);
4780
- if (this._connectionState === "Disconnecting" && this._stopPromiseResolver(), A ? this._logger.log(m.Error, `Connection disconnected with error '${A}'.`) : this._logger.log(m.Information, "Connection disconnected."), this._sendQueue && (this._sendQueue.stop().catch((f) => {
4781
- this._logger.log(m.Error, `TransportSendQueue.stop() threw error '${f}'.`);
4785
+ throw this._logger.log(p.Warning, `Call to HttpConnection.stopConnection(${A}) was ignored because the connection is still in the connecting state.`), new Error(`HttpConnection.stopConnection(${A}) was called while the connection is still in the connecting state.`);
4786
+ if (this._connectionState === "Disconnecting" && this._stopPromiseResolver(), A ? this._logger.log(p.Error, `Connection disconnected with error '${A}'.`) : this._logger.log(p.Information, "Connection disconnected."), this._sendQueue && (this._sendQueue.stop().catch((f) => {
4787
+ this._logger.log(p.Error, `TransportSendQueue.stop() threw error '${f}'.`);
4782
4788
  }), this._sendQueue = void 0), this.connectionId = void 0, this._connectionState = "Disconnected", this._connectionStarted) {
4783
4789
  this._connectionStarted = !1;
4784
4790
  try {
4785
4791
  this.onclose && this.onclose(A);
4786
4792
  } catch (f) {
4787
- this._logger.log(m.Error, `HttpConnection.onclose(${A}) threw error '${f}'.`);
4793
+ this._logger.log(p.Error, `HttpConnection.onclose(${A}) threw error '${f}'.`);
4788
4794
  }
4789
4795
  }
4790
4796
  }
@@ -4794,7 +4800,7 @@ class Vd {
4794
4800
  if (!C.isBrowser)
4795
4801
  throw new Error(`Cannot resolve '${A}'.`);
4796
4802
  const f = window.document.createElement("a");
4797
- return f.href = A, this._logger.log(m.Information, `Normalizing '${A}' to '${f.href}'.`), f.href;
4803
+ return f.href = A, this._logger.log(p.Information, `Normalizing '${A}' to '${f.href}'.`), f.href;
4798
4804
  }
4799
4805
  _resolveNegotiateUrl(A) {
4800
4806
  const f = new URL(A);
@@ -4900,7 +4906,7 @@ class Rd {
4900
4906
  this._isSequenceMessage(r);
4901
4907
  break;
4902
4908
  default:
4903
- f.log(m.Information, "Unknown message type '" + r.type + "' ignored.");
4909
+ f.log(p.Information, "Unknown message type '" + r.type + "' ignored.");
4904
4910
  continue;
4905
4911
  }
4906
4912
  v.push(r);
@@ -4941,15 +4947,15 @@ class Rd {
4941
4947
  }
4942
4948
  }
4943
4949
  const Nd = {
4944
- trace: m.Trace,
4945
- debug: m.Debug,
4946
- info: m.Information,
4947
- information: m.Information,
4948
- warn: m.Warning,
4949
- warning: m.Warning,
4950
- error: m.Error,
4951
- critical: m.Critical,
4952
- none: m.None
4950
+ trace: p.Trace,
4951
+ debug: p.Debug,
4952
+ info: p.Information,
4953
+ information: p.Information,
4954
+ warn: p.Warning,
4955
+ warning: p.Warning,
4956
+ error: p.Error,
4957
+ critical: p.Critical,
4958
+ none: p.None
4953
4959
  };
4954
4960
  function xd(e) {
4955
4961
  const A = Nd[e.toLowerCase()];
@@ -5039,22 +5045,22 @@ const Id = QA(`/api/tool/event-bus/${gf}/`), Yf = Id.post("/publish"), Ed = re.g
5039
5045
  const e = ze(), { entryApp: A } = Df.hooks.useEntryApp(), { entryMenu: f } = Df.hooks.useEntryMenu();
5040
5046
  let n = null;
5041
5047
  return BA(async () => {
5042
- var X;
5043
- let v = ((X = e.meta) == null ? void 0 : X.showLayout) ?? !0, { showLayout: P = !0 } = e.query;
5048
+ var b;
5049
+ let v = ((b = e.meta) == null ? void 0 : b.showLayout) ?? !0, { showLayout: P = !0 } = e.query;
5044
5050
  if (P === "false" && (P = !1), !v || !P) return;
5045
5051
  await Lf();
5046
- const r = (b) => {
5052
+ const r = (X) => {
5047
5053
  try {
5048
- return JSON.parse(b);
5054
+ return JSON.parse(X);
5049
5055
  } catch {
5050
5056
  return !1;
5051
5057
  }
5052
- }, d = async (b) => {
5058
+ }, d = async (X) => {
5053
5059
  var D;
5054
5060
  const s = J(), q = ((D = s.appcategorys) == null ? void 0 : D.map((y) => y.apps).flat()) || [];
5055
- if (Array.isArray(b)) {
5056
- const y = b.filter((E) => E.code).map((E) => E.code);
5057
- if (b.length) {
5061
+ if (Array.isArray(X)) {
5062
+ const y = X.filter((E) => E.code).map((E) => E.code);
5063
+ if (X.length) {
5058
5064
  if (s.currentSubAppCode) {
5059
5065
  const l = s.currentSubApp.menus ?? [], o = pA(l).find((x) => y.includes(x.code));
5060
5066
  if (o) {
@@ -5066,14 +5072,14 @@ const Id = QA(`/api/tool/event-bus/${gf}/`), Yf = Id.post("/publish"), Ed = re.g
5066
5072
  E && A({ microApp: E });
5067
5073
  }
5068
5074
  }
5069
- if (typeof b == "string")
5070
- if (b.includes(":")) {
5071
- const y = b.split(":"), [E = "", l = ""] = y;
5075
+ if (typeof X == "string")
5076
+ if (X.includes(":")) {
5077
+ const y = X.split(":"), [E = "", l = ""] = y;
5072
5078
  if (!E) return;
5073
5079
  const o = q.find((x) => x.code === E);
5074
5080
  o && A({ microApp: o, menuCode: l });
5075
5081
  } else {
5076
- const y = b, E = q.find((l) => l.code === y);
5082
+ const y = X, E = q.find((l) => l.code === y);
5077
5083
  if (E)
5078
5084
  A({ microApp: E });
5079
5085
  else {
@@ -5085,30 +5091,30 @@ const Id = QA(`/api/tool/event-bus/${gf}/`), Yf = Id.post("/publish"), Ed = re.g
5085
5091
  }
5086
5092
  };
5087
5093
  let z = O(!0);
5088
- const t = (b) => {
5094
+ const t = (X) => {
5089
5095
  setTimeout(async () => {
5090
5096
  var s, q;
5091
5097
  if (z.value) {
5092
- const [D, y] = await Wd().run({}, { params: { aliasName: b.actionValue } });
5098
+ const [D, y] = await Wd().run({}, { params: { aliasName: X.actionValue } });
5093
5099
  D ? await Yf().run({
5094
- uniqueId: b.uniqueId,
5100
+ uniqueId: X.uniqueId,
5095
5101
  status: 0,
5096
- errorMsg: "未找到" + b.actionValue
5102
+ errorMsg: "未找到" + X.actionValue
5097
5103
  }) : y.length ? (y.length > 1 ? d(y) : d((s = y[0]) == null ? void 0 : s.code), await Yf().run({
5098
- uniqueId: b.uniqueId,
5104
+ uniqueId: X.uniqueId,
5099
5105
  status: 1,
5100
5106
  targetName: (q = y[0]) == null ? void 0 : q.name
5101
5107
  })) : await Yf().run({
5102
- uniqueId: b.uniqueId,
5108
+ uniqueId: X.uniqueId,
5103
5109
  status: 0,
5104
- errorMsg: "未找到" + b.actionValue
5110
+ errorMsg: "未找到" + X.actionValue
5105
5111
  });
5106
5112
  }
5107
5113
  z.value = !0;
5108
5114
  }, 2e3);
5109
- }, u = (b) => {
5115
+ }, u = (X) => {
5110
5116
  const s = Tf(), q = JSON.parse(atob(s.split(".")[1])).sub;
5111
- Zd().on(`${b}:${q}`, async function(y) {
5117
+ Zd().on(`${X}:${q}`, async function(y) {
5112
5118
  let E = r(y);
5113
5119
  if (E)
5114
5120
  E.uniqueId && E.actionKey == "switch-menu" && t(E);
@@ -5117,17 +5123,17 @@ const Id = QA(`/api/tool/event-bus/${gf}/`), Yf = Id.post("/publish"), Ed = re.g
5117
5123
  d(o);
5118
5124
  } else y.includes("iocIsRun") && (z.value = !1);
5119
5125
  });
5120
- }, p = O(""), [a, H] = await l9().run();
5121
- p.value = H, u(p.value);
5126
+ }, m = O(""), [a, H] = await l9().run();
5127
+ m.value = H, u(m.value);
5122
5128
  const N = async () => {
5123
- const [b, s] = await l9().run();
5124
- s !== p.value && (p.value = s, u(p.value));
5129
+ const [X, s] = await l9().run();
5130
+ s !== m.value && (m.value = s, u(m.value));
5125
5131
  };
5126
5132
  n = setInterval(() => {
5127
5133
  N();
5128
5134
  }, 72e5);
5129
- const V = O("online"), i = (b) => {
5130
- b === "online" && V.value === "offline" && setTimeout(() => {
5135
+ const V = O("online"), i = (X) => {
5136
+ X === "online" && V.value === "offline" && setTimeout(() => {
5131
5137
  N();
5132
5138
  }, 5e3), V.value = (window.navigator.onLine ? "on" : "off") + "line";
5133
5139
  };
@@ -5193,11 +5199,11 @@ const Id = QA(`/api/tool/event-bus/${gf}/`), Yf = Id.post("/publish"), Ed = re.g
5193
5199
  // 事件等级id
5194
5200
  timeLimit: ""
5195
5201
  // 处置时限
5196
- }), p = O(!1), a = O([]), H = O([]), N = O([
5202
+ }), m = O(!1), a = O([]), H = O([]), N = O([
5197
5203
  { id: 2, name: T("时").value },
5198
5204
  { id: 1, name: T("分").value },
5199
5205
  { id: 3, name: T("不限").value }
5200
- ]), V = O([]), i = O(""), X = O(T("告警对象位置").value), b = O(""), s = O([]), q = O("");
5206
+ ]), V = O([]), i = O(""), b = O(T("告警对象位置").value), X = O(""), s = O([]), q = O("");
5201
5207
  O("[]");
5202
5208
  const D = O(!0), y = O(!0), E = async (W) => {
5203
5209
  const R = { name: "1" };
@@ -5223,7 +5229,7 @@ const Id = QA(`/api/tool/event-bus/${gf}/`), Yf = Id.post("/publish"), Ed = re.g
5223
5229
  ), PA(
5224
5230
  x,
5225
5231
  (W) => {
5226
- W ? (t.value.reportTheme = T("告警对象").value, o.value = !0) : (b.value = T("请输入").value, t.value.reportTheme = "", o.value = !1);
5232
+ W ? (t.value.reportTheme = T("告警对象").value, o.value = !0) : (X.value = T("请输入").value, t.value.reportTheme = "", o.value = !1);
5227
5233
  },
5228
5234
  { immediate: !0 }
5229
5235
  );
@@ -5235,15 +5241,15 @@ const Id = QA(`/api/tool/event-bus/${gf}/`), Yf = Id.post("/publish"), Ed = re.g
5235
5241
  }, LA = (W, R) => {
5236
5242
  R.length > 0 && (i.value = R[0].path), t.value.reportPosition = W, q.value = "";
5237
5243
  }, pf = (W) => {
5238
- W && (u.value.reportPosition = "", i.value = ""), W ? (t.value.reportPosition = null, i.value = "", X.value = T("告警对象位置").value) : (t.value.reportPosition = null, i.value = "", X.value = T("请选择").value);
5244
+ W && (u.value.reportPosition = "", i.value = ""), W ? (t.value.reportPosition = null, i.value = "", b.value = T("告警对象位置").value) : (t.value.reportPosition = null, i.value = "", b.value = T("请选择").value);
5239
5245
  }, rA = (W) => {
5240
- W && (u.value.reportTheme = ""), W ? (t.value.reportTheme = "", b.value = T("告警对象").value) : (t.value.reportTheme = "", b.value = T("请输入").value);
5246
+ W && (u.value.reportTheme = ""), W ? (t.value.reportTheme = "", X.value = T("告警对象").value) : (t.value.reportTheme = "", X.value = T("请输入").value);
5241
5247
  }, AA = () => {
5242
5248
  u.value.processTypeId = "", u.value.reason = "", u.value.treatmentPlan = "", u.value.reportPosition = "", u.value.reportTheme = "", u.value.workOrderRules = "", u.value.eventTypeId = "", u.value.eventLevelId = "", u.value.timeLimit = "";
5243
5249
  }, vA = () => {
5244
- t.value.processTypeId = "confirm", t.value.reason = "", t.value.treatmentPlan = "", t.value.remarks = "", t.value.reportPosition = "", t.value.reportTheme = "", t.value.workOrderRules = null, y.value = !0, x.value = !0, o.value = !0, t.value.reportTheme = T("告警对象").value, i.value = "", X.value = T("告警对象位置").value, b.value = T("请输入").value, t.value.eventTypeId = "", t.value.eventLevelId = null, t.value.timeLimit = "", t.value.interval = 1, a.value = [], H.value = [];
5250
+ t.value.processTypeId = "confirm", t.value.reason = "", t.value.treatmentPlan = "", t.value.remarks = "", t.value.reportPosition = "", t.value.reportTheme = "", t.value.workOrderRules = null, y.value = !0, x.value = !0, o.value = !0, t.value.reportTheme = T("告警对象").value, i.value = "", b.value = T("告警对象位置").value, X.value = T("请输入").value, t.value.eventTypeId = "", t.value.eventLevelId = null, t.value.timeLimit = "", t.value.interval = 1, a.value = [], H.value = [];
5245
5251
  }, qA = (W) => {
5246
- W == "eventTypeId" && (t.value.eventLevelId = null, De()), W == "eventLevelId" && je(), W == "interval" && (u.value.timeLimit = "", t.value.interval == 3 ? (p.value = !0, t.value.timeLimit = "") : p.value = !1);
5252
+ W == "eventTypeId" && (t.value.eventLevelId = null, De()), W == "eventLevelId" && je(), W == "interval" && (u.value.timeLimit = "", t.value.interval == 3 ? (m.value = !0, t.value.timeLimit = "") : m.value = !1);
5247
5253
  }, YA = async () => {
5248
5254
  const [W, R] = await Fd().run();
5249
5255
  if (W) return {};
@@ -5492,7 +5498,7 @@ const Id = QA(`/api/tool/event-bus/${gf}/`), Yf = Id.post("/publish"), Ed = re.g
5492
5498
  "onUpdate:keyword": R[10] || (R[10] = (j) => q.value = j),
5493
5499
  showFullPath: !0,
5494
5500
  data: s.value,
5495
- placeholder: X.value,
5501
+ placeholder: b.value,
5496
5502
  disabled: D.value,
5497
5503
  load: E,
5498
5504
  search: l,
@@ -5548,7 +5554,7 @@ const Id = QA(`/api/tool/event-bus/${gf}/`), Yf = Id.post("/publish"), Ed = re.g
5548
5554
  disabled: o.value,
5549
5555
  modelValue: t.value.reportTheme,
5550
5556
  "onUpdate:modelValue": R[14] || (R[14] = (j) => t.value.reportTheme = j),
5551
- placeholder: b.value,
5557
+ placeholder: X.value,
5552
5558
  onChange: dA
5553
5559
  }, null, 8, ["disabled", "modelValue", "placeholder"]),
5554
5560
  M(c(We), {
@@ -5873,18 +5879,18 @@ const O5 = () => {
5873
5879
  var x;
5874
5880
  const o = [];
5875
5881
  o.push({ alarmId: l.recordId }), v.value = o, (x = f.value) == null || x.open();
5876
- }, { entryApp: p } = Df.hooks.useEntryApp(), a = (l) => {
5882
+ }, { entryApp: m } = Df.hooks.useEntryApp(), a = (l) => {
5877
5883
  y9(l.equipmentCode, l.equipmentPanelCode);
5878
5884
  }, { handleAlarmVue: H } = P5(f, v), N = async () => {
5879
5885
  var x;
5880
5886
  const o = (((x = J().appcategorys) == null ? void 0 : x.map((I) => I.apps).flat()) ?? []).find((I) => I.code === "alarm");
5881
- o && p({ microApp: o, menuPath: `/${o.routeUrl}/realTimeAlarm` });
5887
+ o && m({ microApp: o, menuPath: `/${o.routeUrl}/realTimeAlarm` });
5882
5888
  }, V = [], i = (l) => {
5883
5889
  if (V.push(l), P.value.length < 2) {
5884
- X(V[0]), V.shift();
5890
+ b(V[0]), V.shift();
5885
5891
  return;
5886
5892
  }
5887
- }, X = (l) => {
5893
+ }, b = (l) => {
5888
5894
  if (!l) return;
5889
5895
  const o = l5();
5890
5896
  of.open({
@@ -5906,13 +5912,13 @@ const O5 = () => {
5906
5912
  setTimeout(() => {
5907
5913
  const x = P.value.findIndex((I) => I == o);
5908
5914
  if (x >= 0 && P.value.splice(x, 1), P.value.length < 2 && V.length) {
5909
- X(V[0]), V.shift();
5915
+ b(V[0]), V.shift();
5910
5916
  return;
5911
5917
  }
5912
5918
  }, 300);
5913
5919
  }
5914
- }), P.value.includes(o) || P.value.push(o), b(l);
5915
- }, b = (l) => {
5920
+ }), P.value.includes(o) || P.value.push(o), X(l);
5921
+ }, X = (l) => {
5916
5922
  if (l) {
5917
5923
  if (!z.value) {
5918
5924
  q();
@@ -6014,9 +6020,9 @@ const O5 = () => {
6014
6020
  );
6015
6021
  const { initNextTick: r } = St(), { innerPage: d, commandList: z, initNextTick: t } = Kt(r);
6016
6022
  ez(d, r, t), fz(), $t(), rz();
6017
- const { $changePwd: u, $personSetDialog: p } = nz(), { changeEnterprisesVisible: a, userId: H, tenantId: N, changeEnterprise: V } = Hn();
6023
+ const { $changePwd: u, $personSetDialog: m } = nz(), { changeEnterprisesVisible: a, userId: H, tenantId: N, changeEnterprise: V } = Hn();
6018
6024
  _t();
6019
- const { fontColor: i, backgroudColor: X, borderColor: b } = Az();
6025
+ const { fontColor: i, backgroudColor: b, borderColor: X } = Az();
6020
6026
  return cz(), az(z), iz(), qz(), Yz(), wd(), (s, q) => (k(), cA("div", x5, [
6021
6027
  M(c(Mv), { platformInitNextTick: c(r) }, {
6022
6028
  default: w(() => [
@@ -6024,7 +6030,7 @@ const O5 = () => {
6024
6030
  showLayout: f.value,
6025
6031
  excludeRoutes: n.value,
6026
6032
  routeKeepAliveVisible: v.value,
6027
- tabsAttr: { fontColor: c(i), backgroudColor: c(X), borderColor: c(b) },
6033
+ tabsAttr: { fontColor: c(i), backgroudColor: c(b), borderColor: c(X) },
6028
6034
  menuAttr: P.value
6029
6035
  }, null, 8, ["showLayout", "excludeRoutes", "routeKeepAliveVisible", "tabsAttr", "menuAttr"])
6030
6036
  ]),
@@ -6055,7 +6061,7 @@ const O5 = () => {
6055
6061
  c(Gt),
6056
6062
  {
6057
6063
  ref_key: "$personSetDialog",
6058
- ref: p
6064
+ ref: m
6059
6065
  },
6060
6066
  null,
6061
6067
  512
@@ -6166,11 +6172,11 @@ O("@das-fed/web");
6166
6172
  const Z5 = [
6167
6173
  {
6168
6174
  path: RA,
6169
- component: () => import("./index-DF9fUHIK.js")
6175
+ component: () => import("./index-Dd_-Ntg9.js")
6170
6176
  },
6171
6177
  {
6172
6178
  path: I9,
6173
- component: () => import("./index-Ds6w01_8.js")
6179
+ component: () => import("./index-YPpvGD1A.js")
6174
6180
  }
6175
6181
  ], Vu = {
6176
6182
  routes: Z5,
@@ -6191,5 +6197,6 @@ export {
6191
6197
  Cf as d,
6192
6198
  fA as l,
6193
6199
  Vu as m,
6200
+ DA as p,
6194
6201
  vf as u
6195
6202
  };