@marimo-team/islands 0.25.3-dev273 → 0.25.3-dev275

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 (98) hide show
  1. package/dist/{ConnectedDataExplorerComponent-eLHPh6uu.js → ConnectedDataExplorerComponent-CErm132k.js} +25 -26
  2. package/dist/{ErrorBoundary-DBh-wUT9.js → ErrorBoundary-BuIXiuc5.js} +43 -44
  3. package/dist/{abnfDiagram-VCTEODGH-hqd0IBtX.js → abnfDiagram-VCTEODGH-d-Qn2fwb.js} +2 -2
  4. package/dist/{any-language-editor-DnG26QXh.js → any-language-editor-6k6F12Z3.js} +3 -3
  5. package/dist/{architectureDiagram-5GKGNRK7-BzLAFcc0.js → architectureDiagram-5GKGNRK7-DxragHYv.js} +1 -1
  6. package/dist/{assertNever-DIU3JJbt.js → assertNever-B-YzWzbL.js} +14 -14
  7. package/dist/{button-0-RqY1DW.js → button-DZuNnIZO.js} +220 -223
  8. package/dist/{capabilities-B6yy_CBN.js → capabilities-D9FskwsK.js} +1 -1
  9. package/dist/{chat-ui-BWIkve2R.js → chat-ui-SZ6lSH52.js} +144 -145
  10. package/dist/{check-gUSZbRsl.js → check-XFzZeH-y.js} +1 -1
  11. package/dist/{chunk-IMKFNOWR-DOeVvuyE.js → chunk-IMKFNOWR-C0x0feFg.js} +1 -1
  12. package/dist/{chunk-SHT3W25Y-DZoFI8wR.js → chunk-SHT3W25Y-D0ZdASqB.js} +1 -1
  13. package/dist/{chunk-SVP7TREG-CWu86PSW.js → chunk-SVP7TREG-BHjL96zx.js} +1 -1
  14. package/dist/{chunk-TICWLB2K-BrM0GoP3.js → chunk-TICWLB2K-CzcrwGfp.js} +1 -1
  15. package/dist/{classDiagram-ZZMXUADV-DYi4V2bB.js → classDiagram-ZZMXUADV-BTqFAZTP.js} +2 -2
  16. package/dist/{classDiagram-v2-VYDZK3BY-tN7FIk-m.js → classDiagram-v2-VYDZK3BY-EPXb0Elt.js} +2 -2
  17. package/dist/{code-visibility-M_dXDGp6.js → code-visibility-BEAPMrC-.js} +20 -20
  18. package/dist/{common-DV0fvw_I.js → common-CEmzaoJ8.js} +799 -801
  19. package/dist/{config-BsPruWMR.js → config-C8MFHQ2E.js} +23 -22
  20. package/dist/{copy-icon-C2I8sw4h.js → copy-icon-CtllOdmg.js} +3 -3
  21. package/dist/{createReducer-DdtT_7ji.js → createReducer-DRqwmaTc.js} +2 -2
  22. package/dist/{cynefinDiagram-5FMLGOSQ-D5nCnDc-.js → cynefinDiagram-5FMLGOSQ-CBSD344q.js} +1 -1
  23. package/dist/{dagre-GXQ25YYZ-BHkd7f_i.js → dagre-GXQ25YYZ-JItjh3Ge.js} +1 -1
  24. package/dist/{data-grid-overlay-editor-Cd1zGKBt.js → data-grid-overlay-editor-CUo25_W8.js} +1 -1
  25. package/dist/{diagram-S7CK7UJ4-D1ALppT2.js → diagram-S7CK7UJ4-CTD9xTVb.js} +1 -1
  26. package/dist/{diagram-UQ7AKVKN-DLv0b83L.js → diagram-UQ7AKVKN-DTfnFai8.js} +1 -1
  27. package/dist/{diagram-VX7I27RA-7XJ7J6qg.js → diagram-VX7I27RA-BcSnucV-.js} +1 -1
  28. package/dist/{diagram-Z3DM3KII-7M7zbHp_.js → diagram-Z3DM3KII-C2ATIE8A.js} +1 -1
  29. package/dist/{dialog-DzCj1qQv.js → dialog-CaYm5imE.js} +33 -33
  30. package/dist/{dropdown-menu-CdXE15an.js → dropdown-menu-Bb0bFOIk.js} +149 -149
  31. package/dist/{ebnfDiagram-PWID7BFC-DHH1qlmV.js → ebnfDiagram-PWID7BFC-B7B9JPxc.js} +2 -2
  32. package/dist/{erDiagram-RLTQ6QDP-fI_0dGef.js → erDiagram-RLTQ6QDP-v6hDno1O.js} +1 -1
  33. package/dist/{error-banner-DPc9eIw5.js → error-banner-CHCdHVFB.js} +44 -45
  34. package/dist/{error-entries-CxN-Nq3V.js → error-entries-B-1yUdcH.js} +406 -407
  35. package/dist/{feedback-button-CE2gPi4-.js → feedback-button-BqiR7zMO.js} +11 -11
  36. package/dist/{flowDiagram-HODETNUW-Brg9MA6i.js → flowDiagram-HODETNUW-aIFlAtOy.js} +2 -2
  37. package/dist/{formats-DbSvAPY-.js → formats-PzBQMUnr.js} +3 -3
  38. package/dist/{glide-data-editor-BycATbgF.js → glide-data-editor-B7dguvqk.js} +14 -16
  39. package/dist/{glide-utils-BSw3SSHF.js → glide-utils-BSQr4d90.js} +51 -59
  40. package/dist/{globals-CW6OvnI5.js → globals-CYykXfGI.js} +3 -3
  41. package/dist/{html-to-image-Bc2AvXHG.js → html-to-image-DC_pmZLs.js} +546 -548
  42. package/dist/{infoDiagram-27XIBGKW-E9e403YT.js → infoDiagram-27XIBGKW-D6YHLeCP.js} +1 -1
  43. package/dist/{ishikawaDiagram-5VMMS53U-C-RlYDRo.js → ishikawaDiagram-5VMMS53U-D1ZvprOX.js} +1 -1
  44. package/dist/{kanban-definition-UXKFOSKX-CLFl_uqK.js → kanban-definition-UXKFOSKX-Bna_3BMr.js} +1 -1
  45. package/dist/{loader-BVEtQ4F3.js → loader-DZvtzQoD.js} +1 -1
  46. package/dist/main.js +6772 -6771
  47. package/dist/{mermaid-rd09e1JL.js → mermaid-A36unKXJ.js} +50 -50
  48. package/dist/{mindmap-definition-YA3MSWOX-BQ8TWtyB.js → mindmap-definition-YA3MSWOX-CyVCs__G.js} +1 -1
  49. package/dist/{number-overlay-editor-B_rR-LdM.js → number-overlay-editor-C4u7SJAJ.js} +1 -1
  50. package/dist/{pegDiagram-XKGWAZYB-CN8UHFPi.js → pegDiagram-XKGWAZYB-9hNBD2wZ.js} +2 -2
  51. package/dist/{pencil-DcT8AE0h.js → pencil-DYUlSKxZ.js} +1 -1
  52. package/dist/{pieDiagram-E7YTZNPT-DGuJ0EBd.js → pieDiagram-E7YTZNPT-8tr-NYo7.js} +1 -1
  53. package/dist/{process-output-qecD7Dk8.js → process-output-DYu84VfZ.js} +4 -4
  54. package/dist/{railroadDiagram-O6MQD6OU-BPDA8wy8.js → railroadDiagram-O6MQD6OU-Dzg1dyyp.js} +2 -2
  55. package/dist/{requirementDiagram-BXWQKSXE-ChzLGbGW.js → requirementDiagram-BXWQKSXE-B7sNqwGG.js} +1 -1
  56. package/dist/{reveal-component-CngVwOSy.js → reveal-component-DGi-irHV.js} +589 -589
  57. package/dist/{select-OxgozOC8.js → select-DsoP1qe8.js} +290 -290
  58. package/dist/{sequenceDiagram-WJ2MYXX4-DFX-bE6O.js → sequenceDiagram-WJ2MYXX4-oP9shbaG.js} +1 -1
  59. package/dist/{spec-oJn0RhpQ.js → spec-BZMDxAu7.js} +4 -4
  60. package/dist/{stateDiagram-D77RDMKH-BR7cI3wK.js → stateDiagram-D77RDMKH-CjCv4ogv.js} +2 -2
  61. package/dist/{stateDiagram-v2-MP3YSRHH-oGqB5UDI.js → stateDiagram-v2-MP3YSRHH-BW9X162a.js} +2 -2
  62. package/dist/{static-state-CuV6Pc3a.js → static-state-D-Q-Ajaa.js} +8 -8
  63. package/dist/style.css +1 -1
  64. package/dist/{swimlanes-42K2YHIH-DwSZl1yC.js → swimlanes-42K2YHIH-Ckfs9Wrn.js} +1 -1
  65. package/dist/{swimlanesDiagram-VR7AAH4N-BHlcd-Ri.js → swimlanesDiagram-VR7AAH4N-DpTNG9YP.js} +2 -2
  66. package/dist/{swiper-component-Dvj-goaD.js → swiper-component-DQbK_ZWm.js} +7 -7
  67. package/dist/{timeline-definition-24CTP7MA-DMmP-G2O.js → timeline-definition-24CTP7MA-BXaBlV6U.js} +1 -1
  68. package/dist/{toast-DbBHmxmB.js → toast-BhjIy3Tq.js} +158 -158
  69. package/dist/{tooltip-BfcDQd2j.js → tooltip-DMMiOn2f.js} +64 -64
  70. package/dist/use-restore-focus-CosX7-gx.js +7568 -0
  71. package/dist/{useAsyncData-BYIAoMqn.js → useAsyncData-Ci4AvJff.js} +4 -4
  72. package/dist/{useDateFormatter-ButWkdcK.js → useDateFormatter-CPlava52.js} +2 -2
  73. package/dist/{useDeepCompareMemoize-Bz0c5GN6.js → useDeepCompareMemoize-NaaWoFlX.js} +1 -1
  74. package/dist/useEvent-BRH-aCqi.js +19 -0
  75. package/dist/{useIframeCapabilities-BIolGsF1.js → useIframeCapabilities-BXhDDoCG.js} +1 -1
  76. package/dist/{useLifecycle-JjxCC7Vu.js → useLifecycle-SniivYmC.js} +2 -2
  77. package/dist/{vega-component-rxIxAAh9.js → vega-component-DIxaDQNs.js} +40 -40
  78. package/dist/{vennDiagram-4TSXK5OY-Db8GtH1G.js → vennDiagram-4TSXK5OY-C-hQ4iNJ.js} +1 -1
  79. package/dist/{wardleyDiagram-VM6X3IG4-DmIiC3FU.js → wardleyDiagram-VM6X3IG4-C2MQ_Umv.js} +1 -1
  80. package/dist/{xychartDiagram-S5SC5T6Z-DS9OPrNq.js → xychartDiagram-S5SC5T6Z-BtTTBn7Q.js} +1 -1
  81. package/package.json +1 -1
  82. package/src/core/islands/components/__tests__/web-components.test.tsx +63 -0
  83. package/src/core/islands/components/web-components.tsx +11 -0
  84. package/src/css/globals.css +6 -2
  85. package/src/plugins/impl/DataEditorPlugin.tsx +0 -4
  86. package/src/plugins/impl/data-editor/__tests__/column-types.test.ts +5 -0
  87. package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +9 -5
  88. package/src/plugins/impl/data-editor/column-types.ts +3 -0
  89. package/src/plugins/impl/data-editor/glide-data-editor.tsx +6 -5
  90. package/src/plugins/impl/data-editor/glide-utils.ts +10 -32
  91. package/src/plugins/impl/data-editor/types.ts +0 -2
  92. package/src/theme/__tests__/islands-theme.test.tsx +276 -0
  93. package/src/theme/namespace.tsx +4 -3
  94. package/src/theme/useTheme.ts +71 -41
  95. package/dist/schemas-CdscWNy_.js +0 -4747
  96. package/dist/use-restore-focus-CmflVLWJ.js +0 -1672
  97. package/dist/useTheme-DPLobSFs.js +0 -339
  98. package/dist/utils-EBklsC5R.js +0 -813
