gc_i18n 1.0.2 → 1.0.5

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/lib/gc_i18n.js CHANGED
@@ -38,20 +38,20 @@ function $r() {
38
38
  return c(o) || f(o) || p(o) || N();
39
39
  }
40
40
  function c(o) {
41
- if (Array.isArray(o)) return v(o);
41
+ if (Array.isArray(o)) return y(o);
42
42
  }
43
43
  function f(o) {
44
44
  if (typeof Symbol < "u" && Symbol.iterator in Object(o)) return Array.from(o);
45
45
  }
46
46
  function p(o, m) {
47
47
  if (o) {
48
- if (typeof o == "string") return v(o, m);
48
+ if (typeof o == "string") return y(o, m);
49
49
  var l = Object.prototype.toString.call(o).slice(8, -1);
50
50
  if (l === "Object" && o.constructor && (l = o.constructor.name), l === "Map" || l === "Set") return Array.from(o);
51
- if (l === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)) return v(o, m);
51
+ if (l === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)) return y(o, m);
52
52
  }
53
53
  }
54
- function v(o, m) {
54
+ function y(o, m) {
55
55
  (m == null || m > o.length) && (m = o.length);
56
56
  for (var l = 0, u = new Array(m); l < m; l++) u[l] = o[l];
57
57
  return u;
@@ -60,7 +60,7 @@ function $r() {
60
60
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
61
61
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
62
62
  }
63
- var y = /* @__PURE__ */ function() {
63
+ var v = /* @__PURE__ */ function() {
64
64
  function o(m) {
65
65
  r(this, o), this.sourceStr = m, this.subCombos = o.parseComboStr(m), this.keyNames = this.subCombos.reduce(function(l, u) {
66
66
  return l.concat(u);
@@ -110,11 +110,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
110
110
  }
111
111
  }]), o;
112
112
  }();
113
- y.comboDeliminator = ">", y.keyDeliminator = "+", y.parseComboStr = function(o) {
114
- for (var m = y._splitStr(o, y.comboDeliminator), l = [], u = 0; u < m.length; u += 1)
115
- l.push(y._splitStr(m[u], y.keyDeliminator));
113
+ v.comboDeliminator = ">", v.keyDeliminator = "+", v.parseComboStr = function(o) {
114
+ for (var m = v._splitStr(o, v.comboDeliminator), l = [], u = 0; u < m.length; u += 1)
115
+ l.push(v._splitStr(m[u], v.keyDeliminator));
116
116
  return l;
117
- }, y._splitStr = function(o, m) {
117
+ }, v._splitStr = function(o, m) {
118
118
  for (var l = o, u = m, d = "", E = [], g = 0; g < l.length; g += 1)
119
119
  g > 0 && l[g] === u && l[g - 1] !== "\\" && (E.push(d.trim()), d = "", g += 1), d += l[g];
120
120
  return d && E.push(d.trim()), E;
@@ -135,7 +135,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
135
135
  var d = null;
136
136
  typeof u == "function" && (d = u, u = null);
137
137
  var E = {
138
- keyCombo: new y(l),
138
+ keyCombo: new v(l),
139
139
  keyNames: u,
140
140
  handler: d
141
141
  };
@@ -255,7 +255,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
255
255
  return this;
256
256
  }
257
257
  return this._listeners.push({
258
- keyCombo: l ? new y(l) : null,
258
+ keyCombo: l ? new v(l) : null,
259
259
  pressHandler: u || null,
260
260
  releaseHandler: d || null,
261
261
  preventRepeat: !1,
@@ -484,7 +484,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
484
484
  m.match("Mac") && (l.match("Safari") || l.match("Chrome")) ? (M = 91, B = 93) : m.match("Mac") && l.match("Opera") ? (M = 17, B = 17) : m.match("Mac") && l.match("Firefox") && (M = 224, B = 224), o.bindKeyCode(g, ["semicolon", ";"]), o.bindKeyCode(O, ["dash", "-"]), o.bindKeyCode(P, ["equal", "equalsign", "="]), o.bindKeyCode(M, ["command", "windows", "win", "super", "leftcommand", "leftwindows", "leftwin", "leftsuper"]), o.bindKeyCode(B, ["command", "windows", "win", "super", "rightcommand", "rightwindows", "rightwin", "rightsuper"]), o.setKillKey("command");
485
485
  }
486
486
  var k = new D();
487
- return k.setLocale("us", A), k.Keyboard = D, k.Locale = C, k.KeyCombo = y, k;
487
+ return k.setLocale("us", A), k.Keyboard = D, k.Locale = C, k.KeyCombo = v, k;
488
488
  });
489
489
  }(ct)), ct.exports;
490
490
  }
