@arkyn/components 1.3.10 → 1.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -1,10 +1,10 @@
1
- import v, { createContext as Ct, useRef as at, useId as wn, useContext as gt, useState as De, forwardRef as En, useEffect as Sn } from "react";
2
- import { Loader2 as Qe, Check as on, ChevronDown as Tn, ChevronRight as Ht, X as _n } from "lucide-react";
3
- import { useActionData as sn, useLocation as ln, Link as Nn } from "@remix-run/react";
1
+ import v, { createContext as Ct, useRef as at, useId as En, useContext as gt, useState as Me, forwardRef as Sn, useEffect as Ht } from "react";
2
+ import { Loader2 as Qe, Check as sn, ChevronDown as Tn, ChevronRight as Yt, X as _n } from "lucide-react";
3
+ import { useActionData as ln, useLocation as cn, Link as Nn } from "@remix-run/react";
4
4
  import { InputMask as kn } from "@react-input/mask";
5
- import { AnimatePresence as Cn, motion as Yt } from "framer-motion";
5
+ import { AnimatePresence as Cn, motion as Vt } from "framer-motion";
6
6
  import Rn from "react-dom";
7
- var Mt = { exports: {} }, dt = {};
7
+ var Dt = { exports: {} }, dt = {};
8
8
  /**
9
9
  * @license React
10
10
  * react-jsx-runtime.production.min.js
@@ -14,12 +14,12 @@ var Mt = { exports: {} }, dt = {};
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- var Vt;
17
+ var Gt;
18
18
  function In() {
19
- if (Vt)
19
+ if (Gt)
20
20
  return dt;
21
- Vt = 1;
22
- var n = v, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, l = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ Gt = 1;
22
+ var e = v, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, l = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
23
23
  function h(c, p, o) {
24
24
  var y, _ = {}, N = null, b = null;
25
25
  o !== void 0 && (N = "" + o), p.key !== void 0 && (N = "" + p.key), p.ref !== void 0 && (b = p.ref);
@@ -28,7 +28,7 @@ function In() {
28
28
  if (c && c.defaultProps)
29
29
  for (y in p = c.defaultProps, p)
30
30
  _[y] === void 0 && (_[y] = p[y]);
31
- return { $$typeof: t, type: c, key: N, ref: b, props: _, _owner: l.current };
31
+ return { $$typeof: n, type: c, key: N, ref: b, props: _, _owner: l.current };
32
32
  }
33
33
  return dt.Fragment = a, dt.jsx = h, dt.jsxs = h, dt;
34
34
  }
@@ -42,17 +42,17 @@ var ft = {};
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
- var Gt;
45
+ var Kt;
46
46
  function An() {
47
- return Gt || (Gt = 1, process.env.NODE_ENV !== "production" && function() {
48
- var n = v, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), c = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), P = Symbol.iterator, A = "@@iterator";
47
+ return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
48
+ var e = v, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), c = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), P = Symbol.iterator, A = "@@iterator";
49
49
  function U(r) {
50
50
  if (r === null || typeof r != "object")
51
51
  return null;
52
52
  var d = P && r[P] || r[A];
53
53
  return typeof d == "function" ? d : null;
54
54
  }
55
- var w = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
+ var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
56
  function E(r) {
57
57
  {
58
58
  for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), T = 1; T < d; T++)
@@ -64,16 +64,16 @@ function An() {
64
64
  {
65
65
  var T = w.ReactDebugCurrentFrame, H = T.getStackAddendum();
66
66
  H !== "" && (d += "%s", g = g.concat([H]));
67
- var e = g.map(function(f) {
67
+ var t = g.map(function(f) {
68
68
  return String(f);
69
69
  });
70
- e.unshift("Warning: " + d), Function.prototype.apply.call(console[r], console, e);
70
+ t.unshift("Warning: " + d), Function.prototype.apply.call(console[r], console, t);
71
71
  }
72
72
  }
73
- var W = !1, M = !1, X = !1, ee = !1, V = !1, re;
73
+ var W = !1, D = !1, X = !1, ee = !1, V = !1, re;
74
74
  re = Symbol.for("react.module.reference");
75
75
  function Y(r) {
76
- return !!(typeof r == "string" || typeof r == "function" || r === s || r === u || V || r === l || r === o || r === y || ee || r === b || W || M || X || typeof r == "object" && r !== null && (r.$$typeof === N || r.$$typeof === _ || r.$$typeof === h || r.$$typeof === c || r.$$typeof === p || // This needs to include all possible module reference object
76
+ return !!(typeof r == "string" || typeof r == "function" || r === s || r === u || V || r === l || r === o || r === y || ee || r === b || W || D || X || typeof r == "object" && r !== null && (r.$$typeof === N || r.$$typeof === _ || r.$$typeof === h || r.$$typeof === c || r.$$typeof === p || // This needs to include all possible module reference object
77
77
  // types supported by any Flight configuration anywhere since
78
78
  // we don't know which Flight build this will end up being used
79
79
  // with.
@@ -124,9 +124,9 @@ function An() {
124
124
  var T = r.displayName || null;
125
125
  return T !== null ? T : k(r.type) || "Memo";
126
126
  case N: {
127
- var H = r, e = H._payload, f = H._init;
127
+ var H = r, t = H._payload, f = H._init;
128
128
  try {
129
- return k(f(e));
129
+ return k(f(t));
130
130
  } catch {
131
131
  return null;
132
132
  }
@@ -227,8 +227,8 @@ function An() {
227
227
  Ie = !0;
228
228
  var H = Error.prepareStackTrace;
229
229
  Error.prepareStackTrace = void 0;
230
- var e;
231
- e = K.current, K.current = null, j();
230
+ var t;
231
+ t = K.current, K.current = null, j();
232
232
  try {
233
233
  if (d) {
234
234
  var f = function() {
@@ -265,23 +265,23 @@ function An() {
265
265
  if (q && T && typeof q.stack == "string") {
266
266
  for (var i = q.stack.split(`
267
267
  `), C = T.stack.split(`
268
- `), D = i.length - 1, I = C.length - 1; D >= 1 && I >= 0 && i[D] !== C[I]; )
268
+ `), M = i.length - 1, I = C.length - 1; M >= 1 && I >= 0 && i[M] !== C[I]; )
269
269
  I--;
270
- for (; D >= 1 && I >= 0; D--, I--)
271
- if (i[D] !== C[I]) {
272
- if (D !== 1 || I !== 1)
270
+ for (; M >= 1 && I >= 0; M--, I--)
271
+ if (i[M] !== C[I]) {
272
+ if (M !== 1 || I !== 1)
273
273
  do
274
- if (D--, I--, I < 0 || i[D] !== C[I]) {
274
+ if (M--, I--, I < 0 || i[M] !== C[I]) {
275
275
  var ce = `
276
- ` + i[D].replace(" at new ", " at ");
276
+ ` + i[M].replace(" at new ", " at ");
277
277
  return r.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", r.displayName)), typeof r == "function" && we.set(r, ce), ce;
278
278
  }
279
- while (D >= 1 && I >= 0);
279
+ while (M >= 1 && I >= 0);
280
280
  break;
281
281
  }
282
282
  }
283
283
  } finally {
284
- Ie = !1, K.current = e, te(), Error.prepareStackTrace = H;
284
+ Ie = !1, K.current = t, te(), Error.prepareStackTrace = H;
285
285
  }
286
286
  var ve = r ? r.displayName || r.name : "", me = ve ? de(ve) : "";
287
287
  return typeof r == "function" && we.set(r, me), me;
@@ -313,9 +313,9 @@ function An() {
313
313
  case _:
314
314
  return oe(r.type, d, g);
315
315
  case N: {
316
- var T = r, H = T._payload, e = T._init;
316
+ var T = r, H = T._payload, t = T._init;
317
317
  try {
318
- return oe(e(H), d, g);
318
+ return oe(t(H), d, g);
319
319
  } catch {
320
320
  }
321
321
  }
@@ -332,9 +332,9 @@ function An() {
332
332
  }
333
333
  function ot(r, d, g, T, H) {
334
334
  {
335
- var e = Function.call.bind(he);
335
+ var t = Function.call.bind(he);
336
336
  for (var f in r)
337
- if (e(r, f)) {
337
+ if (t(r, f)) {
338
338
  var i = void 0;
339
339
  try {
340
340
  if (typeof r[f] != "function") {
@@ -342,8 +342,8 @@ function An() {
342
342
  throw C.name = "Invariant Violation", C;
343
343
  }
344
344
  i = r[f](d, f, T, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
- } catch (D) {
346
- i = D;
345
+ } catch (M) {
346
+ i = M;
347
347
  }
348
348
  i && !(i instanceof Error) && (Ne(H), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", g, f, typeof i), Ne(null)), i instanceof Error && !(i.message in $e) && ($e[i.message] = !0, Ne(H), E("Failed %s type: %s", g, i.message), Ne(null));
349
349
  }
@@ -373,7 +373,7 @@ function An() {
373
373
  if (Le(r))
374
374
  return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ye(r)), ke(r);
375
375
  }
376
- var Me = w.ReactCurrentOwner, We = {
376
+ var De = w.ReactCurrentOwner, We = {
377
377
  key: !0,
378
378
  ref: !0,
379
379
  __self: !0,
@@ -397,9 +397,9 @@ function An() {
397
397
  return r.key !== void 0;
398
398
  }
399
399
  function Ye(r, d) {
400
- if (typeof r.ref == "string" && Me.current && d && Me.current.stateNode !== d) {
401
- var g = k(Me.current.type);
402
- Ce[g] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(Me.current.type), r.ref), Ce[g] = !0);
400
+ if (typeof r.ref == "string" && De.current && d && De.current.stateNode !== d) {
401
+ var g = k(De.current.type);
402
+ Ce[g] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(De.current.type), r.ref), Ce[g] = !0);
403
403
  }
404
404
  }
405
405
  function S(r, d) {
@@ -424,17 +424,17 @@ function An() {
424
424
  });
425
425
  }
426
426
  }
427
- var Q = function(r, d, g, T, H, e, f) {
427
+ var Q = function(r, d, g, T, H, t, f) {
428
428
  var i = {
429
429
  // This tag allows us to uniquely identify this as a React Element
430
- $$typeof: t,
430
+ $$typeof: n,
431
431
  // Built-in properties that belong on the element
432
432
  type: r,
433
433
  key: d,
434
434
  ref: g,
435
435
  props: f,
436
436
  // Record the component responsible for creating this element.
437
- _owner: e
437
+ _owner: t
438
438
  };
439
439
  return i._store = {}, Object.defineProperty(i._store, "validated", {
440
440
  configurable: !1,
@@ -455,20 +455,20 @@ function An() {
455
455
  };
456
456
  function Ee(r, d, g, T, H) {
457
457
  {
458
- var e, f = {}, i = null, C = null;
458
+ var t, f = {}, i = null, C = null;
459
459
  g !== void 0 && (Ue(g), i = "" + g), ze(d) && (Ue(d.key), i = "" + d.key), fe(d) && (C = d.ref, Ye(d, H));
460
- for (e in d)
461
- he.call(d, e) && !We.hasOwnProperty(e) && (f[e] = d[e]);
460
+ for (t in d)
461
+ he.call(d, t) && !We.hasOwnProperty(t) && (f[t] = d[t]);
462
462
  if (r && r.defaultProps) {
463
- var D = r.defaultProps;
464
- for (e in D)
465
- f[e] === void 0 && (f[e] = D[e]);
463
+ var M = r.defaultProps;
464
+ for (t in M)
465
+ f[t] === void 0 && (f[t] = M[t]);
466
466
  }
467
467
  if (i || C) {
468
468
  var I = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
469
469
  i && S(f, I), C && se(f, I);
470
470
  }
471
- return Q(r, i, C, H, T, Me.current, f);
471
+ return Q(r, i, C, H, T, De.current, f);
472
472
  }
473
473
  }
474
474
  var ge = w.ReactCurrentOwner, ne = w.ReactDebugCurrentFrame;
@@ -482,7 +482,7 @@ function An() {
482
482
  var st;
483
483
  st = !1;
484
484
  function et(r) {
485
- return typeof r == "object" && r !== null && r.$$typeof === t;
485
+ return typeof r == "object" && r !== null && r.$$typeof === n;
486
486
  }
487
487
  function tt() {
488
488
  {
@@ -547,7 +547,7 @@ Check the top-level render call using <` + g + ">.");
547
547
  else if (r) {
548
548
  var H = U(r);
549
549
  if (typeof H == "function" && H !== r.entries)
550
- for (var e = H.call(r), f; !(f = e.next()).done; )
550
+ for (var t = H.call(r), f; !(f = t.next()).done; )
551
551
  et(f.value) && lt(f.value, d);
552
552
  }
553
553
  }
@@ -590,7 +590,7 @@ Check the top-level render call using <` + g + ">.");
590
590
  }
591
591
  }
592
592
  var nt = {};
593
- function ut(r, d, g, T, H, e) {
593
+ function ut(r, d, g, T, H, t) {
594
594
  {
595
595
  var f = Y(r);
596
596
  if (!f) {
@@ -598,10 +598,10 @@ Check the top-level render call using <` + g + ">.");
598
598
  (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
599
599
  var C = vt(H);
600
600
  C ? i += C : i += tt();
601
- var D;
602
- r === null ? D = "null" : Se(r) ? D = "array" : r !== void 0 && r.$$typeof === t ? (D = "<" + (k(r.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : D = typeof r, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, i);
601
+ var M;
602
+ r === null ? M = "null" : Se(r) ? M = "array" : r !== void 0 && r.$$typeof === n ? (M = "<" + (k(r.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : M = typeof r, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", M, i);
603
603
  }
604
- var I = Ee(r, d, g, H, e);
604
+ var I = Ee(r, d, g, H, t);
605
605
  if (I == null)
606
606
  return I;
607
607
  if (f) {
@@ -618,8 +618,8 @@ Check the top-level render call using <` + g + ">.");
618
618
  ct(ce, r);
619
619
  }
620
620
  if (he.call(d, "key")) {
621
- var me = k(r), q = Object.keys(d).filter(function(xn) {
622
- return xn !== "key";
621
+ var me = k(r), q = Object.keys(d).filter(function(wn) {
622
+ return wn !== "key";
623
623
  }), rt = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
624
624
  if (!nt[me + rt]) {
625
625
  var xt = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
@@ -644,14 +644,14 @@ React keys must be passed directly to JSX without using spread:
644
644
  ft.Fragment = s, ft.jsx = bt, ft.jsxs = Oe;
645
645
  }()), ft;
646
646
  }
647
- process.env.NODE_ENV === "production" ? Mt.exports = In() : Mt.exports = An();
648
- var m = Mt.exports;
649
- function kt(n, t) {
650
- return t ? /* @__PURE__ */ m.jsx(t, { size: n, strokeWidth: 2.5 }) : /* @__PURE__ */ m.jsx(m.Fragment, {});
647
+ process.env.NODE_ENV === "production" ? Dt.exports = In() : Dt.exports = An();
648
+ var m = Dt.exports;
649
+ function kt(e, n) {
650
+ return n ? /* @__PURE__ */ m.jsx(n, { size: e, strokeWidth: 2.5 }) : /* @__PURE__ */ m.jsx(m.Fragment, {});
651
651
  }