@@ -1,17 +1,17 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
- import { g as t, h as n, m as r, p as i, u as a } from "./button-0-RqY1DW.js";
2
+ import { g as t, h as n, m as r, p as i, u as a } from "./button-DZuNnIZO.js";
3
3
  import { t as o } from "./react-sHtZdjeP.js";
4
4
  import { t as s } from "./compiler-runtime-CldRdSsv.js";
5
- import { c, h as l, l as u, s as d, u as f } from "./tooltip-BfcDQd2j.js";
6
- import { t as p } from "./check-gUSZbRsl.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-OxgozOC8.js";
8
- import { a as ee, s as te } from "./assertNever-DIU3JJbt.js";
9
- import { t as ne } from "./clsx-CoeGtWvn.js";
10
- import { t as k } from "./react-dom-DUmH0GXv.js";
11
- import { t as A } from "./jsx-runtime-3BD1kT0s.js";
12
- import { A as j, C as M, D as N, E as re, F as P, I as F, L as ie, M as ae, N as I, P as oe, S as se, T as ce, a as le, c as L, j as ue, k as de, n as fe, o as pe, v as me, w as he, x as ge, y as _e } from "./use-restore-focus-CmflVLWJ.js";
5
+ import { c, h as l, l as u, s as d, u as f } from "./tooltip-DMMiOn2f.js";
6
+ import { t as p } from "./check-XFzZeH-y.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-DsoP1qe8.js";
8
+ import { a as ee, s as k } from "./assertNever-B-YzWzbL.js";
9
+ import { t as te } from "./clsx-CoeGtWvn.js";
10
+ import { t as A } from "./react-dom-DUmH0GXv.js";
11
+ import { t as j } from "./jsx-runtime-3BD1kT0s.js";
12
+ import { $t as M, Xt as N, Zt as P, a as F, an as ne, c as re, cn as ie, dn as I, en as ae, fn as oe, hn as se, in as ce, ln as le, mn as L, n as ue, nn as de, o as fe, pn as pe, rn as me, sn as he, tn as ge, un as _e } from "./use-restore-focus-CosX7-gx.js";
13
13
  import { t as ve } from "./debounce-DrhhziJv.js";
14
- import { D as ye } from "./utils-EBklsC5R.js";
14
+ import { t as ye } from "./useEvent-BRH-aCqi.js";
15
15
  import { t as be } from "./once-NnpX_HnX.js";
