@arcadeai/design-system 3.39.0 → 3.39.2

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 (425) hide show
  1. package/dist/CompositeItem-CniPsjzP.js +30 -0
  2. package/dist/CompositeList-yq5K_yj6.js +81 -0
  3. package/dist/CompositeRoot-Dy-5A-Je.js +206 -0
  4. package/dist/DialogRoot-DDokfJcO.js +57 -0
  5. package/dist/DialogTrigger-CFUE8YsM.js +402 -0
  6. package/dist/DirectionContext-BSOheMwC.js +10 -0
  7. package/dist/FieldItemContext-CF2fRwBC.js +12 -0
  8. package/dist/FloatingPortalLite-BHsRx4XN.js +29 -0
  9. package/dist/InternalBackdrop-BVEfe6O1.js +610 -0
  10. package/dist/LabelableContext-Dzw1DWuj.js +171 -0
  11. package/dist/Separator-CswSYAXX.js +25 -0
  12. package/dist/ToolbarRootContext-D7EsmJ5f.js +10 -0
  13. package/dist/andromeeda-B-gfN00q.js +4 -0
  14. package/dist/angular-html-dA1qUKRV.js +32 -0
  15. package/dist/angular-ts-CXyBC0vY.js +21 -0
  16. package/dist/apl-CjNiDgad.js +3 -3
  17. package/dist/assets/icons/telegram.js +10 -0
  18. package/dist/assets/images/arcade-grid.d.ts.map +1 -1
  19. package/dist/assets/images/arcade-grid.js +1 -0
  20. package/dist/assets/index.css +1 -1
  21. package/dist/assets/tokens.css +1 -1
  22. package/dist/assets/variables.css +1 -1
  23. package/dist/astro--3ZkKqYU.js +18 -0
  24. package/dist/astro-CFFExE8Q.js +5 -5
  25. package/dist/aurora-x-B56eICma.js +4 -0
  26. package/dist/ayu-dark-DJSOaKig.js +4 -0
  27. package/dist/ayu-light-BPfFt4v-.js +4 -0
  28. package/dist/ayu-mirage-DmPLRBj7.js +4 -0
  29. package/dist/blade-BoRuQEEj.js +20 -0
  30. package/dist/blade-D0HyNvCw.js +4 -4
  31. package/dist/c-C4SM8H98.js +6 -0
  32. package/dist/cairo-DM6WF2e3.js +1 -1
  33. package/dist/{calendar-DreAgQKY.js → calendar-CLEnvrbp.js} +483 -482
  34. package/dist/catppuccin-frappe-CA5k7W3u.js +4 -0
  35. package/dist/catppuccin-latte-CYfkUW5v.js +4 -0
  36. package/dist/catppuccin-macchiato-BOj_4I3g.js +4 -0
  37. package/dist/catppuccin-mocha-BXpUXme4.js +4 -0
  38. package/dist/clamp-BxE4ZAuA.js +17 -0
  39. package/dist/cobol-HihOMwht.js +1 -1
  40. package/dist/coffee-D8Swy5yR.js +8 -0
  41. package/dist/components/index.js +665 -644
  42. package/dist/components/ui/atoms/accordion.d.ts +9 -7
  43. package/dist/components/ui/atoms/accordion.d.ts.map +1 -1
  44. package/dist/components/ui/atoms/accordion.js +454 -243
  45. package/dist/components/ui/atoms/alert-dialog.d.ts +13 -9
  46. package/dist/components/ui/atoms/alert-dialog.d.ts.map +1 -1
  47. package/dist/components/ui/atoms/alert-dialog.js +149 -183
  48. package/dist/components/ui/atoms/alert.d.ts +2 -1
  49. package/dist/components/ui/atoms/alert.d.ts.map +1 -1
  50. package/dist/components/ui/atoms/alert.js +36 -25
  51. package/dist/components/ui/atoms/avatar.d.ts +10 -5
  52. package/dist/components/ui/atoms/avatar.d.ts.map +1 -1
  53. package/dist/components/ui/atoms/avatar.js +198 -205
  54. package/dist/components/ui/atoms/badge.d.ts +4 -5
  55. package/dist/components/ui/atoms/badge.d.ts.map +1 -1
  56. package/dist/components/ui/atoms/badge.js +31 -22
  57. package/dist/components/ui/atoms/breadcrumb.d.ts +4 -5
  58. package/dist/components/ui/atoms/breadcrumb.d.ts.map +1 -1
  59. package/dist/components/ui/atoms/breadcrumb.js +46 -29
  60. package/dist/components/ui/atoms/button.d.ts +4 -6
  61. package/dist/components/ui/atoms/button.d.ts.map +1 -1
  62. package/dist/components/ui/atoms/button.js +59 -28
  63. package/dist/components/ui/atoms/byoc-badge.d.ts +2 -2
  64. package/dist/components/ui/atoms/byoc-badge.d.ts.map +1 -1
  65. package/dist/components/ui/atoms/byoc-badge.js +14 -8
  66. package/dist/components/ui/atoms/calendar.d.ts +6 -16
  67. package/dist/components/ui/atoms/calendar.d.ts.map +1 -1
  68. package/dist/components/ui/atoms/calendar.js +1 -1
  69. package/dist/components/ui/atoms/card.d.ts +4 -2
  70. package/dist/components/ui/atoms/card.d.ts.map +1 -1
  71. package/dist/components/ui/atoms/card.js +46 -35
  72. package/dist/components/ui/atoms/chart.d.ts +24 -48
  73. package/dist/components/ui/atoms/chart.d.ts.map +1 -1
  74. package/dist/components/ui/atoms/chart.js +179 -148
  75. package/dist/components/ui/atoms/checkbox.d.ts +2 -3
  76. package/dist/components/ui/atoms/checkbox.d.ts.map +1 -1
  77. package/dist/components/ui/atoms/checkbox.js +269 -249
  78. package/dist/components/ui/atoms/code-block.js +1 -1
  79. package/dist/components/ui/atoms/collapsible.d.ts +5 -5
  80. package/dist/components/ui/atoms/collapsible.d.ts.map +1 -1
  81. package/dist/components/ui/atoms/collapsible.js +208 -23
  82. package/dist/components/ui/atoms/command.d.ts +4 -3
  83. package/dist/components/ui/atoms/command.d.ts.map +1 -1
  84. package/dist/components/ui/atoms/command.js +1655 -348
  85. package/dist/components/ui/atoms/dialog.d.ts +12 -10
  86. package/dist/components/ui/atoms/dialog.d.ts.map +1 -1
  87. package/dist/components/ui/atoms/dialog.js +91 -80
  88. package/dist/components/ui/atoms/dropdown-menu.d.ts +21 -17
  89. package/dist/components/ui/atoms/dropdown-menu.d.ts.map +1 -1
  90. package/dist/components/ui/atoms/dropdown-menu.js +1507 -899
  91. package/dist/components/ui/atoms/form.d.ts +5 -3
  92. package/dist/components/ui/atoms/form.d.ts.map +1 -1
  93. package/dist/components/ui/atoms/form.js +36 -42
  94. package/dist/components/ui/atoms/hover-card.d.ts +5 -6
  95. package/dist/components/ui/atoms/hover-card.d.ts.map +1 -1
  96. package/dist/components/ui/atoms/hover-card.js +355 -193
  97. package/dist/components/ui/atoms/icons/index.d.ts +1 -0
  98. package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
  99. package/dist/components/ui/atoms/icons/index.js +58 -56
  100. package/dist/components/ui/atoms/icons/telegram.d.ts +4 -0
  101. package/dist/components/ui/atoms/icons/telegram.d.ts.map +1 -0
  102. package/dist/components/ui/atoms/icons/telegram.js +37 -0
  103. package/dist/components/ui/atoms/index.d.ts +1 -0
  104. package/dist/components/ui/atoms/index.d.ts.map +1 -1
  105. package/dist/components/ui/atoms/index.js +566 -545
  106. package/dist/components/ui/atoms/input-group.d.ts +20 -0
  107. package/dist/components/ui/atoms/input-group.d.ts.map +1 -0
  108. package/dist/components/ui/atoms/input-group.js +136 -0
  109. package/dist/components/ui/atoms/input.d.ts.map +1 -1
  110. package/dist/components/ui/atoms/input.js +113 -13
  111. package/dist/components/ui/atoms/label.d.ts +1 -2
  112. package/dist/components/ui/atoms/label.d.ts.map +1 -1
  113. package/dist/components/ui/atoms/label.js +18 -31
  114. package/dist/components/ui/atoms/markdown.js +1 -1
  115. package/dist/components/ui/atoms/mobile-tooltip.js +4 -3
  116. package/dist/components/ui/atoms/popover.d.ts +8 -6
  117. package/dist/components/ui/atoms/popover.d.ts.map +1 -1
  118. package/dist/components/ui/atoms/popover.js +617 -245
  119. package/dist/components/ui/atoms/pro-badge.js +1 -1
  120. package/dist/components/ui/atoms/progress.d.ts +7 -4
  121. package/dist/components/ui/atoms/progress.d.ts.map +1 -1
  122. package/dist/components/ui/atoms/progress.js +236 -92
  123. package/dist/components/ui/atoms/radio-group.d.ts +4 -4
  124. package/dist/components/ui/atoms/radio-group.d.ts.map +1 -1
  125. package/dist/components/ui/atoms/radio-group.js +355 -251
  126. package/dist/components/ui/atoms/resizable.d.ts +3 -4
  127. package/dist/components/ui/atoms/resizable.d.ts.map +1 -1
  128. package/dist/components/ui/atoms/resizable.js +25 -27
  129. package/dist/components/ui/atoms/scroll-area.d.ts +5 -5
  130. package/dist/components/ui/atoms/scroll-area.d.ts.map +1 -1
  131. package/dist/components/ui/atoms/scroll-area.js +611 -526
  132. package/dist/components/ui/atoms/scroll-button.d.ts.map +1 -1
  133. package/dist/components/ui/atoms/scroll-button.js +27 -22
  134. package/dist/components/ui/atoms/select.d.ts +11 -11
  135. package/dist/components/ui/atoms/select.d.ts.map +1 -1
  136. package/dist/components/ui/atoms/select.js +1525 -889
  137. package/dist/components/ui/atoms/separator.d.ts +2 -3
  138. package/dist/components/ui/atoms/separator.d.ts.map +1 -1
  139. package/dist/components/ui/atoms/separator.js +16 -35
  140. package/dist/components/ui/atoms/sheet.d.ts +9 -9
  141. package/dist/components/ui/atoms/sheet.d.ts.map +1 -1
  142. package/dist/components/ui/atoms/sheet.js +65 -64
  143. package/dist/components/ui/atoms/sidebar.d.ts +9 -15
  144. package/dist/components/ui/atoms/sidebar.d.ts.map +1 -1
  145. package/dist/components/ui/atoms/sidebar.js +288 -283
  146. package/dist/components/ui/atoms/skeleton.js +4 -4
  147. package/dist/components/ui/atoms/slider.d.ts +2 -3
  148. package/dist/components/ui/atoms/slider.d.ts.map +1 -1
  149. package/dist/components/ui/atoms/slider.js +886 -440
  150. package/dist/components/ui/atoms/switch.d.ts +4 -5
  151. package/dist/components/ui/atoms/switch.d.ts.map +1 -1
  152. package/dist/components/ui/atoms/switch.js +218 -151
  153. package/dist/components/ui/atoms/table.d.ts +2 -4
  154. package/dist/components/ui/atoms/table.d.ts.map +1 -1
  155. package/dist/components/ui/atoms/table.js +35 -36
  156. package/dist/components/ui/atoms/tabs.d.ts +11 -7
  157. package/dist/components/ui/atoms/tabs.d.ts.map +1 -1
  158. package/dist/components/ui/atoms/tabs.js +492 -186
  159. package/dist/components/ui/atoms/textarea.d.ts.map +1 -1
  160. package/dist/components/ui/atoms/textarea.js +7 -7
  161. package/dist/components/ui/atoms/toggle.d.ts +2 -3
  162. package/dist/components/ui/atoms/toggle.d.ts.map +1 -1
  163. package/dist/components/ui/atoms/toggle.js +92 -45
  164. package/dist/components/ui/atoms/tooltip.d.ts +6 -9
  165. package/dist/components/ui/atoms/tooltip.d.ts.map +1 -1
  166. package/dist/components/ui/atoms/tooltip.js +625 -343
  167. package/dist/components/ui/atoms/view-tools-control.js +16 -15
  168. package/dist/components/ui/atoms/virtualized-grid.d.ts +11 -4
  169. package/dist/components/ui/atoms/virtualized-grid.d.ts.map +1 -1
  170. package/dist/components/ui/atoms/virtualized-grid.js +365 -333
  171. package/dist/components/ui/index.js +665 -644
  172. package/dist/components/ui/molecules/chat-history-item.d.ts.map +1 -1
  173. package/dist/components/ui/molecules/chat-history-item.js +47 -40
  174. package/dist/components/ui/molecules/command-bar.js +1 -1
  175. package/dist/components/ui/molecules/confirm-popover.d.ts +2 -2
  176. package/dist/components/ui/molecules/confirm-popover.d.ts.map +1 -1
  177. package/dist/components/ui/molecules/confirm-popover.js +26 -24
  178. package/dist/components/ui/molecules/date-time-picker.d.ts.map +1 -1
  179. package/dist/components/ui/molecules/date-time-picker.js +17 -11
  180. package/dist/components/ui/molecules/index.js +1 -1
  181. package/dist/components/ui/molecules/message.d.ts +2 -3
  182. package/dist/components/ui/molecules/message.d.ts.map +1 -1
  183. package/dist/components/ui/molecules/message.js +10 -16
  184. package/dist/components/ui/molecules/prompt-input.d.ts +1 -1
  185. package/dist/components/ui/molecules/prompt-input.d.ts.map +1 -1
  186. package/dist/components/ui/molecules/prompt-input.js +21 -22
  187. package/dist/components/ui/molecules/requirement-badges.d.ts.map +1 -1
  188. package/dist/components/ui/molecules/requirement-badges.js +3 -3
  189. package/dist/components/ui/molecules/steps-progress.js +1 -0
  190. package/dist/components/ui/molecules/tool-call-accordion.js +1 -0
  191. package/dist/components/ui/molecules/tool-card.d.ts.map +1 -1
  192. package/dist/components/ui/molecules/tool-card.js +60 -47
  193. package/dist/components/ui/molecules/toolkit-card.d.ts.map +1 -1
  194. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  195. package/dist/components/ui/molecules/user-nav.d.ts.map +1 -1
  196. package/dist/components/ui/molecules/user-nav.js +62 -57
  197. package/dist/components/ui/templates/auth-template.js +5 -5
  198. package/dist/composite-BASdnlNo.js +220 -0
  199. package/dist/composite-BSpUD7nI.js +66 -0
  200. package/dist/cpp-CA4iM_wM.js +18 -0
  201. package/dist/createBaseUIEventDetails-CqidROtw.js +55 -0
  202. package/dist/crystal-CRJyc4G-.js +4 -4
  203. package/dist/css-M7EaDHN_.js +6 -0
  204. package/dist/csv-B7yqA61e.js +6 -0
  205. package/dist/dark-plus-B4vfALTw.js +4 -0
  206. package/dist/detectBrowser-Dn2N72k1.js +42 -0
  207. package/dist/dracula-Cb59ZzY3.js +4 -0
  208. package/dist/dracula-soft-aaEmszbU.js +4 -0
  209. package/dist/edge-BYQkOzbF.js +1 -1
  210. package/dist/element-DSo91iOi.js +88 -0
  211. package/dist/elm-BtNbw_Cd.js +1 -1
  212. package/dist/erlang-DNcDT8Hi.js +1 -1
  213. package/dist/event-BCa0Un_3.js +30 -0
  214. package/dist/everforest-dark-CLp_21RJ.js +4 -0
  215. package/dist/everforest-light-CZ0NCAAv.js +4 -0
  216. package/dist/floating-ui.utils-48URp89E.js +126 -0
  217. package/dist/floating-ui.utils.dom-jr2suqy2.js +135 -0
  218. package/dist/fsharp-CYOiIVNx.js +1 -1
  219. package/dist/getDisabledMountTransitionStyles-fmnaQYVj.js +1539 -0
  220. package/dist/getPseudoElementBounds-B4_miSEJ.js +364 -0
  221. package/dist/git-rebase-ZWUFO_T4.js +1 -1
  222. package/dist/github-dark-BD3lImVS.js +4 -0
  223. package/dist/github-dark-default-ID_nBUwl.js +4 -0
  224. package/dist/github-dark-dimmed-Cw4rFgde.js +4 -0
  225. package/dist/github-dark-high-contrast-DSby9de8.js +4 -0
  226. package/dist/github-light-W396yAFe.js +4 -0
  227. package/dist/github-light-default-DCAQ2px1.js +4 -0
  228. package/dist/github-light-high-contrast-ChWJGEvx.js +4 -0
  229. package/dist/glimmer-js-DkxNrfPT.js +2 -2
  230. package/dist/glimmer-ts-D6YZEmK_.js +2 -2
  231. package/dist/glsl-CgdqkyFp.js +8 -0
  232. package/dist/graphql-Bv26LTzG.js +14 -0
  233. package/dist/gruvbox-dark-hard-BC1GRqFa.js +4 -0
  234. package/dist/gruvbox-dark-medium-COLy2cDY.js +4 -0
  235. package/dist/gruvbox-dark-soft-B8MALL4f.js +4 -0
  236. package/dist/gruvbox-light-hard-Bzxr_AnB.js +4 -0
  237. package/dist/gruvbox-light-medium-D2fqu3Kj.js +4 -0
  238. package/dist/gruvbox-light-soft-atzRH3-n.js +4 -0
  239. package/dist/hack-ItRNKiEb.js +1 -1
  240. package/dist/haml-B1t5q1Sv.js +10 -0
  241. package/dist/haml-NZLVzu_R.js +1 -1
  242. package/dist/handlebars-B2fb61mr.js +14 -0
  243. package/dist/handlebars-mxStpSE7.js +2 -2
  244. package/dist/highlighted-body-OFNGDK62-Df6AJMbs.js +20 -0
  245. package/dist/hooks/use-mobile.d.ts.map +1 -1
  246. package/dist/hooks/use-mobile.js +11 -12
  247. package/dist/horizon-PFtq58ZB.js +4 -0
  248. package/dist/horizon-bright-2WzHy-Vo.js +4 -0
  249. package/dist/houston-BEqUWhHr.js +4 -0
  250. package/dist/html-B50bmoVb.js +1 -1
  251. package/dist/html-CPZ3oZQ7.js +10 -0
  252. package/dist/html-derivative-B2qv7eyt.js +8 -0
  253. package/dist/http-BQ2t9cn1.js +14 -0
  254. package/dist/hurl-RyCMCa80.js +12 -0
  255. package/dist/imba-DpB-wtPB.js +6 -0
  256. package/dist/index-3rscXtm3.js +4708 -0
  257. package/dist/inertValue-kpZZDBEy.js +7 -0
  258. package/dist/integrations/rhf/index.js +6 -5
  259. package/dist/isElementDisabled-Cbd8W9kH.js +6 -0
  260. package/dist/java-CbphP4lz.js +6 -0
  261. package/dist/javascript-CgYd5l7W.js +6 -0
  262. package/dist/jinja-DFCUirAg.js +11 -0
  263. package/dist/jison-CTEI_s6O.js +8 -0
  264. package/dist/json-B5-prx4F.js +6 -0
  265. package/dist/json5-CZ8R1oUY.js +6 -0
  266. package/dist/jsonc-DMboCKBJ.js +6 -0
  267. package/dist/jsonl-YgIUi4Dg.js +6 -0
  268. package/dist/jsx-D4q4E1UD.js +6 -0
  269. package/dist/julia-2ubi2n9a.js +16 -0
  270. package/dist/just-CEK2SJ_k.js +4 -4
  271. package/dist/kanagawa-dragon-DuYaOBBk.js +4 -0
  272. package/dist/kanagawa-lotus-CyjAihYC.js +4 -0
  273. package/dist/kanagawa-wave-BVdXUMj5.js +4 -0
  274. package/dist/laserwave-B_2VVKNJ.js +4 -0
  275. package/dist/less-MoGo8xoS.js +6 -0
  276. package/dist/light-plus-IB4fPeJj.js +4 -0
  277. package/dist/liquid-CHzkx3jT.js +2 -2
  278. package/dist/lua-Bp3IRv7I.js +1 -1
  279. package/dist/main.js +691 -670
  280. package/dist/markdown-B-zRtm0x.js +6 -0
  281. package/dist/{markdown-D0xxRbwP.js → markdown-B71Eurda.js} +10329 -8108
  282. package/dist/marko-BlmC3dqW.js +14 -0
  283. package/dist/marko-CJBA24Ri.js +2 -2
  284. package/dist/material-theme-CjsSdYF2.js +4 -0
  285. package/dist/material-theme-darker-DEk0vgdS.js +4 -0
  286. package/dist/material-theme-lighter-DEVB_7K5.js +4 -0
  287. package/dist/material-theme-ocean-DK6jm24j.js +4 -0
  288. package/dist/material-theme-palenight-CNkXNpHv.js +4 -0
  289. package/dist/mdc-C9YSUwVC.js +2 -2
  290. package/dist/mdc-CLNk3q28.js +12 -0
  291. package/dist/mdx-CiUWpBB_.js +6 -0
  292. package/dist/mermaid-GHXKKRXX-BkplG-MI.js +5 -0
  293. package/dist/metadata/toolkit-icons.d.ts.map +1 -1
  294. package/dist/metadata/toolkit-icons.js +40 -38
  295. package/dist/metadata/toolkits.d.ts.map +1 -1
  296. package/dist/metadata/toolkits.js +13 -0
  297. package/dist/min-dark-CJcHUHwu.js +4 -0
  298. package/dist/min-light-BAN2UR75.js +4 -0
  299. package/dist/monokai-BbXwpjKl.js +4 -0
  300. package/dist/night-owl-csViJ7u4.js +4 -0
  301. package/dist/night-owl-light-BC-NuMC3.js +4 -0
  302. package/dist/nim-QAjRdh9w.js +5 -5
  303. package/dist/nord-B8Sq-VQ0.js +4 -0
  304. package/dist/one-dark-pro-DTdrcl-J.js +4 -0
  305. package/dist/one-light-kPHTChCU.js +4 -0
  306. package/dist/owner-rKN292Q9.js +6 -0
  307. package/dist/perl-DkVrgJBg.js +3 -3
  308. package/dist/php-BIzsF_5x.js +4 -4
  309. package/dist/php-Kn-vgdBD.js +18 -0
  310. package/dist/plastic-DDweBgVs.js +4 -0
  311. package/dist/poimandres-Dqvs16BQ.js +4 -0
  312. package/dist/popupStateMapping-BT9Y_jIq.js +1849 -0
  313. package/dist/postcss-CwL8bLZI.js +6 -0
  314. package/dist/pug-CTOOvSEH.js +12 -0
  315. package/dist/pug-XOw9Q1Ho.js +1 -1
  316. package/dist/python-jjYlTiSH.js +6 -0
  317. package/dist/qml-rTNXsquU.js +1 -1
  318. package/dist/r-C8zl4zMO.js +6 -0
  319. package/dist/react-resizable-panels-BqIpIFl2.js +2017 -0
  320. package/dist/red-DBDwQkX-.js +4 -0
  321. package/dist/regexp-Dpy_RgoJ.js +6 -0
  322. package/dist/resolveAriaLabelledBy-B5vw-szP.js +11 -0
  323. package/dist/rose-pine-DGHrTu7e.js +4 -0
  324. package/dist/rose-pine-dawn-DfRVdapG.js +4 -0
  325. package/dist/rose-pine-moon-DFpJm5Rd.js +4 -0
  326. package/dist/rst-DM32Wy3O.js +5 -5
  327. package/dist/ruby-BeqCs27h.js +8 -8
  328. package/dist/safePolygon-CJcmMc0u.js +389 -0
  329. package/dist/safeReact-DKq-628G.js +7 -0
  330. package/dist/sas-fpEvgATw.js +1 -1
  331. package/dist/sass-BmupNt-w.js +6 -0
  332. package/dist/scss-BZYVIVaN.js +8 -0
  333. package/dist/serializeValue-BebmSzW3.js +14 -0
  334. package/dist/shellscript-fMxXshxv.js +6 -0
  335. package/dist/shellsession-DiDJNQdy.js +1 -1
  336. package/dist/slack-dark-noeC6QPl.js +4 -0
  337. package/dist/slack-ochin-3_2idqLR.js +4 -0
  338. package/dist/snazzy-light-B9cV359v.js +4 -0
  339. package/dist/solarized-dark-B6X0ILWr.js +4 -0
  340. package/dist/solarized-light-LxOemn3c.js +4 -0
  341. package/dist/sql-D30Zid36.js +6 -0
  342. package/dist/stata-B8c5fTjX.js +1 -1
  343. package/dist/styles-DU5BO7fS.js +16 -0
  344. package/dist/stylus-BoBcEBjx.js +6 -0
  345. package/dist/surrealql-CQi7GQN7.js +1 -1
  346. package/dist/svelte-b9PAcyUe.js +14 -0
  347. package/dist/svelte-rYri41WT.js +3 -3
  348. package/dist/synthwave-84-DzQeMpV0.js +4 -0
  349. package/dist/templ-Crs9Ui8q.js +1 -1
  350. package/dist/tex-AHxmLTL0.js +1 -1
  351. package/dist/tokyo-night-CLM-V_Re.js +4 -0
  352. package/dist/{toolkit-card-CB1oiaei.js → toolkit-card-DhpOY80l.js} +56 -36
  353. package/dist/ts-tags-CP1b-4Z2.js +41 -0
  354. package/dist/ts-tags-ioVe2PKw.js +5 -5
  355. package/dist/tsx-QNpb2qLW.js +6 -0
  356. package/dist/twig-DwV2Fi4L.js +2 -2
  357. package/dist/typescript-AhniRyfZ.js +6 -0
  358. package/dist/useAnimationFrame-DIc6eFHa.js +69 -0
  359. package/dist/useAriaLabelledBy-VklrCmKp.js +34 -0
  360. package/dist/useBaseUiId-C8Dq0BQq.js +25 -0
  361. package/dist/useButton-JYPKQKj4.js +150 -0
  362. package/dist/useCollapsiblePanel-9pDlDh3R.js +257 -0
  363. package/dist/useCompositeItem-D00ALGkT.js +35 -0
  364. package/dist/useCompositeListItem-CYQrZg5-.js +74 -0
  365. package/dist/useControlled-Sx-_x7Sz.js +32 -0
  366. package/dist/useFocus-Aj9ShMQu.js +97 -0
  367. package/dist/useIsoLayoutEffect-DpJo20by.js +7 -0
  368. package/dist/useLabelableId-DF_d91GP.js +44 -0
  369. package/dist/useOnFirstRender-B4aruaIA.js +9 -0
  370. package/dist/useOnMount-JHtE6teb.js +9 -0
  371. package/dist/useOpenChangeComplete-DkeH9FGJ.js +130 -0
  372. package/dist/useRender-BNXBkp2o.js +7 -0
  373. package/dist/useRenderElement-DNB2vtF1.js +274 -0
  374. package/dist/useRole-N-RCRzo1.js +76 -0
  375. package/dist/useStableCallback-CudqoENs.js +33 -0
  376. package/dist/useSyncedFloatingRootContext-Bc90zSTy.js +185 -0
  377. package/dist/useTimeout-DAqPwigF.js +33 -0
  378. package/dist/useValueAsRef-LhoZc6As.js +20 -0
  379. package/dist/useValueChanged-Bissqjjn.js +15 -0
  380. package/dist/valueToPercent-BBgE4D3L.js +27 -0
  381. package/dist/vesper-BmV7KiQ0.js +4 -0
  382. package/dist/visuallyHidden-PuyyGHVF.js +22 -0
  383. package/dist/vitesse-black-CxZz3C4s.js +4 -0
  384. package/dist/vitesse-dark-DVUJ0sy2.js +4 -0
  385. package/dist/vitesse-light-BDJohtUr.js +4 -0
  386. package/dist/vue-CY6W2ID0.js +31 -0
  387. package/dist/vue-DXEmyXn9.js +3 -3
  388. package/dist/vue-html-DYXHAJ2G.js +8 -0
  389. package/dist/vue-vine-D41-N99t.js +4 -4
  390. package/dist/vue-vine-DiWTpMwZ.js +18 -0
  391. package/dist/wasm-3y0A1Y71.js +6 -0
  392. package/dist/wasm-Dm9SFfrx.js +7 -0
  393. package/dist/web-BbvN_Lei.js +2846 -0
  394. package/dist/wgsl-SXl3EZUN.js +6 -0
  395. package/dist/wit-Cw0CTVY0.js +6 -0
  396. package/dist/xml-CNXGTZ6Z.js +8 -0
  397. package/dist/xsl-BmSZphgC.js +1 -1
  398. package/dist/yaml-DZqZ2PBD.js +6 -0
  399. package/package.json +37 -34
  400. package/dist/highlighted-body-TPN3WLV5-D6UnKGod.js +0 -19
  401. package/dist/index-0ioNhtNM.js +0 -10
  402. package/dist/index-437EL2iq.js +0 -52
  403. package/dist/index-B695uy69.js +0 -9
  404. package/dist/index-BEZCAdXQ.js +0 -1568
  405. package/dist/index-BGQepRFJ.js +0 -27
  406. package/dist/index-BZPx6jYI.js +0 -8
  407. package/dist/index-BaLuVb4t.js +0 -70
  408. package/dist/index-Bw62B28F.js +0 -31
  409. package/dist/index-By-GFSsC.js +0 -245
  410. package/dist/index-ByaXH_ih.js +0 -10
  411. package/dist/index-CCKe-Mpx.js +0 -6
  412. package/dist/index-Cv867SGx.js +0 -13
  413. package/dist/index-CvA4FcaC.js +0 -677
  414. package/dist/index-D2LZVjSn.js +0 -82
  415. package/dist/index-DFZozV_h.js +0 -68
  416. package/dist/index-DJQkmo5O.js +0 -49
  417. package/dist/index-DLohNuco.js +0 -36
  418. package/dist/index-DrFfdHac.js +0 -144
  419. package/dist/index-DrlYGDRT.js +0 -119
  420. package/dist/index-Dz8CQngS.js +0 -181
  421. package/dist/index-cd1ceFJg.js +0 -6973
  422. package/dist/index-rKs9bXHr.js +0 -6
  423. package/dist/mermaid-O7DHMXV3-gUrB-Xs1.js +0 -4
  424. package/dist/react-resizable-panels.browser-DYl0LXfw.js +0 -1510
  425. package/dist/web-BwFNdl01.js +0 -697
