@marimo-team/islands 0.22.1-dev3 → 0.22.1-dev31

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 (325) hide show
  1. package/dist/{ConnectedDataExplorerComponent-Dl1grr8z.js → ConnectedDataExplorerComponent-DTOsfq2x.js} +54 -54
  2. package/dist/_basePickBy-Sow3pJjS.js +41 -0
  3. package/dist/{_baseUniq-B4eL5sTC.js → _baseUniq-C87CckHL.js} +15 -54
  4. package/dist/{any-language-editor-CT_9yBde.js → any-language-editor-BHH_pQ6M.js} +21 -21
  5. package/dist/architecture-7HQA4BMR-BHdkAMvZ.js +6 -0
  6. package/dist/{architectureDiagram-VXUJARFQ-vxgYGIMP.js → architectureDiagram-VXUJARFQ-B3YQo9At.js} +15 -15
  7. package/dist/{arrays-Du-jRBAy.js → arrays-beUWo8RF.js} +1 -1
  8. package/dist/assets/__vite-browser-external-WSlCcXn_.js +1 -0
  9. package/dist/assets/{worker-D10K3OOz.js → worker-DUYMdbtA.js} +2 -2
  10. package/dist/{blockDiagram-VD42YOAC-C7x6YTH7.js → blockDiagram-VD42YOAC-CpQ3TKEN.js} +7 -7
  11. package/dist/{button-qsiIHncQ.js → button-DNlNlZY_.js} +82 -84
  12. package/dist/{c4Diagram-YG6GDRKO-Cx4oseGg.js → c4Diagram-YG6GDRKO-CZSU4uqU.js} +4 -4
  13. package/dist/{capabilities-26mwv03y.js → capabilities-Coe9eM9T.js} +2 -2
  14. package/dist/{channel-C_50jIAn.js → channel-X3JKk8gE.js} +1 -1
  15. package/dist/{chat-ui-CtqUthFR.js → chat-ui-eH46RYWT.js} +147 -146
  16. package/dist/{check-D_YwHEgY.js → check-CWUkiHmb.js} +1 -1
  17. package/dist/{chunk-4F5CHEZ2-Dvo_CFnR.js → chunk-4F5CHEZ2-D5mClyDv.js} +1 -1
  18. package/dist/{chunk-ABZYJK2D-D5YIs71w.js → chunk-ABZYJK2D-CZYCCtLy.js} +1 -1
  19. package/dist/{chunk-ATLVNIR6-CyOjzOcf.js → chunk-ATLVNIR6-DaOzLLgN.js} +1 -1
  20. package/dist/{chunk-B2363JML-BzZqINRO.js → chunk-B2363JML-Br0eA2T3.js} +1 -1
  21. package/dist/{chunk-B4BG7PRW-ZJeV3KdD.js → chunk-B4BG7PRW-4BjV11Br.js} +4 -4
  22. package/dist/{chunk-DI55MBZ5-Dx_wwX6l.js → chunk-DI55MBZ5-DITY3EyP.js} +4 -4
  23. package/dist/{chunk-EXTU4WIE-CgefpSXQ.js → chunk-EXTU4WIE-jUPSAk3i.js} +1 -1
  24. package/dist/{chunk-FRFDVMJY-Derq8UzY.js → chunk-FRFDVMJY-DnEvEFRR.js} +1 -1
  25. package/dist/{chunk-JA3XYJ7Z-CcIOIFpc.js → chunk-JA3XYJ7Z-BcPEfxk_.js} +2 -2
  26. package/dist/{chunk-JZLCHNYA-CgO0GG1p.js → chunk-JZLCHNYA-2bnLL3xL.js} +4 -4
  27. package/dist/{chunk-N4CR4FBY-2qzGzAxT.js → chunk-N4CR4FBY-CpZSuGSU.js} +5 -5
  28. package/dist/{chunk-PL6DKKU2-KoG71Zin.js → chunk-PL6DKKU2-DnId6G-x.js} +1 -1
  29. package/dist/{chunk-QN33PNHL-Dp1qBo28.js → chunk-QN33PNHL-B9p5ojHB.js} +1 -1
  30. package/dist/{chunk-QXUST7PY-BxmmeIwf.js → chunk-QXUST7PY-Ch6F5Obl.js} +5 -5
  31. package/dist/{chunk-S3R3BYOJ-D3Rys9ZW.js → chunk-S3R3BYOJ-B0UOFJwq.js} +3 -3
  32. package/dist/{chunk-SJTYNZTY-Co-DhKAG.js → chunk-SJTYNZTY-BsBZnJUj.js} +1 -1
  33. package/dist/{chunk-TCCFYFTB-BAhzIqBO.js → chunk-TCCFYFTB-Clbl-fTg.js} +8 -7
  34. package/dist/{chunk-TQ3KTPDO-DxYI735Z.js → chunk-TQ3KTPDO-CFkSQ30e.js} +1 -1
  35. package/dist/{chunk-TZMSLE5B-Dxumt0wv.js → chunk-TZMSLE5B-D45397J2.js} +1 -1
  36. package/dist/{chunk-UMXZTB3W-CuahpKin.js → chunk-UMXZTB3W-D-A834Bq.js} +1 -1
  37. package/dist/{classDiagram-v2-WZHVMYZB-CYoFMQKE.js → classDiagram-2ON5EDUG-C8-zE3Zv.js} +10 -10
  38. package/dist/{classDiagram-2ON5EDUG-DkOvXRlx.js → classDiagram-v2-WZHVMYZB-DrmbGANl.js} +10 -10
  39. package/dist/{clone-DDndUqI0.js → clone-DZFQCtFJ.js} +1 -1
  40. package/dist/{constants-D1Am36hX.js → constants-CvyfaCvs.js} +3 -3
  41. package/dist/{copy-CBo9JcJW.js → copy-B7781WJ3.js} +2 -2
  42. package/dist/{dagre-6UL2VRFP-BXBaU8PB.js → dagre-6UL2VRFP-OMItEBnY.js} +12 -12
  43. package/dist/{dagre-D3dlYz-r.js → dagre-QVd-lCXU.js} +13 -23
  44. package/dist/{data-grid-overlay-editor-nZux6_d2.js → data-grid-overlay-editor-lKF301ME.js} +1 -1
  45. package/dist/{diagram-PSM6KHXK-CJxjk4LG.js → diagram-PSM6KHXK-CkKbohWI.js} +16 -16
  46. package/dist/{diagram-QEK2KX5R-IMILPh_p.js → diagram-QEK2KX5R-DjUMpVcx.js} +14 -14
  47. package/dist/{diagram-S2PKOQOG-6O0g6Boj.js → diagram-S2PKOQOG-b-c0d-wZ.js} +14 -14
  48. package/dist/{dist-BkXs8bw0.js → dist--6TSlp8H.js} +1 -1
  49. package/dist/dist-7K5doRvB.js +6 -0
  50. package/dist/{dist-CQidOwep.js → dist-B43sbpd0.js} +3 -3
  51. package/dist/dist-B6I_A2-E.js +8 -0
  52. package/dist/dist-BEQsmaZY.js +5 -0
  53. package/dist/dist-BasY2RHp.js +8 -0
  54. package/dist/{dist-BemtTYzN.js → dist-Bfp1XXWt.js} +5 -5
  55. package/dist/{dist-v-1kgqZ3.js → dist-BjDuO5JW.js} +1 -1
  56. package/dist/dist-Bosc00dY.js +5 -0
  57. package/dist/{dist-DLNKBPsk.js → dist-BrxqmS9Q.js} +4 -4
  58. package/dist/{dist-DBYL08Lu.js → dist-BvhGByxL.js} +4 -4
  59. package/dist/{dist-CVqlhD3M.js → dist-C4bq5Ioy.js} +2 -2
  60. package/dist/{dist-DwmxBUOe.js → dist-CFKdzOIu.js} +2 -2
  61. package/dist/{dist-5nTQE2yt.js → dist-CIB8w0Fl.js} +2 -2
  62. package/dist/{dist-C-EcLtO9.js → dist-CNF0QBLR.js} +1 -1
  63. package/dist/dist-CQMZOn-_.js +8 -0
  64. package/dist/dist-CViQhWZ8.js +5 -0
  65. package/dist/{dist-Dg65j0em.js → dist-CcMfr7jD.js} +1 -1
  66. package/dist/{dist-C0XYIHKJ.js → dist-Ci0CXEFt.js} +1 -1
  67. package/dist/dist-Cz6rLfwY.js +5 -0
  68. package/dist/dist-D8eq8st3.js +6 -0
  69. package/dist/{dist-qoCY8giM.js → dist-DAfcmt-d.js} +2 -2
  70. package/dist/{dist-B6Op2ogv.js → dist-DD_cYHOl.js} +2 -2
  71. package/dist/{dist-BUSLKXcu.js → dist-DFK94vuS.js} +2 -2
  72. package/dist/{dist-DBXPlQ0D.js → dist-DGNtjMZu.js} +1 -1
  73. package/dist/{dist-C9qF7MRB.js → dist-DJ9F1eHs.js} +2 -2
  74. package/dist/{dist-Ci_jEudG.js → dist-DJKubHDd.js} +1 -1
  75. package/dist/{dist-CnFp2Kcl.js → dist-DLafRu9s.js} +2 -2
  76. package/dist/dist-DM1UDXdl.js +5 -0
  77. package/dist/dist-DNrtWPgS.js +5 -0
  78. package/dist/dist-D_UjpfOY.js +1381 -0
  79. package/dist/{dist-DmFS6KZW.js → dist-DbnBiLNH.js} +3 -3
  80. package/dist/{dist-BiZZAo22.js → dist-DlSUOIm9.js} +1 -1
  81. package/dist/{dist-DStU8He1.js → dist-Doy0mQDg.js} +2 -2
  82. package/dist/{dist-CxAX99oC.js → dist-DpkJHKB8.js} +2 -2
  83. package/dist/{dist-DjaZNkZ7.js → dist-LhQNUe5A.js} +3 -3
  84. package/dist/dist-V7q2qnpA.js +5 -0
  85. package/dist/{dist-BJ3fhRYu.js → dist-VqF3W_ue.js} +2 -2
  86. package/dist/dist-a5_hPgu2.js +8 -0
  87. package/dist/{dist-B9KLrfoh.js → dist-ej6AQKaS.js} +1 -1
  88. package/dist/{dist-Brb6VNc4.js → dist-m9tsXsFf.js} +2 -2
  89. package/dist/{dist-CBwMSFDu.js → dist-tGk0aZ--.js} +2 -2
  90. package/dist/dist-uVyZcV1-.js +5 -0
  91. package/dist/{erDiagram-Q2GNP2WA-sho7Cl9f.js → erDiagram-Q2GNP2WA-CDhLaOZ1.js} +10 -10
  92. package/dist/{error-banner-Bx9kIgrs.js → error-banner-Cjf0RU9I.js} +79 -79
  93. package/dist/{esm-CMg2ABu6.js → esm-4wmsH2lp.js} +6 -6
  94. package/dist/{esm-cqK9POGH.js → esm-CD1iby2n.js} +23 -23
  95. package/dist/{flowDiagram-NV44I4VS-C4nY4Fbz.js → flowDiagram-NV44I4VS-BDi4O4CL.js} +10 -10
  96. package/dist/{ganttDiagram-JELNMOA3-CtxNcCM2.js → ganttDiagram-JELNMOA3-BpZE6kVp.js} +3 -3
  97. package/dist/{gitGraph-G5XIXVHT-SL6TDof6.js → gitGraph-G5XIXVHT-B_c6xFJv.js} +3 -3
  98. package/dist/{gitGraphDiagram-V2S2FVAM-D9885mxd.js → gitGraphDiagram-V2S2FVAM-iQnXzbPM.js} +13 -13
  99. package/dist/{glide-data-editor-CkVEV-Gk.js → glide-data-editor-VgPtWvhu.js} +63 -63
  100. package/dist/{graphlib-CxWdvYQt.js → graphlib-BV1_gi0C.js} +4 -3
  101. package/dist/hasIn-DnfJcYpY.js +108 -0
  102. package/dist/{info-VBDWY6EO-6MXPTSmi.js → info-VBDWY6EO-BTyzxmhr.js} +3 -3
  103. package/dist/{infoDiagram-HS3SLOUP-Bw2FlRwF.js → infoDiagram-HS3SLOUP-OYrX6uO3.js} +13 -13
  104. package/dist/{input-BSde8uV4.js → input-CFY9gApZ.js} +5055 -5055
  105. package/dist/{isEmpty-BQtUinxJ.js → isEmpty-B7FX9wKt.js} +1 -1
  106. package/dist/{isSymbol-DFp8040B.js → isSymbol-DCbjQG_U.js} +1 -1
  107. package/dist/{journeyDiagram-XKPGCS4Q-BXlCEth8.js → journeyDiagram-XKPGCS4Q-ClPC94aN.js} +3 -3
  108. package/dist/{kanban-definition-3W4ZIXB7-CorxzSYm.js → kanban-definition-3W4ZIXB7-DHEAKdZt.js} +7 -7
  109. package/dist/{label-DTNqw9tv.js → label-DbZGAoCH.js} +538 -569
  110. package/dist/{loader-3c9hT4kT.js → loader-Bd1kgLn7.js} +19 -16
  111. package/dist/main.js +2602 -2594
  112. package/dist/{memoize-CuHciEBb.js → memoize-CSTI9eOX.js} +1 -1
  113. package/dist/{merge-CA_buyY3.js → merge-CVhG7q_o.js} +1 -1
  114. package/dist/{mermaid-CEKslOkI.js → mermaid-B2HDLx2g.js} +54 -54
  115. package/dist/{mermaid-parser.core-cq4YDee-.js → mermaid-parser.core-ntCgyx0x.js} +8 -8
  116. package/dist/min-Ds3gG0Ff.js +96 -0
  117. package/dist/{mindmap-definition-VGOIOE7T-DRsT8UaN.js → mindmap-definition-VGOIOE7T-CxEUZZvY.js} +9 -9
  118. package/dist/{now-CXAdKY5k.js → now-nrrrOr01.js} +1 -1
  119. package/dist/{once-CZno0h-b.js → once-C_TIu-kR.js} +1 -1
  120. package/dist/{packet-DYOGHKS2-Dw08gMaZ.js → packet-DYOGHKS2-BhvnpoGi.js} +3 -3
  121. package/dist/{pie-VRWISCQL-C5SPSvT8.js → pie-VRWISCQL-dILuA3iG.js} +3 -3
  122. package/dist/{pieDiagram-ADFJNKIX-DhJ1Cx2O.js → pieDiagram-ADFJNKIX-U3LrUqAS.js} +14 -14
  123. package/dist/{process-output-KyzWazB-.js → process-output-BbUNe4iH.js} +3181 -3204
  124. package/dist/{quadrantDiagram-AYHSOK5B-DXUFIWlz.js → quadrantDiagram-AYHSOK5B-BVWuq-3R.js} +2 -2
  125. package/dist/{radar-ZZBFDIW7-BvY0bgSg.js → radar-ZZBFDIW7-DwFrOJDj.js} +3 -3
  126. package/dist/range-fJeId9Ri.js +30 -0
  127. package/dist/{requirementDiagram-UZGBJVZJ-DO_gtQIb.js → requirementDiagram-UZGBJVZJ-D0zpQnKC.js} +9 -9
  128. package/dist/{sankeyDiagram-TZEHDZUN-OZzXEkuG.js → sankeyDiagram-TZEHDZUN-CExy1joT.js} +2 -2
  129. package/dist/{sequenceDiagram-WL72ISMW-K7nZRifV.js → sequenceDiagram-WL72ISMW-D1BJxLjH.js} +4 -4
  130. package/dist/{slides-component-CIcSvFh7.js → slides-component-CX2JC-Ws.js} +2 -2
  131. package/dist/{spec-DYaR1rJh.js → spec-CiHus5Bb.js} +3 -3
  132. package/dist/{stateDiagram-FKZM4ZOC-DzXJZAq7.js → stateDiagram-FKZM4ZOC-B1S8jGMn.js} +12 -12
  133. package/dist/{stateDiagram-v2-4FDKWEC3-BZBPUmyF.js → stateDiagram-v2-4FDKWEC3-BH5ozUbc.js} +10 -10
  134. package/dist/stex-CQDv3aS8.js +4 -0
  135. package/dist/style.css +1 -1
  136. package/dist/{timeline-definition-IT6M3QCI-DNoLAh-i.js → timeline-definition-IT6M3QCI-BDT9JAmn.js} +2 -2
  137. package/dist/{toDate-D6VXexnV.js → toDate-BzYZtEK7.js} +4 -4
  138. package/dist/{toNumber-xFPoy1OI.js → toNumber-55tjPCWr.js} +2 -2
  139. package/dist/tooltip-BXEpXV3R.js +404 -0
  140. package/dist/{treemap-GDKQZRPO-C5OoxpmV.js → treemap-GDKQZRPO-bx2ngsgN.js} +3 -3
  141. package/dist/{types-CQ-RbYxp.js → types-D_ntCXg0.js} +3 -3
  142. package/dist/{useAsyncData-Cd4Urlww.js → useAsyncData-rN1nzPaS.js} +2 -2
  143. package/dist/{useDeepCompareMemoize-X7clcrcQ.js → useDeepCompareMemoize-iM1YNTEF.js} +4 -4
  144. package/dist/{useIframeCapabilities-BVQrlRBd.js → useIframeCapabilities-CqhrVue6.js} +1 -1
  145. package/dist/{useLifecycle-Dids8BPm.js → useLifecycle-DgDTfOLZ.js} +9 -9
  146. package/dist/{useTheme-Dm1WaAGy.js → useTheme-MWfxn4oz.js} +4 -5
  147. package/dist/{vega-component-A6unyUJS.js → vega-component-CkpTXaRx.js} +23 -23
  148. package/dist/{xychartDiagram-PRI3JC2R-ehVeySMW.js → xychartDiagram-PRI3JC2R-CuAZiqHS.js} +5 -5
  149. package/dist/{Combination-B--d1_LV.js → zod-C6UGQ3fz.js} +8085 -8151
  150. package/package.json +8 -41
  151. package/src/__tests__/branded.ts +6 -0
  152. package/src/__tests__/main.test.tsx +12 -14
  153. package/src/components/ai/ai-provider-icon.tsx +3 -2
  154. package/src/components/app-config/user-config-form.tsx +0 -27
  155. package/src/components/chat/acp/agent-docs.tsx +3 -3
  156. package/src/components/chat/acp/agent-panel.tsx +69 -22
  157. package/src/components/chat/acp/agent-selector.tsx +2 -11
  158. package/src/components/chat/acp/state.ts +14 -2
  159. package/src/components/chat/chat-panel.tsx +2 -1
  160. package/src/components/data-table/TableBottomBar.tsx +12 -1
  161. package/src/components/data-table/TableTopBar.tsx +31 -35
  162. package/src/components/data-table/cell-selection/types.ts +3 -2
  163. package/src/components/data-table/charts/charts.tsx +42 -13
  164. package/src/components/data-table/charts/components/chart-items.tsx +1 -1
  165. package/src/components/data-table/column-explorer-panel/column-explorer.tsx +1 -1
  166. package/src/components/data-table/column-formatting/types.ts +3 -2
  167. package/src/components/data-table/column-header.tsx +4 -2
  168. package/src/components/data-table/column-wrapping/types.ts +3 -2
  169. package/src/components/data-table/columns.tsx +4 -1
  170. package/src/components/data-table/copy-column/types.ts +3 -2
  171. package/src/components/data-table/data-table.tsx +6 -1
  172. package/src/components/data-table/focus-row/types.ts +3 -2
  173. package/src/components/data-table/loading-table.tsx +4 -1
  174. package/src/components/data-table/range-focus/__tests__/atoms.test.ts +11 -11
  175. package/src/components/data-table/range-focus/__tests__/use-cell-range-selection.test.ts +9 -11
  176. package/src/components/data-table/range-focus/cell-selection-stats.tsx +3 -1
  177. package/src/components/data-table/row-viewer-panel/row-viewer.tsx +1 -1
  178. package/src/components/data-table/table-explorer-panel/table-explorer-panel.tsx +2 -2
  179. package/src/components/editor/__tests__/data-attributes.test.tsx +93 -94
  180. package/src/components/editor/actions/name-cell-input.tsx +4 -2
  181. package/src/components/editor/actions/useCellActionButton.tsx +4 -2
  182. package/src/components/editor/ai/add-cell-with-ai.tsx +2 -1
  183. package/src/components/editor/cell/CellStatus.tsx +4 -5
  184. package/src/components/editor/cell/cell-context-menu.tsx +4 -2
  185. package/src/components/editor/cell/code/cell-editor.tsx +2 -1
  186. package/src/components/editor/cell/toolbar.tsx +2 -1
  187. package/src/components/editor/chrome/components/contribute-snippet-button.tsx +4 -1
  188. package/src/components/editor/chrome/components/feedback-button.tsx +4 -1
  189. package/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx +1 -1
  190. package/src/components/editor/chrome/panels/file-explorer-panel.tsx +0 -10
  191. package/src/components/editor/chrome/wrapper/app-chrome.tsx +4 -1
  192. package/src/components/editor/chrome/wrapper/footer-items/lsp-status.tsx +2 -1
  193. package/src/components/editor/header/filename-input.tsx +4 -1
  194. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +11 -12
  195. package/src/components/storage/__tests__/storage-snippets.test.ts +4 -6
  196. package/src/components/tracing/tracing.test.tsx +30 -30
  197. package/src/components/ui/accordion.tsx +1 -1
  198. package/src/components/ui/alert-dialog.tsx +1 -1
  199. package/src/components/ui/badge.tsx +2 -1
  200. package/src/components/ui/button.tsx +4 -3
  201. package/src/components/ui/calendar.tsx +3 -2
  202. package/src/components/ui/checkbox.tsx +1 -1
  203. package/src/components/ui/combobox.tsx +2 -1
  204. package/src/components/ui/command.tsx +4 -1
  205. package/src/components/ui/context-menu.tsx +1 -1
  206. package/src/components/ui/date-input.tsx +7 -6
  207. package/src/components/ui/date-picker.tsx +6 -4
  208. package/src/components/ui/dialog.tsx +1 -1
  209. package/src/components/ui/draggable-popover.tsx +1 -1
  210. package/src/components/ui/dropdown-menu.tsx +2 -1
  211. package/src/components/ui/field.tsx +1 -2
  212. package/src/components/ui/form.tsx +4 -5
  213. package/src/components/ui/fullscreen.tsx +4 -1
  214. package/src/components/ui/label.tsx +1 -1
  215. package/src/components/ui/navigation.tsx +1 -1
  216. package/src/components/ui/popover.tsx +1 -1
  217. package/src/components/ui/progress.tsx +4 -3
  218. package/src/components/ui/query-param-preserving-link.tsx +4 -2
  219. package/src/components/ui/radio-group.tsx +1 -1
  220. package/src/components/ui/range-slider.tsx +1 -1
  221. package/src/components/ui/scroll-area.tsx +1 -1
  222. package/src/components/ui/select.tsx +1 -1
  223. package/src/components/ui/sheet.tsx +3 -2
  224. package/src/components/ui/slider.tsx +1 -1
  225. package/src/components/ui/switch.tsx +1 -1
  226. package/src/components/ui/tabs.tsx +1 -1
  227. package/src/components/ui/textarea.tsx +1 -2
  228. package/src/components/ui/toast.tsx +1 -1
  229. package/src/components/ui/toggle.tsx +1 -1
  230. package/src/components/ui/tooltip.tsx +1 -1
  231. package/src/core/ai/context/providers/cell-output.ts +1 -2
  232. package/src/core/ai/tools/edit-notebook-tool.ts +4 -3
  233. package/src/core/ai/tools/run-cells-tool.ts +4 -3
  234. package/src/core/cells/__tests__/add-missing-import.test.ts +23 -22
  235. package/src/core/cells/__tests__/apply-transaction.test.ts +12 -11
  236. package/src/core/cells/__tests__/cell.test.ts +14 -13
  237. package/src/core/cells/document-changes.ts +9 -9
  238. package/src/core/cells/logs.ts +1 -1
  239. package/src/core/codemirror/cells/__tests__/extensions.test.ts +15 -17
  240. package/src/core/codemirror/copilot/__tests__/transport.test.ts +128 -2
  241. package/src/core/codemirror/copilot/client.ts +9 -2
  242. package/src/core/codemirror/copilot/language-server.ts +11 -0
  243. package/src/core/codemirror/copilot/transport.ts +33 -8
  244. package/src/core/codemirror/language/languages/markdown.ts +1 -3
  245. package/src/core/codemirror/language/languages/python.ts +4 -0
  246. package/src/core/codemirror/language/languages/sql/completion-sources.tsx +4 -6
  247. package/src/core/codemirror/language/languages/sql/sql.ts +1 -3
  248. package/src/core/codemirror/language/panel/sql.tsx +4 -1
  249. package/src/core/codemirror/reactive-references/__tests__/analyzer.test.ts +28 -42
  250. package/src/core/config/__tests__/config-schema.test.ts +2 -6
  251. package/src/core/config/config-schema.ts +0 -1
  252. package/src/core/config/feature-flag.tsx +0 -2
  253. package/src/core/datasets/data-source-connections.ts +4 -2
  254. package/src/core/dom/__tests__/htmlUtils.test.ts +8 -14
  255. package/src/core/dom/__tests__/outline.test.ts +2 -3
  256. package/src/core/edit-app.tsx +4 -1
  257. package/src/core/islands/__tests__/bridge.test.ts +20 -10
  258. package/src/core/islands/__tests__/parse.test.ts +8 -7
  259. package/src/core/network/__tests__/requests-lazy.test.ts +30 -14
  260. package/src/core/saving/__tests__/filename.test.ts +7 -6
  261. package/src/core/static/__tests__/download-html.test.ts +16 -15
  262. package/src/core/static/__tests__/files.test.ts +30 -28
  263. package/src/core/websocket/useMarimoKernelConnection.tsx +5 -11
  264. package/src/core/websocket/useWebSocket.tsx +3 -1
  265. package/src/css/app/Cell.css +25 -1
  266. package/src/css/globals.css +40 -14
  267. package/src/css/table.css +17 -0
  268. package/src/plugins/core/BadPlugin.tsx +7 -6
  269. package/src/plugins/impl/CheckboxPlugin.tsx +4 -1
  270. package/src/plugins/impl/DataEditorPlugin.tsx +8 -3
  271. package/src/plugins/impl/DataTablePlugin.tsx +5 -1
  272. package/src/plugins/impl/FormPlugin.tsx +1 -2
  273. package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +4 -1
  274. package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +43 -15
  275. package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +2 -11
  276. package/src/plugins/impl/chat/chat-ui.tsx +4 -1
  277. package/src/plugins/impl/data-frames/forms/__tests__/form.test.tsx +7 -9
  278. package/src/plugins/impl/plotly/PlotlyPlugin.tsx +12 -68
  279. package/src/plugins/impl/plotly/__tests__/selection.test.ts +237 -0
  280. package/src/plugins/impl/plotly/selection.ts +115 -0
  281. package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +13 -14
  282. package/src/plugins/impl/vega/__tests__/utils.test.ts +68 -0
  283. package/src/plugins/impl/vega/utils.ts +14 -5
  284. package/src/plugins/impl/vega/vega.css +2 -1
  285. package/src/plugins/layout/ImageComparisonPlugin.tsx +1 -3
  286. package/src/plugins/stateless-plugin.ts +4 -2
  287. package/src/utils/__tests__/cell-urls.test.ts +24 -21
  288. package/src/utils/__tests__/filenames.test.ts +15 -14
  289. package/src/utils/__tests__/json-parser.test.ts +14 -21
  290. package/src/utils/__tests__/path.test.ts +34 -31
  291. package/src/utils/__tests__/urls.test.ts +19 -18
  292. package/src/utils/json/base64.ts +2 -5
  293. package/src/utils/time.ts +4 -2
  294. package/src/utils/tracer.ts +1 -0
  295. package/src/utils/typed.ts +2 -2
  296. package/dist/_basePickBy-QjOmBDRE.js +0 -110
  297. package/dist/_baseSet-xgn1IbGV.js +0 -27
  298. package/dist/architecture-7HQA4BMR-BRyVh_Za.js +0 -6
  299. package/dist/assets/__vite-browser-external-Us1ds95c.js +0 -1
  300. package/dist/dist-B0R_ZM4-.js +0 -6
  301. package/dist/dist-B4a9_9pj.js +0 -5
  302. package/dist/dist-BCSUKEwO.js +0 -5
  303. package/dist/dist-BONIDQq6.js +0 -5
  304. package/dist/dist-BYeRx2hb.js +0 -5
  305. package/dist/dist-D2Rk1j4R.js +0 -1381
  306. package/dist/dist-DZjX5TYv.js +0 -5
  307. package/dist/dist-Dkw9x6kc.js +0 -5
  308. package/dist/dist-Ds6UaXGR.js +0 -6
  309. package/dist/dist-KuEJ1Q53.js +0 -8
  310. package/dist/dist-S72WNyTZ.js +0 -5
  311. package/dist/dist-bTG-yssT.js +0 -5
  312. package/dist/dist-diF0sguc.js +0 -8
  313. package/dist/dist-mJ84BIgu.js +0 -8
  314. package/dist/dist-wSIhFWQz.js +0 -8
  315. package/dist/get-CqrzlV1v.js +0 -68
  316. package/dist/range-CYz5jI--.js +0 -17
  317. package/dist/stex-CZyTRGVB.js +0 -4
  318. package/dist/tooltip-DGHTbHl5.js +0 -404
  319. /package/dist/{dist-KZI_BHqV.js → dist-CxZvoNao.js} +0 -0
  320. /package/dist/{invariant-D4hPsZFI.js → invariant-e8eBgdux.js} +0 -0
  321. /package/dist/{isArrayLikeObject-C-hFPChh.js → isArrayLikeObject-LXbTYiBa.js} +0 -0
  322. /package/dist/{main-CvkAPtaq.js → main-XimWhSi_.js} +0 -0
  323. /package/dist/{purify.es-ukiMXY-F.js → purify.es-hTCfRGdl.js} +0 -0
  324. /package/dist/{react-dom-BKwCWYPW.js → react-dom-BSUuJjCR.js} +0 -0
  325. /package/dist/{stex-Ze8D4R_5.js → stex-D887Ylhf.js} +0 -0
