@marimo-team/islands 0.26.1-dev105 → 0.26.1-dev108

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.
Files changed (97) hide show
  1. package/dist/{ConnectedDataExplorerComponent-C6dY5fiI.js → ConnectedDataExplorerComponent-DQaiOY7w.js} +15 -15
  2. package/dist/{ErrorBoundary-Bn664FZa.js → ErrorBoundary-BW4TciqU.js} +19 -19
  3. package/dist/{abnfDiagram-VCTEODGH-Ba0MYVW8.js → abnfDiagram-VCTEODGH-Df80tEYq.js} +2 -2
  4. package/dist/{any-language-editor-BNe8do3C.js → any-language-editor-BW-gNmbk.js} +2 -2
  5. package/dist/{architectureDiagram-5GKGNRK7-7MqAehef.js → architectureDiagram-5GKGNRK7-DNNMvKkY.js} +1 -1
  6. package/dist/{assertNever-5vhHGKOK.js → assertNever-B9_7z-dW.js} +13 -13
  7. package/dist/{chat-ui-zGgiq5zN.js → chat-ui-Be9X-W22.js} +49 -49
  8. package/dist/{check-DUIc04aK.js → check-BqF09bSG.js} +1 -1
  9. package/dist/{chunk-IMKFNOWR-CAWA0HGB.js → chunk-IMKFNOWR-pXqnQ_fj.js} +1 -1
  10. package/dist/{chunk-SHT3W25Y-BIwVQjG5.js → chunk-SHT3W25Y-BWrxB3I2.js} +1 -1
  11. package/dist/{chunk-SVP7TREG-Cux251TB.js → chunk-SVP7TREG-CPdQP8_U.js} +1 -1
  12. package/dist/{chunk-TICWLB2K-DJVQ6khO.js → chunk-TICWLB2K-C5MYCwBz.js} +1 -1
  13. package/dist/{circle-question-mark-evCnVIut.js → circle-question-mark-YmLYXyvS.js} +1 -1
  14. package/dist/{classDiagram-ZZMXUADV-Cwve77ev.js → classDiagram-ZZMXUADV-Ba0SRm01.js} +2 -2
  15. package/dist/{classDiagram-v2-VYDZK3BY-BAeHKXmD.js → classDiagram-v2-VYDZK3BY-DSSzL_Dk.js} +2 -2
  16. package/dist/{code-visibility-CMgSFUs7.js → code-visibility-BKmktPMd.js} +18 -18
  17. package/dist/{common-DWnR77Qk.js → common-CSJAjJGa.js} +168 -168
  18. package/dist/{copy-icon-CmNLxT5_.js → copy-icon-zP4__HPI.js} +2 -2
  19. package/dist/{createReducer-m7yAXmDu.js → createReducer-CArOwUaJ.js} +1 -1
  20. package/dist/{cynefinDiagram-5FMLGOSQ-t4eEkPJh.js → cynefinDiagram-5FMLGOSQ-BOtNvA04.js} +1 -1
  21. package/dist/{dagre-GXQ25YYZ-IuZuI28B.js → dagre-GXQ25YYZ-FpCEOTxX.js} +1 -1
  22. package/dist/{data-grid-overlay-editor-zS1h3iMI.js → data-grid-overlay-editor-DTibdR4H.js} +1 -1
  23. package/dist/{diagram-S7CK7UJ4-D8R5Q_ok.js → diagram-S7CK7UJ4-Cm1HaBuu.js} +1 -1
  24. package/dist/{diagram-UQ7AKVKN-BGuMPsr-.js → diagram-UQ7AKVKN-D1lA7Ggu.js} +1 -1
  25. package/dist/{diagram-VX7I27RA-BkTtpO8P.js → diagram-VX7I27RA-BX3e-Rue.js} +1 -1
  26. package/dist/{diagram-Z3DM3KII-C0__Mxfm.js → diagram-Z3DM3KII-Dgoj7bPf.js} +1 -1
  27. package/dist/{dialog-BvjfalZ9.js → dialog-DfKgafXJ.js} +30 -30
  28. package/dist/{dropdown-menu-D0DeN-aL.js → dropdown-menu-Dge_SmqE.js} +168 -168
  29. package/dist/{ebnfDiagram-PWID7BFC-CSESPZoz.js → ebnfDiagram-PWID7BFC-B0xWiXrz.js} +2 -2
  30. package/dist/{erDiagram-RLTQ6QDP-DsDTtabH.js → erDiagram-RLTQ6QDP-Cm-GO31-.js} +1 -1
  31. package/dist/{error-banner-CXLjTW24.js → error-banner-CfYrJaIb.js} +91 -91
  32. package/dist/{error-entries-DVclFjaE.js → error-entries-23Z_1oDM.js} +584 -590
  33. package/dist/{export-context-CkgZeARR.js → export-context-B1jdxzHF.js} +21 -21
  34. package/dist/{feedback-button-BMGqp8Ff.js → feedback-button-CPu5SV3b.js} +72 -72
  35. package/dist/{flowDiagram-HODETNUW-qxDPYbfV.js → flowDiagram-HODETNUW-CH6xMlW_.js} +2 -2
  36. package/dist/{formats-CcQrzFo8.js → formats-Y52bg800.js} +1 -1
  37. package/dist/{glide-data-editor-Bra6h4KB.js → glide-data-editor-CC9_NDNi.js} +11 -11
  38. package/dist/{glide-utils-CD8BaFTm.js → glide-utils-BRcuSTCx.js} +2 -2
  39. package/dist/{globals-_bXqC0R8.js → globals-BFlYTNoR.js} +3 -3
  40. package/dist/{html-to-image-Cst4BlIm.js → html-to-image-Cw7o1IbE.js} +5073 -5076
  41. package/dist/{infoDiagram-27XIBGKW-B5hq8RM_.js → infoDiagram-27XIBGKW-DbUO63CX.js} +1 -1
  42. package/dist/{ishikawaDiagram-5VMMS53U-DkHc_9ET.js → ishikawaDiagram-5VMMS53U-CfQrrELH.js} +1 -1
  43. package/dist/{kanban-definition-UXKFOSKX-CqkTFXmU.js → kanban-definition-UXKFOSKX-C5SJcu1W.js} +1 -1
  44. package/dist/{loader-CGrYn73j.js → loader-C9-qRO3m.js} +2 -2
  45. package/dist/main.js +6696 -6602
  46. package/dist/{mermaid-pmVHDUQA.js → mermaid-C2alqcd8.js} +34 -34
  47. package/dist/{mindmap-definition-YA3MSWOX-D6cNa__z.js → mindmap-definition-YA3MSWOX-ByVHE0Ax.js} +1 -1
  48. package/dist/{number-overlay-editor-XLUhOVa7.js → number-overlay-editor-qDcRKPE0.js} +1 -1
  49. package/dist/{pegDiagram-XKGWAZYB-CmWJX_s1.js → pegDiagram-XKGWAZYB-DF5FBKZi.js} +2 -2
  50. package/dist/{pencil-CxMgOe04.js → pencil-D7jyZPnP.js} +1 -1
  51. package/dist/{pieDiagram-E7YTZNPT-CAQAxHah.js → pieDiagram-E7YTZNPT-B5n9nBQN.js} +1 -1
  52. package/dist/{process-output-DizFa5IE.js → process-output-DdBM0lmd.js} +4 -4
  53. package/dist/{railroadDiagram-O6MQD6OU-jlSsiQg3.js → railroadDiagram-O6MQD6OU-r5t7OYNE.js} +2 -2
  54. package/dist/{requirementDiagram-BXWQKSXE-DkDjfPhn.js → requirementDiagram-BXWQKSXE-D4QtEyZQ.js} +1 -1
  55. package/dist/{reveal-component-llpC324_.js → reveal-component-BE1xhtNc.js} +1008 -1008
  56. package/dist/{select-CEnB18uc.js → select-Buk3aXi1.js} +341 -341
  57. package/dist/{sequenceDiagram-WJ2MYXX4-DLywsGCW.js → sequenceDiagram-WJ2MYXX4-CK3Atn-z.js} +1 -1
  58. package/dist/{spec-Dz-Avv1m.js → spec-BEp9O9dy.js} +4 -4
  59. package/dist/{stateDiagram-D77RDMKH-DUmlKwYU.js → stateDiagram-D77RDMKH-C1SxRI8V.js} +2 -2
  60. package/dist/{stateDiagram-v2-MP3YSRHH-D646KiXs.js → stateDiagram-v2-MP3YSRHH-DK5X6bsr.js} +2 -2
  61. package/dist/{static-state-iw0PrHK4.js → static-state-D-aT9dOr.js} +9 -9
  62. package/dist/{swimlanes-42K2YHIH-L7B1GphF.js → swimlanes-42K2YHIH-DdH5TZdu.js} +1 -1
  63. package/dist/{swimlanesDiagram-VR7AAH4N-DEu2wxtC.js → swimlanesDiagram-VR7AAH4N-CWBIvzgR.js} +2 -2
  64. package/dist/{timeline-definition-24CTP7MA-DDPyx1yG.js → timeline-definition-24CTP7MA-DE7-o2zU.js} +1 -1
  65. package/dist/{toast-BTjH6fIf.js → toast-b3k4YxaT.js} +54 -54
  66. package/dist/{tooltip-DyLdBIM4.js → tooltip-D-9pDheN.js} +62 -62
  67. package/dist/{use-restore-focus-DJ_-uSn_.js → use-restore-focus-CCfk-ey2.js} +1 -1
  68. package/dist/{useDateFormatter-HpKD0jEC.js → useDateFormatter-DH0uFwfL.js} +2 -2
  69. package/dist/{useDeepCompareMemoize-CHx-NxMl.js → useDeepCompareMemoize-Dn-ZJVTd.js} +1 -1
  70. package/dist/{useLifecycle-tPpAt-OE.js → useLifecycle-yjK7JsRL.js} +1 -1
  71. package/dist/{vega-component-BzNDFvQf.js → vega-component-BIq0qzhQ.js} +8 -8
  72. package/dist/{vennDiagram-4TSXK5OY-CRwWeb7g.js → vennDiagram-4TSXK5OY-D7yfNz0d.js} +1 -1
  73. package/dist/{wardleyDiagram-VM6X3IG4-DVlG9eoq.js → wardleyDiagram-VM6X3IG4-m5Jcz26Z.js} +1 -1
  74. package/dist/{xychartDiagram-S5SC5T6Z-CM32AISp.js → xychartDiagram-S5SC5T6Z-CA3zV3RW.js} +1 -1
  75. package/package.json +1 -1
  76. package/src/__mocks__/intersection-observer.ts +13 -12
  77. package/src/components/editor/Output.tsx +1 -1
  78. package/src/components/editor/__tests__/cell-renders.test.tsx +17 -1
  79. package/src/components/editor/chrome/panels/outline/__tests__/outline-keyboard.test.tsx +517 -68
  80. package/src/components/editor/chrome/panels/outline/__tests__/useActiveOutline.test.ts +17 -5
  81. package/src/components/editor/chrome/panels/outline/floating-outline.tsx +29 -59
  82. package/src/components/editor/chrome/panels/outline/useActiveOutline.tsx +333 -133
  83. package/src/components/editor/chrome/panels/outline-panel.tsx +5 -19
  84. package/src/components/editor/notebook-cell.tsx +263 -267
  85. package/src/core/cells/__tests__/layout.test.ts +1 -1
  86. package/src/core/cells/__tests__/notebook-outline.test.ts +31 -3
  87. package/src/core/cells/cells.ts +21 -14
  88. package/src/core/cells/outline.ts +8 -8
  89. package/src/core/codemirror/language/extension.ts +6 -3
  90. package/src/core/codemirror/language/panel/panel.test.tsx +144 -0
  91. package/src/core/codemirror/language/panel/panel.tsx +9 -6
  92. package/src/core/codemirror/react-dom/createPanel.tsx +15 -15
  93. package/src/core/dom/__tests__/outline.test.ts +29 -170
  94. package/src/core/dom/outline.ts +21 -61
  95. package/src/core/executions/atoms.ts +12 -4
  96. package/src/core/islands/components/output-wrapper.tsx +7 -2
  97. package/src/plugins/layout/OutlinePlugin.tsx +5 -17
