@embeddable.com/remarkable-pro 0.1.9 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/dist/BarChartDefaultHorizontalPro.js +8 -8
  2. package/dist/BarChartDefaultPro.js +5 -5
  3. package/dist/BarChartGroupedHorizontalPro.js +5 -5
  4. package/dist/BarChartGroupedPro.js +5 -5
  5. package/dist/BarChartStackedHorizontalPro.js +5 -5
  6. package/dist/BarChartStackedPro.js +5 -5
  7. package/dist/{ChartCard-Bu-80NJh.js → ChartCard-C94clFr-.js} +10 -10
  8. package/dist/{ChartCard-Bu-80NJh.js.map → ChartCard-C94clFr-.js.map} +1 -1
  9. package/dist/{Color.type.emb-JBTB4VAn.js → Color.type.emb-Ba6kRLMO.js} +8029 -8016
  10. package/dist/{Color.type.emb-JBTB4VAn.js.map → Color.type.emb-Ba6kRLMO.js.map} +1 -1
  11. package/dist/ColorEditor.js +2 -2
  12. package/dist/ComparisonPeriodSelectFieldPro.js +3 -3
  13. package/dist/DateRangePickerCustomPro.js +3 -3
  14. package/dist/DateRangeSelectFieldPro.js +3 -3
  15. package/dist/{DimensionAndMeasureSingleSelectField-C5B9m3hv.js → DimensionAndMeasureSingleSelectField-Btd0k1WN.js} +3 -3
  16. package/dist/{DimensionAndMeasureSingleSelectField-C5B9m3hv.js.map → DimensionAndMeasureSingleSelectField-Btd0k1WN.js.map} +1 -1
  17. package/dist/DimensionSingleSelectFieldPro.js +4 -4
  18. package/dist/DonutChartPro.js +7 -7
  19. package/dist/DonutLabelChartPro.js +4 -4
  20. package/dist/{EditorCard-DlwWVuY3.js → EditorCard-CvzyUx4Z.js} +3 -3
  21. package/dist/{EditorCard-DlwWVuY3.js.map → EditorCard-CvzyUx4Z.js.map} +1 -1
  22. package/dist/{GranularitySelectField-DpCZ47f8.js → GranularitySelectField-YRGQFZcI.js} +24 -23
  23. package/dist/{GranularitySelectField-DpCZ47f8.js.map → GranularitySelectField-YRGQFZcI.js.map} +1 -1
  24. package/dist/GranularitySelectFieldPro.js +6 -6
  25. package/dist/HeatMapPro.js +4 -4
  26. package/dist/HorizontalDividerPro.js +34 -0
  27. package/dist/HorizontalDividerPro.js.map +1 -0
  28. package/dist/{IconCalendarFilled-DPibPYqC.js → IconCalendarFilled-Bez59Tbf.js} +2 -2
  29. package/dist/{IconCalendarFilled-DPibPYqC.js.map → IconCalendarFilled-Bez59Tbf.js.map} +1 -1
  30. package/dist/KpiChartNumberComparisonPro.js +4 -4
  31. package/dist/KpiChartNumberPro.js +6 -6
  32. package/dist/LineChartComparisonDefaultPro.js +5 -5
  33. package/dist/LineChartDefaultPro.js +5 -5
  34. package/dist/LineChartGroupedPro.js +5 -5
  35. package/dist/MeasureSingleSelectFieldPro.js +4 -4
  36. package/dist/MultiSelectFieldPro.js +4 -4
  37. package/dist/PieChartPro.js +4 -4
  38. package/dist/PivotTablePro.js +4 -4
  39. package/dist/SingleSelectFieldPro.js +4 -4
  40. package/dist/TableChartPaginated.js +4 -4
  41. package/dist/TableScrollable.js +4 -4
  42. package/dist/{bars.utils-DZf4BZCu.js → bars.utils-D-RpVOx4.js} +4 -4
  43. package/dist/{bars.utils-DZf4BZCu.js.map → bars.utils-D-RpVOx4.js.map} +1 -1
  44. package/dist/{charts.utils-MNXWiXfk.js → charts.utils-zx_rdFOh.js} +4 -4
  45. package/dist/{charts.utils-MNXWiXfk.js.map → charts.utils-zx_rdFOh.js.map} +1 -1
  46. package/dist/component.inputs.constants-CafM9zee.js +564 -0
  47. package/dist/component.inputs.constants-CafM9zee.js.map +1 -0
  48. package/dist/{component.inputs.constants-Cj-atN8w.js → component.utils-DIYAoUYH.js} +332 -889
  49. package/dist/component.utils-DIYAoUYH.js.map +1 -0
  50. package/dist/components/shared/HorizontalDividerPro/index.d.ts +7 -0
  51. package/dist/components/shared/HorizontalDividerPro/index.d.ts.map +1 -0
  52. package/dist/embeddable-components.json +34 -32
  53. package/dist/embeddable-theme-0137e.js +1397 -1395
  54. package/dist/{granularity.utils-COYhEZ3f.js → granularity.utils-SZItYXwU.js} +3 -3
  55. package/dist/{granularity.utils-COYhEZ3f.js.map → granularity.utils-SZItYXwU.js.map} +1 -1
  56. package/dist/{index-BfrhwVwQ.js → index-21gf7llZ.js} +2 -2
  57. package/dist/{index-BfrhwVwQ.js.map → index-21gf7llZ.js.map} +1 -1
  58. package/dist/{index-DN5C1NTk.js → index-BIO7gVaq.js} +5 -5
  59. package/dist/{index-DN5C1NTk.js.map → index-BIO7gVaq.js.map} +1 -1
  60. package/dist/{index-BIYe6Mxp.js → index-BNT6NKHx.js} +16 -16
  61. package/dist/{index-BIYe6Mxp.js.map → index-BNT6NKHx.js.map} +1 -1
  62. package/dist/{index-ChBjG9Oi.js → index-BXFoQPId.js} +11 -11
  63. package/dist/{index-ChBjG9Oi.js.map → index-BXFoQPId.js.map} +1 -1
  64. package/dist/{index-B0Z1wHFa.js → index-BdxHzCYZ.js} +5 -5
  65. package/dist/{index-B0Z1wHFa.js.map → index-BdxHzCYZ.js.map} +1 -1
  66. package/dist/{index-CWAfLnlR.js → index-BpXWgDYM.js} +11 -11
  67. package/dist/{index-CWAfLnlR.js.map → index-BpXWgDYM.js.map} +1 -1
  68. package/dist/{index-BLtSOe_I.js → index-BvV-vs_w.js} +7 -7
  69. package/dist/{index-BLtSOe_I.js.map → index-BvV-vs_w.js.map} +1 -1
  70. package/dist/{index-r9MBmJ_q.js → index-C944U_JG.js} +5 -5
  71. package/dist/{index-r9MBmJ_q.js.map → index-C944U_JG.js.map} +1 -1
  72. package/dist/{index-C6YdlImA.js → index-CAyJ0NrS.js} +10 -10
  73. package/dist/{index-C6YdlImA.js.map → index-CAyJ0NrS.js.map} +1 -1
  74. package/dist/{index-5qsLc5gK.js → index-CIEihjtV.js} +5 -5
  75. package/dist/{index-5qsLc5gK.js.map → index-CIEihjtV.js.map} +1 -1
  76. package/dist/{index-BwwtBJde.js → index-CMHKa6yP.js} +9 -9
  77. package/dist/{index-BwwtBJde.js.map → index-CMHKa6yP.js.map} +1 -1
  78. package/dist/{index-D65Rq3k-.js → index-CZgS6ETq.js} +6 -6
  79. package/dist/{index-D65Rq3k-.js.map → index-CZgS6ETq.js.map} +1 -1
  80. package/dist/{index-Ci4fIfj8.js → index-Ce0UWspv.js} +4 -4
  81. package/dist/{index-Ci4fIfj8.js.map → index-Ce0UWspv.js.map} +1 -1
  82. package/dist/{index-DA8SRHFS.js → index-CfEzNLT4.js} +16 -16
  83. package/dist/{index-DA8SRHFS.js.map → index-CfEzNLT4.js.map} +1 -1
  84. package/dist/{index-77C7AtLU.js → index-CwFEQ-aM.js} +5 -5
  85. package/dist/{index-77C7AtLU.js.map → index-CwFEQ-aM.js.map} +1 -1
  86. package/dist/{index-BownhTSN.js → index-D4PsdoMC.js} +10 -10
  87. package/dist/{index-BownhTSN.js.map → index-D4PsdoMC.js.map} +1 -1
  88. package/dist/{index-CfSyZuh4.js → index-D7xFEool.js} +20 -20
  89. package/dist/{index-CfSyZuh4.js.map → index-D7xFEool.js.map} +1 -1
  90. package/dist/{index-s6HzicAx.js → index-DXP25cW2.js} +20 -20
  91. package/dist/{index-s6HzicAx.js.map → index-DXP25cW2.js.map} +1 -1
  92. package/dist/{index-CwEdsnOz.js → index-DehXK1Sh.js} +10 -10
  93. package/dist/{index-CwEdsnOz.js.map → index-DehXK1Sh.js.map} +1 -1
  94. package/dist/{index-DILo_r4-.js → index-DjT6EyFA.js} +8 -8
  95. package/dist/{index-DILo_r4-.js.map → index-DjT6EyFA.js.map} +1 -1
  96. package/dist/{index-DK0M5jbC.js → index-DmCl_k4C.js} +10 -10
  97. package/dist/{index-DK0M5jbC.js.map → index-DmCl_k4C.js.map} +1 -1
  98. package/dist/{index-DKN0VZXM.js → index-Do_uwX96.js} +13 -13
  99. package/dist/{index-DKN0VZXM.js.map → index-Do_uwX96.js.map} +1 -1
  100. package/dist/{index-CDfc3oko.js → index-Fd2bQqMW.js} +7 -7
  101. package/dist/{index-CDfc3oko.js.map → index-Fd2bQqMW.js.map} +1 -1
  102. package/dist/{index-CKM7Eu4P.js → index-MLteceEX.js} +8 -8
  103. package/dist/{index-CKM7Eu4P.js.map → index-MLteceEX.js.map} +1 -1
  104. package/dist/{index-1LMAV7gp.js → index-S9WNhMoH.js} +5 -5
  105. package/dist/{index-1LMAV7gp.js.map → index-S9WNhMoH.js.map} +1 -1
  106. package/dist/{index-d6y81S-C.js → index-bL_N9uYo.js} +15 -15
  107. package/dist/{index-d6y81S-C.js.map → index-bL_N9uYo.js.map} +1 -1
  108. package/dist/{index-CWoNbj8I.js → index-qtPDcHs8.js} +5 -5
  109. package/dist/{index-CWoNbj8I.js.map → index-qtPDcHs8.js.map} +1 -1
  110. package/dist/index.js +126 -125
  111. package/dist/index.js.map +1 -1
  112. package/dist/{pies.utils-CxJtBPWG.js → pies.utils-USn2uI6V.js} +5 -5
  113. package/dist/{pies.utils-CxJtBPWG.js.map → pies.utils-USn2uI6V.js.map} +1 -1
  114. package/dist/{preview.data.constants-DWqfMVjy.js → preview.data.constants-1No1RU-q.js} +6 -5
  115. package/dist/{preview.data.constants-DWqfMVjy.js.map → preview.data.constants-1No1RU-q.js.map} +1 -1
  116. package/dist/remarkable-pro.css +1 -1
  117. package/dist/{tables.utils-D4RGHDWw.js → tables.utils-BxlCEGVt.js} +4 -4
  118. package/dist/{tables.utils-D4RGHDWw.js.map → tables.utils-BxlCEGVt.js.map} +1 -1
  119. package/dist/{timeRange.utils-D8kYnjqp.js → timeRange.utils--6XjFw64.js} +5 -5
  120. package/dist/{timeRange.utils-D8kYnjqp.js.map → timeRange.utils--6XjFw64.js.map} +1 -1
  121. package/package.json +1 -1
  122. package/dist/component.inputs.constants-Cj-atN8w.js.map +0 -1
@@ -1,61 +1,61 @@
1
- import { h as qe, Y as X, Z as w, C as Ae } from "./Color.type.emb-JBTB4VAn.js";
2
- const g = (a) => typeof a == "string", U = () => {
1
+ import { h as we } from "./Color.type.emb-Ba6kRLMO.js";
2
+ const g = (a) => typeof a == "string", K = () => {
3
3
  let a, e;
4
4
  const t = new Promise((i, s) => {
5
5
  a = i, e = s;
6
6
  });
7
7
  return t.resolve = a, t.reject = e, t;
8
- }, Oe = (a) => a == null ? "" : "" + a, We = (a, e, t) => {
8
+ }, ne = (a) => a == null ? "" : "" + a, ve = (a, e, t) => {
9
9
  a.forEach((i) => {
10
10
  e[i] && (t[i] = e[i]);
11
11
  });
12
- }, Ye = /###/g, Le = (a) => a && a.indexOf("###") > -1 ? a.replace(Ye, ".") : a, Ce = (a) => !a || g(a), z = (a, e, t) => {
12
+ }, Ce = /###/g, re = (a) => a && a.indexOf("###") > -1 ? a.replace(Ce, ".") : a, ae = (a) => !a || g(a), A = (a, e, t) => {
13
13
  const i = g(e) ? e.split(".") : e;
