@arcadeai/design-system 3.39.1 → 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 (414) 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/images/arcade-grid.d.ts.map +1 -1
  18. package/dist/assets/images/arcade-grid.js +1 -0
  19. package/dist/assets/index.css +1 -1
  20. package/dist/assets/tokens.css +1 -1
  21. package/dist/assets/variables.css +1 -1
  22. package/dist/astro--3ZkKqYU.js +18 -0
  23. package/dist/astro-CFFExE8Q.js +5 -5
  24. package/dist/aurora-x-B56eICma.js +4 -0
  25. package/dist/ayu-dark-DJSOaKig.js +4 -0
  26. package/dist/ayu-light-BPfFt4v-.js +4 -0
  27. package/dist/ayu-mirage-DmPLRBj7.js +4 -0
  28. package/dist/blade-BoRuQEEj.js +20 -0
  29. package/dist/blade-D0HyNvCw.js +4 -4
  30. package/dist/c-C4SM8H98.js +6 -0
  31. package/dist/cairo-DM6WF2e3.js +1 -1
  32. package/dist/{calendar-DreAgQKY.js → calendar-CLEnvrbp.js} +483 -482
  33. package/dist/catppuccin-frappe-CA5k7W3u.js +4 -0
  34. package/dist/catppuccin-latte-CYfkUW5v.js +4 -0
  35. package/dist/catppuccin-macchiato-BOj_4I3g.js +4 -0
  36. package/dist/catppuccin-mocha-BXpUXme4.js +4 -0
  37. package/dist/clamp-BxE4ZAuA.js +17 -0
  38. package/dist/cobol-HihOMwht.js +1 -1
  39. package/dist/coffee-D8Swy5yR.js +8 -0
  40. package/dist/components/index.js +665 -646
  41. package/dist/components/ui/atoms/accordion.d.ts +9 -7
  42. package/dist/components/ui/atoms/accordion.d.ts.map +1 -1
  43. package/dist/components/ui/atoms/accordion.js +454 -243
  44. package/dist/components/ui/atoms/alert-dialog.d.ts +13 -9
  45. package/dist/components/ui/atoms/alert-dialog.d.ts.map +1 -1
  46. package/dist/components/ui/atoms/alert-dialog.js +149 -183
  47. package/dist/components/ui/atoms/alert.d.ts +2 -1
  48. package/dist/components/ui/atoms/alert.d.ts.map +1 -1
  49. package/dist/components/ui/atoms/alert.js +36 -25
  50. package/dist/components/ui/atoms/avatar.d.ts +10 -5
  51. package/dist/components/ui/atoms/avatar.d.ts.map +1 -1
  52. package/dist/components/ui/atoms/avatar.js +198 -205
  53. package/dist/components/ui/atoms/badge.d.ts +4 -5
  54. package/dist/components/ui/atoms/badge.d.ts.map +1 -1
  55. package/dist/components/ui/atoms/badge.js +31 -22
  56. package/dist/components/ui/atoms/breadcrumb.d.ts +4 -5
  57. package/dist/components/ui/atoms/breadcrumb.d.ts.map +1 -1
  58. package/dist/components/ui/atoms/breadcrumb.js +46 -29
  59. package/dist/components/ui/atoms/button.d.ts +4 -6
  60. package/dist/components/ui/atoms/button.d.ts.map +1 -1
  61. package/dist/components/ui/atoms/button.js +59 -28
  62. package/dist/components/ui/atoms/byoc-badge.d.ts +2 -2
  63. package/dist/components/ui/atoms/byoc-badge.d.ts.map +1 -1
  64. package/dist/components/ui/atoms/byoc-badge.js +14 -8
  65. package/dist/components/ui/atoms/calendar.d.ts +6 -16
  66. package/dist/components/ui/atoms/calendar.d.ts.map +1 -1
  67. package/dist/components/ui/atoms/calendar.js +1 -1
  68. package/dist/components/ui/atoms/card.d.ts +4 -2
  69. package/dist/components/ui/atoms/card.d.ts.map +1 -1
  70. package/dist/components/ui/atoms/card.js +46 -35
  71. package/dist/components/ui/atoms/chart.d.ts +24 -48
  72. package/dist/components/ui/atoms/chart.d.ts.map +1 -1
  73. package/dist/components/ui/atoms/chart.js +179 -148
  74. package/dist/components/ui/atoms/checkbox.d.ts +2 -3
  75. package/dist/components/ui/atoms/checkbox.d.ts.map +1 -1
  76. package/dist/components/ui/atoms/checkbox.js +269 -249
  77. package/dist/components/ui/atoms/code-block.js +1 -1
  78. package/dist/components/ui/atoms/collapsible.d.ts +5 -5
  79. package/dist/components/ui/atoms/collapsible.d.ts.map +1 -1
  80. package/dist/components/ui/atoms/collapsible.js +208 -23
  81. package/dist/components/ui/atoms/command.d.ts +4 -3
  82. package/dist/components/ui/atoms/command.d.ts.map +1 -1
  83. package/dist/components/ui/atoms/command.js +1655 -348
  84. package/dist/components/ui/atoms/dialog.d.ts +12 -10
  85. package/dist/components/ui/atoms/dialog.d.ts.map +1 -1
  86. package/dist/components/ui/atoms/dialog.js +91 -80
  87. package/dist/components/ui/atoms/dropdown-menu.d.ts +21 -17
  88. package/dist/components/ui/atoms/dropdown-menu.d.ts.map +1 -1
  89. package/dist/components/ui/atoms/dropdown-menu.js +1507 -899
  90. package/dist/components/ui/atoms/form.d.ts +5 -3
  91. package/dist/components/ui/atoms/form.d.ts.map +1 -1
  92. package/dist/components/ui/atoms/form.js +36 -42
  93. package/dist/components/ui/atoms/hover-card.d.ts +5 -6
  94. package/dist/components/ui/atoms/hover-card.d.ts.map +1 -1
  95. package/dist/components/ui/atoms/hover-card.js +355 -193
  96. package/dist/components/ui/atoms/index.d.ts +1 -0
  97. package/dist/components/ui/atoms/index.d.ts.map +1 -1
  98. package/dist/components/ui/atoms/index.js +566 -547
  99. package/dist/components/ui/atoms/input-group.d.ts +20 -0
  100. package/dist/components/ui/atoms/input-group.d.ts.map +1 -0
  101. package/dist/components/ui/atoms/input-group.js +136 -0
  102. package/dist/components/ui/atoms/input.d.ts.map +1 -1
  103. package/dist/components/ui/atoms/input.js +113 -13
  104. package/dist/components/ui/atoms/label.d.ts +1 -2
  105. package/dist/components/ui/atoms/label.d.ts.map +1 -1
  106. package/dist/components/ui/atoms/label.js +18 -31
  107. package/dist/components/ui/atoms/markdown.js +1 -1
  108. package/dist/components/ui/atoms/mobile-tooltip.js +4 -3
  109. package/dist/components/ui/atoms/popover.d.ts +8 -6
  110. package/dist/components/ui/atoms/popover.d.ts.map +1 -1
  111. package/dist/components/ui/atoms/popover.js +617 -245
  112. package/dist/components/ui/atoms/pro-badge.js +1 -1
  113. package/dist/components/ui/atoms/progress.d.ts +7 -4
  114. package/dist/components/ui/atoms/progress.d.ts.map +1 -1
  115. package/dist/components/ui/atoms/progress.js +236 -92
  116. package/dist/components/ui/atoms/radio-group.d.ts +4 -4
  117. package/dist/components/ui/atoms/radio-group.d.ts.map +1 -1
  118. package/dist/components/ui/atoms/radio-group.js +355 -251
  119. package/dist/components/ui/atoms/resizable.d.ts +3 -4
  120. package/dist/components/ui/atoms/resizable.d.ts.map +1 -1
  121. package/dist/components/ui/atoms/resizable.js +25 -27
  122. package/dist/components/ui/atoms/scroll-area.d.ts +5 -5
  123. package/dist/components/ui/atoms/scroll-area.d.ts.map +1 -1
  124. package/dist/components/ui/atoms/scroll-area.js +611 -526
  125. package/dist/components/ui/atoms/scroll-button.d.ts.map +1 -1
  126. package/dist/components/ui/atoms/scroll-button.js +27 -22
  127. package/dist/components/ui/atoms/select.d.ts +11 -11
  128. package/dist/components/ui/atoms/select.d.ts.map +1 -1
  129. package/dist/components/ui/atoms/select.js +1525 -889
  130. package/dist/components/ui/atoms/separator.d.ts +2 -3
  131. package/dist/components/ui/atoms/separator.d.ts.map +1 -1
  132. package/dist/components/ui/atoms/separator.js +16 -35
  133. package/dist/components/ui/atoms/sheet.d.ts +9 -9
  134. package/dist/components/ui/atoms/sheet.d.ts.map +1 -1
  135. package/dist/components/ui/atoms/sheet.js +65 -64
  136. package/dist/components/ui/atoms/sidebar.d.ts +9 -15
  137. package/dist/components/ui/atoms/sidebar.d.ts.map +1 -1
  138. package/dist/components/ui/atoms/sidebar.js +288 -283
  139. package/dist/components/ui/atoms/skeleton.js +4 -4
  140. package/dist/components/ui/atoms/slider.d.ts +2 -3
  141. package/dist/components/ui/atoms/slider.d.ts.map +1 -1
  142. package/dist/components/ui/atoms/slider.js +886 -440
  143. package/dist/components/ui/atoms/switch.d.ts +4 -5
  144. package/dist/components/ui/atoms/switch.d.ts.map +1 -1
  145. package/dist/components/ui/atoms/switch.js +218 -151
  146. package/dist/components/ui/atoms/table.d.ts +2 -4
  147. package/dist/components/ui/atoms/table.d.ts.map +1 -1
  148. package/dist/components/ui/atoms/table.js +35 -36
  149. package/dist/components/ui/atoms/tabs.d.ts +11 -7
  150. package/dist/components/ui/atoms/tabs.d.ts.map +1 -1
  151. package/dist/components/ui/atoms/tabs.js +492 -186
  152. package/dist/components/ui/atoms/textarea.d.ts.map +1 -1
  153. package/dist/components/ui/atoms/textarea.js +7 -7
  154. package/dist/components/ui/atoms/toggle.d.ts +2 -3
  155. package/dist/components/ui/atoms/toggle.d.ts.map +1 -1
  156. package/dist/components/ui/atoms/toggle.js +92 -45
  157. package/dist/components/ui/atoms/tooltip.d.ts +6 -9
  158. package/dist/components/ui/atoms/tooltip.d.ts.map +1 -1
  159. package/dist/components/ui/atoms/tooltip.js +625 -343
  160. package/dist/components/ui/atoms/view-tools-control.js +16 -15
  161. package/dist/components/ui/atoms/virtualized-grid.d.ts +11 -4
  162. package/dist/components/ui/atoms/virtualized-grid.d.ts.map +1 -1
  163. package/dist/components/ui/atoms/virtualized-grid.js +365 -333
  164. package/dist/components/ui/index.js +665 -646
  165. package/dist/components/ui/molecules/chat-history-item.d.ts.map +1 -1
  166. package/dist/components/ui/molecules/chat-history-item.js +47 -40
  167. package/dist/components/ui/molecules/command-bar.js +1 -1
  168. package/dist/components/ui/molecules/confirm-popover.d.ts +2 -2
  169. package/dist/components/ui/molecules/confirm-popover.d.ts.map +1 -1
  170. package/dist/components/ui/molecules/confirm-popover.js +26 -24
  171. package/dist/components/ui/molecules/date-time-picker.d.ts.map +1 -1
  172. package/dist/components/ui/molecules/date-time-picker.js +17 -11
  173. package/dist/components/ui/molecules/index.js +1 -1
  174. package/dist/components/ui/molecules/message.d.ts +2 -3
  175. package/dist/components/ui/molecules/message.d.ts.map +1 -1
  176. package/dist/components/ui/molecules/message.js +10 -16
  177. package/dist/components/ui/molecules/prompt-input.d.ts +1 -1
  178. package/dist/components/ui/molecules/prompt-input.d.ts.map +1 -1
  179. package/dist/components/ui/molecules/prompt-input.js +21 -22
  180. package/dist/components/ui/molecules/requirement-badges.d.ts.map +1 -1
  181. package/dist/components/ui/molecules/requirement-badges.js +3 -3
  182. package/dist/components/ui/molecules/steps-progress.js +1 -0
  183. package/dist/components/ui/molecules/tool-call-accordion.js +1 -0
  184. package/dist/components/ui/molecules/tool-card.d.ts.map +1 -1
  185. package/dist/components/ui/molecules/tool-card.js +60 -47
  186. package/dist/components/ui/molecules/toolkit-card.d.ts.map +1 -1
  187. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  188. package/dist/components/ui/molecules/user-nav.d.ts.map +1 -1
  189. package/dist/components/ui/molecules/user-nav.js +62 -57
  190. package/dist/components/ui/templates/auth-template.js +5 -5
  191. package/dist/composite-BASdnlNo.js +220 -0
  192. package/dist/composite-BSpUD7nI.js +66 -0
  193. package/dist/cpp-CA4iM_wM.js +18 -0
  194. package/dist/createBaseUIEventDetails-CqidROtw.js +55 -0
  195. package/dist/crystal-CRJyc4G-.js +4 -4
  196. package/dist/css-M7EaDHN_.js +6 -0
  197. package/dist/csv-B7yqA61e.js +6 -0
  198. package/dist/dark-plus-B4vfALTw.js +4 -0
  199. package/dist/detectBrowser-Dn2N72k1.js +42 -0
  200. package/dist/dracula-Cb59ZzY3.js +4 -0
  201. package/dist/dracula-soft-aaEmszbU.js +4 -0
  202. package/dist/edge-BYQkOzbF.js +1 -1
  203. package/dist/element-DSo91iOi.js +88 -0
  204. package/dist/elm-BtNbw_Cd.js +1 -1
  205. package/dist/erlang-DNcDT8Hi.js +1 -1
  206. package/dist/event-BCa0Un_3.js +30 -0
  207. package/dist/everforest-dark-CLp_21RJ.js +4 -0
  208. package/dist/everforest-light-CZ0NCAAv.js +4 -0
  209. package/dist/floating-ui.utils-48URp89E.js +126 -0
  210. package/dist/floating-ui.utils.dom-jr2suqy2.js +135 -0
  211. package/dist/fsharp-CYOiIVNx.js +1 -1
  212. package/dist/getDisabledMountTransitionStyles-fmnaQYVj.js +1539 -0
  213. package/dist/getPseudoElementBounds-B4_miSEJ.js +364 -0
  214. package/dist/git-rebase-ZWUFO_T4.js +1 -1
  215. package/dist/github-dark-BD3lImVS.js +4 -0
  216. package/dist/github-dark-default-ID_nBUwl.js +4 -0
  217. package/dist/github-dark-dimmed-Cw4rFgde.js +4 -0
  218. package/dist/github-dark-high-contrast-DSby9de8.js +4 -0
  219. package/dist/github-light-W396yAFe.js +4 -0
  220. package/dist/github-light-default-DCAQ2px1.js +4 -0
  221. package/dist/github-light-high-contrast-ChWJGEvx.js +4 -0
  222. package/dist/glimmer-js-DkxNrfPT.js +2 -2
  223. package/dist/glimmer-ts-D6YZEmK_.js +2 -2
  224. package/dist/glsl-CgdqkyFp.js +8 -0
  225. package/dist/graphql-Bv26LTzG.js +14 -0
  226. package/dist/gruvbox-dark-hard-BC1GRqFa.js +4 -0
  227. package/dist/gruvbox-dark-medium-COLy2cDY.js +4 -0
  228. package/dist/gruvbox-dark-soft-B8MALL4f.js +4 -0
  229. package/dist/gruvbox-light-hard-Bzxr_AnB.js +4 -0
  230. package/dist/gruvbox-light-medium-D2fqu3Kj.js +4 -0
  231. package/dist/gruvbox-light-soft-atzRH3-n.js +4 -0
  232. package/dist/hack-ItRNKiEb.js +1 -1
  233. package/dist/haml-B1t5q1Sv.js +10 -0
  234. package/dist/haml-NZLVzu_R.js +1 -1
  235. package/dist/handlebars-B2fb61mr.js +14 -0
  236. package/dist/handlebars-mxStpSE7.js +2 -2
  237. package/dist/highlighted-body-OFNGDK62-Df6AJMbs.js +20 -0
  238. package/dist/hooks/use-mobile.d.ts.map +1 -1
  239. package/dist/hooks/use-mobile.js +11 -12
  240. package/dist/horizon-PFtq58ZB.js +4 -0
  241. package/dist/horizon-bright-2WzHy-Vo.js +4 -0
  242. package/dist/houston-BEqUWhHr.js +4 -0
  243. package/dist/html-B50bmoVb.js +1 -1
  244. package/dist/html-CPZ3oZQ7.js +10 -0
  245. package/dist/html-derivative-B2qv7eyt.js +8 -0
  246. package/dist/http-BQ2t9cn1.js +14 -0
  247. package/dist/hurl-RyCMCa80.js +12 -0
  248. package/dist/imba-DpB-wtPB.js +6 -0
  249. package/dist/index-3rscXtm3.js +4708 -0
  250. package/dist/inertValue-kpZZDBEy.js +7 -0
  251. package/dist/integrations/rhf/index.js +6 -5
  252. package/dist/isElementDisabled-Cbd8W9kH.js +6 -0
  253. package/dist/java-CbphP4lz.js +6 -0
  254. package/dist/javascript-CgYd5l7W.js +6 -0
  255. package/dist/jinja-DFCUirAg.js +11 -0
  256. package/dist/jison-CTEI_s6O.js +8 -0
  257. package/dist/json-B5-prx4F.js +6 -0
  258. package/dist/json5-CZ8R1oUY.js +6 -0
  259. package/dist/jsonc-DMboCKBJ.js +6 -0
  260. package/dist/jsonl-YgIUi4Dg.js +6 -0
  261. package/dist/jsx-D4q4E1UD.js +6 -0
  262. package/dist/julia-2ubi2n9a.js +16 -0
  263. package/dist/just-CEK2SJ_k.js +4 -4
  264. package/dist/kanagawa-dragon-DuYaOBBk.js +4 -0
  265. package/dist/kanagawa-lotus-CyjAihYC.js +4 -0
  266. package/dist/kanagawa-wave-BVdXUMj5.js +4 -0
  267. package/dist/laserwave-B_2VVKNJ.js +4 -0
  268. package/dist/less-MoGo8xoS.js +6 -0
  269. package/dist/light-plus-IB4fPeJj.js +4 -0
  270. package/dist/liquid-CHzkx3jT.js +2 -2
  271. package/dist/lua-Bp3IRv7I.js +1 -1
  272. package/dist/main.js +691 -672
  273. package/dist/markdown-B-zRtm0x.js +6 -0
  274. package/dist/{markdown-D0xxRbwP.js → markdown-B71Eurda.js} +10329 -8108
  275. package/dist/marko-BlmC3dqW.js +14 -0
  276. package/dist/marko-CJBA24Ri.js +2 -2
  277. package/dist/material-theme-CjsSdYF2.js +4 -0
  278. package/dist/material-theme-darker-DEk0vgdS.js +4 -0
  279. package/dist/material-theme-lighter-DEVB_7K5.js +4 -0
  280. package/dist/material-theme-ocean-DK6jm24j.js +4 -0
  281. package/dist/material-theme-palenight-CNkXNpHv.js +4 -0
  282. package/dist/mdc-C9YSUwVC.js +2 -2
  283. package/dist/mdc-CLNk3q28.js +12 -0
  284. package/dist/mdx-CiUWpBB_.js +6 -0
  285. package/dist/mermaid-GHXKKRXX-BkplG-MI.js +5 -0
  286. package/dist/min-dark-CJcHUHwu.js +4 -0
  287. package/dist/min-light-BAN2UR75.js +4 -0
  288. package/dist/monokai-BbXwpjKl.js +4 -0
  289. package/dist/night-owl-csViJ7u4.js +4 -0
  290. package/dist/night-owl-light-BC-NuMC3.js +4 -0
  291. package/dist/nim-QAjRdh9w.js +5 -5
  292. package/dist/nord-B8Sq-VQ0.js +4 -0
  293. package/dist/one-dark-pro-DTdrcl-J.js +4 -0
  294. package/dist/one-light-kPHTChCU.js +4 -0
  295. package/dist/owner-rKN292Q9.js +6 -0
  296. package/dist/perl-DkVrgJBg.js +3 -3
  297. package/dist/php-BIzsF_5x.js +4 -4
  298. package/dist/php-Kn-vgdBD.js +18 -0
  299. package/dist/plastic-DDweBgVs.js +4 -0
  300. package/dist/poimandres-Dqvs16BQ.js +4 -0
  301. package/dist/popupStateMapping-BT9Y_jIq.js +1849 -0
  302. package/dist/postcss-CwL8bLZI.js +6 -0
  303. package/dist/pug-CTOOvSEH.js +12 -0
  304. package/dist/pug-XOw9Q1Ho.js +1 -1
  305. package/dist/python-jjYlTiSH.js +6 -0
  306. package/dist/qml-rTNXsquU.js +1 -1
  307. package/dist/r-C8zl4zMO.js +6 -0
  308. package/dist/react-resizable-panels-BqIpIFl2.js +2017 -0
  309. package/dist/red-DBDwQkX-.js +4 -0
  310. package/dist/regexp-Dpy_RgoJ.js +6 -0
  311. package/dist/resolveAriaLabelledBy-B5vw-szP.js +11 -0
  312. package/dist/rose-pine-DGHrTu7e.js +4 -0
  313. package/dist/rose-pine-dawn-DfRVdapG.js +4 -0
  314. package/dist/rose-pine-moon-DFpJm5Rd.js +4 -0
  315. package/dist/rst-DM32Wy3O.js +5 -5
  316. package/dist/ruby-BeqCs27h.js +8 -8
  317. package/dist/safePolygon-CJcmMc0u.js +389 -0
  318. package/dist/safeReact-DKq-628G.js +7 -0
  319. package/dist/sas-fpEvgATw.js +1 -1
  320. package/dist/sass-BmupNt-w.js +6 -0
  321. package/dist/scss-BZYVIVaN.js +8 -0
  322. package/dist/serializeValue-BebmSzW3.js +14 -0
  323. package/dist/shellscript-fMxXshxv.js +6 -0
  324. package/dist/shellsession-DiDJNQdy.js +1 -1
  325. package/dist/slack-dark-noeC6QPl.js +4 -0
  326. package/dist/slack-ochin-3_2idqLR.js +4 -0
  327. package/dist/snazzy-light-B9cV359v.js +4 -0
  328. package/dist/solarized-dark-B6X0ILWr.js +4 -0
  329. package/dist/solarized-light-LxOemn3c.js +4 -0
  330. package/dist/sql-D30Zid36.js +6 -0
  331. package/dist/stata-B8c5fTjX.js +1 -1
  332. package/dist/styles-DU5BO7fS.js +16 -0
  333. package/dist/stylus-BoBcEBjx.js +6 -0
  334. package/dist/surrealql-CQi7GQN7.js +1 -1
  335. package/dist/svelte-b9PAcyUe.js +14 -0
  336. package/dist/svelte-rYri41WT.js +3 -3
  337. package/dist/synthwave-84-DzQeMpV0.js +4 -0
  338. package/dist/templ-Crs9Ui8q.js +1 -1
  339. package/dist/tex-AHxmLTL0.js +1 -1
  340. package/dist/tokyo-night-CLM-V_Re.js +4 -0
  341. package/dist/{toolkit-card-CB1oiaei.js → toolkit-card-DhpOY80l.js} +56 -36
  342. package/dist/ts-tags-CP1b-4Z2.js +41 -0
  343. package/dist/ts-tags-ioVe2PKw.js +5 -5
  344. package/dist/tsx-QNpb2qLW.js +6 -0
  345. package/dist/twig-DwV2Fi4L.js +2 -2
  346. package/dist/typescript-AhniRyfZ.js +6 -0
  347. package/dist/useAnimationFrame-DIc6eFHa.js +69 -0
  348. package/dist/useAriaLabelledBy-VklrCmKp.js +34 -0
  349. package/dist/useBaseUiId-C8Dq0BQq.js +25 -0
  350. package/dist/useButton-JYPKQKj4.js +150 -0
  351. package/dist/useCollapsiblePanel-9pDlDh3R.js +257 -0
  352. package/dist/useCompositeItem-D00ALGkT.js +35 -0
  353. package/dist/useCompositeListItem-CYQrZg5-.js +74 -0
  354. package/dist/useControlled-Sx-_x7Sz.js +32 -0
  355. package/dist/useFocus-Aj9ShMQu.js +97 -0
  356. package/dist/useIsoLayoutEffect-DpJo20by.js +7 -0
  357. package/dist/useLabelableId-DF_d91GP.js +44 -0
  358. package/dist/useOnFirstRender-B4aruaIA.js +9 -0
  359. package/dist/useOnMount-JHtE6teb.js +9 -0
  360. package/dist/useOpenChangeComplete-DkeH9FGJ.js +130 -0
  361. package/dist/useRender-BNXBkp2o.js +7 -0
  362. package/dist/useRenderElement-DNB2vtF1.js +274 -0
  363. package/dist/useRole-N-RCRzo1.js +76 -0
  364. package/dist/useStableCallback-CudqoENs.js +33 -0
  365. package/dist/useSyncedFloatingRootContext-Bc90zSTy.js +185 -0
  366. package/dist/useTimeout-DAqPwigF.js +33 -0
  367. package/dist/useValueAsRef-LhoZc6As.js +20 -0
  368. package/dist/useValueChanged-Bissqjjn.js +15 -0
  369. package/dist/valueToPercent-BBgE4D3L.js +27 -0
  370. package/dist/vesper-BmV7KiQ0.js +4 -0
  371. package/dist/visuallyHidden-PuyyGHVF.js +22 -0
  372. package/dist/vitesse-black-CxZz3C4s.js +4 -0
  373. package/dist/vitesse-dark-DVUJ0sy2.js +4 -0
  374. package/dist/vitesse-light-BDJohtUr.js +4 -0
  375. package/dist/vue-CY6W2ID0.js +31 -0
  376. package/dist/vue-DXEmyXn9.js +3 -3
  377. package/dist/vue-html-DYXHAJ2G.js +8 -0
  378. package/dist/vue-vine-D41-N99t.js +4 -4
  379. package/dist/vue-vine-DiWTpMwZ.js +18 -0
  380. package/dist/wasm-3y0A1Y71.js +6 -0
  381. package/dist/wasm-Dm9SFfrx.js +7 -0
  382. package/dist/web-BbvN_Lei.js +2846 -0
  383. package/dist/wgsl-SXl3EZUN.js +6 -0
  384. package/dist/wit-Cw0CTVY0.js +6 -0
  385. package/dist/xml-CNXGTZ6Z.js +8 -0
  386. package/dist/xsl-BmSZphgC.js +1 -1
  387. package/dist/yaml-DZqZ2PBD.js +6 -0
  388. package/package.json +37 -34
  389. package/dist/highlighted-body-TPN3WLV5-D6UnKGod.js +0 -19
  390. package/dist/index-0ioNhtNM.js +0 -10
  391. package/dist/index-437EL2iq.js +0 -52
  392. package/dist/index-B695uy69.js +0 -9
  393. package/dist/index-BEZCAdXQ.js +0 -1568
  394. package/dist/index-BGQepRFJ.js +0 -27
  395. package/dist/index-BZPx6jYI.js +0 -8
  396. package/dist/index-BaLuVb4t.js +0 -70
  397. package/dist/index-Bw62B28F.js +0 -31
  398. package/dist/index-By-GFSsC.js +0 -245
  399. package/dist/index-ByaXH_ih.js +0 -10
  400. package/dist/index-CCKe-Mpx.js +0 -6
  401. package/dist/index-Cv867SGx.js +0 -13
  402. package/dist/index-CvA4FcaC.js +0 -677
  403. package/dist/index-D2LZVjSn.js +0 -82
  404. package/dist/index-DFZozV_h.js +0 -68
  405. package/dist/index-DJQkmo5O.js +0 -49
  406. package/dist/index-DLohNuco.js +0 -36
  407. package/dist/index-DrFfdHac.js +0 -144
  408. package/dist/index-DrlYGDRT.js +0 -119
  409. package/dist/index-Dz8CQngS.js +0 -181
  410. package/dist/index-cd1ceFJg.js +0 -6973
  411. package/dist/index-rKs9bXHr.js +0 -6
  412. package/dist/mermaid-O7DHMXV3-gUrB-Xs1.js +0 -4
  413. package/dist/react-resizable-panels.browser-DYl0LXfw.js +0 -1510
  414. package/dist/web-BwFNdl01.js +0 -697
