@skyfox2000/webui 1.6.13 → 1.6.14

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.
@@ -2,8 +2,8 @@ var _r = Object.defineProperty;
2
2
  var gr = (e, t, a) => t in e ? _r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var se = (e, t, a) => gr(e, typeof t != "symbol" ? t + "" : t, a);
4
4
  import * as Fa from "vue";
5
- import { effectScope as hr, computed as Be, watch as j, isRef as Er, ref as R, shallowRef as ke, defineComponent as Me, h as ye, Fragment as qe, inject as st, onMounted as Rt, onUnmounted as pt, createVNode as Qe, Text as vr, nextTick as br, provide as Ra, toRaw as _s, reactive as yr, openBlock as ie, createBlock as zt, unref as q, mergeProps as Dt, createCommentVNode as lt, useAttrs as Zt, onActivated as ea, createElementBlock as he, withCtx as Ue, createTextVNode as ta, toDisplayString as Xe, renderList as on, normalizeClass as gs, createElementVNode as Ir } from "vue";
6
- import { Switch as Sr, AutoComplete as Nr, Input as Tr, CheckboxGroup as Lr, Checkbox as Or, RadioGroup as Ar, Radio as Pr, Select as wr, SelectOption as Fr } from "ant-design-vue";
5
+ import { effectScope as hr, computed as Be, watch as j, isRef as Er, ref as R, shallowRef as ke, defineComponent as Me, h as ye, Fragment as qe, inject as st, onMounted as Rt, onUnmounted as pt, createVNode as Qe, Text as vr, nextTick as br, provide as Ra, toRaw as _s, reactive as yr, openBlock as ie, createBlock as zt, unref as q, mergeProps as Dt, createCommentVNode as lt, useAttrs as Zt, onActivated as ea, createElementBlock as he, withCtx as Ue, createTextVNode as ta, toDisplayString as Xe, renderList as on, normalizeClass as gs, createElementVNode as Sr } from "vue";
6
+ import { Switch as Ir, AutoComplete as Nr, Input as Tr, CheckboxGroup as Lr, Checkbox as Or, RadioGroup as Ar, Radio as Pr, Select as wr, SelectOption as Fr } from "ant-design-vue";
7
7
  import { createPinia as Rr, defineStore as Ct } from "pinia";
8
8
  import Dr from "pinia-plugin-persistedstate";
9
9
  import { EnvConfig as De, AppAction as On, AppSource as An, isMicroApp as Ye, isBaseMicroApp as Cr, combineParams as kt } from "@skyfox2000/microbase";
@@ -28,10 +28,10 @@ const wn = {};
28
28
  function ln(e) {
29
29
  wn[e] || (wn[e] = !0, Le(e));
30
30
  }
31
- const Se = typeof window < "u";
31
+ const Ie = typeof window < "u";
32
32
  let de, ze;
