@optiaxiom/web-components 0.3.0 → 0.3.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.
- package/dist/AlertContext-CaOY9btx.js +1 -0
- package/dist/AlertDialogContext-Dl1-D14a.js +1 -0
- package/dist/AnimatePresence-C4jvZ9X9.js +1 -0
- package/dist/AvatarContext-Xq9U6wRZ.js +1 -0
- package/dist/Backdrop-ZozcjYKc.js +1 -0
- package/dist/Badge-Bs-xNLOK.js +1 -0
- package/dist/BannerContext-DWmMxQxY.js +1 -0
- package/dist/Box-fNS_pT61.js +1 -0
- package/dist/Button-nv8gCrXo.js +1 -0
- package/dist/Checkbox-BjgtBTwS.js +1 -0
- package/dist/Code-C_fNZ1E9.js +1 -0
- package/dist/DialogContext-CfDl5i6d.js +1 -0
- package/dist/DrawerContext-AxFGHEZb.js +1 -0
- package/dist/DropdownMenuContext-DXc3Q2xQ.js +1 -0
- package/dist/DropdownMenuSubContext-CiCfigc1.js +1 -0
- package/dist/FieldContext-DbfOZ1en.js +1 -0
- package/dist/{Flex-BpW4EMI7.js → Flex-bChNAdhI.js} +1 -1
- package/dist/Heading-DmnlOoPW.js +1 -0
- package/dist/{HoverCard-DfqVF2jK.js → HoverCard-DnYJQ_uC.js} +1 -1
- package/dist/HoverCardContent-wo_IMH71.js +1 -0
- package/dist/{HoverCardContext-B5aeXjOR.js → HoverCardContext-D-dfFpte.js} +1 -1
- package/dist/HoverCardTrigger-Nnq5-eJI.js +1 -0
- package/dist/Icon-BCd3iRrC.js +1 -0
- package/dist/IconAngleDown-C1GTkgfa.js +1 -0
- package/dist/IconAngleRight-BODsJ1S3.js +1 -0
- package/dist/{IconCircleInfoFilled-DKK0rYG2.js → IconCircleInfoFilled-cr59OdVX.js} +1 -1
- package/dist/{IconEllipsis-3fo-20Rm.js → IconEllipsis-mV1s9S0C.js} +1 -1
- package/dist/{IconTriangleExclamationFilled-BC9wM3g6.js → IconTriangleExclamationFilled-Dyqr6Erx.js} +1 -1
- package/dist/{IconX-Hnm_1KBN.js → IconX-rkyCo3f_.js} +1 -1
- package/dist/Input-ta-h-Tov.js +1 -0
- package/dist/{InputAddon-CYLBVUhV.js → InputAddon-CX2m3RyR.js} +1 -1
- package/dist/InputContext-CKMU1TQv.js +1 -0
- package/dist/InputControl-DJhfkZZQ.js +1 -0
- package/dist/InputControl.css.ts.vanilla-BRP-9Ti9-2GjXCyJa.js +1 -0
- package/dist/InputRoot-CUCdhTz5.js +1 -0
- package/dist/Link-BX0j-1H2.js +1 -0
- package/dist/{Listbox-9zhI2Jlh.js → Listbox-BpHT11bO.js} +1 -1
- package/dist/ListboxGroupContext-BYf_SDZG.js +1 -0
- package/dist/ListboxItem-45PbZRke.js +1 -0
- package/dist/ListboxItemIndicator-RHz_DO8P.js +1 -0
- package/dist/ListboxSeparator-BmBJqi99.js +1 -0
- package/dist/MenuButton-Kqzr8jHa.js +1 -0
- package/dist/MenuListbox-Y1VwBsU5.js +1 -0
- package/dist/{Paper-u1_b2CaW.js → Paper-Cg0J-voY.js} +1 -1
- package/dist/PopoverContext-CLCVKCJn.js +1 -0
- package/dist/RadioGroupContext-B5ntv40_.js +1 -0
- package/dist/Separator-DYXOjkMA.js +1 -0
- package/dist/SidenavContext-9uUopidO.js +1 -0
- package/dist/SidenavItem-DZhouyJb.js +1 -0
- package/dist/{Spinner-BtXAJKyn.js → Spinner-Dwpb-j_l.js} +1 -1
- package/dist/TableRow.css.ts.vanilla-DPVF9K5Q-B7XyPOtX.js +1 -0
- package/dist/TabsContext-BlhjyKoi.js +1 -0
- package/dist/Text-CkBgcaHQ.js +1 -0
- package/dist/ThemeProvider-B6a8e48V.js +13 -0
- package/dist/Toast-BhxTOvYR.js +1 -0
- package/dist/{ToastAction-DykTDb5L.js → ToastAction-CVwZ0ZqI.js} +1 -1
- package/dist/ToastProvider-BY6nFY2h.js +1 -0
- package/dist/{ToastTitle-BqavDEYU.js → ToastTitle-CCvvmbQu.js} +1 -1
- package/dist/ToggleInputLabel-RlPgjM8P.js +1 -0
- package/dist/Tooltip-D72kMz_V.js +1 -0
- package/dist/TooltipContent-J5B3Dp49.js +1 -0
- package/dist/TooltipContext-DX-_pFH3.js +1 -0
- package/dist/TooltipRoot-B1c58Shz.js +1 -0
- package/dist/TooltipTrigger-DH3oLCf1.js +1 -0
- package/dist/Transition-B7W1ir5W.js +1 -0
- package/dist/assets/variable/InterVariable-Italic.woff2 +0 -0
- package/dist/assets/variable/InterVariable.woff2 +0 -0
- package/dist/components/Alert.js +1 -1
- package/dist/components/AlertDescription.js +1 -1
- package/dist/components/AlertDialog.js +1 -1
- package/dist/components/AlertDialogAction.js +1 -1
- package/dist/components/AlertDialogBody.js +1 -1
- package/dist/components/AlertDialogCancel.js +1 -1
- package/dist/components/AlertDialogContent.js +1 -1
- package/dist/components/AlertDialogFooter.js +1 -1
- package/dist/components/AlertDialogTitle.js +1 -1
- package/dist/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertTitle.js +1 -1
- package/dist/components/AnimatePresence.js +1 -1
- package/dist/components/Avatar.js +1 -1
- package/dist/components/AvatarGroup.js +1 -1
- package/dist/components/AxiomProvider.js +1 -1
- package/dist/components/Badge.js +1 -1
- package/dist/components/Banner.js +1 -1
- package/dist/components/BannerDescription.js +1 -1
- package/dist/components/BannerTitle.js +1 -1
- package/dist/components/Box.js +1 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/ButtonGroup.js +1 -1
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Code.js +1 -1
- package/dist/components/Dialog.js +1 -1
- package/dist/components/DialogActions.js +1 -1
- package/dist/components/DialogBody.js +1 -1
- package/dist/components/DialogClose.js +1 -1
- package/dist/components/DialogContent.js +1 -1
- package/dist/components/DialogDescription.js +1 -1
- package/dist/components/DialogFooter.js +1 -1
- package/dist/components/DialogHeader.js +1 -1
- package/dist/components/DialogTitle.js +1 -1
- package/dist/components/DialogTrigger.js +1 -1
- package/dist/components/Disclosure.js +1 -1
- package/dist/components/DisclosureContent.js +1 -1
- package/dist/components/DisclosureTrigger.js +1 -1
- package/dist/components/Drawer.js +1 -1
- package/dist/components/DrawerActions.js +1 -1
- package/dist/components/DrawerBody.js +1 -1
- package/dist/components/DrawerClose.js +1 -1
- package/dist/components/DrawerContent.js +1 -1
- package/dist/components/DrawerDescription.js +1 -1
- package/dist/components/DrawerFooter.js +1 -1
- package/dist/components/DrawerHeader.js +1 -1
- package/dist/components/DrawerTitle.js +1 -1
- package/dist/components/DrawerTrigger.js +1 -1
- package/dist/components/DropdownMenu.js +1 -1
- package/dist/components/DropdownMenuContent.js +1 -1
- package/dist/components/DropdownMenuGroup.js +1 -1
- package/dist/components/DropdownMenuItem.js +1 -1
- package/dist/components/DropdownMenuLabel.js +1 -1
- package/dist/components/DropdownMenuSeparator.js +1 -1
- package/dist/components/DropdownMenuSub.js +1 -1
- package/dist/components/DropdownMenuSubContent.js +1 -1
- package/dist/components/DropdownMenuTrigger.js +1 -1
- package/dist/components/Field.js +1 -1
- package/dist/components/Flex.js +1 -1
- package/dist/components/Grid.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/HoverCard.js +1 -1
- package/dist/components/HoverCardContent.js +1 -1
- package/dist/components/HoverCardTrigger.js +1 -1
- package/dist/components/Indicator.js +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputAddon.js +1 -1
- package/dist/components/InputControl.js +1 -1
- package/dist/components/InputRoot.js +1 -1
- package/dist/components/Kbd.js +1 -1
- package/dist/components/Link.js +1 -1
- package/dist/components/Listbox.js +1 -1
- package/dist/components/ListboxCheckboxItem.js +1 -1
- package/dist/components/ListboxEmpty.js +1 -1
- package/dist/components/ListboxFooter.js +1 -1
- package/dist/components/ListboxGroup.js +1 -1
- package/dist/components/ListboxItem.js +1 -1
- package/dist/components/ListboxItemIndicator.js +1 -1
- package/dist/components/ListboxLabel.js +1 -1
- package/dist/components/ListboxRadioItem.js +1 -1
- package/dist/components/ListboxScrollArea.js +1 -1
- package/dist/components/ListboxSeparator.js +1 -1
- package/dist/components/MenuButton.js +1 -1
- package/dist/components/Pagination.js +1 -1
- package/dist/components/Paper.js +1 -1
- package/dist/components/Popover.js +1 -1
- package/dist/components/PopoverAnchor.js +1 -1
- package/dist/components/PopoverContent.js +1 -1
- package/dist/components/PopoverTrigger.js +1 -1
- package/dist/components/Progress.js +2 -2
- package/dist/components/Radio.js +1 -1
- package/dist/components/RadioGroup.js +1 -1
- package/dist/components/SearchInput.js +1 -1
- package/dist/components/SegmentedControl.js +1 -1
- package/dist/components/SegmentedControlItem.js +1 -1
- package/dist/components/Separator.js +1 -1
- package/dist/components/Sidenav.js +1 -1
- package/dist/components/SidenavAccountItem.js +1 -1
- package/dist/components/SidenavBody.js +1 -1
- package/dist/components/SidenavFooter.js +1 -1
- package/dist/components/SidenavHeader.js +1 -1
- package/dist/components/SidenavItem.js +1 -1
- package/dist/components/SidenavToggle.js +1 -1
- package/dist/components/Skeleton.js +1 -1
- package/dist/components/Spinner.js +1 -1
- package/dist/components/Switch.js +1 -1
- package/dist/components/Tabs.js +1 -1
- package/dist/components/TabsContent.js +1 -1
- package/dist/components/TabsList.js +1 -1
- package/dist/components/TabsTrigger.js +1 -1
- package/dist/components/Text.js +1 -1
- package/dist/components/Textarea.js +1 -1
- package/dist/components/ThemeProvider.js +1 -1
- package/dist/components/Toast.js +1 -1
- package/dist/components/ToastAction.js +1 -1
- package/dist/components/ToastProvider.js +1 -1
- package/dist/components/ToastTitle.js +1 -1
- package/dist/components/ToggleButton.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/TooltipContent.js +1 -1
- package/dist/components/TooltipRoot.js +1 -1
- package/dist/components/TooltipTrigger.js +1 -1
- package/dist/components/Transition.js +1 -1
- package/dist/conditions-BsVyLeo2.js +1 -0
- package/dist/decorateChildren-BWaGFhnq.js +1 -0
- package/dist/fallbackSpan-DAqJRz0T.js +1 -0
- package/dist/index-B2X7C63E.js +1 -0
- package/dist/index-B8bdq6NU.js +1 -0
- package/dist/index-BTV-EhnB.js +1 -0
- package/dist/{index-CHGmlYMg.js → index-BTuWZOqs.js} +1 -1
- package/dist/{index-DnT_atBN.js → index-BYAkkW6H.js} +2 -2
- package/dist/{index-Cd_CIe_T.js → index-Bcy5UdEQ.js} +1 -1
- package/dist/index-Bjo-cRvd.js +1 -0
- package/dist/{index-DfB3g1nR.js → index-BllVe-SW.js} +1 -1
- package/dist/{index-BhlH29a3.js → index-C5ObaGN-.js} +1 -1
- package/dist/{index-BxBhxV94.js → index-CGUbtXOb.js} +1 -1
- package/dist/{index-CDcP5kmt.js → index-CKDrD7rL.js} +1 -1
- package/dist/{index-BP4yOa1u.js → index-CKcqTpob.js} +1 -1
- package/dist/index-Cb4FuZyB.js +1 -0
- package/dist/index-CupBoFnh.js +1 -0
- package/dist/{index-C-o5WXQN.js → index-D2KxPyeK.js} +1 -1
- package/dist/{index-CqjjrFPH.js → index-DNAke_28.js} +2 -2
- package/dist/{index-DH1jCK6y.js → index-D_zg8UiV.js} +1 -1
- package/dist/index-DafmKHgW.js +1 -0
- package/dist/index-Dj2VPkuv.js +7 -0
- package/dist/index-DmD9o-cw.js +1 -0
- package/dist/{index-psmSVTVB.js → index-Dqt54Cz6.js} +1 -1
- package/dist/{index-Doc_Se2y.js → index-L-lB4H5U.js} +1 -1
- package/dist/{index-DM2tJZgB.js → index-OWHvDQbz.js} +1 -1
- package/dist/{index-D0hSuO0T.js → index-RM9-LENO.js} +1 -1
- package/dist/{index-CrMdL8sR.js → index-W8gSwfOL.js} +1 -1
- package/dist/{index-sDr4W4PL.js → index-yXtvo2kv.js} +1 -1
- package/dist/reach-auto-id-CTLNytqj.js +10 -0
- package/dist/recipeRuntime-BL_74hVn.js +1 -0
- package/dist/register-BYh2OfV6.js +6 -0
- package/dist/theme-css-Bg3RVmPg.js +1 -0
- package/dist/withIcon-81TSoCkc.js +1 -0
- package/package.json +6 -6
- package/dist/AlertContext-DhWZIaPM.js +0 -1
- package/dist/AlertDialogContext-DLkKVc_l.js +0 -1
- package/dist/AnimatePresence-vd3I8_Y-.js +0 -1
- package/dist/AvatarContext-CCjg4vVm.js +0 -1
- package/dist/Backdrop-DNdLZKMW.js +0 -1
- package/dist/Badge-C1D9iwUe.js +0 -1
- package/dist/BannerContext-D_qj30xG.js +0 -1
- package/dist/Box-DaxUZLp5.js +0 -1
- package/dist/Button-68y2HPu4.js +0 -1
- package/dist/Checkbox-DlTwFcsn.js +0 -1
- package/dist/Code-CHYI2hQM.js +0 -1
- package/dist/DialogContext-B-sc06nB.js +0 -1
- package/dist/DrawerContext-CPhz1O_0.js +0 -1
- package/dist/DropdownMenuContext-D1j5BLT5.js +0 -1
- package/dist/DropdownMenuSubContext-BJltvyt4.js +0 -1
- package/dist/FieldContext-BzcLDBZ1.js +0 -1
- package/dist/Heading-02Yg35Kd.js +0 -1
- package/dist/HoverCardContent-DTJpXDOc.js +0 -1
- package/dist/HoverCardTrigger-DVrimW-a.js +0 -1
- package/dist/Icon-BH64IwdH.js +0 -1
- package/dist/IconAngleDown-DdyQPNqB.js +0 -1
- package/dist/IconAngleRight-CcSlqoOA.js +0 -1
- package/dist/Input-Crb5Njsx.js +0 -1
- package/dist/InputContext-CMiVqkAS.js +0 -1
- package/dist/InputControl-D4WPR172.js +0 -1
- package/dist/InputControl.css.ts.vanilla-DUckf1rs-BdxvdI4h.js +0 -1
- package/dist/InputRoot-QcPymse1.js +0 -1
- package/dist/Link-BCh1vWrX.js +0 -1
- package/dist/ListboxGroupContext-N0QU_Hfa.js +0 -1
- package/dist/ListboxItem-C74Qkdwp.js +0 -1
- package/dist/ListboxItemIndicator-BG3wFjun.js +0 -1
- package/dist/ListboxSeparator-_mhNGC6h.js +0 -1
- package/dist/MenuButton-CD6UsZno.js +0 -1
- package/dist/MenuListbox-C7zlp-o0.js +0 -1
- package/dist/PopoverContext-xEATMIZE.js +0 -1
- package/dist/RadioGroupContext-Pdwy2mbP.js +0 -1
- package/dist/Separator-vMi_Di7-.js +0 -1
- package/dist/SidenavContext-02eaMFC5.js +0 -1
- package/dist/SidenavItem-8mB7CKSi.js +0 -1
- package/dist/TableRow.css.ts.vanilla-P7xagxjh-BteSriER.js +0 -1
- package/dist/TabsContext-BgYdhaaS.js +0 -1
- package/dist/Text-DK4Vx-Fu.js +0 -1
- package/dist/ThemeProvider-B5jpVKB6.js +0 -9
- package/dist/Toast-EFMsH8I0.js +0 -1
- package/dist/ToastProvider-Bmutj0MD.js +0 -1
- package/dist/ToggleInputLabel-Dx28mY1B.js +0 -1
- package/dist/Tooltip-BorYQ99k.js +0 -1
- package/dist/TooltipContent-LDHg3M01.js +0 -1
- package/dist/TooltipContext-BtmP3fI9.js +0 -1
- package/dist/TooltipRoot-dSBaEkRh.js +0 -1
- package/dist/TooltipTrigger-7_1SHXUP.js +0 -1
- package/dist/Transition-BrTQdSal.js +0 -1
- package/dist/fallbackSpan-DVup-tFk.js +0 -1
- package/dist/index-ABhB32ln.js +0 -1
- package/dist/index-B7d0MfEw.js +0 -1
- package/dist/index-Bnv9jIx8.js +0 -7
- package/dist/index-CZIa9wzr.js +0 -1
- package/dist/index-DHZ_K2vK.js +0 -1
- package/dist/index-DUOD9OhH.js +0 -1
- package/dist/index-E-cLNQxv.js +0 -1
- package/dist/index-mZp7ZIYk.js +0 -1
- package/dist/index-nLSBuWO5.js +0 -1
- package/dist/reach-auto-id-BEeSZ1FP.js +0 -10
- package/dist/recipeRuntime-DLB-P7Tw.js +0 -1
- package/dist/register-BOOKBziY.js +0 -6
- package/dist/theme-css-D3ljpmQ6.js +0 -1
- package/dist/withIcon-DMeWL4_A.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as Y,q as yt,A as J,e as Ae,T as lt,a as Pe,y as Wt,w as at,u as j}from"./register-BOOKBziY.js";import{P as vt}from"./index-CZIa9wzr.js";import{u as zt}from"./index-DUOD9OhH.js";import{c as Oe}from"./index-D0hSuO0T.js";import{u as Re}from"./index-DHZ_K2vK.js";import{u as bt}from"./index-E-cLNQxv.js";const Ce=["top","right","bottom","left"],U=Math.min,N=Math.max,ft=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 At(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),a=r==="y",f=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:f,y:o.y-i.height};break;case"bottom":d={x:f,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&&a?-1:1);break;case"end":d[s]+=h*(n&&a?-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 a=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=Bt(a,o,l),h=o,d={},p=0;for(let m=0;m<c.length;m++){const{name:w,fn:g}=c[m],{x,y:b,data:y,reset:v}=await g({x:f,y:u,initialPlacement:o,placement:h,strategy:i,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,u=b??u,d={...d,[w]:{...d[w],...y}},v&&p<=50&&(p++,typeof v=="object"&&(v.placement&&(h=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:f,y:u}=Bt(a,h,l)),m=-1)}return{x:f,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:a="clippingAncestors",rootBoundary:f="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:a,rootBoundary:f,strategy:l})),x=u==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),y=await(r.isElement==null?void 0:r.isElement(b))?await(r.getScale==null?void 0:r.getScale(b))||{x:1,y:1}:{x:1,y:1},v=pt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:l}):x);return{top:(g.top-v.top+p.top)/y.y,bottom:(v.bottom-g.bottom+p.bottom)/y.y,left:(g.left-v.left+p.left)/y.x,right:(v.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:a,padding:f=0}=X(t,e)||{};if(a==null)return{};const u=_t(f),h={x:n,y:o},d=Rt(i),p=Ot(d),m=await s.getDimensions(a),w=d==="y",g=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",y=r.reference[p]+r.reference[d]-h[d]-r.floating[p],v=h[d]-r.reference[d],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let R=P?P[b]:0;(!R||!await(s.isElement==null?void 0:s.isElement(P)))&&(R=c.floating[b]||r.floating[p]);const D=y/2-v/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=At($,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:a}=e,{mainAxis:f=!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),b=q(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=h||(b||!m?[dt(c)]:Te(c)),P=p!=="none";!h&&P&&v.push(...Me(c,m,p,y));const R=[c,...v],D=await it(e,w),k=[];let T=((o=r.flip)==null?void 0:o.overflows)||[];if(f&&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,A)=>E.overflows[1]-A.overflows[1])[0])==null?void 0:$.placement;if(!S)switch(d){case"bestFit":{var C;const E=(C=T.filter(A=>{if(P){const L=Z(A.placement);return L===x||L==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(L=>L>0).reduce((L,_)=>L+_,0)]).sort((A,L)=>A[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",a=["left","top"].includes(s)?-1:1,f=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*f,y:h*a}:{x:h*a,y:d*f}}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),a={x:n,y:o},f=await it(e,l),u=Z(q(i)),h=Pt(u);let d=a[h],p=a[u];if(r){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",x=d+f[w],b=d-f[g];d=At(x,d,b)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",x=p+f[w],b=p-f[g];p=At(x,p,b)}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:a=!0}=X(t,e),f={x:n,y:o},u=Z(i),h=Pt(u);let d=f[h],p=f[u];const m=X(c,e),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const b=h==="y"?"height":"width",y=r.reference[h]-r.floating[b]+w.mainAxis,v=r.reference[h]+r.reference[b]-w.mainAxis;d<y?d=y:d>v&&(d=v)}if(a){var g,x;const b=h==="y"?"width":"height",y=["top","left"].includes(q(i)),v=r.reference[u]-r.floating[b]+(y&&((g=s.offset)==null?void 0:g[u])||0)+(y?0:w.crossAxis),P=r.reference[u]+r.reference[b]+(y?0:((x=s.offset)==null?void 0:x[u])||0)-(y?w.crossAxis:0);p<v?p=v: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=()=>{},...a}=X(t,e),f=await it(e,a),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-f.top-f.bottom,b=p-f.left-f.right,y=U(m-f[w],x),v=U(p-f[g],b),P=!e.middlewareData.shift;let R=y,D=v;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(D=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(R=x),P&&!h){const T=N(f.left,0),M=N(f.right,0),$=N(f.top,0),C=N(f.bottom,0);d?D=p-2*(T!==0||M!==0?T+M:N(f.left,f.right)):R=m-2*($!==0||C!==0?$+C:N(f.top,f.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=ft(n)!==r||ft(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?ft(n.width):n.width)/o,c=(r?ft(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,a=(i.top+c.y)/s.y,f=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),b=g.left+(m.clientLeft+parseFloat(x.paddingLeft))*w.x,y=g.top+(m.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=b,a+=y,p=F(m),m=Dt(p)}}return pt({width:f,height:u,x:l,y:a})}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},a=B(1);const f=B(0),u=I(o);if((u||!u&&!r)&&((tt(o)!=="body"||rt(s))&&(l=gt(o)),I(o))){const d=G(o);a=nt(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const h=s&&!u&&!r?Zt(s,l,!0):B(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+h.x,y:n.y*a.y-l.scrollTop*a.y+f.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 a=Et();(!a||a&&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,a=o*r.y;return{width:s,height:c,x:l,y:a}}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(f=>f!==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((a,f)=>{const u=Kt(e,f,i);return a.top=N(u.top,a.top),a.right=U(u.right,a.right),a.bottom=U(u.bottom,a.bottom),a.left=N(u.left,a.left),a},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 a=i&&!o&&!r?Zt(i,c):B(0),f=s.left+c.scrollLeft-l.x-a.x,u=s.top+c.scrollTop-l.y-a.y;return{x:f,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:a,top:f,width:u,height:h}=t.getBoundingClientRect();if(c||e(),!u||!h)return;const d=ut(f),p=ut(i.clientWidth-(a+u)),m=ut(i.clientHeight-(f+h)),w=ut(a),x={rootMargin:-d+"px "+-p+"px "+-m+"px "+-w+"px",threshold:N(0,U(1,l))||1};let b=!0;function y(v){const P=v[0].intersectionRatio;if(P!==l){if(!b)return s();P?s(!1,P):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b=!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,a=Tt(t),f=i||r?[...a?st(a):[],...st(e)]:[];f.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const u=a&&c?sn(a,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(g=>{let[x]=g;x&&x.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),a&&!l&&d.observe(a),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;f.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,an=_e,fn=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:a}=t,[f,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(A=>{A!==P.current&&(P.current=A,m(A))},[]),b=yt(A=>{A!==R.current&&(R.current=A,g(A))},[]),y=r||p,v=s||w,P=J(null),R=J(null),D=J(f),k=l!=null,T=$t(l),M=$t(i),$=$t(a),C=yt(()=>{if(!P.current||!R.current)return;const A={placement:e,strategy:n,middleware:h};M.current&&(A.platform=M.current),hn(P.current,R.current,A).then(L=>{const _={...L,isPositioned:$.current!==!1};O.current&&!xt(D.current,_)&&(D.current=_,Ae(()=>{u(_)}))})},[h,e,n,M,$]);wt(()=>{a===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const O=J(!1);wt(()=>(O.current=!0,()=>{O.current=!1}),[]),wt(()=>{if(y&&(P.current=y),v&&(R.current=v),y&&v){if(T.current)return T.current(y,v,C);C()}},[y,v,C,T,k]);const H=lt(()=>({reference:P,floating:R,setReference:x,setFloating:b}),[x,b]),S=lt(()=>({reference:y,floating:v}),[y,v]),E=lt(()=>{const A={position:n,left:0,top:0};if(!S.floating)return A;const L=ne(S.floating,f.x),_=ne(S.floating,f.y);return c?{...A,transform:"translate("+L+"px, "+_+"px)",...ee(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:_}},[n,c,S.floating,f.x,f.y]);return lt(()=>({...f,update:C,refs:H,elements:S,floatingStyles:E}),[f,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)=>({...an(t),options:[t,e]}),yn=(t,e)=>({...pn(t),options:[t,e]}),vn=(t,e)=>({...fn(t),options:[t,e]}),bn=(t,e)=>({...un(t),options:[t,e]}),An=(t,e)=>({...dn(t),options:[t,e]}),Pn=(t,e)=>({...gn(t),options:[t,e]});var On="Arrow",oe=at((t,e)=>{const{children:n,width:o=10,height:i=5,...r}=t;return j(vt.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 bt(()=>{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,a=Array.isArray(l)?l[0]:l;s=a.inlineSize,c=a.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=at((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(vt.div,{...i,ref:c})});le.displayName=ce;var Nt="PopperContent",[Dn,Tn]=ie(Nt),ae=at((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:p,...m}=t,w=re(Nt,n),[g,x]=Y(null),b=zt(e,ot=>x(ot)),[y,v]=Y(null),P=Cn(y),R=P?.width??0,D=P?.height??0,k=o+(r!=="center"?"-"+r:""),T=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},M=Array.isArray(a)?a:[a],$=M.length>0,C={padding:T,boundary:M.filter(Mn),altBoundary:$},{refs:O,floatingStyles:H,placement:S,isPositioned:E,middlewareData:A}=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&&vn({...C}),bn({...C,apply:({elements:ot,rects:Ht,availableWidth:xe,availableHeight:ye})=>{const{width:ve,height:be}=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",`${ve}px`),ct.setProperty("--radix-popper-anchor-height",`${be}px`)}}),y&&Pn({element:y,padding:c}),$n({arrowWidth:R,arrowHeight:D}),h&&An({strategy:"referenceHidden",...C})]}),[L,_]=de(S),Ft=Re(p);bt(()=>{E&&Ft?.()},[E,Ft]);const pe=A.arrow?.x,he=A.arrow?.y,me=A.arrow?.centerOffset!==0,[ge,we]=Y();return bt(()=>{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"]:[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:j(Dn,{scope:n,placedSide:L,onArrowChange:v,arrowX:pe,arrowY:he,shouldHideArrow:me,children:j(vt.div,{"data-side":L,"data-align":_,...m,ref:b,style:{...m.style,animation:E?void 0:"none"}})})})});ae.displayName=Nt;var fe="PopperArrow",Ln={top:"bottom",right:"left",bottom:"top",left:"right"},ue=at(function(e,n){const{__scopePopper:o,...i}=e,r=Tn(fe,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=fe;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,[a,f]=de(n),u={start:"0%",center:"50%",end:"100%"}[f],h=(i.arrow?.x??0)+c/2,d=(i.arrow?.y??0)+l/2;let p="",m="";return a==="bottom"?(p=s?u:`${h}px`,m=`${-l}px`):a==="top"?(p=s?u:`${h}px`,m=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,m=s?u:`${d}px`):a==="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=ae,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,f as Ae,T as lt,_ as Pe,y as Wt,A as at,u as j}from"./register-BYh2OfV6.js";import{P as vt}from"./index-CupBoFnh.js";import{u as zt}from"./index-DafmKHgW.js";import{c as Oe}from"./index-RM9-LENO.js";import{u as Re}from"./index-B2X7C63E.js";import{u as bt}from"./index-B8bdq6NU.js";const Ce=["top","right","bottom","left"],U=Math.min,N=Math.max,ft=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 At(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),a=r==="y",f=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:f,y:o.y-i.height};break;case"bottom":d={x:f,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&&a?-1:1);break;case"end":d[s]+=h*(n&&a?-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 a=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=Bt(a,o,l),h=o,d={},p=0;for(let m=0;m<c.length;m++){const{name:w,fn:g}=c[m],{x,y:b,data:y,reset:v}=await g({x:f,y:u,initialPlacement:o,placement:h,strategy:i,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,u=b??u,d={...d,[w]:{...d[w],...y}},v&&p<=50&&(p++,typeof v=="object"&&(v.placement&&(h=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:f,y:u}=Bt(a,h,l)),m=-1)}return{x:f,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:a="clippingAncestors",rootBoundary:f="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:a,rootBoundary:f,strategy:l})),x=u==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),y=await(r.isElement==null?void 0:r.isElement(b))?await(r.getScale==null?void 0:r.getScale(b))||{x:1,y:1}:{x:1,y:1},v=pt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:l}):x);return{top:(g.top-v.top+p.top)/y.y,bottom:(v.bottom-g.bottom+p.bottom)/y.y,left:(g.left-v.left+p.left)/y.x,right:(v.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:a,padding:f=0}=X(t,e)||{};if(a==null)return{};const u=_t(f),h={x:n,y:o},d=Rt(i),p=Ot(d),m=await s.getDimensions(a),w=d==="y",g=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",y=r.reference[p]+r.reference[d]-h[d]-r.floating[p],v=h[d]-r.reference[d],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let R=P?P[b]:0;(!R||!await(s.isElement==null?void 0:s.isElement(P)))&&(R=c.floating[b]||r.floating[p]);const D=y/2-v/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=At($,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:a}=e,{mainAxis:f=!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),b=q(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=h||(b||!m?[dt(c)]:Te(c)),P=p!=="none";!h&&P&&v.push(...Me(c,m,p,y));const R=[c,...v],D=await it(e,w),k=[];let T=((o=r.flip)==null?void 0:o.overflows)||[];if(f&&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,A)=>E.overflows[1]-A.overflows[1])[0])==null?void 0:$.placement;if(!S)switch(d){case"bestFit":{var C;const E=(C=T.filter(A=>{if(P){const L=Z(A.placement);return L===x||L==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(L=>L>0).reduce((L,_)=>L+_,0)]).sort((A,L)=>A[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",a=["left","top"].includes(s)?-1:1,f=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*f,y:h*a}:{x:h*a,y:d*f}}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),a={x:n,y:o},f=await it(e,l),u=Z(q(i)),h=Pt(u);let d=a[h],p=a[u];if(r){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",x=d+f[w],b=d-f[g];d=At(x,d,b)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",x=p+f[w],b=p-f[g];p=At(x,p,b)}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:a=!0}=X(t,e),f={x:n,y:o},u=Z(i),h=Pt(u);let d=f[h],p=f[u];const m=X(c,e),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const b=h==="y"?"height":"width",y=r.reference[h]-r.floating[b]+w.mainAxis,v=r.reference[h]+r.reference[b]-w.mainAxis;d<y?d=y:d>v&&(d=v)}if(a){var g,x;const b=h==="y"?"width":"height",y=["top","left"].includes(q(i)),v=r.reference[u]-r.floating[b]+(y&&((g=s.offset)==null?void 0:g[u])||0)+(y?0:w.crossAxis),P=r.reference[u]+r.reference[b]+(y?0:((x=s.offset)==null?void 0:x[u])||0)-(y?w.crossAxis:0);p<v?p=v: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=()=>{},...a}=X(t,e),f=await it(e,a),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-f.top-f.bottom,b=p-f.left-f.right,y=U(m-f[w],x),v=U(p-f[g],b),P=!e.middlewareData.shift;let R=y,D=v;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(D=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(R=x),P&&!h){const T=N(f.left,0),M=N(f.right,0),$=N(f.top,0),C=N(f.bottom,0);d?D=p-2*(T!==0||M!==0?T+M:N(f.left,f.right)):R=m-2*($!==0||C!==0?$+C:N(f.top,f.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=ft(n)!==r||ft(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?ft(n.width):n.width)/o,c=(r?ft(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,a=(i.top+c.y)/s.y,f=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),b=g.left+(m.clientLeft+parseFloat(x.paddingLeft))*w.x,y=g.top+(m.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=b,a+=y,p=F(m),m=Dt(p)}}return pt({width:f,height:u,x:l,y:a})}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},a=B(1);const f=B(0),u=I(o);if((u||!u&&!r)&&((tt(o)!=="body"||rt(s))&&(l=gt(o)),I(o))){const d=G(o);a=nt(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const h=s&&!u&&!r?Zt(s,l,!0):B(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+h.x,y:n.y*a.y-l.scrollTop*a.y+f.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 a=Et();(!a||a&&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,a=o*r.y;return{width:s,height:c,x:l,y:a}}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(f=>f!==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((a,f)=>{const u=Kt(e,f,i);return a.top=N(u.top,a.top),a.right=U(u.right,a.right),a.bottom=U(u.bottom,a.bottom),a.left=N(u.left,a.left),a},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 a=i&&!o&&!r?Zt(i,c):B(0),f=s.left+c.scrollLeft-l.x-a.x,u=s.top+c.scrollTop-l.y-a.y;return{x:f,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:a,top:f,width:u,height:h}=t.getBoundingClientRect();if(c||e(),!u||!h)return;const d=ut(f),p=ut(i.clientWidth-(a+u)),m=ut(i.clientHeight-(f+h)),w=ut(a),x={rootMargin:-d+"px "+-p+"px "+-m+"px "+-w+"px",threshold:N(0,U(1,l))||1};let b=!0;function y(v){const P=v[0].intersectionRatio;if(P!==l){if(!b)return s();P?s(!1,P):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b=!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,a=Tt(t),f=i||r?[...a?st(a):[],...st(e)]:[];f.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const u=a&&c?sn(a,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(g=>{let[x]=g;x&&x.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),a&&!l&&d.observe(a),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;f.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,an=_e,fn=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:a}=t,[f,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(A=>{A!==P.current&&(P.current=A,m(A))},[]),b=yt(A=>{A!==R.current&&(R.current=A,g(A))},[]),y=r||p,v=s||w,P=J(null),R=J(null),D=J(f),k=l!=null,T=$t(l),M=$t(i),$=$t(a),C=yt(()=>{if(!P.current||!R.current)return;const A={placement:e,strategy:n,middleware:h};M.current&&(A.platform=M.current),hn(P.current,R.current,A).then(L=>{const _={...L,isPositioned:$.current!==!1};O.current&&!xt(D.current,_)&&(D.current=_,Ae(()=>{u(_)}))})},[h,e,n,M,$]);wt(()=>{a===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const O=J(!1);wt(()=>(O.current=!0,()=>{O.current=!1}),[]),wt(()=>{if(y&&(P.current=y),v&&(R.current=v),y&&v){if(T.current)return T.current(y,v,C);C()}},[y,v,C,T,k]);const H=lt(()=>({reference:P,floating:R,setReference:x,setFloating:b}),[x,b]),S=lt(()=>({reference:y,floating:v}),[y,v]),E=lt(()=>{const A={position:n,left:0,top:0};if(!S.floating)return A;const L=ne(S.floating,f.x),_=ne(S.floating,f.y);return c?{...A,transform:"translate("+L+"px, "+_+"px)",...ee(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:_}},[n,c,S.floating,f.x,f.y]);return lt(()=>({...f,update:C,refs:H,elements:S,floatingStyles:E}),[f,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)=>({...an(t),options:[t,e]}),yn=(t,e)=>({...pn(t),options:[t,e]}),vn=(t,e)=>({...fn(t),options:[t,e]}),bn=(t,e)=>({...un(t),options:[t,e]}),An=(t,e)=>({...dn(t),options:[t,e]}),Pn=(t,e)=>({...gn(t),options:[t,e]});var On="Arrow",oe=at((t,e)=>{const{children:n,width:o=10,height:i=5,...r}=t;return j(vt.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 bt(()=>{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,a=Array.isArray(l)?l[0]:l;s=a.inlineSize,c=a.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=at((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(vt.div,{...i,ref:c})});le.displayName=ce;var Nt="PopperContent",[Dn,Tn]=ie(Nt),ae=at((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:p,...m}=t,w=re(Nt,n),[g,x]=Y(null),b=zt(e,ot=>x(ot)),[y,v]=Y(null),P=Cn(y),R=P?.width??0,D=P?.height??0,k=o+(r!=="center"?"-"+r:""),T=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},M=Array.isArray(a)?a:[a],$=M.length>0,C={padding:T,boundary:M.filter(Mn),altBoundary:$},{refs:O,floatingStyles:H,placement:S,isPositioned:E,middlewareData:A}=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&&vn({...C}),bn({...C,apply:({elements:ot,rects:Ht,availableWidth:xe,availableHeight:ye})=>{const{width:ve,height:be}=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",`${ve}px`),ct.setProperty("--radix-popper-anchor-height",`${be}px`)}}),y&&Pn({element:y,padding:c}),$n({arrowWidth:R,arrowHeight:D}),h&&An({strategy:"referenceHidden",...C})]}),[L,_]=de(S),Ft=Re(p);bt(()=>{E&&Ft?.()},[E,Ft]);const pe=A.arrow?.x,he=A.arrow?.y,me=A.arrow?.centerOffset!==0,[ge,we]=Y();return bt(()=>{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"]:[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:j(Dn,{scope:n,placedSide:L,onArrowChange:v,arrowX:pe,arrowY:he,shouldHideArrow:me,children:j(vt.div,{"data-side":L,"data-align":_,...m,ref:b,style:{...m.style,animation:E?void 0:"none"}})})})});ae.displayName=Nt;var fe="PopperArrow",Ln={top:"bottom",right:"left",bottom:"top",left:"right"},ue=at(function(e,n){const{__scopePopper:o,...i}=e,r=Tn(fe,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=fe;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,[a,f]=de(n),u={start:"0%",center:"50%",end:"100%"}[f],h=(i.arrow?.x??0)+c/2,d=(i.arrow?.y??0)+l/2;let p="",m="";return a==="bottom"?(p=s?u:`${h}px`,m=`${-l}px`):a==="top"?(p=s?u:`${h}px`,m=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,m=s?u:`${d}px`):a==="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=ae,Hn=ue;export{Nn as A,Fn as C,kn as R,Hn as a,Sn as c};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{_ as d,y as r,h as c,c as l}from"./register-BYh2OfV6.js";/**
|
|
2
|
+
* @reach/utils v0.18.0
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2018-2022, React Training LLC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/function s(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var m=s()?d:r,t=!1,w=0;function o(){return++w}var i=l["useId".toString()];function I(e){if(i!==void 0){let f=i();return e??f}let u=e??(t?o():null),[n,a]=c(u);return m(()=>{n===null&&a(o())},[]),r(()=>{t===!1&&(t=!0)},[]),e??n??void 0}export{I as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as y}from"./register-BYh2OfV6.js";y("@layer optiaxiom, optiaxiom.theme, optiaxiom.base, optiaxiom._1y14oqf, optiaxiom._12pgibx;");const u=({base:n={},variants:r,variantsCompounded:e=[]})=>(l,f)=>{const i=l??{},c=f?[f]:[],p={};function s(o){for(const t of Array.isArray(o)?o:[o])if(typeof t=="string")c.push(t);else for(const[a,m]of Object.entries(t))p[a]=m}s(n);for(const o in r){if(i[o]===null||i[o]===void 0)continue;const t=r[o],a=typeof i[o]=="boolean"?i[o]?"true":"false":i[o];String(a)in t&&s(t[a])}for(const{style:o,variants:t}of e)x(t,i)&&s(o);return{...p,className:c.join(" ")}},x=(n,r)=>{for(const e of Object.keys(n))if(n[e]!==r[e])return!1;return!0};export{u as y};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{m as Wt}from"./mapping-cxkgj24R.js";var V,p,Ae,T,Fe,Ie,ae,We,ce,se,fe,Ve,B={},Be=[],Vt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Q=Array.isArray;function w(e,t){for(var n in t)e[n]=t[n];return e}function pe(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function C(e,t,n){var _,r,o,i={};for(o in t)o=="key"?_=t[o]:o=="ref"?r=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?V.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return j(e,i,_,r,null)}function j(e,t,n,_,r){var o={type:e,props:t,key:n,ref:_,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++Ae,__i:-1,__u:0};return r==null&&p.vnode!=null&&p.vnode(o),o}function je(){return{current:null}}function $(e){return e.children}function E(e,t){this.props=e,this.context=t}function H(e,t){if(t==null)return e.__?H(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?H(e):null}function ze(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ze(e)}}function de(e){(!e.__d&&(e.__d=!0)&&T.push(e)&&!X.__r++||Fe!==p.debounceRendering)&&((Fe=p.debounceRendering)||Ie)(X)}function X(){var e,t,n,_,r,o,i,l;for(T.sort(ae);e=T.shift();)e.__d&&(t=T.length,_=void 0,o=(r=(n=e).__v).__e,i=[],l=[],n.__P&&((_=w({},r)).__v=r.__v+1,p.vnode&&p.vnode(_),he(n.__P,_,r,n.__n,n.__P.namespaceURI,32&r.__u?[o]:null,i,o??H(r),!!(32&r.__u),l),_.__v=r.__v,_.__.__k[_.__i]=_,Ze(i,_,l),_.__e!=o&&ze(_)),T.length>t&&T.sort(ae));X.__r=0}function qe(e,t,n,_,r,o,i,l,a,c,f){var u,d,s,b,k,g,v=_&&_.__k||Be,m=t.length;for(a=Bt(n,t,v,a),u=0;u<m;u++)(s=n.__k[u])!=null&&(d=s.__i===-1?B:v[s.__i]||B,s.__i=u,g=he(e,s,d,r,o,i,l,a,c,f),b=s.__e,s.ref&&d.ref!=s.ref&&(d.ref&&ve(d.ref,null,s),f.push(s.ref,s.__c||b,s)),k==null&&b!=null&&(k=b),4&s.__u||d.__k===s.__k?a=Ge(s,a,e):typeof s.type=="function"&&g!==void 0?a=g:b&&(a=b.nextSibling),s.__u&=-7);return n.__e=k,a}function Bt(e,t,n,_){var r,o,i,l,a,c=t.length,f=n.length,u=f,d=0;for(e.__k=[],r=0;r<c;r++)(o=t[r])!=null&&typeof o!="boolean"&&typeof o!="function"?(l=r+d,(o=e.__k[r]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?j(null,o,null,null,null):Q(o)?j($,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?j(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,(a=o.__i=jt(o,n,l,u))!==-1&&(u--,(i=n[a])&&(i.__u|=2)),i==null||i.__v===null?(a==-1&&d--,typeof o.type!="function"&&(o.__u|=4)):a!==l&&(a==l-1?d--:a==l+1?d++:(a>l?d--:d++,o.__u|=4))):o=e.__k[r]=null;if(u)for(r=0;r<f;r++)(i=n[r])!=null&&!(2&i.__u)&&(i.__e==_&&(_=H(i)),Ke(i,i));return _}function Ge(e,t,n){var _,r;if(typeof e.type=="function"){for(_=e.__k,r=0;_&&r<_.length;r++)_[r]&&(_[r].__=e,t=Ge(_[r],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=H(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function S(e,t){return t=t||[],e==null||typeof e=="boolean"||(Q(e)?e.some(function(n){S(n,t)}):t.push(e)),t}function jt(e,t,n,_){var r=e.key,o=e.type,i=n-1,l=n+1,a=t[n];if(a===null||a&&r==a.key&&o===a.type&&!(2&a.__u))return n;if((typeof o!="function"||o===$||r)&&_>(a!=null&&!(2&a.__u)?1:0))for(;i>=0||l<t.length;){if(i>=0){if((a=t[i])&&!(2&a.__u)&&r==a.key&&o===a.type)return i;i--}if(l<t.length){if((a=t[l])&&!(2&a.__u)&&r==a.key&&o===a.type)return l;l++}}return-1}function Je(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Vt.test(t)?n:n+"px"}function ee(e,t,n,_,r){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof _=="string"&&(e.style.cssText=_=""),_)for(t in _)n&&t in n||Je(e.style,t,"");if(n)for(t in n)_&&n[t]===_[t]||Je(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(We,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?_?n.u=_.u:(n.u=ce,e.addEventListener(t,o?fe:se,o)):e.removeEventListener(t,o?fe:se,o);else{if(r=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Ye(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ce++;else if(t.t<n.u)return;return n(p.event?p.event(t):t)}}}function he(e,t,n,_,r,o,i,l,a,c){var f,u,d,s,b,k,g,v,m,F,R,Z,I,Oe,K,ie,le,x=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(a=!!(32&n.__u),o=[l=t.__e=n.__e]),(f=p.__b)&&f(t);e:if(typeof x=="function")try{if(v=t.props,m="prototype"in x&&x.prototype.render,F=(f=x.contextType)&&_[f.__c],R=f?F?F.props.value:f.__:_,n.__c?g=(u=t.__c=n.__c).__=u.__E:(m?t.__c=u=new x(v,R):(t.__c=u=new E(v,R),u.constructor=x,u.render=qt),F&&F.sub(u),u.props=v,u.state||(u.state={}),u.context=R,u.__n=_,d=u.__d=!0,u.__h=[],u._sb=[]),m&&u.__s==null&&(u.__s=u.state),m&&x.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=w({},u.__s)),w(u.__s,x.getDerivedStateFromProps(v,u.__s))),s=u.props,b=u.state,u.__v=t,d)m&&x.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),m&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(m&&x.getDerivedStateFromProps==null&&v!==s&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,R),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,R)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(W){W&&(W.__=t)}),Z=0;Z<u._sb.length;Z++)u.__h.push(u._sb[Z]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,R),m&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(s,b,k)})}if(u.context=R,u.props=v,u.__P=e,u.__e=!1,I=p.__r,Oe=0,m){for(u.state=u.__s,u.__d=!1,I&&I(t),f=u.render(u.props,u.state,u.context),K=0;K<u._sb.length;K++)u.__h.push(u._sb[K]);u._sb=[]}else do u.__d=!1,I&&I(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++Oe<25);u.state=u.__s,u.getChildContext!=null&&(_=w(w({},_),u.getChildContext())),m&&!d&&u.getSnapshotBeforeUpdate!=null&&(k=u.getSnapshotBeforeUpdate(s,b)),l=qe(e,Q(ie=f!=null&&f.type===$&&f.key==null?f.props.children:f)?ie:[ie],t,n,_,r,o,i,l,a,c),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),g&&(u.__E=u.__=null)}catch(W){if(t.__v=null,a||o!=null)if(W.then){for(t.__u|=a?160:128;l&&l.nodeType===8&&l.nextSibling;)l=l.nextSibling;o[o.indexOf(l)]=null,t.__e=l}else for(le=o.length;le--;)pe(o[le]);else t.__e=n.__e,t.__k=n.__k;p.__e(W,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):l=t.__e=zt(n.__e,t,n,_,r,o,i,a,c);return(f=p.diffed)&&f(t),128&t.__u?void 0:l}function Ze(e,t,n){for(var _=0;_<n.length;_++)ve(n[_],n[++_],n[++_]);p.__c&&p.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(o){o.call(r)})}catch(o){p.__e(o,r.__v)}})}function zt(e,t,n,_,r,o,i,l,a){var c,f,u,d,s,b,k,g=n.props,v=t.props,m=t.type;if(m==="svg"?r="http://www.w3.org/2000/svg":m==="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((s=o[c])&&"setAttribute"in s==!!m&&(m?s.localName===m:s.nodeType===3)){e=s,o[c]=null;break}}if(e==null){if(m===null)return document.createTextNode(v);e=document.createElementNS(r,m,v.is&&v),l&&(p.__m&&p.__m(t,o),l=!1),o=null}if(m===null)g===v||l&&e.data===v||(e.data=v);else{if(o=o&&V.call(e.childNodes),g=n.props||B,!l&&o!=null)for(g={},c=0;c<e.attributes.length;c++)g[(s=e.attributes[c]).name]=s.value;for(c in g)if(s=g[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=s;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;ee(e,c,null,s,r)}}for(c in v)s=v[c],c=="children"?d=s:c=="dangerouslySetInnerHTML"?f=s:c=="value"?b=s:c=="checked"?k=s:l&&typeof s!="function"||g[c]===s||ee(e,c,s,g[c],r);if(f)l||u&&(f.__html===u.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(u&&(e.innerHTML=""),qe(e,Q(d)?d:[d],t,n,_,m==="foreignObject"?"http://www.w3.org/1999/xhtml":r,o,i,o?o[0]:n.__k&&H(n,0),l,a),o!=null)for(c=o.length;c--;)pe(o[c]);l||(c="value",m==="progress"&&b==null?e.removeAttribute("value"):b!==void 0&&(b!==e[c]||m==="progress"&&!b||m==="option"&&b!==g[c])&&ee(e,c,b,g[c],r),c="checked",k!==void 0&&k!==e[c]&&ee(e,c,k,g[c],r))}return e}function ve(e,t,n){try{if(typeof e=="function"){var _=typeof e.__u=="function";_&&e.__u(),_&&t==null||(e.__u=e(t))}else e.current=t}catch(r){p.__e(r,n)}}function Ke(e,t,n){var _,r;if(p.unmount&&p.unmount(e),(_=e.ref)&&(_.current&&_.current!==e.__e||ve(_,null,t)),(_=e.__c)!=null){if(_.componentWillUnmount)try{_.componentWillUnmount()}catch(o){p.__e(o,t)}_.base=_.__P=null}if(_=e.__k)for(r=0;r<_.length;r++)_[r]&&Ke(_[r],t,n||typeof e.type!="function");n||pe(e.__e),e.__c=e.__=e.__e=void 0}function qt(e,t,n){return this.constructor(e,n)}function z(e,t,n){var _,r,o,i;t===document&&(t=document.documentElement),p.__&&p.__(e,t),r=(_=typeof n=="function")?null:n&&n.__k||t.__k,o=[],i=[],he(t,e=(!_&&n||t).__k=C($,null,[e]),r||B,B,t.namespaceURI,!_&&n?[n]:r?null:t.firstChild?V.call(t.childNodes):null,o,!_&&n?n:r?r.__e:t.firstChild,_,i),Ze(o,e,i)}function Qe(e,t){z(e,t,Qe)}function Gt(e,t,n){var _,r,o,i,l=w({},e.props);for(o in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)o=="key"?_=t[o]:o=="ref"?r=t[o]:l[o]=t[o]===void 0&&i!==void 0?i[o]:t[o];return arguments.length>2&&(l.children=arguments.length>3?V.call(arguments,2):n),j(e.type,l,_||e.key,r||e.ref,null)}function me(e,t){var n={__c:t="__cC"+Ve++,__:e,Consumer:function(_,r){return _.children(r)},Provider:function(_){var r,o;return this.getChildContext||(r=new Set,(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&r.forEach(function(l){l.__e=!0,de(l)})},this.sub=function(i){r.add(i);var l=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),l&&l.call(i)}}),_.children}};return n.Provider.__=n.Consumer.contextType=n}V=Be.slice,p={__e:function(e,t,n,_){for(var r,o,i;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&o.getDerivedStateFromError!=null&&(r.setState(o.getDerivedStateFromError(e)),i=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,_||{}),i=r.__d),i)return r.__E=r}catch(l){e=l}throw e}},Ae=0,E.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=w({},this.state),typeof e=="function"&&(e=e(w({},n),this.props)),e&&w(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),de(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),de(this))},E.prototype.render=$,T=[],Ie=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ae=function(e,t){return e.__v.__b-t.__v.__b},X.__r=0,We=/(PointerCapture)$|Capture$/i,ce=0,se=Ye(!1),fe=Ye(!0),Ve=0;var Jt=0;function Yt(e,t,n,_,r,o){t||(t={});var i,l,a=t;"ref"in t&&(i=t.ref,delete t.ref);var c={type:e,props:a,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Jt,__i:-1,__u:0,__source:r,__self:o};if(typeof e=="function"&&(i=e.defaultProps))for(l in i)a[l]===void 0&&(a[l]=i[l]);return p.vnode&&p.vnode(c),c}var N,h,ye,Xe,L=0,et=[],y=p,tt=y.__b,nt=y.__r,_t=y.diffed,rt=y.__c,ot=y.unmount,ut=y.__;function U(e,t){y.__h&&y.__h(h,e,L||t),L=0;var n=h.__H||(h.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function D(e){return L=1,q(lt,e)}function q(e,t,n){var _=U(N++,2);if(_.t=e,!_.__c&&(_.__=[n?n(t):lt(void 0,t),function(l){var a=_.__N?_.__N[0]:_.__[0],c=_.t(a,l);a!==c&&(_.__N=[c,_.__[1]],_.__c.setState({}))}],_.__c=h,!h.u)){var r=function(l,a,c){if(!_.__c.__H)return!0;var f=_.__c.__H.__.filter(function(d){return!!d.__c});if(f.every(function(d){return!d.__N}))return!o||o.call(this,l,a,c);var u=_.__c.props!==l;return f.forEach(function(d){if(d.__N){var s=d.__[0];d.__=d.__N,d.__N=void 0,s!==d.__[0]&&(u=!0)}}),o&&o.call(this,l,a,c)||u};h.u=!0;var o=h.shouldComponentUpdate,i=h.componentWillUpdate;h.componentWillUpdate=function(l,a,c){if(this.__e){var f=o;o=void 0,r(l,a,c),o=f}i&&i.call(this,l,a,c)},h.shouldComponentUpdate=r}return _.__N||_.__}function G(e,t){var n=U(N++,3);!y.__s&&ke(n.__H,t)&&(n.__=e,n.i=t,h.__H.__h.push(n))}function P(e,t){var n=U(N++,4);!y.__s&&ke(n.__H,t)&&(n.__=e,n.i=t,h.__h.push(n))}function te(e){return L=5,M(function(){return{current:e}},[])}function be(e,t,n){L=6,P(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function M(e,t){var n=U(N++,7);return ke(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ne(e,t){return L=8,M(function(){return e},t)}function _e(e){var t=h.context[e.__c],n=U(N++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(h)),t.props.value):e.__}function ge(e,t){y.useDebugValue&&y.useDebugValue(t?t(e):e)}function Zt(e){var t=U(N++,10),n=D();return t.__=e,h.componentDidCatch||(h.componentDidCatch=function(_,r){t.__&&t.__(_,r),n[1](_)}),[n[0],function(){n[1](void 0)}]}function Ce(){var e=U(N++,11);if(!e.__){for(var t=h.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Kt(){for(var e;e=et.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(re),e.__H.__h.forEach($e),e.__H.__h=[]}catch(t){e.__H.__h=[],y.__e(t,e.__v)}}y.__b=function(e){h=null,tt&&tt(e)},y.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ut&&ut(e,t)},y.__r=function(e){nt&&nt(e),N=0;var t=(h=e.__c).__H;t&&(ye===h?(t.__h=[],h.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(re),t.__h.forEach($e),t.__h=[],N=0)),ye=h},y.diffed=function(e){_t&&_t(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(et.push(t)!==1&&Xe===y.requestAnimationFrame||((Xe=y.requestAnimationFrame)||Qt)(Kt)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),ye=h=null},y.__c=function(e,t){t.some(function(n){try{n.__h.forEach(re),n.__h=n.__h.filter(function(_){return!_.__||$e(_)})}catch(_){t.some(function(r){r.__h&&(r.__h=[])}),t=[],y.__e(_,n.__v)}}),rt&&rt(e,t)},y.unmount=function(e){ot&&ot(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(_){try{re(_)}catch(r){t=r}}),n.__H=void 0,t&&y.__e(t,n.__v))};var it=typeof requestAnimationFrame=="function";function Qt(e){var t,n=function(){clearTimeout(_),it&&cancelAnimationFrame(t),setTimeout(e)},_=setTimeout(n,100);it&&(t=requestAnimationFrame(n))}function re(e){var t=h,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),h=t}function $e(e){var t=h;e.__c=e.__(),h=t}function ke(e,t){return!e||e.length!==t.length||t.some(function(n,_){return n!==e[_]})}function lt(e,t){return typeof t=="function"?t(e):t}function Ee(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var _ in t)if(_!=="__source"&&e[_]!==t[_])return!0;return!1}function xe(e,t){var n=t(),_=D({t:{__:n,u:t}}),r=_[0].t,o=_[1];return P(function(){r.__=n,r.u=t,we(r)&&o({t:r})},[e,n,t]),G(function(){return we(r)&&o({t:r}),e(function(){we(r)&&o({t:r})})},[e]),n}function we(e){var t,n,_=e.u,r=e.__;try{var o=_();return!((t=r)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function Se(e){e()}function Ne(e){return e}function Pe(){return[!1,Se]}var Re=P;function oe(e,t){this.props=e,this.context=t}function at(e,t){function n(r){var o=this.props.ref,i=o==r.ref;return!i&&o&&(o.call?o(null):o.current=null),t?!t(this.props,r)||!i:Ee(this.props,r)}function _(r){return this.shouldComponentUpdate=n,C(e,r)}return _.displayName="Memo("+(e.displayName||e.name)+")",_.prototype.isReactComponent=!0,_.__f=!0,_}(oe.prototype=new E).isPureReactComponent=!0,oe.prototype.shouldComponentUpdate=function(e,t){return Ee(this.props,e)||Ee(this.state,t)};var ct=p.__b;p.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ct&&ct(e)};var Xt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ue(e){function t(n){if(!("ref"in n))return e(n,null);var _=n.ref;delete n.ref;var r=e(n,_);return n.ref=_,r}return t.$$typeof=Xt,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var st=function(e,t){return e==null?null:S(S(e).map(t))},Te={map:st,forEach:st,count:function(e){return e?S(e).length:0},only:function(e){var t=S(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:S},en=p.__e;p.__e=function(e,t,n,_){if(e.then){for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}en(e,t,n,_)};var ft=p.unmount;function pt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(_){typeof _.__c=="function"&&_.__c()}),e.__c.__H=null),(e=function(_,r){for(var o in r)_[o]=r[o];return _}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(_){return pt(_,t,n)})),e}function dt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(_){return dt(_,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function J(){this.__u=0,this.o=null,this.__b=null}function ht(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function vt(e){var t,n,_;function r(o){if(t||(t=e()).then(function(i){n=i.default||i},function(i){_=i}),_)throw _;if(!n)throw t;return C(n,o)}return r.displayName="Lazy",r.__f=!0,r}function O(){this.i=null,this.l=null}p.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ft&&ft(e)},(J.prototype=new E).__c=function(e,t){var n=t.__c,_=this;_.o==null&&(_.o=[]),_.o.push(n);var r=ht(_.__v),o=!1,i=function(){o||(o=!0,n.__R=null,r?r(l):l())};n.__R=i;var l=function(){if(!--_.__u){if(_.state.__a){var a=_.state.__a;_.__v.__k[0]=dt(a,a.__c.__P,a.__c.__O)}var c;for(_.setState({__a:_.__b=null});c=_.o.pop();)c.forceUpdate()}};_.__u++||32&t.__u||_.setState({__a:_.__b=_.__v.__k[0]}),e.then(i,i)},J.prototype.componentWillUnmount=function(){this.o=[]},J.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),_=this.__v.__k[0].__c;this.__v.__k[0]=pt(this.__b,n,_.__O=_.__P)}this.__b=null}var r=t.__a&&C($,null,e.fallback);return r&&(r.__u&=-33),[C($,null,t.__a?null:e.children),r]};var mt=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function tn(e){return this.getChildContext=function(){return e.context},e.children}function nn(e){var t=this,n=e.h;t.componentWillUnmount=function(){z(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(_){this.childNodes.push(_),t.h.appendChild(_)},insertBefore:function(_,r){this.childNodes.push(_),t.h.insertBefore(_,r)},removeChild:function(_){this.childNodes.splice(this.childNodes.indexOf(_)>>>1,1),t.h.removeChild(_)}}),z(C(tn,{context:t.context},e.__v),t.v)}function Ue(e,t){var n=C(nn,{__v:e,h:t});return n.containerInfo=t,n}(O.prototype=new E).__a=function(e){var t=this,n=ht(t.__v),_=t.l.get(e);return _[0]++,function(r){var o=function(){t.props.revealOrder?(_.push(r),mt(t,e,_)):r()};n?n(o):o()}},O.prototype.render=function(e){this.i=null,this.l=new Map;var t=S(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},O.prototype.componentDidUpdate=O.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){mt(e,n,t)})};var yt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,_n=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,rn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,on=/[A-Z0-9]/g,un=typeof document<"u",ln=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function He(e,t,n){return t.__k==null&&(t.textContent=""),z(e,t),typeof n=="function"&&n(),e?e.__c:null}function bt(e,t,n){return Qe(e,t),typeof n=="function"&&n(),e?e.__c:null}E.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(E.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var gt=p.event;function an(){}function cn(){return this.cancelBubble}function sn(){return this.defaultPrevented}p.event=function(e){return gt&&(e=gt(e)),e.persist=an,e.isPropagationStopped=cn,e.isDefaultPrevented=sn,e.nativeEvent=e};var Le,fn={enumerable:!1,configurable:!0,get:function(){return this.class}},Ct=p.vnode;p.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,_=t.type,r={},o=_.indexOf("-")===-1;for(var i in n){var l=n[i];if(!(i==="value"&&"defaultValue"in n&&l==null||un&&i==="children"&&_==="noscript"||i==="class"||i==="className")){var a=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&l===!0?l="":a==="translate"&&l==="no"?l=!1:a[0]==="o"&&a[1]==="n"?a==="ondoubleclick"?i="ondblclick":a!=="onchange"||_!=="input"&&_!=="textarea"||ln(n.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":rn.test(i)&&(i=a):a=i="oninput":o&&_n.test(i)?i=i.replace(on,"-$&").toLowerCase():l===null&&(l=void 0),a==="oninput"&&r[i=a]&&(i="oninputCapture"),r[i]=l}}_=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=S(n.children).forEach(function(c){c.props.selected=r.value.indexOf(c.props.value)!=-1})),_=="select"&&r.defaultValue!=null&&(r.value=S(n.children).forEach(function(c){c.props.selected=r.multiple?r.defaultValue.indexOf(c.props.value)!=-1:r.defaultValue==c.props.value})),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",fn)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),t.props=r}(e),e.$$typeof=yt,Ct&&Ct(e)};var $t=p.__r;p.__r=function(e){$t&&$t(e),Le=e.__c};var kt=p.diffed;p.diffed=function(e){kt&&kt(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Le=null};var Et={ReactCurrentDispatcher:{current:{readContext:function(e){return Le.__n[e.__c].props.value},useCallback:ne,useContext:_e,useDebugValue:ge,useDeferredValue:Ne,useEffect:G,useId:Ce,useImperativeHandle:be,useInsertionEffect:Re,useLayoutEffect:P,useMemo:M,useReducer:q,useRef:te,useState:D,useSyncExternalStore:xe,useTransition:Pe}}},pn="18.3.1";function xt(e){return C.bind(null,e)}function A(e){return!!e&&e.$$typeof===yt}function wt(e){return A(e)&&e.type===$}function St(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Y(e){return A(e)?Gt.apply(null,arguments):e}function De(e){return!!e.__k&&(z(null,e),!0)}function Nt(e){return e&&(e.base||e.nodeType===1&&e)||null}var Pt=function(e,t){return e(t)},Me=function(e,t){return e(t)},Rt=$,Tt=A,Ut={useState:D,useId:Ce,useReducer:q,useEffect:G,useLayoutEffect:P,useInsertionEffect:Re,useTransition:Pe,useDeferredValue:Ne,useSyncExternalStore:xe,startTransition:Se,useRef:te,useImperativeHandle:be,useMemo:M,useCallback:ne,useContext:_e,useDebugValue:ge,version:"18.3.1",Children:Te,render:He,hydrate:bt,unmountComponentAtNode:De,createPortal:Ue,createElement:C,createContext:me,createFactory:xt,cloneElement:Y,createRef:je,Fragment:$,isValidElement:A,isElement:Tt,isFragment:wt,isMemo:St,findDOMNode:Nt,Component:E,PureComponent:oe,memo:at,forwardRef:ue,flushSync:Me,unstable_batchedUpdates:Pt,StrictMode:Rt,Suspense:J,SuspenseList:O,lazy:vt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Et},dn=Object.freeze({__proto__:null,Children:Te,Component:E,Fragment:$,PureComponent:oe,StrictMode:Rt,Suspense:J,SuspenseList:O,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Et,cloneElement:Y,createContext:me,createElement:C,createFactory:xt,createPortal:Ue,createRef:je,default:Ut,findDOMNode:Nt,flushSync:Me,forwardRef:ue,hydrate:bt,isElement:Tt,isFragment:wt,isMemo:St,isValidElement:A,lazy:vt,memo:at,render:He,startTransition:Se,unmountComponentAtNode:De,unstable_batchedUpdates:Pt,useCallback:ne,useContext:_e,useDebugValue:ge,useDeferredValue:Ne,useEffect:G,useErrorBoundary:Zt,useId:Ce,useImperativeHandle:be,useInsertionEffect:Re,useLayoutEffect:P,useMemo:M,useReducer:q,useRef:te,useState:D,useSyncExternalStore:xe,useTransition:Pe,version:pn});const Ht=[`slot[name]::slotted(*) {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
height: 100%;
|
|
4
|
+
width: 100%;
|
|
5
|
+
}`],Lt=new CSSStyleSheet,Dt="ax"+crypto.getRandomValues(new Uint32Array(1))[0].toString(36);function hn(e){const t=document.createElement("style");t.appendChild(document.createTextNode(e.replaceAll(/font-family:\s?(Fira Code Variable|InterVariable+);/g,(n,_)=>`font-family: ${Dt} ${_};`).replaceAll(/url\(["']?([^"')]+)["']?\)/g,(n,_)=>`url("${import.meta.resolve("./"+_)}")`))),document.head.append(t)}function vn(e){Ht.push(e.replaceAll(/Fira Code Variable|InterVariable/g,t=>`${Dt} ${t}`)),Lt.replace(Ht.join(`
|
|
6
|
+
`))}function mn(e){return{render:function(t){He(t,e)},unmount:function(){De(e)}}}const Mt="__ax_context",Ot="__ax_mount",At="__ax_unmount";function yn(e,t,n={}){const _=r=>{let o=null;const i=mn(r.shadowRoot?$n(r.shadowRoot):r.attachShadow({mode:"open"}));r.shadowRoot&&(r.shadowRoot.adoptedStyleSheets=[Lt]);const l=new MutationObserver(f=>{f.forEach(({attributeName:u})=>{u&&c(u,r.getAttribute(u))})}),a=(n.customEvents??[]).reduce((f,u)=>(f[u]=d=>{r.dispatchEvent(new CustomEvent("ax-"+kn(u),{bubbles:!0,cancelable:!0,detail:d}))},f),{}),c=(f,u)=>{o&&(o=Y(o,{[It(f)]:u===null?void 0:u}),i.render(o))};return{connectedCallback:()=>{const f=s=>{o=Y(Ft(r,gn(t,s)),a),i.render(o),l.observe(r,{attributes:!0})};let u=r.parentElement,d=!!r.slot;for(;u;){if(u.nodeName.toLowerCase()in Wt){if(d){d=!1,u=u.parentElement;continue}u.addEventListener(Ot,b=>{f(b.detail.context)}),u.addEventListener(At,()=>{l.disconnect(),i.unmount()});const s=new CustomEvent(Mt,{cancelable:!0,detail:{context:void 0,rendered:!1}});u.dispatchEvent(s),s.detail.rendered&&f(s.detail.context);return}u=u.parentElement}f(void 0)},disconnectedCallback:()=>{l.disconnect(),o=null,i.unmount()}}};return customElements.get(e)||customElements.define(e,class extends HTMLElement{#e;constructor(){super(),this.#e=_(this)}connectedCallback(){this.#e.connectedCallback()}disconnectedCallback(){this.#e.disconnectedCallback()}}),_}const bn=e=>{let t,n=!1;return e.addEventListener(Mt,_=>{_.detail.context=t,_.detail.rendered=n}),(_,r)=>(t=r,n=!0,P(()=>(e.dispatchEvent(new CustomEvent(Ot,{cancelable:!0,detail:{context:t}})),()=>{e.dispatchEvent(new CustomEvent(At))}),[]),null)},gn=(e,t)=>function(n){this.getChildContext=()=>t;const _=Object.assign({},n);return delete _.context,C(e,_)},Cn=e=>{const t=bn(e);return ue((n,_)=>(P(()=>(typeof _=="function"?_(e):_&&"current"in _&&(_.current=e),()=>{typeof _=="function"?_(null):_&&"current"in _&&(_.current=void 0)}),[_]),C("slot",{...n,ref:_},C(t))))};function Ft(e,t){if(!(e instanceof Element))return null;const n=!!t,_={};for(const{name:o,value:i}of e.attributes)o.startsWith("on")||o==="slot"||o==="style"||(_[It(o)]=i);const r=[];for(const o of e.childNodes)o instanceof Text&&o.data.match(/^\s+$/)||(o instanceof Element&&o.slot?_[o.slot]=C("slot",{name:o.slot,style:{display:"inline-flex"}}):r.push(o instanceof Text?o.data:Ft(o)));return C(t||e.nodeName.toLowerCase(),_,n?r.length?C(Cn(e)):null:r)}const $n=e=>{const t=document.createElement("div");return t.style.display="contents",e.insertBefore(t,e.firstChild),t},It=e=>e.startsWith("aria-")||e.startsWith("data-")?e:e.replace(/-(\w)/g,(t,n)=>n.toUpperCase()),kn=e=>e.slice(2).toLowerCase();export{ue as A,me as J,Te as L,M as T,Ue as Y,P as _,te as a,Y as b,dn as c,A as d,hn as e,Me as f,C as g,D as h,vn as i,Ut as j,$ as k,q as p,ne as q,yn as r,Yt as u,_e as x,G as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a={borderRadius:{xs:"var(--ax-borderRadius-xs)",sm:"var(--ax-borderRadius-sm)",md:"var(--ax-borderRadius-md)",lg:"var(--ax-borderRadius-lg)",xl:"var(--ax-borderRadius-xl)",full:"var(--ax-borderRadius-full)",none:"var(--ax-borderRadius-none)"},borderWidth:{0:"var(--ax-borderWidth-0)",1:"var(--ax-borderWidth-1)",2:"var(--ax-borderWidth-2)",4:"var(--ax-borderWidth-4)"},boxShadow:{xs:"var(--ax-boxShadow-xs)",sm:"var(--ax-boxShadow-sm)",md:"var(--ax-boxShadow-md)",lg:"var(--ax-boxShadow-lg)",xl:"var(--ax-boxShadow-xl)",inner:"var(--ax-boxShadow-inner)",none:"var(--ax-boxShadow-none)"},colors:{current:"var(--ax-colors-current)",transparent:"var(--ax-colors-transparent)","avatar.bg.neutral":"var(--ax-colors-avatar-bg-neutral)","avatar.bg.purple":"var(--ax-colors-avatar-bg-purple)","avatar.fg.neutral":"var(--ax-colors-avatar-fg-neutral)","avatar.fg.purple":"var(--ax-colors-avatar-fg-purple)","bg.accent":"var(--ax-colors-bg-accent)","bg.accent.hovered":"var(--ax-colors-bg-accent-hovered)","bg.accent.light":"var(--ax-colors-bg-accent-light)","bg.accent.pressed":"var(--ax-colors-bg-accent-pressed)","bg.accent.subtle":"var(--ax-colors-bg-accent-subtle)","bg.default":"var(--ax-colors-bg-default)","bg.default.inverse":"var(--ax-colors-bg-default-inverse)","bg.default.inverse.hovered":"var(--ax-colors-bg-default-inverse-hovered)","bg.default.inverse.pressed":"var(--ax-colors-bg-default-inverse-pressed)","bg.error":"var(--ax-colors-bg-error)","bg.error.hovered":"var(--ax-colors-bg-error-hovered)","bg.error.light":"var(--ax-colors-bg-error-light)","bg.error.pressed":"var(--ax-colors-bg-error-pressed)","bg.error.subtle":"var(--ax-colors-bg-error-subtle)","bg.error.subtlest":"var(--ax-colors-bg-error-subtlest)","bg.information":"var(--ax-colors-bg-information)","bg.information.light":"var(--ax-colors-bg-information-light)","bg.information.subtle":"var(--ax-colors-bg-information-subtle)","bg.overlay":"var(--ax-colors-bg-overlay)","bg.page":"var(--ax-colors-bg-page)","bg.secondary":"var(--ax-colors-bg-secondary)","bg.secondary.hovered":"var(--ax-colors-bg-secondary-hovered)","bg.success":"var(--ax-colors-bg-success)","bg.success.hovered":"var(--ax-colors-bg-success-hovered)","bg.success.light":"var(--ax-colors-bg-success-light)","bg.success.subtle":"var(--ax-colors-bg-success-subtle)","bg.tertiary":"var(--ax-colors-bg-tertiary)","bg.tertiary.hovered":"var(--ax-colors-bg-tertiary-hovered)","bg.warning":"var(--ax-colors-bg-warning)","bg.warning.hovered":"var(--ax-colors-bg-warning-hovered)","bg.warning.light":"var(--ax-colors-bg-warning-light)","bg.warning.subtle":"var(--ax-colors-bg-warning-subtle)","border.accent":"var(--ax-colors-border-accent)","border.active":"var(--ax-colors-border-active)","border.active.hovered":"var(--ax-colors-border-active-hovered)","border.default":"var(--ax-colors-border-default)","border.default.hovered":"var(--ax-colors-border-default-hovered)","border.disabled":"var(--ax-colors-border-disabled)","border.error":"var(--ax-colors-border-error)","border.focus":"var(--ax-colors-border-focus)","border.focus.error":"var(--ax-colors-border-focus-error)","border.secondary":"var(--ax-colors-border-secondary)","border.success":"var(--ax-colors-border-success)","border.tertiary":"var(--ax-colors-border-tertiary)","border.warning":"var(--ax-colors-border-warning)","fg.accent":"var(--ax-colors-fg-accent)","fg.accent.hovered":"var(--ax-colors-fg-accent-hovered)","fg.accent.strong":"var(--ax-colors-fg-accent-strong)","fg.default":"var(--ax-colors-fg-default)","fg.default.inverse":"var(--ax-colors-fg-default-inverse)","fg.disabled":"var(--ax-colors-fg-disabled)","fg.error":"var(--ax-colors-fg-error)","fg.error.hovered":"var(--ax-colors-fg-error-hovered)","fg.error.light":"var(--ax-colors-fg-error-light)","fg.error.strong":"var(--ax-colors-fg-error-strong)","fg.information":"var(--ax-colors-fg-information)","fg.information.light":"var(--ax-colors-fg-information-light)","fg.information.strong":"var(--ax-colors-fg-information-strong)","fg.secondary":"var(--ax-colors-fg-secondary)","fg.success":"var(--ax-colors-fg-success)","fg.success.hovered":"var(--ax-colors-fg-success-hovered)","fg.success.light":"var(--ax-colors-fg-success-light)","fg.success.strong":"var(--ax-colors-fg-success-strong)","fg.tertiary":"var(--ax-colors-fg-tertiary)","fg.warning":"var(--ax-colors-fg-warning)","fg.warning.hovered":"var(--ax-colors-fg-warning-hovered)","fg.warning.inverse":"var(--ax-colors-fg-warning-inverse)","fg.warning.light":"var(--ax-colors-fg-warning-light)","fg.warning.strong":"var(--ax-colors-fg-warning-strong)","fg.white":"var(--ax-colors-fg-white)","link.fg.default":"var(--ax-colors-link-fg-default)","link.fg.default.hovered":"var(--ax-colors-link-fg-default-hovered)","link.fg.inverse":"var(--ax-colors-link-fg-inverse)","link.fg.subtle":"var(--ax-colors-link-fg-subtle)","link.fg.visited":"var(--ax-colors-link-fg-visited)","spinner.bg.default":"var(--ax-colors-spinner-bg-default)","spinner.bg.inverse":"var(--ax-colors-spinner-bg-inverse)","spinner.fg.default":"var(--ax-colors-spinner-fg-default)","spinner.fg.inverse":"var(--ax-colors-spinner-fg-inverse)"},fontFamily:{mono:"var(--ax-fontFamily-mono)",sans:"var(--ax-fontFamily-sans)"},fontSize:{xs:{fontSize:"var(--ax-fontSize-xs-fontSize)",lineHeight:"var(--ax-fontSize-xs-lineHeight)"},sm:{fontSize:"var(--ax-fontSize-sm-fontSize)",lineHeight:"var(--ax-fontSize-sm-lineHeight)"},md:{fontSize:"var(--ax-fontSize-md-fontSize)",lineHeight:"var(--ax-fontSize-md-lineHeight)"},lg:{fontSize:"var(--ax-fontSize-lg-fontSize)",lineHeight:"var(--ax-fontSize-lg-lineHeight)"},xl:{fontSize:"var(--ax-fontSize-xl-fontSize)",lineHeight:"var(--ax-fontSize-xl-lineHeight)"},"2xl":{fontSize:"var(--ax-fontSize-2xl-fontSize)",lineHeight:"var(--ax-fontSize-2xl-lineHeight)"},"3xl":{fontSize:"var(--ax-fontSize-3xl-fontSize)",lineHeight:"var(--ax-fontSize-3xl-lineHeight)"},"4xl":{fontSize:"var(--ax-fontSize-4xl-fontSize)",lineHeight:"var(--ax-fontSize-4xl-lineHeight)"},"5xl":{fontSize:"var(--ax-fontSize-5xl-fontSize)",lineHeight:"var(--ax-fontSize-5xl-lineHeight)"},"6xl":{fontSize:"var(--ax-fontSize-6xl-fontSize)",lineHeight:"var(--ax-fontSize-6xl-lineHeight)"},"7xl":{fontSize:"var(--ax-fontSize-7xl-fontSize)",lineHeight:"var(--ax-fontSize-7xl-lineHeight)"}},letterSpacing:{tighter:"var(--ax-letterSpacing-tighter)",tight:"var(--ax-letterSpacing-tight)",normal:"var(--ax-letterSpacing-normal)",wide:"var(--ax-letterSpacing-wide)",wider:"var(--ax-letterSpacing-wider)",widest:"var(--ax-letterSpacing-widest)"},lineHeight:{none:"var(--ax-lineHeight-none)",tight:"var(--ax-lineHeight-tight)",normal:"var(--ax-lineHeight-normal)",loose:"var(--ax-lineHeight-loose)"},margins:{0:"var(--ax-margins-0)",2:"var(--ax-margins-2)",4:"var(--ax-margins-4)",6:"var(--ax-margins-6)",8:"var(--ax-margins-8)",10:"var(--ax-margins-10)",12:"var(--ax-margins-12)",16:"var(--ax-margins-16)",20:"var(--ax-margins-20)",24:"var(--ax-margins-24)",32:"var(--ax-margins-32)",48:"var(--ax-margins-48)",64:"var(--ax-margins-64)",80:"var(--ax-margins-80)",xs:"var(--ax-margins-xs)",sm:"var(--ax-margins-sm)",md:"var(--ax-margins-md)",lg:"var(--ax-margins-lg)",xl:"var(--ax-margins-xl)","-xs":"var(--ax-margins--xs)","-sm":"var(--ax-margins--sm)","-md":"var(--ax-margins--md)","-lg":"var(--ax-margins--lg)","-xl":"var(--ax-margins--xl)","-2":"var(--ax-margins--2)","-4":"var(--ax-margins--4)","-6":"var(--ax-margins--6)","-8":"var(--ax-margins--8)","-10":"var(--ax-margins--10)","-12":"var(--ax-margins--12)","-16":"var(--ax-margins--16)","-24":"var(--ax-margins--24)","-32":"var(--ax-margins--32)","-48":"var(--ax-margins--48)","-64":"var(--ax-margins--64)","-80":"var(--ax-margins--80)"},maxSize:{xs:"var(--ax-maxSize-xs)",sm:"var(--ax-maxSize-sm)",md:"var(--ax-maxSize-md)",lg:"var(--ax-maxSize-lg)",xl:"var(--ax-maxSize-xl)","2xl":"var(--ax-maxSize-2xl)",full:"var(--ax-maxSize-full)"},screens:{sm:"var(--ax-screens-sm)",md:"var(--ax-screens-md)",lg:"var(--ax-screens-lg)"},size:{0:"var(--ax-size-0)",1:"var(--ax-size-1)",2:"var(--ax-size-2)",4:"var(--ax-size-4)",6:"var(--ax-size-6)",8:"var(--ax-size-8)",12:"var(--ax-size-12)",16:"var(--ax-size-16)",20:"var(--ax-size-20)",24:"var(--ax-size-24)",32:"var(--ax-size-32)",40:"var(--ax-size-40)",48:"var(--ax-size-48)",56:"var(--ax-size-56)",64:"var(--ax-size-64)",80:"var(--ax-size-80)",96:"var(--ax-size-96)",112:"var(--ax-size-112)",128:"var(--ax-size-128)",144:"var(--ax-size-144)",160:"var(--ax-size-160)",176:"var(--ax-size-176)",192:"var(--ax-size-192)",208:"var(--ax-size-208)",224:"var(--ax-size-224)",240:"var(--ax-size-240)",256:"var(--ax-size-256)",288:"var(--ax-size-288)",320:"var(--ax-size-320)",384:"var(--ax-size-384)","2xs":"var(--ax-size-2xs)",xs:"var(--ax-size-xs)",sm:"var(--ax-size-sm)",md:"var(--ax-size-md)",lg:"var(--ax-size-lg)",xl:"var(--ax-size-xl)","2xl":"var(--ax-size-2xl)","5xl":"var(--ax-size-5xl)","1/2":"var(--ax-size-1-2)","1/3":"var(--ax-size-1-3)","2/3":"var(--ax-size-2-3)","1/4":"var(--ax-size-1-4)","2/4":"var(--ax-size-2-4)","3/4":"var(--ax-size-3-4)",auto:"var(--ax-size-auto)",fit:"var(--ax-size-fit)",full:"var(--ax-size-full)",max:"var(--ax-size-max)",min:"var(--ax-size-min)"},spacing:{0:"var(--ax-spacing-0)",2:"var(--ax-spacing-2)",4:"var(--ax-spacing-4)",6:"var(--ax-spacing-6)",8:"var(--ax-spacing-8)",10:"var(--ax-spacing-10)",12:"var(--ax-spacing-12)",16:"var(--ax-spacing-16)",20:"var(--ax-spacing-20)",24:"var(--ax-spacing-24)",32:"var(--ax-spacing-32)",48:"var(--ax-spacing-48)",64:"var(--ax-spacing-64)",80:"var(--ax-spacing-80)",xs:"var(--ax-spacing-xs)",sm:"var(--ax-spacing-sm)",md:"var(--ax-spacing-md)",lg:"var(--ax-spacing-lg)",xl:"var(--ax-spacing-xl)"},zIndex:{0:"var(--ax-zIndex-0)",10:"var(--ax-zIndex-10)",20:"var(--ax-zIndex-20)",30:"var(--ax-zIndex-30)",40:"var(--ax-zIndex-40)",50:"var(--ax-zIndex-50)",auto:"var(--ax-zIndex-auto)",popover:"var(--ax-zIndex-popover)",toast:"var(--ax-zIndex-toast)",tooltip:"var(--ax-zIndex-tooltip)"}};export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as m,u as n}from"./register-BYh2OfV6.js";const s=({fill:o,height:t=16,name:h,viewBox:r,width:i=20},w)=>{const e=m((l,a)=>n("svg",{fill:o,height:t,ref:a,viewBox:r??`0 0 ${i} ${t}`,width:i,xmlns:"http://www.w3.org/2000/svg",...l,children:w}));return e.displayName=`@optiaxiom/react/${h}`,e};export{s as a};
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "https://github.com/optimizely-axiom/optiaxiom.git"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
|
-
"version": "0.3.
|
|
10
|
+
"version": "0.3.1",
|
|
11
11
|
"files": [
|
|
12
12
|
"dist/**",
|
|
13
13
|
"LICENSE"
|
|
@@ -142,16 +142,16 @@
|
|
|
142
142
|
"module": "./dist/index.js",
|
|
143
143
|
"devDependencies": {
|
|
144
144
|
"@rollup/plugin-commonjs": "^28.0.1",
|
|
145
|
-
"@types/node": "^20.17.
|
|
145
|
+
"@types/node": "^20.17.9",
|
|
146
146
|
"cssnano": "^7.0.6",
|
|
147
147
|
"fast-glob": "^3.3.2",
|
|
148
|
-
"postcss": "^8.4.
|
|
148
|
+
"postcss": "^8.4.49",
|
|
149
149
|
"postcss-load-config": "^6.0.1",
|
|
150
150
|
"postcss-url": "^10.1.3",
|
|
151
|
-
"preact": "^10.
|
|
151
|
+
"preact": "^10.25.1",
|
|
152
152
|
"react-docgen-typescript": "^2.2.2",
|
|
153
|
-
"@optiaxiom/globals": "^0.4.
|
|
154
|
-
"@optiaxiom/react": "^0.7.
|
|
153
|
+
"@optiaxiom/globals": "^0.4.3",
|
|
154
|
+
"@optiaxiom/react": "^0.7.7",
|
|
155
155
|
"@optiaxiom/shared": "^0.0.0"
|
|
156
156
|
},
|
|
157
157
|
"scripts": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t}from"./index-CrMdL8sR.js";const[e,r]=t("Alert");export{e,r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as o}from"./index-CrMdL8sR.js";const[t,e]=o("AlertDialog");export{t as e,e as o};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as $,q as k,T as w,y as P,u as h,G as q,I as B,f as N,a as R,h as L,x as T,b as _}from"./register-BOOKBziY.js";import{t as D}from"./Transition-BrTQdSal.js";import{u as F}from"./reach-auto-id-BEeSZ1FP.js";function G(n){const s=$(null);return s.current===null&&(s.current=n()),s.current}const H=({children:n,initial:s,isPresent:o,onExitComplete:c,custom:m,presenceAffectsLayout:y,mode:E})=>{const e=G(J),u=F(),f=k(r=>{e.set(r,!0);for(const d of e.values())if(!d)return;c&&c()},[e,c]),p=w(()=>({id:u,initial:s,isPresent:o,custom:m,onExitComplete:f,register:r=>(e.set(r,!1),()=>e.delete(r))}),y?[Math.random(),f]:[o,f]);return w(()=>{e.forEach((r,d)=>e.set(d,!1))},[o]),P(()=>{!o&&!e.size&&c&&c()},[o]),h(D.Provider,{value:p,children:n})};function J(){return new Map}const K=q({}),x=n=>n.key||"";function M(n){const s=[];return B.forEach(n,o=>{N(o)&&s.push(o)}),s}const O=typeof window<"u",Q=O?R:P,S=({children:n,exitBeforeEnter:s,custom:o,initial:c=!0,onExitComplete:m,presenceAffectsLayout:y=!0,mode:E="sync"})=>{const e=w(()=>M(n),[n]),u=e.map(x),f=$(!0),p=$(e),r=G(()=>new Map),[d,I]=L(e),[l,A]=L(e);Q(()=>{f.current=!1,p.current=e;for(let i=0;i<l.length;i++){const t=x(l[i]);u.includes(t)?r.delete(t):r.get(t)!==!0&&r.set(t,!1)}},[l,u.length,u.join("-")]);const g=[];if(e!==d){let i=[...e];for(let t=0;t<l.length;t++){const a=l[t],v=x(a);u.includes(v)||(i.splice(t,0,a),g.push(a))}E==="wait"&&g.length&&(i=g),A(M(i)),I(e);return}const{forceRender:b}=T(K);return h(_,{children:l.map(i=>{const t=x(i),a=e===l||u.includes(t),v=()=>{if(r.has(t))r.set(t,!0);else return;let C=!0;r.forEach(j=>{j||(C=!1)}),C&&(b?.(),A(p.current),m&&m())};return h(H,{isPresent:a,initial:!f.current||c?void 0:!1,custom:a?void 0:o,presenceAffectsLayout:y,mode:E,onExitComplete:a?void 0:v,children:i},t)})})};function z({children:n}){return h(S,{children:n})}z.displayName="@optiaxiom/react/AnimatePresence";export{z as i};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{G as o}from"./register-BOOKBziY.js";const i=o({size:void 0});export{i as o};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,w as p,u as t}from"./register-BOOKBziY.js";import{o as m}from"./Box-DaxUZLp5.js";import{y}from"./recipeRuntime-DLB-P7Tw.js";e("@layer optiaxiom._1mjfn1x;@layer optiaxiom._1mjfn1x{._1yoyhod{backdrop-filter:blur(4px);inset:0;position:fixed}}");var l=y({base:[{bg:"bg.overlay",z:"popover"},"_1yoyhod"]});const o=p(({className:r,...a},i)=>t(m,{ref:i,...l({},r),...a}));o.displayName="@optiaxiom/react/Backdrop";export{o};
|
package/dist/Badge-C1D9iwUe.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as g,w as u,u as o}from"./register-BOOKBziY.js";import{a as b}from"./index-DUOD9OhH.js";import{r as _}from"./Text-DK4Vx-Fu.js";import{y as x}from"./recipeRuntime-DLB-P7Tw.js";g("@layer optiaxiom._1mjfn1x;@layer optiaxiom._1mjfn1x{._1tto4u7{--_3i4gk8:var(--ax-colors-fg-white)}._1it5n1u{--_1nauhxi:var(--ax-colors-bg-error);--_1fou0nb:var(--ax-colors-bg-error-subtle);--ntob44:var(--ax-colors-fg-error-strong)}._1ou2jqy{--_1nauhxi:var(--ax-colors-bg-information);--_1fou0nb:var(--ax-colors-bg-information-subtle);--ntob44:var(--ax-colors-fg-information-strong)}._11vek34{--_1nauhxi:var(--ax-colors-bg-tertiary);--_3i4gk8:var(--ax-colors-fg-default);--_1fou0nb:var(--ax-colors-bg-secondary);--ntob44:var(--ax-colors-fg-secondary)}._1qbp87g{--_1nauhxi:var(--ax-colors-bg-accent);--_1fou0nb:var(--ax-colors-bg-accent-subtle);--ntob44:var(--ax-colors-fg-accent-strong)}._7b8uij{--_1nauhxi:var(--ax-colors-bg-success);--_1fou0nb:var(--ax-colors-bg-success-subtle);--ntob44:var(--ax-colors-fg-success-strong)}._1537v1{--_1nauhxi:var(--ax-colors-bg-warning);--_3i4gk8:var(--ax-colors-fg-warning-inverse);--_1fou0nb:var(--ax-colors-bg-warning-subtle);--ntob44:var(--ax-colors-fg-warning-strong)}._14auwar{background-color:var(--_1fou0nb);color:var(--ntob44)}._14nakn3{background-color:var(--_1nauhxi);color:var(--_3i4gk8)}}");var v=x({base:[{display:"inline-flex",fontSize:"sm",fontWeight:"500",justifyContent:"center",px:"xs",py:"2",rounded:"full"},"_1tto4u7"],variants:{intent:{danger:"_1it5n1u",information:"_1ou2jqy",neutral:"_11vek34",primary:"_1qbp87g",success:"_7b8uij",warning:"_1537v1"},variant:{light:"_14auwar",solid:"_14nakn3"}}});const r=u(({asChild:a,children:n,className:t,intent:i="neutral",variant:s="light",...e},l)=>{const c=a?b:"span";return o(_,{asChild:!0,role:"presentation",...v({intent:i,variant:s},t),...e,children:o(c,{ref:l,children:n})})});r.displayName="@optiaxiom/react/Badge";export{r as o};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t}from"./index-CrMdL8sR.js";const[e,n]=t("Banner");export{e as n,n as t};
|