@@ -2,14 +2,14 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { g as t, h as n, m as r, p as i, u as a } from "./button-Z2R2272J.js";
3
3
  import { t as o } from "./react-Bgs_wQh3.js";
4
4
  import { t as s } from "./compiler-runtime-C5KHtL5D.js";
5
- import { c, h as l, l as u, s as d, u as f } from "./tooltip-DyLdBIM4.js";
6
- import { t as p } from "./check-DUIc04aK.js";
7
- import { A as m, C as h, E as g, M as _, S as v, _ as y, b, g as x, h as S, j as C, m as w, p as T, v as E, x as D, y as O } from "./select-CEnB18uc.js";
8
- import { a as ee, s as te } from "./assertNever-5vhHGKOK.js";
9
- import { t as ne } from "./clsx-CoeGtWvn.js";
10
- import { t as k } from "./react-dom-DdqGVp5N.js";
11
- import { t as A } from "./jsx-runtime-D8btoEHk.js";
12
- import { Cn as j, Sn as M, _n as N, an as P, bn as F, cn as re, dn as ie, fn as ae, gn as oe, hn as se, in as ce, l as le, ln as ue, n as de, o as fe, pn as pe, s as me, sn as he, un as ge, vn as _e, xn as ve, yn as I } from "./use-restore-focus-DJ_-uSn_.js";
5
+ import { c, h as l, l as u, s as d, u as f } from "./tooltip-D-9pDheN.js";
6
+ import { t as p } from "./check-BqF09bSG.js";
7
+ import { A as m, C as h, E as g, M as _, S as v, _ as y, b, g as x, h as S, j as C, m as w, p as T, v as E, x as D, y as O } from "./select-Buk3aXi1.js";
8
+ import { a as ee, s as k } from "./assertNever-B9_7z-dW.js";
9
+ import { t as te } from "./clsx-CoeGtWvn.js";
10
+ import { t as A } from "./react-dom-DdqGVp5N.js";
11
+ import { t as j } from "./jsx-runtime-D8btoEHk.js";
12
+ import { Cn as M, Sn as N, _n as P, an as F, bn as I, cn as ne, dn as re, fn as ie, gn as ae, ln as oe, mn as se, n as ce, o as le, on as ue, pn as de, s as fe, u as pe, un as me, vn as he, wn as ge, xn as _e, yn as ve } from "./use-restore-focus-CCfk-ey2.js";
13
13
  import { t as ye } from "./debounce-DrhhziJv.js";
14
14
  import { t as be } from "./useEvent-BoN7U38T.js";
15
15
  import { t as xe } from "./once-NnpX_HnX.js";
@@ -55,13 +55,13 @@ function Me() {
55
55
  return Ae(je, () => !0, () => !1);
56
56
  }
57
57
  De(Me, "useIsHydratedModern");
58
- var Ne = typeof Ae == "function" ? Me : ke, R = A(), Pe = Object.defineProperty, Fe = (e, t) => Pe(e, "name", {
58
+ var Ne = typeof Ae == "function" ? Me : ke, R = j(), Pe = Object.defineProperty, Fe = (e, t) => Pe(e, "name", {
59
59
  value: t,
60
60
  configurable: !0
61
61
  }), Ie = "rovingFocusGroup.onEntryFocus", Le = {
62
62
  bubbles: !1,
63
63
  cancelable: !0
64
- }, Re = "RovingFocusGroup", [ze, Be, Ve] = ee(Re), [He, Ue] = ve(Re, [Ve]), We = {
64
+ }, Re = "RovingFocusGroup", [ze, Be, Ve] = ee(Re), [He, Ue] = N(Re, [Ve]), We = {
65
65
  Vertical: "vertical",
66
66
  Horizontal: "horizontal"
67
67
  }, Ge = {
@@ -79,12 +79,12 @@ var Ne = typeof Ae == "function" ? Me : ke, R = A(), Pe = Object.defineProperty,
79
79
  })
80
80
  });
