@kong-ui-public/i18n 0.4.2-pr.254.ebf714e.0 → 0.4.3-pr.195.213c4c7.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,16 +1,16 @@
1
1
  import { defineComponent as ke, h as Xe } from "vue";
2
- var z = function(e, t) {
3
- return z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
2
+ var q = function(e, t) {
3
+ return q = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
4
4
  n.__proto__ = r;
5
5
  } || function(n, r) {
6
6
  for (var i in r)
7
7
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
8
- }, z(e, t);
8
+ }, q(e, t);
9
9
  };
10
- function N(e, t) {
10
+ function A(e, t) {
11
11
  if (typeof t != "function" && t !== null)
12
12
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
13
- z(e, t);
13
+ q(e, t);
14
14
  function n() {
15
15
  this.constructor = e;
16
16
  }
@@ -35,16 +35,16 @@ function Ze(e, t) {
35
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
- function O(e, t, n) {
38
+ function P(e, t, n) {
39
39
  if (n || arguments.length === 2)
40
40
  for (var r = 0, i = t.length, a; r < i; r++)
41
41
  (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
42
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";
@@ -83,10 +83,10 @@ function Se(e) {
83
83
  function Ie(e) {
84
84
  return !!(e && typeof e == "object" && e.type === w.number);
85
85
  }
86
- function q(e) {
86
+ function J(e) {
87
87
  return !!(e && typeof e == "object" && e.type === w.dateTime);
88
88
  }
89
- var Ae = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, qe = /(?:[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;
89
+ var He = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, qe = /(?:[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
90
  function Je(e) {
91
91
  var t = {};
92
92
  return e.replace(qe, function(n) {
@@ -200,14 +200,14 @@ function Ye(e) {
200
200
  function $e(e) {
201
201
  return e.replace(/^(.*?)-/, "");
202
202
  }
203
- var oe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, He = /^(@+)?(\+|#+)?[rs]?$/g, Ke = /(\*)(0+)|(#+)(0+)|(0+)/g, Ne = /^(0+)$/;
203
+ var oe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ae = /^(@+)?(\+|#+)?[rs]?$/g, Ke = /(\*)(0+)|(#+)(0+)|(0+)/g, Ne = /^(0+)$/;
204
204
  function se(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(He, function(n, r, i) {
206
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ae, function(n, r, i) {
207
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
- function _e(e) {
210
+ function Be(e) {
211
211
  switch (e) {
212
212
  case "sign-auto":
213
213
  return {
@@ -262,7 +262,7 @@ function et(e) {
262
262
  return t;
263
263
  }
264
264
  function ue(e) {
265
- var t = {}, n = _e(e);
265
+ var t = {}, n = Be(e);
266
266
  return n || t;
267
267
  }
268
268
  function tt(e) {
@@ -330,13 +330,13 @@ function tt(e) {
330
330
  case "integer-width":
331
331
  if (i.options.length > 1)
332
332
  throw new RangeError("integer-width stems only accept a single optional option");
333
- i.options[0].replace(Ke, function(h, l, u, f, c, g) {
333
+ i.options[0].replace(Ke, function(h, l, u, f, c, p) {
334
334
  if (l)
335
335
  t.minimumIntegerDigits = u.length;
336
336
  else {
337
337
  if (f && c)
338
338
  throw new Error("We currently do not support maximum integer digits");
339
- if (g)
339
+ if (p)
340
340
  throw new Error("We currently do not support exact integer digits");
341
341
  }
342
342
  return "";
@@ -350,25 +350,25 @@ function tt(e) {
350
350
  if (oe.test(i.stem)) {
351
351
  if (i.options.length > 1)
352
352
  throw new RangeError("Fraction-precision stems only accept a single optional option");
353
- i.stem.replace(oe, function(h, l, u, f, c, g) {
354
- return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && g ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + g.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
353
+ i.stem.replace(oe, function(h, l, u, f, c, p) {
354
+ return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
355
355
  });
356
356
  var a = i.options[0];
357
357
  a === "w" ? t = m(m({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = m(m({}, t), se(a)));
358
358
  continue;
359
359
  }
360
- if (He.test(i.stem)) {
360
+ if (Ae.test(i.stem)) {
361
361
  t = m(m({}, t), se(i.stem));
362
362
  continue;
363
363
  }
364
- var o = _e(i.stem);
364
+ var o = Be(i.stem);
365
365
  o && (t = m(m({}, t), o));
366
366
  var s = et(i.stem);
367
367
  s && (t = m(m({}, t), s));
368
368
  }
369
369
  return t;
370
370
  }
371
- var U = {
371
+ var j = {
372
372
  AX: [
373
373
  "H"
374
374
  ],
@@ -1740,21 +1740,21 @@ function nt(e) {
1740
1740
  }
1741
1741
  var n = e.language, r;
1742
1742
  n !== "root" && (r = e.maximize().region);
1743
- var i = U[r || ""] || U[n || ""] || U["".concat(n, "-001")] || U["001"];
1743
+ var i = j[r || ""] || j[n || ""] || j["".concat(n, "-001")] || j["001"];
1744
1744
  return i[0];
1745
1745
  }
1746
- var X, it = new RegExp("^".concat(Ae.source, "*")), at = new RegExp("".concat(Ae.source, "*$"));
1746
+ var Z, it = new RegExp("^".concat(He.source, "*")), at = new RegExp("".concat(He.source, "*$"));
1747
1747
  function v(e, t) {
1748
1748
  return { start: e, end: t };
1749
1749
  }
1750
1750
  var ot = !!String.prototype.startsWith, st = !!String.fromCodePoint, ut = !!Object.fromEntries, ht = !!String.prototype.codePointAt, lt = !!String.prototype.trimStart, ft = !!String.prototype.trimEnd, ct = !!Number.isSafeInteger, mt = ct ? Number.isSafeInteger : function(e) {
1751
1751
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
1752
- }, J = !0;
1752
+ }, Q = !0;
1753
1753
  try {
1754
- var gt = Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
1755
- J = ((X = gt.exec("a")) === null || X === void 0 ? void 0 : X[0]) === "a";
1754
+ var pt = Pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
1755
+ Q = ((Z = pt.exec("a")) === null || Z === void 0 ? void 0 : Z[0]) === "a";
1756
1756
  } catch {
1757
- J = !1;
1757
+ Q = !1;
1758
1758
  }
1759
1759
  var he = ot ? (
1760
1760
  // Native
@@ -1766,7 +1766,7 @@ var he = ot ? (
1766
1766
  function(t, n, r) {
1767
1767
  return t.slice(r, r + n.length) === n;
1768
1768
  }
1769
- ), Q = st ? String.fromCodePoint : (
1769
+ ), Y = st ? String.fromCodePoint : (
1770
1770
  // IE11
1771
1771
  function() {
1772
1772
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -1790,7 +1790,7 @@ var he = ot ? (
1790
1790
  return n;
1791
1791
  }
1792
1792
  )
1793
- ), Be = ht ? (
1793
+ ), _e = ht ? (
1794
1794
  // Native
1795
1795
  function(t, n) {
1796
1796
  return t.codePointAt(n);
@@ -1804,7 +1804,7 @@ var he = ot ? (
1804
1804
  return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
1805
1805
  }
1806
1806
  }
1807
- ), pt = lt ? (
1807
+ ), gt = lt ? (
1808
1808
  // Native
1809
1809
  function(t) {
1810
1810
  return t.trimStart();
@@ -1825,27 +1825,27 @@ var he = ot ? (
1825
1825
  return t.replace(at, "");
1826
1826
  }
1827
1827
  );
1828
- function Re(e, t) {
1828
+ function Pe(e, t) {
1829
1829
  return new RegExp(e, t);
1830
1830
  }
1831
- var Y;
1832
- if (J) {
1833
- var fe = Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
1834
- Y = function(t, n) {
1831
+ var $;
1832
+ if (Q) {
1833
+ var fe = Pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
1834
+ $ = function(t, n) {
1835
1835
  var r;
1836
1836
  fe.lastIndex = n;
1837
1837
  var i = fe.exec(t);
1838
1838
  return (r = i[1]) !== null && r !== void 0 ? r : "";
1839
1839
  };
1840
1840
  } else
1841
- Y = function(t, n) {
1841
+ $ = function(t, n) {
1842
1842
  for (var r = []; ; ) {
1843
- var i = Be(t, n);
1843
+ var i = _e(t, n);
1844
1844
  if (i === void 0 || Oe(i) || yt(i))
1845
1845
  break;
1846
1846
  r.push(i), n += i >= 65536 ? 2 : 1;
1847
1847
  }
1848
- return Q.apply(void 0, r);
1848
+ return Y.apply(void 0, r);
1849
1849
  };
1850
1850
  var bt = (
1851
1851
  /** @class */
@@ -1877,8 +1877,8 @@ var bt = (
1877
1877
  } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
1878
1878
  if (r)
1879
1879
  break;
1880
- return this.error(p.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
1881
- } else if (a === 60 && !this.ignoreTag && $(this.peek() || 0)) {
1880
+ return this.error(g.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
1881
+ } else if (a === 60 && !this.ignoreTag && K(this.peek() || 0)) {
1882
1882
  var o = this.parseTag(t, n);
1883
1883
  if (o.err)
1884
1884
  return o;
@@ -1911,10 +1911,10 @@ var bt = (
1911
1911
  return a;
1912
1912
  var o = a.val, s = this.clonePosition();
1913
1913
  if (this.bumpIf("</")) {
1914
- if (this.isEOF() || !$(this.char()))
1915
- return this.error(p.INVALID_TAG, v(s, this.clonePosition()));
1914
+ if (this.isEOF() || !K(this.char()))
1915
+ return this.error(g.INVALID_TAG, v(s, this.clonePosition()));
1916
1916
  var h = this.clonePosition(), l = this.parseTagName();
1917
- return i !== l ? this.error(p.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
1917
+ return i !== l ? this.error(g.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
1918
1918
  val: {
1919
1919
  type: d.tag,
1920
1920
  value: i,
@@ -1922,11 +1922,11 @@ var bt = (
1922
1922
  location: v(r, this.clonePosition())
1923
1923
  },
1924
1924
  err: null
1925
- } : this.error(p.INVALID_TAG, v(s, this.clonePosition())));
1925
+ } : this.error(g.INVALID_TAG, v(s, this.clonePosition())));
1926
1926
  } else
1927
- return this.error(p.UNCLOSED_TAG, v(r, this.clonePosition()));
1927
+ return this.error(g.UNCLOSED_TAG, v(r, this.clonePosition()));
1928
1928
  } else
1929
- return this.error(p.INVALID_TAG, v(r, this.clonePosition()));
1929
+ return this.error(g.INVALID_TAG, v(r, this.clonePosition()));
1930
1930
  }, e.prototype.parseTagName = function() {
1931
1931
  var t = this.offset();
1932
1932
  for (this.bump(); !this.isEOF() && dt(this.char()); )
@@ -1992,23 +1992,23 @@ var bt = (
1992
1992
  n.push(r);
1993
1993
  this.bump();
1994
1994
  }
1995
- return Q.apply(void 0, n);
1995
+ return Y.apply(void 0, n);
1996
1996
  }, e.prototype.tryParseUnquoted = function(t, n) {
1997
1997
  if (this.isEOF())
1998
1998
  return null;
1999
1999
  var r = this.char();
2000
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Q(r));
2000
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Y(r));
2001
2001
  }, e.prototype.parseArgument = function(t, n) {
2002
2002
  var r = this.clonePosition();
2003
2003
  if (this.bump(), this.bumpSpace(), this.isEOF())
2004
- return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition()));
2004
+ return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition()));
2005
2005
  if (this.char() === 125)
2006
- return this.bump(), this.error(p.EMPTY_ARGUMENT, v(r, this.clonePosition()));
2006
+ return this.bump(), this.error(g.EMPTY_ARGUMENT, v(r, this.clonePosition()));
2007
2007
  var i = this.parseIdentifierIfPossible().value;
2008
2008
  if (!i)
2009
- return this.error(p.MALFORMED_ARGUMENT, v(r, this.clonePosition()));
2009
+ return this.error(g.MALFORMED_ARGUMENT, v(r, this.clonePosition()));
2010
2010
  if (this.bumpSpace(), this.isEOF())
2011
- return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition()));
2011
+ return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition()));
2012
2012
  switch (this.char()) {
2013
2013
  case 125:
2014
2014
  return this.bump(), {
@@ -2021,12 +2021,12 @@ var bt = (
2021
2021
  err: null
2022
2022
  };
2023
2023
  case 44:
2024
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2024
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2025
2025
  default:
2026
- return this.error(p.MALFORMED_ARGUMENT, v(r, this.clonePosition()));
2026
+ return this.error(g.MALFORMED_ARGUMENT, v(r, this.clonePosition()));
2027
2027
  }
2028
2028
  }, e.prototype.parseIdentifierIfPossible = function() {
2029
- var t = this.clonePosition(), n = this.offset(), r = Y(this.message, n), i = n + r.length;
2029
+ var t = this.clonePosition(), n = this.offset(), r = $(this.message, n), i = n + r.length;
2030
2030
  this.bumpTo(i);
2031
2031
  var a = this.clonePosition(), o = v(t, a);
2032
2032
  return { value: r, location: o };
@@ -2034,7 +2034,7 @@ var bt = (
2034
2034
  var a, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2035
2035
  switch (s) {
2036
2036
  case "":
2037
- return this.error(p.EXPECT_ARGUMENT_TYPE, v(o, h));
2037
+ return this.error(g.EXPECT_ARGUMENT_TYPE, v(o, h));
2038
2038
  case "number":
2039
2039
  case "date":
2040
2040
  case "time": {
@@ -2047,16 +2047,16 @@ var bt = (
2047
2047
  return f;
2048
2048
  var c = vt(f.val);
2049
2049
  if (c.length === 0)
2050
- return this.error(p.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
2051
- var g = v(u, this.clonePosition());
2052
- l = { style: c, styleLocation: g };
2050
+ return this.error(g.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
2051
+ var p = v(u, this.clonePosition());
2052
+ l = { style: c, styleLocation: p };
2053
2053
  }
2054
2054
  var b = this.tryParseArgumentClose(i);
2055
2055
  if (b.err)
2056
2056
  return b;
2057
2057
  var E = v(i, this.clonePosition());
2058
2058
  if (l && he(l == null ? void 0 : l.style, "::", 0)) {
2059
- var y = pt(l.style.slice(2));
2059
+ var y = gt(l.style.slice(2));
2060
2060
  if (s === "number") {
2061
2061
  var f = this.parseNumberSkeletonFromString(y, l.styleLocation);
2062
2062
  return f.err ? f : {
@@ -2065,7 +2065,7 @@ var bt = (
2065
2065
  };
2066
2066
  } else {
2067
2067
  if (y.length === 0)
2068
- return this.error(p.EXPECT_DATE_TIME_SKELETON, E);
2068
+ return this.error(g.EXPECT_DATE_TIME_SKELETON, E);
2069
2069
  var x = y;
2070
2070
  this.locale && (x = rt(y, this.locale));
2071
2071
  var c = {
@@ -2073,9 +2073,9 @@ var bt = (
2073
2073
  pattern: x,
2074
2074
  location: l.styleLocation,
2075
2075
  parsedOptions: this.shouldParseSkeletons ? Je(x) : {}
2076
- }, H = s === "date" ? d.date : d.time;
2076
+ }, I = s === "date" ? d.date : d.time;
2077
2077
  return {
2078
- val: { type: H, value: r, location: E, style: c },
2078
+ val: { type: I, value: r, location: E, style: c },
2079
2079
  err: null
2080
2080
  };
2081
2081
  }
@@ -2095,21 +2095,21 @@ var bt = (
2095
2095
  case "select": {
2096
2096
  var T = this.clonePosition();
2097
2097
  if (this.bumpSpace(), !this.bumpIf(","))
2098
- return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, v(T, m({}, T)));
2098
+ return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, v(T, m({}, T)));
2099
2099
  this.bumpSpace();
2100
- var D = this.parseIdentifierIfPossible(), L = 0;
2100
+ var D = this.parseIdentifierIfPossible(), R = 0;
2101
2101
  if (s !== "select" && D.value === "offset") {
2102
2102
  if (!this.bumpIf(":"))
2103
- return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
2103
+ return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
2104
2104
  this.bumpSpace();
2105
- var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2105
+ var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2106
2106
  if (f.err)
2107
2107
  return f;
2108
- this.bumpSpace(), D = this.parseIdentifierIfPossible(), L = f.val;
2108
+ this.bumpSpace(), D = this.parseIdentifierIfPossible(), R = f.val;
2109
2109
  }
2110
- var G = this.tryParsePluralOrSelectOptions(t, s, n, D);
2111
- if (G.err)
2112
- return G;
2110
+ var U = this.tryParsePluralOrSelectOptions(t, s, n, D);
2111
+ if (U.err)
2112
+ return U;
2113
2113
  var b = this.tryParseArgumentClose(i);
2114
2114
  if (b.err)
2115
2115
  return b;
@@ -2118,7 +2118,7 @@ var bt = (
2118
2118
  val: {
2119
2119
  type: d.select,
2120
2120
  value: r,
2121
- options: le(G.val),
2121
+ options: le(U.val),
2122
2122
  location: ie
2123
2123
  },
2124
2124
  err: null
@@ -2126,8 +2126,8 @@ var bt = (
2126
2126
  val: {
2127
2127
  type: d.plural,
2128
2128
  value: r,
2129
- options: le(G.val),
2130
- offset: L,
2129
+ options: le(U.val),
2130
+ offset: R,
2131
2131
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2132
2132
  location: ie
2133
2133
  },
@@ -2135,10 +2135,10 @@ var bt = (
2135
2135
  };
2136
2136
  }
2137
2137
  default:
2138
- return this.error(p.INVALID_ARGUMENT_TYPE, v(o, h));
2138
+ return this.error(g.INVALID_ARGUMENT_TYPE, v(o, h));
2139
2139
  }
2140
2140
  }, e.prototype.tryParseArgumentClose = function(t) {
2141
- return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2141
+ return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2142
2142
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2143
2143
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2144
2144
  var r = this.char();
@@ -2147,7 +2147,7 @@ var bt = (
2147
2147
  this.bump();
2148
2148
  var i = this.clonePosition();
2149
2149
  if (!this.bumpUntil("'"))
2150
- return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
2150
+ return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
2151
2151
  this.bump();
2152
2152
  break;
2153
2153
  }
@@ -2179,7 +2179,7 @@ var bt = (
2179
2179
  try {
2180
2180
  r = Ye(t);
2181
2181
  } catch {
2182
- return this.error(p.INVALID_NUMBER_SKELETON, n);
2182
+ return this.error(g.INVALID_NUMBER_SKELETON, n);
2183
2183
  }
2184
2184
  return {
2185
2185
  val: {
@@ -2195,7 +2195,7 @@ var bt = (
2195
2195
  if (l.length === 0) {
2196
2196
  var f = this.clonePosition();
2197
2197
  if (n !== "select" && this.bumpIf("=")) {
2198
- var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
2198
+ var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
2199
2199
  if (c.err)
2200
2200
  return c;
2201
2201
  u = v(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
@@ -2203,26 +2203,26 @@ var bt = (
2203
2203
  break;
2204
2204
  }
2205
2205
  if (h.has(l))
2206
- return this.error(n === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
2206
+ return this.error(n === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
2207
2207
  l === "other" && (o = !0), this.bumpSpace();
2208
- var g = this.clonePosition();
2208
+ var p = this.clonePosition();
2209
2209
  if (!this.bumpIf("{"))
2210
- return this.error(n === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
2210
+ return this.error(n === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
2211
2211
  var b = this.parseMessage(t + 1, n, r);
2212
2212
  if (b.err)
2213
2213
  return b;
2214
- var E = this.tryParseArgumentClose(g);
2214
+ var E = this.tryParseArgumentClose(p);
2215
2215
  if (E.err)
2216
2216
  return E;
2217
2217
  s.push([
2218
2218
  l,
2219
2219
  {
2220
2220
  value: b.val,
2221
- location: v(g, this.clonePosition())
2221
+ location: v(p, this.clonePosition())
2222
2222
  }
2223
2223
  ]), h.add(l), this.bumpSpace(), a = this.parseIdentifierIfPossible(), l = a.value, u = a.location;
2224
2224
  }
2225
- 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 };
2225
+ 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 };
2226
2226
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
2227
2227
  var r = 1, i = this.clonePosition();
2228
2228
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
@@ -2249,7 +2249,7 @@ var bt = (
2249
2249
  var t = this.position.offset;
2250
2250
  if (t >= this.message.length)
2251
2251
  throw Error("out of bound");
2252
- var n = Be(this.message, t);
2252
+ var n = _e(this.message, t);
2253
2253
  if (n === void 0)
2254
2254
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2255
2255
  return n;
@@ -2300,11 +2300,11 @@ var bt = (
2300
2300
  }, e;
2301
2301
  }()
2302
2302
  );
2303
- function $(e) {
2303
+ function K(e) {
2304
2304
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
2305
2305
  }
2306
2306
  function Et(e) {
2307
- return $(e) || e === 47;
2307
+ return K(e) || e === 47;
2308
2308
  }
2309
2309
  function dt(e) {
2310
2310
  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;
@@ -2315,26 +2315,26 @@ function Oe(e) {
2315
2315
  function yt(e) {
2316
2316
  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;
2317
2317
  }
2318
- function K(e) {
2318
+ function ee(e) {
2319
2319
  e.forEach(function(t) {
2320
2320
  if (delete t.location, xe(t) || Te(t))
2321
2321
  for (var n in t.options)
2322
- delete t.options[n].location, K(t.options[n].value);
2322
+ delete t.options[n].location, ee(t.options[n].value);
2323
2323
  else
2324
- Ee(t) && Ie(t.style) || (de(t) || ye(t)) && q(t.style) ? delete t.style.location : Se(t) && K(t.children);
2324
+ Ee(t) && Ie(t.style) || (de(t) || ye(t)) && J(t.style) ? delete t.style.location : Se(t) && ee(t.children);
2325
2325
  });
2326
2326
  }
2327
2327
  function xt(e, t) {
2328
2328
  t === void 0 && (t = {}), t = m({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
2329
2329
  var n = new bt(e, t).parse();
2330
2330
  if (n.err) {
2331
- var r = SyntaxError(p[n.err.kind]);
2331
+ var r = SyntaxError(g[n.err.kind]);
2332
2332
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
2333
2333
  }
2334
- return t != null && t.captureLocation || K(n.val), n.val;
2334
+ return t != null && t.captureLocation || ee(n.val), n.val;
2335
2335
  }
2336
- function _(e, t) {
2337
- var n = t && t.cache ? t.cache : Nt, r = t && t.serializer ? t.serializer : Ht, i = t && t.strategy ? t.strategy : St;
2336
+ function N(e, t) {
2337
+ var n = t && t.cache ? t.cache : Nt, r = t && t.serializer ? t.serializer : At, i = t && t.strategy ? t.strategy : St;
2338
2338
  return i(e, {
2339
2339
  cache: n,
2340
2340
  serializer: r
@@ -2343,7 +2343,7 @@ function _(e, t) {
2343
2343
  function Tt(e) {
2344
2344
  return e == null || typeof e == "number" || typeof e == "boolean";
2345
2345
  }
2346
- function Pe(e, t, n, r) {
2346
+ function Re(e, t, n, r) {
2347
2347
  var i = Tt(r) ? r : n(r), a = t.get(i);
2348
2348
  return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
2349
2349
  }
@@ -2351,46 +2351,46 @@ function Le(e, t, n) {
2351
2351
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
2352
2352
  return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
2353
2353
  }
2354
- function ee(e, t, n, r, i) {
2354
+ function te(e, t, n, r, i) {
2355
2355
  return n.bind(t, e, r, i);
2356
2356
  }
2357
2357
  function St(e, t) {
2358
- var n = e.length === 1 ? Pe : Le;
2359
- return ee(e, this, n, t.cache.create(), t.serializer);
2358
+ var n = e.length === 1 ? Re : Le;
2359
+ return te(e, this, n, t.cache.create(), t.serializer);
2360
2360
  }
2361
2361
  function It(e, t) {
2362
- return ee(e, this, Le, t.cache.create(), t.serializer);
2362
+ return te(e, this, Le, t.cache.create(), t.serializer);
2363
2363
  }
2364
- function At(e, t) {
2365
- return ee(e, this, Pe, t.cache.create(), t.serializer);
2364
+ function Ht(e, t) {
2365
+ return te(e, this, Re, t.cache.create(), t.serializer);
2366
2366
  }
2367
- var Ht = function() {
2367
+ var At = function() {
2368
2368
  return JSON.stringify(arguments);
2369
2369
  };
2370
- function te() {
2370
+ function re() {
2371
2371
  this.cache = /* @__PURE__ */ Object.create(null);
2372
2372
  }
2373
- te.prototype.get = function(e) {
2373
+ re.prototype.get = function(e) {
2374
2374
  return this.cache[e];
2375
2375
  };
2376
- te.prototype.set = function(e, t) {
2376
+ re.prototype.set = function(e, t) {
2377
2377
  this.cache[e] = t;
2378
2378
  };
2379
2379
  var Nt = {
2380
2380
  create: function() {
2381
- return new te();
2381
+ return new re();
2382
2382
  }
2383
2383
  }, B = {
2384
2384
  variadic: It,
2385
- monadic: At
2386
- }, R;
2385
+ monadic: Ht
2386
+ }, _;
2387
2387
  (function(e) {
2388
2388
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
2389
- })(R || (R = {}));
2390
- var P = (
2389
+ })(_ || (_ = {}));
2390
+ var O = (
2391
2391
  /** @class */
2392
2392
  function(e) {
2393
- N(t, e);
2393
+ A(t, e);
2394
2394
  function t(n, r, i) {
2395
2395
  var a = e.call(this, n) || this;
2396
2396
  return a.code = r, a.originalMessage = i, a;
@@ -2402,48 +2402,48 @@ var P = (
2402
2402
  ), ce = (
2403
2403
  /** @class */
2404
2404
  function(e) {
2405
- N(t, e);
2405
+ A(t, e);
2406
2406
  function t(n, r, i, a) {
2407
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), R.INVALID_VALUE, a) || this;
2407
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), _.INVALID_VALUE, a) || this;
2408
2408
  }
2409
2409
  return t;
2410
- }(P)
2411
- ), _t = (
2410
+ }(O)
2411
+ ), Bt = (
2412
2412
  /** @class */
2413
2413
  function(e) {
2414
- N(t, e);
2414
+ A(t, e);
2415
2415
  function t(n, r, i) {
2416
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), R.INVALID_VALUE, i) || this;
2416
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), _.INVALID_VALUE, i) || this;
2417
2417
  }
2418
2418
  return t;
2419
- }(P)
2420
- ), Bt = (
2419
+ }(O)
2420
+ ), _t = (
2421
2421
  /** @class */
2422
2422
  function(e) {
2423
- N(t, e);
2423
+ A(t, e);
2424
2424
  function t(n, r) {
2425
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), R.MISSING_VALUE, r) || this;
2425
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), _.MISSING_VALUE, r) || this;
2426
2426
  }
2427
2427
  return t;
2428
- }(P)
2429
- ), I;
2428
+ }(O)
2429
+ ), S;
2430
2430
  (function(e) {
2431
2431
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
2432
- })(I || (I = {}));
2433
- function Rt(e) {
2432
+ })(S || (S = {}));
2433
+ function Pt(e) {
2434
2434
  return e.length < 2 ? e : e.reduce(function(t, n) {
2435
2435
  var r = t[t.length - 1];
2436
- return !r || r.type !== I.literal || n.type !== I.literal ? t.push(n) : r.value += n.value, t;
2436
+ return !r || r.type !== S.literal || n.type !== S.literal ? t.push(n) : r.value += n.value, t;
2437
2437
  }, []);
2438
2438
  }
2439
2439
  function Ot(e) {
2440
2440
  return typeof e == "function";
2441
2441
  }
2442
- function V(e, t, n, r, i, a, o) {
2442
+ function k(e, t, n, r, i, a, o) {
2443
2443
  if (e.length === 1 && ae(e[0]))
2444
2444
  return [
2445
2445
  {
2446
- type: I.literal,
2446
+ type: S.literal,
2447
2447
  value: e[0].value
2448
2448
  }
2449
2449
  ];
@@ -2451,64 +2451,64 @@ function V(e, t, n, r, i, a, o) {
2451
2451
  var u = l[h];
2452
2452
  if (ae(u)) {
2453
2453
  s.push({
2454
- type: I.literal,
2454
+ type: S.literal,
2455
2455
  value: u.value
2456
2456
  });
2457
2457
  continue;
2458
2458
  }
2459
2459
  if (ze(u)) {
2460
2460
  typeof a == "number" && s.push({
2461
- type: I.literal,
2461
+ type: S.literal,
2462
2462
  value: n.getNumberFormat(t).format(a)
2463
2463
  });
2464
2464
  continue;
2465
2465
  }
2466
2466
  var f = u.value;
2467
2467
  if (!(i && f in i))
2468
- throw new Bt(f, o);
2468
+ throw new _t(f, o);
2469
2469
  var c = i[f];
2470
2470
  if (We(u)) {
2471
2471
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
2472
- type: typeof c == "string" ? I.literal : I.object,
2472
+ type: typeof c == "string" ? S.literal : S.object,
2473
2473
  value: c
2474
2474
  });
2475
2475
  continue;
2476
2476
  }
2477
2477
  if (de(u)) {
2478
- var g = typeof u.style == "string" ? r.date[u.style] : q(u.style) ? u.style.parsedOptions : void 0;
2478
+ var p = typeof u.style == "string" ? r.date[u.style] : J(u.style) ? u.style.parsedOptions : void 0;
2479
2479
  s.push({
2480
- type: I.literal,
2481
- value: n.getDateTimeFormat(t, g).format(c)
2480
+ type: S.literal,
2481
+ value: n.getDateTimeFormat(t, p).format(c)
2482
2482
  });
2483
2483
  continue;
2484
2484
  }
2485
2485
  if (ye(u)) {
2486
- var g = typeof u.style == "string" ? r.time[u.style] : q(u.style) ? u.style.parsedOptions : r.time.medium;
2486
+ var p = typeof u.style == "string" ? r.time[u.style] : J(u.style) ? u.style.parsedOptions : r.time.medium;
2487
2487
  s.push({
2488
- type: I.literal,
2489
- value: n.getDateTimeFormat(t, g).format(c)
2488
+ type: S.literal,
2489
+ value: n.getDateTimeFormat(t, p).format(c)
2490
2490
  });
2491
2491
  continue;
2492
2492
  }
2493
2493
  if (Ee(u)) {
2494
- var g = typeof u.style == "string" ? r.number[u.style] : Ie(u.style) ? u.style.parsedOptions : void 0;
2495
- g && g.scale && (c = c * (g.scale || 1)), s.push({
2496
- type: I.literal,
2497
- value: n.getNumberFormat(t, g).format(c)
2494
+ var p = typeof u.style == "string" ? r.number[u.style] : Ie(u.style) ? u.style.parsedOptions : void 0;
2495
+ p && p.scale && (c = c * (p.scale || 1)), s.push({
2496
+ type: S.literal,
2497
+ value: n.getNumberFormat(t, p).format(c)
2498
2498
  });
2499
2499
  continue;
2500
2500
  }
2501
2501
  if (Se(u)) {
2502
2502
  var b = u.children, E = u.value, y = i[E];
2503
2503
  if (!Ot(y))
2504
- throw new _t(E, "function", o);
2505
- var x = V(b, t, n, r, i, a), H = y(x.map(function(L) {
2506
- return L.value;
2504
+ throw new Bt(E, "function", o);
2505
+ var x = k(b, t, n, r, i, a), I = y(x.map(function(R) {
2506
+ return R.value;
2507
2507
  }));
2508
- Array.isArray(H) || (H = [H]), s.push.apply(s, H.map(function(L) {
2508
+ Array.isArray(I) || (I = [I]), s.push.apply(s, I.map(function(R) {
2509
2509
  return {
2510
- type: typeof L == "string" ? I.literal : I.object,
2511
- value: L
2510
+ type: typeof R == "string" ? S.literal : S.object,
2511
+ value: R
2512
2512
  };
2513
2513
  }));
2514
2514
  }
@@ -2516,38 +2516,38 @@ function V(e, t, n, r, i, a, o) {
2516
2516
  var T = u.options[c] || u.options.other;
2517
2517
  if (!T)
2518
2518
  throw new ce(u.value, c, Object.keys(u.options), o);
2519
- s.push.apply(s, V(T.value, t, n, r, i));
2519
+ s.push.apply(s, k(T.value, t, n, r, i));
2520
2520
  continue;
2521
2521
  }
2522
2522
  if (Te(u)) {
2523
2523
  var T = u.options["=".concat(c)];
2524
2524
  if (!T) {
2525
2525
  if (!Intl.PluralRules)
2526
- throw new P(`Intl.PluralRules is not available in this environment.
2526
+ throw new O(`Intl.PluralRules is not available in this environment.
2527
2527
  Try polyfilling it using "@formatjs/intl-pluralrules"
2528
- `, R.MISSING_INTL_API, o);
2528
+ `, _.MISSING_INTL_API, o);
2529
2529
  var D = n.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
2530
2530
  T = u.options[D] || u.options.other;
2531
2531
  }
2532
2532
  if (!T)
2533
2533
  throw new ce(u.value, c, Object.keys(u.options), o);
2534
- s.push.apply(s, V(T.value, t, n, r, i, c - (u.offset || 0)));
2534
+ s.push.apply(s, k(T.value, t, n, r, i, c - (u.offset || 0)));
2535
2535
  continue;
2536
2536
  }
2537
2537
  }
2538
- return Rt(s);
2538
+ return Pt(s);
2539
2539
  }
2540
- function Pt(e, t) {
2540
+ function Rt(e, t) {
2541
2541
  return t ? m(m(m({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
2542
2542
  return n[r] = m(m({}, e[r]), t[r] || {}), n;
2543
2543
  }, {})) : e;
2544
2544
  }
2545
2545
  function Lt(e, t) {
2546
2546
  return t ? Object.keys(e).reduce(function(n, r) {
2547
- return n[r] = Pt(e[r], t[r]), n;
2547
+ return n[r] = Rt(e[r], t[r]), n;
2548
2548
  }, m({}, e)) : e;
2549
2549
  }
2550
- function Z(e) {
2550
+ function W(e) {
2551
2551
  return {
2552
2552
  create: function() {
2553
2553
  return {
@@ -2567,28 +2567,28 @@ function Mt(e) {
2567
2567
  dateTime: {},
2568
2568
  pluralRules: {}
2569
2569
  }), {
2570
- getNumberFormat: _(function() {
2570
+ getNumberFormat: N(function() {
2571
2571
  for (var t, n = [], r = 0; r < arguments.length; r++)
2572
2572
  n[r] = arguments[r];
2573
- return new ((t = Intl.NumberFormat).bind.apply(t, O([void 0], n, !1)))();
2573
+ return new ((t = Intl.NumberFormat).bind.apply(t, P([void 0], n, !1)))();
2574
2574
  }, {
2575
- cache: Z(e.number),
2575
+ cache: W(e.number),
2576
2576
  strategy: B.variadic
2577
2577
  }),
2578
- getDateTimeFormat: _(function() {
2578
+ getDateTimeFormat: N(function() {
2579
2579
  for (var t, n = [], r = 0; r < arguments.length; r++)
2580
2580
  n[r] = arguments[r];
2581
- return new ((t = Intl.DateTimeFormat).bind.apply(t, O([void 0], n, !1)))();
2581
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, P([void 0], n, !1)))();
2582
2582
  }, {
2583
- cache: Z(e.dateTime),
2583
+ cache: W(e.dateTime),
2584
2584
  strategy: B.variadic
2585
2585
  }),
2586
- getPluralRules: _(function() {
2586
+ getPluralRules: N(function() {
2587
2587
  for (var t, n = [], r = 0; r < arguments.length; r++)
2588
2588
  n[r] = arguments[r];
2589
- return new ((t = Intl.PluralRules).bind.apply(t, O([void 0], n, !1)))();
2589
+ return new ((t = Intl.PluralRules).bind.apply(t, P([void 0], n, !1)))();
2590
2590
  }, {
2591
- cache: Z(e.pluralRules),
2591
+ cache: W(e.pluralRules),
2592
2592
  strategy: B.variadic
2593
2593
  })
2594
2594
  };
@@ -2608,11 +2608,11 @@ var Me = (
2608
2608
  if (l.length === 1)
2609
2609
  return l[0].value;
2610
2610
  var u = l.reduce(function(f, c) {
2611
- return !f.length || c.type !== I.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
2611
+ return !f.length || c.type !== S.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
2612
2612
  }, []);
2613
2613
  return u.length <= 1 ? u[0] || "" : u;
2614
2614
  }, this.formatToParts = function(h) {
2615
- return V(a.ast, a.locales, a.formatters, a.formats, h, void 0, a.message);
2615
+ return k(a.ast, a.locales, a.formatters, a.formats, h, void 0, a.message);
2616
2616
  }, this.resolvedOptions = function() {
2617
2617
  var h;
2618
2618
  return {
@@ -2704,14 +2704,14 @@ var Me = (
2704
2704
  }
2705
2705
  }, e;
2706
2706
  }()
2707
- ), S;
2707
+ ), M;
2708
2708
  (function(e) {
2709
2709
  e.FORMAT_ERROR = "FORMAT_ERROR", e.UNSUPPORTED_FORMATTER = "UNSUPPORTED_FORMATTER", e.INVALID_CONFIG = "INVALID_CONFIG", e.MISSING_DATA = "MISSING_DATA", e.MISSING_TRANSLATION = "MISSING_TRANSLATION";
2710
- })(S || (S = {}));
2711
- var A = (
2710
+ })(M || (M = {}));
2711
+ var G = (
2712
2712
  /** @class */
2713
2713
  function(e) {
2714
- N(t, e);
2714
+ A(t, e);
2715
2715
  function t(n, r, i) {
2716
2716
  var a = this, o = i ? i instanceof Error ? i : new Error(String(i)) : void 0;
2717
2717
  return a = e.call(this, "[@formatjs/intl Error ".concat(n, "] ").concat(r, `
@@ -2724,68 +2724,69 @@ var A = (
2724
2724
  ), Ct = (
2725
2725
  /** @class */
2726
2726
  function(e) {
2727
- N(t, e);
2727
+ A(t, e);
2728
2728
  function t(n, r) {
2729
- return e.call(this, S.UNSUPPORTED_FORMATTER, n, r) || this;
2729
+ return e.call(this, M.UNSUPPORTED_FORMATTER, n, r) || this;
2730
2730
  }
2731
2731
  return t;
2732
- }(A)
2732
+ }(G)
2733
2733
  ), wt = (
2734
2734
  /** @class */
2735
2735
  function(e) {
2736
- N(t, e);
2736
+ A(t, e);
2737
2737
  function t(n, r) {
2738
- return e.call(this, S.INVALID_CONFIG, n, r) || this;
2738
+ return e.call(this, M.INVALID_CONFIG, n, r) || this;
2739
2739
  }
2740
2740
  return t;
2741
- }(A)
2741
+ }(G)
2742
2742
  ), me = (
2743
2743
  /** @class */
2744
2744
  function(e) {
2745
- N(t, e);
2745
+ A(t, e);
2746
2746
  function t(n, r) {
2747
- return e.call(this, S.MISSING_DATA, n, r) || this;
2747
+ return e.call(this, M.MISSING_DATA, n, r) || this;
2748
2748
  }
2749
2749
  return t;
2750
- }(A)
2751
- ), re = (
2750
+ }(G)
2751
+ ), H = (
2752
2752
  /** @class */
2753
2753
  function(e) {
2754
- N(t, e);
2754
+ A(t, e);
2755
2755
  function t(n, r, i) {
2756
- return e.call(this, S.FORMAT_ERROR, "".concat(n, `
2756
+ var a = e.call(this, M.FORMAT_ERROR, "".concat(n, `
2757
2757
  Locale: `).concat(r, `
2758
2758
  `), i) || this;
2759
+ return a.locale = r, a;
2759
2760
  }
2760
2761
  return t;
2761
- }(A)
2762
- ), W = (
2762
+ }(G)
2763
+ ), z = (
2763
2764
  /** @class */
2764
2765
  function(e) {
2765
- N(t, e);
2766
+ A(t, e);
2766
2767
  function t(n, r, i, a) {
2767
2768
  var o = e.call(this, "".concat(n, `
2768
2769
  MessageID: `).concat(i == null ? void 0 : i.id, `
2769
2770
  Default Message: `).concat(i == null ? void 0 : i.defaultMessage, `
2770
2771
  Description: `).concat(i == null ? void 0 : i.description, `
2771
2772
  `), r, a) || this;
2772
- return o.descriptor = i, o;
2773
+ return o.descriptor = i, o.locale = r, o;
2773
2774
  }
2774
2775
  return t;
2775
- }(re)
2776
+ }(H)
2776
2777
  ), Dt = (
2777
2778
  /** @class */
2778
2779
  function(e) {
2779
- N(t, e);
2780
+ A(t, e);
2780
2781
  function t(n, r) {
2781
- var i = e.call(this, S.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) {
2782
+ 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) {
2782
2783
  var o;
2783
2784
  return (o = a.value) !== null && o !== void 0 ? o : JSON.stringify(a);
2784
2785
  }).join(), ")") : "id", " as fallback.")) || this;
2785
2786
  return i.descriptor = n, i;
2786
2787
  }
2787
2788
  return t;
2788
- }(A)
2789
+ }(G)
2789
2790
  );
2790
2791
  function C(e, t, n) {
2791
2792
  return n === void 0 && (n = {}), t.reduce(function(r, i) {
@@ -2817,7 +2818,7 @@ function Ce() {
2817
2818
  displayNames: {}
2818
2819
  };
2819
2820
  }
2820
- function M(e) {
2821
+ function L(e) {
2821
2822
  return {
2822
2823
  create: function() {
2823
2824
  return {
@@ -2833,64 +2834,64 @@ function M(e) {
2833
2834
  }
2834
2835
  function jt(e) {
2835
2836
  e === void 0 && (e = Ce());
2836
- var t = Intl.RelativeTimeFormat, n = Intl.ListFormat, r = Intl.DisplayNames, i = _(function() {
2837
+ var t = Intl.RelativeTimeFormat, n = Intl.ListFormat, r = Intl.DisplayNames, i = N(function() {
2837
2838
  for (var s, h = [], l = 0; l < arguments.length; l++)
2838
2839
  h[l] = arguments[l];
2839
- return new ((s = Intl.DateTimeFormat).bind.apply(s, O([void 0], h, !1)))();
2840
+ return new ((s = Intl.DateTimeFormat).bind.apply(s, P([void 0], h, !1)))();
2840
2841
  }, {
2841
- cache: M(e.dateTime),
2842
+ cache: L(e.dateTime),
2842
2843
  strategy: B.variadic
2843
- }), a = _(function() {
2844
+ }), a = N(function() {
2844
2845
  for (var s, h = [], l = 0; l < arguments.length; l++)
2845
2846
  h[l] = arguments[l];
2846
- return new ((s = Intl.NumberFormat).bind.apply(s, O([void 0], h, !1)))();
2847
+ return new ((s = Intl.NumberFormat).bind.apply(s, P([void 0], h, !1)))();
2847
2848
  }, {
2848
- cache: M(e.number),
2849
+ cache: L(e.number),
2849
2850
  strategy: B.variadic
2850
- }), o = _(function() {
2851
+ }), o = N(function() {
2851
2852
  for (var s, h = [], l = 0; l < arguments.length; l++)
2852
2853
  h[l] = arguments[l];
2853
- return new ((s = Intl.PluralRules).bind.apply(s, O([void 0], h, !1)))();
2854
+ return new ((s = Intl.PluralRules).bind.apply(s, P([void 0], h, !1)))();
2854
2855
  }, {
2855
- cache: M(e.pluralRules),
2856
+ cache: L(e.pluralRules),
2856
2857
  strategy: B.variadic
2857
2858
  });
2858
2859
  return {
2859
2860
  getDateTimeFormat: i,
2860
2861
  getNumberFormat: a,
2861
- getMessageFormat: _(function(s, h, l, u) {
2862
+ getMessageFormat: N(function(s, h, l, u) {
2862
2863
  return new Me(s, h, l, m({ formatters: {
2863
2864
  getNumberFormat: a,
2864
2865
  getDateTimeFormat: i,
2865
2866
  getPluralRules: o
2866
2867
  } }, u || {}));
2867
2868
  }, {
2868
- cache: M(e.message),
2869
+ cache: L(e.message),
2869
2870
  strategy: B.variadic
2870
2871
  }),
2871
- getRelativeTimeFormat: _(function() {
2872
+ getRelativeTimeFormat: N(function() {
2872
2873
  for (var s = [], h = 0; h < arguments.length; h++)
2873
2874
  s[h] = arguments[h];
2874
- return new (t.bind.apply(t, O([void 0], s, !1)))();
2875
+ return new (t.bind.apply(t, P([void 0], s, !1)))();
2875
2876
  }, {
2876
- cache: M(e.relativeTime),
2877
+ cache: L(e.relativeTime),
2877
2878
  strategy: B.variadic
2878
2879
  }),
2879
2880
  getPluralRules: o,
2880
- getListFormat: _(function() {
2881
+ getListFormat: N(function() {
2881
2882
  for (var s = [], h = 0; h < arguments.length; h++)
2882
2883
  s[h] = arguments[h];
2883
- return new (n.bind.apply(n, O([void 0], s, !1)))();
2884
+ return new (n.bind.apply(n, P([void 0], s, !1)))();
2884
2885
  }, {
2885
- cache: M(e.list),
2886
+ cache: L(e.list),
2886
2887
  strategy: B.variadic
2887
2888
  }),
2888
- getDisplayNames: _(function() {
2889
+ getDisplayNames: N(function() {
2889
2890
  for (var s = [], h = 0; h < arguments.length; h++)
2890
2891
  s[h] = arguments[h];
2891
- return new (r.bind.apply(r, O([void 0], s, !1)))();
2892
+ return new (r.bind.apply(r, P([void 0], s, !1)))();
2892
2893
  }, {
2893
- cache: M(e.displayNames),
2894
+ cache: L(e.displayNames),
2894
2895
  strategy: B.variadic
2895
2896
  })
2896
2897
  };
@@ -2905,25 +2906,25 @@ function Vt(e, t, n) {
2905
2906
  if (n === void 0 && (n = Error), !e)
2906
2907
  throw new n(t);
2907
2908
  }
2908
- function j(e, t) {
2909
+ function V(e, t) {
2909
2910
  return Object.keys(e).reduce(function(n, r) {
2910
2911
  return n[r] = m({ timeZone: t }, e[r]), n;
2911
2912
  }, {});
2912
2913
  }
2913
- function ge(e, t) {
2914
+ function pe(e, t) {
2914
2915
  var n = Object.keys(m(m({}, e), t));
2915
2916
  return n.reduce(function(r, i) {
2916
2917
  return r[i] = m(m({}, e[i] || {}), t[i] || {}), r;
2917
2918
  }, {});
2918
2919
  }
2919
- function pe(e, t) {
2920
+ function ge(e, t) {
2920
2921
  if (!t)
2921
2922
  return e;
2922
2923
  var n = Me.formats;
2923
- return m(m(m({}, n), e), { date: ge(j(n.date, t), j(e.date || {}, t)), time: ge(j(n.time, t), j(e.time || {}, t)) });
2924
+ return m(m(m({}, n), e), { date: pe(V(n.date, t), V(e.date || {}, t)), time: pe(V(n.time, t), V(e.time || {}, t)) });
2924
2925
  }
2925
2926
  var ve = function(e, t, n, r, i) {
2926
- var a = e.locale, o = e.formats, s = e.messages, h = e.defaultLocale, l = e.defaultFormats, u = e.fallbackOnEmptyString, f = e.onError, c = e.timeZone, g = e.defaultRichTextElements;
2927
+ var a = e.locale, o = e.formats, s = e.messages, h = e.defaultLocale, l = e.defaultFormats, u = e.fallbackOnEmptyString, f = e.onError, c = e.timeZone, p = e.defaultRichTextElements;
2927
2928
  n === void 0 && (n = { id: "" });
2928
2929
  var b = n.id, E = n.defaultMessage;
2929
2930
  Vt(!!b, "[@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");
@@ -2935,32 +2936,32 @@ var ve = function(e, t, n, r, i) {
2935
2936
  );
2936
2937
  if (Array.isArray(x) && x.length === 1 && x[0].type === d.literal)
2937
2938
  return x[0].value;
2938
- if (!r && x && typeof x == "string" && !g)
2939
+ if (!r && x && typeof x == "string" && !p)
2939
2940
  return x.replace(/'\{(.*?)\}'/gi, "{$1}");
2940
- if (r = m(m({}, g), r || {}), o = pe(o, c), l = pe(l, c), !x) {
2941
+ if (r = m(m({}, p), r || {}), o = ge(o, c), l = ge(l, c), !x) {
2941
2942
  if (u === !1 && x === "")
2942
2943
  return x;
2943
2944
  if ((!E || a && a.toLowerCase() !== h.toLowerCase()) && f(new Dt(n, a)), E)
2944
2945
  try {
2945
- var H = t.getMessageFormat(E, h, l, i);
2946
- return H.format(r);
2946
+ var I = t.getMessageFormat(E, h, l, i);
2947
+ return I.format(r);
2947
2948
  } catch (T) {
2948
- return f(new W('Error formatting default message for: "'.concat(y, '", rendering default message verbatim'), a, n, T)), typeof E == "string" ? E : y;
2949
+ return f(new z('Error formatting default message for: "'.concat(y, '", rendering default message verbatim'), a, n, T)), typeof E == "string" ? E : y;
2949
2950
  }
2950
2951
  return y;
2951
2952
  }
2952
2953
  try {
2953
- var H = t.getMessageFormat(x, a, o, m({ formatters: t }, i || {}));
2954
- return H.format(r);
2954
+ var I = t.getMessageFormat(x, a, o, m({ formatters: t }, i || {}));
2955
+ return I.format(r);
2955
2956
  } catch (T) {
2956
- f(new W('Error formatting message: "'.concat(y, '", using ').concat(E ? "default message" : "id", " as fallback."), a, n, T));
2957
+ f(new z('Error formatting message: "'.concat(y, '", using ').concat(E ? "default message" : "id", " as fallback."), a, n, T));
2957
2958
  }
2958
2959
  if (E)
2959
2960
  try {
2960
- var H = t.getMessageFormat(E, h, l, i);
2961
- return H.format(r);
2961
+ var I = t.getMessageFormat(E, h, l, i);
2962
+ return I.format(r);
2962
2963
  } catch (T) {
2963
- f(new W('Error formatting the default message for: "'.concat(y, '", rendering message verbatim'), a, n, T));
2964
+ f(new z('Error formatting the default message for: "'.concat(y, '", rendering message verbatim'), a, n, T));
2964
2965
  }
2965
2966
  return typeof x == "string" ? x : typeof E == "string" ? E : y;
2966
2967
  }, we = [
@@ -2984,7 +2985,7 @@ var ve = function(e, t, n, r, i) {
2984
2985
  "numberingSystem",
2985
2986
  "fractionalSecondDigits"
2986
2987
  ];
2987
- function k(e, t, n, r) {
2988
+ function X(e, t, n, r) {
2988
2989
  var i = e.locale, a = e.formats, o = e.onError, s = e.timeZone;
2989
2990
  r === void 0 && (r = {});
2990
2991
  var h = r.format, l = m(m({}, s && { timeZone: s }), h && ne(a, t, h, o)), u = C(r, we, l);
@@ -2995,9 +2996,9 @@ function kt(e, t) {
2995
2996
  n[r - 2] = arguments[r];
2996
2997
  var i = n[0], a = n[1], o = a === void 0 ? {} : a, s = typeof i == "string" ? new Date(i || 0) : i;
2997
2998
  try {
2998
- return k(e, "date", t, o).format(s);
2999
+ return X(e, "date", t, o).format(s);
2999
3000
  } catch (h) {
3000
- e.onError(new A(S.FORMAT_ERROR, "Error formatting date.", h));
3001
+ e.onError(new H("Error formatting date.", e.locale, h));
3001
3002
  }
3002
3003
  return String(s);
3003
3004
  }
@@ -3006,9 +3007,9 @@ function Xt(e, t) {
3006
3007
  n[r - 2] = arguments[r];
3007
3008
  var i = n[0], a = n[1], o = a === void 0 ? {} : a, s = typeof i == "string" ? new Date(i || 0) : i;
3008
3009
  try {
3009
- return k(e, "time", t, o).format(s);
3010
+ return X(e, "time", t, o).format(s);
3010
3011
  } catch (h) {
3011
- e.onError(new A(S.FORMAT_ERROR, "Error formatting time.", h));
3012
+ e.onError(new H("Error formatting time.", e.locale, h));
3012
3013
  }
3013
3014
  return String(s);
3014
3015
  }
@@ -3019,7 +3020,7 @@ function Zt(e, t) {
3019
3020
  try {
3020
3021
  return t(l, f).formatRange(i, a);
3021
3022
  } catch (c) {
3022
- u(new A(S.FORMAT_ERROR, "Error formatting date time range.", c));
3023
+ u(new H("Error formatting date time range.", e.locale, c));
3023
3024
  }
3024
3025
  return String(i);
3025
3026
  }
@@ -3028,9 +3029,9 @@ function Wt(e, t) {
3028
3029
  n[r - 2] = arguments[r];
3029
3030
  var i = n[0], a = n[1], o = a === void 0 ? {} : a, s = typeof i == "string" ? new Date(i || 0) : i;
3030
3031
  try {
3031
- return k(e, "date", t, o).formatToParts(s);
3032
+ return X(e, "date", t, o).formatToParts(s);
3032
3033
  } catch (h) {
3033
- e.onError(new A(S.FORMAT_ERROR, "Error formatting date.", h));
3034
+ e.onError(new H("Error formatting date.", e.locale, h));
3034
3035
  }
3035
3036
  return [];
3036
3037
  }
@@ -3039,9 +3040,9 @@ function zt(e, t) {
3039
3040
  n[r - 2] = arguments[r];
3040
3041
  var i = n[0], a = n[1], o = a === void 0 ? {} : a, s = typeof i == "string" ? new Date(i || 0) : i;
3041
3042
  try {
3042
- return k(e, "time", t, o).formatToParts(s);
3043
+ return X(e, "time", t, o).formatToParts(s);
3043
3044
  } catch (h) {
3044
- e.onError(new A(S.FORMAT_ERROR, "Error formatting time.", h));
3045
+ e.onError(new H("Error formatting time.", e.locale, h));
3045
3046
  }
3046
3047
  return [];
3047
3048
  }
@@ -3053,14 +3054,14 @@ var qt = [
3053
3054
  ];
3054
3055
  function Jt(e, t, n, r) {
3055
3056
  var i = e.locale, a = e.onError, o = Intl.DisplayNames;
3056
- o || a(new P(`Intl.DisplayNames is not available in this environment.
3057
+ o || a(new O(`Intl.DisplayNames is not available in this environment.
3057
3058
  Try polyfilling it using "@formatjs/intl-displaynames"
3058
- `, R.MISSING_INTL_API));
3059
+ `, _.MISSING_INTL_API));
3059
3060
  var s = C(r, qt);
3060
3061
  try {
3061
3062
  return t(i, s).of(n);
3062
3063
  } catch (h) {
3063
- a(new A(S.FORMAT_ERROR, "Error formatting display name.", h));
3064
+ a(new H("Error formatting display name.", i, h));
3064
3065
  }
3065
3066
  }
3066
3067
  var Qt = [
@@ -3082,9 +3083,9 @@ function De(e, t, n, r) {
3082
3083
  var i = e.locale, a = e.onError;
3083
3084
  r === void 0 && (r = {});
3084
3085
  var o = Intl.ListFormat;
3085
- o || a(new P(`Intl.ListFormat is not available in this environment.
3086
+ o || a(new O(`Intl.ListFormat is not available in this environment.
3086
3087
  Try polyfilling it using "@formatjs/intl-listformat"
3087
- `, R.MISSING_INTL_API));
3088
+ `, _.MISSING_INTL_API));
3088
3089
  var s = C(r, Qt);
3089
3090
  try {
3090
3091
  var h = {}, l = n.map(function(u, f) {
@@ -3098,21 +3099,21 @@ Try polyfilling it using "@formatjs/intl-listformat"
3098
3099
  return u.type === "literal" ? u : m(m({}, u), { value: h[u.value] || u.value });
3099
3100
  });
3100
3101
  } catch (u) {
3101
- a(new A(S.FORMAT_ERROR, "Error formatting list.", u));
3102
+ a(new H("Error formatting list.", i, u));
3102
3103
  }
3103
3104
  return n;
3104
3105
  }
3105
3106
  var Kt = ["type"];
3106
3107
  function er(e, t, n, r) {
3107
3108
  var i = e.locale, a = e.onError;
3108
- r === void 0 && (r = {}), Intl.PluralRules || a(new P(`Intl.PluralRules is not available in this environment.
3109
+ r === void 0 && (r = {}), Intl.PluralRules || a(new O(`Intl.PluralRules is not available in this environment.
3109
3110
  Try polyfilling it using "@formatjs/intl-pluralrules"
3110
- `, R.MISSING_INTL_API));
3111
+ `, _.MISSING_INTL_API));
3111
3112
  var o = C(r, Kt);
3112
3113
  try {
3113
3114
  return t(i, o).select(n);
3114
3115
  } catch (s) {
3115
- a(new re("Error formatting plural.", i, s));
3116
+ a(new H("Error formatting plural.", i, s));
3116
3117
  }
3117
3118
  return "other";
3118
3119
  }
@@ -3126,13 +3127,13 @@ function rr(e, t, n) {
3126
3127
  function nr(e, t, n, r, i) {
3127
3128
  i === void 0 && (i = {}), r || (r = "second");
3128
3129
  var a = Intl.RelativeTimeFormat;
3129
- a || e.onError(new P(`Intl.RelativeTimeFormat is not available in this environment.
3130
+ a || e.onError(new O(`Intl.RelativeTimeFormat is not available in this environment.
3130
3131
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
3131
- `, R.MISSING_INTL_API));
3132
+ `, _.MISSING_INTL_API));
3132
3133
  try {
3133
3134
  return rr(e, t, i).format(n, r);
3134
3135
  } catch (o) {
3135
- e.onError(new re("Error formatting relative time.", e.locale, o));
3136
+ e.onError(new H("Error formatting relative time.", e.locale, o));
3136
3137
  }
3137
3138
  return String(n);
3138
3139
  }
@@ -3169,7 +3170,7 @@ function ar(e, t, n, r) {
3169
3170
  try {
3170
3171
  return Fe(e, t, r).format(n);
3171
3172
  } catch (i) {
3172
- e.onError(new A(S.FORMAT_ERROR, "Error formatting number.", i));
3173
+ e.onError(new H("Error formatting number.", e.locale, i));
3173
3174
  }
3174
3175
  return String(n);
3175
3176
  }
@@ -3178,7 +3179,7 @@ function or(e, t, n, r) {
3178
3179
  try {
3179
3180
  return Fe(e, t, r).formatToParts(n);
3180
3181
  } catch (i) {
3181
- e.onError(new A(S.FORMAT_ERROR, "Error formatting number.", i));
3182
+ e.onError(new H("Error formatting number.", e.locale, i));
3182
3183
  }
3183
3184
  return [];
3184
3185
  }
@@ -3227,7 +3228,7 @@ function F(e, t) {
3227
3228
  const n = t.delimiter || ".", r = t.maxDepth, i = t.transformKey || Ue, a = {};
3228
3229
  function o(s, h, l) {
3229
3230
  l = l || 1, Object.keys(s).forEach(function(u) {
3230
- const f = s[u], c = t.safe && Array.isArray(f), g = Object.prototype.toString.call(f), b = Ge(f), E = g === "[object Object]" || g === "[object Array]", y = h ? h + n + i(u) : i(u);
3231
+ const f = s[u], c = t.safe && Array.isArray(f), p = Object.prototype.toString.call(f), b = Ge(f), E = p === "[object Object]" || p === "[object Array]", y = h ? h + n + i(u) : i(u);
3231
3232
  if (!c && !b && E && Object.keys(f).length && (!t.maxDepth || l < r))
3232
3233
  return o(f, y, l + 1);
3233
3234
  a[y] = f;
@@ -3245,16 +3246,16 @@ function je(e, t) {
3245
3246
  return isNaN(f) || u.indexOf(".") !== -1 || t.object ? u : f;
3246
3247
  }
3247
3248
  function h(u, f, c) {
3248
- return Object.keys(c).reduce(function(g, b) {
3249
- return g[u + n + b] = c[b], g;
3249
+ return Object.keys(c).reduce(function(p, b) {
3250
+ return p[u + n + b] = c[b], p;
3250
3251
  }, f);
3251
3252
  }
3252
3253
  function l(u) {
3253
- const f = Object.prototype.toString.call(u), c = f === "[object Array]", g = f === "[object Object]";
3254
+ const f = Object.prototype.toString.call(u), c = f === "[object Array]", p = f === "[object Object]";
3254
3255
  if (u) {
3255
3256
  if (c)
3256
3257
  return !u.length;
3257
- if (g)
3258
+ if (p)
3258
3259
  return !Object.keys(u).length;
3259
3260
  } else
3260
3261
  return !0;
@@ -3268,21 +3269,21 @@ function je(e, t) {
3268
3269
  );
3269
3270
  }, {}), Object.keys(e).forEach(function(u) {
3270
3271
  const f = u.split(n).map(i);
3271
- let c = s(f.shift()), g = s(f[0]), b = a;
3272
- for (; g !== void 0; ) {
3272
+ let c = s(f.shift()), p = s(f[0]), b = a;
3273
+ for (; p !== void 0; ) {
3273
3274
  if (c === "__proto__")
3274
3275
  return;
3275
3276
  const E = Object.prototype.toString.call(b[c]), y = E === "[object Object]" || E === "[object Array]";
3276
3277
  if (!r && !y && typeof b[c] < "u")
3277
3278
  return;
3278
- (r && !y || !r && b[c] == null) && (b[c] = typeof g == "number" && !t.object ? [] : {}), b = b[c], f.length > 0 && (c = s(f.shift()), g = s(f[0]));
3279
+ (r && !y || !r && b[c] == null) && (b[c] = typeof p == "number" && !t.object ? [] : {}), b = b[c], f.length > 0 && (c = s(f.shift()), p = s(f[0]));
3279
3280
  }
3280
3281
  b[c] = je(e[u], t);
3281
3282
  }), a;
3282
3283
  }
3283
3284
  const fr = Ce();
3284
3285
  let Ve;
3285
- const gr = (e, t, n = !1) => {
3286
+ const pr = (e, t, n = !1) => {
3286
3287
  const r = hr(
3287
3288
  {
3288
3289
  locale: e,
@@ -3293,7 +3294,7 @@ const gr = (e, t, n = !1) => {
3293
3294
  },
3294
3295
  fr
3295
3296
  ), { $t: i, ...a } = r, o = a, u = {
3296
- t: (f, c, g) => o.formatMessage({ id: f }, c, g),
3297
+ t: (f, c, p) => o.formatMessage({ id: f }, c, p),
3297
3298
  te: (f) => !!o.messages[f],
3298
3299
  tm: (f) => o.messages[f] || [],
3299
3300
  ...o,
@@ -3301,7 +3302,7 @@ const gr = (e, t, n = !1) => {
3301
3302
  };
3302
3303
  return n && (Ve = u), u;
3303
3304
  };
3304
- function pr() {
3305
+ function gr() {
3305
3306
  return Ve;
3306
3307
  }
3307
3308
  const cr = (e = null) => ke({
@@ -3347,8 +3348,8 @@ const cr = (e = null) => ke({
3347
3348
  };
3348
3349
  export {
3349
3350
  vr as Translation,
3350
- gr as createI18n,
3351
+ pr as createI18n,
3351
3352
  cr as i18nTComponent,
3352
- pr as useI18n
3353
+ gr as useI18n
3353
3354
  };
3354
3355
  //# sourceMappingURL=i18n.es.js.map