652
- function Ln(n) {
652
+ function Ln(e) {
653
653
  const {
654
- variant: t = "ghost",
654
+ variant: n = "ghost",
655
655
  scheme: a = "primary",
656
656
  size: s = "md",
657
657
  leftIcon: l,
@@ -659,38 +659,38 @@ function Ln(n) {
659
659
  className: h = "",
660
660
  children: c,
661
661
  ...p
662
- } = n, y = { md: 12, lg: 14 }[s];
662
+ } = e, y = { md: 12, lg: 14 }[s];
663
663
  return {
664
- className: `arkyn_badge ${t} ${a} ${s} ${h}`.trim(),
664
+ className: `arkyn_badge ${n} ${a} ${s} ${h}`.trim(),
665
665
  children: c,
666
666
  leftIcon: kt(y, l),
667
667
  rightIcon: kt(y, u),
668
668
  ...p
669
669
  };
670
670
  }
671
- function Xr(n) {
672
- const { leftIcon: t, children: a, rightIcon: s, ...l } = Ln(n);
671
+ function qr(e) {
672
+ const { leftIcon: n, children: a, rightIcon: s, ...l } = Ln(e);
673
673
  return /* @__PURE__ */ m.jsxs("div", { ...l, children: [
674
- t,
674
+ n,
675
675
  a,
676
676
  s
677
677
  ] });
678
678
  }
679
- function qr(n) {
679
+ function Jr(e) {
680
680
  const {
681
- className: t,
681
+ className: n,
682
682
  orientation: a = "horizontal",
683
683
  ...s
684
- } = n, l = `arkyn_divider ${a} ${t}`;
684
+ } = e, l = `arkyn_divider ${a} ${n}`;
685
685
  return /* @__PURE__ */ m.jsx("div", { className: l, ...s });
686
686
  }
687
- function Jr({ className: n, ...t }) {
688
- const a = "arkyn_skeleton " + n;
689
- return /* @__PURE__ */ m.jsx("div", { className: a.trim(), ...t });
687
+ function Zr({ className: e, ...n }) {
688
+ const a = "arkyn_skeleton " + e;
689
+ return /* @__PURE__ */ m.jsx("div", { className: a.trim(), ...n });
690
690
  }
691
- function On(n) {
691
+ function On(e) {
692
692
  const {
693
- isLoading: t = !1,
693
+ isLoading: n = !1,
694
694
  scheme: a = "primary",
695
695
  variant: s = "solid",
696
696
  loadingText: l,
@@ -701,44 +701,44 @@ function On(n) {
701
701
  className: o = "",
702
702
  children: y,
703
703
  ..._
704
- } = n, b = { xs: 12, sm: 16, md: 20, lg: 24 }[u];
704
+ } = e, b = { xs: 12, sm: 16, md: 20, lg: 24 }[u];
705
705
  return {
706
- className: `arkyn_button loading_text_${!!l} ${s} ${a} ${u} loading_${t} ${o}`.trim(),
706
+ className: `arkyn_button loading_text_${!!l} ${s} ${a} ${u} loading_${n} ${o}`.trim(),
707
707
  loadingText: l,
708
708
  children: y,
709
709
  iconSize: b,
710
- disabled: p || t,
710
+ disabled: p || n,
711
711
  leftIcon: kt(b, h),
712
712
  rightIcon: kt(b, c),
713
713
  ..._
714
714
  };
715
715
  }
716
- function Zr(n) {
717
- const { leftIcon: t, rightIcon: a, iconSize: s, children: l, loadingText: u, ...h } = On(n);
716
+ function Qr(e) {
717
+ const { leftIcon: n, rightIcon: a, iconSize: s, children: l, loadingText: u, ...h } = On(e);
718
718
  return /* @__PURE__ */ m.jsxs("button", { ...h, children: [
719
719
  /* @__PURE__ */ m.jsxs("div", { className: "spinner", children: [
720
720
  /* @__PURE__ */ m.jsx(Qe, { size: s, strokeWidth: 2.5 }),
721
721
  u && u
722
722
  ] }),
723
723
  /* @__PURE__ */ m.jsxs("div", { className: "content", children: [
724
- t,
724
+ n,
725
725
  l,
726
726
  a
727
727
  ] })
728
728
  ] });
729
729
  }
730
- const cn = Ct({});
731
- function Qr({ children: n, ...t }) {
730
+ const un = Ct({});
731
+ function ea({ children: e, ...n }) {
732
732
  var c, p;
733
- const a = sn(), s = at(null), l = ((c = s.current) == null ? void 0 : c.name) || "", u = ((p = a == null ? void 0 : a.fieldErrors) == null ? void 0 : p[l]) || null, h = wn();
734
- return /* @__PURE__ */ m.jsx(cn.Provider, { value: { error: u, id: h, inputRef: s }, children: /* @__PURE__ */ m.jsx("section", { className: "arkyn_form_controller", ...t, children: n }) });
733
+ const a = ln(), s = at(null), l = ((c = s.current) == null ? void 0 : c.name) || "", u = ((p = a == null ? void 0 : a.fieldErrors) == null ? void 0 : p[l]) || null, h = En();
734
+ return /* @__PURE__ */ m.jsx(un.Provider, { value: { error: u, id: h, inputRef: s }, children: /* @__PURE__ */ m.jsx("section", { className: "arkyn_form_controller", ...n, children: e }) });
735
735
  }
736
736
  function Ke() {
737
- return gt(cn);
737
+ return gt(un);
738
738
  }
739
- function ea(n) {
739
+ function ta(e) {
740
740
  const {
741
- name: t,
741
+ name: n,
742
742
  className: a = "",
743
743
  size: s = "md",
744
744
  isError: l,
@@ -747,7 +747,7 @@ function ea(n) {
747
747
  onCheck: c,
748
748
  value: p,
749
749
  ...o
750
- } = n, { id: y, inputRef: _, error: N } = Ke(), b = l || !!N, [P, A] = De(u || !1), U = typeof h == "boolean" ? h : P, w = `arkyn_checkbox ${s} ${b ? "error" : ""} ${U ? "checked" : ""} ${a}`;
750
+ } = e, { id: y, inputRef: _, error: N } = Ke(), b = l || !!N, [P, A] = Me(u || !1), U = typeof h == "boolean" ? h : P, w = `arkyn_checkbox ${s} ${b ? "error" : ""} ${U ? "checked" : ""} ${a}`;
751
751
  function E() {
752
752
  const L = P;
753
753
  A(!L), c && c(L ? "" : p || "checked");
@@ -757,38 +757,38 @@ function ea(n) {
757
757
  "input",
758
758
  {
759
759
  type: "hidden",
760
- name: t,
760
+ name: n,
761
761
  ref: _,
762
762
  value: U ? p || "checked" : ""
763
763
  }
764
764
  ),
765
- /* @__PURE__ */ m.jsx(on, {})
765
+ /* @__PURE__ */ m.jsx(sn, {})
766
766
  ] });
767
767
  }
768
- function ta({ children: n }) {
769
- const { error: t } = Ke();
770
- return n ? /* @__PURE__ */ m.jsx("strong", { className: "arkyn_form_error", children: n }) : t ? /* @__PURE__ */ m.jsx("strong", { className: "arkyn_form_error", children: t }) : /* @__PURE__ */ m.jsx(m.Fragment, {});
768
+ function na({ children: e }) {
769
+ const { error: n } = Ke();
770
+ return e ? /* @__PURE__ */ m.jsx("strong", { className: "arkyn_form_error", children: e }) : n ? /* @__PURE__ */ m.jsx("strong", { className: "arkyn_form_error", children: n }) : /* @__PURE__ */ m.jsx(m.Fragment, {});
771
771
  }
772
- function Pn(n) {
773
- const { showAsterisk: t = !1, className: a = "", ...s } = n;
772
+ function Pn(e) {
773
+ const { showAsterisk: n = !1, className: a = "", ...s } = e;
774
774
  return {
775
- className: `arkyn_form_label ${t ? "show-asterisk" : ""} ${a}`.trim(),
775
+ className: `arkyn_form_label ${n ? "show-asterisk" : ""} ${a}`.trim(),
776
776
  ...s
777
777
  };
778
778
  }
779
- function na(n) {
780
- const { id: t } = Ke();
781
- return /* @__PURE__ */ m.jsx("label", { ...Pn(n), htmlFor: t });
779
+ function ra(e) {
780
+ const { id: n } = Ke();
781
+ return /* @__PURE__ */ m.jsx("label", { ...Pn(e), htmlFor: n });
782
782
  }
783
- const Kt = {
783
+ const Xt = {
784
784
  xs: 12,
785
785
  sm: 16,
786
786
  md: 20,
787
787
  lg: 24
788
788
  };
789
- function ra(n) {
789
+ function aa(e) {
790
790
  const {
791
- isLoading: t = !1,
791
+ isLoading: n = !1,
792
792
  scheme: a = "primary",
793
793
  variant: s = "solid",
794
794
  size: l = "md",
@@ -796,45 +796,45 @@ function ra(n) {
796
796
  disabled: h,
797
797
  className: c = "",
798
798
  ...p
799
- } = n, o = `arkyn_icon_button ${s} ${a} ${l} loading_${t} ${c}`;
799
+ } = e, o = `arkyn_icon_button ${s} ${a} ${l} loading_${n} ${c}`;
800
800
  return /* @__PURE__ */ m.jsxs(
801
801
  "button",
802
802
  {
803
- disabled: h || t,
803
+ disabled: h || n,
804
804
  className: o.trim(),
805
805
  ...p,
806
806
  children: [
807
- /* @__PURE__ */ m.jsx("div", { className: "spinner", children: /* @__PURE__ */ m.jsx(Qe, { size: Kt[l], strokeWidth: 2.5 }) }),
808
- /* @__PURE__ */ m.jsx("div", { className: "content " + l, children: /* @__PURE__ */ m.jsx(u, { size: Kt[l], strokeWidth: 2.5 }) })
807
+ /* @__PURE__ */ m.jsx("div", { className: "spinner", children: /* @__PURE__ */ m.jsx(Qe, { size: Xt[l], strokeWidth: 2.5 }) }),
808
+ /* @__PURE__ */ m.jsx("div", { className: "content " + l, children: /* @__PURE__ */ m.jsx(u, { size: Xt[l], strokeWidth: 2.5 }) })
809
809
  ]
810
810
  }
811
811
  );
812
812
  }
813
- function Ge(n, t, a) {
814
- if (!n)
813
+ function Ge(e, n, a) {
814
+ if (!e)
815
815
  return /* @__PURE__ */ m.jsx(m.Fragment, {});
816
- if (typeof n == "string")
817
- return /* @__PURE__ */ m.jsx("p", { className: a, children: n });
818
- const s = n;
819
- return /* @__PURE__ */ m.jsx("p", { className: a, children: /* @__PURE__ */ m.jsx(s, { color: "var(--secondary-600)", size: t, strokeWidth: 2.5 }) });
816
+ if (typeof e == "string")
817
+ return /* @__PURE__ */ m.jsx("p", { className: a, children: e });
818
+ const s = e;
819
+ return /* @__PURE__ */ m.jsx("p", { className: a, children: /* @__PURE__ */ m.jsx(s, { color: "var(--secondary-600)", size: n, strokeWidth: 2.5 }) });
820
820
  }
821
- function Bt(n) {
822
- return n && n.replace(/[^0-9]/g, "");
821
+ function Bt(e) {
822
+ return e && e.replace(/[^0-9]/g, "");
823
823
  }
824
- function un(n, t) {
824
+ function dn(e, n) {
825
825
  let a = "", s = 0;
826
- return Array.from(n).forEach((l, u) => {
827
- t[u + s].match(/[0-9]/) || (a += t[u + s], s++), a += l;
826
+ return Array.from(e).forEach((l, u) => {
827
+ n[u + s].match(/[0-9]/) || (a += n[u + s], s++), a += l;
828
828
  }), a;
829
829
  }
830
- function dn(n) {
831
- return n.length > 11 ? "CNPJ" : "CPF";
830
+ function fn(e) {
831
+ return e.length > 11 ? "CNPJ" : "CPF";
832
832
  }
833
833
  const Ut = {
834
834
  CPF: "999.999.999-999",
835
835
  CNPJ: "99.999.999/9999-99"
836
- }, fn = Bt(Ut.CNPJ).length;
837
- function jn(n, t) {
836
+ }, mn = Bt(Ut.CNPJ).length;
837
+ function jn(e, n) {
838
838
  const {
839
839
  isLoading: a,
840
840
  isError: s,
@@ -854,14 +854,14 @@ function jn(n, t) {
854
854
  style: w,
855
855
  onChange: E,
856
856
  ...L
857
- } = n;
857
+ } = e;
858
858
  function W(R) {
859
859
  let $ = Bt(R);
860
- const J = dn($);
861
- if (!($.length > fn))
862
- return $ = un($, Ut[J]), $;
860
+ const J = fn($);
861
+ if (!($.length > mn))
862
+ return $ = dn($, Ut[J]), $;
863
863
  }
864
- const M = y ? "right" : "left", z = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || b || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
864
+ const D = y ? "right" : "left", z = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || b || a ? "opacity" : ""} ${s ? "errored" : ""} ${n ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
865
865
  return {
866
866
  isLoading: a,
867
867
  className: z,
@@ -877,14 +877,14 @@ function jn(n, t) {
877
877
  title: U,
878
878
  style: w,
879
879
  onChange: E,
880
- loadingPosition: M,
880
+ loadingPosition: D,
881
881
  iconSize: k,
882
882
  Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: k, strokeWidth: 2.5 }),
883
883
  ...L
884
884
  };
885
885
  }
886
- function Dn(n) {
887
- const [t, a] = De(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = n.isError || !!h, {
886
+ function Mn(e) {
887
+ const [n, a] = Me(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = e.isError || !!h, {
888
888
  disabled: o,
889
889
  title: y,
890
890
  style: _,
@@ -897,27 +897,27 @@ function Dn(n) {
897
897
  LeftIcon: E,
898
898
  readOnly: L,
899
899
  onFocus: W,
900
- onBlur: M,
900
+ onBlur: D,
901
901
  RightIcon: X,
902
902
  Spinner: ee,
903
903
  onChange: V,
904
904
  value: re,
905
905
  defaultValue: Y,
906
906
  ...z
907
- } = jn({ ...n, id: u, isError: p }, t), [ae, k] = De(Y), R = E && !w, $ = X && !w, J = U === "left" && w, ie = U === "right" && w;
907
+ } = jn({ ...e, id: u, isError: p }, n), [ae, k] = Me(Y), R = E && !w, $ = X && !w, J = U === "left" && w, ie = U === "right" && w;
908
908
  function Z() {
909
909
  o || !(c != null && c.current) || (a(!0), c.current.focus());
910
910
  }
911
911
  function le(x) {
912
912
  let O = Bt(x.target.value);
913
- const j = dn(O);
914
- O.length > fn || (O = un(O, Ut[j]), x.target.value = O, k(O), V && V(x));
913
+ const j = fn(O);
914
+ O.length > mn || (O = dn(O, Ut[j]), x.target.value = O, k(O), V && V(x));
915
915
  }
916
916
  function G(x) {
917
917
  a(!0), W && W(x);
918
918
  }
919
919
  function F(x) {
920
- a(!1), M && M(x);
920
+ a(!1), D && D(x);
921
921
  }
922
922
  return /* @__PURE__ */ m.jsxs(
923
923
  "section",
@@ -950,7 +950,7 @@ function Dn(n) {
950
950
  }
951
951
  );
952
952
  }
953
- function Mn(n, t) {
953
+ function Dn(e, n) {
954
954
  const {
955
955
  isLoading: a,
956
956
  isError: s,
@@ -971,7 +971,7 @@ function Mn(n, t) {
971
971
  max: E = 1e9,
972
972
  onChange: L,
973
973
  ...W
974
- } = n, M = y ? "right" : "left", z = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
974
+ } = e, D = y ? "right" : "left", z = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${n ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
975
975
  return {
976
976
  isLoading: a,
977
977
  className: z,
@@ -988,30 +988,30 @@ function Mn(n, t) {
988
988
  max: E,
989
989
  onChange: L,
990
990
  showCents: w,
991
- loadingPosition: M,
991
+ loadingPosition: D,
992
992
  iconSize: k,
993
993
  Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: k, strokeWidth: 2.5 }),
994
994
  ...W
995
995
  };
996
996
  }
997
- const zn = /^[1-9]{1}$/, $n = /^[0-9]{1}$/, Xt = 8;
998
- function Fn(n, t) {
999
- if (n === 0)
997
+ const zn = /^[1-9]{1}$/, $n = /^[0-9]{1}$/, qt = 8;
998
+ function Fn(e, n) {
999
+ if (e === 0)
1000
1000
  return "";
1001
- const a = (n / 100).toLocaleString("pt-BR", {
1001
+ const a = (e / 100).toLocaleString("pt-BR", {
1002
1002
  style: "currency",
1003
1003
  currency: "BRL"
1004
1004
  });
1005
- return t ? a : a.replace("R$", "").trim();
1005
+ return n ? a : a.replace("R$", "").trim();
1006
1006
  }
1007
- function Bn(n) {
1008
- const { currencyValue: t, event: a, max: s, setCurrencyValue: l } = n, { key: u, keyCode: h } = a;
1009
- if (t === 0 && !zn.test(u) || t !== 0 && !$n.test(u) && h !== Xt)
1007
+ function Bn(e) {
1008
+ const { currencyValue: n, event: a, max: s, setCurrencyValue: l } = e, { key: u, keyCode: h } = a;
1009
+ if (n === 0 && !zn.test(u) || n !== 0 && !$n.test(u) && h !== qt)
1010
1010
  return;
1011
- const c = t.toString();
1011
+ const c = n.toString();
1012
1012
  let p;
1013
- if (h !== Xt) {
1014
- const o = t === 0 ? u : `${c}${u}`;
1013
+ if (h !== qt) {
1014
+ const o = n === 0 ? u : `${c}${u}`;
1015
1015
  p = Number.parseInt(o, 10);
1016
1016
  } else {
1017
1017
  const o = c.slice(0, -1);
@@ -1019,8 +1019,8 @@ function Bn(n) {
1019
1019
  }
1020
1020
  p > Number(s) || l(p);
1021
1021
  }
1022
- function Un(n) {
1023
- const [t, a] = De(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = n.isError || !!h, {
1022
+ function Un(e) {
1023
+ const [n, a] = Me(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = e.isError || !!h, {
1024
1024
  disabled: o,
1025
1025
  title: y,
1026
1026
  style: _,
@@ -1033,7 +1033,7 @@ function Un(n) {
1033
1033
  LeftIcon: E,
1034
1034
  readOnly: L,
1035
1035
  onFocus: W,
1036
- onBlur: M,
1036
+ onBlur: D,
1037
1037
  RightIcon: X,
1038
1038
  Spinner: ee,
1039
1039
  value: V,
@@ -1043,7 +1043,7 @@ function Un(n) {
1043
1043
  showCents: ae,
1044
1044
  defaultValue: k,
1045
1045
  ...R
1046
- } = Mn({ ...n, id: u, isError: p }, t), [$, J] = De(k * 100 || 0), ie = E && !w, Z = X && !w, le = U === "left" && w, G = U === "right" && w;
1046
+ } = Dn({ ...e, id: u, isError: p }, n), [$, J] = Me(k * 100 || 0), ie = E && !w, Z = X && !w, le = U === "left" && w, G = U === "right" && w;
1047
1047
  function F() {
1048
1048
  o || !(c != null && c.current) || (a(!0), c.current.focus());
1049
1049
  }
@@ -1054,7 +1054,7 @@ function Un(n) {
1054
1054
  a(!0), W && W(te);
1055
1055
  }
1056
1056
  function j(te) {
1057
- a(!1), M && M(te);
1057
+ a(!1), D && D(te);
1058
1058
  }
1059
1059
  return /* @__PURE__ */ m.jsxs(
1060
1060
  "section",
@@ -1089,7 +1089,7 @@ function Un(n) {
1089
1089
  }
1090
1090
  );
1091
1091
  }
1092
- function Wn(n, t) {
1092
+ function Wn(e, n) {
1093
1093
  const {
1094
1094
  isLoading: a,
1095
1095
  isError: s,
@@ -1110,7 +1110,7 @@ function Wn(n, t) {
1110
1110
  showMask: E = !1,
1111
1111
  type: L,
1112
1112
  ...W
1113
- } = n, M = y ? "right" : "left", z = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
1113
+ } = e, D = y ? "right" : "left", z = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${n ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
1114
1114
  return {
1115
1115
  isLoading: a,
1116
1116
  className: z,
@@ -1125,16 +1125,16 @@ function Wn(n, t) {
1125
1125
  title: A,
1126
1126
  style: U,
1127
1127
  onChange: w,
1128
- loadingPosition: M,
1128
+ loadingPosition: D,
1129
1129
  iconSize: k,
1130
1130
  showMask: E,
1131
1131
  Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: k, strokeWidth: 2.5 }),
1132
1132
  ...W
1133
1133
  };
1134
1134
  }
1135
- const Hn = En((n, t) => /* @__PURE__ */ m.jsx("input", { ref: t, ...n }));
1136
- function Yn(n) {
1137
- const [t, a] = De(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = n.isError || !!h, {
1135
+ const Hn = Sn((e, n) => /* @__PURE__ */ m.jsx("input", { ref: n, ...e }));
1136
+ function Yn(e) {
1137
+ const [n, a] = Me(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = e.isError || !!h, {
1138
1138
  disabled: o,
1139
1139
  title: y,
1140
1140
  style: _,
@@ -1147,11 +1147,11 @@ function Yn(n) {
1147
1147
  LeftIcon: E,
1148
1148
  readOnly: L,
1149
1149
  onFocus: W,
1150
- onBlur: M,
1150
+ onBlur: D,
1151
1151
  RightIcon: X,
1152
1152
  Spinner: ee,
1153
1153
  ...V
1154
- } = Wn({ ...n, id: u, isError: p }, t), re = E && !w, Y = X && !w, z = U === "left" && w, ae = U === "right" && w;
1154
+ } = Wn({ ...e, id: u, isError: p }, n), re = E && !w, Y = X && !w, z = U === "left" && w, ae = U === "right" && w;
1155
1155
  function k() {
1156
1156
  o || !(c != null && c.current) || (a(!0), c.current.focus());
1157
1157
  }
@@ -1159,7 +1159,7 @@ function Yn(n) {
1159
1159
  a(!0), W && W(J);
1160
1160
  }
1161
1161
  function $(J) {
1162
- a(!1), M && M(J);
1162
+ a(!1), D && D(J);
1163
1163
  }
1164
1164
  return /* @__PURE__ */ m.jsxs(
1165
1165
  "section",
@@ -1189,7 +1189,7 @@ function Yn(n) {
1189
1189
  }
1190
1190
  );
1191
1191
  }
1192
- function Vn(n, t) {
1192
+ function Vn(e, n) {
1193
1193
  const {
1194
1194
  isLoading: a,
1195
1195
  isError: s,
@@ -1208,7 +1208,7 @@ function Vn(n, t) {
1208
1208
  style: U,
1209
1209
  onChange: w,
1210
1210
  ...E
1211
- } = n, L = y ? "right" : "left", re = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, z = { md: 20, lg: 20 }[l];
1211
+ } = e, L = y ? "right" : "left", re = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${n ? "focused" : ""} ${u}`, z = { md: 20, lg: 20 }[l];
1212
1212
  return {
1213
1213
  isLoading: a,
1214
1214
  className: re,
@@ -1229,8 +1229,8 @@ function Vn(n, t) {
1229
1229
  ...E
1230
1230
  };
1231
1231
  }
1232
- function Gn(n) {
1233
- const [t, a] = De(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = n.isError || !!h, {
1232
+ function Gn(e) {
1233
+ const [n, a] = Me(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = e.isError || !!h, {
1234
1234
  disabled: o,
1235
1235
  title: y,
1236
1236
  style: _,
@@ -1243,12 +1243,12 @@ function Gn(n) {
1243
1243
  LeftIcon: E,
1244
1244
  readOnly: L,
1245
1245
  onFocus: W,
1246
- onBlur: M,
1246
+ onBlur: D,
1247
1247
  RightIcon: X,
1248
1248
  type: ee,
1249
1249
  Spinner: V,
1250
1250
  ...re
1251
- } = Vn({ ...n, id: u, isError: p }, t), Y = E && !w, z = X && !w, ae = U === "left" && w, k = U === "right" && w;
1251
+ } = Vn({ ...e, id: u, isError: p }, n), Y = E && !w, z = X && !w, ae = U === "left" && w, k = U === "right" && w;
1252
1252
  function R() {
1253
1253
  o || !(c != null && c.current) || (a(!0), c.current.focus());
1254
1254
  }
@@ -1256,7 +1256,7 @@ function Gn(n) {
1256
1256
  a(!0), W && W(ie);
1257
1257
  }
1258
1258
  function J(ie) {
1259
- a(!1), M && M(ie);
1259
+ a(!1), D && D(ie);
1260
1260
  }
1261
1261
  return ee === "hidden" ? /* @__PURE__ */ m.jsx("input", { type: "hidden", ref: c, ...re }) : /* @__PURE__ */ m.jsxs(
1262
1262
  "section",
@@ -1288,18 +1288,18 @@ function Gn(n) {
1288
1288
  }
1289
1289
  );
1290
1290
  }
1291
- function aa(n) {
1292
- return n.type === "currency" ? /* @__PURE__ */ m.jsx(Un, { ...n }) : n.type === "masked" ? /* @__PURE__ */ m.jsx(Yn, { ...n }) : n.type === "cpf-cpnj" ? /* @__PURE__ */ m.jsx(Dn, { ...n }) : /* @__PURE__ */ m.jsx(Gn, { ...n });
1291
+ function oa(e) {
1292
+ return e.type === "currency" ? /* @__PURE__ */ m.jsx(Un, { ...e }) : e.type === "masked" ? /* @__PURE__ */ m.jsx(Yn, { ...e }) : e.type === "cpf-cnpj" ? /* @__PURE__ */ m.jsx(Mn, { ...e }) : /* @__PURE__ */ m.jsx(Gn, { ...e });
1293
1293
  }
1294
- function Kn(n, t, a) {
1295
- if (!n)
1294
+ function Kn(e, n, a) {
1295
+ if (!e)
1296
1296
  return /* @__PURE__ */ m.jsx(m.Fragment, {});
1297
- if (typeof n == "string")
1298
- return /* @__PURE__ */ m.jsx("p", { className: a, children: n });
1299
- const s = n;
1300
- return /* @__PURE__ */ m.jsx("p", { className: a, children: /* @__PURE__ */ m.jsx(s, { color: "var(--secondary-600)", size: t, strokeWidth: 2.5 }) });
1297
+ if (typeof e == "string")
1298
+ return /* @__PURE__ */ m.jsx("p", { className: a, children: e });
1299
+ const s = e;
1300
+ return /* @__PURE__ */ m.jsx("p", { className: a, children: /* @__PURE__ */ m.jsx(s, { color: "var(--secondary-600)", size: n, strokeWidth: 2.5 }) });
1301
1301
  }
1302
- function Xn(n, t) {
1302
+ function Xn(e, n) {
1303
1303
  const {
1304
1304
  isLoading: a,
1305
1305
  isError: s,
@@ -1317,7 +1317,7 @@ function Xn(n, t) {
1317
1317
  isSearchable: A = !1,
1318
1318
  closeOnSelect: U = !0,
1319
1319
  ...w
1320
- } = n, X = `arkyn_select ${c ? "hasPrefix" : ""} ${h} ${l} ${o || y || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${u}`, V = { md: 20, lg: 20 }[l];
1320
+ } = e, X = `arkyn_select ${c ? "hasPrefix" : ""} ${h} ${l} ${o || y || a ? "opacity" : ""} ${s ? "errored" : ""} ${n ? "focused" : ""} ${u}`, V = { md: 20, lg: 20 }[l];
1321
1321
  return {
1322
1322
  isLoading: a,
1323
1323
  className: X,
@@ -1336,9 +1336,9 @@ function Xn(n, t) {
1336
1336
  ...w
1337
1337
  };
1338
1338
  }
1339
- function oa(n) {
1339
+ function sa(e) {
1340
1340
  var K;
1341
- const [t, a] = De(!1), { inputRef: s, id: l, error: u } = Ke(), h = at(null), c = s || h, p = n.isError || !!u, {
1341
+ const [n, a] = Me(!1), { inputRef: s, id: l, error: u } = Ke(), h = at(null), c = s || h, p = e.isError || !!u, {
1342
1342
  disabled: o,
1343
1343
  title: y,
1344
1344
  style: _,
@@ -1351,7 +1351,7 @@ function oa(n) {
1351
1351
  defaultValue: E = "",
1352
1352
  readOnly: L,
1353
1353
  onFocus: W,
1354
- onBlur: M,
1354
+ onBlur: D,
1355
1355
  Spinner: X,
1356
1356
  name: ee,
1357
1357
  isSearchable: V,
@@ -1361,7 +1361,7 @@ function oa(n) {
1361
1361
  optionMaxHeight: ae,
1362
1362
  closeOnSelect: k,
1363
1363
  ...R
1364
- } = Xn({ ...n, id: l, isError: p }, t), [$, J] = De(E), [ie, Z] = De("");
1364
+ } = Xn({ ...e, id: l, isError: p }, n), [$, J] = Me(E), [ie, Z] = Me("");
1365
1365
  function le() {
1366
1366
  o || !(c != null && c.current) || (a(!0), c.current.focus());
1367
1367
  }
@@ -1369,23 +1369,23 @@ function oa(n) {
1369
1369
  a(!0), W && W(ue);
1370
1370
  }
1371
1371
  function F() {
1372
- a(!1), M && c.current && c.current.blur();
1372
+ a(!1), D && c.current && c.current.blur();
1373
1373
  }
1374
1374
  const x = typeof w == "string" ? w : $, O = ((K = z.find((ue) => ue.value === x)) == null ? void 0 : K.label) || "", j = () => {
1375
1375
  if (V) {
1376
- if (!t && O)
1376
+ if (!n && O)
1377
1377
  return !0;
1378
- if (!t && !O || t)
1378
+ if (!n && !O || n)
1379
1379
  return !1;
1380
1380
  }
1381
1381
  if (!V) {
1382
- if (!t && O)
1382
+ if (!n && O)
1383
1383
  return !0;
1384
- if (!t && !O)
1384
+ if (!n && !O)
1385
1385
  return !1;
1386
- if (t && O)
1386
+ if (n && O)
1387
1387
  return !0;
1388
- if (t && !O)
1388
+ if (n && !O)
1389
1389
  return !1;
1390
1390
  }
1391
1391
  }, te = z.filter((ue) => V ? ue.label.toLowerCase().includes(ie.toLowerCase()) : !0);
@@ -1423,7 +1423,7 @@ function oa(n) {
1423
1423
  readOnly: !0
1424
1424
  }
1425
1425
  ),
1426
- t && /* @__PURE__ */ m.jsxs(
1426
+ n && /* @__PURE__ */ m.jsxs(
1427
1427
  "ul",
1428
1428
  {
1429
1429
  className: "arkyn_select_content",
@@ -1439,7 +1439,7 @@ function oa(n) {
1439
1439
  children: [
1440
1440
  ue,
1441
1441
  " ",
1442
- /* @__PURE__ */ m.jsx(on, {})
1442
+ /* @__PURE__ */ m.jsx(sn, {})
1443
1443
  ]
1444
1444
  },
1445
1445
  de
@@ -1460,20 +1460,20 @@ function oa(n) {
1460
1460
  ]
1461
1461
  }
1462
1462
  ),
1463
- t && /* @__PURE__ */ m.jsx("aside", { className: "arkyn_select_overlay", onClick: F })
1463
+ n && /* @__PURE__ */ m.jsx("aside", { className: "arkyn_select_overlay", onClick: F })
1464
1464
  ] });
1465
1465
  }
1466
- function qn(n) {
1467
- const { className: t = "", ...a } = n;
1468
- return { className: `arkyn_breadcrumb ${t}`.trim(), ...a };
1466
+ function qn(e) {
1467
+ const { className: n = "", ...a } = e;
1468
+ return { className: `arkyn_breadcrumb ${n}`.trim(), ...a };
1469
1469
  }
1470
- function Jn(n) {
1471
- const { pathname: t } = ln(), {
1470
+ function Jn(e) {
1471
+ const { pathname: n } = cn(), {
1472
1472
  className: a = "",
1473
1473
  disabled: s = !1,
1474
1474
  to: l,
1475
1475
  ...u
1476
- } = n, h = t === l ? "active" : "inactive", c = `arkyn_breadcrumb_link ${h} ${a}`;
1476
+ } = e, h = n === l ? "active" : "inactive", c = `arkyn_breadcrumb_link ${h} ${a}`;
1477
1477
  return {
1478
1478
  to: l,
1479
1479
  className: c.trim(),
@@ -1481,32 +1481,32 @@ function Jn(n) {
1481
1481
  ...u
1482
1482
  };
1483
1483
  }
1484
- function sa(n) {
1485
- const { className: t, ...a } = qn(n);
1486
- return /* @__PURE__ */ m.jsx("nav", { className: t, ...a });
1484
+ function ia(e) {
1485
+ const { className: n, ...a } = qn(e);
1486
+ return /* @__PURE__ */ m.jsx("nav", { className: n, ...a });
1487
1487
  }
1488
- function ia(n) {
1489
- const { children: t, className: a, disabled: s, ...l } = Jn(n);
1488
+ function la(e) {
1489
+ const { children: n, className: a, disabled: s, ...l } = Jn(e);
1490
1490
  return s ? /* @__PURE__ */ m.jsxs("p", { className: a, children: [
1491
- /* @__PURE__ */ m.jsx(Ht, { size: 14, strokeWidth: 2.5 }),
1492
- t
1491
+ /* @__PURE__ */ m.jsx(Yt, { size: 14, strokeWidth: 2.5 }),
1492
+ n
1493
1493
  ] }) : /* @__PURE__ */ m.jsxs(Nn, { className: a, ...l, children: [
1494
- /* @__PURE__ */ m.jsx(Ht, { size: 14, strokeWidth: 2.5 }),
1495
- t
1494
+ /* @__PURE__ */ m.jsx(Yt, { size: 14, strokeWidth: 2.5 }),
1495
+ n
1496
1496
  ] });
1497
1497
  }
1498
- const mn = Ct({});
1499
- function Zn(n) {
1498
+ const pn = Ct({});
1499
+ function Zn(e) {
1500
1500
  const {
1501
- isVisibled: t,
1501
+ isVisibled: n,
1502
1502
  makeInvisible: a,
1503
1503
  children: s,
1504
1504
  className: l = "",
1505
1505
  ...u
1506
- } = n, c = `arkyn_modal_container ${t ? "visible" : ""} ${l}`;
1507
- return /* @__PURE__ */ m.jsx(mn.Provider, { value: { makeInvisible: a }, children: /* @__PURE__ */ m.jsx(Cn, { children: t && /* @__PURE__ */ m.jsxs("aside", { className: c.trim(), ...u, children: [
1506
+ } = e, c = `arkyn_modal_container ${n ? "visible" : ""} ${l}`;
1507
+ return /* @__PURE__ */ m.jsx(pn.Provider, { value: { makeInvisible: a }, children: /* @__PURE__ */ m.jsx(Cn, { children: n && /* @__PURE__ */ m.jsxs("aside", { className: c.trim(), ...u, children: [
1508
1508
  /* @__PURE__ */ m.jsx(
1509
- Yt.div,
1509
+ Vt.div,
1510
1510
  {
1511
1511
  className: "overlay",
1512
1512
  transition: { duration: 0.15, ease: "easeOut" },
@@ -1517,7 +1517,7 @@ function Zn(n) {
1517
1517
  }
1518
1518
  ),
1519
1519
  /* @__PURE__ */ m.jsx(
1520
- Yt.div,
1520
+ Vt.div,
1521
1521
  {
1522
1522
  className: "content",
1523
1523
  transition: { duration: 0.15, ease: "easeOut" },
@@ -1529,27 +1529,27 @@ function Zn(n) {
1529
1529
  )
1530
1530
  ] }) }) });
1531
1531
  }
1532
- function Qn(n) {
1533
- const { alignment: t = "right", className: a, ...s } = n, l = `arkyn_modal_footer ${t} ${a}`;
1532
+ function Qn(e) {
1533
+ const { alignment: n = "right", className: a, ...s } = e, l = `arkyn_modal_footer ${n} ${a}`;
1534
1534
  return /* @__PURE__ */ m.jsx("footer", { className: l.trim(), ...s });
1535
1535
  }
1536
- function er(n) {
1537
- const { showCloseButton: t, className: a, children: s, ...l } = n, { makeInvisible: u } = gt(mn), c = `arkyn_modal_header ${t ? "show-close" : ""} ${a}`;
1536
+ function er(e) {
1537
+ const { showCloseButton: n, className: a, children: s, ...l } = e, { makeInvisible: u } = gt(pn), c = `arkyn_modal_header ${n ? "show-close" : ""} ${a}`;
1538
1538
  return /* @__PURE__ */ m.jsxs("header", { className: c.trim(), ...l, children: [
1539
1539
  s,
1540
1540
  /* @__PURE__ */ m.jsx("button", { type: "button", onClick: u, children: /* @__PURE__ */ m.jsx(_n, { size: 24 }) })
1541
1541
  ] });
1542
1542
  }
1543
- const la = { Container: Zn, Header: er, Footer: Qn };
1544
- function ca(n) {
1543
+ const ca = { Container: Zn, Header: er, Footer: Qn };
1544
+ function ua(e) {
1545
1545
  const {
1546
- text: t,
1546
+ text: n,
1547
1547
  size: a = "lg",
1548
1548
  children: s,
1549
1549
  orientation: l = "top",
1550
1550
  className: u,
1551
1551
  ...h
1552
- } = n;
1552
+ } = e;
1553
1553
  return /* @__PURE__ */ m.jsxs(
1554
1554
  "div",
1555
1555
  {
@@ -1557,36 +1557,44 @@ function ca(n) {
1557
1557
  ...h,
1558
1558
  children: [
1559
1559
  s,
1560
- /* @__PURE__ */ m.jsx("div", { className: "arkyn_tooltip_text", children: t })
1560
+ /* @__PURE__ */ m.jsx("div", { className: "arkyn_tooltip_text", children: n })
1561
1561
  ]
1562
1562
  }
1563
1563
  );
1564
1564
  }
1565
- const Wt = Ct({});
1566
- function ua() {
1567
- const n = sn(), { closeModal: t } = gt(Wt);
1568
- Sn(() => {
1569
- const a = n == null ? void 0 : n.closeModalKey;
1570
- a && t(a);
1571
- }, [n]);
1565
+ const Wt = Ct({}), hn = Ct({});
1566
+ function tr() {
1567
+ const e = gt(hn);
1568
+ if (Object.entries(e).length === 0)
1569
+ throw new Error("useToast must be used within a Provider");
1570
+ return e;
1571
+ }
1572
+ function da() {
1573
+ const e = ln(), { closeModal: n } = gt(Wt), { successToast: a, errorToast: s } = tr();
1574
+ Ht(() => {
1575
+ const l = e == null ? void 0 : e.closeModalKey;
1576
+ l && n(l);
1577
+ }, [e]), Ht(() => {
1578
+ typeof (e == null ? void 0 : e.message) == "string" && typeof (e == null ? void 0 : e.success) == "boolean" && (e != null && e.success ? a(e == null ? void 0 : e.message) : s(e == null ? void 0 : e.message));
1579
+ }, [e]);
1572
1580
  }
1573
- function da(n) {
1574
- const t = gt(Wt);
1575
- if (Object.entries(t).length === 0)
1581
+ function fa(e) {
1582
+ const n = gt(Wt);
1583
+ if (Object.entries(n).length === 0)
1576
1584
  throw new Error("useModal must be used within a Provider");
1577
- if (n) {
1585
+ if (e) {
1578
1586
  const {
1579
1587
  modalData: a,
1580
1588
  modalIsOpen: s,
1581
1589
  openModal: l,
1582
1590
  closeModal: u
1583
- } = t, h = s(n), c = a(n);
1584
- return { modalIsOpen: h, modalData: c, openModal: (y) => l(n, y == null ? void 0 : y.data), closeModal: () => u(n) };
1591
+ } = n, h = s(e), c = a(e);
1592
+ return { modalIsOpen: h, modalData: c, openModal: (y) => l(e, y == null ? void 0 : y.data), closeModal: () => u(e) };
1585
1593
  } else
1586
- return t;
1594
+ return n;
1587
1595
  }
1588
- function fa(n = "") {
1589
- const t = ln(), a = new URLSearchParams(t.search), s = n ? `${n}:` : "", l = (u) => {
1596
+ function ma(e = "") {
1597
+ const n = cn(), a = new URLSearchParams(n.search), s = e ? `${e}:` : "", l = (u) => {
1590
1598
  Object.entries(u).forEach(([h, c]) => {
1591
1599
  c === void 0 ? a.delete(`${s}${h}`) : a.set(`${s}${h}`, String(c));
1592
1600
  });
@@ -1600,15 +1608,8 @@ function fa(n = "") {
1600
1608
  }
1601
1609
  };
1602
1610
  }
1603
- const pn = Ct({});
1604
- function ma() {
1605
- const n = gt(pn);
1606
- if (Object.entries(n).length === 0)
1607
- throw new Error("useToast must be used within a Provider");
1608
- return n;
1609
- }
1610
- function pa(n) {
1611
- const { children: t = !1 } = n, [a, s] = De([]);
1611
+ function pa(e) {
1612
+ const { children: n = !1 } = e, [a, s] = Me([]);
1612
1613
  function l(p) {
1613
1614
  return !!a.some((o) => o.key === p);
1614
1615
  }
@@ -1627,89 +1628,89 @@ function pa(n) {
1627
1628
  Wt.Provider,
1628
1629
  {
1629
1630
  value: { modalIsOpen: l, modalData: u, openModal: h, closeModal: c },
1630
- children: t
1631
+ children: n
1631
1632
  }
1632
1633
  );
1633
1634
  }
1634
- var { entries: hn, setPrototypeOf: qt, isFrozen: tr, getPrototypeOf: nr, getOwnPropertyDescriptor: rr } = Object, { freeze: xe, seal: Re, create: gn } = Object, { apply: zt, construct: $t } = typeof Reflect < "u" && Reflect;
1635
- xe || (xe = function(n) {
1636
- return n;
1635
+ var { entries: gn, setPrototypeOf: Jt, isFrozen: nr, getPrototypeOf: rr, getOwnPropertyDescriptor: ar } = Object, { freeze: xe, seal: Re, create: vn } = Object, { apply: zt, construct: $t } = typeof Reflect < "u" && Reflect;
1636
+ xe || (xe = function(e) {
1637
+ return e;
1637
1638
  });
1638
- Re || (Re = function(n) {
1639
- return n;
1639
+ Re || (Re = function(e) {
1640
+ return e;
1640
1641
  });
1641
- zt || (zt = function(n, t, a) {
1642
- return n.apply(t, a);
1642
+ zt || (zt = function(e, n, a) {
1643
+ return e.apply(n, a);
1643
1644
  });
1644
- $t || ($t = function(n, t) {
1645
- return new n(...t);
1645
+ $t || ($t = function(e, n) {
1646
+ return new e(...n);
1646
1647
  });
1647
- var wt = _e(Array.prototype.forEach), Jt = _e(Array.prototype.pop), mt = _e(Array.prototype.push), Nt = _e(String.prototype.toLowerCase), Lt = _e(String.prototype.toString), Zt = _e(String.prototype.match), pt = _e(String.prototype.replace), ar = _e(String.prototype.indexOf), or = _e(String.prototype.trim), Pe = _e(Object.prototype.hasOwnProperty), Te = _e(RegExp.prototype.test), ht = sr(TypeError);
1648
- function _e(n) {
1649
- return function(t) {
1648
+ var wt = _e(Array.prototype.forEach), Zt = _e(Array.prototype.pop), mt = _e(Array.prototype.push), Nt = _e(String.prototype.toLowerCase), Lt = _e(String.prototype.toString), Qt = _e(String.prototype.match), pt = _e(String.prototype.replace), or = _e(String.prototype.indexOf), sr = _e(String.prototype.trim), Pe = _e(Object.prototype.hasOwnProperty), Te = _e(RegExp.prototype.test), ht = ir(TypeError);
1649
+ function _e(e) {
1650
+ return function(n) {
1650
1651
  for (var a = arguments.length, s = new Array(a > 1 ? a - 1 : 0), l = 1; l < a; l++)
1651
1652
  s[l - 1] = arguments[l];
1652
- return zt(n, t, s);
1653
+ return zt(e, n, s);
1653
1654
  };
1654
1655
  }
1655
- function sr(n) {
1656
+ function ir(e) {
1656
1657
  return function() {
1657
- for (var t = arguments.length, a = new Array(t), s = 0; s < t; s++)
1658
+ for (var n = arguments.length, a = new Array(n), s = 0; s < n; s++)
1658
1659
  a[s] = arguments[s];
1659
- return $t(n, a);
1660
+ return $t(e, a);
1660
1661
  };
1661
1662
  }
1662
- function B(n, t) {
1663
+ function B(e, n) {
1663
1664
  let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Nt;
1664
- qt && qt(n, null);
1665
- let s = t.length;
1665
+ Jt && Jt(e, null);
1666
+ let s = n.length;
1666
1667
  for (; s--; ) {
1667
- let l = t[s];
1668
+ let l = n[s];
1668
1669
  if (typeof l == "string") {
1669
1670
  let u = a(l);
1670
- u !== l && (tr(t) || (t[s] = u), l = u);
1671
+ u !== l && (nr(n) || (n[s] = u), l = u);
1671
1672
  }
1672
- n[l] = !0;
1673
+ e[l] = !0;
1673
1674
  }
1674
- return n;
1675
+ return e;
1675
1676
  }
1676
- function ir(n) {
1677
- for (let t = 0; t < n.length; t++)
1678
- Pe(n, t) || (n[t] = null);
1679
- return n;
1677
+ function lr(e) {
1678
+ for (let n = 0; n < e.length; n++)
1679
+ Pe(e, n) || (e[n] = null);
1680
+ return e;
1680
1681
  }
1681
- function Ze(n) {
1682
- let t = gn(null);
1683
- for (let [a, s] of hn(n))
1684
- Pe(n, a) && (Array.isArray(s) ? t[a] = ir(s) : s && typeof s == "object" && s.constructor === Object ? t[a] = Ze(s) : t[a] = s);
1685
- return t;
1682
+ function Ze(e) {
1683
+ let n = vn(null);
1684
+ for (let [a, s] of gn(e))
1685
+ Pe(e, a) && (Array.isArray(s) ? n[a] = lr(s) : s && typeof s == "object" && s.constructor === Object ? n[a] = Ze(s) : n[a] = s);
1686
+ return n;
1686
1687
  }
1687
- function Et(n, t) {
1688
- for (; n !== null; ) {
1689
- let s = rr(n, t);
1688
+ function Et(e, n) {
1689
+ for (; e !== null; ) {
1690
+ let s = ar(e, n);
1690
1691
  if (s) {
1691
1692
  if (s.get)
1692
1693
  return _e(s.get);
1693
1694
  if (typeof s.value == "function")
1694
1695
  return _e(s.value);
1695
1696
  }
1696
- n = nr(n);
1697
+ e = rr(e);
1697
1698
  }
1698
1699
  function a() {
1699
1700
  return null;
1700
1701
  }
1701
1702
  return a;
1702
1703
  }
1703
- var Qt = xe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Ot = xe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Pt = xe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), lr = xe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), jt = xe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), cr = xe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), en = xe(["#text"]), tn = xe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), Dt = xe(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), nn = xe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), St = xe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ur = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), dr = Re(/<%[\w\W]*|[\w\W]*%>/gm), fr = Re(/\${[\w\W]*}/gm), mr = Re(/^data-[\-\w.\u00B7-\uFFFF]/), pr = Re(/^aria-[\-\w]+$/), vn = Re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), hr = Re(/^(?:\w+script|data):/i), gr = Re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), yn = Re(/^html$/i), vr = Re(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i), rn = Object.freeze({ __proto__: null, MUSTACHE_EXPR: ur, ERB_EXPR: dr, TMPLIT_EXPR: fr, DATA_ATTR: mr, ARIA_ATTR: pr, IS_ALLOWED_URI: vn, IS_SCRIPT_OR_DATA: hr, ATTR_WHITESPACE: gr, DOCTYPE_NAME: yn, CUSTOM_ELEMENT: vr }), yr = function() {
1704
+ var en = xe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Ot = xe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Pt = xe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), cr = xe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), jt = xe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ur = xe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), tn = xe(["#text"]), nn = xe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), Mt = xe(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), rn = xe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), St = xe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), dr = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), fr = Re(/<%[\w\W]*|[\w\W]*%>/gm), mr = Re(/\${[\w\W]*}/gm), pr = Re(/^data-[\-\w.\u00B7-\uFFFF]/), hr = Re(/^aria-[\-\w]+$/), yn = Re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), gr = Re(/^(?:\w+script|data):/i), vr = Re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), bn = Re(/^html$/i), yr = Re(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i), an = Object.freeze({ __proto__: null, MUSTACHE_EXPR: dr, ERB_EXPR: fr, TMPLIT_EXPR: mr, DATA_ATTR: pr, ARIA_ATTR: hr, IS_ALLOWED_URI: yn, IS_SCRIPT_OR_DATA: gr, ATTR_WHITESPACE: vr, DOCTYPE_NAME: bn, CUSTOM_ELEMENT: yr }), br = function() {
1704
1705
  return typeof window > "u" ? null : window;
1705
- }, br = function(n, t) {
1706
- if (typeof n != "object" || typeof n.createPolicy != "function")
1706
+ }, xr = function(e, n) {
1707
+ if (typeof e != "object" || typeof e.createPolicy != "function")
1707
1708
  return null;
1708
1709
  let a = null, s = "data-tt-policy-suffix";
1709
- t && t.hasAttribute(s) && (a = t.getAttribute(s));
1710
+ n && n.hasAttribute(s) && (a = n.getAttribute(s));
1710
1711
  let l = "dompurify" + (a ? "#" + a : "");
1711
1712
  try {
1712
- return n.createPolicy(l, { createHTML(u) {
1713
+ return e.createPolicy(l, { createHTML(u) {
1713
1714
  return u;
1714
1715
  }, createScriptURL(u) {
1715
1716
  return u;
@@ -1718,51 +1719,51 @@ var Qt = xe(["a", "abbr", "acronym", "address", "area", "article", "aside", "aud
1718
1719
  return console.warn("TrustedTypes policy " + l + " could not be created."), null;
1719
1720
  }
1720
1721
  };
1721
- function bn() {
1722
- let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : yr(), t = (e) => bn(e);
1723
- if (t.version = "3.0.10", t.removed = [], !n || !n.document || n.document.nodeType !== 9)
1724
- return t.isSupported = !1, t;
1725
- let { document: a } = n, s = a, l = s.currentScript, { DocumentFragment: u, HTMLTemplateElement: h, Node: c, Element: p, NodeFilter: o, NamedNodeMap: y = n.NamedNodeMap || n.MozNamedAttrMap, HTMLFormElement: _, DOMParser: N, trustedTypes: b } = n, P = p.prototype, A = Et(P, "cloneNode"), U = Et(P, "nextSibling"), w = Et(P, "childNodes"), E = Et(P, "parentNode");
1722
+ function xn() {
1723
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : br(), n = (t) => xn(t);
1724
+ if (n.version = "3.0.10", n.removed = [], !e || !e.document || e.document.nodeType !== 9)
1725
+ return n.isSupported = !1, n;
1726
+ let { document: a } = e, s = a, l = s.currentScript, { DocumentFragment: u, HTMLTemplateElement: h, Node: c, Element: p, NodeFilter: o, NamedNodeMap: y = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: _, DOMParser: N, trustedTypes: b } = e, P = p.prototype, A = Et(P, "cloneNode"), U = Et(P, "nextSibling"), w = Et(P, "childNodes"), E = Et(P, "parentNode");
1726
1727
  if (typeof h == "function") {
1727
- let e = a.createElement("template");
1728
- e.content && e.content.ownerDocument && (a = e.content.ownerDocument);
1728
+ let t = a.createElement("template");
1729
+ t.content && t.content.ownerDocument && (a = t.content.ownerDocument);
1729
1730
  }
1730
- let L, W = "", { implementation: M, createNodeIterator: X, createDocumentFragment: ee, getElementsByTagName: V } = a, { importNode: re } = s, Y = {};
1731
- t.isSupported = typeof hn == "function" && typeof E == "function" && M && M.createHTMLDocument !== void 0;
1732
- let { MUSTACHE_EXPR: z, ERB_EXPR: ae, TMPLIT_EXPR: k, DATA_ATTR: R, ARIA_ATTR: $, IS_SCRIPT_OR_DATA: J, ATTR_WHITESPACE: ie, CUSTOM_ELEMENT: Z } = rn, { IS_ALLOWED_URI: le } = rn, G = null, F = B({}, [...Qt, ...Ot, ...Pt, ...jt, ...en]), x = null, O = B({}, [...tn, ...Dt, ...nn, ...St]), j = Object.seal(gn(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), te = null, K = null, ue = !0, de = !0, Ie = !1, we = !0, Ae = !1, pe = !1, Xe = !1, qe = !1, oe = !1, he = !1, $e = !1, Je = !0, Ne = !1, ot = "user-content-", Be = !0, Se = !1, ye = {}, Le = null, ke = B({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), Ue = null, Me = B({}, ["audio", "video", "img", "source", "image", "track"]), We = null, He = B({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", Ce = "http://www.w3.org/2000/svg", fe = "http://www.w3.org/1999/xhtml", ze = fe, Ye = !1, S = null, se = B({}, [Fe, Ce, fe], Lt), Q = null, Ee = ["application/xhtml+xml", "text/html"], ge = "text/html", ne = null, be = null, st = a.createElement("form"), et = function(e) {
1733
- return e instanceof RegExp || e instanceof Function;
1731
+ let L, W = "", { implementation: D, createNodeIterator: X, createDocumentFragment: ee, getElementsByTagName: V } = a, { importNode: re } = s, Y = {};
1732
+ n.isSupported = typeof gn == "function" && typeof E == "function" && D && D.createHTMLDocument !== void 0;
1733
+ let { MUSTACHE_EXPR: z, ERB_EXPR: ae, TMPLIT_EXPR: k, DATA_ATTR: R, ARIA_ATTR: $, IS_SCRIPT_OR_DATA: J, ATTR_WHITESPACE: ie, CUSTOM_ELEMENT: Z } = an, { IS_ALLOWED_URI: le } = an, G = null, F = B({}, [...en, ...Ot, ...Pt, ...jt, ...tn]), x = null, O = B({}, [...nn, ...Mt, ...rn, ...St]), j = Object.seal(vn(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), te = null, K = null, ue = !0, de = !0, Ie = !1, we = !0, Ae = !1, pe = !1, Xe = !1, qe = !1, oe = !1, he = !1, $e = !1, Je = !0, Ne = !1, ot = "user-content-", Be = !0, Se = !1, ye = {}, Le = null, ke = B({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), Ue = null, De = B({}, ["audio", "video", "img", "source", "image", "track"]), We = null, He = B({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", Ce = "http://www.w3.org/2000/svg", fe = "http://www.w3.org/1999/xhtml", ze = fe, Ye = !1, S = null, se = B({}, [Fe, Ce, fe], Lt), Q = null, Ee = ["application/xhtml+xml", "text/html"], ge = "text/html", ne = null, be = null, st = a.createElement("form"), et = function(t) {
1734
+ return t instanceof RegExp || t instanceof Function;
1734
1735
  }, tt = function() {
1735
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1736
- if (!(be && be === e)) {
1737
- if ((!e || typeof e != "object") && (e = {}), e = Ze(e), Q = Ee.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? ge : e.PARSER_MEDIA_TYPE, ne = Q === "application/xhtml+xml" ? Lt : Nt, G = Pe(e, "ALLOWED_TAGS") ? B({}, e.ALLOWED_TAGS, ne) : F, x = Pe(e, "ALLOWED_ATTR") ? B({}, e.ALLOWED_ATTR, ne) : O, S = Pe(e, "ALLOWED_NAMESPACES") ? B({}, e.ALLOWED_NAMESPACES, Lt) : se, We = Pe(e, "ADD_URI_SAFE_ATTR") ? B(Ze(He), e.ADD_URI_SAFE_ATTR, ne) : He, Ue = Pe(e, "ADD_DATA_URI_TAGS") ? B(Ze(Me), e.ADD_DATA_URI_TAGS, ne) : Me, Le = Pe(e, "FORBID_CONTENTS") ? B({}, e.FORBID_CONTENTS, ne) : ke, te = Pe(e, "FORBID_TAGS") ? B({}, e.FORBID_TAGS, ne) : {}, K = Pe(e, "FORBID_ATTR") ? B({}, e.FORBID_ATTR, ne) : {}, ye = Pe(e, "USE_PROFILES") ? e.USE_PROFILES : !1, ue = e.ALLOW_ARIA_ATTR !== !1, de = e.ALLOW_DATA_ATTR !== !1, Ie = e.ALLOW_UNKNOWN_PROTOCOLS || !1, we = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = e.SAFE_FOR_TEMPLATES || !1, pe = e.WHOLE_DOCUMENT || !1, oe = e.RETURN_DOM || !1, he = e.RETURN_DOM_FRAGMENT || !1, $e = e.RETURN_TRUSTED_TYPE || !1, qe = e.FORCE_BODY || !1, Je = e.SANITIZE_DOM !== !1, Ne = e.SANITIZE_NAMED_PROPS || !1, Be = e.KEEP_CONTENT !== !1, Se = e.IN_PLACE || !1, le = e.ALLOWED_URI_REGEXP || vn, ze = e.NAMESPACE || fe, j = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (j.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (j.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ae && (de = !1), he && (oe = !0), ye && (G = B({}, en), x = [], ye.html === !0 && (B(G, Qt), B(x, tn)), ye.svg === !0 && (B(G, Ot), B(x, Dt), B(x, St)), ye.svgFilters === !0 && (B(G, Pt), B(x, Dt), B(x, St)), ye.mathMl === !0 && (B(G, jt), B(x, nn), B(x, St))), e.ADD_TAGS && (G === F && (G = Ze(G)), B(G, e.ADD_TAGS, ne)), e.ADD_ATTR && (x === O && (x = Ze(x)), B(x, e.ADD_ATTR, ne)), e.ADD_URI_SAFE_ATTR && B(We, e.ADD_URI_SAFE_ATTR, ne), e.FORBID_CONTENTS && (Le === ke && (Le = Ze(Le)), B(Le, e.FORBID_CONTENTS, ne)), Be && (G["#text"] = !0), pe && B(G, ["html", "head", "body"]), G.table && (B(G, ["tbody"]), delete te.tbody), e.TRUSTED_TYPES_POLICY) {
1738
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
1736
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1737
+ if (!(be && be === t)) {
1738
+ if ((!t || typeof t != "object") && (t = {}), t = Ze(t), Q = Ee.indexOf(t.PARSER_MEDIA_TYPE) === -1 ? ge : t.PARSER_MEDIA_TYPE, ne = Q === "application/xhtml+xml" ? Lt : Nt, G = Pe(t, "ALLOWED_TAGS") ? B({}, t.ALLOWED_TAGS, ne) : F, x = Pe(t, "ALLOWED_ATTR") ? B({}, t.ALLOWED_ATTR, ne) : O, S = Pe(t, "ALLOWED_NAMESPACES") ? B({}, t.ALLOWED_NAMESPACES, Lt) : se, We = Pe(t, "ADD_URI_SAFE_ATTR") ? B(Ze(He), t.ADD_URI_SAFE_ATTR, ne) : He, Ue = Pe(t, "ADD_DATA_URI_TAGS") ? B(Ze(De), t.ADD_DATA_URI_TAGS, ne) : De, Le = Pe(t, "FORBID_CONTENTS") ? B({}, t.FORBID_CONTENTS, ne) : ke, te = Pe(t, "FORBID_TAGS") ? B({}, t.FORBID_TAGS, ne) : {}, K = Pe(t, "FORBID_ATTR") ? B({}, t.FORBID_ATTR, ne) : {}, ye = Pe(t, "USE_PROFILES") ? t.USE_PROFILES : !1, ue = t.ALLOW_ARIA_ATTR !== !1, de = t.ALLOW_DATA_ATTR !== !1, Ie = t.ALLOW_UNKNOWN_PROTOCOLS || !1, we = t.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = t.SAFE_FOR_TEMPLATES || !1, pe = t.WHOLE_DOCUMENT || !1, oe = t.RETURN_DOM || !1, he = t.RETURN_DOM_FRAGMENT || !1, $e = t.RETURN_TRUSTED_TYPE || !1, qe = t.FORCE_BODY || !1, Je = t.SANITIZE_DOM !== !1, Ne = t.SANITIZE_NAMED_PROPS || !1, Be = t.KEEP_CONTENT !== !1, Se = t.IN_PLACE || !1, le = t.ALLOWED_URI_REGEXP || yn, ze = t.NAMESPACE || fe, j = t.CUSTOM_ELEMENT_HANDLING || {}, t.CUSTOM_ELEMENT_HANDLING && et(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (j.tagNameCheck = t.CUSTOM_ELEMENT_HANDLING.tagNameCheck), t.CUSTOM_ELEMENT_HANDLING && et(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (j.attributeNameCheck = t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), t.CUSTOM_ELEMENT_HANDLING && typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ae && (de = !1), he && (oe = !0), ye && (G = B({}, tn), x = [], ye.html === !0 && (B(G, en), B(x, nn)), ye.svg === !0 && (B(G, Ot), B(x, Mt), B(x, St)), ye.svgFilters === !0 && (B(G, Pt), B(x, Mt), B(x, St)), ye.mathMl === !0 && (B(G, jt), B(x, rn), B(x, St))), t.ADD_TAGS && (G === F && (G = Ze(G)), B(G, t.ADD_TAGS, ne)), t.ADD_ATTR && (x === O && (x = Ze(x)), B(x, t.ADD_ATTR, ne)), t.ADD_URI_SAFE_ATTR && B(We, t.ADD_URI_SAFE_ATTR, ne), t.FORBID_CONTENTS && (Le === ke && (Le = Ze(Le)), B(Le, t.FORBID_CONTENTS, ne)), Be && (G["#text"] = !0), pe && B(G, ["html", "head", "body"]), G.table && (B(G, ["tbody"]), delete te.tbody), t.TRUSTED_TYPES_POLICY) {
1739
+ if (typeof t.TRUSTED_TYPES_POLICY.createHTML != "function")
1739
1740
  throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
1740
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
1741
+ if (typeof t.TRUSTED_TYPES_POLICY.createScriptURL != "function")
1741
1742
  throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
1742
- L = e.TRUSTED_TYPES_POLICY, W = L.createHTML("");
1743
+ L = t.TRUSTED_TYPES_POLICY, W = L.createHTML("");
1743
1744
  } else
1744
- L === void 0 && (L = br(b, l)), L !== null && typeof W == "string" && (W = L.createHTML(""));
1745
- xe && xe(e), be = e;
1745
+ L === void 0 && (L = xr(b, l)), L !== null && typeof W == "string" && (W = L.createHTML(""));
1746
+ xe && xe(t), be = t;
1746
1747
  }
1747
- }, vt = B({}, ["mi", "mo", "mn", "ms", "mtext"]), it = B({}, ["foreignobject", "desc", "title", "annotation-xml"]), Rt = B({}, ["title", "style", "font", "a", "script"]), lt = B({}, [...Ot, ...Pt, ...lr]), ct = B({}, [...jt, ...cr]), It = function(e) {
1748
- let f = E(e);
1748
+ }, vt = B({}, ["mi", "mo", "mn", "ms", "mtext"]), it = B({}, ["foreignobject", "desc", "title", "annotation-xml"]), Rt = B({}, ["title", "style", "font", "a", "script"]), lt = B({}, [...Ot, ...Pt, ...cr]), ct = B({}, [...jt, ...ur]), It = function(t) {
1749
+ let f = E(t);
1749
1750
  (!f || !f.tagName) && (f = { namespaceURI: ze, tagName: "template" });
1750
- let i = Nt(e.tagName), C = Nt(f.tagName);
1751
- return S[e.namespaceURI] ? e.namespaceURI === Ce ? f.namespaceURI === fe ? i === "svg" : f.namespaceURI === Fe ? i === "svg" && (C === "annotation-xml" || vt[C]) : !!lt[i] : e.namespaceURI === Fe ? f.namespaceURI === fe ? i === "math" : f.namespaceURI === Ce ? i === "math" && it[C] : !!ct[i] : e.namespaceURI === fe ? f.namespaceURI === Ce && !it[C] || f.namespaceURI === Fe && !vt[C] ? !1 : !ct[i] && (Rt[i] || !lt[i]) : !!(Q === "application/xhtml+xml" && S[e.namespaceURI]) : !1;
1752
- }, Ve = function(e) {
1753
- mt(t.removed, { element: e });
1751
+ let i = Nt(t.tagName), C = Nt(f.tagName);
1752
+ return S[t.namespaceURI] ? t.namespaceURI === Ce ? f.namespaceURI === fe ? i === "svg" : f.namespaceURI === Fe ? i === "svg" && (C === "annotation-xml" || vt[C]) : !!lt[i] : t.namespaceURI === Fe ? f.namespaceURI === fe ? i === "math" : f.namespaceURI === Ce ? i === "math" && it[C] : !!ct[i] : t.namespaceURI === fe ? f.namespaceURI === Ce && !it[C] || f.namespaceURI === Fe && !vt[C] ? !1 : !ct[i] && (Rt[i] || !lt[i]) : !!(Q === "application/xhtml+xml" && S[t.namespaceURI]) : !1;
1753
+ }, Ve = function(t) {
1754
+ mt(n.removed, { element: t });
1754
1755
  try {
1755
- e.parentNode.removeChild(e);
1756
+ t.parentNode.removeChild(t);
1756
1757
  } catch {
1757
- e.remove();
1758
+ t.remove();
1758
1759
  }
1759
- }, nt = function(e, f) {
1760
+ }, nt = function(t, f) {
1760
1761
  try {
1761
- mt(t.removed, { attribute: f.getAttributeNode(e), from: f });
1762
+ mt(n.removed, { attribute: f.getAttributeNode(t), from: f });
1762
1763
  } catch {
1763
- mt(t.removed, { attribute: null, from: f });
1764
+ mt(n.removed, { attribute: null, from: f });
1764
1765
  }
1765
- if (f.removeAttribute(e), e === "is" && !x[e])
1766
+ if (f.removeAttribute(t), t === "is" && !x[t])
1766
1767
  if (oe || he)
1767
1768
  try {
1768
1769
  Ve(f);
@@ -1770,99 +1771,99 @@ function bn() {
1770
1771
  }
1771
1772
  else
1772
1773
  try {
1773
- f.setAttribute(e, "");
1774
+ f.setAttribute(t, "");
1774
1775
  } catch {
1775
1776
  }
1776
- }, ut = function(e) {
1777
+ }, ut = function(t) {
1777
1778
  let f = null, i = null;
1778
1779
  if (qe)
1779
- e = "<remove></remove>" + e;
1780
+ t = "<remove></remove>" + t;
1780
1781
  else {
1781
- let I = Zt(e, /^[\r\n\t ]+/);
1782
+ let I = Qt(t, /^[\r\n\t ]+/);
1782
1783
  i = I && I[0];
1783
1784
  }
1784
- Q === "application/xhtml+xml" && ze === fe && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
1785
- let C = L ? L.createHTML(e) : e;
1785
+ Q === "application/xhtml+xml" && ze === fe && (t = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + t + "</body></html>");
1786
+ let C = L ? L.createHTML(t) : t;
1786
1787
  if (ze === fe)
1787
1788
  try {
1788
1789
  f = new N().parseFromString(C, Q);
1789
1790
  } catch {
1790
1791
  }
1791
1792
  if (!f || !f.documentElement) {
1792
- f = M.createDocument(ze, "template", null);
1793
+ f = D.createDocument(ze, "template", null);
1793
1794
  try {
1794
1795
  f.documentElement.innerHTML = Ye ? W : C;
1795
1796
  } catch {
1796
1797
  }
1797
1798
  }
1798
- let D = f.body || f.documentElement;
1799
- return e && i && D.insertBefore(a.createTextNode(i), D.childNodes[0] || null), ze === fe ? V.call(f, pe ? "html" : "body")[0] : pe ? f.documentElement : D;
1800
- }, yt = function(e) {
1801
- return X.call(e.ownerDocument || e, e, o.SHOW_ELEMENT | o.SHOW_COMMENT | o.SHOW_TEXT | o.SHOW_PROCESSING_INSTRUCTION, null);
1802
- }, At = function(e) {
1803
- return e instanceof _ && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof y) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
1804
- }, bt = function(e) {
1805
- return typeof c == "function" && e instanceof c;
1806
- }, Oe = function(e, f, i) {
1807
- Y[e] && wt(Y[e], (C) => {
1808
- C.call(t, f, i, be);
1799
+ let M = f.body || f.documentElement;
1800
+ return t && i && M.insertBefore(a.createTextNode(i), M.childNodes[0] || null), ze === fe ? V.call(f, pe ? "html" : "body")[0] : pe ? f.documentElement : M;
1801
+ }, yt = function(t) {
1802
+ return X.call(t.ownerDocument || t, t, o.SHOW_ELEMENT | o.SHOW_COMMENT | o.SHOW_TEXT | o.SHOW_PROCESSING_INSTRUCTION, null);
1803
+ }, At = function(t) {
1804
+ return t instanceof _ && (typeof t.nodeName != "string" || typeof t.textContent != "string" || typeof t.removeChild != "function" || !(t.attributes instanceof y) || typeof t.removeAttribute != "function" || typeof t.setAttribute != "function" || typeof t.namespaceURI != "string" || typeof t.insertBefore != "function" || typeof t.hasChildNodes != "function");
1805
+ }, bt = function(t) {
1806
+ return typeof c == "function" && t instanceof c;
1807
+ }, Oe = function(t, f, i) {
1808
+ Y[t] && wt(Y[t], (C) => {
1809
+ C.call(n, f, i, be);
1809
1810
  });
1810
- }, r = function(e) {
1811
+ }, r = function(t) {
1811
1812
  let f = null;
1812
- if (Oe("beforeSanitizeElements", e, null), At(e))
1813
- return Ve(e), !0;
1814
- let i = ne(e.nodeName);
1815
- if (Oe("uponSanitizeElement", e, { tagName: i, allowedTags: G }), e.hasChildNodes() && !bt(e.firstElementChild) && Te(/<[/\w]/g, e.innerHTML) && Te(/<[/\w]/g, e.textContent))
1816
- return Ve(e), !0;
1813
+ if (Oe("beforeSanitizeElements", t, null), At(t))
1814
+ return Ve(t), !0;
1815
+ let i = ne(t.nodeName);
1816
+ if (Oe("uponSanitizeElement", t, { tagName: i, allowedTags: G }), t.hasChildNodes() && !bt(t.firstElementChild) && Te(/<[/\w]/g, t.innerHTML) && Te(/<[/\w]/g, t.textContent))
1817
+ return Ve(t), !0;
1817
1818
  if (!G[i] || te[i]) {
1818
1819
  if (!te[i] && g(i) && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, i) || j.tagNameCheck instanceof Function && j.tagNameCheck(i)))
1819
1820
  return !1;
1820
1821
  if (Be && !Le[i]) {
1821
- let C = E(e) || e.parentNode, D = w(e) || e.childNodes;
1822
- if (D && C) {
1823
- let I = D.length;
1822
+ let C = E(t) || t.parentNode, M = w(t) || t.childNodes;
1823
+ if (M && C) {
1824
+ let I = M.length;
1824
1825
  for (let ce = I - 1; ce >= 0; --ce)
1825
- C.insertBefore(A(D[ce], !0), U(e));
1826
+ C.insertBefore(A(M[ce], !0), U(t));
1826
1827
  }
1827
1828
  }
1828
- return Ve(e), !0;
1829
+ return Ve(t), !0;
1829
1830
  }
1830
- return e instanceof p && !It(e) || (i === "noscript" || i === "noembed" || i === "noframes") && Te(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Ve(e), !0) : (Ae && e.nodeType === 3 && (f = e.textContent, wt([z, ae, k], (C) => {
1831
+ return t instanceof p && !It(t) || (i === "noscript" || i === "noembed" || i === "noframes") && Te(/<\/no(script|embed|frames)/i, t.innerHTML) ? (Ve(t), !0) : (Ae && t.nodeType === 3 && (f = t.textContent, wt([z, ae, k], (C) => {
1831
1832
  f = pt(f, C, " ");
1832
- }), e.textContent !== f && (mt(t.removed, { element: e.cloneNode() }), e.textContent = f)), Oe("afterSanitizeElements", e, null), !1);
1833
- }, d = function(e, f, i) {
1833
+ }), t.textContent !== f && (mt(n.removed, { element: t.cloneNode() }), t.textContent = f)), Oe("afterSanitizeElements", t, null), !1);
1834
+ }, d = function(t, f, i) {
1834
1835
  if (Je && (f === "id" || f === "name") && (i in a || i in st))
1835
1836
  return !1;
1836
1837
  if (!(de && !K[f] && Te(R, f)) && !(ue && Te($, f))) {
1837
1838
  if (!x[f] || K[f]) {
1838
- if (!(g(e) && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, e) || j.tagNameCheck instanceof Function && j.tagNameCheck(e)) && (j.attributeNameCheck instanceof RegExp && Te(j.attributeNameCheck, f) || j.attributeNameCheck instanceof Function && j.attributeNameCheck(f)) || f === "is" && j.allowCustomizedBuiltInElements && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, i) || j.tagNameCheck instanceof Function && j.tagNameCheck(i))))
1839
+ if (!(g(t) && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, t) || j.tagNameCheck instanceof Function && j.tagNameCheck(t)) && (j.attributeNameCheck instanceof RegExp && Te(j.attributeNameCheck, f) || j.attributeNameCheck instanceof Function && j.attributeNameCheck(f)) || f === "is" && j.allowCustomizedBuiltInElements && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, i) || j.tagNameCheck instanceof Function && j.tagNameCheck(i))))
1839
1840
  return !1;
1840
- } else if (!We[f] && !Te(le, pt(i, ie, "")) && !((f === "src" || f === "xlink:href" || f === "href") && e !== "script" && ar(i, "data:") === 0 && Ue[e]) && !(Ie && !Te(J, pt(i, ie, ""))) && i)
1841
+ } else if (!We[f] && !Te(le, pt(i, ie, "")) && !((f === "src" || f === "xlink:href" || f === "href") && t !== "script" && or(i, "data:") === 0 && Ue[t]) && !(Ie && !Te(J, pt(i, ie, ""))) && i)
1841
1842
  return !1;
1842
1843
  }
1843
1844
  return !0;
1844
- }, g = function(e) {
1845
- return e !== "annotation-xml" && Zt(e, Z);
1846
- }, T = function(e) {
1847
- Oe("beforeSanitizeAttributes", e, null);
1848
- let { attributes: f } = e;
1845
+ }, g = function(t) {
1846
+ return t !== "annotation-xml" && Qt(t, Z);
1847
+ }, T = function(t) {
1848
+ Oe("beforeSanitizeAttributes", t, null);
1849
+ let { attributes: f } = t;
1849
1850
  if (!f)
1850
1851
  return;
1851
1852
  let i = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: x }, C = f.length;
1852
1853
  for (; C--; ) {
1853
- let D = f[C], { name: I, namespaceURI: ce, value: ve } = D, me = ne(I), q = I === "value" ? ve : or(ve);
1854
- if (i.attrName = me, i.attrValue = q, i.keepAttr = !0, i.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", e, i), q = i.attrValue, i.forceKeepAttr || (nt(I, e), !i.keepAttr))
1854
+ let M = f[C], { name: I, namespaceURI: ce, value: ve } = M, me = ne(I), q = I === "value" ? ve : sr(ve);
1855
+ if (i.attrName = me, i.attrValue = q, i.keepAttr = !0, i.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", t, i), q = i.attrValue, i.forceKeepAttr || (nt(I, t), !i.keepAttr))
1855
1856
  continue;
1856
1857
  if (!we && Te(/\/>/i, q)) {
1857
- nt(I, e);
1858
+ nt(I, t);
1858
1859
  continue;
1859
1860
  }
1860
1861
  Ae && wt([z, ae, k], (xt) => {
1861
1862
  q = pt(q, xt, " ");
1862
1863
  });
1863
- let rt = ne(e.nodeName);
1864
+ let rt = ne(t.nodeName);
1864
1865
  if (d(rt, me, q)) {
1865
- if (Ne && (me === "id" || me === "name") && (nt(I, e), q = ot + q), L && typeof b == "object" && typeof b.getAttributeType == "function" && !ce)
1866
+ if (Ne && (me === "id" || me === "name") && (nt(I, t), q = ot + q), L && typeof b == "object" && typeof b.getAttributeType == "function" && !ce)
1866
1867
  switch (b.getAttributeType(rt, me)) {
1867
1868
  case "TrustedHTML": {
1868
1869
  q = L.createHTML(q);
@@ -1874,48 +1875,48 @@ function bn() {
1874
1875
  }
1875
1876
  }
1876
1877
  try {
1877
- ce ? e.setAttributeNS(ce, I, q) : e.setAttribute(I, q), Jt(t.removed);
1878
+ ce ? t.setAttributeNS(ce, I, q) : t.setAttribute(I, q), Zt(n.removed);
1878
1879
  } catch {
1879
1880
  }
1880
1881
  }
1881
1882
  }
1882
- Oe("afterSanitizeAttributes", e, null);
1883
- }, H = function e(f) {
1883
+ Oe("afterSanitizeAttributes", t, null);
1884
+ }, H = function t(f) {
1884
1885
  let i = null, C = yt(f);
1885
1886
  for (Oe("beforeSanitizeShadowDOM", f, null); i = C.nextNode(); )
1886
- Oe("uponSanitizeShadowNode", i, null), !r(i) && (i.content instanceof u && e(i.content), T(i));
1887
+ Oe("uponSanitizeShadowNode", i, null), !r(i) && (i.content instanceof u && t(i.content), T(i));
1887
1888
  Oe("afterSanitizeShadowDOM", f, null);
1888
1889
  };
1889
- return t.sanitize = function(e) {
1890
- let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, C = null, D = null, I = null;
1891
- if (Ye = !e, Ye && (e = "<!-->"), typeof e != "string" && !bt(e))
1892
- if (typeof e.toString == "function") {
1893
- if (e = e.toString(), typeof e != "string")
1890
+ return n.sanitize = function(t) {
1891
+ let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, C = null, M = null, I = null;
1892
+ if (Ye = !t, Ye && (t = "<!-->"), typeof t != "string" && !bt(t))
1893
+ if (typeof t.toString == "function") {
1894
+ if (t = t.toString(), typeof t != "string")
1894
1895
  throw ht("dirty is not a string, aborting");
1895
1896
  } else
1896
1897
  throw ht("toString is not a function");
1897
- if (!t.isSupported)
1898
- return e;
1899
- if (Xe || tt(f), t.removed = [], typeof e == "string" && (Se = !1), Se) {
1900
- if (e.nodeName) {
1901
- let me = ne(e.nodeName);
1898
+ if (!n.isSupported)
1899
+ return t;
1900
+ if (Xe || tt(f), n.removed = [], typeof t == "string" && (Se = !1), Se) {
1901
+ if (t.nodeName) {
1902
+ let me = ne(t.nodeName);
1902
1903
  if (!G[me] || te[me])
1903
1904
  throw ht("root node is forbidden and cannot be sanitized in-place");
1904
1905
  }
1905
- } else if (e instanceof c)
1906
- i = ut("<!---->"), C = i.ownerDocument.importNode(e, !0), C.nodeType === 1 && C.nodeName === "BODY" || C.nodeName === "HTML" ? i = C : i.appendChild(C);
1906
+ } else if (t instanceof c)
1907
+ i = ut("<!---->"), C = i.ownerDocument.importNode(t, !0), C.nodeType === 1 && C.nodeName === "BODY" || C.nodeName === "HTML" ? i = C : i.appendChild(C);
1907
1908
  else {
1908
- if (!oe && !Ae && !pe && e.indexOf("<") === -1)
1909
- return L && $e ? L.createHTML(e) : e;
1910
- if (i = ut(e), !i)
1909
+ if (!oe && !Ae && !pe && t.indexOf("<") === -1)
1910
+ return L && $e ? L.createHTML(t) : t;
1911
+ if (i = ut(t), !i)
1911
1912
  return oe ? null : $e ? W : "";
1912
1913
  }
1913
1914
  i && qe && Ve(i.firstChild);
1914
- let ce = yt(Se ? e : i);
1915
- for (; D = ce.nextNode(); )
1916
- r(D) || (D.content instanceof u && H(D.content), T(D));
1915
+ let ce = yt(Se ? t : i);
1916
+ for (; M = ce.nextNode(); )
1917
+ r(M) || (M.content instanceof u && H(M.content), T(M));
1917
1918
  if (Se)
1918
- return e;
1919
+ return t;
1919
1920
  if (oe) {
1920
1921
  if (he)
1921
1922
  for (I = ee.call(i.ownerDocument); i.firstChild; )
@@ -1925,122 +1926,122 @@ function bn() {
1925
1926
  return (x.shadowroot || x.shadowrootmode) && (I = re.call(s, I, !0)), I;
1926
1927
  }
1927
1928
  let ve = pe ? i.outerHTML : i.innerHTML;
1928
- return pe && G["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Te(yn, i.ownerDocument.doctype.name) && (ve = "<!DOCTYPE " + i.ownerDocument.doctype.name + `>
1929
+ return pe && G["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Te(bn, i.ownerDocument.doctype.name) && (ve = "<!DOCTYPE " + i.ownerDocument.doctype.name + `>
1929
1930
  ` + ve), Ae && wt([z, ae, k], (me) => {
1930
1931
  ve = pt(ve, me, " ");
1931
1932
  }), L && $e ? L.createHTML(ve) : ve;
1932
- }, t.setConfig = function() {
1933
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1934
- tt(e), Xe = !0;
1935
- }, t.clearConfig = function() {
1933
+ }, n.setConfig = function() {
1934
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1935
+ tt(t), Xe = !0;
1936
+ }, n.clearConfig = function() {
1936
1937
  be = null, Xe = !1;
1937
- }, t.isValidAttribute = function(e, f, i) {
1938
+ }, n.isValidAttribute = function(t, f, i) {
1938
1939
  be || tt({});
1939
- let C = ne(e), D = ne(f);
1940
- return d(C, D, i);
1941
- }, t.addHook = function(e, f) {
1942
- typeof f == "function" && (Y[e] = Y[e] || [], mt(Y[e], f));
1943
- }, t.removeHook = function(e) {
1944
- if (Y[e])
1945
- return Jt(Y[e]);
1946
- }, t.removeHooks = function(e) {
1947
- Y[e] && (Y[e] = []);
1948
- }, t.removeAllHooks = function() {
1940
+ let C = ne(t), M = ne(f);
1941
+ return d(C, M, i);
1942
+ }, n.addHook = function(t, f) {
1943
+ typeof f == "function" && (Y[t] = Y[t] || [], mt(Y[t], f));
1944
+ }, n.removeHook = function(t) {
1945
+ if (Y[t])
1946
+ return Zt(Y[t]);
1947
+ }, n.removeHooks = function(t) {
1948
+ Y[t] && (Y[t] = []);
1949
+ }, n.removeAllHooks = function() {
1949
1950
  Y = {};
1950
- }, t;
1951
+ }, n;
1951
1952
  }
1952
- var xr = bn(), wr = (n) => {
1953
- switch (n) {
1953
+ var wr = xn(), Er = (e) => {
1954
+ switch (e) {
1954
1955
  case "success":
1955
- return Tr;
1956
+ return _r;
1956
1957
  case "info":
1957
- return Nr;
1958
+ return kr;
1958
1959
  case "warning":
1959
- return _r;
1960
+ return Nr;
1960
1961
  case "error":
1961
- return kr;
1962
+ return Cr;
1962
1963
  default:
1963
1964
  return null;
1964
1965
  }
1965
- }, Er = Array(12).fill(0), Sr = ({ visible: n }) => v.createElement("div", { className: "sonner-loading-wrapper", "data-visible": n }, v.createElement("div", { className: "sonner-spinner" }, Er.map((t, a) => v.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${a}` })))), Tr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" })), _r = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" })), Nr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" })), kr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" })), Cr = () => {
1966
- let [n, t] = v.useState(!1);
1966
+ }, Sr = Array(12).fill(0), Tr = ({ visible: e }) => v.createElement("div", { className: "sonner-loading-wrapper", "data-visible": e }, v.createElement("div", { className: "sonner-spinner" }, Sr.map((n, a) => v.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${a}` })))), _r = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" })), Nr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" })), kr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" })), Cr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" })), Rr = () => {
1967
+ let [e, n] = v.useState(!1);
1967
1968
  return v.useEffect(() => {
1968
1969
  let a = () => {
1969
- t(document.hidden);
1970
+ n(document.hidden);
1970
1971
  };
1971
1972
  return document.addEventListener("visibilitychange", a), () => window.removeEventListener("visibilitychange", a);
1972
- }, []), n;
1973
- }, Ft = 1, Rr = class {
1973
+ }, []), e;
1974
+ }, Ft = 1, Ir = class {
1974
1975
  constructor() {
1975
- this.subscribe = (n) => (this.subscribers.push(n), () => {
1976
- let t = this.subscribers.indexOf(n);
1977
- this.subscribers.splice(t, 1);
1978
- }), this.publish = (n) => {
1979
- this.subscribers.forEach((t) => t(n));
1980
- }, this.addToast = (n) => {
1981
- this.publish(n), this.toasts = [...this.toasts, n];
1982
- }, this.create = (n) => {
1983
- var t;
1984
- let { message: a, ...s } = n, l = typeof (n == null ? void 0 : n.id) == "number" || ((t = n.id) == null ? void 0 : t.length) > 0 ? n.id : Ft++, u = this.toasts.find((c) => c.id === l), h = n.dismissible === void 0 ? !0 : n.dismissible;
1985
- return u ? this.toasts = this.toasts.map((c) => c.id === l ? (this.publish({ ...c, ...n, id: l, title: a }), { ...c, ...n, id: l, dismissible: h, title: a }) : c) : this.addToast({ title: a, ...s, dismissible: h, id: l }), l;
1986
- }, this.dismiss = (n) => (n || this.toasts.forEach((t) => {
1987
- this.subscribers.forEach((a) => a({ id: t.id, dismiss: !0 }));
1988
- }), this.subscribers.forEach((t) => t({ id: n, dismiss: !0 })), n), this.message = (n, t) => this.create({ ...t, message: n }), this.error = (n, t) => this.create({ ...t, message: n, type: "error" }), this.success = (n, t) => this.create({ ...t, type: "success", message: n }), this.info = (n, t) => this.create({ ...t, type: "info", message: n }), this.warning = (n, t) => this.create({ ...t, type: "warning", message: n }), this.loading = (n, t) => this.create({ ...t, type: "loading", message: n }), this.promise = (n, t) => {
1989
- if (!t)
1976
+ this.subscribe = (e) => (this.subscribers.push(e), () => {
1977
+ let n = this.subscribers.indexOf(e);
1978
+ this.subscribers.splice(n, 1);
1979
+ }), this.publish = (e) => {
1980
+ this.subscribers.forEach((n) => n(e));
1981
+ }, this.addToast = (e) => {
1982
+ this.publish(e), this.toasts = [...this.toasts, e];
1983
+ }, this.create = (e) => {
1984
+ var n;
1985
+ let { message: a, ...s } = e, l = typeof (e == null ? void 0 : e.id) == "number" || ((n = e.id) == null ? void 0 : n.length) > 0 ? e.id : Ft++, u = this.toasts.find((c) => c.id === l), h = e.dismissible === void 0 ? !0 : e.dismissible;
1986
+ return u ? this.toasts = this.toasts.map((c) => c.id === l ? (this.publish({ ...c, ...e, id: l, title: a }), { ...c, ...e, id: l, dismissible: h, title: a }) : c) : this.addToast({ title: a, ...s, dismissible: h, id: l }), l;
1987
+ }, this.dismiss = (e) => (e || this.toasts.forEach((n) => {
1988
+ this.subscribers.forEach((a) => a({ id: n.id, dismiss: !0 }));
1989
+ }), this.subscribers.forEach((n) => n({ id: e, dismiss: !0 })), e), this.message = (e, n) => this.create({ ...n, message: e }), this.error = (e, n) => this.create({ ...n, message: e, type: "error" }), this.success = (e, n) => this.create({ ...n, type: "success", message: e }), this.info = (e, n) => this.create({ ...n, type: "info", message: e }), this.warning = (e, n) => this.create({ ...n, type: "warning", message: e }), this.loading = (e, n) => this.create({ ...n, type: "loading", message: e }), this.promise = (e, n) => {
1990
+ if (!n)
1990
1991
  return;
1991
1992
  let a;
1992
- t.loading !== void 0 && (a = this.create({ ...t, promise: n, type: "loading", message: t.loading, description: typeof t.description != "function" ? t.description : void 0 }));
1993
- let s = n instanceof Promise ? n : n(), l = a !== void 0;
1993
+ n.loading !== void 0 && (a = this.create({ ...n, promise: e, type: "loading", message: n.loading, description: typeof n.description != "function" ? n.description : void 0 }));
1994
+ let s = e instanceof Promise ? e : e(), l = a !== void 0;
1994
1995
  return s.then((u) => {
1995
1996
  if (u && typeof u.ok == "boolean" && !u.ok) {
1996
1997
  l = !1;
1997
- let h = typeof t.error == "function" ? t.error(`HTTP error! status: ${u.status}`) : t.error, c = typeof t.description == "function" ? t.description(`HTTP error! status: ${u.status}`) : t.description;
1998
+ let h = typeof n.error == "function" ? n.error(`HTTP error! status: ${u.status}`) : n.error, c = typeof n.description == "function" ? n.description(`HTTP error! status: ${u.status}`) : n.description;
1998
1999
  this.create({ id: a, type: "error", message: h, description: c });
1999
- } else if (t.success !== void 0) {
2000
+ } else if (n.success !== void 0) {
2000
2001
  l = !1;
2001
- let h = typeof t.success == "function" ? t.success(u) : t.success, c = typeof t.description == "function" ? t.description(u) : t.description;
2002
+ let h = typeof n.success == "function" ? n.success(u) : n.success, c = typeof n.description == "function" ? n.description(u) : n.description;
2002
2003
  this.create({ id: a, type: "success", message: h, description: c });
2003
2004
  }
2004
2005
  }).catch((u) => {
2005
- if (t.error !== void 0) {
2006
+ if (n.error !== void 0) {
2006
2007
  l = !1;
2007
- let h = typeof t.error == "function" ? t.error(u) : t.error, c = typeof t.description == "function" ? t.description(u) : t.description;
2008
+ let h = typeof n.error == "function" ? n.error(u) : n.error, c = typeof n.description == "function" ? n.description(u) : n.description;
2008
2009
  this.create({ id: a, type: "error", message: h, description: c });
2009
2010
  }
2010
2011
  }).finally(() => {
2011
2012
  var u;
2012
- l && (this.dismiss(a), a = void 0), (u = t.finally) == null || u.call(t);
2013
+ l && (this.dismiss(a), a = void 0), (u = n.finally) == null || u.call(n);
2013
2014
  }), a;
2014
- }, this.custom = (n, t) => {
2015
- let a = (t == null ? void 0 : t.id) || Ft++;
2016
- return this.create({ jsx: n(a), id: a, ...t }), a;
2015
+ }, this.custom = (e, n) => {
2016
+ let a = (n == null ? void 0 : n.id) || Ft++;
2017
+ return this.create({ jsx: e(a), id: a, ...n }), a;
2017
2018
  }, this.subscribers = [], this.toasts = [];
2018
2019
  }
2019
- }, je = new Rr(), Ir = (n, t) => {
2020
- let a = (t == null ? void 0 : t.id) || Ft++;
2021
- return je.addToast({ title: n, ...t, id: a }), a;
2022
- }, Ar = Ir, Tt = Object.assign(Ar, { success: je.success, info: je.info, warning: je.warning, error: je.error, custom: je.custom, message: je.message, promise: je.promise, dismiss: je.dismiss, loading: je.loading });
2023
- function Lr(n, { insertAt: t } = {}) {
2024
- if (!n || typeof document > "u")
2020
+ }, je = new Ir(), Ar = (e, n) => {
2021
+ let a = (n == null ? void 0 : n.id) || Ft++;
2022
+ return je.addToast({ title: e, ...n, id: a }), a;
2023
+ }, Lr = Ar, Tt = Object.assign(Lr, { success: je.success, info: je.info, warning: je.warning, error: je.error, custom: je.custom, message: je.message, promise: je.promise, dismiss: je.dismiss, loading: je.loading });
2024
+ function Or(e, { insertAt: n } = {}) {
2025
+ if (!e || typeof document > "u")
2025
2026
  return;
2026
2027
  let a = document.head || document.getElementsByTagName("head")[0], s = document.createElement("style");
2027
- s.type = "text/css", t === "top" && a.firstChild ? a.insertBefore(s, a.firstChild) : a.appendChild(s), s.styleSheet ? s.styleSheet.cssText = n : s.appendChild(document.createTextNode(n));
2028
+ s.type = "text/css", n === "top" && a.firstChild ? a.insertBefore(s, a.firstChild) : a.appendChild(s), s.styleSheet ? s.styleSheet.cssText = e : s.appendChild(document.createTextNode(e));
2028
2029
  }
2029
- Lr(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
2030
+ Or(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
2030
2031
  `);
2031
- function _t(n) {
2032
- return n.label !== void 0 && typeof n.onClick == "function";
2032
+ function _t(e) {
2033
+ return e.label !== void 0 && typeof e.onClick == "function";
2033
2034
  }
2034
- var Or = 3, Pr = "32px", jr = 4e3, Dr = 356, Mr = 14, zr = 20, $r = 200;
2035
- function Fr(...n) {
2036
- return n.filter(Boolean).join(" ");
2035
+ var Pr = 3, jr = "32px", Mr = 4e3, Dr = 356, zr = 14, $r = 20, Fr = 200;
2036
+ function Br(...e) {
2037
+ return e.filter(Boolean).join(" ");
2037
2038
  }
2038
- var Br = (n) => {
2039
- var t, a, s, l, u, h, c;
2040
- let { invert: p, toast: o, unstyled: y, interacting: _, setHeights: N, visibleToasts: b, heights: P, index: A, toasts: U, expanded: w, removeToast: E, closeButton: L, style: W, cancelButtonStyle: M, actionButtonStyle: X, className: ee = "", descriptionClassName: V = "", duration: re, position: Y, gap: z, loadingIcon: ae, expandByDefault: k, classNames: R, icons: $, closeButtonAriaLabel: J = "Close toast", pauseWhenPageIsHidden: ie, cn: Z } = n, [le, G] = v.useState(!1), [F, x] = v.useState(!1), [O, j] = v.useState(!1), [te, K] = v.useState(!1), [ue, de] = v.useState(0), [Ie, we] = v.useState(0), Ae = v.useRef(null), pe = v.useRef(null), Xe = A === 0, qe = A + 1 <= b, oe = o.type, he = o.dismissible !== !1, $e = o.className || "", Je = o.descriptionClassName || "", Ne = v.useMemo(() => P.findIndex((S) => S.toastId === o.id) || 0, [P, o.id]), ot = v.useMemo(() => {
2039
+ var Ur = (e) => {
2040
+ var n, a, s, l, u, h, c;
2041
+ let { invert: p, toast: o, unstyled: y, interacting: _, setHeights: N, visibleToasts: b, heights: P, index: A, toasts: U, expanded: w, removeToast: E, closeButton: L, style: W, cancelButtonStyle: D, actionButtonStyle: X, className: ee = "", descriptionClassName: V = "", duration: re, position: Y, gap: z, loadingIcon: ae, expandByDefault: k, classNames: R, icons: $, closeButtonAriaLabel: J = "Close toast", pauseWhenPageIsHidden: ie, cn: Z } = e, [le, G] = v.useState(!1), [F, x] = v.useState(!1), [O, j] = v.useState(!1), [te, K] = v.useState(!1), [ue, de] = v.useState(0), [Ie, we] = v.useState(0), Ae = v.useRef(null), pe = v.useRef(null), Xe = A === 0, qe = A + 1 <= b, oe = o.type, he = o.dismissible !== !1, $e = o.className || "", Je = o.descriptionClassName || "", Ne = v.useMemo(() => P.findIndex((S) => S.toastId === o.id) || 0, [P, o.id]), ot = v.useMemo(() => {
2041
2042
  var S;
2042
2043
  return (S = o.closeButton) != null ? S : L;
2043
- }, [o.closeButton, L]), Be = v.useMemo(() => o.duration || re || jr, [o.duration, re]), Se = v.useRef(0), ye = v.useRef(0), Le = v.useRef(0), ke = v.useRef(null), [Ue, Me] = Y.split("-"), We = v.useMemo(() => P.reduce((S, se, Q) => Q >= Ne ? S : S + se.height, 0), [P, Ne]), He = Cr(), Fe = o.invert || p, Ce = oe === "loading";
2044
+ }, [o.closeButton, L]), Be = v.useMemo(() => o.duration || re || Mr, [o.duration, re]), Se = v.useRef(0), ye = v.useRef(0), Le = v.useRef(0), ke = v.useRef(null), [Ue, De] = Y.split("-"), We = v.useMemo(() => P.reduce((S, se, Q) => Q >= Ne ? S : S + se.height, 0), [P, Ne]), He = Rr(), Fe = o.invert || p, Ce = oe === "loading";
2044
2045
  ye.current = v.useMemo(() => Ne * z + We, [Ne, We]), v.useEffect(() => {
2045
2046
  G(!0);
2046
2047
  }, []), v.useLayoutEffect(() => {
@@ -2054,7 +2055,7 @@ var Br = (n) => {
2054
2055
  let fe = v.useCallback(() => {
2055
2056
  x(!0), de(ye.current), N((S) => S.filter((se) => se.toastId !== o.id)), setTimeout(() => {
2056
2057
  E(o);
2057
- }, $r);
2058
+ }, Fr);
2058
2059
  }, [o, E, N, ye]);
2059
2060
  v.useEffect(() => {
2060
2061
  if (o.promise && oe === "loading" || o.duration === 1 / 0 || o.type === "loading")
@@ -2080,12 +2081,12 @@ var Br = (n) => {
2080
2081
  o.delete && fe();
2081
2082
  }, [fe, o.delete]);
2082
2083
  function ze() {
2083
- return $ != null && $.loading ? v.createElement("div", { className: "sonner-loader", "data-visible": oe === "loading" }, $.loading) : ae ? v.createElement("div", { className: "sonner-loader", "data-visible": oe === "loading" }, ae) : v.createElement(Sr, { visible: oe === "loading" });
2084
+ return $ != null && $.loading ? v.createElement("div", { className: "sonner-loader", "data-visible": oe === "loading" }, $.loading) : ae ? v.createElement("div", { className: "sonner-loader", "data-visible": oe === "loading" }, ae) : v.createElement(Tr, { visible: oe === "loading" });
2084
2085
  }
2085
2086
  function Ye(S) {
2086
- return { __html: xr.sanitize(S) };
2087
+ return { __html: wr.sanitize(S) };
2087
2088
  }
2088
- return v.createElement("li", { "aria-live": o.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: pe, className: Z(ee, $e, R == null ? void 0 : R.toast, (t = o == null ? void 0 : o.classNames) == null ? void 0 : t.toast, R == null ? void 0 : R.default, R == null ? void 0 : R[oe], (a = o == null ? void 0 : o.classNames) == null ? void 0 : a[oe]), "data-sonner-toast": "", "data-styled": !(o.jsx || o.unstyled || y), "data-mounted": le, "data-promise": !!o.promise, "data-removed": F, "data-visible": qe, "data-y-position": Ue, "data-x-position": Me, "data-index": A, "data-front": Xe, "data-swiping": O, "data-dismissible": he, "data-type": oe, "data-invert": Fe, "data-swipe-out": te, "data-expanded": !!(w || k && le), style: { "--index": A, "--toasts-before": A, "--z-index": U.length - A, "--offset": `${F ? ue : ye.current}px`, "--initial-height": k ? "auto" : `${Ie}px`, ...W, ...o.style }, onPointerDown: (S) => {
2089
+ return v.createElement("li", { "aria-live": o.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: pe, className: Z(ee, $e, R == null ? void 0 : R.toast, (n = o == null ? void 0 : o.classNames) == null ? void 0 : n.toast, R == null ? void 0 : R.default, R == null ? void 0 : R[oe], (a = o == null ? void 0 : o.classNames) == null ? void 0 : a[oe]), "data-sonner-toast": "", "data-styled": !(o.jsx || o.unstyled || y), "data-mounted": le, "data-promise": !!o.promise, "data-removed": F, "data-visible": qe, "data-y-position": Ue, "data-x-position": De, "data-index": A, "data-front": Xe, "data-swiping": O, "data-dismissible": he, "data-type": oe, "data-invert": Fe, "data-swipe-out": te, "data-expanded": !!(w || k && le), style: { "--index": A, "--toasts-before": A, "--z-index": U.length - A, "--offset": `${F ? ue : ye.current}px`, "--initial-height": k ? "auto" : `${Ie}px`, ...W, ...o.style }, onPointerDown: (S) => {
2089
2090
  Ce || !he || (Ae.current = /* @__PURE__ */ new Date(), de(ye.current), S.target.setPointerCapture(S.pointerId), S.target.tagName !== "BUTTON" && (j(!0), ke.current = { x: S.clientX, y: S.clientY }));
2090
2091
  }, onPointerUp: () => {
2091
2092
  var S, se, Q, Ee;
@@ -2093,7 +2094,7 @@ var Br = (n) => {
2093
2094
  return;
2094
2095
  ke.current = null;
2095
2096
  let ge = Number(((S = pe.current) == null ? void 0 : S.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), ne = (/* @__PURE__ */ new Date()).getTime() - ((se = Ae.current) == null ? void 0 : se.getTime()), be = Math.abs(ge) / ne;
2096
- if (Math.abs(ge) >= zr || be > 0.11) {
2097
+ if (Math.abs(ge) >= $r || be > 0.11) {
2097
2098
  de(ye.current), (Q = o.onDismiss) == null || Q.call(o, o), fe(), K(!0);
2098
2099
  return;
2099
2100
  }
@@ -2108,20 +2109,20 @@ var Br = (n) => {
2108
2109
  } : () => {
2109
2110
  var S;
2110
2111
  fe(), (S = o.onDismiss) == null || S.call(o, o);
2111
- }, className: Z(R == null ? void 0 : R.closeButton, (s = o == null ? void 0 : o.classNames) == null ? void 0 : s.closeButton) }, v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, v.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), v.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, o.jsx || v.isValidElement(o.title) ? o.jsx || o.title : v.createElement(v.Fragment, null, oe || o.icon || o.promise ? v.createElement("div", { "data-icon": "", className: Z(R == null ? void 0 : R.icon) }, o.promise || o.type === "loading" && !o.icon ? o.icon || ze() : null, o.type !== "loading" ? o.icon || ($ == null ? void 0 : $[oe]) || wr(oe) : null) : null, v.createElement("div", { "data-content": "", className: Z(R == null ? void 0 : R.content) }, v.createElement("div", { "data-title": "", className: Z(R == null ? void 0 : R.title, (l = o == null ? void 0 : o.classNames) == null ? void 0 : l.title), dangerouslySetInnerHTML: Ye(o.title) }), o.description ? v.createElement("div", { "data-description": "", className: Z(V, Je, R == null ? void 0 : R.description, (u = o == null ? void 0 : o.classNames) == null ? void 0 : u.description), dangerouslySetInnerHTML: Ye(o.description) }) : null), v.isValidElement(o.cancel) ? o.cancel : o.cancel && _t(o.cancel) ? v.createElement("button", { "data-button": !0, "data-cancel": !0, style: o.cancelButtonStyle || M, onClick: (S) => {
2112
+ }, className: Z(R == null ? void 0 : R.closeButton, (s = o == null ? void 0 : o.classNames) == null ? void 0 : s.closeButton) }, v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, v.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), v.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, o.jsx || v.isValidElement(o.title) ? o.jsx || o.title : v.createElement(v.Fragment, null, oe || o.icon || o.promise ? v.createElement("div", { "data-icon": "", className: Z(R == null ? void 0 : R.icon) }, o.promise || o.type === "loading" && !o.icon ? o.icon || ze() : null, o.type !== "loading" ? o.icon || ($ == null ? void 0 : $[oe]) || Er(oe) : null) : null, v.createElement("div", { "data-content": "", className: Z(R == null ? void 0 : R.content) }, v.createElement("div", { "data-title": "", className: Z(R == null ? void 0 : R.title, (l = o == null ? void 0 : o.classNames) == null ? void 0 : l.title), dangerouslySetInnerHTML: Ye(o.title) }), o.description ? v.createElement("div", { "data-description": "", className: Z(V, Je, R == null ? void 0 : R.description, (u = o == null ? void 0 : o.classNames) == null ? void 0 : u.description), dangerouslySetInnerHTML: Ye(o.description) }) : null), v.isValidElement(o.cancel) ? o.cancel : o.cancel && _t(o.cancel) ? v.createElement("button", { "data-button": !0, "data-cancel": !0, style: o.cancelButtonStyle || D, onClick: (S) => {
2112
2113
  _t(o.cancel) && he && (fe(), o.cancel.onClick(S));
2113
2114
  }, className: Z(R == null ? void 0 : R.cancelButton, (h = o == null ? void 0 : o.classNames) == null ? void 0 : h.cancelButton) }, o.cancel.label) : null, v.isValidElement(o.action) ? o.action : o.action && _t(o.action) ? v.createElement("button", { "data-button": "", style: o.actionButtonStyle || X, onClick: (S) => {
2114
2115
  _t(o.action) && (o.action.onClick(S), !S.defaultPrevented && fe());
2115
2116
  }, className: Z(R == null ? void 0 : R.actionButton, (c = o == null ? void 0 : o.classNames) == null ? void 0 : c.actionButton) }, o.action.label) : null));
2116
2117
  };
2117
- function an() {
2118
+ function on() {
2118
2119
  if (typeof window > "u" || typeof document > "u")
2119
2120
  return "ltr";
2120
- let n = document.documentElement.getAttribute("dir");
2121
- return n === "auto" || !n ? window.getComputedStyle(document.documentElement).direction : n;
2121
+ let e = document.documentElement.getAttribute("dir");
2122
+ return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
2122
2123
  }
2123
- var Ur = (n) => {
2124
- let { invert: t, position: a = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: l, closeButton: u, className: h, offset: c, theme: p = "light", richColors: o, duration: y, style: _, visibleToasts: N = Or, toastOptions: b, dir: P = an(), gap: A = Mr, loadingIcon: U, icons: w, containerAriaLabel: E = "Notifications", pauseWhenPageIsHidden: L, cn: W = Fr } = n, [M, X] = v.useState([]), ee = v.useMemo(() => Array.from(new Set([a].concat(M.filter((F) => F.position).map((F) => F.position)))), [M, a]), [V, re] = v.useState([]), [Y, z] = v.useState(!1), [ae, k] = v.useState(!1), [R, $] = v.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), J = v.useRef(null), ie = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), Z = v.useRef(null), le = v.useRef(!1), G = v.useCallback((F) => X((x) => x.filter(({ id: O }) => O !== F.id)), []);
2124
+ var Wr = (e) => {
2125
+ let { invert: n, position: a = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: l, closeButton: u, className: h, offset: c, theme: p = "light", richColors: o, duration: y, style: _, visibleToasts: N = Pr, toastOptions: b, dir: P = on(), gap: A = zr, loadingIcon: U, icons: w, containerAriaLabel: E = "Notifications", pauseWhenPageIsHidden: L, cn: W = Br } = e, [D, X] = v.useState([]), ee = v.useMemo(() => Array.from(new Set([a].concat(D.filter((F) => F.position).map((F) => F.position)))), [D, a]), [V, re] = v.useState([]), [Y, z] = v.useState(!1), [ae, k] = v.useState(!1), [R, $] = v.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), J = v.useRef(null), ie = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), Z = v.useRef(null), le = v.useRef(!1), G = v.useCallback((F) => X((x) => x.filter(({ id: O }) => O !== F.id)), []);
2125
2126
  return v.useEffect(() => je.subscribe((F) => {
2126
2127
  if (F.dismiss) {
2127
2128
  X((x) => x.map((O) => O.id === F.id ? { ...O, delete: !0 } : O));
@@ -2144,8 +2145,8 @@ var Ur = (n) => {
2144
2145
  $(F ? "dark" : "light");
2145
2146
  });
2146
2147
  }, [p]), v.useEffect(() => {
2147
- M.length <= 1 && z(!1);
2148
- }, [M]), v.useEffect(() => {
2148
+ D.length <= 1 && z(!1);
2149
+ }, [D]), v.useEffect(() => {
2149
2150
  let F = (x) => {
2150
2151
  var O, j;
2151
2152
  s.every((te) => x[te] || x.code === te) && (z(!0), (O = J.current) == null || O.focus()), x.code === "Escape" && (document.activeElement === J.current || (j = J.current) != null && j.contains(document.activeElement)) && z(!1);
@@ -2156,10 +2157,10 @@ var Ur = (n) => {
2156
2157
  return () => {
2157
2158
  Z.current && (Z.current.focus({ preventScroll: !0 }), Z.current = null, le.current = !1);
2158
2159
  };
2159
- }, [J.current]), M.length ? v.createElement("section", { "aria-label": `${E} ${ie}`, tabIndex: -1 }, ee.map((F, x) => {
2160
+ }, [J.current]), D.length ? v.createElement("section", { "aria-label": `${E} ${ie}`, tabIndex: -1 }, ee.map((F, x) => {
2160
2161
  var O;
2161
2162
  let [j, te] = F.split("-");
2162
- return v.createElement("ol", { key: F, dir: P === "auto" ? an() : P, tabIndex: -1, ref: J, className: h, "data-sonner-toaster": !0, "data-theme": R, "data-rich-colors": o, "data-y-position": j, "data-x-position": te, style: { "--front-toast-height": `${((O = V[0]) == null ? void 0 : O.height) || 0}px`, "--offset": typeof c == "number" ? `${c}px` : c || Pr, "--width": `${Dr}px`, "--gap": `${A}px`, ..._ }, onBlur: (K) => {
2163
+ return v.createElement("ol", { key: F, dir: P === "auto" ? on() : P, tabIndex: -1, ref: J, className: h, "data-sonner-toaster": !0, "data-theme": R, "data-rich-colors": o, "data-y-position": j, "data-x-position": te, style: { "--front-toast-height": `${((O = V[0]) == null ? void 0 : O.height) || 0}px`, "--offset": typeof c == "number" ? `${c}px` : c || jr, "--width": `${Dr}px`, "--gap": `${A}px`, ..._ }, onBlur: (K) => {
2163
2164
  le.current && !K.currentTarget.contains(K.relatedTarget) && (le.current = !1, Z.current && (Z.current.focus({ preventScroll: !0 }), Z.current = null));
2164
2165
  }, onFocus: (K) => {
2165
2166
  K.target instanceof HTMLElement && K.target.dataset.dismissible === "false" || le.current || (le.current = !0, Z.current = K.relatedTarget);
@@ -2167,9 +2168,9 @@ var Ur = (n) => {
2167
2168
  ae || z(!1);
2168
2169
  }, onPointerDown: (K) => {
2169
2170
  K.target instanceof HTMLElement && K.target.dataset.dismissible === "false" || k(!0);
2170
- }, onPointerUp: () => k(!1) }, M.filter((K) => !K.position && x === 0 || K.position === F).map((K, ue) => {
2171
+ }, onPointerUp: () => k(!1) }, D.filter((K) => !K.position && x === 0 || K.position === F).map((K, ue) => {
2171
2172
  var de, Ie;
2172
- return v.createElement(Br, { key: K.id, icons: w, index: ue, toast: K, duration: (de = b == null ? void 0 : b.duration) != null ? de : y, className: b == null ? void 0 : b.className, descriptionClassName: b == null ? void 0 : b.descriptionClassName, invert: t, visibleToasts: N, closeButton: (Ie = b == null ? void 0 : b.closeButton) != null ? Ie : u, interacting: ae, position: F, style: b == null ? void 0 : b.style, unstyled: b == null ? void 0 : b.unstyled, classNames: b == null ? void 0 : b.classNames, cancelButtonStyle: b == null ? void 0 : b.cancelButtonStyle, actionButtonStyle: b == null ? void 0 : b.actionButtonStyle, removeToast: G, toasts: M.filter((we) => we.position == K.position), heights: V.filter((we) => we.position == K.position), setHeights: re, expandByDefault: l, gap: A, loadingIcon: U, expanded: Y, pauseWhenPageIsHidden: L, cn: W });
2173
+ return v.createElement(Ur, { key: K.id, icons: w, index: ue, toast: K, duration: (de = b == null ? void 0 : b.duration) != null ? de : y, className: b == null ? void 0 : b.className, descriptionClassName: b == null ? void 0 : b.descriptionClassName, invert: n, visibleToasts: N, closeButton: (Ie = b == null ? void 0 : b.closeButton) != null ? Ie : u, interacting: ae, position: F, style: b == null ? void 0 : b.style, unstyled: b == null ? void 0 : b.unstyled, classNames: b == null ? void 0 : b.classNames, cancelButtonStyle: b == null ? void 0 : b.cancelButtonStyle, actionButtonStyle: b == null ? void 0 : b.actionButtonStyle, removeToast: G, toasts: D.filter((we) => we.position == K.position), heights: V.filter((we) => we.position == K.position), setHeights: re, expandByDefault: l, gap: A, loadingIcon: U, expanded: Y, pauseWhenPageIsHidden: L, cn: W });
2173
2174
  }));
2174
2175
  })) : null;
2175
2176
  };
@@ -2178,8 +2179,8 @@ var Ur = (n) => {
2178
2179
  dompurify/dist/purify.es.mjs:
2179
2180
  (*! @license DOMPurify 3.0.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.10/LICENSE *)
2180
2181
  */
2181
- function ha({ children: n }) {
2182
- function t(u) {
2182
+ function ha({ children: e }) {
2183
+ function n(u) {
2183
2184
  Tt.success(u);
2184
2185
  }
2185
2186
  function a(u) {
@@ -2192,36 +2193,36 @@ function ha({ children: n }) {
2192
2193
  Tt.warning(u);
2193
2194
  }
2194
2195
  return /* @__PURE__ */ m.jsxs(
2195
- pn.Provider,
2196
+ hn.Provider,
2196
2197
  {
2197
- value: { errorToast: s, warningToast: l, successToast: t, infoToast: a },
2198
+ value: { errorToast: s, warningToast: l, successToast: n, infoToast: a },
2198
2199
  children: [
2199
- /* @__PURE__ */ m.jsx(Ur, { richColors: !0 }),
2200
- n
2200
+ /* @__PURE__ */ m.jsx(Wr, { richColors: !0 }),
2201
+ e
2201
2202
  ]
2202
2203
  }
2203
2204
  );
2204
2205
  }
2205
2206
  export {
2206
- Xr as Badge,
2207
- sa as Breadcrumb,
2208
- ia as BreadcrumbLink,
2209
- Zr as Button,
2210
- ea as Checkbox,
2211
- qr as Divider,
2212
- Qr as FormController,
2213
- ta as FormError,
2214
- na as FormLabel,
2215
- ra as IconButton,
2216
- aa as Input,
2217
- la as Modal,
2207
+ qr as Badge,
2208
+ ia as Breadcrumb,
2209
+ la as BreadcrumbLink,
2210
+ Qr as Button,
2211
+ ta as Checkbox,
2212
+ Jr as Divider,
2213
+ ea as FormController,
2214
+ na as FormError,
2215
+ ra as FormLabel,
2216
+ aa as IconButton,
2217
+ oa as Input,
2218
+ ca as Modal,
2218
2219
  pa as ModalProvider,
2219
- oa as Select,
2220
- Jr as Skeleton,
2220
+ sa as Select,
2221
+ Zr as Skeleton,
2221
2222
  ha as ToastProvider,
2222
- ca as Tooltip,
2223
- ua as useAutomation,
2224
- da as useModal,
2225
- fa as useScopedParams,
2226
- ma as useToast
2223
+ ua as Tooltip,
2224
+ da as useAutomation,
2225
+ fa as useModal,
2226
+ ma as useScopedParams,
2227
+ tr as useToast
2227
2228
  };