gc_i18n 1.2.9 → 1.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lang/index.json CHANGED
@@ -23,5 +23,15 @@
23
23
  "zh-cn": "十多个十多个",
24
24
  "zh-tw": "十多個十多個",
25
25
  "en-us": "十多个十多个"
26
+ },
27
+ "jaid2": {
28
+ "zh-cn": "清楚",
29
+ "zh-tw": "清楚",
30
+ "en-us": "清楚"
31
+ },
32
+ "jcm92": {
33
+ "zh-cn": "清理",
34
+ "zh-tw": "清理",
35
+ "en-us": "清理"
26
36
  }
27
37
  }
package/lib/gc_i18n.css CHANGED
@@ -1 +1 @@
1
- .gc_i18n_spin[data-v-a09c2040]{min-height:300px;display:flex;justify-content:center;padding-top:50px}.gc_i18n_tabs[data-v-a09c2040]{padding-top:5px}.gc_i18n_tabs[data-v-a09c2040] .ivu-tabs-bar{margin-bottom:0!important}.gc_i18n_tabs .ivu-tabs-content[data-v-a09c2040]{position:relative;top:-1px}.gc_i18n_tabs .extra[data-v-a09c2040]{position:relative;top:-3px;display:flex;align-items:center}.gc_i18n_page[data-v-a09c2040]{display:flex;justify-content:space-between;align-items:center;margin-top:10px}
1
+ .gc_i18n_spin[data-v-04b847f9]{min-height:300px;display:flex;justify-content:center;padding-top:50px}.gc_i18n_tabs[data-v-04b847f9]{padding-top:5px}.gc_i18n_tabs[data-v-04b847f9] .ivu-tabs-content{width:100%}.gc_i18n_tabs[data-v-04b847f9] .ivu-tabs-bar{margin-bottom:0!important}.gc_i18n_tabs .ivu-tabs-content[data-v-04b847f9]{position:relative;top:-1px}.gc_i18n_tabs .extra[data-v-04b847f9]{position:relative;top:-3px;display:flex;align-items:center}.gc_i18n_page[data-v-04b847f9]{display:flex;justify-content:space-between;align-items:center;margin-top:10px}
package/lib/gc_i18n.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import './gc_i18n.css';
2
- import Ua from "keyboardjs";
2
+ import wa from "keyboardjs";
3
3
  import _n, { Message as et } from "view-ui-plus";
4
4
  import "view-ui-plus/dist/styles/viewuiplus.css";
5
5
  import { defineComponent as Xt, h as Zn, getCurrentInstance as Ye, effectScope as Va, inject as Wa, onMounted as $a, onUnmounted as xa, Fragment as Jt, ref as Ga, shallowRef as Ka, computed as Ge, watch as Rt, isRef as Ya, createVNode as re, Text as Ha, resolveComponent as z, resolveDirective as Ba, createBlock as fe, openBlock as se, withCtx as ne, createElementBlock as mn, createCommentVNode as dn, createElementVNode as Ne, withDirectives as ja, createTextVNode as At, renderList as Xa, toDisplayString as gn, createApp as Ja } from "vue";
6
- import G from "lodash-es";
6
+ import x from "lodash-es";
7
7
  import lt from "axios";
8
8
  import pe from "store2";
9
9
  import { jws as Qa } from "jsrsasign";
