@sme.up/ketchup2 2.0.0-SNAPSHOT-20250617073056 → 2.0.0-SNAPSHOT-20250617123752

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.
@@ -13,10 +13,10 @@ var Fe = { exports: {} }, Pe = {};
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
15
  */
16
- var jt;
16
+ var Dt;
17
17
  function Lr() {
18
- if (jt) return Pe;
19
- jt = 1;
18
+ if (Dt) return Pe;
19
+ Dt = 1;
20
20
  var r = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
21
21
  function t(n, s, a) {
22
22
  var i = null;
@@ -45,9 +45,9 @@ var Ae = {};
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
47
  */
48
- var Dt;
48
+ var jt;
49
49
  function _r() {
50
- return Dt || (Dt = 1, process.env.NODE_ENV !== "production" && function() {
50
+ return jt || (jt = 1, process.env.NODE_ENV !== "production" && function() {
51
51
  function r(h) {
52
52
  if (h == null) return null;
53
53
  if (typeof h == "function")
@@ -64,7 +64,7 @@ function _r() {
64
64
  return "Suspense";
65
65
  case L:
66
66
  return "SuspenseList";
67
- case j:
67
+ case D:
68
68
  return "Activity";
69
69
  }
70
70
  if (typeof h == "object")
@@ -123,7 +123,7 @@ function _r() {
123
123
  }
124
124
  }
125
125
  function s() {
126
- var h = D.A;
126
+ var h = j.A;
127
127
  return h === null ? null : h.getOwner();
128
128
  }
129
129
  function a() {
@@ -148,7 +148,7 @@ function _r() {
148
148
  configurable: !0
149
149
  });
150
150
  }
151
- function f() {
151
+ function u() {
152
152
  var h = r(this.type);
153
153
  return K[h] || (K[h] = !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."
@@ -156,14 +156,14 @@ function _r() {
156
156
  }
157
157
  function c(h, y, T, $, R, A, M, F) {
158
158
  return T = A.ref, h = {
159
- $$typeof: p,
159
+ $$typeof: d,
160
160
  type: h,
161
161
  key: y,
162
162
  props: A,
163
163
  _owner: R
164
164
  }, (T !== void 0 ? T : null) !== null ? Object.defineProperty(h, "ref", {
165
165
  enumerable: !1,
166
- get: f
166
+ get: u
167
167
  }) : Object.defineProperty(h, "ref", { enumerable: !1, value: null }), h._store = {}, Object.defineProperty(h._store, "validated", {
168
168
  configurable: !1,
169
169
  enumerable: !1,
@@ -186,7 +186,7 @@ function _r() {
186
186
  value: F
187
187
  }), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
188
188
  }
189
- function u(h, y, T, $, R, A, M, F) {
189
+ function f(h, y, T, $, R, A, M, F) {
190
190
  var N = y.children;
191
191
  if (N !== void 0)
192
192
  if ($)
@@ -237,23 +237,23 @@ React keys must be passed directly to JSX without using spread:
237
237
  );
238
238
  }
239
239
  function l(h) {
240
- typeof h == "object" && h !== null && h.$$typeof === p && h._store && (h._store.validated = 1);
240
+ typeof h == "object" && h !== null && h.$$typeof === d && h._store && (h._store.validated = 1);
241
241
  }
242
- var d = hr, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), O = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), j = Symbol.for("react.activity"), P = Symbol.for("react.client.reference"), D = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, k = Object.prototype.hasOwnProperty, U = Array.isArray, H = console.createTask ? console.createTask : function() {
242
+ var p = hr, d = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), O = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), P = Symbol.for("react.client.reference"), j = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, k = Object.prototype.hasOwnProperty, U = Array.isArray, H = console.createTask ? console.createTask : function() {
243
243
  return null;
244
244
  };
245
- d = {
245
+ p = {
246
246
  "react-stack-bottom-frame": function(h) {
247
247
  return h();
248
248
  }
249
249
  };
250
- var z, K = {}, J = d["react-stack-bottom-frame"].bind(
251
- d,
250
+ var z, K = {}, J = p["react-stack-bottom-frame"].bind(
251
+ p,
252
252
  a
253
253
  )(), W = H(n(a)), _ = {};
254
254
  Ae.Fragment = g, Ae.jsx = function(h, y, T, $, R) {
255
- var A = 1e4 > D.recentlyCreatedOwnerStacks++;
256
- return u(
255
+ var A = 1e4 > j.recentlyCreatedOwnerStacks++;
256
+ return f(
257
257
  h,
258
258
  y,
259
259
  T,
@@ -264,8 +264,8 @@ React keys must be passed directly to JSX without using spread:
264
264
  A ? H(n(h)) : W
265
265
  );
266
266
  }, Ae.jsxs = function(h, y, T, $, R) {
267
- var A = 1e4 > D.recentlyCreatedOwnerStacks++;
268
- return u(
267
+ var A = 1e4 > j.recentlyCreatedOwnerStacks++;
268
+ return f(
269
269
  h,
270
270
  y,
271
271
  T,
@@ -339,33 +339,33 @@ class ze {
339
339
  }
340
340
  function Mr(r, e) {
341
341
  if (xt(r)) {
342
- const u = new Date(r);
343
- if (!isNaN(u.getTime()))
344
- return u;
342
+ const f = new Date(r);
343
+ if (!isNaN(f.getTime()))
344
+ return f;
345
345
  }
346
346
  const t = /* @__PURE__ */ new Date(), n = r.replaceAll("/", "").replaceAll("-", "");
347
347
  let s = "DDMMYYYY";
348
348
  e === "en" && (s = "MMDDYYYY");
349
349
  const a = s.indexOf("DD"), i = s.indexOf("MM");
350
- let o = 0, f = 0, c = "";
350
+ let o = 0, u = 0, c = "";
351
351
  switch (n.length) {
352
352
  case 1:
353
353
  case 2:
354
354
  return o = parseInt(n), t.setDate(o), Ve(t) ? t : r;
355
355
  case 3:
356
356
  case 4:
357
- return o = parseInt(n.substring(0, 2)), f = parseInt(n.substring(2, 4)), i === 0 ? (t.setMonth(o - 1), t.setDate(f)) : a === 0 && (t.setMonth(f - 1), t.setDate(o)), Ve(t) ? t : r;
357
+ return o = parseInt(n.substring(0, 2)), u = parseInt(n.substring(2, 4)), i === 0 ? (t.setMonth(o - 1), t.setDate(u)) : a === 0 && (t.setMonth(u - 1), t.setDate(o)), Ve(t) ? t : r;
358
358
  case 5:
359
359
  case 6: {
360
- o = parseInt(n.substring(0, 2)), f = parseInt(n.substring(2, 4)), Number(n.substring(4)) > 50 ? c = "19" + n.substring(4) : c = "20" + n.substring(4);
361
- let u = 0, l = 0;
362
- return i === 0 ? (u = f, l = o - 1, t.setFullYear(parseInt(c), l, u)) : a === 0 && (u = o, l = f - 1, t.setFullYear(parseInt(c), l, u)), ht(o, l, parseInt(c)) && Ve(t) ? t : r;
360
+ o = parseInt(n.substring(0, 2)), u = parseInt(n.substring(2, 4)), Number(n.substring(4)) > 50 ? c = "19" + n.substring(4) : c = "20" + n.substring(4);
361
+ let f = 0, l = 0;
362
+ return i === 0 ? (f = u, l = o - 1, t.setFullYear(parseInt(c), l, f)) : a === 0 && (f = o, l = u - 1, t.setFullYear(parseInt(c), l, f)), ht(o, l, parseInt(c)) && Ve(t) ? t : r;
363
363
  }
364
364
  case 7:
365
365
  case 8: {
366
- o = parseInt(n.substring(0, 2)), f = parseInt(n.substring(2, 4)), c = n.substring(4);
367
- let u = 0, l = 0;
368
- return i === 0 ? (u = f, l = o - 1, t.setFullYear(parseInt(c), l, u)) : a === 0 && (u = o, l = f - 1, t.setFullYear(parseInt(c), l, u)), ht(u, l, parseInt(c)) && Ve(t) ? t : r;
366
+ o = parseInt(n.substring(0, 2)), u = parseInt(n.substring(2, 4)), c = n.substring(4);
367
+ let f = 0, l = 0;
368
+ return i === 0 ? (f = u, l = o - 1, t.setFullYear(parseInt(c), l, f)) : a === 0 && (f = o, l = u - 1, t.setFullYear(parseInt(c), l, f)), ht(f, l, parseInt(c)) && Ve(t) ? t : r;
369
369
  }
370
370
  }
371
371
  return r;
@@ -468,22 +468,22 @@ function St({
468
468
  enabled: e = !0
469
469
  }) {
470
470
  const t = ve(null), n = ve(null), [s, a] = Z(0), i = ye(() => {
471
- const o = t.current, f = n.current;
472
- if (!o || !f) return;
473
- const { top: c, left: u, width: l, height: d } = o.getBoundingClientRect();
471
+ const o = t.current, u = n.current;
472
+ if (!o || !u) return;
473
+ const { top: c, left: f, width: l, height: p } = o.getBoundingClientRect();
474
474
  a(l);
475
- const p = f.offsetHeight, m = f.offsetWidth;
476
- if (m === 0 || p === 0) {
475
+ const d = u.offsetHeight, m = u.offsetWidth;
476
+ if (m === 0 || d === 0) {
477
477
  requestAnimationFrame(i);
478
478
  return;
479
479
  }
480
- let g = c + window.scrollY, x = u + window.scrollX;
480
+ let g = c + window.scrollY, x = f + window.scrollX;
481
481
  switch (r) {
482
482
  case "top":
483
- g -= p;
483
+ g -= d;
484
484
  break;
485
485
  case "bottom":
486
- g += d;
486
+ g += p;
487
487
  break;
488
488
  case "left":
489
489
  x -= m;
@@ -493,7 +493,7 @@ function St({
493
493
  break;
494
494
  }
495
495
  requestAnimationFrame(() => {
496
- f.style.transform = `translate(${x}px, ${g}px)`;
496
+ u.style.transform = `translate(${x}px, ${g}px)`;
497
497
  });
498
498
  }, [r]);
499
499
  return Ar(() => {
@@ -507,6 +507,8 @@ function St({
507
507
  }, [i, e]), { anchorRef: t, targetRef: n, anchorWidth: s };
508
508
  }
509
509
  const Xe = (r, e, t) => {
510
+ if (r == "")
511
+ return "";
510
512
  if (t)
511
513
  switch (t) {
512
514
  case "CodeOnly":
@@ -579,55 +581,55 @@ function Hr() {
579
581
  function i(l) {
580
582
  if (!l || typeof l != "object")
581
583
  throw new TypeError("argument obj is required");
582
- var d = l.parameters, p = l.type;
583
- if (!p || !a.test(p))
584
+ var p = l.parameters, d = l.type;
585
+ if (!d || !a.test(d))
584
586
  throw new TypeError("invalid type");
585
- var m = p;
586
- if (d && typeof d == "object")
587
- for (var g, x = Object.keys(d).sort(), w = 0; w < x.length; w++) {
587
+ var m = d;
588
+ if (p && typeof p == "object")
589
+ for (var g, x = Object.keys(p).sort(), w = 0; w < x.length; w++) {
588
590
  if (g = x[w], !t.test(g))
589
591
  throw new TypeError("invalid parameter name");
590
- m += "; " + g + "=" + c(d[g]);
592
+ m += "; " + g + "=" + c(p[g]);
591
593
  }
592
594
  return m;
593
595
  }
594
596
  function o(l) {
595
597
  if (!l)
596
598
  throw new TypeError("argument string is required");
597
- var d = typeof l == "object" ? f(l) : l;
598
- if (typeof d != "string")
599
+ var p = typeof l == "object" ? u(l) : l;
600
+ if (typeof p != "string")
599
601
  throw new TypeError("argument string is required to be a string");
600
- var p = d.indexOf(";"), m = p !== -1 ? d.slice(0, p).trim() : d.trim();
602
+ var d = p.indexOf(";"), m = d !== -1 ? p.slice(0, d).trim() : p.trim();
601
603
  if (!a.test(m))
602
604
  throw new TypeError("invalid media type");
603
- var g = new u(m.toLowerCase());
604
- if (p !== -1) {
605
+ var g = new f(m.toLowerCase());
606
+ if (d !== -1) {
605
607
  var x, w, E;
606
- for (r.lastIndex = p; w = r.exec(d); ) {
607
- if (w.index !== p)
608
+ for (r.lastIndex = d; w = r.exec(p); ) {
609
+ if (w.index !== d)
608
610
  throw new TypeError("invalid parameter format");
609
- p += w[0].length, x = w[1].toLowerCase(), E = w[2], E.charCodeAt(0) === 34 && (E = E.slice(1, -1), E.indexOf("\\") !== -1 && (E = E.replace(n, "$1"))), g.parameters[x] = E;
611
+ d += w[0].length, x = w[1].toLowerCase(), E = w[2], E.charCodeAt(0) === 34 && (E = E.slice(1, -1), E.indexOf("\\") !== -1 && (E = E.replace(n, "$1"))), g.parameters[x] = E;
610
612
  }
611
- if (p !== d.length)
613
+ if (d !== p.length)
612
614
  throw new TypeError("invalid parameter format");
613
615
  }
614
616
  return g;
615
617
  }
616
- function f(l) {
617
- var d;
618
- if (typeof l.getHeader == "function" ? d = l.getHeader("content-type") : typeof l.headers == "object" && (d = l.headers && l.headers["content-type"]), typeof d != "string")
618
+ function u(l) {
619
+ var p;
620
+ if (typeof l.getHeader == "function" ? p = l.getHeader("content-type") : typeof l.headers == "object" && (p = l.headers && l.headers["content-type"]), typeof p != "string")
619
621
  throw new TypeError("content-type header is missing from object");
620
- return d;
622
+ return p;
621
623
  }
622
624
  function c(l) {
623
- var d = String(l);
624
- if (t.test(d))
625
- return d;
626
- if (d.length > 0 && !e.test(d))
625
+ var p = String(l);
626
+ if (t.test(p))
627
+ return p;
628
+ if (p.length > 0 && !e.test(p))
627
629
  throw new TypeError("invalid parameter value");
628
- return '"' + d.replace(s, "\\$1") + '"';
630
+ return '"' + p.replace(s, "\\$1") + '"';
629
631
  }
630
- function u(l) {
632
+ function f(l) {
631
633
  this.parameters = /* @__PURE__ */ Object.create(null), this.type = l;
632
634
  }
633
635
  return Ye;
@@ -669,8 +671,8 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
669
671
  for (var t = function(i, o) {
670
672
  setTimeout(function() {
671
673
  if (Array.isArray(xe[e])) {
672
- var f = Re.get(e), c = xe[e][i];
673
- f instanceof SVGSVGElement && c(null, gr(f)), f instanceof Error && c(f), i === xe[e].length - 1 && delete xe[e];
674
+ var u = Re.get(e), c = xe[e][i];
675
+ u instanceof SVGSVGElement && c(null, gr(u)), u instanceof Error && c(u), i === xe[e].length - 1 && delete xe[e];
674
676
  }
675
677
  }, 0);
676
678
  }, n = 0, s = xe[e].length; n < s; n++)
@@ -699,8 +701,8 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
699
701
  }, qr = 0, Jr = function() {
700
702
  return ++qr;
701
703
  }, me = [], _t = {}, Xr = "http://www.w3.org/2000/svg", at = "http://www.w3.org/1999/xlink", kt = function(e, t, n, s, a, i, o) {
702
- var f = e.getAttribute("data-src") || e.getAttribute("src");
703
- if (!f) {
704
+ var u = e.getAttribute("data-src") || e.getAttribute("src");
705
+ if (!u) {
704
706
  o(new Error("Invalid data-src or src attribute"));
705
707
  return;
706
708
  }
@@ -710,15 +712,15 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
710
712
  }
711
713
  me.push(e), e.setAttribute("src", "");
712
714
  var c = s ? Kr : zr;
713
- c(f, a, function(u, l) {
715
+ c(u, a, function(f, l) {
714
716
  if (!l) {
715
- me.splice(me.indexOf(e), 1), e = null, o(u);
717
+ me.splice(me.indexOf(e), 1), e = null, o(f);
716
718
  return;
717
719
  }
718
- var d = e.getAttribute("id");
719
- d && l.setAttribute("id", d);
720
- var p = e.getAttribute("title");
721
- p && l.setAttribute("title", p);
720
+ var p = e.getAttribute("id");
721
+ p && l.setAttribute("id", p);
722
+ var d = e.getAttribute("title");
723
+ d && l.setAttribute("title", d);
722
724
  var m = e.getAttribute("width");
723
725
  m && l.setAttribute("width", m);
724
726
  var g = e.getAttribute("height");
@@ -726,7 +728,7 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
726
728
  var x = Array.from(new Set(st(st(st([], (l.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
727
729
  l.setAttribute("class", x);
728
730
  var w = e.getAttribute("style");
729
- w && l.setAttribute("style", w), l.setAttribute("data-src", f);
731
+ w && l.setAttribute("style", w), l.setAttribute("data-src", u);
730
732
  var E = [].filter.call(e.attributes, function(W) {
731
733
  return /^data-\w[\w-]*$/.test(W.name);
732
734
  });
@@ -769,12 +771,12 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
769
771
  });
770
772
  }
771
773
  l.removeAttribute("xmlns:a");
772
- for (var j = l.querySelectorAll("script"), P = [], D, k, U = 0, H = j.length; U < H; U++)
773
- k = j[U].getAttribute("type"), (!k || k === "application/ecmascript" || k === "application/javascript" || k === "text/javascript") && (D = j[U].innerText || j[U].textContent, D && P.push(D), l.removeChild(j[U]));
774
- if (P.length > 0 && (t === "always" || t === "once" && !_t[f])) {
774
+ for (var D = l.querySelectorAll("script"), P = [], j, k, U = 0, H = D.length; U < H; U++)
775
+ k = D[U].getAttribute("type"), (!k || k === "application/ecmascript" || k === "application/javascript" || k === "text/javascript") && (j = D[U].innerText || D[U].textContent, j && P.push(j), l.removeChild(D[U]));
776
+ if (P.length > 0 && (t === "always" || t === "once" && !_t[u])) {
775
777
  for (var z = 0, K = P.length; z < K; z++)
776
778
  new Function(P[z])(window);
777
- _t[f] = !0;
779
+ _t[u] = !0;
778
780
  }
779
781
  var J = l.querySelectorAll("style");
780
782
  if (Array.prototype.forEach.call(J, function(W) {
@@ -788,14 +790,14 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
788
790
  }, Zr = function(e, t) {
789
791
  var n = t === void 0 ? {} : t, s = n.afterAll, a = s === void 0 ? function() {
790
792
  } : s, i = n.afterEach, o = i === void 0 ? function() {
791
- } : i, f = n.beforeEach, c = f === void 0 ? function() {
792
- } : f, u = n.cacheRequests, l = u === void 0 ? !0 : u, d = n.evalScripts, p = d === void 0 ? "never" : d, m = n.httpRequestWithCredentials, g = m === void 0 ? !1 : m, x = n.renumerateIRIElements, w = x === void 0 ? !0 : x;
793
+ } : i, u = n.beforeEach, c = u === void 0 ? function() {
794
+ } : u, f = n.cacheRequests, l = f === void 0 ? !0 : f, p = n.evalScripts, d = p === void 0 ? "never" : p, m = n.httpRequestWithCredentials, g = m === void 0 ? !1 : m, x = n.renumerateIRIElements, w = x === void 0 ? !0 : x;
793
795
  if (e && "length" in e)
794
796
  for (var E = 0, O = 0, S = e.length; O < S; O++)
795
- kt(e[O], p, w, l, g, c, function(b, L) {
797
+ kt(e[O], d, w, l, g, c, function(b, L) {
796
798
  o(b, L), e && "length" in e && e.length === ++E && a(E);
797
799
  });
798
- else e ? kt(e, p, w, l, g, c, function(b, L) {
800
+ else e ? kt(e, d, w, l, g, c, function(b, L) {
799
801
  o(b, L), a(1), e = null;
800
802
  }) : a(0);
801
803
  }, Ue = { exports: {} }, We = { exports: {} }, Q = {};
@@ -811,14 +813,14 @@ var It;
811
813
  function Qr() {
812
814
  if (It) return Q;
813
815
  It = 1;
814
- 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, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, l = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, p = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, w = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
816
+ 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, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, u = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, l = r ? Symbol.for("react.suspense") : 60113, p = r ? Symbol.for("react.suspense_list") : 60120, d = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, w = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
815
817
  function O(b) {
816
818
  if (typeof b == "object" && b !== null) {
817
819
  var L = b.$$typeof;
818
820
  switch (L) {
819
821
  case e:
820
822
  switch (b = b.type, b) {
821
- case f:
823
+ case u:
822
824
  case c:
823
825
  case n:
824
826
  case a:
@@ -828,9 +830,9 @@ function Qr() {
828
830
  default:
829
831
  switch (b = b && b.$$typeof, b) {
830
832
  case o:
831
- case u:
833
+ case f:
832
834
  case m:
833
- case p:
835
+ case d:
834
836
  case i:
835
837
  return b;
836
838
  default:
@@ -845,8 +847,8 @@ function Qr() {
845
847
  function S(b) {
846
848
  return O(b) === c;
847
849
  }
848
- return Q.AsyncMode = f, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = u, Q.Fragment = n, Q.Lazy = m, Q.Memo = p, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = l, Q.isAsyncMode = function(b) {
849
- return S(b) || O(b) === f;
850
+ return Q.AsyncMode = u, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy = m, Q.Memo = d, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = l, Q.isAsyncMode = function(b) {
851
+ return S(b) || O(b) === u;
850
852
  }, Q.isConcurrentMode = S, Q.isContextConsumer = function(b) {
851
853
  return O(b) === o;
852
854
  }, Q.isContextProvider = function(b) {
@@ -854,13 +856,13 @@ function Qr() {
854
856
  }, Q.isElement = function(b) {
855
857
  return typeof b == "object" && b !== null && b.$$typeof === e;
856
858
  }, Q.isForwardRef = function(b) {
857
- return O(b) === u;
859
+ return O(b) === f;
858
860
  }, Q.isFragment = function(b) {
859
861
  return O(b) === n;
860
862
  }, Q.isLazy = function(b) {
861
863
  return O(b) === m;
862
864
  }, Q.isMemo = function(b) {
863
- return O(b) === p;
865
+ return O(b) === d;
864
866
  }, Q.isPortal = function(b) {
865
867
  return O(b) === t;
866
868
  }, Q.isProfiler = function(b) {
@@ -870,7 +872,7 @@ function Qr() {
870
872
  }, Q.isSuspense = function(b) {
871
873
  return O(b) === l;
872
874
  }, Q.isValidElementType = function(b) {
873
- return typeof b == "string" || typeof b == "function" || b === n || b === c || b === a || b === s || b === l || b === d || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === p || b.$$typeof === i || b.$$typeof === o || b.$$typeof === u || b.$$typeof === x || b.$$typeof === w || b.$$typeof === E || b.$$typeof === g);
875
+ return typeof b == "string" || typeof b == "function" || b === n || b === c || b === a || b === s || b === l || b === p || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === d || b.$$typeof === i || b.$$typeof === o || b.$$typeof === f || b.$$typeof === x || b.$$typeof === w || b.$$typeof === E || b.$$typeof === g);
874
876
  }, Q.typeOf = O, Q;
875
877
  }
876
878
  var ee = {};
@@ -885,10 +887,10 @@ var ee = {};
885
887
  var Nt;
886
888
  function en() {
887
889
  return Nt || (Nt = 1, process.env.NODE_ENV !== "production" && function() {
888
- 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, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, l = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, p = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, w = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
890
+ 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, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, u = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, l = r ? Symbol.for("react.suspense") : 60113, p = r ? Symbol.for("react.suspense_list") : 60120, d = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, w = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
889
891
  function O(I) {
890
892
  return typeof I == "string" || typeof I == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
891
- I === n || I === c || I === a || I === s || I === l || I === d || typeof I == "object" && I !== null && (I.$$typeof === m || I.$$typeof === p || I.$$typeof === i || I.$$typeof === o || I.$$typeof === u || I.$$typeof === x || I.$$typeof === w || I.$$typeof === E || I.$$typeof === g);
893
+ I === n || I === c || I === a || I === s || I === l || I === p || typeof I == "object" && I !== null && (I.$$typeof === m || I.$$typeof === d || I.$$typeof === i || I.$$typeof === o || I.$$typeof === f || I.$$typeof === x || I.$$typeof === w || I.$$typeof === E || I.$$typeof === g);
892
894
  }
893
895
  function S(I) {
894
896
  if (typeof I == "object" && I !== null) {
@@ -897,7 +899,7 @@ function en() {
897
899
  case e:
898
900
  var X = I.type;
899
901
  switch (X) {
900
- case f:
902
+ case u:
901
903
  case c:
902
904
  case n:
903
905
  case a:
@@ -908,9 +910,9 @@ function en() {
908
910
  var te = X && X.$$typeof;
909
911
  switch (te) {
910
912
  case o:
911
- case u:
913
+ case f:
912
914
  case m:
913
- case p:
915
+ case d:
914
916
  case i:
915
917
  return te;
916
918
  default:
@@ -922,9 +924,9 @@ function en() {
922
924
  }
923
925
  }
924
926
  }
925
- var b = f, L = c, C = o, Y = i, j = e, P = u, D = n, k = m, U = p, H = t, z = a, K = s, J = l, W = !1;
927
+ var b = u, L = c, C = o, Y = i, D = e, P = f, j = n, k = m, U = d, H = t, z = a, K = s, J = l, W = !1;
926
928
  function _(I) {
927
- return W || (W = !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.")), h(I) || S(I) === f;
929
+ return W || (W = !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.")), h(I) || S(I) === u;
928
930
  }
929
931
  function h(I) {
930
932
  return S(I) === c;
@@ -939,7 +941,7 @@ function en() {
939
941
  return typeof I == "object" && I !== null && I.$$typeof === e;
940
942
  }
941
943
  function R(I) {
942
- return S(I) === u;
944
+ return S(I) === f;
943
945
  }
944
946
  function A(I) {
945
947
  return S(I) === n;
@@ -948,7 +950,7 @@ function en() {
948
950
  return S(I) === m;
949
951
  }
950
952
  function F(I) {
951
- return S(I) === p;
953
+ return S(I) === d;
952
954
  }
953
955
  function N(I) {
954
956
  return S(I) === t;
@@ -962,7 +964,7 @@ function en() {
962
964
  function se(I) {
963
965
  return S(I) === l;
964
966
  }
965
- ee.AsyncMode = b, ee.ConcurrentMode = L, ee.ContextConsumer = C, ee.ContextProvider = Y, ee.Element = j, ee.ForwardRef = P, ee.Fragment = D, ee.Lazy = k, ee.Memo = U, ee.Portal = H, ee.Profiler = z, ee.StrictMode = K, ee.Suspense = J, ee.isAsyncMode = _, ee.isConcurrentMode = h, ee.isContextConsumer = y, ee.isContextProvider = T, ee.isElement = $, ee.isForwardRef = R, ee.isFragment = A, ee.isLazy = M, ee.isMemo = F, ee.isPortal = N, ee.isProfiler = q, ee.isStrictMode = B, ee.isSuspense = se, ee.isValidElementType = O, ee.typeOf = S;
967
+ ee.AsyncMode = b, ee.ConcurrentMode = L, ee.ContextConsumer = C, ee.ContextProvider = Y, ee.Element = D, ee.ForwardRef = P, ee.Fragment = j, ee.Lazy = k, ee.Memo = U, ee.Portal = H, ee.Profiler = z, ee.StrictMode = K, ee.Suspense = J, ee.isAsyncMode = _, ee.isConcurrentMode = h, ee.isContextConsumer = y, ee.isContextProvider = T, ee.isElement = $, ee.isForwardRef = R, ee.isFragment = A, ee.isLazy = M, ee.isMemo = F, ee.isPortal = N, ee.isProfiler = q, ee.isStrictMode = B, ee.isSuspense = se, ee.isValidElementType = O, ee.typeOf = S;
966
968
  }()), ee;
967
969
  }
968
970
  var Mt;
@@ -993,31 +995,31 @@ function tn() {
993
995
  return !1;
994
996
  for (var i = {}, o = 0; o < 10; o++)
995
997
  i["_" + String.fromCharCode(o)] = o;
996
- var f = Object.getOwnPropertyNames(i).map(function(u) {
997
- return i[u];
998
+ var u = Object.getOwnPropertyNames(i).map(function(f) {
999
+ return i[f];
998
1000
  });
999
- if (f.join("") !== "0123456789")
1001
+ if (u.join("") !== "0123456789")
1000
1002
  return !1;
1001
1003
  var c = {};
1002
- return "abcdefghijklmnopqrst".split("").forEach(function(u) {
1003
- c[u] = u;
1004
+ return "abcdefghijklmnopqrst".split("").forEach(function(f) {
1005
+ c[f] = f;
1004
1006
  }), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
1005
1007
  } catch {
1006
1008
  return !1;
1007
1009
  }
1008
1010
  }
1009
1011
  return it = s() ? Object.assign : function(a, i) {
1010
- for (var o, f = n(a), c, u = 1; u < arguments.length; u++) {
1011
- o = Object(arguments[u]);
1012
+ for (var o, u = n(a), c, f = 1; f < arguments.length; f++) {
1013
+ o = Object(arguments[f]);
1012
1014
  for (var l in o)
1013
- e.call(o, l) && (f[l] = o[l]);
1015
+ e.call(o, l) && (u[l] = o[l]);
1014
1016
  if (r) {
1015
1017
  c = r(o);
1016
- for (var d = 0; d < c.length; d++)
1017
- t.call(o, c[d]) && (f[c[d]] = o[c[d]]);
1018
+ for (var p = 0; p < c.length; p++)
1019
+ t.call(o, c[p]) && (u[c[p]] = o[c[p]]);
1018
1020
  }
1019
1021
  }
1020
- return f;
1022
+ return u;
1021
1023
  }, it;
1022
1024
  }
1023
1025
  var ot, Vt;
@@ -1048,29 +1050,29 @@ function rn() {
1048
1050
  }
1049
1051
  };
1050
1052
  }
1051
- function s(a, i, o, f, c) {
1053
+ function s(a, i, o, u, c) {
1052
1054
  if (process.env.NODE_ENV !== "production") {
1053
- for (var u in a)
1054
- if (n(a, u)) {
1055
+ for (var f in a)
1056
+ if (n(a, f)) {
1055
1057
  var l;
1056
1058
  try {
1057
- if (typeof a[u] != "function") {
1058
- var d = Error(
1059
- (f || "React class") + ": " + o + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1059
+ if (typeof a[f] != "function") {
1060
+ var p = Error(
1061
+ (u || "React class") + ": " + o + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1060
1062
  );
1061
- throw d.name = "Invariant Violation", d;
1063
+ throw p.name = "Invariant Violation", p;
1062
1064
  }
1063
- l = a[u](i, u, f, o, null, e);
1065
+ l = a[f](i, f, u, o, null, e);
1064
1066
  } catch (m) {
1065
1067
  l = m;
1066
1068
  }
1067
1069
  if (l && !(l instanceof Error) && r(
1068
- (f || "React class") + ": type specification of " + o + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof l + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1070
+ (u || "React class") + ": type specification of " + o + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof l + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1069
1071
  ), l instanceof Error && !(l.message in t)) {
1070
1072
  t[l.message] = !0;
1071
- var p = c ? c() : "";
1073
+ var d = c ? c() : "";
1072
1074
  r(
1073
- "Failed " + o + " type: " + l.message + (p ?? "")
1075
+ "Failed " + o + " type: " + l.message + (d ?? "")
1074
1076
  );
1075
1077
  }
1076
1078
  }
@@ -1087,24 +1089,24 @@ function nn() {
1087
1089
  var r = vr(), e = tn(), t = /* @__PURE__ */ wt(), n = /* @__PURE__ */ br(), s = /* @__PURE__ */ rn(), a = function() {
1088
1090
  };
1089
1091
  process.env.NODE_ENV !== "production" && (a = function(o) {
1090
- var f = "Warning: " + o;
1091
- typeof console < "u" && console.error(f);
1092
+ var u = "Warning: " + o;
1093
+ typeof console < "u" && console.error(u);
1092
1094
  try {
1093
- throw new Error(f);
1095
+ throw new Error(u);
1094
1096
  } catch {
1095
1097
  }
1096
1098
  });
1097
1099
  function i() {
1098
1100
  return null;
1099
1101
  }
1100
- return ut = function(o, f) {
1101
- var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
1102
+ return ut = function(o, u) {
1103
+ var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
1102
1104
  function l(h) {
1103
- var y = h && (c && h[c] || h[u]);
1105
+ var y = h && (c && h[c] || h[f]);
1104
1106
  if (typeof y == "function")
1105
1107
  return y;
1106
1108
  }
1107
- var d = "<<anonymous>>", p = {
1109
+ var p = "<<anonymous>>", d = {
1108
1110
  array: w("array"),
1109
1111
  bigint: w("bigint"),
1110
1112
  bool: w("boolean"),
@@ -1121,7 +1123,7 @@ function nn() {
1121
1123
  node: P(),
1122
1124
  objectOf: Y,
1123
1125
  oneOf: C,
1124
- oneOfType: j,
1126
+ oneOfType: D,
1125
1127
  shape: k,
1126
1128
  exact: U
1127
1129
  };
@@ -1136,8 +1138,8 @@ function nn() {
1136
1138
  if (process.env.NODE_ENV !== "production")
1137
1139
  var y = {}, T = 0;
1138
1140
  function $(A, M, F, N, q, B, se) {
1139
- if (N = N || d, B = B || F, se !== t) {
1140
- if (f) {
1141
+ if (N = N || p, B = B || F, se !== t) {
1142
+ if (u) {
1141
1143
  var I = new Error(
1142
1144
  "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"
1143
1145
  );
@@ -1215,7 +1217,7 @@ function nn() {
1215
1217
  function L(h) {
1216
1218
  function y(T, $, R, A, M) {
1217
1219
  if (!(T[$] instanceof h)) {
1218
- var F = h.name || d, N = _(T[$]);
1220
+ var F = h.name || p, N = _(T[$]);
1219
1221
  return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected ") + ("instance of `" + F + "`."));
1220
1222
  }
1221
1223
  return null;
@@ -1256,7 +1258,7 @@ function nn() {
1256
1258
  }
1257
1259
  return x(y);
1258
1260
  }
1259
- function j(h) {
1261
+ function D(h) {
1260
1262
  if (!Array.isArray(h))
1261
1263
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
1262
1264
  for (var y = 0; y < h.length; y++) {
@@ -1284,7 +1286,7 @@ function nn() {
1284
1286
  }
1285
1287
  return x(h);
1286
1288
  }
1287
- function D(h, y, T, $, R) {
1289
+ function j(h, y, T, $, R) {
1288
1290
  return new g(
1289
1291
  (h || "React class") + ": " + y + " type `" + T + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
1290
1292
  );
@@ -1297,7 +1299,7 @@ function nn() {
1297
1299
  for (var q in h) {
1298
1300
  var B = h[q];
1299
1301
  if (typeof B != "function")
1300
- return D(R, A, M, q, J(B));
1302
+ return j(R, A, M, q, J(B));
1301
1303
  var se = B(F, q, R, A, M + "." + q, t);
1302
1304
  if (se)
1303
1305
  return se;
@@ -1315,7 +1317,7 @@ function nn() {
1315
1317
  for (var B in q) {
1316
1318
  var se = h[B];
1317
1319
  if (n(h, B) && typeof se != "function")
1318
- return D(R, A, M, B, J(se));
1320
+ return j(R, A, M, B, J(se));
1319
1321
  if (!se)
1320
1322
  return new g(
1321
1323
  "Invalid " + A + " `" + M + "` key `" + B + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(T[$], null, " ") + `
@@ -1396,9 +1398,9 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
1396
1398
  }
1397
1399
  }
1398
1400
  function _(h) {
1399
- return !h.constructor || !h.constructor.name ? d : h.constructor.name;
1401
+ return !h.constructor || !h.constructor.name ? p : h.constructor.name;
1400
1402
  }
1401
- return p.checkPropTypes = s, p.resetWarningCache = s.resetWarningCache, p.PropTypes = p, p;
1403
+ return d.checkPropTypes = s, d.resetWarningCache = s.resetWarningCache, d.PropTypes = d, d;
1402
1404
  }, ut;
1403
1405
  }
1404
1406
  var ft, Ht;
@@ -1411,12 +1413,12 @@ function sn() {
1411
1413
  function t() {
1412
1414
  }
1413
1415
  return t.resetWarningCache = e, ft = function() {
1414
- function n(i, o, f, c, u, l) {
1416
+ function n(i, o, u, c, f, l) {
1415
1417
  if (l !== r) {
1416
- var d = new Error(
1418
+ var p = new Error(
1417
1419
  "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"
1418
1420
  );
1419
- throw d.name = "Invariant Violation", d;
1421
+ throw p.name = "Invariant Violation", p;
1420
1422
  }
1421
1423
  }
1422
1424
  n.isRequired = n;
@@ -1470,7 +1472,7 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1470
1472
  if (e[s] !== t[s])
1471
1473
  return !0;
1472
1474
  return !1;
1473
- }, cn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], He = "http://www.w3.org/2000/svg", Gt = "http://www.w3.org/1999/xlink", je = /* @__PURE__ */ function(r) {
1475
+ }, cn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], He = "http://www.w3.org/2000/svg", Gt = "http://www.w3.org/1999/xlink", De = /* @__PURE__ */ function(r) {
1474
1476
  function e() {
1475
1477
  for (var n, s = arguments.length, a = new Array(s), i = 0; i < s; i++)
1476
1478
  a[i] = arguments[i];
@@ -1486,11 +1488,11 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1486
1488
  return t.renderSVG = function() {
1487
1489
  var s = this;
1488
1490
  if (this.reactWrapper instanceof on(this.reactWrapper).Node) {
1489
- var a = this.props, i = a.desc, o = a.evalScripts, f = a.httpRequestWithCredentials, c = a.renumerateIRIElements, u = a.src, l = a.title, d = a.useRequestCache, p = this.props.onError, m = this.props.beforeInjection, g = this.props.afterInjection, x = this.props.wrapper, w, E;
1490
- x === "svg" ? (w = document.createElementNS(He, x), w.setAttribute("xmlns", He), w.setAttribute("xmlns:xlink", Gt), E = document.createElementNS(He, x)) : (w = document.createElement(x), E = document.createElement(x)), w.appendChild(E), E.dataset.src = u, this.nonReactWrapper = this.reactWrapper.appendChild(w);
1491
+ var a = this.props, i = a.desc, o = a.evalScripts, u = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, l = a.title, p = a.useRequestCache, d = this.props.onError, m = this.props.beforeInjection, g = this.props.afterInjection, x = this.props.wrapper, w, E;
1492
+ x === "svg" ? (w = document.createElementNS(He, x), w.setAttribute("xmlns", He), w.setAttribute("xmlns:xlink", Gt), E = document.createElementNS(He, x)) : (w = document.createElement(x), E = document.createElement(x)), w.appendChild(E), E.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(w);
1491
1493
  var O = function(C) {
1492
1494
  if (s.removeSVG(), !s._isMounted) {
1493
- p(C);
1495
+ d(C);
1494
1496
  return;
1495
1497
  }
1496
1498
  s.setState(function() {
@@ -1499,7 +1501,7 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1499
1501
  isLoading: !1
1500
1502
  };
1501
1503
  }, function() {
1502
- p(C);
1504
+ d(C);
1503
1505
  });
1504
1506
  }, S = function(C, Y) {
1505
1507
  if (C) {
@@ -1513,22 +1515,22 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1513
1515
  }, function() {
1514
1516
  try {
1515
1517
  g(Y);
1516
- } catch (j) {
1517
- O(j);
1518
+ } catch (D) {
1519
+ O(D);
1518
1520
  }
1519
1521
  });
1520
1522
  }, b = function(C) {
1521
1523
  if (C.setAttribute("role", "img"), i) {
1522
1524
  var Y = C.querySelector(":scope > desc");
1523
1525
  Y && C.removeChild(Y);
1524
- var j = document.createElement("desc");
1525
- j.innerHTML = i, C.prepend(j);
1526
+ var D = document.createElement("desc");
1527
+ D.innerHTML = i, C.prepend(D);
1526
1528
  }
1527
1529
  if (l) {
1528
1530
  var P = C.querySelector(":scope > title");
1529
1531
  P && C.removeChild(P);
1530
- var D = document.createElement("title");
1531
- D.innerHTML = l, C.prepend(D);
1532
+ var j = document.createElement("title");
1533
+ j.innerHTML = l, C.prepend(j);
1532
1534
  }
1533
1535
  try {
1534
1536
  m(C);
@@ -1539,9 +1541,9 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1539
1541
  Zr(E, {
1540
1542
  afterEach: S,
1541
1543
  beforeEach: b,
1542
- cacheRequests: d,
1544
+ cacheRequests: p,
1543
1545
  evalScripts: o,
1544
- httpRequestWithCredentials: f,
1546
+ httpRequestWithCredentials: u,
1545
1547
  renumerateIRIElements: c
1546
1548
  });
1547
1549
  }
@@ -1566,8 +1568,8 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1566
1568
  s.httpRequestWithCredentials;
1567
1569
  var i = s.loading;
1568
1570
  s.renumerateIRIElements, s.src, s.title, s.useRequestCache;
1569
- var o = s.wrapper, f = Ur(s, cn), c = o;
1570
- return /* @__PURE__ */ Me.createElement(c, Ze({}, f, {
1571
+ var o = s.wrapper, u = Ur(s, cn), c = o;
1572
+ return /* @__PURE__ */ Me.createElement(c, Ze({}, u, {
1571
1573
  ref: this.refCallback
1572
1574
  }, o === "svg" ? {
1573
1575
  xmlns: He,
@@ -1575,7 +1577,7 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1575
1577
  } : {}), this.state.isLoading && i && /* @__PURE__ */ Me.createElement(i, null), this.state.hasError && a && /* @__PURE__ */ Me.createElement(a, null));
1576
1578
  }, e;
1577
1579
  }(Me.Component);
1578
- je.defaultProps = {
1580
+ De.defaultProps = {
1579
1581
  afterInjection: function() {
1580
1582
  },
1581
1583
  beforeInjection: function() {
@@ -1592,7 +1594,7 @@ je.defaultProps = {
1592
1594
  useRequestCache: !0,
1593
1595
  wrapper: "div"
1594
1596
  };
1595
- je.propTypes = {
1597
+ De.propTypes = {
1596
1598
  afterInjection: ie.func,
1597
1599
  beforeInjection: ie.func,
1598
1600
  desc: ie.string,
@@ -1611,7 +1613,7 @@ let gt = {
1611
1613
  assets: "/"
1612
1614
  // Default for storybook isolation development
1613
1615
  };
1614
- const Ss = (r) => {
1616
+ const Ts = (r) => {
1615
1617
  gt = { ...gt, ...r };
1616
1618
  }, Kt = (r) => `${gt.assets}/${r}`.replace(/\/+/g, "/"), ue = hr.memo(
1617
1619
  ({
@@ -1623,27 +1625,27 @@ const Ss = (r) => {
1623
1625
  disabled: a,
1624
1626
  state: i = "base",
1625
1627
  rotated: o = !1,
1626
- onClick: f,
1628
+ onClick: u,
1627
1629
  isInteractable: c = !1,
1628
- spin: u = !1,
1630
+ spin: f = !1,
1629
1631
  title: l,
1630
- tabIndex: d
1632
+ tabIndex: p
1631
1633
  }) => {
1632
- const [p, m] = Z(r), g = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), x = g && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), w = Kt(`assets/svg/${r}.svg`), E = Kt(
1634
+ const [d, m] = Z(r), g = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), x = g && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), w = Kt(`assets/svg/${r}.svg`), E = Kt(
1633
1635
  `assets/svg/${n}.svg`
1634
1636
  ), O = {
1635
1637
  img: `${c ? "smp-image-interactable" : ""}`,
1636
- svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${u ? "smp-icon-spin" : ""}`
1638
+ svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${f ? "smp-icon-spin" : ""}`
1637
1639
  }, S = () => {
1638
- !a && c && f && f();
1640
+ !a && c && u && u();
1639
1641
  }, b = (L) => {
1640
1642
  !a && c && (L.key === "Enter" || L.key === " ") && (L.preventDefault(), S());
1641
1643
  };
1642
1644
  return /* @__PURE__ */ v.jsx(v.Fragment, { children: x ? /* @__PURE__ */ v.jsx(
1643
- je,
1645
+ De,
1644
1646
  {
1645
1647
  src: r,
1646
- fallback: () => /* @__PURE__ */ v.jsx(je, { src: E, wrapper: "svg" }),
1648
+ fallback: () => /* @__PURE__ */ v.jsx(De, { src: E, wrapper: "svg" }),
1647
1649
  width: e || "1rem",
1648
1650
  height: t || "1rem",
1649
1651
  wrapper: "svg",
@@ -1654,14 +1656,14 @@ const Ss = (r) => {
1654
1656
  className: O.svg,
1655
1657
  onClick: S,
1656
1658
  onKeyDown: b,
1657
- tabIndex: d
1659
+ tabIndex: p
1658
1660
  }
1659
1661
  ) : g ? (
1660
1662
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
1661
1663
  /* @__PURE__ */ v.jsx(
1662
1664
  "img",
1663
1665
  {
1664
- src: p,
1666
+ src: d,
1665
1667
  width: e || "16px",
1666
1668
  height: t || "auto",
1667
1669
  alt: l,
@@ -1675,10 +1677,10 @@ const Ss = (r) => {
1675
1677
  }
1676
1678
  )
1677
1679
  ) : /* @__PURE__ */ v.jsx(
1678
- je,
1680
+ De,
1679
1681
  {
1680
1682
  src: w,
1681
- fallback: () => /* @__PURE__ */ v.jsx(je, { src: E, wrapper: "svg" }),
1683
+ fallback: () => /* @__PURE__ */ v.jsx(De, { src: E, wrapper: "svg" }),
1682
1684
  width: e || "1rem",
1683
1685
  height: t || "1rem",
1684
1686
  wrapper: "svg",
@@ -1689,7 +1691,7 @@ const Ss = (r) => {
1689
1691
  className: O.svg,
1690
1692
  onClick: S,
1691
1693
  onKeyDown: b,
1692
- tabIndex: d
1694
+ tabIndex: p
1693
1695
  }
1694
1696
  ) });
1695
1697
  }
@@ -1702,12 +1704,12 @@ const Ss = (r) => {
1702
1704
  placeholder: a,
1703
1705
  isEditable: i = !0,
1704
1706
  shapeIcon: o,
1705
- sizing: f,
1707
+ sizing: u,
1706
1708
  state: c,
1707
- variant: u,
1709
+ variant: f,
1708
1710
  rotatedShapeIcon: l = !1,
1709
- onShapeIconClick: d,
1710
- ref: p,
1711
+ onShapeIconClick: p,
1712
+ ref: d,
1711
1713
  inputRef: m,
1712
1714
  onKeyDown: g,
1713
1715
  inputType: x = "text",
@@ -1720,29 +1722,29 @@ const Ss = (r) => {
1720
1722
  _dataComponent: C = "textfield",
1721
1723
  width: Y
1722
1724
  }) => {
1723
- const j = bt(), P = `${j}-helper`, D = S ? "danger" : c, k = S || c == "danger" ? "error" : o, U = O || !!S, H = (J) => {
1725
+ const D = bt(), P = `${D}-helper`, j = S ? "danger" : c, k = S || c == "danger" ? "error" : o, U = O || !!S, H = (J) => {
1724
1726
  s == null || s(J.target.value);
1725
1727
  }, z = {
1726
1728
  wrapper: `smp-textfield-wrapper ${L ? "smp-textfield-fullWidth" : ""}`,
1727
- container: `smp-textfield ${r ? "smp-textfield-disabled" : ""} ${a ? "smp-textfield-placeholder" : ""} ${f ? `smp-textfield-${f}` : ""} ${D ? `smp-textfield-${D}` : ""} ${b ? `smp-textfield-${b}` : ""} ${i ? "" : "smp-textfield-readOnly"}`,
1729
+ container: `smp-textfield ${r ? "smp-textfield-disabled" : ""} ${a ? "smp-textfield-placeholder" : ""} ${u ? `smp-textfield-${u}` : ""} ${j ? `smp-textfield-${j}` : ""} ${b ? `smp-textfield-${b}` : ""} ${i ? "" : "smp-textfield-readOnly"}`,
1728
1730
  input: "smp-textfield-input "
1729
1731
  };
1730
- u && (u != "notSelectable" || i) && (z.container += `smp-textfield-variant-${u}`);
1732
+ f && (f != "notSelectable" || i) && (z.container += `smp-textfield-variant-${f}`);
1731
1733
  const K = Y ? { "--smp-textField-width-base": Y } : void 0;
1732
1734
  return /* @__PURE__ */ v.jsxs("div", { className: z.wrapper, "data-component": C, children: [
1733
- E && /* @__PURE__ */ v.jsx($e, { label: E, disabled: r, htmlFor: j }),
1735
+ E && /* @__PURE__ */ v.jsx($e, { label: E, disabled: r, htmlFor: D }),
1734
1736
  /* @__PURE__ */ v.jsxs(
1735
1737
  "div",
1736
1738
  {
1737
1739
  className: z.container,
1738
- ref: p,
1740
+ ref: d,
1739
1741
  style: K,
1740
1742
  children: [
1741
1743
  t && /* @__PURE__ */ v.jsx(ue, { icon: t, disabled: r }),
1742
1744
  /* @__PURE__ */ v.jsx(
1743
1745
  "input",
1744
1746
  {
1745
- id: j,
1747
+ id: D,
1746
1748
  type: x,
1747
1749
  value: e,
1748
1750
  placeholder: a,
@@ -1762,8 +1764,8 @@ const Ss = (r) => {
1762
1764
  {
1763
1765
  icon: k,
1764
1766
  disabled: r,
1765
- state: D,
1766
- onClick: d,
1767
+ state: j,
1768
+ onClick: p,
1767
1769
  rotated: l,
1768
1770
  isInteractable: i,
1769
1771
  tabIndex: 0
@@ -1777,7 +1779,7 @@ const Ss = (r) => {
1777
1779
  {
1778
1780
  helperText: S,
1779
1781
  disabled: r,
1780
- state: D,
1782
+ state: j,
1781
1783
  id: P
1782
1784
  }
1783
1785
  )
@@ -1789,26 +1791,26 @@ function xr({
1789
1791
  containerHeight: t,
1790
1792
  overscan: n = 5
1791
1793
  }) {
1792
- const [s, a] = Z(0), i = ve(null), o = r.length * e, f = Math.max(0, Math.floor(s / e) - n), c = Math.min(
1794
+ const [s, a] = Z(0), i = ve(null), o = r.length * e, u = Math.max(0, Math.floor(s / e) - n), c = Math.min(
1793
1795
  r.length - 1,
1794
1796
  Math.floor((s + t) / e) + n
1795
- ), u = [];
1796
- for (let p = f; p <= c; p++)
1797
- u.push({
1798
- item: r[p],
1799
- index: p,
1800
- offsetTop: p * e
1797
+ ), f = [];
1798
+ for (let d = u; d <= c; d++)
1799
+ f.push({
1800
+ item: r[d],
1801
+ index: d,
1802
+ offsetTop: d * e
1801
1803
  });
1802
- const l = ye((p) => {
1803
- const m = p.target.scrollTop;
1804
+ const l = ye((d) => {
1805
+ const m = d.target.scrollTop;
1804
1806
  a(m);
1805
- }, []), d = (p) => {
1807
+ }, []), p = (d) => {
1806
1808
  if (!i.current) return;
1807
- const m = p * e, g = m + e, x = i.current, w = x.scrollTop, E = w + t;
1809
+ const m = d * e, g = m + e, x = i.current, w = x.scrollTop, E = w + t;
1808
1810
  m < w ? x.scrollTop = m : g > E && (x.scrollTop = g - t);
1809
1811
  };
1810
1812
  return {
1811
- virtualItems: u,
1813
+ virtualItems: f,
1812
1814
  containerProps: {
1813
1815
  ref: i,
1814
1816
  style: {
@@ -1830,10 +1832,10 @@ function xr({
1830
1832
  scrollTop: s,
1831
1833
  viewportHeight: t,
1832
1834
  totalHeight: o,
1833
- startIndex: f,
1835
+ startIndex: u,
1834
1836
  endIndex: c
1835
1837
  },
1836
- scrollToIndex: d
1838
+ scrollToIndex: p
1837
1839
  };
1838
1840
  }
1839
1841
  const un = 10, Sr = ({
@@ -1847,39 +1849,39 @@ const un = 10, Sr = ({
1847
1849
  activeIndex: i = [],
1848
1850
  // active element
1849
1851
  width: o,
1850
- onClick: f,
1852
+ onClick: u,
1851
1853
  onKeyDown: c
1852
1854
  }) => {
1853
1855
  var P;
1854
- const [u, l] = Z(""), d = 24, [p, m] = Z(
1856
+ const [f, l] = Z(""), p = 24, [d, m] = Z(
1855
1857
  a !== null ? a : -1
1856
- ), g = s !== void 0 ? s : e.length > un, x = u ? e.filter(
1857
- (D) => D.label.toLowerCase().includes(u.toLowerCase())
1858
- ) : e, w = (D) => {
1859
- l(D);
1858
+ ), g = s !== void 0 ? s : e.length > un, x = f ? e.filter(
1859
+ (j) => j.label.toLowerCase().includes(f.toLowerCase())
1860
+ ) : e, w = (j) => {
1861
+ l(j);
1860
1862
  }, { virtualItems: E, containerProps: O, innerProps: S, scrollToIndex: b } = xr({
1861
1863
  items: x,
1862
- itemHeight: d,
1864
+ itemHeight: p,
1863
1865
  containerHeight: 200,
1864
1866
  overscan: 5
1865
1867
  });
1866
1868
  oe(() => {
1867
- a !== null && a !== p && m(a);
1869
+ a !== null && a !== d && m(a);
1868
1870
  }, [a]), oe(() => {
1869
- p >= 0 && p < x.length && b(p);
1870
- }, [p, x]);
1871
- const L = (D) => {
1872
- if (D.key === "ArrowDown" || D.key === "ArrowUp") {
1873
- D.preventDefault();
1874
- let k = p;
1875
- D.key === "ArrowDown" ? k = p < x.length - 1 ? p + 1 : 0 : D.key === "ArrowUp" && (k = p > 0 ? p - 1 : x.length - 1), m(k);
1876
- } else D.key === "Enter" ? p >= 0 && p < x.length && (f == null || f(x[p])) : D.key === "Escape" && (D.preventDefault(), D.stopPropagation());
1877
- c && c(D);
1878
- }, C = (D) => {
1879
- L(D);
1880
- }, Y = (D) => {
1881
- L(D);
1882
- }, j = {
1871
+ d >= 0 && d < x.length && b(d);
1872
+ }, [d, x]);
1873
+ const L = (j) => {
1874
+ if (j.key === "ArrowDown" || j.key === "ArrowUp") {
1875
+ j.preventDefault();
1876
+ let k = d;
1877
+ j.key === "ArrowDown" ? k = d < x.length - 1 ? d + 1 : 0 : j.key === "ArrowUp" && (k = d > 0 ? d - 1 : x.length - 1), m(k);
1878
+ } else j.key === "Enter" ? d >= 0 && d < x.length && (u == null || u(x[d])) : j.key === "Escape" && (j.preventDefault(), j.stopPropagation());
1879
+ c && c(j);
1880
+ }, C = (j) => {
1881
+ L(j);
1882
+ }, Y = (j) => {
1883
+ L(j);
1884
+ }, D = {
1883
1885
  wrapper: "smp-list",
1884
1886
  container: "smp-list-container",
1885
1887
  virtualScroll: "smp-list-virtualScroll",
@@ -1890,7 +1892,7 @@ const un = 10, Sr = ({
1890
1892
  {
1891
1893
  id: r,
1892
1894
  ref: n,
1893
- className: j.wrapper,
1895
+ className: D.wrapper,
1894
1896
  "data-component": "list",
1895
1897
  style: {
1896
1898
  width: o
@@ -1899,7 +1901,7 @@ const un = 10, Sr = ({
1899
1901
  g && /* @__PURE__ */ v.jsx(
1900
1902
  Ce,
1901
1903
  {
1902
- bindValue: u,
1904
+ bindValue: f,
1903
1905
  placeholder: "Search...",
1904
1906
  onChange: w,
1905
1907
  onKeyDown: C
@@ -1909,40 +1911,40 @@ const un = 10, Sr = ({
1909
1911
  "div",
1910
1912
  {
1911
1913
  ...O,
1912
- className: j.container,
1914
+ className: D.container,
1913
1915
  tabIndex: 0,
1914
1916
  role: "listbox",
1915
1917
  "aria-label": "List",
1916
1918
  onKeyDown: Y,
1917
- "aria-activedescendant": p >= 0 && p < x.length ? (P = x[p]) == null ? void 0 : P.id : void 0,
1918
- children: /* @__PURE__ */ v.jsx("div", { ...S, className: j.virtualScroll, children: E.map(({ item: D, index: k, offsetTop: U }) => {
1919
- const H = i.includes(D.id);
1919
+ "aria-activedescendant": d >= 0 && d < x.length ? (P = x[d]) == null ? void 0 : P.id : void 0,
1920
+ children: /* @__PURE__ */ v.jsx("div", { ...S, className: D.virtualScroll, children: E.map(({ item: j, index: k, offsetTop: U }) => {
1921
+ const H = i.includes(j.id);
1920
1922
  return (
1921
1923
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
1922
1924
  /* @__PURE__ */ v.jsxs(
1923
1925
  "li",
1924
1926
  {
1925
1927
  role: "option",
1926
- id: D.id,
1927
- "aria-selected": p === k ? "true" : "false",
1928
+ id: j.id,
1929
+ "aria-selected": d === k ? "true" : "false",
1928
1930
  tabIndex: -1,
1929
- className: `${j.listItem} ${p === k ? "selected-item" : ""}`,
1930
- "aria-label": D.id + "-" + D.label,
1931
+ className: `${D.listItem} ${d === k ? "selected-item" : ""}`,
1932
+ "aria-label": j.id + "-" + j.label,
1931
1933
  style: {
1932
- height: `${d}px`,
1933
- lineHeight: `calc(${d}px - 2*2px)`,
1934
+ height: `${p}px`,
1935
+ lineHeight: `calc(${p}px - 2*2px)`,
1934
1936
  // lineHeight - 2*padding
1935
1937
  transform: `translateY(${U}px)`
1936
1938
  },
1937
1939
  onClick: () => {
1938
- f == null || f(D), m(k);
1940
+ u == null || u(j), m(k);
1939
1941
  },
1940
1942
  children: [
1941
- Xe(D.id, D.label, t),
1943
+ Xe(j.id, j.label, t),
1942
1944
  H && /* @__PURE__ */ v.jsx(ue, { icon: "check", width: 16 })
1943
1945
  ]
1944
1946
  },
1945
- D.id
1947
+ j.id
1946
1948
  )
1947
1949
  );
1948
1950
  }) })
@@ -1985,27 +1987,27 @@ const un = 10, Sr = ({
1985
1987
  minimumChars: a = 3,
1986
1988
  isEditable: i = !0,
1987
1989
  placeholder: o,
1988
- fun: f,
1990
+ fun: u,
1989
1991
  _changeOnEnter: c = !1,
1990
- onChange: u,
1992
+ onChange: f,
1991
1993
  onOptionsRequest: l,
1992
- _multiActiveIndex: d,
1993
- ...p
1994
+ _multiActiveIndex: p,
1995
+ ...d
1994
1996
  }) => {
1995
- const [m, g] = Z(r), [x, w] = Z(e), [E, O] = Z(!1), [S, b] = Z(t || []), [L, C] = Z(0), [Y, j] = Z([r]), { anchorRef: P, targetRef: D, anchorWidth: k } = St({
1997
+ const [m, g] = Z(r), [x, w] = Z(e), [E, O] = Z(!1), [S, b] = Z(t || []), [L, C] = Z(0), [Y, D] = Z([r]), { anchorRef: P, targetRef: j, anchorWidth: k } = St({
1996
1998
  position: "bottom",
1997
1999
  enabled: E
1998
2000
  });
1999
- Je(D, () => O(!1));
2001
+ Je(j, () => O(!1));
2000
2002
  const U = fn(400), H = (W) => {
2001
- W.length >= a ? f && l && U(async () => {
2002
- const _ = await l(f, W);
2003
+ W.length >= a ? u && l && U(async () => {
2004
+ const _ = await l(u, W);
2003
2005
  b(_), C(_.length > 0 ? 0 : -1), O(!0);
2004
- }) : O(!1), g(W), w(e), c || u == null || u(W, e);
2006
+ }) : O(!1), g(W), w(e), c || f == null || f(W, e);
2005
2007
  }, z = (W) => {
2006
- c ? (g(""), w("")) : (g(W.id), w(W.label)), u == null || u(W.id, W.label);
2008
+ c ? (g(""), w("")) : (g(W.id), w(W.label)), f == null || f(W.id, W.label);
2007
2009
  const _ = S.findIndex((h) => h.id === W.id);
2008
- C(_), j([W.id]), O(!1);
2010
+ C(_), D([W.id]), O(!1);
2009
2011
  }, K = (W) => {
2010
2012
  W.key === "Escape" && (O(!1), C(-1));
2011
2013
  }, J = (W) => {
@@ -2015,7 +2017,7 @@ const un = 10, Sr = ({
2015
2017
  }
2016
2018
  switch (W.key) {
2017
2019
  case "Enter":
2018
- L >= 0 && L < S.length ? z(S[L]) : c && (u == null || u(m, ""), O(!1), g(""), w(""));
2020
+ L >= 0 && L < S.length ? z(S[L]) : c && (f == null || f(m, ""), O(!1), g(""), w(""));
2019
2021
  break;
2020
2022
  case "Escape":
2021
2023
  O(!1), C(-1);
@@ -2026,7 +2028,7 @@ const un = 10, Sr = ({
2026
2028
  /* @__PURE__ */ v.jsx(
2027
2029
  wr,
2028
2030
  {
2029
- ...p,
2031
+ ...d,
2030
2032
  bindValue: m,
2031
2033
  optionalDisplayValue: x,
2032
2034
  displayMode: n,
@@ -2045,9 +2047,9 @@ const un = 10, Sr = ({
2045
2047
  options: S,
2046
2048
  displayMode: s,
2047
2049
  onClick: z,
2048
- ref: D,
2050
+ ref: j,
2049
2051
  selectedIndex: L,
2050
- activeIndex: d || Y,
2052
+ activeIndex: p || Y,
2051
2053
  width: k,
2052
2054
  showFilter: !1,
2053
2055
  onKeyDown: K
@@ -2064,7 +2066,7 @@ const un = 10, Sr = ({
2064
2066
  primary: "onPrimary",
2065
2067
  danger: "onDanger",
2066
2068
  base: "base"
2067
- })[r], De = ({
2069
+ })[r], je = ({
2068
2070
  label: r,
2069
2071
  onClick: e,
2070
2072
  ariaLabel: t,
@@ -2073,16 +2075,16 @@ const un = 10, Sr = ({
2073
2075
  sizing: a = "base",
2074
2076
  variant: i = "primary",
2075
2077
  appearance: o = "raised",
2076
- showIcon: f = !0,
2078
+ showIcon: u = !0,
2077
2079
  showText: c = !0,
2078
- fullWidth: u = !1,
2080
+ fullWidth: f = !1,
2079
2081
  loading: l = !1,
2080
- justify: d = "center",
2081
- title: p,
2082
+ justify: p = "center",
2083
+ title: d,
2082
2084
  optionalDisplayValue: m
2083
2085
  }) => {
2084
2086
  const g = {
2085
- container: `smp-button smp-button-container ${a ? `smp-button-${a}` : ""} ${i ? `smp-buttonVariant-${i}` : ""} ${o ? `smp-buttonType-${o}` : ""} ${u ? "smp-button-fullWidth" : ""} smp-justifyContent-${d}`
2087
+ container: `smp-button smp-button-container ${a ? `smp-button-${a}` : ""} ${i ? `smp-buttonVariant-${i}` : ""} ${o ? `smp-buttonType-${o}` : ""} ${f ? "smp-button-fullWidth" : ""} smp-justifyContent-${p}`
2086
2088
  };
2087
2089
  return /* @__PURE__ */ v.jsx(
2088
2090
  "button",
@@ -2093,9 +2095,9 @@ const un = 10, Sr = ({
2093
2095
  "aria-label": t,
2094
2096
  disabled: s,
2095
2097
  "aria-busy": l,
2096
- title: p || r || m,
2098
+ title: d || r || m,
2097
2099
  children: l ? /* @__PURE__ */ v.jsx(ue, { icon: "spinner", state: qt(i), spin: !0 }) : /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
2098
- n && f && /* @__PURE__ */ v.jsx(
2100
+ n && u && /* @__PURE__ */ v.jsx(
2099
2101
  ue,
2100
2102
  {
2101
2103
  icon: n,
@@ -2118,22 +2120,22 @@ const un = 10, Sr = ({
2118
2120
  variant: a,
2119
2121
  appearance: i,
2120
2122
  showText: o,
2121
- showIcon: f,
2123
+ showIcon: u,
2122
2124
  fullWidth: c,
2123
- disabled: u,
2125
+ disabled: f,
2124
2126
  justify: l,
2125
- onClick: d,
2126
- onOptionsRequest: p
2127
+ onClick: p,
2128
+ onOptionsRequest: d
2127
2129
  }) => {
2128
2130
  const [m, g] = Z(r);
2129
2131
  oe(() => {
2130
- !m && p && e && p(e, void 0).then((E) => g(E)).catch((E) => {
2132
+ !m && d && e && d(e, void 0).then((E) => g(E)).catch((E) => {
2131
2133
  console.error(
2132
2134
  "Errore nel caricamento delle opzioni per ButtonList",
2133
2135
  E
2134
2136
  );
2135
2137
  });
2136
- }, [m, e, p]);
2138
+ }, [m, e, d]);
2137
2139
  const x = {
2138
2140
  container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
2139
2141
  }, w = m == null ? void 0 : m.map((E, O) => {
@@ -2145,16 +2147,16 @@ const un = 10, Sr = ({
2145
2147
  variant: a,
2146
2148
  appearance: i,
2147
2149
  showText: o,
2148
- showIcon: f,
2150
+ showIcon: u,
2149
2151
  fullWidth: c,
2150
- disabled: u,
2152
+ disabled: f,
2151
2153
  sizing: s,
2152
2154
  justify: l,
2153
2155
  onClick: () => {
2154
- d == null || d(E.id, E.fun);
2156
+ p == null || p(E.id, E.fun);
2155
2157
  }
2156
2158
  };
2157
- return /* @__PURE__ */ v.jsx(De, { ...S }, `button-${O}`);
2159
+ return /* @__PURE__ */ v.jsx(je, { ...S }, `button-${O}`);
2158
2160
  });
2159
2161
  return /* @__PURE__ */ v.jsx("div", { role: "list", "data-component": "button-list", className: x.container, children: w });
2160
2162
  }, pn = ({
@@ -2168,10 +2170,10 @@ const un = 10, Sr = ({
2168
2170
  }) => {
2169
2171
  const o = (c) => {
2170
2172
  s && a && a(c.target.checked);
2171
- }, f = {
2173
+ }, u = {
2172
2174
  wrapper: "smp-checkbox-wrapper"
2173
2175
  };
2174
- return /* @__PURE__ */ v.jsxs("div", { className: f.wrapper, "data-component": e, children: [
2176
+ return /* @__PURE__ */ v.jsxs("div", { className: u.wrapper, "data-component": e, children: [
2175
2177
  n && /* @__PURE__ */ v.jsx($e, { label: n, disabled: t }),
2176
2178
  /* @__PURE__ */ v.jsx(
2177
2179
  "input",
@@ -2218,22 +2220,22 @@ const un = 10, Sr = ({
2218
2220
  backgroundColor: a,
2219
2221
  isDraggable: i = !1
2220
2222
  }) => {
2221
- const [o, f] = Z(null), c = {
2223
+ const [o, u] = Z(null), c = {
2222
2224
  container: `${["smp-chips-container"]}`,
2223
2225
  element: "smp-chips-element"
2224
- }, u = (p) => {
2225
- n == null || n(r.filter((m, g) => g !== p));
2226
- }, l = (p) => {
2227
- f(p);
2228
- }, d = (p) => {
2229
- if (o === null || o === p) return;
2226
+ }, f = (d) => {
2227
+ n == null || n(r.filter((m, g) => g !== d));
2228
+ }, l = (d) => {
2229
+ u(d);
2230
+ }, p = (d) => {
2231
+ if (o === null || o === d) return;
2230
2232
  const m = [...r], [g] = m.splice(o, 1);
2231
- m.splice(p, 0, g), n == null || n(m), f(null);
2233
+ m.splice(d, 0, g), n == null || n(m), u(null);
2232
2234
  };
2233
- return /* @__PURE__ */ v.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: r.flatMap((p, m) => {
2235
+ return /* @__PURE__ */ v.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: r.flatMap((d, m) => {
2234
2236
  const g = Xe(
2235
- p.bindValue,
2236
- p.optionalDisplayValue,
2237
+ d.bindValue,
2238
+ d.optionalDisplayValue,
2237
2239
  t
2238
2240
  ), x = /* @__PURE__ */ v.jsxs(
2239
2241
  "div",
@@ -2243,7 +2245,7 @@ const un = 10, Sr = ({
2243
2245
  draggable: i,
2244
2246
  onDragStart: () => l(m),
2245
2247
  onDragOver: (E) => i && E.preventDefault(),
2246
- onDrop: () => i && d(m),
2248
+ onDrop: () => i && p(m),
2247
2249
  style: {
2248
2250
  "--smp-chips-backgroundColor-base": a
2249
2251
  },
@@ -2255,7 +2257,7 @@ const un = 10, Sr = ({
2255
2257
  {
2256
2258
  icon: "close",
2257
2259
  isInteractable: !0,
2258
- onClick: () => u(m),
2260
+ onClick: () => f(m),
2259
2261
  color: s
2260
2262
  }
2261
2263
  )
@@ -2291,21 +2293,21 @@ function Tr(r, e) {
2291
2293
  })();
2292
2294
  const i = (c) => {
2293
2295
  if (c.key === "Escape" || c.key !== "Tab") return;
2294
- const u = s();
2295
- if (u.length === 0) return;
2296
- const l = u[0], d = u[u.length - 1];
2297
- c.shiftKey && document.activeElement === l ? (c.preventDefault(), d.focus()) : !c.shiftKey && document.activeElement === d && (c.preventDefault(), l.focus());
2296
+ const f = s();
2297
+ if (f.length === 0) return;
2298
+ const l = f[0], p = f[f.length - 1];
2299
+ c.shiftKey && document.activeElement === l ? (c.preventDefault(), p.focus()) : !c.shiftKey && document.activeElement === p && (c.preventDefault(), l.focus());
2298
2300
  }, o = (c) => {
2299
2301
  if (n && !n.contains(c.target)) {
2300
2302
  c.preventDefault();
2301
- const u = s();
2302
- u.length > 0 && u[0].focus();
2303
+ const f = s();
2304
+ f.length > 0 && f[0].focus();
2303
2305
  }
2304
2306
  };
2305
2307
  document.addEventListener("keydown", i), document.addEventListener("mousedown", o);
2306
- const f = document.body.style.overflow;
2308
+ const u = document.body.style.overflow;
2307
2309
  return document.body.style.overflow = "hidden", () => {
2308
- document.removeEventListener("keydown", i), document.removeEventListener("mousedown", o), document.body.style.overflow = f, t.current && requestAnimationFrame(() => {
2310
+ document.removeEventListener("keydown", i), document.removeEventListener("mousedown", o), document.body.style.overflow = u, t.current && requestAnimationFrame(() => {
2309
2311
  var c;
2310
2312
  (c = t.current) == null || c.focus();
2311
2313
  });
@@ -2321,26 +2323,26 @@ const mn = ({
2321
2323
  displayMode: a,
2322
2324
  listDisplayMode: i = "Both",
2323
2325
  fun: o,
2324
- onOptionsRequest: f,
2326
+ onOptionsRequest: u,
2325
2327
  multiActiveIndex: c,
2326
- ...u
2328
+ ...f
2327
2329
  }) => {
2328
- const [l, d] = Z(!1), [p, m] = Z(t), [g, x] = Z(-1), [w, E] = Z([r]), O = bt(), { anchorRef: S, targetRef: b, anchorWidth: L } = St({
2330
+ const [l, p] = Z(!1), [d, m] = Z(t), [g, x] = Z(-1), [w, E] = Z([r]), O = bt(), { anchorRef: S, targetRef: b, anchorWidth: L } = St({
2329
2331
  position: "bottom",
2330
2332
  enabled: l
2331
2333
  });
2332
- Je(b, () => d(!1)), Tr(l, b);
2333
- const C = (D) => {
2334
- e == null || e(D.id, D.label);
2335
- const k = p.findIndex((U) => U.id === D.id);
2336
- x(k), E([D.id]), d(!1);
2337
- }, Y = (D) => {
2338
- D.key === "Escape" && (d(!1), x(-1));
2339
- }, j = (D) => {
2340
- (D.key === "ArrowDown" || D.key === "ArrowUp") && (D.preventDefault(), P());
2334
+ Je(b, () => p(!1)), Tr(l, b);
2335
+ const C = (j) => {
2336
+ e == null || e(j.id, j.label);
2337
+ const k = d.findIndex((U) => U.id === j.id);
2338
+ x(k), E([j.id]), p(!1);
2339
+ }, Y = (j) => {
2340
+ j.key === "Escape" && (p(!1), x(-1));
2341
+ }, D = (j) => {
2342
+ (j.key === "ArrowDown" || j.key === "ArrowUp") && (j.preventDefault(), P());
2341
2343
  }, P = () => {
2342
- o && f && f(o, void 0).then((D) => {
2343
- m(D), x(D.length > 0 ? 0 : -1), d(!0);
2344
+ o && u && u(o, void 0).then((j) => {
2345
+ m(j), x(j.length > 0 ? 0 : -1), p(!0);
2344
2346
  });
2345
2347
  };
2346
2348
  return /* @__PURE__ */ v.jsxs(
@@ -2355,12 +2357,12 @@ const mn = ({
2355
2357
  /* @__PURE__ */ v.jsx(
2356
2358
  wr,
2357
2359
  {
2358
- ...u,
2360
+ ...f,
2359
2361
  bindValue: r,
2360
2362
  optionalDisplayValue: n,
2361
2363
  displayMode: a,
2362
2364
  onShapeIconClick: P,
2363
- onKeyDown: j,
2365
+ onKeyDown: D,
2364
2366
  shapeIcon: "arrow_drop_down",
2365
2367
  rotatedShapeIcon: l,
2366
2368
  isEditable: s,
@@ -2373,7 +2375,7 @@ const mn = ({
2373
2375
  Sr,
2374
2376
  {
2375
2377
  id: O,
2376
- options: p,
2378
+ options: d,
2377
2379
  displayMode: i,
2378
2380
  ref: b,
2379
2381
  selectedIndex: g,
@@ -2484,11 +2486,11 @@ const En = [" ", ",", "?", "!", ";"], Tn = new wn(20), On = (r, e, t) => {
2484
2486
  if (!s || typeof s != "object")
2485
2487
  return;
2486
2488
  let i, o = "";
2487
- for (let f = a; f < n.length; ++f)
2488
- if (f !== a && (o += t), o += n[f], i = s[o], i !== void 0) {
2489
- if (["string", "number", "boolean"].indexOf(typeof i) > -1 && f < n.length - 1)
2489
+ for (let u = a; u < n.length; ++u)
2490
+ if (u !== a && (o += t), o += n[u], i = s[o], i !== void 0) {
2491
+ if (["string", "number", "boolean"].indexOf(typeof i) > -1 && u < n.length - 1)
2490
2492
  continue;
2491
- a += f - a + 1;
2493
+ a += u - a + 1;
2492
2494
  break;
2493
2495
  }
2494
2496
  s = i;
@@ -2588,12 +2590,12 @@ class er extends rt {
2588
2590
  t > -1 && this.options.ns.splice(t, 1);
2589
2591
  }
2590
2592
  getResource(e, t, n, s = {}) {
2591
- var c, u;
2593
+ var c, f;
2592
2594
  const a = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, i = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
2593
2595
  let o;
2594
2596
  e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : G(n) && a ? o.push(...n.split(a)) : o.push(n)));
2595
- const f = Qe(this.data, o);
2596
- return !f && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), f || !i || !G(n) ? f : yt((u = (c = this.data) == null ? void 0 : c[e]) == null ? void 0 : u[t], n, a);
2597
+ const u = Qe(this.data, o);
2598
+ return !u && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), u || !i || !G(n) ? u : yt((f = (c = this.data) == null ? void 0 : c[e]) == null ? void 0 : f[t], n, a);
2597
2599
  }
2598
2600
  addResource(e, t, n, s, a = {
2599
2601
  silent: !1
@@ -2617,11 +2619,11 @@ class er extends rt {
2617
2619
  }) {
2618
2620
  let o = [e, t];
2619
2621
  e.indexOf(".") > -1 && (o = e.split("."), s = n, n = t, t = o[1]), this.addNamespaces(t);
2620
- let f = Qe(this.data, o) || {};
2621
- i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? Or(f, n, a) : f = {
2622
- ...f,
2622
+ let u = Qe(this.data, o) || {};
2623
+ i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? Or(u, n, a) : u = {
2624
+ ...u,
2623
2625
  ...n
2624
- }, Qt(this.data, o, f), i.silent || this.emit("added", e, t, n);
2626
+ }, Qt(this.data, o, u), i.silent || this.emit("added", e, t, n);
2625
2627
  }
2626
2628
  removeResourceBundle(e, t) {
2627
2629
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -2680,8 +2682,8 @@ class tt extends rt {
2680
2682
  let a = t.ns || this.options.defaultNS || [];
2681
2683
  const i = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !On(e, n, s);
2682
2684
  if (i && !o) {
2683
- const f = e.match(this.interpolator.nestingRegexp);
2684
- if (f && f.length > 0)
2685
+ const u = e.match(this.interpolator.nestingRegexp);
2686
+ if (u && u.length > 0)
2685
2687
  return {
2686
2688
  key: e,
2687
2689
  namespaces: G(a) ? [a] : a
@@ -2704,20 +2706,20 @@ class tt extends rt {
2704
2706
  Array.isArray(e) || (e = [String(e)]);
2705
2707
  const a = s.returnDetails !== void 0 ? s.returnDetails : this.options.returnDetails, i = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, {
2706
2708
  key: o,
2707
- namespaces: f
2708
- } = this.extractFromKey(e[e.length - 1], s), c = f[f.length - 1];
2709
- let u = s.nsSeparator !== void 0 ? s.nsSeparator : this.options.nsSeparator;
2710
- u === void 0 && (u = ":");
2711
- const l = s.lng || this.language, d = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
2709
+ namespaces: u
2710
+ } = this.extractFromKey(e[e.length - 1], s), c = u[u.length - 1];
2711
+ let f = s.nsSeparator !== void 0 ? s.nsSeparator : this.options.nsSeparator;
2712
+ f === void 0 && (f = ":");
2713
+ const l = s.lng || this.language, p = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
2712
2714
  if ((l == null ? void 0 : l.toLowerCase()) === "cimode")
2713
- return d ? a ? {
2714
- res: `${c}${u}${o}`,
2715
+ return p ? a ? {
2716
+ res: `${c}${f}${o}`,
2715
2717
  usedKey: o,
2716
2718
  exactUsedKey: o,
2717
2719
  usedLng: l,
2718
2720
  usedNS: c,
2719
2721
  usedParams: this.getUsedParamsDetails(s)
2720
- } : `${c}${u}${o}` : a ? {
2722
+ } : `${c}${f}${o}` : a ? {
2721
2723
  res: o,
2722
2724
  usedKey: o,
2723
2725
  exactUsedKey: o,
@@ -2725,22 +2727,22 @@ class tt extends rt {
2725
2727
  usedNS: c,
2726
2728
  usedParams: this.getUsedParamsDetails(s)
2727
2729
  } : o;
2728
- const p = this.resolve(e, s);
2729
- let m = p == null ? void 0 : p.res;
2730
- const g = (p == null ? void 0 : p.usedKey) || o, x = (p == null ? void 0 : p.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], E = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, S = s.count !== void 0 && !G(s.count), b = tt.hasDefaultValue(s), L = S ? this.pluralResolver.getSuffix(l, s.count, s) : "", C = s.ordinal && S ? this.pluralResolver.getSuffix(l, s.count, {
2730
+ const d = this.resolve(e, s);
2731
+ let m = d == null ? void 0 : d.res;
2732
+ const g = (d == null ? void 0 : d.usedKey) || o, x = (d == null ? void 0 : d.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], E = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, S = s.count !== void 0 && !G(s.count), b = tt.hasDefaultValue(s), L = S ? this.pluralResolver.getSuffix(l, s.count, s) : "", C = s.ordinal && S ? this.pluralResolver.getSuffix(l, s.count, {
2731
2733
  ordinal: !1
2732
- }) : "", Y = S && !s.ordinal && s.count === 0, j = Y && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${L}`] || s[`defaultValue${C}`] || s.defaultValue;
2734
+ }) : "", Y = S && !s.ordinal && s.count === 0, D = Y && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${L}`] || s[`defaultValue${C}`] || s.defaultValue;
2733
2735
  let P = m;
2734
- O && !m && b && (P = j);
2735
- const D = rr(P), k = Object.prototype.toString.apply(P);
2736
- if (O && P && D && w.indexOf(k) < 0 && !(G(E) && Array.isArray(P))) {
2736
+ O && !m && b && (P = D);
2737
+ const j = rr(P), k = Object.prototype.toString.apply(P);
2738
+ if (O && P && j && w.indexOf(k) < 0 && !(G(E) && Array.isArray(P))) {
2737
2739
  if (!s.returnObjects && !this.options.returnObjects) {
2738
2740
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
2739
2741
  const U = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, P, {
2740
2742
  ...s,
2741
- ns: f
2743
+ ns: u
2742
2744
  }) : `key '${o} (${this.language})' returned an object instead of string.`;
2743
- return a ? (p.res = U, p.usedParams = this.getUsedParamsDetails(s), p) : U;
2745
+ return a ? (d.res = U, d.usedParams = this.getUsedParamsDetails(s), d) : U;
2744
2746
  }
2745
2747
  if (i) {
2746
2748
  const U = Array.isArray(P), H = U ? [] : {}, z = U ? x : g;
@@ -2749,13 +2751,13 @@ class tt extends rt {
2749
2751
  const J = `${z}${i}${K}`;
2750
2752
  b && !m ? H[K] = this.translate(J, {
2751
2753
  ...s,
2752
- defaultValue: rr(j) ? j[K] : void 0,
2754
+ defaultValue: rr(D) ? D[K] : void 0,
2753
2755
  joinArrays: !1,
2754
- ns: f
2756
+ ns: u
2755
2757
  }) : H[K] = this.translate(J, {
2756
2758
  ...s,
2757
2759
  joinArrays: !1,
2758
- ns: f
2760
+ ns: u
2759
2761
  }), H[K] === J && (H[K] = P[K]);
2760
2762
  }
2761
2763
  m = H;
@@ -2764,10 +2766,10 @@ class tt extends rt {
2764
2766
  m = m.join(E), m && (m = this.extendTranslation(m, e, s, n));
2765
2767
  else {
2766
2768
  let U = !1, H = !1;
2767
- !this.isValidLookup(m) && b && (U = !0, m = j), this.isValidLookup(m) || (H = !0, m = o);
2768
- const K = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && H ? void 0 : m, J = b && j !== m && this.options.updateMissing;
2769
+ !this.isValidLookup(m) && b && (U = !0, m = D), this.isValidLookup(m) || (H = !0, m = o);
2770
+ const K = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && H ? void 0 : m, J = b && D !== m && this.options.updateMissing;
2769
2771
  if (H || U || J) {
2770
- if (this.logger.log(J ? "updateKey" : "missingKey", l, c, o, J ? j : m), i) {
2772
+ if (this.logger.log(J ? "updateKey" : "missingKey", l, c, o, J ? D : m), i) {
2771
2773
  const y = this.resolve(o, {
2772
2774
  ...s,
2773
2775
  keySeparator: !1
@@ -2788,17 +2790,17 @@ class tt extends rt {
2788
2790
  this.options.saveMissing && (this.options.saveMissingPlurals && S ? W.forEach((y) => {
2789
2791
  const T = this.pluralResolver.getSuffixes(y, s);
2790
2792
  Y && s[`defaultValue${this.options.pluralSeparator}zero`] && T.indexOf(`${this.options.pluralSeparator}zero`) < 0 && T.push(`${this.options.pluralSeparator}zero`), T.forEach(($) => {
2791
- h([y], o + $, s[`defaultValue${$}`] || j);
2793
+ h([y], o + $, s[`defaultValue${$}`] || D);
2792
2794
  });
2793
- }) : h(W, o, j));
2795
+ }) : h(W, o, D));
2794
2796
  }
2795
- m = this.extendTranslation(m, e, s, p, n), H && m === o && this.options.appendNamespaceToMissingKey && (m = `${c}${u}${o}`), (H || U) && this.options.parseMissingKeyHandler && (m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${u}${o}` : o, U ? m : void 0, s));
2797
+ m = this.extendTranslation(m, e, s, d, n), H && m === o && this.options.appendNamespaceToMissingKey && (m = `${c}${f}${o}`), (H || U) && this.options.parseMissingKeyHandler && (m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${f}${o}` : o, U ? m : void 0, s));
2796
2798
  }
2797
- return a ? (p.res = m, p.usedParams = this.getUsedParamsDetails(s), p) : m;
2799
+ return a ? (d.res = m, d.usedParams = this.getUsedParamsDetails(s), d) : m;
2798
2800
  }
2799
2801
  extendTranslation(e, t, n, s, a) {
2800
- var f, c;
2801
- if ((f = this.i18nFormat) != null && f.parse)
2802
+ var u, c;
2803
+ if ((u = this.i18nFormat) != null && u.parse)
2802
2804
  e = this.i18nFormat.parse(e, {
2803
2805
  ...this.options.interpolation.defaultVariables,
2804
2806
  ...n
@@ -2813,21 +2815,21 @@ class tt extends rt {
2813
2815
  ...n.interpolation
2814
2816
  }
2815
2817
  });
2816
- const u = G(e) && (((c = n == null ? void 0 : n.interpolation) == null ? void 0 : c.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
2818
+ const f = G(e) && (((c = n == null ? void 0 : n.interpolation) == null ? void 0 : c.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
2817
2819
  let l;
2818
- if (u) {
2819
- const p = e.match(this.interpolator.nestingRegexp);
2820
- l = p && p.length;
2820
+ if (f) {
2821
+ const d = e.match(this.interpolator.nestingRegexp);
2822
+ l = d && d.length;
2821
2823
  }
2822
- let d = n.replace && !G(n.replace) ? n.replace : n;
2823
- if (this.options.interpolation.defaultVariables && (d = {
2824
+ let p = n.replace && !G(n.replace) ? n.replace : n;
2825
+ if (this.options.interpolation.defaultVariables && (p = {
2824
2826
  ...this.options.interpolation.defaultVariables,
2825
- ...d
2826
- }), e = this.interpolator.interpolate(e, d, n.lng || this.language || s.usedLng, n), u) {
2827
- const p = e.match(this.interpolator.nestingRegexp), m = p && p.length;
2827
+ ...p
2828
+ }), e = this.interpolator.interpolate(e, p, n.lng || this.language || s.usedLng, n), f) {
2829
+ const d = e.match(this.interpolator.nestingRegexp), m = d && d.length;
2828
2830
  l < m && (n.nest = !1);
2829
2831
  }
2830
- !n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...p) => (a == null ? void 0 : a[0]) === p[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : this.translate(...p, t), n)), n.interpolation && this.interpolator.reset();
2832
+ !n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...d) => (a == null ? void 0 : a[0]) === d[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${t[0]}`), null) : this.translate(...d, t), n)), n.interpolation && this.interpolator.reset();
2831
2833
  }
2832
2834
  const i = n.postProcess || this.options.postProcess, o = G(i) ? [i] : i;
2833
2835
  return e != null && (o != null && o.length) && n.applyPostProcessor !== !1 && (e = Rr.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
@@ -2840,29 +2842,29 @@ class tt extends rt {
2840
2842
  }
2841
2843
  resolve(e, t = {}) {
2842
2844
  let n, s, a, i, o;
2843
- return G(e) && (e = [e]), e.forEach((f) => {
2845
+ return G(e) && (e = [e]), e.forEach((u) => {
2844
2846
  if (this.isValidLookup(n)) return;
2845
- const c = this.extractFromKey(f, t), u = c.key;
2846
- s = u;
2847
+ const c = this.extractFromKey(u, t), f = c.key;
2848
+ s = f;
2847
2849
  let l = c.namespaces;
2848
2850
  this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
2849
- const d = t.count !== void 0 && !G(t.count), p = d && !t.ordinal && t.count === 0, m = t.context !== void 0 && (G(t.context) || typeof t.context == "number") && t.context !== "", g = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
2851
+ const p = t.count !== void 0 && !G(t.count), d = p && !t.ordinal && t.count === 0, m = t.context !== void 0 && (G(t.context) || typeof t.context == "number") && t.context !== "", g = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
2850
2852
  l.forEach((x) => {
2851
2853
  var w, E;
2852
2854
  this.isValidLookup(n) || (o = x, !tr[`${g[0]}-${x}`] && ((w = this.utils) != null && w.hasLoadedNamespace) && !((E = this.utils) != null && E.hasLoadedNamespace(o)) && (tr[`${g[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${g.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), g.forEach((O) => {
2853
2855
  var L;
2854
2856
  if (this.isValidLookup(n)) return;
2855
2857
  i = O;
2856
- const S = [u];
2858
+ const S = [f];
2857
2859
  if ((L = this.i18nFormat) != null && L.addLookupKeys)
2858
- this.i18nFormat.addLookupKeys(S, u, O, x, t);
2860
+ this.i18nFormat.addLookupKeys(S, f, O, x, t);
2859
2861
  else {
2860
2862
  let C;
2861
- d && (C = this.pluralResolver.getSuffix(O, t.count, t));
2862
- const Y = `${this.options.pluralSeparator}zero`, j = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2863
- if (d && (S.push(u + C), t.ordinal && C.indexOf(j) === 0 && S.push(u + C.replace(j, this.options.pluralSeparator)), p && S.push(u + Y)), m) {
2864
- const P = `${u}${this.options.contextSeparator}${t.context}`;
2865
- S.push(P), d && (S.push(P + C), t.ordinal && C.indexOf(j) === 0 && S.push(P + C.replace(j, this.options.pluralSeparator)), p && S.push(P + Y));
2863
+ p && (C = this.pluralResolver.getSuffix(O, t.count, t));
2864
+ const Y = `${this.options.pluralSeparator}zero`, D = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2865
+ if (p && (S.push(f + C), t.ordinal && C.indexOf(D) === 0 && S.push(f + C.replace(D, this.options.pluralSeparator)), d && S.push(f + Y)), m) {
2866
+ const P = `${f}${this.options.contextSeparator}${t.context}`;
2867
+ S.push(P), p && (S.push(P + C), t.ordinal && C.indexOf(D) === 0 && S.push(P + C.replace(D, this.options.pluralSeparator)), d && S.push(P + Y));
2866
2868
  }
2867
2869
  }
2868
2870
  let b;
@@ -2985,7 +2987,7 @@ const sr = {
2985
2987
  pluralCategories: ["one", "other"]
2986
2988
  })
2987
2989
  };
2988
- class jn {
2990
+ class Dn {
2989
2991
  constructor(e, t = {}) {
2990
2992
  this.languageUtils = e, this.options = t, this.logger = ge.create("pluralResolver"), this.pluralRulesCache = {};
2991
2993
  }
@@ -3011,8 +3013,8 @@ class jn {
3011
3013
  if (!Intl)
3012
3014
  return this.logger.error("No Intl support, please use an Intl polyfill!"), ar;
3013
3015
  if (!e.match(/-|_/)) return ar;
3014
- const f = this.languageUtils.getLanguagePartFromCode(e);
3015
- i = this.getRule(f, t);
3016
+ const u = this.languageUtils.getLanguagePartFromCode(e);
3017
+ i = this.getRule(u, t);
3016
3018
  }
3017
3019
  return this.pluralRulesCache[a] = i, i;
3018
3020
  }
@@ -3036,7 +3038,7 @@ const ir = (r, e, t, n = ".", s = !0) => {
3036
3038
  let a = bn(r, e, t);
3037
3039
  return !a && s && G(t) && (a = yt(r, t, n), a === void 0 && (a = yt(e, t, n))), a;
3038
3040
  }, dt = (r) => r.replace(/\$/g, "$$$$");
3039
- class Dn {
3041
+ class jn {
3040
3042
  constructor(e = {}) {
3041
3043
  var t;
3042
3044
  this.logger = ge.create("interpolator"), this.options = e, this.format = ((t = e == null ? void 0 : e.interpolation) == null ? void 0 : t.format) || ((n) => n), this.init(e);
@@ -3052,19 +3054,19 @@ class Dn {
3052
3054
  prefix: a,
3053
3055
  prefixEscaped: i,
3054
3056
  suffix: o,
3055
- suffixEscaped: f,
3057
+ suffixEscaped: u,
3056
3058
  formatSeparator: c,
3057
- unescapeSuffix: u,
3059
+ unescapeSuffix: f,
3058
3060
  unescapePrefix: l,
3059
- nestingPrefix: d,
3060
- nestingPrefixEscaped: p,
3061
+ nestingPrefix: p,
3062
+ nestingPrefixEscaped: d,
3061
3063
  nestingSuffix: m,
3062
3064
  nestingSuffixEscaped: g,
3063
3065
  nestingOptionsSeparator: x,
3064
3066
  maxReplaces: w,
3065
3067
  alwaysFormat: E
3066
3068
  } = e.interpolation;
3067
- this.escape = t !== void 0 ? t : Sn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Oe(a) : i || "{{", this.suffix = o ? Oe(o) : f || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : l || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = d ? Oe(d) : p || Oe("$t("), this.nestingSuffix = m ? Oe(m) : g || Oe(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = E !== void 0 ? E : !1, this.resetRegExp();
3069
+ this.escape = t !== void 0 ? t : Sn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Oe(a) : i || "{{", this.suffix = o ? Oe(o) : u || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : l || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = p ? Oe(p) : d || Oe("$t("), this.nestingSuffix = m ? Oe(m) : g || Oe(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = E !== void 0 ? E : !1, this.resetRegExp();
3068
3070
  }
3069
3071
  reset() {
3070
3072
  this.options && this.init(this.options);
@@ -3074,11 +3076,11 @@ class Dn {
3074
3076
  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}`);
3075
3077
  }
3076
3078
  interpolate(e, t, n, s) {
3077
- var p;
3079
+ var d;
3078
3080
  let a, i, o;
3079
- const f = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (m) => {
3081
+ const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (m) => {
3080
3082
  if (m.indexOf(this.formatSeparator) < 0) {
3081
- const E = ir(t, f, m, this.options.keySeparator, this.options.ignoreJSONStructure);
3083
+ const E = ir(t, u, m, this.options.keySeparator, this.options.ignoreJSONStructure);
3082
3084
  return this.alwaysFormat ? this.format(E, void 0, n, {
3083
3085
  ...s,
3084
3086
  ...t,
@@ -3086,14 +3088,14 @@ class Dn {
3086
3088
  }) : E;
3087
3089
  }
3088
3090
  const g = m.split(this.formatSeparator), x = g.shift().trim(), w = g.join(this.formatSeparator).trim();
3089
- return this.format(ir(t, f, x, this.options.keySeparator, this.options.ignoreJSONStructure), w, n, {
3091
+ return this.format(ir(t, u, x, this.options.keySeparator, this.options.ignoreJSONStructure), w, n, {
3090
3092
  ...s,
3091
3093
  ...t,
3092
3094
  interpolationkey: x
3093
3095
  });
3094
3096
  };
3095
3097
  this.resetRegExp();
3096
- const u = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, l = ((p = s == null ? void 0 : s.interpolation) == null ? void 0 : p.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
3098
+ const f = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, l = ((d = s == null ? void 0 : s.interpolation) == null ? void 0 : d.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
3097
3099
  return [{
3098
3100
  regex: this.regexpUnescape,
3099
3101
  safeValue: (m) => dt(m)
@@ -3104,8 +3106,8 @@ class Dn {
3104
3106
  for (o = 0; a = m.regex.exec(e); ) {
3105
3107
  const g = a[1].trim();
3106
3108
  if (i = c(g), i === void 0)
3107
- if (typeof u == "function") {
3108
- const w = u(e, a, s);
3109
+ if (typeof f == "function") {
3110
+ const w = f(e, a, s);
3109
3111
  i = G(w) ? w : "";
3110
3112
  } else if (s && Object.prototype.hasOwnProperty.call(s, g))
3111
3113
  i = "";
@@ -3123,36 +3125,36 @@ class Dn {
3123
3125
  }
3124
3126
  nest(e, t, n = {}) {
3125
3127
  let s, a, i;
3126
- const o = (f, c) => {
3127
- const u = this.nestingOptionsSeparator;
3128
- if (f.indexOf(u) < 0) return f;
3129
- const l = f.split(new RegExp(`${u}[ ]*{`));
3130
- let d = `{${l[1]}`;
3131
- f = l[0], d = this.interpolate(d, i);
3132
- const p = d.match(/'/g), m = d.match(/"/g);
3133
- (((p == null ? void 0 : p.length) ?? 0) % 2 === 0 && !m || m.length % 2 !== 0) && (d = d.replace(/'/g, '"'));
3128
+ const o = (u, c) => {
3129
+ const f = this.nestingOptionsSeparator;
3130
+ if (u.indexOf(f) < 0) return u;
3131
+ const l = u.split(new RegExp(`${f}[ ]*{`));
3132
+ let p = `{${l[1]}`;
3133
+ u = l[0], p = this.interpolate(p, i);
3134
+ const d = p.match(/'/g), m = p.match(/"/g);
3135
+ (((d == null ? void 0 : d.length) ?? 0) % 2 === 0 && !m || m.length % 2 !== 0) && (p = p.replace(/'/g, '"'));
3134
3136
  try {
3135
- i = JSON.parse(d), c && (i = {
3137
+ i = JSON.parse(p), c && (i = {
3136
3138
  ...c,
3137
3139
  ...i
3138
3140
  });
3139
3141
  } catch (g) {
3140
- return this.logger.warn(`failed parsing options string in nesting for key ${f}`, g), `${f}${u}${d}`;
3142
+ return this.logger.warn(`failed parsing options string in nesting for key ${u}`, g), `${u}${f}${p}`;
3141
3143
  }
3142
- return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, f;
3144
+ return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, u;
3143
3145
  };
3144
3146
  for (; s = this.nestingRegexp.exec(e); ) {
3145
- let f = [];
3147
+ let u = [];
3146
3148
  i = {
3147
3149
  ...n
3148
3150
  }, i = i.replace && !G(i.replace) ? i.replace : i, i.applyPostProcessor = !1, delete i.defaultValue;
3149
3151
  let c = !1;
3150
3152
  if (s[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(s[1])) {
3151
- const u = s[1].split(this.formatSeparator).map((l) => l.trim());
3152
- s[1] = u.shift(), f = u, c = !0;
3153
+ const f = s[1].split(this.formatSeparator).map((l) => l.trim());
3154
+ s[1] = f.shift(), u = f, c = !0;
3153
3155
  }
3154
3156
  if (a = t(o.call(this, s[1].trim(), i), i), a && s[0] === e && !G(a)) return a;
3155
- G(a) || (a = Jt(a)), a || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), a = ""), c && (a = f.reduce((u, l) => this.format(u, l, n.lng, {
3157
+ G(a) || (a = Jt(a)), a || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), a = ""), c && (a = u.reduce((f, l) => this.format(f, l, n.lng, {
3156
3158
  ...n,
3157
3159
  interpolationkey: s[1].trim()
3158
3160
  }), a.trim())), e = e.replace(s[0], a), this.regexp.lastIndex = 0;
@@ -3169,8 +3171,8 @@ const $n = (r) => {
3169
3171
  const s = n[1].substring(0, n[1].length - 1);
3170
3172
  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((i) => {
3171
3173
  if (i) {
3172
- const [o, ...f] = i.split(":"), c = f.join(":").trim().replace(/^'+|'+$/g, ""), u = o.trim();
3173
- t[u] || (t[u] = c), c === "false" && (t[u] = !1), c === "true" && (t[u] = !0), isNaN(c) || (t[u] = parseInt(c, 10));
3174
+ const [o, ...u] = i.split(":"), c = u.join(":").trim().replace(/^'+|'+$/g, ""), f = o.trim();
3175
+ t[f] || (t[f] = c), c === "false" && (t[f] = !1), c === "true" && (t[f] = !0), isNaN(c) || (t[f] = parseInt(c, 10));
3174
3176
  }
3175
3177
  });
3176
3178
  }
@@ -3243,28 +3245,28 @@ class Pn {
3243
3245
  format(e, t, n, s = {}) {
3244
3246
  const a = t.split(this.formatSeparator);
3245
3247
  if (a.length > 1 && a[0].indexOf("(") > 1 && a[0].indexOf(")") < 0 && a.find((o) => o.indexOf(")") > -1)) {
3246
- const o = a.findIndex((f) => f.indexOf(")") > -1);
3248
+ const o = a.findIndex((u) => u.indexOf(")") > -1);
3247
3249
  a[0] = [a[0], ...a.splice(1, o)].join(this.formatSeparator);
3248
3250
  }
3249
- return a.reduce((o, f) => {
3251
+ return a.reduce((o, u) => {
3250
3252
  var l;
3251
3253
  const {
3252
3254
  formatName: c,
3253
- formatOptions: u
3254
- } = $n(f);
3255
+ formatOptions: f
3256
+ } = $n(u);
3255
3257
  if (this.formats[c]) {
3256
- let d = o;
3258
+ let p = o;
3257
3259
  try {
3258
- const p = ((l = s == null ? void 0 : s.formatParams) == null ? void 0 : l[s.interpolationkey]) || {}, m = p.locale || p.lng || s.locale || s.lng || n;
3259
- d = this.formats[c](o, m, {
3260
- ...u,
3260
+ const d = ((l = s == null ? void 0 : s.formatParams) == null ? void 0 : l[s.interpolationkey]) || {}, m = d.locale || d.lng || s.locale || s.lng || n;
3261
+ p = this.formats[c](o, m, {
3262
+ ...f,
3261
3263
  ...s,
3262
- ...p
3264
+ ...d
3263
3265
  });
3264
- } catch (p) {
3265
- this.logger.warn(p);
3266
+ } catch (d) {
3267
+ this.logger.warn(d);
3266
3268
  }
3267
- return d;
3269
+ return p;
3268
3270
  } else
3269
3271
  this.logger.warn(`there was no format function for ${c}`);
3270
3272
  return o;
@@ -3280,13 +3282,13 @@ class Ln extends rt {
3280
3282
  super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = ge.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 = [], (i = (a = this.backend) == null ? void 0 : a.init) == null || i.call(a, n, s.backend, s);
3281
3283
  }
3282
3284
  queueLoad(e, t, n, s) {
3283
- const a = {}, i = {}, o = {}, f = {};
3285
+ const a = {}, i = {}, o = {}, u = {};
3284
3286
  return e.forEach((c) => {
3285
- let u = !0;
3287
+ let f = !0;
3286
3288
  t.forEach((l) => {
3287
- const d = `${c}|${l}`;
3288
- !n.reload && this.store.hasResourceBundle(c, l) ? this.state[d] = 2 : this.state[d] < 0 || (this.state[d] === 1 ? i[d] === void 0 && (i[d] = !0) : (this.state[d] = 1, u = !1, i[d] === void 0 && (i[d] = !0), a[d] === void 0 && (a[d] = !0), f[l] === void 0 && (f[l] = !0)));
3289
- }), u || (o[c] = !0);
3289
+ const p = `${c}|${l}`;
3290
+ !n.reload && this.store.hasResourceBundle(c, l) ? this.state[p] = 2 : this.state[p] < 0 || (this.state[p] === 1 ? i[p] === void 0 && (i[p] = !0) : (this.state[p] = 1, f = !1, i[p] === void 0 && (i[p] = !0), a[p] === void 0 && (a[p] = !0), u[l] === void 0 && (u[l] = !0)));
3291
+ }), f || (o[c] = !0);
3290
3292
  }), (Object.keys(a).length || Object.keys(i).length) && this.queue.push({
3291
3293
  pending: i,
3292
3294
  pendingCount: Object.keys(i).length,
@@ -3297,7 +3299,7 @@ class Ln extends rt {
3297
3299
  toLoad: Object.keys(a),
3298
3300
  pending: Object.keys(i),
3299
3301
  toLoadLanguages: Object.keys(o),
3300
- toLoadNamespaces: Object.keys(f)
3302
+ toLoadNamespaces: Object.keys(u)
3301
3303
  };
3302
3304
  }
3303
3305
  loaded(e, t, n) {
@@ -3306,15 +3308,15 @@ class Ln extends rt {
3306
3308
  skipCopy: !0
3307
3309
  }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
3308
3310
  const o = {};
3309
- this.queue.forEach((f) => {
3310
- vn(f.loaded, [a], i), An(f, e), t && f.errors.push(t), f.pendingCount === 0 && !f.done && (Object.keys(f.loaded).forEach((c) => {
3311
+ this.queue.forEach((u) => {
3312
+ vn(u.loaded, [a], i), An(u, e), t && u.errors.push(t), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((c) => {
3311
3313
  o[c] || (o[c] = {});
3312
- const u = f.loaded[c];
3313
- u.length && u.forEach((l) => {
3314
+ const f = u.loaded[c];
3315
+ f.length && f.forEach((l) => {
3314
3316
  o[c][l] === void 0 && (o[c][l] = !0);
3315
3317
  });
3316
- }), f.done = !0, f.errors.length ? f.callback(f.errors) : f.callback());
3317
- }), this.emit("loaded", o), this.queue = this.queue.filter((f) => !f.done);
3318
+ }), u.done = !0, u.errors.length ? u.callback(u.errors) : u.callback());
3319
+ }), this.emit("loaded", o), this.queue = this.queue.filter((u) => !u.done);
3318
3320
  }
3319
3321
  read(e, t, n, s = 0, a = this.retryTimeout, i) {
3320
3322
  if (!e.length) return i(null, {});
@@ -3330,29 +3332,29 @@ class Ln extends rt {
3330
3332
  return;
3331
3333
  }
3332
3334
  this.readingCalls++;
3333
- const o = (c, u) => {
3335
+ const o = (c, f) => {
3334
3336
  if (this.readingCalls--, this.waitingReads.length > 0) {
3335
3337
  const l = this.waitingReads.shift();
3336
3338
  this.read(l.lng, l.ns, l.fcName, l.tried, l.wait, l.callback);
3337
3339
  }
3338
- if (c && u && s < this.maxRetries) {
3340
+ if (c && f && s < this.maxRetries) {
3339
3341
  setTimeout(() => {
3340
3342
  this.read.call(this, e, t, n, s + 1, a * 2, i);
3341
3343
  }, a);
3342
3344
  return;
3343
3345
  }
3344
- i(c, u);
3345
- }, f = this.backend[n].bind(this.backend);
3346
- if (f.length === 2) {
3346
+ i(c, f);
3347
+ }, u = this.backend[n].bind(this.backend);
3348
+ if (u.length === 2) {
3347
3349
  try {
3348
- const c = f(e, t);
3349
- c && typeof c.then == "function" ? c.then((u) => o(null, u)).catch(o) : o(null, c);
3350
+ const c = u(e, t);
3351
+ c && typeof c.then == "function" ? c.then((f) => o(null, f)).catch(o) : o(null, c);
3350
3352
  } catch (c) {
3351
3353
  o(c);
3352
3354
  }
3353
3355
  return;
3354
3356
  }
3355
- return f(e, t, o);
3357
+ return u(e, t, o);
3356
3358
  }
3357
3359
  prepareLoading(e, t, n = {}, s) {
3358
3360
  if (!this.backend)
@@ -3381,26 +3383,26 @@ class Ln extends rt {
3381
3383
  }
3382
3384
  saveMissing(e, t, n, s, a, i = {}, o = () => {
3383
3385
  }) {
3384
- var f, c, u, l, d;
3385
- if ((c = (f = this.services) == null ? void 0 : f.utils) != null && c.hasLoadedNamespace && !((l = (u = this.services) == null ? void 0 : u.utils) != null && l.hasLoadedNamespace(t))) {
3386
+ var u, c, f, l, p;
3387
+ if ((c = (u = this.services) == null ? void 0 : u.utils) != null && c.hasLoadedNamespace && !((l = (f = this.services) == null ? void 0 : f.utils) != null && l.hasLoadedNamespace(t))) {
3386
3388
  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!!!");
3387
3389
  return;
3388
3390
  }
3389
3391
  if (!(n == null || n === "")) {
3390
- if ((d = this.backend) != null && d.create) {
3391
- const p = {
3392
+ if ((p = this.backend) != null && p.create) {
3393
+ const d = {
3392
3394
  ...i,
3393
3395
  isUpdate: a
3394
3396
  }, m = this.backend.create.bind(this.backend);
3395
3397
  if (m.length < 6)
3396
3398
  try {
3397
3399
  let g;
3398
- m.length === 5 ? g = m(e, t, n, s, p) : g = m(e, t, n, s), g && typeof g.then == "function" ? g.then((x) => o(null, x)).catch(o) : o(null, g);
3400
+ m.length === 5 ? g = m(e, t, n, s, d) : g = m(e, t, n, s), g && typeof g.then == "function" ? g.then((x) => o(null, x)).catch(o) : o(null, g);
3399
3401
  } catch (g) {
3400
3402
  o(g);
3401
3403
  }
3402
3404
  else
3403
- m(e, t, n, s, o, p);
3405
+ m(e, t, n, s, o, d);
3404
3406
  }
3405
3407
  !e || !e[0] || this.store.addResource(e[0], t, n, s);
3406
3408
  }
@@ -3500,20 +3502,20 @@ class Ne extends rt {
3500
3502
  this.modules.logger ? ge.init(s(this.modules.logger), this.options) : ge.init(null, this.options);
3501
3503
  let c;
3502
3504
  this.modules.formatter ? c = this.modules.formatter : c = Pn;
3503
- const u = new nr(this.options);
3505
+ const f = new nr(this.options);
3504
3506
  this.store = new er(this.options.resources, this.options);
3505
3507
  const l = this.services;
3506
- l.logger = ge, l.resourceStore = this.store, l.languageUtils = u, l.pluralResolver = new jn(u, {
3508
+ l.logger = ge, l.resourceStore = this.store, l.languageUtils = f, l.pluralResolver = new Dn(f, {
3507
3509
  prepend: this.options.pluralSeparator,
3508
3510
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
3509
- }), c && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (l.formatter = s(c), l.formatter.init(l, this.options), this.options.interpolation.format = l.formatter.format.bind(l.formatter)), l.interpolator = new Dn(this.options), l.utils = {
3511
+ }), c && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (l.formatter = s(c), l.formatter.init(l, this.options), this.options.interpolation.format = l.formatter.format.bind(l.formatter)), l.interpolator = new jn(this.options), l.utils = {
3510
3512
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
3511
- }, l.backendConnector = new Ln(s(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", (d, ...p) => {
3512
- this.emit(d, ...p);
3513
- }), this.modules.languageDetector && (l.languageDetector = s(this.modules.languageDetector), l.languageDetector.init && l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = s(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new tt(this.services, this.options), this.translator.on("*", (d, ...p) => {
3514
- this.emit(d, ...p);
3515
- }), this.modules.external.forEach((d) => {
3516
- d.init && d.init(this);
3513
+ }, l.backendConnector = new Ln(s(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", (p, ...d) => {
3514
+ this.emit(p, ...d);
3515
+ }), this.modules.languageDetector && (l.languageDetector = s(this.modules.languageDetector), l.languageDetector.init && l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = s(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new tt(this.services, this.options), this.translator.on("*", (p, ...d) => {
3516
+ this.emit(p, ...d);
3517
+ }), this.modules.external.forEach((p) => {
3518
+ p.init && p.init(this);
3517
3519
  });
3518
3520
  }
3519
3521
  if (this.format = this.options.interpolation.format, t || (t = Be), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
@@ -3521,18 +3523,18 @@ class Ne extends rt {
3521
3523
  c.length > 0 && c[0] !== "dev" && (this.options.lng = c[0]);
3522
3524
  }
3523
3525
  !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((c) => {
3524
- this[c] = (...u) => this.store[c](...u);
3526
+ this[c] = (...f) => this.store[c](...f);
3525
3527
  }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((c) => {
3526
- this[c] = (...u) => (this.store[c](...u), this);
3528
+ this[c] = (...f) => (this.store[c](...f), this);
3527
3529
  });
3528
- const o = Le(), f = () => {
3529
- const c = (u, l) => {
3530
- this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(l), t(u, l);
3530
+ const o = Le(), u = () => {
3531
+ const c = (f, l) => {
3532
+ this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(l), t(f, l);
3531
3533
  };
3532
3534
  if (this.languages && !this.isInitialized) return c(null, this.t.bind(this));
3533
3535
  this.changeLanguage(this.options.lng, c);
3534
3536
  };
3535
- return this.options.resources || !this.options.initAsync ? f() : setTimeout(f, 0), o;
3537
+ return this.options.resources || !this.options.initAsync ? u() : setTimeout(u, 0), o;
3536
3538
  }
3537
3539
  loadResources(e, t = Be) {
3538
3540
  var a, i;
@@ -3540,13 +3542,13 @@ class Ne extends rt {
3540
3542
  const s = G(e) ? e : this.language;
3541
3543
  if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
3542
3544
  if ((s == null ? void 0 : s.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
3543
- const o = [], f = (c) => {
3545
+ const o = [], u = (c) => {
3544
3546
  if (!c || c === "cimode") return;
3545
3547
  this.services.languageUtils.toResolveHierarchy(c).forEach((l) => {
3546
3548
  l !== "cimode" && o.indexOf(l) < 0 && o.push(l);
3547
3549
  });
3548
3550
  };
3549
- s ? f(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((u) => f(u)), (i = (a = this.options.preload) == null ? void 0 : a.forEach) == null || i.call(a, (c) => f(c)), this.services.backendConnector.load(o, this.options.ns, (c) => {
3551
+ s ? u(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((f) => u(f)), (i = (a = this.options.preload) == null ? void 0 : a.forEach) == null || i.call(a, (c) => u(c)), this.services.backendConnector.load(o, this.options.ns, (c) => {
3550
3552
  !c && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(c);
3551
3553
  });
3552
3554
  } else
@@ -3581,27 +3583,27 @@ class Ne extends rt {
3581
3583
  this.emit("languageChanging", e);
3582
3584
  const s = (o) => {
3583
3585
  this.language = o, this.languages = this.services.languageUtils.toResolveHierarchy(o), this.resolvedLanguage = void 0, this.setResolvedLanguage(o);
3584
- }, a = (o, f) => {
3585
- f ? this.isLanguageChangingTo === e && (s(f), this.translator.changeLanguage(f), this.isLanguageChangingTo = void 0, this.emit("languageChanged", f), this.logger.log("languageChanged", f)) : this.isLanguageChangingTo = void 0, n.resolve((...c) => this.t(...c)), t && t(o, (...c) => this.t(...c));
3586
+ }, a = (o, u) => {
3587
+ u ? this.isLanguageChangingTo === e && (s(u), this.translator.changeLanguage(u), this.isLanguageChangingTo = void 0, this.emit("languageChanged", u), this.logger.log("languageChanged", u)) : this.isLanguageChangingTo = void 0, n.resolve((...c) => this.t(...c)), t && t(o, (...c) => this.t(...c));
3586
3588
  }, i = (o) => {
3587
- var u, l;
3589
+ var f, l;
3588
3590
  !e && !o && this.services.languageDetector && (o = []);
3589
- const f = G(o) ? o : o && o[0], c = this.store.hasLanguageSomeTranslations(f) ? f : this.services.languageUtils.getBestMatchFromCodes(G(o) ? [o] : o);
3590
- c && (this.language || s(c), this.translator.language || this.translator.changeLanguage(c), (l = (u = this.services.languageDetector) == null ? void 0 : u.cacheUserLanguage) == null || l.call(u, c)), this.loadResources(c, (d) => {
3591
- a(d, c);
3591
+ const u = G(o) ? o : o && o[0], c = this.store.hasLanguageSomeTranslations(u) ? u : this.services.languageUtils.getBestMatchFromCodes(G(o) ? [o] : o);
3592
+ c && (this.language || s(c), this.translator.language || this.translator.changeLanguage(c), (l = (f = this.services.languageDetector) == null ? void 0 : f.cacheUserLanguage) == null || l.call(f, c)), this.loadResources(c, (p) => {
3593
+ a(p, c);
3592
3594
  });
3593
3595
  };
3594
3596
  return !e && this.services.languageDetector && !this.services.languageDetector.async ? i(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(i) : this.services.languageDetector.detect(i) : i(e), n;
3595
3597
  }
3596
3598
  getFixedT(e, t, n) {
3597
3599
  const s = (a, i, ...o) => {
3598
- let f;
3599
- typeof i != "object" ? f = this.options.overloadTranslationOptionHandler([a, i].concat(o)) : f = {
3600
+ let u;
3601
+ typeof i != "object" ? u = this.options.overloadTranslationOptionHandler([a, i].concat(o)) : u = {
3600
3602
  ...i
3601
- }, f.lng = f.lng || s.lng, f.lngs = f.lngs || s.lngs, f.ns = f.ns || s.ns, f.keyPrefix !== "" && (f.keyPrefix = f.keyPrefix || n || s.keyPrefix);
3603
+ }, u.lng = u.lng || s.lng, u.lngs = u.lngs || s.lngs, u.ns = u.ns || s.ns, u.keyPrefix !== "" && (u.keyPrefix = u.keyPrefix || n || s.keyPrefix);
3602
3604
  const c = this.options.keySeparator || ".";
3603
- let u;
3604
- return f.keyPrefix && Array.isArray(a) ? u = a.map((l) => `${f.keyPrefix}${c}${l}`) : u = f.keyPrefix ? `${f.keyPrefix}${c}${a}` : a, this.t(u, f);
3605
+ let f;
3606
+ return u.keyPrefix && Array.isArray(a) ? f = a.map((l) => `${u.keyPrefix}${c}${l}`) : f = u.keyPrefix ? `${u.keyPrefix}${c}${a}` : a, this.t(f, u);
3605
3607
  };
3606
3608
  return G(e) ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = n, s;
3607
3609
  }
@@ -3623,8 +3625,8 @@ class Ne extends rt {
3623
3625
  return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
3624
3626
  const n = t.lng || this.resolvedLanguage || this.languages[0], s = this.options ? this.options.fallbackLng : !1, a = this.languages[this.languages.length - 1];
3625
3627
  if (n.toLowerCase() === "cimode") return !0;
3626
- const i = (o, f) => {
3627
- const c = this.services.backendConnector.state[`${o}|${f}`];
3628
+ const i = (o, u) => {
3629
+ const c = this.services.backendConnector.state[`${o}|${u}`];
3628
3630
  return c === -1 || c === 0 || c === 2;
3629
3631
  };
3630
3632
  if (t.precheck) {
@@ -3673,15 +3675,15 @@ class Ne extends rt {
3673
3675
  }, a.services.utils = {
3674
3676
  hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
3675
3677
  }, n) {
3676
- const o = Object.keys(this.store.data).reduce((f, c) => (f[c] = {
3678
+ const o = Object.keys(this.store.data).reduce((u, c) => (u[c] = {
3677
3679
  ...this.store.data[c]
3678
- }, f[c] = Object.keys(f[c]).reduce((u, l) => (u[l] = {
3679
- ...f[c][l]
3680
- }, u), f[c]), f), {});
3680
+ }, u[c] = Object.keys(u[c]).reduce((f, l) => (f[l] = {
3681
+ ...u[c][l]
3682
+ }, f), u[c]), u), {});
3681
3683
  a.store = new er(o, s), a.services.resourceStore = a.store;
3682
3684
  }
3683
- return a.translator = new tt(a.services, s), a.translator.on("*", (o, ...f) => {
3684
- a.emit(o, ...f);
3685
+ return a.translator = new tt(a.services, s), a.translator.on("*", (o, ...u) => {
3686
+ a.emit(o, ...u);
3685
3687
  }), a.init(s, t), a.translator.options = s, a.translator.backendConnector.services.utils = {
3686
3688
  hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
3687
3689
  }, a;
@@ -3744,8 +3746,8 @@ function Bn(r, e, t, n, s) {
3744
3746
  if (typeof a != "number") {
3745
3747
  let o;
3746
3748
  e && n === void 0 ? o = "," : o = ".";
3747
- const f = o == "." ? "," : ".";
3748
- a = a.replace(ur(f, "g"), ""), a = a.replace(ur(o, "g"), "."), a = Number(a);
3749
+ const u = o == "." ? "," : ".";
3750
+ a = a.replace(ur(u, "g"), ""), a = a.replace(ur(o, "g"), "."), a = Number(a);
3749
3751
  }
3750
3752
  const i = Number(a);
3751
3753
  return isNaN(i) ? NaN : i;
@@ -3820,14 +3822,14 @@ function qn({
3820
3822
  if (!n) return;
3821
3823
  const _ = new Date(n);
3822
3824
  return isNaN(_.getTime()) ? void 0 : _;
3823
- }, [o] = Z(/* @__PURE__ */ new Date()), [f, c] = Z(
3825
+ }, [o] = Z(/* @__PURE__ */ new Date()), [u, c] = Z(
3824
3826
  r || i() || /* @__PURE__ */ new Date()
3825
- ), [u, l] = Z(
3826
- f ? f.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
3827
- ), [d, p] = Z(
3828
- f ? f.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
3827
+ ), [f, l] = Z(
3828
+ u ? u.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
3829
+ ), [p, d] = Z(
3830
+ u ? u.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
3829
3831
  ), [m, g] = Z(
3830
- f ? f.getDate() : null
3832
+ u ? u.getDate() : null
3831
3833
  ), x = ve(null), w = ve([]), E = [
3832
3834
  a(fe.JANUARY),
3833
3835
  a(fe.FEBRUARY),
@@ -3876,26 +3878,26 @@ function qn({
3876
3878
  }), b = (_) => {
3877
3879
  S(_) || (c(_), g(_.getDate()), e && e(Yr(_)));
3878
3880
  }, L = () => {
3879
- u === 0 ? (l(11), p(d - 1)) : l(u - 1), g(1);
3881
+ f === 0 ? (l(11), d(p - 1)) : l(f - 1), g(1);
3880
3882
  }, C = () => {
3881
- u === 11 ? (l(0), p(d + 1)) : l(u + 1), g(1);
3882
- }, Y = (_, h) => new Date(_, h + 1, 0).getDate(), j = (_, h) => new Date(_, h, 1).getDay(), P = (_) => {
3883
+ f === 11 ? (l(0), d(p + 1)) : l(f + 1), g(1);
3884
+ }, Y = (_, h) => new Date(_, h + 1, 0).getDate(), D = (_, h) => new Date(_, h, 1).getDay(), P = (_) => {
3883
3885
  var y;
3884
3886
  const h = H.findIndex(
3885
3887
  (T) => T !== null && T.getDate() === _
3886
3888
  );
3887
3889
  h !== -1 && w.current[h] && ((y = w.current[h]) == null || y.focus(), g(_));
3888
- }, D = (_, h) => {
3890
+ }, j = (_, h) => {
3889
3891
  const y = H[h];
3890
3892
  if (!y) return;
3891
- const T = Y(d, u), $ = y.getDate();
3893
+ const T = Y(p, f), $ = y.getDate();
3892
3894
  switch (_.key) {
3893
3895
  case "ArrowRight":
3894
3896
  _.preventDefault();
3895
3897
  {
3896
- let R = $ + 1, A = new Date(d, u, R);
3898
+ let R = $ + 1, A = new Date(p, f, R);
3897
3899
  if (R > T) {
3898
- const M = u === 11 ? d + 1 : d, F = u === 11 ? 0 : u + 1;
3900
+ const M = f === 11 ? p + 1 : p, F = f === 11 ? 0 : f + 1;
3899
3901
  R = 1, A = new Date(M, F, R), C(), setTimeout(() => {
3900
3902
  k(1, "forward");
3901
3903
  }, 0);
@@ -3909,9 +3911,9 @@ function qn({
3909
3911
  case "ArrowLeft":
3910
3912
  _.preventDefault();
3911
3913
  {
3912
- let R = $ - 1, A = new Date(d, u, R);
3914
+ let R = $ - 1, A = new Date(p, f, R);
3913
3915
  if (R < 1) {
3914
- const M = u === 0 ? d - 1 : d, F = u === 0 ? 11 : u - 1, N = Y(M, F);
3916
+ const M = f === 0 ? p - 1 : p, F = f === 0 ? 11 : f - 1, N = Y(M, F);
3915
3917
  R = N, A = new Date(M, F, R), L(), setTimeout(() => {
3916
3918
  k(N, "backward");
3917
3919
  }, 0);
@@ -3923,9 +3925,9 @@ function qn({
3923
3925
  case "ArrowUp":
3924
3926
  _.preventDefault();
3925
3927
  {
3926
- let R = $ - 7, A = new Date(d, u, R);
3928
+ let R = $ - 7, A = new Date(p, f, R);
3927
3929
  if (R < 1) {
3928
- const M = u === 0 ? d - 1 : d, F = u === 0 ? 11 : u - 1;
3930
+ const M = f === 0 ? p - 1 : p, F = f === 0 ? 11 : f - 1;
3929
3931
  R = Y(M, F) + R, A = new Date(M, F, R), L(), setTimeout(() => {
3930
3932
  k(R, "backward");
3931
3933
  }, 0);
@@ -3937,9 +3939,9 @@ function qn({
3937
3939
  case "ArrowDown":
3938
3940
  _.preventDefault();
3939
3941
  {
3940
- let R = $ + 7, A = new Date(d, u, R);
3942
+ let R = $ + 7, A = new Date(p, f, R);
3941
3943
  if (R > T) {
3942
- const M = u === 11 ? d + 1 : d, F = u === 11 ? 0 : u + 1;
3944
+ const M = f === 11 ? p + 1 : p, F = f === 11 ? 0 : f + 1;
3943
3945
  R = R - T, A = new Date(M, F, R), C(), setTimeout(() => {
3944
3946
  k(R, "forward");
3945
3947
  }, 0);
@@ -3957,8 +3959,8 @@ function qn({
3957
3959
  case "PageUp":
3958
3960
  _.preventDefault(), L(), setTimeout(() => {
3959
3961
  const R = Y(
3960
- u === 0 ? d - 1 : d,
3961
- u === 0 ? 11 : u - 1
3962
+ f === 0 ? p - 1 : p,
3963
+ f === 0 ? 11 : f - 1
3962
3964
  ), A = Math.min($, R);
3963
3965
  k(A, "forward");
3964
3966
  }, 0);
@@ -3966,8 +3968,8 @@ function qn({
3966
3968
  case "PageDown":
3967
3969
  _.preventDefault(), C(), setTimeout(() => {
3968
3970
  const R = Y(
3969
- u === 11 ? d + 1 : d,
3970
- u === 11 ? 0 : u + 1
3971
+ f === 11 ? p + 1 : p,
3972
+ f === 11 ? 0 : f + 1
3971
3973
  ), A = Math.min($, R);
3972
3974
  k(A, "forward");
3973
3975
  }, 0);
@@ -3982,10 +3984,10 @@ function qn({
3982
3984
  break;
3983
3985
  }
3984
3986
  }, k = (_, h) => {
3985
- const y = Y(d, u);
3987
+ const y = Y(p, f);
3986
3988
  if (h === "forward") {
3987
3989
  for (let T = _; T <= y; T++) {
3988
- const $ = new Date(d, u, T);
3990
+ const $ = new Date(p, f, T);
3989
3991
  if (!S($)) {
3990
3992
  P(T);
3991
3993
  return;
@@ -3996,23 +3998,23 @@ function qn({
3996
3998
  }, 0);
3997
3999
  } else {
3998
4000
  for (let A = _; A >= 1; A--) {
3999
- const M = new Date(d, u, A);
4001
+ const M = new Date(p, f, A);
4000
4002
  if (!S(M)) {
4001
4003
  P(A);
4002
4004
  return;
4003
4005
  }
4004
4006
  }
4005
- const T = u === 0 ? d - 1 : d, $ = u === 0 ? 11 : u - 1, R = Y(T, $);
4007
+ const T = f === 0 ? p - 1 : p, $ = f === 0 ? 11 : f - 1, R = Y(T, $);
4006
4008
  L(), setTimeout(() => {
4007
4009
  k(R, "backward");
4008
4010
  }, 0);
4009
4011
  }
4010
4012
  }, H = (() => {
4011
- const _ = Y(d, u), h = j(d, u), y = [];
4013
+ const _ = Y(p, f), h = D(p, f), y = [];
4012
4014
  for (let T = 0; T < h; T++)
4013
4015
  y.push(null);
4014
4016
  for (let T = 1; T <= _; T++) {
4015
- const $ = new Date(d, u, T);
4017
+ const $ = new Date(p, f, T);
4016
4018
  y.push($);
4017
4019
  }
4018
4020
  return y;
@@ -4032,7 +4034,7 @@ function qn({
4032
4034
  );
4033
4035
  h !== -1 && w.current[h] && ((_ = w.current[h]) == null || _.focus());
4034
4036
  }
4035
- }, [u, d, m, H]);
4037
+ }, [f, p, m, H]);
4036
4038
  const J = {
4037
4039
  label: "smp-datepickercalendar-label",
4038
4040
  wrapper: "smp-datepickercalendar",
@@ -4044,7 +4046,7 @@ function qn({
4044
4046
  ${h ? "smp-datepickercalendar-td-selected" : ""}
4045
4047
  ${y ? "smp-datepickercalendar-td-focused" : ""}
4046
4048
  ${T ? "smp-datepickercalendar-td-disabled" : ""}`
4047
- }, W = () => `${E[u]} ${d.toString()}`;
4049
+ }, W = () => `${E[f]} ${p.toString()}`;
4048
4050
  return /* @__PURE__ */ v.jsxs(
4049
4051
  "div",
4050
4052
  {
@@ -4066,7 +4068,7 @@ function qn({
4066
4068
  },
4067
4069
  children: [
4068
4070
  /* @__PURE__ */ v.jsx(
4069
- De,
4071
+ je,
4070
4072
  {
4071
4073
  onClick: L,
4072
4074
  ariaLabel: a(vt.PREVIOUS_MONTH),
@@ -4085,7 +4087,7 @@ function qn({
4085
4087
  }
4086
4088
  ),
4087
4089
  /* @__PURE__ */ v.jsx(
4088
- De,
4090
+ je,
4089
4091
  {
4090
4092
  onClick: C,
4091
4093
  ariaLabel: a(vt.NEXT_MONTH),
@@ -4103,7 +4105,7 @@ function qn({
4103
4105
  {
4104
4106
  ref: x,
4105
4107
  role: "grid",
4106
- "aria-label": `${a(Tt.CALENDAR_FOR)} ${E[u]} ${d}`,
4108
+ "aria-label": `${a(Tt.CALENDAR_FOR)} ${E[f]} ${p}`,
4107
4109
  className: J.table,
4108
4110
  children: [
4109
4111
  /* @__PURE__ */ v.jsx("thead", { children: /* @__PURE__ */ v.jsx("tr", { children: O.map((_) => /* @__PURE__ */ v.jsx(
@@ -4131,7 +4133,7 @@ function qn({
4131
4133
  },
4132
4134
  `empty-${T}`
4133
4135
  );
4134
- const R = y.getDate() === o.getDate() && y.getMonth() === o.getMonth() && y.getFullYear() === o.getFullYear(), A = f && y.getDate() === f.getDate() && y.getMonth() === f.getMonth() && y.getFullYear() === f.getFullYear(), M = m === y.getDate(), F = S(y);
4136
+ const R = y.getDate() === o.getDate() && y.getMonth() === o.getMonth() && y.getFullYear() === o.getFullYear(), A = u && y.getDate() === u.getDate() && y.getMonth() === u.getMonth() && y.getFullYear() === u.getFullYear(), M = m === y.getDate(), F = S(y);
4135
4137
  return /* @__PURE__ */ v.jsx(
4136
4138
  "td",
4137
4139
  {
@@ -4139,7 +4141,7 @@ function qn({
4139
4141
  "aria-selected": A,
4140
4142
  tabIndex: M ? 0 : -1,
4141
4143
  onClick: () => b(y),
4142
- onKeyDown: (N) => D(N, $),
4144
+ onKeyDown: (N) => j(N, $),
4143
4145
  "aria-label": `${y.getDate()} ${E[y.getMonth()]} ${y.getFullYear()}`,
4144
4146
  "data-selected": A,
4145
4147
  "aria-disabled": F,
@@ -4172,63 +4174,63 @@ const Jn = ({
4172
4174
  isEditable: s = !0,
4173
4175
  ...a
4174
4176
  }) => {
4175
- const [i, o] = Z(!1), [f, c] = Z(r || ""), [u, l] = Z(""), { anchorRef: d, targetRef: p } = St({
4177
+ const [i, o] = Z(!1), [u, c] = Z(r || ""), [f, l] = Z(""), { anchorRef: p, targetRef: d } = St({
4176
4178
  position: "bottom",
4177
4179
  enabled: i
4178
4180
  });
4179
- Je(p, () => {
4181
+ Je(d, () => {
4180
4182
  o(!1);
4181
- }), Je(d, () => {
4183
+ }), Je(p, () => {
4182
4184
  if (
4183
4185
  // FIXME: Copied from useClickOutside.
4184
- typeof d == "object" && d !== null && "current" in d
4186
+ typeof p == "object" && p !== null && "current" in p
4185
4187
  ) {
4186
- const C = d.current.querySelector("input");
4188
+ const C = p.current.querySelector("input");
4187
4189
  C && C === document.activeElement && E();
4188
4190
  }
4189
- }), Tr(i, p);
4191
+ }), Tr(i, d);
4190
4192
  const { format: m, getCurrentLanguage: g } = nt(), x = ye(
4191
4193
  (C) => {
4192
- const Y = C.length > 5 && Mr(C, g()) || C, j = m(Y, void 0, void 0, {
4194
+ const Y = C.length > 5 && Mr(C, g()) || C, D = m(Y, void 0, void 0, {
4193
4195
  type: "date"
4194
- }), P = typeof Y != "string", D = P && Y.toISOString().substring(0, 10) || "";
4196
+ }), P = typeof Y != "string", j = P && Y.toISOString().substring(0, 10) || "";
4195
4197
  return {
4196
4198
  isValid: P,
4197
- formattedDate: j,
4198
- isoDate: D,
4199
+ formattedDate: D,
4200
+ isoDate: j,
4199
4201
  normalizedDate: Y
4200
4202
  };
4201
4203
  },
4202
4204
  [g, m]
4203
4205
  );
4204
4206
  oe(() => {
4205
- const { formattedDate: C, isoDate: Y, isValid: j } = x(r);
4206
- c(j && Y || r), l(j && C || r);
4207
+ const { formattedDate: C, isoDate: Y, isValid: D } = x(r);
4208
+ c(D && Y || r), l(D && C || r);
4207
4209
  }, [r, m, x]);
4208
4210
  const w = () => o((C) => !C), E = () => {
4209
- S(u);
4211
+ S(f);
4210
4212
  }, O = (C) => {
4211
4213
  S(C), o(!1);
4212
4214
  }, S = (C) => {
4213
- const { isoDate: Y, isValid: j } = x(C);
4214
- t && t(j && Y || C);
4215
+ const { isoDate: Y, isValid: D } = x(C);
4216
+ t && t(D && Y || C);
4215
4217
  }, b = (C) => {
4216
4218
  l(C);
4217
4219
  }, L = (C) => {
4218
- C.key === "Enter" && (C.preventDefault(), S(u));
4220
+ C.key === "Enter" && (C.preventDefault(), S(f));
4219
4221
  };
4220
4222
  return /* @__PURE__ */ v.jsxs("div", { "data-component": "date-picker", children: [
4221
4223
  /* @__PURE__ */ v.jsx(
4222
4224
  Ce,
4223
4225
  {
4224
- bindValue: u,
4226
+ bindValue: f,
4225
4227
  placeholder: e,
4226
4228
  onBlur: E,
4227
4229
  onChange: b,
4228
4230
  onKeyDown: L,
4229
4231
  shapeIcon: "calendar",
4230
4232
  onShapeIconClick: w,
4231
- ref: d,
4233
+ ref: p,
4232
4234
  isEditable: s,
4233
4235
  ...a
4234
4236
  }
@@ -4238,8 +4240,8 @@ const Jn = ({
4238
4240
  {
4239
4241
  disabledDateRanges: n,
4240
4242
  onDateChange: O,
4241
- initialValue: xt(f) && f || "",
4242
- targetRef: p
4243
+ initialValue: xt(u) && u || "",
4244
+ targetRef: d
4243
4245
  }
4244
4246
  )
4245
4247
  ] });
@@ -4252,11 +4254,11 @@ const Jn = ({
4252
4254
  placeholder: a,
4253
4255
  label: i,
4254
4256
  disabled: o,
4255
- fun: f,
4257
+ fun: u,
4256
4258
  onOptionsRequest: c,
4257
- onChange: u
4259
+ onChange: f
4258
4260
  }) => {
4259
- const l = r.map((m) => m.bindValue), d = (m, g) => {
4261
+ const l = r.map((m) => m.bindValue), p = (m, g) => {
4260
4262
  const x = [...r];
4261
4263
  if (m == "")
4262
4264
  x.pop();
@@ -4269,14 +4271,14 @@ const Jn = ({
4269
4271
  optionalDisplayValue: g
4270
4272
  });
4271
4273
  }
4272
- u == null || u(x);
4273
- }, p = {
4274
+ f == null || f(x);
4275
+ }, d = {
4274
4276
  container: "smp-multipleAutocomplete-container"
4275
4277
  };
4276
4278
  return /* @__PURE__ */ v.jsxs(
4277
4279
  "div",
4278
4280
  {
4279
- className: p.container,
4281
+ className: d.container,
4280
4282
  "data-component": "multiple-autocomplete",
4281
4283
  children: [
4282
4284
  i && /* @__PURE__ */ v.jsx($e, { label: i, disabled: o }),
@@ -4287,7 +4289,7 @@ const Jn = ({
4287
4289
  displayMode: e,
4288
4290
  isEditable: s,
4289
4291
  onChange: (m) => {
4290
- u == null || u(m);
4292
+ f == null || f(m);
4291
4293
  }
4292
4294
  }
4293
4295
  ),
@@ -4295,9 +4297,9 @@ const Jn = ({
4295
4297
  Er,
4296
4298
  {
4297
4299
  bindValue: "",
4298
- fun: f,
4300
+ fun: u,
4299
4301
  isEditable: s,
4300
- onChange: d,
4302
+ onChange: p,
4301
4303
  _changeOnEnter: !0,
4302
4304
  listDisplayMode: n,
4303
4305
  minimumChars: t,
@@ -4373,7 +4375,7 @@ class Ee {
4373
4375
  this.class = e, this.value = t;
4374
4376
  }
4375
4377
  static fromDataObj(e) {
4376
- return new Ee(e, e.k.split(";"));
4378
+ return new Ee(e, e.k == "" ? [] : e.k.split(";"));
4377
4379
  }
4378
4380
  static fromString(e) {
4379
4381
  return new Ee(
@@ -4424,24 +4426,24 @@ const Ge = (r, e, t) => ({
4424
4426
  appearance: a,
4425
4427
  isEditable: i,
4426
4428
  label: o,
4427
- ariaLabel: f,
4429
+ ariaLabel: u,
4428
4430
  helperText: c,
4429
- error: u,
4431
+ error: f,
4430
4432
  onBlur: l,
4431
- onKeyDown: d
4433
+ onKeyDown: p
4432
4434
  }) => {
4433
- const p = bt(), m = `${p}-helper`, g = u ? "danger" : s, x = c || !!u, w = (O) => {
4435
+ const d = bt(), m = `${d}-helper`, g = f ? "danger" : s, x = c || !!f, w = (O) => {
4434
4436
  t == null || t(O.target.value);
4435
4437
  }, E = {
4436
4438
  wrapper: "smp-textarea-wrapper",
4437
4439
  container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${g ? `smp-textarea-${g}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
4438
4440
  };
4439
4441
  return /* @__PURE__ */ v.jsxs("div", { className: E.wrapper, "data-component": "textarea", children: [
4440
- o && /* @__PURE__ */ v.jsx($e, { htmlFor: p, label: o, disabled: r }),
4442
+ o && /* @__PURE__ */ v.jsx($e, { htmlFor: d, label: o, disabled: r }),
4441
4443
  /* @__PURE__ */ v.jsx(
4442
4444
  "textarea",
4443
4445
  {
4444
- id: p,
4446
+ id: d,
4445
4447
  value: e,
4446
4448
  placeholder: n,
4447
4449
  onChange: w,
@@ -4449,9 +4451,9 @@ const Ge = (r, e, t) => ({
4449
4451
  className: E.container,
4450
4452
  disabled: r,
4451
4453
  readOnly: !i,
4452
- onKeyDown: d,
4453
- "aria-label": o ? void 0 : f,
4454
- "aria-labelledby": o ? p : void 0,
4454
+ onKeyDown: p,
4455
+ "aria-label": o ? void 0 : u,
4456
+ "aria-labelledby": o ? d : void 0,
4455
4457
  "aria-describedby": x ? m : void 0
4456
4458
  }
4457
4459
  ),
@@ -4459,7 +4461,7 @@ const Ge = (r, e, t) => ({
4459
4461
  mr,
4460
4462
  {
4461
4463
  id: m,
4462
- helperText: u,
4464
+ helperText: f,
4463
4465
  disabled: r,
4464
4466
  state: g
4465
4467
  }
@@ -4474,12 +4476,12 @@ const Ge = (r, e, t) => ({
4474
4476
  fun: a,
4475
4477
  placeholderIcon: i,
4476
4478
  label: o,
4477
- options: f,
4479
+ options: u,
4478
4480
  onChange: c,
4479
- onClick: u,
4481
+ onClick: f,
4480
4482
  onEnter: l,
4481
- onBlur: d,
4482
- onOptionsRequest: p,
4483
+ onBlur: p,
4484
+ onOptionsRequest: d,
4483
4485
  isEditable: m
4484
4486
  }) => {
4485
4487
  const g = {
@@ -4489,8 +4491,8 @@ const Ge = (r, e, t) => ({
4489
4491
  icon: s,
4490
4492
  fun: a
4491
4493
  }, x = {
4492
- onBlur: d,
4493
- onOptionsRequest: p,
4494
+ onBlur: p,
4495
+ onOptionsRequest: d,
4494
4496
  fun: a,
4495
4497
  icon: s,
4496
4498
  label: o,
@@ -4515,18 +4517,18 @@ const Ge = (r, e, t) => ({
4515
4517
  bindValue: t.k,
4516
4518
  optionalDisplayValue: r,
4517
4519
  onClick: () => {
4518
- u == null || u(w(g, t.k));
4520
+ f == null || f(w(g, t.k));
4519
4521
  }
4520
4522
  };
4521
- return /* @__PURE__ */ v.jsx(De, { ...S });
4523
+ return /* @__PURE__ */ v.jsx(je, { ...S });
4522
4524
  }
4523
4525
  case ne.BUTTON_LIST: {
4524
4526
  const S = {
4525
4527
  ...x,
4526
- options: f,
4528
+ options: u,
4527
4529
  onClick: (b, L) => {
4528
4530
  const C = { ...g, fun: L };
4529
- u == null || u(w(C, b));
4531
+ f == null || f(w(C, b));
4530
4532
  }
4531
4533
  };
4532
4534
  return /* @__PURE__ */ v.jsx(dn, { ...S });
@@ -4579,7 +4581,7 @@ const Ge = (r, e, t) => ({
4579
4581
  placeholderIcon: i,
4580
4582
  isInteractable: !!x.fun,
4581
4583
  onClick: () => {
4582
- u == null || u(w(g, t.k));
4584
+ f == null || f(w(g, t.k));
4583
4585
  }
4584
4586
  };
4585
4587
  return /* @__PURE__ */ v.jsx(ue, { ...S });
@@ -4650,23 +4652,23 @@ const Ge = (r, e, t) => ({
4650
4652
  for (let n = 0; n < r.length; n += e)
4651
4653
  t.push(r.slice(n, n + e));
4652
4654
  return t;
4653
- }, jr = (r, e) => r.map((t) => {
4655
+ }, Dr = (r, e) => r.map((t) => {
4654
4656
  var a, i;
4655
4657
  if ((a = t.sections) != null && a.length)
4656
4658
  return {
4657
4659
  ...t,
4658
- sections: jr(t.sections, e),
4660
+ sections: Dr(t.sections, e),
4659
4661
  content: t.content
4660
4662
  };
4661
4663
  let n = t.sections, s = t.content;
4662
4664
  return (i = t.content) != null && i.length && t.columns && +t.columns > 1 && (n = ns(
4663
- t.content.filter((f) => !!e[f.id]),
4665
+ t.content.filter((u) => !!e[u.id]),
4664
4666
  +t.columns
4665
4667
  ).map(
4666
- (f, c) => ({
4668
+ (u, c) => ({
4667
4669
  ...t,
4668
4670
  id: `${t.id}-${c}`,
4669
- content: f,
4671
+ content: u,
4670
4672
  gridCols: t.columns,
4671
4673
  horizontal: !0
4672
4674
  })
@@ -4709,38 +4711,38 @@ const Ge = (r, e, t) => ({
4709
4711
  ]
4710
4712
  }
4711
4713
  }) => {
4712
- const t = "--smp-grid-template-cols", n = "--smp-grid-template-rows", s = jr(e.sections || [], r), a = (l) => l == null ? void 0 : l.reduce((d, p) => {
4714
+ const t = "--smp-grid-template-cols", n = "--smp-grid-template-rows", s = Dr(e.sections || [], r), a = (l) => l == null ? void 0 : l.reduce((p, d) => {
4713
4715
  var E, O;
4714
4716
  let m = "", g = {}, x = {}, w = "";
4715
- return (E = p.sections) != null && E.length ? (m = pe["smp-layout-section-grid"], g = a(p.sections), p.gridCols == null && (w = `${pe[p.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"]}`, (p.horizontal || pr(p.sections)) && (x = dr(
4716
- p.sections,
4717
- p.horizontal ? t : n
4718
- )))) : (O = p.content) != null && O.length && (p.gridCols !== void 0 && p.gridCols > 0 ? (m = pe["smp-layout-section-grid"], w = `${pe["smp-grid-template-cols"]}`, x = {
4719
- [t]: `repeat(${p.gridCols}, 1fr)`
4717
+ return (E = d.sections) != null && E.length ? (m = pe["smp-layout-section-grid"], g = a(d.sections), d.gridCols == null && (w = `${pe[d.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"]}`, (d.horizontal || pr(d.sections)) && (x = dr(
4718
+ d.sections,
4719
+ d.horizontal ? t : n
4720
+ )))) : (O = d.content) != null && O.length && (d.gridCols !== void 0 && d.gridCols > 0 ? (m = pe["smp-layout-section-grid"], w = `${pe["smp-grid-template-cols"]}`, x = {
4721
+ [t]: `repeat(${d.gridCols}, 1fr)`
4720
4722
  }) : m = pe["smp-layout-section-flex"]), {
4721
- ...d,
4723
+ ...p,
4722
4724
  ...g,
4723
- [p.id]: {
4724
- classes: `${m} ${pe[p.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${w} ${p.justify ? `smp-justifyContent-${p.justify}` : ""} ${p.align ? `smp-alignItems-${p.align}` : ""}`,
4725
+ [d.id]: {
4726
+ classes: `${m} ${pe[d.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${w} ${d.justify ? `smp-justifyContent-${d.justify}` : ""} ${d.align ? `smp-alignItems-${d.align}` : ""}`,
4725
4727
  styles: x
4726
4728
  }
4727
4729
  };
4728
4730
  }, {}), i = a(s), o = {
4729
4731
  container: `${pe["smp-layout"]} ${e.horizontal ? pe["smp-layout-horizontal"] : pe["smp-layout-vertical"]}`,
4730
4732
  sections: i
4731
- }, f = e.horizontal || pr(e.sections || []) ? dr(
4733
+ }, u = e.horizontal || pr(e.sections || []) ? dr(
4732
4734
  s,
4733
4735
  e.horizontal ? t : n
4734
4736
  ) : {}, c = (l) => {
4735
- var p;
4736
- const d = /* @__PURE__ */ v.jsx(
4737
+ var d;
4738
+ const p = /* @__PURE__ */ v.jsx(
4737
4739
  "div",
4738
4740
  {
4739
4741
  "smp-id": "section-" + l.id,
4740
4742
  className: o.sections[l.id].classes,
4741
4743
  style: o.sections[l.id].styles,
4742
- children: (p = l.sections) != null && p.length ? l.sections.map((m) => c(m)) : l.content.map(
4743
- (m) => u(
4744
+ children: (d = l.sections) != null && d.length ? l.sections.map((m) => c(m)) : l.content.map(
4745
+ (m) => f(
4744
4746
  m,
4745
4747
  r[m.id],
4746
4748
  l.justify,
@@ -4758,43 +4760,43 @@ const Ge = (r, e, t) => ({
4758
4760
  children: /* @__PURE__ */ v.jsx($e, { label: l.title })
4759
4761
  }
4760
4762
  ),
4761
- d
4762
- ] }) : d;
4763
- }, u = (l, d, p, m) => {
4763
+ p
4764
+ ] }) : p;
4765
+ }, f = (l, p, d, m) => {
4764
4766
  const g = l.colSpan !== void 0 ? l.colSpan > 0 ? l.colSpan : l.colStart !== void 0 && l.colStart < 1 ? 1 : null : null, x = g !== null ? `span ${g}` : l.colStart, w = l.colEnd !== void 0 && l.colEnd > 0 ? l.colEnd : "", E = {
4765
4767
  gridColumnStart: x,
4766
4768
  gridColumnEnd: w
4767
- }, O = `${pe["smp-layout-cell-container"]} ${p ? `smp-justifyContent-${p}` : ""} ${m ? `smp-alignItems-${m}` : ""}`;
4768
- return d ? /* @__PURE__ */ v.jsx(
4769
+ }, O = `${pe["smp-layout-cell-container"]} ${d ? `smp-justifyContent-${d}` : ""} ${m ? `smp-alignItems-${m}` : ""}`;
4770
+ return p ? /* @__PURE__ */ v.jsx(
4769
4771
  "div",
4770
4772
  {
4771
4773
  className: O,
4772
4774
  style: { ...E },
4773
4775
  "smp-id": l.id,
4774
- children: /* @__PURE__ */ v.jsx(Ot, { ...d })
4776
+ children: /* @__PURE__ */ v.jsx(Ot, { ...p })
4775
4777
  },
4776
4778
  l.id
4777
4779
  ) : /* @__PURE__ */ v.jsx(v.Fragment, {});
4778
4780
  };
4779
- return /* @__PURE__ */ v.jsx("div", { className: o.container, style: f, "smp-id": "layout", children: s == null ? void 0 : s.map((l) => c(l)) });
4780
- }, ws = ({ data: r, onClick: e, onEnter: t }) => {
4781
+ return /* @__PURE__ */ v.jsx("div", { className: o.container, style: u, "smp-id": "layout", children: s == null ? void 0 : s.map((l) => c(l)) });
4782
+ }, Os = ({ data: r, onClick: e, onEnter: t }) => {
4781
4783
  var i, o;
4782
4784
  const [n, s] = Z(), a = ye(
4783
- (f) => {
4784
- var u, l;
4785
- if (!((u = f.rows) != null && u.length) || !((l = f.columns) != null && l.length))
4785
+ (u) => {
4786
+ var f, l;
4787
+ if (!((f = u.rows) != null && f.length) || !((l = u.columns) != null && l.length))
4786
4788
  return {};
4787
- const c = f.rows[0];
4788
- return f.columns.filter((d) => d.visible).reduce((d, p) => {
4789
- const m = c.cells[p.name], g = {
4789
+ const c = u.rows[0];
4790
+ return u.columns.filter((p) => p.visible).reduce((p, d) => {
4791
+ const m = c.cells[d.name], g = {
4790
4792
  ...m,
4791
4793
  onChange: (x) => {
4792
4794
  s((w) => w && {
4793
4795
  ...w,
4794
- [p.name]: {
4795
- ...w[p.name],
4796
+ [d.name]: {
4797
+ ...w[d.name],
4796
4798
  obj: {
4797
- ...w[p.name].obj,
4799
+ ...w[d.name].obj,
4798
4800
  k: x.obj.k
4799
4801
  }
4800
4802
  }
@@ -4810,8 +4812,8 @@ const Ge = (r, e, t) => ({
4810
4812
  }
4811
4813
  };
4812
4814
  return {
4813
- ...d,
4814
- [p.name]: g
4815
+ ...p,
4816
+ [d.name]: g
4815
4817
  };
4816
4818
  }, {});
4817
4819
  },
@@ -4831,7 +4833,7 @@ const Ge = (r, e, t) => ({
4831
4833
  icon: t.icon
4832
4834
  };
4833
4835
  }) : [];
4834
- }, ce = (r) => r == null ? !1 : typeof r == "string" ? r.toLocaleLowerCase() == "yes" : r, Es = ({
4836
+ }, ce = (r) => r == null ? !1 : typeof r == "string" ? r.toLocaleLowerCase() == "yes" : r, Rs = ({
4835
4837
  data: r,
4836
4838
  logo: e,
4837
4839
  open: t,
@@ -4840,23 +4842,23 @@ const Ge = (r, e, t) => ({
4840
4842
  onClick: a,
4841
4843
  onEnter: i,
4842
4844
  onClose: o,
4843
- loadOptions: f
4845
+ loadOptions: u
4844
4846
  }) => {
4845
4847
  var O, S;
4846
- const [c, u] = Z(), [l, d] = Z(t ?? !0), p = ve(null), m = s.trim() ? s : "100vh", g = ye(
4848
+ const [c, f] = Z(), [l, p] = Z(t ?? !0), d = ve(null), m = s.trim() ? s : "100vh", g = ye(
4847
4849
  (b) => {
4848
4850
  var C, Y;
4849
4851
  if (!((C = b == null ? void 0 : b.rows) != null && C.length) || !((Y = b == null ? void 0 : b.columns) != null && Y.length))
4850
4852
  return {};
4851
4853
  const L = b.rows[0];
4852
- return b.columns.filter((j) => j.visible ?? !0).reduce((j, P) => {
4853
- const D = L.cells[P.name];
4854
- if (!D || !l && ce(n) && D.shape !== ne.BUTTON && D.shape !== ne.BUTTON_LIST)
4855
- return j;
4854
+ return b.columns.filter((D) => D.visible ?? !0).reduce((D, P) => {
4855
+ const j = L.cells[P.name];
4856
+ if (!j || !l && ce(n) && j.shape !== ne.BUTTON && j.shape !== ne.BUTTON_LIST)
4857
+ return D;
4856
4858
  const k = {
4857
- ...D,
4859
+ ...j,
4858
4860
  onChange: (U) => {
4859
- u((H) => {
4861
+ f((H) => {
4860
4862
  const z = { ...H };
4861
4863
  return z != null && z[P.name] && (z[P.name].obj.k = U.obj.k), z;
4862
4864
  });
@@ -4868,42 +4870,42 @@ const Ge = (r, e, t) => ({
4868
4870
  i && i(U);
4869
4871
  }
4870
4872
  };
4871
- return f && D.shape == ne.BUTTON_LIST && (k.onOptionsRequest = (U, H) => f(U, H).then(
4873
+ return u && j.shape == ne.BUTTON_LIST && (k.onOptionsRequest = (U, H) => u(U, H).then(
4872
4874
  (z) => ss(z)
4873
4875
  )), !l && ce(n) && (k.data = {
4874
4876
  ...k.data,
4875
4877
  showText: !1,
4876
4878
  justify: "center"
4877
4879
  }), {
4878
- ...j,
4880
+ ...D,
4879
4881
  [P.name]: k
4880
4882
  };
4881
4883
  }, {});
4882
4884
  },
4883
- [l, n, a, i, f]
4885
+ [l, n, a, i, u]
4884
4886
  ), x = ye(() => {
4885
4887
  o == null || o();
4886
4888
  }, [o]), w = () => {
4887
- ce(n) ? d((b) => !b) : (d(!1), o == null || o());
4889
+ ce(n) ? p((b) => !b) : (p(!1), o == null || o());
4888
4890
  };
4889
4891
  if (oe(() => {
4890
- u(g(r));
4892
+ f(g(r));
4891
4893
  }, [r]), oe(() => {
4892
- if (!p.current)
4894
+ if (!d.current)
4893
4895
  return;
4894
4896
  if (!ce(n)) {
4895
- u(g(r));
4897
+ f(g(r));
4896
4898
  return;
4897
4899
  }
4898
- const b = getComputedStyle(p.current).getPropertyValue(
4900
+ const b = getComputedStyle(d.current).getPropertyValue(
4899
4901
  "--smp-drawer-slide-transition"
4900
4902
  );
4901
4903
  let L = Number(b);
4902
4904
  b.endsWith("ms") ? L = parseFloat(b) : b.endsWith("s") && (L = parseFloat(b) * 1e3), setTimeout(() => {
4903
- u(g(r));
4905
+ f(g(r));
4904
4906
  }, L / 2);
4905
4907
  }, [l, n]), oe(() => {
4906
- t !== void 0 && !ce(n) && d(t);
4908
+ t !== void 0 && !ce(n) && p(t);
4907
4909
  }, [n, t]), !((O = r == null ? void 0 : r.rows) != null && O.length) || !((S = r.columns) != null && S.length))
4908
4910
  return null;
4909
4911
  const E = {
@@ -4928,7 +4930,7 @@ const Ge = (r, e, t) => ({
4928
4930
  /* @__PURE__ */ v.jsx(
4929
4931
  "aside",
4930
4932
  {
4931
- ref: p,
4933
+ ref: d,
4932
4934
  className: E.drawer,
4933
4935
  style: { height: m },
4934
4936
  "aria-label": "Drawer",
@@ -4962,7 +4964,7 @@ const Ge = (r, e, t) => ({
4962
4964
  }
4963
4965
  )
4964
4966
  ] });
4965
- }, Ts = ({
4967
+ }, Ds = ({
4966
4968
  ColumnsNumber: r = 1,
4967
4969
  data: e = {},
4968
4970
  ForceText: t,
@@ -4971,12 +4973,12 @@ const Ge = (r, e, t) => ({
4971
4973
  Fillspace: a,
4972
4974
  FontSize: i,
4973
4975
  Horizontal: o,
4974
- ForceIcon: f,
4976
+ ForceIcon: u,
4975
4977
  IconColName: c,
4976
- IconColor: u = "var(--smp-dashList-color-base)",
4978
+ IconColor: f = "var(--smp-dashList-color-base)",
4977
4979
  NumberFormat: l,
4978
- ForceUM: d,
4979
- UmColName: p,
4980
+ ForceUM: p,
4981
+ UmColName: d,
4980
4982
  UmColor: m = "var(--smp-dashList-color-base)",
4981
4983
  ForceValue: g,
4982
4984
  ValueColName: x,
@@ -4984,9 +4986,9 @@ const Ge = (r, e, t) => ({
4984
4986
  SelectLayout: E = "1",
4985
4987
  onClick: O
4986
4988
  }) => {
4987
- const S = "N/A", b = (e == null ? void 0 : e.columns) || [], L = (e == null ? void 0 : e.rows) || [], C = L.length > 0, Y = "--smp-dashList-color", j = "smp-layout", P = "descr", D = "icon", k = "um", U = "value", H = i || "1em", z = "18px", K = "--smp-dashList-columns", J = "--smp-dashList-fontSize", W = {
4989
+ const S = "N/A", b = (e == null ? void 0 : e.columns) || [], L = (e == null ? void 0 : e.rows) || [], C = L.length > 0, Y = "--smp-dashList-color", D = "smp-layout", P = "descr", j = "icon", k = "um", U = "value", H = i || "1em", z = "18px", K = "--smp-dashList-columns", J = "--smp-dashList-fontSize", W = {
4988
4990
  dash: (V = "1") => {
4989
- const X = h(V), te = X, re = y(X, P), de = y(X, D), be = y(X, k), he = y(X, U);
4991
+ const X = h(V), te = X, re = y(X, P), de = y(X, j), be = y(X, k), he = y(X, U);
4990
4992
  return {
4991
4993
  container: te,
4992
4994
  descr: re,
@@ -4997,7 +4999,7 @@ const Ge = (r, e, t) => ({
4997
4999
  },
4998
5000
  dashList: `smp-dash-list ${ce(a) ? "smp-dash-list-fill-space" : ""}
4999
5001
  ${ce(o) ? "smp-dash-list-horizontal" : ""}`
5000
- }, { format: _ } = nt(), h = (V) => `${j}-${V}`, y = (V, X) => `${V}__${X}`, T = (V) => `${Y}-${V}`, $ = (V) => {
5002
+ }, { format: _ } = nt(), h = (V) => `${D}-${V}`, y = (V, X) => `${V}__${X}`, T = (V) => `${Y}-${V}`, $ = (V) => {
5001
5003
  const X = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
5002
5004
  if (X.test(V)) {
5003
5005
  const re = V.match(X) || [];
@@ -5025,8 +5027,8 @@ const Ge = (r, e, t) => ({
5025
5027
  };
5026
5028
  return {
5027
5029
  descr: t || X(n) || te(2) || "",
5028
- icon: f || X(c) || te(3) || "",
5029
- um: d || X(p) || te(1) || "",
5030
+ icon: u || X(c) || te(3) || "",
5031
+ um: p || X(d) || te(1) || "",
5030
5032
  value: g || X(x) || te(0) || ""
5031
5033
  };
5032
5034
  }, F = (V) => {
@@ -5041,12 +5043,12 @@ const Ge = (r, e, t) => ({
5041
5043
  icon: (te) => /* @__PURE__ */ v.jsx("div", { className: X.icon, children: /* @__PURE__ */ v.jsx(
5042
5044
  ue,
5043
5045
  {
5044
- color: u,
5046
+ color: f,
5045
5047
  height: z,
5046
5048
  icon: te,
5047
5049
  width: z
5048
5050
  }
5049
- ) }, `${V}-${D}`),
5051
+ ) }, `${V}-${j}`),
5050
5052
  um: (te) => /* @__PURE__ */ v.jsx("div", { className: X.um, children: te }, `${V}-${k}`),
5051
5053
  value: (te) => /* @__PURE__ */ v.jsx("div", { className: X.value, children: te }, `${V}-${U}`)
5052
5054
  };
@@ -5108,7 +5110,7 @@ function ds(r) {
5108
5110
  function ps(r) {
5109
5111
  return JSON.stringify(r).split("").reduce((e, t) => (e << 5) - e + t.charCodeAt(0) | 0, 0).toString();
5110
5112
  }
5111
- const Dr = ({
5113
+ const jr = ({
5112
5114
  row: r,
5113
5115
  columnWidths: e = {},
5114
5116
  level: t = 0,
@@ -5116,26 +5118,26 @@ const Dr = ({
5116
5118
  offsetTop: s
5117
5119
  }) => {
5118
5120
  var E;
5119
- const [a, i] = Z(!1), o = Ke(r) && !!((E = r.children) != null && E.length), f = r.cells && Object.keys(r.cells).length > 0, c = o, u = t * 20, l = () => {
5121
+ const [a, i] = Z(!1), o = Ke(r) && !!((E = r.children) != null && E.length), u = r.cells && Object.keys(r.cells).length > 0, c = o, f = t * 20, l = () => {
5120
5122
  o && i(!a);
5121
- }, d = {
5123
+ }, p = {
5122
5124
  content: `${we.rowContent} ${o ? we.clickable : ""}`,
5123
5125
  toggle: `${we.toggle}`,
5124
5126
  indent: `${we.indent}`,
5125
5127
  cell: `${we.cell}`
5126
- }, p = (O) => /* @__PURE__ */ v.jsx(Ot, { ...O }), m = () => /* @__PURE__ */ v.jsx("span", { className: d.toggle, children: c ? a ? "▶" : "▼" : " " }), g = () => /* @__PURE__ */ v.jsx(
5128
+ }, d = (O) => /* @__PURE__ */ v.jsx(Ot, { ...O }), m = () => /* @__PURE__ */ v.jsx("span", { className: p.toggle, children: c ? a ? "▶" : "▼" : " " }), g = () => /* @__PURE__ */ v.jsx(
5127
5129
  "span",
5128
5130
  {
5129
- className: d.indent,
5130
- style: { width: `${u}px` },
5131
+ className: p.indent,
5132
+ style: { width: `${f}px` },
5131
5133
  "aria-hidden": "true"
5132
5134
  }
5133
5135
  ), x = () => {
5134
- const O = ds(r) ? "" : r.decode || (f ? "" : "Untitled"), S = s ?? n * t;
5136
+ const O = ds(r) ? "" : r.decode || (u ? "" : "Untitled"), S = s ?? n * t;
5135
5137
  return /* @__PURE__ */ v.jsxs(
5136
5138
  "tr",
5137
5139
  {
5138
- className: d.content,
5140
+ className: p.content,
5139
5141
  onClick: l,
5140
5142
  role: o ? "button" : "row",
5141
5143
  "aria-expanded": o ? !a : void 0,
@@ -5162,13 +5164,13 @@ const Dr = ({
5162
5164
  r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([b, L]) => /* @__PURE__ */ v.jsx(
5163
5165
  "td",
5164
5166
  {
5165
- className: d.cell,
5167
+ className: p.cell,
5166
5168
  style: {
5167
5169
  width: e[b],
5168
5170
  minWidth: e[b],
5169
5171
  height: `${n}px`
5170
5172
  },
5171
- children: p(L)
5173
+ children: d(L)
5172
5174
  },
5173
5175
  ps(L) || b
5174
5176
  ))
@@ -5177,7 +5179,7 @@ const Dr = ({
5177
5179
  );
5178
5180
  }, w = () => {
5179
5181
  var O;
5180
- return a || !o ? null : /* @__PURE__ */ v.jsx(v.Fragment, { children: Ke(r) && ((O = r.children) == null ? void 0 : O.map((S, b) => /* @__PURE__ */ v.jsx(Dr, { row: S, level: t + 1 }, `child-${b}`))) });
5182
+ return a || !o ? null : /* @__PURE__ */ v.jsx(v.Fragment, { children: Ke(r) && ((O = r.children) == null ? void 0 : O.map((S, b) => /* @__PURE__ */ v.jsx(jr, { row: S, level: t + 1 }, `child-${b}`))) });
5181
5183
  };
5182
5184
  return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
5183
5185
  x(),
@@ -5245,42 +5247,42 @@ function ys(r, e, t, n) {
5245
5247
  const s = [];
5246
5248
  let a = 0;
5247
5249
  return i(r, 0, []), { flatRows: s, offset: a };
5248
- function i(l, d, p) {
5249
- if (d >= e.length) {
5250
- u(l);
5250
+ function i(l, p, d) {
5251
+ if (p >= e.length) {
5252
+ f(l);
5251
5253
  return;
5252
5254
  }
5253
- const m = e[d].column, g = o(l, m);
5255
+ const m = e[p].column, g = o(l, m);
5254
5256
  for (const [x, w] of g) {
5255
- const E = [...p, x], O = f(E, d), S = n.has(O);
5256
- s.push(c(x, O, d, S)), a += t, S && i(w, d + 1, E);
5257
+ const E = [...d, x], O = u(E, p), S = n.has(O);
5258
+ s.push(c(x, O, p, S)), a += t, S && i(w, p + 1, E);
5257
5259
  }
5258
5260
  }
5259
- function o(l, d) {
5261
+ function o(l, p) {
5260
5262
  var m;
5261
- const p = /* @__PURE__ */ new Map();
5263
+ const d = /* @__PURE__ */ new Map();
5262
5264
  for (const g of l) {
5263
- const x = ((m = g.cells[d]) == null ? void 0 : m.decode) ?? "N/D";
5264
- p.has(x) || p.set(x, []), p.get(x).push(g);
5265
+ const x = ((m = g.cells[p]) == null ? void 0 : m.decode) ?? "N/D";
5266
+ d.has(x) || d.set(x, []), d.get(x).push(g);
5265
5267
  }
5266
- return p;
5268
+ return d;
5267
5269
  }
5268
- function f(l, d) {
5269
- return `group-${l.join("-")}-${d}`;
5270
+ function u(l, p) {
5271
+ return `group-${l.join("-")}-${p}`;
5270
5272
  }
5271
- function c(l, d, p, m) {
5273
+ function c(l, p, d, m) {
5272
5274
  return {
5273
5275
  isGroup: !0,
5274
5276
  value: l,
5275
5277
  cells: {},
5276
- rowId: d,
5277
- level: p,
5278
+ rowId: p,
5279
+ level: d,
5278
5280
  isExpanded: m
5279
5281
  };
5280
5282
  }
5281
- function u(l) {
5282
- for (const d of l)
5283
- s.push(d), a += t;
5283
+ function f(l) {
5284
+ for (const p of l)
5285
+ s.push(p), a += t;
5284
5286
  }
5285
5287
  }
5286
5288
  const vs = ({
@@ -5317,7 +5319,7 @@ const vs = ({
5317
5319
  ]
5318
5320
  }
5319
5321
  );
5320
- }, Os = ({
5322
+ }, js = ({
5321
5323
  data: r,
5322
5324
  lineHeight: e = 28,
5323
5325
  TableHeight: t = 400,
@@ -5326,15 +5328,15 @@ const vs = ({
5326
5328
  showGroupBar: a = !0
5327
5329
  }) => {
5328
5330
  var Y;
5329
- const [i, o] = Z(r), [f, c] = Z(n || []), [u, l] = Z(/* @__PURE__ */ new Set()), d = i && i.columns ? Object.fromEntries(
5330
- i.columns.map((j) => [j.name, 120])
5331
+ const [i, o] = Z(r), [u, c] = Z(n || []), [f, l] = Z(/* @__PURE__ */ new Set()), p = i && i.columns ? Object.fromEntries(
5332
+ i.columns.map((D) => [D.name, 120])
5331
5333
  // ADD col.width to manage existing col width
5332
- ) : {}, [p, m] = Z(d), g = ve(null);
5334
+ ) : {}, [d, m] = Z(p), g = ve(null);
5333
5335
  oe(() => {
5334
- var D;
5336
+ var j;
5335
5337
  if (!i || !i.columns || i.columns.length)
5336
5338
  return;
5337
- const j = ((D = g.current) == null ? void 0 : D.clientWidth) ?? 1e3;
5339
+ const D = ((j = g.current) == null ? void 0 : j.clientWidth) ?? 1e3;
5338
5340
  let P = {};
5339
5341
  switch (s) {
5340
5342
  case "fixed":
@@ -5343,7 +5345,7 @@ const vs = ({
5343
5345
  );
5344
5346
  break;
5345
5347
  case "fit-grid": {
5346
- const k = i.columns.filter((H) => H.visible), U = Math.floor(j / k.length);
5348
+ const k = i.columns.filter((H) => H.visible), U = Math.floor(D / k.length);
5347
5349
  P = Object.fromEntries(
5348
5350
  k.map((H) => [H.name, U])
5349
5351
  );
@@ -5370,36 +5372,36 @@ const vs = ({
5370
5372
  }
5371
5373
  m(P);
5372
5374
  }, [s, r, i]), oe(() => {
5373
- if (f != null && f.length && r.rows) {
5374
- const { flatRows: j } = ys(
5375
+ if (u != null && u.length && r.rows) {
5376
+ const { flatRows: D } = ys(
5375
5377
  r.rows,
5376
- f,
5378
+ u,
5377
5379
  e,
5378
- u
5380
+ f
5379
5381
  );
5380
- o({ ...r, rows: j });
5382
+ o({ ...r, rows: D });
5381
5383
  } else
5382
5384
  o(r);
5383
- }, [r, f, u, e]);
5384
- const x = (j) => {
5385
- c(gs(j, f));
5386
- }, w = (j) => {
5387
- j.preventDefault();
5388
- const P = j.dataTransfer.getData("text/plain");
5389
- if (!P || f.some((U) => U.column === P))
5385
+ }, [r, u, f, e]);
5386
+ const x = (D) => {
5387
+ c(gs(D, u));
5388
+ }, w = (D) => {
5389
+ D.preventDefault();
5390
+ const P = D.dataTransfer.getData("text/plain");
5391
+ if (!P || u.some((U) => U.column === P))
5390
5392
  return;
5391
- const k = [...f, { column: P, visible: !0 }];
5393
+ const k = [...u, { column: P, visible: !0 }];
5392
5394
  c(k);
5393
- }, E = (j) => {
5394
- j.preventDefault();
5395
+ }, E = (D) => {
5396
+ D.preventDefault();
5395
5397
  }, { virtualItems: O, containerProps: S, innerProps: b } = xr({
5396
5398
  items: (i == null ? void 0 : i.rows) || [],
5397
5399
  itemHeight: e,
5398
5400
  containerHeight: t,
5399
5401
  overscan: 5
5400
- }), L = (j, P) => {
5401
- const D = j.clientX, k = p[P], U = (z) => {
5402
- const K = z.clientX - D, J = Math.max(50, k + K);
5402
+ }), L = (D, P) => {
5403
+ const j = D.clientX, k = d[P], U = (z) => {
5404
+ const K = z.clientX - j, J = Math.max(50, k + K);
5403
5405
  m((W) => ({
5404
5406
  ...W,
5405
5407
  [P]: J
@@ -5424,80 +5426,80 @@ const vs = ({
5424
5426
  (n || a) && /* @__PURE__ */ v.jsx(
5425
5427
  vs,
5426
5428
  {
5427
- groups: f,
5429
+ groups: u,
5428
5430
  onChange: x,
5429
5431
  onDrop: w,
5430
5432
  onDragOver: E
5431
5433
  }
5432
5434
  ),
5433
5435
  /* @__PURE__ */ v.jsx("tr", { children: i.columns && ((Y = i.columns) == null ? void 0 : Y.map(
5434
- (j) => j.visible && /* @__PURE__ */ v.jsxs(
5436
+ (D) => D.visible && /* @__PURE__ */ v.jsxs(
5435
5437
  "th",
5436
5438
  {
5437
5439
  className: C.headerCell,
5438
5440
  draggable: !0,
5439
5441
  onDragStart: (P) => {
5440
- P.dataTransfer.setData("text/plain", j.name);
5442
+ P.dataTransfer.setData("text/plain", D.name);
5441
5443
  },
5442
5444
  style: {
5443
- width: p[j.name],
5444
- minWidth: p[j.name],
5445
- maxWidth: p[j.name]
5445
+ width: d[D.name],
5446
+ minWidth: d[D.name],
5447
+ maxWidth: d[D.name]
5446
5448
  },
5447
5449
  children: [
5448
5450
  /* @__PURE__ */ v.jsx(
5449
5451
  ke,
5450
5452
  {
5451
5453
  variant: "title",
5452
- bindValue: j.title
5454
+ bindValue: D.title
5453
5455
  }
5454
5456
  ),
5455
5457
  /* @__PURE__ */ v.jsx(
5456
5458
  "div",
5457
5459
  {
5458
5460
  className: C.resizer,
5459
- onMouseDown: (P) => L(P, j.name),
5461
+ onMouseDown: (P) => L(P, D.name),
5460
5462
  role: "region"
5461
5463
  }
5462
5464
  )
5463
5465
  ]
5464
5466
  },
5465
- j.name
5467
+ D.name
5466
5468
  )
5467
5469
  )) })
5468
5470
  ] }),
5469
5471
  /* @__PURE__ */ v.jsx("tbody", { ...b, children: O.map(
5470
- ({ item: j, index: P, offsetTop: D }) => j.isGroup ? /* @__PURE__ */ v.jsx(
5472
+ ({ item: D, index: P, offsetTop: j }) => D.isGroup ? /* @__PURE__ */ v.jsx(
5471
5473
  hs,
5472
5474
  {
5473
- label: j.value || "",
5475
+ label: D.value || "",
5474
5476
  rowHeight: e,
5475
- offsetTop: D,
5476
- level: j.level,
5477
+ offsetTop: j,
5478
+ level: D.level,
5477
5479
  onClick: () => {
5478
- const k = j.rowId;
5480
+ const k = D.rowId;
5479
5481
  k && l((U) => ms(U, k));
5480
5482
  },
5481
- isExpanded: j.isExpanded
5483
+ isExpanded: D.isExpanded
5482
5484
  },
5483
- j.rowId || `group-${P}`
5485
+ D.rowId || `group-${P}`
5484
5486
  ) : /* @__PURE__ */ v.jsx(
5485
- Dr,
5487
+ jr,
5486
5488
  {
5487
- row: j,
5488
- columnWidths: p,
5489
+ row: D,
5490
+ columnWidths: d,
5489
5491
  rowHeight: e,
5490
- offsetTop: D,
5492
+ offsetTop: j,
5491
5493
  isGroup: !1
5492
5494
  },
5493
- j.rowId || `row-${P}`
5495
+ D.rowId || `row-${P}`
5494
5496
  )
5495
5497
  ) }),
5496
5498
  /* @__PURE__ */ v.jsx("tfoot", { children: /* @__PURE__ */ v.jsx("span", { children: "Tfooter here" }) })
5497
5499
  ] })
5498
5500
  }
5499
5501
  );
5500
- }, Rs = ({
5502
+ }, $s = ({
5501
5503
  data: r,
5502
5504
  Type: e,
5503
5505
  ShowSubmit: t = !1,
@@ -5506,10 +5508,10 @@ const vs = ({
5506
5508
  Label: a,
5507
5509
  LabelPosition: i = "Left",
5508
5510
  onBlur: o,
5509
- onClick: f,
5511
+ onClick: u,
5510
5512
  onOptionsRequest: c
5511
5513
  }) => {
5512
- const [u, l] = Z();
5514
+ const [f, l] = Z();
5513
5515
  oe(() => {
5514
5516
  l(() => {
5515
5517
  if (!r)
@@ -5518,13 +5520,13 @@ const vs = ({
5518
5520
  return e && (g.shape = e), g.shape == null && (g.shape = ne.TEXT_FIELD), s && (g.obj = Nr(s)), g;
5519
5521
  });
5520
5522
  }, [r, s, e]);
5521
- const p = {
5523
+ const d = {
5522
5524
  container: `smp-field-container ${ce(t) ? `smp-field-position-${n}` : ""}`
5523
5525
  }, m = () => {
5524
- ce(t) || o == null || o(u);
5526
+ ce(t) || o == null || o(f);
5525
5527
  };
5526
- if (u)
5527
- return /* @__PURE__ */ v.jsxs("div", { className: p.container, children: [
5528
+ if (f)
5529
+ return /* @__PURE__ */ v.jsxs("div", { className: d.container, children: [
5528
5530
  /* @__PURE__ */ v.jsx(
5529
5531
  "div",
5530
5532
  {
@@ -5537,7 +5539,7 @@ const vs = ({
5537
5539
  children: /* @__PURE__ */ v.jsx(
5538
5540
  Ot,
5539
5541
  {
5540
- ...u,
5542
+ ...f,
5541
5543
  onChange: l,
5542
5544
  onOptionsRequest: c,
5543
5545
  fun: r == null ? void 0 : r.fun,
@@ -5550,15 +5552,26 @@ const vs = ({
5550
5552
  ),
5551
5553
  ce(t) && //TODO: translation
5552
5554
  /* @__PURE__ */ v.jsx(
5553
- De,
5555
+ je,
5554
5556
  {
5555
5557
  optionalDisplayValue: "Confirm",
5556
- onClick: () => f == null ? void 0 : f(u),
5558
+ onClick: () => u == null ? void 0 : u(f),
5557
5559
  bindValue: "Confirm"
5558
5560
  }
5559
5561
  )
5560
5562
  ] });
5561
- }, js = ({
5563
+ }, bs = (r) => (r == null ? void 0 : r.type) === "SmeupDataTree", xs = (r) => (r == null ? void 0 : r.type) === "SmeupDataTable", Ss = (r) => bs(r) ? r.children ? r.children.map(
5564
+ (e) => ({
5565
+ id: e.obj.k,
5566
+ label: e.value ?? ""
5567
+ })
5568
+ ) : [] : xs(r) ? r.rows.map((e) => {
5569
+ const t = e.cells || e.cells, [n, s] = Object.keys(t);
5570
+ return {
5571
+ id: t[n].obj.k,
5572
+ label: t[s].value || t[s].obj.k
5573
+ };
5574
+ }) : [], Cs = ({
5562
5575
  data: r,
5563
5576
  readOnly: e = !1,
5564
5577
  hiddenSubmitButton: t = !1,
@@ -5567,19 +5580,19 @@ const vs = ({
5567
5580
  }) => {
5568
5581
  const [a, i] = Z({});
5569
5582
  oe(() => {
5570
- i(f(r));
5583
+ i(u(r));
5571
5584
  }, [r]);
5572
5585
  const o = () => {
5573
- const u = c();
5586
+ const f = c();
5574
5587
  s({
5575
- value: u
5588
+ value: f
5576
5589
  });
5577
- }, f = (u) => {
5578
- var d, p, m;
5579
- if (!((d = u.rows) != null && d.length) || !((p = u.columns) != null && p.length))
5590
+ }, u = (f) => {
5591
+ var p, d, m;
5592
+ if (!((p = f.rows) != null && p.length) || !((d = f.columns) != null && d.length))
5580
5593
  return {};
5581
- const l = (m = u.rows) == null ? void 0 : m[0];
5582
- return u.columns.filter((g) => g.visible ?? !0).reduce((g, x) => {
5594
+ const l = (m = f.rows) == null ? void 0 : m[0];
5595
+ return f.columns.filter((g) => g.visible ?? !0).reduce((g, x) => {
5583
5596
  const w = {
5584
5597
  ...l.cells[x.name],
5585
5598
  label: x.title,
@@ -5597,29 +5610,25 @@ const vs = ({
5597
5610
  }));
5598
5611
  }
5599
5612
  };
5600
- return w.fun && (w.shape == ne.AUTOCOMPLETE || w.shape == ne.MULTI_AUTOCOMPLETE || w.shape == ne.COMBOBOX) && (w.onOptionsRequest = (E, O) => n(E, O, r, x.name)), w.isEditable == null && (w.isEditable = !0), e && (w.isEditable = !1), w.isEditable && w.shape == null && (w.shape = ne.TEXT_FIELD), {
5613
+ return w.fun && (w.shape == ne.AUTOCOMPLETE || w.shape == ne.MULTI_AUTOCOMPLETE || w.shape == ne.COMBOBOX) && (w.onOptionsRequest = async (E, O) => Ss(
5614
+ await n(E, O, r, x.name)
5615
+ )), w.isEditable == null && (w.isEditable = !0), e && (w.isEditable = !1), w.isEditable && w.shape == null && (w.shape = ne.TEXT_FIELD), {
5601
5616
  ...g,
5602
5617
  [x.name]: w
5603
5618
  };
5604
5619
  }, {});
5605
- }, c = () => {
5606
- const u = {
5607
- columns: [...r.columns],
5608
- rows: [{ cells: {} }]
5609
- };
5610
- return Object.entries(a).forEach(([l, d]) => {
5611
- u.rows[0].cells[l] = {
5612
- obj: {
5613
- ...d.obj
5614
- },
5615
- decode: d.decode,
5616
- shape: d.shape
5617
- };
5618
- }), {
5619
- before: r,
5620
- after: u
5621
- };
5622
- };
5620
+ }, c = () => ({
5621
+ before: r,
5622
+ after: {
5623
+ type: "SmeupDataTable",
5624
+ columns: JSON.parse(JSON.stringify(r.columns)),
5625
+ rows: [
5626
+ {
5627
+ cells: JSON.parse(JSON.stringify(a))
5628
+ }
5629
+ ]
5630
+ }
5631
+ });
5623
5632
  return a && /* @__PURE__ */ v.jsxs(
5624
5633
  "div",
5625
5634
  {
@@ -5633,7 +5642,7 @@ const vs = ({
5633
5642
  children: [
5634
5643
  /* @__PURE__ */ v.jsx(Rt, { layout: r.rows[0].layout, cells: a }),
5635
5644
  !t && /* @__PURE__ */ v.jsx(
5636
- De,
5645
+ je,
5637
5646
  {
5638
5647
  onClick: o,
5639
5648
  bindValue: "submit",
@@ -5645,20 +5654,20 @@ const vs = ({
5645
5654
  );
5646
5655
  };
5647
5656
  export {
5648
- ws as AppBar,
5657
+ Os as AppBar,
5649
5658
  Er as Autocomplete,
5650
- De as Button,
5659
+ je as Button,
5651
5660
  dn as ButtonList,
5652
5661
  pn as Checkbox,
5653
5662
  mn as Combobox,
5654
- Ts as DashList,
5655
- Os as DataTableComponent,
5663
+ Ds as DashList,
5664
+ js as DataTableComponent,
5656
5665
  Jn as DatePicker,
5657
- Es as Drawer,
5658
- Rs as Field,
5666
+ Rs as Drawer,
5667
+ $s as Field,
5659
5668
  ue as Icon,
5660
- js as InputPanel,
5669
+ Cs as InputPanel,
5661
5670
  Zn as Password,
5662
5671
  Ce as Textfield,
5663
- Ss as configurePaths
5672
+ Ts as configurePaths
5664
5673
  };