@scbt-ecom/ui 0.7.28 → 0.7.29

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/client.js CHANGED
@@ -1,7 +1,7 @@
1
- import { t as Jn, d as ri, e as ZS, f as xh, m as JS, h as Wb, k as US, l as KS, n as qS, o as QS, q as eI, i as tI, r as nI, s as rI, w as iI, v as oI, x as Hu, j as C, y as kt, S as Ch, A as Un, C as Nn, D as ps, E as Ze, F as _e, G as hs, J as sI, c as O, I as Fe, K as $b, M as aI, O as lI, Q as cI, R as uI, T as dI, U as fI, b as pI, u as hI, V as mI, H as gI, W as vI, _ as bI, X as yI, B as xI, a as gf, Y as kl, Z as Sc, $ as co, a0 as CI, a1 as uo, p as wI, g as SI, a2 as di, N as Mo, L as II, a3 as Xb, P as Yb, z as EI, a4 as AI, a5 as Co, a6 as TI, a7 as Zb, a8 as Ic, a9 as Ec, aa as kI, ab as MI, ac as OI, ad as PI, ae as RI } from "./utils-tailwind-D31aoXaK.js";
1
+ import { t as Jn, d as ri, e as ZS, f as xh, m as JS, h as Wb, k as US, l as KS, n as qS, o as QS, q as eI, i as tI, r as nI, s as rI, w as iI, v as oI, x as _u, j as C, y as kt, S as Ch, A as Un, C as Nn, D as ps, E as Ze, F as _e, G as hs, J as sI, c as O, I as Fe, K as $b, M as aI, O as lI, Q as cI, R as uI, T as dI, U as fI, b as pI, u as hI, V as mI, H as gI, W as vI, _ as bI, X as yI, B as xI, a as mf, Y as kl, Z as wc, $ as co, a0 as CI, a1 as uo, p as wI, g as SI, a2 as di, N as Mo, L as II, a3 as Xb, P as Yb, z as EI, a4 as AI, a5 as Co, a6 as TI, a7 as Zb, a8 as Sc, a9 as Ic, aa as kI, ab as MI, ac as OI, ad as PI, ae as RI } from "./utils-tailwind-D31aoXaK.js";
2
2
  import * as I from "react";
3
- import $, { useCallback as fe, createContext as qe, useContext as Me, useId as Fn, useEffect as Pe, Component as Jb, useLayoutEffect as Qi, useRef as de, useInsertionEffect as Ub, useMemo as we, forwardRef as fi, Fragment as Ht, createElement as Kb, Children as DI, isValidElement as qb, useState as Oe, useReducer as vf, useImperativeHandle as NI, useDebugValue as Qb, cloneElement as FI, useSyncExternalStore as VI, createRef as BI } from "react";
4
- import * as Wu from "react-dom";
3
+ import $, { useCallback as fe, createContext as qe, useContext as Me, useId as Fn, useEffect as Pe, Component as Jb, useLayoutEffect as Qi, useRef as de, useInsertionEffect as Ub, useMemo as we, forwardRef as fi, Fragment as Ht, createElement as Kb, Children as DI, isValidElement as qb, useState as Oe, useReducer as gf, useImperativeHandle as NI, useDebugValue as Qb, cloneElement as FI, useSyncExternalStore as VI, createRef as BI } from "react";
4
+ import * as Hu from "react-dom";
5
5
  import LI, { createPortal as Ml, flushSync as Gr } from "react-dom";
6
6
  function jI(t, e, n) {
7
7
  const r = Jn(t, n == null ? void 0 : n.in);
@@ -710,7 +710,7 @@ function Ah(t, e, n) {
710
710
  t,
711
711
  e
712
712
  );
713
- return +Hu(r, n) == +Hu(i, n);
713
+ return +_u(r, n) == +_u(i, n);
714
714
  }
715
715
  function nE(t, e, n) {
716
716
  const [r, i] = ms(
@@ -773,7 +773,7 @@ function oE(...t) {
773
773
  };
774
774
  return n.scopeName = e.scopeName, n;
775
775
  }
776
- function bf(t) {
776
+ function vf(t) {
777
777
  const e = t + "CollectionProvider", [n, r] = iE(e), [i, o] = n(
778
778
  e,
779
779
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
@@ -813,7 +813,7 @@ function bf(t) {
813
813
  r
814
814
  ];
815
815
  }
816
- var yf = "Collapsible", [sE, ey] = Un(yf), [aE, xf] = sE(yf), ty = I.forwardRef(
816
+ var bf = "Collapsible", [sE, ey] = Un(bf), [aE, yf] = sE(bf), ty = I.forwardRef(
817
817
  (t, e) => {
818
818
  const {
819
819
  __scopeCollapsible: n,
@@ -838,7 +838,7 @@ var yf = "Collapsible", [sE, ey] = Un(yf), [aE, xf] = sE(yf), ty = I.forwardRef(
838
838
  children: /* @__PURE__ */ C.jsx(
839
839
  Ze.div,
840
840
  {
841
- "data-state": wf(l),
841
+ "data-state": Cf(l),
842
842
  "data-disabled": o ? "" : void 0,
843
843
  ...a,
844
844
  ref: e
@@ -848,17 +848,17 @@ var yf = "Collapsible", [sE, ey] = Un(yf), [aE, xf] = sE(yf), ty = I.forwardRef(
848
848
  );
849
849
  }
850
850
  );
851
- ty.displayName = yf;
851
+ ty.displayName = bf;
852
852
  var ny = "CollapsibleTrigger", ry = I.forwardRef(
853
853
  (t, e) => {
854
- const { __scopeCollapsible: n, ...r } = t, i = xf(ny, n);
854
+ const { __scopeCollapsible: n, ...r } = t, i = yf(ny, n);
855
855
  return /* @__PURE__ */ C.jsx(
856
856
  Ze.button,
857
857
  {
858
858
  type: "button",
859
859
  "aria-controls": i.contentId,
860
860
  "aria-expanded": i.open || !1,
861
- "data-state": wf(i.open),
861
+ "data-state": Cf(i.open),
862
862
  "data-disabled": i.disabled ? "" : void 0,
863
863
  disabled: i.disabled,
864
864
  ...r,
@@ -869,15 +869,15 @@ var ny = "CollapsibleTrigger", ry = I.forwardRef(
869
869
  }
870
870
  );
871
871
  ry.displayName = ny;
872
- var Cf = "CollapsibleContent", iy = I.forwardRef(
872
+ var xf = "CollapsibleContent", iy = I.forwardRef(
873
873
  (t, e) => {
874
- const { forceMount: n, ...r } = t, i = xf(Cf, t.__scopeCollapsible);
874
+ const { forceMount: n, ...r } = t, i = yf(xf, t.__scopeCollapsible);
875
875
  return /* @__PURE__ */ C.jsx(hs, { present: n || i.open, children: ({ present: o }) => /* @__PURE__ */ C.jsx(lE, { ...r, ref: e, present: o }) });
876
876
  }
877
877
  );
878
- iy.displayName = Cf;
878
+ iy.displayName = xf;
879
879
  var lE = I.forwardRef((t, e) => {
880
- const { __scopeCollapsible: n, present: r, children: i, ...o } = t, s = xf(Cf, n), [a, l] = I.useState(r), c = I.useRef(null), u = kt(e, c), d = I.useRef(0), f = d.current, p = I.useRef(0), h = p.current, m = s.open || a, g = I.useRef(m), v = I.useRef();
880
+ const { __scopeCollapsible: n, present: r, children: i, ...o } = t, s = yf(xf, n), [a, l] = I.useState(r), c = I.useRef(null), u = kt(e, c), d = I.useRef(0), f = d.current, p = I.useRef(0), h = p.current, m = s.open || a, g = I.useRef(m), v = I.useRef();
881
881
  return I.useEffect(() => {
882
882
  const b = requestAnimationFrame(() => g.current = !1);
883
883
  return () => cancelAnimationFrame(b);
@@ -894,7 +894,7 @@ var lE = I.forwardRef((t, e) => {
894
894
  }, [s.open, r]), /* @__PURE__ */ C.jsx(
895
895
  Ze.div,
896
896
  {
897
- "data-state": wf(s.open),
897
+ "data-state": Cf(s.open),
898
898
  "data-disabled": s.disabled ? "" : void 0,
899
899
  id: s.contentId,
900
900
  hidden: !m,
@@ -909,7 +909,7 @@ var lE = I.forwardRef((t, e) => {
909
909
  }
910
910
  );
911
911
  });
912
- function wf(t) {
912
+ function Cf(t) {
913
913
  return t ? "open" : "closed";
914
914
  }
915
915
  var cE = ty, uE = ry, dE = iy, fE = I.createContext(void 0);
@@ -917,13 +917,13 @@ function gs(t) {
917
917
  const e = I.useContext(fE);
918
918
  return t || e || "ltr";
919
919
  }
920
- var Kn = "Accordion", pE = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Sf, hE, mE] = bf(Kn), [Ol, Y5] = Un(Kn, [
920
+ var Kn = "Accordion", pE = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [wf, hE, mE] = vf(Kn), [Ol, Y5] = Un(Kn, [
921
921
  mE,
922
922
  ey
923
- ]), If = ey(), oy = $.forwardRef(
923
+ ]), Sf = ey(), oy = $.forwardRef(
924
924
  (t, e) => {
925
925
  const { type: n, ...r } = t, i = r, o = r;
926
- return /* @__PURE__ */ C.jsx(Sf.Provider, { scope: t.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ C.jsx(yE, { ...o, ref: e }) : /* @__PURE__ */ C.jsx(bE, { ...i, ref: e }) });
926
+ return /* @__PURE__ */ C.jsx(wf.Provider, { scope: t.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ C.jsx(yE, { ...o, ref: e }) : /* @__PURE__ */ C.jsx(bE, { ...i, ref: e }) });
927
927
  }
928
928
  );
929
929
  oy.displayName = Kn;
@@ -1030,7 +1030,7 @@ var [sy, gE] = Ol(Kn), [ay, vE] = Ol(
1030
1030
  disabled: r,
1031
1031
  direction: i,
1032
1032
  orientation: o,
1033
- children: /* @__PURE__ */ C.jsx(Sf.Slot, { scope: n, children: /* @__PURE__ */ C.jsx(
1033
+ children: /* @__PURE__ */ C.jsx(wf.Slot, { scope: n, children: /* @__PURE__ */ C.jsx(
1034
1034
  Ze.div,
1035
1035
  {
1036
1036
  ...s,
@@ -1042,9 +1042,9 @@ var [sy, gE] = Ol(Kn), [ay, vE] = Ol(
1042
1042
  }
1043
1043
  );
1044
1044
  }
1045
- ), ha = "AccordionItem", [CE, Ef] = Ol(ha), cy = $.forwardRef(
1045
+ ), ha = "AccordionItem", [CE, If] = Ol(ha), cy = $.forwardRef(
1046
1046
  (t, e) => {
1047
- const { __scopeAccordion: n, value: r, ...i } = t, o = Pl(ha, n), s = gE(ha, n), a = If(n), l = ps(), c = r && s.value.includes(r) || !1, u = o.disabled || t.disabled;
1047
+ const { __scopeAccordion: n, value: r, ...i } = t, o = Pl(ha, n), s = gE(ha, n), a = Sf(n), l = ps(), c = r && s.value.includes(r) || !1, u = o.disabled || t.disabled;
1048
1048
  return /* @__PURE__ */ C.jsx(
1049
1049
  CE,
1050
1050
  {
@@ -1074,7 +1074,7 @@ var [sy, gE] = Ol(Kn), [ay, vE] = Ol(
1074
1074
  cy.displayName = ha;
1075
1075
  var uy = "AccordionHeader", dy = $.forwardRef(
1076
1076
  (t, e) => {
1077
- const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o = Ef(uy, n);
1077
+ const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o = If(uy, n);
1078
1078
  return /* @__PURE__ */ C.jsx(
1079
1079
  Ze.h3,
1080
1080
  {
@@ -1088,10 +1088,10 @@ var uy = "AccordionHeader", dy = $.forwardRef(
1088
1088
  }
1089
1089
  );
1090
1090
  dy.displayName = uy;
1091
- var $u = "AccordionTrigger", fy = $.forwardRef(
1091
+ var Wu = "AccordionTrigger", fy = $.forwardRef(
1092
1092
  (t, e) => {
1093
- const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o = Ef($u, n), s = vE($u, n), a = If(n);
1094
- return /* @__PURE__ */ C.jsx(Sf.ItemSlot, { scope: n, children: /* @__PURE__ */ C.jsx(
1093
+ const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o = If(Wu, n), s = vE(Wu, n), a = Sf(n);
1094
+ return /* @__PURE__ */ C.jsx(wf.ItemSlot, { scope: n, children: /* @__PURE__ */ C.jsx(
1095
1095
  uE,
1096
1096
  {
1097
1097
  "aria-disabled": o.open && !s.collapsible || void 0,
@@ -1104,10 +1104,10 @@ var $u = "AccordionTrigger", fy = $.forwardRef(
1104
1104
  ) });
1105
1105
  }
1106
1106
  );
1107
- fy.displayName = $u;
1107
+ fy.displayName = Wu;
1108
1108
  var py = "AccordionContent", hy = $.forwardRef(
1109
1109
  (t, e) => {
1110
- const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o = Ef(py, n), s = If(n);
1110
+ const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o = If(py, n), s = Sf(n);
1111
1111
  return /* @__PURE__ */ C.jsx(
1112
1112
  dE,
1113
1113
  {
@@ -1194,7 +1194,7 @@ var kE = "VisuallyHidden", vy = I.forwardRef(
1194
1194
  vy.displayName = kE;
1195
1195
  var ME = vy, [Rl, Z5] = Un("Tooltip", [
1196
1196
  $b
1197
- ]), Dl = $b(), by = "TooltipProvider", OE = 700, Xu = "tooltip.open", [PE, Af] = Rl(by), yy = (t) => {
1197
+ ]), Dl = $b(), by = "TooltipProvider", OE = 700, $u = "tooltip.open", [PE, Ef] = Rl(by), yy = (t) => {
1198
1198
  const {
1199
1199
  __scopeTooltip: e,
1200
1200
  delayDuration: n = OE,
@@ -1239,11 +1239,11 @@ var Nl = "Tooltip", [RE, Fl] = Rl(Nl), xy = (t) => {
1239
1239
  onOpenChange: o,
1240
1240
  disableHoverableContent: s,
1241
1241
  delayDuration: a
1242
- } = t, l = Af(Nl, t.__scopeTooltip), c = Dl(e), [u, d] = I.useState(null), f = ps(), p = I.useRef(0), h = s ?? l.disableHoverableContent, m = a ?? l.delayDuration, g = I.useRef(!1), [v = !1, b] = Nn({
1242
+ } = t, l = Ef(Nl, t.__scopeTooltip), c = Dl(e), [u, d] = I.useState(null), f = ps(), p = I.useRef(0), h = s ?? l.disableHoverableContent, m = a ?? l.delayDuration, g = I.useRef(!1), [v = !1, b] = Nn({
1243
1243
  prop: r,
1244
1244
  defaultProp: i,
1245
1245
  onChange: (A) => {
1246
- A ? (l.onOpen(), document.dispatchEvent(new CustomEvent(Xu))) : l.onClose(), o == null || o(A);
1246
+ A ? (l.onOpen(), document.dispatchEvent(new CustomEvent($u))) : l.onClose(), o == null || o(A);
1247
1247
  }
1248
1248
  }), x = I.useMemo(() => v ? g.current ? "delayed-open" : "instant-open" : "closed", [v]), w = I.useCallback(() => {
1249
1249
  window.clearTimeout(p.current), p.current = 0, g.current = !1, b(!0);
@@ -1279,9 +1279,9 @@ var Nl = "Tooltip", [RE, Fl] = Rl(Nl), xy = (t) => {
1279
1279
  ) });
1280
1280
  };
1281
1281
  xy.displayName = Nl;
1282
- var Yu = "TooltipTrigger", Cy = I.forwardRef(
1282
+ var Xu = "TooltipTrigger", Cy = I.forwardRef(
1283
1283
  (t, e) => {
1284
- const { __scopeTooltip: n, ...r } = t, i = Fl(Yu, n), o = Af(Yu, n), s = Dl(n), a = I.useRef(null), l = kt(e, a, i.onTriggerChange), c = I.useRef(!1), u = I.useRef(!1), d = I.useCallback(() => c.current = !1, []);
1284
+ const { __scopeTooltip: n, ...r } = t, i = Fl(Xu, n), o = Ef(Xu, n), s = Dl(n), a = I.useRef(null), l = kt(e, a, i.onTriggerChange), c = I.useRef(!1), u = I.useRef(!1), d = I.useCallback(() => c.current = !1, []);
1285
1285
  return I.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ C.jsx(aI, { asChild: !0, ...s, children: /* @__PURE__ */ C.jsx(
1286
1286
  Ze.button,
1287
1287
  {
@@ -1307,7 +1307,7 @@ var Yu = "TooltipTrigger", Cy = I.forwardRef(
1307
1307
  ) });
1308
1308
  }
1309
1309
  );
1310
- Cy.displayName = Yu;
1310
+ Cy.displayName = Xu;
1311
1311
  var DE = "TooltipPortal", [J5, NE] = Rl(DE, {
1312
1312
  forceMount: void 0
1313
1313
  }), zi = "TooltipContent", wy = I.forwardRef(
@@ -1316,7 +1316,7 @@ var DE = "TooltipPortal", [J5, NE] = Rl(DE, {
1316
1316
  return /* @__PURE__ */ C.jsx(hs, { present: r || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ C.jsx(Sy, { side: i, ...o, ref: e }) : /* @__PURE__ */ C.jsx(FE, { side: i, ...o, ref: e }) });
1317
1317
  }
1318
1318
  ), FE = I.forwardRef((t, e) => {
1319
- const n = Fl(zi, t.__scopeTooltip), r = Af(zi, t.__scopeTooltip), i = I.useRef(null), o = kt(e, i), [s, a] = I.useState(null), { trigger: l, onClose: c } = n, u = i.current, { onPointerInTransitChange: d } = r, f = I.useCallback(() => {
1319
+ const n = Fl(zi, t.__scopeTooltip), r = Ef(zi, t.__scopeTooltip), i = I.useRef(null), o = kt(e, i), [s, a] = I.useState(null), { trigger: l, onClose: c } = n, u = i.current, { onPointerInTransitChange: d } = r, f = I.useCallback(() => {
1320
1320
  a(null), d(!1);
1321
1321
  }, [d]), p = I.useCallback(
1322
1322
  (h, m) => {
@@ -1351,7 +1351,7 @@ var DE = "TooltipPortal", [J5, NE] = Rl(DE, {
1351
1351
  onPointerDownOutside: s,
1352
1352
  ...a
1353
1353
  } = t, l = Fl(zi, n), c = Dl(n), { onClose: u } = l;
1354
- return I.useEffect(() => (document.addEventListener(Xu, u), () => document.removeEventListener(Xu, u)), [u]), I.useEffect(() => {
1354
+ return I.useEffect(() => (document.addEventListener($u, u), () => document.removeEventListener($u, u)), [u]), I.useEffect(() => {
1355
1355
  if (l.trigger) {
1356
1356
  const d = (f) => {
1357
1357
  const p = f.target;
@@ -1497,10 +1497,10 @@ function HE(t) {
1497
1497
  return n.pop(), e.length === 1 && n.length === 1 && e[0].x === n[0].x && e[0].y === n[0].y ? e : e.concat(n);
1498
1498
  }
1499
1499
  var WE = yy, $E = xy, XE = Cy, YE = wy, ZE = Ey;
1500
- const Ac = (t = !1) => {
1500
+ const Ec = (t = !1) => {
1501
1501
  const [e, n] = I.useState(t);
1502
1502
  return [e, (i) => n((o) => i ?? !o)];
1503
- }, Tf = (t, e) => {
1503
+ }, Af = (t, e) => {
1504
1504
  const n = (r) => {
1505
1505
  t.current && !t.current.contains(r.target) && e();
1506
1506
  };
@@ -1517,7 +1517,7 @@ const Ay = (t) => typeof t == "object";
1517
1517
  var it = (t) => !Dt(t) && !Array.isArray(t) && Ay(t) && !zr(t), Ty = (t) => it(t) && t.target ? vs(t.target) ? t.target.checked : t.target.value : t, JE = (t) => t.substring(0, t.search(/\.\d+(\.|$)/)) || t, ky = (t, e) => t.has(JE(e)), UE = (t) => {
1518
1518
  const e = t.constructor && t.constructor.prototype;
1519
1519
  return it(e) && e.hasOwnProperty("isPrototypeOf");
1520
- }, kf = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
1520
+ }, Tf = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
1521
1521
  function Bt(t) {
1522
1522
  let e;
1523
1523
  const n = Array.isArray(t);
@@ -1525,7 +1525,7 @@ function Bt(t) {
1525
1525
  e = new Date(t);
1526
1526
  else if (t instanceof Set)
1527
1527
  e = new Set(t);
1528
- else if (!(kf && (t instanceof Blob || t instanceof FileList)) && (n || it(t)))
1528
+ else if (!(Tf && (t instanceof Blob || t instanceof FileList)) && (n || it(t)))
1529
1529
  if (e = n ? [] : {}, !n && !UE(t))
1530
1530
  e = t;
1531
1531
  else
@@ -1540,9 +1540,9 @@ var Vl = (t) => Array.isArray(t) ? t.filter(Boolean) : [], Qe = (t) => t === voi
1540
1540
  return n;
1541
1541
  const r = Vl(e.split(/[,[\].]+?/)).reduce((i, o) => Dt(i) ? i : i[o], t);
1542
1542
  return Qe(r) || r === t ? Qe(t[e]) ? n : t[e] : r;
1543
- }, Qt = (t) => typeof t == "boolean", Mf = (t) => /^\w*$/.test(t), My = (t) => Vl(t.replace(/["|']|\]/g, "").split(/\.|\[/)), Ge = (t, e, n) => {
1543
+ }, Qt = (t) => typeof t == "boolean", kf = (t) => /^\w*$/.test(t), My = (t) => Vl(t.replace(/["|']|\]/g, "").split(/\.|\[/)), Ge = (t, e, n) => {
1544
1544
  let r = -1;
1545
- const i = Mf(e) ? [e] : My(e), o = i.length, s = o - 1;
1545
+ const i = kf(e) ? [e] : My(e), o = i.length, s = o - 1;
1546
1546
  for (; ++r < o; ) {
1547
1547
  const a = i[r];
1548
1548
  let l = n;
@@ -1574,7 +1574,7 @@ const ma = {
1574
1574
  pattern: "pattern",
1575
1575
  required: "required",
1576
1576
  validate: "validate"
1577
- }, KE = $.createContext(null), Bl = () => $.useContext(KE);
1577
+ }, KE = $.createContext(null), Mf = () => $.useContext(KE);
1578
1578
  var Oy = (t, e, n, r = !0) => {
1579
1579
  const i = {
1580
1580
  defaultValues: e._defaultValues
@@ -1604,7 +1604,7 @@ function Of(t) {
1604
1604
  }, [t.disabled]);
1605
1605
  }
1606
1606
  function qE(t) {
1607
- const e = Bl(), { control: n = e.control, disabled: r, name: i, exact: o } = t || {}, [s, a] = $.useState(n._formState), l = $.useRef(!0), c = $.useRef({
1607
+ const e = Mf(), { control: n = e.control, disabled: r, name: i, exact: o } = t || {}, [s, a] = $.useState(n._formState), l = $.useRef(!0), c = $.useRef({
1608
1608
  isDirty: !1,
1609
1609
  isLoading: !1,
1610
1610
  dirtyFields: !1,
@@ -1627,7 +1627,7 @@ function qE(t) {
1627
1627
  }
1628
1628
  var En = (t) => typeof t == "string", Dy = (t, e, n, r, i) => En(t) ? (r && e.watch.add(t), te(n, t, i)) : Array.isArray(t) ? t.map((o) => (r && e.watch.add(o), te(n, o))) : (r && (e.watchAll = !0), n);
1629
1629
  function QE(t) {
1630
- const e = Bl(), { control: n = e.control, name: r, defaultValue: i, disabled: o, exact: s } = t || {}, a = $.useRef(r);
1630
+ const e = Mf(), { control: n = e.control, name: r, defaultValue: i, disabled: o, exact: s } = t || {}, a = $.useRef(r);
1631
1631
  a.current = r, Of({
1632
1632
  disabled: o,
1633
1633
  subject: n._subjects.values,
@@ -1639,7 +1639,7 @@ function QE(t) {
1639
1639
  return $.useEffect(() => n._removeUnmounted()), l;
1640
1640
  }
1641
1641
  function eA(t) {
1642
- const e = Bl(), { name: n, disabled: r, control: i = e.control, shouldUnregister: o } = t, s = ky(i._names.array, n), a = QE({
1642
+ const e = Mf(), { name: n, disabled: r, control: i = e.control, shouldUnregister: o } = t, s = ky(i._names.array, n), a = QE({
1643
1643
  control: i,
1644
1644
  name: n,
1645
1645
  defaultValue: te(i._formValues, n, te(i._defaultValues, n, t.defaultValue)),
@@ -1761,7 +1761,7 @@ var tA = (t, e, n) => {
1761
1761
  const r = Oo(te(t, n));
1762
1762
  return Ge(r, "root", e[n]), Ge(t, n, r), t;
1763
1763
  }, Pf = (t) => t.type === "file", In = (t) => typeof t == "function", ga = (t) => {
1764
- if (!kf)
1764
+ if (!Tf)
1765
1765
  return !1;
1766
1766
  const e = t ? t.ownerDocument : 0;
1767
1767
  return t instanceof (e && e.defaultView ? e.defaultView.HTMLElement : HTMLElement);
@@ -1897,10 +1897,10 @@ function rA(t) {
1897
1897
  return !0;
1898
1898
  }
1899
1899
  function ct(t, e) {
1900
- const n = Array.isArray(e) ? e : Mf(e) ? [e] : My(e), r = n.length === 1 ? t : nA(t, n), i = n.length - 1, o = n[i];
1900
+ const n = Array.isArray(e) ? e : kf(e) ? [e] : My(e), r = n.length === 1 ? t : nA(t, n), i = n.length - 1, o = n[i];
1901
1901
  return r && delete r[o], i !== 0 && (it(r) && Lt(r) || Array.isArray(r) && rA(r)) && ct(t, n.slice(0, -1)), t;
1902
1902
  }
1903
- var Tc = () => {
1903
+ var Ac = () => {
1904
1904
  let t = [];
1905
1905
  return {
1906
1906
  get observers() {
@@ -1919,9 +1919,9 @@ var Tc = () => {
1919
1919
  t = [];
1920
1920
  }
1921
1921
  };
1922
- }, Zu = (t) => Dt(t) || !Ay(t);
1922
+ }, Yu = (t) => Dt(t) || !Ay(t);
1923
1923
  function ar(t, e) {
1924
- if (Zu(t) || Zu(e))
1924
+ if (Yu(t) || Yu(e))
1925
1925
  return t === e;
1926
1926
  if (zr(t) && zr(e))
1927
1927
  return t.getTime() === e.getTime();
@@ -1940,7 +1940,7 @@ function ar(t, e) {
1940
1940
  }
1941
1941
  return !0;
1942
1942
  }
1943
- var By = (t) => t.type === "select-multiple", iA = (t) => Rf(t) || vs(t), kc = (t) => ga(t) && t.isConnected, Ly = (t) => {
1943
+ var By = (t) => t.type === "select-multiple", iA = (t) => Rf(t) || vs(t), Tc = (t) => ga(t) && t.isConnected, Ly = (t) => {
1944
1944
  for (const e in t)
1945
1945
  if (In(t[e]))
1946
1946
  return !0;
@@ -1957,11 +1957,11 @@ function jy(t, e, n) {
1957
1957
  const r = Array.isArray(t);
1958
1958
  if (it(t) || r)
1959
1959
  for (const i in t)
1960
- Array.isArray(t[i]) || it(t[i]) && !Ly(t[i]) ? Qe(e) || Zu(n[i]) ? n[i] = Array.isArray(t[i]) ? ba(t[i], []) : { ...ba(t[i]) } : jy(t[i], Dt(e) ? {} : e[i], n[i]) : n[i] = !ar(t[i], e[i]);
1960
+ Array.isArray(t[i]) || it(t[i]) && !Ly(t[i]) ? Qe(e) || Yu(n[i]) ? n[i] = Array.isArray(t[i]) ? ba(t[i], []) : { ...ba(t[i]) } : jy(t[i], Dt(e) ? {} : e[i], n[i]) : n[i] = !ar(t[i], e[i]);
1961
1961
  return n;
1962
1962
  }
1963
1963
  var fo = (t, e) => jy(t, e, ba(e)), Gy = (t, { valueAsNumber: e, valueAsDate: n, setValueAs: r }) => Qe(t) ? t : e ? t === "" ? NaN : t && +t : n && En(t) ? new Date(t) : r ? r(t) : t;
1964
- function Mc(t) {
1964
+ function kc(t) {
1965
1965
  const e = t.ref;
1966
1966
  if (!(t.refs ? t.refs.every((n) => n.disabled) : e.disabled))
1967
1967
  return Pf(e) ? e.files : Rf(e) ? Vy(t.refs).value : By(e) ? [...e.selectedOptions].map(({ value: n }) => n) : vs(e) ? Fy(t.refs).value : Gy(Qe(e.value) ? t.ref.value : e.value, t);
@@ -1983,7 +1983,7 @@ const Nh = "AsyncFunction";
1983
1983
  var sA = (t) => (!t || !t.validate) && !!(In(t.validate) && t.validate.constructor.name === Nh || it(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === Nh)), aA = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate);
1984
1984
  function Fh(t, e, n) {
1985
1985
  const r = te(t, n);
1986
- if (r || Mf(n))
1986
+ if (r || kf(n))
1987
1987
  return {
1988
1988
  error: r,
1989
1989
  name: n
@@ -2047,9 +2047,9 @@ function dA(t = {}) {
2047
2047
  isValid: !1,
2048
2048
  errors: !1
2049
2049
  }, d = {
2050
- values: Tc(),
2051
- array: Tc(),
2052
- state: Tc()
2050
+ values: Ac(),
2051
+ array: Ac(),
2052
+ state: Ac()
2053
2053
  }, f = Th(e.mode), p = Th(e.reValidateMode), h = e.criteriaMode === ln.all, m = (S) => (k) => {
2054
2054
  clearTimeout(c), c = setTimeout(S, k);
2055
2055
  }, g = async (S) => {
@@ -2102,7 +2102,7 @@ function dA(t = {}) {
2102
2102
  const W = te(r, S);
2103
2103
  if (W) {
2104
2104
  const j = te(o, S, Qe(M) ? te(i, S) : M);
2105
- Qe(j) || q && q.defaultChecked || k ? Ge(o, S, k ? j : Mc(W._f)) : Y(S, j), s.mount && g();
2105
+ Qe(j) || q && q.defaultChecked || k ? Ge(o, S, k ? j : kc(W._f)) : Y(S, j), s.mount && g();
2106
2106
  }
2107
2107
  }, E = (S, k, M, q, W) => {
2108
2108
  let j = !1, N = !1;
@@ -2173,7 +2173,7 @@ function dA(t = {}) {
2173
2173
  }, X = () => {
2174
2174
  for (const S of a.unMount) {
2175
2175
  const k = te(r, S);
2176
- k && (k._f.refs ? k._f.refs.every((M) => !kc(M)) : !kc(k._f.ref)) && ne(S);
2176
+ k && (k._f.refs ? k._f.refs.every((M) => !Tc(M)) : !Tc(k._f.ref)) && ne(S);
2177
2177
  }
2178
2178
  a.unMount = /* @__PURE__ */ new Set();
2179
2179
  }, z = (S, k) => !e.disabled && (S && k && Ge(o, S, k), !ar(_(), i)), J = (S, k, M) => Dy(S, a, {
@@ -2211,7 +2211,7 @@ function dA(t = {}) {
2211
2211
  s.mount = !0;
2212
2212
  const k = S.target;
2213
2213
  let M = k.name, q = !0;
2214
- const W = te(r, M), j = () => k.type ? Mc(W._f) : Ty(S), N = (U) => {
2214
+ const W = te(r, M), j = () => k.type ? kc(W._f) : Ty(S), N = (U) => {
2215
2215
  q = Number.isNaN(U) || zr(U) && isNaN(U.getTime()) || ar(U, te(o, M, U));
2216
2216
  };
2217
2217
  if (W) {
@@ -2292,7 +2292,7 @@ function dA(t = {}) {
2292
2292
  }), !k.keepIsValid && g();
2293
2293
  }, ie = ({ disabled: S, name: k, field: M, fields: q, value: W }) => {
2294
2294
  if (Qt(S) && s.mount || S) {
2295
- const j = S ? void 0 : Qe(W) ? Mc(M ? M._f : te(q, k)._f) : W;
2295
+ const j = S ? void 0 : Qe(W) ? kc(M ? M._f : te(q, k)._f) : W;
2296
2296
  Ge(o, k, j), E(k, j, !1, !1, !0);
2297
2297
  }
2298
2298
  }, ae = (S, k = {}) => {
@@ -2335,7 +2335,7 @@ function dA(t = {}) {
2335
2335
  ...M._f,
2336
2336
  ...N ? {
2337
2337
  refs: [
2338
- ...U.filter(kc),
2338
+ ...U.filter(Tc),
2339
2339
  j,
2340
2340
  ...Array.isArray(te(i, S)) ? [{}] : []
2341
2341
  ],
@@ -2400,7 +2400,7 @@ function dA(t = {}) {
2400
2400
  for (const U of Array.from(N))
2401
2401
  te(n.dirtyFields, U) ? Ge(j, U, te(o, U)) : B(U, te(j, U));
2402
2402
  } else {
2403
- if (kf && Qe(S))
2403
+ if (Tf && Qe(S))
2404
2404
  for (const N of a.mount) {
2405
2405
  const U = te(r, N);
2406
2406
  if (U && U._f) {
@@ -2670,7 +2670,7 @@ const U5 = ({ schema: t, ...e }) => fA({
2670
2670
  ...l
2671
2671
  }) => {
2672
2672
  const [c, u] = I.useState(!1), d = I.useRef(null), { isMobile: f } = hI();
2673
- return Tf(d, () => u(!1)), /* @__PURE__ */ C.jsx(WE, { children: /* @__PURE__ */ C.jsx($E, { open: c, onOpenChange: u, defaultOpen: s, delayDuration: n, children: /* @__PURE__ */ C.jsxs("div", { onClick: () => u(!!f), children: [
2673
+ return Af(d, () => u(!1)), /* @__PURE__ */ C.jsx(WE, { children: /* @__PURE__ */ C.jsx($E, { open: c, onOpenChange: u, defaultOpen: s, delayDuration: n, children: /* @__PURE__ */ C.jsxs("div", { onClick: () => u(!!f), children: [
2674
2674
  /* @__PURE__ */ C.jsx(XE, { asChild: !0, className: O("cursor-pointer", a == null ? void 0 : a.trigger), children: t }),
2675
2675
  /* @__PURE__ */ C.jsxs(
2676
2676
  YE,
@@ -2740,13 +2740,13 @@ function CA(...t) {
2740
2740
  };
2741
2741
  return n.scopeName = e.scopeName, n;
2742
2742
  }
2743
- var Oc = "rovingFocusGroup.onEntryFocus", wA = { bubbles: !1, cancelable: !0 }, Ll = "RovingFocusGroup", [Ju, Hy, SA] = bf(Ll), [IA, jl] = xA(
2744
- Ll,
2743
+ var Mc = "rovingFocusGroup.onEntryFocus", wA = { bubbles: !1, cancelable: !0 }, Bl = "RovingFocusGroup", [Zu, Hy, SA] = vf(Bl), [IA, Ll] = xA(
2744
+ Bl,
2745
2745
  [SA]
2746
- ), [EA, AA] = IA(Ll), Wy = I.forwardRef(
2747
- (t, e) => /* @__PURE__ */ C.jsx(Ju.Provider, { scope: t.__scopeRovingFocusGroup, children: /* @__PURE__ */ C.jsx(Ju.Slot, { scope: t.__scopeRovingFocusGroup, children: /* @__PURE__ */ C.jsx(TA, { ...t, ref: e }) }) })
2746
+ ), [EA, AA] = IA(Bl), Wy = I.forwardRef(
2747
+ (t, e) => /* @__PURE__ */ C.jsx(Zu.Provider, { scope: t.__scopeRovingFocusGroup, children: /* @__PURE__ */ C.jsx(Zu.Slot, { scope: t.__scopeRovingFocusGroup, children: /* @__PURE__ */ C.jsx(TA, { ...t, ref: e }) }) })
2748
2748
  );
2749
- Wy.displayName = Ll;
2749
+ Wy.displayName = Bl;
2750
2750
  var TA = I.forwardRef((t, e) => {
2751
2751
  const {
2752
2752
  __scopeRovingFocusGroup: n,
@@ -2767,7 +2767,7 @@ var TA = I.forwardRef((t, e) => {
2767
2767
  return I.useEffect(() => {
2768
2768
  const T = f.current;
2769
2769
  if (T)
2770
- return T.addEventListener(Oc, x), () => T.removeEventListener(Oc, x);
2770
+ return T.addEventListener(Mc, x), () => T.removeEventListener(Mc, x);
2771
2771
  }, [x]), /* @__PURE__ */ C.jsx(
2772
2772
  EA,
2773
2773
  {
@@ -2803,7 +2803,7 @@ var TA = I.forwardRef((t, e) => {
2803
2803
  onFocus: _e(t.onFocus, (T) => {
2804
2804
  const R = !y.current;
2805
2805
  if (T.target === T.currentTarget && R && !v) {
2806
- const G = new CustomEvent(Oc, wA);
2806
+ const G = new CustomEvent(Mc, wA);
2807
2807
  if (T.currentTarget.dispatchEvent(G), !G.defaultPrevented) {
2808
2808
  const X = w().filter((F) => F.focusable), z = X.find((F) => F.active), J = X.find((F) => F.id === m), Y = [z, J, ...X].filter(
2809
2809
  Boolean
@@ -2831,7 +2831,7 @@ var TA = I.forwardRef((t, e) => {
2831
2831
  if (r)
2832
2832
  return f(), () => p();
2833
2833
  }, [r, f, p]), /* @__PURE__ */ C.jsx(
2834
- Ju.ItemSlot,
2834
+ Zu.ItemSlot,
2835
2835
  {
2836
2836
  scope: n,
2837
2837
  id: l,
@@ -2902,8 +2902,8 @@ function PA(t, e) {
2902
2902
  return t.map((n, r) => t[(e + r) % t.length]);
2903
2903
  }
2904
2904
  var Zy = Wy, Jy = Xy, Df = "Tabs", [RA, q5] = Un(Df, [
2905
- jl
2906
- ]), Uy = jl(), [DA, Nf] = RA(Df), Ky = I.forwardRef(
2905
+ Ll
2906
+ ]), Uy = Ll(), [DA, Nf] = RA(Df), Ky = I.forwardRef(
2907
2907
  (t, e) => {
2908
2908
  const {
2909
2909
  __scopeTabs: n,
@@ -3070,13 +3070,13 @@ const Q5 = ({ renderContent: t, defaultActiveTabId: e = "1", value: n, onChangeT
3070
3070
  }
3071
3071
  );
3072
3072
  }, Lh = /* @__PURE__ */ new Set();
3073
- function Gl(t, e, n) {
3073
+ function jl(t, e, n) {
3074
3074
  t || Lh.has(e) || (console.warn(e), Lh.add(e));
3075
3075
  }
3076
3076
  function BA(t) {
3077
3077
  if (typeof Proxy > "u")
3078
3078
  return t;
3079
- const e = /* @__PURE__ */ new Map(), n = (...r) => (process.env.NODE_ENV !== "production" && Gl(!1, "motion() is deprecated. Use motion.create() instead."), t(...r));
3079
+ const e = /* @__PURE__ */ new Map(), n = (...r) => (process.env.NODE_ENV !== "production" && jl(!1, "motion() is deprecated. Use motion.create() instead."), t(...r));
3080
3080
  return new Proxy(n, {
3081
3081
  /**
3082
3082
  * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
@@ -3086,10 +3086,10 @@ function BA(t) {
3086
3086
  get: (r, i) => i === "create" ? t : (e.has(i) || e.set(i, t(i)), e.get(i))
3087
3087
  });
3088
3088
  }
3089
- function zl(t) {
3089
+ function Gl(t) {
3090
3090
  return t !== null && typeof t == "object" && typeof t.start == "function";
3091
3091
  }
3092
- const Uu = (t) => Array.isArray(t);
3092
+ const Ju = (t) => Array.isArray(t);
3093
3093
  function s0(t, e) {
3094
3094
  if (!Array.isArray(e))
3095
3095
  return !1;
@@ -3121,7 +3121,7 @@ function Ff(t, e, n, r) {
3121
3121
  }
3122
3122
  return e;
3123
3123
  }
3124
- function _l(t, e, n) {
3124
+ function zl(t, e, n) {
3125
3125
  const r = t.getProps();
3126
3126
  return Ff(r, e, n !== void 0 ? n : r.custom, t);
3127
3127
  }
@@ -3176,7 +3176,7 @@ const HA = {
3176
3176
  skipAnimations: !1,
3177
3177
  useManualTiming: !1
3178
3178
  }, WA = (t) => t !== null;
3179
- function Hl(t, { repeat: e, repeatType: n = "loop" }, r) {
3179
+ function _l(t, { repeat: e, repeatType: n = "loop" }, r) {
3180
3180
  const i = t.filter(WA), o = e && n !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
3181
3181
  return !o || r === void 0 ? i[o] : r;
3182
3182
  }
@@ -3253,7 +3253,7 @@ function a0(t, e) {
3253
3253
  s[Ps[b]].cancel(v);
3254
3254
  }, state: i, steps: s };
3255
3255
  }
3256
- const { schedule: He, cancel: xr, state: gt, steps: Pc } = a0(typeof requestAnimationFrame < "u" ? requestAnimationFrame : xt, !0), l0 = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, YA = 1e-7, ZA = 12;
3256
+ const { schedule: He, cancel: xr, state: gt, steps: Oc } = a0(typeof requestAnimationFrame < "u" ? requestAnimationFrame : xt, !0), l0 = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, YA = 1e-7, ZA = 12;
3257
3257
  function JA(t, e, n, r, i) {
3258
3258
  let o, s, a = 0;
3259
3259
  do
@@ -3367,9 +3367,9 @@ const C0 = (t) => (e) => e.test(t), lT = {
3367
3367
  test: (t) => t === "auto",
3368
3368
  parse: (t) => t
3369
3369
  }, w0 = [to, ve, kn, nr, rT, nT, lT], Wh = (t) => w0.find(C0(t)), Jr = /* @__PURE__ */ new Set();
3370
- let Ku = !1, qu = !1;
3370
+ let Uu = !1, Ku = !1;
3371
3371
  function S0() {
3372
- if (qu) {
3372
+ if (Ku) {
3373
3373
  const t = Array.from(Jr).filter((r) => r.needsMeasurement), e = new Set(t.map((r) => r.element)), n = /* @__PURE__ */ new Map();
3374
3374
  e.forEach((r) => {
3375
3375
  const i = aT(r);
@@ -3385,11 +3385,11 @@ function S0() {
3385
3385
  r.suspendedScrollY !== void 0 && window.scrollTo(0, r.suspendedScrollY);
3386
3386
  });
3387
3387
  }
3388
- qu = !1, Ku = !1, Jr.forEach((t) => t.complete()), Jr.clear();
3388
+ Ku = !1, Uu = !1, Jr.forEach((t) => t.complete()), Jr.clear();
3389
3389
  }
3390
3390
  function I0() {
3391
3391
  Jr.forEach((t) => {
3392
- t.readKeyframes(), t.needsMeasurement && (qu = !0);
3392
+ t.readKeyframes(), t.needsMeasurement && (Ku = !0);
3393
3393
  });
3394
3394
  }
3395
3395
  function cT() {
@@ -3400,7 +3400,7 @@ class _f {
3400
3400
  this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = r, this.motionValue = i, this.element = o, this.isAsync = s;
3401
3401
  }
3402
3402
  scheduleResolve() {
3403
- this.isScheduled = !0, this.isAsync ? (Jr.add(this), Ku || (Ku = !0, He.read(I0), He.resolveKeyframes(S0))) : (this.readKeyframes(), this.complete());
3403
+ this.isScheduled = !0, this.isAsync ? (Jr.add(this), Uu || (Uu = !0, He.read(I0), He.resolveKeyframes(S0))) : (this.readKeyframes(), this.complete());
3404
3404
  }
3405
3405
  readKeyframes() {
3406
3406
  const { unresolvedKeyframes: e, name: n, element: r, motionValue: i } = this;
@@ -3450,13 +3450,13 @@ const dT = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
3450
3450
  [n]: parseFloat(s),
3451
3451
  alpha: a !== void 0 ? parseFloat(a) : 1
3452
3452
  };
3453
- }, fT = (t) => Cr(0, 255, t), Rc = {
3453
+ }, fT = (t) => Cr(0, 255, t), Pc = {
3454
3454
  ...to,
3455
3455
  transform: (t) => Math.round(fT(t))
3456
3456
  }, _r = {
3457
3457
  test: /* @__PURE__ */ Wf("rgb", "red"),
3458
3458
  parse: /* @__PURE__ */ E0("red", "green", "blue"),
3459
- transform: ({ red: t, green: e, blue: n, alpha: r = 1 }) => "rgba(" + Rc.transform(t) + ", " + Rc.transform(e) + ", " + Rc.transform(n) + ", " + Ro($o.transform(r)) + ")"
3459
+ transform: ({ red: t, green: e, blue: n, alpha: r = 1 }) => "rgba(" + Pc.transform(t) + ", " + Pc.transform(e) + ", " + Pc.transform(n) + ", " + Ro($o.transform(r)) + ")"
3460
3460
  };
3461
3461
  function pT(t) {
3462
3462
  let e = "", n = "", r = "", i = "";
@@ -3467,7 +3467,7 @@ function pT(t) {
3467
3467
  alpha: i ? parseInt(i, 16) / 255 : 1
3468
3468
  };
3469
3469
  }
3470
- const Qu = {
3470
+ const qu = {
3471
3471
  test: /* @__PURE__ */ Wf("#"),
3472
3472
  parse: pT,
3473
3473
  transform: _r.transform
@@ -3476,8 +3476,8 @@ const Qu = {
3476
3476
  parse: /* @__PURE__ */ E0("hue", "saturation", "lightness"),
3477
3477
  transform: ({ hue: t, saturation: e, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " + kn.transform(Ro(e)) + ", " + kn.transform(Ro(n)) + ", " + Ro($o.transform(r)) + ")"
3478
3478
  }, It = {
3479
- test: (t) => _r.test(t) || Qu.test(t) || Mi.test(t),
3480
- parse: (t) => _r.test(t) ? _r.parse(t) : Mi.test(t) ? Mi.parse(t) : Qu.parse(t),
3479
+ test: (t) => _r.test(t) || qu.test(t) || Mi.test(t),
3480
+ parse: (t) => _r.test(t) ? _r.parse(t) : Mi.test(t) ? Mi.parse(t) : qu.parse(t),
3481
3481
  transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? _r.transform(t) : Mi.transform(t)
3482
3482
  }, hT = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
3483
3483
  function mT(t) {
@@ -3532,7 +3532,7 @@ function wT(t) {
3532
3532
  let o = CT.has(e) ? 1 : 0;
3533
3533
  return r !== n && (o *= 100), e + "(" + o + i + ")";
3534
3534
  }
3535
- const ST = /\b([a-z-]*)\(.*?\)/gu, ed = {
3535
+ const ST = /\b([a-z-]*)\(.*?\)/gu, Qu = {
3536
3536
  ...wr,
3537
3537
  getAnimatableNone: (t) => {
3538
3538
  const e = t.match(ST);
@@ -3625,12 +3625,12 @@ const ST = /\b([a-z-]*)\(.*?\)/gu, ed = {
3625
3625
  borderRightColor: It,
3626
3626
  borderBottomColor: It,
3627
3627
  borderLeftColor: It,
3628
- filter: ed,
3629
- WebkitFilter: ed
3628
+ filter: Qu,
3629
+ WebkitFilter: Qu
3630
3630
  }, Xf = (t) => AT[t];
3631
3631
  function O0(t, e) {
3632
3632
  let n = Xf(t);
3633
- return n !== ed && (n = wr), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
3633
+ return n !== Qu && (n = wr), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
3634
3634
  }
3635
3635
  const TT = /* @__PURE__ */ new Set(["auto", "none", "0"]);
3636
3636
  function kT(t, e, n) {
@@ -3776,7 +3776,7 @@ class R0 {
3776
3776
  if (s)
3777
3777
  this.options.duration = 0;
3778
3778
  else {
3779
- l == null || l(Hl(e, this.options, n)), a == null || a(), this.resolveFinishedPromise();
3779
+ l == null || l(_l(e, this.options, n)), a == null || a(), this.resolveFinishedPromise();
3780
3780
  return;
3781
3781
  }
3782
3782
  const u = this.initPlayback(e, n);
@@ -3813,20 +3813,20 @@ function N0(t, e, n) {
3813
3813
  const r = Math.max(e - DT, 0);
3814
3814
  return D0(n - t(r), e - r);
3815
3815
  }
3816
- const Dc = 1e-3, NT = 0.01, Zh = 10, FT = 0.05, VT = 1;
3816
+ const Rc = 1e-3, NT = 0.01, Zh = 10, FT = 0.05, VT = 1;
3817
3817
  function BT({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: r = 1 }) {
3818
3818
  let i, o;
3819
3819
  eo(t <= Tn(Zh), "Spring duration must be 10 seconds or less");
3820
3820
  let s = 1 - e;
3821
3821
  s = Cr(FT, VT, s), t = Cr(NT, Zh, _n(t)), s < 1 ? (i = (c) => {
3822
- const u = c * s, d = u * t, f = u - n, p = td(c, s), h = Math.exp(-d);
3823
- return Dc - f / p * h;
3822
+ const u = c * s, d = u * t, f = u - n, p = ed(c, s), h = Math.exp(-d);
3823
+ return Rc - f / p * h;
3824
3824
  }, o = (c) => {
3825
- const d = c * s * t, f = d * n + n, p = Math.pow(s, 2) * Math.pow(c, 2) * t, h = Math.exp(-d), m = td(Math.pow(c, 2), s);
3826
- return (-i(c) + Dc > 0 ? -1 : 1) * ((f - p) * h) / m;
3825
+ const d = c * s * t, f = d * n + n, p = Math.pow(s, 2) * Math.pow(c, 2) * t, h = Math.exp(-d), m = ed(Math.pow(c, 2), s);
3826
+ return (-i(c) + Rc > 0 ? -1 : 1) * ((f - p) * h) / m;
3827
3827
  }) : (i = (c) => {
3828
3828
  const u = Math.exp(-c * t), d = (c - n) * t + 1;
3829
- return -Dc + u * d;
3829
+ return -Rc + u * d;
3830
3830
  }, o = (c) => {
3831
3831
  const u = Math.exp(-c * t), d = (n - c) * (t * t);
3832
3832
  return u * d;
@@ -3854,7 +3854,7 @@ function jT(t, e, n) {
3854
3854
  r = r - t(r) / e(r);
3855
3855
  return r;
3856
3856
  }
3857
- function td(t, e) {
3857
+ function ed(t, e) {
3858
3858
  return t * Math.sqrt(1 - e * e);
3859
3859
  }
3860
3860
  const GT = ["duration", "bounce"], zT = ["stiffness", "damping", "mass"];
@@ -3888,7 +3888,7 @@ function F0({ keyframes: t, restDelta: e, restSpeed: n, ...r }) {
3888
3888
  n || (n = v ? 0.01 : 2), e || (e = v ? 5e-3 : 0.5);
3889
3889
  let b;
3890
3890
  if (h < 1) {
3891
- const x = td(g, h);
3891
+ const x = ed(g, h);
3892
3892
  b = (w) => {
3893
3893
  const y = Math.exp(-h * g * w);
3894
3894
  return o - y * ((p + h * g * m) / x * Math.sin(x * w) + m * Math.cos(x * w));
@@ -3974,7 +3974,7 @@ const HT = /* @__PURE__ */ ys(0.42, 0, 1, 1), WT = /* @__PURE__ */ ys(0, 0, 0.58
3974
3974
  const r = e - t;
3975
3975
  return r === 0 ? 1 : (n - t) / r;
3976
3976
  }, Ue = (t, e, n) => t + (e - t) * n;
3977
- function Nc(t, e, n) {
3977
+ function Dc(t, e, n) {
3978
3978
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
3979
3979
  }
3980
3980
  function YT({ hue: t, saturation: e, lightness: n, alpha: r }) {
@@ -3984,7 +3984,7 @@ function YT({ hue: t, saturation: e, lightness: n, alpha: r }) {
3984
3984
  i = o = s = n;
3985
3985
  else {
3986
3986
  const a = n < 0.5 ? n * (1 + e) : n + e - n * e, l = 2 * n - a;
3987
- i = Nc(l, a, t + 1 / 3), o = Nc(l, a, t), s = Nc(l, a, t - 1 / 3);
3987
+ i = Dc(l, a, t + 1 / 3), o = Dc(l, a, t), s = Dc(l, a, t - 1 / 3);
3988
3988
  }
3989
3989
  return {
3990
3990
  red: Math.round(i * 255),
@@ -3996,10 +3996,10 @@ function YT({ hue: t, saturation: e, lightness: n, alpha: r }) {
3996
3996
  function ya(t, e) {
3997
3997
  return (n) => n > 0 ? e : t;
3998
3998
  }
3999
- const Fc = (t, e, n) => {
3999
+ const Nc = (t, e, n) => {
4000
4000
  const r = t * t, i = n * (e * e - r) + r;
4001
4001
  return i < 0 ? 0 : Math.sqrt(i);
4002
- }, ZT = [Qu, _r, Mi], JT = (t) => ZT.find((e) => e.test(t));
4002
+ }, ZT = [qu, _r, Mi], JT = (t) => ZT.find((e) => e.test(t));
4003
4003
  function Qh(t) {
4004
4004
  const e = JT(t);
4005
4005
  if (eo(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
@@ -4012,10 +4012,10 @@ const em = (t, e) => {
4012
4012
  if (!n || !r)
4013
4013
  return ya(t, e);
4014
4014
  const i = { ...n };
4015
- return (o) => (i.red = Fc(n.red, r.red, o), i.green = Fc(n.green, r.green, o), i.blue = Fc(n.blue, r.blue, o), i.alpha = Ue(n.alpha, r.alpha, o), _r.transform(i));
4016
- }, nd = /* @__PURE__ */ new Set(["none", "hidden"]);
4015
+ return (o) => (i.red = Nc(n.red, r.red, o), i.green = Nc(n.green, r.green, o), i.blue = Nc(n.blue, r.blue, o), i.alpha = Ue(n.alpha, r.alpha, o), _r.transform(i));
4016
+ }, td = /* @__PURE__ */ new Set(["none", "hidden"]);
4017
4017
  function UT(t, e) {
4018
- return nd.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
4018
+ return td.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
4019
4019
  }
4020
4020
  function KT(t, e) {
4021
4021
  return (n) => Ue(t, e, n);
@@ -4052,7 +4052,7 @@ function QT(t, e) {
4052
4052
  }
4053
4053
  const ek = (t, e) => {
4054
4054
  const n = wr.createTransformer(e), r = Xo(t), i = Xo(e);
4055
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? nd.has(t) && !i.values.length || nd.has(e) && !r.values.length ? UT(t, e) : Hn(B0(QT(r, i), i.values), n) : (eo(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), ya(t, e));
4055
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? td.has(t) && !i.values.length || td.has(e) && !r.values.length ? UT(t, e) : Hn(B0(QT(r, i), i.values), n) : (eo(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), ya(t, e));
4056
4056
  };
4057
4057
  function L0(t, e, n) {
4058
4058
  return typeof t == "number" && typeof e == "number" && typeof n == "number" ? Ue(t, e, n) : Jf(t)(t, e);
@@ -4210,7 +4210,7 @@ class Uf extends R0 {
4210
4210
  let { done: E } = y;
4211
4211
  !b && c !== null && (E = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0);
4212
4212
  const A = this.holdTime === null && (this.state === "finished" || this.state === "running" && E);
4213
- return A && i !== void 0 && (y.value = Hl(l, this.options, i)), g && g(y.value), A && this.finish(), y;
4213
+ return A && i !== void 0 && (y.value = _l(l, this.options, i)), g && g(y.value), A && this.finish(), y;
4214
4214
  }
4215
4215
  get duration() {
4216
4216
  const { resolved: e } = this;
@@ -4308,9 +4308,9 @@ const Ca = /* @__PURE__ */ mk(() => {
4308
4308
  return !0;
4309
4309
  }, "linearEasing");
4310
4310
  function j0(t) {
4311
- return !!(typeof t == "function" && Ca() || !t || typeof t == "string" && (t in rd || Ca()) || Zf(t) || Array.isArray(t) && t.every(j0));
4311
+ return !!(typeof t == "function" && Ca() || !t || typeof t == "string" && (t in nd || Ca()) || Zf(t) || Array.isArray(t) && t.every(j0));
4312
4312
  }
4313
- const wo = ([t, e, n, r]) => `cubic-bezier(${t}, ${e}, ${n}, ${r})`, rd = {
4313
+ const wo = ([t, e, n, r]) => `cubic-bezier(${t}, ${e}, ${n}, ${r})`, nd = {
4314
4314
  linear: "linear",
4315
4315
  ease: "ease",
4316
4316
  easeIn: "ease-in",
@@ -4323,7 +4323,7 @@ const wo = ([t, e, n, r]) => `cubic-bezier(${t}, ${e}, ${n}, ${r})`, rd = {
4323
4323
  };
4324
4324
  function G0(t, e) {
4325
4325
  if (t)
4326
- return typeof t == "function" && Ca() ? pk(t, e) : Zf(t) ? wo(t) : Array.isArray(t) ? t.map((n) => G0(n, e) || rd.easeOut) : rd[t];
4326
+ return typeof t == "function" && Ca() ? pk(t, e) : Zf(t) ? wo(t) : Array.isArray(t) ? t.map((n) => G0(n, e) || nd.easeOut) : nd[t];
4327
4327
  }
4328
4328
  function gk(t, e, n, { delay: r = 0, duration: i = 300, repeat: o = 0, repeatType: s = "loop", ease: a = "easeInOut", times: l } = {}) {
4329
4329
  const c = { [e]: n };
@@ -4391,7 +4391,7 @@ class rm extends R0 {
4391
4391
  const d = gk(l.owner.current, c, e, { ...this.options, duration: i, times: o, ease: s });
4392
4392
  return d.startTime = u ?? this.calcStartTime(), this.pendingTimeline ? (nm(d, this.pendingTimeline), this.pendingTimeline = void 0) : d.onfinish = () => {
4393
4393
  const { onComplete: f } = this.options;
4394
- l.set(Hl(e, this.options, n)), f && f(), this.cancel(), this.resolveFinishedPromise();
4394
+ l.set(_l(e, this.options, n)), f && f(), this.cancel(), this.resolveFinishedPromise();
4395
4395
  }, {
4396
4396
  animation: d,
4397
4397
  duration: i,
@@ -4619,14 +4619,14 @@ const qf = (t, e, n, r = {}, i, o) => (s) => {
4619
4619
  }), u.duration && (u.duration = Tn(u.duration)), u.repeatDelay && (u.repeatDelay = Tn(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
4620
4620
  let d = !1;
4621
4621
  if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (d = !0)), d && !o && e.get() !== void 0) {
4622
- const f = Hl(u.keyframes, a);
4622
+ const f = _l(u.keyframes, a);
4623
4623
  if (f !== void 0)
4624
4624
  return He.update(() => {
4625
4625
  u.onUpdate(f), u.onComplete();
4626
4626
  }), new Sk([]);
4627
4627
  }
4628
4628
  return !o && rm.supports(u) ? new rm(u) : new Uf(u);
4629
- }, Ek = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), Ak = (t) => Uu(t) ? t[t.length - 1] || 0 : t;
4629
+ }, Ek = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), Ak = (t) => Ju(t) ? t[t.length - 1] || 0 : t;
4630
4630
  function Qf(t, e) {
4631
4631
  t.indexOf(e) === -1 && t.push(e);
4632
4632
  }
@@ -4722,7 +4722,7 @@ class kk {
4722
4722
  * @deprecated
4723
4723
  */
4724
4724
  onChange(e) {
4725
- return process.env.NODE_ENV !== "production" && Gl(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
4725
+ return process.env.NODE_ENV !== "production" && jl(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
4726
4726
  }
4727
4727
  on(e, n) {
4728
4728
  this.events[e] || (this.events[e] = new tp());
@@ -4861,7 +4861,7 @@ function Mk(t, e, n) {
4861
4861
  t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, Yo(n));
4862
4862
  }
4863
4863
  function Ok(t, e) {
4864
- const n = _l(t, e);
4864
+ const n = zl(t, e);
4865
4865
  let { transitionEnd: r = {}, transition: i = {}, ...o } = n || {};
4866
4866
  o = { ...o, ...r };
4867
4867
  for (const s in o) {
@@ -4877,7 +4877,7 @@ const At = (t) => !!(t && t.getVelocity);
4877
4877
  function Rk(t) {
4878
4878
  return !!(At(t) && t.add);
4879
4879
  }
4880
- function id(t, e) {
4880
+ function rd(t, e) {
4881
4881
  const n = t.getValue("willChange");
4882
4882
  if (Rk(n))
4883
4883
  return n.add(e);
@@ -4907,7 +4907,7 @@ function W0(t, e, { delay: n = 0, transitionOverride: r, type: i } = {}) {
4907
4907
  b !== null && (h.startTime = b, m = !0);
4908
4908
  }
4909
4909
  }
4910
- id(t, d), f.start(qf(d, f, p, t.shouldReduceMotion && pi.has(d) ? { type: !1 } : h, t, m));
4910
+ rd(t, d), f.start(qf(d, f, p, t.shouldReduceMotion && pi.has(d) ? { type: !1 } : h, t, m));
4911
4911
  const g = f.animation;
4912
4912
  g && c.push(g);
4913
4913
  }
@@ -4917,9 +4917,9 @@ function W0(t, e, { delay: n = 0, transitionOverride: r, type: i } = {}) {
4917
4917
  });
4918
4918
  }), c;
4919
4919
  }
4920
- function od(t, e, n = {}) {
4920
+ function id(t, e, n = {}) {
4921
4921
  var r;
4922
- const i = _l(t, e, n.type === "exit" ? (r = t.presenceContext) === null || r === void 0 ? void 0 : r.custom : void 0);
4922
+ const i = zl(t, e, n.type === "exit" ? (r = t.presenceContext) === null || r === void 0 ? void 0 : r.custom : void 0);
4923
4923
  let { transition: o = t.getDefaultTransition() || {} } = i || {};
4924
4924
  n.transitionOverride && (o = n.transitionOverride);
4925
4925
  const s = i ? () => Promise.all(W0(t, i, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
@@ -4935,7 +4935,7 @@ function od(t, e, n = {}) {
4935
4935
  function Nk(t, e, n = 0, r = 0, i = 1, o) {
4936
4936
  const s = [], a = (t.variantChildren.size - 1) * r, l = i === 1 ? (c = 0) => c * r : (c = 0) => a - c * r;
4937
4937
  return Array.from(t.variantChildren).sort(Fk).forEach((c, u) => {
4938
- c.notify("AnimationStart", e), s.push(od(c, e, {
4938
+ c.notify("AnimationStart", e), s.push(id(c, e, {
4939
4939
  ...o,
4940
4940
  delay: n + l(u)
4941
4941
  }).then(() => c.notify("AnimationComplete", e)));
@@ -4948,12 +4948,12 @@ function Vk(t, e, n = {}) {
4948
4948
  t.notify("AnimationStart", e);
4949
4949
  let r;
4950
4950
  if (Array.isArray(e)) {
4951
- const i = e.map((o) => od(t, o, n));
4951
+ const i = e.map((o) => id(t, o, n));
4952
4952
  r = Promise.all(i);
4953
4953
  } else if (typeof e == "string")
4954
- r = od(t, e, n);
4954
+ r = id(t, e, n);
4955
4955
  else {
4956
- const i = typeof e == "function" ? _l(t, e, n.custom) : e;
4956
+ const i = typeof e == "function" ? zl(t, e, n.custom) : e;
4957
4957
  r = Promise.all(W0(t, i, n));
4958
4958
  }
4959
4959
  return r.then(() => {
@@ -4983,7 +4983,7 @@ function zk(t) {
4983
4983
  let e = Gk(t), n = om(), r = !0;
4984
4984
  const i = (l) => (c, u) => {
4985
4985
  var d;
4986
- const f = _l(t, u, l === "exit" ? (d = t.presenceContext) === null || d === void 0 ? void 0 : d.custom : void 0);
4986
+ const f = zl(t, u, l === "exit" ? (d = t.presenceContext) === null || d === void 0 ? void 0 : d.custom : void 0);
4987
4987
  if (f) {
4988
4988
  const { transition: p, transitionEnd: h, ...m } = f;
4989
4989
  c = { ...c, ...m, ...h };
@@ -5003,7 +5003,7 @@ function zk(t) {
5003
5003
  if (E && r && t.manuallyAnimateOnMount && (E = !1), b.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
5004
5004
  !b.isActive && y === null || // If we didn't and don't have any defined prop for this animation type
5005
5005
  !x && !b.prevProp || // Or if the prop doesn't define an animation
5006
- zl(x) || typeof x == "boolean")
5006
+ Gl(x) || typeof x == "boolean")
5007
5007
  continue;
5008
5008
  const A = _k(b.prevProp, x);
5009
5009
  let T = A || // If we're making this variant active, we want to always make it active
@@ -5025,7 +5025,7 @@ function zk(t) {
5025
5025
  if (p.hasOwnProperty(B))
5026
5026
  continue;
5027
5027
  let P = !1;
5028
- Uu(Q) && Uu(re) ? P = !s0(Q, re) : P = Q !== re, P ? Q != null ? L(B) : f.add(B) : Q !== void 0 && f.has(B) ? L(B) : b.protectedKeys[B] = !0;
5028
+ Ju(Q) && Ju(re) ? P = !s0(Q, re) : P = Q !== re, P ? Q != null ? L(B) : f.add(B) : Q !== void 0 && f.has(B) ? L(B) : b.protectedKeys[B] = !0;
5029
5029
  }
5030
5030
  b.prevProp = x, b.prevResolvedValues = X, b.isActive && (p = { ...p, ...X }), r && t.blockInitialAnimation && (T = !1), T && (!(E && A) || R) && d.push(...G.map((B) => ({
5031
5031
  animation: B,
@@ -5105,7 +5105,7 @@ class Hk extends Ir {
5105
5105
  }
5106
5106
  updateAnimationControlsSubscription() {
5107
5107
  const { animate: e } = this.node.getProps();
5108
- zl(e) && (this.unmountControls = e.subscribe(this.node));
5108
+ Gl(e) && (this.unmountControls = e.subscribe(this.node));
5109
5109
  }
5110
5110
  /**
5111
5111
  * Subscribe any provided AnimationControls to the component's VisualElement
@@ -5151,7 +5151,7 @@ const Xk = {
5151
5151
  Feature: $k
5152
5152
  }
5153
5153
  }, X0 = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
5154
- function Wl(t, e = "page") {
5154
+ function Hl(t, e = "page") {
5155
5155
  return {
5156
5156
  point: {
5157
5157
  x: t[`${e}X`],
@@ -5159,7 +5159,7 @@ function Wl(t, e = "page") {
5159
5159
  }
5160
5160
  };
5161
5161
  }
5162
- const Yk = (t) => (e) => X0(e) && t(e, Wl(e));
5162
+ const Yk = (t) => (e) => X0(e) && t(e, Hl(e));
5163
5163
  function zn(t, e, n, r = { passive: !0 }) {
5164
5164
  return t.addEventListener(e, n, r), () => t.removeEventListener(e, n);
5165
5165
  }
@@ -5176,7 +5176,7 @@ class Y0 {
5176
5176
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
5177
5177
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
5178
5178
  return;
5179
- const d = Bc(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, p = Zk(d.offset, { x: 0, y: 0 }) >= 3;
5179
+ const d = Vc(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, p = Zk(d.offset, { x: 0, y: 0 }) >= 3;
5180
5180
  if (!f && !p)
5181
5181
  return;
5182
5182
  const { point: h } = d, { timestamp: m } = gt;
@@ -5184,21 +5184,21 @@ class Y0 {
5184
5184
  const { onStart: g, onMove: v } = this.handlers;
5185
5185
  f || (g && g(this.lastMoveEvent, d), this.startEvent = this.lastMoveEvent), v && v(this.lastMoveEvent, d);
5186
5186
  }, this.handlePointerMove = (d, f) => {
5187
- this.lastMoveEvent = d, this.lastMoveEventInfo = Vc(f, this.transformPagePoint), He.update(this.updatePoint, !0);
5187
+ this.lastMoveEvent = d, this.lastMoveEventInfo = Fc(f, this.transformPagePoint), He.update(this.updatePoint, !0);
5188
5188
  }, this.handlePointerUp = (d, f) => {
5189
5189
  this.end();
5190
5190
  const { onEnd: p, onSessionEnd: h, resumeAnimation: m } = this.handlers;
5191
5191
  if (this.dragSnapToOrigin && m && m(), !(this.lastMoveEvent && this.lastMoveEventInfo))
5192
5192
  return;
5193
- const g = Bc(d.type === "pointercancel" ? this.lastMoveEventInfo : Vc(f, this.transformPagePoint), this.history);
5193
+ const g = Vc(d.type === "pointercancel" ? this.lastMoveEventInfo : Fc(f, this.transformPagePoint), this.history);
5194
5194
  this.startEvent && p && p(d, g), h && h(d, g);
5195
5195
  }, !X0(e))
5196
5196
  return;
5197
5197
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = r, this.contextWindow = i || window;
5198
- const s = Wl(e), a = Vc(s, this.transformPagePoint), { point: l } = a, { timestamp: c } = gt;
5198
+ const s = Hl(e), a = Fc(s, this.transformPagePoint), { point: l } = a, { timestamp: c } = gt;
5199
5199
  this.history = [{ ...l, timestamp: c }];
5200
5200
  const { onSessionStart: u } = n;
5201
- u && u(e, Bc(a, this.history)), this.removeListeners = Hn(Wn(this.contextWindow, "pointermove", this.handlePointerMove), Wn(this.contextWindow, "pointerup", this.handlePointerUp), Wn(this.contextWindow, "pointercancel", this.handlePointerUp));
5201
+ u && u(e, Vc(a, this.history)), this.removeListeners = Hn(Wn(this.contextWindow, "pointermove", this.handlePointerMove), Wn(this.contextWindow, "pointerup", this.handlePointerUp), Wn(this.contextWindow, "pointercancel", this.handlePointerUp));
5202
5202
  }
5203
5203
  updateHandlers(e) {
5204
5204
  this.handlers = e;
@@ -5207,13 +5207,13 @@ class Y0 {
5207
5207
  this.removeListeners && this.removeListeners(), xr(this.updatePoint);
5208
5208
  }
5209
5209
  }
5210
- function Vc(t, e) {
5210
+ function Fc(t, e) {
5211
5211
  return e ? { point: e(t.point) } : t;
5212
5212
  }
5213
5213
  function am(t, e) {
5214
5214
  return { x: t.x - e.x, y: t.y - e.y };
5215
5215
  }
5216
- function Bc({ point: t }, e) {
5216
+ function Vc({ point: t }, e) {
5217
5217
  return {
5218
5218
  point: t,
5219
5219
  delta: am(t, Z0(e)),
@@ -5335,9 +5335,9 @@ function aM(t, e) {
5335
5335
  const n = {};
5336
5336
  return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
5337
5337
  }
5338
- const sd = 0.35;
5339
- function lM(t = sd) {
5340
- return t === !1 ? t = 0 : t === !0 && (t = sd), {
5338
+ const od = 0.35;
5339
+ function lM(t = od) {
5340
+ return t === !1 ? t = 0 : t === !0 && (t = od), {
5341
5341
  x: mm(t, "left", "right"),
5342
5342
  y: mm(t, "top", "bottom")
5343
5343
  };
@@ -5386,14 +5386,14 @@ function uM(t, e) {
5386
5386
  right: r.x
5387
5387
  };
5388
5388
  }
5389
- function Lc(t) {
5389
+ function Bc(t) {
5390
5390
  return t === void 0 || t === 1;
5391
5391
  }
5392
- function ad({ scale: t, scaleX: e, scaleY: n }) {
5393
- return !Lc(t) || !Lc(e) || !Lc(n);
5392
+ function sd({ scale: t, scaleX: e, scaleY: n }) {
5393
+ return !Bc(t) || !Bc(e) || !Bc(n);
5394
5394
  }
5395
5395
  function Dr(t) {
5396
- return ad(t) || tx(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
5396
+ return sd(t) || tx(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
5397
5397
  }
5398
5398
  function tx(t) {
5399
5399
  return ym(t.x) || ym(t.y);
@@ -5408,11 +5408,11 @@ function Sa(t, e, n) {
5408
5408
  function xm(t, e, n, r, i) {
5409
5409
  return i !== void 0 && (t = Sa(t, i, r)), Sa(t, n, r) + e;
5410
5410
  }
5411
- function ld(t, e = 0, n = 1, r, i) {
5411
+ function ad(t, e = 0, n = 1, r, i) {
5412
5412
  t.min = xm(t.min, e, n, r, i), t.max = xm(t.max, e, n, r, i);
5413
5413
  }
5414
5414
  function nx(t, { x: e, y: n }) {
5415
- ld(t.x, e.translate, e.scale, e.originPoint), ld(t.y, n.translate, n.scale, n.originPoint);
5415
+ ad(t.x, e.translate, e.scale, e.originPoint), ad(t.y, n.translate, n.scale, n.originPoint);
5416
5416
  }
5417
5417
  const Cm = 0.999999999999, wm = 1.0000000000001;
5418
5418
  function dM(t, e, n, r = !1) {
@@ -5436,7 +5436,7 @@ function Ri(t, e) {
5436
5436
  }
5437
5437
  function Sm(t, e, n, r, i = 0.5) {
5438
5438
  const o = Ue(t.min, t.max, i);
5439
- ld(t, e, n, o, r);
5439
+ ad(t, e, n, o, r);
5440
5440
  }
5441
5441
  function Di(t, e) {
5442
5442
  Sm(t.x, e.x, e.scaleX, e.scale, e.originX), Sm(t.y, e.y, e.scaleY, e.scale, e.originY);
@@ -5459,7 +5459,7 @@ class hM {
5459
5459
  return;
5460
5460
  const i = (u) => {
5461
5461
  const { dragSnapToOrigin: d } = this.getProps();
5462
- d ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Wl(u, "page").point);
5462
+ d ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Hl(u, "page").point);
5463
5463
  }, o = (u, d) => {
5464
5464
  const { drag: f, dragPropagation: p, onDragStart: h } = this.getProps();
5465
5465
  if (f && !p && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = U0(f), !this.openGlobalLock))
@@ -5474,7 +5474,7 @@ class hM {
5474
5474
  }
5475
5475
  }
5476
5476
  this.originPoint[g] = v;
5477
- }), h && He.postRender(() => h(u, d)), id(this.visualElement, "transform");
5477
+ }), h && He.postRender(() => h(u, d)), rd(this.visualElement, "transform");
5478
5478
  const { animationState: m } = this.visualElement;
5479
5479
  m && m.setActive("whileDrag", !0);
5480
5480
  }, s = (u, d) => {
@@ -5574,7 +5574,7 @@ class hM {
5574
5574
  }
5575
5575
  startAxisValueAnimation(e, n) {
5576
5576
  const r = this.getAxisMotionValue(e);
5577
- return id(this.visualElement, e), r.start(qf(e, r, 0, n, this.visualElement, !1));
5577
+ return rd(this.visualElement, e), r.start(qf(e, r, 0, n, this.visualElement, !1));
5578
5578
  }
5579
5579
  stopAnimation() {
5580
5580
  qt((e) => this.getAxisMotionValue(e).stop());
@@ -5662,7 +5662,7 @@ class hM {
5662
5662
  };
5663
5663
  }
5664
5664
  getProps() {
5665
- const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: r = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: s = sd, dragMomentum: a = !0 } = e;
5665
+ const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: r = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: s = od, dragMomentum: a = !0 } = e;
5666
5666
  return {
5667
5667
  ...e,
5668
5668
  drag: n,
@@ -5727,9 +5727,9 @@ class vM extends Ir {
5727
5727
  this.removePointerDownListener(), this.session && this.session.end();
5728
5728
  }
5729
5729
  }
5730
- const $l = qe(null);
5730
+ const Wl = qe(null);
5731
5731
  function bM() {
5732
- const t = Me($l);
5732
+ const t = Me(Wl);
5733
5733
  if (t === null)
5734
5734
  return [!0, null];
5735
5735
  const { isPresent: e, onExitComplete: n, register: r } = t, i = Fn();
@@ -6013,9 +6013,9 @@ const Nr = {
6013
6013
  totalNodes: 0,
6014
6014
  resolvedTargetDeltas: 0,
6015
6015
  recalculatedProjection: 0
6016
- }, So = typeof window < "u" && window.MotionDebug !== void 0, jc = ["", "X", "Y", "Z"], LM = { visibility: "hidden" }, jm = 1e3;
6016
+ }, So = typeof window < "u" && window.MotionDebug !== void 0, Lc = ["", "X", "Y", "Z"], LM = { visibility: "hidden" }, jm = 1e3;
6017
6017
  let jM = 0;
6018
- function Gc(t, e, n, r) {
6018
+ function jc(t, e, n, r) {
6019
6019
  const { latestValues: i } = e;
6020
6020
  i[t] && (n[t] = i[t], e.setStaticValue(t, 0), r && (r[t] = 0));
6021
6021
  }
@@ -6140,7 +6140,7 @@ function fx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
6140
6140
  }
6141
6141
  this.isUpdating || this.nodes.forEach($M), this.isUpdating = !1, this.nodes.forEach(XM), this.nodes.forEach(GM), this.nodes.forEach(zM), this.clearAllSnapshots();
6142
6142
  const a = Mn.now();
6143
- gt.delta = Cr(0, 1e3 / 60, a - gt.timestamp), gt.timestamp = a, gt.isProcessing = !0, Pc.update.process(gt), Pc.preRender.process(gt), Pc.render.process(gt), gt.isProcessing = !1;
6143
+ gt.delta = Cr(0, 1e3 / 60, a - gt.timestamp), gt.timestamp = a, gt.isProcessing = !0, Oc.update.process(gt), Oc.preRender.process(gt), Oc.render.process(gt), gt.isProcessing = !1;
6144
6144
  }
6145
6145
  didUpdate() {
6146
6146
  this.updateScheduled || (this.updateScheduled = !0, ip.read(this.scheduleUpdate));
@@ -6245,7 +6245,7 @@ function fx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
6245
6245
  const c = this.path[l];
6246
6246
  if (!c.instance || !Dr(c.latestValues))
6247
6247
  continue;
6248
- ad(c.latestValues) && c.updateSnapshot();
6248
+ sd(c.latestValues) && c.updateSnapshot();
6249
6249
  const u = rt(), d = c.measurePageBox();
6250
6250
  Jt(u, d), Dm(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
6251
6251
  }
@@ -6291,7 +6291,7 @@ function fx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
6291
6291
  }
6292
6292
  }
6293
6293
  getClosestProjectingParent() {
6294
- if (!(!this.parent || ad(this.parent.latestValues) || tx(this.parent.latestValues)))
6294
+ if (!(!this.parent || sd(this.parent.latestValues) || tx(this.parent.latestValues)))
6295
6295
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
6296
6296
  }
6297
6297
  isProjecting() {
@@ -6423,9 +6423,9 @@ function fx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
6423
6423
  if ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (a = !0), !a)
6424
6424
  return;
6425
6425
  const c = {};
6426
- l.z && Gc("z", s, c, this.animationValues);
6427
- for (let u = 0; u < jc.length; u++)
6428
- Gc(`rotate${jc[u]}`, s, c, this.animationValues), Gc(`skew${jc[u]}`, s, c, this.animationValues);
6426
+ l.z && jc("z", s, c, this.animationValues);
6427
+ for (let u = 0; u < Lc.length; u++)
6428
+ jc(`rotate${Lc[u]}`, s, c, this.animationValues), jc(`skew${Lc[u]}`, s, c, this.animationValues);
6429
6429
  s.render();
6430
6430
  for (const u in c)
6431
6431
  s.setStaticValue(u, c[u]), this.animationValues && (this.animationValues[u] = c[u]);
@@ -6593,7 +6593,7 @@ const nO = fx({
6593
6593
  y: document.documentElement.scrollTop || document.body.scrollTop
6594
6594
  }),
6595
6595
  checkIsScrollRoot: () => !0
6596
- }), zc = {
6596
+ }), Gc = {
6597
6597
  current: void 0
6598
6598
  }, hx = fx({
6599
6599
  measureScroll: (t) => ({
@@ -6601,11 +6601,11 @@ const nO = fx({
6601
6601
  y: t.scrollTop
6602
6602
  }),
6603
6603
  defaultParent: () => {
6604
- if (!zc.current) {
6604
+ if (!Gc.current) {
6605
6605
  const t = new nO({});
6606
- t.mount(window), t.setOptions({ layoutScroll: !0 }), zc.current = t;
6606
+ t.mount(window), t.setOptions({ layoutScroll: !0 }), Gc.current = t;
6607
6607
  }
6608
- return zc.current;
6608
+ return Gc.current;
6609
6609
  },
6610
6610
  resetTransform: (t, e) => {
6611
6611
  t.style.transform = e !== void 0 ? e : "none";
@@ -6664,11 +6664,11 @@ class oO extends Ir {
6664
6664
  }
6665
6665
  }
6666
6666
  const mx = (t, e) => e ? t === e ? !0 : mx(t, e.parentElement) : !1;
6667
- function _c(t, e) {
6667
+ function zc(t, e) {
6668
6668
  if (!e)
6669
6669
  return;
6670
6670
  const n = new PointerEvent("pointer" + t);
6671
- e(n, Wl(n));
6671
+ e(n, Hl(n));
6672
6672
  }
6673
6673
  class sO extends Ir {
6674
6674
  constructor() {
@@ -6692,16 +6692,16 @@ class sO extends Ir {
6692
6692
  if (o.key !== "Enter" || this.isPressing)
6693
6693
  return;
6694
6694
  const s = (a) => {
6695
- a.key !== "Enter" || !this.checkPressEnd() || _c("up", (l, c) => {
6695
+ a.key !== "Enter" || !this.checkPressEnd() || zc("up", (l, c) => {
6696
6696
  const { onTap: u } = this.node.getProps();
6697
6697
  u && He.postRender(() => u(l, c));
6698
6698
  });
6699
6699
  };
6700
- this.removeEndListeners(), this.removeEndListeners = zn(this.node.current, "keyup", s), _c("down", (a, l) => {
6700
+ this.removeEndListeners(), this.removeEndListeners = zn(this.node.current, "keyup", s), zc("down", (a, l) => {
6701
6701
  this.startPress(a, l);
6702
6702
  });
6703
6703
  }, n = zn(this.node.current, "keydown", e), r = () => {
6704
- this.isPressing && _c("cancel", (o, s) => this.cancelPress(o, s));
6704
+ this.isPressing && zc("cancel", (o, s) => this.cancelPress(o, s));
6705
6705
  }, i = zn(this.node.current, "blur", r);
6706
6706
  this.removeAccessibleListeners = Hn(n, i);
6707
6707
  };
@@ -6730,22 +6730,22 @@ class sO extends Ir {
6730
6730
  this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
6731
6731
  }
6732
6732
  }
6733
- const cd = /* @__PURE__ */ new WeakMap(), Hc = /* @__PURE__ */ new WeakMap(), aO = (t) => {
6734
- const e = cd.get(t.target);
6733
+ const ld = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakMap(), aO = (t) => {
6734
+ const e = ld.get(t.target);
6735
6735
  e && e(t);
6736
6736
  }, lO = (t) => {
6737
6737
  t.forEach(aO);
6738
6738
  };
6739
6739
  function cO({ root: t, ...e }) {
6740
6740
  const n = t || document;
6741
- Hc.has(n) || Hc.set(n, {});
6742
- const r = Hc.get(n), i = JSON.stringify(e);
6741
+ _c.has(n) || _c.set(n, {});
6742
+ const r = _c.get(n), i = JSON.stringify(e);
6743
6743
  return r[i] || (r[i] = new IntersectionObserver(lO, { root: t, ...e })), r[i];
6744
6744
  }
6745
6745
  function uO(t, e, n) {
6746
6746
  const r = cO(e);
6747
- return cd.set(t, n), r.observe(t), () => {
6748
- cd.delete(t), r.unobserve(t);
6747
+ return ld.set(t, n), r.observe(t), () => {
6748
+ ld.delete(t), r.unobserve(t);
6749
6749
  };
6750
6750
  }
6751
6751
  const dO = {
@@ -6809,10 +6809,10 @@ const hO = {
6809
6809
  transformPagePoint: (t) => t,
6810
6810
  isStatic: !1,
6811
6811
  reducedMotion: "never"
6812
- }), Xl = qe({}), sp = typeof window < "u", gx = sp ? Qi : Pe, vx = qe({ strict: !1 });
6812
+ }), $l = qe({}), sp = typeof window < "u", gx = sp ? Qi : Pe, vx = qe({ strict: !1 });
6813
6813
  function gO(t, e, n, r, i) {
6814
6814
  var o, s;
6815
- const { visualElement: a } = Me(Xl), l = Me(vx), c = Me($l), u = Me(op).reducedMotion, d = de();
6815
+ const { visualElement: a } = Me($l), l = Me(vx), c = Me(Wl), u = Me(op).reducedMotion, d = de();
6816
6816
  r = r || l.renderer, !d.current && r && (d.current = r(t, {
6817
6817
  visualState: e,
6818
6818
  parent: a,
@@ -6874,14 +6874,14 @@ function bO(t, e, n) {
6874
6874
  [e]
6875
6875
  );
6876
6876
  }
6877
- function Yl(t) {
6878
- return zl(t.animate) || Bf.some((e) => Wo(t[e]));
6877
+ function Xl(t) {
6878
+ return Gl(t.animate) || Bf.some((e) => Wo(t[e]));
6879
6879
  }
6880
6880
  function yx(t) {
6881
- return !!(Yl(t) || t.variants);
6881
+ return !!(Xl(t) || t.variants);
6882
6882
  }
6883
6883
  function yO(t, e) {
6884
- if (Yl(t)) {
6884
+ if (Xl(t)) {
6885
6885
  const { initial: n, animate: r } = t;
6886
6886
  return {
6887
6887
  initial: n === !1 || Wo(n) ? n : void 0,
@@ -6891,7 +6891,7 @@ function yO(t, e) {
6891
6891
  return t.inherit !== !1 ? e : {};
6892
6892
  }
6893
6893
  function xO(t) {
6894
- const { initial: e, animate: n } = yO(t, Me(Xl));
6894
+ const { initial: e, animate: n } = yO(t, Me($l));
6895
6895
  return we(() => ({ initial: e, animate: n }), [Zm(e), Zm(n)]);
6896
6896
  }
6897
6897
  function Zm(t) {
@@ -6943,7 +6943,7 @@ function SO({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
6943
6943
  const h = AO(u);
6944
6944
  c = h.MeasureLayout, f.visualElement = gO(i, p, u, e, h.ProjectionNode);
6945
6945
  }
6946
- return C.jsxs(Xl.Provider, { value: f, children: [c && f.visualElement ? C.jsx(c, { visualElement: f.visualElement, ...u }) : null, n(i, a, bO(p, f.visualElement, l), p, d, f.visualElement)] });
6946
+ return C.jsxs($l.Provider, { value: f, children: [c && f.visualElement ? C.jsx(c, { visualElement: f.visualElement, ...u }) : null, n(i, a, bO(p, f.visualElement, l), p, d, f.visualElement)] });
6947
6947
  }
6948
6948
  const s = fi(o);
6949
6949
  return s[wO] = i, s;
@@ -7082,7 +7082,7 @@ function kO({ scrapeMotionValuesFromProps: t, createRenderState: e, onMount: n }
7082
7082
  return n && (s.mount = (a) => n(r, a, s)), s;
7083
7083
  }
7084
7084
  const Ex = (t) => (e, n) => {
7085
- const r = Me(Xl), i = Me($l), o = () => kO(t, e, r, i);
7085
+ const r = Me($l), i = Me(Wl), o = () => kO(t, e, r, i);
7086
7086
  return n ? o() : cp(o);
7087
7087
  };
7088
7088
  function MO(t, e, n, r) {
@@ -7090,12 +7090,12 @@ function MO(t, e, n, r) {
7090
7090
  for (const f in o)
7091
7091
  i[f] = na(o[f]);
7092
7092
  let { initial: s, animate: a } = t;
7093
- const l = Yl(t), c = yx(t);
7093
+ const l = Xl(t), c = yx(t);
7094
7094
  e && c && !l && t.inherit !== !1 && (s === void 0 && (s = e.initial), a === void 0 && (a = e.animate));
7095
7095
  let u = n ? n.initial === !1 : !1;
7096
7096
  u = u || s === !1;
7097
7097
  const d = u ? a : s;
7098
- if (d && typeof d != "boolean" && !zl(d)) {
7098
+ if (d && typeof d != "boolean" && !Gl(d)) {
7099
7099
  const f = Array.isArray(d) ? d : [d];
7100
7100
  for (let p = 0; p < f.length; p++) {
7101
7101
  const h = Ff(t, f[p]);
@@ -7341,20 +7341,20 @@ function YO(t, e) {
7341
7341
  return SO(s);
7342
7342
  };
7343
7343
  }
7344
- const ud = { current: null }, Ox = { current: !1 };
7344
+ const cd = { current: null }, Ox = { current: !1 };
7345
7345
  function ZO() {
7346
7346
  if (Ox.current = !0, !!sp)
7347
7347
  if (window.matchMedia) {
7348
- const t = window.matchMedia("(prefers-reduced-motion)"), e = () => ud.current = t.matches;
7348
+ const t = window.matchMedia("(prefers-reduced-motion)"), e = () => cd.current = t.matches;
7349
7349
  t.addListener(e), e();
7350
7350
  } else
7351
- ud.current = !1;
7351
+ cd.current = !1;
7352
7352
  }
7353
7353
  function JO(t, e, n) {
7354
7354
  for (const r in e) {
7355
7355
  const i = e[r], o = n[r];
7356
7356
  if (At(i))
7357
- t.addValue(r, i), process.env.NODE_ENV === "development" && Gl(i.version === "11.11.17", `Attempting to mix Motion versions ${i.version} with 11.11.17 may not work as expected.`);
7357
+ t.addValue(r, i), process.env.NODE_ENV === "development" && jl(i.version === "11.11.17", `Attempting to mix Motion versions ${i.version} with 11.11.17 may not work as expected.`);
7358
7358
  else if (At(o))
7359
7359
  t.addValue(r, Yo(i, { owner: t }));
7360
7360
  else if (o !== i)
@@ -7398,7 +7398,7 @@ class qO {
7398
7398
  this.renderScheduledAt < f && (this.renderScheduledAt = f, He.render(this.render, !1, !0));
7399
7399
  };
7400
7400
  const { latestValues: l, renderState: c } = s;
7401
- this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = r, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Yl(n), this.isVariantNode = yx(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
7401
+ this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = r, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Xl(n), this.isVariantNode = yx(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
7402
7402
  const { willChange: u, ...d } = this.scrapeMotionValuesFromProps(n, {}, this);
7403
7403
  for (const f in d) {
7404
7404
  const p = d[f];
@@ -7406,7 +7406,7 @@ class qO {
7406
7406
  }
7407
7407
  }
7408
7408
  mount(e) {
7409
- this.current = e, Km.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), Ox.current || ZO(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : ud.current, process.env.NODE_ENV !== "production" && Gl(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
7409
+ this.current = e, Km.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), Ox.current || ZO(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : cd.current, process.env.NODE_ENV !== "production" && jl(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
7410
7410
  }
7411
7411
  unmount() {
7412
7412
  Km.delete(this.current), this.projection && this.projection.unmount(), xr(this.notifyUpdate), xr(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
@@ -7653,7 +7653,7 @@ const nP = (t, e) => ap(t) ? new tP(e) : new eP(e, {
7653
7653
  ...hO,
7654
7654
  ...rO,
7655
7655
  ...mO
7656
- }, nP), dd = /* @__PURE__ */ BA(rP);
7656
+ }, nP), ud = /* @__PURE__ */ BA(rP);
7657
7657
  class iP extends I.Component {
7658
7658
  getSnapshotBeforeUpdate(e) {
7659
7659
  const n = this.props.childRef.current;
@@ -7725,7 +7725,7 @@ const sP = ({ children: t, initial: e, isPresent: n, onExitComplete: r, custom:
7725
7725
  a.forEach((d, f) => a.set(f, !1));
7726
7726
  }, [n]), I.useEffect(() => {
7727
7727
  !n && !a.size && r && r();
7728
- }, [n]), s === "popLayout" && (t = C.jsx(oP, { isPresent: n, children: t })), C.jsx($l.Provider, { value: u, children: t });
7728
+ }, [n]), s === "popLayout" && (t = C.jsx(oP, { isPresent: n, children: t })), C.jsx(Wl.Provider, { value: u, children: t });
7729
7729
  };
7730
7730
  function aP() {
7731
7731
  return /* @__PURE__ */ new Map();
@@ -7802,7 +7802,7 @@ const Rx = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
7802
7802
  classes: s
7803
7803
  }) => {
7804
7804
  const l = /* @__PURE__ */ C.jsx(Rx, { children: n && /* @__PURE__ */ C.jsx(
7805
- dd.div,
7805
+ ud.div,
7806
7806
  {
7807
7807
  tabIndex: -1,
7808
7808
  onClick: o,
@@ -7815,7 +7815,7 @@ const Rx = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
7815
7815
  },
7816
7816
  ...lP,
7817
7817
  children: /* @__PURE__ */ C.jsxs(
7818
- dd.div,
7818
+ ud.div,
7819
7819
  {
7820
7820
  onClick: (c) => c.stopPropagation(),
7821
7821
  className: O(
@@ -7903,7 +7903,7 @@ const Rx = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
7903
7903
  ]
7904
7904
  }
7905
7905
  ) }) });
7906
- }, fP = gf("desk-body-regular-m mt-2", {
7906
+ }, fP = mf("desk-body-regular-m mt-2", {
7907
7907
  variants: {
7908
7908
  intent: {
7909
7909
  simple: "text-color-tetriary",
@@ -7947,7 +7947,7 @@ const Rx = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
7947
7947
  t
7948
7948
  ]
7949
7949
  }
7950
- ), pP = gf("relative flex flex-col group", {
7950
+ ), pP = mf("relative flex flex-col group", {
7951
7951
  variants: {
7952
7952
  intent: {
7953
7953
  clear: "!w-full min-w-[140px]",
@@ -8194,7 +8194,7 @@ var Lx = mP(function(t, e) {
8194
8194
  function wP(t, e, n) {
8195
8195
  return Math.min(Math.max(t, e), n);
8196
8196
  }
8197
- function Wc(t) {
8197
+ function Hc(t) {
8198
8198
  return Math.max(t.selectionStart, t.selectionEnd);
8199
8199
  }
8200
8200
  function SP() {
@@ -8350,7 +8350,7 @@ function _x(t) {
8350
8350
  S === void 0 && (S = "");
8351
8351
  var k = oe.input, M = oe.source, q = oe.event, W = oe.numAsString, j;
8352
8352
  if (k) {
8353
- var N = oe.inputValue || k.value, U = Wc(k);
8353
+ var N = oe.inputValue || k.value, U = Hc(k);
8354
8354
  k.value = S, j = V(N, S, U), j !== void 0 && _(k, j, S);
8355
8355
  }
8356
8356
  S !== T && J(P(S, W), { event: q, source: M });
@@ -8362,7 +8362,7 @@ function _x(t) {
8362
8362
  source: Zo.props
8363
8363
  });
8364
8364
  }, [T, R]);
8365
- var se = B.current ? Wc(B.current) : void 0, ne = typeof window < "u" ? Qi : Pe;
8365
+ var se = B.current ? Hc(B.current) : void 0, ne = typeof window < "u" ? Qi : Pe;
8366
8366
  ne(function() {
8367
8367
  var oe = B.current;
8368
8368
  if (T !== z.current.formattedValue && oe) {
@@ -8373,7 +8373,7 @@ function _x(t) {
8373
8373
  var ie = function(oe, S, k) {
8374
8374
  var M = S.target, q = X.current ? CP(X.current, M.selectionEnd) : Lx(T, oe), W = Object.assign(Object.assign({}, q), { lastValue: T }), j = a(oe, W), N = re(j);
8375
8375
  if (j = a(N, void 0), d && !d(P(N, j))) {
8376
- var U = S.target, ye = Wc(U), Ie = V(oe, T, ye);
8376
+ var U = S.target, ye = Hc(U), Ie = V(oe, T, ye);
8377
8377
  return U.value = T, _(U, Ie, T), !1;
8378
8378
  }
8379
8379
  return K({
@@ -8456,10 +8456,10 @@ function ng(t, e) {
8456
8456
  var s = e.allowNegative, a = e.thousandsGroupStyle;
8457
8457
  if (a === void 0 && (a = "thousand"), t === "" || t === "-")
8458
8458
  return t;
8459
- var l = Zl(e), c = l.thousandSeparator, u = l.decimalSeparator, d = n !== 0 && t.indexOf(".") !== -1 || n && r, f = mp(t, s), p = f.beforeDecimal, h = f.afterDecimal, m = f.addNegation;
8459
+ var l = Yl(e), c = l.thousandSeparator, u = l.decimalSeparator, d = n !== 0 && t.indexOf(".") !== -1 || n && r, f = mp(t, s), p = f.beforeDecimal, h = f.afterDecimal, m = f.addNegation;
8460
8460
  return n !== void 0 && (h = Vx(h, n, !!r)), c && (p = bP(p, c, a)), i && (p = i + p), o && (h = h + o), m && (p = "-" + p), t = p + (d && u || "") + h, t;
8461
8461
  }
8462
- function Zl(t) {
8462
+ function Yl(t) {
8463
8463
  var e = t.decimalSeparator;
8464
8464
  e === void 0 && (e = ".");
8465
8465
  var n = t.thousandSeparator, r = t.allowedDecimalSeparators;
@@ -8487,7 +8487,7 @@ function RP(t, e, n) {
8487
8487
  o === void 0 && (o = "");
8488
8488
  var s = n.suffix;
8489
8489
  s === void 0 && (s = "");
8490
- var a = n.decimalScale, l = e.from, c = e.to, u = c.start, d = c.end, f = Zl(n), p = f.allowedDecimalSeparators, h = f.decimalSeparator, m = t[d] === h;
8490
+ var a = n.decimalScale, l = e.from, c = e.to, u = c.start, d = c.end, f = Yl(n), p = f.allowedDecimalSeparators, h = f.decimalSeparator, m = t[d] === h;
8491
8491
  if (ii(t) && (t === o || t === s) && e.lastValue === "")
8492
8492
  return t;
8493
8493
  if (d - u === 1 && p.indexOf(t[u]) !== -1) {
@@ -8527,7 +8527,7 @@ function DP(t, e) {
8527
8527
  return i.fill(!1, s - r.length + 1, s + 1), i;
8528
8528
  }
8529
8529
  function NP(t) {
8530
- var e = Zl(t), n = e.thousandSeparator, r = e.decimalSeparator, i = t.prefix;
8530
+ var e = Yl(t), n = e.thousandSeparator, r = e.decimalSeparator, i = t.prefix;
8531
8531
  i === void 0 && (i = "");
8532
8532
  var o = t.allowNegative;
8533
8533
  if (o === void 0 && (o = !0), n === r)
@@ -8550,7 +8550,7 @@ function FP(t) {
8550
8550
  o === void 0 && (o = Gn);
8551
8551
  var s = t.thousandSeparator, a = t.decimalScale, l = t.fixedDecimalScale, c = t.prefix;
8552
8552
  c === void 0 && (c = "");
8553
- var u = t.defaultValue, d = t.value, f = t.valueIsNumericString, p = t.onValueChange, h = hp(t, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), m = Zl(t), g = m.decimalSeparator, v = m.allowedDecimalSeparators, b = function(F) {
8553
+ var u = t.defaultValue, d = t.value, f = t.valueIsNumericString, p = t.onValueChange, h = hp(t, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), m = Yl(t), g = m.decimalSeparator, v = m.allowedDecimalSeparators, b = function(F) {
8554
8554
  return ng(F, t);
8555
8555
  }, x = function(F, B) {
8556
8556
  return RP(F, B, t);
@@ -8807,7 +8807,7 @@ const o$ = ({
8807
8807
  }
8808
8808
  );
8809
8809
  }, s$ = () => /* @__PURE__ */ C.jsx("div", { className: "", children: "Form example" });
8810
- function Jl(t) {
8810
+ function Zl(t) {
8811
8811
  const e = I.useRef({ value: t, previous: t });
8812
8812
  return I.useMemo(() => (e.current.value !== t && (e.current.previous = e.current.value, e.current.value = t), e.current.previous), [t]);
8813
8813
  }
@@ -8893,7 +8893,7 @@ var Xx = "CheckboxIndicator", Yx = I.forwardRef(
8893
8893
  );
8894
8894
  Yx.displayName = Xx;
8895
8895
  var $P = (t) => {
8896
- const { control: e, checked: n, bubbles: r = !0, defaultChecked: i, ...o } = t, s = I.useRef(null), a = Jl(n), l = kl(e);
8896
+ const { control: e, checked: n, bubbles: r = !0, defaultChecked: i, ...o } = t, s = I.useRef(null), a = Zl(n), l = kl(e);
8897
8897
  I.useEffect(() => {
8898
8898
  const u = s.current, d = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(d, "checked").set;
8899
8899
  if (a !== n && p) {
@@ -9073,7 +9073,7 @@ var Kx = "RadioIndicator", qx = I.forwardRef(
9073
9073
  );
9074
9074
  qx.displayName = Kx;
9075
9075
  var KP = (t) => {
9076
- const { control: e, checked: n, bubbles: r = !0, ...i } = t, o = I.useRef(null), s = Jl(n), a = kl(e);
9076
+ const { control: e, checked: n, bubbles: r = !0, ...i } = t, o = I.useRef(null), s = Zl(n), a = kl(e);
9077
9077
  return I.useEffect(() => {
9078
9078
  const l = o.current, c = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(c, "checked").set;
9079
9079
  if (s !== n && d) {
@@ -9104,9 +9104,9 @@ function Qx(t) {
9104
9104
  return t ? "checked" : "unchecked";
9105
9105
  }
9106
9106
  var qP = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], bp = "RadioGroup", [QP, c$] = Un(bp, [
9107
- jl,
9107
+ Ll,
9108
9108
  Jx
9109
- ]), e1 = jl(), t1 = Jx(), [eR, tR] = QP(bp), n1 = I.forwardRef(
9109
+ ]), e1 = Ll(), t1 = Jx(), [eR, tR] = QP(bp), n1 = I.forwardRef(
9110
9110
  (t, e) => {
9111
9111
  const {
9112
9112
  __scopeRadioGroup: n,
@@ -9211,7 +9211,7 @@ var nR = "RadioGroupIndicator", o1 = I.forwardRef(
9211
9211
  );
9212
9212
  o1.displayName = nR;
9213
9213
  var rR = n1, iR = i1, oR = o1;
9214
- const sR = gf("flex gap-2", {
9214
+ const sR = mf("flex gap-2", {
9215
9215
  variants: {
9216
9216
  orientation: {
9217
9217
  horizontal: "",
@@ -9383,7 +9383,7 @@ var a1 = "SwitchThumb", l1 = I.forwardRef(
9383
9383
  );
9384
9384
  l1.displayName = a1;
9385
9385
  var uR = (t) => {
9386
- const { control: e, checked: n, bubbles: r = !0, ...i } = t, o = I.useRef(null), s = Jl(n), a = kl(e);
9386
+ const { control: e, checked: n, bubbles: r = !0, ...i } = t, o = I.useRef(null), s = Zl(n), a = kl(e);
9387
9387
  return I.useEffect(() => {
9388
9388
  const l = o.current, c = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(c, "checked").set;
9389
9389
  if (s !== n && d) {
@@ -9516,9 +9516,9 @@ var d1 = ["PageUp", "PageDown"], f1 = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
9516
9516
  "from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
9517
9517
  "from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
9518
9518
  "from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
9519
- }, io = "Slider", [fd, bR, yR] = bf(io), [h1, p$] = Un(io, [
9519
+ }, io = "Slider", [dd, bR, yR] = vf(io), [h1, p$] = Un(io, [
9520
9520
  yR
9521
- ]), [xR, Ul] = h1(io), xp = I.forwardRef(
9521
+ ]), [xR, Jl] = h1(io), xp = I.forwardRef(
9522
9522
  (t, e) => {
9523
9523
  const {
9524
9524
  name: n,
@@ -9581,7 +9581,7 @@ var d1 = ["PageUp", "PageDown"], f1 = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
9581
9581
  values: w,
9582
9582
  orientation: s,
9583
9583
  form: h,
9584
- children: /* @__PURE__ */ C.jsx(fd.Provider, { scope: t.__scopeSlider, children: /* @__PURE__ */ C.jsx(fd.Slot, { scope: t.__scopeSlider, children: /* @__PURE__ */ C.jsx(
9584
+ children: /* @__PURE__ */ C.jsx(dd.Provider, { scope: t.__scopeSlider, children: /* @__PURE__ */ C.jsx(dd.Slot, { scope: t.__scopeSlider, children: /* @__PURE__ */ C.jsx(
9585
9585
  x,
9586
9586
  {
9587
9587
  "aria-disabled": a,
@@ -9738,7 +9738,7 @@ var [m1, g1] = h1(io, {
9738
9738
  onEndKeyDown: a,
9739
9739
  onStepKeyDown: l,
9740
9740
  ...c
9741
- } = t, u = Ul(io, n);
9741
+ } = t, u = Jl(io, n);
9742
9742
  return /* @__PURE__ */ C.jsx(
9743
9743
  Ze.span,
9744
9744
  {
@@ -9763,7 +9763,7 @@ var [m1, g1] = h1(io, {
9763
9763
  }
9764
9764
  ), b1 = "SliderTrack", y1 = I.forwardRef(
9765
9765
  (t, e) => {
9766
- const { __scopeSlider: n, ...r } = t, i = Ul(b1, n);
9766
+ const { __scopeSlider: n, ...r } = t, i = Jl(b1, n);
9767
9767
  return /* @__PURE__ */ C.jsx(
9768
9768
  Ze.span,
9769
9769
  {
@@ -9776,9 +9776,9 @@ var [m1, g1] = h1(io, {
9776
9776
  }
9777
9777
  );
9778
9778
  y1.displayName = b1;
9779
- var pd = "SliderRange", x1 = I.forwardRef(
9779
+ var fd = "SliderRange", x1 = I.forwardRef(
9780
9780
  (t, e) => {
9781
- const { __scopeSlider: n, ...r } = t, i = Ul(pd, n), o = g1(pd, n), s = I.useRef(null), a = kt(e, s), l = i.values.length, c = i.values.map(
9781
+ const { __scopeSlider: n, ...r } = t, i = Jl(fd, n), o = g1(fd, n), s = I.useRef(null), a = kt(e, s), l = i.values.length, c = i.values.map(
9782
9782
  (f) => w1(f, i.min, i.max)
9783
9783
  ), u = l > 1 ? Math.min(...c) : 0, d = 100 - Math.max(...c);
9784
9784
  return /* @__PURE__ */ C.jsx(
@@ -9797,8 +9797,8 @@ var pd = "SliderRange", x1 = I.forwardRef(
9797
9797
  );
9798
9798
  }
9799
9799
  );
9800
- x1.displayName = pd;
9801
- var hd = "SliderThumb", C1 = I.forwardRef(
9800
+ x1.displayName = fd;
9801
+ var pd = "SliderThumb", C1 = I.forwardRef(
9802
9802
  (t, e) => {
9803
9803
  const n = bR(t.__scopeSlider), [r, i] = I.useState(null), o = kt(e, (a) => i(a)), s = I.useMemo(
9804
9804
  () => r ? n().findIndex((a) => a.ref.current === r) : -1,
@@ -9808,7 +9808,7 @@ var hd = "SliderThumb", C1 = I.forwardRef(
9808
9808
  }
9809
9809
  ), SR = I.forwardRef(
9810
9810
  (t, e) => {
9811
- const { __scopeSlider: n, index: r, name: i, ...o } = t, s = Ul(hd, n), a = g1(hd, n), [l, c] = I.useState(null), u = kt(e, (b) => c(b)), d = l ? s.form || !!l.closest("form") : !0, f = kl(l), p = s.values[r], h = p === void 0 ? 0 : w1(p, s.min, s.max), m = AR(r, s.values.length), g = f == null ? void 0 : f[a.size], v = g ? kR(g, h, a.direction) : 0;
9811
+ const { __scopeSlider: n, index: r, name: i, ...o } = t, s = Jl(pd, n), a = g1(pd, n), [l, c] = I.useState(null), u = kt(e, (b) => c(b)), d = l ? s.form || !!l.closest("form") : !0, f = kl(l), p = s.values[r], h = p === void 0 ? 0 : w1(p, s.min, s.max), m = AR(r, s.values.length), g = f == null ? void 0 : f[a.size], v = g ? kR(g, h, a.direction) : 0;
9812
9812
  return I.useEffect(() => {
9813
9813
  if (l)
9814
9814
  return s.thumbs.add(l), () => {
@@ -9823,7 +9823,7 @@ var hd = "SliderThumb", C1 = I.forwardRef(
9823
9823
  [a.startEdge]: `calc(${h}% + ${v}px)`
9824
9824
  },
9825
9825
  children: [
9826
- /* @__PURE__ */ C.jsx(fd.ItemSlot, { scope: t.__scopeSlider, children: /* @__PURE__ */ C.jsx(
9826
+ /* @__PURE__ */ C.jsx(dd.ItemSlot, { scope: t.__scopeSlider, children: /* @__PURE__ */ C.jsx(
9827
9827
  Ze.span,
9828
9828
  {
9829
9829
  role: "slider",
@@ -9857,9 +9857,9 @@ var hd = "SliderThumb", C1 = I.forwardRef(
9857
9857
  );
9858
9858
  }
9859
9859
  );
9860
- C1.displayName = hd;
9860
+ C1.displayName = pd;
9861
9861
  var IR = (t) => {
9862
- const { value: e, ...n } = t, r = I.useRef(null), i = Jl(e);
9862
+ const { value: e, ...n } = t, r = I.useRef(null), i = Zl(e);
9863
9863
  return I.useEffect(() => {
9864
9864
  const o = r.current, s = window.HTMLInputElement.prototype, l = Object.getOwnPropertyDescriptor(s, "value").set;
9865
9865
  if (i !== e && l) {
@@ -10140,7 +10140,7 @@ const h$ = ({
10140
10140
  }
10141
10141
  );
10142
10142
  }, BR = () => {
10143
- const [t, e] = Ac(!1), [n, r] = Ac(!1), [i, o] = Ac(!1);
10143
+ const [t, e] = Ec(!1), [n, r] = Ec(!1), [i, o] = Ec(!1);
10144
10144
  return {
10145
10145
  calendarSetter: o,
10146
10146
  toggleCalendar: (c) => {
@@ -10350,15 +10350,15 @@ const LR = {
10350
10350
  }, _R = {
10351
10351
  any: "{{date}}, {{time}}"
10352
10352
  }, HR = {
10353
- date: Sc({
10353
+ date: wc({
10354
10354
  formats: GR,
10355
10355
  defaultWidth: "full"
10356
10356
  }),
10357
- time: Sc({
10357
+ time: wc({
10358
10358
  formats: zR,
10359
10359
  defaultWidth: "full"
10360
10360
  }),
10361
- dateTime: Sc({
10361
+ dateTime: wc({
10362
10362
  formats: _R,
10363
10363
  defaultWidth: "any"
10364
10364
  })
@@ -10713,7 +10713,7 @@ const XR = {
10713
10713
  }
10714
10714
  }, vD = (t) => {
10715
10715
  const [e, n] = Oe(t), [r, i, o] = (e == null ? void 0 : e.split(".")) ?? "", s = sn(new Date(+o, +i - 1, +r), "MMM-yyyy"), a = wI(s, "MMM-yyyy", /* @__PURE__ */ new Date()), l = $I({
10716
- start: Hu(a, { weekStartsOn: 1 }),
10716
+ start: _u(a, { weekStartsOn: 1 }),
10717
10717
  end: YI(HI(a))
10718
10718
  }), c = we(() => l, [l]), u = sn(i, "MMMM", { locale: gD });
10719
10719
  return {
@@ -10769,7 +10769,7 @@ const XR = {
10769
10769
  for (let r = e; r >= t; r--)
10770
10770
  n.push(r);
10771
10771
  return n;
10772
- }, wD = CD(), $c = [
10772
+ }, wD = CD(), Wc = [
10773
10773
  { day: "Пн" },
10774
10774
  { day: "Вт" },
10775
10775
  { day: "Ср" },
@@ -10790,7 +10790,7 @@ const XR = {
10790
10790
  "Октябрь",
10791
10791
  "Ноябрь",
10792
10792
  "Декабрь"
10793
- ], SD = ({ classes: t }) => /* @__PURE__ */ C.jsx("div", { className: O("grid grid-cols-7 pt-2", t == null ? void 0 : t.weekWrapper), children: $c == null ? void 0 : $c.map(({ day: e, isWeekend: n }) => /* @__PURE__ */ C.jsx(
10793
+ ], SD = ({ classes: t }) => /* @__PURE__ */ C.jsx("div", { className: O("grid grid-cols-7 pt-2", t == null ? void 0 : t.weekWrapper), children: Wc == null ? void 0 : Wc.map(({ day: e, isWeekend: n }) => /* @__PURE__ */ C.jsx(
10794
10794
  "span",
10795
10795
  {
10796
10796
  className: O(
@@ -10989,9 +10989,11 @@ const XR = {
10989
10989
  swapPosition: d,
10990
10990
  onClickIcon: f,
10991
10991
  defaultValue: p = kD,
10992
- ...h
10992
+ watch: h,
10993
+ setValue: m,
10994
+ ...g
10993
10995
  }) => {
10994
- const { watch: m, setValue: g } = Bl() ?? {}, v = I.useId(), b = m(h.name), x = I.useRef(null), {
10996
+ const v = I.useId(), b = h(g.name), x = I.useRef(null), {
10995
10997
  memoDaysOfMonth: w,
10996
10998
  firstDayOfMonth: y,
10997
10999
  selectedDay: E,
@@ -11003,14 +11005,14 @@ const XR = {
11003
11005
  onBlurInput: z,
11004
11006
  onChangeMonth: J
11005
11007
  } = vD(p ?? b), { isCalendarOpen: L, toggleCalendar: Y, calendarSetter: F, isMonthOpen: B, toggleMonthDropdown: Q, isYearsOpen: re, toggleYearDropdown: P } = BR();
11006
- return Tf(x, () => F(!1)), /* @__PURE__ */ C.jsx(
11008
+ return Af(x, () => F(!1)), /* @__PURE__ */ C.jsx(
11007
11009
  Xt,
11008
11010
  {
11009
11011
  control: t,
11010
- name: h.name,
11012
+ name: g.name,
11011
11013
  render: ({ field: { onChange: _, value: H }, fieldState: { error: V } }) => /* @__PURE__ */ C.jsxs("div", { className: O("relative w-full", e == null ? void 0 : e.rootWrapper), ref: x, children: [
11012
11014
  /* @__PURE__ */ C.jsx(Rx, { children: L && /* @__PURE__ */ C.jsxs(
11013
- dd.div,
11015
+ ud.div,
11014
11016
  {
11015
11017
  ...xD,
11016
11018
  className: O(
@@ -11082,7 +11084,7 @@ const XR = {
11082
11084
  {
11083
11085
  id: v,
11084
11086
  value: H,
11085
- name: h.name,
11087
+ name: g.name,
11086
11088
  format: i,
11087
11089
  allowEmptyFormatting: o,
11088
11090
  mask: s,
@@ -11092,7 +11094,7 @@ const XR = {
11092
11094
  ),
11093
11095
  onFocus: () => F(!0),
11094
11096
  onBlur: (K) => {
11095
- z(K.target.value, _), K.target.value || g(h.name, "");
11097
+ z(K.target.value, _), K.target.value || m(g.name, "");
11096
11098
  }
11097
11099
  }
11098
11100
  ),
@@ -11134,7 +11136,7 @@ const XR = {
11134
11136
  "image/png": [],
11135
11137
  "application/pdf": []
11136
11138
  }
11137
- }, Xc = {
11139
+ }, $c = {
11138
11140
  FileInvalidType: "file-invalid-type",
11139
11141
  FileTooLarge: "file-too-large",
11140
11142
  FileTooSmall: "file-too-small",
@@ -11174,7 +11176,7 @@ const XR = {
11174
11176
  }
11175
11177
  );
11176
11178
  });
11177
- var md = { exports: {} }, Fs = { exports: {} }, Ve = {};
11179
+ var hd = { exports: {} }, Fs = { exports: {} }, Ve = {};
11178
11180
  /** @license React v16.13.1
11179
11181
  * react-is.production.min.js
11180
11182
  *
@@ -11350,9 +11352,9 @@ object-assign
11350
11352
  (c) Sindre Sorhus
11351
11353
  @license MIT
11352
11354
  */
11353
- var Yc, cg;
11355
+ var Xc, cg;
11354
11356
  function RD() {
11355
- if (cg) return Yc;
11357
+ if (cg) return Xc;
11356
11358
  cg = 1;
11357
11359
  var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
11358
11360
  function r(o) {
@@ -11382,7 +11384,7 @@ function RD() {
11382
11384
  return !1;
11383
11385
  }
11384
11386
  }
11385
- return Yc = i() ? Object.assign : function(o, s) {
11387
+ return Xc = i() ? Object.assign : function(o, s) {
11386
11388
  for (var a, l = r(o), c, u = 1; u < arguments.length; u++) {
11387
11389
  a = Object(arguments[u]);
11388
11390
  for (var d in a)
@@ -11394,22 +11396,22 @@ function RD() {
11394
11396
  }
11395
11397
  }
11396
11398
  return l;
11397
- }, Yc;
11399
+ }, Xc;
11398
11400
  }
11399
- var Zc, ug;
11401
+ var Yc, ug;
11400
11402
  function Sp() {
11401
- if (ug) return Zc;
11403
+ if (ug) return Yc;
11402
11404
  ug = 1;
11403
11405
  var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
11404
- return Zc = t, Zc;
11406
+ return Yc = t, Yc;
11405
11407
  }
11406
- var Jc, dg;
11408
+ var Zc, dg;
11407
11409
  function A1() {
11408
- return dg || (dg = 1, Jc = Function.call.bind(Object.prototype.hasOwnProperty)), Jc;
11410
+ return dg || (dg = 1, Zc = Function.call.bind(Object.prototype.hasOwnProperty)), Zc;
11409
11411
  }
11410
- var Uc, fg;
11412
+ var Jc, fg;
11411
11413
  function DD() {
11412
- if (fg) return Uc;
11414
+ if (fg) return Jc;
11413
11415
  fg = 1;
11414
11416
  var t = function() {
11415
11417
  };
@@ -11454,11 +11456,11 @@ function DD() {
11454
11456
  }
11455
11457
  return i.resetWarningCache = function() {
11456
11458
  process.env.NODE_ENV !== "production" && (n = {});
11457
- }, Uc = i, Uc;
11459
+ }, Jc = i, Jc;
11458
11460
  }
11459
- var Kc, pg;
11461
+ var Uc, pg;
11460
11462
  function ND() {
11461
- if (pg) return Kc;
11463
+ if (pg) return Uc;
11462
11464
  pg = 1;
11463
11465
  var t = E1(), e = RD(), n = Sp(), r = A1(), i = DD(), o = function() {
11464
11466
  };
@@ -11473,7 +11475,7 @@ function ND() {
11473
11475
  function s() {
11474
11476
  return null;
11475
11477
  }
11476
- return Kc = function(a, l) {
11478
+ return Uc = function(a, l) {
11477
11479
  var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
11478
11480
  function d(P) {
11479
11481
  var _ = P && (c && P[c] || P[u]);
@@ -11775,18 +11777,18 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
11775
11777
  return !P.constructor || !P.constructor.name ? f : P.constructor.name;
11776
11778
  }
11777
11779
  return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
11778
- }, Kc;
11780
+ }, Uc;
11779
11781
  }
11780
- var qc, hg;
11782
+ var Kc, hg;
11781
11783
  function FD() {
11782
- if (hg) return qc;
11784
+ if (hg) return Kc;
11783
11785
  hg = 1;
11784
11786
  var t = Sp();
11785
11787
  function e() {
11786
11788
  }
11787
11789
  function n() {
11788
11790
  }
11789
- return n.resetWarningCache = e, qc = function() {
11791
+ return n.resetWarningCache = e, Kc = function() {
11790
11792
  function r(s, a, l, c, u, d) {
11791
11793
  if (d !== t) {
11792
11794
  var f = new Error(
@@ -11823,14 +11825,14 @@ function FD() {
11823
11825
  resetWarningCache: e
11824
11826
  };
11825
11827
  return o.PropTypes = o, o;
11826
- }, qc;
11828
+ }, Kc;
11827
11829
  }
11828
11830
  if (process.env.NODE_ENV !== "production") {
11829
11831
  var VD = E1(), BD = !0;
11830
- md.exports = ND()(VD.isElement, BD);
11832
+ hd.exports = ND()(VD.isElement, BD);
11831
11833
  } else
11832
- md.exports = FD()();
11833
- var LD = md.exports;
11834
+ hd.exports = FD()();
11835
+ var LD = hd.exports;
11834
11836
  const We = /* @__PURE__ */ SI(LD), jD = /* @__PURE__ */ new Map([
11835
11837
  // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
11836
11838
  ["1km", "application/vnd.1000minds.decision-model+xml"],
@@ -13081,7 +13083,7 @@ function Ta(t) {
13081
13083
  return typeof t == "object" && t !== null;
13082
13084
  }
13083
13085
  function $D(t) {
13084
- return gd(t.target.files).map((e) => $i(e));
13086
+ return md(t.target.files).map((e) => $i(e));
13085
13087
  }
13086
13088
  function XD(t) {
13087
13089
  return di(this, void 0, void 0, function* () {
@@ -13091,19 +13093,19 @@ function XD(t) {
13091
13093
  function YD(t, e) {
13092
13094
  return di(this, void 0, void 0, function* () {
13093
13095
  if (t.items) {
13094
- const n = gd(t.items).filter((i) => i.kind === "file");
13096
+ const n = md(t.items).filter((i) => i.kind === "file");
13095
13097
  if (e !== "drop")
13096
13098
  return n;
13097
13099
  const r = yield Promise.all(n.map(ZD));
13098
13100
  return gg(T1(r));
13099
13101
  }
13100
- return gg(gd(t.files).map((n) => $i(n)));
13102
+ return gg(md(t.files).map((n) => $i(n)));
13101
13103
  });
13102
13104
  }
13103
13105
  function gg(t) {
13104
13106
  return t.filter((e) => zD.indexOf(e.name) === -1);
13105
13107
  }
13106
- function gd(t) {
13108
+ function md(t) {
13107
13109
  if (t === null)
13108
13110
  return [];
13109
13111
  const e = [];
@@ -13183,7 +13185,7 @@ function UD(t) {
13183
13185
  });
13184
13186
  });
13185
13187
  }
13186
- var Qc = function(t, e) {
13188
+ var qc = function(t, e) {
13187
13189
  if (t && e) {
13188
13190
  var n = Array.isArray(e) ? e : e.split(",");
13189
13191
  if (n.length === 0)
@@ -13207,7 +13209,7 @@ function qD(t) {
13207
13209
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
13208
13210
  }
13209
13211
  function QD(t) {
13210
- if (Array.isArray(t)) return vd(t);
13212
+ if (Array.isArray(t)) return gd(t);
13211
13213
  }
13212
13214
  function yg(t, e) {
13213
13215
  var n = Object.keys(t);
@@ -13242,13 +13244,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13242
13244
  }
13243
13245
  function O1(t, e) {
13244
13246
  if (t) {
13245
- if (typeof t == "string") return vd(t, e);
13247
+ if (typeof t == "string") return gd(t, e);
13246
13248
  var n = Object.prototype.toString.call(t).slice(8, -1);
13247
13249
  if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set") return Array.from(t);
13248
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return vd(t, e);
13250
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return gd(t, e);
13249
13251
  }
13250
13252
  }
13251
- function vd(t, e) {
13253
+ function gd(t, e) {
13252
13254
  (e == null || e > t.length) && (e = t.length);
13253
13255
  for (var n = 0, r = new Array(e); n < e; n++)
13254
13256
  r[n] = t[n];
@@ -13276,7 +13278,7 @@ function tN(t, e) {
13276
13278
  function nN(t) {
13277
13279
  if (Array.isArray(t)) return t;
13278
13280
  }
13279
- var rN = typeof Qc == "function" ? Qc : Qc.default, iN = "file-invalid-type", oN = "file-too-large", sN = "file-too-small", aN = "too-many-files", lN = function() {
13281
+ var rN = typeof qc == "function" ? qc : qc.default, iN = "file-invalid-type", oN = "file-too-large", sN = "file-too-small", aN = "too-many-files", lN = function() {
13280
13282
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = e.split(","), r = n.length > 1 ? "one of ".concat(n.join(", ")) : n[0];
13281
13283
  return {
13282
13284
  code: iN,
@@ -13406,9 +13408,9 @@ function EN(t) {
13406
13408
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
13407
13409
  }
13408
13410
  function AN(t) {
13409
- if (Array.isArray(t)) return bd(t);
13411
+ if (Array.isArray(t)) return vd(t);
13410
13412
  }
13411
- function eu(t, e) {
13413
+ function Qc(t, e) {
13412
13414
  return MN(t) || kN(t, e) || F1(t, e) || TN();
13413
13415
  }
13414
13416
  function TN() {
@@ -13417,13 +13419,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13417
13419
  }
13418
13420
  function F1(t, e) {
13419
13421
  if (t) {
13420
- if (typeof t == "string") return bd(t, e);
13422
+ if (typeof t == "string") return vd(t, e);
13421
13423
  var n = Object.prototype.toString.call(t).slice(8, -1);
13422
13424
  if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set") return Array.from(t);
13423
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return bd(t, e);
13425
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return vd(t, e);
13424
13426
  }
13425
13427
  }
13426
- function bd(t, e) {
13428
+ function vd(t, e) {
13427
13429
  (e == null || e > t.length) && (e = t.length);
13428
13430
  for (var n = 0, r = new Array(e); n < e; n++)
13429
13431
  r[n] = t[n];
@@ -13465,14 +13467,14 @@ function Je(t) {
13465
13467
  for (var e = 1; e < arguments.length; e++) {
13466
13468
  var n = arguments[e] != null ? arguments[e] : {};
13467
13469
  e % 2 ? Ig(Object(n), !0).forEach(function(r) {
13468
- yd(t, r, n[r]);
13470
+ bd(t, r, n[r]);
13469
13471
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ig(Object(n)).forEach(function(r) {
13470
13472
  Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
13471
13473
  });
13472
13474
  }
13473
13475
  return t;
13474
13476
  }
13475
- function yd(t, e, n) {
13477
+ function bd(t, e, n) {
13476
13478
  return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
13477
13479
  }
13478
13480
  function Ma(t, e) {
@@ -13688,7 +13690,7 @@ Ip.propTypes = {
13688
13690
  */
13689
13691
  validator: We.func
13690
13692
  };
13691
- var xd = {
13693
+ var yd = {
13692
13694
  isFocused: !1,
13693
13695
  isFileDialogActive: !1,
13694
13696
  isDragActive: !1,
@@ -13706,7 +13708,7 @@ function B1() {
13706
13708
  return typeof g == "function" ? g : Eg;
13707
13709
  }, [g]), J = we(function() {
13708
13710
  return typeof m == "function" ? m : Eg;
13709
- }, [m]), L = de(null), Y = de(null), F = vf(PN, xd), B = eu(F, 2), Q = B[0], re = B[1], P = Q.isFocused, _ = Q.isFileDialogActive, H = de(typeof window < "u" && window.isSecureContext && v && hN()), V = function() {
13711
+ }, [m]), L = de(null), Y = de(null), F = gf(PN, yd), B = Qc(F, 2), Q = B[0], re = B[1], P = Q.isFocused, _ = Q.isFileDialogActive, H = de(typeof window < "u" && window.isSecureContext && v && hN()), V = function() {
13710
13712
  !H.current && _ && setTimeout(function() {
13711
13713
  if (Y.current) {
13712
13714
  var U = Y.current.files;
@@ -13779,14 +13781,14 @@ function B1() {
13779
13781
  }, [L, u, A]), xe = fe(function(N, U) {
13780
13782
  var ye = [], Ie = [];
13781
13783
  N.forEach(function(nt) {
13782
- var Mr = P1(nt, G), gn = eu(Mr, 2), Or = gn[0], lo = gn[1], gi = R1(nt, s, o), vi = eu(gi, 2), bi = vi[0], xc = vi[1], Cc = R ? R(nt) : null;
13783
- if (Or && bi && !Cc)
13784
+ var Mr = P1(nt, G), gn = Qc(Mr, 2), Or = gn[0], lo = gn[1], gi = R1(nt, s, o), vi = Qc(gi, 2), bi = vi[0], yc = vi[1], xc = R ? R(nt) : null;
13785
+ if (Or && bi && !xc)
13784
13786
  ye.push(nt);
13785
13787
  else {
13786
- var wc = [lo, xc];
13787
- Cc && (wc = wc.concat(Cc)), Ie.push({
13788
+ var Cc = [lo, yc];
13789
+ xc && (Cc = Cc.concat(xc)), Ie.push({
13788
13790
  file: nt,
13789
- errors: wc.filter(function(YS) {
13791
+ errors: Cc.filter(function(YS) {
13790
13792
  return YS;
13791
13793
  })
13792
13794
  });
@@ -13857,8 +13859,8 @@ function B1() {
13857
13859
  A && U.stopPropagation();
13858
13860
  }, q = we(function() {
13859
13861
  return function() {
13860
- var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, U = N.refKey, ye = U === void 0 ? "ref" : U, Ie = N.role, nt = N.onKeyDown, Mr = N.onFocus, gn = N.onBlur, Or = N.onClick, lo = N.onDragEnter, gi = N.onDragOver, vi = N.onDragLeave, bi = N.onDrop, xc = Ma(N, CN);
13861
- return Je(Je(yd({
13862
+ var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, U = N.refKey, ye = U === void 0 ? "ref" : U, Ie = N.role, nt = N.onKeyDown, Mr = N.onFocus, gn = N.onBlur, Or = N.onClick, lo = N.onDragEnter, gi = N.onDragOver, vi = N.onDragLeave, bi = N.onDrop, yc = Ma(N, CN);
13863
+ return Je(Je(bd({
13862
13864
  onKeyDown: S(vn(nt, Xe)),
13863
13865
  onFocus: S(vn(Mr, ue)),
13864
13866
  onBlur: S(vn(gn, ke)),
@@ -13870,13 +13872,13 @@ function B1() {
13870
13872
  role: typeof Ie == "string" && Ie !== "" ? Ie : "presentation"
13871
13873
  }, ye, L), !r && !y ? {
13872
13874
  tabIndex: 0
13873
- } : {}), xc);
13875
+ } : {}), yc);
13874
13876
  };
13875
13877
  }, [L, Xe, ue, ke, wt, ie, ae, he, Re, y, E, r]), W = fe(function(N) {
13876
13878
  N.stopPropagation();
13877
13879
  }, []), j = we(function() {
13878
13880
  return function() {
13879
- var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, U = N.refKey, ye = U === void 0 ? "ref" : U, Ie = N.onChange, nt = N.onClick, Mr = Ma(N, wN), gn = yd({
13881
+ var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, U = N.refKey, ye = U === void 0 ? "ref" : U, Ie = N.onChange, nt = N.onClick, Mr = Ma(N, wN), gn = bd({
13880
13882
  accept: G,
13881
13883
  multiple: a,
13882
13884
  type: "file",
@@ -13919,7 +13921,7 @@ function PN(t, e) {
13919
13921
  isFocused: !1
13920
13922
  });
13921
13923
  case "openDialog":
13922
- return Je(Je({}, xd), {}, {
13924
+ return Je(Je({}, yd), {}, {
13923
13925
  isFileDialogActive: !0
13924
13926
  });
13925
13927
  case "closeDialog":
@@ -13939,7 +13941,7 @@ function PN(t, e) {
13939
13941
  isDragReject: e.isDragReject
13940
13942
  });
13941
13943
  case "reset":
13942
- return Je({}, xd);
13944
+ return Je({}, yd);
13943
13945
  default:
13944
13946
  return t;
13945
13947
  }
@@ -13959,19 +13961,19 @@ const RN = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
13959
13961
  i((m) => ({ ...m, [p.name]: "success" }));
13960
13962
  }, h.readAsArrayBuffer(p);
13961
13963
  }), (f = (d = c[0]) == null ? void 0 : d.errors[0]) == null ? void 0 : f.code) {
13962
- case Xc.FileInvalidType:
13964
+ case $c.FileInvalidType:
13963
13965
  Mo({
13964
13966
  intent: "error",
13965
13967
  text: "Неверный формат файла. Загрузите в формате jpg/png/pdf"
13966
13968
  });
13967
13969
  break;
13968
- case Xc.FileTooLarge:
13970
+ case $c.FileTooLarge:
13969
13971
  Mo({
13970
13972
  intent: "error",
13971
13973
  text: `Файл слишком большой. Максимальный размер ${t.maxSize} МБ`
13972
13974
  });
13973
13975
  break;
13974
- case Xc.TooManyFiles:
13976
+ case $c.TooManyFiles:
13975
13977
  Mo({
13976
13978
  intent: "error",
13977
13979
  text: `Вы загрузили слишком много файлов. Максимальное количество ${t.maxFiles}`
@@ -14146,16 +14148,16 @@ function jN(t, e) {
14146
14148
  return a;
14147
14149
  }
14148
14150
  }
14149
- function Cd(t, e) {
14151
+ function xd(t, e) {
14150
14152
  (e == null || e > t.length) && (e = t.length);
14151
14153
  for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
14152
14154
  return r;
14153
14155
  }
14154
14156
  function j1(t, e) {
14155
14157
  if (t) {
14156
- if (typeof t == "string") return Cd(t, e);
14158
+ if (typeof t == "string") return xd(t, e);
14157
14159
  var n = {}.toString.call(t).slice(8, -1);
14158
- return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Cd(t, e) : void 0;
14160
+ return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? xd(t, e) : void 0;
14159
14161
  }
14160
14162
  }
14161
14163
  function GN() {
@@ -14228,10 +14230,10 @@ function $N(t, e, n) {
14228
14230
  writable: !1
14229
14231
  }), t;
14230
14232
  }
14231
- function wd(t, e) {
14232
- return wd = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
14233
+ function Cd(t, e) {
14234
+ return Cd = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
14233
14235
  return n.__proto__ = r, n;
14234
- }, wd(t, e);
14236
+ }, Cd(t, e);
14235
14237
  }
14236
14238
  function XN(t, e) {
14237
14239
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
@@ -14243,7 +14245,7 @@ function XN(t, e) {
14243
14245
  }
14244
14246
  }), Object.defineProperty(t, "prototype", {
14245
14247
  writable: !1
14246
- }), e && wd(t, e);
14248
+ }), e && Cd(t, e);
14247
14249
  }
14248
14250
  function Oa(t) {
14249
14251
  return Oa = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
@@ -14281,7 +14283,7 @@ function JN(t) {
14281
14283
  };
14282
14284
  }
14283
14285
  function UN(t) {
14284
- if (Array.isArray(t)) return Cd(t);
14286
+ if (Array.isArray(t)) return xd(t);
14285
14287
  }
14286
14288
  function KN(t) {
14287
14289
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
@@ -14334,7 +14336,7 @@ var n2 = /* @__PURE__ */ function() {
14334
14336
  return (i = r.parentNode) == null ? void 0 : i.removeChild(r);
14335
14337
  }), this.tags = [], this.ctr = 0;
14336
14338
  }, t;
14337
- }(), St = "-ms-", Pa = "-moz-", De = "-webkit-", z1 = "comm", Ap = "rule", Tp = "decl", r2 = "@import", _1 = "@keyframes", i2 = "@layer", o2 = Math.abs, Kl = String.fromCharCode, s2 = Object.assign;
14339
+ }(), St = "-ms-", Pa = "-moz-", De = "-webkit-", z1 = "comm", Ap = "rule", Tp = "decl", r2 = "@import", _1 = "@keyframes", i2 = "@layer", o2 = Math.abs, Ul = String.fromCharCode, s2 = Object.assign;
14338
14340
  function a2(t, e) {
14339
14341
  return vt(t, 0) ^ 45 ? (((e << 2 ^ vt(t, 0)) << 2 ^ vt(t, 1)) << 2 ^ vt(t, 2)) << 2 ^ vt(t, 3) : 0;
14340
14342
  }
@@ -14347,7 +14349,7 @@ function l2(t, e) {
14347
14349
  function Ne(t, e, n) {
14348
14350
  return t.replace(e, n);
14349
14351
  }
14350
- function Sd(t, e) {
14352
+ function wd(t, e) {
14351
14353
  return t.indexOf(e);
14352
14354
  }
14353
14355
  function vt(t, e) {
@@ -14368,21 +14370,21 @@ function Bs(t, e) {
14368
14370
  function c2(t, e) {
14369
14371
  return t.map(e).join("");
14370
14372
  }
14371
- var ql = 1, Xi = 1, W1 = 0, zt = 0, st = 0, oo = "";
14372
- function Ql(t, e, n, r, i, o, s) {
14373
- return { value: t, root: e, parent: n, type: r, props: i, children: o, line: ql, column: Xi, length: s, return: "" };
14373
+ var Kl = 1, Xi = 1, W1 = 0, zt = 0, st = 0, oo = "";
14374
+ function ql(t, e, n, r, i, o, s) {
14375
+ return { value: t, root: e, parent: n, type: r, props: i, children: o, line: Kl, column: Xi, length: s, return: "" };
14374
14376
  }
14375
14377
  function go(t, e) {
14376
- return s2(Ql("", null, null, "", null, null, 0), t, { length: -t.length }, e);
14378
+ return s2(ql("", null, null, "", null, null, 0), t, { length: -t.length }, e);
14377
14379
  }
14378
14380
  function u2() {
14379
14381
  return st;
14380
14382
  }
14381
14383
  function d2() {
14382
- return st = zt > 0 ? vt(oo, --zt) : 0, Xi--, st === 10 && (Xi = 1, ql--), st;
14384
+ return st = zt > 0 ? vt(oo, --zt) : 0, Xi--, st === 10 && (Xi = 1, Kl--), st;
14383
14385
  }
14384
14386
  function Wt() {
14385
- return st = zt < W1 ? vt(oo, zt++) : 0, Xi++, st === 10 && (Xi = 1, ql++), st;
14387
+ return st = zt < W1 ? vt(oo, zt++) : 0, Xi++, st === 10 && (Xi = 1, Kl++), st;
14386
14388
  }
14387
14389
  function On() {
14388
14390
  return vt(oo, zt);
@@ -14426,13 +14428,13 @@ function Ko(t) {
14426
14428
  return 0;
14427
14429
  }
14428
14430
  function $1(t) {
14429
- return ql = Xi = 1, W1 = wn(oo = t), zt = 0, [];
14431
+ return Kl = Xi = 1, W1 = wn(oo = t), zt = 0, [];
14430
14432
  }
14431
14433
  function X1(t) {
14432
14434
  return oo = "", t;
14433
14435
  }
14434
14436
  function ia(t) {
14435
- return H1(Cs(zt - 1, Id(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
14437
+ return H1(Cs(zt - 1, Sd(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
14436
14438
  }
14437
14439
  function f2(t) {
14438
14440
  for (; (st = On()) && st < 33; )
@@ -14444,17 +14446,17 @@ function p2(t, e) {
14444
14446
  ;
14445
14447
  return Cs(t, ra() + (e < 6 && On() == 32 && Wt() == 32));
14446
14448
  }
14447
- function Id(t) {
14449
+ function Sd(t) {
14448
14450
  for (; Wt(); )
14449
14451
  switch (st) {
14450
14452
  case t:
14451
14453
  return zt;
14452
14454
  case 34:
14453
14455
  case 39:
14454
- t !== 34 && t !== 39 && Id(st);
14456
+ t !== 34 && t !== 39 && Sd(st);
14455
14457
  break;
14456
14458
  case 40:
14457
- t === 41 && Id(t);
14459
+ t === 41 && Sd(t);
14458
14460
  break;
14459
14461
  case 92:
14460
14462
  Wt();
@@ -14466,7 +14468,7 @@ function h2(t, e) {
14466
14468
  for (; Wt() && t + st !== 57; )
14467
14469
  if (t + st === 84 && On() === 47)
14468
14470
  break;
14469
- return "/*" + Cs(e, zt - 1) + "*" + Kl(t === 47 ? t : Wt());
14471
+ return "/*" + Cs(e, zt - 1) + "*" + Ul(t === 47 ? t : Wt());
14470
14472
  }
14471
14473
  function m2(t) {
14472
14474
  for (; !Ko(On()); )
@@ -14481,7 +14483,7 @@ function oa(t, e, n, r, i, o, s, a, l) {
14481
14483
  switch (h = b, b = Wt()) {
14482
14484
  case 40:
14483
14485
  if (h != 108 && vt(A, d - 1) == 58) {
14484
- Sd(A += Ne(ia(b), "&", "&\f"), "&\f") != -1 && (v = -1);
14486
+ wd(A += Ne(ia(b), "&", "&\f"), "&\f") != -1 && (v = -1);
14485
14487
  break;
14486
14488
  }
14487
14489
  case 34:
@@ -14549,7 +14551,7 @@ function oa(t, e, n, r, i, o, s, a, l) {
14549
14551
  else if (b == 125 && m++ == 0 && d2() == 125)
14550
14552
  continue;
14551
14553
  }
14552
- switch (A += Kl(b), b * m) {
14554
+ switch (A += Ul(b), b * m) {
14553
14555
  case 38:
14554
14556
  v = u > 0 ? 1 : (A += "\f", -1);
14555
14557
  break;
@@ -14569,13 +14571,13 @@ function kg(t, e, n, r, i, o, s, a, l, c, u) {
14569
14571
  for (var d = i - 1, f = i === 0 ? o : [""], p = kp(f), h = 0, m = 0, g = 0; h < r; ++h)
14570
14572
  for (var v = 0, b = Uo(t, d + 1, d = o2(m = s[h])), x = t; v < p; ++v)
14571
14573
  (x = H1(m > 0 ? f[v] + " " + b : Ne(b, /&\f/g, f[v]))) && (l[g++] = x);
14572
- return Ql(t, e, n, i === 0 ? Ap : a, l, c, u);
14574
+ return ql(t, e, n, i === 0 ? Ap : a, l, c, u);
14573
14575
  }
14574
14576
  function v2(t, e, n) {
14575
- return Ql(t, e, n, z1, Kl(u2()), Uo(t, 2, -2), 0);
14577
+ return ql(t, e, n, z1, Ul(u2()), Uo(t, 2, -2), 0);
14576
14578
  }
14577
14579
  function Mg(t, e, n, r) {
14578
- return Ql(t, e, n, Tp, Uo(t, 0, r), Uo(t, r + 1, -1), r);
14580
+ return ql(t, e, n, Tp, Uo(t, 0, r), Uo(t, r + 1, -1), r);
14579
14581
  }
14580
14582
  function Vi(t, e) {
14581
14583
  for (var n = "", r = kp(t), i = 0; i < r; i++)
@@ -14637,7 +14639,7 @@ var w2 = function(e, n, r) {
14637
14639
  break;
14638
14640
  }
14639
14641
  default:
14640
- e[r] += Kl(i);
14642
+ e[r] += Ul(i);
14641
14643
  }
14642
14644
  while (i = Wt());
14643
14645
  return e;
@@ -14749,13 +14751,13 @@ function Y1(t, e) {
14749
14751
  case 102:
14750
14752
  return Ne(t, /(.+:)(.+)-([^]+)/, "$1" + De + "$2-$3$1" + Pa + (vt(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
14751
14753
  case 115:
14752
- return ~Sd(t, "stretch") ? Y1(Ne(t, "stretch", "fill-available"), e) + t : t;
14754
+ return ~wd(t, "stretch") ? Y1(Ne(t, "stretch", "fill-available"), e) + t : t;
14753
14755
  }
14754
14756
  break;
14755
14757
  case 4949:
14756
14758
  if (vt(t, e + 1) !== 115) break;
14757
14759
  case 6444:
14758
- switch (vt(t, wn(t) - 3 - (~Sd(t, "!important") && 10))) {
14760
+ switch (vt(t, wn(t) - 3 - (~wd(t, "!important") && 10))) {
14759
14761
  case 107:
14760
14762
  return Ne(t, ":", ":" + De) + t;
14761
14763
  case 101:
@@ -14851,7 +14853,7 @@ var T2 = function(e, n, r, i) {
14851
14853
  insert: l
14852
14854
  };
14853
14855
  return h.sheet.hydrate(a), h;
14854
- }, Ed = { exports: {} }, Le = {};
14856
+ }, Id = { exports: {} }, Le = {};
14855
14857
  /** @license React v16.13.1
14856
14858
  * react-is.production.min.js
14857
14859
  *
@@ -15018,8 +15020,8 @@ function P2() {
15018
15020
  je.AsyncMode = y, je.ConcurrentMode = E, je.ContextConsumer = A, je.ContextProvider = T, je.Element = R, je.ForwardRef = G, je.Fragment = X, je.Lazy = z, je.Memo = J, je.Portal = L, je.Profiler = Y, je.StrictMode = F, je.Suspense = B, je.isAsyncMode = re, je.isConcurrentMode = P, je.isContextConsumer = _, je.isContextProvider = H, je.isElement = V, je.isForwardRef = K, je.isFragment = se, je.isLazy = ne, je.isMemo = ie, je.isPortal = ae, je.isProfiler = he, je.isStrictMode = xe, je.isSuspense = Re, je.isValidElementType = x, je.typeOf = w;
15019
15021
  }()), je;
15020
15022
  }
15021
- process.env.NODE_ENV === "production" ? Ed.exports = O2() : Ed.exports = P2();
15022
- var R2 = Ed.exports, Z1 = R2, D2 = {
15023
+ process.env.NODE_ENV === "production" ? Id.exports = O2() : Id.exports = P2();
15024
+ var R2 = Id.exports, Z1 = R2, D2 = {
15023
15025
  $$typeof: !0,
15024
15026
  render: !0,
15025
15027
  defaultProps: !0,
@@ -15136,7 +15138,7 @@ var j2 = {
15136
15138
  return e.charCodeAt(1) === 45;
15137
15139
  }, Dg = function(e) {
15138
15140
  return e != null && typeof e != "boolean";
15139
- }, tu = /* @__PURE__ */ C2(function(t) {
15141
+ }, eu = /* @__PURE__ */ C2(function(t) {
15140
15142
  return K1(t) ? t : t.replace(z2, "-$&").toLowerCase();
15141
15143
  }), Ng = function(e, n) {
15142
15144
  switch (e) {
@@ -15206,19 +15208,19 @@ function W2(t, e, n) {
15206
15208
  var s = n[o];
15207
15209
  if (typeof s != "object") {
15208
15210
  var a = s;
15209
- Dg(a) && (r += tu(o) + ":" + Ng(o, a) + ";");
15211
+ Dg(a) && (r += eu(o) + ":" + Ng(o, a) + ";");
15210
15212
  } else {
15211
15213
  if (o === "NO_COMPONENT_SELECTOR" && G2)
15212
15214
  throw new Error(H2);
15213
15215
  if (Array.isArray(s) && typeof s[0] == "string" && e == null)
15214
15216
  for (var l = 0; l < s.length; l++)
15215
- Dg(s[l]) && (r += tu(o) + ":" + Ng(o, s[l]) + ";");
15217
+ Dg(s[l]) && (r += eu(o) + ":" + Ng(o, s[l]) + ";");
15216
15218
  else {
15217
15219
  var c = qo(t, e, s);
15218
15220
  switch (o) {
15219
15221
  case "animation":
15220
15222
  case "animationName": {
15221
- r += tu(o) + ":" + c + ";";
15223
+ r += eu(o) + ":" + c + ";";
15222
15224
  break;
15223
15225
  }
15224
15226
  default:
@@ -15276,11 +15278,11 @@ var J2 = function(e) {
15276
15278
  var i = Me(Q1);
15277
15279
  return e(n, i, r);
15278
15280
  });
15279
- }, U2 = /* @__PURE__ */ I.createContext({}), Mp = {}.hasOwnProperty, Ad = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", K2 = function(e, n) {
15281
+ }, U2 = /* @__PURE__ */ I.createContext({}), Mp = {}.hasOwnProperty, Ed = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", K2 = function(e, n) {
15280
15282
  var r = {};
15281
15283
  for (var i in n)
15282
15284
  Mp.call(n, i) && (r[i] = n[i]);
15283
- return r[Ad] = e, r;
15285
+ return r[Ed] = e, r;
15284
15286
  }, q2 = function(e) {
15285
15287
  var n = e.cache, r = e.serialized, i = e.isStringTag;
15286
15288
  return U1(n, r, i), Y2(function() {
@@ -15291,13 +15293,13 @@ var J2 = function(e) {
15291
15293
  function(t, e, n) {
15292
15294
  var r = t.css;
15293
15295
  typeof r == "string" && e.registered[r] !== void 0 && (r = e.registered[r]);
15294
- var i = t[Ad], o = [r], s = "";
15296
+ var i = t[Ed], o = [r], s = "";
15295
15297
  typeof t.className == "string" ? s = V2(e.registered, o, t.className) : t.className != null && (s = t.className + " ");
15296
15298
  var a = q1(o, void 0, I.useContext(U2));
15297
15299
  s += e.key + "-" + a.name;
15298
15300
  var l = {};
15299
15301
  for (var c in t)
15300
- Mp.call(t, c) && c !== "css" && c !== Ad && !Z2 && (l[c] = t[c]);
15302
+ Mp.call(t, c) && c !== "css" && c !== Ed && !Z2 && (l[c] = t[c]);
15301
15303
  return l.className = s, n && (l.ref = n), /* @__PURE__ */ I.createElement(I.Fragment, null, /* @__PURE__ */ I.createElement(q2, {
15302
15304
  cache: e,
15303
15305
  serialized: a,
@@ -15337,7 +15339,7 @@ function nF(t, e) {
15337
15339
  }
15338
15340
  }));
15339
15341
  }
15340
- var Td = Qi, rF = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Ra = function() {
15342
+ var Ad = Qi, rF = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Ra = function() {
15341
15343
  };
15342
15344
  function iF(t, e) {
15343
15345
  return e ? e[0] === "-" ? t + e : t + "__" + e : t;
@@ -15368,17 +15370,17 @@ var Vg = function(e) {
15368
15370
  className: i(r ?? {}, s(n, e), a)
15369
15371
  };
15370
15372
  };
15371
- function ec(t) {
15373
+ function Ql(t) {
15372
15374
  return [document.documentElement, document.body, window].indexOf(t) > -1;
15373
15375
  }
15374
15376
  function sF(t) {
15375
- return ec(t) ? window.innerHeight : t.clientHeight;
15377
+ return Ql(t) ? window.innerHeight : t.clientHeight;
15376
15378
  }
15377
15379
  function tC(t) {
15378
- return ec(t) ? window.pageYOffset : t.scrollTop;
15380
+ return Ql(t) ? window.pageYOffset : t.scrollTop;
15379
15381
  }
15380
15382
  function Da(t, e) {
15381
- if (ec(t)) {
15383
+ if (Ql(t)) {
15382
15384
  window.scrollTo(0, e);
15383
15385
  return;
15384
15386
  }
@@ -15551,7 +15553,7 @@ var rC = function(e) {
15551
15553
  });
15552
15554
  }, iC = /* @__PURE__ */ qe(null), CF = function(e) {
15553
15555
  var n = e.children, r = e.minMenuHeight, i = e.maxMenuHeight, o = e.menuPlacement, s = e.menuPosition, a = e.menuShouldScrollIntoView, l = e.theme, c = Me(iC) || {}, u = c.setPortalPlacement, d = de(null), f = Oe(i), p = $n(f, 2), h = p[0], m = p[1], g = Oe(null), v = $n(g, 2), b = v[0], x = v[1], w = l.spacing.controlHeight;
15554
- return Td(function() {
15556
+ return Ad(function() {
15555
15557
  var y = d.current;
15556
15558
  if (y) {
15557
15559
  var E = s === "fixed", A = a && !E, T = bF({
@@ -15648,7 +15650,7 @@ var rC = function(e) {
15648
15650
  });
15649
15651
  }
15650
15652
  }, [i, a, f, v == null ? void 0 : v.offset, v == null ? void 0 : v.rect.left, v == null ? void 0 : v.rect.width]);
15651
- Td(function() {
15653
+ Ad(function() {
15652
15654
  x();
15653
15655
  }, [x]);
15654
15656
  var w = fe(function() {
@@ -15656,7 +15658,7 @@ var rC = function(e) {
15656
15658
  elementResize: "ResizeObserver" in window
15657
15659
  }));
15658
15660
  }, [i, x]);
15659
- Td(function() {
15661
+ Ad(function() {
15660
15662
  w();
15661
15663
  }, [w]);
15662
15664
  var y = fe(function(A) {
@@ -15816,7 +15818,7 @@ var zF = process.env.NODE_ENV === "production" ? {
15816
15818
  color: r ? s.neutral60 : s.neutral20,
15817
15819
  padding: a * 2
15818
15820
  });
15819
- }, nu = function(e) {
15821
+ }, tu = function(e) {
15820
15822
  var n = e.delay, r = e.offset;
15821
15823
  return pe("span", {
15822
15824
  css: /* @__PURE__ */ Op({
@@ -15839,13 +15841,13 @@ var zF = process.env.NODE_ENV === "production" ? {
15839
15841
  }), "loadingIndicator", {
15840
15842
  indicator: !0,
15841
15843
  "loading-indicator": !0
15842
- }), n), pe(nu, {
15844
+ }), n), pe(tu, {
15843
15845
  delay: 0,
15844
15846
  offset: r
15845
- }), pe(nu, {
15847
+ }), pe(tu, {
15846
15848
  delay: 160,
15847
15849
  offset: !0
15848
- }), pe(nu, {
15850
+ }), pe(tu, {
15849
15851
  delay: 320,
15850
15852
  offset: !r
15851
15853
  }));
@@ -16117,7 +16119,7 @@ var bV = function(e) {
16117
16119
  "single-value": !0,
16118
16120
  "single-value--is-disabled": r
16119
16121
  }), i), n);
16120
- }, kV = TV, tc = {
16122
+ }, kV = TV, ec = {
16121
16123
  ClearIndicator: $F,
16122
16124
  Control: QF,
16123
16125
  DropdownIndicator: HF,
@@ -16144,7 +16146,7 @@ var bV = function(e) {
16144
16146
  SingleValue: kV,
16145
16147
  ValueContainer: FF
16146
16148
  }, MV = function(e) {
16147
- return me(me({}, tc), e.components);
16149
+ return me(me({}, ec), e.components);
16148
16150
  }, Gg = Number.isNaN || function(e) {
16149
16151
  return typeof e == "number" && e !== e;
16150
16152
  };
@@ -16318,7 +16320,7 @@ var NV = process.env.NODE_ENV === "production" ? {
16318
16320
  "aria-relevant": "additions text",
16319
16321
  role: "log"
16320
16322
  }, s && !z && L));
16321
- }, LV = BV, kd = [{
16323
+ }, LV = BV, Td = [{
16322
16324
  base: "A",
16323
16325
  letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
16324
16326
  }, {
@@ -16570,12 +16572,12 @@ var NV = process.env.NODE_ENV === "production" ? {
16570
16572
  }, {
16571
16573
  base: "z",
16572
16574
  letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ"
16573
- }], jV = new RegExp("[" + kd.map(function(t) {
16575
+ }], jV = new RegExp("[" + Td.map(function(t) {
16574
16576
  return t.letters;
16575
16577
  }).join("") + "]", "g"), dC = {};
16576
- for (var ru = 0; ru < kd.length; ru++)
16577
- for (var iu = kd[ru], ou = 0; ou < iu.letters.length; ou++)
16578
- dC[iu.letters[ou]] = iu.base;
16578
+ for (var nu = 0; nu < Td.length; nu++)
16579
+ for (var ru = Td[nu], iu = 0; iu < ru.letters.length; iu++)
16580
+ dC[ru.letters[iu]] = ru.base;
16579
16581
  var fC = function(e) {
16580
16582
  return e.replace(jV, function(n) {
16581
16583
  return dC[n];
@@ -16852,7 +16854,7 @@ var sB = function(e) {
16852
16854
  baseUnit: hC,
16853
16855
  controlHeight: pB,
16854
16856
  menuGutter: hB
16855
- }, su = {
16857
+ }, ou = {
16856
16858
  borderRadius: fB,
16857
16859
  colors: dB,
16858
16860
  spacing: mB
@@ -16981,7 +16983,7 @@ function yB(t, e) {
16981
16983
  var n = t.focusedOption;
16982
16984
  return n && e.indexOf(n) > -1 ? n : e[0];
16983
16985
  }
16984
- var au = function(e, n) {
16986
+ var su = function(e, n) {
16985
16987
  var r, i = (r = e.find(function(o) {
16986
16988
  return o.data === n;
16987
16989
  })) === null || r === void 0 ? void 0 : r.id;
@@ -17091,7 +17093,7 @@ var xC = function(e) {
17091
17093
  removedValue: u
17092
17094
  });
17093
17095
  }, i.getFocusedOptionId = function(l) {
17094
- return au(i.state.focusableOptionsWithIds, l);
17096
+ return su(i.state.focusableOptionsWithIds, l);
17095
17097
  }, i.getFocusableOptionsWithIds = function() {
17096
17098
  return Kg(sa(i.props, i.state.selectValue), i.getElementId("option"));
17097
17099
  }, i.getValue = function() {
@@ -17151,7 +17153,7 @@ var xC = function(e) {
17151
17153
  return i.focusInput();
17152
17154
  }));
17153
17155
  }, i.onScroll = function(l) {
17154
- typeof i.props.closeMenuOnScroll == "boolean" ? l.target instanceof HTMLElement && ec(l.target) && i.props.onMenuClose() : typeof i.props.closeMenuOnScroll == "function" && i.props.closeMenuOnScroll(l) && i.props.onMenuClose();
17156
+ typeof i.props.closeMenuOnScroll == "boolean" ? l.target instanceof HTMLElement && Ql(l.target) && i.props.onMenuClose() : typeof i.props.closeMenuOnScroll == "function" && i.props.closeMenuOnScroll(l) && i.props.onMenuClose();
17155
17157
  }, i.onCompositionStart = function() {
17156
17158
  i.isComposing = !0;
17157
17159
  }, i.onCompositionEnd = function() {
@@ -17296,7 +17298,7 @@ var xC = function(e) {
17296
17298
  }
17297
17299
  }, i.state.instancePrefix = "react-select-" + (i.props.instanceId || ++xB), i.state.selectValue = Vg(r.value), r.menuIsOpen && i.state.selectValue.length) {
17298
17300
  var o = i.getFocusableOptionsWithIds(), s = i.buildFocusableOptions(), a = s.indexOf(i.state.selectValue[0]);
17299
- i.state.focusableOptionsWithIds = o, i.state.focusedOption = s[a], i.state.focusedOptionId = au(o, s[a]);
17301
+ i.state.focusableOptionsWithIds = o, i.state.focusedOption = s[a], i.state.focusedOptionId = su(o, s[a]);
17300
17302
  }
17301
17303
  return i;
17302
17304
  }
@@ -17421,7 +17423,7 @@ var xC = function(e) {
17421
17423
  // Getters
17422
17424
  // ==============================
17423
17425
  function() {
17424
- return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(su) : me(me({}, su), this.props.theme) : su;
17426
+ return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(ou) : me(me({}, ou), this.props.theme) : ou;
17425
17427
  }
17426
17428
  )
17427
17429
  }, {
@@ -17890,7 +17892,7 @@ var xC = function(e) {
17890
17892
  value: function(i, o) {
17891
17893
  var s = o.prevProps, a = o.clearFocusValueOnUpdate, l = o.inputIsHiddenAfterUpdate, c = o.ariaSelection, u = o.isFocused, d = o.prevWasFocused, f = o.instancePrefix, p = i.options, h = i.value, m = i.menuIsOpen, g = i.inputValue, v = i.isMulti, b = Vg(h), x = {};
17892
17894
  if (s && (h !== s.value || p !== s.options || m !== s.menuIsOpen || g !== s.inputValue)) {
17893
- var w = m ? vB(i, b) : [], y = m ? Kg(sa(i, b), "".concat(f, "-option")) : [], E = a ? bB(o, b) : null, A = yB(o, w), T = au(y, A);
17895
+ var w = m ? vB(i, b) : [], y = m ? Kg(sa(i, b), "".concat(f, "-option")) : [], E = a ? bB(o, b) : null, A = yB(o, w), T = su(y, A);
17894
17896
  x = {
17895
17897
  selectValue: b,
17896
17898
  focusedOption: A,
@@ -17984,9 +17986,9 @@ const SB = (t, e, n) => ({
17984
17986
  )
17985
17987
  }
17986
17988
  ),
17987
- /* @__PURE__ */ C.jsx(tc.Option, { isSelected: t, ...n })
17989
+ /* @__PURE__ */ C.jsx(ec.Option, { isSelected: t, ...n })
17988
17990
  ] });
17989
- }, EB = ({ classes: t, ...e }) => /* @__PURE__ */ C.jsx(tc.DropdownIndicator, { ...e, children: /* @__PURE__ */ C.jsx(
17991
+ }, EB = ({ classes: t, ...e }) => /* @__PURE__ */ C.jsx(ec.DropdownIndicator, { ...e, children: /* @__PURE__ */ C.jsx(
17990
17992
  Fe,
17991
17993
  {
17992
17994
  name: "arrows/arrowRight",
@@ -17996,7 +17998,7 @@ const SB = (t, e, n) => ({
17996
17998
  t == null ? void 0 : t.indicatorIcon
17997
17999
  )
17998
18000
  }
17999
- ) }), AB = ({ classes: t, ...e }) => /* @__PURE__ */ C.jsx(tc.MultiValueRemove, { ...e, children: /* @__PURE__ */ C.jsx(Fe, { name: "general/close", className: O("size-4 text-icon-blue-grey-800", t == null ? void 0 : t.multiRemoveIcon) }) }), b$ = ({
18001
+ ) }), AB = ({ classes: t, ...e }) => /* @__PURE__ */ C.jsx(ec.MultiValueRemove, { ...e, children: /* @__PURE__ */ C.jsx(Fe, { name: "general/close", className: O("size-4 text-icon-blue-grey-800", t == null ? void 0 : t.multiRemoveIcon) }) }), b$ = ({
18000
18002
  options: t,
18001
18003
  control: e,
18002
18004
  defaultValue: n,
@@ -18177,7 +18179,7 @@ const SB = (t, e, n) => ({
18177
18179
  ...a
18178
18180
  }) => {
18179
18181
  const l = I.useId(), c = I.useRef(null), { menuIsOpen: u, currentCurrencyOption: d, onSelectOption: f, onToggleMenu: p, onCloseMenu: h } = kB(s);
18180
- return Tf(c, h), /* @__PURE__ */ C.jsx(
18182
+ return Af(c, h), /* @__PURE__ */ C.jsx(
18181
18183
  Xt,
18182
18184
  {
18183
18185
  control: r,
@@ -18633,9 +18635,9 @@ class Z {
18633
18635
  }
18634
18636
  }
18635
18637
  Z.empty = new Z([], 0);
18636
- const lu = { index: 0, offset: 0 };
18638
+ const au = { index: 0, offset: 0 };
18637
18639
  function zs(t, e) {
18638
- return lu.index = t, lu.offset = e, lu;
18640
+ return au.index = t, au.offset = e, au;
18639
18641
  }
18640
18642
  function Fa(t, e) {
18641
18643
  if (t === e)
@@ -18661,7 +18663,7 @@ function Fa(t, e) {
18661
18663
  }
18662
18664
  return !0;
18663
18665
  }
18664
- let $e = class Md {
18666
+ let $e = class kd {
18665
18667
  /**
18666
18668
  @internal
18667
18669
  */
@@ -18759,8 +18761,8 @@ let $e = class Md {
18759
18761
  */
18760
18762
  static setFrom(e) {
18761
18763
  if (!e || Array.isArray(e) && e.length == 0)
18762
- return Md.none;
18763
- if (e instanceof Md)
18764
+ return kd.none;
18765
+ if (e instanceof kd)
18764
18766
  return [e];
18765
18767
  let n = e.slice();
18766
18768
  return n.sort((r, i) => r.type.rank - i.type.rank), n;
@@ -18894,7 +18896,7 @@ function TC(t, e) {
18894
18896
  if (!e.type.compatibleContent(t.type))
18895
18897
  throw new Va("Cannot join " + e.type.name + " onto " + t.type.name);
18896
18898
  }
18897
- function Od(t, e, n) {
18899
+ function Md(t, e, n) {
18898
18900
  let r = t.node(n);
18899
18901
  return TC(r, e.node(n)), r;
18900
18902
  }
@@ -18913,13 +18915,13 @@ function qr(t, e) {
18913
18915
  return t.type.checkContent(e), t.copy(e);
18914
18916
  }
18915
18917
  function kC(t, e, n, r, i) {
18916
- let o = t.depth > i && Od(t, e, i + 1), s = r.depth > i && Od(n, r, i + 1), a = [];
18918
+ let o = t.depth > i && Md(t, e, i + 1), s = r.depth > i && Md(n, r, i + 1), a = [];
18917
18919
  return Fo(null, t, i, a), o && s && e.index(i) == n.index(i) ? (TC(o, s), Kr(qr(o, kC(t, e, n, r, i + 1)), a)) : (o && Kr(qr(o, Ba(t, e, i + 1)), a), Fo(e, n, i, a), s && Kr(qr(s, Ba(n, r, i + 1)), a)), Fo(r, null, i, a), new Z(a);
18918
18920
  }
18919
18921
  function Ba(t, e, n) {
18920
18922
  let r = [];
18921
18923
  if (Fo(null, t, n, r), t.depth > n) {
18922
- let i = Od(t, e, n + 1);
18924
+ let i = Md(t, e, n + 1);
18923
18925
  Kr(qr(i, Ba(t, e, n + 1)), r);
18924
18926
  }
18925
18927
  return Fo(e, null, n, r), new Z(r);
@@ -19227,7 +19229,7 @@ class La {
19227
19229
  }
19228
19230
  }
19229
19231
  const FB = /* @__PURE__ */ Object.create(null);
19230
- let mr = class Pd {
19232
+ let mr = class Od {
19231
19233
  /**
19232
19234
  @internal
19233
19235
  */
@@ -19346,14 +19348,14 @@ let mr = class Pd {
19346
19348
  the given content (or empty, if no content is given).
19347
19349
  */
19348
19350
  copy(e = null) {
19349
- return e == this.content ? this : new Pd(this.type, this.attrs, e, this.marks);
19351
+ return e == this.content ? this : new Od(this.type, this.attrs, e, this.marks);
19350
19352
  }
19351
19353
  /**
19352
19354
  Create a copy of this node, with the given set of marks instead
19353
19355
  of the node's own marks.
19354
19356
  */
19355
19357
  mark(e) {
19356
- return e == this.marks ? this : new Pd(this.type, this.attrs, this.content, e);
19358
+ return e == this.marks ? this : new Od(this.type, this.attrs, this.content, e);
19357
19359
  }
19358
19360
  /**
19359
19361
  Create a copy of this node with only the content between the
@@ -20213,7 +20215,7 @@ class XB {
20213
20215
  return !this.hasDefault;
20214
20216
  }
20215
20217
  }
20216
- class nc {
20218
+ class tc {
20217
20219
  /**
20218
20220
  @internal
20219
20221
  */
@@ -20235,7 +20237,7 @@ class nc {
20235
20237
  */
20236
20238
  static compile(e, n) {
20237
20239
  let r = /* @__PURE__ */ Object.create(null), i = 0;
20238
- return e.forEach((o, s) => r[o] = new nc(o, i++, n, s)), r;
20240
+ return e.forEach((o, s) => r[o] = new tc(o, i++, n, s)), r;
20239
20241
  }
20240
20242
  /**
20241
20243
  When there is a mark of this type in the given set, a new set
@@ -20277,7 +20279,7 @@ class BC {
20277
20279
  let n = this.spec = {};
20278
20280
  for (let i in e)
20279
20281
  n[i] = e[i];
20280
- n.nodes = mt.from(e.nodes), n.marks = mt.from(e.marks || {}), this.nodes = nv.compile(this.spec.nodes, this), this.marks = nc.compile(this.spec.marks, this);
20282
+ n.nodes = mt.from(e.nodes), n.marks = mt.from(e.marks || {}), this.nodes = nv.compile(this.spec.nodes, this), this.marks = tc.compile(this.spec.marks, this);
20281
20283
  let r = /* @__PURE__ */ Object.create(null);
20282
20284
  for (let i in this.nodes) {
20283
20285
  if (i in this.marks)
@@ -20882,7 +20884,7 @@ class hi {
20882
20884
  nodes.
20883
20885
  */
20884
20886
  serializeFragment(e, n = {}, r) {
20885
- r || (r = cu(n).createDocumentFragment());
20887
+ r || (r = lu(n).createDocumentFragment());
20886
20888
  let i = r, o = [];
20887
20889
  return e.forEach((s) => {
20888
20890
  if (o.length || s.marks.length) {
@@ -20911,7 +20913,7 @@ class hi {
20911
20913
  @internal
20912
20914
  */
20913
20915
  serializeNodeInner(e, n) {
20914
- let { dom: r, contentDOM: i } = aa(cu(n), this.nodes[e.type.name](e), null, e.attrs);
20916
+ let { dom: r, contentDOM: i } = aa(lu(n), this.nodes[e.type.name](e), null, e.attrs);
20915
20917
  if (i) {
20916
20918
  if (e.isLeaf)
20917
20919
  throw new RangeError("Content hole not allowed in a leaf node spec");
@@ -20939,7 +20941,7 @@ class hi {
20939
20941
  */
20940
20942
  serializeMark(e, n, r = {}) {
20941
20943
  let i = this.marks[e.type.name];
20942
- return i && aa(cu(r), i(e, n), null, e.attrs);
20944
+ return i && aa(lu(r), i(e, n), null, e.attrs);
20943
20945
  }
20944
20946
  static renderSpec(e, n, r = null, i) {
20945
20947
  return aa(e, n, r, i);
@@ -20974,7 +20976,7 @@ function lv(t) {
20974
20976
  }
20975
20977
  return e;
20976
20978
  }
20977
- function cu(t) {
20979
+ function lu(t) {
20978
20980
  return t.document || window.document;
20979
20981
  }
20980
20982
  const cv = /* @__PURE__ */ new WeakMap();
@@ -21049,7 +21051,7 @@ function tL(t) {
21049
21051
  return (t - (t & GC)) / zC;
21050
21052
  }
21051
21053
  const _C = 1, HC = 2, la = 4, WC = 8;
21052
- class Rd {
21054
+ class Pd {
21053
21055
  /**
21054
21056
  @internal
21055
21057
  */
@@ -21126,11 +21128,11 @@ class _t {
21126
21128
  if (r)
21127
21129
  return p;
21128
21130
  let h = e == (n < 0 ? l : d) ? null : eL(a / 3, e - l), m = e == l ? HC : e == d ? _C : la;
21129
- return (n < 0 ? e != l : e != d) && (m |= WC), new Rd(p, m, h);
21131
+ return (n < 0 ? e != l : e != d) && (m |= WC), new Pd(p, m, h);
21130
21132
  }
21131
21133
  i += u - c;
21132
21134
  }
21133
- return r ? e + i : new Rd(e + i, 0, null);
21135
+ return r ? e + i : new Pd(e + i, 0, null);
21134
21136
  }
21135
21137
  /**
21136
21138
  @internal
@@ -21286,10 +21288,10 @@ class Bi {
21286
21288
  }
21287
21289
  i |= a.delInfo, e = a.pos;
21288
21290
  }
21289
- return r ? e : new Rd(e, i, null);
21291
+ return r ? e : new Pd(e, i, null);
21290
21292
  }
21291
21293
  }
21292
- const uu = /* @__PURE__ */ Object.create(null);
21294
+ const cu = /* @__PURE__ */ Object.create(null);
21293
21295
  class Ot {
21294
21296
  /**
21295
21297
  Get the step map that represents the changes made by this step,
@@ -21314,7 +21316,7 @@ class Ot {
21314
21316
  static fromJSON(e, n) {
21315
21317
  if (!n || !n.stepType)
21316
21318
  throw new RangeError("Invalid input for Step.fromJSON");
21317
- let r = uu[n.stepType];
21319
+ let r = cu[n.stepType];
21318
21320
  if (!r)
21319
21321
  throw new RangeError(`No step type ${n.stepType} defined`);
21320
21322
  return r.fromJSON(e, n);
@@ -21326,9 +21328,9 @@ class Ot {
21326
21328
  that's unlikely to clash with steps from other modules.
21327
21329
  */
21328
21330
  static jsonID(e, n) {
21329
- if (e in uu)
21331
+ if (e in cu)
21330
21332
  throw new RangeError("Duplicate use of step JSON ID " + e);
21331
- return uu[e] = n, n.prototype.jsonID = e, n;
21333
+ return cu[e] = n, n.prototype.jsonID = e, n;
21332
21334
  }
21333
21335
  }
21334
21336
  class at {
@@ -21544,7 +21546,7 @@ class dt extends Ot {
21544
21546
  super(), this.from = e, this.to = n, this.slice = r, this.structure = i;
21545
21547
  }
21546
21548
  apply(e) {
21547
- return this.structure && Dd(e, this.from, this.to) ? at.fail("Structure replace would overwrite content") : at.fromReplace(e, this.from, this.to, this.slice);
21549
+ return this.structure && Rd(e, this.from, this.to) ? at.fail("Structure replace would overwrite content") : at.fromReplace(e, this.from, this.to, this.slice);
21548
21550
  }
21549
21551
  getMap() {
21550
21552
  return new _t([this.from, this.to - this.from, this.slice.size]);
@@ -21593,7 +21595,7 @@ class ft extends Ot {
21593
21595
  super(), this.from = e, this.to = n, this.gapFrom = r, this.gapTo = i, this.slice = o, this.insert = s, this.structure = a;
21594
21596
  }
21595
21597
  apply(e) {
21596
- if (this.structure && (Dd(e, this.from, this.gapFrom) || Dd(e, this.gapTo, this.to)))
21598
+ if (this.structure && (Rd(e, this.from, this.gapFrom) || Rd(e, this.gapTo, this.to)))
21597
21599
  return at.fail("Structure gap-replace would overwrite content");
21598
21600
  let n = e.slice(this.gapFrom, this.gapTo);
21599
21601
  if (n.openStart || n.openEnd)
@@ -21640,7 +21642,7 @@ class ft extends Ot {
21640
21642
  }
21641
21643
  }
21642
21644
  Ot.jsonID("replaceAround", ft);
21643
- function Dd(t, e, n) {
21645
+ function Rd(t, e, n) {
21644
21646
  let r = t.resolve(e), i = n - e, o = r.depth;
21645
21647
  for (; i > 0 && o > 0 && r.indexAfter(o) == r.node(o).childCount; )
21646
21648
  o--, i--;
@@ -21675,7 +21677,7 @@ function rL(t, e, n, r) {
21675
21677
  return;
21676
21678
  o++;
21677
21679
  let l = null;
21678
- if (r instanceof nc) {
21680
+ if (r instanceof tc) {
21679
21681
  let c = s.marks, u;
21680
21682
  for (; u = r.isInSet(c); )
21681
21683
  (l || (l = [])).push(u), c = u.removeFromSet(c);
@@ -21874,7 +21876,7 @@ function pL(t, e) {
21874
21876
  function YC(t, e) {
21875
21877
  return !!(t && e && !t.isLeaf && pL(t, e));
21876
21878
  }
21877
- function rc(t, e, n = -1) {
21879
+ function nc(t, e, n = -1) {
21878
21880
  let r = t.resolve(e);
21879
21881
  for (let i = r.depth; ; i--) {
21880
21882
  let o, s, a = r.index(i);
@@ -21947,7 +21949,7 @@ function ZC(t, e, n) {
21947
21949
  }
21948
21950
  return null;
21949
21951
  }
21950
- function ic(t, e, n = e, r = le.empty) {
21952
+ function rc(t, e, n = e, r = le.empty) {
21951
21953
  if (e == n && !r.size)
21952
21954
  return null;
21953
21955
  let i = t.resolve(e), o = t.resolve(n);
@@ -22002,7 +22004,7 @@ class gL {
22002
22004
  for (let n = 1; n <= 2; n++)
22003
22005
  for (let r = n == 1 ? e : this.unplaced.openStart; r >= 0; r--) {
22004
22006
  let i, o = null;
22005
- r ? (o = du(this.unplaced.content, r - 1).firstChild, i = o.content) : i = this.unplaced.content;
22007
+ r ? (o = uu(this.unplaced.content, r - 1).firstChild, i = o.content) : i = this.unplaced.content;
22006
22008
  let s = i.firstChild;
22007
22009
  for (let a = this.depth; a >= 0; a--) {
22008
22010
  let { type: l, match: c } = this.frontier[a], u, d = null;
@@ -22016,11 +22018,11 @@ class gL {
22016
22018
  }
22017
22019
  }
22018
22020
  openMore() {
22019
- let { content: e, openStart: n, openEnd: r } = this.unplaced, i = du(e, n);
22021
+ let { content: e, openStart: n, openEnd: r } = this.unplaced, i = uu(e, n);
22020
22022
  return !i.childCount || i.firstChild.isLeaf ? !1 : (this.unplaced = new le(e, n + 1, Math.max(r, i.size + n >= e.size - r ? n + 1 : 0)), !0);
22021
22023
  }
22022
22024
  dropNode() {
22023
- let { content: e, openStart: n, openEnd: r } = this.unplaced, i = du(e, n);
22025
+ let { content: e, openStart: n, openEnd: r } = this.unplaced, i = uu(e, n);
22024
22026
  if (i.childCount <= 1 && n > 0) {
22025
22027
  let o = e.size - n <= n + i.size;
22026
22028
  this.unplaced = new le(Ao(e, n - 1, 1), n - 1, o ? n - 1 : r);
@@ -22061,7 +22063,7 @@ class gL {
22061
22063
  if (!this.$to.parent.isTextblock)
22062
22064
  return -1;
22063
22065
  let e = this.frontier[this.depth], n;
22064
- if (!e.type.isTextblock || !fu(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (n = this.findCloseLevel(this.$to)) && n.depth == this.depth)
22066
+ if (!e.type.isTextblock || !du(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (n = this.findCloseLevel(this.$to)) && n.depth == this.depth)
22065
22067
  return -1;
22066
22068
  let { depth: r } = this.$to, i = this.$to.after(r);
22067
22069
  for (; r > 1 && i == this.$to.end(--r); )
@@ -22070,10 +22072,10 @@ class gL {
22070
22072
  }
22071
22073
  findCloseLevel(e) {
22072
22074
  e: for (let n = Math.min(this.depth, e.depth); n >= 0; n--) {
22073
- let { match: r, type: i } = this.frontier[n], o = n < e.depth && e.end(n + 1) == e.pos + (e.depth - (n + 1)), s = fu(e, n, i, r, o);
22075
+ let { match: r, type: i } = this.frontier[n], o = n < e.depth && e.end(n + 1) == e.pos + (e.depth - (n + 1)), s = du(e, n, i, r, o);
22074
22076
  if (s) {
22075
22077
  for (let a = n - 1; a >= 0; a--) {
22076
- let { match: l, type: c } = this.frontier[a], u = fu(e, a, c, l, !0);
22078
+ let { match: l, type: c } = this.frontier[a], u = du(e, a, c, l, !0);
22077
22079
  if (!u || u.childCount)
22078
22080
  continue e;
22079
22081
  }
@@ -22109,7 +22111,7 @@ function Ao(t, e, n) {
22109
22111
  function To(t, e, n) {
22110
22112
  return e == 0 ? t.append(n) : t.replaceChild(t.childCount - 1, t.lastChild.copy(To(t.lastChild.content, e - 1, n)));
22111
22113
  }
22112
- function du(t, e) {
22114
+ function uu(t, e) {
22113
22115
  for (let n = 0; n < e; n++)
22114
22116
  t = t.firstChild.content;
22115
22117
  return t;
@@ -22120,7 +22122,7 @@ function UC(t, e, n) {
22120
22122
  let r = t.content;
22121
22123
  return e > 1 && (r = r.replaceChild(0, UC(r.firstChild, e - 1, r.childCount == 1 ? n - 1 : 0))), e > 0 && (r = t.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(t.type.contentMatch.matchFragment(r).fillBefore(Z.empty, !0)))), t.copy(r);
22122
22124
  }
22123
- function fu(t, e, n, r, i) {
22125
+ function du(t, e, n, r, i) {
22124
22126
  let o = t.node(e), s = i ? t.indexAfter(e) : t.index(e);
22125
22127
  if (s == o.childCount && !n.compatibleContent(o.type))
22126
22128
  return null;
@@ -22355,7 +22357,7 @@ class QC {
22355
22357
  given `slice`.
22356
22358
  */
22357
22359
  replace(e, n = e, r = le.empty) {
22358
- let i = ic(this.doc, e, n, r);
22360
+ let i = rc(this.doc, e, n, r);
22359
22361
  return i && this.step(i), this;
22360
22362
  }
22361
22363
  /**
@@ -22526,7 +22528,7 @@ class QC {
22526
22528
  return Np(this, e, n, r), this;
22527
22529
  }
22528
22530
  }
22529
- const pu = /* @__PURE__ */ Object.create(null);
22531
+ const fu = /* @__PURE__ */ Object.create(null);
22530
22532
  class Ee {
22531
22533
  /**
22532
22534
  Initialize a selection with the head and anchor and ranges. If no
@@ -22662,7 +22664,7 @@ class Ee {
22662
22664
  static fromJSON(e, n) {
22663
22665
  if (!n || !n.type)
22664
22666
  throw new RangeError("Invalid input for Selection.fromJSON");
22665
- let r = pu[n.type];
22667
+ let r = fu[n.type];
22666
22668
  if (!r)
22667
22669
  throw new RangeError(`No selection type ${n.type} defined`);
22668
22670
  return r.fromJSON(e, n);
@@ -22674,9 +22676,9 @@ class Ee {
22674
22676
  clash with classes from other modules.
22675
22677
  */
22676
22678
  static jsonID(e, n) {
22677
- if (e in pu)
22679
+ if (e in fu)
22678
22680
  throw new RangeError("Duplicate use of selection JSON ID " + e);
22679
- return pu[e] = n, n.prototype.jsonID = e, n;
22681
+ return fu[e] = n, n.prototype.jsonID = e, n;
22680
22682
  }
22681
22683
  /**
22682
22684
  Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
@@ -22735,7 +22737,7 @@ class Ce extends Ee {
22735
22737
  return e instanceof Ce && e.anchor == this.anchor && e.head == this.head;
22736
22738
  }
22737
22739
  getBookmark() {
22738
- return new oc(this.anchor, this.head);
22740
+ return new ic(this.anchor, this.head);
22739
22741
  }
22740
22742
  toJSON() {
22741
22743
  return { type: "text", anchor: this.anchor, head: this.head };
@@ -22776,12 +22778,12 @@ class Ce extends Ee {
22776
22778
  }
22777
22779
  }
22778
22780
  Ee.jsonID("text", Ce);
22779
- class oc {
22781
+ class ic {
22780
22782
  constructor(e, n) {
22781
22783
  this.anchor = e, this.head = n;
22782
22784
  }
22783
22785
  map(e) {
22784
- return new oc(e.map(this.anchor), e.map(this.head));
22786
+ return new ic(e.map(this.anchor), e.map(this.head));
22785
22787
  }
22786
22788
  resolve(e) {
22787
22789
  return Ce.between(e.resolve(this.anchor), e.resolve(this.head));
@@ -22842,7 +22844,7 @@ class Vp {
22842
22844
  }
22843
22845
  map(e) {
22844
22846
  let { deleted: n, pos: r } = e.mapResult(this.anchor);
22845
- return n ? new oc(r, r) : new Vp(r);
22847
+ return n ? new ic(r, r) : new Vp(r);
22846
22848
  }
22847
22849
  resolve(e) {
22848
22850
  let n = e.resolve(this.anchor), r = n.nodeAfter;
@@ -23115,7 +23117,7 @@ const EL = [
23115
23117
  }
23116
23118
  })
23117
23119
  ];
23118
- class hu {
23120
+ class pu {
23119
23121
  constructor(e, n) {
23120
23122
  this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = EL.slice(), n && n.forEach((r) => {
23121
23123
  if (this.pluginsByKey[r.key])
@@ -23216,7 +23218,7 @@ class Ni {
23216
23218
  Create a new state.
23217
23219
  */
23218
23220
  static create(e) {
23219
- let n = new hu(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new Ni(n);
23221
+ let n = new pu(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new Ni(n);
23220
23222
  for (let i = 0; i < n.fields.length; i++)
23221
23223
  r[n.fields[i].name] = n.fields[i].init(e, r);
23222
23224
  return r;
@@ -23230,7 +23232,7 @@ class Ni {
23230
23232
  configuration object..
23231
23233
  */
23232
23234
  reconfigure(e) {
23233
- let n = new hu(this.schema, e.plugins), r = n.fields, i = new Ni(n);
23235
+ let n = new pu(this.schema, e.plugins), r = n.fields, i = new Ni(n);
23234
23236
  for (let o = 0; o < r.length; o++) {
23235
23237
  let s = r[o].name;
23236
23238
  i[s] = this.hasOwnProperty(s) ? this[s] : r[o].init(e, i);
@@ -23267,7 +23269,7 @@ class Ni {
23267
23269
  throw new RangeError("Invalid input for EditorState.fromJSON");
23268
23270
  if (!e.schema)
23269
23271
  throw new RangeError("Required config field 'schema' missing");
23270
- let i = new hu(e.schema, e.plugins), o = new Ni(i);
23272
+ let i = new pu(e.schema, e.plugins), o = new Ni(i);
23271
23273
  return i.fields.forEach((s) => {
23272
23274
  if (s.name == "doc")
23273
23275
  o.doc = mr.fromJSON(e.schema, n.doc);
@@ -23310,9 +23312,9 @@ class Ct {
23310
23312
  return e[this.key];
23311
23313
  }
23312
23314
  }
23313
- const mu = /* @__PURE__ */ Object.create(null);
23315
+ const hu = /* @__PURE__ */ Object.create(null);
23314
23316
  function tw(t) {
23315
- return t in mu ? t + "$" + ++mu[t] : (mu[t] = 0, t + "$");
23317
+ return t in hu ? t + "$" + ++hu[t] : (hu[t] = 0, t + "$");
23316
23318
  }
23317
23319
  class Zt {
23318
23320
  /**
@@ -23343,12 +23345,12 @@ const bt = function(t) {
23343
23345
  let e = t.assignedSlot || t.parentNode;
23344
23346
  return e && e.nodeType == 11 ? e.host : e;
23345
23347
  };
23346
- let Nd = null;
23348
+ let Dd = null;
23347
23349
  const jn = function(t, e, n) {
23348
- let r = Nd || (Nd = document.createRange());
23350
+ let r = Dd || (Dd = document.createRange());
23349
23351
  return r.setEnd(t, n ?? t.nodeValue.length), r.setStart(t, e || 0), r;
23350
23352
  }, AL = function() {
23351
- Nd = null;
23353
+ Dd = null;
23352
23354
  }, ai = function(t, e, n, r) {
23353
23355
  return n && (bv(t, e, n, r, -1) || bv(t, e, n, r, 1));
23354
23356
  }, TL = /^(img|br|input|textarea|hr)$/i;
@@ -23416,7 +23418,7 @@ function ws(t) {
23416
23418
  ;
23417
23419
  return e && e.node && e.node.isBlock && (e.dom == t || e.contentDOM == t);
23418
23420
  }
23419
- const sc = function(t) {
23421
+ const oc = function(t) {
23420
23422
  return t.focusNode && ai(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
23421
23423
  };
23422
23424
  function Br(t, e) {
@@ -23443,9 +23445,9 @@ function RL(t, e, n) {
23443
23445
  return { node: r.startContainer, offset: Math.min(nn(r.startContainer), r.startOffset) };
23444
23446
  }
23445
23447
  }
23446
- const Pn = typeof navigator < "u" ? navigator : null, yv = typeof document < "u" ? document : null, Tr = Pn && Pn.userAgent || "", Fd = /Edge\/(\d+)/.exec(Tr), nw = /MSIE \d/.exec(Tr), Vd = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Tr), Gt = !!(nw || Vd || Fd), vr = nw ? document.documentMode : Vd ? +Vd[1] : Fd ? +Fd[1] : 0, dn = !Gt && /gecko\/(\d+)/i.test(Tr);
23448
+ const Pn = typeof navigator < "u" ? navigator : null, yv = typeof document < "u" ? document : null, Tr = Pn && Pn.userAgent || "", Nd = /Edge\/(\d+)/.exec(Tr), nw = /MSIE \d/.exec(Tr), Fd = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Tr), Gt = !!(nw || Fd || Nd), vr = nw ? document.documentMode : Fd ? +Fd[1] : Nd ? +Nd[1] : 0, dn = !Gt && /gecko\/(\d+)/i.test(Tr);
23447
23449
  dn && +(/Firefox\/(\d+)/.exec(Tr) || [0, 0])[1];
23448
- const Bd = !Gt && /Chrome\/(\d+)/.exec(Tr), Tt = !!Bd, rw = Bd ? +Bd[1] : 0, Nt = !Gt && !!Pn && /Apple Computer/.test(Pn.vendor), Ji = Nt && (/Mobile\/\w+/.test(Tr) || !!Pn && Pn.maxTouchPoints > 2), en = Ji || (Pn ? /Mac/.test(Pn.platform) : !1), DL = Pn ? /Win/.test(Pn.platform) : !1, an = /Android \d/.test(Tr), Ss = !!yv && "webkitFontSmoothing" in yv.documentElement.style, NL = Ss ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
23450
+ const Vd = !Gt && /Chrome\/(\d+)/.exec(Tr), Tt = !!Vd, rw = Vd ? +Vd[1] : 0, Nt = !Gt && !!Pn && /Apple Computer/.test(Pn.vendor), Ji = Nt && (/Mobile\/\w+/.test(Tr) || !!Pn && Pn.maxTouchPoints > 2), en = Ji || (Pn ? /Mac/.test(Pn.platform) : !1), DL = Pn ? /Win/.test(Pn.platform) : !1, an = /Android \d/.test(Tr), Ss = !!yv && "webkitFontSmoothing" in yv.documentElement.style, NL = Ss ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
23449
23451
  function FL(t) {
23450
23452
  let e = t.defaultView && t.defaultView.visualViewport;
23451
23453
  return e ? {
@@ -23679,14 +23681,14 @@ function lw(t, e, n) {
23679
23681
  if (o == null && i && (n < 0 || i == nn(r))) {
23680
23682
  let l = r.childNodes[i - 1];
23681
23683
  if (l.nodeType == 1)
23682
- return gu(l.getBoundingClientRect(), !1);
23684
+ return mu(l.getBoundingClientRect(), !1);
23683
23685
  }
23684
23686
  if (o == null && i < nn(r)) {
23685
23687
  let l = r.childNodes[i];
23686
23688
  if (l.nodeType == 1)
23687
- return gu(l.getBoundingClientRect(), !0);
23689
+ return mu(l.getBoundingClientRect(), !0);
23688
23690
  }
23689
- return gu(r.getBoundingClientRect(), n >= 0);
23691
+ return mu(r.getBoundingClientRect(), n >= 0);
23690
23692
  }
23691
23693
  if (o == null && i && (n < 0 || i == nn(r))) {
23692
23694
  let l = r.childNodes[i - 1], c = l.nodeType == 3 ? jn(l, nn(l) - (s ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
@@ -23709,7 +23711,7 @@ function bo(t, e) {
23709
23711
  let n = e ? t.left : t.right;
23710
23712
  return { top: t.top, bottom: t.bottom, left: n, right: n };
23711
23713
  }
23712
- function gu(t, e) {
23714
+ function mu(t, e) {
23713
23715
  if (t.height == 0)
23714
23716
  return t;
23715
23717
  let n = e ? t.top : t.bottom;
@@ -24194,7 +24196,7 @@ class li extends Is {
24194
24196
  }
24195
24197
  slice(e, n, r) {
24196
24198
  let i = li.create(this.parent, this.mark, !0, r), o = this.children, s = this.size;
24197
- n < s && (o = jd(o, n, s, r)), e > 0 && (o = jd(o, 0, e, r));
24199
+ n < s && (o = Ld(o, n, s, r)), e > 0 && (o = Ld(o, 0, e, r));
24198
24200
  for (let a = 0; a < o.length; a++)
24199
24201
  o[a].parent = i;
24200
24202
  return i.children = o, i;
@@ -24234,7 +24236,7 @@ class br extends Is {
24234
24236
  } else u || ({ dom: u, contentDOM: d } = hi.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
24235
24237
  !d && !n.isText && u.nodeName != "BR" && (u.hasAttribute("contenteditable") || (u.contentEditable = "false"), n.type.spec.draggable && (u.draggable = !0));
24236
24238
  let f = u;
24237
- return u = hw(u, r, n), c ? l = new KL(e, n, r, i, u, d || null, f, c, o, s + 1) : n.isText ? new ac(e, n, r, i, u, f, o) : new br(e, n, r, i, u, d || null, f, o, s + 1);
24239
+ return u = hw(u, r, n), c ? l = new KL(e, n, r, i, u, d || null, f, c, o, s + 1) : n.isText ? new sc(e, n, r, i, u, f, o) : new br(e, n, r, i, u, d || null, f, o, s + 1);
24238
24240
  }
24239
24241
  parseRule() {
24240
24242
  if (this.node.type.spec.reparseInView)
@@ -24304,7 +24306,7 @@ class br extends Is {
24304
24306
  o.pmViewDesc && (o.pmViewDesc = void 0);
24305
24307
  }
24306
24308
  let s = new UL(this, o, n, i);
24307
- e.input.compositionNodes.push(s), this.children = jd(this.children, r, r + i.length, e, s);
24309
+ e.input.compositionNodes.push(s), this.children = Ld(this.children, r, r + i.length, e, s);
24308
24310
  }
24309
24311
  // If this desc must be updated to match the given node decoration,
24310
24312
  // do so and return true.
@@ -24318,7 +24320,7 @@ class br extends Is {
24318
24320
  if (_a(e, this.outerDeco))
24319
24321
  return;
24320
24322
  let n = this.nodeDOM.nodeType != 1, r = this.dom;
24321
- this.dom = pw(this.dom, this.nodeDOM, Ld(this.outerDeco, this.node, n), Ld(e, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
24323
+ this.dom = pw(this.dom, this.nodeDOM, Bd(this.outerDeco, this.node, n), Bd(e, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
24322
24324
  }
24323
24325
  // Mark this node as being the selected node.
24324
24326
  selectNode() {
@@ -24337,7 +24339,7 @@ function Av(t, e, n, r, i) {
24337
24339
  let o = new br(void 0, t, e, n, r, r, r, i, 0);
24338
24340
  return o.contentDOM && o.updateChildren(i, 0), o;
24339
24341
  }
24340
- class ac extends br {
24342
+ class sc extends br {
24341
24343
  constructor(e, n, r, i, o, s, a) {
24342
24344
  super(e, n, r, i, o, null, s, a, 0);
24343
24345
  }
@@ -24368,7 +24370,7 @@ class ac extends br {
24368
24370
  }
24369
24371
  slice(e, n, r) {
24370
24372
  let i = this.node.cut(e, n), o = document.createTextNode(i.text);
24371
- return new ac(this.parent, i, this.outerDeco, this.innerDeco, o, o, r);
24373
+ return new sc(this.parent, i, this.outerDeco, this.innerDeco, o, o, r);
24372
24374
  }
24373
24375
  markDirty(e, n) {
24374
24376
  super.markDirty(e, n), this.dom != this.nodeDOM && (e == 0 || n == this.nodeDOM.nodeValue.length) && (this.dirty = Rn);
@@ -24452,7 +24454,7 @@ const Bo = function(t) {
24452
24454
  };
24453
24455
  Bo.prototype = /* @__PURE__ */ Object.create(null);
24454
24456
  const Wr = [new Bo()];
24455
- function Ld(t, e, n) {
24457
+ function Bd(t, e, n) {
24456
24458
  if (t.length == 0)
24457
24459
  return Wr;
24458
24460
  let r = n ? Wr[0] : new Bo(), i = [r];
@@ -24505,7 +24507,7 @@ function qL(t, e, n) {
24505
24507
  }
24506
24508
  }
24507
24509
  function hw(t, e, n) {
24508
- return pw(t, t, Wr, Ld(e, n, t.nodeType != 1));
24510
+ return pw(t, t, Wr, Bd(e, n, t.nodeType != 1));
24509
24511
  }
24510
24512
  function _a(t, e) {
24511
24513
  if (t.length != e.length)
@@ -24653,7 +24655,7 @@ class QL {
24653
24655
  for (; e instanceof li; )
24654
24656
  n = e, e = n.children[n.children.length - 1];
24655
24657
  (!e || // Empty textblock
24656
- !(e instanceof ac) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Nt || Tt) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
24658
+ !(e instanceof sc) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Nt || Tt) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
24657
24659
  }
24658
24660
  addHackNode(e, n) {
24659
24661
  if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(e))
@@ -24777,7 +24779,7 @@ function ij(t, e, n, r) {
24777
24779
  }
24778
24780
  return -1;
24779
24781
  }
24780
- function jd(t, e, n, r, i) {
24782
+ function Ld(t, e, n, r, i) {
24781
24783
  let o = [];
24782
24784
  for (let s = 0, a = 0; s < t.length; s++) {
24783
24785
  let l = t[s], c = a, u = a += l.size;
@@ -24793,7 +24795,7 @@ function Lp(t, e = null) {
24793
24795
  if (s < 0)
24794
24796
  return null;
24795
24797
  let a = r.resolve(s), l, c;
24796
- if (sc(n)) {
24798
+ if (oc(n)) {
24797
24799
  for (l = s; i && !i.node; )
24798
24800
  i = i.parent;
24799
24801
  let d = i.node;
@@ -24849,15 +24851,15 @@ const kv = Nt || Tt && rw < 63;
24849
24851
  function Mv(t, e) {
24850
24852
  let { node: n, offset: r } = t.docView.domFromPos(e, 0), i = r < n.childNodes.length ? n.childNodes[r] : null, o = r ? n.childNodes[r - 1] : null;
24851
24853
  if (Nt && i && i.contentEditable == "false")
24852
- return vu(i);
24854
+ return gu(i);
24853
24855
  if ((!i || i.contentEditable == "false") && (!o || o.contentEditable == "false")) {
24854
24856
  if (i)
24855
- return vu(i);
24857
+ return gu(i);
24856
24858
  if (o)
24857
- return vu(o);
24859
+ return gu(o);
24858
24860
  }
24859
24861
  }
24860
- function vu(t) {
24862
+ function gu(t) {
24861
24863
  return t.contentEditable = "true", Nt && t.draggable && (t.draggable = !1, t.wasDraggable = !0), t;
24862
24864
  }
24863
24865
  function Ov(t) {
@@ -24910,7 +24912,7 @@ function aj(t) {
24910
24912
  let e = t.docView.domFromPos(t.state.selection.anchor, 0), n = t.domSelectionRange();
24911
24913
  return ai(e.node, e.offset, n.anchorNode, n.anchorOffset);
24912
24914
  }
24913
- function Gd(t, e) {
24915
+ function jd(t, e) {
24914
24916
  let { $anchor: n, $head: r } = t.selection, i = e > 0 ? n.max(r) : n.min(r), o = i.parent.inlineContent ? i.depth ? t.doc.resolve(e > 0 ? i.after() : i.before()) : null : i;
24915
24917
  return o && Ee.findFrom(o, e);
24916
24918
  }
@@ -24928,7 +24930,7 @@ function Dv(t, e, n) {
24928
24930
  return ir(t, new Ce(r.$anchor, s));
24929
24931
  } else if (r.empty) {
24930
24932
  if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
24931
- let i = Gd(t.state, e);
24933
+ let i = jd(t.state, e);
24932
24934
  return i && i instanceof ge ? ir(t, i) : !1;
24933
24935
  } else if (!(en && n.indexOf("m") > -1)) {
24934
24936
  let i = r.$head, o = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter, s;
@@ -24942,7 +24944,7 @@ function Dv(t, e, n) {
24942
24944
  if (r instanceof ge && r.node.isInline)
24943
24945
  return ir(t, new Ce(e > 0 ? r.$to : r.$from));
24944
24946
  {
24945
- let i = Gd(t.state, e);
24947
+ let i = jd(t.state, e);
24946
24948
  return i ? ir(t, i) : !1;
24947
24949
  }
24948
24950
  }
@@ -24991,7 +24993,7 @@ function lj(t) {
24991
24993
  }
24992
24994
  }
24993
24995
  }
24994
- s ? zd(t, n, r) : i && zd(t, i, o);
24996
+ s ? Gd(t, n, r) : i && Gd(t, i, o);
24995
24997
  }
24996
24998
  function cj(t) {
24997
24999
  let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset;
@@ -25023,7 +25025,7 @@ function cj(t) {
25023
25025
  }
25024
25026
  }
25025
25027
  }
25026
- o && zd(t, o, s);
25028
+ o && Gd(t, o, s);
25027
25029
  }
25028
25030
  function bw(t) {
25029
25031
  let e = t.pmViewDesc;
@@ -25053,7 +25055,7 @@ function dj(t, e) {
25053
25055
  t = n, e = t.childNodes.length;
25054
25056
  }
25055
25057
  }
25056
- function zd(t, e, n) {
25058
+ function Gd(t, e, n) {
25057
25059
  if (e.nodeType != 3) {
25058
25060
  let o, s;
25059
25061
  (s = uj(e, n)) ? (e = s, n = 0) : (o = dj(e, n)) && (e = o, n = o.nodeValue.length);
@@ -25061,7 +25063,7 @@ function zd(t, e, n) {
25061
25063
  let r = t.domSelection();
25062
25064
  if (!r)
25063
25065
  return;
25064
- if (sc(r)) {
25066
+ if (oc(r)) {
25065
25067
  let o = document.createRange();
25066
25068
  o.setEnd(e, n), o.setStart(e, n), r.removeAllRanges(), r.addRange(o);
25067
25069
  } else r.extend && r.extend(e, n);
@@ -25094,7 +25096,7 @@ function Fv(t, e, n) {
25094
25096
  return !1;
25095
25097
  let { $from: i, $to: o } = r;
25096
25098
  if (!i.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
25097
- let s = Gd(t.state, e);
25099
+ let s = jd(t.state, e);
25098
25100
  if (s && s instanceof ge)
25099
25101
  return ir(t, s);
25100
25102
  }
@@ -25289,12 +25291,12 @@ function Sw(t, e) {
25289
25291
  let n = t.content.replaceChild(t.childCount - 1, Sw(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(Z.empty, !0);
25290
25292
  return t.copy(n.append(r));
25291
25293
  }
25292
- function _d(t, e, n, r, i, o) {
25294
+ function zd(t, e, n, r, i, o) {
25293
25295
  let s = e < 0 ? t.firstChild : t.lastChild, a = s.content;
25294
- return t.childCount > 1 && (o = 0), i < r - 1 && (a = _d(a, e, n, r, i + 1, o)), i >= n && (a = e < 0 ? s.contentMatchAt(0).fillBefore(a, o <= i).append(a) : a.append(s.contentMatchAt(s.childCount).fillBefore(Z.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, s.copy(a));
25296
+ return t.childCount > 1 && (o = 0), i < r - 1 && (a = zd(a, e, n, r, i + 1, o)), i >= n && (a = e < 0 ? s.contentMatchAt(0).fillBefore(a, o <= i).append(a) : a.append(s.contentMatchAt(s.childCount).fillBefore(Z.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, s.copy(a));
25295
25297
  }
25296
25298
  function Lv(t, e, n) {
25297
- return e < t.openStart && (t = new le(_d(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new le(_d(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
25299
+ return e < t.openStart && (t = new le(zd(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new le(zd(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
25298
25300
  }
25299
25301
  const Iw = {
25300
25302
  thead: ["table"],
@@ -25311,10 +25313,10 @@ let jv = null;
25311
25313
  function Ew() {
25312
25314
  return jv || (jv = document.implementation.createHTMLDocument("title"));
25313
25315
  }
25314
- let bu = null;
25316
+ let vu = null;
25315
25317
  function vj(t) {
25316
25318
  let e = window.trustedTypes;
25317
- return e ? (bu || (bu = e.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), bu.createHTML(t)) : t;
25319
+ return e ? (vu || (vu = e.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), vu.createHTML(t)) : t;
25318
25320
  }
25319
25321
  function bj(t) {
25320
25322
  let e = /^(\s*<meta [^>]*>)*/.exec(t);
@@ -25363,7 +25365,7 @@ function Sj(t) {
25363
25365
  Ej(t, r) && !Gp(t, r) && (t.editable || !(r.type in Vt)) && n(t, r);
25364
25366
  }, Cj[e] ? { passive: !0 } : void 0);
25365
25367
  }
25366
- Nt && t.dom.addEventListener("input", () => null), Hd(t);
25368
+ Nt && t.dom.addEventListener("input", () => null), _d(t);
25367
25369
  }
25368
25370
  function pr(t, e) {
25369
25371
  t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now();
@@ -25374,7 +25376,7 @@ function Ij(t) {
25374
25376
  t.dom.removeEventListener(e, t.input.eventHandlers[e]);
25375
25377
  clearTimeout(t.input.composingTimeout), clearTimeout(t.input.lastIOSEnterFallbackTimeout);
25376
25378
  }
25377
- function Hd(t) {
25379
+ function _d(t) {
25378
25380
  t.someProp("handleDOMEvents", (e) => {
25379
25381
  for (let n in e)
25380
25382
  t.input.eventHandlers[n] || t.dom.addEventListener(n, t.input.eventHandlers[n] = (r) => Gp(t, r));
@@ -25426,7 +25428,7 @@ Vt.keypress = (t, e) => {
25426
25428
  !/[\r\n]/.test(i) && !t.someProp("handleTextInput", (o) => o(t, r.$from.pos, r.$to.pos, i)) && t.dispatch(t.state.tr.insertText(i).scrollIntoView()), n.preventDefault();
25427
25429
  }
25428
25430
  };
25429
- function lc(t) {
25431
+ function ac(t) {
25430
25432
  return { left: t.clientX, top: t.clientY };
25431
25433
  }
25432
25434
  function Tj(t, e) {
@@ -25505,7 +25507,7 @@ Ft.mousedown = (t, e) => {
25505
25507
  t.input.shiftKey = n.shiftKey;
25506
25508
  let r = _p(t), i = Date.now(), o = "singleClick";
25507
25509
  i - t.input.lastClick.time < 500 && Tj(n, t.input.lastClick) && !n[Aw] && (t.input.lastClick.type == "singleClick" ? o = "doubleClick" : t.input.lastClick.type == "doubleClick" && (o = "tripleClick")), t.input.lastClick = { time: i, x: n.clientX, y: n.clientY, type: o };
25508
- let s = t.posAtCoords(lc(n));
25510
+ let s = t.posAtCoords(ac(n));
25509
25511
  s && (o == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new Nj(t, s, n, !!r)) : (o == "doubleClick" ? Pj : Rj)(t, s.pos, s.inside, n) ? n.preventDefault() : pr(t, "pointer"));
25510
25512
  };
25511
25513
  class Nj {
@@ -25537,7 +25539,7 @@ class Nj {
25537
25539
  if (this.done(), !this.view.dom.contains(e.target))
25538
25540
  return;
25539
25541
  let n = this.pos;
25540
- this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(lc(e))), this.updateAllowDefault(e), this.allowDefault || !n ? pr(this.view, "pointer") : Oj(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
25542
+ this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(ac(e))), this.updateAllowDefault(e), this.allowDefault || !n ? pr(this.view, "pointer") : Oj(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
25541
25543
  Nt && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
25542
25544
  // cursor, but still report that the node is selected
25543
25545
  // when asked through getSelection. You'll then get a
@@ -25695,7 +25697,7 @@ Ft.dragstart = (t, e) => {
25695
25697
  let n = e, r = t.input.mouseDown;
25696
25698
  if (r && r.done(), !n.dataTransfer)
25697
25699
  return;
25698
- let i = t.state.selection, o = i.empty ? null : t.posAtCoords(lc(n)), s;
25700
+ let i = t.state.selection, o = i.empty ? null : t.posAtCoords(ac(n)), s;
25699
25701
  if (!(o && o.pos >= i.from && o.pos <= (i instanceof ge ? i.to - 1 : i.to))) {
25700
25702
  if (r && r.mightDrag)
25701
25703
  s = ge.create(t.state.doc, r.mightDrag.pos);
@@ -25718,7 +25720,7 @@ Vt.drop = (t, e) => {
25718
25720
  let n = e, r = t.dragging;
25719
25721
  if (t.dragging = null, !n.dataTransfer)
25720
25722
  return;
25721
- let i = t.posAtCoords(lc(n));
25723
+ let i = t.posAtCoords(ac(n));
25722
25724
  if (!i)
25723
25725
  return;
25724
25726
  let o = t.state.doc.resolve(i.pos), s = r && r.slice;
@@ -26276,7 +26278,7 @@ function Gv(t, e, n) {
26276
26278
  e++;
26277
26279
  t.splice(e, 0, n);
26278
26280
  }
26279
- function yu(t) {
26281
+ function bu(t) {
26280
26282
  let e = [];
26281
26283
  return t.someProp("decorations", (n) => {
26282
26284
  let r = n(t.state);
@@ -26412,7 +26414,7 @@ class Xj {
26412
26414
  }
26413
26415
  }
26414
26416
  let c = null;
26415
- o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && sc(r) && (c = Lp(e)) && c.eq(Ee.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Xn(e), this.currentSelection.set(r), e.scrollToSelection()) : (o > -1 || i) && (o > -1 && (e.docView.markDirty(o, s), Yj(e)), this.handleDOMChange(o, s, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Xn(e), this.currentSelection.set(r));
26417
+ o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && oc(r) && (c = Lp(e)) && c.eq(Ee.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Xn(e), this.currentSelection.set(r), e.scrollToSelection()) : (o > -1 || i) && (o > -1 && (e.docView.markDirty(o, s), Yj(e)), this.handleDOMChange(o, s, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Xn(e), this.currentSelection.set(r));
26416
26418
  }
26417
26419
  registerMutation(e, n) {
26418
26420
  if (n.indexOf(e.target) > -1)
@@ -26481,7 +26483,7 @@ function Jj(t, e) {
26481
26483
  }
26482
26484
  function Uj(t, e, n) {
26483
26485
  let { node: r, fromOffset: i, toOffset: o, from: s, to: a } = t.docView.parseRange(e, n), l = t.domSelectionRange(), c, u = l.anchorNode;
26484
- if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: l.anchorOffset }], sc(l) || c.push({ node: l.focusNode, offset: l.focusOffset })), Tt && t.input.lastKeyCode === 8)
26486
+ if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: l.anchorOffset }], oc(l) || c.push({ node: l.focusNode, offset: l.focusOffset })), Tt && t.input.lastKeyCode === 8)
26485
26487
  for (let g = o; g > i; g--) {
26486
26488
  let v = r.childNodes[g - 1], b = v.pmViewDesc;
26487
26489
  if (v.nodeName == "BR" && !b) {
@@ -26619,7 +26621,7 @@ function t4(t, e, n, r, i) {
26619
26621
  if (
26620
26622
  // The content must have shrunk
26621
26623
  n - e <= i.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
26622
- xu(r, !0, !1) < i.pos
26624
+ yu(r, !0, !1) < i.pos
26623
26625
  )
26624
26626
  return !1;
26625
26627
  let o = t.resolve(e);
@@ -26629,10 +26631,10 @@ function t4(t, e, n, r, i) {
26629
26631
  }
26630
26632
  if (o.parentOffset < o.parent.content.size || !o.parent.isTextblock)
26631
26633
  return !1;
26632
- let s = t.resolve(xu(o, !0, !0));
26633
- return !s.parent.isTextblock || s.pos > n || xu(s, !0, !1) < n ? !1 : r.parent.content.cut(r.parentOffset).eq(s.parent.content);
26634
+ let s = t.resolve(yu(o, !0, !0));
26635
+ return !s.parent.isTextblock || s.pos > n || yu(s, !0, !1) < n ? !1 : r.parent.content.cut(r.parentOffset).eq(s.parent.content);
26634
26636
  }
26635
- function xu(t, e, n) {
26637
+ function yu(t, e, n) {
26636
26638
  let r = t.depth, i = e ? t.end() : t.pos;
26637
26639
  for (; r > 0 && (e || t.indexAfter(r) == t.node(r).childCount); )
26638
26640
  r--, i++, e = !1;
@@ -26676,7 +26678,7 @@ class r4 {
26676
26678
  added to the document.
26677
26679
  */
26678
26680
  constructor(e, n) {
26679
- this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new wj(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Uv), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Zv(this), Yv(this), this.nodeViews = Jv(this), this.docView = Av(this.state.doc, Xv(this), yu(this), this.dom, this), this.domObserver = new Xj(this, (r, i, o, s) => Qj(this, r, i, o, s)), this.domObserver.start(), Sj(this), this.updatePluginViews();
26681
+ this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new wj(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Uv), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Zv(this), Yv(this), this.nodeViews = Jv(this), this.docView = Av(this.state.doc, Xv(this), bu(this), this.dom, this), this.domObserver = new Xj(this, (r, i, o, s) => Qj(this, r, i, o, s)), this.domObserver.start(), Sj(this), this.updatePluginViews();
26680
26682
  }
26681
26683
  /**
26682
26684
  Holds `true` when a
@@ -26704,7 +26706,7 @@ class r4 {
26704
26706
  the DOM.
26705
26707
  */
26706
26708
  update(e) {
26707
- e.handleDOMEvents != this._props.handleDOMEvents && Hd(this);
26709
+ e.handleDOMEvents != this._props.handleDOMEvents && _d(this);
26708
26710
  let n = this._props;
26709
26711
  this._props = e, e.plugins && (e.plugins.forEach(Uv), this.directPlugins = e.plugins), this.updateStateInner(e.state, n);
26710
26712
  }
@@ -26738,8 +26740,8 @@ class r4 {
26738
26740
  let p = Jv(this);
26739
26741
  o4(p, this.nodeViews) && (this.nodeViews = p, o = !0);
26740
26742
  }
26741
- (a || n.handleDOMEvents != this._props.handleDOMEvents) && Hd(this), this.editable = Zv(this), Yv(this);
26742
- let l = yu(this), c = Xv(this), u = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", d = o || !this.docView.matchesNode(e.doc, c, l);
26743
+ (a || n.handleDOMEvents != this._props.handleDOMEvents) && _d(this), this.editable = Zv(this), Yv(this);
26744
+ let l = bu(this), c = Xv(this), u = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", d = o || !this.docView.matchesNode(e.doc, c, l);
26743
26745
  (d || !e.selection.eq(i.selection)) && (s = !0);
26744
26746
  let f = u == "preserve" && s && this.dom.style.overflowAnchor == null && BL(this);
26745
26747
  if (s) {
@@ -26956,7 +26958,7 @@ class r4 {
26956
26958
  views](https://prosemirror.net/docs/ref/#view.NodeView).
26957
26959
  */
26958
26960
  destroy() {
26959
- this.docView && (Ij(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], yu(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, AL());
26961
+ this.docView && (Ij(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], bu(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, AL());
26960
26962
  }
26961
26963
  /**
26962
26964
  This is true when the view has been
@@ -27127,7 +27129,7 @@ for (var yt = 0; yt < 10; yt++) Sr[48 + yt] = Sr[96 + yt] = String(yt);
27127
27129
  for (var yt = 1; yt <= 24; yt++) Sr[yt + 111] = "F" + yt;
27128
27130
  for (var yt = 65; yt <= 90; yt++)
27129
27131
  Sr[yt] = String.fromCharCode(yt + 32), Ya[yt] = String.fromCharCode(yt);
27130
- for (var Cu in Sr) Ya.hasOwnProperty(Cu) || (Ya[Cu] = Sr[Cu]);
27132
+ for (var xu in Sr) Ya.hasOwnProperty(xu) || (Ya[xu] = Sr[xu]);
27131
27133
  function l4(t) {
27132
27134
  var e = s4 && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || a4 && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? Ya : Sr)[t.keyCode] || t.key || "Unidentified";
27133
27135
  return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
@@ -27160,7 +27162,7 @@ function d4(t) {
27160
27162
  e[u4(n)] = t[n];
27161
27163
  return e;
27162
27164
  }
27163
- function wu(t, e, n = !0) {
27165
+ function Cu(t, e, n = !0) {
27164
27166
  return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
27165
27167
  }
27166
27168
  function f4(t) {
@@ -27169,17 +27171,17 @@ function f4(t) {
27169
27171
  function Vw(t) {
27170
27172
  let e = d4(t);
27171
27173
  return function(n, r) {
27172
- let i = l4(r), o, s = e[wu(i, r)];
27174
+ let i = l4(r), o, s = e[Cu(i, r)];
27173
27175
  if (s && s(n.state, n.dispatch, n))
27174
27176
  return !0;
27175
27177
  if (i.length == 1 && i != " ") {
27176
27178
  if (r.shiftKey) {
27177
- let a = e[wu(i, r, !1)];
27179
+ let a = e[Cu(i, r, !1)];
27178
27180
  if (a && a(n.state, n.dispatch, n))
27179
27181
  return !0;
27180
27182
  }
27181
27183
  if ((r.shiftKey || r.altKey || r.metaKey || i.charCodeAt(0) > 127) && (o = Sr[r.keyCode]) && o != i) {
27182
- let a = e[wu(o, r)];
27184
+ let a = e[Cu(o, r)];
27183
27185
  if (a && a(n.state, n.dispatch, n))
27184
27186
  return !0;
27185
27187
  }
@@ -27206,7 +27208,7 @@ const h4 = (t, e, n) => {
27206
27208
  return !0;
27207
27209
  if (r.parent.content.size == 0 && (Ui(o, "end") || ge.isSelectable(o)))
27208
27210
  for (let s = r.depth; ; s--) {
27209
- let a = ic(t.doc, r.before(s), r.after(s), le.empty);
27211
+ let a = rc(t.doc, r.before(s), r.after(s), le.empty);
27210
27212
  if (a && a.slice.size < a.to - a.from) {
27211
27213
  if (e) {
27212
27214
  let l = t.tr.step(a);
@@ -27250,7 +27252,7 @@ function Lw(t, e, n) {
27250
27252
  return !1;
27251
27253
  a = u;
27252
27254
  }
27253
- let c = ic(t.doc, o, l, le.empty);
27255
+ let c = rc(t.doc, o, l, le.empty);
27254
27256
  if (!c || c.from != o || c instanceof dt && c.slice.size >= l - o)
27255
27257
  return !1;
27256
27258
  if (n) {
@@ -27305,7 +27307,7 @@ const b4 = (t, e, n) => {
27305
27307
  if (zw(t, i, e, 1))
27306
27308
  return !0;
27307
27309
  if (r.parent.content.size == 0 && (Ui(o, "start") || ge.isSelectable(o))) {
27308
- let s = ic(t.doc, r.before(), r.after(), le.empty);
27310
+ let s = rc(t.doc, r.before(), r.after(), le.empty);
27309
27311
  if (s && s.slice.size < s.to - s.from) {
27310
27312
  if (e) {
27311
27313
  let a = t.tr.step(s);
@@ -27344,7 +27346,7 @@ const x4 = (t, e) => {
27344
27346
  if (n.node.isTextblock || !Ar(t.doc, n.from))
27345
27347
  return !1;
27346
27348
  i = n.from;
27347
- } else if (i = rc(t.doc, n.from, -1), i == null)
27349
+ } else if (i = nc(t.doc, n.from, -1), i == null)
27348
27350
  return !1;
27349
27351
  if (e) {
27350
27352
  let o = t.tr.join(i);
@@ -27357,7 +27359,7 @@ const x4 = (t, e) => {
27357
27359
  if (n.node.isTextblock || !Ar(t.doc, n.to))
27358
27360
  return !1;
27359
27361
  r = n.to;
27360
- } else if (r = rc(t.doc, n.to, 1), r == null)
27362
+ } else if (r = nc(t.doc, n.to, 1), r == null)
27361
27363
  return !1;
27362
27364
  return e && e(t.tr.join(r).scrollIntoView()), !0;
27363
27365
  }, w4 = (t, e) => {
@@ -27582,7 +27584,7 @@ function B4(t) {
27582
27584
  return !0;
27583
27585
  };
27584
27586
  }
27585
- function cc(t) {
27587
+ function lc(t) {
27586
27588
  const { state: e, transaction: n } = t;
27587
27589
  let { selection: r } = n, { doc: i } = n, { storedMarks: o } = n;
27588
27590
  return {
@@ -27607,7 +27609,7 @@ function cc(t) {
27607
27609
  }
27608
27610
  };
27609
27611
  }
27610
- class uc {
27612
+ class cc {
27611
27613
  constructor(e) {
27612
27614
  this.editor = e.editor, this.rawCommands = this.editor.extensionManager.commands, this.customState = e.state;
27613
27615
  }
@@ -27652,7 +27654,7 @@ class uc {
27652
27654
  tr: e,
27653
27655
  editor: i,
27654
27656
  view: s,
27655
- state: cc({
27657
+ state: lc({
27656
27658
  state: o,
27657
27659
  transaction: e
27658
27660
  }),
@@ -27698,7 +27700,7 @@ function ce(t, e, n) {
27698
27700
  parent: t.parent ? ce(t.parent, e, n) : null
27699
27701
  }) : t.config[e];
27700
27702
  }
27701
- function dc(t) {
27703
+ function uc(t) {
27702
27704
  const e = t.filter((i) => i.type === "extension"), n = t.filter((i) => i.type === "node"), r = t.filter((i) => i.type === "mark");
27703
27705
  return {
27704
27706
  baseExtensions: e,
@@ -27707,7 +27709,7 @@ function dc(t) {
27707
27709
  };
27708
27710
  }
27709
27711
  function Hw(t) {
27710
- const e = [], { nodeExtensions: n, markExtensions: r } = dc(t), i = [...n, ...r], o = {
27712
+ const e = [], { nodeExtensions: n, markExtensions: r } = uc(t), i = [...n, ...r], o = {
27711
27713
  default: null,
27712
27714
  rendered: !0,
27713
27715
  renderHTML: null,
@@ -27793,7 +27795,7 @@ function lt(...t) {
27793
27795
  }), r;
27794
27796
  }, {});
27795
27797
  }
27796
- function Wd(t, e) {
27798
+ function Hd(t, e) {
27797
27799
  return e.filter((n) => n.type === t.type.name).filter((n) => n.attribute.rendered).map((n) => n.attribute.renderHTML ? n.attribute.renderHTML(t.attrs) || {} : {
27798
27800
  [n.name]: t.attrs[n.name]
27799
27801
  }).reduce((n, r) => lt(n, r), {});
@@ -27836,7 +27838,7 @@ function Qv(t) {
27836
27838
  }
27837
27839
  function z4(t, e) {
27838
27840
  var n;
27839
- const r = Hw(t), { nodeExtensions: i, markExtensions: o } = dc(t), s = (n = i.find((c) => ce(c, "topNode"))) === null || n === void 0 ? void 0 : n.name, a = Object.fromEntries(i.map((c) => {
27841
+ const r = Hw(t), { nodeExtensions: i, markExtensions: o } = uc(t), s = (n = i.find((c) => ce(c, "topNode"))) === null || n === void 0 ? void 0 : n.name, a = Object.fromEntries(i.map((c) => {
27840
27842
  const u = r.filter((v) => v.type === c.name), d = {
27841
27843
  name: c.name,
27842
27844
  options: c.options,
@@ -27871,7 +27873,7 @@ function z4(t, e) {
27871
27873
  const m = ce(c, "renderHTML", d);
27872
27874
  m && (p.toDOM = (v) => m({
27873
27875
  node: v,
27874
- HTMLAttributes: Wd(v, u)
27876
+ HTMLAttributes: Hd(v, u)
27875
27877
  }));
27876
27878
  const g = ce(c, "renderText", d);
27877
27879
  return g && (p.toText = g), [c.name, p];
@@ -27903,7 +27905,7 @@ function z4(t, e) {
27903
27905
  const m = ce(c, "renderHTML", d);
27904
27906
  return m && (p.toDOM = (g) => m({
27905
27907
  mark: g,
27906
- HTMLAttributes: Wd(g, u)
27908
+ HTMLAttributes: Hd(g, u)
27907
27909
  })), [c.name, p];
27908
27910
  }));
27909
27911
  return new BC({
@@ -27912,7 +27914,7 @@ function z4(t, e) {
27912
27914
  marks: l
27913
27915
  });
27914
27916
  }
27915
- function Su(t, e) {
27917
+ function wu(t, e) {
27916
27918
  return e.nodes[t] || e.marks[t] || null;
27917
27919
  }
27918
27920
  function eb(t, e) {
@@ -27939,7 +27941,7 @@ const _4 = (t, e = 500) => {
27939
27941
  function Zp(t) {
27940
27942
  return Object.prototype.toString.call(t) === "[object RegExp]";
27941
27943
  }
27942
- class fc {
27944
+ class dc {
27943
27945
  constructor(e) {
27944
27946
  this.find = e.find, this.handler = e.handler;
27945
27947
  }
@@ -27972,13 +27974,13 @@ function Ws(t) {
27972
27974
  const p = H4(d, f.find);
27973
27975
  if (!p)
27974
27976
  return;
27975
- const h = l.state.tr, m = cc({
27977
+ const h = l.state.tr, m = lc({
27976
27978
  state: l.state,
27977
27979
  transaction: h
27978
27980
  }), g = {
27979
27981
  from: r - (p[0].length - o.length),
27980
27982
  to: i
27981
- }, { commands: v, chain: b, can: x } = new uc({
27983
+ }, { commands: v, chain: b, can: x } = new cc({
27982
27984
  editor: n,
27983
27985
  state: m
27984
27986
  });
@@ -28075,10 +28077,10 @@ function $4(t) {
28075
28077
  function $s(t) {
28076
28078
  return $4(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype;
28077
28079
  }
28078
- function pc(t, e) {
28080
+ function fc(t, e) {
28079
28081
  const n = { ...t };
28080
28082
  return $s(t) && $s(e) && Object.keys(e).forEach((r) => {
28081
- $s(e[r]) && $s(t[r]) ? n[r] = pc(t[r], e[r]) : n[r] = e[r];
28083
+ $s(e[r]) && $s(t[r]) ? n[r] = fc(t[r], e[r]) : n[r] = e[r];
28082
28084
  }), n;
28083
28085
  }
28084
28086
  class fn {
@@ -28102,7 +28104,7 @@ class fn {
28102
28104
  configure(e = {}) {
28103
28105
  const n = this.extend({
28104
28106
  ...this.config,
28105
- addOptions: () => pc(this.options, e)
28107
+ addOptions: () => fc(this.options, e)
28106
28108
  });
28107
28109
  return n.name = this.name, n.parent = this.parent, n;
28108
28110
  }
@@ -28145,7 +28147,7 @@ const Z4 = (t, e, n) => {
28145
28147
  }) : [];
28146
28148
  };
28147
28149
  function J4(t) {
28148
- const { editor: e, state: n, from: r, to: i, rule: o, pasteEvent: s, dropEvent: a } = t, { commands: l, chain: c, can: u } = new uc({
28150
+ const { editor: e, state: n, from: r, to: i, rule: o, pasteEvent: s, dropEvent: a } = t, { commands: l, chain: c, can: u } = new cc({
28149
28151
  editor: e,
28150
28152
  state: n
28151
28153
  }), d = [];
@@ -28189,7 +28191,7 @@ function K4(t) {
28189
28191
  a = null;
28190
28192
  }
28191
28193
  const l = ({ state: u, from: d, to: f, rule: p, pasteEvt: h }) => {
28192
- const m = u.tr, g = cc({
28194
+ const m = u.tr, g = lc({
28193
28195
  state: u,
28194
28196
  transaction: m
28195
28197
  });
@@ -28316,7 +28318,7 @@ class Fi {
28316
28318
  options: n.options,
28317
28319
  storage: n.storage,
28318
28320
  editor: this.editor,
28319
- type: Su(n.name, this.schema)
28321
+ type: wu(n.name, this.schema)
28320
28322
  }, i = ce(n, "addCommands", r);
28321
28323
  return i ? {
28322
28324
  ...e,
@@ -28335,7 +28337,7 @@ class Fi {
28335
28337
  options: s.options,
28336
28338
  storage: s.storage,
28337
28339
  editor: e,
28338
- type: Su(s.name, this.schema)
28340
+ type: wu(s.name, this.schema)
28339
28341
  }, l = [], c = ce(s, "addKeyboardShortcuts", a);
28340
28342
  let u = {};
28341
28343
  if (s.type === "mark" && ce(s, "exitable", a) && (u.ArrowRight = () => fn.handleExit({ editor: e, mark: s })), c) {
@@ -28379,7 +28381,7 @@ class Fi {
28379
28381
  * @returns An object with all node views where the key is the node name and the value is the node view function
28380
28382
  */
28381
28383
  get nodeViews() {
28382
- const { editor: e } = this, { nodeExtensions: n } = dc(this.extensions);
28384
+ const { editor: e } = this, { nodeExtensions: n } = uc(this.extensions);
28383
28385
  return Object.fromEntries(n.filter((r) => !!ce(r, "addNodeView")).map((r) => {
28384
28386
  const i = this.attributes.filter((l) => l.type === r.name), o = {
28385
28387
  name: r.name,
@@ -28391,7 +28393,7 @@ class Fi {
28391
28393
  if (!s)
28392
28394
  return [];
28393
28395
  const a = (l, c, u, d, f) => {
28394
- const p = Wd(l, i);
28396
+ const p = Hd(l, i);
28395
28397
  return s()({
28396
28398
  // pass-through
28397
28399
  node: l,
@@ -28421,7 +28423,7 @@ class Fi {
28421
28423
  options: e.options,
28422
28424
  storage: e.storage,
28423
28425
  editor: this.editor,
28424
- type: Su(e.name, this.schema)
28426
+ type: wu(e.name, this.schema)
28425
28427
  };
28426
28428
  e.type === "mark" && (!((n = Te(ce(e, "keepOnSplit", r))) !== null && n !== void 0) || n) && this.splittableMarks.push(e.name);
28427
28429
  const i = ce(e, "onBeforeCreate", r), o = ce(e, "onCreate", r), s = ce(e, "onUpdate", r), a = ce(e, "onSelectionUpdate", r), l = ce(e, "onTransaction", r), c = ce(e, "onFocus", r), u = ce(e, "onBlur", r), d = ce(e, "onDestroy", r);
@@ -28450,7 +28452,7 @@ class Mt {
28450
28452
  configure(e = {}) {
28451
28453
  const n = this.extend({
28452
28454
  ...this.config,
28453
- addOptions: () => pc(this.options, e)
28455
+ addOptions: () => fc(this.options, e)
28454
28456
  });
28455
28457
  return n.name = this.name, n.parent = this.parent, n;
28456
28458
  }
@@ -28790,14 +28792,14 @@ const b3 = (t) => !("type" in t), y3 = (t, e, n) => ({ tr: r, dispatch: i, edito
28790
28792
  return !0;
28791
28793
  }, x3 = () => ({ state: t, dispatch: e }) => x4(t, e), C3 = () => ({ state: t, dispatch: e }) => C4(t, e), w3 = () => ({ state: t, dispatch: e }) => h4(t, e), S3 = () => ({ state: t, dispatch: e }) => b4(t, e), I3 = () => ({ state: t, dispatch: e, tr: n }) => {
28792
28794
  try {
28793
- const r = rc(t.doc, t.selection.$from.pos, -1);
28795
+ const r = nc(t.doc, t.selection.$from.pos, -1);
28794
28796
  return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
28795
28797
  } catch {
28796
28798
  return !1;
28797
28799
  }
28798
28800
  }, E3 = () => ({ state: t, dispatch: e, tr: n }) => {
28799
28801
  try {
28800
- const r = rc(t.doc, t.selection.$from.pos, 1);
28802
+ const r = nc(t.doc, t.selection.$from.pos, 1);
28801
28803
  return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
28802
28804
  } catch {
28803
28805
  return !1;
@@ -28867,7 +28869,7 @@ const O3 = (t, e = {}) => ({ state: n, dispatch: r }) => {
28867
28869
  const r = ht(t, e.schema);
28868
28870
  return N4(r)(e, n);
28869
28871
  }, D3 = () => ({ state: t, dispatch: e }) => S4(t, e);
28870
- function hc(t, e) {
28872
+ function pc(t, e) {
28871
28873
  return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null;
28872
28874
  }
28873
28875
  function nb(t, e) {
@@ -28876,7 +28878,7 @@ function nb(t, e) {
28876
28878
  }
28877
28879
  const N3 = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
28878
28880
  let o = null, s = null;
28879
- const a = hc(typeof t == "string" ? t : t.name, r.schema);
28881
+ const a = pc(typeof t == "string" ? t : t.name, r.schema);
28880
28882
  return a ? (a === "node" && (o = ht(t, r.schema)), a === "mark" && (s = kr(t, r.schema)), i && n.selection.ranges.forEach((l) => {
28881
28883
  r.doc.nodesBetween(l.$from.pos, l.$to.pos, (c, u) => {
28882
28884
  o && o === c.type && n.setNodeMarkup(u, void 0, nb(c.attrs, e)), s && c.marks.length && c.marks.forEach((d) => {
@@ -28888,7 +28890,7 @@ const N3 = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
28888
28890
  from: 0,
28889
28891
  to: t.doc.content.size
28890
28892
  }), B3 = () => ({ state: t, dispatch: e }) => v4(t, e), L3 = () => ({ state: t, dispatch: e }) => y4(t, e), j3 = () => ({ state: t, dispatch: e }) => T4(t, e), G3 = () => ({ state: t, dispatch: e }) => O4(t, e), z3 = () => ({ state: t, dispatch: e }) => M4(t, e);
28891
- function $d(t, e, n = {}, r = {}) {
28893
+ function Wd(t, e, n = {}, r = {}) {
28892
28894
  return Ja(t, e, {
28893
28895
  slice: !1,
28894
28896
  parseOptions: n,
@@ -28899,7 +28901,7 @@ const _3 = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, comm
28899
28901
  var l, c;
28900
28902
  const { doc: u } = o;
28901
28903
  if (n.preserveWhitespace !== "full") {
28902
- const d = $d(t, i.schema, n, {
28904
+ const d = Wd(t, i.schema, n, {
28903
28905
  errorOnInvalidContent: (l = r.errorOnInvalidContent) !== null && l !== void 0 ? l : i.options.enableContentCheck
28904
28906
  });
28905
28907
  return s && o.replaceWith(0, u.content.size, d).setMeta("preventUpdate", !e), !0;
@@ -28973,7 +28975,7 @@ function Z3(t, e) {
28973
28975
  return s ? { ...s.attrs } : {};
28974
28976
  }
28975
28977
  function qw(t, e) {
28976
- const n = hc(typeof e == "string" ? e : e.name, t.schema);
28978
+ const n = pc(typeof e == "string" ? e : e.name, t.schema);
28977
28979
  return n === "node" ? Z3(t, e) : n === "mark" ? Kp(t, e) : {};
28978
28980
  }
28979
28981
  function J3(t, e = JSON.stringify) {
@@ -29038,7 +29040,7 @@ function ca(t, e, n) {
29038
29040
  return i ? i.attribute.keepOnSplit : !1;
29039
29041
  }));
29040
29042
  }
29041
- function Xd(t, e, n = {}) {
29043
+ function $d(t, e, n = {}) {
29042
29044
  const { empty: r, ranges: i } = t.selection, o = e ? kr(e, t.schema) : null;
29043
29045
  if (r)
29044
29046
  return !!(t.storedMarks || t.selection.$from.marks()).filter((d) => o ? o.name === d.type.name : !0).find((d) => Za(d.attrs, n, { strict: !1 }));
@@ -29063,12 +29065,12 @@ function Xd(t, e, n = {}) {
29063
29065
  }
29064
29066
  function q3(t, e, n = {}) {
29065
29067
  if (!e)
29066
- return ss(t, null, n) || Xd(t, null, n);
29067
- const r = hc(e, t.schema);
29068
- return r === "node" ? ss(t, e, n) : r === "mark" ? Xd(t, e, n) : !1;
29068
+ return ss(t, null, n) || $d(t, null, n);
29069
+ const r = pc(e, t.schema);
29070
+ return r === "node" ? ss(t, e, n) : r === "mark" ? $d(t, e, n) : !1;
29069
29071
  }
29070
29072
  function rb(t, e) {
29071
- const { nodeExtensions: n } = dc(e), r = n.find((s) => s.name === t);
29073
+ const { nodeExtensions: n } = uc(e), r = n.find((s) => s.name === t);
29072
29074
  if (!r)
29073
29075
  return !1;
29074
29076
  const i = {
@@ -29256,7 +29258,7 @@ const aG = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
29256
29258
  n.ensureMarks(y);
29257
29259
  }
29258
29260
  return !0;
29259
- }, Iu = (t, e) => {
29261
+ }, Su = (t, e) => {
29260
29262
  const n = qp((s) => s.type === e)(t.selection);
29261
29263
  if (!n)
29262
29264
  return !0;
@@ -29265,7 +29267,7 @@ const aG = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
29265
29267
  return !0;
29266
29268
  const i = t.doc.nodeAt(r);
29267
29269
  return n.node.type === (i == null ? void 0 : i.type) && Ar(t.doc, n.pos) && t.join(n.pos), !0;
29268
- }, Eu = (t, e) => {
29270
+ }, Iu = (t, e) => {
29269
29271
  const n = qp((s) => s.type === e)(t.selection);
29270
29272
  if (!n)
29271
29273
  return !0;
@@ -29283,15 +29285,15 @@ const aG = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
29283
29285
  if (y.node.type === p)
29284
29286
  return c.liftListItem(h);
29285
29287
  if (rb(y.node.type.name, d) && p.validContent(y.node.content) && a)
29286
- return l().command(() => (o.setNodeMarkup(y.pos, p), !0)).command(() => Iu(o, p)).command(() => Eu(o, p)).run();
29288
+ return l().command(() => (o.setNodeMarkup(y.pos, p), !0)).command(() => Su(o, p)).command(() => Iu(o, p)).run();
29287
29289
  }
29288
- return !n || !w || !a ? l().command(() => u().wrapInList(p, r) ? !0 : c.clearNodes()).wrapInList(p, r).command(() => Iu(o, p)).command(() => Eu(o, p)).run() : l().command(() => {
29290
+ return !n || !w || !a ? l().command(() => u().wrapInList(p, r) ? !0 : c.clearNodes()).wrapInList(p, r).command(() => Su(o, p)).command(() => Iu(o, p)).run() : l().command(() => {
29289
29291
  const E = u().wrapInList(p, r), A = w.filter((T) => f.includes(T.type.name));
29290
29292
  return o.ensureMarks(A), E ? !0 : c.clearNodes();
29291
- }).wrapInList(p, r).command(() => Iu(o, p)).command(() => Eu(o, p)).run();
29293
+ }).wrapInList(p, r).command(() => Su(o, p)).command(() => Iu(o, p)).run();
29292
29294
  }, uG = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
29293
29295
  const { extendEmptyMarkRange: o = !1 } = n, s = kr(t, r.schema);
29294
- return Xd(r, s, e) ? i.unsetMark(s, { extendEmptyMarkRange: o }) : i.setMark(s, e);
29296
+ return $d(r, s, e) ? i.unsetMark(s, { extendEmptyMarkRange: o }) : i.setMark(s, e);
29295
29297
  }, dG = (t, e, n = {}) => ({ state: r, commands: i }) => {
29296
29298
  const o = ht(t, r.schema), s = ht(e, r.schema), a = ss(r, o, n);
29297
29299
  let l;
@@ -29340,7 +29342,7 @@ const aG = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
29340
29342
  return n.removeStoredMark(l), !0;
29341
29343
  }, gG = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
29342
29344
  let o = null, s = null;
29343
- const a = hc(typeof t == "string" ? t : t.name, r.schema);
29345
+ const a = pc(typeof t == "string" ? t : t.name, r.schema);
29344
29346
  return a ? (a === "node" && (o = ht(t, r.schema)), a === "mark" && (s = kr(t, r.schema)), i && n.selection.ranges.forEach((l) => {
29345
29347
  const c = l.$from.pos, u = l.$to.pos;
29346
29348
  let d, f, p, h;
@@ -29562,10 +29564,10 @@ const xG = Mt.create({
29562
29564
  const { empty: o, from: s, to: a } = e.selection, l = Ee.atStart(e.doc).from, c = Ee.atEnd(e.doc).to;
29563
29565
  if (o || !(s === l && a === c) || !eh(n.doc))
29564
29566
  return;
29565
- const f = n.tr, p = cc({
29567
+ const f = n.tr, p = lc({
29566
29568
  state: n,
29567
29569
  transaction: f
29568
- }), { commands: h } = new uc({
29570
+ }), { commands: h } = new cc({
29569
29571
  editor: this.editor,
29570
29572
  state: p
29571
29573
  });
@@ -29959,7 +29961,7 @@ let MG = class extends L4 {
29959
29961
  * Creates an command manager.
29960
29962
  */
29961
29963
  createCommandManager() {
29962
- this.commandManager = new uc({
29964
+ this.commandManager = new cc({
29963
29965
  editor: this
29964
29966
  });
29965
29967
  }
@@ -29976,7 +29978,7 @@ let MG = class extends L4 {
29976
29978
  var e;
29977
29979
  let n;
29978
29980
  try {
29979
- n = $d(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: this.options.enableContentCheck });
29981
+ n = Wd(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: this.options.enableContentCheck });
29980
29982
  } catch (s) {
29981
29983
  if (!(s instanceof Error) || !["[tiptap error]: Invalid JSON content", "[tiptap error]: Invalid HTML content"].includes(s.message))
29982
29984
  throw s;
@@ -29986,7 +29988,7 @@ let MG = class extends L4 {
29986
29988
  disableCollaboration: () => {
29987
29989
  this.storage.collaboration && (this.storage.collaboration.isDisabled = !0), this.options.extensions = this.options.extensions.filter((a) => a.name !== "collaboration"), this.createExtensionManager();
29988
29990
  }
29989
- }), n = $d(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 });
29991
+ }), n = Wd(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 });
29990
29992
  }
29991
29993
  const r = Jw(n, this.options.autofocus);
29992
29994
  this.view = new r4(this.options.element, {
@@ -30158,7 +30160,7 @@ let MG = class extends L4 {
30158
30160
  }
30159
30161
  };
30160
30162
  function Ki(t) {
30161
- return new fc({
30163
+ return new dc({
30162
30164
  find: t.find,
30163
30165
  handler: ({ state: e, range: n, match: r }) => {
30164
30166
  const i = Te(t.getAttributes, void 0, r);
@@ -30177,7 +30179,7 @@ function Ki(t) {
30177
30179
  });
30178
30180
  }
30179
30181
  function OG(t) {
30180
- return new fc({
30182
+ return new dc({
30181
30183
  find: t.find,
30182
30184
  handler: ({ state: e, range: n, match: r }) => {
30183
30185
  const i = Te(t.getAttributes, void 0, r) || {}, { tr: o } = e, s = n.from;
@@ -30197,8 +30199,8 @@ function OG(t) {
30197
30199
  }
30198
30200
  });
30199
30201
  }
30200
- function Yd(t) {
30201
- return new fc({
30202
+ function Xd(t) {
30203
+ return new dc({
30202
30204
  find: t.find,
30203
30205
  handler: ({ state: e, range: n, match: r }) => {
30204
30206
  const i = e.doc.resolve(n.from), o = Te(t.getAttributes, void 0, r) || {};
@@ -30209,7 +30211,7 @@ function Yd(t) {
30209
30211
  });
30210
30212
  }
30211
30213
  function as(t) {
30212
- return new fc({
30214
+ return new dc({
30213
30215
  find: t.find,
30214
30216
  handler: ({ state: e, range: n, match: r, chain: i }) => {
30215
30217
  const o = Te(t.getAttributes, void 0, r) || {}, s = e.tr.delete(n.from, n.to), l = s.doc.resolve(n.from).blockRange(), c = l && Fp(l, t.type, o);
@@ -30231,7 +30233,7 @@ function as(t) {
30231
30233
  }
30232
30234
  });
30233
30235
  }
30234
- let pn = class Zd {
30236
+ let pn = class Yd {
30235
30237
  constructor(e = {}) {
30236
30238
  this.type = "node", this.name = "node", this.parent = null, this.child = null, this.config = {
30237
30239
  name: this.name,
@@ -30247,17 +30249,17 @@ let pn = class Zd {
30247
30249
  })) || {};
30248
30250
  }
30249
30251
  static create(e = {}) {
30250
- return new Zd(e);
30252
+ return new Yd(e);
30251
30253
  }
30252
30254
  configure(e = {}) {
30253
30255
  const n = this.extend({
30254
30256
  ...this.config,
30255
- addOptions: () => pc(this.options, e)
30257
+ addOptions: () => fc(this.options, e)
30256
30258
  });
30257
30259
  return n.name = this.name, n.parent = this.parent, n;
30258
30260
  }
30259
30261
  extend(e = {}) {
30260
- const n = new Zd(e);
30262
+ const n = new Yd(e);
30261
30263
  return n.parent = this, this.child = n, n.name = e.name ? e.name : n.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Te(ce(n, "addOptions", {
30262
30264
  name: n.name
30263
30265
  })), n.storage = Te(ce(n, "addStorage", {
@@ -30384,7 +30386,7 @@ const PG = fn.create({
30384
30386
  }), {});
30385
30387
  },
30386
30388
  addInputRules() {
30387
- return this.options.levels.map((t) => Yd({
30389
+ return this.options.levels.map((t) => Xd({
30388
30390
  find: new RegExp(`^(#{1,${t}})\\s$`),
30389
30391
  type: this.type,
30390
30392
  getAttributes: {
@@ -30396,12 +30398,12 @@ const PG = fn.create({
30396
30398
  for (const n in e)
30397
30399
  t[n] = e[n];
30398
30400
  return t;
30399
- }, Jd = "numeric", Ud = "ascii", Kd = "alpha", ua = "asciinumeric", Ys = "alphanumeric", qd = "domain", eS = "emoji", FG = "scheme", VG = "slashscheme", ob = "whitespace";
30401
+ }, Zd = "numeric", Jd = "ascii", Ud = "alpha", ua = "asciinumeric", Ys = "alphanumeric", Kd = "domain", eS = "emoji", FG = "scheme", VG = "slashscheme", ob = "whitespace";
30400
30402
  function BG(t, e) {
30401
30403
  return t in e || (e[t] = []), e[t];
30402
30404
  }
30403
30405
  function Xr(t, e, n) {
30404
- e[Jd] && (e[ua] = !0, e[Ys] = !0), e[Ud] && (e[ua] = !0, e[Kd] = !0), e[ua] && (e[Ys] = !0), e[Kd] && (e[Ys] = !0), e[Ys] && (e[qd] = !0), e[eS] && (e[qd] = !0);
30406
+ e[Zd] && (e[ua] = !0, e[Ys] = !0), e[Jd] && (e[ua] = !0, e[Ud] = !0), e[ua] && (e[Ys] = !0), e[Ud] && (e[Ys] = !0), e[Ys] && (e[Kd] = !0), e[eS] && (e[Kd] = !0);
30405
30407
  for (const r in e) {
30406
30408
  const i = BG(r, n);
30407
30409
  i.indexOf(t) < 0 && i.push(t);
@@ -30537,14 +30539,14 @@ jt.prototype = {
30537
30539
  return i.j[t] = s, s;
30538
30540
  }
30539
30541
  };
30540
- const Ae = (t, e, n, r, i) => t.ta(e, n, r, i), Ut = (t, e, n, r, i) => t.tr(e, n, r, i), sb = (t, e, n, r, i) => t.ts(e, n, r, i), ee = (t, e, n, r, i) => t.tt(e, n, r, i), Ln = "WORD", Qd = "UWORD", ls = "LOCALHOST", ef = "TLD", tf = "UTLD", da = "SCHEME", ki = "SLASH_SCHEME", th = "NUM", tS = "WS", nh = "NL", jo = "OPENBRACE", Go = "CLOSEBRACE", Ua = "OPENBRACKET", Ka = "CLOSEBRACKET", qa = "OPENPAREN", Qa = "CLOSEPAREN", el = "OPENANGLEBRACKET", tl = "CLOSEANGLEBRACKET", nl = "FULLWIDTHLEFTPAREN", rl = "FULLWIDTHRIGHTPAREN", il = "LEFTCORNERBRACKET", ol = "RIGHTCORNERBRACKET", sl = "LEFTWHITECORNERBRACKET", al = "RIGHTWHITECORNERBRACKET", ll = "FULLWIDTHLESSTHAN", cl = "FULLWIDTHGREATERTHAN", ul = "AMPERSAND", dl = "APOSTROPHE", fl = "ASTERISK", or = "AT", pl = "BACKSLASH", hl = "BACKTICK", ml = "CARET", ur = "COLON", rh = "COMMA", gl = "DOLLAR", bn = "DOT", vl = "EQUALS", ih = "EXCLAMATION", yn = "HYPHEN", bl = "PERCENT", yl = "PIPE", xl = "PLUS", Cl = "POUND", wl = "QUERY", oh = "QUOTE", nS = "FULLWIDTHMIDDLEDOT", sh = "SEMI", xn = "SLASH", zo = "TILDE", Sl = "UNDERSCORE", rS = "EMOJI", Il = "SYM";
30542
+ const Ae = (t, e, n, r, i) => t.ta(e, n, r, i), Ut = (t, e, n, r, i) => t.tr(e, n, r, i), sb = (t, e, n, r, i) => t.ts(e, n, r, i), ee = (t, e, n, r, i) => t.tt(e, n, r, i), Ln = "WORD", qd = "UWORD", ls = "LOCALHOST", Qd = "TLD", ef = "UTLD", da = "SCHEME", ki = "SLASH_SCHEME", th = "NUM", tS = "WS", nh = "NL", jo = "OPENBRACE", Go = "CLOSEBRACE", Ua = "OPENBRACKET", Ka = "CLOSEBRACKET", qa = "OPENPAREN", Qa = "CLOSEPAREN", el = "OPENANGLEBRACKET", tl = "CLOSEANGLEBRACKET", nl = "FULLWIDTHLEFTPAREN", rl = "FULLWIDTHRIGHTPAREN", il = "LEFTCORNERBRACKET", ol = "RIGHTCORNERBRACKET", sl = "LEFTWHITECORNERBRACKET", al = "RIGHTWHITECORNERBRACKET", ll = "FULLWIDTHLESSTHAN", cl = "FULLWIDTHGREATERTHAN", ul = "AMPERSAND", dl = "APOSTROPHE", fl = "ASTERISK", or = "AT", pl = "BACKSLASH", hl = "BACKTICK", ml = "CARET", ur = "COLON", rh = "COMMA", gl = "DOLLAR", bn = "DOT", vl = "EQUALS", ih = "EXCLAMATION", yn = "HYPHEN", bl = "PERCENT", yl = "PIPE", xl = "PLUS", Cl = "POUND", wl = "QUERY", oh = "QUOTE", nS = "FULLWIDTHMIDDLEDOT", sh = "SEMI", xn = "SLASH", zo = "TILDE", Sl = "UNDERSCORE", rS = "EMOJI", Il = "SYM";
30541
30543
  var iS = /* @__PURE__ */ Object.freeze({
30542
30544
  __proto__: null,
30543
30545
  WORD: Ln,
30544
- UWORD: Qd,
30546
+ UWORD: qd,
30545
30547
  LOCALHOST: ls,
30546
- TLD: ef,
30547
- UTLD: tf,
30548
+ TLD: Qd,
30549
+ UTLD: ef,
30548
30550
  SCHEME: da,
30549
30551
  SLASH_SCHEME: ki,
30550
30552
  NUM: th,
@@ -30594,7 +30596,7 @@ var iS = /* @__PURE__ */ Object.freeze({
30594
30596
  EMOJI: rS,
30595
30597
  SYM: Il
30596
30598
  });
30597
- const Ii = /[a-z]/, Au = new RegExp("\\p{L}", "u"), Tu = new RegExp("\\p{Emoji}", "u"), ku = /\d/, ab = /\s/, lb = `
30599
+ const Ii = /[a-z]/, Eu = new RegExp("\\p{L}", "u"), Au = new RegExp("\\p{Emoji}", "u"), Tu = /\d/, ab = /\s/, lb = `
30598
30600
  `, jG = "️", GG = "‍";
30599
30601
  let Zs = null, Js = null;
30600
30602
  function zG(t = []) {
@@ -30602,39 +30604,39 @@ function zG(t = []) {
30602
30604
  jt.groups = e;
30603
30605
  const n = new jt();
30604
30606
  Zs == null && (Zs = cb(DG)), Js == null && (Js = cb(NG)), ee(n, "'", dl), ee(n, "{", jo), ee(n, "}", Go), ee(n, "[", Ua), ee(n, "]", Ka), ee(n, "(", qa), ee(n, ")", Qa), ee(n, "<", el), ee(n, ">", tl), ee(n, "(", nl), ee(n, ")", rl), ee(n, "「", il), ee(n, "」", ol), ee(n, "『", sl), ee(n, "』", al), ee(n, "<", ll), ee(n, ">", cl), ee(n, "&", ul), ee(n, "*", fl), ee(n, "@", or), ee(n, "`", hl), ee(n, "^", ml), ee(n, ":", ur), ee(n, ",", rh), ee(n, "$", gl), ee(n, ".", bn), ee(n, "=", vl), ee(n, "!", ih), ee(n, "-", yn), ee(n, "%", bl), ee(n, "|", yl), ee(n, "+", xl), ee(n, "#", Cl), ee(n, "?", wl), ee(n, '"', oh), ee(n, "/", xn), ee(n, ";", sh), ee(n, "~", zo), ee(n, "_", Sl), ee(n, "\\", pl), ee(n, "・", nS);
30605
- const r = Ut(n, ku, th, {
30606
- [Jd]: !0
30607
+ const r = Ut(n, Tu, th, {
30608
+ [Zd]: !0
30607
30609
  });
30608
- Ut(r, ku, r);
30610
+ Ut(r, Tu, r);
30609
30611
  const i = Ut(n, Ii, Ln, {
30610
- [Ud]: !0
30612
+ [Jd]: !0
30611
30613
  });
30612
30614
  Ut(i, Ii, i);
30613
- const o = Ut(n, Au, Qd, {
30614
- [Kd]: !0
30615
+ const o = Ut(n, Eu, qd, {
30616
+ [Ud]: !0
30615
30617
  });
30616
- Ut(o, Ii), Ut(o, Au, o);
30618
+ Ut(o, Ii), Ut(o, Eu, o);
30617
30619
  const s = Ut(n, ab, tS, {
30618
30620
  [ob]: !0
30619
30621
  });
30620
30622
  ee(n, lb, nh, {
30621
30623
  [ob]: !0
30622
30624
  }), ee(s, lb), Ut(s, ab, s);
30623
- const a = Ut(n, Tu, rS, {
30625
+ const a = Ut(n, Au, rS, {
30624
30626
  [eS]: !0
30625
30627
  });
30626
- Ut(a, Tu, a), ee(a, jG, a);
30628
+ Ut(a, Au, a), ee(a, jG, a);
30627
30629
  const l = ee(a, GG);
30628
- Ut(l, Tu, a);
30629
- const c = [[Ii, i]], u = [[Ii, null], [Au, o]];
30630
+ Ut(l, Au, a);
30631
+ const c = [[Ii, i]], u = [[Ii, null], [Eu, o]];
30630
30632
  for (let d = 0; d < Zs.length; d++)
30631
- tr(n, Zs[d], ef, Ln, c);
30633
+ tr(n, Zs[d], Qd, Ln, c);
30632
30634
  for (let d = 0; d < Js.length; d++)
30633
- tr(n, Js[d], tf, Qd, u);
30634
- Xr(ef, {
30635
+ tr(n, Js[d], ef, qd, u);
30636
+ Xr(Qd, {
30635
30637
  tld: !0,
30636
30638
  ascii: !0
30637
- }, e), Xr(tf, {
30639
+ }, e), Xr(ef, {
30638
30640
  utld: !0,
30639
30641
  alpha: !0
30640
30642
  }, e), tr(n, "file", da, Ln, c), tr(n, "mailto", da, Ln, c), tr(n, "http", ki, Ln, c), tr(n, "https", ki, Ln, c), tr(n, "ftp", ki, Ln, c), tr(n, "ftps", ki, Ln, c), Xr(da, {
@@ -30650,7 +30652,7 @@ function zG(t = []) {
30650
30652
  } : {
30651
30653
  [VG]: !0
30652
30654
  };
30653
- f.indexOf("-") >= 0 ? h[qd] = !0 : Ii.test(f) ? ku.test(f) ? h[ua] = !0 : h[Ud] = !0 : h[Jd] = !0, sb(n, f, f, h);
30655
+ f.indexOf("-") >= 0 ? h[Kd] = !0 : Ii.test(f) ? Tu.test(f) ? h[ua] = !0 : h[Jd] = !0 : h[Zd] = !0, sb(n, f, f, h);
30654
30656
  }
30655
30657
  return sb(n, "localhost", ls, {
30656
30658
  ascii: !0
@@ -30912,7 +30914,7 @@ sS.prototype = {
30912
30914
  };
30913
30915
  }
30914
30916
  };
30915
- function mc(t, e) {
30917
+ function hc(t, e) {
30916
30918
  class n extends sS {
30917
30919
  constructor(i, o) {
30918
30920
  super(i, o), this.t = t;
@@ -30922,12 +30924,12 @@ function mc(t, e) {
30922
30924
  n.prototype[r] = e[r];
30923
30925
  return n.t = t, n;
30924
30926
  }
30925
- const db = mc("email", {
30927
+ const db = hc("email", {
30926
30928
  isLink: !0,
30927
30929
  toHref() {
30928
30930
  return "mailto:" + this.toString();
30929
30931
  }
30930
- }), fb = mc("text"), HG = mc("nl"), Us = mc("url", {
30932
+ }), fb = hc("text"), HG = hc("nl"), Us = hc("url", {
30931
30933
  isLink: !0,
30932
30934
  /**
30933
30935
  Lowercases relevant parts of the domain and adds the protocol if
@@ -31021,14 +31023,14 @@ function $G(t, e, n) {
31021
31023
  if (f < 0)
31022
31024
  i -= u, i < r && (s.push(n[i]), i++);
31023
31025
  else {
31024
- s.length > 0 && (o.push(Mu(fb, e, s)), s = []), i -= f, u -= f;
31026
+ s.length > 0 && (o.push(ku(fb, e, s)), s = []), i -= f, u -= f;
31025
31027
  const p = d.t, h = n.slice(i - u, i);
31026
- o.push(Mu(p, e, h));
31028
+ o.push(ku(p, e, h));
31027
31029
  }
31028
31030
  }
31029
- return s.length > 0 && o.push(Mu(fb, e, s)), o;
31031
+ return s.length > 0 && o.push(ku(fb, e, s)), o;
31030
31032
  }
31031
- function Mu(t, e, n) {
31033
+ function ku(t, e, n) {
31032
31034
  const r = n[0].s, i = n[n.length - 1].e, o = e.slice(r, i);
31033
31035
  return new t(o, n);
31034
31036
  }
@@ -31363,7 +31365,7 @@ const tz = fn.create({
31363
31365
  function rz(t) {
31364
31366
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
31365
31367
  }
31366
- var nf = { exports: {} }, Ou = {};
31368
+ var tf = { exports: {} }, Mu = {};
31367
31369
  /**
31368
31370
  * @license React
31369
31371
  * use-sync-external-store-shim.production.min.js
@@ -31375,7 +31377,7 @@ var nf = { exports: {} }, Ou = {};
31375
31377
  */
31376
31378
  var hb;
31377
31379
  function iz() {
31378
- if (hb) return Ou;
31380
+ if (hb) return Mu;
31379
31381
  hb = 1;
31380
31382
  var t = $;
31381
31383
  function e(d, f) {
@@ -31406,9 +31408,9 @@ function iz() {
31406
31408
  return f();
31407
31409
  }
31408
31410
  var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? c : a;
31409
- return Ou.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : u, Ou;
31411
+ return Mu.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : u, Mu;
31410
31412
  }
31411
- var Pu = {};
31413
+ var Ou = {};
31412
31414
  /**
31413
31415
  * @license React
31414
31416
  * use-sync-external-store-shim.development.js
@@ -31486,17 +31488,17 @@ function oz() {
31486
31488
  return w();
31487
31489
  }
31488
31490
  var m = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", g = !m, v = g ? h : f, b = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : v;
31489
- Pu.useSyncExternalStore = b, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
31490
- }()), Pu;
31491
+ Ou.useSyncExternalStore = b, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
31492
+ }()), Ou;
31491
31493
  }
31492
- process.env.NODE_ENV === "production" ? nf.exports = iz() : nf.exports = oz();
31493
- var gc = nf.exports;
31494
+ process.env.NODE_ENV === "production" ? tf.exports = iz() : tf.exports = oz();
31495
+ var mc = tf.exports;
31494
31496
  const sz = (...t) => (e) => {
31495
31497
  t.forEach((n) => {
31496
31498
  typeof n == "function" ? n(e) : n && (n.current = e);
31497
31499
  });
31498
31500
  }, az = ({ contentComponent: t }) => {
31499
- const e = gc.useSyncExternalStore(t.subscribe, t.getSnapshot, t.getServerSnapshot);
31501
+ const e = mc.useSyncExternalStore(t.subscribe, t.getSnapshot, t.getServerSnapshot);
31500
31502
  return $.createElement($.Fragment, null, Object.values(e));
31501
31503
  };
31502
31504
  function lz() {
@@ -31637,7 +31639,7 @@ var fz = function t(e, n) {
31637
31639
  return !0;
31638
31640
  }
31639
31641
  return e !== e && n !== n;
31640
- }, pz = /* @__PURE__ */ rz(fz), rf = { exports: {} }, Ru = {};
31642
+ }, pz = /* @__PURE__ */ rz(fz), nf = { exports: {} }, Pu = {};
31641
31643
  /**
31642
31644
  * @license React
31643
31645
  * use-sync-external-store-shim/with-selector.production.min.js
@@ -31649,14 +31651,14 @@ var fz = function t(e, n) {
31649
31651
  */
31650
31652
  var gb;
31651
31653
  function hz() {
31652
- if (gb) return Ru;
31654
+ if (gb) return Pu;
31653
31655
  gb = 1;
31654
- var t = $, e = gc;
31656
+ var t = $, e = mc;
31655
31657
  function n(c, u) {
31656
31658
  return c === u && (c !== 0 || 1 / c === 1 / u) || c !== c && u !== u;
31657
31659
  }
31658
31660
  var r = typeof Object.is == "function" ? Object.is : n, i = e.useSyncExternalStore, o = t.useRef, s = t.useEffect, a = t.useMemo, l = t.useDebugValue;
31659
- return Ru.useSyncExternalStoreWithSelector = function(c, u, d, f, p) {
31661
+ return Pu.useSyncExternalStoreWithSelector = function(c, u, d, f, p) {
31660
31662
  var h = o(null);
31661
31663
  if (h.current === null) {
31662
31664
  var m = { hasValue: !1, value: null };
@@ -31686,9 +31688,9 @@ function hz() {
31686
31688
  return s(function() {
31687
31689
  m.hasValue = !0, m.value = g;
31688
31690
  }, [g]), l(g), g;
31689
- }, Ru;
31691
+ }, Pu;
31690
31692
  }
31691
- var Du = {};
31693
+ var Ru = {};
31692
31694
  /**
31693
31695
  * @license React
31694
31696
  * use-sync-external-store-shim/with-selector.development.js
@@ -31702,7 +31704,7 @@ var vb;
31702
31704
  function mz() {
31703
31705
  return vb || (vb = 1, process.env.NODE_ENV !== "production" && function() {
31704
31706
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
31705
- var t = $, e = gc;
31707
+ var t = $, e = mc;
31706
31708
  function n(u, d) {
31707
31709
  return u === d && (u !== 0 || 1 / u === 1 / d) || u !== u && d !== d;
31708
31710
  }
@@ -31741,11 +31743,11 @@ function mz() {
31741
31743
  g.hasValue = !0, g.value = w;
31742
31744
  }, [w]), l(w), w;
31743
31745
  }
31744
- Du.useSyncExternalStoreWithSelector = c, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
31745
- }()), Du;
31746
+ Ru.useSyncExternalStoreWithSelector = c, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
31747
+ }()), Ru;
31746
31748
  }
31747
- process.env.NODE_ENV === "production" ? rf.exports = hz() : rf.exports = mz();
31748
- var gz = rf.exports;
31749
+ process.env.NODE_ENV === "production" ? nf.exports = hz() : nf.exports = mz();
31750
+ var gz = nf.exports;
31749
31751
  const vz = typeof window < "u" ? Qi : Pe;
31750
31752
  class bz {
31751
31753
  constructor(e) {
@@ -31790,7 +31792,7 @@ function yz(t) {
31790
31792
  const [n] = Oe(() => new bz(t.editor)), r = gz.useSyncExternalStoreWithSelector(n.subscribe, n.getSnapshot, n.getServerSnapshot, t.selector, (e = t.equalityFn) !== null && e !== void 0 ? e : pz);
31791
31793
  return vz(() => n.watch(t.editor), [t.editor, n]), Qb(r), r;
31792
31794
  }
31793
- const bb = process.env.NODE_ENV !== "production", of = typeof window > "u", xz = of || !!(typeof window < "u" && window.next);
31795
+ const bb = process.env.NODE_ENV !== "production", rf = typeof window > "u", xz = rf || !!(typeof window < "u" && window.next);
31794
31796
  class Cz {
31795
31797
  constructor(e) {
31796
31798
  this.editor = null, this.subscriptions = /* @__PURE__ */ new Set(), this.isComponentMounted = !1, this.previousDeps = null, this.instanceId = "", this.options = e, this.subscriptions = /* @__PURE__ */ new Set(), this.setEditor(this.getInitialEditor()), this.scheduleDestroy(), this.getEditor = this.getEditor.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.subscribe = this.subscribe.bind(this), this.refreshEditorInstance = this.refreshEditorInstance.bind(this), this.scheduleDestroy = this.scheduleDestroy.bind(this), this.onRender = this.onRender.bind(this), this.createEditor = this.createEditor.bind(this);
@@ -31800,8 +31802,8 @@ class Cz {
31800
31802
  }
31801
31803
  getInitialEditor() {
31802
31804
  if (this.options.current.immediatelyRender === void 0)
31803
- return of || xz ? (bb && console.warn("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches."), null) : this.createEditor();
31804
- if (this.options.current.immediatelyRender && of && bb)
31805
+ return rf || xz ? (bb && console.warn("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches."), null) : this.createEditor();
31806
+ if (this.options.current.immediatelyRender && rf && bb)
31805
31807
  throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");
31806
31808
  return this.options.current.immediatelyRender ? this.createEditor() : null;
31807
31809
  }
@@ -31925,7 +31927,7 @@ class Cz {
31925
31927
  function wz(t = {}, e = []) {
31926
31928
  const n = de(t);
31927
31929
  n.current = t;
31928
- const [r] = Oe(() => new Cz(n)), i = gc.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
31930
+ const [r] = Oe(() => new Cz(n)), i = mc.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
31929
31931
  return Qb(i), Pe(r.onRender(e)), yz({
31930
31932
  editor: i,
31931
31933
  selector: ({ transactionNumber: o }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && o === 0 ? 0 : o + 1
@@ -32236,14 +32238,14 @@ const Az = /^\s*>\s$/, Tz = pn.create({
32236
32238
  },
32237
32239
  addInputRules() {
32238
32240
  return [
32239
- Yd({
32241
+ Xd({
32240
32242
  find: Lz,
32241
32243
  type: this.type,
32242
32244
  getAttributes: (t) => ({
32243
32245
  language: t[1]
32244
32246
  })
32245
32247
  }),
32246
- Yd({
32248
+ Xd({
32247
32249
  find: jz,
32248
32250
  type: this.type,
32249
32251
  getAttributes: (t) => ({
@@ -32881,9 +32883,9 @@ function i_(t, e, n, r) {
32881
32883
  if (s && s.getMeta(ti))
32882
32884
  return s.getMeta(ti).redo ? new sr(t.done.addTransform(n, void 0, r, fa(e)), t.undone, Cb(n.mapping.maps), t.prevTime, t.prevComposition) : new sr(t.done, t.undone.addTransform(n, void 0, r, fa(e)), null, t.prevTime, t.prevComposition);
32883
32885
  if (n.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
32884
- let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !o_(n, t.prevRanges)), c = s ? Nu(t.prevRanges, n.mapping) : Cb(n.mapping.maps);
32886
+ let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !o_(n, t.prevRanges)), c = s ? Du(t.prevRanges, n.mapping) : Cb(n.mapping.maps);
32885
32887
  return new sr(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, fa(e)), cn.empty, c, n.time, a ?? t.prevComposition);
32886
- } else return (o = n.getMeta("rebased")) ? new sr(t.done.rebased(n, o), t.undone.rebased(n, o), Nu(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new sr(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Nu(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
32888
+ } else return (o = n.getMeta("rebased")) ? new sr(t.done.rebased(n, o), t.undone.rebased(n, o), Du(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new sr(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Du(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
32887
32889
  }
32888
32890
  function o_(t, e) {
32889
32891
  if (!e)
@@ -32902,7 +32904,7 @@ function Cb(t) {
32902
32904
  t[n].forEach((r, i, o, s) => e.push(o, s));
32903
32905
  return e;
32904
32906
  }
32905
- function Nu(t, e) {
32907
+ function Du(t, e) {
32906
32908
  if (!t)
32907
32909
  return null;
32908
32910
  let n = [];
@@ -32919,18 +32921,18 @@ function s_(t, e, n) {
32919
32921
  let s = o.selection.resolve(o.transform.doc), a = (n ? t.done : t.undone).addTransform(o.transform, e.selection.getBookmark(), i, r), l = new sr(n ? a : o.remaining, n ? o.remaining : a, null, 0, -1);
32920
32922
  return o.transform.setSelection(s).setMeta(ti, { redo: n, historyState: l });
32921
32923
  }
32922
- let Fu = !1, wb = null;
32924
+ let Nu = !1, wb = null;
32923
32925
  function fa(t) {
32924
32926
  let e = t.plugins;
32925
32927
  if (wb != e) {
32926
- Fu = !1, wb = e;
32928
+ Nu = !1, wb = e;
32927
32929
  for (let n = 0; n < e.length; n++)
32928
32930
  if (e[n].spec.historyPreserveItems) {
32929
- Fu = !0;
32931
+ Nu = !0;
32930
32932
  break;
32931
32933
  }
32932
32934
  }
32933
- return Fu;
32935
+ return Nu;
32934
32936
  }
32935
32937
  const ti = new Zt("history"), a_ = new Zt("closeHistory");
32936
32938
  function l_(t = {}) {
@@ -33736,13 +33738,13 @@ function H_(t) {
33736
33738
  }
33737
33739
  };
33738
33740
  }
33739
- let As = null, sf = /* @__PURE__ */ new Set(), _o = /* @__PURE__ */ new Map(), ui = !1, af = !1;
33741
+ let As = null, of = /* @__PURE__ */ new Set(), _o = /* @__PURE__ */ new Map(), ui = !1, sf = !1;
33740
33742
  const W_ = {
33741
33743
  Tab: !0,
33742
33744
  Escape: !0
33743
33745
  };
33744
33746
  function uh(t, e) {
33745
- for (let n of sf) n(t, e);
33747
+ for (let n of of) n(t, e);
33746
33748
  }
33747
33749
  function $_(t) {
33748
33750
  return !(t.metaKey || !j_() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
@@ -33757,12 +33759,12 @@ function mS(t) {
33757
33759
  z_(t) && (ui = !0, As = "virtual");
33758
33760
  }
33759
33761
  function gS(t) {
33760
- t.target === window || t.target === document || (!ui && !af && (As = "virtual", uh("virtual", t)), ui = !1, af = !1);
33762
+ t.target === window || t.target === document || (!ui && !sf && (As = "virtual", uh("virtual", t)), ui = !1, sf = !1);
33761
33763
  }
33762
33764
  function vS() {
33763
- ui = !1, af = !0;
33765
+ ui = !1, sf = !0;
33764
33766
  }
33765
- function lf(t) {
33767
+ function af(t) {
33766
33768
  if (typeof window > "u" || _o.get(Yr(t))) return;
33767
33769
  const e = Yr(t), n = Es(t);
33768
33770
  let r = e.HTMLElement.prototype.focus;
@@ -33783,8 +33785,8 @@ const bS = (t, e) => {
33783
33785
  function X_(t) {
33784
33786
  const e = Es(t);
33785
33787
  let n;
33786
- return e.readyState !== "loading" ? lf(t) : (n = () => {
33787
- lf(t);
33788
+ return e.readyState !== "loading" ? af(t) : (n = () => {
33789
+ af(t);
33788
33790
  }, e.addEventListener("DOMContentLoaded", n)), () => bS(t, n);
33789
33791
  }
33790
33792
  typeof document < "u" && X_();
@@ -33808,12 +33810,12 @@ function Z_(t, e, n) {
33808
33810
  return t = t || (n == null ? void 0 : n.target) instanceof i && !Y_.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof o || (n == null ? void 0 : n.target) instanceof s && (n == null ? void 0 : n.target.isContentEditable), !(t && e === "keyboard" && n instanceof a && !W_[n.key]);
33809
33811
  }
33810
33812
  function J_(t, e, n) {
33811
- lf(), Pe(() => {
33813
+ af(), Pe(() => {
33812
33814
  let r = (i, o) => {
33813
33815
  Z_(!!(n != null && n.isTextInput), i, o) && t(yS());
33814
33816
  };
33815
- return sf.add(r), () => {
33816
- sf.delete(r);
33817
+ return of.add(r), () => {
33818
+ of.delete(r);
33817
33819
  };
33818
33820
  }, e);
33819
33821
  }
@@ -33846,19 +33848,19 @@ function U_(t) {
33846
33848
  }
33847
33849
  };
33848
33850
  }
33849
- let Tl = !1, Vu = 0;
33850
- function cf() {
33851
+ let Tl = !1, Fu = 0;
33852
+ function lf() {
33851
33853
  Tl = !0, setTimeout(() => {
33852
33854
  Tl = !1;
33853
33855
  }, 50);
33854
33856
  }
33855
33857
  function Eb(t) {
33856
- t.pointerType === "touch" && cf();
33858
+ t.pointerType === "touch" && lf();
33857
33859
  }
33858
33860
  function K_() {
33859
33861
  if (!(typeof document > "u"))
33860
- return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Eb) : document.addEventListener("touchend", cf), Vu++, () => {
33861
- Vu--, !(Vu > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Eb) : document.removeEventListener("touchend", cf));
33862
+ return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Eb) : document.addEventListener("touchend", lf), Fu++, () => {
33863
+ Fu--, !(Fu > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Eb) : document.removeEventListener("touchend", lf));
33862
33864
  };
33863
33865
  }
33864
33866
  function xS(t) {
@@ -33948,10 +33950,10 @@ function CS(t = {}) {
33948
33950
  focusProps: r ? f : d
33949
33951
  };
33950
33952
  }
33951
- var q_ = Object.defineProperty, Q_ = (t, e, n) => e in t ? q_(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Bu = (t, e, n) => (Q_(t, typeof e != "symbol" ? e + "" : e, n), n);
33953
+ var q_ = Object.defineProperty, Q_ = (t, e, n) => e in t ? q_(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Vu = (t, e, n) => (Q_(t, typeof e != "symbol" ? e + "" : e, n), n);
33952
33954
  let eH = class {
33953
33955
  constructor() {
33954
- Bu(this, "current", this.detect()), Bu(this, "handoffState", "pending"), Bu(this, "currentId", 0);
33956
+ Vu(this, "current", this.detect()), Vu(this, "handoffState", "pending"), Vu(this, "currentId", 0);
33955
33957
  }
33956
33958
  set(e) {
33957
33959
  this.current !== e && (this.handoffState = "pending", this.currentId = 0, this.current = e);
@@ -34080,7 +34082,7 @@ function Yn(t, e, ...n) {
34080
34082
  let r = new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map((i) => `"${i}"`).join(", ")}.`);
34081
34083
  throw Error.captureStackTrace && Error.captureStackTrace(r, Yn), r;
34082
34084
  }
34083
- var uf = ((t) => (t[t.None = 0] = "None", t[t.RenderStrategy = 1] = "RenderStrategy", t[t.Static = 2] = "Static", t))(uf || {}), oH = ((t) => (t[t.Unmount = 0] = "Unmount", t[t.Hidden = 1] = "Hidden", t))(oH || {});
34085
+ var cf = ((t) => (t[t.None = 0] = "None", t[t.RenderStrategy = 1] = "RenderStrategy", t[t.Static = 2] = "Static", t))(cf || {}), oH = ((t) => (t[t.Unmount = 0] = "Unmount", t[t.Hidden = 1] = "Hidden", t))(oH || {});
34084
34086
  function hn() {
34085
34087
  let t = aH();
34086
34088
  return fe((e) => sH({ mergeRefs: t, ...e }), [t]);
@@ -34105,7 +34107,7 @@ function sH({ ourProps: t, theirProps: e, slot: n, defaultTag: r, features: i, v
34105
34107
  return qs(l, n, r, s, a);
34106
34108
  }
34107
34109
  function qs(t, e = {}, n, r, i) {
34108
- let { as: o = n, children: s, refName: a = "ref", ...l } = Lu(t, ["unmount", "static"]), c = t.ref !== void 0 ? { [a]: t.ref } : {}, u = typeof s == "function" ? s(e) : s;
34110
+ let { as: o = n, children: s, refName: a = "ref", ...l } = Bu(t, ["unmount", "static"]), c = t.ref !== void 0 ? { [a]: t.ref } : {}, u = typeof s == "function" ? s(e) : s;
34109
34111
  "className" in l && l.className && typeof l.className == "function" && (l.className = l.className(e)), l["aria-labelledby"] && l["aria-labelledby"] === l.id && (l["aria-labelledby"] = void 0);
34110
34112
  let d = {};
34111
34113
  if (e) {
@@ -34122,11 +34124,11 @@ function qs(t, e = {}, n, r, i) {
34122
34124
  `)].join(`
34123
34125
  `));
34124
34126
  } else {
34125
- let f = u.props, p = f == null ? void 0 : f.className, h = typeof p == "function" ? (...v) => Ab(p(...v), l.className) : Ab(p, l.className), m = h ? { className: h } : {}, g = SS(u.props, Fr(Lu(l, ["ref"])));
34127
+ let f = u.props, p = f == null ? void 0 : f.className, h = typeof p == "function" ? (...v) => Ab(p(...v), l.className) : Ab(p, l.className), m = h ? { className: h } : {}, g = SS(u.props, Fr(Bu(l, ["ref"])));
34126
34128
  for (let v in d) v in g && delete d[v];
34127
34129
  return FI(u, Object.assign({}, g, d, c, { ref: i(cH(u), c.ref) }, m));
34128
34130
  }
34129
- return Kb(o, Object.assign({}, Lu(l, ["ref"]), o !== Ht && c, o !== Ht && d), u);
34131
+ return Kb(o, Object.assign({}, Bu(l, ["ref"]), o !== Ht && c, o !== Ht && d), u);
34130
34132
  }
34131
34133
  function aH() {
34132
34134
  let t = de([]), e = fe((n) => {
@@ -34179,7 +34181,7 @@ function Fr(t) {
34179
34181
  for (let n in e) e[n] === void 0 && delete e[n];
34180
34182
  return e;
34181
34183
  }
34182
- function Lu(t, e = []) {
34184
+ function Bu(t, e = []) {
34183
34185
  let n = Object.assign({}, t);
34184
34186
  for (let r of e) r in n && delete n[r];
34185
34187
  return n;
@@ -34295,29 +34297,29 @@ function IH(t, e) {
34295
34297
  let EH = mn(IH);
34296
34298
  Object.assign(EH, {});
34297
34299
  var Rt = ((t) => (t.Space = " ", t.Enter = "Enter", t.Escape = "Escape", t.Backspace = "Backspace", t.Delete = "Delete", t.ArrowLeft = "ArrowLeft", t.ArrowUp = "ArrowUp", t.ArrowRight = "ArrowRight", t.ArrowDown = "ArrowDown", t.Home = "Home", t.End = "End", t.PageUp = "PageUp", t.PageDown = "PageDown", t.Tab = "Tab", t))(Rt || {});
34298
- let vc = qe(null);
34299
- vc.displayName = "LabelContext";
34300
+ let gc = qe(null);
34301
+ gc.displayName = "LabelContext";
34300
34302
  function PS() {
34301
- let t = Me(vc);
34303
+ let t = Me(gc);
34302
34304
  if (t === null) {
34303
34305
  let e = new Error("You used a <Label /> component, but it is not inside a relevant parent.");
34304
34306
  throw Error.captureStackTrace && Error.captureStackTrace(e, PS), e;
34305
34307
  }
34306
34308
  return t;
34307
34309
  }
34308
- function bc(t) {
34310
+ function vc(t) {
34309
34311
  var e, n, r;
34310
- let i = (n = (e = Me(vc)) == null ? void 0 : e.value) != null ? n : void 0;
34312
+ let i = (n = (e = Me(gc)) == null ? void 0 : e.value) != null ? n : void 0;
34311
34313
  return ((r = t == null ? void 0 : t.length) != null ? r : 0) > 0 ? [i, ...t].filter(Boolean).join(" ") : i;
34312
34314
  }
34313
34315
  function AH({ inherit: t = !1 } = {}) {
34314
- let e = bc(), [n, r] = Oe([]), i = t ? [e, ...n].filter(Boolean) : n;
34316
+ let e = vc(), [n, r] = Oe([]), i = t ? [e, ...n].filter(Boolean) : n;
34315
34317
  return [i.length > 0 ? i.join(" ") : void 0, we(() => function(o) {
34316
34318
  let s = Se((l) => (r((c) => [...c, l]), () => r((c) => {
34317
34319
  let u = c.slice(), d = u.indexOf(l);
34318
34320
  return d !== -1 && u.splice(d, 1), u;
34319
34321
  }))), a = we(() => ({ register: s, slot: o.slot, name: o.name, props: o.props, value: o.value }), [s, o.slot, o.name, o.props, o.value]);
34320
- return $.createElement(vc.Provider, { value: a }, o.children);
34322
+ return $.createElement(gc.Provider, { value: a }, o.children);
34321
34323
  }, [r])];
34322
34324
  }
34323
34325
  let TH = "label";
@@ -34373,7 +34375,7 @@ function Ei(t, e, n) {
34373
34375
  return (l = n == null ? void 0 : n.onChange) == null || l.call(n, i), i;
34374
34376
  };
34375
34377
  }
34376
- function ju(t, e) {
34378
+ function Lu(t, e) {
34377
34379
  if (t === void 0)
34378
34380
  throw new Error("Unexpected undefined");
34379
34381
  return t;
@@ -34694,11 +34696,11 @@ class GH {
34694
34696
  ), this.getVirtualItemForOffset = (n) => {
34695
34697
  const r = this.getMeasurements();
34696
34698
  if (r.length !== 0)
34697
- return ju(
34699
+ return Lu(
34698
34700
  r[RS(
34699
34701
  0,
34700
34702
  r.length - 1,
34701
- (i) => ju(r[i]).start,
34703
+ (i) => Lu(r[i]).start,
34702
34704
  n
34703
34705
  )]
34704
34706
  );
@@ -34742,7 +34744,7 @@ class GH {
34742
34744
  if (this.scrollToIndexTimeoutId = null, this.elementsCache.has(
34743
34745
  this.options.getItemKey(n)
34744
34746
  )) {
34745
- const [c] = ju(
34747
+ const [c] = Lu(
34746
34748
  this.getOffsetForIndex(n, a)
34747
34749
  );
34748
34750
  PH(c, this.getScrollOffset()) || this.scrollToIndex(n, { align: a, behavior: i });
@@ -34838,7 +34840,7 @@ function YH(t) {
34838
34840
  return { width: e, height: n };
34839
34841
  }
34840
34842
  function kb(t, e = !1) {
34841
- let [n, r] = vf(() => ({}), {}), i = we(() => YH(t), [t, n]);
34843
+ let [n, r] = gf(() => ({}), {}), i = we(() => YH(t), [t, n]);
34842
34844
  return Ke(() => {
34843
34845
  if (!t) return;
34844
34846
  let o = new ResizeObserver(r);
@@ -34886,18 +34888,18 @@ function mh(t, e) {
34886
34888
  let o = i.indexOf(r), s = i.length;
34887
34889
  return o === -1 && (o = s, s += 1), o === s - 1;
34888
34890
  }
34889
- let df = /* @__PURE__ */ new Map(), Ho = /* @__PURE__ */ new Map();
34891
+ let uf = /* @__PURE__ */ new Map(), Ho = /* @__PURE__ */ new Map();
34890
34892
  function Mb(t) {
34891
34893
  var e;
34892
34894
  let n = (e = Ho.get(t)) != null ? e : 0;
34893
- return Ho.set(t, n + 1), n !== 0 ? () => Ob(t) : (df.set(t, { "aria-hidden": t.getAttribute("aria-hidden"), inert: t.inert }), t.setAttribute("aria-hidden", "true"), t.inert = !0, () => Ob(t));
34895
+ return Ho.set(t, n + 1), n !== 0 ? () => Ob(t) : (uf.set(t, { "aria-hidden": t.getAttribute("aria-hidden"), inert: t.inert }), t.setAttribute("aria-hidden", "true"), t.inert = !0, () => Ob(t));
34894
34896
  }
34895
34897
  function Ob(t) {
34896
34898
  var e;
34897
34899
  let n = (e = Ho.get(t)) != null ? e : 1;
34898
34900
  if (n === 1 ? Ho.delete(t) : Ho.set(t, n - 1), n !== 1) return;
34899
- let r = df.get(t);
34900
- r && (r["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", r["aria-hidden"]), t.inert = r.inert, df.delete(t));
34901
+ let r = uf.get(t);
34902
+ r && (r["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", r["aria-hidden"]), t.inert = r.inert, uf.delete(t));
34901
34903
  }
34902
34904
  function UH(t, { allowed: e, disallowed: n } = {}) {
34903
34905
  let r = mh(t, "inert-others");
@@ -34941,16 +34943,16 @@ function KH(t, e, n) {
34941
34943
  return () => o.dispose();
34942
34944
  }, [e, r, t]);
34943
34945
  }
34944
- let ff = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
34946
+ let df = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
34945
34947
  var qH = ((t) => (t[t.First = 1] = "First", t[t.Previous = 2] = "Previous", t[t.Next = 4] = "Next", t[t.Last = 8] = "Last", t[t.WrapAround = 16] = "WrapAround", t[t.NoScroll = 32] = "NoScroll", t[t.AutoFocus = 64] = "AutoFocus", t))(qH || {}), QH = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(QH || {}), eW = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(eW || {}), FS = ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(FS || {});
34946
34948
  function tW(t, e = 0) {
34947
34949
  var n;
34948
34950
  return t === ((n = Ts(t)) == null ? void 0 : n.body) ? !1 : Yn(e, { 0() {
34949
- return t.matches(ff);
34951
+ return t.matches(df);
34950
34952
  }, 1() {
34951
34953
  let r = t;
34952
34954
  for (; r !== null; ) {
34953
- if (r.matches(ff)) return !0;
34955
+ if (r.matches(df)) return !0;
34954
34956
  r = r.parentElement;
34955
34957
  }
34956
34958
  return !1;
@@ -35028,7 +35030,7 @@ function sW(t, e, n) {
35028
35030
  if (!(Math.abs(c.x - a.current.x) >= Pb || Math.abs(c.y - a.current.y) >= Pb)) return o(l, () => l.target instanceof HTMLElement ? l.target : null);
35029
35031
  }, !0), oW(r, "blur", (l) => o(l, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
35030
35032
  }
35031
- function yc(...t) {
35033
+ function bc(...t) {
35032
35034
  return we(() => Ts(...t), [...t]);
35033
35035
  }
35034
35036
  function aW(t, e, n, r) {
@@ -35289,7 +35291,7 @@ function GS(t) {
35289
35291
  return e.current == null ? void 0 : e.current(...r);
35290
35292
  }, []);
35291
35293
  }
35292
- var pf = typeof document < "u" ? Qi : Pe;
35294
+ var ff = typeof document < "u" ? Qi : Pe;
35293
35295
  let Vb = !1, TW = 0;
35294
35296
  const Bb = () => (
35295
35297
  // Ensure the id is unique with multiple independent versions of Floating UI
@@ -35298,7 +35300,7 @@ const Bb = () => (
35298
35300
  );
35299
35301
  function kW() {
35300
35302
  const [t, e] = I.useState(() => Vb ? Bb() : void 0);
35301
- return pf(() => {
35303
+ return ff(() => {
35302
35304
  t == null && e(Bb());
35303
35305
  }, []), I.useEffect(() => {
35304
35306
  Vb = !0;
@@ -35391,7 +35393,7 @@ function GW(t) {
35391
35393
  ...t.elements
35392
35394
  }
35393
35395
  }), r = t.rootContext || n, i = r.elements, [o, s] = I.useState(null), [a, l] = I.useState(null), u = (i == null ? void 0 : i.domReference) || o, d = I.useRef(null), f = BW();
35394
- pf(() => {
35396
+ ff(() => {
35395
35397
  u && (d.current = u);
35396
35398
  }, [u]);
35397
35399
  const p = AI({
@@ -35428,7 +35430,7 @@ function GW(t) {
35428
35430
  elements: v,
35429
35431
  nodeId: e
35430
35432
  }), [p, g, v, e, r]);
35431
- return pf(() => {
35433
+ return ff(() => {
35432
35434
  r.dataRef.current.floatingContext = b;
35433
35435
  const x = f == null ? void 0 : f.nodesRef.current.find((w) => w.id === e);
35434
35436
  x && (x.context = b);
@@ -35440,7 +35442,7 @@ function GW(t) {
35440
35442
  }), [p, g, v, b]);
35441
35443
  }
35442
35444
  const Lb = "active", jb = "selected";
35443
- function Gu(t, e, n) {
35445
+ function ju(t, e, n) {
35444
35446
  const r = /* @__PURE__ */ new Map(), i = n === "item";
35445
35447
  let o = t;
35446
35448
  if (i && t) {
@@ -35480,15 +35482,15 @@ function Gu(t, e, n) {
35480
35482
  function zW(t) {
35481
35483
  t === void 0 && (t = []);
35482
35484
  const e = t.map((a) => a == null ? void 0 : a.reference), n = t.map((a) => a == null ? void 0 : a.floating), r = t.map((a) => a == null ? void 0 : a.item), i = I.useCallback(
35483
- (a) => Gu(a, t, "reference"),
35485
+ (a) => ju(a, t, "reference"),
35484
35486
  // eslint-disable-next-line react-hooks/exhaustive-deps
35485
35487
  e
35486
35488
  ), o = I.useCallback(
35487
- (a) => Gu(a, t, "floating"),
35489
+ (a) => ju(a, t, "floating"),
35488
35490
  // eslint-disable-next-line react-hooks/exhaustive-deps
35489
35491
  n
35490
35492
  ), s = I.useCallback(
35491
- (a) => Gu(a, t, "item"),
35493
+ (a) => ju(a, t, "item"),
35492
35494
  // eslint-disable-next-line react-hooks/exhaustive-deps
35493
35495
  r
35494
35496
  );
@@ -35535,15 +35537,15 @@ const _W = (t) => ({
35535
35537
  const x = {
35536
35538
  ...e,
35537
35539
  ...await Zb(-p.offsetTop - f.clientTop - d.reference.height / 2 - p.offsetHeight / 2 - o).fn(e)
35538
- }, w = await Ic(Gb(x, h.scrollHeight + m + f.clientTop), u), y = await Ic(x, {
35540
+ }, w = await Sc(Gb(x, h.scrollHeight + m + f.clientTop), u), y = await Sc(x, {
35539
35541
  ...u,
35540
35542
  elementContext: "reference"
35541
- }), E = Ec(0, w.top), A = x.y + E, G = (h.scrollHeight > h.clientHeight ? (X) => X : MI)(Ec(0, h.scrollHeight + (g && b || v ? m * 2 : 0) - E - Ec(0, w.bottom)));
35543
+ }), E = Ic(0, w.top), A = x.y + E, G = (h.scrollHeight > h.clientHeight ? (X) => X : MI)(Ic(0, h.scrollHeight + (g && b || v ? m * 2 : 0) - E - Ic(0, w.bottom)));
35542
35544
  if (h.style.maxHeight = G + "px", h.scrollTop = E, i) {
35543
35545
  const X = h.offsetHeight < p.offsetHeight * kI(a, n.current.length) - 1 || y.top >= -l || y.bottom >= -l;
35544
- Wu.flushSync(() => i(X));
35546
+ Hu.flushSync(() => i(X));
35545
35547
  }
35546
- return r && (r.current = await Ic(Gb({
35548
+ return r && (r.current = await Sc(Gb({
35547
35549
  ...x,
35548
35550
  y: A
35549
35551
  }, h.offsetHeight + m + f.clientTop), u)), {
@@ -35567,7 +35569,7 @@ function HW(t, e) {
35567
35569
  if (m.ctrlKey || !h || o.current == null)
35568
35570
  return;
35569
35571
  const g = m.deltaY, v = o.current.top >= -0.5, b = o.current.bottom >= -0.5, x = h.scrollHeight - h.clientHeight, w = g < 0 ? -1 : 1, y = g < 0 ? "max" : "min";
35570
- h.scrollHeight <= h.clientHeight || (!v && g > 0 || !b && g < 0 ? (m.preventDefault(), Wu.flushSync(() => {
35572
+ h.scrollHeight <= h.clientHeight || (!v && g > 0 || !b && g < 0 ? (m.preventDefault(), Hu.flushSync(() => {
35571
35573
  l((E) => E + Math[y](g, x * w));
35572
35574
  })) : /firefox/i.test(IW()) && (h.scrollTop += g));
35573
35575
  }
@@ -35596,7 +35598,7 @@ function HW(t, e) {
35596
35598
  if (!(!o.current || !p || !c.current)) {
35597
35599
  if (u.current !== null) {
35598
35600
  const h = p.scrollTop - u.current;
35599
- (o.current.bottom < -0.5 && h < -1 || o.current.top < -0.5 && h > 1) && Wu.flushSync(() => l((m) => m + h));
35601
+ (o.current.bottom < -0.5 && h < -1 || o.current.top < -0.5 && h > 1) && Hu.flushSync(() => l((m) => m + h));
35600
35602
  }
35601
35603
  requestAnimationFrame(() => {
35602
35604
  u.current = p.scrollTop;
@@ -35687,10 +35689,10 @@ function JW(t) {
35687
35689
  }
35688
35690
  function UW(t, e) {
35689
35691
  var n, r, i;
35690
- let o = zu((n = t == null ? void 0 : t.gap) != null ? n : "var(--anchor-gap, 0)", e), s = zu((r = t == null ? void 0 : t.offset) != null ? r : "var(--anchor-offset, 0)", e), a = zu((i = t == null ? void 0 : t.padding) != null ? i : "var(--anchor-padding, 0)", e);
35692
+ let o = Gu((n = t == null ? void 0 : t.gap) != null ? n : "var(--anchor-gap, 0)", e), s = Gu((r = t == null ? void 0 : t.offset) != null ? r : "var(--anchor-offset, 0)", e), a = Gu((i = t == null ? void 0 : t.padding) != null ? i : "var(--anchor-padding, 0)", e);
35691
35693
  return { ...t, gap: o, offset: s, padding: a };
35692
35694
  }
35693
- function zu(t, e, n = void 0) {
35695
+ function Gu(t, e, n = void 0) {
35694
35696
  let r = ks(), i = Se((l, c) => {
35695
35697
  if (l == null) return [n, null];
35696
35698
  if (typeof l == "number") return [l, null];
@@ -35743,10 +35745,10 @@ function _b(t, e) {
35743
35745
  return e.removeChild(n), r;
35744
35746
  }
35745
35747
  function KW({ children: t, freeze: e }) {
35746
- let n = hf(e, t);
35748
+ let n = pf(e, t);
35747
35749
  return $.createElement($.Fragment, null, n);
35748
35750
  }
35749
- function hf(t, e) {
35751
+ function pf(t, e) {
35750
35752
  let [n, r] = Oe(e);
35751
35753
  return !t && n !== e && r(e), t ? n : e;
35752
35754
  }
@@ -35770,7 +35772,7 @@ e5(() => {
35770
35772
  function t(e) {
35771
35773
  if (!(e.target instanceof HTMLElement) || e.target === document.body || jr[0] === e.target) return;
35772
35774
  let n = e.target;
35773
- n = n.closest(ff), jr.unshift(n ?? e.target), jr = jr.filter((r) => r != null && r.isConnected), jr.splice(10);
35775
+ n = n.closest(df), jr.unshift(n ?? e.target), jr = jr.filter((r) => r != null && r.isConnected), jr.splice(10);
35774
35776
  }
35775
35777
  window.addEventListener("click", t, { capture: !0 }), window.addEventListener("mousedown", t, { capture: !0 }), window.addEventListener("focus", t, { capture: !0 }), document.body.addEventListener("click", t, { capture: !0 }), document.body.addEventListener("mousedown", t, { capture: !0 }), document.body.addEventListener("focus", t, { capture: !0 });
35776
35778
  });
@@ -35835,7 +35837,7 @@ function s5() {
35835
35837
  return Me(o5);
35836
35838
  }
35837
35839
  function a5(t) {
35838
- let e = s5(), n = Me(HS), r = yc(t), [i, o] = Oe(() => {
35840
+ let e = s5(), n = Me(HS), r = bc(t), [i, o] = Oe(() => {
35839
35841
  var s;
35840
35842
  if (!e && n !== null) return (s = n.current) != null ? s : null;
35841
35843
  if (ni.isServer) return null;
@@ -35854,7 +35856,7 @@ function a5(t) {
35854
35856
  let _S = Ht, l5 = mn(function(t, e) {
35855
35857
  let n = t, r = de(null), i = Qn(CH((d) => {
35856
35858
  r.current = d;
35857
- }), e), o = yc(r), s = a5(r), [a] = Oe(() => {
35859
+ }), e), o = bc(r), s = a5(r), [a] = Oe(() => {
35858
35860
  var d;
35859
35861
  return ni.isServer ? null : (d = o == null ? void 0 : o.createElement("div")) != null ? d : null;
35860
35862
  }), l = Me(f5), c = i5();
@@ -35880,7 +35882,7 @@ function d5(t, e) {
35880
35882
  }
35881
35883
  let f5 = qe(null), p5 = mn(c5), h5 = mn(d5), m5 = Object.assign(p5, { Group: h5 });
35882
35884
  var g5 = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(g5 || {}), v5 = ((t) => (t[t.Single = 0] = "Single", t[t.Multi = 1] = "Multi", t))(v5 || {}), b5 = ((t) => (t[t.Pointer = 0] = "Pointer", t[t.Focus = 1] = "Focus", t[t.Other = 2] = "Other", t))(b5 || {}), y5 = ((t) => (t[t.OpenCombobox = 0] = "OpenCombobox", t[t.CloseCombobox = 1] = "CloseCombobox", t[t.GoToOption = 2] = "GoToOption", t[t.SetTyping = 3] = "SetTyping", t[t.RegisterOption = 4] = "RegisterOption", t[t.UnregisterOption = 5] = "UnregisterOption", t[t.SetActivationTrigger = 6] = "SetActivationTrigger", t[t.UpdateVirtualConfiguration = 7] = "UpdateVirtualConfiguration", t[t.SetInputElement = 8] = "SetInputElement", t[t.SetButtonElement = 9] = "SetButtonElement", t[t.SetOptionsElement = 10] = "SetOptionsElement", t))(y5 || {});
35883
- function _u(t, e = (n) => n) {
35885
+ function zu(t, e = (n) => n) {
35884
35886
  let n = t.activeOptionIndex !== null ? t.options[t.activeOptionIndex] : null, r = e(t.options.slice()), i = r.length > 0 && r[0].dataRef.current.order !== null ? r.sort((s, a) => s.dataRef.current.order - a.dataRef.current.order) : rW(r, (s) => s.dataRef.current.domRef.current), o = n ? i.indexOf(n) : null;
35885
35887
  return o === -1 && (o = null), { options: i, activeOptionIndex: o };
35886
35888
  }
@@ -35909,7 +35911,7 @@ let x5 = { 1(t) {
35909
35911
  } }), f = (i = e.trigger) != null ? i : 2;
35910
35912
  return t.activeOptionIndex === d && t.activationTrigger === f ? t : { ...t, activeOptionIndex: d, activationTrigger: f, isTyping: !1, __demoMode: !1 };
35911
35913
  }
35912
- let s = _u(t);
35914
+ let s = zu(t);
35913
35915
  if (s.activeOptionIndex === null) {
35914
35916
  let c = s.options.findIndex((u) => !u.dataRef.current.disabled);
35915
35917
  c !== -1 && (s.activeOptionIndex = c);
@@ -35919,14 +35921,14 @@ let x5 = { 1(t) {
35919
35921
  }, 4: (t, e) => {
35920
35922
  var n, r, i;
35921
35923
  if ((n = t.dataRef.current) != null && n.virtual) return { ...t, options: [...t.options, e.payload] };
35922
- let o = e.payload, s = _u(t, (l) => (l.push(o), l));
35924
+ let o = e.payload, s = zu(t, (l) => (l.push(o), l));
35923
35925
  t.activeOptionIndex === null && (r = t.dataRef.current) != null && r.isSelected(e.payload.dataRef.current.value) && (s.activeOptionIndex = s.options.indexOf(o));
35924
35926
  let a = { ...t, ...s, activationTrigger: 2 };
35925
35927
  return (i = t.dataRef.current) != null && i.__demoMode && t.dataRef.current.value === void 0 && (a.activeOptionIndex = 0), a;
35926
35928
  }, 5: (t, e) => {
35927
35929
  var n;
35928
35930
  if ((n = t.dataRef.current) != null && n.virtual) return { ...t, options: t.options.filter((i) => i.id !== e.id) };
35929
- let r = _u(t, (i) => {
35931
+ let r = zu(t, (i) => {
35930
35932
  let o = i.findIndex((s) => s.id === e.id);
35931
35933
  return o !== -1 && i.splice(o, 1), i;
35932
35934
  });
@@ -35990,7 +35992,7 @@ function w5(t, e) {
35990
35992
  let S5 = Ht;
35991
35993
  function I5(t, e) {
35992
35994
  var n, r;
35993
- let i = dh(), { value: o, defaultValue: s, onChange: a, form: l, name: c, by: u, disabled: d = i || !1, onClose: f, __demoMode: p = !1, multiple: h = !1, immediate: m = !1, virtual: g = null, nullable: v, ...b } = t, x = dH(s), [w = h ? [] : void 0, y] = uH(o, a, x), [E, A] = vf(w5, { dataRef: BI(), comboboxState: p ? 0 : 1, isTyping: !1, options: [], virtual: g ? { options: g.options, disabled: (n = g.disabled) != null ? n : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: p }), T = de(!1), R = de({ static: !1, hold: !1 }), G = XH(u), X = Se((ue) => g ? u === null ? g.options.indexOf(ue) : g.options.findIndex((ke) => G(ke, ue)) : E.options.findIndex((ke) => G(ke.dataRef.current.value, ue))), z = fe((ue) => Yn(L.mode, { 1: () => w.some((ke) => G(ke, ue)), 0: () => G(w, ue) }), [w]), J = Se((ue) => E.activeOptionIndex === X(ue)), L = we(() => ({ ...E, immediate: m, optionsPropsRef: R, value: w, defaultValue: x, disabled: d, mode: h ? 1 : 0, virtual: g ? E.virtual : null, get activeOptionIndex() {
35995
+ let i = dh(), { value: o, defaultValue: s, onChange: a, form: l, name: c, by: u, disabled: d = i || !1, onClose: f, __demoMode: p = !1, multiple: h = !1, immediate: m = !1, virtual: g = null, nullable: v, ...b } = t, x = dH(s), [w = h ? [] : void 0, y] = uH(o, a, x), [E, A] = gf(w5, { dataRef: BI(), comboboxState: p ? 0 : 1, isTyping: !1, options: [], virtual: g ? { options: g.options, disabled: (n = g.disabled) != null ? n : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: p }), T = de(!1), R = de({ static: !1, hold: !1 }), G = XH(u), X = Se((ue) => g ? u === null ? g.options.indexOf(ue) : g.options.findIndex((ke) => G(ke, ue)) : E.options.findIndex((ke) => G(ke.dataRef.current.value, ue))), z = fe((ue) => Yn(L.mode, { 1: () => w.some((ke) => G(ke, ue)), 0: () => G(w, ue) }), [w]), J = Se((ue) => E.activeOptionIndex === X(ue)), L = we(() => ({ ...E, immediate: m, optionsPropsRef: R, value: w, defaultValue: x, disabled: d, mode: h ? 1 : 0, virtual: g ? E.virtual : null, get activeOptionIndex() {
35994
35996
  if (T.current && E.activeOptionIndex === null && (g ? g.options.length > 0 : E.options.length > 0)) {
35995
35997
  if (g) {
35996
35998
  let ke = g.options.findIndex((wt) => {
@@ -36053,7 +36055,7 @@ function I5(t, e) {
36053
36055
  let E5 = "input";
36054
36056
  function A5(t, e) {
36055
36057
  var n, r, i, o, s;
36056
- let a = ao("Combobox.Input"), l = Os("Combobox.Input"), c = Fn(), u = kS(), { id: d = u || `headlessui-combobox-input-${c}`, onChange: f, displayValue: p, disabled: h = a.disabled || !1, autoFocus: m = !1, type: g = "text", ...v } = t, b = de(null), x = Qn(b, e, $W(), l.setInputElement), w = yc(a.inputElement), y = ks(), E = Se(() => {
36058
+ let a = ao("Combobox.Input"), l = Os("Combobox.Input"), c = Fn(), u = kS(), { id: d = u || `headlessui-combobox-input-${c}`, onChange: f, displayValue: p, disabled: h = a.disabled || !1, autoFocus: m = !1, type: g = "text", ...v } = t, b = de(null), x = Qn(b, e, $W(), l.setInputElement), w = bc(a.inputElement), y = ks(), E = Se(() => {
36057
36059
  l.onChange(null), a.optionsElement && (a.optionsElement.scrollTop = 0), l.goToOption(ot.Nothing);
36058
36060
  }), A = we(() => {
36059
36061
  var V;
@@ -36127,7 +36129,7 @@ function A5(t, e) {
36127
36129
  (se = a.buttonElement) != null && se.contains(ie) || (ne = a.optionsElement) != null && ne.contains(ie) || a.disabled || a.immediate && a.comboboxState !== 0 && y.microTask(() => {
36128
36130
  Gr(() => l.openCombobox()), l.setActivationTrigger(1);
36129
36131
  });
36130
- }), Y = bc(), F = wH(), { isFocused: B, focusProps: Q } = CS({ autoFocus: m }), { isHovered: re, hoverProps: P } = xS({ isDisabled: h }), _ = we(() => ({ open: a.comboboxState === 0, disabled: h, hover: re, focus: B, autofocus: m }), [a, re, B, m, h]), H = fh({ ref: x, id: d, role: "combobox", type: g, "aria-controls": (n = a.optionsElement) == null ? void 0 : n.id, "aria-expanded": a.comboboxState === 0, "aria-activedescendant": a.activeOptionIndex === null ? void 0 : a.virtual ? (r = a.options.find((V) => !V.dataRef.current.disabled && a.compare(V.dataRef.current.value, a.virtual.options[a.activeOptionIndex]))) == null ? void 0 : r.id : (i = a.options[a.activeOptionIndex]) == null ? void 0 : i.id, "aria-labelledby": Y, "aria-describedby": F, "aria-autocomplete": "list", defaultValue: (s = (o = t.defaultValue) != null ? o : a.defaultValue !== void 0 ? p == null ? void 0 : p(a.defaultValue) : null) != null ? s : a.defaultValue, disabled: h || void 0, autoFocus: m, onCompositionStart: R, onCompositionEnd: G, onKeyDown: X, onChange: z, onFocus: L, onBlur: J }, Q, P);
36132
+ }), Y = vc(), F = wH(), { isFocused: B, focusProps: Q } = CS({ autoFocus: m }), { isHovered: re, hoverProps: P } = xS({ isDisabled: h }), _ = we(() => ({ open: a.comboboxState === 0, disabled: h, hover: re, focus: B, autofocus: m }), [a, re, B, m, h]), H = fh({ ref: x, id: d, role: "combobox", type: g, "aria-controls": (n = a.optionsElement) == null ? void 0 : n.id, "aria-expanded": a.comboboxState === 0, "aria-activedescendant": a.activeOptionIndex === null ? void 0 : a.virtual ? (r = a.options.find((V) => !V.dataRef.current.disabled && a.compare(V.dataRef.current.value, a.virtual.options[a.activeOptionIndex]))) == null ? void 0 : r.id : (i = a.options[a.activeOptionIndex]) == null ? void 0 : i.id, "aria-labelledby": Y, "aria-describedby": F, "aria-autocomplete": "list", defaultValue: (s = (o = t.defaultValue) != null ? o : a.defaultValue !== void 0 ? p == null ? void 0 : p(a.defaultValue) : null) != null ? s : a.defaultValue, disabled: h || void 0, autoFocus: m, onCompositionStart: R, onCompositionEnd: G, onKeyDown: X, onChange: z, onFocus: L, onBlur: J }, Q, P);
36131
36133
  return hn()({ ourProps: H, theirProps: v, slot: _, defaultTag: E5, name: "Combobox.Input" });
36132
36134
  }
36133
36135
  let T5 = "button";
@@ -36154,15 +36156,15 @@ function k5(t, e) {
36154
36156
  }
36155
36157
  }), p = Se((A) => {
36156
36158
  A.preventDefault(), !yH(A.currentTarget) && (A.button === bh.Left && (r.comboboxState === 0 ? i.closeCombobox() : i.openCombobox()), d());
36157
- }), h = bc([a]), { isFocusVisible: m, focusProps: g } = CS({ autoFocus: c }), { isHovered: v, hoverProps: b } = xS({ isDisabled: l }), { pressed: x, pressProps: w } = rH({ disabled: l }), y = we(() => ({ open: r.comboboxState === 0, active: x || r.comboboxState === 0, disabled: l, value: r.value, hover: v, focus: m }), [r, v, m, x, l]), E = fh({ ref: o, id: a, type: lW(t, r.buttonElement), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": (n = r.optionsElement) == null ? void 0 : n.id, "aria-expanded": r.comboboxState === 0, "aria-labelledby": h, disabled: l || void 0, autoFocus: c, onMouseDown: p, onKeyDown: f }, g, b, w);
36159
+ }), h = vc([a]), { isFocusVisible: m, focusProps: g } = CS({ autoFocus: c }), { isHovered: v, hoverProps: b } = xS({ isDisabled: l }), { pressed: x, pressProps: w } = rH({ disabled: l }), y = we(() => ({ open: r.comboboxState === 0, active: x || r.comboboxState === 0, disabled: l, value: r.value, hover: v, focus: m }), [r, v, m, x, l]), E = fh({ ref: o, id: a, type: lW(t, r.buttonElement), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": (n = r.optionsElement) == null ? void 0 : n.id, "aria-expanded": r.comboboxState === 0, "aria-labelledby": h, disabled: l || void 0, autoFocus: c, onMouseDown: p, onKeyDown: f }, g, b, w);
36158
36160
  return hn()({ ourProps: E, theirProps: u, slot: y, defaultTag: T5, name: "Combobox.Button" });
36159
36161
  }
36160
- let M5 = "div", O5 = uf.RenderStrategy | uf.Static;
36162
+ let M5 = "div", O5 = cf.RenderStrategy | cf.Static;
36161
36163
  function P5(t, e) {
36162
36164
  var n, r, i;
36163
36165
  let o = Fn(), { id: s = `headlessui-combobox-options-${o}`, hold: a = !1, anchor: l, portal: c = !1, modal: u = !0, transition: d = !1, ...f } = t, p = ao("Combobox.Options"), h = Os("Combobox.Options"), m = WW(l);
36164
36166
  m && (c = !0);
36165
- let [g, v] = YW(m), [b, x] = Oe(null), w = XW(), y = Qn(e, m ? g : null, h.setOptionsElement, x), E = yc(p.optionsElement), A = qW(), [T, R] = yW(d, b, A !== null ? (A & ds.Open) === ds.Open : p.comboboxState === 0);
36167
+ let [g, v] = YW(m), [b, x] = Oe(null), w = XW(), y = Qn(e, m ? g : null, h.setOptionsElement, x), E = bc(p.optionsElement), A = qW(), [T, R] = yW(d, b, A !== null ? (A & ds.Open) === ds.Open : p.comboboxState === 0);
36166
36168
  KH(T, p.inputElement, h.closeCombobox);
36167
36169
  let G = p.__demoMode ? !1 : u && p.comboboxState === 0;
36168
36170
  hW(G, E);
@@ -36177,11 +36179,11 @@ function P5(t, e) {
36177
36179
  }, walk(H) {
36178
36180
  H.setAttribute("role", "none");
36179
36181
  } });
36180
- let z = bc([(n = p.buttonElement) == null ? void 0 : n.id]), J = we(() => ({ open: p.comboboxState === 0, option: void 0 }), [p.comboboxState]), L = Se(() => {
36182
+ let z = vc([(n = p.buttonElement) == null ? void 0 : n.id]), J = we(() => ({ open: p.comboboxState === 0, option: void 0 }), [p.comboboxState]), L = Se(() => {
36181
36183
  h.setActivationTrigger(0);
36182
36184
  }), Y = Se((H) => {
36183
36185
  H.preventDefault(), h.setActivationTrigger(0);
36184
- }), F = fh(m ? w() : {}, { "aria-labelledby": z, role: "listbox", "aria-multiselectable": p.mode === 1 ? !0 : void 0, id: s, ref: y, style: { ...f.style, ...v, "--input-width": kb(p.inputElement, !0).width, "--button-width": kb(p.buttonElement, !0).width }, onWheel: p.activationTrigger === 0 ? void 0 : L, onMouseDown: Y, ...bW(R) }), B = T && p.comboboxState === 1, Q = hf(B, (r = p.virtual) == null ? void 0 : r.options), re = hf(B, p.value), P = Se((H) => p.compare(re, H));
36186
+ }), F = fh(m ? w() : {}, { "aria-labelledby": z, role: "listbox", "aria-multiselectable": p.mode === 1 ? !0 : void 0, id: s, ref: y, style: { ...f.style, ...v, "--input-width": kb(p.inputElement, !0).width, "--button-width": kb(p.buttonElement, !0).width }, onWheel: p.activationTrigger === 0 ? void 0 : L, onMouseDown: Y, ...bW(R) }), B = T && p.comboboxState === 1, Q = pf(B, (r = p.virtual) == null ? void 0 : r.options), re = pf(B, p.value), P = Se((H) => p.compare(re, H));
36185
36187
  if (p.virtual) {
36186
36188
  if (Q === void 0) throw new Error("Missing `options` in virtual mode");
36187
36189
  Object.assign(f, { children: $.createElement(fs.Provider, { value: Q !== p.virtual.options ? { ...p, virtual: { ...p.virtual, options: Q } } : p }, $.createElement(C5, { slot: J }, f.children)) });
@@ -36222,7 +36224,7 @@ function D5(t, e) {
36222
36224
  }), J = we(() => ({ active: m, focus: m, selected: g, disabled: d }), [m, g, d]), L = { id: c, ref: w, role: "option", tabIndex: d === !0 ? void 0 : -1, "aria-disabled": d === !0 ? !0 : void 0, "aria-selected": g, disabled: void 0, onMouseDown: A, onFocus: T, onPointerEnter: G, onMouseEnter: G, onPointerMove: X, onMouseMove: X, onPointerLeave: z, onMouseLeave: z };
36223
36225
  return hn()({ ourProps: L, theirProps: p, slot: J, defaultTag: R5, name: "Combobox.Option" });
36224
36226
  }
36225
- let N5 = mn(I5), F5 = mn(k5), $S = mn(A5), V5 = OH, XS = mn(P5), mf = mn(D5), B5 = Object.assign(N5, { Input: $S, Button: F5, Label: V5, Options: XS, Option: mf });
36227
+ let N5 = mn(I5), F5 = mn(k5), $S = mn(A5), V5 = OH, XS = mn(P5), hf = mn(D5), B5 = Object.assign(N5, { Input: $S, Button: F5, Label: V5, Options: XS, Option: hf });
36226
36228
  const L5 = (t, e) => {
36227
36229
  switch (t) {
36228
36230
  case "country":
@@ -36294,7 +36296,7 @@ const L5 = (t, e) => {
36294
36296
  "scrollHidden absolute top-14 z-10 mt-2 flex w-full flex-col rounded-md border border-solid border-blue-grey-700 bg-color-white p-2 transition-all empty:invisible data-[closed]:scale-95 data-[closed]:opacity-0"
36295
36297
  ),
36296
36298
  children: /* @__PURE__ */ C.jsx("div", { className: "customScrollbar-y !max-h-[246px] overflow-x-hidden p-2", children: t && (t == null ? void 0 : t.length) > 0 ? /* @__PURE__ */ C.jsx(C.Fragment, { children: t == null ? void 0 : t.map(({ value: e, additionalText: n, isDisabled: r }) => /* @__PURE__ */ C.jsx(
36297
- mf,
36299
+ hf,
36298
36300
  {
36299
36301
  disabled: r,
36300
36302
  value: e ?? "",
@@ -36305,7 +36307,7 @@ const L5 = (t, e) => {
36305
36307
  ] })
36306
36308
  },
36307
36309
  e
36308
- )) }) : /* @__PURE__ */ C.jsx(mf, { value: "", className: "desk-body-regular-m text-color-tetriary", children: "Ничего не найдено" }) })
36310
+ )) }) : /* @__PURE__ */ C.jsx(hf, { value: "", className: "desk-body-regular-m text-color-tetriary", children: "Ничего не найдено" }) })
36309
36311
  }
36310
36312
  ), H5 = ({
36311
36313
  control: t,
@@ -36406,8 +36408,8 @@ export {
36406
36408
  Q5 as TabsSwitcher,
36407
36409
  m$ as TextareaControl,
36408
36410
  vA as debounce,
36409
- Ac as useBoolean,
36410
- Tf as useClickOutside,
36411
+ Ec as useBoolean,
36412
+ Af as useClickOutside,
36411
36413
  K5 as useCombineRef,
36412
36414
  U5 as useControlledForm,
36413
36415
  bA as useDebounceCallback,