@embeddable.com/remarkable-pro 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/dist/BarChartDefaultHorizontalPro.js +30 -31
  2. package/dist/BarChartDefaultHorizontalPro.js.map +1 -1
  3. package/dist/BarChartDefaultPro.js +22 -23
  4. package/dist/BarChartDefaultPro.js.map +1 -1
  5. package/dist/BarChartGroupedHorizontalPro.js +24 -25
  6. package/dist/BarChartGroupedHorizontalPro.js.map +1 -1
  7. package/dist/BarChartGroupedPro.js +31 -32
  8. package/dist/BarChartGroupedPro.js.map +1 -1
  9. package/dist/BarChartStackedHorizontalPro.js +28 -29
  10. package/dist/BarChartStackedHorizontalPro.js.map +1 -1
  11. package/dist/BarChartStackedPro.js +35 -36
  12. package/dist/BarChartStackedPro.js.map +1 -1
  13. package/dist/ChartCard-CsKQOusx.js +124 -0
  14. package/dist/ChartCard-CsKQOusx.js.map +1 -0
  15. package/dist/{Color.type.emb-BaH90Spr.js → Color.type.emb-9H0O-uuD.js} +2 -2
  16. package/dist/{Color.type.emb-BaH90Spr.js.map → Color.type.emb-9H0O-uuD.js.map} +1 -1
  17. package/dist/ColorEditor.js +16 -22
  18. package/dist/ColorEditor.js.map +1 -1
  19. package/dist/{ComparisonPeriod.type.emb-BhZKPqEG.js → ComparisonPeriod.type.emb-C3XjaFoD.js} +2 -2
  20. package/dist/{ComparisonPeriod.type.emb-BhZKPqEG.js.map → ComparisonPeriod.type.emb-C3XjaFoD.js.map} +1 -1
  21. package/dist/ComparisonPeriodSelectFieldPro.js +5 -5
  22. package/dist/ComparisonPeriodSelectFieldPro.js.map +1 -1
  23. package/dist/DateRangeSelectFieldPro.js +3 -3
  24. package/dist/DonutChartPro.js +3 -3
  25. package/dist/DonutLabelChartPro.js +3 -3
  26. package/dist/{EditorCard-VYZUBvXV.js → EditorCard-BMEwnQuU.js} +3 -3
  27. package/dist/EditorCard-BMEwnQuU.js.map +1 -0
  28. package/dist/HeatMapPro.js +6 -6
  29. package/dist/HeatMapPro.js.map +1 -1
  30. package/dist/KpiChartNumberComparisonPro.js +6 -6
  31. package/dist/KpiChartNumberComparisonPro.js.map +1 -1
  32. package/dist/KpiChartNumberPro.js +4 -4
  33. package/dist/KpiChartNumberPro.js.map +1 -1
  34. package/dist/LineChartComparisonDefaultPro.js +20 -21
  35. package/dist/LineChartComparisonDefaultPro.js.map +1 -1
  36. package/dist/LineChartDefaultPro.js +23 -24
  37. package/dist/LineChartDefaultPro.js.map +1 -1
  38. package/dist/LineChartGroupedPro.js +33 -34
  39. package/dist/LineChartGroupedPro.js.map +1 -1
  40. package/dist/MultiSelectFieldPro.js +3 -3
  41. package/dist/PieChartPro.js +3 -3
  42. package/dist/PivotTablePro.js +5 -5
  43. package/dist/PivotTablePro.js.map +1 -1
  44. package/dist/SingleSelectFieldPro.js +3 -3
  45. package/dist/TableChartPaginated.js +24 -25
  46. package/dist/TableChartPaginated.js.map +1 -1
  47. package/dist/{ar-Csxpn9Sb.js → ar-Crg6bIiJ.js} +16 -16
  48. package/dist/ar-Crg6bIiJ.js.map +1 -0
  49. package/dist/{bars.utils-CPKeOYHg.js → bars.utils-BU_k5fia.js} +4 -4
  50. package/dist/bars.utils-BU_k5fia.js.map +1 -0
  51. package/dist/be-cv77rX62.js +57 -0
  52. package/dist/be-cv77rX62.js.map +1 -0
  53. package/dist/{charts.fillGaps.hooks-5WclK2CD.js → charts.fillGaps.hooks-YayOXVmt.js} +13 -13
  54. package/dist/{charts.fillGaps.hooks-5WclK2CD.js.map → charts.fillGaps.hooks-YayOXVmt.js.map} +1 -1
  55. package/dist/{charts.utils-QVS79CrC.js → charts.utils-rO92wRxO.js} +6 -6
  56. package/dist/charts.utils-rO92wRxO.js.map +1 -0
  57. package/dist/color.utils-BSg_DFOh.js +1645 -0
  58. package/dist/color.utils-BSg_DFOh.js.map +1 -0
  59. package/dist/{component.constants-DZwEQb2v.js → component.constants-uP1WYyUb.js} +83 -83
  60. package/dist/component.constants-uP1WYyUb.js.map +1 -0
  61. package/dist/components/charts/tables/HeatMapPro/index.d.ts +1 -1
  62. package/dist/components/charts/tables/HeatMapPro/index.d.ts.map +1 -1
  63. package/dist/components/charts/tables/PivotTablePro/PivotPro.utils.d.ts +1 -1
  64. package/dist/components/charts/tables/PivotTablePro/PivotPro.utils.d.ts.map +1 -1
  65. package/dist/components/charts/tables/tables.utils.d.ts +1 -1
  66. package/dist/components/charts/tables/tables.utils.d.ts.map +1 -1
  67. package/dist/components/editors/ComparisonPeriodSelectFieldPro/ComparisonPeriodSelectFieldPro.utils.d.ts +1 -1
  68. package/dist/components/editors/ComparisonPeriodSelectFieldPro/ComparisonPeriodSelectFieldPro.utils.d.ts.map +1 -1
  69. package/dist/components/editors/DateRangeSelectFieldPro/DateRangeSelectFieldPro.utils.d.ts +1 -1
  70. package/dist/components/editors/DateRangeSelectFieldPro/DateRangeSelectFieldPro.utils.d.ts.map +1 -1
  71. package/dist/{editors.timeRange.utils-D9m6B3r1.js → editors.timeRange.utils-DTtRGaCo.js} +4 -4
  72. package/dist/{editors.timeRange.utils-D9m6B3r1.js.map → editors.timeRange.utils-DTtRGaCo.js.map} +1 -1
  73. package/dist/embeddable-components.json +15 -15
  74. package/dist/{embeddable-theme-4271d.js → embeddable-theme-0137e.js} +527 -527
  75. package/dist/{formatter.utils-BbPzfaw8.js → formatter.utils-CeEdL8uQ.js} +2 -2
  76. package/dist/{formatter.utils-BbPzfaw8.js.map → formatter.utils-CeEdL8uQ.js.map} +1 -1
  77. package/dist/globalHooks.json +1 -1
  78. package/dist/{index-DqkDSVr0.js → index-B8bT85NR.js} +20 -21
  79. package/dist/index-B8bT85NR.js.map +1 -0
  80. package/dist/{index-BcSuns5b.js → index-BWpUwKTH.js} +5 -5
  81. package/dist/index-BWpUwKTH.js.map +1 -0
  82. package/dist/index-Brb617sy.js +62 -0
  83. package/dist/index-Brb617sy.js.map +1 -0
  84. package/dist/{index-CJMug46v.js → index-DLFOG9Ar.js} +19 -20
  85. package/dist/index-DLFOG9Ar.js.map +1 -0
  86. package/dist/{index-BpXo_FjW.js → index-DedIqjbn.js} +12581 -12636
  87. package/dist/index-DedIqjbn.js.map +1 -0
  88. package/dist/{index-B3N7aoDJ.js → index-DrosyYQD.js} +13 -13
  89. package/dist/index-DrosyYQD.js.map +1 -0
  90. package/dist/{index-CxXN32qg.js → index-Dwl9clc9.js} +5 -5
  91. package/dist/index-Dwl9clc9.js.map +1 -0
  92. package/dist/index.js +14 -14
  93. package/dist/{it-CA9ooIqN.js → it-BaO88QsF.js} +2 -2
  94. package/dist/it-BaO88QsF.js.map +1 -0
  95. package/dist/{pies.utils-DbzeVrCQ.js → pies.utils-Dap7Duqb.js} +5 -5
  96. package/dist/pies.utils-Dap7Duqb.js.map +1 -0
  97. package/dist/{quarterOfYear-C0maIilJ.js → quarterOfYear-wgcl4CRi.js} +5 -5
  98. package/dist/{quarterOfYear-C0maIilJ.js.map → quarterOfYear-wgcl4CRi.js.map} +1 -1
  99. package/dist/remarkable-pro.css +1 -1
  100. package/dist/theme/styles/styles.constants.d.ts +1 -1
  101. package/dist/theme/styles/styles.constants.d.ts.map +1 -1
  102. package/dist/theme/styles/styles.types.d.ts +1 -1
  103. package/dist/theme/styles/styles.types.d.ts.map +1 -1
  104. package/dist/{timeRange.utils-B3BJBCvs.js → timeRange.utils-J3a4XL64.js} +2 -2
  105. package/dist/{timeRange.utils-B3BJBCvs.js.map → timeRange.utils-J3a4XL64.js.map} +1 -1
  106. package/package.json +2 -2
  107. package/dist/ChartCard-BaCPgMtI.js +0 -145
  108. package/dist/ChartCard-BaCPgMtI.js.map +0 -1
  109. package/dist/EditorCard-VYZUBvXV.js.map +0 -1
  110. package/dist/ar-Csxpn9Sb.js.map +0 -1
  111. package/dist/bars.utils-CPKeOYHg.js.map +0 -1
  112. package/dist/be-DcRqzG_0.js +0 -42
  113. package/dist/be-DcRqzG_0.js.map +0 -1
  114. package/dist/charts.utils-QVS79CrC.js.map +0 -1
  115. package/dist/color.utils-CVyp-fGP.js +0 -1645
  116. package/dist/color.utils-CVyp-fGP.js.map +0 -1
  117. package/dist/component.constants-DZwEQb2v.js.map +0 -1
  118. package/dist/index-B3N7aoDJ.js.map +0 -1
  119. package/dist/index-BcSuns5b.js.map +0 -1
  120. package/dist/index-BpXo_FjW.js.map +0 -1
  121. package/dist/index-CJMug46v.js.map +0 -1
  122. package/dist/index-CPSyJe2a.js +0 -63
  123. package/dist/index-CPSyJe2a.js.map +0 -1
  124. package/dist/index-CxXN32qg.js.map +0 -1
  125. package/dist/index-DqkDSVr0.js.map +0 -1
  126. package/dist/it-CA9ooIqN.js.map +0 -1
  127. package/dist/mergician.esm-CIFzMAK7.js +0 -395
  128. package/dist/mergician.esm-CIFzMAK7.js.map +0 -1
  129. package/dist/pies.utils-DbzeVrCQ.js.map +0 -1
