@kong-ui-public/i18n 2.0.8-pr.1069.ceedeee4.0 → 2.1.0

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/dist/i18n.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as Ge, h as Ue } from "vue";
1
+ import { defineComponent as Ue, h as Ve } from "vue";
2
2
  var z = function(e, t) {
3
3
  return z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
4
4
  n.__proto__ = r;
@@ -26,7 +26,7 @@ var f = function() {
26
26
  return t;
27
27
  }, f.apply(this, arguments);
28
28
  };
29
- function Ve(e, t) {
29
+ function ke(e, t) {
30
30
  var n = {};
31
31
  for (var r in e)
32
32
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -41,55 +41,55 @@ function P(e, t, n) {
41
41
  (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
42
42
  return e.concat(i || Array.prototype.slice.call(t));
43
43
  }
44
- var g;
44
+ var p;
45
45
  (function(e) {
46
46
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
47
- })(g || (g = {}));
48
- var b;
47
+ })(p || (p = {}));
48
+ var d;
49
49
  (function(e) {
50
50
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
51
- })(b || (b = {}));
51
+ })(d || (d = {}));
52
52
  var D;
53
53
  (function(e) {
54
54
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
55
55
  })(D || (D = {}));
56
56
  function ae(e) {
57
- return e.type === b.literal;
57
+ return e.type === d.literal;
58
58
  }
