@kong-ui-public/i18n 2.1.2-pr.1129.9266452c.0 → 2.1.2

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
@@ -3,8 +3,8 @@ var z = function(e, t) {
3
3
  return z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
4
4
  n.__proto__ = r;
5
5
  } || function(n, r) {
6
- for (var a in r)
7
- Object.prototype.hasOwnProperty.call(r, a) && (n[a] = r[a]);
6
+ for (var i in r)
7
+ Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
8
8
  }, z(e, t);
9
9
  };
10
10
  function N(e, t) {
@@ -18,10 +18,10 @@ function N(e, t) {
18
18
  }
19
19
  var f = function() {
20
20
  return f = Object.assign || function(t) {
21
- for (var n, r = 1, a = arguments.length; r < a; r++) {
21
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
22
22
  n = arguments[r];
23
- for (var i in n)
24
- Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
23
+ for (var a in n)
24
+ Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
25
25
  }
26
26
  return t;
27
27
  }, f.apply(this, arguments);
@@ -31,20 +31,20 @@ function ke(e, t) {
31
31
  for (var r in e)
32
32
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
33
33
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
34
- for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
35
- t.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (n[r[a]] = e[r[a]]);
34
+ for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
35
+ t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
36
36
  return n;
37
37
  }
38
38
  function P(e, t, n) {
39
39
  if (n || arguments.length === 2)
40
- for (var r = 0, a = t.length, i; r < a; r++)
41
- (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
42
- return e.concat(i || Array.prototype.slice.call(t));
40
+ for (var r = 0, i = t.length, a; r < i; r++)
41
+ (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
42
+ return e.concat(a || Array.prototype.slice.call(t));
43
43
  }
44
- var p;
44
+ var g;
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
- })(p || (p = {}));
47
+ })(g || (g = {}));
48
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";
@@ -53,7 +53,7 @@ var D;
53
53
  (function(e) {
54
54
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
55
55
  })(D || (D = {}));