@@ -1,677 +0,0 @@
1
- import * as u from "react";
2
- import { useState as ge } from "react";
3
- import { u as ye } from "./index-D2LZVjSn.js";
4
- import { P as be } from "./index-DLohNuco.js";
5
- import { u as q } from "./index-0ioNhtNM.js";
6
- import { jsx as Ee } from "react/jsx-runtime";
7
- var _ = "focusScope.autoFocusOnMount", j = "focusScope.autoFocusOnUnmount", Q = { bubbles: !1, cancelable: !0 }, Se = "FocusScope", we = u.forwardRef((e, t) => {
8
- const {
9
- loop: n = !1,
10
- trapped: r = !1,
11
- onMountAutoFocus: c,
12
- onUnmountAutoFocus: i,
13
- ...s
14
- } = e, [a, S] = u.useState(null), b = q(c), g = q(i), f = u.useRef(null), v = ye(t, (o) => S(o)), h = u.useRef({
15
- paused: !1,
16
- pause() {
17
- this.paused = !0;
18
- },
19
- resume() {
20
- this.paused = !1;
21
- }
22
- }).current;
23
- u.useEffect(() => {
24
- if (r) {
25
- let o = function(p) {
26
- if (h.paused || !a) return;
27
- const y = p.target;
28
- a.contains(y) ? f.current = y : A(f.current, { select: !0 });
29
- }, l = function(p) {
30
- if (h.paused || !a) return;
31
- const y = p.relatedTarget;
32
- y !== null && (a.contains(y) || A(f.current, { select: !0 }));
33
- }, d = function(p) {
34
- if (document.activeElement === document.body)
35
- for (const E of p)
36
- E.removedNodes.length > 0 && A(a);
37
- };
38
- document.addEventListener("focusin", o), document.addEventListener("focusout", l);
39
- const m = new MutationObserver(d);
40
- return a && m.observe(a, { childList: !0, subtree: !0 }), () => {
41
- document.removeEventListener("focusin", o), document.removeEventListener("focusout", l), m.disconnect();
42
- };
43
- }
44
- }, [r, a, h.paused]), u.useEffect(() => {
45
- if (a) {
46
- J.add(h);
47
- const o = document.activeElement;
48
- if (!a.contains(o)) {
49
- const d = new CustomEvent(_, Q);
50
- a.addEventListener(_, b), a.dispatchEvent(d), d.defaultPrevented || (Ce(Ne(ue(a)), { select: !0 }), document.activeElement === o && A(a));
51
- }
52
- return () => {
53
- a.removeEventListener(_, b), setTimeout(() => {
54
- const d = new CustomEvent(j, Q);
55
- a.addEventListener(j, g), a.dispatchEvent(d), d.defaultPrevented || A(o ?? document.body, { select: !0 }), a.removeEventListener(j, g), J.remove(h);
56
- }, 0);
57
- };
58
- }
59
- }, [a, b, g, h]);
60
- const w = u.useCallback(
61
- (o) => {
62
- if (!n && !r || h.paused) return;
63
- const l = o.key === "Tab" && !o.altKey && !o.ctrlKey && !o.metaKey, d = document.activeElement;
64
- if (l && d) {
65
- const m = o.currentTarget, [p, y] = Re(m);
66
- p && y ? !o.shiftKey && d === y ? (o.preventDefault(), n && A(p, { select: !0 })) : o.shiftKey && d === p && (o.preventDefault(), n && A(y, { select: !0 })) : d === m && o.preventDefault();
67
- }
68
- },
69
- [n, r, h.paused]
70
- );
71
- return /* @__PURE__ */ Ee(be.div, { tabIndex: -1, ...s, ref: v, onKeyDown: w });
72
- });
73
- we.displayName = Se;
74
- function Ce(e, { select: t = !1 } = {}) {
75
- const n = document.activeElement;
76
- for (const r of e)
77
- if (A(r, { select: t }), document.activeElement !== n) return;
78
- }
79
- function Re(e) {
80
- const t = ue(e), n = $(t, e), r = $(t.reverse(), e);
81
- return [n, r];
82
- }
83
- function ue(e) {
84
- const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
85
- acceptNode: (r) => {
86
- const c = r.tagName === "INPUT" && r.type === "hidden";
87
- return r.disabled || r.hidden || c ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
88
- }
89
- });
90
- for (; n.nextNode(); ) t.push(n.currentNode);
91
- return t;
92
- }
93
- function $(e, t) {
94
- for (const n of e)
95
- if (!ke(n, { upTo: t })) return n;
96
- }
97
- function ke(e, { upTo: t }) {
98
- if (getComputedStyle(e).visibility === "hidden") return !0;
99
- for (; e; ) {
100
- if (t !== void 0 && e === t) return !1;
101
- if (getComputedStyle(e).display === "none") return !0;
102
- e = e.parentElement;
103
- }
104
- return !1;
105
- }
106
- function Ae(e) {
107
- return e instanceof HTMLInputElement && "select" in e;
108
- }
109
- function A(e, { select: t = !1 } = {}) {
110
- if (e && e.focus) {
111
- const n = document.activeElement;
112
- e.focus({ preventScroll: !0 }), e !== n && Ae(e) && t && e.select();
113
- }
114
- }
115
- var J = Te();
116
- function Te() {
117
- let e = [];
118
- return {
119
- add(t) {
120
- const n = e[0];
121
- t !== n && n?.pause(), e = ee(e, t), e.unshift(t);
122
- },
123
- remove(t) {
124
- e = ee(e, t), e[0]?.resume();
125
- }
126
- };
127
- }
128
- function ee(e, t) {
129
- const n = [...e], r = n.indexOf(t);
130
- return r !== -1 && n.splice(r, 1), n;
131
- }
132
- function Ne(e) {
133
- return e.filter((t) => t.tagName !== "A");
134
- }
135
- var K = 0;
136
- function Et() {
137
- u.useEffect(() => {
138
- const e = document.querySelectorAll("[data-radix-focus-guard]");
139
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? te()), document.body.insertAdjacentElement("beforeend", e[1] ?? te()), K++, () => {
140
- K === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), K--;
141
- };
142
- }, []);
143
- }
144
- function te() {
145
- const e = document.createElement("span");
146
- 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;
147
- }
148
- var C = function() {
149
- return C = Object.assign || function(t) {
150
- for (var n, r = 1, c = arguments.length; r < c; r++) {
151
- n = arguments[r];
152
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
153
- }
154
- return t;
155
- }, C.apply(this, arguments);
156
- };
157
- function ie(e, t) {
158
- var n = {};
159
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
160
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
161
- for (var c = 0, r = Object.getOwnPropertySymbols(e); c < r.length; c++)
162
- t.indexOf(r[c]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[c]) && (n[r[c]] = e[r[c]]);
163
- return n;
164
- }
165
- function Me(e, t, n) {
166
- if (n || arguments.length === 2) for (var r = 0, c = t.length, i; r < c; r++)
167
- (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
168
- return e.concat(i || Array.prototype.slice.call(t));
169
- }
170
- var W = "right-scroll-bar-position", B = "width-before-scroll-bar", Fe = "with-scroll-bars-hidden", Pe = "--removed-body-scroll-bar-size";
171
- function H(e, t) {
172
- return typeof e == "function" ? e(t) : e && (e.current = t), e;
173
- }
174
- function Oe(e, t) {
175
- var n = ge(function() {
176
- return {
177
- // value
178
- value: e,
179
- // last callback
180
- callback: t,
181
- // "memoized" public interface
182
- facade: {
183
- get current() {
184
- return n.value;
185
- },
186
- set current(r) {
187
- var c = n.value;
188
- c !== r && (n.value = r, n.callback(r, c));
189
- }
190
- }
191
- };
192
- })[0];
193
- return n.callback = t, n.facade;
194
- }
195
- var Le = typeof window < "u" ? u.useLayoutEffect : u.useEffect, ne = /* @__PURE__ */ new WeakMap();
196
- function Ie(e, t) {
197
- var n = Oe(null, function(r) {
198
- return e.forEach(function(c) {
199
- return H(c, r);
200
- });
201
- });
202
- return Le(function() {
203
- var r = ne.get(n);
204
- if (r) {
205
- var c = new Set(r), i = new Set(e), s = n.current;
206
- c.forEach(function(a) {
207
- i.has(a) || H(a, null);
208
- }), i.forEach(function(a) {
209
- c.has(a) || H(a, s);
210
- });
211
- }
212
- ne.set(n, e);
213
- }, [e]), n;
214
- }
215
- function xe(e) {
216
- return e;
217
- }
218
- function We(e, t) {
219
- t === void 0 && (t = xe);
220
- var n = [], r = !1, c = {
221
- read: function() {
222
- if (r)
223
- throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
224
- return n.length ? n[n.length - 1] : e;
225
- },
226
- useMedium: function(i) {
227
- var s = t(i, r);
228
- return n.push(s), function() {
229
- n = n.filter(function(a) {
230
- return a !== s;
231
- });
232
- };
233
- },
234
- assignSyncMedium: function(i) {
235
- for (r = !0; n.length; ) {
236
- var s = n;
237
- n = [], s.forEach(i);
238
- }
239
- n = {
240
- push: function(a) {
241
- return i(a);
242
- },
243
- filter: function() {
244
- return n;
245
- }
246
- };
247
- },
248
- assignMedium: function(i) {
249
- r = !0;
250
- var s = [];
251
- if (n.length) {
252
- var a = n;
253
- n = [], a.forEach(i), s = n;
254
- }
255
- var S = function() {
256
- var g = s;
257
- s = [], g.forEach(i);
258
- }, b = function() {
259
- return Promise.resolve().then(S);
260
- };
261
- b(), n = {
262
- push: function(g) {
263
- s.push(g), b();
264
- },
265
- filter: function(g) {
266
- return s = s.filter(g), n;
267
- }
268
- };
269
- }
270
- };
271
- return c;
272
- }
273
- function Be(e) {
274
- e === void 0 && (e = {});
275
- var t = We(null);
276
- return t.options = C({ async: !0, ssr: !1 }, e), t;
277
- }
278
- var le = function(e) {
279
- var t = e.sideCar, n = ie(e, ["sideCar"]);
280
- if (!t)
281
- throw new Error("Sidecar: please provide `sideCar` property to import the right car");
282
- var r = t.read();
283
- if (!r)
284
- throw new Error("Sidecar medium not found");
285
- return u.createElement(r, C({}, n));
286
- };
287
- le.isSideCarExport = !0;
288
- function De(e, t) {
289
- return e.useMedium(t), le;
290
- }
291
- var se = Be(), V = function() {
292
- }, D = u.forwardRef(function(e, t) {
293
- var n = u.useRef(null), r = u.useState({
294
- onScrollCapture: V,
295
- onWheelCapture: V,
296
- onTouchMoveCapture: V
297
- }), c = r[0], i = r[1], s = e.forwardProps, a = e.children, S = e.className, b = e.removeScrollBar, g = e.enabled, f = e.shards, v = e.sideCar, h = e.noRelative, w = e.noIsolation, o = e.inert, l = e.allowPinchZoom, d = e.as, m = d === void 0 ? "div" : d, p = e.gapMode, y = ie(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = v, R = Ie([n, t]), k = C(C({}, y), c);
298
- return u.createElement(
299
- u.Fragment,
300
- null,
301
- g && u.createElement(E, { sideCar: se, removeScrollBar: b, shards: f, noRelative: h, noIsolation: w, inert: o, setCallbacks: i, allowPinchZoom: !!l, lockRef: n, gapMode: p }),
302
- s ? u.cloneElement(u.Children.only(a), C(C({}, k), { ref: R })) : u.createElement(m, C({}, k, { className: S, ref: R }), a)
303
- );
304
- });
305
- D.defaultProps = {
306
- enabled: !0,
307
- removeScrollBar: !0,
308
- inert: !1
309
- };
310
- D.classNames = {
311
- fullWidth: B,
312
- zeroRight: W
313
- };
314
- var Ue = function() {
315
- if (typeof __webpack_nonce__ < "u")
316
- return __webpack_nonce__;
317
- };
318
- function _e() {
319
- if (!document)
320
- return null;
321
- var e = document.createElement("style");
322
- e.type = "text/css";
323
- var t = Ue();
324
- return t && e.setAttribute("nonce", t), e;
325
- }
326
- function je(e, t) {
327
- e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
328
- }
329
- function Ke(e) {
330
- var t = document.head || document.getElementsByTagName("head")[0];
331
- t.appendChild(e);
332
- }
333
- var He = function() {
334
- var e = 0, t = null;
335
- return {
336
- add: function(n) {
337
- e == 0 && (t = _e()) && (je(t, n), Ke(t)), e++;
338
- },
339
- remove: function() {
340
- e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
341
- }
342
- };
343
- }, Ve = function() {
344
- var e = He();
345
- return function(t, n) {
346
- u.useEffect(function() {
347
- return e.add(t), function() {
348
- e.remove();
349
- };
350
- }, [t && n]);
351
- };
352
- }, fe = function() {
353
- var e = Ve(), t = function(n) {
354
- var r = n.styles, c = n.dynamic;
355
- return e(r, c), null;
356
- };
357
- return t;
358
- }, Xe = {
359
- left: 0,
360
- top: 0,
361
- right: 0,
362
- gap: 0
363
- }, X = function(e) {
364
- return parseInt(e || "", 10) || 0;
365
- }, Ye = function(e) {
366
- var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], c = t[e === "padding" ? "paddingRight" : "marginRight"];
367
- return [X(n), X(r), X(c)];
368
- }, Ge = function(e) {
369
- if (e === void 0 && (e = "margin"), typeof window > "u")
370
- return Xe;
371
- var t = Ye(e), n = document.documentElement.clientWidth, r = window.innerWidth;
372
- return {
373
- left: t[0],
374
- top: t[1],
375
- right: t[2],
376
- gap: Math.max(0, r - n + t[2] - t[0])
377
- };
378
- }, ze = fe(), F = "data-scroll-locked", Ze = function(e, t, n, r) {
379
- var c = e.left, i = e.top, s = e.right, a = e.gap;
380
- return n === void 0 && (n = "margin"), `
381
- .`.concat(Fe, ` {
382
- overflow: hidden `).concat(r, `;
383
- padding-right: `).concat(a, "px ").concat(r, `;
384
- }
385
- body[`).concat(F, `] {
386
- overflow: hidden `).concat(r, `;
387
- overscroll-behavior: contain;
388
- `).concat([
389
- t && "position: relative ".concat(r, ";"),
390
- n === "margin" && `
391
- padding-left: `.concat(c, `px;
392
- padding-top: `).concat(i, `px;
393
- padding-right: `).concat(s, `px;
394
- margin-left:0;
395
- margin-top:0;
396
- margin-right: `).concat(a, "px ").concat(r, `;
397
- `),
398
- n === "padding" && "padding-right: ".concat(a, "px ").concat(r, ";")
399
- ].filter(Boolean).join(""), `
400
- }
401
-
402
- .`).concat(W, ` {
403
- right: `).concat(a, "px ").concat(r, `;
404
- }
405
-
406
- .`).concat(B, ` {
407
- margin-right: `).concat(a, "px ").concat(r, `;
408
- }
409
-
410
- .`).concat(W, " .").concat(W, ` {
411
- right: 0 `).concat(r, `;
412
- }
413
-
414
- .`).concat(B, " .").concat(B, ` {
415
- margin-right: 0 `).concat(r, `;
416
- }
417
-
418
- body[`).concat(F, `] {
419
- `).concat(Pe, ": ").concat(a, `px;
420
- }
421
- `);
422
- }, re = function() {
423
- var e = parseInt(document.body.getAttribute(F) || "0", 10);
424
- return isFinite(e) ? e : 0;
425
- }, qe = function() {
426
- u.useEffect(function() {
427
- return document.body.setAttribute(F, (re() + 1).toString()), function() {
428
- var e = re() - 1;
429
- e <= 0 ? document.body.removeAttribute(F) : document.body.setAttribute(F, e.toString());
430
- };
431
- }, []);
432
- }, Qe = function(e) {
433
- var t = e.noRelative, n = e.noImportant, r = e.gapMode, c = r === void 0 ? "margin" : r;
434
- qe();
435
- var i = u.useMemo(function() {
436
- return Ge(c);
437
- }, [c]);
438
- return u.createElement(ze, { styles: Ze(i, !t, c, n ? "" : "!important") });
439
- }, G = !1;
440
- if (typeof window < "u")
441
- try {
442
- var O = Object.defineProperty({}, "passive", {
443
- get: function() {
444
- return G = !0, !0;
445
- }
446
- });
447
- window.addEventListener("test", O, O), window.removeEventListener("test", O, O);
448
- } catch {
449
- G = !1;
450
- }
451
- var T = G ? { passive: !1 } : !1, $e = function(e) {
452
- return e.tagName === "TEXTAREA";
453
- }, de = function(e, t) {
454
- if (!(e instanceof Element))
455
- return !1;
456
- var n = window.getComputedStyle(e);
457
- return (
458
- // not-not-scrollable
459
- n[t] !== "hidden" && // contains scroll inside self
460
- !(n.overflowY === n.overflowX && !$e(e) && n[t] === "visible")
461
- );
462
- }, Je = function(e) {
463
- return de(e, "overflowY");
464
- }, et = function(e) {
465
- return de(e, "overflowX");
466
- }, ae = function(e, t) {
467
- var n = t.ownerDocument, r = t;
468
- do {
469
- typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
470
- var c = ve(e, r);
471
- if (c) {
472
- var i = he(e, r), s = i[1], a = i[2];
473
- if (s > a)
474
- return !0;
475
- }
476
- r = r.parentNode;
477
- } while (r && r !== n.body);
478
- return !1;
479
- }, tt = function(e) {
480
- var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
481
- return [
482
- t,
483
- n,
484
- r
485
- ];
486
- }, nt = function(e) {
487
- var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
488
- return [
489
- t,
490
- n,
491
- r
492
- ];
493
- }, ve = function(e, t) {
494
- return e === "v" ? Je(t) : et(t);
495
- }, he = function(e, t) {
496
- return e === "v" ? tt(t) : nt(t);
497
- }, rt = function(e, t) {
498
- return e === "h" && t === "rtl" ? -1 : 1;
499
- }, at = function(e, t, n, r, c) {
500
- var i = rt(e, window.getComputedStyle(t).direction), s = i * r, a = n.target, S = t.contains(a), b = !1, g = s > 0, f = 0, v = 0;
501
- do {
502
- if (!a)
503
- break;
504
- var h = he(e, a), w = h[0], o = h[1], l = h[2], d = o - l - i * w;
505
- (w || d) && ve(e, a) && (f += d, v += w);
506
- var m = a.parentNode;
507
- a = m && m.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? m.host : m;
508
- } while (
509
- // portaled content
510
- !S && a !== document.body || // self content
511
- S && (t.contains(a) || t === a)
512
- );
513
- return (g && Math.abs(f) < 1 || !g && Math.abs(v) < 1) && (b = !0), b;
514
- }, L = function(e) {
515
- return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
516
- }, oe = function(e) {
517
- return [e.deltaX, e.deltaY];
518
- }, ce = function(e) {
519
- return e && "current" in e ? e.current : e;
520
- }, ot = function(e, t) {
521
- return e[0] === t[0] && e[1] === t[1];
522
- }, ct = function(e) {
523
- return `
524
- .block-interactivity-`.concat(e, ` {pointer-events: none;}
525
- .allow-interactivity-`).concat(e, ` {pointer-events: all;}
526
- `);
527
- }, ut = 0, N = [];
528
- function it(e) {
529
- var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), c = u.useState(ut++)[0], i = u.useState(fe)[0], s = u.useRef(e);
530
- u.useEffect(function() {
531
- s.current = e;
532
- }, [e]), u.useEffect(function() {
533
- if (e.inert) {
534
- document.body.classList.add("block-interactivity-".concat(c));
535
- var o = Me([e.lockRef.current], (e.shards || []).map(ce), !0).filter(Boolean);
536
- return o.forEach(function(l) {
537
- return l.classList.add("allow-interactivity-".concat(c));
538
- }), function() {
539
- document.body.classList.remove("block-interactivity-".concat(c)), o.forEach(function(l) {
540
- return l.classList.remove("allow-interactivity-".concat(c));
541
- });
542
- };
543
- }
544
- }, [e.inert, e.lockRef.current, e.shards]);
545
- var a = u.useCallback(function(o, l) {
546
- if ("touches" in o && o.touches.length === 2 || o.type === "wheel" && o.ctrlKey)
547
- return !s.current.allowPinchZoom;
548
- var d = L(o), m = n.current, p = "deltaX" in o ? o.deltaX : m[0] - d[0], y = "deltaY" in o ? o.deltaY : m[1] - d[1], E, R = o.target, k = Math.abs(p) > Math.abs(y) ? "h" : "v";
549
- if ("touches" in o && k === "h" && R.type === "range")
550
- return !1;
551
- var z = window.getSelection(), U = z && z.anchorNode, pe = U ? U === R || U.contains(R) : !1;
552
- if (pe)
553
- return !1;
554
- var P = ae(k, R);
555
- if (!P)
556
- return !0;
557
- if (P ? E = k : (E = k === "v" ? "h" : "v", P = ae(k, R)), !P)
558
- return !1;
559
- if (!r.current && "changedTouches" in o && (p || y) && (r.current = E), !E)
560
- return !0;
561
- var Z = r.current || E;
562
- return at(Z, l, o, Z === "h" ? p : y);
563
- }, []), S = u.useCallback(function(o) {
564
- var l = o;
565
- if (!(!N.length || N[N.length - 1] !== i)) {
566
- var d = "deltaY" in l ? oe(l) : L(l), m = t.current.filter(function(E) {
567
- return E.name === l.type && (E.target === l.target || l.target === E.shadowParent) && ot(E.delta, d);
568
- })[0];
569
- if (m && m.should) {
570
- l.cancelable && l.preventDefault();
571
- return;
572
- }
573
- if (!m) {
574
- var p = (s.current.shards || []).map(ce).filter(Boolean).filter(function(E) {
575
- return E.contains(l.target);
576
- }), y = p.length > 0 ? a(l, p[0]) : !s.current.noIsolation;
577
- y && l.cancelable && l.preventDefault();
578
- }
579
- }
580
- }, []), b = u.useCallback(function(o, l, d, m) {
581
- var p = { name: o, delta: l, target: d, should: m, shadowParent: lt(d) };
582
- t.current.push(p), setTimeout(function() {
583
- t.current = t.current.filter(function(y) {
584
- return y !== p;
585
- });
586
- }, 1);
587
- }, []), g = u.useCallback(function(o) {
588
- n.current = L(o), r.current = void 0;
589
- }, []), f = u.useCallback(function(o) {
590
- b(o.type, oe(o), o.target, a(o, e.lockRef.current));
591
- }, []), v = u.useCallback(function(o) {
592
- b(o.type, L(o), o.target, a(o, e.lockRef.current));
593
- }, []);
594
- u.useEffect(function() {
595
- return N.push(i), e.setCallbacks({
596
- onScrollCapture: f,
597
- onWheelCapture: f,
598
- onTouchMoveCapture: v
599
- }), document.addEventListener("wheel", S, T), document.addEventListener("touchmove", S, T), document.addEventListener("touchstart", g, T), function() {
600
- N = N.filter(function(o) {
601
- return o !== i;
602
- }), document.removeEventListener("wheel", S, T), document.removeEventListener("touchmove", S, T), document.removeEventListener("touchstart", g, T);
603
- };
604
- }, []);
605
- var h = e.removeScrollBar, w = e.inert;
606
- return u.createElement(
607
- u.Fragment,
608
- null,
609
- w ? u.createElement(i, { styles: ct(c) }) : null,
610
- h ? u.createElement(Qe, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
611
- );
612
- }
613
- function lt(e) {
614
- for (var t = null; e !== null; )
615
- e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
616
- return t;
617
- }
618
- const st = De(se, it);
619
- var ft = u.forwardRef(function(e, t) {
620
- return u.createElement(D, C({}, e, { ref: t, sideCar: st }));
621
- });
622
- ft.classNames = D.classNames;
623
- var dt = function(e) {
624
- if (typeof document > "u")
625
- return null;
626
- var t = Array.isArray(e) ? e[0] : e;
627
- return t.ownerDocument.body;
628
- }, M = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), x = {}, Y = 0, me = function(e) {
629
- return e && (e.host || me(e.parentNode));
630
- }, vt = function(e, t) {
631
- return t.map(function(n) {
632
- if (e.contains(n))
633
- return n;
634
- var r = me(n);
635
- return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
636
- }).filter(function(n) {
637
- return !!n;
638
- });
639
- }, ht = function(e, t, n, r) {
640
- var c = vt(t, Array.isArray(e) ? e : [e]);
641
- x[n] || (x[n] = /* @__PURE__ */ new WeakMap());
642
- var i = x[n], s = [], a = /* @__PURE__ */ new Set(), S = new Set(c), b = function(f) {
643
- !f || a.has(f) || (a.add(f), b(f.parentNode));
644
- };
645
- c.forEach(b);
646
- var g = function(f) {
647
- !f || S.has(f) || Array.prototype.forEach.call(f.children, function(v) {
648
- if (a.has(v))
649
- g(v);
650
- else
651
- try {
652
- var h = v.getAttribute(r), w = h !== null && h !== "false", o = (M.get(v) || 0) + 1, l = (i.get(v) || 0) + 1;
653
- M.set(v, o), i.set(v, l), s.push(v), o === 1 && w && I.set(v, !0), l === 1 && v.setAttribute(n, "true"), w || v.setAttribute(r, "true");
654
- } catch (d) {
655
- console.error("aria-hidden: cannot operate on ", v, d);
656
- }
657
- });
658
- };
659
- return g(t), a.clear(), Y++, function() {
660
- s.forEach(function(f) {
661
- var v = M.get(f) - 1, h = i.get(f) - 1;
662
- M.set(f, v), i.set(f, h), v || (I.has(f) || f.removeAttribute(r), I.delete(f)), h || f.removeAttribute(n);
663
- }), Y--, Y || (M = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), x = {});
664
- };
665
- }, St = function(e, t, n) {
666
- n === void 0 && (n = "data-aria-hidden");
667
- var r = Array.from(Array.isArray(e) ? e : [e]), c = dt(e);
668
- return c ? (r.push.apply(r, Array.from(c.querySelectorAll("[aria-live], script"))), ht(r, c, n, "aria-hidden")) : function() {
669
- return null;
670
- };
671
- };
672
- export {
673
- we as F,
674
- ft as R,
675
- St as h,
676
- Et as u
677
- };