globalfy-design-system 0.32.0 → 0.34.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.
@@ -69,7 +69,7 @@ Check the top-level render call using <`+_+">.")}return k}}function wo(v,k){{if(
69
69
  body {
70
70
  `).concat(t4,": ").concat(i,`px;
71
71
  }
72
- `)},x4=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n,a=U.useMemo(function(){return v4(o)},[o]);return U.createElement(b4,{styles:y4(a,!t,o,r?"":"!important")})};const $p=new WeakMap;function Ma(e,t,r){return typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${$p.get(e)}-${r}-${t}`}function w4(e,t,r){var n;let{key:o,isDisabled:a,shouldSelectOnPressUp:s}=e,{selectionManager:i,selectedKey:l}=t,c=o===l,u=a||t.isDisabled||t.disabledKeys.has(o),{itemProps:d,isPressed:h}=y1({selectionManager:i,key:o,ref:r,isDisabled:u,shouldSelectOnPressUp:s,linkBehavior:"selection"}),p=Ma(t,o,"tab"),m=Ma(t,o,"tabpanel"),{tabIndex:y}=d,b=t.collection.getItem(o),C=Vr(b==null?void 0:b.props,{isLink:!!(!(b==null||(n=b.props)===null||n===void 0)&&n.href),labelable:!0});return delete C.id,{tabProps:se(C,d,{id:p,"aria-selected":c,"aria-disabled":u||void 0,"aria-controls":c?m:void 0,tabIndex:u?void 0:y,role:"tab"}),isSelected:c,isDisabled:u,isPressed:h}}function C4(e,t,r){let n=Ug(r)?void 0:0;var o;const a=Ma(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),s=ms({...e,id:a,"aria-labelledby":Ma(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:se(s,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class P4{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}getKeyAbove(t){return this.getPreviousKey(t)}getKeyBelow(t){return this.getNextKey(t)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getPreviousKey(t)),t}getNextKey(t){do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(this.disabledKeys.has(t));return t}getPreviousKey(t){do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(this.disabledKeys.has(t));return t}constructor(t,r,n,o=new Set){this.collection=t,this.flipDirection=r==="rtl"&&n==="horizontal",this.disabledKeys=o}}function M4(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:a,selectionManager:s,disabledKeys:i}=t,{direction:l}=xs(),c=f.useMemo(()=>new P4(a,l,n,i),[a,i,n,l]),{collectionProps:u}=b1({ref:r,selectionManager:s,keyboardDelegate:c,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=Fr();$p.set(t,d);let h=ms({...e,id:d});return{tabListProps:{...se(u,h),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var Dp=vt((e,t)=>{var r,n,o;const{as:a,state:s,className:i,slots:l,classNames:c,...u}=e,d=a||"div",h=nt(t),{tabPanelProps:p}=C4(e,s,h),{focusProps:m,isFocused:y,isFocusVisible:b}=Mt(),C=s.selectedItem,x=(r=C==null?void 0:C.props)==null?void 0:r.children,P=me(c==null?void 0:c.panel,i,(n=C==null?void 0:C.props)==null?void 0:n.className);return x?j.jsx(d,{ref:h,"data-focus":y,"data-focus-visible":b,...se(p,m,u),className:(o=l.panel)==null?void 0:o.call(l,{class:P}),"data-slot":"panel",children:x}):null});Dp.displayName="NextUI.TabPanel";var T4=Dp,Ip=vt((e,t)=>{var r;const{className:n,as:o,item:a,state:s,classNames:i,isDisabled:l,listRef:c,slots:u,motionProps:d,disableAnimation:h,disableCursorAnimation:p,shouldSelectOnPressUp:m,onClick:y,...b}=e,{key:C}=a,x=nt(t),P=o||(e.href?"a":"button"),E=typeof P=="string",{tabProps:S,isSelected:N,isDisabled:L,isPressed:g}=w4({key:C,isDisabled:l,shouldSelectOnPressUp:m},s,x),A=l||L,{focusProps:I,isFocused:T,isFocusVisible:D}=Mt(),{hoverProps:w,isHovered:M}=mr({isDisabled:A}),O=me(i==null?void 0:i.tab,n),[,F]=X5({rerender:!0}),$=()=>{dr(y,S.onClick),!(!(x!=null&&x.current)||!(c!=null&&c.current))&&j5(x.current,{scrollMode:"if-needed",behavior:"smooth",block:"end",inline:"end",boundary:c==null?void 0:c.current})};return j.jsxs(P,{ref:x,"data-disabled":Q(L),"data-focus":Q(T),"data-focus-visible":Q(D),"data-hover":Q(M),"data-hover-unselected":Q((M||g)&&!N),"data-pressed":Q(g),"data-selected":Q(N),"data-slot":"tab",...se(S,A?{}:{...I,...w},Dn(b,{enabled:E,omitPropNames:new Set(["title"])})),className:(r=u.tab)==null?void 0:r.call(u,{class:O}),title:b==null?void 0:b.titleValue,type:P==="button"?"button":void 0,onClick:$,children:[N&&!h&&!p&&F?j.jsx(Xf.span,{className:u.cursor({class:i==null?void 0:i.cursor}),"data-slot":"cursor",layoutDependency:!1,layoutId:"cursor",transition:{type:"spring",bounce:.15,duration:.5},...d}):null,j.jsx("div",{className:u.tabContent({class:i==null?void 0:i.tabContent}),"data-slot":"tabContent",children:a.rendered})]})});Ip.displayName="NextUI.Tab";var E4=Ip;class kp{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return(r==null?void 0:r.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let s of a.childNodes)r(s)};for(let a of t)r(a);let n,o=0;for(let[a,s]of this.keyMap)n?(n.nextKey=a,s.prevKey=n.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),n=s,n.nextKey=void 0;this.lastKey=n==null?void 0:n.key}}function S4(e){let{filter:t}=e,r=e5(e),n=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=f.useCallback(c=>t?new kp(t(c)):new kp(c),[t]),a=f.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),s=q2(e,o,a),i=f.useMemo(()=>new t5(s,r),[s,r]);const l=f.useRef(null);return f.useEffect(()=>{if(r.focusedKey!=null&&!s.getItem(r.focusedKey)){const c=l.current.getItem(r.focusedKey),u=[...l.current.getKeys()].map(y=>{const b=l.current.getItem(y);return b.type==="item"?b:null}).filter(y=>y!==null),d=[...s.getKeys()].map(y=>{const b=s.getItem(y);return b.type==="item"?b:null}).filter(y=>y!==null),h=u.length-d.length;let p=Math.min(h>1?Math.max(c.index-h+1,0):c.index,d.length-1),m;for(;p>=0;){if(!i.isDisabled(d[p].key)){m=d[p];break}p<d.length-1?p++:(p>c.index&&(p=c.index),p--)}r.setFocusedKey(m?m.key:null)}l.current=s},[s,i,r,r.focusedKey]),{collection:s,disabledKeys:n,selectionManager:i}}function $4(e){var t;let[r,n]=_r(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=f.useMemo(()=>r!=null?[r]:[],[r]),{collection:a,disabledKeys:s,selectionManager:i}=S4({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:c=>{var u;let d=(u=c.values().next().value)!==null&&u!==void 0?u:null;d===r&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),l=r!=null?a.getItem(r):null;return{collection:a,disabledKeys:s,selectionManager:i,selectedKey:r,setSelectedKey:n,selectedItem:l}}function D4(e){var t;let r=$4({...e,suppressTextValueWarning:!0,defaultSelectedKey:(t=e.defaultSelectedKey)!==null&&t!==void 0?t:Ap(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:n,collection:o,selectedKey:a}=r,s=f.useRef(a);return f.useEffect(()=>{let i=a;(n.isEmpty||!o.getItem(i))&&(i=Ap(o,r.disabledKeys),i!=null&&n.setSelectedKeys([i])),(i!=null&&n.focusedKey==null||!n.isFocused&&i!==s.current)&&n.setFocusedKey(i),s.current=i}),{...r,isDisabled:e.isDisabled||!1}}function Ap(e,t){let r=null;if(e){for(r=e.getFirstKey();t.has(r)&&r!==e.getLastKey();)r=e.getKeyAfter(r);t.has(r)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}function I4(e){const[t,r]=Sn(e,iu.variantKeys),{ref:n,as:o,className:a,classNames:s,children:i,disableCursorAnimation:l,shouldSelectOnPressUp:c=!0,motionProps:u,...d}=t,h=o||"div",p=typeof h=="string",m=nt(n),y=D4({children:i,...d}),{tabListProps:b}=M4(d,y,m),C=f.useMemo(()=>iu({...r,className:a}),[...Object.values(r),a]),x=me(s==null?void 0:s.base,a),P=f.useMemo(()=>({state:y,slots:C,classNames:s,motionProps:u,listRef:m,shouldSelectOnPressUp:c,disableCursorAnimation:l,isDisabled:e==null?void 0:e.isDisabled,disableAnimation:e==null?void 0:e.disableAnimation}),[y,C,m,u,l,c,e==null?void 0:e.disableAnimation,e==null?void 0:e.isDisabled,s]),E=f.useCallback(N=>({"data-slot":"base",className:C.base({class:me(x,N==null?void 0:N.className)}),...se(Dn(d,{enabled:p}),N)}),[x,d,C]),S=f.useCallback(N=>({ref:m,"data-slot":"tabList",className:C.tabList({class:me(s==null?void 0:s.tabList,N==null?void 0:N.className)}),...se(b,N)}),[m,b,s,C]);return{Component:h,domRef:m,state:y,values:P,getBaseProps:E,getTabListProps:S}}function Op(e,t){var r;const{Component:n,values:o,state:a,getBaseProps:s,getTabListProps:i}=I4({...e,ref:t}),l=f.useId(),c=!e.disableAnimation&&!e.disableCursorAnimation,u={state:a,listRef:o.listRef,slots:o.slots,classNames:o.classNames,isDisabled:o.isDisabled,motionProps:o.motionProps,disableAnimation:o.disableAnimation,shouldSelectOnPressUp:o.shouldSelectOnPressUp,disableCursorAnimation:o.disableCursorAnimation},d=[...a.collection].map(h=>j.jsx(E4,{item:h,...u,...h.props},h.key));return j.jsxs(j.Fragment,{children:[j.jsx("div",{...s(),children:j.jsx(n,{...i(),children:c?j.jsx(K2,{id:l,children:d}):d})}),j.jsx(T4,{classNames:o.classNames,slots:o.slots,state:o.state},(r=a.selectedItem)==null?void 0:r.key)]})}var k4=vt(Op);Op.displayName="NextUI.Tabs";var A4=H2,O4=A4;const N4=({icons:e,className:t})=>{const r=Me({base:"bg-primary-grey-700",variants:{withIcon:{false:"h-6 w-11 px-[2px] group-data-[selected=true]:bg-secondary-green-500",true:"h-[52px] w-[88px] bg-secondary-green-500 group-data-[selected=true]:bg-primary-green-500"}}}),n=Me({variants:{withIcon:{false:"h-5 w-5 group-data-[selected=true]:ml-5",true:"h-11 w-11 group-data-[selected=true]:ml-9"}}});return j.jsx(Q5,{classNames:{wrapper:r({withIcon:!!e,className:t}),thumb:n({withIcon:!!e})},thumbIcon:({isSelected:o,className:a})=>e&&(o?j.jsx(et,{name:e.selectedIcon,className:ur(a,"text-lg")}):j.jsx(et,{name:e.unselectedIcon,className:ur(a,"text-lg")}))})},L4=()=>j.jsx(O5,{classNames:{wrapper:"w-4 h-4 rounded-sm before:rounded-sm before:border before:border-primary-grey-700 after:rounded-sm after:bg-secondary-green-500",icon:"w-[11px] h-2.5 [&>*]:stroke-[4px]"}}),Np=({size:e="md",className:t,border:r=!1,image:n,label:o,...a})=>{const s=Me({base:"bg-white font-satoshi font-bold capitalize text-white",variants:{size:{lg:"h-28 w-28 text-[48px]",md:"h-[72px] w-[72px] text-[32px]",sm:"h-12 w-12 text-[24px]",xs:"h-6 w-6 text-[12px]"},border:{true:"border-primary-grey-600"},isText:{true:"bg-complementary-violet-500 "}},compoundVariants:[{border:!0,size:"lg",class:"border-[4px]"},{border:!0,size:"md",class:"border-[3px]"},{border:!0,size:"sm",class:"border-2"},{border:!0,size:"xs",class:"border"}]}),i=Me({base:"text-primary-grey-600",variants:{size:{xs:"text-[12px]",sm:"text-[24px]",md:"text-[32px]",lg:"text-[48px]"}}});return j.jsx(i5,{fallback:!o&&j.jsx(et,{name:"user",className:i({size:e})}),showFallback:!!o,src:n,name:o,className:s({size:e,border:r,isText:!!(o&&!n),className:t}),...a})},j4=({options:e,labelPosition:t="right"})=>j.jsx(U5,{children:e.map(r=>j.jsxs("div",{className:"flex items-center gap-2",children:[t==="left"&&j.jsx("label",{"data-testid":"label-position-left",children:r.label}),j.jsx(Y5,{value:r.value,id:r.id,classNames:{wrapper:"border border-primary-grey-700 group-data-[selected=true]:border-secondary-green-500 group-data-[selected=true]:bg-secondary-green-500",control:"bg-white"}}),t==="right"&&r.label&&j.jsx("label",{"data-testid":"label-position-right",children:r.label})]},r.value))}),Yi=({children:e,size:t,variant:r="primary",disabled:n,full:o=!1,iconLeft:a,iconRight:s,className:i,hasLoading:l,isLoadingComplete:c,onClick:u,onLoadingAnimationComplete:d})=>{const[h,p]=f.useState(!1);let m=null;const[y,b]=f.useState("w-0"),C=E=>{if(l){p(!0);let S=1;m=setInterval(()=>{b(`w-${S}/4`),S<3?S++:m&&clearInterval(m)},1e3)}u&&u(E)},x=Me({base:`absolute left-0 top-0 h-full rounded-full bg-transparent duration-1000 ease-in ${y}`,variants:{isLoadingComplete:{true:"w-full duration-500",false:""},loadingVariant:{primaryDark:"bg-white",primaryLight:"bg-primary-green-500 ",primary:"bg-primary-green-500 ",negative:"bg-complementary-red-700",secondaryNegative:"bg-complementary-red-50",secondary:"bg-secondary-green-50",tertiary:"",tertiaryDark:"",tertiaryLight:"",direction:"",directionCircle:""}}}),P=Me({base:"relative !overflow-hidden rounded-full border-transparent px-10 py-4 font-bold text-white !ring-0 !ring-transparent hover:text-white focus:outline focus:outline-2 focus:-outline-offset-4 focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-4 focus-visible:outline-white",variants:{size:{small:"h-9",medium:"h-12",large:"h-14"},variant:{primaryDark:"bg-white text-primary-green-500 hover:bg-secondary-green-500 focus:bg-secondary-green-500 focus:text-white focus:outline-primary-green-500",primaryLight:"bg-primary-green-500 hover:bg-white hover:text-secondary-green-500 focus:bg-white focus:text-secondary-green-500 focus:outline-secondary-green-500",primary:"bg-primary-green-500 hover:bg-secondary-green-500 focus:bg-secondary-green-500 focus:outline-white",negative:"bg-complementary-red-700 hover:border-transparent hover:bg-complementary-red-500 focus:bg-complementary-red-500 focus:outline-white",secondaryNegative:"border border-complementary-red-700 !bg-white font-medium text-complementary-red-700 hover:border-2 hover:border-complementary-red-500 hover:text-complementary-red-500 focus:border-[3px] focus:border-complementary-red-500 focus:text-complementary-red-500",secondary:"border border-primary-green-500 !bg-transparent font-medium text-primary-green-500 hover:border-2 hover:border-secondary-green-500 hover:text-secondary-green-500 focus:border-[3px] focus:border-secondary-green-500 focus:text-secondary-green-500",tertiary:"!bg-transparent px-4 font-medium text-primary-green-500 underline hover:text-secondary-green-500 focus:font-bold focus:text-secondary-green-500 focus:outline-none",tertiaryDark:"!bg-transparent px-4 font-medium text-secondary-green-500 underline focus:font-bold focus:text-secondary-green-500 focus:outline-none",tertiaryLight:"!bg-transparent px-4 font-medium text-primary-green-500 underline focus:font-bold focus:text-primary-green-500 focus:outline-none",direction:"h-10 bg-primary-green-500 p-2.5 font-medium hover:bg-secondary-green-500 focus:border-none focus:bg-secondary-green-500 focus:outline-none",directionCircle:"font:medium bg-primary-green-500 hover:bg-secondary-green-500 focus:border-none focus:bg-secondary-green-500 focus:outline-none"},full:{true:"w-full",false:""},disabled:{true:"pointer-events-none border-transparent bg-primary-grey-500 font-medium text-primary-grey-700",false:""},isLoading:{true:"",false:""},hasIcon:{true:"!px-6"}},compoundVariants:[{variant:"primaryDark",isLoading:!0,class:"!bg-secondary-green-500 !text-primary-green-500 focus:bg-secondary-green-500 focus:outline-secondary-green-500"},{variant:"primaryLight",isLoading:!0,class:"!bg-white text-secondary-green-500 focus:outline-white"},{variant:"primary",isLoading:!0,class:"!bg-secondary-green-500 focus:outline-secondary-green-500"},{variant:"negative",isLoading:!0,class:"!bg-complementary-red-500 focus:outline-complementary-red-500"},{variant:"secondaryNegative",isLoading:!0,class:"!border !border-complementary-red-700 !bg-white text-complementary-red-700 focus:outline-none"},{variant:"secondary",isLoading:!0,class:"!border !border-secondary-green-500 !bg-white text-secondary-green-500 focus:outline-none"},{variant:"tertiary",isLoading:!0,class:"!font-medium"},{variant:"tertiaryDark",isLoading:!0,class:"!font-medium"},{variant:"tertiaryLight",isLoading:!0,class:"!font-medium"},{variant:"secondaryNegative",disabled:!0,class:"border border-primary-grey-700 bg-transparent"},{variant:"secondary",disabled:!0,class:"border border-primary-grey-700 bg-transparent"},{variant:"tertiary",disabled:!0,class:"bg-transparent underline"},{variant:"directionCircle",hasIcon:!0,class:"!min-w-unit-10 !px-0"}]});return f.useEffect(()=>{setTimeout(()=>{d&&d()})},[c,d]),f.useEffect(()=>()=>{m&&clearInterval(m)},[m]),j.jsx(g5,{onClick:C,className:ur(i,P({size:t,variant:r,disabled:n,full:o,isLoading:h,hasIcon:!!(a||s)})),children:j.jsxs("div",{children:[j.jsx("div",{className:ur(i,x({isLoadingComplete:c,loadingVariant:r}))}),j.jsxs("div",{className:"relative flex items-center gap-3 text-center",children:[a&&j.jsx(et,{"data-testid":"button-component-icon-left",name:a}),e,s&&j.jsx(et,{"data-testid":"button-component-icon-right",name:s})]})]})})},_4=({children:e,className:t,avatar:r,size:n="sm",disabled:o=!1,iconLeft:a,iconRight:s})=>{const i=Me({base:"flex h-6 cursor-pointer items-center justify-center gap-2 border border-primary-green-500 bg-white px-2 pt-[1px] font-satoshi text-[10px] font-medium leading-[15px] text-primary-green-500 hover:border-secondary-green-500 hover:text-secondary-green-500 active:border-[2px] active:px-[7px]",variants:{size:{sm:"",lg:"h-[54px] gap-3 px-4 text-base active:px-[15px]"},hasAvatar:{true:"!border-0 bg-primary-grey-600 pl-6"},disabled:{true:"cursor-default !border-1 !border-primary-grey-500 bg-primary-grey-500 !text-primary-grey-800"}},compoundVariants:[{size:"sm",hasAvatar:!0,class:"pl-6 active:pl-[24px] active:pr-[8px]"},{size:"lg",hasAvatar:!0,class:"pl-14 active:pl-[56px] active:pr-[16px]"},{size:"sm",disabled:!0,class:"active:px-[8px]"},{size:"lg",disabled:!0,class:"active:px-[16px]"}]}),l=Me({base:"absolute left-0 top-0",variants:{size:{sm:"",lg:"h-[54px] w-[54px]"}}}),c=Me({base:"text-xs",variants:{size:{sm:"",lg:"text-lg"}}});return j.jsxs(b5,{size:n,className:ur(i({hasAvatar:!!r,size:n,disabled:o,className:t})),startContent:a&&j.jsx(et,{className:c({size:n}),name:a}),endContent:s&&j.jsx(et,{className:c({size:n}),name:s}),children:[r&&j.jsx(Np,{className:l({size:n}),border:!1,size:"xs",image:r}),e]})};function F4(e,t,r=window){const n=f.useRef(t);f.useEffect(()=>{n.current=t},[t]),f.useEffect(()=>{if(r==null)return;const o=a=>n.current(a);return r.addEventListener(e,o),()=>r.removeEventListener(e,o)},[e,r])}const V4=({tabs:e,size:t="md",selectedKey:r,onSelectionChange:n,...o})=>{const[a,s]=f.useState(r??e[0].key),i=Me({base:"bg-primary-grey-600 p-[1px]",variants:{size:{sm:"h-8",md:"h-9",lg:"h-11"}}}),l=Me({base:"h-full data-[selected=true]:!font-bold data-[hover-unselected='true']:!text-secondary-green-500 data-[selected=true]:!text-primary-green-500 data-[hover='true']:opacity-100",variants:{size:{sm:"px-[40px]",md:"px-[80px]",lg:"px-[75px]"}}}),c=Me({base:"!text-white shadow-none"}),u=Me({base:"!font-inherit font-satoshi !text-inherit",variants:{size:{sm:"text-[14px]",md:"text-[14px]",lg:"text-[20px]"}}});return F4("click",d=>{var m;const h=d.target,p=(m=h==null?void 0:h.closest)==null?void 0:m.call(h,'button[data-slot="tab"]');if(p){const y=p==null?void 0:p.dataset.key;s(y)}}),j.jsx(k4,{selectedKey:a,onSelectionChange:d=>{n?n(d):s(d)},classNames:{tabList:i({size:t}),tab:l({size:t}),cursor:c(),tabContent:u({size:t})},radius:"full",size:t,...o,children:e.map(({key:d,title:h,component:p})=>j.jsx(O4,{title:h,children:p},d))})},Lp=({message:e,actions:t,inlineActions:r=!0})=>{const n=Me({base:"flex gap-3 rounded-lg bg-primary-black-400 p-4",variants:{inlineActions:{true:"flex flex-row",false:"flex flex-col items-end justify-end"},toastType:{alert:"rounded-2xl bg-primary-grey-600",snackbar:"bg-primary-black-400",banner:"rounded-2xl bg-complementary-red-500"}}});return j.jsxs("div",{className:n({inlineActions:r}),children:[j.jsx("div",{className:"flex flex-1 items-center gap-4",children:j.jsx("p",{className:"font-satoshi text-sm",children:e})}),j.jsx("div",{children:t&&j.jsx("div",{className:"flex",children:t.map(({label:o,onClick:a})=>j.jsx(Yi,{onClick:a,variant:"tertiaryDark",children:o},o))})})]})};function jp(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=jp(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function rr(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=jp(e))&&(n&&(n+=" "),n+=t);return n}const Yn=e=>typeof e=="number"&&!isNaN(e),Tr=e=>typeof e=="string",Qe=e=>typeof e=="function",Ta=e=>Tr(e)||Qe(e)?e:null,Gi=e=>f.isValidElement(e)||Tr(e)||Qe(e)||Yn(e);function z4(e,t,r){r===void 0&&(r=300);const{scrollHeight:n,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=n+"px",o.transition=`all ${r}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,r)})})}function Ea(e){let{enter:t,exit:r,appendPosition:n=!1,collapse:o=!0,collapseDuration:a=300}=e;return function(s){let{children:i,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:h}=s;const p=n?`${t}--${l}`:t,m=n?`${r}--${l}`:r,y=f.useRef(0);return f.useLayoutEffect(()=>{const b=d.current,C=p.split(" "),x=P=>{P.target===d.current&&(b.dispatchEvent(new Event("d")),b.removeEventListener("animationend",x),b.removeEventListener("animationcancel",x),y.current===0&&P.type!=="animationcancel"&&b.classList.remove(...C))};b.classList.add(...C),b.addEventListener("animationend",x),b.addEventListener("animationcancel",x)},[]),f.useEffect(()=>{const b=d.current,C=()=>{b.removeEventListener("animationend",C),o?z4(b,u,a):u()};h||(c?C():(y.current=1,b.className+=` ${m}`,b.addEventListener("animationend",C)))},[h]),f.createElement(f.Fragment,null,i)}}function _p(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const pt={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const r=this.list.get(e).filter(n=>n!==t);return this.list.set(e,r),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const r=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(r)})}},Sa=e=>{let{theme:t,type:r,...n}=e;return f.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...n})},qi={info:function(e){return f.createElement(Sa,{...e},f.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return f.createElement(Sa,{...e},f.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return f.createElement(Sa,{...e},f.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return f.createElement(Sa,{...e},f.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return f.createElement("div",{className:"Toastify__spinner"})}};function W4(e){const[,t]=f.useReducer(p=>p+1,0),[r,n]=f.useState([]),o=f.useRef(null),a=f.useRef(new Map).current,s=p=>r.indexOf(p)!==-1,i=f.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:s,getToast:p=>a.get(p)}).current;function l(p){let{containerId:m}=p;const{limit:y}=i.props;!y||m&&i.containerId!==m||(i.count-=i.queue.length,i.queue=[])}function c(p){n(m=>p==null?[]:m.filter(y=>y!==p))}function u(){const{toastContent:p,toastProps:m,staleId:y}=i.queue.shift();h(p,m,y)}function d(p,m){let{delay:y,staleId:b,...C}=m;if(!Gi(p)||function(D){return!o.current||i.props.enableMultiContainer&&D.containerId!==i.props.containerId||a.has(D.toastId)&&D.updateId==null}(C))return;const{toastId:x,updateId:P,data:E}=C,{props:S}=i,N=()=>c(x),L=P==null;L&&i.count++;const g={...S,style:S.toastStyle,key:i.toastKey++,...Object.fromEntries(Object.entries(C).filter(D=>{let[w,M]=D;return M!=null})),toastId:x,updateId:P,data:E,closeToast:N,isIn:!1,className:Ta(C.className||S.toastClassName),bodyClassName:Ta(C.bodyClassName||S.bodyClassName),progressClassName:Ta(C.progressClassName||S.progressClassName),autoClose:!C.isLoading&&(A=C.autoClose,I=S.autoClose,A===!1||Yn(A)&&A>0?A:I),deleteToast(){const D=_p(a.get(x),"removed");a.delete(x),pt.emit(4,D);const w=i.queue.length;if(i.count=x==null?i.count-i.displayedToast:i.count-1,i.count<0&&(i.count=0),w>0){const M=x==null?i.props.limit:1;if(w===1||M===1)i.displayedToast++,u();else{const O=M>w?w:M;i.displayedToast=O;for(let F=0;F<O;F++)u()}}else t()}};var A,I;g.iconOut=function(D){let{theme:w,type:M,isLoading:O,icon:F}=D,$=null;const V={theme:w,type:M};return F===!1||(Qe(F)?$=F(V):f.isValidElement(F)?$=f.cloneElement(F,V):Tr(F)||Yn(F)?$=F:O?$=qi.spinner():(Y=>Y in qi)(M)&&($=qi[M](V))),$}(g),Qe(C.onOpen)&&(g.onOpen=C.onOpen),Qe(C.onClose)&&(g.onClose=C.onClose),g.closeButton=S.closeButton,C.closeButton===!1||Gi(C.closeButton)?g.closeButton=C.closeButton:C.closeButton===!0&&(g.closeButton=!Gi(S.closeButton)||S.closeButton);let T=p;f.isValidElement(p)&&!Tr(p.type)?T=f.cloneElement(p,{closeToast:N,toastProps:g,data:E}):Qe(p)&&(T=p({closeToast:N,toastProps:g,data:E})),S.limit&&S.limit>0&&i.count>S.limit&&L?i.queue.push({toastContent:T,toastProps:g,staleId:b}):Yn(y)?setTimeout(()=>{h(T,g,b)},y):h(T,g,b)}function h(p,m,y){const{toastId:b}=m;y&&a.delete(y);const C={content:p,props:m};a.set(b,C),n(x=>[...x,b].filter(P=>P!==y)),pt.emit(4,_p(C,C.props.updateId==null?"added":"updated"))}return f.useEffect(()=>(i.containerId=e.containerId,pt.cancelEmit(3).on(0,d).on(1,p=>o.current&&c(p)).on(5,l).emit(2,i),()=>{a.clear(),pt.emit(3,i)}),[]),f.useEffect(()=>{i.props=e,i.isToastActive=s,i.displayedToast=r.length}),{getToastToRender:function(p){const m=new Map,y=Array.from(a.values());return e.newestOnTop&&y.reverse(),y.forEach(b=>{const{position:C}=b.props;m.has(C)||m.set(C,[]),m.get(C).push(b)}),Array.from(m,b=>p(b[0],b[1]))},containerRef:o,isToastActive:s}}function Fp(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Vp(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function B4(e){const[t,r]=f.useState(!1),[n,o]=f.useState(!1),a=f.useRef(null),s=f.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,i=f.useRef(e),{autoClose:l,pauseOnHover:c,closeToast:u,onClick:d,closeOnClick:h}=e;function p(E){if(e.draggable){E.nativeEvent.type==="touchstart"&&E.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",C),document.addEventListener("mouseup",x),document.addEventListener("touchmove",C),document.addEventListener("touchend",x);const S=a.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=S.getBoundingClientRect(),S.style.transition="",s.x=Fp(E.nativeEvent),s.y=Vp(E.nativeEvent),e.draggableDirection==="x"?(s.start=s.x,s.removalDistance=S.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=S.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function m(E){if(s.boundingRect){const{top:S,bottom:N,left:L,right:g}=s.boundingRect;E.nativeEvent.type!=="touchend"&&e.pauseOnHover&&s.x>=L&&s.x<=g&&s.y>=S&&s.y<=N?b():y()}}function y(){r(!0)}function b(){r(!1)}function C(E){const S=a.current;s.canDrag&&S&&(s.didMove=!0,t&&b(),s.x=Fp(E),s.y=Vp(E),s.delta=e.draggableDirection==="x"?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),S.style.transform=`translate${e.draggableDirection}(${s.delta}px)`,S.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function x(){document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",x);const E=a.current;if(s.canDrag&&s.didMove&&E){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),void e.closeToast();E.style.transition="transform 0.2s, opacity 0.2s",E.style.transform=`translate${e.draggableDirection}(0)`,E.style.opacity="1"}}f.useEffect(()=>{i.current=e}),f.useEffect(()=>(a.current&&a.current.addEventListener("d",y,{once:!0}),Qe(e.onOpen)&&e.onOpen(f.isValidElement(e.children)&&e.children.props),()=>{const E=i.current;Qe(E.onClose)&&E.onClose(f.isValidElement(E.children)&&E.children.props)}),[]),f.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||b(),window.addEventListener("focus",y),window.addEventListener("blur",b)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",y),window.removeEventListener("blur",b))}),[e.pauseOnFocusLoss]);const P={onMouseDown:p,onTouchStart:p,onMouseUp:m,onTouchEnd:m};return l&&c&&(P.onMouseEnter=b,P.onMouseLeave=y),h&&(P.onClick=E=>{d&&d(E),s.canCloseOnClick&&u()}),{playToast:y,pauseToast:b,isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:P}}function zp(e){let{closeToast:t,theme:r,ariaLabel:n="close"}=e;return f.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:o=>{o.stopPropagation(),t(o)},"aria-label":n},f.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},f.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function R4(e){let{delay:t,isRunning:r,closeToast:n,type:o="default",hide:a,className:s,style:i,controlledProgress:l,progress:c,rtl:u,isIn:d,theme:h}=e;const p=a||l&&c===0,m={...i,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused",opacity:p?0:1};l&&(m.transform=`scaleX(${c})`);const y=rr("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),b=Qe(s)?s({rtl:u,type:o,defaultClassName:y}):rr(y,s);return f.createElement("div",{role:"progressbar","aria-hidden":p?"true":"false","aria-label":"notification timer",className:b,style:m,[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{d&&n()}})}const K4=e=>{const{isRunning:t,preventExitTransition:r,toastRef:n,eventHandlers:o}=B4(e),{closeButton:a,children:s,autoClose:i,onClick:l,type:c,hideProgressBar:u,closeToast:d,transition:h,position:p,className:m,style:y,bodyClassName:b,bodyStyle:C,progressClassName:x,progressStyle:P,updateId:E,role:S,progress:N,rtl:L,toastId:g,deleteToast:A,isIn:I,isLoading:T,iconOut:D,closeOnClick:w,theme:M}=e,O=rr("Toastify__toast",`Toastify__toast-theme--${M}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":L},{"Toastify__toast--close-on-click":w}),F=Qe(m)?m({rtl:L,position:p,type:c,defaultClassName:O}):rr(O,m),$=!!N||!i,V={closeToast:d,type:c,theme:M};let Y=null;return a===!1||(Y=Qe(a)?a(V):f.isValidElement(a)?f.cloneElement(a,V):zp(V)),f.createElement(h,{isIn:I,done:A,position:p,preventExitTransition:r,nodeRef:n},f.createElement("div",{id:g,onClick:l,className:F,...o,style:y,ref:n},f.createElement("div",{...I&&{role:S},className:Qe(b)?b({type:c}):rr("Toastify__toast-body",b),style:C},D!=null&&f.createElement("div",{className:rr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!T})},D),f.createElement("div",null,s)),Y,f.createElement(R4,{...E&&!$?{key:`pb-${E}`}:{},rtl:L,theme:M,delay:i,isRunning:t,isIn:I,closeToast:d,hide:u,type:c,style:P,className:x,controlledProgress:$,progress:N||0})))},$a=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},U4=Ea($a("bounce",!0));Ea($a("slide",!0)),Ea($a("zoom")),Ea($a("flip"));const Wp=f.forwardRef((e,t)=>{const{getToastToRender:r,containerRef:n,isToastActive:o}=W4(e),{className:a,style:s,rtl:i,containerId:l}=e;function c(u){const d=rr("Toastify__toast-container",`Toastify__toast-container--${u}`,{"Toastify__toast-container--rtl":i});return Qe(a)?a({position:u,rtl:i,defaultClassName:d}):rr(d,Ta(a))}return f.useEffect(()=>{t&&(t.current=n.current)},[]),f.createElement("div",{ref:n,className:"Toastify",id:l},r((u,d)=>{const h=d.length?{...s}:{...s,pointerEvents:"none"};return f.createElement("div",{className:c(u),style:h,key:`container-${u}`},d.map((p,m)=>{let{content:y,props:b}=p;return f.createElement(K4,{...b,isIn:o(b.toastId),style:{...b.style,"--nth":m+1,"--len":d.length},key:`toast-${b.key}`},y)}))}))});Wp.displayName="ToastContainer",Wp.defaultProps={position:"top-right",transition:U4,autoClose:5e3,closeButton:zp,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let Qi,Er=new Map,Gn=[],H4=1;function Bp(){return""+H4++}function Y4(e){return e&&(Tr(e.toastId)||Yn(e.toastId))?e.toastId:Bp()}function qn(e,t){return Er.size>0?pt.emit(0,e,t):Gn.push({content:e,options:t}),t.toastId}function Da(e,t){return{...t,type:t&&t.type||e,toastId:Y4(t)}}function Ia(e){return(t,r)=>qn(t,Da(e,r))}function Ae(e,t){return qn(e,Da("default",t))}Ae.loading=(e,t)=>qn(e,Da("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ae.promise=function(e,t,r){let n,{pending:o,error:a,success:s}=t;o&&(n=Tr(o)?Ae.loading(o,r):Ae.loading(o.render,{...r,...o}));const i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(u,d,h)=>{if(d==null)return void Ae.dismiss(n);const p={type:u,...i,...r,data:h},m=Tr(d)?{render:d}:d;return n?Ae.update(n,{...p,...m}):Ae(m.render,{...p,...m}),h},c=Qe(e)?e():e;return c.then(u=>l("success",s,u)).catch(u=>l("error",a,u)),c},Ae.success=Ia("success"),Ae.info=Ia("info"),Ae.error=Ia("error"),Ae.warning=Ia("warning"),Ae.warn=Ae.warning,Ae.dark=(e,t)=>qn(e,Da("default",{theme:"dark",...t})),Ae.dismiss=e=>{Er.size>0?pt.emit(1,e):Gn=Gn.filter(t=>e!=null&&t.options.toastId!==e)},Ae.clearWaitingQueue=function(e){return e===void 0&&(e={}),pt.emit(5,e)},Ae.isActive=e=>{let t=!1;return Er.forEach(r=>{r.isToastActive&&r.isToastActive(e)&&(t=!0)}),t},Ae.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const r=function(n,o){let{containerId:a}=o;const s=Er.get(a||Qi);return s&&s.getToast(n)}(e,t);if(r){const{props:n,content:o}=r,a={delay:100,...n,...t,toastId:t.toastId||e,updateId:Bp()};a.toastId!==e&&(a.staleId=e);const s=a.render||o;delete a.render,qn(s,a)}},0)},Ae.done=e=>{Ae.update(e,{progress:1})},Ae.onChange=e=>(pt.on(4,e),()=>{pt.off(4,e)}),Ae.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Ae.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},pt.on(2,e=>{Qi=e.containerId||e,Er.set(Qi,e),Gn.forEach(t=>{pt.emit(0,t.content,t.options)}),Gn=[]}).on(3,e=>{Er.delete(e.containerId||e),Er.size===0&&pt.off(0).off(1).off(5)});const iw="",G4=()=>({snackbar:(t,r)=>{Ae(j.jsx(Lp,{message:t,actions:r==null?void 0:r.actions,inlineActions:r==null?void 0:r.inlineActions}))}});function je(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function tn(e,t=[]){let r=[];function n(a,s){const i=f.createContext(s),l=r.length;r=[...r,s];function c(d){const{scope:h,children:p,...m}=d,y=(h==null?void 0:h[e][l])||i,b=f.useMemo(()=>m,Object.values(m));return f.createElement(y.Provider,{value:b},p)}function u(d,h){const p=(h==null?void 0:h[e][l])||i,m=f.useContext(p);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=r.map(s=>f.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return f.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[n,q4(o,...t)]}function q4(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...i,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function Vt(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function Q4(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const Xi="dismissableLayer.update",X4="dismissableLayer.pointerDownOutside",Z4="dismissableLayer.focusOutside";let Rp;const J4=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kp=f.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...c}=e,u=f.useContext(J4),[d,h]=f.useState(null),p=(r=d==null?void 0:d.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,m]=f.useState({}),y=dt(t,g=>h(g)),b=Array.from(u.layers),[C]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(C),P=d?b.indexOf(d):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,S=P>=x,N=e3(g=>{const A=g.target,I=[...u.branches].some(T=>T.contains(A));!S||I||(a==null||a(g),i==null||i(g),g.defaultPrevented||l==null||l())},p),L=t3(g=>{const A=g.target;[...u.branches].some(T=>T.contains(A))||(s==null||s(g),i==null||i(g),g.defaultPrevented||l==null||l())},p);return Q4(g=>{P===u.layers.size-1&&(o==null||o(g),!g.defaultPrevented&&l&&(g.preventDefault(),l()))},p),f.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Rp=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Up(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Rp)}},[d,p,n,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Up())},[d,u]),f.useEffect(()=>{const g=()=>m({});return document.addEventListener(Xi,g),()=>document.removeEventListener(Xi,g)},[]),f.createElement(Be.div,he({},c,{ref:y,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:je(e.onFocusCapture,L.onFocusCapture),onBlurCapture:je(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:je(e.onPointerDownCapture,N.onPointerDownCapture)}))});function e3(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let c=function(){Hp(X4,r,l,{discrete:!0})};const l={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function t3(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e),n=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!n.current&&Hp(Z4,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Up(){const e=new CustomEvent(Xi);document.dispatchEvent(e)}function Hp(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?wm(o,a):o.dispatchEvent(a)}const rn=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},r3=U["useId".toString()]||(()=>{});let n3=0;function ka(e){const[t,r]=U.useState(r3());return rn(()=>{e||r(n=>n??String(n3++))},[e]),e||(t?`radix-${t}`:"")}const o3=["top","right","bottom","left"],nr=Math.min,at=Math.max,Aa=Math.round,Oa=Math.floor,or=e=>({x:e,y:e}),a3={left:"right",right:"left",bottom:"top",top:"bottom"},s3={start:"end",end:"start"};function Zi(e,t,r){return at(e,nr(t,r))}function zt(e,t){return typeof e=="function"?e(t):e}function Wt(e){return e.split("-")[0]}function nn(e){return e.split("-")[1]}function Ji(e){return e==="x"?"y":"x"}function el(e){return e==="y"?"height":"width"}function on(e){return["top","bottom"].includes(Wt(e))?"y":"x"}function tl(e){return Ji(on(e))}function i3(e,t,r){r===void 0&&(r=!1);const n=nn(e),o=tl(e),a=el(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Na(s)),[s,Na(s)]}function l3(e){const t=Na(e);return[rl(e),t,rl(t)]}function rl(e){return e.replace(/start|end/g,t=>s3[t])}function c3(e,t,r){const n=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:s;default:return[]}}function u3(e,t,r,n){const o=nn(e);let a=c3(Wt(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(rl)))),a}function Na(e){return e.replace(/left|right|bottom|top/g,t=>a3[t])}function d3(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yp(e){return typeof e!="number"?d3(e):{top:e,right:e,bottom:e,left:e}}function La(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Gp(e,t,r){let{reference:n,floating:o}=e;const a=on(t),s=tl(t),i=el(s),l=Wt(t),c=a==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,h=n[i]/2-o[i]/2;let p;switch(l){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-o.width,y:d};break;default:p={x:n.x,y:n.y}}switch(nn(t)){case"start":p[s]-=h*(r&&c?-1:1);break;case"end":p[s]+=h*(r&&c?-1:1);break}return p}const f3=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Gp(c,n,l),h=n,p={},m=0;for(let y=0;y<i.length;y++){const{name:b,fn:C}=i[y],{x,y:P,data:E,reset:S}=await C({x:u,y:d,initialPlacement:n,placement:h,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});if(u=x??u,d=P??d,p={...p,[b]:{...p[b],...E}},S&&m<=50){m++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:d}=Gp(c,h,l)),y=-1;continue}}return{x:u,y:d,placement:h,strategy:o,middlewareData:p}};async function Qn(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=zt(t,e),m=Yp(p),b=i[h?d==="floating"?"reference":"floating":d],C=La(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(b)))==null||r?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:u,strategy:l})),x=d==="floating"?{...s.floating,x:n,y:o}:s.reference,P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),E=await(a.isElement==null?void 0:a.isElement(P))?await(a.getScale==null?void 0:a.getScale(P))||{x:1,y:1}:{x:1,y:1},S=La(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:P,strategy:l}):x);return{top:(C.top-S.top+m.top)/E.y,bottom:(S.bottom-C.bottom+m.bottom)/E.y,left:(C.left-S.left+m.left)/E.x,right:(S.right-C.right+m.right)/E.x}}const qp=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:c,padding:u=0}=zt(e,t)||{};if(c==null)return{};const d=Yp(u),h={x:r,y:n},p=tl(o),m=el(p),y=await s.getDimensions(c),b=p==="y",C=b?"top":"left",x=b?"bottom":"right",P=b?"clientHeight":"clientWidth",E=a.reference[m]+a.reference[p]-h[p]-a.floating[m],S=h[p]-a.reference[p],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let L=N?N[P]:0;(!L||!await(s.isElement==null?void 0:s.isElement(N)))&&(L=i.floating[P]||a.floating[m]);const g=E/2-S/2,A=L/2-y[m]/2-1,I=nr(d[C],A),T=nr(d[x],A),D=I,w=L-y[m]-T,M=L/2-y[m]/2+g,O=Zi(D,M,w),F=!l.arrow&&nn(o)!=null&&M!=O&&a.reference[m]/2-(M<D?I:T)-y[m]/2<0,$=F?M<D?M-D:M-w:0;return{[p]:h[p]+$,data:{[p]:O,centerOffset:M-O-$,...F&&{alignmentOffset:$}},reset:F}}}),p3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...b}=zt(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const C=Wt(o),x=Wt(i)===i,P=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=h||(x||!y?[Na(i)]:l3(i));!h&&m!=="none"&&E.push(...u3(i,y,m,P));const S=[i,...E],N=await Qn(t,b),L=[];let g=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&L.push(N[C]),d){const D=i3(o,s,P);L.push(N[D[0]],N[D[1]])}if(g=[...g,{placement:o,overflows:L}],!L.every(D=>D<=0)){var A,I;const D=(((A=a.flip)==null?void 0:A.index)||0)+1,w=S[D];if(w)return{data:{index:D,overflows:g},reset:{placement:w}};let M=(I=g.filter(O=>O.overflows[0]<=0).sort((O,F)=>O.overflows[1]-F.overflows[1])[0])==null?void 0:I.placement;if(!M)switch(p){case"bestFit":{var T;const O=(T=g.map(F=>[F.placement,F.overflows.filter($=>$>0).reduce(($,V)=>$+V,0)]).sort((F,$)=>F[1]-$[1])[0])==null?void 0:T[0];O&&(M=O);break}case"initialPlacement":M=i;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Qp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xp(e){return o3.some(t=>e[t]>=0)}const h3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=zt(e,t);switch(n){case"referenceHidden":{const a=await Qn(t,{...o,elementContext:"reference"}),s=Qp(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Xp(s)}}}case"escaped":{const a=await Qn(t,{...o,altBoundary:!0}),s=Qp(a,r.floating);return{data:{escapedOffsets:s,escaped:Xp(s)}}}default:return{}}}}};async function m3(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Wt(r),i=nn(r),l=on(r)==="y",c=["left","top"].includes(s)?-1:1,u=a&&l?-1:1,d=zt(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return i&&typeof m=="number"&&(p=i==="end"?m*-1:m),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const g3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await m3(t,e);return{x:r+o.x,y:n+o.y,data:o}}}},v3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:b=>{let{x:C,y:x}=b;return{x:C,y:x}}},...l}=zt(e,t),c={x:r,y:n},u=await Qn(t,l),d=on(Wt(o)),h=Ji(d);let p=c[h],m=c[d];if(a){const b=h==="y"?"top":"left",C=h==="y"?"bottom":"right",x=p+u[b],P=p-u[C];p=Zi(x,p,P)}if(s){const b=d==="y"?"top":"left",C=d==="y"?"bottom":"right",x=m+u[b],P=m-u[C];m=Zi(x,m,P)}const y=i.fn({...t,[h]:p,[d]:m});return{...y,data:{x:y.x-r,y:y.y-n}}}}},b3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=zt(e,t),u={x:r,y:n},d=on(o),h=Ji(d);let p=u[h],m=u[d];const y=zt(i,t),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const P=h==="y"?"height":"width",E=a.reference[h]-a.floating[P]+b.mainAxis,S=a.reference[h]+a.reference[P]-b.mainAxis;p<E?p=E:p>S&&(p=S)}if(c){var C,x;const P=h==="y"?"width":"height",E=["top","left"].includes(Wt(o)),S=a.reference[d]-a.floating[P]+(E&&((C=s.offset)==null?void 0:C[d])||0)+(E?0:b.crossAxis),N=a.reference[d]+a.reference[P]+(E?0:((x=s.offset)==null?void 0:x[d])||0)-(E?b.crossAxis:0);m<S?m=S:m>N&&(m=N)}return{[h]:p,[d]:m}}}},y3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:a}=t,{apply:s=()=>{},...i}=zt(e,t),l=await Qn(t,i),c=Wt(r),u=nn(r),d=on(r)==="y",{width:h,height:p}=n.floating;let m,y;c==="top"||c==="bottom"?(m=c,y=u===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=c,m=u==="end"?"top":"bottom");const b=p-l[m],C=h-l[y],x=!t.middlewareData.shift;let P=b,E=C;if(d){const N=h-l.left-l.right;E=u||x?nr(C,N):N}else{const N=p-l.top-l.bottom;P=u||x?nr(b,N):N}if(x&&!u){const N=at(l.left,0),L=at(l.right,0),g=at(l.top,0),A=at(l.bottom,0);d?E=h-2*(N!==0||L!==0?N+L:at(l.left,l.right)):P=p-2*(g!==0||A!==0?g+A:at(l.top,l.bottom))}await s({...t,availableWidth:E,availableHeight:P});const S=await o.getDimensions(a.floating);return h!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}};function ar(e){return Zp(e)?(e.nodeName||"").toLowerCase():"#document"}function st(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Bt(e){var t;return(t=(Zp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zp(e){return e instanceof Node||e instanceof st(e).Node}function Rt(e){return e instanceof Element||e instanceof st(e).Element}function St(e){return e instanceof HTMLElement||e instanceof st(e).HTMLElement}function Jp(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof st(e).ShadowRoot}function Xn(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function x3(e){return["table","td","th"].includes(ar(e))}function nl(e){const t=ol(),r=ht(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function w3(e){let t=an(e);for(;St(t)&&!ja(t);){if(nl(t))return t;t=an(t)}return null}function ol(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ja(e){return["html","body","#document"].includes(ar(e))}function ht(e){return st(e).getComputedStyle(e)}function _a(e){return Rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function an(e){if(ar(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jp(e)&&e.host||Bt(e);return Jp(t)?t.host:t}function eh(e){const t=an(e);return ja(t)?e.ownerDocument?e.ownerDocument.body:e.body:St(t)&&Xn(t)?t:eh(t)}function Zn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=eh(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=st(o);return a?t.concat(s,s.visualViewport||[],Xn(o)?o:[],s.frameElement&&r?Zn(s.frameElement):[]):t.concat(o,Zn(o,[],r))}function th(e){const t=ht(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=St(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=Aa(r)!==a||Aa(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function al(e){return Rt(e)?e:e.contextElement}function sn(e){const t=al(e);if(!St(t))return or(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=th(t);let s=(a?Aa(r.width):r.width)/n,i=(a?Aa(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const C3=or(0);function rh(e){const t=st(e);return!ol()||!t.visualViewport?C3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function P3(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==st(e)?!1:t}function Sr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=al(e);let s=or(1);t&&(n?Rt(n)&&(s=sn(n)):s=sn(e));const i=P3(a,r,n)?rh(a):or(0);let l=(o.left+i.x)/s.x,c=(o.top+i.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(a){const h=st(a),p=n&&Rt(n)?st(n):n;let m=h.frameElement;for(;m&&n&&p!==h;){const y=sn(m),b=m.getBoundingClientRect(),C=ht(m),x=b.left+(m.clientLeft+parseFloat(C.paddingLeft))*y.x,P=b.top+(m.clientTop+parseFloat(C.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,d*=y.y,l+=x,c+=P,m=st(m).frameElement}}return La({width:u,height:d,x:l,y:c})}function M3(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=St(r),a=Bt(r);if(r===a)return t;let s={scrollLeft:0,scrollTop:0},i=or(1);const l=or(0);if((o||!o&&n!=="fixed")&&((ar(r)!=="body"||Xn(a))&&(s=_a(r)),St(r))){const c=Sr(r);i=sn(r),l.x=c.x+r.clientLeft,l.y=c.y+r.clientTop}return{width:t.width*i.x,height:t.height*i.y,x:t.x*i.x-s.scrollLeft*i.x+l.x,y:t.y*i.y-s.scrollTop*i.y+l.y}}function T3(e){return Array.from(e.getClientRects())}function nh(e){return Sr(Bt(e)).left+_a(e).scrollLeft}function E3(e){const t=Bt(e),r=_a(e),n=e.ownerDocument.body,o=at(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=at(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+nh(e);const i=-r.scrollTop;return ht(n).direction==="rtl"&&(s+=at(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}function S3(e,t){const r=st(e),n=Bt(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const c=ol();(!c||c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i,y:l}}function $3(e,t){const r=Sr(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=St(e)?sn(e):or(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,c=n*a.y;return{width:s,height:i,x:l,y:c}}function oh(e,t,r){let n;if(t==="viewport")n=S3(e,r);else if(t==="document")n=E3(Bt(e));else if(Rt(t))n=$3(t,r);else{const o=rh(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return La(n)}function ah(e,t){const r=an(e);return r===t||!Rt(r)||ja(r)?!1:ht(r).position==="fixed"||ah(r,t)}function D3(e,t){const r=t.get(e);if(r)return r;let n=Zn(e,[],!1).filter(i=>Rt(i)&&ar(i)!=="body"),o=null;const a=ht(e).position==="fixed";let s=a?an(e):e;for(;Rt(s)&&!ja(s);){const i=ht(s),l=nl(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Xn(s)&&!l&&ah(e,s))?n=n.filter(u=>u!==s):o=i,s=an(s)}return t.set(e,n),n}function I3(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?D3(t,this._c):[].concat(r),n],i=s[0],l=s.reduce((c,u)=>{const d=oh(t,u,o);return c.top=at(d.top,c.top),c.right=nr(d.right,c.right),c.bottom=nr(d.bottom,c.bottom),c.left=at(d.left,c.left),c},oh(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function k3(e){return th(e)}function A3(e,t,r){const n=St(t),o=Bt(t),a=r==="fixed",s=Sr(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=or(0);if(n||!n&&!a)if((ar(t)!=="body"||Xn(o))&&(i=_a(t)),n){const c=Sr(t,!0,a,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&(l.x=nh(o));return{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function sh(e,t){return!St(e)||ht(e).position==="fixed"?null:t?t(e):e.offsetParent}function ih(e,t){const r=st(e);if(!St(e))return r;let n=sh(e,t);for(;n&&x3(n)&&ht(n).position==="static";)n=sh(n,t);return n&&(ar(n)==="html"||ar(n)==="body"&&ht(n).position==="static"&&!nl(n))?r:n||w3(e)||r}const O3=async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||ih,a=this.getDimensions;return{reference:A3(t,await o(r),n),floating:{x:0,y:0,...await a(r)}}};function N3(e){return ht(e).direction==="rtl"}const L3={convertOffsetParentRelativeRectToViewportRelativeRect:M3,getDocumentElement:Bt,getClippingRect:I3,getOffsetParent:ih,getElementRects:O3,getClientRects:T3,getDimensions:k3,getScale:sn,isElement:Rt,isRTL:N3};function j3(e,t){let r=null,n;const o=Bt(e);function a(){clearTimeout(n),r&&r.disconnect(),r=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const{left:c,top:u,width:d,height:h}=e.getBoundingClientRect();if(i||t(),!d||!h)return;const p=Oa(u),m=Oa(o.clientWidth-(c+d)),y=Oa(o.clientHeight-(u+h)),b=Oa(c),x={rootMargin:-p+"px "+-m+"px "+-y+"px "+-b+"px",threshold:at(0,nr(1,l))||1};let P=!0;function E(S){const N=S[0].intersectionRatio;if(N!==l){if(!P)return s();N?s(!1,N):n=setTimeout(()=>{s(!1,1e-7)},100)}P=!1}try{r=new IntersectionObserver(E,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,x)}r.observe(e)}return s(!0),a}function _3(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=al(e),u=o||a?[...c?Zn(c):[],...Zn(t)]:[];u.forEach(C=>{o&&C.addEventListener("scroll",r,{passive:!0}),a&&C.addEventListener("resize",r)});const d=c&&i?j3(c,r):null;let h=-1,p=null;s&&(p=new ResizeObserver(C=>{let[x]=C;x&&x.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(t)})),r()}),c&&!l&&p.observe(c),p.observe(t));let m,y=l?Sr(e):null;l&&b();function b(){const C=Sr(e);y&&(C.x!==y.x||C.y!==y.y||C.width!==y.width||C.height!==y.height)&&r(),y=C,m=requestAnimationFrame(b)}return r(),()=>{u.forEach(C=>{o&&C.removeEventListener("scroll",r),a&&C.removeEventListener("resize",r)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const F3=(e,t,r)=>{const n=new Map,o={platform:L3,...r},a={...o.platform,_c:n};return f3(e,t,{...o,platform:a})},V3=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?qp({element:n.current,padding:o}).fn(r):{}:n?qp({element:n,padding:o}).fn(r):{}}}};var Fa=typeof document<"u"?f.useLayoutEffect:f.useEffect;function Va(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Va(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Va(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function lh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ch(e,t){const r=lh(e);return Math.round(t*r)/r}function uh(e){const t=U.useRef(e);return Fa(()=>{t.current=e}),t}function z3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[u,d]=U.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=U.useState(n);Va(h,n)||p(n);const[m,y]=U.useState(null),[b,C]=U.useState(null),x=U.useCallback(F=>{F!=N.current&&(N.current=F,y(F))},[y]),P=U.useCallback(F=>{F!==L.current&&(L.current=F,C(F))},[C]),E=a||m,S=s||b,N=U.useRef(null),L=U.useRef(null),g=U.useRef(u),A=uh(l),I=uh(o),T=U.useCallback(()=>{if(!N.current||!L.current)return;const F={placement:t,strategy:r,middleware:h};I.current&&(F.platform=I.current),F3(N.current,L.current,F).then($=>{const V={...$,isPositioned:!0};D.current&&!Va(g.current,V)&&(g.current=V,I0.flushSync(()=>{d(V)}))})},[h,t,r,I]);Fa(()=>{c===!1&&g.current.isPositioned&&(g.current.isPositioned=!1,d(F=>({...F,isPositioned:!1})))},[c]);const D=U.useRef(!1);Fa(()=>(D.current=!0,()=>{D.current=!1}),[]),Fa(()=>{if(E&&(N.current=E),S&&(L.current=S),E&&S){if(A.current)return A.current(E,S,T);T()}},[E,S,T,A]);const w=U.useMemo(()=>({reference:N,floating:L,setReference:x,setFloating:P}),[x,P]),M=U.useMemo(()=>({reference:E,floating:S}),[E,S]),O=U.useMemo(()=>{const F={position:r,left:0,top:0};if(!M.floating)return F;const $=ch(M.floating,u.x),V=ch(M.floating,u.y);return i?{...F,transform:"translate("+$+"px, "+V+"px)",...lh(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:$,top:V}},[r,i,M.floating,u.x,u.y]);return U.useMemo(()=>({...u,update:T,refs:w,elements:M,floatingStyles:O}),[u,T,w,M,O])}const W3=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return f.createElement(Be.svg,he({},a,{ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:f.createElement("polygon",{points:"0,0 30,0 15,10"}))});function B3(e){const[t,r]=f.useState(void 0);return rn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}const dh="Popper",[fh,za]=tn(dh),[R3,ph]=fh(dh),K3=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return f.createElement(R3,{scope:t,anchor:n,onAnchorChange:o},r)},U3="PopperAnchor",H3=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=ph(U3,r),s=f.useRef(null),i=dt(t,s);return f.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||s.current)}),n?null:f.createElement(Be.div,he({},o,{ref:i}))}),hh="PopperContent",[Y3,G3]=fh(hh),q3=f.forwardRef((e,t)=>{var r,n,o,a,s,i,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:C=[],collisionPadding:x=0,sticky:P="partial",hideWhenDetached:E=!1,updatePositionStrategy:S="optimized",onPlaced:N,...L}=e,g=ph(hh,u),[A,I]=f.useState(null),T=dt(t,X=>I(X)),[D,w]=f.useState(null),M=B3(D),O=(r=M==null?void 0:M.width)!==null&&r!==void 0?r:0,F=(n=M==null?void 0:M.height)!==null&&n!==void 0?n:0,$=d+(p!=="center"?"-"+p:""),V=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},Y=Array.isArray(C)?C:[C],K=Y.length>0,R={padding:V,boundary:Y.filter(J3),altBoundary:K},{refs:re,floatingStyles:H,placement:ie,isPositioned:ee,middlewareData:te}=z3({strategy:"fixed",placement:$,whileElementsMounted:(...X)=>_3(...X,{animationFrame:S==="always"}),elements:{reference:g.anchor},middleware:[g3({mainAxis:h+F,alignmentAxis:m}),b&&v3({mainAxis:!0,crossAxis:!1,limiter:P==="partial"?b3():void 0,...R}),b&&p3({...R}),y3({...R,apply:({elements:X,rects:Oe,availableWidth:_e,availableHeight:Fe})=>{const{width:De,height:It}=Oe.reference,mt=X.floating.style;mt.setProperty("--radix-popper-available-width",`${_e}px`),mt.setProperty("--radix-popper-available-height",`${Fe}px`),mt.setProperty("--radix-popper-anchor-width",`${De}px`),mt.setProperty("--radix-popper-anchor-height",`${It}px`)}}),D&&V3({element:D,padding:y}),e6({arrowWidth:O,arrowHeight:F}),E&&h3({strategy:"referenceHidden",...R})]}),[ve,be]=mh(ie),fe=Vt(N);rn(()=>{ee&&(fe==null||fe())},[ee,fe]);const de=(o=te.arrow)===null||o===void 0?void 0:o.x,pe=(a=te.arrow)===null||a===void 0?void 0:a.y,Te=((s=te.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Ee,oe]=f.useState();return rn(()=>{A&&oe(window.getComputedStyle(A).zIndex)},[A]),f.createElement("div",{ref:re.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:ee?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ee,"--radix-popper-transform-origin":[(i=te.transformOrigin)===null||i===void 0?void 0:i.x,(l=te.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},f.createElement(Y3,{scope:u,placedSide:ve,onArrowChange:w,arrowX:de,arrowY:pe,shouldHideArrow:Te},f.createElement(Be.div,he({"data-side":ve,"data-align":be},L,{ref:T,style:{...L.style,animation:ee?void 0:"none",opacity:(c=te.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))}),Q3="PopperArrow",X3={top:"bottom",right:"left",bottom:"top",left:"right"},Z3=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=G3(Q3,n),s=X3[a.placedSide];return f.createElement("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},f.createElement(W3,he({},o,{ref:r,style:{...o.style,display:"block"}})))});function J3(e){return e!==null}const e6=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,a,s;const{placement:i,rects:l,middlewareData:c}=t,d=((r=c.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,h=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[m,y]=mh(i),b={start:"0%",center:"50%",end:"100%"}[y],C=((n=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&n!==void 0?n:0)+h/2,x=((a=(s=c.arrow)===null||s===void 0?void 0:s.y)!==null&&a!==void 0?a:0)+p/2;let P="",E="";return m==="bottom"?(P=d?b:`${C}px`,E=`${-p}px`):m==="top"?(P=d?b:`${C}px`,E=`${l.floating.height+p}px`):m==="right"?(P=`${-p}px`,E=d?b:`${x}px`):m==="left"&&(P=`${l.floating.width+p}px`,E=d?b:`${x}px`),{data:{x:P,y:E}}}});function mh(e){const[t,r="center"]=e.split("-");return[t,r]}const gh=K3,vh=H3,bh=q3,t6=Z3,yh=f.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...o}=e;return n?gn.createPortal(f.createElement(Be.div,he({},o,{ref:t})),n):null});function r6(e,t){return f.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const ln=e=>{const{present:t,children:r}=e,n=n6(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),a=dt(n.ref,o.ref);return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:a}):null};ln.displayName="Presence";function n6(e){const[t,r]=f.useState(),n=f.useRef({}),o=f.useRef(e),a=f.useRef("none"),s=e?"mounted":"unmounted",[i,l]=r6(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=Wa(n.current);a.current=i==="mounted"?c:"none"},[i]),rn(()=>{const c=n.current,u=o.current;if(u!==e){const h=a.current,p=Wa(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),rn(()=>{if(t){const c=d=>{const p=Wa(n.current).includes(d.animationName);d.target===t&&p&&gn.flushSync(()=>l("ANIMATION_END"))},u=d=>{d.target===t&&(a.current=Wa(n.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:f.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function Wa(e){return(e==null?void 0:e.animationName)||"none"}function Ba({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=o6({defaultProp:t,onChange:r}),a=e!==void 0,s=a?e:n,i=Vt(r),l=f.useCallback(c=>{if(a){const d=typeof c=="function"?c(e):c;d!==e&&i(d)}else o(c)},[a,e,o,i]);return[s,l]}function o6({defaultProp:e,onChange:t}){const r=f.useState(e),[n]=r,o=f.useRef(n),a=Vt(t);return f.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}const a6=f.forwardRef((e,t)=>f.createElement(Be.span,he({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),[Ra,uw]=tn("Tooltip",[za]),Ka=za(),s6="TooltipProvider",i6=700,sl="tooltip.open",[l6,il]=Ra(s6),c6=e=>{const{__scopeTooltip:t,delayDuration:r=i6,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,[s,i]=f.useState(!0),l=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),f.createElement(l6,{scope:t,isOpenDelayed:s,delayDuration:r,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),i(!1)},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i(!0),n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(u=>{l.current=u},[]),disableHoverableContent:o},a)},ll="Tooltip",[u6,Jn]=Ra(ll),d6=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=il(ll,e.__scopeTooltip),c=Ka(t),[u,d]=f.useState(null),h=ka(),p=f.useRef(0),m=s??l.disableHoverableContent,y=i??l.delayDuration,b=f.useRef(!1),[C=!1,x]=Ba({prop:n,defaultProp:o,onChange:L=>{L?(l.onOpen(),document.dispatchEvent(new CustomEvent(sl))):l.onClose(),a==null||a(L)}}),P=f.useMemo(()=>C?b.current?"delayed-open":"instant-open":"closed",[C]),E=f.useCallback(()=>{window.clearTimeout(p.current),b.current=!1,x(!0)},[x]),S=f.useCallback(()=>{window.clearTimeout(p.current),x(!1)},[x]),N=f.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{b.current=!0,x(!0)},y)},[y,x]);return f.useEffect(()=>()=>window.clearTimeout(p.current),[]),f.createElement(gh,c,f.createElement(u6,{scope:t,contentId:h,open:C,stateAttribute:P,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayed?N():E()},[l.isOpenDelayed,N,E]),onTriggerLeave:f.useCallback(()=>{m?S():window.clearTimeout(p.current)},[S,m]),onOpen:E,onClose:S,disableHoverableContent:m},r))},xh="TooltipTrigger",f6=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Jn(xh,r),a=il(xh,r),s=Ka(r),i=f.useRef(null),l=dt(t,i,o.onTriggerChange),c=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),f.createElement(vh,he({asChild:!0},s),f.createElement(Be.button,he({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},n,{ref:l,onPointerMove:je(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:je(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:je(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:je(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:je(e.onBlur,o.onClose),onClick:je(e.onClick,o.onClose)})))}),wh="TooltipPortal",[p6,h6]=Ra(wh,{forceMount:void 0}),m6=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=Jn(wh,t);return f.createElement(p6,{scope:t,forceMount:r},f.createElement(ln,{present:r||a.open},f.createElement(yh,{asChild:!0,container:o},n)))},eo="TooltipContent",g6=f.forwardRef((e,t)=>{const r=h6(eo,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=Jn(eo,e.__scopeTooltip);return f.createElement(ln,{present:n||s.open},s.disableHoverableContent?f.createElement(Ch,he({side:o},a,{ref:t})):f.createElement(v6,he({side:o},a,{ref:t})))}),v6=f.forwardRef((e,t)=>{const r=Jn(eo,e.__scopeTooltip),n=il(eo,e.__scopeTooltip),o=f.useRef(null),a=dt(t,o),[s,i]=f.useState(null),{trigger:l,onClose:c}=r,u=o.current,{onPointerInTransitChange:d}=n,h=f.useCallback(()=>{i(null),d(!1)},[d]),p=f.useCallback((m,y)=>{const b=m.currentTarget,C={x:m.clientX,y:m.clientY},x=C6(C,b.getBoundingClientRect()),P=P6(C,x),E=M6(y.getBoundingClientRect()),S=E6([...P,...E]);i(S),d(!0)},[d]);return f.useEffect(()=>()=>h(),[h]),f.useEffect(()=>{if(l&&u){const m=b=>p(b,u),y=b=>p(b,l);return l.addEventListener("pointerleave",m),u.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",y)}}},[l,u,p,h]),f.useEffect(()=>{if(s){const m=y=>{const b=y.target,C={x:y.clientX,y:y.clientY},x=(l==null?void 0:l.contains(b))||(u==null?void 0:u.contains(b)),P=!T6(C,s);x?h():P&&(h(),c())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,u,s,c,h]),f.createElement(Ch,he({},e,{ref:a}))}),[b6,y6]=Ra(ll,{isInside:!1}),Ch=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=Jn(eo,r),c=Ka(r),{onClose:u}=l;return f.useEffect(()=>(document.addEventListener(sl,u),()=>document.removeEventListener(sl,u)),[u]),f.useEffect(()=>{if(l.trigger){const d=h=>{const p=h.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),f.createElement(Kp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u},f.createElement(bh,he({"data-state":l.stateAttribute},c,i,{ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),f.createElement(gc,null,n),f.createElement(b6,{scope:r,isInside:!0},f.createElement(a6,{id:l.contentId,role:"tooltip"},o||n))))}),x6="TooltipArrow",w6=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Ka(r);return y6(x6,r).isInside?null:f.createElement(t6,he({},o,n,{ref:t}))});function C6(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function P6(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function M6(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function T6(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a].x,l=t[a].y,c=t[s].x,u=t[s].y;l>n!=u>n&&r<(c-i)*(n-l)/(u-l)+i&&(o=!o)}return o}function E6(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),S6(t)}function S6(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}const $6=c6,D6=d6,I6=f6,k6=m6,A6=g6,O6=w6,N6=({children:e,showArrow:t=!1,startOpen:r=!1,content:n,hasCloseButton:o=!1,action:a,size:s="sm"})=>{const[i,l]=f.useState(r),c=Me({base:"rounded-lg bg-primary-black-400 px-4 pb-[13px] pt-[12px] font-satoshi text-sm font-medium text-white",variants:{size:{sm:"max-w-[215px]",lg:"max-w-[342px]"}}}),u=()=>{l(!1)},d=()=>{a&&a.onClick(),u()};return j.jsx($6,{children:j.jsxs(D6,{delayDuration:0,defaultOpen:i,open:i,onOpenChange:h=>l(h),children:[j.jsx(I6,{asChild:!0,children:e}),j.jsx(k6,{children:j.jsxs(A6,{className:c({size:s}),sideOffset:5,children:[j.jsxs("div",{children:[j.jsxs("div",{className:"flex gap-4",children:[n,o&&j.jsx(et,{onClick:u,name:"close",className:"mt-1 cursor-pointer text-xs text-white"})]}),a&&j.jsx(Yi,{className:"-mb-1 mt-1 !h-6 !px-0",variant:"tertiaryDark",onClick:d,children:a.label})]}),t&&j.jsx(O6,{className:"TooltipArrow"})]})})]})})};function L6(e){const t=e+"CollectionProvider",[r,n]=tn(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:m,children:y}=p,b=f.useRef(null),C=f.useRef(new Map).current;return f.createElement(o,{scope:m,itemMap:C,collectionRef:b},y)},i=e+"CollectionSlot",l=f.forwardRef((p,m)=>{const{scope:y,children:b}=p,C=a(i,y),x=dt(m,C.collectionRef);return f.createElement(jr,{ref:x},b)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=f.forwardRef((p,m)=>{const{scope:y,children:b,...C}=p,x=f.useRef(null),P=dt(m,x),E=a(c,y);return f.useEffect(()=>(E.itemMap.set(x,{ref:x,...C}),()=>void E.itemMap.delete(x))),f.createElement(jr,{[u]:"",ref:P},b)});function h(p){const m=a(e+"CollectionConsumer",p);return f.useCallback(()=>{const b=m.collectionRef.current;if(!b)return[];const C=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(m.itemMap.values()).sort((E,S)=>C.indexOf(E.ref.current)-C.indexOf(S.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},h,n]}const j6=f.createContext(void 0);function Ph(e){const t=f.useContext(j6);return e||t||"ltr"}const cl="rovingFocusGroup.onEntryFocus",_6={bubbles:!1,cancelable:!0},ul="RovingFocusGroup",[dl,Mh,F6]=L6(ul),[V6,Th]=tn(ul,[F6]),[z6,W6]=V6(ul),B6=f.forwardRef((e,t)=>f.createElement(dl.Provider,{scope:e.__scopeRovingFocusGroup},f.createElement(dl.Slot,{scope:e.__scopeRovingFocusGroup},f.createElement(R6,he({},e,{ref:t}))))),R6=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,d=f.useRef(null),h=dt(t,d),p=Ph(a),[m=null,y]=Ba({prop:s,defaultProp:i,onChange:l}),[b,C]=f.useState(!1),x=Vt(c),P=Mh(r),E=f.useRef(!1),[S,N]=f.useState(0);return f.useEffect(()=>{const L=d.current;if(L)return L.addEventListener(cl,x),()=>L.removeEventListener(cl,x)},[x]),f.createElement(z6,{scope:r,orientation:n,dir:p,loop:o,currentTabStopId:m,onItemFocus:f.useCallback(L=>y(L),[y]),onItemShiftTab:f.useCallback(()=>C(!0),[]),onFocusableItemAdd:f.useCallback(()=>N(L=>L+1),[]),onFocusableItemRemove:f.useCallback(()=>N(L=>L-1),[])},f.createElement(Be.div,he({tabIndex:b||S===0?-1:0,"data-orientation":n},u,{ref:h,style:{outline:"none",...e.style},onMouseDown:je(e.onMouseDown,()=>{E.current=!0}),onFocus:je(e.onFocus,L=>{const g=!E.current;if(L.target===L.currentTarget&&g&&!b){const A=new CustomEvent(cl,_6);if(L.currentTarget.dispatchEvent(A),!A.defaultPrevented){const I=P().filter(O=>O.focusable),T=I.find(O=>O.active),D=I.find(O=>O.id===m),M=[T,D,...I].filter(Boolean).map(O=>O.ref.current);Eh(M)}}E.current=!1}),onBlur:je(e.onBlur,()=>C(!1))})))}),K6="RovingFocusGroupItem",U6=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,...s}=e,i=ka(),l=a||i,c=W6(K6,r),u=c.currentTabStopId===l,d=Mh(r),{onFocusableItemAdd:h,onFocusableItemRemove:p}=c;return f.useEffect(()=>{if(n)return h(),()=>p()},[n,h,p]),f.createElement(dl.ItemSlot,{scope:r,id:l,focusable:n,active:o},f.createElement(Be.span,he({tabIndex:u?0:-1,"data-orientation":c.orientation},s,{ref:t,onMouseDown:je(e.onMouseDown,m=>{n?c.onItemFocus(l):m.preventDefault()}),onFocus:je(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:je(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const y=G6(m,c.orientation,c.dir);if(y!==void 0){m.preventDefault();let C=d().filter(x=>x.focusable).map(x=>x.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const x=C.indexOf(m.currentTarget);C=c.loop?q6(C,x+1):C.slice(x+1)}setTimeout(()=>Eh(C))}})})))}),H6={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Y6(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function G6(e,t,r){const n=Y6(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return H6[n]}function Eh(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function q6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const Q6=B6,X6=U6,Sh="Tabs",[Z6,dw]=tn(Sh,[Th]),$h=Th(),[J6,fl]=Z6(Sh),e7=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:l="automatic",...c}=e,u=Ph(i),[d,h]=Ba({prop:n,onChange:o,defaultProp:a});return f.createElement(J6,{scope:r,baseId:ka(),value:d,onValueChange:h,orientation:s,dir:u,activationMode:l},f.createElement(Be.div,he({dir:u,"data-orientation":s},c,{ref:t})))}),t7="TabsList",r7=f.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=fl(t7,r),s=$h(r);return f.createElement(Q6,he({asChild:!0},s,{orientation:a.orientation,dir:a.dir,loop:n}),f.createElement(Be.div,he({role:"tablist","aria-orientation":a.orientation},o,{ref:t})))}),n7="TabsTrigger",o7=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,s=fl(n7,r),i=$h(r),l=Dh(s.baseId,n),c=Ih(s.baseId,n),u=n===s.value;return f.createElement(X6,he({asChild:!0},i,{focusable:!o,active:u}),f.createElement(Be.button,he({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},a,{ref:t,onMouseDown:je(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?s.onValueChange(n):d.preventDefault()}),onKeyDown:je(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&s.onValueChange(n)}),onFocus:je(e.onFocus,()=>{const d=s.activationMode!=="manual";!u&&!o&&d&&s.onValueChange(n)})})))}),a7="TabsContent",s7=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...s}=e,i=fl(a7,r),l=Dh(i.baseId,n),c=Ih(i.baseId,n),u=n===i.value,d=f.useRef(u);return f.useEffect(()=>{const h=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(h)},[]),f.createElement(ln,{present:o||u},({present:h})=>f.createElement(Be.div,he({"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0},s,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),h&&a))});function Dh(e,t){return`${e}-trigger-${t}`}function Ih(e,t){return`${e}-content-${t}`}const i7=e7,l7=r7,c7=o7,u7=s7,d7=({tabs:e,defaultValue:t,variant:r="button",className:n,...o})=>{const a=Me({base:"",variants:{variant:{underline:"",button:""}}}),s=Me({base:"flex flex-row",variants:{variant:{underline:"",button:""}}}),i=Me({base:"flex h-[82px] w-[197px] items-center justify-center gap-2 text-lg font-medium text-primary-grey-700 hover:text-primary-grey-800 data-[state=active]:font-bold data-[state=active]:text-secondary-green-500",variants:{variant:{underline:"border-b border-primary-grey-600 border-t-transparent hover:border-b-4 hover:border-t-3 hover:border-b-primary-grey-700 hover:font-bold data-[state=active]:border-b-4 data-[state=active]:border-t-3 data-[state=active]:border-b-secondary-green-500 data-[state=active]:text-secondary-green-500",button:"relative z-0 -mr-[1px] rounded-none border border-primary-grey-600 first:rounded-l-xl last:rounded-r-xl hover:z-10 hover:border-2 hover:border-primary-grey-800 data-[state=active]:z-20 data-[state=active]:border-2 data-[state=active]:border-secondary-green-500"}}});return j.jsxs(i7,{defaultValue:t??e[0].key,className:a({variant:r,className:n}),...o,children:[j.jsx(l7,{className:s({variant:r}),children:e.map(({icon:l,key:c,title:u})=>j.jsxs(c7,{value:c,className:i({variant:r}),children:[l&&j.jsx(et,{className:"-mt-[1px]",name:l}),u]},c))}),e.map(({content:l,key:c})=>j.jsx(u7,{value:c,children:l},c))]})},kh=f.forwardRef(({disabled:e,isDatePicker:t,isInvalid:r,isValid:n,className:o,icon:a,message:s,iconAction:i,...l},c)=>{const u=Me({base:"[&_label]:data-[filled-within=true]:!left-[15px] [&_label]:data-[filled-within=true]:!top-[20px] [&_label]:data-[filled-within=true]:!ml-[1px] [&_label]:data-[filled-within=true]:!text-xs [&_label]:data-[filled-within=true]:!text-primary-grey-800",variants:{isInvalid:{true:"[&_label]:data-[filled-within=true]:!text-complementary-red-500"},isValid:{true:"[&_label]:data-[filled-within=true]:!text-secondary-green-500"},disabled:{true:"[&_label]:data-[filled-within=true]:!text-primary-grey-700"}}}),d=Me({base:"left-[15px] font-satoshi font-satoshi text-base text-sm text-primary-grey-800",variants:{isInvalid:{true:"text-complementary-red-500"},isValid:{true:"text-secondary-green-500"},disabled:{true:"text-primary-grey-700"}}}),h=Me({base:"text-left font-satoshi text-base",variants:{disabled:{true:"!text-primary-grey-700"},isDatePicker:{true:"!cursor-pointer"}}}),p=Me({base:"h-12 rounded-lg border border-primary-grey-700 !bg-white px-[15px] text-black !ring-0 !ring-offset-0",variants:{isInvalid:{true:"border-complementary-red-500"},isValid:{true:"border-secondary-green-500"},disabled:{true:"!border-primary-grey-500 !bg-primary-grey-500"},isDatePicker:{true:"!cursor-pointer"}}}),m=Me({base:"mt-[5px] pl-3 font-satoshi",variants:{isInvalid:{true:"text-complementary-red-500"},isValid:{true:"text-secondary-green-500"}}}),y=Me({base:"text-primary-grey-800",variants:{iconAction:{true:"cursor-pointer"}}}),{Component:b,label:C,domRef:x,startContent:P,shouldLabelBeOutside:E,shouldLabelBeInside:S,getBaseProps:N,getLabelProps:L,getInputProps:g,getInnerWrapperProps:A,getInputWrapperProps:I,getDescriptionProps:T}=J5({...l,disabled:e,labelPlacement:"outside",ref:c,classNames:{input:h({disabled:e,isDatePicker:t}),inputWrapper:p({isInvalid:r,isValid:n,disabled:e,isDatePicker:t}),base:u({isInvalid:r,isValid:n,disabled:e,className:o}),label:d({isInvalid:r,isValid:n,disabled:e}),description:m({isInvalid:r,isValid:n})}}),D=j.jsx("label",{...L(),children:C}),w=f.useMemo(()=>P||a?j.jsxs("div",{...A(),children:[P,j.jsx("input",{...g()}),a&&j.jsx(et,{onClick:i,name:a,className:y({iconAction:!!i})})]}):j.jsx("input",{...g()}),[P,i,y,a,g,A]);return j.jsxs(b,{...N(),children:[E?D:null,j.jsxs("div",{...I(),role:"button",onClick:()=>{var M;(M=x.current)==null||M.focus()},children:[S?D:null,w]}),s&&j.jsx("div",{...T(),children:s})]})});let pl=0;function f7(){f.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Ah()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Ah()),pl++,()=>{pl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),pl--}},[])}function Ah(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const hl="focusScope.autoFocusOnMount",ml="focusScope.autoFocusOnUnmount",Oh={bubbles:!1,cancelable:!0},p7=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=f.useState(null),c=Vt(o),u=Vt(a),d=f.useRef(null),h=dt(t,y=>l(y)),p=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let y=function(P){if(p.paused||!i)return;const E=P.target;i.contains(E)?d.current=E:sr(d.current,{select:!0})},b=function(P){if(p.paused||!i)return;const E=P.relatedTarget;E!==null&&(i.contains(E)||sr(d.current,{select:!0}))},C=function(P){if(document.activeElement===document.body)for(const S of P)S.removedNodes.length>0&&sr(i)};document.addEventListener("focusin",y),document.addEventListener("focusout",b);const x=new MutationObserver(C);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",b),x.disconnect()}}},[n,i,p.paused]),f.useEffect(()=>{if(i){jh.add(p);const y=document.activeElement;if(!i.contains(y)){const C=new CustomEvent(hl,Oh);i.addEventListener(hl,c),i.dispatchEvent(C),C.defaultPrevented||(h7(y7(Nh(i)),{select:!0}),document.activeElement===y&&sr(i))}return()=>{i.removeEventListener(hl,c),setTimeout(()=>{const C=new CustomEvent(ml,Oh);i.addEventListener(ml,u),i.dispatchEvent(C),C.defaultPrevented||sr(y??document.body,{select:!0}),i.removeEventListener(ml,u),jh.remove(p)},0)}}},[i,c,u,p]);const m=f.useCallback(y=>{if(!r&&!n||p.paused)return;const b=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,C=document.activeElement;if(b&&C){const x=y.currentTarget,[P,E]=m7(x);P&&E?!y.shiftKey&&C===E?(y.preventDefault(),r&&sr(P,{select:!0})):y.shiftKey&&C===P&&(y.preventDefault(),r&&sr(E,{select:!0})):C===x&&y.preventDefault()}},[r,n,p.paused]);return f.createElement(Be.div,he({tabIndex:-1},s,{ref:h,onKeyDown:m}))});function h7(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(sr(n,{select:t}),document.activeElement!==r)return}function m7(e){const t=Nh(e),r=Lh(t,e),n=Lh(t.reverse(),e);return[r,n]}function Nh(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Lh(e,t){for(const r of e)if(!g7(r,{upTo:t}))return r}function g7(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function v7(e){return e instanceof HTMLInputElement&&"select"in e}function sr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&v7(e)&&t&&e.select()}}const jh=b7();function b7(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=_h(e,t),e.unshift(t)},remove(t){var r;e=_h(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function _h(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function y7(e){return e.filter(t=>t.tagName!=="A")}var x7=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},cn=new WeakMap,Ua=new WeakMap,Ha={},gl=0,Fh=function(e){return e&&(e.host||Fh(e.parentNode))},w7=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Fh(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},C7=function(e,t,r,n){var o=w7(t,Array.isArray(e)?e:[e]);Ha[r]||(Ha[r]=new WeakMap);var a=Ha[r],s=[],i=new Set,l=new Set(o),c=function(d){!d||i.has(d)||(i.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(i.has(h))u(h);else{var p=h.getAttribute(n),m=p!==null&&p!=="false",y=(cn.get(h)||0)+1,b=(a.get(h)||0)+1;cn.set(h,y),a.set(h,b),s.push(h),y===1&&m&&Ua.set(h,!0),b===1&&h.setAttribute(r,"true"),m||h.setAttribute(n,"true")}})};return u(t),i.clear(),gl++,function(){s.forEach(function(d){var h=cn.get(d)-1,p=a.get(d)-1;cn.set(d,h),a.set(d,p),h||(Ua.has(d)||d.removeAttribute(n),Ua.delete(d)),p||d.removeAttribute(r)}),gl--,gl||(cn=new WeakMap,cn=new WeakMap,Ua=new WeakMap,Ha={})}},P7=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||x7(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),C7(n,o,r,"aria-hidden")):function(){return null}},Vh=i4(),vl=function(){},Ya=U.forwardRef(function(e,t){var r=U.useRef(null),n=U.useState({onScrollCapture:vl,onWheelCapture:vl,onTouchMoveCapture:vl}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,p=e.noIsolation,m=e.inert,y=e.allowPinchZoom,b=e.as,C=b===void 0?"div":b,x=zc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),P=h,E=o4([r,t]),S=Pt(Pt({},x),o);return U.createElement(U.Fragment,null,u&&U.createElement(P,{sideCar:Vh,removeScrollBar:c,shards:d,noIsolation:p,inert:m,setCallbacks:a,allowPinchZoom:!!y,lockRef:r}),s?U.cloneElement(U.Children.only(i),Pt(Pt({},S),{ref:E})):U.createElement(C,Pt({},S,{className:l,ref:E}),i))});Ya.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ya.classNames={fullWidth:Pa,zeroRight:Ca};var bl=!1;if(typeof window<"u")try{var Ga=Object.defineProperty({},"passive",{get:function(){return bl=!0,!0}});window.addEventListener("test",Ga,Ga),window.removeEventListener("test",Ga,Ga)}catch{bl=!1}var un=bl?{passive:!1}:!1,M7=function(e){return e.tagName==="TEXTAREA"},zh=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!M7(e)&&r[t]==="visible")},T7=function(e){return zh(e,"overflowY")},E7=function(e){return zh(e,"overflowX")},Wh=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=Bh(e,r);if(n){var o=Rh(e,r),a=o[1],s=o[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},S7=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},$7=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Bh=function(e,t){return e==="v"?T7(t):E7(t)},Rh=function(e,t){return e==="v"?S7(t):$7(t)},D7=function(e,t){return e==="h"&&t==="rtl"?-1:1},I7=function(e,t,r,n,o){var a=D7(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,l=t.contains(i),c=!1,u=s>0,d=0,h=0;do{var p=Rh(e,i),m=p[0],y=p[1],b=p[2],C=y-b-a*m;(m||C)&&Bh(e,i)&&(d+=C,h+=m),i=i.parentNode}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(u&&(o&&d===0||!o&&s>d)||!u&&(o&&h===0||!o&&-s>h))&&(c=!0),c},qa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Kh=function(e){return[e.deltaX,e.deltaY]},Uh=function(e){return e&&"current"in e?e.current:e},k7=function(e,t){return e[0]===t[0]&&e[1]===t[1]},A7=function(e){return`
72
+ `)},x4=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n,a=U.useMemo(function(){return v4(o)},[o]);return U.createElement(b4,{styles:y4(a,!t,o,r?"":"!important")})};const $p=new WeakMap;function Ma(e,t,r){return typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${$p.get(e)}-${r}-${t}`}function w4(e,t,r){var n;let{key:o,isDisabled:a,shouldSelectOnPressUp:s}=e,{selectionManager:i,selectedKey:l}=t,c=o===l,u=a||t.isDisabled||t.disabledKeys.has(o),{itemProps:d,isPressed:h}=y1({selectionManager:i,key:o,ref:r,isDisabled:u,shouldSelectOnPressUp:s,linkBehavior:"selection"}),p=Ma(t,o,"tab"),m=Ma(t,o,"tabpanel"),{tabIndex:y}=d,b=t.collection.getItem(o),C=Vr(b==null?void 0:b.props,{isLink:!!(!(b==null||(n=b.props)===null||n===void 0)&&n.href),labelable:!0});return delete C.id,{tabProps:se(C,d,{id:p,"aria-selected":c,"aria-disabled":u||void 0,"aria-controls":c?m:void 0,tabIndex:u?void 0:y,role:"tab"}),isSelected:c,isDisabled:u,isPressed:h}}function C4(e,t,r){let n=Ug(r)?void 0:0;var o;const a=Ma(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),s=ms({...e,id:a,"aria-labelledby":Ma(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:se(s,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class P4{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}getKeyAbove(t){return this.getPreviousKey(t)}getKeyBelow(t){return this.getNextKey(t)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getPreviousKey(t)),t}getNextKey(t){do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(this.disabledKeys.has(t));return t}getPreviousKey(t){do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(this.disabledKeys.has(t));return t}constructor(t,r,n,o=new Set){this.collection=t,this.flipDirection=r==="rtl"&&n==="horizontal",this.disabledKeys=o}}function M4(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:a,selectionManager:s,disabledKeys:i}=t,{direction:l}=xs(),c=f.useMemo(()=>new P4(a,l,n,i),[a,i,n,l]),{collectionProps:u}=b1({ref:r,selectionManager:s,keyboardDelegate:c,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=Fr();$p.set(t,d);let h=ms({...e,id:d});return{tabListProps:{...se(u,h),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var Dp=vt((e,t)=>{var r,n,o;const{as:a,state:s,className:i,slots:l,classNames:c,...u}=e,d=a||"div",h=nt(t),{tabPanelProps:p}=C4(e,s,h),{focusProps:m,isFocused:y,isFocusVisible:b}=Mt(),C=s.selectedItem,x=(r=C==null?void 0:C.props)==null?void 0:r.children,P=me(c==null?void 0:c.panel,i,(n=C==null?void 0:C.props)==null?void 0:n.className);return x?j.jsx(d,{ref:h,"data-focus":y,"data-focus-visible":b,...se(p,m,u),className:(o=l.panel)==null?void 0:o.call(l,{class:P}),"data-slot":"panel",children:x}):null});Dp.displayName="NextUI.TabPanel";var T4=Dp,Ip=vt((e,t)=>{var r;const{className:n,as:o,item:a,state:s,classNames:i,isDisabled:l,listRef:c,slots:u,motionProps:d,disableAnimation:h,disableCursorAnimation:p,shouldSelectOnPressUp:m,onClick:y,...b}=e,{key:C}=a,x=nt(t),P=o||(e.href?"a":"button"),E=typeof P=="string",{tabProps:S,isSelected:N,isDisabled:L,isPressed:g}=w4({key:C,isDisabled:l,shouldSelectOnPressUp:m},s,x),A=l||L,{focusProps:I,isFocused:T,isFocusVisible:D}=Mt(),{hoverProps:w,isHovered:M}=mr({isDisabled:A}),O=me(i==null?void 0:i.tab,n),[,F]=X5({rerender:!0}),$=()=>{dr(y,S.onClick),!(!(x!=null&&x.current)||!(c!=null&&c.current))&&j5(x.current,{scrollMode:"if-needed",behavior:"smooth",block:"end",inline:"end",boundary:c==null?void 0:c.current})};return j.jsxs(P,{ref:x,"data-disabled":Q(L),"data-focus":Q(T),"data-focus-visible":Q(D),"data-hover":Q(M),"data-hover-unselected":Q((M||g)&&!N),"data-pressed":Q(g),"data-selected":Q(N),"data-slot":"tab",...se(S,A?{}:{...I,...w},Dn(b,{enabled:E,omitPropNames:new Set(["title"])})),className:(r=u.tab)==null?void 0:r.call(u,{class:O}),title:b==null?void 0:b.titleValue,type:P==="button"?"button":void 0,onClick:$,children:[N&&!h&&!p&&F?j.jsx(Xf.span,{className:u.cursor({class:i==null?void 0:i.cursor}),"data-slot":"cursor",layoutDependency:!1,layoutId:"cursor",transition:{type:"spring",bounce:.15,duration:.5},...d}):null,j.jsx("div",{className:u.tabContent({class:i==null?void 0:i.tabContent}),"data-slot":"tabContent",children:a.rendered})]})});Ip.displayName="NextUI.Tab";var E4=Ip;class kp{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return(r==null?void 0:r.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let s of a.childNodes)r(s)};for(let a of t)r(a);let n,o=0;for(let[a,s]of this.keyMap)n?(n.nextKey=a,s.prevKey=n.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),n=s,n.nextKey=void 0;this.lastKey=n==null?void 0:n.key}}function S4(e){let{filter:t}=e,r=e5(e),n=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=f.useCallback(c=>t?new kp(t(c)):new kp(c),[t]),a=f.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),s=q2(e,o,a),i=f.useMemo(()=>new t5(s,r),[s,r]);const l=f.useRef(null);return f.useEffect(()=>{if(r.focusedKey!=null&&!s.getItem(r.focusedKey)){const c=l.current.getItem(r.focusedKey),u=[...l.current.getKeys()].map(y=>{const b=l.current.getItem(y);return b.type==="item"?b:null}).filter(y=>y!==null),d=[...s.getKeys()].map(y=>{const b=s.getItem(y);return b.type==="item"?b:null}).filter(y=>y!==null),h=u.length-d.length;let p=Math.min(h>1?Math.max(c.index-h+1,0):c.index,d.length-1),m;for(;p>=0;){if(!i.isDisabled(d[p].key)){m=d[p];break}p<d.length-1?p++:(p>c.index&&(p=c.index),p--)}r.setFocusedKey(m?m.key:null)}l.current=s},[s,i,r,r.focusedKey]),{collection:s,disabledKeys:n,selectionManager:i}}function $4(e){var t;let[r,n]=_r(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=f.useMemo(()=>r!=null?[r]:[],[r]),{collection:a,disabledKeys:s,selectionManager:i}=S4({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:c=>{var u;let d=(u=c.values().next().value)!==null&&u!==void 0?u:null;d===r&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),l=r!=null?a.getItem(r):null;return{collection:a,disabledKeys:s,selectionManager:i,selectedKey:r,setSelectedKey:n,selectedItem:l}}function D4(e){var t;let r=$4({...e,suppressTextValueWarning:!0,defaultSelectedKey:(t=e.defaultSelectedKey)!==null&&t!==void 0?t:Ap(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:n,collection:o,selectedKey:a}=r,s=f.useRef(a);return f.useEffect(()=>{let i=a;(n.isEmpty||!o.getItem(i))&&(i=Ap(o,r.disabledKeys),i!=null&&n.setSelectedKeys([i])),(i!=null&&n.focusedKey==null||!n.isFocused&&i!==s.current)&&n.setFocusedKey(i),s.current=i}),{...r,isDisabled:e.isDisabled||!1}}function Ap(e,t){let r=null;if(e){for(r=e.getFirstKey();t.has(r)&&r!==e.getLastKey();)r=e.getKeyAfter(r);t.has(r)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}function I4(e){const[t,r]=Sn(e,iu.variantKeys),{ref:n,as:o,className:a,classNames:s,children:i,disableCursorAnimation:l,shouldSelectOnPressUp:c=!0,motionProps:u,...d}=t,h=o||"div",p=typeof h=="string",m=nt(n),y=D4({children:i,...d}),{tabListProps:b}=M4(d,y,m),C=f.useMemo(()=>iu({...r,className:a}),[...Object.values(r),a]),x=me(s==null?void 0:s.base,a),P=f.useMemo(()=>({state:y,slots:C,classNames:s,motionProps:u,listRef:m,shouldSelectOnPressUp:c,disableCursorAnimation:l,isDisabled:e==null?void 0:e.isDisabled,disableAnimation:e==null?void 0:e.disableAnimation}),[y,C,m,u,l,c,e==null?void 0:e.disableAnimation,e==null?void 0:e.isDisabled,s]),E=f.useCallback(N=>({"data-slot":"base",className:C.base({class:me(x,N==null?void 0:N.className)}),...se(Dn(d,{enabled:p}),N)}),[x,d,C]),S=f.useCallback(N=>({ref:m,"data-slot":"tabList",className:C.tabList({class:me(s==null?void 0:s.tabList,N==null?void 0:N.className)}),...se(b,N)}),[m,b,s,C]);return{Component:h,domRef:m,state:y,values:P,getBaseProps:E,getTabListProps:S}}function Op(e,t){var r;const{Component:n,values:o,state:a,getBaseProps:s,getTabListProps:i}=I4({...e,ref:t}),l=f.useId(),c=!e.disableAnimation&&!e.disableCursorAnimation,u={state:a,listRef:o.listRef,slots:o.slots,classNames:o.classNames,isDisabled:o.isDisabled,motionProps:o.motionProps,disableAnimation:o.disableAnimation,shouldSelectOnPressUp:o.shouldSelectOnPressUp,disableCursorAnimation:o.disableCursorAnimation},d=[...a.collection].map(h=>j.jsx(E4,{item:h,...u,...h.props},h.key));return j.jsxs(j.Fragment,{children:[j.jsx("div",{...s(),children:j.jsx(n,{...i(),children:c?j.jsx(K2,{id:l,children:d}):d})}),j.jsx(T4,{classNames:o.classNames,slots:o.slots,state:o.state},(r=a.selectedItem)==null?void 0:r.key)]})}var k4=vt(Op);Op.displayName="NextUI.Tabs";var A4=H2,O4=A4;const N4=({icons:e,className:t})=>{const r=Me({base:"bg-primary-grey-700",variants:{withIcon:{false:"h-6 w-11 px-[2px] group-data-[selected=true]:bg-secondary-green-500",true:"h-[52px] w-[88px] bg-secondary-green-500 group-data-[selected=true]:bg-primary-green-500"}}}),n=Me({variants:{withIcon:{false:"h-5 w-5 group-data-[selected=true]:ml-5",true:"h-11 w-11 group-data-[selected=true]:ml-9"}}});return j.jsx(Q5,{classNames:{wrapper:r({withIcon:!!e,className:t}),thumb:n({withIcon:!!e})},thumbIcon:({isSelected:o,className:a})=>e&&(o?j.jsx(et,{name:e.selectedIcon,className:ur(a,"text-lg")}):j.jsx(et,{name:e.unselectedIcon,className:ur(a,"text-lg")}))})},L4=()=>j.jsx(O5,{classNames:{wrapper:"w-4 h-4 rounded-sm before:rounded-sm before:border before:border-primary-grey-700 after:rounded-sm after:bg-secondary-green-500",icon:"w-[11px] h-2.5 [&>*]:stroke-[4px]"}}),Np=({size:e="md",className:t,border:r=!1,image:n,label:o,...a})=>{const s=Me({base:"bg-white font-satoshi font-bold capitalize text-white",variants:{size:{lg:"h-28 w-28 text-[48px]",md:"h-[72px] w-[72px] text-[32px]",sm:"h-12 w-12 text-[24px]",xs:"h-6 w-6 text-[12px]"},border:{true:"border-primary-grey-600"},isText:{true:"bg-complementary-violet-500 "}},compoundVariants:[{border:!0,size:"lg",class:"border-[4px]"},{border:!0,size:"md",class:"border-[3px]"},{border:!0,size:"sm",class:"border-2"},{border:!0,size:"xs",class:"border"}]}),i=Me({base:"text-primary-grey-600",variants:{size:{xs:"text-[12px]",sm:"text-[24px]",md:"text-[32px]",lg:"text-[48px]"}}});return j.jsx(i5,{fallback:!o&&j.jsx(et,{name:"user",className:i({size:e})}),showFallback:!!o,src:n,name:o,className:s({size:e,border:r,isText:!!(o&&!n),className:t}),...a})},j4=({options:e,labelPosition:t="right"})=>j.jsx(U5,{children:e.map(r=>j.jsxs("div",{className:"flex items-center gap-2",children:[t==="left"&&j.jsx("label",{"data-testid":"label-position-left",children:r.label}),j.jsx(Y5,{value:r.value,id:r.id,classNames:{wrapper:"border border-primary-grey-700 group-data-[selected=true]:border-secondary-green-500 group-data-[selected=true]:bg-secondary-green-500",control:"bg-white"}}),t==="right"&&r.label&&j.jsx("label",{"data-testid":"label-position-right",children:r.label})]},r.value))}),Yi=({children:e,size:t,variant:r="primary",disabled:n,full:o=!1,iconLeft:a,iconRight:s,className:i,hasLoading:l,isLoadingComplete:c,onClick:u,onLoadingAnimationComplete:d})=>{const[h,p]=f.useState(!1);let m=null;const[y,b]=f.useState("w-0"),C=E=>{if(l){p(!0);let S=1;m=setInterval(()=>{b(`w-${S}/4`),S<3?S++:m&&clearInterval(m)},1e3)}u&&u(E)},x=Me({base:`absolute left-0 top-0 h-full rounded-full bg-transparent duration-1000 ease-in ${y}`,variants:{isLoadingComplete:{true:"w-full duration-500",false:""},loadingVariant:{primaryDark:"bg-white",primaryLight:"bg-primary-green-500 ",primary:"bg-primary-green-500 ",negative:"bg-complementary-red-700",secondaryNegative:"bg-complementary-red-50",secondary:"bg-secondary-green-50",tertiary:"",tertiaryDark:"",tertiaryLight:"",direction:"",directionCircle:""}}}),P=Me({base:"relative !overflow-hidden rounded-full border-transparent px-10 py-4 font-bold text-white !ring-0 !ring-transparent hover:text-white focus:outline focus:outline-2 focus:-outline-offset-4 focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-4 focus-visible:outline-white",variants:{size:{small:"h-9",medium:"h-12",large:"h-14"},variant:{primaryDark:"bg-white text-primary-green-500 hover:bg-secondary-green-500 focus:bg-secondary-green-500 focus:text-white focus:outline-primary-green-500",primaryLight:"bg-primary-green-500 hover:bg-white hover:text-secondary-green-500 focus:bg-white focus:text-secondary-green-500 focus:outline-secondary-green-500",primary:"bg-primary-green-500 hover:bg-secondary-green-500 focus:bg-secondary-green-500 focus:outline-white",negative:"bg-complementary-red-700 hover:border-transparent hover:bg-complementary-red-500 focus:bg-complementary-red-500 focus:outline-white",secondaryNegative:"border border-complementary-red-700 !bg-white font-medium text-complementary-red-700 hover:border-2 hover:border-complementary-red-500 hover:text-complementary-red-500 focus:border-[3px] focus:border-complementary-red-500 focus:text-complementary-red-500",secondary:"border border-primary-green-500 !bg-transparent font-medium text-primary-green-500 hover:border-2 hover:border-secondary-green-500 hover:text-secondary-green-500 focus:border-[3px] focus:border-secondary-green-500 focus:text-secondary-green-500",tertiary:"!bg-transparent px-4 font-medium text-primary-green-500 underline hover:text-secondary-green-500 focus:font-bold focus:text-secondary-green-500 focus:outline-none",tertiaryDark:"!bg-transparent px-4 font-medium text-secondary-green-500 underline focus:font-bold focus:text-secondary-green-500 focus:outline-none",tertiaryLight:"!bg-transparent px-4 font-medium text-primary-green-500 underline focus:font-bold focus:text-primary-green-500 focus:outline-none",direction:"h-10 bg-primary-green-500 p-2.5 font-medium hover:bg-secondary-green-500 focus:border-none focus:bg-secondary-green-500 focus:outline-none",directionCircle:"font:medium bg-primary-green-500 hover:bg-secondary-green-500 focus:border-none focus:bg-secondary-green-500 focus:outline-none"},full:{true:"w-full",false:""},disabled:{true:"pointer-events-none border-transparent bg-primary-grey-500 font-medium text-primary-grey-700",false:""},isLoading:{true:"",false:""},hasIcon:{true:"!px-6"}},compoundVariants:[{variant:"primaryDark",isLoading:!0,class:"!bg-secondary-green-500 !text-primary-green-500 focus:bg-secondary-green-500 focus:outline-secondary-green-500"},{variant:"primaryLight",isLoading:!0,class:"!bg-white text-secondary-green-500 focus:outline-white"},{variant:"primary",isLoading:!0,class:"!bg-secondary-green-500 focus:outline-secondary-green-500"},{variant:"negative",isLoading:!0,class:"!bg-complementary-red-500 focus:outline-complementary-red-500"},{variant:"secondaryNegative",isLoading:!0,class:"!border !border-complementary-red-700 !bg-white text-complementary-red-700 focus:outline-none"},{variant:"secondary",isLoading:!0,class:"!border !border-secondary-green-500 !bg-white text-secondary-green-500 focus:outline-none"},{variant:"tertiary",isLoading:!0,class:"!font-medium"},{variant:"tertiaryDark",isLoading:!0,class:"!font-medium"},{variant:"tertiaryLight",isLoading:!0,class:"!font-medium"},{variant:"secondaryNegative",disabled:!0,class:"border border-primary-grey-700 bg-transparent"},{variant:"secondary",disabled:!0,class:"border border-primary-grey-700 bg-transparent"},{variant:"tertiary",disabled:!0,class:"bg-transparent underline"},{variant:"directionCircle",hasIcon:!0,class:"!min-w-unit-10 !px-0"}]});return f.useEffect(()=>{setTimeout(()=>{d&&d()})},[c,d]),f.useEffect(()=>()=>{m&&clearInterval(m)},[m]),j.jsx(g5,{onClick:C,className:ur(i,P({size:t,variant:r,disabled:n,full:o,isLoading:h,hasIcon:!!(a||s)})),children:j.jsxs("div",{children:[j.jsx("div",{className:ur(i,x({isLoadingComplete:c,loadingVariant:r}))}),j.jsxs("div",{className:"relative flex items-center gap-3 text-center",children:[a&&j.jsx(et,{"data-testid":"button-component-icon-left",name:a}),e,s&&j.jsx(et,{"data-testid":"button-component-icon-right",name:s})]})]})})},_4=({children:e,className:t,avatar:r,size:n="sm",disabled:o=!1,iconLeft:a,iconRight:s})=>{const i=Me({base:"flex h-6 cursor-pointer items-center justify-center gap-2 border border-primary-green-500 bg-white px-2 pt-[1px] font-satoshi text-[10px] font-medium leading-[15px] text-primary-green-500 hover:border-secondary-green-500 hover:text-secondary-green-500 active:border-[2px] active:px-[7px]",variants:{size:{sm:"",lg:"h-[54px] gap-3 px-4 text-base active:px-[15px]"},hasAvatar:{true:"!border-0 bg-primary-grey-600 pl-6"},disabled:{true:"cursor-default !border-1 !border-primary-grey-500 bg-primary-grey-500 !text-primary-grey-800"}},compoundVariants:[{size:"sm",hasAvatar:!0,class:"pl-6 active:pl-[24px] active:pr-[8px]"},{size:"lg",hasAvatar:!0,class:"pl-14 active:pl-[56px] active:pr-[16px]"},{size:"sm",disabled:!0,class:"active:px-[8px]"},{size:"lg",disabled:!0,class:"active:px-[16px]"}]}),l=Me({base:"absolute left-0 top-0",variants:{size:{sm:"",lg:"h-[54px] w-[54px]"}}}),c=Me({base:"text-xs",variants:{size:{sm:"",lg:"text-lg"}}});return j.jsxs(b5,{size:n,className:ur(i({hasAvatar:!!r,size:n,disabled:o,className:t})),startContent:a&&j.jsx(et,{className:c({size:n}),name:a}),endContent:s&&j.jsx(et,{className:c({size:n}),name:s}),children:[r&&j.jsx(Np,{className:l({size:n}),border:!1,size:"xs",image:r}),e]})};function F4(e,t,r=window){const n=f.useRef(t);f.useEffect(()=>{n.current=t},[t]),f.useEffect(()=>{if(r==null)return;const o=a=>n.current(a);return r.addEventListener(e,o),()=>r.removeEventListener(e,o)},[e,r])}const V4=({tabs:e,size:t="md",selectedKey:r,onSelectionChange:n,...o})=>{const[a,s]=f.useState(r??e[0].key),i=Me({base:"bg-primary-grey-600 p-[1px]",variants:{size:{sm:"h-8",md:"h-9",lg:"h-11"}}}),l=Me({base:"h-full data-[selected=true]:!font-bold data-[hover-unselected='true']:!text-secondary-green-500 data-[selected=true]:!text-primary-green-500 data-[hover='true']:opacity-100",variants:{size:{sm:"px-[40px]",md:"px-[80px]",lg:"px-[75px]"}}}),c=Me({base:"!text-white shadow-none"}),u=Me({base:"!font-inherit font-satoshi !text-inherit",variants:{size:{sm:"text-[14px]",md:"text-[14px]",lg:"text-[20px]"}}});return F4("click",d=>{var m;const h=d.target,p=(m=h==null?void 0:h.closest)==null?void 0:m.call(h,'button[data-slot="tab"]');if(p){const y=p==null?void 0:p.dataset.key;s(y)}}),j.jsx(k4,{selectedKey:a,onSelectionChange:d=>{n?n(d):s(d)},classNames:{tabList:i({size:t}),tab:l({size:t}),cursor:c(),tabContent:u({size:t})},radius:"full",size:t,...o,children:e.map(({key:d,title:h,component:p})=>j.jsx(O4,{title:h,children:p},d))})},Lp=({message:e,actions:t,inlineActions:r=!0})=>{const n=Me({base:"flex gap-3 rounded-lg bg-primary-black-400 p-4",variants:{inlineActions:{true:"flex flex-row",false:"flex flex-col items-end justify-end"},toastType:{alert:"rounded-2xl bg-primary-grey-600",snackbar:"bg-primary-black-400",banner:"rounded-2xl bg-complementary-red-500"}}});return j.jsxs("div",{className:n({inlineActions:r}),children:[j.jsx("div",{className:"flex flex-1 items-center gap-4",children:j.jsx("p",{className:"font-satoshi text-sm",children:e})}),j.jsx("div",{children:t&&j.jsx("div",{className:"flex",children:t.map(({label:o,onClick:a})=>j.jsx(Yi,{onClick:a,variant:"tertiaryDark",children:o},o))})})]})};function jp(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=jp(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function rr(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=jp(e))&&(n&&(n+=" "),n+=t);return n}const Yn=e=>typeof e=="number"&&!isNaN(e),Tr=e=>typeof e=="string",Qe=e=>typeof e=="function",Ta=e=>Tr(e)||Qe(e)?e:null,Gi=e=>f.isValidElement(e)||Tr(e)||Qe(e)||Yn(e);function z4(e,t,r){r===void 0&&(r=300);const{scrollHeight:n,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=n+"px",o.transition=`all ${r}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,r)})})}function Ea(e){let{enter:t,exit:r,appendPosition:n=!1,collapse:o=!0,collapseDuration:a=300}=e;return function(s){let{children:i,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:h}=s;const p=n?`${t}--${l}`:t,m=n?`${r}--${l}`:r,y=f.useRef(0);return f.useLayoutEffect(()=>{const b=d.current,C=p.split(" "),x=P=>{P.target===d.current&&(b.dispatchEvent(new Event("d")),b.removeEventListener("animationend",x),b.removeEventListener("animationcancel",x),y.current===0&&P.type!=="animationcancel"&&b.classList.remove(...C))};b.classList.add(...C),b.addEventListener("animationend",x),b.addEventListener("animationcancel",x)},[]),f.useEffect(()=>{const b=d.current,C=()=>{b.removeEventListener("animationend",C),o?z4(b,u,a):u()};h||(c?C():(y.current=1,b.className+=` ${m}`,b.addEventListener("animationend",C)))},[h]),f.createElement(f.Fragment,null,i)}}function _p(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const pt={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const r=this.list.get(e).filter(n=>n!==t);return this.list.set(e,r),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const r=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(r)})}},Sa=e=>{let{theme:t,type:r,...n}=e;return f.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...n})},qi={info:function(e){return f.createElement(Sa,{...e},f.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return f.createElement(Sa,{...e},f.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return f.createElement(Sa,{...e},f.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return f.createElement(Sa,{...e},f.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return f.createElement("div",{className:"Toastify__spinner"})}};function W4(e){const[,t]=f.useReducer(p=>p+1,0),[r,n]=f.useState([]),o=f.useRef(null),a=f.useRef(new Map).current,s=p=>r.indexOf(p)!==-1,i=f.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:s,getToast:p=>a.get(p)}).current;function l(p){let{containerId:m}=p;const{limit:y}=i.props;!y||m&&i.containerId!==m||(i.count-=i.queue.length,i.queue=[])}function c(p){n(m=>p==null?[]:m.filter(y=>y!==p))}function u(){const{toastContent:p,toastProps:m,staleId:y}=i.queue.shift();h(p,m,y)}function d(p,m){let{delay:y,staleId:b,...C}=m;if(!Gi(p)||function(D){return!o.current||i.props.enableMultiContainer&&D.containerId!==i.props.containerId||a.has(D.toastId)&&D.updateId==null}(C))return;const{toastId:x,updateId:P,data:E}=C,{props:S}=i,N=()=>c(x),L=P==null;L&&i.count++;const g={...S,style:S.toastStyle,key:i.toastKey++,...Object.fromEntries(Object.entries(C).filter(D=>{let[w,M]=D;return M!=null})),toastId:x,updateId:P,data:E,closeToast:N,isIn:!1,className:Ta(C.className||S.toastClassName),bodyClassName:Ta(C.bodyClassName||S.bodyClassName),progressClassName:Ta(C.progressClassName||S.progressClassName),autoClose:!C.isLoading&&(A=C.autoClose,I=S.autoClose,A===!1||Yn(A)&&A>0?A:I),deleteToast(){const D=_p(a.get(x),"removed");a.delete(x),pt.emit(4,D);const w=i.queue.length;if(i.count=x==null?i.count-i.displayedToast:i.count-1,i.count<0&&(i.count=0),w>0){const M=x==null?i.props.limit:1;if(w===1||M===1)i.displayedToast++,u();else{const O=M>w?w:M;i.displayedToast=O;for(let F=0;F<O;F++)u()}}else t()}};var A,I;g.iconOut=function(D){let{theme:w,type:M,isLoading:O,icon:F}=D,$=null;const V={theme:w,type:M};return F===!1||(Qe(F)?$=F(V):f.isValidElement(F)?$=f.cloneElement(F,V):Tr(F)||Yn(F)?$=F:O?$=qi.spinner():(Y=>Y in qi)(M)&&($=qi[M](V))),$}(g),Qe(C.onOpen)&&(g.onOpen=C.onOpen),Qe(C.onClose)&&(g.onClose=C.onClose),g.closeButton=S.closeButton,C.closeButton===!1||Gi(C.closeButton)?g.closeButton=C.closeButton:C.closeButton===!0&&(g.closeButton=!Gi(S.closeButton)||S.closeButton);let T=p;f.isValidElement(p)&&!Tr(p.type)?T=f.cloneElement(p,{closeToast:N,toastProps:g,data:E}):Qe(p)&&(T=p({closeToast:N,toastProps:g,data:E})),S.limit&&S.limit>0&&i.count>S.limit&&L?i.queue.push({toastContent:T,toastProps:g,staleId:b}):Yn(y)?setTimeout(()=>{h(T,g,b)},y):h(T,g,b)}function h(p,m,y){const{toastId:b}=m;y&&a.delete(y);const C={content:p,props:m};a.set(b,C),n(x=>[...x,b].filter(P=>P!==y)),pt.emit(4,_p(C,C.props.updateId==null?"added":"updated"))}return f.useEffect(()=>(i.containerId=e.containerId,pt.cancelEmit(3).on(0,d).on(1,p=>o.current&&c(p)).on(5,l).emit(2,i),()=>{a.clear(),pt.emit(3,i)}),[]),f.useEffect(()=>{i.props=e,i.isToastActive=s,i.displayedToast=r.length}),{getToastToRender:function(p){const m=new Map,y=Array.from(a.values());return e.newestOnTop&&y.reverse(),y.forEach(b=>{const{position:C}=b.props;m.has(C)||m.set(C,[]),m.get(C).push(b)}),Array.from(m,b=>p(b[0],b[1]))},containerRef:o,isToastActive:s}}function Fp(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Vp(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function B4(e){const[t,r]=f.useState(!1),[n,o]=f.useState(!1),a=f.useRef(null),s=f.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,i=f.useRef(e),{autoClose:l,pauseOnHover:c,closeToast:u,onClick:d,closeOnClick:h}=e;function p(E){if(e.draggable){E.nativeEvent.type==="touchstart"&&E.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",C),document.addEventListener("mouseup",x),document.addEventListener("touchmove",C),document.addEventListener("touchend",x);const S=a.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=S.getBoundingClientRect(),S.style.transition="",s.x=Fp(E.nativeEvent),s.y=Vp(E.nativeEvent),e.draggableDirection==="x"?(s.start=s.x,s.removalDistance=S.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=S.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function m(E){if(s.boundingRect){const{top:S,bottom:N,left:L,right:g}=s.boundingRect;E.nativeEvent.type!=="touchend"&&e.pauseOnHover&&s.x>=L&&s.x<=g&&s.y>=S&&s.y<=N?b():y()}}function y(){r(!0)}function b(){r(!1)}function C(E){const S=a.current;s.canDrag&&S&&(s.didMove=!0,t&&b(),s.x=Fp(E),s.y=Vp(E),s.delta=e.draggableDirection==="x"?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),S.style.transform=`translate${e.draggableDirection}(${s.delta}px)`,S.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function x(){document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",x);const E=a.current;if(s.canDrag&&s.didMove&&E){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),void e.closeToast();E.style.transition="transform 0.2s, opacity 0.2s",E.style.transform=`translate${e.draggableDirection}(0)`,E.style.opacity="1"}}f.useEffect(()=>{i.current=e}),f.useEffect(()=>(a.current&&a.current.addEventListener("d",y,{once:!0}),Qe(e.onOpen)&&e.onOpen(f.isValidElement(e.children)&&e.children.props),()=>{const E=i.current;Qe(E.onClose)&&E.onClose(f.isValidElement(E.children)&&E.children.props)}),[]),f.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||b(),window.addEventListener("focus",y),window.addEventListener("blur",b)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",y),window.removeEventListener("blur",b))}),[e.pauseOnFocusLoss]);const P={onMouseDown:p,onTouchStart:p,onMouseUp:m,onTouchEnd:m};return l&&c&&(P.onMouseEnter=b,P.onMouseLeave=y),h&&(P.onClick=E=>{d&&d(E),s.canCloseOnClick&&u()}),{playToast:y,pauseToast:b,isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:P}}function zp(e){let{closeToast:t,theme:r,ariaLabel:n="close"}=e;return f.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:o=>{o.stopPropagation(),t(o)},"aria-label":n},f.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},f.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function R4(e){let{delay:t,isRunning:r,closeToast:n,type:o="default",hide:a,className:s,style:i,controlledProgress:l,progress:c,rtl:u,isIn:d,theme:h}=e;const p=a||l&&c===0,m={...i,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused",opacity:p?0:1};l&&(m.transform=`scaleX(${c})`);const y=rr("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),b=Qe(s)?s({rtl:u,type:o,defaultClassName:y}):rr(y,s);return f.createElement("div",{role:"progressbar","aria-hidden":p?"true":"false","aria-label":"notification timer",className:b,style:m,[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{d&&n()}})}const K4=e=>{const{isRunning:t,preventExitTransition:r,toastRef:n,eventHandlers:o}=B4(e),{closeButton:a,children:s,autoClose:i,onClick:l,type:c,hideProgressBar:u,closeToast:d,transition:h,position:p,className:m,style:y,bodyClassName:b,bodyStyle:C,progressClassName:x,progressStyle:P,updateId:E,role:S,progress:N,rtl:L,toastId:g,deleteToast:A,isIn:I,isLoading:T,iconOut:D,closeOnClick:w,theme:M}=e,O=rr("Toastify__toast",`Toastify__toast-theme--${M}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":L},{"Toastify__toast--close-on-click":w}),F=Qe(m)?m({rtl:L,position:p,type:c,defaultClassName:O}):rr(O,m),$=!!N||!i,V={closeToast:d,type:c,theme:M};let Y=null;return a===!1||(Y=Qe(a)?a(V):f.isValidElement(a)?f.cloneElement(a,V):zp(V)),f.createElement(h,{isIn:I,done:A,position:p,preventExitTransition:r,nodeRef:n},f.createElement("div",{id:g,onClick:l,className:F,...o,style:y,ref:n},f.createElement("div",{...I&&{role:S},className:Qe(b)?b({type:c}):rr("Toastify__toast-body",b),style:C},D!=null&&f.createElement("div",{className:rr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!T})},D),f.createElement("div",null,s)),Y,f.createElement(R4,{...E&&!$?{key:`pb-${E}`}:{},rtl:L,theme:M,delay:i,isRunning:t,isIn:I,closeToast:d,hide:u,type:c,style:P,className:x,controlledProgress:$,progress:N||0})))},$a=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},U4=Ea($a("bounce",!0));Ea($a("slide",!0)),Ea($a("zoom")),Ea($a("flip"));const Wp=f.forwardRef((e,t)=>{const{getToastToRender:r,containerRef:n,isToastActive:o}=W4(e),{className:a,style:s,rtl:i,containerId:l}=e;function c(u){const d=rr("Toastify__toast-container",`Toastify__toast-container--${u}`,{"Toastify__toast-container--rtl":i});return Qe(a)?a({position:u,rtl:i,defaultClassName:d}):rr(d,Ta(a))}return f.useEffect(()=>{t&&(t.current=n.current)},[]),f.createElement("div",{ref:n,className:"Toastify",id:l},r((u,d)=>{const h=d.length?{...s}:{...s,pointerEvents:"none"};return f.createElement("div",{className:c(u),style:h,key:`container-${u}`},d.map((p,m)=>{let{content:y,props:b}=p;return f.createElement(K4,{...b,isIn:o(b.toastId),style:{...b.style,"--nth":m+1,"--len":d.length},key:`toast-${b.key}`},y)}))}))});Wp.displayName="ToastContainer",Wp.defaultProps={position:"top-right",transition:U4,autoClose:5e3,closeButton:zp,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let Qi,Er=new Map,Gn=[],H4=1;function Bp(){return""+H4++}function Y4(e){return e&&(Tr(e.toastId)||Yn(e.toastId))?e.toastId:Bp()}function qn(e,t){return Er.size>0?pt.emit(0,e,t):Gn.push({content:e,options:t}),t.toastId}function Da(e,t){return{...t,type:t&&t.type||e,toastId:Y4(t)}}function Ia(e){return(t,r)=>qn(t,Da(e,r))}function Ae(e,t){return qn(e,Da("default",t))}Ae.loading=(e,t)=>qn(e,Da("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ae.promise=function(e,t,r){let n,{pending:o,error:a,success:s}=t;o&&(n=Tr(o)?Ae.loading(o,r):Ae.loading(o.render,{...r,...o}));const i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(u,d,h)=>{if(d==null)return void Ae.dismiss(n);const p={type:u,...i,...r,data:h},m=Tr(d)?{render:d}:d;return n?Ae.update(n,{...p,...m}):Ae(m.render,{...p,...m}),h},c=Qe(e)?e():e;return c.then(u=>l("success",s,u)).catch(u=>l("error",a,u)),c},Ae.success=Ia("success"),Ae.info=Ia("info"),Ae.error=Ia("error"),Ae.warning=Ia("warning"),Ae.warn=Ae.warning,Ae.dark=(e,t)=>qn(e,Da("default",{theme:"dark",...t})),Ae.dismiss=e=>{Er.size>0?pt.emit(1,e):Gn=Gn.filter(t=>e!=null&&t.options.toastId!==e)},Ae.clearWaitingQueue=function(e){return e===void 0&&(e={}),pt.emit(5,e)},Ae.isActive=e=>{let t=!1;return Er.forEach(r=>{r.isToastActive&&r.isToastActive(e)&&(t=!0)}),t},Ae.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const r=function(n,o){let{containerId:a}=o;const s=Er.get(a||Qi);return s&&s.getToast(n)}(e,t);if(r){const{props:n,content:o}=r,a={delay:100,...n,...t,toastId:t.toastId||e,updateId:Bp()};a.toastId!==e&&(a.staleId=e);const s=a.render||o;delete a.render,qn(s,a)}},0)},Ae.done=e=>{Ae.update(e,{progress:1})},Ae.onChange=e=>(pt.on(4,e),()=>{pt.off(4,e)}),Ae.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Ae.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},pt.on(2,e=>{Qi=e.containerId||e,Er.set(Qi,e),Gn.forEach(t=>{pt.emit(0,t.content,t.options)}),Gn=[]}).on(3,e=>{Er.delete(e.containerId||e),Er.size===0&&pt.off(0).off(1).off(5)});const iw="",G4=()=>({snackbar:(t,r)=>{Ae(j.jsx(Lp,{message:t,actions:r==null?void 0:r.actions,inlineActions:r==null?void 0:r.inlineActions}))}});function je(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function tn(e,t=[]){let r=[];function n(a,s){const i=f.createContext(s),l=r.length;r=[...r,s];function c(d){const{scope:h,children:p,...m}=d,y=(h==null?void 0:h[e][l])||i,b=f.useMemo(()=>m,Object.values(m));return f.createElement(y.Provider,{value:b},p)}function u(d,h){const p=(h==null?void 0:h[e][l])||i,m=f.useContext(p);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=r.map(s=>f.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return f.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[n,q4(o,...t)]}function q4(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...i,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function Vt(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function Q4(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const Xi="dismissableLayer.update",X4="dismissableLayer.pointerDownOutside",Z4="dismissableLayer.focusOutside";let Rp;const J4=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kp=f.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...c}=e,u=f.useContext(J4),[d,h]=f.useState(null),p=(r=d==null?void 0:d.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,m]=f.useState({}),y=dt(t,g=>h(g)),b=Array.from(u.layers),[C]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(C),P=d?b.indexOf(d):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,S=P>=x,N=e3(g=>{const A=g.target,I=[...u.branches].some(T=>T.contains(A));!S||I||(a==null||a(g),i==null||i(g),g.defaultPrevented||l==null||l())},p),L=t3(g=>{const A=g.target;[...u.branches].some(T=>T.contains(A))||(s==null||s(g),i==null||i(g),g.defaultPrevented||l==null||l())},p);return Q4(g=>{P===u.layers.size-1&&(o==null||o(g),!g.defaultPrevented&&l&&(g.preventDefault(),l()))},p),f.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Rp=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Up(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Rp)}},[d,p,n,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Up())},[d,u]),f.useEffect(()=>{const g=()=>m({});return document.addEventListener(Xi,g),()=>document.removeEventListener(Xi,g)},[]),f.createElement(Be.div,he({},c,{ref:y,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:je(e.onFocusCapture,L.onFocusCapture),onBlurCapture:je(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:je(e.onPointerDownCapture,N.onPointerDownCapture)}))});function e3(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let c=function(){Hp(X4,r,l,{discrete:!0})};const l={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function t3(e,t=globalThis==null?void 0:globalThis.document){const r=Vt(e),n=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!n.current&&Hp(Z4,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Up(){const e=new CustomEvent(Xi);document.dispatchEvent(e)}function Hp(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?wm(o,a):o.dispatchEvent(a)}const rn=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},r3=U["useId".toString()]||(()=>{});let n3=0;function ka(e){const[t,r]=U.useState(r3());return rn(()=>{e||r(n=>n??String(n3++))},[e]),e||(t?`radix-${t}`:"")}const o3=["top","right","bottom","left"],nr=Math.min,at=Math.max,Aa=Math.round,Oa=Math.floor,or=e=>({x:e,y:e}),a3={left:"right",right:"left",bottom:"top",top:"bottom"},s3={start:"end",end:"start"};function Zi(e,t,r){return at(e,nr(t,r))}function zt(e,t){return typeof e=="function"?e(t):e}function Wt(e){return e.split("-")[0]}function nn(e){return e.split("-")[1]}function Ji(e){return e==="x"?"y":"x"}function el(e){return e==="y"?"height":"width"}function on(e){return["top","bottom"].includes(Wt(e))?"y":"x"}function tl(e){return Ji(on(e))}function i3(e,t,r){r===void 0&&(r=!1);const n=nn(e),o=tl(e),a=el(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Na(s)),[s,Na(s)]}function l3(e){const t=Na(e);return[rl(e),t,rl(t)]}function rl(e){return e.replace(/start|end/g,t=>s3[t])}function c3(e,t,r){const n=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:s;default:return[]}}function u3(e,t,r,n){const o=nn(e);let a=c3(Wt(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(rl)))),a}function Na(e){return e.replace(/left|right|bottom|top/g,t=>a3[t])}function d3(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yp(e){return typeof e!="number"?d3(e):{top:e,right:e,bottom:e,left:e}}function La(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Gp(e,t,r){let{reference:n,floating:o}=e;const a=on(t),s=tl(t),i=el(s),l=Wt(t),c=a==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,h=n[i]/2-o[i]/2;let p;switch(l){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-o.width,y:d};break;default:p={x:n.x,y:n.y}}switch(nn(t)){case"start":p[s]-=h*(r&&c?-1:1);break;case"end":p[s]+=h*(r&&c?-1:1);break}return p}const f3=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Gp(c,n,l),h=n,p={},m=0;for(let y=0;y<i.length;y++){const{name:b,fn:C}=i[y],{x,y:P,data:E,reset:S}=await C({x:u,y:d,initialPlacement:n,placement:h,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});if(u=x??u,d=P??d,p={...p,[b]:{...p[b],...E}},S&&m<=50){m++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:d}=Gp(c,h,l)),y=-1;continue}}return{x:u,y:d,placement:h,strategy:o,middlewareData:p}};async function Qn(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=zt(t,e),m=Yp(p),b=i[h?d==="floating"?"reference":"floating":d],C=La(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(b)))==null||r?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:u,strategy:l})),x=d==="floating"?{...s.floating,x:n,y:o}:s.reference,P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),E=await(a.isElement==null?void 0:a.isElement(P))?await(a.getScale==null?void 0:a.getScale(P))||{x:1,y:1}:{x:1,y:1},S=La(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:P,strategy:l}):x);return{top:(C.top-S.top+m.top)/E.y,bottom:(S.bottom-C.bottom+m.bottom)/E.y,left:(C.left-S.left+m.left)/E.x,right:(S.right-C.right+m.right)/E.x}}const qp=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:c,padding:u=0}=zt(e,t)||{};if(c==null)return{};const d=Yp(u),h={x:r,y:n},p=tl(o),m=el(p),y=await s.getDimensions(c),b=p==="y",C=b?"top":"left",x=b?"bottom":"right",P=b?"clientHeight":"clientWidth",E=a.reference[m]+a.reference[p]-h[p]-a.floating[m],S=h[p]-a.reference[p],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let L=N?N[P]:0;(!L||!await(s.isElement==null?void 0:s.isElement(N)))&&(L=i.floating[P]||a.floating[m]);const g=E/2-S/2,A=L/2-y[m]/2-1,I=nr(d[C],A),T=nr(d[x],A),D=I,w=L-y[m]-T,M=L/2-y[m]/2+g,O=Zi(D,M,w),F=!l.arrow&&nn(o)!=null&&M!=O&&a.reference[m]/2-(M<D?I:T)-y[m]/2<0,$=F?M<D?M-D:M-w:0;return{[p]:h[p]+$,data:{[p]:O,centerOffset:M-O-$,...F&&{alignmentOffset:$}},reset:F}}}),p3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...b}=zt(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const C=Wt(o),x=Wt(i)===i,P=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=h||(x||!y?[Na(i)]:l3(i));!h&&m!=="none"&&E.push(...u3(i,y,m,P));const S=[i,...E],N=await Qn(t,b),L=[];let g=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&L.push(N[C]),d){const D=i3(o,s,P);L.push(N[D[0]],N[D[1]])}if(g=[...g,{placement:o,overflows:L}],!L.every(D=>D<=0)){var A,I;const D=(((A=a.flip)==null?void 0:A.index)||0)+1,w=S[D];if(w)return{data:{index:D,overflows:g},reset:{placement:w}};let M=(I=g.filter(O=>O.overflows[0]<=0).sort((O,F)=>O.overflows[1]-F.overflows[1])[0])==null?void 0:I.placement;if(!M)switch(p){case"bestFit":{var T;const O=(T=g.map(F=>[F.placement,F.overflows.filter($=>$>0).reduce(($,V)=>$+V,0)]).sort((F,$)=>F[1]-$[1])[0])==null?void 0:T[0];O&&(M=O);break}case"initialPlacement":M=i;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Qp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xp(e){return o3.some(t=>e[t]>=0)}const h3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=zt(e,t);switch(n){case"referenceHidden":{const a=await Qn(t,{...o,elementContext:"reference"}),s=Qp(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Xp(s)}}}case"escaped":{const a=await Qn(t,{...o,altBoundary:!0}),s=Qp(a,r.floating);return{data:{escapedOffsets:s,escaped:Xp(s)}}}default:return{}}}}};async function m3(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Wt(r),i=nn(r),l=on(r)==="y",c=["left","top"].includes(s)?-1:1,u=a&&l?-1:1,d=zt(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return i&&typeof m=="number"&&(p=i==="end"?m*-1:m),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const g3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await m3(t,e);return{x:r+o.x,y:n+o.y,data:o}}}},v3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:b=>{let{x:C,y:x}=b;return{x:C,y:x}}},...l}=zt(e,t),c={x:r,y:n},u=await Qn(t,l),d=on(Wt(o)),h=Ji(d);let p=c[h],m=c[d];if(a){const b=h==="y"?"top":"left",C=h==="y"?"bottom":"right",x=p+u[b],P=p-u[C];p=Zi(x,p,P)}if(s){const b=d==="y"?"top":"left",C=d==="y"?"bottom":"right",x=m+u[b],P=m-u[C];m=Zi(x,m,P)}const y=i.fn({...t,[h]:p,[d]:m});return{...y,data:{x:y.x-r,y:y.y-n}}}}},b3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=zt(e,t),u={x:r,y:n},d=on(o),h=Ji(d);let p=u[h],m=u[d];const y=zt(i,t),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const P=h==="y"?"height":"width",E=a.reference[h]-a.floating[P]+b.mainAxis,S=a.reference[h]+a.reference[P]-b.mainAxis;p<E?p=E:p>S&&(p=S)}if(c){var C,x;const P=h==="y"?"width":"height",E=["top","left"].includes(Wt(o)),S=a.reference[d]-a.floating[P]+(E&&((C=s.offset)==null?void 0:C[d])||0)+(E?0:b.crossAxis),N=a.reference[d]+a.reference[P]+(E?0:((x=s.offset)==null?void 0:x[d])||0)-(E?b.crossAxis:0);m<S?m=S:m>N&&(m=N)}return{[h]:p,[d]:m}}}},y3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:a}=t,{apply:s=()=>{},...i}=zt(e,t),l=await Qn(t,i),c=Wt(r),u=nn(r),d=on(r)==="y",{width:h,height:p}=n.floating;let m,y;c==="top"||c==="bottom"?(m=c,y=u===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=c,m=u==="end"?"top":"bottom");const b=p-l[m],C=h-l[y],x=!t.middlewareData.shift;let P=b,E=C;if(d){const N=h-l.left-l.right;E=u||x?nr(C,N):N}else{const N=p-l.top-l.bottom;P=u||x?nr(b,N):N}if(x&&!u){const N=at(l.left,0),L=at(l.right,0),g=at(l.top,0),A=at(l.bottom,0);d?E=h-2*(N!==0||L!==0?N+L:at(l.left,l.right)):P=p-2*(g!==0||A!==0?g+A:at(l.top,l.bottom))}await s({...t,availableWidth:E,availableHeight:P});const S=await o.getDimensions(a.floating);return h!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}};function ar(e){return Zp(e)?(e.nodeName||"").toLowerCase():"#document"}function st(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Bt(e){var t;return(t=(Zp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zp(e){return e instanceof Node||e instanceof st(e).Node}function Rt(e){return e instanceof Element||e instanceof st(e).Element}function St(e){return e instanceof HTMLElement||e instanceof st(e).HTMLElement}function Jp(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof st(e).ShadowRoot}function Xn(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function x3(e){return["table","td","th"].includes(ar(e))}function nl(e){const t=ol(),r=ht(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function w3(e){let t=an(e);for(;St(t)&&!ja(t);){if(nl(t))return t;t=an(t)}return null}function ol(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ja(e){return["html","body","#document"].includes(ar(e))}function ht(e){return st(e).getComputedStyle(e)}function _a(e){return Rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function an(e){if(ar(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jp(e)&&e.host||Bt(e);return Jp(t)?t.host:t}function eh(e){const t=an(e);return ja(t)?e.ownerDocument?e.ownerDocument.body:e.body:St(t)&&Xn(t)?t:eh(t)}function Zn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=eh(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=st(o);return a?t.concat(s,s.visualViewport||[],Xn(o)?o:[],s.frameElement&&r?Zn(s.frameElement):[]):t.concat(o,Zn(o,[],r))}function th(e){const t=ht(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=St(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=Aa(r)!==a||Aa(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function al(e){return Rt(e)?e:e.contextElement}function sn(e){const t=al(e);if(!St(t))return or(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=th(t);let s=(a?Aa(r.width):r.width)/n,i=(a?Aa(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const C3=or(0);function rh(e){const t=st(e);return!ol()||!t.visualViewport?C3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function P3(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==st(e)?!1:t}function Sr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=al(e);let s=or(1);t&&(n?Rt(n)&&(s=sn(n)):s=sn(e));const i=P3(a,r,n)?rh(a):or(0);let l=(o.left+i.x)/s.x,c=(o.top+i.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(a){const h=st(a),p=n&&Rt(n)?st(n):n;let m=h.frameElement;for(;m&&n&&p!==h;){const y=sn(m),b=m.getBoundingClientRect(),C=ht(m),x=b.left+(m.clientLeft+parseFloat(C.paddingLeft))*y.x,P=b.top+(m.clientTop+parseFloat(C.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,d*=y.y,l+=x,c+=P,m=st(m).frameElement}}return La({width:u,height:d,x:l,y:c})}function M3(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=St(r),a=Bt(r);if(r===a)return t;let s={scrollLeft:0,scrollTop:0},i=or(1);const l=or(0);if((o||!o&&n!=="fixed")&&((ar(r)!=="body"||Xn(a))&&(s=_a(r)),St(r))){const c=Sr(r);i=sn(r),l.x=c.x+r.clientLeft,l.y=c.y+r.clientTop}return{width:t.width*i.x,height:t.height*i.y,x:t.x*i.x-s.scrollLeft*i.x+l.x,y:t.y*i.y-s.scrollTop*i.y+l.y}}function T3(e){return Array.from(e.getClientRects())}function nh(e){return Sr(Bt(e)).left+_a(e).scrollLeft}function E3(e){const t=Bt(e),r=_a(e),n=e.ownerDocument.body,o=at(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=at(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+nh(e);const i=-r.scrollTop;return ht(n).direction==="rtl"&&(s+=at(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}function S3(e,t){const r=st(e),n=Bt(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const c=ol();(!c||c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i,y:l}}function $3(e,t){const r=Sr(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=St(e)?sn(e):or(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,c=n*a.y;return{width:s,height:i,x:l,y:c}}function oh(e,t,r){let n;if(t==="viewport")n=S3(e,r);else if(t==="document")n=E3(Bt(e));else if(Rt(t))n=$3(t,r);else{const o=rh(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return La(n)}function ah(e,t){const r=an(e);return r===t||!Rt(r)||ja(r)?!1:ht(r).position==="fixed"||ah(r,t)}function D3(e,t){const r=t.get(e);if(r)return r;let n=Zn(e,[],!1).filter(i=>Rt(i)&&ar(i)!=="body"),o=null;const a=ht(e).position==="fixed";let s=a?an(e):e;for(;Rt(s)&&!ja(s);){const i=ht(s),l=nl(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Xn(s)&&!l&&ah(e,s))?n=n.filter(u=>u!==s):o=i,s=an(s)}return t.set(e,n),n}function I3(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?D3(t,this._c):[].concat(r),n],i=s[0],l=s.reduce((c,u)=>{const d=oh(t,u,o);return c.top=at(d.top,c.top),c.right=nr(d.right,c.right),c.bottom=nr(d.bottom,c.bottom),c.left=at(d.left,c.left),c},oh(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function k3(e){return th(e)}function A3(e,t,r){const n=St(t),o=Bt(t),a=r==="fixed",s=Sr(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=or(0);if(n||!n&&!a)if((ar(t)!=="body"||Xn(o))&&(i=_a(t)),n){const c=Sr(t,!0,a,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&(l.x=nh(o));return{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function sh(e,t){return!St(e)||ht(e).position==="fixed"?null:t?t(e):e.offsetParent}function ih(e,t){const r=st(e);if(!St(e))return r;let n=sh(e,t);for(;n&&x3(n)&&ht(n).position==="static";)n=sh(n,t);return n&&(ar(n)==="html"||ar(n)==="body"&&ht(n).position==="static"&&!nl(n))?r:n||w3(e)||r}const O3=async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||ih,a=this.getDimensions;return{reference:A3(t,await o(r),n),floating:{x:0,y:0,...await a(r)}}};function N3(e){return ht(e).direction==="rtl"}const L3={convertOffsetParentRelativeRectToViewportRelativeRect:M3,getDocumentElement:Bt,getClippingRect:I3,getOffsetParent:ih,getElementRects:O3,getClientRects:T3,getDimensions:k3,getScale:sn,isElement:Rt,isRTL:N3};function j3(e,t){let r=null,n;const o=Bt(e);function a(){clearTimeout(n),r&&r.disconnect(),r=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const{left:c,top:u,width:d,height:h}=e.getBoundingClientRect();if(i||t(),!d||!h)return;const p=Oa(u),m=Oa(o.clientWidth-(c+d)),y=Oa(o.clientHeight-(u+h)),b=Oa(c),x={rootMargin:-p+"px "+-m+"px "+-y+"px "+-b+"px",threshold:at(0,nr(1,l))||1};let P=!0;function E(S){const N=S[0].intersectionRatio;if(N!==l){if(!P)return s();N?s(!1,N):n=setTimeout(()=>{s(!1,1e-7)},100)}P=!1}try{r=new IntersectionObserver(E,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,x)}r.observe(e)}return s(!0),a}function _3(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=al(e),u=o||a?[...c?Zn(c):[],...Zn(t)]:[];u.forEach(C=>{o&&C.addEventListener("scroll",r,{passive:!0}),a&&C.addEventListener("resize",r)});const d=c&&i?j3(c,r):null;let h=-1,p=null;s&&(p=new ResizeObserver(C=>{let[x]=C;x&&x.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(t)})),r()}),c&&!l&&p.observe(c),p.observe(t));let m,y=l?Sr(e):null;l&&b();function b(){const C=Sr(e);y&&(C.x!==y.x||C.y!==y.y||C.width!==y.width||C.height!==y.height)&&r(),y=C,m=requestAnimationFrame(b)}return r(),()=>{u.forEach(C=>{o&&C.removeEventListener("scroll",r),a&&C.removeEventListener("resize",r)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const F3=(e,t,r)=>{const n=new Map,o={platform:L3,...r},a={...o.platform,_c:n};return f3(e,t,{...o,platform:a})},V3=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?qp({element:n.current,padding:o}).fn(r):{}:n?qp({element:n,padding:o}).fn(r):{}}}};var Fa=typeof document<"u"?f.useLayoutEffect:f.useEffect;function Va(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Va(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Va(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function lh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ch(e,t){const r=lh(e);return Math.round(t*r)/r}function uh(e){const t=U.useRef(e);return Fa(()=>{t.current=e}),t}function z3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[u,d]=U.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=U.useState(n);Va(h,n)||p(n);const[m,y]=U.useState(null),[b,C]=U.useState(null),x=U.useCallback(F=>{F!=N.current&&(N.current=F,y(F))},[y]),P=U.useCallback(F=>{F!==L.current&&(L.current=F,C(F))},[C]),E=a||m,S=s||b,N=U.useRef(null),L=U.useRef(null),g=U.useRef(u),A=uh(l),I=uh(o),T=U.useCallback(()=>{if(!N.current||!L.current)return;const F={placement:t,strategy:r,middleware:h};I.current&&(F.platform=I.current),F3(N.current,L.current,F).then($=>{const V={...$,isPositioned:!0};D.current&&!Va(g.current,V)&&(g.current=V,I0.flushSync(()=>{d(V)}))})},[h,t,r,I]);Fa(()=>{c===!1&&g.current.isPositioned&&(g.current.isPositioned=!1,d(F=>({...F,isPositioned:!1})))},[c]);const D=U.useRef(!1);Fa(()=>(D.current=!0,()=>{D.current=!1}),[]),Fa(()=>{if(E&&(N.current=E),S&&(L.current=S),E&&S){if(A.current)return A.current(E,S,T);T()}},[E,S,T,A]);const w=U.useMemo(()=>({reference:N,floating:L,setReference:x,setFloating:P}),[x,P]),M=U.useMemo(()=>({reference:E,floating:S}),[E,S]),O=U.useMemo(()=>{const F={position:r,left:0,top:0};if(!M.floating)return F;const $=ch(M.floating,u.x),V=ch(M.floating,u.y);return i?{...F,transform:"translate("+$+"px, "+V+"px)",...lh(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:$,top:V}},[r,i,M.floating,u.x,u.y]);return U.useMemo(()=>({...u,update:T,refs:w,elements:M,floatingStyles:O}),[u,T,w,M,O])}const W3=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return f.createElement(Be.svg,he({},a,{ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:f.createElement("polygon",{points:"0,0 30,0 15,10"}))});function B3(e){const[t,r]=f.useState(void 0);return rn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}const dh="Popper",[fh,za]=tn(dh),[R3,ph]=fh(dh),K3=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return f.createElement(R3,{scope:t,anchor:n,onAnchorChange:o},r)},U3="PopperAnchor",H3=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=ph(U3,r),s=f.useRef(null),i=dt(t,s);return f.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||s.current)}),n?null:f.createElement(Be.div,he({},o,{ref:i}))}),hh="PopperContent",[Y3,G3]=fh(hh),q3=f.forwardRef((e,t)=>{var r,n,o,a,s,i,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:C=[],collisionPadding:x=0,sticky:P="partial",hideWhenDetached:E=!1,updatePositionStrategy:S="optimized",onPlaced:N,...L}=e,g=ph(hh,u),[A,I]=f.useState(null),T=dt(t,X=>I(X)),[D,w]=f.useState(null),M=B3(D),O=(r=M==null?void 0:M.width)!==null&&r!==void 0?r:0,F=(n=M==null?void 0:M.height)!==null&&n!==void 0?n:0,$=d+(p!=="center"?"-"+p:""),V=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},Y=Array.isArray(C)?C:[C],K=Y.length>0,R={padding:V,boundary:Y.filter(J3),altBoundary:K},{refs:re,floatingStyles:H,placement:ie,isPositioned:ee,middlewareData:te}=z3({strategy:"fixed",placement:$,whileElementsMounted:(...X)=>_3(...X,{animationFrame:S==="always"}),elements:{reference:g.anchor},middleware:[g3({mainAxis:h+F,alignmentAxis:m}),b&&v3({mainAxis:!0,crossAxis:!1,limiter:P==="partial"?b3():void 0,...R}),b&&p3({...R}),y3({...R,apply:({elements:X,rects:Oe,availableWidth:_e,availableHeight:Fe})=>{const{width:De,height:It}=Oe.reference,mt=X.floating.style;mt.setProperty("--radix-popper-available-width",`${_e}px`),mt.setProperty("--radix-popper-available-height",`${Fe}px`),mt.setProperty("--radix-popper-anchor-width",`${De}px`),mt.setProperty("--radix-popper-anchor-height",`${It}px`)}}),D&&V3({element:D,padding:y}),e6({arrowWidth:O,arrowHeight:F}),E&&h3({strategy:"referenceHidden",...R})]}),[ve,be]=mh(ie),fe=Vt(N);rn(()=>{ee&&(fe==null||fe())},[ee,fe]);const de=(o=te.arrow)===null||o===void 0?void 0:o.x,pe=(a=te.arrow)===null||a===void 0?void 0:a.y,Te=((s=te.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Ee,oe]=f.useState();return rn(()=>{A&&oe(window.getComputedStyle(A).zIndex)},[A]),f.createElement("div",{ref:re.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:ee?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ee,"--radix-popper-transform-origin":[(i=te.transformOrigin)===null||i===void 0?void 0:i.x,(l=te.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},f.createElement(Y3,{scope:u,placedSide:ve,onArrowChange:w,arrowX:de,arrowY:pe,shouldHideArrow:Te},f.createElement(Be.div,he({"data-side":ve,"data-align":be},L,{ref:T,style:{...L.style,animation:ee?void 0:"none",opacity:(c=te.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))}),Q3="PopperArrow",X3={top:"bottom",right:"left",bottom:"top",left:"right"},Z3=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=G3(Q3,n),s=X3[a.placedSide];return f.createElement("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},f.createElement(W3,he({},o,{ref:r,style:{...o.style,display:"block"}})))});function J3(e){return e!==null}const e6=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,a,s;const{placement:i,rects:l,middlewareData:c}=t,d=((r=c.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,h=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[m,y]=mh(i),b={start:"0%",center:"50%",end:"100%"}[y],C=((n=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&n!==void 0?n:0)+h/2,x=((a=(s=c.arrow)===null||s===void 0?void 0:s.y)!==null&&a!==void 0?a:0)+p/2;let P="",E="";return m==="bottom"?(P=d?b:`${C}px`,E=`${-p}px`):m==="top"?(P=d?b:`${C}px`,E=`${l.floating.height+p}px`):m==="right"?(P=`${-p}px`,E=d?b:`${x}px`):m==="left"&&(P=`${l.floating.width+p}px`,E=d?b:`${x}px`),{data:{x:P,y:E}}}});function mh(e){const[t,r="center"]=e.split("-");return[t,r]}const gh=K3,vh=H3,bh=q3,t6=Z3,yh=f.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...o}=e;return n?gn.createPortal(f.createElement(Be.div,he({},o,{ref:t})),n):null});function r6(e,t){return f.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const ln=e=>{const{present:t,children:r}=e,n=n6(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),a=dt(n.ref,o.ref);return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:a}):null};ln.displayName="Presence";function n6(e){const[t,r]=f.useState(),n=f.useRef({}),o=f.useRef(e),a=f.useRef("none"),s=e?"mounted":"unmounted",[i,l]=r6(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=Wa(n.current);a.current=i==="mounted"?c:"none"},[i]),rn(()=>{const c=n.current,u=o.current;if(u!==e){const h=a.current,p=Wa(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),rn(()=>{if(t){const c=d=>{const p=Wa(n.current).includes(d.animationName);d.target===t&&p&&gn.flushSync(()=>l("ANIMATION_END"))},u=d=>{d.target===t&&(a.current=Wa(n.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:f.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function Wa(e){return(e==null?void 0:e.animationName)||"none"}function Ba({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=o6({defaultProp:t,onChange:r}),a=e!==void 0,s=a?e:n,i=Vt(r),l=f.useCallback(c=>{if(a){const d=typeof c=="function"?c(e):c;d!==e&&i(d)}else o(c)},[a,e,o,i]);return[s,l]}function o6({defaultProp:e,onChange:t}){const r=f.useState(e),[n]=r,o=f.useRef(n),a=Vt(t);return f.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}const a6=f.forwardRef((e,t)=>f.createElement(Be.span,he({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),[Ra,uw]=tn("Tooltip",[za]),Ka=za(),s6="TooltipProvider",i6=700,sl="tooltip.open",[l6,il]=Ra(s6),c6=e=>{const{__scopeTooltip:t,delayDuration:r=i6,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,[s,i]=f.useState(!0),l=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),f.createElement(l6,{scope:t,isOpenDelayed:s,delayDuration:r,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),i(!1)},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i(!0),n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(u=>{l.current=u},[]),disableHoverableContent:o},a)},ll="Tooltip",[u6,Jn]=Ra(ll),d6=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=il(ll,e.__scopeTooltip),c=Ka(t),[u,d]=f.useState(null),h=ka(),p=f.useRef(0),m=s??l.disableHoverableContent,y=i??l.delayDuration,b=f.useRef(!1),[C=!1,x]=Ba({prop:n,defaultProp:o,onChange:L=>{L?(l.onOpen(),document.dispatchEvent(new CustomEvent(sl))):l.onClose(),a==null||a(L)}}),P=f.useMemo(()=>C?b.current?"delayed-open":"instant-open":"closed",[C]),E=f.useCallback(()=>{window.clearTimeout(p.current),b.current=!1,x(!0)},[x]),S=f.useCallback(()=>{window.clearTimeout(p.current),x(!1)},[x]),N=f.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{b.current=!0,x(!0)},y)},[y,x]);return f.useEffect(()=>()=>window.clearTimeout(p.current),[]),f.createElement(gh,c,f.createElement(u6,{scope:t,contentId:h,open:C,stateAttribute:P,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayed?N():E()},[l.isOpenDelayed,N,E]),onTriggerLeave:f.useCallback(()=>{m?S():window.clearTimeout(p.current)},[S,m]),onOpen:E,onClose:S,disableHoverableContent:m},r))},xh="TooltipTrigger",f6=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Jn(xh,r),a=il(xh,r),s=Ka(r),i=f.useRef(null),l=dt(t,i,o.onTriggerChange),c=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),f.createElement(vh,he({asChild:!0},s),f.createElement(Be.button,he({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},n,{ref:l,onPointerMove:je(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:je(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:je(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:je(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:je(e.onBlur,o.onClose),onClick:je(e.onClick,o.onClose)})))}),wh="TooltipPortal",[p6,h6]=Ra(wh,{forceMount:void 0}),m6=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=Jn(wh,t);return f.createElement(p6,{scope:t,forceMount:r},f.createElement(ln,{present:r||a.open},f.createElement(yh,{asChild:!0,container:o},n)))},eo="TooltipContent",g6=f.forwardRef((e,t)=>{const r=h6(eo,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=Jn(eo,e.__scopeTooltip);return f.createElement(ln,{present:n||s.open},s.disableHoverableContent?f.createElement(Ch,he({side:o},a,{ref:t})):f.createElement(v6,he({side:o},a,{ref:t})))}),v6=f.forwardRef((e,t)=>{const r=Jn(eo,e.__scopeTooltip),n=il(eo,e.__scopeTooltip),o=f.useRef(null),a=dt(t,o),[s,i]=f.useState(null),{trigger:l,onClose:c}=r,u=o.current,{onPointerInTransitChange:d}=n,h=f.useCallback(()=>{i(null),d(!1)},[d]),p=f.useCallback((m,y)=>{const b=m.currentTarget,C={x:m.clientX,y:m.clientY},x=C6(C,b.getBoundingClientRect()),P=P6(C,x),E=M6(y.getBoundingClientRect()),S=E6([...P,...E]);i(S),d(!0)},[d]);return f.useEffect(()=>()=>h(),[h]),f.useEffect(()=>{if(l&&u){const m=b=>p(b,u),y=b=>p(b,l);return l.addEventListener("pointerleave",m),u.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",y)}}},[l,u,p,h]),f.useEffect(()=>{if(s){const m=y=>{const b=y.target,C={x:y.clientX,y:y.clientY},x=(l==null?void 0:l.contains(b))||(u==null?void 0:u.contains(b)),P=!T6(C,s);x?h():P&&(h(),c())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,u,s,c,h]),f.createElement(Ch,he({},e,{ref:a}))}),[b6,y6]=Ra(ll,{isInside:!1}),Ch=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=Jn(eo,r),c=Ka(r),{onClose:u}=l;return f.useEffect(()=>(document.addEventListener(sl,u),()=>document.removeEventListener(sl,u)),[u]),f.useEffect(()=>{if(l.trigger){const d=h=>{const p=h.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),f.createElement(Kp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u},f.createElement(bh,he({"data-state":l.stateAttribute},c,i,{ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),f.createElement(gc,null,n),f.createElement(b6,{scope:r,isInside:!0},f.createElement(a6,{id:l.contentId,role:"tooltip"},o||n))))}),x6="TooltipArrow",w6=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Ka(r);return y6(x6,r).isInside?null:f.createElement(t6,he({},o,n,{ref:t}))});function C6(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function P6(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function M6(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function T6(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a].x,l=t[a].y,c=t[s].x,u=t[s].y;l>n!=u>n&&r<(c-i)*(n-l)/(u-l)+i&&(o=!o)}return o}function E6(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),S6(t)}function S6(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}const $6=c6,D6=d6,I6=f6,k6=m6,A6=g6,O6=w6,N6=({children:e,showArrow:t=!1,startOpen:r=!1,content:n,hasCloseButton:o=!1,action:a,size:s="sm"})=>{const[i,l]=f.useState(r),c=Me({base:"rounded-lg bg-primary-black-400 px-4 pb-[13px] pt-[12px] font-satoshi text-sm font-medium text-white",variants:{size:{sm:"max-w-[215px]",lg:"max-w-[342px]"}}}),u=()=>{l(!1)},d=()=>{a&&a.onClick(),u()};return j.jsx($6,{children:j.jsxs(D6,{delayDuration:0,defaultOpen:i,open:i,onOpenChange:h=>l(h),children:[j.jsx(I6,{asChild:!0,children:e}),j.jsx(k6,{children:j.jsxs(A6,{className:c({size:s}),sideOffset:5,children:[j.jsxs("div",{children:[j.jsxs("div",{className:"flex gap-4",children:[n,o&&j.jsx(et,{onClick:u,name:"close",className:"mt-1 cursor-pointer text-xs text-white"})]}),a&&j.jsx(Yi,{className:"-mb-1 mt-1 !h-6 !px-0",variant:"tertiaryDark",onClick:d,children:a.label})]}),t&&j.jsx(O6,{className:"TooltipArrow"})]})})]})})};function L6(e){const t=e+"CollectionProvider",[r,n]=tn(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:m,children:y}=p,b=f.useRef(null),C=f.useRef(new Map).current;return f.createElement(o,{scope:m,itemMap:C,collectionRef:b},y)},i=e+"CollectionSlot",l=f.forwardRef((p,m)=>{const{scope:y,children:b}=p,C=a(i,y),x=dt(m,C.collectionRef);return f.createElement(jr,{ref:x},b)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=f.forwardRef((p,m)=>{const{scope:y,children:b,...C}=p,x=f.useRef(null),P=dt(m,x),E=a(c,y);return f.useEffect(()=>(E.itemMap.set(x,{ref:x,...C}),()=>void E.itemMap.delete(x))),f.createElement(jr,{[u]:"",ref:P},b)});function h(p){const m=a(e+"CollectionConsumer",p);return f.useCallback(()=>{const b=m.collectionRef.current;if(!b)return[];const C=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(m.itemMap.values()).sort((E,S)=>C.indexOf(E.ref.current)-C.indexOf(S.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},h,n]}const j6=f.createContext(void 0);function Ph(e){const t=f.useContext(j6);return e||t||"ltr"}const cl="rovingFocusGroup.onEntryFocus",_6={bubbles:!1,cancelable:!0},ul="RovingFocusGroup",[dl,Mh,F6]=L6(ul),[V6,Th]=tn(ul,[F6]),[z6,W6]=V6(ul),B6=f.forwardRef((e,t)=>f.createElement(dl.Provider,{scope:e.__scopeRovingFocusGroup},f.createElement(dl.Slot,{scope:e.__scopeRovingFocusGroup},f.createElement(R6,he({},e,{ref:t}))))),R6=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,d=f.useRef(null),h=dt(t,d),p=Ph(a),[m=null,y]=Ba({prop:s,defaultProp:i,onChange:l}),[b,C]=f.useState(!1),x=Vt(c),P=Mh(r),E=f.useRef(!1),[S,N]=f.useState(0);return f.useEffect(()=>{const L=d.current;if(L)return L.addEventListener(cl,x),()=>L.removeEventListener(cl,x)},[x]),f.createElement(z6,{scope:r,orientation:n,dir:p,loop:o,currentTabStopId:m,onItemFocus:f.useCallback(L=>y(L),[y]),onItemShiftTab:f.useCallback(()=>C(!0),[]),onFocusableItemAdd:f.useCallback(()=>N(L=>L+1),[]),onFocusableItemRemove:f.useCallback(()=>N(L=>L-1),[])},f.createElement(Be.div,he({tabIndex:b||S===0?-1:0,"data-orientation":n},u,{ref:h,style:{outline:"none",...e.style},onMouseDown:je(e.onMouseDown,()=>{E.current=!0}),onFocus:je(e.onFocus,L=>{const g=!E.current;if(L.target===L.currentTarget&&g&&!b){const A=new CustomEvent(cl,_6);if(L.currentTarget.dispatchEvent(A),!A.defaultPrevented){const I=P().filter(O=>O.focusable),T=I.find(O=>O.active),D=I.find(O=>O.id===m),M=[T,D,...I].filter(Boolean).map(O=>O.ref.current);Eh(M)}}E.current=!1}),onBlur:je(e.onBlur,()=>C(!1))})))}),K6="RovingFocusGroupItem",U6=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,...s}=e,i=ka(),l=a||i,c=W6(K6,r),u=c.currentTabStopId===l,d=Mh(r),{onFocusableItemAdd:h,onFocusableItemRemove:p}=c;return f.useEffect(()=>{if(n)return h(),()=>p()},[n,h,p]),f.createElement(dl.ItemSlot,{scope:r,id:l,focusable:n,active:o},f.createElement(Be.span,he({tabIndex:u?0:-1,"data-orientation":c.orientation},s,{ref:t,onMouseDown:je(e.onMouseDown,m=>{n?c.onItemFocus(l):m.preventDefault()}),onFocus:je(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:je(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const y=G6(m,c.orientation,c.dir);if(y!==void 0){m.preventDefault();let C=d().filter(x=>x.focusable).map(x=>x.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const x=C.indexOf(m.currentTarget);C=c.loop?q6(C,x+1):C.slice(x+1)}setTimeout(()=>Eh(C))}})})))}),H6={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Y6(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function G6(e,t,r){const n=Y6(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return H6[n]}function Eh(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function q6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const Q6=B6,X6=U6,Sh="Tabs",[Z6,dw]=tn(Sh,[Th]),$h=Th(),[J6,fl]=Z6(Sh),e7=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:l="automatic",...c}=e,u=Ph(i),[d,h]=Ba({prop:n,onChange:o,defaultProp:a});return f.createElement(J6,{scope:r,baseId:ka(),value:d,onValueChange:h,orientation:s,dir:u,activationMode:l},f.createElement(Be.div,he({dir:u,"data-orientation":s},c,{ref:t})))}),t7="TabsList",r7=f.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=fl(t7,r),s=$h(r);return f.createElement(Q6,he({asChild:!0},s,{orientation:a.orientation,dir:a.dir,loop:n}),f.createElement(Be.div,he({role:"tablist","aria-orientation":a.orientation},o,{ref:t})))}),n7="TabsTrigger",o7=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,s=fl(n7,r),i=$h(r),l=Dh(s.baseId,n),c=Ih(s.baseId,n),u=n===s.value;return f.createElement(X6,he({asChild:!0},i,{focusable:!o,active:u}),f.createElement(Be.button,he({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},a,{ref:t,onMouseDown:je(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?s.onValueChange(n):d.preventDefault()}),onKeyDown:je(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&s.onValueChange(n)}),onFocus:je(e.onFocus,()=>{const d=s.activationMode!=="manual";!u&&!o&&d&&s.onValueChange(n)})})))}),a7="TabsContent",s7=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...s}=e,i=fl(a7,r),l=Dh(i.baseId,n),c=Ih(i.baseId,n),u=n===i.value,d=f.useRef(u);return f.useEffect(()=>{const h=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(h)},[]),f.createElement(ln,{present:o||u},({present:h})=>f.createElement(Be.div,he({"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0},s,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),h&&a))});function Dh(e,t){return`${e}-trigger-${t}`}function Ih(e,t){return`${e}-content-${t}`}const i7=e7,l7=r7,c7=o7,u7=s7,d7=({tabs:e,defaultValue:t,variant:r="button",className:n,...o})=>{const a=Me({base:"",variants:{variant:{underline:"",button:""}}}),s=Me({base:"flex flex-row",variants:{variant:{underline:"",button:""}}}),i=Me({base:"flex h-[82px] w-[197px] items-center justify-center gap-2 text-lg font-medium text-primary-grey-700 hover:text-primary-grey-800 data-[state=active]:font-bold data-[state=active]:text-secondary-green-500",variants:{variant:{underline:"border-b border-primary-grey-600 border-t-transparent hover:border-b-4 hover:border-t-3 hover:border-b-primary-grey-700 hover:font-bold data-[state=active]:border-b-4 data-[state=active]:border-t-3 data-[state=active]:border-b-secondary-green-500 data-[state=active]:text-secondary-green-500",button:"relative z-0 -mr-[1px] rounded-none border border-primary-grey-600 first:rounded-l-xl last:rounded-r-xl hover:z-10 hover:border-2 hover:border-primary-grey-800 data-[state=active]:z-20 data-[state=active]:border-2 data-[state=active]:border-secondary-green-500"}}});return j.jsxs(i7,{defaultValue:t??e[0].key,className:a({variant:r,className:n}),...o,children:[j.jsx(l7,{className:s({variant:r}),children:e.map(({icon:l,key:c,title:u})=>j.jsxs(c7,{value:c,className:i({variant:r}),children:[l&&j.jsx(et,{className:"-mt-[1px]",name:l}),u]},c))}),e.map(({content:l,key:c})=>j.jsx(u7,{value:c,children:l},c))]})},kh=f.forwardRef(({disabled:e,isDatePicker:t,isInvalid:r,isValid:n,className:o,icon:a,message:s,iconAction:i,...l},c)=>{const u=Me({base:"[&_label]:data-[filled-within=true]:!left-[15px] [&_label]:data-[filled-within=true]:!top-[20px] [&_label]:data-[filled-within=true]:!ml-[1px] [&_label]:data-[filled-within=true]:!text-xs [&_label]:data-[filled-within=true]:!text-primary-grey-800",variants:{isInvalid:{true:"[&_label]:data-[filled-within=true]:!text-complementary-red-500"},isValid:{true:"[&_label]:data-[filled-within=true]:!text-secondary-green-500"},disabled:{true:"[&_label]:data-[filled-within=true]:!text-primary-grey-700"}}}),d=Me({base:"left-[15px] top-6 font-satoshi font-satoshi text-base text-sm text-primary-grey-800",variants:{isInvalid:{true:"text-complementary-red-500"},isValid:{true:"text-secondary-green-500"},disabled:{true:"text-primary-grey-700"}}}),h=Me({base:"text-left font-satoshi text-base",variants:{disabled:{true:"!text-primary-grey-700"},isDatePicker:{true:"!cursor-pointer"}}}),p=Me({base:"h-12 rounded-lg border border-primary-grey-700 !bg-white px-[15px] text-black !ring-0 !ring-offset-0",variants:{isInvalid:{true:"border-complementary-red-500"},isValid:{true:"border-secondary-green-500"},disabled:{true:"!border-primary-grey-500 !bg-primary-grey-500"},isDatePicker:{true:"!cursor-pointer"}}}),m=Me({base:"mt-[5px] pl-3 font-satoshi",variants:{isInvalid:{true:"text-complementary-red-500"},isValid:{true:"text-secondary-green-500"}}}),y=Me({base:"text-primary-grey-800",variants:{iconAction:{true:"cursor-pointer"}}}),{Component:b,label:C,domRef:x,startContent:P,shouldLabelBeOutside:E,shouldLabelBeInside:S,getBaseProps:N,getLabelProps:L,getInputProps:g,getInnerWrapperProps:A,getInputWrapperProps:I,getDescriptionProps:T}=J5({...l,disabled:e,labelPlacement:"outside",ref:c,classNames:{input:h({disabled:e,isDatePicker:t}),inputWrapper:p({isInvalid:r,isValid:n,disabled:e,isDatePicker:t}),base:u({isInvalid:r,isValid:n,disabled:e,className:o}),label:d({isInvalid:r,isValid:n,disabled:e}),description:m({isInvalid:r,isValid:n})}}),D=j.jsx("label",{...L(),children:C}),w=f.useMemo(()=>P||a?j.jsxs("div",{...A(),children:[P,j.jsx("input",{...g()}),a&&j.jsx(et,{onClick:i,name:a,className:y({iconAction:!!i})})]}):j.jsx("input",{...g()}),[P,i,y,a,g,A]);return j.jsxs(b,{...N(),children:[E?D:null,j.jsxs("div",{...I(),role:"button",onClick:()=>{var M;(M=x.current)==null||M.focus()},children:[S?D:null,w]}),s&&j.jsx("div",{...T(),children:s})]})});let pl=0;function f7(){f.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Ah()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Ah()),pl++,()=>{pl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),pl--}},[])}function Ah(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const hl="focusScope.autoFocusOnMount",ml="focusScope.autoFocusOnUnmount",Oh={bubbles:!1,cancelable:!0},p7=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=f.useState(null),c=Vt(o),u=Vt(a),d=f.useRef(null),h=dt(t,y=>l(y)),p=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let y=function(P){if(p.paused||!i)return;const E=P.target;i.contains(E)?d.current=E:sr(d.current,{select:!0})},b=function(P){if(p.paused||!i)return;const E=P.relatedTarget;E!==null&&(i.contains(E)||sr(d.current,{select:!0}))},C=function(P){if(document.activeElement===document.body)for(const S of P)S.removedNodes.length>0&&sr(i)};document.addEventListener("focusin",y),document.addEventListener("focusout",b);const x=new MutationObserver(C);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",b),x.disconnect()}}},[n,i,p.paused]),f.useEffect(()=>{if(i){jh.add(p);const y=document.activeElement;if(!i.contains(y)){const C=new CustomEvent(hl,Oh);i.addEventListener(hl,c),i.dispatchEvent(C),C.defaultPrevented||(h7(y7(Nh(i)),{select:!0}),document.activeElement===y&&sr(i))}return()=>{i.removeEventListener(hl,c),setTimeout(()=>{const C=new CustomEvent(ml,Oh);i.addEventListener(ml,u),i.dispatchEvent(C),C.defaultPrevented||sr(y??document.body,{select:!0}),i.removeEventListener(ml,u),jh.remove(p)},0)}}},[i,c,u,p]);const m=f.useCallback(y=>{if(!r&&!n||p.paused)return;const b=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,C=document.activeElement;if(b&&C){const x=y.currentTarget,[P,E]=m7(x);P&&E?!y.shiftKey&&C===E?(y.preventDefault(),r&&sr(P,{select:!0})):y.shiftKey&&C===P&&(y.preventDefault(),r&&sr(E,{select:!0})):C===x&&y.preventDefault()}},[r,n,p.paused]);return f.createElement(Be.div,he({tabIndex:-1},s,{ref:h,onKeyDown:m}))});function h7(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(sr(n,{select:t}),document.activeElement!==r)return}function m7(e){const t=Nh(e),r=Lh(t,e),n=Lh(t.reverse(),e);return[r,n]}function Nh(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Lh(e,t){for(const r of e)if(!g7(r,{upTo:t}))return r}function g7(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function v7(e){return e instanceof HTMLInputElement&&"select"in e}function sr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&v7(e)&&t&&e.select()}}const jh=b7();function b7(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=_h(e,t),e.unshift(t)},remove(t){var r;e=_h(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function _h(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function y7(e){return e.filter(t=>t.tagName!=="A")}var x7=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},cn=new WeakMap,Ua=new WeakMap,Ha={},gl=0,Fh=function(e){return e&&(e.host||Fh(e.parentNode))},w7=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Fh(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},C7=function(e,t,r,n){var o=w7(t,Array.isArray(e)?e:[e]);Ha[r]||(Ha[r]=new WeakMap);var a=Ha[r],s=[],i=new Set,l=new Set(o),c=function(d){!d||i.has(d)||(i.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(i.has(h))u(h);else{var p=h.getAttribute(n),m=p!==null&&p!=="false",y=(cn.get(h)||0)+1,b=(a.get(h)||0)+1;cn.set(h,y),a.set(h,b),s.push(h),y===1&&m&&Ua.set(h,!0),b===1&&h.setAttribute(r,"true"),m||h.setAttribute(n,"true")}})};return u(t),i.clear(),gl++,function(){s.forEach(function(d){var h=cn.get(d)-1,p=a.get(d)-1;cn.set(d,h),a.set(d,p),h||(Ua.has(d)||d.removeAttribute(n),Ua.delete(d)),p||d.removeAttribute(r)}),gl--,gl||(cn=new WeakMap,cn=new WeakMap,Ua=new WeakMap,Ha={})}},P7=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||x7(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),C7(n,o,r,"aria-hidden")):function(){return null}},Vh=i4(),vl=function(){},Ya=U.forwardRef(function(e,t){var r=U.useRef(null),n=U.useState({onScrollCapture:vl,onWheelCapture:vl,onTouchMoveCapture:vl}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,p=e.noIsolation,m=e.inert,y=e.allowPinchZoom,b=e.as,C=b===void 0?"div":b,x=zc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),P=h,E=o4([r,t]),S=Pt(Pt({},x),o);return U.createElement(U.Fragment,null,u&&U.createElement(P,{sideCar:Vh,removeScrollBar:c,shards:d,noIsolation:p,inert:m,setCallbacks:a,allowPinchZoom:!!y,lockRef:r}),s?U.cloneElement(U.Children.only(i),Pt(Pt({},S),{ref:E})):U.createElement(C,Pt({},S,{className:l,ref:E}),i))});Ya.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ya.classNames={fullWidth:Pa,zeroRight:Ca};var bl=!1;if(typeof window<"u")try{var Ga=Object.defineProperty({},"passive",{get:function(){return bl=!0,!0}});window.addEventListener("test",Ga,Ga),window.removeEventListener("test",Ga,Ga)}catch{bl=!1}var un=bl?{passive:!1}:!1,M7=function(e){return e.tagName==="TEXTAREA"},zh=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!M7(e)&&r[t]==="visible")},T7=function(e){return zh(e,"overflowY")},E7=function(e){return zh(e,"overflowX")},Wh=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=Bh(e,r);if(n){var o=Rh(e,r),a=o[1],s=o[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},S7=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},$7=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Bh=function(e,t){return e==="v"?T7(t):E7(t)},Rh=function(e,t){return e==="v"?S7(t):$7(t)},D7=function(e,t){return e==="h"&&t==="rtl"?-1:1},I7=function(e,t,r,n,o){var a=D7(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,l=t.contains(i),c=!1,u=s>0,d=0,h=0;do{var p=Rh(e,i),m=p[0],y=p[1],b=p[2],C=y-b-a*m;(m||C)&&Bh(e,i)&&(d+=C,h+=m),i=i.parentNode}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(u&&(o&&d===0||!o&&s>d)||!u&&(o&&h===0||!o&&-s>h))&&(c=!0),c},qa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Kh=function(e){return[e.deltaX,e.deltaY]},Uh=function(e){return e&&"current"in e?e.current:e},k7=function(e,t){return e[0]===t[0]&&e[1]===t[1]},A7=function(e){return`
73
73
  .block-interactivity-`.concat(e,` {pointer-events: none;}
74
74
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
75
75
  `)},O7=0,dn=[];function N7(e){var t=U.useRef([]),r=U.useRef([0,0]),n=U.useRef(),o=U.useState(O7++)[0],a=U.useState(function(){return Sp()})[0],s=U.useRef(e);U.useEffect(function(){s.current=e},[e]),U.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=gg([e.lockRef.current],(e.shards||[]).map(Uh),!0).filter(Boolean);return y.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=U.useCallback(function(y,b){if("touches"in y&&y.touches.length===2)return!s.current.allowPinchZoom;var C=qa(y),x=r.current,P="deltaX"in y?y.deltaX:x[0]-C[0],E="deltaY"in y?y.deltaY:x[1]-C[1],S,N=y.target,L=Math.abs(P)>Math.abs(E)?"h":"v";if("touches"in y&&L==="h"&&N.type==="range")return!1;var g=Wh(L,N);if(!g)return!0;if(g?S=L:(S=L==="v"?"h":"v",g=Wh(L,N)),!g)return!1;if(!n.current&&"changedTouches"in y&&(P||E)&&(n.current=S),!S)return!0;var A=n.current||S;return I7(A,b,y,A==="h"?P:E,!0)},[]),l=U.useCallback(function(y){var b=y;if(!(!dn.length||dn[dn.length-1]!==a)){var C="deltaY"in b?Kh(b):qa(b),x=t.current.filter(function(S){return S.name===b.type&&S.target===b.target&&k7(S.delta,C)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var P=(s.current.shards||[]).map(Uh).filter(Boolean).filter(function(S){return S.contains(b.target)}),E=P.length>0?i(b,P[0]):!s.current.noIsolation;E&&b.cancelable&&b.preventDefault()}}},[]),c=U.useCallback(function(y,b,C,x){var P={name:y,delta:b,target:C,should:x};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(E){return E!==P})},1)},[]),u=U.useCallback(function(y){r.current=qa(y),n.current=void 0},[]),d=U.useCallback(function(y){c(y.type,Kh(y),y.target,i(y,e.lockRef.current))},[]),h=U.useCallback(function(y){c(y.type,qa(y),y.target,i(y,e.lockRef.current))},[]);U.useEffect(function(){return dn.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,un),document.addEventListener("touchmove",l,un),document.addEventListener("touchstart",u,un),function(){dn=dn.filter(function(y){return y!==a}),document.removeEventListener("wheel",l,un),document.removeEventListener("touchmove",l,un),document.removeEventListener("touchstart",u,un)}},[]);var p=e.removeScrollBar,m=e.inert;return U.createElement(U.Fragment,null,m?U.createElement(a,{styles:A7(o)}):null,p?U.createElement(x4,{gapMode:"margin"}):null)}const L7=l4(Vh,N7);var Hh=U.forwardRef(function(e,t){return U.createElement(Ya,Pt({},e,{ref:t,sideCar:L7}))});Hh.classNames=Ya.classNames;const j7=Hh,Yh="Popover",[Gh,fw]=tn(Yh,[za]),yl=za(),[_7,fn]=Gh(Yh),F7=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=yl(t),l=f.useRef(null),[c,u]=f.useState(!1),[d=!1,h]=Ba({prop:n,defaultProp:o,onChange:a});return f.createElement(gh,i,f.createElement(_7,{scope:t,contentId:ka(),triggerRef:l,open:d,onOpenChange:h,onOpenToggle:f.useCallback(()=>h(p=>!p),[h]),hasCustomAnchor:c,onCustomAnchorAdd:f.useCallback(()=>u(!0),[]),onCustomAnchorRemove:f.useCallback(()=>u(!1),[]),modal:s},r))},V7="PopoverTrigger",z7=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=fn(V7,r),a=yl(r),s=dt(t,o.triggerRef),i=f.createElement(Be.button,he({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Xh(o.open)},n,{ref:s,onClick:je(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?i:f.createElement(vh,he({asChild:!0},a),i)}),qh="PopoverPortal",[W7,B7]=Gh(qh,{forceMount:void 0}),R7=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=fn(qh,t);return f.createElement(W7,{scope:t,forceMount:r},f.createElement(ln,{present:r||a.open},f.createElement(yh,{asChild:!0,container:o},n)))},to="PopoverContent",K7=f.forwardRef((e,t)=>{const r=B7(to,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=fn(to,e.__scopePopover);return f.createElement(ln,{present:n||a.open},a.modal?f.createElement(U7,he({},o,{ref:t})):f.createElement(H7,he({},o,{ref:t})))}),U7=f.forwardRef((e,t)=>{const r=fn(to,e.__scopePopover),n=f.useRef(null),o=dt(t,n),a=f.useRef(!1);return f.useEffect(()=>{const s=n.current;if(s)return P7(s)},[]),f.createElement(j7,{as:jr,allowPinchZoom:!0},f.createElement(Qh,he({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:je(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=r.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:je(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,c=i.button===2||l;a.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:je(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})))}),H7=f.forwardRef((e,t)=>{const r=fn(to,e.__scopePopover),n=f.useRef(!1),o=f.useRef(!1);return f.createElement(Qh,he({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,a),!a.defaultPrevented){var i;n.current||(i=r.triggerRef.current)===null||i===void 0||i.focus(),a.preventDefault()}n.current=!1,o.current=!1},onInteractOutside:a=>{var s,i;(s=e.onInteractOutside)===null||s===void 0||s.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((i=r.triggerRef.current)===null||i===void 0?void 0:i.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),Qh=f.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,h=fn(to,r),p=yl(r);return f7(),f.createElement(p7,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a},f.createElement(Kp,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1)},f.createElement(bh,he({"data-state":Xh(h.open),role:"dialog",id:h.contentId},p,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function Xh(e){return e?"open":"closed"}const Y7=F7,G7=z7,q7=R7,Q7=K7,Zh=({children:e,content:t,isOpen:r,side:n="bottom",align:o="center",onInteractOutside:a,...s})=>j.jsxs(Y7,{open:r,...s,children:[j.jsx(G7,{asChild:!0,children:e}),j.jsx(q7,{children:j.jsx(Q7,{onInteractOutside:a,side:n,align:o,sideOffset:5,children:t})})]});function ye(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function it(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function He(e,t){const r=ye(e);return isNaN(t)?it(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function xt(e,t){const r=ye(e);if(isNaN(t))return it(e,NaN);if(!t)return r;const n=r.getDate(),o=it(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return n>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),n),r)}const xl=6048e5,X7=864e5;let Z7={};function ro(){return Z7}function $t(e,t){var i,l,c,u;const r=ro(),n=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,o=ye(e),a=o.getDay(),s=(a<n?7:0)+a-n;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function $r(e){return $t(e,{weekStartsOn:1})}function Jh(e){const t=ye(e),r=t.getFullYear(),n=it(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const o=$r(n),a=it(e,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=$r(a);return t.getTime()>=o.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function pn(e){const t=ye(e);return t.setHours(0,0,0,0),t}function Qa(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Dt(e,t){const r=pn(e),n=pn(t),o=+r-Qa(r),a=+n-Qa(n);return Math.trunc((o-a)/X7)}function J7(e){const t=Jh(e),r=it(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),$r(r)}function wl(e,t){const r=t*7;return He(e,r)}function ex(e,t){return xt(e,t*12)}function tx(e){let t;return e.forEach(function(r){const n=ye(r);(t===void 0||t<n||isNaN(Number(n)))&&(t=n)}),t||new Date(NaN)}function rx(e){let t;return e.forEach(r=>{const n=ye(r);(!t||t>n||isNaN(+n))&&(t=n)}),t||new Date(NaN)}function Xe(e,t){const r=pn(e),n=pn(t);return+r==+n}function Cl(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function nx(e){if(!Cl(e)&&typeof e!="number")return!1;const t=ye(e);return!isNaN(Number(t))}function no(e,t){const r=ye(e),n=ye(t),o=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return o*12+a}function ox(e,t,r){const n=$t(e,r),o=$t(t,r),a=+n-Qa(n),s=+o-Qa(o);return Math.trunc((a-s)/xl)}function Pl(e){const t=ye(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Ze(e){const t=ye(e);return t.setDate(1),t.setHours(0,0,0,0),t}function e0(e){const t=ye(e),r=it(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Ml(e,t){var i,l,c,u;const r=ro(),n=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,o=ye(e),a=o.getDay(),s=(a<n?-7:0)+6-(a-n);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function t0(e){return Ml(e,{weekStartsOn:1})}const ax={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},sx=(e,t,r)=>{let n;const o=ax[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Tl(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const ix={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},cx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ux={date:Tl({formats:ix,defaultWidth:"full"}),time:Tl({formats:lx,defaultWidth:"full"}),dateTime:Tl({formats:cx,defaultWidth:"full"})},dx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fx=(e,t,r,n)=>dx[e];function oo(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=r!=null&&r.width?String(r.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const px={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},hx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mx={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},gx={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},vx={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},bx={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},yx={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:oo({values:px,defaultWidth:"wide"}),quarter:oo({values:hx,defaultWidth:"wide",argumentCallback:e=>e-1}),month:oo({values:mx,defaultWidth:"wide"}),day:oo({values:gx,defaultWidth:"wide"}),dayPeriod:oo({values:vx,defaultWidth:"wide",formattingValues:bx,defaultFormattingWidth:"wide"})};function ao(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?wx(i,d=>d.test(s)):xx(i,d=>d.test(s));let c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;const u=t.slice(s.length);return{value:c,rest:u}}}function xx(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function wx(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Cx(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=r.valueCallback?r.valueCallback(s):s;const i=t.slice(o.length);return{value:s,rest:i}}}const Px=/^(\d+)(th|st|nd|rd)?/i,Mx=/\d+/i,Tx={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ex={any:[/^b/i,/^(a|c)/i]},Sx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$x={any:[/1/i,/2/i,/3/i,/4/i]},Dx={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ix={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},kx={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ax={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ox={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Nx={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Lx={ordinalNumber:Cx({matchPattern:Px,parsePattern:Mx,valueCallback:e=>parseInt(e,10)}),era:ao({matchPatterns:Tx,defaultMatchWidth:"wide",parsePatterns:Ex,defaultParseWidth:"any"}),quarter:ao({matchPatterns:Sx,defaultMatchWidth:"wide",parsePatterns:$x,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ao({matchPatterns:Dx,defaultMatchWidth:"wide",parsePatterns:Ix,defaultParseWidth:"any"}),day:ao({matchPatterns:kx,defaultMatchWidth:"wide",parsePatterns:Ax,defaultParseWidth:"any"}),dayPeriod:ao({matchPatterns:Ox,defaultMatchWidth:"any",parsePatterns:Nx,defaultParseWidth:"any"})},r0={code:"en-US",formatDistance:sx,formatLong:ux,formatRelative:fx,localize:yx,match:Lx,options:{weekStartsOn:0,firstWeekContainsDate:1}};function jx(e){const t=ye(e);return Dt(t,e0(t))+1}function n0(e){const t=ye(e),r=+$r(t)-+J7(t);return Math.trunc(r/xl)+1}function o0(e,t){var u,d,h,p;const r=ye(e),n=r.getFullYear(),o=ro(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((p=(h=o.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,s=it(e,0);s.setFullYear(n+1,0,a),s.setHours(0,0,0,0);const i=$t(s,t),l=it(e,0);l.setFullYear(n,0,a),l.setHours(0,0,0,0);const c=$t(l,t);return r.getTime()>=i.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}function _x(e,t){var i,l,c,u;const r=ro(),n=(t==null?void 0:t.firstWeekContainsDate)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??r.firstWeekContainsDate??((u=(c=r.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,o=o0(e,t),a=it(e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),$t(a,t)}function a0(e,t){const r=ye(e),n=+$t(r,t)-+_x(r,t);return Math.trunc(n/xl)+1}function Ce(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const ir={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Ce(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):Ce(r+1,2)},d(e,t){return Ce(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return Ce(e.getHours()%12||12,t.length)},H(e,t){return Ce(e.getHours(),t.length)},m(e,t){return Ce(e.getMinutes(),t.length)},s(e,t){return Ce(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return Ce(o,t.length)}},hn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},s0={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return ir.y(e,t)},Y:function(e,t,r,n){const o=o0(e,n),a=o>0?o:1-o;if(t==="YY"){const s=a%100;return Ce(s,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):Ce(a,t.length)},R:function(e,t){const r=Jh(e);return Ce(r,t.length)},u:function(e,t){const r=e.getFullYear();return Ce(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Ce(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Ce(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return ir.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Ce(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=a0(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):Ce(o,t.length)},I:function(e,t,r){const n=n0(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):Ce(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):ir.d(e,t)},D:function(e,t,r){const n=jx(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):Ce(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Ce(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Ce(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return Ce(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=hn.noon:n===0?o=hn.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=hn.evening:n>=12?o=hn.afternoon:n>=4?o=hn.morning:o=hn.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return ir.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):ir.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):Ce(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):Ce(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):ir.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):ir.s(e,t)},S:function(e,t){return ir.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return l0(n);case"XXXX":case"XX":return Dr(n);case"XXXXX":case"XXX":default:return Dr(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return l0(n);case"xxxx":case"xx":return Dr(n);case"xxxxx":case"xxx":default:return Dr(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+i0(n,":");case"OOOO":default:return"GMT"+Dr(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+i0(n,":");case"zzzz":default:return"GMT"+Dr(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return Ce(n,t.length)},T:function(e,t,r){const n=e.getTime();return Ce(n,t.length)}};function i0(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return a===0?r+String(o):r+String(o)+t+Ce(a,2)}function l0(e,t){return e%60===0?(e>0?"-":"+")+Ce(Math.abs(e)/60,2):Dr(e,t)}function Dr(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Ce(Math.trunc(n/60),2),a=Ce(n%60,2);return r+o+t+a}const c0=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},u0=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Fx={p:u0,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return c0(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",c0(n,t)).replace("{{time}}",u0(o,t))}},Vx=/^D+$/,zx=/^Y+$/,Wx=["D","DD","YY","YYYY"];function Bx(e){return Vx.test(e)}function Rx(e){return zx.test(e)}function Kx(e,t,r){const n=Ux(e,t,r);if(console.warn(n),Wx.includes(e))throw new RangeError(n)}function Ux(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Hx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Yx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Gx=/^'([^]*?)'?$/,qx=/''/g,Qx=/[a-zA-Z]/;function Kt(e,t,r){var u,d,h,p,m,y,b,C;const n=ro(),o=(r==null?void 0:r.locale)??n.locale??r0,a=(r==null?void 0:r.firstWeekContainsDate)??((d=(u=r==null?void 0:r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((p=(h=n.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,s=(r==null?void 0:r.weekStartsOn)??((y=(m=r==null?void 0:r.locale)==null?void 0:m.options)==null?void 0:y.weekStartsOn)??n.weekStartsOn??((C=(b=n.locale)==null?void 0:b.options)==null?void 0:C.weekStartsOn)??0,i=ye(e);if(!nx(i))throw new RangeError("Invalid time value");let l=t.match(Yx).map(x=>{const P=x[0];if(P==="p"||P==="P"){const E=Fx[P];return E(x,o.formatLong)}return x}).join("").match(Hx).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const P=x[0];if(P==="'")return{isToken:!1,value:Xx(x)};if(s0[P])return{isToken:!0,value:x};if(P.match(Qx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return{isToken:!1,value:x}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));const c={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return l.map(x=>{if(!x.isToken)return x.value;const P=x.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&Rx(P)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&Bx(P))&&Kx(P,t,String(e));const E=s0[P[0]];return E(i,P,o.localize,c)}).join("")}function Xx(e){const t=e.match(Gx);return t?t[1].replace(qx,"'"):e}function Zx(e){const t=ye(e),r=t.getFullYear(),n=t.getMonth(),o=it(e,0);return o.setFullYear(r,n+1,0),o.setHours(0,0,0,0),o.getDate()}function Jx(e){return Math.trunc(+ye(e)/1e3)}function e9(e){const t=ye(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function t9(e,t){return ox(e9(e),Ze(e),t)+1}function El(e,t){const r=ye(e),n=ye(t);return r.getTime()>n.getTime()}function d0(e,t){const r=ye(e),n=ye(t);return+r<+n}function Sl(e,t){const r=ye(e),n=ye(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function r9(e,t){const r=ye(e),n=ye(t);return r.getFullYear()===n.getFullYear()}function $l(e,t){return He(e,-t)}function Dl(e,t){const r=ye(e),n=r.getFullYear(),o=r.getDate(),a=it(e,0);a.setFullYear(n,t,15),a.setHours(0,0,0,0);const s=Zx(a);return r.setMonth(t,Math.min(o,s)),r}function f0(e,t){const r=ye(e);return isNaN(+r)?it(e,NaN):(r.setFullYear(t),r)}var ae=function(){return ae=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ae.apply(this,arguments)};function n9(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function p0(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Il={exports:{}},so={};/**