14
14
  let s = 0;
15
15
  for (; s < i.length - 1; ) {
16
- if (Ce(a)) return {};
17
- const n = Le(i[s]);
16
+ if (ae(a)) return {};
17
+ const n = re(i[s]);
18
18
  !a[n] && t && (a[n] = new t()), Object.prototype.hasOwnProperty.call(a, n) ? a = a[n] : a = {}, ++s;
19
19
  }
20
- return Ce(a) ? {} : {
20
+ return ae(a) ? {} : {
21
21
  obj: a,
22
- k: Le(i[s])
22
+ k: re(i[s])
23
23
  };
24
- }, we = (a, e, t) => {
24
+ }, oe = (a, e, t) => {
25
25
  const {
26
26
  obj: i,
27
27
  k: s
28
- } = z(a, e, Object);
28
+ } = A(a, e, Object);
29
29
  if (i !== void 0 || e.length === 1) {
30
30
  i[s] = t;
31
31
  return;
32
32
  }
33
- let n = e[e.length - 1], r = e.slice(0, e.length - 1), o = z(a, r, Object);
33
+ let n = e[e.length - 1], r = e.slice(0, e.length - 1), o = A(a, r, Object);
34
34
  for (; o.obj === void 0 && r.length; )
35
- n = `${r[r.length - 1]}.${n}`, r = r.slice(0, r.length - 1), o = z(a, r, Object), o != null && o.obj && typeof o.obj[`${o.k}.${n}`] < "u" && (o.obj = void 0);
35
+ n = `${r[r.length - 1]}.${n}`, r = r.slice(0, r.length - 1), o = A(a, r, Object), o != null && o.obj && typeof o.obj[`${o.k}.${n}`] < "u" && (o.obj = void 0);
36
36
  o.obj[`${o.k}.${n}`] = t;
37
- }, _e = (a, e, t, i) => {
37
+ }, Pe = (a, e, t, i) => {
38
38
  const {
39
39
  obj: s,
40
40
  k: n
41
- } = z(a, e, Object);
41
+ } = A(a, e, Object);
42
42
  s[n] = s[n] || [], s[n].push(t);
43
- }, Y = (a, e) => {
43
+ }, J = (a, e) => {
44
44
  const {
45
45
  obj: t,
46
46
  k: i
47
- } = z(a, e);
47
+ } = A(a, e);
48
48
  if (t && Object.prototype.hasOwnProperty.call(t, i))
49
49
  return t[i];
50
- }, Qe = (a, e, t) => {
51
- const i = Y(a, t);
52
- return i !== void 0 ? i : Y(e, t);
53
- }, je = (a, e, t) => {
50
+ }, Re = (a, e, t) => {
51
+ const i = J(a, t);
52
+ return i !== void 0 ? i : J(e, t);
53
+ }, ye = (a, e, t) => {
54
54
  for (const i in e)
55
- i !== "__proto__" && i !== "constructor" && (i in a ? g(a[i]) || a[i] instanceof String || g(e[i]) || e[i] instanceof String ? t && (a[i] = e[i]) : je(a[i], e[i], t) : a[i] = e[i]);
55
+ i !== "__proto__" && i !== "constructor" && (i in a ? g(a[i]) || a[i] instanceof String || g(e[i]) || e[i] instanceof String ? t && (a[i] = e[i]) : ye(a[i], e[i], t) : a[i] = e[i]);
56
56
  return a;
57
57
  }, I = (a) => a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