33
33
  if (process.env.NODE_ENV !== "production") {
34
- const e = Se && window.performance;
34
+ const e = Ie && window.performance;
35
35
  e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
36
36
  e.clearMeasures && (de = (t) => {
37
37
  e.mark(t);
@@ -194,7 +194,7 @@ const zr = /<\/?[\w\s="/.':;#-\/]+>/, Zr = (e) => zr.test(e), Ne = " ", eo = "\r
194
194
  function no(e) {
195
195
  const t = e;
196
196
  let a = 0, n = 1, s = 1, r = 0;
197
- const o = (E) => t[E] === eo && t[E + 1] === oe, l = (E) => t[E] === oe, i = (E) => t[E] === ao, c = (E) => t[E] === to, m = (E) => o(E) || l(E) || i(E) || c(E), _ = () => a, p = () => n, I = () => s, F = () => r, S = (E) => o(E) || i(E) || c(E) ? oe : t[E], L = () => S(a), d = () => S(a + r);
197
+ const o = (E) => t[E] === eo && t[E + 1] === oe, l = (E) => t[E] === oe, i = (E) => t[E] === ao, c = (E) => t[E] === to, m = (E) => o(E) || l(E) || i(E) || c(E), _ = () => a, p = () => n, S = () => s, F = () => r, I = (E) => o(E) || i(E) || c(E) ? oe : t[E], L = () => I(a), d = () => I(a + r);
198
198
  function g() {
199
199
  return r = 0, m(a) && (n++, s = 0), o(a) && a++, a++, s++, t[a];
200
200
  }
@@ -216,9 +216,9 @@ function no(e) {
216
216
  return {
217
217
  index: _,
218
218
  line: p,
219
- column: I,
219
+ column: S,
220
220
  peekOffset: F,
221
- charAt: S,
221
+ charAt: I,
222
222
  currentChar: L,
223
223
  currentPeek: d,
224
224
  next: g,
@@ -258,7 +258,7 @@ function oo(e, t = {}) {
258
258
  const w = { type: f };
259
259
  return a && (w.loc = Ha(u.startLoc, u.endLoc)), y != null && (w.value = y), w;
260
260
  }
261
- const I = (u) => p(
261
+ const S = (u) => p(
262
262
  u,
263
263
  13
264
264
  /* TokenTypes.EOF */
@@ -266,14 +266,14 @@ function oo(e, t = {}) {
266
266
  function F(u, f) {
267
267
  return u.currentChar() === f ? (u.next(), f) : (_(D.EXPECTED_TOKEN, r(), 0, f), "");
268
268
  }
269
- function S(u) {
269
+ function I(u) {
270
270
  let f = "";
271
271
  for (; u.currentPeek() === Ne || u.currentPeek() === oe; )
272
272
  f += u.currentPeek(), u.peek();
273
273
  return f;
274
274
  }
275
275
  function L(u) {
276
- const f = S(u);
276
+ const f = I(u);
277
277
  return u.skipToPeek(), f;
278
278
  }
279
279
  function d(u) {
@@ -294,7 +294,7 @@ function oo(e, t = {}) {
294
294
  const { currentType: y } = f;
295
295
  if (y !== 2)
296
296
  return !1;
297
- S(u);
297
+ I(u);
298
298
  const w = d(u.currentPeek());
299
299
  return u.resetPeek(), w;
300
300
  }
@@ -302,7 +302,7 @@ function oo(e, t = {}) {
302
302
  const { currentType: y } = f;
303
303
  if (y !== 2)
304
304
  return !1;
305
- S(u);
305
+ I(u);
306
306
  const w = u.currentPeek() === "-" ? u.peek() : u.currentPeek(), J = g(w);
307
307
  return u.resetPeek(), J;
308
308
  }
@@ -310,7 +310,7 @@ function oo(e, t = {}) {
310
310
  const { currentType: y } = f;
311
311
  if (y !== 2)
312
312
  return !1;
313
- S(u);
313
+ I(u);
314
314
  const w = u.currentPeek() === kn;
315
315
  return u.resetPeek(), w;
316
316
  }
@@ -318,7 +318,7 @@ function oo(e, t = {}) {
318
318
  const { currentType: y } = f;
319
319
  if (y !== 7)
320
320
  return !1;
321
- S(u);
321
+ I(u);
322
322
  const w = u.currentPeek() === ".";
323
323
  return u.resetPeek(), w;
324
324
  }
@@ -326,7 +326,7 @@ function oo(e, t = {}) {
326
326
  const { currentType: y } = f;
327
327
  if (y !== 8)
328
328
  return !1;
329
- S(u);
329
+ I(u);
330
330
  const w = d(u.currentPeek());
331
331
  return u.resetPeek(), w;
332
332
  }
@@ -334,7 +334,7 @@ function oo(e, t = {}) {
334
334
  const { currentType: y } = f;
335
335
  if (!(y === 7 || y === 11))
336
336
  return !1;
337
- S(u);
337
+ I(u);
338
338
  const w = u.currentPeek() === ":";
339
339
  return u.resetPeek(), w;
340
340
  }
@@ -349,7 +349,7 @@ function oo(e, t = {}) {
349
349
  return u.resetPeek(), J;
350
350
  }
351
351
  function M(u) {
352
- S(u);
352
+ I(u);
353
353
  const f = u.currentPeek() === "|";
354
354
  return u.resetPeek(), f;
355
355
  }
@@ -409,7 +409,7 @@ function oo(e, t = {}) {
409
409
  y += f;
410
410
  return y;
411
411
  }
412
- function Ia(u) {
412
+ function Sa(u) {
413
413
  let f = "";
414
414
  for (; ; ) {
415
415
  const y = u.currentChar();
@@ -433,7 +433,7 @@ function oo(e, t = {}) {
433
433
  }
434
434
  return f;
435
435
  }
436
- function Sa(u) {
436
+ function Ia(u) {
437
437
  L(u);
438
438
  let f = "", y = "";
439
439
  for (; f = Ea(u); )
@@ -538,7 +538,7 @@ function oo(e, t = {}) {
538
538
  /* TokenChars.BraceRight */
539
539
  ), f.braceNest--, f.braceNest > 0 && L(u), f.inLinked && f.braceNest === 0 && (f.inLinked = !1), y;
540
540
  case "@":
541
- return f.braceNest > 0 && _(D.UNTERMINATED_CLOSING_BRACE, r(), 0), y = He(u, f) || I(f), f.braceNest = 0, y;
541
+ return f.braceNest > 0 && _(D.UNTERMINATED_CLOSING_BRACE, r(), 0), y = He(u, f) || S(f), f.braceNest = 0, y;
542
542
  default: {
543
543
  let J = !0, z = !0, $ = !0;
544
544
  if (M(u))
@@ -546,7 +546,7 @@ function oo(e, t = {}) {
546
546
  if (f.braceNest > 0 && (f.currentType === 4 || f.currentType === 5 || f.currentType === 6))
547
547
  return _(D.UNTERMINATED_CLOSING_BRACE, r(), 0), f.braceNest = 0, bt(u, f);
548
548
  if (J = N(u, f))
549
- return y = p(f, 4, Sa(u)), L(u), y;
549
+ return y = p(f, 4, Ia(u)), L(u), y;
550
550
  if (z = v(u, f))
551
551
  return y = p(f, 5, Na(u)), L(u), y;
552
552
  if ($ = b(u, f))
@@ -594,12 +594,12 @@ function oo(e, t = {}) {
594
594
  /* TokenTypes.EOF */
595
595
  };
596
596
  if (f.braceNest > 0)
597
- return vt(u, f) || I(f);
597
+ return vt(u, f) || S(f);
598
598
  if (f.inLinked)
599
- return He(u, f) || I(f);
599
+ return He(u, f) || S(f);
600
600
  switch (u.currentChar()) {
601
601
  case "{":
602
- return vt(u, f) || I(f);
602
+ return vt(u, f) || S(f);
603
603
  case "}":
604
604
  return _(D.UNBALANCED_CLOSING_BRACE, r(), 0), u.next(), p(
605
605
  f,
@@ -608,12 +608,12 @@ function oo(e, t = {}) {
608
608
  /* TokenChars.BraceRight */
609
609
  );
610
610
  case "@":
611
- return He(u, f) || I(f);
611
+ return He(u, f) || S(f);
612
612
  default: {
613
613
  if (M(u))
614
614
  return y = p(f, 1, Et(u)), f.braceNest = 0, f.inLinked = !1, y;
615
615
  if (ce(u))
616
- return p(f, 0, Ia(u));
616
+ return p(f, 0, Sa(u));
617
617
  break;
618
618
  }
619
619
  }
@@ -732,7 +732,7 @@ function mo(e = {}) {
732
732
  node: N
733
733
  };
734
734
  }
735
- function I(d) {
735
+ function S(d) {
736
736
  const g = d.context(), N = g.currentType === 1 ? d.currentOffset() : g.offset, v = g.currentType === 1 ? g.endLoc : g.startLoc, b = s(2, N, v);
737
737
  b.items = [];
738
738
  let O = null;
@@ -767,18 +767,18 @@ function mo(e = {}) {
767
767
  const E = s(1, g, N);
768
768
  E.cases = [], E.cases.push(v);
769
769
  do {
770
- const C = I(d);
770
+ const C = S(d);
771
771
  O || (O = C.items.length === 0), E.cases.push(C);
772
772
  } while (b.currentType !== 13);
773
773
  return O && n(d, D.MUST_HAVE_MESSAGES_IN_PLURAL, N, 0), r(E, d.currentOffset(), d.currentPosition()), E;
774
774
  }
775
- function S(d) {
776
- const g = d.context(), { offset: N, startLoc: v } = g, b = I(d);
775
+ function I(d) {
776
+ const g = d.context(), { offset: N, startLoc: v } = g, b = S(d);
777
777
  return g.currentType === 13 ? b : F(d, N, v, b);
778
778
  }
779
779
  function L(d) {
780
780
  const g = oo(d, te({}, e)), N = g.context(), v = s(0, N.offset, N.startLoc);
781
- return t && v.loc && (v.loc.source = d), v.body = S(g), e.onCacheKey && (v.cacheKey = e.onCacheKey(d)), N.currentType !== 13 && n(g, D.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, d[N.offset] || ""), r(v, g.currentOffset(), g.currentPosition()), v;
781
+ return t && v.loc && (v.loc.source = d), v.body = I(g), e.onCacheKey && (v.cacheKey = e.onCacheKey(d)), N.currentType !== 13 && n(g, D.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, d[N.offset] || ""), r(v, g.currentOffset(), g.currentPosition()), v;
782
782
  }
783
783
  return { parse: L };
784
784
  }
@@ -943,20 +943,20 @@ function vo(e, t) {
943
943
  };
944
944
  r && e.loc && (o.source = e.loc.source);
945
945
  const l = () => o;
946
- function i(S, L) {
947
- o.code += S;
946
+ function i(I, L) {
947
+ o.code += I;
948
948
  }
949
- function c(S, L = !0) {
949
+ function c(I, L = !0) {
950
950
  const d = L ? n : "";
951
- i(s ? d + " ".repeat(S) : d);
951
+ i(s ? d + " ".repeat(I) : d);
952
952
  }
953
- function m(S = !0) {
953
+ function m(I = !0) {
954
954
  const L = ++o.indentLevel;
955
- S && c(L);
955
+ I && c(L);
956
956
  }
957
- function _(S = !0) {
957
+ function _(I = !0) {
958
958
  const L = --o.indentLevel;
959
- S && c(L);
959
+ I && c(L);
960
960
  }
961
961
  function p() {
962
962
  c(o.indentLevel);
@@ -967,7 +967,7 @@ function vo(e, t) {
967
967
  indent: m,
968
968
  deindent: _,
969
969
  newline: p,
970
- helper: (S) => `_${S}`,
970
+ helper: (I) => `_${I}`,
971
971
  needIndent: () => o.needIndent
972
972
  };
973
973
  }
@@ -989,7 +989,7 @@ function yo(e, t) {
989
989
  e.push(", ");
990
990
  e.deindent(n()), e.push("])");
991
991
  }
992
- function Io(e, t) {
992
+ function So(e, t) {
993
993
  const { helper: a, needIndent: n } = e;
994
994
  if (t.cases.length > 1) {
995
995
  e.push(`${a(
@@ -1002,17 +1002,17 @@ function Io(e, t) {
1002
1002
  e.deindent(n()), e.push("])");
1003
1003
  }
1004
1004
  }
1005
- function So(e, t) {
1005
+ function Io(e, t) {
1006
1006
  t.body ? ct(e, t.body) : e.push("null");
1007
1007
  }
1008
1008
  function ct(e, t) {
1009
1009
  const { helper: a } = e;
1010
1010
  switch (t.type) {
1011
1011
  case 0:
1012
- So(e, t);
1012
+ Io(e, t);
1013
1013
  break;
1014
1014
  case 1:
1015
- Io(e, t);
1015
+ So(e, t);
1016
1016
  break;
1017
1017
  case 2:
1018
1018
  yo(e, t);
@@ -1099,13 +1099,13 @@ const ys = ["c", "cases"];
1099
1099
  function Ao(e) {
1100
1100
  return Ve(e, ys, []);
1101
1101
  }
1102
- const Is = ["s", "static"];
1102
+ const Ss = ["s", "static"];
1103
1103
  function Po(e) {
1104
- return Ve(e, Is);
1104
+ return Ve(e, Ss);
1105
1105
  }
1106
- const Ss = ["i", "items"];
1106
+ const Is = ["i", "items"];
1107
1107
  function wo(e) {
1108
- return Ve(e, Ss, []);
1108
+ return Ve(e, Is, []);
1109
1109
  }
1110
1110
  const Ns = ["t", "type"];
1111
1111
  function mn(e) {
@@ -1143,8 +1143,8 @@ function Ve(e, t, a) {
1143
1143
  const As = [
1144
1144
  ...bs,
1145
1145
  ...ys,
1146
- ...Is,
1147
1146
  ...Ss,
1147
+ ...Is,
1148
1148
  ...Os,
1149
1149
  ...Ls,
1150
1150
  ...Ts,
@@ -1608,7 +1608,7 @@ function Zo(e) {
1608
1608
  ]();
1609
1609
  }
1610
1610
  };
1611
- function I() {
1611
+ function S() {
1612
1612
  const F = e[a + 1];
1613
1613
  if (n === 5 && F === "'" || n === 6 && F === '"')
1614
1614
  return a++, l = "\\" + F, p[
@@ -1617,7 +1617,7 @@ function Zo(e) {
1617
1617
  ](), !0;
1618
1618
  }
1619
1619
  for (; n !== null; )
1620
- if (a++, r = e[a], !(r === "\\" && I())) {
1620
+ if (a++, r = e[a], !(r === "\\" && S())) {
1621
1621
  if (i = Xo(r), _ = $e[n], c = _[i] || _.l || 8, c === 8 || (n = c[0], c[1] !== void 0 && (m = p[c[1]], m && (l = r, m() === !1))))
1622
1622
  return;
1623
1623
  if (n === 7)
@@ -1701,7 +1701,7 @@ const Gn = (e) => {
1701
1701
  }, ul = () => Ds;
1702
1702
  let Kn = 0;
1703
1703
  function fl(e = {}) {
1704
- const t = Y(e.onWarn) ? e.onWarn : Le, a = A(e.version) ? e.version : nl, n = A(e.locale) || Y(e.locale) ? e.locale : At, s = Y(n) ? At : n, r = Q(e.fallbackLocale) || x(e.fallbackLocale) || A(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = x(e.messages) ? e.messages : Ma(s), l = x(e.datetimeFormats) ? e.datetimeFormats : Ma(s), i = x(e.numberFormats) ? e.numberFormats : Ma(s), c = te(G(), e.modifiers, sl()), m = e.pluralRules || G(), _ = Y(e.missing) ? e.missing : null, p = U(e.missingWarn) || it(e.missingWarn) ? e.missingWarn : !0, I = U(e.fallbackWarn) || it(e.fallbackWarn) ? e.fallbackWarn : !0, F = !!e.fallbackFormat, S = !!e.unresolving, L = Y(e.postTranslation) ? e.postTranslation : null, d = x(e.processor) ? e.processor : null, g = U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, v = Y(e.messageCompiler) ? e.messageCompiler : Ps;
1704
+ const t = Y(e.onWarn) ? e.onWarn : Le, a = A(e.version) ? e.version : nl, n = A(e.locale) || Y(e.locale) ? e.locale : At, s = Y(n) ? At : n, r = Q(e.fallbackLocale) || x(e.fallbackLocale) || A(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = x(e.messages) ? e.messages : Ma(s), l = x(e.datetimeFormats) ? e.datetimeFormats : Ma(s), i = x(e.numberFormats) ? e.numberFormats : Ma(s), c = te(G(), e.modifiers, sl()), m = e.pluralRules || G(), _ = Y(e.missing) ? e.missing : null, p = U(e.missingWarn) || it(e.missingWarn) ? e.missingWarn : !0, S = U(e.fallbackWarn) || it(e.fallbackWarn) ? e.fallbackWarn : !0, F = !!e.fallbackFormat, I = !!e.unresolving, L = Y(e.postTranslation) ? e.postTranslation : null, d = x(e.processor) ? e.processor : null, g = U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, v = Y(e.messageCompiler) ? e.messageCompiler : Ps;
1705
1705
  process.env.NODE_ENV !== "production" && Y(e.messageCompiler) && ln(Ce(ne.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
1706
1706
  const b = Y(e.messageResolver) ? e.messageResolver : ws || el, O = Y(e.localeFallbacker) ? e.localeFallbacker : Fs || Bo, E = V(e.fallbackContext) ? e.fallbackContext : void 0, C = e, k = V(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), M = V(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(), ce = V(C.__meta) ? C.__meta : {};
1707
1707
  Kn++;
@@ -1715,9 +1715,9 @@ function fl(e = {}) {
1715
1715
  pluralRules: m,
1716
1716
  missing: _,
1717
1717
  missingWarn: p,
1718
- fallbackWarn: I,
1718
+ fallbackWarn: S,
1719
1719
  fallbackFormat: F,
1720
- unresolving: S,
1720
+ unresolving: I,
1721
1721
  postTranslation: L,
1722
1722
  processor: d,
1723
1723
  warnHtmlMessage: g,
@@ -1783,21 +1783,21 @@ function Yn(e, ...t) {
1783
1783
  return process.env.NODE_ENV !== "production" && r(Ce(ne.INVALID_DATE_ARGUMENT, {
1784
1784
  value: String(t[0])
1785
1785
  })), ut;
1786
- const [i, c, m, _] = Ka(...t), p = U(m.missingWarn) ? m.missingWarn : e.missingWarn, I = U(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, F = !!m.part, S = pn(e, m), L = o(
1786
+ const [i, c, m, _] = Ka(...t), p = U(m.missingWarn) ? m.missingWarn : e.missingWarn, S = U(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, F = !!m.part, I = pn(e, m), L = o(
1787
1787
  e,
1788
1788
  // eslint-disable-line @typescript-eslint/no-explicit-any
1789
1789
  s,
1790
- S
1790
+ I
1791
1791
  );
1792
1792
  if (!A(i) || i === "")
1793
- return new Intl.DateTimeFormat(S.replace(/!/g, ""), _).format(c);
1794
- let d = {}, g, N = null, v = S, b = null;
1793
+ return new Intl.DateTimeFormat(I.replace(/!/g, ""), _).format(c);
1794
+ let d = {}, g, N = null, v = I, b = null;
1795
1795
  const O = "datetime format";
1796
1796
  for (let k = 0; k < L.length; k++) {
1797
- if (g = b = L[k], process.env.NODE_ENV !== "production" && S !== g && oa(I, i) && r(Ce(ne.FALLBACK_TO_DATE_FORMAT, {
1797
+ if (g = b = L[k], process.env.NODE_ENV !== "production" && I !== g && oa(S, i) && r(Ce(ne.FALLBACK_TO_DATE_FORMAT, {
1798
1798
  key: i,
1799
1799
  target: g
1800
- })), process.env.NODE_ENV !== "production" && S !== g) {
1800
+ })), process.env.NODE_ENV !== "production" && I !== g) {
1801
1801
  const M = e.__v_emitter;
1802
1802
  M && M.emit("fallback", {
1803
1803
  type: O,
@@ -1881,21 +1881,21 @@ function Jn(e, ...t) {
1881
1881
  return process.env.NODE_ENV !== "production" && r(Ce(ne.INVALID_NUMBER_ARGUMENT, {
1882
1882
  value: String(t[0])
1883
1883
  })), ut;
1884
- const [i, c, m, _] = Ba(...t), p = U(m.missingWarn) ? m.missingWarn : e.missingWarn, I = U(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, F = !!m.part, S = pn(e, m), L = o(
1884
+ const [i, c, m, _] = Ba(...t), p = U(m.missingWarn) ? m.missingWarn : e.missingWarn, S = U(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, F = !!m.part, I = pn(e, m), L = o(
1885
1885
  e,
1886
1886
  // eslint-disable-line @typescript-eslint/no-explicit-any
1887
1887
  s,
1888
- S
1888
+ I
1889
1889
  );
1890
1890
  if (!A(i) || i === "")
1891
- return new Intl.NumberFormat(S.replace(/!/g, ""), _).format(c);
1892
- let d = {}, g, N = null, v = S, b = null;
1891
+ return new Intl.NumberFormat(I.replace(/!/g, ""), _).format(c);
1892
+ let d = {}, g, N = null, v = I, b = null;
1893
1893
  const O = "number format";
1894
1894
  for (let k = 0; k < L.length; k++) {
1895
- if (g = b = L[k], process.env.NODE_ENV !== "production" && S !== g && oa(I, i) && r(Ce(ne.FALLBACK_TO_NUMBER_FORMAT, {
1895
+ if (g = b = L[k], process.env.NODE_ENV !== "production" && I !== g && oa(S, i) && r(Ce(ne.FALLBACK_TO_NUMBER_FORMAT, {
1896
1896
  key: i,
1897
1897
  target: g
1898
- })), process.env.NODE_ENV !== "production" && S !== g) {
1898
+ })), process.env.NODE_ENV !== "production" && I !== g) {
1899
1899
  const M = e.__v_emitter;
1900
1900
  M && M.emit("fallback", {
1901
1901
  type: O,
@@ -1973,7 +1973,7 @@ function vl(e = {}) {
1973
1973
  const E = Y(e.messages) ? e.messages(b, !!O) : V(e.messages) ? e.messages[b] : !1;
1974
1974
  return E || (e.parent ? e.parent.message(b) : pl);
1975
1975
  }
1976
- const _ = (b) => e.modifiers ? e.modifiers[b] : ml, p = Y((g = e.processor) == null ? void 0 : g.normalize) ? e.processor.normalize : gl, I = Y((N = e.processor) == null ? void 0 : N.interpolate) ? e.processor.interpolate : hl, F = A((v = e.processor) == null ? void 0 : v.type) ? e.processor.type : _l, L = {
1976
+ const _ = (b) => e.modifiers ? e.modifiers[b] : ml, p = Y((g = e.processor) == null ? void 0 : g.normalize) ? e.processor.normalize : gl, S = Y((N = e.processor) == null ? void 0 : N.interpolate) ? e.processor.interpolate : hl, F = A((v = e.processor) == null ? void 0 : v.type) ? e.processor.type : _l, L = {
1977
1977
  list: l,
1978
1978
  named: c,
1979
1979
  plural: r,
@@ -1989,7 +1989,7 @@ function vl(e = {}) {
1989
1989
  },
1990
1990
  message: m,
1991
1991
  type: F,
1992
- interpolate: I,
1992
+ interpolate: S,
1993
1993
  normalize: p,
1994
1994
  values: te(G(), o, i)
1995
1995
  };
@@ -1997,14 +1997,14 @@ function vl(e = {}) {
1997
1997
  }
1998
1998
  const Qn = () => "", _e = (e) => Y(e);
1999
1999
  function Xn(e, ...t) {
2000
- const { fallbackFormat: a, postTranslation: n, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [i, c] = Ya(...t), m = U(c.missingWarn) ? c.missingWarn : e.missingWarn, _ = U(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, p = U(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, I = !!c.resolvedMessage, F = A(c.default) || U(c.default) ? U(c.default) ? r ? i : () => i : c.default : a ? r ? i : () => i : null, S = a || F != null && (A(F) || Y(F)), L = pn(e, c);
2000
+ const { fallbackFormat: a, postTranslation: n, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [i, c] = Ya(...t), m = U(c.missingWarn) ? c.missingWarn : e.missingWarn, _ = U(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, p = U(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, S = !!c.resolvedMessage, F = A(c.default) || U(c.default) ? U(c.default) ? r ? i : () => i : c.default : a ? r ? i : () => i : null, I = a || F != null && (A(F) || Y(F)), L = pn(e, c);
2001
2001
  p && bl(c);
2002
- let [d, g, N] = I ? [
2002
+ let [d, g, N] = S ? [
2003
2003
  i,
2004
2004
  L,
2005
2005
  l[L] || G()
2006
2006
  ] : Vs(e, i, L, o, _, m), v = d, b = i;
2007
- if (!I && !(A(v) || ve(v) || _e(v)) && S && (v = F, b = v), !I && (!(A(v) || ve(v) || _e(v)) || !A(g)))
2007
+ if (!S && !(A(v) || ve(v) || _e(v)) && I && (v = F, b = v), !S && (!(A(v) || ve(v) || _e(v)) || !A(g)))
2008
2008
  return s ? ra : i;
2009
2009
  if (process.env.NODE_ENV !== "production" && A(v) && e.messageCompiler == null)
2010
2010
  return Le(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${i}'.`), i;
@@ -2035,10 +2035,10 @@ function bl(e) {
2035
2035
  }
2036
2036
  function Vs(e, t, a, n, s, r) {
2037
2037
  const { messages: o, onWarn: l, messageResolver: i, localeFallbacker: c } = e, m = c(e, n, a);
2038
- let _ = G(), p, I = null, F = a, S = null;
2038
+ let _ = G(), p, S = null, F = a, I = null;
2039
2039
  const L = "translate";
2040
2040
  for (let d = 0; d < m.length; d++) {
2041
- if (p = S = m[d], process.env.NODE_ENV !== "production" && a !== p && !ks(a, p) && oa(s, t) && l(Ce(ne.FALLBACK_TO_TRANSLATE, {
2041
+ if (p = I = m[d], process.env.NODE_ENV !== "production" && a !== p && !ks(a, p) && oa(s, t) && l(Ce(ne.FALLBACK_TO_TRANSLATE, {
2042
2042
  key: t,
2043
2043
  target: p
2044
2044
  })), process.env.NODE_ENV !== "production" && a !== p) {
@@ -2047,23 +2047,23 @@ function Vs(e, t, a, n, s, r) {
2047
2047
  type: L,
2048
2048
  key: t,
2049
2049
  from: F,
2050
- to: S,
2050
+ to: I,
2051
2051
  groupId: `${L}:${t}`
2052
2052
  });
2053
2053
  }
2054
2054
  _ = o[p] || G();
2055
2055
  let g = null, N, v;
2056
- if (process.env.NODE_ENV !== "production" && Se && (g = window.performance.now(), N = "intlify-message-resolve-start", v = "intlify-message-resolve-end", de && de(N)), (I = i(_, t)) === null && (I = _[t]), process.env.NODE_ENV !== "production" && Se) {
2056
+ if (process.env.NODE_ENV !== "production" && Ie && (g = window.performance.now(), N = "intlify-message-resolve-start", v = "intlify-message-resolve-end", de && de(N)), (S = i(_, t)) === null && (S = _[t]), process.env.NODE_ENV !== "production" && Ie) {
2057
2057
  const b = window.performance.now(), O = e.__v_emitter;
2058
- O && g && I && O.emit("message-resolve", {
2058
+ O && g && S && O.emit("message-resolve", {
2059
2059
  type: "message-resolve",
2060
2060
  key: t,
2061
- message: I,
2061
+ message: S,
2062
2062
  time: b - g,
2063
2063
  groupId: `${L}:${t}`
2064
2064
  }), N && v && de && ze && (de(v), ze("intlify message resolve", N, v));
2065
2065
  }
2066
- if (A(I) || ve(I) || _e(I))
2066
+ if (A(S) || ve(S) || _e(S))
2067
2067
  break;
2068
2068
  if (!dl(p, m)) {
2069
2069
  const b = _n(
@@ -2074,11 +2074,11 @@ function Vs(e, t, a, n, s, r) {
2074
2074
  r,
2075
2075
  L
2076
2076
  );
2077
- b !== t && (I = b);
2077
+ b !== t && (S = b);
2078
2078
  }
2079
- F = S;
2079
+ F = I;
2080
2080
  }
2081
- return [I, p, _];
2081
+ return [S, p, _];
2082
2082
  }
2083
2083
  function $s(e, t, a, n, s, r) {
2084
2084
  const { messageCompiler: o, warnHtmlMessage: l } = e;
@@ -2091,11 +2091,11 @@ function $s(e, t, a, n, s, r) {
2091
2091
  return p.locale = a, p.key = t, p;
2092
2092
  }
2093
2093
  let i = null, c, m;
2094
- process.env.NODE_ENV !== "production" && Se && (i = window.performance.now(), c = "intlify-message-compilation-start", m = "intlify-message-compilation-end", de && de(c));
2095
- const _ = o(n, Il(e, a, s, n, l, r));
2096
- if (process.env.NODE_ENV !== "production" && Se) {
2097
- const p = window.performance.now(), I = e.__v_emitter;
2098
- I && i && I.emit("message-compilation", {
2094
+ process.env.NODE_ENV !== "production" && Ie && (i = window.performance.now(), c = "intlify-message-compilation-start", m = "intlify-message-compilation-end", de && de(c));
2095
+ const _ = o(n, Sl(e, a, s, n, l, r));
2096
+ if (process.env.NODE_ENV !== "production" && Ie) {
2097
+ const p = window.performance.now(), S = e.__v_emitter;
2098
+ S && i && S.emit("message-compilation", {
2099
2099
  type: "message-compilation",
2100
2100
  message: n,
2101
2101
  time: p - i,
@@ -2106,9 +2106,9 @@ function $s(e, t, a, n, s, r) {
2106
2106
  }
2107
2107
  function yl(e, t, a) {
2108
2108
  let n = null, s, r;
2109
- process.env.NODE_ENV !== "production" && Se && (n = window.performance.now(), s = "intlify-message-evaluation-start", r = "intlify-message-evaluation-end", de && de(s));
2109
+ process.env.NODE_ENV !== "production" && Ie && (n = window.performance.now(), s = "intlify-message-evaluation-start", r = "intlify-message-evaluation-end", de && de(s));
2110
2110
  const o = t(a);
2111
- if (process.env.NODE_ENV !== "production" && Se) {
2111
+ if (process.env.NODE_ENV !== "production" && Ie) {
2112
2112
  const l = window.performance.now(), i = e.__v_emitter;
2113
2113
  i && n && i.emit("message-evaluation", {
2114
2114
  type: "message-evaluation",
@@ -2126,14 +2126,14 @@ function Ya(...e) {
2126
2126
  const r = ee(t) ? String(t) : (_e(t), t);
2127
2127
  return ee(a) ? s.plural = a : A(a) ? s.default = a : x(a) && !sa(a) ? s.named = a : Q(a) && (s.list = a), ee(n) ? s.plural = n : A(n) ? s.default = n : x(n) && te(s, n), [r, s];
2128
2128
  }
2129
- function Il(e, t, a, n, s, r) {
2129
+ function Sl(e, t, a, n, s, r) {
2130
2130
  return {
2131
2131
  locale: t,
2132
2132
  key: a,
2133
2133
  warnHtmlMessage: s,
2134
2134
  onError: (o) => {
2135
2135
  if (r && r(o), process.env.NODE_ENV !== "production") {
2136
- const l = Sl(n), i = o.location && l && jr(l, o.location.start.offset, o.location.end.offset), c = e.__v_emitter;
2136
+ const l = Il(n), i = o.location && l && jr(l, o.location.start.offset, o.location.end.offset), c = e.__v_emitter;
2137
2137
  c && l && c.emit("compile-error", {
2138
2138
  message: l,
2139
2139
  error: o.message,
@@ -2150,7 +2150,7 @@ ${i}` : m);
2150
2150
  onCacheKey: (o) => $r(t, a, o)
2151
2151
  };
2152
2152
  }
2153
- function Sl(e) {
2153
+ function Il(e) {
2154
2154
  if (A(e))
2155
2155
  return e;
2156
2156
  if (e.loc && e.loc.source)
@@ -2161,27 +2161,27 @@ function Nl(e, t, a, n) {
2161
2161
  locale: t,
2162
2162
  modifiers: s,
2163
2163
  pluralRules: r,
2164
- messages: (I, F) => {
2165
- let S = o(a, I);
2166
- if (S == null && (m || F)) {
2164
+ messages: (S, F) => {
2165
+ let I = o(a, S);
2166
+ if (I == null && (m || F)) {
2167
2167
  const [, , L] = Vs(
2168
2168
  m || e,
2169
2169
  // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
2170
- I,
2170
+ S,
2171
2171
  t,
2172
2172
  l,
2173
2173
  i,
2174
2174
  c
2175
2175
  );
2176
- S = o(L, I);
2176
+ I = o(L, S);
2177
2177
  }
2178
- if (A(S) || ve(S)) {
2178
+ if (A(I) || ve(I)) {
2179
2179
  let L = !1;
2180
- const g = $s(e, I, t, S, I, () => {
2180
+ const g = $s(e, S, t, I, S, () => {
2181
2181
  L = !0;
2182
2182
  });
2183
2183
  return L ? Qn : g;
2184
- } else return _e(S) ? S : Qn;
2184
+ } else return _e(I) ? I : Qn;
2185
2185
  }
2186
2186
  };
2187
2187
  return e.processor && (p.processor = e.processor), n.list && (p.list = n.list), n.named && (p.named = n.named), ee(n.plural) && (p.pluralIndex = n.plural), p;
@@ -2443,7 +2443,7 @@ const Ul = /* @__NO_SIDE_EFFECTS__ */ () => {
2443
2443
  return e && (t = Ks(e)[Zn]) ? { [Zn]: t } : null;
2444
2444
  };
2445
2445
  function hn(e = {}) {
2446
- const { __root: t, __injectWithOption: a } = e, n = t === void 0, s = e.flatJson, r = Se ? R : ke;
2446
+ const { __root: t, __injectWithOption: a } = e, n = t === void 0, s = e.flatJson, r = Ie ? R : ke;
2447
2447
  let o = U(e.inheritLocale) ? e.inheritLocale : !0;
2448
2448
  const l = r(
2449
2449
  // prettier-ignore
@@ -2452,7 +2452,7 @@ function hn(e = {}) {
2452
2452
  // prettier-ignore
2453
2453
  t && o ? t.fallbackLocale.value : A(e.fallbackLocale) || Q(e.fallbackLocale) || x(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
2454
2454
  ), c = r(gn(l.value, e)), m = r(x(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), _ = r(x(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
2455
- let p = t ? t.missingWarn : U(e.missingWarn) || it(e.missingWarn) ? e.missingWarn : !0, I = t ? t.fallbackWarn : U(e.fallbackWarn) || it(e.fallbackWarn) ? e.fallbackWarn : !0, F = t ? t.fallbackRoot : U(e.fallbackRoot) ? e.fallbackRoot : !0, S = !!e.fallbackFormat, L = Y(e.missing) ? e.missing : null, d = Y(e.missing) ? as(e.missing) : null, g = Y(e.postTranslation) ? e.postTranslation : null, N = t ? t.warnHtmlMessage : U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, v = !!e.escapeParameter;
2455
+ let p = t ? t.missingWarn : U(e.missingWarn) || it(e.missingWarn) ? e.missingWarn : !0, S = t ? t.fallbackWarn : U(e.fallbackWarn) || it(e.fallbackWarn) ? e.fallbackWarn : !0, F = t ? t.fallbackRoot : U(e.fallbackRoot) ? e.fallbackRoot : !0, I = !!e.fallbackFormat, L = Y(e.missing) ? e.missing : null, d = Y(e.missing) ? as(e.missing) : null, g = Y(e.postTranslation) ? e.postTranslation : null, N = t ? t.warnHtmlMessage : U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, v = !!e.escapeParameter;
2456
2456
  const b = t ? t.modifiers : x(e.modifiers) ? e.modifiers : {};
2457
2457
  let O = e.pluralRules || t && t.pluralRules, E;
2458
2458
  E = (() => {
@@ -2466,8 +2466,8 @@ function hn(e = {}) {
2466
2466
  pluralRules: O,
2467
2467
  missing: d === null ? void 0 : d,
2468
2468
  missingWarn: p,
2469
- fallbackWarn: I,
2470
- fallbackFormat: S,
2469
+ fallbackWarn: S,
2470
+ fallbackFormat: I,
2471
2471
  unresolving: !0,
2472
2472
  postTranslation: g === null ? void 0 : g,
2473
2473
  warnHtmlMessage: N,
@@ -2526,7 +2526,7 @@ function hn(e = {}) {
2526
2526
  if (H !== "translate exists" && // for not `te` (e.g `t`)
2527
2527
  ee(me) && me === ra || H === "translate exists" && !me) {
2528
2528
  const [Ke, pr] = T();
2529
- if (process.env.NODE_ENV !== "production" && t && A(Ke) && ya(H, pr) && (F && (oa(I, Ke) || Cs(p, Ke)) && Le(ft(ge.FALLBACK_TO_ROOT, {
2529
+ if (process.env.NODE_ENV !== "production" && t && A(Ke) && ya(H, pr) && (F && (oa(S, Ke) || Cs(p, Ke)) && Le(ft(ge.FALLBACK_TO_ROOT, {
2530
2530
  key: Ke,
2531
2531
  type: H
2532
2532
  })), process.env.NODE_ENV !== "production")) {
@@ -2548,13 +2548,13 @@ function hn(e = {}) {
2548
2548
  function ht(...h) {
2549
2549
  return Pe((T) => Reflect.apply(Xn, null, [T, ...h]), () => Ya(...h), "translate", (T) => Reflect.apply(T.t, T, [...h]), (T) => T, (T) => A(T));
2550
2550
  }
2551
- function Ia(...h) {
2551
+ function Sa(...h) {
2552
2552
  const [T, H, X] = h;
2553
2553
  if (X && !V(X))
2554
2554
  throw fe(B.INVALID_ARGUMENT);
2555
2555
  return ht(T, H, te({ resolvedMessage: !0 }, X || {}));
2556
2556
  }
2557
- function Sa(...h) {
2557
+ function Ia(...h) {
2558
2558
  return Pe((T) => Reflect.apply(Yn, null, [T, ...h]), () => Ka(...h), "datetime format", (T) => Reflect.apply(T.d, T, [...h]), () => ut, (T) => A(T) || Q(T));
2559
2559
  }
2560
2560
  function Na(...h) {
@@ -2657,7 +2657,7 @@ function hn(e = {}) {
2657
2657
  function z(h, T) {
2658
2658
  _.value[h] = te(_.value[h] || {}, T), E.numberFormats = _.value, qn(E, h, T);
2659
2659
  }
2660
- ts++, t && Se && (j(t.locale, (h) => {
2660
+ ts++, t && Ie && (j(t.locale, (h) => {
2661
2661
  o && (l.value = h, E.locale = h, yt(E, l.value, i.value));
2662
2662
  }), j(t.fallbackLocale, (h) => {
2663
2663
  o && (i.value = h, E.fallbackLocale = h, yt(E, l.value, i.value));
@@ -2692,10 +2692,10 @@ function hn(e = {}) {
2692
2692
  p = h, E.missingWarn = p;
2693
2693
  },
2694
2694
  get fallbackWarn() {
2695
- return I;
2695
+ return S;
2696
2696
  },
2697
2697
  set fallbackWarn(h) {
2698
- I = h, E.fallbackWarn = I;
2698
+ S = h, E.fallbackWarn = S;
2699
2699
  },
2700
2700
  get fallbackRoot() {
2701
2701
  return F;
@@ -2704,10 +2704,10 @@ function hn(e = {}) {
2704
2704
  F = h;
2705
2705
  },
2706
2706
  get fallbackFormat() {
2707
- return S;
2707
+ return I;
2708
2708
  },
2709
2709
  set fallbackFormat(h) {
2710
- S = h, E.fallbackFormat = S;
2710
+ I = h, E.fallbackFormat = I;
2711
2711
  },
2712
2712
  get warnHtmlMessage() {
2713
2713
  return N;
@@ -2731,7 +2731,7 @@ function hn(e = {}) {
2731
2731
  setMissingHandler: ba,
2732
2732
  [Ws]: Aa
2733
2733
  };
2734
- return $.datetimeFormats = Ae, $.numberFormats = ga, $.rt = Ia, $.te = Pa, $.tm = vt, $.d = Sa, $.n = Na, $.getDateTimeFormat = u, $.setDateTimeFormat = f, $.mergeDateTimeFormat = y, $.getNumberFormat = w, $.setNumberFormat = J, $.mergeNumberFormat = z, $[Gs] = a, $[Ja] = Ht, $[qa] = Wt, $[Qa] = Oa, process.env.NODE_ENV !== "production" && ($[Ze] = (h) => {
2734
+ return $.datetimeFormats = Ae, $.numberFormats = ga, $.rt = Sa, $.te = Pa, $.tm = vt, $.d = Ia, $.n = Na, $.getDateTimeFormat = u, $.setDateTimeFormat = f, $.mergeDateTimeFormat = y, $.getNumberFormat = w, $.setNumberFormat = J, $.mergeNumberFormat = z, $[Gs] = a, $[Ja] = Ht, $[qa] = Wt, $[Qa] = Oa, process.env.NODE_ENV !== "production" && ($[Ze] = (h) => {
2735
2735
  E.__v_emitter = h;
2736
2736
  }, $[Pt] = () => {
2737
2737
  E.__v_emitter = void 0;
@@ -2998,7 +2998,7 @@ function Xl(e, t) {
2998
2998
  }
2999
2999
  }
3000
3000
  function zl(e) {
3001
- const t = A(e.locale) ? e.locale : At, a = A(e.fallbackLocale) || Q(e.fallbackLocale) || x(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, n = Y(e.missing) ? e.missing : void 0, s = U(e.silentTranslationWarn) || it(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = U(e.silentFallbackWarn) || it(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = U(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = x(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, m = Y(e.postTranslation) ? e.postTranslation : void 0, _ = A(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml, I = U(e.sync) ? e.sync : !0;
3001
+ const t = A(e.locale) ? e.locale : At, a = A(e.fallbackLocale) || Q(e.fallbackLocale) || x(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, n = Y(e.missing) ? e.missing : void 0, s = U(e.silentTranslationWarn) || it(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = U(e.silentFallbackWarn) || it(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = U(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = x(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, m = Y(e.postTranslation) ? e.postTranslation : void 0, _ = A(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml, S = U(e.sync) ? e.sync : !0;
3002
3002
  let F = e.messages;
3003
3003
  if (x(e.sharedMessages)) {
3004
3004
  const b = e.sharedMessages;
@@ -3007,7 +3007,7 @@ function zl(e) {
3007
3007
  return te(k, b[C]), E;
3008
3008
  }, F || {});
3009
3009
  }
3010
- const { __i18n: S, __root: L, __injectWithOption: d } = e, g = e.datetimeFormats, N = e.numberFormats, v = e.flatJson;
3010
+ const { __i18n: I, __root: L, __injectWithOption: d } = e, g = e.datetimeFormats, N = e.numberFormats, v = e.flatJson;
3011
3011
  return {
3012
3012
  locale: t,
3013
3013
  fallbackLocale: a,
@@ -3026,8 +3026,8 @@ function zl(e) {
3026
3026
  warnHtmlMessage: _,
3027
3027
  escapeParameter: p,
3028
3028
  messageResolver: e.messageResolver,
3029
- inheritLocale: I,
3030
- __i18n: S,
3029
+ inheritLocale: S,
3030
+ __i18n: I,
3031
3031
  __root: L,
3032
3032
  __injectWithOption: d
3033
3033
  };
@@ -3329,12 +3329,12 @@ function Qs(e, t, a, n) {
3329
3329
  return () => {
3330
3330
  const o = { part: !0 };
3331
3331
  let l = G();
3332
- e.locale && (o.locale = e.locale), A(e.format) ? o.key = e.format : V(e.format) && (A(e.format.key) && (o.key = e.format.key), l = Object.keys(e.format).reduce((p, I) => a.includes(I) ? te(G(), p, { [I]: e.format[I] }) : p, G()));
3332
+ e.locale && (o.locale = e.locale), A(e.format) ? o.key = e.format : V(e.format) && (A(e.format.key) && (o.key = e.format.key), l = Object.keys(e.format).reduce((p, S) => a.includes(S) ? te(G(), p, { [S]: e.format[S] }) : p, G()));
3333
3333
  const i = n(e.value, o, l);
3334
3334
  let c = [o.key];
3335
- Q(i) ? c = i.map((p, I) => {
3336
- const F = s[p.type], S = F ? F({ [p.type]: p.value, index: I, parts: i }) : [p.value];
3337
- return ai(S) && (S[0].key = `${p.type}-${I}`), S;
3335
+ Q(i) ? c = i.map((p, S) => {
3336
+ const F = s[p.type], I = F ? F({ [p.type]: p.value, index: S, parts: i }) : [p.value];
3337
+ return ai(I) && (I[0].key = `${p.type}-${S}`), I;
3338
3338
  }) : A(i) && (c = [i]);
3339
3339
  const m = te(G(), r), _ = A(e.tag) || V(e.tag) ? e.tag : qs();
3340
3340
  return ye(_, m, c);
@@ -3389,12 +3389,12 @@ function ri(e) {
3389
3389
  return {
3390
3390
  created: (o, l) => {
3391
3391
  const [i, c] = t(l);
3392
- Se && (o.__i18nWatcher = j(c.locale, () => {
3392
+ Ie && (o.__i18nWatcher = j(c.locale, () => {
3393
3393
  l.instance && l.instance.$forceUpdate();
3394
3394
  })), o.__composer = c, o.textContent = i;
3395
3395
  },
3396
3396
  unmounted: (o) => {
3397
- Se && o.__i18nWatcher && (o.__i18nWatcher(), o.__i18nWatcher = void 0, delete o.__i18nWatcher), o.__composer && (o.__composer = void 0, delete o.__composer);
3397
+ Ie && o.__i18nWatcher && (o.__i18nWatcher(), o.__i18nWatcher = void 0, delete o.__i18nWatcher), o.__composer && (o.__composer = void 0, delete o.__composer);
3398
3398
  },
3399
3399
  beforeUpdate: (o, { value: l }) => {
3400
3400
  if (o.__composer) {
@@ -3450,14 +3450,14 @@ function ii(e = {}) {
3450
3450
  // install plugin
3451
3451
  async install(_, ...p) {
3452
3452
  if (process.env.NODE_ENV !== "production" && (_.__VUE_I18N__ = m), _.__VUE_I18N_SYMBOL__ = o, _.provide(_.__VUE_I18N_SYMBOL__, m), x(p[0])) {
3453
- const S = p[0];
3454
- m.__composerExtend = S.__composerExtend, m.__vueI18nExtend = S.__vueI18nExtend;
3453
+ const I = p[0];
3454
+ m.__composerExtend = I.__composerExtend, m.__vueI18nExtend = I.__vueI18nExtend;
3455
3455
  }
3456
- let I = null;
3457
- !t && a && (I = hi(_, m.global)), __VUE_I18N_FULL_INSTALL__ && oi(_, m, ...p), __VUE_I18N_LEGACY_API__ && t && _.mixin(Zl(r, r.__composer, m));
3456
+ let S = null;
3457
+ !t && a && (S = hi(_, m.global)), __VUE_I18N_FULL_INSTALL__ && oi(_, m, ...p), __VUE_I18N_LEGACY_API__ && t && _.mixin(Zl(r, r.__composer, m));
3458
3458
  const F = _.unmount;
3459
3459
  if (_.unmount = () => {
3460
- I && I(), m.dispose(), F();
3460
+ S && S(), m.dispose(), F();
3461
3461
  }, process.env.NODE_ENV !== "production") {
3462
3462
  if (!await Hl(_, m))
3463
3463
  throw fe(B.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
@@ -3678,7 +3678,6 @@ const vi = {
3678
3678
  uploadSave: "上传保存",
3679
3679
  dataLoading: "数据加载中..."
3680
3680
  },
3681
- // 组件相关
3682
3681
  components: {
3683
3682
  common: {
3684
3683
  button: {
@@ -3730,9 +3729,8 @@ const vi = {
3730
3729
  fileProcessingError: "文件处理错误",
3731
3730
  dataSaveFailed: "数据保存失败,请稍后再试!"
3732
3731
  },
3733
- listOperate: {
3734
- confirmDelete: "是否删除此记录?",
3735
- more: "更多"
3732
+ table: {
3733
+ confirmDelete: "是否删除此记录?"
3736
3734
  },
3737
3735
  toolpanel: {
3738
3736
  tool: "工具",
@@ -3856,14 +3854,11 @@ const vi = {
3856
3854
  addConfigRow: "新增配置行"
3857
3855
  },
3858
3856
  transfer: {
3857
+ pleaseInput: "请输入{0}",
3859
3858
  noData: "无数据"
3860
- },
3861
- input: {
3862
- pleaseInput: "请输入{0}"
3863
3859
  }
3864
3860
  }
3865
3861
  },
3866
- // 状态存储相关
3867
3862
  stores: {
3868
3863
  userInfo: {
3869
3864
  tokenParseFailed: "Token解析失败",
@@ -3879,7 +3874,6 @@ const vi = {
3879
3874
  loadAppListFailed: "加载应用列表失败"
3880
3875
  }
3881
3876
  },
3882
- // 工具函数相关
3883
3877
  utils: {
3884
3878
  exportTable: {
3885
3879
  exportFailed: "导出失败",
@@ -4099,10 +4093,6 @@ const vi = {
4099
4093
  fileProcessingError: "File processing error",
4100
4094
  dataSaveFailed: "Data save failed, please try again later!"
4101
4095
  },
4102
- listOperate: {
4103
- confirmDelete: "Are you sure to delete this record?",
4104
- more: "More"
4105
- },
4106
4096
  table: {
4107
4097
  confirmDelete: "Are you sure to delete this record?"
4108
4098
  },
@@ -4230,9 +4220,6 @@ const vi = {
4230
4220
  transfer: {
4231
4221
  pleaseInput: "Please enter {0}",
4232
4222
  noData: "No data"
4233
- },
4234
- input: {
4235
- pleaseInput: "Please enter {0}"
4236
4223
  }
4237
4224
  }
4238
4225
  },
@@ -4256,6 +4243,13 @@ const vi = {
4256
4243
  exportFailed: "Export failed",
4257
4244
  fileExportFailed: "File export failed, please try again later"
4258
4245
  },
4246
+ form: {
4247
+ submitValidationFailed: "Validation failed when submitting form!",
4248
+ saveSuccess: "Save successful!",
4249
+ dataAlreadyExists: "Data `{0}` already exists!",
4250
+ dataDuplicate: "Data duplicate",
4251
+ saveFailed: "Save failed"
4252
+ },
4259
4253
  formValidate: {
4260
4254
  required: "Cannot be empty",
4261
4255
  numberType: "Must be a number",
@@ -4292,10 +4286,13 @@ const vi = {
4292
4286
  uploadCancelled: "Upload cancelled"
4293
4287
  },
4294
4288
  data: {
4289
+ startExecute: "Starting...",
4295
4290
  executeSuccess: "Execution successful!",
4296
- noDataToSave: "Error! No data to save!",
4291
+ noSaveData: "Error! No data to save!",
4292
+ savingData: "Saving data...",
4297
4293
  saveSuccess: "Save successful!",
4298
- conditionalDeleteForbidden: "Error! Unconditional data deletion is forbidden!",
4294
+ deletingData: "Deleting data...",
4295
+ forbidDeleteWithoutCondition: "Error! Unconditional data deletion is forbidden!",
4299
4296
  deleteSuccess: "Delete successful!",
4300
4297
  urlNotSet: "URL not set: {urlKey}"
4301
4298
  },
@@ -4323,16 +4320,15 @@ const vi = {
4323
4320
  notConfigured: "Options data not configured!",
4324
4321
  outFieldsFormatError: "outFields format error: {sourceKey}, must be ${index} or ${index}.${key}"
4325
4322
  },
4326
- form: {
4327
- submitValidationFailed: "Validation failed when submitting form!",
4328
- saveSuccess: "Save successful!",
4329
- dataAlreadyExists: "Save failed! Data `{0}` already exists!",
4330
- dataDuplicate: "Data duplicate",
4331
- saveFailed: "Save failed"
4332
- },
4333
4323
  excelPreview: {
4334
4324
  previewUrlNotConfigured: "Preview URL or Excel controller not configured",
4335
- fileLoadFailed: "File load failed"
4325
+ fileLoadFailed: "File load failed",
4326
+ csvProcessingFailed: "CSV format processing failed",
4327
+ previewFileXlsx: "Preview file.xlsx",
4328
+ unsupportedRawFormat: "Unsupported raw file format",
4329
+ unsupportedFileFormat: "Unsupported file format",
4330
+ dataEmpty: "Data is empty",
4331
+ excelProcessingFailed: "Excel processing failed"
4336
4332
  },
4337
4333
  tools: {
4338
4334
  noClickHandler: "Click handler not configured!",
@@ -4399,7 +4395,7 @@ const Mt = ii({
4399
4395
  missingWarn: !1
4400
4396
  // 禁用缺失警告
4401
4397
  });
4402
- async function Ii(e) {
4398
+ async function Si(e) {
4403
4399
  try {
4404
4400
  const t = Date.now(), a = await fetch(`${tn}locales/${e}.json?t=${t}`);
4405
4401
  if (!a.ok)
@@ -4428,7 +4424,7 @@ async function zs(e) {
4428
4424
  const t = fs[e] || fs["zh-CN"], a = an(t);
4429
4425
  let n = {};
4430
4426
  try {
4431
- n = await Ii(e);
4427
+ n = await Si(e);
4432
4428
  } catch {
4433
4429
  }
4434
4430
  let s = a;
@@ -4448,11 +4444,11 @@ async function bc(e = "/", t) {
4448
4444
  async function yc(e) {
4449
4445
  await zs(e), Mt.global.locale.value = e, localStorage.setItem("language", e);
4450
4446
  }
4451
- function Ic(e = "code") {
4447
+ function Sc(e = "code") {
4452
4448
  const t = Mt.global.locale.value;
4453
4449
  return e === "display" ? Xt[t] : t;
4454
4450
  }
4455
- function Sc() {
4451
+ function Ic() {
4456
4452
  return Object.keys(Xt).map((e) => ({
4457
4453
  label: Xt[e],
4458
4454
  key: e
@@ -4671,7 +4667,7 @@ const xt = {
4671
4667
  type: Object,
4672
4668
  required: !1
4673
4669
  }
4674
- }, be = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, ds = "/login/", Si = () => {
4670
+ }, be = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, ds = "/login/", Ii = () => {
4675
4671
  const e = De.VITE_LOGIN_URL;
4676
4672
  if (e && (e.startsWith("http://") || e.startsWith("https://")))
4677
4673
  return e;
@@ -4692,7 +4688,7 @@ const xt = {
4692
4688
  if (!t)
4693
4689
  return a.length === 0 && !n;
4694
4690
  if (t) {
4695
- const o = Ie();
4691
+ const o = Se();
4696
4692
  if (De.VITE_PERMISSION_MODE === "none")
4697
4693
  return !0;
4698
4694
  if (De.VITE_PERMISSION_MODE === "role")
@@ -4733,7 +4729,7 @@ ca.beforeEach((e, t, a) => {
4733
4729
  if (!o)
4734
4730
  a();
4735
4731
  else {
4736
- const i = Ie();
4732
+ const i = Se();
4737
4733
  if (i.isLogin) {
4738
4734
  if (!xe().menuLoaded) {
4739
4735
  Nt.value = {
@@ -4745,7 +4741,7 @@ ca.beforeEach((e, t, a) => {
4745
4741
  const m = Ti(n, i.isLogin);
4746
4742
  a();
4747
4743
  } else {
4748
- const c = Si();
4744
+ const c = Ii();
4749
4745
  if (c) {
4750
4746
  window.location.href = c;
4751
4747
  return;
@@ -4929,7 +4925,7 @@ const Tt = {
4929
4925
  loadingText: !1
4930
4926
  }
4931
4927
  }, Va = /* @__PURE__ */ new Map(), wi = (e) => {
4932
- const t = Ie(), { roles: a, permission: n } = e.meta || {};
4928
+ const t = Se(), { roles: a, permission: n } = e.meta || {};
4933
4929
  if (be(a) && be(n) || De.VITE_PERMISSION_MODE === "none")
4934
4930
  return !0;
4935
4931
  if (De.VITE_PERMISSION_MODE === "role")
@@ -4997,7 +4993,7 @@ const Tt = {
4997
4993
  if ((e == null ? void 0 : e.status) === ue.SUCCESS && e.data)
4998
4994
  this.appList.length = 0, this.appList.push(...e.data);
4999
4995
  else if ((e == null ? void 0 : e.errno) == ua) {
5000
- Ie().logout(!1);
4996
+ Se().logout(!1);
5001
4997
  return;
5002
4998
  }
5003
4999
  });
@@ -5033,7 +5029,7 @@ const Tt = {
5033
5029
  Routes: t ?? [],
5034
5030
  defaultPage: ""
5035
5031
  }), !Ye() || !Cr())) {
5036
- const n = Ie();
5032
+ const n = Se();
5037
5033
  De.VITE_PERMISSION_MODE !== "none" && await n.getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes);
5038
5034
  }
5039
5035
  },
@@ -5054,7 +5050,7 @@ const Tt = {
5054
5050
  if (Object.keys(t).forEach((a) => {
5055
5051
  const n = t[a];
5056
5052
  n.children || !n.component || (n.meta && n.meta.keepAlive === !1 ? this.ExcludeComponents.push(a) : this.CachedComponents.push(a));
5057
- }), Ie().isLogin) {
5053
+ }), Se().isLogin) {
5058
5054
  const a = ar(this.appInfo.Routes);
5059
5055
  if (Ni(a), this.appInfo.defaultPage = nr(a) || "", this.appInfo.defaultPage) {
5060
5056
  if (this.menuLoaded = !0, Ye()) {
@@ -5172,7 +5168,7 @@ const Tt = {
5172
5168
  if ((a == null ? void 0 : a.status) === ue.SUCCESS)
5173
5169
  return a.data;
5174
5170
  if ((a == null ? void 0 : a.errno) == ua) {
5175
- Ie().logout(!1);
5171
+ Se().logout(!1);
5176
5172
  return;
5177
5173
  }
5178
5174
  return re.error(P("webui.stores.userInfo.authInfoFailed") + "," + (a == null ? void 0 : a.msg)), null;
@@ -5190,7 +5186,7 @@ const Tt = {
5190
5186
  } catch (t) {
5191
5187
  return console.error(Zs, t), !1;
5192
5188
  }
5193
- }, pe = R(""), It = R(null), Ie = Ct("userInfo", {
5189
+ }, pe = R(""), St = R(null), Se = Ct("userInfo", {
5194
5190
  state: () => ({
5195
5191
  isLogin: !1,
5196
5192
  userInfo: {
@@ -5244,11 +5240,11 @@ const Tt = {
5244
5240
  async getRolePermits(e) {
5245
5241
  if (!this.isLogin || !this.token)
5246
5242
  return !1;
5247
- if (De.VITE_PERMISSION_MODE === "none" || It.value && It.value.appId === e)
5243
+ if (De.VITE_PERMISSION_MODE === "none" || St.value && St.value.appId === e)
5248
5244
  return !0;
5249
5245
  try {
5250
5246
  const t = await Ri(e);
5251
- return t ? (It.value = {
5247
+ return t ? (St.value = {
5252
5248
  appId: e,
5253
5249
  permits: t.permits || [],
5254
5250
  lastTime: t.lastTime
@@ -5273,7 +5269,7 @@ const Tt = {
5273
5269
  */
5274
5270
  hasPermit(e, t) {
5275
5271
  var n;
5276
- const a = It.value;
5272
+ const a = St.value;
5277
5273
  return !a || !a.permits ? !1 : ((n = a.permits[e]) == null ? void 0 : n.includes(t)) ?? !1;
5278
5274
  },
5279
5275
  /**
@@ -5331,7 +5327,7 @@ const Tt = {
5331
5327
  Code: "",
5332
5328
  TenantId: "",
5333
5329
  UserLevel: ""
5334
- }, this.token = "", Gt(this.token), this.isLogin = !1, It.value = null, pe.value = "", xe().clean(), Promise.resolve();
5330
+ }, this.token = "", Gt(this.token), this.isLogin = !1, St.value = null, pe.value = "", xe().clean(), Promise.resolve();
5335
5331
  },
5336
5332
  /**
5337
5333
  * 登出操作
@@ -5377,7 +5373,7 @@ const Tt = {
5377
5373
  JSON.parse(JSON.stringify(n.params ?? {})),
5378
5374
  JSON.parse(JSON.stringify(t.params ?? {}))
5379
5375
  );
5380
- return t.processParams && (s = t.processParams(s)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (n.hideErrorToast = !0), (n.method === "GET" ? hs : et)(n, s).then((o) => (t.loadingState && (t.loadingState.value = !1), (o == null ? void 0 : o.errno) == ua ? (Ie().logout(!1), null) : o)).catch((o) => (t.loadingState && (t.loadingState.value = !1), null));
5376
+ return t.processParams && (s = t.processParams(s)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (n.hideErrorToast = !0), (n.method === "GET" ? hs : et)(n, s).then((o) => (t.loadingState && (t.loadingState.value = !1), (o == null ? void 0 : o.errno) == ua ? (Se().logout(!1), null) : o)).catch((o) => (t.loadingState && (t.loadingState.value = !1), null));
5381
5377
  }, yn = (e, t) => {
5382
5378
  t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
5383
5379
  const a = fa(e, t);
@@ -5526,8 +5522,8 @@ const Oc = (e) => {
5526
5522
  for (const m of c)
5527
5523
  if (i === m && a[m]) {
5528
5524
  const _ = a[m], p = ["len", "min", "max", "range"];
5529
- for (const I of p)
5530
- I === "range" && o.min != null && o.max != null && _.range ? s(_.range, r, { min: o.min, max: o.max }, l) : I !== "range" && o[I] != null && _[I] && s(_[I], r, { [I]: o[I] }, l);
5525
+ for (const S of p)
5526
+ S === "range" && o.min != null && o.max != null && _.range ? s(_.range, r, { min: o.min, max: o.max }, l) : S !== "range" && o[S] != null && _[S] && s(_[S], r, { [S]: o[S] }, l);
5531
5527
  }
5532
5528
  if (o.required && a.required && s(a.required, r, {}, l), o.pattern && a.pattern && s(o.message, r, {}, l), o.enum && Array.isArray(o.enum) && a.enum) {
5533
5529
  const m = o.enum.join(", ");
@@ -5572,10 +5568,10 @@ const Oc = (e) => {
5572
5568
  return t.messages(dt.messages()), t.define(e), t;
5573
5569
  }, Ut = async (e) => {
5574
5570
  const t = e.formData.value, a = e.formRules.value;
5575
- be(a) || (In(e), e.ruleValidator || (e.ruleValidator = new aa({}), e.ruleValidator.messages(dt.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
5571
+ be(a) || (Sn(e), e.ruleValidator || (e.ruleValidator = new aa({}), e.ruleValidator.messages(dt.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
5576
5572
  }).catch(({ fields: n }) => n));
5577
5573
  }, wc = async (e, t, a) => (a || (a = new aa({}), a.messages(dt.messages()), a.define(t)), a.validate(e).then(() => {
5578
- }).catch(({ fields: n }) => n)), In = (e) => {
5574
+ }).catch(({ fields: n }) => n)), Sn = (e) => {
5579
5575
  e.ruleResults.value = void 0;
5580
5576
  }, mt = () => {
5581
5577
  const e = st(Fe.EditorControl, void 0), t = R(st(Fe.LabelText, "")), a = R(st(Fe.RuleKey, "")), n = st(Fe.ErrInfo, void 0);
@@ -5655,11 +5651,11 @@ const Oc = (e) => {
5655
5651
  const t = e.page, a = e.formData.value;
5656
5652
  a[e.primaryKey ?? t.primaryKey] = null, rr(e);
5657
5653
  }, Cc = (e) => {
5658
- Sn(e), e.visible.value = !1;
5654
+ In(e), e.visible.value = !1;
5659
5655
  }, rr = async (e) => {
5660
5656
  var n;
5661
5657
  const t = e.page;
5662
- if (e.isFormSaving.value = !0, In(e), e.beforeSave && e.beforeSave() === !1)
5658
+ if (e.isFormSaving.value = !0, Sn(e), e.beforeSave && e.beforeSave() === !1)
5663
5659
  return e.isFormSaving.value = !1, Promise.resolve();
5664
5660
  if (e.formRules.value && await Ut(e), e.ruleResults.value)
5665
5661
  return re.error(P("webui.utils.form.submitValidationFailed")), console.error("表单验证失败!", e.ruleResults.value), e.isFormSaving.value = !1, Promise.resolve();
@@ -5716,17 +5712,17 @@ const Oc = (e) => {
5716
5712
  });
5717
5713
  }, Mc = (e) => {
5718
5714
  const t = e.grid;
5719
- t && (t.rowData.value = void 0), e && (Sn(e), e.visible && (e.visible.value = !1), setTimeout(() => {
5715
+ t && (t.rowData.value = void 0), e && (In(e), e.visible && (e.visible.value = !1), setTimeout(() => {
5720
5716
  e.visible.value = !0;
5721
5717
  }, 1));
5722
5718
  }, or = (e, t) => {
5723
- Sn(e);
5719
+ In(e);
5724
5720
  const a = { ...e.formData.value, ...t };
5725
5721
  e.formData.value = JSON.parse(JSON.stringify(a));
5726
- }, Sn = (e) => {
5727
- e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, In(e);
5722
+ }, In = (e) => {
5723
+ e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, Sn(e);
5728
5724
  }, xc = (e, t) => {
5729
- const a = Ie();
5725
+ const a = Se();
5730
5726
  return e.filter((s) => s.role && !a.hasRole(s.role) || s.permit && !a.hasPermit(ca.currentRoute.value.path, s.permit) || s.enabled === !1 ? !1 : typeof s.enabled == "function" ? s.enabled() : !0).filter((s) => {
5731
5727
  if (!t) {
5732
5728
  if (s.visible === !1)
@@ -5920,7 +5916,7 @@ const rt = new Gi(), gt = (e, t, a) => {
5920
5916
  if (c.data)
5921
5917
  return c.data;
5922
5918
  } else if ((c == null ? void 0 : c.errno) == ua) {
5923
- Ie().logout(!1);
5919
+ Se().logout(!1);
5924
5920
  return;
5925
5921
  }
5926
5922
  return [];
@@ -5947,7 +5943,7 @@ const rt = new Gi(), gt = (e, t, a) => {
5947
5943
  const r = s([e], t);
5948
5944
  return r.length > 0 ? r[0] : void 0;
5949
5945
  }
5950
- }, ma = (e) => e === void 0 ? [] : Array.isArray(e) ? e.map((t) => t.label) : [e.label], St = (e, t, a) => {
5946
+ }, ma = (e) => e === void 0 ? [] : Array.isArray(e) ? e.map((t) => t.label) : [e.label], It = (e, t, a) => {
5951
5947
  const n = t.split(".");
5952
5948
  let s = e;
5953
5949
  for (let r = 0; r < n.length - 1; r++) {
@@ -5958,7 +5954,7 @@ const rt = new Gi(), gt = (e, t, a) => {
5958
5954
  }, ur = (e, t, a) => {
5959
5955
  if (a == null) {
5960
5956
  Object.entries(t).forEach(([n]) => {
5961
- St(e, n, a);
5957
+ It(e, n, a);
5962
5958
  });
5963
5959
  return;
5964
5960
  }
@@ -5969,9 +5965,9 @@ const rt = new Gi(), gt = (e, t, a) => {
5969
5965
  const l = parseInt(((o = s.match(/\$\{(\d+)\}/)) == null ? void 0 : o[1]) ?? "0"), i = a[l], c = s.replace(/\$\{\d+\}\./, "");
5970
5966
  if (c && i) {
5971
5967
  const m = Qt(c, i);
5972
- St(e, n, m);
5968
+ It(e, n, m);
5973
5969
  } else
5974
- St(e, n, i);
5970
+ It(e, n, i);
5975
5971
  } catch {
5976
5972
  console.error("outFields 格式错误:" + s, "必须是 ${index} 或者 ${index}.${key}");
5977
5973
  }
@@ -5980,9 +5976,9 @@ const rt = new Gi(), gt = (e, t, a) => {
5980
5976
  }) : Object.entries(t).forEach(([n, s]) => {
5981
5977
  if (s.includes("${")) {
5982
5978
  const r = Qt(s, a);
5983
- St(e, n, r);
5979
+ It(e, n, r);
5984
5980
  } else
5985
- St(e, n, a[s]);
5981
+ It(e, n, a[s]);
5986
5982
  });
5987
5983
  }, pa = (e, t, a) => {
5988
5984
  var r, o;
@@ -6369,21 +6365,21 @@ const rt = new Gi(), gt = (e, t, a) => {
6369
6365
  mr(e, [], a, n).forEach((r) => t.push(r));
6370
6366
  }, mr = (e, t, a, n) => {
6371
6367
  var o, l, i, c, m, _;
6372
- const s = [], r = Ie();
6368
+ const s = [], r = Se();
6373
6369
  for (const p of e) {
6374
6370
  if (p.redirect || (o = p.meta) != null && o.hidden || // 隐藏菜单
6375
6371
  p.path.includes("/login") || p.path.includes("/error") || p.path.includes("/:page(.*)") || (i = (l = p.meta) == null ? void 0 : l.roles) != null && i.length && !r.hasRole(p.meta.roles) && (c = p.meta) != null && c.permission && !r.hasPermit(p.meta.permission, ":page"))
6376
6372
  continue;
6377
- const I = p.path.split("/");
6378
- I.unshift(...t);
6379
- const F = mr(p.children || [], I, a, n), S = {
6380
- key: I.join("/"),
6373
+ const S = p.path.split("/");
6374
+ S.unshift(...t);
6375
+ const F = mr(p.children || [], S, a, n), I = {
6376
+ key: S.join("/"),
6381
6377
  label: ((m = p.name) == null ? void 0 : m.toString()) ?? "",
6382
6378
  title: ((_ = p.name) == null ? void 0 : _.toString()) ?? "",
6383
6379
  icon: p.icon ? ye(a, { ...n, icon: p.icon }) : void 0,
6384
6380
  children: F.length > 0 ? F : void 0
6385
6381
  };
6386
- (F.length > 0 || !p.children) && s.push(S);
6382
+ (F.length > 0 || !p.children) && s.push(I);
6387
6383
  }
6388
6384
  return s;
6389
6385
  }, ps = yr([]), Qc = () => {
@@ -6512,8 +6508,8 @@ const rt = new Gi(), gt = (e, t, a) => {
6512
6508
  const o = R([]);
6513
6509
  r && j(
6514
6510
  () => r.options.value,
6515
- (I) => {
6516
- o.value = I || [];
6511
+ (S) => {
6512
+ o.value = S || [];
6517
6513
  },
6518
6514
  { immediate: !0, deep: !0 }
6519
6515
  );
@@ -6524,8 +6520,8 @@ const rt = new Gi(), gt = (e, t, a) => {
6524
6520
  default:
6525
6521
  return "w-[58px]";
6526
6522
  }
6527
- }), p = (I) => {
6528
- c != null && c.value.errClass && i && Ut(i), l("change", I);
6523
+ }), p = (S) => {
6524
+ c != null && c.value.errClass && i && Ut(i), l("change", S);
6529
6525
  };
6530
6526
  return Rt(() => {
6531
6527
  if (!a.data || a.data.length != 2) {
@@ -6535,13 +6531,13 @@ const rt = new Gi(), gt = (e, t, a) => {
6535
6531
  r && gt(r.autoload, r, a);
6536
6532
  }), pt(() => {
6537
6533
  r && Vt(r, a);
6538
- }), (I, F) => {
6539
- var S;
6540
- return o.value.length === 2 ? (ie(), zt(q(Sr), Dt({
6534
+ }), (S, F) => {
6535
+ var I;
6536
+ return o.value.length === 2 ? (ie(), zt(q(Ir), Dt({
6541
6537
  key: 0,
6542
6538
  size: e.size,
6543
6539
  class: [
6544
- ((S = q(c)) == null ? void 0 : S.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "",
6540
+ ((I = q(c)) == null ? void 0 : I.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "",
6545
6541
  "bg-blue-300",
6546
6542
  _.value
6547
6543
  ],
@@ -6550,7 +6546,7 @@ const rt = new Gi(), gt = (e, t, a) => {
6550
6546
  unCheckedChildren: o.value[1].label,
6551
6547
  unCheckedValue: o.value[1].value,
6552
6548
  onChange: p
6553
- }, I.$attrs), null, 16, ["size", "class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : lt("", !0);
6549
+ }, S.$attrs), null, 16, ["size", "class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : lt("", !0);
6554
6550
  };
6555
6551
  }
6556
6552
  }), Zc = /* @__PURE__ */ Me({
@@ -6589,8 +6585,8 @@ const rt = new Gi(), gt = (e, t, a) => {
6589
6585
  { immediate: !0 }
6590
6586
  ), j(
6591
6587
  () => l.value,
6592
- (S) => {
6593
- a.autoClean && a.formData && a.outFields && S !== a.value && ur(a.formData, a.outFields, null);
6588
+ (I) => {
6589
+ a.autoClean && a.formData && a.outFields && I !== a.value && ur(a.formData, a.outFields, null);
6594
6590
  }
6595
6591
  );
6596
6592
  const { editorCtrl: i, errInfo: c, labelText: m } = s, _ = t;
@@ -6598,22 +6594,22 @@ const rt = new Gi(), gt = (e, t, a) => {
6598
6594
  const p = R((o == null ? void 0 : o.options.value) || []);
6599
6595
  o && j(
6600
6596
  () => o.options.value,
6601
- (S) => {
6602
- p.value = S || [];
6597
+ (I) => {
6598
+ p.value = I || [];
6603
6599
  },
6604
6600
  { immediate: !0, deep: !0 }
6605
6601
  );
6606
- const I = (S) => {
6607
- if (p.value = [], S === "") return;
6602
+ const S = (I) => {
6603
+ if (p.value = [], I === "") return;
6608
6604
  let d = {
6609
6605
  Query: {
6610
- SearchField: "%" + S.trim() + "%"
6606
+ SearchField: "%" + I.trim() + "%"
6611
6607
  }
6612
6608
  };
6613
6609
  o.params = kt(o.params, d), o && gt(!0, o, a);
6614
- }, F = (S) => {
6615
- const L = pa(o, a, S);
6616
- _("update:value", S), _("select", S);
6610
+ }, F = (I) => {
6611
+ const L = pa(o, a, I);
6612
+ _("update:value", I), _("select", I);
6617
6613
  const d = ma(L);
6618
6614
  _("update:labels", d), c != null && c.value.errClass && i && Ut(i);
6619
6615
  };
@@ -6621,7 +6617,7 @@ const rt = new Gi(), gt = (e, t, a) => {
6621
6617
  o && o.autoload && (o.reload.value = !0);
6622
6618
  }), pt(() => {
6623
6619
  o && Vt(o, a);
6624
- }), (S, L) => {
6620
+ }), (I, L) => {
6625
6621
  var d;
6626
6622
  return ie(), he("div", null, [
6627
6623
  Qe(q(Nr), Dt({
@@ -6629,7 +6625,7 @@ const rt = new Gi(), gt = (e, t, a) => {
6629
6625
  "onUpdate:value": L[0] || (L[0] = (g) => l.value = g),
6630
6626
  class: ["w-full", (d = q(c)) == null ? void 0 : d.errClass],
6631
6627
  options: p.value,
6632
- onSearch: I,
6628
+ onSearch: S,
6633
6629
  onSelect: F
6634
6630
  }, q(n), { "allow-clear": !1 }), {
6635
6631
  option: Ue(({ label: g }) => [
@@ -6670,13 +6666,13 @@ const rt = new Gi(), gt = (e, t, a) => {
6670
6666
  },
6671
6667
  emits: ["change", "update:labels"],
6672
6668
  setup(e, { emit: t }) {
6673
- var p, I, F;
6669
+ var p, S, F;
6674
6670
  const a = e, n = Zt(), s = mt(), r = $t(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
6675
6671
  o.inputFactory = ke(s);
6676
6672
  const l = R({
6677
6673
  ...o == null ? void 0 : o.url,
6678
6674
  url: ((p = o == null ? void 0 : o.url) == null ? void 0 : p.url) || "",
6679
- fieldMap: (o == null ? void 0 : o.fieldMap) || ((I = o == null ? void 0 : o.url) == null ? void 0 : I.fieldMap),
6675
+ fieldMap: (o == null ? void 0 : o.fieldMap) || ((S = o == null ? void 0 : o.url) == null ? void 0 : S.fieldMap),
6680
6676
  params: (o == null ? void 0 : o.params) || ((F = o == null ? void 0 : o.url) == null ? void 0 : F.params),
6681
6677
  loadingText: !1
6682
6678
  }), { errInfo: i } = s, c = t;
@@ -6684,13 +6680,13 @@ const rt = new Gi(), gt = (e, t, a) => {
6684
6680
  const m = R((o == null ? void 0 : o.options.value) || []);
6685
6681
  o && j(
6686
6682
  () => o.options.value,
6687
- (S) => {
6688
- m.value = S || [];
6683
+ (I) => {
6684
+ m.value = I || [];
6689
6685
  },
6690
6686
  { immediate: !0, deep: !0 }
6691
6687
  );
6692
- const _ = (S) => {
6693
- const d = pa(o, a, S), g = ma(d);
6688
+ const _ = (I) => {
6689
+ const d = pa(o, a, I), g = ma(d);
6694
6690
  c("update:labels", g);
6695
6691
  };
6696
6692
  return ea(() => {
@@ -6704,7 +6700,7 @@ const rt = new Gi(), gt = (e, t, a) => {
6704
6700
  }), o && gt(o.autoload, o, a);
6705
6701
  }), pt(() => {
6706
6702
  o && Vt(o, a);
6707
- }), (S, L) => (ie(), he("div", ac, [
6703
+ }), (I, L) => (ie(), he("div", ac, [
6708
6704
  Qe(q(Lr), Dt({
6709
6705
  onChange: _,
6710
6706
  class: "w-full mb-[-3px]"
@@ -6759,13 +6755,13 @@ const rt = new Gi(), gt = (e, t, a) => {
6759
6755
  },
6760
6756
  emits: ["change", "update:value", "update:labels"],
6761
6757
  setup(e, { emit: t }) {
6762
- var F, S, L;
6758
+ var F, I, L;
6763
6759
  const a = e, n = Zt(), s = mt(), r = $t(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
6764
6760
  o.inputFactory = ke(s);
6765
6761
  const l = R({
6766
6762
  ...o == null ? void 0 : o.url,
6767
6763
  url: ((F = o == null ? void 0 : o.url) == null ? void 0 : F.url) || "",
6768
- fieldMap: (o == null ? void 0 : o.fieldMap) || ((S = o == null ? void 0 : o.url) == null ? void 0 : S.fieldMap),
6764
+ fieldMap: (o == null ? void 0 : o.fieldMap) || ((I = o == null ? void 0 : o.url) == null ? void 0 : I.fieldMap),
6769
6765
  params: (o == null ? void 0 : o.params) || ((L = o == null ? void 0 : o.url) == null ? void 0 : L.params),
6770
6766
  loadingText: !1
6771
6767
  }), i = R(a.value), { errInfo: c } = s, m = R((o == null ? void 0 : o.options.value) || []), _ = t;
@@ -6792,7 +6788,7 @@ const rt = new Gi(), gt = (e, t, a) => {
6792
6788
  return N && (i.value = d), N;
6793
6789
  }
6794
6790
  return d === g;
6795
- }, I = (d) => {
6791
+ }, S = (d) => {
6796
6792
  const g = d.target.value, N = pa(o, a, g), v = ma(N);
6797
6793
  _("update:labels", v);
6798
6794
  };
@@ -6811,7 +6807,7 @@ const rt = new Gi(), gt = (e, t, a) => {
6811
6807
  value: i.value,
6812
6808
  "onUpdate:value": g[0] || (g[0] = (N) => i.value = N),
6813
6809
  autocheck: !1,
6814
- onChange: I,
6810
+ onChange: S,
6815
6811
  class: "w-full flex align-items flex-wrap mb-[-3px]"
6816
6812
  }, q(n)), {
6817
6813
  default: Ue(() => [
@@ -6892,22 +6888,22 @@ const rt = new Gi(), gt = (e, t, a) => {
6892
6888
  fieldMap: (c == null ? void 0 : c.fieldMap) || ((N = c == null ? void 0 : c.url) == null ? void 0 : N.fieldMap),
6893
6889
  params: (c == null ? void 0 : c.params) || ((v = c == null ? void 0 : c.url) == null ? void 0 : v.params),
6894
6890
  loadingText: !1
6895
- }), p = R(m.placeholder), I = R(c == null ? void 0 : c.selected.value), F = t;
6891
+ }), p = R(m.placeholder), S = R(c == null ? void 0 : c.selected.value), F = t;
6896
6892
  s.inputEmit = F;
6897
- const S = (b) => {
6893
+ const I = (b) => {
6898
6894
  const O = pa(c, a, b), E = ma(O);
6899
- I.value = b, F("update:labels", E), F("update:label", E.join(";")), F("change", b, O), o != null && o.value.errClass && r && Ut(r);
6895
+ S.value = b, F("update:labels", E), F("update:label", E.join(";")), F("change", b, O), o != null && o.value.errClass && r && Ut(r);
6900
6896
  }, L = R((c == null ? void 0 : c.options.value) || []), d = (b) => {
6901
6897
  if (b.length > 0 && be(a.value) && a.selectFirst)
6902
6898
  for (let O = 0; O < b.length; O++) {
6903
6899
  const E = b[O];
6904
6900
  if (E.disabled === void 0 || E.disabled === !1) {
6905
- I.value = E.value;
6901
+ S.value = E.value;
6906
6902
  break;
6907
6903
  }
6908
6904
  }
6909
- else b.length > 0 && (I.value = a.value === null ? void 0 : a.value);
6910
- b.length > 0 && I.value !== void 0 && S(I.value);
6905
+ else b.length > 0 && (S.value = a.value === null ? void 0 : a.value);
6906
+ b.length > 0 && S.value !== void 0 && I(S.value);
6911
6907
  };
6912
6908
  return c && (j(
6913
6909
  () => c.options.value,
@@ -6918,7 +6914,7 @@ const rt = new Gi(), gt = (e, t, a) => {
6918
6914
  ), j(
6919
6915
  () => c.selected.value,
6920
6916
  (b) => {
6921
- I.value = b;
6917
+ S.value = b;
6922
6918
  }
6923
6919
  )), j(
6924
6920
  () => L.value,
@@ -6934,11 +6930,11 @@ const rt = new Gi(), gt = (e, t, a) => {
6934
6930
  ), j(
6935
6931
  () => a.value,
6936
6932
  (b) => {
6937
- I.value = b;
6933
+ S.value = b;
6938
6934
  },
6939
6935
  { immediate: !0 }
6940
6936
  ), j(
6941
- () => I.value,
6937
+ () => S.value,
6942
6938
  (b) => {
6943
6939
  const O = b === void 0 ? n ? void 0 : null : b;
6944
6940
  c && (c.selected.value = O), F("update:value", O);
@@ -6964,14 +6960,14 @@ const rt = new Gi(), gt = (e, t, a) => {
6964
6960
  return ie(), he("div", null, [
6965
6961
  (C = (E = q(c)) == null ? void 0 : E.url) != null && C.loading ? (ie(), he("div", oc, [
6966
6962
  Qe(q(rn), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
6967
- Ir("span", null, Xe(q(P)("webui.components.form.upload.dataLoading")), 1)
6963
+ Sr("span", null, Xe(q(P)("webui.components.form.upload.dataLoading")), 1)
6968
6964
  ])) : lt("", !0),
6969
6965
  Qe(q(wr), Dt({
6970
6966
  class: [(k = q(o)) == null ? void 0 : k.errClass, "w-full"],
6971
- value: I.value,
6972
- "onUpdate:value": O[0] || (O[0] = (M) => I.value = M),
6967
+ value: S.value,
6968
+ "onUpdate:value": O[0] || (O[0] = (M) => S.value = M),
6973
6969
  "allow-clear": !0,
6974
- onChange: S,
6970
+ onChange: I,
6975
6971
  placeholder: p.value,
6976
6972
  "label-in-value": !1
6977
6973
  }, q(m)), {
@@ -7026,10 +7022,10 @@ export {
7026
7022
  Tc as R,
7027
7023
  sr as S,
7028
7024
  rt as T,
7029
- Sc as U,
7025
+ Ic as U,
7030
7026
  kc as V,
7031
7027
  tc as W,
7032
- Ic as X,
7028
+ Sc as X,
7033
7029
  ir as Y,
7034
7030
  Ac as Z,
7035
7031
  zc as _,
@@ -7049,7 +7045,7 @@ export {
7049
7045
  ec as ac,
7050
7046
  Nt as ad,
7051
7047
  Ur as ae,
7052
- In as af,
7048
+ Sn as af,
7053
7049
  qt as ag,
7054
7050
  rr as ah,
7055
7051
  or as ai,
@@ -7085,7 +7081,7 @@ export {
7085
7081
  ca as r,
7086
7082
  Zc as s,
7087
7083
  xt as t,
7088
- Ie as u,
7084
+ Se as u,
7089
7085
  mt as v,
7090
7086
  $t as w,
7091
7087
  gt as x,