@@ -160,7 +160,7 @@ const k = {
160
160
  // minimizer error messages
161
161
  [k.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
162
162
  };
163
- function Ue(e, t, n = {}) {
163
+ function we(e, t, n = {}) {
164
164
  const { domain: a, messages: s, args: r } = n, o = process.env.NODE_ENV !== "production" ? it((s || is)[e] || "", ...r || []) : e, l = new SyntaxError(String(o));
165
165
  return l.code = e, t && (l.location = t), l.domain = a, l;
166
166
  }
@@ -224,11 +224,11 @@ function hs(e, t = {}) {
224
224
  function N(i, c, T, ...C) {
225
225
  const K = _();
226
226
  if (c.column += T, c.offset += T, E) {
227
- const Y = n ? Mt(K.startLoc, c) : null, w = Ue(i, Y, {
227
+ const Y = n ? Mt(K.startLoc, c) : null, U = we(i, Y, {
228
228
  domain: ps,
229
229
  args: C
230
230
  });
231
- E(w);
231
+ E(U);
232
232
  }
233
233
  }
234
234
  function p(i, c, T) {
@@ -316,7 +316,7 @@ function hs(e, t = {}) {
316
316
  const C = i.currentPeek() === ":";
317
317
  return i.resetPeek(), C;
318
318
  }
319
- function U(i, c) {
319
+ function w(i, c) {
320
320
  const { currentType: T } = c;
321
321
  if (T !== 9)
322
322
  return !1;
@@ -333,8 +333,8 @@ function hs(e, t = {}) {
333
333
  }
334
334
  function ie(i, c = !0) {
335
335
  const T = (K = !1, Y = "") => {
336
- const w = i.currentPeek();
337
- return w === "{" || w === "@" || !w ? K : w === "|" ? !(Y === Ee || Y === Z) : w === Ee ? (i.peek(), T(!0, Ee)) : w === Z ? (i.peek(), T(!0, Z)) : !0;
336
+ const U = i.currentPeek();
337
+ return U === "{" || U === "@" || !U ? K : U === "|" ? !(Y === Ee || Y === Z) : U === Ee ? (i.peek(), T(!0, Ee)) : U === Z ? (i.peek(), T(!0, Z)) : !0;
338
338
  }, C = T();
339
339
  return c && i.resetPeek(), C;
340
340
  }
@@ -508,7 +508,7 @@ function hs(e, t = {}) {
508
508
  case "@":
509
509
  return c.braceNest > 0 && N(k.UNTERMINATED_CLOSING_BRACE, r(), 0), T = Ie(i, c) || S(c), c.braceNest = 0, T;
510
510
  default: {
511
- let K = !0, Y = !0, w = !0;
511
+ let K = !0, Y = !0, U = !0;
512
512
  if (X(i))
513
513
  return c.braceNest > 0 && N(k.UNTERMINATED_CLOSING_BRACE, r(), 0), T = p(c, 1, We(i)), c.braceNest = 0, c.inLinked = !1, T;
514
514
  if (c.braceNest > 0 && (c.currentType === 4 || c.currentType === 5 || c.currentType === 6))
@@ -517,9 +517,9 @@ function hs(e, t = {}) {
517
517
  return T = p(c, 4, Nt(i)), A(i), T;
518
518
  if (Y = m(i, c))
519
519
  return T = p(c, 5, Tt(i)), A(i), T;
520
- if (w = O(i, c))
520
+ if (U = O(i, c))
521
521
  return T = p(c, 6, un(i)), A(i), T;
522
- if (!K && !Y && !w)
522
+ if (!K && !Y && !U)
523
523
  return T = p(c, 12, It(i)), N(k.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, T.value), A(i), T;
524
524
  break;
525
525
  }
@@ -553,7 +553,7 @@ function hs(e, t = {}) {
553
553
  /* TokenChars.LinkedDelimiter */
554
554
  );
555
555
  default:
556
- return X(i) ? (C = p(c, 1, We(i)), c.braceNest = 0, c.inLinked = !1, C) : y(i, c) || P(i, c) ? (A(i), Ie(i, c)) : h(i, c) ? (A(i), p(c, 11, vt(i))) : U(i, c) ? (A(i), K === "{" ? $e(i, c) || C : p(c, 10, yt(i))) : (T === 7 && N(k.INVALID_LINKED_FORMAT, r(), 0), c.braceNest = 0, c.inLinked = !1, xe(i, c));
556
+ return X(i) ? (C = p(c, 1, We(i)), c.braceNest = 0, c.inLinked = !1, C) : y(i, c) || P(i, c) ? (A(i), Ie(i, c)) : h(i, c) ? (A(i), p(c, 11, vt(i))) : w(i, c) ? (A(i), K === "{" ? $e(i, c) || C : p(c, 10, yt(i))) : (T === 7 && N(k.INVALID_LINKED_FORMAT, r(), 0), c.braceNest = 0, c.inLinked = !1, xe(i, c));
557
557
  }
558
558
  }
559
559
  function xe(i, c) {
@@ -621,7 +621,7 @@ function bs(e = {}) {
621
621
  function a(f, g, b, m, ...O) {
622
622
  const y = f.currentPosition();
623
623
  if (y.offset += m, y.column += m, n) {
624
- const h = t ? Mt(b, y) : null, P = Ue(g, h, {
624
+ const h = t ? Mt(b, y) : null, P = we(g, h, {
625
625
  domain: Ns,
626
626
  args: O
627
627
  });
@@ -702,19 +702,19 @@ function bs(e = {}) {
702
702
  O.items = [];
703
703
  let y = null;
704
704
  do {
705
- const U = y || f.nextToken();
706
- switch (y = null, U.type) {
705
+ const w = y || f.nextToken();
706
+ switch (y = null, w.type) {
707
707
  case 0:
708
- U.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, _e(U)), O.items.push(o(f, U.value || ""));
708
+ w.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, _e(w)), O.items.push(o(f, w.value || ""));
709
709
  break;
710
710
  case 5:
711
- U.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, _e(U)), O.items.push(l(f, U.value || ""));
711
+ w.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, _e(w)), O.items.push(l(f, w.value || ""));
712
712
  break;
713
713
  case 4:
714
- U.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, _e(U)), O.items.push(u(f, U.value || ""));
714
+ w.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, _e(w)), O.items.push(u(f, w.value || ""));
715
715
  break;
716
716
  case 6:
717
- U.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, _e(U)), O.items.push(_(f, U.value || ""));
717
+ w.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, _e(w)), O.items.push(_(f, w.value || ""));
718
718
  break;
719
719
  case 7: {
720
720
  const X = p(f);
@@ -886,7 +886,7 @@ function Me(e) {
886
886
  }
887
887
  default:
888
888
  if (process.env.NODE_ENV !== "production")
889
- throw Ue(k.UNHANDLED_MINIFIER_NODE_TYPE, null, {
889
+ throw we(k.UNHANDLED_MINIFIER_NODE_TYPE, null, {
890
890
  domain: ys,
891
891
  args: [e.type]
892
892
  });
@@ -941,7 +941,7 @@ function Cs(e, t) {
941
941
  e.push(`${n(
942
942
  "linked"
943
943
  /* HelperNameMap.LINKED */
944
- )}(`), we(e, t.key), t.modifier ? (e.push(", "), we(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
944
+ )}(`), Ue(e, t.key), t.modifier ? (e.push(", "), Ue(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
945
945
  }
946
946
  function Ds(e, t) {
947
947
  const { helper: n, needIndent: a } = e;
@@ -950,7 +950,7 @@ function Ds(e, t) {
950
950
  /* HelperNameMap.NORMALIZE */
951
951
  )}([`), e.indent(a());
952
952
  const s = t.items.length;
953
- for (let r = 0; r < s && (we(e, t.items[r]), r !== s - 1); r++)
953
+ for (let r = 0; r < s && (Ue(e, t.items[r]), r !== s - 1); r++)
954
954
  e.push(", ");
955
955
  e.deindent(a()), e.push("])");
956
956
  }
@@ -962,15 +962,15 @@ function ks(e, t) {
962
962
  /* HelperNameMap.PLURAL */
963
963
  )}([`), e.indent(a());
964
964
  const s = t.cases.length;
965
- for (let r = 0; r < s && (we(e, t.cases[r]), r !== s - 1); r++)
965
+ for (let r = 0; r < s && (Ue(e, t.cases[r]), r !== s - 1); r++)
966
966
  e.push(", ");
967
967
  e.deindent(a()), e.push("])");
968
968
  }
969
969
  }
970
970
  function Ps(e, t) {
971
- t.body ? we(e, t.body) : e.push("null");
971
+ t.body ? Ue(e, t.body) : e.push("null");
972
972
  }
973
- function we(e, t) {
973
+ function Ue(e, t) {
974
974
  const { helper: n } = e;
975
975
  switch (t.type) {
976
976
  case 0:
@@ -1017,7 +1017,7 @@ function we(e, t) {
1017
1017
  break;
1018
1018
  default:
1019
1019
  if (process.env.NODE_ENV !== "production")
1020
- throw Ue(k.UNHANDLED_CODEGEN_NODE_TYPE, null, {
1020
+ throw we(k.UNHANDLED_CODEGEN_NODE_TYPE, null, {
1021
1021
  domain: Ss,
1022
1022
  args: [t.type]
1023
1023
  });
@@ -1032,7 +1032,7 @@ const Rs = (e, t = {}) => {
1032
1032
  breakLineCode: s,
1033
1033
  needIndent: r
1034
1034
  });
1035
- l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(r), o.length > 0 && (l.push(`const { ${qt(o.map((E) => `${E}: _${E}`), ", ")} } = ctx`), l.newline()), l.push("return "), we(l, e), l.deindent(r), l.push("}"), delete e.helpers;
1035
+ l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(r), o.length > 0 && (l.push(`const { ${qt(o.map((E) => `${E}: _${E}`), ", ")} } = ctx`), l.newline()), l.push("return "), Ue(l, e), l.deindent(r), l.push("}"), delete e.helpers;
1036
1036
  const { code: u, map: _ } = l.context();
1037
1037
  return {
1038
1038
  ast: e,
@@ -1057,11 +1057,11 @@ function le(e) {
1057
1057
  return M(e) && tn(e) === 0 && (ce(e, "b") || ce(e, "body"));
1058
1058
  }
1059
1059
  const ea = ["b", "body"];
1060
- function ws(e) {
1060
+ function Us(e) {
1061
1061
  return be(e, ea);
1062
1062
  }
1063
1063
  const ta = ["c", "cases"];
1064
- function Us(e) {
1064
+ function ws(e) {
1065
1065
  return be(e, ta, []);
1066
1066
  }
1067
1067
  const na = ["s", "static"];
@@ -1122,14 +1122,14 @@ function Ct(e) {
1122
1122
  return (n) => Gs(n, e);
1123
1123
  }
1124
1124
  function Gs(e, t) {
1125
- const n = ws(t);
1125
+ const n = Us(t);
1126
1126
  if (n == null)
1127
1127
  throw He(
1128
1128
  0
1129
1129
  /* NodeTypes.Resource */
1130
1130
  );
1131
1131
  if (tn(n) === 1) {
1132
- const r = Us(n);
1132
+ const r = ws(n);
1133
1133
  return e.plural(r.reduce((o, l) => [
1134
1134
  ...o,
1135
1135
  On(e, l)
@@ -1246,7 +1246,7 @@ const q = {
1246
1246
  NOT_SUPPORT_LOCALE_TYPE: 23
1247
1247
  }, Zs = 24;
1248
1248
  function he(e) {
1249
- return Ue(e, null, process.env.NODE_ENV !== "production" ? { messages: zs } : void 0);
1249
+ return we(e, null, process.env.NODE_ENV !== "production" ? { messages: zs } : void 0);
1250
1250
  }
1251
1251
  const zs = {
1252
1252
  [q.INVALID_ARGUMENT]: "Invalid arguments",
@@ -1664,7 +1664,7 @@ let Cn = 0;
1664
1664
  function Lr(e = {}) {
1665
1665
  const t = $(e.onWarn) ? e.onWarn : Le, n = I(e.version) ? e.version : mr, a = I(e.locale) || $(e.locale) ? e.locale : je, s = $(a) ? je : a, r = B(e.fallbackLocale) || R(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = R(e.messages) ? e.messages : kt(s), l = R(e.datetimeFormats) ? e.datetimeFormats : kt(s), u = R(e.numberFormats) ? e.numberFormats : kt(s), _ = Q(W(), e.modifiers, dr()), E = e.pluralRules || W(), N = $(e.missing) ? e.missing : null, p = F(e.missingWarn) || Fe(e.missingWarn) ? e.missingWarn : !0, S = F(e.fallbackWarn) || Fe(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, v = !!e.unresolving, A = $(e.postTranslation) ? e.postTranslation : null, f = R(e.processor) ? e.processor : null, g = F(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter, m = $(e.messageCompiler) ? e.messageCompiler : ua;
1666
1666
  process.env.NODE_ENV !== "production" && $(e.messageCompiler) && Zt(Ce(ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
1667
- const O = $(e.messageResolver) ? e.messageResolver : fa || cr, y = $(e.localeFallbacker) ? e.localeFallbacker : _a || er, h = M(e.fallbackContext) ? e.fallbackContext : void 0, P = e, U = M(P.__datetimeFormatters) ? P.__datetimeFormatters : /* @__PURE__ */ new Map(), X = M(P.__numberFormatters) ? P.__numberFormatters : /* @__PURE__ */ new Map(), ie = M(P.__meta) ? P.__meta : {};
1667
+ const O = $(e.messageResolver) ? e.messageResolver : fa || cr, y = $(e.localeFallbacker) ? e.localeFallbacker : _a || er, h = M(e.fallbackContext) ? e.fallbackContext : void 0, P = e, w = M(P.__datetimeFormatters) ? P.__datetimeFormatters : /* @__PURE__ */ new Map(), X = M(P.__numberFormatters) ? P.__numberFormatters : /* @__PURE__ */ new Map(), ie = M(P.__meta) ? P.__meta : {};
1668
1668
  Cn++;
1669
1669
  const J = {
1670
1670
  version: n,
@@ -1690,7 +1690,7 @@ function Lr(e = {}) {
1690
1690
  onWarn: t,
1691
1691
  __meta: ie
1692
1692
  };
1693
- return J.datetimeFormats = l, J.numberFormats = u, J.__datetimeFormatters = U, J.__numberFormatters = X, process.env.NODE_ENV !== "production" && (J.__v_emitter = P.__v_emitter != null ? P.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Js(J, n, ie), J;
1693
+ return J.datetimeFormats = l, J.numberFormats = u, J.__datetimeFormatters = w, J.__numberFormatters = X, process.env.NODE_ENV !== "production" && (J.__v_emitter = P.__v_emitter != null ? P.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Js(J, n, ie), J;
1694
1694
  }
1695
1695
  const kt = (e) => ({ [e]: W() });
1696
1696
  function ft(e, t) {
@@ -1740,7 +1740,7 @@ function kn(e, ...t) {
1740
1740
  const { datetimeFormats: n, unresolving: a, fallbackLocale: s, onWarn: r, localeFallbacker: o } = e, { __datetimeFormatters: l } = e;
1741
1741
  if (process.env.NODE_ENV !== "production" && !pa.dateTimeFormat)
1742
1742
  return r(Ce(ee.CANNOT_FORMAT_DATE)), rt;
1743
- const [u, _, E, N] = wt(...t), p = F(E.missingWarn) ? E.missingWarn : e.missingWarn, S = F(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn, D = !!E.part, v = nn(e, E), A = o(
1743
+ const [u, _, E, N] = Ut(...t), p = F(E.missingWarn) ? E.missingWarn : e.missingWarn, S = F(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn, D = !!E.part, v = nn(e, E), A = o(
1744
1744
  e,
1745
1745
  // eslint-disable-line @typescript-eslint/no-explicit-any
1746
1746
  s,
@@ -1750,8 +1750,8 @@ function kn(e, ...t) {
1750
1750
  return new Intl.DateTimeFormat(v, N).format(_);
1751
1751
  let f = {}, g, b = null, m = v, O = null;
1752
1752
  const y = "datetime format";
1753
- for (let U = 0; U < A.length; U++) {
1754
- if (g = O = A[U], process.env.NODE_ENV !== "production" && v !== g && ft(S, u) && r(Ce(ee.FALLBACK_TO_DATE_FORMAT, {
1753
+ for (let w = 0; w < A.length; w++) {
1754
+ if (g = O = A[w], process.env.NODE_ENV !== "production" && v !== g && ft(S, u) && r(Ce(ee.FALLBACK_TO_DATE_FORMAT, {
1755
1755
  key: u,
1756
1756
  target: g
1757
1757
  })), process.env.NODE_ENV !== "production" && v !== g) {
@@ -1797,7 +1797,7 @@ const ha = [
1797
1797
  "hourCycle",
1798
1798
  "fractionalSecondDigits"
1799
1799
  ];
1800
- function wt(...e) {
1800
+ function Ut(...e) {
1801
1801
  const [t, n, a, s] = e, r = W();
1802
1802
  let o = W(), l;
1803
1803
  if (I(t)) {
@@ -1834,7 +1834,7 @@ function Rn(e, ...t) {
1834
1834
  const { numberFormats: n, unresolving: a, fallbackLocale: s, onWarn: r, localeFallbacker: o } = e, { __numberFormatters: l } = e;
1835
1835
  if (process.env.NODE_ENV !== "production" && !pa.numberFormat)
1836
1836
  return r(Ce(ee.CANNOT_FORMAT_NUMBER)), rt;
1837
- const [u, _, E, N] = Ut(...t), p = F(E.missingWarn) ? E.missingWarn : e.missingWarn, S = F(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn, D = !!E.part, v = nn(e, E), A = o(
1837
+ const [u, _, E, N] = wt(...t), p = F(E.missingWarn) ? E.missingWarn : e.missingWarn, S = F(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn, D = !!E.part, v = nn(e, E), A = o(
1838
1838
  e,
1839
1839
  // eslint-disable-line @typescript-eslint/no-explicit-any
1840
1840
  s,
@@ -1844,8 +1844,8 @@ function Rn(e, ...t) {
1844
1844
  return new Intl.NumberFormat(v, N).format(_);
1845
1845
  let f = {}, g, b = null, m = v, O = null;
1846
1846
  const y = "number format";
1847
- for (let U = 0; U < A.length; U++) {
1848
- if (g = O = A[U], process.env.NODE_ENV !== "production" && v !== g && ft(S, u) && r(Ce(ee.FALLBACK_TO_NUMBER_FORMAT, {
1847
+ for (let w = 0; w < A.length; w++) {
1848
+ if (g = O = A[w], process.env.NODE_ENV !== "production" && v !== g && ft(S, u) && r(Ce(ee.FALLBACK_TO_NUMBER_FORMAT, {
1849
1849
  key: u,
1850
1850
  target: g
1851
1851
  })), process.env.NODE_ENV !== "production" && v !== g) {
@@ -1891,7 +1891,7 @@ const Na = [
1891
1891
  "roundingIncrement",
1892
1892
  "trailingZeroDisplay"
1893
1893
  ];
1894
- function Ut(...e) {
1894
+ function wt(...e) {
1895
1895
  const [t, n, a, s] = e, r = W();
1896
1896
  let o = W();
1897
1897
  if (!j(t))
@@ -1949,8 +1949,8 @@ function Dr(e = {}) {
1949
1949
  };
1950
1950
  return A;
1951
1951
  }
1952
- const wn = () => "", oe = (e) => $(e);
1953
- function Un(e, ...t) {
1952
+ const Un = () => "", oe = (e) => $(e);
1953
+ function wn(e, ...t) {
1954
1954
  const { fallbackFormat: n, postTranslation: a, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [u, _] = Vt(...t), E = F(_.missingWarn) ? _.missingWarn : e.missingWarn, N = F(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, p = F(_.escapeParameter) ? _.escapeParameter : e.escapeParameter, S = !!_.resolvedMessage, D = I(_.default) || F(_.default) ? F(_.default) ? r ? u : () => u : _.default : n ? r ? u : () => u : null, v = n || D != null && (I(D) || $(D)), A = nn(e, _);
1955
1955
  p && kr(_);
1956
1956
  let [f, g, b] = S ? [
@@ -1968,7 +1968,7 @@ function Un(e, ...t) {
1968
1968
  }, P = oe(m) ? m : La(e, u, g, m, O, h);
1969
1969
  if (y)
1970
1970
  return m;
1971
- const U = Fr(e, g, b, _), X = Dr(U), ie = Pr(e, P, X), J = a ? a(ie, u) : ie;
1971
+ const w = Fr(e, g, b, _), X = Dr(w), ie = Pr(e, P, X), J = a ? a(ie, u) : ie;
1972
1972
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
1973
1973
  const ke = {
1974
1974
  timestamp: Date.now(),
@@ -2131,20 +2131,20 @@ function Fr(e, t, n, a) {
2131
2131
  const g = La(e, S, t, v, S, () => {
2132
2132
  A = !0;
2133
2133
  });
2134
- return A ? wn : g;
2135
- } else return oe(v) ? v : wn;
2134
+ return A ? Un : g;
2135
+ } else return oe(v) ? v : Un;
2136
2136
  }
2137
2137
  };
2138
2138
  return e.processor && (p.processor = e.processor), a.list && (p.list = a.list), a.named && (p.named = a.named), j(a.plural) && (p.pluralIndex = a.plural), p;
2139
2139
  }
2140
2140
  Fs();
2141
- function wr() {
2141
+ function Ur() {
2142
2142
  return ba().__VUE_DEVTOOLS_GLOBAL_HOOK__;
2143
2143
  }
2144
2144
  function ba() {
2145
2145
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
2146
2146
  }
2147
- const Ur = typeof Proxy == "function", Vr = "devtools-plugin:setup", Wr = "plugin:settings:set";
2147
+ const wr = typeof Proxy == "function", Vr = "devtools-plugin:setup", Wr = "plugin:settings:set";
2148
2148
  let Re, Wt;
2149
2149
  function $r() {
2150
2150
  var e;
@@ -2216,7 +2216,7 @@ class Gr {
2216
2216
  }
2217
2217
  }
2218
2218
  function Kr(e, t) {
2219
- const n = e, a = ba(), s = wr(), r = Ur && n.enableEarlyProxy;
2219
+ const n = e, a = ba(), s = Ur(), r = wr && n.enableEarlyProxy;
2220
2220
  if (s && (a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
2221
2221
  s.emit(Vr, e, t);
2222
2222
  else {
@@ -2237,7 +2237,7 @@ const Yr = "11.1.3";
2237
2237
  function Hr() {
2238
2238
  typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Se().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Se().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Se().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Se().__INTLIFY_PROD_DEVTOOLS__ = !1);
2239
2239
  }
2240
- const x = {
2240
+ const G = {
2241
2241
  // composer module errors
2242
2242
  UNEXPECTED_RETURN_TYPE: Zs,
2243
2243
  // 24
@@ -2260,20 +2260,20 @@ const x = {
2260
2260
  NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
2261
2261
  };
2262
2262
  function te(e, ...t) {
2263
- return Ue(e, null, process.env.NODE_ENV !== "production" ? { messages: Br, args: t } : void 0);
2263
+ return we(e, null, process.env.NODE_ENV !== "production" ? { messages: Br, args: t } : void 0);
2264
2264
  }
2265
2265
  const Br = {
2266
- [x.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
2267
- [x.INVALID_ARGUMENT]: "Invalid argument",
2268
- [x.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
2269
- [x.NOT_INSTALLED]: "Need to install with `app.use` function",
2270
- [x.UNEXPECTED_ERROR]: "Unexpected error",
2271
- [x.REQUIRED_VALUE]: "Required in value: {0}",
2272
- [x.INVALID_VALUE]: "Invalid value",
2273
- [x.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
2274
- [x.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
2275
- [x.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
2276
- [x.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
2266
+ [G.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
2267
+ [G.INVALID_ARGUMENT]: "Invalid argument",
2268
+ [G.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
2269
+ [G.NOT_INSTALLED]: "Need to install with `app.use` function",
2270
+ [G.UNEXPECTED_ERROR]: "Unexpected error",
2271
+ [G.REQUIRED_VALUE]: "Required in value: {0}",
2272
+ [G.INVALID_VALUE]: "Invalid value",
2273
+ [G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
2274
+ [G.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
2275
+ [G.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
2276
+ [G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
2277
2277
  }, $t = /* @__PURE__ */ de("__translateVNode"), xt = /* @__PURE__ */ de("__datetimeParts"), Gt = /* @__PURE__ */ de("__numberParts"), De = /* @__PURE__ */ de("__enableEmitter"), Xe = /* @__PURE__ */ de("__disableEmitter"), Oa = de("__setPluralRules"), Ia = /* @__PURE__ */ de("__injectWithOption"), Kt = /* @__PURE__ */ de("__dispose"), me = {
2278
2278
  FALLBACK_TO_ROOT: fr,
2279
2279
  // 8
@@ -2424,7 +2424,7 @@ function rn(e = {}) {
2424
2424
  const L = Lr(d);
2425
2425
  return a && An(L), L;
2426
2426
  })(), Ke(h, l.value, u.value);
2427
- function U() {
2427
+ function w() {
2428
2428
  return [
2429
2429
  l.value,
2430
2430
  u.value,
@@ -2460,7 +2460,7 @@ function rn(e = {}) {
2460
2460
  return d !== "translate" || !L.resolvedMessage;
2461
2461
  }
2462
2462
  const ge = (d, L, V, H, ve, ze) => {
2463
- U();
2463
+ w();
2464
2464
  let Pe;
2465
2465
  try {
2466
2466
  process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (h.fallbackContext = t ? Tr() : void 0), Pe = d(h);
@@ -2469,8 +2469,8 @@ function rn(e = {}) {
2469
2469
  }
2470
2470
  if (V !== "translate exists" && // for not `te` (e.g `t`)
2471
2471
  j(Pe) && Pe === ut || V === "translate exists" && !Pe) {
2472
- const [ye, wa] = L();
2473
- if (process.env.NODE_ENV !== "production" && t && I(ye) && pt(V, wa) && (D && (ft(S, ye) || ga(p, ye)) && Le(qe(me.FALLBACK_TO_ROOT, {
2472
+ const [ye, Ua] = L();
2473
+ if (process.env.NODE_ENV !== "production" && t && I(ye) && pt(V, Ua) && (D && (ft(S, ye) || ga(p, ye)) && Le(qe(me.FALLBACK_TO_ROOT, {
2474
2474
  key: ye,
2475
2475
  type: V
2476
2476
  })), process.env.NODE_ENV !== "production")) {
@@ -2486,23 +2486,23 @@ function rn(e = {}) {
2486
2486
  } else {
2487
2487
  if (ze(Pe))
2488
2488
  return Pe;
2489
- throw te(x.UNEXPECTED_RETURN_TYPE);
2489
+ throw te(G.UNEXPECTED_RETURN_TYPE);
2490
2490
  }
2491
2491
  };
2492
2492
  function Ve(...d) {
2493
- return ge((L) => Reflect.apply(Un, null, [L, ...d]), () => Vt(...d), "translate", (L) => Reflect.apply(L.t, L, [...d]), (L) => L, (L) => I(L));
2493
+ return ge((L) => Reflect.apply(wn, null, [L, ...d]), () => Vt(...d), "translate", (L) => Reflect.apply(L.t, L, [...d]), (L) => L, (L) => I(L));
2494
2494
  }
2495
2495
  function ht(...d) {
2496
2496
  const [L, V, H] = d;
2497
2497
  if (H && !M(H))
2498
- throw te(x.INVALID_ARGUMENT);
2498
+ throw te(G.INVALID_ARGUMENT);
2499
2499
  return Ve(L, V, Q({ resolvedMessage: !0 }, H || {}));
2500
2500
  }
2501
2501
  function Nt(...d) {
2502
- return ge((L) => Reflect.apply(kn, null, [L, ...d]), () => wt(...d), "datetime format", (L) => Reflect.apply(L.d, L, [...d]), () => rt, (L) => I(L));
2502
+ return ge((L) => Reflect.apply(kn, null, [L, ...d]), () => Ut(...d), "datetime format", (L) => Reflect.apply(L.d, L, [...d]), () => rt, (L) => I(L));
2503
2503
  }
2504
2504
  function Tt(...d) {
2505
- return ge((L) => Reflect.apply(Rn, null, [L, ...d]), () => Ut(...d), "number format", (L) => Reflect.apply(L.n, L, [...d]), () => rt, (L) => I(L));
2505
+ return ge((L) => Reflect.apply(Rn, null, [L, ...d]), () => wt(...d), "number format", (L) => Reflect.apply(L.n, L, [...d]), () => rt, (L) => I(L));
2506
2506
  }
2507
2507
  function Lt(d) {
2508
2508
  return d.map((L) => I(L) || j(L) || F(L) ? Vn(String(L)) : L);
@@ -2517,7 +2517,7 @@ function rn(e = {}) {
2517
2517
  let V;
2518
2518
  const H = L;
2519
2519
  try {
2520
- H.processor = bt, V = Reflect.apply(Un, null, [H, ...d]);
2520
+ H.processor = bt, V = Reflect.apply(wn, null, [H, ...d]);
2521
2521
  } finally {
2522
2522
  H.processor = null;
2523
2523
  }
@@ -2525,10 +2525,10 @@ function rn(e = {}) {
2525
2525
  }, () => Vt(...d), "translate", (L) => L[$t](...d), (L) => [Vn(L)], (L) => B(L));
2526
2526
  }
2527
2527
  function Ot(...d) {
2528
- return ge((L) => Reflect.apply(Rn, null, [L, ...d]), () => Ut(...d), "number format", (L) => L[Gt](...d), $n, (L) => I(L) || B(L));
2528
+ return ge((L) => Reflect.apply(Rn, null, [L, ...d]), () => wt(...d), "number format", (L) => L[Gt](...d), $n, (L) => I(L) || B(L));
2529
2529
  }
2530
2530
  function It(...d) {
2531
- return ge((L) => Reflect.apply(kn, null, [L, ...d]), () => wt(...d), "datetime format", (L) => L[xt](...d), $n, (L) => I(L) || B(L));
2531
+ return ge((L) => Reflect.apply(kn, null, [L, ...d]), () => Ut(...d), "datetime format", (L) => L[xt](...d), $n, (L) => I(L) || B(L));
2532
2532
  }
2533
2533
  function vt(d) {
2534
2534
  y = d, h.pluralRules = y;
@@ -2600,7 +2600,7 @@ function rn(e = {}) {
2600
2600
  }), Rt(t.fallbackLocale, (d) => {
2601
2601
  o && (u.value = d, h.fallbackLocale = d, Ke(h, l.value, u.value));
2602
2602
  }));
2603
- const w = {
2603
+ const U = {
2604
2604
  id: xn,
2605
2605
  locale: X,
2606
2606
  fallbackLocale: ie,
@@ -2669,11 +2669,11 @@ function rn(e = {}) {
2669
2669
  setMissingHandler: Et,
2670
2670
  [Oa]: vt
2671
2671
  };
2672
- return w.datetimeFormats = ke, w.numberFormats = _t, w.rt = ht, w.te = yt, w.tm = $e, w.d = Nt, w.n = Tt, w.getDateTimeFormat = i, w.setDateTimeFormat = c, w.mergeDateTimeFormat = T, w.getNumberFormat = C, w.setNumberFormat = K, w.mergeNumberFormat = Y, w[Ia] = n, w[$t] = Ze, w[xt] = It, w[Gt] = Ot, process.env.NODE_ENV !== "production" && (w[De] = (d) => {
2672
+ return U.datetimeFormats = ke, U.numberFormats = _t, U.rt = ht, U.te = yt, U.tm = $e, U.d = Nt, U.n = Tt, U.getDateTimeFormat = i, U.setDateTimeFormat = c, U.mergeDateTimeFormat = T, U.getNumberFormat = C, U.setNumberFormat = K, U.mergeNumberFormat = Y, U[Ia] = n, U[$t] = Ze, U[xt] = It, U[Gt] = Ot, process.env.NODE_ENV !== "production" && (U[De] = (d) => {
2673
2673
  h.__v_emitter = d;
2674
- }, w[Xe] = () => {
2674
+ }, U[Xe] = () => {
2675
2675
  h.__v_emitter = void 0;
2676
- }), w;
2676
+ }), U;
2677
2677
  }
2678
2678
  const Sa = "vue-i18n: composer properties", Pt = {
2679
2679
  "vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
@@ -2941,8 +2941,8 @@ function co(e) {
2941
2941
  if (R(e.sharedMessages)) {
2942
2942
  const O = e.sharedMessages;
2943
2943
  D = Object.keys(O).reduce((h, P) => {
2944
- const U = h[P] || (h[P] = {});
2945
- return Q(U, O[P]), h;
2944
+ const w = h[P] || (h[P] = {});
2945
+ return Q(w, O[P]), h;
2946
2946
  }, D || {});
2947
2947
  }
2948
2948
  const { __i18n: v, __root: A, __injectWithOption: f } = e, g = e.datetimeFormats, b = e.numberFormats, m = e.flatJson;
@@ -3144,7 +3144,7 @@ function uo(e, t, n) {
3144
3144
  beforeCreate() {
3145
3145
  const a = Ye();
3146
3146
  if (!a)
3147
- throw te(x.UNEXPECTED_ERROR);
3147
+ throw te(G.UNEXPECTED_ERROR);
3148
3148
  const s = this.$options;
3149
3149
  if (s.i18n) {
3150
3150
  const r = s.i18n;
@@ -3183,7 +3183,7 @@ function uo(e, t, n) {
3183
3183
  unmounted() {
3184
3184
  const a = Ye();
3185
3185
  if (!a)
3186
- throw te(x.UNEXPECTED_ERROR);
3186
+ throw te(G.UNEXPECTED_ERROR);
3187
3187
  const s = this.$i18n;
3188
3188
  process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", Qe), delete this.__v_emitter), this.$i18n && (s.__disableEmitter && s.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, s.__disposer && (s.__disposer(), delete s.__disposer, delete s.__extender), n.__deleteInstance(a), delete this.$i18n;
3189
3189
  }
@@ -3314,7 +3314,7 @@ function po(e) {
3314
3314
  process.env.NODE_ENV !== "production" && Zt(qe(me.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
3315
3315
  const { instance: l, value: u } = o;
3316
3316
  if (!l || !l.$)
3317
- throw te(x.UNEXPECTED_ERROR);
3317
+ throw te(G.UNEXPECTED_ERROR);
3318
3318
  const _ = Eo(e, l.$), E = jn(u);
3319
3319
  return [
3320
3320
  Reflect.apply(_.t, _, [...Xn(E)]),
@@ -3350,10 +3350,10 @@ function jn(e) {
3350
3350
  return { path: e };
3351
3351
  if (R(e)) {
3352
3352
  if (!("path" in e))
3353
- throw te(x.REQUIRED_VALUE, "path");
3353
+ throw te(G.REQUIRED_VALUE, "path");
3354
3354
  return e;
3355
3355
  } else
3356
- throw te(x.INVALID_VALUE);
3356
+ throw te(G.INVALID_VALUE);
3357
3357
  }
3358
3358
  function Xn(e) {
3359
3359
  const { path: t, locale: n, args: a, choice: s, plural: r } = e, o = {}, l = a || {};
@@ -3395,7 +3395,7 @@ function To(e = {}) {
3395
3395
  S && S(), E.dispose(), D();
3396
3396
  }, process.env.NODE_ENV !== "production") {
3397
3397
  if (!await Zr(N, E))
3398
- throw te(x.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
3398
+ throw te(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
3399
3399
  const A = zt();
3400
3400
  if (t) {
3401
3401
  const f = r;
@@ -3428,9 +3428,9 @@ function To(e = {}) {
3428
3428
  function cn(e = {}) {
3429
3429
  const t = Ye();
3430
3430
  if (t == null)
3431
- throw te(x.MUST_BE_CALL_SETUP_TOP);
3431
+ throw te(G.MUST_BE_CALL_SETUP_TOP);
3432
3432
  if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
3433
- throw te(x.NOT_INSTALLED);
3433
+ throw te(G.NOT_INSTALLED);
3434
3434
  const n = bo(t), a = Io(n), s = va(t), r = Oo(e, s);
3435
3435
  if (r === "global")
3436
3436
  return ya(a, e, s), a;
@@ -3449,13 +3449,13 @@ function cn(e = {}) {
3449
3449
  function Lo(e, t) {
3450
3450
  const n = Va(), a = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Ht(e)) : n.run(() => rn(e));
3451
3451
  if (a == null)
3452
- throw te(x.UNEXPECTED_ERROR);
3452
+ throw te(G.UNEXPECTED_ERROR);
3453
3453
  return [n, a];
3454
3454
  }
3455
3455
  function bo(e) {
3456
3456
  const t = Wa(e.isCE ? No : e.appContext.app.__VUE_I18N_SYMBOL__);
3457
3457
  if (!t)
3458
- throw te(e.isCE ? x.NOT_INSTALLED_WITH_PROVIDE : x.UNEXPECTED_ERROR);
3458
+ throw te(e.isCE ? G.NOT_INSTALLED_WITH_PROVIDE : G.UNEXPECTED_ERROR);
3459
3459
  return t;
3460
3460
  }
3461
3461
  function Oo(e, t) {
@@ -3510,7 +3510,7 @@ function Co(e, t) {
3510
3510
  return Ao.forEach((s) => {
3511
3511
  const r = Object.getOwnPropertyDescriptor(t, s);
3512
3512
  if (!r)
3513
- throw te(x.UNEXPECTED_ERROR);
3513
+ throw te(G.UNEXPECTED_ERROR);
3514
3514
  const o = Ya(r.value) ? {
3515
3515
  get() {
3516
3516
  return r.value.value;
@@ -3528,7 +3528,7 @@ function Co(e, t) {
3528
3528
  }), e.config.globalProperties.$i18n = n, Jn.forEach((s) => {
3529
3529
  const r = Object.getOwnPropertyDescriptor(t, s);
3530
3530
  if (!r || !r.value)
3531
- throw te(x.UNEXPECTED_ERROR);
3531
+ throw te(G.UNEXPECTED_ERROR);
3532
3532
  Object.defineProperty(e.config.globalProperties, `$${s}`, r);
3533
3533
  }), () => {
3534
3534
  delete e.config.globalProperties.$i18n, Jn.forEach((s) => {
@@ -3576,8 +3576,8 @@ const ko = (e) => {
3576
3576
  t[n.key] = n.value;
3577
3577
  return t;
3578
3578
  }, Po = (e, t) => (t.forEach((n) => {
3579
- const a = G.find(e, { key: n.key });
3580
- a ? G.merge(a, n) : e.push(n);
3579
+ const a = x.find(e, { key: n.key });
3580
+ a ? x.merge(a, n) : e.push(n);
3581
3581
  }), e), Pa = async ({ baseUrl: e, token: t }) => lt.get(e + "/i18n-web/sysoption/getsupportedlangs", {
3582
3582
  headers: {
3583
3583
  Authorization: t
@@ -3621,7 +3621,7 @@ const ko = (e) => {
3621
3621
  language: n = "zh-CN",
3622
3622
  token: a
3623
3623
  }) => new Promise(async (s, r) => {
3624
- const o = pe.namespace(`I18N_${G.toUpper(t)}`), l = {
3624
+ const o = pe.namespace(`I18N_${x.toUpper(t)}`), l = {
3625
3625
  baseUrl: e,
3626
3626
  appCode: t,
3627
3627
  language: n,
@@ -3636,19 +3636,19 @@ const ko = (e) => {
3636
3636
  lastPullDate: _
3637
3637
  });
3638
3638
  if (E) {
3639
- const N = G.get(u, "translatesDTOs");
3640
- if (G.isEmpty(E.translatesDTOs))
3639
+ const N = x.get(u, "translatesDTOs");
3640
+ if (x.isEmpty(E.translatesDTOs))
3641
3641
  s(N);
3642
3642
  else {
3643
3643
  const p = Po(N, E.translatesDTOs), S = {
3644
3644
  lastPullDate: E.lastPullDate,
3645
3645
  translatesDTOs: p
3646
3646
  };
3647
- pe.namespace(`I18N_${G.toUpper(t)}`).set(n, S, ":"), s(p);
3647
+ pe.namespace(`I18N_${x.toUpper(t)}`).set(n, S, ":"), s(p);
3648
3648
  }
3649
3649
  }
3650
3650
  }
3651
- }), wo = {
3651
+ }), Uo = {
3652
3652
  data() {
3653
3653
  return {
3654
3654
  LanguageSettingVisible: !1,
@@ -3694,11 +3694,11 @@ const ko = (e) => {
3694
3694
  {
3695
3695
  title: "关键词",
3696
3696
  fixed: "left",
3697
- width: 90,
3697
+ width: 100,
3698
3698
  key: "dictKey"
3699
3699
  }
3700
3700
  ];
3701
- return G.map(this.languages, (t) => {
3701
+ return x.map(this.languages, (t) => {
3702
3702
  const n = t.code;
3703
3703
  if (t.checked)
3704
3704
  return e.push({
@@ -3716,7 +3716,7 @@ const ko = (e) => {
3716
3716
  onOnChange: (u) => {
3717
3717
  const _ = u.target.value, {
3718
3718
  dictKey: E
3719
- } = s, N = G.findIndex(this.mySaveData, {
3719
+ } = s, N = x.findIndex(this.mySaveData, {
3720
3720
  dictKey: E
3721
3721
  });
3722
3722
  N > -1 ? this.mySaveData[N][n] = _ : this.mySaveData.push({
@@ -3752,7 +3752,7 @@ const ko = (e) => {
3752
3752
  },
3753
3753
  methods: {
3754
3754
  saveLanguageSetting(e) {
3755
- const t = G.map(G.filter(this.languages, (n) => n.checked), "code");
3755
+ const t = x.map(x.filter(this.languages, (n) => n.checked), "code");
3756
3756
  pe.set("I18N_LANGUAGE_SETTING", t);
3757
3757
  },
3758
3758
  handleLanguageSettingOpen() {
@@ -3773,14 +3773,14 @@ const ko = (e) => {
3773
3773
  this.isModalVisible || (this.isModalVisible = !0, this.name = e, this.init());
3774
3774
  },
3775
3775
  findShallowStringDiff(e) {
3776
- return G.find(e, ["_isEdit", !0]);
3776
+ return x.find(e, ["_isEdit", !0]);
3777
3777
  },
3778
3778
  async saveData({
3779
3779
  msg: e = "保存成功"
3780
3780
  }, t = !0) {
3781
3781
  const n = [];
3782
- if (G.map(this.mySaveData, (s) => {
3783
- G.map(this.languages, (r) => {
3782
+ if (x.map(this.mySaveData, (s) => {
3783
+ x.map(this.languages, (r) => {
3784
3784
  n.push({
3785
3785
  key: s.dictKey,
3786
3786
  page: s.page,
@@ -3788,7 +3788,7 @@ const ko = (e) => {
3788
3788
  value: s[r.code]
3789
3789
  });
3790
3790
  });
3791
- }), G.isEmpty(n)) {
3791
+ }), x.isEmpty(n)) {
3792
3792
  et.error({
3793
3793
  content: "没有需要保存的数据"
3794
3794
  });
@@ -3805,12 +3805,12 @@ const ko = (e) => {
3805
3805
  });
3806
3806
  a && a.data.result === 0 ? (et.success({
3807
3807
  content: e || a.data.msg
3808
- }), this.setLanguage(), this.initialData = G.cloneDeep(this.data.datas), t && this.closeModal(), this.mySaveData = []) : et.error({
3808
+ }), this.setLanguage(), this.initialData = x.cloneDeep(this.data.datas), t && this.closeModal(), this.mySaveData = []) : et.error({
3809
3809
  content: a.data.msg || "保存失败"
3810
3810
  });
3811
3811
  },
3812
3812
  async saveNoEqual() {
3813
- G.isEmpty(this.mySaveData) || this.saveData({
3813
+ x.isEmpty(this.mySaveData) || this.saveData({
3814
3814
  msg: "已为您自动保存"
3815
3815
  }, !1);
3816
3816
  },
@@ -3841,7 +3841,7 @@ const ko = (e) => {
3841
3841
  data: {
3842
3842
  appCode: this.appCode,
3843
3843
  searchBlur: this.searchText,
3844
- commaSeparatedLangs: G.map(this.languages, "code").toString(),
3844
+ commaSeparatedLangs: x.map(this.languages, "code").toString(),
3845
3845
  page: t === "loginData" ? this.loginRouteName : t === "pageData" ? this.name : "common",
3846
3846
  pageSize: 10,
3847
3847
  ...e
@@ -3849,9 +3849,9 @@ const ko = (e) => {
3849
3849
  token: this.token
3850
3850
  });
3851
3851
  if (n) {
3852
- this.initialData = G.cloneDeep(n.data.retVal.datas);
3852
+ this.initialData = x.cloneDeep(n.data.retVal.datas);
3853
3853
  let a = n.data.retVal.datas;
3854
- this.data = G.cloneDeep(a), this.page = {
3854
+ this.data = x.cloneDeep(a), this.page = {
3855
3855
  firstResult: n.data.retVal.firstResult,
3856
3856
  pageSize: n.data.retVal.pageSize,
3857
3857
  totalRows: n.data.retVal.totalRows
@@ -3870,14 +3870,14 @@ const ko = (e) => {
3870
3870
  });
3871
3871
  if (t && t.data.result == 0) {
3872
3872
  let n = t.data.retVal;
3873
- G.isEmpty(e) && (e = ["zh-CN", "en-US", "zh-TW"]), G.map(n, (a) => {
3874
- G.includes(e, a.code) && (a.checked = !0);
3873
+ x.isEmpty(e) && (e = ["zh-CN", "en-US", "zh-TW"]), x.map(n, (a) => {
3874
+ x.includes(e, a.code) && (a.checked = !0);
3875
3875
  }), this.languages = n, this.getPageData();
3876
3876
  } else
3877
3877
  et.error("获取语言失败,出错了");
3878
3878
  }
3879
3879
  }
3880
- }, Uo = (e, t) => {
3880
+ }, wo = (e, t) => {
3881
3881
  const n = e.__vccOpts || e;
3882
3882
  for (const [a, s] of t)
3883
3883
  n[a] = s;
@@ -4061,7 +4061,7 @@ function Go(e, t, n, a, s, r) {
4061
4061
  _: 1
4062
4062
  }, 8, ["modelValue", "onOnCancel"]);
4063
4063
  }
4064
- const Ko = /* @__PURE__ */ Uo(wo, [["render", Go], ["__scopeId", "data-v-a09c2040"]]);
4064
+ const Ko = /* @__PURE__ */ wo(Uo, [["render", Go], ["__scopeId", "data-v-04b847f9"]]);
4065
4065
  function Bt(e) {
4066
4066
  const t = [], n = /(?:\$t|_ctx\.\$t)\s*\(\s*(['"])([^'"]+?)\1/gs;
4067
4067
  if (e.template) {
@@ -4156,7 +4156,7 @@ class jt {
4156
4156
  login: u,
4157
4157
  keyboard: _
4158
4158
  } = t;
4159
- this.token = r || Xo(o), this.loadI18n = !0, this.appCode = a, this.router = n, this.locale = pe.get("I18N_LANGUAGE") || navigator.language || "zh-CN", this.name = "", this.messages = s || {}, this.translationKeys = [], this.loginRouteName = l || "login", this.login = u, this.loginTranslationKeys = [], this.keyboard = _ || "shift>t", this.baseUrl = t.dev ? "https://test.ihotel.cn" : "https://trans.ihotel.cn", this.initRouterGuards(), this.initI18n(t), Ua.bind(this.keyboard, (E) => {
4159
+ this.token = r || Xo(o), this.loadI18n = !0, this.appCode = a, this.router = n, this.locale = pe.get("I18N_LANGUAGE") || navigator.language || "zh-CN", this.name = "", this.messages = s || {}, this.translationKeys = [], this.loginRouteName = l || "login", this.login = u, this.loginTranslationKeys = [], this.keyboard = _ || "shift>t", this.baseUrl = t.dev ? "https://test.ihotel.cn" : "https://trans.ihotel.cn", this.initRouterGuards(), this.initI18n(t), wa.bind(this.keyboard, (E) => {
4160
4160
  !this.configInstance && this.name != this.loginRouteName && (this.configInstance = this.createModal(this.name), this.configInstance.openModal({ name: this.name }));
4161
4161
  }), this.setupLanguageChangeListener();
4162
4162
  }
@@ -4234,6 +4234,8 @@ class jt {
4234
4234
  return n(a, s);
4235
4235
  }, globalThis.$deepScan = function(a) {
4236
4236
  return a;
4237
+ }, globalThis.$clearI18n = () => {
4238
+ pe.namespace(`I18N_${x.toUpper(this.appCode)}`).clearAll();
4237
4239
  }, globalThis.$changeLocale = this.changeLocale = this.i18n.global.changeLocale = async (a) => {
4238
4240
  await this.setLanguage(a || this.locale);
4239
4241
  };
@@ -4241,9 +4243,6 @@ class jt {
4241
4243
  setToken(t) {
4242
4244
  this.token = t;
4243
4245
  }
4244
- getLanguage(t) {
4245
- return pe.get("I18N_TEST.zh-TW");
4246
- }
4247
4246
  async getLanguages(t = !1) {
4248
4247
  const n = pe.get("I18N_LANGUAGES");
4249
4248
  if (n && !t)
@@ -4255,7 +4254,7 @@ class jt {
4255
4254
  token: this.token
4256
4255
  });
4257
4256
  if (a.data) {
4258
- const s = G.get(a.data, "retVal");
4257
+ const s = x.get(a.data, "retVal");
4259
4258
  return pe.set("I18N_LANGUAGES", s), s;
4260
4259
  }
4261
4260
  }
@@ -4269,9 +4268,9 @@ class jt {
4269
4268
  token: this.token
4270
4269
  });
4271
4270
  if (s) {
4272
- const r = ko(s), o = G.assign(
4271
+ const r = ko(s), o = x.assign(
4273
4272
  {},
4274
- G.get(this.messages, t),
4273
+ x.get(this.messages, t),
4275
4274
  r
4276
4275
  );
4277
4276
  this.i18n.global.setLocaleMessage(t, o);
@@ -1,4 +1,4 @@
1
- (function(ae,ce){typeof exports=="object"&&typeof module<"u"?module.exports=ce(require("keyboardjs"),require("view-ui-plus"),require("view-ui-plus/dist/styles/viewuiplus.css"),require("vue"),require("lodash-es"),require("axios"),require("store2"),require("jsrsasign")):typeof define=="function"&&define.amd?define(["keyboardjs","view-ui-plus","view-ui-plus/dist/styles/viewuiplus.css","vue","lodash-es","axios","store2","jsrsasign"],ce):(ae=typeof globalThis<"u"?globalThis:ae||self,ae.gc_i18n=ce(ae.keyboardJS,ae.iview,null,ae.Vue,ae._,ae.Axios,ae.store2,ae.jsrsasign))})(this,function(ae,ce,ho,E,K,je,me,La){"use strict";/*!
1
+ (function(ae,ce){typeof exports=="object"&&typeof module<"u"?module.exports=ce(require("keyboardjs"),require("view-ui-plus"),require("view-ui-plus/dist/styles/viewuiplus.css"),require("vue"),require("lodash-es"),require("axios"),require("store2"),require("jsrsasign")):typeof define=="function"&&define.amd?define(["keyboardjs","view-ui-plus","view-ui-plus/dist/styles/viewuiplus.css","vue","lodash-es","axios","store2","jsrsasign"],ce):(ae=typeof globalThis<"u"?globalThis:ae||self,ae.gc_i18n=ce(ae.keyboardJS,ae.iview,null,ae.Vue,ae._,ae.Axios,ae.store2,ae.jsrsasign))})(this,function(ae,ce,ho,E,G,je,me,La){"use strict";/*!
2
2
  * shared v11.1.3
3
3
  * (c) 2025 kazuya kawaguchi
4
4
  * Released under the MIT License.
@@ -18,5 +18,5 @@ ${_}`:u)}else throw o},onCacheKey:o=>Oa(t,n,o)}}function rr(e){if(y(e))return e;
18
18
  * vue-i18n v11.1.3
19
19
  * (c) 2025 kazuya kawaguchi
20
20
  * Released under the MIT License.
21
- */const gr="11.1.3";function Er(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(be().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(be().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(be().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(be().__INTLIFY_PROD_DEVTOOLS__=!1)}const G={UNEXPECTED_RETURN_TYPE:Os,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function te(e,...t){return ke(e,null,process.env.NODE_ENV!=="production"?{messages:pr,args:t}:void 0)}const pr={[G.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[G.INVALID_ARGUMENT]:"Invalid argument",[G.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[G.NOT_INSTALLED]:"Need to install with `app.use` function",[G.UNEXPECTED_ERROR]:"Unexpected error",[G.REQUIRED_VALUE]:"Required in value: {0}",[G.INVALID_VALUE]:"Invalid value",[G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[G.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[G.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},It=ue("__translateVNode"),yt=ue("__datetimeParts"),Ct=ue("__numberParts"),Ie=ue("__enableEmitter"),xe=ue("__disableEmitter"),Bn=ue("__setPluralRules"),jn=ue("__injectWithOption"),St=ue("__dispose"),_e={FALLBACK_TO_ROOT:ws,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},hr={[_e.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[_e.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[_e.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[_e.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
22
- About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[_e.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function We(e,...t){return Xe(hr[e],...t)}function $e(e){if(!F(e)||se(e))return e;for(const t in e)if(le(e,t))if(!t.includes("."))F(e[t])&&$e(e[t]);else{const n=t.split("."),a=n.length-1;let s=e,r=!1;for(let o=0;o<a;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=W()),!F(s[n[o]])){process.env.NODE_ENV!=="production"&&pe(We(_e.IGNORE_OBJ_FLATTEN,{key:n[o]})),r=!0;break}s=s[n[o]]}if(r||(se(s)?En.includes(n[a])||delete e[t]:(s[n[a]]=e[t],delete e[t])),!se(s)){const o=s[n[a]];F(o)&&$e(o)}}return e}function At(e,t){const{messages:n,__i18n:a,messageResolver:s,flatJson:r}=t,o=M(n)?n:Y(a)?W():{[e]:W()};if(Y(a)&&a.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:u,resource:_}=l;u?(o[u]=o[u]||W(),Qe(_,o[u])):Qe(_,o)}else y(l)&&Qe(JSON.parse(l),o)}),s==null&&r)for(const l in o)le(o,l)&&$e(o[l]);return o}function Xn(e){return e.type}function Jn(e,t,n){let a=F(t.messages)?t.messages:W();"__i18nGlobal"in n&&(a=At(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const s=Object.keys(a);s.length&&s.forEach(r=>{e.mergeLocaleMessage(r,a[r])});{if(F(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(F(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function qn(e){return E.createVNode(E.Text,null,e,0)}const Qn="__INTLIFY_META__",Zn=()=>[],Nr=()=>!1;let zn=0;function ea(e){return(t,n,a,s)=>e(n,a,E.getCurrentInstance()||void 0,s)}const Tr=()=>{const e=E.getCurrentInstance();let t=null;return e&&(t=Xn(e)[Qn])?{[Qn]:t}:null};function kt(e={}){const{__root:t,__injectWithOption:n}=e,a=t===void 0,s=e.flatJson,r=oe?E.ref:E.shallowRef;let o=w(e.inheritLocale)?e.inheritLocale:!0;const l=r(t&&o?t.locale.value:y(e.locale)?e.locale:Ue),u=r(t&&o?t.fallbackLocale.value:y(e.fallbackLocale)||Y(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),_=r(At(l.value,e)),p=r(M(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),T=r(M(e.numberFormats)?e.numberFormats:{[l.value]:{}});let h=t?t.missingWarn:w(e.missingWarn)||Ae(e.missingWarn)?e.missingWarn:!0,A=t?t.fallbackWarn:w(e.fallbackWarn)||Ae(e.fallbackWarn)?e.fallbackWarn:!0,v=t?t.fallbackRoot:w(e.fallbackRoot)?e.fallbackRoot:!0,C=!!e.fallbackFormat,k=$(e.missing)?e.missing:null,f=$(e.missing)?ea(e.missing):null,g=$(e.postTranslation)?e.postTranslation:null,O=t?t.warnHtmlMessage:w(e.warnHtmlMessage)?e.warnHtmlMessage:!0,m=!!e.escapeParameter;const I=t?t.modifiers:M(e.modifiers)?e.modifiers:{};let S=e.pluralRules||t&&t.pluralRules,N;N=(()=>{a&&An(null);const d={version:gr,locale:l.value,fallbackLocale:u.value,messages:_.value,modifiers:I,pluralRules:S,missing:f===null?void 0:f,missingWarn:h,fallbackWarn:A,fallbackFormat:C,unresolving:!0,postTranslation:g===null?void 0:g,warnHtmlMessage:O,escapeParameter:m,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};d.datetimeFormats=p.value,d.numberFormats=T.value,d.__datetimeFormatters=M(N)?N.__datetimeFormatters:void 0,d.__numberFormatters=M(N)?N.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(d.__v_emitter=M(N)?N.__v_emitter:void 0);const b=Bs(d);return a&&An(b),b})(),Ve(N,l.value,u.value);function V(){return[l.value,u.value,_.value,p.value,T.value]}const q=E.computed({get:()=>l.value,set:d=>{N.locale=d,l.value=d}}),ie=E.computed({get:()=>u.value,set:d=>{N.fallbackLocale=d,u.value=d,Ve(N,l.value,d)}}),Q=E.computed(()=>_.value),Re=E.computed(()=>p.value),Ut=E.computed(()=>T.value);function Vt(){return $(g)?g:null}function xt(d){g=d,N.postTranslation=d}function Wt(){return k}function $t(d){d!==null&&(f=ea(d)),k=d,N.missing=f}function Gt(d,b){return d!=="translate"||!b.resolvedMessage}const Ee=(d,b,x,j,Ce,ot)=>{V();let Me;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(N.fallbackContext=t?Hs():void 0),Me=d(N)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(N.fallbackContext=void 0)}if(x!=="translate exists"&&X(Me)&&Me===et||x==="translate exists"&&!Me){const[Se,po]=b();if(process.env.NODE_ENV!=="production"&&t&&y(Se)&&Gt(x,po)&&(v&&(nt(A,Se)||Dn(h,Se))&&pe(We(_e.FALLBACK_TO_ROOT,{key:Se,type:x})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ta}=N;Ta&&v&&Ta.emit("fallback",{type:x,key:Se,to:"global",groupId:`${x}:${Se}`})}return t&&v?j(t):Ce(Se)}else{if(ot(Me))return Me;throw te(G.UNEXPECTED_RETURN_TYPE)}};function Ke(...d){return Ee(b=>Reflect.apply(Gn,null,[b,...d]),()=>bt(...d),"translate",b=>Reflect.apply(b.t,b,[...d]),b=>b,b=>y(b))}function Kt(...d){const[b,x,j]=d;if(j&&!F(j))throw te(G.INVALID_ARGUMENT);return Ke(b,x,J({resolvedMessage:!0},j||{}))}function Yt(...d){return Ee(b=>Reflect.apply(Mn,null,[b,...d]),()=>Tt(...d),"datetime format",b=>Reflect.apply(b.d,b,[...d]),()=>tt,b=>y(b))}function Ht(...d){return Ee(b=>Reflect.apply(Un,null,[b,...d]),()=>Lt(...d),"number format",b=>Reflect.apply(b.n,b,[...d]),()=>tt,b=>y(b))}function Bt(d){return d.map(b=>y(b)||X(b)||w(b)?qn(String(b)):b)}const jt={normalize:Bt,interpolate:d=>d,type:"vnode"};function rt(...d){return Ee(b=>{let x;const j=b;try{j.processor=jt,x=Reflect.apply(Gn,null,[j,...d])}finally{j.processor=null}return x},()=>bt(...d),"translate",b=>b[It](...d),b=>[qn(b)],b=>Y(b))}function Xt(...d){return Ee(b=>Reflect.apply(Un,null,[b,...d]),()=>Lt(...d),"number format",b=>b[Ct](...d),Zn,b=>y(b)||Y(b))}function Jt(...d){return Ee(b=>Reflect.apply(Mn,null,[b,...d]),()=>Tt(...d),"datetime format",b=>b[yt](...d),Zn,b=>y(b)||Y(b))}function qt(d){S=d,N.pluralRules=S}function Qt(d,b){return Ee(()=>{if(!d)return!1;const x=y(b)?b:l.value,j=ye(x),Ce=N.messageResolver(j,d);return se(Ce)||re(Ce)||y(Ce)},()=>[d],"translate exists",x=>Reflect.apply(x.te,x,[d,b]),Nr,x=>w(x))}function Ye(d){let b=null;const x=Nn(N,u.value,l.value);for(let j=0;j<x.length;j++){const Ce=_.value[x[j]]||{},ot=N.messageResolver(Ce,d);if(ot!=null){b=ot;break}}return b}function He(d){const b=Ye(d);return b??(t?t.tm(d)||{}:{})}function ye(d){return _.value[d]||{}}function Be(d,b){if(s){const x={[d]:b};for(const j in x)le(x,j)&&$e(x[j]);b=x[d]}_.value[d]=b,N.messages=_.value}function Zt(d,b){_.value[d]=_.value[d]||{};const x={[d]:b};if(s)for(const j in x)le(x,j)&&$e(x[j]);b=x[d],Qe(b,_.value[d]),N.messages=_.value}function i(d){return p.value[d]||{}}function c(d,b){p.value[d]=b,N.datetimeFormats=p.value,wn(N,d,b)}function L(d,b){p.value[d]=J(p.value[d]||{},b),N.datetimeFormats=p.value,wn(N,d,b)}function D(d){return T.value[d]||{}}function H(d,b){T.value[d]=b,N.numberFormats=T.value,xn(N,d,b)}function B(d,b){T.value[d]=J(T.value[d]||{},b),N.numberFormats=T.value,xn(N,d,b)}zn++,t&&oe&&(E.watch(t.locale,d=>{o&&(l.value=d,N.locale=d,Ve(N,l.value,u.value))}),E.watch(t.fallbackLocale,d=>{o&&(u.value=d,N.fallbackLocale=d,Ve(N,l.value,u.value))}));const U={id:zn,locale:q,fallbackLocale:ie,get inheritLocale(){return o},set inheritLocale(d){o=d,d&&t&&(l.value=t.locale.value,u.value=t.fallbackLocale.value,Ve(N,l.value,u.value))},get availableLocales(){return Object.keys(_.value).sort()},messages:Q,get modifiers(){return I},get pluralRules(){return S||{}},get isGlobal(){return a},get missingWarn(){return h},set missingWarn(d){h=d,N.missingWarn=h},get fallbackWarn(){return A},set fallbackWarn(d){A=d,N.fallbackWarn=A},get fallbackRoot(){return v},set fallbackRoot(d){v=d},get fallbackFormat(){return C},set fallbackFormat(d){C=d,N.fallbackFormat=C},get warnHtmlMessage(){return O},set warnHtmlMessage(d){O=d,N.warnHtmlMessage=d},get escapeParameter(){return m},set escapeParameter(d){m=d,N.escapeParameter=d},t:Ke,getLocaleMessage:ye,setLocaleMessage:Be,mergeLocaleMessage:Zt,getPostTranslationHandler:Vt,setPostTranslationHandler:xt,getMissingHandler:Wt,setMissingHandler:$t,[Bn]:qt};return U.datetimeFormats=Re,U.numberFormats=Ut,U.rt=Kt,U.te=Qt,U.tm=He,U.d=Yt,U.n=Ht,U.getDateTimeFormat=i,U.setDateTimeFormat=c,U.mergeDateTimeFormat=L,U.getNumberFormat=D,U.setNumberFormat=H,U.mergeNumberFormat=B,U[jn]=n,U[It]=rt,U[yt]=Jt,U[Ct]=Xt,process.env.NODE_ENV!=="production"&&(U[Ie]=d=>{N.__v_emitter=d},U[xe]=()=>{N.__v_emitter=void 0}),U}const ta="vue-i18n: composer properties",Dt={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Lr={"vue-i18n-resource-inspector":"Search for scopes ..."},br={"vue-i18n-timeline":16764185};let vt;async function Or(e,t){return new Promise((n,a)=>{try{dr({id:"vue-devtools-plugin-vue-i18n",label:Dt["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[ta],app:e},s=>{vt=s,s.on.visitComponentTree(({componentInstance:o,treeNode:l})=>{Ir(o,l,t)}),s.on.inspectComponent(({componentInstance:o,instanceData:l})=>{o.vnode.el&&o.vnode.el.__VUE_I18N__&&l&&(t.mode==="legacy"?o.vnode.el.__VUE_I18N__!==t.global.__composer&&aa(l,o.vnode.el.__VUE_I18N__):aa(l,o.vnode.el.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:Dt["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Lr["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&kr(o,t)});const r=new Map;s.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),vr(o,t),o.nodeId==="global"){if(!r.has(o.app)){const[l]=await s.getComponentInstances(o.app);r.set(o.app,l)}s.highlightElement(r.get(o.app))}else{const l=Dr(o.nodeId,t);l&&s.highlightElement(l)}}),s.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&Rr(o,t)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:Dt["vue-i18n-timeline"],color:br["vue-i18n-timeline"]}),n(!0)})}catch(s){console.error(s),a(!1)}})}function na(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Ir(e,t,n){const a=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==a){const s={label:`i18n (${na(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(s)}}function aa(e,t){const n=ta;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Pt(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Pt(e){const t={};return Object.keys(e).forEach(n=>{const a=e[n];$(a)&&"source"in a?t[n]=Ar(a):se(a)&&a.loc&&a.loc.source?t[n]=a.loc.source:F(a)?t[n]=Pt(a):t[n]=a}),t}const yr={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Cr(e){return e.replace(/[<>"&]/g,Sr)}function Sr(e){return yr[e]||e}function Ar(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Cr(e.source)}")`:"(?)"}`}}}function kr(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[a,s]of t.__instances){const r=t.mode==="composition"?s:s.__composer;n!==r&&e.rootNodes.push({id:r.id.toString(),label:`${na(a)} Scope`})}}function Dr(e,t){let n=null;if(e!=="global"){for(const[a,s]of t.__instances.entries())if(s.id.toString()===e){n=a;break}}return n}function sa(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(a=>a.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function vr(e,t){const n=sa(e.nodeId,t);return n&&(e.state=Pr(n)),null}function Pr(e){const t={},n="Locale related info",a=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=a;const s="Locale messages info",r=[{type:s,key:"messages",editable:!1,value:Pt(e.messages.value)}];t[s]=r;{const o="Datetime formats info",l=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=l;const u="Datetime formats info",_=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=_}return t}function Ge(e,t){if(vt){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),vt.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function Rr(e,t){const n=sa(e.nodeId,t);if(n){const[a]=e.path;a==="locale"&&y(e.state.value)?n.locale.value=e.state.value:a==="fallbackLocale"&&(y(e.state.value)||Y(e.state.value)||F(e.state.value))?n.fallbackLocale.value=e.state.value:a==="inheritLocale"&&w(e.state.value)&&(n.inheritLocale=e.state.value)}}function Mr(e){const t=y(e.locale)?e.locale:Ue,n=y(e.fallbackLocale)||Y(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,a=$(e.missing)?e.missing:void 0,s=w(e.silentTranslationWarn)||Ae(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=w(e.silentFallbackWarn)||Ae(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=w(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,u=M(e.modifiers)?e.modifiers:{},_=e.pluralizationRules,p=$(e.postTranslation)?e.postTranslation:void 0,T=y(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,A=w(e.sync)?e.sync:!0;let v=e.messages;if(M(e.sharedMessages)){const I=e.sharedMessages;v=Object.keys(I).reduce((N,R)=>{const V=N[R]||(N[R]={});return J(V,I[R]),N},v||{})}const{__i18n:C,__root:k,__injectWithOption:f}=e,g=e.datetimeFormats,O=e.numberFormats,m=e.flatJson;return{locale:t,fallbackLocale:n,messages:v,flatJson:m,datetimeFormats:g,numberFormats:O,missing:a,missingWarn:s,fallbackWarn:r,fallbackRoot:o,fallbackFormat:l,modifiers:u,pluralRules:_,postTranslation:p,warnHtmlMessage:T,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:A,__i18n:C,__root:k,__injectWithOption:f}}function Rt(e={}){const t=kt(Mr(e)),{__extender:n}=e,a={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(s){t.setMissingHandler(s)},get silentTranslationWarn(){return w(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=w(s)?!s:s},get silentFallbackWarn(){return w(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=w(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){return Reflect.apply(t.t,t,[...s])},rt(...s){return Reflect.apply(t.rt,t,[...s])},te(s,r){return t.te(s,r)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,r){t.setLocaleMessage(s,r)},mergeLocaleMessage(s,r){t.mergeLocaleMessage(s,r)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,r){t.setDateTimeFormat(s,r)},mergeDateTimeFormat(s,r){t.mergeDateTimeFormat(s,r)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,r){t.setNumberFormat(s,r)},mergeNumberFormat(s,r){t.mergeNumberFormat(s,r)}};return a.__extender=n,process.env.NODE_ENV!=="production"&&(a.__enableEmitter=s=>{const r=t;r[Ie]&&r[Ie](s)},a.__disableEmitter=()=>{const s=t;s[xe]&&s[xe]()}),a}function Fr(e,t,n){return{beforeCreate(){const a=E.getCurrentInstance();if(!a)throw te(G.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const r=s.i18n;if(s.__i18n&&(r.__i18n=s.__i18n),r.__root=t,this===this.$root)this.$i18n=ra(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=Rt(r);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=ra(e,s);else{this.$i18n=Rt({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&Jn(t,s,s),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$te=(r,o)=>this.$i18n.te(r,o),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(a,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const a=this.$i18n;this.$el.__VUE_I18N__=a.__composer;const s=this.__v_emitter=ut();a.__enableEmitter&&a.__enableEmitter(s),s.on("*",Ge)}},unmounted(){const a=E.getCurrentInstance();if(!a)throw te(G.UNEXPECTED_ERROR);const s=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Ge),delete this.__v_emitter),this.$i18n&&(s.__disableEmitter&&s.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(a),delete this.$i18n}}}function ra(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Bn](t.pluralizationRules||e.pluralizationRules);const n=At(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(a=>e.mergeLocaleMessage(a,n[a])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a])),t.numberFormats&&Object.keys(t.numberFormats).forEach(a=>e.mergeNumberFormat(a,t.numberFormats[a])),e}const Mt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function wr({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,s)=>[...a,...s.type===E.Fragment?s.children:[s]],[]):t.reduce((n,a)=>{const s=e[a];return s&&(n[a]=s()),n},W())}function oa(){return E.Fragment}const la=E.defineComponent({name:"i18n-t",props:J({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>X(e)||!isNaN(e)}},Mt),setup(e,t){const{slots:n,attrs:a}=t,s=e.i18n||Ft({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(T=>T!=="_"),o=W();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=y(e.plural)?+e.plural:e.plural);const l=wr(t,r),u=s[It](e.keypath,l,o),_=J(W(),a),p=y(e.tag)||F(e.tag)?e.tag:oa();return E.h(p,_,u)}}});function Ur(e){return Y(e)&&!y(e[0])}function ia(e,t,n,a){const{slots:s,attrs:r}=t;return()=>{const o={part:!0};let l=W();e.locale&&(o.locale=e.locale),y(e.format)?o.key=e.format:F(e.format)&&(y(e.format.key)&&(o.key=e.format.key),l=Object.keys(e.format).reduce((h,A)=>n.includes(A)?J(W(),h,{[A]:e.format[A]}):h,W()));const u=a(e.value,o,l);let _=[o.key];Y(u)?_=u.map((h,A)=>{const v=s[h.type],C=v?v({[h.type]:h.value,index:A,parts:u}):[h.value];return Ur(C)&&(C[0].key=`${h.type}-${A}`),C}):y(u)&&(_=[u]);const p=J(W(),r),T=y(e.tag)||F(e.tag)?e.tag:oa();return E.h(T,p,_)}}const ca=E.defineComponent({name:"i18n-n",props:J({value:{type:Number,required:!0},format:{type:[String,Object]}},Mt),setup(e,t){const n=e.i18n||Ft({useScope:e.scope,__useComponent:!0});return ia(e,t,Vn,(...a)=>n[Ct](...a))}});function Vr(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return a!=null?a.__composer:e.global.__composer}}function xr(e){const t=o=>{process.env.NODE_ENV!=="production"&&ct(We(_e.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:l,value:u}=o;if(!l||!l.$)throw te(G.UNEXPECTED_ERROR);const _=Vr(e,l.$),p=ua(u);return[Reflect.apply(_.t,_,[...fa(p)]),_]};return{created:(o,l)=>{const[u,_]=t(l);oe&&e.global===_&&(o.__i18nWatcher=E.watch(_.locale,()=>{l.instance&&l.instance.$forceUpdate()})),o.__composer=_,o.textContent=u},unmounted:o=>{oe&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:l})=>{if(o.__composer){const u=o.__composer,_=ua(l);o.textContent=Reflect.apply(u.t,u,[...fa(_)])}},getSSRProps:o=>{const[l]=t(o);return{textContent:l}}}}function ua(e){if(y(e))return{path:e};if(M(e)){if(!("path"in e))throw te(G.REQUIRED_VALUE,"path");return e}else throw te(G.INVALID_VALUE)}function fa(e){const{path:t,locale:n,args:a,choice:s,plural:r}=e,o={},l=a||{};return y(n)&&(o.locale=n),X(s)&&(o.plural=s),X(r)&&(o.plural=r),[t,l,o]}function Wr(e,t,...n){const a=M(n[0])?n[0]:{};(w(a.globalInstall)?a.globalInstall:!0)&&([la.name,"I18nT"].forEach(r=>e.component(r,la)),[ca.name,"I18nN"].forEach(r=>e.component(r,ca)),[ma.name,"I18nD"].forEach(r=>e.component(r,ma))),e.directive("t",xr(t))}const $r=ue("global-vue-i18n");function Gr(e={}){const t=__VUE_I18N_LEGACY_API__&&w(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&ct(We(_e.DEPRECATE_LEGACY_MODE));const n=w(e.globalInjection)?e.globalInjection:!0,a=new Map,[s,r]=Kr(e,t),o=ue(process.env.NODE_ENV!=="production"?"vue-i18n":"");function l(T){return a.get(T)||null}function u(T,h){a.set(T,h)}function _(T){a.delete(T)}const p={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(T,...h){if(process.env.NODE_ENV!=="production"&&(T.__VUE_I18N__=p),T.__VUE_I18N_SYMBOL__=o,T.provide(T.__VUE_I18N_SYMBOL__,p),M(h[0])){const C=h[0];p.__composerExtend=C.__composerExtend,p.__vueI18nExtend=C.__vueI18nExtend}let A=null;!t&&n&&(A=Qr(T,p.global)),__VUE_I18N_FULL_INSTALL__&&Wr(T,p,...h),__VUE_I18N_LEGACY_API__&&t&&T.mixin(Fr(r,r.__composer,p));const v=T.unmount;if(T.unmount=()=>{A&&A(),p.dispose(),v()},process.env.NODE_ENV!=="production"){if(!await Or(T,p))throw te(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const k=ut();if(t){const f=r;f.__enableEmitter&&f.__enableEmitter(k)}else{const f=r;f[Ie]&&f[Ie](k)}k.on("*",Ge)}},get global(){return r},dispose(){s.stop()},__instances:a,__getInstance:l,__setInstance:u,__deleteInstance:_};return p}function Ft(e={}){const t=E.getCurrentInstance();if(t==null)throw te(G.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw te(G.NOT_INSTALLED);const n=Yr(t),a=Br(n),s=Xn(t),r=Hr(e,s);if(r==="global")return Jn(a,e,s),a;if(r==="parent"){let u=jr(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&pe(We(_e.NOT_FOUND_PARENT_SCOPE)),u=a),u}const o=n;let l=o.__getInstance(t);if(l==null){const u=J({},e);"__i18n"in s&&(u.__i18n=s.__i18n),a&&(u.__root=a),l=kt(u),o.__composerExtend&&(l[St]=o.__composerExtend(l)),Jr(o,t,l),o.__setInstance(t,l)}return l}function Kr(e,t){const n=E.effectScope(),a=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Rt(e)):n.run(()=>kt(e));if(a==null)throw te(G.UNEXPECTED_ERROR);return[n,a]}function Yr(e){const t=E.inject(e.isCE?$r:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw te(e.isCE?G.NOT_INSTALLED_WITH_PROVIDE:G.UNEXPECTED_ERROR);return t}function Hr(e,t){return Je(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Br(e){return e.mode==="composition"?e.global:e.global.__composer}function jr(e,t,n=!1){let a=null;const s=t.root;let r=Xr(t,n);for(;r!=null;){const o=e;if(e.mode==="composition")a=o.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const l=o.__getInstance(r);l!=null&&(a=l.__composer,n&&a&&!a[jn]&&(a=null))}if(a!=null||s===r)break;r=r.parent}return a}function Xr(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Jr(e,t,n){let a=null;E.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,a=ut();const s=n;s[Ie]&&s[Ie](a),a.on("*",Ge)}},t),E.onUnmounted(()=>{const s=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(a&&a.off("*",Ge),s[xe]&&s[xe](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=s[St];r&&(r(),delete s[St])},t)}const qr=["locale","fallbackLocale","availableLocales"],_a=["t","rt","d","n","tm","te"];function Qr(e,t){const n=Object.create(null);return qr.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r)throw te(G.UNEXPECTED_ERROR);const o=E.isRef(r.value)?{get(){return r.value.value},set(l){r.value.value=l}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,_a.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r||!r.value)throw te(G.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,r)}),()=>{delete e.config.globalProperties.$i18n,_a.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const ma=E.defineComponent({name:"i18n-d",props:J({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Mt),setup(e,t){const n=e.i18n||Ft({useScope:e.scope,__useComponent:!0});return ia(e,t,Fn,(...a)=>n[yt](...a))}});if(Er(),Ws(hs),$s(Fs),Gs(Nn),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=be();e.__INTLIFY__=!0,Ns(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Zr=e=>{const t={};for(const n of e)t[n.key]=n.value;return t},zr=(e,t)=>(t.forEach(n=>{const a=K.find(e,{key:n.key});a?K.merge(a,n):e.push(n)}),e),da=async({baseUrl:e,token:t})=>je.get(e+"/i18n-web/sysoption/getsupportedlangs",{headers:{Authorization:t}}),ga=async({appCode:e,language:t="zh-CN",page:n,lastPullDate:a,baseUrl:s,token:r})=>new Promise(async(o,l)=>{const u=s+"/i18n-web/kv_translate/kv_translates",_=a?u+"?lastPullDate="+a:u,p=await je({url:_,method:"GET",headers:{appCode:e,page:n,language:t,Authorization:r}});p.data&&p.data.result==0?o(p.data.retVal):o(p)}),eo=async({data:e,token:t,baseUrl:n})=>je({url:n+"/i18n-web/kv_translate/userDicts",method:"POST",headers:{Authorization:t},data:e}),to=async({data:e,token:t,baseUrl:n})=>je({url:n+"/i18n-web/kv_translate/batch",method:"POST",data:e,headers:{Authorization:t}}),no=async({baseUrl:e,appCode:t,language:n="zh-CN",token:a})=>new Promise(async(s,r)=>{const o=me.namespace(`I18N_${K.toUpper(t)}`),l={baseUrl:e,appCode:t,language:n,token:a},u=o.get(n);if(!u||!u.lastPullDate){const _=await ga(l);_&&(o.set(n,_),s(_.translatesDTOs))}else{const{lastPullDate:_}=u,p=await ga({...l,lastPullDate:_});if(p){const T=K.get(u,"translatesDTOs");if(K.isEmpty(p.translatesDTOs))s(T);else{const h=zr(T,p.translatesDTOs),A={lastPullDate:p.lastPullDate,translatesDTOs:h};me.namespace(`I18N_${K.toUpper(t)}`).set(n,A,":"),s(h)}}}}),ao={data(){return{LanguageSettingVisible:!1,isModalVisible:!1,loading:!1,searchText:"",name:"",type:"pageData",languages:[],mySaveData:[],pageData:[],pageDataShow:[],page:{pageSize:10,firstResult:0},data:[]}},computed:{firstResult(){return this.page.firstResult/this.page.pageSize+1},columns(){let e=[{title:"关键词",fixed:"left",width:90,key:"dictKey"}];return K.map(this.languages,t=>{const n=t.code;if(t.checked)return e.push({title:t.name,key:n,render:(a,{row:s,index:r})=>{const o=s[n],{localhost:l}=s;return l?null:E.createVNode(E.resolveComponent("Input"),{modelValue:o,onOnChange:u=>{const _=u.target.value,{dictKey:p}=s,T=K.findIndex(this.mySaveData,{dictKey:p});T>-1?this.mySaveData[T][n]=_:this.mySaveData.push({...s,[n]:_,page:this.type==="loginData"?this.loginRouteName:this.type==="pageData"?this.name:"common"})}},null)}})}),e}},props:{appCode:String,setLanguage:Function,token:String,baseUrl:String,translationKeys:Array,loginRouteName:String,loginTranslationKeys:Array,login:{type:Boolean,default:!0},emitter:Object},methods:{saveLanguageSetting(e){const t=K.map(K.filter(this.languages,n=>n.checked),"code");me.set("I18N_LANGUAGE_SETTING",t)},handleLanguageSettingOpen(){this.LanguageSettingVisible=!this.LanguageSettingVisible},onClickOutside(){this.LanguageSettingVisible=!1},inputSearch(){this.type==="pageData"?this.getPageData():this.search()},closeModal(){this.searchText="",this.type="pageData",this.isModalVisible=!1,this.emitter.emit("closeModal")},openModal({name:e}){this.isModalVisible||(this.isModalVisible=!0,this.name=e,this.init())},findShallowStringDiff(e){return K.find(e,["_isEdit",!0])},async saveData({msg:e="保存成功"},t=!0){const n=[];if(K.map(this.mySaveData,s=>{K.map(this.languages,r=>{n.push({key:s.dictKey,page:s.page,lang:r.code,value:s[r.code]})})}),K.isEmpty(n)){ce.Message.error({content:"没有需要保存的数据"});return}const a=await to({baseUrl:this.baseUrl,data:{appCode:this.appCode,isLocal:"F",data:n},token:this.token});a&&a.data.result===0?(ce.Message.success({content:e||a.data.msg}),this.setLanguage(),this.initialData=K.cloneDeep(this.data.datas),t&&this.closeModal(),this.mySaveData=[]):ce.Message.error({content:a.data.msg||"保存失败"})},async saveNoEqual(){K.isEmpty(this.mySaveData)||this.saveData({msg:"已为您自动保存"},!1)},changePage(e){this.saveNoEqual(),this.type==="pageData"?this.getPageData({firstResult:(e-1)*this.page.pageSize}):this.search({firstResult:(e-1)*this.page.pageSize})},async getPageData(e){this.search({...e,commaSeparatedKeys:this.translationKeys.toString()},"pageData")},async getLoginData(e){this.search({...e,page:this.loginRouteName,commaSeparatedKeys:this.loginTranslationKeys.toString()},"pageData")},async search(e,t){this.loading=!0;const n=await eo({baseUrl:this.baseUrl,data:{appCode:this.appCode,searchBlur:this.searchText,commaSeparatedLangs:K.map(this.languages,"code").toString(),page:t==="loginData"?this.loginRouteName:t==="pageData"?this.name:"common",pageSize:10,...e},token:this.token});if(n){this.initialData=K.cloneDeep(n.data.retVal.datas);let a=n.data.retVal.datas;this.data=K.cloneDeep(a),this.page={firstResult:n.data.retVal.firstResult,pageSize:n.data.retVal.pageSize,totalRows:n.data.retVal.totalRows}}this.loading=!1},changeTab(e){this.type=e,e==="data"?this.search():e==="pageData"?this.getPageData():e==="loginData"&&this.getLoginData()},async init(){let e=me.get("I18N_LANGUAGE_SETTING");const t=await da({token:this.token,baseUrl:this.baseUrl});if(t&&t.data.result==0){let n=t.data.retVal;K.isEmpty(e)&&(e=["zh-CN","en-US","zh-TW"]),K.map(n,a=>{K.includes(e,a.code)&&(a.checked=!0)}),this.languages=n,this.getPageData()}else ce.Message.error("获取语言失败,出错了")}}},so=(e,t)=>{const n=e.__vccOpts||e;for(const[a,s]of t)n[a]=s;return n},ro={key:0},oo={class:"extra"},lo={class:"gc_i18n_page"},io={style:{display:"flex"}};function co(e,t,n,a,s,r){const o=E.resolveComponent("Spin"),l=E.resolveComponent("Table"),u=E.resolveComponent("TabPane"),_=E.resolveComponent("Icon"),p=E.resolveComponent("Checkbox"),T=E.resolveComponent("DropdownItem"),h=E.resolveComponent("DropdownMenu"),A=E.resolveComponent("Dropdown"),v=E.resolveComponent("Input"),C=E.resolveComponent("Tabs"),k=E.resolveComponent("Page"),f=E.resolveComponent("Button"),g=E.resolveComponent("Modal"),O=E.resolveDirective("click-away");return E.openBlock(),E.createBlock(g,{modelValue:s.isModalVisible,"onUpdate:modelValue":t[4]||(t[4]=m=>s.isModalVisible=m),"mask-closable":!1,width:70,title:"多语言管理中心","footer-hide":"",onOnCancel:r.closeModal},{default:E.withCtx(()=>[s.isModalVisible?(E.openBlock(),E.createElementBlock("div",ro,[E.createVNode(C,{modelValue:s.type,"onUpdate:modelValue":t[2]||(t[2]=m=>s.type=m),type:"card",class:"gc_i18n_tabs",onOnClick:r.changeTab},{extra:E.withCtx(()=>[E.createElementVNode("div",oo,[E.withDirectives((E.openBlock(),E.createBlock(A,{style:{width:"80px"},transfer:"",trigger:"custom",placement:"bottom-start",visible:s.LanguageSettingVisible},{list:E.withCtx(()=>[E.createVNode(h,null,{default:E.withCtx(()=>[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(s.languages,m=>(E.openBlock(),E.createBlock(T,{key:m.code},{default:E.withCtx(()=>[E.createVNode(p,{modelValue:m.checked,"onUpdate:modelValue":I=>m.checked=I,onOnChange:r.saveLanguageSetting},{default:E.withCtx(()=>[E.createElementVNode("span",null,E.toDisplayString(m.name),1)]),_:2},1032,["modelValue","onUpdate:modelValue","onOnChange"])]),_:2},1024))),128))]),_:1})]),default:E.withCtx(()=>[E.createElementVNode("a",{href:"javascript:void(0)",onClick:t[0]||(t[0]=(...m)=>r.handleLanguageSettingOpen&&r.handleLanguageSettingOpen(...m))},[t[5]||(t[5]=E.createTextVNode(" 语言 ")),E.createVNode(_,{type:"ios-arrow-down"})])]),_:1},8,["visible"])),[[O,r.onClickOutside]]),E.createVNode(v,{class:"gc_i18n_search",prefix:"ios-search",placeholder:"请输入搜索内容",modelValue:s.searchText,"onUpdate:modelValue":t[1]||(t[1]=m=>s.searchText=m),clearable:"",onOnEnter:r.inputSearch,onOnClear:r.inputSearch},null,8,["modelValue","onOnEnter","onOnClear"])])]),default:E.withCtx(()=>[E.createVNode(u,{name:"pageData",label:"当前页面"},{default:E.withCtx(()=>[s.loading?(E.openBlock(),E.createBlock(o,{key:0,class:"gc_i18n_spin"})):(E.openBlock(),E.createBlock(l,{key:1,border:"",height:380,columns:r.columns,data:s.data},null,8,["columns","data"]))]),_:1}),E.createVNode(u,{name:"data",label:"当前应用"},{default:E.withCtx(()=>[s.loading?(E.openBlock(),E.createBlock(o,{key:0,class:"gc_i18n_spin"})):(E.openBlock(),E.createBlock(l,{key:1,border:"",height:380,columns:r.columns,data:s.data},null,8,["columns","data"]))]),_:1}),n.login?(E.openBlock(),E.createBlock(u,{key:0,name:"loginData",label:"登录页面"},{default:E.withCtx(()=>[s.loading?(E.openBlock(),E.createBlock(o,{key:0,class:"gc_i18n_spin"})):(E.openBlock(),E.createBlock(l,{key:1,border:"",height:380,columns:r.columns,data:s.data},null,8,["columns","data"]))]),_:1})):E.createCommentVNode("",!0)]),_:1},8,["modelValue","onOnClick"]),E.createElementVNode("div",lo,[E.createElementVNode("div",io,[E.createVNode(k,{modelValue:r.firstResult,"onUpdate:modelValue":t[3]||(t[3]=m=>r.firstResult=m),total:s.page.totalRows,"page-size":10,simple:"","show-total":"",onOnChange:r.changePage},null,8,["modelValue","total","onOnChange"]),E.createElementVNode("div",null,[E.createElementVNode("span",null," 共 "+E.toDisplayString(s.page.totalRows)+" 项当前页数据 ",1)])]),E.createElementVNode("div",null,[E.createVNode(f,{style:{"margin-right":"10px"},onClick:r.closeModal},{default:E.withCtx(()=>t[6]||(t[6]=[E.createTextVNode("关闭")])),_:1},8,["onClick"]),E.createVNode(f,{type:"primary",onClick:r.saveData},{default:E.withCtx(()=>t[7]||(t[7]=[E.createTextVNode("保存")])),_:1},8,["onClick"])])])])):E.createCommentVNode("",!0)]),_:1},8,["modelValue","onOnCancel"])}const uo=so(ao,[["render",co],["__scopeId","data-v-a09c2040"]]);function wt(e){const t=[],n=/(?:\$t|_ctx\.\$t)\s*\(\s*(['"])([^'"]+?)\1/gs;if(e.template){let a;for(;(a=n.exec(e.template))!==null;)t.push(a[2])}if(e.render){const a=e.render.toString();let s;for(;(s=n.exec(a))!==null;)t.push(s[2])}if(e.setup){const a=e.setup.toString();let s;for(;(s=n.exec(a))!==null;)t.push(s[2])}if(e.methods)for(const a in e.methods){const s=e.methods[a].toString();let r;for(;(r=n.exec(s))!==null;)t.push(r[2])}if(e.components)for(const a in e.components){const s=e.components[a];t.push(...wt(s))}return[...new Set(t)]}function fo(e){return{all:e=e||new Map,on:function(t,n){var a=e.get(t);a?a.push(n):e.set(t,[n])},off:function(t,n){var a=e.get(t);a&&(n?a.splice(a.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var a=e.get(t);a&&a.slice().map(function(s){s(n)}),(a=e.get("*"))&&a.slice().map(function(s){s(t,n)})}}}const Ea=function(){return document.ontouchstart!==null?"click":"touchstart"},at="__vue_click_away__",pa=function(e,t,n){ha(e);let a=n.context,s=t.value,r=!1;setTimeout(function(){r=!0},0),e[at]=function(o){if((!e||!e.contains(o.target))&&s&&r&&typeof s=="function")return s.call(a,o)},document.addEventListener(Ea(),e[at],!1)},ha=function(e){document.removeEventListener(Ea(),e[at],!1),delete e[at]},_o=function(e,t,n){t.value!==t.oldValue&&pa(e,t,n)},mo={install:function(e){e.directive("click-away",go)}},go={mounted:pa,updated:_o,unmounted:ha};function Eo(e){const t={alg:"HS512"},n={orgCode:e},a=JSON.stringify(t),s=JSON.stringify(n);return La.jws.JWS.sign("HS512",a,s,"")}class st{constructor(t={}){const{router:n,appCode:a,messages:s,token:r,orgCode:o,loginRouteName:l,login:u,keyboard:_}=t;this.token=r||Eo(o),this.loadI18n=!0,this.appCode=a,this.router=n,this.locale=me.get("I18N_LANGUAGE")||navigator.language||"zh-CN",this.name="",this.messages=s||{},this.translationKeys=[],this.loginRouteName=l||"login",this.login=u,this.loginTranslationKeys=[],this.keyboard=_||"shift>t",this.baseUrl=t.dev?"https://test.ihotel.cn":"https://trans.ihotel.cn",this.initRouterGuards(),this.initI18n(t),ae.bind(this.keyboard,p=>{!this.configInstance&&this.name!=this.loginRouteName&&(this.configInstance=this.createModal(this.name),this.configInstance.openModal({name:this.name}))}),this.setupLanguageChangeListener()}setupLanguageChangeListener(){"onlanguagechange"in window&&window.addEventListener("languagechange",()=>{const t=navigator.language;t!==this.locale&&this.setLanguage(t)})}initRouterGuards(){st._routerGuardRegistered||(st._routerGuardRegistered=!0,this.router.beforeEach(async(t,n,a)=>{const{language:s,token:r}=t.query;this.configInstance&&this.configInstance.closeModal(),this.name=t.name,r&&this.setToken(r),this.loadI18n&&await this.setLanguage(s||this.locale),this.loadI18n=!1;const o=this.router.getRoutes().find(l=>l.name===this.loginRouteName||l.path===`/${this.loginRouteName}`);if(o){let l=o.components.default;if(typeof l=="function"&&l.toString().includes("import("))try{l=await l(),l=l.default}catch(_){console.error("加载异步组件时出错:",_),a();return}const u=wt(l);this.loginTranslationKeys=u}if(t.matched.length>0){const l=[];for(const u of t.matched){let _=u.components.default;if(typeof _=="function"&&_.toString().includes("import("))try{_=await _(),_=_.default}catch(p){console.error("加载异步组件时出错:",p),a();return}if(_){const p=wt(_);l.push(...p)}}this.translationKeys=l}a()}))}initI18n(t){this.i18n=Gr({locale:this.locale,globalInjection:!0,legacy:!1,silentTranslationWarn:!0,silentFallbackWarn:!0,missingWarn:!1,fallbackWarn:!1,...t});const n=this.i18n.global.t;globalThis.$t=this.i18n.global.t=(a,s)=>{var o,l,u;const r=(u=(l=(o=this.router)==null?void 0:o.currentRoute)==null?void 0:l.value)==null?void 0:u.name;if(r){const _=`${r}.${a}`,p=n(_);if(p!==_)return p;{const T=`common.${a}`,h=n(T);return h!==T?h:n(a,s)}}else return n(a,s)},globalThis.$deepScan=function(a){return a},globalThis.$changeLocale=this.changeLocale=this.i18n.global.changeLocale=async a=>{await this.setLanguage(a||this.locale)}}setToken(t){this.token=t}getLanguage(t){return me.get("I18N_TEST.zh-TW")}async getLanguages(t=!1){const n=me.get("I18N_LANGUAGES");if(n&&!t)return n;{const a=await da({baseUrl:this.baseUrl,appCode:this.appCode,token:this.token});if(a.data){const s=K.get(a.data,"retVal");return me.set("I18N_LANGUAGES",s),s}}}async setLanguage(t){return new Promise(async(n,a)=>{const s=await no({baseUrl:this.baseUrl,appCode:this.appCode,language:t||this.locale,token:this.token});if(s){const r=Zr(s),o=K.assign({},K.get(this.messages,t),r);this.i18n.global.setLocaleMessage(t,o)}this.locale=t,this.i18n.global.locale.value=t,me.set("I18N_LANGUAGE",t),n(!0)})}createModal(t){const n=fo();return n.on("closeModal",a=>{this.configInstance=null}),E.createApp(uo,{appCode:this.appCode,token:this.token,setLanguage:this.setLanguage.bind(this,this.locale),name:t||this.name,translationKeys:this.translationKeys,loginRouteName:this.loginRouteName,loginTranslationKeys:this.loginTranslationKeys,login:this.login,baseUrl:this.baseUrl,emitter:n}).use(ce).use(mo).mount(document.createElement("div"))}install(t,n={}){t.use(ce,{i18n:this.i18n}),t.use(this.i18n)}}return st});
21
+ */const gr="11.1.3";function Er(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(be().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(be().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(be().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(be().__INTLIFY_PROD_DEVTOOLS__=!1)}const K={UNEXPECTED_RETURN_TYPE:Os,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function te(e,...t){return ke(e,null,process.env.NODE_ENV!=="production"?{messages:pr,args:t}:void 0)}const pr={[K.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[K.INVALID_ARGUMENT]:"Invalid argument",[K.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[K.NOT_INSTALLED]:"Need to install with `app.use` function",[K.UNEXPECTED_ERROR]:"Unexpected error",[K.REQUIRED_VALUE]:"Required in value: {0}",[K.INVALID_VALUE]:"Invalid value",[K.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[K.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[K.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[K.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},It=ue("__translateVNode"),yt=ue("__datetimeParts"),Ct=ue("__numberParts"),Ie=ue("__enableEmitter"),xe=ue("__disableEmitter"),Bn=ue("__setPluralRules"),jn=ue("__injectWithOption"),St=ue("__dispose"),_e={FALLBACK_TO_ROOT:ws,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},hr={[_e.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[_e.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[_e.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[_e.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
22
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[_e.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function We(e,...t){return Xe(hr[e],...t)}function $e(e){if(!F(e)||se(e))return e;for(const t in e)if(le(e,t))if(!t.includes("."))F(e[t])&&$e(e[t]);else{const n=t.split("."),a=n.length-1;let s=e,r=!1;for(let o=0;o<a;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=W()),!F(s[n[o]])){process.env.NODE_ENV!=="production"&&pe(We(_e.IGNORE_OBJ_FLATTEN,{key:n[o]})),r=!0;break}s=s[n[o]]}if(r||(se(s)?En.includes(n[a])||delete e[t]:(s[n[a]]=e[t],delete e[t])),!se(s)){const o=s[n[a]];F(o)&&$e(o)}}return e}function At(e,t){const{messages:n,__i18n:a,messageResolver:s,flatJson:r}=t,o=M(n)?n:Y(a)?W():{[e]:W()};if(Y(a)&&a.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:u,resource:_}=l;u?(o[u]=o[u]||W(),Qe(_,o[u])):Qe(_,o)}else y(l)&&Qe(JSON.parse(l),o)}),s==null&&r)for(const l in o)le(o,l)&&$e(o[l]);return o}function Xn(e){return e.type}function Jn(e,t,n){let a=F(t.messages)?t.messages:W();"__i18nGlobal"in n&&(a=At(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const s=Object.keys(a);s.length&&s.forEach(r=>{e.mergeLocaleMessage(r,a[r])});{if(F(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(F(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function qn(e){return E.createVNode(E.Text,null,e,0)}const Qn="__INTLIFY_META__",Zn=()=>[],Nr=()=>!1;let zn=0;function ea(e){return(t,n,a,s)=>e(n,a,E.getCurrentInstance()||void 0,s)}const Tr=()=>{const e=E.getCurrentInstance();let t=null;return e&&(t=Xn(e)[Qn])?{[Qn]:t}:null};function kt(e={}){const{__root:t,__injectWithOption:n}=e,a=t===void 0,s=e.flatJson,r=oe?E.ref:E.shallowRef;let o=w(e.inheritLocale)?e.inheritLocale:!0;const l=r(t&&o?t.locale.value:y(e.locale)?e.locale:Ue),u=r(t&&o?t.fallbackLocale.value:y(e.fallbackLocale)||Y(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),_=r(At(l.value,e)),p=r(M(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),T=r(M(e.numberFormats)?e.numberFormats:{[l.value]:{}});let h=t?t.missingWarn:w(e.missingWarn)||Ae(e.missingWarn)?e.missingWarn:!0,A=t?t.fallbackWarn:w(e.fallbackWarn)||Ae(e.fallbackWarn)?e.fallbackWarn:!0,v=t?t.fallbackRoot:w(e.fallbackRoot)?e.fallbackRoot:!0,C=!!e.fallbackFormat,k=$(e.missing)?e.missing:null,f=$(e.missing)?ea(e.missing):null,g=$(e.postTranslation)?e.postTranslation:null,O=t?t.warnHtmlMessage:w(e.warnHtmlMessage)?e.warnHtmlMessage:!0,m=!!e.escapeParameter;const I=t?t.modifiers:M(e.modifiers)?e.modifiers:{};let S=e.pluralRules||t&&t.pluralRules,N;N=(()=>{a&&An(null);const d={version:gr,locale:l.value,fallbackLocale:u.value,messages:_.value,modifiers:I,pluralRules:S,missing:f===null?void 0:f,missingWarn:h,fallbackWarn:A,fallbackFormat:C,unresolving:!0,postTranslation:g===null?void 0:g,warnHtmlMessage:O,escapeParameter:m,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};d.datetimeFormats=p.value,d.numberFormats=T.value,d.__datetimeFormatters=M(N)?N.__datetimeFormatters:void 0,d.__numberFormatters=M(N)?N.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(d.__v_emitter=M(N)?N.__v_emitter:void 0);const b=Bs(d);return a&&An(b),b})(),Ve(N,l.value,u.value);function V(){return[l.value,u.value,_.value,p.value,T.value]}const q=E.computed({get:()=>l.value,set:d=>{N.locale=d,l.value=d}}),ie=E.computed({get:()=>u.value,set:d=>{N.fallbackLocale=d,u.value=d,Ve(N,l.value,d)}}),Q=E.computed(()=>_.value),Re=E.computed(()=>p.value),Ut=E.computed(()=>T.value);function Vt(){return $(g)?g:null}function xt(d){g=d,N.postTranslation=d}function Wt(){return k}function $t(d){d!==null&&(f=ea(d)),k=d,N.missing=f}function Gt(d,b){return d!=="translate"||!b.resolvedMessage}const Ee=(d,b,x,j,Ce,ot)=>{V();let Me;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(N.fallbackContext=t?Hs():void 0),Me=d(N)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(N.fallbackContext=void 0)}if(x!=="translate exists"&&X(Me)&&Me===et||x==="translate exists"&&!Me){const[Se,po]=b();if(process.env.NODE_ENV!=="production"&&t&&y(Se)&&Gt(x,po)&&(v&&(nt(A,Se)||Dn(h,Se))&&pe(We(_e.FALLBACK_TO_ROOT,{key:Se,type:x})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ta}=N;Ta&&v&&Ta.emit("fallback",{type:x,key:Se,to:"global",groupId:`${x}:${Se}`})}return t&&v?j(t):Ce(Se)}else{if(ot(Me))return Me;throw te(K.UNEXPECTED_RETURN_TYPE)}};function Ke(...d){return Ee(b=>Reflect.apply(Gn,null,[b,...d]),()=>bt(...d),"translate",b=>Reflect.apply(b.t,b,[...d]),b=>b,b=>y(b))}function Kt(...d){const[b,x,j]=d;if(j&&!F(j))throw te(K.INVALID_ARGUMENT);return Ke(b,x,J({resolvedMessage:!0},j||{}))}function Yt(...d){return Ee(b=>Reflect.apply(Mn,null,[b,...d]),()=>Tt(...d),"datetime format",b=>Reflect.apply(b.d,b,[...d]),()=>tt,b=>y(b))}function Ht(...d){return Ee(b=>Reflect.apply(Un,null,[b,...d]),()=>Lt(...d),"number format",b=>Reflect.apply(b.n,b,[...d]),()=>tt,b=>y(b))}function Bt(d){return d.map(b=>y(b)||X(b)||w(b)?qn(String(b)):b)}const jt={normalize:Bt,interpolate:d=>d,type:"vnode"};function rt(...d){return Ee(b=>{let x;const j=b;try{j.processor=jt,x=Reflect.apply(Gn,null,[j,...d])}finally{j.processor=null}return x},()=>bt(...d),"translate",b=>b[It](...d),b=>[qn(b)],b=>Y(b))}function Xt(...d){return Ee(b=>Reflect.apply(Un,null,[b,...d]),()=>Lt(...d),"number format",b=>b[Ct](...d),Zn,b=>y(b)||Y(b))}function Jt(...d){return Ee(b=>Reflect.apply(Mn,null,[b,...d]),()=>Tt(...d),"datetime format",b=>b[yt](...d),Zn,b=>y(b)||Y(b))}function qt(d){S=d,N.pluralRules=S}function Qt(d,b){return Ee(()=>{if(!d)return!1;const x=y(b)?b:l.value,j=ye(x),Ce=N.messageResolver(j,d);return se(Ce)||re(Ce)||y(Ce)},()=>[d],"translate exists",x=>Reflect.apply(x.te,x,[d,b]),Nr,x=>w(x))}function Ye(d){let b=null;const x=Nn(N,u.value,l.value);for(let j=0;j<x.length;j++){const Ce=_.value[x[j]]||{},ot=N.messageResolver(Ce,d);if(ot!=null){b=ot;break}}return b}function He(d){const b=Ye(d);return b??(t?t.tm(d)||{}:{})}function ye(d){return _.value[d]||{}}function Be(d,b){if(s){const x={[d]:b};for(const j in x)le(x,j)&&$e(x[j]);b=x[d]}_.value[d]=b,N.messages=_.value}function Zt(d,b){_.value[d]=_.value[d]||{};const x={[d]:b};if(s)for(const j in x)le(x,j)&&$e(x[j]);b=x[d],Qe(b,_.value[d]),N.messages=_.value}function i(d){return p.value[d]||{}}function c(d,b){p.value[d]=b,N.datetimeFormats=p.value,wn(N,d,b)}function L(d,b){p.value[d]=J(p.value[d]||{},b),N.datetimeFormats=p.value,wn(N,d,b)}function D(d){return T.value[d]||{}}function H(d,b){T.value[d]=b,N.numberFormats=T.value,xn(N,d,b)}function B(d,b){T.value[d]=J(T.value[d]||{},b),N.numberFormats=T.value,xn(N,d,b)}zn++,t&&oe&&(E.watch(t.locale,d=>{o&&(l.value=d,N.locale=d,Ve(N,l.value,u.value))}),E.watch(t.fallbackLocale,d=>{o&&(u.value=d,N.fallbackLocale=d,Ve(N,l.value,u.value))}));const U={id:zn,locale:q,fallbackLocale:ie,get inheritLocale(){return o},set inheritLocale(d){o=d,d&&t&&(l.value=t.locale.value,u.value=t.fallbackLocale.value,Ve(N,l.value,u.value))},get availableLocales(){return Object.keys(_.value).sort()},messages:Q,get modifiers(){return I},get pluralRules(){return S||{}},get isGlobal(){return a},get missingWarn(){return h},set missingWarn(d){h=d,N.missingWarn=h},get fallbackWarn(){return A},set fallbackWarn(d){A=d,N.fallbackWarn=A},get fallbackRoot(){return v},set fallbackRoot(d){v=d},get fallbackFormat(){return C},set fallbackFormat(d){C=d,N.fallbackFormat=C},get warnHtmlMessage(){return O},set warnHtmlMessage(d){O=d,N.warnHtmlMessage=d},get escapeParameter(){return m},set escapeParameter(d){m=d,N.escapeParameter=d},t:Ke,getLocaleMessage:ye,setLocaleMessage:Be,mergeLocaleMessage:Zt,getPostTranslationHandler:Vt,setPostTranslationHandler:xt,getMissingHandler:Wt,setMissingHandler:$t,[Bn]:qt};return U.datetimeFormats=Re,U.numberFormats=Ut,U.rt=Kt,U.te=Qt,U.tm=He,U.d=Yt,U.n=Ht,U.getDateTimeFormat=i,U.setDateTimeFormat=c,U.mergeDateTimeFormat=L,U.getNumberFormat=D,U.setNumberFormat=H,U.mergeNumberFormat=B,U[jn]=n,U[It]=rt,U[yt]=Jt,U[Ct]=Xt,process.env.NODE_ENV!=="production"&&(U[Ie]=d=>{N.__v_emitter=d},U[xe]=()=>{N.__v_emitter=void 0}),U}const ta="vue-i18n: composer properties",Dt={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Lr={"vue-i18n-resource-inspector":"Search for scopes ..."},br={"vue-i18n-timeline":16764185};let vt;async function Or(e,t){return new Promise((n,a)=>{try{dr({id:"vue-devtools-plugin-vue-i18n",label:Dt["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[ta],app:e},s=>{vt=s,s.on.visitComponentTree(({componentInstance:o,treeNode:l})=>{Ir(o,l,t)}),s.on.inspectComponent(({componentInstance:o,instanceData:l})=>{o.vnode.el&&o.vnode.el.__VUE_I18N__&&l&&(t.mode==="legacy"?o.vnode.el.__VUE_I18N__!==t.global.__composer&&aa(l,o.vnode.el.__VUE_I18N__):aa(l,o.vnode.el.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:Dt["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Lr["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&kr(o,t)});const r=new Map;s.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),vr(o,t),o.nodeId==="global"){if(!r.has(o.app)){const[l]=await s.getComponentInstances(o.app);r.set(o.app,l)}s.highlightElement(r.get(o.app))}else{const l=Dr(o.nodeId,t);l&&s.highlightElement(l)}}),s.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&Rr(o,t)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:Dt["vue-i18n-timeline"],color:br["vue-i18n-timeline"]}),n(!0)})}catch(s){console.error(s),a(!1)}})}function na(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Ir(e,t,n){const a=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==a){const s={label:`i18n (${na(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(s)}}function aa(e,t){const n=ta;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Pt(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Pt(e){const t={};return Object.keys(e).forEach(n=>{const a=e[n];$(a)&&"source"in a?t[n]=Ar(a):se(a)&&a.loc&&a.loc.source?t[n]=a.loc.source:F(a)?t[n]=Pt(a):t[n]=a}),t}const yr={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Cr(e){return e.replace(/[<>"&]/g,Sr)}function Sr(e){return yr[e]||e}function Ar(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Cr(e.source)}")`:"(?)"}`}}}function kr(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[a,s]of t.__instances){const r=t.mode==="composition"?s:s.__composer;n!==r&&e.rootNodes.push({id:r.id.toString(),label:`${na(a)} Scope`})}}function Dr(e,t){let n=null;if(e!=="global"){for(const[a,s]of t.__instances.entries())if(s.id.toString()===e){n=a;break}}return n}function sa(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(a=>a.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function vr(e,t){const n=sa(e.nodeId,t);return n&&(e.state=Pr(n)),null}function Pr(e){const t={},n="Locale related info",a=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=a;const s="Locale messages info",r=[{type:s,key:"messages",editable:!1,value:Pt(e.messages.value)}];t[s]=r;{const o="Datetime formats info",l=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=l;const u="Datetime formats info",_=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=_}return t}function Ge(e,t){if(vt){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),vt.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function Rr(e,t){const n=sa(e.nodeId,t);if(n){const[a]=e.path;a==="locale"&&y(e.state.value)?n.locale.value=e.state.value:a==="fallbackLocale"&&(y(e.state.value)||Y(e.state.value)||F(e.state.value))?n.fallbackLocale.value=e.state.value:a==="inheritLocale"&&w(e.state.value)&&(n.inheritLocale=e.state.value)}}function Mr(e){const t=y(e.locale)?e.locale:Ue,n=y(e.fallbackLocale)||Y(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,a=$(e.missing)?e.missing:void 0,s=w(e.silentTranslationWarn)||Ae(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=w(e.silentFallbackWarn)||Ae(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=w(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,u=M(e.modifiers)?e.modifiers:{},_=e.pluralizationRules,p=$(e.postTranslation)?e.postTranslation:void 0,T=y(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,A=w(e.sync)?e.sync:!0;let v=e.messages;if(M(e.sharedMessages)){const I=e.sharedMessages;v=Object.keys(I).reduce((N,R)=>{const V=N[R]||(N[R]={});return J(V,I[R]),N},v||{})}const{__i18n:C,__root:k,__injectWithOption:f}=e,g=e.datetimeFormats,O=e.numberFormats,m=e.flatJson;return{locale:t,fallbackLocale:n,messages:v,flatJson:m,datetimeFormats:g,numberFormats:O,missing:a,missingWarn:s,fallbackWarn:r,fallbackRoot:o,fallbackFormat:l,modifiers:u,pluralRules:_,postTranslation:p,warnHtmlMessage:T,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:A,__i18n:C,__root:k,__injectWithOption:f}}function Rt(e={}){const t=kt(Mr(e)),{__extender:n}=e,a={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(s){t.setMissingHandler(s)},get silentTranslationWarn(){return w(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=w(s)?!s:s},get silentFallbackWarn(){return w(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=w(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){return Reflect.apply(t.t,t,[...s])},rt(...s){return Reflect.apply(t.rt,t,[...s])},te(s,r){return t.te(s,r)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,r){t.setLocaleMessage(s,r)},mergeLocaleMessage(s,r){t.mergeLocaleMessage(s,r)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,r){t.setDateTimeFormat(s,r)},mergeDateTimeFormat(s,r){t.mergeDateTimeFormat(s,r)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,r){t.setNumberFormat(s,r)},mergeNumberFormat(s,r){t.mergeNumberFormat(s,r)}};return a.__extender=n,process.env.NODE_ENV!=="production"&&(a.__enableEmitter=s=>{const r=t;r[Ie]&&r[Ie](s)},a.__disableEmitter=()=>{const s=t;s[xe]&&s[xe]()}),a}function Fr(e,t,n){return{beforeCreate(){const a=E.getCurrentInstance();if(!a)throw te(K.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const r=s.i18n;if(s.__i18n&&(r.__i18n=s.__i18n),r.__root=t,this===this.$root)this.$i18n=ra(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=Rt(r);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=ra(e,s);else{this.$i18n=Rt({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&Jn(t,s,s),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$te=(r,o)=>this.$i18n.te(r,o),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(a,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const a=this.$i18n;this.$el.__VUE_I18N__=a.__composer;const s=this.__v_emitter=ut();a.__enableEmitter&&a.__enableEmitter(s),s.on("*",Ge)}},unmounted(){const a=E.getCurrentInstance();if(!a)throw te(K.UNEXPECTED_ERROR);const s=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Ge),delete this.__v_emitter),this.$i18n&&(s.__disableEmitter&&s.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(a),delete this.$i18n}}}function ra(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Bn](t.pluralizationRules||e.pluralizationRules);const n=At(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(a=>e.mergeLocaleMessage(a,n[a])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a])),t.numberFormats&&Object.keys(t.numberFormats).forEach(a=>e.mergeNumberFormat(a,t.numberFormats[a])),e}const Mt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function wr({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,s)=>[...a,...s.type===E.Fragment?s.children:[s]],[]):t.reduce((n,a)=>{const s=e[a];return s&&(n[a]=s()),n},W())}function oa(){return E.Fragment}const la=E.defineComponent({name:"i18n-t",props:J({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>X(e)||!isNaN(e)}},Mt),setup(e,t){const{slots:n,attrs:a}=t,s=e.i18n||Ft({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(T=>T!=="_"),o=W();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=y(e.plural)?+e.plural:e.plural);const l=wr(t,r),u=s[It](e.keypath,l,o),_=J(W(),a),p=y(e.tag)||F(e.tag)?e.tag:oa();return E.h(p,_,u)}}});function Ur(e){return Y(e)&&!y(e[0])}function ia(e,t,n,a){const{slots:s,attrs:r}=t;return()=>{const o={part:!0};let l=W();e.locale&&(o.locale=e.locale),y(e.format)?o.key=e.format:F(e.format)&&(y(e.format.key)&&(o.key=e.format.key),l=Object.keys(e.format).reduce((h,A)=>n.includes(A)?J(W(),h,{[A]:e.format[A]}):h,W()));const u=a(e.value,o,l);let _=[o.key];Y(u)?_=u.map((h,A)=>{const v=s[h.type],C=v?v({[h.type]:h.value,index:A,parts:u}):[h.value];return Ur(C)&&(C[0].key=`${h.type}-${A}`),C}):y(u)&&(_=[u]);const p=J(W(),r),T=y(e.tag)||F(e.tag)?e.tag:oa();return E.h(T,p,_)}}const ca=E.defineComponent({name:"i18n-n",props:J({value:{type:Number,required:!0},format:{type:[String,Object]}},Mt),setup(e,t){const n=e.i18n||Ft({useScope:e.scope,__useComponent:!0});return ia(e,t,Vn,(...a)=>n[Ct](...a))}});function Vr(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return a!=null?a.__composer:e.global.__composer}}function xr(e){const t=o=>{process.env.NODE_ENV!=="production"&&ct(We(_e.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:l,value:u}=o;if(!l||!l.$)throw te(K.UNEXPECTED_ERROR);const _=Vr(e,l.$),p=ua(u);return[Reflect.apply(_.t,_,[...fa(p)]),_]};return{created:(o,l)=>{const[u,_]=t(l);oe&&e.global===_&&(o.__i18nWatcher=E.watch(_.locale,()=>{l.instance&&l.instance.$forceUpdate()})),o.__composer=_,o.textContent=u},unmounted:o=>{oe&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:l})=>{if(o.__composer){const u=o.__composer,_=ua(l);o.textContent=Reflect.apply(u.t,u,[...fa(_)])}},getSSRProps:o=>{const[l]=t(o);return{textContent:l}}}}function ua(e){if(y(e))return{path:e};if(M(e)){if(!("path"in e))throw te(K.REQUIRED_VALUE,"path");return e}else throw te(K.INVALID_VALUE)}function fa(e){const{path:t,locale:n,args:a,choice:s,plural:r}=e,o={},l=a||{};return y(n)&&(o.locale=n),X(s)&&(o.plural=s),X(r)&&(o.plural=r),[t,l,o]}function Wr(e,t,...n){const a=M(n[0])?n[0]:{};(w(a.globalInstall)?a.globalInstall:!0)&&([la.name,"I18nT"].forEach(r=>e.component(r,la)),[ca.name,"I18nN"].forEach(r=>e.component(r,ca)),[ma.name,"I18nD"].forEach(r=>e.component(r,ma))),e.directive("t",xr(t))}const $r=ue("global-vue-i18n");function Gr(e={}){const t=__VUE_I18N_LEGACY_API__&&w(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&ct(We(_e.DEPRECATE_LEGACY_MODE));const n=w(e.globalInjection)?e.globalInjection:!0,a=new Map,[s,r]=Kr(e,t),o=ue(process.env.NODE_ENV!=="production"?"vue-i18n":"");function l(T){return a.get(T)||null}function u(T,h){a.set(T,h)}function _(T){a.delete(T)}const p={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(T,...h){if(process.env.NODE_ENV!=="production"&&(T.__VUE_I18N__=p),T.__VUE_I18N_SYMBOL__=o,T.provide(T.__VUE_I18N_SYMBOL__,p),M(h[0])){const C=h[0];p.__composerExtend=C.__composerExtend,p.__vueI18nExtend=C.__vueI18nExtend}let A=null;!t&&n&&(A=Qr(T,p.global)),__VUE_I18N_FULL_INSTALL__&&Wr(T,p,...h),__VUE_I18N_LEGACY_API__&&t&&T.mixin(Fr(r,r.__composer,p));const v=T.unmount;if(T.unmount=()=>{A&&A(),p.dispose(),v()},process.env.NODE_ENV!=="production"){if(!await Or(T,p))throw te(K.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const k=ut();if(t){const f=r;f.__enableEmitter&&f.__enableEmitter(k)}else{const f=r;f[Ie]&&f[Ie](k)}k.on("*",Ge)}},get global(){return r},dispose(){s.stop()},__instances:a,__getInstance:l,__setInstance:u,__deleteInstance:_};return p}function Ft(e={}){const t=E.getCurrentInstance();if(t==null)throw te(K.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw te(K.NOT_INSTALLED);const n=Yr(t),a=Br(n),s=Xn(t),r=Hr(e,s);if(r==="global")return Jn(a,e,s),a;if(r==="parent"){let u=jr(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&pe(We(_e.NOT_FOUND_PARENT_SCOPE)),u=a),u}const o=n;let l=o.__getInstance(t);if(l==null){const u=J({},e);"__i18n"in s&&(u.__i18n=s.__i18n),a&&(u.__root=a),l=kt(u),o.__composerExtend&&(l[St]=o.__composerExtend(l)),Jr(o,t,l),o.__setInstance(t,l)}return l}function Kr(e,t){const n=E.effectScope(),a=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Rt(e)):n.run(()=>kt(e));if(a==null)throw te(K.UNEXPECTED_ERROR);return[n,a]}function Yr(e){const t=E.inject(e.isCE?$r:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw te(e.isCE?K.NOT_INSTALLED_WITH_PROVIDE:K.UNEXPECTED_ERROR);return t}function Hr(e,t){return Je(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Br(e){return e.mode==="composition"?e.global:e.global.__composer}function jr(e,t,n=!1){let a=null;const s=t.root;let r=Xr(t,n);for(;r!=null;){const o=e;if(e.mode==="composition")a=o.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const l=o.__getInstance(r);l!=null&&(a=l.__composer,n&&a&&!a[jn]&&(a=null))}if(a!=null||s===r)break;r=r.parent}return a}function Xr(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Jr(e,t,n){let a=null;E.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,a=ut();const s=n;s[Ie]&&s[Ie](a),a.on("*",Ge)}},t),E.onUnmounted(()=>{const s=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(a&&a.off("*",Ge),s[xe]&&s[xe](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=s[St];r&&(r(),delete s[St])},t)}const qr=["locale","fallbackLocale","availableLocales"],_a=["t","rt","d","n","tm","te"];function Qr(e,t){const n=Object.create(null);return qr.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r)throw te(K.UNEXPECTED_ERROR);const o=E.isRef(r.value)?{get(){return r.value.value},set(l){r.value.value=l}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,_a.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r||!r.value)throw te(K.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,r)}),()=>{delete e.config.globalProperties.$i18n,_a.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const ma=E.defineComponent({name:"i18n-d",props:J({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Mt),setup(e,t){const n=e.i18n||Ft({useScope:e.scope,__useComponent:!0});return ia(e,t,Fn,(...a)=>n[yt](...a))}});if(Er(),Ws(hs),$s(Fs),Gs(Nn),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=be();e.__INTLIFY__=!0,Ns(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Zr=e=>{const t={};for(const n of e)t[n.key]=n.value;return t},zr=(e,t)=>(t.forEach(n=>{const a=G.find(e,{key:n.key});a?G.merge(a,n):e.push(n)}),e),da=async({baseUrl:e,token:t})=>je.get(e+"/i18n-web/sysoption/getsupportedlangs",{headers:{Authorization:t}}),ga=async({appCode:e,language:t="zh-CN",page:n,lastPullDate:a,baseUrl:s,token:r})=>new Promise(async(o,l)=>{const u=s+"/i18n-web/kv_translate/kv_translates",_=a?u+"?lastPullDate="+a:u,p=await je({url:_,method:"GET",headers:{appCode:e,page:n,language:t,Authorization:r}});p.data&&p.data.result==0?o(p.data.retVal):o(p)}),eo=async({data:e,token:t,baseUrl:n})=>je({url:n+"/i18n-web/kv_translate/userDicts",method:"POST",headers:{Authorization:t},data:e}),to=async({data:e,token:t,baseUrl:n})=>je({url:n+"/i18n-web/kv_translate/batch",method:"POST",data:e,headers:{Authorization:t}}),no=async({baseUrl:e,appCode:t,language:n="zh-CN",token:a})=>new Promise(async(s,r)=>{const o=me.namespace(`I18N_${G.toUpper(t)}`),l={baseUrl:e,appCode:t,language:n,token:a},u=o.get(n);if(!u||!u.lastPullDate){const _=await ga(l);_&&(o.set(n,_),s(_.translatesDTOs))}else{const{lastPullDate:_}=u,p=await ga({...l,lastPullDate:_});if(p){const T=G.get(u,"translatesDTOs");if(G.isEmpty(p.translatesDTOs))s(T);else{const h=zr(T,p.translatesDTOs),A={lastPullDate:p.lastPullDate,translatesDTOs:h};me.namespace(`I18N_${G.toUpper(t)}`).set(n,A,":"),s(h)}}}}),ao={data(){return{LanguageSettingVisible:!1,isModalVisible:!1,loading:!1,searchText:"",name:"",type:"pageData",languages:[],mySaveData:[],pageData:[],pageDataShow:[],page:{pageSize:10,firstResult:0},data:[]}},computed:{firstResult(){return this.page.firstResult/this.page.pageSize+1},columns(){let e=[{title:"关键词",fixed:"left",width:100,key:"dictKey"}];return G.map(this.languages,t=>{const n=t.code;if(t.checked)return e.push({title:t.name,key:n,render:(a,{row:s,index:r})=>{const o=s[n],{localhost:l}=s;return l?null:E.createVNode(E.resolveComponent("Input"),{modelValue:o,onOnChange:u=>{const _=u.target.value,{dictKey:p}=s,T=G.findIndex(this.mySaveData,{dictKey:p});T>-1?this.mySaveData[T][n]=_:this.mySaveData.push({...s,[n]:_,page:this.type==="loginData"?this.loginRouteName:this.type==="pageData"?this.name:"common"})}},null)}})}),e}},props:{appCode:String,setLanguage:Function,token:String,baseUrl:String,translationKeys:Array,loginRouteName:String,loginTranslationKeys:Array,login:{type:Boolean,default:!0},emitter:Object},methods:{saveLanguageSetting(e){const t=G.map(G.filter(this.languages,n=>n.checked),"code");me.set("I18N_LANGUAGE_SETTING",t)},handleLanguageSettingOpen(){this.LanguageSettingVisible=!this.LanguageSettingVisible},onClickOutside(){this.LanguageSettingVisible=!1},inputSearch(){this.type==="pageData"?this.getPageData():this.search()},closeModal(){this.searchText="",this.type="pageData",this.isModalVisible=!1,this.emitter.emit("closeModal")},openModal({name:e}){this.isModalVisible||(this.isModalVisible=!0,this.name=e,this.init())},findShallowStringDiff(e){return G.find(e,["_isEdit",!0])},async saveData({msg:e="保存成功"},t=!0){const n=[];if(G.map(this.mySaveData,s=>{G.map(this.languages,r=>{n.push({key:s.dictKey,page:s.page,lang:r.code,value:s[r.code]})})}),G.isEmpty(n)){ce.Message.error({content:"没有需要保存的数据"});return}const a=await to({baseUrl:this.baseUrl,data:{appCode:this.appCode,isLocal:"F",data:n},token:this.token});a&&a.data.result===0?(ce.Message.success({content:e||a.data.msg}),this.setLanguage(),this.initialData=G.cloneDeep(this.data.datas),t&&this.closeModal(),this.mySaveData=[]):ce.Message.error({content:a.data.msg||"保存失败"})},async saveNoEqual(){G.isEmpty(this.mySaveData)||this.saveData({msg:"已为您自动保存"},!1)},changePage(e){this.saveNoEqual(),this.type==="pageData"?this.getPageData({firstResult:(e-1)*this.page.pageSize}):this.search({firstResult:(e-1)*this.page.pageSize})},async getPageData(e){this.search({...e,commaSeparatedKeys:this.translationKeys.toString()},"pageData")},async getLoginData(e){this.search({...e,page:this.loginRouteName,commaSeparatedKeys:this.loginTranslationKeys.toString()},"pageData")},async search(e,t){this.loading=!0;const n=await eo({baseUrl:this.baseUrl,data:{appCode:this.appCode,searchBlur:this.searchText,commaSeparatedLangs:G.map(this.languages,"code").toString(),page:t==="loginData"?this.loginRouteName:t==="pageData"?this.name:"common",pageSize:10,...e},token:this.token});if(n){this.initialData=G.cloneDeep(n.data.retVal.datas);let a=n.data.retVal.datas;this.data=G.cloneDeep(a),this.page={firstResult:n.data.retVal.firstResult,pageSize:n.data.retVal.pageSize,totalRows:n.data.retVal.totalRows}}this.loading=!1},changeTab(e){this.type=e,e==="data"?this.search():e==="pageData"?this.getPageData():e==="loginData"&&this.getLoginData()},async init(){let e=me.get("I18N_LANGUAGE_SETTING");const t=await da({token:this.token,baseUrl:this.baseUrl});if(t&&t.data.result==0){let n=t.data.retVal;G.isEmpty(e)&&(e=["zh-CN","en-US","zh-TW"]),G.map(n,a=>{G.includes(e,a.code)&&(a.checked=!0)}),this.languages=n,this.getPageData()}else ce.Message.error("获取语言失败,出错了")}}},so=(e,t)=>{const n=e.__vccOpts||e;for(const[a,s]of t)n[a]=s;return n},ro={key:0},oo={class:"extra"},lo={class:"gc_i18n_page"},io={style:{display:"flex"}};function co(e,t,n,a,s,r){const o=E.resolveComponent("Spin"),l=E.resolveComponent("Table"),u=E.resolveComponent("TabPane"),_=E.resolveComponent("Icon"),p=E.resolveComponent("Checkbox"),T=E.resolveComponent("DropdownItem"),h=E.resolveComponent("DropdownMenu"),A=E.resolveComponent("Dropdown"),v=E.resolveComponent("Input"),C=E.resolveComponent("Tabs"),k=E.resolveComponent("Page"),f=E.resolveComponent("Button"),g=E.resolveComponent("Modal"),O=E.resolveDirective("click-away");return E.openBlock(),E.createBlock(g,{modelValue:s.isModalVisible,"onUpdate:modelValue":t[4]||(t[4]=m=>s.isModalVisible=m),"mask-closable":!1,width:70,title:"多语言管理中心","footer-hide":"",onOnCancel:r.closeModal},{default:E.withCtx(()=>[s.isModalVisible?(E.openBlock(),E.createElementBlock("div",ro,[E.createVNode(C,{modelValue:s.type,"onUpdate:modelValue":t[2]||(t[2]=m=>s.type=m),type:"card",class:"gc_i18n_tabs",onOnClick:r.changeTab},{extra:E.withCtx(()=>[E.createElementVNode("div",oo,[E.withDirectives((E.openBlock(),E.createBlock(A,{style:{width:"80px"},transfer:"",trigger:"custom",placement:"bottom-start",visible:s.LanguageSettingVisible},{list:E.withCtx(()=>[E.createVNode(h,null,{default:E.withCtx(()=>[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(s.languages,m=>(E.openBlock(),E.createBlock(T,{key:m.code},{default:E.withCtx(()=>[E.createVNode(p,{modelValue:m.checked,"onUpdate:modelValue":I=>m.checked=I,onOnChange:r.saveLanguageSetting},{default:E.withCtx(()=>[E.createElementVNode("span",null,E.toDisplayString(m.name),1)]),_:2},1032,["modelValue","onUpdate:modelValue","onOnChange"])]),_:2},1024))),128))]),_:1})]),default:E.withCtx(()=>[E.createElementVNode("a",{href:"javascript:void(0)",onClick:t[0]||(t[0]=(...m)=>r.handleLanguageSettingOpen&&r.handleLanguageSettingOpen(...m))},[t[5]||(t[5]=E.createTextVNode(" 语言 ")),E.createVNode(_,{type:"ios-arrow-down"})])]),_:1},8,["visible"])),[[O,r.onClickOutside]]),E.createVNode(v,{class:"gc_i18n_search",prefix:"ios-search",placeholder:"请输入搜索内容",modelValue:s.searchText,"onUpdate:modelValue":t[1]||(t[1]=m=>s.searchText=m),clearable:"",onOnEnter:r.inputSearch,onOnClear:r.inputSearch},null,8,["modelValue","onOnEnter","onOnClear"])])]),default:E.withCtx(()=>[E.createVNode(u,{name:"pageData",label:"当前页面"},{default:E.withCtx(()=>[s.loading?(E.openBlock(),E.createBlock(o,{key:0,class:"gc_i18n_spin"})):(E.openBlock(),E.createBlock(l,{key:1,border:"",height:380,columns:r.columns,data:s.data},null,8,["columns","data"]))]),_:1}),E.createVNode(u,{name:"data",label:"当前应用"},{default:E.withCtx(()=>[s.loading?(E.openBlock(),E.createBlock(o,{key:0,class:"gc_i18n_spin"})):(E.openBlock(),E.createBlock(l,{key:1,border:"",height:380,columns:r.columns,data:s.data},null,8,["columns","data"]))]),_:1}),n.login?(E.openBlock(),E.createBlock(u,{key:0,name:"loginData",label:"登录页面"},{default:E.withCtx(()=>[s.loading?(E.openBlock(),E.createBlock(o,{key:0,class:"gc_i18n_spin"})):(E.openBlock(),E.createBlock(l,{key:1,border:"",height:380,columns:r.columns,data:s.data},null,8,["columns","data"]))]),_:1})):E.createCommentVNode("",!0)]),_:1},8,["modelValue","onOnClick"]),E.createElementVNode("div",lo,[E.createElementVNode("div",io,[E.createVNode(k,{modelValue:r.firstResult,"onUpdate:modelValue":t[3]||(t[3]=m=>r.firstResult=m),total:s.page.totalRows,"page-size":10,simple:"","show-total":"",onOnChange:r.changePage},null,8,["modelValue","total","onOnChange"]),E.createElementVNode("div",null,[E.createElementVNode("span",null," 共 "+E.toDisplayString(s.page.totalRows)+" 项当前页数据 ",1)])]),E.createElementVNode("div",null,[E.createVNode(f,{style:{"margin-right":"10px"},onClick:r.closeModal},{default:E.withCtx(()=>t[6]||(t[6]=[E.createTextVNode("关闭")])),_:1},8,["onClick"]),E.createVNode(f,{type:"primary",onClick:r.saveData},{default:E.withCtx(()=>t[7]||(t[7]=[E.createTextVNode("保存")])),_:1},8,["onClick"])])])])):E.createCommentVNode("",!0)]),_:1},8,["modelValue","onOnCancel"])}const uo=so(ao,[["render",co],["__scopeId","data-v-04b847f9"]]);function wt(e){const t=[],n=/(?:\$t|_ctx\.\$t)\s*\(\s*(['"])([^'"]+?)\1/gs;if(e.template){let a;for(;(a=n.exec(e.template))!==null;)t.push(a[2])}if(e.render){const a=e.render.toString();let s;for(;(s=n.exec(a))!==null;)t.push(s[2])}if(e.setup){const a=e.setup.toString();let s;for(;(s=n.exec(a))!==null;)t.push(s[2])}if(e.methods)for(const a in e.methods){const s=e.methods[a].toString();let r;for(;(r=n.exec(s))!==null;)t.push(r[2])}if(e.components)for(const a in e.components){const s=e.components[a];t.push(...wt(s))}return[...new Set(t)]}function fo(e){return{all:e=e||new Map,on:function(t,n){var a=e.get(t);a?a.push(n):e.set(t,[n])},off:function(t,n){var a=e.get(t);a&&(n?a.splice(a.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var a=e.get(t);a&&a.slice().map(function(s){s(n)}),(a=e.get("*"))&&a.slice().map(function(s){s(t,n)})}}}const Ea=function(){return document.ontouchstart!==null?"click":"touchstart"},at="__vue_click_away__",pa=function(e,t,n){ha(e);let a=n.context,s=t.value,r=!1;setTimeout(function(){r=!0},0),e[at]=function(o){if((!e||!e.contains(o.target))&&s&&r&&typeof s=="function")return s.call(a,o)},document.addEventListener(Ea(),e[at],!1)},ha=function(e){document.removeEventListener(Ea(),e[at],!1),delete e[at]},_o=function(e,t,n){t.value!==t.oldValue&&pa(e,t,n)},mo={install:function(e){e.directive("click-away",go)}},go={mounted:pa,updated:_o,unmounted:ha};function Eo(e){const t={alg:"HS512"},n={orgCode:e},a=JSON.stringify(t),s=JSON.stringify(n);return La.jws.JWS.sign("HS512",a,s,"")}class st{constructor(t={}){const{router:n,appCode:a,messages:s,token:r,orgCode:o,loginRouteName:l,login:u,keyboard:_}=t;this.token=r||Eo(o),this.loadI18n=!0,this.appCode=a,this.router=n,this.locale=me.get("I18N_LANGUAGE")||navigator.language||"zh-CN",this.name="",this.messages=s||{},this.translationKeys=[],this.loginRouteName=l||"login",this.login=u,this.loginTranslationKeys=[],this.keyboard=_||"shift>t",this.baseUrl=t.dev?"https://test.ihotel.cn":"https://trans.ihotel.cn",this.initRouterGuards(),this.initI18n(t),ae.bind(this.keyboard,p=>{!this.configInstance&&this.name!=this.loginRouteName&&(this.configInstance=this.createModal(this.name),this.configInstance.openModal({name:this.name}))}),this.setupLanguageChangeListener()}setupLanguageChangeListener(){"onlanguagechange"in window&&window.addEventListener("languagechange",()=>{const t=navigator.language;t!==this.locale&&this.setLanguage(t)})}initRouterGuards(){st._routerGuardRegistered||(st._routerGuardRegistered=!0,this.router.beforeEach(async(t,n,a)=>{const{language:s,token:r}=t.query;this.configInstance&&this.configInstance.closeModal(),this.name=t.name,r&&this.setToken(r),this.loadI18n&&await this.setLanguage(s||this.locale),this.loadI18n=!1;const o=this.router.getRoutes().find(l=>l.name===this.loginRouteName||l.path===`/${this.loginRouteName}`);if(o){let l=o.components.default;if(typeof l=="function"&&l.toString().includes("import("))try{l=await l(),l=l.default}catch(_){console.error("加载异步组件时出错:",_),a();return}const u=wt(l);this.loginTranslationKeys=u}if(t.matched.length>0){const l=[];for(const u of t.matched){let _=u.components.default;if(typeof _=="function"&&_.toString().includes("import("))try{_=await _(),_=_.default}catch(p){console.error("加载异步组件时出错:",p),a();return}if(_){const p=wt(_);l.push(...p)}}this.translationKeys=l}a()}))}initI18n(t){this.i18n=Gr({locale:this.locale,globalInjection:!0,legacy:!1,silentTranslationWarn:!0,silentFallbackWarn:!0,missingWarn:!1,fallbackWarn:!1,...t});const n=this.i18n.global.t;globalThis.$t=this.i18n.global.t=(a,s)=>{var o,l,u;const r=(u=(l=(o=this.router)==null?void 0:o.currentRoute)==null?void 0:l.value)==null?void 0:u.name;if(r){const _=`${r}.${a}`,p=n(_);if(p!==_)return p;{const T=`common.${a}`,h=n(T);return h!==T?h:n(a,s)}}else return n(a,s)},globalThis.$deepScan=function(a){return a},globalThis.$clearI18n=()=>{me.namespace(`I18N_${G.toUpper(this.appCode)}`).clearAll()},globalThis.$changeLocale=this.changeLocale=this.i18n.global.changeLocale=async a=>{await this.setLanguage(a||this.locale)}}setToken(t){this.token=t}async getLanguages(t=!1){const n=me.get("I18N_LANGUAGES");if(n&&!t)return n;{const a=await da({baseUrl:this.baseUrl,appCode:this.appCode,token:this.token});if(a.data){const s=G.get(a.data,"retVal");return me.set("I18N_LANGUAGES",s),s}}}async setLanguage(t){return new Promise(async(n,a)=>{const s=await no({baseUrl:this.baseUrl,appCode:this.appCode,language:t||this.locale,token:this.token});if(s){const r=Zr(s),o=G.assign({},G.get(this.messages,t),r);this.i18n.global.setLocaleMessage(t,o)}this.locale=t,this.i18n.global.locale.value=t,me.set("I18N_LANGUAGE",t),n(!0)})}createModal(t){const n=fo();return n.on("closeModal",a=>{this.configInstance=null}),E.createApp(uo,{appCode:this.appCode,token:this.token,setLanguage:this.setLanguage.bind(this,this.locale),name:t||this.name,translationKeys:this.translationKeys,loginRouteName:this.loginRouteName,loginTranslationKeys:this.loginTranslationKeys,login:this.login,baseUrl:this.baseUrl,emitter:n}).use(ce).use(mo).mount(document.createElement("div"))}install(t,n={}){t.use(ce,{i18n:this.i18n}),t.use(this.i18n)}}return st});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gc_i18n",
3
- "version": "1.2.9",
3
+ "version": "1.2.11",
4
4
  "type": "module",
5
5
  "main": "./lib/gc_i18n.umd.cjs",
6
6
  "module": "./lib/gc_i18n.js",
@@ -51,7 +51,7 @@ export default {
51
51
  {
52
52
  title: "关键词",
53
53
  fixed: "left",
54
- width: 90,
54
+ width: 100,
55
55
  key: "dictKey"
56
56
  }
57
57
  ];
@@ -446,6 +446,9 @@ export default {
446
446
  }
447
447
  .gc_i18n_tabs {
448
448
  padding-top: 5px;
449
+ :deep(.ivu-tabs-content) {
450
+ width: 100%;
451
+ }
449
452
  :deep(.ivu-tabs-bar) {
450
453
  margin-bottom: 0px !important;
451
454
  }
package/packages/index.js CHANGED
@@ -203,7 +203,10 @@ export default class I18n {
203
203
  globalThis.$deepScan = function (val) {
204
204
  return val;
205
205
  };
206
-
206
+ globalThis.$clearI18n = () => {
207
+ const languageStore = store2.namespace(`I18N_${_.toUpper(this.appCode)}`);
208
+ languageStore.clearAll();
209
+ };
207
210
  globalThis.$changeLocale =
208
211
  this.changeLocale =
209
212
  this.i18n.global.changeLocale =
@@ -214,9 +217,6 @@ export default class I18n {
214
217
  setToken(token) {
215
218
  this.token = token;
216
219
  }
217
- getLanguage(language) {
218
- return store2.get("I18N_TEST.zh-TW");
219
- }
220
220
  async getLanguages(isRemote = false) {
221
221
  const langs = store2.get("I18N_LANGUAGES");
222
222
  if (langs && !isRemote) {
package/src/view/Home.vue CHANGED
@@ -3,6 +3,9 @@ const change = async (lang) => {
3
3
  await $changeLocale(lang);
4
4
  location.reload();
5
5
  };
6
+ const clear = () => {
7
+ $clearI18n();
8
+ };
6
9
  </script>
7
10
 
8
11
  <template>
@@ -11,4 +14,7 @@ const change = async (lang) => {
11
14
  <h1>{{ $t("dsgljksdg") }}</h1>
12
15
  <button @click="change('en-US')">en</button>
13
16
  <button @click="change('zh-CN')">zh</button>
17
+ <div>
18
+ <button @click="clear">清理</button>
19
+ </div>
14
20
  </template>