@optiaxiom/web-components 0.8.0 → 0.8.1

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 (254) hide show
  1. package/dist/AlertDialogContext-Cyiku-PH.js +1 -0
  2. package/dist/AngleMenuButton-owAGMX-Q.js +1 -0
  3. package/dist/Avatar-DMUdpTbQ.js +1 -0
  4. package/dist/AvatarContext-D5LPdPTW.js +1 -0
  5. package/dist/AvatarGroup.css.ts.vanilla-BgJJG2w1-ClcJXN6Y.js +1 -0
  6. package/dist/Backdrop-DXvWw2wR.js +1 -0
  7. package/dist/Badge-DHx5FBmI.js +1 -0
  8. package/dist/Box-EHYWAqU4.js +1 -0
  9. package/dist/Button-B4jvZRfL.js +1 -0
  10. package/dist/Checkbox-DUBqiccx.js +1 -0
  11. package/dist/{Combination-CdPx-UO4.js → Combination-BZvuoxKZ.js} +1 -1
  12. package/dist/DialogContext-DtzEUuqk.js +1 -0
  13. package/dist/{DisclosureContext-Ug9vb9hr.js → DisclosureContext-BeWV_Vzo.js} +1 -1
  14. package/dist/DrawerContext-CqlR8ZZf.js +1 -0
  15. package/dist/DropdownMenuContext-jssBZEHC.js +1 -0
  16. package/dist/DropdownMenuSubContext-D4xnOqfr.js +1 -0
  17. package/dist/FieldContext-BcuTRzev.js +1 -0
  18. package/dist/{FieldLabel-B4y6f081.js → FieldLabel-C3nFlUUJ.js} +1 -1
  19. package/dist/{Flex-Dhxuxr7f.js → Flex-D0faXBph.js} +1 -1
  20. package/dist/{Heading-cRfkNIL4.js → Heading-BHwBhX42.js} +1 -1
  21. package/dist/Icon-BC1Y-d3R.js +1 -0
  22. package/dist/IconAngleDown-Cbe2Q7Qp.js +1 -0
  23. package/dist/IconAngleRight-Cg3kIpZs.js +1 -0
  24. package/dist/{IconCircleInfoSolid-_9vZcrhb.js → IconCircleInfoSolid-BKxWRwln.js} +1 -1
  25. package/dist/{IconEllipsis-BaB1KMrl.js → IconEllipsis-CvT2wLW5.js} +1 -1
  26. package/dist/{IconTriangleExclamationSolid-C0quUdsi.js → IconTriangleExclamationSolid-DiSfkxDJ.js} +1 -1
  27. package/dist/{IconX-D15AjcZb.js → IconX-DgV2vcMf.js} +1 -1
  28. package/dist/{Input-DiO-bay4.js → Input-B9usdRfN.js} +1 -1
  29. package/dist/{InputAddon-CZhSRLRb.js → InputAddon-DUhE-LoG.js} +1 -1
  30. package/dist/InputContext-Cq11UIVc.js +1 -0
  31. package/dist/InputControl-iIZabFds.js +1 -0
  32. package/dist/InputControl.css.ts.vanilla-CjmvJlqC-B3pdz3L4.js +1 -0
  33. package/dist/InputRoot-CMTomsXM.js +1 -0
  34. package/dist/{Listbox-yhV_3sqC.js → Listbox-B55deVJT.js} +1 -1
  35. package/dist/ListboxCheckboxItem-BUSYMnbS.js +1 -0
  36. package/dist/ListboxGroupContext-B1o_Wtj5.js +1 -0
  37. package/dist/ListboxItem-DJSvqbq2.js +1 -0
  38. package/dist/{ListboxItemIndicator-kXFjNx3c.js → ListboxItemIndicator-NvNXRHEZ.js} +1 -1
  39. package/dist/ListboxSeparator-CxDx-TiZ.js +1 -0
  40. package/dist/MenuListbox-D8YdDPtT.js +1 -0
  41. package/dist/NavItem-BXyBsoqh.js +1 -0
  42. package/dist/{Paper-CM_dC7qI.js → Paper-BFzyy2s4.js} +1 -1
  43. package/dist/PopoverContext-VSmp2Bq7.js +1 -0
  44. package/dist/RadioGroupContext-Dj0Js3bD.js +1 -0
  45. package/dist/{SegmentedControlContext-Ck6yG4b3.js → SegmentedControlContext-DLvWhYcc.js} +1 -1
  46. package/dist/Separator-CmfMUC5Q.js +1 -0
  47. package/dist/SidebarContext-BC8eO7jC.js +1 -0
  48. package/dist/Spinner-BGjKpNzt.js +1 -0
  49. package/dist/Text-Bm0lfWvs.js +1 -0
  50. package/dist/{ThemeProvider-CD5yj0CX.js → ThemeProvider-C6G1dl0x.js} +1 -1
  51. package/dist/Toast-pCXzmSUB.js +1 -0
  52. package/dist/{ToastAction-CUrRDUbo.js → ToastAction-DHF-6OKl.js} +1 -1
  53. package/dist/{ToastTitle-DPmbouMK.js → ToastTitle-BViBc2uI.js} +1 -1
  54. package/dist/ToggleInputHiddenInput-CmCmnClf.js +1 -0
  55. package/dist/{Tooltip-CJ-sabiG.js → Tooltip-BKGnPQtz.js} +1 -1
  56. package/dist/{TooltipContent-Dgvov5vQ.js → TooltipContent-Hqm0_KkC.js} +1 -1
  57. package/dist/TooltipContext-DnSgvP8w.js +1 -0
  58. package/dist/{TooltipRoot-Dix-fQPI.js → TooltipRoot-f4IcnPgK.js} +1 -1
  59. package/dist/{TooltipTrigger-idugtM5Y.js → TooltipTrigger-D8jn92BD.js} +1 -1
  60. package/dist/Transition-Liidifws.js +1 -0
  61. package/dist/{TransitionGroup-CQ8DM6vR.js → TransitionGroup-BggYG7vm.js} +1 -1
  62. package/dist/components/Alert.js +1 -1
  63. package/dist/components/AlertDialog.js +1 -1
  64. package/dist/components/AlertDialogAction.js +1 -1
  65. package/dist/components/AlertDialogBody.js +1 -1
  66. package/dist/components/AlertDialogCancel.js +1 -1
  67. package/dist/components/AlertDialogContent.js +1 -1
  68. package/dist/components/AlertDialogFooter.js +1 -1
  69. package/dist/components/AlertDialogHeader.js +1 -1
  70. package/dist/components/AlertDialogTrigger.js +1 -1
  71. package/dist/components/AngleMenuButton.js +1 -0
  72. package/dist/components/Avatar.js +1 -1
  73. package/dist/components/AvatarGroup.js +1 -1
  74. package/dist/components/AxiomProvider.js +1 -1
  75. package/dist/components/Badge.js +1 -1
  76. package/dist/components/Banner.js +1 -1
  77. package/dist/components/Box.js +1 -1
  78. package/dist/components/Button.js +1 -1
  79. package/dist/components/ButtonGroup.js +1 -1
  80. package/dist/components/Checkbox.js +1 -1
  81. package/dist/components/Code.js +1 -1
  82. package/dist/components/Dialog.js +1 -1
  83. package/dist/components/DialogBody.js +1 -1
  84. package/dist/components/DialogClose.js +1 -1
  85. package/dist/components/DialogContent.js +1 -1
  86. package/dist/components/DialogFooter.js +1 -1
  87. package/dist/components/DialogForm.js +1 -1
  88. package/dist/components/DialogHeader.js +1 -1
  89. package/dist/components/DialogTrigger.js +1 -1
  90. package/dist/components/Disclosure.js +1 -1
  91. package/dist/components/DisclosureContent.js +1 -1
  92. package/dist/components/DisclosureTrigger.js +1 -1
  93. package/dist/components/Drawer.js +1 -1
  94. package/dist/components/DrawerActions.js +1 -1
  95. package/dist/components/DrawerBody.js +1 -1
  96. package/dist/components/DrawerClose.js +1 -1
  97. package/dist/components/DrawerContent.js +1 -1
  98. package/dist/components/DrawerDescription.js +1 -1
  99. package/dist/components/DrawerFooter.js +1 -1
  100. package/dist/components/DrawerHeader.js +1 -1
  101. package/dist/components/DrawerTitle.js +1 -1
  102. package/dist/components/DrawerTrigger.js +1 -1
  103. package/dist/components/DropdownMenu.js +1 -1
  104. package/dist/components/DropdownMenuCheckboxItem.js +1 -1
  105. package/dist/components/DropdownMenuContent.js +1 -1
  106. package/dist/components/DropdownMenuGroup.js +1 -1
  107. package/dist/components/DropdownMenuItem.js +1 -1
  108. package/dist/components/DropdownMenuLabel.js +1 -1
  109. package/dist/components/DropdownMenuSeparator.js +1 -1
  110. package/dist/components/DropdownMenuSub.js +1 -1
  111. package/dist/components/DropdownMenuSubContent.js +1 -1
  112. package/dist/components/DropdownMenuTrigger.js +1 -1
  113. package/dist/components/EllipsisMenuButton.js +1 -0
  114. package/dist/components/Field.js +1 -1
  115. package/dist/components/FieldLabel.js +1 -1
  116. package/dist/components/Flex.js +1 -1
  117. package/dist/components/Grid.js +1 -1
  118. package/dist/components/Heading.js +1 -1
  119. package/dist/components/Indicator.js +1 -1
  120. package/dist/components/Input.js +1 -1
  121. package/dist/components/InputAddon.js +1 -1
  122. package/dist/components/InputControl.js +1 -1
  123. package/dist/components/InputRoot.js +1 -1
  124. package/dist/components/Kbd.js +1 -1
  125. package/dist/components/Link.js +1 -1
  126. package/dist/components/Listbox.js +1 -1
  127. package/dist/components/ListboxCheckboxItem.js +1 -1
  128. package/dist/components/ListboxEmpty.js +1 -1
  129. package/dist/components/ListboxFooter.js +1 -1
  130. package/dist/components/ListboxGroup.js +1 -1
  131. package/dist/components/ListboxItem.js +1 -1
  132. package/dist/components/ListboxItemIndicator.js +1 -1
  133. package/dist/components/ListboxLabel.js +1 -1
  134. package/dist/components/ListboxRadioItem.js +1 -1
  135. package/dist/components/ListboxScrollArea.js +1 -1
  136. package/dist/components/ListboxSeparator.js +1 -1
  137. package/dist/components/ModalLayer.js +1 -1
  138. package/dist/components/Nav.js +1 -1
  139. package/dist/components/NavAccountItem.js +1 -1
  140. package/dist/components/NavBody.js +1 -1
  141. package/dist/components/NavFooter.js +1 -1
  142. package/dist/components/NavHeader.js +1 -1
  143. package/dist/components/NavItem.js +1 -1
  144. package/dist/components/Pagination.js +1 -1
  145. package/dist/components/Paper.js +1 -1
  146. package/dist/components/Popover.js +1 -1
  147. package/dist/components/PopoverAnchor.js +1 -1
  148. package/dist/components/PopoverContent.js +1 -1
  149. package/dist/components/PopoverTrigger.js +1 -1
  150. package/dist/components/Progress.js +2 -2
  151. package/dist/components/Radio.js +1 -1
  152. package/dist/components/RadioGroup.js +1 -1
  153. package/dist/components/SearchInput.js +1 -1
  154. package/dist/components/SegmentedControl.js +1 -1
  155. package/dist/components/SegmentedControlItem.js +1 -1
  156. package/dist/components/Separator.js +1 -1
  157. package/dist/components/Sidebar.js +1 -1
  158. package/dist/components/SidebarToggle.js +1 -1
  159. package/dist/components/Skeleton.js +1 -1
  160. package/dist/components/Spinner.js +1 -1
  161. package/dist/components/Switch.js +1 -1
  162. package/dist/components/Tabs.js +1 -1
  163. package/dist/components/TabsContent.js +1 -1
  164. package/dist/components/TabsList.js +1 -1
  165. package/dist/components/TabsTrigger.js +1 -1
  166. package/dist/components/Text.js +1 -1
  167. package/dist/components/Textarea.js +1 -1
  168. package/dist/components/ThemeProvider.js +1 -1
  169. package/dist/components/Toast.js +1 -1
  170. package/dist/components/ToastAction.js +1 -1
  171. package/dist/components/ToastTitle.js +1 -1
  172. package/dist/components/ToggleButton.js +1 -1
  173. package/dist/components/Tooltip.js +1 -1
  174. package/dist/components/TooltipContent.js +1 -1
  175. package/dist/components/TooltipRoot.js +1 -1
  176. package/dist/components/TooltipTrigger.js +1 -1
  177. package/dist/components/Transition.js +1 -1
  178. package/dist/components/TransitionGroup.js +1 -1
  179. package/dist/{decorateChildren-Dfm8Bfk6.js → decorateChildren-Dehtwsgi.js} +1 -1
  180. package/dist/fallbackSpan-COhQfD6e.js +1 -0
  181. package/dist/{index-yvefsybe.js → index-6ACy5ofQ.js} +1 -1
  182. package/dist/{index-D4tyXb-g.js → index-B0QrCMt-.js} +1 -1
  183. package/dist/{index-BE1D-4q3.js → index-B7AvcVg5.js} +1 -1
  184. package/dist/{index-DhA7j2BO.js → index-BASQ8BvR.js} +1 -1
  185. package/dist/{index-zPiJMCx5.js → index-BJU8k3hC.js} +1 -1
  186. package/dist/{index-Dt-AXf4z.js → index-BUl4jCBE.js} +1 -1
  187. package/dist/{index-dNX4mZZZ.js → index-Ba1KfXEF.js} +1 -1
  188. package/dist/index-BkT6ELCn.js +1 -0
  189. package/dist/{index-BR94Y7UD.js → index-CSwaLeaf.js} +1 -1
  190. package/dist/{index-C_Nwmmeb.js → index-Ca0nhHgs.js} +1 -1
  191. package/dist/{index-DWmeZo4L.js → index-CjQBLUer.js} +1 -1
  192. package/dist/{index-DYlYDYIf.js → index-Cp8wckdc.js} +1 -1
  193. package/dist/{index-tyTRMVp2.js → index-D0JtQ6bV.js} +1 -1
  194. package/dist/{index-2Z5UdENF.js → index-D4kw-DqV.js} +1 -1
  195. package/dist/index-DcfOiwBx.js +1 -0
  196. package/dist/{index-CJ8wiK9w.js → index-DcqyAQ_O.js} +1 -1
  197. package/dist/{index-CXvrS17Y.js → index-Drf6e28i.js} +1 -1
  198. package/dist/{index-DOs84oyu.js → index-Hmc_9hym.js} +1 -1
  199. package/dist/{index-f295ldbj.js → index-K1xvGoop.js} +1 -1
  200. package/dist/{index-DzgRZJb6.js → index-PkLLBl66.js} +1 -1
  201. package/dist/{index-XMehPuYo.js → index-XHumtRyF.js} +1 -1
  202. package/dist/{index-BcreLqeQ.js → index-lLx4-_J9.js} +1 -1
  203. package/dist/{index-CHknjjXQ.js → index-qQYeOZhj.js} +1 -1
  204. package/dist/index.js +1 -1
  205. package/dist/layers.css.ts.vanilla-xcn_ZlL--DMKSHRnW.js +1 -0
  206. package/dist/mapping-liyJrI1I.js +1 -0
  207. package/dist/{register-q2a4hUWr.js → register-BLIUg7pP.js} +1 -1
  208. package/dist/{useNestedDialogCount--flp4MbT.js → useNestedDialogCount-ZArU4o6w.js} +1 -1
  209. package/dist/{withIcon-CbeazhRg.js → withIcon-Cd6bqz0W.js} +1 -1
  210. package/package.json +6 -5
  211. package/dist/AlertDialogContext-C4Zrg86m.js +0 -1
  212. package/dist/Avatar-B0g0IIxF.js +0 -1
  213. package/dist/AvatarContext-CMP9SDpi.js +0 -1
  214. package/dist/AvatarGroup.css.ts.vanilla-BxCgGwKO-B62ogurN.js +0 -1
  215. package/dist/Backdrop-RzXJufFH.js +0 -1
  216. package/dist/Badge-ClaI334w.js +0 -1
  217. package/dist/Box-DkJ77Zjm.js +0 -1
  218. package/dist/Button-D9slOo7p.js +0 -1
  219. package/dist/Checkbox-DwOY36xl.js +0 -1
  220. package/dist/DialogContext-DYyQOuE4.js +0 -1
  221. package/dist/DrawerContext-DIxtA0cN.js +0 -1
  222. package/dist/DropdownMenuContext-DdILU_u1.js +0 -1
  223. package/dist/DropdownMenuSubContext-Dm6QLM68.js +0 -1
  224. package/dist/FieldContext-Ccd6L4uV.js +0 -1
  225. package/dist/Icon-BMBXCCHI.js +0 -1
  226. package/dist/IconAngleDown-Bk8Ysf-a.js +0 -1
  227. package/dist/IconAngleRight-BsOI6NUj.js +0 -1
  228. package/dist/InputContext-DpNJBMWy.js +0 -1
  229. package/dist/InputControl-CedTsi_k.js +0 -1
  230. package/dist/InputControl.css.ts.vanilla-D0ivfH9I-XdRffuro.js +0 -1
  231. package/dist/InputRoot-DMOuT998.js +0 -1
  232. package/dist/ListboxCheckboxItem-gvQnp7Ez.js +0 -1
  233. package/dist/ListboxGroupContext-DlYeGMD2.js +0 -1
  234. package/dist/ListboxItem-6J366EpQ.js +0 -1
  235. package/dist/ListboxSeparator-BeDjHvxo.js +0 -1
  236. package/dist/MenuButton-C10o0Zc-.js +0 -1
  237. package/dist/MenuListbox-Bx8wkYlw.js +0 -1
  238. package/dist/NavItem-CYA5XvYc.js +0 -1
  239. package/dist/PopoverContext-ygN1T1Zv.js +0 -1
  240. package/dist/RadioGroupContext-D2xIN7Tt.js +0 -1
  241. package/dist/Separator-K6E2Y7OO.js +0 -1
  242. package/dist/SidebarContext-CMQXaHhp.js +0 -1
  243. package/dist/Spinner-B6AlawSg.js +0 -1
  244. package/dist/Text-CPDn6bb5.js +0 -1
  245. package/dist/Toast-CgzDX8DD.js +0 -1
  246. package/dist/ToggleInputLabel-BnlkIj-Y.js +0 -1
  247. package/dist/TooltipContext-By3jdy4R.js +0 -1
  248. package/dist/Transition-BvzVFCxA.js +0 -1
  249. package/dist/components/MenuButton.js +0 -1
  250. package/dist/fallbackSpan-C1dEcOZC.js +0 -1
  251. package/dist/index-DNCHaYVz.js +0 -1
  252. package/dist/index-DRPfs38H.js +0 -1
  253. package/dist/layers.css.ts.vanilla-B-b4u8-T-D-gzaFHl.js +0 -1
  254. package/dist/mapping-CtWZQHyQ.js +0 -1
