@sme.up/ketchup2 2.0.0-SNAPSHOT-20250603135238 → 2.0.0-SNAPSHOT-20250604085635

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.
@@ -1,9 +1,9 @@
1
1
  var wr = Object.defineProperty;
2
- var Er = (n, e, t) => e in n ? wr(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var xe = (n, e, t) => Er(n, typeof e != "symbol" ? e + "" : e, t);
4
- import * as Le from "react";
2
+ var Er = (r, e, t) => e in r ? wr(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var xe = (r, e, t) => Er(r, typeof e != "symbol" ? e + "" : e, t);
4
+ import * as ke from "react";
5
5
  import ar, { useEffect as oe, useRef as be, useState as Q, useCallback as me, useLayoutEffect as Tr, useId as Or } from "react";
6
- var ke = { exports: {} }, Re = {};
6
+ var Ie = { exports: {} }, De = {};
7
7
  /**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.js
@@ -15,10 +15,10 @@ var ke = { exports: {} }, Re = {};
15
15
  */
16
16
  var vt;
17
17
  function Rr() {
18
- if (vt) return Re;
18
+ if (vt) return De;
19
19
  vt = 1;
20
- var n = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
21
- function t(r, s, a) {
20
+ var r = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
21
+ function t(n, s, a) {
22
22
  var o = null;
23
23
  if (a !== void 0 && (o = "" + a), s.key !== void 0 && (o = "" + s.key), "key" in s) {
24
24
  a = {};
@@ -26,16 +26,16 @@ function Rr() {
26
26
  i !== "key" && (a[i] = s[i]);
27
27
  } else a = s;
28
28
  return s = a.ref, {
29
- $$typeof: n,
30
- type: r,
29
+ $$typeof: r,
30
+ type: n,
31
31
  key: o,
32
32
  ref: s !== void 0 ? s : null,
33
33
  props: a
34
34
  };
35
35
  }
36
- return Re.Fragment = e, Re.jsx = t, Re.jsxs = t, Re;
36
+ return De.Fragment = e, De.jsx = t, De.jsxs = t, De;
37
37
  }
38
- var De = {};
38
+ var Pe = {};
39
39
  /**
40
40
  * @license React
41
41
  * react-jsx-runtime.development.js
@@ -48,7 +48,7 @@ var De = {};
48
48
  var bt;
49
49
  function Dr() {
50
50
  return bt || (bt = 1, process.env.NODE_ENV !== "production" && function() {
51
- function n(d) {
51
+ function r(d) {
52
52
  if (d == null) return null;
53
53
  if (typeof d == "function")
54
54
  return d.$$typeof === C ? null : d.displayName || d.name || null;
@@ -58,7 +58,7 @@ function Dr() {
58
58
  return "Fragment";
59
59
  case E:
60
60
  return "Profiler";
61
- case S:
61
+ case w:
62
62
  return "StrictMode";
63
63
  case v:
64
64
  return "Suspense";
@@ -81,11 +81,11 @@ function Dr() {
81
81
  var m = d.render;
82
82
  return d = d.displayName, d || (d = m.displayName || m.name || "", d = d !== "" ? "ForwardRef(" + d + ")" : "ForwardRef"), d;
83
83
  case j:
84
- return m = d.displayName || null, m !== null ? m : n(d.type) || "Memo";
84
+ return m = d.displayName || null, m !== null ? m : r(d.type) || "Memo";
85
85
  case V:
86
86
  m = d._payload, d = d._init;
87
87
  try {
88
- return n(d(m));
88
+ return r(d(m));
89
89
  } catch {
90
90
  }
91
91
  }
@@ -103,20 +103,20 @@ function Dr() {
103
103
  }
104
104
  if (m) {
105
105
  m = console;
106
- var w = m.error, D = typeof Symbol == "function" && Symbol.toStringTag && d[Symbol.toStringTag] || d.constructor.name || "Object";
107
- return w.call(
106
+ var S = m.error, D = typeof Symbol == "function" && Symbol.toStringTag && d[Symbol.toStringTag] || d.constructor.name || "Object";
107
+ return S.call(
108
108
  m,
109
109
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
110
110
  D
111
111
  ), e(d);
112
112
  }
113
113
  }
114
- function r(d) {
114
+ function n(d) {
115
115
  if (d === y) return "<>";
116
116
  if (typeof d == "object" && d !== null && d.$$typeof === V)
117
117
  return "<...>";
118
118
  try {
119
- var m = n(d);
119
+ var m = r(d);
120
120
  return m ? "<" + m + ">" : "<...>";
121
121
  } catch {
122
122
  return "<...>";
@@ -137,31 +137,31 @@ function Dr() {
137
137
  return d.key !== void 0;
138
138
  }
139
139
  function i(d, m) {
140
- function w() {
140
+ function S() {
141
141
  ne || (ne = !0, console.error(
142
142
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
143
143
  m
144
144
  ));
145
145
  }
146
- w.isReactWarning = !0, Object.defineProperty(d, "key", {
147
- get: w,
146
+ S.isReactWarning = !0, Object.defineProperty(d, "key", {
147
+ get: S,
148
148
  configurable: !0
149
149
  });
150
150
  }
151
151
  function l() {
152
- var d = n(this.type);
152
+ var d = r(this.type);
153
153
  return z[d] || (z[d] = !0, console.error(
154
154
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
155
155
  )), d = this.props.ref, d !== void 0 ? d : null;
156
156
  }
157
- function c(d, m, w, D, T, P, N, _) {
158
- return w = P.ref, d = {
157
+ function c(d, m, S, D, T, P, N, _) {
158
+ return S = P.ref, d = {
159
159
  $$typeof: g,
160
160
  type: d,
161
161
  key: m,
162
162
  props: P,
163
163
  _owner: T
164
- }, (w !== void 0 ? w : null) !== null ? Object.defineProperty(d, "ref", {
164
+ }, (S !== void 0 ? S : null) !== null ? Object.defineProperty(d, "ref", {
165
165
  enumerable: !1,
166
166
  get: l
167
167
  }) : Object.defineProperty(d, "ref", { enumerable: !1, value: null }), d._store = {}, Object.defineProperty(d._store, "validated", {
@@ -186,7 +186,7 @@ function Dr() {
186
186
  value: _
187
187
  }), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
188
188
  }
189
- function u(d, m, w, D, T, P, N, _) {
189
+ function u(d, m, S, D, T, P, N, _) {
190
190
  var L = m.children;
191
191
  if (L !== void 0)
192
192
  if (D)
@@ -200,7 +200,7 @@ function Dr() {
200
200
  );
201
201
  else f(L);
202
202
  if (Y.call(m, "key")) {
203
- L = n(d);
203
+ L = r(d);
204
204
  var K = Object.keys(m).filter(function(re) {
205
205
  return re !== "key";
206
206
  });
@@ -217,13 +217,13 @@ React keys must be passed directly to JSX without using spread:
217
217
  L
218
218
  ), k[L + D] = !0);
219
219
  }
220
- if (L = null, w !== void 0 && (t(w), L = "" + w), o(m) && (t(m.key), L = "" + m.key), "key" in m) {
221
- w = {};
220
+ if (L = null, S !== void 0 && (t(S), L = "" + S), o(m) && (t(m.key), L = "" + m.key), "key" in m) {
221
+ S = {};
222
222
  for (var W in m)
223
- W !== "key" && (w[W] = m[W]);
224
- } else w = m;
223
+ W !== "key" && (S[W] = m[W]);
224
+ } else S = m;
225
225
  return L && i(
226
- w,
226
+ S,
227
227
  typeof d == "function" ? d.displayName || d.name || "Unknown" : d
228
228
  ), c(
229
229
  d,
@@ -231,7 +231,7 @@ React keys must be passed directly to JSX without using spread:
231
231
  P,
232
232
  T,
233
233
  s(),
234
- w,
234
+ S,
235
235
  N,
236
236
  _
237
237
  );
@@ -239,7 +239,7 @@ React keys must be passed directly to JSX without using spread:
239
239
  function f(d) {
240
240
  typeof d == "object" && d !== null && d.$$typeof === g && d._store && (d._store.validated = 1);
241
241
  }
242
- var p = ar, g = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), O = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), I = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, J = Array.isArray, q = console.createTask ? console.createTask : function() {
242
+ var p = ar, g = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), O = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), I = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, J = Array.isArray, q = console.createTask ? console.createTask : function() {
243
243
  return null;
244
244
  };
245
245
  p = {
@@ -250,37 +250,37 @@ React keys must be passed directly to JSX without using spread:
250
250
  var ne, z = {}, U = p["react-stack-bottom-frame"].bind(
251
251
  p,
252
252
  a
253
- )(), B = q(r(a)), k = {};
254
- De.Fragment = y, De.jsx = function(d, m, w, D, T) {
253
+ )(), B = q(n(a)), k = {};
254
+ Pe.Fragment = y, Pe.jsx = function(d, m, S, D, T) {
255
255
  var P = 1e4 > I.recentlyCreatedOwnerStacks++;
256
256
  return u(
257
257
  d,
258
258
  m,
259
- w,
259
+ S,
260
260
  !1,
261
261
  D,
262
262
  T,
263
263
  P ? Error("react-stack-top-frame") : U,
264
- P ? q(r(d)) : B
264
+ P ? q(n(d)) : B
265
265
  );
266
- }, De.jsxs = function(d, m, w, D, T) {
266
+ }, Pe.jsxs = function(d, m, S, D, T) {
267
267
  var P = 1e4 > I.recentlyCreatedOwnerStacks++;
268
268
  return u(
269
269
  d,
270
270
  m,
271
- w,
271
+ S,
272
272
  !0,
273
273
  D,
274
274
  T,
275
275
  P ? Error("react-stack-top-frame") : U,
276
- P ? q(r(d)) : B
276
+ P ? q(n(d)) : B
277
277
  );
278
278
  };
279
- }()), De;
279
+ }()), Pe;
280
280
  }
281
281
  var xt;
282
282
  function Pr() {
283
- return xt || (xt = 1, process.env.NODE_ENV === "production" ? ke.exports = Rr() : ke.exports = Dr()), ke.exports;
283
+ return xt || (xt = 1, process.env.NODE_ENV === "production" ? Ie.exports = Rr() : Ie.exports = Dr()), Ie.exports;
284
284
  }
285
285
  var x = Pr();
286
286
  const le = {
@@ -296,9 +296,9 @@ const le = {
296
296
  SPOTLIGHT: "SPL",
297
297
  TEXT_FIELD: "ITX",
298
298
  PASSWORD: "PWD"
299
- }, Ar = (n) => n.t == "D8", $r = (n) => {
300
- if (n) {
301
- const e = n.split(";");
299
+ }, Ar = (r) => r.t == "D8", $r = (r) => {
300
+ if (r) {
301
+ const e = r.split(";");
302
302
  if (e.length == 3)
303
303
  return {
304
304
  t: e[0],
@@ -312,14 +312,14 @@ const le = {
312
312
  k: ""
313
313
  };
314
314
  };
315
- class Ue {
315
+ class We {
316
316
  constructor(e, t) {
317
317
  xe(this, "class");
318
318
  xe(this, "value");
319
319
  this.class = e, this.value = t;
320
320
  }
321
321
  static fromDataObj(e) {
322
- return new Ue(e, e.k == "1" || e.k == "true");
322
+ return new We(e, e.k == "1" || e.k == "true");
323
323
  }
324
324
  getValue() {
325
325
  return this.value;
@@ -334,52 +334,52 @@ class Ue {
334
334
  return this.value ? "true" : "false";
335
335
  }
336
336
  }
337
- function Cr(n, e) {
338
- if (ht(n)) {
339
- const u = new Date(n);
337
+ function Cr(r, e) {
338
+ if (ht(r)) {
339
+ const u = new Date(r);
340
340
  if (!isNaN(u.getTime()))
341
341
  return u;
342
342
  }
343
- const t = /* @__PURE__ */ new Date(), r = n.replaceAll("/", "").replaceAll("-", "");
343
+ const t = /* @__PURE__ */ new Date(), n = r.replaceAll("/", "").replaceAll("-", "");
344
344
  let s = "DDMMYYYY";
345
345
  e === "en" && (s = "MMDDYYYY");
346
346
  const a = s.indexOf("DD"), o = s.indexOf("MM");
347
347
  let i = 0, l = 0, c = "";
348
- switch (r.length) {
348
+ switch (n.length) {
349
349
  case 1:
350
350
  case 2:
351
- return i = parseInt(r), t.setDate(i), Ie(t) ? t : n;
351
+ return i = parseInt(n), t.setDate(i), Ne(t) ? t : r;
352
352
  case 3:
353
353
  case 4:
354
- return i = parseInt(r.substring(0, 2)), l = parseInt(r.substring(2, 4)), o === 0 ? (t.setMonth(i - 1), t.setDate(l)) : a === 0 && (t.setMonth(l - 1), t.setDate(i)), Ie(t) ? t : n;
354
+ return i = parseInt(n.substring(0, 2)), l = parseInt(n.substring(2, 4)), o === 0 ? (t.setMonth(i - 1), t.setDate(l)) : a === 0 && (t.setMonth(l - 1), t.setDate(i)), Ne(t) ? t : r;
355
355
  case 5:
356
356
  case 6: {
357
- i = parseInt(r.substring(0, 2)), l = parseInt(r.substring(2, 4)), Number(r.substring(4)) > 50 ? c = "19" + r.substring(4) : c = "20" + r.substring(4);
357
+ i = parseInt(n.substring(0, 2)), l = parseInt(n.substring(2, 4)), Number(n.substring(4)) > 50 ? c = "19" + n.substring(4) : c = "20" + n.substring(4);
358
358
  let u = 0, f = 0;
359
- return o === 0 ? (u = l, f = i - 1, t.setFullYear(parseInt(c), f, u)) : a === 0 && (u = i, f = l - 1, t.setFullYear(parseInt(c), f, u)), ct(i, f, parseInt(c)) && Ie(t) ? t : n;
359
+ return o === 0 ? (u = l, f = i - 1, t.setFullYear(parseInt(c), f, u)) : a === 0 && (u = i, f = l - 1, t.setFullYear(parseInt(c), f, u)), ct(i, f, parseInt(c)) && Ne(t) ? t : r;
360
360
  }
361
361
  case 7:
362
362
  case 8: {
363
- i = parseInt(r.substring(0, 2)), l = parseInt(r.substring(2, 4)), c = r.substring(4);
363
+ i = parseInt(n.substring(0, 2)), l = parseInt(n.substring(2, 4)), c = n.substring(4);
364
364
  let u = 0, f = 0;
365
- return o === 0 ? (u = l, f = i - 1, t.setFullYear(parseInt(c), f, u)) : a === 0 && (u = i, f = l - 1, t.setFullYear(parseInt(c), f, u)), ct(u, f, parseInt(c)) && Ie(t) ? t : n;
365
+ return o === 0 ? (u = l, f = i - 1, t.setFullYear(parseInt(c), f, u)) : a === 0 && (u = i, f = l - 1, t.setFullYear(parseInt(c), f, u)), ct(u, f, parseInt(c)) && Ne(t) ? t : r;
366
366
  }
367
367
  }
368
- return n;
368
+ return r;
369
369
  }
370
- function ht(n) {
371
- return /^\d{4}-\d{2}-\d{2}$/.test(n) && n.length === 10;
370
+ function ht(r) {
371
+ return /^\d{4}-\d{2}-\d{2}$/.test(r) && r.length === 10;
372
372
  }
373
- function Ie(n) {
374
- return n instanceof Date && !isNaN(n.getTime());
373
+ function Ne(r) {
374
+ return r instanceof Date && !isNaN(r.getTime());
375
375
  }
376
- function jr(n) {
377
- if (!/^\d{8}$/.test(n)) return !1;
378
- const e = parseInt(n.slice(0, 4), 10), t = parseInt(n.slice(4, 6), 10), r = parseInt(n.slice(6, 8), 10);
379
- return ct(r, t - 1, e);
376
+ function jr(r) {
377
+ if (!/^\d{8}$/.test(r)) return !1;
378
+ const e = parseInt(r.slice(0, 4), 10), t = parseInt(r.slice(4, 6), 10), n = parseInt(r.slice(6, 8), 10);
379
+ return ct(n, t - 1, e);
380
380
  }
381
- function ct(n, e, t) {
382
- const r = [
381
+ function ct(r, e, t) {
382
+ const n = [
383
383
  31,
384
384
  // January
385
385
  Lr(t) ? 29 : 28,
@@ -405,16 +405,16 @@ function ct(n, e, t) {
405
405
  31
406
406
  // December
407
407
  ];
408
- return !(e < 0 || e > 11 || n < 1 || n > r[e]);
408
+ return !(e < 0 || e > 11 || r < 1 || r > n[e]);
409
409
  }
410
- function Lr(n) {
411
- return n % 4 === 0 && (n % 100 !== 0 || n % 400 === 0);
410
+ function Lr(r) {
411
+ return r % 4 === 0 && (r % 100 !== 0 || r % 400 === 0);
412
412
  }
413
- function kr(n) {
414
- const e = n.getFullYear(), t = String(n.getMonth() + 1).padStart(2, "0"), r = String(n.getDate()).padStart(2, "0");
415
- return isNaN(e) || isNaN(Number(t)) || isNaN(Number(r)) ? n.toString() : `${e}-${t}-${r}`;
413
+ function kr(r) {
414
+ const e = r.getFullYear(), t = String(r.getMonth() + 1).padStart(2, "0"), n = String(r.getDate()).padStart(2, "0");
415
+ return isNaN(e) || isNaN(Number(t)) || isNaN(Number(n)) ? r.toString() : `${e}-${t}-${n}`;
416
416
  }
417
- class We {
417
+ class He {
418
418
  constructor(e, t) {
419
419
  xe(this, "class");
420
420
  xe(this, "date");
@@ -423,7 +423,7 @@ class We {
423
423
  static fromDataObj(e) {
424
424
  const t = St.get(`${e.t}${e.p}`);
425
425
  if (t)
426
- return new We(e, t.legacyToIso(e.k));
426
+ return new He(e, t.legacyToIso(e.k));
427
427
  throw new Error(`Date creation from ${e.t}${e.p} not implemented yet`);
428
428
  }
429
429
  getLegacyValue() {
@@ -442,30 +442,30 @@ const St = /* @__PURE__ */ new Map([
442
442
  [
443
443
  "D8*YYMD",
444
444
  {
445
- legacyToIso(n) {
446
- return jr(n) && `${n.substring(0, 4)}-${n.substring(4, 6)}-${n.substring(6, 8)}` || n;
445
+ legacyToIso(r) {
446
+ return jr(r) && `${r.substring(0, 4)}-${r.substring(4, 6)}-${r.substring(6, 8)}` || r;
447
447
  },
448
- isoToLegacy(n) {
449
- return ht(n) && n.replaceAll("-", "") || n;
448
+ isoToLegacy(r) {
449
+ return ht(r) && r.replaceAll("-", "") || r;
450
450
  }
451
451
  }
452
452
  ]
453
- ]), He = (n, e) => {
453
+ ]), qe = (r, e) => {
454
454
  oe(() => {
455
- const t = (r) => {
456
- typeof n == "object" && n !== null && "current" in n && n.current && !n.current.contains(r.target) && e();
455
+ const t = (n) => {
456
+ typeof r == "object" && r !== null && "current" in r && r.current && !r.current.contains(n.target) && e();
457
457
  };
458
458
  return document.addEventListener("mousedown", t), () => {
459
459
  document.removeEventListener("mousedown", t);
460
460
  };
461
- }, [n, e]);
461
+ }, [r, e]);
462
462
  };
463
463
  function gt({
464
- position: n = "bottom",
464
+ position: r = "bottom",
465
465
  enabled: e = !0
466
466
  }) {
467
- const t = be(null), r = be(null), [s, a] = Q(0), o = me(() => {
468
- const i = t.current, l = r.current;
467
+ const t = be(null), n = be(null), [s, a] = Q(0), o = me(() => {
468
+ const i = t.current, l = n.current;
469
469
  if (!i || !l) return;
470
470
  const { top: c, left: u, width: f, height: p } = i.getBoundingClientRect();
471
471
  a(f);
@@ -474,8 +474,8 @@ function gt({
474
474
  requestAnimationFrame(o);
475
475
  return;
476
476
  }
477
- let y = c + window.scrollY, S = u + window.scrollX;
478
- switch (n) {
477
+ let y = c + window.scrollY, w = u + window.scrollX;
478
+ switch (r) {
479
479
  case "top":
480
480
  y -= g;
481
481
  break;
@@ -483,84 +483,84 @@ function gt({
483
483
  y += p;
484
484
  break;
485
485
  case "left":
486
- S -= h;
486
+ w -= h;
487
487
  break;
488
488
  case "right":
489
- S += f;
489
+ w += f;
490
490
  break;
491
491
  }
492
492
  requestAnimationFrame(() => {
493
- l.style.transform = `translate(${S}px, ${y}px)`;
493
+ l.style.transform = `translate(${w}px, ${y}px)`;
494
494
  });
495
- }, [n]);
495
+ }, [r]);
496
496
  return Tr(() => {
497
- e && t.current && r.current && o();
497
+ e && t.current && n.current && o();
498
498
  const i = new MutationObserver(() => {
499
- r.current && o();
499
+ n.current && o();
500
500
  });
501
- return r.current && i.observe(r.current, { childList: !0, subtree: !0 }), window.addEventListener("resize", o), window.addEventListener("scroll", o, !0), () => {
501
+ return n.current && i.observe(n.current, { childList: !0, subtree: !0 }), window.addEventListener("resize", o), window.addEventListener("scroll", o, !0), () => {
502
502
  window.removeEventListener("resize", o), window.removeEventListener("scroll", o, !0), i.disconnect();
503
503
  };
504
- }, [o, e]), { anchorRef: t, targetRef: r, anchorWidth: s };
504
+ }, [o, e]), { anchorRef: t, targetRef: n, anchorWidth: s };
505
505
  }
506
- const qe = (n, e, t) => {
506
+ const Ke = (r, e, t) => {
507
507
  if (t)
508
508
  switch (t) {
509
509
  case "CodeOnly":
510
- return n;
510
+ return r;
511
511
  case "DescOnly":
512
512
  return e || "";
513
513
  case "Both":
514
- return `${n} - ${e}`;
514
+ return `${r} - ${e}`;
515
515
  }
516
- return n;
516
+ return r;
517
517
  }, Ir = ({
518
- helperText: n,
518
+ helperText: r,
519
519
  disabled: e,
520
520
  state: t
521
521
  }) => {
522
- const r = {
522
+ const n = {
523
523
  container: `smp-helper-text ${e ? "smp-helper-text-disabled" : ""} ${t ? `smp-helper-text-${t}` : ""}`
524
524
  };
525
- return /* @__PURE__ */ x.jsx("span", { className: r.container, children: n });
526
- }, ir = ({ label: n, disabled: e }) => {
525
+ return /* @__PURE__ */ x.jsx("span", { className: n.container, children: r });
526
+ }, ir = ({ label: r, disabled: e }) => {
527
527
  const t = {
528
528
  container: `smp-label ${e ? "smp-label-disabled" : ""}`
529
529
  };
530
- return /* @__PURE__ */ x.jsx("span", { className: t.container, children: n });
530
+ return /* @__PURE__ */ x.jsx("span", { className: t.container, children: r });
531
531
  };
532
- function Nr(n, e) {
533
- if (n == null) return {};
532
+ function Nr(r, e) {
533
+ if (r == null) return {};
534
534
  var t = {};
535
- for (var r in n) if ({}.hasOwnProperty.call(n, r)) {
536
- if (e.indexOf(r) !== -1) continue;
537
- t[r] = n[r];
535
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
536
+ if (e.indexOf(n) !== -1) continue;
537
+ t[n] = r[n];
538
538
  }
539
539
  return t;
540
540
  }
541
- function Ke() {
542
- return Ke = Object.assign ? Object.assign.bind() : function(n) {
541
+ function Be() {
542
+ return Be = Object.assign ? Object.assign.bind() : function(r) {
543
543
  for (var e = 1; e < arguments.length; e++) {
544
544
  var t = arguments[e];
545
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
545
+ for (var n in t) ({}).hasOwnProperty.call(t, n) && (r[n] = t[n]);
546
546
  }
547
- return n;
548
- }, Ke.apply(null, arguments);
547
+ return r;
548
+ }, Be.apply(null, arguments);
549
549
  }
550
- function ut(n, e) {
551
- return ut = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, r) {
552
- return t.__proto__ = r, t;
553
- }, ut(n, e);
550
+ function ut(r, e) {
551
+ return ut = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
552
+ return t.__proto__ = n, t;
553
+ }, ut(r, e);
554
554
  }
555
- function _r(n, e) {
556
- n.prototype = Object.create(e.prototype), n.prototype.constructor = n, ut(n, e);
555
+ function _r(r, e) {
556
+ r.prototype = Object.create(e.prototype), r.prototype.constructor = r, ut(r, e);
557
557
  }
558
- function et(n, e, t) {
559
- if (t || arguments.length === 2) for (var r = 0, s = e.length, a; r < s; r++)
560
- (a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
561
- return n.concat(a || Array.prototype.slice.call(e));
558
+ function et(r, e, t) {
559
+ if (t || arguments.length === 2) for (var n = 0, s = e.length, a; n < s; n++)
560
+ (a || !(n in e)) && (a || (a = Array.prototype.slice.call(e, 0, n)), a[n] = e[n]);
561
+ return r.concat(a || Array.prototype.slice.call(e));
562
562
  }
563
- var Ne = {};
563
+ var _e = {};
564
564
  /*!
565
565
  * content-type
566
566
  * Copyright(c) 2015 Douglas Christopher Wilson
@@ -568,10 +568,10 @@ var Ne = {};
568
568
  */
569
569
  var wt;
570
570
  function Mr() {
571
- if (wt) return Ne;
571
+ if (wt) return _e;
572
572
  wt = 1;
573
- var n = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, e = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/, t = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, r = /\\([\u000b\u0020-\u00ff])/g, s = /([\\"])/g, a = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
574
- Ne.format = o, Ne.parse = i;
573
+ var r = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, e = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/, t = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, n = /\\([\u000b\u0020-\u00ff])/g, s = /([\\"])/g, a = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
574
+ _e.format = o, _e.parse = i;
575
575
  function o(f) {
576
576
  if (!f || typeof f != "object")
577
577
  throw new TypeError("argument obj is required");
@@ -580,8 +580,8 @@ function Mr() {
580
580
  throw new TypeError("invalid type");
581
581
  var h = g;
582
582
  if (p && typeof p == "object")
583
- for (var y, S = Object.keys(p).sort(), E = 0; E < S.length; E++) {
584
- if (y = S[E], !t.test(y))
583
+ for (var y, w = Object.keys(p).sort(), E = 0; E < w.length; E++) {
584
+ if (y = w[E], !t.test(y))
585
585
  throw new TypeError("invalid parameter name");
586
586
  h += "; " + y + "=" + c(p[y]);
587
587
  }
@@ -598,11 +598,11 @@ function Mr() {
598
598
  throw new TypeError("invalid media type");
599
599
  var y = new u(h.toLowerCase());
600
600
  if (g !== -1) {
601
- var S, E, b;
602
- for (n.lastIndex = g; E = n.exec(p); ) {
601
+ var w, E, b;
602
+ for (r.lastIndex = g; E = r.exec(p); ) {
603
603
  if (E.index !== g)
604
604
  throw new TypeError("invalid parameter format");
605
- g += E[0].length, S = E[1].toLowerCase(), b = E[2], b.charCodeAt(0) === 34 && (b = b.slice(1, -1), b.indexOf("\\") !== -1 && (b = b.replace(r, "$1"))), y.parameters[S] = b;
605
+ g += E[0].length, w = E[1].toLowerCase(), b = E[2], b.charCodeAt(0) === 34 && (b = b.slice(1, -1), b.indexOf("\\") !== -1 && (b = b.replace(n, "$1"))), y.parameters[w] = b;
606
606
  }
607
607
  if (g !== p.length)
608
608
  throw new TypeError("invalid parameter format");
@@ -626,13 +626,13 @@ function Mr() {
626
626
  function u(f) {
627
627
  this.parameters = /* @__PURE__ */ Object.create(null), this.type = f;
628
628
  }
629
- return Ne;
629
+ return _e;
630
630
  }
631
631
  var Fr = Mr(), Te = /* @__PURE__ */ new Map(), or = function(e) {
632
632
  return e.cloneNode(!0);
633
633
  }, Et = function() {
634
634
  return window.location.protocol === "file:";
635
- }, lr = function(e, t, r) {
635
+ }, lr = function(e, t, n) {
636
636
  var s = new XMLHttpRequest();
637
637
  s.onreadystatechange = function() {
638
638
  try {
@@ -648,13 +648,13 @@ var Fr = Mr(), Te = /* @__PURE__ */ new Map(), or = function(e) {
648
648
  if (s.status === 404 || s.responseXML === null)
649
649
  throw new Error(Et() ? "Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver." : "Unable to load SVG file: " + e);
650
650
  if (s.status === 200 || Et() && s.status === 0)
651
- r(null, s);
651
+ n(null, s);
652
652
  else
653
653
  throw new Error("There was a problem injecting the SVG: " + s.status + " " + s.statusText);
654
654
  }
655
655
  } catch (i) {
656
656
  if (s.abort(), i instanceof Error)
657
- r(i, s);
657
+ n(i, s);
658
658
  else
659
659
  throw i;
660
660
  }
@@ -669,32 +669,32 @@ var Fr = Mr(), Te = /* @__PURE__ */ new Map(), or = function(e) {
669
669
  l instanceof SVGSVGElement && c(null, or(l)), l instanceof Error && c(l), o === ve[e].length - 1 && delete ve[e];
670
670
  }
671
671
  }, 0);
672
- }, r = 0, s = ve[e].length; r < s; r++)
673
- t(r);
674
- }, Yr = function(e, t, r) {
672
+ }, n = 0, s = ve[e].length; n < s; n++)
673
+ t(n);
674
+ }, Yr = function(e, t, n) {
675
675
  if (Te.has(e)) {
676
676
  var s = Te.get(e);
677
677
  if (s === void 0) {
678
- Tt(e, r);
678
+ Tt(e, n);
679
679
  return;
680
680
  }
681
681
  if (s instanceof SVGSVGElement) {
682
- r(null, or(s));
682
+ n(null, or(s));
683
683
  return;
684
684
  }
685
685
  }
686
- Te.set(e, void 0), Tt(e, r), lr(e, t, function(a, o) {
686
+ Te.set(e, void 0), Tt(e, n), lr(e, t, function(a, o) {
687
687
  var i;
688
688
  a ? Te.set(e, a) : ((i = o.responseXML) === null || i === void 0 ? void 0 : i.documentElement) instanceof SVGSVGElement && Te.set(e, o.responseXML.documentElement), Vr(e);
689
689
  });
690
- }, Ur = function(e, t, r) {
690
+ }, Ur = function(e, t, n) {
691
691
  lr(e, t, function(s, a) {
692
692
  var o;
693
- s ? r(s) : ((o = a.responseXML) === null || o === void 0 ? void 0 : o.documentElement) instanceof SVGSVGElement && r(null, a.responseXML.documentElement);
693
+ s ? n(s) : ((o = a.responseXML) === null || o === void 0 ? void 0 : o.documentElement) instanceof SVGSVGElement && n(null, a.responseXML.documentElement);
694
694
  });
695
695
  }, Wr = 0, Hr = function() {
696
696
  return ++Wr;
697
- }, pe = [], Ot = {}, qr = "http://www.w3.org/2000/svg", tt = "http://www.w3.org/1999/xlink", Rt = function(e, t, r, s, a, o, i) {
697
+ }, pe = [], Ot = {}, qr = "http://www.w3.org/2000/svg", tt = "http://www.w3.org/1999/xlink", Rt = function(e, t, n, s, a, o, i) {
698
698
  var l = e.getAttribute("data-src") || e.getAttribute("src");
699
699
  if (!l) {
700
700
  i(new Error("Invalid data-src or src attribute"));
@@ -719,8 +719,8 @@ var Fr = Mr(), Te = /* @__PURE__ */ new Map(), or = function(e) {
719
719
  h && f.setAttribute("width", h);
720
720
  var y = e.getAttribute("height");
721
721
  y && f.setAttribute("height", y);
722
- var S = Array.from(new Set(et(et(et([], (f.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
723
- f.setAttribute("class", S);
722
+ var w = Array.from(new Set(et(et(et([], (f.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
723
+ f.setAttribute("class", w);
724
724
  var E = e.getAttribute("style");
725
725
  E && f.setAttribute("style", E), f.setAttribute("data-src", l);
726
726
  var b = [].filter.call(e.attributes, function(B) {
@@ -728,7 +728,7 @@ var Fr = Mr(), Te = /* @__PURE__ */ new Map(), or = function(e) {
728
728
  });
729
729
  if (Array.prototype.forEach.call(b, function(B) {
730
730
  B.name && B.value && f.setAttribute(B.name, B.value);
731
- }), r) {
731
+ }), n) {
732
732
  var O = {
733
733
  clipPath: ["clip-path"],
734
734
  "color-profile": ["color-profile"],
@@ -782,10 +782,10 @@ var Fr = Mr(), Te = /* @__PURE__ */ new Map(), or = function(e) {
782
782
  e.parentNode.replaceChild(f, e), pe.splice(pe.indexOf(e), 1), e = null, i(null, f);
783
783
  });
784
784
  }, Kr = function(e, t) {
785
- var r = t === void 0 ? {} : t, s = r.afterAll, a = s === void 0 ? function() {
786
- } : s, o = r.afterEach, i = o === void 0 ? function() {
787
- } : o, l = r.beforeEach, c = l === void 0 ? function() {
788
- } : l, u = r.cacheRequests, f = u === void 0 ? !0 : u, p = r.evalScripts, g = p === void 0 ? "never" : p, h = r.httpRequestWithCredentials, y = h === void 0 ? !1 : h, S = r.renumerateIRIElements, E = S === void 0 ? !0 : S;
785
+ var n = t === void 0 ? {} : t, s = n.afterAll, a = s === void 0 ? function() {
786
+ } : s, o = n.afterEach, i = o === void 0 ? function() {
787
+ } : o, l = n.beforeEach, c = l === void 0 ? function() {
788
+ } : l, u = n.cacheRequests, f = u === void 0 ? !0 : u, p = n.evalScripts, g = p === void 0 ? "never" : p, h = n.httpRequestWithCredentials, y = h === void 0 ? !1 : h, w = n.renumerateIRIElements, E = w === void 0 ? !0 : w;
789
789
  if (e && "length" in e)
790
790
  for (var b = 0, O = 0, R = e.length; O < R; O++)
791
791
  Rt(e[O], g, E, f, y, c, function(v, $) {
@@ -794,7 +794,7 @@ var Fr = Mr(), Te = /* @__PURE__ */ new Map(), or = function(e) {
794
794
  else e ? Rt(e, g, E, f, y, c, function(v, $) {
795
795
  i(v, $), a(1), e = null;
796
796
  }) : a(0);
797
- }, _e = { exports: {} }, Me = { exports: {} }, X = {};
797
+ }, Me = { exports: {} }, Fe = { exports: {} }, X = {};
798
798
  /** @license React v16.13.1
799
799
  * react-is.production.min.js
800
800
  *
@@ -807,7 +807,7 @@ var Dt;
807
807
  function Br() {
808
808
  if (Dt) return X;
809
809
  Dt = 1;
810
- var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, a = n ? Symbol.for("react.profiler") : 60114, o = n ? Symbol.for("react.provider") : 60109, i = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, c = n ? Symbol.for("react.concurrent_mode") : 60111, u = n ? Symbol.for("react.forward_ref") : 60112, f = n ? Symbol.for("react.suspense") : 60113, p = n ? Symbol.for("react.suspense_list") : 60120, g = n ? Symbol.for("react.memo") : 60115, h = n ? Symbol.for("react.lazy") : 60116, y = n ? Symbol.for("react.block") : 60121, S = n ? Symbol.for("react.fundamental") : 60117, E = n ? Symbol.for("react.responder") : 60118, b = n ? Symbol.for("react.scope") : 60119;
810
+ var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, o = r ? Symbol.for("react.provider") : 60109, i = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, p = r ? Symbol.for("react.suspense_list") : 60120, g = r ? Symbol.for("react.memo") : 60115, h = r ? Symbol.for("react.lazy") : 60116, y = r ? Symbol.for("react.block") : 60121, w = r ? Symbol.for("react.fundamental") : 60117, E = r ? Symbol.for("react.responder") : 60118, b = r ? Symbol.for("react.scope") : 60119;
811
811
  function O(v) {
812
812
  if (typeof v == "object" && v !== null) {
813
813
  var $ = v.$$typeof;
@@ -816,7 +816,7 @@ function Br() {
816
816
  switch (v = v.type, v) {
817
817
  case l:
818
818
  case c:
819
- case r:
819
+ case n:
820
820
  case a:
821
821
  case s:
822
822
  case f:
@@ -841,7 +841,7 @@ function Br() {
841
841
  function R(v) {
842
842
  return O(v) === c;
843
843
  }
844
- return X.AsyncMode = l, X.ConcurrentMode = c, X.ContextConsumer = i, X.ContextProvider = o, X.Element = e, X.ForwardRef = u, X.Fragment = r, X.Lazy = h, X.Memo = g, X.Portal = t, X.Profiler = a, X.StrictMode = s, X.Suspense = f, X.isAsyncMode = function(v) {
844
+ return X.AsyncMode = l, X.ConcurrentMode = c, X.ContextConsumer = i, X.ContextProvider = o, X.Element = e, X.ForwardRef = u, X.Fragment = n, X.Lazy = h, X.Memo = g, X.Portal = t, X.Profiler = a, X.StrictMode = s, X.Suspense = f, X.isAsyncMode = function(v) {
845
845
  return R(v) || O(v) === l;
846
846
  }, X.isConcurrentMode = R, X.isContextConsumer = function(v) {
847
847
  return O(v) === i;
@@ -852,7 +852,7 @@ function Br() {
852
852
  }, X.isForwardRef = function(v) {
853
853
  return O(v) === u;
854
854
  }, X.isFragment = function(v) {
855
- return O(v) === r;
855
+ return O(v) === n;
856
856
  }, X.isLazy = function(v) {
857
857
  return O(v) === h;
858
858
  }, X.isMemo = function(v) {
@@ -866,7 +866,7 @@ function Br() {
866
866
  }, X.isSuspense = function(v) {
867
867
  return O(v) === f;
868
868
  }, X.isValidElementType = function(v) {
869
- return typeof v == "string" || typeof v == "function" || v === r || v === c || v === a || v === s || v === f || v === p || typeof v == "object" && v !== null && (v.$$typeof === h || v.$$typeof === g || v.$$typeof === o || v.$$typeof === i || v.$$typeof === u || v.$$typeof === S || v.$$typeof === E || v.$$typeof === b || v.$$typeof === y);
869
+ return typeof v == "string" || typeof v == "function" || v === n || v === c || v === a || v === s || v === f || v === p || typeof v == "object" && v !== null && (v.$$typeof === h || v.$$typeof === g || v.$$typeof === o || v.$$typeof === i || v.$$typeof === u || v.$$typeof === w || v.$$typeof === E || v.$$typeof === b || v.$$typeof === y);
870
870
  }, X.typeOf = O, X;
871
871
  }
872
872
  var Z = {};
@@ -881,10 +881,10 @@ var Z = {};
881
881
  var Pt;
882
882
  function Gr() {
883
883
  return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && function() {
884
- var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, a = n ? Symbol.for("react.profiler") : 60114, o = n ? Symbol.for("react.provider") : 60109, i = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, c = n ? Symbol.for("react.concurrent_mode") : 60111, u = n ? Symbol.for("react.forward_ref") : 60112, f = n ? Symbol.for("react.suspense") : 60113, p = n ? Symbol.for("react.suspense_list") : 60120, g = n ? Symbol.for("react.memo") : 60115, h = n ? Symbol.for("react.lazy") : 60116, y = n ? Symbol.for("react.block") : 60121, S = n ? Symbol.for("react.fundamental") : 60117, E = n ? Symbol.for("react.responder") : 60118, b = n ? Symbol.for("react.scope") : 60119;
884
+ var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, o = r ? Symbol.for("react.provider") : 60109, i = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, p = r ? Symbol.for("react.suspense_list") : 60120, g = r ? Symbol.for("react.memo") : 60115, h = r ? Symbol.for("react.lazy") : 60116, y = r ? Symbol.for("react.block") : 60121, w = r ? Symbol.for("react.fundamental") : 60117, E = r ? Symbol.for("react.responder") : 60118, b = r ? Symbol.for("react.scope") : 60119;
885
885
  function O(A) {
886
886
  return typeof A == "string" || typeof A == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
887
- A === r || A === c || A === a || A === s || A === f || A === p || typeof A == "object" && A !== null && (A.$$typeof === h || A.$$typeof === g || A.$$typeof === o || A.$$typeof === i || A.$$typeof === u || A.$$typeof === S || A.$$typeof === E || A.$$typeof === b || A.$$typeof === y);
887
+ A === n || A === c || A === a || A === s || A === f || A === p || typeof A == "object" && A !== null && (A.$$typeof === h || A.$$typeof === g || A.$$typeof === o || A.$$typeof === i || A.$$typeof === u || A.$$typeof === w || A.$$typeof === E || A.$$typeof === b || A.$$typeof === y);
888
888
  }
889
889
  function R(A) {
890
890
  if (typeof A == "object" && A !== null) {
@@ -895,7 +895,7 @@ function Gr() {
895
895
  switch (G) {
896
896
  case l:
897
897
  case c:
898
- case r:
898
+ case n:
899
899
  case a:
900
900
  case s:
901
901
  case f:
@@ -918,7 +918,7 @@ function Gr() {
918
918
  }
919
919
  }
920
920
  }
921
- var v = l, $ = c, j = i, V = o, F = e, C = u, I = r, Y = h, J = g, q = t, ne = a, z = s, U = f, B = !1;
921
+ var v = l, $ = c, j = i, V = o, F = e, C = u, I = n, Y = h, J = g, q = t, ne = a, z = s, U = f, B = !1;
922
922
  function k(A) {
923
923
  return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), d(A) || R(A) === l;
924
924
  }
@@ -928,7 +928,7 @@ function Gr() {
928
928
  function m(A) {
929
929
  return R(A) === i;
930
930
  }
931
- function w(A) {
931
+ function S(A) {
932
932
  return R(A) === o;
933
933
  }
934
934
  function D(A) {
@@ -938,7 +938,7 @@ function Gr() {
938
938
  return R(A) === u;
939
939
  }
940
940
  function P(A) {
941
- return R(A) === r;
941
+ return R(A) === n;
942
942
  }
943
943
  function N(A) {
944
944
  return R(A) === h;
@@ -958,12 +958,12 @@ function Gr() {
958
958
  function re(A) {
959
959
  return R(A) === f;
960
960
  }
961
- Z.AsyncMode = v, Z.ConcurrentMode = $, Z.ContextConsumer = j, Z.ContextProvider = V, Z.Element = F, Z.ForwardRef = C, Z.Fragment = I, Z.Lazy = Y, Z.Memo = J, Z.Portal = q, Z.Profiler = ne, Z.StrictMode = z, Z.Suspense = U, Z.isAsyncMode = k, Z.isConcurrentMode = d, Z.isContextConsumer = m, Z.isContextProvider = w, Z.isElement = D, Z.isForwardRef = T, Z.isFragment = P, Z.isLazy = N, Z.isMemo = _, Z.isPortal = L, Z.isProfiler = K, Z.isStrictMode = W, Z.isSuspense = re, Z.isValidElementType = O, Z.typeOf = R;
961
+ Z.AsyncMode = v, Z.ConcurrentMode = $, Z.ContextConsumer = j, Z.ContextProvider = V, Z.Element = F, Z.ForwardRef = C, Z.Fragment = I, Z.Lazy = Y, Z.Memo = J, Z.Portal = q, Z.Profiler = ne, Z.StrictMode = z, Z.Suspense = U, Z.isAsyncMode = k, Z.isConcurrentMode = d, Z.isContextConsumer = m, Z.isContextProvider = S, Z.isElement = D, Z.isForwardRef = T, Z.isFragment = P, Z.isLazy = N, Z.isMemo = _, Z.isPortal = L, Z.isProfiler = K, Z.isStrictMode = W, Z.isSuspense = re, Z.isValidElementType = O, Z.typeOf = R;
962
962
  }()), Z;
963
963
  }
964
964
  var At;
965
965
  function cr() {
966
- return At || (At = 1, process.env.NODE_ENV === "production" ? Me.exports = Br() : Me.exports = Gr()), Me.exports;
966
+ return At || (At = 1, process.env.NODE_ENV === "production" ? Fe.exports = Br() : Fe.exports = Gr()), Fe.exports;
967
967
  }
968
968
  /*
969
969
  object-assign
@@ -974,8 +974,8 @@ var rt, $t;
974
974
  function zr() {
975
975
  if ($t) return rt;
976
976
  $t = 1;
977
- var n = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
978
- function r(a) {
977
+ var r = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
978
+ function n(a) {
979
979
  if (a == null)
980
980
  throw new TypeError("Object.assign cannot be called with null or undefined");
981
981
  return Object(a);
@@ -1003,12 +1003,12 @@ function zr() {
1003
1003
  }
1004
1004
  }
1005
1005
  return rt = s() ? Object.assign : function(a, o) {
1006
- for (var i, l = r(a), c, u = 1; u < arguments.length; u++) {
1006
+ for (var i, l = n(a), c, u = 1; u < arguments.length; u++) {
1007
1007
  i = Object(arguments[u]);
1008
1008
  for (var f in i)
1009
1009
  e.call(i, f) && (l[f] = i[f]);
1010
- if (n) {
1011
- c = n(i);
1010
+ if (r) {
1011
+ c = r(i);
1012
1012
  for (var p = 0; p < c.length; p++)
1013
1013
  t.call(i, c[p]) && (l[c[p]] = i[c[p]]);
1014
1014
  }
@@ -1020,8 +1020,8 @@ var nt, Ct;
1020
1020
  function mt() {
1021
1021
  if (Ct) return nt;
1022
1022
  Ct = 1;
1023
- var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1024
- return nt = n, nt;
1023
+ var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1024
+ return nt = r, nt;
1025
1025
  }
1026
1026
  var st, jt;
1027
1027
  function ur() {
@@ -1031,11 +1031,11 @@ var at, Lt;
1031
1031
  function Jr() {
1032
1032
  if (Lt) return at;
1033
1033
  Lt = 1;
1034
- var n = function() {
1034
+ var r = function() {
1035
1035
  };
1036
1036
  if (process.env.NODE_ENV !== "production") {
1037
- var e = /* @__PURE__ */ mt(), t = {}, r = /* @__PURE__ */ ur();
1038
- n = function(a) {
1037
+ var e = /* @__PURE__ */ mt(), t = {}, n = /* @__PURE__ */ ur();
1038
+ r = function(a) {
1039
1039
  var o = "Warning: " + a;
1040
1040
  typeof console < "u" && console.error(o);
1041
1041
  try {
@@ -1047,7 +1047,7 @@ function Jr() {
1047
1047
  function s(a, o, i, l, c) {
1048
1048
  if (process.env.NODE_ENV !== "production") {
1049
1049
  for (var u in a)
1050
- if (r(a, u)) {
1050
+ if (n(a, u)) {
1051
1051
  var f;
1052
1052
  try {
1053
1053
  if (typeof a[u] != "function") {
@@ -1060,12 +1060,12 @@ function Jr() {
1060
1060
  } catch (h) {
1061
1061
  f = h;
1062
1062
  }
1063
- if (f && !(f instanceof Error) && n(
1063
+ if (f && !(f instanceof Error) && r(
1064
1064
  (l || "React class") + ": type specification of " + i + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1065
1065
  ), f instanceof Error && !(f.message in t)) {
1066
1066
  t[f.message] = !0;
1067
1067
  var g = c ? c() : "";
1068
- n(
1068
+ r(
1069
1069
  "Failed " + i + " type: " + f.message + (g ?? "")
1070
1070
  );
1071
1071
  }
@@ -1080,7 +1080,7 @@ var it, kt;
1080
1080
  function Xr() {
1081
1081
  if (kt) return it;
1082
1082
  kt = 1;
1083
- var n = cr(), e = zr(), t = /* @__PURE__ */ mt(), r = /* @__PURE__ */ ur(), s = /* @__PURE__ */ Jr(), a = function() {
1083
+ var r = cr(), e = zr(), t = /* @__PURE__ */ mt(), n = /* @__PURE__ */ ur(), s = /* @__PURE__ */ Jr(), a = function() {
1084
1084
  };
1085
1085
  process.env.NODE_ENV !== "production" && (a = function(i) {
1086
1086
  var l = "Warning: " + i;
@@ -1128,9 +1128,9 @@ function Xr() {
1128
1128
  this.message = d, this.data = m && typeof m == "object" ? m : {}, this.stack = "";
1129
1129
  }
1130
1130
  y.prototype = Error.prototype;
1131
- function S(d) {
1131
+ function w(d) {
1132
1132
  if (process.env.NODE_ENV !== "production")
1133
- var m = {}, w = 0;
1133
+ var m = {}, S = 0;
1134
1134
  function D(P, N, _, L, K, W, re) {
1135
1135
  if (L = L || p, W = W || _, re !== t) {
1136
1136
  if (l) {
@@ -1141,9 +1141,9 @@ function Xr() {
1141
1141
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1142
1142
  var M = L + ":" + _;
1143
1143
  !m[M] && // Avoid spamming the console because they are often not actionable except for lib authors
1144
- w < 3 && (a(
1144
+ S < 3 && (a(
1145
1145
  "You are manually calling a React.PropTypes validation function for the `" + W + "` prop on `" + L + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
1146
- ), m[M] = !0, w++);
1146
+ ), m[M] = !0, S++);
1147
1147
  }
1148
1148
  }
1149
1149
  return N[_] == null ? P ? N[_] === null ? new y("The " + K + " `" + W + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new y("The " + K + " `" + W + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : d(N, _, L, K, W);
@@ -1152,8 +1152,8 @@ function Xr() {
1152
1152
  return T.isRequired = D.bind(null, !0), T;
1153
1153
  }
1154
1154
  function E(d) {
1155
- function m(w, D, T, P, N, _) {
1156
- var L = w[D], K = z(L);
1155
+ function m(S, D, T, P, N, _) {
1156
+ var L = S[D], K = z(L);
1157
1157
  if (K !== d) {
1158
1158
  var W = U(L);
1159
1159
  return new y(
@@ -1163,16 +1163,16 @@ function Xr() {
1163
1163
  }
1164
1164
  return null;
1165
1165
  }
1166
- return S(m);
1166
+ return w(m);
1167
1167
  }
1168
1168
  function b() {
1169
- return S(o);
1169
+ return w(o);
1170
1170
  }
1171
1171
  function O(d) {
1172
- function m(w, D, T, P, N) {
1172
+ function m(S, D, T, P, N) {
1173
1173
  if (typeof d != "function")
1174
1174
  return new y("Property `" + N + "` of component `" + T + "` has invalid PropType notation inside arrayOf.");
1175
- var _ = w[D];
1175
+ var _ = S[D];
1176
1176
  if (!Array.isArray(_)) {
1177
1177
  var L = z(_);
1178
1178
  return new y("Invalid " + P + " `" + N + "` of type " + ("`" + L + "` supplied to `" + T + "`, expected an array."));
@@ -1184,47 +1184,47 @@ function Xr() {
1184
1184
  }
1185
1185
  return null;
1186
1186
  }
1187
- return S(m);
1187
+ return w(m);
1188
1188
  }
1189
1189
  function R() {
1190
- function d(m, w, D, T, P) {
1191
- var N = m[w];
1190
+ function d(m, S, D, T, P) {
1191
+ var N = m[S];
1192
1192
  if (!i(N)) {
1193
1193
  var _ = z(N);
1194
1194
  return new y("Invalid " + T + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + D + "`, expected a single ReactElement."));
1195
1195
  }
1196
1196
  return null;
1197
1197
  }
1198
- return S(d);
1198
+ return w(d);
1199
1199
  }
1200
1200
  function v() {
1201
- function d(m, w, D, T, P) {
1202
- var N = m[w];
1203
- if (!n.isValidElementType(N)) {
1201
+ function d(m, S, D, T, P) {
1202
+ var N = m[S];
1203
+ if (!r.isValidElementType(N)) {
1204
1204
  var _ = z(N);
1205
1205
  return new y("Invalid " + T + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + D + "`, expected a single ReactElement type."));
1206
1206
  }
1207
1207
  return null;
1208
1208
  }
1209
- return S(d);
1209
+ return w(d);
1210
1210
  }
1211
1211
  function $(d) {
1212
- function m(w, D, T, P, N) {
1213
- if (!(w[D] instanceof d)) {
1214
- var _ = d.name || p, L = k(w[D]);
1212
+ function m(S, D, T, P, N) {
1213
+ if (!(S[D] instanceof d)) {
1214
+ var _ = d.name || p, L = k(S[D]);
1215
1215
  return new y("Invalid " + P + " `" + N + "` of type " + ("`" + L + "` supplied to `" + T + "`, expected ") + ("instance of `" + _ + "`."));
1216
1216
  }
1217
1217
  return null;
1218
1218
  }
1219
- return S(m);
1219
+ return w(m);
1220
1220
  }
1221
1221
  function j(d) {
1222
1222
  if (!Array.isArray(d))
1223
1223
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
1224
1224
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
1225
1225
  ) : a("Invalid argument supplied to oneOf, expected an array.")), o;
1226
- function m(w, D, T, P, N) {
1227
- for (var _ = w[D], L = 0; L < d.length; L++)
1226
+ function m(S, D, T, P, N) {
1227
+ for (var _ = S[D], L = 0; L < d.length; L++)
1228
1228
  if (h(_, d[L]))
1229
1229
  return null;
1230
1230
  var K = JSON.stringify(d, function(re, A) {
@@ -1233,33 +1233,33 @@ function Xr() {
1233
1233
  });
1234
1234
  return new y("Invalid " + P + " `" + N + "` of value `" + String(_) + "` " + ("supplied to `" + T + "`, expected one of " + K + "."));
1235
1235
  }
1236
- return S(m);
1236
+ return w(m);
1237
1237
  }
1238
1238
  function V(d) {
1239
- function m(w, D, T, P, N) {
1239
+ function m(S, D, T, P, N) {
1240
1240
  if (typeof d != "function")
1241
1241
  return new y("Property `" + N + "` of component `" + T + "` has invalid PropType notation inside objectOf.");
1242
- var _ = w[D], L = z(_);
1242
+ var _ = S[D], L = z(_);
1243
1243
  if (L !== "object")
1244
1244
  return new y("Invalid " + P + " `" + N + "` of type " + ("`" + L + "` supplied to `" + T + "`, expected an object."));
1245
1245
  for (var K in _)
1246
- if (r(_, K)) {
1246
+ if (n(_, K)) {
1247
1247
  var W = d(_, K, T, P, N + "." + K, t);
1248
1248
  if (W instanceof Error)
1249
1249
  return W;
1250
1250
  }
1251
1251
  return null;
1252
1252
  }
1253
- return S(m);
1253
+ return w(m);
1254
1254
  }
1255
1255
  function F(d) {
1256
1256
  if (!Array.isArray(d))
1257
1257
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), o;
1258
1258
  for (var m = 0; m < d.length; m++) {
1259
- var w = d[m];
1260
- if (typeof w != "function")
1259
+ var S = d[m];
1260
+ if (typeof S != "function")
1261
1261
  return a(
1262
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + B(w) + " at index " + m + "."
1262
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + B(S) + " at index " + m + "."
1263
1263
  ), o;
1264
1264
  }
1265
1265
  function D(T, P, N, _, L) {
@@ -1267,27 +1267,27 @@ function Xr() {
1267
1267
  var re = d[W], A = re(T, P, N, _, L, t);
1268
1268
  if (A == null)
1269
1269
  return null;
1270
- A.data && r(A.data, "expectedType") && K.push(A.data.expectedType);
1270
+ A.data && n(A.data, "expectedType") && K.push(A.data.expectedType);
1271
1271
  }
1272
1272
  var M = K.length > 0 ? ", expected one of type [" + K.join(", ") + "]" : "";
1273
1273
  return new y("Invalid " + _ + " `" + L + "` supplied to " + ("`" + N + "`" + M + "."));
1274
1274
  }
1275
- return S(D);
1275
+ return w(D);
1276
1276
  }
1277
1277
  function C() {
1278
- function d(m, w, D, T, P) {
1279
- return q(m[w]) ? null : new y("Invalid " + T + " `" + P + "` supplied to " + ("`" + D + "`, expected a ReactNode."));
1278
+ function d(m, S, D, T, P) {
1279
+ return q(m[S]) ? null : new y("Invalid " + T + " `" + P + "` supplied to " + ("`" + D + "`, expected a ReactNode."));
1280
1280
  }
1281
- return S(d);
1281
+ return w(d);
1282
1282
  }
1283
- function I(d, m, w, D, T) {
1283
+ function I(d, m, S, D, T) {
1284
1284
  return new y(
1285
- (d || "React class") + ": " + m + " type `" + w + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + T + "`."
1285
+ (d || "React class") + ": " + m + " type `" + S + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + T + "`."
1286
1286
  );
1287
1287
  }
1288
1288
  function Y(d) {
1289
- function m(w, D, T, P, N) {
1290
- var _ = w[D], L = z(_);
1289
+ function m(S, D, T, P, N) {
1290
+ var _ = S[D], L = z(_);
1291
1291
  if (L !== "object")
1292
1292
  return new y("Invalid " + P + " `" + N + "` of type `" + L + "` " + ("supplied to `" + T + "`, expected `object`."));
1293
1293
  for (var K in d) {
@@ -1300,21 +1300,21 @@ function Xr() {
1300
1300
  }
1301
1301
  return null;
1302
1302
  }
1303
- return S(m);
1303
+ return w(m);
1304
1304
  }
1305
1305
  function J(d) {
1306
- function m(w, D, T, P, N) {
1307
- var _ = w[D], L = z(_);
1306
+ function m(S, D, T, P, N) {
1307
+ var _ = S[D], L = z(_);
1308
1308
  if (L !== "object")
1309
1309
  return new y("Invalid " + P + " `" + N + "` of type `" + L + "` " + ("supplied to `" + T + "`, expected `object`."));
1310
- var K = e({}, w[D], d);
1310
+ var K = e({}, S[D], d);
1311
1311
  for (var W in K) {
1312
1312
  var re = d[W];
1313
- if (r(d, W) && typeof re != "function")
1313
+ if (n(d, W) && typeof re != "function")
1314
1314
  return I(T, P, N, W, U(re));
1315
1315
  if (!re)
1316
1316
  return new y(
1317
- "Invalid " + P + " `" + N + "` key `" + W + "` supplied to `" + T + "`.\nBad object: " + JSON.stringify(w[D], null, " ") + `
1317
+ "Invalid " + P + " `" + N + "` key `" + W + "` supplied to `" + T + "`.\nBad object: " + JSON.stringify(S[D], null, " ") + `
1318
1318
  Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
1319
1319
  );
1320
1320
  var A = re(_, W, T, P, N + "." + W, t);
@@ -1323,7 +1323,7 @@ Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
1323
1323
  }
1324
1324
  return null;
1325
1325
  }
1326
- return S(m);
1326
+ return w(m);
1327
1327
  }
1328
1328
  function q(d) {
1329
1329
  switch (typeof d) {
@@ -1340,13 +1340,13 @@ Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
1340
1340
  return !0;
1341
1341
  var m = f(d);
1342
1342
  if (m) {
1343
- var w = m.call(d), D;
1343
+ var S = m.call(d), D;
1344
1344
  if (m !== d.entries) {
1345
- for (; !(D = w.next()).done; )
1345
+ for (; !(D = S.next()).done; )
1346
1346
  if (!q(D.value))
1347
1347
  return !1;
1348
1348
  } else
1349
- for (; !(D = w.next()).done; ) {
1349
+ for (; !(D = S.next()).done; ) {
1350
1350
  var T = D.value;
1351
1351
  if (T && !q(T[1]))
1352
1352
  return !1;
@@ -1401,39 +1401,39 @@ var ot, It;
1401
1401
  function Zr() {
1402
1402
  if (It) return ot;
1403
1403
  It = 1;
1404
- var n = /* @__PURE__ */ mt();
1404
+ var r = /* @__PURE__ */ mt();
1405
1405
  function e() {
1406
1406
  }
1407
1407
  function t() {
1408
1408
  }
1409
1409
  return t.resetWarningCache = e, ot = function() {
1410
- function r(o, i, l, c, u, f) {
1411
- if (f !== n) {
1410
+ function n(o, i, l, c, u, f) {
1411
+ if (f !== r) {
1412
1412
  var p = new Error(
1413
1413
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
1414
1414
  );
1415
1415
  throw p.name = "Invariant Violation", p;
1416
1416
  }
1417
1417
  }
1418
- r.isRequired = r;
1418
+ n.isRequired = n;
1419
1419
  function s() {
1420
- return r;
1420
+ return n;
1421
1421
  }
1422
1422
  var a = {
1423
- array: r,
1424
- bigint: r,
1425
- bool: r,
1426
- func: r,
1427
- number: r,
1428
- object: r,
1429
- string: r,
1430
- symbol: r,
1431
- any: r,
1423
+ array: n,
1424
+ bigint: n,
1425
+ bool: n,
1426
+ func: n,
1427
+ number: n,
1428
+ object: n,
1429
+ string: n,
1430
+ symbol: n,
1431
+ any: n,
1432
1432
  arrayOf: s,
1433
- element: r,
1434
- elementType: r,
1433
+ element: n,
1434
+ elementType: n,
1435
1435
  instanceOf: s,
1436
- node: r,
1436
+ node: n,
1437
1437
  objectOf: s,
1438
1438
  oneOf: s,
1439
1439
  oneOfType: s,
@@ -1447,43 +1447,43 @@ function Zr() {
1447
1447
  }
1448
1448
  var Nt;
1449
1449
  function Qr() {
1450
- if (Nt) return _e.exports;
1450
+ if (Nt) return Me.exports;
1451
1451
  if (Nt = 1, process.env.NODE_ENV !== "production") {
1452
- var n = cr(), e = !0;
1453
- _e.exports = /* @__PURE__ */ Xr()(n.isElement, e);
1452
+ var r = cr(), e = !0;
1453
+ Me.exports = /* @__PURE__ */ Xr()(r.isElement, e);
1454
1454
  } else
1455
- _e.exports = /* @__PURE__ */ Zr()();
1456
- return _e.exports;
1455
+ Me.exports = /* @__PURE__ */ Zr()();
1456
+ return Me.exports;
1457
1457
  }
1458
1458
  var ae = /* @__PURE__ */ Qr(), en = function(e) {
1459
1459
  var t = (e == null ? void 0 : e.ownerDocument) || document;
1460
1460
  return t.defaultView || window;
1461
1461
  }, tn = function(e, t) {
1462
- for (var r in e)
1463
- if (!(r in t))
1462
+ for (var n in e)
1463
+ if (!(n in t))
1464
1464
  return !0;
1465
1465
  for (var s in t)
1466
1466
  if (e[s] !== t[s])
1467
1467
  return !0;
1468
1468
  return !1;
1469
- }, rn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Fe = "http://www.w3.org/2000/svg", _t = "http://www.w3.org/1999/xlink", Be = /* @__PURE__ */ function(n) {
1469
+ }, rn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Ve = "http://www.w3.org/2000/svg", _t = "http://www.w3.org/1999/xlink", Oe = /* @__PURE__ */ function(r) {
1470
1470
  function e() {
1471
- for (var r, s = arguments.length, a = new Array(s), o = 0; o < s; o++)
1471
+ for (var n, s = arguments.length, a = new Array(s), o = 0; o < s; o++)
1472
1472
  a[o] = arguments[o];
1473
- return r = n.call.apply(n, [this].concat(a)) || this, r.initialState = {
1473
+ return n = r.call.apply(r, [this].concat(a)) || this, n.initialState = {
1474
1474
  hasError: !1,
1475
1475
  isLoading: !0
1476
- }, r.state = r.initialState, r._isMounted = !1, r.reactWrapper = void 0, r.nonReactWrapper = void 0, r.refCallback = function(i) {
1477
- r.reactWrapper = i;
1478
- }, r;
1476
+ }, n.state = n.initialState, n._isMounted = !1, n.reactWrapper = void 0, n.nonReactWrapper = void 0, n.refCallback = function(i) {
1477
+ n.reactWrapper = i;
1478
+ }, n;
1479
1479
  }
1480
- _r(e, n);
1480
+ _r(e, r);
1481
1481
  var t = e.prototype;
1482
1482
  return t.renderSVG = function() {
1483
1483
  var s = this;
1484
1484
  if (this.reactWrapper instanceof en(this.reactWrapper).Node) {
1485
- var a = this.props, o = a.desc, i = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, u = a.src, f = a.title, p = a.useRequestCache, g = this.props.onError, h = this.props.beforeInjection, y = this.props.afterInjection, S = this.props.wrapper, E, b;
1486
- S === "svg" ? (E = document.createElementNS(Fe, S), E.setAttribute("xmlns", Fe), E.setAttribute("xmlns:xlink", _t), b = document.createElementNS(Fe, S)) : (E = document.createElement(S), b = document.createElement(S)), E.appendChild(b), b.dataset.src = u, this.nonReactWrapper = this.reactWrapper.appendChild(E);
1485
+ var a = this.props, o = a.desc, i = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, u = a.src, f = a.title, p = a.useRequestCache, g = this.props.onError, h = this.props.beforeInjection, y = this.props.afterInjection, w = this.props.wrapper, E, b;
1486
+ w === "svg" ? (E = document.createElementNS(Ve, w), E.setAttribute("xmlns", Ve), E.setAttribute("xmlns:xlink", _t), b = document.createElementNS(Ve, w)) : (E = document.createElement(w), b = document.createElement(w)), E.appendChild(b), b.dataset.src = u, this.nonReactWrapper = this.reactWrapper.appendChild(E);
1487
1487
  var O = function(j) {
1488
1488
  if (s.removeSVG(), !s._isMounted) {
1489
1489
  g(j);
@@ -1548,7 +1548,7 @@ var ae = /* @__PURE__ */ Qr(), en = function(e) {
1548
1548
  this._isMounted = !0, this.renderSVG();
1549
1549
  }, t.componentDidUpdate = function(s) {
1550
1550
  var a = this;
1551
- tn(Ke({}, s), this.props) && this.setState(function() {
1551
+ tn(Be({}, s), this.props) && this.setState(function() {
1552
1552
  return a.initialState;
1553
1553
  }, function() {
1554
1554
  a.removeSVG(), a.renderSVG();
@@ -1563,15 +1563,15 @@ var ae = /* @__PURE__ */ Qr(), en = function(e) {
1563
1563
  var o = s.loading;
1564
1564
  s.renumerateIRIElements, s.src, s.title, s.useRequestCache;
1565
1565
  var i = s.wrapper, l = Nr(s, rn), c = i;
1566
- return /* @__PURE__ */ Le.createElement(c, Ke({}, l, {
1566
+ return /* @__PURE__ */ ke.createElement(c, Be({}, l, {
1567
1567
  ref: this.refCallback
1568
1568
  }, i === "svg" ? {
1569
- xmlns: Fe,
1569
+ xmlns: Ve,
1570
1570
  xmlnsXlink: _t
1571
- } : {}), this.state.isLoading && o && /* @__PURE__ */ Le.createElement(o, null), this.state.hasError && a && /* @__PURE__ */ Le.createElement(a, null));
1571
+ } : {}), this.state.isLoading && o && /* @__PURE__ */ ke.createElement(o, null), this.state.hasError && a && /* @__PURE__ */ ke.createElement(a, null));
1572
1572
  }, e;
1573
- }(Le.Component);
1574
- Be.defaultProps = {
1573
+ }(ke.Component);
1574
+ Oe.defaultProps = {
1575
1575
  afterInjection: function() {
1576
1576
  },
1577
1577
  beforeInjection: function() {
@@ -1588,7 +1588,7 @@ Be.defaultProps = {
1588
1588
  useRequestCache: !0,
1589
1589
  wrapper: "div"
1590
1590
  };
1591
- Be.propTypes = {
1591
+ Oe.propTypes = {
1592
1592
  afterInjection: ae.func,
1593
1593
  beforeInjection: ae.func,
1594
1594
  desc: ae.string,
@@ -1607,14 +1607,14 @@ let ft = {
1607
1607
  assets: "/"
1608
1608
  // Default for storybook isolation development
1609
1609
  };
1610
- const Qn = (n) => {
1611
- ft = { ...ft, ...n };
1612
- }, Mt = (n) => `${ft.assets}/${n}`.replace(/\/+/g, "/"), ge = ar.memo(
1610
+ const Qn = (r) => {
1611
+ ft = { ...ft, ...r };
1612
+ }, Mt = (r) => `${ft.assets}/${r}`.replace(/\/+/g, "/"), ge = ar.memo(
1613
1613
  ({
1614
- icon: n,
1614
+ icon: r,
1615
1615
  width: e,
1616
1616
  height: t,
1617
- placeholderIcon: r,
1617
+ placeholderIcon: n,
1618
1618
  color: s,
1619
1619
  disabled: a,
1620
1620
  state: o = "base",
@@ -1624,15 +1624,30 @@ const Qn = (n) => {
1624
1624
  spin: u = !1,
1625
1625
  title: f
1626
1626
  }) => {
1627
- const [p, g] = Q(n), h = n && (n.indexOf(".") > -1 || n.indexOf("/") > -1 || n.indexOf("\\") > -1), y = Mt(`assets/svg/${n}.svg`), S = Mt(
1628
- `assets/svg/${r}.svg`
1629
- ), E = {
1627
+ const [p, g] = Q(r), h = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), y = h && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), w = Mt(`assets/svg/${r}.svg`), E = Mt(
1628
+ `assets/svg/${n}.svg`
1629
+ ), b = {
1630
1630
  img: `${c ? "smp-image-interactable" : ""}`,
1631
1631
  svg: `smp-icon ${o ? `smp-icon-${o}` : ""} ${i ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${u ? "smp-icon-spin" : ""}`
1632
- }, b = () => {
1632
+ }, O = () => {
1633
1633
  !a && l && l();
1634
1634
  };
1635
- return /* @__PURE__ */ x.jsx(x.Fragment, { children: h ? (
1635
+ return /* @__PURE__ */ x.jsx(x.Fragment, { children: y ? /* @__PURE__ */ x.jsx(
1636
+ Oe,
1637
+ {
1638
+ src: r,
1639
+ fallback: () => /* @__PURE__ */ x.jsx(Oe, { src: E, wrapper: "svg" }),
1640
+ width: e || "1rem",
1641
+ height: t || "1rem",
1642
+ wrapper: "svg",
1643
+ title: f,
1644
+ role: "application",
1645
+ fill: s,
1646
+ "aria-disabled": a,
1647
+ className: b.svg,
1648
+ onClick: O
1649
+ }
1650
+ ) : h ? (
1636
1651
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
1637
1652
  /* @__PURE__ */ x.jsx(
1638
1653
  "img",
@@ -1641,20 +1656,20 @@ const Qn = (n) => {
1641
1656
  width: e || "16px",
1642
1657
  height: t || "auto",
1643
1658
  alt: f,
1644
- onError: () => g(S),
1645
- onClick: b,
1646
- className: E.img,
1659
+ onError: () => g(E),
1660
+ onClick: O,
1661
+ className: b.img,
1647
1662
  title: f,
1648
- onKeyDown: (O) => {
1649
- (O.key === "Enter" || O.key === " ") && b();
1663
+ onKeyDown: (R) => {
1664
+ (R.key === "Enter" || R.key === " ") && O();
1650
1665
  }
1651
1666
  }
1652
1667
  )
1653
1668
  ) : /* @__PURE__ */ x.jsx(
1654
- Be,
1669
+ Oe,
1655
1670
  {
1656
- src: y,
1657
- fallback: () => /* @__PURE__ */ x.jsx(Be, { src: S, wrapper: "svg" }),
1671
+ src: w,
1672
+ fallback: () => /* @__PURE__ */ x.jsx(Oe, { src: E, wrapper: "svg" }),
1658
1673
  width: e || "1rem",
1659
1674
  height: t || "1rem",
1660
1675
  wrapper: "svg",
@@ -1662,16 +1677,16 @@ const Qn = (n) => {
1662
1677
  role: "application",
1663
1678
  fill: s,
1664
1679
  "aria-disabled": a,
1665
- className: E.svg,
1666
- onClick: b
1680
+ className: b.svg,
1681
+ onClick: O
1667
1682
  }
1668
1683
  ) });
1669
1684
  }
1670
- ), Oe = ({
1671
- disabled: n,
1685
+ ), Re = ({
1686
+ disabled: r,
1672
1687
  readOnly: e,
1673
1688
  bindValue: t,
1674
- icon: r,
1689
+ icon: n,
1675
1690
  onBlur: s,
1676
1691
  onChange: a,
1677
1692
  placeholder: o,
@@ -1684,7 +1699,7 @@ const Qn = (n) => {
1684
1699
  ref: g,
1685
1700
  inputRef: h,
1686
1701
  onKeyDown: y,
1687
- inputType: S = "text",
1702
+ inputType: w = "text",
1688
1703
  ariaLabel: E = "input field",
1689
1704
  label: b,
1690
1705
  helperText: O = !1,
@@ -1696,23 +1711,23 @@ const Qn = (n) => {
1696
1711
  a == null || a(Y.target.value);
1697
1712
  }, I = {
1698
1713
  wrapper: `smp-textfield-wrapper ${$ ? "smp-textfield-fullWidth" : ""}`,
1699
- container: `smp-textfield ${n ? "smp-textfield-disabled" : ""} ${e ? "smp-textfield-readOnly" : ""} ${o ? "smp-textfield-placeholder" : ""} ${l ? `smp-textfield-${l}` : ""} ${j ? `smp-textfield-${j}` : ""} ${u ? `smp-textfield-variant-${u}` : ""} ${v ? `smp-textfield-${v}` : ""}`,
1714
+ container: `smp-textfield ${r ? "smp-textfield-disabled" : ""} ${e ? "smp-textfield-readOnly" : ""} ${o ? "smp-textfield-placeholder" : ""} ${l ? `smp-textfield-${l}` : ""} ${j ? `smp-textfield-${j}` : ""} ${u ? `smp-textfield-variant-${u}` : ""} ${v ? `smp-textfield-${v}` : ""}`,
1700
1715
  input: "smp-textfield-input "
1701
1716
  };
1702
1717
  return /* @__PURE__ */ x.jsxs("div", { className: I.wrapper, "data-component": "textfield", children: [
1703
- b && /* @__PURE__ */ x.jsx(ir, { label: b, disabled: n }),
1718
+ b && /* @__PURE__ */ x.jsx(ir, { label: b, disabled: r }),
1704
1719
  /* @__PURE__ */ x.jsxs("div", { className: I.container, ref: g, children: [
1705
- r && /* @__PURE__ */ x.jsx(ge, { icon: r, disabled: n }),
1720
+ n && /* @__PURE__ */ x.jsx(ge, { icon: n, disabled: r }),
1706
1721
  /* @__PURE__ */ x.jsx(
1707
1722
  "input",
1708
1723
  {
1709
- type: S,
1724
+ type: w,
1710
1725
  value: t,
1711
1726
  placeholder: o,
1712
1727
  onChange: C,
1713
1728
  onBlur: s,
1714
1729
  className: I.input,
1715
- disabled: n,
1730
+ disabled: r,
1716
1731
  readOnly: e,
1717
1732
  onKeyDown: y,
1718
1733
  "aria-label": E,
@@ -1723,7 +1738,7 @@ const Qn = (n) => {
1723
1738
  ge,
1724
1739
  {
1725
1740
  icon: V,
1726
- disabled: n,
1741
+ disabled: r,
1727
1742
  state: j,
1728
1743
  onClick: p,
1729
1744
  rotated: f
@@ -1734,25 +1749,25 @@ const Qn = (n) => {
1734
1749
  Ir,
1735
1750
  {
1736
1751
  helperText: R,
1737
- disabled: n,
1752
+ disabled: r,
1738
1753
  state: j
1739
1754
  }
1740
1755
  )
1741
1756
  ] });
1742
1757
  };
1743
1758
  function nn({
1744
- items: n,
1759
+ items: r,
1745
1760
  itemHeight: e,
1746
1761
  containerHeight: t,
1747
- overscan: r = 5
1762
+ overscan: n = 5
1748
1763
  }) {
1749
- const [s, a] = Q(0), o = be(null), i = n.length * e, l = Math.max(0, Math.floor(s / e) - r), c = Math.min(
1750
- n.length - 1,
1751
- Math.floor((s + t) / e) + r
1764
+ const [s, a] = Q(0), o = be(null), i = r.length * e, l = Math.max(0, Math.floor(s / e) - n), c = Math.min(
1765
+ r.length - 1,
1766
+ Math.floor((s + t) / e) + n
1752
1767
  ), u = [];
1753
1768
  for (let g = l; g <= c; g++)
1754
1769
  u.push({
1755
- item: n[g],
1770
+ item: r[g],
1756
1771
  index: g,
1757
1772
  offsetTop: g * e
1758
1773
  });
@@ -1761,8 +1776,8 @@ function nn({
1761
1776
  a(h);
1762
1777
  }, []), p = (g) => {
1763
1778
  if (!o.current) return;
1764
- const h = g * e, y = h + e, S = o.current, E = S.scrollTop, b = E + t;
1765
- h < E ? S.scrollTop = h : y > b && (S.scrollTop = y - t);
1779
+ const h = g * e, y = h + e, w = o.current, E = w.scrollTop, b = E + t;
1780
+ h < E ? w.scrollTop = h : y > b && (w.scrollTop = y - t);
1766
1781
  };
1767
1782
  return {
1768
1783
  virtualItems: u,
@@ -1794,10 +1809,10 @@ function nn({
1794
1809
  };
1795
1810
  }
1796
1811
  const sn = 10, fr = ({
1797
- id: n,
1812
+ id: r,
1798
1813
  options: e,
1799
1814
  displayMode: t,
1800
- ref: r,
1815
+ ref: n,
1801
1816
  showFilter: s,
1802
1817
  selectedIndex: a = null,
1803
1818
  // current outline element
@@ -1810,12 +1825,12 @@ const sn = 10, fr = ({
1810
1825
  var C;
1811
1826
  const [u, f] = Q(""), p = 24, [g, h] = Q(
1812
1827
  a !== null ? a : -1
1813
- ), y = s !== void 0 ? s : e.length > sn, S = u ? e.filter(
1828
+ ), y = s !== void 0 ? s : e.length > sn, w = u ? e.filter(
1814
1829
  (I) => I.label.toLowerCase().includes(u.toLowerCase())
1815
1830
  ) : e, E = (I) => {
1816
1831
  f(I);
1817
1832
  }, { virtualItems: b, containerProps: O, innerProps: R, scrollToIndex: v } = nn({
1818
- items: S,
1833
+ items: w,
1819
1834
  itemHeight: p,
1820
1835
  containerHeight: 200,
1821
1836
  overscan: 5
@@ -1823,14 +1838,14 @@ const sn = 10, fr = ({
1823
1838
  oe(() => {
1824
1839
  a !== null && a !== g && h(a);
1825
1840
  }, [a]), oe(() => {
1826
- g >= 0 && g < S.length && v(g);
1827
- }, [g, S]);
1841
+ g >= 0 && g < w.length && v(g);
1842
+ }, [g, w]);
1828
1843
  const $ = (I) => {
1829
1844
  if (I.key === "ArrowDown" || I.key === "ArrowUp") {
1830
1845
  I.preventDefault();
1831
1846
  let Y = g;
1832
- I.key === "ArrowDown" ? Y = g < S.length - 1 ? g + 1 : 0 : I.key === "ArrowUp" && (Y = g > 0 ? g - 1 : S.length - 1), h(Y);
1833
- } else I.key === "Enter" ? g >= 0 && g < S.length && (l == null || l(S[g])) : I.key === "Escape" && (I.preventDefault(), I.stopPropagation());
1847
+ I.key === "ArrowDown" ? Y = g < w.length - 1 ? g + 1 : 0 : I.key === "ArrowUp" && (Y = g > 0 ? g - 1 : w.length - 1), h(Y);
1848
+ } else I.key === "Enter" ? g >= 0 && g < w.length && (l == null || l(w[g])) : I.key === "Escape" && (I.preventDefault(), I.stopPropagation());
1834
1849
  c && c(I);
1835
1850
  }, j = (I) => {
1836
1851
  $(I);
@@ -1845,8 +1860,8 @@ const sn = 10, fr = ({
1845
1860
  return /* @__PURE__ */ x.jsxs(
1846
1861
  "div",
1847
1862
  {
1848
- id: n,
1849
- ref: r,
1863
+ id: r,
1864
+ ref: n,
1850
1865
  className: F.wrapper,
1851
1866
  "data-component": "list",
1852
1867
  style: {
@@ -1854,7 +1869,7 @@ const sn = 10, fr = ({
1854
1869
  },
1855
1870
  children: [
1856
1871
  y && /* @__PURE__ */ x.jsx(
1857
- Oe,
1872
+ Re,
1858
1873
  {
1859
1874
  bindValue: u,
1860
1875
  placeholder: "Search...",
@@ -1871,7 +1886,7 @@ const sn = 10, fr = ({
1871
1886
  role: "listbox",
1872
1887
  "aria-label": "List",
1873
1888
  onKeyDown: V,
1874
- "aria-activedescendant": g >= 0 && g < S.length ? (C = S[g]) == null ? void 0 : C.id : void 0,
1889
+ "aria-activedescendant": g >= 0 && g < w.length ? (C = w[g]) == null ? void 0 : C.id : void 0,
1875
1890
  children: /* @__PURE__ */ x.jsx("div", { ...R, className: F.virtualScroll, children: b.map(({ item: I, index: Y, offsetTop: J }) => {
1876
1891
  const q = o.includes(I.id);
1877
1892
  return (
@@ -1895,7 +1910,7 @@ const sn = 10, fr = ({
1895
1910
  l == null || l(I), h(Y);
1896
1911
  },
1897
1912
  children: [
1898
- qe(I.id, I.label, t),
1913
+ Ke(I.id, I.label, t),
1899
1914
  q && /* @__PURE__ */ x.jsx(ge, { icon: "check", width: 16 })
1900
1915
  ]
1901
1916
  },
@@ -1909,35 +1924,35 @@ const sn = 10, fr = ({
1909
1924
  }
1910
1925
  );
1911
1926
  }, dr = ({
1912
- displayMode: n,
1927
+ displayMode: r,
1913
1928
  bindValue: e,
1914
1929
  optionalDisplayValue: t,
1915
- ...r
1930
+ ...n
1916
1931
  }) => {
1917
1932
  const [s, a] = Q(
1918
- qe(e, t, n)
1933
+ Ke(e, t, r)
1919
1934
  );
1920
1935
  return oe(() => {
1921
1936
  a(e);
1922
1937
  }, [e]), oe(() => {
1923
1938
  a(
1924
- qe(e, t, n)
1939
+ Ke(e, t, r)
1925
1940
  );
1926
- }, [t, n]), /* @__PURE__ */ x.jsx(Oe, { ...r, bindValue: s });
1927
- }, an = (n) => {
1941
+ }, [t, r]), /* @__PURE__ */ x.jsx(Re, { ...n, bindValue: s });
1942
+ }, an = (r) => {
1928
1943
  const e = be(null);
1929
1944
  return oe(() => () => {
1930
1945
  e.current && clearTimeout(e.current);
1931
- }, []), (r) => {
1946
+ }, []), (n) => {
1932
1947
  e.current && clearTimeout(e.current), e.current = setTimeout(() => {
1933
- r();
1934
- }, n);
1948
+ n();
1949
+ }, r);
1935
1950
  };
1936
1951
  }, pr = ({
1937
- bindValue: n,
1952
+ bindValue: r,
1938
1953
  optionalDisplayValue: e,
1939
1954
  options: t,
1940
- displayMode: r,
1955
+ displayMode: n,
1941
1956
  listDisplayMode: s = "Both",
1942
1957
  minimumChars: a = 3,
1943
1958
  placeholder: o,
@@ -1948,18 +1963,18 @@ const sn = 10, fr = ({
1948
1963
  _multiActiveIndex: f,
1949
1964
  ...p
1950
1965
  }) => {
1951
- const [g, h] = Q(n), [y, S] = Q(e), [E, b] = Q(!1), [O, R] = Q(t || []), [v, $] = Q(0), [j, V] = Q([n]), { anchorRef: F, targetRef: C, anchorWidth: I } = gt({
1966
+ const [g, h] = Q(r), [y, w] = Q(e), [E, b] = Q(!1), [O, R] = Q(t || []), [v, $] = Q(0), [j, V] = Q([r]), { anchorRef: F, targetRef: C, anchorWidth: I } = gt({
1952
1967
  position: "bottom",
1953
1968
  enabled: E
1954
1969
  });
1955
- He(C, () => b(!1));
1970
+ qe(C, () => b(!1));
1956
1971
  const Y = an(400), J = (U) => {
1957
1972
  U.length >= a ? i && u && Y(async () => {
1958
1973
  const B = await u(i, U);
1959
1974
  R(B), $(B.length > 0 ? 0 : -1), b(!0);
1960
- }) : b(!1), h(U), S(e), l || c == null || c(U, e);
1975
+ }) : b(!1), h(U), w(e), l || c == null || c(U, e);
1961
1976
  }, q = (U) => {
1962
- l ? (h(""), S("")) : (h(U.id), S(U.label)), c == null || c(U.id, U.label);
1977
+ l ? (h(""), w("")) : (h(U.id), w(U.label)), c == null || c(U.id, U.label);
1963
1978
  const B = O.findIndex((k) => k.id === U.id);
1964
1979
  $(B), V([U.id]), b(!1);
1965
1980
  }, ne = (U) => {
@@ -1971,7 +1986,7 @@ const sn = 10, fr = ({
1971
1986
  }
1972
1987
  switch (U.key) {
1973
1988
  case "Enter":
1974
- v >= 0 && v < O.length ? q(O[v]) : l && (c == null || c(g, ""), b(!1), h(""), S(""));
1989
+ v >= 0 && v < O.length ? q(O[v]) : l && (c == null || c(g, ""), b(!1), h(""), w(""));
1975
1990
  break;
1976
1991
  case "Escape":
1977
1992
  b(!1), $(-1);
@@ -1985,7 +2000,7 @@ const sn = 10, fr = ({
1985
2000
  ...p,
1986
2001
  bindValue: g,
1987
2002
  optionalDisplayValue: y,
1988
- displayMode: r,
2003
+ displayMode: n,
1989
2004
  shapeIcon: "magnify",
1990
2005
  placeholder: o,
1991
2006
  ref: F,
@@ -2009,21 +2024,21 @@ const sn = 10, fr = ({
2009
2024
  }
2010
2025
  )
2011
2026
  ] });
2012
- }, Ft = (n) => ({
2027
+ }, Ft = (r) => ({
2013
2028
  extraSmall: 12,
2014
2029
  small: 14,
2015
2030
  base: 18,
2016
2031
  large: 20,
2017
2032
  extraLarge: 24
2018
- })[n], Vt = (n) => ({
2033
+ })[r], Vt = (r) => ({
2019
2034
  primary: "onPrimary",
2020
2035
  danger: "onDanger",
2021
2036
  base: "base"
2022
- })[n], Ge = ({
2023
- bindValue: n,
2037
+ })[r], Ge = ({
2038
+ bindValue: r,
2024
2039
  onClick: e,
2025
2040
  ariaLabel: t,
2026
- icon: r,
2041
+ icon: n,
2027
2042
  disabled: s,
2028
2043
  sizing: a = "base",
2029
2044
  variant: o = "primary",
@@ -2049,26 +2064,26 @@ const sn = 10, fr = ({
2049
2064
  "aria-busy": f,
2050
2065
  title: p || g,
2051
2066
  children: f ? /* @__PURE__ */ x.jsx(ge, { icon: "spinner", state: Vt(o), spin: !0 }) : /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
2052
- r && l && /* @__PURE__ */ x.jsx(
2067
+ n && l && /* @__PURE__ */ x.jsx(
2053
2068
  ge,
2054
2069
  {
2055
- icon: r,
2070
+ icon: n,
2056
2071
  disabled: s,
2057
2072
  state: Vt(o),
2058
2073
  width: Ft(a),
2059
2074
  height: Ft(a)
2060
2075
  }
2061
2076
  ),
2062
- c && n && /* @__PURE__ */ x.jsx("span", { children: n })
2077
+ c && r && /* @__PURE__ */ x.jsx("span", { children: r })
2063
2078
  ] })
2064
2079
  }
2065
2080
  );
2066
2081
  }, on = ({
2067
- bindValue: n,
2082
+ bindValue: r,
2068
2083
  onChange: e,
2069
2084
  onBlur: t
2070
2085
  }) => {
2071
- const r = (s) => {
2086
+ const n = (s) => {
2072
2087
  e && e(s.target.checked);
2073
2088
  };
2074
2089
  return /* @__PURE__ */ x.jsx(
@@ -2076,8 +2091,8 @@ const sn = 10, fr = ({
2076
2091
  {
2077
2092
  "data-component": "checkbox",
2078
2093
  type: "checkbox",
2079
- checked: n,
2080
- onChange: r,
2094
+ checked: r,
2095
+ onChange: n,
2081
2096
  onBlur: t
2082
2097
  }
2083
2098
  );
@@ -2087,19 +2102,19 @@ const sn = 10, fr = ({
2087
2102
  body: "h6",
2088
2103
  label: "label"
2089
2104
  }, cn = ({
2090
- variant: n = "body",
2105
+ variant: r = "body",
2091
2106
  bindValue: e,
2092
2107
  color: t,
2093
- ...r
2108
+ ...n
2094
2109
  }) => {
2095
- const s = ln[n], a = {
2096
- container: `smp-typography ${n ? `smp-typography-${n}` : ""} ${r.disabled ? "smp-typography-disabled" : ""}`
2110
+ const s = ln[r], a = {
2111
+ container: `smp-typography ${r ? `smp-typography-${r}` : ""} ${n.disabled ? "smp-typography-disabled" : ""}`
2097
2112
  };
2098
2113
  return /* @__PURE__ */ x.jsx(
2099
2114
  s,
2100
2115
  {
2101
2116
  className: a.container,
2102
- disabled: r.disabled,
2117
+ disabled: n.disabled,
2103
2118
  style: {
2104
2119
  "--smp-typography-color-base": t
2105
2120
  },
@@ -2107,10 +2122,10 @@ const sn = 10, fr = ({
2107
2122
  }
2108
2123
  );
2109
2124
  }, hr = ({
2110
- elements: n,
2125
+ elements: r,
2111
2126
  isEditable: e = !1,
2112
2127
  displayMode: t = "Both",
2113
- onChange: r,
2128
+ onChange: n,
2114
2129
  color: s,
2115
2130
  backgroundColor: a
2116
2131
  }) => {
@@ -2118,10 +2133,10 @@ const sn = 10, fr = ({
2118
2133
  container: `${["smp-chips-container"]}`,
2119
2134
  element: "smp-chips-element"
2120
2135
  }, i = (l) => {
2121
- r == null || r(n.filter((c, u) => u !== l));
2136
+ n == null || n(r.filter((c, u) => u !== l));
2122
2137
  };
2123
- return /* @__PURE__ */ x.jsx("div", { className: o.container, role: "list", "data-component": "chip", children: n.map((l, c) => {
2124
- const u = qe(
2138
+ return /* @__PURE__ */ x.jsx("div", { className: o.container, role: "list", "data-component": "chip", children: r.map((l, c) => {
2139
+ const u = Ke(
2125
2140
  l.bindValue,
2126
2141
  l.optionalDisplayValue,
2127
2142
  t
@@ -2158,15 +2173,15 @@ const sn = 10, fr = ({
2158
2173
  );
2159
2174
  }) });
2160
2175
  };
2161
- function gr(n, e) {
2176
+ function gr(r, e) {
2162
2177
  const t = be(null);
2163
2178
  oe(() => {
2164
- if (!n) return;
2165
- const r = typeof e == "object" && e !== null && "current" in e ? e.current : null;
2166
2179
  if (!r) return;
2180
+ const n = typeof e == "object" && e !== null && "current" in e ? e.current : null;
2181
+ if (!n) return;
2167
2182
  t.current = document.activeElement;
2168
- const s = () => r ? Array.from(
2169
- r.querySelectorAll(
2183
+ const s = () => n ? Array.from(
2184
+ n.querySelectorAll(
2170
2185
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
2171
2186
  )
2172
2187
  ).filter((c) => !c.hasAttribute("disabled") && c.offsetParent !== null) : [];
@@ -2181,7 +2196,7 @@ function gr(n, e) {
2181
2196
  const f = u[0], p = u[u.length - 1];
2182
2197
  c.shiftKey && document.activeElement === f ? (c.preventDefault(), p.focus()) : !c.shiftKey && document.activeElement === p && (c.preventDefault(), f.focus());
2183
2198
  }, i = (c) => {
2184
- if (r && !r.contains(c.target)) {
2199
+ if (n && !n.contains(c.target)) {
2185
2200
  c.preventDefault();
2186
2201
  const u = s();
2187
2202
  u.length > 0 && u[0].focus();
@@ -2195,13 +2210,13 @@ function gr(n, e) {
2195
2210
  (c = t.current) == null || c.focus();
2196
2211
  });
2197
2212
  };
2198
- }, [n, e]);
2213
+ }, [r, e]);
2199
2214
  }
2200
2215
  const un = ({
2201
- bindValue: n,
2216
+ bindValue: r,
2202
2217
  onChange: e,
2203
2218
  options: t = [],
2204
- optionalDisplayValue: r,
2219
+ optionalDisplayValue: n,
2205
2220
  displayMode: s,
2206
2221
  listDisplayMode: a = "Both",
2207
2222
  fun: o,
@@ -2209,11 +2224,11 @@ const un = ({
2209
2224
  multiActiveIndex: l,
2210
2225
  ...c
2211
2226
  }) => {
2212
- const [u, f] = Q(!1), [p, g] = Q(t), [h, y] = Q(-1), [S, E] = Q([n]), b = Or(), { anchorRef: O, targetRef: R, anchorWidth: v } = gt({
2227
+ const [u, f] = Q(!1), [p, g] = Q(t), [h, y] = Q(-1), [w, E] = Q([r]), b = Or(), { anchorRef: O, targetRef: R, anchorWidth: v } = gt({
2213
2228
  position: "bottom",
2214
2229
  enabled: u
2215
2230
  });
2216
- He(R, () => f(!1)), gr(u, R);
2231
+ qe(R, () => f(!1)), gr(u, R);
2217
2232
  const $ = (C) => {
2218
2233
  e == null || e(C.id, C.label);
2219
2234
  const I = p.findIndex((Y) => Y.id === C.id);
@@ -2240,8 +2255,8 @@ const un = ({
2240
2255
  dr,
2241
2256
  {
2242
2257
  ...c,
2243
- bindValue: n,
2244
- optionalDisplayValue: r,
2258
+ bindValue: r,
2259
+ optionalDisplayValue: n,
2245
2260
  displayMode: s,
2246
2261
  onShapeIconClick: F,
2247
2262
  onKeyDown: V,
@@ -2261,7 +2276,7 @@ const un = ({
2261
2276
  displayMode: a,
2262
2277
  ref: R,
2263
2278
  selectedIndex: h,
2264
- activeIndex: l || S,
2279
+ activeIndex: l || w,
2265
2280
  width: v,
2266
2281
  onClick: $,
2267
2282
  onKeyDown: j
@@ -2270,62 +2285,62 @@ const un = ({
2270
2285
  ]
2271
2286
  }
2272
2287
  );
2273
- }, H = (n) => typeof n == "string", Pe = () => {
2274
- let n, e;
2275
- const t = new Promise((r, s) => {
2276
- n = r, e = s;
2288
+ }, H = (r) => typeof r == "string", Ae = () => {
2289
+ let r, e;
2290
+ const t = new Promise((n, s) => {
2291
+ r = n, e = s;
2277
2292
  });
2278
- return t.resolve = n, t.reject = e, t;
2279
- }, Yt = (n) => n == null ? "" : "" + n, fn = (n, e, t) => {
2280
- n.forEach((r) => {
2281
- e[r] && (t[r] = e[r]);
2293
+ return t.resolve = r, t.reject = e, t;
2294
+ }, Yt = (r) => r == null ? "" : "" + r, fn = (r, e, t) => {
2295
+ r.forEach((n) => {
2296
+ e[n] && (t[n] = e[n]);
2282
2297
  });
2283
- }, dn = /###/g, Ut = (n) => n && n.indexOf("###") > -1 ? n.replace(dn, ".") : n, Wt = (n) => !n || H(n), Ae = (n, e, t) => {
2284
- const r = H(e) ? e.split(".") : e;
2298
+ }, dn = /###/g, Ut = (r) => r && r.indexOf("###") > -1 ? r.replace(dn, ".") : r, Wt = (r) => !r || H(r), $e = (r, e, t) => {
2299
+ const n = H(e) ? e.split(".") : e;
2285
2300
  let s = 0;
2286
- for (; s < r.length - 1; ) {
2287
- if (Wt(n)) return {};
2288
- const a = Ut(r[s]);
2289
- !n[a] && t && (n[a] = new t()), Object.prototype.hasOwnProperty.call(n, a) ? n = n[a] : n = {}, ++s;
2301
+ for (; s < n.length - 1; ) {
2302
+ if (Wt(r)) return {};
2303
+ const a = Ut(n[s]);
2304
+ !r[a] && t && (r[a] = new t()), Object.prototype.hasOwnProperty.call(r, a) ? r = r[a] : r = {}, ++s;
2290
2305
  }
2291
- return Wt(n) ? {} : {
2292
- obj: n,
2293
- k: Ut(r[s])
2306
+ return Wt(r) ? {} : {
2307
+ obj: r,
2308
+ k: Ut(n[s])
2294
2309
  };
2295
- }, Ht = (n, e, t) => {
2310
+ }, Ht = (r, e, t) => {
2296
2311
  const {
2297
- obj: r,
2312
+ obj: n,
2298
2313
  k: s
2299
- } = Ae(n, e, Object);
2300
- if (r !== void 0 || e.length === 1) {
2301
- r[s] = t;
2314
+ } = $e(r, e, Object);
2315
+ if (n !== void 0 || e.length === 1) {
2316
+ n[s] = t;
2302
2317
  return;
2303
2318
  }
2304
- let a = e[e.length - 1], o = e.slice(0, e.length - 1), i = Ae(n, o, Object);
2319
+ let a = e[e.length - 1], o = e.slice(0, e.length - 1), i = $e(r, o, Object);
2305
2320
  for (; i.obj === void 0 && o.length; )
2306
- a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), i = Ae(n, o, Object), i != null && i.obj && typeof i.obj[`${i.k}.${a}`] < "u" && (i.obj = void 0);
2321
+ a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), i = $e(r, o, Object), i != null && i.obj && typeof i.obj[`${i.k}.${a}`] < "u" && (i.obj = void 0);
2307
2322
  i.obj[`${i.k}.${a}`] = t;
2308
- }, pn = (n, e, t, r) => {
2323
+ }, pn = (r, e, t, n) => {
2309
2324
  const {
2310
2325
  obj: s,
2311
2326
  k: a
2312
- } = Ae(n, e, Object);
2327
+ } = $e(r, e, Object);
2313
2328
  s[a] = s[a] || [], s[a].push(t);
2314
- }, ze = (n, e) => {
2329
+ }, ze = (r, e) => {
2315
2330
  const {
2316
2331
  obj: t,
2317
- k: r
2318
- } = Ae(n, e);
2319
- if (t && Object.prototype.hasOwnProperty.call(t, r))
2320
- return t[r];
2321
- }, hn = (n, e, t) => {
2322
- const r = ze(n, t);
2323
- return r !== void 0 ? r : ze(e, t);
2324
- }, mr = (n, e, t) => {
2325
- for (const r in e)
2326
- r !== "__proto__" && r !== "constructor" && (r in n ? H(n[r]) || n[r] instanceof String || H(e[r]) || e[r] instanceof String ? t && (n[r] = e[r]) : mr(n[r], e[r], t) : n[r] = e[r]);
2327
- return n;
2328
- }, Ee = (n) => n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
2332
+ k: n
2333
+ } = $e(r, e);
2334
+ if (t && Object.prototype.hasOwnProperty.call(t, n))
2335
+ return t[n];
2336
+ }, hn = (r, e, t) => {
2337
+ const n = ze(r, t);
2338
+ return n !== void 0 ? n : ze(e, t);
2339
+ }, mr = (r, e, t) => {
2340
+ for (const n in e)
2341
+ n !== "__proto__" && n !== "constructor" && (n in r ? H(r[n]) || r[n] instanceof String || H(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) : mr(r[n], e[n], t) : r[n] = e[n]);
2342
+ return r;
2343
+ }, Ee = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
2329
2344
  var gn = {
2330
2345
  "&": "&amp;",
2331
2346
  "<": "&lt;",
@@ -2334,7 +2349,7 @@ var gn = {
2334
2349
  "'": "&#39;",
2335
2350
  "/": "&#x2F;"
2336
2351
  };
2337
- const mn = (n) => H(n) ? n.replace(/[&<>"'\/]/g, (e) => gn[e]) : n;
2352
+ const mn = (r) => H(r) ? r.replace(/[&<>"'\/]/g, (e) => gn[e]) : r;
2338
2353
  class yn {
2339
2354
  constructor(e) {
2340
2355
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
@@ -2343,34 +2358,34 @@ class yn {
2343
2358
  const t = this.regExpMap.get(e);
2344
2359
  if (t !== void 0)
2345
2360
  return t;
2346
- const r = new RegExp(e);
2347
- return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, r), this.regExpQueue.push(e), r;
2361
+ const n = new RegExp(e);
2362
+ return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
2348
2363
  }
2349
2364
  }
2350
- const vn = [" ", ",", "?", "!", ";"], bn = new yn(20), xn = (n, e, t) => {
2365
+ const vn = [" ", ",", "?", "!", ";"], bn = new yn(20), xn = (r, e, t) => {
2351
2366
  e = e || "", t = t || "";
2352
- const r = vn.filter((o) => e.indexOf(o) < 0 && t.indexOf(o) < 0);
2353
- if (r.length === 0) return !0;
2354
- const s = bn.getRegExp(`(${r.map((o) => o === "?" ? "\\?" : o).join("|")})`);
2355
- let a = !s.test(n);
2367
+ const n = vn.filter((o) => e.indexOf(o) < 0 && t.indexOf(o) < 0);
2368
+ if (n.length === 0) return !0;
2369
+ const s = bn.getRegExp(`(${n.map((o) => o === "?" ? "\\?" : o).join("|")})`);
2370
+ let a = !s.test(r);
2356
2371
  if (!a) {
2357
- const o = n.indexOf(t);
2358
- o > 0 && !s.test(n.substring(0, o)) && (a = !0);
2372
+ const o = r.indexOf(t);
2373
+ o > 0 && !s.test(r.substring(0, o)) && (a = !0);
2359
2374
  }
2360
2375
  return a;
2361
- }, dt = (n, e, t = ".") => {
2362
- if (!n) return;
2363
- if (n[e])
2364
- return Object.prototype.hasOwnProperty.call(n, e) ? n[e] : void 0;
2365
- const r = e.split(t);
2366
- let s = n;
2367
- for (let a = 0; a < r.length; ) {
2376
+ }, dt = (r, e, t = ".") => {
2377
+ if (!r) return;
2378
+ if (r[e])
2379
+ return Object.prototype.hasOwnProperty.call(r, e) ? r[e] : void 0;
2380
+ const n = e.split(t);
2381
+ let s = r;
2382
+ for (let a = 0; a < n.length; ) {
2368
2383
  if (!s || typeof s != "object")
2369
2384
  return;
2370
2385
  let o, i = "";
2371
- for (let l = a; l < r.length; ++l)
2372
- if (l !== a && (i += t), i += r[l], o = s[i], o !== void 0) {
2373
- if (["string", "number", "boolean"].indexOf(typeof o) > -1 && l < r.length - 1)
2386
+ for (let l = a; l < n.length; ++l)
2387
+ if (l !== a && (i += t), i += n[l], o = s[i], o !== void 0) {
2388
+ if (["string", "number", "boolean"].indexOf(typeof o) > -1 && l < n.length - 1)
2374
2389
  continue;
2375
2390
  a += l - a + 1;
2376
2391
  break;
@@ -2378,20 +2393,20 @@ const vn = [" ", ",", "?", "!", ";"], bn = new yn(20), xn = (n, e, t) => {
2378
2393
  s = o;
2379
2394
  }
2380
2395
  return s;
2381
- }, Ce = (n) => n == null ? void 0 : n.replace("_", "-"), Sn = {
2396
+ }, je = (r) => r == null ? void 0 : r.replace("_", "-"), Sn = {
2382
2397
  type: "logger",
2383
- log(n) {
2384
- this.output("log", n);
2398
+ log(r) {
2399
+ this.output("log", r);
2385
2400
  },
2386
- warn(n) {
2387
- this.output("warn", n);
2401
+ warn(r) {
2402
+ this.output("warn", r);
2388
2403
  },
2389
- error(n) {
2390
- this.output("error", n);
2404
+ error(r) {
2405
+ this.output("error", r);
2391
2406
  },
2392
- output(n, e) {
2393
- var t, r;
2394
- (r = (t = console == null ? void 0 : console[n]) == null ? void 0 : t.apply) == null || r.call(t, console, e);
2407
+ output(r, e) {
2408
+ var t, n;
2409
+ (n = (t = console == null ? void 0 : console[r]) == null ? void 0 : t.apply) == null || n.call(t, console, e);
2395
2410
  }
2396
2411
  };
2397
2412
  class Je {
@@ -2413,8 +2428,8 @@ class Je {
2413
2428
  deprecate(...e) {
2414
2429
  return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
2415
2430
  }
2416
- forward(e, t, r, s) {
2417
- return s && !this.debug ? null : (H(e[0]) && (e[0] = `${r}${this.prefix} ${e[0]}`), this.logger[t](e));
2431
+ forward(e, t, n, s) {
2432
+ return s && !this.debug ? null : (H(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
2418
2433
  }
2419
2434
  create(e) {
2420
2435
  return new Je(this.logger, {
@@ -2432,10 +2447,10 @@ class Ze {
2432
2447
  this.observers = {};
2433
2448
  }
2434
2449
  on(e, t) {
2435
- return e.split(" ").forEach((r) => {
2436
- this.observers[r] || (this.observers[r] = /* @__PURE__ */ new Map());
2437
- const s = this.observers[r].get(t) || 0;
2438
- this.observers[r].set(t, s + 1);
2450
+ return e.split(" ").forEach((n) => {
2451
+ this.observers[n] || (this.observers[n] = /* @__PURE__ */ new Map());
2452
+ const s = this.observers[n].get(t) || 0;
2453
+ this.observers[n].set(t, s + 1);
2439
2454
  }), this;
2440
2455
  }
2441
2456
  off(e, t) {
@@ -2471,41 +2486,41 @@ class qt extends Ze {
2471
2486
  const t = this.options.ns.indexOf(e);
2472
2487
  t > -1 && this.options.ns.splice(t, 1);
2473
2488
  }
2474
- getResource(e, t, r, s = {}) {
2489
+ getResource(e, t, n, s = {}) {
2475
2490
  var c, u;
2476
2491
  const a = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, o = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
2477
2492
  let i;
2478
- e.indexOf(".") > -1 ? i = e.split(".") : (i = [e, t], r && (Array.isArray(r) ? i.push(...r) : H(r) && a ? i.push(...r.split(a)) : i.push(r)));
2493
+ e.indexOf(".") > -1 ? i = e.split(".") : (i = [e, t], n && (Array.isArray(n) ? i.push(...n) : H(n) && a ? i.push(...n.split(a)) : i.push(n)));
2479
2494
  const l = ze(this.data, i);
2480
- return !l && !t && !r && e.indexOf(".") > -1 && (e = i[0], t = i[1], r = i.slice(2).join(".")), l || !o || !H(r) ? l : dt((u = (c = this.data) == null ? void 0 : c[e]) == null ? void 0 : u[t], r, a);
2495
+ return !l && !t && !n && e.indexOf(".") > -1 && (e = i[0], t = i[1], n = i.slice(2).join(".")), l || !o || !H(n) ? l : dt((u = (c = this.data) == null ? void 0 : c[e]) == null ? void 0 : u[t], n, a);
2481
2496
  }
2482
- addResource(e, t, r, s, a = {
2497
+ addResource(e, t, n, s, a = {
2483
2498
  silent: !1
2484
2499
  }) {
2485
2500
  const o = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator;
2486
2501
  let i = [e, t];
2487
- r && (i = i.concat(o ? r.split(o) : r)), e.indexOf(".") > -1 && (i = e.split("."), s = t, t = i[1]), this.addNamespaces(t), Ht(this.data, i, s), a.silent || this.emit("added", e, t, r, s);
2502
+ n && (i = i.concat(o ? n.split(o) : n)), e.indexOf(".") > -1 && (i = e.split("."), s = t, t = i[1]), this.addNamespaces(t), Ht(this.data, i, s), a.silent || this.emit("added", e, t, n, s);
2488
2503
  }
2489
- addResources(e, t, r, s = {
2504
+ addResources(e, t, n, s = {
2490
2505
  silent: !1
2491
2506
  }) {
2492
- for (const a in r)
2493
- (H(r[a]) || Array.isArray(r[a])) && this.addResource(e, t, a, r[a], {
2507
+ for (const a in n)
2508
+ (H(n[a]) || Array.isArray(n[a])) && this.addResource(e, t, a, n[a], {
2494
2509
  silent: !0
2495
2510
  });
2496
- s.silent || this.emit("added", e, t, r);
2511
+ s.silent || this.emit("added", e, t, n);
2497
2512
  }
2498
- addResourceBundle(e, t, r, s, a, o = {
2513
+ addResourceBundle(e, t, n, s, a, o = {
2499
2514
  silent: !1,
2500
2515
  skipCopy: !1
2501
2516
  }) {
2502
2517
  let i = [e, t];
2503
- e.indexOf(".") > -1 && (i = e.split("."), s = r, r = t, t = i[1]), this.addNamespaces(t);
2518
+ e.indexOf(".") > -1 && (i = e.split("."), s = n, n = t, t = i[1]), this.addNamespaces(t);
2504
2519
  let l = ze(this.data, i) || {};
2505
- o.skipCopy || (r = JSON.parse(JSON.stringify(r))), s ? mr(l, r, a) : l = {
2520
+ o.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? mr(l, n, a) : l = {
2506
2521
  ...l,
2507
- ...r
2508
- }, Ht(this.data, i, l), o.silent || this.emit("added", e, t, r);
2522
+ ...n
2523
+ }, Ht(this.data, i, l), o.silent || this.emit("added", e, t, n);
2509
2524
  }
2510
2525
  removeResourceBundle(e, t) {
2511
2526
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -2529,17 +2544,17 @@ class qt extends Ze {
2529
2544
  }
2530
2545
  var yr = {
2531
2546
  processors: {},
2532
- addPostProcessor(n) {
2533
- this.processors[n.name] = n;
2547
+ addPostProcessor(r) {
2548
+ this.processors[r.name] = r;
2534
2549
  },
2535
- handle(n, e, t, r, s) {
2536
- return n.forEach((a) => {
2550
+ handle(r, e, t, n, s) {
2551
+ return r.forEach((a) => {
2537
2552
  var o;
2538
- e = ((o = this.processors[a]) == null ? void 0 : o.process(e, t, r, s)) ?? e;
2553
+ e = ((o = this.processors[a]) == null ? void 0 : o.process(e, t, n, s)) ?? e;
2539
2554
  }), e;
2540
2555
  }
2541
2556
  };
2542
- const Kt = {}, Bt = (n) => !H(n) && typeof n != "boolean" && typeof n != "number";
2557
+ const Kt = {}, Bt = (r) => !H(r) && typeof r != "boolean" && typeof r != "number";
2543
2558
  class Xe extends Ze {
2544
2559
  constructor(e, t = {}) {
2545
2560
  super(), fn(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = he.create("translator");
@@ -2550,19 +2565,19 @@ class Xe extends Ze {
2550
2565
  exists(e, t = {
2551
2566
  interpolation: {}
2552
2567
  }) {
2553
- const r = {
2568
+ const n = {
2554
2569
  ...t
2555
2570
  };
2556
2571
  if (e == null) return !1;
2557
- const s = this.resolve(e, r);
2572
+ const s = this.resolve(e, n);
2558
2573
  return (s == null ? void 0 : s.res) !== void 0;
2559
2574
  }
2560
2575
  extractFromKey(e, t) {
2561
- let r = t.nsSeparator !== void 0 ? t.nsSeparator : this.options.nsSeparator;
2562
- r === void 0 && (r = ":");
2576
+ let n = t.nsSeparator !== void 0 ? t.nsSeparator : this.options.nsSeparator;
2577
+ n === void 0 && (n = ":");
2563
2578
  const s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
2564
2579
  let a = t.ns || this.options.defaultNS || [];
2565
- const o = r && e.indexOf(r) > -1, i = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !xn(e, r, s);
2580
+ const o = n && e.indexOf(n) > -1, i = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !xn(e, n, s);
2566
2581
  if (o && !i) {
2567
2582
  const l = e.match(this.interpolator.nestingRegexp);
2568
2583
  if (l && l.length > 0)
@@ -2570,15 +2585,15 @@ class Xe extends Ze {
2570
2585
  key: e,
2571
2586
  namespaces: H(a) ? [a] : a
2572
2587
  };
2573
- const c = e.split(r);
2574
- (r !== s || r === s && this.options.ns.indexOf(c[0]) > -1) && (a = c.shift()), e = c.join(s);
2588
+ const c = e.split(n);
2589
+ (n !== s || n === s && this.options.ns.indexOf(c[0]) > -1) && (a = c.shift()), e = c.join(s);
2575
2590
  }
2576
2591
  return {
2577
2592
  key: e,
2578
2593
  namespaces: H(a) ? [a] : a
2579
2594
  };
2580
2595
  }
2581
- translate(e, t, r) {
2596
+ translate(e, t, n) {
2582
2597
  let s = typeof t == "object" ? {
2583
2598
  ...t
2584
2599
  } : t;
@@ -2611,7 +2626,7 @@ class Xe extends Ze {
2611
2626
  } : i;
2612
2627
  const g = this.resolve(e, s);
2613
2628
  let h = g == null ? void 0 : g.res;
2614
- const y = (g == null ? void 0 : g.usedKey) || i, S = (g == null ? void 0 : g.exactUsedKey) || i, E = ["[object Number]", "[object Function]", "[object RegExp]"], b = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, R = s.count !== void 0 && !H(s.count), v = Xe.hasDefaultValue(s), $ = R ? this.pluralResolver.getSuffix(f, s.count, s) : "", j = s.ordinal && R ? this.pluralResolver.getSuffix(f, s.count, {
2629
+ const y = (g == null ? void 0 : g.usedKey) || i, w = (g == null ? void 0 : g.exactUsedKey) || i, E = ["[object Number]", "[object Function]", "[object RegExp]"], b = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, R = s.count !== void 0 && !H(s.count), v = Xe.hasDefaultValue(s), $ = R ? this.pluralResolver.getSuffix(f, s.count, s) : "", j = s.ordinal && R ? this.pluralResolver.getSuffix(f, s.count, {
2615
2630
  ordinal: !1
2616
2631
  }) : "", V = R && !s.ordinal && s.count === 0, F = V && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${$}`] || s[`defaultValue${j}`] || s.defaultValue;
2617
2632
  let C = h;
@@ -2627,7 +2642,7 @@ class Xe extends Ze {
2627
2642
  return a ? (g.res = J, g.usedParams = this.getUsedParamsDetails(s), g) : J;
2628
2643
  }
2629
2644
  if (o) {
2630
- const J = Array.isArray(C), q = J ? [] : {}, ne = J ? S : y;
2645
+ const J = Array.isArray(C), q = J ? [] : {}, ne = J ? w : y;
2631
2646
  for (const z in C)
2632
2647
  if (Object.prototype.hasOwnProperty.call(C, z)) {
2633
2648
  const U = `${ne}${o}${z}`;
@@ -2645,7 +2660,7 @@ class Xe extends Ze {
2645
2660
  h = q;
2646
2661
  }
2647
2662
  } else if (O && H(b) && Array.isArray(h))
2648
- h = h.join(b), h && (h = this.extendTranslation(h, e, s, r));
2663
+ h = h.join(b), h && (h = this.extendTranslation(h, e, s, n));
2649
2664
  else {
2650
2665
  let J = !1, q = !1;
2651
2666
  !this.isValidLookup(h) && v && (J = !0, h = F), this.isValidLookup(h) || (q = !0, h = i);
@@ -2664,82 +2679,82 @@ class Xe extends Ze {
2664
2679
  for (let m = 0; m < k.length; m++)
2665
2680
  B.push(k[m]);
2666
2681
  else this.options.saveMissingTo === "all" ? B = this.languageUtils.toResolveHierarchy(s.lng || this.language) : B.push(s.lng || this.language);
2667
- const d = (m, w, D) => {
2682
+ const d = (m, S, D) => {
2668
2683
  var P;
2669
2684
  const T = v && D !== h ? D : z;
2670
- this.options.missingKeyHandler ? this.options.missingKeyHandler(m, c, w, T, U, s) : (P = this.backendConnector) != null && P.saveMissing && this.backendConnector.saveMissing(m, c, w, T, U, s), this.emit("missingKey", m, c, w, h);
2685
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(m, c, S, T, U, s) : (P = this.backendConnector) != null && P.saveMissing && this.backendConnector.saveMissing(m, c, S, T, U, s), this.emit("missingKey", m, c, S, h);
2671
2686
  };
2672
2687
  this.options.saveMissing && (this.options.saveMissingPlurals && R ? B.forEach((m) => {
2673
- const w = this.pluralResolver.getSuffixes(m, s);
2674
- V && s[`defaultValue${this.options.pluralSeparator}zero`] && w.indexOf(`${this.options.pluralSeparator}zero`) < 0 && w.push(`${this.options.pluralSeparator}zero`), w.forEach((D) => {
2688
+ const S = this.pluralResolver.getSuffixes(m, s);
2689
+ V && s[`defaultValue${this.options.pluralSeparator}zero`] && S.indexOf(`${this.options.pluralSeparator}zero`) < 0 && S.push(`${this.options.pluralSeparator}zero`), S.forEach((D) => {
2675
2690
  d([m], i + D, s[`defaultValue${D}`] || F);
2676
2691
  });
2677
2692
  }) : d(B, i, F));
2678
2693
  }
2679
- h = this.extendTranslation(h, e, s, g, r), q && h === i && this.options.appendNamespaceToMissingKey && (h = `${c}${u}${i}`), (q || J) && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${u}${i}` : i, J ? h : void 0, s));
2694
+ h = this.extendTranslation(h, e, s, g, n), q && h === i && this.options.appendNamespaceToMissingKey && (h = `${c}${u}${i}`), (q || J) && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${u}${i}` : i, J ? h : void 0, s));
2680
2695
  }
2681
2696
  return a ? (g.res = h, g.usedParams = this.getUsedParamsDetails(s), g) : h;
2682
2697
  }
2683
- extendTranslation(e, t, r, s, a) {
2698
+ extendTranslation(e, t, n, s, a) {
2684
2699
  var l, c;
2685
2700
  if ((l = this.i18nFormat) != null && l.parse)
2686
2701
  e = this.i18nFormat.parse(e, {
2687
2702
  ...this.options.interpolation.defaultVariables,
2688
- ...r
2689
- }, r.lng || this.language || s.usedLng, s.usedNS, s.usedKey, {
2703
+ ...n
2704
+ }, n.lng || this.language || s.usedLng, s.usedNS, s.usedKey, {
2690
2705
  resolved: s
2691
2706
  });
2692
- else if (!r.skipInterpolation) {
2693
- r.interpolation && this.interpolator.init({
2694
- ...r,
2707
+ else if (!n.skipInterpolation) {
2708
+ n.interpolation && this.interpolator.init({
2709
+ ...n,
2695
2710
  interpolation: {
2696
2711
  ...this.options.interpolation,
2697
- ...r.interpolation
2712
+ ...n.interpolation
2698
2713
  }
2699
2714
  });
2700
- const u = H(e) && (((c = r == null ? void 0 : r.interpolation) == null ? void 0 : c.skipOnVariables) !== void 0 ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
2715
+ const u = H(e) && (((c = n == null ? void 0 : n.interpolation) == null ? void 0 : c.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
2701
2716
  let f;
2702
2717
  if (u) {
2703
2718
  const g = e.match(this.interpolator.nestingRegexp);
2704
2719
  f = g && g.length;
2705
2720
  }
2706
- let p = r.replace && !H(r.replace) ? r.replace : r;
2721
+ let p = n.replace && !H(n.replace) ? n.replace : n;
2707
2722
  if (this.options.interpolation.defaultVariables && (p = {
2708
2723
  ...this.options.interpolation.defaultVariables,
2709
2724
  ...p
2710
- }), e = this.interpolator.interpolate(e, p, r.lng || this.language || s.usedLng, r), u) {
2725
+ }), e = this.interpolator.interpolate(e, p, n.lng || this.language || s.usedLng, n), u) {
2711
2726
  const g = e.match(this.interpolator.nestingRegexp), h = g && g.length;
2712
- f < h && (r.nest = !1);
2727
+ f < h && (n.nest = !1);
2713
2728
  }
2714
- !r.lng && s && s.res && (r.lng = this.language || s.usedLng), r.nest !== !1 && (e = this.interpolator.nest(e, (...g) => (a == null ? void 0 : a[0]) === g[0] && !r.context ? (this.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${t[0]}`), null) : this.translate(...g, t), r)), r.interpolation && this.interpolator.reset();
2729
+ !n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...g) => (a == null ? void 0 : a[0]) === g[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${t[0]}`), null) : this.translate(...g, t), n)), n.interpolation && this.interpolator.reset();
2715
2730
  }
2716
- const o = r.postProcess || this.options.postProcess, i = H(o) ? [o] : o;
2717
- return e != null && (i != null && i.length) && r.applyPostProcessor !== !1 && (e = yr.handle(i, e, t, this.options && this.options.postProcessPassResolved ? {
2731
+ const o = n.postProcess || this.options.postProcess, i = H(o) ? [o] : o;
2732
+ return e != null && (i != null && i.length) && n.applyPostProcessor !== !1 && (e = yr.handle(i, e, t, this.options && this.options.postProcessPassResolved ? {
2718
2733
  i18nResolved: {
2719
2734
  ...s,
2720
- usedParams: this.getUsedParamsDetails(r)
2735
+ usedParams: this.getUsedParamsDetails(n)
2721
2736
  },
2722
- ...r
2723
- } : r, this)), e;
2737
+ ...n
2738
+ } : n, this)), e;
2724
2739
  }
2725
2740
  resolve(e, t = {}) {
2726
- let r, s, a, o, i;
2741
+ let n, s, a, o, i;
2727
2742
  return H(e) && (e = [e]), e.forEach((l) => {
2728
- if (this.isValidLookup(r)) return;
2743
+ if (this.isValidLookup(n)) return;
2729
2744
  const c = this.extractFromKey(l, t), u = c.key;
2730
2745
  s = u;
2731
2746
  let f = c.namespaces;
2732
2747
  this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
2733
2748
  const p = t.count !== void 0 && !H(t.count), g = p && !t.ordinal && t.count === 0, h = t.context !== void 0 && (H(t.context) || typeof t.context == "number") && t.context !== "", y = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
2734
- f.forEach((S) => {
2749
+ f.forEach((w) => {
2735
2750
  var E, b;
2736
- this.isValidLookup(r) || (i = S, !Kt[`${y[0]}-${S}`] && ((E = this.utils) != null && E.hasLoadedNamespace) && !((b = this.utils) != null && b.hasLoadedNamespace(i)) && (Kt[`${y[0]}-${S}`] = !0, this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${i}" 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!!!")), y.forEach((O) => {
2751
+ this.isValidLookup(n) || (i = w, !Kt[`${y[0]}-${w}`] && ((E = this.utils) != null && E.hasLoadedNamespace) && !((b = this.utils) != null && b.hasLoadedNamespace(i)) && (Kt[`${y[0]}-${w}`] = !0, this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${i}" 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!!!")), y.forEach((O) => {
2737
2752
  var $;
2738
- if (this.isValidLookup(r)) return;
2753
+ if (this.isValidLookup(n)) return;
2739
2754
  o = O;
2740
2755
  const R = [u];
2741
2756
  if (($ = this.i18nFormat) != null && $.addLookupKeys)
2742
- this.i18nFormat.addLookupKeys(R, u, O, S, t);
2757
+ this.i18nFormat.addLookupKeys(R, u, O, w, t);
2743
2758
  else {
2744
2759
  let j;
2745
2760
  p && (j = this.pluralResolver.getSuffix(O, t.count, t));
@@ -2751,11 +2766,11 @@ class Xe extends Ze {
2751
2766
  }
2752
2767
  let v;
2753
2768
  for (; v = R.pop(); )
2754
- this.isValidLookup(r) || (a = v, r = this.getResource(O, S, v, t));
2769
+ this.isValidLookup(n) || (a = v, n = this.getResource(O, w, v, t));
2755
2770
  }));
2756
2771
  });
2757
2772
  }), {
2758
- res: r,
2773
+ res: n,
2759
2774
  usedKey: s,
2760
2775
  exactUsedKey: a,
2761
2776
  usedLng: o,
@@ -2765,17 +2780,17 @@ class Xe extends Ze {
2765
2780
  isValidLookup(e) {
2766
2781
  return e !== void 0 && !(!this.options.returnNull && e === null) && !(!this.options.returnEmptyString && e === "");
2767
2782
  }
2768
- getResource(e, t, r, s = {}) {
2783
+ getResource(e, t, n, s = {}) {
2769
2784
  var a;
2770
- return (a = this.i18nFormat) != null && a.getResource ? this.i18nFormat.getResource(e, t, r, s) : this.resourceStore.getResource(e, t, r, s);
2785
+ return (a = this.i18nFormat) != null && a.getResource ? this.i18nFormat.getResource(e, t, n, s) : this.resourceStore.getResource(e, t, n, s);
2771
2786
  }
2772
2787
  getUsedParamsDetails(e = {}) {
2773
- const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], r = e.replace && !H(e.replace);
2774
- let s = r ? e.replace : e;
2775
- if (r && typeof e.count < "u" && (s.count = e.count), this.options.interpolation.defaultVariables && (s = {
2788
+ const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], n = e.replace && !H(e.replace);
2789
+ let s = n ? e.replace : e;
2790
+ if (n && typeof e.count < "u" && (s.count = e.count), this.options.interpolation.defaultVariables && (s = {
2776
2791
  ...this.options.interpolation.defaultVariables,
2777
2792
  ...s
2778
- }), !r) {
2793
+ }), !n) {
2779
2794
  s = {
2780
2795
  ...s
2781
2796
  };
@@ -2786,8 +2801,8 @@ class Xe extends Ze {
2786
2801
  }
2787
2802
  static hasDefaultValue(e) {
2788
2803
  const t = "defaultValue";
2789
- for (const r in e)
2790
- if (Object.prototype.hasOwnProperty.call(e, r) && t === r.substring(0, t.length) && e[r] !== void 0)
2804
+ for (const n in e)
2805
+ if (Object.prototype.hasOwnProperty.call(e, n) && t === n.substring(0, t.length) && e[n] !== void 0)
2791
2806
  return !0;
2792
2807
  return !1;
2793
2808
  }
@@ -2797,12 +2812,12 @@ class Gt {
2797
2812
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = he.create("languageUtils");
2798
2813
  }
2799
2814
  getScriptPartFromCode(e) {
2800
- if (e = Ce(e), !e || e.indexOf("-") < 0) return null;
2815
+ if (e = je(e), !e || e.indexOf("-") < 0) return null;
2801
2816
  const t = e.split("-");
2802
2817
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
2803
2818
  }
2804
2819
  getLanguagePartFromCode(e) {
2805
- if (e = Ce(e), !e || e.indexOf("-") < 0) return e;
2820
+ if (e = je(e), !e || e.indexOf("-") < 0) return e;
2806
2821
  const t = e.split("-");
2807
2822
  return this.formatLanguageCode(t[0]);
2808
2823
  }
@@ -2823,15 +2838,15 @@ class Gt {
2823
2838
  getBestMatchFromCodes(e) {
2824
2839
  if (!e) return null;
2825
2840
  let t;
2826
- return e.forEach((r) => {
2841
+ return e.forEach((n) => {
2827
2842
  if (t) return;
2828
- const s = this.formatLanguageCode(r);
2843
+ const s = this.formatLanguageCode(n);
2829
2844
  (!this.options.supportedLngs || this.isSupportedCode(s)) && (t = s);
2830
- }), !t && this.options.supportedLngs && e.forEach((r) => {
2845
+ }), !t && this.options.supportedLngs && e.forEach((n) => {
2831
2846
  if (t) return;
2832
- const s = this.getScriptPartFromCode(r);
2847
+ const s = this.getScriptPartFromCode(n);
2833
2848
  if (this.isSupportedCode(s)) return t = s;
2834
- const a = this.getLanguagePartFromCode(r);
2849
+ const a = this.getLanguagePartFromCode(n);
2835
2850
  if (this.isSupportedCode(a)) return t = a;
2836
2851
  t = this.options.supportedLngs.find((o) => {
2837
2852
  if (o === a) return o;
@@ -2844,14 +2859,14 @@ class Gt {
2844
2859
  if (!e) return [];
2845
2860
  if (typeof e == "function" && (e = e(t)), H(e) && (e = [e]), Array.isArray(e)) return e;
2846
2861
  if (!t) return e.default || [];
2847
- let r = e[t];
2848
- return r || (r = e[this.getScriptPartFromCode(t)]), r || (r = e[this.formatLanguageCode(t)]), r || (r = e[this.getLanguagePartFromCode(t)]), r || (r = e.default), r || [];
2862
+ let n = e[t];
2863
+ return n || (n = e[this.getScriptPartFromCode(t)]), n || (n = e[this.formatLanguageCode(t)]), n || (n = e[this.getLanguagePartFromCode(t)]), n || (n = e.default), n || [];
2849
2864
  }
2850
2865
  toResolveHierarchy(e, t) {
2851
- const r = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), s = [], a = (o) => {
2866
+ const n = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), s = [], a = (o) => {
2852
2867
  o && (this.isSupportedCode(o) ? s.push(o) : this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`));
2853
2868
  };
2854
- return H(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && a(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && a(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && a(this.getLanguagePartFromCode(e))) : H(e) && a(this.formatLanguageCode(e)), r.forEach((o) => {
2869
+ return H(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && a(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && a(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && a(this.getLanguagePartFromCode(e))) : H(e) && a(this.formatLanguageCode(e)), n.forEach((o) => {
2855
2870
  s.indexOf(o) < 0 && a(this.formatLanguageCode(o));
2856
2871
  }), s;
2857
2872
  }
@@ -2864,7 +2879,7 @@ const zt = {
2864
2879
  many: 4,
2865
2880
  other: 5
2866
2881
  }, Jt = {
2867
- select: (n) => n === 1 ? "one" : "other",
2882
+ select: (r) => r === 1 ? "one" : "other",
2868
2883
  resolvedOptions: () => ({
2869
2884
  pluralCategories: ["one", "other"]
2870
2885
  })
@@ -2880,15 +2895,15 @@ class wn {
2880
2895
  this.pluralRulesCache = {};
2881
2896
  }
2882
2897
  getRule(e, t = {}) {
2883
- const r = Ce(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", a = JSON.stringify({
2884
- cleanedCode: r,
2898
+ const n = je(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", a = JSON.stringify({
2899
+ cleanedCode: n,
2885
2900
  type: s
2886
2901
  });
2887
2902
  if (a in this.pluralRulesCache)
2888
2903
  return this.pluralRulesCache[a];
2889
2904
  let o;
2890
2905
  try {
2891
- o = new Intl.PluralRules(r, {
2906
+ o = new Intl.PluralRules(n, {
2892
2907
  type: s
2893
2908
  });
2894
2909
  } catch {
@@ -2901,29 +2916,29 @@ class wn {
2901
2916
  return this.pluralRulesCache[a] = o, o;
2902
2917
  }
2903
2918
  needsPlural(e, t = {}) {
2904
- let r = this.getRule(e, t);
2905
- return r || (r = this.getRule("dev", t)), (r == null ? void 0 : r.resolvedOptions().pluralCategories.length) > 1;
2919
+ let n = this.getRule(e, t);
2920
+ return n || (n = this.getRule("dev", t)), (n == null ? void 0 : n.resolvedOptions().pluralCategories.length) > 1;
2906
2921
  }
2907
- getPluralFormsOfKey(e, t, r = {}) {
2908
- return this.getSuffixes(e, r).map((s) => `${t}${s}`);
2922
+ getPluralFormsOfKey(e, t, n = {}) {
2923
+ return this.getSuffixes(e, n).map((s) => `${t}${s}`);
2909
2924
  }
2910
2925
  getSuffixes(e, t = {}) {
2911
- let r = this.getRule(e, t);
2912
- return r || (r = this.getRule("dev", t)), r ? r.resolvedOptions().pluralCategories.sort((s, a) => zt[s] - zt[a]).map((s) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : [];
2926
+ let n = this.getRule(e, t);
2927
+ return n || (n = this.getRule("dev", t)), n ? n.resolvedOptions().pluralCategories.sort((s, a) => zt[s] - zt[a]).map((s) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : [];
2913
2928
  }
2914
- getSuffix(e, t, r = {}) {
2915
- const s = this.getRule(e, r);
2916
- return s ? `${this.options.prepend}${r.ordinal ? `ordinal${this.options.prepend}` : ""}${s.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, r));
2929
+ getSuffix(e, t, n = {}) {
2930
+ const s = this.getRule(e, n);
2931
+ return s ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${s.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, n));
2917
2932
  }
2918
2933
  }
2919
- const Xt = (n, e, t, r = ".", s = !0) => {
2920
- let a = hn(n, e, t);
2921
- return !a && s && H(t) && (a = dt(n, t, r), a === void 0 && (a = dt(e, t, r))), a;
2922
- }, lt = (n) => n.replace(/\$/g, "$$$$");
2934
+ const Xt = (r, e, t, n = ".", s = !0) => {
2935
+ let a = hn(r, e, t);
2936
+ return !a && s && H(t) && (a = dt(r, t, n), a === void 0 && (a = dt(e, t, n))), a;
2937
+ }, lt = (r) => r.replace(/\$/g, "$$$$");
2923
2938
  class En {
2924
2939
  constructor(e = {}) {
2925
2940
  var t;
2926
- this.logger = he.create("interpolator"), this.options = e, this.format = ((t = e == null ? void 0 : e.interpolation) == null ? void 0 : t.format) || ((r) => r), this.init(e);
2941
+ this.logger = he.create("interpolator"), this.options = e, this.format = ((t = e == null ? void 0 : e.interpolation) == null ? void 0 : t.format) || ((n) => n), this.init(e);
2927
2942
  }
2928
2943
  init(e = {}) {
2929
2944
  e.interpolation || (e.interpolation = {
@@ -2931,7 +2946,7 @@ class En {
2931
2946
  });
2932
2947
  const {
2933
2948
  escape: t,
2934
- escapeValue: r,
2949
+ escapeValue: n,
2935
2950
  useRawValueToEscape: s,
2936
2951
  prefix: a,
2937
2952
  prefixEscaped: o,
@@ -2944,36 +2959,36 @@ class En {
2944
2959
  nestingPrefixEscaped: g,
2945
2960
  nestingSuffix: h,
2946
2961
  nestingSuffixEscaped: y,
2947
- nestingOptionsSeparator: S,
2962
+ nestingOptionsSeparator: w,
2948
2963
  maxReplaces: E,
2949
2964
  alwaysFormat: b
2950
2965
  } = e.interpolation;
2951
- this.escape = t !== void 0 ? t : mn, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Ee(a) : o || "{{", this.suffix = i ? Ee(i) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = p ? Ee(p) : g || Ee("$t("), this.nestingSuffix = h ? Ee(h) : y || Ee(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
2966
+ this.escape = t !== void 0 ? t : mn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Ee(a) : o || "{{", this.suffix = i ? Ee(i) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = p ? Ee(p) : g || Ee("$t("), this.nestingSuffix = h ? Ee(h) : y || Ee(")"), this.nestingOptionsSeparator = w || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
2952
2967
  }
2953
2968
  reset() {
2954
2969
  this.options && this.init(this.options);
2955
2970
  }
2956
2971
  resetRegExp() {
2957
- const e = (t, r) => (t == null ? void 0 : t.source) === r ? (t.lastIndex = 0, t) : new RegExp(r, "g");
2972
+ const e = (t, n) => (t == null ? void 0 : t.source) === n ? (t.lastIndex = 0, t) : new RegExp(n, "g");
2958
2973
  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}`);
2959
2974
  }
2960
- interpolate(e, t, r, s) {
2975
+ interpolate(e, t, n, s) {
2961
2976
  var g;
2962
2977
  let a, o, i;
2963
2978
  const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (h) => {
2964
2979
  if (h.indexOf(this.formatSeparator) < 0) {
2965
2980
  const b = Xt(t, l, h, this.options.keySeparator, this.options.ignoreJSONStructure);
2966
- return this.alwaysFormat ? this.format(b, void 0, r, {
2981
+ return this.alwaysFormat ? this.format(b, void 0, n, {
2967
2982
  ...s,
2968
2983
  ...t,
2969
2984
  interpolationkey: h
2970
2985
  }) : b;
2971
2986
  }
2972
- const y = h.split(this.formatSeparator), S = y.shift().trim(), E = y.join(this.formatSeparator).trim();
2973
- return this.format(Xt(t, l, S, this.options.keySeparator, this.options.ignoreJSONStructure), E, r, {
2987
+ const y = h.split(this.formatSeparator), w = y.shift().trim(), E = y.join(this.formatSeparator).trim();
2988
+ return this.format(Xt(t, l, w, this.options.keySeparator, this.options.ignoreJSONStructure), E, n, {
2974
2989
  ...s,
2975
2990
  ...t,
2976
- interpolationkey: S
2991
+ interpolationkey: w
2977
2992
  });
2978
2993
  };
2979
2994
  this.resetRegExp();
@@ -2999,13 +3014,13 @@ class En {
2999
3014
  } else
3000
3015
  this.logger.warn(`missed to pass in variable ${y} for interpolating ${e}`), o = "";
3001
3016
  else !H(o) && !this.useRawValueToEscape && (o = Yt(o));
3002
- const S = h.safeValue(o);
3003
- if (e = e.replace(a[0], S), f ? (h.regex.lastIndex += o.length, h.regex.lastIndex -= a[0].length) : h.regex.lastIndex = 0, i++, i >= this.maxReplaces)
3017
+ const w = h.safeValue(o);
3018
+ if (e = e.replace(a[0], w), f ? (h.regex.lastIndex += o.length, h.regex.lastIndex -= a[0].length) : h.regex.lastIndex = 0, i++, i >= this.maxReplaces)
3004
3019
  break;
3005
3020
  }
3006
3021
  }), e;
3007
3022
  }
3008
- nest(e, t, r = {}) {
3023
+ nest(e, t, n = {}) {
3009
3024
  let s, a, o;
3010
3025
  const i = (l, c) => {
3011
3026
  const u = this.nestingOptionsSeparator;
@@ -3028,7 +3043,7 @@ class En {
3028
3043
  for (; s = this.nestingRegexp.exec(e); ) {
3029
3044
  let l = [];
3030
3045
  o = {
3031
- ...r
3046
+ ...n
3032
3047
  }, o = o.replace && !H(o.replace) ? o.replace : o, o.applyPostProcessor = !1, delete o.defaultValue;
3033
3048
  let c = !1;
3034
3049
  if (s[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(s[1])) {
@@ -3036,21 +3051,21 @@ class En {
3036
3051
  s[1] = u.shift(), l = u, c = !0;
3037
3052
  }
3038
3053
  if (a = t(i.call(this, s[1].trim(), o), o), a && s[0] === e && !H(a)) return a;
3039
- H(a) || (a = Yt(a)), a || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), a = ""), c && (a = l.reduce((u, f) => this.format(u, f, r.lng, {
3040
- ...r,
3054
+ H(a) || (a = Yt(a)), a || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), a = ""), c && (a = l.reduce((u, f) => this.format(u, f, n.lng, {
3055
+ ...n,
3041
3056
  interpolationkey: s[1].trim()
3042
3057
  }), a.trim())), e = e.replace(s[0], a), this.regexp.lastIndex = 0;
3043
3058
  }
3044
3059
  return e;
3045
3060
  }
3046
3061
  }
3047
- const Tn = (n) => {
3048
- let e = n.toLowerCase().trim();
3062
+ const Tn = (r) => {
3063
+ let e = r.toLowerCase().trim();
3049
3064
  const t = {};
3050
- if (n.indexOf("(") > -1) {
3051
- const r = n.split("(");
3052
- e = r[0].toLowerCase().trim();
3053
- const s = r[1].substring(0, r[1].length - 1);
3065
+ if (r.indexOf("(") > -1) {
3066
+ const n = r.split("(");
3067
+ e = n[0].toLowerCase().trim();
3068
+ const s = n[1].substring(0, n[1].length - 1);
3054
3069
  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((o) => {
3055
3070
  if (o) {
3056
3071
  const [i, ...l] = o.split(":"), c = l.join(":").trim().replace(/^'+|'+$/g, ""), u = i.trim();
@@ -3062,19 +3077,19 @@ const Tn = (n) => {
3062
3077
  formatName: e,
3063
3078
  formatOptions: t
3064
3079
  };
3065
- }, Zt = (n) => {
3080
+ }, Zt = (r) => {
3066
3081
  const e = {};
3067
- return (t, r, s) => {
3082
+ return (t, n, s) => {
3068
3083
  let a = s;
3069
3084
  s && s.interpolationkey && s.formatParams && s.formatParams[s.interpolationkey] && s[s.interpolationkey] && (a = {
3070
3085
  ...a,
3071
3086
  [s.interpolationkey]: void 0
3072
3087
  });
3073
- const o = r + JSON.stringify(a);
3088
+ const o = n + JSON.stringify(a);
3074
3089
  let i = e[o];
3075
- return i || (i = n(Ce(r), s), e[o] = i), i(t);
3090
+ return i || (i = r(je(n), s), e[o] = i), i(t);
3076
3091
  };
3077
- }, On = (n) => (e, t, r) => n(Ce(t), r)(e);
3092
+ }, On = (r) => (e, t, n) => r(je(t), n)(e);
3078
3093
  class Rn {
3079
3094
  constructor(e = {}) {
3080
3095
  this.logger = he.create("formatter"), this.options = e, this.init(e);
@@ -3083,34 +3098,34 @@ class Rn {
3083
3098
  interpolation: {}
3084
3099
  }) {
3085
3100
  this.formatSeparator = t.interpolation.formatSeparator || ",";
3086
- const r = t.cacheInBuiltFormats ? Zt : On;
3101
+ const n = t.cacheInBuiltFormats ? Zt : On;
3087
3102
  this.formats = {
3088
- number: r((s, a) => {
3103
+ number: n((s, a) => {
3089
3104
  const o = new Intl.NumberFormat(s, {
3090
3105
  ...a
3091
3106
  });
3092
3107
  return (i) => o.format(i);
3093
3108
  }),
3094
- currency: r((s, a) => {
3109
+ currency: n((s, a) => {
3095
3110
  const o = new Intl.NumberFormat(s, {
3096
3111
  ...a,
3097
3112
  style: "currency"
3098
3113
  });
3099
3114
  return (i) => o.format(i);
3100
3115
  }),
3101
- datetime: r((s, a) => {
3116
+ datetime: n((s, a) => {
3102
3117
  const o = new Intl.DateTimeFormat(s, {
3103
3118
  ...a
3104
3119
  });
3105
3120
  return (i) => o.format(i);
3106
3121
  }),
3107
- relativetime: r((s, a) => {
3122
+ relativetime: n((s, a) => {
3108
3123
  const o = new Intl.RelativeTimeFormat(s, {
3109
3124
  ...a
3110
3125
  });
3111
3126
  return (i) => o.format(i, a.range || "day");
3112
3127
  }),
3113
- list: r((s, a) => {
3128
+ list: n((s, a) => {
3114
3129
  const o = new Intl.ListFormat(s, {
3115
3130
  ...a
3116
3131
  });
@@ -3124,7 +3139,7 @@ class Rn {
3124
3139
  addCached(e, t) {
3125
3140
  this.formats[e.toLowerCase().trim()] = Zt(t);
3126
3141
  }
3127
- format(e, t, r, s = {}) {
3142
+ format(e, t, n, s = {}) {
3128
3143
  const a = t.split(this.formatSeparator);
3129
3144
  if (a.length > 1 && a[0].indexOf("(") > 1 && a[0].indexOf(")") < 0 && a.find((i) => i.indexOf(")") > -1)) {
3130
3145
  const i = a.findIndex((l) => l.indexOf(")") > -1);
@@ -3139,7 +3154,7 @@ class Rn {
3139
3154
  if (this.formats[c]) {
3140
3155
  let p = i;
3141
3156
  try {
3142
- const g = ((f = s == null ? void 0 : s.formatParams) == null ? void 0 : f[s.interpolationkey]) || {}, h = g.locale || g.lng || s.locale || s.lng || r;
3157
+ const g = ((f = s == null ? void 0 : s.formatParams) == null ? void 0 : f[s.interpolationkey]) || {}, h = g.locale || g.lng || s.locale || s.lng || n;
3143
3158
  p = this.formats[c](i, h, {
3144
3159
  ...u,
3145
3160
  ...s,
@@ -3155,21 +3170,21 @@ class Rn {
3155
3170
  }, e);
3156
3171
  }
3157
3172
  }
3158
- const Dn = (n, e) => {
3159
- n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
3173
+ const Dn = (r, e) => {
3174
+ r.pending[e] !== void 0 && (delete r.pending[e], r.pendingCount--);
3160
3175
  };
3161
3176
  class Pn extends Ze {
3162
- constructor(e, t, r, s = {}) {
3177
+ constructor(e, t, n, s = {}) {
3163
3178
  var a, o;
3164
- super(), this.backend = e, this.store = t, this.services = r, this.languageUtils = r.languageUtils, this.options = s, this.logger = he.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 = [], (o = (a = this.backend) == null ? void 0 : a.init) == null || o.call(a, r, s.backend, s);
3179
+ super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = he.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 = [], (o = (a = this.backend) == null ? void 0 : a.init) == null || o.call(a, n, s.backend, s);
3165
3180
  }
3166
- queueLoad(e, t, r, s) {
3181
+ queueLoad(e, t, n, s) {
3167
3182
  const a = {}, o = {}, i = {}, l = {};
3168
3183
  return e.forEach((c) => {
3169
3184
  let u = !0;
3170
3185
  t.forEach((f) => {
3171
3186
  const p = `${c}|${f}`;
3172
- !r.reload && this.store.hasResourceBundle(c, f) ? this.state[p] = 2 : this.state[p] < 0 || (this.state[p] === 1 ? o[p] === void 0 && (o[p] = !0) : (this.state[p] = 1, u = !1, o[p] === void 0 && (o[p] = !0), a[p] === void 0 && (a[p] = !0), l[f] === void 0 && (l[f] = !0)));
3187
+ !n.reload && this.store.hasResourceBundle(c, f) ? this.state[p] = 2 : this.state[p] < 0 || (this.state[p] === 1 ? o[p] === void 0 && (o[p] = !0) : (this.state[p] = 1, u = !1, o[p] === void 0 && (o[p] = !0), a[p] === void 0 && (a[p] = !0), l[f] === void 0 && (l[f] = !0)));
3173
3188
  }), u || (i[c] = !0);
3174
3189
  }), (Object.keys(a).length || Object.keys(o).length) && this.queue.push({
3175
3190
  pending: o,
@@ -3184,11 +3199,11 @@ class Pn extends Ze {
3184
3199
  toLoadNamespaces: Object.keys(l)
3185
3200
  };
3186
3201
  }
3187
- loaded(e, t, r) {
3202
+ loaded(e, t, n) {
3188
3203
  const s = e.split("|"), a = s[0], o = s[1];
3189
- t && this.emit("failedLoading", a, o, t), !t && r && this.store.addResourceBundle(a, o, r, void 0, void 0, {
3204
+ t && this.emit("failedLoading", a, o, t), !t && n && this.store.addResourceBundle(a, o, n, void 0, void 0, {
3190
3205
  skipCopy: !0
3191
- }), this.state[e] = t ? -1 : 2, t && r && (this.state[e] = 0);
3206
+ }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
3192
3207
  const i = {};
3193
3208
  this.queue.forEach((l) => {
3194
3209
  pn(l.loaded, [a], o), Dn(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((c) => {
@@ -3200,13 +3215,13 @@ class Pn extends Ze {
3200
3215
  }), l.done = !0, l.errors.length ? l.callback(l.errors) : l.callback());
3201
3216
  }), this.emit("loaded", i), this.queue = this.queue.filter((l) => !l.done);
3202
3217
  }
3203
- read(e, t, r, s = 0, a = this.retryTimeout, o) {
3218
+ read(e, t, n, s = 0, a = this.retryTimeout, o) {
3204
3219
  if (!e.length) return o(null, {});
3205
3220
  if (this.readingCalls >= this.maxParallelReads) {
3206
3221
  this.waitingReads.push({
3207
3222
  lng: e,
3208
3223
  ns: t,
3209
- fcName: r,
3224
+ fcName: n,
3210
3225
  tried: s,
3211
3226
  wait: a,
3212
3227
  callback: o
@@ -3221,12 +3236,12 @@ class Pn extends Ze {
3221
3236
  }
3222
3237
  if (c && u && s < this.maxRetries) {
3223
3238
  setTimeout(() => {
3224
- this.read.call(this, e, t, r, s + 1, a * 2, o);
3239
+ this.read.call(this, e, t, n, s + 1, a * 2, o);
3225
3240
  }, a);
3226
3241
  return;
3227
3242
  }
3228
3243
  o(c, u);
3229
- }, l = this.backend[r].bind(this.backend);
3244
+ }, l = this.backend[n].bind(this.backend);
3230
3245
  if (l.length === 2) {
3231
3246
  try {
3232
3247
  const c = l(e, t);
@@ -3238,39 +3253,39 @@ class Pn extends Ze {
3238
3253
  }
3239
3254
  return l(e, t, i);
3240
3255
  }
3241
- prepareLoading(e, t, r = {}, s) {
3256
+ prepareLoading(e, t, n = {}, s) {
3242
3257
  if (!this.backend)
3243
3258
  return this.logger.warn("No backend was added via i18next.use. Will not load resources."), s && s();
3244
3259
  H(e) && (e = this.languageUtils.toResolveHierarchy(e)), H(t) && (t = [t]);
3245
- const a = this.queueLoad(e, t, r, s);
3260
+ const a = this.queueLoad(e, t, n, s);
3246
3261
  if (!a.toLoad.length)
3247
3262
  return a.pending.length || s(), null;
3248
3263
  a.toLoad.forEach((o) => {
3249
3264
  this.loadOne(o);
3250
3265
  });
3251
3266
  }
3252
- load(e, t, r) {
3253
- this.prepareLoading(e, t, {}, r);
3267
+ load(e, t, n) {
3268
+ this.prepareLoading(e, t, {}, n);
3254
3269
  }
3255
- reload(e, t, r) {
3270
+ reload(e, t, n) {
3256
3271
  this.prepareLoading(e, t, {
3257
3272
  reload: !0
3258
- }, r);
3273
+ }, n);
3259
3274
  }
3260
3275
  loadOne(e, t = "") {
3261
- const r = e.split("|"), s = r[0], a = r[1];
3276
+ const n = e.split("|"), s = n[0], a = n[1];
3262
3277
  this.read(s, a, "read", void 0, void 0, (o, i) => {
3263
3278
  o && this.logger.warn(`${t}loading namespace ${a} for language ${s} failed`, o), !o && i && this.logger.log(`${t}loaded namespace ${a} for language ${s}`, i), this.loaded(e, o, i);
3264
3279
  });
3265
3280
  }
3266
- saveMissing(e, t, r, s, a, o = {}, i = () => {
3281
+ saveMissing(e, t, n, s, a, o = {}, i = () => {
3267
3282
  }) {
3268
3283
  var l, c, u, f, p;
3269
3284
  if ((c = (l = this.services) == null ? void 0 : l.utils) != null && c.hasLoadedNamespace && !((f = (u = this.services) == null ? void 0 : u.utils) != null && f.hasLoadedNamespace(t))) {
3270
- this.logger.warn(`did not save key "${r}" 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!!!");
3285
+ this.logger.warn(`did not save key "${n}" 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!!!");
3271
3286
  return;
3272
3287
  }
3273
- if (!(r == null || r === "")) {
3288
+ if (!(n == null || n === "")) {
3274
3289
  if ((p = this.backend) != null && p.create) {
3275
3290
  const g = {
3276
3291
  ...o,
@@ -3279,14 +3294,14 @@ class Pn extends Ze {
3279
3294
  if (h.length < 6)
3280
3295
  try {
3281
3296
  let y;
3282
- h.length === 5 ? y = h(e, t, r, s, g) : y = h(e, t, r, s), y && typeof y.then == "function" ? y.then((S) => i(null, S)).catch(i) : i(null, y);
3297
+ h.length === 5 ? y = h(e, t, n, s, g) : y = h(e, t, n, s), y && typeof y.then == "function" ? y.then((w) => i(null, w)).catch(i) : i(null, y);
3283
3298
  } catch (y) {
3284
3299
  i(y);
3285
3300
  }
3286
3301
  else
3287
- h(e, t, r, s, i, g);
3302
+ h(e, t, n, s, i, g);
3288
3303
  }
3289
- !e || !e[0] || this.store.addResource(e[0], t, r, s);
3304
+ !e || !e[0] || this.store.addResource(e[0], t, n, s);
3290
3305
  }
3291
3306
  }
3292
3307
  }
@@ -3323,19 +3338,19 @@ const Qt = () => ({
3323
3338
  parseMissingKeyHandler: !1,
3324
3339
  appendNamespaceToMissingKey: !1,
3325
3340
  appendNamespaceToCIMode: !1,
3326
- overloadTranslationOptionHandler: (n) => {
3341
+ overloadTranslationOptionHandler: (r) => {
3327
3342
  let e = {};
3328
- if (typeof n[1] == "object" && (e = n[1]), H(n[1]) && (e.defaultValue = n[1]), H(n[2]) && (e.tDescription = n[2]), typeof n[2] == "object" || typeof n[3] == "object") {
3329
- const t = n[3] || n[2];
3330
- Object.keys(t).forEach((r) => {
3331
- e[r] = t[r];
3343
+ if (typeof r[1] == "object" && (e = r[1]), H(r[1]) && (e.defaultValue = r[1]), H(r[2]) && (e.tDescription = r[2]), typeof r[2] == "object" || typeof r[3] == "object") {
3344
+ const t = r[3] || r[2];
3345
+ Object.keys(t).forEach((n) => {
3346
+ e[n] = t[n];
3332
3347
  });
3333
3348
  }
3334
3349
  return e;
3335
3350
  },
3336
3351
  interpolation: {
3337
3352
  escapeValue: !0,
3338
- format: (n) => n,
3353
+ format: (r) => r,
3339
3354
  prefix: "{{",
3340
3355
  suffix: "}}",
3341
3356
  formatSeparator: ",",
@@ -3347,16 +3362,16 @@ const Qt = () => ({
3347
3362
  skipOnVariables: !0
3348
3363
  },
3349
3364
  cacheInBuiltFormats: !0
3350
- }), er = (n) => {
3365
+ }), er = (r) => {
3351
3366
  var e, t;
3352
- return H(n.ns) && (n.ns = [n.ns]), H(n.fallbackLng) && (n.fallbackLng = [n.fallbackLng]), H(n.fallbackNS) && (n.fallbackNS = [n.fallbackNS]), ((t = (e = n.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), typeof n.initImmediate == "boolean" && (n.initAsync = n.initImmediate), n;
3353
- }, Ve = () => {
3354
- }, An = (n) => {
3355
- Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
3356
- typeof n[t] == "function" && (n[t] = n[t].bind(n));
3367
+ return H(r.ns) && (r.ns = [r.ns]), H(r.fallbackLng) && (r.fallbackLng = [r.fallbackLng]), H(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;
3368
+ }, Ye = () => {
3369
+ }, An = (r) => {
3370
+ Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((t) => {
3371
+ typeof r[t] == "function" && (r[t] = r[t].bind(r));
3357
3372
  });
3358
3373
  };
3359
- class je extends Ze {
3374
+ class Le extends Ze {
3360
3375
  constructor(e = {}, t) {
3361
3376
  if (super(), this.options = er(e), this.services = {}, this.logger = he, this.modules = {
3362
3377
  external: []
@@ -3370,13 +3385,13 @@ class je extends Ze {
3370
3385
  }
3371
3386
  init(e = {}, t) {
3372
3387
  this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (H(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
3373
- const r = Qt();
3388
+ const n = Qt();
3374
3389
  this.options = {
3375
- ...r,
3390
+ ...n,
3376
3391
  ...this.options,
3377
3392
  ...er(e)
3378
3393
  }, this.options.interpolation = {
3379
- ...r.interpolation,
3394
+ ...n.interpolation,
3380
3395
  ...this.options.interpolation
3381
3396
  }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator);
3382
3397
  const s = (c) => c ? typeof c == "function" ? new c() : c : null;
@@ -3390,7 +3405,7 @@ class je extends Ze {
3390
3405
  f.logger = he, f.resourceStore = this.store, f.languageUtils = u, f.pluralResolver = new wn(u, {
3391
3406
  prepend: this.options.pluralSeparator,
3392
3407
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
3393
- }), c && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (f.formatter = s(c), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new En(this.options), f.utils = {
3408
+ }), c && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (f.formatter = s(c), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new En(this.options), f.utils = {
3394
3409
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
3395
3410
  }, f.backendConnector = new Pn(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (p, ...g) => {
3396
3411
  this.emit(p, ...g);
@@ -3400,7 +3415,7 @@ class je extends Ze {
3400
3415
  p.init && p.init(this);
3401
3416
  });
3402
3417
  }
3403
- if (this.format = this.options.interpolation.format, t || (t = Ve), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3418
+ if (this.format = this.options.interpolation.format, t || (t = Ye), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3404
3419
  const c = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3405
3420
  c.length > 0 && c[0] !== "dev" && (this.options.lng = c[0]);
3406
3421
  }
@@ -3409,7 +3424,7 @@ class je extends Ze {
3409
3424
  }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((c) => {
3410
3425
  this[c] = (...u) => (this.store[c](...u), this);
3411
3426
  });
3412
- const i = Pe(), l = () => {
3427
+ const i = Ae(), l = () => {
3413
3428
  const c = (u, f) => {
3414
3429
  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), i.resolve(f), t(u, f);
3415
3430
  };
@@ -3418,12 +3433,12 @@ class je extends Ze {
3418
3433
  };
3419
3434
  return this.options.resources || !this.options.initAsync ? l() : setTimeout(l, 0), i;
3420
3435
  }
3421
- loadResources(e, t = Ve) {
3436
+ loadResources(e, t = Ye) {
3422
3437
  var a, o;
3423
- let r = t;
3438
+ let n = t;
3424
3439
  const s = H(e) ? e : this.language;
3425
- if (typeof e == "function" && (r = e), !this.options.resources || this.options.partialBundledLanguages) {
3426
- if ((s == null ? void 0 : s.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return r();
3440
+ if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
3441
+ if ((s == null ? void 0 : s.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
3427
3442
  const i = [], l = (c) => {
3428
3443
  if (!c || c === "cimode") return;
3429
3444
  this.services.languageUtils.toResolveHierarchy(c).forEach((f) => {
@@ -3431,15 +3446,15 @@ class je extends Ze {
3431
3446
  });
3432
3447
  };
3433
3448
  s ? l(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((u) => l(u)), (o = (a = this.options.preload) == null ? void 0 : a.forEach) == null || o.call(a, (c) => l(c)), this.services.backendConnector.load(i, this.options.ns, (c) => {
3434
- !c && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), r(c);
3449
+ !c && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(c);
3435
3450
  });
3436
3451
  } else
3437
- r(null);
3452
+ n(null);
3438
3453
  }
3439
- reloadResources(e, t, r) {
3440
- const s = Pe();
3441
- return typeof e == "function" && (r = e, e = void 0), typeof t == "function" && (r = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), r || (r = Ve), this.services.backendConnector.reload(e, t, (a) => {
3442
- s.resolve(), r(a);
3454
+ reloadResources(e, t, n) {
3455
+ const s = Ae();
3456
+ return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), n || (n = Ye), this.services.backendConnector.reload(e, t, (a) => {
3457
+ s.resolve(), n(a);
3443
3458
  }), s;
3444
3459
  }
3445
3460
  use(e) {
@@ -3450,9 +3465,9 @@ class je extends Ze {
3450
3465
  setResolvedLanguage(e) {
3451
3466
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
3452
3467
  for (let t = 0; t < this.languages.length; t++) {
3453
- const r = this.languages[t];
3454
- if (!(["cimode", "dev"].indexOf(r) > -1) && this.store.hasLanguageSomeTranslations(r)) {
3455
- this.resolvedLanguage = r;
3468
+ const n = this.languages[t];
3469
+ if (!(["cimode", "dev"].indexOf(n) > -1) && this.store.hasLanguageSomeTranslations(n)) {
3470
+ this.resolvedLanguage = n;
3456
3471
  break;
3457
3472
  }
3458
3473
  }
@@ -3461,12 +3476,12 @@ class je extends Ze {
3461
3476
  }
3462
3477
  changeLanguage(e, t) {
3463
3478
  this.isLanguageChangingTo = e;
3464
- const r = Pe();
3479
+ const n = Ae();
3465
3480
  this.emit("languageChanging", e);
3466
3481
  const s = (i) => {
3467
3482
  this.language = i, this.languages = this.services.languageUtils.toResolveHierarchy(i), this.resolvedLanguage = void 0, this.setResolvedLanguage(i);
3468
3483
  }, a = (i, l) => {
3469
- l ? this.isLanguageChangingTo === e && (s(l), this.translator.changeLanguage(l), this.isLanguageChangingTo = void 0, this.emit("languageChanged", l), this.logger.log("languageChanged", l)) : this.isLanguageChangingTo = void 0, r.resolve((...c) => this.t(...c)), t && t(i, (...c) => this.t(...c));
3484
+ l ? this.isLanguageChangingTo === e && (s(l), this.translator.changeLanguage(l), this.isLanguageChangingTo = void 0, this.emit("languageChanged", l), this.logger.log("languageChanged", l)) : this.isLanguageChangingTo = void 0, n.resolve((...c) => this.t(...c)), t && t(i, (...c) => this.t(...c));
3470
3485
  }, o = (i) => {
3471
3486
  var u, f;
3472
3487
  !e && !i && this.services.languageDetector && (i = []);
@@ -3475,19 +3490,19 @@ class je extends Ze {
3475
3490
  a(p, c);
3476
3491
  });
3477
3492
  };
3478
- return !e && this.services.languageDetector && !this.services.languageDetector.async ? o(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(o) : this.services.languageDetector.detect(o) : o(e), r;
3493
+ return !e && this.services.languageDetector && !this.services.languageDetector.async ? o(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(o) : this.services.languageDetector.detect(o) : o(e), n;
3479
3494
  }
3480
- getFixedT(e, t, r) {
3495
+ getFixedT(e, t, n) {
3481
3496
  const s = (a, o, ...i) => {
3482
3497
  let l;
3483
3498
  typeof o != "object" ? l = this.options.overloadTranslationOptionHandler([a, o].concat(i)) : l = {
3484
3499
  ...o
3485
- }, l.lng = l.lng || s.lng, l.lngs = l.lngs || s.lngs, l.ns = l.ns || s.ns, l.keyPrefix !== "" && (l.keyPrefix = l.keyPrefix || r || s.keyPrefix);
3500
+ }, l.lng = l.lng || s.lng, l.lngs = l.lngs || s.lngs, l.ns = l.ns || s.ns, l.keyPrefix !== "" && (l.keyPrefix = l.keyPrefix || n || s.keyPrefix);
3486
3501
  const c = this.options.keySeparator || ".";
3487
3502
  let u;
3488
3503
  return l.keyPrefix && Array.isArray(a) ? u = a.map((f) => `${l.keyPrefix}${c}${f}`) : u = l.keyPrefix ? `${l.keyPrefix}${c}${a}` : a, this.t(u, l);
3489
3504
  };
3490
- return H(e) ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = r, s;
3505
+ return H(e) ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = n, s;
3491
3506
  }
3492
3507
  t(...e) {
3493
3508
  var t;
@@ -3505,8 +3520,8 @@ class je extends Ze {
3505
3520
  return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
3506
3521
  if (!this.languages || !this.languages.length)
3507
3522
  return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
3508
- const r = t.lng || this.resolvedLanguage || this.languages[0], s = this.options ? this.options.fallbackLng : !1, a = this.languages[this.languages.length - 1];
3509
- if (r.toLowerCase() === "cimode") return !0;
3523
+ const n = t.lng || this.resolvedLanguage || this.languages[0], s = this.options ? this.options.fallbackLng : !1, a = this.languages[this.languages.length - 1];
3524
+ if (n.toLowerCase() === "cimode") return !0;
3510
3525
  const o = (i, l) => {
3511
3526
  const c = this.services.backendConnector.state[`${i}|${l}`];
3512
3527
  return c === -1 || c === 0 || c === 2;
@@ -3515,48 +3530,48 @@ class je extends Ze {
3515
3530
  const i = t.precheck(this, o);
3516
3531
  if (i !== void 0) return i;
3517
3532
  }
3518
- return !!(this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || o(r, e) && (!s || o(a, e)));
3533
+ return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || o(n, e) && (!s || o(a, e)));
3519
3534
  }
3520
3535
  loadNamespaces(e, t) {
3521
- const r = Pe();
3536
+ const n = Ae();
3522
3537
  return this.options.ns ? (H(e) && (e = [e]), e.forEach((s) => {
3523
3538
  this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
3524
3539
  }), this.loadResources((s) => {
3525
- r.resolve(), t && t(s);
3526
- }), r) : (t && t(), Promise.resolve());
3540
+ n.resolve(), t && t(s);
3541
+ }), n) : (t && t(), Promise.resolve());
3527
3542
  }
3528
3543
  loadLanguages(e, t) {
3529
- const r = Pe();
3544
+ const n = Ae();
3530
3545
  H(e) && (e = [e]);
3531
3546
  const s = this.options.preload || [], a = e.filter((o) => s.indexOf(o) < 0 && this.services.languageUtils.isSupportedCode(o));
3532
3547
  return a.length ? (this.options.preload = s.concat(a), this.loadResources((o) => {
3533
- r.resolve(), t && t(o);
3534
- }), r) : (t && t(), Promise.resolve());
3548
+ n.resolve(), t && t(o);
3549
+ }), n) : (t && t(), Promise.resolve());
3535
3550
  }
3536
3551
  dir(e) {
3537
3552
  var s, a;
3538
3553
  if (e || (e = this.resolvedLanguage || (((s = this.languages) == null ? void 0 : s.length) > 0 ? this.languages[0] : this.language)), !e) return "rtl";
3539
- 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"], r = ((a = this.services) == null ? void 0 : a.languageUtils) || new Gt(Qt());
3540
- return t.indexOf(r.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
3554
+ 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"], n = ((a = this.services) == null ? void 0 : a.languageUtils) || new Gt(Qt());
3555
+ return t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
3541
3556
  }
3542
3557
  static createInstance(e = {}, t) {
3543
- return new je(e, t);
3558
+ return new Le(e, t);
3544
3559
  }
3545
- cloneInstance(e = {}, t = Ve) {
3546
- const r = e.forkResourceStore;
3547
- r && delete e.forkResourceStore;
3560
+ cloneInstance(e = {}, t = Ye) {
3561
+ const n = e.forkResourceStore;
3562
+ n && delete e.forkResourceStore;
3548
3563
  const s = {
3549
3564
  ...this.options,
3550
3565
  ...e,
3551
3566
  isClone: !0
3552
- }, a = new je(s);
3567
+ }, a = new Le(s);
3553
3568
  if ((e.debug !== void 0 || e.prefix !== void 0) && (a.logger = a.logger.clone(e)), ["store", "services", "language"].forEach((i) => {
3554
3569
  a[i] = this[i];
3555
3570
  }), a.services = {
3556
3571
  ...this.services
3557
3572
  }, a.services.utils = {
3558
3573
  hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
3559
- }, r) {
3574
+ }, n) {
3560
3575
  const i = Object.keys(this.store.data).reduce((l, c) => (l[c] = {
3561
3576
  ...this.store.data[c]
3562
3577
  }, l[c] = Object.keys(l[c]).reduce((u, f) => (u[f] = {
@@ -3580,8 +3595,8 @@ class je extends Ze {
3580
3595
  };
3581
3596
  }
3582
3597
  }
3583
- const se = je.createInstance();
3584
- se.createInstance = je.createInstance;
3598
+ const se = Le.createInstance();
3599
+ se.createInstance = Le.createInstance;
3585
3600
  se.createInstance;
3586
3601
  se.dir;
3587
3602
  se.init;
@@ -3607,39 +3622,39 @@ const $n = { Friday: "Venerdì", FridayShort: "Ven", Monday: "Lunedì", MondaySh
3607
3622
  Month: In,
3608
3623
  Generic: Nn
3609
3624
  };
3610
- function tr(n, e) {
3611
- return new RegExp(Mn(n), e);
3625
+ function tr(r, e) {
3626
+ return new RegExp(Mn(r), e);
3612
3627
  }
3613
- function Mn(n) {
3614
- return n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3628
+ function Mn(r) {
3629
+ return r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3615
3630
  }
3616
- function Fn(n, e, t, r) {
3631
+ function Fn(r, e, t, n) {
3617
3632
  let s = e;
3618
- const a = Vn(n, t);
3633
+ const a = Vn(r, t);
3619
3634
  if (!s) {
3620
3635
  const i = Math.abs(a);
3621
3636
  i - Math.floor(i) ? s = "0,0.00" : s = "0,0";
3622
3637
  }
3623
3638
  const o = Yn(s);
3624
- return new Intl.NumberFormat(r, o).format(a);
3639
+ return new Intl.NumberFormat(n, o).format(a);
3625
3640
  }
3626
- function Vn(n, e, t, r, s) {
3627
- let a = n;
3641
+ function Vn(r, e, t, n, s) {
3642
+ let a = r;
3628
3643
  if (typeof a != "number") {
3629
3644
  let i;
3630
- e && r === void 0 ? i = "," : i = ".";
3645
+ e && n === void 0 ? i = "," : i = ".";
3631
3646
  const l = i == "." ? "," : ".";
3632
3647
  a = a.replace(tr(l, "g"), ""), a = a.replace(tr(i, "g"), "."), a = Number(a);
3633
3648
  }
3634
3649
  const o = Number(a);
3635
3650
  return isNaN(o) ? NaN : o;
3636
3651
  }
3637
- function Yn(n) {
3652
+ function Yn(r) {
3638
3653
  const e = {};
3639
- n.includes(",") ? e.useGrouping = !0 : e.useGrouping = !1;
3640
- const t = n.indexOf(".");
3654
+ r.includes(",") ? e.useGrouping = !0 : e.useGrouping = !1;
3655
+ const t = r.indexOf(".");
3641
3656
  if (t > -1) {
3642
- const s = (n.substring(t + 1).match(/0/g) || []).length;
3657
+ const s = (r.substring(t + 1).match(/0/g) || []).length;
3643
3658
  e.minimumFractionDigits = s, e.maximumFractionDigits = s;
3644
3659
  } else
3645
3660
  e.minimumFractionDigits = 0, e.maximumFractionDigits = 0;
@@ -3651,24 +3666,24 @@ se.init({
3651
3666
  debug: !1,
3652
3667
  interpolation: {
3653
3668
  escapeValue: !1,
3654
- format: (n, e, t, r) => {
3655
- const s = (r == null ? void 0 : r.type) ?? "number";
3669
+ format: (r, e, t, n) => {
3670
+ const s = (n == null ? void 0 : n.type) ?? "number";
3656
3671
  try {
3657
3672
  switch (s) {
3658
3673
  case "date": {
3659
- const a = n instanceof Date ? n : new Date(n);
3674
+ const a = r instanceof Date ? r : new Date(r);
3660
3675
  return new Intl.DateTimeFormat(t, {
3661
3676
  dateStyle: e || "short"
3662
3677
  }).format(a);
3663
3678
  }
3664
3679
  default:
3665
3680
  case "number": {
3666
- const a = (r == null ? void 0 : r.inputIsLocalized) ?? !1;
3667
- return Fn(n, e, a, t);
3681
+ const a = (n == null ? void 0 : n.inputIsLocalized) ?? !1;
3682
+ return Fn(r, e, a, t);
3668
3683
  }
3669
3684
  }
3670
3685
  } catch {
3671
- return n;
3686
+ return r;
3672
3687
  }
3673
3688
  }
3674
3689
  },
@@ -3681,38 +3696,38 @@ se.init({
3681
3696
  }
3682
3697
  }
3683
3698
  });
3684
- const Un = (n, e, t, r) => se.format(n, e, t || se.language, r), Wn = (n, e) => se.t(n, e);
3699
+ const Un = (r, e, t, n) => se.format(r, e, t || se.language, n), Wn = (r, e) => se.t(r, e);
3685
3700
  function Qe() {
3686
- const n = me(
3687
- (r, s, a, o) => Un(r, s, a || void 0, o),
3701
+ const r = me(
3702
+ (n, s, a, o) => Un(n, s, a || void 0, o),
3688
3703
  []
3689
3704
  ), e = me(() => se.languages[0], []), t = me(
3690
- (r, s) => Wn(r, s),
3705
+ (n, s) => Wn(n, s),
3691
3706
  []
3692
3707
  );
3693
- return { format: n, getCurrentLanguage: e, translate: t };
3708
+ return { format: r, getCurrentLanguage: e, translate: t };
3694
3709
  }
3695
- var yt = /* @__PURE__ */ ((n) => (n.CALENDAR_FOR = "Date.CalendarFor", n.CLOSE = "Generic.Close", n.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", n))(yt || {}), ie = /* @__PURE__ */ ((n) => (n.MONDAY = "Day.Monday", n.MONDAY_SHORT = "Day.MondayShort", n.TUESDAY = "Day.Tuesday", n.TUESDAY_SHORT = "Day.TuesdayShort", n.WEDNESDAY = "Day.Wednesday", n.WEDNESDAY_SHORT = "Day.WednesdayShort", n.THURSDAY = "Day.Thursday", n.THURSDAY_SHORT = "Day.ThursdayShort", n.FRIDAY = "Day.Friday", n.FRIDAY_SHORT = "Day.FridayShort", n.SATURDAY = "Day.Saturday", n.SATURDAY_SHORT = "Day.SaturdayShort", n.SUNDAY = "Day.Sunday", n.SUNDAY_SHORT = "Day.SundayShort", n))(ie || {}), ce = /* @__PURE__ */ ((n) => (n.JANUARY = "Month.January", n.FEBRUARY = "Month.February", n.MARCH = "Month.March", n.APRIL = "Month.April", n.MAY = "Month.May", n.JUNE = "Month.June", n.JULY = "Month.July", n.AUGUST = "Month.August", n.SEPTEMBER = "Month.September", n.OCTOBER = "Month.October", n.NOVEMBER = "Month.November", n.DECEMBER = "Month.December", n))(ce || {}), pt = /* @__PURE__ */ ((n) => (n.PREVIOUS_DAY = "Date.PreviousDay", n.PREVIOUS_WEEK = "Date.PreviousWeek", n.PREVIOUS_MONTH = "Date.PreviousMonth", n.PREVIOUS_YEAR = "Date.PreviousYear", n.NEXT_DAY = "Date.NextDay", n.NEXT_WEEK = "Date.NextWeek", n.NEXT_MONTH = "Date.NextMonth", n.NEXT_YEAR = "Date.NextYear", n.YESTERDAY = "Date.Yesterday", n.TODAY = "Date.Today", n.TOMORROW = "Date.Tomorrow", n))(pt || {});
3710
+ var yt = /* @__PURE__ */ ((r) => (r.CALENDAR_FOR = "Date.CalendarFor", r.CLOSE = "Generic.Close", r.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", r))(yt || {}), ie = /* @__PURE__ */ ((r) => (r.MONDAY = "Day.Monday", r.MONDAY_SHORT = "Day.MondayShort", r.TUESDAY = "Day.Tuesday", r.TUESDAY_SHORT = "Day.TuesdayShort", r.WEDNESDAY = "Day.Wednesday", r.WEDNESDAY_SHORT = "Day.WednesdayShort", r.THURSDAY = "Day.Thursday", r.THURSDAY_SHORT = "Day.ThursdayShort", r.FRIDAY = "Day.Friday", r.FRIDAY_SHORT = "Day.FridayShort", r.SATURDAY = "Day.Saturday", r.SATURDAY_SHORT = "Day.SaturdayShort", r.SUNDAY = "Day.Sunday", r.SUNDAY_SHORT = "Day.SundayShort", r))(ie || {}), ce = /* @__PURE__ */ ((r) => (r.JANUARY = "Month.January", r.FEBRUARY = "Month.February", r.MARCH = "Month.March", r.APRIL = "Month.April", r.MAY = "Month.May", r.JUNE = "Month.June", r.JULY = "Month.July", r.AUGUST = "Month.August", r.SEPTEMBER = "Month.September", r.OCTOBER = "Month.October", r.NOVEMBER = "Month.November", r.DECEMBER = "Month.December", r))(ce || {}), pt = /* @__PURE__ */ ((r) => (r.PREVIOUS_DAY = "Date.PreviousDay", r.PREVIOUS_WEEK = "Date.PreviousWeek", r.PREVIOUS_MONTH = "Date.PreviousMonth", r.PREVIOUS_YEAR = "Date.PreviousYear", r.NEXT_DAY = "Date.NextDay", r.NEXT_WEEK = "Date.NextWeek", r.NEXT_MONTH = "Date.NextMonth", r.NEXT_YEAR = "Date.NextYear", r.YESTERDAY = "Date.Yesterday", r.TODAY = "Date.Today", r.TOMORROW = "Date.Tomorrow", r))(pt || {});
3696
3711
  function Hn({
3697
- selectedDate: n,
3712
+ selectedDate: r,
3698
3713
  onDateChange: e,
3699
3714
  disabledDateRanges: t = [],
3700
- initialValue: r,
3715
+ initialValue: n,
3701
3716
  targetRef: s
3702
3717
  }) {
3703
3718
  const { translate: a } = Qe(), o = () => {
3704
- if (!r) return;
3705
- const k = new Date(r);
3719
+ if (!n) return;
3720
+ const k = new Date(n);
3706
3721
  return isNaN(k.getTime()) ? void 0 : k;
3707
3722
  }, [i] = Q(/* @__PURE__ */ new Date()), [l, c] = Q(
3708
- n || o() || /* @__PURE__ */ new Date()
3723
+ r || o() || /* @__PURE__ */ new Date()
3709
3724
  ), [u, f] = Q(
3710
3725
  l ? l.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
3711
3726
  ), [p, g] = Q(
3712
3727
  l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
3713
3728
  ), [h, y] = Q(
3714
3729
  l ? l.getDate() : null
3715
- ), S = be(null), E = be([]), b = [
3730
+ ), w = be(null), E = be([]), b = [
3716
3731
  a(ce.JANUARY),
3717
3732
  a(ce.FEBRUARY),
3718
3733
  a(ce.MARCH),
@@ -3755,8 +3770,8 @@ function Hn({
3755
3770
  full: a(ie.SATURDAY)
3756
3771
  }
3757
3772
  ], R = (k) => t.some((d) => {
3758
- const m = d.start.getTime(), w = d.end.getTime(), D = k.getTime();
3759
- return D >= m && D <= w;
3773
+ const m = d.start.getTime(), S = d.end.getTime(), D = k.getTime();
3774
+ return D >= m && D <= S;
3760
3775
  }), v = (k) => {
3761
3776
  R(k) || (c(k), y(k.getDate()), e && e(kr(k)));
3762
3777
  }, $ = () => {
@@ -3766,19 +3781,19 @@ function Hn({
3766
3781
  }, V = (k, d) => new Date(k, d + 1, 0).getDate(), F = (k, d) => new Date(k, d, 1).getDay(), C = (k) => {
3767
3782
  var m;
3768
3783
  const d = q.findIndex(
3769
- (w) => w !== null && w.getDate() === k
3784
+ (S) => S !== null && S.getDate() === k
3770
3785
  );
3771
3786
  d !== -1 && E.current[d] && ((m = E.current[d]) == null || m.focus(), y(k));
3772
3787
  }, I = (k, d) => {
3773
3788
  const m = q[d];
3774
3789
  if (!m) return;
3775
- const w = V(p, u), D = m.getDate();
3790
+ const S = V(p, u), D = m.getDate();
3776
3791
  switch (k.key) {
3777
3792
  case "ArrowRight":
3778
3793
  k.preventDefault();
3779
3794
  {
3780
3795
  let T = D + 1, P = new Date(p, u, T);
3781
- if (T > w) {
3796
+ if (T > S) {
3782
3797
  const N = u === 11 ? p + 1 : p, _ = u === 11 ? 0 : u + 1;
3783
3798
  T = 1, P = new Date(N, _, T), j(), setTimeout(() => {
3784
3799
  Y(1, "forward");
@@ -3822,9 +3837,9 @@ function Hn({
3822
3837
  k.preventDefault();
3823
3838
  {
3824
3839
  let T = D + 7, P = new Date(p, u, T);
3825
- if (T > w) {
3840
+ if (T > S) {
3826
3841
  const N = u === 11 ? p + 1 : p, _ = u === 11 ? 0 : u + 1;
3827
- T = T - w, P = new Date(N, _, T), j(), setTimeout(() => {
3842
+ T = T - S, P = new Date(N, _, T), j(), setTimeout(() => {
3828
3843
  Y(T, "forward");
3829
3844
  }, 0);
3830
3845
  return;
@@ -3836,7 +3851,7 @@ function Hn({
3836
3851
  k.preventDefault(), Y(1, "forward");
3837
3852
  break;
3838
3853
  case "End":
3839
- k.preventDefault(), Y(w, "backward");
3854
+ k.preventDefault(), Y(S, "backward");
3840
3855
  break;
3841
3856
  case "PageUp":
3842
3857
  k.preventDefault(), $(), setTimeout(() => {
@@ -3868,10 +3883,10 @@ function Hn({
3868
3883
  }, Y = (k, d) => {
3869
3884
  const m = V(p, u);
3870
3885
  if (d === "forward") {
3871
- for (let w = k; w <= m; w++) {
3872
- const D = new Date(p, u, w);
3886
+ for (let S = k; S <= m; S++) {
3887
+ const D = new Date(p, u, S);
3873
3888
  if (!R(D)) {
3874
- C(w);
3889
+ C(S);
3875
3890
  return;
3876
3891
  }
3877
3892
  }
@@ -3886,17 +3901,17 @@ function Hn({
3886
3901
  return;
3887
3902
  }
3888
3903
  }
3889
- const w = u === 0 ? p - 1 : p, D = u === 0 ? 11 : u - 1, T = V(w, D);
3904
+ const S = u === 0 ? p - 1 : p, D = u === 0 ? 11 : u - 1, T = V(S, D);
3890
3905
  $(), setTimeout(() => {
3891
3906
  Y(T, "backward");
3892
3907
  }, 0);
3893
3908
  }
3894
3909
  }, q = (() => {
3895
3910
  const k = V(p, u), d = F(p, u), m = [];
3896
- for (let w = 0; w < d; w++)
3911
+ for (let S = 0; S < d; S++)
3897
3912
  m.push(null);
3898
- for (let w = 1; w <= k; w++) {
3899
- const D = new Date(p, u, w);
3913
+ for (let S = 1; S <= k; S++) {
3914
+ const D = new Date(p, u, S);
3900
3915
  m.push(D);
3901
3916
  }
3902
3917
  return m;
@@ -3923,11 +3938,11 @@ function Hn({
3923
3938
  calendar: "smp-datepickercalendar",
3924
3939
  table: "smp-datepickercalendar-table",
3925
3940
  th: "smp-datepickercalendar-th",
3926
- td: (k, d, m, w) => `smp-datepickercalendar-td
3941
+ td: (k, d, m, S) => `smp-datepickercalendar-td
3927
3942
  ${k ? "smp-datepickercalendar-td-today" : ""}
3928
3943
  ${d ? "smp-datepickercalendar-td-selected" : ""}
3929
3944
  ${m ? "smp-datepickercalendar-td-focused" : ""}
3930
- ${w ? "smp-datepickercalendar-td-disabled" : ""}`
3945
+ ${S ? "smp-datepickercalendar-td-disabled" : ""}`
3931
3946
  }, B = () => `${b[u]} ${p.toString()}`;
3932
3947
  return /* @__PURE__ */ x.jsxs(
3933
3948
  "div",
@@ -3983,7 +3998,7 @@ function Hn({
3983
3998
  /* @__PURE__ */ x.jsxs(
3984
3999
  "table",
3985
4000
  {
3986
- ref: S,
4001
+ ref: w,
3987
4002
  role: "grid",
3988
4003
  "aria-label": `${a(yt.CALENDAR_FOR)} ${b[u]} ${p}`,
3989
4004
  className: U.table,
@@ -3998,8 +4013,8 @@ function Hn({
3998
4013
  },
3999
4014
  k.value
4000
4015
  )) }) }),
4001
- /* @__PURE__ */ x.jsx("tbody", { children: ne.map((k, d) => /* @__PURE__ */ x.jsx("tr", { children: k.map((m, w) => {
4002
- const D = d * 7 + w;
4016
+ /* @__PURE__ */ x.jsx("tbody", { children: ne.map((k, d) => /* @__PURE__ */ x.jsx("tr", { children: k.map((m, S) => {
4017
+ const D = d * 7 + S;
4003
4018
  if (m === null)
4004
4019
  return /* @__PURE__ */ x.jsx(
4005
4020
  "td",
@@ -4011,7 +4026,7 @@ function Hn({
4011
4026
  !0
4012
4027
  )
4013
4028
  },
4014
- `empty-${w}`
4029
+ `empty-${S}`
4015
4030
  );
4016
4031
  const T = m.getDate() === i.getDate() && m.getMonth() === i.getMonth() && m.getFullYear() === i.getFullYear(), P = l && m.getDate() === l.getDate() && m.getMonth() === l.getMonth() && m.getFullYear() === l.getFullYear(), N = h === m.getDate(), _ = R(m);
4017
4032
  return /* @__PURE__ */ x.jsx(
@@ -4036,7 +4051,7 @@ function Hn({
4036
4051
  ),
4037
4052
  children: m.getDate()
4038
4053
  },
4039
- `day-${w}`
4054
+ `day-${S}`
4040
4055
  );
4041
4056
  }) }, `week-${d}`)) })
4042
4057
  ]
@@ -4047,19 +4062,19 @@ function Hn({
4047
4062
  );
4048
4063
  }
4049
4064
  const qn = ({
4050
- bindValue: n,
4065
+ bindValue: r,
4051
4066
  placeholder: e,
4052
4067
  onChange: t,
4053
- disabledDateRanges: r,
4068
+ disabledDateRanges: n,
4054
4069
  ...s
4055
4070
  }) => {
4056
- const [a, o] = Q(!1), [i, l] = Q(n || ""), [c, u] = Q(""), { anchorRef: f, targetRef: p } = gt({
4071
+ const [a, o] = Q(!1), [i, l] = Q(r || ""), [c, u] = Q(""), { anchorRef: f, targetRef: p } = gt({
4057
4072
  position: "bottom",
4058
4073
  enabled: a
4059
4074
  });
4060
- He(p, () => {
4075
+ qe(p, () => {
4061
4076
  o(!1);
4062
- }), He(f, () => {
4077
+ }), qe(f, () => {
4063
4078
  if (
4064
4079
  // FIXME: Copied from useClickOutside.
4065
4080
  typeof f == "object" && f !== null && "current" in f
@@ -4083,10 +4098,10 @@ const qn = ({
4083
4098
  [h, g]
4084
4099
  );
4085
4100
  oe(() => {
4086
- const { formattedDate: $, isoDate: j, isValid: V } = y(n);
4087
- l(V && j || n), u(V && $ || n);
4088
- }, [n, g, y]);
4089
- const S = () => o(($) => !$), E = () => {
4101
+ const { formattedDate: $, isoDate: j, isValid: V } = y(r);
4102
+ l(V && j || r), u(V && $ || r);
4103
+ }, [r, g, y]);
4104
+ const w = () => o(($) => !$), E = () => {
4090
4105
  O(c);
4091
4106
  }, b = ($) => {
4092
4107
  O($), o(!1);
@@ -4100,7 +4115,7 @@ const qn = ({
4100
4115
  };
4101
4116
  return /* @__PURE__ */ x.jsxs("div", { "data-component": "date-picker", children: [
4102
4117
  /* @__PURE__ */ x.jsx(
4103
- Oe,
4118
+ Re,
4104
4119
  {
4105
4120
  bindValue: c,
4106
4121
  placeholder: e,
@@ -4108,7 +4123,7 @@ const qn = ({
4108
4123
  onChange: R,
4109
4124
  onKeyDown: v,
4110
4125
  shapeIcon: "calendar",
4111
- onShapeIconClick: S,
4126
+ onShapeIconClick: w,
4112
4127
  ref: f,
4113
4128
  ...s
4114
4129
  }
@@ -4116,7 +4131,7 @@ const qn = ({
4116
4131
  a && /* @__PURE__ */ x.jsx(
4117
4132
  Hn,
4118
4133
  {
4119
- disabledDateRanges: r,
4134
+ disabledDateRanges: n,
4120
4135
  onDateChange: b,
4121
4136
  initialValue: ht(i) && i || "",
4122
4137
  targetRef: p
@@ -4124,17 +4139,17 @@ const qn = ({
4124
4139
  )
4125
4140
  ] });
4126
4141
  }, Kn = ({
4127
- elements: n,
4142
+ elements: r,
4128
4143
  displayMode: e,
4129
4144
  minimumChars: t,
4130
- listDisplayMode: r,
4145
+ listDisplayMode: n,
4131
4146
  placeholder: s,
4132
4147
  fun: a,
4133
4148
  onOptionsRequest: o,
4134
4149
  onChange: i
4135
4150
  }) => {
4136
- const l = n.map((f) => f.bindValue), c = (f, p) => {
4137
- const g = [...n];
4151
+ const l = r.map((f) => f.bindValue), c = (f, p) => {
4152
+ const g = [...r];
4138
4153
  if (f == "")
4139
4154
  g.pop();
4140
4155
  else {
@@ -4159,7 +4174,7 @@ const qn = ({
4159
4174
  /* @__PURE__ */ x.jsx(
4160
4175
  hr,
4161
4176
  {
4162
- elements: n,
4177
+ elements: r,
4163
4178
  displayMode: e,
4164
4179
  isEditable: !0,
4165
4180
  onChange: (f) => {
@@ -4174,7 +4189,7 @@ const qn = ({
4174
4189
  fun: a,
4175
4190
  onChange: c,
4176
4191
  _changeOnEnter: !0,
4177
- listDisplayMode: r,
4192
+ listDisplayMode: n,
4178
4193
  minimumChars: t,
4179
4194
  placeholder: s,
4180
4195
  onOptionsRequest: o,
@@ -4184,29 +4199,29 @@ const qn = ({
4184
4199
  ]
4185
4200
  }
4186
4201
  );
4187
- }, Bn = ({ ...n }) => {
4188
- const [e, t] = Q(!1), r = e ? "visibility-off" : "visibility";
4202
+ }, Bn = ({ ...r }) => {
4203
+ const [e, t] = Q(!1), n = e ? "visibility-off" : "visibility";
4189
4204
  return /* @__PURE__ */ x.jsx(
4190
- Oe,
4205
+ Re,
4191
4206
  {
4192
- ...n,
4207
+ ...r,
4193
4208
  inputType: e ? "text" : "password",
4194
- shapeIcon: r,
4209
+ shapeIcon: n,
4195
4210
  onShapeIconClick: () => t(!e),
4196
4211
  ariaLabel: "password",
4197
4212
  "data-component": "password"
4198
4213
  }
4199
4214
  );
4200
- }, Gn = ({ ...n }) => {
4201
- const [e, t] = Q(n.bindValue), { translate: r } = Qe(), s = (a) => {
4215
+ }, Gn = ({ ...r }) => {
4216
+ const [e, t] = Q(r.bindValue), { translate: n } = Qe(), s = (a) => {
4202
4217
  var o;
4203
- a.key === "Enter" && (a.preventDefault(), (o = n.onEnter) == null || o.call(n, e));
4218
+ a.key === "Enter" && (a.preventDefault(), (o = r.onEnter) == null || o.call(r, e));
4204
4219
  };
4205
4220
  return /* @__PURE__ */ x.jsx(
4206
- Oe,
4221
+ Re,
4207
4222
  {
4208
- ...n,
4209
- placeholder: n.placeholder ? n.placeholder : r(yt.SPOTLIGHT_DEFAULT_PLACEHOLDER),
4223
+ ...r,
4224
+ placeholder: r.placeholder ? r.placeholder : n(yt.SPOTLIGHT_DEFAULT_PLACEHOLDER),
4210
4225
  icon: "magnify",
4211
4226
  inputType: "search",
4212
4227
  bindValue: e,
@@ -4242,34 +4257,34 @@ class Se {
4242
4257
  return this.value.join(";");
4243
4258
  }
4244
4259
  }
4245
- const Ye = (n, e, t) => ({
4260
+ const Ue = (r, e, t) => ({
4246
4261
  obj: {
4247
- t: n.obj.t,
4248
- p: n.obj.p,
4262
+ t: r.obj.t,
4263
+ p: r.obj.p,
4249
4264
  k: e
4250
4265
  },
4251
- decode: t || n.decode,
4252
- shape: n.shape
4253
- }), rr = (n) => {
4254
- const e = Se.fromDataObj(n.obj), t = n.decode ? Se.fromString(n.decode).getValue() : [];
4255
- return e.getValue().map((r, s) => ({
4256
- bindValue: r,
4266
+ decode: t || r.decode,
4267
+ shape: r.shape
4268
+ }), rr = (r) => {
4269
+ const e = Se.fromDataObj(r.obj), t = r.decode ? Se.fromString(r.decode).getValue() : [];
4270
+ return e.getValue().map((n, s) => ({
4271
+ bindValue: n,
4257
4272
  optionalDisplayValue: t.length >= s ? t[s] : ""
4258
4273
  }));
4259
- }, zn = (n, e) => {
4274
+ }, zn = (r, e) => {
4260
4275
  const t = new Se(
4261
- n.obj,
4276
+ r.obj,
4262
4277
  e.map((s) => s.bindValue)
4263
- ).getLegacyValue(), r = new Se(
4264
- n.obj,
4278
+ ).getLegacyValue(), n = new Se(
4279
+ r.obj,
4265
4280
  e.map((s) => s.optionalDisplayValue ? s.optionalDisplayValue : "")
4266
4281
  ).getLegacyValue();
4267
- return Ye(n, t, r);
4282
+ return Ue(r, t, n);
4268
4283
  }, vr = ({
4269
- decode: n,
4284
+ decode: r,
4270
4285
  shape: e,
4271
4286
  obj: t,
4272
- data: r,
4287
+ data: n,
4273
4288
  icon: s,
4274
4289
  fun: a,
4275
4290
  placeholderIcon: o,
@@ -4283,21 +4298,21 @@ const Ye = (n, e, t) => ({
4283
4298
  const g = {
4284
4299
  obj: t,
4285
4300
  shape: e,
4286
- decode: n
4301
+ decode: r
4287
4302
  }, h = {
4288
4303
  onBlur: f,
4289
4304
  onOptionsRequest: p,
4290
4305
  fun: a,
4291
4306
  icon: s,
4292
4307
  label: i,
4293
- ...r
4294
- }, y = (b, O) => Ar(t) ? Ye(g, new We(t, b).getLegacyValue()) : Ye(g, b, O), S = (b) => Ye(g, new Ue(t, b).getLegacyValue()), E = (b) => zn(g, b);
4308
+ ...n
4309
+ }, y = (b, O) => Ar(t) ? Ue(g, new He(t, b).getLegacyValue()) : Ue(g, b, O), w = (b) => Ue(g, new We(t, b).getLegacyValue()), E = (b) => zn(g, b);
4295
4310
  switch (e) {
4296
4311
  case le.AUTOCOMPLETE: {
4297
4312
  const b = {
4298
4313
  ...h,
4299
4314
  bindValue: t.k,
4300
- optionalDisplayValue: n,
4315
+ optionalDisplayValue: r,
4301
4316
  onChange: (O, R) => {
4302
4317
  l == null || l(y(O, R));
4303
4318
  }
@@ -4308,7 +4323,7 @@ const Ye = (n, e, t) => ({
4308
4323
  const b = {
4309
4324
  ...h,
4310
4325
  bindValue: t.k,
4311
- optionalDisplayValue: n,
4326
+ optionalDisplayValue: r,
4312
4327
  onClick: () => {
4313
4328
  c == null || c(y(t.k));
4314
4329
  }
@@ -4319,7 +4334,7 @@ const Ye = (n, e, t) => ({
4319
4334
  const b = {
4320
4335
  ...h,
4321
4336
  bindValue: t.k,
4322
- optionalDisplayValue: n,
4337
+ optionalDisplayValue: r,
4323
4338
  onChange: (O, R) => {
4324
4339
  l == null || l(y(O, R));
4325
4340
  }
@@ -4329,10 +4344,10 @@ const Ye = (n, e, t) => ({
4329
4344
  case le.CHECKBOX: {
4330
4345
  const b = {
4331
4346
  ...h,
4332
- bindValue: Ue.fromDataObj(t).getValue(),
4333
- optionalDisplayValue: n,
4347
+ bindValue: We.fromDataObj(t).getValue(),
4348
+ optionalDisplayValue: r,
4334
4349
  onChange: (O) => {
4335
- l == null || l(S(O));
4350
+ l == null || l(w(O));
4336
4351
  }
4337
4352
  };
4338
4353
  return /* @__PURE__ */ x.jsx(on, { ...b });
@@ -4347,7 +4362,7 @@ const Ye = (n, e, t) => ({
4347
4362
  case le.DATE: {
4348
4363
  const b = {
4349
4364
  ...h,
4350
- bindValue: We.fromDataObj(t).getValue(),
4365
+ bindValue: He.fromDataObj(t).getValue(),
4351
4366
  onChange: (O) => {
4352
4367
  l == null || l(y(O));
4353
4368
  }
@@ -4406,15 +4421,15 @@ const Ye = (n, e, t) => ({
4406
4421
  l == null || l(y(O));
4407
4422
  }
4408
4423
  };
4409
- return /* @__PURE__ */ x.jsx(Oe, { ...b });
4424
+ return /* @__PURE__ */ x.jsx(Re, { ...b });
4410
4425
  }
4411
4426
  }
4412
- }, Jn = (n, e) => {
4427
+ }, Jn = (r, e) => {
4413
4428
  const t = [];
4414
- for (let r = 0; r < n.length; r += e)
4415
- t.push(n.slice(r, r + e));
4429
+ for (let n = 0; n < r.length; n += e)
4430
+ t.push(r.slice(n, n + e));
4416
4431
  return t;
4417
- }, br = (n, e) => n.map((t) => {
4432
+ }, br = (r, e) => r.map((t) => {
4418
4433
  var a, o;
4419
4434
  if ((a = t.sections) != null && a.length)
4420
4435
  return {
@@ -4422,8 +4437,8 @@ const Ye = (n, e, t) => ({
4422
4437
  sections: br(t.sections, e),
4423
4438
  content: t.content
4424
4439
  };
4425
- let r = t.sections, s = t.content;
4426
- return (o = t.content) != null && o.length && t.columns && +t.columns > 1 && (r = Jn(
4440
+ let n = t.sections, s = t.content;
4441
+ return (o = t.content) != null && o.length && t.columns && +t.columns > 1 && (n = Jn(
4427
4442
  t.content.filter((l) => !!e[l.id]),
4428
4443
  +t.columns
4429
4444
  ).map(
@@ -4436,17 +4451,17 @@ const Ye = (n, e, t) => ({
4436
4451
  })
4437
4452
  ), s = []), {
4438
4453
  ...t,
4439
- sections: r,
4454
+ sections: n,
4440
4455
  content: s
4441
4456
  };
4442
- }), nr = (n, e) => {
4457
+ }), nr = (r, e) => {
4443
4458
  if (!e)
4444
4459
  return {};
4445
- const t = n.some((r) => r.dim) ? n.map((r) => r.dim || "auto").join(" ") : `repeat(${n.length}, 1fr)`;
4460
+ const t = r.some((n) => n.dim) ? r.map((n) => n.dim || "auto").join(" ") : `repeat(${r.length}, 1fr)`;
4446
4461
  return {
4447
4462
  [e]: t
4448
4463
  };
4449
- }, sr = (n) => n.some((e) => e.dim && !e.dim.endsWith("%")), fe = {
4464
+ }, sr = (r) => r.some((e) => e.dim && !e.dim.endsWith("%")), fe = {
4450
4465
  "smp-layout": "_smp-layout_xrjwg_1",
4451
4466
  "smp-layout-horizontal": "_smp-layout-horizontal_xrjwg_9",
4452
4467
  "smp-layout-vertical": "_smp-layout-vertical_xrjwg_13",
@@ -4459,32 +4474,32 @@ const Ye = (n, e, t) => ({
4459
4474
  "smp-grid-template-rows": "_smp-grid-template-rows_xrjwg_48",
4460
4475
  "smp-layout-section-with-title": "_smp-layout-section-with-title_xrjwg_52",
4461
4476
  "smp-layout-section-title": "_smp-layout-section-title_xrjwg_58"
4462
- }, xr = ({ layout: n, cells: e }) => {
4477
+ }, xr = ({ layout: r, cells: e }) => {
4463
4478
  var f;
4464
- if (!((f = n.sections) != null && f.length))
4479
+ if (!((f = r.sections) != null && f.length))
4465
4480
  return /* @__PURE__ */ x.jsx(x.Fragment, {});
4466
- const t = "--smp-grid-template-cols", r = "--smp-grid-template-rows", s = br(n.sections, e), a = (p) => p == null ? void 0 : p.reduce((g, h) => {
4481
+ const t = "--smp-grid-template-cols", n = "--smp-grid-template-rows", s = br(r.sections, e), a = (p) => p == null ? void 0 : p.reduce((g, h) => {
4467
4482
  var O, R;
4468
- let y = "", S = {}, E = {}, b = "";
4469
- return (O = h.sections) != null && O.length ? (y = fe["smp-layout-section-grid"], S = a(h.sections), h.gridCols == null && (b = `${fe[h.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"]}`, (h.horizontal || sr(h.sections)) && (E = nr(
4483
+ let y = "", w = {}, E = {}, b = "";
4484
+ return (O = h.sections) != null && O.length ? (y = fe["smp-layout-section-grid"], w = a(h.sections), h.gridCols == null && (b = `${fe[h.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"]}`, (h.horizontal || sr(h.sections)) && (E = nr(
4470
4485
  h.sections,
4471
- h.horizontal ? t : r
4486
+ h.horizontal ? t : n
4472
4487
  )))) : (R = h.content) != null && R.length && (h.gridCols !== void 0 && h.gridCols > 0 ? (y = fe["smp-layout-section-grid"], b = `${fe["smp-grid-template-cols"]}`, E = {
4473
4488
  [t]: `repeat(${h.gridCols}, 1fr)`
4474
4489
  }) : y = fe["smp-layout-section-flex"]), {
4475
4490
  ...g,
4476
- ...S,
4491
+ ...w,
4477
4492
  [h.id]: {
4478
4493
  classes: `${y} ${fe[h.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${b} ${h.hdsp ? `smp-justifyContent-${h.hdsp}` : ""} ${h.vdsp ? `smp-alignItems-${h.vdsp}` : ""}`,
4479
4494
  styles: E
4480
4495
  }
4481
4496
  };
4482
4497
  }, {}), o = a(s), i = {
4483
- container: `${fe["smp-layout"]} ${n.horizontal ? fe["smp-layout-horizontal"] : fe["smp-layout-vertical"]}`,
4498
+ container: `${fe["smp-layout"]} ${r.horizontal ? fe["smp-layout-horizontal"] : fe["smp-layout-vertical"]}`,
4484
4499
  sections: o
4485
- }, l = n.horizontal || sr(n.sections) ? nr(
4500
+ }, l = r.horizontal || sr(r.sections) ? nr(
4486
4501
  s,
4487
- n.horizontal ? t : r
4502
+ r.horizontal ? t : n
4488
4503
  ) : {}, c = (p) => {
4489
4504
  var h;
4490
4505
  const g = /* @__PURE__ */ x.jsx(
@@ -4510,7 +4525,7 @@ const Ye = (n, e, t) => ({
4510
4525
  g
4511
4526
  ] }) : g;
4512
4527
  }, u = (p, g, h, y) => {
4513
- const S = p.colSpan !== void 0 ? p.colSpan > 0 ? p.colSpan : p.colStart !== void 0 && p.colStart < 1 ? 1 : null : null, E = S !== null ? `span ${S}` : p.colStart, b = p.colEnd !== void 0 && p.colEnd > 0 ? p.colEnd : "", O = {
4528
+ const w = p.colSpan !== void 0 ? p.colSpan > 0 ? p.colSpan : p.colStart !== void 0 && p.colStart < 1 ? 1 : null : null, E = w !== null ? `span ${w}` : p.colStart, b = p.colEnd !== void 0 && p.colEnd > 0 ? p.colEnd : "", O = {
4514
4529
  gridColumnStart: E,
4515
4530
  gridColumnEnd: b
4516
4531
  }, R = `${fe["smp-layout-cell-container"]} ${h ? `smp-justifyContent-${h}` : ""} ${y ? `smp-alignItems-${y}` : ""}`;
@@ -4526,9 +4541,9 @@ const Ye = (n, e, t) => ({
4526
4541
  ) : /* @__PURE__ */ x.jsx(x.Fragment, {});
4527
4542
  };
4528
4543
  return /* @__PURE__ */ x.jsx("div", { className: i.container, style: l, "smp-id": "layout", children: s == null ? void 0 : s.map((p) => c(p)) });
4529
- }, es = ({ data: n, onClick: e, onEnter: t }) => {
4544
+ }, es = ({ data: r, onClick: e, onEnter: t }) => {
4530
4545
  var o, i;
4531
- const [r, s] = Q(), a = me(
4546
+ const [n, s] = Q(), a = me(
4532
4547
  (l) => {
4533
4548
  var u, f;
4534
4549
  if (!((u = l.rows) != null && u.length) || !((f = l.columns) != null && f.length))
@@ -4537,14 +4552,14 @@ const Ye = (n, e, t) => ({
4537
4552
  return l.columns.filter((p) => p.visible).reduce((p, g) => {
4538
4553
  const h = c.cells[g.name], y = {
4539
4554
  ...h,
4540
- onChange: (S) => {
4555
+ onChange: (w) => {
4541
4556
  s((E) => E && {
4542
4557
  ...E,
4543
4558
  [g.name]: {
4544
4559
  ...E[g.name],
4545
4560
  obj: {
4546
4561
  ...E[g.name].obj,
4547
- k: S.obj.k
4562
+ k: w.obj.k
4548
4563
  }
4549
4564
  }
4550
4565
  });
@@ -4554,8 +4569,8 @@ const Ye = (n, e, t) => ({
4554
4569
  ...h
4555
4570
  });
4556
4571
  },
4557
- onEnter: (S) => {
4558
- t && t(S);
4572
+ onEnter: (w) => {
4573
+ t && t(w);
4559
4574
  }
4560
4575
  };
4561
4576
  return {
@@ -4567,13 +4582,13 @@ const Ye = (n, e, t) => ({
4567
4582
  [e, t]
4568
4583
  );
4569
4584
  return oe(() => {
4570
- s(a(n));
4571
- }, [n, a]), !((o = n == null ? void 0 : n.rows) != null && o.length) || !((i = n.columns) != null && i.length) ? null : r && /* @__PURE__ */ x.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ x.jsx(xr, { layout: n.rows[0].layout, cells: r }) });
4572
- }, $e = (n) => n == null ? !1 : typeof n == "string" ? n.toLocaleLowerCase() == "yes" : n, ts = ({
4573
- ColumnsNumber: n = 1,
4585
+ s(a(r));
4586
+ }, [r, a]), !((o = r == null ? void 0 : r.rows) != null && o.length) || !((i = r.columns) != null && i.length) ? null : n && /* @__PURE__ */ x.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ x.jsx(xr, { layout: r.rows[0].layout, cells: n }) });
4587
+ }, Ce = (r) => r == null ? !1 : typeof r == "string" ? r.toLocaleLowerCase() == "yes" : r, ts = ({
4588
+ ColumnsNumber: r = 1,
4574
4589
  data: e = {},
4575
4590
  ForceText: t,
4576
- TextColName: r,
4591
+ TextColName: n,
4577
4592
  TextColor: s = "var(--smp-dashList-color-base)",
4578
4593
  Fillspace: a,
4579
4594
  FontSize: o,
@@ -4586,7 +4601,7 @@ const Ye = (n, e, t) => ({
4586
4601
  UmColName: g,
4587
4602
  UmColor: h = "var(--smp-dashList-color-base)",
4588
4603
  ForceValue: y,
4589
- ValueColName: S,
4604
+ ValueColName: w,
4590
4605
  ValueColor: E = "var(--smp-dashList-color-base)",
4591
4606
  SelectLayout: b = "1",
4592
4607
  onClick: O
@@ -4602,9 +4617,9 @@ const Ye = (n, e, t) => ({
4602
4617
  value: de
4603
4618
  };
4604
4619
  },
4605
- dashList: `smp-dash-list ${$e(a) ? "smp-dash-list-fill-space" : ""}
4606
- ${$e(i) ? "smp-dash-list-horizontal" : ""}`
4607
- }, { format: k } = Qe(), d = (M) => `${F}-${M}`, m = (M, G) => `${M}__${G}`, w = (M) => `${V}-${M}`, D = (M) => {
4620
+ dashList: `smp-dash-list ${Ce(a) ? "smp-dash-list-fill-space" : ""}
4621
+ ${Ce(i) ? "smp-dash-list-horizontal" : ""}`
4622
+ }, { format: k } = Qe(), d = (M) => `${F}-${M}`, m = (M, G) => `${M}__${G}`, S = (M) => `${V}-${M}`, D = (M) => {
4608
4623
  const G = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
4609
4624
  if (G.test(M)) {
4610
4625
  const te = M.match(G) || [];
@@ -4631,10 +4646,10 @@ const Ye = (n, e, t) => ({
4631
4646
  return (ye = (ue = M == null ? void 0 : M.cells[v[te].name]) == null ? void 0 : ue.obj) == null ? void 0 : ye.k;
4632
4647
  };
4633
4648
  return {
4634
- descr: t || G(r) || ee(2) || "",
4649
+ descr: t || G(n) || ee(2) || "",
4635
4650
  icon: l || G(c) || ee(3) || "",
4636
4651
  um: p || G(g) || ee(1) || "",
4637
- value: y || G(S) || ee(0) || ""
4652
+ value: y || G(w) || ee(0) || ""
4638
4653
  };
4639
4654
  }, _ = (M) => {
4640
4655
  O == null || O(M);
@@ -4659,9 +4674,9 @@ const Ye = (n, e, t) => ({
4659
4674
  };
4660
4675
  })(b), re = (M) => {
4661
4676
  const { descr: G, icon: ee, um: te, value: ue } = N(M), ye = {
4662
- [w(C)]: D(s),
4663
- [w(Y)]: D(h),
4664
- [w(J)]: D(E)
4677
+ [S(C)]: D(s),
4678
+ [S(Y)]: D(h),
4679
+ [S(J)]: D(E)
4665
4680
  }, de = [], we = T(ue);
4666
4681
  switch (b) {
4667
4682
  case "2":
@@ -4689,15 +4704,15 @@ const Ye = (n, e, t) => ({
4689
4704
  M.id
4690
4705
  );
4691
4706
  }, A = {
4692
- [z]: String(n),
4707
+ [z]: String(r),
4693
4708
  [U]: q
4694
4709
  };
4695
4710
  return /* @__PURE__ */ x.jsx("div", { className: B.dashList, style: A, children: j ? $.map((M) => re(M)) : R });
4696
4711
  }, rs = ({
4697
- data: n,
4712
+ data: r,
4698
4713
  logo: e,
4699
4714
  open: t,
4700
- minifiedOnClose: r = !0,
4715
+ minifiedOnClose: n = !0,
4701
4716
  customHeight: s = "100vh",
4702
4717
  onClick: a,
4703
4718
  onEnter: o,
@@ -4712,7 +4727,7 @@ const Ye = (n, e, t) => ({
4712
4727
  const v = R.rows[0];
4713
4728
  return R.columns.filter((V) => V.visible).reduce((V, F) => {
4714
4729
  const C = v.cells[F.name];
4715
- if (!u && r && C.shape !== le.BUTTON)
4730
+ if (!u && n && C.shape !== le.BUTTON)
4716
4731
  return V;
4717
4732
  const I = {
4718
4733
  ...C,
@@ -4731,25 +4746,25 @@ const Ye = (n, e, t) => ({
4731
4746
  o && o(Y);
4732
4747
  }
4733
4748
  };
4734
- return !u && r && (I.data = { ...I.data, showText: !1 }), {
4749
+ return !u && n && (I.data = { ...I.data, showText: !1 }), {
4735
4750
  ...V,
4736
4751
  [F.name]: I
4737
4752
  };
4738
4753
  }, {});
4739
4754
  },
4740
- [a, o, u, r]
4755
+ [a, o, u, n]
4741
4756
  ), y = me(() => {
4742
4757
  i == null || i();
4743
- }, [i]), S = () => {
4744
- r ? f((R) => !R) : (f(!1), i == null || i());
4758
+ }, [i]), w = () => {
4759
+ n ? f((R) => !R) : (f(!1), i == null || i());
4745
4760
  };
4746
4761
  if (oe(() => {
4747
- c(h(n));
4748
- }, [n]), oe(() => {
4762
+ c(h(r));
4763
+ }, [r]), oe(() => {
4749
4764
  if (!p.current)
4750
4765
  return;
4751
- if (!r) {
4752
- c(h(n));
4766
+ if (!n) {
4767
+ c(h(r));
4753
4768
  return;
4754
4769
  }
4755
4770
  const R = getComputedStyle(p.current).getPropertyValue(
@@ -4757,14 +4772,14 @@ const Ye = (n, e, t) => ({
4757
4772
  );
4758
4773
  let v = Number(R);
4759
4774
  R.endsWith("ms") ? v = parseFloat(R) : R.endsWith("s") && (v = parseFloat(R) * 1e3), setTimeout(() => {
4760
- c(h(n));
4775
+ c(h(r));
4761
4776
  }, v / 2);
4762
- }, [u, r]), oe(() => {
4763
- t !== void 0 && !r && f(t);
4764
- }, [r, t]), !((b = n == null ? void 0 : n.rows) != null && b.length) || !((O = n.columns) != null && O.length))
4777
+ }, [u, n]), oe(() => {
4778
+ t !== void 0 && !n && f(t);
4779
+ }, [n, t]), !((b = r == null ? void 0 : r.rows) != null && b.length) || !((O = r.columns) != null && O.length))
4765
4780
  return null;
4766
4781
  const E = {
4767
- drawer: `smp-drawer ${r ? "smp-drawer-minified" : "smp-drawer-fixed"} ${u ? "smp-drawer-open" : ""}`,
4782
+ drawer: `smp-drawer ${n ? "smp-drawer-minified" : "smp-drawer-fixed"} ${u ? "smp-drawer-open" : ""}`,
4768
4783
  container: "smp-drawer-container",
4769
4784
  containerHeader: "smp-drawer-container-header",
4770
4785
  containerIcon: `${u ? "" : "smp-drawer-container-icon-close"} smp-drawer-container-icon`,
@@ -4773,7 +4788,7 @@ const Ye = (n, e, t) => ({
4773
4788
  backdrop: `smp-drawer-backdrop ${u ? "smp-drawer-backdrop-open" : ""}`
4774
4789
  };
4775
4790
  return l && /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
4776
- !r && /* @__PURE__ */ x.jsx(
4791
+ !n && /* @__PURE__ */ x.jsx(
4777
4792
  "div",
4778
4793
  {
4779
4794
  "aria-hidden": "true",
@@ -4803,26 +4818,26 @@ const Ye = (n, e, t) => ({
4803
4818
  /* @__PURE__ */ x.jsx("div", { className: E.containerIcon, children: /* @__PURE__ */ x.jsx(
4804
4819
  ge,
4805
4820
  {
4806
- icon: r ? "menu_close" : "close",
4821
+ icon: n ? "menu_close" : "close",
4807
4822
  title: "drawer_icon",
4808
4823
  rotated: !u,
4809
4824
  isInteractable: !0,
4810
- onClick: S,
4825
+ onClick: w,
4811
4826
  width: 20,
4812
4827
  height: 20
4813
4828
  }
4814
4829
  ) })
4815
4830
  ] }),
4816
- /* @__PURE__ */ x.jsx("div", { className: E.containerLayout, children: /* @__PURE__ */ x.jsx(xr, { layout: n.rows[0].layout, cells: l }) })
4831
+ /* @__PURE__ */ x.jsx("div", { className: E.containerLayout, children: /* @__PURE__ */ x.jsx(xr, { layout: r.rows[0].layout, cells: l }) })
4817
4832
  ] })
4818
4833
  }
4819
4834
  )
4820
4835
  ] });
4821
4836
  }, ns = ({
4822
- data: n,
4837
+ data: r,
4823
4838
  Type: e,
4824
4839
  ShowSubmit: t = !1,
4825
- SubmitPosition: r = "Right",
4840
+ SubmitPosition: n = "Right",
4826
4841
  DefaultValue: s,
4827
4842
  Label: a,
4828
4843
  LabelPosition: o = "Left",
@@ -4833,14 +4848,14 @@ const Ye = (n, e, t) => ({
4833
4848
  const [u, f] = Q();
4834
4849
  oe(() => {
4835
4850
  f(() => {
4836
- const y = { ...n };
4851
+ const y = { ...r };
4837
4852
  return e && (y.shape = e), s && (y.obj = $r(s)), y;
4838
4853
  });
4839
- }, [n, s, e]);
4854
+ }, [r, s, e]);
4840
4855
  const g = {
4841
- container: `smp-field-container ${$e(t) ? `smp-field-position-${r}` : ""}`
4856
+ container: `smp-field-container ${Ce(t) ? `smp-field-position-${n}` : ""}`
4842
4857
  }, h = () => {
4843
- $e(t) || i == null || i(u);
4858
+ Ce(t) || i == null || i(u);
4844
4859
  };
4845
4860
  if (u)
4846
4861
  return /* @__PURE__ */ x.jsxs("div", { className: g.container, children: [
@@ -4859,7 +4874,7 @@ const Ye = (n, e, t) => ({
4859
4874
  ...u,
4860
4875
  onChange: f,
4861
4876
  onOptionsRequest: c,
4862
- fun: n.fun,
4877
+ fun: r.fun,
4863
4878
  onBlur: h,
4864
4879
  label: a,
4865
4880
  labelPosition: o
@@ -4867,7 +4882,7 @@ const Ye = (n, e, t) => ({
4867
4882
  )
4868
4883
  }
4869
4884
  ),
4870
- $e(t) && //TODO: translation
4885
+ Ce(t) && //TODO: translation
4871
4886
  /* @__PURE__ */ x.jsx(Ge, { bindValue: "Confirm", onClick: () => l == null ? void 0 : l(u) })
4872
4887
  ] });
4873
4888
  };
@@ -4883,6 +4898,6 @@ export {
4883
4898
  ns as Field,
4884
4899
  ge as Icon,
4885
4900
  Bn as Password,
4886
- Oe as Textfield,
4901
+ Re as Textfield,
4887
4902
  Qn as configurePaths
4888
4903
  };