@sme.up/ketchup2 2.0.0-SNAPSHOT-20250616143804 → 2.0.0-SNAPSHOT-20250616153523

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.
@@ -48,12 +48,12 @@ var Ae = {};
48
48
  var Dt;
49
49
  function _r() {
50
50
  return Dt || (Dt = 1, process.env.NODE_ENV !== "production" && function() {
51
- function r(p) {
52
- if (p == null) return null;
53
- if (typeof p == "function")
54
- return p.$$typeof === P ? null : p.displayName || p.name || null;
55
- if (typeof p == "string") return p;
56
- switch (p) {
51
+ function r(h) {
52
+ if (h == null) return null;
53
+ if (typeof h == "function")
54
+ return h.$$typeof === P ? null : h.displayName || h.name || null;
55
+ if (typeof h == "string") return h;
56
+ switch (h) {
57
57
  case g:
58
58
  return "Fragment";
59
59
  case w:
@@ -62,149 +62,149 @@ function _r() {
62
62
  return "StrictMode";
63
63
  case b:
64
64
  return "Suspense";
65
- case k:
65
+ case L:
66
66
  return "SuspenseList";
67
67
  case j:
68
68
  return "Activity";
69
69
  }
70
- if (typeof p == "object")
71
- switch (typeof p.tag == "number" && console.error(
70
+ if (typeof h == "object")
71
+ switch (typeof h.tag == "number" && console.error(
72
72
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
73
- ), p.$$typeof) {
73
+ ), h.$$typeof) {
74
74
  case m:
75
75
  return "Portal";
76
- case R:
77
- return (p.displayName || "Context") + ".Provider";
76
+ case O:
77
+ return (h.displayName || "Context") + ".Provider";
78
78
  case E:
79
- return (p._context.displayName || "Context") + ".Consumer";
79
+ return (h._context.displayName || "Context") + ".Consumer";
80
80
  case S:
81
- var y = p.render;
82
- return p = p.displayName, p || (p = y.displayName || y.name || "", p = p !== "" ? "ForwardRef(" + p + ")" : "ForwardRef"), p;
81
+ var y = h.render;
82
+ return h = h.displayName, h || (h = y.displayName || y.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
83
83
  case C:
84
- return y = p.displayName || null, y !== null ? y : r(p.type) || "Memo";
84
+ return y = h.displayName || null, y !== null ? y : r(h.type) || "Memo";
85
85
  case Y:
86
- y = p._payload, p = p._init;
86
+ y = h._payload, h = h._init;
87
87
  try {
88
- return r(p(y));
88
+ return r(h(y));
89
89
  } catch {
90
90
  }
91
91
  }
92
92
  return null;
93
93
  }
94
- function e(p) {
95
- return "" + p;
94
+ function e(h) {
95
+ return "" + h;
96
96
  }
97
- function t(p) {
97
+ function t(h) {
98
98
  try {
99
- e(p);
99
+ e(h);
100
100
  var y = !1;
101
101
  } catch {
102
102
  y = !0;
103
103
  }
104
104
  if (y) {
105
105
  y = console;
106
- var T = y.error, $ = typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object";
106
+ var T = y.error, $ = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
107
107
  return T.call(
108
108
  y,
109
109
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
110
110
  $
111
- ), e(p);
111
+ ), e(h);
112
112
  }
113
113
  }
114
- function n(p) {
115
- if (p === g) return "<>";
116
- if (typeof p == "object" && p !== null && p.$$typeof === Y)
114
+ function n(h) {
115
+ if (h === g) return "<>";
116
+ if (typeof h == "object" && h !== null && h.$$typeof === Y)
117
117
  return "<...>";
118
118
  try {
119
- var y = r(p);
119
+ var y = r(h);
120
120
  return y ? "<" + y + ">" : "<...>";
121
121
  } catch {
122
122
  return "<...>";
123
123
  }
124
124
  }
125
125
  function s() {
126
- var p = D.A;
127
- return p === null ? null : p.getOwner();
126
+ var h = D.A;
127
+ return h === null ? null : h.getOwner();
128
128
  }
129
129
  function a() {
130
130
  return Error("react-stack-top-frame");
131
131
  }
132
- function i(p) {
133
- if (_.call(p, "key")) {
134
- var y = Object.getOwnPropertyDescriptor(p, "key").get;
132
+ function i(h) {
133
+ if (k.call(h, "key")) {
134
+ var y = Object.getOwnPropertyDescriptor(h, "key").get;
135
135
  if (y && y.isReactWarning) return !1;
136
136
  }
137
- return p.key !== void 0;
137
+ return h.key !== void 0;
138
138
  }
139
- function o(p, y) {
139
+ function o(h, y) {
140
140
  function T() {
141
- q || (q = !0, console.error(
141
+ z || (z = !0, console.error(
142
142
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
143
143
  y
144
144
  ));
145
145
  }
146
- T.isReactWarning = !0, Object.defineProperty(p, "key", {
146
+ T.isReactWarning = !0, Object.defineProperty(h, "key", {
147
147
  get: T,
148
148
  configurable: !0
149
149
  });
150
150
  }
151
- function c() {
152
- var p = r(this.type);
153
- return K[p] || (K[p] = !0, console.error(
151
+ function f() {
152
+ var h = r(this.type);
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."
155
- )), p = this.props.ref, p !== void 0 ? p : null;
155
+ )), h = this.props.ref, h !== void 0 ? h : null;
156
156
  }
157
- function l(p, y, T, $, O, A, M, F) {
158
- return T = A.ref, p = {
159
- $$typeof: h,
160
- type: p,
157
+ function c(h, y, T, $, R, A, M, F) {
158
+ return T = A.ref, h = {
159
+ $$typeof: p,
160
+ type: h,
161
161
  key: y,
162
162
  props: A,
163
- _owner: O
164
- }, (T !== void 0 ? T : null) !== null ? Object.defineProperty(p, "ref", {
163
+ _owner: R
164
+ }, (T !== void 0 ? T : null) !== null ? Object.defineProperty(h, "ref", {
165
165
  enumerable: !1,
166
- get: c
167
- }) : Object.defineProperty(p, "ref", { enumerable: !1, value: null }), p._store = {}, Object.defineProperty(p._store, "validated", {
166
+ get: f
167
+ }) : Object.defineProperty(h, "ref", { enumerable: !1, value: null }), h._store = {}, Object.defineProperty(h._store, "validated", {
168
168
  configurable: !1,
169
169
  enumerable: !1,
170
170
  writable: !0,
171
171
  value: 0
172
- }), Object.defineProperty(p, "_debugInfo", {
172
+ }), Object.defineProperty(h, "_debugInfo", {
173
173
  configurable: !1,
174
174
  enumerable: !1,
175
175
  writable: !0,
176
176
  value: null
177
- }), Object.defineProperty(p, "_debugStack", {
177
+ }), Object.defineProperty(h, "_debugStack", {
178
178
  configurable: !1,
179
179
  enumerable: !1,
180
180
  writable: !0,
181
181
  value: M
182
- }), Object.defineProperty(p, "_debugTask", {
182
+ }), Object.defineProperty(h, "_debugTask", {
183
183
  configurable: !1,
184
184
  enumerable: !1,
185
185
  writable: !0,
186
186
  value: F
187
- }), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
187
+ }), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
188
188
  }
189
- function u(p, y, T, $, O, A, M, F) {
189
+ function u(h, y, T, $, R, A, M, F) {
190
190
  var N = y.children;
191
191
  if (N !== void 0)
192
192
  if ($)
193
193
  if (U(N)) {
194
194
  for ($ = 0; $ < N.length; $++)
195
- f(N[$]);
195
+ l(N[$]);
196
196
  Object.freeze && Object.freeze(N);
197
197
  } else
198
198
  console.error(
199
199
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
200
200
  );
201
- else f(N);
202
- if (_.call(y, "key")) {
203
- N = r(p);
204
- var z = Object.keys(y).filter(function(se) {
201
+ else l(N);
202
+ if (k.call(y, "key")) {
203
+ N = r(h);
204
+ var q = Object.keys(y).filter(function(se) {
205
205
  return se !== "key";
206
206
  });
207
- $ = 0 < z.length ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}", L[N + $] || (z = 0 < z.length ? "{" + z.join(": ..., ") + ": ...}" : "{}", console.error(
207
+ $ = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", _[N + $] || (q = 0 < q.length ? "{" + q.join(": ..., ") + ": ...}" : "{}", console.error(
208
208
  `A props object containing a "key" prop is being spread into JSX:
209
209
  let props = %s;
210
210
  <%s {...props} />
@@ -213,9 +213,9 @@ React keys must be passed directly to JSX without using spread:
213
213
  <%s key={someKey} {...props} />`,
214
214
  $,
215
215
  N,
216
- z,
216
+ q,
217
217
  N
218
- ), L[N + $] = !0);
218
+ ), _[N + $] = !0);
219
219
  }
220
220
  if (N = null, T !== void 0 && (t(T), N = "" + T), i(y) && (t(y.key), N = "" + y.key), "key" in y) {
221
221
  T = {};
@@ -224,65 +224,65 @@ React keys must be passed directly to JSX without using spread:
224
224
  } else T = y;
225
225
  return N && o(
226
226
  T,
227
- typeof p == "function" ? p.displayName || p.name || "Unknown" : p
228
- ), l(
229
- p,
227
+ typeof h == "function" ? h.displayName || h.name || "Unknown" : h
228
+ ), c(
229
+ h,
230
230
  N,
231
231
  A,
232
- O,
232
+ R,
233
233
  s(),
234
234
  T,
235
235
  M,
236
236
  F
237
237
  );
238
238
  }
239
- function f(p) {
240
- typeof p == "object" && p !== null && p.$$typeof === h && p._store && (p._store.validated = 1);
239
+ function l(h) {
240
+ typeof h == "object" && h !== null && h.$$typeof === p && h._store && (h._store.validated = 1);
241
241
  }
242
- var d = hr, h = 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"), R = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), k = 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, _ = Object.prototype.hasOwnProperty, U = Array.isArray, H = console.createTask ? console.createTask : function() {
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() {
243
243
  return null;
244
244
  };
245
245
  d = {
246
- "react-stack-bottom-frame": function(p) {
247
- return p();
246
+ "react-stack-bottom-frame": function(h) {
247
+ return h();
248
248
  }
249
249
  };
250
- var q, K = {}, J = d["react-stack-bottom-frame"].bind(
250
+ var z, K = {}, J = d["react-stack-bottom-frame"].bind(
251
251
  d,
252
252
  a
253
- )(), W = H(n(a)), L = {};
254
- Ae.Fragment = g, Ae.jsx = function(p, y, T, $, O) {
253
+ )(), W = H(n(a)), _ = {};
254
+ Ae.Fragment = g, Ae.jsx = function(h, y, T, $, R) {
255
255
  var A = 1e4 > D.recentlyCreatedOwnerStacks++;
256
256
  return u(
257
- p,
257
+ h,
258
258
  y,
259
259
  T,
260
260
  !1,
261
261
  $,
262
- O,
262
+ R,
263
263
  A ? Error("react-stack-top-frame") : J,
264
- A ? H(n(p)) : W
264
+ A ? H(n(h)) : W
265
265
  );
266
- }, Ae.jsxs = function(p, y, T, $, O) {
266
+ }, Ae.jsxs = function(h, y, T, $, R) {
267
267
  var A = 1e4 > D.recentlyCreatedOwnerStacks++;
268
268
  return u(
269
- p,
269
+ h,
270
270
  y,
271
271
  T,
272
272
  !0,
273
273
  $,
274
- O,
274
+ R,
275
275
  A ? Error("react-stack-top-frame") : J,
276
- A ? H(n(p)) : W
276
+ A ? H(n(h)) : W
277
277
  );
278
278
  };
279
279
  }()), Ae;
280
280
  }
281
281
  var $t;
282
- function Ir() {
282
+ function kr() {
283
283
  return $t || ($t = 1, process.env.NODE_ENV === "production" ? Fe.exports = Lr() : Fe.exports = _r()), Fe.exports;
284
284
  }
285
- var v = Ir();
285
+ var v = kr();
286
286
  const ne = {
287
287
  AUTOCOMPLETE: "ACP",
288
288
  BUTTON_LIST: "BTL",
@@ -299,7 +299,7 @@ const ne = {
299
299
  SWITCH: "SWT",
300
300
  TEXT_FIELD: "ITX",
301
301
  PASSWORD: "PWD"
302
- }, kr = (r) => r.t == "D8", Nr = (r) => {
302
+ }, Ir = (r) => r.t == "D8", Nr = (r) => {
303
303
  if (r) {
304
304
  const e = r.split(";");
305
305
  if (e.length == 3)
@@ -315,14 +315,14 @@ const ne = {
315
315
  k: ""
316
316
  };
317
317
  };
318
- class qe {
318
+ class ze {
319
319
  constructor(e, t) {
320
320
  Se(this, "class");
321
321
  Se(this, "value");
322
322
  this.class = e, this.value = t;
323
323
  }
324
324
  static fromDataObj(e) {
325
- return new qe(e, e.k == "1" || e.k == "true");
325
+ return new ze(e, e.k == "1" || e.k == "true");
326
326
  }
327
327
  getValue() {
328
328
  return this.value;
@@ -347,25 +347,25 @@ function Mr(r, e) {
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, c = 0, l = "";
350
+ let o = 0, f = 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)), c = parseInt(n.substring(2, 4)), i === 0 ? (t.setMonth(o - 1), t.setDate(c)) : a === 0 && (t.setMonth(c - 1), t.setDate(o)), Ve(t) ? t : r;
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;
358
358
  case 5:
359
359
  case 6: {
360
- o = parseInt(n.substring(0, 2)), c = parseInt(n.substring(2, 4)), Number(n.substring(4)) > 50 ? l = "19" + n.substring(4) : l = "20" + n.substring(4);
361
- let u = 0, f = 0;
362
- return i === 0 ? (u = c, f = o - 1, t.setFullYear(parseInt(l), f, u)) : a === 0 && (u = o, f = c - 1, t.setFullYear(parseInt(l), f, u)), ht(o, f, parseInt(l)) && Ve(t) ? t : r;
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;
363
363
  }
364
364
  case 7:
365
365
  case 8: {
366
- o = parseInt(n.substring(0, 2)), c = parseInt(n.substring(2, 4)), l = n.substring(4);
367
- let u = 0, f = 0;
368
- return i === 0 ? (u = c, f = o - 1, t.setFullYear(parseInt(l), f, u)) : a === 0 && (u = o, f = c - 1, t.setFullYear(parseInt(l), f, u)), ht(u, f, parseInt(l)) && Ve(t) ? t : r;
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;
369
369
  }
370
370
  }
371
371
  return r;
@@ -417,7 +417,7 @@ function Yr(r) {
417
417
  const e = r.getFullYear(), t = String(r.getMonth() + 1).padStart(2, "0"), n = String(r.getDate()).padStart(2, "0");
418
418
  return isNaN(e) || isNaN(Number(t)) || isNaN(Number(n)) ? r.toString() : `${e}-${t}-${n}`;
419
419
  }
420
- class ze {
420
+ class qe {
421
421
  constructor(e, t) {
422
422
  Se(this, "class");
423
423
  Se(this, "date");
@@ -426,7 +426,7 @@ class ze {
426
426
  static fromDataObj(e) {
427
427
  const t = Ct.get(`${e.t}${e.p}`);
428
428
  if (t)
429
- return new ze(e, t.legacyToIso(e.k));
429
+ return new qe(e, t.legacyToIso(e.k));
430
430
  throw new Error(`Date creation from ${e.t}${e.p} not implemented yet`);
431
431
  }
432
432
  getLegacyValue() {
@@ -468,19 +468,19 @@ 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, c = n.current;
472
- if (!o || !c) return;
473
- const { top: l, left: u, width: f, height: d } = o.getBoundingClientRect();
474
- a(f);
475
- const h = c.offsetHeight, m = c.offsetWidth;
476
- if (m === 0 || h === 0) {
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();
474
+ a(l);
475
+ const p = f.offsetHeight, m = f.offsetWidth;
476
+ if (m === 0 || p === 0) {
477
477
  requestAnimationFrame(i);
478
478
  return;
479
479
  }
480
- let g = l + window.scrollY, x = u + window.scrollX;
480
+ let g = c + window.scrollY, x = u + window.scrollX;
481
481
  switch (r) {
482
482
  case "top":
483
- g -= h;
483
+ g -= p;
484
484
  break;
485
485
  case "bottom":
486
486
  g += d;
@@ -489,11 +489,11 @@ function St({
489
489
  x -= m;
490
490
  break;
491
491
  case "right":
492
- x += f;
492
+ x += l;
493
493
  break;
494
494
  }
495
495
  requestAnimationFrame(() => {
496
- c.style.transform = `translate(${x}px, ${g}px)`;
496
+ f.style.transform = `translate(${x}px, ${g}px)`;
497
497
  });
498
498
  }, [r]);
499
499
  return Ar(() => {
@@ -576,59 +576,59 @@ function Hr() {
576
576
  Pt = 1;
577
577
  var r = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, e = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/, t = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, n = /\\([\u000b\u0020-\u00ff])/g, s = /([\\"])/g, a = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
578
578
  Ye.format = i, Ye.parse = o;
579
- function i(f) {
580
- if (!f || typeof f != "object")
579
+ function i(l) {
580
+ if (!l || typeof l != "object")
581
581
  throw new TypeError("argument obj is required");
582
- var d = f.parameters, h = f.type;
583
- if (!h || !a.test(h))
582
+ var d = l.parameters, p = l.type;
583
+ if (!p || !a.test(p))
584
584
  throw new TypeError("invalid type");
585
- var m = h;
585
+ var m = p;
586
586
  if (d && typeof d == "object")
587
587
  for (var g, x = Object.keys(d).sort(), w = 0; w < x.length; w++) {
588
588
  if (g = x[w], !t.test(g))
589
589
  throw new TypeError("invalid parameter name");
590
- m += "; " + g + "=" + l(d[g]);
590
+ m += "; " + g + "=" + c(d[g]);
591
591
  }
592
592
  return m;
593
593
  }
594
- function o(f) {
595
- if (!f)
594
+ function o(l) {
595
+ if (!l)
596
596
  throw new TypeError("argument string is required");
597
- var d = typeof f == "object" ? c(f) : f;
597
+ var d = typeof l == "object" ? f(l) : l;
598
598
  if (typeof d != "string")
599
599
  throw new TypeError("argument string is required to be a string");
600
- var h = d.indexOf(";"), m = h !== -1 ? d.slice(0, h).trim() : d.trim();
600
+ var p = d.indexOf(";"), m = p !== -1 ? d.slice(0, p).trim() : d.trim();
601
601
  if (!a.test(m))
602
602
  throw new TypeError("invalid media type");
603
603
  var g = new u(m.toLowerCase());
604
- if (h !== -1) {
604
+ if (p !== -1) {
605
605
  var x, w, E;
606
- for (r.lastIndex = h; w = r.exec(d); ) {
607
- if (w.index !== h)
606
+ for (r.lastIndex = p; w = r.exec(d); ) {
607
+ if (w.index !== p)
608
608
  throw new TypeError("invalid parameter format");
609
- h += 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;
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;
610
610
  }
611
- if (h !== d.length)
611
+ if (p !== d.length)
612
612
  throw new TypeError("invalid parameter format");
613
613
  }
614
614
  return g;
615
615
  }
616
- function c(f) {
616
+ function f(l) {
617
617
  var d;
618
- if (typeof f.getHeader == "function" ? d = f.getHeader("content-type") : typeof f.headers == "object" && (d = f.headers && f.headers["content-type"]), typeof d != "string")
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")
619
619
  throw new TypeError("content-type header is missing from object");
620
620
  return d;
621
621
  }
622
- function l(f) {
623
- var d = String(f);
622
+ function c(l) {
623
+ var d = String(l);
624
624
  if (t.test(d))
625
625
  return d;
626
626
  if (d.length > 0 && !e.test(d))
627
627
  throw new TypeError("invalid parameter value");
628
628
  return '"' + d.replace(s, "\\$1") + '"';
629
629
  }
630
- function u(f) {
631
- this.parameters = /* @__PURE__ */ Object.create(null), this.type = f;
630
+ function u(l) {
631
+ this.parameters = /* @__PURE__ */ Object.create(null), this.type = l;
632
632
  }
633
633
  return Ye;
634
634
  }
@@ -669,8 +669,8 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
669
669
  for (var t = function(i, o) {
670
670
  setTimeout(function() {
671
671
  if (Array.isArray(xe[e])) {
672
- var c = Re.get(e), l = xe[e][i];
673
- c instanceof SVGSVGElement && l(null, gr(c)), c instanceof Error && l(c), i === xe[e].length - 1 && delete 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
674
  }
675
675
  }, 0);
676
676
  }, n = 0, s = xe[e].length; n < s; n++)
@@ -691,16 +691,16 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
691
691
  var o;
692
692
  a ? Re.set(e, a) : ((o = i.responseXML) === null || o === void 0 ? void 0 : o.documentElement) instanceof SVGSVGElement && Re.set(e, i.responseXML.documentElement), Gr(e);
693
693
  });
694
- }, qr = function(e, t, n) {
694
+ }, zr = function(e, t, n) {
695
695
  yr(e, t, function(s, a) {
696
696
  var i;
697
697
  s ? n(s) : ((i = a.responseXML) === null || i === void 0 ? void 0 : i.documentElement) instanceof SVGSVGElement && n(null, a.responseXML.documentElement);
698
698
  });
699
- }, zr = 0, Jr = function() {
700
- return ++zr;
701
- }, me = [], _t = {}, Xr = "http://www.w3.org/2000/svg", at = "http://www.w3.org/1999/xlink", It = function(e, t, n, s, a, i, o) {
702
- var c = e.getAttribute("data-src") || e.getAttribute("src");
703
- if (!c) {
699
+ }, qr = 0, Jr = function() {
700
+ return ++qr;
701
+ }, 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
704
  o(new Error("Invalid data-src or src attribute"));
705
705
  return;
706
706
  }
@@ -709,31 +709,31 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
709
709
  return;
710
710
  }
711
711
  me.push(e), e.setAttribute("src", "");
712
- var l = s ? Kr : qr;
713
- l(c, a, function(u, f) {
714
- if (!f) {
712
+ var c = s ? Kr : zr;
713
+ c(f, a, function(u, l) {
714
+ if (!l) {
715
715
  me.splice(me.indexOf(e), 1), e = null, o(u);
716
716
  return;
717
717
  }
718
718
  var d = e.getAttribute("id");
719
- d && f.setAttribute("id", d);
720
- var h = e.getAttribute("title");
721
- h && f.setAttribute("title", h);
719
+ d && l.setAttribute("id", d);
720
+ var p = e.getAttribute("title");
721
+ p && l.setAttribute("title", p);
722
722
  var m = e.getAttribute("width");
723
- m && f.setAttribute("width", m);
723
+ m && l.setAttribute("width", m);
724
724
  var g = e.getAttribute("height");
725
- g && f.setAttribute("height", g);
726
- var x = Array.from(new Set(st(st(st([], (f.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
727
- f.setAttribute("class", x);
725
+ g && l.setAttribute("height", g);
726
+ 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
+ l.setAttribute("class", x);
728
728
  var w = e.getAttribute("style");
729
- w && f.setAttribute("style", w), f.setAttribute("data-src", c);
729
+ w && l.setAttribute("style", w), l.setAttribute("data-src", f);
730
730
  var E = [].filter.call(e.attributes, function(W) {
731
731
  return /^data-\w[\w-]*$/.test(W.name);
732
732
  });
733
733
  if (Array.prototype.forEach.call(E, function(W) {
734
- W.name && W.value && f.setAttribute(W.name, W.value);
734
+ W.name && W.value && l.setAttribute(W.name, W.value);
735
735
  }), n) {
736
- var R = {
736
+ var O = {
737
737
  clipPath: ["clip-path"],
738
738
  "color-profile": ["color-profile"],
739
739
  cursor: ["cursor"],
@@ -744,59 +744,59 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
744
744
  path: [],
745
745
  pattern: ["fill", "stroke"],
746
746
  radialGradient: ["fill", "stroke"]
747
- }, S, b, k, C, Y;
748
- Object.keys(R).forEach(function(W) {
749
- S = W, k = R[W], b = f.querySelectorAll(S + "[id]");
750
- for (var L = function($, O) {
747
+ }, S, b, L, C, Y;
748
+ Object.keys(O).forEach(function(W) {
749
+ S = W, L = O[W], b = l.querySelectorAll(S + "[id]");
750
+ for (var _ = function($, R) {
751
751
  C = b[$].id, Y = C + "-" + Jr();
752
752
  var A;
753
- Array.prototype.forEach.call(k, function(V) {
754
- A = f.querySelectorAll("[" + V + '*="' + C + '"]');
753
+ Array.prototype.forEach.call(L, function(V) {
754
+ A = l.querySelectorAll("[" + V + '*="' + C + '"]');
755
755
  for (var X = 0, te = A.length; X < te; X++) {
756
756
  var re = A[X].getAttribute(V);
757
757
  re && !re.match(new RegExp('url\\("?#' + C + '"?\\)')) || A[X].setAttribute(V, "url(#" + Y + ")");
758
758
  }
759
759
  });
760
- for (var M = f.querySelectorAll("[*|href]"), F = [], N = 0, z = M.length; N < z; N++) {
760
+ for (var M = l.querySelectorAll("[*|href]"), F = [], N = 0, q = M.length; N < q; N++) {
761
761
  var B = M[N].getAttributeNS(at, "href");
762
762
  B && B.toString() === "#" + b[$].id && F.push(M[N]);
763
763
  }
764
764
  for (var se = 0, I = F.length; se < I; se++)
765
765
  F[se].setAttributeNS(at, "href", "#" + Y);
766
766
  b[$].id = Y;
767
- }, p = 0, y = b.length; p < y; p++)
768
- L(p);
767
+ }, h = 0, y = b.length; h < y; h++)
768
+ _(h);
769
769
  });
770
770
  }
771
- f.removeAttribute("xmlns:a");
772
- for (var j = f.querySelectorAll("script"), P = [], D, _, U = 0, H = j.length; U < H; U++)
773
- _ = j[U].getAttribute("type"), (!_ || _ === "application/ecmascript" || _ === "application/javascript" || _ === "text/javascript") && (D = j[U].innerText || j[U].textContent, D && P.push(D), f.removeChild(j[U]));
774
- if (P.length > 0 && (t === "always" || t === "once" && !_t[c])) {
775
- for (var q = 0, K = P.length; q < K; q++)
776
- new Function(P[q])(window);
777
- _t[c] = !0;
771
+ 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])) {
775
+ for (var z = 0, K = P.length; z < K; z++)
776
+ new Function(P[z])(window);
777
+ _t[f] = !0;
778
778
  }
779
- var J = f.querySelectorAll("style");
779
+ var J = l.querySelectorAll("style");
780
780
  if (Array.prototype.forEach.call(J, function(W) {
781
781
  W.textContent += "";
782
- }), f.setAttribute("xmlns", Xr), f.setAttribute("xmlns:xlink", at), i(f), !e.parentNode) {
782
+ }), l.setAttribute("xmlns", Xr), l.setAttribute("xmlns:xlink", at), i(l), !e.parentNode) {
783
783
  me.splice(me.indexOf(e), 1), e = null, o(new Error("Parent node is null"));
784
784
  return;
785
785
  }
786
- e.parentNode.replaceChild(f, e), me.splice(me.indexOf(e), 1), e = null, o(null, f);
786
+ e.parentNode.replaceChild(l, e), me.splice(me.indexOf(e), 1), e = null, o(null, l);
787
787
  });
788
788
  }, Zr = function(e, t) {
789
789
  var n = t === void 0 ? {} : t, s = n.afterAll, a = s === void 0 ? function() {
790
790
  } : s, i = n.afterEach, o = i === void 0 ? function() {
791
- } : i, c = n.beforeEach, l = c === void 0 ? function() {
792
- } : c, u = n.cacheRequests, f = u === void 0 ? !0 : u, d = n.evalScripts, h = d === void 0 ? "never" : d, m = n.httpRequestWithCredentials, g = m === void 0 ? !1 : m, x = n.renumerateIRIElements, w = x === void 0 ? !0 : x;
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
793
  if (e && "length" in e)
794
- for (var E = 0, R = 0, S = e.length; R < S; R++)
795
- It(e[R], h, w, f, g, l, function(b, k) {
796
- o(b, k), e && "length" in e && e.length === ++E && a(E);
794
+ for (var E = 0, O = 0, S = e.length; O < S; O++)
795
+ kt(e[O], p, w, l, g, c, function(b, L) {
796
+ o(b, L), e && "length" in e && e.length === ++E && a(E);
797
797
  });
798
- else e ? It(e, h, w, f, g, l, function(b, k) {
799
- o(b, k), a(1), e = null;
798
+ else e ? kt(e, p, w, l, g, c, function(b, L) {
799
+ o(b, L), a(1), e = null;
800
800
  }) : a(0);
801
801
  }, Ue = { exports: {} }, We = { exports: {} }, Q = {};
802
802
  /** @license React v16.13.1
@@ -807,71 +807,71 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
807
807
  * This source code is licensed under the MIT license found in the
808
808
  * LICENSE file in the root directory of this source tree.
809
809
  */
810
- var kt;
810
+ var It;
811
811
  function Qr() {
812
- if (kt) return Q;
813
- kt = 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, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, h = 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
- function R(b) {
812
+ if (It) return Q;
813
+ 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;
815
+ function O(b) {
816
816
  if (typeof b == "object" && b !== null) {
817
- var k = b.$$typeof;
818
- switch (k) {
817
+ var L = b.$$typeof;
818
+ switch (L) {
819
819
  case e:
820
820
  switch (b = b.type, b) {
821
+ case f:
821
822
  case c:
822
- case l:
823
823
  case n:
824
824
  case a:
825
825
  case s:
826
- case f:
826
+ case l:
827
827
  return b;
828
828
  default:
829
829
  switch (b = b && b.$$typeof, b) {
830
830
  case o:
831
831
  case u:
832
832
  case m:
833
- case h:
833
+ case p:
834
834
  case i:
835
835
  return b;
836
836
  default:
837
- return k;
837
+ return L;
838
838
  }
839
839
  }
840
840
  case t:
841
- return k;
841
+ return L;
842
842
  }
843
843
  }
844
844
  }
845
845
  function S(b) {
846
- return R(b) === l;
846
+ return O(b) === c;
847
847
  }
848
- return Q.AsyncMode = c, Q.ConcurrentMode = l, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = u, Q.Fragment = n, Q.Lazy = m, Q.Memo = h, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = f, Q.isAsyncMode = function(b) {
849
- return S(b) || R(b) === c;
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
850
  }, Q.isConcurrentMode = S, Q.isContextConsumer = function(b) {
851
- return R(b) === o;
851
+ return O(b) === o;
852
852
  }, Q.isContextProvider = function(b) {
853
- return R(b) === i;
853
+ return O(b) === i;
854
854
  }, Q.isElement = function(b) {
855
855
  return typeof b == "object" && b !== null && b.$$typeof === e;
856
856
  }, Q.isForwardRef = function(b) {
857
- return R(b) === u;
857
+ return O(b) === u;
858
858
  }, Q.isFragment = function(b) {
859
- return R(b) === n;
859
+ return O(b) === n;
860
860
  }, Q.isLazy = function(b) {
861
- return R(b) === m;
861
+ return O(b) === m;
862
862
  }, Q.isMemo = function(b) {
863
- return R(b) === h;
863
+ return O(b) === p;
864
864
  }, Q.isPortal = function(b) {
865
- return R(b) === t;
865
+ return O(b) === t;
866
866
  }, Q.isProfiler = function(b) {
867
- return R(b) === a;
867
+ return O(b) === a;
868
868
  }, Q.isStrictMode = function(b) {
869
- return R(b) === s;
869
+ return O(b) === s;
870
870
  }, Q.isSuspense = function(b) {
871
- return R(b) === f;
871
+ return O(b) === l;
872
872
  }, Q.isValidElementType = function(b) {
873
- return typeof b == "string" || typeof b == "function" || b === n || b === l || b === a || b === s || b === f || b === d || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === h || b.$$typeof === i || b.$$typeof === o || b.$$typeof === u || b.$$typeof === x || b.$$typeof === w || b.$$typeof === E || b.$$typeof === g);
874
- }, Q.typeOf = R, Q;
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);
874
+ }, Q.typeOf = O, Q;
875
875
  }
876
876
  var ee = {};
877
877
  /** @license React v16.13.1
@@ -885,10 +885,10 @@ var ee = {};
885
885
  var Nt;
886
886
  function en() {
887
887
  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, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, h = 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
- function R(I) {
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;
889
+ function O(I) {
890
890
  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 === l || I === a || I === s || I === f || I === d || typeof I == "object" && I !== null && (I.$$typeof === m || I.$$typeof === h || I.$$typeof === i || I.$$typeof === o || I.$$typeof === u || I.$$typeof === x || I.$$typeof === w || I.$$typeof === E || I.$$typeof === g);
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);
892
892
  }
893
893
  function S(I) {
894
894
  if (typeof I == "object" && I !== null) {
@@ -897,12 +897,12 @@ function en() {
897
897
  case e:
898
898
  var X = I.type;
899
899
  switch (X) {
900
+ case f:
900
901
  case c:
901
- case l:
902
902
  case n:
903
903
  case a:
904
904
  case s:
905
- case f:
905
+ case l:
906
906
  return X;
907
907
  default:
908
908
  var te = X && X.$$typeof;
@@ -910,7 +910,7 @@ function en() {
910
910
  case o:
911
911
  case u:
912
912
  case m:
913
- case h:
913
+ case p:
914
914
  case i:
915
915
  return te;
916
916
  default:
@@ -922,12 +922,12 @@ function en() {
922
922
  }
923
923
  }
924
924
  }
925
- var b = c, k = l, C = o, Y = i, j = e, P = u, D = n, _ = m, U = h, H = t, q = a, K = s, J = f, W = !1;
926
- function L(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.")), p(I) || S(I) === c;
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;
926
+ 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;
928
928
  }
929
- function p(I) {
930
- return S(I) === l;
929
+ function h(I) {
930
+ return S(I) === c;
931
931
  }
932
932
  function y(I) {
933
933
  return S(I) === o;
@@ -938,7 +938,7 @@ function en() {
938
938
  function $(I) {
939
939
  return typeof I == "object" && I !== null && I.$$typeof === e;
940
940
  }
941
- function O(I) {
941
+ function R(I) {
942
942
  return S(I) === u;
943
943
  }
944
944
  function A(I) {
@@ -948,21 +948,21 @@ function en() {
948
948
  return S(I) === m;
949
949
  }
950
950
  function F(I) {
951
- return S(I) === h;
951
+ return S(I) === p;
952
952
  }
953
953
  function N(I) {
954
954
  return S(I) === t;
955
955
  }
956
- function z(I) {
956
+ function q(I) {
957
957
  return S(I) === a;
958
958
  }
959
959
  function B(I) {
960
960
  return S(I) === s;
961
961
  }
962
962
  function se(I) {
963
- return S(I) === f;
963
+ return S(I) === l;
964
964
  }
965
- ee.AsyncMode = b, ee.ConcurrentMode = k, ee.ContextConsumer = C, ee.ContextProvider = Y, ee.Element = j, ee.ForwardRef = P, ee.Fragment = D, ee.Lazy = _, ee.Memo = U, ee.Portal = H, ee.Profiler = q, ee.StrictMode = K, ee.Suspense = J, ee.isAsyncMode = L, ee.isConcurrentMode = p, ee.isContextConsumer = y, ee.isContextProvider = T, ee.isElement = $, ee.isForwardRef = O, ee.isFragment = A, ee.isLazy = M, ee.isMemo = F, ee.isPortal = N, ee.isProfiler = z, ee.isStrictMode = B, ee.isSuspense = se, ee.isValidElementType = R, ee.typeOf = S;
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;
966
966
  }()), ee;
967
967
  }
968
968
  var Mt;
@@ -993,31 +993,31 @@ function tn() {
993
993
  return !1;
994
994
  for (var i = {}, o = 0; o < 10; o++)
995
995
  i["_" + String.fromCharCode(o)] = o;
996
- var c = Object.getOwnPropertyNames(i).map(function(u) {
996
+ var f = Object.getOwnPropertyNames(i).map(function(u) {
997
997
  return i[u];
998
998
  });
999
- if (c.join("") !== "0123456789")
999
+ if (f.join("") !== "0123456789")
1000
1000
  return !1;
1001
- var l = {};
1001
+ var c = {};
1002
1002
  return "abcdefghijklmnopqrst".split("").forEach(function(u) {
1003
- l[u] = u;
1004
- }), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
1003
+ c[u] = u;
1004
+ }), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
1005
1005
  } catch {
1006
1006
  return !1;
1007
1007
  }
1008
1008
  }
1009
1009
  return it = s() ? Object.assign : function(a, i) {
1010
- for (var o, c = n(a), l, u = 1; u < arguments.length; u++) {
1010
+ for (var o, f = n(a), c, u = 1; u < arguments.length; u++) {
1011
1011
  o = Object(arguments[u]);
1012
- for (var f in o)
1013
- e.call(o, f) && (c[f] = o[f]);
1012
+ for (var l in o)
1013
+ e.call(o, l) && (f[l] = o[l]);
1014
1014
  if (r) {
1015
- l = r(o);
1016
- for (var d = 0; d < l.length; d++)
1017
- t.call(o, l[d]) && (c[l[d]] = o[l[d]]);
1015
+ 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
1018
  }
1019
1019
  }
1020
- return c;
1020
+ return f;
1021
1021
  }, it;
1022
1022
  }
1023
1023
  var ot, Vt;
@@ -1048,29 +1048,29 @@ function rn() {
1048
1048
  }
1049
1049
  };
1050
1050
  }
1051
- function s(a, i, o, c, l) {
1051
+ function s(a, i, o, f, c) {
1052
1052
  if (process.env.NODE_ENV !== "production") {
1053
1053
  for (var u in a)
1054
1054
  if (n(a, u)) {
1055
- var f;
1055
+ var l;
1056
1056
  try {
1057
1057
  if (typeof a[u] != "function") {
1058
1058
  var d = Error(
1059
- (c || "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
+ (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`."
1060
1060
  );
1061
1061
  throw d.name = "Invariant Violation", d;
1062
1062
  }
1063
- f = a[u](i, u, c, o, null, e);
1063
+ l = a[u](i, u, f, o, null, e);
1064
1064
  } catch (m) {
1065
- f = m;
1065
+ l = m;
1066
1066
  }
1067
- if (f && !(f instanceof Error) && r(
1068
- (c || "React class") + ": type specification of " + o + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1069
- ), f instanceof Error && !(f.message in t)) {
1070
- t[f.message] = !0;
1071
- var h = l ? l() : "";
1067
+ 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)."
1069
+ ), l instanceof Error && !(l.message in t)) {
1070
+ t[l.message] = !0;
1071
+ var p = c ? c() : "";
1072
1072
  r(
1073
- "Failed " + o + " type: " + f.message + (h ?? "")
1073
+ "Failed " + o + " type: " + l.message + (p ?? "")
1074
1074
  );
1075
1075
  }
1076
1076
  }
@@ -1087,24 +1087,24 @@ function nn() {
1087
1087
  var r = vr(), e = tn(), t = /* @__PURE__ */ wt(), n = /* @__PURE__ */ br(), s = /* @__PURE__ */ rn(), a = function() {
1088
1088
  };
1089
1089
  process.env.NODE_ENV !== "production" && (a = function(o) {
1090
- var c = "Warning: " + o;
1091
- typeof console < "u" && console.error(c);
1090
+ var f = "Warning: " + o;
1091
+ typeof console < "u" && console.error(f);
1092
1092
  try {
1093
- throw new Error(c);
1093
+ throw new Error(f);
1094
1094
  } catch {
1095
1095
  }
1096
1096
  });
1097
1097
  function i() {
1098
1098
  return null;
1099
1099
  }
1100
- return ut = function(o, c) {
1101
- var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
1102
- function f(p) {
1103
- var y = p && (l && p[l] || p[u]);
1100
+ return ut = function(o, f) {
1101
+ var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
1102
+ function l(h) {
1103
+ var y = h && (c && h[c] || h[u]);
1104
1104
  if (typeof y == "function")
1105
1105
  return y;
1106
1106
  }
1107
- var d = "<<anonymous>>", h = {
1107
+ var d = "<<anonymous>>", p = {
1108
1108
  array: w("array"),
1109
1109
  bigint: w("bigint"),
1110
1110
  bool: w("boolean"),
@@ -1114,30 +1114,30 @@ function nn() {
1114
1114
  string: w("string"),
1115
1115
  symbol: w("symbol"),
1116
1116
  any: E(),
1117
- arrayOf: R,
1117
+ arrayOf: O,
1118
1118
  element: S(),
1119
1119
  elementType: b(),
1120
- instanceOf: k,
1120
+ instanceOf: L,
1121
1121
  node: P(),
1122
1122
  objectOf: Y,
1123
1123
  oneOf: C,
1124
1124
  oneOfType: j,
1125
- shape: _,
1125
+ shape: k,
1126
1126
  exact: U
1127
1127
  };
1128
- function m(p, y) {
1129
- return p === y ? p !== 0 || 1 / p === 1 / y : p !== p && y !== y;
1128
+ function m(h, y) {
1129
+ return h === y ? h !== 0 || 1 / h === 1 / y : h !== h && y !== y;
1130
1130
  }
1131
- function g(p, y) {
1132
- this.message = p, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
1131
+ function g(h, y) {
1132
+ this.message = h, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
1133
1133
  }
1134
1134
  g.prototype = Error.prototype;
1135
- function x(p) {
1135
+ function x(h) {
1136
1136
  if (process.env.NODE_ENV !== "production")
1137
1137
  var y = {}, T = 0;
1138
- function $(A, M, F, N, z, B, se) {
1138
+ function $(A, M, F, N, q, B, se) {
1139
1139
  if (N = N || d, B = B || F, se !== t) {
1140
- if (c) {
1140
+ if (f) {
1141
1141
  var I = new Error(
1142
1142
  "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
1143
  );
@@ -1150,19 +1150,19 @@ function nn() {
1150
1150
  ), y[V] = !0, T++);
1151
1151
  }
1152
1152
  }
1153
- return M[F] == null ? A ? M[F] === null ? new g("The " + z + " `" + B + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new g("The " + z + " `" + B + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : p(M, F, N, z, B);
1153
+ return M[F] == null ? A ? M[F] === null ? new g("The " + q + " `" + B + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new g("The " + q + " `" + B + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : h(M, F, N, q, B);
1154
1154
  }
1155
- var O = $.bind(null, !1);
1156
- return O.isRequired = $.bind(null, !0), O;
1155
+ var R = $.bind(null, !1);
1156
+ return R.isRequired = $.bind(null, !0), R;
1157
1157
  }
1158
- function w(p) {
1159
- function y(T, $, O, A, M, F) {
1160
- var N = T[$], z = K(N);
1161
- if (z !== p) {
1158
+ function w(h) {
1159
+ function y(T, $, R, A, M, F) {
1160
+ var N = T[$], q = K(N);
1161
+ if (q !== h) {
1162
1162
  var B = J(N);
1163
1163
  return new g(
1164
- "Invalid " + A + " `" + M + "` of type " + ("`" + B + "` supplied to `" + O + "`, expected ") + ("`" + p + "`."),
1165
- { expectedType: p }
1164
+ "Invalid " + A + " `" + M + "` of type " + ("`" + B + "` supplied to `" + R + "`, expected ") + ("`" + h + "`."),
1165
+ { expectedType: h }
1166
1166
  );
1167
1167
  }
1168
1168
  return null;
@@ -1172,17 +1172,17 @@ function nn() {
1172
1172
  function E() {
1173
1173
  return x(i);
1174
1174
  }
1175
- function R(p) {
1176
- function y(T, $, O, A, M) {
1177
- if (typeof p != "function")
1178
- return new g("Property `" + M + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
1175
+ function O(h) {
1176
+ function y(T, $, R, A, M) {
1177
+ if (typeof h != "function")
1178
+ return new g("Property `" + M + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
1179
1179
  var F = T[$];
1180
1180
  if (!Array.isArray(F)) {
1181
1181
  var N = K(F);
1182
- return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + O + "`, expected an array."));
1182
+ return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected an array."));
1183
1183
  }
1184
- for (var z = 0; z < F.length; z++) {
1185
- var B = p(F, z, O, A, M + "[" + z + "]", t);
1184
+ for (var q = 0; q < F.length; q++) {
1185
+ var B = h(F, q, R, A, M + "[" + q + "]", t);
1186
1186
  if (B instanceof Error)
1187
1187
  return B;
1188
1188
  }
@@ -1191,64 +1191,64 @@ function nn() {
1191
1191
  return x(y);
1192
1192
  }
1193
1193
  function S() {
1194
- function p(y, T, $, O, A) {
1194
+ function h(y, T, $, R, A) {
1195
1195
  var M = y[T];
1196
1196
  if (!o(M)) {
1197
1197
  var F = K(M);
1198
- return new g("Invalid " + O + " `" + A + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected a single ReactElement."));
1198
+ return new g("Invalid " + R + " `" + A + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected a single ReactElement."));
1199
1199
  }
1200
1200
  return null;
1201
1201
  }
1202
- return x(p);
1202
+ return x(h);
1203
1203
  }
1204
1204
  function b() {
1205
- function p(y, T, $, O, A) {
1205
+ function h(y, T, $, R, A) {
1206
1206
  var M = y[T];
1207
1207
  if (!r.isValidElementType(M)) {
1208
1208
  var F = K(M);
1209
- return new g("Invalid " + O + " `" + A + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected a single ReactElement type."));
1209
+ return new g("Invalid " + R + " `" + A + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected a single ReactElement type."));
1210
1210
  }
1211
1211
  return null;
1212
1212
  }
1213
- return x(p);
1213
+ return x(h);
1214
1214
  }
1215
- function k(p) {
1216
- function y(T, $, O, A, M) {
1217
- if (!(T[$] instanceof p)) {
1218
- var F = p.name || d, N = L(T[$]);
1219
- return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + O + "`, expected ") + ("instance of `" + F + "`."));
1215
+ function L(h) {
1216
+ function y(T, $, R, A, M) {
1217
+ if (!(T[$] instanceof h)) {
1218
+ var F = h.name || d, N = _(T[$]);
1219
+ return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected ") + ("instance of `" + F + "`."));
1220
1220
  }
1221
1221
  return null;
1222
1222
  }
1223
1223
  return x(y);
1224
1224
  }
1225
- function C(p) {
1226
- if (!Array.isArray(p))
1225
+ function C(h) {
1226
+ if (!Array.isArray(h))
1227
1227
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
1228
1228
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
1229
1229
  ) : a("Invalid argument supplied to oneOf, expected an array.")), i;
1230
- function y(T, $, O, A, M) {
1231
- for (var F = T[$], N = 0; N < p.length; N++)
1232
- if (m(F, p[N]))
1230
+ function y(T, $, R, A, M) {
1231
+ for (var F = T[$], N = 0; N < h.length; N++)
1232
+ if (m(F, h[N]))
1233
1233
  return null;
1234
- var z = JSON.stringify(p, function(se, I) {
1234
+ var q = JSON.stringify(h, function(se, I) {
1235
1235
  var V = J(I);
1236
1236
  return V === "symbol" ? String(I) : I;
1237
1237
  });
1238
- return new g("Invalid " + A + " `" + M + "` of value `" + String(F) + "` " + ("supplied to `" + O + "`, expected one of " + z + "."));
1238
+ return new g("Invalid " + A + " `" + M + "` of value `" + String(F) + "` " + ("supplied to `" + R + "`, expected one of " + q + "."));
1239
1239
  }
1240
1240
  return x(y);
1241
1241
  }
1242
- function Y(p) {
1243
- function y(T, $, O, A, M) {
1244
- if (typeof p != "function")
1245
- return new g("Property `" + M + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
1242
+ function Y(h) {
1243
+ function y(T, $, R, A, M) {
1244
+ if (typeof h != "function")
1245
+ return new g("Property `" + M + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
1246
1246
  var F = T[$], N = K(F);
1247
1247
  if (N !== "object")
1248
- return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + O + "`, expected an object."));
1249
- for (var z in F)
1250
- if (n(F, z)) {
1251
- var B = p(F, z, O, A, M + "." + z, t);
1248
+ return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected an object."));
1249
+ for (var q in F)
1250
+ if (n(F, q)) {
1251
+ var B = h(F, q, R, A, M + "." + q, t);
1252
1252
  if (B instanceof Error)
1253
1253
  return B;
1254
1254
  }
@@ -1256,49 +1256,49 @@ function nn() {
1256
1256
  }
1257
1257
  return x(y);
1258
1258
  }
1259
- function j(p) {
1260
- if (!Array.isArray(p))
1259
+ function j(h) {
1260
+ if (!Array.isArray(h))
1261
1261
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
1262
- for (var y = 0; y < p.length; y++) {
1263
- var T = p[y];
1262
+ for (var y = 0; y < h.length; y++) {
1263
+ var T = h[y];
1264
1264
  if (typeof T != "function")
1265
1265
  return a(
1266
1266
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + W(T) + " at index " + y + "."
1267
1267
  ), i;
1268
1268
  }
1269
- function $(O, A, M, F, N) {
1270
- for (var z = [], B = 0; B < p.length; B++) {
1271
- var se = p[B], I = se(O, A, M, F, N, t);
1269
+ function $(R, A, M, F, N) {
1270
+ for (var q = [], B = 0; B < h.length; B++) {
1271
+ var se = h[B], I = se(R, A, M, F, N, t);
1272
1272
  if (I == null)
1273
1273
  return null;
1274
- I.data && n(I.data, "expectedType") && z.push(I.data.expectedType);
1274
+ I.data && n(I.data, "expectedType") && q.push(I.data.expectedType);
1275
1275
  }
1276
- var V = z.length > 0 ? ", expected one of type [" + z.join(", ") + "]" : "";
1276
+ var V = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
1277
1277
  return new g("Invalid " + F + " `" + N + "` supplied to " + ("`" + M + "`" + V + "."));
1278
1278
  }
1279
1279
  return x($);
1280
1280
  }
1281
1281
  function P() {
1282
- function p(y, T, $, O, A) {
1283
- return H(y[T]) ? null : new g("Invalid " + O + " `" + A + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
1282
+ function h(y, T, $, R, A) {
1283
+ return H(y[T]) ? null : new g("Invalid " + R + " `" + A + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
1284
1284
  }
1285
- return x(p);
1285
+ return x(h);
1286
1286
  }
1287
- function D(p, y, T, $, O) {
1287
+ function D(h, y, T, $, R) {
1288
1288
  return new g(
1289
- (p || "React class") + ": " + y + " type `" + T + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
1289
+ (h || "React class") + ": " + y + " type `" + T + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
1290
1290
  );
1291
1291
  }
1292
- function _(p) {
1293
- function y(T, $, O, A, M) {
1292
+ function k(h) {
1293
+ function y(T, $, R, A, M) {
1294
1294
  var F = T[$], N = K(F);
1295
1295
  if (N !== "object")
1296
- return new g("Invalid " + A + " `" + M + "` of type `" + N + "` " + ("supplied to `" + O + "`, expected `object`."));
1297
- for (var z in p) {
1298
- var B = p[z];
1296
+ return new g("Invalid " + A + " `" + M + "` of type `" + N + "` " + ("supplied to `" + R + "`, expected `object`."));
1297
+ for (var q in h) {
1298
+ var B = h[q];
1299
1299
  if (typeof B != "function")
1300
- return D(O, A, M, z, J(B));
1301
- var se = B(F, z, O, A, M + "." + z, t);
1300
+ return D(R, A, M, q, J(B));
1301
+ var se = B(F, q, R, A, M + "." + q, t);
1302
1302
  if (se)
1303
1303
  return se;
1304
1304
  }
@@ -1306,22 +1306,22 @@ function nn() {
1306
1306
  }
1307
1307
  return x(y);
1308
1308
  }
1309
- function U(p) {
1310
- function y(T, $, O, A, M) {
1309
+ function U(h) {
1310
+ function y(T, $, R, A, M) {
1311
1311
  var F = T[$], N = K(F);
1312
1312
  if (N !== "object")
1313
- return new g("Invalid " + A + " `" + M + "` of type `" + N + "` " + ("supplied to `" + O + "`, expected `object`."));
1314
- var z = e({}, T[$], p);
1315
- for (var B in z) {
1316
- var se = p[B];
1317
- if (n(p, B) && typeof se != "function")
1318
- return D(O, A, M, B, J(se));
1313
+ return new g("Invalid " + A + " `" + M + "` of type `" + N + "` " + ("supplied to `" + R + "`, expected `object`."));
1314
+ var q = e({}, T[$], h);
1315
+ for (var B in q) {
1316
+ var se = h[B];
1317
+ if (n(h, B) && typeof se != "function")
1318
+ return D(R, A, M, B, J(se));
1319
1319
  if (!se)
1320
1320
  return new g(
1321
- "Invalid " + A + " `" + M + "` key `" + B + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(T[$], null, " ") + `
1322
- Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
1321
+ "Invalid " + A + " `" + M + "` key `" + B + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(T[$], null, " ") + `
1322
+ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
1323
1323
  );
1324
- var I = se(F, B, O, A, M + "." + B, t);
1324
+ var I = se(F, B, R, A, M + "." + B, t);
1325
1325
  if (I)
1326
1326
  return I;
1327
1327
  }
@@ -1329,30 +1329,30 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
1329
1329
  }
1330
1330
  return x(y);
1331
1331
  }
1332
- function H(p) {
1333
- switch (typeof p) {
1332
+ function H(h) {
1333
+ switch (typeof h) {
1334
1334
  case "number":
1335
1335
  case "string":
1336
1336
  case "undefined":
1337
1337
  return !0;
1338
1338
  case "boolean":
1339
- return !p;
1339
+ return !h;
1340
1340
  case "object":
1341
- if (Array.isArray(p))
1342
- return p.every(H);
1343
- if (p === null || o(p))
1341
+ if (Array.isArray(h))
1342
+ return h.every(H);
1343
+ if (h === null || o(h))
1344
1344
  return !0;
1345
- var y = f(p);
1345
+ var y = l(h);
1346
1346
  if (y) {
1347
- var T = y.call(p), $;
1348
- if (y !== p.entries) {
1347
+ var T = y.call(h), $;
1348
+ if (y !== h.entries) {
1349
1349
  for (; !($ = T.next()).done; )
1350
1350
  if (!H($.value))
1351
1351
  return !1;
1352
1352
  } else
1353
1353
  for (; !($ = T.next()).done; ) {
1354
- var O = $.value;
1355
- if (O && !H(O[1]))
1354
+ var R = $.value;
1355
+ if (R && !H(R[1]))
1356
1356
  return !1;
1357
1357
  }
1358
1358
  } else
@@ -1362,27 +1362,27 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
1362
1362
  return !1;
1363
1363
  }
1364
1364
  }
1365
- function q(p, y) {
1366
- return p === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
1365
+ function z(h, y) {
1366
+ return h === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
1367
1367
  }
1368
- function K(p) {
1369
- var y = typeof p;
1370
- return Array.isArray(p) ? "array" : p instanceof RegExp ? "object" : q(y, p) ? "symbol" : y;
1368
+ function K(h) {
1369
+ var y = typeof h;
1370
+ return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : z(y, h) ? "symbol" : y;
1371
1371
  }
1372
- function J(p) {
1373
- if (typeof p > "u" || p === null)
1374
- return "" + p;
1375
- var y = K(p);
1372
+ function J(h) {
1373
+ if (typeof h > "u" || h === null)
1374
+ return "" + h;
1375
+ var y = K(h);
1376
1376
  if (y === "object") {
1377
- if (p instanceof Date)
1377
+ if (h instanceof Date)
1378
1378
  return "date";
1379
- if (p instanceof RegExp)
1379
+ if (h instanceof RegExp)
1380
1380
  return "regexp";
1381
1381
  }
1382
1382
  return y;
1383
1383
  }
1384
- function W(p) {
1385
- var y = J(p);
1384
+ function W(h) {
1385
+ var y = J(h);
1386
1386
  switch (y) {
1387
1387
  case "array":
1388
1388
  case "object":
@@ -1395,10 +1395,10 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
1395
1395
  return y;
1396
1396
  }
1397
1397
  }
1398
- function L(p) {
1399
- return !p.constructor || !p.constructor.name ? d : p.constructor.name;
1398
+ function _(h) {
1399
+ return !h.constructor || !h.constructor.name ? d : h.constructor.name;
1400
1400
  }
1401
- return h.checkPropTypes = s, h.resetWarningCache = s.resetWarningCache, h.PropTypes = h, h;
1401
+ return p.checkPropTypes = s, p.resetWarningCache = s.resetWarningCache, p.PropTypes = p, p;
1402
1402
  }, ut;
1403
1403
  }
1404
1404
  var ft, Ht;
@@ -1411,8 +1411,8 @@ function sn() {
1411
1411
  function t() {
1412
1412
  }
1413
1413
  return t.resetWarningCache = e, ft = function() {
1414
- function n(i, o, c, l, u, f) {
1415
- if (f !== r) {
1414
+ function n(i, o, f, c, u, l) {
1415
+ if (l !== r) {
1416
1416
  var d = new Error(
1417
1417
  "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
1418
  );
@@ -1486,11 +1486,11 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1486
1486
  return t.renderSVG = function() {
1487
1487
  var s = this;
1488
1488
  if (this.reactWrapper instanceof on(this.reactWrapper).Node) {
1489
- var a = this.props, i = a.desc, o = a.evalScripts, c = a.httpRequestWithCredentials, l = a.renumerateIRIElements, u = a.src, f = a.title, d = a.useRequestCache, h = this.props.onError, m = this.props.beforeInjection, g = this.props.afterInjection, x = this.props.wrapper, w, E;
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
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 R = function(C) {
1491
+ var O = function(C) {
1492
1492
  if (s.removeSVG(), !s._isMounted) {
1493
- h(C);
1493
+ p(C);
1494
1494
  return;
1495
1495
  }
1496
1496
  s.setState(function() {
@@ -1499,11 +1499,11 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1499
1499
  isLoading: !1
1500
1500
  };
1501
1501
  }, function() {
1502
- h(C);
1502
+ p(C);
1503
1503
  });
1504
1504
  }, S = function(C, Y) {
1505
1505
  if (C) {
1506
- R(C);
1506
+ O(C);
1507
1507
  return;
1508
1508
  }
1509
1509
  s._isMounted && s.setState(function() {
@@ -1514,7 +1514,7 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1514
1514
  try {
1515
1515
  g(Y);
1516
1516
  } catch (j) {
1517
- R(j);
1517
+ O(j);
1518
1518
  }
1519
1519
  });
1520
1520
  }, b = function(C) {
@@ -1524,16 +1524,16 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1524
1524
  var j = document.createElement("desc");
1525
1525
  j.innerHTML = i, C.prepend(j);
1526
1526
  }
1527
- if (f) {
1527
+ if (l) {
1528
1528
  var P = C.querySelector(":scope > title");
1529
1529
  P && C.removeChild(P);
1530
1530
  var D = document.createElement("title");
1531
- D.innerHTML = f, C.prepend(D);
1531
+ D.innerHTML = l, C.prepend(D);
1532
1532
  }
1533
1533
  try {
1534
1534
  m(C);
1535
- } catch (_) {
1536
- R(_);
1535
+ } catch (k) {
1536
+ O(k);
1537
1537
  }
1538
1538
  };
1539
1539
  Zr(E, {
@@ -1541,8 +1541,8 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1541
1541
  beforeEach: b,
1542
1542
  cacheRequests: d,
1543
1543
  evalScripts: o,
1544
- httpRequestWithCredentials: c,
1545
- renumerateIRIElements: l
1544
+ httpRequestWithCredentials: f,
1545
+ renumerateIRIElements: c
1546
1546
  });
1547
1547
  }
1548
1548
  }, t.removeSVG = function() {
@@ -1566,8 +1566,8 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
1566
1566
  s.httpRequestWithCredentials;
1567
1567
  var i = s.loading;
1568
1568
  s.renumerateIRIElements, s.src, s.title, s.useRequestCache;
1569
- var o = s.wrapper, c = Ur(s, cn), l = o;
1570
- return /* @__PURE__ */ Me.createElement(l, Ze({}, c, {
1569
+ var o = s.wrapper, f = Ur(s, cn), c = o;
1570
+ return /* @__PURE__ */ Me.createElement(c, Ze({}, f, {
1571
1571
  ref: this.refCallback
1572
1572
  }, o === "svg" ? {
1573
1573
  xmlns: He,
@@ -1623,66 +1623,73 @@ const Ss = (r) => {
1623
1623
  disabled: a,
1624
1624
  state: i = "base",
1625
1625
  rotated: o = !1,
1626
- onClick: c,
1627
- isInteractable: l = !1,
1626
+ onClick: f,
1627
+ isInteractable: c = !1,
1628
1628
  spin: u = !1,
1629
- title: f
1629
+ title: l,
1630
+ tabIndex: d
1630
1631
  }) => {
1631
- const [d, h] = Z(r), m = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), g = m && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), x = Kt(`assets/svg/${r}.svg`), w = Kt(
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(
1632
1633
  `assets/svg/${n}.svg`
1633
- ), E = {
1634
- img: `${l ? "smp-image-interactable" : ""}`,
1635
- svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${l ? "smp-icon-interactable" : ""} ${u ? "smp-icon-spin" : ""}`
1636
- }, R = () => {
1637
- !a && l && c && c();
1634
+ ), O = {
1635
+ 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" : ""}`
1637
+ }, S = () => {
1638
+ !a && c && f && f();
1639
+ }, b = (L) => {
1640
+ !a && c && (L.key === "Enter" || L.key === " ") && (L.preventDefault(), S());
1638
1641
  };
1639
- return /* @__PURE__ */ v.jsx(v.Fragment, { children: g ? /* @__PURE__ */ v.jsx(
1642
+ return /* @__PURE__ */ v.jsx(v.Fragment, { children: x ? /* @__PURE__ */ v.jsx(
1640
1643
  je,
1641
1644
  {
1642
1645
  src: r,
1643
- fallback: () => /* @__PURE__ */ v.jsx(je, { src: w, wrapper: "svg" }),
1646
+ fallback: () => /* @__PURE__ */ v.jsx(je, { src: E, wrapper: "svg" }),
1644
1647
  width: e || "1rem",
1645
1648
  height: t || "1rem",
1646
1649
  wrapper: "svg",
1647
- title: f,
1650
+ title: l,
1648
1651
  role: "application",
1649
1652
  fill: s,
1650
1653
  "aria-disabled": a,
1651
- className: E.svg,
1652
- onClick: R
1654
+ className: O.svg,
1655
+ onClick: S,
1656
+ onKeyDown: b,
1657
+ tabIndex: d
1653
1658
  }
1654
- ) : m ? (
1659
+ ) : g ? (
1655
1660
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
1656
1661
  /* @__PURE__ */ v.jsx(
1657
1662
  "img",
1658
1663
  {
1659
- src: d,
1664
+ src: p,
1660
1665
  width: e || "16px",
1661
1666
  height: t || "auto",
1662
- alt: f,
1663
- onError: () => h(w),
1664
- onClick: R,
1665
- className: E.img,
1666
- title: f,
1667
- onKeyDown: (S) => {
1668
- (S.key === "Enter" || S.key === " ") && R();
1667
+ alt: l,
1668
+ onError: () => m(E),
1669
+ onClick: S,
1670
+ className: O.img,
1671
+ title: l,
1672
+ onKeyDown: (L) => {
1673
+ (L.key === "Enter" || L.key === " ") && S();
1669
1674
  }
1670
1675
  }
1671
1676
  )
1672
1677
  ) : /* @__PURE__ */ v.jsx(
1673
1678
  je,
1674
1679
  {
1675
- src: x,
1676
- fallback: () => /* @__PURE__ */ v.jsx(je, { src: w, wrapper: "svg" }),
1680
+ src: w,
1681
+ fallback: () => /* @__PURE__ */ v.jsx(je, { src: E, wrapper: "svg" }),
1677
1682
  width: e || "1rem",
1678
1683
  height: t || "1rem",
1679
1684
  wrapper: "svg",
1680
- title: f,
1685
+ title: l,
1681
1686
  role: "application",
1682
1687
  fill: s,
1683
1688
  "aria-disabled": a,
1684
- className: E.svg,
1685
- onClick: R
1689
+ className: O.svg,
1690
+ onClick: S,
1691
+ onKeyDown: b,
1692
+ tabIndex: d
1686
1693
  }
1687
1694
  ) });
1688
1695
  }
@@ -1695,40 +1702,40 @@ const Ss = (r) => {
1695
1702
  placeholder: a,
1696
1703
  isEditable: i = !0,
1697
1704
  shapeIcon: o,
1698
- sizing: c,
1699
- state: l,
1705
+ sizing: f,
1706
+ state: c,
1700
1707
  variant: u,
1701
- rotatedShapeIcon: f = !1,
1708
+ rotatedShapeIcon: l = !1,
1702
1709
  onShapeIconClick: d,
1703
- ref: h,
1710
+ ref: p,
1704
1711
  inputRef: m,
1705
1712
  onKeyDown: g,
1706
1713
  inputType: x = "text",
1707
1714
  ariaLabel: w = "input field",
1708
1715
  label: E,
1709
- helperText: R = !1,
1716
+ helperText: O = !1,
1710
1717
  error: S,
1711
1718
  appearance: b = "base",
1712
- fullWidth: k = !1,
1719
+ fullWidth: L = !1,
1713
1720
  _dataComponent: C = "textfield",
1714
1721
  width: Y
1715
1722
  }) => {
1716
- const j = bt(), P = `${j}-helper`, D = S ? "danger" : l, _ = S || l == "danger" ? "error" : o, U = R || !!S, H = (J) => {
1723
+ const j = bt(), P = `${j}-helper`, D = S ? "danger" : c, k = S || c == "danger" ? "error" : o, U = O || !!S, H = (J) => {
1717
1724
  s == null || s(J.target.value);
1718
- }, q = {
1719
- wrapper: `smp-textfield-wrapper ${k ? "smp-textfield-fullWidth" : ""}`,
1720
- container: `smp-textfield ${r ? "smp-textfield-disabled" : ""} ${a ? "smp-textfield-placeholder" : ""} ${c ? `smp-textfield-${c}` : ""} ${D ? `smp-textfield-${D}` : ""} ${b ? `smp-textfield-${b}` : ""} ${i ? "" : "smp-textfield-readOnly"}`,
1725
+ }, z = {
1726
+ 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"}`,
1721
1728
  input: "smp-textfield-input "
1722
1729
  };
1723
- u && (u != "notSelectable" || i) && (q.container += `smp-textfield-variant-${u}`);
1730
+ u && (u != "notSelectable" || i) && (z.container += `smp-textfield-variant-${u}`);
1724
1731
  const K = Y ? { "--smp-textField-width-base": Y } : void 0;
1725
- return /* @__PURE__ */ v.jsxs("div", { className: q.wrapper, "data-component": C, children: [
1732
+ return /* @__PURE__ */ v.jsxs("div", { className: z.wrapper, "data-component": C, children: [
1726
1733
  E && /* @__PURE__ */ v.jsx($e, { label: E, disabled: r, htmlFor: j }),
1727
1734
  /* @__PURE__ */ v.jsxs(
1728
1735
  "div",
1729
1736
  {
1730
- className: q.container,
1731
- ref: h,
1737
+ className: z.container,
1738
+ ref: p,
1732
1739
  style: K,
1733
1740
  children: [
1734
1741
  t && /* @__PURE__ */ v.jsx(ue, { icon: t, disabled: r }),
@@ -1741,7 +1748,7 @@ const Ss = (r) => {
1741
1748
  placeholder: a,
1742
1749
  onChange: H,
1743
1750
  onBlur: n,
1744
- className: q.input,
1751
+ className: z.input,
1745
1752
  disabled: r,
1746
1753
  readOnly: !i,
1747
1754
  onKeyDown: g,
@@ -1750,15 +1757,16 @@ const Ss = (r) => {
1750
1757
  "aria-describedby": U ? P : void 0
1751
1758
  }
1752
1759
  ),
1753
- _ && /* @__PURE__ */ v.jsx(
1760
+ k && /* @__PURE__ */ v.jsx(
1754
1761
  ue,
1755
1762
  {
1756
- icon: _,
1763
+ icon: k,
1757
1764
  disabled: r,
1758
1765
  state: D,
1759
1766
  onClick: d,
1760
- rotated: f,
1761
- isInteractable: i
1767
+ rotated: l,
1768
+ isInteractable: i,
1769
+ tabIndex: 0
1762
1770
  }
1763
1771
  )
1764
1772
  ]
@@ -1781,22 +1789,22 @@ function xr({
1781
1789
  containerHeight: t,
1782
1790
  overscan: n = 5
1783
1791
  }) {
1784
- const [s, a] = Z(0), i = ve(null), o = r.length * e, c = Math.max(0, Math.floor(s / e) - n), l = Math.min(
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(
1785
1793
  r.length - 1,
1786
1794
  Math.floor((s + t) / e) + n
1787
1795
  ), u = [];
1788
- for (let h = c; h <= l; h++)
1796
+ for (let p = f; p <= c; p++)
1789
1797
  u.push({
1790
- item: r[h],
1791
- index: h,
1792
- offsetTop: h * e
1798
+ item: r[p],
1799
+ index: p,
1800
+ offsetTop: p * e
1793
1801
  });
1794
- const f = ye((h) => {
1795
- const m = h.target.scrollTop;
1802
+ const l = ye((p) => {
1803
+ const m = p.target.scrollTop;
1796
1804
  a(m);
1797
- }, []), d = (h) => {
1805
+ }, []), d = (p) => {
1798
1806
  if (!i.current) return;
1799
- const m = h * e, g = m + e, x = i.current, w = x.scrollTop, E = w + t;
1807
+ const m = p * e, g = m + e, x = i.current, w = x.scrollTop, E = w + t;
1800
1808
  m < w ? x.scrollTop = m : g > E && (x.scrollTop = g - t);
1801
1809
  };
1802
1810
  return {
@@ -1809,7 +1817,7 @@ function xr({
1809
1817
  position: "relative",
1810
1818
  willChange: "transform"
1811
1819
  },
1812
- onScroll: f
1820
+ onScroll: l
1813
1821
  },
1814
1822
  innerProps: {
1815
1823
  style: {
@@ -1822,8 +1830,8 @@ function xr({
1822
1830
  scrollTop: s,
1823
1831
  viewportHeight: t,
1824
1832
  totalHeight: o,
1825
- startIndex: c,
1826
- endIndex: l
1833
+ startIndex: f,
1834
+ endIndex: c
1827
1835
  },
1828
1836
  scrollToIndex: d
1829
1837
  };
@@ -1839,38 +1847,38 @@ const un = 10, Sr = ({
1839
1847
  activeIndex: i = [],
1840
1848
  // active element
1841
1849
  width: o,
1842
- onClick: c,
1843
- onKeyDown: l
1850
+ onClick: f,
1851
+ onKeyDown: c
1844
1852
  }) => {
1845
1853
  var P;
1846
- const [u, f] = Z(""), d = 24, [h, m] = Z(
1854
+ const [u, l] = Z(""), d = 24, [p, m] = Z(
1847
1855
  a !== null ? a : -1
1848
1856
  ), g = s !== void 0 ? s : e.length > un, x = u ? e.filter(
1849
1857
  (D) => D.label.toLowerCase().includes(u.toLowerCase())
1850
1858
  ) : e, w = (D) => {
1851
- f(D);
1852
- }, { virtualItems: E, containerProps: R, innerProps: S, scrollToIndex: b } = xr({
1859
+ l(D);
1860
+ }, { virtualItems: E, containerProps: O, innerProps: S, scrollToIndex: b } = xr({
1853
1861
  items: x,
1854
1862
  itemHeight: d,
1855
1863
  containerHeight: 200,
1856
1864
  overscan: 5
1857
1865
  });
1858
1866
  oe(() => {
1859
- a !== null && a !== h && m(a);
1867
+ a !== null && a !== p && m(a);
1860
1868
  }, [a]), oe(() => {
1861
- h >= 0 && h < x.length && b(h);
1862
- }, [h, x]);
1863
- const k = (D) => {
1869
+ p >= 0 && p < x.length && b(p);
1870
+ }, [p, x]);
1871
+ const L = (D) => {
1864
1872
  if (D.key === "ArrowDown" || D.key === "ArrowUp") {
1865
1873
  D.preventDefault();
1866
- let _ = h;
1867
- D.key === "ArrowDown" ? _ = h < x.length - 1 ? h + 1 : 0 : D.key === "ArrowUp" && (_ = h > 0 ? h - 1 : x.length - 1), m(_);
1868
- } else D.key === "Enter" ? h >= 0 && h < x.length && (c == null || c(x[h])) : D.key === "Escape" && (D.preventDefault(), D.stopPropagation());
1869
- l && l(D);
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);
1870
1878
  }, C = (D) => {
1871
- k(D);
1879
+ L(D);
1872
1880
  }, Y = (D) => {
1873
- k(D);
1881
+ L(D);
1874
1882
  }, j = {
1875
1883
  wrapper: "smp-list",
1876
1884
  container: "smp-list-container",
@@ -1900,14 +1908,14 @@ const un = 10, Sr = ({
1900
1908
  /* @__PURE__ */ v.jsx(
1901
1909
  "div",
1902
1910
  {
1903
- ...R,
1911
+ ...O,
1904
1912
  className: j.container,
1905
1913
  tabIndex: 0,
1906
1914
  role: "listbox",
1907
1915
  "aria-label": "List",
1908
1916
  onKeyDown: Y,
1909
- "aria-activedescendant": h >= 0 && h < x.length ? (P = x[h]) == null ? void 0 : P.id : void 0,
1910
- children: /* @__PURE__ */ v.jsx("div", { ...S, className: j.virtualScroll, children: E.map(({ item: D, index: _, offsetTop: U }) => {
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 }) => {
1911
1919
  const H = i.includes(D.id);
1912
1920
  return (
1913
1921
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
@@ -1916,9 +1924,9 @@ const un = 10, Sr = ({
1916
1924
  {
1917
1925
  role: "option",
1918
1926
  id: D.id,
1919
- "aria-selected": h === _ ? "true" : "false",
1927
+ "aria-selected": p === k ? "true" : "false",
1920
1928
  tabIndex: -1,
1921
- className: `${j.listItem} ${h === _ ? "selected-item" : ""}`,
1929
+ className: `${j.listItem} ${p === k ? "selected-item" : ""}`,
1922
1930
  "aria-label": D.id + "-" + D.label,
1923
1931
  style: {
1924
1932
  height: `${d}px`,
@@ -1927,7 +1935,7 @@ const un = 10, Sr = ({
1927
1935
  transform: `translateY(${U}px)`
1928
1936
  },
1929
1937
  onClick: () => {
1930
- c == null || c(D), m(_);
1938
+ f == null || f(D), m(k);
1931
1939
  },
1932
1940
  children: [
1933
1941
  Xe(D.id, D.label, t),
@@ -1977,40 +1985,40 @@ const un = 10, Sr = ({
1977
1985
  minimumChars: a = 3,
1978
1986
  isEditable: i = !0,
1979
1987
  placeholder: o,
1980
- fun: c,
1981
- _changeOnEnter: l = !1,
1988
+ fun: f,
1989
+ _changeOnEnter: c = !1,
1982
1990
  onChange: u,
1983
- onOptionsRequest: f,
1991
+ onOptionsRequest: l,
1984
1992
  _multiActiveIndex: d,
1985
- ...h
1993
+ ...p
1986
1994
  }) => {
1987
- const [m, g] = Z(r), [x, w] = Z(e), [E, R] = Z(!1), [S, b] = Z(t || []), [k, C] = Z(0), [Y, j] = Z([r]), { anchorRef: P, targetRef: D, anchorWidth: _ } = St({
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({
1988
1996
  position: "bottom",
1989
1997
  enabled: E
1990
1998
  });
1991
- Je(D, () => R(!1));
1999
+ Je(D, () => O(!1));
1992
2000
  const U = fn(400), H = (W) => {
1993
- W.length >= a ? c && f && U(async () => {
1994
- const L = await f(c, W);
1995
- b(L), C(L.length > 0 ? 0 : -1), R(!0);
1996
- }) : R(!1), g(W), w(e), l || u == null || u(W, e);
1997
- }, q = (W) => {
1998
- l ? (g(""), w("")) : (g(W.id), w(W.label)), u == null || u(W.id, W.label);
1999
- const L = S.findIndex((p) => p.id === W.id);
2000
- C(L), j([W.id]), R(!1);
2001
+ W.length >= a ? f && l && U(async () => {
2002
+ const _ = await l(f, W);
2003
+ b(_), C(_.length > 0 ? 0 : -1), O(!0);
2004
+ }) : O(!1), g(W), w(e), c || u == null || u(W, e);
2005
+ }, z = (W) => {
2006
+ c ? (g(""), w("")) : (g(W.id), w(W.label)), u == null || u(W.id, W.label);
2007
+ const _ = S.findIndex((h) => h.id === W.id);
2008
+ C(_), j([W.id]), O(!1);
2001
2009
  }, K = (W) => {
2002
- W.key === "Escape" && (R(!1), C(-1));
2010
+ W.key === "Escape" && (O(!1), C(-1));
2003
2011
  }, J = (W) => {
2004
2012
  if ((W.key === "ArrowDown" || W.key === "ArrowUp") && (W.preventDefault(), E)) {
2005
- const L = W.key === "ArrowDown" ? (k + 1) % S.length : (k - 1 + S.length) % S.length;
2006
- C(L);
2013
+ const _ = W.key === "ArrowDown" ? (L + 1) % S.length : (L - 1 + S.length) % S.length;
2014
+ C(_);
2007
2015
  }
2008
2016
  switch (W.key) {
2009
2017
  case "Enter":
2010
- k >= 0 && k < S.length ? q(S[k]) : l && (u == null || u(m, ""), R(!1), g(""), w(""));
2018
+ L >= 0 && L < S.length ? z(S[L]) : c && (u == null || u(m, ""), O(!1), g(""), w(""));
2011
2019
  break;
2012
2020
  case "Escape":
2013
- R(!1), C(-1);
2021
+ O(!1), C(-1);
2014
2022
  break;
2015
2023
  }
2016
2024
  };
@@ -2018,7 +2026,7 @@ const un = 10, Sr = ({
2018
2026
  /* @__PURE__ */ v.jsx(
2019
2027
  wr,
2020
2028
  {
2021
- ...h,
2029
+ ...p,
2022
2030
  bindValue: m,
2023
2031
  optionalDisplayValue: x,
2024
2032
  displayMode: n,
@@ -2036,23 +2044,23 @@ const un = 10, Sr = ({
2036
2044
  {
2037
2045
  options: S,
2038
2046
  displayMode: s,
2039
- onClick: q,
2047
+ onClick: z,
2040
2048
  ref: D,
2041
- selectedIndex: k,
2049
+ selectedIndex: L,
2042
2050
  activeIndex: d || Y,
2043
- width: _,
2051
+ width: k,
2044
2052
  showFilter: !1,
2045
2053
  onKeyDown: K
2046
2054
  }
2047
2055
  )
2048
2056
  ] });
2049
- }, qt = (r) => ({
2057
+ }, zt = (r) => ({
2050
2058
  extraSmall: 12,
2051
2059
  small: 14,
2052
2060
  base: 18,
2053
2061
  large: 20,
2054
2062
  extraLarge: 24
2055
- })[r], zt = (r) => ({
2063
+ })[r], qt = (r) => ({
2056
2064
  primary: "onPrimary",
2057
2065
  danger: "onDanger",
2058
2066
  base: "base"
@@ -2065,12 +2073,12 @@ const un = 10, Sr = ({
2065
2073
  sizing: a = "base",
2066
2074
  variant: i = "primary",
2067
2075
  appearance: o = "raised",
2068
- showIcon: c = !0,
2069
- showText: l = !0,
2076
+ showIcon: f = !0,
2077
+ showText: c = !0,
2070
2078
  fullWidth: u = !1,
2071
- loading: f = !1,
2079
+ loading: l = !1,
2072
2080
  justify: d = "center",
2073
- title: h,
2081
+ title: p,
2074
2082
  optionalDisplayValue: m
2075
2083
  }) => {
2076
2084
  const g = {
@@ -2084,20 +2092,20 @@ const un = 10, Sr = ({
2084
2092
  onClick: e,
2085
2093
  "aria-label": t,
2086
2094
  disabled: s,
2087
- "aria-busy": f,
2088
- title: h || r || m,
2089
- children: f ? /* @__PURE__ */ v.jsx(ue, { icon: "spinner", state: zt(i), spin: !0 }) : /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
2090
- n && c && /* @__PURE__ */ v.jsx(
2095
+ "aria-busy": l,
2096
+ title: p || r || m,
2097
+ 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(
2091
2099
  ue,
2092
2100
  {
2093
2101
  icon: n,
2094
2102
  disabled: s,
2095
- state: zt(i),
2096
- width: qt(a),
2097
- height: qt(a)
2103
+ state: qt(i),
2104
+ width: zt(a),
2105
+ height: zt(a)
2098
2106
  }
2099
2107
  ),
2100
- l && m && /* @__PURE__ */ v.jsx("span", { children: m })
2108
+ c && m && /* @__PURE__ */ v.jsx("span", { children: m })
2101
2109
  ] })
2102
2110
  }
2103
2111
  );
@@ -2110,25 +2118,25 @@ const un = 10, Sr = ({
2110
2118
  variant: a,
2111
2119
  appearance: i,
2112
2120
  showText: o,
2113
- showIcon: c,
2114
- fullWidth: l,
2121
+ showIcon: f,
2122
+ fullWidth: c,
2115
2123
  disabled: u,
2116
- justify: f,
2124
+ justify: l,
2117
2125
  onClick: d,
2118
- onOptionsRequest: h
2126
+ onOptionsRequest: p
2119
2127
  }) => {
2120
2128
  const [m, g] = Z(r);
2121
2129
  oe(() => {
2122
- !m && h && e && h(e, void 0).then((E) => g(E)).catch((E) => {
2130
+ !m && p && e && p(e, void 0).then((E) => g(E)).catch((E) => {
2123
2131
  console.error(
2124
2132
  "Errore nel caricamento delle opzioni per ButtonList",
2125
2133
  E
2126
2134
  );
2127
2135
  });
2128
- }, [m, e, h]);
2136
+ }, [m, e, p]);
2129
2137
  const x = {
2130
2138
  container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
2131
- }, w = m == null ? void 0 : m.map((E, R) => {
2139
+ }, w = m == null ? void 0 : m.map((E, O) => {
2132
2140
  const S = {
2133
2141
  bindValue: E.id,
2134
2142
  optionalDisplayValue: E.label,
@@ -2137,16 +2145,16 @@ const un = 10, Sr = ({
2137
2145
  variant: a,
2138
2146
  appearance: i,
2139
2147
  showText: o,
2140
- showIcon: c,
2141
- fullWidth: l,
2148
+ showIcon: f,
2149
+ fullWidth: c,
2142
2150
  disabled: u,
2143
2151
  sizing: s,
2144
- justify: f,
2152
+ justify: l,
2145
2153
  onClick: () => {
2146
2154
  d == null || d(E.id, E.fun);
2147
2155
  }
2148
2156
  };
2149
- return /* @__PURE__ */ v.jsx(De, { ...S }, `button-${R}`);
2157
+ return /* @__PURE__ */ v.jsx(De, { ...S }, `button-${O}`);
2150
2158
  });
2151
2159
  return /* @__PURE__ */ v.jsx("div", { role: "list", "data-component": "button-list", className: x.container, children: w });
2152
2160
  }, pn = ({
@@ -2158,12 +2166,12 @@ const un = 10, Sr = ({
2158
2166
  onChange: a,
2159
2167
  onBlur: i
2160
2168
  }) => {
2161
- const o = (l) => {
2162
- s && a && a(l.target.checked);
2163
- }, c = {
2169
+ const o = (c) => {
2170
+ s && a && a(c.target.checked);
2171
+ }, f = {
2164
2172
  wrapper: "smp-checkbox-wrapper"
2165
2173
  };
2166
- return /* @__PURE__ */ v.jsxs("div", { className: c.wrapper, "data-component": e, children: [
2174
+ return /* @__PURE__ */ v.jsxs("div", { className: f.wrapper, "data-component": e, children: [
2167
2175
  n && /* @__PURE__ */ v.jsx($e, { label: n, disabled: t }),
2168
2176
  /* @__PURE__ */ v.jsx(
2169
2177
  "input",
@@ -2181,7 +2189,7 @@ const un = 10, Sr = ({
2181
2189
  title: "h3",
2182
2190
  body: "h6",
2183
2191
  label: "label"
2184
- }, Ie = ({
2192
+ }, ke = ({
2185
2193
  variant: r = "body",
2186
2194
  bindValue: e,
2187
2195
  color: t,
@@ -2210,30 +2218,30 @@ const un = 10, Sr = ({
2210
2218
  backgroundColor: a,
2211
2219
  isDraggable: i = !1
2212
2220
  }) => {
2213
- const [o, c] = Z(null), l = {
2221
+ const [o, f] = Z(null), c = {
2214
2222
  container: `${["smp-chips-container"]}`,
2215
2223
  element: "smp-chips-element"
2216
- }, u = (h) => {
2217
- n == null || n(r.filter((m, g) => g !== h));
2218
- }, f = (h) => {
2219
- c(h);
2220
- }, d = (h) => {
2221
- if (o === null || o === h) return;
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;
2222
2230
  const m = [...r], [g] = m.splice(o, 1);
2223
- m.splice(h, 0, g), n == null || n(m), c(null);
2231
+ m.splice(p, 0, g), n == null || n(m), f(null);
2224
2232
  };
2225
- return /* @__PURE__ */ v.jsx("div", { className: l.container, role: "list", "data-component": "chip", children: r.flatMap((h, m) => {
2233
+ return /* @__PURE__ */ v.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: r.flatMap((p, m) => {
2226
2234
  const g = Xe(
2227
- h.bindValue,
2228
- h.optionalDisplayValue,
2235
+ p.bindValue,
2236
+ p.optionalDisplayValue,
2229
2237
  t
2230
2238
  ), x = /* @__PURE__ */ v.jsxs(
2231
2239
  "div",
2232
2240
  {
2233
- className: l.element,
2241
+ className: c.element,
2234
2242
  role: "listitem",
2235
2243
  draggable: i,
2236
- onDragStart: () => f(m),
2244
+ onDragStart: () => l(m),
2237
2245
  onDragOver: (E) => i && E.preventDefault(),
2238
2246
  onDrop: () => i && d(m),
2239
2247
  style: {
@@ -2241,7 +2249,7 @@ const un = 10, Sr = ({
2241
2249
  },
2242
2250
  children: [
2243
2251
  i && /* @__PURE__ */ v.jsx(ue, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
2244
- /* @__PURE__ */ v.jsx(Ie, { variant: "label", bindValue: g, color: s }),
2252
+ /* @__PURE__ */ v.jsx(ke, { variant: "label", bindValue: g, color: s }),
2245
2253
  e && /* @__PURE__ */ v.jsx(
2246
2254
  ue,
2247
2255
  {
@@ -2276,30 +2284,30 @@ function Tr(r, e) {
2276
2284
  n.querySelectorAll(
2277
2285
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
2278
2286
  )
2279
- ).filter((l) => !l.hasAttribute("disabled") && l.offsetParent !== null) : [];
2287
+ ).filter((c) => !c.hasAttribute("disabled") && c.offsetParent !== null) : [];
2280
2288
  (() => {
2281
- const l = s();
2282
- l.length > 0 && requestAnimationFrame(() => l[0].focus());
2289
+ const c = s();
2290
+ c.length > 0 && requestAnimationFrame(() => c[0].focus());
2283
2291
  })();
2284
- const i = (l) => {
2285
- if (l.key === "Escape" || l.key !== "Tab") return;
2292
+ const i = (c) => {
2293
+ if (c.key === "Escape" || c.key !== "Tab") return;
2286
2294
  const u = s();
2287
2295
  if (u.length === 0) return;
2288
- const f = u[0], d = u[u.length - 1];
2289
- l.shiftKey && document.activeElement === f ? (l.preventDefault(), d.focus()) : !l.shiftKey && document.activeElement === d && (l.preventDefault(), f.focus());
2290
- }, o = (l) => {
2291
- if (n && !n.contains(l.target)) {
2292
- l.preventDefault();
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());
2298
+ }, o = (c) => {
2299
+ if (n && !n.contains(c.target)) {
2300
+ c.preventDefault();
2293
2301
  const u = s();
2294
2302
  u.length > 0 && u[0].focus();
2295
2303
  }
2296
2304
  };
2297
2305
  document.addEventListener("keydown", i), document.addEventListener("mousedown", o);
2298
- const c = document.body.style.overflow;
2306
+ const f = document.body.style.overflow;
2299
2307
  return document.body.style.overflow = "hidden", () => {
2300
- document.removeEventListener("keydown", i), document.removeEventListener("mousedown", o), document.body.style.overflow = c, t.current && requestAnimationFrame(() => {
2301
- var l;
2302
- (l = t.current) == null || l.focus();
2308
+ document.removeEventListener("keydown", i), document.removeEventListener("mousedown", o), document.body.style.overflow = f, t.current && requestAnimationFrame(() => {
2309
+ var c;
2310
+ (c = t.current) == null || c.focus();
2303
2311
  });
2304
2312
  };
2305
2313
  }, [r, e]);
@@ -2313,25 +2321,25 @@ const mn = ({
2313
2321
  displayMode: a,
2314
2322
  listDisplayMode: i = "Both",
2315
2323
  fun: o,
2316
- onOptionsRequest: c,
2317
- multiActiveIndex: l,
2324
+ onOptionsRequest: f,
2325
+ multiActiveIndex: c,
2318
2326
  ...u
2319
2327
  }) => {
2320
- const [f, d] = Z(!1), [h, m] = Z(t), [g, x] = Z(-1), [w, E] = Z([r]), R = bt(), { anchorRef: S, targetRef: b, anchorWidth: k } = St({
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({
2321
2329
  position: "bottom",
2322
- enabled: f
2330
+ enabled: l
2323
2331
  });
2324
- Je(b, () => d(!1)), Tr(f, b);
2332
+ Je(b, () => d(!1)), Tr(l, b);
2325
2333
  const C = (D) => {
2326
2334
  e == null || e(D.id, D.label);
2327
- const _ = h.findIndex((U) => U.id === D.id);
2328
- x(_), E([D.id]), d(!1);
2335
+ const k = p.findIndex((U) => U.id === D.id);
2336
+ x(k), E([D.id]), d(!1);
2329
2337
  }, Y = (D) => {
2330
2338
  D.key === "Escape" && (d(!1), x(-1));
2331
2339
  }, j = (D) => {
2332
2340
  (D.key === "ArrowDown" || D.key === "ArrowUp") && (D.preventDefault(), P());
2333
2341
  }, P = () => {
2334
- o && c && c(o, void 0).then((D) => {
2342
+ o && f && f(o, void 0).then((D) => {
2335
2343
  m(D), x(D.length > 0 ? 0 : -1), d(!0);
2336
2344
  });
2337
2345
  };
@@ -2339,9 +2347,9 @@ const mn = ({
2339
2347
  "div",
2340
2348
  {
2341
2349
  role: "combobox",
2342
- "aria-expanded": f,
2343
- "aria-controls": R,
2344
- "aria-owns": R,
2350
+ "aria-expanded": l,
2351
+ "aria-controls": O,
2352
+ "aria-owns": O,
2345
2353
  "data-component": "combobox",
2346
2354
  children: [
2347
2355
  /* @__PURE__ */ v.jsx(
@@ -2354,23 +2362,23 @@ const mn = ({
2354
2362
  onShapeIconClick: P,
2355
2363
  onKeyDown: j,
2356
2364
  shapeIcon: "arrow_drop_down",
2357
- rotatedShapeIcon: f,
2365
+ rotatedShapeIcon: l,
2358
2366
  isEditable: s,
2359
2367
  ref: S,
2360
2368
  "aria-autocomplete": "list",
2361
2369
  variant: "notSelectable"
2362
2370
  }
2363
2371
  ),
2364
- f && /* @__PURE__ */ v.jsx(
2372
+ l && /* @__PURE__ */ v.jsx(
2365
2373
  Sr,
2366
2374
  {
2367
- id: R,
2368
- options: h,
2375
+ id: O,
2376
+ options: p,
2369
2377
  displayMode: i,
2370
2378
  ref: b,
2371
2379
  selectedIndex: g,
2372
- activeIndex: l || w,
2373
- width: k,
2380
+ activeIndex: c || w,
2381
+ width: L,
2374
2382
  onClick: C,
2375
2383
  onKeyDown: Y
2376
2384
  }
@@ -2476,17 +2484,17 @@ const En = [" ", ",", "?", "!", ";"], Tn = new wn(20), On = (r, e, t) => {
2476
2484
  if (!s || typeof s != "object")
2477
2485
  return;
2478
2486
  let i, o = "";
2479
- for (let c = a; c < n.length; ++c)
2480
- if (c !== a && (o += t), o += n[c], i = s[o], i !== void 0) {
2481
- if (["string", "number", "boolean"].indexOf(typeof i) > -1 && c < n.length - 1)
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)
2482
2490
  continue;
2483
- a += c - a + 1;
2491
+ a += f - a + 1;
2484
2492
  break;
2485
2493
  }
2486
2494
  s = i;
2487
2495
  }
2488
2496
  return s;
2489
- }, ke = (r) => r == null ? void 0 : r.replace("_", "-"), Rn = {
2497
+ }, Ie = (r) => r == null ? void 0 : r.replace("_", "-"), Rn = {
2490
2498
  type: "logger",
2491
2499
  log(r) {
2492
2500
  this.output("log", r);
@@ -2580,12 +2588,12 @@ class er extends rt {
2580
2588
  t > -1 && this.options.ns.splice(t, 1);
2581
2589
  }
2582
2590
  getResource(e, t, n, s = {}) {
2583
- var l, u;
2591
+ var c, u;
2584
2592
  const a = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, i = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
2585
2593
  let o;
2586
2594
  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)));
2587
- const c = Qe(this.data, o);
2588
- return !c && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), c || !i || !G(n) ? c : yt((u = (l = this.data) == null ? void 0 : l[e]) == null ? void 0 : u[t], n, a);
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);
2589
2597
  }
2590
2598
  addResource(e, t, n, s, a = {
2591
2599
  silent: !1
@@ -2609,11 +2617,11 @@ class er extends rt {
2609
2617
  }) {
2610
2618
  let o = [e, t];
2611
2619
  e.indexOf(".") > -1 && (o = e.split("."), s = n, n = t, t = o[1]), this.addNamespaces(t);
2612
- let c = Qe(this.data, o) || {};
2613
- i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? Or(c, n, a) : c = {
2614
- ...c,
2620
+ let f = Qe(this.data, o) || {};
2621
+ i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? Or(f, n, a) : f = {
2622
+ ...f,
2615
2623
  ...n
2616
- }, Qt(this.data, o, c), i.silent || this.emit("added", e, t, n);
2624
+ }, Qt(this.data, o, f), i.silent || this.emit("added", e, t, n);
2617
2625
  }
2618
2626
  removeResourceBundle(e, t) {
2619
2627
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -2672,14 +2680,14 @@ class tt extends rt {
2672
2680
  let a = t.ns || this.options.defaultNS || [];
2673
2681
  const i = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !On(e, n, s);
2674
2682
  if (i && !o) {
2675
- const c = e.match(this.interpolator.nestingRegexp);
2676
- if (c && c.length > 0)
2683
+ const f = e.match(this.interpolator.nestingRegexp);
2684
+ if (f && f.length > 0)
2677
2685
  return {
2678
2686
  key: e,
2679
2687
  namespaces: G(a) ? [a] : a
2680
2688
  };
2681
- const l = e.split(n);
2682
- (n !== s || n === s && this.options.ns.indexOf(l[0]) > -1) && (a = l.shift()), e = l.join(s);
2689
+ const c = e.split(n);
2690
+ (n !== s || n === s && this.options.ns.indexOf(c[0]) > -1) && (a = c.shift()), e = c.join(s);
2683
2691
  }
2684
2692
  return {
2685
2693
  key: e,
@@ -2696,70 +2704,70 @@ class tt extends rt {
2696
2704
  Array.isArray(e) || (e = [String(e)]);
2697
2705
  const a = s.returnDetails !== void 0 ? s.returnDetails : this.options.returnDetails, i = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, {
2698
2706
  key: o,
2699
- namespaces: c
2700
- } = this.extractFromKey(e[e.length - 1], s), l = c[c.length - 1];
2707
+ namespaces: f
2708
+ } = this.extractFromKey(e[e.length - 1], s), c = f[f.length - 1];
2701
2709
  let u = s.nsSeparator !== void 0 ? s.nsSeparator : this.options.nsSeparator;
2702
2710
  u === void 0 && (u = ":");
2703
- const f = s.lng || this.language, d = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
2704
- if ((f == null ? void 0 : f.toLowerCase()) === "cimode")
2711
+ const l = s.lng || this.language, d = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
2712
+ if ((l == null ? void 0 : l.toLowerCase()) === "cimode")
2705
2713
  return d ? a ? {
2706
- res: `${l}${u}${o}`,
2714
+ res: `${c}${u}${o}`,
2707
2715
  usedKey: o,
2708
2716
  exactUsedKey: o,
2709
- usedLng: f,
2710
- usedNS: l,
2717
+ usedLng: l,
2718
+ usedNS: c,
2711
2719
  usedParams: this.getUsedParamsDetails(s)
2712
- } : `${l}${u}${o}` : a ? {
2720
+ } : `${c}${u}${o}` : a ? {
2713
2721
  res: o,
2714
2722
  usedKey: o,
2715
2723
  exactUsedKey: o,
2716
- usedLng: f,
2717
- usedNS: l,
2724
+ usedLng: l,
2725
+ usedNS: c,
2718
2726
  usedParams: this.getUsedParamsDetails(s)
2719
2727
  } : o;
2720
- const h = this.resolve(e, s);
2721
- let m = h == null ? void 0 : h.res;
2722
- const g = (h == null ? void 0 : h.usedKey) || o, x = (h == null ? void 0 : h.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], E = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, R = !this.i18nFormat || this.i18nFormat.handleAsObject, S = s.count !== void 0 && !G(s.count), b = tt.hasDefaultValue(s), k = S ? this.pluralResolver.getSuffix(f, s.count, s) : "", C = s.ordinal && S ? this.pluralResolver.getSuffix(f, s.count, {
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, {
2723
2731
  ordinal: !1
2724
- }) : "", Y = S && !s.ordinal && s.count === 0, j = Y && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${k}`] || s[`defaultValue${C}`] || s.defaultValue;
2732
+ }) : "", Y = S && !s.ordinal && s.count === 0, j = Y && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${L}`] || s[`defaultValue${C}`] || s.defaultValue;
2725
2733
  let P = m;
2726
- R && !m && b && (P = j);
2727
- const D = rr(P), _ = Object.prototype.toString.apply(P);
2728
- if (R && P && D && w.indexOf(_) < 0 && !(G(E) && Array.isArray(P))) {
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))) {
2729
2737
  if (!s.returnObjects && !this.options.returnObjects) {
2730
2738
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
2731
2739
  const U = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, P, {
2732
2740
  ...s,
2733
- ns: c
2741
+ ns: f
2734
2742
  }) : `key '${o} (${this.language})' returned an object instead of string.`;
2735
- return a ? (h.res = U, h.usedParams = this.getUsedParamsDetails(s), h) : U;
2743
+ return a ? (p.res = U, p.usedParams = this.getUsedParamsDetails(s), p) : U;
2736
2744
  }
2737
2745
  if (i) {
2738
- const U = Array.isArray(P), H = U ? [] : {}, q = U ? x : g;
2746
+ const U = Array.isArray(P), H = U ? [] : {}, z = U ? x : g;
2739
2747
  for (const K in P)
2740
2748
  if (Object.prototype.hasOwnProperty.call(P, K)) {
2741
- const J = `${q}${i}${K}`;
2749
+ const J = `${z}${i}${K}`;
2742
2750
  b && !m ? H[K] = this.translate(J, {
2743
2751
  ...s,
2744
2752
  defaultValue: rr(j) ? j[K] : void 0,
2745
2753
  joinArrays: !1,
2746
- ns: c
2754
+ ns: f
2747
2755
  }) : H[K] = this.translate(J, {
2748
2756
  ...s,
2749
2757
  joinArrays: !1,
2750
- ns: c
2758
+ ns: f
2751
2759
  }), H[K] === J && (H[K] = P[K]);
2752
2760
  }
2753
2761
  m = H;
2754
2762
  }
2755
- } else if (R && G(E) && Array.isArray(m))
2763
+ } else if (O && G(E) && Array.isArray(m))
2756
2764
  m = m.join(E), m && (m = this.extendTranslation(m, e, s, n));
2757
2765
  else {
2758
2766
  let U = !1, H = !1;
2759
2767
  !this.isValidLookup(m) && b && (U = !0, m = j), this.isValidLookup(m) || (H = !0, m = o);
2760
2768
  const K = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && H ? void 0 : m, J = b && j !== m && this.options.updateMissing;
2761
2769
  if (H || U || J) {
2762
- if (this.logger.log(J ? "updateKey" : "missingKey", f, l, o, J ? j : m), i) {
2770
+ if (this.logger.log(J ? "updateKey" : "missingKey", l, c, o, J ? j : m), i) {
2763
2771
  const y = this.resolve(o, {
2764
2772
  ...s,
2765
2773
  keySeparator: !1
@@ -2767,30 +2775,30 @@ class tt extends rt {
2767
2775
  y && y.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
2768
2776
  }
2769
2777
  let W = [];
2770
- const L = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
2771
- if (this.options.saveMissingTo === "fallback" && L && L[0])
2772
- for (let y = 0; y < L.length; y++)
2773
- W.push(L[y]);
2778
+ const _ = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
2779
+ if (this.options.saveMissingTo === "fallback" && _ && _[0])
2780
+ for (let y = 0; y < _.length; y++)
2781
+ W.push(_[y]);
2774
2782
  else this.options.saveMissingTo === "all" ? W = this.languageUtils.toResolveHierarchy(s.lng || this.language) : W.push(s.lng || this.language);
2775
- const p = (y, T, $) => {
2783
+ const h = (y, T, $) => {
2776
2784
  var A;
2777
- const O = b && $ !== m ? $ : K;
2778
- this.options.missingKeyHandler ? this.options.missingKeyHandler(y, l, T, O, J, s) : (A = this.backendConnector) != null && A.saveMissing && this.backendConnector.saveMissing(y, l, T, O, J, s), this.emit("missingKey", y, l, T, m);
2785
+ const R = b && $ !== m ? $ : K;
2786
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(y, c, T, R, J, s) : (A = this.backendConnector) != null && A.saveMissing && this.backendConnector.saveMissing(y, c, T, R, J, s), this.emit("missingKey", y, c, T, m);
2779
2787
  };
2780
2788
  this.options.saveMissing && (this.options.saveMissingPlurals && S ? W.forEach((y) => {
2781
2789
  const T = this.pluralResolver.getSuffixes(y, s);
2782
2790
  Y && s[`defaultValue${this.options.pluralSeparator}zero`] && T.indexOf(`${this.options.pluralSeparator}zero`) < 0 && T.push(`${this.options.pluralSeparator}zero`), T.forEach(($) => {
2783
- p([y], o + $, s[`defaultValue${$}`] || j);
2791
+ h([y], o + $, s[`defaultValue${$}`] || j);
2784
2792
  });
2785
- }) : p(W, o, j));
2793
+ }) : h(W, o, j));
2786
2794
  }
2787
- m = this.extendTranslation(m, e, s, h, n), H && m === o && this.options.appendNamespaceToMissingKey && (m = `${l}${u}${o}`), (H || U) && this.options.parseMissingKeyHandler && (m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${u}${o}` : o, U ? m : void 0, s));
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));
2788
2796
  }
2789
- return a ? (h.res = m, h.usedParams = this.getUsedParamsDetails(s), h) : m;
2797
+ return a ? (p.res = m, p.usedParams = this.getUsedParamsDetails(s), p) : m;
2790
2798
  }
2791
2799
  extendTranslation(e, t, n, s, a) {
2792
- var c, l;
2793
- if ((c = this.i18nFormat) != null && c.parse)
2800
+ var f, c;
2801
+ if ((f = this.i18nFormat) != null && f.parse)
2794
2802
  e = this.i18nFormat.parse(e, {
2795
2803
  ...this.options.interpolation.defaultVariables,
2796
2804
  ...n
@@ -2805,21 +2813,21 @@ class tt extends rt {
2805
2813
  ...n.interpolation
2806
2814
  }
2807
2815
  });
2808
- const u = G(e) && (((l = n == null ? void 0 : n.interpolation) == null ? void 0 : l.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
2809
- let f;
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);
2817
+ let l;
2810
2818
  if (u) {
2811
- const h = e.match(this.interpolator.nestingRegexp);
2812
- f = h && h.length;
2819
+ const p = e.match(this.interpolator.nestingRegexp);
2820
+ l = p && p.length;
2813
2821
  }
2814
2822
  let d = n.replace && !G(n.replace) ? n.replace : n;
2815
2823
  if (this.options.interpolation.defaultVariables && (d = {
2816
2824
  ...this.options.interpolation.defaultVariables,
2817
2825
  ...d
2818
2826
  }), e = this.interpolator.interpolate(e, d, n.lng || this.language || s.usedLng, n), u) {
2819
- const h = e.match(this.interpolator.nestingRegexp), m = h && h.length;
2820
- f < m && (n.nest = !1);
2827
+ const p = e.match(this.interpolator.nestingRegexp), m = p && p.length;
2828
+ l < m && (n.nest = !1);
2821
2829
  }
2822
- !n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...h) => (a == null ? void 0 : a[0]) === h[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${t[0]}`), null) : this.translate(...h, t), n)), n.interpolation && this.interpolator.reset();
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();
2823
2831
  }
2824
2832
  const i = n.postProcess || this.options.postProcess, o = G(i) ? [i] : i;
2825
2833
  return e != null && (o != null && o.length) && n.applyPostProcessor !== !1 && (e = Rr.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
@@ -2832,34 +2840,34 @@ class tt extends rt {
2832
2840
  }
2833
2841
  resolve(e, t = {}) {
2834
2842
  let n, s, a, i, o;
2835
- return G(e) && (e = [e]), e.forEach((c) => {
2843
+ return G(e) && (e = [e]), e.forEach((f) => {
2836
2844
  if (this.isValidLookup(n)) return;
2837
- const l = this.extractFromKey(c, t), u = l.key;
2845
+ const c = this.extractFromKey(f, t), u = c.key;
2838
2846
  s = u;
2839
- let f = l.namespaces;
2840
- this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
2841
- const d = t.count !== void 0 && !G(t.count), h = 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);
2842
- f.forEach((x) => {
2847
+ let l = c.namespaces;
2848
+ 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);
2850
+ l.forEach((x) => {
2843
2851
  var w, E;
2844
- 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((R) => {
2845
- var k;
2852
+ 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
+ var L;
2846
2854
  if (this.isValidLookup(n)) return;
2847
- i = R;
2855
+ i = O;
2848
2856
  const S = [u];
2849
- if ((k = this.i18nFormat) != null && k.addLookupKeys)
2850
- this.i18nFormat.addLookupKeys(S, u, R, x, t);
2857
+ if ((L = this.i18nFormat) != null && L.addLookupKeys)
2858
+ this.i18nFormat.addLookupKeys(S, u, O, x, t);
2851
2859
  else {
2852
2860
  let C;
2853
- d && (C = this.pluralResolver.getSuffix(R, t.count, t));
2861
+ d && (C = this.pluralResolver.getSuffix(O, t.count, t));
2854
2862
  const Y = `${this.options.pluralSeparator}zero`, j = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2855
- if (d && (S.push(u + C), t.ordinal && C.indexOf(j) === 0 && S.push(u + C.replace(j, this.options.pluralSeparator)), h && S.push(u + Y)), m) {
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) {
2856
2864
  const P = `${u}${this.options.contextSeparator}${t.context}`;
2857
- S.push(P), d && (S.push(P + C), t.ordinal && C.indexOf(j) === 0 && S.push(P + C.replace(j, this.options.pluralSeparator)), h && S.push(P + Y));
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));
2858
2866
  }
2859
2867
  }
2860
2868
  let b;
2861
2869
  for (; b = S.pop(); )
2862
- this.isValidLookup(n) || (a = b, n = this.getResource(R, x, b, t));
2870
+ this.isValidLookup(n) || (a = b, n = this.getResource(O, x, b, t));
2863
2871
  }));
2864
2872
  });
2865
2873
  }), {
@@ -2905,12 +2913,12 @@ class nr {
2905
2913
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = ge.create("languageUtils");
2906
2914
  }
2907
2915
  getScriptPartFromCode(e) {
2908
- if (e = ke(e), !e || e.indexOf("-") < 0) return null;
2916
+ if (e = Ie(e), !e || e.indexOf("-") < 0) return null;
2909
2917
  const t = e.split("-");
2910
2918
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
2911
2919
  }
2912
2920
  getLanguagePartFromCode(e) {
2913
- if (e = ke(e), !e || e.indexOf("-") < 0) return e;
2921
+ if (e = Ie(e), !e || e.indexOf("-") < 0) return e;
2914
2922
  const t = e.split("-");
2915
2923
  return this.formatLanguageCode(t[0]);
2916
2924
  }
@@ -2988,7 +2996,7 @@ class jn {
2988
2996
  this.pluralRulesCache = {};
2989
2997
  }
2990
2998
  getRule(e, t = {}) {
2991
- const n = ke(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", a = JSON.stringify({
2999
+ const n = Ie(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", a = JSON.stringify({
2992
3000
  cleanedCode: n,
2993
3001
  type: s
2994
3002
  });
@@ -3003,8 +3011,8 @@ class jn {
3003
3011
  if (!Intl)
3004
3012
  return this.logger.error("No Intl support, please use an Intl polyfill!"), ar;
3005
3013
  if (!e.match(/-|_/)) return ar;
3006
- const c = this.languageUtils.getLanguagePartFromCode(e);
3007
- i = this.getRule(c, t);
3014
+ const f = this.languageUtils.getLanguagePartFromCode(e);
3015
+ i = this.getRule(f, t);
3008
3016
  }
3009
3017
  return this.pluralRulesCache[a] = i, i;
3010
3018
  }
@@ -3044,19 +3052,19 @@ class Dn {
3044
3052
  prefix: a,
3045
3053
  prefixEscaped: i,
3046
3054
  suffix: o,
3047
- suffixEscaped: c,
3048
- formatSeparator: l,
3055
+ suffixEscaped: f,
3056
+ formatSeparator: c,
3049
3057
  unescapeSuffix: u,
3050
- unescapePrefix: f,
3058
+ unescapePrefix: l,
3051
3059
  nestingPrefix: d,
3052
- nestingPrefixEscaped: h,
3060
+ nestingPrefixEscaped: p,
3053
3061
  nestingSuffix: m,
3054
3062
  nestingSuffixEscaped: g,
3055
3063
  nestingOptionsSeparator: x,
3056
3064
  maxReplaces: w,
3057
3065
  alwaysFormat: E
3058
3066
  } = e.interpolation;
3059
- 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) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = u ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = d ? Oe(d) : h || 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();
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();
3060
3068
  }
3061
3069
  reset() {
3062
3070
  this.options && this.init(this.options);
@@ -3066,11 +3074,11 @@ class Dn {
3066
3074
  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}`);
3067
3075
  }
3068
3076
  interpolate(e, t, n, s) {
3069
- var h;
3077
+ var p;
3070
3078
  let a, i, o;
3071
- const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (m) => {
3079
+ const f = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (m) => {
3072
3080
  if (m.indexOf(this.formatSeparator) < 0) {
3073
- const E = ir(t, c, m, this.options.keySeparator, this.options.ignoreJSONStructure);
3081
+ const E = ir(t, f, m, this.options.keySeparator, this.options.ignoreJSONStructure);
3074
3082
  return this.alwaysFormat ? this.format(E, void 0, n, {
3075
3083
  ...s,
3076
3084
  ...t,
@@ -3078,14 +3086,14 @@ class Dn {
3078
3086
  }) : E;
3079
3087
  }
3080
3088
  const g = m.split(this.formatSeparator), x = g.shift().trim(), w = g.join(this.formatSeparator).trim();
3081
- return this.format(ir(t, c, x, this.options.keySeparator, this.options.ignoreJSONStructure), w, n, {
3089
+ return this.format(ir(t, f, x, this.options.keySeparator, this.options.ignoreJSONStructure), w, n, {
3082
3090
  ...s,
3083
3091
  ...t,
3084
3092
  interpolationkey: x
3085
3093
  });
3086
3094
  };
3087
3095
  this.resetRegExp();
3088
- const u = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, f = ((h = s == null ? void 0 : s.interpolation) == null ? void 0 : h.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
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;
3089
3097
  return [{
3090
3098
  regex: this.regexpUnescape,
3091
3099
  safeValue: (m) => dt(m)
@@ -3095,56 +3103,56 @@ class Dn {
3095
3103
  }].forEach((m) => {
3096
3104
  for (o = 0; a = m.regex.exec(e); ) {
3097
3105
  const g = a[1].trim();
3098
- if (i = l(g), i === void 0)
3106
+ if (i = c(g), i === void 0)
3099
3107
  if (typeof u == "function") {
3100
3108
  const w = u(e, a, s);
3101
3109
  i = G(w) ? w : "";
3102
3110
  } else if (s && Object.prototype.hasOwnProperty.call(s, g))
3103
3111
  i = "";
3104
- else if (f) {
3112
+ else if (l) {
3105
3113
  i = a[0];
3106
3114
  continue;
3107
3115
  } else
3108
3116
  this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`), i = "";
3109
3117
  else !G(i) && !this.useRawValueToEscape && (i = Jt(i));
3110
3118
  const x = m.safeValue(i);
3111
- if (e = e.replace(a[0], x), f ? (m.regex.lastIndex += i.length, m.regex.lastIndex -= a[0].length) : m.regex.lastIndex = 0, o++, o >= this.maxReplaces)
3119
+ if (e = e.replace(a[0], x), l ? (m.regex.lastIndex += i.length, m.regex.lastIndex -= a[0].length) : m.regex.lastIndex = 0, o++, o >= this.maxReplaces)
3112
3120
  break;
3113
3121
  }
3114
3122
  }), e;
3115
3123
  }
3116
3124
  nest(e, t, n = {}) {
3117
3125
  let s, a, i;
3118
- const o = (c, l) => {
3126
+ const o = (f, c) => {
3119
3127
  const u = this.nestingOptionsSeparator;
3120
- if (c.indexOf(u) < 0) return c;
3121
- const f = c.split(new RegExp(`${u}[ ]*{`));
3122
- let d = `{${f[1]}`;
3123
- c = f[0], d = this.interpolate(d, i);
3124
- const h = d.match(/'/g), m = d.match(/"/g);
3125
- (((h == null ? void 0 : h.length) ?? 0) % 2 === 0 && !m || m.length % 2 !== 0) && (d = d.replace(/'/g, '"'));
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, '"'));
3126
3134
  try {
3127
- i = JSON.parse(d), l && (i = {
3128
- ...l,
3135
+ i = JSON.parse(d), c && (i = {
3136
+ ...c,
3129
3137
  ...i
3130
3138
  });
3131
3139
  } catch (g) {
3132
- return this.logger.warn(`failed parsing options string in nesting for key ${c}`, g), `${c}${u}${d}`;
3140
+ return this.logger.warn(`failed parsing options string in nesting for key ${f}`, g), `${f}${u}${d}`;
3133
3141
  }
3134
- return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, c;
3142
+ return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, f;
3135
3143
  };
3136
3144
  for (; s = this.nestingRegexp.exec(e); ) {
3137
- let c = [];
3145
+ let f = [];
3138
3146
  i = {
3139
3147
  ...n
3140
3148
  }, i = i.replace && !G(i.replace) ? i.replace : i, i.applyPostProcessor = !1, delete i.defaultValue;
3141
- let l = !1;
3149
+ let c = !1;
3142
3150
  if (s[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(s[1])) {
3143
- const u = s[1].split(this.formatSeparator).map((f) => f.trim());
3144
- s[1] = u.shift(), c = u, l = !0;
3151
+ const u = s[1].split(this.formatSeparator).map((l) => l.trim());
3152
+ s[1] = u.shift(), f = u, c = !0;
3145
3153
  }
3146
3154
  if (a = t(o.call(this, s[1].trim(), i), i), a && s[0] === e && !G(a)) return a;
3147
- G(a) || (a = Jt(a)), a || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), a = ""), l && (a = c.reduce((u, f) => this.format(u, f, n.lng, {
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, {
3148
3156
  ...n,
3149
3157
  interpolationkey: s[1].trim()
3150
3158
  }), a.trim())), e = e.replace(s[0], a), this.regexp.lastIndex = 0;
@@ -3161,8 +3169,8 @@ const $n = (r) => {
3161
3169
  const s = n[1].substring(0, n[1].length - 1);
3162
3170
  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) => {
3163
3171
  if (i) {
3164
- const [o, ...c] = i.split(":"), l = c.join(":").trim().replace(/^'+|'+$/g, ""), u = o.trim();
3165
- t[u] || (t[u] = l), l === "false" && (t[u] = !1), l === "true" && (t[u] = !0), isNaN(l) || (t[u] = parseInt(l, 10));
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));
3166
3174
  }
3167
3175
  });
3168
3176
  }
@@ -3180,9 +3188,9 @@ const $n = (r) => {
3180
3188
  });
3181
3189
  const i = n + JSON.stringify(a);
3182
3190
  let o = e[i];
3183
- return o || (o = r(ke(n), s), e[i] = o), o(t);
3191
+ return o || (o = r(Ie(n), s), e[i] = o), o(t);
3184
3192
  };
3185
- }, Cn = (r) => (e, t, n) => r(ke(t), n)(e);
3193
+ }, Cn = (r) => (e, t, n) => r(Ie(t), n)(e);
3186
3194
  class Pn {
3187
3195
  constructor(e = {}) {
3188
3196
  this.logger = ge.create("formatter"), this.options = e, this.init(e);
@@ -3235,30 +3243,30 @@ class Pn {
3235
3243
  format(e, t, n, s = {}) {
3236
3244
  const a = t.split(this.formatSeparator);
3237
3245
  if (a.length > 1 && a[0].indexOf("(") > 1 && a[0].indexOf(")") < 0 && a.find((o) => o.indexOf(")") > -1)) {
3238
- const o = a.findIndex((c) => c.indexOf(")") > -1);
3246
+ const o = a.findIndex((f) => f.indexOf(")") > -1);
3239
3247
  a[0] = [a[0], ...a.splice(1, o)].join(this.formatSeparator);
3240
3248
  }
3241
- return a.reduce((o, c) => {
3242
- var f;
3249
+ return a.reduce((o, f) => {
3250
+ var l;
3243
3251
  const {
3244
- formatName: l,
3252
+ formatName: c,
3245
3253
  formatOptions: u
3246
- } = $n(c);
3247
- if (this.formats[l]) {
3254
+ } = $n(f);
3255
+ if (this.formats[c]) {
3248
3256
  let d = o;
3249
3257
  try {
3250
- const h = ((f = s == null ? void 0 : s.formatParams) == null ? void 0 : f[s.interpolationkey]) || {}, m = h.locale || h.lng || s.locale || s.lng || n;
3251
- d = this.formats[l](o, m, {
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, {
3252
3260
  ...u,
3253
3261
  ...s,
3254
- ...h
3262
+ ...p
3255
3263
  });
3256
- } catch (h) {
3257
- this.logger.warn(h);
3264
+ } catch (p) {
3265
+ this.logger.warn(p);
3258
3266
  }
3259
3267
  return d;
3260
3268
  } else
3261
- this.logger.warn(`there was no format function for ${l}`);
3269
+ this.logger.warn(`there was no format function for ${c}`);
3262
3270
  return o;
3263
3271
  }, e);
3264
3272
  }
@@ -3272,13 +3280,13 @@ class Ln extends rt {
3272
3280
  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);
3273
3281
  }
3274
3282
  queueLoad(e, t, n, s) {
3275
- const a = {}, i = {}, o = {}, c = {};
3276
- return e.forEach((l) => {
3283
+ const a = {}, i = {}, o = {}, f = {};
3284
+ return e.forEach((c) => {
3277
3285
  let u = !0;
3278
- t.forEach((f) => {
3279
- const d = `${l}|${f}`;
3280
- !n.reload && this.store.hasResourceBundle(l, f) ? 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), c[f] === void 0 && (c[f] = !0)));
3281
- }), u || (o[l] = !0);
3286
+ 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);
3282
3290
  }), (Object.keys(a).length || Object.keys(i).length) && this.queue.push({
3283
3291
  pending: i,
3284
3292
  pendingCount: Object.keys(i).length,
@@ -3289,7 +3297,7 @@ class Ln extends rt {
3289
3297
  toLoad: Object.keys(a),
3290
3298
  pending: Object.keys(i),
3291
3299
  toLoadLanguages: Object.keys(o),
3292
- toLoadNamespaces: Object.keys(c)
3300
+ toLoadNamespaces: Object.keys(f)
3293
3301
  };
3294
3302
  }
3295
3303
  loaded(e, t, n) {
@@ -3298,15 +3306,15 @@ class Ln extends rt {
3298
3306
  skipCopy: !0
3299
3307
  }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
3300
3308
  const o = {};
3301
- this.queue.forEach((c) => {
3302
- vn(c.loaded, [a], i), An(c, e), t && c.errors.push(t), c.pendingCount === 0 && !c.done && (Object.keys(c.loaded).forEach((l) => {
3303
- o[l] || (o[l] = {});
3304
- const u = c.loaded[l];
3305
- u.length && u.forEach((f) => {
3306
- o[l][f] === void 0 && (o[l][f] = !0);
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
+ o[c] || (o[c] = {});
3312
+ const u = f.loaded[c];
3313
+ u.length && u.forEach((l) => {
3314
+ o[c][l] === void 0 && (o[c][l] = !0);
3307
3315
  });
3308
- }), c.done = !0, c.errors.length ? c.callback(c.errors) : c.callback());
3309
- }), this.emit("loaded", o), this.queue = this.queue.filter((c) => !c.done);
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);
3310
3318
  }
3311
3319
  read(e, t, n, s = 0, a = this.retryTimeout, i) {
3312
3320
  if (!e.length) return i(null, {});
@@ -3322,29 +3330,29 @@ class Ln extends rt {
3322
3330
  return;
3323
3331
  }
3324
3332
  this.readingCalls++;
3325
- const o = (l, u) => {
3333
+ const o = (c, u) => {
3326
3334
  if (this.readingCalls--, this.waitingReads.length > 0) {
3327
- const f = this.waitingReads.shift();
3328
- this.read(f.lng, f.ns, f.fcName, f.tried, f.wait, f.callback);
3335
+ const l = this.waitingReads.shift();
3336
+ this.read(l.lng, l.ns, l.fcName, l.tried, l.wait, l.callback);
3329
3337
  }
3330
- if (l && u && s < this.maxRetries) {
3338
+ if (c && u && s < this.maxRetries) {
3331
3339
  setTimeout(() => {
3332
3340
  this.read.call(this, e, t, n, s + 1, a * 2, i);
3333
3341
  }, a);
3334
3342
  return;
3335
3343
  }
3336
- i(l, u);
3337
- }, c = this.backend[n].bind(this.backend);
3338
- if (c.length === 2) {
3344
+ i(c, u);
3345
+ }, f = this.backend[n].bind(this.backend);
3346
+ if (f.length === 2) {
3339
3347
  try {
3340
- const l = c(e, t);
3341
- l && typeof l.then == "function" ? l.then((u) => o(null, u)).catch(o) : o(null, l);
3342
- } catch (l) {
3343
- o(l);
3348
+ const c = f(e, t);
3349
+ c && typeof c.then == "function" ? c.then((u) => o(null, u)).catch(o) : o(null, c);
3350
+ } catch (c) {
3351
+ o(c);
3344
3352
  }
3345
3353
  return;
3346
3354
  }
3347
- return c(e, t, o);
3355
+ return f(e, t, o);
3348
3356
  }
3349
3357
  prepareLoading(e, t, n = {}, s) {
3350
3358
  if (!this.backend)
@@ -3373,26 +3381,26 @@ class Ln extends rt {
3373
3381
  }
3374
3382
  saveMissing(e, t, n, s, a, i = {}, o = () => {
3375
3383
  }) {
3376
- var c, l, u, f, d;
3377
- if ((l = (c = this.services) == null ? void 0 : c.utils) != null && l.hasLoadedNamespace && !((f = (u = this.services) == null ? void 0 : u.utils) != null && f.hasLoadedNamespace(t))) {
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))) {
3378
3386
  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!!!");
3379
3387
  return;
3380
3388
  }
3381
3389
  if (!(n == null || n === "")) {
3382
3390
  if ((d = this.backend) != null && d.create) {
3383
- const h = {
3391
+ const p = {
3384
3392
  ...i,
3385
3393
  isUpdate: a
3386
3394
  }, m = this.backend.create.bind(this.backend);
3387
3395
  if (m.length < 6)
3388
3396
  try {
3389
3397
  let g;
3390
- m.length === 5 ? g = m(e, t, n, s, h) : g = m(e, t, n, s), g && typeof g.then == "function" ? g.then((x) => o(null, x)).catch(o) : o(null, 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);
3391
3399
  } catch (g) {
3392
3400
  o(g);
3393
3401
  }
3394
3402
  else
3395
- m(e, t, n, s, o, h);
3403
+ m(e, t, n, s, o, p);
3396
3404
  }
3397
3405
  !e || !e[0] || this.store.addResource(e[0], t, n, s);
3398
3406
  }
@@ -3487,44 +3495,44 @@ class Ne extends rt {
3487
3495
  ...n.interpolation,
3488
3496
  ...this.options.interpolation
3489
3497
  }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator);
3490
- const s = (l) => l ? typeof l == "function" ? new l() : l : null;
3498
+ const s = (c) => c ? typeof c == "function" ? new c() : c : null;
3491
3499
  if (!this.options.isClone) {
3492
3500
  this.modules.logger ? ge.init(s(this.modules.logger), this.options) : ge.init(null, this.options);
3493
- let l;
3494
- this.modules.formatter ? l = this.modules.formatter : l = Pn;
3501
+ let c;
3502
+ this.modules.formatter ? c = this.modules.formatter : c = Pn;
3495
3503
  const u = new nr(this.options);
3496
3504
  this.store = new er(this.options.resources, this.options);
3497
- const f = this.services;
3498
- f.logger = ge, f.resourceStore = this.store, f.languageUtils = u, f.pluralResolver = new jn(u, {
3505
+ const l = this.services;
3506
+ l.logger = ge, l.resourceStore = this.store, l.languageUtils = u, l.pluralResolver = new jn(u, {
3499
3507
  prepend: this.options.pluralSeparator,
3500
3508
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
3501
- }), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (f.formatter = s(l), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new Dn(this.options), f.utils = {
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 = {
3502
3510
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
3503
- }, f.backendConnector = new Ln(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (d, ...h) => {
3504
- this.emit(d, ...h);
3505
- }), this.modules.languageDetector && (f.languageDetector = s(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = s(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new tt(this.services, this.options), this.translator.on("*", (d, ...h) => {
3506
- this.emit(d, ...h);
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);
3507
3515
  }), this.modules.external.forEach((d) => {
3508
3516
  d.init && d.init(this);
3509
3517
  });
3510
3518
  }
3511
3519
  if (this.format = this.options.interpolation.format, t || (t = Be), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3512
- const l = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3513
- l.length > 0 && l[0] !== "dev" && (this.options.lng = l[0]);
3520
+ const c = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3521
+ c.length > 0 && c[0] !== "dev" && (this.options.lng = c[0]);
3514
3522
  }
3515
- !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((l) => {
3516
- this[l] = (...u) => this.store[l](...u);
3517
- }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((l) => {
3518
- this[l] = (...u) => (this.store[l](...u), this);
3523
+ !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);
3525
+ }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((c) => {
3526
+ this[c] = (...u) => (this.store[c](...u), this);
3519
3527
  });
3520
- const o = Le(), c = () => {
3521
- const l = (u, f) => {
3522
- this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(f), t(u, f);
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);
3523
3531
  };
3524
- if (this.languages && !this.isInitialized) return l(null, this.t.bind(this));
3525
- this.changeLanguage(this.options.lng, l);
3532
+ if (this.languages && !this.isInitialized) return c(null, this.t.bind(this));
3533
+ this.changeLanguage(this.options.lng, c);
3526
3534
  };
3527
- return this.options.resources || !this.options.initAsync ? c() : setTimeout(c, 0), o;
3535
+ return this.options.resources || !this.options.initAsync ? f() : setTimeout(f, 0), o;
3528
3536
  }
3529
3537
  loadResources(e, t = Be) {
3530
3538
  var a, i;
@@ -3532,14 +3540,14 @@ class Ne extends rt {
3532
3540
  const s = G(e) ? e : this.language;
3533
3541
  if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
3534
3542
  if ((s == null ? void 0 : s.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
3535
- const o = [], c = (l) => {
3536
- if (!l || l === "cimode") return;
3537
- this.services.languageUtils.toResolveHierarchy(l).forEach((f) => {
3538
- f !== "cimode" && o.indexOf(f) < 0 && o.push(f);
3543
+ const o = [], f = (c) => {
3544
+ if (!c || c === "cimode") return;
3545
+ this.services.languageUtils.toResolveHierarchy(c).forEach((l) => {
3546
+ l !== "cimode" && o.indexOf(l) < 0 && o.push(l);
3539
3547
  });
3540
3548
  };
3541
- s ? c(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((u) => c(u)), (i = (a = this.options.preload) == null ? void 0 : a.forEach) == null || i.call(a, (l) => c(l)), this.services.backendConnector.load(o, this.options.ns, (l) => {
3542
- !l && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(l);
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) => {
3550
+ !c && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(c);
3543
3551
  });
3544
3552
  } else
3545
3553
  n(null);
@@ -3573,27 +3581,27 @@ class Ne extends rt {
3573
3581
  this.emit("languageChanging", e);
3574
3582
  const s = (o) => {
3575
3583
  this.language = o, this.languages = this.services.languageUtils.toResolveHierarchy(o), this.resolvedLanguage = void 0, this.setResolvedLanguage(o);
3576
- }, a = (o, c) => {
3577
- c ? this.isLanguageChangingTo === e && (s(c), this.translator.changeLanguage(c), this.isLanguageChangingTo = void 0, this.emit("languageChanged", c), this.logger.log("languageChanged", c)) : this.isLanguageChangingTo = void 0, n.resolve((...l) => this.t(...l)), t && t(o, (...l) => this.t(...l));
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));
3578
3586
  }, i = (o) => {
3579
- var u, f;
3587
+ var u, l;
3580
3588
  !e && !o && this.services.languageDetector && (o = []);
3581
- const c = G(o) ? o : o && o[0], l = this.store.hasLanguageSomeTranslations(c) ? c : this.services.languageUtils.getBestMatchFromCodes(G(o) ? [o] : o);
3582
- l && (this.language || s(l), this.translator.language || this.translator.changeLanguage(l), (f = (u = this.services.languageDetector) == null ? void 0 : u.cacheUserLanguage) == null || f.call(u, l)), this.loadResources(l, (d) => {
3583
- a(d, l);
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);
3584
3592
  });
3585
3593
  };
3586
3594
  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;
3587
3595
  }
3588
3596
  getFixedT(e, t, n) {
3589
3597
  const s = (a, i, ...o) => {
3590
- let c;
3591
- typeof i != "object" ? c = this.options.overloadTranslationOptionHandler([a, i].concat(o)) : c = {
3598
+ let f;
3599
+ typeof i != "object" ? f = this.options.overloadTranslationOptionHandler([a, i].concat(o)) : f = {
3592
3600
  ...i
3593
- }, c.lng = c.lng || s.lng, c.lngs = c.lngs || s.lngs, c.ns = c.ns || s.ns, c.keyPrefix !== "" && (c.keyPrefix = c.keyPrefix || n || s.keyPrefix);
3594
- const l = this.options.keySeparator || ".";
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);
3602
+ const c = this.options.keySeparator || ".";
3595
3603
  let u;
3596
- return c.keyPrefix && Array.isArray(a) ? u = a.map((f) => `${c.keyPrefix}${l}${f}`) : u = c.keyPrefix ? `${c.keyPrefix}${l}${a}` : a, this.t(u, c);
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);
3597
3605
  };
3598
3606
  return G(e) ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = n, s;
3599
3607
  }
@@ -3615,9 +3623,9 @@ class Ne extends rt {
3615
3623
  return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
3616
3624
  const n = t.lng || this.resolvedLanguage || this.languages[0], s = this.options ? this.options.fallbackLng : !1, a = this.languages[this.languages.length - 1];
3617
3625
  if (n.toLowerCase() === "cimode") return !0;
3618
- const i = (o, c) => {
3619
- const l = this.services.backendConnector.state[`${o}|${c}`];
3620
- return l === -1 || l === 0 || l === 2;
3626
+ const i = (o, f) => {
3627
+ const c = this.services.backendConnector.state[`${o}|${f}`];
3628
+ return c === -1 || c === 0 || c === 2;
3621
3629
  };
3622
3630
  if (t.precheck) {
3623
3631
  const o = t.precheck(this, i);
@@ -3665,15 +3673,15 @@ class Ne extends rt {
3665
3673
  }, a.services.utils = {
3666
3674
  hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
3667
3675
  }, n) {
3668
- const o = Object.keys(this.store.data).reduce((c, l) => (c[l] = {
3669
- ...this.store.data[l]
3670
- }, c[l] = Object.keys(c[l]).reduce((u, f) => (u[f] = {
3671
- ...c[l][f]
3672
- }, u), c[l]), c), {});
3676
+ const o = Object.keys(this.store.data).reduce((f, c) => (f[c] = {
3677
+ ...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), {});
3673
3681
  a.store = new er(o, s), a.services.resourceStore = a.store;
3674
3682
  }
3675
- return a.translator = new tt(a.services, s), a.translator.on("*", (o, ...c) => {
3676
- a.emit(o, ...c);
3683
+ return a.translator = new tt(a.services, s), a.translator.on("*", (o, ...f) => {
3684
+ a.emit(o, ...f);
3677
3685
  }), a.init(s, t), a.translator.options = s, a.translator.backendConnector.services.utils = {
3678
3686
  hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
3679
3687
  }, a;
@@ -3704,10 +3712,10 @@ ae.setDefaultNamespace;
3704
3712
  ae.hasLoadedNamespace;
3705
3713
  ae.loadNamespaces;
3706
3714
  ae.loadLanguages;
3707
- const In = { Friday: "Venerdì", FridayShort: "Ven", Monday: "Lunedì", MondayShort: "Lun", Saturday: "Sabato", SaturdayShort: "Sab", Sunday: "Domenica", SundayShort: "Dom", Tuesday: "Martedì", TuesdayShort: "Mar", Thursday: "Giovedì", ThursdayShort: "Gio", Wednesday: "Mercoledì", WednesdayShort: "Mer" }, kn = { April: "Aprile", August: "Agosto", December: "Dicembre", February: "Febbraio", January: "Gennaio", June: "Giugno", July: "Luglio", March: "Marzo", May: "Maggio", October: "Ottobre", November: "Novembre", September: "Settembre" }, Nn = { CalendarFor: "Calendario per", Close: "Chiudi", SpotlightDefaultPlaceholder: "Esegui Comando" }, Mn = {
3715
+ const kn = { Friday: "Venerdì", FridayShort: "Ven", Monday: "Lunedì", MondayShort: "Lun", Saturday: "Sabato", SaturdayShort: "Sab", Sunday: "Domenica", SundayShort: "Dom", Tuesday: "Martedì", TuesdayShort: "Mar", Thursday: "Giovedì", ThursdayShort: "Gio", Wednesday: "Mercoledì", WednesdayShort: "Mer" }, In = { April: "Aprile", August: "Agosto", December: "Dicembre", February: "Febbraio", January: "Gennaio", June: "Giugno", July: "Luglio", March: "Marzo", May: "Maggio", October: "Ottobre", November: "Novembre", September: "Settembre" }, Nn = { CalendarFor: "Calendario per", Close: "Chiudi", SpotlightDefaultPlaceholder: "Esegui Comando" }, Mn = {
3708
3716
  Date: { NextDay: "Giorno Successivo", NextMonth: "Mese Successivo", NextWeek: "Settimana Successiva", NextYear: "Anno Successivo", PreviousDay: "Giorno Precedente", PreviousMonth: "Mese Precedente", PreviousWeek: "Settimana Precedente", PreviousYear: "Anno Precedente", Today: "Oggi", Tomorrow: "Domani", Yesterday: "Ieri" },
3709
- Day: In,
3710
- Month: kn,
3717
+ Day: kn,
3718
+ Month: In,
3711
3719
  Generic: Nn
3712
3720
  }, Fn = { Friday: "Friday", FridayShort: "Fri", Monday: "Monday", MondayShort: "Mon", Saturday: "Saturday", SaturdayShort: "Sat", Sunday: "Sunday", SundayShort: "Sun", Tuesday: "Tuesday", TuesdayShort: "Tue", Thursday: "Thursday", ThursdayShort: "Thu", Wednesday: "Wednesday", WednesdayShort: "Wed" }, Vn = { April: "April", August: "August", December: "December", February: "February", January: "January", July: "July", June: "June", March: "March", May: "May", November: "November", October: "October", September: "September" }, Yn = { CalendarFor: "Calendar for", Close: "Close", SpotlightDefaultPlaceholder: "Execute Command" }, Un = {
3713
3721
  Date: { NextDay: "Next Day", NextMonth: "Next Month", NextWeek: "Next Week", NextYear: "Next Year", PreviousDay: "Previous Day", PreviousMonth: "Previous Month", PreviousWeek: "Previous Week", PreviousYear: "Previous Year", Today: "Today", Tomorrow: "Tomorrow", Yesterday: "Yesterday" },
@@ -3736,8 +3744,8 @@ function Bn(r, e, t, n, s) {
3736
3744
  if (typeof a != "number") {
3737
3745
  let o;
3738
3746
  e && n === void 0 ? o = "," : o = ".";
3739
- const c = o == "." ? "," : ".";
3740
- a = a.replace(ur(c, "g"), ""), a = a.replace(ur(o, "g"), "."), a = Number(a);
3747
+ const f = o == "." ? "," : ".";
3748
+ a = a.replace(ur(f, "g"), ""), a = a.replace(ur(o, "g"), "."), a = Number(a);
3741
3749
  }
3742
3750
  const i = Number(a);
3743
3751
  return isNaN(i) ? NaN : i;
@@ -3789,19 +3797,19 @@ ae.init({
3789
3797
  }
3790
3798
  }
3791
3799
  });
3792
- const Kn = (r, e, t, n) => ae.format(r, e, t || ae.language, n), qn = (r, e) => ae.t(r, e);
3800
+ const Kn = (r, e, t, n) => ae.format(r, e, t || ae.language, n), zn = (r, e) => ae.t(r, e);
3793
3801
  function nt() {
3794
3802
  const r = ye(
3795
3803
  (n, s, a, i) => Kn(n, s, a || void 0, i),
3796
3804
  []
3797
3805
  ), e = ye(() => ae.languages[0], []), t = ye(
3798
- (n, s) => qn(n, s),
3806
+ (n, s) => zn(n, s),
3799
3807
  []
3800
3808
  );
3801
3809
  return { format: r, getCurrentLanguage: e, translate: t };
3802
3810
  }
3803
3811
  var Tt = /* @__PURE__ */ ((r) => (r.CALENDAR_FOR = "Date.CalendarFor", r.CLOSE = "Generic.Close", r.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", r))(Tt || {}), le = /* @__PURE__ */ ((r) => (r.MONDAY = "Day.Monday", r.MONDAY_SHORT = "Day.MondayShort", r.TUESDAY = "Day.Tuesday", r.TUESDAY_SHORT = "Day.TuesdayShort", r.WEDNESDAY = "Day.Wednesday", r.WEDNESDAY_SHORT = "Day.WednesdayShort", r.THURSDAY = "Day.Thursday", r.THURSDAY_SHORT = "Day.ThursdayShort", r.FRIDAY = "Day.Friday", r.FRIDAY_SHORT = "Day.FridayShort", r.SATURDAY = "Day.Saturday", r.SATURDAY_SHORT = "Day.SaturdayShort", r.SUNDAY = "Day.Sunday", r.SUNDAY_SHORT = "Day.SundayShort", r))(le || {}), fe = /* @__PURE__ */ ((r) => (r.JANUARY = "Month.January", r.FEBRUARY = "Month.February", r.MARCH = "Month.March", r.APRIL = "Month.April", r.MAY = "Month.May", r.JUNE = "Month.June", r.JULY = "Month.July", r.AUGUST = "Month.August", r.SEPTEMBER = "Month.September", r.OCTOBER = "Month.October", r.NOVEMBER = "Month.November", r.DECEMBER = "Month.December", r))(fe || {}), vt = /* @__PURE__ */ ((r) => (r.PREVIOUS_DAY = "Date.PreviousDay", r.PREVIOUS_WEEK = "Date.PreviousWeek", r.PREVIOUS_MONTH = "Date.PreviousMonth", r.PREVIOUS_YEAR = "Date.PreviousYear", r.NEXT_DAY = "Date.NextDay", r.NEXT_WEEK = "Date.NextWeek", r.NEXT_MONTH = "Date.NextMonth", r.NEXT_YEAR = "Date.NextYear", r.YESTERDAY = "Date.Yesterday", r.TODAY = "Date.Today", r.TOMORROW = "Date.Tomorrow", r))(vt || {});
3804
- function zn({
3812
+ function qn({
3805
3813
  selectedDate: r,
3806
3814
  onDateChange: e,
3807
3815
  disabledDateRanges: t = [],
@@ -3810,16 +3818,16 @@ function zn({
3810
3818
  }) {
3811
3819
  const { translate: a } = nt(), i = () => {
3812
3820
  if (!n) return;
3813
- const L = new Date(n);
3814
- return isNaN(L.getTime()) ? void 0 : L;
3815
- }, [o] = Z(/* @__PURE__ */ new Date()), [c, l] = Z(
3821
+ const _ = new Date(n);
3822
+ return isNaN(_.getTime()) ? void 0 : _;
3823
+ }, [o] = Z(/* @__PURE__ */ new Date()), [f, c] = Z(
3816
3824
  r || i() || /* @__PURE__ */ new Date()
3817
- ), [u, f] = Z(
3818
- c ? c.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
3819
- ), [d, h] = Z(
3820
- c ? c.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
3825
+ ), [u, l] = Z(
3826
+ f ? f.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
3827
+ ), [d, p] = Z(
3828
+ f ? f.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
3821
3829
  ), [m, g] = Z(
3822
- c ? c.getDate() : null
3830
+ f ? f.getDate() : null
3823
3831
  ), x = ve(null), w = ve([]), E = [
3824
3832
  a(fe.JANUARY),
3825
3833
  a(fe.FEBRUARY),
@@ -3833,7 +3841,7 @@ function zn({
3833
3841
  a(fe.OCTOBER),
3834
3842
  a(fe.NOVEMBER),
3835
3843
  a(fe.DECEMBER)
3836
- ], R = [
3844
+ ], O = [
3837
3845
  {
3838
3846
  value: a(le.SUNDAY_SHORT),
3839
3847
  full: a(le.SUNDAY)
@@ -3862,121 +3870,121 @@ function zn({
3862
3870
  value: a(le.SATURDAY_SHORT),
3863
3871
  full: a(le.SATURDAY)
3864
3872
  }
3865
- ], S = (L) => t.some((p) => {
3866
- const y = p.start.getTime(), T = p.end.getTime(), $ = L.getTime();
3873
+ ], S = (_) => t.some((h) => {
3874
+ const y = h.start.getTime(), T = h.end.getTime(), $ = _.getTime();
3867
3875
  return $ >= y && $ <= T;
3868
- }), b = (L) => {
3869
- S(L) || (l(L), g(L.getDate()), e && e(Yr(L)));
3870
- }, k = () => {
3871
- u === 0 ? (f(11), h(d - 1)) : f(u - 1), g(1);
3876
+ }), b = (_) => {
3877
+ S(_) || (c(_), g(_.getDate()), e && e(Yr(_)));
3878
+ }, L = () => {
3879
+ u === 0 ? (l(11), p(d - 1)) : l(u - 1), g(1);
3872
3880
  }, C = () => {
3873
- u === 11 ? (f(0), h(d + 1)) : f(u + 1), g(1);
3874
- }, Y = (L, p) => new Date(L, p + 1, 0).getDate(), j = (L, p) => new Date(L, p, 1).getDay(), P = (L) => {
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 = (_) => {
3875
3883
  var y;
3876
- const p = H.findIndex(
3877
- (T) => T !== null && T.getDate() === L
3884
+ const h = H.findIndex(
3885
+ (T) => T !== null && T.getDate() === _
3878
3886
  );
3879
- p !== -1 && w.current[p] && ((y = w.current[p]) == null || y.focus(), g(L));
3880
- }, D = (L, p) => {
3881
- const y = H[p];
3887
+ h !== -1 && w.current[h] && ((y = w.current[h]) == null || y.focus(), g(_));
3888
+ }, D = (_, h) => {
3889
+ const y = H[h];
3882
3890
  if (!y) return;
3883
3891
  const T = Y(d, u), $ = y.getDate();
3884
- switch (L.key) {
3892
+ switch (_.key) {
3885
3893
  case "ArrowRight":
3886
- L.preventDefault();
3894
+ _.preventDefault();
3887
3895
  {
3888
- let O = $ + 1, A = new Date(d, u, O);
3889
- if (O > T) {
3896
+ let R = $ + 1, A = new Date(d, u, R);
3897
+ if (R > T) {
3890
3898
  const M = u === 11 ? d + 1 : d, F = u === 11 ? 0 : u + 1;
3891
- O = 1, A = new Date(M, F, O), C(), setTimeout(() => {
3892
- _(1, "forward");
3899
+ R = 1, A = new Date(M, F, R), C(), setTimeout(() => {
3900
+ k(1, "forward");
3893
3901
  }, 0);
3894
3902
  return;
3895
3903
  }
3896
- S(A) ? _(O, "forward") : P(O);
3904
+ S(A) ? k(R, "forward") : P(R);
3897
3905
  }
3898
3906
  break;
3899
3907
  case "Tab":
3900
3908
  break;
3901
3909
  case "ArrowLeft":
3902
- L.preventDefault();
3910
+ _.preventDefault();
3903
3911
  {
3904
- let O = $ - 1, A = new Date(d, u, O);
3905
- if (O < 1) {
3912
+ let R = $ - 1, A = new Date(d, u, R);
3913
+ if (R < 1) {
3906
3914
  const M = u === 0 ? d - 1 : d, F = u === 0 ? 11 : u - 1, N = Y(M, F);
3907
- O = N, A = new Date(M, F, O), k(), setTimeout(() => {
3908
- _(N, "backward");
3915
+ R = N, A = new Date(M, F, R), L(), setTimeout(() => {
3916
+ k(N, "backward");
3909
3917
  }, 0);
3910
3918
  return;
3911
3919
  }
3912
- S(A) ? _(O, "backward") : P(O);
3920
+ S(A) ? k(R, "backward") : P(R);
3913
3921
  }
3914
3922
  break;
3915
3923
  case "ArrowUp":
3916
- L.preventDefault();
3924
+ _.preventDefault();
3917
3925
  {
3918
- let O = $ - 7, A = new Date(d, u, O);
3919
- if (O < 1) {
3926
+ let R = $ - 7, A = new Date(d, u, R);
3927
+ if (R < 1) {
3920
3928
  const M = u === 0 ? d - 1 : d, F = u === 0 ? 11 : u - 1;
3921
- O = Y(M, F) + O, A = new Date(M, F, O), k(), setTimeout(() => {
3922
- _(O, "backward");
3929
+ R = Y(M, F) + R, A = new Date(M, F, R), L(), setTimeout(() => {
3930
+ k(R, "backward");
3923
3931
  }, 0);
3924
3932
  return;
3925
3933
  }
3926
- S(A) ? _(O, "backward") : P(O);
3934
+ S(A) ? k(R, "backward") : P(R);
3927
3935
  }
3928
3936
  break;
3929
3937
  case "ArrowDown":
3930
- L.preventDefault();
3938
+ _.preventDefault();
3931
3939
  {
3932
- let O = $ + 7, A = new Date(d, u, O);
3933
- if (O > T) {
3940
+ let R = $ + 7, A = new Date(d, u, R);
3941
+ if (R > T) {
3934
3942
  const M = u === 11 ? d + 1 : d, F = u === 11 ? 0 : u + 1;
3935
- O = O - T, A = new Date(M, F, O), C(), setTimeout(() => {
3936
- _(O, "forward");
3943
+ R = R - T, A = new Date(M, F, R), C(), setTimeout(() => {
3944
+ k(R, "forward");
3937
3945
  }, 0);
3938
3946
  return;
3939
3947
  }
3940
- S(A) ? _(O, "forward") : P(O);
3948
+ S(A) ? k(R, "forward") : P(R);
3941
3949
  }
3942
3950
  break;
3943
3951
  case "Home":
3944
- L.preventDefault(), _(1, "forward");
3952
+ _.preventDefault(), k(1, "forward");
3945
3953
  break;
3946
3954
  case "End":
3947
- L.preventDefault(), _(T, "backward");
3955
+ _.preventDefault(), k(T, "backward");
3948
3956
  break;
3949
3957
  case "PageUp":
3950
- L.preventDefault(), k(), setTimeout(() => {
3951
- const O = Y(
3958
+ _.preventDefault(), L(), setTimeout(() => {
3959
+ const R = Y(
3952
3960
  u === 0 ? d - 1 : d,
3953
3961
  u === 0 ? 11 : u - 1
3954
- ), A = Math.min($, O);
3955
- _(A, "forward");
3962
+ ), A = Math.min($, R);
3963
+ k(A, "forward");
3956
3964
  }, 0);
3957
3965
  break;
3958
3966
  case "PageDown":
3959
- L.preventDefault(), C(), setTimeout(() => {
3960
- const O = Y(
3967
+ _.preventDefault(), C(), setTimeout(() => {
3968
+ const R = Y(
3961
3969
  u === 11 ? d + 1 : d,
3962
3970
  u === 11 ? 0 : u + 1
3963
- ), A = Math.min($, O);
3964
- _(A, "forward");
3971
+ ), A = Math.min($, R);
3972
+ k(A, "forward");
3965
3973
  }, 0);
3966
3974
  break;
3967
3975
  case " ":
3968
3976
  case "Space":
3969
3977
  if (S(y)) return;
3970
- g(y.getDate()), l(y);
3978
+ g(y.getDate()), c(y);
3971
3979
  break;
3972
3980
  case "Enter":
3973
- L.preventDefault(), b(y);
3981
+ _.preventDefault(), b(y);
3974
3982
  break;
3975
3983
  }
3976
- }, _ = (L, p) => {
3984
+ }, k = (_, h) => {
3977
3985
  const y = Y(d, u);
3978
- if (p === "forward") {
3979
- for (let T = L; T <= y; T++) {
3986
+ if (h === "forward") {
3987
+ for (let T = _; T <= y; T++) {
3980
3988
  const $ = new Date(d, u, T);
3981
3989
  if (!S($)) {
3982
3990
  P(T);
@@ -3984,45 +3992,45 @@ function zn({
3984
3992
  }
3985
3993
  }
3986
3994
  C(), setTimeout(() => {
3987
- _(1, "forward");
3995
+ k(1, "forward");
3988
3996
  }, 0);
3989
3997
  } else {
3990
- for (let A = L; A >= 1; A--) {
3998
+ for (let A = _; A >= 1; A--) {
3991
3999
  const M = new Date(d, u, A);
3992
4000
  if (!S(M)) {
3993
4001
  P(A);
3994
4002
  return;
3995
4003
  }
3996
4004
  }
3997
- const T = u === 0 ? d - 1 : d, $ = u === 0 ? 11 : u - 1, O = Y(T, $);
3998
- k(), setTimeout(() => {
3999
- _(O, "backward");
4005
+ const T = u === 0 ? d - 1 : d, $ = u === 0 ? 11 : u - 1, R = Y(T, $);
4006
+ L(), setTimeout(() => {
4007
+ k(R, "backward");
4000
4008
  }, 0);
4001
4009
  }
4002
4010
  }, H = (() => {
4003
- const L = Y(d, u), p = j(d, u), y = [];
4004
- for (let T = 0; T < p; T++)
4011
+ const _ = Y(d, u), h = j(d, u), y = [];
4012
+ for (let T = 0; T < h; T++)
4005
4013
  y.push(null);
4006
- for (let T = 1; T <= L; T++) {
4014
+ for (let T = 1; T <= _; T++) {
4007
4015
  const $ = new Date(d, u, T);
4008
4016
  y.push($);
4009
4017
  }
4010
4018
  return y;
4011
- })(), q = [];
4019
+ })(), z = [];
4012
4020
  let K = [];
4013
- H.forEach((L, p) => {
4014
- if (K.push(L), K.length === 7 || p === H.length - 1) {
4021
+ H.forEach((_, h) => {
4022
+ if (K.push(_), K.length === 7 || h === H.length - 1) {
4015
4023
  for (; K.length < 7; )
4016
4024
  K.push(null);
4017
- q.push(K), K = [];
4025
+ z.push(K), K = [];
4018
4026
  }
4019
4027
  }), oe(() => {
4020
- var L;
4028
+ var _;
4021
4029
  if (m !== null) {
4022
- const p = H.findIndex(
4030
+ const h = H.findIndex(
4023
4031
  (y) => y !== null && y.getDate() === m
4024
4032
  );
4025
- p !== -1 && w.current[p] && ((L = w.current[p]) == null || L.focus());
4033
+ h !== -1 && w.current[h] && ((_ = w.current[h]) == null || _.focus());
4026
4034
  }
4027
4035
  }, [u, d, m, H]);
4028
4036
  const J = {
@@ -4031,9 +4039,9 @@ function zn({
4031
4039
  calendar: "smp-datepickercalendar",
4032
4040
  table: "smp-datepickercalendar-table",
4033
4041
  th: "smp-datepickercalendar-th",
4034
- td: (L, p, y, T) => `smp-datepickercalendar-td
4035
- ${L ? "smp-datepickercalendar-td-today" : ""}
4036
- ${p ? "smp-datepickercalendar-td-selected" : ""}
4042
+ td: (_, h, y, T) => `smp-datepickercalendar-td
4043
+ ${_ ? "smp-datepickercalendar-td-today" : ""}
4044
+ ${h ? "smp-datepickercalendar-td-selected" : ""}
4037
4045
  ${y ? "smp-datepickercalendar-td-focused" : ""}
4038
4046
  ${T ? "smp-datepickercalendar-td-disabled" : ""}`
4039
4047
  }, W = () => `${E[u]} ${d.toString()}`;
@@ -4060,11 +4068,12 @@ function zn({
4060
4068
  /* @__PURE__ */ v.jsx(
4061
4069
  De,
4062
4070
  {
4063
- onClick: k,
4071
+ onClick: L,
4064
4072
  ariaLabel: a(vt.PREVIOUS_MONTH),
4065
- bindValue: "<",
4073
+ optionalDisplayValue: "<",
4066
4074
  appearance: "ghost",
4067
- variant: "base"
4075
+ variant: "base",
4076
+ bindValue: "<"
4068
4077
  }
4069
4078
  ),
4070
4079
  /* @__PURE__ */ v.jsx(
@@ -4081,6 +4090,7 @@ function zn({
4081
4090
  onClick: C,
4082
4091
  ariaLabel: a(vt.NEXT_MONTH),
4083
4092
  bindValue: ">",
4093
+ optionalDisplayValue: ">",
4084
4094
  appearance: "ghost",
4085
4095
  variant: "base"
4086
4096
  }
@@ -4096,18 +4106,18 @@ function zn({
4096
4106
  "aria-label": `${a(Tt.CALENDAR_FOR)} ${E[u]} ${d}`,
4097
4107
  className: J.table,
4098
4108
  children: [
4099
- /* @__PURE__ */ v.jsx("thead", { children: /* @__PURE__ */ v.jsx("tr", { children: R.map((L) => /* @__PURE__ */ v.jsx(
4109
+ /* @__PURE__ */ v.jsx("thead", { children: /* @__PURE__ */ v.jsx("tr", { children: O.map((_) => /* @__PURE__ */ v.jsx(
4100
4110
  "th",
4101
4111
  {
4102
4112
  scope: "col",
4103
- abbr: L.full,
4113
+ abbr: _.full,
4104
4114
  className: J.th,
4105
- children: L.value
4115
+ children: _.value
4106
4116
  },
4107
- L.value
4117
+ _.value
4108
4118
  )) }) }),
4109
- /* @__PURE__ */ v.jsx("tbody", { children: q.map((L, p) => /* @__PURE__ */ v.jsx("tr", { children: L.map((y, T) => {
4110
- const $ = p * 7 + T;
4119
+ /* @__PURE__ */ v.jsx("tbody", { children: z.map((_, h) => /* @__PURE__ */ v.jsx("tr", { children: _.map((y, T) => {
4120
+ const $ = h * 7 + T;
4111
4121
  if (y === null)
4112
4122
  return /* @__PURE__ */ v.jsx(
4113
4123
  "td",
@@ -4121,7 +4131,7 @@ function zn({
4121
4131
  },
4122
4132
  `empty-${T}`
4123
4133
  );
4124
- const O = y.getDate() === o.getDate() && y.getMonth() === o.getMonth() && y.getFullYear() === o.getFullYear(), A = c && y.getDate() === c.getDate() && y.getMonth() === c.getMonth() && y.getFullYear() === c.getFullYear(), M = m === y.getDate(), F = S(y);
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);
4125
4135
  return /* @__PURE__ */ v.jsx(
4126
4136
  "td",
4127
4137
  {
@@ -4137,7 +4147,7 @@ function zn({
4137
4147
  w.current[$] = N;
4138
4148
  },
4139
4149
  className: J.td(
4140
- O,
4150
+ R,
4141
4151
  A,
4142
4152
  M,
4143
4153
  F
@@ -4146,7 +4156,7 @@ function zn({
4146
4156
  },
4147
4157
  `day-${T}`
4148
4158
  );
4149
- }) }, `week-${p}`)) })
4159
+ }) }, `week-${h}`)) })
4150
4160
  ]
4151
4161
  }
4152
4162
  )
@@ -4162,11 +4172,11 @@ const Jn = ({
4162
4172
  isEditable: s = !0,
4163
4173
  ...a
4164
4174
  }) => {
4165
- const [i, o] = Z(!1), [c, l] = Z(r || ""), [u, f] = Z(""), { anchorRef: d, targetRef: h } = St({
4175
+ const [i, o] = Z(!1), [f, c] = Z(r || ""), [u, l] = Z(""), { anchorRef: d, targetRef: p } = St({
4166
4176
  position: "bottom",
4167
4177
  enabled: i
4168
4178
  });
4169
- Je(h, () => {
4179
+ Je(p, () => {
4170
4180
  o(!1);
4171
4181
  }), Je(d, () => {
4172
4182
  if (
@@ -4176,7 +4186,7 @@ const Jn = ({
4176
4186
  const C = d.current.querySelector("input");
4177
4187
  C && C === document.activeElement && E();
4178
4188
  }
4179
- }), Tr(i, h);
4189
+ }), Tr(i, p);
4180
4190
  const { format: m, getCurrentLanguage: g } = nt(), x = ye(
4181
4191
  (C) => {
4182
4192
  const Y = C.length > 5 && Mr(C, g()) || C, j = m(Y, void 0, void 0, {
@@ -4193,18 +4203,18 @@ const Jn = ({
4193
4203
  );
4194
4204
  oe(() => {
4195
4205
  const { formattedDate: C, isoDate: Y, isValid: j } = x(r);
4196
- l(j && Y || r), f(j && C || r);
4206
+ c(j && Y || r), l(j && C || r);
4197
4207
  }, [r, m, x]);
4198
4208
  const w = () => o((C) => !C), E = () => {
4199
4209
  S(u);
4200
- }, R = (C) => {
4210
+ }, O = (C) => {
4201
4211
  S(C), o(!1);
4202
4212
  }, S = (C) => {
4203
4213
  const { isoDate: Y, isValid: j } = x(C);
4204
4214
  t && t(j && Y || C);
4205
4215
  }, b = (C) => {
4206
- f(C);
4207
- }, k = (C) => {
4216
+ l(C);
4217
+ }, L = (C) => {
4208
4218
  C.key === "Enter" && (C.preventDefault(), S(u));
4209
4219
  };
4210
4220
  return /* @__PURE__ */ v.jsxs("div", { "data-component": "date-picker", children: [
@@ -4215,7 +4225,7 @@ const Jn = ({
4215
4225
  placeholder: e,
4216
4226
  onBlur: E,
4217
4227
  onChange: b,
4218
- onKeyDown: k,
4228
+ onKeyDown: L,
4219
4229
  shapeIcon: "calendar",
4220
4230
  onShapeIconClick: w,
4221
4231
  ref: d,
@@ -4224,12 +4234,12 @@ const Jn = ({
4224
4234
  }
4225
4235
  ),
4226
4236
  i && /* @__PURE__ */ v.jsx(
4227
- zn,
4237
+ qn,
4228
4238
  {
4229
4239
  disabledDateRanges: n,
4230
- onDateChange: R,
4231
- initialValue: xt(c) && c || "",
4232
- targetRef: h
4240
+ onDateChange: O,
4241
+ initialValue: xt(f) && f || "",
4242
+ targetRef: p
4233
4243
  }
4234
4244
  )
4235
4245
  ] });
@@ -4242,11 +4252,11 @@ const Jn = ({
4242
4252
  placeholder: a,
4243
4253
  label: i,
4244
4254
  disabled: o,
4245
- fun: c,
4246
- onOptionsRequest: l,
4255
+ fun: f,
4256
+ onOptionsRequest: c,
4247
4257
  onChange: u
4248
4258
  }) => {
4249
- const f = r.map((m) => m.bindValue), d = (m, g) => {
4259
+ const l = r.map((m) => m.bindValue), d = (m, g) => {
4250
4260
  const x = [...r];
4251
4261
  if (m == "")
4252
4262
  x.pop();
@@ -4260,13 +4270,13 @@ const Jn = ({
4260
4270
  });
4261
4271
  }
4262
4272
  u == null || u(x);
4263
- }, h = {
4273
+ }, p = {
4264
4274
  container: "smp-multipleAutocomplete-container"
4265
4275
  };
4266
4276
  return /* @__PURE__ */ v.jsxs(
4267
4277
  "div",
4268
4278
  {
4269
- className: h.container,
4279
+ className: p.container,
4270
4280
  "data-component": "multiple-autocomplete",
4271
4281
  children: [
4272
4282
  i && /* @__PURE__ */ v.jsx($e, { label: i, disabled: o }),
@@ -4285,15 +4295,15 @@ const Jn = ({
4285
4295
  Er,
4286
4296
  {
4287
4297
  bindValue: "",
4288
- fun: c,
4298
+ fun: f,
4289
4299
  isEditable: s,
4290
4300
  onChange: d,
4291
4301
  _changeOnEnter: !0,
4292
4302
  listDisplayMode: n,
4293
4303
  minimumChars: t,
4294
4304
  placeholder: a,
4295
- onOptionsRequest: l,
4296
- _multiActiveIndex: f
4305
+ onOptionsRequest: c,
4306
+ _multiActiveIndex: l
4297
4307
  }
4298
4308
  )
4299
4309
  ]
@@ -4342,14 +4352,14 @@ const Jn = ({
4342
4352
  return t ? /* @__PURE__ */ v.jsxs("div", { className: n.wrapper, children: [
4343
4353
  /* @__PURE__ */ v.jsx($e, { label: t }),
4344
4354
  /* @__PURE__ */ v.jsx(
4345
- Ie,
4355
+ ke,
4346
4356
  {
4347
4357
  variant: "body",
4348
4358
  bindValue: e || r
4349
4359
  }
4350
4360
  )
4351
4361
  ] }) : /* @__PURE__ */ v.jsx(
4352
- Ie,
4362
+ ke,
4353
4363
  {
4354
4364
  variant: "body",
4355
4365
  bindValue: e || r
@@ -4414,34 +4424,34 @@ const Ge = (r, e, t) => ({
4414
4424
  appearance: a,
4415
4425
  isEditable: i,
4416
4426
  label: o,
4417
- ariaLabel: c,
4418
- helperText: l,
4427
+ ariaLabel: f,
4428
+ helperText: c,
4419
4429
  error: u,
4420
- onBlur: f,
4430
+ onBlur: l,
4421
4431
  onKeyDown: d
4422
4432
  }) => {
4423
- const h = bt(), m = `${h}-helper`, g = u ? "danger" : s, x = l || !!u, w = (R) => {
4424
- t == null || t(R.target.value);
4433
+ const p = bt(), m = `${p}-helper`, g = u ? "danger" : s, x = c || !!u, w = (O) => {
4434
+ t == null || t(O.target.value);
4425
4435
  }, E = {
4426
4436
  wrapper: "smp-textarea-wrapper",
4427
4437
  container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${g ? `smp-textarea-${g}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
4428
4438
  };
4429
4439
  return /* @__PURE__ */ v.jsxs("div", { className: E.wrapper, "data-component": "textarea", children: [
4430
- o && /* @__PURE__ */ v.jsx($e, { htmlFor: h, label: o, disabled: r }),
4440
+ o && /* @__PURE__ */ v.jsx($e, { htmlFor: p, label: o, disabled: r }),
4431
4441
  /* @__PURE__ */ v.jsx(
4432
4442
  "textarea",
4433
4443
  {
4434
- id: h,
4444
+ id: p,
4435
4445
  value: e,
4436
4446
  placeholder: n,
4437
4447
  onChange: w,
4438
- onBlur: f,
4448
+ onBlur: l,
4439
4449
  className: E.container,
4440
4450
  disabled: r,
4441
4451
  readOnly: !i,
4442
4452
  onKeyDown: d,
4443
- "aria-label": o ? void 0 : c,
4444
- "aria-labelledby": o ? h : void 0,
4453
+ "aria-label": o ? void 0 : f,
4454
+ "aria-labelledby": o ? p : void 0,
4445
4455
  "aria-describedby": x ? m : void 0
4446
4456
  }
4447
4457
  ),
@@ -4464,12 +4474,12 @@ const Ge = (r, e, t) => ({
4464
4474
  fun: a,
4465
4475
  placeholderIcon: i,
4466
4476
  label: o,
4467
- options: c,
4468
- onChange: l,
4477
+ options: f,
4478
+ onChange: c,
4469
4479
  onClick: u,
4470
- onEnter: f,
4480
+ onEnter: l,
4471
4481
  onBlur: d,
4472
- onOptionsRequest: h,
4482
+ onOptionsRequest: p,
4473
4483
  isEditable: m
4474
4484
  }) => {
4475
4485
  const g = {
@@ -4480,21 +4490,21 @@ const Ge = (r, e, t) => ({
4480
4490
  fun: a
4481
4491
  }, x = {
4482
4492
  onBlur: d,
4483
- onOptionsRequest: h,
4493
+ onOptionsRequest: p,
4484
4494
  fun: a,
4485
4495
  icon: s,
4486
4496
  label: o,
4487
4497
  isEditable: m,
4488
4498
  ...n
4489
- }, w = (S, b, k) => kr(t) ? Ge(S, new ze(t, b).getLegacyValue()) : Ge(S, b, k), E = (S) => Ge(g, new qe(t, S).getLegacyValue()), R = (S) => ts(g, S);
4499
+ }, w = (S, b, L) => Ir(t) ? Ge(S, new qe(t, b).getLegacyValue()) : Ge(S, b, L), E = (S) => Ge(g, new ze(t, S).getLegacyValue()), O = (S) => ts(g, S);
4490
4500
  switch (e) {
4491
4501
  case ne.AUTOCOMPLETE: {
4492
4502
  const S = {
4493
4503
  ...x,
4494
4504
  bindValue: t.k,
4495
4505
  optionalDisplayValue: r,
4496
- onChange: (b, k) => {
4497
- l == null || l(w(g, b, k));
4506
+ onChange: (b, L) => {
4507
+ c == null || c(w(g, b, L));
4498
4508
  }
4499
4509
  };
4500
4510
  return /* @__PURE__ */ v.jsx(Er, { ...S });
@@ -4513,9 +4523,9 @@ const Ge = (r, e, t) => ({
4513
4523
  case ne.BUTTON_LIST: {
4514
4524
  const S = {
4515
4525
  ...x,
4516
- options: c,
4517
- onClick: (b, k) => {
4518
- const C = { ...g, fun: k };
4526
+ options: f,
4527
+ onClick: (b, L) => {
4528
+ const C = { ...g, fun: L };
4519
4529
  u == null || u(w(C, b));
4520
4530
  }
4521
4531
  };
@@ -4526,8 +4536,8 @@ const Ge = (r, e, t) => ({
4526
4536
  ...x,
4527
4537
  bindValue: t.k,
4528
4538
  optionalDisplayValue: r,
4529
- onChange: (b, k) => {
4530
- l == null || l(w(g, b, k));
4539
+ onChange: (b, L) => {
4540
+ c == null || c(w(g, b, L));
4531
4541
  }
4532
4542
  };
4533
4543
  return /* @__PURE__ */ v.jsx(mn, { ...S });
@@ -4536,10 +4546,10 @@ const Ge = (r, e, t) => ({
4536
4546
  case ne.CHECKBOX: {
4537
4547
  const S = {
4538
4548
  ...x,
4539
- bindValue: qe.fromDataObj(t).getValue(),
4549
+ bindValue: ze.fromDataObj(t).getValue(),
4540
4550
  optionalDisplayValue: r,
4541
4551
  onChange: (b) => {
4542
- l == null || l(E(b));
4552
+ c == null || c(E(b));
4543
4553
  }
4544
4554
  };
4545
4555
  return /* @__PURE__ */ v.jsx(pn, { ...S });
@@ -4554,9 +4564,9 @@ const Ge = (r, e, t) => ({
4554
4564
  case ne.DATE: {
4555
4565
  const S = {
4556
4566
  ...x,
4557
- bindValue: ze.fromDataObj(t).getValue(),
4567
+ bindValue: qe.fromDataObj(t).getValue(),
4558
4568
  onChange: (b) => {
4559
- l == null || l(w(g, b));
4569
+ c == null || c(w(g, b));
4560
4570
  }
4561
4571
  };
4562
4572
  return /* @__PURE__ */ v.jsx(Jn, { ...S });
@@ -4579,7 +4589,7 @@ const Ge = (r, e, t) => ({
4579
4589
  ...x,
4580
4590
  elements: fr(g),
4581
4591
  onChange: (b) => {
4582
- l == null || l(R(b));
4592
+ c == null || c(O(b));
4583
4593
  }
4584
4594
  };
4585
4595
  return /* @__PURE__ */ v.jsx(Xn, { ...S });
@@ -4590,7 +4600,7 @@ const Ge = (r, e, t) => ({
4590
4600
  bindValue: t.k,
4591
4601
  optionalDisplayValue: r,
4592
4602
  onChange: (b) => {
4593
- l == null || l(w(g, b));
4603
+ c == null || c(w(g, b));
4594
4604
  }
4595
4605
  };
4596
4606
  return /* @__PURE__ */ v.jsx(rs, { ...S });
@@ -4600,7 +4610,7 @@ const Ge = (r, e, t) => ({
4600
4610
  ...x,
4601
4611
  bindValue: t.k,
4602
4612
  onChange: (b) => {
4603
- l == null || l(w(g, b));
4613
+ c == null || c(w(g, b));
4604
4614
  }
4605
4615
  };
4606
4616
  return /* @__PURE__ */ v.jsx(Zn, { ...S });
@@ -4610,7 +4620,7 @@ const Ge = (r, e, t) => ({
4610
4620
  ...x,
4611
4621
  bindValue: t.k,
4612
4622
  onEnter: (b) => {
4613
- f == null || f(w(g, b));
4623
+ l == null || l(w(g, b));
4614
4624
  }
4615
4625
  };
4616
4626
  return /* @__PURE__ */ v.jsx(Qn, { ...S });
@@ -4621,7 +4631,7 @@ const Ge = (r, e, t) => ({
4621
4631
  bindValue: t.k,
4622
4632
  optionalDisplayValue: r,
4623
4633
  onChange: (b) => {
4624
- l == null || l(w(g, b));
4634
+ c == null || c(w(g, b));
4625
4635
  }
4626
4636
  };
4627
4637
  return /* @__PURE__ */ v.jsx(Ce, { ...S });
@@ -4650,13 +4660,13 @@ const Ge = (r, e, t) => ({
4650
4660
  };
4651
4661
  let n = t.sections, s = t.content;
4652
4662
  return (i = t.content) != null && i.length && t.columns && +t.columns > 1 && (n = ns(
4653
- t.content.filter((c) => !!e[c.id]),
4663
+ t.content.filter((f) => !!e[f.id]),
4654
4664
  +t.columns
4655
4665
  ).map(
4656
- (c, l) => ({
4666
+ (f, c) => ({
4657
4667
  ...t,
4658
- id: `${t.id}-${l}`,
4659
- content: c,
4668
+ id: `${t.id}-${c}`,
4669
+ content: f,
4660
4670
  gridCols: t.columns,
4661
4671
  horizontal: !0
4662
4672
  })
@@ -4685,96 +4695,106 @@ const Ge = (r, e, t) => ({
4685
4695
  "smp-grid-template-rows": "_smp-grid-template-rows_xrjwg_48",
4686
4696
  "smp-layout-section-with-title": "_smp-layout-section-with-title_xrjwg_52",
4687
4697
  "smp-layout-section-title": "_smp-layout-section-title_xrjwg_58"
4688
- }, Rt = ({ layout: r, cells: e }) => {
4689
- var f;
4690
- if (!((f = r.sections) != null && f.length))
4691
- return /* @__PURE__ */ v.jsx(v.Fragment, {});
4692
- const t = "--smp-grid-template-cols", n = "--smp-grid-template-rows", s = jr(r.sections, e), a = (d) => d == null ? void 0 : d.reduce((h, m) => {
4693
- var R, S;
4694
- let g = "", x = {}, w = {}, E = "";
4695
- return (R = m.sections) != null && R.length ? (g = pe["smp-layout-section-grid"], x = a(m.sections), m.gridCols == null && (E = `${pe[m.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"]}`, (m.horizontal || pr(m.sections)) && (w = dr(
4696
- m.sections,
4697
- m.horizontal ? t : n
4698
- )))) : (S = m.content) != null && S.length && (m.gridCols !== void 0 && m.gridCols > 0 ? (g = pe["smp-layout-section-grid"], E = `${pe["smp-grid-template-cols"]}`, w = {
4699
- [t]: `repeat(${m.gridCols}, 1fr)`
4700
- }) : g = pe["smp-layout-section-flex"]), {
4701
- ...h,
4702
- ...x,
4703
- [m.id]: {
4704
- classes: `${g} ${pe[m.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${E} ${m.justify ? `smp-justifyContent-${m.justify}` : ""} ${m.align ? `smp-alignItems-${m.align}` : ""}`,
4705
- styles: w
4698
+ }, Rt = ({
4699
+ cells: r,
4700
+ layout: e = {
4701
+ horizontal: !1,
4702
+ sections: [
4703
+ {
4704
+ id: "1",
4705
+ content: Object.keys(r).map((t) => ({
4706
+ id: t
4707
+ }))
4708
+ }
4709
+ ]
4710
+ }
4711
+ }) => {
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) => {
4713
+ var E, O;
4714
+ 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)`
4720
+ }) : m = pe["smp-layout-section-flex"]), {
4721
+ ...d,
4722
+ ...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
+ styles: x
4706
4726
  }
4707
4727
  };
4708
4728
  }, {}), i = a(s), o = {
4709
- container: `${pe["smp-layout"]} ${r.horizontal ? pe["smp-layout-horizontal"] : pe["smp-layout-vertical"]}`,
4729
+ container: `${pe["smp-layout"]} ${e.horizontal ? pe["smp-layout-horizontal"] : pe["smp-layout-vertical"]}`,
4710
4730
  sections: i
4711
- }, c = r.horizontal || pr(r.sections) ? dr(
4731
+ }, f = e.horizontal || pr(e.sections || []) ? dr(
4712
4732
  s,
4713
- r.horizontal ? t : n
4714
- ) : {}, l = (d) => {
4715
- var m;
4716
- const h = /* @__PURE__ */ v.jsx(
4733
+ e.horizontal ? t : n
4734
+ ) : {}, c = (l) => {
4735
+ var p;
4736
+ const d = /* @__PURE__ */ v.jsx(
4717
4737
  "div",
4718
4738
  {
4719
- "smp-id": "section-" + d.id,
4720
- className: o.sections[d.id].classes,
4721
- style: o.sections[d.id].styles,
4722
- children: (m = d.sections) != null && m.length ? d.sections.map((g) => l(g)) : d.content.map(
4723
- (g) => u(
4724
- g,
4725
- e[g.id],
4726
- d.justify,
4727
- d.align
4739
+ "smp-id": "section-" + l.id,
4740
+ className: o.sections[l.id].classes,
4741
+ 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
+ m,
4745
+ r[m.id],
4746
+ l.justify,
4747
+ l.align
4728
4748
  )
4729
4749
  )
4730
4750
  },
4731
- "section-" + d.id
4751
+ "section-" + l.id
4732
4752
  );
4733
- return d.title ? /* @__PURE__ */ v.jsxs("div", { className: `${pe["smp-layout-section-with-title"]}`, children: [
4753
+ return l.title ? /* @__PURE__ */ v.jsxs("div", { className: `${pe["smp-layout-section-with-title"]}`, children: [
4734
4754
  /* @__PURE__ */ v.jsx(
4735
4755
  "span",
4736
4756
  {
4737
- className: `${pe["smp-layout-section-title"]} ${d.justify ? `smp-justifyContent-${d.justify}` : ""} ${d.align ? `smp-alignItems-${d.align}` : ""}`,
4738
- children: /* @__PURE__ */ v.jsx($e, { label: d.title })
4757
+ className: `${pe["smp-layout-section-title"]} ${l.justify ? `smp-justifyContent-${l.justify}` : ""} ${l.align ? `smp-alignItems-${l.align}` : ""}`,
4758
+ children: /* @__PURE__ */ v.jsx($e, { label: l.title })
4739
4759
  }
4740
4760
  ),
4741
- h
4742
- ] }) : h;
4743
- }, u = (d, h, m, g) => {
4744
- const x = d.colSpan !== void 0 ? d.colSpan > 0 ? d.colSpan : d.colStart !== void 0 && d.colStart < 1 ? 1 : null : null, w = x !== null ? `span ${x}` : d.colStart, E = d.colEnd !== void 0 && d.colEnd > 0 ? d.colEnd : "", R = {
4745
- gridColumnStart: w,
4746
- gridColumnEnd: E
4747
- }, S = `${pe["smp-layout-cell-container"]} ${m ? `smp-justifyContent-${m}` : ""} ${g ? `smp-alignItems-${g}` : ""}`;
4748
- return h ? /* @__PURE__ */ v.jsx(
4761
+ d
4762
+ ] }) : d;
4763
+ }, u = (l, d, p, m) => {
4764
+ 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
+ gridColumnStart: x,
4766
+ gridColumnEnd: w
4767
+ }, O = `${pe["smp-layout-cell-container"]} ${p ? `smp-justifyContent-${p}` : ""} ${m ? `smp-alignItems-${m}` : ""}`;
4768
+ return d ? /* @__PURE__ */ v.jsx(
4749
4769
  "div",
4750
4770
  {
4751
- className: S,
4752
- style: { ...R },
4753
- "smp-id": d.id,
4754
- children: /* @__PURE__ */ v.jsx(Ot, { ...h })
4771
+ className: O,
4772
+ style: { ...E },
4773
+ "smp-id": l.id,
4774
+ children: /* @__PURE__ */ v.jsx(Ot, { ...d })
4755
4775
  },
4756
- d.id
4776
+ l.id
4757
4777
  ) : /* @__PURE__ */ v.jsx(v.Fragment, {});
4758
4778
  };
4759
- return /* @__PURE__ */ v.jsx("div", { className: o.container, style: c, "smp-id": "layout", children: s == null ? void 0 : s.map((d) => l(d)) });
4779
+ return /* @__PURE__ */ v.jsx("div", { className: o.container, style: f, "smp-id": "layout", children: s == null ? void 0 : s.map((l) => c(l)) });
4760
4780
  }, ws = ({ data: r, onClick: e, onEnter: t }) => {
4761
4781
  var i, o;
4762
4782
  const [n, s] = Z(), a = ye(
4763
- (c) => {
4764
- var u, f;
4765
- if (!((u = c.rows) != null && u.length) || !((f = c.columns) != null && f.length))
4783
+ (f) => {
4784
+ var u, l;
4785
+ if (!((u = f.rows) != null && u.length) || !((l = f.columns) != null && l.length))
4766
4786
  return {};
4767
- const l = c.rows[0];
4768
- return c.columns.filter((d) => d.visible).reduce((d, h) => {
4769
- const m = l.cells[h.name], g = {
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 = {
4770
4790
  ...m,
4771
4791
  onChange: (x) => {
4772
4792
  s((w) => w && {
4773
4793
  ...w,
4774
- [h.name]: {
4775
- ...w[h.name],
4794
+ [p.name]: {
4795
+ ...w[p.name],
4776
4796
  obj: {
4777
- ...w[h.name].obj,
4797
+ ...w[p.name].obj,
4778
4798
  k: x.obj.k
4779
4799
  }
4780
4800
  }
@@ -4791,7 +4811,7 @@ const Ge = (r, e, t) => ({
4791
4811
  };
4792
4812
  return {
4793
4813
  ...d,
4794
- [h.name]: g
4814
+ [p.name]: g
4795
4815
  };
4796
4816
  }, {});
4797
4817
  },
@@ -4820,25 +4840,25 @@ const Ge = (r, e, t) => ({
4820
4840
  onClick: a,
4821
4841
  onEnter: i,
4822
4842
  onClose: o,
4823
- loadOptions: c
4843
+ loadOptions: f
4824
4844
  }) => {
4825
- var R, S;
4826
- const [l, u] = Z(), [f, d] = Z(t ?? !0), h = ve(null), m = s.trim() ? s : "100vh", g = ye(
4845
+ var O, S;
4846
+ const [c, u] = Z(), [l, d] = Z(t ?? !0), p = ve(null), m = s.trim() ? s : "100vh", g = ye(
4827
4847
  (b) => {
4828
4848
  var C, Y;
4829
4849
  if (!((C = b == null ? void 0 : b.rows) != null && C.length) || !((Y = b == null ? void 0 : b.columns) != null && Y.length))
4830
4850
  return {};
4831
- const k = b.rows[0];
4851
+ const L = b.rows[0];
4832
4852
  return b.columns.filter((j) => j.visible ?? !0).reduce((j, P) => {
4833
- const D = k.cells[P.name];
4834
- if (!D || !f && ce(n) && D.shape !== ne.BUTTON && D.shape !== ne.BUTTON_LIST)
4853
+ const D = L.cells[P.name];
4854
+ if (!D || !l && ce(n) && D.shape !== ne.BUTTON && D.shape !== ne.BUTTON_LIST)
4835
4855
  return j;
4836
- const _ = {
4856
+ const k = {
4837
4857
  ...D,
4838
4858
  onChange: (U) => {
4839
4859
  u((H) => {
4840
- const q = { ...H };
4841
- return q != null && q[P.name] && (q[P.name].obj.k = U.obj.k), q;
4860
+ const z = { ...H };
4861
+ return z != null && z[P.name] && (z[P.name].obj.k = U.obj.k), z;
4842
4862
  });
4843
4863
  },
4844
4864
  onClick: (U) => {
@@ -4848,19 +4868,19 @@ const Ge = (r, e, t) => ({
4848
4868
  i && i(U);
4849
4869
  }
4850
4870
  };
4851
- return c && D.shape == ne.BUTTON_LIST && (_.onOptionsRequest = (U, H) => c(U, H).then(
4852
- (q) => ss(q)
4853
- )), !f && ce(n) && (_.data = {
4854
- ..._.data,
4871
+ return f && D.shape == ne.BUTTON_LIST && (k.onOptionsRequest = (U, H) => f(U, H).then(
4872
+ (z) => ss(z)
4873
+ )), !l && ce(n) && (k.data = {
4874
+ ...k.data,
4855
4875
  showText: !1,
4856
4876
  justify: "center"
4857
4877
  }), {
4858
4878
  ...j,
4859
- [P.name]: _
4879
+ [P.name]: k
4860
4880
  };
4861
4881
  }, {});
4862
4882
  },
4863
- [f, n, a, i, c]
4883
+ [l, n, a, i, f]
4864
4884
  ), x = ye(() => {
4865
4885
  o == null || o();
4866
4886
  }, [o]), w = () => {
@@ -4869,33 +4889,33 @@ const Ge = (r, e, t) => ({
4869
4889
  if (oe(() => {
4870
4890
  u(g(r));
4871
4891
  }, [r]), oe(() => {
4872
- if (!h.current)
4892
+ if (!p.current)
4873
4893
  return;
4874
4894
  if (!ce(n)) {
4875
4895
  u(g(r));
4876
4896
  return;
4877
4897
  }
4878
- const b = getComputedStyle(h.current).getPropertyValue(
4898
+ const b = getComputedStyle(p.current).getPropertyValue(
4879
4899
  "--smp-drawer-slide-transition"
4880
4900
  );
4881
- let k = Number(b);
4882
- b.endsWith("ms") ? k = parseFloat(b) : b.endsWith("s") && (k = parseFloat(b) * 1e3), setTimeout(() => {
4901
+ let L = Number(b);
4902
+ b.endsWith("ms") ? L = parseFloat(b) : b.endsWith("s") && (L = parseFloat(b) * 1e3), setTimeout(() => {
4883
4903
  u(g(r));
4884
- }, k / 2);
4885
- }, [f, n]), oe(() => {
4904
+ }, L / 2);
4905
+ }, [l, n]), oe(() => {
4886
4906
  t !== void 0 && !ce(n) && d(t);
4887
- }, [n, t]), !((R = r == null ? void 0 : r.rows) != null && R.length) || !((S = r.columns) != null && S.length))
4907
+ }, [n, t]), !((O = r == null ? void 0 : r.rows) != null && O.length) || !((S = r.columns) != null && S.length))
4888
4908
  return null;
4889
4909
  const E = {
4890
- drawer: `smp-drawer ${ce(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${f ? "smp-drawer-open" : ""} ${!ce(n) && !f ? "smp-drawer-no-border" : ""}`,
4910
+ drawer: `smp-drawer ${ce(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${l ? "smp-drawer-open" : ""} ${!ce(n) && !l ? "smp-drawer-no-border" : ""}`,
4891
4911
  container: "smp-drawer-container",
4892
4912
  containerHeader: "smp-drawer-container-header",
4893
- containerIcon: `${f ? "" : "smp-drawer-container-icon-close"} smp-drawer-container-icon`,
4913
+ containerIcon: `${l ? "" : "smp-drawer-container-icon-close"} smp-drawer-container-icon`,
4894
4914
  containerLayout: "smp-drawer-container-layout",
4895
4915
  containerLogo: "smp-drawer-container-logo",
4896
- backdrop: `smp-drawer-backdrop ${f ? "smp-drawer-backdrop-open" : ""}`
4916
+ backdrop: `smp-drawer-backdrop ${l ? "smp-drawer-backdrop-open" : ""}`
4897
4917
  };
4898
- return l && /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
4918
+ return c && /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
4899
4919
  !ce(n) && /* @__PURE__ */ v.jsx(
4900
4920
  "div",
4901
4921
  {
@@ -4908,7 +4928,7 @@ const Ge = (r, e, t) => ({
4908
4928
  /* @__PURE__ */ v.jsx(
4909
4929
  "aside",
4910
4930
  {
4911
- ref: h,
4931
+ ref: p,
4912
4932
  className: E.drawer,
4913
4933
  style: { height: m },
4914
4934
  "aria-label": "Drawer",
@@ -4929,7 +4949,7 @@ const Ge = (r, e, t) => ({
4929
4949
  {
4930
4950
  icon: ce(n) ? "menu_close" : "close",
4931
4951
  title: "drawer_icon",
4932
- rotated: !f,
4952
+ rotated: !l,
4933
4953
  isInteractable: !0,
4934
4954
  onClick: w,
4935
4955
  width: 20,
@@ -4937,7 +4957,7 @@ const Ge = (r, e, t) => ({
4937
4957
  }
4938
4958
  ) })
4939
4959
  ] }),
4940
- /* @__PURE__ */ v.jsx("div", { className: E.containerLayout, children: /* @__PURE__ */ v.jsx(Rt, { layout: r.rows[0].layout, cells: l }) })
4960
+ /* @__PURE__ */ v.jsx("div", { className: E.containerLayout, children: /* @__PURE__ */ v.jsx(Rt, { layout: r.rows[0].layout, cells: c }) })
4941
4961
  ] })
4942
4962
  }
4943
4963
  )
@@ -4951,22 +4971,22 @@ const Ge = (r, e, t) => ({
4951
4971
  Fillspace: a,
4952
4972
  FontSize: i,
4953
4973
  Horizontal: o,
4954
- ForceIcon: c,
4955
- IconColName: l,
4974
+ ForceIcon: f,
4975
+ IconColName: c,
4956
4976
  IconColor: u = "var(--smp-dashList-color-base)",
4957
- NumberFormat: f,
4977
+ NumberFormat: l,
4958
4978
  ForceUM: d,
4959
- UmColName: h,
4979
+ UmColName: p,
4960
4980
  UmColor: m = "var(--smp-dashList-color-base)",
4961
4981
  ForceValue: g,
4962
4982
  ValueColName: x,
4963
4983
  ValueColor: w = "var(--smp-dashList-color-base)",
4964
4984
  SelectLayout: E = "1",
4965
- onClick: R
4985
+ onClick: O
4966
4986
  }) => {
4967
- const S = "N/A", b = (e == null ? void 0 : e.columns) || [], k = (e == null ? void 0 : e.rows) || [], C = k.length > 0, Y = "--smp-dashList-color", j = "smp-layout", P = "descr", D = "icon", _ = "um", U = "value", H = i || "1em", q = "18px", K = "--smp-dashList-columns", J = "--smp-dashList-fontSize", W = {
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 = {
4968
4988
  dash: (V = "1") => {
4969
- const X = p(V), te = X, re = y(X, P), de = y(X, D), be = y(X, _), he = y(X, U);
4989
+ const X = h(V), te = X, re = y(X, P), de = y(X, D), be = y(X, k), he = y(X, U);
4970
4990
  return {
4971
4991
  container: te,
4972
4992
  descr: re,
@@ -4977,7 +4997,7 @@ const Ge = (r, e, t) => ({
4977
4997
  },
4978
4998
  dashList: `smp-dash-list ${ce(a) ? "smp-dash-list-fill-space" : ""}
4979
4999
  ${ce(o) ? "smp-dash-list-horizontal" : ""}`
4980
- }, { format: L } = nt(), p = (V) => `${j}-${V}`, y = (V, X) => `${V}__${X}`, T = (V) => `${Y}-${V}`, $ = (V) => {
5000
+ }, { format: _ } = nt(), h = (V) => `${j}-${V}`, y = (V, X) => `${V}__${X}`, T = (V) => `${Y}-${V}`, $ = (V) => {
4981
5001
  const X = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
4982
5002
  if (X.test(V)) {
4983
5003
  const re = V.match(X) || [];
@@ -4985,11 +5005,11 @@ const Ge = (r, e, t) => ({
4985
5005
  return "rgb(" + re[1] + "," + re[2] + "," + re[3] + ")";
4986
5006
  }
4987
5007
  return V;
4988
- }, O = (V) => {
4989
- if (!f) return V;
4990
- const [X, te] = A(f).map(
5008
+ }, R = (V) => {
5009
+ if (!l) return V;
5010
+ const [X, te] = A(l).map(
4991
5011
  (Te) => parseInt(Te || "0")
4992
- ), re = "0,0" + (te ? "." + "0".repeat(te) : ""), de = L(V, re, "it");
5012
+ ), re = "0,0" + (te ? "." + "0".repeat(te) : ""), de = _(V, re, "it");
4993
5013
  if (!X) return de;
4994
5014
  const [be, he] = de.split(",");
4995
5015
  return be + (he ? `,${he}` : "");
@@ -5005,12 +5025,12 @@ const Ge = (r, e, t) => ({
5005
5025
  };
5006
5026
  return {
5007
5027
  descr: t || X(n) || te(2) || "",
5008
- icon: c || X(l) || te(3) || "",
5009
- um: d || X(h) || te(1) || "",
5028
+ icon: f || X(c) || te(3) || "",
5029
+ um: d || X(p) || te(1) || "",
5010
5030
  value: g || X(x) || te(0) || ""
5011
5031
  };
5012
5032
  }, F = (V) => {
5013
- R == null || R(V);
5033
+ O == null || O(V);
5014
5034
  }, N = (V, X) => {
5015
5035
  (V.key === "Enter" || V.key === " ") && (V.preventDefault(), V.stopPropagation(), F(X));
5016
5036
  }, B = ((V) => {
@@ -5022,20 +5042,20 @@ const Ge = (r, e, t) => ({
5022
5042
  ue,
5023
5043
  {
5024
5044
  color: u,
5025
- height: q,
5045
+ height: z,
5026
5046
  icon: te,
5027
- width: q
5047
+ width: z
5028
5048
  }
5029
5049
  ) }, `${V}-${D}`),
5030
- um: (te) => /* @__PURE__ */ v.jsx("div", { className: X.um, children: te }, `${V}-${_}`),
5050
+ um: (te) => /* @__PURE__ */ v.jsx("div", { className: X.um, children: te }, `${V}-${k}`),
5031
5051
  value: (te) => /* @__PURE__ */ v.jsx("div", { className: X.value, children: te }, `${V}-${U}`)
5032
5052
  };
5033
5053
  })(E), se = (V) => {
5034
5054
  const { descr: X, icon: te, um: re, value: de } = M(V), be = {
5035
5055
  [T(P)]: $(s),
5036
- [T(_)]: $(m),
5056
+ [T(k)]: $(m),
5037
5057
  [T(U)]: $(w)
5038
- }, he = [], Te = O(de);
5058
+ }, he = [], Te = R(de);
5039
5059
  switch (E) {
5040
5060
  case "2":
5041
5061
  te && he.push(B.icon(te)), he.push(B.descr(X)), he.push(
@@ -5065,7 +5085,7 @@ const Ge = (r, e, t) => ({
5065
5085
  [K]: String(r),
5066
5086
  [J]: H
5067
5087
  };
5068
- return /* @__PURE__ */ v.jsx("div", { className: W.dashList, style: I, children: C ? k.map((V) => se(V)) : S });
5088
+ return /* @__PURE__ */ v.jsx("div", { className: W.dashList, style: I, children: C ? L.map((V) => se(V)) : S });
5069
5089
  }, pt = {
5070
5090
  "smp-table": "_smp-table_8dmh0_1",
5071
5091
  "smp-headerCell": "_smp-headerCell_8dmh0_35",
@@ -5096,14 +5116,14 @@ const Dr = ({
5096
5116
  offsetTop: s
5097
5117
  }) => {
5098
5118
  var E;
5099
- const [a, i] = Z(!1), o = Ke(r) && !!((E = r.children) != null && E.length), c = r.cells && Object.keys(r.cells).length > 0, l = o, u = t * 20, f = () => {
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 = () => {
5100
5120
  o && i(!a);
5101
5121
  }, d = {
5102
5122
  content: `${we.rowContent} ${o ? we.clickable : ""}`,
5103
5123
  toggle: `${we.toggle}`,
5104
5124
  indent: `${we.indent}`,
5105
5125
  cell: `${we.cell}`
5106
- }, h = (R) => /* @__PURE__ */ v.jsx(Ot, { ...R }), m = () => /* @__PURE__ */ v.jsx("span", { className: d.toggle, children: l ? a ? "▶" : "▼" : " " }), g = () => /* @__PURE__ */ v.jsx(
5126
+ }, p = (O) => /* @__PURE__ */ v.jsx(Ot, { ...O }), m = () => /* @__PURE__ */ v.jsx("span", { className: d.toggle, children: c ? a ? "▶" : "▼" : " " }), g = () => /* @__PURE__ */ v.jsx(
5107
5127
  "span",
5108
5128
  {
5109
5129
  className: d.indent,
@@ -5111,12 +5131,12 @@ const Dr = ({
5111
5131
  "aria-hidden": "true"
5112
5132
  }
5113
5133
  ), x = () => {
5114
- const R = ds(r) ? "" : r.decode || (c ? "" : "Untitled"), S = s ?? n * t;
5134
+ const O = ds(r) ? "" : r.decode || (f ? "" : "Untitled"), S = s ?? n * t;
5115
5135
  return /* @__PURE__ */ v.jsxs(
5116
5136
  "tr",
5117
5137
  {
5118
5138
  className: d.content,
5119
- onClick: f,
5139
+ onClick: l,
5120
5140
  role: o ? "button" : "row",
5121
5141
  "aria-expanded": o ? !a : void 0,
5122
5142
  style: {
@@ -5135,11 +5155,11 @@ const Dr = ({
5135
5155
  children: [
5136
5156
  g(),
5137
5157
  m(),
5138
- /* @__PURE__ */ v.jsx("span", { className: we.rowLabel, children: R })
5158
+ /* @__PURE__ */ v.jsx("span", { className: we.rowLabel, children: O })
5139
5159
  ]
5140
5160
  }
5141
5161
  ),
5142
- r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([b, k]) => /* @__PURE__ */ v.jsx(
5162
+ r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([b, L]) => /* @__PURE__ */ v.jsx(
5143
5163
  "td",
5144
5164
  {
5145
5165
  className: d.cell,
@@ -5148,16 +5168,16 @@ const Dr = ({
5148
5168
  minWidth: e[b],
5149
5169
  height: `${n}px`
5150
5170
  },
5151
- children: h(k)
5171
+ children: p(L)
5152
5172
  },
5153
- ps(k) || b
5173
+ ps(L) || b
5154
5174
  ))
5155
5175
  ]
5156
5176
  }
5157
5177
  );
5158
5178
  }, w = () => {
5159
- var R;
5160
- return a || !o ? null : /* @__PURE__ */ v.jsx(v.Fragment, { children: Ke(r) && ((R = r.children) == null ? void 0 : R.map((S, b) => /* @__PURE__ */ v.jsx(Dr, { row: S, level: t + 1 }, `child-${b}`))) });
5179
+ 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}`))) });
5161
5181
  };
5162
5182
  return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
5163
5183
  x(),
@@ -5201,7 +5221,7 @@ const Dr = ({
5201
5221
  width: 16
5202
5222
  }
5203
5223
  ),
5204
- /* @__PURE__ */ v.jsx(Ie, { variant: "title", bindValue: r })
5224
+ /* @__PURE__ */ v.jsx(ke, { variant: "title", bindValue: r })
5205
5225
  ]
5206
5226
  }
5207
5227
  )
@@ -5225,41 +5245,41 @@ function ys(r, e, t, n) {
5225
5245
  const s = [];
5226
5246
  let a = 0;
5227
5247
  return i(r, 0, []), { flatRows: s, offset: a };
5228
- function i(f, d, h) {
5248
+ function i(l, d, p) {
5229
5249
  if (d >= e.length) {
5230
- u(f);
5250
+ u(l);
5231
5251
  return;
5232
5252
  }
5233
- const m = e[d].column, g = o(f, m);
5253
+ const m = e[d].column, g = o(l, m);
5234
5254
  for (const [x, w] of g) {
5235
- const E = [...h, x], R = c(E, d), S = n.has(R);
5236
- s.push(l(x, R, d, S)), a += t, S && i(w, d + 1, E);
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);
5237
5257
  }
5238
5258
  }
5239
- function o(f, d) {
5259
+ function o(l, d) {
5240
5260
  var m;
5241
- const h = /* @__PURE__ */ new Map();
5242
- for (const g of f) {
5261
+ const p = /* @__PURE__ */ new Map();
5262
+ for (const g of l) {
5243
5263
  const x = ((m = g.cells[d]) == null ? void 0 : m.decode) ?? "N/D";
5244
- h.has(x) || h.set(x, []), h.get(x).push(g);
5264
+ p.has(x) || p.set(x, []), p.get(x).push(g);
5245
5265
  }
5246
- return h;
5266
+ return p;
5247
5267
  }
5248
- function c(f, d) {
5249
- return `group-${f.join("-")}-${d}`;
5268
+ function f(l, d) {
5269
+ return `group-${l.join("-")}-${d}`;
5250
5270
  }
5251
- function l(f, d, h, m) {
5271
+ function c(l, d, p, m) {
5252
5272
  return {
5253
5273
  isGroup: !0,
5254
- value: f,
5274
+ value: l,
5255
5275
  cells: {},
5256
5276
  rowId: d,
5257
- level: h,
5277
+ level: p,
5258
5278
  isExpanded: m
5259
5279
  };
5260
5280
  }
5261
- function u(f) {
5262
- for (const d of f)
5281
+ function u(l) {
5282
+ for (const d of l)
5263
5283
  s.push(d), a += t;
5264
5284
  }
5265
5285
  }
@@ -5306,10 +5326,10 @@ const vs = ({
5306
5326
  showGroupBar: a = !0
5307
5327
  }) => {
5308
5328
  var Y;
5309
- const [i, o] = Z(r), [c, l] = Z(n || []), [u, f] = Z(/* @__PURE__ */ new Set()), d = i && i.columns ? Object.fromEntries(
5329
+ const [i, o] = Z(r), [f, c] = Z(n || []), [u, l] = Z(/* @__PURE__ */ new Set()), d = i && i.columns ? Object.fromEntries(
5310
5330
  i.columns.map((j) => [j.name, 120])
5311
5331
  // ADD col.width to manage existing col width
5312
- ) : {}, [h, m] = Z(d), g = ve(null);
5332
+ ) : {}, [p, m] = Z(d), g = ve(null);
5313
5333
  oe(() => {
5314
5334
  var D;
5315
5335
  if (!i || !i.columns || i.columns.length)
@@ -5319,30 +5339,30 @@ const vs = ({
5319
5339
  switch (s) {
5320
5340
  case "fixed":
5321
5341
  P = Object.fromEntries(
5322
- i.columns.map((_) => [_.name, 120])
5342
+ i.columns.map((k) => [k.name, 120])
5323
5343
  );
5324
5344
  break;
5325
5345
  case "fit-grid": {
5326
- const _ = i.columns.filter((H) => H.visible), U = Math.floor(j / _.length);
5346
+ const k = i.columns.filter((H) => H.visible), U = Math.floor(j / k.length);
5327
5347
  P = Object.fromEntries(
5328
- _.map((H) => [H.name, U])
5348
+ k.map((H) => [H.name, U])
5329
5349
  );
5330
5350
  break;
5331
5351
  }
5332
5352
  case "fit-content":
5333
5353
  P = Object.fromEntries(
5334
- i.columns.map((_) => {
5354
+ i.columns.map((k) => {
5335
5355
  const U = Math.max(
5336
5356
  ...r.rows.map((W) => {
5337
5357
  var y;
5338
- const L = (y = W == null ? void 0 : W.cells) == null ? void 0 : y[_.name], p = (L == null ? void 0 : L.decode) || (L == null ? void 0 : L.value);
5339
- return p ? String(p).length : 0;
5358
+ const _ = (y = W == null ? void 0 : W.cells) == null ? void 0 : y[k.name], h = (_ == null ? void 0 : _.decode) || (_ == null ? void 0 : _.value);
5359
+ return h ? String(h).length : 0;
5340
5360
  }),
5341
5361
  0
5342
- ), H = _.title ? _.title.length : 0, q = Math.max(U, H);
5362
+ ), H = k.title ? k.title.length : 0, z = Math.max(U, H);
5343
5363
  return [
5344
- _.name,
5345
- Math.max(50, q * 8 + 16)
5364
+ k.name,
5365
+ Math.max(50, z * 8 + 16)
5346
5366
  ];
5347
5367
  })
5348
5368
  );
@@ -5350,36 +5370,36 @@ const vs = ({
5350
5370
  }
5351
5371
  m(P);
5352
5372
  }, [s, r, i]), oe(() => {
5353
- if (c != null && c.length && r.rows) {
5373
+ if (f != null && f.length && r.rows) {
5354
5374
  const { flatRows: j } = ys(
5355
5375
  r.rows,
5356
- c,
5376
+ f,
5357
5377
  e,
5358
5378
  u
5359
5379
  );
5360
5380
  o({ ...r, rows: j });
5361
5381
  } else
5362
5382
  o(r);
5363
- }, [r, c, u, e]);
5383
+ }, [r, f, u, e]);
5364
5384
  const x = (j) => {
5365
- l(gs(j, c));
5385
+ c(gs(j, f));
5366
5386
  }, w = (j) => {
5367
5387
  j.preventDefault();
5368
5388
  const P = j.dataTransfer.getData("text/plain");
5369
- if (!P || c.some((U) => U.column === P))
5389
+ if (!P || f.some((U) => U.column === P))
5370
5390
  return;
5371
- const _ = [...c, { column: P, visible: !0 }];
5372
- l(_);
5391
+ const k = [...f, { column: P, visible: !0 }];
5392
+ c(k);
5373
5393
  }, E = (j) => {
5374
5394
  j.preventDefault();
5375
- }, { virtualItems: R, containerProps: S, innerProps: b } = xr({
5395
+ }, { virtualItems: O, containerProps: S, innerProps: b } = xr({
5376
5396
  items: (i == null ? void 0 : i.rows) || [],
5377
5397
  itemHeight: e,
5378
5398
  containerHeight: t,
5379
5399
  overscan: 5
5380
- }), k = (j, P) => {
5381
- const D = j.clientX, _ = h[P], U = (q) => {
5382
- const K = q.clientX - D, J = Math.max(50, _ + K);
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);
5383
5403
  m((W) => ({
5384
5404
  ...W,
5385
5405
  [P]: J
@@ -5404,7 +5424,7 @@ const vs = ({
5404
5424
  (n || a) && /* @__PURE__ */ v.jsx(
5405
5425
  vs,
5406
5426
  {
5407
- groups: c,
5427
+ groups: f,
5408
5428
  onChange: x,
5409
5429
  onDrop: w,
5410
5430
  onDragOver: E
@@ -5420,13 +5440,13 @@ const vs = ({
5420
5440
  P.dataTransfer.setData("text/plain", j.name);
5421
5441
  },
5422
5442
  style: {
5423
- width: h[j.name],
5424
- minWidth: h[j.name],
5425
- maxWidth: h[j.name]
5443
+ width: p[j.name],
5444
+ minWidth: p[j.name],
5445
+ maxWidth: p[j.name]
5426
5446
  },
5427
5447
  children: [
5428
5448
  /* @__PURE__ */ v.jsx(
5429
- Ie,
5449
+ ke,
5430
5450
  {
5431
5451
  variant: "title",
5432
5452
  bindValue: j.title
@@ -5436,7 +5456,7 @@ const vs = ({
5436
5456
  "div",
5437
5457
  {
5438
5458
  className: C.resizer,
5439
- onMouseDown: (P) => k(P, j.name),
5459
+ onMouseDown: (P) => L(P, j.name),
5440
5460
  role: "region"
5441
5461
  }
5442
5462
  )
@@ -5446,7 +5466,7 @@ const vs = ({
5446
5466
  )
5447
5467
  )) })
5448
5468
  ] }),
5449
- /* @__PURE__ */ v.jsx("tbody", { ...b, children: R.map(
5469
+ /* @__PURE__ */ v.jsx("tbody", { ...b, children: O.map(
5450
5470
  ({ item: j, index: P, offsetTop: D }) => j.isGroup ? /* @__PURE__ */ v.jsx(
5451
5471
  hs,
5452
5472
  {
@@ -5455,8 +5475,8 @@ const vs = ({
5455
5475
  offsetTop: D,
5456
5476
  level: j.level,
5457
5477
  onClick: () => {
5458
- const _ = j.rowId;
5459
- _ && f((U) => ms(U, _));
5478
+ const k = j.rowId;
5479
+ k && l((U) => ms(U, k));
5460
5480
  },
5461
5481
  isExpanded: j.isExpanded
5462
5482
  },
@@ -5465,7 +5485,7 @@ const vs = ({
5465
5485
  Dr,
5466
5486
  {
5467
5487
  row: j,
5468
- columnWidths: h,
5488
+ columnWidths: p,
5469
5489
  rowHeight: e,
5470
5490
  offsetTop: D,
5471
5491
  isGroup: !1
@@ -5486,25 +5506,25 @@ const vs = ({
5486
5506
  Label: a,
5487
5507
  LabelPosition: i = "Left",
5488
5508
  onBlur: o,
5489
- onClick: c,
5490
- onOptionsRequest: l
5509
+ onClick: f,
5510
+ onOptionsRequest: c
5491
5511
  }) => {
5492
- const [u, f] = Z();
5512
+ const [u, l] = Z();
5493
5513
  oe(() => {
5494
- f(() => {
5514
+ l(() => {
5495
5515
  if (!r)
5496
5516
  return;
5497
5517
  const g = { ...r };
5498
5518
  return e && (g.shape = e), g.shape == null && (g.shape = ne.TEXT_FIELD), s && (g.obj = Nr(s)), g;
5499
5519
  });
5500
5520
  }, [r, s, e]);
5501
- const h = {
5521
+ const p = {
5502
5522
  container: `smp-field-container ${ce(t) ? `smp-field-position-${n}` : ""}`
5503
5523
  }, m = () => {
5504
5524
  ce(t) || o == null || o(u);
5505
5525
  };
5506
5526
  if (u)
5507
- return /* @__PURE__ */ v.jsxs("div", { className: h.container, children: [
5527
+ return /* @__PURE__ */ v.jsxs("div", { className: p.container, children: [
5508
5528
  /* @__PURE__ */ v.jsx(
5509
5529
  "div",
5510
5530
  {
@@ -5518,8 +5538,8 @@ const vs = ({
5518
5538
  Ot,
5519
5539
  {
5520
5540
  ...u,
5521
- onChange: f,
5522
- onOptionsRequest: l,
5541
+ onChange: l,
5542
+ onOptionsRequest: c,
5523
5543
  fun: r == null ? void 0 : r.fun,
5524
5544
  onBlur: m,
5525
5545
  label: a,
@@ -5533,7 +5553,7 @@ const vs = ({
5533
5553
  De,
5534
5554
  {
5535
5555
  optionalDisplayValue: "Confirm",
5536
- onClick: () => c == null ? void 0 : c(u),
5556
+ onClick: () => f == null ? void 0 : f(u),
5537
5557
  bindValue: "Confirm"
5538
5558
  }
5539
5559
  )
@@ -5541,65 +5561,66 @@ const vs = ({
5541
5561
  }, js = ({
5542
5562
  data: r,
5543
5563
  readOnly: e = !1,
5544
- optionsHandler: t,
5545
- onSubmit: n
5564
+ hiddenSubmitButton: t = !1,
5565
+ optionsHandler: n,
5566
+ onSubmit: s
5546
5567
  }) => {
5547
- const [s, a] = Z({});
5568
+ const [a, i] = Z({});
5548
5569
  oe(() => {
5549
- a(o(r));
5570
+ i(f(r));
5550
5571
  }, [r]);
5551
- const i = () => {
5552
- const l = c();
5553
- n({
5554
- value: l
5572
+ const o = () => {
5573
+ const u = c();
5574
+ s({
5575
+ value: u
5555
5576
  });
5556
- }, o = (l) => {
5557
- var f, d, h;
5558
- if (!((f = l.rows) != null && f.length) || !((d = l.columns) != null && d.length))
5577
+ }, f = (u) => {
5578
+ var d, p, m;
5579
+ if (!((d = u.rows) != null && d.length) || !((p = u.columns) != null && p.length))
5559
5580
  return {};
5560
- const u = (h = l.rows) == null ? void 0 : h[0];
5561
- return l.columns.filter((m) => m.visible ?? !0).reduce((m, g) => {
5562
- const x = {
5563
- ...u.cells[g.name],
5564
- label: g.title,
5565
- onChange: (w) => {
5566
- a((E) => ({
5567
- ...E,
5568
- [g.name]: {
5569
- ...E[g.name],
5581
+ const l = (m = u.rows) == null ? void 0 : m[0];
5582
+ return u.columns.filter((g) => g.visible ?? !0).reduce((g, x) => {
5583
+ const w = {
5584
+ ...l.cells[x.name],
5585
+ label: x.title,
5586
+ onChange: (E) => {
5587
+ i((O) => ({
5588
+ ...O,
5589
+ [x.name]: {
5590
+ ...O[x.name],
5570
5591
  obj: {
5571
- ...E[g.name].obj,
5572
- k: w.obj.k
5592
+ ...O[x.name].obj,
5593
+ k: E.obj.k
5573
5594
  },
5574
- decode: w.decode
5595
+ decode: E.decode
5575
5596
  }
5576
5597
  }));
5577
5598
  }
5578
5599
  };
5579
- return x.fun && (x.shape == ne.AUTOCOMPLETE || x.shape == ne.MULTI_AUTOCOMPLETE || x.shape == ne.COMBOBOX) && (x.onOptionsRequest = (w, E) => t(w, E, r, g.name)), x.isEditable == null && (x.isEditable = !0), e && (x.isEditable = !1), x.isEditable && x.shape == null && (x.shape = ne.TEXT_FIELD), {
5580
- ...m,
5581
- [g.name]: x
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), {
5601
+ ...g,
5602
+ [x.name]: w
5582
5603
  };
5583
5604
  }, {});
5584
5605
  }, c = () => {
5585
- const l = {
5606
+ const u = {
5586
5607
  columns: [...r.columns],
5587
5608
  rows: [{ cells: {} }]
5588
5609
  };
5589
- return Object.entries(s).forEach(([u, f]) => {
5590
- l.rows[0].cells[u] = {
5610
+ return Object.entries(a).forEach(([l, d]) => {
5611
+ u.rows[0].cells[l] = {
5591
5612
  obj: {
5592
- ...f.obj
5613
+ ...d.obj
5593
5614
  },
5594
- decode: f.decode,
5595
- shape: f.shape
5615
+ decode: d.decode,
5616
+ shape: d.shape
5596
5617
  };
5597
5618
  }), {
5598
5619
  before: r,
5599
- after: l
5620
+ after: u
5600
5621
  };
5601
5622
  };
5602
- return s && /* @__PURE__ */ v.jsxs(
5623
+ return a && /* @__PURE__ */ v.jsxs(
5603
5624
  "div",
5604
5625
  {
5605
5626
  "data-component": "input-panel",
@@ -5610,11 +5631,11 @@ const vs = ({
5610
5631
  padding: "2rem"
5611
5632
  },
5612
5633
  children: [
5613
- /* @__PURE__ */ v.jsx(Rt, { layout: r.rows[0].layout, cells: s }),
5614
- /* @__PURE__ */ v.jsx(
5634
+ /* @__PURE__ */ v.jsx(Rt, { layout: r.rows[0].layout, cells: a }),
5635
+ !t && /* @__PURE__ */ v.jsx(
5615
5636
  De,
5616
5637
  {
5617
- onClick: i,
5638
+ onClick: o,
5618
5639
  bindValue: "submit",
5619
5640
  optionalDisplayValue: "Submit"
5620
5641
  }