@@ -1,79 +1,1385 @@
1
- import { jsx as x, jsxs as le } from "react/jsx-runtime";
2
- import { R as Re, P as _e, O as Ae, a as $e } from "../../../index-By-GFSsC.js";
3
- import * as l from "react";
4
- import "react-dom";
5
- import { b as O } from "../../../index-D2LZVjSn.js";
6
- import { u as V } from "../../../index-Cv867SGx.js";
7
- import { SearchIcon as De } from "lucide-react";
8
- import { Dialog as Ne, DialogHeader as Pe, DialogTitle as Me, DialogDescription as je, DialogContent as Le } from "./dialog.js";
9
- import { cn as _ } from "../../../lib/utils.js";
10
- var ve = 1, Ve = 0.9, Oe = 0.8, Fe = 0.17, te = 0.1, re = 0.999, Ke = 0.9999, ze = 0.99, Te = /[\\\/_+.#"@\[\(\{&]/, qe = /[\\\/_+.#"@\[\(\{&]/g, We = /[\s-]/, be = /[\s-]/g;
11
- function ae(e, t, r, i, a, o, d) {
12
- if (o === t.length) return a === e.length ? ve : ze;
13
- var m = `${a},${o}`;
14
- if (d[m] !== void 0) return d[m];
15
- for (var p = i.charAt(o), c = r.indexOf(p, a), v = 0, h, S, k, I; c >= 0; ) h = ae(e, t, r, i, c + 1, o + 1, d), h > v && (c === a ? h *= ve : Te.test(e.charAt(c - 1)) ? (h *= Oe, k = e.slice(a, c - 1).match(qe), k && a > 0 && (h *= Math.pow(re, k.length))) : We.test(e.charAt(c - 1)) ? (h *= Ve, I = e.slice(a, c - 1).match(be), I && a > 0 && (h *= Math.pow(re, I.length))) : (h *= Fe, a > 0 && (h *= Math.pow(re, c - a))), e.charAt(c) !== t.charAt(o) && (h *= Ke)), (h < te && r.charAt(c - 1) === i.charAt(o + 1) || i.charAt(o + 1) === i.charAt(o) && r.charAt(c - 1) !== i.charAt(o)) && (S = ae(e, t, r, i, c + 1, o + 2, d), S * te > h && (h = S * te)), h > v && (v = h), c = r.indexOf(p, c + 1);
16
- return d[m] = v, v;
17
- }
18
- function ge(e) {
19
- return e.toLowerCase().replace(be, " ");
20
- }
21
- function Be(e, t, r) {
22
- return e = r && r.length > 0 ? `${e + " " + r.join(" ")}` : e, ae(e, t, ge(e), ge(t), 0, 0, {});
23
- }
24
- var He = /* @__PURE__ */ Symbol.for("react.lazy"), W = l[" use ".trim().toString()];
25
- function Ge(e) {
1
+ "use client";
2
+ import { jsx as b, jsxs as le, Fragment as Ze } from "react/jsx-runtime";
3
+ import * as a from "react";
4
+ import { useState as Zt } from "react";
5
+ import * as Qt from "react-dom";
6
+ import Jt from "react-dom";
7
+ import { SearchIcon as en } from "lucide-react";
8
+ import { Dialog as tn, DialogHeader as nn, DialogTitle as rn, DialogDescription as on, DialogContent as an } from "./dialog.js";
9
+ import { cn as B } from "../../../lib/utils.js";
10
+ var Qe = 1, cn = 0.9, ln = 0.8, un = 0.17, Ne = 0.1, Oe = 0.999, sn = 0.9999, dn = 0.99, fn = /[\\\/_+.#"@\[\(\{&]/, vn = /[\\\/_+.#"@\[\(\{&]/g, mn = /[\s-]/, mt = /[\s-]/g;
11
+ function We(e, t, n, r, o, i, l) {
12
+ if (i === t.length) return o === e.length ? Qe : dn;
13
+ var c = `${o},${i}`;
14
+ if (l[c] !== void 0) return l[c];
15
+ for (var d = r.charAt(i), u = n.indexOf(d, o), f = 0, v, p, h, D; u >= 0; ) v = We(e, t, n, r, u + 1, i + 1, l), v > f && (u === o ? v *= Qe : fn.test(e.charAt(u - 1)) ? (v *= ln, h = e.slice(o, u - 1).match(vn), h && o > 0 && (v *= Math.pow(Oe, h.length))) : mn.test(e.charAt(u - 1)) ? (v *= cn, D = e.slice(o, u - 1).match(mt), D && o > 0 && (v *= Math.pow(Oe, D.length))) : (v *= un, o > 0 && (v *= Math.pow(Oe, u - o))), e.charAt(u) !== t.charAt(i) && (v *= sn)), (v < Ne && n.charAt(u - 1) === r.charAt(i + 1) || r.charAt(i + 1) === r.charAt(i) && n.charAt(u - 1) !== r.charAt(i)) && (p = We(e, t, n, r, u + 1, i + 2, l), p * Ne > v && (v = p * Ne)), v > f && (f = v), u = n.indexOf(d, u + 1);
16
+ return l[c] = f, f;
17
+ }
18
+ function Je(e) {
19
+ return e.toLowerCase().replace(mt, " ");
20
+ }
21
+ function pn(e, t, n) {
22
+ return e = n && n.length > 0 ? `${e + " " + n.join(" ")}` : e, We(e, t, Je(e), Je(t), 0, 0, {});
23
+ }
24
+ function K(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
25
+ return function(o) {
26
+ if (e?.(o), n === !1 || !o.defaultPrevented)
27
+ return t?.(o);
28
+ };
29
+ }
30
+ function et(e, t) {
31
+ if (typeof e == "function")
32
+ return e(t);
33
+ e != null && (e.current = t);
34
+ }
35
+ function H(...e) {
36
+ return (t) => {
37
+ let n = !1;
38
+ const r = e.map((o) => {
39
+ const i = et(o, t);
40
+ return !n && typeof i == "function" && (n = !0), i;
41
+ });
42
+ if (n)
43
+ return () => {
44
+ for (let o = 0; o < r.length; o++) {
45
+ const i = r[o];
46
+ typeof i == "function" ? i() : et(e[o], null);
47
+ }
48
+ };
49
+ };
50
+ }
51
+ function q(...e) {
52
+ return a.useCallback(H(...e), e);
53
+ }
54
+ function hn(e, t) {
55
+ const n = a.createContext(t), r = (i) => {
56
+ const { children: l, ...c } = i, d = a.useMemo(() => c, Object.values(c));
57
+ return /* @__PURE__ */ b(n.Provider, { value: d, children: l });
58
+ };
59
+ r.displayName = e + "Provider";
60
+ function o(i) {
61
+ const l = a.useContext(n);
62
+ if (l) return l;
63
+ if (t !== void 0) return t;
64
+ throw new Error(`\`${i}\` must be used within \`${e}\``);
65
+ }
66
+ return [r, o];
67
+ }
68
+ function gn(e, t = []) {
69
+ let n = [];
70
+ function r(i, l) {
71
+ const c = a.createContext(l), d = n.length;
72
+ n = [...n, l];
73
+ const u = (v) => {
74
+ const { scope: p, children: h, ...D } = v, m = p?.[e]?.[d] || c, y = a.useMemo(() => D, Object.values(D));
75
+ return /* @__PURE__ */ b(m.Provider, { value: y, children: h });
76
+ };
77
+ u.displayName = i + "Provider";
78
+ function f(v, p) {
79
+ const h = p?.[e]?.[d] || c, D = a.useContext(h);
80
+ if (D) return D;
81
+ if (l !== void 0) return l;
82
+ throw new Error(`\`${v}\` must be used within \`${i}\``);
83
+ }
84
+ return [u, f];
85
+ }
86
+ const o = () => {
87
+ const i = n.map((l) => a.createContext(l));
88
+ return function(c) {
89
+ const d = c?.[e] || i;
90
+ return a.useMemo(
91
+ () => ({ [`__scope${e}`]: { ...c, [e]: d } }),
92
+ [c, d]
93
+ );
94
+ };
95
+ };
96
+ return o.scopeName = e, [r, yn(o, ...t)];
97
+ }
98
+ function yn(...e) {
99
+ const t = e[0];
100
+ if (e.length === 1) return t;
101
+ const n = () => {
102
+ const r = e.map((o) => ({
103
+ useScope: o(),
104
+ scopeName: o.scopeName
105
+ }));
106
+ return function(i) {
107
+ const l = r.reduce((c, { useScope: d, scopeName: u }) => {
108
+ const v = d(i)[`__scope${u}`];
109
+ return { ...c, ...v };
110
+ }, {});
111
+ return a.useMemo(() => ({ [`__scope${t.scopeName}`]: l }), [l]);
112
+ };
113
+ };
114
+ return n.scopeName = t.scopeName, n;
115
+ }
116
+ var ue = globalThis?.document ? a.useLayoutEffect : () => {
117
+ }, bn = a[" useId ".trim().toString()] || (() => {
118
+ }), En = 0;
119
+ function $(e) {
120
+ const [t, n] = a.useState(bn());
121
+ return ue(() => {
122
+ n((r) => r ?? String(En++));
123
+ }, [e]), t ? `radix-${t}` : "";
124
+ }
125
+ var Cn = a[" useInsertionEffect ".trim().toString()] || ue;
126
+ function wn({
127
+ prop: e,
128
+ defaultProp: t,
129
+ onChange: n = () => {
130
+ },
131
+ caller: r
132
+ }) {
133
+ const [o, i, l] = Sn({
134
+ defaultProp: t,
135
+ onChange: n
136
+ }), c = e !== void 0, d = c ? e : o;
137
+ {
138
+ const f = a.useRef(e !== void 0);
139
+ a.useEffect(() => {
140
+ const v = f.current;
141
+ v !== c && console.warn(
142
+ `${r} is changing from ${v ? "controlled" : "uncontrolled"} to ${c ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
143
+ ), f.current = c;
144
+ }, [c, r]);
145
+ }
146
+ const u = a.useCallback(
147
+ (f) => {
148
+ if (c) {
149
+ const v = Rn(f) ? f(e) : f;
150
+ v !== e && l.current?.(v);
151
+ } else
152
+ i(f);
153
+ },
154
+ [c, e, i, l]
155
+ );
156
+ return [d, u];
157
+ }
158
+ function Sn({
159
+ defaultProp: e,
160
+ onChange: t
161
+ }) {
162
+ const [n, r] = a.useState(e), o = a.useRef(n), i = a.useRef(t);
163
+ return Cn(() => {
164
+ i.current = t;
165
+ }, [t]), a.useEffect(() => {
166
+ o.current !== n && (i.current?.(n), o.current = n);
167
+ }, [n, o]), [n, r, i];
168
+ }
169
+ function Rn(e) {
170
+ return typeof e == "function";
171
+ }
172
+ // @__NO_SIDE_EFFECTS__
173
+ function pt(e) {
174
+ const t = /* @__PURE__ */ Dn(e), n = a.forwardRef((r, o) => {
175
+ const { children: i, ...l } = r, c = a.Children.toArray(i), d = c.find(Pn);
176
+ if (d) {
177
+ const u = d.props.children, f = c.map((v) => v === d ? a.Children.count(u) > 1 ? a.Children.only(null) : a.isValidElement(u) ? u.props.children : null : v);
178
+ return /* @__PURE__ */ b(t, { ...l, ref: o, children: a.isValidElement(u) ? a.cloneElement(u, void 0, f) : null });
179
+ }
180
+ return /* @__PURE__ */ b(t, { ...l, ref: o, children: i });
181
+ });
182
+ return n.displayName = `${e}.Slot`, n;
183
+ }
184
+ // @__NO_SIDE_EFFECTS__
185
+ function Dn(e) {
186
+ const t = a.forwardRef((n, r) => {
187
+ const { children: o, ...i } = n;
188
+ if (a.isValidElement(o)) {
189
+ const l = On(o), c = Nn(i, o.props);
190
+ return o.type !== a.Fragment && (c.ref = r ? H(r, l) : l), a.cloneElement(o, c);
191
+ }
192
+ return a.Children.count(o) > 1 ? a.Children.only(null) : null;
193
+ });
194
+ return t.displayName = `${e}.SlotClone`, t;
195
+ }
196
+ var xn = /* @__PURE__ */ Symbol("radix.slottable");
197
+ function Pn(e) {
198
+ return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === xn;
199
+ }
200
+ function Nn(e, t) {
201
+ const n = { ...t };
202
+ for (const r in t) {
203
+ const o = e[r], i = t[r];
204
+ /^on[A-Z]/.test(r) ? o && i ? n[r] = (...c) => {
205
+ const d = i(...c);
206
+ return o(...c), d;
207
+ } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
208
+ }
209
+ return { ...e, ...n };
210
+ }
211
+ function On(e) {
212
+ let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
213
+ return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
214
+ }
215
+ var An = [
216
+ "a",
217
+ "button",
218
+ "div",
219
+ "form",
220
+ "h2",
221
+ "h3",
222
+ "img",
223
+ "input",
224
+ "label",
225
+ "li",
226
+ "nav",
227
+ "ol",
228
+ "p",
229
+ "select",
230
+ "span",
231
+ "svg",
232
+ "ul"
233
+ ], U = An.reduce((e, t) => {
234
+ const n = /* @__PURE__ */ pt(`Primitive.${t}`), r = a.forwardRef((o, i) => {
235
+ const { asChild: l, ...c } = o, d = l ? n : t;
236
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ b(d, { ...c, ref: i });
237
+ });
238
+ return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
239
+ }, {});
240
+ function In(e, t) {
241
+ e && Qt.flushSync(() => e.dispatchEvent(t));
242
+ }
243
+ function se(e) {
244
+ const t = a.useRef(e);
245
+ return a.useEffect(() => {
246
+ t.current = e;
247
+ }), a.useMemo(() => (...n) => t.current?.(...n), []);
248
+ }
249
+ function kn(e, t = globalThis?.document) {
250
+ const n = se(e);
251
+ a.useEffect(() => {
252
+ const r = (o) => {
253
+ o.key === "Escape" && n(o);
254
+ };
255
+ return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
256
+ }, [n, t]);
257
+ }
258
+ var Tn = "DismissableLayer", $e = "dismissableLayer.update", Mn = "dismissableLayer.pointerDownOutside", _n = "dismissableLayer.focusOutside", tt, ht = a.createContext({
259
+ layers: /* @__PURE__ */ new Set(),
260
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
261
+ branches: /* @__PURE__ */ new Set()
262
+ }), gt = a.forwardRef(
263
+ (e, t) => {
264
+ const {
265
+ disableOutsidePointerEvents: n = !1,
266
+ onEscapeKeyDown: r,
267
+ onPointerDownOutside: o,
268
+ onFocusOutside: i,
269
+ onInteractOutside: l,
270
+ onDismiss: c,
271
+ ...d
272
+ } = e, u = a.useContext(ht), [f, v] = a.useState(null), p = f?.ownerDocument ?? globalThis?.document, [, h] = a.useState({}), D = q(t, (E) => v(E)), m = Array.from(u.layers), [y] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), w = m.indexOf(y), x = f ? m.indexOf(f) : -1, A = u.layersWithOutsidePointerEventsDisabled.size > 0, P = x >= w, N = Wn((E) => {
273
+ const M = E.target, F = [...u.branches].some((W) => W.contains(M));
274
+ !P || F || (o?.(E), l?.(E), E.defaultPrevented || c?.());
275
+ }, p), S = $n((E) => {
276
+ const M = E.target;
277
+ [...u.branches].some((W) => W.contains(M)) || (i?.(E), l?.(E), E.defaultPrevented || c?.());
278
+ }, p);
279
+ return kn((E) => {
280
+ x === u.layers.size - 1 && (r?.(E), !E.defaultPrevented && c && (E.preventDefault(), c()));
281
+ }, p), a.useEffect(() => {
282
+ if (f)
283
+ return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (tt = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), nt(), () => {
284
+ n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = tt);
285
+ };
286
+ }, [f, p, n, u]), a.useEffect(() => () => {
287
+ f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), nt());
288
+ }, [f, u]), a.useEffect(() => {
289
+ const E = () => h({});
290
+ return document.addEventListener($e, E), () => document.removeEventListener($e, E);
291
+ }, []), /* @__PURE__ */ b(
292
+ U.div,
293
+ {
294
+ ...d,
295
+ ref: D,
296
+ style: {
297
+ pointerEvents: A ? P ? "auto" : "none" : void 0,
298
+ ...e.style
299
+ },
300
+ onFocusCapture: K(e.onFocusCapture, S.onFocusCapture),
301
+ onBlurCapture: K(e.onBlurCapture, S.onBlurCapture),
302
+ onPointerDownCapture: K(
303
+ e.onPointerDownCapture,
304
+ N.onPointerDownCapture
305
+ )
306
+ }
307
+ );
308
+ }
309
+ );
310
+ gt.displayName = Tn;
311
+ var Ln = "DismissableLayerBranch", Fn = a.forwardRef((e, t) => {
312
+ const n = a.useContext(ht), r = a.useRef(null), o = q(t, r);
313
+ return a.useEffect(() => {
314
+ const i = r.current;
315
+ if (i)
316
+ return n.branches.add(i), () => {
317
+ n.branches.delete(i);
318
+ };
319
+ }, [n.branches]), /* @__PURE__ */ b(U.div, { ...e, ref: o });
320
+ });
321
+ Fn.displayName = Ln;
322
+ function Wn(e, t = globalThis?.document) {
323
+ const n = se(e), r = a.useRef(!1), o = a.useRef(() => {
324
+ });
325
+ return a.useEffect(() => {
326
+ const i = (c) => {
327
+ if (c.target && !r.current) {
328
+ let d = function() {
329
+ yt(
330
+ Mn,
331
+ n,
332
+ u,
333
+ { discrete: !0 }
334
+ );
335
+ };
336
+ const u = { originalEvent: c };
337
+ c.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = d, t.addEventListener("click", o.current, { once: !0 })) : d();
338
+ } else
339
+ t.removeEventListener("click", o.current);
340
+ r.current = !1;
341
+ }, l = window.setTimeout(() => {
342
+ t.addEventListener("pointerdown", i);
343
+ }, 0);
344
+ return () => {
345
+ window.clearTimeout(l), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
346
+ };
347
+ }, [t, n]), {
348
+ // ensures we check React component tree (not just DOM tree)
349
+ onPointerDownCapture: () => r.current = !0
350
+ };
351
+ }
352
+ function $n(e, t = globalThis?.document) {
353
+ const n = se(e), r = a.useRef(!1);
354
+ return a.useEffect(() => {
355
+ const o = (i) => {
356
+ i.target && !r.current && yt(_n, n, { originalEvent: i }, {
357
+ discrete: !1
358
+ });
359
+ };
360
+ return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
361
+ }, [t, n]), {
362
+ onFocusCapture: () => r.current = !0,
363
+ onBlurCapture: () => r.current = !1
364
+ };
365
+ }
366
+ function nt() {
367
+ const e = new CustomEvent($e);
368
+ document.dispatchEvent(e);
369
+ }
370
+ function yt(e, t, n, { discrete: r }) {
371
+ const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
372
+ t && o.addEventListener(e, t, { once: !0 }), r ? In(o, i) : o.dispatchEvent(i);
373
+ }
374
+ var Ae = "focusScope.autoFocusOnMount", Ie = "focusScope.autoFocusOnUnmount", rt = { bubbles: !1, cancelable: !0 }, Bn = "FocusScope", bt = a.forwardRef((e, t) => {
375
+ const {
376
+ loop: n = !1,
377
+ trapped: r = !1,
378
+ onMountAutoFocus: o,
379
+ onUnmountAutoFocus: i,
380
+ ...l
381
+ } = e, [c, d] = a.useState(null), u = se(o), f = se(i), v = a.useRef(null), p = q(t, (m) => d(m)), h = a.useRef({
382
+ paused: !1,
383
+ pause() {
384
+ this.paused = !0;
385
+ },
386
+ resume() {
387
+ this.paused = !1;
388
+ }
389
+ }).current;
390
+ a.useEffect(() => {
391
+ if (r) {
392
+ let m = function(A) {
393
+ if (h.paused || !c) return;
394
+ const P = A.target;
395
+ c.contains(P) ? v.current = P : j(v.current, { select: !0 });
396
+ }, y = function(A) {
397
+ if (h.paused || !c) return;
398
+ const P = A.relatedTarget;
399
+ P !== null && (c.contains(P) || j(v.current, { select: !0 }));
400
+ }, w = function(A) {
401
+ if (document.activeElement === document.body)
402
+ for (const N of A)
403
+ N.removedNodes.length > 0 && j(c);
404
+ };
405
+ document.addEventListener("focusin", m), document.addEventListener("focusout", y);
406
+ const x = new MutationObserver(w);
407
+ return c && x.observe(c, { childList: !0, subtree: !0 }), () => {
408
+ document.removeEventListener("focusin", m), document.removeEventListener("focusout", y), x.disconnect();
409
+ };
410
+ }
411
+ }, [r, c, h.paused]), a.useEffect(() => {
412
+ if (c) {
413
+ at.add(h);
414
+ const m = document.activeElement;
415
+ if (!c.contains(m)) {
416
+ const w = new CustomEvent(Ae, rt);
417
+ c.addEventListener(Ae, u), c.dispatchEvent(w), w.defaultPrevented || (Un(zn(Et(c)), { select: !0 }), document.activeElement === m && j(c));
418
+ }
419
+ return () => {
420
+ c.removeEventListener(Ae, u), setTimeout(() => {
421
+ const w = new CustomEvent(Ie, rt);
422
+ c.addEventListener(Ie, f), c.dispatchEvent(w), w.defaultPrevented || j(m ?? document.body, { select: !0 }), c.removeEventListener(Ie, f), at.remove(h);
423
+ }, 0);
424
+ };
425
+ }
426
+ }, [c, u, f, h]);
427
+ const D = a.useCallback(
428
+ (m) => {
429
+ if (!n && !r || h.paused) return;
430
+ const y = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, w = document.activeElement;
431
+ if (y && w) {
432
+ const x = m.currentTarget, [A, P] = Vn(x);
433
+ A && P ? !m.shiftKey && w === P ? (m.preventDefault(), n && j(A, { select: !0 })) : m.shiftKey && w === A && (m.preventDefault(), n && j(P, { select: !0 })) : w === x && m.preventDefault();
434
+ }
435
+ },
436
+ [n, r, h.paused]
437
+ );
438
+ return /* @__PURE__ */ b(U.div, { tabIndex: -1, ...l, ref: p, onKeyDown: D });
439
+ });
440
+ bt.displayName = Bn;
441
+ function Un(e, { select: t = !1 } = {}) {
442
+ const n = document.activeElement;
443
+ for (const r of e)
444
+ if (j(r, { select: t }), document.activeElement !== n) return;
445
+ }
446
+ function Vn(e) {
447
+ const t = Et(e), n = ot(t, e), r = ot(t.reverse(), e);
448
+ return [n, r];
449
+ }
450
+ function Et(e) {
451
+ const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
452
+ acceptNode: (r) => {
453
+ const o = r.tagName === "INPUT" && r.type === "hidden";
454
+ return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
455
+ }
456
+ });
457
+ for (; n.nextNode(); ) t.push(n.currentNode);
458
+ return t;
459
+ }
460
+ function ot(e, t) {
461
+ for (const n of e)
462
+ if (!jn(n, { upTo: t })) return n;
463
+ }
464
+ function jn(e, { upTo: t }) {
465
+ if (getComputedStyle(e).visibility === "hidden") return !0;
466
+ for (; e; ) {
467
+ if (t !== void 0 && e === t) return !1;
468
+ if (getComputedStyle(e).display === "none") return !0;
469
+ e = e.parentElement;
470
+ }
471
+ return !1;
472
+ }
473
+ function Kn(e) {
474
+ return e instanceof HTMLInputElement && "select" in e;
475
+ }
476
+ function j(e, { select: t = !1 } = {}) {
477
+ if (e && e.focus) {
478
+ const n = document.activeElement;
479
+ e.focus({ preventScroll: !0 }), e !== n && Kn(e) && t && e.select();
480
+ }
481
+ }
482
+ var at = Hn();
483
+ function Hn() {
484
+ let e = [];
485
+ return {
486
+ add(t) {
487
+ const n = e[0];
488
+ t !== n && n?.pause(), e = it(e, t), e.unshift(t);
489
+ },
490
+ remove(t) {
491
+ e = it(e, t), e[0]?.resume();
492
+ }
493
+ };
494
+ }
495
+ function it(e, t) {
496
+ const n = [...e], r = n.indexOf(t);
497
+ return r !== -1 && n.splice(r, 1), n;
498
+ }
499
+ function zn(e) {
500
+ return e.filter((t) => t.tagName !== "A");
501
+ }
502
+ var Gn = "Portal", Ct = a.forwardRef((e, t) => {
503
+ const { container: n, ...r } = e, [o, i] = a.useState(!1);
504
+ ue(() => i(!0), []);
505
+ const l = n || o && globalThis?.document?.body;
506
+ return l ? Jt.createPortal(/* @__PURE__ */ b(U.div, { ...r, ref: t }), l) : null;
507
+ });
508
+ Ct.displayName = Gn;
509
+ function Yn(e, t) {
510
+ return a.useReducer((n, r) => t[n][r] ?? n, e);
511
+ }
512
+ var we = (e) => {
513
+ const { present: t, children: n } = e, r = Xn(t), o = typeof n == "function" ? n({ present: r.isPresent }) : a.Children.only(n), i = q(r.ref, qn(o));
514
+ return typeof n == "function" || r.isPresent ? a.cloneElement(o, { ref: i }) : null;
515
+ };
516
+ we.displayName = "Presence";
517
+ function Xn(e) {
518
+ const [t, n] = a.useState(), r = a.useRef(null), o = a.useRef(e), i = a.useRef("none"), l = e ? "mounted" : "unmounted", [c, d] = Yn(l, {
519
+ mounted: {
520
+ UNMOUNT: "unmounted",
521
+ ANIMATION_OUT: "unmountSuspended"
522
+ },
523
+ unmountSuspended: {
524
+ MOUNT: "mounted",
525
+ ANIMATION_END: "unmounted"
526
+ },
527
+ unmounted: {
528
+ MOUNT: "mounted"
529
+ }
530
+ });
531
+ return a.useEffect(() => {
532
+ const u = ve(r.current);
533
+ i.current = c === "mounted" ? u : "none";
534
+ }, [c]), ue(() => {
535
+ const u = r.current, f = o.current;
536
+ if (f !== e) {
537
+ const p = i.current, h = ve(u);
538
+ e ? d("MOUNT") : h === "none" || u?.display === "none" ? d("UNMOUNT") : d(f && p !== h ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
539
+ }
540
+ }, [e, d]), ue(() => {
541
+ if (t) {
542
+ let u;
543
+ const f = t.ownerDocument.defaultView ?? window, v = (h) => {
544
+ const m = ve(r.current).includes(CSS.escape(h.animationName));
545
+ if (h.target === t && m && (d("ANIMATION_END"), !o.current)) {
546
+ const y = t.style.animationFillMode;
547
+ t.style.animationFillMode = "forwards", u = f.setTimeout(() => {
548
+ t.style.animationFillMode === "forwards" && (t.style.animationFillMode = y);
549
+ });
550
+ }
551
+ }, p = (h) => {
552
+ h.target === t && (i.current = ve(r.current));
553
+ };
554
+ return t.addEventListener("animationstart", p), t.addEventListener("animationcancel", v), t.addEventListener("animationend", v), () => {
555
+ f.clearTimeout(u), t.removeEventListener("animationstart", p), t.removeEventListener("animationcancel", v), t.removeEventListener("animationend", v);
556
+ };
557
+ } else
558
+ d("ANIMATION_END");
559
+ }, [t, d]), {
560
+ isPresent: ["mounted", "unmountSuspended"].includes(c),
561
+ ref: a.useCallback((u) => {
562
+ r.current = u ? getComputedStyle(u) : null, n(u);
563
+ }, [])
564
+ };
565
+ }
566
+ function ve(e) {
567
+ return e?.animationName || "none";
568
+ }
569
+ function qn(e) {
570
+ let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
571
+ return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
572
+ }
573
+ var ke = 0;
574
+ function Zn() {
575
+ a.useEffect(() => {
576
+ const e = document.querySelectorAll("[data-radix-focus-guard]");
577
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? ct()), document.body.insertAdjacentElement("beforeend", e[1] ?? ct()), ke++, () => {
578
+ ke === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ke--;
579
+ };
580
+ }, []);
581
+ }
582
+ function ct() {
583
+ const e = document.createElement("span");
584
+ return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
585
+ }
586
+ var L = function() {
587
+ return L = Object.assign || function(t) {
588
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
589
+ n = arguments[r];
590
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
591
+ }
592
+ return t;
593
+ }, L.apply(this, arguments);
594
+ };
595
+ function wt(e, t) {
596
+ var n = {};
597
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
598
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
599
+ for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
600
+ t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
601
+ return n;
602
+ }
603
+ function Qn(e, t, n) {
604
+ if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
605
+ (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
606
+ return e.concat(i || Array.prototype.slice.call(t));
607
+ }
608
+ var ye = "right-scroll-bar-position", be = "width-before-scroll-bar", Jn = "with-scroll-bars-hidden", er = "--removed-body-scroll-bar-size";
609
+ function Te(e, t) {
610
+ return typeof e == "function" ? e(t) : e && (e.current = t), e;
611
+ }
612
+ function tr(e, t) {
613
+ var n = Zt(function() {
614
+ return {
615
+ // value
616
+ value: e,
617
+ // last callback
618
+ callback: t,
619
+ // "memoized" public interface
620
+ facade: {
621
+ get current() {
622
+ return n.value;
623
+ },
624
+ set current(r) {
625
+ var o = n.value;
626
+ o !== r && (n.value = r, n.callback(r, o));
627
+ }
628
+ }
629
+ };
630
+ })[0];
631
+ return n.callback = t, n.facade;
632
+ }
633
+ var nr = typeof window < "u" ? a.useLayoutEffect : a.useEffect, lt = /* @__PURE__ */ new WeakMap();
634
+ function rr(e, t) {
635
+ var n = tr(null, function(r) {
636
+ return e.forEach(function(o) {
637
+ return Te(o, r);
638
+ });
639
+ });
640
+ return nr(function() {
641
+ var r = lt.get(n);
642
+ if (r) {
643
+ var o = new Set(r), i = new Set(e), l = n.current;
644
+ o.forEach(function(c) {
645
+ i.has(c) || Te(c, null);
646
+ }), i.forEach(function(c) {
647
+ o.has(c) || Te(c, l);
648
+ });
649
+ }
650
+ lt.set(n, e);
651
+ }, [e]), n;
652
+ }
653
+ function or(e) {
654
+ return e;
655
+ }
656
+ function ar(e, t) {
657
+ t === void 0 && (t = or);
658
+ var n = [], r = !1, o = {
659
+ read: function() {
660
+ if (r)
661
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
662
+ return n.length ? n[n.length - 1] : e;
663
+ },
664
+ useMedium: function(i) {
665
+ var l = t(i, r);
666
+ return n.push(l), function() {
667
+ n = n.filter(function(c) {
668
+ return c !== l;
669
+ });
670
+ };
671
+ },
672
+ assignSyncMedium: function(i) {
673
+ for (r = !0; n.length; ) {
674
+ var l = n;
675
+ n = [], l.forEach(i);
676
+ }
677
+ n = {
678
+ push: function(c) {
679
+ return i(c);
680
+ },
681
+ filter: function() {
682
+ return n;
683
+ }
684
+ };
685
+ },
686
+ assignMedium: function(i) {
687
+ r = !0;
688
+ var l = [];
689
+ if (n.length) {
690
+ var c = n;
691
+ n = [], c.forEach(i), l = n;
692
+ }
693
+ var d = function() {
694
+ var f = l;
695
+ l = [], f.forEach(i);
696
+ }, u = function() {
697
+ return Promise.resolve().then(d);
698
+ };
699
+ u(), n = {
700
+ push: function(f) {
701
+ l.push(f), u();
702
+ },
703
+ filter: function(f) {
704
+ return l = l.filter(f), n;
705
+ }
706
+ };
707
+ }
708
+ };
709
+ return o;
710
+ }
711
+ function ir(e) {
712
+ e === void 0 && (e = {});
713
+ var t = ar(null);
714
+ return t.options = L({ async: !0, ssr: !1 }, e), t;
715
+ }
716
+ var St = function(e) {
717
+ var t = e.sideCar, n = wt(e, ["sideCar"]);
718
+ if (!t)
719
+ throw new Error("Sidecar: please provide `sideCar` property to import the right car");
720
+ var r = t.read();
721
+ if (!r)
722
+ throw new Error("Sidecar medium not found");
723
+ return a.createElement(r, L({}, n));
724
+ };
725
+ St.isSideCarExport = !0;
726
+ function cr(e, t) {
727
+ return e.useMedium(t), St;
728
+ }
729
+ var Rt = ir(), Me = function() {
730
+ }, Se = a.forwardRef(function(e, t) {
731
+ var n = a.useRef(null), r = a.useState({
732
+ onScrollCapture: Me,
733
+ onWheelCapture: Me,
734
+ onTouchMoveCapture: Me
735
+ }), o = r[0], i = r[1], l = e.forwardProps, c = e.children, d = e.className, u = e.removeScrollBar, f = e.enabled, v = e.shards, p = e.sideCar, h = e.noRelative, D = e.noIsolation, m = e.inert, y = e.allowPinchZoom, w = e.as, x = w === void 0 ? "div" : w, A = e.gapMode, P = wt(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = p, S = rr([n, t]), E = L(L({}, P), o);
736
+ return a.createElement(
737
+ a.Fragment,
738
+ null,
739
+ f && a.createElement(N, { sideCar: Rt, removeScrollBar: u, shards: v, noRelative: h, noIsolation: D, inert: m, setCallbacks: i, allowPinchZoom: !!y, lockRef: n, gapMode: A }),
740
+ l ? a.cloneElement(a.Children.only(c), L(L({}, E), { ref: S })) : a.createElement(x, L({}, E, { className: d, ref: S }), c)
741
+ );
742
+ });
743
+ Se.defaultProps = {
744
+ enabled: !0,
745
+ removeScrollBar: !0,
746
+ inert: !1
747
+ };
748
+ Se.classNames = {
749
+ fullWidth: be,
750
+ zeroRight: ye
751
+ };
752
+ var lr = function() {
753
+ if (typeof __webpack_nonce__ < "u")
754
+ return __webpack_nonce__;
755
+ };
756
+ function ur() {
757
+ if (!document)
758
+ return null;
759
+ var e = document.createElement("style");
760
+ e.type = "text/css";
761
+ var t = lr();
762
+ return t && e.setAttribute("nonce", t), e;
763
+ }
764
+ function sr(e, t) {
765
+ e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
766
+ }
767
+ function dr(e) {
768
+ var t = document.head || document.getElementsByTagName("head")[0];
769
+ t.appendChild(e);
770
+ }
771
+ var fr = function() {
772
+ var e = 0, t = null;
773
+ return {
774
+ add: function(n) {
775
+ e == 0 && (t = ur()) && (sr(t, n), dr(t)), e++;
776
+ },
777
+ remove: function() {
778
+ e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
779
+ }
780
+ };
781
+ }, vr = function() {
782
+ var e = fr();
783
+ return function(t, n) {
784
+ a.useEffect(function() {
785
+ return e.add(t), function() {
786
+ e.remove();
787
+ };
788
+ }, [t && n]);
789
+ };
790
+ }, Dt = function() {
791
+ var e = vr(), t = function(n) {
792
+ var r = n.styles, o = n.dynamic;
793
+ return e(r, o), null;
794
+ };
795
+ return t;
796
+ }, mr = {
797
+ left: 0,
798
+ top: 0,
799
+ right: 0,
800
+ gap: 0
801
+ }, _e = function(e) {
802
+ return parseInt(e || "", 10) || 0;
803
+ }, pr = function(e) {
804
+ var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
805
+ return [_e(n), _e(r), _e(o)];
806
+ }, hr = function(e) {
807
+ if (e === void 0 && (e = "margin"), typeof window > "u")
808
+ return mr;
809
+ var t = pr(e), n = document.documentElement.clientWidth, r = window.innerWidth;
810
+ return {
811
+ left: t[0],
812
+ top: t[1],
813
+ right: t[2],
814
+ gap: Math.max(0, r - n + t[2] - t[0])
815
+ };
816
+ }, gr = Dt(), ae = "data-scroll-locked", yr = function(e, t, n, r) {
817
+ var o = e.left, i = e.top, l = e.right, c = e.gap;
818
+ return n === void 0 && (n = "margin"), `
819
+ .`.concat(Jn, ` {
820
+ overflow: hidden `).concat(r, `;
821
+ padding-right: `).concat(c, "px ").concat(r, `;
822
+ }
823
+ body[`).concat(ae, `] {
824
+ overflow: hidden `).concat(r, `;
825
+ overscroll-behavior: contain;
826
+ `).concat([
827
+ t && "position: relative ".concat(r, ";"),
828
+ n === "margin" && `
829
+ padding-left: `.concat(o, `px;
830
+ padding-top: `).concat(i, `px;
831
+ padding-right: `).concat(l, `px;
832
+ margin-left:0;
833
+ margin-top:0;
834
+ margin-right: `).concat(c, "px ").concat(r, `;
835
+ `),
836
+ n === "padding" && "padding-right: ".concat(c, "px ").concat(r, ";")
837
+ ].filter(Boolean).join(""), `
838
+ }
839
+
840
+ .`).concat(ye, ` {
841
+ right: `).concat(c, "px ").concat(r, `;
842
+ }
843
+
844
+ .`).concat(be, ` {
845
+ margin-right: `).concat(c, "px ").concat(r, `;
846
+ }
847
+
848
+ .`).concat(ye, " .").concat(ye, ` {
849
+ right: 0 `).concat(r, `;
850
+ }
851
+
852
+ .`).concat(be, " .").concat(be, ` {
853
+ margin-right: 0 `).concat(r, `;
854
+ }
855
+
856
+ body[`).concat(ae, `] {
857
+ `).concat(er, ": ").concat(c, `px;
858
+ }
859
+ `);
860
+ }, ut = function() {
861
+ var e = parseInt(document.body.getAttribute(ae) || "0", 10);
862
+ return isFinite(e) ? e : 0;
863
+ }, br = function() {
864
+ a.useEffect(function() {
865
+ return document.body.setAttribute(ae, (ut() + 1).toString()), function() {
866
+ var e = ut() - 1;
867
+ e <= 0 ? document.body.removeAttribute(ae) : document.body.setAttribute(ae, e.toString());
868
+ };
869
+ }, []);
870
+ }, Er = function(e) {
871
+ var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
872
+ br();
873
+ var i = a.useMemo(function() {
874
+ return hr(o);
875
+ }, [o]);
876
+ return a.createElement(gr, { styles: yr(i, !t, o, n ? "" : "!important") });
877
+ }, Be = !1;
878
+ if (typeof window < "u")
879
+ try {
880
+ var me = Object.defineProperty({}, "passive", {
881
+ get: function() {
882
+ return Be = !0, !0;
883
+ }
884
+ });
885
+ window.addEventListener("test", me, me), window.removeEventListener("test", me, me);
886
+ } catch {
887
+ Be = !1;
888
+ }
889
+ var ee = Be ? { passive: !1 } : !1, Cr = function(e) {
890
+ return e.tagName === "TEXTAREA";
891
+ }, xt = function(e, t) {
892
+ if (!(e instanceof Element))
893
+ return !1;
894
+ var n = window.getComputedStyle(e);
895
+ return (
896
+ // not-not-scrollable
897
+ n[t] !== "hidden" && // contains scroll inside self
898
+ !(n.overflowY === n.overflowX && !Cr(e) && n[t] === "visible")
899
+ );
900
+ }, wr = function(e) {
901
+ return xt(e, "overflowY");
902
+ }, Sr = function(e) {
903
+ return xt(e, "overflowX");
904
+ }, st = function(e, t) {
905
+ var n = t.ownerDocument, r = t;
906
+ do {
907
+ typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
908
+ var o = Pt(e, r);
909
+ if (o) {
910
+ var i = Nt(e, r), l = i[1], c = i[2];
911
+ if (l > c)
912
+ return !0;
913
+ }
914
+ r = r.parentNode;
915
+ } while (r && r !== n.body);
916
+ return !1;
917
+ }, Rr = function(e) {
918
+ var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
919
+ return [
920
+ t,
921
+ n,
922
+ r
923
+ ];
924
+ }, Dr = function(e) {
925
+ var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
926
+ return [
927
+ t,
928
+ n,
929
+ r
930
+ ];
931
+ }, Pt = function(e, t) {
932
+ return e === "v" ? wr(t) : Sr(t);
933
+ }, Nt = function(e, t) {
934
+ return e === "v" ? Rr(t) : Dr(t);
935
+ }, xr = function(e, t) {
936
+ return e === "h" && t === "rtl" ? -1 : 1;
937
+ }, Pr = function(e, t, n, r, o) {
938
+ var i = xr(e, window.getComputedStyle(t).direction), l = i * r, c = n.target, d = t.contains(c), u = !1, f = l > 0, v = 0, p = 0;
939
+ do {
940
+ if (!c)
941
+ break;
942
+ var h = Nt(e, c), D = h[0], m = h[1], y = h[2], w = m - y - i * D;
943
+ (D || w) && Pt(e, c) && (v += w, p += D);
944
+ var x = c.parentNode;
945
+ c = x && x.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? x.host : x;
946
+ } while (
947
+ // portaled content
948
+ !d && c !== document.body || // self content
949
+ d && (t.contains(c) || t === c)
950
+ );
951
+ return (f && Math.abs(v) < 1 || !f && Math.abs(p) < 1) && (u = !0), u;
952
+ }, pe = function(e) {
953
+ return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
954
+ }, dt = function(e) {
955
+ return [e.deltaX, e.deltaY];
956
+ }, ft = function(e) {
957
+ return e && "current" in e ? e.current : e;
958
+ }, Nr = function(e, t) {
959
+ return e[0] === t[0] && e[1] === t[1];
960
+ }, Or = function(e) {
961
+ return `
962
+ .block-interactivity-`.concat(e, ` {pointer-events: none;}
963
+ .allow-interactivity-`).concat(e, ` {pointer-events: all;}
964
+ `);
965
+ }, Ar = 0, te = [];
966
+ function Ir(e) {
967
+ var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(Ar++)[0], i = a.useState(Dt)[0], l = a.useRef(e);
968
+ a.useEffect(function() {
969
+ l.current = e;
970
+ }, [e]), a.useEffect(function() {
971
+ if (e.inert) {
972
+ document.body.classList.add("block-interactivity-".concat(o));
973
+ var m = Qn([e.lockRef.current], (e.shards || []).map(ft), !0).filter(Boolean);
974
+ return m.forEach(function(y) {
975
+ return y.classList.add("allow-interactivity-".concat(o));
976
+ }), function() {
977
+ document.body.classList.remove("block-interactivity-".concat(o)), m.forEach(function(y) {
978
+ return y.classList.remove("allow-interactivity-".concat(o));
979
+ });
980
+ };
981
+ }
982
+ }, [e.inert, e.lockRef.current, e.shards]);
983
+ var c = a.useCallback(function(m, y) {
984
+ if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
985
+ return !l.current.allowPinchZoom;
986
+ var w = pe(m), x = n.current, A = "deltaX" in m ? m.deltaX : x[0] - w[0], P = "deltaY" in m ? m.deltaY : x[1] - w[1], N, S = m.target, E = Math.abs(A) > Math.abs(P) ? "h" : "v";
987
+ if ("touches" in m && E === "h" && S.type === "range")
988
+ return !1;
989
+ var M = window.getSelection(), F = M && M.anchorNode, W = F ? F === S || F.contains(S) : !1;
990
+ if (W)
991
+ return !1;
992
+ var V = st(E, S);
993
+ if (!V)
994
+ return !0;
995
+ if (V ? N = E : (N = E === "v" ? "h" : "v", V = st(E, S)), !V)
996
+ return !1;
997
+ if (!r.current && "changedTouches" in m && (A || P) && (r.current = N), !N)
998
+ return !0;
999
+ var Q = r.current || N;
1000
+ return Pr(Q, y, m, Q === "h" ? A : P);
1001
+ }, []), d = a.useCallback(function(m) {
1002
+ var y = m;
1003
+ if (!(!te.length || te[te.length - 1] !== i)) {
1004
+ var w = "deltaY" in y ? dt(y) : pe(y), x = t.current.filter(function(N) {
1005
+ return N.name === y.type && (N.target === y.target || y.target === N.shadowParent) && Nr(N.delta, w);
1006
+ })[0];
1007
+ if (x && x.should) {
1008
+ y.cancelable && y.preventDefault();
1009
+ return;
1010
+ }
1011
+ if (!x) {
1012
+ var A = (l.current.shards || []).map(ft).filter(Boolean).filter(function(N) {
1013
+ return N.contains(y.target);
1014
+ }), P = A.length > 0 ? c(y, A[0]) : !l.current.noIsolation;
1015
+ P && y.cancelable && y.preventDefault();
1016
+ }
1017
+ }
1018
+ }, []), u = a.useCallback(function(m, y, w, x) {
1019
+ var A = { name: m, delta: y, target: w, should: x, shadowParent: kr(w) };
1020
+ t.current.push(A), setTimeout(function() {
1021
+ t.current = t.current.filter(function(P) {
1022
+ return P !== A;
1023
+ });
1024
+ }, 1);
1025
+ }, []), f = a.useCallback(function(m) {
1026
+ n.current = pe(m), r.current = void 0;
1027
+ }, []), v = a.useCallback(function(m) {
1028
+ u(m.type, dt(m), m.target, c(m, e.lockRef.current));
1029
+ }, []), p = a.useCallback(function(m) {
1030
+ u(m.type, pe(m), m.target, c(m, e.lockRef.current));
1031
+ }, []);
1032
+ a.useEffect(function() {
1033
+ return te.push(i), e.setCallbacks({
1034
+ onScrollCapture: v,
1035
+ onWheelCapture: v,
1036
+ onTouchMoveCapture: p
1037
+ }), document.addEventListener("wheel", d, ee), document.addEventListener("touchmove", d, ee), document.addEventListener("touchstart", f, ee), function() {
1038
+ te = te.filter(function(m) {
1039
+ return m !== i;
1040
+ }), document.removeEventListener("wheel", d, ee), document.removeEventListener("touchmove", d, ee), document.removeEventListener("touchstart", f, ee);
1041
+ };
1042
+ }, []);
1043
+ var h = e.removeScrollBar, D = e.inert;
1044
+ return a.createElement(
1045
+ a.Fragment,
1046
+ null,
1047
+ D ? a.createElement(i, { styles: Or(o) }) : null,
1048
+ h ? a.createElement(Er, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
1049
+ );
1050
+ }
1051
+ function kr(e) {
1052
+ for (var t = null; e !== null; )
1053
+ e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
1054
+ return t;
1055
+ }
1056
+ const Tr = cr(Rt, Ir);
1057
+ var Ot = a.forwardRef(function(e, t) {
1058
+ return a.createElement(Se, L({}, e, { ref: t, sideCar: Tr }));
1059
+ });
1060
+ Ot.classNames = Se.classNames;
1061
+ var Mr = function(e) {
1062
+ if (typeof document > "u")
1063
+ return null;
1064
+ var t = Array.isArray(e) ? e[0] : e;
1065
+ return t.ownerDocument.body;
1066
+ }, ne = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), ge = {}, Le = 0, At = function(e) {
1067
+ return e && (e.host || At(e.parentNode));
1068
+ }, _r = function(e, t) {
1069
+ return t.map(function(n) {
1070
+ if (e.contains(n))
1071
+ return n;
1072
+ var r = At(n);
1073
+ return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
1074
+ }).filter(function(n) {
1075
+ return !!n;
1076
+ });
1077
+ }, Lr = function(e, t, n, r) {
1078
+ var o = _r(t, Array.isArray(e) ? e : [e]);
1079
+ ge[n] || (ge[n] = /* @__PURE__ */ new WeakMap());
1080
+ var i = ge[n], l = [], c = /* @__PURE__ */ new Set(), d = new Set(o), u = function(v) {
1081
+ !v || c.has(v) || (c.add(v), u(v.parentNode));
1082
+ };
1083
+ o.forEach(u);
1084
+ var f = function(v) {
1085
+ !v || d.has(v) || Array.prototype.forEach.call(v.children, function(p) {
1086
+ if (c.has(p))
1087
+ f(p);
1088
+ else
1089
+ try {
1090
+ var h = p.getAttribute(r), D = h !== null && h !== "false", m = (ne.get(p) || 0) + 1, y = (i.get(p) || 0) + 1;
1091
+ ne.set(p, m), i.set(p, y), l.push(p), m === 1 && D && he.set(p, !0), y === 1 && p.setAttribute(n, "true"), D || p.setAttribute(r, "true");
1092
+ } catch (w) {
1093
+ console.error("aria-hidden: cannot operate on ", p, w);
1094
+ }
1095
+ });
1096
+ };
1097
+ return f(t), c.clear(), Le++, function() {
1098
+ l.forEach(function(v) {
1099
+ var p = ne.get(v) - 1, h = i.get(v) - 1;
1100
+ ne.set(v, p), i.set(v, h), p || (he.has(v) || v.removeAttribute(r), he.delete(v)), h || v.removeAttribute(n);
1101
+ }), Le--, Le || (ne = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), ge = {});
1102
+ };
1103
+ }, Fr = function(e, t, n) {
1104
+ n === void 0 && (n = "data-aria-hidden");
1105
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = Mr(e);
1106
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Lr(r, o, n, "aria-hidden")) : function() {
1107
+ return null;
1108
+ };
1109
+ }, Re = "Dialog", [It] = gn(Re), [Wr, _] = It(Re), kt = (e) => {
1110
+ const {
1111
+ __scopeDialog: t,
1112
+ children: n,
1113
+ open: r,
1114
+ defaultOpen: o,
1115
+ onOpenChange: i,
1116
+ modal: l = !0
1117
+ } = e, c = a.useRef(null), d = a.useRef(null), [u, f] = wn({
1118
+ prop: r,
1119
+ defaultProp: o ?? !1,
1120
+ onChange: i,
1121
+ caller: Re
1122
+ });
1123
+ return /* @__PURE__ */ b(
1124
+ Wr,
1125
+ {
1126
+ scope: t,
1127
+ triggerRef: c,
1128
+ contentRef: d,
1129
+ contentId: $(),
1130
+ titleId: $(),
1131
+ descriptionId: $(),
1132
+ open: u,
1133
+ onOpenChange: f,
1134
+ onOpenToggle: a.useCallback(() => f((v) => !v), [f]),
1135
+ modal: l,
1136
+ children: n
1137
+ }
1138
+ );
1139
+ };
1140
+ kt.displayName = Re;
1141
+ var Tt = "DialogTrigger", $r = a.forwardRef(
1142
+ (e, t) => {
1143
+ const { __scopeDialog: n, ...r } = e, o = _(Tt, n), i = q(t, o.triggerRef);
1144
+ return /* @__PURE__ */ b(
1145
+ U.button,
1146
+ {
1147
+ type: "button",
1148
+ "aria-haspopup": "dialog",
1149
+ "aria-expanded": o.open,
1150
+ "aria-controls": o.contentId,
1151
+ "data-state": Ke(o.open),
1152
+ ...r,
1153
+ ref: i,
1154
+ onClick: K(e.onClick, o.onOpenToggle)
1155
+ }
1156
+ );
1157
+ }
1158
+ );
1159
+ $r.displayName = Tt;
1160
+ var Ve = "DialogPortal", [Br, Mt] = It(Ve, {
1161
+ forceMount: void 0
1162
+ }), _t = (e) => {
1163
+ const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, i = _(Ve, t);
1164
+ return /* @__PURE__ */ b(Br, { scope: t, forceMount: n, children: a.Children.map(r, (l) => /* @__PURE__ */ b(we, { present: n || i.open, children: /* @__PURE__ */ b(Ct, { asChild: !0, container: o, children: l }) })) });
1165
+ };
1166
+ _t.displayName = Ve;
1167
+ var Ee = "DialogOverlay", Lt = a.forwardRef(
1168
+ (e, t) => {
1169
+ const n = Mt(Ee, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = _(Ee, e.__scopeDialog);
1170
+ return i.modal ? /* @__PURE__ */ b(we, { present: r || i.open, children: /* @__PURE__ */ b(Vr, { ...o, ref: t }) }) : null;
1171
+ }
1172
+ );
1173
+ Lt.displayName = Ee;
1174
+ var Ur = /* @__PURE__ */ pt("DialogOverlay.RemoveScroll"), Vr = a.forwardRef(
1175
+ (e, t) => {
1176
+ const { __scopeDialog: n, ...r } = e, o = _(Ee, n);
1177
+ return (
1178
+ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
1179
+ // ie. when `Overlay` and `Content` are siblings
1180
+ /* @__PURE__ */ b(Ot, { as: Ur, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ b(
1181
+ U.div,
1182
+ {
1183
+ "data-state": Ke(o.open),
1184
+ ...r,
1185
+ ref: t,
1186
+ style: { pointerEvents: "auto", ...r.style }
1187
+ }
1188
+ ) })
1189
+ );
1190
+ }
1191
+ ), Y = "DialogContent", Ft = a.forwardRef(
1192
+ (e, t) => {
1193
+ const n = Mt(Y, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = _(Y, e.__scopeDialog);
1194
+ return /* @__PURE__ */ b(we, { present: r || i.open, children: i.modal ? /* @__PURE__ */ b(jr, { ...o, ref: t }) : /* @__PURE__ */ b(Kr, { ...o, ref: t }) });
1195
+ }
1196
+ );
1197
+ Ft.displayName = Y;
1198
+ var jr = a.forwardRef(
1199
+ (e, t) => {
1200
+ const n = _(Y, e.__scopeDialog), r = a.useRef(null), o = q(t, n.contentRef, r);
1201
+ return a.useEffect(() => {
1202
+ const i = r.current;
1203
+ if (i) return Fr(i);
1204
+ }, []), /* @__PURE__ */ b(
1205
+ Wt,
1206
+ {
1207
+ ...e,
1208
+ ref: o,
1209
+ trapFocus: n.open,
1210
+ disableOutsidePointerEvents: !0,
1211
+ onCloseAutoFocus: K(e.onCloseAutoFocus, (i) => {
1212
+ i.preventDefault(), n.triggerRef.current?.focus();
1213
+ }),
1214
+ onPointerDownOutside: K(e.onPointerDownOutside, (i) => {
1215
+ const l = i.detail.originalEvent, c = l.button === 0 && l.ctrlKey === !0;
1216
+ (l.button === 2 || c) && i.preventDefault();
1217
+ }),
1218
+ onFocusOutside: K(
1219
+ e.onFocusOutside,
1220
+ (i) => i.preventDefault()
1221
+ )
1222
+ }
1223
+ );
1224
+ }
1225
+ ), Kr = a.forwardRef(
1226
+ (e, t) => {
1227
+ const n = _(Y, e.__scopeDialog), r = a.useRef(!1), o = a.useRef(!1);
1228
+ return /* @__PURE__ */ b(
1229
+ Wt,
1230
+ {
1231
+ ...e,
1232
+ ref: t,
1233
+ trapFocus: !1,
1234
+ disableOutsidePointerEvents: !1,
1235
+ onCloseAutoFocus: (i) => {
1236
+ e.onCloseAutoFocus?.(i), i.defaultPrevented || (r.current || n.triggerRef.current?.focus(), i.preventDefault()), r.current = !1, o.current = !1;
1237
+ },
1238
+ onInteractOutside: (i) => {
1239
+ e.onInteractOutside?.(i), i.defaultPrevented || (r.current = !0, i.detail.originalEvent.type === "pointerdown" && (o.current = !0));
1240
+ const l = i.target;
1241
+ n.triggerRef.current?.contains(l) && i.preventDefault(), i.detail.originalEvent.type === "focusin" && o.current && i.preventDefault();
1242
+ }
1243
+ }
1244
+ );
1245
+ }
1246
+ ), Wt = a.forwardRef(
1247
+ (e, t) => {
1248
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...l } = e, c = _(Y, n), d = a.useRef(null), u = q(t, d);
1249
+ return Zn(), /* @__PURE__ */ le(Ze, { children: [
1250
+ /* @__PURE__ */ b(
1251
+ bt,
1252
+ {
1253
+ asChild: !0,
1254
+ loop: !0,
1255
+ trapped: r,
1256
+ onMountAutoFocus: o,
1257
+ onUnmountAutoFocus: i,
1258
+ children: /* @__PURE__ */ b(
1259
+ gt,
1260
+ {
1261
+ role: "dialog",
1262
+ id: c.contentId,
1263
+ "aria-describedby": c.descriptionId,
1264
+ "aria-labelledby": c.titleId,
1265
+ "data-state": Ke(c.open),
1266
+ ...l,
1267
+ ref: u,
1268
+ onDismiss: () => c.onOpenChange(!1)
1269
+ }
1270
+ )
1271
+ }
1272
+ ),
1273
+ /* @__PURE__ */ le(Ze, { children: [
1274
+ /* @__PURE__ */ b(Yr, { titleId: c.titleId }),
1275
+ /* @__PURE__ */ b(qr, { contentRef: d, descriptionId: c.descriptionId })
1276
+ ] })
1277
+ ] });
1278
+ }
1279
+ ), je = "DialogTitle", Hr = a.forwardRef(
1280
+ (e, t) => {
1281
+ const { __scopeDialog: n, ...r } = e, o = _(je, n);
1282
+ return /* @__PURE__ */ b(U.h2, { id: o.titleId, ...r, ref: t });
1283
+ }
1284
+ );
1285
+ Hr.displayName = je;
1286
+ var $t = "DialogDescription", zr = a.forwardRef(
1287
+ (e, t) => {
1288
+ const { __scopeDialog: n, ...r } = e, o = _($t, n);
1289
+ return /* @__PURE__ */ b(U.p, { id: o.descriptionId, ...r, ref: t });
1290
+ }
1291
+ );
1292
+ zr.displayName = $t;
1293
+ var Bt = "DialogClose", Gr = a.forwardRef(
1294
+ (e, t) => {
1295
+ const { __scopeDialog: n, ...r } = e, o = _(Bt, n);
1296
+ return /* @__PURE__ */ b(
1297
+ U.button,
1298
+ {
1299
+ type: "button",
1300
+ ...r,
1301
+ ref: t,
1302
+ onClick: K(e.onClick, () => o.onOpenChange(!1))
1303
+ }
1304
+ );
1305
+ }
1306
+ );
1307
+ Gr.displayName = Bt;
1308
+ function Ke(e) {
1309
+ return e ? "open" : "closed";
1310
+ }
1311
+ var Ut = "DialogTitleWarning", [To, Vt] = hn(Ut, {
1312
+ contentName: Y,
1313
+ titleName: je,
1314
+ docsSlug: "dialog"
1315
+ }), Yr = ({ titleId: e }) => {
1316
+ const t = Vt(Ut), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
1317
+
1318
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
1319
+
1320
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
1321
+ return a.useEffect(() => {
1322
+ e && (document.getElementById(e) || console.error(n));
1323
+ }, [n, e]), null;
1324
+ }, Xr = "DialogDescriptionWarning", qr = ({ contentRef: e, descriptionId: t }) => {
1325
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vt(Xr).contentName}}.`;
1326
+ return a.useEffect(() => {
1327
+ const o = e.current?.getAttribute("aria-describedby");
1328
+ t && o && (document.getElementById(t) || console.warn(r));
1329
+ }, [r, e, t]), null;
1330
+ }, Zr = kt, Qr = _t, Jr = Lt, eo = Ft, to = /* @__PURE__ */ Symbol.for("react.lazy"), Ce = a[" use ".trim().toString()];
1331
+ function no(e) {
26
1332
  return typeof e == "object" && e !== null && "then" in e;
27
1333
  }
28
- function ye(e) {
29
- return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === He && "_payload" in e && Ge(e._payload);
1334
+ function jt(e) {
1335
+ return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === to && "_payload" in e && no(e._payload);
30
1336
  }
31
1337
  // @__NO_SIDE_EFFECTS__
32
- function Ue(e) {
33
- const t = /* @__PURE__ */ Ye(e), r = l.forwardRef((i, a) => {
34
- let { children: o, ...d } = i;
35
- ye(o) && typeof W == "function" && (o = W(o._payload));
36
- const m = l.Children.toArray(o), p = m.find(Je);
37
- if (p) {
38
- const c = p.props.children, v = m.map((h) => h === p ? l.Children.count(c) > 1 ? l.Children.only(null) : l.isValidElement(c) ? c.props.children : null : h);
39
- return /* @__PURE__ */ x(t, { ...d, ref: a, children: l.isValidElement(c) ? l.cloneElement(c, void 0, v) : null });
40
- }
41
- return /* @__PURE__ */ x(t, { ...d, ref: a, children: o });
1338
+ function ro(e) {
1339
+ const t = /* @__PURE__ */ oo(e), n = a.forwardRef((r, o) => {
1340
+ let { children: i, ...l } = r;
1341
+ jt(i) && typeof Ce == "function" && (i = Ce(i._payload));
1342
+ const c = a.Children.toArray(i), d = c.find(io);
1343
+ if (d) {
1344
+ const u = d.props.children, f = c.map((v) => v === d ? a.Children.count(u) > 1 ? a.Children.only(null) : a.isValidElement(u) ? u.props.children : null : v);
1345
+ return /* @__PURE__ */ b(t, { ...l, ref: o, children: a.isValidElement(u) ? a.cloneElement(u, void 0, f) : null });
1346
+ }
1347
+ return /* @__PURE__ */ b(t, { ...l, ref: o, children: i });
42
1348
  });
43
- return r.displayName = `${e}.Slot`, r;
1349
+ return n.displayName = `${e}.Slot`, n;
44
1350
  }
45
1351
  // @__NO_SIDE_EFFECTS__
46
- function Ye(e) {
47
- const t = l.forwardRef((r, i) => {
48
- let { children: a, ...o } = r;
49
- if (ye(a) && typeof W == "function" && (a = W(a._payload)), l.isValidElement(a)) {
50
- const d = Qe(a), m = Xe(o, a.props);
51
- return a.type !== l.Fragment && (m.ref = i ? O(i, d) : d), l.cloneElement(a, m);
52
- }
53
- return l.Children.count(a) > 1 ? l.Children.only(null) : null;
1352
+ function oo(e) {
1353
+ const t = a.forwardRef((n, r) => {
1354
+ let { children: o, ...i } = n;
1355
+ if (jt(o) && typeof Ce == "function" && (o = Ce(o._payload)), a.isValidElement(o)) {
1356
+ const l = lo(o), c = co(i, o.props);
1357
+ return o.type !== a.Fragment && (c.ref = r ? H(r, l) : l), a.cloneElement(o, c);
1358
+ }
1359
+ return a.Children.count(o) > 1 ? a.Children.only(null) : null;
54
1360
  });
55
1361
  return t.displayName = `${e}.SlotClone`, t;
56
1362
  }
57
- var Ze = /* @__PURE__ */ Symbol("radix.slottable");
58
- function Je(e) {
59
- return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ze;
1363
+ var ao = /* @__PURE__ */ Symbol("radix.slottable");
1364
+ function io(e) {
1365
+ return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ao;
60
1366
  }
61
- function Xe(e, t) {
62
- const r = { ...t };
63
- for (const i in t) {
64
- const a = e[i], o = t[i];
65
- /^on[A-Z]/.test(i) ? a && o ? r[i] = (...m) => {
66
- const p = o(...m);
67
- return a(...m), p;
68
- } : a && (r[i] = a) : i === "style" ? r[i] = { ...a, ...o } : i === "className" && (r[i] = [a, o].filter(Boolean).join(" "));
1367
+ function co(e, t) {
1368
+ const n = { ...t };
1369
+ for (const r in t) {
1370
+ const o = e[r], i = t[r];
1371
+ /^on[A-Z]/.test(r) ? o && i ? n[r] = (...c) => {
1372
+ const d = i(...c);
1373
+ return o(...c), d;
1374
+ } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
69
1375
  }
70
- return { ...e, ...r };
1376
+ return { ...e, ...n };
71
1377
  }
72
- function Qe(e) {
73
- let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
74
- return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
1378
+ function lo(e) {
1379
+ let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
1380
+ return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
75
1381
  }
76
- var et = [
1382
+ var uo = [
77
1383
  "a",
78
1384
  "button",
79
1385
  "div",
@@ -91,312 +1397,312 @@ var et = [
91
1397
  "span",
92
1398
  "svg",
93
1399
  "ul"
94
- ], A = et.reduce((e, t) => {
95
- const r = /* @__PURE__ */ Ue(`Primitive.${t}`), i = l.forwardRef((a, o) => {
96
- const { asChild: d, ...m } = a, p = d ? r : t;
97
- return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ x(p, { ...m, ref: o });
1400
+ ], G = uo.reduce((e, t) => {
1401
+ const n = /* @__PURE__ */ ro(`Primitive.${t}`), r = a.forwardRef((o, i) => {
1402
+ const { asChild: l, ...c } = o, d = l ? n : t;
1403
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ b(d, { ...c, ref: i });
98
1404
  });
99
- return i.displayName = `Primitive.${t}`, { ...e, [t]: i };
100
- }, {}), K = '[cmdk-group=""]', ne = '[cmdk-group-items=""]', tt = '[cmdk-group-heading=""]', xe = '[cmdk-item=""]', he = `${xe}:not([aria-disabled="true"])`, oe = "cmdk-item-select", j = "data-value", rt = (e, t, r) => Be(e, t, r), we = l.createContext(void 0), z = () => l.useContext(we), ke = l.createContext(void 0), ie = () => l.useContext(ke), Ee = l.createContext(void 0), Ce = l.forwardRef((e, t) => {
101
- let r = L(() => {
102
- var n, s;
103
- return { search: "", value: (s = (n = e.value) != null ? n : e.defaultValue) != null ? s : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
104
- }), i = L(() => /* @__PURE__ */ new Set()), a = L(() => /* @__PURE__ */ new Map()), o = L(() => /* @__PURE__ */ new Map()), d = L(() => /* @__PURE__ */ new Set()), m = Se(e), { label: p, children: c, value: v, onValueChange: h, filter: S, shouldFilter: k, loop: I, disablePointerSelection: H = !1, vimBindings: $ = !0, ...T } = e, G = V(), ue = V(), U = V(), D = l.useRef(null), y = ft();
105
- N(() => {
106
- if (v !== void 0) {
107
- let n = v.trim();
108
- r.current.value = n, E.emit();
109
- }
110
- }, [v]), N(() => {
111
- y(6, de);
1405
+ return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
1406
+ }, {}), ce = '[cmdk-group=""]', Fe = '[cmdk-group-items=""]', so = '[cmdk-group-heading=""]', Kt = '[cmdk-item=""]', vt = `${Kt}:not([aria-disabled="true"])`, Ue = "cmdk-item-select", re = "data-value", fo = (e, t, n) => pn(e, t, n), Ht = a.createContext(void 0), de = () => a.useContext(Ht), zt = a.createContext(void 0), He = () => a.useContext(zt), Gt = a.createContext(void 0), Yt = a.forwardRef((e, t) => {
1407
+ let n = oe(() => {
1408
+ var s, C;
1409
+ return { search: "", value: (C = (s = e.value) != null ? s : e.defaultValue) != null ? C : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
1410
+ }), r = oe(() => /* @__PURE__ */ new Set()), o = oe(() => /* @__PURE__ */ new Map()), i = oe(() => /* @__PURE__ */ new Map()), l = oe(() => /* @__PURE__ */ new Set()), c = Xt(e), { label: d, children: u, value: f, onValueChange: v, filter: p, shouldFilter: h, loop: D, disablePointerSelection: m = !1, vimBindings: y = !0, ...w } = e, x = $(), A = $(), P = $(), N = a.useRef(null), S = So();
1411
+ X(() => {
1412
+ if (f !== void 0) {
1413
+ let s = f.trim();
1414
+ n.current.value = s, E.emit();
1415
+ }
1416
+ }, [f]), X(() => {
1417
+ S(6, ze);
112
1418
  }, []);
113
- let E = l.useMemo(() => ({ subscribe: (n) => (d.current.add(n), () => d.current.delete(n)), snapshot: () => r.current, setState: (n, s, f) => {
114
- var u, g, b, C;
115
- if (!Object.is(r.current[n], s)) {
116
- if (r.current[n] = s, n === "search") X(), Z(), y(1, J);
117
- else if (n === "value") {
1419
+ let E = a.useMemo(() => ({ subscribe: (s) => (l.current.add(s), () => l.current.delete(s)), snapshot: () => n.current, setState: (s, C, R) => {
1420
+ var g, O, I, T;
1421
+ if (!Object.is(n.current[s], C)) {
1422
+ if (n.current[s] = C, s === "search") Q(), W(), S(1, V);
1423
+ else if (s === "value") {
118
1424
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
119
- let w = document.getElementById(U);
120
- w ? w.focus() : (u = document.getElementById(G)) == null || u.focus();
1425
+ let k = document.getElementById(P);
1426
+ k ? k.focus() : (g = document.getElementById(x)) == null || g.focus();
121
1427
  }
122
- if (y(7, () => {
123
- var w;
124
- r.current.selectedItemId = (w = M()) == null ? void 0 : w.id, E.emit();
125
- }), f || y(5, de), ((g = m.current) == null ? void 0 : g.value) !== void 0) {
126
- let w = s ?? "";
127
- (C = (b = m.current).onValueChange) == null || C.call(b, w);
1428
+ if (S(7, () => {
1429
+ var k;
1430
+ n.current.selectedItemId = (k = J()) == null ? void 0 : k.id, E.emit();
1431
+ }), R || S(5, ze), ((O = c.current) == null ? void 0 : O.value) !== void 0) {
1432
+ let k = C ?? "";
1433
+ (T = (I = c.current).onValueChange) == null || T.call(I, k);
128
1434
  return;
129
1435
  }
130
1436
  }
131
1437
  E.emit();
132
1438
  }
133
1439
  }, emit: () => {
134
- d.current.forEach((n) => n());
135
- } }), []), Y = l.useMemo(() => ({ value: (n, s, f) => {
136
- var u;
137
- s !== ((u = o.current.get(n)) == null ? void 0 : u.value) && (o.current.set(n, { value: s, keywords: f }), r.current.filtered.items.set(n, ce(s, f)), y(2, () => {
138
- Z(), E.emit();
1440
+ l.current.forEach((s) => s());
1441
+ } }), []), M = a.useMemo(() => ({ value: (s, C, R) => {
1442
+ var g;
1443
+ C !== ((g = i.current.get(s)) == null ? void 0 : g.value) && (i.current.set(s, { value: C, keywords: R }), n.current.filtered.items.set(s, F(C, R)), S(2, () => {
1444
+ W(), E.emit();
139
1445
  }));
140
- }, item: (n, s) => (i.current.add(n), s && (a.current.has(s) ? a.current.get(s).add(n) : a.current.set(s, /* @__PURE__ */ new Set([n]))), y(3, () => {
141
- X(), Z(), r.current.value || J(), E.emit();
1446
+ }, item: (s, C) => (r.current.add(s), C && (o.current.has(C) ? o.current.get(C).add(s) : o.current.set(C, /* @__PURE__ */ new Set([s]))), S(3, () => {
1447
+ Q(), W(), n.current.value || V(), E.emit();
142
1448
  }), () => {
143
- o.current.delete(n), i.current.delete(n), r.current.filtered.items.delete(n);
144
- let f = M();
145
- y(4, () => {
146
- X(), f?.getAttribute("id") === n && J(), E.emit();
1449
+ i.current.delete(s), r.current.delete(s), n.current.filtered.items.delete(s);
1450
+ let R = J();
1451
+ S(4, () => {
1452
+ Q(), R?.getAttribute("id") === s && V(), E.emit();
147
1453
  });
148
- }), group: (n) => (a.current.has(n) || a.current.set(n, /* @__PURE__ */ new Set()), () => {
149
- o.current.delete(n), a.current.delete(n);
150
- }), filter: () => m.current.shouldFilter, label: p || e["aria-label"], getDisablePointerSelection: () => m.current.disablePointerSelection, listId: G, inputId: U, labelId: ue, listInnerRef: D }), []);
151
- function ce(n, s) {
152
- var f, u;
153
- let g = (u = (f = m.current) == null ? void 0 : f.filter) != null ? u : rt;
154
- return n ? g(n, r.current.search, s) : 0;
155
- }
156
- function Z() {
157
- if (!r.current.search || m.current.shouldFilter === !1) return;
158
- let n = r.current.filtered.items, s = [];
159
- r.current.filtered.groups.forEach((u) => {
160
- let g = a.current.get(u), b = 0;
161
- g.forEach((C) => {
162
- let w = n.get(C);
163
- b = Math.max(w, b);
164
- }), s.push([u, b]);
1454
+ }), group: (s) => (o.current.has(s) || o.current.set(s, /* @__PURE__ */ new Set()), () => {
1455
+ i.current.delete(s), o.current.delete(s);
1456
+ }), filter: () => c.current.shouldFilter, label: d || e["aria-label"], getDisablePointerSelection: () => c.current.disablePointerSelection, listId: x, inputId: P, labelId: A, listInnerRef: N }), []);
1457
+ function F(s, C) {
1458
+ var R, g;
1459
+ let O = (g = (R = c.current) == null ? void 0 : R.filter) != null ? g : fo;
1460
+ return s ? O(s, n.current.search, C) : 0;
1461
+ }
1462
+ function W() {
1463
+ if (!n.current.search || c.current.shouldFilter === !1) return;
1464
+ let s = n.current.filtered.items, C = [];
1465
+ n.current.filtered.groups.forEach((g) => {
1466
+ let O = o.current.get(g), I = 0;
1467
+ O.forEach((T) => {
1468
+ let k = s.get(T);
1469
+ I = Math.max(k, I);
1470
+ }), C.push([g, I]);
165
1471
  });
166
- let f = D.current;
167
- F().sort((u, g) => {
168
- var b, C;
169
- let w = u.getAttribute("id"), q = g.getAttribute("id");
170
- return ((b = n.get(q)) != null ? b : 0) - ((C = n.get(w)) != null ? C : 0);
171
- }).forEach((u) => {
172
- let g = u.closest(ne);
173
- g ? g.appendChild(u.parentElement === g ? u : u.closest(`${ne} > *`)) : f.appendChild(u.parentElement === f ? u : u.closest(`${ne} > *`));
174
- }), s.sort((u, g) => g[1] - u[1]).forEach((u) => {
175
- var g;
176
- let b = (g = D.current) == null ? void 0 : g.querySelector(`${K}[${j}="${encodeURIComponent(u[0])}"]`);
177
- b?.parentElement.appendChild(b);
1472
+ let R = N.current;
1473
+ ie().sort((g, O) => {
1474
+ var I, T;
1475
+ let k = g.getAttribute("id"), fe = O.getAttribute("id");
1476
+ return ((I = s.get(fe)) != null ? I : 0) - ((T = s.get(k)) != null ? T : 0);
1477
+ }).forEach((g) => {
1478
+ let O = g.closest(Fe);
1479
+ O ? O.appendChild(g.parentElement === O ? g : g.closest(`${Fe} > *`)) : R.appendChild(g.parentElement === R ? g : g.closest(`${Fe} > *`));
1480
+ }), C.sort((g, O) => O[1] - g[1]).forEach((g) => {
1481
+ var O;
1482
+ let I = (O = N.current) == null ? void 0 : O.querySelector(`${ce}[${re}="${encodeURIComponent(g[0])}"]`);
1483
+ I?.parentElement.appendChild(I);
178
1484
  });
179
1485
  }
180
- function J() {
181
- let n = F().find((f) => f.getAttribute("aria-disabled") !== "true"), s = n?.getAttribute(j);
182
- E.setState("value", s || void 0);
1486
+ function V() {
1487
+ let s = ie().find((R) => R.getAttribute("aria-disabled") !== "true"), C = s?.getAttribute(re);
1488
+ E.setState("value", C || void 0);
183
1489
  }
184
- function X() {
185
- var n, s, f, u;
186
- if (!r.current.search || m.current.shouldFilter === !1) {
187
- r.current.filtered.count = i.current.size;
1490
+ function Q() {
1491
+ var s, C, R, g;
1492
+ if (!n.current.search || c.current.shouldFilter === !1) {
1493
+ n.current.filtered.count = r.current.size;
188
1494
  return;
189
1495
  }
190
- r.current.filtered.groups = /* @__PURE__ */ new Set();
191
- let g = 0;
192
- for (let b of i.current) {
193
- let C = (s = (n = o.current.get(b)) == null ? void 0 : n.value) != null ? s : "", w = (u = (f = o.current.get(b)) == null ? void 0 : f.keywords) != null ? u : [], q = ce(C, w);
194
- r.current.filtered.items.set(b, q), q > 0 && g++;
1496
+ n.current.filtered.groups = /* @__PURE__ */ new Set();
1497
+ let O = 0;
1498
+ for (let I of r.current) {
1499
+ let T = (C = (s = i.current.get(I)) == null ? void 0 : s.value) != null ? C : "", k = (g = (R = i.current.get(I)) == null ? void 0 : R.keywords) != null ? g : [], fe = F(T, k);
1500
+ n.current.filtered.items.set(I, fe), fe > 0 && O++;
195
1501
  }
196
- for (let [b, C] of a.current) for (let w of C) if (r.current.filtered.items.get(w) > 0) {
197
- r.current.filtered.groups.add(b);
1502
+ for (let [I, T] of o.current) for (let k of T) if (n.current.filtered.items.get(k) > 0) {
1503
+ n.current.filtered.groups.add(I);
198
1504
  break;
199
1505
  }
200
- r.current.filtered.count = g;
1506
+ n.current.filtered.count = O;
201
1507
  }
202
- function de() {
203
- var n, s, f;
204
- let u = M();
205
- u && (((n = u.parentElement) == null ? void 0 : n.firstChild) === u && ((f = (s = u.closest(K)) == null ? void 0 : s.querySelector(tt)) == null || f.scrollIntoView({ block: "nearest" })), u.scrollIntoView({ block: "nearest" }));
1508
+ function ze() {
1509
+ var s, C, R;
1510
+ let g = J();
1511
+ g && (((s = g.parentElement) == null ? void 0 : s.firstChild) === g && ((R = (C = g.closest(ce)) == null ? void 0 : C.querySelector(so)) == null || R.scrollIntoView({ block: "nearest" })), g.scrollIntoView({ block: "nearest" }));
206
1512
  }
207
- function M() {
208
- var n;
209
- return (n = D.current) == null ? void 0 : n.querySelector(`${xe}[aria-selected="true"]`);
1513
+ function J() {
1514
+ var s;
1515
+ return (s = N.current) == null ? void 0 : s.querySelector(`${Kt}[aria-selected="true"]`);
210
1516
  }
211
- function F() {
212
- var n;
213
- return Array.from(((n = D.current) == null ? void 0 : n.querySelectorAll(he)) || []);
1517
+ function ie() {
1518
+ var s;
1519
+ return Array.from(((s = N.current) == null ? void 0 : s.querySelectorAll(vt)) || []);
214
1520
  }
215
- function Q(n) {
216
- let s = F()[n];
217
- s && E.setState("value", s.getAttribute(j));
1521
+ function xe(s) {
1522
+ let C = ie()[s];
1523
+ C && E.setState("value", C.getAttribute(re));
218
1524
  }
219
- function ee(n) {
220
- var s;
221
- let f = M(), u = F(), g = u.findIndex((C) => C === f), b = u[g + n];
222
- (s = m.current) != null && s.loop && (b = g + n < 0 ? u[u.length - 1] : g + n === u.length ? u[0] : u[g + n]), b && E.setState("value", b.getAttribute(j));
223
- }
224
- function se(n) {
225
- let s = M(), f = s?.closest(K), u;
226
- for (; f && !u; ) f = n > 0 ? st(f, K) : mt(f, K), u = f?.querySelector(he);
227
- u ? E.setState("value", u.getAttribute(j)) : ee(n);
228
- }
229
- let me = () => Q(F().length - 1), fe = (n) => {
230
- n.preventDefault(), n.metaKey ? me() : n.altKey ? se(1) : ee(1);
231
- }, pe = (n) => {
232
- n.preventDefault(), n.metaKey ? Q(0) : n.altKey ? se(-1) : ee(-1);
1525
+ function Pe(s) {
1526
+ var C;
1527
+ let R = J(), g = ie(), O = g.findIndex((T) => T === R), I = g[O + s];
1528
+ (C = c.current) != null && C.loop && (I = O + s < 0 ? g[g.length - 1] : O + s === g.length ? g[0] : g[O + s]), I && E.setState("value", I.getAttribute(re));
1529
+ }
1530
+ function Ge(s) {
1531
+ let C = J(), R = C?.closest(ce), g;
1532
+ for (; R && !g; ) R = s > 0 ? Co(R, ce) : wo(R, ce), g = R?.querySelector(vt);
1533
+ g ? E.setState("value", g.getAttribute(re)) : Pe(s);
1534
+ }
1535
+ let Ye = () => xe(ie().length - 1), Xe = (s) => {
1536
+ s.preventDefault(), s.metaKey ? Ye() : s.altKey ? Ge(1) : Pe(1);
1537
+ }, qe = (s) => {
1538
+ s.preventDefault(), s.metaKey ? xe(0) : s.altKey ? Ge(-1) : Pe(-1);
233
1539
  };
234
- return l.createElement(A.div, { ref: t, tabIndex: -1, ...T, "cmdk-root": "", onKeyDown: (n) => {
235
- var s;
236
- (s = T.onKeyDown) == null || s.call(T, n);
237
- let f = n.nativeEvent.isComposing || n.keyCode === 229;
238
- if (!(n.defaultPrevented || f)) switch (n.key) {
1540
+ return a.createElement(G.div, { ref: t, tabIndex: -1, ...w, "cmdk-root": "", onKeyDown: (s) => {
1541
+ var C;
1542
+ (C = w.onKeyDown) == null || C.call(w, s);
1543
+ let R = s.nativeEvent.isComposing || s.keyCode === 229;
1544
+ if (!(s.defaultPrevented || R)) switch (s.key) {
239
1545
  case "n":
240
1546
  case "j": {
241
- $ && n.ctrlKey && fe(n);
1547
+ y && s.ctrlKey && Xe(s);
242
1548
  break;
243
1549
  }
244
1550
  case "ArrowDown": {
245
- fe(n);
1551
+ Xe(s);
246
1552
  break;
247
1553
  }
248
1554
  case "p":
249
1555
  case "k": {
250
- $ && n.ctrlKey && pe(n);
1556
+ y && s.ctrlKey && qe(s);
251
1557
  break;
252
1558
  }
253
1559
  case "ArrowUp": {
254
- pe(n);
1560
+ qe(s);
255
1561
  break;
256
1562
  }
257
1563
  case "Home": {
258
- n.preventDefault(), Q(0);
1564
+ s.preventDefault(), xe(0);
259
1565
  break;
260
1566
  }
261
1567
  case "End": {
262
- n.preventDefault(), me();
1568
+ s.preventDefault(), Ye();
263
1569
  break;
264
1570
  }
265
1571
  case "Enter": {
266
- n.preventDefault();
267
- let u = M();
268
- if (u) {
269
- let g = new Event(oe);
270
- u.dispatchEvent(g);
1572
+ s.preventDefault();
1573
+ let g = J();
1574
+ if (g) {
1575
+ let O = new Event(Ue);
1576
+ g.dispatchEvent(O);
271
1577
  }
272
1578
  }
273
1579
  }
274
- } }, l.createElement("label", { "cmdk-label": "", htmlFor: Y.inputId, id: Y.labelId, style: vt }, p), B(e, (n) => l.createElement(ke.Provider, { value: E }, l.createElement(we.Provider, { value: Y }, n))));
275
- }), nt = l.forwardRef((e, t) => {
276
- var r, i;
277
- let a = V(), o = l.useRef(null), d = l.useContext(Ee), m = z(), p = Se(e), c = (i = (r = p.current) == null ? void 0 : r.forceMount) != null ? i : d?.forceMount;
278
- N(() => {
279
- if (!c) return m.item(a, d?.id);
280
- }, [c]);
281
- let v = Ie(a, o, [e.value, e.children, o], e.keywords), h = ie(), S = R((y) => y.value && y.value === v.current), k = R((y) => c || m.filter() === !1 ? !0 : y.search ? y.filtered.items.get(a) > 0 : !0);
282
- l.useEffect(() => {
283
- let y = o.current;
284
- if (!(!y || e.disabled)) return y.addEventListener(oe, I), () => y.removeEventListener(oe, I);
285
- }, [k, e.onSelect, e.disabled]);
286
- function I() {
287
- var y, E;
288
- H(), (E = (y = p.current).onSelect) == null || E.call(y, v.current);
289
- }
290
- function H() {
291
- h.setState("value", v.current, !0);
292
- }
293
- if (!k) return null;
294
- let { disabled: $, value: T, onSelect: G, forceMount: ue, keywords: U, ...D } = e;
295
- return l.createElement(A.div, { ref: O(o, t), ...D, id: a, "cmdk-item": "", role: "option", "aria-disabled": !!$, "aria-selected": !!S, "data-disabled": !!$, "data-selected": !!S, onPointerMove: $ || m.getDisablePointerSelection() ? void 0 : H, onClick: $ ? void 0 : I }, e.children);
296
- }), lt = l.forwardRef((e, t) => {
297
- let { heading: r, children: i, forceMount: a, ...o } = e, d = V(), m = l.useRef(null), p = l.useRef(null), c = V(), v = z(), h = R((k) => a || v.filter() === !1 ? !0 : k.search ? k.filtered.groups.has(d) : !0);
298
- N(() => v.group(d), []), Ie(d, m, [e.value, e.heading, p]);
299
- let S = l.useMemo(() => ({ id: d, forceMount: a }), [a]);
300
- return l.createElement(A.div, { ref: O(m, t), ...o, "cmdk-group": "", role: "presentation", hidden: h ? void 0 : !0 }, r && l.createElement("div", { ref: p, "cmdk-group-heading": "", "aria-hidden": !0, id: c }, r), B(e, (k) => l.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? c : void 0 }, l.createElement(Ee.Provider, { value: S }, k))));
301
- }), at = l.forwardRef((e, t) => {
302
- let { alwaysRender: r, ...i } = e, a = l.useRef(null), o = R((d) => !d.search);
303
- return !r && !o ? null : l.createElement(A.div, { ref: O(a, t), ...i, "cmdk-separator": "", role: "separator" });
304
- }), ot = l.forwardRef((e, t) => {
305
- let { onValueChange: r, ...i } = e, a = e.value != null, o = ie(), d = R((c) => c.search), m = R((c) => c.selectedItemId), p = z();
306
- return l.useEffect(() => {
307
- e.value != null && o.setState("search", e.value);
308
- }, [e.value]), l.createElement(A.input, { ref: t, ...i, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": p.listId, "aria-labelledby": p.labelId, "aria-activedescendant": m, id: p.inputId, type: "text", value: a ? e.value : d, onChange: (c) => {
309
- a || o.setState("search", c.target.value), r?.(c.target.value);
1580
+ } }, a.createElement("label", { "cmdk-label": "", htmlFor: M.inputId, id: M.labelId, style: Do }, d), De(e, (s) => a.createElement(zt.Provider, { value: E }, a.createElement(Ht.Provider, { value: M }, s))));
1581
+ }), vo = a.forwardRef((e, t) => {
1582
+ var n, r;
1583
+ let o = $(), i = a.useRef(null), l = a.useContext(Gt), c = de(), d = Xt(e), u = (r = (n = d.current) == null ? void 0 : n.forceMount) != null ? r : l?.forceMount;
1584
+ X(() => {
1585
+ if (!u) return c.item(o, l?.id);
1586
+ }, [u]);
1587
+ let f = qt(o, i, [e.value, e.children, i], e.keywords), v = He(), p = z((S) => S.value && S.value === f.current), h = z((S) => u || c.filter() === !1 ? !0 : S.search ? S.filtered.items.get(o) > 0 : !0);
1588
+ a.useEffect(() => {
1589
+ let S = i.current;
1590
+ if (!(!S || e.disabled)) return S.addEventListener(Ue, D), () => S.removeEventListener(Ue, D);
1591
+ }, [h, e.onSelect, e.disabled]);
1592
+ function D() {
1593
+ var S, E;
1594
+ m(), (E = (S = d.current).onSelect) == null || E.call(S, f.current);
1595
+ }
1596
+ function m() {
1597
+ v.setState("value", f.current, !0);
1598
+ }
1599
+ if (!h) return null;
1600
+ let { disabled: y, value: w, onSelect: x, forceMount: A, keywords: P, ...N } = e;
1601
+ return a.createElement(G.div, { ref: H(i, t), ...N, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!y, "aria-selected": !!p, "data-disabled": !!y, "data-selected": !!p, onPointerMove: y || c.getDisablePointerSelection() ? void 0 : m, onClick: y ? void 0 : D }, e.children);
1602
+ }), mo = a.forwardRef((e, t) => {
1603
+ let { heading: n, children: r, forceMount: o, ...i } = e, l = $(), c = a.useRef(null), d = a.useRef(null), u = $(), f = de(), v = z((h) => o || f.filter() === !1 ? !0 : h.search ? h.filtered.groups.has(l) : !0);
1604
+ X(() => f.group(l), []), qt(l, c, [e.value, e.heading, d]);
1605
+ let p = a.useMemo(() => ({ id: l, forceMount: o }), [o]);
1606
+ return a.createElement(G.div, { ref: H(c, t), ...i, "cmdk-group": "", role: "presentation", hidden: v ? void 0 : !0 }, n && a.createElement("div", { ref: d, "cmdk-group-heading": "", "aria-hidden": !0, id: u }, n), De(e, (h) => a.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? u : void 0 }, a.createElement(Gt.Provider, { value: p }, h))));
1607
+ }), po = a.forwardRef((e, t) => {
1608
+ let { alwaysRender: n, ...r } = e, o = a.useRef(null), i = z((l) => !l.search);
1609
+ return !n && !i ? null : a.createElement(G.div, { ref: H(o, t), ...r, "cmdk-separator": "", role: "separator" });
1610
+ }), ho = a.forwardRef((e, t) => {
1611
+ let { onValueChange: n, ...r } = e, o = e.value != null, i = He(), l = z((u) => u.search), c = z((u) => u.selectedItemId), d = de();
1612
+ return a.useEffect(() => {
1613
+ e.value != null && i.setState("search", e.value);
1614
+ }, [e.value]), a.createElement(G.input, { ref: t, ...r, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": d.listId, "aria-labelledby": d.labelId, "aria-activedescendant": c, id: d.inputId, type: "text", value: o ? e.value : l, onChange: (u) => {
1615
+ o || i.setState("search", u.target.value), n?.(u.target.value);
310
1616
  } });
311
- }), it = l.forwardRef((e, t) => {
312
- let { children: r, label: i = "Suggestions", ...a } = e, o = l.useRef(null), d = l.useRef(null), m = R((c) => c.selectedItemId), p = z();
313
- return l.useEffect(() => {
314
- if (d.current && o.current) {
315
- let c = d.current, v = o.current, h, S = new ResizeObserver(() => {
316
- h = requestAnimationFrame(() => {
317
- let k = c.offsetHeight;
318
- v.style.setProperty("--cmdk-list-height", k.toFixed(1) + "px");
1617
+ }), go = a.forwardRef((e, t) => {
1618
+ let { children: n, label: r = "Suggestions", ...o } = e, i = a.useRef(null), l = a.useRef(null), c = z((u) => u.selectedItemId), d = de();
1619
+ return a.useEffect(() => {
1620
+ if (l.current && i.current) {
1621
+ let u = l.current, f = i.current, v, p = new ResizeObserver(() => {
1622
+ v = requestAnimationFrame(() => {
1623
+ let h = u.offsetHeight;
1624
+ f.style.setProperty("--cmdk-list-height", h.toFixed(1) + "px");
319
1625
  });
320
1626
  });
321
- return S.observe(c), () => {
322
- cancelAnimationFrame(h), S.unobserve(c);
1627
+ return p.observe(u), () => {
1628
+ cancelAnimationFrame(v), p.unobserve(u);
323
1629
  };
324
1630
  }
325
- }, []), l.createElement(A.div, { ref: O(o, t), ...a, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": m, "aria-label": i, id: p.listId }, B(e, (c) => l.createElement("div", { ref: O(d, p.listInnerRef), "cmdk-list-sizer": "" }, c)));
326
- }), ut = l.forwardRef((e, t) => {
327
- let { open: r, onOpenChange: i, overlayClassName: a, contentClassName: o, container: d, ...m } = e;
328
- return l.createElement(Re, { open: r, onOpenChange: i }, l.createElement(_e, { container: d }, l.createElement(Ae, { "cmdk-overlay": "", className: a }), l.createElement($e, { "aria-label": e.label, "cmdk-dialog": "", className: o }, l.createElement(Ce, { ref: t, ...m }))));
329
- }), ct = l.forwardRef((e, t) => R((r) => r.filtered.count === 0) ? l.createElement(A.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), dt = l.forwardRef((e, t) => {
330
- let { progress: r, children: i, label: a = "Loading...", ...o } = e;
331
- return l.createElement(A.div, { ref: t, ...o, "cmdk-loading": "", role: "progressbar", "aria-valuenow": r, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": a }, B(e, (d) => l.createElement("div", { "aria-hidden": !0 }, d)));
332
- }), P = Object.assign(Ce, { List: it, Item: nt, Input: ot, Group: lt, Separator: at, Dialog: ut, Empty: ct, Loading: dt });
333
- function st(e, t) {
334
- let r = e.nextElementSibling;
335
- for (; r; ) {
336
- if (r.matches(t)) return r;
337
- r = r.nextElementSibling;
338
- }
339
- }
340
- function mt(e, t) {
341
- let r = e.previousElementSibling;
342
- for (; r; ) {
343
- if (r.matches(t)) return r;
344
- r = r.previousElementSibling;
345
- }
346
- }
347
- function Se(e) {
348
- let t = l.useRef(e);
349
- return N(() => {
1631
+ }, []), a.createElement(G.div, { ref: H(i, t), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": c, "aria-label": r, id: d.listId }, De(e, (u) => a.createElement("div", { ref: H(l, d.listInnerRef), "cmdk-list-sizer": "" }, u)));
1632
+ }), yo = a.forwardRef((e, t) => {
1633
+ let { open: n, onOpenChange: r, overlayClassName: o, contentClassName: i, container: l, ...c } = e;
1634
+ return a.createElement(Zr, { open: n, onOpenChange: r }, a.createElement(Qr, { container: l }, a.createElement(Jr, { "cmdk-overlay": "", className: o }), a.createElement(eo, { "aria-label": e.label, "cmdk-dialog": "", className: i }, a.createElement(Yt, { ref: t, ...c }))));
1635
+ }), bo = a.forwardRef((e, t) => z((n) => n.filtered.count === 0) ? a.createElement(G.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), Eo = a.forwardRef((e, t) => {
1636
+ let { progress: n, children: r, label: o = "Loading...", ...i } = e;
1637
+ return a.createElement(G.div, { ref: t, ...i, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, De(e, (l) => a.createElement("div", { "aria-hidden": !0 }, l)));
1638
+ }), Z = Object.assign(Yt, { List: go, Item: vo, Input: ho, Group: mo, Separator: po, Dialog: yo, Empty: bo, Loading: Eo });
1639
+ function Co(e, t) {
1640
+ let n = e.nextElementSibling;
1641
+ for (; n; ) {
1642
+ if (n.matches(t)) return n;
1643
+ n = n.nextElementSibling;
1644
+ }
1645
+ }
1646
+ function wo(e, t) {
1647
+ let n = e.previousElementSibling;
1648
+ for (; n; ) {
1649
+ if (n.matches(t)) return n;
1650
+ n = n.previousElementSibling;
1651
+ }
1652
+ }
1653
+ function Xt(e) {
1654
+ let t = a.useRef(e);
1655
+ return X(() => {
350
1656
  t.current = e;
351
1657
  }), t;
352
1658
  }
353
- var N = typeof window > "u" ? l.useEffect : l.useLayoutEffect;
354
- function L(e) {
355
- let t = l.useRef();
1659
+ var X = typeof window > "u" ? a.useEffect : a.useLayoutEffect;
1660
+ function oe(e) {
1661
+ let t = a.useRef();
356
1662
  return t.current === void 0 && (t.current = e()), t;
357
1663
  }
358
- function R(e) {
359
- let t = ie(), r = () => e(t.snapshot());
360
- return l.useSyncExternalStore(t.subscribe, r, r);
361
- }
362
- function Ie(e, t, r, i = []) {
363
- let a = l.useRef(), o = z();
364
- return N(() => {
365
- var d;
366
- let m = (() => {
367
- var c;
368
- for (let v of r) {
369
- if (typeof v == "string") return v.trim();
370
- if (typeof v == "object" && "current" in v) return v.current ? (c = v.current.textContent) == null ? void 0 : c.trim() : a.current;
1664
+ function z(e) {
1665
+ let t = He(), n = () => e(t.snapshot());
1666
+ return a.useSyncExternalStore(t.subscribe, n, n);
1667
+ }
1668
+ function qt(e, t, n, r = []) {
1669
+ let o = a.useRef(), i = de();
1670
+ return X(() => {
1671
+ var l;
1672
+ let c = (() => {
1673
+ var u;
1674
+ for (let f of n) {
1675
+ if (typeof f == "string") return f.trim();
1676
+ if (typeof f == "object" && "current" in f) return f.current ? (u = f.current.textContent) == null ? void 0 : u.trim() : o.current;
371
1677
  }
372
- })(), p = i.map((c) => c.trim());
373
- o.value(e, m, p), (d = t.current) == null || d.setAttribute(j, m), a.current = m;
374
- }), a;
375
- }
376
- var ft = () => {
377
- let [e, t] = l.useState(), r = L(() => /* @__PURE__ */ new Map());
378
- return N(() => {
379
- r.current.forEach((i) => i()), r.current = /* @__PURE__ */ new Map();
380
- }, [e]), (i, a) => {
381
- r.current.set(i, a), t({});
1678
+ })(), d = r.map((u) => u.trim());
1679
+ i.value(e, c, d), (l = t.current) == null || l.setAttribute(re, c), o.current = c;
1680
+ }), o;
1681
+ }
1682
+ var So = () => {
1683
+ let [e, t] = a.useState(), n = oe(() => /* @__PURE__ */ new Map());
1684
+ return X(() => {
1685
+ n.current.forEach((r) => r()), n.current = /* @__PURE__ */ new Map();
1686
+ }, [e]), (r, o) => {
1687
+ n.current.set(r, o), t({});
382
1688
  };
383
1689
  };
384
- function pt(e) {
1690
+ function Ro(e) {
385
1691
  let t = e.type;
386
1692
  return typeof t == "function" ? t(e.props) : "render" in t ? t.render(e.props) : e;
387
1693
  }
388
- function B({ asChild: e, children: t }, r) {
389
- return e && l.isValidElement(t) ? l.cloneElement(pt(t), { ref: t.ref }, r(t.props.children)) : r(t);
1694
+ function De({ asChild: e, children: t }, n) {
1695
+ return e && a.isValidElement(t) ? a.cloneElement(Ro(t), { ref: t.ref }, n(t.props.children)) : n(t);
390
1696
  }
391
- var vt = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
392
- function gt({
1697
+ var Do = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
1698
+ function xo({
393
1699
  className: e,
394
1700
  ...t
395
1701
  }) {
396
- return /* @__PURE__ */ x(
397
- P,
1702
+ return /* @__PURE__ */ b(
1703
+ Z,
398
1704
  {
399
- className: _(
1705
+ className: B(
400
1706
  "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
401
1707
  e
402
1708
  ),
@@ -405,30 +1711,30 @@ function gt({
405
1711
  }
406
1712
  );
407
1713
  }
408
- function St({
1714
+ function Mo({
409
1715
  title: e = "Command Palette",
410
1716
  description: t = "Search for a command to run...",
411
- children: r,
412
- className: i,
413
- showCloseButton: a = !0,
414
- ...o
1717
+ children: n,
1718
+ className: r,
1719
+ showCloseButton: o = !0,
1720
+ ...i
415
1721
  }) {
416
- return /* @__PURE__ */ le(Ne, { ...o, children: [
417
- /* @__PURE__ */ le(Pe, { className: "sr-only", children: [
418
- /* @__PURE__ */ x(Me, { children: e }),
419
- /* @__PURE__ */ x(je, { children: t })
1722
+ return /* @__PURE__ */ le(tn, { ...i, children: [
1723
+ /* @__PURE__ */ le(nn, { className: "sr-only", children: [
1724
+ /* @__PURE__ */ b(rn, { children: e }),
1725
+ /* @__PURE__ */ b(on, { children: t })
420
1726
  ] }),
421
- /* @__PURE__ */ x(
422
- Le,
1727
+ /* @__PURE__ */ b(
1728
+ an,
423
1729
  {
424
- className: _("overflow-hidden p-0", i),
425
- showCloseButton: a,
426
- children: /* @__PURE__ */ x(gt, { className: "**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: r })
1730
+ className: B("overflow-hidden p-0", r),
1731
+ showCloseButton: o,
1732
+ children: /* @__PURE__ */ b(xo, { className: "**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: n })
427
1733
  }
428
1734
  )
429
1735
  ] });
430
1736
  }
431
- function It({
1737
+ function _o({
432
1738
  className: e,
433
1739
  ...t
434
1740
  }) {
@@ -438,11 +1744,11 @@ function It({
438
1744
  className: "flex h-9 items-center gap-2 border-b px-3",
439
1745
  "data-slot": "command-input-wrapper",
440
1746
  children: [
441
- /* @__PURE__ */ x(De, { className: "size-4 shrink-0 opacity-50" }),
442
- /* @__PURE__ */ x(
443
- P.Input,
1747
+ /* @__PURE__ */ b(en, { className: "size-4 shrink-0 opacity-50" }),
1748
+ /* @__PURE__ */ b(
1749
+ Z.Input,
444
1750
  {
445
- className: _(
1751
+ className: B(
446
1752
  "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
447
1753
  e
448
1754
  ),
@@ -454,14 +1760,14 @@ function It({
454
1760
  }
455
1761
  );
456
1762
  }
457
- function Rt({
1763
+ function Lo({
458
1764
  className: e,
459
1765
  ...t
460
1766
  }) {
461
- return /* @__PURE__ */ x(
462
- P.List,
1767
+ return /* @__PURE__ */ b(
1768
+ Z.List,
463
1769
  {
464
- className: _(
1770
+ className: B(
465
1771
  "max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden",
466
1772
  e
467
1773
  ),
@@ -470,26 +1776,27 @@ function Rt({
470
1776
  }
471
1777
  );
472
1778
  }
473
- function _t({
474
- ...e
1779
+ function Fo({
1780
+ className: e,
1781
+ ...t
475
1782
  }) {
476
- return /* @__PURE__ */ x(
477
- P.Empty,
1783
+ return /* @__PURE__ */ b(
1784
+ Z.Empty,
478
1785
  {
479
- className: "py-6 text-center text-sm",
1786
+ className: B("py-6 text-center text-sm", e),
480
1787
  "data-slot": "command-empty",
481
- ...e
1788
+ ...t
482
1789
  }
483
1790
  );
484
1791
  }
485
- function At({
1792
+ function Wo({
486
1793
  className: e,
487
1794
  ...t
488
1795
  }) {
489
- return /* @__PURE__ */ x(
490
- P.Group,
1796
+ return /* @__PURE__ */ b(
1797
+ Z.Group,
491
1798
  {
492
- className: _(
1799
+ className: B(
493
1800
  "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs",
494
1801
  e
495
1802
  ),
@@ -498,27 +1805,27 @@ function At({
498
1805
  }
499
1806
  );
500
1807
  }
501
- function $t({
1808
+ function $o({
502
1809
  className: e,
503
1810
  ...t
504
1811
  }) {
505
- return /* @__PURE__ */ x(
506
- P.Separator,
1812
+ return /* @__PURE__ */ b(
1813
+ Z.Separator,
507
1814
  {
508
- className: _("-mx-1 h-px bg-border", e),
1815
+ className: B("-mx-1 h-px bg-border", e),
509
1816
  "data-slot": "command-separator",
510
1817
  ...t
511
1818
  }
512
1819
  );
513
1820
  }
514
- function Dt({
1821
+ function Bo({
515
1822
  className: e,
516
1823
  ...t
517
1824
  }) {
518
- return /* @__PURE__ */ x(
519
- P.Item,
1825
+ return /* @__PURE__ */ b(
1826
+ Z.Item,
520
1827
  {
521
- className: _(
1828
+ className: B(
522
1829
  "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",
523
1830
  e
524
1831
  ),
@@ -527,14 +1834,14 @@ function Dt({
527
1834
  }
528
1835
  );
529
1836
  }
530
- function Nt({
1837
+ function Uo({
531
1838
  className: e,
532
1839
  ...t
533
1840
  }) {
534
- return /* @__PURE__ */ x(
1841
+ return /* @__PURE__ */ b(
535
1842
  "span",
536
1843
  {
537
- className: _(
1844
+ className: B(
538
1845
  "ml-auto text-muted-foreground text-xs tracking-widest",
539
1846
  e
540
1847
  ),
@@ -544,13 +1851,13 @@ function Nt({
544
1851
  );
545
1852
  }
546
1853
  export {
547
- gt as Command,
548
- St as CommandDialog,
549
- _t as CommandEmpty,
550
- At as CommandGroup,
551
- It as CommandInput,
552
- Dt as CommandItem,
553
- Rt as CommandList,
554
- $t as CommandSeparator,
555
- Nt as CommandShortcut
1854
+ xo as Command,
1855
+ Mo as CommandDialog,
1856
+ Fo as CommandEmpty,
1857
+ Wo as CommandGroup,
1858
+ _o as CommandInput,
1859
+ Bo as CommandItem,
1860
+ Lo as CommandList,
1861
+ $o as CommandSeparator,
1862
+ Uo as CommandShortcut
556
1863
  };