@okam/stack-ui 1.19.1 → 1.20.0

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/index.js CHANGED
@@ -1,4 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),l=require("react/jsx-runtime"),_=require("tailwind-variants"),Rn=require("radash"),S=require("react-aria"),ia=require("react-div-100vh"),la=require("@react-stately/overlays"),X=require("react-spring"),Se=require("@react-aria/overlays"),be=require("@react-aria/focus"),Xt=require("react-stately"),ca=require("isomorphic-dompurify"),it=require("@react-aria/i18n"),lt=require("lodash"),he=require("react-hook-form"),ua=require("@react-aria/checkbox"),da=require("@react-aria/visually-hidden"),fa=require("@react-stately/toggle"),er=require("react-i18next"),tr=require("@react-aria/datepicker"),jn=require("@react-stately/datepicker"),rr=require("@react-aria/calendar"),ha=require("@react-stately/calendar"),Ht=require("@react-aria/utils"),vr=require("next/image"),O=require("lodash.isequal");function ma(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const pa=ma(b),Mn=e=>e;function ga(){const e=b.createContext(void 0);function t(){const r=b.useContext(e);return r===void 0?null:r}return[t,e.Provider]}const ba={typography:()=>""},[Sn,va]=ga();function Tn({children:e,brandTheme:t=ba}){const r=b.useMemo(()=>({brandTheme:t}),[t]);return l.jsx(va,{value:r,children:e})}const En=e=>({children:r})=>l.jsx(Tn,{brandTheme:e,children:r}),ya=_.tv({base:"[border-radius: 32px] p-1.5 focus:outline-none text-color-1-500",defaultVariants:{textAlign:"left",isOpen:!1},variants:{textAlign:{center:"text-center",left:"text-left"}}}),xa=_.tv({base:"grid overflow-hidden w-full items-center border-b-2 border-color-1-500 focus-ring-black",variants:{titleBold:{true:"font-bold"},textAlign:{center:"grid-cols-[3rem_1fr_3rem] pl-0 sm:pl-0",left:"grid-cols-[1fr_3rem]"}}}),wa=_.tv({base:"",defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"justify-self-center col-start-2",left:"justify-self-start"}}}),$a=_.tv({base:"text-color-1-500 min-h-12 rotate-90 min-w-12 rounded-full flex items-center justify-center transition duration-500 transform ml-auto aspect-square",variants:{isOpen:{true:"-rotate-90",false:""}}}),Pa=_.tv({base:"font-body text-inherit h-auto grid grid-rows-[0fr] transition-all duration-500",defaultVariants:{textAlign:"left",isOpen:!1},variants:{isOpen:{true:"pb-8 pt-3 grid-rows-[1fr]",false:""},textAlign:{center:"grid-cols-[3rem_1fr_3rem] px-6 text-center",left:"grid-cols-[1fr_3rem] text-left"}}}),Ca=_.tv({base:"overflow-hidden",defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"col-start-2",left:""}}}),_a=_.tv({base:"w-full bg-slate-100"}),kn=_.tv({base:"max-w-screen-lg mx-auto w-full",variants:{fullWidth:{true:"max-w-full col-span-full p-0"},spacing:{small:"mb-3",medium:"mb-6",large:"mb-8",none:"mb-0"}}}),Ra=_.tv({extend:kn,base:"grid grid-cols-12 gap-6 px-4 col-span-full",variants:{fullWidth:{true:"max-w-full col-span-full p-0"}}}),ja=_.tv({base:"bg-slate-300 h-64 p-4 flex justify-start items-end",defaultVariants:{size:"small"},variants:{size:{small:"col-span-12 sm:col-span-6 md:col-span-4 lg:col-span-4",medium:"col-span-12 sm:col-span-12 md:col-span-8 lg:col-span-8",large:"lg:col-start-3 sm:col-start-1 sm:col-end-13 lg:col-end-11 md:col-start-3 md:col-end-11 col-start-1 col-end-13"}}}),Ae=_.tv({base:`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),c=require("react/jsx-runtime"),O=require("tailwind-variants"),no=require("radash"),k=require("@react-aria/utils"),ae=require("@react-aria/focus"),Gi=require("react-dom"),De=require("@react-aria/i18n"),L=require("react-aria"),Yi=require("react-use"),oe=require("react-spring"),Pt=require("react-stately"),Ji=require("react-div-100vh"),Qi=require("@react-stately/overlays"),Le=require("@react-aria/overlays"),Xi=require("isomorphic-dompurify"),Tt=require("lodash"),ye=require("react-hook-form"),Zi=require("@react-aria/checkbox"),es=require("@react-aria/visually-hidden"),ts=require("@react-stately/toggle"),yr=require("react-i18next"),vr=require("@react-aria/datepicker"),oo=require("@react-stately/datepicker"),xr=require("@react-aria/calendar"),rs=require("@react-stately/calendar"),Kr=require("next/image"),H=require("lodash.isequal");function ns(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const os=ns(y),io=t=>t;function is(){const t=y.createContext(void 0);function e(){const r=y.useContext(t);return r===void 0?null:r}return[e,t.Provider]}const ss={typography:()=>""},[so,as]=is();function ao({children:t,brandTheme:e=ss}){const r=y.useMemo(()=>({brandTheme:e}),[e]);return c.jsx(as,{value:r,children:t})}const lo=t=>({children:r})=>c.jsx(ao,{brandTheme:t,children:r}),ls=O.tv({base:"[border-radius: 32px] p-1.5 focus:outline-none text-color-1-500",defaultVariants:{textAlign:"left",isOpen:!1},variants:{textAlign:{center:"text-center",left:"text-left"}}}),cs=O.tv({base:"grid overflow-hidden w-full items-center border-b-2 border-color-1-500 focus-ring-black",variants:{titleBold:{true:"font-bold"},textAlign:{center:"grid-cols-[3rem_1fr_3rem] pl-0 sm:pl-0",left:"grid-cols-[1fr_3rem]"}}}),us=O.tv({base:"",defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"justify-self-center col-start-2",left:"justify-self-start"}}}),ds=O.tv({base:"text-color-1-500 min-h-12 rotate-90 min-w-12 rounded-full flex items-center justify-center transition duration-500 transform ml-auto aspect-square",variants:{isOpen:{true:"-rotate-90",false:""}}}),fs=O.tv({base:`
2
+ font-body
3
+ text-inherit
4
+ h-auto
5
+ grid
6
+ `,defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"grid-cols-[3rem_1fr_3rem] px-6 text-center",left:"grid-cols-[1fr_3rem] text-left"}}}),hs=O.tv({base:"overflow-hidden flex flex-col gap-2 items-start",defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"col-start-2",left:""}}}),ps={container:t=>ls(t),button:t=>cs(t),title:t=>us(t),icon:t=>ds(t),region:t=>fs(t),content:t=>hs(t)},ms=O.tv({base:"w-full bg-slate-100"}),co=O.tv({base:"max-w-screen-lg mx-auto w-full",variants:{fullWidth:{true:"max-w-full col-span-full p-0"},spacing:{small:"mb-3",medium:"mb-6",large:"mb-8",none:"mb-0"}}}),gs=O.tv({extend:co,base:"grid grid-cols-12 gap-6 px-4 col-span-full",variants:{fullWidth:{true:"max-w-full col-span-full p-0"}}}),bs=O.tv({base:"bg-slate-300 h-64 p-4 flex justify-start items-end",defaultVariants:{size:"small"},variants:{size:{small:"col-span-12 sm:col-span-6 md:col-span-4 lg:col-span-4",medium:"col-span-12 sm:col-span-12 md:col-span-8 lg:col-span-8",large:"lg:col-start-3 sm:col-start-1 sm:col-end-13 lg:col-end-11 md:col-start-3 md:col-end-11 col-start-1 col-end-13"}}}),Ge=O.tv({base:`
2
7
  flex
3
8
  items-center
4
9
  justify-center
@@ -39,7 +44,7 @@
39
44
  text-white
40
45
  pointer-events-none
41
46
  !border-error
42
- `},size:{default:"min-w-12 min-h-6",large:"min-w-36 min-h-18"},shape:{rounded:"rounded-md",circular:"rounded-full"}}}),Ma=_.tv({base:"inline-block text-gray-800"}),Sa=_.tv({base:"flex items-center justify-between pb-4"}),Ta=_.tv({base:"flex items-center gap-1"}),Ea=_.tv({base:"active:bg-color-1-500 p-2 rounded-full active:text-color-1-100 hover:bg-color-1-200 focus-ring-black"}),ka=_.tv({base:"flex-1"}),Da=_.tv({base:"text-center"}),Ia=_.tv({base:"py-0.5 relative",variants:{isFocusVisible:{true:"z-10",false:""}}}),Oa=_.tv({base:"w-10 h-10 outline-none group",variants:{isSelected:{true:"",false:""},isInvalid:{true:"",fasle:""},isDisabled:{true:"disabled",false:""},isRoundedLeft:{true:"rounded-l-full",false:""},isRoundedRight:{true:"rounded-r-full",false:""}},compoundVariants:[{isSelected:!0,isInvalid:!0,class:"bg-red-300"},{isSelected:!0,isInvalid:!1,class:"bg-color-1-300"}]}),Na=_.tv({base:"w-full h-full rounded-full flex items-center justify-center cursor-pointer",variants:{isSelected:{true:"",false:""},isInvalid:{true:"",fasle:""},isDisabled:{true:"",false:""},isFocusVisible:{true:"ring-2 group-focus:z-2 ring-violet-600 ring-offset-2",false:""},isSelectionStart:{true:"",false:""},isSelectionEnd:{true:"",false:""}},compoundVariants:[{isDisabled:!0,isInvalid:!1,class:"text-gray-400"},{isSelectionStart:!0,isSelectionEnd:!1,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!0,isSelectionEnd:!0,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!0,isSelectionEnd:!1,isInvalid:!1,class:"bg-color-1-400 text-white hover:bg-color-1-500"},{isSelectionStart:!0,isSelectionEnd:!0,isInvalid:!1,class:"bg-color-1-400 rounded-full text-white hover:bg-color-1-500"},{isSelectionStart:!1,isSelectionEnd:!0,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!1,isSelectionEnd:!0,isInvalid:!1,class:"bg-color-1-400 text-white hover:bg-color-1-500"},{isSelected:!1,isDisabled:!1,class:"hover:bg-color-1-100"},{isSelected:!0,isDisabled:!1,isInvalid:!1,isSelectionStart:!1,isSelectionEnd:!1,class:"hover:bg-color-1-300"},{isSelected:!0,isDisabled:!1,isInvalid:!0,isSelectionStart:!1,isSelectionEnd:!1,class:"hover:bg-red-400"}]}),Aa=_.tv({base:"flex justify-between items-center relative h-[475px] mb-18 lg:h-[650px]"}),La=_.tv({base:"flex justify-center m-auto px-8 w-full h-full"}),qa=_.tv({base:"bg-color-1-500 rounded-full p-4 text-white"}),Ba=_.tv({base:"flex focus-ring-black"}),Va=_.tv({base:"hover:cursor-pointer",variants:{color:{gray:"text-gray-300",black:"text-black"},isDisabled:{true:"text-gray-6"}},defaultVariants:{color:"black"}}),Ua=_.tv({base:"w-6 h-6 mt-0.5 mr-2.5 rounded-full border-2 border-gray-2 shrink-0 hover:cursor-pointer flex items-center justify-center",variants:{isDisabled:{true:"border-gray-6"},isFocused:{true:"outline-black [outline-offset: 2px]"},isError:{true:"border-red-500"}}}),Fa=_.tv({base:"hidden w-4 h-4 bg-gray-300 rounded-full",variants:{selected:{true:"block text-white"}}}),za=_.tv({base:"text-white w-4 h-4 [&_svg]:w-4 [&_svg]:h-4"}),Ha=_.tv({base:"block",variants:{isDisabled:{true:"opacity-60 pointer-events-none"}}}),Wa=_.tv({base:"flex flex-col gap-4 py-8"}),Ga=_.tv({base:"relative inline-flex flex-col text-left"}),Ya=_.tv({base:"flex items-center border-2 border-color-1-500 rounded focus-ring-black"}),Ja=_.tv({base:"fixed inset-0"}),Qa=_.tv({base:"absolute top-full bg-white border border-gray-300 rounded-md shadow-lg mt-2 p-8 z-10"}),Ka=_.tv({base:"pr-1 flex gap-2",defaultVariants:{dateFieldShown:!0},variants:{dateFieldShown:{true:"",false:"hidden"}}}),Za=_.tv({base:"focus-ring-black"}),Xa=_.tv({base:"text-color-1-500 bg-color-1-100 border-l-2 border-color-1-500 h-full py-2 px-2"}),es=_.tv({base:"text-color-1-500 font-bold px-2"}),ts=_.tv({base:"object-contain"}),rs=e=>ts(e),oe=_.tv({variants:{size:{h1:"text-5xl",h2:"text-4xl",h3:"text-3xl",h4:"text-2xl",h5:"text-xl",h6:"text-lg",leading:"text-md font-bold leading-normal",paragraph:"text-md inline",footnotes:"text-sm",xs:"text-xs"},font:{body:"font-body"},weight:{normal:"font-normal",light:"font-light",bold:"font-bold"},color:{gray:"text-gray-500",white:"text-white"},isError:{true:"text-sm text-error ml-8 py-3"},align:{center:"text-center",left:"text-left",right:"text-right"}},defaultVariants:{size:"paragraph",font:"body"}}),ns=_.tv({base:"focus-ring-black"}),os=_.tv({base:" w-screen h-screen relative flex items-center m-auto justify-center"}),as=_.tv({base:`
47
+ `},size:{default:"min-w-12 min-h-6",large:"min-w-36 min-h-18"},shape:{rounded:"rounded-md",circular:"rounded-full"}}}),ys=O.tv({base:"inline-block text-gray-800"}),vs=O.tv({base:"flex items-center justify-between pb-4"}),xs=O.tv({base:"flex items-center gap-1"}),$s=O.tv({base:"active:bg-color-1-500 p-2 rounded-full active:text-color-1-100 hover:bg-color-1-200 focus-ring-black"}),ws=O.tv({base:"flex-1"}),Ps=O.tv({base:"text-center"}),Ts=O.tv({base:"py-0.5 relative",variants:{isFocusVisible:{true:"z-10",false:""}}}),Cs=O.tv({base:"w-10 h-10 outline-none group",variants:{isSelected:{true:"",false:""},isInvalid:{true:"",fasle:""},isDisabled:{true:"disabled",false:""},isRoundedLeft:{true:"rounded-l-full",false:""},isRoundedRight:{true:"rounded-r-full",false:""}},compoundVariants:[{isSelected:!0,isInvalid:!0,class:"bg-red-300"},{isSelected:!0,isInvalid:!1,class:"bg-color-1-300"}]}),Ss=O.tv({base:"w-full h-full rounded-full flex items-center justify-center cursor-pointer",variants:{isSelected:{true:"",false:""},isInvalid:{true:"",fasle:""},isDisabled:{true:"",false:""},isFocusVisible:{true:"ring-2 group-focus:z-2 ring-violet-600 ring-offset-2",false:""},isSelectionStart:{true:"",false:""},isSelectionEnd:{true:"",false:""}},compoundVariants:[{isDisabled:!0,isInvalid:!1,class:"text-gray-400"},{isSelectionStart:!0,isSelectionEnd:!1,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!0,isSelectionEnd:!0,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!0,isSelectionEnd:!1,isInvalid:!1,class:"bg-color-1-400 text-white hover:bg-color-1-500"},{isSelectionStart:!0,isSelectionEnd:!0,isInvalid:!1,class:"bg-color-1-400 rounded-full text-white hover:bg-color-1-500"},{isSelectionStart:!1,isSelectionEnd:!0,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!1,isSelectionEnd:!0,isInvalid:!1,class:"bg-color-1-400 text-white hover:bg-color-1-500"},{isSelected:!1,isDisabled:!1,class:"hover:bg-color-1-100"},{isSelected:!0,isDisabled:!1,isInvalid:!1,isSelectionStart:!1,isSelectionEnd:!1,class:"hover:bg-color-1-300"},{isSelected:!0,isDisabled:!1,isInvalid:!0,isSelectionStart:!1,isSelectionEnd:!1,class:"hover:bg-red-400"}]}),Rs=O.tv({base:"flex justify-between items-center relative h-[475px] mb-18 lg:h-[650px]"}),Es=O.tv({base:"flex justify-center m-auto px-8 w-full h-full"}),Ms=O.tv({base:"bg-color-1-500 rounded-full p-4 text-white"}),js=O.tv({base:"flex focus-ring-black"}),_s=O.tv({base:"hover:cursor-pointer",variants:{color:{gray:"text-gray-300",black:"text-black"},isDisabled:{true:"text-gray-6"}},defaultVariants:{color:"black"}}),ks=O.tv({base:"w-6 h-6 mt-0.5 mr-2.5 rounded-full border-2 border-gray-2 shrink-0 hover:cursor-pointer flex items-center justify-center",variants:{isDisabled:{true:"border-gray-6"},isFocused:{true:"outline-black [outline-offset: 2px]"},isError:{true:"border-red-500"}}}),Ds=O.tv({base:"hidden w-4 h-4 bg-gray-300 rounded-full",variants:{selected:{true:"block text-white"}}}),Os=O.tv({base:"text-white w-4 h-4 [&_svg]:w-4 [&_svg]:h-4"}),Is=O.tv({base:"block",variants:{isDisabled:{true:"opacity-60 pointer-events-none"}}}),As=O.tv({base:"flex flex-col gap-4 py-8"}),Ls=O.tv({base:"relative inline-flex flex-col text-left"}),Ns=O.tv({base:"flex items-center border-2 border-color-1-500 rounded focus-ring-black"}),Bs=O.tv({base:"fixed inset-0"}),Ks=O.tv({base:"absolute top-full bg-white border border-gray-300 rounded-md shadow-lg mt-2 p-8 z-10"}),Fs=O.tv({base:"pr-1 flex gap-2",defaultVariants:{dateFieldShown:!0},variants:{dateFieldShown:{true:"",false:"hidden"}}}),qs=O.tv({base:"focus-ring-black"}),Us=O.tv({base:"text-color-1-500 bg-color-1-100 border-l-2 border-color-1-500 h-full py-2 px-2"}),Vs=O.tv({base:"text-color-1-500 font-bold px-2"}),Hs=O.tv({base:"object-contain"}),zs=t=>Hs(t),ue=O.tv({variants:{size:{h1:"text-5xl",h2:"text-4xl",h3:"text-3xl",h4:"text-2xl",h5:"text-xl",h6:"text-lg",leading:"text-md font-bold leading-normal",paragraph:"text-md inline",footnotes:"text-sm",xs:"text-xs"},font:{body:"font-body"},weight:{normal:"font-normal",light:"font-light",bold:"font-bold"},color:{gray:"text-gray-500",white:"text-white"},isError:{true:"text-sm text-error ml-8 py-3"},align:{center:"text-center",left:"text-left",right:"text-right"}},defaultVariants:{size:"paragraph",font:"body"}}),Ws=O.tv({base:"focus-ring-black"}),Gs=O.tv({base:" w-screen h-screen relative flex items-center m-auto justify-center"}),Ys=O.tv({base:`
43
48
  absolute
44
49
  xl:top-10
45
50
  xl:right-20
@@ -51,7 +56,7 @@
51
56
  w-[2.5rem]
52
57
  h-[2.5rem]
53
58
  focus-ring-black
54
- `}),ss=_.tv({extend:oe,base:"sr-only"}),is=_.tv({base:"text-black flex flex-row items-center hover:cursor-pointer focus-ring-black",variants:{isDisabled:{true:"text-gray-6"}}}),ls=_.tv({base:"w-6 h-6 mt-0.5 mr-2.5 rounded-full border-2 border-gray-2 shrink-0 hover:cursor-pointer flex items-center justify-center",variants:{isDisabled:{true:"border-gray-6"},isFocused:{true:"outline-black [outline-offset: 2px]"}}}),cs=_.tv({base:"hidden w-4 h-4 bg-gray-300 rounded-full",variants:{selected:{true:"block text-white"}}}),us=_.tv({base:"block",variants:{isDisabled:{true:"opacity-60 pointer-events-none"}}}),ds=_.tv({base:"flex flex-col gap-4 py-8"}),fs=_.tv({base:"flex print:hidden relative",defaultVariants:{listDirection:"row"},variants:{listDirection:{row:"flex-row",column:"flex-col"}}}),hs=_.tv({base:"relative z-20 !bg-color-1-500 hover:!bg-color-1-400 w-16 h-16 flex justify-center items-center active:!bg-color-1-400 rounded-full text-white focus-ring-black",variants:{isOpen:{true:"",false:""}}}),ms=_.tv({base:"!bg-color-1-200 absolute opacity-0 invisible flex transition duration-300 items-center p-0 bg-primary-1 z-0 rounded-b-full rounded-t-full",defaultVariants:{listDirection:"row"},variants:{listDirection:{row:"flex-row pl-14 h-16 left-0",column:"flex-col [width:calc(100% + .5rem)] pt-14 w-16 top-0"},isOpen:{true:"opacity-100 visible",false:""}}}),ps=_.tv({base:`
59
+ `}),Js=O.tv({extend:ue,base:"sr-only"}),Qs=O.tv({base:"text-black flex flex-row items-center hover:cursor-pointer focus-ring-black",variants:{isDisabled:{true:"text-gray-6"}}}),Xs=O.tv({base:"w-6 h-6 mt-0.5 mr-2.5 rounded-full border-2 border-gray-2 shrink-0 hover:cursor-pointer flex items-center justify-center",variants:{isDisabled:{true:"border-gray-6"},isFocused:{true:"outline-black [outline-offset: 2px]"}}}),Zs=O.tv({base:"hidden w-4 h-4 bg-gray-300 rounded-full",variants:{selected:{true:"block text-white"}}}),ea=O.tv({base:"block",variants:{isDisabled:{true:"opacity-60 pointer-events-none"}}}),ta=O.tv({base:"flex flex-col gap-4 py-8"}),ra=O.tv({base:"flex print:hidden relative",defaultVariants:{listDirection:"row"},variants:{listDirection:{row:"flex-row",column:"flex-col"}}}),na=O.tv({base:"relative z-20 !bg-color-1-500 hover:!bg-color-1-400 w-16 h-16 flex justify-center items-center active:!bg-color-1-400 rounded-full text-white focus-ring-black",variants:{isOpen:{true:"",false:""}}}),oa=O.tv({base:"!bg-color-1-200 absolute opacity-0 invisible flex transition duration-300 items-center p-0 bg-primary-1 z-0 rounded-b-full rounded-t-full",defaultVariants:{listDirection:"row"},variants:{listDirection:{row:"flex-row pl-14 h-16 left-0",column:"flex-col [width:calc(100% + .5rem)] pt-14 w-16 top-0"},isOpen:{true:"opacity-100 visible",false:""}}}),ia=O.tv({base:`
55
60
  flex
56
61
  items-center
57
62
  justify-center
@@ -65,7 +70,7 @@
65
70
  focus-ring-black
66
71
  z-10
67
72
  has-focus-ring:z-20
68
- `,defaultVariants:{listDirection:"row"},variants:{listDirection:{row:"last:rounded-r-full h-full",column:"last:rounded-b-full"}}}),gs=_.tv({base:"text-white"}),bs=_.tv({base:""}),vs=_.tv({base:"m-auto fixed right-0 top-0 bottom-0 w-full max-w-[512px] [&>div]:h-full"}),ys=_.tv({base:"h-full w-full flex justify-end"}),xs=_.tv({base:"bg-black h-full w-full overflow-y-auto"}),ws=_.tv({base:`
73
+ `,defaultVariants:{listDirection:"row"},variants:{listDirection:{row:"last:rounded-r-full h-full",column:"last:rounded-b-full"}}}),sa=O.tv({base:"text-white"}),aa=O.tv({base:""}),la=O.tv({base:"m-auto fixed right-0 top-0 bottom-0 w-full max-w-[512px] [&>div]:h-full"}),ca=O.tv({base:"h-full w-full flex justify-end"}),ua=O.tv({base:"bg-black h-full w-full overflow-y-auto"}),da=O.tv({base:`
69
74
  w-full
70
75
  min-h-32
71
76
  rounded-2xl
@@ -80,10 +85,10 @@
80
85
  placeholder:text-gray-2
81
86
  focus-ring-black
82
87
 
83
- `,variants:{isError:{true:"border-red-500"}}}),$s=Mn({main:e=>_a(e),gridItem:e=>ja(e),grid:e=>Ra(e),container:e=>kn(e),accordion:{container:e=>ya(e),button:e=>xa(e),title:e=>wa(e),icon:e=>$a(e),region:e=>Pa(e),content:e=>Ca(e)},carousel:{container:e=>Aa(e),slideContainer:e=>La(e),navigationButtons:e=>qa(e)},calendar:{container:e=>Ma(e),header:e=>Sa(e),navigationButtonsContainer:e=>Ta(e),navigationButtons:e=>Ea(e),table:e=>ka(e),dayLabel:e=>Da(e),cellContainer:e=>Ia(e),cell:e=>Oa(e),cellDate:e=>Na(e)},datePicker:{container:e=>Ga(e),button:e=>Ya(e),icon:e=>Xa(e),dateField:e=>Ka(e),dateSegment:e=>Za(e),label:e=>es(e),calendarPopover:e=>Qa(e),calendarUnderlay:e=>Ja(e)},popover:{button:e=>Ae(e),popover:()=>"border-2 text-black p-4 bg-gray-300"},typography:e=>oe(e),button:e=>Ae(e),sidePanel:{wrapper:e=>vs(e),container:e=>ys(e),innerContainer:e=>xs(e)},lightBox:{wrapper:e=>ns(e),container:e=>os(e),closeBtn:e=>as(e),label:e=>ss(e)},shareButton:{icon:e=>gs(e),button:e=>hs(e),container:e=>fs(e),linksList:e=>ms(e),link:e=>ps(e),linkIcons:e=>bs(e)},checkbox:{container:e=>Ba(e),label:e=>Va(e),checkBox:e=>Ua(e),checkMark:e=>Fa(e),checkMarkIcon:e=>za(e),errorMessage:e=>oe(e)},radio:{label:e=>is(e),radio:e=>ls(e),selectedMark:e=>cs(e),errorMessage:e=>oe(e)},radioGroup:{radioGroup:e=>us(e),radioGroupItemsGroup:e=>ds(e),errorMessage:e=>oe(e)},checkboxGroup:{checkboxGroup:e=>Ha(e),checkboxGroupItemsGroup:e=>Wa(e),errormessage:e=>oe(e)},select:{button:e=>Ae(e),ul:e=>oe({...e,className:"outline outline-2 outline-white outline-offset-2 p-2 my-4 rounded-md w-full flex flex-col gap-6"}),popover:e=>Ae({...e,className:"w-[var(--select-container-width)]"}),errorMessage:e=>oe({...e,size:"footnotes",isError:!0}),wrapper:()=>"flex flex-col gap-4 relative",container:()=>"flex flex-col gap-4",li:()=>"transition w-full hover:text-gray-300 focus-ring-white"},textarea:{wrapper:()=>"flex flex-col",container:()=>"flex items-center gap-4",label:()=>"text-gray-3 px-6",input:e=>ws(e),errorMessage:e=>oe({...e,size:"footnotes",isError:!0})},textInput:{wrapper:()=>"flex flex-col rounded-md px-4 py-1 mb-3 m-0.5 border-2 aria-disabled:pointer-events-none aria-disabled:opacity-30 focus-ring-black",label:()=>"text-xs",container:()=>"flex items-center gap-4",input:()=>"",errorMessage:e=>oe({...e,size:"footnotes",isError:!0})},menu:{sidePanel:{wrapper:()=>"",container:()=>"",innerContainer:()=>""},wrapper:()=>""},menuItem:{wrapper:()=>"",container:()=>"",innerContent:()=>"",button:()=>"",anchor:()=>""},img:rs}),Ps=b.memo(En($s)),R=(e,t={},r=null)=>{const n=Sn();if(n!=null&&e!=null){const{brandTheme:o}=n,a=Rn.get(o,e);if(typeof a=="function"){const i=a==null?void 0:a(t);if(typeof i=="string")return i}}if(r)return r},F=({as:e="span",themeName:t="typography",tokens:r,customTheme:n,children:o,...a})=>{const i=R(t,r,n);return l.jsx(e,{...a,className:i,children:o})},Dn=b.forwardRef((e,t)=>{const{as:r="span",tokens:n,themeName:o="typography",customTheme:a,children:i,...s}=e,c=R(o,n,a);return l.jsx(r,{...s,ref:t,className:c,children:i})}),nr=b.forwardRef((e,t)=>{var x;const{as:r="a",handlePress:n,children:o,as:a,customTheme:i,tokens:s,themeName:c="button",nextLinkProps:u,...d}=e,h=t,{linkProps:f}=S.useLink({...e,...u,href:e.href??((x=u==null?void 0:u.href)==null?void 0:x.toString()),elementType:a==null?void 0:a.toString(),onPress:n},t??h),p=R(c,s,i);return l.jsx(S.FocusRing,{focusRingClass:"has-focus-ring",children:l.jsx(r,{ref:h,...f,...u,...d,className:p,children:o})})}),In=b.forwardRef((e,t)=>{const{as:r="button",handlePress:n,children:o,as:a,customTheme:i,tokens:s,themeName:c="button",isDisabled:u=!1,...d}=e,h=t,{buttonProps:f}=S.useButton({...e,isDisabled:u,elementType:a,onPress:n},t??h),p=R(c,s,i);return l.jsx(S.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:l.jsx(r,{ref:h,...f,...d,className:p,children:o})})}),Ce=b.forwardRef((e,t)=>{const{as:r}=e;return r==="a"?l.jsx(nr,{ref:t,...e}):l.jsx(In,{ref:t,...e})}),Cs=e=>{const{as:t}=e,r=b.useRef(null);return t==="a"?l.jsx(nr,{ref:r,...e}):l.jsx(In,{ref:r,...e})},ve=b.memo(Cs),_s=(e,t)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((n,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t)))})},Rs=e=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...e}),On=b.memo(Rs),js=Object.freeze(Object.defineProperty({__proto__:null,default:On},Symbol.toStringTag,{value:"Module"})),Ms=e=>{const{icon:t,...r}=e,n=b.useMemo(()=>b.lazy(()=>_s(Object.assign({"../icons/ArrowDown.tsx":()=>Promise.resolve().then(()=>rc),"../icons/ArrowLeft.tsx":()=>Promise.resolve().then(()=>oc),"../icons/ArrowRight.tsx":()=>Promise.resolve().then(()=>sc),"../icons/Check.tsx":()=>Promise.resolve().then(()=>lc),"../icons/ChevronLeft.tsx":()=>Promise.resolve().then(()=>uc),"../icons/ChevronRight.tsx":()=>Promise.resolve().then(()=>fc),"../icons/CloseBtn.tsx":()=>Promise.resolve().then(()=>mc),"../icons/Facebook.tsx":()=>Promise.resolve().then(()=>gc),"../icons/FacebookColored.tsx":()=>Promise.resolve().then(()=>vc),"../icons/FacebookRounded.tsx":()=>Promise.resolve().then(()=>xc),"../icons/Globe.tsx":()=>Promise.resolve().then(()=>$c),"../icons/IconFallback.tsx":()=>Promise.resolve().then(()=>js),"../icons/Instagram.tsx":()=>Promise.resolve().then(()=>Cc),"../icons/InstagramColored.tsx":()=>Promise.resolve().then(()=>Rc),"../icons/Link.tsx":()=>Promise.resolve().then(()=>Mc),"../icons/LinkedIn.tsx":()=>Promise.resolve().then(()=>Tc),"../icons/Mail.tsx":()=>Promise.resolve().then(()=>kc),"../icons/Plus.tsx":()=>Promise.resolve().then(()=>Ic),"../icons/Share.tsx":()=>Promise.resolve().then(()=>Nc),"../icons/Twitter.tsx":()=>Promise.resolve().then(()=>Lc),"../icons/TwitterColored.tsx":()=>Promise.resolve().then(()=>Bc),"../icons/Upload.tsx":()=>Promise.resolve().then(()=>Uc),"../icons/X.tsx":()=>Promise.resolve().then(()=>zc),"../icons/YouTube.tsx":()=>Promise.resolve().then(()=>Wc),"../icons/YouTubeColored.tsx":()=>Promise.resolve().then(()=>Yc)}),`../icons/${t||"ArrowRight"}.tsx`)),[t]);return l.jsx(b.Suspense,{fallback:l.jsx(On,{className:"overflow-visible pointer-events-none"}),children:l.jsx(n,{...r,className:"overflow-visible pointer-events-none",...e})})},ee=e=>{const{icon:t,as:r="span",tokens:n,customTheme:o,themeName:a="icon",children:i,...s}=e,c=R(a,n,o);return typeof t!="string"?l.jsxs(r,{...s,className:c,children:[i,t]}):l.jsxs(r,{className:c,children:[i,l.jsx(Ms,{icon:t,...s})]})},Ss=e=>{const{customTheme:t,themeName:r="accordion",id:n,tokens:o,title:a,ariaLabel:i,onClick:s,icon:c,children:u,defaultIsOpen:d=!1}=e,[h,f]=b.useState(d),p=R(`${r}.container`,{...o,isOpen:h},t),x=R(`${r}.title`,{...o,isOpen:h},t),m=R(`${r}.icon`,{...o,isOpen:h},t),g=R(`${r}.region`,{...o,isOpen:h},t),v=R(`${r}.content`,{...o,isOpen:h},t);return l.jsxs("div",{className:p,id:`accordion-control-${n}`,"aria-label":i,"aria-expanded":h,"aria-controls":`accordion-content-${n}`,children:[l.jsxs(ve,{themeName:`${r}.button`,tokens:{...o,isOpen:h},handlePress:()=>{f(!h),s==null||s(h)},as:"button",id:`accordion-control-${n}`,"aria-label":i,children:[l.jsx("div",{className:x,children:a}),l.jsx("div",{className:m,children:l.jsx(ee,{icon:c??"ArrowDown"})})]}),l.jsx("div",{className:g,role:"region",id:`accordion-content-${n}`,"aria-labelledby":`accordion-control-${n}`,children:l.jsx("div",{className:v,children:u})})]})},Ts=e=>{const{sharingLinksList:t,id:r,isOpen:n,setIsOpen:o,onShare:a,themeName:i="shareButton",tokens:s,customTheme:c}=e,u=R(`${i}.linksList`,{...s,isOpen:n},c),d=S.useFocusManager(),h=f=>{f.key==="Escape"&&o(!1);const{listDirection:p}=s??{};p==="row"&&(f.key==="ArrowRight"&&(d==null||d.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowLeft"&&(d==null||d.focusPrevious({wrap:!0}),f.preventDefault())),p==="column"&&(f.key==="ArrowDown"&&(d==null||d.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowUp"&&(d==null||d.focusPrevious({wrap:!0}),f.preventDefault()))};return l.jsx("div",{className:u,id:r,role:"listbox",tabIndex:-1,onKeyDown:h,children:t==null?void 0:t.map(f=>{const{ariaLabel:p,onClick:x,href:m,icon:g,key:v}=f;return l.jsx(ve,{themeName:`${i}.link`,tokens:{...s,isOpen:n},handlePress:()=>{a==null||a(v),x==null||x(v)},"aria-label":p,...m?{href:m,rel:"noopener noreferrer",target:"_blank",as:"a"}:{},role:"option",children:l.jsx(ee,{themeName:`${i}.linkIcons`,icon:g})},v)})})},Es=e=>{const{ariaLabel:t,icon:r,id:n,sharingLinksList:o,onShare:a,customTheme:i,themeName:s="shareButton",tokens:c,...u}=e,[d,h]=b.useState(!1),f=R(`${s}.container`,c,i),p=m=>{h(!d),!d&&setTimeout(()=>{var v,C;const g=(C=(v=m.target.parentElement)==null?void 0:v.lastChild)==null?void 0:C.firstChild;g==null||g.focus()})},x=m=>{const g=m.currentTarget.firstChild,v=m.currentTarget.lastChild,C=v.firstChild,$=v.lastChild,{listDirection:y}=c??{};y==="row"&&(m.key==="ArrowRight"&&m.target===g&&(C==null||C.focus(),m.preventDefault()),m.key==="ArrowLeft"&&m.target===g&&($.focus(),m.preventDefault())),y==="column"&&(m.key==="ArrowDown"&&m.target===g&&(C==null||C.focus(),m.preventDefault()),m.key==="ArrowUp"&&m.target===g&&($.focus(),m.preventDefault())),m.key==="Escape"&&(h(!1),g==null||g.focus()),document.activeElement===v&&(g==null||g.focus())};return l.jsx(S.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:d,children:l.jsxs("div",{className:f,onKeyDown:x,children:[l.jsx(Ce,{themeName:`${s}.button`,tokens:{...c,isOpen:d},"aria-label":t,"aria-haspopup":"listbox","aria-expanded":d?"true":"false","aria-controls":"share-buttons",handlePress:p,...u,children:l.jsx(ee,{themeName:`${s}.icon`,icon:r??"Share"})}),d&&l.jsx(Ts,{id:n,sharingLinksList:o,onShare:a,isOpen:d,setIsOpen:h,themeName:s,customTheme:i,tokens:c})]})})};function Nn(){const e=b.createContext(void 0);function t(){const r=b.useContext(e);if(r===void 0)throw new Error("useCtx must be inside a Provider");return r}return[t,e.Provider]}function ks(){const e=b.createContext(void 0);function t(){const r=b.useContext(e);return r===void 0?{}:r}return[t,e.Provider]}const An=(e,t,r)=>{const n=la.useOverlayTriggerState({defaultOpen:e,onOpenChange:d=>t==null?void 0:t(d)}),o=b.useRef(null),a=b.useRef(null);b.useEffect(()=>{if(e){n.open();return}n.close()},[e]);const i=()=>{n.open()},s=()=>{n.close(),r==null||r()},{buttonProps:c}=S.useButton({elementType:"div",onPress:i},o),{buttonProps:u}=S.useButton({onPress:s},a);return{state:n,openButtonProps:c,closeButtonProps:u,handleOpen:i,handleClose:s,openButtonRef:o,closeButtonRef:a}},[or,Ds]=Nn();function Ln({children:e,defaultSelectedKey:t,onOpenCallback:r,onCloseCallback:n,defaultIsOpen:o=!1}){const{state:a,closeButtonProps:i,closeButtonRef:s,openButtonProps:c,openButtonRef:u}=An(o,r,n),d=b.useMemo(()=>({defaultSelectedKey:t,overlayState:a,buttonProps:{closeButtonProps:i,closeButtonRef:s,openButtonProps:c,openButtonRef:u}}),[a,t,i,c]);return l.jsx(Ds,{value:d,children:e})}const qn=({isVisible:e,children:t})=>X.useTransition(e,{from:{opacity:0,translateX:"100%"},enter:{opacity:1,translateX:"0%"},leave:{opacity:0,translateX:"25%"}})((n,o)=>o&&l.jsx(X.animated.div,{style:n,children:t})),Is="fixed",Os=({isVisible:e,children:t})=>X.useTransition(e,{from:{opacity:0,position:Is,left:0,top:0,zIndex:1e3,bottom:0,height:"100%",width:"100%"},enter:{opacity:1},leave:{opacity:0},config:X.config.stiff})((n,o)=>o&&l.jsx(X.animated.div,{style:n,children:t})),Ns="fixed",As=({isVisible:e,children:t})=>X.useTransition(e,{from:{opacity:0,scale:.75,position:Ns,left:0,top:0,zIndex:1e3,bottom:0,height:"100%",width:"100%"},enter:{opacity:1,scale:1},leave:{opacity:0,scale:.75},config:X.config.stiff})((n,o)=>o&&l.jsx(X.animated.div,{style:n,children:t})),Ls=e=>{const{children:t}=e,r=b.useRef(null),{overlayProps:n,underlayProps:o}=S.useOverlay(e,r),{modalProps:a}=S.useModal(),{dialogProps:i}=S.useDialog(e,r);return l.jsx("div",{...o,children:l.jsx(S.FocusRing,{focusRingClass:"has-focus-ring",within:!0,autoFocus:!0,children:l.jsx(S.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:l.jsx("div",{...n,...i,...a,ref:r,children:t})})})})},ar=e=>{const[t,r]=b.useState(!1),{children:n,state:o,onCloseCallBack:a,transitionComponent:i=As}=e,s=b.useCallback(()=>{o.close(),a==null||a()},[o.close,a]);return b.useEffect(()=>{!o.isOpen&&t||r(!0)},[o.isOpen]),t?l.jsx(Se.OverlayContainer,{children:l.jsx(i,{isVisible:o.isOpen,children:l.jsx(Ls,{isOpen:o.isOpen,onClose:s,isDismissable:!0,children:n})})}):null},qs=e=>{const{children:t,closeBtnRender:r,themeName:n="sidePanel",tokens:o,TransitionAnimation:a=qn,PanelTransition:i=Os,customTheme:s,onCloseCallBack:c}=e,u=R(`${n}.wrapper`,o,s),d=R(`${n}.container`,o,s),h=R(`${n}.innerContainer`,o,s),{overlayState:f}=or();return l.jsx(ar,{onCloseCallBack:c,state:f,transitionComponent:i,children:l.jsxs(ia,{className:u,children:[r&&r(),l.jsx(a,{isVisible:f.isOpen,children:l.jsx("div",{className:d,children:l.jsx("div",{className:h,children:t})})})]})})},Bn=b.memo(qs),Bs=e=>{const{children:t,thumbnailContent:r,isOpen:n,onOpenCallBack:o,onCloseCallBack:a,label:i,themeName:s="lightBox",tokens:c,customTheme:u}=e,{state:d,openButtonRef:h,openButtonProps:f,closeButtonProps:p,closeButtonRef:x}=An(n,o,a),m=R(`${s}.container`,c,u);return l.jsxs("div",{children:[l.jsx(be.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:l.jsxs(Ce,{ref:h,themeName:`${s}.wrapper`,...f,...n?{tabIndex:-1}:{},children:[i&&l.jsx(F,{themeName:`${s}.label`,tokens:{size:"footnotes"},children:i}),r]})}),l.jsx(ar,{onCloseCallBack:a,state:d,children:l.jsxs("div",{children:[l.jsx(Ce,{themeName:`${s}.closeBtn`,type:"button",...p,ref:x,children:l.jsx(ee,{icon:"CloseBtn"})}),l.jsx("div",{className:m,children:t})]})})]})},Q=({as:e="div",themeName:t="box",tokens:r,customTheme:n,children:o,className:a,...i})=>{const s=R(t,r,n);return l.jsx(e,{...i,className:s,children:o})},ct=b.forwardRef((e,t)=>{const{as:r="div",tokens:n,themeName:o="box",customTheme:a,children:i,...s}=e,c=R(o,n,a);return l.jsx(r,{...s,ref:t,className:c,children:i})}),Vs=b.forwardRef((e,t)=>{const{isOpen:r,onClose:n,children:o,positionProps:a,themeName:i="popover",tokens:s,customTheme:c,isDismissable:u,shouldCloseOnBlur:d,...h}=e,{overlayProps:f}=S.useOverlay({isDismissable:u,shouldCloseOnBlur:d,isOpen:r,onClose:n},t),{modalProps:p}=S.useModal(),{dialogProps:x}=S.useDialog({},t),m=R(`${i}.popover`,s,c);return l.jsx(S.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:l.jsxs(ct,{customTheme:m,...S.mergeProps(f,p,x),ref:t,...a,...h,children:[b.Children.map(o,g=>l.jsx(S.FocusRing,{focusRingClass:"has-focus-ring",children:g})),l.jsx(S.DismissButton,{onDismiss:n})]})})});function Us(e){const{children:t,buttonProps:r,placement:n="right",offset:o=5,themeName:a="popover",tokens:i,customTheme:s,...c}=e,u=Xt.useOverlayTriggerState({}),d=b.useRef(null),h=b.useRef(null),{triggerProps:f,overlayProps:p}=S.useOverlayTrigger({type:"dialog"},u,d),{overlayProps:x}=S.useOverlayPosition({targetRef:d,overlayRef:h,placement:n,offset:o,isOpen:u.isOpen}),{onPress:m,...g}=f;return l.jsxs(l.Fragment,{children:[l.jsx(Ce,{themeName:`${a}.button`,handlePress:m,...r,...g,ref:d}),u.isOpen&&l.jsx(S.OverlayContainer,{children:l.jsx(Vs,{themeName:a,tokens:i,customTheme:s,...p,...c,positionProps:x,ref:h,isOpen:u.isOpen,onClose:u.close,children:t})})]})}const Fs=({content:e,themeName:t="wysiwyg",...r})=>l.jsx(F,{...r,themeName:t,dangerouslySetInnerHTML:{__html:ca.sanitize(e,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling"]})}}),zs=e=>{const{as:t="time",date:r,tokens:n,customTheme:o,dateFormatterOptions:a={month:"long",day:"numeric",year:"numeric"},themeName:i="typography",...s}=e,c=S.useIsSSR(),u=new Date(r),h=it.useDateFormatter(a).format(u),f=R(i,n,o);return c||lt.isEmpty(h)?null:l.jsx(t,{...s,dateTime:u.toISOString(),className:f,children:h})},Hs=({item:e,state:t,themeName:r="li"})=>{const n=b.useRef(null),{optionProps:o,isFocusVisible:a}=S.useOption({key:e.key},t,n),i=R(r);return l.jsx(Dn,{as:"li",...o,tokens:{className:`${i} ${a?"has-focus-ring":""}`},ref:n,children:e.rendered})},Ws=e=>{const t=b.useRef(null),{listBoxRef:r=t,state:n,themeName:o="option"}=e,{listBoxProps:a}=S.useListBox(e,n,r);return l.jsx(S.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:l.jsx(Dn,{...a,ref:r,as:"ul",themeName:`${o}.ul`,children:[...n.collection].map(i=>l.jsx(Hs,{themeName:`${o}.li`,item:i,state:n},i.key))})})},Gs=e=>{const t=b.useRef(null),{popoverRef:r=t,state:n,children:o,themeName:a="popover",tokens:i,customTheme:s,triggerRef:c,...u}=e,{popoverProps:d,underlayProps:h}=S.usePopover({...e,popoverRef:r,triggerRef:c},n);return l.jsxs(S.Overlay,{children:[l.jsx("div",{...h,style:{position:"fixed",inset:0}}),l.jsx(Q,{...u,children:l.jsxs(ct,{...d,ref:r,themeName:a,tokens:i,children:[l.jsx(S.DismissButton,{onDismiss:n.close}),o,l.jsx(S.DismissButton,{onDismiss:n.close})]})})]})},Vn=e=>{var L;const{name:t,placeholderLabel:r,disabled:n,hookFormRef:o,isError:a=!1,errorMessage:i,themeName:s="select",tokens:c,customTheme:u,label:d,onSelectionChange:h,defaultValue:f,value:p,icon:x,popoverMatchesWidth:m,...g}=e,v=b.useRef(null),C=Xt.useSelectState({...g,selectedKey:p,defaultSelectedKey:f,onSelectionChange:h}),{triggerProps:$,menuProps:y,labelProps:P}=S.useSelect({...g},C,v),w=R(`${s}.wrapper`,c,u),j=R(`${s}.container`,c,u),{onPress:M,onPressStart:T,...E}=$;return l.jsxs("div",{className:w,children:[d&&l.jsx(F,{...P,as:"label",themeName:`${s}.label`,children:d}),l.jsx(S.HiddenSelect,{...o,state:C,triggerRef:v,name:t,isDisabled:!0}),l.jsxs("div",{className:j,children:[l.jsxs(Ce,{...E,handlePress:G=>{M==null||M(G),T==null||T(G)},ref:v,disabled:n,themeName:`${s}.button`,tokens:{...c,intent:a?"error":"default"},children:[C.selectedItem?C.selectedItem.rendered:r,l.jsx(ee,{icon:x??"ArrowDown"})]}),C.isOpen&&v.current&&l.jsx(Gs,{tokens:c,state:C,triggerRef:v,placement:"bottom",themeName:`${s}.popover`,style:{[`--${s}-container-width`]:`${(L=v.current)==null?void 0:L.offsetWidth}px`},children:l.jsx(Ws,{...y,themeName:s,state:C})}),a&&l.jsx(F,{tokens:{...c,isError:a},themeName:`${s}.errorMessage`,children:i})]})]})},Ys=e=>{const{name:t,required:r,children:n}=e,{register:o,formState:a}=he.useFormContext(),i=he.get(a.errors,t),s=(i==null?void 0:i.message)??void 0,{ref:c}=o(t,{required:r?"This is an error message":!1});return l.jsx(Vn,{...e,isError:!lt.isEmpty(s),errorMessage:s,hookFormRef:c,children:n})},Js=e=>{const{id:t,label:r,isDisabled:n=!1,isError:o=!1,errorMessage:a,ariaLabel:i,icon:s,themeName:c="checkbox",tokens:u,customTheme:d}=e,h=fa.useToggleState(e),f=b.useRef(null),{inputProps:p}=ua.useCheckbox(e,h,f),{isSelected:x}=h,{focusProps:m,isFocusVisible:g}=be.useFocusRing(),v={...u,selected:x,isDisabled:n,isError:o,isFocusVisible:g},C=R(`${c}.container`,v,d),$=R(`${c}.checkBox`,v,d),y=R(`${c}.checkMark`,v,d),P=R(`${c}.checkMarkIcon`,v,d);return l.jsxs("div",{children:[l.jsx(be.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:l.jsxs("label",{className:C,htmlFor:t,"aria-label":i,"aria-disabled":n,children:[l.jsx(da.VisuallyHidden,{children:l.jsx("input",{type:"checkbox",ref:f,"aria-labelledby":t,...p,...m})}),l.jsx("div",{className:$,"aria-checked":x,role:"checkbox","aria-labelledby":t,children:l.jsx("div",{className:y,children:s&&l.jsx(ee,{icon:s,customTheme:P})})}),l.jsx(F,{themeName:`${c}.label`,tokens:v,children:r})]})}),o&&a&&l.jsx(F,{themeName:`${c}.errorMessage`,tokens:v,children:a})]})},sr={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Un={...sr,customError:!0,valid:!1},Me={isInvalid:!1,validationDetails:sr,validationErrors:[]},Qs=b.createContext({}),yr="__formValidationState"+Date.now();function Fn(e){if(e[yr]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:a}=e[yr];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:a}}return Ks(e)}function Ks(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:a,validate:i,validationBehavior:s="aria"}=e;r&&(t||(t=r==="invalid"));let c=t?{isInvalid:!0,validationErrors:[],validationDetails:Un}:null,u=b.useMemo(()=>xr(Zs(i,o)),[i,o]);a!=null&&a.validationDetails.valid&&(a=null);let d=b.useContext(Qs),h=b.useMemo(()=>n?Array.isArray(n)?n.flatMap(E=>Wt(d[E])):Wt(d[n]):[],[d,n]),[f,p]=b.useState(d),[x,m]=b.useState(!1);d!==f&&(p(d),m(!1));let g=b.useMemo(()=>xr(x?[]:h),[x,h]),v=b.useRef(Me),[C,$]=b.useState(Me),y=b.useRef(Me),P=()=>{if(!w)return;j(!1);let E=u||a||v.current;gt(E,y.current)||(y.current=E,$(E))},[w,j]=b.useState(!1);return b.useEffect(P),{realtimeValidation:c||g||u||a||Me,displayValidation:s==="native"?c||g||C:c||g||u||a||C,updateValidation(E){s==="aria"&&!gt(C,E)?$(E):v.current=E},resetValidation(){let E=Me;gt(E,y.current)||(y.current=E,$(E)),s==="native"&&j(!1),m(!0)},commitValidation(){s==="native"&&j(!0),m(!0)}}}function Wt(e){return e?Array.isArray(e)?e:[e]:[]}function Zs(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Wt(r)}return[]}function xr(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Un}:null}function gt(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function Xs(...e){let t=new Set,r=!1,n={...sr};for(let i of e){var o,a;for(let s of i.validationErrors)t.add(s);r||(r=i.isInvalid);for(let s in n)(o=n)[a=s]||(o[a]=i.validationDetails[s])}return n.valid=!r,{isInvalid:r,validationErrors:[...t],validationDetails:n}}function zn(e,t,r){let[n,o]=b.useState(e||t),a=b.useRef(e!==void 0),i=e!==void 0;b.useEffect(()=>{let u=a.current;u!==i&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}.`),a.current=i},[i]);let s=i?e:n,c=b.useCallback((u,...d)=>{let h=(f,...p)=>{r&&(Object.is(s,f)||r(f,...p)),i||(s=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...x)=>{let m=u(i?s:p,...x);return h(m,...d),i?p:m})):(i||o(u),h(u,...d))},[i,s,r]);return[s,c]}function Hn(e={}){let[t,r]=zn(e.value,e.defaultValue||[],e.onChange),n=!!e.isRequired&&t.length===0,o=b.useRef(new Map),a=Fn({...e,value:t}),i=a.displayValidation.isInvalid;var s;return{...a,value:t,setValue(u){e.isReadOnly||e.isDisabled||r(u)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(u){return t.includes(u)},addValue(u){e.isReadOnly||e.isDisabled||t.includes(u)||r(t.concat(u))},removeValue(u){e.isReadOnly||e.isDisabled||t.includes(u)&&r(t.filter(d=>d!==u))},toggleValue(u){e.isReadOnly||e.isDisabled||(t.includes(u)?r(t.filter(d=>d!==u)):r(t.concat(u)))},setInvalid(u,d){let h=new Map(o.current);d.isInvalid?h.set(u,d):h.delete(u),o.current=h,a.updateValidation(Xs(...h.values()))},validationState:(s=e.validationState)!==null&&s!==void 0?s:i?"invalid":null,isInvalid:i,isRequired:n}}const Wn=b.createContext(null),ei=e=>{const{children:t}=e,r=Hn(e);return l.jsx(Wn.Provider,{value:r,children:t})};function ti(){const e=b.useContext(Wn);return e||null}const ri=e=>{const{label:t,isError:r=!1,errorMessage:n,isDisabled:o=!1,children:a,themeName:i="checkboxGroup",tokens:s}=e,c=Hn(e),{groupProps:u,labelProps:d,errorMessageProps:h}=S.useCheckboxGroup(e,c),f={...s,isDisabled:o};return l.jsxs(Q,{...u,"aria-disabled":o,themeName:`${i}.checkboxGroup`,tokens:f,children:[t&&l.jsx(F,{...d,tokens:{size:"h6"},children:t}),l.jsx(Q,{themeName:`${i}.checkboxGroupItemsGroup`,children:l.jsx(ei,{children:a})}),r&&n&&l.jsx(F,{...h,tokens:{isError:!0},children:n})]})},ni=e=>{const{id:t,ariaLabel:r,icon:n,state:o,themeName:a="checkbox",customTheme:i,tokens:s,isDisabled:c=!1,isError:u=!1,value:d,errorMessage:h,label:f}=e,p=b.useRef(null),{inputProps:x}=S.useCheckboxGroupItem(e,o,p),{isSelected:m}=o,g={...s,selected:m(d),isDisabled:c,isError:u},v=R(`${a}.container`,g,i),C=R(`${a}.checkBox`,g,i),$=R(`${a}.checkMark`,g,i),y=R(`${a}.checkMarkIcon`,g,i);return l.jsxs("div",{children:[l.jsx(S.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:l.jsxs("label",{className:v,htmlFor:t,"aria-label":r,"aria-disabled":c,children:[l.jsx(S.VisuallyHidden,{children:l.jsx("input",{ref:p,...x})}),l.jsx("div",{className:C,"aria-checked":m(d),role:"checkbox","aria-labelledby":t,children:l.jsx("div",{className:$,children:n&&l.jsx(ee,{icon:n,customTheme:y})})}),l.jsx(F,{themeName:`${a}.label`,tokens:g,children:f})]})}),u&&h&&l.jsx(F,{themeName:`${a}.errorMessage`,tokens:g,children:h})]})},oi=e=>{const t=ti();return t&&l.jsx(ni,{state:t,...e})},Gn=e=>{const{id:t,label:r,name:n,placeholder:o,required:a,disabled:i=!1,errorMessage:s,ariaLabel:c,value:u,onBlur:d,onChange:h,fieldRef:f,themeName:p="textarea",tokens:x,customTheme:m}=e,g=b.useRef(null),{errorMessageProps:v,inputProps:C,labelProps:$}=S.useTextField(e,g),y={...x,isDisabled:i,isError:s!=null},P=R(`${p}.wrapper`,y,m),w=R(`${p}.input`,y,m),j=R(`${p}.label`,y,m),M=R(`${p}.container`,y,m);return l.jsxs("div",{children:[l.jsxs("div",{className:P,"aria-disabled":i,children:[r&&l.jsx("label",{className:j,...$,children:r}),l.jsx("div",{className:M,children:l.jsx(be.FocusRing,{focusRingClass:"has-focus-ring",children:l.jsx("textarea",{...C,ref:T=>{f==null||f(T),g.current=T},className:w,placeholder:o,disabled:i,required:a,id:t,name:n,"aria-label":c,"aria-labelledby":t,value:u,onBlur:d,onChange:h})})})]}),s&&l.jsx(F,{themeName:`${p}.errorMessage`,tokens:y,...v,children:s})]})},ai=e=>{const{name:t,required:r,minLength:n=0,maxLength:o=99999999,validation:a}=e,{register:i,formState:s}=he.useFormContext(),c=he.get(s.errors,t),u=(c==null?void 0:c.message)??void 0,{t:d}=er.useTranslation("components"),{ref:h,...f}=i(t,{required:r?d("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:n,message:d("FORM.ERROR.MIN_LENGTH",{length:n})},maxLength:{value:o,message:d("FORM.ERROR.MAX_LENGTH",{length:n})},...a});return l.jsx(Gn,{fieldRef:h,...f,...e,isError:!Rn.isEmpty(u),errorMessage:u})},Yn=e=>{const{id:t,label:r,required:n,disabled:o=!1,errorMessage:a,ariaLabel:i,value:s,onBlur:c,onChange:u,fieldRef:d,type:h="text",children:f,themeName:p="textInput",tokens:x,customTheme:m}=e,g=b.useRef(null),{errorMessageProps:v,inputProps:C,labelProps:$}=S.useTextField(e,g),y={...x,isDisabled:o,isError:a!=null},P=R(`${p}.wrapper`,y,m),w=R(`${p}.label`,y,m),j=R(`${p}.input`,y,m),M=R(`${p}.container`,y,m);return l.jsxs("div",{children:[l.jsx(be.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:l.jsxs("div",{"aria-disabled":o,className:P,children:[r&&l.jsx("label",{className:w,...$,children:r}),l.jsxs("div",{className:M,children:[f,l.jsx("input",{...C,className:j,disabled:o,required:n,ref:T=>{d==null||d(T),g.current=T},"aria-label":i,"aria-labelledby":t,value:s,onBlur:c,onChange:u,type:h})]})]})}),a&&l.jsx(F,{themeName:`${p}.errorMessage`,tokens:y,...v,children:a})]})},si=e=>{const{name:t,required:r,minLength:n=0,maxLength:o=99999999,validation:a}=e,{register:i,formState:s}=he.useFormContext(),c=he.get(s.errors,t),u=(c==null?void 0:c.message)??void 0,{t:d}=er.useTranslation("components"),{ref:h,...f}=i(t,{required:r?d("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:n,message:d("FORM.ERROR.MIN_LENGTH",{length:n})},maxLength:{value:o,message:d("FORM.ERROR.MAX_LENGTH",{length:n})},...a});return l.jsx(Yn,{fieldRef:h,...f,...e,isError:!lt.isEmpty(u),errorMessage:u})};function ii(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Jn(e,t,r){ii(e,t),t.set(e,r)}function ie(e,t){return e-t*Math.floor(e/t)}const Qn=1721426;function ge(e,t,r,n){t=De(e,t);let o=t-1,a=-2;return r<=2?a=0:de(t)&&(a=-1),Qn-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*r-362)/12+a+n)}function de(e){return e%4===0&&(e%100!==0||e%400===0)}function De(e,t){return e==="BC"?1-t:t}function ut(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const li={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class le{fromJulianDay(t){let r=t,n=r-Qn,o=Math.floor(n/146097),a=ie(n,146097),i=Math.floor(a/36524),s=ie(a,36524),c=Math.floor(s/1461),u=ie(s,1461),d=Math.floor(u/365),h=o*400+i*100+c*4+d+(i!==4&&d!==4?1:0),[f,p]=ut(h),x=r-ge(f,p,1,1),m=2;r<ge(f,p,3,1)?m=0:de(p)&&(m=1);let g=Math.floor(((x+m)*12+373)/367),v=r-ge(f,p,g,1)+1;return new V(f,p,g,v)}toJulianDay(t){return ge(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return li[de(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return de(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const ci={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function wr(e,t){return t=dt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Kn(e,t){let r=e.calendar.toJulianDay(e),n=Math.ceil(r+1-hi(t))%7;return n<0&&(n+=7),n}function Zn(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function ui(e,t){return $r(e)-$r(t)}function $r(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let bt=null;function Xn(){return bt==null&&(bt=new Intl.DateTimeFormat().resolvedOptions().timeZone),bt}function di(e){return e.subtract({days:e.day-1})}const Pr=new Map;function fi(e){if(Intl.Locale){let r=Pr.get(e);return r||(r=new Intl.Locale(e).maximize().region,r&&Pr.set(e,r)),r}let t=e.split("-")[1];return t==="u"?void 0:t}function hi(e){let t=fi(e);return t&&ci[t]||0}function mi(e,t){let r=e.calendar.getDaysInMonth(e);return Math.ceil((Kn(di(e),t)+r)/7)}function Cr(e){e=dt(e,new le);let t=De(e.era,e.year);return eo(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function eo(e,t,r,n,o,a,i){let s=new Date;return s.setUTCHours(n,o,a,i),s.setUTCFullYear(e,t-1,r),s.getTime()}function _r(e,t){if(t==="UTC")return 0;if(e>0&&t===Xn())return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:n,day:o,hour:a,minute:i,second:s}=to(e,t);return eo(r,n,o,a,i,s,0)-Math.floor(e/1e3)*1e3}const Rr=new Map;function to(e,t){let r=Rr.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Rr.set(t,r));let n=r.formatToParts(new Date(e)),o={};for(let a of n)a.type!=="literal"&&(o[a.type]=a.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const jr=864e5;function pi(e,t,r,n){return(r===n?[r]:[r,n]).filter(a=>gi(e,t,a))}function gi(e,t,r){let n=to(r,t);return e.year===n.year&&e.month===n.month&&e.day===n.day&&e.hour===n.hour&&e.minute===n.minute&&e.second===n.second}function bi(e,t,r="compatible"){let n=no(e);if(t==="UTC")return Cr(n);if(t===Xn()&&r==="compatible"){n=dt(n,new le);let c=new Date,u=De(n.era,n.year);return c.setFullYear(u,n.month-1,n.day),c.setHours(n.hour,n.minute,n.second,n.millisecond),c.getTime()}let o=Cr(n),a=_r(o-jr,t),i=_r(o+jr,t),s=pi(n,t,o-a,o-i);if(s.length===1)return s[0];if(s.length>1)switch(r){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(o-a,o-i);case"compatible":case"later":return Math.max(o-a,o-i);case"reject":throw new RangeError("No such absolute time found")}}function ro(e,t,r="compatible"){return new Date(bi(e,t,r))}function no(e,t){let r=0,n=0,o=0,a=0;if("timeZone"in e)({hour:r,minute:n,second:o,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:n,second:o,millisecond:a}=t),new rt(e.calendar,e.era,e.year,e.month,e.day,r,n,o,a)}function dt(e,t){if(e.calendar.identifier===t.identifier)return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,_e(n),n}function ir(e,t){let r=e.copy(),n="hour"in r?Pi(r,t):0;Gt(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,Yt(r),oo(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=n,vi(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let o=r.calendar.getYearsInEra(r);if(r.year>o){var a,i;let c=(a=(i=r.calendar).isInverseEra)===null||a===void 0?void 0:a.call(i,r);r.year=o,r.month=c?1:r.calendar.getMonthsInYear(r),r.day=c?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let s=r.calendar.getMonthsInYear(r);return r.month>s&&(r.month=s,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function Gt(e,t){var r,n;!((r=(n=e.calendar).isInverseEra)===null||r===void 0)&&r.call(n,e)&&(t=-t),e.year+=t}function Yt(e){for(;e.month<1;)Gt(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Gt(e,1)}function vi(e){for(;e.day<1;)e.month--,Yt(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Yt(e)}function oo(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function _e(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),oo(e)}function yi(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function ao(e,t){return ir(e,yi(t))}function so(e,t){let r=e.copy();return t.era!=null&&(r.era=t.era),t.year!=null&&(r.year=t.year),t.month!=null&&(r.month=t.month),t.day!=null&&(r.day=t.day),_e(r),r}function xi(e,t){let r=e.copy();return t.hour!=null&&(r.hour=t.hour),t.minute!=null&&(r.minute=t.minute),t.second!=null&&(r.second=t.second),t.millisecond!=null&&(r.millisecond=t.millisecond),$i(r),r}function wi(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Le(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Le(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Le(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Le(e.hour,24),t}function $i(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Le(e,t){let r=e%t;return r<0&&(r+=t),r}function Pi(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,wi(e)}function io(e,t,r,n){let o=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),c=s.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=fe(c,r,0,s.length-1,n==null?void 0:n.round),o.era=s[c],_e(o);break}case"year":var a,i;!((a=(i=o.calendar).isInverseEra)===null||a===void 0)&&a.call(i,o)&&(r=-r),o.year=fe(e.year,r,-1/0,9999,n==null?void 0:n.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=fe(e.month,r,1,e.calendar.getMonthsInYear(e),n==null?void 0:n.round);break;case"day":o.day=fe(e.day,r,1,e.calendar.getDaysInMonth(e),n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),_e(o),o}function Ci(e,t,r,n){let o=e.copy();switch(t){case"hour":{let a=e.hour,i=0,s=23;if((n==null?void 0:n.hourCycle)===12){let c=a>=12;i=c?12:0,s=c?23:11}o.hour=fe(a,r,i,s,n==null?void 0:n.round);break}case"minute":o.minute=fe(e.minute,r,0,59,n==null?void 0:n.round);break;case"second":o.second=fe(e.second,r,0,59,n==null?void 0:n.round);break;case"millisecond":o.millisecond=fe(e.millisecond,r,0,999,n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+t)}return o}function fe(e,t,r,n,o=!1){if(o){e+=Math.sign(t),e<r&&(e=n);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>n&&(e=r)}else e+=t,e<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function _i(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function lo(e){let t=dt(e,new le);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Ri(e){return`${lo(e)}T${_i(e)}`}function co(e){let t=typeof e[0]=="object"?e.shift():new le,r;if(typeof e[0]=="string")r=e.shift();else{let i=t.getEras();r=i[i.length-1]}let n=e.shift(),o=e.shift(),a=e.shift();return[t,r,n,o,a]}var ji=new WeakMap;class V{copy(){return this.era?new V(this.calendar,this.era,this.year,this.month,this.day):new V(this.calendar,this.year,this.month,this.day)}add(t){return ir(this,t)}subtract(t){return ao(this,t)}set(t){return so(this,t)}cycle(t,r,n){return io(this,t,r,n)}toDate(t){return ro(this,t)}toString(){return lo(this)}compare(t){return Zn(this,t)}constructor(...t){Jn(this,ji,{writable:!0,value:void 0});let[r,n,o,a,i]=co(t);this.calendar=r,this.era=n,this.year=o,this.month=a,this.day=i,_e(this)}}var Mi=new WeakMap;class rt{copy(){return this.era?new rt(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new rt(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return ir(this,t)}subtract(t){return ao(this,t)}set(t){return so(xi(this,t),t)}cycle(t,r,n){switch(t){case"era":case"year":case"month":case"day":return io(this,t,r,n);default:return Ci(this,t,r,n)}}toDate(t,r){return ro(this,t,r)}toString(){return Ri(this)}compare(t){let r=Zn(this,t);return r===0?ui(this,no(t)):r}constructor(...t){Jn(this,Mi,{writable:!0,value:void 0});let[r,n,o,a,i]=co(t);this.calendar=r,this.era=n,this.year=o,this.month=a,this.day=i,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,_e(this)}}const $e=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Si=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Xe=[1867,1911,1925,1988,2018],ue=["meiji","taisho","showa","heisei","reiwa"];function Mr(e){const t=$e.findIndex(([r,n,o])=>e.year<r||e.year===r&&e.month<n||e.year===r&&e.month===n&&e.day<o);return t===-1?$e.length-1:t===0?0:t-1}function vt(e){let t=Xe[ue.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new V(e.year+t,e.month,e.day)}class Ti extends le{fromJulianDay(t){let r=super.fromJulianDay(t),n=Mr(r);return new V(this,ue[n],r.year-Xe[n],r.month,r.day)}toJulianDay(t){return super.toJulianDay(vt(t))}balanceDate(t){let r=vt(t),n=Mr(r);ue[n]!==t.era&&(t.era=ue[n],t.year=r.year-Xe[n]),this.constrainDate(t)}constrainDate(t){let r=ue.indexOf(t.era),n=Si[r];if(n!=null){let[o,a,i]=n,s=o-Xe[r];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(i,t.day)))}if(t.year===1&&r>=0){let[,o,a]=$e[r];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(a,t.day))}}getEras(){return ue}getYearsInEra(t){let r=ue.indexOf(t.era),n=$e[r],o=$e[r+1];if(o==null)return 9999-n[0]+1;let a=o[0]-n[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(vt(t))}getMinimumMonthInYear(t){let r=Sr(t);return r?r[1]:1}getMinimumDayInMonth(t){let r=Sr(t);return r&&t.month===r[1]?r[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function Sr(e){if(e.year===1){let t=ue.indexOf(e.era);return $e[t]}}const uo=-543;class Ei extends le{fromJulianDay(t){let r=super.fromJulianDay(t),n=De(r.era,r.year);return new V(this,n-uo,r.month,r.day)}toJulianDay(t){return super.toJulianDay(Tr(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Tr(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function Tr(e){let[t,r]=ut(e.year+uo);return new V(t,r,e.month,e.day)}const nt=1911;function fo(e){return e.era==="minguo"?e.year+nt:1-e.year+nt}function Er(e){let t=e-nt;return t>0?["minguo",t]:["before_minguo",1-t]}class ki extends le{fromJulianDay(t){let r=super.fromJulianDay(t),n=De(r.era,r.year),[o,a]=Er(n);return new V(this,o,a,r.month,r.day)}toJulianDay(t){return super.toJulianDay(kr(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[r,n]=Er(fo(t));t.era=r,t.year=n}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(kr(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-nt}constructor(...t){super(...t),this.identifier="roc"}}function kr(e){let[t,r]=ut(fo(e));return new V(t,r,e.month,e.day)}const Di=1948321;function Ii(e){let t=e>0?e-474:e-473,r=ie(t,2820)+474;return ie((r+38)*31,128)<31}function qe(e,t,r){let n=e>0?e-474:e-473,o=ie(n,2820)+474,a=t<=7?31*(t-1):30*(t-1)+6;return Di-1+1029983*Math.floor(n/2820)+365*(o-1)+Math.floor((31*o-5)/128)+a+r}class Oi{fromJulianDay(t){let r=t-qe(475,1,1),n=Math.floor(r/1029983),o=ie(r,1029983),a=o===1029982?2820:Math.floor((128*o+46878)/46751),i=474+2820*n+a;i<=0&&i--;let s=t-qe(i,1,1)+1,c=s<=186?Math.ceil(s/31):Math.ceil((s-6)/31),u=t-qe(i,c,1)+1;return new V(this,i,c,u)}toJulianDay(t){return qe(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Ii(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const yt=78,Dr=80;class Ni extends le{fromJulianDay(t){let r=super.fromJulianDay(t),n=r.year-yt,o=t-ge(r.era,r.year,1,1),a;o<Dr?(n--,a=de(r.year-1)?31:30,o+=a+155+90+10):(a=de(r.year)?31:30,o-=Dr);let i,s;if(o<a)i=1,s=o+1;else{let c=o-a;c<155?(i=Math.floor(c/31)+2,s=c%31+1):(c-=155,i=Math.floor(c/30)+7,s=c%30+1)}return new V(this,n,i,s)}toJulianDay(t){let r=t.year+yt,[n,o]=ut(r),a,i;return de(o)?(a=31,i=ge(n,o,3,21)):(a=30,i=ge(n,o,3,22)),t.month===1?i+t.day-1:(i+=a+Math.min(t.month-2,5)*31,t.month>=8&&(i+=(t.month-7)*30),i+=t.day-1,i)}getDaysInMonth(t){return t.month===1&&de(t.year+yt)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const ot=1948440,Ir=1948439,K=1300,we=1600,Ai=460322;function at(e,t,r,n){return n+Math.ceil(29.5*(r-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function ho(e,t,r){let n=Math.floor((30*(r-t)+10646)/10631),o=Math.min(12,Math.ceil((r-(29+at(t,n,1,1)))/29.5)+1),a=r-at(t,n,o,1)+1;return new V(e,n,o,a)}function Or(e){return(14+11*e)%30<11}class lr{fromJulianDay(t){return ho(this,ot,t)}toJulianDay(t){return at(ot,t.year,t.month,t.day)}getDaysInMonth(t){let r=29+t.month%2;return t.month===12&&Or(t.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(t){return Or(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Li extends lr{fromJulianDay(t){return ho(this,Ir,t)}toJulianDay(t){return at(Ir,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const qi="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Jt,Pe;function et(e){return Ai+Pe[e-K]}function Te(e,t){let r=e-K,n=1<<11-(t-1);return Jt[r]&n?30:29}function Nr(e,t){let r=et(e);for(let n=1;n<t;n++)r+=Te(e,n);return r}function Ar(e){return Pe[e+1-K]-Pe[e-K]}class Bi extends lr{fromJulianDay(t){let r=t-ot,n=et(K),o=et(we);if(r<n||r>o)return super.fromJulianDay(t);{let a=K-1,i=1,s=1;for(;s>0;){a++,s=r-et(a)+1;let c=Ar(a);if(s===c){i=12;break}else if(s<c){let u=Te(a,i);for(i=1;s>u;)s-=u,i++,u=Te(a,i);break}}return new V(this,a,i,r-Nr(a,i)+1)}}toJulianDay(t){return t.year<K||t.year>we?super.toJulianDay(t):ot+Nr(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<K||t.year>we?super.getDaysInMonth(t):Te(t.year,t.month)}getDaysInYear(t){return t.year<K||t.year>we?super.getDaysInYear(t):Ar(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Jt||(Jt=new Uint16Array(Uint8Array.from(atob(qi),t=>t.charCodeAt(0)).buffer)),!Pe){Pe=new Uint32Array(we-K+1);let t=0;for(let r=K;r<=we;r++){Pe[r-K]=t;for(let n=1;n<=12;n++)t+=Te(r,n)}}}}const Lr=347997,mo=1080,po=24*mo,Vi=29,Ui=12*mo+793,Fi=Vi*po+Ui;function pe(e){return ie(e*7+1,19)<7}function tt(e){let t=Math.floor((235*e-234)/19),r=12084+13753*t,n=t*29+Math.floor(r/25920);return ie(3*(n+1),7)<3&&(n+=1),n}function zi(e){let t=tt(e-1),r=tt(e);return tt(e+1)-r===356?2:r-t===382?1:0}function Ee(e){return tt(e)+zi(e)}function go(e){return Ee(e+1)-Ee(e)}function Hi(e){let t=go(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Be(e,t){if(t>=6&&!pe(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let r=Hi(e);return t===2?r===2?30:29:t===3?r===0?29:30:t===6?pe(e)?30:0:30}class Wi{fromJulianDay(t){let r=t-Lr,n=r*po/Fi,o=Math.floor((19*n+234)/235)+1,a=Ee(o),i=Math.floor(r-a);for(;i<1;)o--,a=Ee(o),i=Math.floor(r-a);let s=1,c=0;for(;c<i;)c+=Be(o,s),s++;s--,c-=Be(o,s);let u=i-c;return new V(this,o,s,u)}toJulianDay(t){let r=Ee(t.year);for(let n=1;n<t.month;n++)r+=Be(t.year,n);return r+t.day+Lr}getDaysInMonth(t){return Be(t.year,t.month)}getMonthsInYear(t){return pe(t.year)?13:12}getDaysInYear(t){return go(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,r){r.year!==t.year&&(pe(r.year)&&!pe(t.year)&&r.month>6?t.month--:!pe(r.year)&&pe(t.year)&&r.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Qt=1723856,qr=1824665,Kt=5500;function st(e,t,r,n){return e+365*t+Math.floor(t/4)+30*(r-1)+n-1}function cr(e,t){let r=Math.floor(4*(t-e)/1461),n=1+Math.floor((t-st(e,r,1,1))/30),o=t+1-st(e,r,n,1);return[r,n,o]}function bo(e){return Math.floor(e%4/3)}function vo(e,t){return t%13!==0?30:bo(e)+5}class ur{fromJulianDay(t){let[r,n,o]=cr(Qt,t),a="AM";return r<=0&&(a="AA",r+=Kt),new V(this,a,r,n,o)}toJulianDay(t){let r=t.year;return t.era==="AA"&&(r-=Kt),st(Qt,r,t.month,t.day)}getDaysInMonth(t){return vo(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+bo(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class Gi extends ur{fromJulianDay(t){let[r,n,o]=cr(Qt,t);return r+=Kt,new V(this,"AA",r,n,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class Yi extends ur{fromJulianDay(t){let[r,n,o]=cr(qr,t),a="CE";return r<=0&&(a="BCE",r=1-r),new V(this,a,r,n,o)}toJulianDay(t){let r=t.year;return t.era==="BCE"&&(r=1-r),st(qr,r,t.month,t.day)}getDaysInMonth(t){let r=t.year;return t.era==="BCE"&&(r=1-r),vo(r,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function yo(e){switch(e){case"buddhist":return new Ei;case"ethiopic":return new ur;case"ethioaa":return new Gi;case"coptic":return new Yi;case"hebrew":return new Wi;case"indian":return new Ni;case"islamic-civil":return new lr;case"islamic-tbla":return new Li;case"islamic-umalqura":return new Bi;case"japanese":return new Ti;case"persian":return new Oi;case"roc":return new ki;case"gregory":default:return new le}}function Ji({themeName:e="calendar",tokens:t,state:r,date:n}){const o=b.useRef(null),{cellProps:a,buttonProps:i,isSelected:s,isOutsideVisibleRange:c,isDisabled:u,formattedDate:d,isInvalid:h}=rr.useCalendarCell({date:n},r,o),f=r!=null&&r.highlightedRange?wr(n,r==null?void 0:r.highlightedRange.start):s,p=r!=null&&r.highlightedRange?wr(n,r==null?void 0:r.highlightedRange.end):s,{locale:x}=S.useLocale(),m=Kn(n,x),g=s&&(f||m===0||n.day===1),v=s&&(p||m===6||n.day===n.calendar.getDaysInMonth(n)),{focusProps:C,isFocusVisible:$}=be.useFocusRing(),y=R(`${e}.cellContainer`,{...t,isFocusVisible:$}),P=R(`${e}.cell`,{...t,isSelected:s,isInvalid:h,isDisabled:u,isRoundedLeft:g,isRoundedRight:v}),w=R(`${e}.cellDate`,{...t,isSelected:s,isInvalid:h,isDisabled:u,isSelectionStart:f,isSelectionEnd:p});return l.jsx("td",{...a,"aria-disabled":!1,className:y,children:l.jsx("div",{...Ht.mergeProps(i,C),ref:o,hidden:c,className:P,children:l.jsx("div",{className:w,children:d})})})}function Qi({themeName:e="calendar",customTheme:t,tokens:r,state:n,...o}){const{locale:a}=it.useLocale(),{gridProps:i,headerProps:s,weekDays:c}=rr.useCalendarGrid({...o},n),u=mi(n.visibleRange.start,a),d=R(`${e}.calendarTable`,r),h=R(`${e}.dayLabel`,r);return l.jsxs("table",{...i,cellPadding:"0",className:d,children:[l.jsx("thead",{...s,children:l.jsx("tr",{children:c.map(f=>l.jsx("th",{className:h,children:f},`${f}`))})}),l.jsx("tbody",{children:[...new Array(u).keys()].map(f=>l.jsx("tr",{children:n.getDatesInWeek(f).map((p,x)=>p?l.jsx(Ji,{state:n,date:p},p==null?void 0:p.day):l.jsx("td",{},x))},f))})]})}function xo({buttons:e,tokens:t,customTheme:r,themeName:n="calendar",...o}){var m,g;const{locale:a}=it.useLocale(),i=ha.useCalendarState({...o,locale:a,createCalendar:yo}),s=b.useRef(null),{calendarProps:c,prevButtonProps:u,nextButtonProps:d,title:h}=rr.useCalendar({...o},i),f=R(`${n}.container`,t),p=R(`${n}.header`,t),x=R(`${n}.navigationButtonsContainer`,t);return l.jsxs("div",{...c,ref:s,className:f,children:[l.jsxs("div",{className:p,children:[l.jsx(F,{as:"p",tokens:{size:"h6"},children:h}),l.jsxs("div",{className:x,children:[l.jsx(ve,{themeName:`${n}.navigationButtons`,tokens:{...t},type:"button",...u,handlePress:u==null?void 0:u.onPress,children:l.jsx(ee,{icon:((m=e==null?void 0:e.buttonPrev)==null?void 0:m.icon)??"ArrowLeft"})}),l.jsx(ve,{themeName:`${n}.navigationButtons`,tokens:{...t},type:"button",...d,handlePress:d==null?void 0:d.onPress,children:l.jsx(ee,{icon:((g=e==null?void 0:e.buttonNext)==null?void 0:g.icon)??"ArrowRight"})})]})]}),l.jsx(Qi,{state:i})]})}function Ki({title:e,children:t,...r}){const n=b.useRef(null),{dialogProps:o}=S.useDialog(r,n);return l.jsx("div",{...o,ref:n,children:t})}function Zi({themeName:e="datePicker",tokens:t,...r}){const n=pa.useRef(null),{state:o,children:a}={...r},{popoverProps:i,underlayProps:s}=Se.usePopover({...r,popoverRef:n},o),c=R(`${e}.calendarUnderlay`,t),u=R(`${e}.calendarPopover`,t);return l.jsxs(Se.Overlay,{children:[l.jsx("div",{...s,className:c}),l.jsxs("div",{...i,ref:n,className:u,children:[l.jsx(Se.DismissButton,{onDismiss:o.close}),a,l.jsx(Se.DismissButton,{onDismiss:o.close})]})]})}function Xi({segment:e,state:t}){const r=b.useRef(null),{segmentProps:n}=tr.useDateSegment(e,t,r),o=R("datePicker.dateSegment");return l.jsx(S.FocusRing,{focusRingClass:"has-focus-ring",children:l.jsxs("div",{...n,ref:r,className:o,children:[l.jsx("span",{"aria-hidden":"true",style:{visibility:e.isPlaceholder?"visible":"hidden",height:e.isPlaceholder?"":0,pointerEvents:"none",display:e.isPlaceholder?"block":"none"},children:e.placeholder}),e.isPlaceholder?"":e.text]})})}function Br(e){const{locale:t}=it.useLocale(),r=jn.useDateFieldState({...e,locale:t,createCalendar:yo}),n=b.useRef(null),{fieldProps:o}=tr.useDateField(e,r,n);return l.jsx("div",{...o,ref:n,className:"flex",children:r.segments.map((a,i)=>l.jsx(Xi,{segment:a,state:r},i))})}function el({popoverPlacement:e="bottom start",tokens:t,customTheme:r,themeName:n="datePicker",icon:o="ArrowDown",description:a,buttonLabel:i,...s}){const c=jn.useDatePickerState({...s}),u=b.useRef(null),{groupProps:d,fieldProps:h,labelProps:f,descriptionProps:p,buttonProps:x,dialogProps:m,calendarProps:g}=tr.useDatePicker({...s},c,u),{label:v}={...s},C=R(`${n}.container`,t),$=R(`${n}.dateField`,t),y=R(`${n}.label`,t);return l.jsxs("div",{className:C,children:[v&&l.jsx("span",{...f,children:v}),a&&l.jsx("div",{...p,children:a}),l.jsx("div",{...d,ref:u,children:l.jsxs(ve,{themeName:`${n}.button`,tokens:{...t},type:"button",...x,handlePress:x.onPress,children:[i&&l.jsx("p",{className:y,children:i}),l.jsxs("div",{className:$,children:[l.jsx(Br,{...h}),c.validationState==="invalid"&&"❌"]}),l.jsx(ee,{themeName:`${n}.icon`,tokens:{...t},icon:o})]})}),c.isOpen&&l.jsx(Zi,{triggerRef:u,state:c,placement:e,children:l.jsxs(Ki,{...m,children:[l.jsxs("div",{children:[l.jsx(Br,{...h}),c.validationState==="invalid"&&"❌"]}),l.jsx(xo,{...g})]})})]})}const wo=b.createContext(null),$o=e=>{const{children:t,state:r}=e;return l.jsx(wo.Provider,{value:r,children:t})};function Po(){const e=b.useContext(wo);return e!==null?e:null}const Co=e=>{const{id:t,label:r,themeName:n="radio",tokens:o,customTheme:a,value:i,fieldRef:s}=e,c=Po(),u=b.useRef(null),{inputProps:d}=S.useRadio(e,c,u),h=(c==null?void 0:c.selectedValue)===i,{focusProps:f}=S.useFocusRing(),p={...o,selected:h},x=R(`${n}.label`,p,a),m=R(`${n}.radio`,p,a),g=R(`${n}.selectedMark`,p,a);return l.jsx("div",{children:l.jsx(S.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:l.jsxs("label",{htmlFor:t,className:x,children:[l.jsx(S.VisuallyHidden,{children:l.jsx("input",{type:"radio",...S.mergeProps(f,d),ref:v=>{s==null||s(v),u.current=v}})}),l.jsx("div",{className:m,"aria-checked":h,role:"radio","aria-labelledby":t,children:l.jsx("div",{className:g})}),l.jsx(F,{themeName:`${n}.label`,children:r})]})})})},tl=e=>{const{name:t,required:r}=e,{register:n,formState:o}=he.useFormContext(),a=he.get(o.errors,t),i=(a==null?void 0:a.message)??void 0,{t:s}=er.useTranslation("components"),{ref:c,...u}=n(t,{required:r?s("FORM.ERROR.REQUIRED")??"required":!1});return l.jsx(Co,{fieldRef:c,...u,...e,isError:!lt.isEmpty(i),errorMessage:i})};let rl=Math.round(Math.random()*1e10),nl=0;function ol(e){let t=b.useMemo(()=>e.name||`radio-group-${rl}-${++nl}`,[e.name]);var r;let[n,o]=zn(e.value,(r=e.defaultValue)!==null&&r!==void 0?r:null,e.onChange),[a,i]=b.useState(null),s=Fn({...e,value:n}),c=d=>{!e.isReadOnly&&!e.isDisabled&&(o(d),s.commitValidation())},u=s.displayValidation.isInvalid;return{...s,name:t,selectedValue:n,setSelectedValue:c,lastFocusedValue:a,setLastFocusedValue:i,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(u?"invalid":null),isInvalid:u}}const al=e=>{const{label:t,isError:r=!1,errorMessage:n,isDisabled:o=!1,children:a,themeName:i="radioGroup",tokens:s}=e,c=ol(e),{radioGroupProps:u}=S.useRadioGroup(e,c),d={...s,isDisabled:o};return l.jsxs(Q,{...u,"aria-disabled":o,themeName:`${i}.radioGroup`,tokens:d,children:[t&&l.jsx(F,{tokens:{size:"h6"},children:t}),l.jsx(Q,{themeName:`${i}.radioGroupItemsGroup`,children:l.jsx($o,{state:c,children:a})}),r&&n&&l.jsx(F,{tokens:{isError:!0},children:n})]})},[Re,sl]=ks();function il({children:e,defaultSelectedKey:t,defaultIsOpen:r,onCloseCallback:n,onOpenCallback:o,tabs:a,openBtn:i,closeBtn:s,...c}){const u=Xt.useTabListState({...c,children:a,defaultSelectedKey:t}),d=b.useMemo(()=>({openBtn:i,closeBtn:s,tabState:u,defaultSelectedKey:t}),[i,s,u,t]);return l.jsx(sl,{value:d,children:l.jsx(Ln,{onCloseCallback:()=>{var h;n==null||n(),(h=u==null?void 0:u.setSelectedKey)==null||h.call(u,t)},onOpenCallback:o,defaultIsOpen:r,defaultSelectedKey:t.toString(),children:e})})}const _o=({isVisible:e,children:t})=>X.useTransition(e,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:X.config.stiff})((n,o)=>o&&l.jsx(X.animated.div,{style:n,children:t})),ll=new WeakMap;function Vr(e,t,r){return typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${ll.get(e)}-${r}-${t}`}function cl(e,t,r){let n=be.useHasTabbableChild(r)?void 0:0;var o;const a=Vr(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),i=Ht.useLabels({...e,id:a,"aria-labelledby":Vr(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:Ht.mergeProps(i,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}function ul({state:e,customTheme:t,themeName:r="tabPanel",tokens:n,...o}){var s;const a=b.useRef(null),{tabPanelProps:i}=cl(o,e,a);return l.jsx(_o,{isVisible:!0,children:l.jsx(ct,{themeName:`${r}`,tokens:n,customTheme:t,...i,ref:a,children:(s=e.selectedItem)==null?void 0:s.props.children})})}const Ro=e=>{var r;const{tabState:t}=Re();return b.createElement(ul,{...e,key:(r=t.selectedItem)==null?void 0:r.key,state:t})},jo=e=>{var u;const{themeName:t,tokens:r,customTheme:n,children:o,beforeTabContent:a,afterTabContent:i}=e,{tabState:s,defaultSelectedKey:c}=Re();return l.jsxs(l.Fragment,{children:[l.jsx(Q,{themeName:`${t}.wrapper`,tokens:r,customTheme:n,children:o}),((u=s==null?void 0:s.selectedKey)==null?void 0:u.toString())===c?null:l.jsxs(Q,{themeName:`${t}.tabWrapper`,tokens:r,customTheme:n,children:[a!==null&&a,l.jsx(Ro,{themeName:`${t}.tabPanel`,tokens:r,customTheme:n}),i!==null&&i]})]})},dl=e=>{const{id:t="main-menu",children:r,PanelTransition:n=_o,themeName:o,tokens:a,customTheme:i,...s}=e,{overlayState:c}=or(),{closeBtn:u}=Re();return l.jsx(n,{isVisible:c==null?void 0:c.isOpen,children:l.jsxs(Q,{themeName:`${o}.wrapper`,children:[u&&u(),l.jsx(Q,{themeName:`${o}.container`,children:l.jsx(jo,{id:t,themeName:`${o}.innerContent`,tokens:a,customTheme:i,...s,children:r})})]})})},fl=e=>{const{id:t="main-menu",children:r,TransitionAnimation:n,PanelTransition:o,themeName:a,tokens:i,customTheme:s,...c}=e,{closeBtn:u,tabState:d,defaultSelectedKey:h}=Re();return l.jsx(Bn,{themeName:`${a}.sidePanel`,tokens:i,customTheme:s,closeBtnRender:u,id:t,TransitionAnimation:n,PanelTransition:o,onCloseCallBack:()=>{d==null||d.setSelectedKey(h)},children:l.jsx(jo,{id:t,themeName:a,tokens:i,customTheme:s,...c,children:r})})};function hl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zt={exports:{}},ke={};ke._=ke._interop_require_default=ml;function ml(e){return e&&e.__esModule?e:{default:e}}var Ve={exports:{}},xt={},Ur;function Mo(){return Ur||(Ur=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var c in s)Object.defineProperty(i,c,{enumerable:!0,get:s[c]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return a}});function r(i){const s={};return i.forEach((c,u)=>{typeof s[u]>"u"?s[u]=c:Array.isArray(s[u])?s[u].push(c):s[u]=[s[u],c]}),s}function n(i){return typeof i=="string"||typeof i=="number"&&!isNaN(i)||typeof i=="boolean"?String(i):""}function o(i){const s=new URLSearchParams;return Object.entries(i).forEach(c=>{let[u,d]=c;Array.isArray(d)?d.forEach(h=>s.append(u,n(h))):s.set(u,n(d))}),s}function a(i){for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];return c.forEach(d=>{Array.from(d.keys()).forEach(h=>i.delete(h)),d.forEach((h,f)=>i.append(f,h))}),i}}(xt)),xt}var wt={},Ue={},Fr;function pl(){if(Fr)return Ue;Fr=1;function e(r){if(typeof WeakMap!="function")return null;var n=new WeakMap,o=new WeakMap;return(e=function(a){return a?o:n})(r)}Ue._=Ue._interop_require_wildcard=t;function t(r,n){if(!n&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var o=e(n);if(o&&o.has(r))return o.get(r);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s)){var c=i?Object.getOwnPropertyDescriptor(r,s):null;c&&(c.get||c.set)?Object.defineProperty(a,s,c):a[s]=r[s]}return a.default=r,o&&o.set(r,a),a}return Ue}var zr;function So(){return zr||(zr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,u){for(var d in u)Object.defineProperty(c,d,{enumerable:!0,get:u[d]})}t(e,{formatUrl:function(){return a},urlObjectKeys:function(){return i},formatWithValidation:function(){return s}});const n=pl()._(Mo()),o=/https?|ftp|gopher|file/;function a(c){let{auth:u,hostname:d}=c,h=c.protocol||"",f=c.pathname||"",p=c.hash||"",x=c.query||"",m=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",c.host?m=u+c.host:d&&(m=u+(~d.indexOf(":")?"["+d+"]":d),c.port&&(m+=":"+c.port)),x&&typeof x=="object"&&(x=String(n.urlQueryToSearchParams(x)));let g=c.search||x&&"?"+x||"";return h&&!h.endsWith(":")&&(h+=":"),c.slashes||(!h||o.test(h))&&m!==!1?(m="//"+(m||""),f&&f[0]!=="/"&&(f="/"+f)):m||(m=""),p&&p[0]!=="#"&&(p="#"+p),g&&g[0]!=="?"&&(g="?"+g),f=f.replace(/[?#]/g,encodeURIComponent),g=g.replace("#","%23"),""+h+m+f+g+p}const i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(c){return process.env.NODE_ENV==="development"&&c!==null&&typeof c=="object"&&Object.keys(c).forEach(u=>{i.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),a(c)}}(wt)),wt}var $t={},Hr;function gl(){return Hr||(Hr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const o={};return Object.keys(r).forEach(a=>{n.includes(a)||(o[a]=r[a])}),o}}($t)),$t}var Pt={},Wr;function ft(){return Wr||(Wr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,P){for(var w in P)Object.defineProperty(y,w,{enumerable:!0,get:P[w]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return a},getLocationOrigin:function(){return i},getURL:function(){return s},getDisplayName:function(){return c},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return d},loadGetInitialProps:function(){return h},SP:function(){return f},ST:function(){return p},DecodeError:function(){return x},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return C},stringifyError:function(){return $}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(y){let P=!1,w;return function(){for(var j=arguments.length,M=new Array(j),T=0;T<j;T++)M[T]=arguments[T];return P||(P=!0,w=y(...M)),w}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=y=>o.test(y);function i(){const{protocol:y,hostname:P,port:w}=window.location;return y+"//"+P+(w?":"+w:"")}function s(){const{href:y}=window.location,P=i();return y.substring(P.length)}function c(y){return typeof y=="string"?y:y.displayName||y.name||"Unknown"}function u(y){return y.finished||y.headersSent}function d(y){const P=y.split("?");return P[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(P[1]?"?"+P.slice(1).join("?"):"")}async function h(y,P){if(process.env.NODE_ENV!=="production"){var w;if((w=y.prototype)!=null&&w.getInitialProps){const T='"'+c(y)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(T)}}const j=P.res||P.ctx&&P.ctx.res;if(!y.getInitialProps)return P.ctx&&P.Component?{pageProps:await h(P.Component,P.ctx)}:{};const M=await y.getInitialProps(P);if(j&&u(j))return M;if(!M){const T='"'+c(y)+'.getInitialProps()" should resolve to an object. But found "'+M+'" instead.';throw new Error(T)}return process.env.NODE_ENV!=="production"&&Object.keys(M).length===0&&!P.ctx&&console.warn(""+c(y)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),M}const f=typeof performance<"u",p=f&&["mark","measure","getEntriesByName"].every(y=>typeof performance[y]=="function");class x extends Error{}class m extends Error{}class g extends Error{constructor(P){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+P}}class v extends Error{constructor(P,w){super(),this.message="Failed to load static file for page: "+P+" "+w}}class C extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function $(y){return JSON.stringify({message:y.message,stack:y.stack})}}(Pt)),Pt}var Fe={exports:{}},Ct={},Gr;function To(){return Gr||(Gr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.replace(/\/$/,"")||"/"}}(Ct)),Ct}var _t={},Yr;function dr(){return Yr||(Yr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const n=r.indexOf("#"),o=r.indexOf("?"),a=o>-1&&(n<0||o<n);return a||n>-1?{pathname:r.substring(0,a?o:n),query:a?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(_t)),_t}var Jr;function ht(){return Jr||(Jr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=To(),n=dr(),o=a=>{if(!a.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return a;const{pathname:i,query:s,hash:c}=(0,n.parsePath)(a);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(i)?""+(0,r.removeTrailingSlash)(i)+s+c:i.endsWith("/")?""+i+s+c:i+"/"+s+c:""+(0,r.removeTrailingSlash)(i)+s+c};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Fe,Fe.exports)),Fe.exports}var Rt={},ze={exports:{}},jt={},Qr;function Eo(){return Qr||(Qr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=dr();function r(n,o){if(typeof n!="string")return!1;const{pathname:a}=(0,t.parsePath)(n);return a===o||a.startsWith(o+"/")}}(jt)),jt}var Kr;function bl(){return Kr||(Kr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=Eo(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(a){return(0,r.pathHasPrefix)(a,n)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ze,ze.exports)),ze.exports}var Zr;function ko(){return Zr||(Zr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=ft(),r=bl();function n(o){if(!(0,t.isAbsoluteUrl)(o))return!0;try{const a=(0,t.getLocationOrigin)(),i=new URL(o,a);return i.origin===a&&(0,r.hasBasePath)(i.pathname)}catch{return!1}}}(Rt)),Rt}var Mt={},St={},Xr;function vl(){return Xr||(Xr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(o){this._insert(o.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(o){o===void 0&&(o="/");const a=[...this.children.keys()].sort();this.slugName!==null&&a.splice(a.indexOf("[]"),1),this.restSlugName!==null&&a.splice(a.indexOf("[...]"),1),this.optionalRestSlugName!==null&&a.splice(a.indexOf("[[...]]"),1);const i=a.map(s=>this.children.get(s)._smoosh(""+o+s+"/")).reduce((s,c)=>[...s,...c],[]);if(this.slugName!==null&&i.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const s=o==="/"?"/":o.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+s+'" and "'+s+"[[..."+this.optionalRestSlugName+']]").');i.unshift(s)}return this.restSlugName!==null&&i.push(...this.children.get("[...]")._smoosh(o+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&i.push(...this.children.get("[[...]]")._smoosh(o+"[[..."+this.optionalRestSlugName+"]]/")),i}_insert(o,a,i){if(o.length===0){this.placeholder=!1;return}if(i)throw new Error("Catch-all must be the last part of the URL.");let s=o[0];if(s.startsWith("[")&&s.endsWith("]")){let d=function(h,f){if(h!==null&&h!==f)throw new Error("You cannot use different slug names for the same dynamic path ('"+h+"' !== '"+f+"').");a.forEach(p=>{if(p===f)throw new Error('You cannot have the same slug name "'+f+'" repeat within a single dynamic path');if(p.replace(/\W/g,"")===s.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+p+'" and "'+f+'" differ only by non-word symbols within a single dynamic path')}),a.push(f)},c=s.slice(1,-1),u=!1;if(c.startsWith("[")&&c.endsWith("]")&&(c=c.slice(1,-1),u=!0),c.startsWith("...")&&(c=c.substring(3),i=!0),c.startsWith("[")||c.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+c+"').");if(c.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+c+"').");if(i)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+o[0]+'" ).');d(this.optionalRestSlugName,c),this.optionalRestSlugName=c,s="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+o[0]+'").');d(this.restSlugName,c),this.restSlugName=c,s="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');d(this.slugName,c),this.slugName=c,s="[]"}}this.children.has(s)||this.children.set(s,new t),this.children.get(s)._insert(o.slice(1),a,i)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const o=new t;return n.forEach(a=>o.insert(a)),o.smoosh()}}(St)),St}var Tt={},Et={},kt={},Dt={},en;function yl(){return en||(en=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.startsWith("/")?r:"/"+r}}(Dt)),Dt}var It={},tn;function xl(){return tn||(tn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isGroupSegment",{enumerable:!0,get:function(){return t}});function t(r){return r[0]==="("&&r.endsWith(")")}}(It)),It}var rn;function wl(){return rn||(rn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var c in s)Object.defineProperty(i,c,{enumerable:!0,get:s[c]})}t(e,{normalizeAppPath:function(){return o},normalizeRscURL:function(){return a}});const r=yl(),n=xl();function o(i){return(0,r.ensureLeadingSlash)(i.split("/").reduce((s,c,u,d)=>!c||(0,n.isGroupSegment)(c)||c[0]==="@"||(c==="page"||c==="route")&&u===d.length-1?s:s+"/"+c,""))}function a(i){return i.replace(/\.rsc($|\?)/,"$1")}}(kt)),kt}var nn;function Do(){return nn||(nn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var c in s)Object.defineProperty(i,c,{enumerable:!0,get:s[c]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return a}});const r=wl(),n=["(..)(..)","(.)","(..)","(...)"];function o(i){return i.split("/").find(s=>n.find(c=>s.startsWith(c)))!==void 0}function a(i){let s,c,u;for(const d of i.split("/"))if(c=n.find(h=>d.startsWith(h)),c){[s,u]=i.split(c,2);break}if(!s||!c||!u)throw new Error(`Invalid interception route: ${i}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(s=(0,r.normalizeAppPath)(s),c){case"(.)":s==="/"?u=`/${u}`:u=s+"/"+u;break;case"(..)":if(s==="/")throw new Error(`Invalid interception route: ${i}. Cannot use (..) marker at the root level, use (.) instead.`);u=s.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const d=s.split("/");if(d.length<=2)throw new Error(`Invalid interception route: ${i}. Cannot use (..)(..) marker at the root level or one level up.`);u=d.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:s,interceptedRoute:u}}}(Et)),Et}var on;function $l(){return on||(on=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return n}});const t=Do(),r=/\/\[[^/]+?\](?=\/|$)/;function n(o){return(0,t.isInterceptionRouteAppPath)(o)&&(o=(0,t.extractInterceptionRouteInformation)(o).interceptedRoute),r.test(o)}}(Tt)),Tt}var an;function Pl(){return an||(an=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,a){for(var i in a)Object.defineProperty(o,i,{enumerable:!0,get:a[i]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=vl(),n=$l()}(Mt)),Mt}var Ot={},Nt={},sn;function Cl(){return sn||(sn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=ft();function r(n){let{re:o,groups:a}=n;return i=>{const s=o.exec(i);if(!s)return!1;const c=d=>{try{return decodeURIComponent(d)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(a).forEach(d=>{const h=a[d],f=s[h.pos];f!==void 0&&(u[d]=~f.indexOf("/")?f.split("/").map(p=>c(p)):h.repeat?[c(f)]:c(f))}),u}}}(Nt)),Nt}var At={},Lt={},ln;function _l(){return ln||(ln=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(o){return t.test(o)?o.replace(r,"\\$&"):o}}(Lt)),Lt}var cn;function Rl(){return cn||(cn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,g){for(var v in g)Object.defineProperty(m,v,{enumerable:!0,get:g[v]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return p},getNamedMiddlewareRegex:function(){return x}});const r=Do(),n=_l(),o=To(),a="nxtP",i="nxtI";function s(m){const g=m.startsWith("[")&&m.endsWith("]");g&&(m=m.slice(1,-1));const v=m.startsWith("...");return v&&(m=m.slice(3)),{key:m,repeat:v,optional:g}}function c(m){const g=(0,o.removeTrailingSlash)(m).slice(1).split("/"),v={};let C=1;return{parameterizedRoute:g.map($=>{const y=r.INTERCEPTION_ROUTE_MARKERS.find(w=>$.startsWith(w)),P=$.match(/\[((?:\[.*\])|.+)\]/);if(y&&P){const{key:w,optional:j,repeat:M}=s(P[1]);return v[w]={pos:C++,repeat:M,optional:j},"/"+(0,n.escapeStringRegexp)(y)+"([^/]+?)"}else if(P){const{key:w,repeat:j,optional:M}=s(P[1]);return v[w]={pos:C++,repeat:j,optional:M},j?M?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)($)}).join(""),groups:v}}function u(m){const{parameterizedRoute:g,groups:v}=c(m);return{re:new RegExp("^"+g+"(?:/)?$"),groups:v}}function d(){let m=0;return()=>{let g="",v=++m;for(;v>0;)g+=String.fromCharCode(97+(v-1)%26),v=Math.floor((v-1)/26);return g}}function h(m){let{interceptionMarker:g,getSafeRouteKey:v,segment:C,routeKeys:$,keyPrefix:y}=m;const{key:P,optional:w,repeat:j}=s(C);let M=P.replace(/\W/g,"");y&&(M=""+y+M);let T=!1;(M.length===0||M.length>30)&&(T=!0),isNaN(parseInt(M.slice(0,1)))||(T=!0),T&&(M=v()),y?$[M]=""+y+P:$[M]=P;const E=g?(0,n.escapeStringRegexp)(g):"";return j?w?"(?:/"+E+"(?<"+M+">.+?))?":"/"+E+"(?<"+M+">.+?)":"/"+E+"(?<"+M+">[^/]+?)"}function f(m,g){const v=(0,o.removeTrailingSlash)(m).slice(1).split("/"),C=d(),$={};return{namedParameterizedRoute:v.map(y=>{const P=r.INTERCEPTION_ROUTE_MARKERS.some(j=>y.startsWith(j)),w=y.match(/\[((?:\[.*\])|.+)\]/);if(P&&w){const[j]=y.split(w[0]);return h({getSafeRouteKey:C,interceptionMarker:j,segment:w[1],routeKeys:$,keyPrefix:g?i:void 0})}else return w?h({getSafeRouteKey:C,segment:w[1],routeKeys:$,keyPrefix:g?a:void 0}):"/"+(0,n.escapeStringRegexp)(y)}).join(""),routeKeys:$}}function p(m,g){const v=f(m,g);return{...u(m),namedRegex:"^"+v.namedParameterizedRoute+"(?:/)?$",routeKeys:v.routeKeys}}function x(m,g){const{parameterizedRoute:v}=c(m),{catchAll:C=!0}=g;if(v==="/")return{namedRegex:"^/"+(C?".*":"")+"$"};const{namedParameterizedRoute:$}=f(m,!1);let y=C?"(?:(/.*)?)":"";return{namedRegex:"^"+$+y+"$"}}}(At)),At}var un;function jl(){return un||(un=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=Cl(),r=Rl();function n(o,a,i){let s="";const c=(0,r.getRouteRegex)(o),u=c.groups,d=(a!==o?(0,t.getRouteMatcher)(c)(a):"")||i;s=o;const h=Object.keys(u);return h.every(f=>{let p=d[f]||"";const{repeat:x,optional:m}=u[f];let g="["+(x?"...":"")+f+"]";return m&&(g=(p?"":"/")+"["+g+"]"),x&&!Array.isArray(p)&&(p=[p]),(m||f in d)&&(s=s.replace(g,x?p.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(p))||"/")})||(s=""),{params:h,result:s}}}(Ot)),Ot}var dn;function Ml(){return dn||(dn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});const r=Mo(),n=So(),o=gl(),a=ft(),i=ht(),s=ko(),c=Pl(),u=jl();function d(h,f,p){let x,m=typeof f=="string"?f:(0,n.formatWithValidation)(f);const g=m.match(/^[a-zA-Z]{1,}:\/\//),v=g?m.slice(g[0].length):m;if((v.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+m+"' passed to next/router in page: '"+h.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const $=(0,a.normalizeRepeatedSlashes)(v);m=(g?g[0]:"")+$}if(!(0,s.isLocalURL)(m))return p?[m]:m;try{x=new URL(m.startsWith("#")?h.asPath:h.pathname,"http://n")}catch{x=new URL("/","http://n")}try{const $=new URL(m,x);$.pathname=(0,i.normalizePathTrailingSlash)($.pathname);let y="";if((0,c.isDynamicRoute)($.pathname)&&$.searchParams&&p){const w=(0,r.searchParamsToUrlQuery)($.searchParams),{result:j,params:M}=(0,u.interpolateAs)($.pathname,$.pathname,w);j&&(y=(0,n.formatWithValidation)({pathname:j,hash:$.hash,query:(0,o.omit)(w,M)}))}const P=$.origin===x.origin?$.href.slice($.origin.length):$.href;return p?[P,y||P]:P}catch{return p?[m]:m}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ve,Ve.exports)),Ve.exports}var He={exports:{}},qt={},Bt={},fn;function Io(){return fn||(fn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=dr();function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:a,query:i,hash:s}=(0,t.parsePath)(n);return""+o+a+i+s}}(Bt)),Bt}var hn;function Sl(){return hn||(hn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=Io(),r=Eo();function n(o,a,i,s){if(!a||a===i)return o;const c=o.toLowerCase();return!s&&((0,r.pathHasPrefix)(c,"/api")||(0,r.pathHasPrefix)(c,"/"+a.toLowerCase()))?o:(0,t.addPathPrefix)(o,"/"+a)}}(qt)),qt}var mn;function Tl(){return mn||(mn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=ht(),n=function(o){for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(Sl().addLocale(o,...i)):o};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(He,He.exports)),He.exports}var Vt={},pn;function El(){return pn||(pn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=ke._(b).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(Vt)),Vt}var Ut={},gn;function kl(){return gn||(gn=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,d){for(var h in d)Object.defineProperty(u,h,{enumerable:!0,get:d[h]})}t(e,{CacheStates:function(){return o},AppRouterContext:function(){return a},LayoutRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return s},TemplateContext:function(){return c}});const n=ke._(b);var o;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(o||(o={}));const a=n.default.createContext(null),i=n.default.createContext(null),s=n.default.createContext(null),c=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(a.displayName="AppRouterContext",i.displayName="LayoutRouterContext",s.displayName="GlobalLayoutRouterContext",c.displayName="TemplateContext")}(Ut)),Ut}var We={exports:{}},Ge={exports:{}},bn;function Dl(){return bn||(bn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(a,i){for(var s in i)Object.defineProperty(a,s,{enumerable:!0,get:i[s]})}r(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return o}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(a){let i=Date.now();return self.setTimeout(function(){a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-i))}})},1)},o=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(a){return clearTimeout(a)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ge,Ge.exports)),Ge.exports}var vn;function Il(){return vn||(vn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=b,n=Dl(),o=typeof IntersectionObserver=="function",a=new Map,i=[];function s(d){const h={root:d.root||null,margin:d.rootMargin||""},f=i.find(g=>g.root===h.root&&g.margin===h.margin);let p;if(f&&(p=a.get(f),p))return p;const x=new Map,m=new IntersectionObserver(g=>{g.forEach(v=>{const C=x.get(v.target),$=v.isIntersecting||v.intersectionRatio>0;C&&$&&C($)})},d);return p={id:h,observer:m,elements:x},i.push(h),a.set(h,p),p}function c(d,h,f){const{id:p,observer:x,elements:m}=s(f);return m.set(d,h),x.observe(d),function(){if(m.delete(d),x.unobserve(d),m.size===0){x.disconnect(),a.delete(p);const v=i.findIndex(C=>C.root===p.root&&C.margin===p.margin);v>-1&&i.splice(v,1)}}}function u(d){let{rootRef:h,rootMargin:f,disabled:p}=d;const x=p||!o,[m,g]=(0,r.useState)(!1),v=(0,r.useRef)(null),C=(0,r.useCallback)(y=>{v.current=y},[]);(0,r.useEffect)(()=>{if(o){if(x||m)return;const y=v.current;if(y&&y.tagName)return c(y,w=>w&&g(w),{root:h==null?void 0:h.current,rootMargin:f})}else if(!m){const y=(0,n.requestIdleCallback)(()=>g(!0));return()=>(0,n.cancelIdleCallback)(y)}},[x,f,h,m,v.current]);const $=(0,r.useCallback)(()=>{g(!1)},[]);return[C,m,$]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(We,We.exports)),We.exports}var Ye={exports:{}},Je={exports:{}},Ft={},yn;function Ol(){return yn||(yn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,n){let o;const a=r.split("/");return(n||[]).some(i=>a[1]&&a[1].toLowerCase()===i.toLowerCase()?(o=i,a.splice(1,1),r=a.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}}(Ft)),Ft}var xn;function Nl(){return xn||(xn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,o)=>process.env.__NEXT_I18N_SUPPORT?Ol().normalizeLocalePath(n,o):{pathname:n,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Je,Je.exports)),Je.exports}var Qe={exports:{}},zt={},wn;function Al(){return wn||(wn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,o){if(r){o&&(o=o.toLowerCase());for(const s of r){var a,i;const c=(a=s.domain)==null?void 0:a.split(":",1)[0].toLowerCase();if(n===c||o===s.defaultLocale.toLowerCase()||(i=s.locales)!=null&&i.some(u=>u.toLowerCase()===o))return s}}}}(zt)),zt}var $n;function Ll(){return $n||($n=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];if(process.env.__NEXT_I18N_SUPPORT)return Al().detectDomainLocale(...o)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Qe,Qe.exports)),Qe.exports}var Pn;function ql(){return Pn||(Pn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=ht(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(a,i,s,c){if(process.env.__NEXT_I18N_SUPPORT){const u=Nl().normalizeLocalePath,d=Ll().detectDomainLocale,h=i||u(a,s).detectedLocale,f=d(c,void 0,h);if(f){const p="http"+(f.http?"":"s")+"://",x=h===f.defaultLocale?"":"/"+h;return""+p+f.domain+(0,r.normalizePathTrailingSlash)(""+n+x+a)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ye,Ye.exports)),Ye.exports}var Ke={exports:{}},Cn;function Bl(){return Cn||(Cn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});const r=Io(),n=ht(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function a(i,s){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!s?i:(0,r.addPathPrefix)(i,o))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ke,Ke.exports)),Ke.exports}var Ze={exports:{}},_n;function Vl(){return _n||(_n=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(f,p){for(var x in p)Object.defineProperty(f,x,{enumerable:!0,get:p[x]})}r(t,{PrefetchKind:function(){return d},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return i},ACTION_PREFETCH:function(){return s},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return u},isThenable:function(){return h}});const n="refresh",o="navigate",a="restore",i="server-patch",s="prefetch",c="fast-refresh",u="server-action";var d;(function(f){f.AUTO="auto",f.FULL="full",f.TEMPORARY="temporary"})(d||(d={}));function h(f){return f&&(typeof f=="object"||typeof f=="function")&&typeof f.then=="function"}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ze,Ze.exports)),Ze.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return P}});const n=ke._(b),o=Ml(),a=ko(),i=So(),s=ft(),c=Tl(),u=El(),d=kl(),h=Il(),f=ql(),p=Bl(),x=Vl(),m=new Set;function g(w,j,M,T,E,L){if(typeof window>"u"||!L&&!(0,a.isLocalURL)(j))return;if(!T.bypassPrefetchedCheck){const Y=typeof T.locale<"u"?T.locale:"locale"in w?w.locale:void 0,J=j+"%"+M+"%"+Y;if(m.has(J))return;m.add(J)}const G=L?w.prefetch(j,E):w.prefetch(j,M,T);Promise.resolve(G).catch(Y=>{if(process.env.NODE_ENV!=="production")throw Y})}function v(w){const M=w.currentTarget.getAttribute("target");return M&&M!=="_self"||w.metaKey||w.ctrlKey||w.shiftKey||w.altKey||w.nativeEvent&&w.nativeEvent.which===2}function C(w,j,M,T,E,L,G,Y,J){const{nodeName:ce}=w.currentTarget;if(ce.toUpperCase()==="A"&&(v(w)||!J&&!(0,a.isLocalURL)(M)))return;w.preventDefault();const te=()=>{const A=G??!0;"beforePopState"in j?j[E?"replace":"push"](M,T,{shallow:L,locale:Y,scroll:A}):j[E?"replace":"push"](T||M,{scroll:A})};J?n.default.startTransition(te):te()}function $(w){return typeof w=="string"?w:(0,i.formatUrl)(w)}const P=n.default.forwardRef(function(j,M){let T;const{href:E,as:L,children:G,prefetch:Y=null,passHref:J,replace:ce,shallow:me,scroll:te,locale:A,onClick:ae,onMouseEnter:re,onTouchStart:ne,legacyBehavior:q=!1,...Ie}=j;T=G,q&&(typeof T=="string"||typeof T=="number")&&(T=n.default.createElement("a",null,T));const N=n.default.useContext(u.RouterContext),Oe=n.default.useContext(d.AppRouterContext),Z=N??Oe,k=!N,B=Y!==!1,z=Y===null?x.PrefetchKind.AUTO:x.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let D=function(I){return new Error("Failed prop type: The prop `"+I.key+"` expects a "+I.expected+" in `<Link>`, but got `"+I.actual+"` instead."+(typeof window<"u"?`
84
- Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(I=>{if(I==="href"&&(j[I]==null||typeof j[I]!="string"&&typeof j[I]!="object"))throw D({key:I,expected:"`string` or `object`",actual:j[I]===null?"null":typeof j[I]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(I=>{const se=typeof j[I];if(I==="as"){if(j[I]&&se!=="string"&&se!=="object")throw D({key:I,expected:"`string` or `object`",actual:se})}else if(I==="locale"){if(j[I]&&se!=="string")throw D({key:I,expected:"`string`",actual:se})}else if(I==="onClick"||I==="onMouseEnter"||I==="onTouchStart"){if(j[I]&&se!=="function")throw D({key:I,expected:"`function`",actual:se})}else if((I==="replace"||I==="scroll"||I==="shallow"||I==="passHref"||I==="prefetch"||I==="legacyBehavior")&&j[I]!=null&&se!=="boolean")throw D({key:I,expected:"`boolean`",actual:se})});const br=n.default.useRef(!1);j.prefetch&&!br.current&&!k&&(br.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(process.env.NODE_ENV!=="production"&&k&&!L){let D;if(typeof E=="string"?D=E:typeof E=="object"&&typeof E.pathname=="string"&&(D=E.pathname),D&&D.split("/").some(xe=>xe.startsWith("[")&&xe.endsWith("]")))throw new Error("Dynamic href `"+D+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:W,as:H}=n.default.useMemo(()=>{if(!N){const xe=$(E);return{href:xe,as:L?$(L):xe}}const[D,je]=(0,o.resolveHref)(N,E,!0);return{href:D,as:L?(0,o.resolveHref)(N,L):je||D}},[N,E,L]),fr=n.default.useRef(W),hr=n.default.useRef(H);let U;if(q)if(process.env.NODE_ENV==="development"){ae&&console.warn('"onClick" was passed to <Link> with `href` of `'+E+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),re&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+E+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{U=n.default.Children.only(T)}catch{throw T?new Error("Multiple children were passed to <Link> with `href` of `"+E+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
85
- Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+E+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else U=n.default.Children.only(T);else if(process.env.NODE_ENV==="development"&&(T==null?void 0:T.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
86
- Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const ye=q?U&&typeof U=="object"&&U.ref:M,[mr,pr,gr]=(0,h.useIntersection)({rootMargin:"200px"}),sa=n.default.useCallback(D=>{(hr.current!==H||fr.current!==W)&&(gr(),hr.current=H,fr.current=W),mr(D),ye&&(typeof ye=="function"?ye(D):typeof ye=="object"&&(ye.current=D))},[H,ye,W,gr,mr]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&Z&&(!pr||!B||g(Z,W,H,{locale:A},{kind:z},k))},[H,W,pr,A,B,N==null?void 0:N.locale,Z,k,z]);const Ne={ref:sa,onClick(D){if(process.env.NODE_ENV!=="production"&&!D)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!q&&typeof ae=="function"&&ae(D),q&&U.props&&typeof U.props.onClick=="function"&&U.props.onClick(D),Z&&(D.defaultPrevented||C(D,Z,W,H,ce,me,te,A,k))},onMouseEnter(D){!q&&typeof re=="function"&&re(D),q&&U.props&&typeof U.props.onMouseEnter=="function"&&U.props.onMouseEnter(D),Z&&((!B||process.env.NODE_ENV==="development")&&k||g(Z,W,H,{locale:A,priority:!0,bypassPrefetchedCheck:!0},{kind:z},k))},onTouchStart(D){!q&&typeof ne=="function"&&ne(D),q&&U.props&&typeof U.props.onTouchStart=="function"&&U.props.onTouchStart(D),Z&&(!B&&k||g(Z,W,H,{locale:A,priority:!0,bypassPrefetchedCheck:!0},{kind:z},k))}};if((0,s.isAbsoluteUrl)(H))Ne.href=H;else if(!q||J||U.type==="a"&&!("href"in U.props)){const D=typeof A<"u"?A:N==null?void 0:N.locale,je=(N==null?void 0:N.isLocaleDomain)&&(0,f.getDomainLocale)(H,D,N==null?void 0:N.locales,N==null?void 0:N.domainLocales);Ne.href=je||(0,p.addBasePath)((0,c.addLocale)(H,D,N==null?void 0:N.defaultLocale))}return q?n.default.cloneElement(U,Ne):n.default.createElement("a",{...Ie,...Ne},T)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Zt,Zt.exports);var Ul=Zt.exports,Fl=Ul;const zl=hl(Fl),Hl=e=>{const{tabState:t,defaultSelectedKey:r}=Re(),{setSelectedKey:n}=t,{id:o,path:a,label:i,themeName:s="button",tokens:c,customTheme:u,target:d,children:h,childItems:f,...p}=e,x=a==null?void 0:a.substring(1),m=b.useCallback(()=>{if(x!=null){if(t.selectedKey===x){n(r);return}n(x)}},[x,t.selectedKey,n,r]);return b.createElement(ve,{...p,themeName:`${s}`,tokens:c,customTheme:u,key:`button-${o}`,handlePress:m},b.isValidElement(h)?h:i)},Wl=e=>{const{id:t,target:r,path:n,label:o,themeName:a="anchor",customTheme:i,tokens:s,nextLinkProps:c,children:u,childItems:d,...h}=e,f=b.useRef(null);return n==null||o==null?null:b.createElement(nr,{...h,themeName:`${a}`,tokens:s,customTheme:i,nextLinkProps:{scroll:!1,href:n,...c},ref:f,key:`link-${t}`,as:zl,target:r??"_self"},b.isValidElement(u)?u:o)},Gl=e=>{const{menuItems:t,children:r,themeName:n="menuItem",tokens:o,customTheme:a}=e;return l.jsxs(Q,{themeName:`${n}.wrapper`,tokens:o,customTheme:a,children:[l.jsx(Q,{themeName:`${n}.container`,tokens:o,customTheme:a,children:t==null?void 0:t.map(i=>{var p;const{id:s,path:c,label:u,...d}=i??{},h={...o,...i.tokens};if((i==null?void 0:i.path)==null||i.id==null)return null;const f=(p=i.path)!=null&&p.startsWith("#")?"button":"a";return l.jsx(Q,{themeName:`${n}.innerContent`,tokens:h,customTheme:a,children:f==="button"?l.jsx(Hl,{...d,...i,themeName:`${n}.button`,tokens:h,customTheme:a}):l.jsx(Wl,{...d,...i,themeName:`${n}.anchor`,tokens:h,customTheme:a})},`li-${i.id}`)})}),r]})};function Yl(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),r=typeof Buffer<"u"?Buffer.from(t,"base64"):Uint8Array.from(atob(t),n=>n.charCodeAt(0));return new Uint8Array(r)}/**
88
+ `,variants:{isError:{true:"border-red-500"}}}),fa=io({main:t=>ms(t),gridItem:t=>bs(t),grid:t=>gs(t),container:t=>co(t),accordion:ps,carousel:{container:t=>Rs(t),slideContainer:t=>Es(t),navigationButtons:t=>Ms(t)},calendar:{container:t=>ys(t),header:t=>vs(t),navigationButtonsContainer:t=>xs(t),navigationButtons:t=>$s(t),table:t=>ws(t),dayLabel:t=>Ps(t),cellContainer:t=>Ts(t),cell:t=>Cs(t),cellDate:t=>Ss(t)},datePicker:{container:t=>Ls(t),button:t=>Ns(t),icon:t=>Us(t),dateField:t=>Fs(t),dateSegment:t=>qs(t),label:t=>Vs(t),calendarPopover:t=>Ks(t),calendarUnderlay:t=>Bs(t)},popover:{button:t=>Ge(t),popover:()=>"border-2 text-black p-4 bg-gray-300"},typography:t=>ue(t),button:t=>Ge(t),sidePanel:{wrapper:t=>la(t),container:t=>ca(t),innerContainer:t=>ua(t)},lightBox:{wrapper:t=>Ws(t),container:t=>Gs(t),closeBtn:t=>Ys(t),label:t=>Js(t)},shareButton:{icon:t=>sa(t),button:t=>na(t),container:t=>ra(t),linksList:t=>oa(t),link:t=>ia(t),linkIcons:t=>aa(t)},checkbox:{container:t=>js(t),label:t=>_s(t),checkBox:t=>ks(t),checkMark:t=>Ds(t),checkMarkIcon:t=>Os(t),errorMessage:t=>ue(t)},radio:{label:t=>Qs(t),radio:t=>Xs(t),selectedMark:t=>Zs(t),errorMessage:t=>ue(t)},radioGroup:{radioGroup:t=>ea(t),radioGroupItemsGroup:t=>ta(t),errorMessage:t=>ue(t)},checkboxGroup:{checkboxGroup:t=>Is(t),checkboxGroupItemsGroup:t=>As(t),errormessage:t=>ue(t)},select:{button:t=>Ge(t),ul:t=>ue({...t,className:"outline outline-2 outline-white outline-offset-2 p-2 my-4 rounded-md w-full flex flex-col gap-6"}),popover:t=>Ge({...t,className:"w-[var(--select-container-width)]"}),errorMessage:t=>ue({...t,size:"footnotes",isError:!0}),wrapper:()=>"flex flex-col gap-4 relative",container:()=>"flex flex-col gap-4",li:()=>"transition w-full hover:text-gray-300 focus-ring-white"},textarea:{wrapper:()=>"flex flex-col",container:()=>"flex items-center gap-4",label:()=>"text-gray-3 px-6",input:t=>da(t),errorMessage:t=>ue({...t,size:"footnotes",isError:!0})},textInput:{wrapper:()=>"flex flex-col rounded-md px-4 py-1 mb-3 m-0.5 border-2 aria-disabled:pointer-events-none aria-disabled:opacity-30 focus-ring-black",label:()=>"text-xs",container:()=>"flex items-center gap-4",input:()=>"",errorMessage:t=>ue({...t,size:"footnotes",isError:!0})},menu:{sidePanel:{wrapper:()=>"",container:()=>"",innerContainer:()=>""},wrapper:()=>""},menuItem:{wrapper:()=>"",container:()=>"",innerContent:()=>"",button:()=>"",anchor:()=>""},img:zs}),ha=y.memo(lo(fa)),I=(t,e={},r=null)=>{const n=so();if(n!=null&&t!=null){const{brandTheme:o}=n,i=no.get(o,t);if(typeof i=="function"){const s=i==null?void 0:i(e);if(typeof s=="string")return s}}if(r)return r},Z=({as:t="span",themeName:e="typography",tokens:r,customTheme:n,children:o,...i})=>{const s=I(e,r,n);return c.jsx(t,{...i,className:s,children:o})},uo=y.forwardRef((t,e)=>{const{as:r="span",tokens:n,themeName:o="typography",customTheme:i,children:s,...a}=t,l=I(o,n,i);return c.jsx(r,{...a,ref:e,className:l,children:s})});function pa(t,e){return e.get?e.get.call(t):e.value}function fo(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function ma(t,e){var r=fo(t,e,"get");return pa(t,r)}function ga(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $r(t,e,r){ga(t,e),e.set(t,r)}function ba(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function Fr(t,e,r){var n=fo(t,e,"set");return ba(t,n,r),r}let Ee="default",lr="",ht=new WeakMap;function qr(t){if(k.isIOS()){if(Ee==="default"){const e=k.getOwnerDocument(t);lr=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}Ee="disabled"}else(t instanceof HTMLElement||t instanceof SVGElement)&&(ht.set(t,t.style.userSelect),t.style.userSelect="none")}function Ye(t){if(k.isIOS()){if(Ee!=="disabled")return;Ee="restoring",setTimeout(()=>{k.runAfterTransition(()=>{if(Ee==="restoring"){const e=k.getOwnerDocument(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=lr||""),lr="",Ee="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&ht.has(t)){let e=ht.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),ht.delete(t)}}const ho=y.createContext({register:()=>{}});ho.displayName="PressResponderContext";function ya(t){let e=y.useContext(ho);if(e){let{register:r,...n}=e;t=k.mergeProps(n,t),r()}return k.useSyncRef(e,t.ref),t}var Je=new WeakMap;class Qe{continuePropagation(){Fr(this,Je,!1)}get shouldStopPropagation(){return ma(this,Je)}constructor(e,r,n){$r(this,Je,{writable:!0,value:void 0}),Fr(this,Je,!0),this.type=e,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}}const Ur=Symbol("linkClicked");function wr(t){let{onPress:e,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:s,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:p,...f}=ya(t),[m,P]=y.useState(!1),g=y.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:$}=k.useGlobalListeners(),M=k.useEffectEvent((h,R)=>{let w=g.current;if(s||w.didFirePressStart)return!1;let T=!0;if(w.isTriggeringEvent=!0,n){let A=new Qe("pressstart",R,h);n(A),T=A.shouldStopPropagation}return r&&r(!0),w.isTriggeringEvent=!1,w.didFirePressStart=!0,P(!0),T}),S=k.useEffectEvent((h,R,w=!0)=>{let T=g.current;if(!T.didFirePressStart)return!1;T.ignoreClickAfterPress=!0,T.didFirePressStart=!1,T.isTriggeringEvent=!0;let A=!0;if(o){let x=new Qe("pressend",R,h);o(x),A=x.shouldStopPropagation}if(r&&r(!1),P(!1),e&&w&&!s){let x=new Qe("press",R,h);e(x),A&&(A=x.shouldStopPropagation)}return T.isTriggeringEvent=!1,A}),v=k.useEffectEvent((h,R)=>{let w=g.current;if(s)return!1;if(i){w.isTriggeringEvent=!0;let T=new Qe("pressup",R,h);return i(T),w.isTriggeringEvent=!1,T.shouldStopPropagation}return!0}),j=k.useEffectEvent(h=>{let R=g.current;R.isPressed&&R.target&&(R.isOverTarget&&R.pointerType!=null&&S(fe(R.target,h),R.pointerType,!1),R.isPressed=!1,R.isOverTarget=!1,R.activePointerId=null,R.pointerType=null,$(),d||Ye(R.target))}),E=k.useEffectEvent(h=>{u&&j(h)}),D=y.useMemo(()=>{let h=g.current,R={onKeyDown(T){if(_t(T.nativeEvent,T.currentTarget)&&T.currentTarget.contains(T.target)){var A;Hr(T.target,T.key)&&T.preventDefault();let x=!0;if(!h.isPressed&&!T.repeat){h.target=T.currentTarget,h.isPressed=!0,x=M(T,"keyboard");let C=T.currentTarget,B=W=>{_t(W,C)&&!W.repeat&&C.contains(W.target)&&h.target&&v(fe(h.target,W),"keyboard")};b(k.getOwnerDocument(T.currentTarget),"keyup",k.chain(B,w),!0)}x&&T.stopPropagation(),T.metaKey&&k.isMac()&&((A=h.metaKeyEvents)===null||A===void 0||A.set(T.key,T.nativeEvent))}else T.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(T){if(!(T&&!T.currentTarget.contains(T.target))&&T&&T.button===0&&!h.isTriggeringEvent&&!k.openLink.isOpening){let A=!0;if(s&&T.preventDefault(),!h.ignoreClickAfterPress&&!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||k.isVirtualClick(T.nativeEvent))){!s&&!l&&k.focusWithoutScrolling(T.currentTarget);let x=M(T,"virtual"),C=v(T,"virtual"),B=S(T,"virtual");A=x&&C&&B}h.ignoreEmulatedMouseEvents=!1,h.ignoreClickAfterPress=!1,A&&T.stopPropagation()}}},w=T=>{var A;if(h.isPressed&&h.target&&_t(T,h.target)){var x;Hr(T.target,T.key)&&T.preventDefault();let B=T.target;S(fe(h.target,T),"keyboard",h.target.contains(B)),$(),T.key!=="Enter"&&Pr(h.target)&&h.target.contains(B)&&!T[Ur]&&(T[Ur]=!0,k.openLink(h.target,T,!1)),h.isPressed=!1,(x=h.metaKeyEvents)===null||x===void 0||x.delete(T.key)}else if(T.key==="Meta"&&(!((A=h.metaKeyEvents)===null||A===void 0)&&A.size)){var C;let B=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let W of B.values())(C=h.target)===null||C===void 0||C.dispatchEvent(new KeyboardEvent("keyup",W))}};if(typeof PointerEvent<"u"){R.onPointerDown=C=>{if(C.button!==0||!C.currentTarget.contains(C.target))return;if(k.isVirtualPointerEvent(C.nativeEvent)){h.pointerType="virtual";return}kt(C.currentTarget)&&C.preventDefault(),h.pointerType=C.pointerType;let B=!0;h.isPressed||(h.isPressed=!0,h.isOverTarget=!0,h.activePointerId=C.pointerId,h.target=C.currentTarget,!s&&!l&&k.focusWithoutScrolling(C.currentTarget),d||qr(h.target),B=M(C,h.pointerType),b(k.getOwnerDocument(C.currentTarget),"pointermove",T,!1),b(k.getOwnerDocument(C.currentTarget),"pointerup",A,!1),b(k.getOwnerDocument(C.currentTarget),"pointercancel",x,!1)),B&&C.stopPropagation()},R.onMouseDown=C=>{C.currentTarget.contains(C.target)&&C.button===0&&(kt(C.currentTarget)&&C.preventDefault(),C.stopPropagation())},R.onPointerUp=C=>{!C.currentTarget.contains(C.target)||h.pointerType==="virtual"||C.button===0&&Ce(C,C.currentTarget)&&v(C,h.pointerType||C.pointerType)};let T=C=>{C.pointerId===h.activePointerId&&(h.target&&Ce(C,h.target)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,M(fe(h.target,C),h.pointerType)):h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,S(fe(h.target,C),h.pointerType,!1),E(C)))},A=C=>{C.pointerId===h.activePointerId&&h.isPressed&&C.button===0&&h.target&&(Ce(C,h.target)&&h.pointerType!=null?S(fe(h.target,C),h.pointerType):h.isOverTarget&&h.pointerType!=null&&S(fe(h.target,C),h.pointerType,!1),h.isPressed=!1,h.isOverTarget=!1,h.activePointerId=null,h.pointerType=null,$(),d||Ye(h.target))},x=C=>{j(C)};R.onDragStart=C=>{C.currentTarget.contains(C.target)&&j(C)}}else{R.onMouseDown=x=>{if(x.button!==0||!x.currentTarget.contains(x.target))return;if(kt(x.currentTarget)&&x.preventDefault(),h.ignoreEmulatedMouseEvents){x.stopPropagation();return}h.isPressed=!0,h.isOverTarget=!0,h.target=x.currentTarget,h.pointerType=k.isVirtualClick(x.nativeEvent)?"virtual":"mouse",!s&&!l&&k.focusWithoutScrolling(x.currentTarget),M(x,h.pointerType)&&x.stopPropagation(),b(k.getOwnerDocument(x.currentTarget),"mouseup",T,!1)},R.onMouseEnter=x=>{if(!x.currentTarget.contains(x.target))return;let C=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,C=M(x,h.pointerType)),C&&x.stopPropagation()},R.onMouseLeave=x=>{if(!x.currentTarget.contains(x.target))return;let C=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,C=S(x,h.pointerType,!1),E(x)),C&&x.stopPropagation()},R.onMouseUp=x=>{x.currentTarget.contains(x.target)&&!h.ignoreEmulatedMouseEvents&&x.button===0&&v(x,h.pointerType||"mouse")};let T=x=>{if(x.button===0){if(h.isPressed=!1,$(),h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&Ce(x,h.target)&&h.pointerType!=null?S(fe(h.target,x),h.pointerType):h.target&&h.isOverTarget&&h.pointerType!=null&&S(fe(h.target,x),h.pointerType,!1),h.isOverTarget=!1}};R.onTouchStart=x=>{if(!x.currentTarget.contains(x.target))return;let C=va(x.nativeEvent);if(!C)return;h.activePointerId=C.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,h.target=x.currentTarget,h.pointerType="touch",!s&&!l&&k.focusWithoutScrolling(x.currentTarget),d||qr(h.target),M(x,h.pointerType)&&x.stopPropagation(),b(k.getOwnerWindow(x.currentTarget),"scroll",A,!0)},R.onTouchMove=x=>{if(!x.currentTarget.contains(x.target))return;if(!h.isPressed){x.stopPropagation();return}let C=Vr(x.nativeEvent,h.activePointerId),B=!0;C&&Ce(C,x.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,B=M(x,h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,B=S(x,h.pointerType,!1),E(x)),B&&x.stopPropagation()},R.onTouchEnd=x=>{if(!x.currentTarget.contains(x.target))return;if(!h.isPressed){x.stopPropagation();return}let C=Vr(x.nativeEvent,h.activePointerId),B=!0;C&&Ce(C,x.currentTarget)&&h.pointerType!=null?(v(x,h.pointerType),B=S(x,h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(B=S(x,h.pointerType,!1)),B&&x.stopPropagation(),h.isPressed=!1,h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!d&&Ye(h.target),$()},R.onTouchCancel=x=>{x.currentTarget.contains(x.target)&&(x.stopPropagation(),h.isPressed&&j(x))};let A=x=>{h.isPressed&&x.target.contains(h.target)&&j({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};R.onDragStart=x=>{x.currentTarget.contains(x.target)&&j(x)}}return R},[b,s,l,$,d,j,E,S,M,v]);return y.useEffect(()=>()=>{var h;d||Ye((h=g.current.target)!==null&&h!==void 0?h:void 0)},[d]),{isPressed:a||m,pressProps:k.mergeProps(f,D)}}function Pr(t){return t.tagName==="A"&&t.hasAttribute("href")}function _t(t,e){const{key:r,code:n}=t,o=e,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof k.getOwnerWindow(o).HTMLInputElement&&!po(o,r)||o instanceof k.getOwnerWindow(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Pr(o))&&r!=="Enter")}function va(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Vr(t,e){const r=t.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===e)return o}return null}function fe(t,e){return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey}}function xa(t){let e=0,r=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?r=t.height/2:t.radiusY!==void 0&&(r=t.radiusY),{top:t.clientY-r,right:t.clientX+e,bottom:t.clientY+r,left:t.clientX-e}}function $a(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Ce(t,e){let r=e.getBoundingClientRect(),n=xa(t);return $a(r,n)}function kt(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function Hr(t,e){return t instanceof HTMLInputElement?!po(t,e):t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Pr(t)}const wa=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function po(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":wa.has(t.type)}let qe=null,Pa=new Set,Be=new Map,$e=!1,cr=!1;function Tr(t,e){for(let r of Pa)r(t,e)}function Ta(t){return!(t.metaKey||!k.isMac()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function bt(t){$e=!0,Ta(t)&&(qe="keyboard",Tr("keyboard",t))}function se(t){qe="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&($e=!0,Tr("pointer",t))}function mo(t){k.isVirtualClick(t)&&($e=!0,qe="virtual")}function go(t){t.target===window||t.target===document||(!$e&&!cr&&(qe="virtual",Tr("virtual",t)),$e=!1,cr=!1)}function bo(){$e=!1,cr=!0}function zr(t){if(typeof window>"u"||Be.get(k.getOwnerWindow(t)))return;const e=k.getOwnerWindow(t),r=k.getOwnerDocument(t);let n=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){$e=!0,n.apply(this,arguments)},r.addEventListener("keydown",bt,!0),r.addEventListener("keyup",bt,!0),r.addEventListener("click",mo,!0),e.addEventListener("focus",go,!0),e.addEventListener("blur",bo,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",se,!0),r.addEventListener("pointermove",se,!0),r.addEventListener("pointerup",se,!0)):(r.addEventListener("mousedown",se,!0),r.addEventListener("mousemove",se,!0),r.addEventListener("mouseup",se,!0)),e.addEventListener("beforeunload",()=>{yo(t)},{once:!0}),Be.set(e,{focus:n})}const yo=(t,e)=>{const r=k.getOwnerWindow(t),n=k.getOwnerDocument(t);e&&n.removeEventListener("DOMContentLoaded",e),Be.has(r)&&(r.HTMLElement.prototype.focus=Be.get(r).focus,n.removeEventListener("keydown",bt,!0),n.removeEventListener("keyup",bt,!0),n.removeEventListener("click",mo,!0),r.removeEventListener("focus",go,!0),r.removeEventListener("blur",bo,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",se,!0),n.removeEventListener("pointermove",se,!0),n.removeEventListener("pointerup",se,!0)):(n.removeEventListener("mousedown",se,!0),n.removeEventListener("mousemove",se,!0),n.removeEventListener("mouseup",se,!0)),Be.delete(r))};function Ca(t){const e=k.getOwnerDocument(t);let r;return e.readyState!=="loading"?zr(t):(r=()=>{zr(t)},e.addEventListener("DOMContentLoaded",r)),()=>yo(t,r)}typeof document<"u"&&Ca();function Wr(){return qe}const Sa=500;function Ra(t){let{isDisabled:e,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=Sa,accessibilityDescription:s}=t;const a=y.useRef();let{addGlobalListener:l,removeGlobalListener:u}=k.useGlobalListeners(),{pressProps:d}=wr({isDisabled:e,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(r&&r({...f,type:"longpressstart"}),a.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...f,type:"longpress"}),a.current=void 0},i),f.pointerType==="touch")){let m=P=>{P.preventDefault()};l(f.target,"contextmenu",m,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",m)},30)},{once:!0})}},onPressEnd(f){a.current&&clearTimeout(a.current),n&&(f.pointerType==="mouse"||f.pointerType==="touch")&&n({...f,type:"longpressend"})}}),p=k.useDescription(o&&!e?s:void 0);return{longPressProps:k.mergeProps(d,p)}}function Ea(t,e){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:p,href:f,target:m,rel:P,type:g="button"}=t,b;r==="button"?b={type:g,disabled:n}:b={role:"button",tabIndex:n?void 0:0,href:r==="a"&&n?void 0:f,target:r==="a"?m:void 0,type:r==="input"?g:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?P:void 0};let{pressProps:$,isPressed:M}=wr({onPressStart:i,onPressEnd:s,onPressChange:l,onPress:o,onPressUp:a,isDisabled:n,preventFocusOnPress:u,ref:e}),{focusableProps:S}=ae.useFocusable(t,e);d&&(S.tabIndex=n?-1:S.tabIndex);let v=k.mergeProps(S,$,k.filterDOMProps(t,{labelable:!0}));return{isPressed:M,buttonProps:k.mergeProps(b,v,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],onClick:j=>{p&&(p(j),console.warn("onClick is deprecated, please use onPress"))}})}}function ur(t){return k.isAppleDevice()?t.altKey:t.ctrlKey}function Re(t){return k.isMac()?t.metaKey:t.ctrlKey}const Ma=1e3;function ja(t){let{keyboardDelegate:e,selectionManager:r,onTypeSelect:n}=t,o=y.useRef({search:"",timeout:null}).current,i=s=>{let a=_a(s.key);if(!a||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))return;a===" "&&o.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),o.search+=a;let l=e.getKeyForSearch(o.search,r.focusedKey);l==null&&(l=e.getKeyForSearch(o.search)),l!=null&&(r.setFocusedKey(l),n&&n(l)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},Ma)};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?i:null}}}function _a(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function ka(t){let{selectionManager:e,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:s=!1,disallowSelectAll:a=!1,selectOnFocus:l=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:p=!1,isVirtualized:f,scrollRef:m=n,linkBehavior:P="action"}=t,{direction:g}=De.useLocale(),b=k.useRouter(),$=w=>{if(w.altKey&&w.key==="Tab"&&w.preventDefault(),!n.current.contains(w.target))return;const T=(N,G)=>{if(N!=null){if(e.isLink(N)&&P==="selection"&&l&&!ur(w)){Gi.flushSync(()=>{e.setFocusedKey(N,G)});let U=m.current.querySelector(`[data-key="${CSS.escape(N.toString())}"]`);b.open(U,w);return}if(e.setFocusedKey(N,G),e.isLink(N)&&P==="override")return;w.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(N):l&&!ur(w)&&e.replaceSelection(N)}};switch(w.key){case"ArrowDown":if(r.getKeyBelow){var A,x;w.preventDefault();let N=e.focusedKey!=null?r.getKeyBelow(e.focusedKey):(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r);N==null&&i&&(N=(x=r.getFirstKey)===null||x===void 0?void 0:x.call(r,e.focusedKey)),T(N)}break;case"ArrowUp":if(r.getKeyAbove){var C,B;w.preventDefault();let N=e.focusedKey!=null?r.getKeyAbove(e.focusedKey):(C=r.getLastKey)===null||C===void 0?void 0:C.call(r);N==null&&i&&(N=(B=r.getLastKey)===null||B===void 0?void 0:B.call(r,e.focusedKey)),T(N)}break;case"ArrowLeft":if(r.getKeyLeftOf){var W,_;w.preventDefault();let N=r.getKeyLeftOf(e.focusedKey);N==null&&i&&(N=g==="rtl"?(W=r.getFirstKey)===null||W===void 0?void 0:W.call(r,e.focusedKey):(_=r.getLastKey)===null||_===void 0?void 0:_.call(r,e.focusedKey)),T(N,g==="rtl"?"first":"last")}break;case"ArrowRight":if(r.getKeyRightOf){var V,ne;w.preventDefault();let N=r.getKeyRightOf(e.focusedKey);N==null&&i&&(N=g==="rtl"?(V=r.getLastKey)===null||V===void 0?void 0:V.call(r,e.focusedKey):(ne=r.getFirstKey)===null||ne===void 0?void 0:ne.call(r,e.focusedKey)),T(N,g==="rtl"?"last":"first")}break;case"Home":if(r.getFirstKey){w.preventDefault();let N=r.getFirstKey(e.focusedKey,Re(w));e.setFocusedKey(N),Re(w)&&w.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(N):l&&e.replaceSelection(N)}break;case"End":if(r.getLastKey){w.preventDefault();let N=r.getLastKey(e.focusedKey,Re(w));e.setFocusedKey(N),Re(w)&&w.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(N):l&&e.replaceSelection(N)}break;case"PageDown":if(r.getKeyPageBelow){w.preventDefault();let N=r.getKeyPageBelow(e.focusedKey);T(N)}break;case"PageUp":if(r.getKeyPageAbove){w.preventDefault();let N=r.getKeyPageAbove(e.focusedKey);T(N)}break;case"a":Re(w)&&e.selectionMode==="multiple"&&a!==!0&&(w.preventDefault(),e.selectAll());break;case"Escape":w.preventDefault(),s||e.clearSelection();break;case"Tab":if(!p){if(w.shiftKey)n.current.focus();else{let N=ae.getFocusableTreeWalker(n.current,{tabbable:!0}),G,U;do U=N.lastChild(),U&&(G=U);while(U);G&&!G.contains(document.activeElement)&&k.focusWithoutScrolling(G)}break}}},M=y.useRef({top:0,left:0});k.useEvent(m,"scroll",f?null:()=>{M.current={top:m.current.scrollTop,left:m.current.scrollLeft}});let S=w=>{if(e.isFocused){w.currentTarget.contains(w.target)||e.setFocused(!1);return}if(w.currentTarget.contains(w.target)){if(e.setFocused(!0),e.focusedKey==null){let x=B=>{B!=null&&(e.setFocusedKey(B),l&&e.replaceSelection(B))},C=w.relatedTarget;var T,A;C&&w.currentTarget.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_FOLLOWING?x((T=e.lastSelectedKey)!==null&&T!==void 0?T:r.getLastKey()):x((A=e.firstSelectedKey)!==null&&A!==void 0?A:r.getFirstKey())}else f||(m.current.scrollTop=M.current.top,m.current.scrollLeft=M.current.left);if(!f&&e.focusedKey!=null){let x=m.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);x&&(x.contains(document.activeElement)||k.focusWithoutScrolling(x),Wr()==="keyboard"&&k.scrollIntoViewport(x,{containingElement:n.current}))}}},v=w=>{w.currentTarget.contains(w.relatedTarget)||e.setFocused(!1)};const j=y.useRef(o);y.useEffect(()=>{if(j.current){let w=null;o==="first"&&(w=r.getFirstKey()),o==="last"&&(w=r.getLastKey());let T=e.selectedKeys;if(T.size){for(let A of T)if(e.canSelectItem(A)){w=A;break}}e.setFocused(!0),e.setFocusedKey(w),w==null&&!d&&ae.focusSafely(n.current)}},[]);let E=y.useRef(e.focusedKey);y.useEffect(()=>{let w=Wr();if(e.isFocused&&e.focusedKey!=null&&(m!=null&&m.current)){let T=m.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);T&&(w==="keyboard"||j.current)&&(f||k.scrollIntoView(m.current,T),w!=="virtual"&&k.scrollIntoViewport(T,{containingElement:n.current}))}e.isFocused&&e.focusedKey==null&&E.current!=null&&ae.focusSafely(n.current),E.current=e.focusedKey,j.current=!1},[f,m,e.focusedKey,e.isFocused,n]);let D={onKeyDown:$,onFocus:S,onBlur:v,onMouseDown(w){m.current===w.target&&w.preventDefault()}},{typeSelectProps:h}=ja({keyboardDelegate:r,selectionManager:e});u||(D=k.mergeProps(h,D));let R;return d||(R=e.focusedKey==null?0:-1),{collectionProps:{...D,tabIndex:R}}}function Da(t){let{selectionManager:e,key:r,ref:n,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:s,isDisabled:a,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:d="action"}=t,p=k.useRouter(),f=_=>{if(_.pointerType==="keyboard"&&ur(_))e.toggleSelection(r);else{if(e.selectionMode==="none")return;if(e.isLink(r)){if(d==="selection"){p.open(n.current,_),e.setSelectedKeys(e.selectedKeys);return}else if(d==="override"||d==="none")return}e.selectionMode==="single"?e.isSelected(r)&&!e.disallowEmptySelection?e.toggleSelection(r):e.replaceSelection(r):_&&_.shiftKey?e.extendSelection(r):e.selectionBehavior==="toggle"||_&&(Re(_)||_.pointerType==="touch"||_.pointerType==="virtual")?e.toggleSelection(r):e.replaceSelection(r)}};y.useEffect(()=>{r===e.focusedKey&&e.isFocused&&!i&&(s?s():document.activeElement!==n.current&&ae.focusSafely(n.current))},[n,r,e.focusedKey,e.childFocusStrategy,e.isFocused,i]),a=a||e.isDisabled(r);let m={};!i&&!a?m={tabIndex:r===e.focusedKey?0:-1,onFocus(_){_.target===n.current&&e.setFocusedKey(r)}}:a&&(m.onMouseDown=_=>{_.preventDefault()});let P=e.isLink(r)&&d==="override",g=e.isLink(r)&&d!=="selection"&&d!=="none",b=!a&&e.canSelectItem(r)&&!P,$=(l||g)&&!a,M=$&&(e.selectionBehavior==="replace"?!b:!b||e.isEmpty),S=$&&b&&e.selectionBehavior==="replace",v=M||S,j=y.useRef(null),E=v&&b,D=y.useRef(!1),h=y.useRef(!1),R=_=>{l&&l(),g&&p.open(n.current,_)},w={};o?(w.onPressStart=_=>{j.current=_.pointerType,D.current=E,_.pointerType==="keyboard"&&(!v||Yr())&&f(_)},u?(w.onPressUp=M?null:_=>{_.pointerType!=="keyboard"&&b&&f(_)},w.onPress=M?R:null):w.onPress=_=>{if(M||S&&_.pointerType!=="mouse"){if(_.pointerType==="keyboard"&&!Gr())return;R(_)}else _.pointerType!=="keyboard"&&b&&f(_)}):(w.onPressStart=_=>{j.current=_.pointerType,D.current=E,h.current=M,b&&(_.pointerType==="mouse"&&!M||_.pointerType==="keyboard"&&(!$||Yr()))&&f(_)},w.onPress=_=>{(_.pointerType==="touch"||_.pointerType==="pen"||_.pointerType==="virtual"||_.pointerType==="keyboard"&&v&&Gr()||_.pointerType==="mouse"&&h.current)&&(v?R(_):b&&f(_))}),m["data-key"]=r,w.preventFocusOnPress=i;let{pressProps:T,isPressed:A}=wr(w),x=S?_=>{j.current==="mouse"&&(_.stopPropagation(),_.preventDefault(),R(_))}:void 0,{longPressProps:C}=Ra({isDisabled:!E,onLongPress(_){_.pointerType==="touch"&&(f(_),e.setSelectionBehavior("toggle"))}}),B=_=>{j.current==="touch"&&D.current&&_.preventDefault()},W=e.isLink(r)?_=>{k.openLink.isOpening||_.preventDefault()}:void 0;return{itemProps:k.mergeProps(m,b||M?T:{},E?C:{},{onDoubleClick:x,onDragStartCapture:B,onClick:W}),isPressed:A,isSelected:e.isSelected(r),isFocused:e.isFocused&&e.focusedKey===r,isDisabled:a,allowsSelection:b,hasAction:v}}function Gr(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Yr(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class Oa{getNextKey(e){for(e=this.collection.getKeyAfter(e);e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getPreviousKey(e){for(e=this.collection.getKeyBefore(e);e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}findKey(e,r,n){let o=this.getItem(e);if(!o)return null;let i=o.getBoundingClientRect();do e=r(e),o=this.getItem(e);while(o&&n(i,o.getBoundingClientRect()));return e}isSameRow(e,r){return e.top===r.top||e.left!==r.left}isSameColumn(e,r){return e.left===r.left||e.top!==r.top}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,r){return r?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();for(;e!=null;){let r=this.collection.getItem(e);if((r==null?void 0:r.type)==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getLastKey(){let e=this.collection.getLastKey();for(;e!=null;){if(this.collection.getItem(e).type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}getItem(e){return this.ref.current.querySelector(`[data-key="${CSS.escape(e.toString())}"]`)}getKeyPageAbove(e){let r=this.ref.current,n=this.getItem(e);if(!n)return null;if(!k.isScrollable(r))return this.getFirstKey();let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(this.orientation==="horizontal"){let s=o.x-r.scrollLeft,a=Math.max(0,i.x-s+i.width-o.width);for(;n&&i.x-s>a;)e=this.getKeyAbove(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}else{let s=o.y-r.scrollTop,a=Math.max(0,i.y-s+i.height-o.height);for(;n&&i.y-s>a;)e=this.getKeyAbove(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}return e??this.getFirstKey()}getKeyPageBelow(e){let r=this.ref.current,n=this.getItem(e);if(!n)return null;if(!k.isScrollable(r))return this.getLastKey();let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(this.orientation==="horizontal"){let s=o.x-r.scrollLeft,a=Math.min(r.scrollWidth,i.x-s-i.width+o.width);for(;n&&i.x-s<a;)e=this.getKeyBelow(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}else{let s=o.y-r.scrollTop,a=Math.min(r.scrollHeight,i.y-s-i.height+o.height);for(;n&&i.y-s<a;)e=this.getKeyBelow(e),n=e==null?null:this.getItem(e),i=n==null?void 0:n.getBoundingClientRect()}return e??this.getLastKey()}getKeyForSearch(e,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let i=n.getItem(o),s=i.textValue.slice(0,e.length);if(i.textValue&&this.collator.compare(s,e)===0)return o;o=this.getKeyBelow(o)}return null}constructor(...e){if(e.length===1){let r=e[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.orientation=r.orientation,this.direction=r.direction,this.layout=r.layout||"stack"}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Ia(t){let{selectionManager:e,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i}=t,s=De.useCollator({usage:"search",sensitivity:"base"}),a=e.disabledBehavior,l=y.useMemo(()=>i||new Oa(r,a==="selection"?new Set:n,o,s),[i,r,n,o,s,a]),{collectionProps:u}=ka({...t,ref:o,selectionManager:e,keyboardDelegate:l});return{listProps:u}}function Aa(t,e,r){let{item:n}=t,o=k.useId(),i=k.useId(),s=e.disabledKeys.has(n.key),{itemProps:a}=Da({selectionManager:e.selectionManager,key:n.key,ref:r}),{buttonProps:l}=Ea(k.mergeProps(a,{id:o,elementType:"button",isDisabled:s,onPress:()=>e.toggleKey(n.key)}),r),u=e.expandedKeys.has(n.key);return{buttonProps:{...l,"aria-expanded":u,"aria-controls":u?i:void 0},regionProps:{id:i,role:"region","aria-labelledby":o}}}function La(t,e,r){let{listProps:n}=Ia({...t,...e,allowsTabNavigation:!0,ref:r});return{accordionProps:{...n,tabIndex:void 0}}}function vo(){const t=y.createContext(void 0);function e(){const r=y.useContext(t);if(r===void 0)throw new Error("useCtx must be inside a Provider");return r}return[e,t.Provider]}function xo(){const t=y.createContext(void 0);function e(){const r=y.useContext(t);return r===void 0?{}:r}return[e,t.Provider]}const[$o,Na]=xo();function wo(t){const{state:e,children:r,TransitionAnimation:n}=t,o=y.useMemo(()=>({state:e,TransitionAnimation:n}),[e,n]);return c.jsx(Na,{value:o,children:r})}const X=({as:t="div",themeName:e="box",tokens:r,customTheme:n,children:o,className:i,...s})=>{const a=I(e,r,n);return c.jsx(t,{...s,className:a,children:o})},Ue=y.forwardRef((t,e)=>{const{as:r="div",tokens:n,themeName:o="box",customTheme:i,children:s,...a}=t,l=I(o,n,i);return c.jsx(r,{...a,ref:e,className:l,children:s})}),Ba=t=>{const{isVisible:e,children:r,themeName:n,tokens:o,customTheme:i,...s}=t,a=oe.useTransition(e,{from:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"},enter:{gridTemplateRows:"1fr",paddingTop:"1rem",paddingBottom:"1rem"},leave:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"}}),l=I(n,o,i);return a((u,d)=>d&&c.jsx(oe.animated.div,{...s,style:u,className:l,children:r}))},Cr=y.forwardRef((t,e)=>{var P;const{as:r="a",handlePress:n,children:o,as:i,customTheme:s,tokens:a,themeName:l="button",nextLinkProps:u,...d}=t,p=e,{linkProps:f}=L.useLink({...t,...u,href:t.href??((P=u==null?void 0:u.href)==null?void 0:P.toString()),elementType:i==null?void 0:i.toString(),onPress:n},e??p),m=I(l,a,s);return c.jsx(L.FocusRing,{focusRingClass:"has-focus-ring",children:c.jsx(r,{ref:p,...f,...u,...d,className:m,children:o})})}),Po=y.forwardRef((t,e)=>{const{as:r="button",handlePress:n,children:o,as:i,customTheme:s,tokens:a,themeName:l="button",isDisabled:u=!1,...d}=t,p=e,{buttonProps:f}=L.useButton({...t,isDisabled:u,elementType:i,onPress:n},e??p),m=I(l,a,s);return c.jsx(L.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:c.jsx(r,{ref:p,...f,...d,className:m,children:o})})}),we=y.forwardRef((t,e)=>{const{as:r}=t;return r==="a"?c.jsx(Cr,{ref:e,...t}):c.jsx(Po,{ref:e,...t})}),Ka=t=>{const{as:e}=t,r=y.useRef(null);return e==="a"?c.jsx(Cr,{ref:r,...t}):c.jsx(Po,{ref:r,...t})},_e=y.memo(Ka),Fa=(t,e)=>{const r=t[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((n,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+e)))})},qa=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...t}),To=y.memo(qa),Ua=Object.freeze(Object.defineProperty({__proto__:null,default:To},Symbol.toStringTag,{value:"Module"})),Va=t=>{const{icon:e,...r}=t,n=y.useMemo(()=>y.lazy(()=>Fa(Object.assign({"../icons/ArrowDown.tsx":()=>Promise.resolve().then(()=>vu),"../icons/ArrowLeft.tsx":()=>Promise.resolve().then(()=>$u),"../icons/ArrowRight.tsx":()=>Promise.resolve().then(()=>Pu),"../icons/Check.tsx":()=>Promise.resolve().then(()=>Cu),"../icons/ChevronLeft.tsx":()=>Promise.resolve().then(()=>Ru),"../icons/ChevronRight.tsx":()=>Promise.resolve().then(()=>Mu),"../icons/CloseBtn.tsx":()=>Promise.resolve().then(()=>_u),"../icons/Facebook.tsx":()=>Promise.resolve().then(()=>Du),"../icons/FacebookColored.tsx":()=>Promise.resolve().then(()=>Iu),"../icons/FacebookRounded.tsx":()=>Promise.resolve().then(()=>Lu),"../icons/Globe.tsx":()=>Promise.resolve().then(()=>Bu),"../icons/IconFallback.tsx":()=>Promise.resolve().then(()=>Ua),"../icons/Instagram.tsx":()=>Promise.resolve().then(()=>Fu),"../icons/InstagramColored.tsx":()=>Promise.resolve().then(()=>Uu),"../icons/Link.tsx":()=>Promise.resolve().then(()=>Hu),"../icons/LinkedIn.tsx":()=>Promise.resolve().then(()=>Wu),"../icons/Mail.tsx":()=>Promise.resolve().then(()=>Yu),"../icons/Plus.tsx":()=>Promise.resolve().then(()=>Qu),"../icons/Share.tsx":()=>Promise.resolve().then(()=>Zu),"../icons/Twitter.tsx":()=>Promise.resolve().then(()=>td),"../icons/TwitterColored.tsx":()=>Promise.resolve().then(()=>nd),"../icons/Upload.tsx":()=>Promise.resolve().then(()=>id),"../icons/X.tsx":()=>Promise.resolve().then(()=>ad),"../icons/YouTube.tsx":()=>Promise.resolve().then(()=>cd),"../icons/YouTubeColored.tsx":()=>Promise.resolve().then(()=>dd)}),`../icons/${e||"ArrowRight"}.tsx`)),[e]);return c.jsx(y.Suspense,{fallback:c.jsx(To,{className:"overflow-visible pointer-events-none"}),children:c.jsx(n,{...r,className:"overflow-visible pointer-events-none",...t})})},ce=t=>{const{icon:e,as:r="span",tokens:n,customTheme:o,themeName:i="icon",children:s,...a}=t,l=I(i,n,o);return typeof e!="string"?c.jsxs(r,{...a,className:l,children:[s,e]}):c.jsxs(r,{className:l,children:[s,c.jsx(Va,{icon:e,...a})]})},Ha=t=>{const{item:e,themeName:r,tokens:n,customTheme:o}=t,{props:i,rendered:s,key:a}=e,{icon:l,title:u,onOpenChange:d}=i??{},p=y.useRef(null),{state:f,TransitionAnimation:m=Ba}=$o(),{buttonProps:{onClick:P,onKeyDown:g,onPointerDown:b,...$},regionProps:M}=Aa(t,f,p),S=f.selectionManager.selectedKeys.has(a),v={...n,isOpen:S},j=E=>{E.continuePropagation(),f.selectionManager.select(e.key),f.toggleKey(e.key)};return Yi.useUpdateEffect(()=>{d==null||d(S)},[S]),c.jsxs(X,{themeName:`${r}.container`,tokens:v,customTheme:o,children:[c.jsx(L.FocusRing,{focusRingClass:"has-focus-ring",children:c.jsxs(we,{...$,handlePress:j,ref:p,themeName:`${r}.button`,tokens:v,children:[c.jsx(X,{themeName:`${r}.title`,tokens:v,children:u}),c.jsx(X,{themeName:`${r}.icon`,tokens:v,children:c.jsx(ce,{icon:l??"ArrowDown"})})]})}),c.jsx(m,{isVisible:S,themeName:`${r}.region`,...M,tokens:v,children:c.jsx(X,{themeName:`${r}.content`,tokens:v,children:c.jsx(L.FocusScope,{autoFocus:!0,children:s})})})]})};function Co(t){const{children:e,defaultSelectedKeys:r,selectionMode:n="single",selectedKeys:o,onSelectionChange:i,...s}=t,a=Array.isArray(e)?e:[e],l=r??a.reduce((d,p)=>{const{props:f,key:m}=p,{defaultOpen:P}=f??{};return!P||!m||d.push(m),d},[]);return Pt.useTreeState({children:e,selectionMode:n,defaultExpandedKeys:l,defaultSelectedKeys:l,expandedKeys:o,selectedKeys:o,onSelectionChange:i,...s})}const za=t=>{const{themeName:e="accordion",tokens:r,customTheme:n,TransitionAnimation:o}=t,i=y.useRef(null),s=Co(t),{accordionProps:a}=La(t,s,i);return c.jsx(wo,{state:s,TransitionAnimation:o,children:c.jsx(Ue,{themeName:`${e}.wrapper`,tokens:r,customTheme:n,ref:i,...a,children:[...s.collection].map(l=>c.jsx(Ha,{item:l,themeName:e,tokens:r},l.key))})})},So=t=>null;So.getCollectionNode=function*(e){const{children:r,childItems:n,title:o}=e,i=e.textValue||(typeof r=="string"?r:"")||e["aria-label"]||"";yield{type:"item",props:e,rendered:r,textValue:i,"aria-label":e["aria-label"],hasChildNodes:!1,*childNodes(){if(n)for(const s of n)yield{type:"item",value:s};else if(o){const s=[];y.Children.forEach(r,a=>{s.push({type:"item",element:a})}),yield*s}}}};const Wa=So,Ga=t=>{const{sharingLinksList:e,id:r,isOpen:n,setIsOpen:o,onShare:i,themeName:s="shareButton",tokens:a,customTheme:l}=t,u=I(`${s}.linksList`,{...a,isOpen:n},l),d=L.useFocusManager(),p=f=>{f.key==="Escape"&&o(!1);const{listDirection:m}=a??{};m==="row"&&(f.key==="ArrowRight"&&(d==null||d.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowLeft"&&(d==null||d.focusPrevious({wrap:!0}),f.preventDefault())),m==="column"&&(f.key==="ArrowDown"&&(d==null||d.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowUp"&&(d==null||d.focusPrevious({wrap:!0}),f.preventDefault()))};return c.jsx("div",{className:u,id:r,role:"listbox",tabIndex:-1,onKeyDown:p,children:e==null?void 0:e.map(f=>{const{ariaLabel:m,onClick:P,href:g,icon:b,key:$}=f;return c.jsx(_e,{themeName:`${s}.link`,tokens:{...a,isOpen:n},handlePress:()=>{i==null||i($),P==null||P($)},"aria-label":m,...g?{href:g,rel:"noopener noreferrer",target:"_blank",as:"a"}:{},role:"option",children:c.jsx(ce,{themeName:`${s}.linkIcons`,icon:b})},$)})})},Ya=t=>{const{ariaLabel:e,icon:r,id:n,sharingLinksList:o,onShare:i,customTheme:s,themeName:a="shareButton",tokens:l,...u}=t,[d,p]=y.useState(!1),f=I(`${a}.container`,l,s),m=g=>{p(!d),!d&&setTimeout(()=>{var $,M;const b=(M=($=g.target.parentElement)==null?void 0:$.lastChild)==null?void 0:M.firstChild;b==null||b.focus()})},P=g=>{const b=g.currentTarget.firstChild,$=g.currentTarget.lastChild,M=$.firstChild,S=$.lastChild,{listDirection:v}=l??{};v==="row"&&(g.key==="ArrowRight"&&g.target===b&&(M==null||M.focus(),g.preventDefault()),g.key==="ArrowLeft"&&g.target===b&&(S.focus(),g.preventDefault())),v==="column"&&(g.key==="ArrowDown"&&g.target===b&&(M==null||M.focus(),g.preventDefault()),g.key==="ArrowUp"&&g.target===b&&(S.focus(),g.preventDefault())),g.key==="Escape"&&(p(!1),b==null||b.focus()),document.activeElement===$&&(b==null||b.focus())};return c.jsx(L.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:d,children:c.jsxs("div",{className:f,onKeyDown:P,children:[c.jsx(we,{themeName:`${a}.button`,tokens:{...l,isOpen:d},"aria-label":e,"aria-haspopup":"listbox","aria-expanded":d?"true":"false","aria-controls":"share-buttons",handlePress:m,...u,children:c.jsx(ce,{themeName:`${a}.icon`,icon:r??"Share"})}),d&&c.jsx(Ga,{id:n,sharingLinksList:o,onShare:i,isOpen:d,setIsOpen:p,themeName:a,customTheme:s,tokens:l})]})})},Ro=(t,e,r)=>{const n=Qi.useOverlayTriggerState({defaultOpen:t,onOpenChange:d=>e==null?void 0:e(d)}),o=y.useRef(null),i=y.useRef(null);y.useEffect(()=>{if(t){n.open();return}n.close()},[t]);const s=()=>{n.open()},a=()=>{n.close(),r==null||r()},{buttonProps:l}=L.useButton({elementType:"div",onPress:s},o),{buttonProps:u}=L.useButton({onPress:a},i);return{state:n,openButtonProps:l,closeButtonProps:u,handleOpen:s,handleClose:a,openButtonRef:o,closeButtonRef:i}},[Sr,Ja]=vo();function Eo({children:t,defaultSelectedKey:e,onOpenCallback:r,onCloseCallback:n,defaultIsOpen:o=!1}){const{state:i,closeButtonProps:s,closeButtonRef:a,openButtonProps:l,openButtonRef:u}=Ro(o,r,n),d=y.useMemo(()=>({defaultSelectedKey:e,overlayState:i,buttonProps:{closeButtonProps:s,closeButtonRef:a,openButtonProps:l,openButtonRef:u}}),[i,e,s,l]);return c.jsx(Ja,{value:d,children:t})}const Mo=({isVisible:t,children:e})=>oe.useTransition(t,{from:{opacity:0,translateX:"100%"},enter:{opacity:1,translateX:"0%"},leave:{opacity:0,translateX:"25%"}})((n,o)=>o&&c.jsx(oe.animated.div,{style:n,children:e})),Qa="fixed",Xa=({isVisible:t,children:e})=>oe.useTransition(t,{from:{opacity:0,position:Qa,left:0,top:0,zIndex:1e3,bottom:0,height:"100%",width:"100%"},enter:{opacity:1},leave:{opacity:0},config:oe.config.stiff})((n,o)=>o&&c.jsx(oe.animated.div,{style:n,children:e})),Za="fixed",el=({isVisible:t,children:e})=>oe.useTransition(t,{from:{opacity:0,scale:.75,position:Za,left:0,top:0,zIndex:1e3,bottom:0,height:"100%",width:"100%"},enter:{opacity:1,scale:1},leave:{opacity:0,scale:.75},config:oe.config.stiff})((n,o)=>o&&c.jsx(oe.animated.div,{style:n,children:e})),tl=t=>{const{children:e}=t,r=y.useRef(null),{overlayProps:n,underlayProps:o}=L.useOverlay(t,r),{modalProps:i}=L.useModal(),{dialogProps:s}=L.useDialog(t,r);return c.jsx("div",{...o,children:c.jsx(L.FocusRing,{focusRingClass:"has-focus-ring",within:!0,autoFocus:!0,children:c.jsx(L.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:c.jsx("div",{...n,...s,...i,ref:r,children:e})})})})},Rr=t=>{const[e,r]=y.useState(!1),{children:n,state:o,onCloseCallBack:i,transitionComponent:s=el}=t,a=y.useCallback(()=>{o.close(),i==null||i()},[o.close,i]);return y.useEffect(()=>{!o.isOpen&&e||r(!0)},[o.isOpen]),e?c.jsx(Le.OverlayContainer,{children:c.jsx(s,{isVisible:o.isOpen,children:c.jsx(tl,{isOpen:o.isOpen,onClose:a,isDismissable:!0,children:n})})}):null},rl=t=>{const{children:e,closeBtnRender:r,themeName:n="sidePanel",tokens:o,TransitionAnimation:i=Mo,PanelTransition:s=Xa,customTheme:a,onCloseCallBack:l}=t,u=I(`${n}.wrapper`,o,a),d=I(`${n}.container`,o,a),p=I(`${n}.innerContainer`,o,a),{overlayState:f}=Sr();return c.jsx(Rr,{onCloseCallBack:l,state:f,transitionComponent:s,children:c.jsxs(Ji,{className:u,children:[r&&r(),c.jsx(i,{isVisible:f.isOpen,children:c.jsx("div",{className:d,children:c.jsx("div",{className:p,children:e})})})]})})},jo=y.memo(rl),nl=t=>{const{children:e,thumbnailContent:r,isOpen:n,onOpenCallBack:o,onCloseCallBack:i,label:s,themeName:a="lightBox",tokens:l,customTheme:u}=t,{state:d,openButtonRef:p,openButtonProps:f,closeButtonProps:m,closeButtonRef:P}=Ro(n,o,i),g=I(`${a}.container`,l,u);return c.jsxs("div",{children:[c.jsx(ae.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:c.jsxs(we,{ref:p,themeName:`${a}.wrapper`,...f,...n?{tabIndex:-1}:{},children:[s&&c.jsx(Z,{themeName:`${a}.label`,tokens:{size:"footnotes"},children:s}),r]})}),c.jsx(Rr,{onCloseCallBack:i,state:d,children:c.jsxs("div",{children:[c.jsx(we,{themeName:`${a}.closeBtn`,type:"button",...m,ref:P,children:c.jsx(ce,{icon:"CloseBtn"})}),c.jsx("div",{className:g,children:e})]})})]})},ol=y.forwardRef((t,e)=>{const{isOpen:r,onClose:n,children:o,positionProps:i,themeName:s="popover",tokens:a,customTheme:l,isDismissable:u,shouldCloseOnBlur:d,...p}=t,{overlayProps:f}=L.useOverlay({isDismissable:u,shouldCloseOnBlur:d,isOpen:r,onClose:n},e),{modalProps:m}=L.useModal(),{dialogProps:P}=L.useDialog({},e),g=I(`${s}.popover`,a,l);return c.jsx(L.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:c.jsxs(Ue,{customTheme:g,...L.mergeProps(f,m,P),ref:e,...i,...p,children:[y.Children.map(o,b=>c.jsx(L.FocusRing,{focusRingClass:"has-focus-ring",children:b})),c.jsx(L.DismissButton,{onDismiss:n})]})})});function il(t){const{children:e,buttonProps:r,placement:n="right",offset:o=5,themeName:i="popover",tokens:s,customTheme:a,...l}=t,u=Pt.useOverlayTriggerState({}),d=y.useRef(null),p=y.useRef(null),{triggerProps:f,overlayProps:m}=L.useOverlayTrigger({type:"dialog"},u,d),{overlayProps:P}=L.useOverlayPosition({targetRef:d,overlayRef:p,placement:n,offset:o,isOpen:u.isOpen}),{onPress:g,...b}=f;return c.jsxs(c.Fragment,{children:[c.jsx(we,{themeName:`${i}.button`,handlePress:g,...r,...b,ref:d}),u.isOpen&&c.jsx(L.OverlayContainer,{children:c.jsx(ol,{themeName:i,tokens:s,customTheme:a,...m,...l,positionProps:P,ref:p,isOpen:u.isOpen,onClose:u.close,children:e})})]})}const sl=({content:t,themeName:e="wysiwyg",...r})=>c.jsx(Z,{...r,themeName:e,dangerouslySetInnerHTML:{__html:Xi.sanitize(t,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling"]})}}),al=t=>{const{as:e="time",date:r,tokens:n,customTheme:o,dateFormatterOptions:i={month:"long",day:"numeric",year:"numeric"},themeName:s="typography",...a}=t,l=L.useIsSSR(),u=new Date(r),p=De.useDateFormatter(i).format(u),f=I(s,n,o);return l||Tt.isEmpty(p)?null:c.jsx(e,{...a,dateTime:u.toISOString(),className:f,children:p})},ll=({item:t,state:e,themeName:r="li"})=>{const n=y.useRef(null),{optionProps:o,isFocusVisible:i}=L.useOption({key:t.key},e,n),s=I(r);return c.jsx(uo,{as:"li",...o,tokens:{className:`${s} ${i?"has-focus-ring":""}`},ref:n,children:t.rendered})},cl=t=>{const e=y.useRef(null),{listBoxRef:r=e,state:n,themeName:o="option"}=t,{listBoxProps:i}=L.useListBox(t,n,r);return c.jsx(L.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:c.jsx(uo,{...i,ref:r,as:"ul",themeName:`${o}.ul`,children:[...n.collection].map(s=>c.jsx(ll,{themeName:`${o}.li`,item:s,state:n},s.key))})})},ul=t=>{const e=y.useRef(null),{popoverRef:r=e,state:n,children:o,themeName:i="popover",tokens:s,customTheme:a,triggerRef:l,...u}=t,{popoverProps:d,underlayProps:p}=L.usePopover({...t,popoverRef:r,triggerRef:l},n);return c.jsxs(L.Overlay,{children:[c.jsx("div",{...p,style:{position:"fixed",inset:0}}),c.jsx(X,{...u,children:c.jsxs(Ue,{...d,ref:r,themeName:i,tokens:s,children:[c.jsx(L.DismissButton,{onDismiss:n.close}),o,c.jsx(L.DismissButton,{onDismiss:n.close})]})})]})},_o=t=>{var T;const{name:e,placeholderLabel:r,disabled:n,hookFormRef:o,isError:i=!1,errorMessage:s,themeName:a="select",tokens:l,customTheme:u,label:d,onSelectionChange:p,defaultValue:f,value:m,icon:P,popoverMatchesWidth:g,...b}=t,$=y.useRef(null),M=Pt.useSelectState({...b,selectedKey:m,defaultSelectedKey:f,onSelectionChange:p}),{triggerProps:S,menuProps:v,labelProps:j}=L.useSelect({...b},M,$),E=I(`${a}.wrapper`,l,u),D=I(`${a}.container`,l,u),{onPress:h,onPressStart:R,...w}=S;return c.jsxs("div",{className:E,children:[d&&c.jsx(Z,{...j,as:"label",themeName:`${a}.label`,children:d}),c.jsx(L.HiddenSelect,{...o,state:M,triggerRef:$,name:e,isDisabled:!0}),c.jsxs("div",{className:D,children:[c.jsxs(we,{...w,handlePress:A=>{h==null||h(A),R==null||R(A)},ref:$,disabled:n,themeName:`${a}.button`,tokens:{...l,intent:i?"error":"default"},children:[M.selectedItem?M.selectedItem.rendered:r,c.jsx(ce,{icon:P??"ArrowDown"})]}),M.isOpen&&$.current&&c.jsx(ul,{tokens:l,state:M,triggerRef:$,placement:"bottom",themeName:`${a}.popover`,style:{[`--${a}-container-width`]:`${(T=$.current)==null?void 0:T.offsetWidth}px`},children:c.jsx(cl,{...v,themeName:a,state:M})}),i&&c.jsx(Z,{tokens:{...l,isError:i},themeName:`${a}.errorMessage`,children:s})]})]})},dl=t=>{const{name:e,required:r,children:n}=t,{register:o,formState:i}=ye.useFormContext(),s=ye.get(i.errors,e),a=(s==null?void 0:s.message)??void 0,{ref:l}=o(e,{required:r?"This is an error message":!1});return c.jsx(_o,{...t,isError:!Tt.isEmpty(a),errorMessage:a,hookFormRef:l,children:n})},fl=t=>{const{id:e,label:r,isDisabled:n=!1,isError:o=!1,errorMessage:i,ariaLabel:s,icon:a,themeName:l="checkbox",tokens:u,customTheme:d}=t,p=ts.useToggleState(t),f=y.useRef(null),{inputProps:m}=Zi.useCheckbox(t,p,f),{isSelected:P}=p,{focusProps:g,isFocusVisible:b}=ae.useFocusRing(),$={...u,selected:P,isDisabled:n,isError:o,isFocusVisible:b},M=I(`${l}.container`,$,d),S=I(`${l}.checkBox`,$,d),v=I(`${l}.checkMark`,$,d),j=I(`${l}.checkMarkIcon`,$,d);return c.jsxs("div",{children:[c.jsx(ae.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:c.jsxs("label",{className:M,htmlFor:e,"aria-label":s,"aria-disabled":n,children:[c.jsx(es.VisuallyHidden,{children:c.jsx("input",{type:"checkbox",ref:f,"aria-labelledby":e,...m,...g})}),c.jsx("div",{className:S,"aria-checked":P,role:"checkbox","aria-labelledby":e,children:c.jsx("div",{className:v,children:a&&c.jsx(ce,{icon:a,customTheme:j})})}),c.jsx(Z,{themeName:`${l}.label`,tokens:$,children:r})]})}),o&&i&&c.jsx(Z,{themeName:`${l}.errorMessage`,tokens:$,children:i})]})},Er={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},ko={...Er,customError:!0,valid:!1},Ae={isInvalid:!1,validationDetails:Er,validationErrors:[]},hl=y.createContext({}),Jr="__formValidationState"+Date.now();function Do(t){if(t[Jr]){let{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=t[Jr];return{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return pl(t)}function pl(t){let{isInvalid:e,validationState:r,name:n,value:o,builtinValidation:i,validate:s,validationBehavior:a="aria"}=t;r&&(e||(e=r==="invalid"));let l=e?{isInvalid:!0,validationErrors:[],validationDetails:ko}:null,u=y.useMemo(()=>Qr(ml(s,o)),[s,o]);i!=null&&i.validationDetails.valid&&(i=null);let d=y.useContext(hl),p=y.useMemo(()=>n?Array.isArray(n)?n.flatMap(w=>dr(d[w])):dr(d[n]):[],[d,n]),[f,m]=y.useState(d),[P,g]=y.useState(!1);d!==f&&(m(d),g(!1));let b=y.useMemo(()=>Qr(P?[]:p),[P,p]),$=y.useRef(Ae),[M,S]=y.useState(Ae),v=y.useRef(Ae),j=()=>{if(!E)return;D(!1);let w=u||i||$.current;Dt(w,v.current)||(v.current=w,S(w))},[E,D]=y.useState(!1);return y.useEffect(j),{realtimeValidation:l||b||u||i||Ae,displayValidation:a==="native"?l||b||M:l||b||u||i||M,updateValidation(w){a==="aria"&&!Dt(M,w)?S(w):$.current=w},resetValidation(){let w=Ae;Dt(w,v.current)||(v.current=w,S(w)),a==="native"&&D(!1),g(!0)},commitValidation(){a==="native"&&D(!0),g(!0)}}}function dr(t){return t?Array.isArray(t)?t:[t]:[]}function ml(t,e){if(typeof t=="function"){let r=t(e);if(r&&typeof r!="boolean")return dr(r)}return[]}function Qr(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:ko}:null}function Dt(t,e){return t===e?!0:t&&e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((r,n)=>r===e.validationErrors[n])&&Object.entries(t.validationDetails).every(([r,n])=>e.validationDetails[r]===n)}function gl(...t){let e=new Set,r=!1,n={...Er};for(let s of t){var o,i;for(let a of s.validationErrors)e.add(a);r||(r=s.isInvalid);for(let a in n)(o=n)[i=a]||(o[i]=s.validationDetails[a])}return n.valid=!r,{isInvalid:r,validationErrors:[...e],validationDetails:n}}function Oo(t,e,r){let[n,o]=y.useState(t||e),i=y.useRef(t!==void 0),s=t!==void 0;y.useEffect(()=>{let u=i.current;u!==s&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let a=s?t:n,l=y.useCallback((u,...d)=>{let p=(f,...m)=>{r&&(Object.is(a,f)||r(f,...m)),s||(a=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((m,...P)=>{let g=u(s?a:m,...P);return p(g,...d),s?m:g})):(s||o(u),p(u,...d))},[s,a,r]);return[a,l]}function bl(t={}){let[e,r]=Oo(t.value,t.defaultValue||[],t.onChange),n=!!t.isRequired&&e.length===0,o=y.useRef(new Map),i=Do({...t,value:e}),s=i.displayValidation.isInvalid;var a;return{...i,value:e,setValue(u){t.isReadOnly||t.isDisabled||r(u)},isDisabled:t.isDisabled||!1,isReadOnly:t.isReadOnly||!1,isSelected(u){return e.includes(u)},addValue(u){t.isReadOnly||t.isDisabled||e.includes(u)||r(e.concat(u))},removeValue(u){t.isReadOnly||t.isDisabled||e.includes(u)&&r(e.filter(d=>d!==u))},toggleValue(u){t.isReadOnly||t.isDisabled||(e.includes(u)?r(e.filter(d=>d!==u)):r(e.concat(u)))},setInvalid(u,d){let p=new Map(o.current);d.isInvalid?p.set(u,d):p.delete(u),o.current=p,i.updateValidation(gl(...p.values()))},validationState:(a=t.validationState)!==null&&a!==void 0?a:s?"invalid":null,isInvalid:s,isRequired:n}}const Io=y.createContext(null),yl=t=>{const{children:e,state:r}=t;return c.jsx(Io.Provider,{value:r,children:e})};function vl(){const t=y.useContext(Io);return t||null}const xl=t=>{const{label:e,isError:r=!1,errorMessage:n,isDisabled:o=!1,children:i,themeName:s="checkboxGroup",tokens:a}=t,l=bl(t),{groupProps:u,labelProps:d,errorMessageProps:p}=L.useCheckboxGroup(t,l),f={...a,isDisabled:o};return c.jsxs(X,{...u,"aria-disabled":o,themeName:`${s}.checkboxGroup`,tokens:f,children:[e&&c.jsx(Z,{...d,tokens:{size:"h6"},children:e}),c.jsx(X,{themeName:`${s}.checkboxGroupItemsGroup`,children:c.jsx(yl,{state:l,children:i})}),r&&n&&c.jsx(Z,{...p,tokens:{isError:!0},children:n})]})},$l=t=>{const{id:e,ariaLabel:r,icon:n,state:o,themeName:i="checkbox",customTheme:s,tokens:a,isDisabled:l=!1,isError:u=!1,value:d,errorMessage:p,label:f}=t,m=y.useRef(null),{inputProps:P}=L.useCheckboxGroupItem(t,o,m),{isSelected:g}=o,b={...a,selected:g(d),isDisabled:l,isError:u},$=I(`${i}.container`,b,s),M=I(`${i}.checkBox`,b,s),S=I(`${i}.checkMark`,b,s),v=I(`${i}.checkMarkIcon`,b,s);return c.jsxs("div",{children:[c.jsx(L.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:c.jsxs("label",{className:$,htmlFor:e,"aria-label":r,"aria-disabled":l,children:[c.jsx(L.VisuallyHidden,{children:c.jsx("input",{ref:m,...P})}),c.jsx("div",{className:M,"aria-checked":g(d),role:"checkbox","aria-labelledby":e,children:c.jsx("div",{className:S,children:n&&c.jsx(ce,{icon:n,customTheme:v})})}),c.jsx(Z,{themeName:`${i}.label`,tokens:b,children:f})]})}),u&&p&&c.jsx(Z,{themeName:`${i}.errorMessage`,tokens:b,children:p})]})},wl=t=>{const e=vl();return e&&c.jsx($l,{state:e,...t})},Ao=t=>{const{id:e,label:r,name:n,placeholder:o,required:i,disabled:s=!1,errorMessage:a,ariaLabel:l,value:u,onBlur:d,onChange:p,fieldRef:f,themeName:m="textarea",tokens:P,customTheme:g}=t,b=y.useRef(null),{errorMessageProps:$,inputProps:M,labelProps:S}=L.useTextField(t,b),v={...P,isDisabled:s,isError:a!=null},j=I(`${m}.wrapper`,v,g),E=I(`${m}.input`,v,g),D=I(`${m}.label`,v,g),h=I(`${m}.container`,v,g);return c.jsxs("div",{children:[c.jsxs("div",{className:j,"aria-disabled":s,children:[r&&c.jsx("label",{className:D,...S,children:r}),c.jsx("div",{className:h,children:c.jsx(ae.FocusRing,{focusRingClass:"has-focus-ring",children:c.jsx("textarea",{...M,ref:R=>{f==null||f(R),b.current=R},className:E,placeholder:o,disabled:s,required:i,id:e,name:n,"aria-label":l,"aria-labelledby":e,value:u,onBlur:d,onChange:p})})})]}),a&&c.jsx(Z,{themeName:`${m}.errorMessage`,tokens:v,...$,children:a})]})},Pl=t=>{const{name:e,required:r,minLength:n=0,maxLength:o=99999999,validation:i}=t,{register:s,formState:a}=ye.useFormContext(),l=ye.get(a.errors,e),u=(l==null?void 0:l.message)??void 0,{t:d}=yr.useTranslation("components"),{ref:p,...f}=s(e,{required:r?d("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:n,message:d("FORM.ERROR.MIN_LENGTH",{length:n})},maxLength:{value:o,message:d("FORM.ERROR.MAX_LENGTH",{length:n})},...i});return c.jsx(Ao,{fieldRef:p,...f,...t,isError:!no.isEmpty(u),errorMessage:u})},Lo=t=>{const{id:e,label:r,required:n,disabled:o=!1,errorMessage:i,ariaLabel:s,value:a,onBlur:l,onChange:u,fieldRef:d,type:p="text",children:f,themeName:m="textInput",tokens:P,customTheme:g}=t,b=y.useRef(null),{errorMessageProps:$,inputProps:M,labelProps:S}=L.useTextField(t,b),v={...P,isDisabled:o,isError:i!=null},j=I(`${m}.wrapper`,v,g),E=I(`${m}.label`,v,g),D=I(`${m}.input`,v,g),h=I(`${m}.container`,v,g);return c.jsxs("div",{children:[c.jsx(ae.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:c.jsxs("div",{"aria-disabled":o,className:j,children:[r&&c.jsx("label",{className:E,...S,children:r}),c.jsxs("div",{className:h,children:[f,c.jsx("input",{...M,className:D,disabled:o,required:n,ref:R=>{d==null||d(R),b.current=R},"aria-label":s,"aria-labelledby":e,value:a,onBlur:l,onChange:u,type:p})]})]})}),i&&c.jsx(Z,{themeName:`${m}.errorMessage`,tokens:v,...$,children:i})]})},Tl=t=>{const{name:e,required:r,minLength:n=0,maxLength:o=99999999,validation:i}=t,{register:s,formState:a}=ye.useFormContext(),l=ye.get(a.errors,e),u=(l==null?void 0:l.message)??void 0,{t:d}=yr.useTranslation("components"),{ref:p,...f}=s(e,{required:r?d("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:n,message:d("FORM.ERROR.MIN_LENGTH",{length:n})},maxLength:{value:o,message:d("FORM.ERROR.MAX_LENGTH",{length:n})},...i});return c.jsx(Lo,{fieldRef:p,...f,...t,isError:!Tt.isEmpty(u),errorMessage:u})};function he(t,e){return t-e*Math.floor(t/e)}const No=1721426;function xe(t,e,r,n){e=Ve(t,e);let o=e-1,i=-2;return r<=2?i=0:ge(e)&&(i=-1),No-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*r-362)/12+i+n)}function ge(t){return t%4===0&&(t%100!==0||t%400===0)}function Ve(t,e){return t==="BC"?1-e:e}function Ct(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}const Cl={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class pe{fromJulianDay(e){let r=e,n=r-No,o=Math.floor(n/146097),i=he(n,146097),s=Math.floor(i/36524),a=he(i,36524),l=Math.floor(a/1461),u=he(a,1461),d=Math.floor(u/365),p=o*400+s*100+l*4+d+(s!==4&&d!==4?1:0),[f,m]=Ct(p),P=r-xe(f,m,1,1),g=2;r<xe(f,m,3,1)?g=0:ge(m)&&(g=1);let b=Math.floor(((P+g)*12+373)/367),$=r-xe(f,m,b,1)+1;return new J(f,m,b,$)}toJulianDay(e){return xe(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return Cl[ge(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return ge(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return e.era==="BC"}balanceDate(e){e.year<=0&&(e.era=e.era==="BC"?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const Sl={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Xr(t,e){return e=St(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function Bo(t,e){let r=t.calendar.toJulianDay(t),n=Math.ceil(r+1-jl(e))%7;return n<0&&(n+=7),n}function Ko(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function Rl(t,e){return Zr(t)-Zr(e)}function Zr(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}let Ot=null;function Fo(){return Ot==null&&(Ot=new Intl.DateTimeFormat().resolvedOptions().timeZone),Ot}function El(t){return t.subtract({days:t.day-1})}const en=new Map;function Ml(t){if(Intl.Locale){let r=en.get(t);return r||(r=new Intl.Locale(t).maximize().region,r&&en.set(t,r)),r}let e=t.split("-")[1];return e==="u"?void 0:e}function jl(t){let e=Ml(t);return e&&Sl[e]||0}function _l(t,e){let r=t.calendar.getDaysInMonth(t);return Math.ceil((Bo(El(t),e)+r)/7)}function tn(t){t=St(t,new pe);let e=Ve(t.era,t.year);return qo(e,t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function qo(t,e,r,n,o,i,s){let a=new Date;return a.setUTCHours(n,o,i,s),a.setUTCFullYear(t,e-1,r),a.getTime()}function rn(t,e){if(e==="UTC")return 0;if(t>0&&e===Fo())return new Date(t).getTimezoneOffset()*-6e4;let{year:r,month:n,day:o,hour:i,minute:s,second:a}=Uo(t,e);return qo(r,n,o,i,s,a,0)-Math.floor(t/1e3)*1e3}const nn=new Map;function Uo(t,e){let r=nn.get(e);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),nn.set(e,r));let n=r.formatToParts(new Date(t)),o={};for(let i of n)i.type!=="literal"&&(o[i.type]=i.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const on=864e5;function kl(t,e,r,n){return(r===n?[r]:[r,n]).filter(i=>Dl(t,e,i))}function Dl(t,e,r){let n=Uo(r,e);return t.year===n.year&&t.month===n.month&&t.day===n.day&&t.hour===n.hour&&t.minute===n.minute&&t.second===n.second}function Ol(t,e,r="compatible"){let n=Ho(t);if(e==="UTC")return tn(n);if(e===Fo()&&r==="compatible"){n=St(n,new pe);let l=new Date,u=Ve(n.era,n.year);return l.setFullYear(u,n.month-1,n.day),l.setHours(n.hour,n.minute,n.second,n.millisecond),l.getTime()}let o=tn(n),i=rn(o-on,e),s=rn(o+on,e),a=kl(n,e,o-i,o-s);if(a.length===1)return a[0];if(a.length>1)switch(r){case"compatible":case"earlier":return a[0];case"later":return a[a.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(o-i,o-s);case"compatible":case"later":return Math.max(o-i,o-s);case"reject":throw new RangeError("No such absolute time found")}}function Vo(t,e,r="compatible"){return new Date(Ol(t,e,r))}function Ho(t,e){let r=0,n=0,o=0,i=0;if("timeZone"in t)({hour:r,minute:n,second:o,millisecond:i}=t);else if("hour"in t&&!e)return t;return e&&({hour:r,minute:n,second:o,millisecond:i}=e),new yt(t.calendar,t.era,t.year,t.month,t.day,r,n,o,i)}function St(t,e){if(t.calendar.identifier===e.identifier)return t;let r=e.fromJulianDay(t.calendar.toJulianDay(t)),n=t.copy();return n.calendar=e,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,ke(n),n}function Mr(t,e){let r=t.copy(),n="hour"in r?Kl(r,e):0;fr(r,e.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,t),r.month+=e.months||0,hr(r),zo(r),r.day+=(e.weeks||0)*7,r.day+=e.days||0,r.day+=n,Il(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let o=r.calendar.getYearsInEra(r);if(r.year>o){var i,s;let l=(i=(s=r.calendar).isInverseEra)===null||i===void 0?void 0:i.call(s,r);r.year=o,r.month=l?1:r.calendar.getMonthsInYear(r),r.day=l?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let a=r.calendar.getMonthsInYear(r);return r.month>a&&(r.month=a,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function fr(t,e){var r,n;!((r=(n=t.calendar).isInverseEra)===null||r===void 0)&&r.call(n,t)&&(e=-e),t.year+=e}function hr(t){for(;t.month<1;)fr(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,fr(t,1)}function Il(t){for(;t.day<1;)t.month--,hr(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,hr(t)}function zo(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function ke(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),zo(t)}function Al(t){let e={};for(let r in t)typeof t[r]=="number"&&(e[r]=-t[r]);return e}function Wo(t,e){return Mr(t,Al(e))}function Go(t,e){let r=t.copy();return e.era!=null&&(r.era=e.era),e.year!=null&&(r.year=e.year),e.month!=null&&(r.month=e.month),e.day!=null&&(r.day=e.day),ke(r),r}function Ll(t,e){let r=t.copy();return e.hour!=null&&(r.hour=e.hour),e.minute!=null&&(r.minute=e.minute),e.second!=null&&(r.second=e.second),e.millisecond!=null&&(r.millisecond=e.millisecond),Bl(r),r}function Nl(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=Xe(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=Xe(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=Xe(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=Xe(t.hour,24),e}function Bl(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function Xe(t,e){let r=t%e;return r<0&&(r+=e),r}function Kl(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,Nl(t)}function Yo(t,e,r,n){let o=t.copy();switch(e){case"era":{let a=t.calendar.getEras(),l=a.indexOf(t.era);if(l<0)throw new Error("Invalid era: "+t.era);l=be(l,r,0,a.length-1,n==null?void 0:n.round),o.era=a[l],ke(o);break}case"year":var i,s;!((i=(s=o.calendar).isInverseEra)===null||i===void 0)&&i.call(s,o)&&(r=-r),o.year=be(t.year,r,-1/0,9999,n==null?void 0:n.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,t);break;case"month":o.month=be(t.month,r,1,t.calendar.getMonthsInYear(t),n==null?void 0:n.round);break;case"day":o.day=be(t.day,r,1,t.calendar.getDaysInMonth(t),n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(o),ke(o),o}function Fl(t,e,r,n){let o=t.copy();switch(e){case"hour":{let i=t.hour,s=0,a=23;if((n==null?void 0:n.hourCycle)===12){let l=i>=12;s=l?12:0,a=l?23:11}o.hour=be(i,r,s,a,n==null?void 0:n.round);break}case"minute":o.minute=be(t.minute,r,0,59,n==null?void 0:n.round);break;case"second":o.second=be(t.second,r,0,59,n==null?void 0:n.round);break;case"millisecond":o.millisecond=be(t.millisecond,r,0,999,n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return o}function be(t,e,r,n,o=!1){if(o){t+=Math.sign(e),t<r&&(t=n);let i=Math.abs(e);e>0?t=Math.ceil(t/i)*i:t=Math.floor(t/i)*i,t>n&&(t=r)}else t+=e,t<r?t=n-(r-t-1):t>n&&(t=r+(t-n-1));return t}function ql(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function Jo(t){let e=St(t,new pe);return`${String(e.year).padStart(4,"0")}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function Ul(t){return`${Jo(t)}T${ql(t)}`}function Qo(t){let e=typeof t[0]=="object"?t.shift():new pe,r;if(typeof t[0]=="string")r=t.shift();else{let s=e.getEras();r=s[s.length-1]}let n=t.shift(),o=t.shift(),i=t.shift();return[e,r,n,o,i]}var Vl=new WeakMap;class J{copy(){return this.era?new J(this.calendar,this.era,this.year,this.month,this.day):new J(this.calendar,this.year,this.month,this.day)}add(e){return Mr(this,e)}subtract(e){return Wo(this,e)}set(e){return Go(this,e)}cycle(e,r,n){return Yo(this,e,r,n)}toDate(e){return Vo(this,e)}toString(){return Jo(this)}compare(e){return Ko(this,e)}constructor(...e){$r(this,Vl,{writable:!0,value:void 0});let[r,n,o,i,s]=Qo(e);this.calendar=r,this.era=n,this.year=o,this.month=i,this.day=s,ke(this)}}var Hl=new WeakMap;class yt{copy(){return this.era?new yt(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new yt(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Mr(this,e)}subtract(e){return Wo(this,e)}set(e){return Go(Ll(this,e),e)}cycle(e,r,n){switch(e){case"era":case"year":case"month":case"day":return Yo(this,e,r,n);default:return Fl(this,e,r,n)}}toDate(e,r){return Vo(this,e,r)}toString(){return Ul(this)}compare(e){let r=Ko(this,e);return r===0?Rl(this,Ho(e)):r}constructor(...e){$r(this,Hl,{writable:!0,value:void 0});let[r,n,o,i,s]=Qo(e);this.calendar=r,this.era=n,this.year=o,this.month=i,this.day=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,ke(this)}}const Me=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],zl=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],pt=[1867,1911,1925,1988,2018],me=["meiji","taisho","showa","heisei","reiwa"];function sn(t){const e=Me.findIndex(([r,n,o])=>t.year<r||t.year===r&&t.month<n||t.year===r&&t.month===n&&t.day<o);return e===-1?Me.length-1:e===0?0:e-1}function It(t){let e=pt[me.indexOf(t.era)];if(!e)throw new Error("Unknown era: "+t.era);return new J(t.year+e,t.month,t.day)}class Wl extends pe{fromJulianDay(e){let r=super.fromJulianDay(e),n=sn(r);return new J(this,me[n],r.year-pt[n],r.month,r.day)}toJulianDay(e){return super.toJulianDay(It(e))}balanceDate(e){let r=It(e),n=sn(r);me[n]!==e.era&&(e.era=me[n],e.year=r.year-pt[n]),this.constrainDate(e)}constrainDate(e){let r=me.indexOf(e.era),n=zl[r];if(n!=null){let[o,i,s]=n,a=o-pt[r];e.year=Math.max(1,Math.min(a,e.year)),e.year===a&&(e.month=Math.min(i,e.month),e.month===i&&(e.day=Math.min(s,e.day)))}if(e.year===1&&r>=0){let[,o,i]=Me[r];e.month=Math.max(o,e.month),e.month===o&&(e.day=Math.max(i,e.day))}}getEras(){return me}getYearsInEra(e){let r=me.indexOf(e.era),n=Me[r],o=Me[r+1];if(o==null)return 9999-n[0]+1;let i=o[0]-n[0];return(e.month<o[1]||e.month===o[1]&&e.day<o[2])&&i++,i}getDaysInMonth(e){return super.getDaysInMonth(It(e))}getMinimumMonthInYear(e){let r=an(e);return r?r[1]:1}getMinimumDayInMonth(e){let r=an(e);return r&&e.month===r[1]?r[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function an(t){if(t.year===1){let e=me.indexOf(t.era);return Me[e]}}const Xo=-543;class Gl extends pe{fromJulianDay(e){let r=super.fromJulianDay(e),n=Ve(r.era,r.year);return new J(this,n-Xo,r.month,r.day)}toJulianDay(e){return super.toJulianDay(ln(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(ln(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function ln(t){let[e,r]=Ct(t.year+Xo);return new J(e,r,t.month,t.day)}const vt=1911;function Zo(t){return t.era==="minguo"?t.year+vt:1-t.year+vt}function cn(t){let e=t-vt;return e>0?["minguo",e]:["before_minguo",1-e]}class Yl extends pe{fromJulianDay(e){let r=super.fromJulianDay(e),n=Ve(r.era,r.year),[o,i]=cn(n);return new J(this,o,i,r.month,r.day)}toJulianDay(e){return super.toJulianDay(un(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[r,n]=cn(Zo(e));e.era=r,e.year=n}isInverseEra(e){return e.era==="before_minguo"}getDaysInMonth(e){return super.getDaysInMonth(un(e))}getYearsInEra(e){return e.era==="before_minguo"?9999:9999-vt}constructor(...e){super(...e),this.identifier="roc"}}function un(t){let[e,r]=Ct(Zo(t));return new J(e,r,t.month,t.day)}const Jl=1948321;function Ql(t){let e=t>0?t-474:t-473,r=he(e,2820)+474;return he((r+38)*31,128)<31}function Ze(t,e,r){let n=t>0?t-474:t-473,o=he(n,2820)+474,i=e<=7?31*(e-1):30*(e-1)+6;return Jl-1+1029983*Math.floor(n/2820)+365*(o-1)+Math.floor((31*o-5)/128)+i+r}class Xl{fromJulianDay(e){let r=e-Ze(475,1,1),n=Math.floor(r/1029983),o=he(r,1029983),i=o===1029982?2820:Math.floor((128*o+46878)/46751),s=474+2820*n+i;s<=0&&s--;let a=e-Ze(s,1,1)+1,l=a<=186?Math.ceil(a/31):Math.ceil((a-6)/31),u=e-Ze(s,l,1)+1;return new J(this,s,l,u)}toJulianDay(e){return Ze(e.year,e.month,e.day)}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||Ql(e.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const At=78,dn=80;class Zl extends pe{fromJulianDay(e){let r=super.fromJulianDay(e),n=r.year-At,o=e-xe(r.era,r.year,1,1),i;o<dn?(n--,i=ge(r.year-1)?31:30,o+=i+155+90+10):(i=ge(r.year)?31:30,o-=dn);let s,a;if(o<i)s=1,a=o+1;else{let l=o-i;l<155?(s=Math.floor(l/31)+2,a=l%31+1):(l-=155,s=Math.floor(l/30)+7,a=l%30+1)}return new J(this,n,s,a)}toJulianDay(e){let r=e.year+At,[n,o]=Ct(r),i,s;return ge(o)?(i=31,s=xe(n,o,3,21)):(i=30,s=xe(n,o,3,22)),e.month===1?s+e.day-1:(s+=i+Math.min(e.month-2,5)*31,e.month>=8&&(s+=(e.month-7)*30),s+=e.day-1,s)}getDaysInMonth(e){return e.month===1&&ge(e.year+At)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const xt=1948440,fn=1948439,ie=1300,Se=1600,ec=460322;function $t(t,e,r,n){return n+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+t-1}function ei(t,e,r){let n=Math.floor((30*(r-e)+10646)/10631),o=Math.min(12,Math.ceil((r-(29+$t(e,n,1,1)))/29.5)+1),i=r-$t(e,n,o,1)+1;return new J(t,n,o,i)}function hn(t){return(14+11*t)%30<11}class jr{fromJulianDay(e){return ei(this,xt,e)}toJulianDay(e){return $t(xt,e.year,e.month,e.day)}getDaysInMonth(e){let r=29+e.month%2;return e.month===12&&hn(e.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(e){return hn(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class tc extends jr{fromJulianDay(e){return ei(this,fn,e)}toJulianDay(e){return $t(fn,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}const rc="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let pr,je;function mt(t){return ec+je[t-ie]}function Ne(t,e){let r=t-ie,n=1<<11-(e-1);return pr[r]&n?30:29}function pn(t,e){let r=mt(t);for(let n=1;n<e;n++)r+=Ne(t,n);return r}function mn(t){return je[t+1-ie]-je[t-ie]}class nc extends jr{fromJulianDay(e){let r=e-xt,n=mt(ie),o=mt(Se);if(r<n||r>o)return super.fromJulianDay(e);{let i=ie-1,s=1,a=1;for(;a>0;){i++,a=r-mt(i)+1;let l=mn(i);if(a===l){s=12;break}else if(a<l){let u=Ne(i,s);for(s=1;a>u;)a-=u,s++,u=Ne(i,s);break}}return new J(this,i,s,r-pn(i,s)+1)}}toJulianDay(e){return e.year<ie||e.year>Se?super.toJulianDay(e):xt+pn(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<ie||e.year>Se?super.getDaysInMonth(e):Ne(e.year,e.month)}getDaysInYear(e){return e.year<ie||e.year>Se?super.getDaysInYear(e):mn(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",pr||(pr=new Uint16Array(Uint8Array.from(atob(rc),e=>e.charCodeAt(0)).buffer)),!je){je=new Uint32Array(Se-ie+1);let e=0;for(let r=ie;r<=Se;r++){je[r-ie]=e;for(let n=1;n<=12;n++)e+=Ne(r,n)}}}}const gn=347997,ti=1080,ri=24*ti,oc=29,ic=12*ti+793,sc=oc*ri+ic;function ve(t){return he(t*7+1,19)<7}function gt(t){let e=Math.floor((235*t-234)/19),r=12084+13753*e,n=e*29+Math.floor(r/25920);return he(3*(n+1),7)<3&&(n+=1),n}function ac(t){let e=gt(t-1),r=gt(t);return gt(t+1)-r===356?2:r-e===382?1:0}function Ke(t){return gt(t)+ac(t)}function ni(t){return Ke(t+1)-Ke(t)}function lc(t){let e=ni(t);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function et(t,e){if(e>=6&&!ve(t)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let r=lc(t);return e===2?r===2?30:29:e===3?r===0?29:30:e===6?ve(t)?30:0:30}class cc{fromJulianDay(e){let r=e-gn,n=r*ri/sc,o=Math.floor((19*n+234)/235)+1,i=Ke(o),s=Math.floor(r-i);for(;s<1;)o--,i=Ke(o),s=Math.floor(r-i);let a=1,l=0;for(;l<s;)l+=et(o,a),a++;a--,l-=et(o,a);let u=s-l;return new J(this,o,a,u)}toJulianDay(e){let r=Ke(e.year);for(let n=1;n<e.month;n++)r+=et(e.year,n);return r+e.day+gn}getDaysInMonth(e){return et(e.year,e.month)}getMonthsInYear(e){return ve(e.year)?13:12}getDaysInYear(e){return ni(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,r){r.year!==e.year&&(ve(r.year)&&!ve(e.year)&&r.month>6?e.month--:!ve(r.year)&&ve(e.year)&&r.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const mr=1723856,bn=1824665,gr=5500;function wt(t,e,r,n){return t+365*e+Math.floor(e/4)+30*(r-1)+n-1}function _r(t,e){let r=Math.floor(4*(e-t)/1461),n=1+Math.floor((e-wt(t,r,1,1))/30),o=e+1-wt(t,r,n,1);return[r,n,o]}function oi(t){return Math.floor(t%4/3)}function ii(t,e){return e%13!==0?30:oi(t)+5}class kr{fromJulianDay(e){let[r,n,o]=_r(mr,e),i="AM";return r<=0&&(i="AA",r+=gr),new J(this,i,r,n,o)}toJulianDay(e){let r=e.year;return e.era==="AA"&&(r-=gr),wt(mr,r,e.month,e.day)}getDaysInMonth(e){return ii(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+oi(e.year)}getYearsInEra(e){return e.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class uc extends kr{fromJulianDay(e){let[r,n,o]=_r(mr,e);return r+=gr,new J(this,"AA",r,n,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class dc extends kr{fromJulianDay(e){let[r,n,o]=_r(bn,e),i="CE";return r<=0&&(i="BCE",r=1-r),new J(this,i,r,n,o)}toJulianDay(e){let r=e.year;return e.era==="BCE"&&(r=1-r),wt(bn,r,e.month,e.day)}getDaysInMonth(e){let r=e.year;return e.era==="BCE"&&(r=1-r),ii(r,e.month)}isInverseEra(e){return e.era==="BCE"}balanceDate(e){e.year<=0&&(e.era=e.era==="BCE"?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return e.era==="BCE"?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function si(t){switch(t){case"buddhist":return new Gl;case"ethiopic":return new kr;case"ethioaa":return new uc;case"coptic":return new dc;case"hebrew":return new cc;case"indian":return new Zl;case"islamic-civil":return new jr;case"islamic-tbla":return new tc;case"islamic-umalqura":return new nc;case"japanese":return new Wl;case"persian":return new Xl;case"roc":return new Yl;case"gregory":default:return new pe}}function fc({themeName:t="calendar",tokens:e,state:r,date:n}){const o=y.useRef(null),{cellProps:i,buttonProps:s,isSelected:a,isOutsideVisibleRange:l,isDisabled:u,formattedDate:d,isInvalid:p}=xr.useCalendarCell({date:n},r,o),f=r!=null&&r.highlightedRange?Xr(n,r==null?void 0:r.highlightedRange.start):a,m=r!=null&&r.highlightedRange?Xr(n,r==null?void 0:r.highlightedRange.end):a,{locale:P}=L.useLocale(),g=Bo(n,P),b=a&&(f||g===0||n.day===1),$=a&&(m||g===6||n.day===n.calendar.getDaysInMonth(n)),{focusProps:M,isFocusVisible:S}=ae.useFocusRing(),v=I(`${t}.cellContainer`,{...e,isFocusVisible:S}),j=I(`${t}.cell`,{...e,isSelected:a,isInvalid:p,isDisabled:u,isRoundedLeft:b,isRoundedRight:$}),E=I(`${t}.cellDate`,{...e,isSelected:a,isInvalid:p,isDisabled:u,isSelectionStart:f,isSelectionEnd:m});return c.jsx("td",{...i,"aria-disabled":!1,className:v,children:c.jsx("div",{...k.mergeProps(s,M),ref:o,hidden:l,className:j,children:c.jsx("div",{className:E,children:d})})})}function hc({themeName:t="calendar",customTheme:e,tokens:r,state:n,...o}){const{locale:i}=De.useLocale(),{gridProps:s,headerProps:a,weekDays:l}=xr.useCalendarGrid({...o},n),u=_l(n.visibleRange.start,i),d=I(`${t}.calendarTable`,r),p=I(`${t}.dayLabel`,r);return c.jsxs("table",{...s,cellPadding:"0",className:d,children:[c.jsx("thead",{...a,children:c.jsx("tr",{children:l.map(f=>c.jsx("th",{className:p,children:f},`${f}`))})}),c.jsx("tbody",{children:[...new Array(u).keys()].map(f=>c.jsx("tr",{children:n.getDatesInWeek(f).map((m,P)=>m?c.jsx(fc,{state:n,date:m},m==null?void 0:m.day):c.jsx("td",{},P))},f))})]})}function ai({buttons:t,tokens:e,customTheme:r,themeName:n="calendar",...o}){var g,b;const{locale:i}=De.useLocale(),s=rs.useCalendarState({...o,locale:i,createCalendar:si}),a=y.useRef(null),{calendarProps:l,prevButtonProps:u,nextButtonProps:d,title:p}=xr.useCalendar({...o},s),f=I(`${n}.container`,e),m=I(`${n}.header`,e),P=I(`${n}.navigationButtonsContainer`,e);return c.jsxs("div",{...l,ref:a,className:f,children:[c.jsxs("div",{className:m,children:[c.jsx(Z,{as:"p",tokens:{size:"h6"},children:p}),c.jsxs("div",{className:P,children:[c.jsx(_e,{themeName:`${n}.navigationButtons`,tokens:{...e},type:"button",...u,handlePress:u==null?void 0:u.onPress,children:c.jsx(ce,{icon:((g=t==null?void 0:t.buttonPrev)==null?void 0:g.icon)??"ArrowLeft"})}),c.jsx(_e,{themeName:`${n}.navigationButtons`,tokens:{...e},type:"button",...d,handlePress:d==null?void 0:d.onPress,children:c.jsx(ce,{icon:((b=t==null?void 0:t.buttonNext)==null?void 0:b.icon)??"ArrowRight"})})]})]}),c.jsx(hc,{state:s})]})}function pc({title:t,children:e,...r}){const n=y.useRef(null),{dialogProps:o}=L.useDialog(r,n);return c.jsx("div",{...o,ref:n,children:e})}function mc({themeName:t="datePicker",tokens:e,...r}){const n=os.useRef(null),{state:o,children:i}={...r},{popoverProps:s,underlayProps:a}=Le.usePopover({...r,popoverRef:n},o),l=I(`${t}.calendarUnderlay`,e),u=I(`${t}.calendarPopover`,e);return c.jsxs(Le.Overlay,{children:[c.jsx("div",{...a,className:l}),c.jsxs("div",{...s,ref:n,className:u,children:[c.jsx(Le.DismissButton,{onDismiss:o.close}),i,c.jsx(Le.DismissButton,{onDismiss:o.close})]})]})}function gc({segment:t,state:e}){const r=y.useRef(null),{segmentProps:n}=vr.useDateSegment(t,e,r),o=I("datePicker.dateSegment");return c.jsx(L.FocusRing,{focusRingClass:"has-focus-ring",children:c.jsxs("div",{...n,ref:r,className:o,children:[c.jsx("span",{"aria-hidden":"true",style:{visibility:t.isPlaceholder?"visible":"hidden",height:t.isPlaceholder?"":0,pointerEvents:"none",display:t.isPlaceholder?"block":"none"},children:t.placeholder}),t.isPlaceholder?"":t.text]})})}function yn(t){const{locale:e}=De.useLocale(),r=oo.useDateFieldState({...t,locale:e,createCalendar:si}),n=y.useRef(null),{fieldProps:o}=vr.useDateField(t,r,n);return c.jsx("div",{...o,ref:n,className:"flex",children:r.segments.map((i,s)=>c.jsx(gc,{segment:i,state:r},s))})}function bc({popoverPlacement:t="bottom start",tokens:e,customTheme:r,themeName:n="datePicker",icon:o="ArrowDown",description:i,buttonLabel:s,...a}){const l=oo.useDatePickerState({...a}),u=y.useRef(null),{groupProps:d,fieldProps:p,labelProps:f,descriptionProps:m,buttonProps:P,dialogProps:g,calendarProps:b}=vr.useDatePicker({...a},l,u),{label:$}={...a},M=I(`${n}.container`,e),S=I(`${n}.dateField`,e),v=I(`${n}.label`,e);return c.jsxs("div",{className:M,children:[$&&c.jsx("span",{...f,children:$}),i&&c.jsx("div",{...m,children:i}),c.jsx("div",{...d,ref:u,children:c.jsxs(_e,{themeName:`${n}.button`,tokens:{...e},type:"button",...P,handlePress:P.onPress,children:[s&&c.jsx("p",{className:v,children:s}),c.jsxs("div",{className:S,children:[c.jsx(yn,{...p}),l.validationState==="invalid"&&"❌"]}),c.jsx(ce,{themeName:`${n}.icon`,tokens:{...e},icon:o})]})}),l.isOpen&&c.jsx(mc,{triggerRef:u,state:l,placement:t,children:c.jsxs(pc,{...g,children:[c.jsxs("div",{children:[c.jsx(yn,{...p}),l.validationState==="invalid"&&"❌"]}),c.jsx(ai,{...b})]})})]})}const li=y.createContext(null),ci=t=>{const{children:e,state:r}=t;return c.jsx(li.Provider,{value:r,children:e})};function ui(){const t=y.useContext(li);return t!==null?t:null}const di=t=>{const{id:e,label:r,themeName:n="radio",tokens:o,customTheme:i,value:s,fieldRef:a}=t,l=ui(),u=y.useRef(null),{inputProps:d}=L.useRadio(t,l,u),p=(l==null?void 0:l.selectedValue)===s,{focusProps:f}=L.useFocusRing(),m={...o,selected:p},P=I(`${n}.label`,m,i),g=I(`${n}.radio`,m,i),b=I(`${n}.selectedMark`,m,i);return c.jsx("div",{children:c.jsx(L.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:c.jsxs("label",{htmlFor:e,className:P,children:[c.jsx(L.VisuallyHidden,{children:c.jsx("input",{type:"radio",...L.mergeProps(f,d),ref:$=>{a==null||a($),u.current=$}})}),c.jsx("div",{className:g,"aria-checked":p,role:"radio","aria-labelledby":e,children:c.jsx("div",{className:b})}),c.jsx(Z,{themeName:`${n}.label`,children:r})]})})})},yc=t=>{const{name:e,required:r}=t,{register:n,formState:o}=ye.useFormContext(),i=ye.get(o.errors,e),s=(i==null?void 0:i.message)??void 0,{t:a}=yr.useTranslation("components"),{ref:l,...u}=n(e,{required:r?a("FORM.ERROR.REQUIRED")??"required":!1});return c.jsx(di,{fieldRef:l,...u,...t,isError:!Tt.isEmpty(s),errorMessage:s})};let vc=Math.round(Math.random()*1e10),xc=0;function $c(t){let e=y.useMemo(()=>t.name||`radio-group-${vc}-${++xc}`,[t.name]);var r;let[n,o]=Oo(t.value,(r=t.defaultValue)!==null&&r!==void 0?r:null,t.onChange),[i,s]=y.useState(null),a=Do({...t,value:n}),l=d=>{!t.isReadOnly&&!t.isDisabled&&(o(d),a.commitValidation())},u=a.displayValidation.isInvalid;return{...a,name:e,selectedValue:n,setSelectedValue:l,lastFocusedValue:i,setLastFocusedValue:s,isDisabled:t.isDisabled||!1,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1,validationState:t.validationState||(u?"invalid":null),isInvalid:u}}const wc=t=>{const{label:e,isError:r=!1,errorMessage:n,isDisabled:o=!1,children:i,themeName:s="radioGroup",tokens:a}=t,l=$c(t),{radioGroupProps:u}=L.useRadioGroup(t,l),d={...a,isDisabled:o};return c.jsxs(X,{...u,"aria-disabled":o,themeName:`${s}.radioGroup`,tokens:d,children:[e&&c.jsx(Z,{tokens:{size:"h6"},children:e}),c.jsx(X,{themeName:`${s}.radioGroupItemsGroup`,children:c.jsx(ci,{state:l,children:i})}),r&&n&&c.jsx(Z,{tokens:{isError:!0},children:n})]})},[Oe,Pc]=xo();function Tc({children:t,defaultSelectedKey:e,defaultIsOpen:r,onCloseCallback:n,onOpenCallback:o,tabs:i,openBtn:s,closeBtn:a,...l}){const u=Pt.useTabListState({...l,children:i,defaultSelectedKey:e}),d=y.useMemo(()=>({openBtn:s,closeBtn:a,tabState:u,defaultSelectedKey:e}),[s,a,u,e]);return c.jsx(Pc,{value:d,children:c.jsx(Eo,{onCloseCallback:()=>{var p;n==null||n(),(p=u==null?void 0:u.setSelectedKey)==null||p.call(u,e)},onOpenCallback:o,defaultIsOpen:r,defaultSelectedKey:e.toString(),children:t})})}const fi=({isVisible:t,children:e,themeName:r,tokens:n,customTheme:o})=>{const i=oe.useTransition(t,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:oe.config.stiff}),s=I(r,n,o);return i((a,l)=>l&&c.jsx(oe.animated.div,{className:s,style:a,children:e}))},Cc=new WeakMap;function vn(t,e,r){return typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${Cc.get(t)}-${r}-${e}`}function Sc(t,e,r){let n=ae.useHasTabbableChild(r)?void 0:0;var o;const i=vn(e,(o=t.id)!==null&&o!==void 0?o:e==null?void 0:e.selectedKey,"tabpanel"),s=k.useLabels({...t,id:i,"aria-labelledby":vn(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:k.mergeProps(s,{tabIndex:n,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}function Rc({state:t,customTheme:e,themeName:r="tabPanel",tokens:n,...o}){var a;const i=y.useRef(null),{tabPanelProps:s}=Sc(o,t,i);return c.jsx(fi,{isVisible:!0,children:c.jsx(Ue,{themeName:`${r}`,tokens:n,customTheme:e,...s,ref:i,children:(a=t.selectedItem)==null?void 0:a.props.children})})}const hi=t=>{var r;const{tabState:e}=Oe();return y.createElement(Rc,{...t,key:(r=e.selectedItem)==null?void 0:r.key,state:e})},pi=t=>{var u;const{themeName:e,tokens:r,customTheme:n,children:o,beforeTabContent:i,afterTabContent:s}=t,{tabState:a,defaultSelectedKey:l}=Oe();return c.jsxs(c.Fragment,{children:[c.jsx(X,{themeName:`${e}.wrapper`,tokens:r,customTheme:n,children:o}),((u=a==null?void 0:a.selectedKey)==null?void 0:u.toString())===l?null:c.jsxs(X,{themeName:`${e}.tabWrapper`,tokens:r,customTheme:n,children:[i!==null&&i,c.jsx(hi,{themeName:`${e}.tabPanel`,tokens:r,customTheme:n}),s!==null&&s]})]})},Ec=t=>{const{id:e="main-menu",children:r,PanelTransition:n=fi,themeName:o,tokens:i,customTheme:s,...a}=t,{overlayState:l}=Sr(),{closeBtn:u}=Oe();return c.jsx(n,{isVisible:l==null?void 0:l.isOpen,children:c.jsxs(X,{themeName:`${o}.wrapper`,children:[u&&u(),c.jsx(X,{themeName:`${o}.container`,children:c.jsx(pi,{id:e,themeName:`${o}.innerContent`,tokens:i,customTheme:s,...a,children:r})})]})})},Mc=t=>{const{id:e="main-menu",children:r,TransitionAnimation:n,PanelTransition:o,themeName:i,tokens:s,customTheme:a,...l}=t,{closeBtn:u,tabState:d,defaultSelectedKey:p}=Oe();return c.jsx(jo,{themeName:`${i}.sidePanel`,tokens:s,customTheme:a,closeBtnRender:u,id:e,TransitionAnimation:n,PanelTransition:o,onCloseCallBack:()=>{d==null||d.setSelectedKey(p)},children:c.jsx(pi,{id:e,themeName:i,tokens:s,customTheme:a,...l,children:r})})};function jc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var br={exports:{}},Fe={};Fe._=Fe._interop_require_default=_c;function _c(t){return t&&t.__esModule?t:{default:t}}var tt={exports:{}},Lt={},xn;function mi(){return xn||(xn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,a){for(var l in a)Object.defineProperty(s,l,{enumerable:!0,get:a[l]})}e(t,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return i}});function r(s){const a={};return s.forEach((l,u)=>{typeof a[u]>"u"?a[u]=l:Array.isArray(a[u])?a[u].push(l):a[u]=[a[u],l]}),a}function n(s){return typeof s=="string"||typeof s=="number"&&!isNaN(s)||typeof s=="boolean"?String(s):""}function o(s){const a=new URLSearchParams;return Object.entries(s).forEach(l=>{let[u,d]=l;Array.isArray(d)?d.forEach(p=>a.append(u,n(p))):a.set(u,n(d))}),a}function i(s){for(var a=arguments.length,l=new Array(a>1?a-1:0),u=1;u<a;u++)l[u-1]=arguments[u];return l.forEach(d=>{Array.from(d.keys()).forEach(p=>s.delete(p)),d.forEach((p,f)=>s.append(f,p))}),s}}(Lt)),Lt}var Nt={},rt={},$n;function kc(){if($n)return rt;$n=1;function t(r){if(typeof WeakMap!="function")return null;var n=new WeakMap,o=new WeakMap;return(t=function(i){return i?o:n})(r)}rt._=rt._interop_require_wildcard=e;function e(r,n){if(!n&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var o=t(n);if(o&&o.has(r))return o.get(r);var i={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a)){var l=s?Object.getOwnPropertyDescriptor(r,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=r[a]}return i.default=r,o&&o.set(r,i),i}return rt}var wn;function gi(){return wn||(wn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(l,u){for(var d in u)Object.defineProperty(l,d,{enumerable:!0,get:u[d]})}e(t,{formatUrl:function(){return i},urlObjectKeys:function(){return s},formatWithValidation:function(){return a}});const n=kc()._(mi()),o=/https?|ftp|gopher|file/;function i(l){let{auth:u,hostname:d}=l,p=l.protocol||"",f=l.pathname||"",m=l.hash||"",P=l.query||"",g=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?g=u+l.host:d&&(g=u+(~d.indexOf(":")?"["+d+"]":d),l.port&&(g+=":"+l.port)),P&&typeof P=="object"&&(P=String(n.urlQueryToSearchParams(P)));let b=l.search||P&&"?"+P||"";return p&&!p.endsWith(":")&&(p+=":"),l.slashes||(!p||o.test(p))&&g!==!1?(g="//"+(g||""),f&&f[0]!=="/"&&(f="/"+f)):g||(g=""),m&&m[0]!=="#"&&(m="#"+m),b&&b[0]!=="?"&&(b="?"+b),f=f.replace(/[?#]/g,encodeURIComponent),b=b.replace("#","%23"),""+p+g+f+b+m}const s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(l){return process.env.NODE_ENV==="development"&&l!==null&&typeof l=="object"&&Object.keys(l).forEach(u=>{s.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),i(l)}}(Nt)),Nt}var Bt={},Pn;function Dc(){return Pn||(Pn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return e}});function e(r,n){const o={};return Object.keys(r).forEach(i=>{n.includes(i)||(o[i]=r[i])}),o}}(Bt)),Bt}var Kt={},Tn;function Rt(){return Tn||(Tn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(v,j){for(var E in j)Object.defineProperty(v,E,{enumerable:!0,get:j[E]})}e(t,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return s},getURL:function(){return a},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return d},loadGetInitialProps:function(){return p},SP:function(){return f},ST:function(){return m},DecodeError:function(){return P},NormalizeError:function(){return g},PageNotFoundError:function(){return b},MissingStaticPage:function(){return $},MiddlewareNotFoundError:function(){return M},stringifyError:function(){return S}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(v){let j=!1,E;return function(){for(var D=arguments.length,h=new Array(D),R=0;R<D;R++)h[R]=arguments[R];return j||(j=!0,E=v(...h)),E}}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=v=>o.test(v);function s(){const{protocol:v,hostname:j,port:E}=window.location;return v+"//"+j+(E?":"+E:"")}function a(){const{href:v}=window.location,j=s();return v.substring(j.length)}function l(v){return typeof v=="string"?v:v.displayName||v.name||"Unknown"}function u(v){return v.finished||v.headersSent}function d(v){const j=v.split("?");return j[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(j[1]?"?"+j.slice(1).join("?"):"")}async function p(v,j){if(process.env.NODE_ENV!=="production"){var E;if((E=v.prototype)!=null&&E.getInitialProps){const R='"'+l(v)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(R)}}const D=j.res||j.ctx&&j.ctx.res;if(!v.getInitialProps)return j.ctx&&j.Component?{pageProps:await p(j.Component,j.ctx)}:{};const h=await v.getInitialProps(j);if(D&&u(D))return h;if(!h){const R='"'+l(v)+'.getInitialProps()" should resolve to an object. But found "'+h+'" instead.';throw new Error(R)}return process.env.NODE_ENV!=="production"&&Object.keys(h).length===0&&!j.ctx&&console.warn(""+l(v)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),h}const f=typeof performance<"u",m=f&&["mark","measure","getEntriesByName"].every(v=>typeof performance[v]=="function");class P extends Error{}class g extends Error{}class b extends Error{constructor(j){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+j}}class $ extends Error{constructor(j,E){super(),this.message="Failed to load static file for page: "+j+" "+E}}class M extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(v){return JSON.stringify({message:v.message,stack:v.stack})}}(Kt)),Kt}var nt={exports:{}},Ft={},Cn;function bi(){return Cn||(Cn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.replace(/\/$/,"")||"/"}}(Ft)),Ft}var qt={},Sn;function Dr(){return Sn||(Sn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return e}});function e(r){const n=r.indexOf("#"),o=r.indexOf("?"),i=o>-1&&(n<0||o<n);return i||n>-1?{pathname:r.substring(0,i?o:n),query:i?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(qt)),qt}var Rn;function Et(){return Rn||(Rn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=bi(),n=Dr(),o=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:s,query:a,hash:l}=(0,n.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(s)?""+(0,r.removeTrailingSlash)(s)+a+l:s.endsWith("/")?""+s+a+l:s+"/"+a+l:""+(0,r.removeTrailingSlash)(s)+a+l};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(nt,nt.exports)),nt.exports}var Ut={},ot={exports:{}},Vt={},En;function yi(){return En||(En=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const e=Dr();function r(n,o){if(typeof n!="string")return!1;const{pathname:i}=(0,e.parsePath)(n);return i===o||i.startsWith(o+"/")}}(Vt)),Vt}var Mn;function Oc(){return Mn||(Mn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=yi(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i){return(0,r.pathHasPrefix)(i,n)}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(ot,ot.exports)),ot.exports}var jn;function vi(){return jn||(jn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return n}});const e=Rt(),r=Oc();function n(o){if(!(0,e.isAbsoluteUrl)(o))return!0;try{const i=(0,e.getLocationOrigin)(),s=new URL(o,i);return s.origin===i&&(0,r.hasBasePath)(s.pathname)}catch{return!1}}}(Ut)),Ut}var Ht={},zt={},_n;function Ic(){return _n||(_n=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class e{insert(o){this._insert(o.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(o){o===void 0&&(o="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const s=i.map(a=>this.children.get(a)._smoosh(""+o+a+"/")).reduce((a,l)=>[...a,...l],[]);if(this.slugName!==null&&s.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const a=o==="/"?"/":o.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+a+'" and "'+a+"[[..."+this.optionalRestSlugName+']]").');s.unshift(a)}return this.restSlugName!==null&&s.push(...this.children.get("[...]")._smoosh(o+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&s.push(...this.children.get("[[...]]")._smoosh(o+"[[..."+this.optionalRestSlugName+"]]/")),s}_insert(o,i,s){if(o.length===0){this.placeholder=!1;return}if(s)throw new Error("Catch-all must be the last part of the URL.");let a=o[0];if(a.startsWith("[")&&a.endsWith("]")){let d=function(p,f){if(p!==null&&p!==f)throw new Error("You cannot use different slug names for the same dynamic path ('"+p+"' !== '"+f+"').");i.forEach(m=>{if(m===f)throw new Error('You cannot have the same slug name "'+f+'" repeat within a single dynamic path');if(m.replace(/\W/g,"")===a.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+m+'" and "'+f+'" differ only by non-word symbols within a single dynamic path')}),i.push(f)},l=a.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),s=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(s)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+o[0]+'" ).');d(this.optionalRestSlugName,l),this.optionalRestSlugName=l,a="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+o[0]+'").');d(this.restSlugName,l),this.restSlugName=l,a="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');d(this.slugName,l),this.slugName=l,a="[]"}}this.children.has(a)||this.children.set(a,new e),this.children.get(a)._insert(o.slice(1),i,s)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(n){const o=new e;return n.forEach(i=>o.insert(i)),o.smoosh()}}(zt)),zt}var Wt={},Gt={},Yt={},Jt={},kn;function Ac(){return kn||(kn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return e}});function e(r){return r.startsWith("/")?r:"/"+r}}(Jt)),Jt}var Qt={},Dn;function Lc(){return Dn||(Dn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isGroupSegment",{enumerable:!0,get:function(){return e}});function e(r){return r[0]==="("&&r.endsWith(")")}}(Qt)),Qt}var On;function Nc(){return On||(On=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,a){for(var l in a)Object.defineProperty(s,l,{enumerable:!0,get:a[l]})}e(t,{normalizeAppPath:function(){return o},normalizeRscURL:function(){return i}});const r=Ac(),n=Lc();function o(s){return(0,r.ensureLeadingSlash)(s.split("/").reduce((a,l,u,d)=>!l||(0,n.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===d.length-1?a:a+"/"+l,""))}function i(s){return s.replace(/\.rsc($|\?)/,"$1")}}(Yt)),Yt}var In;function xi(){return In||(In=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,a){for(var l in a)Object.defineProperty(s,l,{enumerable:!0,get:a[l]})}e(t,{INTERCEPTION_ROUTE_MARKERS:function(){return n},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return i}});const r=Nc(),n=["(..)(..)","(.)","(..)","(...)"];function o(s){return s.split("/").find(a=>n.find(l=>a.startsWith(l)))!==void 0}function i(s){let a,l,u;for(const d of s.split("/"))if(l=n.find(p=>d.startsWith(p)),l){[a,u]=s.split(l,2);break}if(!a||!l||!u)throw new Error(`Invalid interception route: ${s}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(a=(0,r.normalizeAppPath)(a),l){case"(.)":a==="/"?u=`/${u}`:u=a+"/"+u;break;case"(..)":if(a==="/")throw new Error(`Invalid interception route: ${s}. Cannot use (..) marker at the root level, use (.) instead.`);u=a.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const d=a.split("/");if(d.length<=2)throw new Error(`Invalid interception route: ${s}. Cannot use (..)(..) marker at the root level or one level up.`);u=d.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:a,interceptedRoute:u}}}(Gt)),Gt}var An;function Bc(){return An||(An=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return n}});const e=xi(),r=/\/\[[^/]+?\](?=\/|$)/;function n(o){return(0,e.isInterceptionRouteAppPath)(o)&&(o=(0,e.extractInterceptionRouteInformation)(o).interceptedRoute),r.test(o)}}(Wt)),Wt}var Ln;function Kc(){return Ln||(Ln=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,i){for(var s in i)Object.defineProperty(o,s,{enumerable:!0,get:i[s]})}e(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=Ic(),n=Bc()}(Ht)),Ht}var Xt={},Zt={},Nn;function Fc(){return Nn||(Nn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const e=Rt();function r(n){let{re:o,groups:i}=n;return s=>{const a=o.exec(s);if(!a)return!1;const l=d=>{try{return decodeURIComponent(d)}catch{throw new e.DecodeError("failed to decode param")}},u={};return Object.keys(i).forEach(d=>{const p=i[d],f=a[p.pos];f!==void 0&&(u[d]=~f.indexOf("/")?f.split("/").map(m=>l(m)):p.repeat?[l(f)]:l(f))}),u}}}(Zt)),Zt}var er={},tr={},Bn;function qc(){return Bn||(Bn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const e=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(o){return e.test(o)?o.replace(r,"\\$&"):o}}(tr)),tr}var Kn;function Uc(){return Kn||(Kn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(g,b){for(var $ in b)Object.defineProperty(g,$,{enumerable:!0,get:b[$]})}e(t,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return m},getNamedMiddlewareRegex:function(){return P}});const r=xi(),n=qc(),o=bi(),i="nxtP",s="nxtI";function a(g){const b=g.startsWith("[")&&g.endsWith("]");b&&(g=g.slice(1,-1));const $=g.startsWith("...");return $&&(g=g.slice(3)),{key:g,repeat:$,optional:b}}function l(g){const b=(0,o.removeTrailingSlash)(g).slice(1).split("/"),$={};let M=1;return{parameterizedRoute:b.map(S=>{const v=r.INTERCEPTION_ROUTE_MARKERS.find(E=>S.startsWith(E)),j=S.match(/\[((?:\[.*\])|.+)\]/);if(v&&j){const{key:E,optional:D,repeat:h}=a(j[1]);return $[E]={pos:M++,repeat:h,optional:D},"/"+(0,n.escapeStringRegexp)(v)+"([^/]+?)"}else if(j){const{key:E,repeat:D,optional:h}=a(j[1]);return $[E]={pos:M++,repeat:D,optional:h},D?h?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,n.escapeStringRegexp)(S)}).join(""),groups:$}}function u(g){const{parameterizedRoute:b,groups:$}=l(g);return{re:new RegExp("^"+b+"(?:/)?$"),groups:$}}function d(){let g=0;return()=>{let b="",$=++g;for(;$>0;)b+=String.fromCharCode(97+($-1)%26),$=Math.floor(($-1)/26);return b}}function p(g){let{interceptionMarker:b,getSafeRouteKey:$,segment:M,routeKeys:S,keyPrefix:v}=g;const{key:j,optional:E,repeat:D}=a(M);let h=j.replace(/\W/g,"");v&&(h=""+v+h);let R=!1;(h.length===0||h.length>30)&&(R=!0),isNaN(parseInt(h.slice(0,1)))||(R=!0),R&&(h=$()),v?S[h]=""+v+j:S[h]=j;const w=b?(0,n.escapeStringRegexp)(b):"";return D?E?"(?:/"+w+"(?<"+h+">.+?))?":"/"+w+"(?<"+h+">.+?)":"/"+w+"(?<"+h+">[^/]+?)"}function f(g,b){const $=(0,o.removeTrailingSlash)(g).slice(1).split("/"),M=d(),S={};return{namedParameterizedRoute:$.map(v=>{const j=r.INTERCEPTION_ROUTE_MARKERS.some(D=>v.startsWith(D)),E=v.match(/\[((?:\[.*\])|.+)\]/);if(j&&E){const[D]=v.split(E[0]);return p({getSafeRouteKey:M,interceptionMarker:D,segment:E[1],routeKeys:S,keyPrefix:b?s:void 0})}else return E?p({getSafeRouteKey:M,segment:E[1],routeKeys:S,keyPrefix:b?i:void 0}):"/"+(0,n.escapeStringRegexp)(v)}).join(""),routeKeys:S}}function m(g,b){const $=f(g,b);return{...u(g),namedRegex:"^"+$.namedParameterizedRoute+"(?:/)?$",routeKeys:$.routeKeys}}function P(g,b){const{parameterizedRoute:$}=l(g),{catchAll:M=!0}=b;if($==="/")return{namedRegex:"^/"+(M?".*":"")+"$"};const{namedParameterizedRoute:S}=f(g,!1);let v=M?"(?:(/.*)?)":"";return{namedRegex:"^"+S+v+"$"}}}(er)),er}var Fn;function Vc(){return Fn||(Fn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return n}});const e=Fc(),r=Uc();function n(o,i,s){let a="";const l=(0,r.getRouteRegex)(o),u=l.groups,d=(i!==o?(0,e.getRouteMatcher)(l)(i):"")||s;a=o;const p=Object.keys(u);return p.every(f=>{let m=d[f]||"";const{repeat:P,optional:g}=u[f];let b="["+(P?"...":"")+f+"]";return g&&(b=(m?"":"/")+"["+b+"]"),P&&!Array.isArray(m)&&(m=[m]),(g||f in d)&&(a=a.replace(b,P?m.map($=>encodeURIComponent($)).join("/"):encodeURIComponent(m))||"/")})||(a=""),{params:p,result:a}}}(Xt)),Xt}var qn;function Hc(){return qn||(qn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveHref",{enumerable:!0,get:function(){return d}});const r=mi(),n=gi(),o=Dc(),i=Rt(),s=Et(),a=vi(),l=Kc(),u=Vc();function d(p,f,m){let P,g=typeof f=="string"?f:(0,n.formatWithValidation)(f);const b=g.match(/^[a-zA-Z]{1,}:\/\//),$=b?g.slice(b[0].length):g;if(($.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+g+"' passed to next/router in page: '"+p.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const S=(0,i.normalizeRepeatedSlashes)($);g=(b?b[0]:"")+S}if(!(0,a.isLocalURL)(g))return m?[g]:g;try{P=new URL(g.startsWith("#")?p.asPath:p.pathname,"http://n")}catch{P=new URL("/","http://n")}try{const S=new URL(g,P);S.pathname=(0,s.normalizePathTrailingSlash)(S.pathname);let v="";if((0,l.isDynamicRoute)(S.pathname)&&S.searchParams&&m){const E=(0,r.searchParamsToUrlQuery)(S.searchParams),{result:D,params:h}=(0,u.interpolateAs)(S.pathname,S.pathname,E);D&&(v=(0,n.formatWithValidation)({pathname:D,hash:S.hash,query:(0,o.omit)(E,h)}))}const j=S.origin===P.origin?S.href.slice(S.origin.length):S.href;return m?[j,v||j]:j}catch{return m?[g]:g}}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(tt,tt.exports)),tt.exports}var it={exports:{}},rr={},nr={},Un;function $i(){return Un||(Un=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return r}});const e=Dr();function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:i,query:s,hash:a}=(0,e.parsePath)(n);return""+o+i+s+a}}(nr)),nr}var Vn;function zc(){return Vn||(Vn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const e=$i(),r=yi();function n(o,i,s,a){if(!i||i===s)return o;const l=o.toLowerCase();return!a&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+i.toLowerCase()))?o:(0,e.addPathPrefix)(o,"/"+i)}}(rr)),rr}var Hn;function Wc(){return Hn||(Hn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const r=Et(),n=function(o){for(var i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(zc().addLocale(o,...s)):o};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(it,it.exports)),it.exports}var or={},zn;function Gc(){return zn||(zn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Fe._(y).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(or)),or}var ir={},Wn;function Yc(){return Wn||(Wn=1,function(t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function e(u,d){for(var p in d)Object.defineProperty(u,p,{enumerable:!0,get:d[p]})}e(t,{CacheStates:function(){return o},AppRouterContext:function(){return i},LayoutRouterContext:function(){return s},GlobalLayoutRouterContext:function(){return a},TemplateContext:function(){return l}});const n=Fe._(y);var o;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(o||(o={}));const i=n.default.createContext(null),s=n.default.createContext(null),a=n.default.createContext(null),l=n.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",s.displayName="LayoutRouterContext",a.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(ir)),ir}var st={exports:{}},at={exports:{}},Gn;function Jc(){return Gn||(Gn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0});function r(i,s){for(var a in s)Object.defineProperty(i,a,{enumerable:!0,get:s[a]})}r(e,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return o}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let s=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-s))}})},1)},o=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(at,at.exports)),at.exports}var Yn;function Qc(){return Yn||(Yn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return u}});const r=y,n=Jc(),o=typeof IntersectionObserver=="function",i=new Map,s=[];function a(d){const p={root:d.root||null,margin:d.rootMargin||""},f=s.find(b=>b.root===p.root&&b.margin===p.margin);let m;if(f&&(m=i.get(f),m))return m;const P=new Map,g=new IntersectionObserver(b=>{b.forEach($=>{const M=P.get($.target),S=$.isIntersecting||$.intersectionRatio>0;M&&S&&M(S)})},d);return m={id:p,observer:g,elements:P},s.push(p),i.set(p,m),m}function l(d,p,f){const{id:m,observer:P,elements:g}=a(f);return g.set(d,p),P.observe(d),function(){if(g.delete(d),P.unobserve(d),g.size===0){P.disconnect(),i.delete(m);const $=s.findIndex(M=>M.root===m.root&&M.margin===m.margin);$>-1&&s.splice($,1)}}}function u(d){let{rootRef:p,rootMargin:f,disabled:m}=d;const P=m||!o,[g,b]=(0,r.useState)(!1),$=(0,r.useRef)(null),M=(0,r.useCallback)(v=>{$.current=v},[]);(0,r.useEffect)(()=>{if(o){if(P||g)return;const v=$.current;if(v&&v.tagName)return l(v,E=>E&&b(E),{root:p==null?void 0:p.current,rootMargin:f})}else if(!g){const v=(0,n.requestIdleCallback)(()=>b(!0));return()=>(0,n.cancelIdleCallback)(v)}},[P,f,p,g,$.current]);const S=(0,r.useCallback)(()=>{b(!1)},[]);return[M,g,S]}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(st,st.exports)),st.exports}var lt={exports:{}},ct={exports:{}},sr={},Jn;function Xc(){return Jn||(Jn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return e}});function e(r,n){let o;const i=r.split("/");return(n||[]).some(s=>i[1]&&i[1].toLowerCase()===s.toLowerCase()?(o=s,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:o}}}(sr)),sr}var Qn;function Zc(){return Qn||(Qn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,o)=>process.env.__NEXT_I18N_SUPPORT?Xc().normalizeLocalePath(n,o):{pathname:n,detectedLocale:void 0};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(ct,ct.exports)),ct.exports}var ut={exports:{}},ar={},Xn;function eu(){return Xn||(Xn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}});function e(r,n,o){if(r){o&&(o=o.toLowerCase());for(const a of r){var i,s;const l=(i=a.domain)==null?void 0:i.split(":",1)[0].toLowerCase();if(n===l||o===a.defaultLocale.toLowerCase()||(s=a.locales)!=null&&s.some(u=>u.toLowerCase()===o))return a}}}}(ar)),ar}var Zn;function tu(){return Zn||(Zn=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return eu().detectDomainLocale(...o)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(ut,ut.exports)),ut.exports}var eo;function ru(){return eo||(eo=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=Et(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(i,s,a,l){if(process.env.__NEXT_I18N_SUPPORT){const u=Zc().normalizeLocalePath,d=tu().detectDomainLocale,p=s||u(i,a).detectedLocale,f=d(l,void 0,p);if(f){const m="http"+(f.http?"":"s")+"://",P=p===f.defaultLocale?"":"/"+p;return""+m+f.domain+(0,r.normalizePathTrailingSlash)(""+n+P+i)}return!1}else return!1}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(lt,lt.exports)),lt.exports}var dt={exports:{}},to;function nu(){return to||(to=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addBasePath",{enumerable:!0,get:function(){return i}});const r=$i(),n=Et(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function i(s,a){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!a?s:(0,r.addPathPrefix)(s,o))}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(dt,dt.exports)),dt.exports}var ft={exports:{}},ro;function ou(){return ro||(ro=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0});function r(f,m){for(var P in m)Object.defineProperty(f,P,{enumerable:!0,get:m[P]})}r(e,{PrefetchKind:function(){return d},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return a},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u},isThenable:function(){return p}});const n="refresh",o="navigate",i="restore",s="server-patch",a="prefetch",l="fast-refresh",u="server-action";var d;(function(f){f.AUTO="auto",f.FULL="full",f.TEMPORARY="temporary"})(d||(d={}));function p(f){return f&&(typeof f=="object"||typeof f=="function")&&typeof f.then=="function"}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(ft,ft.exports)),ft.exports}(function(t,e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return j}});const n=Fe._(y),o=Hc(),i=vi(),s=gi(),a=Rt(),l=Wc(),u=Gc(),d=Yc(),p=Qc(),f=ru(),m=nu(),P=ou(),g=new Set;function b(E,D,h,R,w,T){if(typeof window>"u"||!T&&!(0,i.isLocalURL)(D))return;if(!R.bypassPrefetchedCheck){const x=typeof R.locale<"u"?R.locale:"locale"in E?E.locale:void 0,C=D+"%"+h+"%"+x;if(g.has(C))return;g.add(C)}const A=T?E.prefetch(D,w):E.prefetch(D,h,R);Promise.resolve(A).catch(x=>{if(process.env.NODE_ENV!=="production")throw x})}function $(E){const h=E.currentTarget.getAttribute("target");return h&&h!=="_self"||E.metaKey||E.ctrlKey||E.shiftKey||E.altKey||E.nativeEvent&&E.nativeEvent.which===2}function M(E,D,h,R,w,T,A,x,C){const{nodeName:B}=E.currentTarget;if(B.toUpperCase()==="A"&&($(E)||!C&&!(0,i.isLocalURL)(h)))return;E.preventDefault();const _=()=>{const V=A??!0;"beforePopState"in D?D[w?"replace":"push"](h,R,{shallow:T,locale:x,scroll:V}):D[w?"replace":"push"](R||h,{scroll:V})};C?n.default.startTransition(_):_()}function S(E){return typeof E=="string"?E:(0,s.formatUrl)(E)}const j=n.default.forwardRef(function(D,h){let R;const{href:w,as:T,children:A,prefetch:x=null,passHref:C,replace:B,shallow:W,scroll:_,locale:V,onClick:ne,onMouseEnter:N,onTouchStart:G,legacyBehavior:U=!1,...He}=D;R=A,U&&(typeof R=="string"||typeof R=="number")&&(R=n.default.createElement("a",null,R));const z=n.default.useContext(u.RouterContext),ze=n.default.useContext(d.AppRouterContext),le=z??ze,K=!z,Y=x!==!1,ee=x===null?P.PrefetchKind.AUTO:P.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let F=function(q){return new Error("Failed prop type: The prop `"+q.key+"` expects a "+q.expected+" in `<Link>`, but got `"+q.actual+"` instead."+(typeof window<"u"?`
89
+ Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(q=>{if(q==="href"&&(D[q]==null||typeof D[q]!="string"&&typeof D[q]!="object"))throw F({key:q,expected:"`string` or `object`",actual:D[q]===null?"null":typeof D[q]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(q=>{const de=typeof D[q];if(q==="as"){if(D[q]&&de!=="string"&&de!=="object")throw F({key:q,expected:"`string` or `object`",actual:de})}else if(q==="locale"){if(D[q]&&de!=="string")throw F({key:q,expected:"`string`",actual:de})}else if(q==="onClick"||q==="onMouseEnter"||q==="onTouchStart"){if(D[q]&&de!=="function")throw F({key:q,expected:"`function`",actual:de})}else if((q==="replace"||q==="scroll"||q==="shallow"||q==="passHref"||q==="prefetch"||q==="legacyBehavior")&&D[q]!=null&&de!=="boolean")throw F({key:q,expected:"`boolean`",actual:de})});const Br=n.default.useRef(!1);D.prefetch&&!Br.current&&!K&&(Br.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(process.env.NODE_ENV!=="production"&&K&&!T){let F;if(typeof w=="string"?F=w:typeof w=="object"&&typeof w.pathname=="string"&&(F=w.pathname),F&&F.split("/").some(Te=>Te.startsWith("[")&&Te.endsWith("]")))throw new Error("Dynamic href `"+F+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:re,as:te}=n.default.useMemo(()=>{if(!z){const Te=S(w);return{href:Te,as:T?S(T):Te}}const[F,Ie]=(0,o.resolveHref)(z,w,!0);return{href:F,as:T?(0,o.resolveHref)(z,T):Ie||F}},[z,w,T]),Or=n.default.useRef(re),Ir=n.default.useRef(te);let Q;if(U)if(process.env.NODE_ENV==="development"){ne&&console.warn('"onClick" was passed to <Link> with `href` of `'+w+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),N&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+w+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{Q=n.default.Children.only(R)}catch{throw R?new Error("Multiple children were passed to <Link> with `href` of `"+w+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
90
+ Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+w+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else Q=n.default.Children.only(R);else if(process.env.NODE_ENV==="development"&&(R==null?void 0:R.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
91
+ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const Pe=U?Q&&typeof Q=="object"&&Q.ref:h,[Ar,Lr,Nr]=(0,p.useIntersection)({rootMargin:"200px"}),Wi=n.default.useCallback(F=>{(Ir.current!==te||Or.current!==re)&&(Nr(),Ir.current=te,Or.current=re),Ar(F),Pe&&(typeof Pe=="function"?Pe(F):typeof Pe=="object"&&(Pe.current=F))},[te,Pe,re,Nr,Ar]);n.default.useEffect(()=>{process.env.NODE_ENV==="production"&&le&&(!Lr||!Y||b(le,re,te,{locale:V},{kind:ee},K))},[te,re,Lr,V,Y,z==null?void 0:z.locale,le,K,ee]);const We={ref:Wi,onClick(F){if(process.env.NODE_ENV!=="production"&&!F)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!U&&typeof ne=="function"&&ne(F),U&&Q.props&&typeof Q.props.onClick=="function"&&Q.props.onClick(F),le&&(F.defaultPrevented||M(F,le,re,te,B,W,_,V,K))},onMouseEnter(F){!U&&typeof N=="function"&&N(F),U&&Q.props&&typeof Q.props.onMouseEnter=="function"&&Q.props.onMouseEnter(F),le&&((!Y||process.env.NODE_ENV==="development")&&K||b(le,re,te,{locale:V,priority:!0,bypassPrefetchedCheck:!0},{kind:ee},K))},onTouchStart(F){!U&&typeof G=="function"&&G(F),U&&Q.props&&typeof Q.props.onTouchStart=="function"&&Q.props.onTouchStart(F),le&&(!Y&&K||b(le,re,te,{locale:V,priority:!0,bypassPrefetchedCheck:!0},{kind:ee},K))}};if((0,a.isAbsoluteUrl)(te))We.href=te;else if(!U||C||Q.type==="a"&&!("href"in Q.props)){const F=typeof V<"u"?V:z==null?void 0:z.locale,Ie=(z==null?void 0:z.isLocaleDomain)&&(0,f.getDomainLocale)(te,F,z==null?void 0:z.locales,z==null?void 0:z.domainLocales);We.href=Ie||(0,m.addBasePath)((0,l.addLocale)(te,F,z==null?void 0:z.defaultLocale))}return U?n.default.cloneElement(Q,We):n.default.createElement("a",{...He,...We},R)});(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(br,br.exports);var iu=br.exports,su=iu;const au=jc(su),lu=t=>{const{tabState:e,defaultSelectedKey:r}=Oe(),{setSelectedKey:n}=e,{id:o,path:i,label:s,themeName:a="button",tokens:l,customTheme:u,target:d,children:p,childItems:f,...m}=t,P=i==null?void 0:i.substring(1),g=y.useCallback(()=>{if(P!=null){if(e.selectedKey===P){n(r);return}n(P)}},[P,e.selectedKey,n,r]);return y.createElement(_e,{...m,themeName:`${a}`,tokens:l,customTheme:u,key:`button-${o}`,handlePress:g},y.isValidElement(p)?p:s)},cu=t=>{const{id:e,target:r,path:n,label:o,themeName:i="anchor",customTheme:s,tokens:a,nextLinkProps:l,children:u,childItems:d,...p}=t,f=y.useRef(null);return n==null||o==null?null:y.createElement(Cr,{...p,themeName:`${i}`,tokens:a,customTheme:s,nextLinkProps:{scroll:!1,href:n,...l},ref:f,key:`link-${e}`,as:au,target:r??"_self"},y.isValidElement(u)?u:o)},uu=t=>{const{menuItems:e,children:r,themeName:n="menuItem",tokens:o,customTheme:i}=t;return c.jsxs(X,{themeName:`${n}.wrapper`,tokens:o,customTheme:i,children:[c.jsx(X,{themeName:`${n}.container`,tokens:o,customTheme:i,children:e==null?void 0:e.map(s=>{var m;const{id:a,path:l,label:u,...d}=s??{},p={...o,...s.tokens};if((s==null?void 0:s.path)==null||s.id==null)return null;const f=(m=s.path)!=null&&m.startsWith("#")?"button":"a";return c.jsx(X,{themeName:`${n}.innerContent`,tokens:p,customTheme:i,children:f==="button"?c.jsx(lu,{...d,...s,themeName:`${n}.button`,tokens:p,customTheme:i}):c.jsx(cu,{...d,...s,themeName:`${n}.anchor`,tokens:p,customTheme:i})},`li-${s.id}`)})}),r]})};function du(t){const e=t.replace(/-/g,"+").replace(/_/g,"/"),r=typeof Buffer<"u"?Buffer.from(e,"base64"):Uint8Array.from(atob(e),n=>n.charCodeAt(0));return new Uint8Array(r)}/**
87
92
  * Encodes an RGBA image to a PNG data URI. RGB should not be premultiplied by A.
88
93
  *
89
94
  * @remarks
@@ -93,4 +98,4 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
93
98
  * @see https://github.com/evanw/thumbhash
94
99
  * @author Evan Wallace
95
100
  * @license MIT
96
- */function Jl(e,t,r){const n=e*4+1,o=6+t*(5+n),a=[137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,0,0,e>>8,e&255,0,0,t>>8,t&255,8,6,0,0,0,0,0,0,0,o>>>24,o>>16&255,o>>8&255,o&255,73,68,65,84,120,1],i=[0,498536548,997073096,651767980,1994146192,1802195444,1303535960,1342533948,-306674912,-267414716,-690576408,-882789492,-1687895376,-2032938284,-1609899400,-1111625188];let s=1,c=0;for(let d=0,h=0,f=n-1;d<t;d++,f+=n-1)for(a.push(d+1<t?0:1,n&255,n>>8,~n&255,n>>8^255,0),c=(c+s)%65521;h<f;h++){const p=r[h]&255;a.push(p),s=(s+p)%65521,c=(c+s)%65521}a.push(c>>8,c&255,s>>8,s&255,0,0,0,0,0,0,0,0,73,69,78,68,174,66,96,130);for(let[d,h]of[[12,29],[37,41+o]]){let f=-1;for(let p=d;p<h;p++)f^=a[p],f=f>>>4^i[f&15],f=f>>>4^i[f&15];f=~f,a[h++]=f>>>24,a[h++]=f>>16&255,a[h++]=f>>8&255,a[h++]=f&255}return`data:image/png;base64,${typeof Buffer<"u"?Buffer.from(new Uint8Array(a)).toString("base64"):btoa(String.fromCharCode(...a))}`}function Ql(e){let{PI:t,min:r,max:n,cos:o,round:a}=Math,i=e[0]|e[1]<<8|e[2]<<16,s=e[3]|e[4]<<8,c=(i&63)/63,u=(i>>6&63)/31.5-1,d=(i>>12&63)/31.5-1,h=(i>>18&31)/31,f=i>>23,p=(s>>3&63)/63,x=(s>>9&63)/63,m=s>>15,g=n(3,m?f?5:7:s&7),v=n(3,m?s&7:f?5:7),C=f?(e[5]&15)/15:1,$=(e[5]>>4)/15,y=f?6:5,P=0,w=(te,A,ae)=>{let re=[];for(let ne=0;ne<A;ne++)for(let q=ne?0:1;q*A<te*(A-ne);q++)re.push(((e[y+(P>>1)]>>((P++&1)<<2)&15)/7.5-1)*ae);return re},j=w(g,v,h),M=w(3,3,p*1.25),T=w(3,3,x*1.25),E=f&&w(5,5,$),L=Kl(e),G=a(L>1?32:32*L),Y=a(L>1?32/L:32),J=new Uint8Array(G*Y*4),ce=[],me=[];for(let te=0,A=0;te<Y;te++)for(let ae=0;ae<G;ae++,A+=4){let re=c,ne=u,q=d,Ie=C;for(let k=0,B=n(g,f?5:3);k<B;k++)ce[k]=o(t/G*(ae+.5)*k);for(let k=0,B=n(v,f?5:3);k<B;k++)me[k]=o(t/Y*(te+.5)*k);for(let k=0,B=0;k<v;k++)for(let z=k?0:1,W=me[k]*2;z*v<g*(v-k);z++,B++)re+=j[B]*ce[z]*W;for(let k=0,B=0;k<3;k++)for(let z=k?0:1,W=me[k]*2;z<3-k;z++,B++){let H=ce[z]*W;ne+=M[B]*H,q+=T[B]*H}if(f)for(let k=0,B=0;k<5;k++)for(let z=k?0:1,W=me[k]*2;z<5-k;z++,B++)Ie+=E[B]*ce[z]*W;let N=re-2/3*ne,Oe=(3*re-N+q)/2,Z=Oe-q;J[A]=n(0,255*r(1,Oe)),J[A+1]=n(0,255*r(1,Z)),J[A+2]=n(0,255*r(1,N)),J[A+3]=n(0,255*r(1,Ie))}return{w:G,h:Y,rgba:J}}function Kl(e){let t=e[3],r=e[2]&128,n=e[4]&128,o=n?r?5:7:t&7,a=n?t&7:r?5:7;return o/a}function Zl(e){const{w:t,h:r,rgba:n}=Ql(Yl(e));return Jl(t,r,n)}const Oo=e=>{const{src:t,width:r,height:n,themeName:o="img",tokens:a,customTheme:i,...s}=e,c=R(o,a,i);if(typeof t=="object"){const{blurWidth:u,blurHeight:d,width:h,height:f,...p}=t,x={blurwidth:u,blurheight:d};return l.jsx(vr,{className:c,...p,...s,...x,width:h??r,height:f??n})}return l.jsx(vr,{width:r,height:n,className:c,src:t,...s})},Xl=process.env.NEXT_PUBLIC_IMG_DOMAIN??"",ec=e=>{const{fit:t,customTheme:r,thumbhash:n,description:o,width:a,height:i,id:s,filenameDownload:c,...u}=e;if(!s||!c)return null;const h=(()=>{try{const f=new URL(`/assets/${s}/${c}`,`https://${Xl}`);return f.searchParams.set("fit",t??"contain"),f}catch(f){return console.warn(f),null}})();return h==null?null:l.jsx(Oo,{alt:o??"",...n?{blurDataURL:Zl(n),placeholder:"blur"}:{},src:h.href,...u,width:a??void 0,height:i??void 0})},tc=e=>l.jsx("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:l.jsx("path",{d:"M17.728 13.66 12.388 19 7.05 13.66M12.4 5v14",stroke:"currentColor"})}),No=b.memo(tc,O),rc=Object.freeze(Object.defineProperty({__proto__:null,default:No},Symbol.toStringTag,{value:"Module"})),nc=e=>l.jsxs("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:[l.jsx("g",{children:l.jsx("path",{d:"M.075 11.622a1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l8 8a1.004 1.004 0 0 0 1.42-1.42l-6.3-6.29h19.59a1 1 0 0 0 0-2H3.405l6.3-6.29a1 1 0 0 0 0-1.42 1 1 0 0 0-1.42 0l-8 8a1 1 0 0 0-.21.33Z"})}),l.jsx("defs",{children:l.jsx("clipPath",{children:l.jsx("path",{fill:"currentColor",d:"M0 0h24v24H0z"})})})]}),Ao=b.memo(nc,O),oc=Object.freeze(Object.defineProperty({__proto__:null,default:Ao},Symbol.toStringTag,{value:"Module"})),ac=e=>l.jsxs("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:[l.jsx("g",{children:l.jsx("path",{d:"M23.92 12.38a1 1 0 0 0 0-.76 1 1 0 0 0-.21-.33l-8-8a1.003 1.003 0 1 0-1.42 1.42l6.3 6.29H1a1 1 0 1 0 0 2h19.59l-6.3 6.29a1 1 0 0 0 0 1.42 1.002 1.002 0 0 0 1.42 0l8-8c.091-.095.162-.207.21-.33Z"})}),l.jsx("defs",{children:l.jsx("clipPath",{children:l.jsx("path",{fill:"currentColor",d:"M0 0h24v24H0z"})})})]}),Lo=b.memo(ac,O),sc=Object.freeze(Object.defineProperty({__proto__:null,default:Lo},Symbol.toStringTag,{value:"Module"})),ic=e=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",viewBox:"0 0 48 48",...e,children:l.jsx("path",{d:"M21.05 33.1 35.2 18.95l-2.3-2.25-11.85 11.85-6-6-2.25 2.25ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Z"})}),qo=b.memo(ic,O),lc=Object.freeze(Object.defineProperty({__proto__:null,default:qo},Symbol.toStringTag,{value:"Module"})),cc=e=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"48",width:"48",fill:"currentColor",...e,children:l.jsx("path",{d:"M28.05 36 16 23.95 28.05 11.9l2.15 2.15-9.9 9.9 9.9 9.9Z"})}),Bo=b.memo(cc,O),uc=Object.freeze(Object.defineProperty({__proto__:null,default:Bo},Symbol.toStringTag,{value:"Module"})),dc=e=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"48",width:"48",fill:"currentColor",...e,children:l.jsx("path",{d:"m18.75 36-2.15-2.15 9.9-9.9-9.9-9.9 2.15-2.15L30.8 23.95Z"})}),Vo=b.memo(dc,O),fc=Object.freeze(Object.defineProperty({__proto__:null,default:Vo},Symbol.toStringTag,{value:"Module"})),hc=e=>l.jsx("svg",{width:42,height:42,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72",...e,children:l.jsx("path",{d:"M46.75 49.625a1.874 1.874 0 0 1-1.331-.544L35.5 39.144l-9.919 9.937a1.876 1.876 0 0 1-2.662 0 1.873 1.873 0 0 1 0-2.662l9.937-9.919-9.937-9.919a1.883 1.883 0 0 1 2.662-2.662l9.92 9.937 9.918-9.937a1.873 1.873 0 0 1 2.662 0 1.876 1.876 0 0 1 0 2.662l-9.937 9.92 9.937 9.918a1.876 1.876 0 0 1-1.33 3.206Z",fill:"currentColor"})}),Uo=b.memo(hc,O),mc=Object.freeze(Object.defineProperty({__proto__:null,default:Uo},Symbol.toStringTag,{value:"Module"})),pc=e=>l.jsx("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:l.jsx("path",{d:"M9.161 5.889v2.753H7V12h2.161v10h4.442V12h2.977s.28-1.614.417-3.38h-3.379V6.316a.963.963 0 0 1 .332-.558c.174-.146.396-.233.63-.248H17V2h-3.275C9.063 2 9.173 5.37 9.173 5.889h-.012Z",fill:"currentColor"})}),Fo=b.memo(pc,O),gc=Object.freeze(Object.defineProperty({__proto__:null,default:Fo},Symbol.toStringTag,{value:"Module"})),bc=e=>l.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...e,children:l.jsx("path",{fill:"#3b5998",strokeMiterlimit:"10",strokeWidth:"0",d:"M147.5 254.3V139.1h38.7l6-45h-44.7V65.2c0-13 3.6-21.9 22.3-21.9h23.7V3.2c-11.6-1.2-23.1-1.8-34.7-1.8-34.3 0-57.8 20.9-57.8 59.4V94H62.2v45.1H101v115.2h46.5z"})}),zo=b.memo(bc,O),vc=Object.freeze(Object.defineProperty({__proto__:null,default:zo},Symbol.toStringTag,{value:"Module"})),yc=e=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,viewBox:"0 0 24 25",fill:"none",...e,children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12.5001C2 17.4501 5.6 21.5501 10.35 22.4001L10.4094 22.3515C10.4063 22.3509 10.4032 22.3503 10.4001 22.3498V15.2998H7.90015V12.4998H10.4001V10.2998C10.4001 7.79978 12.0001 6.39978 14.3001 6.39978C15.0001 6.39978 15.8001 6.49978 16.5001 6.59978V9.14978H15.2001C14.0001 9.14978 13.7001 9.74978 13.7001 10.5498V12.4998H16.3501L15.9001 15.2998H13.7001V22.3498C13.6696 22.3553 13.639 22.3608 13.6084 22.366L13.65 22.4001C18.4 21.5501 22 17.4501 22 12.5001C22 7.00006 17.5 2.50006 12 2.50006C6.5 2.50006 2 7.00006 2 12.5001Z",fill:"currentColor"})}),Ho=b.memo(yc,O),xc=Object.freeze(Object.defineProperty({__proto__:null,default:Ho},Symbol.toStringTag,{value:"Module"})),wc=e=>l.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 67 67",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[l.jsx("path",{d:"M16.1339 8.5415C18.1397 10.0645 19.8152 11.9792 21.0587 14.1693C22.2848 16.2537 25.064 22.0491 22.5341 25.3227C19.6732 29.0215 11.3848 30.2721 11.3848 33.6807C11.3848 36.2473 15.0181 39.1736 16.9594 42.0386C18.0736 43.6842 18.6691 45.626 18.6691 47.6133C18.6691 49.6006 18.0736 51.5423 16.9594 53.1879C16.0541 54.6088 14.817 55.7884 13.3547 56.6251",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M57.8289 14.8058C52.7905 17.106 47.4837 18.766 42.0327 19.747C39.1227 19.9555 38.6895 17.5605 36.4621 14.1724C34.7905 11.6302 30.8874 8.45055 30.8874 5.81443C30.8648 4.90303 30.9876 3.99386 31.2511 3.12109",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M33.6799 64.3334C50.6088 64.3334 64.3324 50.6098 64.3324 33.6809C64.3324 16.7519 50.6088 3.02832 33.6799 3.02832C16.751 3.02832 3.02734 16.7519 3.02734 33.6809C3.02734 50.6098 16.751 64.3334 33.6799 64.3334Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M53.2225 36.1983C53.341 44.781 42.1549 55.5094 36.4658 53.188C31.4796 51.1445 34.9944 47.2291 33.7193 36.1983C33.188 31.6127 38.0842 27.8404 43.4872 27.8404C45.8806 27.6839 48.24 28.4711 50.0597 30.0335C51.8795 31.5958 53.2225 32.8948 53.2225 36.1983Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Wo=b.memo(wc,O),$c=Object.freeze(Object.defineProperty({__proto__:null,default:Wo},Symbol.toStringTag,{value:"Module"})),Pc=e=>l.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...e,children:l.jsxs("g",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",children:[l.jsx("path",{d:"M253.5 75.7a92.8 92.8 0 0 0-5.8-30.7A62 62 0 0 0 233 22.6 62 62 0 0 0 210.7 8c-8-3-17.2-5.2-30.7-5.8-13.5-.6-17.8-.8-52.1-.8s-38.7.2-52.2.8A92.8 92.8 0 0 0 45 8c-8.4 3.2-16 8.2-22.4 14.6A62 62 0 0 0 8 45c-3 8-5.2 17.3-5.8 30.7a890 890 0 0 0-.8 52.2c0 34.3.2 38.6.8 52.1A92.8 92.8 0 0 0 8 210.7a62 62 0 0 0 14.5 22.4A62 62 0 0 0 45 247.7c8 3.1 17.3 5.2 30.7 5.9 13.5.6 17.8.7 52.2.7s38.6-.1 52-.7a92.8 92.8 0 0 0 30.8-6c17-6.5 30.4-20 37-36.9 3-8 5.2-17.2 5.8-30.7.7-13.5.8-17.8.8-52.1s-.1-38.7-.8-52.2zM230.8 179c-.6 12.3-2.6 19-4.4 23.4-4.2 11-13 19.8-24 24a69.9 69.9 0 0 1-23.4 4.4c-13.4.6-17.4.7-51.1.7-33.8 0-37.8-.1-51.1-.7-12.4-.6-19-2.6-23.5-4.4-5.5-2-10.5-5.2-14.5-9.4-4.2-4.1-7.5-9-9.5-14.6a69.9 69.9 0 0 1-4.4-23.4c-.6-13.4-.7-17.4-.7-51.1s.1-37.8.7-51.1c.6-12.4 2.6-19 4.4-23.5 2-5.5 5.2-10.5 9.4-14.6 4.1-4.2 9-7.4 14.6-9.4a69.9 69.9 0 0 1 23.5-4.4c13.3-.6 17.3-.7 51-.7 33.8 0 37.8.1 51.1.7 12.4.6 19 2.7 23.5 4.4 5.5 2 10.5 5.2 14.6 9.4 4.2 4.1 7.4 9.1 9.4 14.6a69.9 69.9 0 0 1 4.4 23.5c.6 13.3.7 17.3.7 51s-.1 37.8-.7 51.2z"}),l.jsx("path",{d:"M127.9 63a65 65 0 1 0 0 129.8 65 65 0 0 0 0-129.9zm0 107a42.2 42.2 0 1 1 0-84.3 42.2 42.2 0 0 1 0 84.3zM210.5 60.4a15.2 15.2 0 1 1-30.3 0 15.2 15.2 0 0 1 30.3 0z"})]})}),Go=b.memo(Pc,O),Cc=Object.freeze(Object.defineProperty({__proto__:null,default:Go},Symbol.toStringTag,{value:"Module"})),_c=e=>l.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...e,children:l.jsxs("g",{fill:"none",strokeMiterlimit:"10",strokeWidth:"0",transform:"matrix(2.8 0 0 2.8 1.4 1.4)",children:[l.jsxs("linearGradient",{id:"a",x1:"7.6",x2:"82.4",y1:"9.6",y2:"84.4",gradientTransform:"matrix(1 0 0 -1 0 92)",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{offset:"0%",stopColor:"#ffd600"}),l.jsx("stop",{offset:"50%",stopColor:"#ff0100"}),l.jsx("stop",{offset:"100%",stopColor:"#d800b9"})]}),l.jsx("path",{fill:"url(#a)",d:"M89.7 26.4c-.2-4.7-1-8-2-10.9a22 22 0 0 0-5.3-8 22 22 0 0 0-8-5.1A33 33 0 0 0 63.7.3C58.8 0 57.2 0 45 0S31.2 0 26.4.3c-4.7.2-8 1-10.9 2a22 22 0 0 0-8 5.3 22 22 0 0 0-5.1 8A33 33 0 0 0 .3 26.3C0 31.2 0 32.8 0 45c0 12.2 0 13.8.3 18.6.2 4.7 1 8 2 10.9a22 22 0 0 0 5.3 8c2.2 2.2 5 4 8 5.1a33 33 0 0 0 10.8 2.1c4.8.2 6.4.3 18.6.3s13.8 0 18.6-.3c4.7-.2 8-1 10.9-2a23 23 0 0 0 13.1-13.2 33 33 0 0 0 2.1-11c.2-4.7.3-6.3.3-18.5s0-13.8-.3-18.6zm-8 36.8c-.3 4.4-1 6.8-1.6 8.3-1.5 4-4.6 7-8.6 8.6-1.5.6-4 1.3-8.3 1.5-4.8.2-6.2.3-18.2.3s-13.4 0-18.2-.3a25 25 0 0 1-8.3-1.5 14 14 0 0 1-5.2-3.4 14 14 0 0 1-3.4-5.2c-.6-1.5-1.3-4-1.5-8.3A313 313 0 0 1 8 45c0-12 0-13.4.3-18.2a25 25 0 0 1 1.5-8.3 14 14 0 0 1 3.4-5.2 14 14 0 0 1 5.2-3.4c1.5-.6 4-1.3 8.3-1.5C31.6 8.2 33 8 45 8s13.4 0 18.2.3c4.4.2 6.8.9 8.3 1.5a14 14 0 0 1 5.2 3.4 14 14 0 0 1 3.4 5.2c.6 1.5 1.3 4 1.5 8.3.2 4.8.3 6.2.3 18.2s0 13.4-.3 18.2z"}),l.jsxs("linearGradient",{id:"b",x1:"28.7",x2:"61.3",y1:"30.7",y2:"63.3",gradientTransform:"matrix(1 0 0 -1 0 92)",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{offset:"0%",stopColor:"#ff6400"}),l.jsx("stop",{offset:"50%",stopColor:"#ff0100"}),l.jsx("stop",{offset:"100%",stopColor:"#fd0056"})]}),l.jsx("path",{fill:"url(#b)",d:"M45 21.9A23.1 23.1 0 1 0 45 68 23.1 23.1 0 0 0 45 22zM45 60a15 15 0 1 1 0-30 15 15 0 0 1 0 30z"}),l.jsxs("linearGradient",{id:"c",x1:"65.2",x2:"72.8",y1:"67.2",y2:"74.8",gradientTransform:"matrix(1 0 0 -1 0 92)",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{offset:"0%",stopColor:"#f30072"}),l.jsx("stop",{offset:"100%",stopColor:"#e50097"})]}),l.jsx("path",{fill:"url(#c)",d:"M74.4 21a5.4 5.4 0 1 1-10.8 0 5.4 5.4 0 0 1 10.8 0z"})]})}),Yo=b.memo(_c,O),Rc=Object.freeze(Object.defineProperty({__proto__:null,default:Yo},Symbol.toStringTag,{value:"Module"})),jc=e=>l.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...e,children:l.jsxs("g",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",children:[l.jsx("path",{d:"M61.4 254.3A59.8 59.8 0 0 1 19 151.8L65.8 105a11.2 11.2 0 0 1 15.9 16l-46.8 46.7a37.3 37.3 0 0 0 0 53.1 37.6 37.6 0 0 0 53 0l46.9-46.8a11.2 11.2 0 1 1 15.9 16l-46.8 46.7a59.8 59.8 0 0 1-42.5 17.6zM182 154a11.2 11.2 0 0 1-8-19.2L220.8 88a37.6 37.6 0 0 0-53-53.1l-46.9 46.8a11.2 11.2 0 0 1-15.9-16L151.8 19a59.6 59.6 0 0 1 85 0 60.1 60.1 0 0 1 0 84.9l-46.9 46.8c-2.2 2.2-5 3.3-8 3.3z"}),l.jsx("path",{d:"M72.6 194.3a11.2 11.2 0 0 1-8-19.1L175.3 64.7A11.2 11.2 0 1 1 191 80.6L80.6 191c-2.2 2.2-5.1 3.2-8 3.2z"})]})}),Jo=b.memo(jc,O),Mc=Object.freeze(Object.defineProperty({__proto__:null,default:Jo},Symbol.toStringTag,{value:"Module"})),Sc=e=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:19,viewBox:"0 0 18 19",fill:"none",...e,children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.79773C0 1.07677 0.604838 0.5 1.33064 0.5H16.6694C17.3952 0.5 18 1.07677 18 1.79773V17.2023C18 17.9232 17.3952 18.5 16.6694 18.5H1.33064C0.604838 18.5 0 17.9232 0 17.2023V1.79773ZM5.44373 15.5677V7.44492H2.73405V15.5677H5.44373ZM4.08889 6.31541C5.03244 6.31541 5.63728 5.69058 5.63728 4.92155C5.61308 4.1285 5.05663 3.52769 4.11308 3.52769C3.19373 3.52769 2.5647 4.1285 2.5647 4.92155C2.5647 5.69058 3.14534 6.31541 4.08889 6.31541ZM9.65304 15.5677H6.94336C6.94336 15.5677 6.99175 8.18991 6.94336 7.44492H9.67723V8.58586C9.66903 8.59819 9.66097 8.6104 9.65304 8.62249H9.67723V8.58586C10.0439 8.03441 10.6772 7.25266 12.1208 7.25266C13.9111 7.25266 15.2417 8.4062 15.2417 10.9055V15.5677H12.5321V11.2179C12.5321 10.1365 12.145 9.39151 11.153 9.39151C10.403 9.39151 9.94336 9.89619 9.74981 10.3768C9.67723 10.5451 9.65304 10.7854 9.65304 11.0257V15.5677Z",fill:"currentColor"})}),Qo=b.memo(Sc,O),Tc=Object.freeze(Object.defineProperty({__proto__:null,default:Qo},Symbol.toStringTag,{value:"Module"})),Ec=e=>l.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...e,children:l.jsxs("g",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",transform:"matrix(2.8 0 0 2.8 1.4 1.4)",children:[l.jsx("path",{d:"M80.9 78.8H9c-5 0-9.1-4.1-9.1-9.1V20.3c0-5 4-9 9.1-9H81c5 0 9.1 4 9.1 9v49.4c0 5-4 9-9.1 9zM9 17.2A3.1 3.1 0 0 0 6 20.3v49.4c0 1.7 1.4 3 3.1 3H81c1.7 0 3.1-1.3 3.1-3V20.3c0-1.7-1.4-3-3.1-3H9z"}),l.jsx("path",{d:"M45 55.4c-5.4 0-10.6-2.3-14.2-6.3l-28.3-31 4.4-4 28.3 31c2.5 2.8 6 4.3 9.8 4.3 3.8 0 7.3-1.5 9.8-4.3l28.3-31 4.4 4-28.3 31c-3.6 4-8.8 6.3-14.2 6.3z"}),l.jsx("rect",{width:"39",height:"6",x:"-1",y:"57.2",rx:"0",ry:"0",transform:"rotate(-45.1 18.5 60.2)"}),l.jsx("rect",{width:"6",height:"39",x:"68.5",y:"40.7",rx:"0",ry:"0",transform:"rotate(-44.8 71.5 60.2)"})]})}),Ko=b.memo(Ec,O),kc=Object.freeze(Object.defineProperty({__proto__:null,default:Ko},Symbol.toStringTag,{value:"Module"})),Dc=e=>l.jsxs("svg",{height:48,width:48,fill:"currentColor",...e,xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("ellipse",{cx:"26",cy:"24.095",rx:"26",ry:"23.547",fill:"#fff"}),l.jsx("path",{d:"M37.742 24.095H14.258M26 13.46V34.73 13.46Z",stroke:"#9E9E9E",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Zo=b.memo(Dc,O),Ic=Object.freeze(Object.defineProperty({__proto__:null,default:Zo},Symbol.toStringTag,{value:"Module"})),Oc=e=>l.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...e,children:l.jsx("path",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",d:"M199.75 145.13a54.45 54.45 0 0 0-43.54 21.82l-47.88-23.93c1.4-4.82 2.2-9.9 2.2-15.17a54.3 54.3 0 0 0-2.2-15.16l47.88-23.93a54.45 54.45 0 0 0 43.54 21.82 54.61 54.61 0 0 0 54.56-54.56c0-30.08-24.48-54.56-54.56-54.56s-54.56 24.48-54.56 54.56c0 5.27.79 10.35 2.19 15.17L99.5 95.11A54.45 54.45 0 0 0 55.97 73.3C25.88 73.3 1.4 97.77 1.4 127.86s24.47 54.56 54.56 54.56c17.79 0 33.56-8.6 43.53-21.82l47.88 23.92a54.32 54.32 0 0 0-2.2 15.17c0 30.09 24.48 54.56 54.57 54.56s54.56-24.47 54.56-54.56a54.62 54.62 0 0 0-54.56-54.56zm0-124c19.24 0 34.89 15.65 34.89 34.9s-15.65 34.88-34.9 34.88-34.88-15.65-34.88-34.89 15.65-34.89 34.89-34.89zM55.97 162.75c-19.24 0-34.9-15.65-34.9-34.9s15.66-34.88 34.9-34.88 34.88 15.65 34.88 34.89-15.65 34.89-34.88 34.89zm143.78 71.83a34.93 34.93 0 0 1-34.9-34.89c0-19.24 15.66-34.89 34.9-34.89s34.89 15.65 34.89 34.9a34.93 34.93 0 0 1-34.9 34.88z"})}),Xo=b.memo(Oc,O),Nc=Object.freeze(Object.defineProperty({__proto__:null,default:Xo},Symbol.toStringTag,{value:"Module"})),Ac=e=>l.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...e,children:l.jsx("path",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",d:"M81 231A147 147 0 0 0 228 76c11-7 19-16 26-27-9 5-19 7-29 9 10-7 18-17 22-29-10 6-21 10-33 12a52 52 0 0 0-88 48C83 87 45 66 19 35a52 52 0 0 0 16 69c-8 0-16-3-23-7v1c0 25 17 46 41 51a52 52 0 0 1-23 1c6 20 26 35 48 36a104 104 0 0 1-77 21c23 15 51 24 80 24"})}),ea=b.memo(Ac,O),Lc=Object.freeze(Object.defineProperty({__proto__:null,default:ea},Symbol.toStringTag,{value:"Module"})),qc=e=>l.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...e,children:l.jsx("path",{fill:"#1da1f2",strokeMiterlimit:"10",strokeWidth:"0",d:"M81 230.6c95.4 0 147.6-79 147.6-147.6 0-2.3 0-4.5-.2-6.7 10.2-7.4 19-16.5 25.9-26.9-9.5 4.2-19.5 7-29.8 8.2a52 52 0 0 0 22.8-28.7 104 104 0 0 1-33 12.6A52 52 0 0 0 126 88.8C84.2 86.7 45.4 67 19 34.6a52 52 0 0 0 16 69.2 51.5 51.5 0 0 1-23.5-6.5v.7c0 24.7 17.4 46 41.6 50.9-7.6 2-15.6 2.4-23.4.9a52 52 0 0 0 48.5 36 104.1 104.1 0 0 1-76.8 21.5A146.9 146.9 0 0 0 81 230.6"})}),ta=b.memo(qc,O),Bc=Object.freeze(Object.defineProperty({__proto__:null,default:ta},Symbol.toStringTag,{value:"Module"})),Vc=e=>l.jsx("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:l.jsx("path",{d:"M17 21H7a4 4 0 0 1-4-4v-1a1 1 0 1 1 2 0v1a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-1a1 1 0 0 1 2 0v1a4 4 0 0 1-4 4Zm-5-4a1 1 0 0 1-1-1V6.41l-2.29 2.3a1.004 1.004 0 0 1-1.42-1.42l4-4a1 1 0 0 1 .33-.21A1 1 0 0 1 12 3a1 1 0 0 1 .38.08 1 1 0 0 1 .33.21l4 4a1.004 1.004 0 1 1-1.42 1.42L13 6.41V16a1 1 0 0 1-1 1Z",fill:"currentColor"})}),ra=b.memo(Vc,O),Uc=Object.freeze(Object.defineProperty({__proto__:null,default:ra},Symbol.toStringTag,{value:"Module"})),Fc=e=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,viewBox:"0 0 24 25",fill:"none",...e,children:l.jsx("path",{d:"M14.119 11.7052L20.4486 4.5H18.9492L13.4509 10.7549L9.0626 4.5H4L10.6374 13.9594L4 21.5142H5.4994L11.3021 14.9074L15.9374 21.5142H21M6.04057 5.60727H8.34407L18.9481 20.4613H16.644",fill:"currentColor"})}),na=b.memo(Fc,O),zc=Object.freeze(Object.defineProperty({__proto__:null,default:na},Symbol.toStringTag,{value:"Module"})),Hc=e=>l.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...e,children:l.jsx("path",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",d:"M249 67c-3-11-11-19-22-22-20-6-99-6-99-6s-79 0-99 6C18 48 10 56 7 67c-6 20-6 61-6 61s0 41 6 61c3 11 11 19 22 22 20 5 99 5 99 5s79 0 99-5c11-3 19-11 22-22 5-20 5-61 5-61s0-41-5-61zm-146 99V90l65 38-65 38z"})}),oa=b.memo(Hc,O),Wc=Object.freeze(Object.defineProperty({__proto__:null,default:oa},Symbol.toStringTag,{value:"Module"})),Gc=e=>l.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...e,children:l.jsxs("g",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",children:[l.jsx("path",{fill:"red",d:"M249.02 66.99a31.68 31.68 0 0 0-22.36-22.36c-19.72-5.29-98.8-5.29-98.8-5.29s-79.09 0-98.8 5.29A31.68 31.68 0 0 0 6.68 66.99c-5.28 19.72-5.28 60.87-5.28 60.87s0 41.15 5.28 60.87a31.68 31.68 0 0 0 22.36 22.36c19.72 5.28 98.8 5.28 98.8 5.28s79.1 0 98.81-5.28a31.68 31.68 0 0 0 22.36-22.36c5.29-19.72 5.29-60.87 5.29-60.87s0-41.15-5.29-60.87z"}),l.jsx("path",{fill:"#fff",d:"m102.57 165.8 65.7-37.94-65.7-37.94z"})]})}),aa=b.memo(Gc,O),Yc=Object.freeze(Object.defineProperty({__proto__:null,default:aa},Symbol.toStringTag,{value:"Module"})),[Jc,Qc]=Nn();function Kc({children:e}){const[t,r]=b.useState(!1);b.useEffect(()=>{r(!0)},[]);const n=b.useMemo(()=>({isClient:t}),[t]);return l.jsx(Qc,{value:n,children:e})}const mt=(e,t,r="sharing_tool")=>`?utm_source=${e}&utm_medium=${t}&utm_campaign=${r}`,pt=()=>{const[e,t]=b.useState(),[r,n]=b.useState();return b.useEffect(()=>{t(window.location.href),n(window.document.title)},[]),{windowLocation:e,windowTitle:r}},Zc=(e,t,r)=>{const{windowLocation:n,windowTitle:o}=pt(),a=r??n,i=mt(e,t);return`https://www.facebook.com/sharer.php?u=${`${a}${i}`}&t=${o}`},Xc=(e,t,r)=>{const{windowLocation:n,windowTitle:o}=pt(),a=r??n,i=mt(e,t),s=`${a}${i}`;return`mailto:?to=&body=${o}%20${s}`},eu=(e,t,r)=>{const{windowLocation:n}=pt(),o=r??n,a=mt(e,t);return`https://twitter.com/intent/tweet?text=${`${o}${a}`}`};exports.Accordion=Ss;exports.ArrowDown=No;exports.ArrowLeft=Ao;exports.ArrowRight=Lo;exports.Box=Q;exports.BoxWithForwardRef=ct;exports.Button=ve;exports.ButtonWithForwardRef=Ce;exports.Calendar=xo;exports.Check=qo;exports.Checkbox=Js;exports.CheckboxGroup=ri;exports.CheckboxGroupItem=oi;exports.ChevronLeft=Bo;exports.ChevronRight=Vo;exports.CloseBtn=Uo;exports.Date=zs;exports.DatePicker=el;exports.DirectusImg=ec;exports.Facebook=Fo;exports.FacebookColored=zo;exports.FacebookRounded=Ho;exports.Globe=Wo;exports.Icon=ee;exports.Img=Oo;exports.Instagram=Go;exports.InstagramColored=Yo;exports.IsClientContextProvider=Kc;exports.Lightbox=Bs;exports.Link=Jo;exports.LinkedIn=Qo;exports.Mail=Ko;exports.Menu=dl;exports.MenuContextProvider=il;exports.MenuItems=Gl;exports.MenuSidePanel=fl;exports.Modal=ar;exports.Plus=Zo;exports.Popover=Us;exports.Radio=Co;exports.RadioGroup=al;exports.RadioGroupProvider=$o;exports.ReactHookFormInput=si;exports.ReactHookFormRadio=tl;exports.ReactHookFormSelect=Ys;exports.ReactHookFormTextArea=ai;exports.RenderWithSlide=qn;exports.Select=Vn;exports.Share=Xo;exports.ShareButton=Es;exports.SidePanel=Bn;exports.SidePanelContextProvider=Ln;exports.TabContainer=Ro;exports.TextArea=Gn;exports.TextInputField=Yn;exports.ThemeContextProvider=Tn;exports.ThemeProvider=Ps;exports.Twitter=ea;exports.TwitterColored=ta;exports.Typography=F;exports.Upload=ra;exports.WysiwygBlock=Fs;exports.X=na;exports.YouTube=oa;exports.YouTubeColored=aa;exports.createThemeProvider=En;exports.generateUtmTags=mt;exports.makeTheme=Mn;exports.useFacebookShareUrl=Zc;exports.useIsClient=Jc;exports.useMailToShareUrl=Xc;exports.useMenu=Re;exports.useRadioGroupCtx=Po;exports.useSidePanel=or;exports.useTheme=Sn;exports.useThemeContext=R;exports.useTwitterShareUrl=eu;exports.useWindow=pt;
101
+ */function fu(t,e,r){const n=t*4+1,o=6+e*(5+n),i=[137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,0,0,t>>8,t&255,0,0,e>>8,e&255,8,6,0,0,0,0,0,0,0,o>>>24,o>>16&255,o>>8&255,o&255,73,68,65,84,120,1],s=[0,498536548,997073096,651767980,1994146192,1802195444,1303535960,1342533948,-306674912,-267414716,-690576408,-882789492,-1687895376,-2032938284,-1609899400,-1111625188];let a=1,l=0;for(let d=0,p=0,f=n-1;d<e;d++,f+=n-1)for(i.push(d+1<e?0:1,n&255,n>>8,~n&255,n>>8^255,0),l=(l+a)%65521;p<f;p++){const m=r[p]&255;i.push(m),a=(a+m)%65521,l=(l+a)%65521}i.push(l>>8,l&255,a>>8,a&255,0,0,0,0,0,0,0,0,73,69,78,68,174,66,96,130);for(let[d,p]of[[12,29],[37,41+o]]){let f=-1;for(let m=d;m<p;m++)f^=i[m],f=f>>>4^s[f&15],f=f>>>4^s[f&15];f=~f,i[p++]=f>>>24,i[p++]=f>>16&255,i[p++]=f>>8&255,i[p++]=f&255}return`data:image/png;base64,${typeof Buffer<"u"?Buffer.from(new Uint8Array(i)).toString("base64"):btoa(String.fromCharCode(...i))}`}function hu(t){let{PI:e,min:r,max:n,cos:o,round:i}=Math,s=t[0]|t[1]<<8|t[2]<<16,a=t[3]|t[4]<<8,l=(s&63)/63,u=(s>>6&63)/31.5-1,d=(s>>12&63)/31.5-1,p=(s>>18&31)/31,f=s>>23,m=(a>>3&63)/63,P=(a>>9&63)/63,g=a>>15,b=n(3,g?f?5:7:a&7),$=n(3,g?a&7:f?5:7),M=f?(t[5]&15)/15:1,S=(t[5]>>4)/15,v=f?6:5,j=0,E=(_,V,ne)=>{let N=[];for(let G=0;G<V;G++)for(let U=G?0:1;U*V<_*(V-G);U++)N.push(((t[v+(j>>1)]>>((j++&1)<<2)&15)/7.5-1)*ne);return N},D=E(b,$,p),h=E(3,3,m*1.25),R=E(3,3,P*1.25),w=f&&E(5,5,S),T=pu(t),A=i(T>1?32:32*T),x=i(T>1?32/T:32),C=new Uint8Array(A*x*4),B=[],W=[];for(let _=0,V=0;_<x;_++)for(let ne=0;ne<A;ne++,V+=4){let N=l,G=u,U=d,He=M;for(let K=0,Y=n(b,f?5:3);K<Y;K++)B[K]=o(e/A*(ne+.5)*K);for(let K=0,Y=n($,f?5:3);K<Y;K++)W[K]=o(e/x*(_+.5)*K);for(let K=0,Y=0;K<$;K++)for(let ee=K?0:1,re=W[K]*2;ee*$<b*($-K);ee++,Y++)N+=D[Y]*B[ee]*re;for(let K=0,Y=0;K<3;K++)for(let ee=K?0:1,re=W[K]*2;ee<3-K;ee++,Y++){let te=B[ee]*re;G+=h[Y]*te,U+=R[Y]*te}if(f)for(let K=0,Y=0;K<5;K++)for(let ee=K?0:1,re=W[K]*2;ee<5-K;ee++,Y++)He+=w[Y]*B[ee]*re;let z=N-2/3*G,ze=(3*N-z+U)/2,le=ze-U;C[V]=n(0,255*r(1,ze)),C[V+1]=n(0,255*r(1,le)),C[V+2]=n(0,255*r(1,z)),C[V+3]=n(0,255*r(1,He))}return{w:A,h:x,rgba:C}}function pu(t){let e=t[3],r=t[2]&128,n=t[4]&128,o=n?r?5:7:e&7,i=n?e&7:r?5:7;return o/i}function mu(t){const{w:e,h:r,rgba:n}=hu(du(t));return fu(e,r,n)}const wi=t=>{const{src:e,width:r,height:n,themeName:o="img",tokens:i,customTheme:s,...a}=t,l=I(o,i,s);if(typeof e=="object"){const{blurWidth:u,blurHeight:d,width:p,height:f,...m}=e,P={blurwidth:u,blurheight:d};return c.jsx(Kr,{className:l,...m,...a,...P,width:p??r,height:f??n})}return c.jsx(Kr,{width:r,height:n,className:l,src:e,...a})},gu=process.env.NEXT_PUBLIC_IMG_DOMAIN??"",bu=t=>{const{fit:e,customTheme:r,thumbhash:n,description:o,width:i,height:s,id:a,filenameDownload:l,...u}=t;if(!a||!l)return null;const p=(()=>{try{const f=new URL(`/assets/${a}/${l}`,`https://${gu}`);return f.searchParams.set("fit",e??"contain"),f}catch(f){return console.warn(f),null}})();return p==null?null:c.jsx(wi,{alt:o??"",...n?{blurDataURL:mu(n),placeholder:"blur"}:{},src:p.href,...u,width:i??void 0,height:s??void 0})},yu=t=>c.jsx("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:c.jsx("path",{d:"M17.728 13.66 12.388 19 7.05 13.66M12.4 5v14",stroke:"currentColor"})}),Pi=y.memo(yu,H),vu=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),xu=t=>c.jsxs("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:[c.jsx("g",{children:c.jsx("path",{d:"M.075 11.622a1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l8 8a1.004 1.004 0 0 0 1.42-1.42l-6.3-6.29h19.59a1 1 0 0 0 0-2H3.405l6.3-6.29a1 1 0 0 0 0-1.42 1 1 0 0 0-1.42 0l-8 8a1 1 0 0 0-.21.33Z"})}),c.jsx("defs",{children:c.jsx("clipPath",{children:c.jsx("path",{fill:"currentColor",d:"M0 0h24v24H0z"})})})]}),Ti=y.memo(xu,H),$u=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),wu=t=>c.jsxs("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:[c.jsx("g",{children:c.jsx("path",{d:"M23.92 12.38a1 1 0 0 0 0-.76 1 1 0 0 0-.21-.33l-8-8a1.003 1.003 0 1 0-1.42 1.42l6.3 6.29H1a1 1 0 1 0 0 2h19.59l-6.3 6.29a1 1 0 0 0 0 1.42 1.002 1.002 0 0 0 1.42 0l8-8c.091-.095.162-.207.21-.33Z"})}),c.jsx("defs",{children:c.jsx("clipPath",{children:c.jsx("path",{fill:"currentColor",d:"M0 0h24v24H0z"})})})]}),Ci=y.memo(wu,H),Pu=Object.freeze(Object.defineProperty({__proto__:null,default:Ci},Symbol.toStringTag,{value:"Module"})),Tu=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",viewBox:"0 0 48 48",...t,children:c.jsx("path",{d:"M21.05 33.1 35.2 18.95l-2.3-2.25-11.85 11.85-6-6-2.25 2.25ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Z"})}),Si=y.memo(Tu,H),Cu=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Su=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"48",width:"48",fill:"currentColor",...t,children:c.jsx("path",{d:"M28.05 36 16 23.95 28.05 11.9l2.15 2.15-9.9 9.9 9.9 9.9Z"})}),Ri=y.memo(Su,H),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),Eu=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"48",width:"48",fill:"currentColor",...t,children:c.jsx("path",{d:"m18.75 36-2.15-2.15 9.9-9.9-9.9-9.9 2.15-2.15L30.8 23.95Z"})}),Ei=y.memo(Eu,H),Mu=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),ju=t=>c.jsx("svg",{width:42,height:42,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72",...t,children:c.jsx("path",{d:"M46.75 49.625a1.874 1.874 0 0 1-1.331-.544L35.5 39.144l-9.919 9.937a1.876 1.876 0 0 1-2.662 0 1.873 1.873 0 0 1 0-2.662l9.937-9.919-9.937-9.919a1.883 1.883 0 0 1 2.662-2.662l9.92 9.937 9.918-9.937a1.873 1.873 0 0 1 2.662 0 1.876 1.876 0 0 1 0 2.662l-9.937 9.92 9.937 9.918a1.876 1.876 0 0 1-1.33 3.206Z",fill:"currentColor"})}),Mi=y.memo(ju,H),_u=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),ku=t=>c.jsx("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:c.jsx("path",{d:"M9.161 5.889v2.753H7V12h2.161v10h4.442V12h2.977s.28-1.614.417-3.38h-3.379V6.316a.963.963 0 0 1 .332-.558c.174-.146.396-.233.63-.248H17V2h-3.275C9.063 2 9.173 5.37 9.173 5.889h-.012Z",fill:"currentColor"})}),ji=y.memo(ku,H),Du=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Ou=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsx("path",{fill:"#3b5998",strokeMiterlimit:"10",strokeWidth:"0",d:"M147.5 254.3V139.1h38.7l6-45h-44.7V65.2c0-13 3.6-21.9 22.3-21.9h23.7V3.2c-11.6-1.2-23.1-1.8-34.7-1.8-34.3 0-57.8 20.9-57.8 59.4V94H62.2v45.1H101v115.2h46.5z"})}),_i=y.memo(Ou,H),Iu=Object.freeze(Object.defineProperty({__proto__:null,default:_i},Symbol.toStringTag,{value:"Module"})),Au=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,viewBox:"0 0 24 25",fill:"none",...t,children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12.5001C2 17.4501 5.6 21.5501 10.35 22.4001L10.4094 22.3515C10.4063 22.3509 10.4032 22.3503 10.4001 22.3498V15.2998H7.90015V12.4998H10.4001V10.2998C10.4001 7.79978 12.0001 6.39978 14.3001 6.39978C15.0001 6.39978 15.8001 6.49978 16.5001 6.59978V9.14978H15.2001C14.0001 9.14978 13.7001 9.74978 13.7001 10.5498V12.4998H16.3501L15.9001 15.2998H13.7001V22.3498C13.6696 22.3553 13.639 22.3608 13.6084 22.366L13.65 22.4001C18.4 21.5501 22 17.4501 22 12.5001C22 7.00006 17.5 2.50006 12 2.50006C6.5 2.50006 2 7.00006 2 12.5001Z",fill:"currentColor"})}),ki=y.memo(Au,H),Lu=Object.freeze(Object.defineProperty({__proto__:null,default:ki},Symbol.toStringTag,{value:"Module"})),Nu=t=>c.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 67 67",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[c.jsx("path",{d:"M16.1339 8.5415C18.1397 10.0645 19.8152 11.9792 21.0587 14.1693C22.2848 16.2537 25.064 22.0491 22.5341 25.3227C19.6732 29.0215 11.3848 30.2721 11.3848 33.6807C11.3848 36.2473 15.0181 39.1736 16.9594 42.0386C18.0736 43.6842 18.6691 45.626 18.6691 47.6133C18.6691 49.6006 18.0736 51.5423 16.9594 53.1879C16.0541 54.6088 14.817 55.7884 13.3547 56.6251",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M57.8289 14.8058C52.7905 17.106 47.4837 18.766 42.0327 19.747C39.1227 19.9555 38.6895 17.5605 36.4621 14.1724C34.7905 11.6302 30.8874 8.45055 30.8874 5.81443C30.8648 4.90303 30.9876 3.99386 31.2511 3.12109",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M33.6799 64.3334C50.6088 64.3334 64.3324 50.6098 64.3324 33.6809C64.3324 16.7519 50.6088 3.02832 33.6799 3.02832C16.751 3.02832 3.02734 16.7519 3.02734 33.6809C3.02734 50.6098 16.751 64.3334 33.6799 64.3334Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M53.2225 36.1983C53.341 44.781 42.1549 55.5094 36.4658 53.188C31.4796 51.1445 34.9944 47.2291 33.7193 36.1983C33.188 31.6127 38.0842 27.8404 43.4872 27.8404C45.8806 27.6839 48.24 28.4711 50.0597 30.0335C51.8795 31.5958 53.2225 32.8948 53.2225 36.1983Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Di=y.memo(Nu,H),Bu=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),Ku=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsxs("g",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",children:[c.jsx("path",{d:"M253.5 75.7a92.8 92.8 0 0 0-5.8-30.7A62 62 0 0 0 233 22.6 62 62 0 0 0 210.7 8c-8-3-17.2-5.2-30.7-5.8-13.5-.6-17.8-.8-52.1-.8s-38.7.2-52.2.8A92.8 92.8 0 0 0 45 8c-8.4 3.2-16 8.2-22.4 14.6A62 62 0 0 0 8 45c-3 8-5.2 17.3-5.8 30.7a890 890 0 0 0-.8 52.2c0 34.3.2 38.6.8 52.1A92.8 92.8 0 0 0 8 210.7a62 62 0 0 0 14.5 22.4A62 62 0 0 0 45 247.7c8 3.1 17.3 5.2 30.7 5.9 13.5.6 17.8.7 52.2.7s38.6-.1 52-.7a92.8 92.8 0 0 0 30.8-6c17-6.5 30.4-20 37-36.9 3-8 5.2-17.2 5.8-30.7.7-13.5.8-17.8.8-52.1s-.1-38.7-.8-52.2zM230.8 179c-.6 12.3-2.6 19-4.4 23.4-4.2 11-13 19.8-24 24a69.9 69.9 0 0 1-23.4 4.4c-13.4.6-17.4.7-51.1.7-33.8 0-37.8-.1-51.1-.7-12.4-.6-19-2.6-23.5-4.4-5.5-2-10.5-5.2-14.5-9.4-4.2-4.1-7.5-9-9.5-14.6a69.9 69.9 0 0 1-4.4-23.4c-.6-13.4-.7-17.4-.7-51.1s.1-37.8.7-51.1c.6-12.4 2.6-19 4.4-23.5 2-5.5 5.2-10.5 9.4-14.6 4.1-4.2 9-7.4 14.6-9.4a69.9 69.9 0 0 1 23.5-4.4c13.3-.6 17.3-.7 51-.7 33.8 0 37.8.1 51.1.7 12.4.6 19 2.7 23.5 4.4 5.5 2 10.5 5.2 14.6 9.4 4.2 4.1 7.4 9.1 9.4 14.6a69.9 69.9 0 0 1 4.4 23.5c.6 13.3.7 17.3.7 51s-.1 37.8-.7 51.2z"}),c.jsx("path",{d:"M127.9 63a65 65 0 1 0 0 129.8 65 65 0 0 0 0-129.9zm0 107a42.2 42.2 0 1 1 0-84.3 42.2 42.2 0 0 1 0 84.3zM210.5 60.4a15.2 15.2 0 1 1-30.3 0 15.2 15.2 0 0 1 30.3 0z"})]})}),Oi=y.memo(Ku,H),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),qu=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsxs("g",{fill:"none",strokeMiterlimit:"10",strokeWidth:"0",transform:"matrix(2.8 0 0 2.8 1.4 1.4)",children:[c.jsxs("linearGradient",{id:"a",x1:"7.6",x2:"82.4",y1:"9.6",y2:"84.4",gradientTransform:"matrix(1 0 0 -1 0 92)",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{offset:"0%",stopColor:"#ffd600"}),c.jsx("stop",{offset:"50%",stopColor:"#ff0100"}),c.jsx("stop",{offset:"100%",stopColor:"#d800b9"})]}),c.jsx("path",{fill:"url(#a)",d:"M89.7 26.4c-.2-4.7-1-8-2-10.9a22 22 0 0 0-5.3-8 22 22 0 0 0-8-5.1A33 33 0 0 0 63.7.3C58.8 0 57.2 0 45 0S31.2 0 26.4.3c-4.7.2-8 1-10.9 2a22 22 0 0 0-8 5.3 22 22 0 0 0-5.1 8A33 33 0 0 0 .3 26.3C0 31.2 0 32.8 0 45c0 12.2 0 13.8.3 18.6.2 4.7 1 8 2 10.9a22 22 0 0 0 5.3 8c2.2 2.2 5 4 8 5.1a33 33 0 0 0 10.8 2.1c4.8.2 6.4.3 18.6.3s13.8 0 18.6-.3c4.7-.2 8-1 10.9-2a23 23 0 0 0 13.1-13.2 33 33 0 0 0 2.1-11c.2-4.7.3-6.3.3-18.5s0-13.8-.3-18.6zm-8 36.8c-.3 4.4-1 6.8-1.6 8.3-1.5 4-4.6 7-8.6 8.6-1.5.6-4 1.3-8.3 1.5-4.8.2-6.2.3-18.2.3s-13.4 0-18.2-.3a25 25 0 0 1-8.3-1.5 14 14 0 0 1-5.2-3.4 14 14 0 0 1-3.4-5.2c-.6-1.5-1.3-4-1.5-8.3A313 313 0 0 1 8 45c0-12 0-13.4.3-18.2a25 25 0 0 1 1.5-8.3 14 14 0 0 1 3.4-5.2 14 14 0 0 1 5.2-3.4c1.5-.6 4-1.3 8.3-1.5C31.6 8.2 33 8 45 8s13.4 0 18.2.3c4.4.2 6.8.9 8.3 1.5a14 14 0 0 1 5.2 3.4 14 14 0 0 1 3.4 5.2c.6 1.5 1.3 4 1.5 8.3.2 4.8.3 6.2.3 18.2s0 13.4-.3 18.2z"}),c.jsxs("linearGradient",{id:"b",x1:"28.7",x2:"61.3",y1:"30.7",y2:"63.3",gradientTransform:"matrix(1 0 0 -1 0 92)",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{offset:"0%",stopColor:"#ff6400"}),c.jsx("stop",{offset:"50%",stopColor:"#ff0100"}),c.jsx("stop",{offset:"100%",stopColor:"#fd0056"})]}),c.jsx("path",{fill:"url(#b)",d:"M45 21.9A23.1 23.1 0 1 0 45 68 23.1 23.1 0 0 0 45 22zM45 60a15 15 0 1 1 0-30 15 15 0 0 1 0 30z"}),c.jsxs("linearGradient",{id:"c",x1:"65.2",x2:"72.8",y1:"67.2",y2:"74.8",gradientTransform:"matrix(1 0 0 -1 0 92)",gradientUnits:"userSpaceOnUse",children:[c.jsx("stop",{offset:"0%",stopColor:"#f30072"}),c.jsx("stop",{offset:"100%",stopColor:"#e50097"})]}),c.jsx("path",{fill:"url(#c)",d:"M74.4 21a5.4 5.4 0 1 1-10.8 0 5.4 5.4 0 0 1 10.8 0z"})]})}),Ii=y.memo(qu,H),Uu=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),Vu=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsxs("g",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",children:[c.jsx("path",{d:"M61.4 254.3A59.8 59.8 0 0 1 19 151.8L65.8 105a11.2 11.2 0 0 1 15.9 16l-46.8 46.7a37.3 37.3 0 0 0 0 53.1 37.6 37.6 0 0 0 53 0l46.9-46.8a11.2 11.2 0 1 1 15.9 16l-46.8 46.7a59.8 59.8 0 0 1-42.5 17.6zM182 154a11.2 11.2 0 0 1-8-19.2L220.8 88a37.6 37.6 0 0 0-53-53.1l-46.9 46.8a11.2 11.2 0 0 1-15.9-16L151.8 19a59.6 59.6 0 0 1 85 0 60.1 60.1 0 0 1 0 84.9l-46.9 46.8c-2.2 2.2-5 3.3-8 3.3z"}),c.jsx("path",{d:"M72.6 194.3a11.2 11.2 0 0 1-8-19.1L175.3 64.7A11.2 11.2 0 1 1 191 80.6L80.6 191c-2.2 2.2-5.1 3.2-8 3.2z"})]})}),Ai=y.memo(Vu,H),Hu=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),zu=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:19,viewBox:"0 0 18 19",fill:"none",...t,children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.79773C0 1.07677 0.604838 0.5 1.33064 0.5H16.6694C17.3952 0.5 18 1.07677 18 1.79773V17.2023C18 17.9232 17.3952 18.5 16.6694 18.5H1.33064C0.604838 18.5 0 17.9232 0 17.2023V1.79773ZM5.44373 15.5677V7.44492H2.73405V15.5677H5.44373ZM4.08889 6.31541C5.03244 6.31541 5.63728 5.69058 5.63728 4.92155C5.61308 4.1285 5.05663 3.52769 4.11308 3.52769C3.19373 3.52769 2.5647 4.1285 2.5647 4.92155C2.5647 5.69058 3.14534 6.31541 4.08889 6.31541ZM9.65304 15.5677H6.94336C6.94336 15.5677 6.99175 8.18991 6.94336 7.44492H9.67723V8.58586C9.66903 8.59819 9.66097 8.6104 9.65304 8.62249H9.67723V8.58586C10.0439 8.03441 10.6772 7.25266 12.1208 7.25266C13.9111 7.25266 15.2417 8.4062 15.2417 10.9055V15.5677H12.5321V11.2179C12.5321 10.1365 12.145 9.39151 11.153 9.39151C10.403 9.39151 9.94336 9.89619 9.74981 10.3768C9.67723 10.5451 9.65304 10.7854 9.65304 11.0257V15.5677Z",fill:"currentColor"})}),Li=y.memo(zu,H),Wu=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),Gu=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsxs("g",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",transform:"matrix(2.8 0 0 2.8 1.4 1.4)",children:[c.jsx("path",{d:"M80.9 78.8H9c-5 0-9.1-4.1-9.1-9.1V20.3c0-5 4-9 9.1-9H81c5 0 9.1 4 9.1 9v49.4c0 5-4 9-9.1 9zM9 17.2A3.1 3.1 0 0 0 6 20.3v49.4c0 1.7 1.4 3 3.1 3H81c1.7 0 3.1-1.3 3.1-3V20.3c0-1.7-1.4-3-3.1-3H9z"}),c.jsx("path",{d:"M45 55.4c-5.4 0-10.6-2.3-14.2-6.3l-28.3-31 4.4-4 28.3 31c2.5 2.8 6 4.3 9.8 4.3 3.8 0 7.3-1.5 9.8-4.3l28.3-31 4.4 4-28.3 31c-3.6 4-8.8 6.3-14.2 6.3z"}),c.jsx("rect",{width:"39",height:"6",x:"-1",y:"57.2",rx:"0",ry:"0",transform:"rotate(-45.1 18.5 60.2)"}),c.jsx("rect",{width:"6",height:"39",x:"68.5",y:"40.7",rx:"0",ry:"0",transform:"rotate(-44.8 71.5 60.2)"})]})}),Ni=y.memo(Gu,H),Yu=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),Ju=t=>c.jsxs("svg",{height:48,width:48,fill:"currentColor",...t,xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("ellipse",{cx:"26",cy:"24.095",rx:"26",ry:"23.547",fill:"#fff"}),c.jsx("path",{d:"M37.742 24.095H14.258M26 13.46V34.73 13.46Z",stroke:"#9E9E9E",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Bi=y.memo(Ju,H),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),Xu=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsx("path",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",d:"M199.75 145.13a54.45 54.45 0 0 0-43.54 21.82l-47.88-23.93c1.4-4.82 2.2-9.9 2.2-15.17a54.3 54.3 0 0 0-2.2-15.16l47.88-23.93a54.45 54.45 0 0 0 43.54 21.82 54.61 54.61 0 0 0 54.56-54.56c0-30.08-24.48-54.56-54.56-54.56s-54.56 24.48-54.56 54.56c0 5.27.79 10.35 2.19 15.17L99.5 95.11A54.45 54.45 0 0 0 55.97 73.3C25.88 73.3 1.4 97.77 1.4 127.86s24.47 54.56 54.56 54.56c17.79 0 33.56-8.6 43.53-21.82l47.88 23.92a54.32 54.32 0 0 0-2.2 15.17c0 30.09 24.48 54.56 54.57 54.56s54.56-24.47 54.56-54.56a54.62 54.62 0 0 0-54.56-54.56zm0-124c19.24 0 34.89 15.65 34.89 34.9s-15.65 34.88-34.9 34.88-34.88-15.65-34.88-34.89 15.65-34.89 34.89-34.89zM55.97 162.75c-19.24 0-34.9-15.65-34.9-34.9s15.66-34.88 34.9-34.88 34.88 15.65 34.88 34.89-15.65 34.89-34.88 34.89zm143.78 71.83a34.93 34.93 0 0 1-34.9-34.89c0-19.24 15.66-34.89 34.9-34.89s34.89 15.65 34.89 34.9a34.93 34.93 0 0 1-34.9 34.88z"})}),Ki=y.memo(Xu,H),Zu=Object.freeze(Object.defineProperty({__proto__:null,default:Ki},Symbol.toStringTag,{value:"Module"})),ed=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsx("path",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",d:"M81 231A147 147 0 0 0 228 76c11-7 19-16 26-27-9 5-19 7-29 9 10-7 18-17 22-29-10 6-21 10-33 12a52 52 0 0 0-88 48C83 87 45 66 19 35a52 52 0 0 0 16 69c-8 0-16-3-23-7v1c0 25 17 46 41 51a52 52 0 0 1-23 1c6 20 26 35 48 36a104 104 0 0 1-77 21c23 15 51 24 80 24"})}),Fi=y.memo(ed,H),td=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"})),rd=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsx("path",{fill:"#1da1f2",strokeMiterlimit:"10",strokeWidth:"0",d:"M81 230.6c95.4 0 147.6-79 147.6-147.6 0-2.3 0-4.5-.2-6.7 10.2-7.4 19-16.5 25.9-26.9-9.5 4.2-19.5 7-29.8 8.2a52 52 0 0 0 22.8-28.7 104 104 0 0 1-33 12.6A52 52 0 0 0 126 88.8C84.2 86.7 45.4 67 19 34.6a52 52 0 0 0 16 69.2 51.5 51.5 0 0 1-23.5-6.5v.7c0 24.7 17.4 46 41.6 50.9-7.6 2-15.6 2.4-23.4.9a52 52 0 0 0 48.5 36 104.1 104.1 0 0 1-76.8 21.5A146.9 146.9 0 0 0 81 230.6"})}),qi=y.memo(rd,H),nd=Object.freeze(Object.defineProperty({__proto__:null,default:qi},Symbol.toStringTag,{value:"Module"})),od=t=>c.jsx("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:c.jsx("path",{d:"M17 21H7a4 4 0 0 1-4-4v-1a1 1 0 1 1 2 0v1a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-1a1 1 0 0 1 2 0v1a4 4 0 0 1-4 4Zm-5-4a1 1 0 0 1-1-1V6.41l-2.29 2.3a1.004 1.004 0 0 1-1.42-1.42l4-4a1 1 0 0 1 .33-.21A1 1 0 0 1 12 3a1 1 0 0 1 .38.08 1 1 0 0 1 .33.21l4 4a1.004 1.004 0 1 1-1.42 1.42L13 6.41V16a1 1 0 0 1-1 1Z",fill:"currentColor"})}),Ui=y.memo(od,H),id=Object.freeze(Object.defineProperty({__proto__:null,default:Ui},Symbol.toStringTag,{value:"Module"})),sd=t=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,viewBox:"0 0 24 25",fill:"none",...t,children:c.jsx("path",{d:"M14.119 11.7052L20.4486 4.5H18.9492L13.4509 10.7549L9.0626 4.5H4L10.6374 13.9594L4 21.5142H5.4994L11.3021 14.9074L15.9374 21.5142H21M6.04057 5.60727H8.34407L18.9481 20.4613H16.644",fill:"currentColor"})}),Vi=y.memo(sd,H),ad=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"})),ld=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsx("path",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",d:"M249 67c-3-11-11-19-22-22-20-6-99-6-99-6s-79 0-99 6C18 48 10 56 7 67c-6 20-6 61-6 61s0 41 6 61c3 11 11 19 22 22 20 5 99 5 99 5s79 0 99-5c11-3 19-11 22-22 5-20 5-61 5-61s0-41-5-61zm-146 99V90l65 38-65 38z"})}),Hi=y.memo(ld,H),cd=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},Symbol.toStringTag,{value:"Module"})),ud=t=>c.jsx("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 256 256",...t,children:c.jsxs("g",{fill:"currentColor",strokeMiterlimit:"10",strokeWidth:"0",children:[c.jsx("path",{fill:"red",d:"M249.02 66.99a31.68 31.68 0 0 0-22.36-22.36c-19.72-5.29-98.8-5.29-98.8-5.29s-79.09 0-98.8 5.29A31.68 31.68 0 0 0 6.68 66.99c-5.28 19.72-5.28 60.87-5.28 60.87s0 41.15 5.28 60.87a31.68 31.68 0 0 0 22.36 22.36c19.72 5.28 98.8 5.28 98.8 5.28s79.1 0 98.81-5.28a31.68 31.68 0 0 0 22.36-22.36c5.29-19.72 5.29-60.87 5.29-60.87s0-41.15-5.29-60.87z"}),c.jsx("path",{fill:"#fff",d:"m102.57 165.8 65.7-37.94-65.7-37.94z"})]})}),zi=y.memo(ud,H),dd=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),[fd,hd]=vo();function pd({children:t}){const[e,r]=y.useState(!1);y.useEffect(()=>{r(!0)},[]);const n=y.useMemo(()=>({isClient:e}),[e]);return c.jsx(hd,{value:n,children:t})}const Mt=(t,e,r="sharing_tool")=>`?utm_source=${t}&utm_medium=${e}&utm_campaign=${r}`,jt=()=>{const[t,e]=y.useState(),[r,n]=y.useState();return y.useEffect(()=>{e(window.location.href),n(window.document.title)},[]),{windowLocation:t,windowTitle:r}},md=(t,e,r)=>{const{windowLocation:n,windowTitle:o}=jt(),i=r??n,s=Mt(t,e);return`https://www.facebook.com/sharer.php?u=${`${i}${s}`}&t=${o}`},gd=(t,e,r)=>{const{windowLocation:n,windowTitle:o}=jt(),i=r??n,s=Mt(t,e),a=`${i}${s}`;return`mailto:?to=&body=${o}%20${a}`},bd=(t,e,r)=>{const{windowLocation:n}=jt(),o=r??n,i=Mt(t,e);return`https://twitter.com/intent/tweet?text=${`${o}${i}`}`};exports.Accordion=za;exports.AccordionContextProvider=wo;exports.AccordionItem=Wa;exports.ArrowDown=Pi;exports.ArrowLeft=Ti;exports.ArrowRight=Ci;exports.Box=X;exports.BoxWithForwardRef=Ue;exports.Button=_e;exports.ButtonWithForwardRef=we;exports.Calendar=ai;exports.Check=Si;exports.Checkbox=fl;exports.CheckboxGroup=xl;exports.CheckboxGroupItem=wl;exports.ChevronLeft=Ri;exports.ChevronRight=Ei;exports.CloseBtn=Mi;exports.Date=al;exports.DatePicker=bc;exports.DirectusImg=bu;exports.Facebook=ji;exports.FacebookColored=_i;exports.FacebookRounded=ki;exports.Globe=Di;exports.Icon=ce;exports.Img=wi;exports.Instagram=Oi;exports.InstagramColored=Ii;exports.IsClientContextProvider=pd;exports.Lightbox=nl;exports.Link=Ai;exports.LinkedIn=Li;exports.Mail=Ni;exports.Menu=Ec;exports.MenuContextProvider=Tc;exports.MenuItems=uu;exports.MenuSidePanel=Mc;exports.Modal=Rr;exports.Plus=Bi;exports.Popover=il;exports.Radio=di;exports.RadioGroup=wc;exports.RadioGroupProvider=ci;exports.ReactHookFormInput=Tl;exports.ReactHookFormRadio=yc;exports.ReactHookFormSelect=dl;exports.ReactHookFormTextArea=Pl;exports.RenderWithSlide=Mo;exports.Select=_o;exports.Share=Ki;exports.ShareButton=Ya;exports.SidePanel=jo;exports.SidePanelContextProvider=Eo;exports.TabContainer=hi;exports.TextArea=Ao;exports.TextInputField=Lo;exports.ThemeContextProvider=ao;exports.ThemeProvider=ha;exports.Twitter=Fi;exports.TwitterColored=qi;exports.Typography=Z;exports.Upload=Ui;exports.WysiwygBlock=sl;exports.X=Vi;exports.YouTube=Hi;exports.YouTubeColored=zi;exports.createThemeProvider=lo;exports.generateUtmTags=Mt;exports.makeTheme=io;exports.useAccordionCtx=$o;exports.useAccordionState=Co;exports.useFacebookShareUrl=md;exports.useIsClient=fd;exports.useMailToShareUrl=gd;exports.useMenu=Oe;exports.useRadioGroupCtx=ui;exports.useSidePanel=Sr;exports.useTheme=so;exports.useThemeContext=I;exports.useTwitterShareUrl=bd;exports.useWindow=jt;