@@ -538,12 +538,12 @@ function Zr(e, t = 0, n = e.length) {
538
538
  s.push(`${f}${" ".repeat(3 - String(f).length)}| ${r[c]}`);
539
539
  const p = r[c].length;
540
540
  if (c === i) {
541
- const v = t - (a - p) + 1, N = Math.max(1, n > a ? p - v : n - t);
542
- s.push(" | " + " ".repeat(v) + "^".repeat(N));
541
+ const y = t - (a - p) + 1, N = Math.max(1, n > a ? p - y : n - t);
542
+ s.push(" | " + " ".repeat(y) + "^".repeat(N));
543
543
  } else if (c > i) {
544
544
  if (n > a) {
545
- const v = Math.max(Math.min(n - a, p), 1);
546
- s.push(" | " + "^".repeat(v));
545
+ const y = Math.max(Math.min(n - a, p), 1);
546
+ s.push(" | " + "^".repeat(y));
547
547
  }
548
548
  a += p + 1;
549
549
  }
@@ -655,9 +655,9 @@ const rs = /<\/?[\w\s="/.':;#-\/]+>/, ss = (e) => rs.test(e), ge = " ", as = "\r
655
655
  function ls(e) {
656
656
  const t = e;
657
657
  let n = 0, r = 1, a = 1, s = 0;
658
- const i = (g) => t[g] === as && t[g + 1] === z, c = (g) => t[g] === z, f = (g) => t[g] === os, p = (g) => t[g] === is, v = (g) => i(g) || c(g) || f(g) || p(g), N = () => n, y = () => r, C = () => a, D = () => s, A = (g) => i(g) || f(g) || p(g) ? z : t[g], k = () => A(n), o = () => A(n + s);
658
+ const i = (g) => t[g] === as && t[g + 1] === z, c = (g) => t[g] === z, f = (g) => t[g] === os, p = (g) => t[g] === is, y = (g) => i(g) || c(g) || f(g) || p(g), N = () => n, v = () => r, C = () => a, D = () => s, A = (g) => i(g) || f(g) || p(g) ? z : t[g], k = () => A(n), o = () => A(n + s);
659
659
  function m() {
660
- return s = 0, v(n) && (r++, a = 0), i(n) && n++, n++, a++, t[n];
660
+ return s = 0, y(n) && (r++, a = 0), i(n) && n++, n++, a++, t[n];
661
661
  }
662
662
  function l() {
663
663
  return i(n + s) && s++, s++, t[n + s];
@@ -676,7 +676,7 @@ function ls(e) {
676
676
  }
677
677
  return {
678
678
  index: N,
679
- line: y,
679
+ line: v,
680
680
  column: C,
681
681
  peekOffset: D,
682
682
  charAt: A,
@@ -703,23 +703,23 @@ function fs(e, t = {}) {
703
703
  braceNest: 0,
704
704
  inLinked: !1,
705
705
  text: ""
706
- }, p = () => f, { onError: v } = t;
706
+ }, p = () => f, { onError: y } = t;
707
707
  function N(_, h, T, ...S) {
708
708
  const Y = p();
709
- if (h.column += T, h.offset += T, v) {
709
+ if (h.column += T, h.offset += T, y) {
710
710
  const H = n ? wt(Y.startLoc, h) : null, U = $e(_, H, {
711
711
  domain: us,
712
712
  args: S
713
713
  });
714
- v(U);
714
+ y(U);
715
715
  }
716
716
  }
717
- function y(_, h, T) {
717
+ function v(_, h, T) {
718
718
  _.endLoc = s(), _.currentType = h;
719
719
  const S = { type: h };
720
720
  return n && (S.loc = wt(_.startLoc, _.endLoc)), T != null && (S.value = T), S;
721
721
  }
722
- const C = (_) => y(
722
+ const C = (_) => v(
723
723
  _,
724
724
  13
725
725
  /* TokenTypes.EOF */
@@ -975,14 +975,14 @@ function fs(e, t = {}) {
975
975
  let T = null;
976
976
  switch (_.currentChar()) {
977
977
  case "{":
978
- return h.braceNest >= 1 && N(R.NOT_ALLOW_NEST_PLACEHOLDER, s(), 0), _.next(), T = y(
978
+ return h.braceNest >= 1 && N(R.NOT_ALLOW_NEST_PLACEHOLDER, s(), 0), _.next(), T = v(
979
979
  h,
980
980
  2,
981
981
  "{"
982
982
  /* TokenChars.BraceLeft */
983
983
  ), k(_), h.braceNest++, T;
984
984
  case "}":
985
- return h.braceNest > 0 && h.currentType === 2 && N(R.EMPTY_PLACEHOLDER, s(), 0), _.next(), T = y(
985
+ return h.braceNest > 0 && h.currentType === 2 && N(R.EMPTY_PLACEHOLDER, s(), 0), _.next(), T = v(
986
986
  h,
987
987
  3,
988
988
  "}"
@@ -993,17 +993,17 @@ function fs(e, t = {}) {
993
993
  default: {
994
994
  let Y = !0, H = !0, U = !0;
995
995
  if (M(_))
996
- return h.braceNest > 0 && N(R.UNTERMINATED_CLOSING_BRACE, s(), 0), T = y(h, 1, Be(_)), h.braceNest = 0, h.inLinked = !1, T;
996
+ return h.braceNest > 0 && N(R.UNTERMINATED_CLOSING_BRACE, s(), 0), T = v(h, 1, Be(_)), h.braceNest = 0, h.inLinked = !1, T;
997
997
  if (h.braceNest > 0 && (h.currentType === 4 || h.currentType === 5 || h.currentType === 6))
998
998
  return N(R.UNTERMINATED_CLOSING_BRACE, s(), 0), h.braceNest = 0, He(_, h);
999
999
  if (Y = l(_, h))
1000
- return T = y(h, 4, bt(_)), k(_), T;
1000
+ return T = v(h, 4, bt(_)), k(_), T;
1001
1001
  if (H = u(_, h))
1002
- return T = y(h, 5, vt(_)), k(_), T;
1002
+ return T = v(h, 5, vt(_)), k(_), T;
1003
1003
  if (U = d(_, h))
1004
- return T = y(h, 6, cn(_)), k(_), T;
1004
+ return T = v(h, 6, cn(_)), k(_), T;
1005
1005
  if (!Y && !H && !U)
1006
- return T = y(h, 12, Lt(_)), N(R.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, T.value), k(_), T;
1006
+ return T = v(h, 12, Lt(_)), N(R.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, T.value), k(_), T;
1007
1007
  break;
1008
1008
  }
1009
1009
  }
@@ -1015,28 +1015,28 @@ function fs(e, t = {}) {
1015
1015
  const Y = _.currentChar();
1016
1016
  switch ((T === 7 || T === 8 || T === 11 || T === 9) && (Y === z || Y === ge) && N(R.INVALID_LINKED_FORMAT, s(), 0), Y) {
1017
1017
  case "@":
1018
- return _.next(), S = y(
1018
+ return _.next(), S = v(
1019
1019
  h,
1020
1020
  7,
1021
1021
  "@"
1022
1022
  /* TokenChars.LinkedAlias */
1023
1023
  ), h.inLinked = !0, S;
1024
1024
  case ".":
1025
- return k(_), _.next(), y(
1025
+ return k(_), _.next(), v(
1026
1026
  h,
1027
1027
  8,
1028
1028
  "."
1029
1029
  /* TokenChars.LinkedDot */
1030
1030
  );
1031
1031
  case ":":
1032
- return k(_), _.next(), y(
1032
+ return k(_), _.next(), v(
1033
1033
  h,
1034
1034
  9,
1035
1035
  ":"
1036
1036
  /* TokenChars.LinkedDelimiter */
1037
1037
  );
1038
1038
  default:
1039
- return M(_) ? (S = y(h, 1, Be(_)), h.braceNest = 0, h.inLinked = !1, S) : E(_, h) || O(_, h) ? (k(_), Ce(_, h)) : g(_, h) ? (k(_), y(h, 11, Ot(_))) : P(_, h) ? (k(_), Y === "{" ? Ye(_, h) || S : y(h, 10, Ct(_))) : (T === 7 && N(R.INVALID_LINKED_FORMAT, s(), 0), h.braceNest = 0, h.inLinked = !1, He(_, h));
1039
+ return M(_) ? (S = v(h, 1, Be(_)), h.braceNest = 0, h.inLinked = !1, S) : E(_, h) || O(_, h) ? (k(_), Ce(_, h)) : g(_, h) ? (k(_), v(h, 11, Ot(_))) : P(_, h) ? (k(_), Y === "{" ? Ye(_, h) || S : v(h, 10, Ct(_))) : (T === 7 && N(R.INVALID_LINKED_FORMAT, s(), 0), h.braceNest = 0, h.inLinked = !1, He(_, h));
1040
1040
  }
1041
1041
  }
1042
1042
  function He(_, h) {
@@ -1052,7 +1052,7 @@ function fs(e, t = {}) {
1052
1052
  case "{":
1053
1053
  return Ye(_, h) || C(h);
1054
1054
  case "}":
1055
- return N(R.UNBALANCED_CLOSING_BRACE, s(), 0), _.next(), y(
1055
+ return N(R.UNBALANCED_CLOSING_BRACE, s(), 0), _.next(), v(
1056
1056
  h,
1057
1057
  3,
1058
1058
  "}"
@@ -1062,9 +1062,9 @@ function fs(e, t = {}) {
1062
1062
  return Ce(_, h) || C(h);
1063
1063
  default: {
1064
1064
  if (M(_))
1065
- return T = y(h, 1, Be(_)), h.braceNest = 0, h.inLinked = !1, T;
1065
+ return T = v(h, 1, Be(_)), h.braceNest = 0, h.inLinked = !1, T;
1066
1066
  if (B(_))
1067
- return y(h, 0, Et(_));
1067
+ return v(h, 0, Et(_));
1068
1068
  break;
1069
1069
  }
1070
1070
  }
@@ -1072,7 +1072,7 @@ function fs(e, t = {}) {
1072
1072
  }
1073
1073
  function It() {
1074
1074
  const { currentType: _, offset: h, startLoc: T, endLoc: S } = f;
1075
- return f.lastType = _, f.lastOffset = h, f.lastStartLoc = T, f.lastEndLoc = S, f.offset = a(), f.startLoc = s(), r.currentChar() === be ? y(
1075
+ return f.lastType = _, f.lastOffset = h, f.lastStartLoc = T, f.lastEndLoc = S, f.offset = a(), f.startLoc = s(), r.currentChar() === be ? v(
1076
1076
  f,
1077
1077
  13
1078
1078
  /* TokenTypes.EOF */
@@ -1134,7 +1134,7 @@ function hs(e = {}) {
1134
1134
  const l = o.context(), { lastOffset: u, lastStartLoc: d } = l, E = a(9, u, d);
1135
1135
  return E.value = m.replace(ds, ms), o.nextToken(), s(E, o.currentOffset(), o.currentPosition()), E;
1136
1136
  }
1137
- function v(o) {
1137
+ function y(o) {
1138
1138
  const m = o.nextToken(), l = o.context(), { lastOffset: u, lastStartLoc: d } = l, E = a(8, u, d);
1139
1139
  return m.type !== 11 ? (r(o, R.UNEXPECTED_EMPTY_LINKED_MODIFIER, l.lastStartLoc, 0), E.value = "", s(E, u, d), {
1140
1140
  nextConsumeToken: m,
@@ -1147,11 +1147,11 @@ function hs(e = {}) {
1147
1147
  const l = o.context(), u = a(7, l.offset, l.startLoc);
1148
1148
  return u.value = m, s(u, o.currentOffset(), o.currentPosition()), u;
1149
1149
  }
1150
- function y(o) {
1150
+ function v(o) {
1151
1151
  const m = o.context(), l = a(6, m.offset, m.startLoc);
1152
1152
  let u = o.nextToken();
1153
1153
  if (u.type === 8) {
1154
- const d = v(o);
1154
+ const d = y(o);
1155
1155
  l.modifier = d.node, u = d.nextConsumeToken || o.nextToken();
1156
1156
  }
1157
1157
  switch (u.type !== 9 && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(u)), u = o.nextToken(), u.type === 2 && (u = o.nextToken()), u.type) {
@@ -1200,7 +1200,7 @@ function hs(e = {}) {
1200
1200
  P.value == null && r(o, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(P)), d.items.push(p(o, P.value || ""));
1201
1201
  break;
1202
1202
  case 7: {
1203
- const M = y(o);
1203
+ const M = v(o);
1204
1204
  d.items.push(M.node), E = M.nextConsumeToken || null;
1205
1205
  break;
1206
1206
  }
@@ -1398,7 +1398,7 @@ function ys(e, t) {
1398
1398
  const o = k ? r : "";
1399
1399
  f(a ? o + " ".repeat(A) : o);
1400
1400
  }
1401
- function v(A = !0) {
1401
+ function y(A = !0) {
1402
1402
  const k = ++i.indentLevel;
1403
1403
  A && p(k);
1404
1404
  }
@@ -1406,15 +1406,15 @@ function ys(e, t) {
1406
1406
  const k = --i.indentLevel;
1407
1407
  A && p(k);
1408
1408
  }
1409
- function y() {
1409
+ function v() {
1410
1410
  p(i.indentLevel);
1411
1411
  }
1412
1412
  return {
1413
1413
  context: c,
1414
1414
  push: f,
1415
- indent: v,
1415
+ indent: y,
1416
1416
  deindent: N,
1417
- newline: y,
1417
+ newline: v,
1418
1418
  helper: (A) => `_${A}`,
1419
1419
  needIndent: () => i.needIndent
1420
1420
  };
@@ -1515,7 +1515,7 @@ const Cs = (e, t = {}) => {
1515
1515
  breakLineCode: a,
1516
1516
  needIndent: s
1517
1517
  });
1518
- c.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), c.indent(s), i.length > 0 && (c.push(`const { ${Jt(i.map((v) => `${v}: _${v}`), ", ")} } = ctx`), c.newline()), c.push("return "), xe(c, e), c.deindent(s), c.push("}"), delete e.helpers;
1518
+ c.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), c.indent(s), i.length > 0 && (c.push(`const { ${Jt(i.map((y) => `${y}: _${y}`), ", ")} } = ctx`), c.newline()), c.push("return "), xe(c, e), c.deindent(s), c.push("}"), delete e.helpers;
1519
1519
  const { code: f, map: p } = c.context();
1520
1520
  return {
1521
1521
  ast: e,
@@ -2008,39 +2008,39 @@ function la(e) {
2008
2008
  }
2009
2009
  function ca(e) {
2010
2010
  const t = [];
2011
- let n = -1, r = 0, a = 0, s, i, c, f, p, v, N;
2012
- const y = [];
2013
- y[
2011
+ let n = -1, r = 0, a = 0, s, i, c, f, p, y, N;
2012
+ const v = [];
2013
+ v[
2014
2014
  0
2015
2015
  /* Actions.APPEND */
2016
2016
  ] = () => {
2017
2017
  i === void 0 ? i = c : i += c;
2018
- }, y[
2018
+ }, v[
2019
2019
  1
2020
2020
  /* Actions.PUSH */
2021
2021
  ] = () => {
2022
2022
  i !== void 0 && (t.push(i), i = void 0);
2023
- }, y[
2023
+ }, v[
2024
2024
  2
2025
2025
  /* Actions.INC_SUB_PATH_DEPTH */
2026
2026
  ] = () => {
2027
- y[
2027
+ v[
2028
2028
  0
2029
2029
  /* Actions.APPEND */
2030
2030
  ](), a++;
2031
- }, y[
2031
+ }, v[
2032
2032
  3
2033
2033
  /* Actions.PUSH_SUB_PATH */
2034
2034
  ] = () => {
2035
2035
  if (a > 0)
2036
- a--, r = 4, y[
2036
+ a--, r = 4, v[
2037
2037
  0
2038
2038
  /* Actions.APPEND */
2039
2039
  ]();
2040
2040
  else {
2041
2041
  if (a = 0, i === void 0 || (i = la(i), i === !1))
2042
2042
  return !1;
2043
- y[
2043
+ v[
2044
2044
  1
2045
2045
  /* Actions.PUSH */
2046
2046
  ]();
@@ -2049,14 +2049,14 @@ function ca(e) {
2049
2049
  function C() {
2050
2050
  const D = e[n + 1];
2051
2051
  if (r === 5 && D === "'" || r === 6 && D === '"')
2052
- return n++, c = "\\" + D, y[
2052
+ return n++, c = "\\" + D, v[
2053
2053
  0
2054
2054
  /* Actions.APPEND */
2055
2055
  ](), !0;
2056
2056
  }
2057
2057
  for (; r !== null; )
2058
2058
  if (n++, s = e[n], !(s === "\\" && C())) {
2059
- if (f = oa(s), N = Le[r], p = N[f] || N.l || 8, p === 8 || (r = p[0], p[1] !== void 0 && (v = y[p[1]], v && (c = s, v() === !1))))
2059
+ if (f = oa(s), N = Le[r], p = N[f] || N.l || 8, p === 8 || (r = p[0], p[1] !== void 0 && (y = v[p[1]], y && (c = s, y() === !1))))
2060
2060
  return;
2061
2061
  if (r === 7)
2062
2062
  return t;
@@ -2132,7 +2132,7 @@ const In = (e) => {
2132
2132
  }, ya = () => lr;
2133
2133
  let An = 0;
2134
2134
  function Na(e = {}) {
2135
- const t = W(e.onWarn) ? e.onWarn : Ne, n = I(e.version) ? e.version : ma, r = I(e.locale) || W(e.locale) ? e.locale : Ze, a = W(r) ? Ze : r, s = q(e.fallbackLocale) || w(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, i = w(e.messages) ? e.messages : St(a), c = w(e.datetimeFormats) ? e.datetimeFormats : St(a), f = w(e.numberFormats) ? e.numberFormats : St(a), p = Q($(), e.modifiers, ha()), v = e.pluralRules || $(), N = W(e.missing) ? e.missing : null, y = K(e.missingWarn) || Ve(e.missingWarn) ? e.missingWarn : !0, C = K(e.fallbackWarn) || Ve(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, A = !!e.unresolving, k = W(e.postTranslation) ? e.postTranslation : null, o = w(e.processor) ? e.processor : null, m = K(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, l = !!e.escapeParameter, u = W(e.messageCompiler) ? e.messageCompiler : sr;
2135
+ const t = W(e.onWarn) ? e.onWarn : Ne, n = I(e.version) ? e.version : ma, r = I(e.locale) || W(e.locale) ? e.locale : Ze, a = W(r) ? Ze : r, s = q(e.fallbackLocale) || w(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, i = w(e.messages) ? e.messages : St(a), c = w(e.datetimeFormats) ? e.datetimeFormats : St(a), f = w(e.numberFormats) ? e.numberFormats : St(a), p = Q($(), e.modifiers, ha()), y = e.pluralRules || $(), N = W(e.missing) ? e.missing : null, v = K(e.missingWarn) || Ve(e.missingWarn) ? e.missingWarn : !0, C = K(e.fallbackWarn) || Ve(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, A = !!e.unresolving, k = W(e.postTranslation) ? e.postTranslation : null, o = w(e.processor) ? e.processor : null, m = K(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, l = !!e.escapeParameter, u = W(e.messageCompiler) ? e.messageCompiler : sr;
2136
2136
  process.env.NODE_ENV !== "production" && W(e.messageCompiler) && Qt(De(te.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
2137
2137
  const d = W(e.messageResolver) ? e.messageResolver : ar || ua, E = W(e.localeFallbacker) ? e.localeFallbacker : ir || ta, g = F(e.fallbackContext) ? e.fallbackContext : void 0, O = e, P = F(O.__datetimeFormatters) ? O.__datetimeFormatters : /* @__PURE__ */ new Map(), M = F(O.__numberFormatters) ? O.__numberFormatters : /* @__PURE__ */ new Map(), B = F(O.__meta) ? O.__meta : {};
2138
2138
  An++;
@@ -2143,9 +2143,9 @@ function Na(e = {}) {
2143
2143
  fallbackLocale: s,
2144
2144
  messages: i,
2145
2145
  modifiers: p,
2146
- pluralRules: v,
2146
+ pluralRules: y,
2147
2147
  missing: N,
2148
- missingWarn: y,
2148
+ missingWarn: v,
2149
2149
  fallbackWarn: C,
2150
2150
  fallbackFormat: D,
2151
2151
  unresolving: A,
@@ -2210,7 +2210,7 @@ function Sn(e, ...t) {
2210
2210
  const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: i } = e, { __datetimeFormatters: c } = e;
2211
2211
  if (process.env.NODE_ENV !== "production" && !fr.dateTimeFormat)
2212
2212
  return s(De(te.CANNOT_FORMAT_DATE)), _t;
2213
- const [f, p, v, N] = Kt(...t), y = K(v.missingWarn) ? v.missingWarn : e.missingWarn, C = K(v.fallbackWarn) ? v.fallbackWarn : e.fallbackWarn, D = !!v.part, A = tn(e, v), k = i(
2213
+ const [f, p, y, N] = Kt(...t), v = K(y.missingWarn) ? y.missingWarn : e.missingWarn, C = K(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn, D = !!y.part, A = tn(e, y), k = i(
2214
2214
  e,
2215
2215
  // eslint-disable-line @typescript-eslint/no-explicit-any
2216
2216
  a,
@@ -2236,7 +2236,7 @@ function Sn(e, ...t) {
2236
2236
  }
2237
2237
  if (o = n[m] || {}, l = o[f], w(l))
2238
2238
  break;
2239
- nn(e, f, m, y, E), u = d;
2239
+ nn(e, f, m, v, E), u = d;
2240
2240
  }
2241
2241
  if (!w(l) || !I(m))
2242
2242
  return r ? ht : f;
@@ -2304,7 +2304,7 @@ function Pn(e, ...t) {
2304
2304
  const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: i } = e, { __numberFormatters: c } = e;
2305
2305
  if (process.env.NODE_ENV !== "production" && !fr.numberFormat)
2306
2306
  return s(De(te.CANNOT_FORMAT_NUMBER)), _t;
2307
- const [f, p, v, N] = Ut(...t), y = K(v.missingWarn) ? v.missingWarn : e.missingWarn, C = K(v.fallbackWarn) ? v.fallbackWarn : e.fallbackWarn, D = !!v.part, A = tn(e, v), k = i(
2307
+ const [f, p, y, N] = Ut(...t), v = K(y.missingWarn) ? y.missingWarn : e.missingWarn, C = K(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn, D = !!y.part, A = tn(e, y), k = i(
2308
2308
  e,
2309
2309
  // eslint-disable-line @typescript-eslint/no-explicit-any
2310
2310
  a,
@@ -2330,7 +2330,7 @@ function Pn(e, ...t) {
2330
2330
  }
2331
2331
  if (o = n[m] || {}, l = o[f], w(l))
2332
2332
  break;
2333
- nn(e, f, m, y, E), u = d;
2333
+ nn(e, f, m, v, E), u = d;
2334
2334
  }
2335
2335
  if (!w(l) || !I(m))
2336
2336
  return r ? ht : f;
@@ -2393,11 +2393,11 @@ function Da(e = {}) {
2393
2393
  const t = e.locale, n = ka(e), r = F(e.pluralRules) && I(t) && W(e.pluralRules[t]) ? e.pluralRules[t] : Mn, a = F(e.pluralRules) && I(t) && W(e.pluralRules[t]) ? Mn : void 0, s = (o) => o[r(n, o.length, a)], i = e.list || [], c = (o) => i[o], f = e.named || $();
2394
2394
  J(e.pluralIndex) && Sa(n, f);
2395
2395
  const p = (o) => f[o];
2396
- function v(o, m) {
2396
+ function y(o, m) {
2397
2397
  const l = W(e.messages) ? e.messages(o, !!m) : F(e.messages) ? e.messages[o] : !1;
2398
2398
  return l || (e.parent ? e.parent.message(o) : Oa);
2399
2399
  }
2400
- const N = (o) => e.modifiers ? e.modifiers[o] : La, y = w(e.processor) && W(e.processor.normalize) ? e.processor.normalize : Ia, C = w(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : Aa, D = w(e.processor) && I(e.processor.type) ? e.processor.type : Ca, k = {
2400
+ const N = (o) => e.modifiers ? e.modifiers[o] : La, v = w(e.processor) && W(e.processor.normalize) ? e.processor.normalize : Ia, C = w(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : Aa, D = w(e.processor) && I(e.processor.type) ? e.processor.type : Ca, k = {
2401
2401
  list: c,
2402
2402
  named: p,
2403
2403
  plural: s,
@@ -2405,29 +2405,29 @@ function Da(e = {}) {
2405
2405
  const [l, u] = m;
2406
2406
  let d = "text", E = "";
2407
2407
  m.length === 1 ? F(l) ? (E = l.modifier || E, d = l.type || d) : I(l) && (E = l || E) : m.length === 2 && (I(l) && (E = l || E), I(u) && (d = u || d));
2408
- const g = v(o, !0)(k), O = (
2408
+ const g = y(o, !0)(k), O = (
2409
2409
  // The message in vnode resolved with linked are returned as an array by processor.nomalize
2410
2410
  d === "vnode" && q(g) && E ? g[0] : g
2411
2411
  );
2412
2412
  return E ? N(E)(O, d) : O;
2413
2413
  },
2414
- message: v,
2414
+ message: y,
2415
2415
  type: D,
2416
2416
  interpolate: C,
2417
- normalize: y,
2417
+ normalize: v,
2418
2418
  values: Q($(), i, f)
2419
2419
  };
2420
2420
  return k;
2421
2421
  }
2422
2422
  const wn = () => "", se = (e) => W(e);
2423
2423
  function Fn(e, ...t) {
2424
- const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: i, messages: c } = e, [f, p] = Vt(...t), v = K(p.missingWarn) ? p.missingWarn : e.missingWarn, N = K(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, y = K(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, C = !!p.resolvedMessage, D = I(p.default) || K(p.default) ? K(p.default) ? s ? f : () => f : p.default : n ? s ? f : () => f : null, A = n || D != null && (I(D) || W(D)), k = tn(e, p);
2425
- y && Pa(p);
2424
+ const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: i, messages: c } = e, [f, p] = Vt(...t), y = K(p.missingWarn) ? p.missingWarn : e.missingWarn, N = K(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, v = K(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, C = !!p.resolvedMessage, D = I(p.default) || K(p.default) ? K(p.default) ? s ? f : () => f : p.default : n ? s ? f : () => f : null, A = n || D != null && (I(D) || W(D)), k = tn(e, p);
2425
+ v && Pa(p);
2426
2426
  let [o, m, l] = C ? [
2427
2427
  f,
2428
2428
  k,
2429
2429
  c[k] || $()
2430
- ] : mr(e, f, k, i, N, v), u = o, d = f;
2430
+ ] : mr(e, f, k, i, N, y), u = o, d = f;
2431
2431
  if (!C && !(I(u) || ye(u) || se(u)) && A && (u = D, d = u), !C && (!(I(u) || ye(u) || se(u)) || !I(m)))
2432
2432
  return a ? ht : f;
2433
2433
  if (process.env.NODE_ENV !== "production" && I(u) && e.messageCompiler == null)
@@ -2457,14 +2457,14 @@ function Pa(e) {
2457
2457
  });
2458
2458
  }
2459
2459
  function mr(e, t, n, r, a, s) {
2460
- const { messages: i, onWarn: c, messageResolver: f, localeFallbacker: p } = e, v = p(e, r, n);
2461
- let N = $(), y, C = null, D = n, A = null;
2460
+ const { messages: i, onWarn: c, messageResolver: f, localeFallbacker: p } = e, y = p(e, r, n);
2461
+ let N = $(), v, C = null, D = n, A = null;
2462
2462
  const k = "translate";
2463
- for (let o = 0; o < v.length; o++) {
2464
- if (y = A = v[o], process.env.NODE_ENV !== "production" && n !== y && !ur(n, y) && gt(a, t) && c(De(te.FALLBACK_TO_TRANSLATE, {
2463
+ for (let o = 0; o < y.length; o++) {
2464
+ if (v = A = y[o], process.env.NODE_ENV !== "production" && n !== v && !ur(n, v) && gt(a, t) && c(De(te.FALLBACK_TO_TRANSLATE, {
2465
2465
  key: t,
2466
- target: y
2467
- })), process.env.NODE_ENV !== "production" && n !== y) {
2466
+ target: v
2467
+ })), process.env.NODE_ENV !== "production" && n !== v) {
2468
2468
  const d = e.__v_emitter;
2469
2469
  d && d.emit("fallback", {
2470
2470
  type: k,
@@ -2474,7 +2474,7 @@ function mr(e, t, n, r, a, s) {
2474
2474
  groupId: `${k}:${t}`
2475
2475
  });
2476
2476
  }
2477
- N = i[y] || $();
2477
+ N = i[v] || $();
2478
2478
  let m = null, l, u;
2479
2479
  if (process.env.NODE_ENV !== "production" && ie && (m = window.performance.now(), l = "intlify-message-resolve-start", u = "intlify-message-resolve-end", re && re(l)), (C = f(N, t)) === null && (C = N[t]), process.env.NODE_ENV !== "production" && ie) {
2480
2480
  const d = window.performance.now(), E = e.__v_emitter;
@@ -2488,12 +2488,12 @@ function mr(e, t, n, r, a, s) {
2488
2488
  }
2489
2489
  if (I(C) || ye(C) || se(C))
2490
2490
  break;
2491
- if (!Ta(y, v)) {
2491
+ if (!Ta(v, y)) {
2492
2492
  const d = nn(
2493
2493
  e,
2494
2494
  // eslint-disable-line @typescript-eslint/no-explicit-any
2495
2495
  t,
2496
- y,
2496
+ v,
2497
2497
  s,
2498
2498
  k
2499
2499
  );
@@ -2501,29 +2501,29 @@ function mr(e, t, n, r, a, s) {
2501
2501
  }
2502
2502
  D = A;
2503
2503
  }
2504
- return [C, y, N];
2504
+ return [C, v, N];
2505
2505
  }
2506
2506
  function hr(e, t, n, r, a, s) {
2507
2507
  const { messageCompiler: i, warnHtmlMessage: c } = e;
2508
2508
  if (se(r)) {
2509
- const y = r;
2510
- return y.locale = y.locale || n, y.key = y.key || t, y;
2509
+ const v = r;
2510
+ return v.locale = v.locale || n, v.key = v.key || t, v;
2511
2511
  }
2512
2512
  if (i == null) {
2513
- const y = () => r;
2514
- return y.locale = n, y.key = t, y;
2513
+ const v = () => r;
2514
+ return v.locale = n, v.key = t, v;
2515
2515
  }
2516
- let f = null, p, v;
2517
- process.env.NODE_ENV !== "production" && ie && (f = window.performance.now(), p = "intlify-message-compilation-start", v = "intlify-message-compilation-end", re && re(p));
2516
+ let f = null, p, y;
2517
+ process.env.NODE_ENV !== "production" && ie && (f = window.performance.now(), p = "intlify-message-compilation-start", y = "intlify-message-compilation-end", re && re(p));
2518
2518
  const N = i(r, Ma(e, n, a, r, c, s));
2519
2519
  if (process.env.NODE_ENV !== "production" && ie) {
2520
- const y = window.performance.now(), C = e.__v_emitter;
2520
+ const v = window.performance.now(), C = e.__v_emitter;
2521
2521
  C && f && C.emit("message-compilation", {
2522
2522
  type: "message-compilation",
2523
2523
  message: r,
2524
- time: y - f,
2524
+ time: v - f,
2525
2525
  groupId: `translate:${t}`
2526
- }), p && v && re && Se && (re(v), Se("intlify message compilation", p, v));
2526
+ }), p && y && re && Se && (re(y), Se("intlify message compilation", p, y));
2527
2527
  }
2528
2528
  return N.locale = n, N.key = t, N.source = r, N;
2529
2529
  }
@@ -2556,8 +2556,8 @@ function Ma(e, t, n, r, a, s) {
2556
2556
  warnHtmlMessage: a,
2557
2557
  onError: (i) => {
2558
2558
  if (s && s(i), process.env.NODE_ENV !== "production") {
2559
- const c = wa(r), f = `Message compilation error: ${i.message}`, p = i.location && c && Zr(c, i.location.start.offset, i.location.end.offset), v = e.__v_emitter;
2560
- v && c && v.emit("compile-error", {
2559
+ const c = wa(r), f = `Message compilation error: ${i.message}`, p = i.location && c && Zr(c, i.location.start.offset, i.location.end.offset), y = e.__v_emitter;
2560
+ y && c && y.emit("compile-error", {
2561
2561
  message: c,
2562
2562
  error: i.message,
2563
2563
  start: i.location && i.location.start.offset,
@@ -2578,15 +2578,15 @@ function wa(e) {
2578
2578
  return e.loc.source;
2579
2579
  }
2580
2580
  function Fa(e, t, n, r) {
2581
- const { modifiers: a, pluralRules: s, messageResolver: i, fallbackLocale: c, fallbackWarn: f, missingWarn: p, fallbackContext: v } = e, y = {
2581
+ const { modifiers: a, pluralRules: s, messageResolver: i, fallbackLocale: c, fallbackWarn: f, missingWarn: p, fallbackContext: y } = e, v = {
2582
2582
  locale: t,
2583
2583
  modifiers: a,
2584
2584
  pluralRules: s,
2585
2585
  messages: (C, D) => {
2586
2586
  let A = i(n, C);
2587
- if (A == null && (v || D)) {
2587
+ if (A == null && (y || D)) {
2588
2588
  const [, , k] = mr(
2589
- v || e,
2589
+ y || e,
2590
2590
  // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
2591
2591
  C,
2592
2592
  t,
@@ -2605,7 +2605,7 @@ function Fa(e, t, n, r) {
2605
2605
  } else return se(A) ? A : wn;
2606
2606
  }
2607
2607
  };
2608
- return e.processor && (y.processor = e.processor), r.list && (y.list = r.list), r.named && (y.named = r.named), J(r.plural) && (y.pluralIndex = r.plural), y;
2608
+ return e.processor && (v.processor = e.processor), r.list && (v.list = r.list), r.named && (v.named = r.named), J(r.plural) && (v.pluralIndex = r.plural), v;
2609
2609
  }
2610
2610
  As();
2611
2611
  function Ka() {
@@ -2860,8 +2860,8 @@ function sn(e = {}) {
2860
2860
  ), f = s(
2861
2861
  // prettier-ignore
2862
2862
  t && i ? t.fallbackLocale.value : I(e.fallbackLocale) || q(e.fallbackLocale) || w(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
2863
- ), p = s(rn(c.value, e)), v = s(w(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), N = s(w(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
2864
- let y = t ? t.missingWarn : K(e.missingWarn) || Ve(e.missingWarn) ? e.missingWarn : !0, C = t ? t.fallbackWarn : K(e.fallbackWarn) || Ve(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : K(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, k = W(e.missing) ? e.missing : null, o = W(e.missing) ? $n(e.missing) : null, m = W(e.postTranslation) ? e.postTranslation : null, l = t ? t.warnHtmlMessage : K(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, u = !!e.escapeParameter;
2863
+ ), p = s(rn(c.value, e)), y = s(w(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), N = s(w(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
2864
+ let v = t ? t.missingWarn : K(e.missingWarn) || Ve(e.missingWarn) ? e.missingWarn : !0, C = t ? t.fallbackWarn : K(e.fallbackWarn) || Ve(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : K(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, k = W(e.missing) ? e.missing : null, o = W(e.missing) ? $n(e.missing) : null, m = W(e.postTranslation) ? e.postTranslation : null, l = t ? t.warnHtmlMessage : K(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, u = !!e.escapeParameter;
2865
2865
  const d = t ? t.modifiers : w(e.modifiers) ? e.modifiers : {};
2866
2866
  let E = e.pluralRules || t && t.pluralRules, g;
2867
2867
  g = (() => {
@@ -2874,7 +2874,7 @@ function sn(e = {}) {
2874
2874
  modifiers: d,
2875
2875
  pluralRules: E,
2876
2876
  missing: o === null ? void 0 : o,
2877
- missingWarn: y,
2877
+ missingWarn: v,
2878
2878
  fallbackWarn: C,
2879
2879
  fallbackFormat: A,
2880
2880
  unresolving: !0,
@@ -2885,7 +2885,7 @@ function sn(e = {}) {
2885
2885
  messageCompiler: e.messageCompiler,
2886
2886
  __meta: { framework: "vue" }
2887
2887
  };
2888
- b.datetimeFormats = v.value, b.numberFormats = N.value, b.__datetimeFormatters = w(g) ? g.__datetimeFormatters : void 0, b.__numberFormatters = w(g) ? g.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (b.__v_emitter = w(g) ? g.__v_emitter : void 0);
2888
+ b.datetimeFormats = y.value, b.numberFormats = N.value, b.__datetimeFormatters = w(g) ? g.__datetimeFormatters : void 0, b.__numberFormatters = w(g) ? g.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (b.__v_emitter = w(g) ? g.__v_emitter : void 0);
2889
2889
  const L = Na(b);
2890
2890
  return r && In(L), L;
2891
2891
  })(), Xe(g, c.value, f.value);
@@ -2894,7 +2894,7 @@ function sn(e = {}) {
2894
2894
  c.value,
2895
2895
  f.value,
2896
2896
  p.value,
2897
- v.value,
2897
+ y.value,
2898
2898
  N.value
2899
2899
  ];
2900
2900
  }
@@ -2908,7 +2908,7 @@ function sn(e = {}) {
2908
2908
  set: (b) => {
2909
2909
  g.fallbackLocale = b, f.value = b, Xe(g, c.value, b);
2910
2910
  }
2911
- }), x = je(() => p.value), oe = /* @__PURE__ */ je(() => v.value), le = /* @__PURE__ */ je(() => N.value);
2911
+ }), x = je(() => p.value), oe = /* @__PURE__ */ je(() => y.value), le = /* @__PURE__ */ je(() => N.value);
2912
2912
  function Oe() {
2913
2913
  return W(m) ? m : null;
2914
2914
  }
@@ -2935,7 +2935,7 @@ function sn(e = {}) {
2935
2935
  if (V !== "translate exists" && // for not `te` (e.g `t`)
2936
2936
  J(we) && we === ht || V === "translate exists" && !we) {
2937
2937
  const [Ae, Ar] = L();
2938
- if (process.env.NODE_ENV !== "production" && t && I(Ae) && We(V, Ar) && (D && (gt(C, Ae) || cr(y, Ae)) && Ne(nt(de.FALLBACK_TO_ROOT, {
2938
+ if (process.env.NODE_ENV !== "production" && t && I(Ae) && We(V, Ar) && (D && (gt(C, Ae) || cr(v, Ae)) && Ne(nt(de.FALLBACK_TO_ROOT, {
2939
2939
  key: Ae,
2940
2940
  type: V
2941
2941
  })), process.env.NODE_ENV !== "production")) {
@@ -3043,13 +3043,13 @@ function sn(e = {}) {
3043
3043
  L = V[b], ut(L, p.value[b]), g.messages = p.value;
3044
3044
  }
3045
3045
  function _(b) {
3046
- return v.value[b] || {};
3046
+ return y.value[b] || {};
3047
3047
  }
3048
3048
  function h(b, L) {
3049
- v.value[b] = L, g.datetimeFormats = v.value, Dn(g, b, L);
3049
+ y.value[b] = L, g.datetimeFormats = y.value, Dn(g, b, L);
3050
3050
  }
3051
3051
  function T(b, L) {
3052
- v.value[b] = Q(v.value[b] || {}, L), g.datetimeFormats = v.value, Dn(g, b, L);
3052
+ y.value[b] = Q(y.value[b] || {}, L), g.datetimeFormats = y.value, Dn(g, b, L);
3053
3053
  }
3054
3054
  function S(b) {
3055
3055
  return N.value[b] || {};
@@ -3089,10 +3089,10 @@ function sn(e = {}) {
3089
3089
  return r;
3090
3090
  },
3091
3091
  get missingWarn() {
3092
- return y;
3092
+ return v;
3093
3093
  },
3094
3094
  set missingWarn(b) {
3095
- y = b, g.missingWarn = y;
3095
+ v = b, g.missingWarn = v;
3096
3096
  },
3097
3097
  get fallbackWarn() {
3098
3098
  return C;
@@ -3401,7 +3401,7 @@ function ci(e, t) {
3401
3401
  }
3402
3402
  }
3403
3403
  function ui(e) {
3404
- const t = I(e.locale) ? e.locale : Ze, n = I(e.fallbackLocale) || q(e.fallbackLocale) || w(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = W(e.missing) ? e.missing : void 0, a = K(e.silentTranslationWarn) || Ve(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = K(e.silentFallbackWarn) || Ve(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, i = K(e.fallbackRoot) ? e.fallbackRoot : !0, c = !!e.formatFallbackMessages, f = w(e.modifiers) ? e.modifiers : {}, p = e.pluralizationRules, v = W(e.postTranslation) ? e.postTranslation : void 0, N = I(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, y = !!e.escapeParameterHtml, C = K(e.sync) ? e.sync : !0;
3404
+ const t = I(e.locale) ? e.locale : Ze, n = I(e.fallbackLocale) || q(e.fallbackLocale) || w(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = W(e.missing) ? e.missing : void 0, a = K(e.silentTranslationWarn) || Ve(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = K(e.silentFallbackWarn) || Ve(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, i = K(e.fallbackRoot) ? e.fallbackRoot : !0, c = !!e.formatFallbackMessages, f = w(e.modifiers) ? e.modifiers : {}, p = e.pluralizationRules, y = W(e.postTranslation) ? e.postTranslation : void 0, N = I(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, v = !!e.escapeParameterHtml, C = K(e.sync) ? e.sync : !0;
3405
3405
  let D = e.messages;
3406
3406
  if (w(e.sharedMessages)) {
3407
3407
  const d = e.sharedMessages;
@@ -3425,9 +3425,9 @@ function ui(e) {
3425
3425
  fallbackFormat: c,
3426
3426
  modifiers: f,
3427
3427
  pluralRules: p,
3428
- postTranslation: v,
3428
+ postTranslation: y,
3429
3429
  warnHtmlMessage: N,
3430
- escapeParameter: y,
3430
+ escapeParameter: v,
3431
3431
  messageResolver: e.messageResolver,
3432
3432
  inheritLocale: C,
3433
3433
  __i18n: A,
@@ -3716,8 +3716,8 @@ const di = /* @__PURE__ */ Xt({
3716
3716
  return () => {
3717
3717
  const s = Object.keys(n).filter((N) => N !== "_"), i = $();
3718
3718
  e.locale && (i.locale = e.locale), e.plural !== void 0 && (i.plural = I(e.plural) ? +e.plural : e.plural);
3719
- const c = _i(t, s), f = a[$t](e.keypath, c, i), p = Q($(), r), v = I(e.tag) || F(e.tag) ? e.tag : Lr();
3720
- return Zn(v, p, f);
3719
+ const c = _i(t, s), f = a[$t](e.keypath, c, i), p = Q($(), r), y = I(e.tag) || F(e.tag) ? e.tag : Lr();
3720
+ return Zn(y, p, f);
3721
3721
  };
3722
3722
  }
3723
3723
  }), Bn = di;
@@ -3729,15 +3729,15 @@ function Or(e, t, n, r) {
3729
3729
  return () => {
3730
3730
  const i = { part: !0 };
3731
3731
  let c = $();
3732
- e.locale && (i.locale = e.locale), I(e.format) ? i.key = e.format : F(e.format) && (I(e.format.key) && (i.key = e.format.key), c = Object.keys(e.format).reduce((y, C) => n.includes(C) ? Q($(), y, { [C]: e.format[C] }) : y, $()));
3732
+ e.locale && (i.locale = e.locale), I(e.format) ? i.key = e.format : F(e.format) && (I(e.format.key) && (i.key = e.format.key), c = Object.keys(e.format).reduce((v, C) => n.includes(C) ? Q($(), v, { [C]: e.format[C] }) : v, $()));
3733
3733
  const f = r(e.value, i, c);
3734
3734
  let p = [i.key];
3735
- q(f) ? p = f.map((y, C) => {
3736
- const D = a[y.type], A = D ? D({ [y.type]: y.value, index: C, parts: f }) : [y.value];
3737
- return mi(A) && (A[0].key = `${y.type}-${C}`), A;
3735
+ q(f) ? p = f.map((v, C) => {
3736
+ const D = a[v.type], A = D ? D({ [v.type]: v.value, index: C, parts: f }) : [v.value];
3737
+ return mi(A) && (A[0].key = `${v.type}-${C}`), A;
3738
3738
  }) : I(f) && (p = [f]);
3739
- const v = Q($(), s), N = I(e.tag) || F(e.tag) ? e.tag : Lr();
3740
- return Zn(N, v, p);
3739
+ const y = Q($(), s), N = I(e.tag) || F(e.tag) ? e.tag : Lr();
3740
+ return Zn(N, y, p);
3741
3741
  };
3742
3742
  }
3743
3743
  const hi = /* @__PURE__ */ Xt({
@@ -3780,9 +3780,9 @@ function pi(e) {
3780
3780
  const { instance: c, value: f } = i;
3781
3781
  if (!c || !c.$)
3782
3782
  throw ne(G.UNEXPECTED_ERROR);
3783
- const p = gi(e, c.$), v = Hn(f);
3783
+ const p = gi(e, c.$), y = Hn(f);
3784
3784
  return [
3785
- Reflect.apply(p.t, p, [...jn(v)]),
3785
+ Reflect.apply(p.t, p, [...jn(y)]),
3786
3786
  p
3787
3787
  ];
3788
3788
  };
@@ -3836,30 +3836,30 @@ function vi(e = {}) {
3836
3836
  function c(N) {
3837
3837
  return r.get(N) || null;
3838
3838
  }
3839
- function f(N, y) {
3840
- r.set(N, y);
3839
+ function f(N, v) {
3840
+ r.set(N, v);
3841
3841
  }
3842
3842
  function p(N) {
3843
3843
  r.delete(N);
3844
3844
  }
3845
- const v = {
3845
+ const y = {
3846
3846
  // mode
3847
3847
  get mode() {
3848
3848
  return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
3849
3849
  },
3850
3850
  // install plugin
3851
- async install(N, ...y) {
3852
- if (process.env.NODE_ENV !== "production" && (N.__VUE_I18N__ = v), N.__VUE_I18N_SYMBOL__ = i, N.provide(N.__VUE_I18N_SYMBOL__, v), w(y[0])) {
3853
- const A = y[0];
3854
- v.__composerExtend = A.__composerExtend, v.__vueI18nExtend = A.__vueI18nExtend;
3851
+ async install(N, ...v) {
3852
+ if (process.env.NODE_ENV !== "production" && (N.__VUE_I18N__ = y), N.__VUE_I18N_SYMBOL__ = i, N.provide(N.__VUE_I18N_SYMBOL__, y), w(v[0])) {
3853
+ const A = v[0];
3854
+ y.__composerExtend = A.__composerExtend, y.__vueI18nExtend = A.__vueI18nExtend;
3855
3855
  }
3856
3856
  let C = null;
3857
- !t && n && (C = ki(N, v.global)), __VUE_I18N_FULL_INSTALL__ && Ei(N, v, ...y), __VUE_I18N_LEGACY_API__ && t && N.mixin(fi(s, s.__composer, v));
3857
+ !t && n && (C = ki(N, y.global)), __VUE_I18N_FULL_INSTALL__ && Ei(N, y, ...v), __VUE_I18N_LEGACY_API__ && t && N.mixin(fi(s, s.__composer, y));
3858
3858
  const D = N.unmount;
3859
3859
  if (N.unmount = () => {
3860
- C && C(), v.dispose(), D();
3860
+ C && C(), y.dispose(), D();
3861
3861
  }, process.env.NODE_ENV !== "production") {
3862
- if (!await za(N, v))
3862
+ if (!await za(N, y))
3863
3863
  throw ne(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
3864
3864
  const k = Zt();
3865
3865
  if (t) {
@@ -3888,7 +3888,7 @@ function vi(e = {}) {
3888
3888
  // @internal
3889
3889
  __deleteInstance: p
3890
3890
  };
3891
- return v;
3891
+ return y;
3892
3892
  }
3893
3893
  function ln(e = {}) {
3894
3894
  const t = qe();
@@ -4089,8 +4089,8 @@ function Di() {
4089
4089
  },
4090
4090
  // core functions
4091
4091
  Store: function(s, i, c) {
4092
- var f = r.inherit(r.storeAPI, function(v, N, y) {
4093
- return arguments.length === 0 ? f.getAll() : typeof N == "function" ? f.transact(v, N, y) : N !== void 0 ? f.set(v, N, y) : typeof v == "string" || typeof v == "number" ? f.get(v) : typeof v == "function" ? f.each(v) : v ? f.setAll(v, N) : f.clear();
4092
+ var f = r.inherit(r.storeAPI, function(y, N, v) {
4093
+ return arguments.length === 0 ? f.getAll() : typeof N == "function" ? f.transact(y, N, v) : N !== void 0 ? f.set(y, N, v) : typeof y == "string" || typeof y == "number" ? f.get(y) : typeof y == "function" ? f.each(y) : y ? f.setAll(y, N) : f.clear();
4094
4094
  });
4095
4095
  f._id = s;
4096
4096
  try {
@@ -4112,8 +4112,8 @@ function Di() {
4112
4112
  return this._ns ? this._ns.substring(0, this._ns.length - c.length) : "";
4113
4113
  var f = s, p = this[f];
4114
4114
  if ((!p || !p.namespace) && (p = r.Store(this._id, this._area, this._ns + f + c), p._delim = c, this[f] || (this[f] = p), !i))
4115
- for (var v in r.areas)
4116
- p.area(v, r.areas[v]);
4115
+ for (var y in r.areas)
4116
+ p.area(y, r.areas[y]);
4117
4117
  return p;
4118
4118
  },
4119
4119
  isFake: function(s) {
@@ -4173,8 +4173,8 @@ function Di() {
4173
4173
  else if (f !== null) {
4174
4174
  var p = typeof f;
4175
4175
  if (p === typeof i && p === "object") {
4176
- for (var v in i)
4177
- f[v] = i[v];
4176
+ for (var y in i)
4177
+ f[y] = i[y];
4178
4178
  i = f;
4179
4179
  } else
4180
4180
  i = f + i;
@@ -4287,17 +4287,19 @@ const jt = /* @__PURE__ */ tr(Pi), Ri = (e) => {
4287
4287
  Authorization: a
4288
4288
  }
4289
4289
  });
4290
- p && p.result == 0 ? s(p.retVal) : i(p);
4290
+ p && p.result == 0 ? s(p.retVal) : s(p);
4291
4291
  }), wi = async (e, t) => Re({
4292
4292
  url: pt + "/i18n-web/kv_translate/kv_translates",
4293
4293
  method: "POST",
4294
4294
  data: e,
4295
- headers: { token: t }
4295
+ headers: { Authorization: t }
4296
4296
  }), Fi = async (e, t) => Re({
4297
4297
  url: pt + "/i18n-web/kv_translate/batch",
4298
4298
  method: "POST",
4299
4299
  data: e,
4300
- headers: { token: t }
4300
+ headers: {
4301
+ Authorization: t
4302
+ }
4301
4303
  }), Ki = async ({ appCode: e, language: t = "zh-CN", token: n }) => new Promise(async (r, a) => {
4302
4304
  const s = jt.namespace(`i18n_${e}`), i = {
4303
4305
  appCode: e,
@@ -4313,12 +4315,15 @@ const jt = /* @__PURE__ */ tr(Pi), Ri = (e) => {
4313
4315
  lastPullDate: f
4314
4316
  });
4315
4317
  if (p) {
4316
- const v = X.get(c, "translatesDTOs");
4318
+ const y = X.get(c, "translatesDTOs");
4317
4319
  if (X.isEmpty(p.translatesDTOs))
4318
- r(v);
4320
+ r(y);
4319
4321
  else {
4320
- const N = Mi(v, p.translatesDTOs), y = { lastPullDate: f, translatesDTOs: N };
4321
- jt.namespace(`i18n_${e}`).set(t, y, ":"), r(N);
4322
+ const N = Mi(y, p.translatesDTOs), v = {
4323
+ lastPullDate: p.lastPullDate,
4324
+ translatesDTOs: N
4325
+ };
4326
+ jt.namespace(`i18n_${e}`).set(t, v, ":"), r(N);
4322
4327
  }
4323
4328
  }
4324
4329
  }
@@ -4447,8 +4452,8 @@ const jt = /* @__PURE__ */ tr(Pi), Ri = (e) => {
4447
4452
  return n;
4448
4453
  }, Vi = { class: "extra" }, xi = { class: "gc_i18n_page" }, $i = { style: { display: "flex" } };
4449
4454
  function Wi(e, t, n, r, a, s) {
4450
- const i = fe("Table"), c = fe("TabPane"), f = fe("Input"), p = fe("Tabs"), v = fe("Page"), N = fe("Button"), y = fe("Modal");
4451
- return lt(), er(y, {
4455
+ const i = fe("Table"), c = fe("TabPane"), f = fe("Input"), p = fe("Tabs"), y = fe("Page"), N = fe("Button"), v = fe("Modal");
4456
+ return lt(), er(v, {
4452
4457
  modelValue: a.isModalVisible,
4453
4458
  "onUpdate:modelValue": t[2] || (t[2] = (C) => a.isModalVisible = C),
4454
4459
  "mask-closable": !1,
@@ -4491,7 +4496,7 @@ function Wi(e, t, n, r, a, s) {
4491
4496
  }),
4492
4497
  Ke("div", xi, [
4493
4498
  Ke("div", $i, [
4494
- ue(v, {
4499
+ ue(y, {
4495
4500
  modelValue: s.firstResult,
4496
4501
  "onUpdate:modelValue": t[1] || (t[1] = (C) => s.firstResult = C),
4497
4502
  total: a.data.totalRows,
@@ -4612,18 +4617,20 @@ class Zi {
4612
4617
  });
4613
4618
  const i = this.i18n.global.t;
4614
4619
  this.i18n.global.t = (c, f) => {
4615
- var N, y;
4616
- const p = X.toUpper((y = (N = n == null ? void 0 : n.currentRoute) == null ? void 0 : N.value) == null ? void 0 : y.name), v = i(c);
4617
- if (v === c && p) {
4620
+ var N, v;
4621
+ const p = X.toUpper((v = (N = n == null ? void 0 : n.currentRoute) == null ? void 0 : N.value) == null ? void 0 : v.name), y = i(c);
4622
+ if (y === c && p) {
4618
4623
  const C = `${p}.${c}`, D = i(C);
4619
4624
  return D !== C ? D : f && X.has(f, "comment") ? X.get(f, "comment") : c;
4620
4625
  }
4621
- return v;
4626
+ return y;
4622
4627
  }, this.i18n.global.changeLocal = (c) => {
4623
4628
  this.setLanguage(c || this.locale);
4624
- }, n.afterEach((c, f) => {
4625
- const { language: p, token: v } = c.query;
4626
- v && this.setToken(v), this.setLanguage(p), Ur(() => {
4629
+ }, n.beforeEach((c, f, p) => {
4630
+ const { language: y, token: N } = c.query;
4631
+ N && this.setToken(N), this.setLanguage(y), p();
4632
+ }), n.afterEach((c, f) => {
4633
+ Ur(() => {
4627
4634
  this.configInstance ? this.configInstance.closeModal() : this.createModal(c.name);
4628
4635
  });
4629
4636
  });
@@ -4632,7 +4639,6 @@ class Zi {
4632
4639
  this.token = t;
4633
4640
  }
4634
4641
  async setLanguage(t = "zh-CN") {
4635
- this.locale = t;
4636
4642
  const n = await Ki({
4637
4643
  appCode: this.appCode,
4638
4644
  language: t,
@@ -4645,13 +4651,13 @@ class Zi {
4645
4651
  X.assign({}, X.get(this.messages, t), r)
4646
4652
  );
4647
4653
  }
4648
- this.i18n.global.locale.value = t;
4654
+ this.locale = t, this.i18n.global.locale.value = t;
4649
4655
  }
4650
4656
  createModal(t) {
4651
4657
  this.modalLoad = !0, this.configInstance = Vr(Gi, {
4652
4658
  appCode: this.appCode,
4653
4659
  token: this.token,
4654
- setLanguage: this.setLanguage.bind(this),
4660
+ setLanguage: this.setLanguage.bind(this, this.locale),
4655
4661
  name: t
4656
4662
  }).use(fn).mount(document.createElement("div")), Gr.bind("shift > t", (n) => {
4657
4663
  this.configInstance.openModal();