59
- function ke(e) {
60
- return e.type === b.argument;
61
- }
62
- function Ee(e) {
63
- return e.type === b.number;
59
+ function je(e) {
60
+ return e.type === d.argument;
64
61
  }
65
62
  function be(e) {
66
- return e.type === b.date;
63
+ return e.type === d.number;
67
64
  }
68
65
  function de(e) {
69
- return e.type === b.time;
66
+ return e.type === d.date;
70
67
  }
71
68
  function xe(e) {
72
- return e.type === b.select;
69
+ return e.type === d.time;
73
70
  }
74
71
  function ye(e) {
75
- return e.type === b.plural;
76
- }
77
- function je(e) {
78
- return e.type === b.pound;
72
+ return e.type === d.select;
79
73
  }
80
74
  function Te(e) {
81
- return e.type === b.tag;
75
+ return e.type === d.plural;
76
+ }
77
+ function Xe(e) {
78
+ return e.type === d.pound;
82
79
  }
83
80
  function Se(e) {
81
+ return e.type === d.tag;
82
+ }
83
+ function He(e) {
84
84
  return !!(e && typeof e == "object" && e.type === D.number);
85
85
  }
86
86
  function J(e) {
87
87
  return !!(e && typeof e == "object" && e.type === D.dateTime);
88
88
  }
89
- var He = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Xe = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
90
- function We(e) {
89
+ var Ie = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, We = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
90
+ function Ze(e) {
91
91
  var t = {};
92
- return e.replace(Xe, function(n) {
92
+ return e.replace(We, function(n) {
93
93
  var r = n.length;
94
94
  switch (n[0]) {
95
95
  case "G":
@@ -178,36 +178,36 @@ function We(e) {
178
178
  return "";
179
179
  }), t;
180
180
  }
181
- var Ze = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
182
- function ze(e) {
181
+ var ze = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
182
+ function Je(e) {
183
183
  if (e.length === 0)
184
184
  throw new Error("Number skeleton cannot be empty");
185
- for (var t = e.split(Ze).filter(function(m) {
186
- return m.length > 0;
185
+ for (var t = e.split(ze).filter(function(c) {
186
+ return c.length > 0;
187
187
  }), n = [], r = 0, a = t; r < a.length; r++) {
188
188
  var i = a[r], o = i.split("/");
189
189
  if (o.length === 0)
190
190
  throw new Error("Invalid number skeleton");
191
191
  for (var s = o[0], h = o.slice(1), l = 0, u = h; l < u.length; l++) {
192
- var c = u[l];
193
- if (c.length === 0)
192
+ var m = u[l];
193
+ if (m.length === 0)
194
194
  throw new Error("Invalid number skeleton");
195
195
  }
196
196
  n.push({ stem: s, options: h });
197
197
  }
198
198
  return n;
199
199
  }
200
- function Je(e) {
200
+ function qe(e) {
201
201
  return e.replace(/^(.*?)-/, "");
202
202
  }
203
- var ie = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ie = /^(@+)?(\+|#+)?[rs]?$/g, qe = /(\*)(0+)|(#+)(0+)|(0+)/g, Ne = /^(0+)$/;
203
+ var ie = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ne = /^(@+)?(\+|#+)?[rs]?$/g, Qe = /(\*)(0+)|(#+)(0+)|(0+)/g, Ae = /^(0+)$/;
204
204
  function oe(e) {
205
205
  var t = {};
206
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ie, function(n, r, a) {
206
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ne, function(n, r, a) {
207
207
  return typeof a != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : a === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof a == "string" ? a.length : 0)), "";
208
208
  }), t;
209
209
  }
210
- function Ae(e) {
210
+ function Be(e) {
211
211
  switch (e) {
212
212
  case "sign-auto":
213
213
  return {
@@ -247,7 +247,7 @@ function Ae(e) {
247
247
  };
248
248
  }
249
249
  }
250
- function Qe(e) {
250
+ function Ye(e) {
251
251
  var t;
252
252
  if (e[0] === "E" && e[1] === "E" ? (t = {
253
253
  notation: "engineering"
@@ -255,17 +255,17 @@ function Qe(e) {
255
255
  notation: "scientific"
256
256
  }, e = e.slice(1)), t) {
257
257
  var n = e.slice(0, 2);
258
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ne.test(e))
258
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ae.test(e))
259
259
  throw new Error("Malformed concise eng/scientific notation");
260
260
  t.minimumIntegerDigits = e.length;
261
261
  }
262
262
  return t;
263
263
  }
264
264
  function se(e) {
265
- var t = {}, n = Ae(e);
265
+ var t = {}, n = Be(e);
266
266
  return n || t;
267
267
  }
268
- function Ye(e) {
268
+ function $e(e) {
269
269
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
270
270
  var a = r[n];
271
271
  switch (a.stem) {
@@ -289,7 +289,7 @@ function Ye(e) {
289
289
  continue;
290
290
  case "measure-unit":
291
291
  case "unit":
292
- t.style = "unit", t.unit = Je(a.options[0]);
292
+ t.style = "unit", t.unit = qe(a.options[0]);
293
293
  continue;
294
294
  case "compact-short":
295
295
  case "K":
@@ -330,40 +330,40 @@ function Ye(e) {
330
330
  case "integer-width":
331
331
  if (a.options.length > 1)
332
332
  throw new RangeError("integer-width stems only accept a single optional option");
333
- a.options[0].replace(qe, function(h, l, u, c, m, p) {
333
+ a.options[0].replace(Qe, function(h, l, u, m, c, E) {
334
334
  if (l)
335
335
  t.minimumIntegerDigits = u.length;
336
336
  else {
337
- if (c && m)
337
+ if (m && c)
338
338
  throw new Error("We currently do not support maximum integer digits");
339
- if (p)
339
+ if (E)
340
340
  throw new Error("We currently do not support exact integer digits");
341
341
  }
342
342
  return "";
343
343
  });
344
344
  continue;
345
345
  }
346
- if (Ne.test(a.stem)) {
346
+ if (Ae.test(a.stem)) {
347
347
  t.minimumIntegerDigits = a.stem.length;
348
348
  continue;
349
349
  }
350
350
  if (ie.test(a.stem)) {
351
351
  if (a.options.length > 1)
352
352
  throw new RangeError("Fraction-precision stems only accept a single optional option");
353
- a.stem.replace(ie, function(h, l, u, c, m, p) {
354
- return u === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && p ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
353
+ a.stem.replace(ie, function(h, l, u, m, c, E) {
354
+ return u === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : c && E ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + E.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
355
355
  });
356
356
  var i = a.options[0];
357
357
  i === "w" ? t = f(f({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = f(f({}, t), oe(i)));
358
358
  continue;
359
359
  }
360
- if (Ie.test(a.stem)) {
360
+ if (Ne.test(a.stem)) {
361
361
  t = f(f({}, t), oe(a.stem));
362
362
  continue;
363
363
  }
364
- var o = Ae(a.stem);
364
+ var o = Be(a.stem);
365
365
  o && (t = f(f({}, t), o));
366
- var s = Qe(a.stem);
366
+ var s = Ye(a.stem);
367
367
  s && (t = f(f({}, t), s));
368
368
  }
369
369
  return t;
@@ -1777,13 +1777,13 @@ var U = {
1777
1777
  "h"
1778
1778
  ]
1779
1779
  };
1780
- function $e(e, t) {
1780
+ function Ke(e, t) {
1781
1781
  for (var n = "", r = 0; r < e.length; r++) {
1782
1782
  var a = e.charAt(r);
1783
1783
  if (a === "j") {
1784
1784
  for (var i = 0; r + 1 < e.length && e.charAt(r + 1) === a; )
1785
1785
  i++, r++;
1786
- var o = 1 + (i & 1), s = i < 2 ? 1 : 3 + (i >> 1), h = "a", l = Ke(t);
1786
+ var o = 1 + (i & 1), s = i < 2 ? 1 : 3 + (i >> 1), h = "a", l = et(t);
1787
1787
  for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
1788
1788
  n += h;
1789
1789
  for (; o-- > 0; )
@@ -1793,7 +1793,7 @@ function $e(e, t) {
1793
1793
  }
1794
1794
  return n;
1795
1795
  }
1796
- function Ke(e) {
1796
+ function et(e) {
1797
1797
  var t = e.hourCycle;
1798
1798
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
1799
1799
  e.hourCycles && // @ts-ignore
@@ -1815,20 +1815,20 @@ function Ke(e) {
1815
1815
  var a = U[r || ""] || U[n || ""] || U["".concat(n, "-001")] || U["001"];
1816
1816
  return a[0];
1817
1817
  }
1818
- var X, et = new RegExp("^".concat(He.source, "*")), tt = new RegExp("".concat(He.source, "*$"));
1818
+ var X, tt = new RegExp("^".concat(Ie.source, "*")), rt = new RegExp("".concat(Ie.source, "*$"));
1819
1819
  function v(e, t) {
1820
1820
  return { start: e, end: t };
1821
1821
  }
1822
- var rt = !!String.prototype.startsWith && "_a".startsWith("a", 1), nt = !!String.fromCodePoint, at = !!Object.fromEntries, it = !!String.prototype.codePointAt, ot = !!String.prototype.trimStart, st = !!String.prototype.trimEnd, ht = !!Number.isSafeInteger, ut = ht ? Number.isSafeInteger : function(e) {
1822
+ var nt = !!String.prototype.startsWith && "_a".startsWith("a", 1), at = !!String.fromCodePoint, it = !!Object.fromEntries, ot = !!String.prototype.codePointAt, st = !!String.prototype.trimStart, ht = !!String.prototype.trimEnd, ut = !!Number.isSafeInteger, lt = ut ? Number.isSafeInteger : function(e) {
1823
1823
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
1824
1824
  }, q = !0;
1825
1825
  try {
1826
- var lt = _e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
1827
- q = ((X = lt.exec("a")) === null || X === void 0 ? void 0 : X[0]) === "a";
1826
+ var ft = Pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
1827
+ q = ((X = ft.exec("a")) === null || X === void 0 ? void 0 : X[0]) === "a";
1828
1828
  } catch {
1829
1829
  q = !1;
1830
1830
  }
1831
- var he = rt ? (
1831
+ var he = nt ? (
1832
1832
  // Native
1833
1833
  function(t, n, r) {
1834
1834
  return t.startsWith(n, r);
@@ -1838,7 +1838,7 @@ var he = rt ? (
1838
1838
  function(t, n, r) {
1839
1839
  return t.slice(r, r + n.length) === n;
1840
1840
  }
1841
- ), Q = nt ? String.fromCodePoint : (
1841
+ ), Q = at ? String.fromCodePoint : (
1842
1842
  // IE11
1843
1843
  function() {
1844
1844
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -1852,7 +1852,7 @@ var he = rt ? (
1852
1852
  }
1853
1853
  ), ue = (
1854
1854
  // native
1855
- at ? Object.fromEntries : (
1855
+ it ? Object.fromEntries : (
1856
1856
  // Ponyfill
1857
1857
  function(t) {
1858
1858
  for (var n = {}, r = 0, a = t; r < a.length; r++) {
@@ -1862,7 +1862,7 @@ var he = rt ? (
1862
1862
  return n;
1863
1863
  }
1864
1864
  )
1865
- ), Be = it ? (
1865
+ ), _e = ot ? (
1866
1866
  // Native
1867
1867
  function(t, n) {
1868
1868
  return t.codePointAt(n);
@@ -1876,7 +1876,7 @@ var he = rt ? (
1876
1876
  return a < 55296 || a > 56319 || n + 1 === r || (i = t.charCodeAt(n + 1)) < 56320 || i > 57343 ? a : (a - 55296 << 10) + (i - 56320) + 65536;
1877
1877
  }
1878
1878
  }
1879
- ), ft = ot ? (
1879
+ ), mt = st ? (
1880
1880
  // Native
1881
1881
  function(t) {
1882
1882
  return t.trimStart();
@@ -1884,9 +1884,9 @@ var he = rt ? (
1884
1884
  ) : (
1885
1885
  // Ponyfill
1886
1886
  function(t) {
1887
- return t.replace(et, "");
1887
+ return t.replace(tt, "");
1888
1888
  }
1889
- ), mt = st ? (
1889
+ ), ct = ht ? (
1890
1890
  // Native
1891
1891
  function(t) {
1892
1892
  return t.trimEnd();
@@ -1894,15 +1894,15 @@ var he = rt ? (
1894
1894
  ) : (
1895
1895
  // Ponyfill
1896
1896
  function(t) {
1897
- return t.replace(tt, "");
1897
+ return t.replace(rt, "");
1898
1898
  }
1899
1899
  );
1900
- function _e(e, t) {
1900
+ function Pe(e, t) {
1901
1901
  return new RegExp(e, t);
1902
1902
  }
1903
1903
  var Y;
1904
1904
  if (q) {
1905
- var le = _e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
1905
+ var le = Pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
1906
1906
  Y = function(t, n) {
1907
1907
  var r;
1908
1908
  le.lastIndex = n;
@@ -1912,14 +1912,14 @@ if (q) {
1912
1912
  } else
1913
1913
  Y = function(t, n) {
1914
1914
  for (var r = []; ; ) {
1915
- var a = Be(t, n);
1916
- if (a === void 0 || Pe(a) || vt(a))
1915
+ var a = _e(t, n);
1916
+ if (a === void 0 || Re(a) || Et(a))
1917
1917
  break;
1918
1918
  r.push(a), n += a >= 65536 ? 2 : 1;
1919
1919
  }
1920
1920
  return Q.apply(void 0, r);
1921
1921
  };
1922
- var ct = (
1922
+ var pt = (
1923
1923
  /** @class */
1924
1924
  function() {
1925
1925
  function e(t, n) {
@@ -1943,13 +1943,13 @@ var ct = (
1943
1943
  if (i === 35 && (n === "plural" || n === "selectordinal")) {
1944
1944
  var s = this.clonePosition();
1945
1945
  this.bump(), a.push({
1946
- type: b.pound,
1946
+ type: d.pound,
1947
1947
  location: v(s, this.clonePosition())
1948
1948
  });
1949
1949
  } else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
1950
1950
  if (r)
1951
1951
  break;
1952
- return this.error(g.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
1952
+ return this.error(p.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
1953
1953
  } else if (i === 60 && !this.ignoreTag && $(this.peek() || 0)) {
1954
1954
  var o = this.parseTag(t, n);
1955
1955
  if (o.err)
@@ -1971,7 +1971,7 @@ var ct = (
1971
1971
  if (this.bumpSpace(), this.bumpIf("/>"))
1972
1972
  return {
1973
1973
  val: {
1974
- type: b.literal,
1974
+ type: d.literal,
1975
1975
  value: "<".concat(a, "/>"),
1976
1976
  location: v(r, this.clonePosition())
1977
1977
  },
@@ -1984,24 +1984,24 @@ var ct = (
1984
1984
  var o = i.val, s = this.clonePosition();
1985
1985
  if (this.bumpIf("</")) {
1986
1986
  if (this.isEOF() || !$(this.char()))
1987
- return this.error(g.INVALID_TAG, v(s, this.clonePosition()));
1987
+ return this.error(p.INVALID_TAG, v(s, this.clonePosition()));
1988
1988
  var h = this.clonePosition(), l = this.parseTagName();
1989
- return a !== l ? this.error(g.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
1989
+ return a !== l ? this.error(p.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
1990
1990
  val: {
1991
- type: b.tag,
1991
+ type: d.tag,
1992
1992
  value: a,
1993
1993
  children: o,
1994
1994
  location: v(r, this.clonePosition())
1995
1995
  },
1996
1996
  err: null
1997
- } : this.error(g.INVALID_TAG, v(s, this.clonePosition())));
1997
+ } : this.error(p.INVALID_TAG, v(s, this.clonePosition())));
1998
1998
  } else
1999
- return this.error(g.UNCLOSED_TAG, v(r, this.clonePosition()));
1999
+ return this.error(p.UNCLOSED_TAG, v(r, this.clonePosition()));
2000
2000
  } else
2001
- return this.error(g.INVALID_TAG, v(r, this.clonePosition()));
2001
+ return this.error(p.INVALID_TAG, v(r, this.clonePosition()));
2002
2002
  }, e.prototype.parseTagName = function() {
2003
2003
  var t = this.offset();
2004
- for (this.bump(); !this.isEOF() && gt(this.char()); )
2004
+ for (this.bump(); !this.isEOF() && vt(this.char()); )
2005
2005
  this.bump();
2006
2006
  return this.message.slice(t, this.offset());
2007
2007
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2025,12 +2025,12 @@ var ct = (
2025
2025
  }
2026
2026
  var h = v(r, this.clonePosition());
2027
2027
  return {
2028
- val: { type: b.literal, value: a, location: h },
2028
+ val: { type: d.literal, value: a, location: h },
2029
2029
  err: null
2030
2030
  };
2031
2031
  }, e.prototype.tryParseLeftAngleBracket = function() {
2032
2032
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2033
- !pt(this.peek() || 0)) ? (this.bump(), "<") : null;
2033
+ !gt(this.peek() || 0)) ? (this.bump(), "<") : null;
2034
2034
  }, e.prototype.tryParseQuote = function(t) {
2035
2035
  if (this.isEOF() || this.char() !== 39)
2036
2036
  return null;
@@ -2073,19 +2073,19 @@ var ct = (
2073
2073
  }, e.prototype.parseArgument = function(t, n) {
2074
2074
  var r = this.clonePosition();
2075
2075
  if (this.bump(), this.bumpSpace(), this.isEOF())
2076
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition()));
2076
+ return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition()));
2077
2077
  if (this.char() === 125)
2078
- return this.bump(), this.error(g.EMPTY_ARGUMENT, v(r, this.clonePosition()));
2078
+ return this.bump(), this.error(p.EMPTY_ARGUMENT, v(r, this.clonePosition()));
2079
2079
  var a = this.parseIdentifierIfPossible().value;
2080
2080
  if (!a)
2081
- return this.error(g.MALFORMED_ARGUMENT, v(r, this.clonePosition()));
2081
+ return this.error(p.MALFORMED_ARGUMENT, v(r, this.clonePosition()));
2082
2082
  if (this.bumpSpace(), this.isEOF())
2083
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition()));
2083
+ return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition()));
2084
2084
  switch (this.char()) {
2085
2085
  case 125:
2086
2086
  return this.bump(), {
2087
2087
  val: {
2088
- type: b.argument,
2088
+ type: d.argument,
2089
2089
  // value does not include the opening and closing braces.
2090
2090
  value: a,
2091
2091
  location: v(r, this.clonePosition())
@@ -2093,9 +2093,9 @@ var ct = (
2093
2093
  err: null
2094
2094
  };
2095
2095
  case 44:
2096
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition())) : this.parseArgumentOptions(t, n, a, r);
2096
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition())) : this.parseArgumentOptions(t, n, a, r);
2097
2097
  default:
2098
- return this.error(g.MALFORMED_ARGUMENT, v(r, this.clonePosition()));
2098
+ return this.error(p.MALFORMED_ARGUMENT, v(r, this.clonePosition()));
2099
2099
  }
2100
2100
  }, e.prototype.parseIdentifierIfPossible = function() {
2101
2101
  var t = this.clonePosition(), n = this.offset(), r = Y(this.message, n), a = n + r.length;
@@ -2106,7 +2106,7 @@ var ct = (
2106
2106
  var i, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2107
2107
  switch (s) {
2108
2108
  case "":
2109
- return this.error(g.EXPECT_ARGUMENT_TYPE, v(o, h));
2109
+ return this.error(p.EXPECT_ARGUMENT_TYPE, v(o, h));
2110
2110
  case "number":
2111
2111
  case "date":
2112
2112
  case "time": {
@@ -2114,49 +2114,49 @@ var ct = (
2114
2114
  var l = null;
2115
2115
  if (this.bumpIf(",")) {
2116
2116
  this.bumpSpace();
2117
- var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2118
- if (c.err)
2119
- return c;
2120
- var m = mt(c.val);
2121
- if (m.length === 0)
2122
- return this.error(g.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
2123
- var p = v(u, this.clonePosition());
2124
- l = { style: m, styleLocation: p };
2117
+ var u = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2118
+ if (m.err)
2119
+ return m;
2120
+ var c = ct(m.val);
2121
+ if (c.length === 0)
2122
+ return this.error(p.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
2123
+ var E = v(u, this.clonePosition());
2124
+ l = { style: c, styleLocation: E };
2125
2125
  }
2126
- var d = this.tryParseArgumentClose(a);
2127
- if (d.err)
2128
- return d;
2129
- var E = v(a, this.clonePosition());
2126
+ var y = this.tryParseArgumentClose(a);
2127
+ if (y.err)
2128
+ return y;
2129
+ var g = v(a, this.clonePosition());
2130
2130
  if (l && he(l == null ? void 0 : l.style, "::", 0)) {
2131
- var x = ft(l.style.slice(2));
2131
+ var b = mt(l.style.slice(2));
2132
2132
  if (s === "number") {
2133
- var c = this.parseNumberSkeletonFromString(x, l.styleLocation);
2134
- return c.err ? c : {
2135
- val: { type: b.number, value: r, location: E, style: c.val },
2133
+ var m = this.parseNumberSkeletonFromString(b, l.styleLocation);
2134
+ return m.err ? m : {
2135
+ val: { type: d.number, value: r, location: g, style: m.val },
2136
2136
  err: null
2137
2137
  };
2138
2138
  } else {
2139
- if (x.length === 0)
2140
- return this.error(g.EXPECT_DATE_TIME_SKELETON, E);
2141
- var y = x;
2142
- this.locale && (y = $e(x, this.locale));
2143
- var m = {
2139
+ if (b.length === 0)
2140
+ return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
2141
+ var x = b;
2142
+ this.locale && (x = Ke(b, this.locale));
2143
+ var c = {
2144
2144
  type: D.dateTime,
2145
- pattern: y,
2145
+ pattern: x,
2146
2146
  location: l.styleLocation,
2147
- parsedOptions: this.shouldParseSkeletons ? We(y) : {}
2148
- }, H = s === "date" ? b.date : b.time;
2147
+ parsedOptions: this.shouldParseSkeletons ? Ze(x) : {}
2148
+ }, H = s === "date" ? d.date : d.time;
2149
2149
  return {
2150
- val: { type: H, value: r, location: E, style: m },
2150
+ val: { type: H, value: r, location: g, style: c },
2151
2151
  err: null
2152
2152
  };
2153
2153
  }
2154
2154
  }
2155
2155
  return {
2156
2156
  val: {
2157
- type: s === "number" ? b.number : s === "date" ? b.date : b.time,
2157
+ type: s === "number" ? d.number : s === "date" ? d.date : d.time,
2158
2158
  value: r,
2159
- location: E,
2159
+ location: g,
2160
2160
  style: (i = l == null ? void 0 : l.style) !== null && i !== void 0 ? i : null
2161
2161
  },
2162
2162
  err: null
@@ -2167,28 +2167,28 @@ var ct = (
2167
2167
  case "select": {
2168
2168
  var T = this.clonePosition();
2169
2169
  if (this.bumpSpace(), !this.bumpIf(","))
2170
- return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, v(T, f({}, T)));
2170
+ return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, v(T, f({}, T)));
2171
2171
  this.bumpSpace();
2172
2172
  var w = this.parseIdentifierIfPossible(), L = 0;
2173
2173
  if (s !== "select" && w.value === "offset") {
2174
2174
  if (!this.bumpIf(":"))
2175
- return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
2175
+ return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
2176
2176
  this.bumpSpace();
2177
- var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2178
- if (c.err)
2179
- return c;
2180
- this.bumpSpace(), w = this.parseIdentifierIfPossible(), L = c.val;
2177
+ var m = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2178
+ if (m.err)
2179
+ return m;
2180
+ this.bumpSpace(), w = this.parseIdentifierIfPossible(), L = m.val;
2181
2181
  }
2182
2182
  var G = this.tryParsePluralOrSelectOptions(t, s, n, w);
2183
2183
  if (G.err)
2184
2184
  return G;
2185
- var d = this.tryParseArgumentClose(a);
2186
- if (d.err)
2187
- return d;
2185
+ var y = this.tryParseArgumentClose(a);
2186
+ if (y.err)
2187
+ return y;
2188
2188
  var ne = v(a, this.clonePosition());
2189
2189
  return s === "select" ? {
2190
2190
  val: {
2191
- type: b.select,
2191
+ type: d.select,
2192
2192
  value: r,
2193
2193
  options: ue(G.val),
2194
2194
  location: ne
@@ -2196,7 +2196,7 @@ var ct = (
2196
2196
  err: null
2197
2197
  } : {
2198
2198
  val: {
2199
- type: b.plural,
2199
+ type: d.plural,
2200
2200
  value: r,
2201
2201
  options: ue(G.val),
2202
2202
  offset: L,
@@ -2207,10 +2207,10 @@ var ct = (
2207
2207
  };
2208
2208
  }
2209
2209
  default:
2210
- return this.error(g.INVALID_ARGUMENT_TYPE, v(o, h));
2210
+ return this.error(p.INVALID_ARGUMENT_TYPE, v(o, h));
2211
2211
  }
2212
2212
  }, e.prototype.tryParseArgumentClose = function(t) {
2213
- return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2213
+ return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2214
2214
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2215
2215
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2216
2216
  var r = this.char();
@@ -2219,7 +2219,7 @@ var ct = (
2219
2219
  this.bump();
2220
2220
  var a = this.clonePosition();
2221
2221
  if (!this.bumpUntil("'"))
2222
- return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(a, this.clonePosition()));
2222
+ return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(a, this.clonePosition()));
2223
2223
  this.bump();
2224
2224
  break;
2225
2225
  }
@@ -2249,52 +2249,52 @@ var ct = (
2249
2249
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2250
2250
  var r = [];
2251
2251
  try {
2252
- r = ze(t);
2252
+ r = Je(t);
2253
2253
  } catch {
2254
- return this.error(g.INVALID_NUMBER_SKELETON, n);
2254
+ return this.error(p.INVALID_NUMBER_SKELETON, n);
2255
2255
  }
2256
2256
  return {
2257
2257
  val: {
2258
2258
  type: D.number,
2259
2259
  tokens: r,
2260
2260
  location: n,
2261
- parsedOptions: this.shouldParseSkeletons ? Ye(r) : {}
2261
+ parsedOptions: this.shouldParseSkeletons ? $e(r) : {}
2262
2262
  },
2263
2263
  err: null
2264
2264
  };
2265
2265
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, a) {
2266
2266
  for (var i, o = !1, s = [], h = /* @__PURE__ */ new Set(), l = a.value, u = a.location; ; ) {
2267
2267
  if (l.length === 0) {
2268
- var c = this.clonePosition();
2268
+ var m = this.clonePosition();
2269
2269
  if (n !== "select" && this.bumpIf("=")) {
2270
- var m = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
2271
- if (m.err)
2272
- return m;
2273
- u = v(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
2270
+ var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
2271
+ if (c.err)
2272
+ return c;
2273
+ u = v(m, this.clonePosition()), l = this.message.slice(m.offset, this.offset());
2274
2274
  } else
2275
2275
  break;
2276
2276
  }
2277
2277
  if (h.has(l))
2278
- return this.error(n === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
2278
+ return this.error(n === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
2279
2279
  l === "other" && (o = !0), this.bumpSpace();
2280
- var p = this.clonePosition();
2280
+ var E = this.clonePosition();
2281
2281
  if (!this.bumpIf("{"))
2282
- return this.error(n === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
2283
- var d = this.parseMessage(t + 1, n, r);
2284
- if (d.err)
2285
- return d;
2286
- var E = this.tryParseArgumentClose(p);
2287
- if (E.err)
2288
- return E;
2282
+ return this.error(n === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
2283
+ var y = this.parseMessage(t + 1, n, r);
2284
+ if (y.err)
2285
+ return y;
2286
+ var g = this.tryParseArgumentClose(E);
2287
+ if (g.err)
2288
+ return g;
2289
2289
  s.push([
2290
2290
  l,
2291
2291
  {
2292
- value: d.val,
2293
- location: v(p, this.clonePosition())
2292
+ value: y.val,
2293
+ location: v(E, this.clonePosition())
2294
2294
  }
2295
2295
  ]), h.add(l), this.bumpSpace(), i = this.parseIdentifierIfPossible(), l = i.value, u = i.location;
2296
2296
  }
2297
- return s.length === 0 ? this.error(n === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(g.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2297
+ return s.length === 0 ? this.error(n === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(p.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2298
2298
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
2299
2299
  var r = 1, a = this.clonePosition();
2300
2300
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
@@ -2306,7 +2306,7 @@ var ct = (
2306
2306
  break;
2307
2307
  }
2308
2308
  var h = v(a, this.clonePosition());
2309
- return i ? (o *= r, ut(o) ? { val: o, err: null } : this.error(n, h)) : this.error(t, h);
2309
+ return i ? (o *= r, lt(o) ? { val: o, err: null } : this.error(n, h)) : this.error(t, h);
2310
2310
  }, e.prototype.offset = function() {
2311
2311
  return this.position.offset;
2312
2312
  }, e.prototype.isEOF = function() {
@@ -2321,7 +2321,7 @@ var ct = (
2321
2321
  var t = this.position.offset;
2322
2322
  if (t >= this.message.length)
2323
2323
  throw Error("out of bound");
2324
- var n = Be(this.message, t);
2324
+ var n = _e(this.message, t);
2325
2325
  if (n === void 0)
2326
2326
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2327
2327
  return n;
@@ -2362,7 +2362,7 @@ var ct = (
2362
2362
  break;
2363
2363
  }
2364
2364
  }, e.prototype.bumpSpace = function() {
2365
- for (; !this.isEOF() && Pe(this.char()); )
2365
+ for (; !this.isEOF() && Re(this.char()); )
2366
2366
  this.bump();
2367
2367
  }, e.prototype.peek = function() {
2368
2368
  if (this.isEOF())
@@ -2375,68 +2375,68 @@ var ct = (
2375
2375
  function $(e) {
2376
2376
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
2377
2377
  }
2378
- function pt(e) {
2378
+ function gt(e) {
2379
2379
  return $(e) || e === 47;
2380
2380
  }
2381
- function gt(e) {
2381
+ function vt(e) {
2382
2382
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
2383
2383
  }
2384
- function Pe(e) {
2384
+ function Re(e) {
2385
2385
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
2386
2386
  }
2387
- function vt(e) {
2387
+ function Et(e) {
2388
2388
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
2389
2389
  }
2390
2390
  function K(e) {
2391
2391
  e.forEach(function(t) {
2392
- if (delete t.location, xe(t) || ye(t))
2392
+ if (delete t.location, ye(t) || Te(t))
2393
2393
  for (var n in t.options)
2394
2394
  delete t.options[n].location, K(t.options[n].value);
2395
2395
  else
2396
- Ee(t) && Se(t.style) || (be(t) || de(t)) && J(t.style) ? delete t.style.location : Te(t) && K(t.children);
2396
+ be(t) && He(t.style) || (de(t) || xe(t)) && J(t.style) ? delete t.style.location : Se(t) && K(t.children);
2397
2397
  });
2398
2398
  }
2399
- function Et(e, t) {
2399
+ function bt(e, t) {
2400
2400
  t === void 0 && (t = {}), t = f({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
2401
- var n = new ct(e, t).parse();
2401
+ var n = new pt(e, t).parse();
2402
2402
  if (n.err) {
2403
- var r = SyntaxError(g[n.err.kind]);
2403
+ var r = SyntaxError(p[n.err.kind]);
2404
2404
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
2405
2405
  }
2406
2406
  return t != null && t.captureLocation || K(n.val), n.val;
2407
2407
  }
2408
2408
  function A(e, t) {
2409
- var n = t && t.cache ? t.cache : St, r = t && t.serializer ? t.serializer : Tt, a = t && t.strategy ? t.strategy : dt;
2409
+ var n = t && t.cache ? t.cache : Ht, r = t && t.serializer ? t.serializer : St, a = t && t.strategy ? t.strategy : xt;
2410
2410
  return a(e, {
2411
2411
  cache: n,
2412
2412
  serializer: r
2413
2413
  });
2414
2414
  }
2415
- function bt(e) {
2415
+ function dt(e) {
2416
2416
  return e == null || typeof e == "number" || typeof e == "boolean";
2417
2417
  }
2418
- function Re(e, t, n, r) {
2419
- var a = bt(r) ? r : n(r), i = t.get(a);
2418
+ function Le(e, t, n, r) {
2419
+ var a = dt(r) ? r : n(r), i = t.get(a);
2420
2420
  return typeof i > "u" && (i = e.call(this, r), t.set(a, i)), i;
2421
2421
  }
2422
- function Le(e, t, n) {
2422
+ function Oe(e, t, n) {
2423
2423
  var r = Array.prototype.slice.call(arguments, 3), a = n(r), i = t.get(a);
2424
2424
  return typeof i > "u" && (i = e.apply(this, r), t.set(a, i)), i;
2425
2425
  }
2426
2426
  function ee(e, t, n, r, a) {
2427
2427
  return n.bind(t, e, r, a);
2428
2428
  }
2429
- function dt(e, t) {
2430
- var n = e.length === 1 ? Re : Le;
2431
- return ee(e, this, n, t.cache.create(), t.serializer);
2432
- }
2433
2429
  function xt(e, t) {
2434
- return ee(e, this, Le, t.cache.create(), t.serializer);
2430
+ var n = e.length === 1 ? Le : Oe;
2431
+ return ee(e, this, n, t.cache.create(), t.serializer);
2435
2432
  }
2436
2433
  function yt(e, t) {
2437
- return ee(e, this, Re, t.cache.create(), t.serializer);
2434
+ return ee(e, this, Oe, t.cache.create(), t.serializer);
2435
+ }
2436
+ function Tt(e, t) {
2437
+ return ee(e, this, Le, t.cache.create(), t.serializer);
2438
2438
  }
2439
- var Tt = function() {
2439
+ var St = function() {
2440
2440
  return JSON.stringify(arguments);
2441
2441
  };
2442
2442
  function te() {
@@ -2448,13 +2448,13 @@ te.prototype.get = function(e) {
2448
2448
  te.prototype.set = function(e, t) {
2449
2449
  this.cache[e] = t;
2450
2450
  };
2451
- var St = {
2451
+ var Ht = {
2452
2452
  create: function() {
2453
2453
  return new te();
2454
2454
  }
2455
2455
  }, B = {
2456
- variadic: xt,
2457
- monadic: yt
2456
+ variadic: yt,
2457
+ monadic: Tt
2458
2458
  }, _;
2459
2459
  (function(e) {
2460
2460
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
@@ -2480,7 +2480,7 @@ var R = (
2480
2480
  }
2481
2481
  return t;
2482
2482
  }(R)
2483
- ), Ht = (
2483
+ ), It = (
2484
2484
  /** @class */
2485
2485
  function(e) {
2486
2486
  N(t, e);
@@ -2489,7 +2489,7 @@ var R = (
2489
2489
  }
2490
2490
  return t;
2491
2491
  }(R)
2492
- ), It = (
2492
+ ), Nt = (
2493
2493
  /** @class */
2494
2494
  function(e) {
2495
2495
  N(t, e);
@@ -2502,13 +2502,13 @@ var R = (
2502
2502
  (function(e) {
2503
2503
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
2504
2504
  })(S || (S = {}));
2505
- function Nt(e) {
2505
+ function At(e) {
2506
2506
  return e.length < 2 ? e : e.reduce(function(t, n) {
2507
2507
  var r = t[t.length - 1];
2508
2508
  return !r || r.type !== S.literal || n.type !== S.literal ? t.push(n) : r.value += n.value, t;
2509
2509
  }, []);
2510
2510
  }
2511
- function At(e) {
2511
+ function Bt(e) {
2512
2512
  return typeof e == "function";
2513
2513
  }
2514
2514
  function k(e, t, n, r, a, i, o) {
@@ -2528,53 +2528,53 @@ function k(e, t, n, r, a, i, o) {
2528
2528
  });
2529
2529
  continue;
2530
2530
  }
2531
- if (je(u)) {
2531
+ if (Xe(u)) {
2532
2532
  typeof i == "number" && s.push({
2533
2533
  type: S.literal,
2534
2534
  value: n.getNumberFormat(t).format(i)
2535
2535
  });
2536
2536
  continue;
2537
2537
  }
2538
- var c = u.value;
2539
- if (!(a && c in a))
2540
- throw new It(c, o);
2541
- var m = a[c];
2542
- if (ke(u)) {
2543
- (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
2544
- type: typeof m == "string" ? S.literal : S.object,
2545
- value: m
2538
+ var m = u.value;
2539
+ if (!(a && m in a))
2540
+ throw new Nt(m, o);
2541
+ var c = a[m];
2542
+ if (je(u)) {
2543
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
2544
+ type: typeof c == "string" ? S.literal : S.object,
2545
+ value: c
2546
2546
  });
2547
2547
  continue;
2548
2548
  }
2549
- if (be(u)) {
2550
- var p = typeof u.style == "string" ? r.date[u.style] : J(u.style) ? u.style.parsedOptions : void 0;
2549
+ if (de(u)) {
2550
+ var E = typeof u.style == "string" ? r.date[u.style] : J(u.style) ? u.style.parsedOptions : void 0;
2551
2551
  s.push({
2552
2552
  type: S.literal,
2553
- value: n.getDateTimeFormat(t, p).format(m)
2553
+ value: n.getDateTimeFormat(t, E).format(c)
2554
2554
  });
2555
2555
  continue;
2556
2556
  }
2557
- if (de(u)) {
2558
- var p = typeof u.style == "string" ? r.time[u.style] : J(u.style) ? u.style.parsedOptions : r.time.medium;
2557
+ if (xe(u)) {
2558
+ var E = typeof u.style == "string" ? r.time[u.style] : J(u.style) ? u.style.parsedOptions : r.time.medium;
2559
2559
  s.push({
2560
2560
  type: S.literal,
2561
- value: n.getDateTimeFormat(t, p).format(m)
2561
+ value: n.getDateTimeFormat(t, E).format(c)
2562
2562
  });
2563
2563
  continue;
2564
2564
  }
2565
- if (Ee(u)) {
2566
- var p = typeof u.style == "string" ? r.number[u.style] : Se(u.style) ? u.style.parsedOptions : void 0;
2567
- p && p.scale && (m = m * (p.scale || 1)), s.push({
2565
+ if (be(u)) {
2566
+ var E = typeof u.style == "string" ? r.number[u.style] : He(u.style) ? u.style.parsedOptions : void 0;
2567
+ E && E.scale && (c = c * (E.scale || 1)), s.push({
2568
2568
  type: S.literal,
2569
- value: n.getNumberFormat(t, p).format(m)
2569
+ value: n.getNumberFormat(t, E).format(c)
2570
2570
  });
2571
2571
  continue;
2572
2572
  }
2573
- if (Te(u)) {
2574
- var d = u.children, E = u.value, x = a[E];
2575
- if (!At(x))
2576
- throw new Ht(E, "function", o);
2577
- var y = k(d, t, n, r, a, i), H = x(y.map(function(L) {
2573
+ if (Se(u)) {
2574
+ var y = u.children, g = u.value, b = a[g];
2575
+ if (!Bt(b))
2576
+ throw new It(g, "function", o);
2577
+ var x = k(y, t, n, r, a, i), H = b(x.map(function(L) {
2578
2578
  return L.value;
2579
2579
  }));
2580
2580
  Array.isArray(H) || (H = [H]), s.push.apply(s, H.map(function(L) {
@@ -2584,39 +2584,39 @@ function k(e, t, n, r, a, i, o) {
2584
2584
  };
2585
2585
  }));
2586
2586
  }
2587
- if (xe(u)) {
2588
- var T = u.options[m] || u.options.other;
2587
+ if (ye(u)) {
2588
+ var T = u.options[c] || u.options.other;
2589
2589
  if (!T)
2590
- throw new fe(u.value, m, Object.keys(u.options), o);
2590
+ throw new fe(u.value, c, Object.keys(u.options), o);
2591
2591
  s.push.apply(s, k(T.value, t, n, r, a));
2592
2592
  continue;
2593
2593
  }
2594
- if (ye(u)) {
2595
- var T = u.options["=".concat(m)];
2594
+ if (Te(u)) {
2595
+ var T = u.options["=".concat(c)];
2596
2596
  if (!T) {
2597
2597
  if (!Intl.PluralRules)
2598
2598
  throw new R(`Intl.PluralRules is not available in this environment.
2599
2599
  Try polyfilling it using "@formatjs/intl-pluralrules"
2600
2600
  `, _.MISSING_INTL_API, o);
2601
- var w = n.getPluralRules(t, { type: u.pluralType }).select(m - (u.offset || 0));
2601
+ var w = n.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
2602
2602
  T = u.options[w] || u.options.other;
2603
2603
  }
2604
2604
  if (!T)
2605
- throw new fe(u.value, m, Object.keys(u.options), o);
2606
- s.push.apply(s, k(T.value, t, n, r, a, m - (u.offset || 0)));
2605
+ throw new fe(u.value, c, Object.keys(u.options), o);
2606
+ s.push.apply(s, k(T.value, t, n, r, a, c - (u.offset || 0)));
2607
2607
  continue;
2608
2608
  }
2609
2609
  }
2610
- return Nt(s);
2610
+ return At(s);
2611
2611
  }
2612
- function Bt(e, t) {
2612
+ function _t(e, t) {
2613
2613
  return t ? f(f(f({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
2614
2614
  return n[r] = f(f({}, e[r]), t[r] || {}), n;
2615
2615
  }, {})) : e;
2616
2616
  }
2617
- function _t(e, t) {
2617
+ function Pt(e, t) {
2618
2618
  return t ? Object.keys(e).reduce(function(n, r) {
2619
- return n[r] = Bt(e[r], t[r]), n;
2619
+ return n[r] = _t(e[r], t[r]), n;
2620
2620
  }, f({}, e)) : e;
2621
2621
  }
2622
2622
  function W(e) {
@@ -2633,7 +2633,7 @@ function W(e) {
2633
2633
  }
2634
2634
  };
2635
2635
  }
2636
- function Pt(e) {
2636
+ function Rt(e) {
2637
2637
  return e === void 0 && (e = {
2638
2638
  number: {},
2639
2639
  dateTime: {},
@@ -2665,7 +2665,7 @@ function Pt(e) {
2665
2665
  })
2666
2666
  };
2667
2667
  }
2668
- var Oe = (
2668
+ var Me = (
2669
2669
  /** @class */
2670
2670
  function() {
2671
2671
  function e(t, n, r, a) {
@@ -2678,8 +2678,8 @@ var Oe = (
2678
2678
  var l = i.formatToParts(h);
2679
2679
  if (l.length === 1)
2680
2680
  return l[0].value;
2681
- var u = l.reduce(function(c, m) {
2682
- return !c.length || m.type !== S.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
2681
+ var u = l.reduce(function(m, c) {
2682
+ return !m.length || c.type !== S.literal || typeof m[m.length - 1] != "string" ? m.push(c.value) : m[m.length - 1] += c.value, m;
2683
2683
  }, []);
2684
2684
  return u.length <= 1 ? u[0] || "" : u;
2685
2685
  }, this.formatToParts = function(h) {
@@ -2696,13 +2696,13 @@ var Oe = (
2696
2696
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
2697
2697
  var o = a || {};
2698
2698
  o.formatters;
2699
- var s = Ve(o, ["formatters"]);
2699
+ var s = ke(o, ["formatters"]);
2700
2700
  this.ast = e.__parse(t, f(f({}, s), { locale: this.resolvedLocale }));
2701
2701
  } else
2702
2702
  this.ast = t;
2703
2703
  if (!Array.isArray(this.ast))
2704
2704
  throw new TypeError("A message must be provided as a String or AST.");
2705
- this.formats = _t(e.formats, r), this.formatters = a && a.formatters || Pt(this.formatterCache);
2705
+ this.formats = Pt(e.formats, r), this.formatters = a && a.formatters || Rt(this.formatterCache);
2706
2706
  }
2707
2707
  return Object.defineProperty(e, "defaultLocale", {
2708
2708
  get: function() {
@@ -2715,7 +2715,7 @@ var Oe = (
2715
2715
  var n = Intl.NumberFormat.supportedLocalesOf(t);
2716
2716
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
2717
2717
  }
2718
- }, e.__parse = Et, e.formats = {
2718
+ }, e.__parse = bt, e.formats = {
2719
2719
  number: {
2720
2720
  integer: {
2721
2721
  maximumFractionDigits: 0
@@ -2792,7 +2792,7 @@ var F = (
2792
2792
  }
2793
2793
  return t;
2794
2794
  }(Error)
2795
- ), Rt = (
2795
+ ), Lt = (
2796
2796
  /** @class */
2797
2797
  function(e) {
2798
2798
  N(t, e);
@@ -2801,7 +2801,7 @@ var F = (
2801
2801
  }
2802
2802
  return t;
2803
2803
  }(F)
2804
- ), Lt = (
2804
+ ), Ot = (
2805
2805
  /** @class */
2806
2806
  function(e) {
2807
2807
  N(t, e);
@@ -2845,7 +2845,7 @@ Description: `).concat(a == null ? void 0 : a.description, `
2845
2845
  }
2846
2846
  return t;
2847
2847
  }(I)
2848
- ), Ot = (
2848
+ ), Mt = (
2849
2849
  /** @class */
2850
2850
  function(e) {
2851
2851
  N(t, e);
@@ -2864,21 +2864,21 @@ function C(e, t, n) {
2864
2864
  return a in e ? r[a] = e[a] : a in n && (r[a] = n[a]), r;
2865
2865
  }, {});
2866
2866
  }
2867
- var Mt = function(e) {
2867
+ var Ct = function(e) {
2868
2868
  process.env.NODE_ENV !== "production" && console.error(e);
2869
- }, Ct = function(e) {
2869
+ }, Dt = function(e) {
2870
2870
  process.env.NODE_ENV !== "production" && console.warn(e);
2871
- }, Dt = {
2871
+ }, wt = {
2872
2872
  formats: {},
2873
2873
  messages: {},
2874
2874
  timeZone: void 0,
2875
2875
  defaultLocale: "en",
2876
2876
  defaultFormats: {},
2877
2877
  fallbackOnEmptyString: !0,
2878
- onError: Mt,
2879
- onWarn: Ct
2878
+ onError: Ct,
2879
+ onWarn: Dt
2880
2880
  };
2881
- function Me() {
2881
+ function Ce() {
2882
2882
  return {
2883
2883
  dateTime: {},
2884
2884
  number: {},
@@ -2903,8 +2903,8 @@ function O(e) {
2903
2903
  }
2904
2904
  };
2905
2905
  }
2906
- function wt(e) {
2907
- e === void 0 && (e = Me());
2906
+ function Ft(e) {
2907
+ e === void 0 && (e = Ce());
2908
2908
  var t = Intl.RelativeTimeFormat, n = Intl.ListFormat, r = Intl.DisplayNames, a = A(function() {
2909
2909
  for (var s, h = [], l = 0; l < arguments.length; l++)
2910
2910
  h[l] = arguments[l];
@@ -2931,7 +2931,7 @@ function wt(e) {
2931
2931
  getDateTimeFormat: a,
2932
2932
  getNumberFormat: i,
2933
2933
  getMessageFormat: A(function(s, h, l, u) {
2934
- return new Oe(s, h, l, f({ formatters: {
2934
+ return new Me(s, h, l, f({ formatters: {
2935
2935
  getNumberFormat: i,
2936
2936
  getDateTimeFormat: a,
2937
2937
  getPluralRules: o
@@ -2971,9 +2971,9 @@ function re(e, t, n, r) {
2971
2971
  var a = e && e[t], i;
2972
2972
  if (a && (i = a[n]), i)
2973
2973
  return i;
2974
- r(new Rt("No ".concat(t, " format named: ").concat(n)));
2974
+ r(new Lt("No ".concat(t, " format named: ").concat(n)));
2975
2975
  }
2976
- function Ft(e, t, n) {
2976
+ function Gt(e, t, n) {
2977
2977
  if (n === void 0 && (n = Error), !e)
2978
2978
  throw new n(t);
2979
2979
  }
@@ -2991,51 +2991,51 @@ function ce(e, t) {
2991
2991
  function pe(e, t) {
2992
2992
  if (!t)
2993
2993
  return e;
2994
- var n = Oe.formats;
2994
+ var n = Me.formats;
2995
2995
  return f(f(f({}, n), e), { date: ce(V(n.date, t), V(e.date || {}, t)), time: ce(V(n.time, t), V(e.time || {}, t)) });
2996
2996
  }
2997
2997
  var ge = function(e, t, n, r, a) {
2998
- var i = e.locale, o = e.formats, s = e.messages, h = e.defaultLocale, l = e.defaultFormats, u = e.fallbackOnEmptyString, c = e.onError, m = e.timeZone, p = e.defaultRichTextElements;
2998
+ var i = e.locale, o = e.formats, s = e.messages, h = e.defaultLocale, l = e.defaultFormats, u = e.fallbackOnEmptyString, m = e.onError, c = e.timeZone, E = e.defaultRichTextElements;
2999
2999
  n === void 0 && (n = { id: "" });
3000
- var d = n.id, E = n.defaultMessage;
3001
- Ft(!!d, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
3002
- var x = String(d), y = (
3000
+ var y = n.id, g = n.defaultMessage;
3001
+ Gt(!!y, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
3002
+ var b = String(y), x = (
3003
3003
  // In case messages is Object.create(null)
3004
3004
  // e.g import('foo.json') from webpack)
3005
3005
  // See https://github.com/formatjs/formatjs/issues/1914
3006
- s && Object.prototype.hasOwnProperty.call(s, x) && s[x]
3006
+ s && Object.prototype.hasOwnProperty.call(s, b) && s[b]
3007
3007
  );
3008
- if (Array.isArray(y) && y.length === 1 && y[0].type === b.literal)
3009
- return y[0].value;
3010
- if (!r && y && typeof y == "string" && !p)
3011
- return y.replace(/'\{(.*?)\}'/gi, "{$1}");
3012
- if (r = f(f({}, p), r || {}), o = pe(o, m), l = pe(l, m), !y) {
3013
- if (u === !1 && y === "")
3014
- return y;
3015
- if ((!E || i && i.toLowerCase() !== h.toLowerCase()) && c(new Ot(n, i)), E)
3008
+ if (Array.isArray(x) && x.length === 1 && x[0].type === d.literal)
3009
+ return x[0].value;
3010
+ if (!r && x && typeof x == "string" && !E)
3011
+ return x.replace(/'\{(.*?)\}'/gi, "{$1}");
3012
+ if (r = f(f({}, E), r || {}), o = pe(o, c), l = pe(l, c), !x) {
3013
+ if (u === !1 && x === "")
3014
+ return x;
3015
+ if ((!g || i && i.toLowerCase() !== h.toLowerCase()) && m(new Mt(n, i)), g)
3016
3016
  try {
3017
- var H = t.getMessageFormat(E, h, l, a);
3017
+ var H = t.getMessageFormat(g, h, l, a);
3018
3018
  return H.format(r);
3019
3019
  } catch (T) {
3020
- return c(new Z('Error formatting default message for: "'.concat(x, '", rendering default message verbatim'), i, n, T)), typeof E == "string" ? E : x;
3020
+ return m(new Z('Error formatting default message for: "'.concat(b, '", rendering default message verbatim'), i, n, T)), typeof g == "string" ? g : b;
3021
3021
  }
3022
- return x;
3022
+ return b;
3023
3023
  }
3024
3024
  try {
3025
- var H = t.getMessageFormat(y, i, o, f({ formatters: t }, a || {}));
3025
+ var H = t.getMessageFormat(x, i, o, f({ formatters: t }, a || {}));
3026
3026
  return H.format(r);
3027
3027
  } catch (T) {
3028
- c(new Z('Error formatting message: "'.concat(x, '", using ').concat(E ? "default message" : "id", " as fallback."), i, n, T));
3028
+ m(new Z('Error formatting message: "'.concat(b, '", using ').concat(g ? "default message" : "id", " as fallback."), i, n, T));
3029
3029
  }
3030
- if (E)
3030
+ if (g)
3031
3031
  try {
3032
- var H = t.getMessageFormat(E, h, l, a);
3032
+ var H = t.getMessageFormat(g, h, l, a);
3033
3033
  return H.format(r);
3034
3034
  } catch (T) {
3035
- c(new Z('Error formatting the default message for: "'.concat(x, '", rendering message verbatim'), i, n, T));
3035
+ m(new Z('Error formatting the default message for: "'.concat(b, '", rendering message verbatim'), i, n, T));
3036
3036
  }
3037
- return typeof y == "string" ? y : typeof E == "string" ? E : x;
3038
- }, Ce = [
3037
+ return typeof x == "string" ? x : typeof g == "string" ? g : b;
3038
+ }, De = [
3039
3039
  "formatMatcher",
3040
3040
  "timeZone",
3041
3041
  "hour12",
@@ -3059,10 +3059,10 @@ var ge = function(e, t, n, r, a) {
3059
3059
  function j(e, t, n, r) {
3060
3060
  var a = e.locale, i = e.formats, o = e.onError, s = e.timeZone;
3061
3061
  r === void 0 && (r = {});
3062
- var h = r.format, l = f(f({}, s && { timeZone: s }), h && re(i, t, h, o)), u = C(r, Ce, l);
3062
+ var h = r.format, l = f(f({}, s && { timeZone: s }), h && re(i, t, h, o)), u = C(r, De, l);
3063
3063
  return t === "time" && !u.hour && !u.minute && !u.second && !u.timeStyle && !u.dateStyle && (u = f(f({}, u), { hour: "numeric", minute: "numeric" })), n(a, u);
3064
3064
  }
3065
- function Gt(e, t) {
3065
+ function Ut(e, t) {
3066
3066
  for (var n = [], r = 2; r < arguments.length; r++)
3067
3067
  n[r - 2] = arguments[r];
3068
3068
  var a = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
@@ -3073,7 +3073,7 @@ function Gt(e, t) {
3073
3073
  }
3074
3074
  return String(s);
3075
3075
  }
3076
- function Ut(e, t) {
3076
+ function Vt(e, t) {
3077
3077
  for (var n = [], r = 2; r < arguments.length; r++)
3078
3078
  n[r - 2] = arguments[r];
3079
3079
  var a = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
@@ -3084,18 +3084,18 @@ function Ut(e, t) {
3084
3084
  }
3085
3085
  return String(s);
3086
3086
  }
3087
- function Vt(e, t) {
3087
+ function kt(e, t) {
3088
3088
  for (var n = [], r = 2; r < arguments.length; r++)
3089
3089
  n[r - 2] = arguments[r];
3090
- var a = n[0], i = n[1], o = n[2], s = o === void 0 ? {} : o, h = e.timeZone, l = e.locale, u = e.onError, c = C(s, Ce, h ? { timeZone: h } : {});
3090
+ var a = n[0], i = n[1], o = n[2], s = o === void 0 ? {} : o, h = e.timeZone, l = e.locale, u = e.onError, m = C(s, De, h ? { timeZone: h } : {});
3091
3091
  try {
3092
- return t(l, c).formatRange(a, i);
3093
- } catch (m) {
3094
- u(new I("Error formatting date time range.", e.locale, m));
3092
+ return t(l, m).formatRange(a, i);
3093
+ } catch (c) {
3094
+ u(new I("Error formatting date time range.", e.locale, c));
3095
3095
  }
3096
3096
  return String(a);
3097
3097
  }
3098
- function kt(e, t) {
3098
+ function jt(e, t) {
3099
3099
  for (var n = [], r = 2; r < arguments.length; r++)
3100
3100
  n[r - 2] = arguments[r];
3101
3101
  var a = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
@@ -3106,7 +3106,7 @@ function kt(e, t) {
3106
3106
  }
3107
3107
  return [];
3108
3108
  }
3109
- function jt(e, t) {
3109
+ function Xt(e, t) {
3110
3110
  for (var n = [], r = 2; r < arguments.length; r++)
3111
3111
  n[r - 2] = arguments[r];
3112
3112
  var a = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
@@ -3117,52 +3117,52 @@ function jt(e, t) {
3117
3117
  }
3118
3118
  return [];
3119
3119
  }
3120
- var Xt = [
3120
+ var Wt = [
3121
3121
  "style",
3122
3122
  "type",
3123
3123
  "fallback",
3124
3124
  "languageDisplay"
3125
3125
  ];
3126
- function Wt(e, t, n, r) {
3126
+ function Zt(e, t, n, r) {
3127
3127
  var a = e.locale, i = e.onError, o = Intl.DisplayNames;
3128
3128
  o || i(new R(`Intl.DisplayNames is not available in this environment.
3129
3129
  Try polyfilling it using "@formatjs/intl-displaynames"
3130
3130
  `, _.MISSING_INTL_API));
3131
- var s = C(r, Xt);
3131
+ var s = C(r, Wt);
3132
3132
  try {
3133
3133
  return t(a, s).of(n);
3134
3134
  } catch (h) {
3135
3135
  i(new I("Error formatting display name.", a, h));
3136
3136
  }
3137
3137
  }
3138
- var Zt = [
3138
+ var zt = [
3139
3139
  "type",
3140
3140
  "style"
3141
3141
  ], ve = Date.now();
3142
- function zt(e) {
3142
+ function Jt(e) {
3143
3143
  return "".concat(ve, "_").concat(e, "_").concat(ve);
3144
3144
  }
3145
- function Jt(e, t, n, r) {
3145
+ function qt(e, t, n, r) {
3146
3146
  r === void 0 && (r = {});
3147
- var a = De(e, t, n, r).reduce(function(i, o) {
3147
+ var a = we(e, t, n, r).reduce(function(i, o) {
3148
3148
  var s = o.value;
3149
3149
  return typeof s != "string" ? i.push(s) : typeof i[i.length - 1] == "string" ? i[i.length - 1] += s : i.push(s), i;
3150
3150
  }, []);
3151
3151
  return a.length === 1 ? a[0] : a.length === 0 ? "" : a;
3152
3152
  }
3153
- function De(e, t, n, r) {
3153
+ function we(e, t, n, r) {
3154
3154
  var a = e.locale, i = e.onError;
3155
3155
  r === void 0 && (r = {});
3156
3156
  var o = Intl.ListFormat;
3157
3157
  o || i(new R(`Intl.ListFormat is not available in this environment.
3158
3158
  Try polyfilling it using "@formatjs/intl-listformat"
3159
3159
  `, _.MISSING_INTL_API));
3160
- var s = C(r, Zt);
3160
+ var s = C(r, zt);
3161
3161
  try {
3162
- var h = {}, l = n.map(function(u, c) {
3162
+ var h = {}, l = n.map(function(u, m) {
3163
3163
  if (typeof u == "object") {
3164
- var m = zt(c);
3165
- return h[m] = u, m;
3164
+ var c = Jt(m);
3165
+ return h[c] = u, c;
3166
3166
  }
3167
3167
  return String(u);
3168
3168
  });
@@ -3174,13 +3174,13 @@ Try polyfilling it using "@formatjs/intl-listformat"
3174
3174
  }
3175
3175
  return n;
3176
3176
  }
3177
- var qt = ["type"];
3178
- function Qt(e, t, n, r) {
3177
+ var Qt = ["type"];
3178
+ function Yt(e, t, n, r) {
3179
3179
  var a = e.locale, i = e.onError;
3180
3180
  r === void 0 && (r = {}), Intl.PluralRules || i(new R(`Intl.PluralRules is not available in this environment.
3181
3181
  Try polyfilling it using "@formatjs/intl-pluralrules"
3182
3182
  `, _.MISSING_INTL_API));
3183
- var o = C(r, qt);
3183
+ var o = C(r, Qt);
3184
3184
  try {
3185
3185
  return t(a, o).select(n);
3186
3186
  } catch (s) {
@@ -3188,27 +3188,27 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3188
3188
  }
3189
3189
  return "other";
3190
3190
  }
3191
- var Yt = ["numeric", "style"];
3192
- function $t(e, t, n) {
3191
+ var $t = ["numeric", "style"];
3192
+ function Kt(e, t, n) {
3193
3193
  var r = e.locale, a = e.formats, i = e.onError;
3194
3194
  n === void 0 && (n = {});
3195
- var o = n.format, s = !!o && re(a, "relative", o, i) || {}, h = C(n, Yt, s);
3195
+ var o = n.format, s = !!o && re(a, "relative", o, i) || {}, h = C(n, $t, s);
3196
3196
  return t(r, h);
3197
3197
  }
3198
- function Kt(e, t, n, r, a) {
3198
+ function er(e, t, n, r, a) {
3199
3199
  a === void 0 && (a = {}), r || (r = "second");
3200
3200
  var i = Intl.RelativeTimeFormat;
3201
3201
  i || e.onError(new R(`Intl.RelativeTimeFormat is not available in this environment.
3202
3202
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
3203
3203
  `, _.MISSING_INTL_API));
3204
3204
  try {
3205
- return $t(e, t, a).format(n, r);
3205
+ return Kt(e, t, a).format(n, r);
3206
3206
  } catch (o) {
3207
3207
  e.onError(new I("Error formatting relative time.", e.locale, o));
3208
3208
  }
3209
3209
  return String(n);
3210
3210
  }
3211
- var er = [
3211
+ var tr = [
3212
3212
  "style",
3213
3213
  "currency",
3214
3214
  "currencyDisplay",
@@ -3230,127 +3230,135 @@ var er = [
3230
3230
  "unitDisplay",
3231
3231
  "numberingSystem"
3232
3232
  ];
3233
- function we(e, t, n) {
3233
+ function Fe(e, t, n) {
3234
3234
  var r = e.locale, a = e.formats, i = e.onError;
3235
3235
  n === void 0 && (n = {});
3236
- var o = n.format, s = o && re(a, "number", o, i) || {}, h = C(n, er, s);
3236
+ var o = n.format, s = o && re(a, "number", o, i) || {}, h = C(n, tr, s);
3237
3237
  return t(r, h);
3238
3238
  }
3239
- function tr(e, t, n, r) {
3239
+ function rr(e, t, n, r) {
3240
3240
  r === void 0 && (r = {});
3241
3241
  try {
3242
- return we(e, t, r).format(n);
3242
+ return Fe(e, t, r).format(n);
3243
3243
  } catch (a) {
3244
3244
  e.onError(new I("Error formatting number.", e.locale, a));
3245
3245
  }
3246
3246
  return String(n);
3247
3247
  }
3248
- function rr(e, t, n, r) {
3248
+ function nr(e, t, n, r) {
3249
3249
  r === void 0 && (r = {});
3250
3250
  try {
3251
- return we(e, t, r).formatToParts(n);
3251
+ return Fe(e, t, r).formatToParts(n);
3252
3252
  } catch (a) {
3253
3253
  e.onError(new I("Error formatting number.", e.locale, a));
3254
3254
  }
3255
3255
  return [];
3256
3256
  }
3257
- function nr(e) {
3257
+ function ar(e) {
3258
3258
  var t = e ? e[Object.keys(e)[0]] : void 0;
3259
3259
  return typeof t == "string";
3260
3260
  }
3261
- function ar(e) {
3262
- e.onWarn && e.defaultRichTextElements && nr(e.messages || {}) && e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
3261
+ function ir(e) {
3262
+ e.onWarn && e.defaultRichTextElements && ar(e.messages || {}) && e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
3263
3263
  Please consider using "@formatjs/cli" to pre-compile your messages for performance.
3264
3264
  For more details see https://formatjs.io/docs/getting-started/message-distribution`);
3265
3265
  }
3266
- function ir(e, t) {
3267
- var n = wt(t), r = f(f({}, Dt), e), a = r.locale, i = r.defaultLocale, o = r.onError;
3268
- return a ? !Intl.NumberFormat.supportedLocalesOf(a).length && o ? o(new me('Missing locale data for locale: "'.concat(a, '" in Intl.NumberFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(a).length && o && o(new me('Missing locale data for locale: "'.concat(a, '" in Intl.DateTimeFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (o && o(new Lt('"locale" was not configured, using "'.concat(i, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), r.locale = r.defaultLocale || "en"), ar(r), f(f({}, r), {
3266
+ function or(e, t) {
3267
+ var n = Ft(t), r = f(f({}, wt), e), a = r.locale, i = r.defaultLocale, o = r.onError;
3268
+ return a ? !Intl.NumberFormat.supportedLocalesOf(a).length && o ? o(new me('Missing locale data for locale: "'.concat(a, '" in Intl.NumberFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(a).length && o && o(new me('Missing locale data for locale: "'.concat(a, '" in Intl.DateTimeFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (o && o(new Ot('"locale" was not configured, using "'.concat(i, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), r.locale = r.defaultLocale || "en"), ir(r), f(f({}, r), {
3269
3269
  formatters: n,
3270
- formatNumber: tr.bind(null, r, n.getNumberFormat),
3271
- formatNumberToParts: rr.bind(null, r, n.getNumberFormat),
3272
- formatRelativeTime: Kt.bind(null, r, n.getRelativeTimeFormat),
3273
- formatDate: Gt.bind(null, r, n.getDateTimeFormat),
3274
- formatDateToParts: kt.bind(null, r, n.getDateTimeFormat),
3275
- formatTime: Ut.bind(null, r, n.getDateTimeFormat),
3276
- formatDateTimeRange: Vt.bind(null, r, n.getDateTimeFormat),
3277
- formatTimeToParts: jt.bind(null, r, n.getDateTimeFormat),
3278
- formatPlural: Qt.bind(null, r, n.getPluralRules),
3270
+ formatNumber: rr.bind(null, r, n.getNumberFormat),
3271
+ formatNumberToParts: nr.bind(null, r, n.getNumberFormat),
3272
+ formatRelativeTime: er.bind(null, r, n.getRelativeTimeFormat),
3273
+ formatDate: Ut.bind(null, r, n.getDateTimeFormat),
3274
+ formatDateToParts: jt.bind(null, r, n.getDateTimeFormat),
3275
+ formatTime: Vt.bind(null, r, n.getDateTimeFormat),
3276
+ formatDateTimeRange: kt.bind(null, r, n.getDateTimeFormat),
3277
+ formatTimeToParts: Xt.bind(null, r, n.getDateTimeFormat),
3278
+ formatPlural: Yt.bind(null, r, n.getPluralRules),
3279
3279
  // @ts-expect-error TODO: will get to this later
3280
3280
  formatMessage: ge.bind(null, r, n),
3281
3281
  // @ts-expect-error TODO: will get to this later
3282
3282
  $t: ge.bind(null, r, n),
3283
- formatList: Jt.bind(null, r, n.getListFormat),
3284
- formatListToParts: De.bind(null, r, n.getListFormat),
3285
- formatDisplayName: Wt.bind(null, r, n.getDisplayNames)
3283
+ formatList: qt.bind(null, r, n.getListFormat),
3284
+ formatListToParts: we.bind(null, r, n.getListFormat),
3285
+ formatDisplayName: Zt.bind(null, r, n.getDisplayNames)
3286
3286
  });
3287
3287
  }
3288
- function or(e) {
3288
+ function sr(e) {
3289
3289
  return e && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e);
3290
3290
  }
3291
- function sr(e) {
3291
+ function hr(e) {
3292
3292
  return e;
3293
3293
  }
3294
- function hr(e, t) {
3294
+ function ur(e, t) {
3295
3295
  t = t || {};
3296
- const n = t.delimiter || ".", r = t.maxDepth, a = t.transformKey || sr, i = {};
3296
+ const n = t.delimiter || ".", r = t.maxDepth, a = t.transformKey || hr, i = {};
3297
3297
  function o(s, h, l) {
3298
3298
  l = l || 1, Object.keys(s).forEach(function(u) {
3299
- const c = s[u], m = t.safe && Array.isArray(c), p = Object.prototype.toString.call(c), d = or(c), E = p === "[object Object]" || p === "[object Array]", x = h ? h + n + a(u) : a(u);
3300
- if (!m && !d && E && Object.keys(c).length && (!t.maxDepth || l < r))
3301
- return o(c, x, l + 1);
3302
- i[x] = c;
3299
+ const m = s[u], c = t.safe && Array.isArray(m), E = Object.prototype.toString.call(m), y = sr(m), g = E === "[object Object]" || E === "[object Array]", b = h ? h + n + a(u) : a(u);
3300
+ if (!c && !y && g && Object.keys(m).length && (!t.maxDepth || l < r))
3301
+ return o(m, b, l + 1);
3302
+ i[b] = m;
3303
3303
  });
3304
3304
  }
3305
3305
  return o(e), i;
3306
3306
  }
3307
- const ur = Me();
3308
- let Fe;
3309
- const mr = (e, t, n = !1) => {
3310
- const r = ir(
3307
+ const lr = Ce();
3308
+ let Ge;
3309
+ const Ee = {
3310
+ year: "numeric",
3311
+ month: "short",
3312
+ day: "numeric",
3313
+ hour: "numeric",
3314
+ minute: "numeric"
3315
+ }, cr = (e, t, n = !1) => {
3316
+ var y;
3317
+ const r = typeof n == "boolean", a = or(
3311
3318
  {
3312
- ...typeof n == "boolean" ? null : n,
3319
+ ...r ? null : n,
3313
3320
  locale: e,
3314
- messages: hr(t, {
3321
+ messages: ur(t, {
3315
3322
  safe: !0
3316
3323
  // Preserve arrays
3317
- })
3324
+ }),
3325
+ formats: {
3326
+ ...r ? null : n.formats,
3327
+ date: {
3328
+ ...r ? null : (y = n.formats) == null ? void 0 : y.date,
3329
+ datetime: Ee
3330
+ }
3331
+ }
3318
3332
  },
3319
- ur
3320
- ), { $t: a, ...i } = r, o = i, s = (p) => {
3321
- const d = "Invalid Date";
3322
- if (!p)
3323
- return d;
3333
+ lr
3334
+ ), { $t: i, ...o } = a, s = o, h = (g) => {
3335
+ const b = "Invalid Date";
3336
+ if (!g)
3337
+ return b;
3324
3338
  try {
3325
- const E = new Date(p * 1e3);
3326
- return o.formatDate(E, {
3327
- year: "numeric",
3328
- month: "short",
3329
- day: "numeric",
3330
- hour: "numeric",
3331
- minute: "numeric"
3332
- });
3339
+ const x = new Date(g * 1e3);
3340
+ return s.formatDate(x, Ee);
3333
3341
  } catch {
3334
- return d;
3342
+ return b;
3335
3343
  }
3336
- }, m = {
3337
- formatUnixTimeStamp: s,
3338
- formatIsoDate: (p) => {
3339
- const d = Date.parse(p) / 1e3;
3340
- return s(d);
3344
+ }, E = {
3345
+ formatUnixTimeStamp: h,
3346
+ formatIsoDate: (g) => {
3347
+ const b = Date.parse(g) / 1e3;
3348
+ return h(b);
3341
3349
  },
3342
- t: (p, d, E) => o.formatMessage({ id: p }, d, E),
3343
- te: (p) => !!o.messages[p],
3344
- tm: (p) => o.messages[p] || [],
3345
- ...o,
3350
+ t: (g, b, x) => s.formatMessage({ id: g }, b, x),
3351
+ te: (g) => !!s.messages[g],
3352
+ tm: (g) => s.messages[g] || [],
3353
+ ...s,
3346
3354
  source: t
3347
3355
  };
3348
- return (typeof n == "boolean" && n === !0 || typeof n != "boolean" && n.isGlobal === !0) && (Fe = m), m;
3356
+ return (typeof n == "boolean" && n === !0 || typeof n != "boolean" && n.isGlobal === !0) && (Ge = E), E;
3349
3357
  };
3350
- function cr() {
3351
- return Fe;
3358
+ function pr() {
3359
+ return Ge;
3352
3360
  }
3353
- const lr = (e = null) => Ge({
3361
+ const fr = (e = null) => Ue({
3354
3362
  name: "I18nT",
3355
3363
  props: {
3356
3364
  i18n: {
@@ -3382,18 +3390,18 @@ const lr = (e = null) => Ge({
3382
3390
  return;
3383
3391
  const l = s.replace(/[\{\}]/g, "");
3384
3392
  l === "0" && n.default ? o[h] = n.default() : a.includes(l) && n[l] && (o[h] = n[l]());
3385
- }), Ue(t.tag, t, o);
3393
+ }), Ve(t.tag, t, o);
3386
3394
  };
3387
3395
  }
3388
- }), pr = {
3396
+ }), gr = {
3389
3397
  install(e, t) {
3390
3398
  const { i18n: n } = t;
3391
- e.component("I18nT", lr(n));
3399
+ e.component("I18nT", fr(n));
3392
3400
  }
3393
3401
  };
3394
3402
  export {
3395
- pr as Translation,
3396
- mr as createI18n,
3397
- lr as i18nTComponent,
3398
- cr as useI18n
3403
+ gr as Translation,
3404
+ cr as createI18n,
3405
+ fr as i18nTComponent,
3406
+ pr as useI18n
3399
3407
  };