@@ -1 +1 @@
1
- import{h as Y,q as yt,A as J,E as ve,T as lt,_ as Pe,y as Wt,D as ft,u as j}from"./register-q2a4hUWr.js";import{P as bt}from"./index-BcreLqeQ.js";import{u as zt}from"./index-DzgRZJb6.js";import{a as Oe}from"./index-yvefsybe.js";import{u as Re}from"./index-CHknjjXQ.js";import{u as At}from"./index-DNCHaYVz.js";const Ce=["top","right","bottom","left"],U=Math.min,N=Math.max,at=Math.round,ut=Math.floor,B=t=>({x:t,y:t}),Se={left:"right",right:"left",bottom:"top",top:"bottom"},Ee={start:"end",end:"start"};function vt(t,e,n){return N(t,U(e,n))}function X(t,e){return typeof t=="function"?t(e):t}function q(t){return t.split("-")[0]}function Q(t){return t.split("-")[1]}function Pt(t){return t==="x"?"y":"x"}function Ot(t){return t==="y"?"height":"width"}function Z(t){return["top","bottom"].includes(q(t))?"y":"x"}function Rt(t){return Pt(Z(t))}function De(t,e,n){n===void 0&&(n=!1);const o=Q(t),i=Rt(t),r=Ot(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=dt(s)),[s,dt(s)]}function Te(t){const e=dt(t);return[Ct(t),e,Ct(e)]}function Ct(t){return t.replace(/start|end/g,e=>Ee[e])}function Le(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function Me(t,e,n,o){const i=Q(t);let r=Le(q(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(Ct)))),r}function dt(t){return t.replace(/left|right|bottom|top/g,e=>Se[e])}function $e(t){return{top:0,right:0,bottom:0,left:0,...t}}function _t(t){return typeof t!="number"?$e(t):{top:t,right:t,bottom:t,left:t}}function pt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Bt(t,e,n){let{reference:o,floating:i}=t;const r=Z(e),s=Rt(e),c=Ot(s),l=q(e),f=r==="y",a=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,h=o[c]/2-i[c]/2;let d;switch(l){case"top":d={x:a,y:o.y-i.height};break;case"bottom":d={x:a,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-i.width,y:u};break;default:d={x:o.x,y:o.y}}switch(Q(e)){case"start":d[s]-=h*(n&&f?-1:1);break;case"end":d[s]+=h*(n&&f?-1:1);break}return d}const ke=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let f=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:a,y:u}=Bt(f,o,l),h=o,d={},p=0;for(let m=0;m<c.length;m++){const{name:w,fn:g}=c[m],{x,y:A,data:y,reset:b}=await g({x:a,y:u,initialPlacement:o,placement:h,strategy:i,middlewareData:d,rects:f,platform:s,elements:{reference:t,floating:e}});a=x??a,u=A??u,d={...d,[w]:{...d[w],...y}},b&&p<=50&&(p++,typeof b=="object"&&(b.placement&&(h=b.placement),b.rects&&(f=b.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):b.rects),{x:a,y:u}=Bt(f,h,l)),m=-1)}return{x:a,y:u,placement:h,strategy:i,middlewareData:d}};async function it(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:f="clippingAncestors",rootBoundary:a="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=X(e,t),p=_t(d),w=c[h?u==="floating"?"reference":"floating":u],g=pt(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:f,rootBoundary:a,strategy:l})),x=u==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,A=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),y=await(r.isElement==null?void 0:r.isElement(A))?await(r.getScale==null?void 0:r.getScale(A))||{x:1,y:1}:{x:1,y:1},b=pt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:A,strategy:l}):x);return{top:(g.top-b.top+p.top)/y.y,bottom:(b.bottom-g.bottom+p.bottom)/y.y,left:(g.left-b.left+p.left)/y.x,right:(b.right-g.right+p.right)/y.x}}const Ne=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:f,padding:a=0}=X(t,e)||{};if(f==null)return{};const u=_t(a),h={x:n,y:o},d=Rt(i),p=Ot(d),m=await s.getDimensions(f),w=d==="y",g=w?"top":"left",x=w?"bottom":"right",A=w?"clientHeight":"clientWidth",y=r.reference[p]+r.reference[d]-h[d]-r.floating[p],b=h[d]-r.reference[d],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let R=P?P[A]:0;(!R||!await(s.isElement==null?void 0:s.isElement(P)))&&(R=c.floating[A]||r.floating[p]);const D=y/2-b/2,k=R/2-m[p]/2-1,T=U(u[g],k),M=U(u[x],k),$=T,C=R-m[p]-M,O=R/2-m[p]/2+D,H=vt($,O,C),S=!l.arrow&&Q(i)!=null&&O!==H&&r.reference[p]/2-(O<$?T:M)-m[p]/2<0,E=S?O<$?O-$:O-C:0;return{[d]:h[d]+E,data:{[d]:H,centerOffset:O-H-E,...S&&{alignmentOffset:E}},reset:S}}}),Fe=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:f}=e,{mainAxis:a=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...w}=X(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const g=q(i),x=Z(c),A=q(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(f.floating)),b=h||(A||!m?[dt(c)]:Te(c)),P=p!=="none";!h&&P&&b.push(...Me(c,m,p,y));const R=[c,...b],D=await it(e,w),k=[];let T=((o=r.flip)==null?void 0:o.overflows)||[];if(a&&k.push(D[g]),u){const O=De(i,s,y);k.push(D[O[0]],D[O[1]])}if(T=[...T,{placement:i,overflows:k}],!k.every(O=>O<=0)){var M,$;const O=(((M=r.flip)==null?void 0:M.index)||0)+1,H=R[O];if(H)return{data:{index:O,overflows:T},reset:{placement:H}};let S=($=T.filter(E=>E.overflows[0]<=0).sort((E,v)=>E.overflows[1]-v.overflows[1])[0])==null?void 0:$.placement;if(!S)switch(d){case"bestFit":{var C;const E=(C=T.filter(v=>{if(P){const L=Z(v.placement);return L===x||L==="y"}return!0}).map(v=>[v.placement,v.overflows.filter(L=>L>0).reduce((L,_)=>L+_,0)]).sort((v,L)=>v[1]-L[1])[0])==null?void 0:C[0];E&&(S=E);break}case"initialPlacement":S=c;break}if(i!==S)return{reset:{placement:S}}}return{}}}};function Vt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function It(t){return Ce.some(e=>t[e]>=0)}const He=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=X(t,e);switch(o){case"referenceHidden":{const r=await it(e,{...i,elementContext:"reference"}),s=Vt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:It(s)}}}case"escaped":{const r=await it(e,{...i,altBoundary:!0}),s=Vt(r,n.floating);return{data:{escapedOffsets:s,escaped:It(s)}}}default:return{}}}}};async function We(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=q(n),c=Q(n),l=Z(n)==="y",f=["left","top"].includes(s)?-1:1,a=r&&l?-1:1,u=X(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*a,y:h*f}:{x:h*f,y:d*a}}const ze=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:c}=e,l=await We(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},_e=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:x}=w;return{x:g,y:x}}},...l}=X(t,e),f={x:n,y:o},a=await it(e,l),u=Z(q(i)),h=Pt(u);let d=f[h],p=f[u];if(r){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",x=d+a[w],A=d-a[g];d=vt(x,d,A)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",x=p+a[w],A=p-a[g];p=vt(x,p,A)}const m=c.fn({...e,[h]:d,[u]:p});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[h]:r,[u]:s}}}}}},Be=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:f=!0}=X(t,e),a={x:n,y:o},u=Z(i),h=Pt(u);let d=a[h],p=a[u];const m=X(c,e),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const A=h==="y"?"height":"width",y=r.reference[h]-r.floating[A]+w.mainAxis,b=r.reference[h]+r.reference[A]-w.mainAxis;d<y?d=y:d>b&&(d=b)}if(f){var g,x;const A=h==="y"?"width":"height",y=["top","left"].includes(q(i)),b=r.reference[u]-r.floating[A]+(y&&((g=s.offset)==null?void 0:g[u])||0)+(y?0:w.crossAxis),P=r.reference[u]+r.reference[A]+(y?0:((x=s.offset)==null?void 0:x[u])||0)-(y?w.crossAxis:0);p<b?p=b:p>P&&(p=P)}return{[h]:d,[u]:p}}}},Ve=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:c}=e,{apply:l=()=>{},...f}=X(t,e),a=await it(e,f),u=q(i),h=Q(i),d=Z(i)==="y",{width:p,height:m}=r.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=h===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=h==="end"?"top":"bottom");const x=m-a.top-a.bottom,A=p-a.left-a.right,y=U(m-a[w],x),b=U(p-a[g],A),P=!e.middlewareData.shift;let R=y,D=b;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(D=A),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(R=x),P&&!h){const T=N(a.left,0),M=N(a.right,0),$=N(a.top,0),C=N(a.bottom,0);d?D=p-2*(T!==0||M!==0?T+M:N(a.left,a.right)):R=m-2*($!==0||C!==0?$+C:N(a.top,a.bottom))}await l({...e,availableWidth:D,availableHeight:R});const k=await s.getDimensions(c.floating);return p!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}};function ht(){return typeof window<"u"}function tt(t){return Yt(t)?(t.nodeName||"").toLowerCase():"#document"}function F(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function V(t){var e;return(e=(Yt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Yt(t){return ht()?t instanceof Node||t instanceof F(t).Node:!1}function W(t){return ht()?t instanceof Element||t instanceof F(t).Element:!1}function I(t){return ht()?t instanceof HTMLElement||t instanceof F(t).HTMLElement:!1}function jt(t){return!ht()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof F(t).ShadowRoot}function rt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=z(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Ie(t){return["table","td","th"].includes(tt(t))}function mt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function St(t){const e=Et(),n=W(t)?z(t):t;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ye(t){let e=K(t);for(;I(e)&&!et(e);){if(St(e))return e;if(mt(e))return null;e=K(e)}return null}function Et(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function et(t){return["html","body","#document"].includes(tt(t))}function z(t){return F(t).getComputedStyle(t)}function gt(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(tt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||jt(t)&&t.host||V(t);return jt(e)?e.host:e}function Xt(t){const e=K(t);return et(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&rt(e)?e:Xt(e)}function st(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Xt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=F(i);if(r){const c=Dt(s);return e.concat(s,s.visualViewport||[],rt(i)?i:[],c&&n?st(c):[])}return e.concat(i,st(i,[],n))}function Dt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function qt(t){const e=z(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=I(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=at(n)!==r||at(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function Tt(t){return W(t)?t:t.contextElement}function nt(t){const e=Tt(t);if(!I(e))return B(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=qt(e);let s=(r?at(n.width):n.width)/o,c=(r?at(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const je=B(0);function Ut(t){const e=F(t);return!Et()||!e.visualViewport?je:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Xe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==F(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=Tt(t);let s=B(1);e&&(o?W(o)&&(s=nt(o)):s=nt(t));const c=Xe(r,n,o)?Ut(r):B(0);let l=(i.left+c.x)/s.x,f=(i.top+c.y)/s.y,a=i.width/s.x,u=i.height/s.y;if(r){const h=F(r),d=o&&W(o)?F(o):o;let p=h,m=Dt(p);for(;m&&o&&d!==p;){const w=nt(m),g=m.getBoundingClientRect(),x=z(m),A=g.left+(m.clientLeft+parseFloat(x.paddingLeft))*w.x,y=g.top+(m.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,f*=w.y,a*=w.x,u*=w.y,l+=A,f+=y,p=F(m),m=Dt(p)}}return pt({width:a,height:u,x:l,y:f})}function Lt(t,e){const n=gt(t).scrollLeft;return e?e.left+n:G(V(t)).left+n}function Zt(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=o.left+e.scrollLeft-(n?0:Lt(t,o)),r=o.top+e.scrollTop;return{x:i,y:r}}function qe(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=V(o),c=e?mt(e.floating):!1;if(o===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},f=B(1);const a=B(0),u=I(o);if((u||!u&&!r)&&((tt(o)!=="body"||rt(s))&&(l=gt(o)),I(o))){const d=G(o);f=nt(o),a.x=d.x+o.clientLeft,a.y=d.y+o.clientTop}const h=s&&!u&&!r?Zt(s,l,!0):B(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+a.x+h.x,y:n.y*f.y-l.scrollTop*f.y+a.y+h.y}}function Ue(t){return Array.from(t.getClientRects())}function Ze(t){const e=V(t),n=gt(t),o=t.ownerDocument.body,i=N(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=N(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Lt(t);const c=-n.scrollTop;return z(o).direction==="rtl"&&(s+=N(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}function Ke(t,e){const n=F(t),o=V(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){r=i.width,s=i.height;const f=Et();(!f||f&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:c,y:l}}function Ge(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=I(t)?nt(t):B(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=i*r.x,f=o*r.y;return{width:s,height:c,x:l,y:f}}function Kt(t,e,n){let o;if(e==="viewport")o=Ke(t,n);else if(e==="document")o=Ze(V(t));else if(W(e))o=Ge(e,n);else{const i=Ut(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return pt(o)}function Gt(t,e){const n=K(t);return n===e||!W(n)||et(n)?!1:z(n).position==="fixed"||Gt(n,e)}function Je(t,e){const n=e.get(t);if(n)return n;let o=st(t,[],!1).filter(c=>W(c)&&tt(c)!=="body"),i=null;const r=z(t).position==="fixed";let s=r?K(t):t;for(;W(s)&&!et(s);){const c=z(s),l=St(s);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||rt(s)&&!l&&Gt(t,s))?o=o.filter(a=>a!==s):i=c,s=K(s)}return e.set(t,o),o}function Qe(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?mt(e)?[]:Je(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((f,a)=>{const u=Kt(e,a,i);return f.top=N(u.top,f.top),f.right=U(u.right,f.right),f.bottom=U(u.bottom,f.bottom),f.left=N(u.left,f.left),f},Kt(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function tn(t){const{width:e,height:n}=qt(t);return{width:e,height:n}}function en(t,e,n){const o=I(e),i=V(e),r=n==="fixed",s=G(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const l=B(0);if(o||!o&&!r)if((tt(e)!=="body"||rt(i))&&(c=gt(e)),o){const h=G(e,!0,r,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&(l.x=Lt(i));const f=i&&!o&&!r?Zt(i,c):B(0),a=s.left+c.scrollLeft-l.x-f.x,u=s.top+c.scrollTop-l.y-f.y;return{x:a,y:u,width:s.width,height:s.height}}function Mt(t){return z(t).position==="static"}function Jt(t,e){if(!I(t)||z(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return V(t)===n&&(n=n.ownerDocument.body),n}function Qt(t,e){const n=F(t);if(mt(t))return n;if(!I(t)){let i=K(t);for(;i&&!et(i);){if(W(i)&&!Mt(i))return i;i=K(i)}return n}let o=Jt(t,e);for(;o&&Ie(o)&&Mt(o);)o=Jt(o,e);return o&&et(o)&&Mt(o)&&!St(o)?n:o||Ye(t)||n}const nn=async function(t){const e=this.getOffsetParent||Qt,n=this.getDimensions,o=await n(t.floating);return{reference:en(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function on(t){return z(t).direction==="rtl"}const rn={convertOffsetParentRelativeRectToViewportRelativeRect:qe,getDocumentElement:V,getClippingRect:Qe,getOffsetParent:Qt,getElementRects:nn,getClientRects:Ue,getDimensions:tn,getScale:nt,isElement:W,isRTL:on};function sn(t,e){let n=null,o;const i=V(t);function r(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();const{left:f,top:a,width:u,height:h}=t.getBoundingClientRect();if(c||e(),!u||!h)return;const d=ut(a),p=ut(i.clientWidth-(f+u)),m=ut(i.clientHeight-(a+h)),w=ut(f),x={rootMargin:-d+"px "+-p+"px "+-m+"px "+-w+"px",threshold:N(0,U(1,l))||1};let A=!0;function y(b){const P=b[0].intersectionRatio;if(P!==l){if(!A)return s();P?s(!1,P):o=setTimeout(()=>{s(!1,1e-7)},1e3)}A=!1}try{n=new IntersectionObserver(y,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(y,x)}n.observe(t)}return s(!0),r}function cn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,f=Tt(t),a=i||r?[...f?st(f):[],...st(e)]:[];a.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const u=f&&c?sn(f,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(g=>{let[x]=g;x&&x.target===f&&d&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var A;(A=d)==null||A.observe(e)})),n()}),f&&!l&&d.observe(f),d.observe(e));let p,m=l?G(t):null;l&&w();function w(){const g=G(t);m&&(g.x!==m.x||g.y!==m.y||g.width!==m.width||g.height!==m.height)&&n(),m=g,p=requestAnimationFrame(w)}return n(),()=>{var g;a.forEach(x=>{i&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const ln=ze,fn=_e,an=Fe,un=Ve,dn=He,te=Ne,pn=Be,hn=(t,e,n)=>{const o=new Map,i={platform:rn,...n},r={...i.platform,_c:o};return ke(t,e,{...i,platform:r})};var wt=typeof document<"u"?Pe:Wt;function xt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!xt(t[o],e[o]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&t.$$typeof)&&!xt(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function ee(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function ne(t,e){const n=ee(t);return Math.round(e*n)/n}function $t(t){const e=J(t);return wt(()=>{e.current=t}),e}function mn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:c=!0,whileElementsMounted:l,open:f}=t,[a,u]=Y({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,d]=Y(o);xt(h,o)||d(o);const[p,m]=Y(null),[w,g]=Y(null),x=yt(v=>{v!==P.current&&(P.current=v,m(v))},[]),A=yt(v=>{v!==R.current&&(R.current=v,g(v))},[]),y=r||p,b=s||w,P=J(null),R=J(null),D=J(a),k=l!=null,T=$t(l),M=$t(i),$=$t(f),C=yt(()=>{if(!P.current||!R.current)return;const v={placement:e,strategy:n,middleware:h};M.current&&(v.platform=M.current),hn(P.current,R.current,v).then(L=>{const _={...L,isPositioned:$.current!==!1};O.current&&!xt(D.current,_)&&(D.current=_,ve(()=>{u(_)}))})},[h,e,n,M,$]);wt(()=>{f===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,u(v=>({...v,isPositioned:!1})))},[f]);const O=J(!1);wt(()=>(O.current=!0,()=>{O.current=!1}),[]),wt(()=>{if(y&&(P.current=y),b&&(R.current=b),y&&b){if(T.current)return T.current(y,b,C);C()}},[y,b,C,T,k]);const H=lt(()=>({reference:P,floating:R,setReference:x,setFloating:A}),[x,A]),S=lt(()=>({reference:y,floating:b}),[y,b]),E=lt(()=>{const v={position:n,left:0,top:0};if(!S.floating)return v;const L=ne(S.floating,a.x),_=ne(S.floating,a.y);return c?{...v,transform:"translate("+L+"px, "+_+"px)",...ee(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:_}},[n,c,S.floating,a.x,a.y]);return lt(()=>({...a,update:C,refs:H,elements:S,floatingStyles:E}),[a,C,H,S,E])}const gn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:i}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?te({element:o.current,padding:i}).fn(n):{}:o?te({element:o,padding:i}).fn(n):{}}}},wn=(t,e)=>({...ln(t),options:[t,e]}),xn=(t,e)=>({...fn(t),options:[t,e]}),yn=(t,e)=>({...pn(t),options:[t,e]}),bn=(t,e)=>({...an(t),options:[t,e]}),An=(t,e)=>({...un(t),options:[t,e]}),vn=(t,e)=>({...dn(t),options:[t,e]}),Pn=(t,e)=>({...gn(t),options:[t,e]});var On="Arrow",oe=ft((t,e)=>{const{children:n,width:o=10,height:i=5,...r}=t;return j(bt.svg,{...r,ref:e,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:j("polygon",{points:"0,0 30,0 15,10"})})});oe.displayName=On;var Rn=oe;function Cn(t){const[e,n]=Y(void 0);return At(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let s,c;if("borderBoxSize"in r){const l=r.borderBoxSize,f=Array.isArray(l)?l[0]:l;s=f.inlineSize,c=f.blockSize}else s=t.offsetWidth,c=t.offsetHeight;n({width:s,height:c})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}var kt="Popper",[ie,Sn]=Oe(kt),[En,re]=ie(kt),se=t=>{const{__scopePopper:e,children:n}=t,[o,i]=Y(null);return j(En,{scope:e,anchor:o,onAnchorChange:i,children:n})};se.displayName=kt;var ce="PopperAnchor",le=ft((t,e)=>{const{__scopePopper:n,virtualRef:o,...i}=t,r=re(ce,n),s=J(null),c=zt(e,s);return Wt(()=>{r.onAnchorChange(o?.current||s.current)}),o?null:j(bt.div,{...i,ref:c})});le.displayName=ce;var Nt="PopperContent",[Dn,Tn]=ie(Nt),fe=ft((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:f=[],collisionPadding:a=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:p,...m}=t,w=re(Nt,n),[g,x]=Y(null),A=zt(e,ot=>x(ot)),[y,b]=Y(null),P=Cn(y),R=P?.width??0,D=P?.height??0,k=o+(r!=="center"?"-"+r:""),T=typeof a=="number"?a:{top:0,right:0,bottom:0,left:0,...a},M=Array.isArray(f)?f:[f],$=M.length>0,C={padding:T,boundary:M.filter(Mn),altBoundary:$},{refs:O,floatingStyles:H,placement:S,isPositioned:E,middlewareData:v}=mn({strategy:"fixed",placement:k,whileElementsMounted:(...ot)=>cn(...ot,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[wn({mainAxis:i+D,alignmentAxis:s}),l&&xn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?yn():void 0,...C}),l&&bn({...C}),An({...C,apply:({elements:ot,rects:Ht,availableWidth:xe,availableHeight:ye})=>{const{width:be,height:Ae}=Ht.reference,ct=ot.floating.style;ct.setProperty("--radix-popper-available-width",`${xe}px`),ct.setProperty("--radix-popper-available-height",`${ye}px`),ct.setProperty("--radix-popper-anchor-width",`${be}px`),ct.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),y&&Pn({element:y,padding:c}),$n({arrowWidth:R,arrowHeight:D}),h&&vn({strategy:"referenceHidden",...C})]}),[L,_]=de(S),Ft=Re(p);At(()=>{E&&Ft?.()},[E,Ft]);const pe=v.arrow?.x,he=v.arrow?.y,me=v.arrow?.centerOffset!==0,[ge,we]=Y();return At(()=>{g&&we(window.getComputedStyle(g).zIndex)},[g]),j("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:E?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,["--radix-popper-transform-origin"]:[v.transformOrigin?.x,v.transformOrigin?.y].join(" "),...v.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:j(Dn,{scope:n,placedSide:L,onArrowChange:b,arrowX:pe,arrowY:he,shouldHideArrow:me,children:j(bt.div,{"data-side":L,"data-align":_,...m,ref:A,style:{...m.style,animation:E?void 0:"none"}})})})});fe.displayName=Nt;var ae="PopperArrow",Ln={top:"bottom",right:"left",bottom:"top",left:"right"},ue=ft(function(e,n){const{__scopePopper:o,...i}=e,r=Tn(ae,o),s=Ln[r.placedSide];return j("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:j(Rn,{...i,ref:n,style:{...i.style,display:"block"}})})});ue.displayName=ae;function Mn(t){return t!==null}var $n=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:i}=e,s=i.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[f,a]=de(n),u={start:"0%",center:"50%",end:"100%"}[a],h=(i.arrow?.x??0)+c/2,d=(i.arrow?.y??0)+l/2;let p="",m="";return f==="bottom"?(p=s?u:`${h}px`,m=`${-l}px`):f==="top"?(p=s?u:`${h}px`,m=`${o.floating.height+l}px`):f==="right"?(p=`${-l}px`,m=s?u:`${d}px`):f==="left"&&(p=`${o.floating.width+l}px`,m=s?u:`${d}px`),{data:{x:p,y:m}}}});function de(t){const[e,n="center"]=t.split("-");return[e,n]}var kn=se,Nn=le,Fn=fe,Hn=ue;export{Nn as A,Fn as C,kn as R,Hn as a,Sn as c};
1
+ import{h as Y,q as yt,A as J,E as ve,T as lt,_ as Pe,y as Wt,D as ft,u as j}from"./register-BLIUg7pP.js";import{P as bt}from"./index-lLx4-_J9.js";import{u as zt}from"./index-PkLLBl66.js";import{a as Oe}from"./index-6ACy5ofQ.js";import{u as Re}from"./index-qQYeOZhj.js";import{u as At}from"./index-BkT6ELCn.js";const Ce=["top","right","bottom","left"],U=Math.min,N=Math.max,at=Math.round,ut=Math.floor,B=t=>({x:t,y:t}),Se={left:"right",right:"left",bottom:"top",top:"bottom"},Ee={start:"end",end:"start"};function vt(t,e,n){return N(t,U(e,n))}function X(t,e){return typeof t=="function"?t(e):t}function q(t){return t.split("-")[0]}function Q(t){return t.split("-")[1]}function Pt(t){return t==="x"?"y":"x"}function Ot(t){return t==="y"?"height":"width"}function Z(t){return["top","bottom"].includes(q(t))?"y":"x"}function Rt(t){return Pt(Z(t))}function De(t,e,n){n===void 0&&(n=!1);const o=Q(t),i=Rt(t),r=Ot(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=dt(s)),[s,dt(s)]}function Te(t){const e=dt(t);return[Ct(t),e,Ct(e)]}function Ct(t){return t.replace(/start|end/g,e=>Ee[e])}function Le(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function Me(t,e,n,o){const i=Q(t);let r=Le(q(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(Ct)))),r}function dt(t){return t.replace(/left|right|bottom|top/g,e=>Se[e])}function $e(t){return{top:0,right:0,bottom:0,left:0,...t}}function _t(t){return typeof t!="number"?$e(t):{top:t,right:t,bottom:t,left:t}}function pt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Bt(t,e,n){let{reference:o,floating:i}=t;const r=Z(e),s=Rt(e),c=Ot(s),l=q(e),f=r==="y",a=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,h=o[c]/2-i[c]/2;let d;switch(l){case"top":d={x:a,y:o.y-i.height};break;case"bottom":d={x:a,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-i.width,y:u};break;default:d={x:o.x,y:o.y}}switch(Q(e)){case"start":d[s]-=h*(n&&f?-1:1);break;case"end":d[s]+=h*(n&&f?-1:1);break}return d}const ke=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let f=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:a,y:u}=Bt(f,o,l),h=o,d={},p=0;for(let m=0;m<c.length;m++){const{name:w,fn:g}=c[m],{x,y:A,data:y,reset:b}=await g({x:a,y:u,initialPlacement:o,placement:h,strategy:i,middlewareData:d,rects:f,platform:s,elements:{reference:t,floating:e}});a=x??a,u=A??u,d={...d,[w]:{...d[w],...y}},b&&p<=50&&(p++,typeof b=="object"&&(b.placement&&(h=b.placement),b.rects&&(f=b.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):b.rects),{x:a,y:u}=Bt(f,h,l)),m=-1)}return{x:a,y:u,placement:h,strategy:i,middlewareData:d}};async function it(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:f="clippingAncestors",rootBoundary:a="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=X(e,t),p=_t(d),w=c[h?u==="floating"?"reference":"floating":u],g=pt(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:f,rootBoundary:a,strategy:l})),x=u==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,A=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),y=await(r.isElement==null?void 0:r.isElement(A))?await(r.getScale==null?void 0:r.getScale(A))||{x:1,y:1}:{x:1,y:1},b=pt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:A,strategy:l}):x);return{top:(g.top-b.top+p.top)/y.y,bottom:(b.bottom-g.bottom+p.bottom)/y.y,left:(g.left-b.left+p.left)/y.x,right:(b.right-g.right+p.right)/y.x}}const Ne=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:f,padding:a=0}=X(t,e)||{};if(f==null)return{};const u=_t(a),h={x:n,y:o},d=Rt(i),p=Ot(d),m=await s.getDimensions(f),w=d==="y",g=w?"top":"left",x=w?"bottom":"right",A=w?"clientHeight":"clientWidth",y=r.reference[p]+r.reference[d]-h[d]-r.floating[p],b=h[d]-r.reference[d],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let R=P?P[A]:0;(!R||!await(s.isElement==null?void 0:s.isElement(P)))&&(R=c.floating[A]||r.floating[p]);const D=y/2-b/2,k=R/2-m[p]/2-1,T=U(u[g],k),M=U(u[x],k),$=T,C=R-m[p]-M,O=R/2-m[p]/2+D,H=vt($,O,C),S=!l.arrow&&Q(i)!=null&&O!==H&&r.reference[p]/2-(O<$?T:M)-m[p]/2<0,E=S?O<$?O-$:O-C:0;return{[d]:h[d]+E,data:{[d]:H,centerOffset:O-H-E,...S&&{alignmentOffset:E}},reset:S}}}),Fe=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:f}=e,{mainAxis:a=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...w}=X(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const g=q(i),x=Z(c),A=q(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(f.floating)),b=h||(A||!m?[dt(c)]:Te(c)),P=p!=="none";!h&&P&&b.push(...Me(c,m,p,y));const R=[c,...b],D=await it(e,w),k=[];let T=((o=r.flip)==null?void 0:o.overflows)||[];if(a&&k.push(D[g]),u){const O=De(i,s,y);k.push(D[O[0]],D[O[1]])}if(T=[...T,{placement:i,overflows:k}],!k.every(O=>O<=0)){var M,$;const O=(((M=r.flip)==null?void 0:M.index)||0)+1,H=R[O];if(H)return{data:{index:O,overflows:T},reset:{placement:H}};let S=($=T.filter(E=>E.overflows[0]<=0).sort((E,v)=>E.overflows[1]-v.overflows[1])[0])==null?void 0:$.placement;if(!S)switch(d){case"bestFit":{var C;const E=(C=T.filter(v=>{if(P){const L=Z(v.placement);return L===x||L==="y"}return!0}).map(v=>[v.placement,v.overflows.filter(L=>L>0).reduce((L,_)=>L+_,0)]).sort((v,L)=>v[1]-L[1])[0])==null?void 0:C[0];E&&(S=E);break}case"initialPlacement":S=c;break}if(i!==S)return{reset:{placement:S}}}return{}}}};function Vt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function It(t){return Ce.some(e=>t[e]>=0)}const He=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=X(t,e);switch(o){case"referenceHidden":{const r=await it(e,{...i,elementContext:"reference"}),s=Vt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:It(s)}}}case"escaped":{const r=await it(e,{...i,altBoundary:!0}),s=Vt(r,n.floating);return{data:{escapedOffsets:s,escaped:It(s)}}}default:return{}}}}};async function We(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=q(n),c=Q(n),l=Z(n)==="y",f=["left","top"].includes(s)?-1:1,a=r&&l?-1:1,u=X(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*a,y:h*f}:{x:h*f,y:d*a}}const ze=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:c}=e,l=await We(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},_e=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:x}=w;return{x:g,y:x}}},...l}=X(t,e),f={x:n,y:o},a=await it(e,l),u=Z(q(i)),h=Pt(u);let d=f[h],p=f[u];if(r){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",x=d+a[w],A=d-a[g];d=vt(x,d,A)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",x=p+a[w],A=p-a[g];p=vt(x,p,A)}const m=c.fn({...e,[h]:d,[u]:p});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[h]:r,[u]:s}}}}}},Be=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:f=!0}=X(t,e),a={x:n,y:o},u=Z(i),h=Pt(u);let d=a[h],p=a[u];const m=X(c,e),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const A=h==="y"?"height":"width",y=r.reference[h]-r.floating[A]+w.mainAxis,b=r.reference[h]+r.reference[A]-w.mainAxis;d<y?d=y:d>b&&(d=b)}if(f){var g,x;const A=h==="y"?"width":"height",y=["top","left"].includes(q(i)),b=r.reference[u]-r.floating[A]+(y&&((g=s.offset)==null?void 0:g[u])||0)+(y?0:w.crossAxis),P=r.reference[u]+r.reference[A]+(y?0:((x=s.offset)==null?void 0:x[u])||0)-(y?w.crossAxis:0);p<b?p=b:p>P&&(p=P)}return{[h]:d,[u]:p}}}},Ve=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:c}=e,{apply:l=()=>{},...f}=X(t,e),a=await it(e,f),u=q(i),h=Q(i),d=Z(i)==="y",{width:p,height:m}=r.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=h===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=h==="end"?"top":"bottom");const x=m-a.top-a.bottom,A=p-a.left-a.right,y=U(m-a[w],x),b=U(p-a[g],A),P=!e.middlewareData.shift;let R=y,D=b;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(D=A),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(R=x),P&&!h){const T=N(a.left,0),M=N(a.right,0),$=N(a.top,0),C=N(a.bottom,0);d?D=p-2*(T!==0||M!==0?T+M:N(a.left,a.right)):R=m-2*($!==0||C!==0?$+C:N(a.top,a.bottom))}await l({...e,availableWidth:D,availableHeight:R});const k=await s.getDimensions(c.floating);return p!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}};function ht(){return typeof window<"u"}function tt(t){return Yt(t)?(t.nodeName||"").toLowerCase():"#document"}function F(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function V(t){var e;return(e=(Yt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Yt(t){return ht()?t instanceof Node||t instanceof F(t).Node:!1}function W(t){return ht()?t instanceof Element||t instanceof F(t).Element:!1}function I(t){return ht()?t instanceof HTMLElement||t instanceof F(t).HTMLElement:!1}function jt(t){return!ht()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof F(t).ShadowRoot}function rt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=z(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Ie(t){return["table","td","th"].includes(tt(t))}function mt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function St(t){const e=Et(),n=W(t)?z(t):t;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ye(t){let e=K(t);for(;I(e)&&!et(e);){if(St(e))return e;if(mt(e))return null;e=K(e)}return null}function Et(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function et(t){return["html","body","#document"].includes(tt(t))}function z(t){return F(t).getComputedStyle(t)}function gt(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(tt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||jt(t)&&t.host||V(t);return jt(e)?e.host:e}function Xt(t){const e=K(t);return et(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&rt(e)?e:Xt(e)}function st(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Xt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=F(i);if(r){const c=Dt(s);return e.concat(s,s.visualViewport||[],rt(i)?i:[],c&&n?st(c):[])}return e.concat(i,st(i,[],n))}function Dt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function qt(t){const e=z(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=I(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=at(n)!==r||at(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function Tt(t){return W(t)?t:t.contextElement}function nt(t){const e=Tt(t);if(!I(e))return B(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=qt(e);let s=(r?at(n.width):n.width)/o,c=(r?at(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const je=B(0);function Ut(t){const e=F(t);return!Et()||!e.visualViewport?je:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Xe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==F(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=Tt(t);let s=B(1);e&&(o?W(o)&&(s=nt(o)):s=nt(t));const c=Xe(r,n,o)?Ut(r):B(0);let l=(i.left+c.x)/s.x,f=(i.top+c.y)/s.y,a=i.width/s.x,u=i.height/s.y;if(r){const h=F(r),d=o&&W(o)?F(o):o;let p=h,m=Dt(p);for(;m&&o&&d!==p;){const w=nt(m),g=m.getBoundingClientRect(),x=z(m),A=g.left+(m.clientLeft+parseFloat(x.paddingLeft))*w.x,y=g.top+(m.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,f*=w.y,a*=w.x,u*=w.y,l+=A,f+=y,p=F(m),m=Dt(p)}}return pt({width:a,height:u,x:l,y:f})}function Lt(t,e){const n=gt(t).scrollLeft;return e?e.left+n:G(V(t)).left+n}function Zt(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=o.left+e.scrollLeft-(n?0:Lt(t,o)),r=o.top+e.scrollTop;return{x:i,y:r}}function qe(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=V(o),c=e?mt(e.floating):!1;if(o===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},f=B(1);const a=B(0),u=I(o);if((u||!u&&!r)&&((tt(o)!=="body"||rt(s))&&(l=gt(o)),I(o))){const d=G(o);f=nt(o),a.x=d.x+o.clientLeft,a.y=d.y+o.clientTop}const h=s&&!u&&!r?Zt(s,l,!0):B(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+a.x+h.x,y:n.y*f.y-l.scrollTop*f.y+a.y+h.y}}function Ue(t){return Array.from(t.getClientRects())}function Ze(t){const e=V(t),n=gt(t),o=t.ownerDocument.body,i=N(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=N(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Lt(t);const c=-n.scrollTop;return z(o).direction==="rtl"&&(s+=N(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}function Ke(t,e){const n=F(t),o=V(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){r=i.width,s=i.height;const f=Et();(!f||f&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:c,y:l}}function Ge(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=I(t)?nt(t):B(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=i*r.x,f=o*r.y;return{width:s,height:c,x:l,y:f}}function Kt(t,e,n){let o;if(e==="viewport")o=Ke(t,n);else if(e==="document")o=Ze(V(t));else if(W(e))o=Ge(e,n);else{const i=Ut(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return pt(o)}function Gt(t,e){const n=K(t);return n===e||!W(n)||et(n)?!1:z(n).position==="fixed"||Gt(n,e)}function Je(t,e){const n=e.get(t);if(n)return n;let o=st(t,[],!1).filter(c=>W(c)&&tt(c)!=="body"),i=null;const r=z(t).position==="fixed";let s=r?K(t):t;for(;W(s)&&!et(s);){const c=z(s),l=St(s);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||rt(s)&&!l&&Gt(t,s))?o=o.filter(a=>a!==s):i=c,s=K(s)}return e.set(t,o),o}function Qe(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?mt(e)?[]:Je(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((f,a)=>{const u=Kt(e,a,i);return f.top=N(u.top,f.top),f.right=U(u.right,f.right),f.bottom=U(u.bottom,f.bottom),f.left=N(u.left,f.left),f},Kt(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function tn(t){const{width:e,height:n}=qt(t);return{width:e,height:n}}function en(t,e,n){const o=I(e),i=V(e),r=n==="fixed",s=G(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const l=B(0);if(o||!o&&!r)if((tt(e)!=="body"||rt(i))&&(c=gt(e)),o){const h=G(e,!0,r,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&(l.x=Lt(i));const f=i&&!o&&!r?Zt(i,c):B(0),a=s.left+c.scrollLeft-l.x-f.x,u=s.top+c.scrollTop-l.y-f.y;return{x:a,y:u,width:s.width,height:s.height}}function Mt(t){return z(t).position==="static"}function Jt(t,e){if(!I(t)||z(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return V(t)===n&&(n=n.ownerDocument.body),n}function Qt(t,e){const n=F(t);if(mt(t))return n;if(!I(t)){let i=K(t);for(;i&&!et(i);){if(W(i)&&!Mt(i))return i;i=K(i)}return n}let o=Jt(t,e);for(;o&&Ie(o)&&Mt(o);)o=Jt(o,e);return o&&et(o)&&Mt(o)&&!St(o)?n:o||Ye(t)||n}const nn=async function(t){const e=this.getOffsetParent||Qt,n=this.getDimensions,o=await n(t.floating);return{reference:en(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function on(t){return z(t).direction==="rtl"}const rn={convertOffsetParentRelativeRectToViewportRelativeRect:qe,getDocumentElement:V,getClippingRect:Qe,getOffsetParent:Qt,getElementRects:nn,getClientRects:Ue,getDimensions:tn,getScale:nt,isElement:W,isRTL:on};function sn(t,e){let n=null,o;const i=V(t);function r(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();const{left:f,top:a,width:u,height:h}=t.getBoundingClientRect();if(c||e(),!u||!h)return;const d=ut(a),p=ut(i.clientWidth-(f+u)),m=ut(i.clientHeight-(a+h)),w=ut(f),x={rootMargin:-d+"px "+-p+"px "+-m+"px "+-w+"px",threshold:N(0,U(1,l))||1};let A=!0;function y(b){const P=b[0].intersectionRatio;if(P!==l){if(!A)return s();P?s(!1,P):o=setTimeout(()=>{s(!1,1e-7)},1e3)}A=!1}try{n=new IntersectionObserver(y,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(y,x)}n.observe(t)}return s(!0),r}function cn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,f=Tt(t),a=i||r?[...f?st(f):[],...st(e)]:[];a.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const u=f&&c?sn(f,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(g=>{let[x]=g;x&&x.target===f&&d&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var A;(A=d)==null||A.observe(e)})),n()}),f&&!l&&d.observe(f),d.observe(e));let p,m=l?G(t):null;l&&w();function w(){const g=G(t);m&&(g.x!==m.x||g.y!==m.y||g.width!==m.width||g.height!==m.height)&&n(),m=g,p=requestAnimationFrame(w)}return n(),()=>{var g;a.forEach(x=>{i&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const ln=ze,fn=_e,an=Fe,un=Ve,dn=He,te=Ne,pn=Be,hn=(t,e,n)=>{const o=new Map,i={platform:rn,...n},r={...i.platform,_c:o};return ke(t,e,{...i,platform:r})};var wt=typeof document<"u"?Pe:Wt;function xt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!xt(t[o],e[o]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&t.$$typeof)&&!xt(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function ee(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function ne(t,e){const n=ee(t);return Math.round(e*n)/n}function $t(t){const e=J(t);return wt(()=>{e.current=t}),e}function mn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:c=!0,whileElementsMounted:l,open:f}=t,[a,u]=Y({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,d]=Y(o);xt(h,o)||d(o);const[p,m]=Y(null),[w,g]=Y(null),x=yt(v=>{v!==P.current&&(P.current=v,m(v))},[]),A=yt(v=>{v!==R.current&&(R.current=v,g(v))},[]),y=r||p,b=s||w,P=J(null),R=J(null),D=J(a),k=l!=null,T=$t(l),M=$t(i),$=$t(f),C=yt(()=>{if(!P.current||!R.current)return;const v={placement:e,strategy:n,middleware:h};M.current&&(v.platform=M.current),hn(P.current,R.current,v).then(L=>{const _={...L,isPositioned:$.current!==!1};O.current&&!xt(D.current,_)&&(D.current=_,ve(()=>{u(_)}))})},[h,e,n,M,$]);wt(()=>{f===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,u(v=>({...v,isPositioned:!1})))},[f]);const O=J(!1);wt(()=>(O.current=!0,()=>{O.current=!1}),[]),wt(()=>{if(y&&(P.current=y),b&&(R.current=b),y&&b){if(T.current)return T.current(y,b,C);C()}},[y,b,C,T,k]);const H=lt(()=>({reference:P,floating:R,setReference:x,setFloating:A}),[x,A]),S=lt(()=>({reference:y,floating:b}),[y,b]),E=lt(()=>{const v={position:n,left:0,top:0};if(!S.floating)return v;const L=ne(S.floating,a.x),_=ne(S.floating,a.y);return c?{...v,transform:"translate("+L+"px, "+_+"px)",...ee(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:_}},[n,c,S.floating,a.x,a.y]);return lt(()=>({...a,update:C,refs:H,elements:S,floatingStyles:E}),[a,C,H,S,E])}const gn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:i}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?te({element:o.current,padding:i}).fn(n):{}:o?te({element:o,padding:i}).fn(n):{}}}},wn=(t,e)=>({...ln(t),options:[t,e]}),xn=(t,e)=>({...fn(t),options:[t,e]}),yn=(t,e)=>({...pn(t),options:[t,e]}),bn=(t,e)=>({...an(t),options:[t,e]}),An=(t,e)=>({...un(t),options:[t,e]}),vn=(t,e)=>({...dn(t),options:[t,e]}),Pn=(t,e)=>({...gn(t),options:[t,e]});var On="Arrow",oe=ft((t,e)=>{const{children:n,width:o=10,height:i=5,...r}=t;return j(bt.svg,{...r,ref:e,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:j("polygon",{points:"0,0 30,0 15,10"})})});oe.displayName=On;var Rn=oe;function Cn(t){const[e,n]=Y(void 0);return At(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let s,c;if("borderBoxSize"in r){const l=r.borderBoxSize,f=Array.isArray(l)?l[0]:l;s=f.inlineSize,c=f.blockSize}else s=t.offsetWidth,c=t.offsetHeight;n({width:s,height:c})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}var kt="Popper",[ie,Sn]=Oe(kt),[En,re]=ie(kt),se=t=>{const{__scopePopper:e,children:n}=t,[o,i]=Y(null);return j(En,{scope:e,anchor:o,onAnchorChange:i,children:n})};se.displayName=kt;var ce="PopperAnchor",le=ft((t,e)=>{const{__scopePopper:n,virtualRef:o,...i}=t,r=re(ce,n),s=J(null),c=zt(e,s);return Wt(()=>{r.onAnchorChange(o?.current||s.current)}),o?null:j(bt.div,{...i,ref:c})});le.displayName=ce;var Nt="PopperContent",[Dn,Tn]=ie(Nt),fe=ft((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:f=[],collisionPadding:a=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:p,...m}=t,w=re(Nt,n),[g,x]=Y(null),A=zt(e,ot=>x(ot)),[y,b]=Y(null),P=Cn(y),R=P?.width??0,D=P?.height??0,k=o+(r!=="center"?"-"+r:""),T=typeof a=="number"?a:{top:0,right:0,bottom:0,left:0,...a},M=Array.isArray(f)?f:[f],$=M.length>0,C={padding:T,boundary:M.filter(Mn),altBoundary:$},{refs:O,floatingStyles:H,placement:S,isPositioned:E,middlewareData:v}=mn({strategy:"fixed",placement:k,whileElementsMounted:(...ot)=>cn(...ot,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[wn({mainAxis:i+D,alignmentAxis:s}),l&&xn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?yn():void 0,...C}),l&&bn({...C}),An({...C,apply:({elements:ot,rects:Ht,availableWidth:xe,availableHeight:ye})=>{const{width:be,height:Ae}=Ht.reference,ct=ot.floating.style;ct.setProperty("--radix-popper-available-width",`${xe}px`),ct.setProperty("--radix-popper-available-height",`${ye}px`),ct.setProperty("--radix-popper-anchor-width",`${be}px`),ct.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),y&&Pn({element:y,padding:c}),$n({arrowWidth:R,arrowHeight:D}),h&&vn({strategy:"referenceHidden",...C})]}),[L,_]=de(S),Ft=Re(p);At(()=>{E&&Ft?.()},[E,Ft]);const pe=v.arrow?.x,he=v.arrow?.y,me=v.arrow?.centerOffset!==0,[ge,we]=Y();return At(()=>{g&&we(window.getComputedStyle(g).zIndex)},[g]),j("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:E?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,["--radix-popper-transform-origin"]:[v.transformOrigin?.x,v.transformOrigin?.y].join(" "),...v.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:j(Dn,{scope:n,placedSide:L,onArrowChange:b,arrowX:pe,arrowY:he,shouldHideArrow:me,children:j(bt.div,{"data-side":L,"data-align":_,...m,ref:A,style:{...m.style,animation:E?void 0:"none"}})})})});fe.displayName=Nt;var ae="PopperArrow",Ln={top:"bottom",right:"left",bottom:"top",left:"right"},ue=ft(function(e,n){const{__scopePopper:o,...i}=e,r=Tn(ae,o),s=Ln[r.placedSide];return j("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:j(Rn,{...i,ref:n,style:{...i.style,display:"block"}})})});ue.displayName=ae;function Mn(t){return t!==null}var $n=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:i}=e,s=i.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[f,a]=de(n),u={start:"0%",center:"50%",end:"100%"}[a],h=(i.arrow?.x??0)+c/2,d=(i.arrow?.y??0)+l/2;let p="",m="";return f==="bottom"?(p=s?u:`${h}px`,m=`${-l}px`):f==="top"?(p=s?u:`${h}px`,m=`${o.floating.height+l}px`):f==="right"?(p=`${-l}px`,m=s?u:`${d}px`):f==="left"&&(p=`${o.floating.width+l}px`,m=s?u:`${d}px`),{data:{x:p,y:m}}}});function de(t){const[e,n="center"]=t.split("-");return[e,n]}var kn=se,Nn=le,Fn=fe,Hn=ue;export{Nn as A,Fn as C,kn as R,Hn as a,Sn as c};
@@ -1 +1 @@
1
- import{D as t,a as n}from"./register-q2a4hUWr.js";const s="Portal",r=t((a,o)=>n(a.children,{ref:o}));r.displayName=s;export{r as P};
1
+ import{D as t,a as n}from"./register-BLIUg7pP.js";const s="Portal",r=t((a,o)=>n(a.children,{ref:o}));r.displayName=s;export{r as P};
@@ -1 +1 @@
1
- import{D as i,y as x,u as c,A as P,h as q,q as O}from"./register-q2a4hUWr.js";import{c as h}from"./index-CBrz5xtv.js";import{u as E,a as U}from"./index-DzgRZJb6.js";import{a as V}from"./index-yvefsybe.js";import{D as W}from"./index-f295ldbj.js";import{o as Z,u as j}from"./Combination-CdPx-UO4.js";import{h as z,F as B}from"./index-DYlYDYIf.js";import{u as J}from"./index-DRPfs38H.js";import{c as F,A as N,C as Q,a as X,R as Y}from"./index-DhA7j2BO.js";import{P as oo}from"./index-zPiJMCx5.js";import{P as y}from"./index-2Z5UdENF.js";import{P as D}from"./index-BcreLqeQ.js";import{u as eo}from"./index-XMehPuYo.js";var _="Popover",[b,Do]=V(_,[F]),g=F(),[ro,u]=b(_),w=o=>{const{__scopePopover:n,children:t,open:a,defaultOpen:e,onOpenChange:r,modal:s=!1}=o,p=g(n),v=P(null),[f,m]=q(!1),[C=!1,l]=eo({prop:a,defaultProp:e,onChange:r});return c(Y,{...p,children:c(ro,{scope:n,contentId:J(),triggerRef:v,open:C,onOpenChange:l,onOpenToggle:O(()=>l(A=>!A),[l]),hasCustomAnchor:f,onCustomAnchorAdd:O(()=>m(!0),[]),onCustomAnchorRemove:O(()=>m(!1),[]),modal:s,children:t})})};w.displayName=_;var M="PopoverAnchor",S=i((o,n)=>{const{__scopePopover:t,...a}=o,e=u(M,t),r=g(t),{onCustomAnchorAdd:s,onCustomAnchorRemove:p}=e;return x(()=>(s(),()=>p()),[s,p]),c(N,{...r,...a,ref:n})});S.displayName=M;var T="PopoverTrigger",I=i((o,n)=>{const{__scopePopover:t,...a}=o,e=u(T,t),r=g(t),s=E(n,e.triggerRef),p=c(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":e.open,"aria-controls":e.contentId,"data-state":$(e.open),...a,ref:s,onClick:h(o.onClick,e.onOpenToggle)});return e.hasCustomAnchor?p:c(N,{asChild:!0,...r,children:p})});I.displayName=T;var R="PopoverPortal",[to,no]=b(R,{forceMount:void 0}),k=o=>{const{__scopePopover:n,forceMount:t,children:a,container:e}=o,r=u(R,n);return c(to,{scope:n,forceMount:t,children:c(y,{present:t||r.open,children:c(oo,{asChild:!0,container:e,children:a})})})};k.displayName=R;var d="PopoverContent",L=i((o,n)=>{const t=no(d,o.__scopePopover),{forceMount:a=t.forceMount,...e}=o,r=u(d,o.__scopePopover);return c(y,{present:a||r.open,children:r.modal?c(ao,{...e,ref:n}):c(so,{...e,ref:n})})});L.displayName=d;var ao=i((o,n)=>{const t=u(d,o.__scopePopover),a=P(null),e=E(n,a),r=P(!1);return x(()=>{const s=a.current;if(s)return z(s)},[]),c(Z,{as:U,allowPinchZoom:!0,children:c(G,{...o,ref:e,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:h(o.onCloseAutoFocus,s=>{s.preventDefault(),r.current||t.triggerRef.current?.focus()}),onPointerDownOutside:h(o.onPointerDownOutside,s=>{const p=s.detail.originalEvent,v=p.button===0&&p.ctrlKey===!0,f=p.button===2||v;r.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:h(o.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),so=i((o,n)=>{const t=u(d,o.__scopePopover),a=P(!1),e=P(!1);return c(G,{...o,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{o.onCloseAutoFocus?.(r),r.defaultPrevented||(a.current||t.triggerRef.current?.focus(),r.preventDefault()),a.current=!1,e.current=!1},onInteractOutside:r=>{o.onInteractOutside?.(r),r.defaultPrevented||(a.current=!0,r.detail.originalEvent.type==="pointerdown"&&(e.current=!0));const s=r.target;t.triggerRef.current?.contains(s)&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&e.current&&r.preventDefault()}})}),G=i((o,n)=>{const{__scopePopover:t,trapFocus:a,onOpenAutoFocus:e,onCloseAutoFocus:r,disableOutsidePointerEvents:s,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:f,onInteractOutside:m,...C}=o,l=u(d,t),A=g(t);return j(),c(B,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:e,onUnmountAutoFocus:r,children:c(W,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:m,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:f,onDismiss:()=>l.onOpenChange(!1),children:c(Q,{"data-state":$(l.open),role:"dialog",id:l.contentId,...A,...C,ref:n,style:{...C.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),H="PopoverClose",co=i((o,n)=>{const{__scopePopover:t,...a}=o,e=u(H,t);return c(D.button,{type:"button",...a,ref:n,onClick:h(o.onClick,()=>e.onOpenChange(!1))})});co.displayName=H;var po="PopoverArrow",K=i((o,n)=>{const{__scopePopover:t,...a}=o,e=g(t);return c(X,{...e,...a,ref:n})});K.displayName=po;function $(o){return o?"open":"closed"}var io=w,uo=S,lo=I,vo=k,fo=L,Po=K;export{uo as A,fo as C,vo as P,io as R,lo as T,Po as a};
1
+ import{D as i,y as x,u as c,A as P,h as q,q as O}from"./register-BLIUg7pP.js";import{c as h}from"./index-CBrz5xtv.js";import{u as E,a as U}from"./index-PkLLBl66.js";import{a as V}from"./index-6ACy5ofQ.js";import{D as W}from"./index-K1xvGoop.js";import{o as Z,u as j}from"./Combination-BZvuoxKZ.js";import{h as z,F as B}from"./index-Cp8wckdc.js";import{u as J}from"./index-DcfOiwBx.js";import{c as F,A as N,C as Q,a as X,R as Y}from"./index-BASQ8BvR.js";import{P as oo}from"./index-BJU8k3hC.js";import{P as y}from"./index-D4kw-DqV.js";import{P as D}from"./index-lLx4-_J9.js";import{u as eo}from"./index-XHumtRyF.js";var _="Popover",[b,Do]=V(_,[F]),g=F(),[ro,u]=b(_),w=o=>{const{__scopePopover:n,children:t,open:a,defaultOpen:e,onOpenChange:r,modal:s=!1}=o,p=g(n),v=P(null),[f,m]=q(!1),[C=!1,l]=eo({prop:a,defaultProp:e,onChange:r});return c(Y,{...p,children:c(ro,{scope:n,contentId:J(),triggerRef:v,open:C,onOpenChange:l,onOpenToggle:O(()=>l(A=>!A),[l]),hasCustomAnchor:f,onCustomAnchorAdd:O(()=>m(!0),[]),onCustomAnchorRemove:O(()=>m(!1),[]),modal:s,children:t})})};w.displayName=_;var M="PopoverAnchor",S=i((o,n)=>{const{__scopePopover:t,...a}=o,e=u(M,t),r=g(t),{onCustomAnchorAdd:s,onCustomAnchorRemove:p}=e;return x(()=>(s(),()=>p()),[s,p]),c(N,{...r,...a,ref:n})});S.displayName=M;var T="PopoverTrigger",I=i((o,n)=>{const{__scopePopover:t,...a}=o,e=u(T,t),r=g(t),s=E(n,e.triggerRef),p=c(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":e.open,"aria-controls":e.contentId,"data-state":$(e.open),...a,ref:s,onClick:h(o.onClick,e.onOpenToggle)});return e.hasCustomAnchor?p:c(N,{asChild:!0,...r,children:p})});I.displayName=T;var R="PopoverPortal",[to,no]=b(R,{forceMount:void 0}),k=o=>{const{__scopePopover:n,forceMount:t,children:a,container:e}=o,r=u(R,n);return c(to,{scope:n,forceMount:t,children:c(y,{present:t||r.open,children:c(oo,{asChild:!0,container:e,children:a})})})};k.displayName=R;var d="PopoverContent",L=i((o,n)=>{const t=no(d,o.__scopePopover),{forceMount:a=t.forceMount,...e}=o,r=u(d,o.__scopePopover);return c(y,{present:a||r.open,children:r.modal?c(ao,{...e,ref:n}):c(so,{...e,ref:n})})});L.displayName=d;var ao=i((o,n)=>{const t=u(d,o.__scopePopover),a=P(null),e=E(n,a),r=P(!1);return x(()=>{const s=a.current;if(s)return z(s)},[]),c(Z,{as:U,allowPinchZoom:!0,children:c(G,{...o,ref:e,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:h(o.onCloseAutoFocus,s=>{s.preventDefault(),r.current||t.triggerRef.current?.focus()}),onPointerDownOutside:h(o.onPointerDownOutside,s=>{const p=s.detail.originalEvent,v=p.button===0&&p.ctrlKey===!0,f=p.button===2||v;r.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:h(o.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),so=i((o,n)=>{const t=u(d,o.__scopePopover),a=P(!1),e=P(!1);return c(G,{...o,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{o.onCloseAutoFocus?.(r),r.defaultPrevented||(a.current||t.triggerRef.current?.focus(),r.preventDefault()),a.current=!1,e.current=!1},onInteractOutside:r=>{o.onInteractOutside?.(r),r.defaultPrevented||(a.current=!0,r.detail.originalEvent.type==="pointerdown"&&(e.current=!0));const s=r.target;t.triggerRef.current?.contains(s)&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&e.current&&r.preventDefault()}})}),G=i((o,n)=>{const{__scopePopover:t,trapFocus:a,onOpenAutoFocus:e,onCloseAutoFocus:r,disableOutsidePointerEvents:s,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:f,onInteractOutside:m,...C}=o,l=u(d,t),A=g(t);return j(),c(B,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:e,onUnmountAutoFocus:r,children:c(W,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:m,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:f,onDismiss:()=>l.onOpenChange(!1),children:c(Q,{"data-state":$(l.open),role:"dialog",id:l.contentId,...A,...C,ref:n,style:{...C.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),H="PopoverClose",co=i((o,n)=>{const{__scopePopover:t,...a}=o,e=u(H,t);return c(D.button,{type:"button",...a,ref:n,onClick:h(o.onClick,()=>e.onOpenChange(!1))})});co.displayName=H;var po="PopoverArrow",K=i((o,n)=>{const{__scopePopover:t,...a}=o,e=g(t);return c(X,{...e,...a,ref:n})});K.displayName=po;function $(o){return o?"open":"closed"}var io=w,uo=S,lo=I,vo=k,fo=L,Po=K;export{uo as A,fo as C,vo as P,io as R,lo as T,Po as a};
@@ -1,4 +1,4 @@
1
- import{D as u,u as i,A as g,y as _,k as A,q as K,O as U}from"./register-q2a4hUWr.js";import{c as f}from"./index-CBrz5xtv.js";import{u as h,a as Y}from"./index-DzgRZJb6.js";import{a as Z,c as j}from"./index-yvefsybe.js";import{u as P}from"./index-DRPfs38H.js";import{u as z}from"./index-XMehPuYo.js";import{D as J}from"./index-f295ldbj.js";import{h as Q,F as X}from"./index-DYlYDYIf.js";import{P as ee}from"./index-zPiJMCx5.js";import{P as y}from"./index-2Z5UdENF.js";import{P as m}from"./index-BcreLqeQ.js";import{o as te,u as oe}from"./Combination-CdPx-UO4.js";var N="Dialog",[R,ne]=Z(N),[re,l]=R(N),T=e=>{const{__scopeDialog:o,children:r,open:a,defaultOpen:n,onOpenChange:t,modal:c=!0}=e,s=g(null),p=g(null),[v=!1,C]=z({prop:a,defaultProp:n,onChange:t});return i(re,{scope:o,triggerRef:s,contentRef:p,contentId:P(),titleId:P(),descriptionId:P(),open:v,onOpenChange:C,onOpenToggle:K(()=>C(V=>!V),[C]),modal:c,children:r})};T.displayName=N;var x="DialogTrigger",b=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(x,r),t=h(o,n.triggerRef);return i(m.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":I(n.open),...a,ref:t,onClick:f(e.onClick,n.onOpenToggle)})});b.displayName=x;var O="DialogPortal",[ae,M]=R(O,{forceMount:void 0}),F=e=>{const{__scopeDialog:o,forceMount:r,children:a,container:n}=e,t=l(O,o);return i(ae,{scope:o,forceMount:r,children:U.map(a,c=>i(y,{present:r||t.open,children:i(ee,{asChild:!0,container:n,children:c})}))})};F.displayName=O;var D="DialogOverlay",S=u((e,o)=>{const r=M(D,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,t=l(D,e.__scopeDialog);return t.modal?i(y,{present:a||t.open,children:i(ie,{...n,ref:o})}):null});S.displayName=D;var ie=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(D,r);return i(te,{as:Y,allowPinchZoom:!0,shards:[n.contentRef],children:i(m.div,{"data-state":I(n.open),...a,ref:o,style:{pointerEvents:"auto",...a.style}})})}),d="DialogContent",W=u((e,o)=>{const r=M(d,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,t=l(d,e.__scopeDialog);return i(y,{present:a||t.open,children:t.modal?i(se,{...n,ref:o}):i(ce,{...n,ref:o})})});W.displayName=d;var se=u((e,o)=>{const r=l(d,e.__scopeDialog),a=g(null),n=h(o,r.contentRef,a);return _(()=>{const t=a.current;if(t)return Q(t)},[]),i(k,{...e,ref:n,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:f(e.onCloseAutoFocus,t=>{t.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:f(e.onPointerDownOutside,t=>{const c=t.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&t.preventDefault()}),onFocusOutside:f(e.onFocusOutside,t=>t.preventDefault())})}),ce=u((e,o)=>{const r=l(d,e.__scopeDialog),a=g(!1),n=g(!1);return i(k,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||r.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,t.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const c=t.target;r.triggerRef.current?.contains(c)&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&n.current&&t.preventDefault()}})}),k=u((e,o)=>{const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:n,onCloseAutoFocus:t,...c}=e,s=l(d,r),p=g(null),v=h(o,p);return oe(),i(A,{children:[i(X,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:n,onUnmountAutoFocus:t,children:i(J,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":I(s.open),...c,ref:v,onDismiss:()=>s.onOpenChange(!1)})}),i(A,{children:[i(ue,{titleId:s.titleId}),i(ge,{contentRef:p,descriptionId:s.descriptionId})]})]})}),E="DialogTitle",w=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(E,r);return i(m.h2,{id:n.titleId,...a,ref:o})});w.displayName=E;var G="DialogDescription",L=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(G,r);return i(m.p,{id:n.descriptionId,...a,ref:o})});L.displayName=G;var $="DialogClose",B=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l($,r);return i(m.button,{type:"button",...a,ref:o,onClick:f(e.onClick,()=>n.onOpenChange(!1))})});B.displayName=$;function I(e){return e?"open":"closed"}var q="DialogTitleWarning",[le,H]=j(q,{contentName:d,titleName:E,docsSlug:"dialog"}),ue=({titleId:e})=>{const o=H(q),r=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
1
+ import{D as u,u as i,A as g,y as _,k as A,q as K,O as U}from"./register-BLIUg7pP.js";import{c as f}from"./index-CBrz5xtv.js";import{u as h,a as Y}from"./index-PkLLBl66.js";import{a as Z,c as j}from"./index-6ACy5ofQ.js";import{u as P}from"./index-DcfOiwBx.js";import{u as z}from"./index-XHumtRyF.js";import{D as J}from"./index-K1xvGoop.js";import{h as Q,F as X}from"./index-Cp8wckdc.js";import{P as ee}from"./index-BJU8k3hC.js";import{P as y}from"./index-D4kw-DqV.js";import{P as m}from"./index-lLx4-_J9.js";import{o as te,u as oe}from"./Combination-BZvuoxKZ.js";var N="Dialog",[R,ne]=Z(N),[re,l]=R(N),T=e=>{const{__scopeDialog:o,children:r,open:a,defaultOpen:n,onOpenChange:t,modal:c=!0}=e,s=g(null),p=g(null),[v=!1,C]=z({prop:a,defaultProp:n,onChange:t});return i(re,{scope:o,triggerRef:s,contentRef:p,contentId:P(),titleId:P(),descriptionId:P(),open:v,onOpenChange:C,onOpenToggle:K(()=>C(V=>!V),[C]),modal:c,children:r})};T.displayName=N;var x="DialogTrigger",b=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(x,r),t=h(o,n.triggerRef);return i(m.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":I(n.open),...a,ref:t,onClick:f(e.onClick,n.onOpenToggle)})});b.displayName=x;var O="DialogPortal",[ae,M]=R(O,{forceMount:void 0}),F=e=>{const{__scopeDialog:o,forceMount:r,children:a,container:n}=e,t=l(O,o);return i(ae,{scope:o,forceMount:r,children:U.map(a,c=>i(y,{present:r||t.open,children:i(ee,{asChild:!0,container:n,children:c})}))})};F.displayName=O;var D="DialogOverlay",S=u((e,o)=>{const r=M(D,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,t=l(D,e.__scopeDialog);return t.modal?i(y,{present:a||t.open,children:i(ie,{...n,ref:o})}):null});S.displayName=D;var ie=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(D,r);return i(te,{as:Y,allowPinchZoom:!0,shards:[n.contentRef],children:i(m.div,{"data-state":I(n.open),...a,ref:o,style:{pointerEvents:"auto",...a.style}})})}),d="DialogContent",W=u((e,o)=>{const r=M(d,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,t=l(d,e.__scopeDialog);return i(y,{present:a||t.open,children:t.modal?i(se,{...n,ref:o}):i(ce,{...n,ref:o})})});W.displayName=d;var se=u((e,o)=>{const r=l(d,e.__scopeDialog),a=g(null),n=h(o,r.contentRef,a);return _(()=>{const t=a.current;if(t)return Q(t)},[]),i(k,{...e,ref:n,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:f(e.onCloseAutoFocus,t=>{t.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:f(e.onPointerDownOutside,t=>{const c=t.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&t.preventDefault()}),onFocusOutside:f(e.onFocusOutside,t=>t.preventDefault())})}),ce=u((e,o)=>{const r=l(d,e.__scopeDialog),a=g(!1),n=g(!1);return i(k,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||r.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,t.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const c=t.target;r.triggerRef.current?.contains(c)&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&n.current&&t.preventDefault()}})}),k=u((e,o)=>{const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:n,onCloseAutoFocus:t,...c}=e,s=l(d,r),p=g(null),v=h(o,p);return oe(),i(A,{children:[i(X,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:n,onUnmountAutoFocus:t,children:i(J,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":I(s.open),...c,ref:v,onDismiss:()=>s.onOpenChange(!1)})}),i(A,{children:[i(ue,{titleId:s.titleId}),i(ge,{contentRef:p,descriptionId:s.descriptionId})]})]})}),E="DialogTitle",w=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(E,r);return i(m.h2,{id:n.titleId,...a,ref:o})});w.displayName=E;var G="DialogDescription",L=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l(G,r);return i(m.p,{id:n.descriptionId,...a,ref:o})});L.displayName=G;var $="DialogClose",B=u((e,o)=>{const{__scopeDialog:r,...a}=e,n=l($,r);return i(m.button,{type:"button",...a,ref:o,onClick:f(e.onClick,()=>n.onOpenChange(!1))})});B.displayName=$;function I(e){return e?"open":"closed"}var q="DialogTitleWarning",[le,H]=j(q,{contentName:d,titleName:E,docsSlug:"dialog"}),ue=({titleId:e})=>{const o=H(q),r=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
2
2
 
3
3
  If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
4
4
 
@@ -0,0 +1 @@
1
+ import{_ as o}from"./register-BLIUg7pP.js";var a=Boolean(globalThis?.document)?o:()=>{};export{a as u};
@@ -1 +1 @@
1
- import{R as l,u as d}from"./register-q2a4hUWr.js";import{a as w}from"./index-yvefsybe.js";import{u as y,a as E}from"./index-DzgRZJb6.js";function L(i){const f=i+"CollectionProvider",[N,T]=w(f),[O,u]=N(f,{collectionRef:{current:null},itemMap:new Map}),m=c=>{const{scope:e,children:s}=c,o=l.useRef(null),t=l.useRef(new Map).current;return d(O,{scope:e,itemMap:t,collectionRef:o,children:s})};m.displayName=f;const p=i+"CollectionSlot",C=l.forwardRef((c,e)=>{const{scope:s,children:o}=c,t=u(p,s),n=y(e,t.collectionRef);return d(E,{ref:n,children:o})});C.displayName=p;const R=i+"CollectionItemSlot",S="data-radix-collection-item",M=l.forwardRef((c,e)=>{const{scope:s,children:o,...t}=c,n=l.useRef(null),I=y(e,n),r=u(R,s);return l.useLayoutEffect(()=>(r.itemMap.set(n,{ref:n,...t}),()=>void r.itemMap.delete(n))),d(E,{[S]:"",ref:I,children:o})});M.displayName=R;function _(c){const e=u(i+"CollectionConsumer",c);return l.useCallback(()=>{const o=e.collectionRef.current;if(!o)return[];const t=Array.from(((r,a)=>{const v=r.querySelectorAll("slot"),A=[...r.querySelectorAll(a)];for(const h of v)for(const x of h.assignedElements())A.push(...(x.shadowRoot??x).querySelectorAll(a));return A})(o,`[${S}]`));return Array.from(e.itemMap.values()).sort((r,a)=>t.indexOf(r.ref.current)-t.indexOf(a.ref.current))},[e.collectionRef,e.itemMap])}return[{Provider:m,Slot:C,ItemSlot:M},_,T]}export{L as c};
1
+ import{R as l,u as d}from"./register-BLIUg7pP.js";import{a as w}from"./index-6ACy5ofQ.js";import{u as y,a as E}from"./index-PkLLBl66.js";function L(i){const f=i+"CollectionProvider",[N,T]=w(f),[O,u]=N(f,{collectionRef:{current:null},itemMap:new Map}),m=c=>{const{scope:e,children:s}=c,o=l.useRef(null),t=l.useRef(new Map).current;return d(O,{scope:e,itemMap:t,collectionRef:o,children:s})};m.displayName=f;const p=i+"CollectionSlot",C=l.forwardRef((c,e)=>{const{scope:s,children:o}=c,t=u(p,s),n=y(e,t.collectionRef);return d(E,{ref:n,children:o})});C.displayName=p;const R=i+"CollectionItemSlot",S="data-radix-collection-item",M=l.forwardRef((c,e)=>{const{scope:s,children:o,...t}=c,n=l.useRef(null),I=y(e,n),r=u(R,s);return l.useLayoutEffect(()=>(r.itemMap.set(n,{ref:n,...t}),()=>void r.itemMap.delete(n))),d(E,{[S]:"",ref:I,children:o})});M.displayName=R;function _(c){const e=u(i+"CollectionConsumer",c);return l.useCallback(()=>{const o=e.collectionRef.current;if(!o)return[];const t=Array.from(((r,a)=>{const v=r.querySelectorAll("slot"),A=[...r.querySelectorAll(a)];for(const h of v)for(const x of h.assignedElements())A.push(...(x.shadowRoot??x).querySelectorAll(a));return A})(o,`[${S}]`));return Array.from(e.itemMap.values()).sort((r,a)=>t.indexOf(r.ref.current)-t.indexOf(a.ref.current))},[e.collectionRef,e.itemMap])}return[{Provider:m,Slot:C,ItemSlot:M},_,T]}export{L as c};
@@ -1 +1 @@
1
- import{D as l,u as f}from"./register-q2a4hUWr.js";import{c as m}from"./index-CBrz5xtv.js";import{u as p}from"./index-XMehPuYo.js";import{P as u}from"./index-BcreLqeQ.js";var P="Toggle",a=l((e,o)=>{const{pressed:t,defaultPressed:r=!1,onPressedChange:d,...n}=e,[s=!1,i]=p({prop:t,onChange:d,defaultProp:r});return f(u.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...n,ref:o,onClick:m(e.onClick,()=>{e.disabled||i(!s)})})});a.displayName=P;var b=a;export{b as R,a as T};
1
+ import{D as l,u as f}from"./register-BLIUg7pP.js";import{c as m}from"./index-CBrz5xtv.js";import{u as p}from"./index-XHumtRyF.js";import{P as u}from"./index-lLx4-_J9.js";var P="Toggle",a=l((e,o)=>{const{pressed:t,defaultPressed:r=!1,onPressedChange:d,...n}=e,[s=!1,i]=p({prop:t,onChange:d,defaultProp:r});return f(u.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...n,ref:o,onClick:m(e.onClick,()=>{e.disabled||i(!s)})})});a.displayName=P;var b=a;export{b as R,a as T};
@@ -1,4 +1,4 @@
1
- import{D as s,u as i,A,y as M}from"./register-q2a4hUWr.js";import{a as I}from"./index-yvefsybe.js";import{u,S as x}from"./index-DzgRZJb6.js";import{c as v,T as w,O as L,C as $,W as F,a as G,D as W,b as D,R as Y,P as q}from"./index-dNX4mZZZ.js";import{c as B}from"./index-CBrz5xtv.js";var m="AlertDialog",[H,ge]=I(m,[v]),l=v(),f=e=>{const{__scopeAlertDialog:o,...r}=e,a=l(o);return i(Y,{...a,...r,modal:!0})};f.displayName=m;var V="AlertDialogTrigger",y=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(w,{...t,...a,ref:o})});y.displayName=V;var j="AlertDialogPortal",_=e=>{const{__scopeAlertDialog:o,...r}=e,a=l(o);return i(q,{...a,...r})};_.displayName=j;var k="AlertDialogOverlay",N=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(L,{...t,...a,ref:o})});N.displayName=k;var n="AlertDialogContent",[z,J]=H(n),C=s((e,o)=>{const{__scopeAlertDialog:r,children:a,...t}=e,g=l(r),p=A(null),R=u(o,p),d=A(null);return i(F,{contentName:n,titleName:h,docsSlug:"alert-dialog",children:i(z,{scope:r,cancelRef:d,children:i($,{role:"alertdialog",...g,...t,ref:R,onOpenAutoFocus:B(t.onOpenAutoFocus,c=>{c.preventDefault(),d.current?.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[i(x,{children:a}),i(Q,{contentRef:p})]})})})});C.displayName=n;var h="AlertDialogTitle",P=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(G,{...t,...a,ref:o})});P.displayName=h;var S="AlertDialogDescription",E=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(W,{...t,...a,ref:o})});E.displayName=S;var K="AlertDialogAction",T=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(D,{...t,...a,ref:o})});T.displayName=K;var O="AlertDialogCancel",b=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,{cancelRef:t}=J(O,r),g=l(r),p=u(o,t);return i(D,{...g,...a,ref:p})});b.displayName=O;var Q=({contentRef:e})=>{const o=`\`${n}\` requires a description for the component to be accessible for screen reader users.
1
+ import{D as s,u as i,A,y as M}from"./register-BLIUg7pP.js";import{a as I}from"./index-6ACy5ofQ.js";import{u,S as x}from"./index-PkLLBl66.js";import{c as v,T as w,O as L,C as $,W as F,a as G,D as W,b as D,R as Y,P as q}from"./index-Ba1KfXEF.js";import{c as B}from"./index-CBrz5xtv.js";var m="AlertDialog",[H,ge]=I(m,[v]),l=v(),f=e=>{const{__scopeAlertDialog:o,...r}=e,a=l(o);return i(Y,{...a,...r,modal:!0})};f.displayName=m;var V="AlertDialogTrigger",y=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(w,{...t,...a,ref:o})});y.displayName=V;var j="AlertDialogPortal",_=e=>{const{__scopeAlertDialog:o,...r}=e,a=l(o);return i(q,{...a,...r})};_.displayName=j;var k="AlertDialogOverlay",N=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(L,{...t,...a,ref:o})});N.displayName=k;var n="AlertDialogContent",[z,J]=H(n),C=s((e,o)=>{const{__scopeAlertDialog:r,children:a,...t}=e,g=l(r),p=A(null),R=u(o,p),d=A(null);return i(F,{contentName:n,titleName:h,docsSlug:"alert-dialog",children:i(z,{scope:r,cancelRef:d,children:i($,{role:"alertdialog",...g,...t,ref:R,onOpenAutoFocus:B(t.onOpenAutoFocus,c=>{c.preventDefault(),d.current?.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[i(x,{children:a}),i(Q,{contentRef:p})]})})})});C.displayName=n;var h="AlertDialogTitle",P=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(G,{...t,...a,ref:o})});P.displayName=h;var S="AlertDialogDescription",E=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(W,{...t,...a,ref:o})});E.displayName=S;var K="AlertDialogAction",T=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,t=l(r);return i(D,{...t,...a,ref:o})});T.displayName=K;var O="AlertDialogCancel",b=s((e,o)=>{const{__scopeAlertDialog:r,...a}=e,{cancelRef:t}=J(O,r),g=l(r),p=u(o,t);return i(D,{...g,...a,ref:p})});b.displayName=O;var Q=({contentRef:e})=>{const o=`\`${n}\` requires a description for the component to be accessible for screen reader users.
2
2
 
3
3
  You can add a description to the \`${n}\` by passing a \`${S}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
4
4
 
@@ -1 +1 @@
1
- import{D as H,h as q,A as I,y as L,q as V,u as B}from"./register-q2a4hUWr.js";import{u as $}from"./index-DzgRZJb6.js";import{P as j}from"./index-BcreLqeQ.js";import{u as k}from"./index-CHknjjXQ.js";var O="focusScope.autoFocusOnMount",C="focusScope.autoFocusOnUnmount",P={bubbles:!1,cancelable:!0},z="FocusScope",U=H((e,n)=>{const{loop:t=!1,trapped:o=!1,onMountAutoFocus:c,onUnmountAutoFocus:l,...F}=e,[r,T]=q(null),E=k(c),w=k(l),s=I(null),d=$(n,u=>T(u)),f=I({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L(()=>{if(o){let u=function(m){if(f.paused||!r)return;const y=m.target;((h,N)=>h.getRootNode()instanceof ShadowRoot?h.getRootNode().host.contains(N):h.contains(N))(r,y)?s.current=m.target.shadowRoot?m.composedPath()[0]:m.target:v(s.current,{select:!0})},p=function(m){if(f.paused||!r)return;const y=m.relatedTarget;y!==null&&(((h,N)=>h.getRootNode()instanceof ShadowRoot?h.getRootNode().host.contains(N):h.contains(N))(r,y)||v(s.current,{select:!0}))},a=function(m){if((()=>{let h=document.activeElement;for(;h?.shadowRoot;)h=h.shadowRoot.activeElement;return h})()===document.body)for(const h of m)h.removedNodes.length>0&&v(r)};const i=r?.getRootNode()??document;i.addEventListener("focusin",u),i.addEventListener("focusout",p);const R=new MutationObserver(a);return r&&R.observe(r,{childList:!0,subtree:!0}),()=>{i.removeEventListener("focusin",u),i.removeEventListener("focusout",p),R.disconnect()}}},[o,r,f.paused]),L(()=>{if(r){W.add(f);const u=(()=>{let a=document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;return a})();if(!((a,i)=>a.getRootNode()instanceof ShadowRoot?a.getRootNode().host.contains(i):a.contains(i))(r,u)){const a=new CustomEvent(O,P);r.addEventListener(O,E),r.dispatchEvent(a),a.defaultPrevented||(G(Z(_(r)),{select:!0}),(()=>{let i=document.activeElement;for(;i?.shadowRoot;)i=i.shadowRoot.activeElement;return i})()===u&&v(r))}return()=>{r.removeEventListener(O,E),setTimeout(()=>{const a=new CustomEvent(C,P);r.addEventListener(C,w),r.dispatchEvent(a),a.defaultPrevented||v(u??document.body,{select:!0}),r.removeEventListener(C,w),W.remove(f)},0)}}},[r,E,w,f]);const S=V(u=>{if(!t&&!o||f.paused)return;const p=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,a=(()=>{let i=document.activeElement;for(;i?.shadowRoot;)i=i.shadowRoot.activeElement;return i})();if(p&&a){const i=u.currentTarget,[R,m]=J(i);R&&m?!u.shiftKey&&a===m?(u.preventDefault(),t&&v(R,{select:!0})):u.shiftKey&&a===R&&(u.preventDefault(),t&&v(m,{select:!0})):a===i&&u.preventDefault()}},[t,o,f.paused]);return B(j.div,{tabIndex:-1,...F,ref:d,onKeyDown:S})});U.displayName=z;function G(e,{select:n=!1}={}){const t=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();for(const o of e)if(v(o,{select:n}),(()=>{let c=document.activeElement;for(;c?.shadowRoot;)c=c.shadowRoot.activeElement;return c})()!==t)return}function J(e){const n=_(e),t=K(n,e),o=K(n.reverse(),e);return[t,o]}function _(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const c=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||c?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function K(e,n){for(const t of e)if(!Q(t,{upTo:n}))return t}function Q(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function X(e){return e instanceof HTMLInputElement&&"select"in e}function v(e,{select:n=!1}={}){if(e&&e.focus){const t=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();e.focus({preventScroll:!0}),e!==t&&X(e)&&n&&e.select()}}var W=Y();function Y(){let e=[];return{add(n){const t=e[0];n!==t&&t?.pause(),e=D(e,n),e.unshift(n)},remove(n){e=D(e,n),e[0]?.resume()}}}function D(e,n){const t=[...e],o=t.indexOf(n);return o!==-1&&t.splice(o,1),t}function Z(e){return e.filter(n=>n.tagName!=="A")}var ee=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},b=new WeakMap,g=new WeakMap,A={},M=0,x=function(e){return e&&(e.host||x(e.parentNode))},te=function(e,n){return n.map(function(t){if(((c,l)=>{for(;l.getRootNode()instanceof ShadowRoot;)l=l.getRootNode().host;return c.contains(l)})(e,t))return t;var o=x(t);return o&&((c,l)=>{for(;l.getRootNode()instanceof ShadowRoot;)l=l.getRootNode().host;return c.contains(l)})(e,o)?o:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return Boolean(t)})},oe=function(e,n,t,o){var c=te(n,Array.isArray(e)?e:[e]);A[t]||(A[t]=new WeakMap);var l=A[t],F=[],r=new Set,T=new Set(c),E=function(s){if(!(!s||r.has(s))){if(r.add(s),s.parentNode instanceof ShadowRoot)for(const d of s.parentNode.querySelectorAll("slot"))for(const f of d.assignedElements())r.add(f);E(s.parentNode instanceof ShadowRoot?s.parentNode.host:s.parentNode)}};c.forEach(E);var w=function(s){!s||T.has(s)||Array.prototype.forEach.call(s.children,function(d){if(r.has(d))w(d);else try{var f=d.getAttribute(o),S=f!==null&&f!=="false",u=(b.get(d)||0)+1,p=(l.get(d)||0)+1;b.set(d,u),l.set(d,p),F.push(d),u===1&&S&&g.set(d,!0),p===1&&d.setAttribute(t,"true"),S||d.setAttribute(o,"true")}catch(a){console.error("aria-hidden: cannot operate on ",d,a)}})};return w(n),r.clear(),M++,function(){F.forEach(function(s){var d=b.get(s)-1,f=l.get(s)-1;b.set(s,d),l.set(s,f),d||(g.has(s)||s.removeAttribute(o),g.delete(s)),f||s.removeAttribute(t)}),M--,M||(b=new WeakMap,b=new WeakMap,g=new WeakMap,A={})}},ne=function(e,n,t){t===void 0&&(t="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),c=n||ee(e);return c?(o.push.apply(o,Array.from(c.querySelectorAll("[aria-live]"))),oe(o,c,t,"aria-hidden")):function(){return null}};export{U as F,ne as h};
1
+ import{D as H,h as q,A as I,y as L,q as V,u as B}from"./register-BLIUg7pP.js";import{u as $}from"./index-PkLLBl66.js";import{P as j}from"./index-lLx4-_J9.js";import{u as k}from"./index-qQYeOZhj.js";var O="focusScope.autoFocusOnMount",C="focusScope.autoFocusOnUnmount",P={bubbles:!1,cancelable:!0},z="FocusScope",U=H((e,n)=>{const{loop:t=!1,trapped:o=!1,onMountAutoFocus:c,onUnmountAutoFocus:l,...F}=e,[r,T]=q(null),E=k(c),w=k(l),s=I(null),d=$(n,u=>T(u)),f=I({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L(()=>{if(o){let u=function(m){if(f.paused||!r)return;const y=m.target;((h,N)=>h.getRootNode()instanceof ShadowRoot?h.getRootNode().host.contains(N):h.contains(N))(r,y)?s.current=m.target.shadowRoot?m.composedPath()[0]:m.target:v(s.current,{select:!0})},p=function(m){if(f.paused||!r)return;const y=m.relatedTarget;y!==null&&(((h,N)=>h.getRootNode()instanceof ShadowRoot?h.getRootNode().host.contains(N):h.contains(N))(r,y)||v(s.current,{select:!0}))},a=function(m){if((()=>{let h=document.activeElement;for(;h?.shadowRoot;)h=h.shadowRoot.activeElement;return h})()===document.body)for(const h of m)h.removedNodes.length>0&&v(r)};const i=r?.getRootNode()??document;i.addEventListener("focusin",u),i.addEventListener("focusout",p);const R=new MutationObserver(a);return r&&R.observe(r,{childList:!0,subtree:!0}),()=>{i.removeEventListener("focusin",u),i.removeEventListener("focusout",p),R.disconnect()}}},[o,r,f.paused]),L(()=>{if(r){W.add(f);const u=(()=>{let a=document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;return a})();if(!((a,i)=>a.getRootNode()instanceof ShadowRoot?a.getRootNode().host.contains(i):a.contains(i))(r,u)){const a=new CustomEvent(O,P);r.addEventListener(O,E),r.dispatchEvent(a),a.defaultPrevented||(G(Z(_(r)),{select:!0}),(()=>{let i=document.activeElement;for(;i?.shadowRoot;)i=i.shadowRoot.activeElement;return i})()===u&&v(r))}return()=>{r.removeEventListener(O,E),setTimeout(()=>{const a=new CustomEvent(C,P);r.addEventListener(C,w),r.dispatchEvent(a),a.defaultPrevented||v(u??document.body,{select:!0}),r.removeEventListener(C,w),W.remove(f)},0)}}},[r,E,w,f]);const S=V(u=>{if(!t&&!o||f.paused)return;const p=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,a=(()=>{let i=document.activeElement;for(;i?.shadowRoot;)i=i.shadowRoot.activeElement;return i})();if(p&&a){const i=u.currentTarget,[R,m]=J(i);R&&m?!u.shiftKey&&a===m?(u.preventDefault(),t&&v(R,{select:!0})):u.shiftKey&&a===R&&(u.preventDefault(),t&&v(m,{select:!0})):a===i&&u.preventDefault()}},[t,o,f.paused]);return B(j.div,{tabIndex:-1,...F,ref:d,onKeyDown:S})});U.displayName=z;function G(e,{select:n=!1}={}){const t=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();for(const o of e)if(v(o,{select:n}),(()=>{let c=document.activeElement;for(;c?.shadowRoot;)c=c.shadowRoot.activeElement;return c})()!==t)return}function J(e){const n=_(e),t=K(n,e),o=K(n.reverse(),e);return[t,o]}function _(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const c=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||c?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function K(e,n){for(const t of e)if(!Q(t,{upTo:n}))return t}function Q(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function X(e){return e instanceof HTMLInputElement&&"select"in e}function v(e,{select:n=!1}={}){if(e&&e.focus){const t=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();e.focus({preventScroll:!0}),e!==t&&X(e)&&n&&e.select()}}var W=Y();function Y(){let e=[];return{add(n){const t=e[0];n!==t&&t?.pause(),e=D(e,n),e.unshift(n)},remove(n){e=D(e,n),e[0]?.resume()}}}function D(e,n){const t=[...e],o=t.indexOf(n);return o!==-1&&t.splice(o,1),t}function Z(e){return e.filter(n=>n.tagName!=="A")}var ee=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},b=new WeakMap,g=new WeakMap,A={},M=0,x=function(e){return e&&(e.host||x(e.parentNode))},te=function(e,n){return n.map(function(t){if(((c,l)=>{for(;l.getRootNode()instanceof ShadowRoot;)l=l.getRootNode().host;return c.contains(l)})(e,t))return t;var o=x(t);return o&&((c,l)=>{for(;l.getRootNode()instanceof ShadowRoot;)l=l.getRootNode().host;return c.contains(l)})(e,o)?o:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return Boolean(t)})},oe=function(e,n,t,o){var c=te(n,Array.isArray(e)?e:[e]);A[t]||(A[t]=new WeakMap);var l=A[t],F=[],r=new Set,T=new Set(c),E=function(s){if(!(!s||r.has(s))){if(r.add(s),s.parentNode instanceof ShadowRoot)for(const d of s.parentNode.querySelectorAll("slot"))for(const f of d.assignedElements())r.add(f);E(s.parentNode instanceof ShadowRoot?s.parentNode.host:s.parentNode)}};c.forEach(E);var w=function(s){!s||T.has(s)||Array.prototype.forEach.call(s.children,function(d){if(r.has(d))w(d);else try{var f=d.getAttribute(o),S=f!==null&&f!=="false",u=(b.get(d)||0)+1,p=(l.get(d)||0)+1;b.set(d,u),l.set(d,p),F.push(d),u===1&&S&&g.set(d,!0),p===1&&d.setAttribute(t,"true"),S||d.setAttribute(o,"true")}catch(a){console.error("aria-hidden: cannot operate on ",d,a)}})};return w(n),r.clear(),M++,function(){F.forEach(function(s){var d=b.get(s)-1,f=l.get(s)-1;b.set(s,d),l.set(s,f),d||(g.has(s)||s.removeAttribute(o),g.delete(s)),f||s.removeAttribute(t)}),M--,M||(b=new WeakMap,b=new WeakMap,g=new WeakMap,A={})}},ne=function(e,n,t){t===void 0&&(t="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),c=n||ee(e);return c?(o.push.apply(o,Array.from(c.querySelectorAll("[aria-live]"))),oe(o,c,t,"aria-hidden")):function(){return null}};export{U as F,ne as h};
@@ -1 +1 @@
1
- import{D as m,u as d,A as R,y as x}from"./register-q2a4hUWr.js";import{c as f}from"./index-CBrz5xtv.js";import{a as D}from"./index-yvefsybe.js";import{c as I,u as E,R as V,I as G}from"./index-DOs84oyu.js";import{P as L}from"./index-2Z5UdENF.js";import{P as p}from"./index-BcreLqeQ.js";import{u as w}from"./index-XMehPuYo.js";import{u as $}from"./index-DRPfs38H.js";var T="Tabs",[k,Y]=D(T,[I]),h=I(),[K,g]=k(T),C=m((e,n)=>{const{__scopeTabs:s,value:t,onValueChange:r,defaultValue:c,orientation:a="horizontal",dir:u,activationMode:v="automatic",...b}=e,i=E(u),[o,l]=w({prop:t,onChange:r,defaultProp:c});return d(K,{scope:s,baseId:$(),value:o,onValueChange:l,orientation:a,dir:i,activationMode:v,children:d(p.div,{dir:i,"data-orientation":a,...b,ref:n})})});C.displayName=T;var y="TabsList",A=m((e,n)=>{const{__scopeTabs:s,loop:t=!0,...r}=e,c=g(y,s),a=h(s);return d(V,{asChild:!0,...a,orientation:c.orientation,dir:c.dir,loop:t,children:d(p.div,{role:"tablist","aria-orientation":c.orientation,...r,ref:n})})});A.displayName=y;var _="TabsTrigger",P=m((e,n)=>{const{__scopeTabs:s,value:t,disabled:r=!1,...c}=e,a=g(_,s),u=h(s),v=N(a.baseId,t),b=F(a.baseId,t),i=t===a.value;return d(G,{asChild:!0,...u,focusable:!r,active:i,children:d(p.button,{type:"button",role:"tab","aria-selected":i,"aria-controls":b,"data-state":i?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:v,...c,ref:n,onMouseDown:f(e.onMouseDown,o=>{!r&&o.button===0&&o.ctrlKey===!1?a.onValueChange(t):o.preventDefault()}),onKeyDown:f(e.onKeyDown,o=>{[" ","Enter"].includes(o.key)&&a.onValueChange(t)}),onFocus:f(e.onFocus,()=>{const o=a.activationMode!=="manual";!i&&!r&&o&&a.onValueChange(t)})})})});P.displayName=_;var S="TabsContent",M=m((e,n)=>{const{__scopeTabs:s,value:t,forceMount:r,children:c,...a}=e,u=g(S,s),v=N(u.baseId,t),b=F(u.baseId,t),i=t===u.value,o=R(i);return x(()=>{const l=requestAnimationFrame(()=>o.current=!1);return()=>cancelAnimationFrame(l)},[]),d(L,{present:r||i,children:({present:l})=>d(p.div,{"data-state":i?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":v,hidden:!l,id:b,tabIndex:0,...a,ref:n,style:{...e.style,animationDuration:o.current?"0s":void 0},children:l&&c})})});M.displayName=S;function N(e,n){return`${e}-trigger-${n}`}function F(e,n){return`${e}-content-${n}`}var B=C,q=A,z=P;export{q as L,B as R,M as T,z as a};
1
+ import{D as m,u as d,A as R,y as x}from"./register-BLIUg7pP.js";import{c as f}from"./index-CBrz5xtv.js";import{a as D}from"./index-6ACy5ofQ.js";import{c as I,u as E,R as V,I as G}from"./index-Hmc_9hym.js";import{P as L}from"./index-D4kw-DqV.js";import{P as p}from"./index-lLx4-_J9.js";import{u as w}from"./index-XHumtRyF.js";import{u as $}from"./index-DcfOiwBx.js";var T="Tabs",[k,Y]=D(T,[I]),h=I(),[K,g]=k(T),C=m((e,n)=>{const{__scopeTabs:s,value:t,onValueChange:r,defaultValue:c,orientation:a="horizontal",dir:u,activationMode:v="automatic",...b}=e,i=E(u),[o,l]=w({prop:t,onChange:r,defaultProp:c});return d(K,{scope:s,baseId:$(),value:o,onValueChange:l,orientation:a,dir:i,activationMode:v,children:d(p.div,{dir:i,"data-orientation":a,...b,ref:n})})});C.displayName=T;var y="TabsList",A=m((e,n)=>{const{__scopeTabs:s,loop:t=!0,...r}=e,c=g(y,s),a=h(s);return d(V,{asChild:!0,...a,orientation:c.orientation,dir:c.dir,loop:t,children:d(p.div,{role:"tablist","aria-orientation":c.orientation,...r,ref:n})})});A.displayName=y;var _="TabsTrigger",P=m((e,n)=>{const{__scopeTabs:s,value:t,disabled:r=!1,...c}=e,a=g(_,s),u=h(s),v=N(a.baseId,t),b=F(a.baseId,t),i=t===a.value;return d(G,{asChild:!0,...u,focusable:!r,active:i,children:d(p.button,{type:"button",role:"tab","aria-selected":i,"aria-controls":b,"data-state":i?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:v,...c,ref:n,onMouseDown:f(e.onMouseDown,o=>{!r&&o.button===0&&o.ctrlKey===!1?a.onValueChange(t):o.preventDefault()}),onKeyDown:f(e.onKeyDown,o=>{[" ","Enter"].includes(o.key)&&a.onValueChange(t)}),onFocus:f(e.onFocus,()=>{const o=a.activationMode!=="manual";!i&&!r&&o&&a.onValueChange(t)})})})});P.displayName=_;var S="TabsContent",M=m((e,n)=>{const{__scopeTabs:s,value:t,forceMount:r,children:c,...a}=e,u=g(S,s),v=N(u.baseId,t),b=F(u.baseId,t),i=t===u.value,o=R(i);return x(()=>{const l=requestAnimationFrame(()=>o.current=!1);return()=>cancelAnimationFrame(l)},[]),d(L,{present:r||i,children:({present:l})=>d(p.div,{"data-state":i?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":v,hidden:!l,id:b,tabIndex:0,...a,ref:n,style:{...e.style,animationDuration:o.current?"0s":void 0},children:l&&c})})});M.displayName=S;function N(e,n){return`${e}-trigger-${n}`}function F(e,n){return`${e}-content-${n}`}var B=C,q=A,z=P;export{q as L,B as R,M as T,z as a};
@@ -1 +1 @@
1
- import{O as T,a as P,h as v,A as N,y as E,q as w,d as I}from"./register-q2a4hUWr.js";import{u as U}from"./index-DzgRZJb6.js";import{u as A}from"./index-DNCHaYVz.js";function h(e,n){return I((t,r)=>n[t][r]??t,e)}var M=e=>{const{present:n,children:t}=e,r=R(n),s=typeof t=="function"?t({present:r.isPresent}):T.only(t),c=U(r.ref,S(s));return typeof t=="function"||r.isPresent?P(s,{ref:c}):null};M.displayName="Presence";function R(e){const[n,t]=v(),r=N({}),s=N(e),c=N("none"),p=e?"mounted":"unmounted",[l,o]=h(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E(()=>{const i=f(r.current);c.current=l==="mounted"?i:"none"},[l]),A(()=>{const i=r.current,u=s.current;if(u!==e){const d=c.current,a=f(i);e?o("MOUNT"):a==="none"||i?.display==="none"?o("UNMOUNT"):o(u&&d!==a?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,o]),A(()=>{if(n){let i;const u=n.ownerDocument.defaultView??window,m=a=>{const O=f(r.current).includes(a.animationName);if(a.target===n&&O&&(o("ANIMATION_END"),!s.current)){const y=n.style.animationFillMode;n.style.animationFillMode="forwards",i=u.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=y)})}},d=a=>{a.target===n&&(c.current=f(r.current))};return n.addEventListener("animationstart",d),n.addEventListener("animationcancel",m),n.addEventListener("animationend",m),()=>{u.clearTimeout(i),n.removeEventListener("animationstart",d),n.removeEventListener("animationcancel",m),n.removeEventListener("animationend",m)}}else o("ANIMATION_END")},[n,o]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:w(i=>{i&&(r.current=getComputedStyle(i)),t(i)},[])}}function f(e){return e?.animationName||"none"}function S(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}export{M as P};
1
+ import{O as T,a as P,h as v,A as N,y as E,q as w,d as I}from"./register-BLIUg7pP.js";import{u as U}from"./index-PkLLBl66.js";import{u as A}from"./index-BkT6ELCn.js";function h(e,n){return I((t,r)=>n[t][r]??t,e)}var M=e=>{const{present:n,children:t}=e,r=R(n),s=typeof t=="function"?t({present:r.isPresent}):T.only(t),c=U(r.ref,S(s));return typeof t=="function"||r.isPresent?P(s,{ref:c}):null};M.displayName="Presence";function R(e){const[n,t]=v(),r=N({}),s=N(e),c=N("none"),p=e?"mounted":"unmounted",[l,o]=h(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E(()=>{const i=f(r.current);c.current=l==="mounted"?i:"none"},[l]),A(()=>{const i=r.current,u=s.current;if(u!==e){const d=c.current,a=f(i);e?o("MOUNT"):a==="none"||i?.display==="none"?o("UNMOUNT"):o(u&&d!==a?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,o]),A(()=>{if(n){let i;const u=n.ownerDocument.defaultView??window,m=a=>{const O=f(r.current).includes(a.animationName);if(a.target===n&&O&&(o("ANIMATION_END"),!s.current)){const y=n.style.animationFillMode;n.style.animationFillMode="forwards",i=u.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=y)})}},d=a=>{a.target===n&&(c.current=f(r.current))};return n.addEventListener("animationstart",d),n.addEventListener("animationcancel",m),n.addEventListener("animationend",m),()=>{u.clearTimeout(i),n.removeEventListener("animationstart",d),n.removeEventListener("animationcancel",m),n.removeEventListener("animationend",m)}}else o("ANIMATION_END")},[n,o]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:w(i=>{i&&(r.current=getComputedStyle(i)),t(i)},[])}}function f(e){return e?.animationName||"none"}function S(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}export{M as P};
@@ -0,0 +1 @@
1
+ import{h as a,c as e}from"./register-BLIUg7pP.js";import{u as f}from"./index-BkT6ELCn.js";var n=e["useId".toString()]||(()=>{}),s=0;function c(o){const[t,u]=a(n());return f(()=>{o||u(r=>r??String(s++))},[o]),o||(t?`radix-${t}`:"")}export{c as u};
@@ -1 +1 @@
1
- import{D as e,u as o}from"./register-q2a4hUWr.js";import{P as t}from"./index-BcreLqeQ.js";var d="VisuallyHidden",r=e((i,a)=>o(t.span,{...i,ref:a,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...i.style}}));r.displayName=d;var l=r;export{l as R,r as V};
1
+ import{D as e,u as o}from"./register-BLIUg7pP.js";import{P as t}from"./index-lLx4-_J9.js";var d="VisuallyHidden",r=e((i,a)=>o(t.span,{...i,ref:a,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...i.style}}));r.displayName=d;var l=r;export{l as R,r as V};
@@ -1 +1 @@
1
- import{h as V,A as R,u as c,q as X,D as S,y as F,T as Ce,$ as xe,k as re}from"./register-q2a4hUWr.js";import{c as g}from"./index-CBrz5xtv.js";import{u as se}from"./index-DzgRZJb6.js";import{c as Re}from"./index-BR94Y7UD.js";import{a as be}from"./index-yvefsybe.js";import{B as ge,R as Se}from"./index-f295ldbj.js";import{P as Ae}from"./index-zPiJMCx5.js";import{P as Ie}from"./index-2Z5UdENF.js";import{P as D,d as _e}from"./index-BcreLqeQ.js";import{u as $}from"./index-CHknjjXQ.js";import{u as Fe}from"./index-XMehPuYo.js";import{u as De}from"./index-DNCHaYVz.js";import{V as ae}from"./index-CJ8wiK9w.js";var z="ToastProvider",[G,Ne,Le]=Re("Toast"),[ie,vt]=be("Toast",[Le]),[Oe,Y]=ie(z),ce=t=>{const{__scopeToast:n,label:o="Notification",duration:e=5e3,swipeDirection:i="right",swipeThreshold:l=50,children:d}=t,[m,w]=V(null),[a,x]=V(0),E=R(!1),N=R(!1);return o.trim()||console.error(`Invalid prop \`label\` supplied to \`${z}\`. Expected non-empty \`string\`.`),c(G.Provider,{scope:n,children:c(Oe,{scope:n,label:o,duration:e,swipeDirection:i,swipeThreshold:l,toastCount:a,viewport:m,onViewportChange:w,onToastAdd:X(()=>x(I=>I+1),[]),onToastRemove:X(()=>x(I=>I-1),[]),isFocusedToastEscapeKeyDownRef:E,isClosePausedRef:N,children:d})})};ce.displayName=z;var ue="ToastViewport",Me=["F8"],J="toast.viewportPause",Q="toast.viewportResume",le=S((t,n)=>{const{__scopeToast:o,hotkey:e=Me,label:i="Notifications ({hotkey})",...l}=t,d=Y(ue,o),m=Ne(o),w=R(null),a=R(null),x=R(null),E=R(null),N=se(n,E,d.onViewportChange),I=e.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=d.toastCount>0;F(()=>{const s=y=>{e.length!==0&&e.every(f=>y[f]||y.code===f)&&E.current?.focus()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e]),F(()=>{const s=w.current,y=E.current;if(_&&s&&y){const p=()=>{if(!d.isClosePausedRef.current){const T=new CustomEvent(J);y.dispatchEvent(T),d.isClosePausedRef.current=!0}},f=()=>{if(d.isClosePausedRef.current){const T=new CustomEvent(Q);y.dispatchEvent(T),d.isClosePausedRef.current=!1}},h=T=>{!s.contains(T.relatedTarget)&&f()},P=()=>{s.contains((()=>{let b=document.activeElement;for(;b?.shadowRoot;)b=b.shadowRoot.activeElement;return b})())||f()};return s.addEventListener("focusin",p),s.addEventListener("focusout",h),s.addEventListener("pointermove",p),s.addEventListener("pointerleave",P),window.addEventListener("blur",p),window.addEventListener("focus",f),()=>{s.removeEventListener("focusin",p),s.removeEventListener("focusout",h),s.removeEventListener("pointermove",p),s.removeEventListener("pointerleave",P),window.removeEventListener("blur",p),window.removeEventListener("focus",f)}}},[_,d.isClosePausedRef]);const u=X(({tabbingDirection:s})=>{const p=m().map(f=>{const h=f.ref.current,P=[h,...Ge(h)];return s==="forwards"?P:P.reverse()});return(s==="forwards"?p.reverse():p).flat()},[m]);return F(()=>{const s=E.current;if(s){const y=p=>{const f=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!f){const P=(()=>{let C=document.activeElement;for(;C?.shadowRoot;)C=C.shadowRoot.activeElement;return C})(),T=p.shiftKey;if(p.target===s&&T){a.current?.focus();return}const L=u({tabbingDirection:T?"backwards":"forwards"}),K=L.findIndex(C=>C===P);te(L.slice(K+1))?p.preventDefault():T?a.current?.focus():x.current?.focus()}};return s.addEventListener("keydown",y),()=>s.removeEventListener("keydown",y)}},[m,u]),c(ge,{ref:w,role:"region","aria-label":i.replace("{hotkey}",I),tabIndex:-1,style:{pointerEvents:_?void 0:"none"},children:[_&&c(Z,{ref:a,onFocusFromOutsideViewport:()=>{const s=u({tabbingDirection:"forwards"});te(s)}}),c(G.Slot,{scope:o,children:c(D.ol,{tabIndex:-1,...l,ref:N})}),_&&c(Z,{ref:x,onFocusFromOutsideViewport:()=>{const s=u({tabbingDirection:"backwards"});te(s)}})]})});le.displayName=ue;var de="ToastFocusProxy",Z=S((t,n)=>{const{__scopeToast:o,onFocusFromOutsideViewport:e,...i}=t,l=Y(de,o);return c(ae,{"aria-hidden":!0,tabIndex:0,...i,ref:n,style:{position:"fixed"},onFocus:d=>{const m=d.relatedTarget;!l.viewport?.contains(m)&&e()}})});Z.displayName=de;var B="Toast",Ve="toast.swipeStart",ke="toast.swipeMove",Ke="toast.swipeCancel",He="toast.swipeEnd",pe=S((t,n)=>{const{forceMount:o,open:e,defaultOpen:i,onOpenChange:l,...d}=t,[m=!0,w]=Fe({prop:e,defaultProp:i,onChange:l});return c(Ie,{present:o||m,children:c(Xe,{open:m,...d,ref:n,onClose:()=>w(!1),onPause:$(t.onPause),onResume:$(t.onResume),onSwipeStart:g(t.onSwipeStart,a=>{a.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:g(t.onSwipeMove,a=>{const{x,y:E}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","move"),a.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${x}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${E}px`)}),onSwipeCancel:g(t.onSwipeCancel,a=>{a.currentTarget.setAttribute("data-swipe","cancel"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:g(t.onSwipeEnd,a=>{const{x,y:E}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","end"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${x}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${E}px`),w(!1)})})})});pe.displayName=B;var[We,Ue]=ie(B,{onClose(){}}),Xe=S((t,n)=>{const{__scopeToast:o,type:e="foreground",duration:i,open:l,onClose:d,onEscapeKeyDown:m,onPause:w,onResume:a,onSwipeStart:x,onSwipeMove:E,onSwipeCancel:N,onSwipeEnd:I,..._}=t,u=Y(B,o),[s,y]=V(null),p=se(n,r=>y(r)),f=R(null),h=R(null),P=i||u.duration,T=R(0),b=R(P),k=R(0),{onToastAdd:L,onToastRemove:K}=u,C=$(()=>{s?.contains((()=>{let v=document.activeElement;for(;v?.shadowRoot;)v=v.shadowRoot.activeElement;return v})())&&u.viewport?.focus(),d()}),H=X(r=>{!r||r===1/0||(window.clearTimeout(k.current),T.current=new Date().getTime(),k.current=window.setTimeout(C,r))},[C]);F(()=>{const r=u.viewport;if(r){const v=()=>{H(b.current),a?.()},A=()=>{const O=new Date().getTime()-T.current;b.current=b.current-O,window.clearTimeout(k.current),w?.()};return r.addEventListener(J,A),r.addEventListener(Q,v),()=>{r.removeEventListener(J,A),r.removeEventListener(Q,v)}}},[u.viewport,P,w,a,H]),F(()=>{l&&!u.isClosePausedRef.current&&H(P)},[l,P,u.isClosePausedRef,H]),F(()=>(L(),()=>K()),[L,K]);const oe=Ce(()=>s?Ee(s):null,[s]);return u.viewport?c(re,{children:[oe&&c($e,{__scopeToast:o,role:"status","aria-live":e==="foreground"?"assertive":"polite","aria-atomic":!0,children:oe}),c(We,{scope:o,onClose:C,children:xe(c(G.ItemSlot,{scope:o,children:c(Se,{asChild:!0,onEscapeKeyDown:g(m,()=>{u.isFocusedToastEscapeKeyDownRef.current||C(),u.isFocusedToastEscapeKeyDownRef.current=!1}),children:c(D.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":u.swipeDirection,..._,ref:p,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:g(t.onKeyDown,r=>{r.key==="Escape"&&(m?.(r.nativeEvent),r.nativeEvent.defaultPrevented||(u.isFocusedToastEscapeKeyDownRef.current=!0,C()))}),onPointerDown:g(t.onPointerDown,r=>{r.button===0&&(f.current={x:r.clientX,y:r.clientY})}),onPointerMove:g(t.onPointerMove,r=>{if(!f.current)return;const v=r.clientX-f.current.x,A=r.clientY-f.current.y,O=Boolean(h.current),M=["left","right"].includes(u.swipeDirection),W=["left","up"].includes(u.swipeDirection)?Math.min:Math.max,he=M?W(0,v):0,Pe=M?0:W(0,A),j=r.pointerType==="touch"?10:2,U={x:he,y:Pe},ne={originalEvent:r,delta:U};O?(h.current=U,q(ke,E,ne,{discrete:!1})):ye(U,u.swipeDirection,j)?(h.current=U,q(Ve,x,ne,{discrete:!1}),r.target.setPointerCapture(r.pointerId)):(Math.abs(v)>j||Math.abs(A)>j)&&(f.current=null)}),onPointerUp:g(t.onPointerUp,r=>{const v=h.current,A=r.target;if(A.hasPointerCapture(r.pointerId)&&A.releasePointerCapture(r.pointerId),h.current=null,f.current=null,v){const O=r.currentTarget,M={originalEvent:r,delta:v};ye(v,u.swipeDirection,u.swipeThreshold)?q(He,I,M,{discrete:!0}):q(Ke,N,M,{discrete:!0}),O.addEventListener("click",W=>W.preventDefault(),{once:!0})}})})})}),u.viewport)})]}):null}),$e=t=>{const{__scopeToast:n,children:o,...e}=t,i=Y(B,n),[l,d]=V(!1),[m,w]=V(!1);return je(()=>d(!0)),F(()=>{const a=window.setTimeout(()=>w(!0),1e3);return()=>window.clearTimeout(a)},[]),m?null:c(Ae,{asChild:!0,children:c(ae,{...e,children:l&&c(re,{children:[i.label," ",o]})})})},Ye="ToastTitle",fe=S((t,n)=>{const{__scopeToast:o,...e}=t;return c(D.div,{...e,ref:n})});fe.displayName=Ye;var Be="ToastDescription",qe=S((t,n)=>{const{__scopeToast:o,...e}=t;return c(D.div,{...e,ref:n})});qe.displayName=Be;var me="ToastAction",ve=S((t,n)=>{const{altText:o,...e}=t;return o.trim()?c(Te,{altText:o,asChild:!0,children:c(ee,{...e,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${me}\`. Expected non-empty \`string\`.`),null)});ve.displayName=me;var we="ToastClose",ee=S((t,n)=>{const{__scopeToast:o,...e}=t,i=Ue(we,o);return c(Te,{asChild:!0,children:c(D.button,{type:"button",...e,ref:n,onClick:g(t.onClick,i.onClose)})})});ee.displayName=we;var Te=S((t,n)=>{const{__scopeToast:o,altText:e,...i}=t;return c(D.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":e||void 0,...i,ref:n})});function Ee(t){const n=[];return Array.from(t.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&n.push(e.textContent),ze(e)){const i=e.ariaHidden||e.hidden||e.style.display==="none",l=e.dataset.radixToastAnnounceExclude==="";if(!i)if(l){const d=e.dataset.radixToastAnnounceAlt;d&&n.push(d)}else n.push(...Ee(e))}}),n}function q(t,n,o,{discrete:e}){const i=o.originalEvent.currentTarget,l=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:o});n&&i.addEventListener(t,n,{once:!0}),e?_e(i,l):i.dispatchEvent(l)}var ye=(t,n,o=0)=>{const e=Math.abs(t.x),i=Math.abs(t.y),l=e>i;return n==="left"||n==="right"?l&&e>o:!l&&i>o};function je(t=()=>{}){const n=$(t);De(()=>{let o=0,e=0;return o=window.requestAnimationFrame(()=>e=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(o),window.cancelAnimationFrame(e)}},[n])}function ze(t){return t.nodeType===t.ELEMENT_NODE}function Ge(t){const n=[],o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const i=e.tagName==="INPUT"&&e.type==="hidden";return e.disabled||e.hidden||i?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n}function te(t){const n=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();return t.some(o=>o===n?!0:(o.focus(),(()=>{let e=document.activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e})()!==n))}var Je=le,Qe=pe,Ze=fe,et=ve,tt=ee;export{et as A,tt as C,Qe as R,ce as T,Je as V,Ze as a};
1
+ import{h as V,A as R,u as c,q as X,D as S,y as F,T as Ce,$ as xe,k as re}from"./register-BLIUg7pP.js";import{c as g}from"./index-CBrz5xtv.js";import{u as se}from"./index-PkLLBl66.js";import{c as Re}from"./index-CSwaLeaf.js";import{a as be}from"./index-6ACy5ofQ.js";import{B as ge,R as Se}from"./index-K1xvGoop.js";import{P as Ae}from"./index-BJU8k3hC.js";import{P as Ie}from"./index-D4kw-DqV.js";import{P as D,d as _e}from"./index-lLx4-_J9.js";import{u as $}from"./index-qQYeOZhj.js";import{u as Fe}from"./index-XHumtRyF.js";import{u as De}from"./index-BkT6ELCn.js";import{V as ae}from"./index-DcqyAQ_O.js";var z="ToastProvider",[G,Ne,Le]=Re("Toast"),[ie,vt]=be("Toast",[Le]),[Oe,Y]=ie(z),ce=t=>{const{__scopeToast:n,label:o="Notification",duration:e=5e3,swipeDirection:i="right",swipeThreshold:l=50,children:d}=t,[m,w]=V(null),[a,x]=V(0),E=R(!1),N=R(!1);return o.trim()||console.error(`Invalid prop \`label\` supplied to \`${z}\`. Expected non-empty \`string\`.`),c(G.Provider,{scope:n,children:c(Oe,{scope:n,label:o,duration:e,swipeDirection:i,swipeThreshold:l,toastCount:a,viewport:m,onViewportChange:w,onToastAdd:X(()=>x(I=>I+1),[]),onToastRemove:X(()=>x(I=>I-1),[]),isFocusedToastEscapeKeyDownRef:E,isClosePausedRef:N,children:d})})};ce.displayName=z;var ue="ToastViewport",Me=["F8"],J="toast.viewportPause",Q="toast.viewportResume",le=S((t,n)=>{const{__scopeToast:o,hotkey:e=Me,label:i="Notifications ({hotkey})",...l}=t,d=Y(ue,o),m=Ne(o),w=R(null),a=R(null),x=R(null),E=R(null),N=se(n,E,d.onViewportChange),I=e.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=d.toastCount>0;F(()=>{const s=y=>{e.length!==0&&e.every(f=>y[f]||y.code===f)&&E.current?.focus()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e]),F(()=>{const s=w.current,y=E.current;if(_&&s&&y){const p=()=>{if(!d.isClosePausedRef.current){const T=new CustomEvent(J);y.dispatchEvent(T),d.isClosePausedRef.current=!0}},f=()=>{if(d.isClosePausedRef.current){const T=new CustomEvent(Q);y.dispatchEvent(T),d.isClosePausedRef.current=!1}},h=T=>{!s.contains(T.relatedTarget)&&f()},P=()=>{s.contains((()=>{let b=document.activeElement;for(;b?.shadowRoot;)b=b.shadowRoot.activeElement;return b})())||f()};return s.addEventListener("focusin",p),s.addEventListener("focusout",h),s.addEventListener("pointermove",p),s.addEventListener("pointerleave",P),window.addEventListener("blur",p),window.addEventListener("focus",f),()=>{s.removeEventListener("focusin",p),s.removeEventListener("focusout",h),s.removeEventListener("pointermove",p),s.removeEventListener("pointerleave",P),window.removeEventListener("blur",p),window.removeEventListener("focus",f)}}},[_,d.isClosePausedRef]);const u=X(({tabbingDirection:s})=>{const p=m().map(f=>{const h=f.ref.current,P=[h,...Ge(h)];return s==="forwards"?P:P.reverse()});return(s==="forwards"?p.reverse():p).flat()},[m]);return F(()=>{const s=E.current;if(s){const y=p=>{const f=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!f){const P=(()=>{let C=document.activeElement;for(;C?.shadowRoot;)C=C.shadowRoot.activeElement;return C})(),T=p.shiftKey;if(p.target===s&&T){a.current?.focus();return}const L=u({tabbingDirection:T?"backwards":"forwards"}),K=L.findIndex(C=>C===P);te(L.slice(K+1))?p.preventDefault():T?a.current?.focus():x.current?.focus()}};return s.addEventListener("keydown",y),()=>s.removeEventListener("keydown",y)}},[m,u]),c(ge,{ref:w,role:"region","aria-label":i.replace("{hotkey}",I),tabIndex:-1,style:{pointerEvents:_?void 0:"none"},children:[_&&c(Z,{ref:a,onFocusFromOutsideViewport:()=>{const s=u({tabbingDirection:"forwards"});te(s)}}),c(G.Slot,{scope:o,children:c(D.ol,{tabIndex:-1,...l,ref:N})}),_&&c(Z,{ref:x,onFocusFromOutsideViewport:()=>{const s=u({tabbingDirection:"backwards"});te(s)}})]})});le.displayName=ue;var de="ToastFocusProxy",Z=S((t,n)=>{const{__scopeToast:o,onFocusFromOutsideViewport:e,...i}=t,l=Y(de,o);return c(ae,{"aria-hidden":!0,tabIndex:0,...i,ref:n,style:{position:"fixed"},onFocus:d=>{const m=d.relatedTarget;!l.viewport?.contains(m)&&e()}})});Z.displayName=de;var B="Toast",Ve="toast.swipeStart",ke="toast.swipeMove",Ke="toast.swipeCancel",He="toast.swipeEnd",pe=S((t,n)=>{const{forceMount:o,open:e,defaultOpen:i,onOpenChange:l,...d}=t,[m=!0,w]=Fe({prop:e,defaultProp:i,onChange:l});return c(Ie,{present:o||m,children:c(Xe,{open:m,...d,ref:n,onClose:()=>w(!1),onPause:$(t.onPause),onResume:$(t.onResume),onSwipeStart:g(t.onSwipeStart,a=>{a.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:g(t.onSwipeMove,a=>{const{x,y:E}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","move"),a.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${x}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${E}px`)}),onSwipeCancel:g(t.onSwipeCancel,a=>{a.currentTarget.setAttribute("data-swipe","cancel"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:g(t.onSwipeEnd,a=>{const{x,y:E}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","end"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${x}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${E}px`),w(!1)})})})});pe.displayName=B;var[We,Ue]=ie(B,{onClose(){}}),Xe=S((t,n)=>{const{__scopeToast:o,type:e="foreground",duration:i,open:l,onClose:d,onEscapeKeyDown:m,onPause:w,onResume:a,onSwipeStart:x,onSwipeMove:E,onSwipeCancel:N,onSwipeEnd:I,..._}=t,u=Y(B,o),[s,y]=V(null),p=se(n,r=>y(r)),f=R(null),h=R(null),P=i||u.duration,T=R(0),b=R(P),k=R(0),{onToastAdd:L,onToastRemove:K}=u,C=$(()=>{s?.contains((()=>{let v=document.activeElement;for(;v?.shadowRoot;)v=v.shadowRoot.activeElement;return v})())&&u.viewport?.focus(),d()}),H=X(r=>{!r||r===1/0||(window.clearTimeout(k.current),T.current=new Date().getTime(),k.current=window.setTimeout(C,r))},[C]);F(()=>{const r=u.viewport;if(r){const v=()=>{H(b.current),a?.()},A=()=>{const O=new Date().getTime()-T.current;b.current=b.current-O,window.clearTimeout(k.current),w?.()};return r.addEventListener(J,A),r.addEventListener(Q,v),()=>{r.removeEventListener(J,A),r.removeEventListener(Q,v)}}},[u.viewport,P,w,a,H]),F(()=>{l&&!u.isClosePausedRef.current&&H(P)},[l,P,u.isClosePausedRef,H]),F(()=>(L(),()=>K()),[L,K]);const oe=Ce(()=>s?Ee(s):null,[s]);return u.viewport?c(re,{children:[oe&&c($e,{__scopeToast:o,role:"status","aria-live":e==="foreground"?"assertive":"polite","aria-atomic":!0,children:oe}),c(We,{scope:o,onClose:C,children:xe(c(G.ItemSlot,{scope:o,children:c(Se,{asChild:!0,onEscapeKeyDown:g(m,()=>{u.isFocusedToastEscapeKeyDownRef.current||C(),u.isFocusedToastEscapeKeyDownRef.current=!1}),children:c(D.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":u.swipeDirection,..._,ref:p,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:g(t.onKeyDown,r=>{r.key==="Escape"&&(m?.(r.nativeEvent),r.nativeEvent.defaultPrevented||(u.isFocusedToastEscapeKeyDownRef.current=!0,C()))}),onPointerDown:g(t.onPointerDown,r=>{r.button===0&&(f.current={x:r.clientX,y:r.clientY})}),onPointerMove:g(t.onPointerMove,r=>{if(!f.current)return;const v=r.clientX-f.current.x,A=r.clientY-f.current.y,O=Boolean(h.current),M=["left","right"].includes(u.swipeDirection),W=["left","up"].includes(u.swipeDirection)?Math.min:Math.max,he=M?W(0,v):0,Pe=M?0:W(0,A),j=r.pointerType==="touch"?10:2,U={x:he,y:Pe},ne={originalEvent:r,delta:U};O?(h.current=U,q(ke,E,ne,{discrete:!1})):ye(U,u.swipeDirection,j)?(h.current=U,q(Ve,x,ne,{discrete:!1}),r.target.setPointerCapture(r.pointerId)):(Math.abs(v)>j||Math.abs(A)>j)&&(f.current=null)}),onPointerUp:g(t.onPointerUp,r=>{const v=h.current,A=r.target;if(A.hasPointerCapture(r.pointerId)&&A.releasePointerCapture(r.pointerId),h.current=null,f.current=null,v){const O=r.currentTarget,M={originalEvent:r,delta:v};ye(v,u.swipeDirection,u.swipeThreshold)?q(He,I,M,{discrete:!0}):q(Ke,N,M,{discrete:!0}),O.addEventListener("click",W=>W.preventDefault(),{once:!0})}})})})}),u.viewport)})]}):null}),$e=t=>{const{__scopeToast:n,children:o,...e}=t,i=Y(B,n),[l,d]=V(!1),[m,w]=V(!1);return je(()=>d(!0)),F(()=>{const a=window.setTimeout(()=>w(!0),1e3);return()=>window.clearTimeout(a)},[]),m?null:c(Ae,{asChild:!0,children:c(ae,{...e,children:l&&c(re,{children:[i.label," ",o]})})})},Ye="ToastTitle",fe=S((t,n)=>{const{__scopeToast:o,...e}=t;return c(D.div,{...e,ref:n})});fe.displayName=Ye;var Be="ToastDescription",qe=S((t,n)=>{const{__scopeToast:o,...e}=t;return c(D.div,{...e,ref:n})});qe.displayName=Be;var me="ToastAction",ve=S((t,n)=>{const{altText:o,...e}=t;return o.trim()?c(Te,{altText:o,asChild:!0,children:c(ee,{...e,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${me}\`. Expected non-empty \`string\`.`),null)});ve.displayName=me;var we="ToastClose",ee=S((t,n)=>{const{__scopeToast:o,...e}=t,i=Ue(we,o);return c(Te,{asChild:!0,children:c(D.button,{type:"button",...e,ref:n,onClick:g(t.onClick,i.onClose)})})});ee.displayName=we;var Te=S((t,n)=>{const{__scopeToast:o,altText:e,...i}=t;return c(D.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":e||void 0,...i,ref:n})});function Ee(t){const n=[];return Array.from(t.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&n.push(e.textContent),ze(e)){const i=e.ariaHidden||e.hidden||e.style.display==="none",l=e.dataset.radixToastAnnounceExclude==="";if(!i)if(l){const d=e.dataset.radixToastAnnounceAlt;d&&n.push(d)}else n.push(...Ee(e))}}),n}function q(t,n,o,{discrete:e}){const i=o.originalEvent.currentTarget,l=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:o});n&&i.addEventListener(t,n,{once:!0}),e?_e(i,l):i.dispatchEvent(l)}var ye=(t,n,o=0)=>{const e=Math.abs(t.x),i=Math.abs(t.y),l=e>i;return n==="left"||n==="right"?l&&e>o:!l&&i>o};function je(t=()=>{}){const n=$(t);De(()=>{let o=0,e=0;return o=window.requestAnimationFrame(()=>e=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(o),window.cancelAnimationFrame(e)}},[n])}function ze(t){return t.nodeType===t.ELEMENT_NODE}function Ge(t){const n=[],o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const i=e.tagName==="INPUT"&&e.type==="hidden";return e.disabled||e.hidden||i?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n}function te(t){const n=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();return t.some(o=>o===n?!0:(o.focus(),(()=>{let e=document.activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e})()!==n))}var Je=le,Qe=pe,Ze=fe,et=ve,tt=ee;export{et as A,tt as C,Qe as R,ce as T,Je as V,Ze as a};
@@ -1 +1 @@
1
- import{J as Q,x as W,D as _,u as d,A as G,h as N,y as O,q as F}from"./register-q2a4hUWr.js";import{c as p}from"./index-CBrz5xtv.js";import{c as X}from"./index-BR94Y7UD.js";import{u as Z}from"./index-DzgRZJb6.js";import{a as $}from"./index-yvefsybe.js";import{u as ee}from"./index-DRPfs38H.js";import{P as K}from"./index-BcreLqeQ.js";import{u as oe}from"./index-CHknjjXQ.js";import{u as te}from"./index-XMehPuYo.js";var re=Q(void 0);function M(e){const t=W(re);return e||t||"ltr"}var y="rovingFocusGroup.onEntryFocus",ne={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[D,L,se]=X(g),[ce,ue]=$(g,[se]),[ae,ie]=ce(g),U=_((e,t)=>d(D.Provider,{scope:e.__scopeRovingFocusGroup,children:d(D.Slot,{scope:e.__scopeRovingFocusGroup,children:d(le,{...e,ref:t})})}));U.displayName=g;var le=_((e,t)=>{const{__scopeRovingFocusGroup:s,orientation:o,loop:i=!1,dir:b,currentTabStopId:R,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:m,onEntryFocus:c,preventScrollOnEntryFocus:E=!1,...T}=e,v=G(null),I=Z(t,v),r=M(b),[l=null,h]=te({prop:R,defaultProp:w,onChange:m}),[u,a]=N(!1),C=oe(c),H=L(s),S=G(!1),[V,P]=N(0);return O(()=>{const n=v.current;if(n)return n.addEventListener(y,C),()=>n.removeEventListener(y,C)},[C]),d(ae,{scope:s,orientation:o,dir:r,loop:i,currentTabStopId:l,onItemFocus:F(n=>h(n),[h]),onItemShiftTab:F(()=>a(!0),[]),onFocusableItemAdd:F(()=>P(n=>n+1),[]),onFocusableItemRemove:F(()=>P(n=>n-1),[]),children:d(K.div,{tabIndex:u||V===0?-1:0,"data-orientation":o,...T,ref:I,style:{outline:"none",...e.style},onMouseDown:p(e.onMouseDown,()=>{S.current=!0}),onFocus:p(e.onFocus,n=>{const q=!S.current;if(n.target===n.currentTarget&&q&&!u){const x=new CustomEvent(y,ne);if(n.currentTarget.dispatchEvent(x),!x.defaultPrevented){const A=H().filter(f=>f.focusable),z=A.find(f=>f.active),J=A.find(f=>f.id===l),j=[z,J,...A].filter(Boolean).map(f=>f.ref.current);Y(j,E)}}S.current=!1}),onBlur:p(e.onBlur,()=>a(!1))})})}),B="RovingFocusGroupItem",k=_((e,t)=>{const{__scopeRovingFocusGroup:s,focusable:o=!0,active:i=!1,tabStopId:b,...R}=e,w=ee(),m=b||w,c=ie(B,s),E=c.currentTabStopId===m,T=L(s),{onFocusableItemAdd:v,onFocusableItemRemove:I}=c;return O(()=>{if(o)return v(),()=>I()},[o,v,I]),d(D.ItemSlot,{scope:s,id:m,focusable:o,active:i,children:d(K.span,{tabIndex:E?0:-1,"data-orientation":c.orientation,...R,ref:t,onMouseDown:p(e.onMouseDown,r=>{o?c.onItemFocus(m):r.preventDefault()}),onFocus:p(e.onFocus,()=>c.onItemFocus(m)),onKeyDown:p(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){c.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const l=me(r,c.orientation,c.dir);if(l!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let u=T().filter(a=>a.focusable).map(a=>a.ref.current);if(l==="last")u.reverse();else if(l==="prev"||l==="next"){l==="prev"&&u.reverse();const a=u.indexOf(r.currentTarget);u=c.loop?pe(u,a+1):u.slice(a+1)}setTimeout(()=>Y(u))}})})})});k.displayName=B;var fe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function de(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function me(e,t,s){const o=de(e.key,s);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return fe[o]}function Y(e,t=!1){const s=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();for(const o of e)if(o===s||(o.focus({preventScroll:t}),(()=>{let i=document.activeElement;for(;i?.shadowRoot;)i=i.shadowRoot.activeElement;return i})()!==s))return}function pe(e,t){return e.map((s,o)=>e[(t+o)%e.length])}var ve=U,Ie=k;export{Ie as I,ve as R,ue as c,M as u};
1
+ import{J as Q,x as W,D as _,u as d,A as G,h as N,y as O,q as F}from"./register-BLIUg7pP.js";import{c as p}from"./index-CBrz5xtv.js";import{c as X}from"./index-CSwaLeaf.js";import{u as Z}from"./index-PkLLBl66.js";import{a as $}from"./index-6ACy5ofQ.js";import{u as ee}from"./index-DcfOiwBx.js";import{P as K}from"./index-lLx4-_J9.js";import{u as oe}from"./index-qQYeOZhj.js";import{u as te}from"./index-XHumtRyF.js";var re=Q(void 0);function M(e){const t=W(re);return e||t||"ltr"}var y="rovingFocusGroup.onEntryFocus",ne={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[D,L,se]=X(g),[ce,ue]=$(g,[se]),[ae,ie]=ce(g),U=_((e,t)=>d(D.Provider,{scope:e.__scopeRovingFocusGroup,children:d(D.Slot,{scope:e.__scopeRovingFocusGroup,children:d(le,{...e,ref:t})})}));U.displayName=g;var le=_((e,t)=>{const{__scopeRovingFocusGroup:s,orientation:o,loop:i=!1,dir:b,currentTabStopId:R,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:m,onEntryFocus:c,preventScrollOnEntryFocus:E=!1,...T}=e,v=G(null),I=Z(t,v),r=M(b),[l=null,h]=te({prop:R,defaultProp:w,onChange:m}),[u,a]=N(!1),C=oe(c),H=L(s),S=G(!1),[V,P]=N(0);return O(()=>{const n=v.current;if(n)return n.addEventListener(y,C),()=>n.removeEventListener(y,C)},[C]),d(ae,{scope:s,orientation:o,dir:r,loop:i,currentTabStopId:l,onItemFocus:F(n=>h(n),[h]),onItemShiftTab:F(()=>a(!0),[]),onFocusableItemAdd:F(()=>P(n=>n+1),[]),onFocusableItemRemove:F(()=>P(n=>n-1),[]),children:d(K.div,{tabIndex:u||V===0?-1:0,"data-orientation":o,...T,ref:I,style:{outline:"none",...e.style},onMouseDown:p(e.onMouseDown,()=>{S.current=!0}),onFocus:p(e.onFocus,n=>{const q=!S.current;if(n.target===n.currentTarget&&q&&!u){const x=new CustomEvent(y,ne);if(n.currentTarget.dispatchEvent(x),!x.defaultPrevented){const A=H().filter(f=>f.focusable),z=A.find(f=>f.active),J=A.find(f=>f.id===l),j=[z,J,...A].filter(Boolean).map(f=>f.ref.current);Y(j,E)}}S.current=!1}),onBlur:p(e.onBlur,()=>a(!1))})})}),B="RovingFocusGroupItem",k=_((e,t)=>{const{__scopeRovingFocusGroup:s,focusable:o=!0,active:i=!1,tabStopId:b,...R}=e,w=ee(),m=b||w,c=ie(B,s),E=c.currentTabStopId===m,T=L(s),{onFocusableItemAdd:v,onFocusableItemRemove:I}=c;return O(()=>{if(o)return v(),()=>I()},[o,v,I]),d(D.ItemSlot,{scope:s,id:m,focusable:o,active:i,children:d(K.span,{tabIndex:E?0:-1,"data-orientation":c.orientation,...R,ref:t,onMouseDown:p(e.onMouseDown,r=>{o?c.onItemFocus(m):r.preventDefault()}),onFocus:p(e.onFocus,()=>c.onItemFocus(m)),onKeyDown:p(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){c.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const l=me(r,c.orientation,c.dir);if(l!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let u=T().filter(a=>a.focusable).map(a=>a.ref.current);if(l==="last")u.reverse();else if(l==="prev"||l==="next"){l==="prev"&&u.reverse();const a=u.indexOf(r.currentTarget);u=c.loop?pe(u,a+1):u.slice(a+1)}setTimeout(()=>Y(u))}})})})});k.displayName=B;var fe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function de(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function me(e,t,s){const o=de(e.key,s);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return fe[o]}function Y(e,t=!1){const s=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();for(const o of e)if(o===s||(o.focus({preventScroll:t}),(()=>{let i=document.activeElement;for(;i?.shadowRoot;)i=i.shadowRoot.activeElement;return i})()!==s))return}function pe(e,t){return e.map((s,o)=>e[(t+o)%e.length])}var ve=U,Ie=k;export{Ie as I,ve as R,ue as c,M as u};
@@ -1 +1 @@
1
- import{y as l,J,D as g,x as B,h as T,u as R,A as y}from"./register-q2a4hUWr.js";import{c as p}from"./index-CBrz5xtv.js";import{P as F,d as X}from"./index-BcreLqeQ.js";import{u as I}from"./index-DzgRZJb6.js";import{u as m}from"./index-CHknjjXQ.js";function Y(s,e=globalThis?.document){const t=m(s);l(()=>{const i=n=>{n.key==="Escape"&&t(n)};return e.addEventListener("keydown",i,{capture:!0}),()=>e.removeEventListener("keydown",i,{capture:!0})},[t,e])}var j="DismissableLayer",b="dismissableLayer.update",q="dismissableLayer.pointerDownOutside",G="dismissableLayer.focusOutside",A,W=J({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),D=g((s,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:i,onPointerDownOutside:n,onFocusOutside:a,onInteractOutside:f,onDismiss:d,...v}=s,o=B(W),[c,S]=T(null),u=c?.ownerDocument??globalThis?.document,[,_]=T({}),U=I(e,r=>S(r)),P=Array.from(o.layers),[z]=[...o.layersWithOutsidePointerEventsDisabled].slice(-1),H=P.indexOf(z),O=c?P.indexOf(c):-1,K=o.layersWithOutsidePointerEventsDisabled.size>0,L=O>=H,M=V(r=>{const E=r.target,w=[...o.branches].some(h=>h.contains(E));!L||w||(n?.(r),f?.(r),r.defaultPrevented||d?.())},u),C=Z(r=>{const E=r.target;[...o.branches].some(h=>h.contains(E))||(a?.(r),f?.(r),r.defaultPrevented||d?.())},u);return Y(r=>{O===o.layers.size-1&&(i?.(r),!r.defaultPrevented&&d&&(r.preventDefault(),d()))},u),l(()=>{if(c)return t&&(o.layersWithOutsidePointerEventsDisabled.size===0&&(A=u.body.style.pointerEvents,u.body.style.pointerEvents="none"),o.layersWithOutsidePointerEventsDisabled.add(c)),o.layers.add(c),x(),()=>{t&&o.layersWithOutsidePointerEventsDisabled.size===1&&(u.body.style.pointerEvents=A)}},[c,u,t,o]),l(()=>()=>{c&&(o.layers.delete(c),o.layersWithOutsidePointerEventsDisabled.delete(c),x())},[c,o]),l(()=>{const r=()=>_({});return document.addEventListener(b,r),()=>document.removeEventListener(b,r)},[]),R(F.div,{...v,ref:U,style:{pointerEvents:K?L?"auto":"none":void 0,...s.style},onFocusCapture:p(s.onFocusCapture,C.onFocusCapture),onBlurCapture:p(s.onBlurCapture,C.onBlurCapture),onPointerDownCapture:p(s.onPointerDownCapture,M.onPointerDownCapture)})});D.displayName=j;var Q="DismissableLayerBranch",k=g((s,e)=>{const t=B(W),i=y(null),n=I(e,i);return l(()=>{const a=i.current;if(a)return t.branches.add(a),()=>{t.branches.delete(a)}},[t.branches]),R(F.div,{...s,ref:n})});k.displayName=Q;function V(s,e=globalThis?.document){const t=m(s),i=y(!1),n=y(()=>{});return l(()=>{const a=d=>{if(d.target&&!i.current){let v=function(){N(q,t,o,{discrete:!0})};const o={originalEvent:d};d.pointerType==="touch"?(e.removeEventListener("click",n.current),n.current=v,e.addEventListener("click",n.current,{once:!0})):v()}else e.removeEventListener("click",n.current);i.current=!1},f=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(f),e.removeEventListener("pointerdown",a),e.removeEventListener("click",n.current)}},[e,t]),{onPointerDownCapture:()=>i.current=!0}}function Z(s,e=globalThis?.document){const t=m(s),i=y(!1);return l(()=>{const n=a=>{a.target&&!i.current&&N(G,t,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",n),()=>e.removeEventListener("focusin",n)},[e,t]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function x(){const s=new CustomEvent(b);document.dispatchEvent(s)}function N(s,e,t,{discrete:i}){const n=t.originalEvent.target,a=new CustomEvent(s,{bubbles:!1,cancelable:!0,detail:t});e&&n.addEventListener(s,e,{once:!0}),i?X(n,a):n.dispatchEvent(a)}var $=D,ee=k;export{ee as B,D,$ as R};
1
+ import{y as l,J,D as g,x as B,h as T,u as R,A as y}from"./register-BLIUg7pP.js";import{c as p}from"./index-CBrz5xtv.js";import{P as F,d as X}from"./index-lLx4-_J9.js";import{u as I}from"./index-PkLLBl66.js";import{u as m}from"./index-qQYeOZhj.js";function Y(s,e=globalThis?.document){const t=m(s);l(()=>{const i=n=>{n.key==="Escape"&&t(n)};return e.addEventListener("keydown",i,{capture:!0}),()=>e.removeEventListener("keydown",i,{capture:!0})},[t,e])}var j="DismissableLayer",b="dismissableLayer.update",q="dismissableLayer.pointerDownOutside",G="dismissableLayer.focusOutside",A,W=J({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),D=g((s,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:i,onPointerDownOutside:n,onFocusOutside:a,onInteractOutside:f,onDismiss:d,...v}=s,o=B(W),[c,S]=T(null),u=c?.ownerDocument??globalThis?.document,[,_]=T({}),U=I(e,r=>S(r)),P=Array.from(o.layers),[z]=[...o.layersWithOutsidePointerEventsDisabled].slice(-1),H=P.indexOf(z),O=c?P.indexOf(c):-1,K=o.layersWithOutsidePointerEventsDisabled.size>0,L=O>=H,M=V(r=>{const E=r.target,w=[...o.branches].some(h=>h.contains(E));!L||w||(n?.(r),f?.(r),r.defaultPrevented||d?.())},u),C=Z(r=>{const E=r.target;[...o.branches].some(h=>h.contains(E))||(a?.(r),f?.(r),r.defaultPrevented||d?.())},u);return Y(r=>{O===o.layers.size-1&&(i?.(r),!r.defaultPrevented&&d&&(r.preventDefault(),d()))},u),l(()=>{if(c)return t&&(o.layersWithOutsidePointerEventsDisabled.size===0&&(A=u.body.style.pointerEvents,u.body.style.pointerEvents="none"),o.layersWithOutsidePointerEventsDisabled.add(c)),o.layers.add(c),x(),()=>{t&&o.layersWithOutsidePointerEventsDisabled.size===1&&(u.body.style.pointerEvents=A)}},[c,u,t,o]),l(()=>()=>{c&&(o.layers.delete(c),o.layersWithOutsidePointerEventsDisabled.delete(c),x())},[c,o]),l(()=>{const r=()=>_({});return document.addEventListener(b,r),()=>document.removeEventListener(b,r)},[]),R(F.div,{...v,ref:U,style:{pointerEvents:K?L?"auto":"none":void 0,...s.style},onFocusCapture:p(s.onFocusCapture,C.onFocusCapture),onBlurCapture:p(s.onBlurCapture,C.onBlurCapture),onPointerDownCapture:p(s.onPointerDownCapture,M.onPointerDownCapture)})});D.displayName=j;var Q="DismissableLayerBranch",k=g((s,e)=>{const t=B(W),i=y(null),n=I(e,i);return l(()=>{const a=i.current;if(a)return t.branches.add(a),()=>{t.branches.delete(a)}},[t.branches]),R(F.div,{...s,ref:n})});k.displayName=Q;function V(s,e=globalThis?.document){const t=m(s),i=y(!1),n=y(()=>{});return l(()=>{const a=d=>{if(d.target&&!i.current){let v=function(){N(q,t,o,{discrete:!0})};const o={originalEvent:d};d.pointerType==="touch"?(e.removeEventListener("click",n.current),n.current=v,e.addEventListener("click",n.current,{once:!0})):v()}else e.removeEventListener("click",n.current);i.current=!1},f=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(f),e.removeEventListener("pointerdown",a),e.removeEventListener("click",n.current)}},[e,t]),{onPointerDownCapture:()=>i.current=!0}}function Z(s,e=globalThis?.document){const t=m(s),i=y(!1);return l(()=>{const n=a=>{a.target&&!i.current&&N(G,t,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",n),()=>e.removeEventListener("focusin",n)},[e,t]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function x(){const s=new CustomEvent(b);document.dispatchEvent(s)}function N(s,e,t,{discrete:i}){const n=t.originalEvent.target,a=new CustomEvent(s,{bubbles:!1,cancelable:!0,detail:t});e&&n.addEventListener(s,e,{once:!0}),i?X(n,a):n.dispatchEvent(a)}var $=D,ee=k;export{ee as B,D,$ as R};
@@ -1 +1 @@
1
- import{q as S,D as d,O as i,p as c,u as a,a as g,k as b}from"./register-q2a4hUWr.js";function m(n,e){if(typeof n=="function")return n(e);n!=null&&(n.current=e)}function f(...n){return e=>{let t=!1;const o=n.map(r=>{const s=m(r,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():m(n[r],null)}}}}function C(...n){return S(f(...n),n)}var h=d((n,e)=>{const{children:t,...o}=n,r=i.toArray(t),s=r.find(O);if(s){const l=s.props.children,u=r.map(y=>y===s?i.count(l)>1?i.only(null):c(l)?l.props.children:null:y);return a(p,{...o,ref:e,children:c(l)?g(l,void 0,u):null})}return a(p,{...o,ref:e,children:t})});h.displayName="Slot";var p=d((n,e)=>{const{children:t,...o}=n;if(c(t)){const r=W(t);return g(t,{...P(o,t.props),ref:e?f(e,r):r})}return i.count(t)>1?i.only(null):null});p.displayName="SlotClone";var R=({children:n})=>a(b,{children:n});function O(n){return c(n)&&n.type===R}function P(n,e){const t={...e};for(const o in e){const r=n[o],s=e[o];/^on[A-Z]/.test(o)?r&&s?t[o]=(...u)=>{s(...u),r(...u)}:r&&(t[o]=r):o==="style"?t[o]={...r,...s}:o==="className"&&(t[o]=[r,s].filter(Boolean).join(" "))}return{...n,...t}}function W(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}export{R as S,h as a,f as c,C as u};
1
+ import{q as S,D as d,O as i,p as c,u as a,a as g,k as b}from"./register-BLIUg7pP.js";function m(n,e){if(typeof n=="function")return n(e);n!=null&&(n.current=e)}function f(...n){return e=>{let t=!1;const o=n.map(r=>{const s=m(r,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():m(n[r],null)}}}}function C(...n){return S(f(...n),n)}var h=d((n,e)=>{const{children:t,...o}=n,r=i.toArray(t),s=r.find(O);if(s){const l=s.props.children,u=r.map(y=>y===s?i.count(l)>1?i.only(null):c(l)?l.props.children:null:y);return a(p,{...o,ref:e,children:c(l)?g(l,void 0,u):null})}return a(p,{...o,ref:e,children:t})});h.displayName="Slot";var p=d((n,e)=>{const{children:t,...o}=n;if(c(t)){const r=W(t);return g(t,{...P(o,t.props),ref:e?f(e,r):r})}return i.count(t)>1?i.only(null):null});p.displayName="SlotClone";var R=({children:n})=>a(b,{children:n});function O(n){return c(n)&&n.type===R}function P(n,e){const t={...e};for(const o in e){const r=n[o],s=e[o];/^on[A-Z]/.test(o)?r&&s?t[o]=(...u)=>{s(...u),r(...u)}:r&&(t[o]=r):o==="style"?t[o]={...r,...s}:o==="className"&&(t[o]=[r,s].filter(Boolean).join(" "))}return{...n,...t}}function W(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}export{R as S,h as a,f as c,C as u};
@@ -1 +1 @@
1
- import{q as d,h,A as m,y as v}from"./register-q2a4hUWr.js";import{u as a}from"./index-CHknjjXQ.js";function C({prop:t,defaultProp:l,onChange:s=()=>{}}){const[e,n]=S({defaultProp:l,onChange:s}),o=t!==void 0,f=o?t:e,r=a(s),i=d(c=>{if(o){const u=typeof c=="function"?c(t):c;u!==t&&r(u)}else n(c)},[o,t,n,r]);return[f,i]}function S({defaultProp:t,onChange:l}){const s=h(t),[e]=s,n=m(e),o=a(l);return v(()=>{n.current!==e&&(o(e),n.current=e)},[e,n,o]),s}export{C as u};
1
+ import{q as d,h,A as m,y as v}from"./register-BLIUg7pP.js";import{u as a}from"./index-qQYeOZhj.js";function C({prop:t,defaultProp:l,onChange:s=()=>{}}){const[e,n]=S({defaultProp:l,onChange:s}),o=t!==void 0,f=o?t:e,r=a(s),i=d(c=>{if(o){const u=typeof c=="function"?c(t):c;u!==t&&r(u)}else n(c)},[o,t,n,r]);return[f,i]}function S({defaultProp:t,onChange:l}){const s=h(t),[e]=s,n=m(e),o=a(l);return v(()=>{n.current!==e&&(o(e),n.current=e)},[e,n,o]),s}export{C as u};
@@ -1 +1 @@
1
- import{D as m,u as p,E as u}from"./register-q2a4hUWr.js";import{a as d}from"./index-DzgRZJb6.js";var f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],v=f.reduce((t,i)=>{const r=m((o,e)=>{const{asChild:a,...n}=o,s=a?d:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p(s,{...n,ref:e})});return r.displayName=`Primitive.${i}`,{...t,[i]:r}},{});function l(t,i){t&&u(()=>t.dispatchEvent(i))}export{v as P,l as d};
1
+ import{D as m,u as p,E as u}from"./register-BLIUg7pP.js";import{a as d}from"./index-PkLLBl66.js";var f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],v=f.reduce((t,i)=>{const r=m((o,e)=>{const{asChild:a,...n}=o,s=a?d:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p(s,{...n,ref:e})});return r.displayName=`Primitive.${i}`,{...t,[i]:r}},{});function l(t,i){t&&u(()=>t.dispatchEvent(i))}export{v as P,l as d};
@@ -1 +1 @@
1
- import{A as n,y as u,T as c}from"./register-q2a4hUWr.js";function o(r){const e=n(r);return u(()=>{e.current=r}),c(()=>(...t)=>e.current?.(...t),[])}export{o as u};
1
+ import{A as n,y as u,T as c}from"./register-BLIUg7pP.js";function o(r){const e=n(r);return u(()=>{e.current=r}),c(()=>(...t)=>e.current?.(...t),[])}export{o as u};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{m as i}from"./mapping-CtWZQHyQ.js";for(const[t,s]of Object.entries(i))customElements.get(t)||customElements.define(t,class extends HTMLElement{#i=!1;#t=!1;#s;#e;constructor(){super(),this.#e=import(`./components/${s}.js`).then(e=>{this.#s=e.default(this)})}connectedCallback(){this.#t||(this.style.visibility="hidden",this.#e.then(()=>{this.#t||(this.style.visibility="",this.#s?.connectedCallback(),this.#i=!0,this.classList.add("hydrated"))}))}disconnectedCallback(){if(!this.#i){this.#t=!0;return}this.#e.then(()=>{this.#s?.disconnectedCallback()})}});
1
+ import{m as i}from"./mapping-liyJrI1I.js";for(const[t,s]of Object.entries(i))customElements.get(t)||customElements.define(t,class extends HTMLElement{#i=!1;#t=!1;#s;#e;constructor(){super(),this.#e=import(`./components/${s}.js`).then(e=>{this.#s=e.default(this)})}connectedCallback(){this.#t||(this.style.visibility="hidden",this.#e.then(()=>{this.#t||(this.style.visibility="",this.#s?.connectedCallback(),this.#i=!0,this.classList.add("hydrated"))}))}disconnectedCallback(){if(!this.#i){this.#t=!0;return}this.#e.then(()=>{this.#s?.disconnectedCallback()})}});
@@ -0,0 +1 @@
1
+ import{i as o}from"./register-BLIUg7pP.js";o("@layer optiaxiom, optiaxiom.theme, optiaxiom.base, optiaxiom._1h1dwjo, optiaxiom._107fbc8;");
@@ -0,0 +1 @@
1
+ var s={".":"./dist/index.js","./Alert":"./dist/components/Alert.js","./AlertDialog":"./dist/components/AlertDialog.js","./AlertDialogAction":"./dist/components/AlertDialogAction.js","./AlertDialogBody":"./dist/components/AlertDialogBody.js","./AlertDialogCancel":"./dist/components/AlertDialogCancel.js","./AlertDialogContent":"./dist/components/AlertDialogContent.js","./AlertDialogFooter":"./dist/components/AlertDialogFooter.js","./AlertDialogHeader":"./dist/components/AlertDialogHeader.js","./AlertDialogTrigger":"./dist/components/AlertDialogTrigger.js","./AngleMenuButton":"./dist/components/AngleMenuButton.js","./Avatar":"./dist/components/Avatar.js","./AvatarGroup":"./dist/components/AvatarGroup.js","./AxiomProvider":"./dist/components/AxiomProvider.js","./Badge":"./dist/components/Badge.js","./Banner":"./dist/components/Banner.js","./Box":"./dist/components/Box.js","./Button":"./dist/components/Button.js","./ButtonGroup":"./dist/components/ButtonGroup.js","./Checkbox":"./dist/components/Checkbox.js","./Code":"./dist/components/Code.js","./Dialog":"./dist/components/Dialog.js","./DialogBody":"./dist/components/DialogBody.js","./DialogClose":"./dist/components/DialogClose.js","./DialogContent":"./dist/components/DialogContent.js","./DialogFooter":"./dist/components/DialogFooter.js","./DialogForm":"./dist/components/DialogForm.js","./DialogHeader":"./dist/components/DialogHeader.js","./DialogTrigger":"./dist/components/DialogTrigger.js","./Disclosure":"./dist/components/Disclosure.js","./DisclosureContent":"./dist/components/DisclosureContent.js","./DisclosureTrigger":"./dist/components/DisclosureTrigger.js","./Drawer":"./dist/components/Drawer.js","./DrawerActions":"./dist/components/DrawerActions.js","./DrawerBody":"./dist/components/DrawerBody.js","./DrawerClose":"./dist/components/DrawerClose.js","./DrawerContent":"./dist/components/DrawerContent.js","./DrawerDescription":"./dist/components/DrawerDescription.js","./DrawerFooter":"./dist/components/DrawerFooter.js","./DrawerHeader":"./dist/components/DrawerHeader.js","./DrawerTitle":"./dist/components/DrawerTitle.js","./DrawerTrigger":"./dist/components/DrawerTrigger.js","./DropdownMenu":"./dist/components/DropdownMenu.js","./DropdownMenuCheckboxItem":"./dist/components/DropdownMenuCheckboxItem.js","./DropdownMenuContent":"./dist/components/DropdownMenuContent.js","./DropdownMenuGroup":"./dist/components/DropdownMenuGroup.js","./DropdownMenuItem":"./dist/components/DropdownMenuItem.js","./DropdownMenuLabel":"./dist/components/DropdownMenuLabel.js","./DropdownMenuSeparator":"./dist/components/DropdownMenuSeparator.js","./DropdownMenuSub":"./dist/components/DropdownMenuSub.js","./DropdownMenuSubContent":"./dist/components/DropdownMenuSubContent.js","./DropdownMenuSubTrigger":"./dist/components/DropdownMenuTrigger.js","./DropdownMenuTrigger":"./dist/components/DropdownMenuTrigger.js","./EllipsisMenuButton":"./dist/components/EllipsisMenuButton.js","./Field":"./dist/components/Field.js","./FieldLabel":"./dist/components/FieldLabel.js","./Flex":"./dist/components/Flex.js","./Grid":"./dist/components/Grid.js","./Heading":"./dist/components/Heading.js","./Indicator":"./dist/components/Indicator.js","./Input":"./dist/components/Input.js","./InputAddon":"./dist/components/InputAddon.js","./InputControl":"./dist/components/InputControl.js","./InputRoot":"./dist/components/InputRoot.js","./Kbd":"./dist/components/Kbd.js","./Link":"./dist/components/Link.js","./Listbox":"./dist/components/Listbox.js","./ListboxCheckboxItem":"./dist/components/ListboxCheckboxItem.js","./ListboxEmpty":"./dist/components/ListboxEmpty.js","./ListboxFooter":"./dist/components/ListboxFooter.js","./ListboxGroup":"./dist/components/ListboxGroup.js","./ListboxItem":"./dist/components/ListboxItem.js","./ListboxItemIndicator":"./dist/components/ListboxItemIndicator.js","./ListboxLabel":"./dist/components/ListboxLabel.js","./ListboxRadioItem":"./dist/components/ListboxRadioItem.js","./ListboxScrollArea":"./dist/components/ListboxScrollArea.js","./ListboxSeparator":"./dist/components/ListboxSeparator.js","./ModalLayer":"./dist/components/ModalLayer.js","./Nav":"./dist/components/Nav.js","./NavAccountItem":"./dist/components/NavAccountItem.js","./NavBody":"./dist/components/NavBody.js","./NavFooter":"./dist/components/NavFooter.js","./NavHeader":"./dist/components/NavHeader.js","./NavItem":"./dist/components/NavItem.js","./Pagination":"./dist/components/Pagination.js","./Paper":"./dist/components/Paper.js","./Popover":"./dist/components/Popover.js","./PopoverAnchor":"./dist/components/PopoverAnchor.js","./PopoverContent":"./dist/components/PopoverContent.js","./PopoverTrigger":"./dist/components/PopoverTrigger.js","./Progress":"./dist/components/Progress.js","./Radio":"./dist/components/Radio.js","./RadioGroup":"./dist/components/RadioGroup.js","./SearchInput":"./dist/components/SearchInput.js","./SegmentedControl":"./dist/components/SegmentedControl.js","./SegmentedControlItem":"./dist/components/SegmentedControlItem.js","./Separator":"./dist/components/Separator.js","./Sidebar":"./dist/components/Sidebar.js","./SidebarToggle":"./dist/components/SidebarToggle.js","./Skeleton":"./dist/components/Skeleton.js","./Spinner":"./dist/components/Spinner.js","./Switch":"./dist/components/Switch.js","./Tabs":"./dist/components/Tabs.js","./TabsContent":"./dist/components/TabsContent.js","./TabsList":"./dist/components/TabsList.js","./TabsTrigger":"./dist/components/TabsTrigger.js","./Text":"./dist/components/Text.js","./Textarea":"./dist/components/Textarea.js","./ThemeProvider":"./dist/components/ThemeProvider.js","./Toast":"./dist/components/Toast.js","./ToastAction":"./dist/components/ToastAction.js","./ToastTitle":"./dist/components/ToastTitle.js","./ToggleButton":"./dist/components/ToggleButton.js","./Tooltip":"./dist/components/Tooltip.js","./TooltipContent":"./dist/components/TooltipContent.js","./TooltipRoot":"./dist/components/TooltipRoot.js","./TooltipTrigger":"./dist/components/TooltipTrigger.js","./Transition":"./dist/components/Transition.js","./TransitionGroup":"./dist/components/TransitionGroup.js"};const n=Object.keys(s).filter(o=>o!==".").map(o=>["ax"+o.slice(2).replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),o.slice(2)]),e=Object.fromEntries(n);export{e as m};