58
- var Xe = {
58
+ var $e = {
59
59
  "&": "&amp;",
60
60
  "<": "&lt;",
61
61
  ">": "&gt;",
@@ -63,8 +63,8 @@ var Xe = {
63
63
  "'": "&#39;",
64
64
  "/": "&#x2F;"
65
65
  };
66
- const Ze = (a) => g(a) ? a.replace(/[&<>"'\/]/g, (e) => Xe[e]) : a;
67
- class et {
66
+ const Ne = (a) => g(a) ? a.replace(/[&<>"'\/]/g, (e) => $e[e]) : a;
67
+ class ke {
68
68
  constructor(e) {
69
69
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
70
70
  }
@@ -76,18 +76,18 @@ class et {
76
76
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, i), this.regExpQueue.push(e), i;
77
77
  }
78
78
  }
79
- const tt = [" ", ",", "?", "!", ";"], st = new et(20), it = (a, e, t) => {
79
+ const Fe = [" ", ",", "?", "!", ";"], je = new ke(20), Ee = (a, e, t) => {
80
80
  e = e || "", t = t || "";
81
- const i = tt.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
81
+ const i = Fe.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
82
82
  if (i.length === 0) return !0;
83
- const s = st.getRegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
83
+ const s = je.getRegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
84
84
  let n = !s.test(a);
85
85
  if (!n) {
86
86
  const r = a.indexOf(t);
87
87
  r > 0 && !s.test(a.substring(0, r)) && (n = !0);
88
88
  }
89
89
  return n;
90
- }, de = (a, e, t = ".") => {
90
+ }, X = (a, e, t = ".") => {
91
91
  if (!a) return;
92
92
  if (a[e])
93
93
  return Object.prototype.hasOwnProperty.call(a, e) ? a[e] : void 0;
@@ -107,7 +107,7 @@ const tt = [" ", ",", "?", "!", ";"], st = new et(20), it = (a, e, t) => {
107
107
  s = r;
108
108
  }
109
109
  return s;
110
- }, J = (a) => a == null ? void 0 : a.replace("_", "-"), nt = {
110
+ }, U = (a) => a == null ? void 0 : a.replace("_", "-"), Ie = {
111
111
  type: "logger",
112
112
  log(a) {
113
113
  this.output("log", a);
@@ -128,7 +128,7 @@ class _ {
128
128
  this.init(e, t);
129
129
  }
130
130
  init(e, t = {}) {
131
- this.prefix = t.prefix || "i18next:", this.logger = e || nt, this.options = t, this.debug = t.debug;
131
+ this.prefix = t.prefix || "i18next:", this.logger = e || Ie, this.options = t, this.debug = t.debug;
132
132
  }
133
133
  log(...e) {
134
134
  return this.forward(e, "log", "", !0);
@@ -155,8 +155,8 @@ class _ {
155
155
  return e = e || this.options, e.prefix = e.prefix || this.prefix, new _(this.logger, e);
156
156
  }
157
157
  }
158
- var k = new _();
159
- class Z {
158
+ var $ = new _();
159
+ class Y {
160
160
  constructor() {
161
161
  this.observers = {};
162
162
  }
@@ -186,7 +186,7 @@ class Z {
186
186
  });
187
187
  }
188
188
  }
189
- class ve extends Z {
189
+ class le extends Y {
190
190
  constructor(e, t = {
191
191
  ns: ["translation"],
192
192
  defaultNS: "translation"
@@ -201,19 +201,19 @@ class ve extends Z {
201
201
  t > -1 && this.options.ns.splice(t, 1);
202
202
  }
203
203
  getResource(e, t, i, s = {}) {
204
- var l, f;
204
+ var l, c;
205
205
  const n = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, r = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
206
206
  let o;
207
207
  e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], i && (Array.isArray(i) ? o.push(...i) : g(i) && n ? o.push(...i.split(n)) : o.push(i)));
208
- const u = Y(this.data, o);
209
- return !u && !t && !i && e.indexOf(".") > -1 && (e = o[0], t = o[1], i = o.slice(2).join(".")), u || !r || !g(i) ? u : de((f = (l = this.data) == null ? void 0 : l[e]) == null ? void 0 : f[t], i, n);
208
+ const u = J(this.data, o);
209
+ return !u && !t && !i && e.indexOf(".") > -1 && (e = o[0], t = o[1], i = o.slice(2).join(".")), u || !r || !g(i) ? u : X((c = (l = this.data) == null ? void 0 : l[e]) == null ? void 0 : c[t], i, n);
210
210
  }
211
211
  addResource(e, t, i, s, n = {
212
212
  silent: !1
213
213
  }) {
214
214
  const r = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
215
215
  let o = [e, t];
216
- i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), s = t, t = o[1]), this.addNamespaces(t), we(this.data, o, s), n.silent || this.emit("added", e, t, i, s);
216
+ i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), s = t, t = o[1]), this.addNamespaces(t), oe(this.data, o, s), n.silent || this.emit("added", e, t, i, s);
217
217
  }
218
218
  addResources(e, t, i, s = {
219
219
  silent: !1
@@ -230,11 +230,11 @@ class ve extends Z {
230
230
  }) {
231
231
  let o = [e, t];
232
232
  e.indexOf(".") > -1 && (o = e.split("."), s = i, i = t, t = o[1]), this.addNamespaces(t);
233
- let u = Y(this.data, o) || {};
234
- r.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? je(u, i, n) : u = {
233
+ let u = J(this.data, o) || {};
234
+ r.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? ye(u, i, n) : u = {
235
235
  ...u,
236
236
  ...i
237
- }, we(this.data, o, u), r.silent || this.emit("added", e, t, i);
237
+ }, oe(this.data, o, u), r.silent || this.emit("added", e, t, i);
238
238
  }
239
239
  removeResourceBundle(e, t) {
240
240
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -256,7 +256,7 @@ class ve extends Z {
256
256
  return this.data;
257
257
  }
258
258
  }
259
- var Ie = {
259
+ var Se = {
260
260
  processors: {},
261
261
  addPostProcessor(a) {
262
262
  this.processors[a.name] = a;
@@ -268,25 +268,25 @@ var Ie = {
268
268
  }), e;
269
269
  }
270
270
  };
271
- const Ee = Symbol("i18next/PATH_KEY");
272
- function at() {
271
+ const Oe = Symbol("i18next/PATH_KEY");
272
+ function Te() {
273
273
  const a = [], e = /* @__PURE__ */ Object.create(null);
274
274
  let t;
275
275
  return e.get = (i, s) => {
276
276
  var n;
277
- return (n = t == null ? void 0 : t.revoke) == null || n.call(t), s === Ee ? a : (a.push(s), t = Proxy.revocable(i, e), t.proxy);
277
+ return (n = t == null ? void 0 : t.revoke) == null || n.call(t), s === Oe ? a : (a.push(s), t = Proxy.revocable(i, e), t.proxy);
278
278
  }, Proxy.revocable(/* @__PURE__ */ Object.create(null), e).proxy;
279
279
  }
280
- function he(a, e) {
280
+ function q(a, e) {
281
281
  const {
282
- [Ee]: t
283
- } = a(at());
282
+ [Oe]: t
283
+ } = a(Te());
284
284
  return t.join((e == null ? void 0 : e.keySeparator) ?? ".");
285
285
  }
286
- const Re = {}, ue = (a) => !g(a) && typeof a != "boolean" && typeof a != "number";
287
- class Q extends Z {
286
+ const ue = {}, G = (a) => !g(a) && typeof a != "boolean" && typeof a != "number";
287
+ class W extends Y {
288
288
  constructor(e, t = {}) {
289
- super(), We(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = k.create("translator");
289
+ super(), ve(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = $.create("translator");
290
290
  }
291
291
  changeLanguage(e) {
292
292
  e && (this.language = e);
@@ -300,7 +300,7 @@ class Q extends Z {
300
300
  if (e == null) return !1;
301
301
  const s = this.resolve(e, i);
302
302
  if ((s == null ? void 0 : s.res) === void 0) return !1;
303
- const n = ue(s.res);
303
+ const n = G(s.res);
304
304
  return !(i.returnObjects === !1 && n);
305
305
  }
306
306
  extractFromKey(e, t) {
@@ -308,7 +308,7 @@ class Q extends Z {
308
308
  i === void 0 && (i = ":");
309
309
  const s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
310
310
  let n = t.ns || this.options.defaultNS || [];
311
- const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !it(e, i, s);
311
+ const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Ee(e, i, s);
312
312
  if (r && !o) {
313
313
  const u = e.match(this.interpolator.nestingRegexp);
314
314
  if (u && u.length > 0)
@@ -331,7 +331,7 @@ class Q extends Z {
331
331
  if (typeof s != "object" && this.options.overloadTranslationOptionHandler && (s = this.options.overloadTranslationOptionHandler(arguments)), typeof s == "object" && (s = {
332
332
  ...s
333
333
  }), s || (s = {}), e == null) return "";
334
- typeof e == "function" && (e = he(e, {
334
+ typeof e == "function" && (e = q(e, {
335
335
  ...this.options,
336
336
  ...s
337
337
  })), Array.isArray(e) || (e = [String(e)]);
@@ -339,95 +339,95 @@ class Q extends Z {
339
339
  key: o,
340
340
  namespaces: u
341
341
  } = this.extractFromKey(e[e.length - 1], s), l = u[u.length - 1];
342
- let f = s.nsSeparator !== void 0 ? s.nsSeparator : this.options.nsSeparator;
343
- f === void 0 && (f = ":");
344
- const c = s.lng || this.language, p = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
345
- if ((c == null ? void 0 : c.toLowerCase()) === "cimode")
342
+ let c = s.nsSeparator !== void 0 ? s.nsSeparator : this.options.nsSeparator;
343
+ c === void 0 && (c = ":");
344
+ const f = s.lng || this.language, p = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
345
+ if ((f == null ? void 0 : f.toLowerCase()) === "cimode")
346
346
  return p ? n ? {
347
- res: `${l}${f}${o}`,
347
+ res: `${l}${c}${o}`,
348
348
  usedKey: o,
349
349
  exactUsedKey: o,
350
- usedLng: c,
350
+ usedLng: f,
351
351
  usedNS: l,
352
352
  usedParams: this.getUsedParamsDetails(s)
353
- } : `${l}${f}${o}` : n ? {
353
+ } : `${l}${c}${o}` : n ? {
354
354
  res: o,
355
355
  usedKey: o,
356
356
  exactUsedKey: o,
357
- usedLng: c,
357
+ usedLng: f,
358
358
  usedNS: l,
359
359
  usedParams: this.getUsedParamsDetails(s)
360
360
  } : o;
361
- const h = this.resolve(e, s);
362
- let d = h == null ? void 0 : h.res;
363
- const m = (h == null ? void 0 : h.usedKey) || o, x = (h == null ? void 0 : h.exactUsedKey) || o, R = ["[object Number]", "[object Function]", "[object RegExp]"], v = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, A = !this.i18nFormat || this.i18nFormat.handleAsObject, O = s.count !== void 0 && !g(s.count), D = Q.hasDefaultValue(s), G = O ? this.pluralResolver.getSuffix(c, s.count, s) : "", F = s.ordinal && O ? this.pluralResolver.getSuffix(c, s.count, {
361
+ const d = this.resolve(e, s);
362
+ let h = d == null ? void 0 : d.res;
363
+ const m = (d == null ? void 0 : d.usedKey) || o, y = (d == null ? void 0 : d.exactUsedKey) || o, v = ["[object Number]", "[object Function]", "[object RegExp]"], w = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, j = !this.i18nFormat || this.i18nFormat.handleAsObject, O = s.count !== void 0 && !g(s.count), N = W.hasDefaultValue(s), H = O ? this.pluralResolver.getSuffix(f, s.count, s) : "", k = s.ordinal && O ? this.pluralResolver.getSuffix(f, s.count, {
364
364
  ordinal: !1
365
- }) : "", M = O && !s.ordinal && s.count === 0, L = M && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${G}`] || s[`defaultValue${F}`] || s.defaultValue;
366
- let S = d;
367
- A && !d && D && (S = L);
368
- const Je = ue(S), Ge = Object.prototype.toString.apply(S);
369
- if (A && S && Je && R.indexOf(Ge) < 0 && !(g(v) && Array.isArray(S))) {
365
+ }) : "", T = O && !s.ordinal && s.count === 0, L = T && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${H}`] || s[`defaultValue${k}`] || s.defaultValue;
366
+ let S = h;
367
+ j && !h && N && (S = L);
368
+ const Le = G(S), be = Object.prototype.toString.apply(S);
369
+ if (j && S && Le && v.indexOf(be) < 0 && !(g(w) && Array.isArray(S))) {
370
370
  if (!s.returnObjects && !this.options.returnObjects) {
371
371
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
372
- const $ = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(m, S, {
372
+ const P = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(m, S, {
373
373
  ...s,
374
374
  ns: u
375
375
  }) : `key '${o} (${this.language})' returned an object instead of string.`;
376
- return n ? (h.res = $, h.usedParams = this.getUsedParamsDetails(s), h) : $;
376
+ return n ? (d.res = P, d.usedParams = this.getUsedParamsDetails(s), d) : P;
377
377
  }
378
378
  if (r) {
379
- const $ = Array.isArray(S), P = $ ? [] : {}, ye = $ ? x : m;
380
- for (const N in S)
381
- if (Object.prototype.hasOwnProperty.call(S, N)) {
382
- const T = `${ye}${r}${N}`;
383
- D && !d ? P[N] = this.translate(T, {
379
+ const P = Array.isArray(S), C = P ? [] : {}, ee = P ? y : m;
380
+ for (const R in S)
381
+ if (Object.prototype.hasOwnProperty.call(S, R)) {
382
+ const F = `${ee}${r}${R}`;
383
+ N && !h ? C[R] = this.translate(F, {
384
384
  ...s,
385
- defaultValue: ue(L) ? L[N] : void 0,
385
+ defaultValue: G(L) ? L[R] : void 0,
386
386
  joinArrays: !1,
387
387
  ns: u
388
- }) : P[N] = this.translate(T, {
388
+ }) : C[R] = this.translate(F, {
389
389
  ...s,
390
390
  joinArrays: !1,
391
391
  ns: u
392
- }), P[N] === T && (P[N] = S[N]);
392
+ }), C[R] === F && (C[R] = S[R]);
393
393
  }
394
- d = P;
394
+ h = C;
395
395
  }
396
- } else if (A && g(v) && Array.isArray(d))
397
- d = d.join(v), d && (d = this.extendTranslation(d, e, s, i));
396
+ } else if (j && g(w) && Array.isArray(h))
397
+ h = h.join(w), h && (h = this.extendTranslation(h, e, s, i));
398
398
  else {
399
- let $ = !1, P = !1;
400
- !this.isValidLookup(d) && D && ($ = !0, d = L), this.isValidLookup(d) || (P = !0, d = o);
401
- const N = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && P ? void 0 : d, T = D && L !== d && this.options.updateMissing;
402
- if (P || $ || T) {
403
- if (this.logger.log(T ? "updateKey" : "missingKey", c, l, o, T ? L : d), r) {
404
- const C = this.resolve(o, {
399
+ let P = !1, C = !1;
400
+ !this.isValidLookup(h) && N && (P = !0, h = L), this.isValidLookup(h) || (C = !0, h = o);
401
+ const R = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && C ? void 0 : h, F = N && L !== h && this.options.updateMissing;
402
+ if (C || P || F) {
403
+ if (this.logger.log(F ? "updateKey" : "missingKey", f, l, o, F ? L : h), r) {
404
+ const b = this.resolve(o, {
405
405
  ...s,
406
406
  keySeparator: !1
407
407
  });
408
- C && C.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
408
+ b && b.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
409
409
  }
410
- let K = [];
411
- const q = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
412
- if (this.options.saveMissingTo === "fallback" && q && q[0])
413
- for (let C = 0; C < q.length; C++)
414
- K.push(q[C]);
415
- else this.options.saveMissingTo === "all" ? K = this.languageUtils.toResolveHierarchy(s.lng || this.language) : K.push(s.lng || this.language);
416
- const be = (C, j, H) => {
417
- var Se;
418
- const xe = D && H !== d ? H : N;
419
- this.options.missingKeyHandler ? this.options.missingKeyHandler(C, l, j, xe, T, s) : (Se = this.backendConnector) != null && Se.saveMissing && this.backendConnector.saveMissing(C, l, j, xe, T, s), this.emit("missingKey", C, l, j, d);
410
+ let V = [];
411
+ const z = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
412
+ if (this.options.saveMissingTo === "fallback" && z && z[0])
413
+ for (let b = 0; b < z.length; b++)
414
+ V.push(z[b]);
415
+ else this.options.saveMissingTo === "all" ? V = this.languageUtils.toResolveHierarchy(s.lng || this.language) : V.push(s.lng || this.language);
416
+ const te = (b, E, D) => {
417
+ var ie;
418
+ const se = N && D !== h ? D : R;
419
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(b, l, E, se, F, s) : (ie = this.backendConnector) != null && ie.saveMissing && this.backendConnector.saveMissing(b, l, E, se, F, s), this.emit("missingKey", b, l, E, h);
420
420
  };
421
- this.options.saveMissing && (this.options.saveMissingPlurals && O ? K.forEach((C) => {
422
- const j = this.pluralResolver.getSuffixes(C, s);
423
- M && s[`defaultValue${this.options.pluralSeparator}zero`] && j.indexOf(`${this.options.pluralSeparator}zero`) < 0 && j.push(`${this.options.pluralSeparator}zero`), j.forEach((H) => {
424
- be([C], o + H, s[`defaultValue${H}`] || L);
421
+ this.options.saveMissing && (this.options.saveMissingPlurals && O ? V.forEach((b) => {
422
+ const E = this.pluralResolver.getSuffixes(b, s);
423
+ T && s[`defaultValue${this.options.pluralSeparator}zero`] && E.indexOf(`${this.options.pluralSeparator}zero`) < 0 && E.push(`${this.options.pluralSeparator}zero`), E.forEach((D) => {
424
+ te([b], o + D, s[`defaultValue${D}`] || L);
425
425
  });
426
- }) : be(K, o, L));
426
+ }) : te(V, o, L));
427
427
  }
428
- d = this.extendTranslation(d, e, s, h, i), P && d === o && this.options.appendNamespaceToMissingKey && (d = `${l}${f}${o}`), (P || $) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${f}${o}` : o, $ ? d : void 0, s));
428
+ h = this.extendTranslation(h, e, s, d, i), C && h === o && this.options.appendNamespaceToMissingKey && (h = `${l}${c}${o}`), (C || P) && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${c}${o}` : o, P ? h : void 0, s));
429
429
  }
430
- return n ? (h.res = d, h.usedParams = this.getUsedParamsDetails(s), h) : d;
430
+ return n ? (d.res = h, d.usedParams = this.getUsedParamsDetails(s), d) : h;
431
431
  }
432
432
  extendTranslation(e, t, i, s, n) {
433
433
  var u, l;
@@ -446,24 +446,24 @@ class Q extends Z {
446
446
  ...i.interpolation
447
447
  }
448
448
  });
449
- const f = g(e) && (((l = i == null ? void 0 : i.interpolation) == null ? void 0 : l.skipOnVariables) !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
450
- let c;
451
- if (f) {
452
- const h = e.match(this.interpolator.nestingRegexp);
453
- c = h && h.length;
449
+ const c = g(e) && (((l = i == null ? void 0 : i.interpolation) == null ? void 0 : l.skipOnVariables) !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
450
+ let f;
451
+ if (c) {
452
+ const d = e.match(this.interpolator.nestingRegexp);
453
+ f = d && d.length;
454
454
  }
455
455
  let p = i.replace && !g(i.replace) ? i.replace : i;
456
456
  if (this.options.interpolation.defaultVariables && (p = {
457
457
  ...this.options.interpolation.defaultVariables,
458
458
  ...p
459
- }), e = this.interpolator.interpolate(e, p, i.lng || this.language || s.usedLng, i), f) {
460
- const h = e.match(this.interpolator.nestingRegexp), d = h && h.length;
461
- c < d && (i.nest = !1);
459
+ }), e = this.interpolator.interpolate(e, p, i.lng || this.language || s.usedLng, i), c) {
460
+ const d = e.match(this.interpolator.nestingRegexp), h = d && d.length;
461
+ f < h && (i.nest = !1);
462
462
  }
463
- !i.lng && s && s.res && (i.lng = this.language || s.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, (...h) => (n == null ? void 0 : n[0]) === h[0] && !i.context ? (this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${t[0]}`), null) : this.translate(...h, t), i)), i.interpolation && this.interpolator.reset();
463
+ !i.lng && s && s.res && (i.lng = this.language || s.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, (...d) => (n == null ? void 0 : n[0]) === d[0] && !i.context ? (this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${t[0]}`), null) : this.translate(...d, t), i)), i.interpolation && this.interpolator.reset();
464
464
  }
465
465
  const r = i.postProcess || this.options.postProcess, o = g(r) ? [r] : r;
466
- return e != null && (o != null && o.length) && i.applyPostProcessor !== !1 && (e = Ie.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
466
+ return e != null && (o != null && o.length) && i.applyPostProcessor !== !1 && (e = Se.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
467
467
  i18nResolved: {
468
468
  ...s,
469
469
  usedParams: this.getUsedParamsDetails(i)
@@ -475,32 +475,32 @@ class Q extends Z {
475
475
  let i, s, n, r, o;
476
476
  return g(e) && (e = [e]), e.forEach((u) => {
477
477
  if (this.isValidLookup(i)) return;
478
- const l = this.extractFromKey(u, t), f = l.key;
479
- s = f;
480
- let c = l.namespaces;
481
- this.options.fallbackNS && (c = c.concat(this.options.fallbackNS));
482
- const p = t.count !== void 0 && !g(t.count), h = p && !t.ordinal && t.count === 0, d = t.context !== void 0 && (g(t.context) || typeof t.context == "number") && t.context !== "", m = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
483
- c.forEach((x) => {
484
- var R, v;
485
- this.isValidLookup(i) || (o = x, !Re[`${m[0]}-${x}`] && ((R = this.utils) != null && R.hasLoadedNamespace) && !((v = this.utils) != null && v.hasLoadedNamespace(o)) && (Re[`${m[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), m.forEach((A) => {
486
- var G;
478
+ const l = this.extractFromKey(u, t), c = l.key;
479
+ s = c;
480
+ let f = l.namespaces;
481
+ this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
482
+ const p = t.count !== void 0 && !g(t.count), d = p && !t.ordinal && t.count === 0, h = t.context !== void 0 && (g(t.context) || typeof t.context == "number") && t.context !== "", m = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
483
+ f.forEach((y) => {
484
+ var v, w;
485
+ this.isValidLookup(i) || (o = y, !ue[`${m[0]}-${y}`] && ((v = this.utils) != null && v.hasLoadedNamespace) && !((w = this.utils) != null && w.hasLoadedNamespace(o)) && (ue[`${m[0]}-${y}`] = !0, this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), m.forEach((j) => {
486
+ var H;
487
487
  if (this.isValidLookup(i)) return;
488
- r = A;
489
- const O = [f];
490
- if ((G = this.i18nFormat) != null && G.addLookupKeys)
491
- this.i18nFormat.addLookupKeys(O, f, A, x, t);
488
+ r = j;
489
+ const O = [c];
490
+ if ((H = this.i18nFormat) != null && H.addLookupKeys)
491
+ this.i18nFormat.addLookupKeys(O, c, j, y, t);
492
492
  else {
493
- let F;
494
- p && (F = this.pluralResolver.getSuffix(A, t.count, t));
495
- const M = `${this.options.pluralSeparator}zero`, L = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
496
- if (p && (t.ordinal && F.indexOf(L) === 0 && O.push(f + F.replace(L, this.options.pluralSeparator)), O.push(f + F), h && O.push(f + M)), d) {
497
- const S = `${f}${this.options.contextSeparator || "_"}${t.context}`;
498
- O.push(S), p && (t.ordinal && F.indexOf(L) === 0 && O.push(S + F.replace(L, this.options.pluralSeparator)), O.push(S + F), h && O.push(S + M));
493
+ let k;
494
+ p && (k = this.pluralResolver.getSuffix(j, t.count, t));
495
+ const T = `${this.options.pluralSeparator}zero`, L = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
496
+ if (p && (t.ordinal && k.indexOf(L) === 0 && O.push(c + k.replace(L, this.options.pluralSeparator)), O.push(c + k), d && O.push(c + T)), h) {
497
+ const S = `${c}${this.options.contextSeparator || "_"}${t.context}`;
498
+ O.push(S), p && (t.ordinal && k.indexOf(L) === 0 && O.push(S + k.replace(L, this.options.pluralSeparator)), O.push(S + k), d && O.push(S + T));
499
499
  }
500
500
  }
501
- let D;
502
- for (; D = O.pop(); )
503
- this.isValidLookup(i) || (n = D, i = this.getResource(A, x, D, t));
501
+ let N;
502
+ for (; N = O.pop(); )
503
+ this.isValidLookup(i) || (n = N, i = this.getResource(j, y, N, t));
504
504
  }));
505
505
  });
506
506
  }), {
@@ -541,17 +541,17 @@ class Q extends Z {
541
541
  return !1;
542
542
  }
543
543
  }
544
- class Pe {
544
+ class fe {
545
545
  constructor(e) {
546
- this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = k.create("languageUtils");
546
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = $.create("languageUtils");
547
547
  }
548
548
  getScriptPartFromCode(e) {
549
- if (e = J(e), !e || e.indexOf("-") < 0) return null;
549
+ if (e = U(e), !e || e.indexOf("-") < 0) return null;
550
550
  const t = e.split("-");
551
551
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
552
552
  }
553
553
  getLanguagePartFromCode(e) {
554
- if (e = J(e), !e || e.indexOf("-") < 0) return e;
554
+ if (e = U(e), !e || e.indexOf("-") < 0) return e;
555
555
  const t = e.split("-");
556
556
  return this.formatLanguageCode(t[0]);
557
557
  }
@@ -605,28 +605,28 @@ class Pe {
605
605
  }), s;
606
606
  }
607
607
  }
608
- const $e = {
608
+ const ce = {
609
609
  zero: 0,
610
610
  one: 1,
611
611
  two: 2,
612
612
  few: 3,
613
613
  many: 4,
614
614
  other: 5
615
- }, Ne = {
615
+ }, he = {
616
616
  select: (a) => a === 1 ? "one" : "other",
617
617
  resolvedOptions: () => ({
618
618
  pluralCategories: ["one", "other"]
619
619
  })
620
620
  };
621
- class rt {
621
+ class Ve {
622
622
  constructor(e, t = {}) {
623
- this.languageUtils = e, this.options = t, this.logger = k.create("pluralResolver"), this.pluralRulesCache = {};
623
+ this.languageUtils = e, this.options = t, this.logger = $.create("pluralResolver"), this.pluralRulesCache = {};
624
624
  }
625
625
  clearCache() {
626
626
  this.pluralRulesCache = {};
627
627
  }
628
628
  getRule(e, t = {}) {
629
- const i = J(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", n = JSON.stringify({
629
+ const i = U(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", n = JSON.stringify({
630
630
  cleanedCode: i,
631
631
  type: s
632
632
  });
@@ -638,9 +638,9 @@ class rt {
638
638
  type: s
639
639
  });
640
640
  } catch {
641
- if (!Intl)
642
- return this.logger.error("No Intl support, please use an Intl polyfill!"), Ne;
643
- if (!e.match(/-|_/)) return Ne;
641
+ if (typeof Intl > "u")
642
+ return this.logger.error("No Intl support, please use an Intl polyfill!"), he;
643
+ if (!e.match(/-|_/)) return he;
644
644
  const u = this.languageUtils.getLanguagePartFromCode(e);
645
645
  r = this.getRule(u, t);
646
646
  }
@@ -655,21 +655,21 @@ class rt {
655
655
  }
656
656
  getSuffixes(e, t = {}) {
657
657
  let i = this.getRule(e, t);
658
- return i || (i = this.getRule("dev", t)), i ? i.resolvedOptions().pluralCategories.sort((s, n) => $e[s] - $e[n]).map((s) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : [];
658
+ return i || (i = this.getRule("dev", t)), i ? i.resolvedOptions().pluralCategories.sort((s, n) => ce[s] - ce[n]).map((s) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : [];
659
659
  }
660
660
  getSuffix(e, t, i = {}) {
661
661
  const s = this.getRule(e, i);
662
662
  return s ? `${this.options.prepend}${i.ordinal ? `ordinal${this.options.prepend}` : ""}${s.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, i));
663
663
  }
664
664
  }
665
- const ke = (a, e, t, i = ".", s = !0) => {
666
- let n = Qe(a, e, t);
667
- return !n && s && g(t) && (n = de(a, t, i), n === void 0 && (n = de(e, t, i))), n;
668
- }, ce = (a) => a.replace(/\$/g, "$$$$");
669
- class De {
665
+ const de = (a, e, t, i = ".", s = !0) => {
666
+ let n = Re(a, e, t);
667
+ return !n && s && g(t) && (n = X(a, t, i), n === void 0 && (n = X(e, t, i))), n;
668
+ }, Q = (a) => a.replace(/\$/g, "$$$$");
669
+ class pe {
670
670
  constructor(e = {}) {
671
671
  var t;
672
- this.logger = k.create("interpolator"), this.options = e, this.format = ((t = e == null ? void 0 : e.interpolation) == null ? void 0 : t.format) || ((i) => i), this.init(e);
672
+ this.logger = $.create("interpolator"), this.options = e, this.format = ((t = e == null ? void 0 : e.interpolation) == null ? void 0 : t.format) || ((i) => i), this.init(e);
673
673
  }
674
674
  init(e = {}) {
675
675
  e.interpolation || (e.interpolation = {
@@ -684,17 +684,17 @@ class De {
684
684
  suffix: o,
685
685
  suffixEscaped: u,
686
686
  formatSeparator: l,
687
- unescapeSuffix: f,
688
- unescapePrefix: c,
687
+ unescapeSuffix: c,
688
+ unescapePrefix: f,
689
689
  nestingPrefix: p,
690
- nestingPrefixEscaped: h,
691
- nestingSuffix: d,
690
+ nestingPrefixEscaped: d,
691
+ nestingSuffix: h,
692
692
  nestingSuffixEscaped: m,
693
- nestingOptionsSeparator: x,
694
- maxReplaces: R,
695
- alwaysFormat: v
693
+ nestingOptionsSeparator: y,
694
+ maxReplaces: v,
695
+ alwaysFormat: w
696
696
  } = e.interpolation;
697
- this.escape = t !== void 0 ? t : Ze, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = n ? I(n) : r || "{{", this.suffix = o ? I(o) : u || "}}", this.formatSeparator = l || ",", this.unescapePrefix = f ? "" : c || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = p ? I(p) : h || I("$t("), this.nestingSuffix = d ? I(d) : m || I(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = R || 1e3, this.alwaysFormat = v !== void 0 ? v : !1, this.resetRegExp();
697
+ this.escape = t !== void 0 ? t : Ne, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = n ? I(n) : r || "{{", this.suffix = o ? I(o) : u || "}}", this.formatSeparator = l || ",", this.unescapePrefix = c ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : c || "", this.nestingPrefix = p ? I(p) : d || I("$t("), this.nestingSuffix = h ? I(h) : m || I(")"), this.nestingOptionsSeparator = y || ",", this.maxReplaces = v || 1e3, this.alwaysFormat = w !== void 0 ? w : !1, this.resetRegExp();
698
698
  }
699
699
  reset() {
700
700
  this.options && this.init(this.options);
@@ -704,49 +704,49 @@ class De {
704
704
  this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`);
705
705
  }
706
706
  interpolate(e, t, i, s) {
707
- var h;
707
+ var d;
708
708
  let n, r, o;
709
- const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (d) => {
710
- if (d.indexOf(this.formatSeparator) < 0) {
711
- const v = ke(t, u, d, this.options.keySeparator, this.options.ignoreJSONStructure);
712
- return this.alwaysFormat ? this.format(v, void 0, i, {
709
+ const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (h) => {
710
+ if (h.indexOf(this.formatSeparator) < 0) {
711
+ const w = de(t, u, h, this.options.keySeparator, this.options.ignoreJSONStructure);
712
+ return this.alwaysFormat ? this.format(w, void 0, i, {
713
713
  ...s,
714
714
  ...t,
715
- interpolationkey: d
716
- }) : v;
715
+ interpolationkey: h
716
+ }) : w;
717
717
  }
718
- const m = d.split(this.formatSeparator), x = m.shift().trim(), R = m.join(this.formatSeparator).trim();
719
- return this.format(ke(t, u, x, this.options.keySeparator, this.options.ignoreJSONStructure), R, i, {
718
+ const m = h.split(this.formatSeparator), y = m.shift().trim(), v = m.join(this.formatSeparator).trim();
719
+ return this.format(de(t, u, y, this.options.keySeparator, this.options.ignoreJSONStructure), v, i, {
720
720
  ...s,
721
721
  ...t,
722
- interpolationkey: x
722
+ interpolationkey: y
723
723
  });
724
724
  };
725
725
  this.resetRegExp();
726
- const f = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, c = ((h = s == null ? void 0 : s.interpolation) == null ? void 0 : h.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
726
+ const c = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, f = ((d = s == null ? void 0 : s.interpolation) == null ? void 0 : d.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
727
727
  return [{
728
728
  regex: this.regexpUnescape,
729
- safeValue: (d) => ce(d)
729
+ safeValue: (h) => Q(h)
730
730
  }, {
731
731
  regex: this.regexp,
732
- safeValue: (d) => this.escapeValue ? ce(this.escape(d)) : ce(d)
733
- }].forEach((d) => {
734
- for (o = 0; n = d.regex.exec(e); ) {
732
+ safeValue: (h) => this.escapeValue ? Q(this.escape(h)) : Q(h)
733
+ }].forEach((h) => {
734
+ for (o = 0; n = h.regex.exec(e); ) {
735
735
  const m = n[1].trim();
736
736
  if (r = l(m), r === void 0)
737
- if (typeof f == "function") {
738
- const R = f(e, n, s);
739
- r = g(R) ? R : "";
737
+ if (typeof c == "function") {
738
+ const v = c(e, n, s);
739
+ r = g(v) ? v : "";
740
740
  } else if (s && Object.prototype.hasOwnProperty.call(s, m))
741
741
  r = "";
742
- else if (c) {
742
+ else if (f) {
743
743
  r = n[0];
744
744
  continue;
745
745
  } else
746
746
  this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`), r = "";
747
- else !g(r) && !this.useRawValueToEscape && (r = Oe(r));
748
- const x = d.safeValue(r);
749
- if (e = e.replace(n[0], x), c ? (d.regex.lastIndex += r.length, d.regex.lastIndex -= n[0].length) : d.regex.lastIndex = 0, o++, o >= this.maxReplaces)
747
+ else !g(r) && !this.useRawValueToEscape && (r = ne(r));
748
+ const y = h.safeValue(r);
749
+ if (e = e.replace(n[0], y), f ? (h.regex.lastIndex += r.length, h.regex.lastIndex -= n[0].length) : h.regex.lastIndex = 0, o++, o >= this.maxReplaces)
750
750
  break;
751
751
  }
752
752
  }), e;
@@ -754,20 +754,20 @@ class De {
754
754
  nest(e, t, i = {}) {
755
755
  let s, n, r;
756
756
  const o = (u, l) => {
757
- const f = this.nestingOptionsSeparator;
758
- if (u.indexOf(f) < 0) return u;
759
- const c = u.split(new RegExp(`${f}[ ]*{`));
760
- let p = `{${c[1]}`;
761
- u = c[0], p = this.interpolate(p, r);
762
- const h = p.match(/'/g), d = p.match(/"/g);
763
- (((h == null ? void 0 : h.length) ?? 0) % 2 === 0 && !d || d.length % 2 !== 0) && (p = p.replace(/'/g, '"'));
757
+ const c = this.nestingOptionsSeparator;
758
+ if (u.indexOf(c) < 0) return u;
759
+ const f = u.split(new RegExp(`${I(c)}[ ]*{`));
760
+ let p = `{${f[1]}`;
761
+ u = f[0], p = this.interpolate(p, r);
762
+ const d = p.match(/'/g), h = p.match(/"/g);
763
+ (((d == null ? void 0 : d.length) ?? 0) % 2 === 0 && !h || ((h == null ? void 0 : h.length) ?? 0) % 2 !== 0) && (p = p.replace(/'/g, '"'));
764
764
  try {
765
765
  r = JSON.parse(p), l && (r = {
766
766
  ...l,
767
767
  ...r
768
768
  });
769
769
  } catch (m) {
770
- return this.logger.warn(`failed parsing options string in nesting for key ${u}`, m), `${u}${f}${p}`;
770
+ return this.logger.warn(`failed parsing options string in nesting for key ${u}`, m), `${u}${c}${p}`;
771
771
  }
772
772
  return r.defaultValue && r.defaultValue.indexOf(this.prefix) > -1 && delete r.defaultValue, u;
773
773
  };
@@ -777,8 +777,8 @@ class De {
777
777
  ...i
778
778
  }, r = r.replace && !g(r.replace) ? r.replace : r, r.applyPostProcessor = !1, delete r.defaultValue;
779
779
  const l = /{.*}/.test(s[1]) ? s[1].lastIndexOf("}") + 1 : s[1].indexOf(this.formatSeparator);
780
- if (l !== -1 && (u = s[1].slice(l).split(this.formatSeparator).map((f) => f.trim()).filter(Boolean), s[1] = s[1].slice(0, l)), n = t(o.call(this, s[1].trim(), r), r), n && s[0] === e && !g(n)) return n;
781
- g(n) || (n = Oe(n)), n || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), n = ""), u.length && (n = u.reduce((f, c) => this.format(f, c, i.lng, {
780
+ if (l !== -1 && (u = s[1].slice(l).split(this.formatSeparator).map((c) => c.trim()).filter(Boolean), s[1] = s[1].slice(0, l)), n = t(o.call(this, s[1].trim(), r), r), n && s[0] === e && !g(n)) return n;
781
+ g(n) || (n = ne(n)), n || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), n = ""), u.length && (n = u.reduce((c, f) => this.format(c, f, i.lng, {
782
782
  ...i,
783
783
  interpolationkey: s[1].trim()
784
784
  }), n.trim())), e = e.replace(s[0], n), this.regexp.lastIndex = 0;
@@ -786,7 +786,7 @@ class De {
786
786
  return e;
787
787
  }
788
788
  }
789
- const ot = (a) => {
789
+ const De = (a) => {
790
790
  let e = a.toLowerCase().trim();
791
791
  const t = {};
792
792
  if (a.indexOf("(") > -1) {
@@ -795,8 +795,8 @@ const ot = (a) => {
795
795
  const s = i[1].substring(0, i[1].length - 1);
796
796
  e === "currency" && s.indexOf(":") < 0 ? t.currency || (t.currency = s.trim()) : e === "relativetime" && s.indexOf(":") < 0 ? t.range || (t.range = s.trim()) : s.split(";").forEach((r) => {
797
797
  if (r) {
798
- const [o, ...u] = r.split(":"), l = u.join(":").trim().replace(/^'+|'+$/g, ""), f = o.trim();
799
- t[f] || (t[f] = l), l === "false" && (t[f] = !1), l === "true" && (t[f] = !0), isNaN(l) || (t[f] = parseInt(l, 10));
798
+ const [o, ...u] = r.split(":"), l = u.join(":").trim().replace(/^'+|'+$/g, ""), c = o.trim();
799
+ t[c] || (t[c] = l), l === "false" && (t[c] = !1), l === "true" && (t[c] = !0), isNaN(l) || (t[c] = parseInt(l, 10));
800
800
  }
801
801
  });
802
802
  }
@@ -804,7 +804,7 @@ const ot = (a) => {
804
804
  formatName: e,
805
805
  formatOptions: t
806
806
  };
807
- }, Fe = (a) => {
807
+ }, ge = (a) => {
808
808
  const e = {};
809
809
  return (t, i, s) => {
810
810
  let n = s;
@@ -814,18 +814,18 @@ const ot = (a) => {
814
814
  });
815
815
  const r = i + JSON.stringify(n);
816
816
  let o = e[r];
817
- return o || (o = a(J(i), s), e[r] = o), o(t);
817
+ return o || (o = a(U(i), s), e[r] = o), o(t);
818
818
  };
819
- }, lt = (a) => (e, t, i) => a(J(t), i)(e);
820
- class ut {
819
+ }, Ke = (a) => (e, t, i) => a(U(t), i)(e);
820
+ class Ae {
821
821
  constructor(e = {}) {
822
- this.logger = k.create("formatter"), this.options = e, this.init(e);
822
+ this.logger = $.create("formatter"), this.options = e, this.init(e);
823
823
  }
824
824
  init(e, t = {
825
825
  interpolation: {}
826
826
  }) {
827
827
  this.formatSeparator = t.interpolation.formatSeparator || ",";
828
- const i = t.cacheInBuiltFormats ? Fe : lt;
828
+ const i = t.cacheInBuiltFormats ? ge : Ke;
829
829
  this.formats = {
830
830
  number: i((s, n) => {
831
831
  const r = new Intl.NumberFormat(s, {
@@ -864,7 +864,7 @@ class ut {
864
864
  this.formats[e.toLowerCase().trim()] = t;
865
865
  }
866
866
  addCached(e, t) {
867
- this.formats[e.toLowerCase().trim()] = Fe(t);
867
+ this.formats[e.toLowerCase().trim()] = ge(t);
868
868
  }
869
869
  format(e, t, i, s = {}) {
870
870
  const n = t.split(this.formatSeparator);
@@ -873,22 +873,22 @@ class ut {
873
873
  n[0] = [n[0], ...n.splice(1, o)].join(this.formatSeparator);
874
874
  }
875
875
  return n.reduce((o, u) => {
876
- var c;
876
+ var f;
877
877
  const {
878
878
  formatName: l,
879
- formatOptions: f
880
- } = ot(u);
879
+ formatOptions: c
880
+ } = De(u);
881
881
  if (this.formats[l]) {
882
882
  let p = o;
883
883
  try {
884
- const h = ((c = s == null ? void 0 : s.formatParams) == null ? void 0 : c[s.interpolationkey]) || {}, d = h.locale || h.lng || s.locale || s.lng || i;
885
- p = this.formats[l](o, d, {
886
- ...f,
884
+ const d = ((f = s == null ? void 0 : s.formatParams) == null ? void 0 : f[s.interpolationkey]) || {}, h = d.locale || d.lng || s.locale || s.lng || i;
885
+ p = this.formats[l](o, h, {
886
+ ...c,
887
887
  ...s,
888
- ...h
888
+ ...d
889
889
  });
890
- } catch (h) {
891
- this.logger.warn(h);
890
+ } catch (d) {
891
+ this.logger.warn(d);
892
892
  }
893
893
  return p;
894
894
  } else
@@ -897,22 +897,22 @@ class ut {
897
897
  }, e);
898
898
  }
899
899
  }
900
- const ct = (a, e) => {
900
+ const Me = (a, e) => {
901
901
  a.pending[e] !== void 0 && (delete a.pending[e], a.pendingCount--);
902
902
  };
903
- class ft extends Z {
903
+ class Ue extends Y {
904
904
  constructor(e, t, i, s = {}) {
905
905
  var n, r;
906
- super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = s, this.logger = k.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], (r = (n = this.backend) == null ? void 0 : n.init) == null || r.call(n, i, s.backend, s);
906
+ super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = s, this.logger = $.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], (r = (n = this.backend) == null ? void 0 : n.init) == null || r.call(n, i, s.backend, s);
907
907
  }
908
908
  queueLoad(e, t, i, s) {
909
909
  const n = {}, r = {}, o = {}, u = {};
910
910
  return e.forEach((l) => {
911
- let f = !0;
912
- t.forEach((c) => {
913
- const p = `${l}|${c}`;
914
- !i.reload && this.store.hasResourceBundle(l, c) ? this.state[p] = 2 : this.state[p] < 0 || (this.state[p] === 1 ? r[p] === void 0 && (r[p] = !0) : (this.state[p] = 1, f = !1, r[p] === void 0 && (r[p] = !0), n[p] === void 0 && (n[p] = !0), u[c] === void 0 && (u[c] = !0)));
915
- }), f || (o[l] = !0);
911
+ let c = !0;
912
+ t.forEach((f) => {
913
+ const p = `${l}|${f}`;
914
+ !i.reload && this.store.hasResourceBundle(l, f) ? this.state[p] = 2 : this.state[p] < 0 || (this.state[p] === 1 ? r[p] === void 0 && (r[p] = !0) : (this.state[p] = 1, c = !1, r[p] === void 0 && (r[p] = !0), n[p] === void 0 && (n[p] = !0), u[f] === void 0 && (u[f] = !0)));
915
+ }), c || (o[l] = !0);
916
916
  }), (Object.keys(n).length || Object.keys(r).length) && this.queue.push({
917
917
  pending: r,
918
918
  pendingCount: Object.keys(r).length,
@@ -933,11 +933,11 @@ class ft extends Z {
933
933
  }), this.state[e] = t ? -1 : 2, t && i && (this.state[e] = 0);
934
934
  const o = {};
935
935
  this.queue.forEach((u) => {
936
- _e(u.loaded, [n], r), ct(u, e), t && u.errors.push(t), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((l) => {
936
+ Pe(u.loaded, [n], r), Me(u, e), t && u.errors.push(t), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((l) => {
937
937
  o[l] || (o[l] = {});
938
- const f = u.loaded[l];
939
- f.length && f.forEach((c) => {
940
- o[l][c] === void 0 && (o[l][c] = !0);
938
+ const c = u.loaded[l];
939
+ c.length && c.forEach((f) => {
940
+ o[l][f] === void 0 && (o[l][f] = !0);
941
941
  });
942
942
  }), u.done = !0, u.errors.length ? u.callback(u.errors) : u.callback());
943
943
  }), this.emit("loaded", o), this.queue = this.queue.filter((u) => !u.done);
@@ -956,23 +956,23 @@ class ft extends Z {
956
956
  return;
957
957
  }
958
958
  this.readingCalls++;
959
- const o = (l, f) => {
959
+ const o = (l, c) => {
960
960
  if (this.readingCalls--, this.waitingReads.length > 0) {
961
- const c = this.waitingReads.shift();
962
- this.read(c.lng, c.ns, c.fcName, c.tried, c.wait, c.callback);
961
+ const f = this.waitingReads.shift();
962
+ this.read(f.lng, f.ns, f.fcName, f.tried, f.wait, f.callback);
963
963
  }
964
- if (l && f && s < this.maxRetries) {
964
+ if (l && c && s < this.maxRetries) {
965
965
  setTimeout(() => {
966
966
  this.read.call(this, e, t, i, s + 1, n * 2, r);
967
967
  }, n);
968
968
  return;
969
969
  }
970
- r(l, f);
970
+ r(l, c);
971
971
  }, u = this.backend[i].bind(this.backend);
972
972
  if (u.length === 2) {
973
973
  try {
974
974
  const l = u(e, t);
975
- l && typeof l.then == "function" ? l.then((f) => o(null, f)).catch(o) : o(null, l);
975
+ l && typeof l.then == "function" ? l.then((c) => o(null, c)).catch(o) : o(null, l);
976
976
  } catch (l) {
977
977
  o(l);
978
978
  }
@@ -1007,32 +1007,32 @@ class ft extends Z {
1007
1007
  }
1008
1008
  saveMissing(e, t, i, s, n, r = {}, o = () => {
1009
1009
  }) {
1010
- var u, l, f, c, p;
1011
- if ((l = (u = this.services) == null ? void 0 : u.utils) != null && l.hasLoadedNamespace && !((c = (f = this.services) == null ? void 0 : f.utils) != null && c.hasLoadedNamespace(t))) {
1010
+ var u, l, c, f, p;
1011
+ if ((l = (u = this.services) == null ? void 0 : u.utils) != null && l.hasLoadedNamespace && !((f = (c = this.services) == null ? void 0 : c.utils) != null && f.hasLoadedNamespace(t))) {
1012
1012
  this.logger.warn(`did not save key "${i}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
1013
1013
  return;
1014
1014
  }
1015
1015
  if (!(i == null || i === "")) {
1016
1016
  if ((p = this.backend) != null && p.create) {
1017
- const h = {
1017
+ const d = {
1018
1018
  ...r,
1019
1019
  isUpdate: n
1020
- }, d = this.backend.create.bind(this.backend);
1021
- if (d.length < 6)
1020
+ }, h = this.backend.create.bind(this.backend);
1021
+ if (h.length < 6)
1022
1022
  try {
1023
1023
  let m;
1024
- d.length === 5 ? m = d(e, t, i, s, h) : m = d(e, t, i, s), m && typeof m.then == "function" ? m.then((x) => o(null, x)).catch(o) : o(null, m);
1024
+ h.length === 5 ? m = h(e, t, i, s, d) : m = h(e, t, i, s), m && typeof m.then == "function" ? m.then((y) => o(null, y)).catch(o) : o(null, m);
1025
1025
  } catch (m) {
1026
1026
  o(m);
1027
1027
  }
1028
1028
  else
1029
- d(e, t, i, s, o, h);
1029
+ h(e, t, i, s, o, d);
1030
1030
  }
1031
1031
  !e || !e[0] || this.store.addResource(e[0], t, i, s);
1032
1032
  }
1033
1033
  }
1034
1034
  }
1035
- const fe = () => ({
1035
+ const Z = () => ({
1036
1036
  debug: !1,
1037
1037
  initAsync: !0,
1038
1038
  ns: ["translation"],
@@ -1089,26 +1089,28 @@ const fe = () => ({
1089
1089
  skipOnVariables: !0
1090
1090
  },
1091
1091
  cacheInBuiltFormats: !0
1092
- }), Te = (a) => {
1092
+ }), me = (a) => {
1093
1093
  var e, t;
1094
1094
  return g(a.ns) && (a.ns = [a.ns]), g(a.fallbackLng) && (a.fallbackLng = [a.fallbackLng]), g(a.fallbackNS) && (a.fallbackNS = [a.fallbackNS]), ((t = (e = a.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (a.supportedLngs = a.supportedLngs.concat(["cimode"])), typeof a.initImmediate == "boolean" && (a.initAsync = a.initImmediate), a;
1095
- }, W = () => {
1096
- }, dt = (a) => {
1095
+ }, B = () => {
1096
+ }, He = (a) => {
1097
1097
  Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach((t) => {
1098
1098
  typeof a[t] == "function" && (a[t] = a[t].bind(a));
1099
1099
  });
1100
- }, ht = (a) => {
1100
+ };
1101
+ let xe = !1;
1102
+ const ze = (a) => {
1101
1103
  var e, t, i, s, n, r, o, u, l;
1102
- return !!(((i = (t = (e = a == null ? void 0 : a.modules) == null ? void 0 : e.backend) == null ? void 0 : t.name) == null ? void 0 : i.indexOf("Locize")) > 0 || ((o = (r = (n = (s = a == null ? void 0 : a.modules) == null ? void 0 : s.backend) == null ? void 0 : n.constructor) == null ? void 0 : r.name) == null ? void 0 : o.indexOf("Locize")) > 0 || (l = (u = a == null ? void 0 : a.options) == null ? void 0 : u.backend) != null && l.backends && a.options.backend.backends.some((f) => {
1103
- var c, p, h;
1104
- return ((c = f == null ? void 0 : f.name) == null ? void 0 : c.indexOf("Locize")) > 0 || ((h = (p = f == null ? void 0 : f.constructor) == null ? void 0 : p.name) == null ? void 0 : h.indexOf("Locize")) > 0;
1104
+ return !!(((i = (t = (e = a == null ? void 0 : a.modules) == null ? void 0 : e.backend) == null ? void 0 : t.name) == null ? void 0 : i.indexOf("Locize")) > 0 || ((o = (r = (n = (s = a == null ? void 0 : a.modules) == null ? void 0 : s.backend) == null ? void 0 : n.constructor) == null ? void 0 : r.name) == null ? void 0 : o.indexOf("Locize")) > 0 || (l = (u = a == null ? void 0 : a.options) == null ? void 0 : u.backend) != null && l.backends && a.options.backend.backends.some((c) => {
1105
+ var f, p, d;
1106
+ return ((f = c == null ? void 0 : c.name) == null ? void 0 : f.indexOf("Locize")) > 0 || ((d = (p = c == null ? void 0 : c.constructor) == null ? void 0 : p.name) == null ? void 0 : d.indexOf("Locize")) > 0;
1105
1107
  }));
1106
1108
  };
1107
- class B extends Z {
1109
+ class M extends Y {
1108
1110
  constructor(e = {}, t) {
1109
- if (super(), this.options = Te(e), this.services = {}, this.logger = k, this.modules = {
1111
+ if (super(), this.options = me(e), this.services = {}, this.logger = $, this.modules = {
1110
1112
  external: []
1111
- }, dt(this), t && !this.isInitialized && !e.isClone) {
1113
+ }, He(this), t && !this.isInitialized && !e.isClone) {
1112
1114
  if (!this.options.initAsync)
1113
1115
  return this.init(e, t), this;
1114
1116
  setTimeout(() => {
@@ -1118,55 +1120,55 @@ class B extends Z {
1118
1120
  }
1119
1121
  init(e = {}, t) {
1120
1122
  this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (g(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
1121
- const i = fe();
1123
+ const i = Z();
1122
1124
  this.options = {
1123
1125
  ...i,
1124
1126
  ...this.options,
1125
- ...Te(e)
1127
+ ...me(e)
1126
1128
  }, this.options.interpolation = {
1127
1129
  ...i.interpolation,
1128
1130
  ...this.options.interpolation
1129
- }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = i.overloadTranslationOptionHandler), this.options.showSupportNotice !== !1 && !ht(this) && typeof console < "u" && typeof console.info < "u" && console.info("🌐 i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙");
1131
+ }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = i.overloadTranslationOptionHandler), this.options.showSupportNotice !== !1 && !ze(this) && !xe && (typeof console < "u" && typeof console.info < "u" && console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"), xe = !0);
1130
1132
  const s = (l) => l ? typeof l == "function" ? new l() : l : null;
1131
1133
  if (!this.options.isClone) {
1132
- this.modules.logger ? k.init(s(this.modules.logger), this.options) : k.init(null, this.options);
1134
+ this.modules.logger ? $.init(s(this.modules.logger), this.options) : $.init(null, this.options);
1133
1135
  let l;
1134
- this.modules.formatter ? l = this.modules.formatter : l = ut;
1135
- const f = new Pe(this.options);
1136
- this.store = new ve(this.options.resources, this.options);
1137
- const c = this.services;
1138
- c.logger = k, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new rt(f, {
1136
+ this.modules.formatter ? l = this.modules.formatter : l = Ae;
1137
+ const c = new fe(this.options);
1138
+ this.store = new le(this.options.resources, this.options);
1139
+ const f = this.services;
1140
+ f.logger = $, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new Ve(c, {
1139
1141
  prepend: this.options.pluralSeparator,
1140
1142
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1141
- }), this.options.interpolation.format && this.options.interpolation.format !== i.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), l && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (c.formatter = s(l), c.formatter.init && c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new De(this.options), c.utils = {
1143
+ }), this.options.interpolation.format && this.options.interpolation.format !== i.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), l && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (f.formatter = s(l), f.formatter.init && f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new pe(this.options), f.utils = {
1142
1144
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1143
- }, c.backendConnector = new ft(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", (h, ...d) => {
1144
- this.emit(h, ...d);
1145
- }), this.modules.languageDetector && (c.languageDetector = s(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = s(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new Q(this.services, this.options), this.translator.on("*", (h, ...d) => {
1146
- this.emit(h, ...d);
1147
- }), this.modules.external.forEach((h) => {
1148
- h.init && h.init(this);
1145
+ }, f.backendConnector = new Ue(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (d, ...h) => {
1146
+ this.emit(d, ...h);
1147
+ }), this.modules.languageDetector && (f.languageDetector = s(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = s(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new W(this.services, this.options), this.translator.on("*", (d, ...h) => {
1148
+ this.emit(d, ...h);
1149
+ }), this.modules.external.forEach((d) => {
1150
+ d.init && d.init(this);
1149
1151
  });
1150
1152
  }
1151
- if (this.format = this.options.interpolation.format, t || (t = W), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1153
+ if (this.format = this.options.interpolation.format, t || (t = B), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1152
1154
  const l = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
1153
1155
  l.length > 0 && l[0] !== "dev" && (this.options.lng = l[0]);
1154
1156
  }
1155
1157
  !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((l) => {
1156
- this[l] = (...f) => this.store[l](...f);
1158
+ this[l] = (...c) => this.store[l](...c);
1157
1159
  }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((l) => {
1158
- this[l] = (...f) => (this.store[l](...f), this);
1160
+ this[l] = (...c) => (this.store[l](...c), this);
1159
1161
  });
1160
- const o = U(), u = () => {
1161
- const l = (f, c) => {
1162
- this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(c), t(f, c);
1162
+ const o = K(), u = () => {
1163
+ const l = (c, f) => {
1164
+ this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(f), t(c, f);
1163
1165
  };
1164
1166
  if (this.languages && !this.isInitialized) return l(null, this.t.bind(this));
1165
1167
  this.changeLanguage(this.options.lng, l);
1166
1168
  };
1167
1169
  return this.options.resources || !this.options.initAsync ? u() : setTimeout(u, 0), o;
1168
1170
  }
1169
- loadResources(e, t = W) {
1171
+ loadResources(e, t = B) {
1170
1172
  var n, r;
1171
1173
  let i = t;
1172
1174
  const s = g(e) ? e : this.language;
@@ -1174,26 +1176,26 @@ class B extends Z {
1174
1176
  if ((s == null ? void 0 : s.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return i();
1175
1177
  const o = [], u = (l) => {
1176
1178
  if (!l || l === "cimode") return;
1177
- this.services.languageUtils.toResolveHierarchy(l).forEach((c) => {
1178
- c !== "cimode" && o.indexOf(c) < 0 && o.push(c);
1179
+ this.services.languageUtils.toResolveHierarchy(l).forEach((f) => {
1180
+ f !== "cimode" && o.indexOf(f) < 0 && o.push(f);
1179
1181
  });
1180
1182
  };
1181
- s ? u(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((f) => u(f)), (r = (n = this.options.preload) == null ? void 0 : n.forEach) == null || r.call(n, (l) => u(l)), this.services.backendConnector.load(o, this.options.ns, (l) => {
1183
+ s ? u(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((c) => u(c)), (r = (n = this.options.preload) == null ? void 0 : n.forEach) == null || r.call(n, (l) => u(l)), this.services.backendConnector.load(o, this.options.ns, (l) => {
1182
1184
  !l && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), i(l);
1183
1185
  });
1184
1186
  } else
1185
1187
  i(null);
1186
1188
  }
1187
1189
  reloadResources(e, t, i) {
1188
- const s = U();
1189
- return typeof e == "function" && (i = e, e = void 0), typeof t == "function" && (i = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), i || (i = W), this.services.backendConnector.reload(e, t, (n) => {
1190
+ const s = K();
1191
+ return typeof e == "function" && (i = e, e = void 0), typeof t == "function" && (i = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), i || (i = B), this.services.backendConnector.reload(e, t, (n) => {
1190
1192
  s.resolve(), i(n);
1191
1193
  }), s;
1192
1194
  }
1193
1195
  use(e) {
1194
1196
  if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1195
1197
  if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1196
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Ie.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1198
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Se.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1197
1199
  }
1198
1200
  setResolvedLanguage(e) {
1199
1201
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
@@ -1209,17 +1211,17 @@ class B extends Z {
1209
1211
  }
1210
1212
  changeLanguage(e, t) {
1211
1213
  this.isLanguageChangingTo = e;
1212
- const i = U();
1214
+ const i = K();
1213
1215
  this.emit("languageChanging", e);
1214
1216
  const s = (o) => {
1215
1217
  this.language = o, this.languages = this.services.languageUtils.toResolveHierarchy(o), this.resolvedLanguage = void 0, this.setResolvedLanguage(o);
1216
1218
  }, n = (o, u) => {
1217
1219
  u ? this.isLanguageChangingTo === e && (s(u), this.translator.changeLanguage(u), this.isLanguageChangingTo = void 0, this.emit("languageChanged", u), this.logger.log("languageChanged", u)) : this.isLanguageChangingTo = void 0, i.resolve((...l) => this.t(...l)), t && t(o, (...l) => this.t(...l));
1218
1220
  }, r = (o) => {
1219
- var f, c;
1221
+ var c, f;
1220
1222
  !e && !o && this.services.languageDetector && (o = []);
1221
1223
  const u = g(o) ? o : o && o[0], l = this.store.hasLanguageSomeTranslations(u) ? u : this.services.languageUtils.getBestMatchFromCodes(g(o) ? [o] : o);
1222
- l && (this.language || s(l), this.translator.language || this.translator.changeLanguage(l), (c = (f = this.services.languageDetector) == null ? void 0 : f.cacheUserLanguage) == null || c.call(f, l)), this.loadResources(l, (p) => {
1224
+ l && (this.language || s(l), this.translator.language || this.translator.changeLanguage(l), (f = (c = this.services.languageDetector) == null ? void 0 : c.cacheUserLanguage) == null || f.call(c, l)), this.loadResources(l, (p) => {
1223
1225
  n(p, l);
1224
1226
  });
1225
1227
  };
@@ -1232,14 +1234,14 @@ class B extends Z {
1232
1234
  ...r
1233
1235
  }, u.lng = u.lng || s.lng, u.lngs = u.lngs || s.lngs, u.ns = u.ns || s.ns, u.keyPrefix !== "" && (u.keyPrefix = u.keyPrefix || i || s.keyPrefix);
1234
1236
  const l = this.options.keySeparator || ".";
1235
- let f;
1236
- return u.keyPrefix && Array.isArray(n) ? f = n.map((c) => (typeof c == "function" && (c = he(c, {
1237
+ let c;
1238
+ return u.keyPrefix && Array.isArray(n) ? c = n.map((f) => (typeof f == "function" && (f = q(f, {
1237
1239
  ...this.options,
1238
1240
  ...r
1239
- })), `${u.keyPrefix}${l}${c}`)) : (typeof n == "function" && (n = he(n, {
1241
+ })), `${u.keyPrefix}${l}${f}`)) : (typeof n == "function" && (n = q(n, {
1240
1242
  ...this.options,
1241
1243
  ...r
1242
- })), f = u.keyPrefix ? `${u.keyPrefix}${l}${n}` : n), this.t(f, u);
1244
+ })), c = u.keyPrefix ? `${u.keyPrefix}${l}${n}` : n), this.t(c, u);
1243
1245
  };
1244
1246
  return g(e) ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = i, s;
1245
1247
  }
@@ -1272,7 +1274,7 @@ class B extends Z {
1272
1274
  return !!(this.hasResourceBundle(i, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || r(i, e) && (!s || r(n, e)));
1273
1275
  }
1274
1276
  loadNamespaces(e, t) {
1275
- const i = U();
1277
+ const i = K();
1276
1278
  return this.options.ns ? (g(e) && (e = [e]), e.forEach((s) => {
1277
1279
  this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
1278
1280
  }), this.loadResources((s) => {
@@ -1280,7 +1282,7 @@ class B extends Z {
1280
1282
  }), i) : (t && t(), Promise.resolve());
1281
1283
  }
1282
1284
  loadLanguages(e, t) {
1283
- const i = U();
1285
+ const i = K();
1284
1286
  g(e) && (e = [e]);
1285
1287
  const s = this.options.preload || [], n = e.filter((r) => s.indexOf(r) < 0 && this.services.languageUtils.isSupportedCode(r));
1286
1288
  return n.length ? (this.options.preload = s.concat(n), this.loadResources((r) => {
@@ -1298,21 +1300,21 @@ class B extends Z {
1298
1300
  }
1299
1301
  } catch {
1300
1302
  }
1301
- const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = ((n = this.services) == null ? void 0 : n.languageUtils) || new Pe(fe());
1303
+ const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = ((n = this.services) == null ? void 0 : n.languageUtils) || new fe(Z());
1302
1304
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1303
1305
  }
1304
1306
  static createInstance(e = {}, t) {
1305
- const i = new B(e, t);
1306
- return i.createInstance = B.createInstance, i;
1307
+ const i = new M(e, t);
1308
+ return i.createInstance = M.createInstance, i;
1307
1309
  }
1308
- cloneInstance(e = {}, t = W) {
1310
+ cloneInstance(e = {}, t = B) {
1309
1311
  const i = e.forkResourceStore;
1310
1312
  i && delete e.forkResourceStore;
1311
1313
  const s = {
1312
1314
  ...this.options,
1313
1315
  ...e,
1314
1316
  isClone: !0
1315
- }, n = new B(s);
1317
+ }, n = new M(s);
1316
1318
  if ((e.debug !== void 0 || e.prefix !== void 0) && (n.logger = n.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
1317
1319
  n[o] = this[o];
1318
1320
  }), n.services = {
@@ -1322,23 +1324,23 @@ class B extends Z {
1322
1324
  }, i) {
1323
1325
  const o = Object.keys(this.store.data).reduce((u, l) => (u[l] = {
1324
1326
  ...this.store.data[l]
1325
- }, u[l] = Object.keys(u[l]).reduce((f, c) => (f[c] = {
1326
- ...u[l][c]
1327
- }, f), u[l]), u), {});
1328
- n.store = new ve(o, s), n.services.resourceStore = n.store;
1327
+ }, u[l] = Object.keys(u[l]).reduce((c, f) => (c[f] = {
1328
+ ...u[l][f]
1329
+ }, c), u[l]), u), {});
1330
+ n.store = new le(o, s), n.services.resourceStore = n.store;
1329
1331
  }
1330
1332
  if (e.interpolation) {
1331
1333
  const u = {
1332
- ...fe().interpolation,
1334
+ ...Z().interpolation,
1333
1335
  ...this.options.interpolation,
1334
1336
  ...e.interpolation
1335
1337
  }, l = {
1336
1338
  ...s,
1337
1339
  interpolation: u
1338
1340
  };
1339
- n.services.interpolator = new De(l);
1341
+ n.services.interpolator = new pe(l);
1340
1342
  }
1341
- return n.translator = new Q(n.services, s), n.translator.on("*", (o, ...u) => {
1343
+ return n.translator = new W(n.services, s), n.translator.on("*", (o, ...u) => {
1342
1344
  n.emit(o, ...u);
1343
1345
  }), n.init(s, t), n.translator.options = s, n.translator.backendConnector.services.utils = {
1344
1346
  hasLoadedNamespace: n.hasLoadedNamespace.bind(n)
@@ -1354,24 +1356,24 @@ class B extends Z {
1354
1356
  };
1355
1357
  }
1356
1358
  }
1357
- const b = B.createInstance();
1358
- b.createInstance;
1359
- b.dir;
1360
- b.init;
1361
- b.loadResources;
1362
- b.reloadResources;
1363
- b.use;
1364
- b.changeLanguage;
1365
- b.getFixedT;
1366
- b.t;
1367
- b.exists;
1368
- b.setDefaultNamespace;
1369
- b.hasLoadedNamespace;
1370
- b.loadNamespaces;
1371
- b.loadLanguages;
1372
- const bs = (a) => {
1359
+ const x = M.createInstance();
1360
+ x.createInstance;
1361
+ x.dir;
1362
+ x.init;
1363
+ x.loadResources;
1364
+ x.reloadResources;
1365
+ x.use;
1366
+ x.changeLanguage;
1367
+ x.getFixedT;
1368
+ x.t;
1369
+ x.exists;
1370
+ x.setDefaultNamespace;
1371
+ x.hasLoadedNamespace;
1372
+ x.loadNamespaces;
1373
+ x.loadLanguages;
1374
+ const We = (a) => {
1373
1375
  var e, t;
1374
- !((e = a == null ? void 0 : a.i18n) != null && e.language) || !((t = a == null ? void 0 : a.i18n) != null && t.translations) || b.language === a.i18n.language && b.isInitialized || b.init({
1376
+ !((e = a == null ? void 0 : a.i18n) != null && e.language) || !((t = a == null ? void 0 : a.i18n) != null && t.translations) || x.language === a.i18n.language && x.isInitialized || x.init({
1375
1377
  lng: a.i18n.language,
1376
1378
  fallbackLng: "en",
1377
1379
  resources: a.i18n.translations,
@@ -1386,584 +1388,25 @@ const bs = (a) => {
1386
1388
  * This source code is licensed under the MIT license.
1387
1389
  * See the LICENSE file in the root directory of this source tree.
1388
1390
  */
1389
- const pt = [["path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", key: "svg-0" }], ["path", { d: "M12 8v4", key: "svg-1" }], ["path", { d: "M12 16h.01", key: "svg-2" }]], xs = qe("outline", "alert-circle", "AlertCircle", pt), gt = (a, e) => {
1390
- if (!a || !a.includes("|")) return b.t(a, e);
1391
+ const Be = [["path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", key: "svg-0" }], ["path", { d: "M12 8v4", key: "svg-1" }], ["path", { d: "M12 16h.01", key: "svg-2" }]], Ye = we("outline", "alert-circle", "AlertCircle", Be), Je = (a, e) => {
1392
+ if (!a || !a.includes("|")) return x.t(a, e);
1391
1393
  const [t, i] = a.split("|", 2).map((s) => s.trim());
1392
- return b.t(
1394
+ return x.t(
1393
1395
  [t, i].filter((s) => !!s),
1394
1396
  e
1395
1397
  );
1396
- }, Ss = (a) => {
1398
+ }, Ge = (a) => {
1397
1399
  const e = {};
1398
1400
  return Object.keys(a).forEach((t) => {
1399
1401
  const i = a[t];
1400
- e[t] = typeof i == "string" ? gt(i) : i;
1402
+ e[t] = typeof i == "string" ? Je(i) : i;
1401
1403
  }), e;
1402
- }, Ve = {
1403
- MARKDOWN: "Markdown",
1404
- JSON: "Json"
1405
- }, pe = X("DisplayFormat", {
1406
- label: "Display format",
1407
- optionLabel: (a) => a
1408
- });
1409
- w(pe, Ve.MARKDOWN);
1410
- w(pe, Ve.JSON);
1411
- const y = {
1412
- second: "second",
1413
- minute: "minute",
1414
- hour: "hour",
1415
- day: "day",
1416
- week: "week",
1417
- month: "month",
1418
- quarter: "quarter",
1419
- year: "year"
1420
- }, Os = [
1421
- { value: y.second, label: "defaults.granularityOptions.second|Second" },
1422
- { value: y.minute, label: "defaults.granularityOptions.minute|Minute" },
1423
- { value: y.hour, label: "defaults.granularityOptions.hour|Hour" },
1424
- { value: y.day, label: "defaults.granularityOptions.day|Day" },
1425
- { value: y.week, label: "defaults.granularityOptions.week|Week" },
1426
- { value: y.month, label: "defaults.granularityOptions.month|Month" },
1427
- { value: y.quarter, label: "defaults.granularityOptions.quarter|Quarter" },
1428
- { value: y.year, label: "defaults.granularityOptions.year|Year" }
1429
- ], Ls = Object.values(y), ee = X("align", {
1430
- label: "Alignment",
1431
- optionLabel: (a) => a
1432
- });
1433
- w(ee, "left");
1434
- w(ee, "center");
1435
- w(ee, "right");
1436
- const te = X("tableCellStyle", {
1437
- label: "Table cell style",
1438
- optionLabel: (a) => a
1439
- });
1440
- w(te, "Bold");
1441
- w(te, "Italic");
1442
- w(te, "Positive vs Negative");
1443
- const mt = {
1444
- name: "number",
1445
- type: "number",
1446
- label: "Number"
1447
- }, yt = {
1448
- name: "string",
1449
- type: "string",
1450
- label: "String"
1451
- }, bt = {
1452
- name: "boolean",
1453
- type: "boolean",
1454
- label: "Boolean"
1455
- }, xt = {
1456
- name: "timeRange",
1457
- type: "timeRange",
1458
- label: "Time range"
1459
- }, St = {
1460
- name: "width",
1461
- type: "number",
1462
- label: "Width",
1463
- description: "You can input a number in pixels e.g. 400"
1464
- }, Ot = { name: "align", type: ee, label: "Align" }, se = { name: "prefix", type: "string", label: "Prefix" }, ie = { name: "suffix", type: "string", label: "Suffix" }, ne = {
1465
- name: "displayName",
1466
- type: "string",
1467
- label: "Display name"
1468
- }, ae = {
1469
- name: "maxCharacters",
1470
- type: "number",
1471
- label: "Maximum characters",
1472
- description: void 0,
1473
- supportedTypes: ["string"]
1474
- }, re = {
1475
- name: "decimalPlaces",
1476
- type: "number",
1477
- label: "Decimal places",
1478
- supportedTypes: ["number"]
1479
- }, oe = {
1480
- name: "currency",
1481
- type: "string",
1482
- label: "Currency",
1483
- description: "e.g. EUR",
1484
- supportedTypes: ["number"]
1485
- }, le = {
1486
- name: "abbreviateLargeNumber",
1487
- type: "boolean",
1488
- label: "Abbreviate large number",
1489
- supportedTypes: ["number"]
1490
- }, ge = {
1491
- name: "dateBounds",
1492
- type: "timeRange",
1493
- label: "Date bounds",
1494
- description: "Set the date range for the axis",
1495
- supportedTypes: ["time"]
1496
- }, me = {
1497
- name: "granularity",
1498
- type: "granularity",
1499
- label: "Granularity",
1500
- supportedTypes: ["time"],
1501
- defaultValue: y.day
1502
- }, Lt = {
1503
- type: Ae,
1504
- name: "color",
1505
- label: "Color"
1506
- }, Ct = {
1507
- name: "granularities",
1508
- type: "granularity",
1509
- label: "Granularities",
1510
- supportedTypes: ["time"],
1511
- array: !0,
1512
- // Ignore seconds and minutes
1513
- defaultValue: [
1514
- y.hour,
1515
- y.day,
1516
- y.week,
1517
- y.month,
1518
- y.quarter,
1519
- y.year
1520
- ]
1521
- }, wt = {
1522
- type: pe,
1523
- name: "displayFormat",
1524
- label: "Display format"
1525
- }, vt = {
1526
- type: te,
1527
- name: "tableCellStyle",
1528
- label: "Table cell style"
1529
- }, Me = {
1530
- type: "boolean",
1531
- name: "showGranularityDropdown",
1532
- label: "Show granularity dropdown",
1533
- description: "Display a granularity selector inside the chart. The Granularity input above is used only as the default when this option is enabled.",
1534
- supportedTypes: ["time"],
1535
- defaultValue: !1
1536
- }, E = [
1537
- se,
1538
- ie,
1539
- ne,
1540
- ae,
1541
- re,
1542
- oe,
1543
- le
1544
- ], Rt = [
1545
- se,
1546
- ie,
1547
- ne,
1548
- ae,
1549
- re,
1550
- oe,
1551
- le,
1552
- me,
1553
- ge
1554
- ], Pt = [
1555
- se,
1556
- ie,
1557
- ne,
1558
- ae,
1559
- re,
1560
- oe,
1561
- le,
1562
- me,
1563
- Me,
1564
- // Not required for now - defaults to day, week, month, quarter, year
1565
- // granularities,
1566
- {
1567
- ...ge,
1568
- description: "Set a date range or connect your primary date-range variable to define the x-axis min and max. If “Show granularity dropdown” is enabled, this also enables auto-selection of the most appropriate granularity"
1569
- }
1570
- ], Ke = {
1571
- boolean: bt,
1572
- timeRange: xt,
1573
- number: mt,
1574
- string: yt,
1575
- width: St,
1576
- align: Ot,
1577
- prefix: se,
1578
- suffix: ie,
1579
- displayName: ne,
1580
- maxCharacters: ae,
1581
- decimalPlaces: re,
1582
- currency: oe,
1583
- abbreviateLargeNumber: le,
1584
- dateBounds: ge,
1585
- granularity: me,
1586
- granularities: Ct,
1587
- color: Lt,
1588
- displayFormat: wt,
1589
- tableCellStyle: vt,
1590
- showGranularityDropdown: Me
1591
- }, V = X("comparisonPeriod", {
1592
- label: "Comparison period",
1593
- optionLabel: (a) => a
1594
- });
1595
- w(V, "Previous period");
1596
- w(V, "Previous week");
1597
- w(V, "Previous month");
1598
- w(V, "Previous quarter");
1599
- w(V, "Previous year");
1600
- const $t = {
1601
- name: "boolean",
1602
- type: "boolean",
1603
- label: "Boolean"
1604
- }, Nt = {
1605
- name: "timeRange",
1606
- type: "timeRange",
1607
- label: "Time range"
1608
- }, kt = {
1609
- name: "number",
1610
- type: "number",
1611
- label: "Number"
1612
- }, He = {
1613
- name: "string",
1614
- type: "string",
1615
- label: "String"
1616
- }, Dt = {
1617
- name: "title",
1618
- type: "string",
1619
- label: "Title",
1620
- category: "Component Header"
1621
- }, Ft = {
1622
- name: "description",
1623
- type: "string",
1624
- label: "Description",
1625
- category: "Component Header"
1626
- }, Tt = {
1627
- name: "tooltip",
1628
- type: "string",
1629
- label: "Tooltip",
1630
- category: "Component Header"
1631
- }, At = {
1632
- name: "dataset",
1633
- type: "dataset",
1634
- label: "Dataset",
1635
- required: !0,
1636
- category: "Component Data"
1637
- }, jt = {
1638
- name: "maxLegendItems",
1639
- type: "number",
1640
- label: "Max legend items",
1641
- defaultValue: 10,
1642
- category: "Component Data"
1643
- }, Ue = {
1644
- name: "dimension",
1645
- type: "dimension",
1646
- label: "Dimension",
1647
- config: {
1648
- dataset: "dataset"
1649
- },
1650
- required: !0,
1651
- category: "Component Data",
1652
- inputs: E
1653
- }, It = {
1654
- ...Ue,
1655
- name: "groupBy",
1656
- label: "Group by"
1657
- }, Et = {
1658
- name: "granularity",
1659
- type: "granularity",
1660
- label: "Granularity"
1661
- }, Vt = {
1662
- name: "granularities",
1663
- type: "granularity",
1664
- label: "Granularities",
1665
- array: !0,
1666
- // Ignore seconds and minutes
1667
- defaultValue: [
1668
- y.hour,
1669
- y.day,
1670
- y.week,
1671
- y.month,
1672
- y.quarter,
1673
- y.year
1674
- ]
1675
- }, Mt = {
1676
- name: "dimensionSimple",
1677
- type: "dimension",
1678
- label: "Dimension",
1679
- config: {
1680
- dataset: "dataset",
1681
- hideGranularity: !0
1682
- },
1683
- required: !0,
1684
- category: "Component Data"
1685
- }, Kt = {
1686
- name: "dimensionTime",
1687
- type: "dimension",
1688
- label: "Dimension time",
1689
- config: {
1690
- dataset: "dataset",
1691
- supportedTypes: ["time"],
1692
- hideGranularity: !0
1693
- },
1694
- required: !0,
1695
- category: "Component Data"
1696
- }, Ht = {
1697
- name: "dimension",
1698
- type: "dimension",
1699
- label: "Dimension",
1700
- config: {
1701
- dataset: "dataset"
1702
- },
1703
- required: !0,
1704
- category: "Component Data",
1705
- inputs: Rt
1706
- }, Ut = {
1707
- name: "dimension",
1708
- type: "dimension",
1709
- label: "Dimension",
1710
- config: {
1711
- dataset: "dataset"
1712
- },
1713
- required: !0,
1714
- category: "Component Data",
1715
- inputs: Pt
1716
- }, ze = {
1717
- name: "dimensions",
1718
- type: "dimension",
1719
- label: "Dimensions",
1720
- config: {
1721
- dataset: "dataset"
1722
- },
1723
- array: !0,
1724
- required: !0,
1725
- category: "Component Data",
1726
- inputs: E
1727
- }, zt = {
1728
- name: "dimensionOrMeasure",
1729
- type: "dimensionOrMeasure",
1730
- label: "Dimension or measure",
1731
- config: {
1732
- dataset: "dataset"
1733
- },
1734
- category: "Component Data",
1735
- inputs: E
1736
- }, Bt = {
1737
- name: "dimensionsAndMeasures",
1738
- type: "dimensionOrMeasure",
1739
- label: "Dimensions and measures",
1740
- array: !0,
1741
- required: !0,
1742
- config: {
1743
- dataset: "dataset"
1744
- },
1745
- category: "Component Data",
1746
- inputs: E
1747
- }, Jt = {
1748
- name: "measure",
1749
- type: "measure",
1750
- label: "Measure",
1751
- config: {
1752
- dataset: "dataset"
1753
- },
1754
- required: !0,
1755
- category: "Component Data",
1756
- inputs: E
1757
- }, Be = {
1758
- name: "measures",
1759
- type: "measure",
1760
- label: "Measures",
1761
- array: !0,
1762
- config: {
1763
- dataset: "dataset"
1764
- },
1765
- required: !0,
1766
- category: "Component Data",
1767
- inputs: E
1768
- }, Gt = {
1769
- ...Be,
1770
- name: "measureOptions",
1771
- label: "Measure options",
1772
- inputs: [Ke.displayName]
1773
- }, qt = {
1774
- ...ze,
1775
- name: "dimensionOptions",
1776
- label: "Dimension options",
1777
- inputs: [Ke.displayName]
1778
- }, Wt = {
1779
- name: "comparisonPeriod",
1780
- type: V,
1781
- label: "Comparison period",
1782
- category: "Component data"
1783
- }, Yt = {
1784
- name: "maxResults",
1785
- type: "number",
1786
- label: "Max results",
1787
- category: "Component Settings",
1788
- defaultValue: 1e3
1789
- }, _t = {
1790
- name: "placeholder",
1791
- type: "string",
1792
- label: "Placeholder",
1793
- category: "Component Settings"
1794
- }, Qt = {
1795
- name: "showLegend",
1796
- type: "boolean",
1797
- label: "Show legend",
1798
- defaultValue: !0,
1799
- category: "Component Settings"
1800
- }, Xt = {
1801
- name: "showTooltips",
1802
- type: "boolean",
1803
- label: "Show tooltips",
1804
- defaultValue: !0,
1805
- category: "Component Settings"
1806
- }, Zt = {
1807
- name: "showValueLabels",
1808
- type: "boolean",
1809
- label: "Show value labels",
1810
- defaultValue: !0,
1811
- category: "Component Settings"
1812
- }, es = {
1813
- name: "showTotalLabels",
1814
- type: "boolean",
1815
- label: "Show total labels",
1816
- defaultValue: !1,
1817
- category: "Component Settings"
1818
- }, ts = {
1819
- name: "showLogarithmicScale",
1820
- type: "boolean",
1821
- label: "Show logarithmic scale",
1822
- defaultValue: !1,
1823
- category: "Component Settings"
1824
- }, ss = {
1825
- name: "displayPercentages",
1826
- type: "boolean",
1827
- label: "Display percentages",
1828
- defaultValue: !1,
1829
- category: "Component Settings"
1830
- }, is = {
1831
- type: Ae,
1832
- name: "color",
1833
- label: "Color",
1834
- category: "Component Settings"
1835
- }, ns = {
1836
- type: "number",
1837
- name: "fontSize",
1838
- label: "Font size",
1839
- category: "Component Settings"
1840
- }, as = {
1841
- type: "boolean",
1842
- name: "clearable",
1843
- label: "Can be cleared",
1844
- defaultValue: !0,
1845
- category: "Component Settings"
1846
- }, rs = {
1847
- ...He,
1848
- name: "displayNullAs",
1849
- label: "Display null as",
1850
- category: "Component Settings"
1851
- }, os = {
1852
- name: "xAxisLabel",
1853
- type: "string",
1854
- label: "X-axis Label",
1855
- category: "Axes Settings"
1856
- }, ls = {
1857
- name: "yAxisLabel",
1858
- type: "string",
1859
- label: "Y-axis label",
1860
- category: "Axes Settings"
1861
- }, us = {
1862
- name: "reverseXAxis",
1863
- type: "boolean",
1864
- label: "Reverse x-axis",
1865
- defaultValue: !1,
1866
- category: "Axes Settings"
1867
- }, cs = {
1868
- name: "reverseYAxis",
1869
- type: "boolean",
1870
- label: "Reverse y-axis",
1871
- defaultValue: !1,
1872
- category: "Axes Settings"
1873
- }, fs = {
1874
- name: "yAxisRangeMin",
1875
- type: "number",
1876
- label: "Y-axis range min",
1877
- category: "Axes Settings"
1878
- }, ds = {
1879
- name: "yAxisRangeMax",
1880
- type: "number",
1881
- label: "Y-axis range max",
1882
- category: "Axes Settings"
1883
- }, hs = {
1884
- name: "xAxisRangeMin",
1885
- type: "number",
1886
- label: "X-axis range min",
1887
- category: "Axes Settings"
1888
- }, ps = {
1889
- name: "xAxisRangeMax",
1890
- type: "number",
1891
- label: "X-axis range max",
1892
- category: "Axes Settings"
1893
- }, gs = {
1894
- name: "xAxisMaxItems",
1895
- type: "number",
1896
- label: "Max x-axis items",
1897
- category: "Axes Settings"
1898
- }, ms = {
1899
- name: "yAxisMaxItems",
1900
- type: "number",
1901
- label: "Max y-axis items",
1902
- category: "Axes Settings"
1903
- }, Cs = {
1904
- boolean: $t,
1905
- timeRange: Nt,
1906
- number: kt,
1907
- string: He,
1908
- title: Dt,
1909
- description: Ft,
1910
- tooltip: Tt,
1911
- dataset: At,
1912
- maxLegendItems: jt,
1913
- dimension: Ue,
1914
- groupBy: It,
1915
- dimensionSimple: Mt,
1916
- dimensionTime: Kt,
1917
- dimensionWithDateBounds: Ht,
1918
- dimensionWithGranularitySelectField: Ut,
1919
- dimensions: ze,
1920
- dimensionOrMeasure: zt,
1921
- dimensionsAndMeasures: Bt,
1922
- measure: Jt,
1923
- measures: Be,
1924
- measureOptions: Gt,
1925
- dimensionOptions: qt,
1926
- comparisonPeriod: Wt,
1927
- maxResults: Yt,
1928
- placeholder: _t,
1929
- showLegend: Qt,
1930
- showTooltips: Xt,
1931
- showValueLabels: Zt,
1932
- showTotalLabels: es,
1933
- showLogarithmicScale: ts,
1934
- displayPercentages: ss,
1935
- color: is,
1936
- fontSize: ns,
1937
- clearable: as,
1938
- displayNullAs: rs,
1939
- xAxisLabel: os,
1940
- yAxisLabel: ls,
1941
- reverseXAxis: us,
1942
- reverseYAxis: cs,
1943
- yAxisRangeMin: fs,
1944
- yAxisRangeMax: ds,
1945
- xAxisRangeMin: hs,
1946
- xAxisRangeMax: ps,
1947
- xAxisMaxItems: gs,
1948
- yAxisMaxItems: ms,
1949
- granularity: Et,
1950
- granularities: Vt
1951
1404
  };
1952
1405
  export {
1953
- V as C,
1954
- Ve as D,
1955
- y as G,
1956
- xs as I,
1957
- E as a,
1958
- bs as b,
1959
- Cs as c,
1960
- Os as d,
1961
- gt as e,
1962
- Pt as f,
1963
- Ls as g,
1964
- b as i,
1965
- Ss as r,
1966
- Ke as s,
1967
- Rt as t
1406
+ Ye as I,
1407
+ We as a,
1408
+ Je as b,
1409
+ x as i,
1410
+ Ge as r
1968
1411
  };
1969
- //# sourceMappingURL=component.inputs.constants-Cj-atN8w.js.map
1412
+ //# sourceMappingURL=component.utils-DIYAoUYH.js.map