16
16
  var xe = l("chevron-right", [["path", {
17
17
  d: "m9 18 6-6-6-6",
@@ -55,13 +55,13 @@ function je() {
55
55
  return ke(Ae, () => !0, () => !1);
56
56
  }
57
57
  Ee(je, "useIsHydratedModern");
58
- var Me = typeof ke == "function" ? je : Oe, z = A(), Ne = Object.defineProperty, Pe = (e, t) => Ne(e, "name", {
58
+ var Me = typeof ke == "function" ? je : Oe, z = j(), Ne = Object.defineProperty, Pe = (e, t) => Ne(e, "name", {
59
59
  value: t,
60
60
  configurable: !0
61
61
  }), Fe = "rovingFocusGroup.onEntryFocus", Ie = {
62
62
  bubbles: !1,
63
63
  cancelable: !0
64
- }, Le = "RovingFocusGroup", [Re, ze, Be] = ee(Le), [Ve, He] = P(Le, [Be]), Ue = {
64
+ }, Le = "RovingFocusGroup", [Re, ze, Be] = ee(Le), [Ve, He] = pe(Le, [Be]), Ue = {
65
65
  Vertical: "vertical",
66
66
  Horizontal: "horizontal"
67
67
  }, We = {
@@ -79,12 +79,12 @@ var Me = typeof ke == "function" ? je : Oe, z = A(), Ne = Object.defineProperty,
79
79
  })
80
80
  });
81
81
  }, "RovingFocusGroup")), Je = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ Pe(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 = R.useRef(null), h = i(t, p), g = m(o), [_, v] = ae({
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 = R.useRef(null), h = i(t, p), g = m(o), [_, v] = _e({
83
83
  prop: s,
84
84
  defaultProp: c ?? null,
85
85
  onChange: l,
86
86
  caller: Le
87
- }), [y, b] = R.useState(!1), x = de(u), S = ze(n), C = R.useRef(!1), [w, T] = R.useState(0);
87
+ }), [y, b] = R.useState(!1), x = he(u), S = ze(n), C = R.useRef(!1), [w, T] = R.useState(0);
88
88
  return R.useEffect(() => {
89
89
  let e = p.current;
90
90
  if (e) return e.addEventListener(Fe, x), () => e.removeEventListener(Fe, x);
@@ -98,7 +98,7 @@ var Me = typeof ke == "function" ? je : Oe, z = A(), Ne = Object.defineProperty,
98
98
  onItemShiftTab: R.useCallback(() => b(!0), []),
99
99
  onFocusableItemAdd: R.useCallback(() => T((e) => e + 1), []),
100
100
  onFocusableItemRemove: R.useCallback(() => T((e) => e - 1), []),
101
- children: /* @__PURE__ */ (0, z.jsx)(F.div, {
101
+ children: /* @__PURE__ */ (0, z.jsx)(L.div, {
102
102
  tabIndex: y || w === 0 ? -1 : 0,
103
103
  "data-orientation": r,
104
104
  ...f,
@@ -129,7 +129,7 @@ var Me = typeof ke == "function" ? je : Oe, z = A(), Ne = Object.defineProperty,
129
129
  })
130
130
  });
131
131
  }, "RovingFocusGroupImpl")), Ye = "RovingFocusGroupItem", Xe = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ Pe(function(e, t) {
132
- let { __scopeRovingFocusGroup: n, focusable: r = !0, active: i = !1, tabStopId: a, children: o, ...s } = e, c = j(), l = a || c, u = Ke(Ye, n), d = u.currentTabStopId === l, f = ze(n), { onFocusableItemAdd: p, onFocusableItemRemove: m, currentTabStopId: h } = u, g = Me();
132
+ let { __scopeRovingFocusGroup: n, focusable: r = !0, active: i = !1, tabStopId: a, children: o, ...s } = e, c = ie(), l = a || c, u = Ke(Ye, n), d = u.currentTabStopId === l, f = ze(n), { onFocusableItemAdd: p, onFocusableItemRemove: m, currentTabStopId: h } = u, g = Me();
133
133
  return oe(() => {
134
134
  if (!(!g || !r)) return p(), () => m();
135
135
  }, [
@@ -149,7 +149,7 @@ var Me = typeof ke == "function" ? je : Oe, z = A(), Ne = Object.defineProperty,
149
149
  id: l,
150
150
  focusable: r,
151
151
  active: i,
152
- children: /* @__PURE__ */ (0, z.jsx)(F.span, {
152
+ children: /* @__PURE__ */ (0, z.jsx)(L.span, {
153
153
  tabIndex: d ? 0 : -1,
154
154
  "data-orientation": u.orientation,
155
155
  ...s,
@@ -234,12 +234,12 @@ var nt = Object.defineProperty, B = (e, t) => nt(e, "name", {
234
234
  }, lt = {
235
235
  ltr: ["ArrowLeft"],
236
236
  rtl: ["ArrowRight"]
237
- }, ut = "Menu", [dt, ft, pt] = ee(ut), [mt, ht] = P(ut, [
237
+ }, ut = "Menu", [dt, ft, pt] = ee(ut), [mt, ht] = pe(ut, [
238
238
  pt,
239
239
  f,
240
240
  He
241
241
  ]), gt = f(), _t = He(), [vt, yt] = mt(ut), [bt, xt] = mt(ut), St = /* @__PURE__ */ B((e) => {
242
- let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s = gt(t), [c, l] = R.useState(null), u = R.useRef(!1), f = de(a), p = m(i);
242
+ let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s = gt(t), [c, l] = R.useState(null), u = R.useRef(!1), f = he(a), p = m(i);
243
243
  return R.useEffect(() => {
244
244
  let e = /* @__PURE__ */ B(() => {
245
245
  u.current = !0, document.addEventListener("pointerdown", t, {
@@ -287,9 +287,9 @@ var nt = Object.defineProperty, B = (e, t) => nt(e, "name", {
287
287
  return /* @__PURE__ */ (0, z.jsx)(Tt, {
288
288
  scope: t,
289
289
  forceMount: n,
290
- children: /* @__PURE__ */ (0, z.jsx)(ue, {
290
+ children: /* @__PURE__ */ (0, z.jsx)(le, {
291
291
  present: n || a.open,
292
- children: /* @__PURE__ */ (0, z.jsx)(se, {
292
+ children: /* @__PURE__ */ (0, z.jsx)(ae, {
293
293
  asChild: !0,
294
294
  container: i,
295
295
  children: r
@@ -300,7 +300,7 @@ var nt = Object.defineProperty, B = (e, t) => nt(e, "name", {
300
300
  let n = Et(Ot, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = yt(Ot, e.__scopeMenu), o = xt(Ot, e.__scopeMenu);
301
301
  return /* @__PURE__ */ (0, z.jsx)(dt.Provider, {
302
302
  scope: e.__scopeMenu,
303
- children: /* @__PURE__ */ (0, z.jsx)(ue, {
303
+ children: /* @__PURE__ */ (0, z.jsx)(le, {
304
304
  present: r || a.open,
305
305
  children: /* @__PURE__ */ (0, z.jsx)(dt.Slot, {
306
306
  scope: e.__scopeMenu,
@@ -318,7 +318,7 @@ var nt = Object.defineProperty, B = (e, t) => nt(e, "name", {
318
318
  let n = yt(Ot, e.__scopeMenu), r = R.useRef(null), a = i(t, r);
319
319
  return R.useEffect(() => {
320
320
  let e = r.current;
321
- if (e) return me(e);
321
+ if (e) return N(e);
322
322
  }, []), /* @__PURE__ */ (0, z.jsx)(Ft, {
323
323
  ...e,
324
324
  ref: a,
@@ -340,27 +340,27 @@ var nt = Object.defineProperty, B = (e, t) => nt(e, "name", {
340
340
  });
341
341
  }, "MenuRootContentNonModal")), Pt = a("MenuContent.ScrollLock"), Ft = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(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 = yt(Ot, n), y = xt(Ot, n), b = gt(n), x = _t(n), S = ft(n), [C, w] = R.useState(null), T = R.useRef(null), [E, D] = R.useState(null);
343
- ce(E);
344
- let { nodes: O, registry: ee } = re(), te = !!(a || g), ne = i(t, T, v.onContentChange, D), k = R.useRef(0), A = R.useRef(""), j = R.useRef(0), P = R.useRef(null), F = R.useRef("right"), ie = R.useRef(0), ae = R.useMemo(() => g ? [T, ...O.map((e) => ({ current: e }))] : [], [
343
+ me(E);
344
+ let { nodes: O, registry: ee } = ce(), k = !!(a || g), te = i(t, T, v.onContentChange, D), A = R.useRef(0), j = R.useRef(""), N = R.useRef(0), F = R.useRef(null), re = R.useRef("right"), ie = R.useRef(0), ae = R.useMemo(() => g ? [T, ...O.map((e) => ({ current: e }))] : [], [
345
345
  T,
346
346
  O,
347
347
  g
348
- ]), oe = g ? _e : R.Fragment, se = g ? {
348
+ ]), oe = g ? P : R.Fragment, se = g ? {
349
349
  as: Pt,
350
350
  allowPinchZoom: !0,
351
351
  shards: ae
352
352
  } : void 0, le = /* @__PURE__ */ B((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;
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
  B(s, "updateSearch"), s(t), o && setTimeout(() => o.focus());
358
358
  }, "handleTypeaheadSearch");
359
- R.useEffect(() => () => window.clearTimeout(k.current), []), ge();
360
- let L = R.useCallback((e) => F.current === P.current?.side && hn(e, P.current?.area), []);
359
+ R.useEffect(() => () => window.clearTimeout(A.current), []), M();
360
+ let L = R.useCallback((e) => re.current === F.current?.side && hn(e, F.current?.area), []);
361
361
  return /* @__PURE__ */ (0, z.jsx)(kt, {
362
362
  scope: n,
363
- searchRef: A,
363
+ searchRef: j,
364
364
  onItemEnter: R.useCallback((e) => {
365
365
  L(e) && e.preventDefault();
366
366
  }, [L]),
@@ -370,15 +370,15 @@ var nt = Object.defineProperty, B = (e, t) => nt(e, "name", {
370
370
  onTriggerLeave: R.useCallback((e) => {
371
371
  L(e) && e.preventDefault();
372
372
  }, [L]),
373
- pointerGraceTimerRef: j,
373
+ pointerGraceTimerRef: N,
374
374
  onPointerGraceIntentChange: R.useCallback((e) => {
375
- P.current = e;
375
+ F.current = e;
376
376
  }, []),
377
- children: /* @__PURE__ */ (0, z.jsx)(he, {
378
- registry: te ? ee : null,
377
+ children: /* @__PURE__ */ (0, z.jsx)(de, {
378
+ registry: k ? ee : null,
379
379
  children: /* @__PURE__ */ (0, z.jsx)(oe, {
380
380
  ...se,
381
- children: /* @__PURE__ */ (0, z.jsx)(M, {
381
+ children: /* @__PURE__ */ (0, z.jsx)(ge, {
382
382
  asChild: !0,
383
383
  trapped: a,
384
384
  branches: O,
@@ -386,7 +386,7 @@ var nt = Object.defineProperty, B = (e, t) => nt(e, "name", {
386
386
  e.preventDefault(), T.current?.focus({ preventScroll: !0 });
387
387
  }),
388
388
  onUnmountAutoFocus: s,
389
- children: /* @__PURE__ */ (0, z.jsx)(N, {
389
+ children: /* @__PURE__ */ (0, z.jsx)(ne, {
390
390
  asChild: !0,
391
391
  disableOutsidePointerEvents: c,
392
392
  onEscapeKeyDown: d,
@@ -414,7 +414,7 @@ var nt = Object.defineProperty, B = (e, t) => nt(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
@@ -429,13 +429,13 @@ var nt = Object.defineProperty, B = (e, t) => nt(e, "name", {
429
429
  ot.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 = ie.current !== e.clientX;
436
436
  if (e.currentTarget.contains(t) && n) {
437
437
  let t = e.clientX > ie.current ? "right" : "left";
438
- F.current = t, ie.current = e.clientX;
438
+ re.current = t, ie.current = e.clientX;
439
439
  }
440
440
  }))
441
441
  })
@@ -447,14 +447,14 @@ var nt = Object.defineProperty, B = (e, t) => nt(e, "name", {
447
447
  });
448
448
  }, "MenuContentImpl")), It = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
449
449
  let { __scopeMenu: n, ...r } = e;
450
- return /* @__PURE__ */ (0, z.jsx)(F.div, {
450
+ return /* @__PURE__ */ (0, z.jsx)(L.div, {
451
451
  role: "group",
452
452
  ...r,
453
453
  ref: t
454
454
  });
455
455
  }, "MenuGroup")), Lt = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
456
456
  let { __scopeMenu: n, ...r } = e;
457
- return /* @__PURE__ */ (0, z.jsx)(F.div, {
457
+ return /* @__PURE__ */ (0, z.jsx)(L.div, {
458
458
  ...r,
459
459
  ref: t
460
460
  });
@@ -466,7 +466,7 @@ var nt = Object.defineProperty, B = (e, t) => nt(e, "name", {
466
466
  bubbles: !0,
467
467
  cancelable: !0
468
468
  });
469
- e.addEventListener(zt, (e) => r?.(e), { once: !0 }), ie(e, t), t.defaultPrevented ? u.current = !1 : s.onClose();
469
+ e.addEventListener(zt, (e) => r?.(e), { once: !0 }), se(e, t), t.defaultPrevented ? u.current = !1 : s.onClose();
470
470
  }
471
471
  }, "handleSelect");
472
472
  return /* @__PURE__ */ (0, z.jsx)(Vt, {
@@ -497,7 +497,7 @@ var nt = Object.defineProperty, B = (e, t) => nt(e, "name", {
497
497
  asChild: !0,
498
498
  ...c,
499
499
  focusable: !r,
500
- children: /* @__PURE__ */ (0, z.jsx)(F.div, {
500
+ children: /* @__PURE__ */ (0, z.jsx)(L.div, {
501
501
  role: "menuitem",
502
502
  "data-highlighted": d ? "" : void 0,
503
503
  "aria-disabled": r || void 0,
@@ -531,7 +531,7 @@ var nt = Object.defineProperty, B = (e, t) => nt(e, "name", {
531
531
  value: void 0,
532
532
  onValueChange: /* @__PURE__ */ B(() => {}, "onValueChange")
533
533
  }), Gt = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
534
- let { value: n, onValueChange: r, ...i } = e, a = de(r);
534
+ let { value: n, onValueChange: r, ...i } = e, a = he(r);
535
535
  return /* @__PURE__ */ (0, z.jsx)(Ut, {
536
536
  scope: e.__scopeMenu,
537
537
  value: n,
@@ -557,9 +557,9 @@ var nt = Object.defineProperty, B = (e, t) => nt(e, "name", {
557
557
  });
558
558
  }, "MenuRadioItem")), Jt = "MenuItemIndicator", [Yt, Xt] = mt(Jt, { checked: !1 }), Zt = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
559
559
  let { __scopeMenu: n, forceMount: r, ...i } = e, a = Xt(Jt, n);
560
- return /* @__PURE__ */ (0, z.jsx)(ue, {
560
+ return /* @__PURE__ */ (0, z.jsx)(le, {
561
561
  present: r || ln(a.checked) || a.checked === !0,
562
- children: /* @__PURE__ */ (0, z.jsx)(F.span, {
562
+ children: /* @__PURE__ */ (0, z.jsx)(L.span, {
563
563
  ...i,
564
564
  ref: t,
565
565
  "data-state": un(a.checked)
@@ -567,14 +567,14 @@ var nt = Object.defineProperty, B = (e, t) => nt(e, "name", {
567
567
  });
568
568
  }, "MenuItemIndicator")), Qt = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ B(function(e, t) {
569
569
  let { __scopeMenu: n, ...r } = e;
570
- return /* @__PURE__ */ (0, z.jsx)(F.div, {
570
+ return /* @__PURE__ */ (0, z.jsx)(L.div, {
571
571
  role: "separator",
572
572
  "aria-orientation": "horizontal",
573
573
  ...r,
574
574
  ref: t
575
575
  });
576
576
  }, "MenuSeparator")), $t = "MenuSub", [en, tn] = mt($t), nn = /* @__PURE__ */ B((e) => {
577
- let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a = yt($t, t), o = gt(t), [s, c] = R.useState(null), [l, u] = R.useState(null), f = de(i);
577
+ let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a = yt($t, t), o = gt(t), [s, c] = R.useState(null), [l, u] = R.useState(null), f = he(i);
578
578
  return R.useEffect(() => (a.open === !1 && f(!1), () => f(!1)), [a.open, f]), /* @__PURE__ */ (0, z.jsx)(d, {
579
579
  ...o,
580
580
  children: /* @__PURE__ */ (0, z.jsx)(vt, {
@@ -585,8 +585,8 @@ var nt = Object.defineProperty, B = (e, t) => nt(e, "name", {
585
585
  onContentChange: u,
586
586
  children: /* @__PURE__ */ (0, z.jsx)(en, {
587
587
  scope: t,
588
- contentId: j(),
589
- triggerId: j(),
588
+ contentId: ie(),
589
+ triggerId: ie(),
590
590
  trigger: s,
591
591
  onTriggerChange: c,
592
592
  children: n
@@ -667,7 +667,7 @@ var nt = Object.defineProperty, B = (e, t) => nt(e, "name", {
667
667
  let n = Et(Ot, e.__scopeMenu), { forceMount: r = n.forceMount, align: a = "start", ...o } = e, s = yt(Ot, e.__scopeMenu), c = xt(Ot, e.__scopeMenu), l = tn(on, e.__scopeMenu), u = R.useRef(null), d = i(t, u);
668
668
  return /* @__PURE__ */ (0, z.jsx)(dt.Provider, {
669
669
  scope: e.__scopeMenu,
670
- children: /* @__PURE__ */ (0, z.jsx)(ue, {
670
+ children: /* @__PURE__ */ (0, z.jsx)(le, {
671
671
  present: r || s.open,
672
672
  children: /* @__PURE__ */ (0, z.jsx)(dt.Slot, {
673
673
  scope: e.__scopeMenu,
@@ -753,8 +753,8 @@ B(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] = P(vn, [ht]), H = ht(), [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 = R.useRef(null), [u, d] = ae({
756
+ }), vn = "DropdownMenu", [yn, bn] = pe(vn, [ht]), H = ht(), [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 = R.useRef(null), [u, d] = _e({
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, z.jsx)(xn, {
764
764
  scope: t,
765
- triggerId: j(),
765
+ triggerId: ie(),
766
766
  triggerRef: l,
767
- contentId: j(),
767
+ contentId: ie(),
768
768
  open: u,
769
769
  onOpenChange: d,
770
770
  onOpenToggle: R.useCallback(() => d((e) => !e), [d]),
@@ -783,7 +783,7 @@ var _n = Object.defineProperty, V = (e, t) => _n(e, "name", {
783
783
  return /* @__PURE__ */ (0, z.jsx)(Ct, {
784
784
  asChild: !0,
785
785
  ...s,
786
- children: /* @__PURE__ */ (0, z.jsx)(F.button, {
786
+ children: /* @__PURE__ */ (0, z.jsx)(L.button, {
787
787
  type: "button",
788
788
  id: o.triggerId,
789
789
  "aria-haspopup": "menu",
@@ -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] = ae({
889
+ let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, o = H(t), [s, c] = _e({
890
890
  prop: r,
891
891
  defaultProp: a ?? !1,
892
892
  onChange: i,
@@ -1467,7 +1467,7 @@ function q(...e) {
1467
1467
  let r = e[n];
1468
1468
  for (let e in r) {
1469
1469
  let n = t[e], i = r[e];
1470
- 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;
1470
+ 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;
1471
1471
  }
1472
1472
  }
1473
1473
  return t;
@@ -1733,7 +1733,7 @@ function J(e) {
1733
1733
  }
1734
1734
  //#endregion
1735
1735
  //#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/utils/useEvent.mjs
1736
- var Bi = /* @__PURE__ */ e(k(), 1);
1736
+ var Bi = /* @__PURE__ */ e(A(), 1);
1737
1737
  function Vi(e, t, n, r) {
1738
1738
  let i = J(n), a = n == null;
1739
1739
  (0, R.useEffect)(() => {
@@ -3442,19 +3442,19 @@ function Gs(e) {
3442
3442
  }), O = J((e) => {
3443
3443
  v(), g.current = !0, t.current = window.setTimeout(D, e);
3444
3444
  }), ee = J(() => {
3445
- (i === void 0 || isNaN(i) || n === void 0 || isNaN(n) || n > i) && (E(), te(60));
3446
- }), te = J((e) => {
3445
+ (i === void 0 || isNaN(i) || n === void 0 || isNaN(n) || n > i) && (E(), k(60));
3446
+ }), k = J((e) => {
3447
3447
  v(), g.current = !0, t.current = window.setTimeout(ee, e);
3448
- }), ne = (e) => {
3448
+ }), te = (e) => {
3449
3449
  e.preventDefault();
3450
- }, { addGlobalListener: k, removeAllGlobalListeners: A } = ya(), j = (0, R.useRef)(!1), [M, N] = (0, R.useState)(null);
3450
+ }, { addGlobalListener: A, removeAllGlobalListeners: j } = ya(), M = (0, R.useRef)(!1), [N, P] = (0, R.useState)(null);
3451
3451
  (0, R.useEffect)(() => {
3452
- M === "touch" ? O(600) : M ? O(400) : M || v();
3453
- }, [M]);
3454
- let [re, P] = (0, R.useState)(null);
3452
+ N === "touch" ? O(600) : N ? O(400) : N || v();
3453
+ }, [N]);
3454
+ let [F, ne] = (0, R.useState)(null);
3455
3455
  return (0, R.useEffect)(() => {
3456
- re === "touch" ? te(600) : re ? te(400) : re || v();
3457
- }, [re]), {
3456
+ F === "touch" ? k(600) : F ? k(400) : F || v();
3457
+ }, [F]), {
3458
3458
  spinButtonProps: {
3459
3459
  role: "spinbutton",
3460
3460
  "aria-valuenow": n !== void 0 && !isNaN(n) ? n : void 0,
@@ -3470,26 +3470,26 @@ function Gs(e) {
3470
3470
  },
3471
3471
  incrementButtonProps: {
3472
3472
  onPressStart: (e) => {
3473
- _(), e.pointerType === "touch" ? (k(window, "pointercancel", w, { capture: !0 }), j.current = !1, N("touch")) : (l?.(), N("mouse")), k(window, "contextmenu", ne);
3473
+ _(), e.pointerType === "touch" ? (A(window, "pointercancel", w, { capture: !0 }), M.current = !1, P("touch")) : (l?.(), P("mouse")), A(window, "contextmenu", te);
3474
3474
  },
3475
3475
  onPressUp: (e) => {
3476
- _(), e.pointerType === "touch" && (j.current = !0), A(), N(null);
3476
+ _(), e.pointerType === "touch" && (M.current = !0), j(), P(null);
3477
3477
  },
3478
3478
  onPressEnd: (e) => {
3479
- _(), e.pointerType === "touch" && !g.current && j.current && l?.(), j.current = !1, N(null);
3479
+ _(), e.pointerType === "touch" && !g.current && M.current && l?.(), M.current = !1, P(null);
3480
3480
  },
3481
3481
  onFocus: x,
3482
3482
  onBlur: S
3483
3483
  },
3484
3484
  decrementButtonProps: {
3485
3485
  onPressStart: (e) => {
3486
- _(), e.pointerType === "touch" ? (k(window, "pointercancel", w, { capture: !0 }), j.current = !1, P("touch")) : (d?.(), P("mouse"));
3486
+ _(), e.pointerType === "touch" ? (A(window, "pointercancel", w, { capture: !0 }), M.current = !1, ne("touch")) : (d?.(), ne("mouse"));
3487
3487
  },
3488
3488
  onPressUp: (e) => {
3489
- _(), e.pointerType === "touch" && (j.current = !0), A(), P(null);
3489
+ _(), e.pointerType === "touch" && (M.current = !0), j(), ne(null);
3490
3490
  },
3491
3491
  onPressEnd: (e) => {
3492
- _(), e.pointerType === "touch" && !g.current && j.current && d?.(), j.current = !1, P(null);
3492
+ _(), e.pointerType === "touch" && !g.current && M.current && d?.(), M.current = !1, ne(null);
3493
3493
  },
3494
3494
  onFocus: x,
3495
3495
  onBlur: S
@@ -3502,17 +3502,17 @@ function Ks(e) {
3502
3502
  return e && e.__esModule ? e.default : e;
3503
3503
  }
3504
3504
  function qs(e, t, n) {
3505
- 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, R.useCallback)(() => {
3505
+ 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, R.useCallback)(() => {
3506
3506
  let e = n.current?.value ?? "";
3507
3507
  (0, Bi.flushSync)(() => {
3508
- te();
3508
+ k();
3509
3509
  }), n.current?.value !== e && Ia(n.current?.value ?? "", "assertive");
3510
- }, [te, n]), j = di(r), { focusProps: M } = gi({ onBlur() {
3511
- A();
3512
- } }), N = D(p), re = (0, R.useMemo)(() => N.resolvedOptions(), [N]), P = D({
3510
+ }, [k, n]), M = di(r), { focusProps: N } = gi({ onBlur() {
3511
+ j();
3512
+ } }), P = D(p), F = (0, R.useMemo)(() => P.resolvedOptions(), [P]), ne = D({
3513
3513
  ...p,
3514
3514
  currencySign: void 0
3515
- }), { spinButtonProps: F, incrementButtonProps: ie, decrementButtonProps: ae } = Gs({
3515
+ }), { spinButtonProps: re, incrementButtonProps: ie, decrementButtonProps: I } = Gs({
3516
3516
  isDisabled: o,
3517
3517
  isReadOnly: s,
3518
3518
  isRequired: c,
@@ -3523,8 +3523,8 @@ function qs(e, t, n) {
3523
3523
  onDecrement: T,
3524
3524
  onDecrementToMin: E,
3525
3525
  value: O,
3526
- textValue: (0, R.useMemo)(() => isNaN(O) ? "" : P.format(O), [P, O])
3527
- }), [I, oe] = (0, R.useState)(!1), { focusWithinProps: se } = io({
3526
+ textValue: (0, R.useMemo)(() => isNaN(O) ? "" : ne.format(O), [ne, O])
3527
+ }), [ae, oe] = (0, R.useState)(!1), { focusWithinProps: se } = io({
3528
3528
  isDisabled: o,
3529
3529
  onFocusWithinChange: oe
3530
3530
  });
@@ -3532,21 +3532,21 @@ function qs(e, t, n) {
3532
3532
  onScroll: (0, R.useCallback)((e) => {
3533
3533
  Math.abs(e.deltaY) <= Math.abs(e.deltaX) || (e.deltaY > 0 ? C() : e.deltaY < 0 && T());
3534
3534
  }, [T, C]),
3535
- isDisabled: x || o || s || !I
3535
+ isDisabled: x || o || s || !ae
3536
3536
  }, n);
3537
- let ce = (re.maximumFractionDigits ?? 0) > 0, le = t.minValue === void 0 || isNaN(t.minValue) || t.minValue < 0, L = "numeric";
3537
+ let ce = (F.maximumFractionDigits ?? 0) > 0, le = t.minValue === void 0 || isNaN(t.minValue) || t.minValue < 0, L = "numeric";
3538
3538
  xr() ? le ? L = "text" : ce && (L = "decimal") : Er() && (le ? L = "numeric" : ce && (L = "decimal"));
3539
3539
  let ue = (e) => {
3540
3540
  t.validate(e) && t.setInputValue(e);
3541
3541
  }, de = (t) => {
3542
3542
  e.onPaste?.(t);
3543
3543
  let n = K(t);
3544
- n && (n.selectionEnd ?? -1) - (n.selectionStart ?? 0) === n.value.length && (t.preventDefault(), te(t.clipboardData?.getData?.("text/plain")?.trim() ?? ""));
3544
+ n && (n.selectionEnd ?? -1) - (n.selectionStart ?? 0) === n.value.length && (t.preventDefault(), k(t.clipboardData?.getData?.("text/plain")?.trim() ?? ""));
3545
3545
  }, fe = la(e), { keyboardProps: pe } = Ai({
3546
3546
  isDisabled: o || s,
3547
3547
  shortcuts: { Enter: () => ((0, Bi.flushSync)(() => {
3548
- te();
3549
- }), ne(), { shouldPreventDefault: !1 }) },
3548
+ k();
3549
+ }), te(), { shouldPreventDefault: !1 }) },
3550
3550
  onKeyDown: _,
3551
3551
  onKeyUp: v
3552
3552
  }), { isInvalid: me, validationErrors: he, validationDetails: ge } = t.displayValidation, { labelProps: _e, inputProps: ve, descriptionProps: ye, errorMessageProps: be } = os({
@@ -3566,7 +3566,7 @@ function qs(e, t, n) {
3566
3566
  autoComplete: "off",
3567
3567
  "aria-label": e["aria-label"] || void 0,
3568
3568
  "aria-labelledby": e["aria-labelledby"] || void 0,
3569
- id: j,
3569
+ id: M,
3570
3570
  type: "text",
3571
3571
  inputMode: L,
3572
3572
  onChange: ue,
@@ -3578,9 +3578,9 @@ function qs(e, t, n) {
3578
3578
  errorMessage: b
3579
3579
  }, t, n), xe = q(pe, ve);
3580
3580
  za(n, t.defaultNumberValue, t.setNumberValue), Js(t, e.validationBehavior, e.commitBehavior, n, t.minValue, t.maxValue, e.step, t.numberValue);
3581
- let Se = q(F, M, xe, {
3581
+ let Se = q(re, N, xe, {
3582
3582
  role: null,
3583
- "aria-roledescription": Cr() ? null : k.format("numberField"),
3583
+ "aria-roledescription": Cr() ? null : A.format("numberField"),
3584
3584
  "aria-valuemax": null,
3585
3585
  "aria-valuemin": null,
3586
3586
  "aria-valuenow": null,
@@ -3594,20 +3594,20 @@ function qs(e, t, n) {
3594
3594
  }, we = e["aria-label"] || (typeof e.label == "string" ? e.label : ""), Te;
3595
3595
  we || (Te = e.label == null ? e["aria-labelledby"] : _e.id);
3596
3596
  let Ee = di(), De = di(), Oe = q(ie, {
3597
- "aria-label": a || k.format("increase", { fieldLabel: we }).trim(),
3597
+ "aria-label": a || A.format("increase", { fieldLabel: we }).trim(),
3598
3598
  id: Te && !a ? Ee : null,
3599
3599
  "aria-labelledby": Te && !a ? `${Ee} ${Te}` : null,
3600
- "aria-controls": j,
3600
+ "aria-controls": M,
3601
3601
  excludeFromTabOrder: !0,
3602
3602
  preventFocusOnPress: !0,
3603
3603
  allowFocusWhenDisabled: !0,
3604
3604
  isDisabled: !t.canIncrement,
3605
3605
  onPressStart: Ce
3606
- }), ke = q(ae, {
3607
- "aria-label": i || k.format("decrease", { fieldLabel: we }).trim(),
3606
+ }), ke = q(I, {
3607
+ "aria-label": i || A.format("decrease", { fieldLabel: we }).trim(),
3608
3608
  id: Te && !i ? De : null,
3609
3609
  "aria-labelledby": Te && !i ? `${De} ${Te}` : null,
3610
- "aria-controls": j,
3610
+ "aria-controls": M,
3611
3611
  excludeFromTabOrder: !0,
3612
3612
  preventFocusOnPress: !0,
3613
3613
  allowFocusWhenDisabled: !0,
@@ -5447,10 +5447,10 @@ function ru(e) {
5447
5447
  value: p
5448
5448
  }), T = r !== void 0 && !isNaN(r) ? r : 1;
5449
5449
  S.style === "percent" && (r === void 0 || isNaN(r)) && (T = .01);
5450
- let [E, D] = (0, R.useState)(p), [O, ee] = (0, R.useState)(c), [te, ne] = (0, R.useState)(i);
5451
- (!Object.is(p, E) || c !== O || !iu(i, te)) && (_(C(p)), D(p), ee(c), ne(i));
5452
- let k = (0, R.useMemo)(() => y.parse(g), [y, g]), A = (e) => {
5453
- let t = e === void 0 ? g : e, n = k;
5450
+ let [E, D] = (0, R.useState)(p), [O, ee] = (0, R.useState)(c), [k, te] = (0, R.useState)(i);
5451
+ (!Object.is(p, E) || c !== O || !iu(i, k)) && (_(C(p)), D(p), ee(c), te(i));
5452
+ let A = (0, R.useMemo)(() => y.parse(g), [y, g]), j = (e) => {
5453
+ let t = e === void 0 ? g : e, n = A;
5454
5454
  if (e !== void 0 && (n = y.parse(t)), !t.length) {
5455
5455
  m(NaN), _(a === void 0 ? "" : C(p));
5456
5456
  return;
@@ -5463,55 +5463,55 @@ function ru(e) {
5463
5463
  r = y.parse(C(r));
5464
5464
  let i = r !== p;
5465
5465
  m(r), _(C(a === void 0 ? r : p)), i && w.commitValidation();
5466
- }, j = (e, r = 0) => {
5467
- let i = k;
5466
+ }, M = (e, r = 0) => {
5467
+ let i = A;
5468
5468
  if (isNaN(i)) return lo(isNaN(r) ? 0 : r, t, n, T);
5469
5469
  {
5470
5470
  let r = lo(i, t, n, T);
5471
5471
  return e === "+" && r > i || e === "-" && r < i ? r : lo(au(e, i, T), t, n, T);
5472
5472
  }
5473
- }, M = () => {
5474
- let e = j("+", t);
5475
- e === p && _(C(e)), m(e), w.commitValidation();
5476
5473
  }, N = () => {
5477
- let e = j("-", n);
5474
+ let e = M("+", t);
5478
5475
  e === p && _(C(e)), m(e), w.commitValidation();
5479
- }, re = () => {
5480
- n != null && (m(lo(n, t, n, T)), w.commitValidation());
5481
5476
  }, P = () => {
5477
+ let e = M("-", n);
5478
+ e === p && _(C(e)), m(e), w.commitValidation();
5479
+ }, F = () => {
5480
+ n != null && (m(lo(n, t, n, T)), w.commitValidation());
5481
+ }, ne = () => {
5482
5482
  t != null && (m(t), w.commitValidation());
5483
- }, F = (0, R.useMemo)(() => !l && !u && (isNaN(k) || n === void 0 || isNaN(n) || lo(k, t, n, T) > k || au("+", k, T) <= n), [
5483
+ }, re = (0, R.useMemo)(() => !l && !u && (isNaN(A) || n === void 0 || isNaN(n) || lo(A, t, n, T) > A || au("+", A, T) <= n), [
5484
5484
  l,
5485
5485
  u,
5486
5486
  t,
5487
5487
  n,
5488
5488
  T,
5489
- k
5490
- ]), ie = (0, R.useMemo)(() => !l && !u && (isNaN(k) || t === void 0 || isNaN(t) || lo(k, t, n, T) < k || au("-", k, T) >= t), [
5489
+ A
5490
+ ]), ie = (0, R.useMemo)(() => !l && !u && (isNaN(A) || t === void 0 || isNaN(t) || lo(A, t, n, T) < A || au("-", A, T) >= t), [
5491
5491
  l,
5492
5492
  u,
5493
5493
  t,
5494
5494
  n,
5495
5495
  T,
5496
- k
5497
- ]), ae = (e) => y.isValidPartialNumber(e, t, n);
5496
+ A
5497
+ ]), I = (e) => y.isValidPartialNumber(e, t, n);
5498
5498
  return {
5499
5499
  ...w,
5500
- validate: ae,
5501
- increment: M,
5502
- incrementToMax: re,
5503
- decrement: N,
5504
- decrementToMin: P,
5505
- canIncrement: F,
5500
+ validate: I,
5501
+ increment: N,
5502
+ incrementToMax: F,
5503
+ decrement: P,
5504
+ decrementToMin: ne,
5505
+ canIncrement: re,
5506
5506
  canDecrement: ie,
5507
5507
  minValue: t,
5508
5508
  maxValue: n,
5509
- numberValue: k,
5509
+ numberValue: A,
5510
5510
  defaultNumberValue: isNaN(o) ? h : o,
5511
5511
  setNumberValue: m,
5512
5512
  setInputValue: _,
5513
5513
  inputValue: g,
5514
- commit: A
5514
+ commit: j
5515
5515
  };
5516
5516
  }
5517
5517
  function iu(e, t) {
@@ -5733,41 +5733,41 @@ var Su = R.forwardRef((e, t) => {
5733
5733
  }), r[29] = s.isDisabled, r[30] = D, r[31] = l, r[32] = O) : O = r[32];
5734
5734
  let ee;
5735
5735
  r[33] === Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ (0, z.jsx)("div", { className: "h-px shrink-0 divider bg-border z-10" }), r[33] = ee) : ee = r[33];
5736
- let te = s.isDisabled, ne = l === "xs" && "w-2 h-2", k;
5737
- r[34] === ne ? k = r[35] : (k = n("w-3 h-3 -mt-px", ne), r[34] = ne, r[35] = k);
5738
- let A;
5739
- r[36] === k ? A = r[37] : (A = /* @__PURE__ */ (0, z.jsx)(_, {
5740
- "aria-hidden": !0,
5741
- className: k
5742
- }), r[36] = k, r[37] = A);
5736
+ let k = s.isDisabled, te = l === "xs" && "w-2 h-2", A;
5737
+ r[34] === te ? A = r[35] : (A = n("w-3 h-3 -mt-px", te), r[34] = te, r[35] = A);
5743
5738
  let j;
5744
- r[38] !== s.isDisabled || r[39] !== A || r[40] !== l ? (j = /* @__PURE__ */ (0, z.jsx)(Cu, {
5739
+ r[36] === A ? j = r[37] : (j = /* @__PURE__ */ (0, z.jsx)(_, {
5740
+ "aria-hidden": !0,
5741
+ className: A
5742
+ }), r[36] = A, r[37] = j);
5743
+ let M;
5744
+ r[38] !== s.isDisabled || r[39] !== j || r[40] !== l ? (M = /* @__PURE__ */ (0, z.jsx)(Cu, {
5745
5745
  slot: "decrement",
5746
- isDisabled: te,
5746
+ isDisabled: k,
5747
5747
  variant: l,
5748
5748
  excludeFromTabOrder: !0,
5749
- children: A
5750
- }), r[38] = s.isDisabled, r[39] = A, r[40] = l, r[41] = j) : j = r[41];
5751
- let M;
5752
- r[42] !== O || r[43] !== j ? (M = /* @__PURE__ */ (0, z.jsxs)("div", {
5749
+ children: j
5750
+ }), r[38] = s.isDisabled, r[39] = j, r[40] = l, r[41] = M) : M = r[41];
5751
+ let N;
5752
+ r[42] !== O || r[43] !== M ? (N = /* @__PURE__ */ (0, z.jsxs)("div", {
5753
5753
  className: "flex flex-col border-s-2",
5754
5754
  children: [
5755
5755
  O,
5756
5756
  ee,
5757
- j
5757
+ M
5758
5758
  ]
5759
- }), r[42] = O, r[43] = j, r[44] = M) : M = r[44];
5760
- let N;
5761
- r[45] !== S || r[46] !== M || r[47] !== g ? (N = /* @__PURE__ */ (0, z.jsxs)("div", {
5759
+ }), r[42] = O, r[43] = M, r[44] = N) : N = r[44];
5760
+ let P;
5761
+ r[45] !== S || r[46] !== N || r[47] !== g ? (P = /* @__PURE__ */ (0, z.jsxs)("div", {
5762
5762
  className: g,
5763
- children: [S, M]
5764
- }), r[45] = S, r[46] = M, r[47] = g, r[48] = N) : N = r[48];
5765
- let re;
5766
- return r[49] !== s || r[50] !== N || r[51] !== f ? (re = /* @__PURE__ */ (0, z.jsx)(cu, {
5763
+ children: [S, N]
5764
+ }), r[45] = S, r[46] = N, r[47] = g, r[48] = P) : P = r[48];
5765
+ let F;
5766
+ return r[49] !== s || r[50] !== P || r[51] !== f ? (F = /* @__PURE__ */ (0, z.jsx)(cu, {
5767
5767
  ...s,
5768
5768
  formatOptions: f,
5769
- children: N
5770
- }), r[49] = s, r[50] = N, r[51] = f, r[52] = re) : re = r[52], re;
5769
+ children: P
5770
+ }), r[49] = s, r[50] = P, r[51] = f, r[52] = F) : F = r[52], F;
5771
5771
  });
5772
5772
  Su.displayName = "NumberField";
5773
5773
  var Cu = (e) => {
@@ -5897,7 +5897,7 @@ var ku = R.forwardRef((e, t) => {
5897
5897
  type: "change"
5898
5898
  }));
5899
5899
  },
5900
- children: /* @__PURE__ */ (0, z.jsx)(te, { className: "h-4 w-4 opacity-50 hover:opacity-90 cursor-pointer" })
5900
+ children: /* @__PURE__ */ (0, z.jsx)(k, { className: "h-4 w-4 opacity-50 hover:opacity-90 cursor-pointer" })
5901
5901
  }), r[15] = u, r[16] = f, r[17] = a, r[18] = g) : g = r[18];
5902
5902
  let _;
5903
5903
  return r[19] !== l || r[20] !== p || r[21] !== h || r[22] !== g ? (_ = /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -5919,7 +5919,7 @@ var Au = R.forwardRef((e, t) => {
5919
5919
  defaultProp: o,
5920
5920
  onChange: i
5921
5921
  }, n[4] = o, n[5] = i, n[6] = a.value, n[7] = c) : c = n[7];
5922
- let [l, u] = ae(c), d, f;
5922
+ let [l, u] = _e(c), d, f;
5923
5923
  n[8] === l ? (d = n[9], f = n[10]) : (d = () => {
5924
5924
  s(l || "");
5925
5925
  }, f = [l], n[8] = l, n[9] = d, n[10] = f), R.useEffect(d, f);
@@ -5943,7 +5943,7 @@ var Au = R.forwardRef((e, t) => {
5943
5943
  Au.displayName = "OnBlurredInput";
5944
5944
  //#endregion
5945
5945
  //#region src/components/ui/dropdown-menu.tsx
5946
- var ju = Cn, Mu = Tn, Nu = kn, Pu = le(En), Fu = pe(On), Iu = pe(Rn), Lu = In, Ru = R.forwardRef((e, t) => {
5946
+ var ju = Cn, Mu = Tn, Nu = kn, Pu = F(En), Fu = fe(On), Iu = fe(Rn), Lu = In, Ru = R.forwardRef((e, t) => {
5947
5947
  let n = (0, X.c)(17), r, i, a, o, s;
5948
5948
  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);
5949
5949
  let c = s === void 0 || s, l;
@@ -5980,13 +5980,13 @@ var Bu = R.forwardRef((e, t) => {
5980
5980
  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);
5981
5981
  let c = o === void 0 || o, l = s === void 0 ? 4 : s, u;
5982
5982
  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];
5983
- let d = c ? `calc(var(--radix-dropdown-menu-content-available-height) - ${fe}px)` : void 0, f;
5983
+ let d = c ? `calc(var(--radix-dropdown-menu-content-available-height) - ${ue}px)` : void 0, f;
5984
5984
  r[8] !== a.style || r[9] !== d ? (f = {
5985
5985
  ...a.style,
5986
5986
  maxHeight: d
5987
5987
  }, r[8] = a.style, r[9] = d, r[10] = f) : f = r[10];
5988
5988
  let p;
5989
- return r[11] !== a || r[12] !== t || r[13] !== l || r[14] !== u || r[15] !== f ? (p = /* @__PURE__ */ (0, z.jsx)(Pu, { children: /* @__PURE__ */ (0, z.jsx)(L, { children: /* @__PURE__ */ (0, z.jsx)(Fu, {
5989
+ return r[11] !== a || r[12] !== t || r[13] !== l || r[14] !== u || r[15] !== f ? (p = /* @__PURE__ */ (0, z.jsx)(Pu, { children: /* @__PURE__ */ (0, z.jsx)(re, { children: /* @__PURE__ */ (0, z.jsx)(Fu, {
5990
5990
  ref: t,
5991
5991
  sideOffset: l,
5992
5992
  className: u,