56
- function ae(e) {
56
+ function ie(e) {
57
57
  return e.type === d.literal;
58
58
  }
59
59
  function je(e) {
@@ -184,27 +184,27 @@ function Je(e) {
184
184
  throw new Error("Number skeleton cannot be empty");
185
185
  for (var t = e.split(ze).filter(function(c) {
186
186
  return c.length > 0;
187
- }), n = [], r = 0, a = t; r < a.length; r++) {
188
- var i = a[r], o = i.split("/");
187
+ }), n = [], r = 0, i = t; r < i.length; r++) {
188
+ var a = i[r], o = a.split("/");
189
189
  if (o.length === 0)
190
190
  throw new Error("Invalid number skeleton");
191
- for (var s = o[0], h = o.slice(1), l = 0, u = h; l < u.length; l++) {
192
- var m = u[l];
191
+ for (var s = o[0], u = o.slice(1), l = 0, h = u; l < h.length; l++) {
192
+ var m = h[l];
193
193
  if (m.length === 0)
194
194
  throw new Error("Invalid number skeleton");
195
195
  }
196
- n.push({ stem: s, options: h });
196
+ n.push({ stem: s, options: u });
197
197
  }
198
198
  return n;
199
199
  }
200
200
  function qe(e) {
201
201
  return e.replace(/^(.*?)-/, "");
202
202
  }
203
- var ie = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ne = /^(@+)?(\+|#+)?[rs]?$/g, Qe = /(\*)(0+)|(#+)(0+)|(0+)/g, Ae = /^(0+)$/;
203
+ var ae = /^\.(?:(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(Ne, function(n, r, a) {
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)), "";
206
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ne, function(n, r, i) {
207
+ return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
208
208
  }), t;
209
209
  }
210
210
  function Be(e) {
@@ -267,8 +267,8 @@ function se(e) {
267
267
  }
268
268
  function $e(e) {
269
269
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
270
- var a = r[n];
271
- switch (a.stem) {
270
+ var i = r[n];
271
+ switch (i.stem) {
272
272
  case "percent":
273
273
  case "%":
274
274
  t.style = "percent";
@@ -277,7 +277,7 @@ function $e(e) {
277
277
  t.style = "percent", t.scale = 100;
278
278
  continue;
279
279
  case "currency":
280
- t.style = "currency", t.currency = a.options[0];
280
+ t.style = "currency", t.currency = i.options[0];
281
281
  continue;
282
282
  case "group-off":
283
283
  case ",_":
@@ -289,7 +289,7 @@ function $e(e) {
289
289
  continue;
290
290
  case "measure-unit":
291
291
  case "unit":
292
- t.style = "unit", t.unit = qe(a.options[0]);
292
+ t.style = "unit", t.unit = qe(i.options[0]);
293
293
  continue;
294
294
  case "compact-short":
295
295
  case "K":
@@ -300,13 +300,13 @@ function $e(e) {
300
300
  t.notation = "compact", t.compactDisplay = "long";
301
301
  continue;
302
302
  case "scientific":
303
- t = f(f(f({}, t), { notation: "scientific" }), a.options.reduce(function(h, l) {
304
- return f(f({}, h), se(l));
303
+ t = f(f(f({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
304
+ return f(f({}, u), se(l));
305
305
  }, {}));
306
306
  continue;
307
307
  case "engineering":
308
- t = f(f(f({}, t), { notation: "engineering" }), a.options.reduce(function(h, l) {
309
- return f(f({}, h), se(l));
308
+ t = f(f(f({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
309
+ return f(f({}, u), se(l));
310
310
  }, {}));
311
311
  continue;
312
312
  case "notation-simple":
@@ -325,14 +325,35 @@ function $e(e) {
325
325
  t.currencyDisplay = "symbol";
326
326
  continue;
327
327
  case "scale":
328
- t.scale = parseFloat(a.options[0]);
328
+ t.scale = parseFloat(i.options[0]);
329
+ continue;
330
+ case "rounding-mode-floor":
331
+ t.roundingMode = "floor";
332
+ continue;
333
+ case "rounding-mode-ceiling":
334
+ t.roundingMode = "ceil";
335
+ continue;
336
+ case "rounding-mode-down":
337
+ t.roundingMode = "trunc";
338
+ continue;
339
+ case "rounding-mode-up":
340
+ t.roundingMode = "expand";
341
+ continue;
342
+ case "rounding-mode-half-even":
343
+ t.roundingMode = "halfEven";
344
+ continue;
345
+ case "rounding-mode-half-down":
346
+ t.roundingMode = "halfTrunc";
347
+ continue;
348
+ case "rounding-mode-half-up":
349
+ t.roundingMode = "halfExpand";
329
350
  continue;
330
351
  case "integer-width":
331
- if (a.options.length > 1)
352
+ if (i.options.length > 1)
332
353
  throw new RangeError("integer-width stems only accept a single optional option");
333
- a.options[0].replace(Qe, function(h, l, u, m, c, E) {
354
+ i.options[0].replace(Qe, function(u, l, h, m, c, E) {
334
355
  if (l)
335
- t.minimumIntegerDigits = u.length;
356
+ t.minimumIntegerDigits = h.length;
336
357
  else {
337
358
  if (m && c)
338
359
  throw new Error("We currently do not support maximum integer digits");
@@ -343,27 +364,27 @@ function $e(e) {
343
364
  });
344
365
  continue;
345
366
  }
346
- if (Ae.test(a.stem)) {
347
- t.minimumIntegerDigits = a.stem.length;
367
+ if (Ae.test(i.stem)) {
368
+ t.minimumIntegerDigits = i.stem.length;
348
369
  continue;
349
370
  }
350
- if (ie.test(a.stem)) {
351
- if (a.options.length > 1)
371
+ if (ae.test(i.stem)) {
372
+ if (i.options.length > 1)
352
373
  throw new RangeError("Fraction-precision stems only accept a single optional option");
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), "";
374
+ i.stem.replace(ae, function(u, l, h, m, c, E) {
375
+ return h === "*" ? 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
376
  });
356
- var i = a.options[0];
357
- i === "w" ? t = f(f({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = f(f({}, t), oe(i)));
377
+ var a = i.options[0];
378
+ a === "w" ? t = f(f({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = f(f({}, t), oe(a)));
358
379
  continue;
359
380
  }
360
- if (Ne.test(a.stem)) {
361
- t = f(f({}, t), oe(a.stem));
381
+ if (Ne.test(i.stem)) {
382
+ t = f(f({}, t), oe(i.stem));
362
383
  continue;
363
384
  }
364
- var o = Be(a.stem);
385
+ var o = Be(i.stem);
365
386
  o && (t = f(f({}, t), o));
366
- var s = Ye(a.stem);
387
+ var s = Ye(i.stem);
367
388
  s && (t = f(f({}, t), s));
368
389
  }
369
390
  return t;
@@ -1779,17 +1800,17 @@ var U = {
1779
1800
  };
1780
1801
  function Ke(e, t) {
1781
1802
  for (var n = "", r = 0; r < e.length; r++) {
1782
- var a = e.charAt(r);
1783
- if (a === "j") {
1784
- for (var i = 0; r + 1 < e.length && e.charAt(r + 1) === a; )
1785
- i++, r++;
1786
- var o = 1 + (i & 1), s = i < 2 ? 1 : 3 + (i >> 1), h = "a", l = et(t);
1803
+ var i = e.charAt(r);
1804
+ if (i === "j") {
1805
+ for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
1806
+ a++, r++;
1807
+ var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), u = "a", l = et(t);
1787
1808
  for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
1788
- n += h;
1809
+ n += u;
1789
1810
  for (; o-- > 0; )
1790
1811
  n = l + n;
1791
1812
  } else
1792
- a === "J" ? n += "H" : n += a;
1813
+ i === "J" ? n += "H" : n += i;
1793
1814
  }
1794
1815
  return n;
1795
1816
  }
@@ -1812,14 +1833,14 @@ function et(e) {
1812
1833
  }
1813
1834
  var n = e.language, r;
1814
1835
  n !== "root" && (r = e.maximize().region);
1815
- var a = U[r || ""] || U[n || ""] || U["".concat(n, "-001")] || U["001"];
1816
- return a[0];
1836
+ var i = U[r || ""] || U[n || ""] || U["".concat(n, "-001")] || U["001"];
1837
+ return i[0];
1817
1838
  }
1818
1839
  var X, tt = new RegExp("^".concat(Ie.source, "*")), rt = new RegExp("".concat(Ie.source, "*$"));
1819
1840
  function v(e, t) {
1820
1841
  return { start: e, end: t };
1821
1842
  }
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) {
1843
+ var nt = !!String.prototype.startsWith && "_a".startsWith("a", 1), it = !!String.fromCodePoint, at = !!Object.fromEntries, ot = !!String.prototype.codePointAt, st = !!String.prototype.trimStart, ut = !!String.prototype.trimEnd, ht = !!Number.isSafeInteger, lt = ht ? Number.isSafeInteger : function(e) {
1823
1844
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
1824
1845
  }, q = !0;
1825
1846
  try {
@@ -1828,7 +1849,7 @@ try {
1828
1849
  } catch {
1829
1850
  q = !1;
1830
1851
  }
1831
- var he = nt ? (
1852
+ var ue = nt ? (
1832
1853
  // Native
1833
1854
  function(t, n, r) {
1834
1855
  return t.startsWith(n, r);
@@ -1838,25 +1859,25 @@ var he = nt ? (
1838
1859
  function(t, n, r) {
1839
1860
  return t.slice(r, r + n.length) === n;
1840
1861
  }
1841
- ), Q = at ? String.fromCodePoint : (
1862
+ ), Q = it ? String.fromCodePoint : (
1842
1863
  // IE11
1843
1864
  function() {
1844
1865
  for (var t = [], n = 0; n < arguments.length; n++)
1845
1866
  t[n] = arguments[n];
1846
- for (var r = "", a = t.length, i = 0, o; a > i; ) {
1847
- if (o = t[i++], o > 1114111)
1867
+ for (var r = "", i = t.length, a = 0, o; i > a; ) {
1868
+ if (o = t[a++], o > 1114111)
1848
1869
  throw RangeError(o + " is not a valid code point");
1849
1870
  r += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
1850
1871
  }
1851
1872
  return r;
1852
1873
  }
1853
- ), ue = (
1874
+ ), he = (
1854
1875
  // native
1855
- it ? Object.fromEntries : (
1876
+ at ? Object.fromEntries : (
1856
1877
  // Ponyfill
1857
1878
  function(t) {
1858
- for (var n = {}, r = 0, a = t; r < a.length; r++) {
1859
- var i = a[r], o = i[0], s = i[1];
1879
+ for (var n = {}, r = 0, i = t; r < i.length; r++) {
1880
+ var a = i[r], o = a[0], s = a[1];
1860
1881
  n[o] = s;
1861
1882
  }
1862
1883
  return n;
@@ -1872,8 +1893,8 @@ var he = nt ? (
1872
1893
  function(t, n) {
1873
1894
  var r = t.length;
1874
1895
  if (!(n < 0 || n >= r)) {
1875
- var a = t.charCodeAt(n), i;
1876
- return a < 55296 || a > 56319 || n + 1 === r || (i = t.charCodeAt(n + 1)) < 56320 || i > 57343 ? a : (a - 55296 << 10) + (i - 56320) + 65536;
1896
+ var i = t.charCodeAt(n), a;
1897
+ return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
1877
1898
  }
1878
1899
  }
1879
1900
  ), mt = st ? (
@@ -1886,7 +1907,7 @@ var he = nt ? (
1886
1907
  function(t) {
1887
1908
  return t.replace(tt, "");
1888
1909
  }
1889
- ), ct = ht ? (
1910
+ ), ct = ut ? (
1890
1911
  // Native
1891
1912
  function(t) {
1892
1913
  return t.trimEnd();
@@ -1906,20 +1927,20 @@ if (q) {
1906
1927
  Y = function(t, n) {
1907
1928
  var r;
1908
1929
  le.lastIndex = n;
1909
- var a = le.exec(t);
1910
- return (r = a[1]) !== null && r !== void 0 ? r : "";
1930
+ var i = le.exec(t);
1931
+ return (r = i[1]) !== null && r !== void 0 ? r : "";
1911
1932
  };
1912
1933
  } else
1913
1934
  Y = function(t, n) {
1914
1935
  for (var r = []; ; ) {
1915
- var a = _e(t, n);
1916
- if (a === void 0 || Re(a) || Et(a))
1936
+ var i = _e(t, n);
1937
+ if (i === void 0 || Re(i) || Et(i))
1917
1938
  break;
1918
- r.push(a), n += a >= 65536 ? 2 : 1;
1939
+ r.push(i), n += i >= 65536 ? 2 : 1;
1919
1940
  }
1920
1941
  return Q.apply(void 0, r);
1921
1942
  };
1922
- var pt = (
1943
+ var gt = (
1923
1944
  /** @class */
1924
1945
  function() {
1925
1946
  function e(t, n) {
@@ -1930,107 +1951,107 @@ var pt = (
1930
1951
  throw Error("parser can only be used once");
1931
1952
  return this.parseMessage(0, "", !1);
1932
1953
  }, e.prototype.parseMessage = function(t, n, r) {
1933
- for (var a = []; !this.isEOF(); ) {
1934
- var i = this.char();
1935
- if (i === 123) {
1954
+ for (var i = []; !this.isEOF(); ) {
1955
+ var a = this.char();
1956
+ if (a === 123) {
1936
1957
  var o = this.parseArgument(t, r);
1937
1958
  if (o.err)
1938
1959
  return o;
1939
- a.push(o.val);
1960
+ i.push(o.val);
1940
1961
  } else {
1941
- if (i === 125 && t > 0)
1962
+ if (a === 125 && t > 0)
1942
1963
  break;
1943
- if (i === 35 && (n === "plural" || n === "selectordinal")) {
1964
+ if (a === 35 && (n === "plural" || n === "selectordinal")) {
1944
1965
  var s = this.clonePosition();
1945
- this.bump(), a.push({
1966
+ this.bump(), i.push({
1946
1967
  type: d.pound,
1947
1968
  location: v(s, this.clonePosition())
1948
1969
  });
1949
- } else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
1970
+ } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
1950
1971
  if (r)
1951
1972
  break;
1952
- return this.error(p.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
1953
- } else if (i === 60 && !this.ignoreTag && $(this.peek() || 0)) {
1973
+ return this.error(g.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
1974
+ } else if (a === 60 && !this.ignoreTag && $(this.peek() || 0)) {
1954
1975
  var o = this.parseTag(t, n);
1955
1976
  if (o.err)
1956
1977
  return o;
1957
- a.push(o.val);
1978
+ i.push(o.val);
1958
1979
  } else {
1959
1980
  var o = this.parseLiteral(t, n);
1960
1981
  if (o.err)
1961
1982
  return o;
1962
- a.push(o.val);
1983
+ i.push(o.val);
1963
1984
  }
1964
1985
  }
1965
1986
  }
1966
- return { val: a, err: null };
1987
+ return { val: i, err: null };
1967
1988
  }, e.prototype.parseTag = function(t, n) {
1968
1989
  var r = this.clonePosition();
1969
1990
  this.bump();
1970
- var a = this.parseTagName();
1991
+ var i = this.parseTagName();
1971
1992
  if (this.bumpSpace(), this.bumpIf("/>"))
1972
1993
  return {
1973
1994
  val: {
1974
1995
  type: d.literal,
1975
- value: "<".concat(a, "/>"),
1996
+ value: "<".concat(i, "/>"),
1976
1997
  location: v(r, this.clonePosition())
1977
1998
  },
1978
1999
  err: null
1979
2000
  };
1980
2001
  if (this.bumpIf(">")) {
1981
- var i = this.parseMessage(t + 1, n, !0);
1982
- if (i.err)
1983
- return i;
1984
- var o = i.val, s = this.clonePosition();
2002
+ var a = this.parseMessage(t + 1, n, !0);
2003
+ if (a.err)
2004
+ return a;
2005
+ var o = a.val, s = this.clonePosition();
1985
2006
  if (this.bumpIf("</")) {
1986
2007
  if (this.isEOF() || !$(this.char()))
1987
- return this.error(p.INVALID_TAG, v(s, this.clonePosition()));
1988
- var h = this.clonePosition(), l = this.parseTagName();
1989
- return a !== l ? this.error(p.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2008
+ return this.error(g.INVALID_TAG, v(s, this.clonePosition()));
2009
+ var u = this.clonePosition(), l = this.parseTagName();
2010
+ return i !== l ? this.error(g.UNMATCHED_CLOSING_TAG, v(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
1990
2011
  val: {
1991
2012
  type: d.tag,
1992
- value: a,
2013
+ value: i,
1993
2014
  children: o,
1994
2015
  location: v(r, this.clonePosition())
1995
2016
  },
1996
2017
  err: null
1997
- } : this.error(p.INVALID_TAG, v(s, this.clonePosition())));
2018
+ } : this.error(g.INVALID_TAG, v(s, this.clonePosition())));
1998
2019
  } else
1999
- return this.error(p.UNCLOSED_TAG, v(r, this.clonePosition()));
2020
+ return this.error(g.UNCLOSED_TAG, v(r, this.clonePosition()));
2000
2021
  } else
2001
- return this.error(p.INVALID_TAG, v(r, this.clonePosition()));
2022
+ return this.error(g.INVALID_TAG, v(r, this.clonePosition()));
2002
2023
  }, e.prototype.parseTagName = function() {
2003
2024
  var t = this.offset();
2004
2025
  for (this.bump(); !this.isEOF() && vt(this.char()); )
2005
2026
  this.bump();
2006
2027
  return this.message.slice(t, this.offset());
2007
2028
  }, e.prototype.parseLiteral = function(t, n) {
2008
- for (var r = this.clonePosition(), a = ""; ; ) {
2009
- var i = this.tryParseQuote(n);
2010
- if (i) {
2011
- a += i;
2029
+ for (var r = this.clonePosition(), i = ""; ; ) {
2030
+ var a = this.tryParseQuote(n);
2031
+ if (a) {
2032
+ i += a;
2012
2033
  continue;
2013
2034
  }
2014
2035
  var o = this.tryParseUnquoted(t, n);
2015
2036
  if (o) {
2016
- a += o;
2037
+ i += o;
2017
2038
  continue;
2018
2039
  }
2019
2040
  var s = this.tryParseLeftAngleBracket();
2020
2041
  if (s) {
2021
- a += s;
2042
+ i += s;
2022
2043
  continue;
2023
2044
  }
2024
2045
  break;
2025
2046
  }
2026
- var h = v(r, this.clonePosition());
2047
+ var u = v(r, this.clonePosition());
2027
2048
  return {
2028
- val: { type: d.literal, value: a, location: h },
2049
+ val: { type: d.literal, value: i, location: u },
2029
2050
  err: null
2030
2051
  };
2031
2052
  }, e.prototype.tryParseLeftAngleBracket = function() {
2032
2053
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2033
- !gt(this.peek() || 0)) ? (this.bump(), "<") : null;
2054
+ !pt(this.peek() || 0)) ? (this.bump(), "<") : null;
2034
2055
  }, e.prototype.tryParseQuote = function(t) {
2035
2056
  if (this.isEOF() || this.char() !== 39)
2036
2057
  return null;
@@ -2073,40 +2094,40 @@ var pt = (
2073
2094
  }, e.prototype.parseArgument = function(t, n) {
2074
2095
  var r = this.clonePosition();
2075
2096
  if (this.bump(), this.bumpSpace(), this.isEOF())
2076
- return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition()));
2097
+ return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition()));
2077
2098
  if (this.char() === 125)
2078
- return this.bump(), this.error(p.EMPTY_ARGUMENT, v(r, this.clonePosition()));
2079
- var a = this.parseIdentifierIfPossible().value;
2080
- if (!a)
2081
- return this.error(p.MALFORMED_ARGUMENT, v(r, this.clonePosition()));
2099
+ return this.bump(), this.error(g.EMPTY_ARGUMENT, v(r, this.clonePosition()));
2100
+ var i = this.parseIdentifierIfPossible().value;
2101
+ if (!i)
2102
+ return this.error(g.MALFORMED_ARGUMENT, v(r, this.clonePosition()));
2082
2103
  if (this.bumpSpace(), this.isEOF())
2083
- return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition()));
2104
+ return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition()));
2084
2105
  switch (this.char()) {
2085
2106
  case 125:
2086
2107
  return this.bump(), {
2087
2108
  val: {
2088
2109
  type: d.argument,
2089
2110
  // value does not include the opening and closing braces.
2090
- value: a,
2111
+ value: i,
2091
2112
  location: v(r, this.clonePosition())
2092
2113
  },
2093
2114
  err: null
2094
2115
  };
2095
2116
  case 44:
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);
2117
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2097
2118
  default:
2098
- return this.error(p.MALFORMED_ARGUMENT, v(r, this.clonePosition()));
2119
+ return this.error(g.MALFORMED_ARGUMENT, v(r, this.clonePosition()));
2099
2120
  }
2100
2121
  }, e.prototype.parseIdentifierIfPossible = function() {
2101
- var t = this.clonePosition(), n = this.offset(), r = Y(this.message, n), a = n + r.length;
2102
- this.bumpTo(a);
2103
- var i = this.clonePosition(), o = v(t, i);
2122
+ var t = this.clonePosition(), n = this.offset(), r = Y(this.message, n), i = n + r.length;
2123
+ this.bumpTo(i);
2124
+ var a = this.clonePosition(), o = v(t, a);
2104
2125
  return { value: r, location: o };
2105
- }, e.prototype.parseArgumentOptions = function(t, n, r, a) {
2106
- var i, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2126
+ }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2127
+ var a, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2107
2128
  switch (s) {
2108
2129
  case "":
2109
- return this.error(p.EXPECT_ARGUMENT_TYPE, v(o, h));
2130
+ return this.error(g.EXPECT_ARGUMENT_TYPE, v(o, u));
2110
2131
  case "number":
2111
2132
  case "date":
2112
2133
  case "time": {
@@ -2114,30 +2135,30 @@ var pt = (
2114
2135
  var l = null;
2115
2136
  if (this.bumpIf(",")) {
2116
2137
  this.bumpSpace();
2117
- var u = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2138
+ var h = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2118
2139
  if (m.err)
2119
2140
  return m;
2120
2141
  var c = ct(m.val);
2121
2142
  if (c.length === 0)
2122
- return this.error(p.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
2123
- var E = v(u, this.clonePosition());
2143
+ return this.error(g.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
2144
+ var E = v(h, this.clonePosition());
2124
2145
  l = { style: c, styleLocation: E };
2125
2146
  }
2126
- var y = this.tryParseArgumentClose(a);
2147
+ var y = this.tryParseArgumentClose(i);
2127
2148
  if (y.err)
2128
2149
  return y;
2129
- var g = v(a, this.clonePosition());
2130
- if (l && he(l == null ? void 0 : l.style, "::", 0)) {
2150
+ var p = v(i, this.clonePosition());
2151
+ if (l && ue(l == null ? void 0 : l.style, "::", 0)) {
2131
2152
  var b = mt(l.style.slice(2));
2132
2153
  if (s === "number") {
2133
2154
  var m = this.parseNumberSkeletonFromString(b, l.styleLocation);
2134
2155
  return m.err ? m : {
2135
- val: { type: d.number, value: r, location: g, style: m.val },
2156
+ val: { type: d.number, value: r, location: p, style: m.val },
2136
2157
  err: null
2137
2158
  };
2138
2159
  } else {
2139
2160
  if (b.length === 0)
2140
- return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
2161
+ return this.error(g.EXPECT_DATE_TIME_SKELETON, p);
2141
2162
  var x = b;
2142
2163
  this.locale && (x = Ke(b, this.locale));
2143
2164
  var c = {
@@ -2147,7 +2168,7 @@ var pt = (
2147
2168
  parsedOptions: this.shouldParseSkeletons ? Ze(x) : {}
2148
2169
  }, H = s === "date" ? d.date : d.time;
2149
2170
  return {
2150
- val: { type: H, value: r, location: g, style: c },
2171
+ val: { type: H, value: r, location: p, style: c },
2151
2172
  err: null
2152
2173
  };
2153
2174
  }
@@ -2156,8 +2177,8 @@ var pt = (
2156
2177
  val: {
2157
2178
  type: s === "number" ? d.number : s === "date" ? d.date : d.time,
2158
2179
  value: r,
2159
- location: g,
2160
- style: (i = l == null ? void 0 : l.style) !== null && i !== void 0 ? i : null
2180
+ location: p,
2181
+ style: (a = l == null ? void 0 : l.style) !== null && a !== void 0 ? a : null
2161
2182
  },
2162
2183
  err: null
2163
2184
  };
@@ -2167,14 +2188,14 @@ var pt = (
2167
2188
  case "select": {
2168
2189
  var T = this.clonePosition();
2169
2190
  if (this.bumpSpace(), !this.bumpIf(","))
2170
- return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, v(T, f({}, T)));
2191
+ return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, v(T, f({}, T)));
2171
2192
  this.bumpSpace();
2172
2193
  var w = this.parseIdentifierIfPossible(), L = 0;
2173
2194
  if (s !== "select" && w.value === "offset") {
2174
2195
  if (!this.bumpIf(":"))
2175
- return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
2196
+ return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
2176
2197
  this.bumpSpace();
2177
- var m = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2198
+ var m = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2178
2199
  if (m.err)
2179
2200
  return m;
2180
2201
  this.bumpSpace(), w = this.parseIdentifierIfPossible(), L = m.val;
@@ -2182,15 +2203,15 @@ var pt = (
2182
2203
  var G = this.tryParsePluralOrSelectOptions(t, s, n, w);
2183
2204
  if (G.err)
2184
2205
  return G;
2185
- var y = this.tryParseArgumentClose(a);
2206
+ var y = this.tryParseArgumentClose(i);
2186
2207
  if (y.err)
2187
2208
  return y;
2188
- var ne = v(a, this.clonePosition());
2209
+ var ne = v(i, this.clonePosition());
2189
2210
  return s === "select" ? {
2190
2211
  val: {
2191
2212
  type: d.select,
2192
2213
  value: r,
2193
- options: ue(G.val),
2214
+ options: he(G.val),
2194
2215
  location: ne
2195
2216
  },
2196
2217
  err: null
@@ -2198,7 +2219,7 @@ var pt = (
2198
2219
  val: {
2199
2220
  type: d.plural,
2200
2221
  value: r,
2201
- options: ue(G.val),
2222
+ options: he(G.val),
2202
2223
  offset: L,
2203
2224
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2204
2225
  location: ne
@@ -2207,19 +2228,19 @@ var pt = (
2207
2228
  };
2208
2229
  }
2209
2230
  default:
2210
- return this.error(p.INVALID_ARGUMENT_TYPE, v(o, h));
2231
+ return this.error(g.INVALID_ARGUMENT_TYPE, v(o, u));
2211
2232
  }
2212
2233
  }, e.prototype.tryParseArgumentClose = function(t) {
2213
- return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2234
+ return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2214
2235
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2215
2236
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2216
2237
  var r = this.char();
2217
2238
  switch (r) {
2218
2239
  case 39: {
2219
2240
  this.bump();
2220
- var a = this.clonePosition();
2241
+ var i = this.clonePosition();
2221
2242
  if (!this.bumpUntil("'"))
2222
- return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(a, this.clonePosition()));
2243
+ return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
2223
2244
  this.bump();
2224
2245
  break;
2225
2246
  }
@@ -2251,7 +2272,7 @@ var pt = (
2251
2272
  try {
2252
2273
  r = Je(t);
2253
2274
  } catch {
2254
- return this.error(p.INVALID_NUMBER_SKELETON, n);
2275
+ return this.error(g.INVALID_NUMBER_SKELETON, n);
2255
2276
  }
2256
2277
  return {
2257
2278
  val: {
@@ -2262,51 +2283,51 @@ var pt = (
2262
2283
  },
2263
2284
  err: null
2264
2285
  };
2265
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, a) {
2266
- for (var i, o = !1, s = [], h = /* @__PURE__ */ new Set(), l = a.value, u = a.location; ; ) {
2286
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2287
+ for (var a, o = !1, s = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
2267
2288
  if (l.length === 0) {
2268
2289
  var m = this.clonePosition();
2269
2290
  if (n !== "select" && this.bumpIf("=")) {
2270
- var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
2291
+ var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
2271
2292
  if (c.err)
2272
2293
  return c;
2273
- u = v(m, this.clonePosition()), l = this.message.slice(m.offset, this.offset());
2294
+ h = v(m, this.clonePosition()), l = this.message.slice(m.offset, this.offset());
2274
2295
  } else
2275
2296
  break;
2276
2297
  }
2277
- if (h.has(l))
2278
- return this.error(n === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
2298
+ if (u.has(l))
2299
+ return this.error(n === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2279
2300
  l === "other" && (o = !0), this.bumpSpace();
2280
2301
  var E = this.clonePosition();
2281
2302
  if (!this.bumpIf("{"))
2282
- return this.error(n === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
2303
+ return this.error(n === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
2283
2304
  var y = this.parseMessage(t + 1, n, r);
2284
2305
  if (y.err)
2285
2306
  return y;
2286
- var g = this.tryParseArgumentClose(E);
2287
- if (g.err)
2288
- return g;
2307
+ var p = this.tryParseArgumentClose(E);
2308
+ if (p.err)
2309
+ return p;
2289
2310
  s.push([
2290
2311
  l,
2291
2312
  {
2292
2313
  value: y.val,
2293
2314
  location: v(E, this.clonePosition())
2294
2315
  }
2295
- ]), h.add(l), this.bumpSpace(), i = this.parseIdentifierIfPossible(), l = i.value, u = i.location;
2316
+ ]), u.add(l), this.bumpSpace(), a = this.parseIdentifierIfPossible(), l = a.value, h = a.location;
2296
2317
  }
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 };
2318
+ 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 };
2298
2319
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
2299
- var r = 1, a = this.clonePosition();
2320
+ var r = 1, i = this.clonePosition();
2300
2321
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
2301
- for (var i = !1, o = 0; !this.isEOF(); ) {
2322
+ for (var a = !1, o = 0; !this.isEOF(); ) {
2302
2323
  var s = this.char();
2303
2324
  if (s >= 48 && s <= 57)
2304
- i = !0, o = o * 10 + (s - 48), this.bump();
2325
+ a = !0, o = o * 10 + (s - 48), this.bump();
2305
2326
  else
2306
2327
  break;
2307
2328
  }
2308
- var h = v(a, this.clonePosition());
2309
- return i ? (o *= r, lt(o) ? { val: o, err: null } : this.error(n, h)) : this.error(t, h);
2329
+ var u = v(i, this.clonePosition());
2330
+ return a ? (o *= r, lt(o) ? { val: o, err: null } : this.error(n, u)) : this.error(t, u);
2310
2331
  }, e.prototype.offset = function() {
2311
2332
  return this.position.offset;
2312
2333
  }, e.prototype.isEOF = function() {
@@ -2340,7 +2361,7 @@ var pt = (
2340
2361
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
2341
2362
  }
2342
2363
  }, e.prototype.bumpIf = function(t) {
2343
- if (he(this.message, t, this.offset())) {
2364
+ if (ue(this.message, t, this.offset())) {
2344
2365
  for (var n = 0; n < t.length; n++)
2345
2366
  this.bump();
2346
2367
  return !0;
@@ -2375,7 +2396,7 @@ var pt = (
2375
2396
  function $(e) {
2376
2397
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
2377
2398
  }
2378
- function gt(e) {
2399
+ function pt(e) {
2379
2400
  return $(e) || e === 47;
2380
2401
  }
2381
2402
  function vt(e) {
@@ -2398,16 +2419,16 @@ function K(e) {
2398
2419
  }
2399
2420
  function bt(e, t) {
2400
2421
  t === void 0 && (t = {}), t = f({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
2401
- var n = new pt(e, t).parse();
2422
+ var n = new gt(e, t).parse();
2402
2423
  if (n.err) {
2403
- var r = SyntaxError(p[n.err.kind]);
2424
+ var r = SyntaxError(g[n.err.kind]);
2404
2425
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
2405
2426
  }
2406
2427
  return t != null && t.captureLocation || K(n.val), n.val;
2407
2428
  }
2408
2429
  function A(e, t) {
2409
- var n = t && t.cache ? t.cache : Ht, r = t && t.serializer ? t.serializer : St, a = t && t.strategy ? t.strategy : xt;
2410
- return a(e, {
2430
+ var n = t && t.cache ? t.cache : Ht, r = t && t.serializer ? t.serializer : St, i = t && t.strategy ? t.strategy : xt;
2431
+ return i(e, {
2411
2432
  cache: n,
2412
2433
  serializer: r
2413
2434
  });
@@ -2416,15 +2437,15 @@ function dt(e) {
2416
2437
  return e == null || typeof e == "number" || typeof e == "boolean";
2417
2438
  }
2418
2439
  function Le(e, t, n, r) {
2419
- var a = dt(r) ? r : n(r), i = t.get(a);
2420
- return typeof i > "u" && (i = e.call(this, r), t.set(a, i)), i;
2440
+ var i = dt(r) ? r : n(r), a = t.get(i);
2441
+ return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
2421
2442
  }
2422
2443
  function Oe(e, t, n) {
2423
- var r = Array.prototype.slice.call(arguments, 3), a = n(r), i = t.get(a);
2424
- return typeof i > "u" && (i = e.apply(this, r), t.set(a, i)), i;
2444
+ var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
2445
+ return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
2425
2446
  }
2426
- function ee(e, t, n, r, a) {
2427
- return n.bind(t, e, r, a);
2447
+ function ee(e, t, n, r, i) {
2448
+ return n.bind(t, e, r, i);
2428
2449
  }
2429
2450
  function xt(e, t) {
2430
2451
  var n = e.length === 1 ? Le : Oe;
@@ -2463,9 +2484,9 @@ var R = (
2463
2484
  /** @class */
2464
2485
  function(e) {
2465
2486
  N(t, e);
2466
- function t(n, r, a) {
2467
- var i = e.call(this, n) || this;
2468
- return i.code = r, i.originalMessage = a, i;
2487
+ function t(n, r, i) {
2488
+ var a = e.call(this, n) || this;
2489
+ return a.code = r, a.originalMessage = i, a;
2469
2490
  }
2470
2491
  return t.prototype.toString = function() {
2471
2492
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
@@ -2475,8 +2496,8 @@ var R = (
2475
2496
  /** @class */
2476
2497
  function(e) {
2477
2498
  N(t, e);
2478
- function t(n, r, a, i) {
2479
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(a).join('", "'), '"'), _.INVALID_VALUE, i) || this;
2499
+ function t(n, r, i, a) {
2500
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), _.INVALID_VALUE, a) || this;
2480
2501
  }
2481
2502
  return t;
2482
2503
  }(R)
@@ -2484,8 +2505,8 @@ var R = (
2484
2505
  /** @class */
2485
2506
  function(e) {
2486
2507
  N(t, e);
2487
- function t(n, r, a) {
2488
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), _.INVALID_VALUE, a) || this;
2508
+ function t(n, r, i) {
2509
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), _.INVALID_VALUE, i) || this;
2489
2510
  }
2490
2511
  return t;
2491
2512
  }(R)
@@ -2511,70 +2532,70 @@ function At(e) {
2511
2532
  function Bt(e) {
2512
2533
  return typeof e == "function";
2513
2534
  }
2514
- function k(e, t, n, r, a, i, o) {
2515
- if (e.length === 1 && ae(e[0]))
2535
+ function k(e, t, n, r, i, a, o) {
2536
+ if (e.length === 1 && ie(e[0]))
2516
2537
  return [
2517
2538
  {
2518
2539
  type: S.literal,
2519
2540
  value: e[0].value
2520
2541
  }
2521
2542
  ];
2522
- for (var s = [], h = 0, l = e; h < l.length; h++) {
2523
- var u = l[h];
2524
- if (ae(u)) {
2543
+ for (var s = [], u = 0, l = e; u < l.length; u++) {
2544
+ var h = l[u];
2545
+ if (ie(h)) {
2525
2546
  s.push({
2526
2547
  type: S.literal,
2527
- value: u.value
2548
+ value: h.value
2528
2549
  });
2529
2550
  continue;
2530
2551
  }
2531
- if (Xe(u)) {
2532
- typeof i == "number" && s.push({
2552
+ if (Xe(h)) {
2553
+ typeof a == "number" && s.push({
2533
2554
  type: S.literal,
2534
- value: n.getNumberFormat(t).format(i)
2555
+ value: n.getNumberFormat(t).format(a)
2535
2556
  });
2536
2557
  continue;
2537
2558
  }
2538
- var m = u.value;
2539
- if (!(a && m in a))
2559
+ var m = h.value;
2560
+ if (!(i && m in i))
2540
2561
  throw new Nt(m, o);
2541
- var c = a[m];
2542
- if (je(u)) {
2562
+ var c = i[m];
2563
+ if (je(h)) {
2543
2564
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
2544
2565
  type: typeof c == "string" ? S.literal : S.object,
2545
2566
  value: c
2546
2567
  });
2547
2568
  continue;
2548
2569
  }
2549
- if (de(u)) {
2550
- var E = typeof u.style == "string" ? r.date[u.style] : J(u.style) ? u.style.parsedOptions : void 0;
2570
+ if (de(h)) {
2571
+ var E = typeof h.style == "string" ? r.date[h.style] : J(h.style) ? h.style.parsedOptions : void 0;
2551
2572
  s.push({
2552
2573
  type: S.literal,
2553
2574
  value: n.getDateTimeFormat(t, E).format(c)
2554
2575
  });
2555
2576
  continue;
2556
2577
  }
2557
- if (xe(u)) {
2558
- var E = typeof u.style == "string" ? r.time[u.style] : J(u.style) ? u.style.parsedOptions : r.time.medium;
2578
+ if (xe(h)) {
2579
+ var E = typeof h.style == "string" ? r.time[h.style] : J(h.style) ? h.style.parsedOptions : r.time.medium;
2559
2580
  s.push({
2560
2581
  type: S.literal,
2561
2582
  value: n.getDateTimeFormat(t, E).format(c)
2562
2583
  });
2563
2584
  continue;
2564
2585
  }
2565
- if (be(u)) {
2566
- var E = typeof u.style == "string" ? r.number[u.style] : He(u.style) ? u.style.parsedOptions : void 0;
2586
+ if (be(h)) {
2587
+ var E = typeof h.style == "string" ? r.number[h.style] : He(h.style) ? h.style.parsedOptions : void 0;
2567
2588
  E && E.scale && (c = c * (E.scale || 1)), s.push({
2568
2589
  type: S.literal,
2569
2590
  value: n.getNumberFormat(t, E).format(c)
2570
2591
  });
2571
2592
  continue;
2572
2593
  }
2573
- if (Se(u)) {
2574
- var y = u.children, g = u.value, b = a[g];
2594
+ if (Se(h)) {
2595
+ var y = h.children, p = h.value, b = i[p];
2575
2596
  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) {
2597
+ throw new It(p, "function", o);
2598
+ var x = k(y, t, n, r, i, a), H = b(x.map(function(L) {
2578
2599
  return L.value;
2579
2600
  }));
2580
2601
  Array.isArray(H) || (H = [H]), s.push.apply(s, H.map(function(L) {
@@ -2584,26 +2605,26 @@ function k(e, t, n, r, a, i, o) {
2584
2605
  };
2585
2606
  }));
2586
2607
  }
2587
- if (ye(u)) {
2588
- var T = u.options[c] || u.options.other;
2608
+ if (ye(h)) {
2609
+ var T = h.options[c] || h.options.other;
2589
2610
  if (!T)
2590
- throw new fe(u.value, c, Object.keys(u.options), o);
2591
- s.push.apply(s, k(T.value, t, n, r, a));
2611
+ throw new fe(h.value, c, Object.keys(h.options), o);
2612
+ s.push.apply(s, k(T.value, t, n, r, i));
2592
2613
  continue;
2593
2614
  }
2594
- if (Te(u)) {
2595
- var T = u.options["=".concat(c)];
2615
+ if (Te(h)) {
2616
+ var T = h.options["=".concat(c)];
2596
2617
  if (!T) {
2597
2618
  if (!Intl.PluralRules)
2598
2619
  throw new R(`Intl.PluralRules is not available in this environment.
2599
2620
  Try polyfilling it using "@formatjs/intl-pluralrules"
2600
2621
  `, _.MISSING_INTL_API, o);
2601
- var w = n.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
2602
- T = u.options[w] || u.options.other;
2622
+ var w = n.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
2623
+ T = h.options[w] || h.options.other;
2603
2624
  }
2604
2625
  if (!T)
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)));
2626
+ throw new fe(h.value, c, Object.keys(h.options), o);
2627
+ s.push.apply(s, k(T.value, t, n, r, i, c - (h.offset || 0)));
2607
2628
  continue;
2608
2629
  }
2609
2630
  }
@@ -2668,33 +2689,33 @@ function Rt(e) {
2668
2689
  var Me = (
2669
2690
  /** @class */
2670
2691
  function() {
2671
- function e(t, n, r, a) {
2672
- var i = this;
2692
+ function e(t, n, r, i) {
2693
+ var a = this;
2673
2694
  if (n === void 0 && (n = e.defaultLocale), this.formatterCache = {
2674
2695
  number: {},
2675
2696
  dateTime: {},
2676
2697
  pluralRules: {}
2677
- }, this.format = function(h) {
2678
- var l = i.formatToParts(h);
2698
+ }, this.format = function(u) {
2699
+ var l = a.formatToParts(u);
2679
2700
  if (l.length === 1)
2680
2701
  return l[0].value;
2681
- var u = l.reduce(function(m, c) {
2702
+ var h = l.reduce(function(m, c) {
2682
2703
  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
2704
  }, []);
2684
- return u.length <= 1 ? u[0] || "" : u;
2685
- }, this.formatToParts = function(h) {
2686
- return k(i.ast, i.locales, i.formatters, i.formats, h, void 0, i.message);
2705
+ return h.length <= 1 ? h[0] || "" : h;
2706
+ }, this.formatToParts = function(u) {
2707
+ return k(a.ast, a.locales, a.formatters, a.formats, u, void 0, a.message);
2687
2708
  }, this.resolvedOptions = function() {
2688
- var h;
2709
+ var u;
2689
2710
  return {
2690
- locale: ((h = i.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(i.locales)[0]
2711
+ locale: ((u = a.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
2691
2712
  };
2692
2713
  }, this.getAst = function() {
2693
- return i.ast;
2714
+ return a.ast;
2694
2715
  }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
2695
2716
  if (this.message = t, !e.__parse)
2696
2717
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
2697
- var o = a || {};
2718
+ var o = i || {};
2698
2719
  o.formatters;
2699
2720
  var s = ke(o, ["formatters"]);
2700
2721
  this.ast = e.__parse(t, f(f({}, s), { locale: this.resolvedLocale }));
@@ -2702,7 +2723,7 @@ var Me = (
2702
2723
  this.ast = t;
2703
2724
  if (!Array.isArray(this.ast))
2704
2725
  throw new TypeError("A message must be provided as a String or AST.");
2705
- this.formats = Pt(e.formats, r), this.formatters = a && a.formatters || Rt(this.formatterCache);
2726
+ this.formats = Pt(e.formats, r), this.formatters = i && i.formatters || Rt(this.formatterCache);
2706
2727
  }
2707
2728
  return Object.defineProperty(e, "defaultLocale", {
2708
2729
  get: function() {
@@ -2783,12 +2804,12 @@ var F = (
2783
2804
  /** @class */
2784
2805
  function(e) {
2785
2806
  N(t, e);
2786
- function t(n, r, a) {
2787
- var i = this, o = a ? a instanceof Error ? a : new Error(String(a)) : void 0;
2788
- return i = e.call(this, "[@formatjs/intl Error ".concat(n, "] ").concat(r, `
2807
+ function t(n, r, i) {
2808
+ var a = this, o = i ? i instanceof Error ? i : new Error(String(i)) : void 0;
2809
+ return a = e.call(this, "[@formatjs/intl Error ".concat(n, "] ").concat(r, `
2789
2810
  `).concat(o ? `
2790
2811
  `.concat(o.message, `
2791
- `).concat(o.stack) : "")) || this, i.code = n, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(i, t), i;
2812
+ `).concat(o.stack) : "")) || this, a.code = n, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(a, t), a;
2792
2813
  }
2793
2814
  return t;
2794
2815
  }(Error)
@@ -2823,11 +2844,11 @@ var F = (
2823
2844
  /** @class */
2824
2845
  function(e) {
2825
2846
  N(t, e);
2826
- function t(n, r, a) {
2827
- var i = e.call(this, M.FORMAT_ERROR, "".concat(n, `
2847
+ function t(n, r, i) {
2848
+ var a = e.call(this, M.FORMAT_ERROR, "".concat(n, `
2828
2849
  Locale: `).concat(r, `
2829
- `), a) || this;
2830
- return i.locale = r, i;
2850
+ `), i) || this;
2851
+ return a.locale = r, a;
2831
2852
  }
2832
2853
  return t;
2833
2854
  }(F)
@@ -2835,13 +2856,13 @@ Locale: `).concat(r, `
2835
2856
  /** @class */
2836
2857
  function(e) {
2837
2858
  N(t, e);
2838
- function t(n, r, a, i) {
2859
+ function t(n, r, i, a) {
2839
2860
  var o = e.call(this, "".concat(n, `
2840
- MessageID: `).concat(a == null ? void 0 : a.id, `
2841
- Default Message: `).concat(a == null ? void 0 : a.defaultMessage, `
2842
- Description: `).concat(a == null ? void 0 : a.description, `
2843
- `), r, i) || this;
2844
- return o.descriptor = a, o.locale = r, o;
2861
+ MessageID: `).concat(i == null ? void 0 : i.id, `
2862
+ Default Message: `).concat(i == null ? void 0 : i.defaultMessage, `
2863
+ Description: `).concat(i == null ? void 0 : i.description, `
2864
+ `), r, a) || this;
2865
+ return o.descriptor = i, o.locale = r, o;
2845
2866
  }
2846
2867
  return t;
2847
2868
  }(I)
@@ -2850,18 +2871,18 @@ Description: `).concat(a == null ? void 0 : a.description, `
2850
2871
  function(e) {
2851
2872
  N(t, e);
2852
2873
  function t(n, r) {
2853
- var a = e.call(this, M.MISSING_TRANSLATION, 'Missing message: "'.concat(n.id, '" for locale "').concat(r, '", using ').concat(n.defaultMessage ? "default message (".concat(typeof n.defaultMessage == "string" ? n.defaultMessage : n.defaultMessage.map(function(i) {
2874
+ var i = e.call(this, M.MISSING_TRANSLATION, 'Missing message: "'.concat(n.id, '" for locale "').concat(r, '", using ').concat(n.defaultMessage ? "default message (".concat(typeof n.defaultMessage == "string" ? n.defaultMessage : n.defaultMessage.map(function(a) {
2854
2875
  var o;
2855
- return (o = i.value) !== null && o !== void 0 ? o : JSON.stringify(i);
2876
+ return (o = a.value) !== null && o !== void 0 ? o : JSON.stringify(a);
2856
2877
  }).join(), ")") : "id", " as fallback.")) || this;
2857
- return a.descriptor = n, a;
2878
+ return i.descriptor = n, i;
2858
2879
  }
2859
2880
  return t;
2860
2881
  }(F)
2861
2882
  );
2862
2883
  function C(e, t, n) {
2863
- return n === void 0 && (n = {}), t.reduce(function(r, a) {
2864
- return a in e ? r[a] = e[a] : a in n && (r[a] = n[a]), r;
2884
+ return n === void 0 && (n = {}), t.reduce(function(r, i) {
2885
+ return i in e ? r[i] = e[i] : i in n && (r[i] = n[i]), r;
2865
2886
  }, {});
2866
2887
  }
2867
2888
  var Ct = function(e) {
@@ -2905,44 +2926,44 @@ function O(e) {
2905
2926
  }
2906
2927
  function Ft(e) {
2907
2928
  e === void 0 && (e = Ce());
2908
- var t = Intl.RelativeTimeFormat, n = Intl.ListFormat, r = Intl.DisplayNames, a = A(function() {
2909
- for (var s, h = [], l = 0; l < arguments.length; l++)
2910
- h[l] = arguments[l];
2911
- return new ((s = Intl.DateTimeFormat).bind.apply(s, P([void 0], h, !1)))();
2929
+ var t = Intl.RelativeTimeFormat, n = Intl.ListFormat, r = Intl.DisplayNames, i = A(function() {
2930
+ for (var s, u = [], l = 0; l < arguments.length; l++)
2931
+ u[l] = arguments[l];
2932
+ return new ((s = Intl.DateTimeFormat).bind.apply(s, P([void 0], u, !1)))();
2912
2933
  }, {
2913
2934
  cache: O(e.dateTime),
2914
2935
  strategy: B.variadic
2915
- }), i = A(function() {
2916
- for (var s, h = [], l = 0; l < arguments.length; l++)
2917
- h[l] = arguments[l];
2918
- return new ((s = Intl.NumberFormat).bind.apply(s, P([void 0], h, !1)))();
2936
+ }), a = A(function() {
2937
+ for (var s, u = [], l = 0; l < arguments.length; l++)
2938
+ u[l] = arguments[l];
2939
+ return new ((s = Intl.NumberFormat).bind.apply(s, P([void 0], u, !1)))();
2919
2940
  }, {
2920
2941
  cache: O(e.number),
2921
2942
  strategy: B.variadic
2922
2943
  }), o = A(function() {
2923
- for (var s, h = [], l = 0; l < arguments.length; l++)
2924
- h[l] = arguments[l];
2925
- return new ((s = Intl.PluralRules).bind.apply(s, P([void 0], h, !1)))();
2944
+ for (var s, u = [], l = 0; l < arguments.length; l++)
2945
+ u[l] = arguments[l];
2946
+ return new ((s = Intl.PluralRules).bind.apply(s, P([void 0], u, !1)))();
2926
2947
  }, {
2927
2948
  cache: O(e.pluralRules),
2928
2949
  strategy: B.variadic
2929
2950
  });
2930
2951
  return {
2931
- getDateTimeFormat: a,
2932
- getNumberFormat: i,
2933
- getMessageFormat: A(function(s, h, l, u) {
2934
- return new Me(s, h, l, f({ formatters: {
2935
- getNumberFormat: i,
2936
- getDateTimeFormat: a,
2952
+ getDateTimeFormat: i,
2953
+ getNumberFormat: a,
2954
+ getMessageFormat: A(function(s, u, l, h) {
2955
+ return new Me(s, u, l, f({ formatters: {
2956
+ getNumberFormat: a,
2957
+ getDateTimeFormat: i,
2937
2958
  getPluralRules: o
2938
- } }, u || {}));
2959
+ } }, h || {}));
2939
2960
  }, {
2940
2961
  cache: O(e.message),
2941
2962
  strategy: B.variadic
2942
2963
  }),
2943
2964
  getRelativeTimeFormat: A(function() {
2944
- for (var s = [], h = 0; h < arguments.length; h++)
2945
- s[h] = arguments[h];
2965
+ for (var s = [], u = 0; u < arguments.length; u++)
2966
+ s[u] = arguments[u];
2946
2967
  return new (t.bind.apply(t, P([void 0], s, !1)))();
2947
2968
  }, {
2948
2969
  cache: O(e.relativeTime),
@@ -2950,16 +2971,16 @@ function Ft(e) {
2950
2971
  }),
2951
2972
  getPluralRules: o,
2952
2973
  getListFormat: A(function() {
2953
- for (var s = [], h = 0; h < arguments.length; h++)
2954
- s[h] = arguments[h];
2974
+ for (var s = [], u = 0; u < arguments.length; u++)
2975
+ s[u] = arguments[u];
2955
2976
  return new (n.bind.apply(n, P([void 0], s, !1)))();
2956
2977
  }, {
2957
2978
  cache: O(e.list),
2958
2979
  strategy: B.variadic
2959
2980
  }),
2960
2981
  getDisplayNames: A(function() {
2961
- for (var s = [], h = 0; h < arguments.length; h++)
2962
- s[h] = arguments[h];
2982
+ for (var s = [], u = 0; u < arguments.length; u++)
2983
+ s[u] = arguments[u];
2963
2984
  return new (r.bind.apply(r, P([void 0], s, !1)))();
2964
2985
  }, {
2965
2986
  cache: O(e.displayNames),
@@ -2968,9 +2989,9 @@ function Ft(e) {
2968
2989
  };
2969
2990
  }
2970
2991
  function re(e, t, n, r) {
2971
- var a = e && e[t], i;
2972
- if (a && (i = a[n]), i)
2973
- return i;
2992
+ var i = e && e[t], a;
2993
+ if (i && (a = i[n]), a)
2994
+ return a;
2974
2995
  r(new Lt("No ".concat(t, " format named: ").concat(n)));
2975
2996
  }
2976
2997
  function Gt(e, t, n) {
@@ -2984,20 +3005,20 @@ function V(e, t) {
2984
3005
  }
2985
3006
  function ce(e, t) {
2986
3007
  var n = Object.keys(f(f({}, e), t));
2987
- return n.reduce(function(r, a) {
2988
- return r[a] = f(f({}, e[a] || {}), t[a] || {}), r;
3008
+ return n.reduce(function(r, i) {
3009
+ return r[i] = f(f({}, e[i] || {}), t[i] || {}), r;
2989
3010
  }, {});
2990
3011
  }
2991
- function pe(e, t) {
3012
+ function ge(e, t) {
2992
3013
  if (!t)
2993
3014
  return e;
2994
3015
  var n = Me.formats;
2995
3016
  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
3017
  }
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, m = e.onError, c = e.timeZone, E = e.defaultRichTextElements;
3018
+ var pe = function(e, t, n, r, i) {
3019
+ var a = e.locale, o = e.formats, s = e.messages, u = e.defaultLocale, l = e.defaultFormats, h = e.fallbackOnEmptyString, m = e.onError, c = e.timeZone, E = e.defaultRichTextElements;
2999
3020
  n === void 0 && (n = { id: "" });
3000
- var y = n.id, g = n.defaultMessage;
3021
+ var y = n.id, p = n.defaultMessage;
3001
3022
  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
3023
  var b = String(y), x = (
3003
3024
  // In case messages is Object.create(null)
@@ -3009,32 +3030,32 @@ var ge = function(e, t, n, r, a) {
3009
3030
  return x[0].value;
3010
3031
  if (!r && x && typeof x == "string" && !E)
3011
3032
  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 === "")
3033
+ if (r = f(f({}, E), r || {}), o = ge(o, c), l = ge(l, c), !x) {
3034
+ if (h === !1 && x === "")
3014
3035
  return x;
3015
- if ((!g || i && i.toLowerCase() !== h.toLowerCase()) && m(new Mt(n, i)), g)
3036
+ if ((!p || a && a.toLowerCase() !== u.toLowerCase()) && m(new Mt(n, a)), p)
3016
3037
  try {
3017
- var H = t.getMessageFormat(g, h, l, a);
3038
+ var H = t.getMessageFormat(p, u, l, i);
3018
3039
  return H.format(r);
3019
3040
  } catch (T) {
3020
- return m(new Z('Error formatting default message for: "'.concat(b, '", rendering default message verbatim'), i, n, T)), typeof g == "string" ? g : b;
3041
+ return m(new Z('Error formatting default message for: "'.concat(b, '", rendering default message verbatim'), a, n, T)), typeof p == "string" ? p : b;
3021
3042
  }
3022
3043
  return b;
3023
3044
  }
3024
3045
  try {
3025
- var H = t.getMessageFormat(x, i, o, f({ formatters: t }, a || {}));
3046
+ var H = t.getMessageFormat(x, a, o, f({ formatters: t }, i || {}));
3026
3047
  return H.format(r);
3027
3048
  } catch (T) {
3028
- m(new Z('Error formatting message: "'.concat(b, '", using ').concat(g ? "default message" : "id", " as fallback."), i, n, T));
3049
+ m(new Z('Error formatting message: "'.concat(b, '", using ').concat(p ? "default message" : "id", " as fallback."), a, n, T));
3029
3050
  }
3030
- if (g)
3051
+ if (p)
3031
3052
  try {
3032
- var H = t.getMessageFormat(g, h, l, a);
3053
+ var H = t.getMessageFormat(p, u, l, i);
3033
3054
  return H.format(r);
3034
3055
  } catch (T) {
3035
- m(new Z('Error formatting the default message for: "'.concat(b, '", rendering message verbatim'), i, n, T));
3056
+ m(new Z('Error formatting the default message for: "'.concat(b, '", rendering message verbatim'), a, n, T));
3036
3057
  }
3037
- return typeof x == "string" ? x : typeof g == "string" ? g : b;
3058
+ return typeof x == "string" ? x : typeof p == "string" ? p : b;
3038
3059
  }, De = [
3039
3060
  "formatMatcher",
3040
3061
  "timeZone",
@@ -3057,63 +3078,63 @@ var ge = function(e, t, n, r, a) {
3057
3078
  "fractionalSecondDigits"
3058
3079
  ];
3059
3080
  function j(e, t, n, r) {
3060
- var a = e.locale, i = e.formats, o = e.onError, s = e.timeZone;
3081
+ var i = e.locale, a = e.formats, o = e.onError, s = e.timeZone;
3061
3082
  r === void 0 && (r = {});
3062
- var h = r.format, l = f(f({}, s && { timeZone: s }), h && re(i, t, h, o)), u = C(r, De, l);
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);
3083
+ var u = r.format, l = f(f({}, s && { timeZone: s }), u && re(a, t, u, o)), h = C(r, De, l);
3084
+ return t === "time" && !h.hour && !h.minute && !h.second && !h.timeStyle && !h.dateStyle && (h = f(f({}, h), { hour: "numeric", minute: "numeric" })), n(i, h);
3064
3085
  }
3065
3086
  function Ut(e, t) {
3066
3087
  for (var n = [], r = 2; r < arguments.length; r++)
3067
3088
  n[r - 2] = arguments[r];
3068
- var a = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
3089
+ var i = n[0], a = n[1], o = a === void 0 ? {} : a, s = typeof i == "string" ? new Date(i || 0) : i;
3069
3090
  try {
3070
3091
  return j(e, "date", t, o).format(s);
3071
- } catch (h) {
3072
- e.onError(new I("Error formatting date.", e.locale, h));
3092
+ } catch (u) {
3093
+ e.onError(new I("Error formatting date.", e.locale, u));
3073
3094
  }
3074
3095
  return String(s);
3075
3096
  }
3076
3097
  function Vt(e, t) {
3077
3098
  for (var n = [], r = 2; r < arguments.length; r++)
3078
3099
  n[r - 2] = arguments[r];
3079
- var a = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
3100
+ var i = n[0], a = n[1], o = a === void 0 ? {} : a, s = typeof i == "string" ? new Date(i || 0) : i;
3080
3101
  try {
3081
3102
  return j(e, "time", t, o).format(s);
3082
- } catch (h) {
3083
- e.onError(new I("Error formatting time.", e.locale, h));
3103
+ } catch (u) {
3104
+ e.onError(new I("Error formatting time.", e.locale, u));
3084
3105
  }
3085
3106
  return String(s);
3086
3107
  }
3087
3108
  function kt(e, t) {
3088
3109
  for (var n = [], r = 2; r < arguments.length; r++)
3089
3110
  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, m = C(s, De, h ? { timeZone: h } : {});
3111
+ var i = n[0], a = n[1], o = n[2], s = o === void 0 ? {} : o, u = e.timeZone, l = e.locale, h = e.onError, m = C(s, De, u ? { timeZone: u } : {});
3091
3112
  try {
3092
- return t(l, m).formatRange(a, i);
3113
+ return t(l, m).formatRange(i, a);
3093
3114
  } catch (c) {
3094
- u(new I("Error formatting date time range.", e.locale, c));
3115
+ h(new I("Error formatting date time range.", e.locale, c));
3095
3116
  }
3096
- return String(a);
3117
+ return String(i);
3097
3118
  }
3098
3119
  function jt(e, t) {
3099
3120
  for (var n = [], r = 2; r < arguments.length; r++)
3100
3121
  n[r - 2] = arguments[r];
3101
- var a = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
3122
+ var i = n[0], a = n[1], o = a === void 0 ? {} : a, s = typeof i == "string" ? new Date(i || 0) : i;
3102
3123
  try {
3103
3124
  return j(e, "date", t, o).formatToParts(s);
3104
- } catch (h) {
3105
- e.onError(new I("Error formatting date.", e.locale, h));
3125
+ } catch (u) {
3126
+ e.onError(new I("Error formatting date.", e.locale, u));
3106
3127
  }
3107
3128
  return [];
3108
3129
  }
3109
3130
  function Xt(e, t) {
3110
3131
  for (var n = [], r = 2; r < arguments.length; r++)
3111
3132
  n[r - 2] = arguments[r];
3112
- var a = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
3133
+ var i = n[0], a = n[1], o = a === void 0 ? {} : a, s = typeof i == "string" ? new Date(i || 0) : i;
3113
3134
  try {
3114
3135
  return j(e, "time", t, o).formatToParts(s);
3115
- } catch (h) {
3116
- e.onError(new I("Error formatting time.", e.locale, h));
3136
+ } catch (u) {
3137
+ e.onError(new I("Error formatting time.", e.locale, u));
3117
3138
  }
3118
3139
  return [];
3119
3140
  }
@@ -3124,15 +3145,15 @@ var Wt = [
3124
3145
  "languageDisplay"
3125
3146
  ];
3126
3147
  function Zt(e, t, n, r) {
3127
- var a = e.locale, i = e.onError, o = Intl.DisplayNames;
3128
- o || i(new R(`Intl.DisplayNames is not available in this environment.
3148
+ var i = e.locale, a = e.onError, o = Intl.DisplayNames;
3149
+ o || a(new R(`Intl.DisplayNames is not available in this environment.
3129
3150
  Try polyfilling it using "@formatjs/intl-displaynames"
3130
3151
  `, _.MISSING_INTL_API));
3131
3152
  var s = C(r, Wt);
3132
3153
  try {
3133
- return t(a, s).of(n);
3134
- } catch (h) {
3135
- i(new I("Error formatting display name.", a, h));
3154
+ return t(i, s).of(n);
3155
+ } catch (u) {
3156
+ a(new I("Error formatting display name.", i, u));
3136
3157
  }
3137
3158
  }
3138
3159
  var zt = [
@@ -3144,65 +3165,65 @@ function Jt(e) {
3144
3165
  }
3145
3166
  function qt(e, t, n, r) {
3146
3167
  r === void 0 && (r = {});
3147
- var a = we(e, t, n, r).reduce(function(i, o) {
3168
+ var i = we(e, t, n, r).reduce(function(a, o) {
3148
3169
  var s = o.value;
3149
- return typeof s != "string" ? i.push(s) : typeof i[i.length - 1] == "string" ? i[i.length - 1] += s : i.push(s), i;
3170
+ return typeof s != "string" ? a.push(s) : typeof a[a.length - 1] == "string" ? a[a.length - 1] += s : a.push(s), a;
3150
3171
  }, []);
3151
- return a.length === 1 ? a[0] : a.length === 0 ? "" : a;
3172
+ return i.length === 1 ? i[0] : i.length === 0 ? "" : i;
3152
3173
  }
3153
3174
  function we(e, t, n, r) {
3154
- var a = e.locale, i = e.onError;
3175
+ var i = e.locale, a = e.onError;
3155
3176
  r === void 0 && (r = {});
3156
3177
  var o = Intl.ListFormat;
3157
- o || i(new R(`Intl.ListFormat is not available in this environment.
3178
+ o || a(new R(`Intl.ListFormat is not available in this environment.
3158
3179
  Try polyfilling it using "@formatjs/intl-listformat"
3159
3180
  `, _.MISSING_INTL_API));
3160
3181
  var s = C(r, zt);
3161
3182
  try {
3162
- var h = {}, l = n.map(function(u, m) {
3163
- if (typeof u == "object") {
3183
+ var u = {}, l = n.map(function(h, m) {
3184
+ if (typeof h == "object") {
3164
3185
  var c = Jt(m);
3165
- return h[c] = u, c;
3186
+ return u[c] = h, c;
3166
3187
  }
3167
- return String(u);
3188
+ return String(h);
3168
3189
  });
3169
- return t(a, s).formatToParts(l).map(function(u) {
3170
- return u.type === "literal" ? u : f(f({}, u), { value: h[u.value] || u.value });
3190
+ return t(i, s).formatToParts(l).map(function(h) {
3191
+ return h.type === "literal" ? h : f(f({}, h), { value: u[h.value] || h.value });
3171
3192
  });
3172
- } catch (u) {
3173
- i(new I("Error formatting list.", a, u));
3193
+ } catch (h) {
3194
+ a(new I("Error formatting list.", i, h));
3174
3195
  }
3175
3196
  return n;
3176
3197
  }
3177
3198
  var Qt = ["type"];
3178
3199
  function Yt(e, t, n, r) {
3179
- var a = e.locale, i = e.onError;
3180
- r === void 0 && (r = {}), Intl.PluralRules || i(new R(`Intl.PluralRules is not available in this environment.
3200
+ var i = e.locale, a = e.onError;
3201
+ r === void 0 && (r = {}), Intl.PluralRules || a(new R(`Intl.PluralRules is not available in this environment.
3181
3202
  Try polyfilling it using "@formatjs/intl-pluralrules"
3182
3203
  `, _.MISSING_INTL_API));
3183
3204
  var o = C(r, Qt);
3184
3205
  try {
3185
- return t(a, o).select(n);
3206
+ return t(i, o).select(n);
3186
3207
  } catch (s) {
3187
- i(new I("Error formatting plural.", a, s));
3208
+ a(new I("Error formatting plural.", i, s));
3188
3209
  }
3189
3210
  return "other";
3190
3211
  }
3191
3212
  var $t = ["numeric", "style"];
3192
3213
  function Kt(e, t, n) {
3193
- var r = e.locale, a = e.formats, i = e.onError;
3214
+ var r = e.locale, i = e.formats, a = e.onError;
3194
3215
  n === void 0 && (n = {});
3195
- var o = n.format, s = !!o && re(a, "relative", o, i) || {}, h = C(n, $t, s);
3196
- return t(r, h);
3216
+ var o = n.format, s = !!o && re(i, "relative", o, a) || {}, u = C(n, $t, s);
3217
+ return t(r, u);
3197
3218
  }
3198
- function er(e, t, n, r, a) {
3199
- a === void 0 && (a = {}), r || (r = "second");
3200
- var i = Intl.RelativeTimeFormat;
3201
- i || e.onError(new R(`Intl.RelativeTimeFormat is not available in this environment.
3219
+ function er(e, t, n, r, i) {
3220
+ i === void 0 && (i = {}), r || (r = "second");
3221
+ var a = Intl.RelativeTimeFormat;
3222
+ a || e.onError(new R(`Intl.RelativeTimeFormat is not available in this environment.
3202
3223
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
3203
3224
  `, _.MISSING_INTL_API));
3204
3225
  try {
3205
- return Kt(e, t, a).format(n, r);
3226
+ return Kt(e, t, i).format(n, r);
3206
3227
  } catch (o) {
3207
3228
  e.onError(new I("Error formatting relative time.", e.locale, o));
3208
3229
  }
@@ -3211,7 +3232,6 @@ Try polyfilling it using "@formatjs/intl-relativetimeformat"
3211
3232
  var tr = [
3212
3233
  "style",
3213
3234
  "currency",
3214
- "currencyDisplay",
3215
3235
  "unit",
3216
3236
  "unitDisplay",
3217
3237
  "useGrouping",
@@ -3228,20 +3248,25 @@ var tr = [
3228
3248
  "signDisplay",
3229
3249
  "unit",
3230
3250
  "unitDisplay",
3231
- "numberingSystem"
3251
+ "numberingSystem",
3252
+ // ES2023 NumberFormat
3253
+ "trailingZeroDisplay",
3254
+ "roundingPriority",
3255
+ "roundingIncrement",
3256
+ "roundingMode"
3232
3257
  ];
3233
3258
  function Fe(e, t, n) {
3234
- var r = e.locale, a = e.formats, i = e.onError;
3259
+ var r = e.locale, i = e.formats, a = e.onError;
3235
3260
  n === void 0 && (n = {});
3236
- var o = n.format, s = o && re(a, "number", o, i) || {}, h = C(n, tr, s);
3237
- return t(r, h);
3261
+ var o = n.format, s = o && re(i, "number", o, a) || {}, u = C(n, tr, s);
3262
+ return t(r, u);
3238
3263
  }
3239
3264
  function rr(e, t, n, r) {
3240
3265
  r === void 0 && (r = {});
3241
3266
  try {
3242
3267
  return Fe(e, t, r).format(n);
3243
- } catch (a) {
3244
- e.onError(new I("Error formatting number.", e.locale, a));
3268
+ } catch (i) {
3269
+ e.onError(new I("Error formatting number.", e.locale, i));
3245
3270
  }
3246
3271
  return String(n);
3247
3272
  }
@@ -3249,23 +3274,23 @@ function nr(e, t, n, r) {
3249
3274
  r === void 0 && (r = {});
3250
3275
  try {
3251
3276
  return Fe(e, t, r).formatToParts(n);
3252
- } catch (a) {
3253
- e.onError(new I("Error formatting number.", e.locale, a));
3277
+ } catch (i) {
3278
+ e.onError(new I("Error formatting number.", e.locale, i));
3254
3279
  }
3255
3280
  return [];
3256
3281
  }
3257
- function ar(e) {
3282
+ function ir(e) {
3258
3283
  var t = e ? e[Object.keys(e)[0]] : void 0;
3259
3284
  return typeof t == "string";
3260
3285
  }
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.
3286
+ function ar(e) {
3287
+ e.onWarn && e.defaultRichTextElements && ir(e.messages || {}) && e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
3263
3288
  Please consider using "@formatjs/cli" to pre-compile your messages for performance.
3264
3289
  For more details see https://formatjs.io/docs/getting-started/message-distribution`);
3265
3290
  }
3266
3291
  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), {
3292
+ var n = Ft(t), r = f(f({}, wt), e), i = r.locale, a = r.defaultLocale, o = r.onError;
3293
+ return i ? !Intl.NumberFormat.supportedLocalesOf(i).length && o ? o(new me('Missing locale data for locale: "'.concat(i, '" in Intl.NumberFormat. Using default locale: "').concat(a, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(i).length && o && o(new me('Missing locale data for locale: "'.concat(i, '" in Intl.DateTimeFormat. Using default locale: "').concat(a, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (o && o(new Ot('"locale" was not configured, using "'.concat(a, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), r.locale = r.defaultLocale || "en"), ar(r), f(f({}, r), {
3269
3294
  formatters: n,
3270
3295
  formatNumber: rr.bind(null, r, n.getNumberFormat),
3271
3296
  formatNumberToParts: nr.bind(null, r, n.getNumberFormat),
@@ -3277,9 +3302,9 @@ function or(e, t) {
3277
3302
  formatTimeToParts: Xt.bind(null, r, n.getDateTimeFormat),
3278
3303
  formatPlural: Yt.bind(null, r, n.getPluralRules),
3279
3304
  // @ts-expect-error TODO: will get to this later
3280
- formatMessage: ge.bind(null, r, n),
3305
+ formatMessage: pe.bind(null, r, n),
3281
3306
  // @ts-expect-error TODO: will get to this later
3282
- $t: ge.bind(null, r, n),
3307
+ $t: pe.bind(null, r, n),
3283
3308
  formatList: qt.bind(null, r, n.getListFormat),
3284
3309
  formatListToParts: we.bind(null, r, n.getListFormat),
3285
3310
  formatDisplayName: Zt.bind(null, r, n.getDisplayNames)
@@ -3288,21 +3313,21 @@ function or(e, t) {
3288
3313
  function sr(e) {
3289
3314
  return e && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e);
3290
3315
  }
3291
- function hr(e) {
3316
+ function ur(e) {
3292
3317
  return e;
3293
3318
  }
3294
- function ur(e, t) {
3319
+ function hr(e, t) {
3295
3320
  t = t || {};
3296
- const n = t.delimiter || ".", r = t.maxDepth, a = t.transformKey || hr, i = {};
3297
- function o(s, h, l) {
3298
- l = l || 1, Object.keys(s).forEach(function(u) {
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))
3321
+ const n = t.delimiter || ".", r = t.maxDepth, i = t.transformKey || ur, a = {};
3322
+ function o(s, u, l) {
3323
+ l = l || 1, Object.keys(s).forEach(function(h) {
3324
+ const m = s[h], c = t.safe && Array.isArray(m), E = Object.prototype.toString.call(m), y = sr(m), p = E === "[object Object]" || E === "[object Array]", b = u ? u + n + i(h) : i(h);
3325
+ if (!c && !y && p && Object.keys(m).length && (!t.maxDepth || l < r))
3301
3326
  return o(m, b, l + 1);
3302
- i[b] = m;
3327
+ a[b] = m;
3303
3328
  });
3304
3329
  }
3305
- return o(e), i;
3330
+ return o(e), a;
3306
3331
  }
3307
3332
  const lr = Ce();
3308
3333
  let Ge;
@@ -3314,11 +3339,11 @@ const Ee = {
3314
3339
  minute: "numeric"
3315
3340
  }, cr = (e, t, n = !1) => {
3316
3341
  var y;
3317
- const r = typeof n == "boolean", a = or(
3342
+ const r = typeof n == "boolean", i = or(
3318
3343
  {
3319
3344
  ...r ? null : n,
3320
3345
  locale: e,
3321
- messages: ur(t, {
3346
+ messages: hr(t, {
3322
3347
  safe: !0
3323
3348
  // Preserve arrays
3324
3349
  }),
@@ -3331,31 +3356,31 @@ const Ee = {
3331
3356
  }
3332
3357
  },
3333
3358
  lr
3334
- ), { $t: i, ...o } = a, s = o, h = (g) => {
3359
+ ), { $t: a, ...o } = i, s = o, u = (p) => {
3335
3360
  const b = "Invalid Date";
3336
- if (!g)
3361
+ if (!p)
3337
3362
  return b;
3338
3363
  try {
3339
- const x = new Date(g * 1e3);
3364
+ const x = new Date(p * 1e3);
3340
3365
  return s.formatDate(x, Ee);
3341
3366
  } catch {
3342
3367
  return b;
3343
3368
  }
3344
3369
  }, E = {
3345
- formatUnixTimeStamp: h,
3346
- formatIsoDate: (g) => {
3347
- const b = Date.parse(g) / 1e3;
3348
- return h(b);
3370
+ formatUnixTimeStamp: u,
3371
+ formatIsoDate: (p) => {
3372
+ const b = Date.parse(p) / 1e3;
3373
+ return u(b);
3349
3374
  },
3350
- t: (g, b, x) => s.formatMessage({ id: g }, b, x),
3351
- te: (g) => !!s.messages[g],
3352
- tm: (g) => s.messages[g] || [],
3375
+ t: (p, b, x) => s.formatMessage({ id: p }, b, x),
3376
+ te: (p) => !!s.messages[p],
3377
+ tm: (p) => s.messages[p] || [],
3353
3378
  ...s,
3354
3379
  source: t
3355
3380
  };
3356
3381
  return (typeof n == "boolean" && n === !0 || typeof n != "boolean" && n.isGlobal === !0) && (Ge = E), E;
3357
3382
  };
3358
- function pr() {
3383
+ function gr() {
3359
3384
  return Ge;
3360
3385
  }
3361
3386
  const fr = (e = null) => Ue({
@@ -3376,32 +3401,32 @@ const fr = (e = null) => Ue({
3376
3401
  }
3377
3402
  },
3378
3403
  setup(t, { slots: n }) {
3379
- const r = (a) => {
3380
- if (!a)
3404
+ const r = (i) => {
3405
+ if (!i)
3381
3406
  return [];
3382
- const i = /(\{[^}]+\})/g;
3383
- return a.split(i).filter(Boolean);
3407
+ const a = /(\{[^}]+\})/g;
3408
+ return i.split(a).filter(Boolean);
3384
3409
  };
3385
3410
  return () => {
3386
- const a = Object.keys(n).filter((s) => s !== "_"), i = (e || t.i18n).messages[t.keypath].toString();
3387
- let o = r(i);
3388
- return o = o.filter((s) => s !== ""), o.forEach((s, h) => {
3411
+ const i = Object.keys(n).filter((s) => s !== "_"), a = (e || t.i18n).messages[t.keypath].toString();
3412
+ let o = r(a);
3413
+ return o = o.filter((s) => s !== ""), o.forEach((s, u) => {
3389
3414
  if (!s.startsWith("{") && !s.endsWith("}"))
3390
3415
  return;
3391
3416
  const l = s.replace(/[\{\}]/g, "");
3392
- l === "0" && n.default ? o[h] = n.default() : a.includes(l) && n[l] && (o[h] = n[l]());
3417
+ l === "0" && n.default ? o[u] = n.default() : i.includes(l) && n[l] && (o[u] = n[l]());
3393
3418
  }), Ve(t.tag, t, o);
3394
3419
  };
3395
3420
  }
3396
- }), gr = {
3421
+ }), pr = {
3397
3422
  install(e, t) {
3398
3423
  const { i18n: n } = t;
3399
3424
  e.component("I18nT", fr(n));
3400
3425
  }
3401
3426
  };
3402
3427
  export {
3403
- gr as Translation,
3428
+ pr as Translation,
3404
3429
  cr as createI18n,
3405
3430
  fr as i18nTComponent,
3406
- pr as useI18n
3431
+ gr as useI18n
3407
3432
  };