@@ -1,13 +1,13 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-Bs6Z0kvn.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { a as Content, i as Arrow, l as createLucideIcon, n as VISUALLY_HIDDEN_STYLES, o as Root2$1, r as Anchor, s as createPopperScope } from "./dist-D2Rk1j4R.js";
5
- import { t as Check } from "./check-D_YwHEgY.js";
6
- import { a as cva, h as Logger, i as createSlot, m as Events, p as useComposedRefs, v as cn } from "./button-qsiIHncQ.js";
7
- import { _t as createContextScope, at as useControllableState, ct as useId, dt as useCallbackRef, ft as Primitive$1, i as useFocusGuards, it as StyleNamespace, lt as useLayoutEffect2, mt as createSlot$1, n as hideOthers, nt as withSmartCollisionBoundary, r as FocusScope, st as Portal, t as Combination_default, tt as withFullScreenAsRoot, ut as DismissableLayer, vt as composeEventHandlers } from "./Combination-B--d1_LV.js";
4
+ import { a as createPopperScope, c as VISUALLY_HIDDEN_STYLES, i as Root2$1, l as createLucideIcon, n as Arrow, r as Content, t as Anchor } from "./dist-D_UjpfOY.js";
5
+ import { t as Check } from "./check-CWUkiHmb.js";
6
+ import { d as createSlot, g as Logger, h as Events, m as useComposedRefs, r as cva, y as cn } from "./button-DNlNlZY_.js";
7
+ import { t as require_react_dom } from "./react-dom-BSUuJjCR.js";
8
8
  import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