@@ -1,15 +1,15 @@
1
- import { r as ke, d as Ae, b as te } from "./index-BpXo_FjW.js";
1
+ import { s as Ae, d as De, b as te } from "./index-DedIqjbn.js";
2
2
  const g = (r) => typeof r == "string", M = () => {
3
3
  let r, e;
4
4
  const t = new Promise((i, s) => {
5
5
  r = i, e = s;
6
6
  });
7
7
  return t.resolve = r, t.reject = e, t;
8
- }, re = (r) => r == null ? "" : "" + r, De = (r, e, t) => {
8
+ }, re = (r) => r == null ? "" : "" + r, Te = (r, e, t) => {
9
9
  r.forEach((i) => {
10
10
  e[i] && (t[i] = e[i]);
11
11
  });
12
- }, Te = /###/g, oe = (r) => r && r.indexOf("###") > -1 ? r.replace(Te, ".") : r, le = (r) => !r || g(r), K = (r, e, t) => {
12
+ }, Fe = /###/g, oe = (r) => r && r.indexOf("###") > -1 ? r.replace(Fe, ".") : r, le = (r) => !r || g(r), K = (r, e, t) => {
13
13
  const i = g(e) ? e.split(".") : e;
14
14
  let s = 0;
15
15
  for (; s < i.length - 1; ) {
@@ -34,7 +34,7 @@ const g = (r) => typeof r == "string", M = () => {
34
34
  for (; o.obj === void 0 && a.length; )
35
35
  n = `${a[a.length - 1]}.${n}`, a = a.slice(0, a.length - 1), o = K(r, a, 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
- }, Fe = (r, e, t, i) => {
37
+ }, je = (r, e, t, i) => {
38
38
  const {
39
39
  obj: s,
40
40
  k: n
@@ -47,15 +47,15 @@ const g = (r) => typeof r == "string", M = () => {
47
47
  } = K(r, e);
48
48
  if (t && Object.prototype.hasOwnProperty.call(t, i))
49
49
  return t[i];
50
- }, je = (r, e, t) => {
50
+ }, Ee = (r, e, t) => {
51
51
  const i = Y(r, t);
52
52
  return i !== void 0 ? i : Y(e, t);
53
- }, be = (r, e, t) => {
53
+ }, Se = (r, e, t) => {
54
54
  for (const i in e)
55
- i !== "__proto__" && i !== "constructor" && (i in r ? g(r[i]) || r[i] instanceof String || g(e[i]) || e[i] instanceof String ? t && (r[i] = e[i]) : be(r[i], e[i], t) : r[i] = e[i]);
55
+ i !== "__proto__" && i !== "constructor" && (i in r ? g(r[i]) || r[i] instanceof String || g(e[i]) || e[i] instanceof String ? t && (r[i] = e[i]) : Se(r[i], e[i], t) : r[i] = e[i]);
56
56
  return r;
57
57
  }, T = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
58
- var Ee = {
58
+ var Ve = {
59
59
  "&": "&amp;",
60
60
  "<": "&lt;",
61
61
  ">": "&gt;",
@@ -63,8 +63,8 @@ var Ee = {
63
63
  "'": "&#39;",
64
64
  "/": "&#x2F;"
65
65
  };
66
- const Ve = (r) => g(r) ? r.replace(/[&<>"'\/]/g, (e) => Ee[e]) : r;
67
- class Me {
66
+ const Me = (r) => g(r) ? r.replace(/[&<>"'\/]/g, (e) => Ve[e]) : r;
67
+ class Ke {
68
68
  constructor(e) {
69
69
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
70
70
  }
@@ -76,11 +76,11 @@ class Me {
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 Ke = [" ", ",", "?", "!", ";"], Ue = new Me(20), He = (r, e, t) => {
79
+ const Ue = [" ", ",", "?", "!", ";"], He = new Ke(20), Be = (r, e, t) => {
80
80
  e = e || "", t = t || "";
81
- const i = Ke.filter((a) => e.indexOf(a) < 0 && t.indexOf(a) < 0);
81
+ const i = Ue.filter((a) => e.indexOf(a) < 0 && t.indexOf(a) < 0);
82
82
  if (i.length === 0) return !0;
83
- const s = Ue.getRegExp(`(${i.map((a) => a === "?" ? "\\?" : a).join("|")})`);
83
+ const s = He.getRegExp(`(${i.map((a) => a === "?" ? "\\?" : a).join("|")})`);
84
84
  let n = !s.test(r);
85
85
  if (!n) {
86
86
  const a = r.indexOf(t);
@@ -107,7 +107,7 @@ const Ke = [" ", ",", "?", "!", ";"], Ue = new Me(20), He = (r, e, t) => {
107
107
  s = a;
108
108
  }
109
109
  return s;
110
- }, U = (r) => r == null ? void 0 : r.replace("_", "-"), Be = {
110
+ }, H = (r) => r == null ? void 0 : r.replace("_", "-"), ze = {
111
111
  type: "logger",
112
112
  log(r) {
113
113
  this.output("log", r);
@@ -128,7 +128,7 @@ class W {
128
128
  this.init(e, t);
129
129
  }
130
130
  init(e, t = {}) {
131
- this.prefix = t.prefix || "i18next:", this.logger = e || Be, this.options = t, this.debug = t.debug;
131
+ this.prefix = t.prefix || "i18next:", this.logger = e || ze, this.options = t, this.debug = t.debug;
132
132
  }
133
133
  log(...e) {
134
134
  return this.forward(e, "log", "", !0);
@@ -156,7 +156,7 @@ class W {
156
156
  }
157
157
  }
158
158
  var $ = new W();
159
- class G {
159
+ class _ {
160
160
  constructor() {
161
161
  this.observers = {};
162
162
  }
@@ -186,7 +186,7 @@ class G {
186
186
  });
187
187
  }
188
188
  }
189
- class ce extends G {
189
+ class ce extends _ {
190
190
  constructor(e, t = {
191
191
  ns: ["translation"],
192
192
  defaultNS: "translation"
@@ -231,7 +231,7 @@ class ce extends G {
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
233
  let u = Y(this.data, o) || {};
234
- a.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? be(u, i, n) : u = {
234
+ a.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? Se(u, i, n) : u = {
235
235
  ...u,
236
236
  ...i
237
237
  }, ue(this.data, o, u), a.silent || this.emit("added", e, t, i);
@@ -256,7 +256,7 @@ class ce extends G {
256
256
  return this.data;
257
257
  }
258
258
  }
259
- var Se = {
259
+ var Le = {
260
260
  processors: {},
261
261
  addPostProcessor(r) {
262
262
  this.processors[r.name] = r;
@@ -268,25 +268,25 @@ var Se = {
268
268
  }), e;
269
269
  }
270
270
  };
271
- const Le = Symbol("i18next/PATH_KEY");
272
- function ze() {
271
+ const Oe = Symbol("i18next/PATH_KEY");
272
+ function Je() {
273
273
  const r = [], 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 === Le ? r : (r.push(s), t = Proxy.revocable(i, e), t.proxy);
277
+ return (n = t == null ? void 0 : t.revoke) == null || n.call(t), s === Oe ? r : (r.push(s), t = Proxy.revocable(i, e), t.proxy);
278
278
  }, Proxy.revocable(/* @__PURE__ */ Object.create(null), e).proxy;
279
279
  }
280
280
  function ee(r, e) {
281
281
  const {
282
- [Le]: t
283
- } = r(ze());
282
+ [Oe]: t
283
+ } = r(Je());
284
284
  return t.join((e == null ? void 0 : e.keySeparator) ?? ".");
285
285
  }
286
286
  const fe = {}, X = (r) => !g(r) && typeof r != "boolean" && typeof r != "number";
287
- class _ extends G {
287
+ class G extends _ {
288
288
  constructor(e, t = {}) {
289
- super(), De(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = $.create("translator");
289
+ super(), Te(["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);
@@ -308,7 +308,7 @@ class _ extends G {
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 a = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !He(e, i, s);
311
+ const a = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Be(e, i, s);
312
312
  if (a && !o) {
313
313
  const u = e.match(this.interpolator.nestingRegexp);
314
314
  if (u && u.length > 0)
@@ -360,13 +360,13 @@ class _ extends G {
360
360
  } : o;
361
361
  const d = this.resolve(e, s);
362
362
  let h = d == null ? void 0 : d.res;
363
- const m = (d == null ? void 0 : d.usedKey) || o, x = (d == null ? void 0 : d.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], C = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, A = !this.i18nFormat || this.i18nFormat.handleAsObject, S = s.count !== void 0 && !g(s.count), N = _.hasDefaultValue(s), B = S ? this.pluralResolver.getSuffix(c, s.count, s) : "", I = s.ordinal && S ? this.pluralResolver.getSuffix(c, s.count, {
363
+ const m = (d == null ? void 0 : d.usedKey) || o, x = (d == null ? void 0 : d.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], C = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, A = !this.i18nFormat || this.i18nFormat.handleAsObject, S = s.count !== void 0 && !g(s.count), N = G.hasDefaultValue(s), B = S ? this.pluralResolver.getSuffix(c, s.count, s) : "", I = s.ordinal && S ? this.pluralResolver.getSuffix(c, s.count, {
364
364
  ordinal: !1
365
365
  }) : "", j = S && !s.ordinal && s.count === 0, L = j && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${B}`] || s[`defaultValue${I}`] || s.defaultValue;
366
366
  let b = h;
367
367
  A && !h && N && (b = L);
368
- const Ne = X(b), Ie = Object.prototype.toString.apply(b);
369
- if (A && b && Ne && w.indexOf(Ie) < 0 && !(g(C) && Array.isArray(b))) {
368
+ const Ie = X(b), ke = Object.prototype.toString.apply(b);
369
+ if (A && b && Ie && w.indexOf(ke) < 0 && !(g(C) && Array.isArray(b))) {
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
372
  const v = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(m, b, {
@@ -463,7 +463,7 @@ class _ extends G {
463
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 a = i.postProcess || this.options.postProcess, o = g(a) ? [a] : a;
466
- return e != null && (o != null && o.length) && i.applyPostProcessor !== !1 && (e = Se.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
466
+ return e != null && (o != null && o.length) && i.applyPostProcessor !== !1 && (e = Le.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
467
467
  i18nResolved: {
468
468
  ...s,
469
469
  usedParams: this.getUsedParamsDetails(i)
@@ -546,12 +546,12 @@ class he {
546
546
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = $.create("languageUtils");
547
547
  }
548
548
  getScriptPartFromCode(e) {
549
- if (e = U(e), !e || e.indexOf("-") < 0) return null;
549
+ if (e = H(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 = U(e), !e || e.indexOf("-") < 0) return e;
554
+ if (e = H(e), !e || e.indexOf("-") < 0) return e;
555
555
  const t = e.split("-");
556
556
  return this.formatLanguageCode(t[0]);
557
557
  }
@@ -618,7 +618,7 @@ const de = {
618
618
  pluralCategories: ["one", "other"]
619
619
  })
620
620
  };
621
- class Je {
621
+ class Ye {
622
622
  constructor(e, t = {}) {
623
623
  this.languageUtils = e, this.options = t, this.logger = $.create("pluralResolver"), this.pluralRulesCache = {};
624
624
  }
@@ -629,7 +629,7 @@ class Je {
629
629
  this.pluralRulesCache = {};
630
630
  }
631
631
  getRule(e, t = {}) {
632
- const i = U(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", n = JSON.stringify({
632
+ const i = H(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", n = JSON.stringify({
633
633
  cleanedCode: i,
634
634
  type: s
635
635
  });
@@ -666,10 +666,10 @@ class Je {
666
666
  }
667
667
  }
668
668
  const pe = (r, e, t, i = ".", s = !0) => {
669
- let n = je(r, e, t);
669
+ let n = Ee(r, e, t);
670
670
  return !n && s && g(t) && (n = Z(r, t, i), n === void 0 && (n = Z(e, t, i))), n;
671
671
  }, Q = (r) => r.replace(/\$/g, "$$$$");
672
- class Ye {
672
+ class me {
673
673
  constructor(e = {}) {
674
674
  var t;
675
675
  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);
@@ -697,7 +697,7 @@ class Ye {
697
697
  maxReplaces: w,
698
698
  alwaysFormat: C
699
699
  } = e.interpolation;
700
- this.escape = t !== void 0 ? t : Ve, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = n ? T(n) : a || "{{", this.suffix = o ? T(o) : u || "}}", this.formatSeparator = l || ",", this.unescapePrefix = f ? "" : c || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = p ? T(p) : d || T("$t("), this.nestingSuffix = h ? T(h) : m || T(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = C !== void 0 ? C : !1, this.resetRegExp();
700
+ this.escape = t !== void 0 ? t : Me, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = n ? T(n) : a || "{{", this.suffix = o ? T(o) : u || "}}", this.formatSeparator = l || ",", this.unescapePrefix = f ? "" : c || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = p ? T(p) : d || T("$t("), this.nestingSuffix = h ? T(h) : m || T(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = C !== void 0 ? C : !1, this.resetRegExp();
701
701
  }
702
702
  reset() {
703
703
  this.options && this.init(this.options);
@@ -807,7 +807,7 @@ const We = (r) => {
807
807
  formatName: e,
808
808
  formatOptions: t
809
809
  };
810
- }, me = (r) => {
810
+ }, ye = (r) => {
811
811
  const e = {};
812
812
  return (t, i, s) => {
813
813
  let n = s;
@@ -817,10 +817,10 @@ const We = (r) => {
817
817
  });
818
818
  const a = i + JSON.stringify(n);
819
819
  let o = e[a];
820
- return o || (o = r(U(i), s), e[a] = o), o(t);
820
+ return o || (o = r(H(i), s), e[a] = o), o(t);
821
821
  };
822
- }, _e = (r) => (e, t, i) => r(U(t), i)(e);
823
- class Ge {
822
+ }, Ge = (r) => (e, t, i) => r(H(t), i)(e);
823
+ class _e {
824
824
  constructor(e = {}) {
825
825
  this.logger = $.create("formatter"), this.options = e, this.init(e);
826
826
  }
@@ -828,7 +828,7 @@ class Ge {
828
828
  interpolation: {}
829
829
  }) {
830
830
  this.formatSeparator = t.interpolation.formatSeparator || ",";
831
- const i = t.cacheInBuiltFormats ? me : _e;
831
+ const i = t.cacheInBuiltFormats ? ye : Ge;
832
832
  this.formats = {
833
833
  number: i((s, n) => {
834
834
  const a = new Intl.NumberFormat(s, {
@@ -867,7 +867,7 @@ class Ge {
867
867
  this.formats[e.toLowerCase().trim()] = t;
868
868
  }
869
869
  addCached(e, t) {
870
- this.formats[e.toLowerCase().trim()] = me(t);
870
+ this.formats[e.toLowerCase().trim()] = ye(t);
871
871
  }
872
872
  format(e, t, i, s = {}) {
873
873
  const n = t.split(this.formatSeparator);
@@ -903,7 +903,7 @@ class Ge {
903
903
  const qe = (r, e) => {
904
904
  r.pending[e] !== void 0 && (delete r.pending[e], r.pendingCount--);
905
905
  };
906
- class Xe extends G {
906
+ class Xe extends _ {
907
907
  constructor(e, t, i, s = {}) {
908
908
  var n, a;
909
909
  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 = [], (a = (n = this.backend) == null ? void 0 : n.init) == null || a.call(n, i, s.backend, s);
@@ -936,7 +936,7 @@ class Xe extends G {
936
936
  }), this.state[e] = t ? -1 : 2, t && i && (this.state[e] = 0);
937
937
  const o = {};
938
938
  this.queue.forEach((u) => {
939
- Fe(u.loaded, [n], a), qe(u, e), t && u.errors.push(t), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((l) => {
939
+ je(u.loaded, [n], a), qe(u, e), t && u.errors.push(t), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((l) => {
940
940
  o[l] || (o[l] = {});
941
941
  const f = u.loaded[l];
942
942
  f.length && f.forEach((c) => {
@@ -1035,7 +1035,7 @@ class Xe extends G {
1035
1035
  }
1036
1036
  }
1037
1037
  }
1038
- const ye = () => ({
1038
+ const xe = () => ({
1039
1039
  debug: !1,
1040
1040
  initAsync: !0,
1041
1041
  ns: ["translation"],
@@ -1092,7 +1092,7 @@ const ye = () => ({
1092
1092
  skipOnVariables: !0
1093
1093
  },
1094
1094
  cacheInBuiltFormats: !0
1095
- }), xe = (r) => {
1095
+ }), be = (r) => {
1096
1096
  var e, t;
1097
1097
  return g(r.ns) && (r.ns = [r.ns]), g(r.fallbackLng) && (r.fallbackLng = [r.fallbackLng]), g(r.fallbackNS) && (r.fallbackNS = [r.fallbackNS]), ((t = (e = r.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (r.supportedLngs = r.supportedLngs.concat(["cimode"])), typeof r.initImmediate == "boolean" && (r.initAsync = r.initImmediate), r;
1098
1098
  }, J = () => {
@@ -1101,9 +1101,9 @@ const ye = () => ({
1101
1101
  typeof r[t] == "function" && (r[t] = r[t].bind(r));
1102
1102
  });
1103
1103
  };
1104
- class H extends G {
1104
+ class U extends _ {
1105
1105
  constructor(e = {}, t) {
1106
- if (super(), this.options = xe(e), this.services = {}, this.logger = $, this.modules = {
1106
+ if (super(), this.options = be(e), this.services = {}, this.logger = $, this.modules = {
1107
1107
  external: []
1108
1108
  }, Qe(this), t && !this.isInitialized && !e.isClone) {
1109
1109
  if (!this.options.initAsync)
@@ -1115,11 +1115,11 @@ class H extends G {
1115
1115
  }
1116
1116
  init(e = {}, t) {
1117
1117
  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]));
1118
- const i = ye();
1118
+ const i = xe();
1119
1119
  this.options = {
1120
1120
  ...i,
1121
1121
  ...this.options,
1122
- ...xe(e)
1122
+ ...be(e)
1123
1123
  }, this.options.interpolation = {
1124
1124
  ...i.interpolation,
1125
1125
  ...this.options.interpolation
@@ -1128,18 +1128,18 @@ class H extends G {
1128
1128
  if (!this.options.isClone) {
1129
1129
  this.modules.logger ? $.init(s(this.modules.logger), this.options) : $.init(null, this.options);
1130
1130
  let l;
1131
- this.modules.formatter ? l = this.modules.formatter : l = Ge;
1131
+ this.modules.formatter ? l = this.modules.formatter : l = _e;
1132
1132
  const f = new he(this.options);
1133
1133
  this.store = new ce(this.options.resources, this.options);
1134
1134
  const c = this.services;
1135
- c.logger = $, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new Je(f, {
1135
+ c.logger = $, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new Ye(f, {
1136
1136
  prepend: this.options.pluralSeparator,
1137
1137
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1138
- }), 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 Ye(this.options), c.utils = {
1138
+ }), 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 me(this.options), c.utils = {
1139
1139
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1140
1140
  }, c.backendConnector = new Xe(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", (d, ...h) => {
1141
1141
  this.emit(d, ...h);
1142
- }), 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 _(this.services, this.options), this.translator.on("*", (d, ...h) => {
1142
+ }), 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 G(this.services, this.options), this.translator.on("*", (d, ...h) => {
1143
1143
  this.emit(d, ...h);
1144
1144
  }), this.modules.external.forEach((d) => {
1145
1145
  d.init && d.init(this);
@@ -1190,7 +1190,7 @@ class H extends G {
1190
1190
  use(e) {
1191
1191
  if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1192
1192
  if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1193
- 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;
1193
+ 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" && Le.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1194
1194
  }
1195
1195
  setResolvedLanguage(e) {
1196
1196
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
@@ -1295,11 +1295,12 @@ class H extends G {
1295
1295
  }
1296
1296
  } catch {
1297
1297
  }
1298
- 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 he(ye());
1298
+ 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 he(xe());
1299
1299
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1300
1300
  }
1301
1301
  static createInstance(e = {}, t) {
1302
- return new H(e, t);
1302
+ const i = new U(e, t);
1303
+ return i.createInstance = U.createInstance, i;
1303
1304
  }
1304
1305
  cloneInstance(e = {}, t = J) {
1305
1306
  const i = e.forkResourceStore;
@@ -1308,7 +1309,7 @@ class H extends G {
1308
1309
  ...this.options,
1309
1310
  ...e,
1310
1311
  isClone: !0
1311
- }, n = new H(s);
1312
+ }, n = new U(s);
1312
1313
  if ((e.debug !== void 0 || e.prefix !== void 0) && (n.logger = n.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
1313
1314
  n[o] = this[o];
1314
1315
  }), n.services = {
@@ -1323,7 +1324,7 @@ class H extends G {
1323
1324
  }, f), u[l]), u), {});
1324
1325
  n.store = new ce(o, s), n.services.resourceStore = n.store;
1325
1326
  }
1326
- return n.translator = new _(n.services, s), n.translator.on("*", (o, ...u) => {
1327
+ return e.interpolation && (n.services.interpolator = new me(s)), n.translator = new G(n.services, s), n.translator.on("*", (o, ...u) => {
1327
1328
  n.emit(o, ...u);
1328
1329
  }), n.init(s, t), n.translator.options = s, n.translator.backendConnector.services.utils = {
1329
1330
  hasLoadedNamespace: n.hasLoadedNamespace.bind(n)
@@ -1339,8 +1340,7 @@ class H extends G {
1339
1340
  };
1340
1341
  }
1341
1342
  }
1342
- const y = H.createInstance();
1343
- y.createInstance = H.createInstance;
1343
+ const y = U.createInstance();
1344
1344
  y.createInstance;
1345
1345
  y.dir;
1346
1346
  y.init;
@@ -1372,7 +1372,7 @@ const rt = (r) => {
1372
1372
  * This source code is licensed under the MIT license.
1373
1373
  * See the LICENSE file in the root directory of this source tree.
1374
1374
  */
1375
- const Ze = [["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" }]], ot = ke("outline", "alert-circle", "AlertCircle", Ze), et = (r, e) => {
1375
+ const Ze = [["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" }]], ot = Ae("outline", "alert-circle", "AlertCircle", Ze), et = (r, e) => {
1376
1376
  if (!r || !r.includes("|")) return y.t(r, e);
1377
1377
  const [t, i] = r.split("|", 2).map((s) => s.trim());
1378
1378
  return y.t(
@@ -1385,7 +1385,7 @@ const Ze = [["path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", key: "svg-0" }
1385
1385
  const i = r[t];
1386
1386
  e[t] = typeof i == "string" ? et(i) : i;
1387
1387
  }), e;
1388
- }, q = Ae("align", {
1388
+ }, q = De("align", {
1389
1389
  label: "Align",
1390
1390
  optionLabel: (r) => r
1391
1391
  });
@@ -1422,17 +1422,17 @@ const ut = {
1422
1422
  type: q,
1423
1423
  label: "Align",
1424
1424
  category: "Component Settings"
1425
- }, Oe = {
1425
+ }, Ce = {
1426
1426
  name: "prefix",
1427
1427
  type: "string",
1428
1428
  label: "Prefix",
1429
1429
  description: "Prefix"
1430
- }, Ce = {
1430
+ }, we = {
1431
1431
  name: "suffix",
1432
1432
  type: "string",
1433
1433
  label: "Suffix",
1434
1434
  description: "Suffix"
1435
- }, we = {
1435
+ }, Re = {
1436
1436
  name: "displayName",
1437
1437
  type: "string",
1438
1438
  label: "Display name"
@@ -1445,23 +1445,23 @@ const ut = {
1445
1445
  name: "number",
1446
1446
  type: "number",
1447
1447
  label: "Number"
1448
- }, Re = {
1448
+ }, ve = {
1449
1449
  name: "maxCharacters",
1450
1450
  type: "number",
1451
1451
  label: "Maximum characters",
1452
1452
  supportedTypes: ["string"]
1453
- }, ve = {
1453
+ }, Pe = {
1454
1454
  name: "decimalPlaces",
1455
1455
  type: "number",
1456
1456
  label: "Decimal places",
1457
1457
  supportedTypes: ["number"]
1458
- }, Pe = {
1458
+ }, $e = {
1459
1459
  name: "currency",
1460
1460
  type: "string",
1461
1461
  label: "Currency",
1462
1462
  supportedTypes: ["number"],
1463
1463
  description: "e.g. EUR"
1464
- }, $e = {
1464
+ }, Ne = {
1465
1465
  name: "abbreviateLargeNumber",
1466
1466
  type: "boolean",
1467
1467
  label: "Abbreviate large number",
@@ -1479,21 +1479,21 @@ const ut = {
1479
1479
  supportedTypes: ["time"],
1480
1480
  defaultValue: "day"
1481
1481
  }, F = [
1482
- Oe,
1483
1482
  Ce,
1484
1483
  we,
1485
1484
  Re,
1486
1485
  ve,
1487
1486
  Pe,
1488
- $e
1487
+ $e,
1488
+ Ne
1489
1489
  ], nt = [
1490
- Oe,
1491
1490
  Ce,
1492
1491
  we,
1493
1492
  Re,
1494
1493
  ve,
1495
1494
  Pe,
1496
1495
  $e,
1496
+ Ne,
1497
1497
  it,
1498
1498
  st
1499
1499
  ], mt = {
@@ -1751,17 +1751,17 @@ export {
1751
1751
  tt as c,
1752
1752
  ft as d,
1753
1753
  dt as e,
1754
- Oe as f,
1754
+ Ce as f,
1755
1755
  ut as g,
1756
- Ce as h,
1756
+ we as h,
1757
1757
  y as i,
1758
- we as j,
1758
+ Re as j,
1759
1759
  gt as k,
1760
1760
  pt as l,
1761
- Re as m,
1762
- ve as n,
1763
- Pe as o,
1764
- $e as p,
1761
+ ve as m,
1762
+ Pe as n,
1763
+ $e as o,
1764
+ Ne as p,
1765
1765
  st as q,
1766
1766
  lt as r,
1767
1767
  ht as s,
@@ -1773,4 +1773,4 @@ export {
1773
1773
  bt as y,
1774
1774
  St as z
1775
1775
  };
1776
- //# sourceMappingURL=component.constants-DZwEQb2v.js.map
1776
+ //# sourceMappingURL=component.constants-uP1WYyUb.js.map