81
81
  }, "RovingFocusGroup")), Ye = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ Fe(function(e, t) {
82
- let { __scopeRovingFocusGroup: n, orientation: r, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: d = !1, ...f } = e, p = L.useRef(null), h = i(t, p), g = m(o), [_, v] = _e({
82
+ let { __scopeRovingFocusGroup: n, orientation: r, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: d = !1, ...f } = e, p = L.useRef(null), h = i(t, p), g = m(o), [_, v] = ve({
83
83
  prop: s,
84
84
  defaultProp: c ?? null,
85
85
  onChange: l,
86
86
  caller: Re
87
- }), [y, b] = L.useState(!1), x = se(u), S = Be(n), C = L.useRef(!1), [w, T] = L.useState(0);
87
+ }), [y, b] = L.useState(!1), x = ae(u), S = Be(n), C = L.useRef(!1), [w, T] = L.useState(0);
88
88
  return L.useEffect(() => {
89
89
  let e = p.current;
90
90
  if (e) return e.addEventListener(Ie, x), () => e.removeEventListener(Ie, x);
@@ -129,8 +129,8 @@ var Ne = typeof Ae == "function" ? Me : ke, R = A(), Pe = Object.defineProperty,
129
129
  })
130
130
  });
131
131
  }, "RovingFocusGroupImpl")), Xe = "RovingFocusGroupItem", Ze = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ Fe(function(e, t) {
132
- let { __scopeRovingFocusGroup: n, focusable: r = !0, active: i = !1, tabStopId: a, children: o, ...s } = e, c = oe(), l = a || c, u = qe(Xe, n), d = u.currentTabStopId === l, f = Be(n), { onFocusableItemAdd: p, onFocusableItemRemove: m, currentTabStopId: h } = u, g = Ne();
133
- return F(() => {
132
+ let { __scopeRovingFocusGroup: n, focusable: r = !0, active: i = !1, tabStopId: a, children: o, ...s } = e, c = P(), l = a || c, u = qe(Xe, n), d = u.currentTabStopId === l, f = Be(n), { onFocusableItemAdd: p, onFocusableItemRemove: m, currentTabStopId: h } = u, g = Ne();
133
+ return _e(() => {
134
134
  if (g && r) return p(), () => m();
135
135
  }, [
136
136
  g,
@@ -234,12 +234,12 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
234
234
  }, ut = {
235
235
  ltr: ["ArrowLeft"],
236
236
  rtl: ["ArrowRight"]
237
- }, dt = "Menu", [ft, pt, mt] = ee(dt), [ht, gt] = ve(dt, [
237
+ }, dt = "Menu", [ft, pt, mt] = ee(dt), [ht, gt] = N(dt, [
238
238
  mt,
239
239
  f,
240
240
  Ue
241
241
  ]), _t = f(), vt = Ue(), [yt, bt] = ht(dt), [xt, St] = ht(dt), Ct = /* @__PURE__ */ z((e) => {
242
- let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s = _t(t), [c, l] = L.useState(null), u = L.useRef(!1), f = se(a), p = m(i);
242
+ let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s = _t(t), [c, l] = L.useState(null), u = L.useRef(!1), f = ae(a), p = m(i);
243
243
  return L.useEffect(() => {
244
244
  let e = /* @__PURE__ */ z(() => {
245
245
  u.current = !0, document.addEventListener("pointerdown", t, {
@@ -287,9 +287,9 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
287
287
  return /* @__PURE__ */ (0, R.jsx)(Et, {
288
288
  scope: t,
289
289
  forceMount: n,
290
- children: /* @__PURE__ */ (0, R.jsx)(N, {
290
+ children: /* @__PURE__ */ (0, R.jsx)(he, {
291
291
  present: n || a.open,
292
- children: /* @__PURE__ */ (0, R.jsx)(re, {
292
+ children: /* @__PURE__ */ (0, R.jsx)(oe, {
293
293
  asChild: !0,
294
294
  container: i,
295
295
  children: r
@@ -300,7 +300,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
300
300
  let n = Dt(B, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = bt(B, e.__scopeMenu), o = St(B, e.__scopeMenu);
301
301
  return /* @__PURE__ */ (0, R.jsx)(ft.Provider, {
302
302
  scope: e.__scopeMenu,
303
- children: /* @__PURE__ */ (0, R.jsx)(N, {
303
+ children: /* @__PURE__ */ (0, R.jsx)(he, {
304
304
  present: r || a.open,
305
305
  children: /* @__PURE__ */ (0, R.jsx)(ft.Slot, {
306
306
  scope: e.__scopeMenu,
@@ -318,7 +318,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
318
318
  let n = bt(B, e.__scopeMenu), r = L.useRef(null), a = i(t, r);
319
319
  return L.useEffect(() => {
320
320
  let e = r.current;
321
- if (e) return ce(e);
321
+ if (e) return F(e);
322
322
  }, []), /* @__PURE__ */ (0, R.jsx)(Ft, {
323
323
  ...e,
324
324
  ref: a,
@@ -341,44 +341,44 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
341
341
  }, "MenuRootContentNonModal")), Pt = a("MenuContent.ScrollLock"), Ft = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ z(function(e, t) {
342
342
  let { __scopeMenu: n, loop: r = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: d, onPointerDownOutside: f, onFocusOutside: p, onInteractOutside: m, onDismiss: h, disableOutsideScroll: g, ..._ } = e, v = bt(B, n), y = St(B, n), b = _t(n), x = vt(n), S = pt(n), [C, w] = L.useState(null), T = L.useRef(null), [E, D] = L.useState(null);
343
343
  ie(E);
344
- let { nodes: O, registry: ee } = ae(), te = !!(a || g), ne = i(t, T, v.onContentChange, D), k = L.useRef(0), A = L.useRef(""), j = L.useRef(0), M = L.useRef(null), N = L.useRef("right"), F = L.useRef(0), re = L.useMemo(() => g ? [T, ...O.map((e) => ({ current: e }))] : [], [
344
+ let { nodes: O, registry: ee } = de(), k = !!(a || g), te = i(t, T, v.onContentChange, D), A = L.useRef(0), j = L.useRef(""), M = L.useRef(0), N = L.useRef(null), P = L.useRef("right"), F = L.useRef(0), ae = L.useMemo(() => g ? [T, ...O.map((e) => ({ current: e }))] : [], [
345
345
  T,
346
346
  O,
347
347
  g
348
- ]), oe = g ? P : L.Fragment, se = g ? {
348
+ ]), oe = g ? ue : L.Fragment, ce = g ? {
349
349
  as: Pt,
350
350
  allowPinchZoom: !0,
351
- shards: re
352
- } : void 0, ce = /* @__PURE__ */ z((e) => {
353
- let t = A.current + e, n = S().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = pn(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
351
+ shards: ae
352
+ } : void 0, le = /* @__PURE__ */ z((e) => {
353
+ let t = j.current + e, n = S().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = pn(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
354
354
  function s(e) {
355
- A.current = e, window.clearTimeout(k.current), e !== "" && (k.current = window.setTimeout(() => s(""), 1e3));
355
+ j.current = e, window.clearTimeout(A.current), e !== "" && (A.current = window.setTimeout(() => s(""), 1e3));
356
356
  }
357
357
  z(s, "updateSearch"), s(t), o && setTimeout(() => o.focus());
358
358
  }, "handleTypeaheadSearch");
359
- L.useEffect(() => () => window.clearTimeout(k.current), []), he();
360
- let le = L.useCallback((e) => N.current === M.current?.side && hn(e, M.current?.area), []);
359
+ L.useEffect(() => () => window.clearTimeout(A.current), []), ne();
360
+ let fe = L.useCallback((e) => P.current === N.current?.side && hn(e, N.current?.area), []);
361
361
  return /* @__PURE__ */ (0, R.jsx)(kt, {
362
362
  scope: n,
363
- searchRef: A,
363
+ searchRef: j,
364
364
  onItemEnter: L.useCallback((e) => {
365
- le(e) && e.preventDefault();
366
- }, [le]),
365
+ fe(e) && e.preventDefault();
366
+ }, [fe]),
367
367
  onItemLeave: L.useCallback((e) => {
368
- le(e) || (T.current?.focus(), w(null));
369
- }, [le]),
368
+ fe(e) || (T.current?.focus(), w(null));
369
+ }, [fe]),
370
370
  onTriggerLeave: L.useCallback((e) => {
371
- le(e) && e.preventDefault();
372
- }, [le]),
373
- pointerGraceTimerRef: j,
371
+ fe(e) && e.preventDefault();
372
+ }, [fe]),
373
+ pointerGraceTimerRef: M,
374
374
  onPointerGraceIntentChange: L.useCallback((e) => {
375
- M.current = e;
375
+ N.current = e;
376
376
  }, []),
377
- children: /* @__PURE__ */ (0, R.jsx)(ge, {
378
- registry: te ? ee : null,
377
+ children: /* @__PURE__ */ (0, R.jsx)(re, {
378
+ registry: k ? ee : null,
379
379
  children: /* @__PURE__ */ (0, R.jsx)(oe, {
380
- ...se,
381
- children: /* @__PURE__ */ (0, R.jsx)(ue, {
380
+ ...ce,
381
+ children: /* @__PURE__ */ (0, R.jsx)(me, {
382
382
  asChild: !0,
383
383
  trapped: a,
384
384
  branches: O,
@@ -386,7 +386,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
386
386
  e.preventDefault(), T.current?.focus({ preventScroll: !0 });
387
387
  }),
388
388
  onUnmountAutoFocus: s,
389
- children: /* @__PURE__ */ (0, R.jsx)(pe, {
389
+ children: /* @__PURE__ */ (0, R.jsx)(se, {
390
390
  asChild: !0,
391
391
  disableOutsidePointerEvents: c,
392
392
  onEscapeKeyDown: d,
@@ -414,14 +414,14 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
414
414
  dir: y.dir,
415
415
  ...b,
416
416
  ..._,
417
- ref: ne,
417
+ ref: te,
418
418
  style: {
419
419
  outline: "none",
420
420
  ..._.style
421
421
  },
422
422
  onKeyDown: I(_.onKeyDown, (e) => {
423
423
  let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
424
- t && (e.key === "Tab" && e.preventDefault(), !n && r && ce(e.key));
424
+ t && (e.key === "Tab" && e.preventDefault(), !n && r && le(e.key));
425
425
  let i = T.current;
426
426
  if (e.target !== i || !ct.includes(e.key)) return;
427
427
  e.preventDefault();
@@ -429,13 +429,13 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
429
429
  st.includes(e.key) && a.reverse(), dn(a);
430
430
  }),
431
431
  onBlur: I(e.onBlur, (e) => {
432
- e.currentTarget.contains(e.target) || (window.clearTimeout(k.current), A.current = "");
432
+ e.currentTarget.contains(e.target) || (window.clearTimeout(A.current), j.current = "");
433
433
  }),
434
434
  onPointerMove: I(e.onPointerMove, gn((e) => {
435
435
  let t = e.target, n = F.current !== e.clientX;
436
436
  if (e.currentTarget.contains(t) && n) {
437
437
  let t = e.clientX > F.current ? "right" : "left";
438
- N.current = t, F.current = e.clientX;
438
+ P.current = t, F.current = e.clientX;
439
439
  }
440
440
  }))
441
441
  })
@@ -466,7 +466,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
466
466
  bubbles: !0,
467
467
  cancelable: !0
468
468
  });
469
- e.addEventListener(zt, (e) => r?.(e), { once: !0 }), j(e, t), t.defaultPrevented ? u.current = !1 : s.onClose();
469
+ e.addEventListener(zt, (e) => r?.(e), { once: !0 }), ge(e, t), t.defaultPrevented ? u.current = !1 : s.onClose();
470
470
  }
471
471
  }, "handleSelect");
472
472
  return /* @__PURE__ */ (0, R.jsx)(Vt, {
@@ -531,7 +531,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
531
531
  value: void 0,
532
532
  onValueChange: /* @__PURE__ */ z(() => {}, "onValueChange")
533
533
  }), Gt = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ z(function(e, t) {
534
- let { value: n, onValueChange: r, ...i } = e, a = se(r);
534
+ let { value: n, onValueChange: r, ...i } = e, a = ae(r);
535
535
  return /* @__PURE__ */ (0, R.jsx)(Ut, {
536
536
  scope: e.__scopeMenu,
537
537
  value: n,
@@ -557,7 +557,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
557
557
  });
558
558
  }, "MenuRadioItem")), Jt = "MenuItemIndicator", [Yt, Xt] = ht(Jt, { checked: !1 }), Zt = /* @__PURE__ */ L.forwardRef(/* @__PURE__ */ z(function(e, t) {
559
559
  let { __scopeMenu: n, forceMount: r, ...i } = e, a = Xt(Jt, n);
560
- return /* @__PURE__ */ (0, R.jsx)(N, {
560
+ return /* @__PURE__ */ (0, R.jsx)(he, {
561
561
  present: r || ln(a.checked) || a.checked === !0,
562
562
  children: /* @__PURE__ */ (0, R.jsx)(M.span, {
563
563
  ...i,
@@ -574,7 +574,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
574
574
  ref: t
575
575
  });
576
576
  }, "MenuSeparator")), $t = "MenuSub", [en, tn] = ht($t), nn = /* @__PURE__ */ z((e) => {
577
- let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a = bt($t, t), o = _t(t), [s, c] = L.useState(null), [l, u] = L.useState(null), f = se(i);
577
+ let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a = bt($t, t), o = _t(t), [s, c] = L.useState(null), [l, u] = L.useState(null), f = ae(i);
578
578
  return L.useEffect(() => (a.open === !1 && f(!1), () => f(!1)), [a.open, f]), /* @__PURE__ */ (0, R.jsx)(d, {
579
579
  ...o,
580
580
  children: /* @__PURE__ */ (0, R.jsx)(yt, {
@@ -585,8 +585,8 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
585
585
  onContentChange: u,
586
586
  children: /* @__PURE__ */ (0, R.jsx)(en, {
587
587
  scope: t,
588
- contentId: oe(),
589
- triggerId: oe(),
588
+ contentId: P(),
589
+ triggerId: P(),
590
590
  trigger: s,
591
591
  onTriggerChange: c,
592
592
  children: n
@@ -667,7 +667,7 @@ var rt = Object.defineProperty, z = (e, t) => rt(e, "name", {
667
667
  let n = Dt(B, e.__scopeMenu), { forceMount: r = n.forceMount, align: a = "start", ...o } = e, s = bt(B, e.__scopeMenu), c = St(B, e.__scopeMenu), l = tn(on, e.__scopeMenu), u = L.useRef(null), d = i(t, u);
668
668
  return /* @__PURE__ */ (0, R.jsx)(ft.Provider, {
669
669
  scope: e.__scopeMenu,
670
- children: /* @__PURE__ */ (0, R.jsx)(N, {
670
+ children: /* @__PURE__ */ (0, R.jsx)(he, {
671
671
  present: r || s.open,
672
672
  children: /* @__PURE__ */ (0, R.jsx)(ft.Slot, {
673
673
  scope: e.__scopeMenu,
@@ -753,8 +753,8 @@ z(gn, "whenMouse");
753
753
  var _n = Object.defineProperty, V = (e, t) => _n(e, "name", {
754
754
  value: t,
755
755
  configurable: !0
756
- }), vn = "DropdownMenu", [yn, bn] = ve(vn, [gt]), H = gt(), [xn, Sn] = yn(vn), Cn = /* @__PURE__ */ V((e) => {
757
- let { __scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, c = H(t), l = L.useRef(null), [u, d] = _e({
756
+ }), vn = "DropdownMenu", [yn, bn] = N(vn, [gt]), H = gt(), [xn, Sn] = yn(vn), Cn = /* @__PURE__ */ V((e) => {
757
+ let { __scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, c = H(t), l = L.useRef(null), [u, d] = ve({
758
758
  prop: i,
759
759
  defaultProp: a ?? !1,
760
760
  onChange: o,
@@ -762,9 +762,9 @@ var _n = Object.defineProperty, V = (e, t) => _n(e, "name", {
762
762
  });
763
763
  return /* @__PURE__ */ (0, R.jsx)(xn, {
764
764
  scope: t,
765
- triggerId: oe(),
765
+ triggerId: P(),
766
766
  triggerRef: l,
767
- contentId: oe(),
767
+ contentId: P(),
768
768
  open: u,
769
769
  onOpenChange: d,
770
770
  onOpenToggle: L.useCallback(() => d((e) => !e), [d]),
@@ -886,7 +886,7 @@ var _n = Object.defineProperty, V = (e, t) => _n(e, "name", {
886
886
  ref: t
887
887
  });
888
888
  }, "DropdownMenuSeparator")), In = /* @__PURE__ */ V((e) => {
889
- let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, o = H(t), [s, c] = _e({
889
+ let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, o = H(t), [s, c] = ve({
890
890
  prop: r,
891
891
  defaultProp: a ?? !1,
892
892
  onChange: i,
@@ -1459,7 +1459,7 @@ function q(...e) {
1459
1459
  let r = e[n];
1460
1460
  for (let e in r) {
1461
1461
  let n = t[e], i = r[e];
1462
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = ai(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = ne(n, i) : e === "id" && n && i ? t.id = fi(n, i) : e === "ref" && n && i ? t.ref = mi(n, i) : t[e] = i === void 0 ? n : i;
1462
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = ai(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = te(n, i) : e === "id" && n && i ? t.id = fi(n, i) : e === "ref" && n && i ? t.ref = mi(n, i) : t[e] = i === void 0 ? n : i;
1463
1463
  }
1464
1464
  }
1465
1465
  return t;
@@ -1709,7 +1709,7 @@ function J(e) {
1709
1709
  }
1710
1710
  //#endregion
1711
1711
  //#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-aria/dist/private/utils/useEvent.mjs
1712
- var Bi = /* @__PURE__ */ e(k(), 1);
1712
+ var Bi = /* @__PURE__ */ e(A(), 1);
1713
1713
  function Vi(e, t, n, r) {
1714
1714
  let i = J(n), a = n == null;
1715
1715
  (0, L.useEffect)(() => {
@@ -3394,19 +3394,19 @@ function Gs(e) {
3394
3394
  }), O = J((e) => {
3395
3395
  v(), g.current = !0, t.current = window.setTimeout(D, e);
3396
3396
  }), ee = J(() => {
3397
- (i === void 0 || isNaN(i) || n === void 0 || isNaN(n) || n > i) && (E(), te(60));
3398
- }), te = J((e) => {
3397
+ (i === void 0 || isNaN(i) || n === void 0 || isNaN(n) || n > i) && (E(), k(60));
3398
+ }), k = J((e) => {
3399
3399
  v(), g.current = !0, t.current = window.setTimeout(ee, e);
3400
- }), ne = (e) => {
3400
+ }), te = (e) => {
3401
3401
  e.preventDefault();
3402
- }, { addGlobalListener: k, removeAllGlobalListeners: A } = ya(), j = (0, L.useRef)(!1), [M, N] = (0, L.useState)(null);
3402
+ }, { addGlobalListener: A, removeAllGlobalListeners: j } = ya(), M = (0, L.useRef)(!1), [N, P] = (0, L.useState)(null);
3403
3403
  (0, L.useEffect)(() => {
3404
- M === "touch" ? O(600) : M ? O(400) : M || v();
3405
- }, [M]);
3406
- let [P, F] = (0, L.useState)(null);
3404
+ N === "touch" ? O(600) : N ? O(400) : N || v();
3405
+ }, [N]);
3406
+ let [F, I] = (0, L.useState)(null);
3407
3407
  return (0, L.useEffect)(() => {
3408
- P === "touch" ? te(600) : P ? te(400) : P || v();
3409
- }, [P]), {
3408
+ F === "touch" ? k(600) : F ? k(400) : F || v();
3409
+ }, [F]), {
3410
3410
  spinButtonProps: {
3411
3411
  role: "spinbutton",
3412
3412
  "aria-valuenow": n !== void 0 && !isNaN(n) ? n : void 0,
@@ -3422,26 +3422,26 @@ function Gs(e) {
3422
3422
  },
3423
3423
  incrementButtonProps: {
3424
3424
  onPressStart: (e) => {
3425
- _(), e.pointerType === "touch" ? (k(window, "pointercancel", w, { capture: !0 }), j.current = !1, N("touch")) : (l?.(), N("mouse")), k(window, "contextmenu", ne);
3425
+ _(), e.pointerType === "touch" ? (A(window, "pointercancel", w, { capture: !0 }), M.current = !1, P("touch")) : (l?.(), P("mouse")), A(window, "contextmenu", te);
3426
3426
  },
3427
3427
  onPressUp: (e) => {
3428
- _(), e.pointerType === "touch" && (j.current = !0), A(), N(null);
3428
+ _(), e.pointerType === "touch" && (M.current = !0), j(), P(null);
3429
3429
  },
3430
3430
  onPressEnd: (e) => {
3431
- _(), e.pointerType === "touch" && !g.current && j.current && l?.(), j.current = !1, N(null);
3431
+ _(), e.pointerType === "touch" && !g.current && M.current && l?.(), M.current = !1, P(null);
3432
3432
  },
3433
3433
  onFocus: x,
3434
3434
  onBlur: S
3435
3435
  },
3436
3436
  decrementButtonProps: {
3437
3437
  onPressStart: (e) => {
3438
- _(), e.pointerType === "touch" ? (k(window, "pointercancel", w, { capture: !0 }), j.current = !1, F("touch")) : (d?.(), F("mouse"));
3438
+ _(), e.pointerType === "touch" ? (A(window, "pointercancel", w, { capture: !0 }), M.current = !1, I("touch")) : (d?.(), I("mouse"));
3439
3439
  },
3440
3440
  onPressUp: (e) => {
3441
- _(), e.pointerType === "touch" && (j.current = !0), A(), F(null);
3441
+ _(), e.pointerType === "touch" && (M.current = !0), j(), I(null);
3442
3442
  },
3443
3443
  onPressEnd: (e) => {
3444
- _(), e.pointerType === "touch" && !g.current && j.current && d?.(), j.current = !1, F(null);
3444
+ _(), e.pointerType === "touch" && !g.current && M.current && d?.(), M.current = !1, I(null);
3445
3445
  },
3446
3446
  onFocus: x,
3447
3447
  onBlur: S
@@ -3454,17 +3454,17 @@ function Ks(e) {
3454
3454
  return e && e.__esModule ? e.default : e;
3455
3455
  }
3456
3456
  function qs(e, t, n) {
3457
- let { id: r, decrementAriaLabel: i, incrementAriaLabel: a, isDisabled: o, isReadOnly: s, isRequired: c, minValue: l, maxValue: u, autoFocus: d, label: f, formatOptions: p, onBlur: m = () => {}, onFocus: h, onFocusChange: g, onKeyDown: _, onKeyUp: v, description: y, errorMessage: b, isWheelDisabled: x, ...S } = e, { increment: C, incrementToMax: w, decrement: T, decrementToMin: E, numberValue: O, inputValue: ee, commit: te, commitValidation: ne } = t, k = na(Ks(rs), "@react-aria/numberfield"), A = (0, L.useCallback)(() => {
3457
+ let { id: r, decrementAriaLabel: i, incrementAriaLabel: a, isDisabled: o, isReadOnly: s, isRequired: c, minValue: l, maxValue: u, autoFocus: d, label: f, formatOptions: p, onBlur: m = () => {}, onFocus: h, onFocusChange: g, onKeyDown: _, onKeyUp: v, description: y, errorMessage: b, isWheelDisabled: x, ...S } = e, { increment: C, incrementToMax: w, decrement: T, decrementToMin: E, numberValue: O, inputValue: ee, commit: k, commitValidation: te } = t, A = na(Ks(rs), "@react-aria/numberfield"), j = (0, L.useCallback)(() => {
3458
3458
  let e = n.current?.value ?? "";
3459
3459
  (0, Bi.flushSync)(() => {
3460
- te();
3460
+ k();
3461
3461
  }), n.current?.value !== e && Ia(n.current?.value ?? "", "assertive");
3462
- }, [te, n]), j = di(r), { focusProps: M } = gi({ onBlur() {
3463
- A();
3464
- } }), N = D(p), P = (0, L.useMemo)(() => N.resolvedOptions(), [N]), F = D({
3462
+ }, [k, n]), M = di(r), { focusProps: N } = gi({ onBlur() {
3463
+ j();
3464
+ } }), P = D(p), F = (0, L.useMemo)(() => P.resolvedOptions(), [P]), I = D({
3465
3465
  ...p,
3466
3466
  currencySign: void 0
3467
- }), { spinButtonProps: re, incrementButtonProps: ie, decrementButtonProps: ae } = Gs({
3467
+ }), { spinButtonProps: ne, incrementButtonProps: re, decrementButtonProps: ie } = Gs({
3468
3468
  isDisabled: o,
3469
3469
  isReadOnly: s,
3470
3470
  isRequired: c,
@@ -3475,35 +3475,35 @@ function qs(e, t, n) {
3475
3475
  onDecrement: T,
3476
3476
  onDecrementToMin: E,
3477
3477
  value: O,
3478
- textValue: (0, L.useMemo)(() => isNaN(O) ? "" : F.format(O), [F, O])
3479
- }), [oe, se] = (0, L.useState)(!1), { focusWithinProps: ce } = io({
3478
+ textValue: (0, L.useMemo)(() => isNaN(O) ? "" : I.format(O), [I, O])
3479
+ }), [ae, oe] = (0, L.useState)(!1), { focusWithinProps: se } = io({
3480
3480
  isDisabled: o,
3481
- onFocusWithinChange: se
3481
+ onFocusWithinChange: oe
3482
3482
  });
3483
3483
  ss({
3484
3484
  onScroll: (0, L.useCallback)((e) => {
3485
3485
  Math.abs(e.deltaY) <= Math.abs(e.deltaX) || (e.deltaY > 0 ? C() : e.deltaY < 0 && T());
3486
3486
  }, [T, C]),
3487
- isDisabled: x || o || s || !oe
3487
+ isDisabled: x || o || s || !ae
3488
3488
  }, n);
3489
- let le = (P.maximumFractionDigits ?? 0) > 0, ue = t.minValue === void 0 || isNaN(t.minValue) || t.minValue < 0, de = "numeric";
3490
- xr() ? ue ? de = "text" : le && (de = "decimal") : Er() && (ue ? de = "numeric" : le && (de = "decimal"));
3491
- let fe = (e) => {
3489
+ let ce = (F.maximumFractionDigits ?? 0) > 0, le = t.minValue === void 0 || isNaN(t.minValue) || t.minValue < 0, ue = "numeric";
3490
+ xr() ? le ? ue = "text" : ce && (ue = "decimal") : Er() && (le ? ue = "numeric" : ce && (ue = "decimal"));
3491
+ let de = (e) => {
3492
3492
  t.validate(e) && t.setInputValue(e);
3493
- }, pe = (t) => {
3493
+ }, fe = (t) => {
3494
3494
  e.onPaste?.(t);
3495
3495
  let n = K(t);
3496
- n && (n.selectionEnd ?? -1) - (n.selectionStart ?? 0) === n.value.length && (t.preventDefault(), te(t.clipboardData?.getData?.("text/plain")?.trim() ?? ""));
3497
- }, me = la(e), { keyboardProps: he } = Ai({
3496
+ n && (n.selectionEnd ?? -1) - (n.selectionStart ?? 0) === n.value.length && (t.preventDefault(), k(t.clipboardData?.getData?.("text/plain")?.trim() ?? ""));
3497
+ }, pe = la(e), { keyboardProps: me } = Ai({
3498
3498
  isDisabled: o || s,
3499
3499
  shortcuts: { Enter: () => ((0, Bi.flushSync)(() => {
3500
- te();
3501
- }), ne(), { shouldPreventDefault: !1 }) },
3500
+ k();
3501
+ }), te(), { shouldPreventDefault: !1 }) },
3502
3502
  onKeyDown: _,
3503
3503
  onKeyUp: v
3504
- }), { isInvalid: ge, validationErrors: _e, validationDetails: ve } = t.displayValidation, { labelProps: I, inputProps: ye, descriptionProps: be, errorMessageProps: xe } = os({
3504
+ }), { isInvalid: he, validationErrors: ge, validationDetails: _e } = t.displayValidation, { labelProps: ve, inputProps: ye, descriptionProps: be, errorMessageProps: xe } = os({
3505
3505
  ...S,
3506
- ...me,
3506
+ ...pe,
3507
3507
  name: void 0,
3508
3508
  form: void 0,
3509
3509
  label: f,
@@ -3518,21 +3518,21 @@ function qs(e, t, n) {
3518
3518
  autoComplete: "off",
3519
3519
  "aria-label": e["aria-label"] || void 0,
3520
3520
  "aria-labelledby": e["aria-labelledby"] || void 0,
3521
- id: j,
3521
+ id: M,
3522
3522
  type: "text",
3523
- inputMode: de,
3524
- onChange: fe,
3523
+ inputMode: ue,
3524
+ onChange: de,
3525
3525
  onBlur: m,
3526
3526
  onFocus: h,
3527
3527
  onFocusChange: g,
3528
- onPaste: pe,
3528
+ onPaste: fe,
3529
3529
  description: y,
3530
3530
  errorMessage: b
3531
- }, t, n), Se = q(he, ye);
3531
+ }, t, n), Se = q(me, ye);
3532
3532
  za(n, t.defaultNumberValue, t.setNumberValue), Js(t, e.validationBehavior, e.commitBehavior, n, t.minValue, t.maxValue, e.step, t.numberValue);
3533
- let Ce = q(re, M, Se, {
3533
+ let Ce = q(ne, N, Se, {
3534
3534
  role: null,
3535
- "aria-roledescription": Cr() ? null : k.format("numberField"),
3535
+ "aria-roledescription": Cr() ? null : A.format("numberField"),
3536
3536
  "aria-valuemax": null,
3537
3537
  "aria-valuemin": null,
3538
3538
  "aria-valuenow": null,
@@ -3544,22 +3544,22 @@ function qs(e, t, n) {
3544
3544
  let we = (e) => {
3545
3545
  Qn() !== n.current && (e.pointerType === "mouse" ? n.current?.focus() : e.target.focus());
3546
3546
  }, Te = e["aria-label"] || (typeof e.label == "string" ? e.label : ""), Ee;
3547
- Te || (Ee = e.label == null ? e["aria-labelledby"] : I.id);
3548
- let De = di(), Oe = di(), ke = q(ie, {
3549
- "aria-label": a || k.format("increase", { fieldLabel: Te }).trim(),
3547
+ Te || (Ee = e.label == null ? e["aria-labelledby"] : ve.id);
3548
+ let De = di(), Oe = di(), ke = q(re, {
3549
+ "aria-label": a || A.format("increase", { fieldLabel: Te }).trim(),
3550
3550
  id: Ee && !a ? De : null,
3551
3551
  "aria-labelledby": Ee && !a ? `${De} ${Ee}` : null,
3552
- "aria-controls": j,
3552
+ "aria-controls": M,
3553
3553
  excludeFromTabOrder: !0,
3554
3554
  preventFocusOnPress: !0,
3555
3555
  allowFocusWhenDisabled: !0,
3556
3556
  isDisabled: !t.canIncrement,
3557
3557
  onPressStart: we
3558
- }), Ae = q(ae, {
3559
- "aria-label": i || k.format("decrease", { fieldLabel: Te }).trim(),
3558
+ }), Ae = q(ie, {
3559
+ "aria-label": i || A.format("decrease", { fieldLabel: Te }).trim(),
3560
3560
  id: Ee && !i ? Oe : null,
3561
3561
  "aria-labelledby": Ee && !i ? `${Oe} ${Ee}` : null,
3562
- "aria-controls": j,
3562
+ "aria-controls": M,
3563
3563
  excludeFromTabOrder: !0,
3564
3564
  preventFocusOnPress: !0,
3565
3565
  allowFocusWhenDisabled: !0,
@@ -3568,20 +3568,20 @@ function qs(e, t, n) {
3568
3568
  });
3569
3569
  return {
3570
3570
  groupProps: {
3571
- ...ce,
3571
+ ...se,
3572
3572
  role: "group",
3573
3573
  "aria-disabled": o,
3574
- "aria-invalid": ge ? "true" : void 0
3574
+ "aria-invalid": he ? "true" : void 0
3575
3575
  },
3576
- labelProps: I,
3576
+ labelProps: ve,
3577
3577
  inputProps: Ce,
3578
3578
  incrementButtonProps: ke,
3579
3579
  decrementButtonProps: Ae,
3580
3580
  errorMessageProps: xe,
3581
3581
  descriptionProps: be,
3582
- isInvalid: ge,
3583
- validationErrors: _e,
3584
- validationDetails: ve
3582
+ isInvalid: he,
3583
+ validationErrors: ge,
3584
+ validationDetails: _e
3585
3585
  };
3586
3586
  }
3587
3587
  var Y = null;
@@ -4042,10 +4042,10 @@ function Ic(e) {
4042
4042
  value: p
4043
4043
  }), T = r !== void 0 && !isNaN(r) ? r : 1;
4044
4044
  S.style === "percent" && (r === void 0 || isNaN(r)) && (T = .01);
4045
- let [E, D] = (0, L.useState)(p), [O, ee] = (0, L.useState)(c), [te, ne] = (0, L.useState)(i);
4046
- (!Object.is(p, E) || c !== O || !Lc(i, te)) && (_(C(p)), D(p), ee(c), ne(i));
4047
- let k = (0, L.useMemo)(() => y.parse(g), [y, g]), A = (e) => {
4048
- let t = e === void 0 ? g : e, n = k;
4045
+ let [E, D] = (0, L.useState)(p), [O, ee] = (0, L.useState)(c), [k, te] = (0, L.useState)(i);
4046
+ (!Object.is(p, E) || c !== O || !Lc(i, k)) && (_(C(p)), D(p), ee(c), te(i));
4047
+ let A = (0, L.useMemo)(() => y.parse(g), [y, g]), j = (e) => {
4048
+ let t = e === void 0 ? g : e, n = A;
4049
4049
  if (e !== void 0 && (n = y.parse(t)), !t.length) {
4050
4050
  m(NaN), _(a === void 0 ? "" : C(p));
4051
4051
  return;
@@ -4058,55 +4058,55 @@ function Ic(e) {
4058
4058
  r = y.parse(C(r));
4059
4059
  let i = r !== p;
4060
4060
  m(r), _(C(a === void 0 ? r : p)), i && w.commitValidation();
4061
- }, j = (e, r = 0) => {
4062
- let i = k;
4061
+ }, M = (e, r = 0) => {
4062
+ let i = A;
4063
4063
  if (isNaN(i)) return lo(isNaN(r) ? 0 : r, t, n, T);
4064
4064
  {
4065
4065
  let r = lo(i, t, n, T);
4066
4066
  return e === "+" && r > i || e === "-" && r < i ? r : lo(Rc(e, i, T), t, n, T);
4067
4067
  }
4068
- }, M = () => {
4069
- let e = j("+", t);
4070
- e === p && _(C(e)), m(e), w.commitValidation();
4071
4068
  }, N = () => {
4072
- let e = j("-", n);
4069
+ let e = M("+", t);
4073
4070
  e === p && _(C(e)), m(e), w.commitValidation();
4074
4071
  }, P = () => {
4075
- n != null && (m(lo(n, t, n, T)), w.commitValidation());
4072
+ let e = M("-", n);
4073
+ e === p && _(C(e)), m(e), w.commitValidation();
4076
4074
  }, F = () => {
4075
+ n != null && (m(lo(n, t, n, T)), w.commitValidation());
4076
+ }, I = () => {
4077
4077
  t != null && (m(t), w.commitValidation());
4078
- }, re = (0, L.useMemo)(() => !l && !u && (isNaN(k) || n === void 0 || isNaN(n) || lo(k, t, n, T) > k || Rc("+", k, T) <= n), [
4078
+ }, ne = (0, L.useMemo)(() => !l && !u && (isNaN(A) || n === void 0 || isNaN(n) || lo(A, t, n, T) > A || Rc("+", A, T) <= n), [
4079
4079
  l,
4080
4080
  u,
4081
4081
  t,
4082
4082
  n,
4083
4083
  T,
4084
- k
4085
- ]), ie = (0, L.useMemo)(() => !l && !u && (isNaN(k) || t === void 0 || isNaN(t) || lo(k, t, n, T) < k || Rc("-", k, T) >= t), [
4084
+ A
4085
+ ]), re = (0, L.useMemo)(() => !l && !u && (isNaN(A) || t === void 0 || isNaN(t) || lo(A, t, n, T) < A || Rc("-", A, T) >= t), [
4086
4086
  l,
4087
4087
  u,
4088
4088
  t,
4089
4089
  n,
4090
4090
  T,
4091
- k
4092
- ]), ae = (e) => y.isValidPartialNumber(e, t, n);
4091
+ A
4092
+ ]), ie = (e) => y.isValidPartialNumber(e, t, n);
4093
4093
  return {
4094
4094
  ...w,
4095
- validate: ae,
4096
- increment: M,
4097
- incrementToMax: P,
4098
- decrement: N,
4099
- decrementToMin: F,
4100
- canIncrement: re,
4101
- canDecrement: ie,
4095
+ validate: ie,
4096
+ increment: N,
4097
+ incrementToMax: F,
4098
+ decrement: P,
4099
+ decrementToMin: I,
4100
+ canIncrement: ne,
4101
+ canDecrement: re,
4102
4102
  minValue: t,
4103
4103
  maxValue: n,
4104
- numberValue: k,
4104
+ numberValue: A,
4105
4105
  defaultNumberValue: isNaN(o) ? h : o,
4106
4106
  setNumberValue: m,
4107
4107
  setInputValue: _,
4108
4108
  inputValue: g,
4109
- commit: A
4109
+ commit: j
4110
4110
  };
4111
4111
  }
4112
4112
  function Lc(e, t) {
@@ -4328,41 +4328,41 @@ var tl = L.forwardRef((e, t) => {
4328
4328
  }), r[29] = s.isDisabled, r[30] = D, r[31] = l, r[32] = O) : O = r[32];
4329
4329
  let ee;
4330
4330
  r[33] === Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ (0, R.jsx)("div", { className: "h-px shrink-0 divider bg-border z-10" }), r[33] = ee) : ee = r[33];
4331
- let te = s.isDisabled, ne = l === "xs" && "w-2 h-2", k;
4332
- r[34] === ne ? k = r[35] : (k = n("w-3 h-3 -mt-px", ne), r[34] = ne, r[35] = k);
4333
- let A;
4334
- r[36] === k ? A = r[37] : (A = /* @__PURE__ */ (0, R.jsx)(_, {
4335
- "aria-hidden": !0,
4336
- className: k
4337
- }), r[36] = k, r[37] = A);
4331
+ let k = s.isDisabled, te = l === "xs" && "w-2 h-2", A;
4332
+ r[34] === te ? A = r[35] : (A = n("w-3 h-3 -mt-px", te), r[34] = te, r[35] = A);
4338
4333
  let j;
4339
- r[38] !== s.isDisabled || r[39] !== A || r[40] !== l ? (j = /* @__PURE__ */ (0, R.jsx)(nl, {
4334
+ r[36] === A ? j = r[37] : (j = /* @__PURE__ */ (0, R.jsx)(_, {
4335
+ "aria-hidden": !0,
4336
+ className: A
4337
+ }), r[36] = A, r[37] = j);
4338
+ let M;
4339
+ r[38] !== s.isDisabled || r[39] !== j || r[40] !== l ? (M = /* @__PURE__ */ (0, R.jsx)(nl, {
4340
4340
  slot: "decrement",
4341
- isDisabled: te,
4341
+ isDisabled: k,
4342
4342
  variant: l,
4343
4343
  excludeFromTabOrder: !0,
4344
- children: A
4345
- }), r[38] = s.isDisabled, r[39] = A, r[40] = l, r[41] = j) : j = r[41];
4346
- let M;
4347
- r[42] !== O || r[43] !== j ? (M = /* @__PURE__ */ (0, R.jsxs)("div", {
4344
+ children: j
4345
+ }), r[38] = s.isDisabled, r[39] = j, r[40] = l, r[41] = M) : M = r[41];
4346
+ let N;
4347
+ r[42] !== O || r[43] !== M ? (N = /* @__PURE__ */ (0, R.jsxs)("div", {
4348
4348
  className: "flex flex-col border-s-2",
4349
4349
  children: [
4350
4350
  O,
4351
4351
  ee,
4352
- j
4352
+ M
4353
4353
  ]
4354
- }), r[42] = O, r[43] = j, r[44] = M) : M = r[44];
4355
- let N;
4356
- r[45] !== S || r[46] !== M || r[47] !== g ? (N = /* @__PURE__ */ (0, R.jsxs)("div", {
4357
- className: g,
4358
- children: [S, M]
4359
- }), r[45] = S, r[46] = M, r[47] = g, r[48] = N) : N = r[48];
4354
+ }), r[42] = O, r[43] = M, r[44] = N) : N = r[44];
4360
4355
  let P;
4361
- return r[49] !== s || r[50] !== N || r[51] !== f ? (P = /* @__PURE__ */ (0, R.jsx)(Vc, {
4356
+ r[45] !== S || r[46] !== N || r[47] !== g ? (P = /* @__PURE__ */ (0, R.jsxs)("div", {
4357
+ className: g,
4358
+ children: [S, N]
4359
+ }), r[45] = S, r[46] = N, r[47] = g, r[48] = P) : P = r[48];
4360
+ let F;
4361
+ return r[49] !== s || r[50] !== P || r[51] !== f ? (F = /* @__PURE__ */ (0, R.jsx)(Vc, {
4362
4362
  ...s,
4363
4363
  formatOptions: f,
4364
- children: N
4365
- }), r[49] = s, r[50] = N, r[51] = f, r[52] = P) : P = r[52], P;
4364
+ children: P
4365
+ }), r[49] = s, r[50] = P, r[51] = f, r[52] = F) : F = r[52], F;
4366
4366
  });
4367
4367
  tl.displayName = "NumberField";
4368
4368
  var nl = (e) => {
@@ -4492,7 +4492,7 @@ var cl = L.forwardRef((e, t) => {
4492
4492
  type: "change"
4493
4493
  }));
4494
4494
  },
4495
- children: /* @__PURE__ */ (0, R.jsx)(te, { className: "h-4 w-4 opacity-50 hover:opacity-90 cursor-pointer" })
4495
+ children: /* @__PURE__ */ (0, R.jsx)(k, { className: "h-4 w-4 opacity-50 hover:opacity-90 cursor-pointer" })
4496
4496
  }), r[15] = u, r[16] = f, r[17] = a, r[18] = g) : g = r[18];
4497
4497
  let _;
4498
4498
  return r[19] !== l || r[20] !== p || r[21] !== h || r[22] !== g ? (_ = /* @__PURE__ */ (0, R.jsxs)("div", {
@@ -4514,7 +4514,7 @@ var ll = L.forwardRef((e, t) => {
4514
4514
  defaultProp: o,
4515
4515
  onChange: i
4516
4516
  }, n[4] = o, n[5] = i, n[6] = a.value, n[7] = c) : c = n[7];
4517
- let [l, u] = _e(c), d, f;
4517
+ let [l, u] = ve(c), d, f;
4518
4518
  n[8] === l ? (d = n[9], f = n[10]) : (d = () => {
4519
4519
  s(l || "");
4520
4520
  }, f = [l], n[8] = l, n[9] = d, n[10] = f), L.useEffect(d, f);
@@ -5836,7 +5836,7 @@ $.options = $.setOptions = function(e) {
5836
5836
  }, $.parseInline = Au.parseInline, $.Parser = Ou, $.parser = Ou.parse, $.Renderer = Eu, $.TextRenderer = Du, $.Lexer = Tu, $.lexer = Tu.lex, $.Tokenizer = wu, $.Hooks = ku, $.parse = $, $.options, $.setOptions, $.use, $.walkTokens, $.parseInline, Ou.parse, Tu.lex;
5837
5837
  //#endregion
5838
5838
  //#region src/components/ui/dropdown-menu.tsx
5839
- var ju = Cn, Mu = Tn, Nu = kn, Pu = fe(En), Fu = me(On), Iu = me(Rn), Lu = In, Ru = L.forwardRef((e, t) => {
5839
+ var ju = Cn, Mu = Tn, Nu = kn, Pu = le(En), Fu = fe(On), Iu = fe(Rn), Lu = In, Ru = L.forwardRef((e, t) => {
5840
5840
  let n = (0, X.c)(17), r, i, a, o, s;
5841
5841
  n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5]) : ({className: i, inset: a, showChevron: s, children: r, ...o} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s);
5842
5842
  let c = s === void 0 || s, l;
@@ -5873,13 +5873,13 @@ var Bu = L.forwardRef((e, t) => {
5873
5873
  r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4]) : ({className: i, scrollable: o, sideOffset: s, ...a} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s);
5874
5874
  let c = o === void 0 || o, l = s === void 0 ? 4 : s, u;
5875
5875
  r[5] !== i || r[6] !== c ? (u = n(w(), "animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 print:hidden", c && "overflow-auto", i), r[5] = i, r[6] = c, r[7] = u) : u = r[7];
5876
- let d = c ? `calc(var(--radix-dropdown-menu-content-available-height) - ${de}px)` : void 0, f;
5876
+ let d = c ? `calc(var(--radix-dropdown-menu-content-available-height) - ${ce}px)` : void 0, f;
5877
5877
  r[8] !== a.style || r[9] !== d ? (f = {
5878
5878
  ...a.style,
5879
5879
  maxHeight: d
5880
5880
  }, r[8] = a.style, r[9] = d, r[10] = f) : f = r[10];
5881
5881
  let p;
5882
- return r[11] !== a || r[12] !== t || r[13] !== l || r[14] !== u || r[15] !== f ? (p = /* @__PURE__ */ (0, R.jsx)(Pu, { children: /* @__PURE__ */ (0, R.jsx)(le, { children: /* @__PURE__ */ (0, R.jsx)(Fu, {
5882
+ return r[11] !== a || r[12] !== t || r[13] !== l || r[14] !== u || r[15] !== f ? (p = /* @__PURE__ */ (0, R.jsx)(Pu, { children: /* @__PURE__ */ (0, R.jsx)(pe, { children: /* @__PURE__ */ (0, R.jsx)(Fu, {
5883
5883
  ref: t,
5884
5884
  sideOffset: l,
5885
5885
  className: u,