9
- import { t as require_react_dom } from "./react-dom-BKwCWYPW.js";
10
- import { t as invariant } from "./invariant-D4hPsZFI.js";
9
+ import { $ as StyleNamespace, X as withFullScreenAsRoot, Z as withSmartCollisionBoundary, at as FocusScope, ct as useId, dt as useLayoutEffect2, et as hideOthers, ft as composeEventHandlers, ht as Primitive, it as Portal, mt as createContextScope, ot as DismissableLayer, rt as useFocusGuards, st as useCallbackRef, tt as Combination_default, ut as useControllableState } from "./zod-C6UGQ3fz.js";
10
+ import { t as invariant } from "./invariant-e8eBgdux.js";
11
11
  var ChevronDown = createLucideIcon("chevron-down", [["path", {
12
12
  d: "m6 9 6 6 6-6",
13
13
  key: "qrunsl"
@@ -20,264 +20,7 @@ var ChevronDown = createLucideIcon("chevron-down", [["path", {
20
20
  }], ["path", {
21
21
  d: "m6 6 12 12",
22
22
  key: "d8bk6v"
23
- }]]), import_react = /* @__PURE__ */ __toESM(require_react(), 1), $b5e257d569688ac6$var$defaultContext = {
24
- prefix: String(Math.round(Math.random() * 1e10)),
25
- current: 0
26
- }, $b5e257d569688ac6$var$SSRContext = /* @__PURE__ */ import_react.createContext($b5e257d569688ac6$var$defaultContext), $b5e257d569688ac6$var$IsSSRContext = /* @__PURE__ */ import_react.createContext(false);
27
- typeof window < "u" && window.document && window.document.createElement;
28
- var $b5e257d569688ac6$var$componentIds = /* @__PURE__ */ new WeakMap();
29
- function $b5e257d569688ac6$var$useCounter(e = false) {
30
- var _a, _b;
31
- let i = (0, import_react.useContext)($b5e257d569688ac6$var$SSRContext), a = (0, import_react.useRef)(null);
32
- if (a.current === null && !e) {
33
- let e2 = (_b = (_a = import_react.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) == null ? void 0 : _a.ReactCurrentOwner) == null ? void 0 : _b.current;
34
- if (e2) {
35
- let a2 = $b5e257d569688ac6$var$componentIds.get(e2);
36
- a2 == null ? $b5e257d569688ac6$var$componentIds.set(e2, {
37
- id: i.current,
38
- state: e2.memoizedState
39
- }) : e2.memoizedState !== a2.state && (i.current = a2.id, $b5e257d569688ac6$var$componentIds.delete(e2));
40
- }
41
- a.current = ++i.current;
42
- }
43
- return a.current;
44
- }
45
- function $b5e257d569688ac6$var$useLegacySSRSafeId(e) {
46
- let i = (0, import_react.useContext)($b5e257d569688ac6$var$SSRContext), a = $b5e257d569688ac6$var$useCounter(!!e), o = `react-aria${i.prefix}`;
47
- return e || `${o}-${a}`;
48
- }
49
- function $b5e257d569688ac6$var$useModernSSRSafeId(e) {
50
- let i = import_react.useId(), [a] = (0, import_react.useState)($b5e257d569688ac6$export$535bd6ca7f90a273()), o = a ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
51
- return e || `${o}-${i}`;
52
- }
53
- var $b5e257d569688ac6$export$619500959fc48b26 = typeof import_react.useId == "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
54
- function $b5e257d569688ac6$var$getSnapshot() {
55
- return false;
56
- }
57
- function $b5e257d569688ac6$var$getServerSnapshot() {
58
- return true;
59
- }
60
- function $b5e257d569688ac6$var$subscribe(e) {
61
- return () => {
62
- };
63
- }
64
- function $b5e257d569688ac6$export$535bd6ca7f90a273() {
65
- return typeof import_react.useSyncExternalStore == "function" ? import_react.useSyncExternalStore($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot) : (0, import_react.useContext)($b5e257d569688ac6$var$IsSSRContext);
66
- }
67
- var $148a7a147e38ea7f$var$RTL_SCRIPTS = /* @__PURE__ */ new Set([
68
- "Arab",
69
- "Syrc",
70
- "Samr",
71
- "Mand",
72
- "Thaa",
73
- "Mend",
74
- "Nkoo",
75
- "Adlm",
76
- "Rohg",
77
- "Hebr"
78
- ]), $148a7a147e38ea7f$var$RTL_LANGS = /* @__PURE__ */ new Set([
79
- "ae",
80
- "ar",
81
- "arc",
82
- "bcc",
83
- "bqi",
84
- "ckb",
85
- "dv",
86
- "fa",
87
- "glk",
88
- "he",
89
- "ku",
90
- "mzn",
91
- "nqo",
92
- "pnb",
93
- "ps",
94
- "sd",
95
- "ug",
96
- "ur",
97
- "yi"
98
- ]);
99
- function $148a7a147e38ea7f$export$702d680b21cbd764(e) {
100
- if (Intl.Locale) {
101
- let i2 = new Intl.Locale(e).maximize(), a = typeof i2.getTextInfo == "function" ? i2.getTextInfo() : i2.textInfo;
102
- if (a) return a.direction === "rtl";
103
- if (i2.script) return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(i2.script);
104
- }
105
- let i = e.split("-")[0];
106
- return $148a7a147e38ea7f$var$RTL_LANGS.has(i);
107
- }
108
- var $1e5a04cdaf7d1af8$var$localeSymbol = /* @__PURE__ */ Symbol.for("react-aria.i18n.locale");
109
- function $1e5a04cdaf7d1af8$export$f09106e7c6677ec5() {
110
- let e = typeof window < "u" && window[$1e5a04cdaf7d1af8$var$localeSymbol] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
111
- try {
112
- Intl.DateTimeFormat.supportedLocalesOf([e]);
113
- } catch {
114
- e = "en-US";
115
- }
116
- return {
117
- locale: e,
118
- direction: $148a7a147e38ea7f$export$702d680b21cbd764(e) ? "rtl" : "ltr"
119
- };
120
- }
121
- var $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5(), $1e5a04cdaf7d1af8$var$listeners = /* @__PURE__ */ new Set();
122
- function $1e5a04cdaf7d1af8$var$updateLocale() {
123
- $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();
124
- for (let e of $1e5a04cdaf7d1af8$var$listeners) e($1e5a04cdaf7d1af8$var$currentLocale);
125
- }
126
- function $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a() {
127
- let e = $b5e257d569688ac6$export$535bd6ca7f90a273(), [i, a] = (0, import_react.useState)($1e5a04cdaf7d1af8$var$currentLocale);
128
- return (0, import_react.useEffect)(() => ($1e5a04cdaf7d1af8$var$listeners.size === 0 && window.addEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale), $1e5a04cdaf7d1af8$var$listeners.add(a), () => {
129
- $1e5a04cdaf7d1af8$var$listeners.delete(a), $1e5a04cdaf7d1af8$var$listeners.size === 0 && window.removeEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
130
- }), []), e ? {
131
- locale: typeof window < "u" && window[$1e5a04cdaf7d1af8$var$localeSymbol] || "en-US",
132
- direction: "ltr"
133
- } : i;
134
- }
135
- var $18f2051aff69b9bf$var$I18nContext = /* @__PURE__ */ import_react.createContext(null);
136
- function $18f2051aff69b9bf$var$I18nProviderWithLocale(e) {
137
- let { locale: i, children: a } = e, o = import_react.useMemo(() => ({
138
- locale: i,
139
- direction: $148a7a147e38ea7f$export$702d680b21cbd764(i) ? "rtl" : "ltr"
140
- }), [i]);
141
- return /* @__PURE__ */ import_react.createElement($18f2051aff69b9bf$var$I18nContext.Provider, { value: o }, a);
142
- }
143
- function $18f2051aff69b9bf$var$I18nProviderWithDefaultLocale(e) {
144
- let { children: i } = e, a = $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a();
145
- return /* @__PURE__ */ import_react.createElement($18f2051aff69b9bf$var$I18nContext.Provider, { value: a }, i);
146
- }
147
- function $18f2051aff69b9bf$export$a54013f0d02a8f82(e) {
148
- let { locale: i, children: a } = e;
149
- return i ? /* @__PURE__ */ import_react.createElement($18f2051aff69b9bf$var$I18nProviderWithLocale, {
150
- locale: i,
151
- children: a
152
- }) : /* @__PURE__ */ import_react.createElement($18f2051aff69b9bf$var$I18nProviderWithDefaultLocale, { children: a });
153
- }
154
- function $18f2051aff69b9bf$export$43bb16f9c6d9e3f7() {
155
- let e = $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a();
156
- return (0, import_react.useContext)($18f2051aff69b9bf$var$I18nContext) || e;
157
- }
158
- var $488c6ddbf4ef74c2$var$formatterCache = /* @__PURE__ */ new Map(), $488c6ddbf4ef74c2$var$supportsSignDisplay = false;
159
- try {
160
- $488c6ddbf4ef74c2$var$supportsSignDisplay = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
161
- } catch {
162
- }
163
- var $488c6ddbf4ef74c2$var$supportsUnit = false;
164
- try {
165
- $488c6ddbf4ef74c2$var$supportsUnit = new Intl.NumberFormat("de-DE", {
166
- style: "unit",
167
- unit: "degree"
168
- }).resolvedOptions().style === "unit";
169
- } catch {
170
- }
171
- var $488c6ddbf4ef74c2$var$UNITS = { degree: { narrow: {
172
- default: "\xB0",
173
- "ja-JP": " \u5EA6",
174
- "zh-TW": "\u5EA6",
175
- "sl-SI": " \xB0"
176
- } } }, $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 = class {
177
- format(e) {
178
- var _a;
179
- let i = "";
180
- if (i = !$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null ? $488c6ddbf4ef74c2$export$711b50b3c525e0f2(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), this.options.style === "unit" && !$488c6ddbf4ef74c2$var$supportsUnit) {
181
- let { unit: e2, unitDisplay: a = "short", locale: o } = this.resolvedOptions();
182
- if (!e2) return i;
183
- let s = (_a = $488c6ddbf4ef74c2$var$UNITS[e2]) == null ? void 0 : _a[a];
184
- i += s[o] || s.default;
185
- }
186
- return i;
187
- }
188
- formatToParts(e) {
189
- return this.numberFormatter.formatToParts(e);
190
- }
191
- formatRange(e, i) {
192
- if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(e, i);
193
- if (i < e) throw RangeError("End date must be >= start date");
194
- return `${this.format(e)} \u2013 ${this.format(i)}`;
195
- }
196
- formatRangeToParts(e, i) {
197
- if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(e, i);
198
- if (i < e) throw RangeError("End date must be >= start date");
199
- let a = this.numberFormatter.formatToParts(e), o = this.numberFormatter.formatToParts(i);
200
- return [
201
- ...a.map((e2) => ({
202
- ...e2,
203
- source: "startRange"
204
- })),
205
- {
206
- type: "literal",
207
- value: " \u2013 ",
208
- source: "shared"
209
- },
210
- ...o.map((e2) => ({
211
- ...e2,
212
- source: "endRange"
213
- }))
214
- ];
215
- }
216
- resolvedOptions() {
217
- let e = this.numberFormatter.resolvedOptions();
218
- return !$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null && (e = {
219
- ...e,
220
- signDisplay: this.options.signDisplay
221
- }), !$488c6ddbf4ef74c2$var$supportsUnit && this.options.style === "unit" && (e = {
222
- ...e,
223
- style: "unit",
224
- unit: this.options.unit,
225
- unitDisplay: this.options.unitDisplay
226
- }), e;
227
- }
228
- constructor(e, i = {}) {
229
- this.numberFormatter = $488c6ddbf4ef74c2$var$getCachedNumberFormatter(e, i), this.options = i;
230
- }
231
- };
232
- function $488c6ddbf4ef74c2$var$getCachedNumberFormatter(e, i = {}) {
233
- var _a;
234
- let { numberingSystem: a } = i;
235
- if (a && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${a}`), i.style === "unit" && !$488c6ddbf4ef74c2$var$supportsUnit) {
236
- let { unit: e2, unitDisplay: a2 = "short" } = i;
237
- if (!e2) throw Error('unit option must be provided with style: "unit"');
238
- if (!((_a = $488c6ddbf4ef74c2$var$UNITS[e2]) == null ? void 0 : _a[a2])) throw Error(`Unsupported unit ${e2} with unitDisplay = ${a2}`);
239
- i = {
240
- ...i,
241
- style: "decimal"
242
- };
243
- }
244
- let o = e + (i ? Object.entries(i).sort((e2, i2) => e2[0] < i2[0] ? -1 : 1).join() : "");
245
- if ($488c6ddbf4ef74c2$var$formatterCache.has(o)) return $488c6ddbf4ef74c2$var$formatterCache.get(o);
246
- let s = new Intl.NumberFormat(e, i);
247
- return $488c6ddbf4ef74c2$var$formatterCache.set(o, s), s;
248
- }
249
- function $488c6ddbf4ef74c2$export$711b50b3c525e0f2(e, i, a) {
250
- if (i === "auto") return e.format(a);
251
- if (i === "never") return e.format(Math.abs(a));
252
- {
253
- let o = false;
254
- if (i === "always" ? o = a > 0 || Object.is(a, 0) : i === "exceptZero" && (Object.is(a, -0) || Object.is(a, 0) ? a = Math.abs(a) : o = a > 0), o) {
255
- let i2 = e.format(-a), o2 = e.format(a), s = i2.replace(o2, "").replace(/\u200e|\u061C/, "");
256
- return [...s].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), i2.replace(o2, "!!!").replace(s, "+").replace("!!!", o2);
257
- } else return e.format(a);
258
- }
259
- }
260
- function $a916eb452884faea$export$b7a616150fdb9f44(e = {}) {
261
- let { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
262
- return (0, import_react.useMemo)(() => new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(i, e), [i, e]);
263
- }
264
- function assertNever(e) {
265
- invariant(false, `Unexpected object: ${e}`);
266
- }
267
- function logNever(e) {
268
- return Logger.warn(`Unexpected object: ${JSON.stringify(e)}`), e;
269
- }
270
- function usePrevious(e) {
271
- let i = import_react.useRef({
272
- value: e,
273
- previous: e
274
- });
275
- return import_react.useMemo(() => (i.current.value !== e && (i.current.previous = i.current.value, i.current.value = e), i.current.previous), [e]);
276
- }
277
- function clamp(e, [i, a]) {
278
- return Math.min(a, Math.max(i, e));
279
- }
280
- var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
23
+ }]]), import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
281
24
  function createCollection(e) {
282
25
  let i = e + "CollectionProvider", [a, o] = createContextScope(i), [s, c] = a(i, {
283
26
  collectionRef: { current: null },
@@ -292,7 +35,7 @@ function createCollection(e) {
292
35
  });
293
36
  };
294
37
  l.displayName = i;
295
- let u = e + "CollectionSlot", d = createSlot$1(u), f = import_react.forwardRef((e2, i2) => {
38
+ let u = e + "CollectionSlot", d = createSlot(u), f = import_react.forwardRef((e2, i2) => {
296
39
  let { scope: a2, children: o2 } = e2;
297
40
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(d, {
298
41
  ref: useComposedRefs(i2, c(u, a2).collectionRef),
@@ -300,24 +43,24 @@ function createCollection(e) {
300
43
  });
301
44
  });
302
45
  f.displayName = u;
303
- let p = e + "CollectionItemSlot", m = "data-radix-collection-item", h = createSlot$1(p), g = import_react.forwardRef((e2, i2) => {
46
+ let p = e + "CollectionItemSlot", h = "data-radix-collection-item", g = createSlot(p), v = import_react.forwardRef((e2, i2) => {
304
47
  let { scope: a2, children: o2, ...s2 } = e2, l2 = import_react.useRef(null), u2 = useComposedRefs(i2, l2), d2 = c(p, a2);
305
48
  return import_react.useEffect(() => (d2.itemMap.set(l2, {
306
49
  ref: l2,
307
50
  ...s2
308
- }), () => void d2.itemMap.delete(l2))), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(h, {
309
- [m]: "",
51
+ }), () => void d2.itemMap.delete(l2))), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(g, {
52
+ [h]: "",
310
53
  ref: u2,
311
54
  children: o2
312
55
  });
313
56
  });
314
- g.displayName = p;
315
- function _(i2) {
57
+ v.displayName = p;
58
+ function y(i2) {
316
59
  let a2 = c(e + "CollectionConsumer", i2);
317
60
  return import_react.useCallback(() => {
318
61
  let e2 = a2.collectionRef.current;
319
62
  if (!e2) return [];
320
- let i3 = Array.from(e2.querySelectorAll(`[${m}]`));
63
+ let i3 = Array.from(e2.querySelectorAll(`[${h}]`));
321
64
  return Array.from(a2.itemMap.values()).sort((e3, a3) => i3.indexOf(e3.ref.current) - i3.indexOf(a3.ref.current));
322
65
  }, [a2.collectionRef, a2.itemMap]);
323
66
  }
@@ -325,9 +68,9 @@ function createCollection(e) {
325
68
  {
326
69
  Provider: l,
327
70
  Slot: f,
328
- ItemSlot: g
71
+ ItemSlot: v
329
72
  },
330
- _,
73
+ y,
331
74
  o
332
75
  ];
333
76
  }
@@ -336,79 +79,99 @@ function useDirection(e) {
336
79
  let i = import_react.useContext(DirectionContext);
337
80
  return e || i || "ltr";
338
81
  }
339
- var import_react_dom$1 = /* @__PURE__ */ __toESM(require_react_dom(), 1), OPEN_KEYS = [
82
+ function usePrevious(e) {
83
+ let i = import_react.useRef({
84
+ value: e,
85
+ previous: e
86
+ });
87
+ return import_react.useMemo(() => (i.current.value !== e && (i.current.previous = i.current.value, i.current.value = e), i.current.previous), [e]);
88
+ }
89
+ var NAME = "Label", Label$2 = import_react.forwardRef((e, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.label, {
90
+ ...e,
91
+ ref: i,
92
+ onMouseDown: (i2) => {
93
+ var _a;
94
+ i2.target.closest("button, input, select, textarea") || ((_a = e.onMouseDown) == null ? void 0 : _a.call(e, i2), !i2.defaultPrevented && i2.detail > 1 && i2.preventDefault());
95
+ }
96
+ }));
97
+ Label$2.displayName = NAME;
98
+ var Root = Label$2;
99
+ function clamp(e, [i, a]) {
100
+ return Math.min(a, Math.max(i, e));
101
+ }
102
+ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1), OPEN_KEYS = [
340
103
  " ",
341
104
  "Enter",
342
105
  "ArrowUp",
343
106
  "ArrowDown"
344
107
  ], SELECTION_KEYS = [" ", "Enter"], SELECT_NAME = "Select", [Collection, useCollection, createCollectionScope] = createCollection(SELECT_NAME), [createSelectContext, createSelectScope] = createContextScope(SELECT_NAME, [createCollectionScope, createPopperScope]), usePopperScope = createPopperScope(), [SelectProvider, useSelectContext] = createSelectContext(SELECT_NAME), [SelectNativeOptionsProvider, useSelectNativeOptionsContext] = createSelectContext(SELECT_NAME), Select$1 = (e) => {
345
- let { __scopeSelect: i, children: a, open: o, defaultOpen: s, onOpenChange: c, value: l, defaultValue: d, onValueChange: f, dir: p, name: m, autoComplete: h, disabled: g, required: _, form: v } = e, y = usePopperScope(i), [b, C] = import_react.useState(null), [w, T] = import_react.useState(null), [E, D] = import_react.useState(false), O = useDirection(p), [k, A] = useControllableState({
108
+ let { __scopeSelect: i, children: a, open: o, defaultOpen: s, onOpenChange: l, value: u, defaultValue: d, onValueChange: f, dir: p, name: m, autoComplete: h, disabled: g, required: _, form: v } = e, y = usePopperScope(i), [b, x] = import_react.useState(null), [S, C] = import_react.useState(null), [w, T] = import_react.useState(false), D = useDirection(p), [O, k] = useControllableState({
346
109
  prop: o,
347
110
  defaultProp: s ?? false,
348
- onChange: c,
111
+ onChange: l,
349
112
  caller: SELECT_NAME
350
- }), [j, M] = useControllableState({
351
- prop: l,
113
+ }), [A, j] = useControllableState({
114
+ prop: u,
352
115
  defaultProp: d,
353
116
  onChange: f,
354
117
  caller: SELECT_NAME
355
- }), N = import_react.useRef(null), P = b ? v || !!b.closest("form") : true, [F, I] = import_react.useState(/* @__PURE__ */ new Set()), L = Array.from(F).map((e2) => e2.props.value).join(";");
118
+ }), M = import_react.useRef(null), N = b ? v || !!b.closest("form") : true, [P, F] = import_react.useState(/* @__PURE__ */ new Set()), I = Array.from(P).map((e2) => e2.props.value).join(";");
356
119
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root2$1, {
357
120
  ...y,
358
121
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectProvider, {
359
122
  required: _,
360
123
  scope: i,
361
124
  trigger: b,
362
- onTriggerChange: C,
363
- valueNode: w,
364
- onValueNodeChange: T,
365
- valueNodeHasChildren: E,
366
- onValueNodeHasChildrenChange: D,
125
+ onTriggerChange: x,
126
+ valueNode: S,
127
+ onValueNodeChange: C,
128
+ valueNodeHasChildren: w,
129
+ onValueNodeHasChildrenChange: T,
367
130
  contentId: useId(),
368
- value: j,
369
- onValueChange: M,
370
- open: k,
371
- onOpenChange: A,
372
- dir: O,
373
- triggerPointerDownPosRef: N,
131
+ value: A,
132
+ onValueChange: j,
133
+ open: O,
134
+ onOpenChange: k,
135
+ dir: D,
136
+ triggerPointerDownPosRef: M,
374
137
  disabled: g,
375
138
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection.Provider, {
376
139
  scope: i,
377
140
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectNativeOptionsProvider, {
378
141
  scope: e.__scopeSelect,
379
142
  onNativeOptionAdd: import_react.useCallback((e2) => {
380
- I((i2) => new Set(i2).add(e2));
143
+ F((i2) => new Set(i2).add(e2));
381
144
  }, []),
382
145
  onNativeOptionRemove: import_react.useCallback((e2) => {
383
- I((i2) => {
146
+ F((i2) => {
384
147
  let a2 = new Set(i2);
385
148
  return a2.delete(e2), a2;
386
149
  });
387
150
  }, []),
388
151
  children: a
389
152
  })
390
- }), P ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectBubbleInput, {
153
+ }), N ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectBubbleInput, {
391
154
  "aria-hidden": true,
392
155
  required: _,
393
156
  tabIndex: -1,
394
157
  name: m,
395
158
  autoComplete: h,
396
- value: j,
397
- onChange: (e2) => M(e2.target.value),
159
+ value: A,
160
+ onChange: (e2) => j(e2.target.value),
398
161
  disabled: g,
399
162
  form: v,
400
- children: [j === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value: "" }) : null, Array.from(F)]
401
- }, L) : null]
163
+ children: [A === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value: "" }) : null, Array.from(P)]
164
+ }, I) : null]
402
165
  })
403
166
  });
404
167
  };
405
168
  Select$1.displayName = SELECT_NAME;
406
169
  var TRIGGER_NAME = "SelectTrigger", SelectTrigger$1 = import_react.forwardRef((e, i) => {
407
- let { __scopeSelect: a, disabled: o = false, ...s } = e, c = usePopperScope(a), l = useSelectContext(TRIGGER_NAME, a), u = l.disabled || o, f = useComposedRefs(i, l.onTriggerChange), p = useCollection(a), m = import_react.useRef("touch"), [h, g, _] = useTypeaheadSearch((e2) => {
170
+ let { __scopeSelect: a, disabled: o = false, ...s } = e, c = usePopperScope(a), l = useSelectContext(TRIGGER_NAME, a), u = l.disabled || o, d = useComposedRefs(i, l.onTriggerChange), p = useCollection(a), m = import_react.useRef("touch"), [h, g, v] = useTypeaheadSearch((e2) => {
408
171
  let i2 = p().filter((e3) => !e3.disabled), a2 = findNextItem(i2, e2, i2.find((e3) => e3.value === l.value));
409
172
  a2 !== void 0 && l.onValueChange(a2.value);
410
173
  }), y = (e2) => {
411
- u || (l.onOpenChange(true), _()), e2 && (l.triggerPointerDownPosRef.current = {
174
+ u || (l.onOpenChange(true), v()), e2 && (l.triggerPointerDownPosRef.current = {
412
175
  x: Math.round(e2.pageX),
413
176
  y: Math.round(e2.pageY)
414
177
  });
@@ -416,7 +179,7 @@ var TRIGGER_NAME = "SelectTrigger", SelectTrigger$1 = import_react.forwardRef((e
416
179
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Anchor, {
417
180
  asChild: true,
418
181
  ...c,
419
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive$1.button, {
182
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.button, {
420
183
  type: "button",
421
184
  role: "combobox",
422
185
  "aria-controls": l.contentId,
@@ -429,7 +192,7 @@ var TRIGGER_NAME = "SelectTrigger", SelectTrigger$1 = import_react.forwardRef((e
429
192
  "data-disabled": u ? "" : void 0,
430
193
  "data-placeholder": shouldShowPlaceholder(l.value) ? "" : void 0,
431
194
  ...s,
432
- ref: f,
195
+ ref: d,
433
196
  onClick: composeEventHandlers(s.onClick, (e2) => {
434
197
  e2.currentTarget.focus(), m.current !== "mouse" && y(e2);
435
198
  }),
@@ -450,7 +213,7 @@ var VALUE_NAME = "SelectValue", SelectValue$1 = import_react.forwardRef((e, i) =
450
213
  let { __scopeSelect: a, className: o, style: s, children: c, placeholder: l = "", ...u } = e, d = useSelectContext(VALUE_NAME, a), { onValueNodeHasChildrenChange: f } = d, p = c !== void 0, m = useComposedRefs(i, d.onValueNodeChange);
451
214
  return useLayoutEffect2(() => {
452
215
  f(p);
453
- }, [f, p]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive$1.span, {
216
+ }, [f, p]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.span, {
454
217
  ...u,
455
218
  ref: m,
456
219
  style: { pointerEvents: "none" },
@@ -460,7 +223,7 @@ var VALUE_NAME = "SelectValue", SelectValue$1 = import_react.forwardRef((e, i) =
460
223
  SelectValue$1.displayName = VALUE_NAME;
461
224
  var ICON_NAME = "SelectIcon", SelectIcon = import_react.forwardRef((e, i) => {
462
225
  let { __scopeSelect: a, children: o, ...s } = e;
463
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive$1.span, {
226
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.span, {
464
227
  "aria-hidden": true,
465
228
  ...s,
466
229
  ref: i,
@@ -479,7 +242,7 @@ var CONTENT_NAME = "SelectContent", SelectContent$1 = import_react.forwardRef((e
479
242
  s(new DocumentFragment());
480
243
  }, []), !a.open) {
481
244
  let i2 = o;
482
- return i2 ? import_react_dom$1.createPortal(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectContentProvider, {
245
+ return i2 ? import_react_dom.createPortal(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectContentProvider, {
483
246
  scope: e.__scopeSelect,
484
247
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection.Slot, {
485
248
  scope: e.__scopeSelect,
@@ -493,17 +256,17 @@ var CONTENT_NAME = "SelectContent", SelectContent$1 = import_react.forwardRef((e
493
256
  });
494
257
  });
495
258
  SelectContent$1.displayName = CONTENT_NAME;
496
- var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME), CONTENT_IMPL_NAME = "SelectContentImpl", Slot = createSlot$1("SelectContent.RemoveScroll"), SelectContentImpl = import_react.forwardRef((e, i) => {
497
- let { __scopeSelect: a, position: o = "item-aligned", onCloseAutoFocus: s, onEscapeKeyDown: c, onPointerDownOutside: l, side: u, sideOffset: d, align: f, alignOffset: p, arrowPadding: m, collisionBoundary: h, collisionPadding: g, sticky: _, hideWhenDetached: y, avoidCollisions: b, ...x } = e, S = useSelectContext(CONTENT_NAME, a), [C, w] = import_react.useState(null), [E, D] = import_react.useState(null), O = useComposedRefs(i, (e2) => w(e2)), [A, M] = import_react.useState(null), [P, L] = import_react.useState(null), R = useCollection(a), [z, B] = import_react.useState(false), V = import_react.useRef(false);
259
+ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME), CONTENT_IMPL_NAME = "SelectContentImpl", Slot = createSlot("SelectContent.RemoveScroll"), SelectContentImpl = import_react.forwardRef((e, i) => {
260
+ let { __scopeSelect: a, position: o = "item-aligned", onCloseAutoFocus: s, onEscapeKeyDown: c, onPointerDownOutside: l, side: u, sideOffset: d, align: f, alignOffset: p, arrowPadding: m, collisionBoundary: h, collisionPadding: g, sticky: v, hideWhenDetached: y, avoidCollisions: b, ...x } = e, S = useSelectContext(CONTENT_NAME, a), [C, w] = import_react.useState(null), [E, D] = import_react.useState(null), A = useComposedRefs(i, (e2) => w(e2)), [j, M] = import_react.useState(null), [F, L] = import_react.useState(null), R = useCollection(a), [z, B] = import_react.useState(false), V = import_react.useRef(false);
498
261
  import_react.useEffect(() => {
499
262
  if (C) return hideOthers(C);
500
263
  }, [C]), useFocusGuards();
501
264
  let H = import_react.useCallback((e2) => {
502
265
  let [i2, ...a2] = R().map((e3) => e3.ref.current), [o2] = a2.slice(-1), s2 = document.activeElement;
503
266
  for (let a3 of e2) if (a3 === s2 || (a3 == null ? void 0 : a3.scrollIntoView({ block: "nearest" }), a3 === i2 && E && (E.scrollTop = 0), a3 === o2 && E && (E.scrollTop = E.scrollHeight), a3 == null ? void 0 : a3.focus(), document.activeElement !== s2)) return;
504
- }, [R, E]), U = import_react.useCallback(() => H([A, C]), [
267
+ }, [R, E]), U = import_react.useCallback(() => H([j, C]), [
505
268
  H,
506
- A,
269
+ j,
507
270
  C
508
271
  ]);
509
272
  import_react.useEffect(() => {
@@ -558,7 +321,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
558
321
  arrowPadding: m,
559
322
  collisionBoundary: h,
560
323
  collisionPadding: g,
561
- sticky: _,
324
+ sticky: v,
562
325
  hideWhenDetached: y,
563
326
  avoidCollisions: b
564
327
  } : {};
@@ -568,11 +331,11 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
568
331
  viewport: E,
569
332
  onViewportChange: D,
570
333
  itemRefCallback: J,
571
- selectedItem: A,
334
+ selectedItem: j,
572
335
  onItemLeave: Y,
573
336
  itemTextRefCallback: Z,
574
337
  focusSelectedItem: U,
575
- selectedItemText: P,
338
+ selectedItemText: F,
576
339
  position: o,
577
340
  isPositioned: z,
578
341
  searchRef: K,
@@ -605,7 +368,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
605
368
  ...x,
606
369
  ...$,
607
370
  onPlaced: () => B(true),
608
- ref: O,
371
+ ref: A,
609
372
  style: {
610
373
  display: "flex",
611
374
  flexDirection: "column",
@@ -636,7 +399,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
636
399
  });
637
400
  SelectContentImpl.displayName = CONTENT_IMPL_NAME;
638
401
  var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedPosition = import_react.forwardRef((e, i) => {
639
- let { __scopeSelect: a, onPlaced: o, ...s } = e, c = useSelectContext(CONTENT_NAME, a), l = useSelectContentContext(CONTENT_NAME, a), [u, d] = import_react.useState(null), [f, p] = import_react.useState(null), m = useComposedRefs(i, (e2) => p(e2)), h = useCollection(a), g = import_react.useRef(false), _ = import_react.useRef(true), { viewport: y, selectedItem: b, selectedItemText: x, focusSelectedItem: S } = l, C = import_react.useCallback(() => {
402
+ let { __scopeSelect: a, onPlaced: o, ...s } = e, c = useSelectContext(CONTENT_NAME, a), l = useSelectContentContext(CONTENT_NAME, a), [u, d] = import_react.useState(null), [f, p] = import_react.useState(null), m = useComposedRefs(i, (e2) => p(e2)), h = useCollection(a), g = import_react.useRef(false), v = import_react.useRef(true), { viewport: y, selectedItem: b, selectedItemText: x, focusSelectedItem: S } = l, C = import_react.useCallback(() => {
640
403
  if (c.trigger && c.valueNode && u && f && y && b && x) {
641
404
  let e2 = c.trigger.getBoundingClientRect(), i2 = f.getBoundingClientRect(), a2 = c.valueNode.getBoundingClientRect(), s2 = x.getBoundingClientRect();
642
405
  if (c.dir !== "rtl") {
@@ -646,7 +409,7 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
646
409
  let o2 = i2.right - s2.right, c2 = window.innerWidth - a2.right - o2, l3 = window.innerWidth - e2.right - c2, d3 = e2.width + l3, f2 = Math.max(d3, i2.width), p3 = window.innerWidth - CONTENT_MARGIN, m3 = clamp(c2, [CONTENT_MARGIN, Math.max(CONTENT_MARGIN, p3 - f2)]);
647
410
  u.style.minWidth = d3 + "px", u.style.right = m3 + "px";
648
411
  }
649
- let l2 = h(), d2 = window.innerHeight - CONTENT_MARGIN * 2, p2 = y.scrollHeight, m2 = window.getComputedStyle(f), _2 = parseInt(m2.borderTopWidth, 10), v = parseInt(m2.paddingTop, 10), S2 = parseInt(m2.borderBottomWidth, 10), C2 = parseInt(m2.paddingBottom, 10), w = _2 + v + p2 + C2 + S2, T2 = Math.min(b.offsetHeight * 5, w), E2 = window.getComputedStyle(y), D = parseInt(E2.paddingTop, 10), O = parseInt(E2.paddingBottom, 10), k = e2.top + e2.height / 2 - CONTENT_MARGIN, A = d2 - k, j = b.offsetHeight / 2, M = b.offsetTop + j, N = _2 + v + M, P = w - N;
412
+ let l2 = h(), d2 = window.innerHeight - CONTENT_MARGIN * 2, p2 = y.scrollHeight, m2 = window.getComputedStyle(f), _ = parseInt(m2.borderTopWidth, 10), v2 = parseInt(m2.paddingTop, 10), S2 = parseInt(m2.borderBottomWidth, 10), C2 = parseInt(m2.paddingBottom, 10), w2 = _ + v2 + p2 + C2 + S2, T2 = Math.min(b.offsetHeight * 5, w2), E = window.getComputedStyle(y), D = parseInt(E.paddingTop, 10), O = parseInt(E.paddingBottom, 10), k = e2.top + e2.height / 2 - CONTENT_MARGIN, A = d2 - k, j = b.offsetHeight / 2, M = b.offsetTop + j, N = _ + v2 + M, P = w2 - N;
650
413
  if (N <= k) {
651
414
  let e3 = l2.length > 0 && b === l2[l2.length - 1].ref.current;
652
415
  u.style.bottom = "0px";
@@ -655,7 +418,7 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
655
418
  } else {
656
419
  let e3 = l2.length > 0 && b === l2[0].ref.current;
657
420
  u.style.top = "0px";
658
- let i3 = Math.max(k, _2 + y.offsetTop + (e3 ? D : 0) + j) + P;
421
+ let i3 = Math.max(k, _ + y.offsetTop + (e3 ? D : 0) + j) + P;
659
422
  u.style.height = i3 + "px", y.scrollTop = N - k + y.offsetTop;
660
423
  }
661
424
  u.style.margin = `${CONTENT_MARGIN}px 0`, u.style.minHeight = T2 + "px", u.style.maxHeight = d2 + "px", o == null ? void 0 : o(), requestAnimationFrame(() => g.current = true);
@@ -673,15 +436,15 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
673
436
  o
674
437
  ]);
675
438
  useLayoutEffect2(() => C(), [C]);
676
- let [T, E] = import_react.useState();
439
+ let [w, T] = import_react.useState();
677
440
  return useLayoutEffect2(() => {
678
- f && E(window.getComputedStyle(f).zIndex);
441
+ f && T(window.getComputedStyle(f).zIndex);
679
442
  }, [f]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectViewportProvider, {
680
443
  scope: a,
681
444
  contentWrapper: u,
682
445
  shouldExpandOnScrollRef: g,
683
446
  onScrollButtonChange: import_react.useCallback((e2) => {
684
- e2 && _.current === true && (C(), S == null ? void 0 : S(), _.current = false);
447
+ e2 && v.current === true && (C(), S == null ? void 0 : S(), v.current = false);
685
448
  }, [C, S]),
686
449
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
687
450
  ref: d,
@@ -689,9 +452,9 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
689
452
  display: "flex",
690
453
  flexDirection: "column",
691
454
  position: "fixed",
692
- zIndex: T
455
+ zIndex: w
693
456
  },
694
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive$1.div, {
457
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
695
458
  ...s,
696
459
  ref: m,
697
460
  style: {
@@ -705,16 +468,16 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
705
468
  });
706
469
  SelectItemAlignedPosition.displayName = ITEM_ALIGNED_POSITION_NAME;
707
470
  var POPPER_POSITION_NAME = "SelectPopperPosition", SelectPopperPosition = import_react.forwardRef((e, i) => {
708
- let { __scopeSelect: a, align: s = "start", collisionPadding: c = CONTENT_MARGIN, ...l } = e, u = usePopperScope(a);
471
+ let { __scopeSelect: a, align: o = "start", collisionPadding: s = CONTENT_MARGIN, ...c } = e, l = usePopperScope(a);
709
472
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Content, {
710
- ...u,
711
473
  ...l,
474
+ ...c,
712
475
  ref: i,
713
- align: s,
714
- collisionPadding: c,
476
+ align: o,
477
+ collisionPadding: s,
715
478
  style: {
716
479
  boxSizing: "border-box",
717
- ...l.style,
480
+ ...c.style,
718
481
  "--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
719
482
  "--radix-select-content-available-width": "var(--radix-popper-available-width)",
720
483
  "--radix-select-content-available-height": "var(--radix-popper-available-height)",
@@ -731,7 +494,7 @@ var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CON
731
494
  nonce: o
732
495
  }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection.Slot, {
733
496
  scope: a,
734
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive$1.div, {
497
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
735
498
  "data-radix-select-viewport": "",
736
499
  role: "presentation",
737
500
  ...s,
@@ -765,7 +528,7 @@ var GROUP_NAME = "SelectGroup", [SelectGroupContextProvider, useSelectGroupConte
765
528
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectGroupContextProvider, {
766
529
  scope: a,
767
530
  id: s,
768
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive$1.div, {
531
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
769
532
  role: "group",
770
533
  "aria-labelledby": s,
771
534
  ...o,
@@ -776,7 +539,7 @@ var GROUP_NAME = "SelectGroup", [SelectGroupContextProvider, useSelectGroupConte
776
539
  SelectGroup$1.displayName = GROUP_NAME;
777
540
  var LABEL_NAME = "SelectLabel", SelectLabel$1 = import_react.forwardRef((e, i) => {
778
541
  let { __scopeSelect: a, ...o } = e, s = useSelectGroupContext(LABEL_NAME, a);
779
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive$1.div, {
542
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
780
543
  id: s.id,
781
544
  ...o,
782
545
  ref: i
@@ -784,7 +547,7 @@ var LABEL_NAME = "SelectLabel", SelectLabel$1 = import_react.forwardRef((e, i) =
784
547
  });
785
548
  SelectLabel$1.displayName = LABEL_NAME;
786
549
  var ITEM_NAME = "SelectItem", [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME), SelectItem$1 = import_react.forwardRef((e, i) => {
787
- let { __scopeSelect: a, value: o, disabled: s = false, textValue: c, ...l } = e, u = useSelectContext(ITEM_NAME, a), d = useSelectContentContext(ITEM_NAME, a), f = u.value === o, [p, m] = import_react.useState(c ?? ""), [h, g] = import_react.useState(false), _ = useComposedRefs(i, (e2) => {
550
+ let { __scopeSelect: a, value: o, disabled: s = false, textValue: c, ...l } = e, u = useSelectContext(ITEM_NAME, a), d = useSelectContentContext(ITEM_NAME, a), f = u.value === o, [p, m] = import_react.useState(c ?? ""), [h, g] = import_react.useState(false), v = useComposedRefs(i, (e2) => {
788
551
  var _a;
789
552
  return (_a = d.itemRefCallback) == null ? void 0 : _a.call(d, e2, o, s);
790
553
  }), y = useId(), b = import_react.useRef("touch"), x = () => {
@@ -805,7 +568,7 @@ var ITEM_NAME = "SelectItem", [SelectItemContextProvider, useSelectItemContext]
805
568
  value: o,
806
569
  disabled: s,
807
570
  textValue: p,
808
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive$1.div, {
571
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
809
572
  role: "option",
810
573
  "aria-labelledby": y,
811
574
  "data-highlighted": h ? "" : void 0,
@@ -815,7 +578,7 @@ var ITEM_NAME = "SelectItem", [SelectItemContextProvider, useSelectItemContext]
815
578
  "data-disabled": s ? "" : void 0,
816
579
  tabIndex: s ? void 0 : -1,
817
580
  ...l,
818
- ref: _,
581
+ ref: v,
819
582
  onFocus: composeEventHandlers(l.onFocus, () => g(true)),
820
583
  onBlur: composeEventHandlers(l.onBlur, () => g(false)),
821
584
  onClick: composeEventHandlers(l.onClick, () => {
@@ -847,168 +610,415 @@ SelectItem$1.displayName = ITEM_NAME;
847
610
  var ITEM_TEXT_NAME = "SelectItemText", SelectItemText = import_react.forwardRef((e, i) => {
848
611
  let { __scopeSelect: a, className: o, style: s, ...c } = e, l = useSelectContext(ITEM_TEXT_NAME, a), u = useSelectContentContext(ITEM_TEXT_NAME, a), d = useSelectItemContext(ITEM_TEXT_NAME, a), f = useSelectNativeOptionsContext(ITEM_TEXT_NAME, a), [p, m] = import_react.useState(null), h = useComposedRefs(i, (e2) => m(e2), d.onItemTextChange, (e2) => {
849
612
  var _a;
850
- return (_a = u.itemTextRefCallback) == null ? void 0 : _a.call(u, e2, d.value, d.disabled);
851
- }), g = p == null ? void 0 : p.textContent, _ = import_react.useMemo(() => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
852
- value: d.value,
853
- disabled: d.disabled,
854
- children: g
855
- }, d.value), [
856
- d.disabled,
857
- d.value,
858
- g
859
- ]), { onNativeOptionAdd: y, onNativeOptionRemove: b } = f;
860
- return useLayoutEffect2(() => (y(_), () => b(_)), [
861
- y,
862
- b,
863
- _
864
- ]), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive$1.span, {
865
- id: d.textId,
866
- ...c,
867
- ref: h
868
- }), d.isSelected && l.valueNode && !l.valueNodeHasChildren ? import_react_dom$1.createPortal(c.children, l.valueNode) : null] });
869
- });
870
- SelectItemText.displayName = ITEM_TEXT_NAME;
871
- var ITEM_INDICATOR_NAME = "SelectItemIndicator", SelectItemIndicator = import_react.forwardRef((e, i) => {
872
- let { __scopeSelect: a, ...o } = e;
873
- return useSelectItemContext(ITEM_INDICATOR_NAME, a).isSelected ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive$1.span, {
874
- "aria-hidden": true,
875
- ...o,
876
- ref: i
877
- }) : null;
878
- });
879
- SelectItemIndicator.displayName = ITEM_INDICATOR_NAME;
880
- var SCROLL_UP_BUTTON_NAME = "SelectScrollUpButton", SelectScrollUpButton = import_react.forwardRef((e, i) => {
881
- let a = useSelectContentContext(SCROLL_UP_BUTTON_NAME, e.__scopeSelect), o = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, e.__scopeSelect), [s, c] = import_react.useState(false), l = useComposedRefs(i, o.onScrollButtonChange);
882
- return useLayoutEffect2(() => {
883
- if (a.viewport && a.isPositioned) {
884
- let e2 = function() {
885
- c(i2.scrollTop > 0);
886
- }, i2 = a.viewport;
887
- return e2(), i2.addEventListener("scroll", e2), () => i2.removeEventListener("scroll", e2);
888
- }
889
- }, [a.viewport, a.isPositioned]), s ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectScrollButtonImpl, {
890
- ...e,
891
- ref: l,
892
- onAutoScroll: () => {
893
- let { viewport: e2, selectedItem: i2 } = a;
894
- e2 && i2 && (e2.scrollTop -= i2.offsetHeight);
895
- }
896
- }) : null;
897
- });
898
- SelectScrollUpButton.displayName = SCROLL_UP_BUTTON_NAME;
899
- var SCROLL_DOWN_BUTTON_NAME = "SelectScrollDownButton", SelectScrollDownButton = import_react.forwardRef((e, i) => {
900
- let a = useSelectContentContext(SCROLL_DOWN_BUTTON_NAME, e.__scopeSelect), o = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, e.__scopeSelect), [s, c] = import_react.useState(false), l = useComposedRefs(i, o.onScrollButtonChange);
901
- return useLayoutEffect2(() => {
902
- if (a.viewport && a.isPositioned) {
903
- let e2 = function() {
904
- let e3 = i2.scrollHeight - i2.clientHeight;
905
- c(Math.ceil(i2.scrollTop) < e3);
906
- }, i2 = a.viewport;
907
- return e2(), i2.addEventListener("scroll", e2), () => i2.removeEventListener("scroll", e2);
908
- }
909
- }, [a.viewport, a.isPositioned]), s ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectScrollButtonImpl, {
910
- ...e,
911
- ref: l,
912
- onAutoScroll: () => {
913
- let { viewport: e2, selectedItem: i2 } = a;
914
- e2 && i2 && (e2.scrollTop += i2.offsetHeight);
915
- }
916
- }) : null;
917
- });
918
- SelectScrollDownButton.displayName = SCROLL_DOWN_BUTTON_NAME;
919
- var SelectScrollButtonImpl = import_react.forwardRef((e, i) => {
920
- let { __scopeSelect: a, onAutoScroll: o, ...s } = e, c = useSelectContentContext("SelectScrollButton", a), l = import_react.useRef(null), u = useCollection(a), d = import_react.useCallback(() => {
921
- l.current !== null && (window.clearInterval(l.current), l.current = null);
922
- }, []);
923
- return import_react.useEffect(() => () => d(), [d]), useLayoutEffect2(() => {
924
- var _a, _b;
925
- (_b = (_a = u().find((e2) => e2.ref.current === document.activeElement)) == null ? void 0 : _a.ref.current) == null ? void 0 : _b.scrollIntoView({ block: "nearest" });
926
- }, [u]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive$1.div, {
927
- "aria-hidden": true,
928
- ...s,
929
- ref: i,
930
- style: {
931
- flexShrink: 0,
932
- ...s.style
933
- },
934
- onPointerDown: composeEventHandlers(s.onPointerDown, () => {
935
- l.current === null && (l.current = window.setInterval(o, 50));
936
- }),
937
- onPointerMove: composeEventHandlers(s.onPointerMove, () => {
938
- var _a;
939
- (_a = c.onItemLeave) == null ? void 0 : _a.call(c), l.current === null && (l.current = window.setInterval(o, 50));
940
- }),
941
- onPointerLeave: composeEventHandlers(s.onPointerLeave, () => {
942
- d();
943
- })
944
- });
945
- }), SEPARATOR_NAME = "SelectSeparator", SelectSeparator$1 = import_react.forwardRef((e, i) => {
946
- let { __scopeSelect: a, ...o } = e;
947
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive$1.div, {
948
- "aria-hidden": true,
949
- ...o,
950
- ref: i
951
- });
952
- });
953
- SelectSeparator$1.displayName = SEPARATOR_NAME;
954
- var ARROW_NAME = "SelectArrow", SelectArrow = import_react.forwardRef((e, i) => {
955
- let { __scopeSelect: a, ...o } = e, c = usePopperScope(a), l = useSelectContext(ARROW_NAME, a), u = useSelectContentContext(ARROW_NAME, a);
956
- return l.open && u.position === "popper" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arrow, {
957
- ...c,
958
- ...o,
959
- ref: i
960
- }) : null;
961
- });
962
- SelectArrow.displayName = ARROW_NAME;
963
- var BUBBLE_INPUT_NAME = "SelectBubbleInput", SelectBubbleInput = import_react.forwardRef(({ __scopeSelect: e, value: i, ...a }, o) => {
964
- let s = import_react.useRef(null), c = useComposedRefs(o, s), u = usePrevious(i);
965
- return import_react.useEffect(() => {
966
- let e2 = s.current;
967
- if (!e2) return;
968
- let a2 = window.HTMLSelectElement.prototype, o2 = Object.getOwnPropertyDescriptor(a2, "value").set;
969
- if (u !== i && o2) {
970
- let a3 = new Event("change", { bubbles: true });
971
- o2.call(e2, i), e2.dispatchEvent(a3);
613
+ return (_a = u.itemTextRefCallback) == null ? void 0 : _a.call(u, e2, d.value, d.disabled);
614
+ }), g = p == null ? void 0 : p.textContent, v = import_react.useMemo(() => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
615
+ value: d.value,
616
+ disabled: d.disabled,
617
+ children: g
618
+ }, d.value), [
619
+ d.disabled,
620
+ d.value,
621
+ g
622
+ ]), { onNativeOptionAdd: y, onNativeOptionRemove: b } = f;
623
+ return useLayoutEffect2(() => (y(v), () => b(v)), [
624
+ y,
625
+ b,
626
+ v
627
+ ]), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.span, {
628
+ id: d.textId,
629
+ ...c,
630
+ ref: h
631
+ }), d.isSelected && l.valueNode && !l.valueNodeHasChildren ? import_react_dom.createPortal(c.children, l.valueNode) : null] });
632
+ });
633
+ SelectItemText.displayName = ITEM_TEXT_NAME;
634
+ var ITEM_INDICATOR_NAME = "SelectItemIndicator", SelectItemIndicator = import_react.forwardRef((e, i) => {
635
+ let { __scopeSelect: a, ...o } = e;
636
+ return useSelectItemContext(ITEM_INDICATOR_NAME, a).isSelected ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.span, {
637
+ "aria-hidden": true,
638
+ ...o,
639
+ ref: i
640
+ }) : null;
641
+ });
642
+ SelectItemIndicator.displayName = ITEM_INDICATOR_NAME;
643
+ var SCROLL_UP_BUTTON_NAME = "SelectScrollUpButton", SelectScrollUpButton = import_react.forwardRef((e, i) => {
644
+ let a = useSelectContentContext(SCROLL_UP_BUTTON_NAME, e.__scopeSelect), o = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, e.__scopeSelect), [s, c] = import_react.useState(false), l = useComposedRefs(i, o.onScrollButtonChange);
645
+ return useLayoutEffect2(() => {
646
+ if (a.viewport && a.isPositioned) {
647
+ let e2 = function() {
648
+ c(i2.scrollTop > 0);
649
+ }, i2 = a.viewport;
650
+ return e2(), i2.addEventListener("scroll", e2), () => i2.removeEventListener("scroll", e2);
651
+ }
652
+ }, [a.viewport, a.isPositioned]), s ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectScrollButtonImpl, {
653
+ ...e,
654
+ ref: l,
655
+ onAutoScroll: () => {
656
+ let { viewport: e2, selectedItem: i2 } = a;
657
+ e2 && i2 && (e2.scrollTop -= i2.offsetHeight);
658
+ }
659
+ }) : null;
660
+ });
661
+ SelectScrollUpButton.displayName = SCROLL_UP_BUTTON_NAME;
662
+ var SCROLL_DOWN_BUTTON_NAME = "SelectScrollDownButton", SelectScrollDownButton = import_react.forwardRef((e, i) => {
663
+ let a = useSelectContentContext(SCROLL_DOWN_BUTTON_NAME, e.__scopeSelect), o = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, e.__scopeSelect), [s, c] = import_react.useState(false), l = useComposedRefs(i, o.onScrollButtonChange);
664
+ return useLayoutEffect2(() => {
665
+ if (a.viewport && a.isPositioned) {
666
+ let e2 = function() {
667
+ let e3 = i2.scrollHeight - i2.clientHeight;
668
+ c(Math.ceil(i2.scrollTop) < e3);
669
+ }, i2 = a.viewport;
670
+ return e2(), i2.addEventListener("scroll", e2), () => i2.removeEventListener("scroll", e2);
671
+ }
672
+ }, [a.viewport, a.isPositioned]), s ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectScrollButtonImpl, {
673
+ ...e,
674
+ ref: l,
675
+ onAutoScroll: () => {
676
+ let { viewport: e2, selectedItem: i2 } = a;
677
+ e2 && i2 && (e2.scrollTop += i2.offsetHeight);
678
+ }
679
+ }) : null;
680
+ });
681
+ SelectScrollDownButton.displayName = SCROLL_DOWN_BUTTON_NAME;
682
+ var SelectScrollButtonImpl = import_react.forwardRef((e, i) => {
683
+ let { __scopeSelect: a, onAutoScroll: o, ...s } = e, c = useSelectContentContext("SelectScrollButton", a), l = import_react.useRef(null), u = useCollection(a), d = import_react.useCallback(() => {
684
+ l.current !== null && (window.clearInterval(l.current), l.current = null);
685
+ }, []);
686
+ return import_react.useEffect(() => () => d(), [d]), useLayoutEffect2(() => {
687
+ var _a, _b;
688
+ (_b = (_a = u().find((e2) => e2.ref.current === document.activeElement)) == null ? void 0 : _a.ref.current) == null ? void 0 : _b.scrollIntoView({ block: "nearest" });
689
+ }, [u]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
690
+ "aria-hidden": true,
691
+ ...s,
692
+ ref: i,
693
+ style: {
694
+ flexShrink: 0,
695
+ ...s.style
696
+ },
697
+ onPointerDown: composeEventHandlers(s.onPointerDown, () => {
698
+ l.current === null && (l.current = window.setInterval(o, 50));
699
+ }),
700
+ onPointerMove: composeEventHandlers(s.onPointerMove, () => {
701
+ var _a;
702
+ (_a = c.onItemLeave) == null ? void 0 : _a.call(c), l.current === null && (l.current = window.setInterval(o, 50));
703
+ }),
704
+ onPointerLeave: composeEventHandlers(s.onPointerLeave, () => {
705
+ d();
706
+ })
707
+ });
708
+ }), SEPARATOR_NAME = "SelectSeparator", SelectSeparator$1 = import_react.forwardRef((e, i) => {
709
+ let { __scopeSelect: a, ...o } = e;
710
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
711
+ "aria-hidden": true,
712
+ ...o,
713
+ ref: i
714
+ });
715
+ });
716
+ SelectSeparator$1.displayName = SEPARATOR_NAME;
717
+ var ARROW_NAME = "SelectArrow", SelectArrow = import_react.forwardRef((e, i) => {
718
+ let { __scopeSelect: a, ...o } = e, s = usePopperScope(a), c = useSelectContext(ARROW_NAME, a), l = useSelectContentContext(ARROW_NAME, a);
719
+ return c.open && l.position === "popper" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arrow, {
720
+ ...s,
721
+ ...o,
722
+ ref: i
723
+ }) : null;
724
+ });
725
+ SelectArrow.displayName = ARROW_NAME;
726
+ var BUBBLE_INPUT_NAME = "SelectBubbleInput", SelectBubbleInput = import_react.forwardRef(({ __scopeSelect: e, value: i, ...a }, o) => {
727
+ let c = import_react.useRef(null), l = useComposedRefs(o, c), u = usePrevious(i);
728
+ return import_react.useEffect(() => {
729
+ let e2 = c.current;
730
+ if (!e2) return;
731
+ let a2 = window.HTMLSelectElement.prototype, o2 = Object.getOwnPropertyDescriptor(a2, "value").set;
732
+ if (u !== i && o2) {
733
+ let a3 = new Event("change", { bubbles: true });
734
+ o2.call(e2, i), e2.dispatchEvent(a3);
735
+ }
736
+ }, [u, i]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.select, {
737
+ ...a,
738
+ style: {
739
+ ...VISUALLY_HIDDEN_STYLES,
740
+ ...a.style
741
+ },
742
+ ref: l,
743
+ defaultValue: i
744
+ });
745
+ });
746
+ SelectBubbleInput.displayName = BUBBLE_INPUT_NAME;
747
+ function shouldShowPlaceholder(e) {
748
+ return e === "" || e === void 0;
749
+ }
750
+ function useTypeaheadSearch(e) {
751
+ let i = useCallbackRef(e), a = import_react.useRef(""), o = import_react.useRef(0), s = import_react.useCallback((e2) => {
752
+ let s2 = a.current + e2;
753
+ i(s2), (function e3(i2) {
754
+ a.current = i2, window.clearTimeout(o.current), i2 !== "" && (o.current = window.setTimeout(() => e3(""), 1e3));
755
+ })(s2);
756
+ }, [i]), c = import_react.useCallback(() => {
757
+ a.current = "", window.clearTimeout(o.current);
758
+ }, []);
759
+ return import_react.useEffect(() => () => window.clearTimeout(o.current), []), [
760
+ a,
761
+ s,
762
+ c
763
+ ];
764
+ }
765
+ function findNextItem(e, i, a) {
766
+ let o = i.length > 1 && Array.from(i).every((e2) => e2 === i[0]) ? i[0] : i, s = a ? e.indexOf(a) : -1, c = wrapArray(e, Math.max(s, 0));
767
+ o.length === 1 && (c = c.filter((e2) => e2 !== a));
768
+ let l = c.find((e2) => e2.textValue.toLowerCase().startsWith(o.toLowerCase()));
769
+ return l === a ? void 0 : l;
770
+ }
771
+ function wrapArray(e, i) {
772
+ return e.map((a, o) => e[(i + o) % e.length]);
773
+ }
774
+ var Root2 = Select$1, Trigger = SelectTrigger$1, Value = SelectValue$1, Icon = SelectIcon, Portal$1 = SelectPortal$1, Content2 = SelectContent$1, Viewport = SelectViewport, Group = SelectGroup$1, Label$1 = SelectLabel$1, Item = SelectItem$1, ItemText = SelectItemText, ItemIndicator = SelectItemIndicator, ScrollUpButton = SelectScrollUpButton, ScrollDownButton = SelectScrollDownButton, Separator = SelectSeparator$1, $b5e257d569688ac6$var$defaultContext = {
775
+ prefix: String(Math.round(Math.random() * 1e10)),
776
+ current: 0
777
+ }, $b5e257d569688ac6$var$SSRContext = /* @__PURE__ */ import_react.createContext($b5e257d569688ac6$var$defaultContext), $b5e257d569688ac6$var$IsSSRContext = /* @__PURE__ */ import_react.createContext(false);
778
+ typeof window < "u" && window.document && window.document.createElement;
779
+ var $b5e257d569688ac6$var$componentIds = /* @__PURE__ */ new WeakMap();
780
+ function $b5e257d569688ac6$var$useCounter(e = false) {
781
+ var _a, _b;
782
+ let i = (0, import_react.useContext)($b5e257d569688ac6$var$SSRContext), a = (0, import_react.useRef)(null);
783
+ if (a.current === null && !e) {
784
+ let e2 = (_b = (_a = import_react.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) == null ? void 0 : _a.ReactCurrentOwner) == null ? void 0 : _b.current;
785
+ if (e2) {
786
+ let a2 = $b5e257d569688ac6$var$componentIds.get(e2);
787
+ a2 == null ? $b5e257d569688ac6$var$componentIds.set(e2, {
788
+ id: i.current,
789
+ state: e2.memoizedState
790
+ }) : e2.memoizedState !== a2.state && (i.current = a2.id, $b5e257d569688ac6$var$componentIds.delete(e2));
791
+ }
792
+ a.current = ++i.current;
793
+ }
794
+ return a.current;
795
+ }
796
+ function $b5e257d569688ac6$var$useLegacySSRSafeId(e) {
797
+ let i = (0, import_react.useContext)($b5e257d569688ac6$var$SSRContext), a = $b5e257d569688ac6$var$useCounter(!!e), o = `react-aria${i.prefix}`;
798
+ return e || `${o}-${a}`;
799
+ }
800
+ function $b5e257d569688ac6$var$useModernSSRSafeId(e) {
801
+ let i = import_react.useId(), [a] = (0, import_react.useState)($b5e257d569688ac6$export$535bd6ca7f90a273()), o = a ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
802
+ return e || `${o}-${i}`;
803
+ }
804
+ var $b5e257d569688ac6$export$619500959fc48b26 = typeof import_react.useId == "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
805
+ function $b5e257d569688ac6$var$getSnapshot() {
806
+ return false;
807
+ }
808
+ function $b5e257d569688ac6$var$getServerSnapshot() {
809
+ return true;
810
+ }
811
+ function $b5e257d569688ac6$var$subscribe(e) {
812
+ return () => {
813
+ };
814
+ }
815
+ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
816
+ return typeof import_react.useSyncExternalStore == "function" ? import_react.useSyncExternalStore($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot) : (0, import_react.useContext)($b5e257d569688ac6$var$IsSSRContext);
817
+ }
818
+ var $148a7a147e38ea7f$var$RTL_SCRIPTS = /* @__PURE__ */ new Set([
819
+ "Arab",
820
+ "Syrc",
821
+ "Samr",
822
+ "Mand",
823
+ "Thaa",
824
+ "Mend",
825
+ "Nkoo",
826
+ "Adlm",
827
+ "Rohg",
828
+ "Hebr"
829
+ ]), $148a7a147e38ea7f$var$RTL_LANGS = /* @__PURE__ */ new Set([
830
+ "ae",
831
+ "ar",
832
+ "arc",
833
+ "bcc",
834
+ "bqi",
835
+ "ckb",
836
+ "dv",
837
+ "fa",
838
+ "glk",
839
+ "he",
840
+ "ku",
841
+ "mzn",
842
+ "nqo",
843
+ "pnb",
844
+ "ps",
845
+ "sd",
846
+ "ug",
847
+ "ur",
848
+ "yi"
849
+ ]);
850
+ function $148a7a147e38ea7f$export$702d680b21cbd764(e) {
851
+ if (Intl.Locale) {
852
+ let i2 = new Intl.Locale(e).maximize(), a = typeof i2.getTextInfo == "function" ? i2.getTextInfo() : i2.textInfo;
853
+ if (a) return a.direction === "rtl";
854
+ if (i2.script) return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(i2.script);
855
+ }
856
+ let i = e.split("-")[0];
857
+ return $148a7a147e38ea7f$var$RTL_LANGS.has(i);
858
+ }
859
+ var $1e5a04cdaf7d1af8$var$localeSymbol = /* @__PURE__ */ Symbol.for("react-aria.i18n.locale");
860
+ function $1e5a04cdaf7d1af8$export$f09106e7c6677ec5() {
861
+ let e = typeof window < "u" && window[$1e5a04cdaf7d1af8$var$localeSymbol] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
862
+ try {
863
+ Intl.DateTimeFormat.supportedLocalesOf([e]);
864
+ } catch {
865
+ e = "en-US";
866
+ }
867
+ return {
868
+ locale: e,
869
+ direction: $148a7a147e38ea7f$export$702d680b21cbd764(e) ? "rtl" : "ltr"
870
+ };
871
+ }
872
+ var $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5(), $1e5a04cdaf7d1af8$var$listeners = /* @__PURE__ */ new Set();
873
+ function $1e5a04cdaf7d1af8$var$updateLocale() {
874
+ $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();
875
+ for (let e of $1e5a04cdaf7d1af8$var$listeners) e($1e5a04cdaf7d1af8$var$currentLocale);
876
+ }
877
+ function $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a() {
878
+ let e = $b5e257d569688ac6$export$535bd6ca7f90a273(), [i, a] = (0, import_react.useState)($1e5a04cdaf7d1af8$var$currentLocale);
879
+ return (0, import_react.useEffect)(() => ($1e5a04cdaf7d1af8$var$listeners.size === 0 && window.addEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale), $1e5a04cdaf7d1af8$var$listeners.add(a), () => {
880
+ $1e5a04cdaf7d1af8$var$listeners.delete(a), $1e5a04cdaf7d1af8$var$listeners.size === 0 && window.removeEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
881
+ }), []), e ? {
882
+ locale: typeof window < "u" && window[$1e5a04cdaf7d1af8$var$localeSymbol] || "en-US",
883
+ direction: "ltr"
884
+ } : i;
885
+ }
886
+ var $18f2051aff69b9bf$var$I18nContext = /* @__PURE__ */ import_react.createContext(null);
887
+ function $18f2051aff69b9bf$var$I18nProviderWithLocale(e) {
888
+ let { locale: i, children: a } = e, o = import_react.useMemo(() => ({
889
+ locale: i,
890
+ direction: $148a7a147e38ea7f$export$702d680b21cbd764(i) ? "rtl" : "ltr"
891
+ }), [i]);
892
+ return /* @__PURE__ */ import_react.createElement($18f2051aff69b9bf$var$I18nContext.Provider, { value: o }, a);
893
+ }
894
+ function $18f2051aff69b9bf$var$I18nProviderWithDefaultLocale(e) {
895
+ let { children: i } = e, a = $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a();
896
+ return /* @__PURE__ */ import_react.createElement($18f2051aff69b9bf$var$I18nContext.Provider, { value: a }, i);
897
+ }
898
+ function $18f2051aff69b9bf$export$a54013f0d02a8f82(e) {
899
+ let { locale: i, children: a } = e;
900
+ return i ? /* @__PURE__ */ import_react.createElement($18f2051aff69b9bf$var$I18nProviderWithLocale, {
901
+ locale: i,
902
+ children: a
903
+ }) : /* @__PURE__ */ import_react.createElement($18f2051aff69b9bf$var$I18nProviderWithDefaultLocale, { children: a });
904
+ }
905
+ function $18f2051aff69b9bf$export$43bb16f9c6d9e3f7() {
906
+ let e = $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a();
907
+ return (0, import_react.useContext)($18f2051aff69b9bf$var$I18nContext) || e;
908
+ }
909
+ var $488c6ddbf4ef74c2$var$formatterCache = /* @__PURE__ */ new Map(), $488c6ddbf4ef74c2$var$supportsSignDisplay = false;
910
+ try {
911
+ $488c6ddbf4ef74c2$var$supportsSignDisplay = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
912
+ } catch {
913
+ }
914
+ var $488c6ddbf4ef74c2$var$supportsUnit = false;
915
+ try {
916
+ $488c6ddbf4ef74c2$var$supportsUnit = new Intl.NumberFormat("de-DE", {
917
+ style: "unit",
918
+ unit: "degree"
919
+ }).resolvedOptions().style === "unit";
920
+ } catch {
921
+ }
922
+ var $488c6ddbf4ef74c2$var$UNITS = { degree: { narrow: {
923
+ default: "\xB0",
924
+ "ja-JP": " \u5EA6",
925
+ "zh-TW": "\u5EA6",
926
+ "sl-SI": " \xB0"
927
+ } } }, $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 = class {
928
+ format(e) {
929
+ var _a;
930
+ let i = "";
931
+ if (i = !$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null ? $488c6ddbf4ef74c2$export$711b50b3c525e0f2(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), this.options.style === "unit" && !$488c6ddbf4ef74c2$var$supportsUnit) {
932
+ let { unit: e2, unitDisplay: a = "short", locale: o } = this.resolvedOptions();
933
+ if (!e2) return i;
934
+ let s = (_a = $488c6ddbf4ef74c2$var$UNITS[e2]) == null ? void 0 : _a[a];
935
+ i += s[o] || s.default;
972
936
  }
973
- }, [u, i]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive$1.select, {
974
- ...a,
975
- style: {
976
- ...VISUALLY_HIDDEN_STYLES,
977
- ...a.style
978
- },
979
- ref: c,
980
- defaultValue: i
981
- });
982
- });
983
- SelectBubbleInput.displayName = BUBBLE_INPUT_NAME;
984
- function shouldShowPlaceholder(e) {
985
- return e === "" || e === void 0;
937
+ return i;
938
+ }
939
+ formatToParts(e) {
940
+ return this.numberFormatter.formatToParts(e);
941
+ }
942
+ formatRange(e, i) {
943
+ if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(e, i);
944
+ if (i < e) throw RangeError("End date must be >= start date");
945
+ return `${this.format(e)} \u2013 ${this.format(i)}`;
946
+ }
947
+ formatRangeToParts(e, i) {
948
+ if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(e, i);
949
+ if (i < e) throw RangeError("End date must be >= start date");
950
+ let a = this.numberFormatter.formatToParts(e), o = this.numberFormatter.formatToParts(i);
951
+ return [
952
+ ...a.map((e2) => ({
953
+ ...e2,
954
+ source: "startRange"
955
+ })),
956
+ {
957
+ type: "literal",
958
+ value: " \u2013 ",
959
+ source: "shared"
960
+ },
961
+ ...o.map((e2) => ({
962
+ ...e2,
963
+ source: "endRange"
964
+ }))
965
+ ];
966
+ }
967
+ resolvedOptions() {
968
+ let e = this.numberFormatter.resolvedOptions();
969
+ return !$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null && (e = {
970
+ ...e,
971
+ signDisplay: this.options.signDisplay
972
+ }), !$488c6ddbf4ef74c2$var$supportsUnit && this.options.style === "unit" && (e = {
973
+ ...e,
974
+ style: "unit",
975
+ unit: this.options.unit,
976
+ unitDisplay: this.options.unitDisplay
977
+ }), e;
978
+ }
979
+ constructor(e, i = {}) {
980
+ this.numberFormatter = $488c6ddbf4ef74c2$var$getCachedNumberFormatter(e, i), this.options = i;
981
+ }
982
+ };
983
+ function $488c6ddbf4ef74c2$var$getCachedNumberFormatter(e, i = {}) {
984
+ var _a;
985
+ let { numberingSystem: a } = i;
986
+ if (a && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${a}`), i.style === "unit" && !$488c6ddbf4ef74c2$var$supportsUnit) {
987
+ let { unit: e2, unitDisplay: a2 = "short" } = i;
988
+ if (!e2) throw Error('unit option must be provided with style: "unit"');
989
+ if (!((_a = $488c6ddbf4ef74c2$var$UNITS[e2]) == null ? void 0 : _a[a2])) throw Error(`Unsupported unit ${e2} with unitDisplay = ${a2}`);
990
+ i = {
991
+ ...i,
992
+ style: "decimal"
993
+ };
994
+ }
995
+ let o = e + (i ? Object.entries(i).sort((e2, i2) => e2[0] < i2[0] ? -1 : 1).join() : "");
996
+ if ($488c6ddbf4ef74c2$var$formatterCache.has(o)) return $488c6ddbf4ef74c2$var$formatterCache.get(o);
997
+ let s = new Intl.NumberFormat(e, i);
998
+ return $488c6ddbf4ef74c2$var$formatterCache.set(o, s), s;
986
999
  }
987
- function useTypeaheadSearch(e) {
988
- let i = useCallbackRef(e), a = import_react.useRef(""), o = import_react.useRef(0), s = import_react.useCallback((e2) => {
989
- let s2 = a.current + e2;
990
- i(s2), (function e3(i2) {
991
- a.current = i2, window.clearTimeout(o.current), i2 !== "" && (o.current = window.setTimeout(() => e3(""), 1e3));
992
- })(s2);
993
- }, [i]), c = import_react.useCallback(() => {
994
- a.current = "", window.clearTimeout(o.current);
995
- }, []);
996
- return import_react.useEffect(() => () => window.clearTimeout(o.current), []), [
997
- a,
998
- s,
999
- c
1000
- ];
1000
+ function $488c6ddbf4ef74c2$export$711b50b3c525e0f2(e, i, a) {
1001
+ if (i === "auto") return e.format(a);
1002
+ if (i === "never") return e.format(Math.abs(a));
1003
+ {
1004
+ let o = false;
1005
+ if (i === "always" ? o = a > 0 || Object.is(a, 0) : i === "exceptZero" && (Object.is(a, -0) || Object.is(a, 0) ? a = Math.abs(a) : o = a > 0), o) {
1006
+ let i2 = e.format(-a), o2 = e.format(a), s = i2.replace(o2, "").replace(/\u200e|\u061C/, "");
1007
+ return [...s].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), i2.replace(o2, "!!!").replace(s, "+").replace("!!!", o2);
1008
+ } else return e.format(a);
1009
+ }
1001
1010
  }
1002
- function findNextItem(e, i, a) {
1003
- let o = i.length > 1 && Array.from(i).every((e2) => e2 === i[0]) ? i[0] : i, s = a ? e.indexOf(a) : -1, c = wrapArray(e, Math.max(s, 0));
1004
- o.length === 1 && (c = c.filter((e2) => e2 !== a));
1005
- let l = c.find((e2) => e2.textValue.toLowerCase().startsWith(o.toLowerCase()));
1006
- return l === a ? void 0 : l;
1011
+ function $a916eb452884faea$export$b7a616150fdb9f44(e = {}) {
1012
+ let { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
1013
+ return (0, import_react.useMemo)(() => new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(i, e), [i, e]);
1007
1014
  }
1008
- function wrapArray(e, i) {
1009
- return e.map((a, o) => e[(i + o) % e.length]);
1015
+ function assertNever(e) {
1016
+ invariant(false, `Unexpected object: ${e}`);
1017
+ }
1018
+ function logNever(e) {
1019
+ return Logger.warn(`Unexpected object: ${JSON.stringify(e)}`), e;
1010
1020
  }
1011
- var Root2 = Select$1, Trigger = SelectTrigger$1, Value = SelectValue$1, Icon = SelectIcon, Portal$1 = SelectPortal$1, Content2 = SelectContent$1, Viewport = SelectViewport, Group = SelectGroup$1, Label$2 = SelectLabel$1, Item = SelectItem$1, ItemText = SelectItemText, ItemIndicator = SelectItemIndicator, ScrollUpButton = SelectScrollUpButton, ScrollDownButton = SelectScrollDownButton, Separator = SelectSeparator$1, import_compiler_runtime$3 = require_compiler_runtime();
1021
+ var import_compiler_runtime$3 = require_compiler_runtime();
1012
1022
  const menuContentCommon = cva("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md", { variants: { subcontent: { true: "shadow-lg" } } }), menuSubTriggerVariants = cva("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", { variants: { inset: { true: "pl-8" } } }), MENU_ITEM_DISABLED = "data-disabled:pointer-events-none data-disabled:opacity-50", menuControlVariants = cva(cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground", MENU_ITEM_DISABLED), { variants: {} }), menuControlCheckVariants = cva("absolute left-2 flex h-3.5 w-3.5 items-center justify-center", { variants: {} }), menuLabelVariants = cva("px-2 py-1.5 text-sm font-semibold", { variants: { inset: { true: "pl-8" } } }), menuItemVariants = cva(cn("menu-item relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden", MENU_ITEM_DISABLED), {
1013
1023
  variants: {
1014
1024
  inset: { true: "pl-8" },
@@ -1126,13 +1136,13 @@ var SelectLabel = import_react.forwardRef((e, i) => {
1126
1136
  let c;
1127
1137
  a[3] === o ? c = a[4] : (c = cn("px-2 py-1.5 text-sm font-semibold", o), a[3] = o, a[4] = c);
1128
1138
  let l;
1129
- return a[5] !== s || a[6] !== i || a[7] !== c ? (l = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label$2, {
1139
+ return a[5] !== s || a[6] !== i || a[7] !== c ? (l = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label$1, {
1130
1140
  ref: i,
1131
1141
  className: c,
1132
1142
  ...s
1133
1143
  }), a[5] = s, a[6] = i, a[7] = c, a[8] = l) : l = a[8], l;
1134
1144
  });
1135
- SelectLabel.displayName = Label$2.displayName;
1145
+ SelectLabel.displayName = Label$1.displayName;
1136
1146
  var SelectItem = import_react.forwardRef((e, i) => {
1137
1147
  let a = (0, import_compiler_runtime$1.c)(17), o, s, c, l;
1138
1148
  a[0] === e ? (o = a[1], s = a[2], c = a[3], l = a[4]) : ({ className: s, children: o, subtitle: l, ...c } = e, a[0] = e, a[1] = o, a[2] = s, a[3] = c, a[4] = l);
@@ -1204,47 +1214,7 @@ const Strings = {
1204
1214
  }
1205
1215
  }
1206
1216
  };
1207
- require_react_dom();
1208
- var Primitive = [
1209
- "a",
1210
- "button",
1211
- "div",
1212
- "form",
1213
- "h2",
1214
- "h3",
1215
- "img",
1216
- "input",
1217
- "label",
1218
- "li",
1219
- "nav",
1220
- "ol",
1221
- "p",
1222
- "select",
1223
- "span",
1224
- "svg",
1225
- "ul"
1226
- ].reduce((e, i) => {
1227
- let a = createSlot(`Primitive.${i}`), o = import_react.forwardRef((e2, o2) => {
1228
- let { asChild: s, ...c } = e2, l = s ? a : i;
1229
- return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = true), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(l, {
1230
- ...c,
1231
- ref: o2
1232
- });
1233
- });
1234
- return o.displayName = `Primitive.${i}`, {
1235
- ...e,
1236
- [i]: o
1237
- };
1238
- }, {}), NAME = "Label", Label$1 = import_react.forwardRef((e, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.label, {
1239
- ...e,
1240
- ref: i,
1241
- onMouseDown: (i2) => {
1242
- var _a;
1243
- i2.target.closest("button, input, select, textarea") || ((_a = e.onMouseDown) == null ? void 0 : _a.call(e, i2), !i2.defaultPrevented && i2.detail > 1 && i2.preventDefault());
1244
- }
1245
- }));
1246
- Label$1.displayName = NAME;
1247
- var Root = Label$1, import_compiler_runtime = require_compiler_runtime(), labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), Label = import_react.forwardRef((e, i) => {
1217
+ var import_compiler_runtime = require_compiler_runtime(), labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), Label = import_react.forwardRef((e, i) => {
1248
1218
  let a = (0, import_compiler_runtime.c)(9), o, s;
1249
1219
  a[0] === e ? (o = a[1], s = a[2]) : ({ className: o, ...s } = e, a[0] = e, a[1] = o, a[2] = s);
1250
1220
  let c;
@@ -1258,43 +1228,42 @@ var Root = Label$1, import_compiler_runtime = require_compiler_runtime(), labelV
1258
1228
  });
1259
1229
  Label.displayName = Root.displayName;
1260
1230
  export {
1261
- logNever as A,
1262
- Icon as C,
1263
- clamp as D,
1264
- createCollection as E,
1265
- $b5e257d569688ac6$export$535bd6ca7f90a273 as F,
1266
- $b5e257d569688ac6$export$619500959fc48b26 as I,
1267
- X as L,
1268
- $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 as M,
1269
- $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 as N,
1270
- usePrevious as O,
1271
- $18f2051aff69b9bf$export$a54013f0d02a8f82 as P,
1272
- ChevronUp as R,
1273
- menuSubTriggerVariants as S,
1274
- useDirection as T,
1275
- menuControlCheckVariants as _,
1276
- Select as a,
1277
- menuLabelVariants as b,
1278
- SelectItem as c,
1279
- SelectTrigger as d,
1280
- SelectValue as f,
1281
- menuContentCommon as g,
1282
- MENU_ITEM_DISABLED as h,
1283
- capitalize as i,
1284
- $a916eb452884faea$export$b7a616150fdb9f44 as j,
1285
- assertNever as k,
1286
- SelectLabel as l,
1287
- selectStyles as m,
1288
- Primitive as n,
1289
- SelectContent as o,
1290
- NativeSelect as p,
1291
- Strings as r,
1292
- SelectGroup as s,
1231
+ Icon as A,
1232
+ logNever as C,
1233
+ $18f2051aff69b9bf$export$a54013f0d02a8f82 as D,
1234
+ $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 as E,
1235
+ createCollection as F,
1236
+ X as I,
1237
+ ChevronUp as L,
1238
+ clamp as M,
1239
+ usePrevious as N,
1240
+ $b5e257d569688ac6$export$535bd6ca7f90a273 as O,
1241
+ useDirection as P,
1242
+ ChevronDown as R,
1243
+ assertNever as S,
1244
+ $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 as T,
1245
+ menuControlVariants as _,
1246
+ SelectContent as a,
1247
+ menuSeparatorVariants as b,
1248
+ SelectLabel as c,
1249
+ SelectValue as d,
1250
+ NativeSelect as f,
1251
+ menuControlCheckVariants as g,
1252
+ menuContentCommon as h,
1253
+ Select as i,
1254
+ Trigger as j,
1255
+ $b5e257d569688ac6$export$619500959fc48b26 as k,
1256
+ SelectSeparator as l,
1257
+ MENU_ITEM_DISABLED as m,
1258
+ Strings as n,
1259
+ SelectGroup as o,
1260
+ selectStyles as p,
1261
+ capitalize as r,
1262
+ SelectItem as s,
1293
1263
  Label as t,
1294
- SelectSeparator as u,
1295
- menuControlVariants as v,
1296
- Trigger as w,
1297
- menuSeparatorVariants as x,
1298
- menuItemVariants as y,
1299
- ChevronDown as z
1264
+ SelectTrigger as u,
1265
+ menuItemVariants as v,
1266
+ $a916eb452884faea$export$b7a616150fdb9f44 as w,
1267
+ menuSubTriggerVariants as x,
1268
+ menuLabelVariants as y
1300
1269
  };